@opengeoweb/layer-select 16.0.0 → 17.0.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 (82) hide show
  1. package/index.esm.js +606 -158
  2. package/package.json +9 -9
  3. package/jest.config.d.ts +0 -0
  4. package/src/index.d.ts +0 -4
  5. package/src/lib/components/DataExplorerButtonConnect/DataExplorerButtonConnect.d.ts +0 -8
  6. package/src/lib/components/DataExplorerButtonConnect/index.d.ts +0 -1
  7. package/src/lib/components/KeywordFilterButton/KeywordFilterButtonConnect.d.ts +0 -9
  8. package/src/lib/components/KeywordFilterButton/KeywordFilterButtonConnect.spec.d.ts +0 -1
  9. package/src/lib/components/KeywordFilterButton/index.d.ts +0 -1
  10. package/src/lib/components/KeywordFilterResults/KeywordFilterResults.d.ts +0 -13
  11. package/src/lib/components/KeywordFilterResults/KeywordFilterResults.integration.spec.d.ts +0 -1
  12. package/src/lib/components/KeywordFilterResults/KeywordFilterResults.stories.d.ts +0 -8
  13. package/src/lib/components/KeywordFilterResults/KeywordFilterResultsConnect.d.ts +0 -8
  14. package/src/lib/components/KeywordFilterResults/KeywordFilterResultsListItemConnect.d.ts +0 -6
  15. package/src/lib/components/KeywordFilterResults/KeywordFilterSelectAllSwitchConnect.d.ts +0 -2
  16. package/src/lib/components/KeywordFilterResults/index.d.ts +0 -4
  17. package/src/lib/components/LayerList/LayerAddRemoveButton.d.ts +0 -23
  18. package/src/lib/components/LayerList/LayerAddRemoveButton.spec.d.ts +0 -1
  19. package/src/lib/components/LayerList/LayerList.d.ts +0 -30
  20. package/src/lib/components/LayerList/LayerList.spec.d.ts +0 -3
  21. package/src/lib/components/LayerList/LayerListConnect.d.ts +0 -9
  22. package/src/lib/components/LayerList/LayerListConnect.spec.d.ts +0 -1
  23. package/src/lib/components/LayerList/LayerListDimensions.d.ts +0 -7
  24. package/src/lib/components/LayerList/LayerListRow.d.ts +0 -25
  25. package/src/lib/components/LayerList/index.d.ts +0 -5
  26. package/src/lib/components/LayerSelect/LayerSelect.d.ts +0 -21
  27. package/src/lib/components/LayerSelect/LayerSelect.spec.d.ts +0 -1
  28. package/src/lib/components/LayerSelect/LayerSelect.stories.d.ts +0 -14
  29. package/src/lib/components/LayerSelect/LayerSelectButtonConnect.d.ts +0 -11
  30. package/src/lib/components/LayerSelect/LayerSelectButtonConnect.spec.d.ts +0 -1
  31. package/src/lib/components/LayerSelect/LayerSelectConnect.d.ts +0 -16
  32. package/src/lib/components/LayerSelect/LayerSelectConnect.integration.spec.d.ts +0 -1
  33. package/src/lib/components/LayerSelect/LayerSelectConnect.spec.d.ts +0 -1
  34. package/src/lib/components/LayerSelect/LayerSelectUtils.d.ts +0 -77
  35. package/src/lib/components/LayerSelect/LayerSelectUtils.spec.d.ts +0 -1
  36. package/src/lib/components/LayerSelect/index.d.ts +0 -2
  37. package/src/lib/components/Providers/Providers.d.ts +0 -22
  38. package/src/lib/components/Providers/index.d.ts +0 -1
  39. package/src/lib/components/SearchField/SearchFieldConnect.d.ts +0 -2
  40. package/src/lib/components/SearchField/SearchFieldConnect.spec.d.ts +0 -1
  41. package/src/lib/components/SearchField/index.d.ts +0 -1
  42. package/src/lib/components/ServiceList/ServiceChip.d.ts +0 -12
  43. package/src/lib/components/ServiceList/ServiceChip.spec.d.ts +0 -1
  44. package/src/lib/components/ServiceList/ServiceChipConnect.d.ts +0 -10
  45. package/src/lib/components/ServiceList/ServiceList.d.ts +0 -8
  46. package/src/lib/components/ServiceList/ServiceListConnect.d.ts +0 -6
  47. package/src/lib/components/ServiceList/ServiceListConnect.spec.d.ts +0 -1
  48. package/src/lib/components/ServiceList/index.d.ts +0 -4
  49. package/src/lib/components/ServiceOptionsButton/ServiceOptionsButton.d.ts +0 -6
  50. package/src/lib/components/ServiceOptionsButton/ServiceOptionsButton.spec.d.ts +0 -1
  51. package/src/lib/components/ServiceOptionsButton/ServiceOptionsButton.stories.d.ts +0 -8
  52. package/src/lib/components/ServiceOptionsButton/index.d.ts +0 -1
  53. package/src/lib/components/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +0 -20
  54. package/src/lib/components/ServiceOptionsDialog/ServiceOptionsDialog.spec.d.ts +0 -1
  55. package/src/lib/components/ServiceOptionsDialog/ServiceOptionsDialog.stories.d.ts +0 -45
  56. package/src/lib/components/ServiceOptionsDialog/ServiceOptionsDialogConnect.d.ts +0 -8
  57. package/src/lib/components/ServiceOptionsDialog/ServiceOptionsDialogConnect.spec.d.ts +0 -1
  58. package/src/lib/components/ServiceOptionsDialog/index.d.ts +0 -2
  59. package/src/lib/components/ServicePopup/ServicePopup.d.ts +0 -20
  60. package/src/lib/components/ServicePopup/ServicePopup.spec.d.ts +0 -1
  61. package/src/lib/components/ServicePopup/ServicePopup.stories.d.ts +0 -12
  62. package/src/lib/components/ServicePopup/ServicePopupConnect.d.ts +0 -2
  63. package/src/lib/components/ServicePopup/ServicePopupConnect.spec.d.ts +0 -1
  64. package/src/lib/components/ServicePopup/ServicePopupConnect.stories.d.ts +0 -9
  65. package/src/lib/components/ServicePopup/ServicePopupDialogConnect.d.ts +0 -11
  66. package/src/lib/components/ServicePopup/index.d.ts +0 -3
  67. package/src/lib/components/ServicePopup/utils.d.ts +0 -7
  68. package/src/lib/components/ServicePopup/utils.spec.d.ts +0 -1
  69. package/src/lib/components/index.d.ts +0 -10
  70. package/src/lib/index.d.ts +0 -2
  71. package/src/lib/store/index.d.ts +0 -7
  72. package/src/lib/store/listeners.d.ts +0 -2
  73. package/src/lib/store/listeners.spec.d.ts +0 -1
  74. package/src/lib/store/reducer.d.ts +0 -26
  75. package/src/lib/store/reducer.spec.d.ts +0 -1
  76. package/src/lib/store/selectors.d.ts +0 -535
  77. package/src/lib/store/selectors.spec.d.ts +0 -1
  78. package/src/lib/store/store.d.ts +0 -13
  79. package/src/lib/store/types.d.ts +0 -71
  80. package/src/lib/store/utils.d.ts +0 -9
  81. package/src/lib/store/utils.spec.d.ts +0 -1
  82. package/src/lib/utils/i18n.d.ts +0 -7
