@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
@@ -2,24 +2,23 @@ import _extends from 'babel-runtime/helpers/extends';
|
|
2
2
|
import React from 'react';
|
3
3
|
import PropTypes from 'prop-types';
|
4
4
|
import { TableBody, TableRow } from 'material-ui/Table';
|
5
|
-
import
|
6
|
-
import { withStyles } from '../styles';
|
5
|
+
import { withStyles, withTheme } from '../styles';
|
7
6
|
import BodyRow from './BodyRow';
|
8
7
|
import ChildRow from './ChildRow';
|
9
8
|
import HiStickyRow from './HiStickyRow';
|
10
9
|
import * as cst from './constants';
|
10
|
+
import { SORTED_COLUMN_ERROR_MESSAGE } from './HiTableHead';
|
11
|
+
import isRequiredIf from 'react-proptype-conditional-require';
|
11
12
|
|
12
13
|
export const styles = theme => ({
|
13
14
|
tbody: {
|
14
15
|
position: 'relative',
|
15
|
-
|
16
|
+
display: 'block' /* seperates the tbody from the header */
|
17
|
+
, width: '100%',
|
16
18
|
overflowX: 'hidden',
|
17
19
|
overflowY: 'auto',
|
18
20
|
zIndex: 11
|
19
21
|
},
|
20
|
-
tbodyFixedWidth: {
|
21
|
-
display: 'block' /* seperates the tbody from the header */
|
22
|
-
},
|
23
22
|
tbodyRows: {
|
24
23
|
backgroundColor: theme.palette.background3
|
25
24
|
},
|
@@ -150,16 +149,14 @@ class HiTableBody extends React.Component {
|
|
150
149
|
/**
|
151
150
|
* Définit les id des lignes dont les détails sont affichés ou null
|
152
151
|
* (ajoute une ligne pour chaque détails)
|
153
|
-
* vérifie aussi le type du détail
|
154
152
|
*
|
155
153
|
* @param rowId
|
156
|
-
* @param type
|
157
154
|
*/
|
158
|
-
toggleOpenedDetailsRowId(rowId
|
155
|
+
toggleOpenedDetailsRowId(rowId) {
|
159
156
|
this.setState(prevState => ({
|
160
|
-
openedDetailsRowIdList: prevState.openedDetailsRowIdList.
|
161
|
-
return
|
162
|
-
}) : [...prevState.openedDetailsRowIdList,
|
157
|
+
openedDetailsRowIdList: prevState.openedDetailsRowIdList.includes(rowId) ? prevState.openedDetailsRowIdList.filter(id => {
|
158
|
+
return id !== rowId;
|
159
|
+
}) : [...prevState.openedDetailsRowIdList, rowId]
|
163
160
|
}));
|
164
161
|
this.props.addNewRowRefs();
|
165
162
|
}
|
@@ -194,11 +191,7 @@ class HiTableBody extends React.Component {
|
|
194
191
|
numberLocale,
|
195
192
|
groupByIds,
|
196
193
|
sortedColumnId,
|
197
|
-
lookupColumns
|
198
|
-
loading,
|
199
|
-
fixedColumnWidth,
|
200
|
-
disableContextMenu,
|
201
|
-
detailRowsOptions
|
194
|
+
lookupColumns
|
202
195
|
} = this.props;
|
203
196
|
|
204
197
|
const { openedParentRowId, openedDetailsRowIdList } = this.state;
|
@@ -269,6 +262,9 @@ class HiTableBody extends React.Component {
|
|
269
262
|
// has children
|
270
263
|
const hasChildren = row.hasOwnProperty('children') && row.children.length > 0;
|
271
264
|
|
265
|
+
// has detail rows
|
266
|
+
const hasDetailRows = row.hasOwnProperty('detailRows') && row.detailRows.length > 0;
|
267
|
+
|
272
268
|
const BodyRowProps = _extends({
|
273
269
|
columns,
|
274
270
|
dateLocale,
|
@@ -280,9 +276,9 @@ class HiTableBody extends React.Component {
|
|
280
276
|
}, hasChildren && {
|
281
277
|
openedAsParent: openedParentRowId === row.rowId,
|
282
278
|
onClick: this.setOpenedParentRowId // if row has children, onClick display the children
|
279
|
+
}, hasDetailRows && {
|
280
|
+
onOpenRowDetails: this.toggleOpenedDetailsRowId
|
283
281
|
}, {
|
284
|
-
onOpenRowDetails: this.toggleOpenedDetailsRowId,
|
285
|
-
detailRowsOptions,
|
286
282
|
orderedColumns
|
287
283
|
}, selectable && {
|
288
284
|
selectable,
|
@@ -292,9 +288,7 @@ class HiTableBody extends React.Component {
|
|
292
288
|
row,
|
293
289
|
sticky,
|
294
290
|
tabId,
|
295
|
-
view
|
296
|
-
fixedColumnWidth,
|
297
|
-
disableContextMenu
|
291
|
+
view
|
298
292
|
});
|
299
293
|
|
300
294
|
if (hasChildren && openedParentRowId === row.rowId) {
|
@@ -305,6 +299,7 @@ class HiTableBody extends React.Component {
|
|
305
299
|
parentIndicatorColumn: row.parentIndicatorColumn,
|
306
300
|
parentLabel: row.parentLabel,
|
307
301
|
parentLabelIcon: row.parentLabelIcon,
|
302
|
+
parentDetailRows: row.detailRows,
|
308
303
|
children: row.children,
|
309
304
|
onClose: this.setOpenedParentRowId
|
310
305
|
}, BodyRowProps)));
|
@@ -313,43 +308,29 @@ class HiTableBody extends React.Component {
|
|
313
308
|
}
|
314
309
|
|
315
310
|
// add opened detail rows
|
316
|
-
if (
|
317
|
-
row.
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
isDetail: true,
|
328
|
-
fixedColumnWidth,
|
329
|
-
disableContextMenu
|
330
|
-
};
|
311
|
+
if (hasDetailRows && openedDetailsRowIdList.includes(row.rowId)) {
|
312
|
+
row.detailRows.forEach(detailRow => {
|
313
|
+
const detailRowProps = {
|
314
|
+
row: detailRow,
|
315
|
+
columns,
|
316
|
+
orderedColumns,
|
317
|
+
view,
|
318
|
+
dense,
|
319
|
+
sticky,
|
320
|
+
isDetail: true
|
321
|
+
};
|
331
322
|
|
332
|
-
|
333
|
-
});
|
334
|
-
}
|
323
|
+
tableRows.push(React.createElement(BodyRow, _extends({ key: `${row.rowId}-${detailRow.rowId}` }, detailRowProps)));
|
335
324
|
});
|
336
325
|
}
|
337
326
|
});
|
338
327
|
|
339
|
-
const tBodyClasses = classNames(classes.tbody, {
|
340
|
-
[classes.tbodyFixedWidth]: fixedColumnWidth
|
341
|
-
});
|
342
|
-
|
343
328
|
return React.createElement(
|
344
329
|
TableBody,
|
345
330
|
{
|
346
331
|
id: `${tabId}-body`,
|
347
|
-
className:
|
348
|
-
style:
|
349
|
-
height
|
350
|
-
}, loading && {
|
351
|
-
opacity: 0.6
|
352
|
-
}),
|
332
|
+
className: classes.tbody,
|
333
|
+
style: { height },
|
353
334
|
onScroll: onScroll
|
354
335
|
},
|
355
336
|
tableRows.map(tableRow => {
|
@@ -368,10 +349,7 @@ HiTableBody.defaultProps = {
|
|
368
349
|
dense: false,
|
369
350
|
height: 450,
|
370
351
|
sticky: true,
|
371
|
-
view: 'l'
|
372
|
-
loading: false,
|
373
|
-
disableContextMenu: true,
|
374
|
-
detailRowsOptions: {}
|
352
|
+
view: 'l'
|
375
353
|
};
|
376
354
|
HiTableBody.propTypes = process.env.NODE_ENV !== "production" ? {
|
377
355
|
/**
|
@@ -399,27 +377,10 @@ HiTableBody.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
399
377
|
* Densité d'affichage (joue sur la hauteur des lignes)
|
400
378
|
*/
|
401
379
|
dense: PropTypes.bool,
|
402
|
-
/**
|
403
|
-
* Options utilisées pour décrire le comportement de lignes de détails
|
404
|
-
*/
|
405
|
-
detailRowsOptions: PropTypes.object,
|
406
|
-
/**
|
407
|
-
* Active/désactive le menu contextuel au clic droit sur les cellules du tableau
|
408
|
-
*/
|
409
|
-
disableContextMenu: PropTypes.bool.isRequired,
|
410
|
-
/**
|
411
|
-
* Fixe la taille des colonnes selon le type de vue
|
412
|
-
* Sinon les colonnes s'adaptent à l'espace disponible
|
413
|
-
*/
|
414
|
-
fixedColumnWidth: PropTypes.bool,
|
415
380
|
/**
|
416
381
|
* Hauteur du tableau (px)
|
417
382
|
*/
|
418
383
|
height: PropTypes.number,
|
419
|
-
/**
|
420
|
-
* État du tableau en cours de chargement des données
|
421
|
-
*/
|
422
|
-
loading: PropTypes.bool,
|
423
384
|
/**
|
424
385
|
* Identifiant de la ou des colonnes sur la/lesquelles il y a une 'lookup' search
|
425
386
|
*/
|
@@ -39,8 +39,7 @@ class HiTableContextMenu extends React.Component {
|
|
39
39
|
super(props);
|
40
40
|
|
41
41
|
this.state = {
|
42
|
-
value: ''
|
43
|
-
label: ''
|
42
|
+
value: ''
|
44
43
|
};
|
45
44
|
|
46
45
|
this.handleContextMenuOpen = this.handleContextMenuOpen.bind(this);
|
@@ -51,10 +50,7 @@ class HiTableContextMenu extends React.Component {
|
|
51
50
|
}
|
52
51
|
|
53
52
|
handleContextMenuOpen(event) {
|
54
|
-
this.setState({
|
55
|
-
value: event.detail.data.value,
|
56
|
-
label: event.detail.data.label
|
57
|
-
});
|
53
|
+
this.setState({ value: event.detail.data.label });
|
58
54
|
}
|
59
55
|
|
60
56
|
handleClickCopy(event, data) {
|
@@ -104,7 +100,7 @@ class HiTableContextMenu extends React.Component {
|
|
104
100
|
React.createElement(
|
105
101
|
'span',
|
106
102
|
{ className: classes.title },
|
107
|
-
menuItem.title.replace('%s', this.state.
|
103
|
+
menuItem.title.replace('%s', this.state.value)
|
108
104
|
)
|
109
105
|
);
|
110
106
|
})
|
@@ -3,7 +3,6 @@ import React from 'react';
|
|
3
3
|
import { findDOMNode } from 'react-dom';
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import isRequiredIf from 'react-proptype-conditional-require';
|
6
|
-
import classNames from 'classnames';
|
7
6
|
|
8
7
|
import { TableHead, TableRow, TableCell } from 'material-ui/Table';
|
9
8
|
import PlusCircleIcon from 'mdi-material-ui/PlusCircle';
|
@@ -19,13 +18,11 @@ import { MANDATORY_COLUMN_ERROR_MESSAGE } from './HiTable';
|
|
19
18
|
export const styles = theme => ({
|
20
19
|
thead: {
|
21
20
|
position: 'relative',
|
22
|
-
|
21
|
+
display: 'block' /*seperates the header from the body allowing it to be positioned*/
|
22
|
+
, width: '100%',
|
23
23
|
overflow: 'visible',
|
24
24
|
zIndex: 12
|
25
25
|
},
|
26
|
-
theadFixedWidth: {
|
27
|
-
display: 'block' /*seperates the header from the body allowing it to be positioned*/
|
28
|
-
},
|
29
26
|
theadRow: {
|
30
27
|
backgroundColor: theme.palette.background3,
|
31
28
|
zIndex: 12
|
@@ -151,16 +148,13 @@ class HiTableHead extends React.Component {
|
|
151
148
|
sticky,
|
152
149
|
translations,
|
153
150
|
view,
|
154
|
-
lookupColumns
|
155
|
-
fixedColumnWidth
|
151
|
+
lookupColumns
|
156
152
|
} = this.props;
|
157
153
|
|
158
154
|
const { hovered, openedOrderColumns, orderColumnsAnchorEl } = this.state;
|
159
155
|
|
160
156
|
let headerProps = _extends({
|
161
|
-
className:
|
162
|
-
[classes.theadFixedWidth]: fixedColumnWidth
|
163
|
-
})
|
157
|
+
className: classes.thead
|
164
158
|
}, orderable && { onMouseEnter: this.handleEvent, onMouseLeave: this.handleEvent });
|
165
159
|
|
166
160
|
let unfixedColumnIsSet = false,
|
@@ -207,8 +201,8 @@ class HiTableHead extends React.Component {
|
|
207
201
|
return React.createElement(HeaderCell, {
|
208
202
|
key: 'header-' + column.colId,
|
209
203
|
colId: column.colId,
|
210
|
-
type: column['
|
211
|
-
|
204
|
+
type: column['type'],
|
205
|
+
title: column['label'],
|
212
206
|
smallTitle: column['reducedLabel'],
|
213
207
|
selectable: firstColumn && selectable,
|
214
208
|
selected: selectedIdList.length > 0 ? selectedIdList.length === dataSource.length ? true : 'mixed' : false,
|
@@ -227,8 +221,7 @@ class HiTableHead extends React.Component {
|
|
227
221
|
fixedWidth: fixed,
|
228
222
|
align: column['align'],
|
229
223
|
sticky: firstColumn && sticky,
|
230
|
-
lookedUp: lookupColumns.includes(column.colId)
|
231
|
-
fixedColumnWidth: fixedColumnWidth
|
224
|
+
lookedUp: lookupColumns.includes(column.colId)
|
232
225
|
});
|
233
226
|
}
|
234
227
|
}),
|
@@ -336,11 +329,6 @@ HiTableHead.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
336
329
|
* Active le filtre sur les colonnes filtrables
|
337
330
|
*/
|
338
331
|
filterable: PropTypes.bool,
|
339
|
-
/**
|
340
|
-
* Fixe la taille des colonnes selon le type de vue
|
341
|
-
* Sinon les colonnes s'adaptent à l'espace disponible
|
342
|
-
*/
|
343
|
-
fixedColumnWidth: PropTypes.bool,
|
344
332
|
/**
|
345
333
|
* Identifiant de la ou des colonnes sur la/lesquelles il y a une 'lookup' search
|
346
334
|
*/
|
@@ -63,8 +63,7 @@ export const styles = theme => ({
|
|
63
63
|
controlLabelRoot: {
|
64
64
|
marginLeft: 6,
|
65
65
|
marginBottom: 8,
|
66
|
-
fontSize: 15
|
67
|
-
width: 160
|
66
|
+
fontSize: 15
|
68
67
|
},
|
69
68
|
switchLabelRoot: {
|
70
69
|
marginLeft: 15,
|
@@ -73,10 +72,7 @@ export const styles = theme => ({
|
|
73
72
|
columnLabel: {
|
74
73
|
position: 'relative',
|
75
74
|
top: 5,
|
76
|
-
left: 5
|
77
|
-
overflow: 'hidden',
|
78
|
-
textOverflow: 'ellipsis',
|
79
|
-
whiteSpace: 'nowrap'
|
75
|
+
left: 5
|
80
76
|
},
|
81
77
|
label: {
|
82
78
|
fontWeight: 'inherit'
|
package/es/HiTopBar/HiTopBar.js
CHANGED
@@ -5,13 +5,14 @@ import AppBar from 'material-ui/AppBar';
|
|
5
5
|
import Toolbar from 'material-ui/Toolbar';
|
6
6
|
import IconButton from 'material-ui/IconButton';
|
7
7
|
import Collapse from 'material-ui/transitions/Collapse';
|
8
|
-
import { ChevronDoubleUp, ChevronDoubleDown, Menu as MenuIcon, ArrowLeft, DotsVertical } from 'mdi-material-ui';
|
8
|
+
import { ChevronDoubleUp, ChevronDoubleDown, Menu as MenuIcon, ArrowLeft, DotsVertical, MenuDown } from 'mdi-material-ui';
|
9
9
|
import classNames from 'classnames';
|
10
10
|
import Menu, { MenuItem } from 'material-ui/Menu';
|
11
11
|
import withStyles from '../styles/withStyles';
|
12
12
|
import HiIconBuilder from '../utils/HiIconBuilder';
|
13
13
|
import HiBadge from '../HiBadge';
|
14
14
|
import HiButton from '../HiButton';
|
15
|
+
import HiInput from '../HiForm/HiInput';
|
15
16
|
import HiColoredLabel from '../HiColoredLabel';
|
16
17
|
import { getContrastedTextColor, fade } from '../styles/colorManipulator';
|
17
18
|
|
@@ -56,9 +57,7 @@ export const styles = theme => ({
|
|
56
57
|
marginRight: 1.5 * theme.spacing.unit,
|
57
58
|
borderLeft: 'solid 1px',
|
58
59
|
borderColor: fade('#000', 0.12),
|
59
|
-
display: 'inline-block'
|
60
|
-
minWidth: 144,
|
61
|
-
maxWidth: 288
|
60
|
+
display: 'inline-block'
|
62
61
|
},
|
63
62
|
accountSelectorButtonLabel: {
|
64
63
|
textOverflow: 'ellipsis',
|
@@ -77,9 +76,6 @@ export const styles = theme => ({
|
|
77
76
|
color: theme.palette.text.secondary,
|
78
77
|
minWidth: 32
|
79
78
|
},
|
80
|
-
betaWithoutAccountSelector: {
|
81
|
-
marginLeft: 1.5 * theme.spacing.unit
|
82
|
-
},
|
83
79
|
searchInput: {
|
84
80
|
backgroundColor: `${theme.palette.background1} !important`
|
85
81
|
},
|
@@ -99,9 +95,6 @@ export const styles = theme => ({
|
|
99
95
|
textTransform: 'capitalize',
|
100
96
|
fontWeight: theme.typography.fontWeightRegular,
|
101
97
|
minWidth: 50
|
102
|
-
},
|
103
|
-
collapseOverflow: {
|
104
|
-
overflow: 'inherit'
|
105
98
|
}
|
106
99
|
});
|
107
100
|
|
@@ -124,14 +117,18 @@ class HiTopBar extends React.Component {
|
|
124
117
|
|
125
118
|
this.state = {
|
126
119
|
collapsed: false,
|
120
|
+
searchFocus: false,
|
127
121
|
menuAnchor: null
|
128
122
|
};
|
129
123
|
|
130
|
-
this.
|
124
|
+
this.toggleCollapse = this.toggleCollapse.bind(this);
|
125
|
+
this.handleFocus = this.handleFocus.bind(this);
|
126
|
+
this.handleBlur = this.handleBlur.bind(this);
|
131
127
|
this.handleClickMenu = this.handleClickMenu.bind(this);
|
132
128
|
this.handleOpenMenu = this.handleOpenMenu.bind(this);
|
133
129
|
this.handleCloseMenu = this.handleCloseMenu.bind(this);
|
134
130
|
this.handleMenuItemClick = this.handleMenuItemClick.bind(this);
|
131
|
+
this.handleClickInputButton = this.handleClickInputButton.bind(this);
|
135
132
|
}
|
136
133
|
|
137
134
|
handleOpenMenu(event) {
|
@@ -147,12 +144,41 @@ class HiTopBar extends React.Component {
|
|
147
144
|
callback();
|
148
145
|
}
|
149
146
|
|
150
|
-
|
147
|
+
toggleCollapse() {
|
151
148
|
this.setState({ collapsed: !this.state.collapsed });
|
152
149
|
}
|
153
150
|
|
151
|
+
handleFocus() {
|
152
|
+
this.setState({ searchFocus: true });
|
153
|
+
|
154
|
+
if (this.props.onSearchFocus) {
|
155
|
+
this.props.onSearchFocus();
|
156
|
+
}
|
157
|
+
}
|
158
|
+
|
159
|
+
handleClickInputButton(event) {
|
160
|
+
this.setState({ searchFocus: true });
|
161
|
+
|
162
|
+
if (this.props.onClickInputButton) {
|
163
|
+
this.props.onClickInputButton();
|
164
|
+
}
|
165
|
+
// Stop propagation to cancel input focus
|
166
|
+
event.stopPropagation();
|
167
|
+
}
|
168
|
+
|
169
|
+
handleBlur(event) {
|
170
|
+
if (!this.overlay.contains(event.relatedTarget)) {
|
171
|
+
this.setState({ searchFocus: false });
|
172
|
+
}
|
173
|
+
|
174
|
+
if (this.props.onSearchBlur) {
|
175
|
+
this.props.onSearchBlur();
|
176
|
+
}
|
177
|
+
}
|
178
|
+
|
154
179
|
handleClickMenu() {
|
155
180
|
this.props.onClickReturn();
|
181
|
+
this.setState({ searchFocus: false });
|
156
182
|
}
|
157
183
|
|
158
184
|
render() {
|
@@ -167,12 +193,47 @@ class HiTopBar extends React.Component {
|
|
167
193
|
translations,
|
168
194
|
onClickMenu,
|
169
195
|
accountSelectorContent,
|
170
|
-
refButtons,
|
171
196
|
searchInput,
|
172
|
-
|
197
|
+
searchValue
|
173
198
|
} = this.props;
|
174
199
|
|
175
|
-
const colorPrimaryClass = searchFocus ? classes.colorPrimaryFocus : classes.colorPrimary;
|
200
|
+
const colorPrimaryClass = this.state.searchFocus ? classes.colorPrimaryFocus : classes.colorPrimary;
|
201
|
+
|
202
|
+
const inputClass = classNames({
|
203
|
+
[classes.searchInput]: !this.state.searchFocus,
|
204
|
+
[classes.searchInputFocused]: this.state.searchFocus
|
205
|
+
});
|
206
|
+
|
207
|
+
const endAdornment = React.createElement(
|
208
|
+
HiButton,
|
209
|
+
{
|
210
|
+
className: classes.endAdornmentButton,
|
211
|
+
onClick: this.handleClickInputButton
|
212
|
+
},
|
213
|
+
React.createElement(
|
214
|
+
Hidden,
|
215
|
+
{ smDown: true },
|
216
|
+
React.createElement(
|
217
|
+
'span',
|
218
|
+
null,
|
219
|
+
translations.all_types
|
220
|
+
)
|
221
|
+
),
|
222
|
+
React.createElement(MenuDown, { style: { color: fade('#000', 0.54) } })
|
223
|
+
);
|
224
|
+
|
225
|
+
const input = searchInput || React.createElement(HiInput, {
|
226
|
+
name: 'top-bar-search',
|
227
|
+
placeholder: translations.search,
|
228
|
+
value: searchValue,
|
229
|
+
onChange: this.props.onSearchChange,
|
230
|
+
startAdornment: 'magnify',
|
231
|
+
endAdornment: endAdornment,
|
232
|
+
classes: { root: inputClass },
|
233
|
+
onFocus: this.handleFocus,
|
234
|
+
onBlur: this.handleBlur,
|
235
|
+
onReset: this.props.onSearchReset
|
236
|
+
});
|
176
237
|
|
177
238
|
const notificationButton = notificationValue > 0 ? React.createElement(
|
178
239
|
HiButton,
|
@@ -204,19 +265,14 @@ class HiTopBar extends React.Component {
|
|
204
265
|
null,
|
205
266
|
React.createElement(
|
206
267
|
Collapse,
|
207
|
-
{
|
208
|
-
'in': !this.state.collapsed,
|
209
|
-
className: classNames({
|
210
|
-
[classes.collapseOverflow]: !hideable
|
211
|
-
})
|
212
|
-
},
|
268
|
+
{ 'in': !this.state.collapsed },
|
213
269
|
React.createElement(
|
214
270
|
Toolbar,
|
215
271
|
{ className: classes.toolbar },
|
216
272
|
React.createElement(
|
217
273
|
'div',
|
218
|
-
{ ref:
|
219
|
-
searchFocus ? React.createElement(
|
274
|
+
{ ref: div => this.overlay = div },
|
275
|
+
this.state.searchFocus ? React.createElement(
|
220
276
|
HiButton,
|
221
277
|
{
|
222
278
|
className: classes.leftButton,
|
@@ -247,7 +303,7 @@ class HiTopBar extends React.Component {
|
|
247
303
|
React.createElement(
|
248
304
|
'div',
|
249
305
|
{ className: classes.flex },
|
250
|
-
|
306
|
+
input
|
251
307
|
),
|
252
308
|
notificationButton,
|
253
309
|
hasAccountSelector && React.createElement(
|
@@ -263,9 +319,6 @@ class HiTopBar extends React.Component {
|
|
263
319
|
accountSelectorContent
|
264
320
|
),
|
265
321
|
beta && React.createElement(HiColoredLabel, {
|
266
|
-
className: classNames({
|
267
|
-
[classes.betaWithoutAccountSelector]: !hasAccountSelector
|
268
|
-
}),
|
269
322
|
label: 'BETA',
|
270
323
|
beta: true,
|
271
324
|
color: theme.palette.neutral.dark
|
@@ -273,7 +326,7 @@ class HiTopBar extends React.Component {
|
|
273
326
|
(hideable || hasSettings) && React.createElement(
|
274
327
|
IconButton,
|
275
328
|
{ color: 'inherit', className: classes.iconButton },
|
276
|
-
hideable && React.createElement(ChevronDoubleUp, { onClick: this.
|
329
|
+
hideable && React.createElement(ChevronDoubleUp, { onClick: this.toggleCollapse }),
|
277
330
|
hasSettings && React.createElement(HiIconBuilder, {
|
278
331
|
onClick: this.props.onClickSettings,
|
279
332
|
icon: 'fa-gear',
|
@@ -285,7 +338,7 @@ class HiTopBar extends React.Component {
|
|
285
338
|
hideable && this.state.collapsed && React.createElement(
|
286
339
|
IconButton,
|
287
340
|
{
|
288
|
-
onClick: this.
|
341
|
+
onClick: this.toggleCollapse,
|
289
342
|
color: 'inherit',
|
290
343
|
className: classes.showTopBarButton
|
291
344
|
},
|
@@ -301,8 +354,8 @@ class HiTopBar extends React.Component {
|
|
301
354
|
{ className: classes.toolbar },
|
302
355
|
React.createElement(
|
303
356
|
'div',
|
304
|
-
{ ref:
|
305
|
-
searchFocus ? React.createElement(
|
357
|
+
{ ref: div => this.overlay = div },
|
358
|
+
this.state.searchFocus ? React.createElement(
|
306
359
|
IconButton,
|
307
360
|
{ className: classes.leftButtonMobile, color: 'inherit' },
|
308
361
|
_ref4
|
@@ -373,7 +426,6 @@ HiTopBar.defaultProps = {
|
|
373
426
|
hideable: false,
|
374
427
|
hasSettings: false,
|
375
428
|
hasAccountSelector: false,
|
376
|
-
searchFocus: false,
|
377
429
|
translations: {
|
378
430
|
back: 'Back',
|
379
431
|
menu: 'Menu',
|
@@ -414,6 +466,10 @@ HiTopBar.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
414
466
|
* Fonction de callback au click sur l'accountSelector'
|
415
467
|
*/
|
416
468
|
onClickAccountSelector: PropTypes.func,
|
469
|
+
/**
|
470
|
+
* Fonction de callback au click sur le menu
|
471
|
+
*/
|
472
|
+
onClickInputButton: PropTypes.func.isRequired,
|
417
473
|
/**
|
418
474
|
* Fonction de callback au click sur le menu
|
419
475
|
*/
|
@@ -431,22 +487,34 @@ HiTopBar.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
431
487
|
*/
|
432
488
|
onClickSettings: PropTypes.func,
|
433
489
|
/**
|
434
|
-
*
|
435
|
-
* [here](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning).
|
490
|
+
* Fonction de callback au blur du champs de recharge (si searchInput vide)
|
436
491
|
*/
|
437
|
-
|
492
|
+
onSearchBlur: PropTypes.func,
|
493
|
+
/**
|
494
|
+
* Fonction de callback au changement du champs input (si searchInput vide)
|
495
|
+
*/
|
496
|
+
onSearchChange: PropTypes.func,
|
497
|
+
/**
|
498
|
+
* Fonction de callback au focus sur le champs de recherche (si searchInput vide)
|
499
|
+
*/
|
500
|
+
onSearchFocus: PropTypes.func,
|
438
501
|
/**
|
439
|
-
*
|
502
|
+
* Fonction de callback au reset du champs de recherche (si searchInput vide)
|
440
503
|
*/
|
441
|
-
|
504
|
+
onSearchReset: PropTypes.func,
|
442
505
|
/**
|
443
|
-
*
|
506
|
+
* Positionement de la topBar. The behavior of the different options is described
|
507
|
+
* [here](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning).
|
444
508
|
*/
|
445
|
-
|
509
|
+
position: PropTypes.oneOf(['fixed', 'absolute', 'sticky', 'static']),
|
446
510
|
/**
|
447
511
|
* Input de recherche
|
448
512
|
*/
|
449
|
-
searchInput: PropTypes.node
|
513
|
+
searchInput: PropTypes.node,
|
514
|
+
/**
|
515
|
+
* Valeur du champs de recherche (si searchInput vide)
|
516
|
+
*/
|
517
|
+
searchValue: PropTypes.node,
|
450
518
|
/**
|
451
519
|
* @ignore
|
452
520
|
*/
|
@@ -89,9 +89,6 @@ const light = {
|
|
89
89
|
appBar: '#fff',
|
90
90
|
paper: '#fff',
|
91
91
|
default: grey[50]
|
92
|
-
},
|
93
|
-
dot: {
|
94
|
-
neutral: '#707070'
|
95
92
|
}
|
96
93
|
};
|
97
94
|
|
@@ -159,9 +156,6 @@ const dark = {
|
|
159
156
|
appBar: '#fff',
|
160
157
|
paper: '#fff',
|
161
158
|
default: grey[50]
|
162
|
-
},
|
163
|
-
dot: {
|
164
|
-
neutral: '#707070'
|
165
159
|
}
|
166
160
|
};
|
167
161
|
|
@@ -244,10 +238,6 @@ const typography = {
|
|
244
238
|
body4: {
|
245
239
|
fontSize: 12,
|
246
240
|
fontFamily
|
247
|
-
},
|
248
|
-
body5: {
|
249
|
-
fontSize: 11,
|
250
|
-
fontFamily
|
251
241
|
}
|
252
242
|
};
|
253
243
|
|
@@ -281,7 +271,6 @@ function createHiMuiTheme(options = {}) {
|
|
281
271
|
inputDisabled: shades[type].inputDisabled,
|
282
272
|
tableLine: shades[type].tableLine,
|
283
273
|
background: shades[type].background,
|
284
|
-
dot: shades[type].dot,
|
285
274
|
status: statusPalette,
|
286
275
|
primary: blue,
|
287
276
|
secondary: yellow
|