@ogc-maps/storybook-components 0.14.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/LICENSE +661 -0
  2. package/dist/{BasemapSwitcher-BW7lyZ2Y.js → BasemapSwitcher-DuqVusX0.js} +9 -9
  3. package/dist/CollapsibleControl-BTIkiTmU.js +60 -0
  4. package/dist/CoordinateDisplay-BblQ34mS.js +154 -0
  5. package/dist/{ExportButton-Ck1dESnc.js → ExportButton-C8hCCsav.js} +7 -7
  6. package/dist/{FeatureDetailPanel-CkFpdEKW.js → FeatureDetailPanel-DgCHiNi9.js} +16 -16
  7. package/dist/FeatureTooltip-DHjMZC0u.js +49 -0
  8. package/dist/{LayerPanel-SCdJ8948.js → LayerPanel-BkDbZ66Z.js} +23 -23
  9. package/dist/Legend-CvBd-v0n.js +285 -0
  10. package/dist/PropertyList-0EonV_BQ.js +33 -0
  11. package/dist/SearchPanel-DIb7aYVs.js +725 -0
  12. package/dist/components/BasemapSwitcher/index.js +1 -1
  13. package/dist/components/CollapsibleControl/CollapsibleControl.d.ts +4 -1
  14. package/dist/components/CollapsibleControl/CollapsibleControl.d.ts.map +1 -1
  15. package/dist/components/CollapsibleControl/index.js +1 -1
  16. package/dist/components/CompassControl/CompassControl.d.ts +19 -0
  17. package/dist/components/CompassControl/CompassControl.d.ts.map +1 -0
  18. package/dist/components/CompassControl/index.d.ts +3 -0
  19. package/dist/components/CompassControl/index.d.ts.map +1 -0
  20. package/dist/components/CoordinateDisplay/CoordinateDisplay.d.ts +35 -4
  21. package/dist/components/CoordinateDisplay/CoordinateDisplay.d.ts.map +1 -1
  22. package/dist/components/CoordinateDisplay/CoordinateDisplay.test.d.ts +2 -0
  23. package/dist/components/CoordinateDisplay/CoordinateDisplay.test.d.ts.map +1 -0
  24. package/dist/components/CoordinateDisplay/index.d.ts +1 -1
  25. package/dist/components/CoordinateDisplay/index.d.ts.map +1 -1
  26. package/dist/components/CoordinateDisplay/index.js +5 -3
  27. package/dist/components/Cql2FilterEditor/Cql2FilterEditor.d.ts +9 -0
  28. package/dist/components/Cql2FilterEditor/Cql2FilterEditor.d.ts.map +1 -0
  29. package/dist/components/Cql2FilterEditor/Cql2Preview.d.ts +6 -0
  30. package/dist/components/Cql2FilterEditor/Cql2Preview.d.ts.map +1 -0
  31. package/dist/components/Cql2FilterEditor/FilterRuleEditor.d.ts +9 -0
  32. package/dist/components/Cql2FilterEditor/FilterRuleEditor.d.ts.map +1 -0
  33. package/dist/components/Cql2FilterEditor/FilterRuleGroupEditor.d.ts +10 -0
  34. package/dist/components/Cql2FilterEditor/FilterRuleGroupEditor.d.ts.map +1 -0
  35. package/dist/components/Cql2FilterEditor/FilterValueInput.d.ts +12 -0
  36. package/dist/components/Cql2FilterEditor/FilterValueInput.d.ts.map +1 -0
  37. package/dist/components/Cql2FilterEditor/ParameterizableField.d.ts +30 -0
  38. package/dist/components/Cql2FilterEditor/ParameterizableField.d.ts.map +1 -0
  39. package/dist/components/Cql2FilterEditor/index.d.ts +2 -0
  40. package/dist/components/Cql2FilterEditor/index.d.ts.map +1 -0
  41. package/dist/components/Cql2FilterEditor/operatorOptions.d.ts +9 -0
  42. package/dist/components/Cql2FilterEditor/operatorOptions.d.ts.map +1 -0
  43. package/dist/components/Cql2FilterEditor/styles.d.ts +3 -0
  44. package/dist/components/Cql2FilterEditor/styles.d.ts.map +1 -0
  45. package/dist/components/ExportButton/index.js +1 -1
  46. package/dist/components/ExportModal/ExportModal.d.ts +20 -1
  47. package/dist/components/ExportModal/ExportModal.d.ts.map +1 -1
  48. package/dist/components/ExportModal/index.d.ts +1 -1
  49. package/dist/components/ExportModal/index.d.ts.map +1 -1
  50. package/dist/components/FeatureDetailPanel/index.js +1 -1
  51. package/dist/components/FeatureTooltip/index.js +1 -1
  52. package/dist/components/GlobalSearchBar/GlobalSearchBar.d.ts +25 -0
  53. package/dist/components/GlobalSearchBar/GlobalSearchBar.d.ts.map +1 -0
  54. package/dist/components/GlobalSearchBar/GlobalSearchBar.test.d.ts +2 -0
  55. package/dist/components/GlobalSearchBar/GlobalSearchBar.test.d.ts.map +1 -0
  56. package/dist/components/GlobalSearchBar/index.d.ts +3 -0
  57. package/dist/components/GlobalSearchBar/index.d.ts.map +1 -0
  58. package/dist/components/GlobalSearchConfigEditor/GlobalSearchConfigEditor.d.ts +22 -0
  59. package/dist/components/GlobalSearchConfigEditor/GlobalSearchConfigEditor.d.ts.map +1 -0
  60. package/dist/components/GlobalSearchConfigEditor/GlobalSearchConfigEditor.test.d.ts +2 -0
  61. package/dist/components/GlobalSearchConfigEditor/GlobalSearchConfigEditor.test.d.ts.map +1 -0
  62. package/dist/components/GlobalSearchConfigEditor/index.d.ts +3 -0
  63. package/dist/components/GlobalSearchConfigEditor/index.d.ts.map +1 -0
  64. package/dist/components/ImageryEditor/ImageryEditor.d.ts +0 -1
  65. package/dist/components/ImageryEditor/ImageryEditor.d.ts.map +1 -1
  66. package/dist/components/ImageryEditor/index.d.ts +2 -1
  67. package/dist/components/ImageryEditor/index.d.ts.map +1 -1
  68. package/dist/components/ImageryPanel/ImageryPanel.d.ts.map +1 -1
  69. package/dist/components/InfoControl/InfoControl.d.ts +12 -0
  70. package/dist/components/InfoControl/InfoControl.d.ts.map +1 -0
  71. package/dist/components/InfoControl/InfoModal.d.ts +16 -0
  72. package/dist/components/InfoControl/InfoModal.d.ts.map +1 -0
  73. package/dist/components/InfoControl/index.d.ts +5 -0
  74. package/dist/components/InfoControl/index.d.ts.map +1 -0
  75. package/dist/components/LayerEditor/LayerEditor.d.ts +6 -1
  76. package/dist/components/LayerEditor/LayerEditor.d.ts.map +1 -1
  77. package/dist/components/LayerEditor/LayerList.d.ts +8 -1
  78. package/dist/components/LayerEditor/LayerList.d.ts.map +1 -1
  79. package/dist/components/LayerEditor/index.d.ts +1 -1
  80. package/dist/components/LayerEditor/index.d.ts.map +1 -1
  81. package/dist/components/LayerPanel/index.js +1 -1
  82. package/dist/components/Legend/Legend.d.ts +7 -1
  83. package/dist/components/Legend/Legend.d.ts.map +1 -1
  84. package/dist/components/Legend/index.js +1 -1
  85. package/dist/components/PropertyFilterPanel/PropertyFilterPanel.d.ts +21 -0
  86. package/dist/components/PropertyFilterPanel/PropertyFilterPanel.d.ts.map +1 -0
  87. package/dist/components/PropertyFilterPanel/index.d.ts +3 -0
  88. package/dist/components/PropertyFilterPanel/index.d.ts.map +1 -0
  89. package/dist/components/QueryPanel/QueryPanel.d.ts +14 -0
  90. package/dist/components/QueryPanel/QueryPanel.d.ts.map +1 -0
  91. package/dist/components/QueryPanel/index.d.ts +3 -0
  92. package/dist/components/QueryPanel/index.d.ts.map +1 -0
  93. package/dist/components/ResultsDrawer/ResultsDrawer.d.ts +29 -4
  94. package/dist/components/ResultsDrawer/ResultsDrawer.d.ts.map +1 -1
  95. package/dist/components/ResultsDrawer/index.d.ts +1 -1
  96. package/dist/components/ResultsDrawer/index.d.ts.map +1 -1
  97. package/dist/components/ResultsDrawer/tableUtils.d.ts +11 -0
  98. package/dist/components/ResultsDrawer/tableUtils.d.ts.map +1 -0
  99. package/dist/components/ScaleBarControl/ScaleBarControl.d.ts +32 -0
  100. package/dist/components/ScaleBarControl/ScaleBarControl.d.ts.map +1 -0
  101. package/dist/components/ScaleBarControl/index.d.ts +2 -0
  102. package/dist/components/ScaleBarControl/index.d.ts.map +1 -0
  103. package/dist/components/SearchPanel/SearchPanel.d.ts +15 -2
  104. package/dist/components/SearchPanel/SearchPanel.d.ts.map +1 -1
  105. package/dist/components/SearchPanel/index.js +1 -1
  106. package/dist/components/SelectionPanel/SelectionPanel.d.ts +3 -1
  107. package/dist/components/SelectionPanel/SelectionPanel.d.ts.map +1 -1
  108. package/dist/components/SideMenuPanel/SideMenuPanel.d.ts +51 -0
  109. package/dist/components/SideMenuPanel/SideMenuPanel.d.ts.map +1 -0
  110. package/dist/components/SideMenuPanel/index.d.ts +3 -0
  111. package/dist/components/SideMenuPanel/index.d.ts.map +1 -0
  112. package/dist/components/SourceEditor/SourceEditor.d.ts +3 -1
  113. package/dist/components/SourceEditor/SourceEditor.d.ts.map +1 -1
  114. package/dist/components/SourceEditor/SourceList.d.ts +6 -1
  115. package/dist/components/SourceEditor/SourceList.d.ts.map +1 -1
  116. package/dist/components/SourceEditor/index.d.ts +1 -1
  117. package/dist/components/SourceEditor/index.d.ts.map +1 -1
  118. package/dist/components/StyleEditor/DataDrivenColorEditor.d.ts +8 -3
  119. package/dist/components/StyleEditor/DataDrivenColorEditor.d.ts.map +1 -1
  120. package/dist/components/StyleEditor/PropertyField.d.ts +6 -3
  121. package/dist/components/StyleEditor/PropertyField.d.ts.map +1 -1
  122. package/dist/components/StyleEditor/PropertyGroup.d.ts +6 -3
  123. package/dist/components/StyleEditor/PropertyGroup.d.ts.map +1 -1
  124. package/dist/components/StyleEditor/StyleEditor.d.ts +7 -3
  125. package/dist/components/StyleEditor/StyleEditor.d.ts.map +1 -1
  126. package/dist/components/UIConfigEditor/UIConfigEditor.d.ts +13 -2
  127. package/dist/components/UIConfigEditor/UIConfigEditor.d.ts.map +1 -1
  128. package/dist/components/UserMenu/UserMenu.d.ts +15 -0
  129. package/dist/components/UserMenu/UserMenu.d.ts.map +1 -0
  130. package/dist/components/UserMenu/index.d.ts +3 -0
  131. package/dist/components/UserMenu/index.d.ts.map +1 -0
  132. package/dist/components/ViewEditor/ViewEditor.d.ts.map +1 -1
  133. package/dist/components/index.d.ts +26 -5
  134. package/dist/components/index.d.ts.map +1 -1
  135. package/dist/components/shared/controlIcons.d.ts +10 -0
  136. package/dist/components/shared/controlIcons.d.ts.map +1 -0
  137. package/dist/geo-DUdRIR7u.js +9776 -0
  138. package/dist/hooks/index.d.ts +5 -3
  139. package/dist/hooks/index.d.ts.map +1 -1
  140. package/dist/hooks/index.js +68 -59
  141. package/dist/hooks/useExport.d.ts +7 -7
  142. package/dist/hooks/useExport.d.ts.map +1 -1
  143. package/dist/id-C2J6iu8_.js +11 -0
  144. package/dist/index-BtQnyWPg.js +3718 -0
  145. package/dist/main.js +13801 -2600
  146. package/dist/schemas/config.d.ts +2127 -5011
  147. package/dist/schemas/config.d.ts.map +1 -1
  148. package/dist/schemas/index.d.ts +1 -1
  149. package/dist/schemas/index.d.ts.map +1 -1
  150. package/dist/schemas/index.js +35 -24
  151. package/dist/style.css +1 -1
  152. package/dist/types/index.d.ts +47 -2
  153. package/dist/types/index.d.ts.map +1 -1
  154. package/dist/types/index.js +56 -33
  155. package/dist/useSelection-BFHYsPvU.js +224 -0
  156. package/dist/utils/colorPalettes.d.ts +4 -2
  157. package/dist/utils/colorPalettes.d.ts.map +1 -1
  158. package/dist/utils/colorThemes.d.ts +12 -0
  159. package/dist/utils/colorThemes.d.ts.map +1 -0
  160. package/dist/utils/cql2.d.ts +34 -5
  161. package/dist/utils/cql2.d.ts.map +1 -1
  162. package/dist/utils/exportConverters.d.ts +16 -0
  163. package/dist/utils/exportConverters.d.ts.map +1 -0
  164. package/dist/utils/geo.d.ts +59 -0
  165. package/dist/utils/geo.d.ts.map +1 -1
  166. package/dist/utils/id.d.ts +2 -0
  167. package/dist/utils/id.d.ts.map +1 -0
  168. package/dist/utils/index.d.ts +9 -0
  169. package/dist/utils/index.d.ts.map +1 -1
  170. package/dist/utils/index.js +477 -0
  171. package/dist/utils/ogcApi.d.ts +31 -6
  172. package/dist/utils/ogcApi.d.ts.map +1 -1
  173. package/dist/utils/propertyFilters.d.ts +35 -0
  174. package/dist/utils/propertyFilters.d.ts.map +1 -0
  175. package/dist/utils/queryParameters.d.ts +23 -0
  176. package/dist/utils/queryParameters.d.ts.map +1 -0
  177. package/dist/utils/queryableHelpers.d.ts +4 -0
  178. package/dist/utils/queryableHelpers.d.ts.map +1 -1
  179. package/dist/utils/slugify.d.ts +2 -0
  180. package/dist/utils/slugify.d.ts.map +1 -0
  181. package/package.json +31 -14
  182. package/dist/CollapsibleControl-qo9daiD8.js +0 -53
  183. package/dist/CoordinateDisplay-PxPmVjpm.js +0 -47
  184. package/dist/FeatureTooltip-DxzN-jnp.js +0 -49
  185. package/dist/Legend-BLWBzD7Y.js +0 -275
  186. package/dist/PropertyList-BGXHLVBM.js +0 -33
  187. package/dist/SearchPanel-4Y12jfuP.js +0 -401
  188. package/dist/components/PropertyDisplayEditor/__tests__/PropertyDisplayEditor.test.d.ts +0 -2
  189. package/dist/components/PropertyDisplayEditor/__tests__/PropertyDisplayEditor.test.d.ts.map +0 -1
  190. package/dist/geo-PA_KiJwy.js +0 -1169
  191. package/dist/index-Cz_PEKV1.js +0 -3035
  192. package/dist/schemas/__tests__/config.test.d.ts +0 -2
  193. package/dist/schemas/__tests__/config.test.d.ts.map +0 -1
  194. package/dist/utils/__tests__/cql2.test.d.ts +0 -2
  195. package/dist/utils/__tests__/cql2.test.d.ts.map +0 -1
  196. package/dist/utils/__tests__/expressionColors.test.d.ts +0 -2
  197. package/dist/utils/__tests__/expressionColors.test.d.ts.map +0 -1
  198. package/dist/utils/__tests__/propertyDisplay.test.d.ts +0 -2
  199. package/dist/utils/__tests__/propertyDisplay.test.d.ts.map +0 -1
  200. package/dist/utils/__tests__/queryableHelpers.test.d.ts +0 -2
  201. package/dist/utils/__tests__/queryableHelpers.test.d.ts.map +0 -1
  202. package/dist/utils/__tests__/wkt.test.d.ts +0 -2
  203. package/dist/utils/__tests__/wkt.test.d.ts.map +0 -1
