@hipay/hipay-material-ui 1.0.0-beta.18 → 1.0.0-beta.2

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 (402) hide show
  1. package/HiCheckbox/HiCheckbox.js +1 -4
  2. package/HiChip/HiChip.js +4 -4
  3. package/HiChip/HiChipSwitch.js +4 -11
  4. package/HiColoredLabel/HiColoredLabel.js +3 -9
  5. package/HiDatePicker/HiDatePicker.js +30 -34
  6. package/HiDatePicker/HiDateRangePicker.js +33 -76
  7. package/HiDatePicker/HiDateRangeSelector.js +13 -33
  8. package/HiDatePicker/ListPicker.js +7 -32
  9. package/HiDatePicker/Overlays/CustomOverlayLayout.js +1 -3
  10. package/HiDatePicker/Overlays/MonthPickerOverlay.js +1 -5
  11. package/HiDatePicker/Overlays/Overlay.js +4 -22
  12. package/HiDatePicker/Overlays/YearPickerOverlay.js +1 -2
  13. package/HiDatePicker/stylesheet.js +0 -7
  14. package/HiForm/HiFormControl.js +31 -39
  15. package/HiForm/HiInput.js +18 -39
  16. package/HiForm/HiSearchField.js +2 -2
  17. package/HiForm/index.js +0 -18
  18. package/HiPins/HiPins.js +1 -0
  19. package/HiSelect/HiSelect.js +353 -400
  20. package/HiSelect/HiSelectField.js +6 -8
  21. package/HiSelect/HiSuggestSelect.js +47 -27
  22. package/HiSelect/HiSuggestSelectField.js +80 -88
  23. package/HiSelect/SelectInput.js +23 -34
  24. package/HiSelectableList/HiSelectableList.js +3 -9
  25. package/HiSelectableList/HiSelectableListItem.js +55 -96
  26. package/HiSwitch/HiSwitchState.js +1 -1
  27. package/HiSwitch/index.js +0 -6
  28. package/HiTable/BodyCellBuilder.js +97 -97
  29. package/HiTable/BodyCells/CellCountry.js +36 -11
  30. package/HiTable/BodyCells/CellIcon.js +20 -29
  31. package/HiTable/BodyCells/CellImage.js +22 -43
  32. package/HiTable/BodyCells/CellLayout.js +19 -25
  33. package/HiTable/BodyCells/CellNumeric.js +2 -7
  34. package/HiTable/BodyCells/CellSentinel.js +17 -26
  35. package/HiTable/BodyCells/CellStatus.js +2 -6
  36. package/HiTable/BodyCells/CellText.js +1 -2
  37. package/HiTable/BodyCells/CellThirdPartySecurity.js +22 -45
  38. package/HiTable/BodyRow.js +57 -78
  39. package/HiTable/ColumnFilter.js +15 -28
  40. package/HiTable/HeaderCell.js +16 -20
  41. package/HiTable/HiTable.js +11 -61
  42. package/HiTable/HiTableBody.js +14 -46
  43. package/HiTable/HiTableContextMenu.js +3 -7
  44. package/HiTable/HiTableFooterScroll.js +1 -1
  45. package/HiTable/HiTableHead.js +7 -24
  46. package/HiTable/OrderColumns.js +2 -6
  47. package/HiTopBar/HiTopBar.js +117 -37
  48. package/es/HiCheckbox/HiCheckbox.js +1 -4
  49. package/es/HiChip/HiChip.js +4 -4
  50. package/es/HiChip/HiChipSwitch.js +4 -11
  51. package/es/HiColoredLabel/HiColoredLabel.js +4 -9
  52. package/es/HiDatePicker/HiDatePicker.js +25 -30
  53. package/es/HiDatePicker/HiDateRangePicker.js +32 -72
  54. package/es/HiDatePicker/HiDateRangeSelector.js +14 -34
  55. package/es/HiDatePicker/ListPicker.js +20 -39
  56. package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +1 -3
  57. package/es/HiDatePicker/Overlays/MonthPickerOverlay.js +1 -5
  58. package/es/HiDatePicker/Overlays/Overlay.js +4 -18
  59. package/es/HiDatePicker/Overlays/YearPickerOverlay.js +1 -2
  60. package/es/HiDatePicker/stylesheet.js +0 -7
  61. package/es/HiForm/HiFormControl.js +18 -32
  62. package/es/HiForm/HiInput.js +17 -34
  63. package/es/HiForm/HiSearchField.js +2 -2
  64. package/es/HiForm/index.js +1 -3
  65. package/es/HiPins/HiPins.js +1 -0
  66. package/es/HiSelect/HiSelect.js +324 -375
  67. package/es/HiSelect/HiSelectField.js +7 -9
  68. package/es/HiSelect/HiSuggestSelect.js +39 -26
  69. package/es/HiSelect/HiSuggestSelectField.js +69 -77
  70. package/es/HiSelect/SelectInput.js +23 -44
  71. package/es/HiSelectableList/HiSelectableList.js +4 -10
  72. package/es/HiSelectableList/HiSelectableListItem.js +55 -91
  73. package/es/HiSwitch/HiSwitchState.js +1 -1
  74. package/es/HiSwitch/index.js +0 -1
  75. package/es/HiTable/BodyCellBuilder.js +98 -96
  76. package/es/HiTable/BodyCells/CellCountry.js +35 -10
  77. package/es/HiTable/BodyCells/CellIcon.js +9 -18
  78. package/es/HiTable/BodyCells/CellImage.js +23 -42
  79. package/es/HiTable/BodyCells/CellLayout.js +21 -27
  80. package/es/HiTable/BodyCells/CellNumeric.js +2 -6
  81. package/es/HiTable/BodyCells/CellSentinel.js +9 -20
  82. package/es/HiTable/BodyCells/CellStatus.js +2 -6
  83. package/es/HiTable/BodyCells/CellText.js +1 -2
  84. package/es/HiTable/BodyCells/CellThirdPartySecurity.js +18 -42
  85. package/es/HiTable/BodyRow.js +56 -79
  86. package/es/HiTable/ColumnFilter.js +9 -15
  87. package/es/HiTable/HeaderCell.js +16 -20
  88. package/es/HiTable/HiTable.js +12 -59
  89. package/es/HiTable/HiTableBody.js +11 -42
  90. package/es/HiTable/HiTableContextMenu.js +3 -7
  91. package/es/HiTable/HiTableFooterScroll.js +1 -1
  92. package/es/HiTable/HiTableHead.js +7 -19
  93. package/es/HiTable/OrderColumns.js +2 -6
  94. package/es/HiTopBar/HiTopBar.js +108 -40
  95. package/es/styles/createHiMuiTheme.js +0 -11
  96. package/es/utils/hiHelpers.js +5 -6
  97. package/index.es.js +1 -1
  98. package/index.js +1 -1
  99. package/package.json +44 -45
  100. package/styles/createHiMuiTheme.js +0 -11
  101. package/umd/hipay-material-ui.development.js +43603 -87235
  102. package/umd/hipay-material-ui.production.min.js +5 -5
  103. package/utils/hiHelpers.js +4 -6
  104. package/HI-CHANGELOG.md +0 -58
  105. package/HiAlertModal/HiAlertModal.js +0 -247
  106. package/HiAlertModal/index.js +0 -16
  107. package/HiBreadcrumb/HiBreadcrumb.js +0 -149
  108. package/HiBreadcrumb/HiStep.js +0 -159
  109. package/HiBreadcrumb/HiStepConnector.js +0 -207
  110. package/HiBreadcrumb/HiStepContent.js +0 -122
  111. package/HiBreadcrumb/HiStepIcon.js +0 -191
  112. package/HiBreadcrumb/HiStepLabel.js +0 -248
  113. package/HiBreadcrumb/HiStepper.js +0 -106
  114. package/HiBreadcrumb/index.js +0 -16
  115. package/HiDotsStepper/HiDot.js +0 -151
  116. package/HiDotsStepper/HiDotsStepper.js +0 -146
  117. package/HiDotsStepper/index.js +0 -16
  118. package/HiExpansionPanel/HiExpansionPanel.js +0 -231
  119. package/HiExpansionPanel/index.js +0 -16
  120. package/HiForm/HiAddressField.js +0 -204
  121. package/HiForm/HiSlider.js +0 -399
  122. package/HiPdfReader/HiPdfReader.js +0 -282
  123. package/HiPdfReader/index.js +0 -16
  124. package/HiTable/HiTableFooter.js +0 -131
  125. package/es/HiAlertModal/HiAlertModal.js +0 -189
  126. package/es/HiAlertModal/index.js +0 -1
  127. package/es/HiBreadcrumb/HiBreadcrumb.js +0 -81
  128. package/es/HiBreadcrumb/HiStep.js +0 -94
  129. package/es/HiBreadcrumb/HiStepConnector.js +0 -143
  130. package/es/HiBreadcrumb/HiStepContent.js +0 -63
  131. package/es/HiBreadcrumb/HiStepIcon.js +0 -149
  132. package/es/HiBreadcrumb/HiStepLabel.js +0 -197
  133. package/es/HiBreadcrumb/HiStepper.js +0 -46
  134. package/es/HiBreadcrumb/index.js +0 -1
  135. package/es/HiDotsStepper/HiDot.js +0 -92
  136. package/es/HiDotsStepper/HiDotsStepper.js +0 -83
  137. package/es/HiDotsStepper/index.js +0 -1
  138. package/es/HiExpansionPanel/HiExpansionPanel.js +0 -170
  139. package/es/HiExpansionPanel/index.js +0 -1
  140. package/es/HiForm/HiAddressField.js +0 -142
  141. package/es/HiForm/HiSlider.js +0 -309
  142. package/es/HiPdfReader/HiPdfReader.js +0 -198
  143. package/es/HiPdfReader/index.js +0 -1
  144. package/es/HiTable/HiTableFooter.js +0 -74
  145. package/hmu/images/countries/ad.svg +0 -151
  146. package/hmu/images/countries/ae.svg +0 -6
  147. package/hmu/images/countries/af.svg +0 -83
  148. package/hmu/images/countries/ag.svg +0 -15
  149. package/hmu/images/countries/ai.svg +0 -767
  150. package/hmu/images/countries/al.svg +0 -5
  151. package/hmu/images/countries/am.svg +0 -5
  152. package/hmu/images/countries/ao.svg +0 -13
  153. package/hmu/images/countries/aq.svg +0 -6
  154. package/hmu/images/countries/ar.svg +0 -32
  155. package/hmu/images/countries/as.svg +0 -33
  156. package/hmu/images/countries/at.svg +0 -6
  157. package/hmu/images/countries/au.svg +0 -9
  158. package/hmu/images/countries/aw.svg +0 -186
  159. package/hmu/images/countries/ax.svg +0 -18
  160. package/hmu/images/countries/az.svg +0 -8
  161. package/hmu/images/countries/ba.svg +0 -12
  162. package/hmu/images/countries/bb.svg +0 -6
  163. package/hmu/images/countries/bd.svg +0 -4
  164. package/hmu/images/countries/be.svg +0 -7
  165. package/hmu/images/countries/bf.svg +0 -7
  166. package/hmu/images/countries/bg.svg +0 -7
  167. package/hmu/images/countries/bh.svg +0 -11
  168. package/hmu/images/countries/bi.svg +0 -15
  169. package/hmu/images/countries/bj.svg +0 -14
  170. package/hmu/images/countries/bl.svg +0 -7
  171. package/hmu/images/countries/bm.svg +0 -99
  172. package/hmu/images/countries/bn.svg +0 -36
  173. package/hmu/images/countries/bo.svg +0 -686
  174. package/hmu/images/countries/bq.svg +0 -5
  175. package/hmu/images/countries/br.svg +0 -45
  176. package/hmu/images/countries/bs.svg +0 -13
  177. package/hmu/images/countries/bt.svg +0 -89
  178. package/hmu/images/countries/bv.svg +0 -13
  179. package/hmu/images/countries/bw.svg +0 -7
  180. package/hmu/images/countries/by.svg +0 -61
  181. package/hmu/images/countries/bz.svg +0 -146
  182. package/hmu/images/countries/ca.svg +0 -4
  183. package/hmu/images/countries/cc.svg +0 -19
  184. package/hmu/images/countries/cd.svg +0 -5
  185. package/hmu/images/countries/cf.svg +0 -15
  186. package/hmu/images/countries/cg.svg +0 -12
  187. package/hmu/images/countries/ch.svg +0 -9
  188. package/hmu/images/countries/ci.svg +0 -7
  189. package/hmu/images/countries/ck.svg +0 -9
  190. package/hmu/images/countries/cl.svg +0 -13
  191. package/hmu/images/countries/cm.svg +0 -15
  192. package/hmu/images/countries/cn.svg +0 -11
  193. package/hmu/images/countries/co.svg +0 -7
  194. package/hmu/images/countries/cr.svg +0 -7
  195. package/hmu/images/countries/cu.svg +0 -13
  196. package/hmu/images/countries/cv.svg +0 -13
  197. package/hmu/images/countries/cw.svg +0 -14
  198. package/hmu/images/countries/cx.svg +0 -15
  199. package/hmu/images/countries/cy.svg +0 -6
  200. package/hmu/images/countries/cz.svg +0 -12
  201. package/hmu/images/countries/de.svg +0 -5
  202. package/hmu/images/countries/dj.svg +0 -13
  203. package/hmu/images/countries/dk.svg +0 -5
  204. package/hmu/images/countries/dm.svg +0 -152
  205. package/hmu/images/countries/do.svg +0 -6745
  206. package/hmu/images/countries/dz.svg +0 -5
  207. package/hmu/images/countries/ec.svg +0 -141
  208. package/hmu/images/countries/ee.svg +0 -7
  209. package/hmu/images/countries/eg.svg +0 -38
  210. package/hmu/images/countries/eh.svg +0 -15
  211. package/hmu/images/countries/er.svg +0 -8
  212. package/hmu/images/countries/es-ct.svg +0 -4
  213. package/hmu/images/countries/es.svg +0 -581
  214. package/hmu/images/countries/et.svg +0 -14
  215. package/hmu/images/countries/eu.svg +0 -28
  216. package/hmu/images/countries/fi.svg +0 -5
  217. package/hmu/images/countries/fj.svg +0 -124
  218. package/hmu/images/countries/fk.svg +0 -90
  219. package/hmu/images/countries/fm.svg +0 -11
  220. package/hmu/images/countries/fo.svg +0 -12
  221. package/hmu/images/countries/fr.svg +0 -7
  222. package/hmu/images/countries/ga.svg +0 -7
  223. package/hmu/images/countries/gb-eng.svg +0 -5
  224. package/hmu/images/countries/gb-nir.svg +0 -137
  225. package/hmu/images/countries/gb-sct.svg +0 -4
  226. package/hmu/images/countries/gb-wls.svg +0 -9
  227. package/hmu/images/countries/gb.svg +0 -15
  228. package/hmu/images/countries/gd.svg +0 -27
  229. package/hmu/images/countries/ge.svg +0 -6
  230. package/hmu/images/countries/gf.svg +0 -5
  231. package/hmu/images/countries/gg.svg +0 -9
  232. package/hmu/images/countries/gh.svg +0 -6
  233. package/hmu/images/countries/gi.svg +0 -33
  234. package/hmu/images/countries/gl.svg +0 -4
  235. package/hmu/images/countries/gm.svg +0 -14
  236. package/hmu/images/countries/gn.svg +0 -7
  237. package/hmu/images/countries/gp.svg +0 -7
  238. package/hmu/images/countries/gq.svg +0 -23
  239. package/hmu/images/countries/gr.svg +0 -22
  240. package/hmu/images/countries/gs.svg +0 -205
  241. package/hmu/images/countries/gt.svg +0 -204
  242. package/hmu/images/countries/gu.svg +0 -39
  243. package/hmu/images/countries/gw.svg +0 -13
  244. package/hmu/images/countries/gy.svg +0 -9
  245. package/hmu/images/countries/hk.svg +0 -32
  246. package/hmu/images/countries/hm.svg +0 -9
  247. package/hmu/images/countries/hn.svg +0 -18
  248. package/hmu/images/countries/hr.svg +0 -59
  249. package/hmu/images/countries/ht.svg +0 -122
  250. package/hmu/images/countries/hu.svg +0 -7
  251. package/hmu/images/countries/id.svg +0 -6
  252. package/hmu/images/countries/ie.svg +0 -7
  253. package/hmu/images/countries/il.svg +0 -14
  254. package/hmu/images/countries/im.svg +0 -36
  255. package/hmu/images/countries/in.svg +0 -25
  256. package/hmu/images/countries/io.svg +0 -148
  257. package/hmu/images/countries/iq.svg +0 -10
  258. package/hmu/images/countries/ir.svg +0 -219
  259. package/hmu/images/countries/is.svg +0 -12
  260. package/hmu/images/countries/it.svg +0 -7
  261. package/hmu/images/countries/je.svg +0 -32
  262. package/hmu/images/countries/jm.svg +0 -8
  263. package/hmu/images/countries/jo.svg +0 -16
  264. package/hmu/images/countries/jp.svg +0 -11
  265. package/hmu/images/countries/ke.svg +0 -23
  266. package/hmu/images/countries/kg.svg +0 -15
  267. package/hmu/images/countries/kh.svg +0 -69
  268. package/hmu/images/countries/ki.svg +0 -36
  269. package/hmu/images/countries/km.svg +0 -16
  270. package/hmu/images/countries/kn.svg +0 -14
  271. package/hmu/images/countries/kp.svg +0 -15
  272. package/hmu/images/countries/kr.svg +0 -24
  273. package/hmu/images/countries/kw.svg +0 -13
  274. package/hmu/images/countries/ky.svg +0 -63
  275. package/hmu/images/countries/kz.svg +0 -23
  276. package/hmu/images/countries/la.svg +0 -12
  277. package/hmu/images/countries/lb.svg +0 -15
  278. package/hmu/images/countries/lc.svg +0 -8
  279. package/hmu/images/countries/li.svg +0 -43
  280. package/hmu/images/countries/lk.svg +0 -22
  281. package/hmu/images/countries/lr.svg +0 -14
  282. package/hmu/images/countries/ls.svg +0 -8
  283. package/hmu/images/countries/lt.svg +0 -7
  284. package/hmu/images/countries/lu.svg +0 -5
  285. package/hmu/images/countries/lv.svg +0 -6
  286. package/hmu/images/countries/ly.svg +0 -13
  287. package/hmu/images/countries/ma.svg +0 -4
  288. package/hmu/images/countries/mc.svg +0 -6
  289. package/hmu/images/countries/md.svg +0 -72
  290. package/hmu/images/countries/me.svg +0 -118
  291. package/hmu/images/countries/mf.svg +0 -7
  292. package/hmu/images/countries/mg.svg +0 -7
  293. package/hmu/images/countries/mh.svg +0 -7
  294. package/hmu/images/countries/mk.svg +0 -5
  295. package/hmu/images/countries/ml.svg +0 -7
  296. package/hmu/images/countries/mm.svg +0 -16
  297. package/hmu/images/countries/mn.svg +0 -13
  298. package/hmu/images/countries/mo.svg +0 -9
  299. package/hmu/images/countries/mp.svg +0 -86
  300. package/hmu/images/countries/mq.svg +0 -7
  301. package/hmu/images/countries/mr.svg +0 -6
  302. package/hmu/images/countries/ms.svg +0 -39
  303. package/hmu/images/countries/mt.svg +0 -49
  304. package/hmu/images/countries/mu.svg +0 -8
  305. package/hmu/images/countries/mv.svg +0 -6
  306. package/hmu/images/countries/mw.svg +0 -10
  307. package/hmu/images/countries/mx.svg +0 -385
  308. package/hmu/images/countries/my.svg +0 -15
  309. package/hmu/images/countries/mz.svg +0 -21
  310. package/hmu/images/countries/na.svg +0 -16
  311. package/hmu/images/countries/nc.svg +0 -7
  312. package/hmu/images/countries/ne.svg +0 -6
  313. package/hmu/images/countries/nf.svg +0 -9
  314. package/hmu/images/countries/ng.svg +0 -6
  315. package/hmu/images/countries/ni.svg +0 -131
  316. package/hmu/images/countries/nl.svg +0 -7
  317. package/hmu/images/countries/no.svg +0 -7
  318. package/hmu/images/countries/np.svg +0 -14
  319. package/hmu/images/countries/nr.svg +0 -12
  320. package/hmu/images/countries/nu.svg +0 -26
  321. package/hmu/images/countries/nz.svg +0 -41
  322. package/hmu/images/countries/om.svg +0 -116
  323. package/hmu/images/countries/pa.svg +0 -14
  324. package/hmu/images/countries/pe.svg +0 -279
  325. package/hmu/images/countries/pf.svg +0 -19
  326. package/hmu/images/countries/pg.svg +0 -9
  327. package/hmu/images/countries/ph.svg +0 -28
  328. package/hmu/images/countries/pk.svg +0 -15
  329. package/hmu/images/countries/pl.svg +0 -6
  330. package/hmu/images/countries/pm.svg +0 -7
  331. package/hmu/images/countries/pn.svg +0 -62
  332. package/hmu/images/countries/pr.svg +0 -13
  333. package/hmu/images/countries/ps.svg +0 -15
  334. package/hmu/images/countries/pt.svg +0 -57
  335. package/hmu/images/countries/pw.svg +0 -11
  336. package/hmu/images/countries/py.svg +0 -157
  337. package/hmu/images/countries/qa.svg +0 -4
  338. package/hmu/images/countries/re.svg +0 -7
  339. package/hmu/images/countries/ro.svg +0 -7
  340. package/hmu/images/countries/rs.svg +0 -292
  341. package/hmu/images/countries/ru.svg +0 -7
  342. package/hmu/images/countries/rw.svg +0 -13
  343. package/hmu/images/countries/sa.svg +0 -26
  344. package/hmu/images/countries/sb.svg +0 -13
  345. package/hmu/images/countries/sc.svg +0 -14
  346. package/hmu/images/countries/sd.svg +0 -13
  347. package/hmu/images/countries/se.svg +0 -16
  348. package/hmu/images/countries/sg.svg +0 -13
  349. package/hmu/images/countries/sh.svg +0 -74
  350. package/hmu/images/countries/si.svg +0 -18
  351. package/hmu/images/countries/sj.svg +0 -7
  352. package/hmu/images/countries/sk.svg +0 -9
  353. package/hmu/images/countries/sl.svg +0 -7
  354. package/hmu/images/countries/sm.svg +0 -91
  355. package/hmu/images/countries/sn.svg +0 -8
  356. package/hmu/images/countries/so.svg +0 -11
  357. package/hmu/images/countries/sr.svg +0 -6
  358. package/hmu/images/countries/ss.svg +0 -8
  359. package/hmu/images/countries/st.svg +0 -16
  360. package/hmu/images/countries/sv.svg +0 -618
  361. package/hmu/images/countries/sx.svg +0 -56
  362. package/hmu/images/countries/sy.svg +0 -6
  363. package/hmu/images/countries/sz.svg +0 -45
  364. package/hmu/images/countries/tc.svg +0 -67
  365. package/hmu/images/countries/td.svg +0 -7
  366. package/hmu/images/countries/tf.svg +0 -15
  367. package/hmu/images/countries/tg.svg +0 -14
  368. package/hmu/images/countries/th.svg +0 -7
  369. package/hmu/images/countries/tj.svg +0 -22
  370. package/hmu/images/countries/tk.svg +0 -5
  371. package/hmu/images/countries/tl.svg +0 -13
  372. package/hmu/images/countries/tm.svg +0 -213
  373. package/hmu/images/countries/tn.svg +0 -13
  374. package/hmu/images/countries/to.svg +0 -10
  375. package/hmu/images/countries/tr.svg +0 -8
  376. package/hmu/images/countries/tt.svg +0 -5
  377. package/hmu/images/countries/tv.svg +0 -27
  378. package/hmu/images/countries/tw.svg +0 -14
  379. package/hmu/images/countries/tz.svg +0 -13
  380. package/hmu/images/countries/ua.svg +0 -6
  381. package/hmu/images/countries/ug.svg +0 -30
  382. package/hmu/images/countries/um.svg +0 -23
  383. package/hmu/images/countries/un.svg +0 -16
  384. package/hmu/images/countries/us.svg +0 -12
  385. package/hmu/images/countries/uy.svg +0 -28
  386. package/hmu/images/countries/uz.svg +0 -30
  387. package/hmu/images/countries/va.svg +0 -483
  388. package/hmu/images/countries/vc.svg +0 -8
  389. package/hmu/images/countries/ve.svg +0 -26
  390. package/hmu/images/countries/vg.svg +0 -133
  391. package/hmu/images/countries/vi.svg +0 -31
  392. package/hmu/images/countries/vn.svg +0 -11
  393. package/hmu/images/countries/vu.svg +0 -18
  394. package/hmu/images/countries/wf.svg +0 -7
  395. package/hmu/images/countries/ws.svg +0 -7
  396. package/hmu/images/countries/ye.svg +0 -7
  397. package/hmu/images/countries/yt.svg +0 -7
  398. package/hmu/images/countries/za.svg +0 -17
  399. package/hmu/images/countries/zm.svg +0 -27
  400. package/hmu/images/countries/zw.svg +0 -21
  401. package/hmu/images/hipay-white-logo.svg +0 -42
  402. package/hmu/images/logo_visa_75wx45h.gif +0 -0
