@sis-cc/dotstatsuite-visions 6.5.2 → 6.6.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 (293) hide show
  1. package/es/Alert/Alert.js +66 -135
  2. package/es/Alert/index.js +0 -1
  3. package/es/ApiQueries/ApiQueries.js +45 -79
  4. package/es/ApiQueries/Query.js +65 -105
  5. package/es/ApiQueries/index.js +0 -1
  6. package/es/AuthDialog/index.js +62 -103
  7. package/es/Breadcrumbs/Breadcrumbs.js +21 -38
  8. package/es/Breadcrumbs/index.js +0 -1
  9. package/es/Button/Button.js +11 -28
  10. package/es/Button/index.js +0 -1
  11. package/es/ChartsConfig/Axis.js +72 -76
  12. package/es/ChartsConfig/ButtonGroup.js +29 -51
  13. package/es/ChartsConfig/ChartsConfig.js +87 -187
  14. package/es/ChartsConfig/ContainerTitle.js +15 -36
  15. package/es/ChartsConfig/Focus.js +37 -48
  16. package/es/ChartsConfig/Frequency.js +24 -36
  17. package/es/ChartsConfig/Series.js +28 -43
  18. package/es/ChartsConfig/Size.js +36 -50
  19. package/es/ChartsConfig/index.js +0 -1
  20. package/es/ChartsConfig/styles.js +4 -4
  21. package/es/ChartsConfig/utils.js +1 -5
  22. package/es/Chips/Chips.js +99 -154
  23. package/es/Chips/index.js +0 -1
  24. package/es/CollapseButtons/CollapseButtons.js +61 -101
  25. package/es/CollapseButtons/Item.js +45 -70
  26. package/es/CollapseButtons/Paper.js +7 -21
  27. package/es/CollapseButtons/index.js +0 -1
  28. package/es/DataEdit/DataEdit.js +67 -124
  29. package/es/DataEdit/Input.js +27 -58
  30. package/es/DataEdit/index.js +0 -1
  31. package/es/DataFooter/DataFooter.js +68 -115
  32. package/es/DataFooter/index.js +0 -1
  33. package/es/DataHeader/DataHeader.js +75 -113
  34. package/es/DataHeader/Flags.js +8 -21
  35. package/es/DataHeader/Title.js +2 -15
  36. package/es/DataHeader/TooltipHeader.js +33 -63
  37. package/es/DataHeader/index.js +0 -1
  38. package/es/DataHeader/utils.js +8 -8
  39. package/es/Dataflow/Dataflow.js +132 -226
  40. package/es/Dataflow/index.js +0 -1
  41. package/es/ExpansionPanel/ExpansionPanel.js +42 -79
  42. package/es/ExpansionPanel/index.js +0 -1
  43. package/es/ExpansionPanel/styles.js +3 -5
  44. package/es/Icons/AccessibilityFilled.js +6 -8
  45. package/es/Icons/AccessibilityOutlined.js +6 -8
  46. package/es/Icons/AccountFilled.js +6 -8
  47. package/es/Icons/AccountOutlined.js +6 -8
  48. package/es/Icons/Api.js +6 -8
  49. package/es/Icons/Asterisk.js +6 -8
  50. package/es/Icons/Bar.js +6 -8
  51. package/es/Icons/CopyContent.js +6 -8
  52. package/es/Icons/Cross.js +6 -8
  53. package/es/Icons/HSymbol.js +6 -8
  54. package/es/Icons/Row.js +6 -8
  55. package/es/Icons/Scatter.js +6 -8
  56. package/es/Icons/StackedBar.js +6 -8
  57. package/es/Icons/StackedRow.js +6 -8
  58. package/es/Icons/Timeline.js +6 -8
  59. package/es/Icons/VSymbol.js +6 -8
  60. package/es/Icons/Warning.js +11 -14
  61. package/es/Icons/index.js +0 -1
  62. package/es/Input/Input.js +26 -56
  63. package/es/Input/index.js +0 -1
  64. package/es/Input/with-input.js +30 -25
  65. package/es/InputNumber/InputNumber.js +31 -51
  66. package/es/InputNumber/index.js +0 -1
  67. package/es/LabelDivider/LabelDivider.js +7 -18
  68. package/es/LabelDivider/index.js +0 -1
  69. package/es/Loading/Loading.js +9 -18
  70. package/es/Loading/index.js +0 -1
  71. package/es/Logo/Logo.js +11 -17
  72. package/es/Logo/index.js +0 -1
  73. package/es/NoData/NoData.js +17 -25
  74. package/es/NoData/index.js +0 -1
  75. package/es/Pagination/Pagination.js +70 -114
  76. package/es/Pagination/index.js +0 -1
  77. package/es/PeriodPicker/PeriodPicker.js +101 -124
  78. package/es/PeriodPicker/constants.js +78 -13
  79. package/es/PeriodPicker/index.js +0 -1
  80. package/es/PeriodPicker/lib.js +37 -23
  81. package/es/PeriodPicker/styles.js +0 -1
  82. package/es/ScopeList/Header.js +41 -60
  83. package/es/ScopeList/Item.js +98 -144
  84. package/es/ScopeList/ScopeList.js +132 -184
  85. package/es/ScopeList/Selection.js +51 -93
  86. package/es/ScopeList/index.js +0 -1
  87. package/es/ScopeList/styles.js +2 -3
  88. package/es/ScopeList/with-scope-list.js +151 -88
  89. package/es/Select/Select.js +44 -60
  90. package/es/Select/index.js +0 -1
  91. package/es/Share/Form.js +58 -88
  92. package/es/Share/Mode.js +30 -46
  93. package/es/Share/Share.js +41 -64
  94. package/es/Share/index.js +0 -1
  95. package/es/SisccFooter/SisccFooter.js +29 -36
  96. package/es/SisccFooter/index.js +0 -1
  97. package/es/Spotlight/Fields.js +37 -71
  98. package/es/Spotlight/Spotlight.js +51 -92
  99. package/es/Spotlight/index.js +0 -1
  100. package/es/Spotlight/useSpotlight.js +33 -13
  101. package/es/Spotlight/useStyles.js +2 -4
  102. package/es/Table/Table.js +50 -71
  103. package/es/Table/header.js +36 -50
  104. package/es/Table/index.js +0 -1
  105. package/es/Table/itemCell.js +13 -25
  106. package/es/Table/row-header.js +31 -50
  107. package/es/Table/section-header.js +30 -55
  108. package/es/Table/section-rows.js +38 -62
  109. package/es/Table/styles.js +2 -8
  110. package/es/Table/tableCell.js +7 -17
  111. package/es/Table/tooltip.js +21 -41
  112. package/es/Table/useStyles.js +2 -3
  113. package/es/Table/valueCell.js +26 -41
  114. package/es/TableFooter/TableFooter.js +42 -70
  115. package/es/TableFooter/index.js +0 -1
  116. package/es/TableHeader/TableHeader.js +18 -36
  117. package/es/TableHeader/index.js +0 -1
  118. package/es/TableHtml5/TableHtml5.js +71 -68
  119. package/es/TableHtml5/cell.js +35 -55
  120. package/es/TableHtml5/flags.js +29 -58
  121. package/es/TableHtml5/header.js +48 -66
  122. package/es/TableHtml5/index.js +0 -1
  123. package/es/TableHtml5/section.js +86 -120
  124. package/es/TableHtml5/sectionHeader.js +45 -72
  125. package/es/TableHtml5/subHeader.js +48 -58
  126. package/es/TableLayout/Box.js +33 -66
  127. package/es/TableLayout/DnDItem.js +37 -68
  128. package/es/TableLayout/TableLayout.js +105 -177
  129. package/es/TableLayout/constants.js +0 -2
  130. package/es/TableLayout/index.js +0 -1
  131. package/es/TableLayout/lib.js +1 -3
  132. package/es/TablePreview/TablePreview.js +99 -176
  133. package/es/TablePreview/index.js +0 -1
  134. package/es/TablePreview/lib.js +5 -4
  135. package/es/TablePreview/styles.js +0 -1
  136. package/es/Tag/Tag.js +5 -21
  137. package/es/Tag/index.js +0 -1
  138. package/es/ToggleButton/ToggleButton.js +17 -29
  139. package/es/ToggleButton/index.js +0 -1
  140. package/es/Tooltip/Tooltip.js +20 -32
  141. package/es/Tooltip/index.js +0 -1
  142. package/es/VerticalButton/VerticalButton.js +17 -22
  143. package/es/VerticalButton/index.js +0 -1
  144. package/es/index.js +2 -4
  145. package/es/theme.js +22 -14
  146. package/es/utils.js +16 -14
  147. package/lib/Alert/Alert.js +87 -168
  148. package/lib/Alert/index.js +7 -12
  149. package/lib/ApiQueries/ApiQueries.js +61 -105
  150. package/lib/ApiQueries/Query.js +85 -132
  151. package/lib/ApiQueries/index.js +7 -12
  152. package/lib/AuthDialog/index.js +82 -137
  153. package/lib/Breadcrumbs/Breadcrumbs.js +39 -68
  154. package/lib/Breadcrumbs/index.js +7 -12
  155. package/lib/Button/Button.js +28 -47
  156. package/lib/Button/index.js +7 -12
  157. package/lib/ChartsConfig/Axis.js +88 -100
  158. package/lib/ChartsConfig/ButtonGroup.js +43 -74
  159. package/lib/ChartsConfig/ChartsConfig.js +113 -236
  160. package/lib/ChartsConfig/ContainerTitle.js +30 -59
  161. package/lib/ChartsConfig/Focus.js +53 -71
  162. package/lib/ChartsConfig/Frequency.js +39 -59
  163. package/lib/ChartsConfig/Series.js +45 -70
  164. package/lib/ChartsConfig/Size.js +53 -77
  165. package/lib/ChartsConfig/index.js +7 -12
  166. package/lib/ChartsConfig/styles.js +16 -11
  167. package/lib/ChartsConfig/utils.js +14 -13
  168. package/lib/Chips/Chips.js +122 -192
  169. package/lib/Chips/index.js +7 -12
  170. package/lib/CollapseButtons/CollapseButtons.js +84 -134
  171. package/lib/CollapseButtons/Item.js +64 -98
  172. package/lib/CollapseButtons/Paper.js +19 -41
  173. package/lib/CollapseButtons/index.js +7 -12
  174. package/lib/DataEdit/DataEdit.js +88 -156
  175. package/lib/DataEdit/Input.js +42 -82
  176. package/lib/DataEdit/index.js +7 -12
  177. package/lib/DataFooter/DataFooter.js +88 -144
  178. package/lib/DataFooter/index.js +7 -12
  179. package/lib/DataHeader/DataHeader.js +106 -158
  180. package/lib/DataHeader/Flags.js +18 -34
  181. package/lib/DataHeader/Title.js +11 -27
  182. package/lib/DataHeader/TooltipHeader.js +48 -79
  183. package/lib/DataHeader/index.js +7 -12
  184. package/lib/DataHeader/utils.js +16 -10
  185. package/lib/Dataflow/Dataflow.js +159 -277
  186. package/lib/Dataflow/index.js +7 -12
  187. package/lib/ExpansionPanel/ExpansionPanel.js +63 -116
  188. package/lib/ExpansionPanel/index.js +7 -12
  189. package/lib/ExpansionPanel/styles.js +15 -12
  190. package/lib/Icons/AccessibilityFilled.js +15 -17
  191. package/lib/Icons/AccessibilityOutlined.js +15 -17
  192. package/lib/Icons/AccountFilled.js +15 -17
  193. package/lib/Icons/AccountOutlined.js +15 -17
  194. package/lib/Icons/Api.js +15 -17
  195. package/lib/Icons/Asterisk.js +15 -17
  196. package/lib/Icons/Bar.js +15 -17
  197. package/lib/Icons/CopyContent.js +15 -17
  198. package/lib/Icons/Cross.js +15 -17
  199. package/lib/Icons/HSymbol.js +15 -17
  200. package/lib/Icons/Row.js +15 -17
  201. package/lib/Icons/Scatter.js +15 -17
  202. package/lib/Icons/StackedBar.js +15 -17
  203. package/lib/Icons/StackedRow.js +15 -17
  204. package/lib/Icons/Timeline.js +15 -17
  205. package/lib/Icons/VSymbol.js +15 -17
  206. package/lib/Icons/Warning.js +27 -31
  207. package/lib/Icons/index.js +68 -152
  208. package/lib/Input/Input.js +47 -85
  209. package/lib/Input/index.js +7 -12
  210. package/lib/Input/with-input.js +38 -35
  211. package/lib/InputNumber/InputNumber.js +50 -80
  212. package/lib/InputNumber/index.js +7 -12
  213. package/lib/LabelDivider/LabelDivider.js +23 -37
  214. package/lib/LabelDivider/index.js +7 -12
  215. package/lib/Loading/Loading.js +20 -35
  216. package/lib/Loading/index.js +7 -12
  217. package/lib/Logo/Logo.js +20 -28
  218. package/lib/Logo/index.js +7 -12
  219. package/lib/NoData/NoData.js +28 -42
  220. package/lib/NoData/index.js +7 -12
  221. package/lib/Pagination/Pagination.js +91 -150
  222. package/lib/Pagination/index.js +7 -12
  223. package/lib/PeriodPicker/PeriodPicker.js +121 -150
  224. package/lib/PeriodPicker/constants.js +126 -37
  225. package/lib/PeriodPicker/index.js +7 -12
  226. package/lib/PeriodPicker/lib.js +99 -61
  227. package/lib/PeriodPicker/styles.js +7 -4
  228. package/lib/ScopeList/Header.js +58 -88
  229. package/lib/ScopeList/Item.js +116 -177
  230. package/lib/ScopeList/ScopeList.js +160 -234
  231. package/lib/ScopeList/Selection.js +70 -131
  232. package/lib/ScopeList/index.js +7 -12
  233. package/lib/ScopeList/styles.js +10 -9
  234. package/lib/ScopeList/with-scope-list.js +199 -108
  235. package/lib/Select/Select.js +59 -80
  236. package/lib/Select/index.js +7 -12
  237. package/lib/Share/Form.js +77 -119
  238. package/lib/Share/Mode.js +49 -78
  239. package/lib/Share/Share.js +59 -91
  240. package/lib/Share/index.js +7 -12
  241. package/lib/SisccFooter/SisccFooter.js +44 -63
  242. package/lib/SisccFooter/index.js +7 -12
  243. package/lib/Spotlight/Fields.js +54 -100
  244. package/lib/Spotlight/Spotlight.js +75 -136
  245. package/lib/Spotlight/index.js +7 -12
  246. package/lib/Spotlight/useSpotlight.js +44 -20
  247. package/lib/Spotlight/useStyles.js +15 -12
  248. package/lib/Table/Table.js +69 -102
  249. package/lib/Table/header.js +51 -70
  250. package/lib/Table/index.js +7 -12
  251. package/lib/Table/itemCell.js +25 -41
  252. package/lib/Table/row-header.js +49 -75
  253. package/lib/Table/section-header.js +50 -82
  254. package/lib/Table/section-rows.js +60 -94
  255. package/lib/Table/styles.js +23 -25
  256. package/lib/Table/tableCell.js +19 -37
  257. package/lib/Table/tooltip.js +36 -54
  258. package/lib/Table/useStyles.js +11 -8
  259. package/lib/Table/valueCell.js +39 -59
  260. package/lib/TableFooter/TableFooter.js +57 -93
  261. package/lib/TableFooter/index.js +7 -12
  262. package/lib/TableHeader/TableHeader.js +32 -56
  263. package/lib/TableHeader/index.js +7 -12
  264. package/lib/TableHtml5/TableHtml5.js +90 -97
  265. package/lib/TableHtml5/cell.js +52 -84
  266. package/lib/TableHtml5/flags.js +48 -82
  267. package/lib/TableHtml5/header.js +66 -96
  268. package/lib/TableHtml5/index.js +8 -17
  269. package/lib/TableHtml5/section.js +111 -162
  270. package/lib/TableHtml5/sectionHeader.js +64 -102
  271. package/lib/TableHtml5/subHeader.js +68 -88
  272. package/lib/TableLayout/Box.js +54 -97
  273. package/lib/TableLayout/DnDItem.js +58 -98
  274. package/lib/TableLayout/TableLayout.js +140 -232
  275. package/lib/TableLayout/constants.js +8 -6
  276. package/lib/TableLayout/index.js +7 -12
  277. package/lib/TableLayout/lib.js +14 -9
  278. package/lib/TablePreview/TablePreview.js +118 -205
  279. package/lib/TablePreview/index.js +7 -12
  280. package/lib/TablePreview/lib.js +30 -19
  281. package/lib/TablePreview/styles.js +7 -6
  282. package/lib/Tag/Tag.js +19 -38
  283. package/lib/Tag/index.js +7 -12
  284. package/lib/ToggleButton/ToggleButton.js +33 -55
  285. package/lib/ToggleButton/index.js +7 -12
  286. package/lib/Tooltip/Tooltip.js +34 -50
  287. package/lib/Tooltip/index.js +7 -12
  288. package/lib/VerticalButton/VerticalButton.js +40 -46
  289. package/lib/VerticalButton/index.js +7 -12
  290. package/lib/index.js +137 -304
  291. package/lib/theme.js +31 -17
  292. package/lib/utils.js +46 -31
  293. package/package.json +2 -10
