@opengeoweb/shared 10.2.0 → 11.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.
package/README.md
CHANGED
|
@@ -21,3 +21,7 @@ import { Example } from '@opengeoweb/shared';
|
|
|
21
21
|
## Running unit tests
|
|
22
22
|
|
|
23
23
|
Run `nx test shared` to execute the unit tests via [Jest](https://jestjs.io).
|
|
24
|
+
|
|
25
|
+
### TypeScript Documentation
|
|
26
|
+
|
|
27
|
+
- [TypeScript Docs](https://opengeoweb.gitlab.io/opengeoweb/typescript-docs/shared/)
|
package/index.esm.js
CHANGED
|
@@ -1970,7 +1970,8 @@ var UserMenu = function UserMenu(_ref) {
|
|
|
1970
1970
|
});
|
|
1971
1971
|
};
|
|
1972
1972
|
|
|
1973
|
-
var MenuItemTheme = function MenuItemTheme() {
|
|
1973
|
+
var MenuItemTheme = function MenuItemTheme(_ref) {
|
|
1974
|
+
var enableSpecialThemes = _ref.enableSpecialThemes;
|
|
1974
1975
|
var _useThemeContext = useThemeContext(),
|
|
1975
1976
|
namedTheme = _useThemeContext.namedTheme,
|
|
1976
1977
|
setThemeName = _useThemeContext.setThemeName;
|
|
@@ -2001,7 +2002,7 @@ var MenuItemTheme = function MenuItemTheme() {
|
|
|
2001
2002
|
checked: (namedTheme == null ? void 0 : namedTheme.name) === ThemeTypes.DARK_THEME
|
|
2002
2003
|
}),
|
|
2003
2004
|
label: t('shared-dark')
|
|
2004
|
-
}), jsx(FormControlLabel, {
|
|
2005
|
+
}), enableSpecialThemes && jsx(FormControlLabel, {
|
|
2005
2006
|
value: ThemeTypes.XMAS2024_THEME,
|
|
2006
2007
|
control: jsx(Radio, {
|
|
2007
2008
|
checked: (namedTheme == null ? void 0 : namedTheme.name) === ThemeTypes.XMAS2024_THEME
|
|
@@ -5854,4 +5855,31 @@ var RenderCounter = /*#__PURE__*/function () {
|
|
|
5854
5855
|
}();
|
|
5855
5856
|
var renderCounter = new RenderCounter();
|
|
5856
5857
|
|
|
5857
|
-
|
|
5858
|
+
/* *
|
|
5859
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5860
|
+
* you may not use this file except in compliance with the License.
|
|
5861
|
+
* You may obtain a copy of the License at
|
|
5862
|
+
*
|
|
5863
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5864
|
+
*
|
|
5865
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
5866
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
5867
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
5868
|
+
* See the License for the specific language governing permissions and
|
|
5869
|
+
* limitations under the License.
|
|
5870
|
+
*
|
|
5871
|
+
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
5872
|
+
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
5873
|
+
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
5874
|
+
* */
|
|
5875
|
+
// eslint-disable-next-line no-redeclare
|
|
5876
|
+
var SystemScope = {
|
|
5877
|
+
user: 'user',
|
|
5878
|
+
system: 'system'
|
|
5879
|
+
};
|
|
5880
|
+
// eslint-disable-next-line no-redeclare
|
|
5881
|
+
var PresetScope = Object.assign({}, SystemScope, {
|
|
5882
|
+
shared: 'shared'
|
|
5883
|
+
});
|
|
5884
|
+
|
|
5885
|
+
export { AlertBanner, AlertIcon, AppHeader, AppLayout, Avatar, CanvasComponent, ConfirmationDialog, ConfirmationServiceProvider, CustomAccordion, CustomDialog, CustomIconButton, CustomSlider, CustomToggleButton, CustomTooltip, DEBOUNCE_TIMEOUT, DEFAULT_ERROR_MESSAGE, DEFAULT_FILTER_HEIGHT, DraggableComponent$1 as Draggable, ErrorBoundary, Filter, FilterChip, FilterOption, LastUpdateTime, PROJECTION, PresetScope, ResizeComponent as Resizable, SHARED_NAMESPACE, SearchField$1 as SearchField, SearchFieldButton, SearchHighlight, StatusTag, StorybookDocsWrapper, SwitchButton, SystemScope, ToggleMenu, ToolContainer, DraggableComponent as ToolContainerDraggable, ToolFooter, ToolHeader, TooltipSelect, UserMenu, UserMenuItemCheatSheet, UserMenuItemSentryRecording, MenuItemTheme as UserMenuItemTheme, adjustPosition, calculateDialogSizeAndPosition, calculateStartSize, createToolkitMockStore, index as dateUtils, defaultDelay, getAxiosErrorMessage, getAxiosWarningMessage, getErrorMessage, getInitials, getLastUpdateTitle, getPosition, getWarningMessage, isAxiosAuthError, isAxiosError, pollingIntervalTimeout, renderCounter, sharedTranslations, showPrompt, sliderHeaderStyle, tooltipContainerStyles, useConfirmationDialog, useControlledTooltip, useDebounce, useDialogActions, useIsMounted, useMakeSureContainerStaysInsideWindow, usePoller, usePreventBrowserClose, usePrevious, useUserMenu, useWheelStopPropagation };
|
package/package.json
CHANGED
package/src/lib/types/types.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export interface ConfigType {
|
|
|
32
32
|
GW_FEATURE_MENU_FE_VERSION?: boolean;
|
|
33
33
|
GW_FEATURE_DISPLAY_SEARCH_ON_MAP?: boolean;
|
|
34
34
|
GW_FEATURE_INITIALIZE_SENTRY?: boolean;
|
|
35
|
+
GW_FEATURE_ENABLE_SPECIAL_THEMES?: boolean;
|
|
35
36
|
GW_LANGUAGE?: string;
|
|
36
37
|
}
|
|
37
38
|
export interface TimeSeriesService {
|
|
@@ -40,10 +41,20 @@ export interface TimeSeriesService {
|
|
|
40
41
|
url: string;
|
|
41
42
|
type: ServiceInterface;
|
|
42
43
|
name: string;
|
|
43
|
-
scope?:
|
|
44
|
+
scope?: SystemScope;
|
|
44
45
|
}
|
|
45
46
|
export type ServiceInterface = 'EDR' | 'OGC';
|
|
46
|
-
export type
|
|
47
|
+
export type SystemScope = 'user' | 'system';
|
|
48
|
+
export declare const SystemScope: {
|
|
49
|
+
readonly user: SystemScope;
|
|
50
|
+
readonly system: SystemScope;
|
|
51
|
+
};
|
|
52
|
+
export type PresetScope = SystemScope | 'shared';
|
|
53
|
+
export declare const PresetScope: {
|
|
54
|
+
readonly shared: PresetScope;
|
|
55
|
+
readonly user: SystemScope;
|
|
56
|
+
readonly system: SystemScope;
|
|
57
|
+
};
|
|
47
58
|
export interface PlotPreset {
|
|
48
59
|
connectedMap?: string;
|
|
49
60
|
mapId: string;
|