@@ -10,12 +10,14 @@ export { useOgcQueryables, type UseOgcQueryablesResult } from './useOgcQueryable
10
10
  export { useOgcCollectionDetail, type UseOgcCollectionDetailResult } from './useOgcCollectionDetail';
11
11
  export { useMeasure, type UseMeasureResult } from './useMeasure';
12
12
  export { useSelection, type UseSelectionResult } from './useSelection';
13
- export type { OgcApiSource, LayerConfig, MapConfig, UIConfig, ViewConfig, StyleConfig, FilterConfig, LegendConfig, SearchConfig, SearchField, TextSearchField, NumberSearchField, DatetimeSearchField, SelectSearchField, ImageryLayerConfig, SourceAuth, PropertyDisplay, PropertyDisplayConfig, } from '../types';
13
+ export type { OgcApiSource, LayerConfig, MapConfig, UIConfig, ViewConfig, StyleConfig, FilterConfig, LegendConfig, SearchConfig, SearchField, TextSearchField, NumberSearchField, DatetimeSearchField, SelectSearchField, ImageryLayerConfig, SourceAuth, PropertyDisplay, PropertyDisplayConfig, FilterOperator, FilterRuleValue, SpatialConfig, SpatialConstraint, FilterRule, FilterRuleGroup, Cql2FilterConfig, Cql2QueryShape, RelativeDateValue, DateRangeValue, ComputedRangeValue, SortField, } from '../types';
14
14
  export { resolvePropertyDisplay } from '../utils/propertyDisplay';
