@mailstep/design-system 0.8.52 → 0.9.1

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 (290) hide show
  1. package/package.json +22 -6
  2. package/ui/Blocks/CommonGrid/components/ActionHead/ActionHead.js +1 -1
  3. package/ui/Blocks/CommonGrid/hooks/useManageColumn.js +1 -1
  4. package/ui/Blocks/Header/components/UserMenu/index.js +1 -1
  5. package/ui/Blocks/Header/styles.js +1 -1
  6. package/ui/Elements/Avatar/Avatar.js +1 -1
  7. package/ui/Elements/Avatar/styles.js +1 -1
  8. package/ui/Elements/Button/styles.js +1 -1
  9. package/ui/Modules/Dashboard/Hoc/LoadingBoundary.d.ts +8 -0
  10. package/ui/Modules/Dashboard/Hoc/LoadingBoundary.js +11 -0
  11. package/ui/Modules/Dashboard/Hoc/index.d.ts +3 -0
  12. package/ui/Modules/Dashboard/Hoc/index.js +4 -0
  13. package/ui/Modules/Dashboard/Hoc/storybook/withReduxProvider.d.ts +4 -0
  14. package/ui/Modules/Dashboard/Hoc/storybook/withReduxProvider.js +14 -0
  15. package/ui/Modules/Dashboard/Hoc/withConfig.d.ts +7 -0
  16. package/ui/Modules/Dashboard/Hoc/withConfig.js +22 -0
  17. package/ui/Modules/Dashboard/Hoc/withFetch.d.ts +26 -0
  18. package/ui/Modules/Dashboard/Hoc/withFetch.js +50 -0
  19. package/ui/Modules/Dashboard/Hoc/withProps.d.ts +4 -0
  20. package/ui/Modules/Dashboard/Hoc/withProps.js +25 -0
  21. package/ui/Modules/Dashboard/assets/BarChartPreview.png +0 -0
  22. package/ui/Modules/Dashboard/assets/ColorBoxPreview.png +0 -0
  23. package/ui/Modules/Dashboard/assets/HorizontalBarPreview.png +0 -0
  24. package/ui/Modules/Dashboard/assets/NumberBoxPreview.png +0 -0
  25. package/ui/Modules/Dashboard/assets/PieChartPreview.png +0 -0
  26. package/ui/Modules/Dashboard/assets/TablePreview.png +0 -0
  27. package/ui/Modules/Dashboard/assets/TextBoxPreview.png +0 -0
  28. package/ui/Modules/Dashboard/assets/move.svg +18 -0
  29. package/ui/Modules/Dashboard/components/Config/MultiConfig.d.ts +6 -0
  30. package/ui/Modules/Dashboard/components/Config/MultiConfig.js +51 -0
  31. package/ui/Modules/Dashboard/components/Config/components/CommonConfig.d.ts +4 -0
  32. package/ui/Modules/Dashboard/components/Config/components/CommonConfig.js +20 -0
  33. package/ui/Modules/Dashboard/components/Config/components/InputConfig.d.ts +5 -0
  34. package/ui/Modules/Dashboard/components/Config/components/InputConfig.js +104 -0
  35. package/ui/Modules/Dashboard/components/Config/types.d.ts +1 -0
  36. package/ui/Modules/Dashboard/components/Config/types.js +1 -0
  37. package/ui/Modules/Dashboard/components/Dashboard/Dashboard.d.ts +9 -0
  38. package/ui/Modules/Dashboard/components/Dashboard/Dashboard.js +16 -0
  39. package/ui/Modules/Dashboard/components/Dashboard/DashboardContainer.d.ts +4 -0
  40. package/ui/Modules/Dashboard/components/Dashboard/DashboardContainer.js +31 -0
  41. package/ui/Modules/Dashboard/components/Dashboard/components/Body.d.ts +7 -0
  42. package/ui/Modules/Dashboard/components/Dashboard/components/Body.js +7 -0
  43. package/ui/Modules/Dashboard/components/Dashboard/components/HandleChange.d.ts +6 -0
  44. package/ui/Modules/Dashboard/components/Dashboard/components/HandleChange.js +25 -0
  45. package/ui/Modules/Dashboard/components/Dashboard/components/LayoutErrorBoundary.d.ts +13 -0
  46. package/ui/Modules/Dashboard/components/Dashboard/components/LayoutErrorBoundary.js +19 -0
  47. package/ui/Modules/Dashboard/components/Dashboard/dashboard2.css +124 -0
  48. package/ui/Modules/Dashboard/components/Dashboard/index.d.ts +2 -0
  49. package/ui/Modules/Dashboard/components/Dashboard/index.js +5 -0
  50. package/ui/Modules/Dashboard/components/Header/Header.d.ts +8 -0
  51. package/ui/Modules/Dashboard/components/Header/Header.js +9 -0
  52. package/ui/Modules/Dashboard/components/Header/index.d.ts +2 -0
  53. package/ui/Modules/Dashboard/components/Header/index.js +5 -0
  54. package/ui/Modules/Dashboard/components/Layout/Layout.d.ts +18 -0
  55. package/ui/Modules/Dashboard/components/Layout/Layout.js +39 -0
  56. package/ui/Modules/Dashboard/components/Layout/LayoutContainer.d.ts +7 -0
  57. package/ui/Modules/Dashboard/components/Layout/LayoutContainer.js +40 -0
  58. package/ui/Modules/Dashboard/components/Layout/components/Item/Item.d.ts +18 -0
  59. package/ui/Modules/Dashboard/components/Layout/components/Item/Item.js +79 -0
  60. package/ui/Modules/Dashboard/components/Layout/components/Item/ItemContainer.d.ts +11 -0
  61. package/ui/Modules/Dashboard/components/Layout/components/Item/ItemContainer.js +64 -0
  62. package/ui/Modules/Dashboard/components/Layout/components/Item/WidgetErrorBoundary.d.ts +14 -0
  63. package/ui/Modules/Dashboard/components/Layout/components/Item/WidgetErrorBoundary.js +28 -0
  64. package/ui/Modules/Dashboard/components/Layout/components/Item/index.d.ts +2 -0
  65. package/ui/Modules/Dashboard/components/Layout/components/Item/index.js +5 -0
  66. package/ui/Modules/Dashboard/components/Layout/components/ItemConfig/ItemConfig.d.ts +13 -0
  67. package/ui/Modules/Dashboard/components/Layout/components/ItemConfig/ItemConfig.js +18 -0
  68. package/ui/Modules/Dashboard/components/Layout/components/ItemConfig/ItemConfigControls.d.ts +8 -0
  69. package/ui/Modules/Dashboard/components/Layout/components/ItemConfig/ItemConfigControls.js +31 -0
  70. package/ui/Modules/Dashboard/components/Layout/components/ItemConfig/index.d.ts +2 -0
  71. package/ui/Modules/Dashboard/components/Layout/components/ItemConfig/index.js +5 -0
  72. package/ui/Modules/Dashboard/components/Layout/components/ItemHeader/ItemHeader.d.ts +12 -0
  73. package/ui/Modules/Dashboard/components/Layout/components/ItemHeader/ItemHeader.js +27 -0
  74. package/ui/Modules/Dashboard/components/Layout/components/ItemHeader/index.d.ts +2 -0
  75. package/ui/Modules/Dashboard/components/Layout/components/ItemHeader/index.js +5 -0
  76. package/ui/Modules/Dashboard/components/Layout/index.d.ts +2 -0
  77. package/ui/Modules/Dashboard/components/Layout/index.js +5 -0
  78. package/ui/Modules/Dashboard/components/NoData/NoData.d.ts +2 -0
  79. package/ui/Modules/Dashboard/components/NoData/NoData.js +14 -0
  80. package/ui/Modules/Dashboard/components/NoData/index.d.ts +2 -0
  81. package/ui/Modules/Dashboard/components/NoData/index.js +5 -0
  82. package/ui/Modules/Dashboard/components/Picker/Picker.d.ts +8 -0
  83. package/ui/Modules/Dashboard/components/Picker/Picker.js +38 -0
  84. package/ui/Modules/Dashboard/components/Picker/PickerContainer.d.ts +7 -0
  85. package/ui/Modules/Dashboard/components/Picker/PickerContainer.js +38 -0
  86. package/ui/Modules/Dashboard/components/Picker/components/PickerItem.d.ts +8 -0
  87. package/ui/Modules/Dashboard/components/Picker/components/PickerItem.js +25 -0
  88. package/ui/Modules/Dashboard/components/Picker/index.d.ts +2 -0
  89. package/ui/Modules/Dashboard/components/Picker/index.js +5 -0
  90. package/ui/Modules/Dashboard/components/Text/Text.d.ts +7 -0
  91. package/ui/Modules/Dashboard/components/Text/Text.js +14 -0
  92. package/ui/Modules/Dashboard/components/Text/index.d.ts +1 -0
  93. package/ui/Modules/Dashboard/components/Text/index.js +2 -0
  94. package/ui/Modules/Dashboard/components/Widgets/BarChart/BarChart.d.ts +19 -0
  95. package/ui/Modules/Dashboard/components/Widgets/BarChart/BarChart.js +52 -0
  96. package/ui/Modules/Dashboard/components/Widgets/BarChart/Config.d.ts +1 -0
  97. package/ui/Modules/Dashboard/components/Widgets/BarChart/Config.js +5 -0
  98. package/ui/Modules/Dashboard/components/Widgets/BarChart/index.d.ts +4 -0
  99. package/ui/Modules/Dashboard/components/Widgets/BarChart/index.js +6 -0
  100. package/ui/Modules/Dashboard/components/Widgets/BarChart/styles.d.ts +12 -0
  101. package/ui/Modules/Dashboard/components/Widgets/BarChart/styles.js +39 -0
  102. package/ui/Modules/Dashboard/components/Widgets/ColorBox/ColorBox.d.ts +7 -0
  103. package/ui/Modules/Dashboard/components/Widgets/ColorBox/ColorBox.js +21 -0
  104. package/ui/Modules/Dashboard/components/Widgets/ColorBox/Config.d.ts +3 -0
  105. package/ui/Modules/Dashboard/components/Widgets/ColorBox/Config.js +23 -0
  106. package/ui/Modules/Dashboard/components/Widgets/ColorBox/index.d.ts +4 -0
  107. package/ui/Modules/Dashboard/components/Widgets/ColorBox/index.js +6 -0
  108. package/ui/Modules/Dashboard/components/Widgets/EmptyWidget/EmptyWidget.d.ts +7 -0
  109. package/ui/Modules/Dashboard/components/Widgets/EmptyWidget/EmptyWidget.js +10 -0
  110. package/ui/Modules/Dashboard/components/Widgets/EmptyWidget/index.d.ts +2 -0
  111. package/ui/Modules/Dashboard/components/Widgets/EmptyWidget/index.js +5 -0
  112. package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/Config.d.ts +1 -0
  113. package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/Config.js +5 -0
  114. package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/HorizontalBar.d.ts +4 -0
  115. package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/HorizontalBar.js +38 -0
  116. package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/components/LabelsLine.d.ts +8 -0
  117. package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/components/LabelsLine.js +14 -0
  118. package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/components/ProgressLine.d.ts +7 -0
  119. package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/components/ProgressLine.js +14 -0
  120. package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/index.d.ts +4 -0
  121. package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/index.js +6 -0
  122. package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/storybook.sample.d.ts +2 -0
  123. package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/storybook.sample.js +33 -0
  124. package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/styles.d.ts +18 -0
  125. package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/styles.js +58 -0
  126. package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/types.d.ts +13 -0
  127. package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/types.js +1 -0
  128. package/ui/Modules/Dashboard/components/Widgets/NumberBox/Config.d.ts +4 -0
  129. package/ui/Modules/Dashboard/components/Widgets/NumberBox/Config.js +38 -0
  130. package/ui/Modules/Dashboard/components/Widgets/NumberBox/NumberBox.d.ts +5 -0
  131. package/ui/Modules/Dashboard/components/Widgets/NumberBox/NumberBox.js +38 -0
  132. package/ui/Modules/Dashboard/components/Widgets/NumberBox/index.d.ts +4 -0
  133. package/ui/Modules/Dashboard/components/Widgets/NumberBox/index.js +6 -0
  134. package/ui/Modules/Dashboard/components/Widgets/NumberBox/styles.d.ts +4 -0
  135. package/ui/Modules/Dashboard/components/Widgets/NumberBox/styles.js +25 -0
  136. package/ui/Modules/Dashboard/components/Widgets/PieChart/Config.d.ts +1 -0
  137. package/ui/Modules/Dashboard/components/Widgets/PieChart/Config.js +5 -0
  138. package/ui/Modules/Dashboard/components/Widgets/PieChart/PieChart.d.ts +21 -0
  139. package/ui/Modules/Dashboard/components/Widgets/PieChart/PieChart.js +59 -0
  140. package/ui/Modules/Dashboard/components/Widgets/PieChart/components/CenteredMetric.d.ts +10 -0
  141. package/ui/Modules/Dashboard/components/Widgets/PieChart/components/CenteredMetric.js +24 -0
  142. package/ui/Modules/Dashboard/components/Widgets/PieChart/index.d.ts +4 -0
  143. package/ui/Modules/Dashboard/components/Widgets/PieChart/index.js +6 -0
  144. package/ui/Modules/Dashboard/components/Widgets/PieChart/styles.d.ts +14 -0
  145. package/ui/Modules/Dashboard/components/Widgets/PieChart/styles.js +47 -0
  146. package/ui/Modules/Dashboard/components/Widgets/Table/Config.d.ts +9 -0
  147. package/ui/Modules/Dashboard/components/Widgets/Table/Config.js +87 -0
  148. package/ui/Modules/Dashboard/components/Widgets/Table/Table.d.ts +4 -0
  149. package/ui/Modules/Dashboard/components/Widgets/Table/Table.js +93 -0
  150. package/ui/Modules/Dashboard/components/Widgets/Table/components/IconLabelCell.d.ts +8 -0
  151. package/ui/Modules/Dashboard/components/Widgets/Table/components/IconLabelCell.js +19 -0
  152. package/ui/Modules/Dashboard/components/Widgets/Table/components/PaginatorList.d.ts +9 -0
  153. package/ui/Modules/Dashboard/components/Widgets/Table/components/PaginatorList.js +31 -0
  154. package/ui/Modules/Dashboard/components/Widgets/Table/components/PaginatorLocation.d.ts +8 -0
  155. package/ui/Modules/Dashboard/components/Widgets/Table/components/PaginatorLocation.js +15 -0
  156. package/ui/Modules/Dashboard/components/Widgets/Table/components/TableCell.d.ts +6 -0
  157. package/ui/Modules/Dashboard/components/Widgets/Table/components/TableCell.js +33 -0
  158. package/ui/Modules/Dashboard/components/Widgets/Table/hooks/useCondition.d.ts +10 -0
  159. package/ui/Modules/Dashboard/components/Widgets/Table/hooks/useCondition.js +27 -0
  160. package/ui/Modules/Dashboard/components/Widgets/Table/hooks/usePages.d.ts +17 -0
  161. package/ui/Modules/Dashboard/components/Widgets/Table/hooks/usePages.js +27 -0
  162. package/ui/Modules/Dashboard/components/Widgets/Table/hooks/useSort.d.ts +10 -0
  163. package/ui/Modules/Dashboard/components/Widgets/Table/hooks/useSort.js +31 -0
  164. package/ui/Modules/Dashboard/components/Widgets/Table/index.d.ts +5 -0
  165. package/ui/Modules/Dashboard/components/Widgets/Table/index.js +7 -0
  166. package/ui/Modules/Dashboard/components/Widgets/Table/storybook.sample.d.ts +73 -0
  167. package/ui/Modules/Dashboard/components/Widgets/Table/storybook.sample.js +211 -0
  168. package/ui/Modules/Dashboard/components/Widgets/Table/styles.d.ts +23 -0
  169. package/ui/Modules/Dashboard/components/Widgets/Table/styles.js +69 -0
  170. package/ui/Modules/Dashboard/components/Widgets/Table/types.d.ts +52 -0
  171. package/ui/Modules/Dashboard/components/Widgets/Table/types.js +1 -0
  172. package/ui/Modules/Dashboard/components/Widgets/TextBox/TextBox.d.ts +10 -0
  173. package/ui/Modules/Dashboard/components/Widgets/TextBox/TextBox.js +12 -0
  174. package/ui/Modules/Dashboard/components/Widgets/TextBox/index.d.ts +3 -0
  175. package/ui/Modules/Dashboard/components/Widgets/TextBox/index.js +5 -0
  176. package/ui/Modules/Dashboard/components/Widgets/index.d.ts +11 -0
  177. package/ui/Modules/Dashboard/components/Widgets/index.js +108 -0
  178. package/ui/Modules/Dashboard/components/Widgets/utils/generic.d.ts +5 -0
  179. package/ui/Modules/Dashboard/components/Widgets/utils/generic.js +20 -0
  180. package/ui/Modules/Dashboard/components/Widgets/utils/helpers.d.ts +3 -0
  181. package/ui/Modules/Dashboard/components/Widgets/utils/helpers.js +25 -0
  182. package/ui/Modules/Dashboard/components/Widgets/utils/legends.d.ts +20 -0
  183. package/ui/Modules/Dashboard/components/Widgets/utils/legends.js +57 -0
  184. package/ui/Modules/Dashboard/context/ComponentContext.d.ts +5 -0
  185. package/ui/Modules/Dashboard/context/ComponentContext.js +15 -0
  186. package/ui/Modules/Dashboard/context/LangContext.d.ts +3 -0
  187. package/ui/Modules/Dashboard/context/LangContext.js +5 -0
  188. package/ui/Modules/Dashboard/errors/ErrorMessage.d.ts +7 -0
  189. package/ui/Modules/Dashboard/errors/ErrorMessage.js +12 -0
  190. package/ui/Modules/Dashboard/errors/WidgetError.d.ts +5 -0
  191. package/ui/Modules/Dashboard/errors/WidgetError.js +10 -0
  192. package/ui/Modules/Dashboard/hooks/usePrevious.d.ts +5 -0
  193. package/ui/Modules/Dashboard/hooks/usePrevious.js +14 -0
  194. package/ui/Modules/Dashboard/hooks/useRefWithCallback.d.ts +2 -0
  195. package/ui/Modules/Dashboard/hooks/useRefWithCallback.js +16 -0
  196. package/ui/Modules/Dashboard/hooks/useResize.d.ts +6 -0
  197. package/ui/Modules/Dashboard/hooks/useResize.js +19 -0
  198. package/ui/Modules/Dashboard/index.d.ts +7 -0
  199. package/ui/Modules/Dashboard/index.js +12 -0
  200. package/ui/Modules/Dashboard/locale/cs.d.ts +24 -0
  201. package/ui/Modules/Dashboard/locale/cs.js +26 -0
  202. package/ui/Modules/Dashboard/locale/en.d.ts +24 -0
  203. package/ui/Modules/Dashboard/locale/en.js +26 -0
  204. package/ui/Modules/Dashboard/locale/index.d.ts +4 -0
  205. package/ui/Modules/Dashboard/locale/index.js +13 -0
  206. package/ui/Modules/Dashboard/locale/it.d.ts +24 -0
  207. package/ui/Modules/Dashboard/locale/it.js +26 -0
  208. package/ui/Modules/Dashboard/locale/uk.d.ts +24 -0
  209. package/ui/Modules/Dashboard/locale/uk.js +26 -0
  210. package/ui/Modules/Dashboard/store/reducers/index.d.ts +9 -0
  211. package/ui/Modules/Dashboard/store/reducers/index.js +6 -0
  212. package/ui/Modules/Dashboard/store/reducers/widgetListReducer.d.ts +41 -0
  213. package/ui/Modules/Dashboard/store/reducers/widgetListReducer.js +76 -0
  214. package/ui/Modules/Dashboard/stories/storybook.sample.d.ts +50 -0
  215. package/ui/Modules/Dashboard/stories/storybook.sample.js +237 -0
  216. package/ui/Modules/Dashboard/styles.d.ts +63 -0
  217. package/ui/Modules/Dashboard/styles.js +358 -0
  218. package/ui/Modules/Dashboard/types.d.ts +185 -0
  219. package/ui/Modules/Dashboard/types.js +1 -0
  220. package/ui/Modules/index.d.ts +1 -0
  221. package/ui/Modules/index.js +8 -0
  222. package/ui/ThemeProvider/themes/index.d.ts +224 -0
  223. package/ui/ThemeProvider/themes/index.js +3 -1
  224. package/ui/ThemeProvider/themes/mailwiseDark.d.ts +225 -0
  225. package/ui/ThemeProvider/themes/mailwiseDark.js +16 -0
  226. package/ui/ThemeProvider/types.d.ts +1 -1
  227. package/ui/Blocks/CommonGrid/storybook/stories/complexWithPaginationAndRedux.stories.d.ts +0 -41
  228. package/ui/Blocks/CommonGrid/storybook/stories/default.stories.d.ts +0 -6
  229. package/ui/Blocks/CommonGrid/storybook/stories/gridStates.stories.d.ts +0 -8
  230. package/ui/Blocks/CommonGrid/storybook/stories/manyColumnsNoScrollLayout.stories.d.ts +0 -10
  231. package/ui/Blocks/CommonGrid/storybook/stories/manyColumnsNormalLayout.stories.d.ts +0 -10
  232. package/ui/Blocks/CommonGrid/storybook/stories/styledCommonGrid.stories.d.ts +0 -6
  233. package/ui/Blocks/CommonGrid/storybook/stories/withCustomGridActions.stories.d.ts +0 -10
  234. package/ui/Blocks/CommonGrid/storybook/stories/withForcedCheckboxes.stories.d.ts +0 -14
  235. package/ui/Blocks/CommonGrid/storybook/stories/withQuickFilter.stories.d.ts +0 -11
  236. package/ui/Blocks/CornerDialog/stories/CornerDialog.stories.d.ts +0 -13
  237. package/ui/Blocks/Header/stories/Header.stories.d.ts +0 -52
  238. package/ui/Blocks/HidePrint/stories/HidePrint.stories.d.ts +0 -12
  239. package/ui/Blocks/ImageList/stories/ImageList.stories.d.ts +0 -14
  240. package/ui/Blocks/LanguageSwitch/stories/LanguageSwith.stories.d.ts +0 -10
  241. package/ui/Blocks/LightBox/stories/LightBox.stories.d.ts +0 -10
  242. package/ui/Blocks/LoginPage/stories/LoginPage.stories.d.ts +0 -10
  243. package/ui/Blocks/Modal/stories/Modal.stories.d.ts +0 -28
  244. package/ui/Blocks/Popover/stories/Popover.stories.d.ts +0 -16
  245. package/ui/Blocks/Scheduler/stories/Scheduler.stories.d.ts +0 -7
  246. package/ui/Blocks/SideMenu/stories/SideMenu.stories.d.ts +0 -11
  247. package/ui/Blocks/Stepper/stories/Stepper.stories.d.ts +0 -9
  248. package/ui/Blocks/Table/stories/Table.stories.d.ts +0 -12
  249. package/ui/Blocks/Tabs/stories/Tabs.stories.d.ts +0 -12
  250. package/ui/Elements/Alert/stories/Alert.stories.d.ts +0 -17
  251. package/ui/Elements/AsyncSelect/stories/AsyncSelect.stories.d.ts +0 -10
  252. package/ui/Elements/Avatar/stories/Avatar.stories.d.ts +0 -11
  253. package/ui/Elements/Badge/stories/Badge.stories.d.ts +0 -12
  254. package/ui/Elements/BarChartSymbol/stories/BarChartSymbol.stories.d.ts +0 -12
  255. package/ui/Elements/BorderedBox/stories/BorderedBox.stories.d.ts +0 -10
  256. package/ui/Elements/Button/stories/Button.stories.d.ts +0 -28
  257. package/ui/Elements/Card/stories/Card.stories.d.ts +0 -13
  258. package/ui/Elements/CheckedCircle/storries/CheckedCircle.stories.d.ts +0 -16
  259. package/ui/Elements/DatePicker/stories/DatePicker.stories.d.ts +0 -11
  260. package/ui/Elements/Dropdown/stories/Dropdown.stories.d.ts +0 -10
  261. package/ui/Elements/DropdownMenu/stories/DropdownMenu.stories.d.ts +0 -10
  262. package/ui/Elements/DropdownSelect/stories/DropdownSelect.stories.d.ts +0 -22
  263. package/ui/Elements/ErrorMessage/stories/ErrorMessage.stories.d.ts +0 -11
  264. package/ui/Elements/HighlightBox/stories/HighlightBox.stories.d.ts +0 -31
  265. package/ui/Elements/Icon/stories/BadgeIcon.stories.d.ts +0 -28
  266. package/ui/Elements/Icon/stories/Icon.stories.d.ts +0 -15
  267. package/ui/Elements/Image/stories/Image.stories.d.ts +0 -13
  268. package/ui/Elements/Label/stories/Label.stories.d.ts +0 -13
  269. package/ui/Elements/Line/stories/Line.stories.d.ts +0 -16
  270. package/ui/Elements/Link/stories/Link.stories.d.ts +0 -30
  271. package/ui/Elements/Logo/stories/Logo.stories.d.ts +0 -37
  272. package/ui/Elements/Pagination/stories/Pagination.stories.d.ts +0 -13
  273. package/ui/Elements/Portal/stories/Portal.stories.d.ts +0 -11
  274. package/ui/Elements/ProgressBar/stories/ProgressBar.stories.d.ts +0 -18
  275. package/ui/Elements/Select/stories/Select.stories.d.ts +0 -9
  276. package/ui/Elements/SimpleLink/stories/SimpleLink.stories.d.ts +0 -13
  277. package/ui/Elements/SingleSelect/stories/SingleSelect.stories.d.ts +0 -10
  278. package/ui/Elements/SpaceAround/stories/SpaceAround.stories.d.ts +0 -11
  279. package/ui/Elements/Spinner/stories/Spinner.stories.d.ts +0 -19
  280. package/ui/Elements/Table/stories/Table.stories.d.ts +0 -8
  281. package/ui/Elements/Tag/stories/Tag.stories.d.ts +0 -19
  282. package/ui/Elements/Text/stories/Text.stories.d.ts +0 -15
  283. package/ui/Elements/Toast/stories/Toast.stories.d.ts +0 -13
  284. package/ui/Elements/Toggle/stories/Toggle.stories.d.ts +0 -16
  285. package/ui/Elements/Tooltip/stories/Tooltip.stories.d.ts +0 -10
  286. package/ui/Elements/Typography/stories/Typography.stories.d.ts +0 -20
  287. package/ui/Forms/Checkbox/stories/Checkbox.stories.d.ts +0 -13
  288. package/ui/Forms/Input/stories/Input.stories.d.ts +0 -18
  289. package/ui/Forms/RadioButton/stories/RadioButton.stories.d.ts +0 -13
  290. package/ui/utils/KeyPress/KeyPress.stories.d.ts +0 -10
