@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.
Files changed (224) hide show
  1. package/dist/cjs/common.css +1 -1
  2. package/dist/cjs/embeddable/agree-and-download/index.js +1 -1
  3. package/dist/cjs/embeddable/big-number/index.js +1 -1
  4. package/dist/cjs/embeddable/big-number-trend/index.js +1 -1
  5. package/dist/cjs/embeddable/body/Background.js +1 -1
  6. package/dist/cjs/embeddable/body/Blood.js +1 -1
  7. package/dist/cjs/embeddable/body/Bounds.js +1 -1
  8. package/dist/cjs/embeddable/body/Brain.js +1 -1
  9. package/dist/cjs/embeddable/body/Ectopic.js +1 -1
  10. package/dist/cjs/embeddable/body/Erectile.js +1 -1
  11. package/dist/cjs/embeddable/body/Eyes.js +1 -1
  12. package/dist/cjs/embeddable/body/Head.js +1 -1
  13. package/dist/cjs/embeddable/body/Heart.js +1 -1
  14. package/dist/cjs/embeddable/body/Liver.js +1 -1
  15. package/dist/cjs/embeddable/body/Lungs.js +1 -1
  16. package/dist/cjs/embeddable/body/Stomach.js +1 -1
  17. package/dist/cjs/embeddable/body/index.js +1 -1
  18. package/dist/cjs/embeddable/chart/Bar.js +1 -1
  19. package/dist/cjs/embeddable/chart/CSVDataFrame.js +1 -1
  20. package/dist/cjs/embeddable/chart/Legends.js +1 -1
  21. package/dist/cjs/embeddable/chart/Line.js +1 -1
  22. package/dist/cjs/embeddable/chart/LineLayer.js +1 -1
  23. package/dist/cjs/embeddable/chart/Messages.js +2 -2
  24. package/dist/cjs/embeddable/chart/Pie.js +1 -1
  25. package/dist/cjs/embeddable/chart/Radar.js +1 -1
  26. package/dist/cjs/embeddable/chart/Tooltip.js +1 -1
  27. package/dist/cjs/embeddable/chart/colors/CategoricalColors.js +1 -1
  28. package/dist/cjs/embeddable/chart/colors/ColorProvider.js +1 -1
  29. package/dist/cjs/embeddable/chart/colors/Colors.js +1 -1
  30. package/dist/cjs/embeddable/chart/colors/ManualColors.js +1 -1
  31. package/dist/cjs/embeddable/chart/colors/PlainColor.js +1 -1
  32. package/dist/cjs/embeddable/chart/colors/SequentialColors.js +1 -1
  33. package/dist/cjs/embeddable/chart/colors/SystemColors.js +1 -1
  34. package/dist/cjs/embeddable/chart/data/Bar.js +1 -1
  35. package/dist/cjs/embeddable/chart/data/Line.js +1 -1
  36. package/dist/cjs/embeddable/chart/data/Utils.js +1 -1
  37. package/dist/cjs/embeddable/chart/data/index.js +1 -1
  38. package/dist/cjs/embeddable/chart/index.js +1 -1
  39. package/dist/cjs/embeddable/child-page-menu/index.js +1 -1
  40. package/dist/cjs/embeddable/common/Messages.js +2 -2
  41. package/dist/cjs/embeddable/common/colors/CategoricalColors.js +1 -1
  42. package/dist/cjs/embeddable/common/colors/ColorProvider.js +1 -1
  43. package/dist/cjs/embeddable/common/colors/Colors.js +1 -1
  44. package/dist/cjs/embeddable/common/colors/ManualColors.js +1 -1
  45. package/dist/cjs/embeddable/common/colors/PlainColor.js +1 -1
  46. package/dist/cjs/embeddable/common/colors/SequentialColors.js +1 -1
  47. package/dist/cjs/embeddable/common/colors/SystemColors.js +1 -1
  48. package/dist/cjs/embeddable/connected-templates/PostContent.js +1 -1
  49. package/dist/cjs/embeddable/connected-templates/PostIntro.js +1 -1
  50. package/dist/cjs/embeddable/d3Map/BaseLayer.js +1 -1
  51. package/dist/cjs/embeddable/d3Map/BreaksStyles.js +1 -1
  52. package/dist/cjs/embeddable/d3Map/DataLayer.js +1 -1
  53. package/dist/cjs/embeddable/d3Map/FlowLayer.js +1 -1
  54. package/dist/cjs/embeddable/d3Map/GradientColors.js +1 -0
  55. package/dist/cjs/embeddable/d3Map/LatLongLayer.js +1 -1
  56. package/dist/cjs/embeddable/d3Map/Layer.js +1 -1
  57. package/dist/cjs/embeddable/d3Map/Legends.js +1 -1
  58. package/dist/cjs/embeddable/d3Map/Map.js +1 -1
  59. package/dist/cjs/embeddable/d3Map/ProjectedContainer.js +1 -1
  60. package/dist/cjs/embeddable/d3Map/Utils.js +1 -0
  61. package/dist/cjs/embeddable/d3Map/ZoomControl.js +1 -1
  62. package/dist/cjs/embeddable/d3Map/index.js +1 -1
  63. package/dist/cjs/embeddable/data/CategoriesConsumer.js +1 -1
  64. package/dist/cjs/embeddable/data/CategoriesProvider.js +1 -1
  65. package/dist/cjs/embeddable/data/DataConsumer.js +1 -1
  66. package/dist/cjs/embeddable/data/DataProvider.js +1 -1
  67. package/dist/cjs/embeddable/datalabel/index.js +1 -1
  68. package/dist/cjs/embeddable/download/index.js +2 -2
  69. package/dist/cjs/embeddable/downloadPDF/index.js +1 -1
  70. package/dist/cjs/embeddable/featuredtabs/index.js +1 -1
  71. package/dist/cjs/embeddable/filter/index.js +1 -1
  72. package/dist/cjs/embeddable/filter-reset-button/index.js +1 -1
  73. package/dist/cjs/embeddable/filters-apply-button/index.js +1 -1
  74. package/dist/cjs/embeddable/index.js +1 -1
  75. package/dist/cjs/embeddable/inlinelist/index.js +1 -1
  76. package/dist/cjs/embeddable/map/MapCSVDataFrame.js +1 -1
  77. package/dist/cjs/embeddable/map/MapDataFrame.js +1 -1
  78. package/dist/cjs/embeddable/map/index.js +2 -2
  79. package/dist/cjs/embeddable/map/legend.js +1 -1
  80. package/dist/cjs/embeddable/map/map.js +3 -3
  81. package/dist/cjs/embeddable/measures/index.js +1 -1
  82. package/dist/cjs/embeddable/menu/index.js +2 -2
  83. package/dist/cjs/embeddable/new-time-line/index.js +1 -1
  84. package/dist/cjs/embeddable/new-time-line/timeline.js +1 -1
  85. package/dist/cjs/embeddable/newsletter/index.js +1 -1
  86. package/dist/cjs/embeddable/pagegallery/index.js +1 -1
  87. package/dist/cjs/embeddable/pagemodules/FloatingNavigator.js +1 -1
  88. package/dist/cjs/embeddable/pagemodules/index.js +1 -1
  89. package/dist/cjs/embeddable/parallax/index.js +1 -1
  90. package/dist/cjs/embeddable/posts-with-filters/Post.js +1 -0
  91. package/dist/cjs/embeddable/posts-with-filters/index.js +1 -0
  92. package/dist/cjs/embeddable/posts-with-filters/utils.js +1 -0
  93. package/dist/cjs/embeddable/postscarousel/index.js +1 -1
  94. package/dist/cjs/embeddable/reducers/data-api.js +1 -1
  95. package/dist/cjs/embeddable/reducers/data.js +1 -1
  96. package/dist/cjs/embeddable/references/Reference.js +1 -1
  97. package/dist/cjs/embeddable/references/ReferencesList.js +1 -1
  98. package/dist/cjs/embeddable/sankeychart/Sankey.js +1 -1
  99. package/dist/cjs/embeddable/sankeychart/index.js +1 -1
  100. package/dist/cjs/embeddable/showcase/index.js +1 -1
  101. package/dist/cjs/embeddable/superset-chart/index.js +1 -1
  102. package/dist/cjs/embeddable/superset-dashboard/index.js +1 -1
  103. package/dist/cjs/embeddable/tabbedposts/index.js +1 -1
  104. package/dist/cjs/embeddable/time-line/desktop.js +1 -1
  105. package/dist/cjs/embeddable/time-line/index.js +1 -1
  106. package/dist/cjs/embeddable/time-line/mobile.js +1 -1
  107. package/dist/cjs/embeddable/tooltip/index.js +1 -1
  108. package/dist/cjs/embeddable/vertical-featuredtabs/index.js +2 -2
  109. package/dist/cjs/embeddable/wrapped/index.js +1 -1
  110. package/dist/cjs/index.js +1 -1
  111. package/dist/cjs/layout/CustomSemanticSearch.js +1 -1
  112. package/dist/cjs/layout/FlexWrapDetector.js +1 -1
  113. package/dist/cjs/layout/Footer.js +1 -1
  114. package/dist/cjs/layout/Header.js +2 -2
  115. package/dist/cjs/layout/LangSwitcher.js +1 -1
  116. package/dist/cjs/layout/ResponsiveContainer.js +1 -1
  117. package/dist/cjs/layout/ScrollTop.js +1 -1
  118. package/dist/cjs/layout/SearchControl.js +1 -1
  119. package/dist/cjs/layout/TopNavigator.js +1 -1
  120. package/dist/cjs/layout/containers/PreviewPageContainer.js +1 -1
  121. package/dist/cjs/layout/containers/PreviewTypeContainer.js +1 -1
  122. package/dist/cjs/layout/containers/SlugContainer.js +1 -1
  123. package/dist/cjs/layout/containers/SlugPostContainer.js +1 -1
  124. package/dist/cjs/layout/index.js +1 -1
  125. package/dist/cjs/lib/hooks/screen-orientation.js +1 -0
  126. package/dist/cjs/lib/hooks/window-dimensions.js +1 -1
  127. package/dist/cjs/lib/react-intl-redux/index.js +1 -1
  128. package/dist/cjs/lib/react-intl-redux/providers/IntlProvider.js +1 -1
  129. package/dist/cjs/lib/react-intl-redux/providers/Provider.js +1 -1
  130. package/dist/cjs/redux/reducer.js +1 -1
  131. package/dist/cjs/redux/store.js +1 -1
  132. package/dist/cjs/styles.css +1 -1
  133. package/dist/cjs/translations/af.json.js +1 -1
  134. package/dist/cjs/utils/data.js +1 -0
  135. package/dist/cjs/utils/deviceType.js +1 -1
  136. package/dist/cjs/utils/semanticUtils.js +1 -1
  137. package/dist/esm/common.css +1 -1
  138. package/dist/esm/embeddable/big-number/index.js +82 -74
  139. package/dist/esm/embeddable/big-number-trend/index.js +117 -97
  140. package/dist/esm/embeddable/chart/Bar.js +235 -224
  141. package/dist/esm/embeddable/chart/Line.js +261 -252
  142. package/dist/esm/embeddable/chart/Tooltip.js +19 -17
  143. package/dist/esm/embeddable/chart/colors/ManualColors.js +19 -19
  144. package/dist/esm/embeddable/chart/data/Bar.js +179 -180
  145. package/dist/esm/embeddable/chart/data/Line.js +146 -193
  146. package/dist/esm/embeddable/chart/data/Utils.js +39 -23
  147. package/dist/esm/embeddable/chart/index.js +323 -316
  148. package/dist/esm/embeddable/d3Map/BaseLayer.js +38 -45
  149. package/dist/esm/embeddable/d3Map/DataLayer.js +418 -204
  150. package/dist/esm/embeddable/d3Map/FlowLayer.js +113 -115
  151. package/dist/esm/embeddable/d3Map/GradientColors.js +155 -0
  152. package/dist/esm/embeddable/d3Map/LatLongLayer.js +132 -104
  153. package/dist/esm/embeddable/d3Map/Layer.js +31 -31
  154. package/dist/esm/embeddable/d3Map/Legends.js +274 -162
  155. package/dist/esm/embeddable/d3Map/Map.js +14 -14
  156. package/dist/esm/embeddable/d3Map/ProjectedContainer.js +16 -15
  157. package/dist/esm/embeddable/d3Map/Utils.js +11 -0
  158. package/dist/esm/embeddable/d3Map/ZoomControl.js +83 -55
  159. package/dist/esm/embeddable/d3Map/index.js +116 -83
  160. package/dist/esm/embeddable/data/CategoriesProvider.js +38 -33
  161. package/dist/esm/embeddable/data/DataProvider.js +87 -79
  162. package/dist/esm/embeddable/filter/index.js +227 -233
  163. package/dist/esm/embeddable/filter-reset-button/index.js +38 -26
  164. package/dist/esm/embeddable/filters-apply-button/index.js +36 -28
  165. package/dist/esm/embeddable/index.js +15 -14
  166. package/dist/esm/embeddable/inlinelist/index.js +64 -61
  167. package/dist/esm/embeddable/map/index.js +157 -148
  168. package/dist/esm/embeddable/measures/index.js +3 -3
  169. package/dist/esm/embeddable/menu/index.js +8 -8
  170. package/dist/esm/embeddable/new-time-line/timeline.js +11 -11
  171. package/dist/esm/embeddable/pagegallery/index.js +11 -11
  172. package/dist/esm/embeddable/pagemodules/index.js +48 -49
  173. package/dist/esm/embeddable/parallax/index.js +30 -25
  174. package/dist/esm/embeddable/posts-with-filters/Post.js +26 -0
  175. package/dist/esm/embeddable/posts-with-filters/index.js +205 -0
  176. package/dist/esm/embeddable/posts-with-filters/utils.js +8 -0
  177. package/dist/esm/embeddable/reducers/data-api.js +27 -13
  178. package/dist/esm/embeddable/reducers/data.js +106 -94
  179. package/dist/esm/embeddable/references/ReferencesList.js +34 -33
  180. package/dist/esm/embeddable/superset-chart/index.js +12 -13
  181. package/dist/esm/embeddable/superset-dashboard/index.js +3 -4
  182. package/dist/esm/embeddable/tabbedposts/index.js +21 -23
  183. package/dist/esm/embeddable/time-line/index.js +14 -11
  184. package/dist/esm/embeddable/time-line/mobile.js +204 -206
  185. package/dist/esm/layout/CustomSemanticSearch.js +20 -22
  186. package/dist/esm/lib/hooks/screen-orientation.js +25 -0
  187. package/dist/esm/lib/hooks/window-dimensions.js +7 -7
  188. package/dist/esm/styles.css +1 -1
  189. package/dist/esm/utils/data.js +11 -0
  190. package/dist/esm/utils/semanticUtils.js +19 -13
  191. package/dist/types/common.css.d.ts +1 -0
  192. package/dist/types/embeddable/chart/Line.d.ts +4 -0
  193. package/dist/types/embeddable/chart/data/Line.d.ts +2 -2
  194. package/dist/types/embeddable/chart/index.d.ts +3 -1
  195. package/dist/types/embeddable/d3Map/GradientColors.d.ts +17 -0
  196. package/dist/types/embeddable/d3Map/Layer.d.ts +1 -0
  197. package/dist/types/embeddable/d3Map/Legends.d.ts +4 -2
  198. package/dist/types/embeddable/d3Map/Utils.d.ts +1 -0
  199. package/dist/types/embeddable/d3Map/ZoomControl.d.ts +11 -7
  200. package/dist/types/embeddable/data/CategoriesProvider.d.ts +6 -2
  201. package/dist/types/embeddable/inlinelist/index.d.ts +1 -8
  202. package/dist/types/embeddable/measures/index.d.ts +1 -1
  203. package/dist/types/embeddable/menu/index.d.ts +0 -10
  204. package/dist/types/embeddable/pagegallery/index.d.ts +0 -4
  205. package/dist/types/embeddable/pagemodules/index.d.ts +1 -1
  206. package/dist/types/embeddable/parallax/index.d.ts +1 -16
  207. package/dist/types/embeddable/posts-with-filters/Post.d.ts +3 -0
  208. package/dist/types/embeddable/posts-with-filters/index.d.ts +21 -0
  209. package/dist/types/embeddable/posts-with-filters/utils.d.ts +6 -0
  210. package/dist/types/embeddable/postscarousel/index.d.ts +1 -1
  211. package/dist/types/embeddable/reducers/data-api.d.ts +9 -18
  212. package/dist/types/embeddable/reducers/data.d.ts +32 -31
  213. package/dist/types/embeddable/references/ReferencesList.d.ts +2 -1
  214. package/dist/types/index.css.d.ts +1 -0
  215. package/dist/types/lib/hooks/resize-observer.d.ts +4 -0
  216. package/dist/types/lib/hooks/screen-orientation.d.ts +18 -0
  217. package/dist/types/utils/data.d.ts +5 -0
  218. package/dist/types/utils/semanticUtils.d.ts +30 -2
  219. package/package.json +3 -2
  220. 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
  221. 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
  222. 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
  223. 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
  224. package/dist/types/embeddable/index.d.ts +0 -161
