@ogc-maps/storybook-components 0.5.0 → 0.5.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.
Files changed (111) hide show
  1. package/dist/{FeatureDetailPanel-DpcaTS9I.js → FeatureDetailPanel-CkFpdEKW.js} +8 -7
  2. package/dist/{FeatureTooltip-CM0ZTudi.js → FeatureTooltip-Db1LgLQV.js} +9 -7
  3. package/dist/{LayerPanel-BHpb8dbm.js → LayerPanel-SCdJ8948.js} +21 -21
  4. package/dist/{Legend-D4cc1JzQ.js → Legend-BMrkY-rw.js} +4 -4
  5. package/dist/PropertyList-BGXHLVBM.js +33 -0
  6. package/dist/components/BasemapEditor/BasemapEditor.d.ts +7 -0
  7. package/dist/components/BasemapEditor/BasemapEditor.d.ts.map +1 -0
  8. package/dist/components/BasemapEditor/BasemapList.d.ts +7 -0
  9. package/dist/components/BasemapEditor/BasemapList.d.ts.map +1 -0
  10. package/dist/components/BasemapEditor/index.d.ts +5 -0
  11. package/dist/components/BasemapEditor/index.d.ts.map +1 -0
  12. package/dist/components/CollectionBrowser/CollectionBrowser.d.ts +8 -0
  13. package/dist/components/CollectionBrowser/CollectionBrowser.d.ts.map +1 -0
  14. package/dist/components/CollectionBrowser/index.d.ts +3 -0
  15. package/dist/components/CollectionBrowser/index.d.ts.map +1 -0
  16. package/dist/components/ConfigPreview/ConfigPreview.d.ts +5 -0
  17. package/dist/components/ConfigPreview/ConfigPreview.d.ts.map +1 -0
  18. package/dist/components/ConfigPreview/index.d.ts +3 -0
  19. package/dist/components/ConfigPreview/index.d.ts.map +1 -0
  20. package/dist/components/FeatureDetailPanel/FeatureDetailPanel.d.ts +2 -1
  21. package/dist/components/FeatureDetailPanel/FeatureDetailPanel.d.ts.map +1 -1
  22. package/dist/components/FeatureDetailPanel/index.js +1 -1
  23. package/dist/components/FeatureTooltip/FeatureTooltip.d.ts +2 -1
  24. package/dist/components/FeatureTooltip/FeatureTooltip.d.ts.map +1 -1
  25. package/dist/components/FeatureTooltip/index.js +1 -1
  26. package/dist/components/LayerEditor/LayerEditor.d.ts +8 -0
  27. package/dist/components/LayerEditor/LayerEditor.d.ts.map +1 -0
  28. package/dist/components/LayerEditor/LayerList.d.ts +8 -0
  29. package/dist/components/LayerEditor/LayerList.d.ts.map +1 -0
  30. package/dist/components/LayerEditor/index.d.ts +5 -0
  31. package/dist/components/LayerEditor/index.d.ts.map +1 -0
  32. package/dist/components/LayerPanel/index.js +1 -1
  33. package/dist/components/Legend/index.js +1 -1
  34. package/dist/components/LegendEditor/LegendEditor.d.ts +7 -0
  35. package/dist/components/LegendEditor/LegendEditor.d.ts.map +1 -0
  36. package/dist/components/LegendEditor/LegendEntryEditor.d.ts +7 -0
  37. package/dist/components/LegendEditor/LegendEntryEditor.d.ts.map +1 -0
  38. package/dist/components/LegendEditor/index.d.ts +5 -0
  39. package/dist/components/LegendEditor/index.d.ts.map +1 -0
  40. package/dist/components/PropertyDisplayEditor/PropertyDisplayEditor.d.ts +15 -0
  41. package/dist/components/PropertyDisplayEditor/PropertyDisplayEditor.d.ts.map +1 -0
  42. package/dist/components/PropertyDisplayEditor/__tests__/PropertyDisplayEditor.test.d.ts +2 -0
  43. package/dist/components/PropertyDisplayEditor/__tests__/PropertyDisplayEditor.test.d.ts.map +1 -0
  44. package/dist/components/PropertyDisplayEditor/index.d.ts +3 -0
  45. package/dist/components/PropertyDisplayEditor/index.d.ts.map +1 -0
  46. package/dist/components/SearchFieldEditor/SearchFieldEditor.d.ts +8 -0
  47. package/dist/components/SearchFieldEditor/SearchFieldEditor.d.ts.map +1 -0
  48. package/dist/components/SearchFieldEditor/SearchFieldList.d.ts +8 -0
  49. package/dist/components/SearchFieldEditor/SearchFieldList.d.ts.map +1 -0
  50. package/dist/components/SearchFieldEditor/index.d.ts +5 -0
  51. package/dist/components/SearchFieldEditor/index.d.ts.map +1 -0
  52. package/dist/components/SourceEditor/SourceEditor.d.ts +10 -0
  53. package/dist/components/SourceEditor/SourceEditor.d.ts.map +1 -0
  54. package/dist/components/SourceEditor/SourceList.d.ts +7 -0
  55. package/dist/components/SourceEditor/SourceList.d.ts.map +1 -0
  56. package/dist/components/SourceEditor/index.d.ts +5 -0
  57. package/dist/components/SourceEditor/index.d.ts.map +1 -0
  58. package/dist/components/StyleEditor/StyleEditor.d.ts +11 -0
  59. package/dist/components/StyleEditor/StyleEditor.d.ts.map +1 -0
  60. package/dist/components/StyleEditor/index.d.ts +3 -0
  61. package/dist/components/StyleEditor/index.d.ts.map +1 -0
  62. package/dist/components/UIConfigEditor/UIConfigEditor.d.ts +7 -0
  63. package/dist/components/UIConfigEditor/UIConfigEditor.d.ts.map +1 -0
  64. package/dist/components/UIConfigEditor/index.d.ts +3 -0
  65. package/dist/components/UIConfigEditor/index.d.ts.map +1 -0
  66. package/dist/components/ViewEditor/ViewEditor.d.ts +7 -0
  67. package/dist/components/ViewEditor/ViewEditor.d.ts.map +1 -0
  68. package/dist/components/ViewEditor/index.d.ts +3 -0
  69. package/dist/components/ViewEditor/index.d.ts.map +1 -0
  70. package/dist/components/_shared/PropertyList.d.ts +2 -1
  71. package/dist/components/_shared/PropertyList.d.ts.map +1 -1
  72. package/dist/components/admin/ColorPicker.d.ts +7 -0
  73. package/dist/components/admin/ColorPicker.d.ts.map +1 -0
  74. package/dist/components/admin/ConfirmDialog.d.ts +9 -0
  75. package/dist/components/admin/ConfirmDialog.d.ts.map +1 -0
  76. package/dist/components/admin/FormField.d.ts +10 -0
  77. package/dist/components/admin/FormField.d.ts.map +1 -0
  78. package/dist/components/admin/index.d.ts +7 -0
  79. package/dist/components/admin/index.d.ts.map +1 -0
  80. package/dist/components/index.d.ts +24 -0
  81. package/dist/components/index.d.ts.map +1 -1
  82. package/dist/cql2-Dhe6Ny6v.js +352 -0
  83. package/dist/hooks/index.d.ts +5 -2
  84. package/dist/hooks/index.d.ts.map +1 -1
  85. package/dist/hooks/index.js +31 -24
  86. package/dist/hooks/useOgcCollectionDetail.d.ts +14 -0
  87. package/dist/hooks/useOgcCollectionDetail.d.ts.map +1 -0
  88. package/dist/hooks/useOgcQueryables.d.ts +14 -0
  89. package/dist/hooks/useOgcQueryables.d.ts.map +1 -0
  90. package/dist/{index-BLgVA46J.js → index-Bw9lUiuL.js} +152 -146
  91. package/dist/main.js +2090 -79
  92. package/dist/schemas/config.d.ts +81 -5
  93. package/dist/schemas/config.d.ts.map +1 -1
  94. package/dist/schemas/index.js +1 -1
  95. package/dist/style.css +1 -1
  96. package/dist/types/index.d.ts +15 -2
  97. package/dist/types/index.d.ts.map +1 -1
  98. package/dist/types/index.js +15 -13
  99. package/dist/utils/__tests__/propertyDisplay.test.d.ts +2 -0
  100. package/dist/utils/__tests__/propertyDisplay.test.d.ts.map +1 -0
  101. package/dist/utils/index.d.ts +2 -0
  102. package/dist/utils/index.d.ts.map +1 -1
  103. package/dist/utils/ogcApi.d.ts +44 -0
  104. package/dist/utils/ogcApi.d.ts.map +1 -1
  105. package/dist/utils/propertyDisplay.d.ts +6 -0
  106. package/dist/utils/propertyDisplay.d.ts.map +1 -0
  107. package/dist/utils/queryableHelpers.d.ts +35 -0
  108. package/dist/utils/queryableHelpers.d.ts.map +1 -0
  109. package/package.json +1 -1
  110. package/dist/PropertyList-BH_DTkcU.js +0 -32
  111. package/dist/cql2-BaKDic7B.js +0 -288