@@ -1,20 +0,0 @@
1
- import type { TFunction } from 'i18next';
2
- import React from 'react';
3
- import type { serviceTypes } from '@opengeoweb/store';
4
- import type { layerSelectTypes } from '../../store';
5
- export interface ServicePopupProps {
6
- servicePopupVariant: layerSelectTypes.PopupVariant;
7
- hideBackdrop?: boolean;
8
- isOpen?: boolean;
9
- closePopup?: () => void;
10
- shouldDisableAutoFocus?: boolean;
11
- serviceId?: string;
12
- serviceUrl?: string;
13
- serviceName?: string;
14
- serviceAbstracts?: string;
15
- services?: layerSelectTypes.ActiveServiceObjectEntities;
16
- serviceSetLayers: (payload: serviceTypes.SetLayersForServicePayload) => void;
17
- showSnackbar?: (message: string) => void;
18
- }
19
- export declare const getSuccesMessage: (serviceName: string, t: TFunction) => string;
20
- export declare const ServicePopup: React.FC<ServicePopupProps>;
@@ -1,12 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import { ServicePopup } from './ServicePopup';
3
- declare const meta: Meta<typeof ServicePopup>;
4
- export default meta;
5
- type Story = StoryObj<typeof ServicePopup>;
6
- export declare const Component: Story;
7
- export declare const ServicePopupAddLight: Story;
8
- export declare const ServicePopupAddDark: Story;
9
- export declare const ServicePopupShowLight: Story;
10
- export declare const ServicePopupShowDark: Story;
11
- export declare const ServicePopupEditLight: Story;
12
- export declare const ServicePopupEditDark: Story;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const ServicePopupConnect: React.FC;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const ServicePopupAddWithExistingServiceError: {
7
- (): React.ReactElement;
8
- tags: string[];
9
- };
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import type { layerSelectTypes } from '../../store';
3
- interface ServicePopupDialogConnectType {
4
- isOpen: boolean;
5
- serviceId?: string;
6
- variant: layerSelectTypes.PopupVariant;
7
- url?: string;
8
- setServicePopupClosed: () => void;
9
- }
10
- export declare const ServicePopupDialogConnect: React.FC<ServicePopupDialogConnectType>;
11
- export {};
@@ -1,3 +0,0 @@
1
- export * from './ServicePopup';
2
- export * from './ServicePopupConnect';
3
- export * from './ServicePopupDialogConnect';
@@ -1,7 +0,0 @@
1
- import type { TFunction } from 'i18next';
2
- import type { serviceTypes } from '@opengeoweb/store';
3
- import type { layerSelectTypes } from '../../store';
4
- export type ValidationResult = string | boolean;
5
- export declare const validateServiceName: (t: TFunction, value: string, services: layerSelectTypes.ActiveServiceObjectEntities, ownServiceName?: string) => ValidationResult;
6
- export declare const validateServiceUrl: (t: TFunction, value: string, services: layerSelectTypes.ActiveServiceObjectEntities) => ValidationResult;
7
- export declare const loadWMSService: (serviceUrl: string, forceReload?: boolean) => Promise<serviceTypes.SetLayersForServicePayload>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- export * from './KeywordFilterButton';
2
- export * from './KeywordFilterResults';
3
- export * from './LayerList';
4
- export * from './LayerSelect';
5
- export * from './SearchField';
6
- export * from './ServiceList';
7
- export * from './ServiceOptionsButton';
8
- export * from './ServiceOptionsDialog';
9
- export * from './ServicePopup';
10
- export * from './DataExplorerButtonConnect';
@@ -1,2 +0,0 @@
1
- export * from './components';
2
- export * from './store';
@@ -1,7 +0,0 @@
1
- export { layerSelectActions, initialState as layerSelectInitialState, layerSelectReducer, } from './reducer';
2
- export * as layerSelectSelectors from './selectors';
3
- export { useAppSelector } from './selectors';
4
- export type * as layerSelectTypes from './types';
5
- export * from './store';
6
- export { isUserAddedService } from './utils';
7
- export { layerSelectListener } from './listeners';
@@ -1,2 +0,0 @@
1
- import type { RootState } from './types';
2
- export declare const layerSelectListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<RootState, import("redux-thunk").ThunkDispatch<RootState, unknown, import("redux").UnknownAction>, unknown>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,26 +0,0 @@
1
- import type { PayloadAction, Draft } from '@reduxjs/toolkit';
2
- import { uiTypes } from '@opengeoweb/store';
3
- import type { LayerSelectRemoveServicePayload, LayerSelectStoreType, SetSearchFilterPayload, ToggleKeywordsPayload, Filter, ActiveServiceObject, ToggleServicePopupPayload, ServicePopupObject } from './types';
4
- export declare const layerSelectFilterAdapter: import("@reduxjs/toolkit").EntityAdapter<Filter, string>;
5
- export declare const layerSelectActiveServicesAdapter: import("@reduxjs/toolkit").EntityAdapter<ActiveServiceObject, string>;
6
- export declare const initialServicePopupState: ServicePopupObject;
7
- export declare const initialState: LayerSelectStoreType;
8
- export declare const layerSelectReducer: import("redux").Reducer<LayerSelectStoreType>, layerSelectActions: import("@reduxjs/toolkit").CaseReducerActions<{
9
- setSearchFilter: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<SetSearchFilterPayload>) => void;
10
- closeServicePopupOpen: (draft: Draft<LayerSelectStoreType>) => void;
11
- toggleServicePopup: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<ToggleServicePopupPayload>) => void;
12
- layerSelectRemoveService: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<LayerSelectRemoveServicePayload>) => void;
13
- enableActiveService: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<{
14
- serviceId: string;
15
- }>) => void;
16
- enableAllActiveServices: (draft: Draft<LayerSelectStoreType>) => void;
17
- onlyThisServiceEnabled: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<{
18
- serviceId: string;
19
- }>) => void;
20
- disableActiveService: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<{
21
- serviceId: string;
22
- }>) => void;
23
- toggleFilter: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<ToggleKeywordsPayload>) => void;
24
- toggleAllFilters: (draft: Draft<LayerSelectStoreType>) => void;
25
- }, uiTypes.DialogTypes.LayerSelect>;
26
- export type LayerSelectActions = ReturnType<typeof layerSelectActions.setSearchFilter> | ReturnType<typeof layerSelectActions.layerSelectRemoveService> | ReturnType<typeof layerSelectActions.enableActiveService> | ReturnType<typeof layerSelectActions.disableActiveService> | ReturnType<typeof layerSelectActions.toggleFilter> | ReturnType<typeof layerSelectActions.toggleAllFilters>;
@@ -1 +0,0 @@
1
- export {};