15
15
  export { resolveStyleWithSprites } from '../utils/spriteUtils';
16
16
  export type SearchFieldType = SearchField['type'];
17
17
  export { fetchCollections, fetchFeatures, fetchFeatureById, fetchQueryables, fetchCollectionDetail, fetchConformance, fetchTileJson, fetchFeatureCount, fetchDistinctValues, getFilteredVectorTileUrl, getCql2FilteredVectorTileUrl, getTileJsonUrl, getVectorTileUrl, getVectorTileSourceKey, buildGeometryFilter, getImageryTileUrl, fetchGenericTileJson, tileSizeFromTileJson, detectTileSourceType, appendAuth, authHeaders, stripTrailingSlash, type OgcCollection, type OgcCollectionsResponse, type GeoJsonFeature, type OgcFeatureCollection, type OgcQueryables, type OgcConformance, type TileJson, type QueryableProperty, type FetchFeaturesOptions, } from '../utils/ogcApi';
18
- export { eq, neq, gt, gte, lt, lte, between, like, inList, isNull, and, or, not, tAfter, tBefore, tDuring, fromSimpleFilters, fromStructuredFilters, serializeCql2, sIntersects, sWithin, sDwithin, type CQL2Expression, type CQL2PropertyRef, type CQL2Date, type CQL2Timestamp, type CQL2Interval, type CQL2Geometry, } from '../utils/cql2';
19
- export { bboxFromGeometry, type BBox } from '../utils/geo';
18
+ export { eq, neq, gt, gte, lt, lte, between, like, inList, isNull, and, or, not, tAfter, tBefore, tDuring, fromSimpleFilters, fromStructuredFilters, fromFilterRuleGroup, buildCql2Query, resolveRelativeDate, isFilterRuleGroup, serializeCql2, sIntersects, sWithin, sDwithin, type CQL2Expression, type CQL2PropertyRef, type CQL2Date, type CQL2Timestamp, type CQL2Interval, type CQL2Geometry, } from '../utils/cql2';
19
+ export { bboxFromGeometry, combineGeometries, type BBox } from '../utils/geo';
20
+ export { extractQueryParameters, queryRequiresGeometry, type QueryParameter } from '../utils/queryParameters';
21
+ export { getGeometryPropertyNames } from '../utils/queryableHelpers';
20
22
  export type { SelectionMode, SelectedFeature } from '../utils/selection';