@@ -1,3 +1,5 @@
1
1
  import { default as React } from 'react';
2
- export default Legends;
3
- declare function Legends(props: any): React.JSX.Element;
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
- zooming: boolean;
6
- zoomstarted: () => void;
7
- zoomEnd(event: any): void;
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
- zoomIn(e: any): void;
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, prevState: any, snapshot: any): void;
19
- zoomStarted(): void;
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
- export default CategoriesProvider;
3
- declare function CategoriesProvider(props: any): React.JSX.Element;
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
- export interface ListOfPostProps {
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,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- export interface MeasuresProps {
2
+ interface MeasuresProps {
3
3
  parent?: string;
4
4
  editing?: boolean;
5
5
  unique?: 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,8 +1,4 @@
1
1
  import { default as React } from 'react';
2
- export interface HorizontalDashboardGalleryProps {
3
- pages?: any[];
4
- columns: string;
5
- }
6
2
  export interface PageGalleryProps {
7
3
  "data-height": number;
8
4
  "data-style": string;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- export interface SectionHeaderProps {
2
+ interface SectionHeaderProps {
3
3
  title: string;
4
4
  subtitle: string;
5
5
  icon?: string;
@@ -1,18 +1,3 @@
1
1
  import { default as React } from 'react';
2
- export interface ParallaxProps {
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,3 @@
1
+ import { default as React } from 'react';
2
+ declare const Post: (props: any) => React.JSX.Element;
3
+ export default Post;
@@ -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;
@@ -0,0 +1,6 @@
1
+ declare function getStartDateAndEndDateFromYear(year: number): {
2
+ startDate: Date;
3
+ endDate: Date;
4
+ };
5
+ declare function getYearsToDisplay(): Promise<unknown>;
6
+ export { getStartDateAndEndDateFromYear, getYearsToDisplay };
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- export interface PostCarouselProps {
2
+ interface PostCarouselProps {
3
3
  "data-type": string;
4
4
  "data-taxonomy": string;
5
5
  "data-categories": string;
@@ -1,18 +1,9 @@
1
- interface DataResponse {
2
- [key: string]: any;
3
- metadata: {
4
- [key: string]: any;
5
- };
6
- itemSize: number;
7
- children?: Record<string, DataResponse>[];
8
- }
9
- export declare const getCategories: ({ app, params }: {
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 declare const cleanMeasures: ({ app, group }: {
2
- app: string;
3
- group: string;
4
- }) => (dispatch: any, getState: any) => void;
5
- export declare const setMeasures: ({ app, group, mGroup }: {
6
- app: string;
7
- group: string;
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
- }) => (dispatch: any, getState: any) => void;
10
- export declare const setFilter: ({ app, group, param, value, autoApply }: {
11
- app: string;
12
- group: string;
13
- param: string;
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: boolean;
16
- }) => (dispatch: any, getState: any) => void;
17
- export declare const cleanFilter: ({ app, group }: {
18
- app: string;
19
- group: string;
20
- }) => (dispatch: any, getState: any) => void;
21
- export declare const applyFilter: ({ app, group }: {
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
- }) => (dispatch: any, getState: any) => void;
25
- export declare const setInitialFilters: ({ app, group, param, value }: {
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
- }) => (dispatch: any, getState: any) => void;
31
- export declare const getCategories: (props: any) => (dispatch: any, getState: any) => void;
32
- export declare const setData: ({ app, group, csv, store, params }: {
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
- }) => (dispatch: any, getState: any) => void;
39
- export declare const getData: ({ app, group, source, store, params }: {
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
- }) => (dispatch: any, getState: any) => void;
46
- export declare const setPageModuleProps: ({ data }: {
45
+ }): (dispatch: any, getState: any) => void;
46
+ export function setPageModuleProps({ data }: {
47
47
  data: any;
48
- }) => (dispatch: any, getState: any) => void;
49
- declare const _default: (state: import('immutable').MapOf<{
48
+ }): (dispatch: any, getState: any) => void;
49
+ declare function _default(state: Immutable.MapOf<{
50
50
  mode: string;
51
- }> | undefined, action: any) => import('immutable').MapOf<{
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,4 @@
1
+ export declare function useResizeObserver<T extends HTMLElement>(ref: React.RefObject<T>): {
2
+ width: number;
3
+ height: number;
4
+ };
@@ -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: any, options?: {
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.6",
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,5 +0,0 @@
1
- const s = (e, n) => e && n, t = (e, n) => e && e !== !0 && `${e} ${n}`;
2
- export {
3
- s as useKeyOnly,
4
- t as useValueAndKey
5
- };
@@ -1,7 +0,0 @@
1
- const f = (d, t) => {
2
- const { handledProps: r = [] } = d;
3
- return Object.keys(t).reduce((n, e) => (e === "childKey" || e === "innerRef" || r.indexOf(e) === -1 && (n[e] = t[e]), n), {});
4
- };
5
- export {
6
- f as default
7
- };
@@ -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
- };