@sis-cc/dotstatsuite-visions 12.56.0 → 13.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +56 -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,153 +0,0 @@
1
- 'use strict';
2
-
3
- exports.__esModule = true;
4
- exports.useStyles = exports.height = undefined;
5
-
6
- var _makeStyles = require('@mui/styles/makeStyles');
7
-
8
- var _makeStyles2 = _interopRequireDefault(_makeStyles);
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
-
12
- var height = exports.height = 30;
13
-
14
- var useStyles = exports.useStyles = (0, _makeStyles2.default)(function (theme) {
15
- return {
16
- middle: {
17
- margin: 'auto 0'
18
- },
19
- selectionContainer: {
20
- margin: theme.spacing(1)
21
- },
22
- containerHeader: {
23
- borderBottom: '6px solid ' + theme.palette.grey[100],
24
- marginBottom: '1px'
25
- },
26
- listItemContainer: {
27
- height: height,
28
- paddingRight: 36,
29
- outline: 'none',
30
- marginBottom: '1px'
31
- },
32
- listItem: {
33
- height: height,
34
- display: 'flex',
35
- flexDirection: 'column-reverse',
36
- justifyContent: 'center',
37
- margin: 0,
38
- userSelect: 'none',
39
- cursor: 'pointer',
40
- color: theme.palette.primary.main
41
- },
42
- listItemHover: {
43
- '&:hover': {
44
- color: theme.palette.primary.main,
45
- backgroundColor: theme.palette.action.hover
46
- }
47
- },
48
- accessibilityItemHover: {
49
- '&:focus': {
50
- backgroundColor: theme.palette.action.selected
51
- }
52
- },
53
- listItemSelected: {
54
- backgroundColor: theme.palette.action.hover,
55
- '&:hover': {
56
- backgroundColor: theme.palette.action.selected
57
- }
58
- },
59
- disableSecondaryAction: {
60
- paddingRight: '0 !important'
61
- },
62
- spaceHeader: {
63
- margin: theme.spacing(1, 0),
64
- lineHeight: 1
65
- },
66
- spotlightContainer: {
67
- display: 'flex'
68
- },
69
- labelContainer: {
70
- width: '100%',
71
- display: 'flex',
72
- justifyContent: 'flex-start',
73
- alignItems: 'baseline'
74
- },
75
- rtlLabelContainer: {
76
- flexDirection: 'row-reverse'
77
- },
78
- count: {
79
- color: theme.palette.grey[800],
80
- margin: theme.spacing(0, 0.25),
81
- fontSize: 11
82
- },
83
- path: {
84
- color: theme.palette.grey[600],
85
- marginLeft: theme.spacing(1),
86
- fontSize: 11
87
- },
88
- label: {
89
- overflow: 'hidden',
90
- textOverflow: 'ellipsis',
91
- marginLeft: theme.spacing(1)
92
- },
93
- labelIcon: {
94
- fontSize: 16,
95
- marginLeft: theme.spacing(0.5),
96
- alignSelf: 'center'
97
- },
98
- disabled: {
99
- pointerEvents: 'initial !important'
100
- },
101
- disabledLabel: {
102
- color: theme.palette.grey[700]
103
- },
104
- ellipsis: {
105
- whiteSpace: 'nowrap',
106
- overflow: 'hidden',
107
- textOverflow: 'ellipsis'
108
- },
109
- svg: {
110
- verticalAlign: 'bottom',
111
- fontSize: '1.25rem'
112
- },
113
- arrowHeader: {
114
- color: theme.palette.grey[800]
115
- },
116
- headerItem: {
117
- display: 'inline',
118
- cursor: 'pointer',
119
- userSelect: 'none',
120
- height: 'unset',
121
- minHeight: 25,
122
- padding: theme.spacing(0.25, 0.5),
123
- borderBottom: 'dotted 1px',
124
- verticalAlign: 'text-bottom',
125
- '&:hover, &:focus': {
126
- backgroundColor: theme.palette.action.hover
127
- }
128
- },
129
- containerArrow: {
130
- paddingLeft: 4,
131
- borderLeft: '1px solid ' + theme.palette.grey[800],
132
- color: theme.palette.primary.main,
133
- height: '100%',
134
- display: 'flex',
135
- '&:hover, &:focus': {
136
- backgroundColor: theme.palette.primary.main,
137
- color: theme.palette.common.white
138
- }
139
- },
140
- arrow: {
141
- marginTop: 2,
142
- '&:hover': {
143
- backgroundColor: 'transparent'
144
- }
145
- },
146
- bulkSelectionIcon: {
147
- minWidth: 50
148
- },
149
- tooltipNotice: {
150
- textDecoration: 'underline dotted'
151
- }
152
- };
153
- });
@@ -1,507 +0,0 @@
1
- 'use strict';
2
-
3
- exports.__esModule = true;
4
- exports.withScopeList = exports.setSelection = exports.setAllTo = exports.getIsAllSelected = exports.getItemsGroupByLevel = exports.getItemsIds = exports.getEnhancedNode = exports.getScopeList = exports.getList = exports.getMainList = exports.getCurrentList = exports.withHasChild = exports.getPlaceholder = exports.getItemsIndexedByParentId = exports.getIsBlank = undefined;
5
-
6
- 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; }; /* eslint react/prop-types: 0 */
7
-
8
-
9
- var _react = require('react');
10
-
11
- var _react2 = _interopRequireDefault(_react);
12
-
13
- var _ramda = require('ramda');
14
-
15
- var R = _interopRequireWildcard(_ramda);
16
-
17
- var _utils = require('../utils');
18
-
19
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
20
-
21
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22
-
23
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
24
-
25
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
26
-
27
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
28
-
29
- function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
30
-
31
- var range = function range(tab) {
32
- if (R.isEmpty(tab)) return tab;
33
- return R.range.apply(R, tab);
34
- };
35
-
36
- var getCounter = function getCounter(items, displayAccessor, tagAccessor) {
37
- var count = R.pipe(R.filter(R.prop('isSelected')), R.length)(items);
38
- var total = R.pipe(R.when(R.always(R.is(Function, displayAccessor)), R.filter(displayAccessor)), R.length)(items);
39
- if (R.is(Function, tagAccessor)) {
40
- return tagAccessor(count, total);
41
- }
42
- return count + '/' + total;
43
- };
44
-
45
- var getIsBlank = exports.getIsBlank = function getIsBlank(items, displayAccessor, limitDisplay) {
46
- if (R.not(R.is(Function)(displayAccessor))) return R.pipe(R.length, R.gte(limitDisplay))(items);
47
- return R.pipe(R.filter(displayAccessor), R.length, R.gte(limitDisplay))(items);
48
- };
49
-
50
- //----------------------------------------------------------------------------------DisplayOrDisable
51
- var addDisableProps = function addDisableProps(displayAccessor) {
52
- return function (list) {
53
- if (R.not(R.is(Function)(displayAccessor))) return list;
54
- return R.reduce(function (acc, item) {
55
- return R.pipe(R.when(R.pipe(displayAccessor, Boolean, R.not), R.assoc('isDisabled', true)), R.ifElse(R.both(R.prop('isDisabled'), R.complement(R.prop)('hasChild')), R.always(acc), R.flip(R.append)(acc)))(item);
56
- }, [])(list);
57
- };
58
- };
59
-
60
- var indexByParentId = R.indexBy(R.prop('parentId'));
61
- var indexByParentIdWithHasData = function indexByParentIdWithHasData(displayAccessor) {
62
- return R.indexBy(R.ifElse(displayAccessor, R.prop('parentId'), R.always(undefined)));
63
- };
64
- var getItemsIndexedByParentId = exports.getItemsIndexedByParentId = function getItemsIndexedByParentId(displayAccessor) {
65
- return function (items) {
66
- if (R.not(R.is(Function)(displayAccessor))) return indexByParentId(items);
67
- return R.converge(R.mergeRight, [indexByParentId, indexByParentIdWithHasData(displayAccessor)])(items);
68
- };
69
- };
70
-
71
- //-----------------------------------------------------------------------------------------Spotlight
72
- var getSpotlightedList = function getSpotlightedList(_ref) {
73
- var topElementProps = _ref.topElementProps,
74
- _ref$term = _ref.term,
75
- term = _ref$term === undefined ? '' : _ref$term,
76
- items = _ref.items,
77
- itemsById = _ref.itemsById,
78
- noPath = _ref.noPath,
79
- hasPath = _ref.hasPath;
80
- return topElementProps.defaultSpotlight.engine(_extends({}, topElementProps.defaultSpotlight, {
81
- term: term,
82
- items: items,
83
- itemsById: itemsById,
84
- noPath: noPath,
85
- hasPath: hasPath
86
- }));
87
- };
88
-
89
- var getPlaceholder = exports.getPlaceholder = function getPlaceholder(_ref2) {
90
- var _ref2$placeholder = _ref2.placeholder,
91
- placeholder = _ref2$placeholder === undefined ? '' : _ref2$placeholder,
92
- mainPlaceholder = _ref2.mainPlaceholder,
93
- secondaryPlaceholder = _ref2.secondaryPlaceholder,
94
- currentItem = _ref2.currentItem;
95
-
96
- if (R.and(R.isNil(mainPlaceholder), R.isNil(secondaryPlaceholder))) return placeholder;
97
- if (R.isNil(currentItem)) return mainPlaceholder;
98
- return secondaryPlaceholder;
99
- };
100
- //----------------------------------------------------------------------------------------------List
101
- var withHasChild = exports.withHasChild = function withHasChild(itemsByParentId) {
102
- return function (item) {
103
- return R.assoc('hasChild', R.pipe(R.prop(item.hierarchicalId || item.id), R.isNil, R.not)(itemsByParentId))(item);
104
- };
105
- };
106
- var getCurrentList = exports.getCurrentList = function getCurrentList(_ref3) {
107
- var currentItemId = _ref3.currentItemId,
108
- itemsByParentId = _ref3.itemsByParentId,
109
- items = _ref3.items;
110
- return R.reduce(function (acc, item) {
111
- if (R.equals(currentItemId, item.parentId)) {
112
- return [].concat(acc, [withHasChild(itemsByParentId)(item)]);
113
- }
114
- return acc;
115
- }, [])(items);
116
- };
117
- var getMainList = exports.getMainList = R.filter(R.pipe(R.prop('parentId'), R.isNil));
118
- var getList = exports.getList = function getList(_ref4) {
119
- var items = _ref4.items,
120
- itemsByParentId = _ref4.itemsByParentId,
121
- itemsById = _ref4.itemsById,
122
- topElementProps = _ref4.topElementProps,
123
- currentItem = _ref4.currentItem,
124
- term = _ref4.term,
125
- hasPath = _ref4.hasPath,
126
- displayAccessor = _ref4.displayAccessor;
127
-
128
- var currentItemId = currentItem ? currentItem.hierarchicalId || currentItem.id : null;
129
- if (R.or(R.isEmpty(term), R.isNil(R.prop('defaultSpotlight')(topElementProps)))) {
130
- var itemsByParentIdDisplayed = getItemsIndexedByParentId(displayAccessor)(items);
131
- if (R.isNil(currentItemId)) return R.pipe(getMainList, R.map(function (item) {
132
- return withHasChild(itemsByParentIdDisplayed)(item);
133
- }))(items);
134
- return getCurrentList({ currentItemId: currentItemId, itemsByParentId: itemsByParentIdDisplayed, items: items });
135
- }
136
- if (R.isNil(currentItemId)) return getSpotlightedList({ topElementProps: topElementProps, term: term, items: items, itemsById: itemsById, hasPath: hasPath });
137
- return getSpotlightedList({
138
- topElementProps: topElementProps,
139
- term: term,
140
- items: getCurrentList({ currentItemId: currentItemId, itemsByParentId: itemsByParentId, items: items }),
141
- noPath: true,
142
- hasPath: hasPath
143
- });
144
- };
145
- var getScopeList = exports.getScopeList = function getScopeList(_ref5) {
146
- var isActivePanel = _ref5.isActivePanel,
147
- displayAccessor = _ref5.displayAccessor,
148
- items = _ref5.items,
149
- itemsByParentId = _ref5.itemsByParentId,
150
- itemsById = _ref5.itemsById,
151
- topElementProps = _ref5.topElementProps,
152
- currentItem = _ref5.currentItem,
153
- term = _ref5.term,
154
- hasPath = _ref5.hasPath;
155
-
156
- if (R.not(isActivePanel)) return [];
157
- return R.pipe(getList, addDisableProps(displayAccessor))({
158
- items: items,
159
- itemsByParentId: itemsByParentId,
160
- itemsById: itemsById,
161
- topElementProps: topElementProps,
162
- currentItem: currentItem,
163
- term: term,
164
- hasPath: hasPath,
165
- displayAccessor: displayAccessor
166
- });
167
- };
168
- //----------------------------------------------------------------------------------------------Node
169
- var getEnhancedNode = exports.getEnhancedNode = function getEnhancedNode(currentItem, items, itemsById, hasPath) {
170
- if (R.isNil(currentItem)) return currentItem;
171
- var id = R.prop('id')(currentItem);
172
- var item = R.find(R.propEq('id', id))(items);
173
- var path = R.ifElse(R.both(R.always(hasPath), R.pipe(R.propOr([], 'path'), R.head, R.is(Object))), R.propOr([], 'path'), R.always((0, _utils.reduceChildren)(currentItem, itemsById)))(item);
174
- return R.append(currentItem, path);
175
- };
176
-
177
- var getCurrentItem = function getCurrentItem(_ref6) {
178
- var isActivePanel = _ref6.isActivePanel,
179
- currentItem = _ref6.currentItem,
180
- items = _ref6.items,
181
- itemsById = _ref6.itemsById,
182
- hasPath = _ref6.hasPath;
183
-
184
- if (R.not(isActivePanel)) return null;
185
- return getEnhancedNode(currentItem, items, itemsById, hasPath);
186
- };
187
- //---------------------------------------------------------------------------------------------Multi
188
- var getItemsIds = exports.getItemsIds = R.curry(function (disableAccessor, _ref7, items) {
189
- var isSelected = _ref7.isSelected;
190
-
191
- return R.reduce(function (acc, item) {
192
- if (disableAccessor(item)) return acc;
193
- if (!R.prop('isSelected', item) === isSelected) return acc;
194
- return R.append(R.prop('id', item), acc);
195
- }, [])(items);
196
- });
197
-
198
- var updateIndexSelected = function updateIndexSelected(index) {
199
- return R.ifElse(R.isEmpty, R.always([index, index]), R.update(1, index));
200
- };
201
-
202
- var getItemsGroupByLevel = function getItemsGroupByLevel(disableAccessor) {
203
- return function (itemsById) {
204
- return R.pipe(R.reduce(function (acc, item) {
205
- if (disableAccessor(item)) return acc;
206
- return R.append(R.assoc('level', (0, _utils.reduceChildren)(item, itemsById, R.add(1), 0), item), acc);
207
- }, []), R.reduceBy(function (acc, _ref8) {
208
- var id = _ref8.id,
209
- isSelected = _ref8.isSelected,
210
- rest = _objectWithoutProperties(_ref8, ['id', 'isSelected']);
211
-
212
- return R.append(_extends({}, rest, { id: id, isSelected: isSelected }), acc);
213
- }, [], R.prop('level')));
214
- };
215
- };
216
-
217
- exports.getItemsGroupByLevel = getItemsGroupByLevel;
218
- var getIsAllSelected = exports.getIsAllSelected = function getIsAllSelected(disableAccessor) {
219
- return R.pipe(R.reject(disableAccessor), R.all(R.prop('isSelected')));
220
- };
221
- var setAllTo = exports.setAllTo = function setAllTo(list) {
222
- return R.pipe(R.map(function (index) {
223
- return R.nth(index, list);
224
- }), R.head, R.prop('isSelected'));
225
- };
226
-
227
- var setPreviewSelectedList = R.curry(function (indexes, setValue, list) {
228
- return R.reduce(function (acc, index) {
229
- return R.over(R.lensIndex(index), R.over(R.lensProp('isSelected'), setValue))(acc);
230
- })(list, indexes);
231
- });
232
-
233
- var getRangeIndexes = R.pipe(R.sort(function (a, b) {
234
- return a - b;
235
- }), R.over(R.lensIndex(1), R.add(1)), range);
236
-
237
- var setSelection = exports.setSelection = function setSelection(_ref9, list) {
238
- var isBulkSelection = _ref9.isBulkSelection,
239
- isDiscrete = _ref9.isDiscrete,
240
- _ref9$items = _ref9.items,
241
- items = _ref9$items === undefined ? [] : _ref9$items;
242
- var _items$ = items[0],
243
- indexes = _items$ === undefined ? [] : _items$,
244
- _items$2 = items[1],
245
- applyToSelected = _items$2 === undefined ? R.identity : _items$2;
246
-
247
- if (R.or(R.isEmpty(indexes), isBulkSelection)) return list;
248
- if (isDiscrete) {
249
- return setPreviewSelectedList(indexes, R.not)(list);
250
- }
251
- var isSelected = R.pipe(setAllTo(list), applyToSelected)(indexes);
252
- return setPreviewSelectedList(getRangeIndexes(indexes), R.always(isSelected))(list);
253
- };
254
-
255
- var getPropByIndex = R.curry(function (fn, indexes, list) {
256
- return R.map(R.pipe(R.nth(R.__, list), fn))(indexes);
257
- });
258
-
259
- var allEquals = function allEquals(list) {
260
- return R.all(R.equals(R.head(list)))(list);
261
- };
262
-
263
- //-----------------------------------------------------------------------------------------------Hoc
264
- var withScopeList = exports.withScopeList = function withScopeList(Component) {
265
- var _class, _temp2;
266
-
267
- return _temp2 = _class = function (_React$Component) {
268
- _inherits(_class, _React$Component);
269
-
270
- function _class() {
271
- var _temp, _this, _ret;
272
-
273
- _classCallCheck(this, _class);
274
-
275
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
276
- args[_key] = arguments[_key];
277
- }
278
-
279
- return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {
280
- term: R.propOr('', 'term')(_this.props),
281
- levels: [],
282
- shiftSelection: [],
283
- ctrlSelection: [],
284
- mouseSelection: [],
285
- isMousePreSelection: false,
286
- applyToShiftSelected: R.identity
287
- }, _this.changeList = function (id) {
288
- return _this.setState({ currentItem: R.prop(id)(_this.state.itemsByHierarchicalId), term: '' });
289
- }, _this.changeSelection = function (panelId) {
290
- return function (id) {
291
- return function (event) {
292
- event.preventDefault();
293
- if (R.is(Function, _this.props.changeSelection)) {
294
- return _this.props.changeSelection(panelId, [id]);
295
- }
296
- };
297
- };
298
- }, _this.changeSpotlight = function (spotlight) {
299
- return _this.setState({ term: R.propOr('', 'term')(spotlight) });
300
- }, _this.changeMutliSelection = function (panelId) {
301
- return function (ids) {
302
- return function (event) {
303
- event.preventDefault();
304
- if (R.isEmpty(ids)) return;
305
- if (R.is(Function, _this.props.changeSelection)) {
306
- return _this.props.changeSelection(panelId, ids);
307
- }
308
- return null;
309
- };
310
- };
311
- }, _this.changeLevelSelection = function (panelId, disableAccessor) {
312
- return function (itemsGroupByLevel) {
313
- return function (level, isSelected) {
314
- return function (event) {
315
- event.preventDefault();
316
- if (R.is(Function, _this.props.changeSelection)) {
317
- return _this.props.changeSelection(panelId, R.pipe(R.prop(level), function (items) {
318
- return getItemsIds(disableAccessor)({ isSelected: isSelected }, items);
319
- })(itemsGroupByLevel));
320
- }
321
- return;
322
- };
323
- };
324
- };
325
- }, _this.changeBulkPreSelections = function (id, index) {
326
- return function (event) {
327
- event.preventDefault();
328
- if (event.shiftKey && !R.isEmpty(_this.state.shiftSelection)) {
329
- return _this.setState({
330
- shiftSelection: updateIndexSelected(index)(_this.state.shiftSelection)
331
- });
332
- }
333
- if (event.shiftKey && R.isEmpty(_this.state.shiftSelection)) {
334
- _this.setState({
335
- shiftSelection: [index, index],
336
- applyToShiftSelected: R.not
337
- });
338
- }
339
- if (event.ctrlKey) {
340
- return _this.setState({
341
- ctrlSelection: R.ifElse(R.includes(index), R.without([index]), R.append(index))(_this.state.ctrlSelection)
342
- });
343
- }
344
- };
345
- }, _this.changeMultiSelectionKeyUp = function (disableAccessor) {
346
- return function (_ref10) {
347
- var list = _ref10.list,
348
- id = _ref10.id;
349
- return function (e) {
350
- var shiftSelection = _this.state.shiftSelection;
351
- var ctrlSelection = _this.state.ctrlSelection;
352
-
353
- // e.shiftKey doesn't work
354
- if (R.and(e.key === 'Shift', R.not(R.isEmpty(shiftSelection)))) {
355
- if (allEquals(shiftSelection)) return;
356
- var items = R.pipe(getPropByIndex(R.identity), R.reject(disableAccessor))(getRangeIndexes(shiftSelection), list);
357
- var indexFirstElement = R.head(shiftSelection);
358
- _this.changeMutliSelection(id)(getItemsIds(disableAccessor)({
359
- isSelected: !R.pipe(R.nth(indexFirstElement), R.prop('isSelected'), _this.state.applyToShiftSelected)(list)
360
- })(items))(e);
361
- return _this.setState({
362
- shiftSelection: [R.last(shiftSelection), R.last(shiftSelection)],
363
- applyToShiftSelected: R.identity
364
- });
365
- }
366
- // e.ctrlKey doesn't work
367
- if (R.and(e.key === 'Control', R.not(R.isEmpty(ctrlSelection)))) {
368
- _this.changeMutliSelection(id)(getPropByIndex(R.prop('id'), ctrlSelection, list))(e);
369
- return _this.setState({
370
- ctrlSelection: [],
371
- shiftSelection: [R.last(ctrlSelection), R.last(ctrlSelection)]
372
- });
373
- }
374
- return;
375
- };
376
- };
377
- }, _this.changeMouseSelection = function (disableAccessor) {
378
- return function (_ref11) {
379
- var list = _ref11.list,
380
- id = _ref11.id;
381
- return function (index, mouseAction) {
382
- return function (e) {
383
- if (R.or(e.ctrlKey, e.shiftKey)) return _this.setState({ mouseSelection: [] });
384
- var mouseSelection = _this.state.mouseSelection;
385
- var isMousePreSelection = _this.state.isMousePreSelection;
386
- if (R.prop('isDown')(mouseAction)) {
387
- return _this.setState({
388
- mouseSelection: updateIndexSelected(index)(mouseSelection),
389
- isMousePreSelection: true
390
- });
391
- }
392
- // if (R.isEmpty(mouseSelection)) return;
393
- if (R.and(R.prop('isOver')(mouseAction), isMousePreSelection)) {
394
- return _this.setState({
395
- mouseSelection: updateIndexSelected(index)(mouseSelection)
396
- });
397
- }
398
- if (R.prop('isUp')(mouseAction) && isMousePreSelection) {
399
- var items = R.pipe(getPropByIndex(R.identity), R.reject(disableAccessor))(getRangeIndexes(mouseSelection), list);
400
- var isFirstElementSelected = !!R.prop('isSelected', R.head(items));
401
- _this.changeMutliSelection(id)(getItemsIds(disableAccessor)({ isSelected: isFirstElementSelected })(items))(e);
402
- return _this.setState({
403
- mouseSelection: [],
404
- isMousePreSelection: false,
405
- shiftSelection: [R.last(mouseSelection), R.last(mouseSelection)]
406
- });
407
- }
408
- };
409
- };
410
- };
411
- }, _this.render = function () {
412
- // "items", "itemsByParentId", "itemsById" are the same collection,
413
- // but only "items" is updated by the selection (on hold the selection): { isSelected: true/false }
414
- var _this$props = _this.props,
415
- displayAccessor = _this$props.displayAccessor,
416
- _this$props$disableAc = _this$props.disableAccessor,
417
- disableAccessor = _this$props$disableAc === undefined ? R.prop('isDisabled') : _this$props$disableAc,
418
- tagAccessor = _this$props.tagAccessor,
419
- items = _this$props.items,
420
- _this$props$topElemen = _this$props.topElementProps,
421
- topElementProps = _this$props$topElemen === undefined ? {} : _this$props$topElemen,
422
- activePanelId = _this$props.activePanelId,
423
- id = _this$props.id,
424
- hasPath = _this$props.hasPath,
425
- _this$props$testId = _this$props.testId,
426
- testId = _this$props$testId === undefined ? 'scopeList' : _this$props$testId,
427
- _this$props$limitDisp = _this$props.limitDisplay,
428
- limitDisplay = _this$props$limitDisp === undefined ? 0 : _this$props$limitDisp,
429
- bulkSelection = _this$props.bulkSelection;
430
- var _this$state = _this.state,
431
- currentItem = _this$state.currentItem,
432
- term = _this$state.term,
433
- itemsByParentId = _this$state.itemsByParentId,
434
- itemsById = _this$state.itemsById,
435
- itemsByHierarchicalId = _this$state.itemsByHierarchicalId,
436
- shiftSelection = _this$state.shiftSelection,
437
- ctrlSelection = _this$state.ctrlSelection,
438
- mouseSelection = _this$state.mouseSelection,
439
- applyToShiftSelected = _this$state.applyToShiftSelected;
440
-
441
- var isActivePanel = R.equals(activePanelId, id);
442
- var list = getScopeList({
443
- items: items,
444
- itemsByParentId: itemsByParentId,
445
- itemsById: itemsById,
446
- itemsByHierarchicalId: itemsByHierarchicalId,
447
- topElementProps: topElementProps,
448
- currentItem: currentItem,
449
- term: term,
450
- hasPath: hasPath,
451
- isActivePanel: isActivePanel,
452
- displayAccessor: displayAccessor,
453
- disableAccessor: disableAccessor
454
- });
455
- return _react2.default.createElement(Component, _extends({}, _this.props, {
456
- disableAccessor: disableAccessor,
457
- itemsById: itemsById,
458
- items: items,
459
- isBlank: getIsBlank(items, displayAccessor, limitDisplay),
460
- tagValue: getCounter(items, displayAccessor, tagAccessor),
461
- changeList: _this.changeList,
462
- currentItem: getCurrentItem({
463
- isActivePanel: isActivePanel,
464
- currentItem: currentItem,
465
- items: items,
466
- itemsById: itemsByHierarchicalId,
467
- hasPath: hasPath
468
- }),
469
- action: _this.changeSpotlight,
470
- term: term,
471
- placeholder: getPlaceholder(_extends({}, topElementProps, {
472
- currentItem: currentItem
473
- })),
474
- changeSelect: _this.changeSelect,
475
- testId: testId,
476
- list: bulkSelection ? setSelection({
477
- isBulkSelection: R.not(bulkSelection),
478
- isDiscrete: R.not(R.isEmpty(ctrlSelection)),
479
- items: R.find(function (_ref12) {
480
- var indexes = _ref12[0];
481
- return R.not(R.isEmpty(indexes));
482
- })([[ctrlSelection], [mouseSelection, R.not], [shiftSelection, applyToShiftSelected]])
483
- }, list) : list,
484
- changeSelection: bulkSelection ? _this.changeBulkPreSelections : _this.changeSelection(id),
485
- changeMutliSelection: bulkSelection ? _this.changeMutliSelection(id)(getItemsIds(disableAccessor)({ isSelected: getIsAllSelected(disableAccessor)(list) }, list)) : null,
486
- changeLevelSelection: bulkSelection ? _this.changeLevelSelection(id, disableAccessor) : null,
487
- isCurrentListAllSelected: bulkSelection ? getIsAllSelected(disableAccessor)(list) : null,
488
- changeMultiSelectionKeyUp: bulkSelection ? _this.changeMultiSelectionKeyUp(disableAccessor)({ list: list, id: id }) : null,
489
- changeMouseSelection: bulkSelection ? _this.changeMouseSelection(disableAccessor)({ list: list, id: id }) : null
490
- }));
491
- }, _temp), _possibleConstructorReturn(_this, _ret);
492
- }
493
-
494
- //---------------------------------------------------------------------------------bulkSelection
495
-
496
-
497
- return _class;
498
- }(_react2.default.Component), _class.getDerivedStateFromProps = function (props, state) {
499
- return _extends({}, state, {
500
- itemsById: R.indexBy(R.prop('id'), props.items),
501
- itemsByHierarchicalId: R.indexBy(function (item) {
502
- return item.hierarchicalId || item.id;
503
- }, props.items),
504
- itemsByParentId: getItemsIndexedByParentId(props.displayAccessor)(props.items) // only use for hasChild, same keys are overide
505
- });
506
- }, _temp2;
507
- };