21
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,KAAK,mBAAmB,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACjG,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAC3G,OAAO,EAAE,aAAa,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACnF,OAAO,EAAE,sBAAsB,EAAE,KAAK,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AACrG,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAGvE,YAAY,EACV,YAAY,E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B,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,OAAO,EACP,QAAQ,EACR,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,YAAY,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,KAAK,IAAI,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC9G,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,61 +1,70 @@
1
- import { D as a, a as t, b as l, c as r, d as i, e as o, f as c, g as u, h as n, i as f, j as h, k as T, l as g, m as F, n as d, o as p, p as y, q as m, r as C, s as S, t as b, u as D, v as O, w as U, x as V, y as q, z as v, A as x, B as A, C as E, E as J, F as w, G as B, H as G, I, J as z, K as L, L as M, M as P, N as Q, O as R, P as W, Q as _, R as k, S as H, T as K, U as N, V as X, W as j, X as Y, Y as Z, Z as $, _ as ee, $ as se, a0 as ae, a1 as te, a2 as le, a3 as re } from "../geo-PA_KiJwy.js";
1
+ import { u as a, a as t, b as r, c as l, d as i, e as o, f as u, g as c } from "../useSelection-BFHYsPvU.js";
2
+ import { D as f, a as m, b as g, c as y, d as h, e as T, f as p, g as F, h as d, i as C, j as b, k as S, l as D, m as G, n as q, o as v, p as x, q as O, r as R, s as U, t as V, u as A, v as E, w as J, x as P, y as Q, z as w, A as B, B as I, C as z, E as L, F as M, G as N, H as W, I as _, J as k, K as H, L as K, M as X, N as j, O as Y, P as Z, Q as $, R as ee, S as se, T as ae, U as te, V as re, W as le, X as ie, Y as oe, Z as ue, _ as ce, $ as ne, a0 as fe, a1 as me, a2 as ge, a3 as ye } from "../geo-DUdRIR7u.js";
2
3
  export {
3
- a as DEFAULT_EXPORT_FORMATS,
4
- t as and,
5
- l as appendAuth,
6
- r as authHeaders,
7
- i as bboxFromGeometry,
8
- o as between,
9
- c as buildGeometryFilter,
10
- u as detectTileSourceType,
11
- n as downloadBlob,
12
- f as eq,
13
- h as featuresToCsv,
14
- T as fetchCollectionDetail,
15
- g as fetchCollections,
16
- F as fetchConformance,
17
- d as fetchDistinctValues,
18
- p as fetchFeatureById,
19
- y as fetchFeatureCount,
20
- m as fetchFeatures,
21
- C as fetchGenericTileJson,
22
- S as fetchQueryables,
23
- b as fetchTileJson,
24
- D as fromSimpleFilters,
25
- O as fromStructuredFilters,
26
- U as getCql2FilteredVectorTileUrl,
27
- V as getFilteredVectorTileUrl,
28
- q as getImageryTileUrl,
29
- v as getTileJsonUrl,
30
- x as getVectorTileSourceKey,
31
- A as getVectorTileUrl,
32
- E as gt,
33
- J as gte,
34
- w as inList,
35
- B as isNull,
36
- G as like,
37
- I as lt,
38
- z as lte,
39
- L as neq,
40
- M as not,
41
- P as or,
42
- Q as resolvePropertyDisplay,
43
- R as resolveStyleWithSprites,
44
- W as sDwithin,
45
- _ as sIntersects,
46
- k as sWithin,
47
- H as serializeCql2,
48
- K as stripTrailingSlash,
49
- N as tAfter,
50
- X as tBefore,
51
- j as tDuring,
52
- Y as tileSizeFromTileJson,
53
- Z as useCsvExport,
54
- $ as useExport,
55
- ee as useMeasure,
56
- se as useOgcCollectionDetail,
57
- ae as useOgcCollections,
58
- te as useOgcFeatures,
59
- le as useOgcQueryables,
60
- re as useSelection
4
+ f as DEFAULT_EXPORT_FORMATS,
5
+ m as and,
6
+ g as appendAuth,
7
+ y as authHeaders,
8
+ h as bboxFromGeometry,
9
+ T as between,
10
+ p as buildCql2Query,
11
+ F as buildGeometryFilter,
12
+ d as combineGeometries,
13
+ C as detectTileSourceType,
14
+ b as downloadBlob,
15
+ S as eq,
16
+ D as extractQueryParameters,
17
+ G as featuresToCsv,
18
+ q as fetchCollectionDetail,
19
+ v as fetchCollections,
20
+ x as fetchConformance,
21
+ O as fetchDistinctValues,
22
+ R as fetchFeatureById,
23
+ U as fetchFeatureCount,
24
+ V as fetchFeatures,
25
+ A as fetchGenericTileJson,
26
+ E as fetchQueryables,
27
+ J as fetchTileJson,
28
+ P as fromFilterRuleGroup,
29
+ Q as fromSimpleFilters,
30
+ w as fromStructuredFilters,
31
+ B as getCql2FilteredVectorTileUrl,
32
+ I as getFilteredVectorTileUrl,
33
+ z as getGeometryPropertyNames,
34
+ L as getImageryTileUrl,
35
+ M as getTileJsonUrl,
36
+ N as getVectorTileSourceKey,
37
+ W as getVectorTileUrl,
38
+ _ as gt,
39
+ k as gte,
40
+ H as inList,
41
+ K as isFilterRuleGroup,
42
+ X as isNull,
43
+ j as like,
44
+ Y as lt,
45
+ Z as lte,
46
+ $ as neq,
47
+ ee as not,
48
+ se as or,
49
+ ae as queryRequiresGeometry,
50
+ te as resolvePropertyDisplay,
51
+ re as resolveRelativeDate,
52
+ le as resolveStyleWithSprites,
53
+ ie as sDwithin,
54
+ oe as sIntersects,
55
+ ue as sWithin,
56
+ ce as serializeCql2,
57
+ ne as stripTrailingSlash,
58
+ fe as tAfter,
59
+ me as tBefore,
60
+ ge as tDuring,
61
+ ye as tileSizeFromTileJson,
62
+ a as useCsvExport,
63
+ t as useExport,
64
+ r as useMeasure,
65
+ l as useOgcCollectionDetail,
66
+ i as useOgcCollections,
67
+ o as useOgcFeatures,
68
+ u as useOgcQueryables,
69
+ c as useSelection
61
70
  };