@@ -185,7 +185,6 @@ var BodyRow = function (_React$PureComponent) {
185
185
  theme = _props.theme,
186
186
  row = _props.row,
187
187
  columns = _props.columns,
188
- lookupColumns = _props.lookupColumns,
189
188
  orderedColumns = _props.orderedColumns,
190
189
  selectable = _props.selectable,
191
190
  selected = _props.selected,
@@ -197,10 +196,11 @@ var BodyRow = function (_React$PureComponent) {
197
196
  sticky = _props.sticky,
198
197
  innerRow = _props.innerRow,
199
198
  isDetail = _props.isDetail,
200
- other = (0, _objectWithoutProperties3.default)(_props, ['classes', 'theme', 'row', 'columns', 'lookupColumns', 'orderedColumns', 'selectable', 'selected', 'onClick', 'view', 'dense', 'dateLocale', 'numberLocale', 'sticky', 'innerRow', 'isDetail']);
199
+ other = (0, _objectWithoutProperties3.default)(_props, ['classes', 'theme', 'row', 'columns', 'orderedColumns', 'selectable', 'selected', 'onClick', 'view', 'dense', 'dateLocale', 'numberLocale', 'sticky', 'innerRow', 'isDetail']);
201
200
  var style = this.state.style;
202
201
 
203
202
 
203
+ var firstCol = true;
204
204
  var unfixedCol = true;
205
205
 
206
206
  var rowStyle = (0, _extends3.default)({}, style, {
@@ -230,82 +230,67 @@ var BodyRow = function (_React$PureComponent) {
230
230
  key: row.rowId + '-left-cell',
231
231
  className: patchDivClass
232
232
  }),
233
- orderedColumns.map(function (colRef, index) {
234
-
235
- // Dynamic column settings (from OrderColumns)
233
+ orderedColumns.map(function (colRef) {
236
234
  var colRefId = colRef.colId,
237
235
  displayed = colRef.displayed,
238
236
  colView = colRef.view,
239
237
  colRefProps = (0, _objectWithoutProperties3.default)(colRef, ['colId', 'displayed', 'view']);
240
238
 
241
-
242
- if (displayed === false) return null;
243
-
244
- // the first column is sticky (except checkbox)
245
- var first = index === 0;
246
-
247
- // Static column settings
248
- var _columns$colRefId = columns[colRefId],
249
- colId = _columns$colRefId.colId,
250
- align = _columns$colRefId.align,
251
- colData = _columns$colRefId.data,
252
- ellipsis = _columns$colRefId.ellipsis,
253
- fixedWidth = _columns$colRefId.fixedWidth,
254
- type = _columns$colRefId.type,
255
- width = _columns$colRefId.width,
256
- columnProps = (0, _objectWithoutProperties3.default)(_columns$colRefId, ['colId', 'align', 'data', 'ellipsis', 'fixedWidth', 'type', 'width']);
257
-
258
- // view define in OrderColumn or table prop view by default
259
-
260
- var effectiveView = colView || view;
261
-
262
- // add clickable badge in cell to open children
263
- var isParentAnchor = row.hasOwnProperty('parentAnchorColumn') && row.parentAnchorColumn === colId && row.hasOwnProperty('children') && row.children.length > 0;
264
-
265
- // the first non fixed column is the only one not fixed
266
- var unfixed = unfixedCol && fixedWidth !== true;
267
- unfixedCol = unfixed ? false : unfixedCol;
268
-
269
- // add lookedUp style
270
- var lookedUp = Array.isArray(lookupColumns) && lookupColumns.includes(colId);
271
-
272
- // Cell data
273
- var data = row.datas[colRefId];
274
- // Get object data for column based on reference datas
275
- if (data !== undefined && colData !== undefined) {
276
- var colItem = colData.find(function (item) {
277
- return item.id === data.value;
278
- });
279
- if (colItem) {
280
- // Hydrate data object with reference item
281
- data = (0, _extends3.default)({}, colItem, data);
239
+ if (displayed !== false) {
240
+ // the first column is sticky (except checkbox)
241
+ var first = firstCol;
242
+ firstCol = false;
243
+ var _columns$colRef$colId = columns[colRef.colId],
244
+ colId = _columns$colRef$colId.colId,
245
+ align = _columns$colRef$colId.align,
246
+ datas = _columns$colRef$colId.datas,
247
+ ellipsis = _columns$colRef$colId.ellipsis,
248
+ fixedWidth = _columns$colRef$colId.fixedWidth,
249
+ type = _columns$colRef$colId.type,
250
+ width = _columns$colRef$colId.width,
251
+ columnProps = (0, _objectWithoutProperties3.default)(_columns$colRef$colId, ['colId', 'align', 'datas', 'ellipsis', 'fixedWidth', 'type', 'width']);
252
+
253
+ var data = row.datas[colRef.colId];
254
+
255
+ var effectiveView = colView || view;
256
+ // add clickable badge in cell to open children
257
+ var isParentAnchor = row.hasOwnProperty('parentAnchorColumn') && row.parentAnchorColumn === colId && row.hasOwnProperty('children') && row.children.length > 0;
258
+
259
+ // the first non fixed column is the only one not fixed
260
+ var unfixed = unfixedCol && fixedWidth !== true;
261
+ unfixedCol = unfixedCol && fixedWidth !== true ? false : unfixedCol;
262
+
263
+ var lookedUp = false;
264
+ if (_this3.props.lookupColumns && _this3.props.lookupColumns.includes(colId)) {
265
+ lookedUp = true;
282
266
  }
283
- }
284
267
 
285
- return _react2.default.createElement(_BodyCellBuilder2.default, (0, _extends3.default)({}, other, {
286
- key: row.rowId + '-' + colId + '-cell',
287
- ukey: row.rowId + '-' + colId + '-cell',
288
- checkboxValue: row.rowId,
289
- type: type,
290
- data: data,
291
- ellipsis: ellipsis,
292
- align: align,
293
- view: effectiveView,
294
- padding: cst.DEFAULT_PADDING[view],
295
- width: width,
296
- fixedWidth: !unfixed,
297
- sticky: sticky && first,
298
- selectable: selectable && first,
299
- dateLocale: dateLocale,
300
- numberLocale: numberLocale,
301
- dense: dense,
302
- selected: selected,
303
- onSelect: _this3.handleSelect,
304
- onOpenDetails: _this3.handleOpenRowDetails,
305
- childrenCount: isParentAnchor ? row.children.length : null,
306
- colId: colId,
307
- lookedUp: lookedUp
308
- }, columnProps, colRefProps));
268
+ return _react2.default.createElement(_BodyCellBuilder2.default, (0, _extends3.default)({}, other, {
269
+ key: row.rowId + '-' + colId + '-cell',
270
+ ukey: row.rowId + '-' + colId + '-cell',
271
+ checkboxValue: row.rowId,
272
+ type: type,
273
+ datas: data,
274
+ ellipsis: ellipsis,
275
+ align: align,
276
+ view: effectiveView,
277
+ padding: cst.DEFAULT_PADDING[view],
278
+ width: width,
279
+ fixedWidth: !unfixed,
280
+ sticky: sticky && first,
281
+ selectable: selectable && first,
282
+ dateLocale: dateLocale,
283
+ numberLocale: numberLocale,
284
+ dense: dense,
285
+ selected: selected,
286
+ onSelect: _this3.handleSelect,
287
+ onOpenDetails: _this3.handleOpenRowDetails,
288
+ childrenCount: isParentAnchor ? row.children.length : null,
289
+ colId: colId,
290
+ lookedUp: lookedUp
291
+ }, columnProps, colRefProps));
292
+ }
293
+ return null;
309
294
  }),
310
295
  _react2.default.createElement(_Table.TableCell, {
311
296
  style: {
@@ -330,8 +315,7 @@ BodyRow.defaultProps = {
330
315
  sticky: false,
331
316
  live: false,
332
317
  innerRow: false,
333
- lookupColumns: [],
334
- fixedColumnWidth: true
318
+ lookupColumns: []
335
319
  };
336
320
  BodyRow.propTypes = process.env.NODE_ENV !== "production" ? {
337
321
  /**
@@ -342,11 +326,6 @@ BodyRow.propTypes = process.env.NODE_ENV !== "production" ? {
342
326
  * Densité d'affichage (joue sur la hauteur des lignes)
343
327
  */
344
328
  dense: _propTypes2.default.bool,
345
- /**
346
- * Fixe la taille des colonnes selon le type de vue
347
- * Sinon les colonnes s'adaptent à l'espace disponible
348
- */
349
- fixedColumnWidth: _propTypes2.default.bool,
350
329
  /**
351
330
  * Applique le style d'une ligne intégrée a un sous-tableau
352
331
  */
@@ -5,10 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.styles = undefined;
7
7
 
8
- var _set = require('babel-runtime/core-js/set');
9
-
10
- var _set2 = _interopRequireDefault(_set);
11
-
12
8
  var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray');
13
9
 
14
10
  var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2);
@@ -225,13 +221,9 @@ var ColumnFilter = function (_React$Component) {
225
221
  }, {
226
222
  key: 'selectAllFilters',
227
223
  value: function selectAllFilters() {
228
- this.setState(function (prevState) {
229
- return {
230
- selectedIdList: [].concat((0, _toConsumableArray3.default)(new _set2.default([].concat((0, _toConsumableArray3.default)(prevState.selectedIdList), (0, _toConsumableArray3.default)(prevState.suggestions.map(function (item) {
231
- return item.id;
232
- }))))))
233
- };
234
- });
224
+ this.setState({ selectedIdList: this.state.suggestions.map(function (item) {
225
+ return item.id;
226
+ }) });
235
227
  }
236
228
 
237
229
  /**
@@ -241,15 +233,15 @@ var ColumnFilter = function (_React$Component) {
241
233
  }, {
242
234
  key: 'deselectAllFilters',
243
235
  value: function deselectAllFilters() {
244
- this.setState(function (prevState) {
245
- return {
246
- selectedIdList: prevState.selectedIdList.filter(function (item) {
247
- return prevState.suggestions.find(function (suggestion) {
248
- return suggestion.id === item;
249
- }) === undefined;
250
- })
251
- };
236
+ var _this2 = this;
237
+
238
+ var selectedIdList = this.state.selectedIdList;
239
+ this.state.suggestions.map(function (item) {
240
+ if (_this2.state.selectedIdList.includes(item.id)) {
241
+ selectedIdList.splice(_this2.state.selectedIdList.indexOf(item.id), 1);
242
+ }
252
243
  });
244
+ this.setState({ selectedIdList: selectedIdList });
253
245
  }
254
246
  }, {
255
247
  key: 'handleSort',
@@ -260,7 +252,7 @@ var ColumnFilter = function (_React$Component) {
260
252
  }, {
261
253
  key: 'render',
262
254
  value: function render() {
263
- var _this2 = this;
255
+ var _this3 = this;
264
256
 
265
257
  var _props = this.props,
266
258
  classes = _props.classes,
@@ -353,11 +345,7 @@ var ColumnFilter = function (_React$Component) {
353
345
  _react2.default.createElement(
354
346
  'div',
355
347
  { className: classes.menuItemFilter },
356
- _react2.default.createElement(
357
- 'span',
358
- { style: { marginRight: 4 } },
359
- translations.filter
360
- ),
348
+ translations.filter,
361
349
  _react2.default.createElement(
362
350
  _HiPins2.default,
363
351
  {
@@ -394,7 +382,7 @@ var ColumnFilter = function (_React$Component) {
394
382
  itemList: filterValueList,
395
383
  filterPropertyList: ['label'],
396
384
  callbackFilteredList: function callbackFilteredList(filteredList) {
397
- return _this2.setState({ suggestions: filteredList });
385
+ return _this3.setState({ suggestions: filteredList });
398
386
  },
399
387
  placeholder: translations.search
400
388
  }),
@@ -403,8 +391,7 @@ var ColumnFilter = function (_React$Component) {
403
391
  itemList: suggestions,
404
392
  selectedIdList: selectedIdList,
405
393
  onSelect: this.toggleSelectItem,
406
- leftPadding: 28,
407
- checkbox: type !== 'icon'
394
+ leftPadding: 28
408
395
  }),
409
396
  _react2.default.createElement(
410
397
  'div',
@@ -215,7 +215,6 @@ var HeaderCell = function (_React$PureComponent) {
215
215
  classes = _props.classes,
216
216
  type = _props.type,
217
217
  title = _props.title,
218
- smallTitle = _props.smallTitle,
219
218
  selectable = _props.selectable,
220
219
  selected = _props.selected,
221
220
  onSelect = _props.onSelect,
@@ -228,7 +227,7 @@ var HeaderCell = function (_React$PureComponent) {
228
227
  dense = _props.dense,
229
228
  _props$width = _props.width,
230
229
  width = _props$width === undefined ? cst.DEFAULT_WIDTHS[type][view] : _props$width,
231
- fixedColumnWidth = _props.fixedColumnWidth,
230
+ fixedWidth = _props.fixedWidth,
232
231
  _props$align = _props.align,
233
232
  align = _props$align === undefined ? cst.ALIGN_RIGHT_TYPES.includes(type) ? 'right' : 'left' : _props$align,
234
233
  sticky = _props.sticky,
@@ -264,22 +263,19 @@ var HeaderCell = function (_React$PureComponent) {
264
263
 
265
264
  var lookedUpClassName = (0, _classnames2.default)((0, _defineProperty3.default)({}, classes.lookedUp, lookedUp));
266
265
 
267
- var cellStyle = {
268
- padding: 0,
269
- zIndex: sticky ? 13 : 12, // la cellule sticky doit être au dessus des autres cellules du header
270
- backgroundColor: 'inherit',
271
- textAlign: align
272
- };
273
-
274
- if (fixedColumnWidth) {
275
- cellStyle.maxWidth = _width;
276
- cellStyle.minWidth = _width;
277
- cellStyle.width = _width;
278
- }
279
-
280
266
  return _react2.default.createElement(
281
267
  _Table.TableCell,
282
- { style: cellStyle },
268
+ {
269
+ style: {
270
+ maxWidth: _width,
271
+ minWidth: _width,
272
+ width: _width,
273
+ padding: 0,
274
+ zIndex: sticky ? 13 : 12, // la cellule sticky doit être au dessus des autres cellules du header
275
+ backgroundColor: 'inherit',
276
+ textAlign: align
277
+ }
278
+ },
283
279
  _react2.default.createElement(
284
280
  'div',
285
281
  null,
@@ -322,7 +318,7 @@ var HeaderCell = function (_React$PureComponent) {
322
318
  {
323
319
  className: classes.labelContainer + (_sorted ? ' ' + classes.labelContainerOrdered : '')
324
320
  },
325
- view !== 's' ? title : smallTitle ? smallTitle : title
321
+ title
326
322
  ),
327
323
  align !== 'right' && _icons
328
324
  ) : _react2.default.createElement(
@@ -339,7 +335,7 @@ var HeaderCell = function (_React$PureComponent) {
339
335
  _react2.default.createElement(
340
336
  'span',
341
337
  { className: classes.labelContainer, style: { width: '100%' } },
342
- view !== 's' ? title : smallTitle ? smallTitle : title
338
+ title
343
339
  )
344
340
  )
345
341
  ),
@@ -370,7 +366,7 @@ HeaderCell.defaultProps = {
370
366
  sortDirection: 'asc',
371
367
  view: 'l',
372
368
  dense: false,
373
- fixedColumnWidth: true,
369
+ fixedWidth: false,
374
370
  sticky: true,
375
371
  padding: 8
376
372
  };
@@ -450,7 +446,7 @@ HeaderCell.propTypes = process.env.NODE_ENV !== "production" ? {
450
446
  /**
451
447
  * La largeur de la cellule est fixé (toutes les colonnes sauf une)
452
448
  */
453
- fixedColumnWidth: _propTypes2.default.bool,
449
+ fixedWidth: _propTypes2.default.bool,
454
450
  /**
455
451
  * Title alignement, est déduit de type par défaut
456
452
  */
@@ -67,10 +67,6 @@ var _HiTableFooterScroll = require('./HiTableFooterScroll');
67
67
 
68
68
  var _HiTableFooterScroll2 = _interopRequireDefault(_HiTableFooterScroll);
69
69
 
70
- var _HiTableFooter = require('./HiTableFooter');
71
-
72
- var _HiTableFooter2 = _interopRequireDefault(_HiTableFooter);
73
-
74
70
  var _constants = require('./constants');
75
71
 
76
72
  var cst = _interopRequireWildcard(_constants);
@@ -709,11 +705,7 @@ var HiTable = function (_React$Component) {
709
705
  translations = _props.translations,
710
706
  view = _props.view,
711
707
  groupBy = _props.groupBy,
712
- lookupColumns = _props.lookupColumns,
713
- loading = _props.loading,
714
- fixedColumnWidth = _props.fixedColumnWidth,
715
- disableContextMenu = _props.disableContextMenu,
716
- footerContent = _props.footerContent;
708
+ lookupColumns = _props.lookupColumns;
717
709
  var _state = this.state,
718
710
  dateUpdate = _state.dateUpdate,
719
711
  isScrollToBottom = _state.isScrollToBottom,
@@ -722,13 +714,6 @@ var HiTable = function (_React$Component) {
722
714
 
723
715
  var headerHeight = dense ? cst.CELL_HEADER_HEIGHT_DENSE : cst.CELL_HEADER_HEIGHT;
724
716
 
725
- var nbColumnsDisplayed = 0;
726
- orderedColumns.forEach(function (column) {
727
- if (column.displayed !== false) {
728
- nbColumnsDisplayed += 1;
729
- }
730
- });
731
-
732
717
  return _react2.default.createElement(
733
718
  'div',
734
719
  { className: classes.root },
@@ -770,8 +755,7 @@ var HiTable = function (_React$Component) {
770
755
  sticky: sticky,
771
756
  view: view,
772
757
  translations: translations,
773
- lookupColumns: lookupColumns,
774
- fixedColumnWidth: fixedColumnWidth
758
+ lookupColumns: lookupColumns
775
759
  }),
776
760
  _react2.default.createElement(_HiTableBody2.default, {
777
761
  tabId: tabId,
@@ -796,10 +780,7 @@ var HiTable = function (_React$Component) {
796
780
  groupBy: groupBy,
797
781
  onClickNext: this.handleNextStickyRow,
798
782
  groupByIds: groupByIds,
799
- lookupColumns: lookupColumns,
800
- loading: loading,
801
- fixedColumnWidth: fixedColumnWidth,
802
- disableContextMenu: disableContextMenu
783
+ lookupColumns: lookupColumns
803
784
  }),
804
785
  infiniteScroll && _react2.default.createElement(_HiTableFooterScroll2.default, {
805
786
  tabId: tabId,
@@ -808,15 +789,7 @@ var HiTable = function (_React$Component) {
808
789
  maxAutoRequest: 3,
809
790
  isScrollToBottom: isScrollToBottom,
810
791
  translations: translations
811
- }),
812
- !infiniteScroll && footerContent && _react2.default.createElement(
813
- _HiTableFooter2.default,
814
- {
815
- nbColumnsDisplayed: nbColumnsDisplayed,
816
- view: view
817
- },
818
- footerContent
819
- )
792
+ })
820
793
  ),
821
794
  _react2.default.createElement(_HiTableContextMenu2.default, {
822
795
  tabId: tabId,
@@ -829,7 +802,7 @@ var HiTable = function (_React$Component) {
829
802
  _react2.default.createElement(
830
803
  _HiButton2.default,
831
804
  {
832
- variant: 'raised',
805
+ raised: true,
833
806
  color: 'primary',
834
807
  className: classes.backToTopButton,
835
808
  onClick: function onClick() {
@@ -876,10 +849,7 @@ HiTable.defaultProps = {
876
849
  }
877
850
  },
878
851
  view: 'l',
879
- lookupColumns: [],
880
- loading: false,
881
- fixedColumnWidth: true,
882
- disableContextMenu: true
852
+ lookupColumns: []
883
853
  };
884
854
  HiTable.propTypes = process.env.NODE_ENV !== "production" ? {
885
855
  /**
@@ -906,27 +876,10 @@ HiTable.propTypes = process.env.NODE_ENV !== "production" ? {
906
876
  * Densité d'affichage (joue sur la hauteur des lignes)
907
877
  */
908
878
  dense: _propTypes2.default.bool,
909
- /**
910
- * Active/désactive le menu contextuel au clic droit sur les cellules du tableau
911
- */
912
- disableContextMenu: _propTypes2.default.bool.isRequired,
913
879
  /**
914
880
  * Active le filtre sur les colonnes filtrables
915
881
  */
916
882
  filterable: _propTypes2.default.bool,
917
- /**
918
- * Fixe la taille des colonnes selon le type de vue
919
- * Sinon les colonnes s'adaptent à l'espace disponible
920
- */
921
- fixedColumnWidth: _propTypes2.default.bool,
922
- /**
923
- * Ajoute un footer avec le contenu footerContent à l'intérieur
924
- */
925
- footerContent: _propTypes2.default.node,
926
- /**
927
- * Id de la colonne par laquelle sont regroupé les éléments
928
- */
929
- groupBy: _propTypes2.default.string,
930
883
  /**
931
884
  * Ajoute le loader et le requestNextDatas en fin de tableau (si infiniteScroll activé)
932
885
  */
@@ -939,10 +892,6 @@ HiTable.propTypes = process.env.NODE_ENV !== "production" ? {
939
892
  * Ajoute l'infinite scroll
940
893
  */
941
894
  infiniteScroll: _propTypes2.default.bool,
942
- /**
943
- * État du tableau en cours de chargement des données
944
- */
945
- loading: _propTypes2.default.bool,
946
895
  /**
947
896
  * Identifiant de la ou des colonnes sur la/lesquelles il y a une 'lookup' search
948
897
  */
@@ -997,9 +946,6 @@ HiTable.propTypes = process.env.NODE_ENV !== "production" ? {
997
946
  /**
998
947
  * Fonction de callback sur le tri d'une colonne
999
948
  * Passe l'id de la colonne et la direction du tri (ou false si tri par défaut)
1000
- *
1001
- * @param {string} column id
1002
- * @param {string} direction
1003
949
  */
1004
950
  onSort: _propTypes2.default.func,
1005
951
  /**
@@ -1057,6 +1003,10 @@ HiTable.propTypes = process.env.NODE_ENV !== "production" ? {
1057
1003
  * Taille du tableau (L/M/S),
1058
1004
  * définit l'espace entre les cellules et leurs tailles par default
1059
1005
  */
1060
- view: _propTypes2.default.oneOf(['l', 'm', 's'])
1006
+ view: _propTypes2.default.oneOf(['l', 'm', 's']),
1007
+ /**
1008
+ * Id de la colonne par laquelle sont regroupé les éléments
1009
+ */
1010
+ groupBy: _propTypes2.default.string
1061
1011
  } : {};
1062
1012
  exports.default = (0, _styles.withStyles)(styles, { withTheme: true, name: 'HmuiHiTable' })(HiTable);
@@ -5,10 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.styles = undefined;
7
7
 
8
- var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
9
-
10
- var _defineProperty3 = _interopRequireDefault(_defineProperty2);
11
-
12
8
  var _extends2 = require('babel-runtime/helpers/extends');
13
9
 
14
10
  var _extends3 = _interopRequireDefault(_extends2);
@@ -47,10 +43,6 @@ var _propTypes2 = _interopRequireDefault(_propTypes);
47
43
 
48
44
  var _Table = require('material-ui/Table');
49
45
 
50
- var _classnames = require('classnames');
51
-
52
- var _classnames2 = _interopRequireDefault(_classnames);
53
-
54
46
  var _styles = require('../styles');
55
47
 
56
48
  var _BodyRow = require('./BodyRow');
@@ -69,6 +61,12 @@ var _constants = require('./constants');
69
61
 
70
62
  var cst = _interopRequireWildcard(_constants);
71
63
 
64
+ var _HiTableHead = require('./HiTableHead');
65
+
66
+ var _reactProptypeConditionalRequire = require('react-proptype-conditional-require');
67
+
68
+ var _reactProptypeConditionalRequire2 = _interopRequireDefault(_reactProptypeConditionalRequire);
69
+
72
70
  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; } }
73
71
 
74
72
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -77,14 +75,12 @@ var styles = exports.styles = function styles(theme) {
77
75
  return {
78
76
  tbody: {
79
77
  position: 'relative',
80
- width: '100%',
78
+ display: 'block' /* seperates the tbody from the header */
79
+ , width: '100%',
81
80
  overflowX: 'hidden',
82
81
  overflowY: 'auto',
83
82
  zIndex: 11
84
83
  },
85
- tbodyFixedWidth: {
86
- display: 'block' /* seperates the tbody from the header */
87
- },
88
84
  tbodyRows: {
89
85
  backgroundColor: theme.palette.background3
90
86
  },
@@ -285,10 +281,7 @@ var HiTableBody = function (_React$Component) {
285
281
  numberLocale = _props.numberLocale,
286
282
  groupByIds = _props.groupByIds,
287
283
  sortedColumnId = _props.sortedColumnId,
288
- lookupColumns = _props.lookupColumns,
289
- loading = _props.loading,
290
- fixedColumnWidth = _props.fixedColumnWidth,
291
- disableContextMenu = _props.disableContextMenu;
284
+ lookupColumns = _props.lookupColumns;
292
285
  var _state = this.state,
293
286
  openedParentRowId = _state.openedParentRowId,
294
287
  openedDetailsRowIdList = _state.openedDetailsRowIdList;
@@ -386,9 +379,7 @@ var HiTableBody = function (_React$Component) {
386
379
  row: row,
387
380
  sticky: sticky,
388
381
  tabId: tabId,
389
- view: view,
390
- fixedColumnWidth: fixedColumnWidth,
391
- disableContextMenu: disableContextMenu
382
+ view: view
392
383
  });
393
384
 
394
385
  if (hasChildren && openedParentRowId === row.rowId) {
@@ -417,9 +408,7 @@ var HiTableBody = function (_React$Component) {
417
408
  view: view,
418
409
  dense: dense,
419
410
  sticky: sticky,
420
- isDetail: true,
421
- fixedColumnWidth: fixedColumnWidth,
422
- disableContextMenu: disableContextMenu
411
+ isDetail: true
423
412
  };
424
413
 
425
414
  tableRows.push(_react2.default.createElement(_BodyRow2.default, (0, _extends3.default)({ key: row.rowId + '-' + detailRow.rowId }, detailRowProps)));
@@ -427,18 +416,12 @@ var HiTableBody = function (_React$Component) {
427
416
  }
428
417
  });
429
418
 
430
- var tBodyClasses = (0, _classnames2.default)(classes.tbody, (0, _defineProperty3.default)({}, classes.tbodyFixedWidth, fixedColumnWidth));
431
-
432
419
  return _react2.default.createElement(
433
420
  _Table.TableBody,
434
421
  {
435
422
  id: tabId + '-body',
436
- className: tBodyClasses,
437
- style: (0, _extends3.default)({
438
- height: height
439
- }, loading && {
440
- opacity: 0.6
441
- }),
423
+ className: classes.tbody,
424
+ style: { height: height },
442
425
  onScroll: onScroll
443
426
  },
444
427
  tableRows.map(function (tableRow) {
@@ -459,9 +442,7 @@ HiTableBody.defaultProps = {
459
442
  dense: false,
460
443
  height: 450,
461
444
  sticky: true,
462
- view: 'l',
463
- loading: false,
464
- disableContextMenu: true
445
+ view: 'l'
465
446
  };
466
447
  HiTableBody.propTypes = process.env.NODE_ENV !== "production" ? {
467
448
  /**
@@ -489,23 +470,10 @@ HiTableBody.propTypes = process.env.NODE_ENV !== "production" ? {
489
470
  * Densité d'affichage (joue sur la hauteur des lignes)
490
471
  */
491
472
  dense: _propTypes2.default.bool,
492
- /**
493
- * Active/désactive le menu contextuel au clic droit sur les cellules du tableau
494
- */
495
- disableContextMenu: _propTypes2.default.bool.isRequired,
496
- /**
497
- * Fixe la taille des colonnes selon le type de vue
498
- * Sinon les colonnes s'adaptent à l'espace disponible
499
- */
500
- fixedColumnWidth: _propTypes2.default.bool,
501
473
  /**
502
474
  * Hauteur du tableau (px)
503
475
  */
504
476
  height: _propTypes2.default.number,
505
- /**
506
- * État du tableau en cours de chargement des données
507
- */
508
- loading: _propTypes2.default.bool,
509
477
  /**
510
478
  * Identifiant de la ou des colonnes sur la/lesquelles il y a une 'lookup' search
511
479
  */