@sis-cc/dotstatsuite-visions 12.56.0 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (498) hide show
  1. package/README.md +2 -34
  2. package/dist/Alert/Alert.js +185 -0
  3. package/dist/Alert/Alert.js.map +1 -0
  4. package/dist/ApiQueries/ApiQueries.js +163 -0
  5. package/dist/ApiQueries/ApiQueries.js.map +1 -0
  6. package/dist/AuthDialog/AuthDialog.js +114 -0
  7. package/dist/AuthDialog/AuthDialog.js.map +1 -0
  8. package/dist/Breadcrumbs/Breadcrumbs.js +51 -0
  9. package/dist/Breadcrumbs/Breadcrumbs.js.map +1 -0
  10. package/dist/Button/Button.js +50 -0
  11. package/dist/Button/Button.js.map +1 -0
  12. package/dist/ChartsConfig/ChartsConfig.js +507 -0
  13. package/dist/ChartsConfig/ChartsConfig.js.map +1 -0
  14. package/dist/CollapseButtons/CollapseButtons.js +320 -0
  15. package/dist/CollapseButtons/CollapseButtons.js.map +1 -0
  16. package/dist/CollapsibleTree/CollapsibleTree.js +199 -0
  17. package/dist/CollapsibleTree/CollapsibleTree.js.map +1 -0
  18. package/dist/Contact/Contact.js +439 -0
  19. package/dist/Contact/Contact.js.map +1 -0
  20. package/dist/DataFooter/DataFooter.js +106 -0
  21. package/dist/DataFooter/DataFooter.js.map +1 -0
  22. package/dist/DataHeader/DataHeader.js +341 -0
  23. package/dist/DataHeader/DataHeader.js.map +1 -0
  24. package/dist/Dataflow/Dataflow.js +325 -0
  25. package/dist/Dataflow/Dataflow.js.map +1 -0
  26. package/dist/DeleteAllChip/DeleteAllChip.js +24 -0
  27. package/dist/DeleteAllChip/DeleteAllChip.js.map +1 -0
  28. package/dist/DynamicDrawer/DynamicDrawer.js +875 -0
  29. package/dist/DynamicDrawer/DynamicDrawer.js.map +1 -0
  30. package/dist/ExpansionPanel/ExpansionPanel.js +199 -0
  31. package/dist/ExpansionPanel/ExpansionPanel.js.map +1 -0
  32. package/dist/GroupedChips/GroupedChips.js +78 -0
  33. package/dist/GroupedChips/GroupedChips.js.map +1 -0
  34. package/dist/HierarchicalFilter/HierarchicalFilter.js +144 -0
  35. package/dist/HierarchicalFilter/HierarchicalFilter.js.map +1 -0
  36. package/dist/Icons/AccessibilityFilled.js +8 -0
  37. package/dist/Icons/AccessibilityFilled.js.map +1 -0
  38. package/dist/Icons/AccessibilityOutlined.js +8 -0
  39. package/dist/Icons/AccessibilityOutlined.js.map +1 -0
  40. package/dist/Icons/AccountFilled.js +8 -0
  41. package/dist/Icons/AccountFilled.js.map +1 -0
  42. package/dist/Icons/AccountOutlined.js +8 -0
  43. package/dist/Icons/AccountOutlined.js.map +1 -0
  44. package/dist/Icons/Api.js +8 -0
  45. package/dist/Icons/Api.js.map +1 -0
  46. package/dist/Icons/Asterisk.js +8 -0
  47. package/dist/Icons/Asterisk.js.map +1 -0
  48. package/dist/Icons/Bar.js +8 -0
  49. package/dist/Icons/Bar.js.map +1 -0
  50. package/dist/Icons/CopyContent.js +8 -0
  51. package/dist/Icons/CopyContent.js.map +1 -0
  52. package/dist/Icons/Cross.js +8 -0
  53. package/dist/Icons/Cross.js.map +1 -0
  54. package/dist/Icons/HSymbol.js +8 -0
  55. package/dist/Icons/HSymbol.js.map +1 -0
  56. package/dist/Icons/Row.js +8 -0
  57. package/dist/Icons/Row.js.map +1 -0
  58. package/dist/Icons/Scatter.js +8 -0
  59. package/dist/Icons/Scatter.js.map +1 -0
  60. package/dist/Icons/StackedBar.js +8 -0
  61. package/dist/Icons/StackedBar.js.map +1 -0
  62. package/dist/Icons/StackedRow.js +8 -0
  63. package/dist/Icons/StackedRow.js.map +1 -0
  64. package/dist/Icons/Timeline.js +8 -0
  65. package/dist/Icons/Timeline.js.map +1 -0
  66. package/dist/Icons/VSymbol.js +8 -0
  67. package/dist/Icons/VSymbol.js.map +1 -0
  68. package/dist/Icons/Warning.js +18 -0
  69. package/dist/Icons/Warning.js.map +1 -0
  70. package/dist/Input/Input.js +72 -0
  71. package/dist/Input/Input.js.map +1 -0
  72. package/dist/InputNumber/InputNumber.js +86 -0
  73. package/dist/InputNumber/InputNumber.js.map +1 -0
  74. package/dist/LabelDivider/LabelDivider.js +35 -0
  75. package/dist/LabelDivider/LabelDivider.js.map +1 -0
  76. package/dist/Loading/Loading.js +72 -0
  77. package/dist/Loading/Loading.js.map +1 -0
  78. package/dist/Logo/Logo.js +38 -0
  79. package/dist/Logo/Logo.js.map +1 -0
  80. package/dist/Mode/Mode.js +90 -0
  81. package/dist/Mode/Mode.js.map +1 -0
  82. package/dist/NoData/NoData.js +27 -0
  83. package/dist/NoData/NoData.js.map +1 -0
  84. package/dist/Pagination/Pagination.js +142 -0
  85. package/dist/Pagination/Pagination.js.map +1 -0
  86. package/dist/PeriodPicker/PeriodPicker.js +550 -0
  87. package/dist/PeriodPicker/PeriodPicker.js.map +1 -0
  88. package/dist/Select/Select.js +125 -0
  89. package/dist/Select/Select.js.map +1 -0
  90. package/dist/Share/Share.js +292 -0
  91. package/dist/Share/Share.js.map +1 -0
  92. package/dist/ShortUrls/ShortUrls.js +106 -0
  93. package/dist/ShortUrls/ShortUrls.js.map +1 -0
  94. package/dist/SisccFooter/SisccFooter.js +65 -0
  95. package/dist/SisccFooter/SisccFooter.js.map +1 -0
  96. package/dist/Spotlight/Spotlight.js +349 -0
  97. package/dist/Spotlight/Spotlight.js.map +1 -0
  98. package/dist/TableFooter/TableFooter.js +42 -0
  99. package/dist/TableFooter/TableFooter.js.map +1 -0
  100. package/dist/TableHeader/TableHeader.js +35 -0
  101. package/dist/TableHeader/TableHeader.js.map +1 -0
  102. package/dist/TableHtml5/TableHtml5.js +1045 -0
  103. package/dist/TableHtml5/TableHtml5.js.map +1 -0
  104. package/dist/TableLayout/TableLayout.js +529 -0
  105. package/dist/TableLayout/TableLayout.js.map +1 -0
  106. package/dist/TablePreview/TablePreview.js +209 -0
  107. package/dist/TablePreview/TablePreview.js.map +1 -0
  108. package/dist/Tag/Tag.js +23 -0
  109. package/dist/Tag/Tag.js.map +1 -0
  110. package/dist/Tooltip/Tooltip.js +54 -0
  111. package/dist/Tooltip/Tooltip.js.map +1 -0
  112. package/dist/UserRightForm/UserRightForm.js +545 -0
  113. package/dist/UserRightForm/UserRightForm.js.map +1 -0
  114. package/dist/VerticalButton/VerticalButton.js +43 -0
  115. package/dist/VerticalButton/VerticalButton.js.map +1 -0
  116. package/dist/chunks/CustomChip-CMYCIorJ.js +181 -0
  117. package/dist/chunks/CustomChip-CMYCIorJ.js.map +1 -0
  118. package/dist/chunks/useKeybordEscapeHandler-DRsOrnwc.js +22 -0
  119. package/dist/chunks/useKeybordEscapeHandler-DRsOrnwc.js.map +1 -0
  120. package/dist/chunks/utils-BQc_rN44.js +15 -0
  121. package/dist/chunks/utils-BQc_rN44.js.map +1 -0
  122. package/dist/chunks/utils-kslX1mzh.js +20 -0
  123. package/dist/chunks/utils-kslX1mzh.js.map +1 -0
  124. package/dist/chunks/with-input-DRWNlMdA.js +35 -0
  125. package/dist/chunks/with-input-DRWNlMdA.js.map +1 -0
  126. package/dist/chunks/withSpotlight-CYQVWD78.js +903 -0
  127. package/dist/chunks/withSpotlight-CYQVWD78.js.map +1 -0
  128. package/{es → dist/theme}/theme.js +147 -149
  129. package/dist/theme/theme.js.map +1 -0
  130. package/package.json +55 -199
  131. package/es/AdvancedFilterDialog/AdvancedFilterDialog.js +0 -583
  132. package/es/AdvancedFilterDialog/SelectionModeMenu.js +0 -85
  133. package/es/AdvancedFilterDialog/images/all-selection.png +0 -0
  134. package/es/AdvancedFilterDialog/images/branch-selection.png +0 -0
  135. package/es/AdvancedFilterDialog/images/children-selection.png +0 -0
  136. package/es/AdvancedFilterDialog/images/level-selection.png +0 -0
  137. package/es/AdvancedFilterDialog/images/single-selection.png +0 -0
  138. package/es/AdvancedFilterDialog/images/small-all-selection.png +0 -0
  139. package/es/AdvancedFilterDialog/images/small-branch-selection.png +0 -0
  140. package/es/AdvancedFilterDialog/images/small-children-selection.png +0 -0
  141. package/es/AdvancedFilterDialog/images/small-level-selection.png +0 -0
  142. package/es/AdvancedFilterDialog/images/small-single-selection.png +0 -0
  143. package/es/AdvancedFilterDialog/index.js +0 -26
  144. package/es/Alert/Alert.js +0 -284
  145. package/es/Alert/index.js +0 -13
  146. package/es/ApiQueries/ApiQueries.js +0 -107
  147. package/es/ApiQueries/Query.js +0 -175
  148. package/es/ApiQueries/index.js +0 -45
  149. package/es/AuthDialog/index.js +0 -211
  150. package/es/Breadcrumbs/Breadcrumbs.js +0 -72
  151. package/es/Breadcrumbs/index.js +0 -30
  152. package/es/Button/Button.js +0 -63
  153. package/es/Button/index.js +0 -52
  154. package/es/ChartsConfig/ChartsConfig.js +0 -470
  155. package/es/ChartsConfig/Input.js +0 -152
  156. package/es/ChartsConfig/InputProxy.js +0 -57
  157. package/es/ChartsConfig/Proxy.js +0 -20
  158. package/es/ChartsConfig/Title.js +0 -37
  159. package/es/ChartsConfig/index.js +0 -213
  160. package/es/ChartsConfig/useAxisOptions.js +0 -9
  161. package/es/ChartsConfig/useDimensionOptions.js +0 -12
  162. package/es/ChartsConfig/useFocusOptions.js +0 -22
  163. package/es/ChartsConfig/utils.js +0 -6
  164. package/es/Chips/CustomChip.js +0 -139
  165. package/es/Chips/DeleteChip.js +0 -32
  166. package/es/Chips/GroupedChips.js +0 -106
  167. package/es/Chips/index.js +0 -69
  168. package/es/Chips/styles.js +0 -67
  169. package/es/Chips/utils.js +0 -21
  170. package/es/CollapseButtons/CollapseButtons.js +0 -159
  171. package/es/CollapseButtons/Item.js +0 -146
  172. package/es/CollapseButtons/Paper.js +0 -58
  173. package/es/CollapseButtons/index.js +0 -90
  174. package/es/CollapsibleTree/Collapse.js +0 -98
  175. package/es/CollapsibleTree/CollapsibleTree.js +0 -229
  176. package/es/CollapsibleTree/index.js +0 -49
  177. package/es/Contact/Contact.js +0 -360
  178. package/es/Contact/Input.js +0 -129
  179. package/es/Contact/Mode.js +0 -134
  180. package/es/Contact/index.js +0 -36
  181. package/es/DataEdit/DataEdit.js +0 -154
  182. package/es/DataEdit/Input.js +0 -151
  183. package/es/DataEdit/index.js +0 -70
  184. package/es/DataFooter/DataFooter.js +0 -178
  185. package/es/DataFooter/index.js +0 -33
  186. package/es/DataHeader/DataHeader.js +0 -314
  187. package/es/DataHeader/Flags.js +0 -42
  188. package/es/DataHeader/Title.js +0 -27
  189. package/es/DataHeader/TooltipHeader.js +0 -78
  190. package/es/DataHeader/index.js +0 -82
  191. package/es/DataHeader/utils.js +0 -19
  192. package/es/Dataflow/Dataflow.js +0 -441
  193. package/es/Dataflow/index.js +0 -62
  194. package/es/DynamicDrawer/AdvancedSelection.js +0 -503
  195. package/es/DynamicDrawer/DynamicDrawer.js +0 -418
  196. package/es/DynamicDrawer/SelectionModesMobile.js +0 -88
  197. package/es/DynamicDrawer/index.js +0 -44
  198. package/es/ExpansionPanel/ExpansionPanel.js +0 -151
  199. package/es/ExpansionPanel/index.js +0 -58
  200. package/es/ExpansionPanel/styles.js +0 -89
  201. package/es/HierarchicalFilter/HierarchicalFilter.js +0 -178
  202. package/es/HierarchicalFilter/index.js +0 -26
  203. package/es/Icons/AccessibilityFilled.js +0 -12
  204. package/es/Icons/AccessibilityOutlined.js +0 -12
  205. package/es/Icons/AccountFilled.js +0 -12
  206. package/es/Icons/AccountOutlined.js +0 -12
  207. package/es/Icons/Api.js +0 -12
  208. package/es/Icons/Asterisk.js +0 -12
  209. package/es/Icons/Bar.js +0 -12
  210. package/es/Icons/CopyContent.js +0 -12
  211. package/es/Icons/Cross.js +0 -12
  212. package/es/Icons/HSymbol.js +0 -12
  213. package/es/Icons/Row.js +0 -12
  214. package/es/Icons/Scatter.js +0 -12
  215. package/es/Icons/StackedBar.js +0 -12
  216. package/es/Icons/StackedRow.js +0 -12
  217. package/es/Icons/Timeline.js +0 -12
  218. package/es/Icons/VSymbol.js +0 -12
  219. package/es/Icons/Warning.js +0 -25
  220. package/es/Icons/index.js +0 -28
  221. package/es/Input/Input.js +0 -128
  222. package/es/Input/index.js +0 -26
  223. package/es/Input/with-input.js +0 -55
  224. package/es/InputNumber/InputNumber.js +0 -116
  225. package/es/InputNumber/index.js +0 -23
  226. package/es/LabelDivider/LabelDivider.js +0 -52
  227. package/es/LabelDivider/index.js +0 -32
  228. package/es/Loading/Loading.js +0 -84
  229. package/es/Loading/index.js +0 -24
  230. package/es/Logo/Logo.js +0 -55
  231. package/es/Logo/index.js +0 -18
  232. package/es/Mode/Mode.js +0 -135
  233. package/es/Mode/index.js +0 -24
  234. package/es/NoData/NoData.js +0 -48
  235. package/es/NoData/index.js +0 -15
  236. package/es/Pagination/Pagination.js +0 -207
  237. package/es/Pagination/index.js +0 -31
  238. package/es/PeriodPicker/PeriodPicker.js +0 -236
  239. package/es/PeriodPicker/constants.js +0 -39
  240. package/es/PeriodPicker/index.js +0 -26
  241. package/es/PeriodPicker/lib.js +0 -206
  242. package/es/PeriodPicker/styles.js +0 -23
  243. package/es/ScopeList/Header.js +0 -80
  244. package/es/ScopeList/Item.js +0 -245
  245. package/es/ScopeList/ScopeList.js +0 -323
  246. package/es/ScopeList/Selection.js +0 -129
  247. package/es/ScopeList/index.deprecated.js +0 -94
  248. package/es/ScopeList/index.js +0 -94
  249. package/es/ScopeList/styles.js +0 -143
  250. package/es/ScopeList/with-scope-list.js +0 -492
  251. package/es/Select/Select.js +0 -169
  252. package/es/Select/index.js +0 -33
  253. package/es/Share/Form.js +0 -164
  254. package/es/Share/Mode.js +0 -136
  255. package/es/Share/Share.js +0 -115
  256. package/es/Share/index.js +0 -64
  257. package/es/ShortUrls/ShortUrls.js +0 -136
  258. package/es/ShortUrls/index.js +0 -22
  259. package/es/SisccFooter/SisccFooter.js +0 -99
  260. package/es/SisccFooter/index.js +0 -27
  261. package/es/Spotlight/Fields.js +0 -100
  262. package/es/Spotlight/Spotlight.js +0 -157
  263. package/es/Spotlight/index.js +0 -75
  264. package/es/Spotlight/useSpotlight.js +0 -75
  265. package/es/Spotlight/useStyles.js +0 -77
  266. package/es/TableFooter/TableFooter.js +0 -100
  267. package/es/TableFooter/index.js +0 -33
  268. package/es/TableHeader/TableHeader.js +0 -63
  269. package/es/TableHeader/index.js +0 -17
  270. package/es/TableHtml5/TableHtml5.js +0 -213
  271. package/es/TableHtml5/cell.js +0 -130
  272. package/es/TableHtml5/flags.js +0 -138
  273. package/es/TableHtml5/header.js +0 -177
  274. package/es/TableHtml5/index.js +0 -62
  275. package/es/TableHtml5/section.js +0 -243
  276. package/es/TableHtml5/sectionHeader.js +0 -171
  277. package/es/TableHtml5/subHeader.js +0 -154
  278. package/es/TableHtml5/utils.js +0 -23
  279. package/es/TableLayout/Box.js +0 -123
  280. package/es/TableLayout/DnDItem.js +0 -142
  281. package/es/TableLayout/TableLayout.js +0 -427
  282. package/es/TableLayout/constants.js +0 -11
  283. package/es/TableLayout/index.js +0 -75
  284. package/es/TableLayout/lib.js +0 -31
  285. package/es/TablePreview/TablePreview.js +0 -244
  286. package/es/TablePreview/index.js +0 -44
  287. package/es/TablePreview/lib.js +0 -34
  288. package/es/TablePreview/styles.js +0 -71
  289. package/es/Tag/Tag.js +0 -44
  290. package/es/Tag/index.js +0 -30
  291. package/es/ToggleButton/ToggleButton.js +0 -79
  292. package/es/ToggleButton/index.js +0 -50
  293. package/es/Tooltip/Tooltip.js +0 -69
  294. package/es/Tooltip/index.js +0 -36
  295. package/es/UserRightForm/Input.js +0 -129
  296. package/es/UserRightForm/Permissions.js +0 -124
  297. package/es/UserRightForm/PermsissionsTabs.js +0 -107
  298. package/es/UserRightForm/UserRightForm.js +0 -445
  299. package/es/UserRightForm/index.js +0 -60
  300. package/es/VerticalButton/VerticalButton.js +0 -67
  301. package/es/VerticalButton/index.js +0 -27
  302. package/es/VirtualizedTree/Item.js +0 -200
  303. package/es/VirtualizedTree/VirtualizedTree.js +0 -366
  304. package/es/VirtualizedTree/index.js +0 -38
  305. package/es/VirtualizedTree/utils.js +0 -170
  306. package/es/VirtualizedTree/withExpansionTree.js +0 -65
  307. package/es/VirtualizedTree/withSpotlight.js +0 -113
  308. package/es/hooks/useKeybordEscapeHandler.js +0 -22
  309. package/es/index.js +0 -52
  310. package/es/utils.js +0 -78
  311. package/lib/AdvancedFilterDialog/AdvancedFilterDialog.js +0 -658
  312. package/lib/AdvancedFilterDialog/SelectionModeMenu.js +0 -118
  313. package/lib/AdvancedFilterDialog/images/all-selection.png +0 -0
  314. package/lib/AdvancedFilterDialog/images/branch-selection.png +0 -0
  315. package/lib/AdvancedFilterDialog/images/children-selection.png +0 -0
  316. package/lib/AdvancedFilterDialog/images/level-selection.png +0 -0
  317. package/lib/AdvancedFilterDialog/images/single-selection.png +0 -0
  318. package/lib/AdvancedFilterDialog/images/small-all-selection.png +0 -0
  319. package/lib/AdvancedFilterDialog/images/small-branch-selection.png +0 -0
  320. package/lib/AdvancedFilterDialog/images/small-children-selection.png +0 -0
  321. package/lib/AdvancedFilterDialog/images/small-level-selection.png +0 -0
  322. package/lib/AdvancedFilterDialog/images/small-single-selection.png +0 -0
  323. package/lib/AdvancedFilterDialog/index.js +0 -16
  324. package/lib/Alert/Alert.js +0 -325
  325. package/lib/Alert/index.js +0 -16
  326. package/lib/ApiQueries/ApiQueries.js +0 -139
  327. package/lib/ApiQueries/Query.js +0 -205
  328. package/lib/ApiQueries/index.js +0 -16
  329. package/lib/AuthDialog/index.js +0 -251
  330. package/lib/Breadcrumbs/Breadcrumbs.js +0 -107
  331. package/lib/Breadcrumbs/index.js +0 -16
  332. package/lib/Button/Button.js +0 -89
  333. package/lib/Button/index.js +0 -16
  334. package/lib/ChartsConfig/ChartsConfig.js +0 -533
  335. package/lib/ChartsConfig/Input.js +0 -187
  336. package/lib/ChartsConfig/InputProxy.js +0 -80
  337. package/lib/ChartsConfig/Proxy.js +0 -34
  338. package/lib/ChartsConfig/Title.js +0 -63
  339. package/lib/ChartsConfig/index.js +0 -16
  340. package/lib/ChartsConfig/useAxisOptions.js +0 -18
  341. package/lib/ChartsConfig/useDimensionOptions.js +0 -22
  342. package/lib/ChartsConfig/useFocusOptions.js +0 -32
  343. package/lib/ChartsConfig/utils.js +0 -15
  344. package/lib/Chips/CustomChip.js +0 -183
  345. package/lib/Chips/DeleteChip.js +0 -56
  346. package/lib/Chips/GroupedChips.js +0 -138
  347. package/lib/Chips/index.js +0 -23
  348. package/lib/Chips/styles.js +0 -77
  349. package/lib/Chips/utils.js +0 -30
  350. package/lib/CollapseButtons/CollapseButtons.js +0 -198
  351. package/lib/CollapseButtons/Item.js +0 -179
  352. package/lib/CollapseButtons/Paper.js +0 -82
  353. package/lib/CollapseButtons/index.js +0 -16
  354. package/lib/CollapsibleTree/Collapse.js +0 -130
  355. package/lib/CollapsibleTree/CollapsibleTree.js +0 -288
  356. package/lib/CollapsibleTree/index.js +0 -16
  357. package/lib/Contact/Contact.js +0 -409
  358. package/lib/Contact/Input.js +0 -165
  359. package/lib/Contact/Mode.js +0 -174
  360. package/lib/Contact/index.js +0 -16
  361. package/lib/DataEdit/DataEdit.js +0 -190
  362. package/lib/DataEdit/Input.js +0 -186
  363. package/lib/DataEdit/index.js +0 -16
  364. package/lib/DataFooter/DataFooter.js +0 -219
  365. package/lib/DataFooter/index.js +0 -16
  366. package/lib/DataHeader/DataHeader.js +0 -358
  367. package/lib/DataHeader/Flags.js +0 -61
  368. package/lib/DataHeader/Title.js +0 -40
  369. package/lib/DataHeader/TooltipHeader.js +0 -99
  370. package/lib/DataHeader/index.js +0 -16
  371. package/lib/DataHeader/utils.js +0 -29
  372. package/lib/Dataflow/Dataflow.js +0 -505
  373. package/lib/Dataflow/index.js +0 -16
  374. package/lib/DynamicDrawer/AdvancedSelection.js +0 -563
  375. package/lib/DynamicDrawer/DynamicDrawer.js +0 -466
  376. package/lib/DynamicDrawer/SelectionModesMobile.js +0 -119
  377. package/lib/DynamicDrawer/index.js +0 -16
  378. package/lib/ExpansionPanel/ExpansionPanel.js +0 -198
  379. package/lib/ExpansionPanel/index.js +0 -16
  380. package/lib/ExpansionPanel/styles.js +0 -103
  381. package/lib/HierarchicalFilter/HierarchicalFilter.js +0 -208
  382. package/lib/HierarchicalFilter/index.js +0 -16
  383. package/lib/Icons/AccessibilityFilled.js +0 -25
  384. package/lib/Icons/AccessibilityOutlined.js +0 -25
  385. package/lib/Icons/AccountFilled.js +0 -25
  386. package/lib/Icons/AccountOutlined.js +0 -25
  387. package/lib/Icons/Api.js +0 -25
  388. package/lib/Icons/Asterisk.js +0 -25
  389. package/lib/Icons/Bar.js +0 -25
  390. package/lib/Icons/CopyContent.js +0 -25
  391. package/lib/Icons/Cross.js +0 -25
  392. package/lib/Icons/HSymbol.js +0 -25
  393. package/lib/Icons/Row.js +0 -25
  394. package/lib/Icons/Scatter.js +0 -25
  395. package/lib/Icons/StackedBar.js +0 -25
  396. package/lib/Icons/StackedRow.js +0 -25
  397. package/lib/Icons/Timeline.js +0 -25
  398. package/lib/Icons/VSymbol.js +0 -25
  399. package/lib/Icons/Warning.js +0 -45
  400. package/lib/Icons/index.js +0 -155
  401. package/lib/Input/Input.js +0 -164
  402. package/lib/Input/index.js +0 -16
  403. package/lib/Input/with-input.js +0 -69
  404. package/lib/InputNumber/InputNumber.js +0 -152
  405. package/lib/InputNumber/index.js +0 -16
  406. package/lib/LabelDivider/LabelDivider.js +0 -78
  407. package/lib/LabelDivider/index.js +0 -16
  408. package/lib/Loading/Loading.js +0 -110
  409. package/lib/Loading/index.js +0 -16
  410. package/lib/Logo/Logo.js +0 -73
  411. package/lib/Logo/index.js +0 -16
  412. package/lib/Mode/Mode.js +0 -168
  413. package/lib/Mode/index.js +0 -16
  414. package/lib/NoData/NoData.js +0 -69
  415. package/lib/NoData/index.js +0 -16
  416. package/lib/Pagination/Pagination.js +0 -250
  417. package/lib/Pagination/index.js +0 -16
  418. package/lib/PeriodPicker/PeriodPicker.js +0 -266
  419. package/lib/PeriodPicker/constants.js +0 -43
  420. package/lib/PeriodPicker/index.js +0 -16
  421. package/lib/PeriodPicker/lib.js +0 -222
  422. package/lib/PeriodPicker/styles.js +0 -32
  423. package/lib/ScopeList/Header.js +0 -110
  424. package/lib/ScopeList/Item.js +0 -284
  425. package/lib/ScopeList/ScopeList.js +0 -377
  426. package/lib/ScopeList/Selection.js +0 -170
  427. package/lib/ScopeList/index.deprecated.js +0 -16
  428. package/lib/ScopeList/index.js +0 -16
  429. package/lib/ScopeList/styles.js +0 -153
  430. package/lib/ScopeList/with-scope-list.js +0 -507
  431. package/lib/Select/Select.js +0 -201
  432. package/lib/Select/index.js +0 -16
  433. package/lib/Share/Form.js +0 -201
  434. package/lib/Share/Mode.js +0 -176
  435. package/lib/Share/Share.js +0 -148
  436. package/lib/Share/index.js +0 -16
  437. package/lib/ShortUrls/ShortUrls.js +0 -181
  438. package/lib/ShortUrls/index.js +0 -16
  439. package/lib/SisccFooter/SisccFooter.js +0 -131
  440. package/lib/SisccFooter/index.js +0 -16
  441. package/lib/Spotlight/Fields.js +0 -132
  442. package/lib/Spotlight/Spotlight.js +0 -202
  443. package/lib/Spotlight/index.js +0 -16
  444. package/lib/Spotlight/useSpotlight.js +0 -85
  445. package/lib/Spotlight/useStyles.js +0 -91
  446. package/lib/TableFooter/TableFooter.js +0 -129
  447. package/lib/TableFooter/index.js +0 -16
  448. package/lib/TableHeader/TableHeader.js +0 -89
  449. package/lib/TableHeader/index.js +0 -16
  450. package/lib/TableHtml5/TableHtml5.js +0 -249
  451. package/lib/TableHtml5/cell.js +0 -164
  452. package/lib/TableHtml5/flags.js +0 -174
  453. package/lib/TableHtml5/header.js +0 -215
  454. package/lib/TableHtml5/index.js +0 -23
  455. package/lib/TableHtml5/section.js +0 -289
  456. package/lib/TableHtml5/sectionHeader.js +0 -212
  457. package/lib/TableHtml5/subHeader.js +0 -191
  458. package/lib/TableHtml5/utils.js +0 -32
  459. package/lib/TableLayout/Box.js +0 -159
  460. package/lib/TableLayout/DnDItem.js +0 -177
  461. package/lib/TableLayout/TableLayout.js +0 -487
  462. package/lib/TableLayout/constants.js +0 -14
  463. package/lib/TableLayout/index.js +0 -16
  464. package/lib/TableLayout/lib.js +0 -40
  465. package/lib/TablePreview/TablePreview.js +0 -279
  466. package/lib/TablePreview/index.js +0 -16
  467. package/lib/TablePreview/lib.js +0 -48
  468. package/lib/TablePreview/styles.js +0 -81
  469. package/lib/Tag/Tag.js +0 -67
  470. package/lib/Tag/index.js +0 -16
  471. package/lib/ToggleButton/ToggleButton.js +0 -111
  472. package/lib/ToggleButton/index.js +0 -16
  473. package/lib/Tooltip/Tooltip.js +0 -95
  474. package/lib/Tooltip/index.js +0 -16
  475. package/lib/UserRightForm/Input.js +0 -165
  476. package/lib/UserRightForm/Permissions.js +0 -159
  477. package/lib/UserRightForm/PermsissionsTabs.js +0 -145
  478. package/lib/UserRightForm/UserRightForm.js +0 -484
  479. package/lib/UserRightForm/index.js +0 -16
  480. package/lib/VerticalButton/VerticalButton.js +0 -88
  481. package/lib/VerticalButton/index.js +0 -16
  482. package/lib/VirtualizedTree/Item.js +0 -244
  483. package/lib/VirtualizedTree/VirtualizedTree.js +0 -402
  484. package/lib/VirtualizedTree/index.js +0 -16
  485. package/lib/VirtualizedTree/utils.js +0 -179
  486. package/lib/VirtualizedTree/withExpansionTree.js +0 -80
  487. package/lib/VirtualizedTree/withSpotlight.js +0 -129
  488. package/lib/hooks/useKeybordEscapeHandler.js +0 -28
  489. package/lib/index.js +0 -460
  490. package/lib/theme.js +0 -437
  491. package/lib/utils.js +0 -96
  492. package/umd/@sis-cc/dotstatsuite-visions.js +0 -82495
  493. package/umd/@sis-cc/dotstatsuite-visions.min.js +0 -222
  494. package/umd/@sis-cc/dotstatsuite-visions.min.js.map +0 -1
  495. package/umd/branch-selection.54dd3bc1.png +0 -0
  496. package/umd/children-selection.20d94242.png +0 -0
  497. package/umd/level-selection.df116629.png +0 -0
  498. package/umd/single-selection.a729a6c8.png +0 -0