@@ -1,12 +1,7 @@
1
1
  import { GeoJsonFeature } from '../utils/ogcApi';
2
2
  import { CQL2Expression } from '../utils/cql2';
3
- export type FormatConverter = (features: GeoJsonFeature[], collectionId: string) => Promise<{
4
- blob: Blob;
5
- filename: string;
6
- }> | {
7
- blob: Blob;
8
- filename: string;
9
- };
3
+ import { FormatConverter } from '../utils/exportConverters';
4
+ export type { FormatConverter };
10
5
  export interface UseExportOptions {
11
6
  /** Default base URL. Can be overridden per-call via runExport's baseUrl parameter. */
12
7
  baseUrl?: string;
@@ -15,6 +10,11 @@ export interface UseExportOptions {
15
10
  }
16
11
  export interface UseExportResult {
17
12
  runExport: (collectionId: string, formatId: string, filename: string, cql2Filter?: CQL2Expression, baseUrl?: string) => Promise<void>;
13
+ /**
14
+ * Export an explicit list of already-in-memory features without hitting the
15
+ * OGC API. Used by the ExportModal's "Selected only" mode.
16
+ */
17
+ exportFeatures: (features: GeoJsonFeature[], collectionId: string, formatId: string, filename: string) => Promise<void>;
18
18
  loading: boolean;
19
19
  progress: string | null;
20
20
  error: Error | null;
@@ -1 +1 @@
1
- {"version":3,"file":"useExport.d.ts","sourceRoot":"","sources":["../../src/hooks/useExport.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAErE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,MAAM,MAAM,eAAe,GAAG,CAC5B,QAAQ,EAAE,cAAc,EAAE,EAC1B,YAAY,EAAE,MAAM,KACjB,OAAO,CAAC;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAElF,MAAM,WAAW,gBAAgB;IAC/B,sFAAsF;IACtF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;CAC7C;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,CACT,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,UAAU,CAAC,EAAE,cAAc,EAC3B,OAAO,CAAC,EAAE,MAAM,KACb,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,OAAO,EAAE,OA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mB,EAC5B,KAAe,EACf,UAAU,GACX,EAAE,gBAAgB,GAAG,eAAe,CAkGpC"}
@@ -0,0 +1,11 @@
1
+ function n() {
2
+ if (typeof crypto < "u" && typeof crypto.randomUUID == "function")
3
+ return crypto.randomUUID();
4
+ const t = crypto.getRandomValues(new Uint8Array(16));
5
+ t[6] = t[6] & 15 | 64, t[8] = t[8] & 63 | 128;
6
+ const e = Array.from(t, (r) => r.toString(16).padStart(2, "0")).join("");
7
+ return `${e.slice(0, 8)}-${e.slice(8, 12)}-${e.slice(12, 16)}-${e.slice(16, 20)}-${e.slice(20)}`;
8
+ }
9
+ export {
10
+ n as g
11
+ };