@feltmaps/js-sdk 1.10.0-next.4 → 1.10.1
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.cjs +1 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -1
- package/dist/{controller-C63EIoOJ.d.cts → controller-CYMpb_Ub.d.cts} +2 -0
- package/dist/{controller-C63EIoOJ.d.ts → controller-CYMpb_Ub.d.ts} +2 -0
- package/dist/controller-bundled.d.ts +2 -0
- package/dist/handler.d.cts +1 -1
- package/dist/handler.d.ts +1 -1
- package/package.json +1 -1
package/dist/client.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var y=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var K=Object.prototype.hasOwnProperty;var O=(e,o)=>{for(var r in o)y(e,r,{get:o[r],enumerable:!0})},D=(e,o,r,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let
|
|
1
|
+
"use strict";var y=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var K=Object.prototype.hasOwnProperty;var O=(e,o)=>{for(var r in o)y(e,r,{get:o[r],enumerable:!0})},D=(e,o,r,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of B(o))!K.call(e,i)&&i!==r&&y(e,i,{get:()=>o[i],enumerable:!(n=k(o,i))||n.enumerable});return e};var R=e=>D(y({},"__esModule",{value:!0}),e);var j={};O(j,{Felt:()=>U});module.exports=R(j);function C(e,o){for(let[r,n]of Object.entries(e))switch(typeof n){case"object":switch(!0){case Array.isArray(n):for(let i of n)C(i,o);break;case n===null:o(r,n,e);break;default:C(n,o);break}break;default:o(r,n,e);break}}function J(e){return e[0]?.toUpperCase()===e[0]}function H(e){return e.startsWith("on")&&J(e.slice(2))}function P(e,o){typeof e=="object"&&e!==null&&C(e,(r,n,i)=>{H(r)&&o(r,n,i)})}function a(e,o){return r=>{let n=new MessageChannel,i=r.handler,m="options"in r?r.options:void 0,u=crypto.randomUUID();return e.postMessage({type:"felt.addListener",event:m?{eventName:o,id:u,options:m}:{eventName:o,id:u}},"*",[n.port2]),n.port1.onmessage=p=>{E(p)||i(p.data)},()=>{n.port1.onmessage=null,n.port1.close(),n.port2.close(),e.postMessage({type:"felt.removeListener",id:u},"*")}}}function t(e,o,r){return async n=>{let i=new MessageChannel,m=n&&r?await r(n):n;return e.postMessage({type:o,params:m},"*",[i.port2]),new Promise((u,p)=>{i.port1.onmessage=g=>{E(g)?p(new Error(g.data.__error__)):u(g.data),i.port1.close(),i.port2.close()}})}}var T={};function d(e,o){let r=t(e,o),n=a(e,"onGenericEvent");return async i=>{let m=[];P(i,(g,s,l)=>{if(typeof s!="function")return;let c=crypto.randomUUID();l[g]=c,T[c]=s;let L=n({handler:h=>{switch(h){case`felt.removeGenericListener:${c}`:L();break;default:s(h)}},options:{id:c}});m.push(L)});let p=await r(i);return typeof p=="object"&&p!==null&&P(p,(g,s,l)=>{if(typeof s!="string")return;let c=T[s];c&&(l[g]=c)}),p}}function E(e){return e.data&&typeof e.data=="object"&&"__error__"in e.data}var v=e=>({getCurrentBasemap:t(e,"getCurrentBasemap"),getBasemaps:t(e,"getBasemaps"),chooseBasemap:t(e,"chooseBasemap"),addCustomBasemap:t(e,"addCustomBasemap"),removeBasemap:t(e,"removeBasemap"),onBasemapChange:a(e,"onBasemapChange")});var F=e=>({getElement:t(e,"getElement"),getElementGeometry:t(e,"getElementGeometry"),getElements:t(e,"getElements"),setElementGroupVisibility:t(e,"setElementGroupVisibility"),getElementGroup:t(e,"getElementGroup"),getElementGroups:t(e,"getElementGroups"),onElementChange:a(e,"onElementChange"),onElementCreate:a(e,"onElementCreate"),onElementCreateEnd:a(e,"onElementCreateEnd"),onElementDelete:a(e,"onElementDelete"),onElementGroupChange:a(e,"onElementGroupChange"),createElement:t(e,"createElement"),updateElement:t(e,"updateElement"),deleteElement:t(e,"deleteElement")});var b=e=>({onPointerClick:a(e,"onPointerClick"),onPointerMove:a(e,"onPointerMove")});var I=e=>({getLayer:t(e,"getLayer"),getLayers:t(e,"getLayers"),setLayerVisibility:t(e,"setLayerVisibility"),setLayerStyle:t(e,"setLayerStyle"),setLayerLegendVisibility:t(e,"setLayerLegendVisibility"),onLayerChange:a(e,"onLayerChange"),createLayersFromGeoJson:t(e,"createLayersFromGeoJson",G),updateLayer:t(e,"updateLayer",G),deleteLayer:t(e,"deleteLayer"),duplicateLayer:t(e,"duplicateLayer"),getLayerGroup:t(e,"getLayerGroup"),getLayerGroups:t(e,"getLayerGroups"),setLayerGroupVisibility:t(e,"setLayerGroupVisibility"),setLayerGroupLegendVisibility:t(e,"setLayerGroupLegendVisibility"),onLayerGroupChange:a(e,"onLayerGroupChange"),getLegendItem:t(e,"getLegendItem"),getLegendItems:t(e,"getLegendItems"),setLegendItemVisibility:t(e,"setLegendItemVisibility"),onLegendItemChange:a(e,"onLegendItemChange"),getLayerFilters:t(e,"getLayerFilters"),setLayerFilters:t(e,"setLayerFilters"),onLayerFiltersChange:a(e,"onLayerFiltersChange"),getLayerBoundaries:t(e,"getLayerBoundaries"),setLayerBoundary:t(e,"setLayerBoundary"),onLayerBoundariesChange:a(e,"onLayerBoundariesChange"),getRenderedFeatures:t(e,"getRenderedFeatures"),getFeature:t(e,"getFeature"),getFeatures:t(e,"getFeatures"),getGeoJsonFeature:t(e,"getGeoJsonFeature"),getCategoryData:t(e,"getCategoryData"),getHistogramData:t(e,"getHistogramData"),getAggregates:t(e,"getAggregates"),getPrecomputedAggregates:t(e,"getPrecomputedAggregates"),getLayerSchema:t(e,"getLayerSchema")});async function G(e){let{source:o}=e;return o&&o.type==="geoJsonFile"?{...e,source:{type:"geoJsonData",data:JSON.parse(await o.file.text())}}:e}var M=e=>({getMapDetails:t(e,"getMapDetails")});var V=e=>({onSelectionChange:a(e,"onSelectionChange"),getSelection:t(e,"getSelection"),selectFeature:t(e,"selectFeature"),clearSelection:t(e,"clearSelection")});var S=e=>({setTool:t(e,"setTool"),getTool:t(e,"getTool"),onToolChange:a(e,"onToolChange"),setToolSettings:t(e,"setToolSettings"),getToolSettings:t(e,"getToolSettings"),onToolSettingsChange:a(e,"onToolSettingsChange")});var f=e=>({updateUiControls:t(e,"updateUiControls"),setOnMapInteractionsUi:t(e,"setOnMapInteractionsUi"),showLayerDataTable:t(e,"showLayerDataTable"),hideLayerDataTable:t(e,"hideLayerDataTable"),createPanelId:t(e,"createPanelId"),createOrUpdatePanel:d(e,"createOrUpdatePanel"),deletePanel:t(e,"deletePanel"),createPanelElements:d(e,"createPanelElements"),updatePanelElements:d(e,"updatePanelElements"),deletePanelElements:t(e,"deletePanelElements"),createActionTrigger:d(e,"createActionTrigger"),updateActionTrigger:d(e,"updateActionTrigger"),deleteActionTrigger:t(e,"deleteActionTrigger"),createFeatureAction:d(e,"createFeatureAction"),updateFeatureAction:d(e,"updateFeatureAction"),deleteFeatureAction:t(e,"deleteFeatureAction")});var A=e=>({getViewport:t(e,"getViewport"),setViewport:t(e,"setViewport"),getViewportConstraints:t(e,"getViewportConstraints"),setViewportConstraints:t(e,"setViewportConstraints"),fitViewportToBounds:t(e,"fitViewportToBounds"),onViewportMove:a(e,"onViewportMove"),onViewportMoveEnd:a(e,"onViewportMoveEnd"),onMapIdle:a(e,"onMapIdle")});function x(e){return{iframe:null,...A(e),...f(e),...I(e),...F(e),...V(e),...b(e),...S(e),...M(e),...v(e)}}var U={embed(e,o,r){let n={uiControls:{showLegend:!0,cooperativeGestures:!0,fullScreenButton:!0,geolocation:!1,zoomControls:!0,scaleBar:!0},initialViewport:void 0,origin:"https://felt.com"},i=r?.origin??n.origin,m=new URL(`${i}/embed/map/${o}`),u={showLegend:"legend",cooperativeGestures:"cooperativeGestures",fullScreenButton:"link",geolocation:"geolocation",zoomControls:"zoomControls",scaleBar:"scaleBar"},p={...n.uiControls,...r?.uiControls};for(let[l,c]of q(p))c!=null&&m.searchParams.set(u[l],c?"1":"0");if(r?.token&&m.searchParams.set("token",r.token),r?.initialViewport){let l=r.initialViewport;m.searchParams.set("loc",`${l.center.latitude},${l.center.longitude},${l.zoom}z`)}let g=e.tagName==="IFRAME",s=g?e:e.ownerDocument.createElement("iframe");return s.src=m.toString(),g||(s.style.width="100%",s.style.height="100%",s.style.border="none",s.style.margin="0",e.appendChild(s)),s.referrerPolicy="strict-origin-when-cross-origin",new Promise((l,c)=>{s.addEventListener("load",()=>{s.contentWindow==null?c(new Error("Failed to load Felt map")):l(s.contentWindow)},{once:!0})}).then(U.connect).then(l=>(Object.defineProperties(l,{iframe:{value:s,writable:!1,configurable:!1}}),l))},connect(e){let o=x(e);if(arguments.length===2){let r=arguments[1];if(r&&typeof r=="object"&&"skipReadyCheck"in r&&r.skipReadyCheck)return Promise.resolve(o)}return new Promise((r,n)=>{let i=setTimeout(()=>{n(new Error("Failed to load Felt map")),clearInterval(g),u()},5e3),m=[];function u(){for(let s of m)s.port1.onmessage=null,s.port1.close(),s.port2.close();m.length=0}function p(){let s=new MessageChannel;m.push(s),s.port1.onmessage=l=>{l.data===!0&&(clearInterval(g),clearTimeout(i),u(),r(o))},e.postMessage({type:"felt.ready"},"*",[s.port2])}let g=setInterval(p,100);p()})}},q=Object.entries;0&&(module.exports={Felt});
|
package/dist/client.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z as zInfer, U as UiControlsOptions, V as ViewportCenterZoom, F as FeltController } from './controller-
|
|
2
|
-
export { aC as AggregatedGridConfig, aD as AggregationConfig, aE as AggregationMethod, a as Basemap, B as BasemapsController, f as CircleElementCreate, g as CircleElementRead, h as CircleElementUpdate, bg as CircleToolSettings, C as ColorBasemap, b as ColorBasemapInput, bh as ConfigurableToolType, aF as CountGridConfig, bx as CreateActionTriggerParams, by as CreateFeatureActionParams, Y as CreateLayersFromGeoJsonParams, bz as CreateOrUpdatePanelParams, bA as CreatePanelElementsParams, c as CustomTileBasemap, d as CustomTileBasemapInput, Z as DataOnlyLayer, bB as DeletePanelElementsParams, E as Element, i as ElementChangeCallbackParams, j as ElementCreate, k as ElementGroup, l as ElementGroupChangeCallbackParams, aU as ElementGroupNode, aV as ElementNode, m as ElementUpdate, S as ElementsController, aW as EntityNode, aX as FeatureNode, aY as FeatureSelection, e as FeltBasemap, b0 as FeltBoundary, _ as FeltTiledVectorSource, b1 as FeltZoom, av as FilterExpression, aw as FilterLogicGate, ax as FilterTernary, ay as Filters, $ as GeoJsonDataVectorSource, b2 as GeoJsonFeature, a0 as GeoJsonFileVectorSource, b3 as GeoJsonGeometry, b4 as GeoJsonProperties, a1 as GeoJsonUrlVectorSource, az as GeometryFilter, G as GetElementGroupsConstraint, n as GetElementsConstraint, aG as GetLayerCalculationParams, aH as GetLayerCategoriesGroup, aI as GetLayerCategoriesParams, a2 as GetLayerGroupsConstraint, aJ as GetLayerHistogramBin, aK as GetLayerHistogramParams, aL as GetLayerPrecomputedCalculationParams, a3 as GetLayersConstraint, a4 as GetRenderedFeaturesConstraint, aM as GridConfig, aN as GridType, H as HighlighterElementCreate, o as HighlighterElementRead, p as HighlighterElementUpdate, bi as HighlighterToolSettings, I as ImageElementCreate, q as ImageElementRead, r as ImageElementUpdate, bj as InputToolSettings, X as InteractionsController, b5 as LatLng, a5 as Layer, aA as LayerBoundaries, a6 as LayerChangeCallbackParams, a7 as LayerCommon, al as LayerFeature, aB as LayerFilters, a8 as LayerGroup, a9 as LayerGroupChangeCallbackParams, aZ as LayerGroupNode, a_ as LayerNode, aa as LayerProcessingStatus, an as LayerSchema, ao as LayerSchemaAttribute, ap as LayerSchemaBooleanAttribute, aq as LayerSchemaCommonAttribute, ar as LayerSchemaDateAttribute, as as LayerSchemaDateTimeAttribute, at as LayerSchemaNumericAttribute, au as LayerSchemaTextAttribute, aR as LayersController, ab as LegendDisplay, ac as LegendItem, ad as LegendItemChangeCallbackParams, ae as LegendItemIdentifier, af as LegendItemsConstraint, b6 as LineStringGeometry, bk as LineToolSettings, L as LinkElementRead, b7 as LngLatTuple, aS as MapDetails, W as MapInteractionEvent, M as MarkerElementCreate, s as MarkerElementRead, t as MarkerElementUpdate, bl as MarkerToolSettings, aT as MiscController, aO as MultiAggregationConfig, b8 as MultiLineStringGeometry, b9 as MultiPointGeometry, ba as MultiPolygonGeometry, N as NoteElementCreate, u as NoteElementRead, v as NoteElementUpdate, bm as NoteToolSettings, bC as OnMapInteractionsOptions, P as PathElementCreate, w as PathElementRead, x as PathElementUpdate, bn as PinToolSettings, y as PlaceElementCreate, A as PlaceElementRead, D as PlaceElementUpdate, bo as PlaceFrame, bp as PlaceSymbol, bG as PlacementForUIElement, bb as PointGeometry, J as PolygonElementCreate, K as PolygonElementRead, O as PolygonElementUpdate, bc as PolygonGeometry, bq as PolygonToolSettings, aP as PrecomputedAggregationMethod, ag as RasterBand, ah as RasterLayer, ai as RasterLayerSource, am as RasterValue, br as RouteToolSettings, a$ as SelectionController, cp as SetViewportCenterZoomParams, bd as SetVisibilityRequest, be as SortConfig, bf as SortDirection, T as TextElementCreate, Q as TextElementRead, R as TextElementUpdate, bs as TextToolSettings, bt as ToolSettingsChangeEvent, bu as ToolSettingsMap, bv as ToolType, bw as ToolsController, cl as UIActionTriggerCreate, bJ as UIButtonElement, bK as UIButtonElementCreate, bL as UIButtonElementUpdate, c5 as UIButtonRowElement, c6 as UIButtonRowElementCreate, c7 as UIButtonRowElementUpdate, c8 as UICheckboxGroupElement, c9 as UICheckboxGroupElementCreate, ca as UICheckboxGroupElementUpdate, ck as UIControlElementOption, bS as UIDividerElement, bT as UIDividerElementCreate, bU as UIDividerElementUpdate, cm as UIFeatureAction, cn as UIFeatureActionCreate, bP as UIFlexibleSpaceElement, bQ as UIFlexibleSpaceElementCreate, bR as UIFlexibleSpaceElementUpdate, c2 as UIGridContainerElement, c3 as UIGridContainerElementCreate, c4 as UIGridContainerElementUpdate, ch as UIIframeElement, ci as UIIframeElementCreate, cj as UIIframeElementUpdate, bH as UIPanel, bI as UIPanelCreateOrUpdate, b$ as UIPanelElement, c0 as UIPanelElementCreate, c1 as UIPanelElementUpdate, cb as UIRadioGroupElement, cc as UIRadioGroupElementCreate, cd as UIRadioGroupElementUpdate, bY as UISelectElement, bZ as UISelectElementCreate, b_ as UISelectElementUpdate, bM as UITextElement, bN as UITextElementCreate, bO as UITextElementUpdate, bV as UITextInputElement, bW as UITextInputElementCreate, bX as UITextInputElementUpdate, ce as UIToggleGroupElement, cf as UIToggleGroupElementCreate, cg as UIToggleGroupElementUpdate, co as UiController, bD as UpdateActionTriggerParams, bE as UpdateFeatureActionParams, aj as UpdateLayerParams, bF as UpdatePanelElementsParams, aQ as ValueConfiguration, ak as VectorLayer, cq as ViewportConstraints, ct as ViewportController, cr as ViewportFitBoundsParams, cs as ViewportState } from './controller-
|
|
1
|
+
import { z as zInfer, U as UiControlsOptions, V as ViewportCenterZoom, F as FeltController } from './controller-CYMpb_Ub.cjs';
|
|
2
|
+
export { aC as AggregatedGridConfig, aD as AggregationConfig, aE as AggregationMethod, a as Basemap, B as BasemapsController, f as CircleElementCreate, g as CircleElementRead, h as CircleElementUpdate, bg as CircleToolSettings, C as ColorBasemap, b as ColorBasemapInput, bh as ConfigurableToolType, aF as CountGridConfig, bx as CreateActionTriggerParams, by as CreateFeatureActionParams, Y as CreateLayersFromGeoJsonParams, bz as CreateOrUpdatePanelParams, bA as CreatePanelElementsParams, c as CustomTileBasemap, d as CustomTileBasemapInput, Z as DataOnlyLayer, bB as DeletePanelElementsParams, E as Element, i as ElementChangeCallbackParams, j as ElementCreate, k as ElementGroup, l as ElementGroupChangeCallbackParams, aU as ElementGroupNode, aV as ElementNode, m as ElementUpdate, S as ElementsController, aW as EntityNode, aX as FeatureNode, aY as FeatureSelection, e as FeltBasemap, b0 as FeltBoundary, _ as FeltTiledVectorSource, b1 as FeltZoom, av as FilterExpression, aw as FilterLogicGate, ax as FilterTernary, ay as Filters, $ as GeoJsonDataVectorSource, b2 as GeoJsonFeature, a0 as GeoJsonFileVectorSource, b3 as GeoJsonGeometry, b4 as GeoJsonProperties, a1 as GeoJsonUrlVectorSource, az as GeometryFilter, G as GetElementGroupsConstraint, n as GetElementsConstraint, aG as GetLayerCalculationParams, aH as GetLayerCategoriesGroup, aI as GetLayerCategoriesParams, a2 as GetLayerGroupsConstraint, aJ as GetLayerHistogramBin, aK as GetLayerHistogramParams, aL as GetLayerPrecomputedCalculationParams, a3 as GetLayersConstraint, a4 as GetRenderedFeaturesConstraint, aM as GridConfig, aN as GridType, H as HighlighterElementCreate, o as HighlighterElementRead, p as HighlighterElementUpdate, bi as HighlighterToolSettings, I as ImageElementCreate, q as ImageElementRead, r as ImageElementUpdate, bj as InputToolSettings, X as InteractionsController, b5 as LatLng, a5 as Layer, aA as LayerBoundaries, a6 as LayerChangeCallbackParams, a7 as LayerCommon, al as LayerFeature, aB as LayerFilters, a8 as LayerGroup, a9 as LayerGroupChangeCallbackParams, aZ as LayerGroupNode, a_ as LayerNode, aa as LayerProcessingStatus, an as LayerSchema, ao as LayerSchemaAttribute, ap as LayerSchemaBooleanAttribute, aq as LayerSchemaCommonAttribute, ar as LayerSchemaDateAttribute, as as LayerSchemaDateTimeAttribute, at as LayerSchemaNumericAttribute, au as LayerSchemaTextAttribute, aR as LayersController, ab as LegendDisplay, ac as LegendItem, ad as LegendItemChangeCallbackParams, ae as LegendItemIdentifier, af as LegendItemsConstraint, b6 as LineStringGeometry, bk as LineToolSettings, L as LinkElementRead, b7 as LngLatTuple, aS as MapDetails, W as MapInteractionEvent, M as MarkerElementCreate, s as MarkerElementRead, t as MarkerElementUpdate, bl as MarkerToolSettings, aT as MiscController, aO as MultiAggregationConfig, b8 as MultiLineStringGeometry, b9 as MultiPointGeometry, ba as MultiPolygonGeometry, N as NoteElementCreate, u as NoteElementRead, v as NoteElementUpdate, bm as NoteToolSettings, bC as OnMapInteractionsOptions, P as PathElementCreate, w as PathElementRead, x as PathElementUpdate, bn as PinToolSettings, y as PlaceElementCreate, A as PlaceElementRead, D as PlaceElementUpdate, bo as PlaceFrame, bp as PlaceSymbol, bG as PlacementForUIElement, bb as PointGeometry, J as PolygonElementCreate, K as PolygonElementRead, O as PolygonElementUpdate, bc as PolygonGeometry, bq as PolygonToolSettings, aP as PrecomputedAggregationMethod, ag as RasterBand, ah as RasterLayer, ai as RasterLayerSource, am as RasterValue, br as RouteToolSettings, a$ as SelectionController, cp as SetViewportCenterZoomParams, bd as SetVisibilityRequest, be as SortConfig, bf as SortDirection, T as TextElementCreate, Q as TextElementRead, R as TextElementUpdate, bs as TextToolSettings, bt as ToolSettingsChangeEvent, bu as ToolSettingsMap, bv as ToolType, bw as ToolsController, cl as UIActionTriggerCreate, bJ as UIButtonElement, bK as UIButtonElementCreate, bL as UIButtonElementUpdate, c5 as UIButtonRowElement, c6 as UIButtonRowElementCreate, c7 as UIButtonRowElementUpdate, c8 as UICheckboxGroupElement, c9 as UICheckboxGroupElementCreate, ca as UICheckboxGroupElementUpdate, ck as UIControlElementOption, bS as UIDividerElement, bT as UIDividerElementCreate, bU as UIDividerElementUpdate, cm as UIFeatureAction, cn as UIFeatureActionCreate, bP as UIFlexibleSpaceElement, bQ as UIFlexibleSpaceElementCreate, bR as UIFlexibleSpaceElementUpdate, c2 as UIGridContainerElement, c3 as UIGridContainerElementCreate, c4 as UIGridContainerElementUpdate, ch as UIIframeElement, ci as UIIframeElementCreate, cj as UIIframeElementUpdate, bH as UIPanel, bI as UIPanelCreateOrUpdate, b$ as UIPanelElement, c0 as UIPanelElementCreate, c1 as UIPanelElementUpdate, cb as UIRadioGroupElement, cc as UIRadioGroupElementCreate, cd as UIRadioGroupElementUpdate, bY as UISelectElement, bZ as UISelectElementCreate, b_ as UISelectElementUpdate, bM as UITextElement, bN as UITextElementCreate, bO as UITextElementUpdate, bV as UITextInputElement, bW as UITextInputElementCreate, bX as UITextInputElementUpdate, ce as UIToggleGroupElement, cf as UIToggleGroupElementCreate, cg as UIToggleGroupElementUpdate, co as UiController, bD as UpdateActionTriggerParams, bE as UpdateFeatureActionParams, aj as UpdateLayerParams, bF as UpdatePanelElementsParams, aQ as ValueConfiguration, ak as VectorLayer, cq as ViewportConstraints, ct as ViewportController, cr as ViewportFitBoundsParams, cs as ViewportState } from './controller-CYMpb_Ub.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z as zInfer, U as UiControlsOptions, V as ViewportCenterZoom, F as FeltController } from './controller-
|
|
2
|
-
export { aC as AggregatedGridConfig, aD as AggregationConfig, aE as AggregationMethod, a as Basemap, B as BasemapsController, f as CircleElementCreate, g as CircleElementRead, h as CircleElementUpdate, bg as CircleToolSettings, C as ColorBasemap, b as ColorBasemapInput, bh as ConfigurableToolType, aF as CountGridConfig, bx as CreateActionTriggerParams, by as CreateFeatureActionParams, Y as CreateLayersFromGeoJsonParams, bz as CreateOrUpdatePanelParams, bA as CreatePanelElementsParams, c as CustomTileBasemap, d as CustomTileBasemapInput, Z as DataOnlyLayer, bB as DeletePanelElementsParams, E as Element, i as ElementChangeCallbackParams, j as ElementCreate, k as ElementGroup, l as ElementGroupChangeCallbackParams, aU as ElementGroupNode, aV as ElementNode, m as ElementUpdate, S as ElementsController, aW as EntityNode, aX as FeatureNode, aY as FeatureSelection, e as FeltBasemap, b0 as FeltBoundary, _ as FeltTiledVectorSource, b1 as FeltZoom, av as FilterExpression, aw as FilterLogicGate, ax as FilterTernary, ay as Filters, $ as GeoJsonDataVectorSource, b2 as GeoJsonFeature, a0 as GeoJsonFileVectorSource, b3 as GeoJsonGeometry, b4 as GeoJsonProperties, a1 as GeoJsonUrlVectorSource, az as GeometryFilter, G as GetElementGroupsConstraint, n as GetElementsConstraint, aG as GetLayerCalculationParams, aH as GetLayerCategoriesGroup, aI as GetLayerCategoriesParams, a2 as GetLayerGroupsConstraint, aJ as GetLayerHistogramBin, aK as GetLayerHistogramParams, aL as GetLayerPrecomputedCalculationParams, a3 as GetLayersConstraint, a4 as GetRenderedFeaturesConstraint, aM as GridConfig, aN as GridType, H as HighlighterElementCreate, o as HighlighterElementRead, p as HighlighterElementUpdate, bi as HighlighterToolSettings, I as ImageElementCreate, q as ImageElementRead, r as ImageElementUpdate, bj as InputToolSettings, X as InteractionsController, b5 as LatLng, a5 as Layer, aA as LayerBoundaries, a6 as LayerChangeCallbackParams, a7 as LayerCommon, al as LayerFeature, aB as LayerFilters, a8 as LayerGroup, a9 as LayerGroupChangeCallbackParams, aZ as LayerGroupNode, a_ as LayerNode, aa as LayerProcessingStatus, an as LayerSchema, ao as LayerSchemaAttribute, ap as LayerSchemaBooleanAttribute, aq as LayerSchemaCommonAttribute, ar as LayerSchemaDateAttribute, as as LayerSchemaDateTimeAttribute, at as LayerSchemaNumericAttribute, au as LayerSchemaTextAttribute, aR as LayersController, ab as LegendDisplay, ac as LegendItem, ad as LegendItemChangeCallbackParams, ae as LegendItemIdentifier, af as LegendItemsConstraint, b6 as LineStringGeometry, bk as LineToolSettings, L as LinkElementRead, b7 as LngLatTuple, aS as MapDetails, W as MapInteractionEvent, M as MarkerElementCreate, s as MarkerElementRead, t as MarkerElementUpdate, bl as MarkerToolSettings, aT as MiscController, aO as MultiAggregationConfig, b8 as MultiLineStringGeometry, b9 as MultiPointGeometry, ba as MultiPolygonGeometry, N as NoteElementCreate, u as NoteElementRead, v as NoteElementUpdate, bm as NoteToolSettings, bC as OnMapInteractionsOptions, P as PathElementCreate, w as PathElementRead, x as PathElementUpdate, bn as PinToolSettings, y as PlaceElementCreate, A as PlaceElementRead, D as PlaceElementUpdate, bo as PlaceFrame, bp as PlaceSymbol, bG as PlacementForUIElement, bb as PointGeometry, J as PolygonElementCreate, K as PolygonElementRead, O as PolygonElementUpdate, bc as PolygonGeometry, bq as PolygonToolSettings, aP as PrecomputedAggregationMethod, ag as RasterBand, ah as RasterLayer, ai as RasterLayerSource, am as RasterValue, br as RouteToolSettings, a$ as SelectionController, cp as SetViewportCenterZoomParams, bd as SetVisibilityRequest, be as SortConfig, bf as SortDirection, T as TextElementCreate, Q as TextElementRead, R as TextElementUpdate, bs as TextToolSettings, bt as ToolSettingsChangeEvent, bu as ToolSettingsMap, bv as ToolType, bw as ToolsController, cl as UIActionTriggerCreate, bJ as UIButtonElement, bK as UIButtonElementCreate, bL as UIButtonElementUpdate, c5 as UIButtonRowElement, c6 as UIButtonRowElementCreate, c7 as UIButtonRowElementUpdate, c8 as UICheckboxGroupElement, c9 as UICheckboxGroupElementCreate, ca as UICheckboxGroupElementUpdate, ck as UIControlElementOption, bS as UIDividerElement, bT as UIDividerElementCreate, bU as UIDividerElementUpdate, cm as UIFeatureAction, cn as UIFeatureActionCreate, bP as UIFlexibleSpaceElement, bQ as UIFlexibleSpaceElementCreate, bR as UIFlexibleSpaceElementUpdate, c2 as UIGridContainerElement, c3 as UIGridContainerElementCreate, c4 as UIGridContainerElementUpdate, ch as UIIframeElement, ci as UIIframeElementCreate, cj as UIIframeElementUpdate, bH as UIPanel, bI as UIPanelCreateOrUpdate, b$ as UIPanelElement, c0 as UIPanelElementCreate, c1 as UIPanelElementUpdate, cb as UIRadioGroupElement, cc as UIRadioGroupElementCreate, cd as UIRadioGroupElementUpdate, bY as UISelectElement, bZ as UISelectElementCreate, b_ as UISelectElementUpdate, bM as UITextElement, bN as UITextElementCreate, bO as UITextElementUpdate, bV as UITextInputElement, bW as UITextInputElementCreate, bX as UITextInputElementUpdate, ce as UIToggleGroupElement, cf as UIToggleGroupElementCreate, cg as UIToggleGroupElementUpdate, co as UiController, bD as UpdateActionTriggerParams, bE as UpdateFeatureActionParams, aj as UpdateLayerParams, bF as UpdatePanelElementsParams, aQ as ValueConfiguration, ak as VectorLayer, cq as ViewportConstraints, ct as ViewportController, cr as ViewportFitBoundsParams, cs as ViewportState } from './controller-
|
|
1
|
+
import { z as zInfer, U as UiControlsOptions, V as ViewportCenterZoom, F as FeltController } from './controller-CYMpb_Ub.js';
|
|
2
|
+
export { aC as AggregatedGridConfig, aD as AggregationConfig, aE as AggregationMethod, a as Basemap, B as BasemapsController, f as CircleElementCreate, g as CircleElementRead, h as CircleElementUpdate, bg as CircleToolSettings, C as ColorBasemap, b as ColorBasemapInput, bh as ConfigurableToolType, aF as CountGridConfig, bx as CreateActionTriggerParams, by as CreateFeatureActionParams, Y as CreateLayersFromGeoJsonParams, bz as CreateOrUpdatePanelParams, bA as CreatePanelElementsParams, c as CustomTileBasemap, d as CustomTileBasemapInput, Z as DataOnlyLayer, bB as DeletePanelElementsParams, E as Element, i as ElementChangeCallbackParams, j as ElementCreate, k as ElementGroup, l as ElementGroupChangeCallbackParams, aU as ElementGroupNode, aV as ElementNode, m as ElementUpdate, S as ElementsController, aW as EntityNode, aX as FeatureNode, aY as FeatureSelection, e as FeltBasemap, b0 as FeltBoundary, _ as FeltTiledVectorSource, b1 as FeltZoom, av as FilterExpression, aw as FilterLogicGate, ax as FilterTernary, ay as Filters, $ as GeoJsonDataVectorSource, b2 as GeoJsonFeature, a0 as GeoJsonFileVectorSource, b3 as GeoJsonGeometry, b4 as GeoJsonProperties, a1 as GeoJsonUrlVectorSource, az as GeometryFilter, G as GetElementGroupsConstraint, n as GetElementsConstraint, aG as GetLayerCalculationParams, aH as GetLayerCategoriesGroup, aI as GetLayerCategoriesParams, a2 as GetLayerGroupsConstraint, aJ as GetLayerHistogramBin, aK as GetLayerHistogramParams, aL as GetLayerPrecomputedCalculationParams, a3 as GetLayersConstraint, a4 as GetRenderedFeaturesConstraint, aM as GridConfig, aN as GridType, H as HighlighterElementCreate, o as HighlighterElementRead, p as HighlighterElementUpdate, bi as HighlighterToolSettings, I as ImageElementCreate, q as ImageElementRead, r as ImageElementUpdate, bj as InputToolSettings, X as InteractionsController, b5 as LatLng, a5 as Layer, aA as LayerBoundaries, a6 as LayerChangeCallbackParams, a7 as LayerCommon, al as LayerFeature, aB as LayerFilters, a8 as LayerGroup, a9 as LayerGroupChangeCallbackParams, aZ as LayerGroupNode, a_ as LayerNode, aa as LayerProcessingStatus, an as LayerSchema, ao as LayerSchemaAttribute, ap as LayerSchemaBooleanAttribute, aq as LayerSchemaCommonAttribute, ar as LayerSchemaDateAttribute, as as LayerSchemaDateTimeAttribute, at as LayerSchemaNumericAttribute, au as LayerSchemaTextAttribute, aR as LayersController, ab as LegendDisplay, ac as LegendItem, ad as LegendItemChangeCallbackParams, ae as LegendItemIdentifier, af as LegendItemsConstraint, b6 as LineStringGeometry, bk as LineToolSettings, L as LinkElementRead, b7 as LngLatTuple, aS as MapDetails, W as MapInteractionEvent, M as MarkerElementCreate, s as MarkerElementRead, t as MarkerElementUpdate, bl as MarkerToolSettings, aT as MiscController, aO as MultiAggregationConfig, b8 as MultiLineStringGeometry, b9 as MultiPointGeometry, ba as MultiPolygonGeometry, N as NoteElementCreate, u as NoteElementRead, v as NoteElementUpdate, bm as NoteToolSettings, bC as OnMapInteractionsOptions, P as PathElementCreate, w as PathElementRead, x as PathElementUpdate, bn as PinToolSettings, y as PlaceElementCreate, A as PlaceElementRead, D as PlaceElementUpdate, bo as PlaceFrame, bp as PlaceSymbol, bG as PlacementForUIElement, bb as PointGeometry, J as PolygonElementCreate, K as PolygonElementRead, O as PolygonElementUpdate, bc as PolygonGeometry, bq as PolygonToolSettings, aP as PrecomputedAggregationMethod, ag as RasterBand, ah as RasterLayer, ai as RasterLayerSource, am as RasterValue, br as RouteToolSettings, a$ as SelectionController, cp as SetViewportCenterZoomParams, bd as SetVisibilityRequest, be as SortConfig, bf as SortDirection, T as TextElementCreate, Q as TextElementRead, R as TextElementUpdate, bs as TextToolSettings, bt as ToolSettingsChangeEvent, bu as ToolSettingsMap, bv as ToolType, bw as ToolsController, cl as UIActionTriggerCreate, bJ as UIButtonElement, bK as UIButtonElementCreate, bL as UIButtonElementUpdate, c5 as UIButtonRowElement, c6 as UIButtonRowElementCreate, c7 as UIButtonRowElementUpdate, c8 as UICheckboxGroupElement, c9 as UICheckboxGroupElementCreate, ca as UICheckboxGroupElementUpdate, ck as UIControlElementOption, bS as UIDividerElement, bT as UIDividerElementCreate, bU as UIDividerElementUpdate, cm as UIFeatureAction, cn as UIFeatureActionCreate, bP as UIFlexibleSpaceElement, bQ as UIFlexibleSpaceElementCreate, bR as UIFlexibleSpaceElementUpdate, c2 as UIGridContainerElement, c3 as UIGridContainerElementCreate, c4 as UIGridContainerElementUpdate, ch as UIIframeElement, ci as UIIframeElementCreate, cj as UIIframeElementUpdate, bH as UIPanel, bI as UIPanelCreateOrUpdate, b$ as UIPanelElement, c0 as UIPanelElementCreate, c1 as UIPanelElementUpdate, cb as UIRadioGroupElement, cc as UIRadioGroupElementCreate, cd as UIRadioGroupElementUpdate, bY as UISelectElement, bZ as UISelectElementCreate, b_ as UISelectElementUpdate, bM as UITextElement, bN as UITextElementCreate, bO as UITextElementUpdate, bV as UITextInputElement, bW as UITextInputElementCreate, bX as UITextInputElementUpdate, ce as UIToggleGroupElement, cf as UIToggleGroupElementCreate, cg as UIToggleGroupElementUpdate, co as UiController, bD as UpdateActionTriggerParams, bE as UpdateFeatureActionParams, aj as UpdateLayerParams, bF as UpdatePanelElementsParams, aQ as ValueConfiguration, ak as VectorLayer, cq as ViewportConstraints, ct as ViewportController, cr as ViewportFitBoundsParams, cs as ViewportState } from './controller-CYMpb_Ub.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function y(e,
|
|
1
|
+
function y(e,s){for(let[r,n]of Object.entries(e))switch(typeof n){case"object":switch(!0){case Array.isArray(n):for(let i of n)y(i,s);break;case n===null:s(r,n,e);break;default:y(n,s);break}break;default:s(r,n,e);break}}function x(e){return e[0]?.toUpperCase()===e[0]}function U(e){return e.startsWith("on")&&x(e.slice(2))}function C(e,s){typeof e=="object"&&e!==null&&y(e,(r,n,i)=>{U(r)&&s(r,n,i)})}function o(e,s){return r=>{let n=new MessageChannel,i=r.handler,m="options"in r?r.options:void 0,u=crypto.randomUUID();return e.postMessage({type:"felt.addListener",event:m?{eventName:s,id:u,options:m}:{eventName:s,id:u}},"*",[n.port2]),n.port1.onmessage=p=>{T(p)||i(p.data)},()=>{n.port1.onmessage=null,n.port1.close(),n.port2.close(),e.postMessage({type:"felt.removeListener",id:u},"*")}}}function t(e,s,r){return async n=>{let i=new MessageChannel,m=n&&r?await r(n):n;return e.postMessage({type:s,params:m},"*",[i.port2]),new Promise((u,p)=>{i.port1.onmessage=g=>{T(g)?p(new Error(g.data.__error__)):u(g.data),i.port1.close(),i.port2.close()}})}}var h={};function d(e,s){let r=t(e,s),n=o(e,"onGenericEvent");return async i=>{let m=[];C(i,(g,a,l)=>{if(typeof a!="function")return;let c=crypto.randomUUID();l[g]=c,h[c]=a;let P=n({handler:L=>{switch(L){case`felt.removeGenericListener:${c}`:P();break;default:a(L)}},options:{id:c}});m.push(P)});let p=await r(i);return typeof p=="object"&&p!==null&&C(p,(g,a,l)=>{if(typeof a!="string")return;let c=h[a];c&&(l[g]=c)}),p}}function T(e){return e.data&&typeof e.data=="object"&&"__error__"in e.data}var E=e=>({getCurrentBasemap:t(e,"getCurrentBasemap"),getBasemaps:t(e,"getBasemaps"),chooseBasemap:t(e,"chooseBasemap"),addCustomBasemap:t(e,"addCustomBasemap"),removeBasemap:t(e,"removeBasemap"),onBasemapChange:o(e,"onBasemapChange")});var v=e=>({getElement:t(e,"getElement"),getElementGeometry:t(e,"getElementGeometry"),getElements:t(e,"getElements"),setElementGroupVisibility:t(e,"setElementGroupVisibility"),getElementGroup:t(e,"getElementGroup"),getElementGroups:t(e,"getElementGroups"),onElementChange:o(e,"onElementChange"),onElementCreate:o(e,"onElementCreate"),onElementCreateEnd:o(e,"onElementCreateEnd"),onElementDelete:o(e,"onElementDelete"),onElementGroupChange:o(e,"onElementGroupChange"),createElement:t(e,"createElement"),updateElement:t(e,"updateElement"),deleteElement:t(e,"deleteElement")});var F=e=>({onPointerClick:o(e,"onPointerClick"),onPointerMove:o(e,"onPointerMove")});var G=e=>({getLayer:t(e,"getLayer"),getLayers:t(e,"getLayers"),setLayerVisibility:t(e,"setLayerVisibility"),setLayerStyle:t(e,"setLayerStyle"),setLayerLegendVisibility:t(e,"setLayerLegendVisibility"),onLayerChange:o(e,"onLayerChange"),createLayersFromGeoJson:t(e,"createLayersFromGeoJson",b),updateLayer:t(e,"updateLayer",b),deleteLayer:t(e,"deleteLayer"),duplicateLayer:t(e,"duplicateLayer"),getLayerGroup:t(e,"getLayerGroup"),getLayerGroups:t(e,"getLayerGroups"),setLayerGroupVisibility:t(e,"setLayerGroupVisibility"),setLayerGroupLegendVisibility:t(e,"setLayerGroupLegendVisibility"),onLayerGroupChange:o(e,"onLayerGroupChange"),getLegendItem:t(e,"getLegendItem"),getLegendItems:t(e,"getLegendItems"),setLegendItemVisibility:t(e,"setLegendItemVisibility"),onLegendItemChange:o(e,"onLegendItemChange"),getLayerFilters:t(e,"getLayerFilters"),setLayerFilters:t(e,"setLayerFilters"),onLayerFiltersChange:o(e,"onLayerFiltersChange"),getLayerBoundaries:t(e,"getLayerBoundaries"),setLayerBoundary:t(e,"setLayerBoundary"),onLayerBoundariesChange:o(e,"onLayerBoundariesChange"),getRenderedFeatures:t(e,"getRenderedFeatures"),getFeature:t(e,"getFeature"),getFeatures:t(e,"getFeatures"),getGeoJsonFeature:t(e,"getGeoJsonFeature"),getCategoryData:t(e,"getCategoryData"),getHistogramData:t(e,"getHistogramData"),getAggregates:t(e,"getAggregates"),getPrecomputedAggregates:t(e,"getPrecomputedAggregates"),getLayerSchema:t(e,"getLayerSchema")});async function b(e){let{source:s}=e;return s&&s.type==="geoJsonFile"?{...e,source:{type:"geoJsonData",data:JSON.parse(await s.file.text())}}:e}var I=e=>({getMapDetails:t(e,"getMapDetails")});var M=e=>({onSelectionChange:o(e,"onSelectionChange"),getSelection:t(e,"getSelection"),selectFeature:t(e,"selectFeature"),clearSelection:t(e,"clearSelection")});var V=e=>({setTool:t(e,"setTool"),getTool:t(e,"getTool"),onToolChange:o(e,"onToolChange"),setToolSettings:t(e,"setToolSettings"),getToolSettings:t(e,"getToolSettings"),onToolSettingsChange:o(e,"onToolSettingsChange")});var S=e=>({updateUiControls:t(e,"updateUiControls"),setOnMapInteractionsUi:t(e,"setOnMapInteractionsUi"),showLayerDataTable:t(e,"showLayerDataTable"),hideLayerDataTable:t(e,"hideLayerDataTable"),createPanelId:t(e,"createPanelId"),createOrUpdatePanel:d(e,"createOrUpdatePanel"),deletePanel:t(e,"deletePanel"),createPanelElements:d(e,"createPanelElements"),updatePanelElements:d(e,"updatePanelElements"),deletePanelElements:t(e,"deletePanelElements"),createActionTrigger:d(e,"createActionTrigger"),updateActionTrigger:d(e,"updateActionTrigger"),deleteActionTrigger:t(e,"deleteActionTrigger"),createFeatureAction:d(e,"createFeatureAction"),updateFeatureAction:d(e,"updateFeatureAction"),deleteFeatureAction:t(e,"deleteFeatureAction")});var f=e=>({getViewport:t(e,"getViewport"),setViewport:t(e,"setViewport"),getViewportConstraints:t(e,"getViewportConstraints"),setViewportConstraints:t(e,"setViewportConstraints"),fitViewportToBounds:t(e,"fitViewportToBounds"),onViewportMove:o(e,"onViewportMove"),onViewportMoveEnd:o(e,"onViewportMoveEnd"),onMapIdle:o(e,"onMapIdle")});function A(e){return{iframe:null,...f(e),...S(e),...G(e),...v(e),...M(e),...F(e),...V(e),...I(e),...E(e)}}var k={embed(e,s,r){let n={uiControls:{showLegend:!0,cooperativeGestures:!0,fullScreenButton:!0,geolocation:!1,zoomControls:!0,scaleBar:!0},initialViewport:void 0,origin:"https://felt.com"},i=r?.origin??n.origin,m=new URL(`${i}/embed/map/${s}`),u={showLegend:"legend",cooperativeGestures:"cooperativeGestures",fullScreenButton:"link",geolocation:"geolocation",zoomControls:"zoomControls",scaleBar:"scaleBar"},p={...n.uiControls,...r?.uiControls};for(let[l,c]of B(p))c!=null&&m.searchParams.set(u[l],c?"1":"0");if(r?.token&&m.searchParams.set("token",r.token),r?.initialViewport){let l=r.initialViewport;m.searchParams.set("loc",`${l.center.latitude},${l.center.longitude},${l.zoom}z`)}let g=e.tagName==="IFRAME",a=g?e:e.ownerDocument.createElement("iframe");return a.src=m.toString(),g||(a.style.width="100%",a.style.height="100%",a.style.border="none",a.style.margin="0",e.appendChild(a)),a.referrerPolicy="strict-origin-when-cross-origin",new Promise((l,c)=>{a.addEventListener("load",()=>{a.contentWindow==null?c(new Error("Failed to load Felt map")):l(a.contentWindow)},{once:!0})}).then(k.connect).then(l=>(Object.defineProperties(l,{iframe:{value:a,writable:!1,configurable:!1}}),l))},connect(e){let s=A(e);if(arguments.length===2){let r=arguments[1];if(r&&typeof r=="object"&&"skipReadyCheck"in r&&r.skipReadyCheck)return Promise.resolve(s)}return new Promise((r,n)=>{let i=setTimeout(()=>{n(new Error("Failed to load Felt map")),clearInterval(g),u()},5e3),m=[];function u(){for(let a of m)a.port1.onmessage=null,a.port1.close(),a.port2.close();m.length=0}function p(){let a=new MessageChannel;m.push(a),a.port1.onmessage=l=>{l.data===!0&&(clearInterval(g),clearTimeout(i),u(),r(s))},e.postMessage({type:"felt.ready"},"*",[a.port2])}let g=setInterval(p,100);p()})}},B=Object.entries;export{k as Felt};
|
package/dist/handler.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z, ZodError } from 'zod';
|
|
2
|
-
import { F as FeltController, cu as UnwrapPromise, z as zInfer, a as Basemap, i as ElementChangeCallbackParams, l as ElementGroupChangeCallbackParams, E as Element, W as MapInteractionEvent, ax as FilterTernary, a6 as LayerChangeCallbackParams, a9 as LayerGroupChangeCallbackParams, ad as LegendItemChangeCallbackParams, aB as LayerFilters, aA as LayerBoundaries, aW as EntityNode, bv as ToolType, bt as ToolSettingsChangeEvent, cv as uiActionTriggerSchema, al as LayerFeature, cw as uiFeatureActionSchema, c0 as UIPanelElementCreate, cx as UIPanelElementCreateClonable, cy as uiPanelCreateSchema, cz as UIButtonElementCreateClonable, cA as MakeClonableSchema, bN as UITextElementCreate, bT as UIDividerElementCreate, bW as UITextInputElementCreate, bZ as UISelectElementCreate, bQ as UIFlexibleSpaceElementCreate, cB as UIButtonRowElementCreateClonable, c9 as UICheckboxGroupElementCreate, cc as UIRadioGroupElementCreate, cf as UIToggleGroupElementCreate, ci as UIIframeElementCreate, cs as ViewportState, cC as PromiseOrNot, cD as UnionToIntersection } from './controller-
|
|
2
|
+
import { F as FeltController, cu as UnwrapPromise, z as zInfer, a as Basemap, i as ElementChangeCallbackParams, l as ElementGroupChangeCallbackParams, E as Element, W as MapInteractionEvent, ax as FilterTernary, a6 as LayerChangeCallbackParams, a9 as LayerGroupChangeCallbackParams, ad as LegendItemChangeCallbackParams, aB as LayerFilters, aA as LayerBoundaries, aW as EntityNode, bv as ToolType, bt as ToolSettingsChangeEvent, cv as uiActionTriggerSchema, al as LayerFeature, cw as uiFeatureActionSchema, c0 as UIPanelElementCreate, cx as UIPanelElementCreateClonable, cy as uiPanelCreateSchema, cz as UIButtonElementCreateClonable, cA as MakeClonableSchema, bN as UITextElementCreate, bT as UIDividerElementCreate, bW as UITextInputElementCreate, bZ as UISelectElementCreate, bQ as UIFlexibleSpaceElementCreate, cB as UIButtonRowElementCreateClonable, c9 as UICheckboxGroupElementCreate, cc as UIRadioGroupElementCreate, cf as UIToggleGroupElementCreate, ci as UIIframeElementCreate, cs as ViewportState, cC as PromiseOrNot, cD as UnionToIntersection } from './controller-CYMpb_Ub.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, cu as UnwrapPromise, z as zInfer, a as Basemap, i as ElementChangeCallbackParams, l as ElementGroupChangeCallbackParams, E as Element, W as MapInteractionEvent, ax as FilterTernary, a6 as LayerChangeCallbackParams, a9 as LayerGroupChangeCallbackParams, ad as LegendItemChangeCallbackParams, aB as LayerFilters, aA as LayerBoundaries, aW as EntityNode, bv as ToolType, bt as ToolSettingsChangeEvent, cv as uiActionTriggerSchema, al as LayerFeature, cw as uiFeatureActionSchema, c0 as UIPanelElementCreate, cx as UIPanelElementCreateClonable, cy as uiPanelCreateSchema, cz as UIButtonElementCreateClonable, cA as MakeClonableSchema, bN as UITextElementCreate, bT as UIDividerElementCreate, bW as UITextInputElementCreate, bZ as UISelectElementCreate, bQ as UIFlexibleSpaceElementCreate, cB as UIButtonRowElementCreateClonable, c9 as UICheckboxGroupElementCreate, cc as UIRadioGroupElementCreate, cf as UIToggleGroupElementCreate, ci as UIIframeElementCreate, cs as ViewportState, cC as PromiseOrNot, cD as UnionToIntersection } from './controller-
|
|
2
|
+
import { F as FeltController, cu as UnwrapPromise, z as zInfer, a as Basemap, i as ElementChangeCallbackParams, l as ElementGroupChangeCallbackParams, E as Element, W as MapInteractionEvent, ax as FilterTernary, a6 as LayerChangeCallbackParams, a9 as LayerGroupChangeCallbackParams, ad as LegendItemChangeCallbackParams, aB as LayerFilters, aA as LayerBoundaries, aW as EntityNode, bv as ToolType, bt as ToolSettingsChangeEvent, cv as uiActionTriggerSchema, al as LayerFeature, cw as uiFeatureActionSchema, c0 as UIPanelElementCreate, cx as UIPanelElementCreateClonable, cy as uiPanelCreateSchema, cz as UIButtonElementCreateClonable, cA as MakeClonableSchema, bN as UITextElementCreate, bT as UIDividerElementCreate, bW as UITextInputElementCreate, bZ as UISelectElementCreate, bQ as UIFlexibleSpaceElementCreate, cB as UIButtonRowElementCreateClonable, c9 as UICheckboxGroupElementCreate, cc as UIRadioGroupElementCreate, cf as UIToggleGroupElementCreate, ci as UIIframeElementCreate, cs as ViewportState, cC as PromiseOrNot, cD as UnionToIntersection } from './controller-CYMpb_Ub.js';
|
|
3
3
|
|
|
4
4
|
type FeltControllerFunctions = Omit<FeltController, "iframe">;
|
|
5
5
|
type Method<TRequest extends {
|