@ogc-maps/storybook-components 0.9.0 → 0.11.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.
- package/dist/{CollapsibleControl-CGRNPpCw.js → CollapsibleControl-qo9daiD8.js} +5 -5
- package/dist/ExportButton-BsNrOvRE.js +25 -0
- package/dist/FeatureTooltip-DxzN-jnp.js +49 -0
- package/dist/Legend-BLWBzD7Y.js +275 -0
- package/dist/SearchPanel-4Y12jfuP.js +401 -0
- package/dist/components/CollapsibleControl/index.js +1 -1
- package/dist/components/ExportButton/ExportButton.d.ts +2 -8
- package/dist/components/ExportButton/ExportButton.d.ts.map +1 -1
- package/dist/components/ExportButton/index.d.ts +1 -1
- package/dist/components/ExportButton/index.d.ts.map +1 -1
- package/dist/components/ExportButton/index.js +1 -1
- package/dist/components/ExportModal/ExportModal.d.ts +29 -0
- package/dist/components/ExportModal/ExportModal.d.ts.map +1 -0
- package/dist/components/ExportModal/index.d.ts +3 -0
- package/dist/components/ExportModal/index.d.ts.map +1 -0
- package/dist/components/FeatureTooltip/FeatureTooltip.d.ts +12 -2
- package/dist/components/FeatureTooltip/FeatureTooltip.d.ts.map +1 -1
- package/dist/components/FeatureTooltip/index.js +1 -1
- package/dist/components/LayerEditor/LayerEditor.d.ts.map +1 -1
- package/dist/components/Legend/Legend.d.ts.map +1 -1
- package/dist/components/Legend/index.js +1 -1
- package/dist/components/MeasurePanel/MeasurePanel.d.ts +13 -0
- package/dist/components/MeasurePanel/MeasurePanel.d.ts.map +1 -0
- package/dist/components/MeasurePanel/index.d.ts +3 -0
- package/dist/components/MeasurePanel/index.d.ts.map +1 -0
- package/dist/components/ResultsDrawer/ResultsDrawer.d.ts +15 -0
- package/dist/components/ResultsDrawer/ResultsDrawer.d.ts.map +1 -0
- package/dist/components/ResultsDrawer/index.d.ts +3 -0
- package/dist/components/ResultsDrawer/index.d.ts.map +1 -0
- package/dist/components/SearchFieldEditor/SearchFieldEditor.d.ts.map +1 -1
- package/dist/components/SearchPanel/NumberInput.d.ts.map +1 -1
- package/dist/components/SearchPanel/SearchPanel.d.ts +2 -1
- package/dist/components/SearchPanel/SearchPanel.d.ts.map +1 -1
- package/dist/components/SearchPanel/index.js +1 -1
- package/dist/components/SelectionPanel/SelectionPanel.d.ts +15 -0
- package/dist/components/SelectionPanel/SelectionPanel.d.ts.map +1 -0
- package/dist/components/SelectionPanel/index.d.ts +3 -0
- package/dist/components/SelectionPanel/index.d.ts.map +1 -0
- package/dist/components/StyleEditor/DataDrivenColorEditor.d.ts.map +1 -1
- package/dist/components/UIConfigEditor/UIConfigEditor.d.ts.map +1 -1
- package/dist/components/admin/CollapsibleSection.d.ts +1 -1
- package/dist/components/admin/CollapsibleSection.d.ts.map +1 -1
- package/dist/components/index.d.ts +11 -3
- package/dist/components/index.d.ts.map +1 -1
- package/dist/geo-CyDCsiW-.js +1116 -0
- package/dist/hooks/index.d.ts +9 -2
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +47 -37
- package/dist/hooks/useExport.d.ts +22 -0
- package/dist/hooks/useExport.d.ts.map +1 -0
- package/dist/hooks/useMeasure.d.ts +15 -0
- package/dist/hooks/useMeasure.d.ts.map +1 -0
- package/dist/hooks/useSelection.d.ts +14 -0
- package/dist/hooks/useSelection.d.ts.map +1 -0
- package/dist/{index-UmK2u6Yd.js → index-BrphSJJ2.js} +401 -395
- package/dist/main.js +1677 -1096
- package/dist/schemas/config.d.ts +142 -0
- package/dist/schemas/config.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/index.js +1 -1
- package/dist/utils/boxDraw.d.ts +5 -0
- package/dist/utils/boxDraw.d.ts.map +1 -0
- package/dist/utils/cql2.d.ts +11 -0
- package/dist/utils/cql2.d.ts.map +1 -1
- package/dist/utils/csvExport.d.ts.map +1 -1
- package/dist/utils/download.d.ts +2 -0
- package/dist/utils/download.d.ts.map +1 -0
- package/dist/utils/expressionColors.d.ts.map +1 -1
- package/dist/utils/geo.d.ts +3 -0
- package/dist/utils/geo.d.ts.map +1 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/measure.d.ts +49 -0
- package/dist/utils/measure.d.ts.map +1 -0
- package/dist/utils/ogcApi.d.ts +7 -0
- package/dist/utils/ogcApi.d.ts.map +1 -1
- package/dist/utils/selection.d.ts +12 -0
- package/dist/utils/selection.d.ts.map +1 -0
- package/package.json +6 -3
- package/dist/ExportButton-CLsWoW4m.js +0 -77
- package/dist/FeatureTooltip-Db1LgLQV.js +0 -47
- package/dist/Legend-CwaZA84A.js +0 -273
- package/dist/SearchPanel-DtLXMoVs.js +0 -363
- package/dist/cql2-DOJnQwcv.js +0 -440
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SelectionMode } from '../../utils/selection';
|
|
2
|
+
import { LayerConfig } from '../../types';
|
|
3
|
+
export interface SelectionPanelProps {
|
|
4
|
+
mode: SelectionMode | null;
|
|
5
|
+
onModeChange: (mode: SelectionMode | null) => void;
|
|
6
|
+
layers: LayerConfig[];
|
|
7
|
+
activeLayerId: string | null;
|
|
8
|
+
onActiveLayerChange: (layerId: string | null) => void;
|
|
9
|
+
selectedCount: number;
|
|
10
|
+
onClear: () => void;
|
|
11
|
+
onViewResults: () => void;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function SelectionPanel({ mode, onModeChange, layers, activeLayerId, onActiveLayerChange, selectedCount, onClear, onViewResults, className, }: SelectionPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=SelectionPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectionPanel.d.ts","sourceRoot":"","sources":["../../../src/components/SelectionPanel/SelectionPanel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,aAAa,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI,KAAK,IAAI,CAAC;IACnD,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,mBAAmB,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACtD,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAkBD,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,YAAY,EACZ,MAAM,EACN,aAAa,EACb,mBAAmB,EACnB,aAAa,EACb,OAAO,EACP,aAAa,EACb,SAAS,GACV,EAAE,mBAAmB,2CAgFrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SelectionPanel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataDrivenColorEditor.d.ts","sourceRoot":"","sources":["../../../src/components/StyleEditor/DataDrivenColorEditor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAIrD,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,QAAQ,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IACpC,mBAAmB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC1C,qBAAqB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;CACjE;
|
|
1
|
+
{"version":3,"file":"DataDrivenColorEditor.d.ts","sourceRoot":"","sources":["../../../src/components/StyleEditor/DataDrivenColorEditor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAIrD,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,QAAQ,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IACpC,mBAAmB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC1C,qBAAqB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;CACjE;AAyGD,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,QAAQ,EACR,mBAAwB,EACxB,qBAAqB,GACtB,EAAE,0BAA0B,2CAkS5B"}
|
|
@@ -1 +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;
|
|
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;AAgBD,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,mBAAmB,2CAkDtE"}
|
|
@@ -2,7 +2,7 @@ export interface CollapsibleSectionProps {
|
|
|
2
2
|
title: string;
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
defaultOpen?: boolean;
|
|
5
|
-
badge?: number;
|
|
5
|
+
badge?: number | string;
|
|
6
6
|
}
|
|
7
7
|
export declare function CollapsibleSection({ title, children, defaultOpen, badge, }: CollapsibleSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
//# sourceMappingURL=CollapsibleSection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapsibleSection.d.ts","sourceRoot":"","sources":["../../../src/components/admin/CollapsibleSection.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"CollapsibleSection.d.ts","sourceRoot":"","sources":["../../../src/components/admin/CollapsibleSection.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,QAAQ,EACR,WAAmB,EACnB,KAAK,GACN,EAAE,uBAAuB,2CAsBzB"}
|
|
@@ -5,7 +5,9 @@ export type { CollapsibleControlProps } from './CollapsibleControl';
|
|
|
5
5
|
export { CoordinateDisplay, formatDecimal, formatDMS, } from './CoordinateDisplay';
|
|
6
6
|
export type { CoordinateDisplayProps, CoordinateFormatOption, } from './CoordinateDisplay';
|
|
7
7
|
export { ExportButton } from './ExportButton';
|
|
8
|
-
export type { ExportButtonProps
|
|
8
|
+
export type { ExportButtonProps } from './ExportButton';
|
|
9
|
+
export { ExportModal } from './ExportModal';
|
|
10
|
+
export type { ExportModalProps, ExportFormatOption, ExportRequest, ExportableLayer } from './ExportModal';
|
|
9
11
|
export { FeatureDetailPanel } from './FeatureDetailPanel';
|
|
10
12
|
export type { FeatureDetailPanelProps } from './FeatureDetailPanel';
|
|
11
13
|
export { FeatureTooltip } from './FeatureTooltip';
|
|
@@ -14,10 +16,16 @@ export { LayerPanel } from './LayerPanel';
|
|
|
14
16
|
export type { LayerPanelProps } from './LayerPanel';
|
|
15
17
|
export { Legend } from './Legend';
|
|
16
18
|
export type { LegendProps } from './Legend';
|
|
19
|
+
export { MeasurePanel } from './MeasurePanel';
|
|
20
|
+
export type { MeasurePanelProps } from './MeasurePanel';
|
|
21
|
+
export { SelectionPanel } from './SelectionPanel';
|
|
22
|
+
export type { SelectionPanelProps } from './SelectionPanel';
|
|
17
23
|
export { SearchPanel } from './SearchPanel';
|
|
18
24
|
export type { SearchPanelProps } from './SearchPanel';
|
|
19
|
-
export {
|
|
20
|
-
export type {
|
|
25
|
+
export { ResultsDrawer } from './ResultsDrawer';
|
|
26
|
+
export type { ResultsDrawerProps } from './ResultsDrawer';
|
|
27
|
+
export { FormField, ColorPicker, ConfirmDialog, CollapsibleSection } from './admin';
|
|
28
|
+
export type { FormFieldProps, ColorPickerProps, ConfirmDialogProps, CollapsibleSectionProps } from './admin';
|
|
21
29
|
export { SourceEditor, SourceList } from './SourceEditor';
|
|
22
30
|
export type { SourceEditorProps, SourceListProps } from './SourceEditor';
|
|
23
31
|
export { CollectionBrowser } from './CollectionBrowser';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EA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