@@ -0,0 +1,3 @@
1
+ export { StyleEditor, defaultFill, defaultLine, defaultCircle } from './StyleEditor';
2
+ export type { StyleEditorProps } from './StyleEditor';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StyleEditor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACrF,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { UIConfig } from '../../types';
2
+ export interface UIConfigEditorProps {
3
+ value: UIConfig;
4
+ onChange: (config: UIConfig) => void;
5
+ }
6
+ export declare function UIConfigEditor({ value, onChange }: UIConfigEditorProps): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=UIConfigEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UIConfigEditor.d.ts","sourceRoot":"","sources":["../../../src/components/UIConfigEditor/UIConfigEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,QAAQ,CAAC;IAChB,QAAQ,EAAE,CAAC,MAAM,EAAE,QAAQ,KAAK,IAAI,CAAC;CACtC;AAaD,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,mBAAmB,2CAkDtE"}
@@ -0,0 +1,3 @@
1
+ export { UIConfigEditor } from './UIConfigEditor';
2
+ export type { UIConfigEditorProps } from './UIConfigEditor';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/UIConfigEditor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { ViewConfig } from '../../types';
2
+ export interface ViewEditorProps {
3
+ value: ViewConfig;
4
+ onChange: (view: ViewConfig) => void;
5
+ }
6
+ export declare function ViewEditor({ value, onChange }: ViewEditorProps): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=ViewEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewEditor.d.ts","sourceRoot":"","sources":["../../../src/components/ViewEditor/ViewEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;CACtC;AA+BD,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,eAAe,2CA2B9D"}
@@ -0,0 +1,3 @@
1
+ export { ViewEditor } from './ViewEditor';
2
+ export type { ViewEditorProps } from './ViewEditor';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ViewEditor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
@@ -2,11 +2,12 @@ export type PropertyListDensity = 'compact' | 'default';
2
2
  interface PropertyListProps {
3
3
  properties: Record<string, unknown>;
4
4
  fields?: string[];
5
+ labels?: Record<string, string>;
5
6
  maxItems?: number;
6
7
  density?: PropertyListDensity;
7
8
  className?: string;
8
9
  }