package/es/index.js CHANGED
@@ -1,8 +1,6 @@
1
- import meta from '../package.json';
2
-
3
- // eslint-disable-next-line no-console
4
- if (process.env.NODE_ENV !== 'test') console.info(meta.name + '@' + meta.version);
1
+ import meta from '../package.json'; // eslint-disable-next-line no-console
5
2
 
3
+ if (process.env.NODE_ENV !== 'test') console.info(meta.name + "@" + meta.version);
6
4
  export { default as Alert } from './Alert';
7
5
  export { default as ApiQueries } from './ApiQueries';
8
6
  export { default as Breadcrumbs } from './Breadcrumbs';
package/es/theme.js CHANGED
@@ -10,17 +10,14 @@ export var innerPalette = {
10
10
  textLight: '#444444',
11
11
  textDark: '#182026'
12
12
  };
13
-
14
13
  export var sisccTheme = function sisccTheme(_ref) {
15
14
  var rtl = _ref.rtl,
16
15
  isA11y = _ref.isA11y,
17
16
  _ref$outerPalette = _ref.outerPalette,
18
- outerPalette = _ref$outerPalette === undefined ? {} : _ref$outerPalette;
19
-
17
+ outerPalette = _ref$outerPalette === void 0 ? {} : _ref$outerPalette;
20
18
  var focus = {
21
19
  outlineColor: outerPalette.highlight1 || innerPalette.highlight1
22
20
  };
23
-
24
21
  var buttonBaseFocus = {
25
22
  borderColor: outerPalette.highlight1 || innerPalette.highlight1,
26
23
  '&:focus': {
@@ -29,13 +26,11 @@ export var sisccTheme = function sisccTheme(_ref) {
29
26
  outlineStyle: 'auto'
30
27
  }
31
28
  };
32
-
33
29
  var spotlightFocus = {
34
30
  outlineColor: outerPalette.highlight1 || innerPalette.highlight1,
35
31
  outlineStyle: 'auto',
36
32
  outlineWidth: 1
37
33
  };
38
-
39
34
  return {
40
35
  direction: rtl,
41
36
  props: {
@@ -83,7 +78,7 @@ export var sisccTheme = function sisccTheme(_ref) {
83
78
  },
84
79
  textPrimary: {
85
80
  '&:hover': {
86
- backgroundColor: '' + (outerPalette.hover || innerPalette.hover)
81
+ backgroundColor: "" + (outerPalette.hover || innerPalette.hover)
87
82
  }
88
83
  }
89
84
  },
@@ -199,14 +194,28 @@ export var sisccTheme = function sisccTheme(_ref) {
199
194
  fontFamily: "'Segoe UI'",
200
195
  fontSize: 12
201
196
  },
202
- annotation: { fontSize: 11 },
203
- axis: { color: '#575757' },
204
- axisLegend: { color: '#7A7A7A' },
205
- legend: { fontSize: 14 },
206
- mapLegend: { color: '#575757', fontSize: 10 },
197
+ annotation: {
198
+ fontSize: 11
199
+ },
200
+ axis: {
201
+ color: '#575757'
202
+ },
203
+ axisLegend: {
204
+ color: '#7A7A7A'
205
+ },
206
+ legend: {
207
+ fontSize: 14
208
+ },
209
+ mapLegend: {
210
+ color: '#575757',
211
+ fontSize: 10
212
+ },
207
213
  tooltip: {
208
214
  primary: {},
209
- secondary: { fontSize: 16, fontWeight: 'bold' }
215
+ secondary: {
216
+ fontSize: 16,
217
+ fontWeight: 'bold'
218
+ }
210
219
  }
211
220
  },
212
221
  chartsConfig: {
@@ -316,7 +325,6 @@ export var sisccTheme = function sisccTheme(_ref) {
316
325
  }
317
326
  };
318
327
  };
319
-
320
328
  export var T4_BREAKPOINTS = {
321
329
  xs: 120,
322
330
  xs2: 250,
package/es/utils.js CHANGED
@@ -1,5 +1,4 @@
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
-
1
+ import _extends from "/builds/sis-cc/.stat-suite/dotstatsuite-visions/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/extends";
3
2
  import React from 'react';
4
3
  import * as R from 'ramda';
5
4
  import dateFns from 'date-fns';
@@ -16,51 +15,54 @@ var spotlightHandler = function spotlightHandler(_ref) {
16
15
  };
17
16
  };
18
17
 
19
- export var reduceChildren = function reduceChildren(node, itemsIndexById) {
20
- var func = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : R.flip(R.prepend);
21
- var acc = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
18
+ export var reduceChildren = function reduceChildren(node, itemsIndexById, func, acc) {
19
+ if (func === void 0) {
20
+ func = R.flip(R.prepend);
21
+ }
22
+
23
+ if (acc === void 0) {
24
+ acc = [];
25
+ }
22
26
 
23
27
  if (R.isNil(node.parentId)) return acc;
24
28
  var nextNode = R.prop(node.parentId)(itemsIndexById);
25
29
  if (R.isNil(nextNode)) return acc;
26
30
  return reduceChildren(nextNode, itemsIndexById, func, func(acc, nextNode));
27
31
  };
28
-
29
32
  export var spotlightScopeListEngine = function spotlightScopeListEngine(_ref2) {
30
33
  var _ref2$term = _ref2.term,
31
- term = _ref2$term === undefined ? '' : _ref2$term,
34
+ term = _ref2$term === void 0 ? '' : _ref2$term,
32
35
  fields = _ref2.fields,
33
36
  items = _ref2.items,
34
37
  itemsById = _ref2.itemsById,
35
38
  noPath = _ref2.noPath,
36
39
  hasPath = _ref2.hasPath;
37
-
38
40
  var isSelected = R.pipe(R.prop('isSelected'), R.equals(true));
39
41
  var getFields = R.pipe(R.defaultTo([]), R.filter(isSelected), R.values);
40
-
41
42
  return R.reduce(function (acc, item) {
42
- if (spotlightHandler({ term: term, fields: getFields(fields) })(item)) {
43
+ if (spotlightHandler({
44
+ term: term,
45
+ fields: getFields(fields)
46
+ })(item)) {
43
47
  if (noPath) return [].concat(acc, [item]);
44
48
  return [].concat(acc, [_extends({}, item, {
45
49
  nodePath: hasPath ? R.propOr([], 'path')(item) : reduceChildren(item, itemsById)
46
50
  })]);
47
51
  }
52
+
48
53
  return acc;
49
54
  }, [])(items);
50
55
  };
51
-
52
56
  export var withBlank = function withBlank(func) {
53
57
  return function (Component) {
54
58
  return function (props) {
55
59
  if (R.pipe(func, R.prop('isBlank'))(props)) return null;
56
- return React.createElement(Component, props);
60
+ return /*#__PURE__*/React.createElement(Component, props);
57
61
  };
58
62
  };
59
63
  };
60
-
61
64
  export var getLight = R.path(['palette', 'tertiary', 'light']);
62
65
  export var getDark = R.path(['palette', 'tertiary', 'dark']);
63
-
64
66
  export var getIsRtl = function getIsRtl(theme) {
65
67
  return R.equals('rtl', R.prop('direction', theme));
66
68
  };
@@ -1,70 +1,50 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
- exports.__esModule = true;
4
- exports.styles = 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; };
7
-
8
- var _react = require('react');
9
-
10
- var _react2 = _interopRequireDefault(_react);
11
-
12
- var _propTypes = require('prop-types');
13
-
14
- var _propTypes2 = _interopRequireDefault(_propTypes);
15
-
16
- var _clsx = require('clsx');
17
-
18
- var _clsx2 = _interopRequireDefault(_clsx);
19
-
20
- var _styles = require('@material-ui/core/styles');
3
+ var _interopRequireDefault = require("/builds/sis-cc/.stat-suite/dotstatsuite-visions/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/interopRequireDefault");
21
4
 
22
- var _Paper = require('@material-ui/core/Paper');
23
-
24
- var _Paper2 = _interopRequireDefault(_Paper);
25
-
26
- var _CheckCircleOutlineOutlined = require('@material-ui/icons/CheckCircleOutlineOutlined');
5
+ exports.__esModule = true;
6
+ exports.styles = exports.default = void 0;
27
7
 
28
- var _CheckCircleOutlineOutlined2 = _interopRequireDefault(_CheckCircleOutlineOutlined);
8
+ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("/builds/sis-cc/.stat-suite/dotstatsuite-visions/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"));
29
9
 
30
- var _ReportProblemOutlined = require('@material-ui/icons/ReportProblemOutlined');
10
+ var _extends2 = _interopRequireDefault(require("/builds/sis-cc/.stat-suite/dotstatsuite-visions/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/extends"));
31
11
 
32
- var _ReportProblemOutlined2 = _interopRequireDefault(_ReportProblemOutlined);
12
+ var _react = _interopRequireDefault(require("react"));
33
13
 
34
- var _ErrorOutline = require('@material-ui/icons/ErrorOutline');
14
+ var _clsx = _interopRequireDefault(require("clsx"));
35
15
 
36
- var _ErrorOutline2 = _interopRequireDefault(_ErrorOutline);
16
+ var _styles = require("@material-ui/core/styles");
37
17
 
38
- var _InfoOutlined = require('@material-ui/icons/InfoOutlined');
18
+ var _Paper = _interopRequireDefault(require("@material-ui/core/Paper"));
39
19
 
40
- var _InfoOutlined2 = _interopRequireDefault(_InfoOutlined);
20
+ var _CheckCircleOutlineOutlined = _interopRequireDefault(require("@material-ui/icons/CheckCircleOutlineOutlined"));
41
21
 
42
- var _Close = require('@material-ui/icons/Close');
22
+ var _ReportProblemOutlined = _interopRequireDefault(require("@material-ui/icons/ReportProblemOutlined"));
43
23
 
44
- var _Close2 = _interopRequireDefault(_Close);
24
+ var _ErrorOutline = _interopRequireDefault(require("@material-ui/icons/ErrorOutline"));
45
25
 
46
- var _IconButton = require('@material-ui/core/IconButton');
26
+ var _InfoOutlined = _interopRequireDefault(require("@material-ui/icons/InfoOutlined"));
47
27
 
48
- var _IconButton2 = _interopRequireDefault(_IconButton);
28
+ var _Close = _interopRequireDefault(require("@material-ui/icons/Close"));
49
29
 
50
- var _utils = require('@material-ui/core/utils');
30
+ var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
51
31
 
52
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
32
+ var _utils = require("@material-ui/core/utils");
53
33
 
54
- 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; }
34
+ var _excluded = ["action", "children", "classes", "className", "closeText", "color", "icon", "iconMapping", "onClose", "role", "severity", "variant"];
55
35
 