package/es/Mode/Mode.js DELETED
@@ -1,135 +0,0 @@
1
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
2
-
3
- import React from 'react';
4
- import PropTypes from 'prop-types';
5
- import * as R from 'ramda';
6
- import makeStyles from '@mui/styles/makeStyles';
7
- import RadioGroup from '@mui/material/RadioGroup';
8
- import FormControlLabel from '@mui/material/FormControlLabel';
9
- import Radio from '@mui/material/Radio';
10
- import { Tooltip } from '../';
11
- import useKeyboardEscapeHandler from '../hooks/useKeybordEscapeHandler';
12
-
13
- var useStyles = makeStyles(function (theme) {
14
- return {
15
- title: _extends({
16
- padding: 0
17
- }, R.pathOr({}, ['mixins', 'share', 'title'], theme)),
18
- label: theme.typography.body2,
19
- icon: {
20
- marginLeft: theme.spacing(0.5)
21
- },
22
- radioGroup: {
23
- alignContent: 'flex-start'
24
- }
25
- };
26
- });
27
-
28
- var Warning = function Warning(_ref) {
29
- var title = _ref.title,
30
- children = _ref.children;
31
-
32
- var classes = useStyles();
33
-
34
- var _useKeyboardEscapeHan = useKeyboardEscapeHandler(),
35
- open = _useKeyboardEscapeHan.open,
36
- setOpen = _useKeyboardEscapeHan.setOpen;
37
-
38
- return React.createElement(
39
- Tooltip,
40
- {
41
- className: classes.icon,
42
- title: title,
43
- variant: 'light',
44
- 'aria-label': title,
45
- 'aria-hidden': false,
46
- open: open,
47
- onOpen: function onOpen() {
48
- return setOpen(true);
49
- },
50
- onClose: function onClose() {
51
- return setOpen(false);
52
- }
53
- },
54
- children
55
- );
56
- };
57
-
58
- Warning.propTypes = process.env.NODE_ENV !== "production" ? {
59
- title: PropTypes.string,
60
- children: PropTypes.node
61
- } : {};
62
-
63
- var Mode = function Mode(_ref2) {
64
- var changeMode = _ref2.changeMode,
65
- _ref2$placement = _ref2.placement,
66
- placement = _ref2$placement === undefined ? 'end' : _ref2$placement,
67
- mode = _ref2.mode,
68
- _ref2$modes = _ref2.modes,
69
- modes = _ref2$modes === undefined ? [] : _ref2$modes,
70
- _ref2$isSmall = _ref2.isSmall,
71
- isSmall = _ref2$isSmall === undefined ? false : _ref2$isSmall,
72
- children = _ref2.children;
73
-
74
- var classes = useStyles();
75
- var mapIndexed = R.addIndex(R.map);
76
- return React.createElement(
77
- RadioGroup,
78
- {
79
- onChange: function onChange(e) {
80
- return changeMode(e.target.value);
81
- },
82
- value: mode,
83
- className: classes.radioGroup,
84
- tabIndex: 0
85
- },
86
- mapIndexed(function (_ref3, idx) {
87
- var label = _ref3.label,
88
- value = _ref3.value,
89
- popperLabel = _ref3.popperLabel,
90
- disabled = _ref3.disabled;
91
- return React.createElement(FormControlLabel, {
92
- classes: { label: classes.label },
93
- key: value + '-' + idx,
94
- checked: mode === value,
95
- control: React.createElement(Radio, {
96
- variant: 'outlined',
97
- color: 'primary',
98
- size: isSmall ? 'small' : 'medium',
99
- inputProps: { tabIndex: '0', id: label + '_' + idx }
100
- }),
101
- label: React.createElement(
102
- 'span',
103
- { id: label },
104
- label,
105
- popperLabel && React.createElement(
106
- Warning,
107
- { title: popperLabel },
108
- children
109
- )
110
- ),
111
- labelPlacement: placement,
112
- value: value,
113
- disabled: disabled || false,
114
- style: { height: isSmall ? '25px' : null },
115
- role: 'radio'
116
- });
117
- })(modes)
118
- );
119
- };
120
-
121
- Mode.propTypes = process.env.NODE_ENV !== "production" ? {
122
- changeMode: PropTypes.func,
123
- children: PropTypes.node,
124
- mode: PropTypes.string,
125
- placement: PropTypes.string,
126
- modes: PropTypes.arrayOf(PropTypes.shape({
127
- label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
128
- value: PropTypes.string,
129
- popperLabel: PropTypes.string,
130
- disabled: PropTypes.bool
131
- })),
132
- isSmall: PropTypes.bool
133
- } : {};
134
-
135
- export default Mode;
package/es/Mode/index.js DELETED
@@ -1,24 +0,0 @@
1
- /**
2
- * NoData component is a basic placeholder to use when there is nothing to display.
3
- *
4
- * @memberOf VISIONS
5
- * @name Mode
6
- * @tag component
7
- * @api public
8
- * @props
9
- * Mode.propTypes = {
10
- * changeMode: PropTypes.func,
11
- * mode: PropTypes.string,
12
- * modes: PropTypes.arrayOf(
13
- * PropTypes.shape({
14
- * label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
15
- * value: PropTypes.string,
16
- * popperLabel: PropTypes.string,
17
- * }),
18
- * isSmall: PropTypes.bool,
19
- * }
20
- * @theme
21
- * // no custom theme there
22
- */
23
-
24
- export { default } from './Mode';
@@ -1,48 +0,0 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import makeStyles from '@mui/styles/makeStyles';
4
- import Typography from '@mui/material/Typography';
5
- import Error from '@mui/icons-material/Error';
6
-
7
- var useStyles = makeStyles(function () {
8
- return {
9
- root: {
10
- display: 'flex',
11
- flexDirection: 'column',
12
- width: '100%',
13
- height: '100%',
14
- justifyContent: 'center',
15
- alignItems: 'center'
16
- }
17
- };
18
- });
19
-
20
- var NO_RESULT_MESSAGE_ID = 'noResultMessage';
21
-
22
- var NoData = function NoData(_ref) {
23
- var icon = _ref.icon,
24
- message = _ref.message;
25
-
26
- var classes = useStyles();
27
- return React.createElement(
28
- 'div',
29
- { className: classes.root },
30
- React.createElement(
31
- Typography,
32
- { variant: 'subtitle1', noWrap: true, align: 'center' },
33
- icon || React.createElement(Error, { color: 'primary', fontSize: 'large' })
34
- ),
35
- React.createElement(
36
- Typography,
37
- { variant: 'subtitle1', noWrap: true, align: 'center', tabIndex: '0', id: NO_RESULT_MESSAGE_ID },
38
- message
39
- )
40
- );
41
- };
42
-
43
- NoData.propTypes = process.env.NODE_ENV !== "production" ? {
44
- icon: PropTypes.element,
45
- message: PropTypes.oneOfType([PropTypes.string, PropTypes.element])
46
- } : {};
47
-
48
- export default NoData;
@@ -1,15 +0,0 @@
1
- /**
2
- * NoData component is a basic placeholder to use when there is nothing to display.
3
- *
4
- * @memberOf VISIONS
5
- * @name NoData
6
- * @tag component
7
- * @api public
8
- * @props
9
- * icon: PropTypes.element
10
- * message: PropTypes.oneOfType([PropTypes.string, PropTypes.element])
11
- * @theme
12
- * // no custom theme there
13
- */
14
-
15
- export { default } from './NoData';
@@ -1,207 +0,0 @@
1
- import React, { useState, useEffect } from 'react';
2
- import PropTypes from 'prop-types';
3
- import * as R from 'ramda';
4
- import makeStyles from '@mui/styles/makeStyles';
5
- import KeyboardArrowLeft from '@mui/icons-material/KeyboardArrowLeft';
6
- import KeyboardArrowRight from '@mui/icons-material/KeyboardArrowRight';
7
- import IconButton from '@mui/material/IconButton';
8
- import FirstPageIcon from '@mui/icons-material/FirstPage';
9
- import LastPageIcon from '@mui/icons-material/LastPage';
10
- import TextField from '@mui/material/TextField';
11
- import Typography from '@mui/material/Typography';
12
- import { useTheme } from '@mui/material/styles';
13
- import { withBlank } from '../utils';
14
-
15
- var useStyles = makeStyles(function (theme) {
16
- return {
17
- container: {
18
- alignItems: 'center',
19
- display: 'flex',
20
- userSelect: 'none'
21
- },
22
- input: {
23
- width: 40,
24
- marginBottom: '0 !important',
25
- marginTop: '0 !important',
26
- marginLeft: theme.spacing(0.5),
27
- marginRight: theme.spacing(0.5),
28
- padding: '0 !important',
29
- justifyContent: 'center',
30
- '& fieldset': {
31
- padding: '0 !important'
32
- },
33
- '& input': {
34
- padding: '0 !important',
35
- height: 24,
36
- textAlign: 'center'
37
- }
38
- },
39
- innerInput: {
40
- fontSize: theme.typography.fontSize
41
- }
42
- };
43
- });
44
-
45
- var PageForm = function PageForm(_ref) {
46
- var labels = _ref.labels,
47
- page = _ref.page,
48
- pages = _ref.pages,
49
- onSubmit = _ref.onSubmit;
50
-
51
- var classes = useStyles();
52
-
53
- var _useState = useState(page),
54
- value = _useState[0],
55
- changeValue = _useState[1];
56
-
57
- var changePageFor = function changePageFor(number) {
58
- if (R.isEmpty(R.match(/^[0-9]*$/g, number))) return;
59
- return changeValue(number);
60
- };
61
-
62
- useEffect(function () {
63
- changeValue(page);
64
- }, [page]);
65
-
66
- var onEnterLabel = function onEnterLabel(event) {
67
- if (event.key === 'Enter') {
68
- event.preventDefault();
69
- if (R.is(Function, onSubmit)) {
70
- var intValue = parseInt(event.target.value);
71
- if (isNaN(intValue)) return;
72
- if (intValue > pages) return;
73
- onSubmit(intValue);
74
- }
75
- }
76
- };
77
-
78
- return React.createElement(
79
- 'div',
80
- { className: classes.container },
81
- React.createElement(
82
- Typography,
83
- { variant: 'body2', tabIndex: 0 },
84
- R.prop('page', labels)
85
- ),
86
- React.createElement(TextField, {
87
- inputProps: {
88
- 'aria-label': R.prop('page', labels),
89
- className: classes.innerInput
90
- },
91
- className: classes.input,
92
- value: value,
93
- disabled: pages === 1,
94
- onChange: function onChange(e) {
95
- return changePageFor(e.target.value);
96
- },
97
- onKeyPress: onEnterLabel,
98
- type: 'text',
99
- variant: 'outlined'
100
- }),
101
- React.createElement(
102
- Typography,
103
- { variant: 'body2', tabIndex: 0 },
104
- R.prop('of', labels) + ' ' + pages
105
- )
106
- );
107
- };
108
-
109
- PageForm.propTypes = process.env.NODE_ENV !== "production" ? {
110
- page: PropTypes.number,
111
- pages: PropTypes.number,
112
- onChange: PropTypes.func,
113
- onSubmit: PropTypes.func,
114
- labels: PropTypes.object
115
- } : {};
116
-
117
- var Pagination = function Pagination(_ref2) {
118
- var labels = _ref2.labels,
119
- page = _ref2.page,
120
- pages = _ref2.pages,
121
- onChange = _ref2.onChange,
122
- onSubmit = _ref2.onSubmit;
123
-
124
- var classes = useStyles();
125
- var theme = useTheme();
126
- return React.createElement(
127
- 'div',
128
- { 'data-testid': 'pagination-test-id', className: classes.container },
129
- React.createElement(
130
- IconButton,
131
- {
132
- className: classes.iconButton,
133
- disabled: page === 1,
134
- color: 'primary',
135
- onClick: function onClick() {
136
- return onChange(1);
137
- },
138
- 'aria-label': R.prop('startPage', labels),
139
- size: 'small'
140
- },
141
- theme.direction === 'rtl' ? React.createElement(LastPageIcon, null) : React.createElement(FirstPageIcon, null)
142
- ),
143
- React.createElement(
144
- IconButton,
145
- {
146
- className: classes.iconButton,
147
- disabled: page === 1,
148
- color: 'primary',
149
- onClick: function onClick() {
150
- return onChange(page - 1);
151
- },
152
- 'aria-label': R.prop('previousPage', labels),
153
- size: 'small'
154
- },
155
- theme.direction === 'rtl' ? React.createElement(KeyboardArrowRight, null) : React.createElement(KeyboardArrowLeft, null)
156
- ),
157
- React.createElement(PageForm, { labels: labels, page: page, pages: pages, onSubmit: onSubmit }),
158
- React.createElement(
159
- IconButton,
160
- {
161
- className: classes.iconButton,
162
- disabled: page === pages,
163
- color: 'primary',
164
- onClick: function onClick() {
165
- return onChange(page + 1);
166
- },
167
- 'aria-label': R.prop('nextPage', labels),
168
- size: 'small'
169
- },
170
- theme.direction === 'rtl' ? React.createElement(KeyboardArrowLeft, null) : React.createElement(KeyboardArrowRight, null)
171
- ),
172
- React.createElement(
173
- IconButton,
174
- {
175
- className: classes.iconButton,
176
- disabled: page === pages,
177
- color: 'primary',
178
- onClick: function onClick() {
179
- return onChange(pages);
180
- },
181
- 'aria-label': R.prop('endPage', labels),
182
- size: 'small'
183
- },
184
- theme.direction === 'rtl' ? React.createElement(FirstPageIcon, null) : React.createElement(LastPageIcon, null)
185
- )
186
- );
187
- };
188
-
189
- Pagination.propTypes = process.env.NODE_ENV !== "production" ? {
190
- page: PropTypes.number,
191
- pages: PropTypes.number,
192
- onChange: PropTypes.func,
193
- onSubmit: PropTypes.func,
194
- labels: PropTypes.shape({
195
- page: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
196
- of: PropTypes.oneOfType([PropTypes.string, PropTypes.element])
197
- })
198
- } : {};
199
-
200
- export default withBlank(function (_ref3) {
201
- var isBlank = _ref3.isBlank,
202
- _ref3$pages = _ref3.pages,
203
- pages = _ref3$pages === undefined ? 1 : _ref3$pages;
204
- return {
205
- isBlank: R.or(isBlank, R.equals(1, pages))
206
- };
207
- })(Pagination);
@@ -1,31 +0,0 @@
1
- /**
2
- * Pagination
3
- *
4
- * @memberOf VISIONS
5
- * @name Pagination
6
- * @tag component
7
- * @api public
8
- * @props
9
- * Pagination.propTypes = {
10
- * page: PropTypes.number,
11
- * pages: PropTypes.number,
12
- * onChange: PropTypes.func,
13
- * onSubmit: PropTypes.func,
14
- * labels: PropTypes.shape({
15
- * page: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
16
- * of: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
17
- * startPage: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
18
- * previousPage: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
19
- * nextPage: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
20
- * endPage: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
21
- * }),
22
- * };
23
- * @theme
24
- * {
25
- * typography: {
26
- * fontSize: // input font size
27
- * }
28
- * }
29
- **/
30
-
31
- export { default } from './Pagination';
@@ -1,236 +0,0 @@
1
- import React from 'react';
2
- import * as R from 'ramda';
3
- import PropTypes from 'prop-types';
4
- import { compareAsc, compareDesc, isSameYear } from 'date-fns';
5
- import Grid from '@mui/material/Grid';
6
- import Typography from '@mui/material/Typography';
7
- import { numeralFormat } from './lib';
8
- import { Button, Select } from '../';
9
- import useStyles from './styles';
10
- import { defaultfreq } from './constants';
11
- import { getRange, getFrequencyOptions, getDefaultFrequency, getLayout, getPeriodValue, getDate, getDateInTheRange, getDestructuringDate, isValidNumber } from './lib';
12
- import { withBlank } from '../utils';
13
-
14
- var Period = function Period(_ref) {
15
- var _ref$defaultFrequency = _ref.defaultFrequency,
16
- defaultFrequency = _ref$defaultFrequency === undefined ? defaultfreq : _ref$defaultFrequency,
17
- _ref$availableFrequen = _ref.availableFrequencies,
18
- availableFrequencies = _ref$availableFrequen === undefined ? [defaultfreq] : _ref$availableFrequen,
19
- _boundaries = _ref.boundaries,
20
- _availableBoundaries = _ref.availableBoundaries,
21
- changePeriod = _ref.changePeriod,
22
- changeFrequency = _ref.changeFrequency,
23
- _period = _ref.period,
24
- labels = _ref.labels,
25
- periodDisabled = _ref.periodDisabled,
26
- frequencyDisabled = _ref.frequencyDisabled,
27
- disabled = _ref.disabled;
28
-
29
- var classes = useStyles();
30
- var frequencies = getFrequencyOptions(availableFrequencies, labels);
31
- if (R.isEmpty(frequencies)) return null;
32
- var frequency = getDefaultFrequency({
33
- defaultFrequency: defaultFrequency,
34
- frequencies: R.pluck('value')(frequencies)
35
- });
36
- var period = R.defaultTo([], _period);
37
- var boundaries = R.defaultTo([], _boundaries);
38
- var availableBoundaries = R.defaultTo([], _availableBoundaries);
39
- var isPeriodDisabled = R.or(R.any(R.isEmpty)([period, boundaries]), periodDisabled);
40
- var startDate = R.head(period);
41
- var endDate = R.last(period);
42
-
43
- var startPeriodBoundaries = [R.head(boundaries), R.defaultTo(R.last(boundaries), endDate)];
44
- var endPeriodBoundaries = [R.defaultTo(R.head(boundaries), startDate), R.last(boundaries)];
45
- var ranges = [getRange(startPeriodBoundaries, startDate), getRange(endPeriodBoundaries, endDate)];
46
-
47
- var showFrequency = R.and(R.gt(R.length(frequencies), 1), R.not(frequencyDisabled));
48
- var destructuringDates = R.map(getDestructuringDate)(period);
49
-
50
- var onClickFrequency = function onClickFrequency(e, value) {
51
- if (R.is(Function, changeFrequency)) return changeFrequency(value);
52
- };
53
- var _getIsDisabled = function _getIsDisabled(getter) {
54
- return function (value, id) {
55
- var _getDate;
56
-
57
- var fn = R.prop(getter)({ start: R.head, end: R.last });
58
- if (!isValidNumber(Number(value)) || R.length(availableBoundaries) !== 2) {
59
- return false;
60
- }
61
- var dateValue = getPeriodValue(fn(destructuringDates));
62
-
63
- var date = getDate(frequency, dateValue, (_getDate = {}, _getDate[id] = Number(value), _getDate), getter === 'end');
64
- var availableStart = availableBoundaries[0],
65
- availableEnd = availableBoundaries[1];
66
-
67
- if (id === 'year') {
68
- if (isSameYear(date, availableStart)) {
69
- date = availableStart;
70
- } else if (isSameYear(date, availableEnd)) {
71
- date = availableEnd;
72
- }
73
- }
74
- return compareAsc(date, availableStart) === -1 || compareDesc(date, availableEnd) === -1;
75
- };
76
- };
77
- var onChangePeriod = function onChangePeriod(getter, id) {
78
- return function (value) {
79
- var fn = R.prop(getter)({ start: R.head, end: R.last });
80
- var lensIndex = R.prop(getter)({ start: R.lensIndex(0), end: R.lensIndex(1) });
81
- var dateValue = getPeriodValue(fn(destructuringDates));
82
- var selectedValue = R.ifElse(isValidNumber, R.assoc(id, R.__, {}), R.always(undefined))(Number(value));
83
- var newDate = getDate(frequency, dateValue, selectedValue, getter === 'end');
84
- if (R.is(Function, changePeriod)) {
85
- return changePeriod(R.pipe(R.set(lensIndex, newDate), function (_ref2) {
86
- var startDate = _ref2[0],
87
- endDate = _ref2[1];
88
- return [getDateInTheRange(startPeriodBoundaries)(startDate), getDateInTheRange(endPeriodBoundaries)(endDate)];
89
- })(period));
90
- }
91
- };
92
- };
93
- return React.createElement(
94
- Grid,
95
- { 'data-testid': 'period-picker-test-id', container: true, direction: 'row' },
96
- showFrequency && React.createElement(
97
- Grid,
98
- {
99
- item: true,
100
- xs: 12,
101
- className: classes.headerContainer,
102
- 'data-testid': 'period-picker-frequency-test-id'
103
- },
104
- R.map(function (freq) {
105
- return React.createElement(
106
- Button,
107
- {
108
- sx: { margin: 2 },
109
- 'aria-label': freq.label,
110
- key: freq.value,
111
- onClick: function onClick(e) {
112
- return onClickFrequency(e, R.prop('value', freq));
113
- },
114
- selected: frequency
115
- },
116
- freq.label
117
- );
118
- })(frequencies)
119
- ),
120
- R.not(isPeriodDisabled) && React.createElement(
121
- Grid,
122
- { container: true, xs: 12, justifyContent: 'space-between' },
123
- R.map(function (_ref3) {
124
- var getter = _ref3.getter,
125
- layout = _ref3.layout,
126
- label = _ref3.label,
127
- value = _ref3.value,
128
- testId = _ref3.testId,
129
- getIsDisabled = _ref3.getIsDisabled;
130
- return React.createElement(
131
- Grid,
132
- { key: getter, item: true, xs: 5, 'data-testid': testId, justifyContent: 'space-between' },
133
- React.createElement(
134
- Grid,
135
- { container: true, direction: 'row' },
136
- React.createElement(
137
- Grid,
138
- { item: true, xs: 12, className: classes.sideLabel },
139
- React.createElement(
140
- Typography,
141
- {
142
- variant: 'body2',
143
- tabIndex: 0 // eslint-disable-line jsx-a11y/no-noninteractive-tabindex
144
- , 'aria-label': label
145
- },
146
- label
147
- )
148
- )
149
- ),
150
- React.createElement(
151
- Grid,
152
- { container: true, direction: 'row' },
153
- React.createElement(
154
- Grid,
155
- { item: true, xs: 12 },
156
- React.createElement(
157
- Grid,
158
- { container: true, className: classes.headerContainer, spacing: 1 },
159
- R.map(function (row) {
160
- return R.map(function (_ref4) {
161
- var id = _ref4.id,
162
- values = _ref4.values;
163
-
164
- var selectedValue = R.isNil(R.prop(id)(value)) ? R.head(values) : R.prop(id)(value);
165
- return React.createElement(
166
- Grid,
167
- {
168
- key: id,
169
- item: true,
170
- xs: 12 / R.length(row),
171
- className: classes.selectContainer
172
- },
173
- React.createElement(Select, {
174
- onChange: onChangePeriod(getter, id),
175
- label: R.prop(id)(labels),
176
- id: id + '-' + label,
177
- dataTestId: id + '-' + label + '-test-id',
178
- value: selectedValue,
179
- disabled: disabled || false,
180
- items: R.map(function (option) {
181
- return {
182
- id: id,
183
- value: option,
184
- disabled: getIsDisabled(option, id),
185
- label: R.ifElse(R.is(String), R.identity, R.prop(id)(numeralFormat))(option)
186
- };
187
- })(values)
188
- })
189
- );
190
- })(row);
191
- })(layout)
192
- )
193
- )
194
- )
195
- );
196
- })([{
197
- getter: 'start',
198
- testId: 'period-picker-start-period-test-id',
199
- layout: getLayout(frequency, R.head(ranges)),
200
- label: R.prop('start')(labels),
201
- value: getPeriodValue(R.head(destructuringDates)),
202
- getIsDisabled: _getIsDisabled('start')
203
- }, {
204
- getter: 'end',
205
- testId: 'period-picker-end-period-test-id',
206
- layout: getLayout(frequency, R.last(ranges), /*R.last(availableRanges)*/[]),
207
- label: R.prop('end')(labels),
208
- value: getPeriodValue(R.last(destructuringDates)),
209
- getIsDisabled: _getIsDisabled('end')
210
- }])
211
- )
212
- );
213
- };
214
-
215
- Period.propTypes = process.env.NODE_ENV !== "production" ? {
216
- defaultFrequency: PropTypes.string,
217
- availableFrequencies: PropTypes.array,
218
- availableBoundaries: PropTypes.array,
219
- boundaries: PropTypes.array,
220
- changePeriod: PropTypes.func,
221
- changeFrequency: PropTypes.func,
222
- period: PropTypes.array,
223
- labels: PropTypes.object,
224
- periodDisabled: PropTypes.bool,
225
- frequencyDisabled: PropTypes.bool,
226
- disabled: PropTypes.bool
227
- } : {};
228
-
229
- export default withBlank(function (_ref5) {
230
- var periodDisabled = _ref5.periodDisabled,
231
- frequencyDisabled = _ref5.frequencyDisabled,
232
- isBlank = _ref5.isBlank;
233
- return {
234
- isBlank: R.or(isBlank, R.and(periodDisabled, frequencyDisabled))
235
- };
236
- })(Period);