@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
@@ -1,171 +0,0 @@
1
- import React, { Fragment } from 'react';
2
- import * as R from 'ramda';
3
- import PropTypes from 'prop-types';
4
- import cx from 'classnames';
5
- import Typography from '@mui/material/Typography';
6
- import Grid from '@mui/material/Grid';
7
- import { useTheme } from '@mui/material/styles';
8
- import makeStyles from '@mui/styles/makeStyles';
9
- import TableCell from '@mui/material/TableCell';
10
- import TableRow from '@mui/material/TableRow';
11
- import Flags from './flags';
12
- import { getDark, getIsRtl } from '../utils';
13
- import { getValue } from './utils';
14
-
15
- var useStyles = makeStyles(function (theme) {
16
- return {
17
- section: {
18
- borderCollapse: 'collapse',
19
- backgroundColor: getDark(theme) || theme.palette.secondary.dark,
20
- border: 'inherit',
21
- borderBottom: '1px solid ' + theme.palette.grey[500],
22
- borderRight: '1px solid ' + theme.palette.grey[500],
23
- padding: theme.spacing(0, 1),
24
- color: theme.palette.grey['A700'],
25
- verticalAlign: 'middle',
26
- whiteSpace: 'nowrap'
27
- },
28
- label: {
29
- fontStyle: 'italic',
30
- fontWeight: 'bold',
31
- marginRight: theme.spacing(0.5)
32
- },
33
- containerSection: {
34
- display: 'flex',
35
- alignItems: 'center'
36
- },
37
- stickyHeaderSection: {
38
- position: 'sticky'
39
- },
40
- flag: {
41
- height: '100%',
42
- backgroundColor: getDark(theme) || theme.palette.secondary.dark,
43
- paddingLeft: 12
44
- },
45
- leftLabelPosition: {
46
- left: theme.spacing(1)
47
- },
48
- rightLabelPosition: {
49
- right: theme.spacing(1)
50
- },
51
- sectionLabelsContainer: {
52
- padding: theme.spacing(0.5, 0)
53
- }
54
- };
55
- });
56
- var mapIndexed = R.addIndex(R.map);
57
-
58
- var SectionHeader = function SectionHeader(_ref) {
59
- var headerData = _ref.headerData,
60
- section = _ref.section,
61
- currentSection = _ref.currentSection,
62
- xLayoutDataLength = _ref.xLayoutDataLength,
63
- headerHeight = _ref.headerHeight,
64
- SideIcon = _ref.SideIcon,
65
- HTMLRenderer = _ref.HTMLRenderer,
66
- labelAccessor = _ref.labelAccessor;
67
-
68
- var classes = useStyles();
69
- var theme = useTheme();
70
- var isRtl = getIsRtl(theme);
71
- if (R.compose(R.anyPass([R.isNil, R.isEmpty]), R.path([0, 'data']))(section)) return null;
72
-
73
- return React.createElement(
74
- TableRow,
75
- {
76
- key: section.key,
77
- className: classes.stickyHeaderSection,
78
- style: { left: 0, top: headerHeight, zIndex: 2 }
79
- },
80
- React.createElement(
81
- TableCell,
82
- {
83
- component: 'th',
84
- className: classes.section,
85
- colSpan: R.pipe(R.length, R.inc, R.add(xLayoutDataLength))(headerData),
86
- id: currentSection,
87
- scope: 'col'
88
- },
89
- React.createElement(
90
- Grid,
91
- { container: true, alignItems: 'center' },
92
- React.createElement(
93
- Grid,
94
- {
95
- item: true,
96
- style: isRtl ? { position: 'sticky', right: '8px' } : { position: 'sticky', left: '8px' }
97
- },
98
- React.createElement(
99
- Typography,
100
- { variant: 'body1', component: 'div', className: classes.containerSection },
101
- React.createElement(
102
- 'span',
103
- {
104
- className: cx(classes.stickyHeaderSection, classes.leftLabelPosition, classes.sectionLabelsContainer)
105
- },
106
- mapIndexed(function (sectionHeader, index) {
107
- var value = getValue(labelAccessor)(sectionHeader);
108
- return React.createElement(
109
- Fragment,
110
- { key: index },
111
- index !== 0 && React.createElement('br', null),
112
- React.createElement(
113
- Typography,
114
- {
115
- noWrap: true,
116
- variant: 'body1',
117
- component: 'span',
118
- tabIndex: 0,
119
- className: classes.label,
120
- 'data-testid': 'section-dim',
121
- 'aria-label': R.path(['dimension', 'id'], sectionHeader)
122
- },
123
- R.pipe(R.prop('dimension'), labelAccessor)(sectionHeader),
124
- ':'
125
- ),
126
- React.createElement(
127
- Typography,
128
- { noWrap: true, variant: 'body1', component: 'span', tabIndex: 0 },
129
- R.prop('label', value)
130
- ),
131
- React.createElement(Flags, {
132
- HTMLRenderer: HTMLRenderer,
133
- labelAccessor: labelAccessor,
134
- flags: R.prop('flags', value)
135
- })
136
- );
137
- }, R.path([0, 'data'], section)),
138
- React.createElement(
139
- 'span',
140
- null,
141
- React.createElement(Flags, {
142
- HTMLRenderer: HTMLRenderer,
143
- flags: R.path([0, 'flags'], section),
144
- labelAccessor: labelAccessor
145
- })
146
- )
147
- )
148
- )
149
- ),
150
- !R.isNil(SideIcon) && React.createElement(
151
- Grid,
152
- { item: true, style: { marginLeft: 40 } },
153
- React.createElement(SideIcon, { sideProps: R.path([0, 'sideProps'], section) })
154
- )
155
- )
156
- )
157
- );
158
- };
159
-
160
- SectionHeader.propTypes = process.env.NODE_ENV !== "production" ? {
161
- headerData: PropTypes.array,
162
- section: PropTypes.array,
163
- currentSection: PropTypes.string,
164
- xLayoutDataLength: PropTypes.number,
165
- headerHeight: PropTypes.number,
166
- SideIcon: PropTypes.func,
167
- HTMLRenderer: PropTypes.func,
168
- labelAccessor: PropTypes.func
169
- } : {};
170
-
171
- export default SectionHeader;
@@ -1,154 +0,0 @@
1
- import React from 'react';
2
- import * as R from 'ramda';
3
- import PropTypes from 'prop-types';
4
- import cx from 'classnames';
5
- import Typography from '@mui/material/Typography';
6
- import { useTheme } from '@mui/material/styles';
7
- import makeStyles from '@mui/styles/makeStyles';
8
- import TableCell from '@mui/material/TableCell';
9
- import TableRow from '@mui/material/TableRow';
10
- import { getLight, getIsRtl } from '../utils';
11
- import Flags from './flags';
12
-
13
- var useStyles = makeStyles(function (theme) {
14
- return {
15
- columnsTitle: {
16
- position: 'sticky',
17
- zIndex: 1,
18
- boxSizing: 'border-box',
19
- backgroundColor: getLight(theme) || theme.palette.secondary.light,
20
- border: 'none',
21
- borderBottom: '1px solid ' + theme.palette.grey[500],
22
- color: theme.palette.grey['A700'],
23
- verticalAlign: 'middle',
24
- '&::after': {
25
- content: '""',
26
- position: 'absolute',
27
- top: 0,
28
- right: 0,
29
- width: '1px',
30
- height: '100%',
31
- backgroundColor: theme.palette.grey[500]
32
- }
33
- // backgroundColor: getLight(theme) || theme.palette.secondary.light,
34
- // border: 'inherit',
35
- // borderBottom: `1.5px solid ${theme.palette.grey[500]}`,
36
- // borderRight: `1.5px solid ${theme.palette.grey[500]}`,
37
- // padding: `${theme.spacing(0.5)} ${theme.spacing(1)}`,
38
- // color: theme.palette.grey['A700'],
39
- // verticalAlign: 'middle',
40
- // position: 'sticky',
41
- // zIndex: 1,
42
- // outline: `1px solid ${theme.palette.grey[500]}`,
43
- // borderCollapse: 'collapse',
44
- // borderSpacing: 0
45
- },
46
- fillerCell: {
47
- backgroundColor: theme.palette.grey[200],
48
- border: 'inherit',
49
- borderBottom: '1.5px solid ' + theme.palette.grey[500],
50
- borderRight: '1.5px solid ' + theme.palette.grey[500],
51
- padding: theme.spacing(0.5) + ' ' + theme.spacing(1),
52
- verticalAlign: 'middle',
53
- textAlign: 'center',
54
- color: theme.palette.grey['A700'],
55
- zIndex: 1
56
- },
57
- cellContent: {
58
- justifyContent: 'flex-start',
59
- display: 'flex'
60
- },
61
- label: {
62
- fontStyle: 'italic',
63
- fontWeight: 'bold'
64
- },
65
- highlight: theme.mixins.table.cellHighlight
66
- };
67
- });
68
-
69
- var mapIndexed = R.addIndex(R.map);
70
-
71
- var SubHeader = React.forwardRef(function (_ref, refs) {
72
- var headerData = _ref.headerData,
73
- xLayoutData = _ref.xLayoutData,
74
- activeCellIds = _ref.activeCellIds,
75
- subHeadCellsWidth = _ref.subHeadCellsWidth,
76
- SideIcon = _ref.SideIcon,
77
- HTMLRenderer = _ref.HTMLRenderer,
78
- labelAccessor = _ref.labelAccessor;
79
-
80
- var classes = useStyles();
81
- var theme = useTheme();
82
- var isRtl = getIsRtl(theme);
83
- return React.createElement(
84
- TableRow,
85
- null,
86
- mapIndexed(function (rowItem, index) {
87
- return React.createElement(
88
- TableCell,
89
- {
90
- component: 'th',
91
- className: classes.columnsTitle,
92
- key: index,
93
- id: 'subHeader_' + index,
94
- style: isRtl ? { right: subHeadCellsWidth[index] } : { left: subHeadCellsWidth[index] },
95
- ref: function ref(element) {
96
- return refs.current[index] = element;
97
- },
98
- scope: 'col'
99
- },
100
- React.createElement(
101
- 'div',
102
- {
103
- className: classes.cellContent,
104
- 'aria-label': R.path(['dimension', 'id'], rowItem),
105
- 'data-testid': 'row-dim'
106
- },
107
- React.createElement(
108
- Typography,
109
- { variant: 'body1', tabIndex: 0, className: classes.label },
110
- R.pipe(R.prop('dimension'), labelAccessor)(rowItem),
111
- React.createElement(Flags, {
112
- labelAccessor: labelAccessor,
113
- HTMLRenderer: HTMLRenderer,
114
- flags: R.path(['dimension', 'flags'], rowItem)
115
- })
116
- )
117
- )
118
- );
119
- }, xLayoutData),
120
- React.createElement(TableCell, {
121
- className: classes.fillerCell,
122
- style: isRtl ? { position: 'sticky', right: R.last(subHeadCellsWidth) } : { position: 'sticky', left: R.last(subHeadCellsWidth) }
123
- }),
124
- mapIndexed(function (item, index) {
125
- var _cx;
126
-
127
- return React.createElement(
128
- TableCell,
129
- {
130
- key: index,
131
- className: cx(classes.fillerCell, (_cx = {}, _cx[classes.highlight] = R.prop(index)(activeCellIds), _cx))
132
- },
133
- !R.isNil(SideIcon) && React.createElement(SideIcon, { sideProps: R.prop('sideProps', item) }),
134
- React.createElement(Flags, {
135
- flags: R.prop('flags', item),
136
- labelAccessor: labelAccessor,
137
- HTMLRenderer: HTMLRenderer
138
- })
139
- );
140
- }, headerData)
141
- );
142
- });
143
-
144
- SubHeader.propTypes = process.env.NODE_ENV !== "production" ? {
145
- activeCellIds: PropTypes.object,
146
- headerData: PropTypes.array,
147
- xLayoutData: PropTypes.array,
148
- SideIcon: PropTypes.func,
149
- subHeadCellsWidth: PropTypes.arrayOf(PropTypes.number),
150
- HTMLRenderer: PropTypes.func,
151
- labelAccessor: PropTypes.func
152
- } : {};
153
-
154
- export default SubHeader;
@@ -1,23 +0,0 @@
1
- import * as R from 'ramda';
2
-
3
- export var getValue = function getValue(labelAccessor) {
4
- return function (item) {
5
- return R.has('values', item) ? R.reduce(function (acc, val) {
6
- return {
7
- label: acc.label,
8
- id: R.isEmpty(acc.id) ? val.id : acc.id + ', ' + val.id,
9
- flags: R.concat(acc.flags, val.flags || []),
10
- parents: R.concat(acc.parents, val.parents || [])
11
- };
12
- }, { id: '', flags: [], parents: [], label: labelAccessor(item.values) }, item.values) : R.pipe(R.prop('value'), function (val) {
13
- return R.assoc('label', labelAccessor(val), val);
14
- })(item);
15
- };
16
- };
17
-
18
- export var defaultLabelAccessor = function defaultLabelAccessor(item) {
19
- if (R.is(Object, item)) {
20
- return R.prop('name', item);
21
- }
22
- return R.pipe(R.pluck('name'), R.join(', '))(item);
23
- };
@@ -1,123 +0,0 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import * as R from 'ramda';
4
- import cx from 'classnames';
5
- import { Droppable } from '@hello-pangea/dnd';
6
- import Typography from '@mui/material/Typography';
7
- import Grid from '@mui/material/Grid';
8
- import makeStyles from '@mui/styles/makeStyles';
9
- import DnDItem from './DnDItem';
10
- import { visuallyHidden } from '@mui/utils';
11
- import { getLight, getDark } from '../utils';
12
- import { BOX } from './constants';
13
-
14
- export var useStyles = makeStyles(function (theme) {
15
- var _ref;
16
-
17
- return _ref = {
18
- blockDnd: {
19
- width: '100%',
20
- paddingBottom: theme.spacing(1),
21
- marginTop: theme.spacing(0.5),
22
- marginRight: theme.spacing(1),
23
- minHeight: 30,
24
- marginBottom: theme.spacing(1),
25
- borderRadius: theme.spacing(0.5),
26
- borderWidth: 2,
27
- borderStyle: 'solid'
28
- },
29
- canDrop: {
30
- borderStyle: 'dashed'
31
- }
32
- }, _ref[BOX.sections + 'Container'] = {
33
- borderColor: getDark(theme) || theme.palette.secondary.dark
34
- }, _ref[BOX.rows + 'Container'] = {
35
- borderColor: getLight(theme) || theme.palette.secondary.light
36
- }, _ref[BOX.header + 'Container'] = {
37
- borderColor: theme.palette.primary.main
38
- }, _ref.iconTitle = {
39
- display: 'flex',
40
- flexDirection: 'row',
41
- alignItems: 'center',
42
- flexFlow: 'nowrap'
43
- }, _ref.title = theme.typography.subtitle1, _ref;
44
- });
45
-
46
- var Box = function Box(_ref2) {
47
- var items = _ref2.items,
48
- itemRenderer = _ref2.itemRenderer,
49
- dropZoneLabel = _ref2.dropZoneLabel,
50
- title = _ref2.title,
51
- Icon = _ref2.Icon,
52
- onChangeLayout = _ref2.onChangeLayout,
53
- itemButtonProps = _ref2.itemButtonProps,
54
- accessibility = _ref2.accessibility,
55
- md = _ref2.md;
56
-
57
- var classes = useStyles();
58
- var canDrag = R.equals(dropZoneLabel, BOX.rows) ? R.pipe(R.length, R.lt(1))(items) : R.T();
59
-
60
- return React.createElement(
61
- Grid,
62
- { item: true, xs: accessibility ? 4 : 12, md: md },
63
- React.createElement(
64
- 'div',
65
- { className: classes.iconTitle },
66
- React.createElement(Icon, null),
67
- React.createElement(
68
- 'span',
69
- { className: classes.title },
70
- title
71
- ),
72
- React.createElement(
73
- Typography,
74
- { style: visuallyHidden },
75
- title
76
- )
77
- ),
78
- React.createElement(
79
- Droppable,
80
- { droppableId: dropZoneLabel },
81
- function (provided, snapshot) {
82
- var _cx;
83
-
84
- return React.createElement(
85
- 'div',
86
- {
87
- 'data-testid': 'droppable-' + dropZoneLabel,
88
- ref: provided.innerRef,
89
- className: cx(classes.blockDnd, R.prop(dropZoneLabel + 'Container')(classes), (_cx = {}, _cx[classes.canDrop] = snapshot.isDraggingOver, _cx))
90
- },
91
- R.addIndex(R.map)(function (item, index) {
92
- return React.createElement(DnDItem, {
93
- key: item.id,
94
- index: index,
95
- item: item,
96
- itemRenderer: itemRenderer,
97
- dropZoneLabel: dropZoneLabel,
98
- onChangeLayout: onChangeLayout,
99
- itemButtonProps: itemButtonProps,
100
- canDrag: canDrag
101
- });
102
- })(R.values(items)),
103
- provided.placeholder
104
- );
105
- }
106
- )
107
- );
108
- };
109
-
110
- Box.propTypes = process.env.NODE_ENV !== "production" ? {
111
- items: PropTypes.array,
112
- itemRenderer: PropTypes.func,
113
- dropZoneLabel: PropTypes.string,
114
- title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
115
- Icon: PropTypes.object,
116
- onChangeLayout: PropTypes.func,
117
- putItem: PropTypes.func,
118
- itemButtonProps: PropTypes.object,
119
- accessibility: PropTypes.bool,
120
- md: PropTypes.number
121
- } : {};
122
-
123
- export default Box;
@@ -1,142 +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, { Fragment } from 'react';
4
- import PropTypes from 'prop-types';
5
- import * as R from 'ramda';
6
- import cx from 'classnames';
7
- import makeStyles from '@mui/styles/makeStyles';
8
- import Typography from '@mui/material/Typography';
9
- import Select from '@mui/material/Select';
10
- import MenuItem from '@mui/material/MenuItem';
11
- import { Draggable } from '@hello-pangea/dnd';
12
- import { getLight, getDark } from '../utils';
13
- import { BOX, wcagId } from './constants';
14
-
15
- export var useStyles = makeStyles(function (theme) {
16
- var _ref;
17
-
18
- return _ref = {
19
- containerButton: {
20
- display: 'flex',
21
- justifyContent: 'space-between',
22
- padding: theme.spacing(1),
23
- borderRadius: theme.spacing(0.5),
24
- userSelect: 'none'
25
- },
26
- styledItemContainer: {
27
- cursor: 'grab',
28
- minHeight: 32,
29
- borderRadius: theme.spacing(0.5),
30
- alignItems: 'center',
31
- paddingTop: theme.spacing(0.25),
32
- paddingBottom: theme.spacing(0.25),
33
- margin: theme.spacing(0.25),
34
- opacity: 1,
35
- flexFlow: 'wrap'
36
- }
37
- }, _ref[BOX.sections + 'Item'] = {
38
- color: theme.palette.getContrastText(getDark(theme) || theme.palette.secondary.dark),
39
- backgroundColor: getDark(theme) || theme.palette.secondary.dark
40
- }, _ref[BOX.rows + 'Item'] = {
41
- color: theme.palette.getContrastText(getLight(theme) || theme.palette.secondary.light),
42
- backgroundColor: getLight(theme) || theme.palette.secondary.light
43
- }, _ref[BOX.header + 'Item'] = {
44
- color: theme.palette.getContrastText(theme.palette.primary.main),
45
- backgroundColor: theme.palette.primary.main
46
- }, _ref.cantMove = {
47
- cursor: 'no-drop'
48
- }, _ref.text = {
49
- fontStyle: 'italic',
50
- fontSize: theme.typography.fontSize - 2,
51
- fontWeight: theme.typography.fontWeightBold
52
- }, _ref.itemButton = {
53
- // paddingTop: theme.spacing(0.25),
54
- // paddingBottom: theme.spacing(0.25),
55
- // paddingRight: 0,
56
- }, _ref.select = {
57
- backgroundColor: theme.palette.common.white,
58
- '&:focus': {
59
- backgroundColor: theme.palette.common.white
60
- }
61
- }, _ref.spaceButton = {
62
- margin: theme.spacing(0, 1, 0, 0)
63
- }, _ref;
64
- });
65
-
66
- var DnDItem = function DnDItem(_ref2) {
67
- var item = _ref2.item,
68
- index = _ref2.index,
69
- itemRenderer = _ref2.itemRenderer,
70
- dropZoneLabel = _ref2.dropZoneLabel,
71
- itemButtonProps = _ref2.itemButtonProps,
72
- canDrag = _ref2.canDrag;
73
-
74
- var classes = useStyles();
75
- var selectItem = R.prop(item.id)(itemButtonProps);
76
- return React.createElement(
77
- Draggable,
78
- { key: item.id, draggableId: item.id, index: index, isDragDisabled: R.not(canDrag) },
79
- function (provided) {
80
- var _cx, _cx2;
81
-
82
- return React.createElement(
83
- 'div',
84
- _extends({
85
- 'data-testid': 'draggable-' + item.id,
86
- ref: provided.innerRef
87
- }, provided.draggableProps, provided.dragHandleProps, {
88
- className: cx(classes.styledItemContainer, classes.containerButton, [R.prop(dropZoneLabel + 'Item')(classes)], (_cx = {}, _cx[classes.cantMove] = R.not(canDrag), _cx)),
89
- 'aria-label': itemRenderer(item),
90
- 'aria-describedby': wcagId
91
- }),
92
- React.createElement(
93
- Fragment,
94
- null,
95
- React.createElement(
96
- Typography,
97
- {
98
- variant: 'body2',
99
- className: cx(classes.text, (_cx2 = {}, _cx2[classes.spaceButton] = selectItem, _cx2))
100
- },
101
- itemRenderer(item)
102
- ),
103
- selectItem && React.createElement(
104
- Select,
105
- {
106
- id: item.id,
107
- value: selectItem.value,
108
- onChange: function onChange(e) {
109
- return selectItem.onChange(e.target.value);
110
- },
111
- classes: { root: classes.select },
112
- variant: 'outlined',
113
- size: 'small',
114
- autoWidth: true
115
- },
116
- R.map(function (v) {
117
- return React.createElement(
118
- MenuItem,
119
- { key: v, value: v },
120
- v
121
- );
122
- })(selectItem.options)
123
- )
124
- )
125
- );
126
- }
127
- );
128
- };
129
-
130
- DnDItem.propTypes = process.env.NODE_ENV !== "production" ? {
131
- item: PropTypes.object,
132
- index: PropTypes.number,
133
- itemRenderer: PropTypes.func,
134
- dropZoneLabel: PropTypes.string,
135
- onChangeLayout: PropTypes.func,
136
- itemButtonProps: PropTypes.object,
137
- handleChangeBox: PropTypes.func,
138
- canDrag: PropTypes.bool,
139
- dropZoneIndex: PropTypes.number
140
- } : {};
141
-
142
- export default DnDItem;