56
- var styles = exports.styles = function styles(theme) {
36
+ var styles = function styles(theme) {
57
37
  var getColor = theme.palette.type === 'light' ? _styles.darken : _styles.lighten;
58
38
  var getBackgroundColor = theme.palette.type === 'light' ? _styles.lighten : _styles.darken;
59
-
60
39
  return {
61
40
  /* Styles applied to the root element. */
62
- root: _extends({}, theme.typography.body2, {
41
+ root: (0, _extends2.default)({}, theme.typography.body2, {
63
42
  borderRadius: theme.shape.borderRadius,
64
43
  backgroundColor: 'transparent',
65
44
  display: 'flex',
66
45
  padding: '6px 16px'
67
46
  }),
47
+
68
48
  /* Styles applied to the root element if `variant="standard"` and `color="success"`. */
69
49
  standardSuccess: {
70
50
  color: getColor(theme.palette.success.main, 0.6),
@@ -73,6 +53,7 @@ var styles = exports.styles = function styles(theme) {
73
53
  color: theme.palette.success.main
74
54
  }
75
55
  },
56
+
76
57
  /* Styles applied to the root element if `variant="standard"` and `color="info"`. */
77
58
  standardInfo: {
78
59
  color: getColor(theme.palette.info.main, 0.6),
@@ -81,6 +62,7 @@ var styles = exports.styles = function styles(theme) {
81
62
  color: theme.palette.info.main
82
63
  }
83
64
  },
65
+
84
66
  /* Styles applied to the root element if `variant="standard"` and `color="warning"`. */
85
67
  standardWarning: {
86
68
  color: getColor(theme.palette.warning.main, 0.6),
@@ -89,6 +71,7 @@ var styles = exports.styles = function styles(theme) {
89
71
  color: theme.palette.warning.main
90
72
  }
91
73
  },
74
+
92
75
  /* Styles applied to the root element if `variant="standard"` and `color="error"`. */
93
76
  standardError: {
94
77
  color: getColor(theme.palette.error.main, 0.6),
@@ -97,62 +80,71 @@ var styles = exports.styles = function styles(theme) {
97
80
  color: theme.palette.error.main
98
81
  }
99
82
  },
83
+
100
84
  /* Styles applied to the root element if `variant="outlined"` and `color="success"`. */
101
85
  outlinedSuccess: {
102
86
  color: getColor(theme.palette.success.main, 0.6),
103
- border: '1px solid ' + theme.palette.success.main,
87
+ border: "1px solid " + theme.palette.success.main,
104
88
  '& $icon': {
105
89
  color: theme.palette.success.main
106
90
  }
107
91
  },
92
+
108
93
  /* Styles applied to the root element if `variant="outlined"` and `color="info"`. */
109
94
  outlinedInfo: {
110
95
  color: getColor(theme.palette.info.main, 0.6),
111
- border: '1px solid ' + theme.palette.info.main,
96
+ border: "1px solid " + theme.palette.info.main,
112
97
  '& $icon': {
113
98
  color: theme.palette.info.main
114
99
  }
115
100
  },
101
+
116
102
  /* Styles applied to the root element if `variant="outlined"` and `color="warning"`. */
117
103
  outlinedWarning: {
118
104
  color: getColor(theme.palette.warning.main, 0.6),
119
- border: '1px solid ' + theme.palette.warning.main,
105
+ border: "1px solid " + theme.palette.warning.main,
120
106
  '& $icon': {
121
107
  color: theme.palette.warning.main
122
108
  }
123
109
  },
110
+
124
111
  /* Styles applied to the root element if `variant="outlined"` and `color="error"`. */
125
112
  outlinedError: {
126
113
  color: getColor(theme.palette.error.main, 0.6),
127
- border: '1px solid ' + theme.palette.error.main,
114
+ border: "1px solid " + theme.palette.error.main,
128
115
  '& $icon': {
129
116
  color: theme.palette.error.main
130
117
  }
131
118
  },
119
+
132
120
  /* Styles applied to the root element if `variant="filled"` and `color="success"`. */
133
121
  filledSuccess: {
134
122
  color: '#fff',
135
123
  fontWeight: theme.typography.fontWeightMedium,
136
124
  backgroundColor: theme.palette.success.main
137
125
  },
126
+
138
127
  /* Styles applied to the root element if `variant="filled"` and `color="info"`. */
139
128
  filledInfo: {
140
129
  color: '#fff',
141
130
  fontWeight: theme.typography.fontWeightMedium,
142
131
  backgroundColor: theme.palette.info.main
143
132
  },
133
+
144
134
  /* Styles applied to the root element if `variant="filled"` and `color="warning"`. */
145
135
  filledWarning: {
146
136
  color: '#fff',
147
137
  fontWeight: theme.typography.fontWeightMedium,
148
138
  backgroundColor: theme.palette.warning.main
149
139
  },
140
+
150
141
  /* Styles applied to the root element if `variant="filled"` and `color="error"`. */
151
142
  filledError: {
152
143
  color: '#fff',
153
144
  fontWeight: theme.typography.fontWeightMedium,
154
145
  backgroundColor: theme.palette.error.main
155
146
  },
147
+
156
148
  /* Styles applied to the icon wrapper element. */
157
149
  icon: {
158
150
  marginRight: 12,
@@ -161,6 +153,7 @@ var styles = exports.styles = function styles(theme) {
161
153
  fontSize: 22,
162
154
  opacity: 0.9
163
155
  },
156
+
164
157
  /* Styles applied to the message wrapper element. */
165
158
  message: {
166
159
  padding: '8px 0',
@@ -168,6 +161,7 @@ var styles = exports.styles = function styles(theme) {
168
161
  flexDirection: 'column',
169
162
  justifyContent: 'center'
170
163
  },
164
+
171
165
  /* Styles applied to the action wrapper element if `action` is provided. */
172
166
  action: {
173
167
  display: 'flex',
@@ -179,143 +173,68 @@ var styles = exports.styles = function styles(theme) {
179
173
  };
180
174
  };
181
175
 
176
+ exports.styles = styles;
182
177
  var defaultIconMapping = {
183
- success: _react2.default.createElement(_CheckCircleOutlineOutlined2.default, { fontSize: 'inherit' }),
184
- warning: _react2.default.createElement(_ReportProblemOutlined2.default, { fontSize: 'inherit' }),
185
- error: _react2.default.createElement(_ErrorOutline2.default, { fontSize: 'inherit' }),
186
- info: _react2.default.createElement(_InfoOutlined2.default, { fontSize: 'inherit' })
178
+ success: /*#__PURE__*/_react.default.createElement(_CheckCircleOutlineOutlined.default, {
179
+ fontSize: "inherit"
180
+ }),
181
+ warning: /*#__PURE__*/_react.default.createElement(_ReportProblemOutlined.default, {
182
+ fontSize: "inherit"
183
+ }),
184
+ error: /*#__PURE__*/_react.default.createElement(_ErrorOutline.default, {
185
+ fontSize: "inherit"
186
+ }),
187
+ info: /*#__PURE__*/_react.default.createElement(_InfoOutlined.default, {
188
+ fontSize: "inherit"
189
+ })
187
190
  };
188
191
 
189
- var Alert = _react2.default.forwardRef(function Alert(props, ref) {
192
+ var Alert = _react.default.forwardRef(function Alert(props, ref) {
190
193
  var action = props.action,
191
194
  children = props.children,
192
195
  classes = props.classes,
193
196
  className = props.className,
194
197
  _props$closeText = props.closeText,
195
- closeText = _props$closeText === undefined ? 'Close' : _props$closeText,
198
+ closeText = _props$closeText === void 0 ? 'Close' : _props$closeText,
196
199
  color = props.color,
197
200
  icon = props.icon,
198
201
  _props$iconMapping = props.iconMapping,
199
- iconMapping = _props$iconMapping === undefined ? defaultIconMapping : _props$iconMapping,
202
+ iconMapping = _props$iconMapping === void 0 ? defaultIconMapping : _props$iconMapping,
200
203
  onClose = props.onClose,
201
204
  _props$role = props.role,
202
- role = _props$role === undefined ? 'alert' : _props$role,
205
+ role = _props$role === void 0 ? 'alert' : _props$role,
203
206
  _props$severity = props.severity,
204
- severity = _props$severity === undefined ? 'success' : _props$severity,
207
+ severity = _props$severity === void 0 ? 'success' : _props$severity,
205
208
  _props$variant = props.variant,
206
- variant = _props$variant === undefined ? 'standard' : _props$variant,
207
- other = _objectWithoutProperties(props, ['action', 'children', 'classes', 'className', 'closeText', 'color', 'icon', 'iconMapping', 'onClose', 'role', 'severity', 'variant']);
208
-
209
- return _react2.default.createElement(
210
- _Paper2.default,
211
- _extends({
212
- role: role,
213
- square: true,
214
- elevation: 0,
215
- className: (0, _clsx2.default)(classes.root, classes['' + variant + (0, _utils.capitalize)(color || severity)], className),
216
- ref: ref
217
- }, other),
218
- icon !== false ? _react2.default.createElement(
219
- 'div',
220
- { className: classes.icon },
221
- icon || iconMapping[severity] || defaultIconMapping[severity]
222
- ) : null,
223
- _react2.default.createElement(
224
- 'div',
225
- { className: classes.message },
226
- children
227
- ),
228
- action != null ? _react2.default.createElement(
229
- 'div',
230
- { className: classes.action },
231
- action
232
- ) : null,
233
- action == null && onClose ? _react2.default.createElement(
234
- 'div',
235
- { className: classes.action },
236
- _react2.default.createElement(
237
- _IconButton2.default,
238
- {
239
- size: 'small',
240
- 'aria-label': closeText,
241
- title: closeText,
242
- color: 'inherit',
243
- onClick: onClose
244
- },
245
- _react2.default.createElement(_Close2.default, { fontSize: 'small' })
246
- )
247
- ) : null
248
- );
209
+ variant = _props$variant === void 0 ? 'standard' : _props$variant,
210
+ other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
211
+ return /*#__PURE__*/_react.default.createElement(_Paper.default, (0, _extends2.default)({
212
+ role: role,
213
+ square: true,
214
+ elevation: 0,
215
+ className: (0, _clsx.default)(classes.root, classes["" + variant + (0, _utils.capitalize)(color || severity)], className),
216
+ ref: ref
217
+ }, other), icon !== false ? /*#__PURE__*/_react.default.createElement("div", {
218
+ className: classes.icon
219
+ }, icon || iconMapping[severity] || defaultIconMapping[severity]) : null, /*#__PURE__*/_react.default.createElement("div", {
220
+ className: classes.message
221
+ }, children), action != null ? /*#__PURE__*/_react.default.createElement("div", {
222
+ className: classes.action
223
+ }, action) : null, action == null && onClose ? /*#__PURE__*/_react.default.createElement("div", {
224
+ className: classes.action
225
+ }, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
226
+ size: "small",
227
+ "aria-label": closeText,
228
+ title: closeText,
229
+ color: "inherit",
230
+ onClick: onClose
231
+ }, /*#__PURE__*/_react.default.createElement(_Close.default, {
232
+ fontSize: "small"
233
+ }))) : null);
249
234
  });
250
235
 
251
- Alert.propTypes = process.env.NODE_ENV !== "production" ? {
252
- // ----------------------------- Warning --------------------------------
253
- // | These PropTypes are generated from the TypeScript type definitions |
254
- // | To update them edit the d.ts file and run "yarn proptypes" |
255
- // ----------------------------------------------------------------------
256
- /**
257
- * The action to display. It renders after the message, at the end of the alert.
258
- */
259
- action: _propTypes2.default.node,
260
- /**
261
- * The content of the component.
262
- */
263
- children: _propTypes2.default.node,
264
- /**
265
- * Override or extend the styles applied to the component.
266
- * See [CSS API](#css) below for more details.
267
- */
268
- classes: _propTypes2.default.object,
269
- /**
270
- * @ignore
271
- */
272
- className: _propTypes2.default.string,
273
- /**
274
- * Override the default label for the *close popup* icon button.
275
- *
276
- * For localization purposes, you can use the provided [translations](/guides/localization/).
277
- */
278
- closeText: _propTypes2.default.string,
279
- /**
280
- * The main color for the alert. Unless provided, the value is taken from the `severity` prop.
281
- */
282
- color: _propTypes2.default.oneOf(['error', 'info', 'success', 'warning']),
283
- /**
284
- * Override the icon displayed before the children.
285
- * Unless provided, the icon is mapped to the value of the `severity` prop.
286
- */
287
- icon: _propTypes2.default.node,
288
- /**
289
- * The component maps the `severity` prop to a range of different icons,
290
- * for instance success to `<SuccessOutlined>`.
291
- * If you wish to change this mapping, you can provide your own.
292
- * Alternatively, you can use the `icon` prop to override the icon displayed.
293
- */
294
- iconMapping: _propTypes2.default.shape({
295
- error: _propTypes2.default.node,
296
- info: _propTypes2.default.node,
297
- success: _propTypes2.default.node,
298
- warning: _propTypes2.default.node
299
- }),
300
- /**
301
- * Callback fired when the component requests to be closed.
302
- * When provided and no `action` prop is set, a close icon button is displayed that triggers the callback when clicked.
303
- *
304
- * @param {object} event The event source of the callback.
305
- */
306
- onClose: _propTypes2.default.func,
307
- /**
308
- * The ARIA role attribute of the element.
309
- */
310
- role: _propTypes2.default.string,
311
- /**
312
- * The severity of the alert. This defines the color and icon used.
313
- */
314
- severity: _propTypes2.default.oneOf(['error', 'info', 'success', 'warning']),
315
- /**
316
- * The variant to use.
317
- */
318
- variant: _propTypes2.default.oneOf(['filled', 'outlined', 'standard'])
319
- } : {};
320
-
321
- exports.default = (0, _styles.withStyles)(styles, { name: 'MuiAlert' })(Alert);
236
+ var _default = (0, _styles.withStyles)(styles, {
237
+ name: 'MuiAlert'
238
+ })(Alert);
239
+
240
+ exports.default = _default;
@@ -1,16 +1,11 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
- exports.__esModule = true;
4
-
5
- var _Alert = require('./Alert');
3
+ var _interopRequireDefault = require("/builds/sis-cc/.stat-suite/dotstatsuite-visions/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/interopRequireDefault");
6
4
 
7
- Object.defineProperty(exports, 'default', {
8
- enumerable: true,
9
- get: function get() {
10
- return _interopRequireDefault(_Alert).default;
11
- }
12
- });
5
+ exports.__esModule = true;
6
+ exports.default = void 0;
13
7
 
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
8
+ var _Alert = _interopRequireDefault(require("./Alert"));
15
9
 
16
- module.exports = exports['default'];
10
+ exports.default = _Alert.default;
11
+ module.exports = exports.default;