@hipay/hipay-material-ui 1.0.0-beta.19 → 1.0.0-beta.2
Sign up to get free protection for your applications and to get access to all the features.
- package/HiCheckbox/HiCheckbox.js +1 -4
- package/HiChip/HiChip.js +4 -4
- package/HiChip/HiChipSwitch.js +4 -11
- package/HiColoredLabel/HiColoredLabel.js +3 -9
- package/HiDatePicker/HiDatePicker.js +30 -34
- package/HiDatePicker/HiDateRangePicker.js +33 -76
- package/HiDatePicker/HiDateRangeSelector.js +13 -33
- package/HiDatePicker/ListPicker.js +7 -32
- package/HiDatePicker/Overlays/CustomOverlayLayout.js +1 -3
- package/HiDatePicker/Overlays/MonthPickerOverlay.js +1 -5
- package/HiDatePicker/Overlays/Overlay.js +4 -22
- package/HiDatePicker/Overlays/YearPickerOverlay.js +1 -2
- package/HiDatePicker/stylesheet.js +0 -7
- package/HiForm/HiFormControl.js +31 -39
- package/HiForm/HiInput.js +19 -40
- package/HiForm/HiSearchField.js +2 -2
- package/HiForm/index.js +0 -18
- package/HiPins/HiPins.js +1 -0
- package/HiSelect/HiSelect.js +353 -400
- package/HiSelect/HiSelectField.js +6 -8
- package/HiSelect/HiSuggestSelect.js +47 -27
- package/HiSelect/HiSuggestSelectField.js +80 -88
- package/HiSelect/SelectInput.js +23 -34
- package/HiSelectableList/HiSelectableList.js +3 -9
- package/HiSelectableList/HiSelectableListItem.js +55 -96
- package/HiSwitch/HiSwitchState.js +1 -1
- package/HiSwitch/index.js +0 -6
- package/HiTable/BodyCellBuilder.js +100 -115
- package/HiTable/BodyCells/CellCountry.js +36 -11
- package/HiTable/BodyCells/CellIcon.js +20 -29
- package/HiTable/BodyCells/CellImage.js +22 -43
- package/HiTable/BodyCells/CellLayout.js +20 -49
- package/HiTable/BodyCells/CellNumeric.js +2 -7
- package/HiTable/BodyCells/CellSentinel.js +17 -26
- package/HiTable/BodyCells/CellStatus.js +3 -7
- package/HiTable/BodyCells/CellText.js +1 -2
- package/HiTable/BodyCells/CellThirdPartySecurity.js +22 -45
- package/HiTable/BodyRow.js +62 -106
- package/HiTable/ChildRow.js +9 -3
- package/HiTable/ColumnFilter.js +15 -28
- package/HiTable/HeaderCell.js +16 -20
- package/HiTable/HiTable.js +11 -75
- package/HiTable/HiTableBody.js +36 -80
- package/HiTable/HiTableContextMenu.js +3 -7
- package/HiTable/HiTableFooterScroll.js +1 -1
- package/HiTable/HiTableHead.js +7 -24
- package/HiTable/OrderColumns.js +2 -6
- package/HiTopBar/HiTopBar.js +117 -37
- package/es/HiCheckbox/HiCheckbox.js +1 -4
- package/es/HiChip/HiChip.js +4 -4
- package/es/HiChip/HiChipSwitch.js +4 -11
- package/es/HiColoredLabel/HiColoredLabel.js +4 -9
- package/es/HiDatePicker/HiDatePicker.js +25 -30
- package/es/HiDatePicker/HiDateRangePicker.js +32 -72
- package/es/HiDatePicker/HiDateRangeSelector.js +14 -34
- package/es/HiDatePicker/ListPicker.js +20 -39
- package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +1 -3
- package/es/HiDatePicker/Overlays/MonthPickerOverlay.js +1 -5
- package/es/HiDatePicker/Overlays/Overlay.js +4 -18
- package/es/HiDatePicker/Overlays/YearPickerOverlay.js +1 -2
- package/es/HiDatePicker/stylesheet.js +0 -7
- package/es/HiForm/HiFormControl.js +18 -32
- package/es/HiForm/HiInput.js +18 -35
- package/es/HiForm/HiSearchField.js +2 -2
- package/es/HiForm/index.js +1 -3
- package/es/HiPins/HiPins.js +1 -0
- package/es/HiSelect/HiSelect.js +324 -375
- package/es/HiSelect/HiSelectField.js +7 -9
- package/es/HiSelect/HiSuggestSelect.js +39 -26
- package/es/HiSelect/HiSuggestSelectField.js +69 -77
- package/es/HiSelect/SelectInput.js +23 -44
- package/es/HiSelectableList/HiSelectableList.js +4 -10
- package/es/HiSelectableList/HiSelectableListItem.js +55 -91
- package/es/HiSwitch/HiSwitchState.js +1 -1
- package/es/HiSwitch/index.js +0 -1
- package/es/HiTable/BodyCellBuilder.js +101 -111
- package/es/HiTable/BodyCells/CellCountry.js +35 -10
- package/es/HiTable/BodyCells/CellIcon.js +9 -18
- package/es/HiTable/BodyCells/CellImage.js +23 -42
- package/es/HiTable/BodyCells/CellLayout.js +23 -50
- package/es/HiTable/BodyCells/CellNumeric.js +2 -6
- package/es/HiTable/BodyCells/CellSentinel.js +9 -20
- package/es/HiTable/BodyCells/CellStatus.js +3 -7
- package/es/HiTable/BodyCells/CellText.js +1 -2
- package/es/HiTable/BodyCells/CellThirdPartySecurity.js +18 -42
- package/es/HiTable/BodyRow.js +61 -106
- package/es/HiTable/ChildRow.js +10 -3
- package/es/HiTable/ColumnFilter.js +9 -15
- package/es/HiTable/HeaderCell.js +16 -20
- package/es/HiTable/HiTable.js +12 -73
- package/es/HiTable/HiTableBody.js +32 -71
- package/es/HiTable/HiTableContextMenu.js +3 -7
- package/es/HiTable/HiTableFooterScroll.js +1 -1
- package/es/HiTable/HiTableHead.js +7 -19
- package/es/HiTable/OrderColumns.js +2 -6
- package/es/HiTopBar/HiTopBar.js +108 -40
- package/es/styles/createHiMuiTheme.js +0 -11
- package/es/utils/hiHelpers.js +5 -6
- package/index.es.js +1 -1
- package/index.js +1 -1
- package/package.json +44 -45
- package/styles/createHiMuiTheme.js +0 -11
- package/umd/hipay-material-ui.development.js +10243 -11324
- package/umd/hipay-material-ui.production.min.js +5 -5
- package/utils/hiHelpers.js +4 -6
- package/HI-CHANGELOG.md +0 -58
- package/HiAlertModal/HiAlertModal.js +0 -247
- package/HiAlertModal/index.js +0 -16
- package/HiBreadcrumb/HiBreadcrumb.js +0 -149
- package/HiBreadcrumb/HiStep.js +0 -159
- package/HiBreadcrumb/HiStepConnector.js +0 -207
- package/HiBreadcrumb/HiStepContent.js +0 -122
- package/HiBreadcrumb/HiStepIcon.js +0 -191
- package/HiBreadcrumb/HiStepLabel.js +0 -248
- package/HiBreadcrumb/HiStepper.js +0 -106
- package/HiBreadcrumb/index.js +0 -16
- package/HiDotsStepper/HiDot.js +0 -151
- package/HiDotsStepper/HiDotsStepper.js +0 -146
- package/HiDotsStepper/index.js +0 -16
- package/HiExpansionPanel/HiExpansionPanel.js +0 -231
- package/HiExpansionPanel/index.js +0 -16
- package/HiForm/HiAddressField.js +0 -204
- package/HiForm/HiSlider.js +0 -399
- package/HiPdfReader/HiPdfReader.js +0 -282
- package/HiPdfReader/index.js +0 -16
- package/HiTable/HiTableFooter.js +0 -131
- package/es/HiAlertModal/HiAlertModal.js +0 -189
- package/es/HiAlertModal/index.js +0 -1
- package/es/HiBreadcrumb/HiBreadcrumb.js +0 -81
- package/es/HiBreadcrumb/HiStep.js +0 -94
- package/es/HiBreadcrumb/HiStepConnector.js +0 -143
- package/es/HiBreadcrumb/HiStepContent.js +0 -63
- package/es/HiBreadcrumb/HiStepIcon.js +0 -149
- package/es/HiBreadcrumb/HiStepLabel.js +0 -197
- package/es/HiBreadcrumb/HiStepper.js +0 -46
- package/es/HiBreadcrumb/index.js +0 -1
- package/es/HiDotsStepper/HiDot.js +0 -92
- package/es/HiDotsStepper/HiDotsStepper.js +0 -83
- package/es/HiDotsStepper/index.js +0 -1
- package/es/HiExpansionPanel/HiExpansionPanel.js +0 -170
- package/es/HiExpansionPanel/index.js +0 -1
- package/es/HiForm/HiAddressField.js +0 -142
- package/es/HiForm/HiSlider.js +0 -309
- package/es/HiPdfReader/HiPdfReader.js +0 -198
- package/es/HiPdfReader/index.js +0 -1
- package/es/HiTable/HiTableFooter.js +0 -74
- package/hmu/images/countries/ad.svg +0 -151
- package/hmu/images/countries/ae.svg +0 -6
- package/hmu/images/countries/af.svg +0 -83
- package/hmu/images/countries/ag.svg +0 -15
- package/hmu/images/countries/ai.svg +0 -767
- package/hmu/images/countries/al.svg +0 -5
- package/hmu/images/countries/am.svg +0 -5
- package/hmu/images/countries/ao.svg +0 -13
- package/hmu/images/countries/aq.svg +0 -6
- package/hmu/images/countries/ar.svg +0 -32
- package/hmu/images/countries/as.svg +0 -33
- package/hmu/images/countries/at.svg +0 -6
- package/hmu/images/countries/au.svg +0 -9
- package/hmu/images/countries/aw.svg +0 -186
- package/hmu/images/countries/ax.svg +0 -18
- package/hmu/images/countries/az.svg +0 -8
- package/hmu/images/countries/ba.svg +0 -12
- package/hmu/images/countries/bb.svg +0 -6
- package/hmu/images/countries/bd.svg +0 -4
- package/hmu/images/countries/be.svg +0 -7
- package/hmu/images/countries/bf.svg +0 -7
- package/hmu/images/countries/bg.svg +0 -7
- package/hmu/images/countries/bh.svg +0 -11
- package/hmu/images/countries/bi.svg +0 -15
- package/hmu/images/countries/bj.svg +0 -14
- package/hmu/images/countries/bl.svg +0 -7
- package/hmu/images/countries/bm.svg +0 -99
- package/hmu/images/countries/bn.svg +0 -36
- package/hmu/images/countries/bo.svg +0 -686
- package/hmu/images/countries/bq.svg +0 -5
- package/hmu/images/countries/br.svg +0 -45
- package/hmu/images/countries/bs.svg +0 -13
- package/hmu/images/countries/bt.svg +0 -89
- package/hmu/images/countries/bv.svg +0 -13
- package/hmu/images/countries/bw.svg +0 -7
- package/hmu/images/countries/by.svg +0 -61
- package/hmu/images/countries/bz.svg +0 -146
- package/hmu/images/countries/ca.svg +0 -4
- package/hmu/images/countries/cc.svg +0 -19
- package/hmu/images/countries/cd.svg +0 -5
- package/hmu/images/countries/cf.svg +0 -15
- package/hmu/images/countries/cg.svg +0 -12
- package/hmu/images/countries/ch.svg +0 -9
- package/hmu/images/countries/ci.svg +0 -7
- package/hmu/images/countries/ck.svg +0 -9
- package/hmu/images/countries/cl.svg +0 -13
- package/hmu/images/countries/cm.svg +0 -15
- package/hmu/images/countries/cn.svg +0 -11
- package/hmu/images/countries/co.svg +0 -7
- package/hmu/images/countries/cr.svg +0 -7
- package/hmu/images/countries/cu.svg +0 -13
- package/hmu/images/countries/cv.svg +0 -13
- package/hmu/images/countries/cw.svg +0 -14
- package/hmu/images/countries/cx.svg +0 -15
- package/hmu/images/countries/cy.svg +0 -6
- package/hmu/images/countries/cz.svg +0 -12
- package/hmu/images/countries/de.svg +0 -5
- package/hmu/images/countries/dj.svg +0 -13
- package/hmu/images/countries/dk.svg +0 -5
- package/hmu/images/countries/dm.svg +0 -152
- package/hmu/images/countries/do.svg +0 -6745
- package/hmu/images/countries/dz.svg +0 -5
- package/hmu/images/countries/ec.svg +0 -141
- package/hmu/images/countries/ee.svg +0 -7
- package/hmu/images/countries/eg.svg +0 -38
- package/hmu/images/countries/eh.svg +0 -15
- package/hmu/images/countries/er.svg +0 -8
- package/hmu/images/countries/es-ct.svg +0 -4
- package/hmu/images/countries/es.svg +0 -581
- package/hmu/images/countries/et.svg +0 -14
- package/hmu/images/countries/eu.svg +0 -28
- package/hmu/images/countries/fi.svg +0 -5
- package/hmu/images/countries/fj.svg +0 -124
- package/hmu/images/countries/fk.svg +0 -90
- package/hmu/images/countries/fm.svg +0 -11
- package/hmu/images/countries/fo.svg +0 -12
- package/hmu/images/countries/fr.svg +0 -7
- package/hmu/images/countries/ga.svg +0 -7
- package/hmu/images/countries/gb-eng.svg +0 -5
- package/hmu/images/countries/gb-nir.svg +0 -137
- package/hmu/images/countries/gb-sct.svg +0 -4
- package/hmu/images/countries/gb-wls.svg +0 -9
- package/hmu/images/countries/gb.svg +0 -15
- package/hmu/images/countries/gd.svg +0 -27
- package/hmu/images/countries/ge.svg +0 -6
- package/hmu/images/countries/gf.svg +0 -5
- package/hmu/images/countries/gg.svg +0 -9
- package/hmu/images/countries/gh.svg +0 -6
- package/hmu/images/countries/gi.svg +0 -33
- package/hmu/images/countries/gl.svg +0 -4
- package/hmu/images/countries/gm.svg +0 -14
- package/hmu/images/countries/gn.svg +0 -7
- package/hmu/images/countries/gp.svg +0 -7
- package/hmu/images/countries/gq.svg +0 -23
- package/hmu/images/countries/gr.svg +0 -22
- package/hmu/images/countries/gs.svg +0 -205
- package/hmu/images/countries/gt.svg +0 -204
- package/hmu/images/countries/gu.svg +0 -39
- package/hmu/images/countries/gw.svg +0 -13
- package/hmu/images/countries/gy.svg +0 -9
- package/hmu/images/countries/hk.svg +0 -32
- package/hmu/images/countries/hm.svg +0 -9
- package/hmu/images/countries/hn.svg +0 -18
- package/hmu/images/countries/hr.svg +0 -59
- package/hmu/images/countries/ht.svg +0 -122
- package/hmu/images/countries/hu.svg +0 -7
- package/hmu/images/countries/id.svg +0 -6
- package/hmu/images/countries/ie.svg +0 -7
- package/hmu/images/countries/il.svg +0 -14
- package/hmu/images/countries/im.svg +0 -36
- package/hmu/images/countries/in.svg +0 -25
- package/hmu/images/countries/io.svg +0 -148
- package/hmu/images/countries/iq.svg +0 -10
- package/hmu/images/countries/ir.svg +0 -219
- package/hmu/images/countries/is.svg +0 -12
- package/hmu/images/countries/it.svg +0 -7
- package/hmu/images/countries/je.svg +0 -32
- package/hmu/images/countries/jm.svg +0 -8
- package/hmu/images/countries/jo.svg +0 -16
- package/hmu/images/countries/jp.svg +0 -11
- package/hmu/images/countries/ke.svg +0 -23
- package/hmu/images/countries/kg.svg +0 -15
- package/hmu/images/countries/kh.svg +0 -69
- package/hmu/images/countries/ki.svg +0 -36
- package/hmu/images/countries/km.svg +0 -16
- package/hmu/images/countries/kn.svg +0 -14
- package/hmu/images/countries/kp.svg +0 -15
- package/hmu/images/countries/kr.svg +0 -24
- package/hmu/images/countries/kw.svg +0 -13
- package/hmu/images/countries/ky.svg +0 -63
- package/hmu/images/countries/kz.svg +0 -23
- package/hmu/images/countries/la.svg +0 -12
- package/hmu/images/countries/lb.svg +0 -15
- package/hmu/images/countries/lc.svg +0 -8
- package/hmu/images/countries/li.svg +0 -43
- package/hmu/images/countries/lk.svg +0 -22
- package/hmu/images/countries/lr.svg +0 -14
- package/hmu/images/countries/ls.svg +0 -8
- package/hmu/images/countries/lt.svg +0 -7
- package/hmu/images/countries/lu.svg +0 -5
- package/hmu/images/countries/lv.svg +0 -6
- package/hmu/images/countries/ly.svg +0 -13
- package/hmu/images/countries/ma.svg +0 -4
- package/hmu/images/countries/mc.svg +0 -6
- package/hmu/images/countries/md.svg +0 -72
- package/hmu/images/countries/me.svg +0 -118
- package/hmu/images/countries/mf.svg +0 -7
- package/hmu/images/countries/mg.svg +0 -7
- package/hmu/images/countries/mh.svg +0 -7
- package/hmu/images/countries/mk.svg +0 -5
- package/hmu/images/countries/ml.svg +0 -7
- package/hmu/images/countries/mm.svg +0 -16
- package/hmu/images/countries/mn.svg +0 -13
- package/hmu/images/countries/mo.svg +0 -9
- package/hmu/images/countries/mp.svg +0 -86
- package/hmu/images/countries/mq.svg +0 -7
- package/hmu/images/countries/mr.svg +0 -6
- package/hmu/images/countries/ms.svg +0 -39
- package/hmu/images/countries/mt.svg +0 -49
- package/hmu/images/countries/mu.svg +0 -8
- package/hmu/images/countries/mv.svg +0 -6
- package/hmu/images/countries/mw.svg +0 -10
- package/hmu/images/countries/mx.svg +0 -385
- package/hmu/images/countries/my.svg +0 -15
- package/hmu/images/countries/mz.svg +0 -21
- package/hmu/images/countries/na.svg +0 -16
- package/hmu/images/countries/nc.svg +0 -7
- package/hmu/images/countries/ne.svg +0 -6
- package/hmu/images/countries/nf.svg +0 -9
- package/hmu/images/countries/ng.svg +0 -6
- package/hmu/images/countries/ni.svg +0 -131
- package/hmu/images/countries/nl.svg +0 -7
- package/hmu/images/countries/no.svg +0 -7
- package/hmu/images/countries/np.svg +0 -14
- package/hmu/images/countries/nr.svg +0 -12
- package/hmu/images/countries/nu.svg +0 -26
- package/hmu/images/countries/nz.svg +0 -41
- package/hmu/images/countries/om.svg +0 -116
- package/hmu/images/countries/pa.svg +0 -14
- package/hmu/images/countries/pe.svg +0 -279
- package/hmu/images/countries/pf.svg +0 -19
- package/hmu/images/countries/pg.svg +0 -9
- package/hmu/images/countries/ph.svg +0 -28
- package/hmu/images/countries/pk.svg +0 -15
- package/hmu/images/countries/pl.svg +0 -6
- package/hmu/images/countries/pm.svg +0 -7
- package/hmu/images/countries/pn.svg +0 -62
- package/hmu/images/countries/pr.svg +0 -13
- package/hmu/images/countries/ps.svg +0 -15
- package/hmu/images/countries/pt.svg +0 -57
- package/hmu/images/countries/pw.svg +0 -11
- package/hmu/images/countries/py.svg +0 -157
- package/hmu/images/countries/qa.svg +0 -4
- package/hmu/images/countries/re.svg +0 -7
- package/hmu/images/countries/ro.svg +0 -7
- package/hmu/images/countries/rs.svg +0 -292
- package/hmu/images/countries/ru.svg +0 -7
- package/hmu/images/countries/rw.svg +0 -13
- package/hmu/images/countries/sa.svg +0 -26
- package/hmu/images/countries/sb.svg +0 -13
- package/hmu/images/countries/sc.svg +0 -14
- package/hmu/images/countries/sd.svg +0 -13
- package/hmu/images/countries/se.svg +0 -16
- package/hmu/images/countries/sg.svg +0 -13
- package/hmu/images/countries/sh.svg +0 -74
- package/hmu/images/countries/si.svg +0 -18
- package/hmu/images/countries/sj.svg +0 -7
- package/hmu/images/countries/sk.svg +0 -9
- package/hmu/images/countries/sl.svg +0 -7
- package/hmu/images/countries/sm.svg +0 -91
- package/hmu/images/countries/sn.svg +0 -8
- package/hmu/images/countries/so.svg +0 -11
- package/hmu/images/countries/sr.svg +0 -6
- package/hmu/images/countries/ss.svg +0 -8
- package/hmu/images/countries/st.svg +0 -16
- package/hmu/images/countries/sv.svg +0 -618
- package/hmu/images/countries/sx.svg +0 -56
- package/hmu/images/countries/sy.svg +0 -6
- package/hmu/images/countries/sz.svg +0 -45
- package/hmu/images/countries/tc.svg +0 -67
- package/hmu/images/countries/td.svg +0 -7
- package/hmu/images/countries/tf.svg +0 -15
- package/hmu/images/countries/tg.svg +0 -14
- package/hmu/images/countries/th.svg +0 -7
- package/hmu/images/countries/tj.svg +0 -22
- package/hmu/images/countries/tk.svg +0 -5
- package/hmu/images/countries/tl.svg +0 -13
- package/hmu/images/countries/tm.svg +0 -213
- package/hmu/images/countries/tn.svg +0 -13
- package/hmu/images/countries/to.svg +0 -10
- package/hmu/images/countries/tr.svg +0 -8
- package/hmu/images/countries/tt.svg +0 -5
- package/hmu/images/countries/tv.svg +0 -27
- package/hmu/images/countries/tw.svg +0 -14
- package/hmu/images/countries/tz.svg +0 -13
- package/hmu/images/countries/ua.svg +0 -6
- package/hmu/images/countries/ug.svg +0 -30
- package/hmu/images/countries/um.svg +0 -23
- package/hmu/images/countries/un.svg +0 -16
- package/hmu/images/countries/us.svg +0 -12
- package/hmu/images/countries/uy.svg +0 -28
- package/hmu/images/countries/uz.svg +0 -30
- package/hmu/images/countries/va.svg +0 -483
- package/hmu/images/countries/vc.svg +0 -8
- package/hmu/images/countries/ve.svg +0 -26
- package/hmu/images/countries/vg.svg +0 -133
- package/hmu/images/countries/vi.svg +0 -31
- package/hmu/images/countries/vn.svg +0 -11
- package/hmu/images/countries/vu.svg +0 -18
- package/hmu/images/countries/wf.svg +0 -7
- package/hmu/images/countries/ws.svg +0 -7
- package/hmu/images/countries/ye.svg +0 -7
- package/hmu/images/countries/yt.svg +0 -7
- package/hmu/images/countries/za.svg +0 -17
- package/hmu/images/countries/zm.svg +0 -27
- package/hmu/images/countries/zw.svg +0 -21
- package/hmu/images/hipay-white-logo.svg +0 -42
- package/hmu/images/logo_visa_75wx45h.gif +0 -0
package/HiTable/HiTable.js
CHANGED
@@ -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,12 +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,
|
717
|
-
detailRowsOptions = _props.detailRowsOptions;
|
708
|
+
lookupColumns = _props.lookupColumns;
|
718
709
|
var _state = this.state,
|
719
710
|
dateUpdate = _state.dateUpdate,
|
720
711
|
isScrollToBottom = _state.isScrollToBottom,
|
@@ -723,13 +714,6 @@ var HiTable = function (_React$Component) {
|
|
723
714
|
|
724
715
|
var headerHeight = dense ? cst.CELL_HEADER_HEIGHT_DENSE : cst.CELL_HEADER_HEIGHT;
|
725
716
|
|
726
|
-
var nbColumnsDisplayed = 0;
|
727
|
-
orderedColumns.forEach(function (column) {
|
728
|
-
if (column.displayed !== false) {
|
729
|
-
nbColumnsDisplayed += 1;
|
730
|
-
}
|
731
|
-
});
|
732
|
-
|
733
717
|
return _react2.default.createElement(
|
734
718
|
'div',
|
735
719
|
{ className: classes.root },
|
@@ -771,8 +755,7 @@ var HiTable = function (_React$Component) {
|
|
771
755
|
sticky: sticky,
|
772
756
|
view: view,
|
773
757
|
translations: translations,
|
774
|
-
lookupColumns: lookupColumns
|
775
|
-
fixedColumnWidth: fixedColumnWidth
|
758
|
+
lookupColumns: lookupColumns
|
776
759
|
}),
|
777
760
|
_react2.default.createElement(_HiTableBody2.default, {
|
778
761
|
tabId: tabId,
|
@@ -797,11 +780,7 @@ var HiTable = function (_React$Component) {
|
|
797
780
|
groupBy: groupBy,
|
798
781
|
onClickNext: this.handleNextStickyRow,
|
799
782
|
groupByIds: groupByIds,
|
800
|
-
lookupColumns: lookupColumns
|
801
|
-
loading: loading,
|
802
|
-
fixedColumnWidth: fixedColumnWidth,
|
803
|
-
disableContextMenu: disableContextMenu,
|
804
|
-
detailRowsOptions: detailRowsOptions
|
783
|
+
lookupColumns: lookupColumns
|
805
784
|
}),
|
806
785
|
infiniteScroll && _react2.default.createElement(_HiTableFooterScroll2.default, {
|
807
786
|
tabId: tabId,
|
@@ -810,15 +789,7 @@ var HiTable = function (_React$Component) {
|
|
810
789
|
maxAutoRequest: 3,
|
811
790
|
isScrollToBottom: isScrollToBottom,
|
812
791
|
translations: translations
|
813
|
-
})
|
814
|
-
!infiniteScroll && footerContent && _react2.default.createElement(
|
815
|
-
_HiTableFooter2.default,
|
816
|
-
{
|
817
|
-
nbColumnsDisplayed: nbColumnsDisplayed,
|
818
|
-
view: view
|
819
|
-
},
|
820
|
-
footerContent
|
821
|
-
)
|
792
|
+
})
|
822
793
|
),
|
823
794
|
_react2.default.createElement(_HiTableContextMenu2.default, {
|
824
795
|
tabId: tabId,
|
@@ -831,7 +802,7 @@ var HiTable = function (_React$Component) {
|
|
831
802
|
_react2.default.createElement(
|
832
803
|
_HiButton2.default,
|
833
804
|
{
|
834
|
-
|
805
|
+
raised: true,
|
835
806
|
color: 'primary',
|
836
807
|
className: classes.backToTopButton,
|
837
808
|
onClick: function onClick() {
|
@@ -862,7 +833,6 @@ HiTable.defaultProps = {
|
|
862
833
|
dateLocale: 'en-EN',
|
863
834
|
numberLocale: 'en-EN',
|
864
835
|
dense: false,
|
865
|
-
detailRowsOptions: {},
|
866
836
|
height: 450,
|
867
837
|
sticky: true,
|
868
838
|
translations: {
|
@@ -879,10 +849,7 @@ HiTable.defaultProps = {
|
|
879
849
|
}
|
880
850
|
},
|
881
851
|
view: 'l',
|
882
|
-
lookupColumns: []
|
883
|
-
loading: false,
|
884
|
-
fixedColumnWidth: true,
|
885
|
-
disableContextMenu: true
|
852
|
+
lookupColumns: []
|
886
853
|
};
|
887
854
|
HiTable.propTypes = process.env.NODE_ENV !== "production" ? {
|
888
855
|
/**
|
@@ -905,42 +872,14 @@ HiTable.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
905
872
|
* Locale utilisé pour le format des dates
|
906
873
|
*/
|
907
874
|
dateLocale: _propTypes2.default.string,
|
908
|
-
/**
|
909
|
-
* Options utilisées pour décrire le comportement de lignes de détails
|
910
|
-
* ex: {
|
911
|
-
* payment_operation: {
|
912
|
-
* anchor: 'transaction_id'
|
913
|
-
* }
|
914
|
-
* }
|
915
|
-
* dans cet exemple, on veut que les lignes de détails de type payment_operation
|
916
|
-
* soient affichable à partir d'un chip button dans les cellules transaction_id
|
917
|
-
*/
|
918
|
-
detailRowsOptions: _propTypes2.default.object,
|
919
875
|
/**
|
920
876
|
* Densité d'affichage (joue sur la hauteur des lignes)
|
921
877
|
*/
|
922
878
|
dense: _propTypes2.default.bool,
|
923
|
-
/**
|
924
|
-
* Active/désactive le menu contextuel au clic droit sur les cellules du tableau
|
925
|
-
*/
|
926
|
-
disableContextMenu: _propTypes2.default.bool.isRequired,
|
927
879
|
/**
|
928
880
|
* Active le filtre sur les colonnes filtrables
|
929
881
|
*/
|
930
882
|
filterable: _propTypes2.default.bool,
|
931
|
-
/**
|
932
|
-
* Fixe la taille des colonnes selon le type de vue
|
933
|
-
* Sinon les colonnes s'adaptent à l'espace disponible
|
934
|
-
*/
|
935
|
-
fixedColumnWidth: _propTypes2.default.bool,
|
936
|
-
/**
|
937
|
-
* Ajoute un footer avec le contenu footerContent à l'intérieur
|
938
|
-
*/
|
939
|
-
footerContent: _propTypes2.default.node,
|
940
|
-
/**
|
941
|
-
* Id de la colonne par laquelle sont regroupé les éléments
|
942
|
-
*/
|
943
|
-
groupBy: _propTypes2.default.string,
|
944
883
|
/**
|
945
884
|
* Ajoute le loader et le requestNextDatas en fin de tableau (si infiniteScroll activé)
|
946
885
|
*/
|
@@ -953,10 +892,6 @@ HiTable.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
953
892
|
* Ajoute l'infinite scroll
|
954
893
|
*/
|
955
894
|
infiniteScroll: _propTypes2.default.bool,
|
956
|
-
/**
|
957
|
-
* État du tableau en cours de chargement des données
|
958
|
-
*/
|
959
|
-
loading: _propTypes2.default.bool,
|
960
895
|
/**
|
961
896
|
* Identifiant de la ou des colonnes sur la/lesquelles il y a une 'lookup' search
|
962
897
|
*/
|
@@ -1011,9 +946,6 @@ HiTable.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1011
946
|
/**
|
1012
947
|
* Fonction de callback sur le tri d'une colonne
|
1013
948
|
* Passe l'id de la colonne et la direction du tri (ou false si tri par défaut)
|
1014
|
-
*
|
1015
|
-
* @param {string} column id
|
1016
|
-
* @param {string} direction
|
1017
949
|
*/
|
1018
950
|
onSort: _propTypes2.default.func,
|
1019
951
|
/**
|
@@ -1071,6 +1003,10 @@ HiTable.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1071
1003
|
* Taille du tableau (L/M/S),
|
1072
1004
|
* définit l'espace entre les cellules et leurs tailles par default
|
1073
1005
|
*/
|
1074
|
-
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
|
1075
1011
|
} : {};
|
1076
1012
|
exports.default = (0, _styles.withStyles)(styles, { withTheme: true, name: 'HmuiHiTable' })(HiTable);
|
package/HiTable/HiTableBody.js
CHANGED
@@ -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
|
-
|
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
|
},
|
@@ -235,22 +231,18 @@ var HiTableBody = function (_React$Component) {
|
|
235
231
|
/**
|
236
232
|
* Définit les id des lignes dont les détails sont affichés ou null
|
237
233
|
* (ajoute une ligne pour chaque détails)
|
238
|
-
* vérifie aussi le type du détail
|
239
234
|
*
|
240
235
|
* @param rowId
|
241
|
-
* @param type
|
242
236
|
*/
|
243
237
|
|
244
238
|
}, {
|
245
239
|
key: 'toggleOpenedDetailsRowId',
|
246
|
-
value: function toggleOpenedDetailsRowId(rowId
|
240
|
+
value: function toggleOpenedDetailsRowId(rowId) {
|
247
241
|
this.setState(function (prevState) {
|
248
242
|
return {
|
249
|
-
openedDetailsRowIdList: prevState.openedDetailsRowIdList.
|
250
|
-
return
|
251
|
-
})
|
252
|
-
return item.id !== rowId || item.type !== type;
|
253
|
-
}) : [].concat((0, _toConsumableArray3.default)(prevState.openedDetailsRowIdList), [{ id: rowId, type: type }])
|
243
|
+
openedDetailsRowIdList: prevState.openedDetailsRowIdList.includes(rowId) ? prevState.openedDetailsRowIdList.filter(function (id) {
|
244
|
+
return id !== rowId;
|
245
|
+
}) : [].concat((0, _toConsumableArray3.default)(prevState.openedDetailsRowIdList), [rowId])
|
254
246
|
};
|
255
247
|
});
|
256
248
|
this.props.addNewRowRefs();
|
@@ -289,11 +281,7 @@ var HiTableBody = function (_React$Component) {
|
|
289
281
|
numberLocale = _props.numberLocale,
|
290
282
|
groupByIds = _props.groupByIds,
|
291
283
|
sortedColumnId = _props.sortedColumnId,
|
292
|
-
lookupColumns = _props.lookupColumns
|
293
|
-
loading = _props.loading,
|
294
|
-
fixedColumnWidth = _props.fixedColumnWidth,
|
295
|
-
disableContextMenu = _props.disableContextMenu,
|
296
|
-
detailRowsOptions = _props.detailRowsOptions;
|
284
|
+
lookupColumns = _props.lookupColumns;
|
297
285
|
var _state = this.state,
|
298
286
|
openedParentRowId = _state.openedParentRowId,
|
299
287
|
openedDetailsRowIdList = _state.openedDetailsRowIdList;
|
@@ -365,6 +353,9 @@ var HiTableBody = function (_React$Component) {
|
|
365
353
|
// has children
|
366
354
|
var hasChildren = row.hasOwnProperty('children') && row.children.length > 0;
|
367
355
|
|
356
|
+
// has detail rows
|
357
|
+
var hasDetailRows = row.hasOwnProperty('detailRows') && row.detailRows.length > 0;
|
358
|
+
|
368
359
|
var BodyRowProps = (0, _extends3.default)({
|
369
360
|
columns: columns,
|
370
361
|
dateLocale: dateLocale,
|
@@ -376,9 +367,9 @@ var HiTableBody = function (_React$Component) {
|
|
376
367
|
}, hasChildren && {
|
377
368
|
openedAsParent: openedParentRowId === row.rowId,
|
378
369
|
onClick: _this3.setOpenedParentRowId // if row has children, onClick display the children
|
370
|
+
}, hasDetailRows && {
|
371
|
+
onOpenRowDetails: _this3.toggleOpenedDetailsRowId
|
379
372
|
}, {
|
380
|
-
onOpenRowDetails: _this3.toggleOpenedDetailsRowId,
|
381
|
-
detailRowsOptions: detailRowsOptions,
|
382
373
|
orderedColumns: orderedColumns
|
383
374
|
}, selectable && {
|
384
375
|
selectable: selectable,
|
@@ -388,9 +379,7 @@ var HiTableBody = function (_React$Component) {
|
|
388
379
|
row: row,
|
389
380
|
sticky: sticky,
|
390
381
|
tabId: tabId,
|
391
|
-
view: view
|
392
|
-
fixedColumnWidth: fixedColumnWidth,
|
393
|
-
disableContextMenu: disableContextMenu
|
382
|
+
view: view
|
394
383
|
});
|
395
384
|
|
396
385
|
if (hasChildren && openedParentRowId === row.rowId) {
|
@@ -401,6 +390,7 @@ var HiTableBody = function (_React$Component) {
|
|
401
390
|
parentIndicatorColumn: row.parentIndicatorColumn,
|
402
391
|
parentLabel: row.parentLabel,
|
403
392
|
parentLabelIcon: row.parentLabelIcon,
|
393
|
+
parentDetailRows: row.detailRows,
|
404
394
|
children: row.children,
|
405
395
|
onClose: _this3.setOpenedParentRowId
|
406
396
|
}, BodyRowProps)));
|
@@ -409,43 +399,29 @@ var HiTableBody = function (_React$Component) {
|
|
409
399
|
}
|
410
400
|
|
411
401
|
// add opened detail rows
|
412
|
-
if (
|
413
|
-
row.
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
isDetail: true,
|
426
|
-
fixedColumnWidth: fixedColumnWidth,
|
427
|
-
disableContextMenu: disableContextMenu
|
428
|
-
};
|
429
|
-
|
430
|
-
tableRows.push(_react2.default.createElement(_BodyRow2.default, (0, _extends3.default)({ key: row.rowId + '-' + detailRow.rowId }, detailRowProps)));
|
431
|
-
});
|
432
|
-
}
|
402
|
+
if (hasDetailRows && openedDetailsRowIdList.includes(row.rowId)) {
|
403
|
+
row.detailRows.forEach(function (detailRow) {
|
404
|
+
var detailRowProps = {
|
405
|
+
row: detailRow,
|
406
|
+
columns: columns,
|
407
|
+
orderedColumns: orderedColumns,
|
408
|
+
view: view,
|
409
|
+
dense: dense,
|
410
|
+
sticky: sticky,
|
411
|
+
isDetail: true
|
412
|
+
};
|
413
|
+
|
414
|
+
tableRows.push(_react2.default.createElement(_BodyRow2.default, (0, _extends3.default)({ key: row.rowId + '-' + detailRow.rowId }, detailRowProps)));
|
433
415
|
});
|
434
416
|
}
|
435
417
|
});
|
436
418
|
|
437
|
-
var tBodyClasses = (0, _classnames2.default)(classes.tbody, (0, _defineProperty3.default)({}, classes.tbodyFixedWidth, fixedColumnWidth));
|
438
|
-
|
439
419
|
return _react2.default.createElement(
|
440
420
|
_Table.TableBody,
|
441
421
|
{
|
442
422
|
id: tabId + '-body',
|
443
|
-
className:
|
444
|
-
style:
|
445
|
-
height: height
|
446
|
-
}, loading && {
|
447
|
-
opacity: 0.6
|
448
|
-
}),
|
423
|
+
className: classes.tbody,
|
424
|
+
style: { height: height },
|
449
425
|
onScroll: onScroll
|
450
426
|
},
|
451
427
|
tableRows.map(function (tableRow) {
|
@@ -466,10 +442,7 @@ HiTableBody.defaultProps = {
|
|
466
442
|
dense: false,
|
467
443
|
height: 450,
|
468
444
|
sticky: true,
|
469
|
-
view: 'l'
|
470
|
-
loading: false,
|
471
|
-
disableContextMenu: true,
|
472
|
-
detailRowsOptions: {}
|
445
|
+
view: 'l'
|
473
446
|
};
|
474
447
|
HiTableBody.propTypes = process.env.NODE_ENV !== "production" ? {
|
475
448
|
/**
|
@@ -497,27 +470,10 @@ HiTableBody.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
497
470
|
* Densité d'affichage (joue sur la hauteur des lignes)
|
498
471
|
*/
|
499
472
|
dense: _propTypes2.default.bool,
|
500
|
-
/**
|
501
|
-
* Options utilisées pour décrire le comportement de lignes de détails
|
502
|
-
*/
|
503
|
-
detailRowsOptions: _propTypes2.default.object,
|
504
|
-
/**
|
505
|
-
* Active/désactive le menu contextuel au clic droit sur les cellules du tableau
|
506
|
-
*/
|
507
|
-
disableContextMenu: _propTypes2.default.bool.isRequired,
|
508
|
-
/**
|
509
|
-
* Fixe la taille des colonnes selon le type de vue
|
510
|
-
* Sinon les colonnes s'adaptent à l'espace disponible
|
511
|
-
*/
|
512
|
-
fixedColumnWidth: _propTypes2.default.bool,
|
513
473
|
/**
|
514
474
|
* Hauteur du tableau (px)
|
515
475
|
*/
|
516
476
|
height: _propTypes2.default.number,
|
517
|
-
/**
|
518
|
-
* État du tableau en cours de chargement des données
|
519
|
-
*/
|
520
|
-
loading: _propTypes2.default.bool,
|
521
477
|
/**
|
522
478
|
* Identifiant de la ou des colonnes sur la/lesquelles il y a une 'lookup' search
|
523
479
|
*/
|
@@ -87,8 +87,7 @@ var HiTableContextMenu = function (_React$Component) {
|
|
87
87
|
var _this = (0, _possibleConstructorReturn3.default)(this, (HiTableContextMenu.__proto__ || (0, _getPrototypeOf2.default)(HiTableContextMenu)).call(this, props));
|
88
88
|
|
89
89
|
_this.state = {
|
90
|
-
value: ''
|
91
|
-
label: ''
|
90
|
+
value: ''
|
92
91
|
};
|
93
92
|
|
94
93
|
_this.handleContextMenuOpen = _this.handleContextMenuOpen.bind(_this);
|
@@ -102,10 +101,7 @@ var HiTableContextMenu = function (_React$Component) {
|
|
102
101
|
(0, _createClass3.default)(HiTableContextMenu, [{
|
103
102
|
key: 'handleContextMenuOpen',
|
104
103
|
value: function handleContextMenuOpen(event) {
|
105
|
-
this.setState({
|
106
|
-
value: event.detail.data.value,
|
107
|
-
label: event.detail.data.label
|
108
|
-
});
|
104
|
+
this.setState({ value: event.detail.data.label });
|
109
105
|
}
|
110
106
|
}, {
|
111
107
|
key: 'handleClickCopy',
|
@@ -166,7 +162,7 @@ var HiTableContextMenu = function (_React$Component) {
|
|
166
162
|
_react2.default.createElement(
|
167
163
|
'span',
|
168
164
|
{ className: classes.title },
|
169
|
-
menuItem.title.replace('%s', _this2.state.
|
165
|
+
menuItem.title.replace('%s', _this2.state.value)
|
170
166
|
)
|
171
167
|
);
|
172
168
|
})
|
@@ -138,7 +138,7 @@ var HiTableFooterScroll = function (_React$Component) {
|
|
138
138
|
) : _react2.default.createElement(
|
139
139
|
_HiButton2.default,
|
140
140
|
{
|
141
|
-
|
141
|
+
raised: true,
|
142
142
|
color: 'primary',
|
143
143
|
className: classes.loadMoreButton,
|
144
144
|
onClick: function onClick() {
|
package/HiTable/HiTableHead.js
CHANGED
@@ -5,10 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.SORTED_COLUMN_ERROR_MESSAGE = 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 _reactProptypeConditionalRequire = require('react-proptype-conditional-requi
|
|
47
43
|
|
48
44
|
var _reactProptypeConditionalRequire2 = _interopRequireDefault(_reactProptypeConditionalRequire);
|
49
45
|
|
50
|
-
var _classnames = require('classnames');
|
51
|
-
|
52
|
-
var _classnames2 = _interopRequireDefault(_classnames);
|
53
|
-
|
54
46
|
var _Table = require('material-ui/Table');
|
55
47
|
|
56
48
|
var _PlusCircle = require('mdi-material-ui/PlusCircle');
|
@@ -87,13 +79,11 @@ var styles = exports.styles = function styles(theme) {
|
|
87
79
|
return {
|
88
80
|
thead: {
|
89
81
|
position: 'relative',
|
90
|
-
|
82
|
+
display: 'block' /*seperates the header from the body allowing it to be positioned*/
|
83
|
+
, width: '100%',
|
91
84
|
overflow: 'visible',
|
92
85
|
zIndex: 12
|
93
86
|
},
|
94
|
-
theadFixedWidth: {
|
95
|
-
display: 'block' /*seperates the header from the body allowing it to be positioned*/
|
96
|
-
},
|
97
87
|
theadRow: {
|
98
88
|
backgroundColor: theme.palette.background3,
|
99
89
|
zIndex: 12
|
@@ -236,8 +226,7 @@ var HiTableHead = function (_React$Component) {
|
|
236
226
|
sticky = _props.sticky,
|
237
227
|
translations = _props.translations,
|
238
228
|
view = _props.view,
|
239
|
-
lookupColumns = _props.lookupColumns
|
240
|
-
fixedColumnWidth = _props.fixedColumnWidth;
|
229
|
+
lookupColumns = _props.lookupColumns;
|
241
230
|
var _state = this.state,
|
242
231
|
hovered = _state.hovered,
|
243
232
|
openedOrderColumns = _state.openedOrderColumns,
|
@@ -245,7 +234,7 @@ var HiTableHead = function (_React$Component) {
|
|
245
234
|
|
246
235
|
|
247
236
|
var headerProps = (0, _extends3.default)({
|
248
|
-
className:
|
237
|
+
className: classes.thead
|
249
238
|
}, orderable && { onMouseEnter: this.handleEvent, onMouseLeave: this.handleEvent });
|
250
239
|
|
251
240
|
var unfixedColumnIsSet = false,
|
@@ -292,8 +281,8 @@ var HiTableHead = function (_React$Component) {
|
|
292
281
|
return _react2.default.createElement(_HeaderCell2.default, {
|
293
282
|
key: 'header-' + column.colId,
|
294
283
|
colId: column.colId,
|
295
|
-
type: column['
|
296
|
-
|
284
|
+
type: column['type'],
|
285
|
+
title: column['label'],
|
297
286
|
smallTitle: column['reducedLabel'],
|
298
287
|
selectable: firstColumn && selectable,
|
299
288
|
selected: selectedIdList.length > 0 ? selectedIdList.length === dataSource.length ? true : 'mixed' : false,
|
@@ -312,8 +301,7 @@ var HiTableHead = function (_React$Component) {
|
|
312
301
|
fixedWidth: fixed,
|
313
302
|
align: column['align'],
|
314
303
|
sticky: firstColumn && sticky,
|
315
|
-
lookedUp: lookupColumns.includes(column.colId)
|
316
|
-
fixedColumnWidth: fixedColumnWidth
|
304
|
+
lookedUp: lookupColumns.includes(column.colId)
|
317
305
|
});
|
318
306
|
}
|
319
307
|
}),
|
@@ -423,11 +411,6 @@ HiTableHead.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
423
411
|
* Active le filtre sur les colonnes filtrables
|
424
412
|
*/
|
425
413
|
filterable: _propTypes2.default.bool,
|
426
|
-
/**
|
427
|
-
* Fixe la taille des colonnes selon le type de vue
|
428
|
-
* Sinon les colonnes s'adaptent à l'espace disponible
|
429
|
-
*/
|
430
|
-
fixedColumnWidth: _propTypes2.default.bool,
|
431
414
|
/**
|
432
415
|
* Identifiant de la ou des colonnes sur la/lesquelles il y a une 'lookup' search
|
433
416
|
*/
|
package/HiTable/OrderColumns.js
CHANGED
@@ -141,8 +141,7 @@ var styles = exports.styles = function styles(theme) {
|
|
141
141
|
controlLabelRoot: {
|
142
142
|
marginLeft: 6,
|
143
143
|
marginBottom: 8,
|
144
|
-
fontSize: 15
|
145
|
-
width: 160
|
144
|
+
fontSize: 15
|
146
145
|
},
|
147
146
|
switchLabelRoot: {
|
148
147
|
marginLeft: 15,
|
@@ -151,10 +150,7 @@ var styles = exports.styles = function styles(theme) {
|
|
151
150
|
columnLabel: {
|
152
151
|
position: 'relative',
|
153
152
|
top: 5,
|
154
|
-
left: 5
|
155
|
-
overflow: 'hidden',
|
156
|
-
textOverflow: 'ellipsis',
|
157
|
-
whiteSpace: 'nowrap'
|
153
|
+
left: 5
|
158
154
|
},
|
159
155
|
label: {
|
160
156
|
fontWeight: 'inherit'
|