@@ -0,0 +1,63 @@
1
+ declare const _default: {
2
+ Wrapper: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {}, never>;
3
+ Body: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {}, never>;
4
+ Header: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {}, never>;
5
+ PickerWrapper: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {}, never>;
6
+ Picker: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {}, never>;
7
+ PickerBody: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {}, never>;
8
+ PickerHeader: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {}, never>;
9
+ PickerItem: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {}, never>;
10
+ PickerClose: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {}, never>;
11
+ LayoutItem: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {
12
+ isConfigOpen: boolean;
13
+ }, never>;
14
+ LayoutItemAdd: import("styled-components").StyledComponent<"span", import("@xstyled/styled-components").Theme, {}, never>;
15
+ Nowidget: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {}, never>;
16
+ WidgetConfigInDropdown: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {}, never>;
17
+ WidgetConfig: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {
18
+ isConfigOpen: boolean;
19
+ inDropdown: boolean;
20
+ }, never>;
21
+ WidgetVisibility: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {
22
+ isVisible: boolean;
23
+ }, never>;
24
+ WidgetConfigButtons: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {}, never>;
25
+ WidgetError: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {}, never>;
26
+ WidgetErrorMessage: import("styled-components").StyledComponent<"p", import("@xstyled/styled-components").Theme, {}, never>;
27
+ WidgetErrorTitle: import("styled-components").StyledComponent<"h2", import("@xstyled/styled-components").Theme, {}, never>;
28
+ LayoutError: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {}, never>;
29
+ LayoutErrorMessage: import("styled-components").StyledComponent<"p", import("@xstyled/styled-components").Theme, {}, never>;
30
+ LayoutErrorTitle: import("styled-components").StyledComponent<"h2", import("@xstyled/styled-components").Theme, {}, never>;
31
+ ItemWrapper: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {}, never>;
32
+ ItemMoveWrapper: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {}, never>;
33
+ ItemPanelButton: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {}, never>;
34
+ ItemBodyWrapper: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {
35
+ isConfigOpen: boolean;
36
+ }, never>;
37
+ ItemBody: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {
38
+ isConfigOpen: boolean;
39
+ inDropdown: boolean;
40
+ isFullHeight: boolean;
41
+ }, never>;
42
+ ItemName: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {}, never>;
43
+ ItemContent: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {}, never>;
44
+ ConfigRow: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {
45
+ isBlock?: boolean;
46
+ }, never>;
47
+ ConfigLabel: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {}, never>;
48
+ ConfigInput: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {}, never>;
49
+ Select: import("styled-components").StyledComponent<"select", import("@xstyled/styled-components").Theme, {
50
+ width?: string;
51
+ mr?: string;
52
+ }, never>;
53
+ CheckboxContent: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {}, never>;
54
+ CheckboxControls: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {}, never>;
55
+ Input: import("styled-components").StyledComponent<"input", import("@xstyled/styled-components").Theme, {
56
+ width?: string;
57
+ }, never>;
58
+ NoData: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {}, never>;
59
+ HideWidget: import("styled-components").StyledComponent<"div", import("@xstyled/styled-components").Theme, {
60
+ isHidden: boolean;
61
+ }, never>;
62
+ };
63
+ export default _default;
@@ -0,0 +1,358 @@
1
+ import styled$1 from "@xstyled/styled-components";
2
+ //#region packages/ui/Modules/Dashboard/styles.ts
3
+ const ItemMoveWrapper = styled$1.div`
4
+ position: absolute;
5
+ top: 5px;
6
+ right: 35px;
7
+ padding: 10px 15px;
8
+ z-index: 2;
9
+ display: none;
10
+
11
+ :hover {
12
+ cursor: move;
13
+ opacity: 1;
14
+ }
15
+
16
+ img {
17
+ height: 15px;
18
+ width: 15px;
19
+ }
20
+ `;
21
+ var styles_default = {
22
+ Wrapper: styled$1.div`
23
+ background-color: transparent;
24
+ padding: 0 5px;
25
+ color: typoPrimary;
26
+
27
+ * {
28
+ box-sizing: border-box;
29
+ }
30
+
31
+ @media (min-width: 576px) {
32
+ & > div {
33
+ padding: 0 20px 20px;
34
+ }
35
+ }
36
+ `,
37
+ Body: styled$1.div`
38
+ min-height: 200px;
39
+ position: relative;
40
+ `,
41
+ Header: styled$1.div`
42
+ height: 70px;
43
+ justify-content: space-between;
44
+ display: flex;
45
+ align-items: center;
46
+
47
+ & > h1 {
48
+ margin: 0;
49
+ }
50
+ `,
51
+ PickerWrapper: styled$1.div`
52
+ position: fixed;
53
+ z-index: 9999;
54
+ left: 0;
55
+ top: 0;
56
+ width: 100%;
57
+ height: 100%;
58
+ background: #172b4d73;
59
+ `,
60
+ Picker: styled$1.div`
61
+ background-color: white;
62
+ width: 750px;
63
+ height: calc(100vh - 314px);
64
+ overflow: hidden;
65
+ position: fixed;
66
+ right: 0;
67
+ top: 0;
68
+ bottom: 0;
69
+ left: 0;
70
+ margin: auto;
71
+ border-radius: 3px;
72
+ box-shadow: 0 8px 16px -4px #091e4240, 0 0 1px #fff;
73
+ `,
74
+ PickerBody: styled$1.div`
75
+ overflow-y: auto;
76
+ height: calc(100% - 65px);
77
+ color: #333;
78
+ `,
79
+ PickerHeader: styled$1.div`
80
+ height: 65px;
81
+ display: flex;
82
+ align-items: center;
83
+ justify-content: space-between;
84
+ font-size: 24px;
85
+ padding: 20px;
86
+ border-bottom: 2px solid #ebecf0;
87
+ `,
88
+ PickerItem: styled$1.div`
89
+ min-height: 50px;
90
+ padding: 20px 0;
91
+ margin: 0 20px;
92
+ border-bottom: 1px solid #ccc;
93
+ display: flex;
94
+ justify-content: space-between;
95
+ align-items: center;
96
+
97
+ & > img {
98
+ margin-right: 30px;
99
+ }
100
+
101
+ & > div {
102
+ width: 70%;
103
+ padding-right: 20px;
104
+ }
105
+
106
+ &:last-child {
107
+ border-bottom: 0;
108
+ }
109
+
110
+ & > span {
111
+ font-weight: bold;
112
+ font-size: 14px;
113
+ color: textPrimary;
114
+ }
115
+
116
+ & p {
117
+ font-size: 12px;
118
+ line-height: 20px;
119
+ color: textPrimary;
120
+ margin: 4px 0;
121
+ }
122
+ `,
123
+ PickerClose: styled$1.div`
124
+ cursor: pointer;
125
+ font-size: 16px;
126
+ color: #333;
127
+ `,
128
+ LayoutItem: styled$1.div`
129
+ z-index: ${({ isConfigOpen, theme }) => isConfigOpen ? theme.zIndex || 10 : 0};
130
+ position: relative;
131
+ border-radius: 5px;
132
+ background-color: dashboardBackground;
133
+ box-shadow: cornerDialogShadow;
134
+ animation: fadeIn 1s;
135
+ @keyframes fadeIn {
136
+ 0% {
137
+ opacity: 0;
138
+ }
139
+ 10% {
140
+ opacity: 0;
141
+ }
142
+ 100% {
143
+ opacity: 1;
144
+ }
145
+ }
146
+ `,
147
+ LayoutItemAdd: styled$1.span`
148
+ color: blue;
149
+ cursor: pointer;
150
+
151
+ &:hover {
152
+ text-decoration: underline;
153
+ }
154
+ `,
155
+ Nowidget: styled$1.div`
156
+ border: 3px dotted #ccc;
157
+ padding: 20px;
158
+ width: 100%;
159
+ height: 150px;
160
+ font-size: 20px;
161
+ color: #999;
162
+
163
+ & > span {
164
+ color: black;
165
+ }
166
+ `,
167
+ WidgetConfigInDropdown: styled$1.div`
168
+ position: absolute;
169
+ overflow: visible;
170
+ top: 0;
171
+ width: 100%;
172
+ min-width: 300px;
173
+ background-color: white;
174
+ padding: 20px;
175
+ display: flex;
176
+ flex-direction: column;
177
+ justify-content: space-between;
178
+ border: 1px solid #ccc;
179
+ z-index: 10;
180
+ `,
181
+ WidgetConfig: styled$1.div`
182
+ position: absolute;
183
+ top: 0;
184
+ left: 100%;
185
+ width: 100%;
186
+ background-color: white;
187
+ padding: 0 20px 20px;
188
+ display: ${({ isConfigOpen, inDropdown }) => isConfigOpen && !inDropdown ? "flex" : "none !important"};
189
+ flex-direction: column;
190
+ justify-content: space-between;
191
+ `,
192
+ WidgetVisibility: styled$1.div`
193
+ display: ${({ isVisible }) => isVisible ? "initial" : "none"};
194
+ `,
195
+ WidgetConfigButtons: styled$1.div`
196
+ border-top: 1px solid #ccc;
197
+ margin: 20px 0 0;
198
+ padding-top: 20px;
199
+ display: flex;
200
+ justify-content: space-between;
201
+ `,
202
+ WidgetError: styled$1.div`
203
+ display: flex;
204
+ flex-direction: column;
205
+ `,
206
+ WidgetErrorMessage: styled$1.p``,
207
+ WidgetErrorTitle: styled$1.h2`
208
+ margin: 0;
209
+ font-size: 18px;
210
+ color: #dd2b0e;
211
+ `,
212
+ LayoutError: styled$1.div`
213
+ display: flex;
214
+ flex-direction: column;
215
+ `,
216
+ LayoutErrorMessage: styled$1.p``,
217
+ LayoutErrorTitle: styled$1.h2`
218
+ margin: 0;
219
+ font-size: 24px;
220
+ color: #dd2b0e;
221
+ `,
222
+ ItemWrapper: styled$1.div`
223
+ padding: 20px 20px;
224
+ position: relative;
225
+ width: 100%;
226
+ height: 100%;
227
+ display: flex;
228
+ flex-direction: column;
229
+
230
+ &:hover ${ItemMoveWrapper} {
231
+ display: block;
232
+ }
233
+ `,
234
+ ItemMoveWrapper,
235
+ ItemPanelButton: styled$1.div`
236
+ position: absolute;
237
+ top: 10px;
238
+ right: 10px;
239
+ width: 20px;
240
+ z-index: 2;
241
+ user-select: none;
242
+
243
+ :hover {
244
+ cursor: pointer;
245
+ opacity: 1;
246
+ }
247
+ `,
248
+ ItemBodyWrapper: styled$1.div`
249
+ overflow: hidden;
250
+ flex-grow: 1;
251
+ overflow-y: ${({ isConfigOpen }) => isConfigOpen ? "auto" : "hidden"};
252
+ // do not add paddings/margins
253
+ `,
254
+ ItemBody: styled$1.div`
255
+ position: relative;
256
+ height: ${({ isFullHeight }) => isFullHeight ? "100%" : "fit-content"};
257
+ transition: all 0.4s;
258
+ left: ${({ isConfigOpen, inDropdown }) => isConfigOpen && !inDropdown ? "-100%" : "0"};
259
+ `,
260
+ ItemName: styled$1.div`
261
+ font-size: 18px;
262
+ color: gray5;
263
+ margin-bottom: 20px;
264
+
265
+ & > * {
266
+ margin-right: 5px;
267
+ }
268
+ `,
269
+ ItemContent: styled$1.div`
270
+ width: 100%;
271
+ height: 100%;
272
+ overflow: hidden;
273
+ animation: fadeIn 1s;
274
+ @keyframes fadeIn {
275
+ 0% {
276
+ opacity: 0;
277
+ }
278
+ 10% {
279
+ opacity: 0;
280
+ }
281
+ 100% {
282
+ opacity: 1;
283
+ }
284
+ }
285
+ `,
286
+ ConfigRow: styled$1.div`
287
+ display: flex;
288
+ margin-bottom: 10px;
289
+ font-size: 15px;
290
+ align-items: ${({ isBlock }) => isBlock ? "flex-start" : "center"};
291
+ justify-content: space-between;
292
+ `,
293
+ ConfigLabel: styled$1.div`
294
+ width: 40%;
295
+ color: textPrimary;
296
+ `,
297
+ ConfigInput: styled$1.div`
298
+ width: 80%;
299
+ `,
300
+ Select: styled$1.select`
301
+ padding: 5px;
302
+ border: 1px solid;
303
+ border-color: black;
304
+ border-radius: 3px;
305
+ width: ${(props) => props.width || "100%"};
306
+ margin-right: ${(props) => props.mr || "0"};
307
+ `,
308
+ CheckboxContent: styled$1.div`
309
+ padding: 5px;
310
+ border: 1px solid;
311
+ border-color: black;
312
+ border-radius: 3px;
313
+ max-height: 200px;
314
+ overflow-y: auto;
315
+ width: 100%;
316
+ `,
317
+ CheckboxControls: styled$1.div`
318
+ margin: 3px 0;
319
+ margin-left: 4px;
320
+ display: flex;
321
+ justify-content: space-between;
322
+ `,
323
+ Input: styled$1.input`
324
+ padding: 5px;
325
+ border: 1px solid;
326
+ border-color: black;
327
+ border-radius: 3px;
328
+ width: ${(props) => props.width || "100%"};
329
+
330
+ &[type='color'] {
331
+ padding: 0;
332
+ width: 40px;
333
+ }
334
+ `,
335
+ NoData: styled$1.div`
336
+ width: 100%;
337
+ height: 100%;
338
+ max-height: 200px;
339
+ display: flex;
340
+ justify-content: center;
341
+ align-items: center;
342
+ flex-direction: column;
343
+ color: gray5;
344
+ gap: 16px;
345
+ padding-top: 20px;
346
+
347
+ & > svg {
348
+ max-width: 30%;
349
+ max-height: 50%;
350
+ margin-bottom: 10px;
351
+ }
352
+ `,
353
+ HideWidget: styled$1.div`
354
+ display: ${({ isHidden }) => isHidden ? "none" : "initial"};
355
+ `
356
+ };
357
+ //#endregion
358
+ export { styles_default as default };
@@ -0,0 +1,185 @@
1
+ import React, { RefObject } from 'react';
2
+ import { Layout as RGLLayout } from 'react-grid-layout';
3
+ import { TableRowData } from './components/Widgets/Table/types';
4
+ import { Props as ButtonProps } from '../../Elements/Button/types';
5
+ export interface WidgetConfig {
6
+ [key: string]: any;
7
+ }
8
+ export type NumberClickCallback = <TData>(data: TData, config: WidgetConfig) => void;
9
+ export type TableClickCallback = (tableRow: TableRowData, column: string, config: WidgetConfig) => void;
10
+ export interface WidgetComponentProps<TData = any, OnValueClickType = any> {
11
+ data?: TData;
12
+ isLoading?: boolean;
13
+ error?: boolean;
14
+ config?: WidgetConfig;
15
+ onSetConfig?: (config: WidgetConfig) => void;
16
+ onValueClick?: OnValueClickType;
17
+ innerRef?: RefObject<HTMLDivElement> | ((node: HTMLDivElement) => void);
18
+ [key: string]: any;
19
+ }
20
+ export interface ConfigProps {
21
+ onChange: (config: WidgetConfig) => void;
22
+ config: WidgetConfig;
23
+ }
24
+ export interface WidgetDefinition {
25
+ /**
26
+ * name of the widget
27
+ */
28
+ name: string;
29
+ /**
30
+ * uniq identifier of the widget
31
+ */
32
+ code: string;
33
+ /**
34
+ * short description of widget
35
+ */
36
+ description: string;
37
+ /**
38
+ * base64 image
39
+ */
40
+ preview: string;
41
+ /**
42
+ * minimal width (count of columns) of the widget, user cannot shrink to smaller size
43
+ */
44
+ minWidth: number;
45
+ /**
46
+ * maximal width (count of columns) of the widget, user cannot shrink to bigger size
47
+ */
48
+ maxWidth: number;
49
+ /**
50
+ * minimal height (count of columns) of the widget, user cannot shrink to smaller size
51
+ */
52
+ minHeight: number;
53
+ /**
54
+ * maximal height (count of columns) of the widget, user cannot shrink to bigger size
55
+ */
56
+ maxHeight: number;
57
+ /**
58
+ * default width of the widget when you add it to layout
59
+ */
60
+ initWidth: number;
61
+ /**
62
+ * default height of the widget when you add it to layout
63
+ */
64
+ initHeight: number;
65
+ /**
66
+ * if the widget is static, its not possible to resize it or move it
67
+ */
68
+ isStatic?: boolean;
69
+ /**
70
+ * if true => widget config will be opened in dropdown over the widgets
71
+ */
72
+ isWidgetConfigInDropdown?: boolean;
73
+ /**
74
+ * component of the widget
75
+ */
76
+ component: React.ComponentType<WidgetComponentProps>;
77
+ /**
78
+ * components of the widget for more customization
79
+ */
80
+ components?: Record<string, React.ComponentType<any>>;
81
+ /**
82
+ * component for configuration
83
+ */
84
+ configComponent?: React.ComponentType<ConfigProps>;
85
+ /**
86
+ * icon of widget
87
+ */
88
+ icon?: React.ReactElement;
89
+ }
90
+ export interface CustomComponents {
91
+ Button?: React.FC<ButtonProps>;
92
+ Picker?: React.FC<{
93
+ onAdd: (code: string) => void;
94
+ widgetDefinitions: WidgetDefinition[];
95
+ }>;
96
+ ItemConfigControls?: React.FC<{
97
+ onRemove: () => void;
98
+ onSave: () => void;
99
+ onCancel: () => void;
100
+ }>;
101
+ ItemHeader?: React.FC<{
102
+ widget: WidgetDefinition;
103
+ config: WidgetConfig;
104
+ onRemove: () => void;
105
+ onSave: () => void;
106
+ isConfigOpen: boolean;
107
+ toggleConfigOpen: () => void;
108
+ dragHandleClassName: string;
109
+ headerRef: RefObject<HTMLDivElement>;
110
+ }>;
111
+ }
112
+ export type LayoutItem = Omit<RGLLayout, 'i'> & {
113
+ i: string;
114
+ };
115
+ export interface LayoutWidgetItem {
116
+ /**
117
+ * auto generated id for easier manipulating
118
+ */
119
+ id: string;
120
+ /**
121
+ * identifier of type of the used widget
122
+ */
123
+ code: string;
124
+ /**
125
+ * how is the used widget configured
126
+ */
127
+ config: WidgetConfig;
128
+ /**
129
+ * where in layout is the widget used
130
+ */
131
+ layout: LayoutItem;
132
+ }
133
+ export interface SelectOption {
134
+ value: string;
135
+ label: string;
136
+ }
137
+ /**
138
+ * General filter for widget
139
+ *
140
+ * Props:
141
+ * input - renders input
142
+ * isMulti, options - renders select boxes
143
+ *
144
+ * If input is specified, isMulti & options props are ignored
145
+ */
146
+ export interface LayoutWidgetFilter {
147
+ name: string;
148
+ label: React.ReactNode;
149
+ placeholder?: React.ReactNode;
150
+ input?: 'text' | 'number';
151
+ isMulti?: boolean;
152
+ options?: SelectOption[];
153
+ }
154
+ export interface DashboardProps {
155
+ /**
156
+ * language of dashboard
157
+ */
158
+ lang: string;
159
+ /**
160
+ * title of dashboard. If you not specify it, the text 'Your dashboard' is displayed
161
+ */
162
+ title?: string | boolean;
163
+ /**
164
+ * list of all visible widgets
165
+ */
166
+ widgetDefinitions: WidgetDefinition[];
167
+ /**
168
+ * used widget on first render as a init state
169
+ */
170
+ initialWidgets?: LayoutWidgetItem[];
171
+ /**
172
+ * call this callback on every single change in dashboard
173
+ */
174
+ onChange?: (widgetList: LayoutWidgetItem[]) => void | Promise<void>;
175
+ /**
176
+ * custom components to modify design
177
+ */
178
+ components?: CustomComponents;
179
+ }
180
+ export type Source = SelectOption & {
181
+ filters?: LayoutWidgetFilter[];
182
+ };
183
+ export * from './components/Widgets/HorizontalBar/types';
184
+ export * from './components/Widgets/Table/types';
185
+ export * from './components/Config/types';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Dashboard';
@@ -0,0 +1,8 @@
1
+ import { IconLabelCell_exports } from "./Dashboard/components/Widgets/Table/components/IconLabelCell.js";
2
+ import { BarChart, ColorBox, HorizontalBar, NoWidget, NumberBox, PieChart, Table, TextBox } from "./Dashboard/components/Widgets/index.js";
3
+ import dashboardReducer from "./Dashboard/store/reducers/index.js";
4
+ import { withConfig } from "./Dashboard/Hoc/withConfig.js";
5
+ import { withFetch } from "./Dashboard/Hoc/withFetch.js";
6
+ import { withProps, withPropsWDefinition } from "./Dashboard/Hoc/withProps.js";
7
+ import "./Dashboard/index.js";
8
+ export { BarChart, ColorBox, HorizontalBar, NoWidget, NumberBox, PieChart, Table, TextBox, IconLabelCell_exports as WidgetTableComponents, dashboardReducer as reducer, withConfig, withFetch, withProps, withPropsWDefinition };