9
10
  export declare function formatPropertyValue(value: unknown): string;
10
- export declare function PropertyList({ properties, fields, maxItems, density, className, }: PropertyListProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function PropertyList({ properties, fields, labels, maxItems, density, className, }: PropertyListProps): import("react/jsx-runtime").JSX.Element;
11
12
  export {};
12
13
  //# sourceMappingURL=PropertyList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PropertyList.d.ts","sourceRoot":"","sources":["../../../src/components/_shared/PropertyList.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,SAAS,CAAC;AAExD,UAAU,iBAAiB;IACzB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAM1D;AAED,wBAAgB,YAAY,CAAC,EAC3B,UAAU,EACV,MAAM,EACN,QAAQ,EACR,OAAmB,EACnB,SAAc,GACf,EAAE,iBAAiB,2CAiCnB"}
1
+ {"version":3,"file":"PropertyList.d.ts","sourceRoot":"","sources":["../../../src/components/_shared/PropertyList.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,SAAS,CAAC;AAExD,UAAU,iBAAiB;IACzB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAM1D;AAED,wBAAgB,YAAY,CAAC,EAC3B,UAAU,EACV,MAAM,EACN,MAAM,EACN,QAAQ,EACR,OAAmB,EACnB,SAAc,GACf,EAAE,iBAAiB,2CAiCnB"}
@@ -0,0 +1,7 @@
1
+ export interface ColorPickerProps {
2
+ value: string;
3
+ onChange: (color: string) => void;
4
+ label?: string;
5
+ }
6
+ export declare function ColorPicker({ value, onChange, label }: ColorPickerProps): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=ColorPicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColorPicker.d.ts","sourceRoot":"","sources":["../../../src/components/admin/ColorPicker.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,gBAAgB,2CAavE"}
@@ -0,0 +1,9 @@
1
+ export interface ConfirmDialogProps {
2
+ open: boolean;
3
+ title: string;
4
+ description: string;
5
+ onConfirm: () => void;
6
+ onCancel: () => void;
7
+ }
8
+ export declare function ConfirmDialog({ open, title, description, onConfirm, onCancel, }: ConfirmDialogProps): import("react/jsx-runtime").JSX.Element | null;
9
+ //# sourceMappingURL=ConfirmDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfirmDialog.d.ts","sourceRoot":"","sources":["../../../src/components/admin/ConfirmDialog.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,KAAK,EACL,WAAW,EACX,SAAS,EACT,QAAQ,GACT,EAAE,kBAAkB,kDA2CpB"}
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ export interface FormFieldProps {
3
+ label: string;
4
+ error?: string;
5
+ required?: boolean;
6
+ htmlFor?: string;
7
+ children: ReactNode;
8
+ }
9
+ export declare function FormField({ label, error, required, htmlFor, children }: FormFieldProps): import("react/jsx-runtime").JSX.Element;
10
+ //# sourceMappingURL=FormField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../src/components/admin/FormField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,cAAc,2CAmBtF"}
@@ -0,0 +1,7 @@
1
+ export { FormField } from './FormField';
2
+ export type { FormFieldProps } from './FormField';
3
+ export { ColorPicker } from './ColorPicker';
4
+ export type { ColorPickerProps } from './ColorPicker';
5
+ export { ConfirmDialog } from './ConfirmDialog';
6
+ export type { ConfirmDialogProps } from './ConfirmDialog';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/admin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -16,4 +16,28 @@ export { Legend } from './Legend';
16
16
  export type { LegendProps } from './Legend';
17
17
  export { SearchPanel } from './SearchPanel';
18
18
  export type { SearchPanelProps } from './SearchPanel';
19
+ export { FormField, ColorPicker, ConfirmDialog } from './admin';
20
+ export type { FormFieldProps, ColorPickerProps, ConfirmDialogProps } from './admin';
21
+ export { SourceEditor, SourceList } from './SourceEditor';
22
+ export type { SourceEditorProps, SourceListProps } from './SourceEditor';
23
+ export { CollectionBrowser } from './CollectionBrowser';
24
+ export type { CollectionBrowserProps } from './CollectionBrowser';
25
+ export { StyleEditor, defaultFill, defaultLine, defaultCircle } from './StyleEditor';
26
+ export type { StyleEditorProps } from './StyleEditor';
27
+ export { LegendEntryEditor, LegendEditor } from './LegendEditor';
28
+ export type { LegendEntryEditorProps, LegendEditorProps } from './LegendEditor';
29
+ export { SearchFieldEditor, SearchFieldList } from './SearchFieldEditor';
30
+ export type { SearchFieldEditorProps, SearchFieldListProps } from './SearchFieldEditor';
31
+ export { PropertyDisplayEditor } from './PropertyDisplayEditor';
32
+ export type { PropertyDisplayEditorProps } from './PropertyDisplayEditor';
33
+ export { LayerEditor, LayerList } from './LayerEditor';
34
+ export type { LayerEditorProps, LayerListProps } from './LayerEditor';
35
+ export { BasemapEditor, BasemapList } from './BasemapEditor';
36
+ export type { BasemapEditorProps, BasemapListProps } from './BasemapEditor';
37
+ export { UIConfigEditor } from './UIConfigEditor';
38
+ export type { UIConfigEditorProps } from './UIConfigEditor';
39
+ export { ViewEditor } from './ViewEditor';
40
+ export type { ViewEditorProps } from './ViewEditor';
41
+ export { ConfigPreview } from './ConfigPreview';
42
+ export type { ConfigPreviewProps } from './ConfigPreview';
19
43
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,SAAS,GACV,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,sBAAsB,EACtB,sBAAsB,GACv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,qBAAqB,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,YAAY,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC7D,YAAY,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,352 @@
1
+ import { useState as f, useEffect as $, useCallback as M } from "react";
2
+ function g(e) {
3
+ return e.endsWith("/") ? e.slice(0, -1) : e;
4
+ }
5
+ async function p(e) {
6
+ const t = await fetch(e);
7
+ if (!t.ok)
8
+ throw new Error(`OGC API request failed: ${t.status} ${t.statusText} (${e})`);
9
+ return t.json();
10
+ }
11
+ async function R(e) {
12
+ const t = `${g(e)}/collections?f=json`;
13
+ return (await p(t)).collections;
14
+ }
15
+ async function j(e, t, n = {}) {
16
+ var a;
17
+ const s = g(e), r = new URLSearchParams({ f: "geojson" });
18
+ if (n.limit != null && r.set("limit", String(n.limit)), n.offset != null && r.set("offset", String(n.offset)), n.bbox && r.set("bbox", n.bbox.join(",")), (a = n.properties) != null && a.length && r.set("properties", n.properties.join(",")), n.datetime && r.set("datetime", n.datetime), n.cql2Filter)
19
+ r.set("filter-lang", "cql2-json"), r.set("filter", JSON.stringify(n.cql2Filter));
20
+ else if (n.filter)
21
+ for (const [c, o] of Object.entries(n.filter))
22
+ r.set(c, String(o));
23
+ const i = `${s}/collections/${encodeURIComponent(t)}/items?${r}`;
24
+ return p(i);
25
+ }
26
+ async function x(e, t) {
27
+ const s = `${g(e)}/collections/${encodeURIComponent(t)}/queryables?f=schemajson`;
28
+ return p(s);
29
+ }
30
+ async function k(e, t) {
31
+ const s = `${g(e)}/collections/${encodeURIComponent(t)}?f=json`;
32
+ return p(s);
33
+ }
34
+ async function V(e) {
35
+ const t = `${g(e)}/conformance?f=json`;
36
+ return p(t);
37
+ }
38
+ async function A(e, t, n = "WebMercatorQuad") {
39
+ const s = U(e, t, n);
40
+ return p(s);
41
+ }
42
+ async function B(e, t, n = {}) {
43
+ return (await j(e, t, {
44
+ ...n,
45
+ limit: 0
46
+ })).numberMatched ?? null;
47
+ }
48
+ function U(e, t, n = "WebMercatorQuad") {
49
+ return `${g(e)}/collections/${encodeURIComponent(t)}/tiles/${encodeURIComponent(n)}/tilejson.json`;
50
+ }
51
+ function G(e, t, n = "WebMercatorQuad") {
52
+ return `${g(e)}/collections/${encodeURIComponent(t)}/tiles/${encodeURIComponent(n)}/{z}/{x}/{y}`;
53
+ }
54
+ function K(e, t, n, s = "WebMercatorQuad") {
55
+ const i = `${g(e)}/collections/${encodeURIComponent(t)}/tiles/${encodeURIComponent(s)}/{z}/{x}/{y}`;
56
+ if (!n || Object.keys(n).length === 0) return i;
57
+ const a = new URLSearchParams();
58
+ for (const [c, o] of Object.entries(n))
59
+ a.set(c, String(o));
60
+ return `${i}?${a}`;
61
+ }
62
+ async function _(e, t, n, s) {
63
+ var c;
64
+ const r = s != null && s.query ? { op: "like", args: [{ property: n }, `%${s.query}%`] } : void 0, i = await j(e, t, {
65
+ properties: [n],
66
+ limit: (s == null ? void 0 : s.limit) ?? 50,
67
+ cql2Filter: r
68
+ }), a = /* @__PURE__ */ new Set();
69
+ for (const o of i.features) {
70
+ const l = (c = o.properties) == null ? void 0 : c[n];
71
+ l != null && typeof l == "string" && a.add(l);
72
+ }
73
+ return Array.from(a).sort();
74
+ }
75
+ function H(e, t, n, s = "WebMercatorQuad") {
76
+ const i = `${g(e)}/collections/${encodeURIComponent(t)}/tiles/${encodeURIComponent(s)}/{z}/{x}/{y}`;
77
+ if (!n) return i;
78
+ const a = new URLSearchParams({
79
+ "filter-lang": "cql2-json",
80
+ filter: JSON.stringify(n)
81
+ });
82
+ return `${i}?${a}`;
83
+ }
84
+ function X(e) {
85
+ const [t, n] = f([]), [s, r] = f(!1), [i, a] = f(null);
86
+ return $(() => {
87
+ if (!e) return;
88
+ let c = !1;
89
+ return r(!0), a(null), R(e).then((o) => {
90
+ c || n(o);
91
+ }).catch((o) => {
92
+ c || a(o instanceof Error ? o : new Error(String(o)));
93
+ }).finally(() => {
94
+ c || r(!1);
95
+ }), () => {
96
+ c = !0;
97
+ };
98
+ }, [e]), { collections: t, loading: s, error: i };
99
+ }
100
+ function Y(e, t) {
101
+ const [n, s] = f(null), [r, i] = f(!1), [a, c] = f(null);
102
+ return $(() => {
103
+ if (!e || !t) return;
104
+ let o = !1;
105
+ return i(!0), c(null), x(e, t).then((l) => {
106
+ o || s(l);
107
+ }).catch((l) => {
108
+ o || c(l instanceof Error ? l : new Error(String(l)));
109
+ }).finally(() => {
110
+ o || i(!1);
111
+ }), () => {
112
+ o = !0;
113
+ };
114
+ }, [e, t]), { queryables: n, loading: r, error: a };
115
+ }
116
+ function Z(e, t, n = {}) {
117
+ const [s, r] = f([]), [i, a] = f(!1), [c, o] = f(null), [l, d] = f(!1), m = JSON.stringify(n);
118
+ return $(() => {
119
+ if (!e || !t) return;
120
+ let b = !1;
121
+ a(!0), o(null);
122
+ const h = JSON.parse(m);
123
+ return j(e, t, h).then((u) => {
124
+ if (!b) {
125
+ r(u.features);
126
+ const w = h.limit ?? 10, S = h.offset ?? 0;
127
+ u.numberMatched != null ? d(S + u.features.length < u.numberMatched) : d(u.features.length >= w);
128
+ }
129
+ }).catch((u) => {
130
+ b || (o(u instanceof Error ? u : new Error(String(u))), r([]), d(!1));
131
+ }).finally(() => {
132
+ b || a(!1);
133
+ }), () => {
134
+ b = !0;
135
+ };
136
+ }, [e, t, m]), { features: s, loading: i, error: c, hasMore: l };
137
+ }
138
+ function E(e, t) {
139
+ return e.includes('"') || e.includes(t) || e.includes(`
140
+ `) ? `"${e.replace(/"/g, '""')}"` : e;
141
+ }
142
+ function q(e, t) {
143
+ const n = (e.properties ?? {})[t];
144
+ return n == null ? "" : typeof n == "object" ? JSON.stringify(n) : String(n);
145
+ }
146
+ function L(e, t = {}) {
147
+ const { fields: n, includeGeometry: s = !1, delimiter: r = "," } = t;
148
+ if (e.length === 0) return "";
149
+ const i = n ?? [...new Set(e.flatMap((o) => Object.keys(o.properties ?? {})))], a = s ? [...i, "geometry"] : i, c = e.map((o) => {
150
+ const l = i.map(
151
+ (d) => E(q(o, d), r)
152
+ );
153
+ return s && l.push(E(JSON.stringify(o.geometry), r)), l.join(r);
154
+ });
155
+ return [a.map((o) => E(o, r)).join(r), ...c].join(`
156
+ `);
157
+ }
158
+ function F(e, t) {
159
+ const n = new Blob([e], { type: "text/csv;charset=utf-8;" }), s = URL.createObjectURL(n), r = document.createElement("a");
160
+ r.href = s, r.download = t, r.style.display = "none", document.body.appendChild(r), r.click(), document.body.removeChild(r), URL.revokeObjectURL(s);
161
+ }
162
+ function ee({
163
+ baseUrl: e,
164
+ limit: t = 1e3,
165
+ csvOptions: n
166
+ }) {
167
+ const [s, r] = f(!1), [i, a] = f(null);
168
+ return { exportCsv: M(
169
+ async (o, l = `${o}.csv`, d) => {
170
+ r(!0), a(null);
171
+ const m = [], b = Math.min(t, 1e3);
172
+ let h = 0;
173
+ try {
174
+ for (; m.length < t; ) {
175
+ const w = t - m.length, S = Math.min(b, w), y = await j(e, o, {
176
+ limit: S,
177
+ offset: h,
178
+ cql2Filter: d
179
+ });
180
+ if (m.push(...y.features), h += y.features.length, y.features.length < S || y.numberMatched != null && h >= y.numberMatched) break;
181
+ }
182
+ const u = L(m, n);
183
+ F(u, l);
184
+ } catch (u) {
185
+ a(u instanceof Error ? u : new Error(String(u)));
186
+ } finally {
187
+ r(!1);
188
+ }
189
+ },
190
+ [e, t, n]
191
+ ), loading: s, error: i };
192
+ }
193
+ function te(e, t) {
194
+ const [n, s] = f(null), [r, i] = f(!1), [a, c] = f(null);
195
+ return $(() => {
196
+ if (!e || !t) return;
197
+ let o = !1;
198
+ return i(!0), c(null), k(e, t).then((l) => {
199
+ o || s(l);
200
+ }).catch((l) => {
201
+ o || c(l instanceof Error ? l : new Error(String(l)));
202
+ }).finally(() => {
203
+ o || i(!1);
204
+ }), () => {
205
+ o = !0;
206
+ };
207
+ }, [e, t]), { collection: n, loading: r, error: a };
208
+ }
209
+ function ne(e) {
210
+ if (!e) return;
211
+ const t = [], n = {};
212
+ for (const [s, r] of Object.entries(e))
213
+ r.visible !== !1 && (t.push(s), r.label && (n[s] = r.label));
214
+ return { fields: t, labels: n };
215
+ }
216
+ function C(e, t) {
217
+ return { op: "=", args: [{ property: e }, t] };
218
+ }
219
+ function re(e, t) {
220
+ return { op: "<>", args: [{ property: e }, t] };
221
+ }
222
+ function J(e, t) {
223
+ return { op: ">", args: [{ property: e }, t] };
224
+ }
225
+ function v(e, t) {
226
+ return { op: ">=", args: [{ property: e }, t] };
227
+ }
228
+ function N(e, t) {
229
+ return { op: "<", args: [{ property: e }, t] };
230
+ }
231
+ function I(e, t) {
232
+ return { op: "<=", args: [{ property: e }, t] };
233
+ }
234
+ function Q(e, t, n) {
235
+ return { op: "between", args: [{ property: e }, t, n] };
236
+ }
237
+ function se(e, t) {
238
+ return { op: "like", args: [{ property: e }, t] };
239
+ }
240
+ function oe(e, t) {
241
+ return { op: "in", args: [{ property: e }, t] };
242
+ }
243
+ function ie(e) {
244
+ return { op: "isNull", args: [{ property: e }] };
245
+ }
246
+ function O(...e) {
247
+ const t = e.filter((n) => n != null);
248
+ return t.length === 0 ? null : t.length === 1 ? t[0] : { op: "and", args: t };
249
+ }
250
+ function ce(...e) {
251
+ const t = e.filter((n) => n != null);
252
+ return t.length === 0 ? null : t.length === 1 ? t[0] : { op: "or", args: t };
253
+ }
254
+ function ae(e) {
255
+ return { op: "not", args: [e] };
256
+ }
257
+ function T(e, t) {
258
+ return { op: "t_after", args: [{ property: e }, t] };
259
+ }
260
+ function z(e, t) {
261
+ return { op: "t_before", args: [{ property: e }, t] };
262
+ }
263
+ function P(e, t, n) {
264
+ const s = "date" in t ? t.date : t.timestamp, r = "date" in n ? n.date : n.timestamp;
265
+ return { op: "t_during", args: [{ property: e }, { interval: [s, r] }] };
266
+ }
267
+ function le(e) {
268
+ const t = Object.entries(e).filter(([, n]) => n !== void 0 && n !== "").map(([n, s]) => C(n, s));
269
+ return O(...t);
270
+ }
271
+ function ue(e, t) {
272
+ const n = new Map(t.map((r) => [r.property, r])), s = Object.entries(e).map(([r, i]) => {
273
+ if (i === void 0) return null;
274
+ const a = n.get(r);
275
+ if (typeof i == "string")
276
+ return i === "" ? null : (a == null ? void 0 : a.type) === "datetime" ? C(r, { timestamp: i }) : C(r, i);
277
+ if (typeof i == "number")
278
+ return C(r, i);
279
+ if (typeof i == "object") {
280
+ if ("start" in i || "end" in i) {
281
+ const { start: c, end: o } = i;
282
+ return c && o ? P(r, { timestamp: c }, { timestamp: o }) : c ? T(r, { timestamp: c }) : o ? z(r, { timestamp: o }) : null;
283
+ }
284
+ if ("value" in i && "operator" in i) {
285
+ const { value: c, operator: o } = i;
286
+ if (c == null || String(c) === "") return null;
287
+ switch (o) {
288
+ case "gt":
289
+ return J(r, c);
290
+ case "lt":
291
+ return N(r, c);
292
+ case "gte":
293
+ return v(r, c);
294
+ case "lte":
295
+ return I(r, c);
296
+ default:
297
+ return C(r, c);
298
+ }
299
+ }
300
+ if ("min" in i && "max" in i) {
301
+ const { min: c, max: o } = i;
302
+ return c === void 0 || o === void 0 ? null : Q(r, c, o);
303
+ }
304
+ }
305
+ return null;
306
+ });
307
+ return O(...s);
308
+ }
309
+ function fe(e) {
310
+ return JSON.stringify(e);
311
+ }
312
+ export {
313
+ ce as A,
314
+ ne as B,
315
+ fe as C,
316
+ T as D,
317
+ z as E,
318
+ P as F,
319
+ ee as G,
320
+ te as H,
321
+ X as I,
322
+ Z as J,
323
+ Y as K,
324
+ F as L,
325
+ L as M,
326
+ O as a,
327
+ Q as b,
328
+ R as c,
329
+ V as d,
330
+ C as e,
331
+ k as f,
332
+ _ as g,
333
+ B as h,
334
+ j as i,
335
+ x as j,
336
+ A as k,
337
+ le as l,
338
+ ue as m,
339
+ H as n,
340
+ K as o,
341
+ U as p,
342
+ G as q,
343
+ J as r,
344
+ v as s,
345
+ oe as t,
346
+ ie as u,
347
+ se as v,
348
+ N as w,
349
+ I as x,
350
+ re as y,
351
+ ae as z
352
+ };
@@ -2,8 +2,11 @@ import { SearchField } from '../types';
2
2
  export { useOgcCollections, type UseOgcCollectionsResult } from './useOgcCollections';
3
3
  export { useOgcFeatures, type UseOgcFeaturesResult } from './useOgcFeatures';
4
4
  export { useCsvExport, type UseCsvExportOptions, type UseCsvExportResult } from './useCsvExport';
5
- export type { OgcApiSource, LayerConfig, MapConfig, UIConfig, ViewConfig, StyleConfig, FilterConfig, LegendConfig, SearchConfig, SearchField, TextSearchField, NumberSearchField, DatetimeSearchField, SelectSearchField, } from '../types';
5
+ export { useOgcQueryables, type UseOgcQueryablesResult } from './useOgcQueryables';
6
+ export { useOgcCollectionDetail, type UseOgcCollectionDetailResult } from './useOgcCollectionDetail';
7
+ export type { OgcApiSource, LayerConfig, MapConfig, UIConfig, ViewConfig, StyleConfig, FilterConfig, LegendConfig, SearchConfig, SearchField, TextSearchField, NumberSearchField, DatetimeSearchField, SelectSearchField, PropertyDisplay, PropertyDisplayConfig, } from '../types';
8
+ export { resolvePropertyDisplay } from '../utils/propertyDisplay';
6
9
  export type SearchFieldType = SearchField['type'];
7
- export { fetchCollections, fetchFeatures, fetchQueryables, fetchDistinctValues, getFilteredVectorTileUrl, getCql2FilteredVectorTileUrl, getTileJsonUrl, getVectorTileUrl, type OgcCollection, type OgcCollectionsResponse, type GeoJsonFeature, type OgcFeatureCollection, type OgcQueryables, type QueryableProperty, type FetchFeaturesOptions, } from '../utils/ogcApi';
10
+ export { fetchCollections, fetchFeatures, fetchQueryables, fetchCollectionDetail, fetchConformance, fetchTileJson, fetchFeatureCount, fetchDistinctValues, getFilteredVectorTileUrl, getCql2FilteredVectorTileUrl, getTileJsonUrl, getVectorTileUrl, type OgcCollection, type OgcCollectionsResponse, type GeoJsonFeature, type OgcFeatureCollection, type OgcQueryables, type OgcConformance, type TileJson, type QueryableProperty, type FetchFeaturesOptions, } from '../utils/ogcApi';
8
11
  export { eq, neq, gt, gte, lt, lte, between, like, inList, isNull, and, or, not, tAfter, tBefore, tDuring, fromSimpleFilters, fromStructuredFilters, serializeCql2, type CQL2Expression, type CQL2PropertyRef, type CQL2Date, type CQL2Timestamp, type CQL2Interval, } from '../utils/cql2';
9
12
  //# 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;AAEjG,YAAY,EACV,YAAY,EACZ,WAAW,EACX,SAAS,EACT,QAAQ,EACR,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,GAClB,MAAM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Z,WAAW,EACX,SAAS,EACT,QAAQ,EACR,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,qBAAqB,GACtB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;AAClD,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,wBAAwB,EACxB,4BAA4B,EAC5B,cAAc,EACd,gBAAgB,EAChB,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,GAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,EAAE,EACF,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,GAAG,EACH,OAAO,EACP,IAAI,EACJ,MAAM,EACN,MAAM,EACN,GAAG,EACH,EAAE,EACF,GAAG,EACH,MAAM,EACN,OAAO,EACP,OAAO,EACP,iBAAiB,EACjB,qBAAqB,EACrB,aAAa,EACb,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,YAAY,GAClB,MAAM,eAAe,CAAC"}
@@ -1,33 +1,40 @@
1
- import { a, b as t, e as l, f as r, c as i, d as o, g as c, h as u, i as n, j as f, k as g, l as C, m as F, n as d, o as h, p as m, q, r as p, s as T, t as U, u as V, v as b, w as x, x as D, y as k, z as v, A as w, B as y, C as z, D as A } from "../cql2-BaKDic7B.js";
1
+ import { a, b as t, e as l, f as r, c as i, d as o, g as c, h as n, i as u, j as f, k as g, l as C, m as h, n as F, o as m, p, q as D, r as d, s as q, t as y, u as T, v as b, w as O, x as U, y as V, z as v, A as x, B as J, C as k, D as w, E as z, F as A, G as B, H as E, I as Q, J as S, K as j } from "../cql2-Dhe6Ny6v.js";
2
2
  export {
3
3
  a as and,
4
4
  t as between,
5
5
  l as eq,
6
- r as fetchCollections,
7
- i as fetchDistinctValues,
8
- o as fetchFeatures,
9
- c as fetchQueryables,
10
- u as fromSimpleFilters,
11
- n as fromStructuredFilters,
12
- f as getCql2FilteredVectorTileUrl,
13
- g as getFilteredVectorTileUrl,
14
- C as getTileJsonUrl,
15
- F as getVectorTileUrl,
6
+ r as fetchCollectionDetail,
7
+ i as fetchCollections,
8
+ o as fetchConformance,
9
+ c as fetchDistinctValues,
10
+ n as fetchFeatureCount,
11
+ u as fetchFeatures,
12
+ f as fetchQueryables,
13
+ g as fetchTileJson,
14
+ C as fromSimpleFilters,
15
+ h as fromStructuredFilters,
16
+ F as getCql2FilteredVectorTileUrl,
17
+ m as getFilteredVectorTileUrl,
18
+ p as getTileJsonUrl,
19
+ D as getVectorTileUrl,
16
20
  d as gt,
17
- h as gte,
18
- m as inList,
19
- q as isNull,
20
- p as like,
21
- T as lt,
21
+ q as gte,
22
+ y as inList,
23
+ T as isNull,
24
+ b as like,
25
+ O as lt,
22
26
  U as lte,
23
27
  V as neq,
24
- b as not,
28
+ v as not,
25
29
  x as or,
26
- D as serializeCql2,
27
- k as tAfter,
28
- v as tBefore,
29
- w as tDuring,
30
- y as useCsvExport,
31
- z as useOgcCollections,
32
- A as useOgcFeatures
30
+ J as resolvePropertyDisplay,
31
+ k as serializeCql2,
32
+ w as tAfter,
33
+ z as tBefore,
34
+ A as tDuring,
35
+ B as useCsvExport,
36
+ E as useOgcCollectionDetail,
37
+ Q as useOgcCollections,
38
+ S as useOgcFeatures,
39
+ j as useOgcQueryables
33
40
  };
@@ -0,0 +1,14 @@
1
+ import { OgcCollection } from '../utils/ogcApi';
2
+ export interface UseOgcCollectionDetailResult {
3
+ collection: OgcCollection | null;
4
+ loading: boolean;
5
+ error: Error | null;
6
+ }
7
+ /**
8
+ * Hook to fetch metadata for a single OGC API collection.
9
+ *
10
+ * @param baseUrl - The base URL of the OGC API server
11
+ * @param collectionId - The collection identifier
12
+ */
13
+ export declare function useOgcCollectionDetail(baseUrl: string | null, collectionId: string | null): UseOgcCollectionDetailResult;
14
+ //# sourceMappingURL=useOgcCollectionDetail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOgcCollectionDetail.d.ts","sourceRoot":"","sources":["../../src/hooks/useOgcCollectionDetail.ts"],"names":[],"mappings":"AACA,OAAO,EAAyB,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE5E,MAAM,WAAW,4BAA4B;IAC3C,UAAU,EAAE,aAAa,GAAG,IAAI,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,YAAY,EAAE,MAAM,GAAG,IAAI,GAC1B,4BAA4B,CAmC9B"}
@@ -0,0 +1,14 @@
1
+ import { OgcQueryables } from '../utils/ogcApi';
2
+ export interface UseOgcQueryablesResult {
3
+ queryables: OgcQueryables | null;
4
+ loading: boolean;
5
+ error: Error | null;
6
+ }
7
+ /**
8
+ * Hook to fetch queryable properties for an OGC API collection.
9
+ *
10
+ * @param baseUrl - The base URL of the OGC API server
11
+ * @param collectionId - The collection identifier
12
+ */
13
+ export declare function useOgcQueryables(baseUrl: string | null, collectionId: string | null): UseOgcQueryablesResult;
14
+ //# sourceMappingURL=useOgcQueryables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOgcQueryables.d.ts","sourceRoot":"","sources":["../../src/hooks/useOgcQueryables.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEtE,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,aAAa,GAAG,IAAI,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,YAAY,EAAE,MAAM,GAAG,IAAI,GAC1B,sBAAsB,CAmCxB"}