@devgateway/dvz-ui-react 1.0.6 → 1.1.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/cjs/common.css +1 -1
- package/dist/cjs/embeddable/agree-and-download/index.js +1 -1
- package/dist/cjs/embeddable/big-number/index.js +1 -1
- package/dist/cjs/embeddable/big-number-trend/index.js +1 -1
- package/dist/cjs/embeddable/body/Background.js +1 -1
- package/dist/cjs/embeddable/body/Blood.js +1 -1
- package/dist/cjs/embeddable/body/Bounds.js +1 -1
- package/dist/cjs/embeddable/body/Brain.js +1 -1
- package/dist/cjs/embeddable/body/Ectopic.js +1 -1
- package/dist/cjs/embeddable/body/Erectile.js +1 -1
- package/dist/cjs/embeddable/body/Eyes.js +1 -1
- package/dist/cjs/embeddable/body/Head.js +1 -1
- package/dist/cjs/embeddable/body/Heart.js +1 -1
- package/dist/cjs/embeddable/body/Liver.js +1 -1
- package/dist/cjs/embeddable/body/Lungs.js +1 -1
- package/dist/cjs/embeddable/body/Stomach.js +1 -1
- package/dist/cjs/embeddable/body/index.js +1 -1
- package/dist/cjs/embeddable/chart/Bar.js +1 -1
- package/dist/cjs/embeddable/chart/CSVDataFrame.js +1 -1
- package/dist/cjs/embeddable/chart/Legends.js +1 -1
- package/dist/cjs/embeddable/chart/Line.js +1 -1
- package/dist/cjs/embeddable/chart/LineLayer.js +1 -1
- package/dist/cjs/embeddable/chart/Messages.js +2 -2
- package/dist/cjs/embeddable/chart/Pie.js +1 -1
- package/dist/cjs/embeddable/chart/Radar.js +1 -1
- package/dist/cjs/embeddable/chart/Tooltip.js +1 -1
- package/dist/cjs/embeddable/chart/colors/CategoricalColors.js +1 -1
- package/dist/cjs/embeddable/chart/colors/ColorProvider.js +1 -1
- package/dist/cjs/embeddable/chart/colors/Colors.js +1 -1
- package/dist/cjs/embeddable/chart/colors/ManualColors.js +1 -1
- package/dist/cjs/embeddable/chart/colors/PlainColor.js +1 -1
- package/dist/cjs/embeddable/chart/colors/SequentialColors.js +1 -1
- package/dist/cjs/embeddable/chart/colors/SystemColors.js +1 -1
- package/dist/cjs/embeddable/chart/data/Bar.js +1 -1
- package/dist/cjs/embeddable/chart/data/Line.js +1 -1
- package/dist/cjs/embeddable/chart/data/Utils.js +1 -1
- package/dist/cjs/embeddable/chart/data/index.js +1 -1
- package/dist/cjs/embeddable/chart/index.js +1 -1
- package/dist/cjs/embeddable/child-page-menu/index.js +1 -1
- package/dist/cjs/embeddable/common/Messages.js +2 -2
- package/dist/cjs/embeddable/common/colors/CategoricalColors.js +1 -1
- package/dist/cjs/embeddable/common/colors/ColorProvider.js +1 -1
- package/dist/cjs/embeddable/common/colors/Colors.js +1 -1
- package/dist/cjs/embeddable/common/colors/ManualColors.js +1 -1
- package/dist/cjs/embeddable/common/colors/PlainColor.js +1 -1
- package/dist/cjs/embeddable/common/colors/SequentialColors.js +1 -1
- package/dist/cjs/embeddable/common/colors/SystemColors.js +1 -1
- package/dist/cjs/embeddable/connected-templates/PostContent.js +1 -1
- package/dist/cjs/embeddable/connected-templates/PostIntro.js +1 -1
- package/dist/cjs/embeddable/d3Map/BaseLayer.js +1 -1
- package/dist/cjs/embeddable/d3Map/BreaksStyles.js +1 -1
- package/dist/cjs/embeddable/d3Map/DataLayer.js +1 -1
- package/dist/cjs/embeddable/d3Map/FlowLayer.js +1 -1
- package/dist/cjs/embeddable/d3Map/GradientColors.js +1 -0
- package/dist/cjs/embeddable/d3Map/LatLongLayer.js +1 -1
- package/dist/cjs/embeddable/d3Map/Layer.js +1 -1
- package/dist/cjs/embeddable/d3Map/Legends.js +1 -1
- package/dist/cjs/embeddable/d3Map/Map.js +1 -1
- package/dist/cjs/embeddable/d3Map/ProjectedContainer.js +1 -1
- package/dist/cjs/embeddable/d3Map/Utils.js +1 -0
- package/dist/cjs/embeddable/d3Map/ZoomControl.js +1 -1
- package/dist/cjs/embeddable/d3Map/index.js +1 -1
- package/dist/cjs/embeddable/data/CategoriesConsumer.js +1 -1
- package/dist/cjs/embeddable/data/CategoriesProvider.js +1 -1
- package/dist/cjs/embeddable/data/DataConsumer.js +1 -1
- package/dist/cjs/embeddable/data/DataProvider.js +1 -1
- package/dist/cjs/embeddable/datalabel/index.js +1 -1
- package/dist/cjs/embeddable/download/index.js +2 -2
- package/dist/cjs/embeddable/downloadPDF/index.js +1 -1
- package/dist/cjs/embeddable/featuredtabs/index.js +1 -1
- package/dist/cjs/embeddable/filter/index.js +1 -1
- package/dist/cjs/embeddable/filter-reset-button/index.js +1 -1
- package/dist/cjs/embeddable/filters-apply-button/index.js +1 -1
- package/dist/cjs/embeddable/index.js +1 -1
- package/dist/cjs/embeddable/inlinelist/index.js +1 -1
- package/dist/cjs/embeddable/map/MapCSVDataFrame.js +1 -1
- package/dist/cjs/embeddable/map/MapDataFrame.js +1 -1
- package/dist/cjs/embeddable/map/index.js +2 -2
- package/dist/cjs/embeddable/map/legend.js +1 -1
- package/dist/cjs/embeddable/map/map.js +3 -3
- package/dist/cjs/embeddable/measures/index.js +1 -1
- package/dist/cjs/embeddable/menu/index.js +2 -2
- package/dist/cjs/embeddable/new-time-line/index.js +1 -1
- package/dist/cjs/embeddable/new-time-line/timeline.js +1 -1
- package/dist/cjs/embeddable/newsletter/index.js +1 -1
- package/dist/cjs/embeddable/pagegallery/index.js +1 -1
- package/dist/cjs/embeddable/pagemodules/FloatingNavigator.js +1 -1
- package/dist/cjs/embeddable/pagemodules/index.js +1 -1
- package/dist/cjs/embeddable/parallax/index.js +1 -1
- package/dist/cjs/embeddable/posts-with-filters/Post.js +1 -0
- package/dist/cjs/embeddable/posts-with-filters/index.js +1 -0
- package/dist/cjs/embeddable/posts-with-filters/utils.js +1 -0
- package/dist/cjs/embeddable/postscarousel/index.js +1 -1
- package/dist/cjs/embeddable/reducers/data-api.js +1 -1
- package/dist/cjs/embeddable/reducers/data.js +1 -1
- package/dist/cjs/embeddable/references/Reference.js +1 -1
- package/dist/cjs/embeddable/references/ReferencesList.js +1 -1
- package/dist/cjs/embeddable/sankeychart/Sankey.js +1 -1
- package/dist/cjs/embeddable/sankeychart/index.js +1 -1
- package/dist/cjs/embeddable/showcase/index.js +1 -1
- package/dist/cjs/embeddable/superset-chart/index.js +1 -1
- package/dist/cjs/embeddable/superset-dashboard/index.js +1 -1
- package/dist/cjs/embeddable/tabbedposts/index.js +1 -1
- package/dist/cjs/embeddable/time-line/desktop.js +1 -1
- package/dist/cjs/embeddable/time-line/index.js +1 -1
- package/dist/cjs/embeddable/time-line/mobile.js +1 -1
- package/dist/cjs/embeddable/tooltip/index.js +1 -1
- package/dist/cjs/embeddable/vertical-featuredtabs/index.js +2 -2
- package/dist/cjs/embeddable/wrapped/index.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/layout/CustomSemanticSearch.js +1 -1
- package/dist/cjs/layout/FlexWrapDetector.js +1 -1
- package/dist/cjs/layout/Footer.js +1 -1
- package/dist/cjs/layout/Header.js +2 -2
- package/dist/cjs/layout/LangSwitcher.js +1 -1
- package/dist/cjs/layout/ResponsiveContainer.js +1 -1
- package/dist/cjs/layout/ScrollTop.js +1 -1
- package/dist/cjs/layout/SearchControl.js +1 -1
- package/dist/cjs/layout/TopNavigator.js +1 -1
- package/dist/cjs/layout/containers/PreviewPageContainer.js +1 -1
- package/dist/cjs/layout/containers/PreviewTypeContainer.js +1 -1
- package/dist/cjs/layout/containers/SlugContainer.js +1 -1
- package/dist/cjs/layout/containers/SlugPostContainer.js +1 -1
- package/dist/cjs/layout/index.js +1 -1
- package/dist/cjs/lib/hooks/screen-orientation.js +1 -0
- package/dist/cjs/lib/hooks/window-dimensions.js +1 -1
- package/dist/cjs/lib/react-intl-redux/index.js +1 -1
- package/dist/cjs/lib/react-intl-redux/providers/IntlProvider.js +1 -1
- package/dist/cjs/lib/react-intl-redux/providers/Provider.js +1 -1
- package/dist/cjs/redux/reducer.js +1 -1
- package/dist/cjs/redux/store.js +1 -1
- package/dist/cjs/styles.css +1 -1
- package/dist/cjs/translations/af.json.js +1 -1
- package/dist/cjs/utils/data.js +1 -0
- package/dist/cjs/utils/deviceType.js +1 -1
- package/dist/cjs/utils/semanticUtils.js +1 -1
- package/dist/esm/common.css +1 -1
- package/dist/esm/embeddable/big-number/index.js +82 -74
- package/dist/esm/embeddable/big-number-trend/index.js +117 -97
- package/dist/esm/embeddable/chart/Bar.js +235 -224
- package/dist/esm/embeddable/chart/Line.js +261 -252
- package/dist/esm/embeddable/chart/Tooltip.js +19 -17
- package/dist/esm/embeddable/chart/colors/ManualColors.js +19 -19
- package/dist/esm/embeddable/chart/data/Bar.js +179 -180
- package/dist/esm/embeddable/chart/data/Line.js +146 -193
- package/dist/esm/embeddable/chart/data/Utils.js +39 -23
- package/dist/esm/embeddable/chart/index.js +323 -316
- package/dist/esm/embeddable/d3Map/BaseLayer.js +38 -45
- package/dist/esm/embeddable/d3Map/DataLayer.js +418 -204
- package/dist/esm/embeddable/d3Map/FlowLayer.js +113 -115
- package/dist/esm/embeddable/d3Map/GradientColors.js +155 -0
- package/dist/esm/embeddable/d3Map/LatLongLayer.js +132 -104
- package/dist/esm/embeddable/d3Map/Layer.js +31 -31
- package/dist/esm/embeddable/d3Map/Legends.js +274 -162
- package/dist/esm/embeddable/d3Map/Map.js +14 -14
- package/dist/esm/embeddable/d3Map/ProjectedContainer.js +16 -15
- package/dist/esm/embeddable/d3Map/Utils.js +11 -0
- package/dist/esm/embeddable/d3Map/ZoomControl.js +83 -55
- package/dist/esm/embeddable/d3Map/index.js +116 -83
- package/dist/esm/embeddable/data/CategoriesProvider.js +38 -33
- package/dist/esm/embeddable/data/DataProvider.js +87 -79
- package/dist/esm/embeddable/filter/index.js +227 -233
- package/dist/esm/embeddable/filter-reset-button/index.js +38 -26
- package/dist/esm/embeddable/filters-apply-button/index.js +36 -28
- package/dist/esm/embeddable/index.js +15 -14
- package/dist/esm/embeddable/inlinelist/index.js +64 -61
- package/dist/esm/embeddable/map/index.js +157 -148
- package/dist/esm/embeddable/measures/index.js +3 -3
- package/dist/esm/embeddable/menu/index.js +8 -8
- package/dist/esm/embeddable/new-time-line/timeline.js +11 -11
- package/dist/esm/embeddable/pagegallery/index.js +11 -11
- package/dist/esm/embeddable/pagemodules/index.js +48 -49
- package/dist/esm/embeddable/parallax/index.js +30 -25
- package/dist/esm/embeddable/posts-with-filters/Post.js +26 -0
- package/dist/esm/embeddable/posts-with-filters/index.js +205 -0
- package/dist/esm/embeddable/posts-with-filters/utils.js +8 -0
- package/dist/esm/embeddable/reducers/data-api.js +27 -13
- package/dist/esm/embeddable/reducers/data.js +106 -94
- package/dist/esm/embeddable/references/ReferencesList.js +34 -33
- package/dist/esm/embeddable/superset-chart/index.js +12 -13
- package/dist/esm/embeddable/superset-dashboard/index.js +3 -4
- package/dist/esm/embeddable/tabbedposts/index.js +21 -23
- package/dist/esm/embeddable/time-line/index.js +14 -11
- package/dist/esm/embeddable/time-line/mobile.js +204 -206
- package/dist/esm/layout/CustomSemanticSearch.js +20 -22
- package/dist/esm/lib/hooks/screen-orientation.js +25 -0
- package/dist/esm/lib/hooks/window-dimensions.js +7 -7
- package/dist/esm/styles.css +1 -1
- package/dist/esm/utils/data.js +11 -0
- package/dist/esm/utils/semanticUtils.js +19 -13
- package/dist/types/common.css.d.ts +1 -0
- package/dist/types/embeddable/chart/Line.d.ts +4 -0
- package/dist/types/embeddable/chart/data/Line.d.ts +2 -2
- package/dist/types/embeddable/chart/index.d.ts +3 -1
- package/dist/types/embeddable/d3Map/GradientColors.d.ts +17 -0
- package/dist/types/embeddable/d3Map/Layer.d.ts +1 -0
- package/dist/types/embeddable/d3Map/Legends.d.ts +4 -2
- package/dist/types/embeddable/d3Map/Utils.d.ts +1 -0
- package/dist/types/embeddable/d3Map/ZoomControl.d.ts +11 -7
- package/dist/types/embeddable/data/CategoriesProvider.d.ts +6 -2
- package/dist/types/embeddable/inlinelist/index.d.ts +1 -8
- package/dist/types/embeddable/measures/index.d.ts +1 -1
- package/dist/types/embeddable/menu/index.d.ts +0 -10
- package/dist/types/embeddable/pagegallery/index.d.ts +0 -4
- package/dist/types/embeddable/pagemodules/index.d.ts +1 -1
- package/dist/types/embeddable/parallax/index.d.ts +1 -16
- package/dist/types/embeddable/posts-with-filters/Post.d.ts +3 -0
- package/dist/types/embeddable/posts-with-filters/index.d.ts +21 -0
- package/dist/types/embeddable/posts-with-filters/utils.d.ts +6 -0
- package/dist/types/embeddable/postscarousel/index.d.ts +1 -1
- package/dist/types/embeddable/reducers/data-api.d.ts +9 -18
- package/dist/types/embeddable/reducers/data.d.ts +32 -31
- package/dist/types/embeddable/references/ReferencesList.d.ts +2 -1
- package/dist/types/index.css.d.ts +1 -0
- package/dist/types/lib/hooks/resize-observer.d.ts +4 -0
- package/dist/types/lib/hooks/screen-orientation.d.ts +18 -0
- package/dist/types/utils/data.d.ts +5 -0
- package/dist/types/utils/semanticUtils.d.ts +30 -2
- package/package.json +3 -2
- package/dist/cjs/node_modules/.pnpm/semantic-ui-react@3.0.0-beta.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/semantic-ui-react/src/lib/classNameBuilders.js +0 -1
- package/dist/cjs/node_modules/.pnpm/semantic-ui-react@3.0.0-beta.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/semantic-ui-react/src/lib/getUnhandledProps.js +0 -1
- package/dist/esm/node_modules/.pnpm/semantic-ui-react@3.0.0-beta.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/semantic-ui-react/src/lib/classNameBuilders.js +0 -5
- package/dist/esm/node_modules/.pnpm/semantic-ui-react@3.0.0-beta.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/semantic-ui-react/src/lib/getUnhandledProps.js +0 -7
- package/dist/types/embeddable/index.d.ts +0 -161
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
declare const _default: React.FC<import('react-intl').WithIntlProps<any>> & {
|
|
3
|
+
WrappedComponent: React.ComponentType<any>;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function loadJSON(url: any): Promise<any>;
|
|
@@ -2,21 +2,25 @@ import { default as React } from 'react';
|
|
|
2
2
|
export default ZoomControl;
|
|
3
3
|
declare class ZoomControl extends React.Component<any, any, any> {
|
|
4
4
|
constructor(props: any);
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
zoomRef: React.RefObject<any>;
|
|
6
|
+
lastInternalZoom: {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
k: number;
|
|
10
|
+
} | null;
|
|
11
|
+
lastUserTransform: any;
|
|
8
12
|
zoomed(event: any): void;
|
|
9
|
-
|
|
13
|
+
zoomEnd(event: any): void;
|
|
14
|
+
zoomIn(): void;
|
|
10
15
|
zoomOut(): void;
|
|
11
16
|
reset(): void;
|
|
12
17
|
fullView(): void;
|
|
13
18
|
transition2fullView(): void;
|
|
14
19
|
_fullView(transition?: boolean): void;
|
|
15
|
-
zoomRef: React.RefObject<any>;
|
|
16
20
|
zoom: d3.ZoomBehavior<Element, any>;
|
|
17
21
|
componentDidMount(): void;
|
|
18
|
-
componentDidUpdate(prevProps: any
|
|
19
|
-
|
|
22
|
+
componentDidUpdate(prevProps: any): void;
|
|
23
|
+
zoomTo(xy: any): void;
|
|
20
24
|
getSelection(): d3.Selection<any, any, null, undefined> | null;
|
|
21
25
|
render(): React.JSX.Element;
|
|
22
26
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
declare const _default: import('react-redux').ConnectedComponent<React.FC<import('react-intl').WithIntlProps<any>> & {
|
|
3
|
+
WrappedComponent: React.ComponentType<any>;
|
|
4
|
+
}, {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
}>;
|
|
7
|
+
export default _default;
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
posts: any[];
|
|
4
|
-
showIcons: boolean;
|
|
5
|
-
showContentToggle: boolean;
|
|
6
|
-
contentToggleHPosition: number;
|
|
7
|
-
locale: string;
|
|
8
|
-
}
|
|
9
|
-
export interface InlineListProps {
|
|
2
|
+
interface InlineListProps {
|
|
10
3
|
"data-width"?: string;
|
|
11
4
|
"data-height"?: string;
|
|
12
5
|
"data-type"?: string;
|
|
@@ -1,13 +1,3 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { WrappedComponentProps } from 'react-intl';
|
|
3
|
-
export interface MenuChildProps extends WrappedComponentProps<"intl"> {
|
|
4
|
-
menu?: any;
|
|
5
|
-
locale?: string;
|
|
6
|
-
match?: any;
|
|
7
|
-
selected?: any;
|
|
8
|
-
active?: any;
|
|
9
|
-
showIcons?: boolean;
|
|
10
|
-
onSetSelected?: any;
|
|
11
|
-
}
|
|
12
2
|
declare const InlineMenu: (props: any) => React.JSX.Element;
|
|
13
3
|
export default InlineMenu;
|
|
@@ -1,18 +1,3 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
"data-width": number;
|
|
4
|
-
"data-height": number;
|
|
5
|
-
"data-type": string;
|
|
6
|
-
"data-taxonomy": string;
|
|
7
|
-
"data-categories": string;
|
|
8
|
-
"data-count": number;
|
|
9
|
-
"data-horizontal": boolean;
|
|
10
|
-
"data-scrolls": number;
|
|
11
|
-
"data-configuration": string;
|
|
12
|
-
parent: string;
|
|
13
|
-
editing: boolean;
|
|
14
|
-
component: string;
|
|
15
|
-
unique: string;
|
|
16
|
-
}
|
|
17
|
-
declare const Root: (props: ParallaxProps) => React.JSX.Element;
|
|
2
|
+
declare const Root: (props: any) => React.JSX.Element;
|
|
18
3
|
export default Root;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface PostsWithFiltersProps {
|
|
3
|
+
editing: boolean;
|
|
4
|
+
"data-component": string;
|
|
5
|
+
"data-height": string;
|
|
6
|
+
"data-show-header": string;
|
|
7
|
+
"data-show-pagination": string;
|
|
8
|
+
"data-show-posts-per-page": string;
|
|
9
|
+
"data-show-filters": string;
|
|
10
|
+
"data-show-date-filter": string;
|
|
11
|
+
"data-show-category-filter": string;
|
|
12
|
+
"data-categories": string;
|
|
13
|
+
"data-start-date": string;
|
|
14
|
+
"data-end-date": string;
|
|
15
|
+
"data-category-placeholder": string;
|
|
16
|
+
"data-show-country-filter": string;
|
|
17
|
+
"data-country-category": string;
|
|
18
|
+
"data-country-placeholder": string;
|
|
19
|
+
}
|
|
20
|
+
declare const PostsWithFilters: (props: PostsWithFiltersProps) => React.JSX.Element;
|
|
21
|
+
export default PostsWithFilters;
|
|
@@ -1,18 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
app: string;
|
|
11
|
-
params?: Record<string, string>;
|
|
12
|
-
}) => Promise<unknown>;
|
|
13
|
-
export declare const getData: ({ source, app, params }: {
|
|
14
|
-
source: string;
|
|
15
|
-
app: string;
|
|
16
|
-
params?: Record<string, string>;
|
|
17
|
-
}) => Promise<DataResponse>;
|
|
18
|
-
export {};
|
|
1
|
+
export function getCategories({ app, params }: {
|
|
2
|
+
app: any;
|
|
3
|
+
params: any;
|
|
4
|
+
}): any;
|
|
5
|
+
export function getData({ source, app, params }: {
|
|
6
|
+
source: any;
|
|
7
|
+
app: any;
|
|
8
|
+
params: any;
|
|
9
|
+
}): any;
|
|
@@ -1,54 +1,55 @@
|
|
|
1
|
-
export
|
|
2
|
-
app:
|
|
3
|
-
group:
|
|
4
|
-
})
|
|
5
|
-
export
|
|
6
|
-
app:
|
|
7
|
-
group:
|
|
1
|
+
export function cleanMeasures({ app, group }: {
|
|
2
|
+
app: any;
|
|
3
|
+
group: any;
|
|
4
|
+
}): (dispatch: any, getState: any) => void;
|
|
5
|
+
export function setMeasures({ app, group, mGroup }: {
|
|
6
|
+
app: any;
|
|
7
|
+
group: any;
|
|
8
8
|
mGroup: any;
|
|
9
|
-
})
|
|
10
|
-
export
|
|
11
|
-
app:
|
|
12
|
-
group:
|
|
13
|
-
param:
|
|
9
|
+
}): (dispatch: any, getState: any) => void;
|
|
10
|
+
export function setFilter({ app, group, param, value, autoApply }: {
|
|
11
|
+
app: any;
|
|
12
|
+
group: any;
|
|
13
|
+
param: any;
|
|
14
14
|
value: any;
|
|
15
|
-
autoApply:
|
|
16
|
-
})
|
|
17
|
-
export
|
|
18
|
-
app:
|
|
19
|
-
group:
|
|
20
|
-
})
|
|
21
|
-
export
|
|
15
|
+
autoApply: any;
|
|
16
|
+
}): (dispatch: any, getState: any) => void;
|
|
17
|
+
export function cleanFilter({ app, group }: {
|
|
18
|
+
app: any;
|
|
19
|
+
group: any;
|
|
20
|
+
}): (dispatch: any, getState: any) => void;
|
|
21
|
+
export function applyFilter({ app, group }: {
|
|
22
22
|
app: any;
|
|
23
23
|
group: any;
|
|
24
|
-
})
|
|
25
|
-
export
|
|
24
|
+
}): (dispatch: any, getState: any) => void;
|
|
25
|
+
export function setInitialFilters({ app, group, param, value }: {
|
|
26
26
|
app: any;
|
|
27
27
|
group: any;
|
|
28
28
|
param: any;
|
|
29
29
|
value: any;
|
|
30
|
-
})
|
|
31
|
-
export
|
|
32
|
-
export
|
|
30
|
+
}): (dispatch: any, getState: any) => void;
|
|
31
|
+
export function getCategories(props: any): (dispatch: any, getState: any) => void;
|
|
32
|
+
export function setData({ app, group, csv, store, params }: {
|
|
33
33
|
app: any;
|
|
34
34
|
group: any;
|
|
35
35
|
csv: any;
|
|
36
36
|
store: any;
|
|
37
37
|
params: any;
|
|
38
|
-
})
|
|
39
|
-
export
|
|
38
|
+
}): (dispatch: any, getState: any) => void;
|
|
39
|
+
export function getData({ app, group, source, store, params }: {
|
|
40
40
|
app: any;
|
|
41
41
|
group: any;
|
|
42
42
|
source: any;
|
|
43
43
|
store: any;
|
|
44
44
|
params: any;
|
|
45
|
-
})
|
|
46
|
-
export
|
|
45
|
+
}): (dispatch: any, getState: any) => void;
|
|
46
|
+
export function setPageModuleProps({ data }: {
|
|
47
47
|
data: any;
|
|
48
|
-
})
|
|
49
|
-
declare
|
|
48
|
+
}): (dispatch: any, getState: any) => void;
|
|
49
|
+
declare function _default(state: Immutable.MapOf<{
|
|
50
50
|
mode: string;
|
|
51
|
-
}> | undefined, action: any)
|
|
51
|
+
}> | undefined, action: any): Immutable.MapOf<{
|
|
52
52
|
mode: string;
|
|
53
53
|
}>;
|
|
54
54
|
export default _default;
|
|
55
|
+
import * as Immutable from 'immutable';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
declare const _default: import('react-redux').ConnectedComponent<({ editing, "data-columns": cols, "data-height": height, "data-flex-direction": flexDirection }: {
|
|
2
|
+
declare const _default: import('react-redux').ConnectedComponent<({ random, editing, "data-columns": cols, "data-height": height, "data-flex-direction": flexDirection }: {
|
|
3
|
+
random: any;
|
|
3
4
|
editing?: boolean | undefined;
|
|
4
5
|
"data-columns"?: number | undefined;
|
|
5
6
|
"data-height"?: number | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type OrientationType = 'portrait-primary' | 'portrait-secondary' | 'landscape-primary' | 'landscape-secondary';
|
|
2
|
+
interface OrientationState {
|
|
3
|
+
type: OrientationType;
|
|
4
|
+
angle: number;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* A React hook that tracks screen.orientation.
|
|
8
|
+
* @returns
|
|
9
|
+
* - orientation: { type, angle }
|
|
10
|
+
* - lock(lockType?): Promise<void>
|
|
11
|
+
* - unlock(): Promise<void>
|
|
12
|
+
*/
|
|
13
|
+
export declare function useScreenOrientation(): {
|
|
14
|
+
orientation: OrientationState;
|
|
15
|
+
lock: (lockType?: OrientationType | "portrait" | "landscape") => any;
|
|
16
|
+
unlock: () => void | Promise<never>;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const toBoolean: (value: any) => boolean;
|
|
2
|
+
export declare const toNumber: (value: any) => number;
|
|
3
|
+
export declare const uriStringToArray: (value: string | string[]) => any[];
|
|
4
|
+
export declare const decodeHtmlEntitiesToText: (html: string) => string | null;
|
|
5
|
+
export declare const decodeHtmlEntitiesToHtml: (html: string) => string;
|
|
@@ -10,7 +10,35 @@ export declare const htmlImageProps: string[];
|
|
|
10
10
|
* @param {boolean} [options.includeAria] Includes all input props that starts with "aria-"
|
|
11
11
|
* @returns {[{}, {}]} An array of objects
|
|
12
12
|
*/
|
|
13
|
-
export declare const partitionHTMLProps: (props:
|
|
13
|
+
export declare const partitionHTMLProps: (props: object, options?: {
|
|
14
14
|
htmlProps?: string[];
|
|
15
15
|
includeAria?: boolean;
|
|
16
|
-
}) => {}
|
|
16
|
+
}) => [{}, {}];
|
|
17
|
+
/**
|
|
18
|
+
* Props where only the prop key is used in the className.
|
|
19
|
+
* @param {*} val A props value
|
|
20
|
+
* @param {string} key A props key
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* <Label tag />
|
|
24
|
+
* <div class="ui tag label"></div>
|
|
25
|
+
*/
|
|
26
|
+
export declare const useKeyOnly: <T extends any>(val: T, key: string) => string;
|
|
27
|
+
/**
|
|
28
|
+
* Props that require both a key and value to create a className.
|
|
29
|
+
* @param {*} val A props value
|
|
30
|
+
* @param {string} key A props key
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* <Label corner='left' />
|
|
34
|
+
* <div class="ui left corner label"></div>
|
|
35
|
+
*/
|
|
36
|
+
export declare const useValueAndKey: <T extends any>(val: T, key: string) => string | false;
|
|
37
|
+
/**
|
|
38
|
+
* Returns an object consisting of props beyond the scope of the Component.
|
|
39
|
+
* Useful for getting and spreading unknown props from the user.
|
|
40
|
+
* @param {function} Component A function or ReactClass.
|
|
41
|
+
* @param {object} props A ReactElement props object
|
|
42
|
+
* @returns {{}} A shallow copy of the prop object
|
|
43
|
+
*/
|
|
44
|
+
export declare const getUnhandledProps: (Component: React.ComponentType<any>, props: Record<string, any>) => {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devgateway/dvz-ui-react",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -47,6 +47,8 @@
|
|
|
47
47
|
"clsx": "^2.1.1",
|
|
48
48
|
"d3": "^7.9.0",
|
|
49
49
|
"d3-shape": "^3.2.0",
|
|
50
|
+
"date-fns": "^4.1.0",
|
|
51
|
+
"dompurify": "^3.2.6",
|
|
50
52
|
"file-saver": "^2.0.5",
|
|
51
53
|
"geostats": "^2.1.0",
|
|
52
54
|
"history": "^5.3.0",
|
|
@@ -105,7 +107,6 @@
|
|
|
105
107
|
"prop-types": "^15.8.1",
|
|
106
108
|
"react-compiler-runtime": "^19.0.0-beta-a7bf2bd-20241110",
|
|
107
109
|
"rollup-plugin-preserve-directives": "^0.4.0",
|
|
108
|
-
"sass-embedded": "^1.89.0",
|
|
109
110
|
"typescript": "^5.8.3",
|
|
110
111
|
"typescript-eslint": "^8.32.1",
|
|
111
112
|
"unbuild": "^3.5.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=(e,u)=>e&&u,n=(e,u)=>e&&e!==!0&&`${e} ${u}`;exports.useKeyOnly=t;exports.useValueAndKey=n;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s=(d,t)=>{const{handledProps:r=[]}=d;return Object.keys(t).reduce((n,e)=>(e==="childKey"||e==="innerRef"||r.indexOf(e)===-1&&(n[e]=t[e]),n),{})};module.exports=s;
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { default as Immutable } from 'immutable';
|
|
3
|
-
export declare const components: {
|
|
4
|
-
pageGallery: React.LazyExoticComponent<React.FC<import('react-intl').WithIntlProps<import('./pagegallery/index').PageGalleryProps>> & {
|
|
5
|
-
WrappedComponent: React.ComponentType<import('./pagegallery/index').PageGalleryProps>;
|
|
6
|
-
}>;
|
|
7
|
-
postsCarousel: React.LazyExoticComponent<(props: import('./postscarousel/index').PostCarouselProps) => React.JSX.Element>;
|
|
8
|
-
chart: React.LazyExoticComponent<import('react-redux').ConnectedComponent<(props: any) => React.JSX.Element, {
|
|
9
|
-
[x: string]: any;
|
|
10
|
-
}>>;
|
|
11
|
-
filter: React.LazyExoticComponent<React.FC<import('react-intl').WithIntlProps<any>> & {
|
|
12
|
-
WrappedComponent: React.ComponentType<any>;
|
|
13
|
-
}>;
|
|
14
|
-
showCaseForm: React.LazyExoticComponent<import('react-redux').ConnectedComponent<(props: any) => React.JSX.Element, {
|
|
15
|
-
[x: string]: any;
|
|
16
|
-
}>>;
|
|
17
|
-
newsLetter: React.LazyExoticComponent<import('react-redux').ConnectedComponent<(props: any) => React.JSX.Element, {
|
|
18
|
-
[x: string]: any;
|
|
19
|
-
}>>;
|
|
20
|
-
tabbedPosts: React.LazyExoticComponent<import('react-redux').ConnectedComponent<React.FC<import('react-intl').WithIntlProps<any>> & {
|
|
21
|
-
WrappedComponent: React.ComponentType<any>;
|
|
22
|
-
}, {
|
|
23
|
-
[x: string]: any;
|
|
24
|
-
}>>;
|
|
25
|
-
pageModules: React.LazyExoticComponent<import('react-redux').ConnectedComponent<React.FC<import('react-intl').WithIntlProps<any>> & {
|
|
26
|
-
WrappedComponent: React.ComponentType<any>;
|
|
27
|
-
}, {
|
|
28
|
-
[x: string]: any;
|
|
29
|
-
[x: number]: any;
|
|
30
|
-
[x: symbol]: any;
|
|
31
|
-
"data-type": string;
|
|
32
|
-
"data-taxonomy": string;
|
|
33
|
-
"data-categories": string;
|
|
34
|
-
"data-items": string;
|
|
35
|
-
"data-nav-label": string;
|
|
36
|
-
"data-to-top-label": string;
|
|
37
|
-
"data-preview-mode": string;
|
|
38
|
-
editing: string;
|
|
39
|
-
parent: string;
|
|
40
|
-
unique: string;
|
|
41
|
-
intl: any;
|
|
42
|
-
context?: React.Context<import('react-redux').ReactReduxContextValue<any, import('redux').UnknownAction> | null> | undefined;
|
|
43
|
-
store?: import('redux').Store | undefined;
|
|
44
|
-
}>>;
|
|
45
|
-
featuredTabs: React.LazyExoticComponent<import('react-redux').ConnectedComponent<React.FC<import('./featuredtabs/index').FeatureTabsProps>, {
|
|
46
|
-
[x: string]: any;
|
|
47
|
-
}>>;
|
|
48
|
-
verticalTabs: React.LazyExoticComponent<import('react-redux').ConnectedComponent<React.FC<import('./vertical-featuredtabs/index').VerticalFeaturedTabsProps>, {
|
|
49
|
-
[x: string]: any;
|
|
50
|
-
}>>;
|
|
51
|
-
inlineList: React.LazyExoticComponent<React.FC<import('./inlinelist/index').InlineListProps>>;
|
|
52
|
-
download: React.LazyExoticComponent<import('react-redux').ConnectedComponent<(props: any) => React.JSX.Element, {
|
|
53
|
-
[x: string]: any;
|
|
54
|
-
[x: number]: any;
|
|
55
|
-
[x: symbol]: any;
|
|
56
|
-
context?: React.Context<import('react-redux').ReactReduxContextValue<any, import('redux').UnknownAction> | null> | undefined;
|
|
57
|
-
store?: import('redux').Store | undefined;
|
|
58
|
-
} | {
|
|
59
|
-
[x: string]: any;
|
|
60
|
-
[x: number]: any;
|
|
61
|
-
[x: symbol]: any;
|
|
62
|
-
store?: import('redux').Store | undefined;
|
|
63
|
-
}>>;
|
|
64
|
-
downloadPdf: React.LazyExoticComponent<(props: any) => React.JSX.Element>;
|
|
65
|
-
map: React.LazyExoticComponent<import('react-redux').ConnectedComponent<(props: any) => React.JSX.Element, {
|
|
66
|
-
[x: string]: any;
|
|
67
|
-
}>>;
|
|
68
|
-
dataFiltersReset: React.LazyExoticComponent<import('react-redux').ConnectedComponent<(props: any) => React.JSX.Element, {
|
|
69
|
-
[x: string]: any;
|
|
70
|
-
}>>;
|
|
71
|
-
dataFiltersApply: React.LazyExoticComponent<import('react-redux').ConnectedComponent<(props: any) => React.JSX.Element, {
|
|
72
|
-
[x: string]: any;
|
|
73
|
-
}>>;
|
|
74
|
-
tooltip: React.LazyExoticComponent<({ "data-description": description }: {
|
|
75
|
-
"data-description"?: string | undefined;
|
|
76
|
-
}) => React.JSX.Element>;
|
|
77
|
-
references: React.LazyExoticComponent<import('react-redux').ConnectedComponent<({ editing, "data-columns": cols, "data-height": height, "data-flex-direction": flexDirection }: {
|
|
78
|
-
editing?: boolean | undefined;
|
|
79
|
-
"data-columns"?: number | undefined;
|
|
80
|
-
"data-height"?: number | undefined;
|
|
81
|
-
"data-flex-direction"?: string | undefined;
|
|
82
|
-
}) => React.JSX.Element, {
|
|
83
|
-
[x: string]: any;
|
|
84
|
-
}>>;
|
|
85
|
-
reference: React.LazyExoticComponent<import('react-redux').ConnectedComponent<({ "data-index": index, "data-description": description, "data-link": link }: {
|
|
86
|
-
"data-index"?: string | undefined;
|
|
87
|
-
"data-description"?: string | undefined;
|
|
88
|
-
"data-link"?: string | undefined;
|
|
89
|
-
}) => React.JSX.Element, {
|
|
90
|
-
[x: string]: any;
|
|
91
|
-
}>>;
|
|
92
|
-
timeLine: React.LazyExoticComponent<import('react-redux').ConnectedComponent<(props: any) => React.JSX.Element, {
|
|
93
|
-
[x: string]: any;
|
|
94
|
-
[x: number]: any;
|
|
95
|
-
[x: symbol]: any;
|
|
96
|
-
context?: React.Context<import('react-redux').ReactReduxContextValue<any, import('redux').UnknownAction> | null> | undefined;
|
|
97
|
-
store?: import('redux').Store | undefined;
|
|
98
|
-
} | {
|
|
99
|
-
[x: string]: any;
|
|
100
|
-
[x: number]: any;
|
|
101
|
-
[x: symbol]: any;
|
|
102
|
-
store?: import('redux').Store | undefined;
|
|
103
|
-
}>>;
|
|
104
|
-
newTimeLine: React.LazyExoticComponent<(props: any) => React.JSX.Element>;
|
|
105
|
-
measures: React.LazyExoticComponent<React.FC<import('./measures/index').MeasuresProps>>;
|
|
106
|
-
menu: React.LazyExoticComponent<(props: any) => React.JSX.Element>;
|
|
107
|
-
childPagesMenu: React.LazyExoticComponent<React.FC<import('react-intl').WithIntlProps<any>> & {
|
|
108
|
-
WrappedComponent: React.ComponentType<any>;
|
|
109
|
-
}>;
|
|
110
|
-
newMap: React.LazyExoticComponent<import('react-redux').ConnectedComponent<(props: any) => React.JSX.Element, {
|
|
111
|
-
[x: string]: any;
|
|
112
|
-
}>>;
|
|
113
|
-
parallaxContainer: React.LazyExoticComponent<(props: import('./parallax/index').ParallaxProps) => React.JSX.Element>;
|
|
114
|
-
wrapped: React.LazyExoticComponent<(props: any) => React.JSX.Element>;
|
|
115
|
-
sankeyChart: React.LazyExoticComponent<import('react-redux').ConnectedComponent<(props: any) => React.JSX.Element, {
|
|
116
|
-
[x: string]: any;
|
|
117
|
-
}>>;
|
|
118
|
-
dataLabel: React.LazyExoticComponent<import('react-redux').ConnectedComponent<(props: any) => React.JSX.Element, {
|
|
119
|
-
[x: string]: any;
|
|
120
|
-
}>>;
|
|
121
|
-
body: React.LazyExoticComponent<React.FC<import('react-intl').WithIntlProps<any>> & {
|
|
122
|
-
WrappedComponent: React.ComponentType<any>;
|
|
123
|
-
}>;
|
|
124
|
-
supersetChart: React.LazyExoticComponent<import('react-redux').ConnectedComponent<(props: any) => React.JSX.Element, {
|
|
125
|
-
[x: string]: any;
|
|
126
|
-
}>>;
|
|
127
|
-
supersetDashboard: React.LazyExoticComponent<import('react-redux').ConnectedComponent<(props: any) => React.JSX.Element, {
|
|
128
|
-
[x: string]: any;
|
|
129
|
-
}>>;
|
|
130
|
-
agreeAndDownload: React.LazyExoticComponent<(props: any) => React.JSX.Element>;
|
|
131
|
-
bigNumber: React.LazyExoticComponent<import('react-redux').ConnectedComponent<(props: any) => React.JSX.Element, {
|
|
132
|
-
[x: string]: any;
|
|
133
|
-
}>>;
|
|
134
|
-
bigNumberTrend: React.LazyExoticComponent<import('react-redux').ConnectedComponent<(props: any) => React.JSX.Element, {
|
|
135
|
-
[x: string]: any;
|
|
136
|
-
}>>;
|
|
137
|
-
redirect: () => null;
|
|
138
|
-
};
|
|
139
|
-
export declare const customizer: {
|
|
140
|
-
components: {};
|
|
141
|
-
reducers: Record<string, (state: Immutable.MapOf<{
|
|
142
|
-
mode: string;
|
|
143
|
-
}> | undefined, action: any) => any>;
|
|
144
|
-
registerCustomEmbeddables: (components: Record<string, React.ComponentType<any>>) => void;
|
|
145
|
-
getComponentByNameIgnoreCase: (name: string) => React.NamedExoticComponent<import('react-intl').WithIntlProps<import('react-intl').WrappedComponentProps<any>>> | null;
|
|
146
|
-
registerCustomReducers: (reducers: (state: Immutable.MapOf<{
|
|
147
|
-
mode: string;
|
|
148
|
-
}> | undefined, action: any) => any) => void;
|
|
149
|
-
getReducers: () => Record<string, (state: Immutable.MapOf<{
|
|
150
|
-
mode: string;
|
|
151
|
-
}> | undefined, action: any) => any>;
|
|
152
|
-
};
|
|
153
|
-
export declare const getComponentByNameIgnoreCase: (name: string) => React.NamedExoticComponent<import('react-intl').WithIntlProps<import('react-intl').WrappedComponentProps<any>>> | null;
|
|
154
|
-
export declare const reducers: {
|
|
155
|
-
data: (state: Immutable.MapOf<{
|
|
156
|
-
mode: string;
|
|
157
|
-
}> | undefined, action: any) => Immutable.MapOf<{
|
|
158
|
-
mode: string;
|
|
159
|
-
}>;
|
|
160
|
-
embeddable: (state: Immutable.MapOf<{}> | undefined, action: any) => Immutable.MapOf<{}>;
|
|
161
|
-
};
|