@hipay/hipay-material-ui 1.0.0-beta.19 → 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.
- 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
|
@@ -69,18 +69,13 @@ var _HiIconBuilder = require('../utils/HiIconBuilder');
|
|
|
69
69
|
|
|
70
70
|
var _HiIconBuilder2 = _interopRequireDefault(_HiIconBuilder);
|
|
71
71
|
|
|
72
|
-
var _HiColoredLabel = require('../HiColoredLabel');
|
|
73
|
-
|
|
74
|
-
var _HiColoredLabel2 = _interopRequireDefault(_HiColoredLabel);
|
|
75
|
-
|
|
76
72
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
77
73
|
|
|
78
74
|
var styles = exports.styles = function styles(theme) {
|
|
79
75
|
return {
|
|
80
76
|
listItem: {
|
|
81
77
|
padding: 9 + 'px 0px',
|
|
82
|
-
fontWeight: theme.typography.fontWeightRegular
|
|
83
|
-
maxHeight: 40
|
|
78
|
+
fontWeight: theme.typography.fontWeightRegular
|
|
84
79
|
},
|
|
85
80
|
listItemTitle: {
|
|
86
81
|
padding: 9 + 'px 0px',
|
|
@@ -117,15 +112,11 @@ var styles = exports.styles = function styles(theme) {
|
|
|
117
112
|
fontWeight: 'inherit',
|
|
118
113
|
width: '100%'
|
|
119
114
|
}),
|
|
120
|
-
listItemSecondaryText: (0, _extends3.default)({}, theme.typography.
|
|
115
|
+
listItemSecondaryText: (0, _extends3.default)({}, theme.typography.body4, {
|
|
121
116
|
fontWeight: theme.typography.fontWeightLight,
|
|
122
|
-
marginLeft: theme.spacing.unit
|
|
123
|
-
color: theme.palette.neutral.normal
|
|
117
|
+
marginLeft: theme.spacing.unit
|
|
124
118
|
}),
|
|
125
119
|
listItemInfoText: (0, _extends3.default)({
|
|
126
|
-
whiteSpace: 'nowrap',
|
|
127
|
-
overflow: 'hidden',
|
|
128
|
-
textOverflow: 'ellipsis',
|
|
129
120
|
color: theme.palette.neutral.normal
|
|
130
121
|
}, theme.typography.body4, {
|
|
131
122
|
fontWeight: theme.typography.fontWeightRegular,
|
|
@@ -171,11 +162,6 @@ var styles = exports.styles = function styles(theme) {
|
|
|
171
162
|
color: '#000000'
|
|
172
163
|
}
|
|
173
164
|
},
|
|
174
|
-
labelHighlightColored: {
|
|
175
|
-
'&>strong': {
|
|
176
|
-
fontWeight: theme.typography.fontWeightMedium
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
165
|
primaryHighlight: {
|
|
180
166
|
fontWeight: theme.typography.fontWeightMedium,
|
|
181
167
|
color: theme.palette.business.primary.normal,
|
|
@@ -224,30 +210,22 @@ var HiSelectableListItem = function (_React$Component) {
|
|
|
224
210
|
'div',
|
|
225
211
|
{ className: classes.listItemContent, 'data-id': item.id },
|
|
226
212
|
!effectiveCheckbox && _react2.default.createElement(_HiIconBuilder2.default, { icon: item.icon, className: classes.icon }),
|
|
227
|
-
|
|
228
|
-
_react2.default.createElement(
|
|
229
|
-
'span',
|
|
230
|
-
{ className: classes.listItemSecondaryText },
|
|
231
|
-
item.secondaryLabel
|
|
232
|
-
),
|
|
213
|
+
item.label,
|
|
214
|
+
_react2.default.createElement('span', { className: classes.listItemSecondaryText }),
|
|
233
215
|
childrenIndicator
|
|
234
216
|
);
|
|
235
217
|
case 'image':
|
|
236
218
|
var img = '';
|
|
237
219
|
if (typeof item.img !== 'undefined') {
|
|
238
|
-
img = _react2.default.createElement('img', { src: item.img,
|
|
220
|
+
img = _react2.default.createElement('img', { src: item.img, className: classes.imgListItem });
|
|
239
221
|
}
|
|
240
222
|
|
|
241
223
|
return _react2.default.createElement(
|
|
242
224
|
'div',
|
|
243
225
|
{ className: classes.listItemContent, 'data-id': item.id },
|
|
244
226
|
img,
|
|
245
|
-
|
|
246
|
-
_react2.default.createElement(
|
|
247
|
-
'span',
|
|
248
|
-
{ className: classes.listItemSecondaryText },
|
|
249
|
-
item.secondaryLabel
|
|
250
|
-
),
|
|
227
|
+
item.label,
|
|
228
|
+
_react2.default.createElement('span', { className: classes.listItemSecondaryText }),
|
|
251
229
|
childrenIndicator
|
|
252
230
|
);
|
|
253
231
|
case 'primary-highlight':
|
|
@@ -257,7 +235,7 @@ var HiSelectableListItem = function (_React$Component) {
|
|
|
257
235
|
return _react2.default.createElement(
|
|
258
236
|
'div',
|
|
259
237
|
{ className: itemPrimaryHighlightClass, 'data-id': item.id },
|
|
260
|
-
|
|
238
|
+
item.label
|
|
261
239
|
);
|
|
262
240
|
case 'text':
|
|
263
241
|
default:
|
|
@@ -266,12 +244,14 @@ var HiSelectableListItem = function (_React$Component) {
|
|
|
266
244
|
return _react2.default.createElement(
|
|
267
245
|
'div',
|
|
268
246
|
{ className: itemTextClass, 'data-id': item.id },
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
),
|
|
247
|
+
item.labelHighlight && _react2.default.createElement('span', {
|
|
248
|
+
className: classes.labelHighlight,
|
|
249
|
+
dangerouslySetInnerHTML: {
|
|
250
|
+
__html: (0, _hiHelpers.escapeHTML)(item.labelHighlight)
|
|
251
|
+
}
|
|
252
|
+
}),
|
|
253
|
+
!item.labelHighlight && item.label,
|
|
254
|
+
_react2.default.createElement('span', { className: classes.listItemSecondaryText }),
|
|
275
255
|
childrenIndicator
|
|
276
256
|
);
|
|
277
257
|
}
|
|
@@ -291,27 +271,6 @@ var HiSelectableListItem = function (_React$Component) {
|
|
|
291
271
|
value: function toggleHover() {
|
|
292
272
|
this.setState({ hover: !this.state.hover });
|
|
293
273
|
}
|
|
294
|
-
}, {
|
|
295
|
-
key: 'getItemLabel',
|
|
296
|
-
value: function getItemLabel(item) {
|
|
297
|
-
var classes = this.props.classes;
|
|
298
|
-
|
|
299
|
-
if (!item.labelHighlight && item.color && this.props.selected) {
|
|
300
|
-
return _react2.default.createElement(_HiColoredLabel2.default, { color: item.color, label: item.label });
|
|
301
|
-
} else if (item.labelHighlight) {
|
|
302
|
-
var mLabel = _react2.default.createElement('span', {
|
|
303
|
-
className: item.color ? classes.labelHighlightColored : classes.labelHighlight,
|
|
304
|
-
dangerouslySetInnerHTML: {
|
|
305
|
-
__html: (0, _hiHelpers.escapeHTML)(item.labelHighlight)
|
|
306
|
-
}
|
|
307
|
-
});
|
|
308
|
-
if (item.color && this.props.selected) {
|
|
309
|
-
return _react2.default.createElement(_HiColoredLabel2.default, { color: item.color, label: mLabel });
|
|
310
|
-
}
|
|
311
|
-
return mLabel;
|
|
312
|
-
}
|
|
313
|
-
return item.label;
|
|
314
|
-
}
|
|
315
274
|
|
|
316
275
|
/**
|
|
317
276
|
* Build list item from type
|
|
@@ -478,38 +437,18 @@ HiSelectableListItem.defaultProps = {
|
|
|
478
437
|
}
|
|
479
438
|
};
|
|
480
439
|
HiSelectableListItem.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
481
|
-
/**
|
|
482
|
-
* Affiche une checkbox
|
|
483
|
-
*/
|
|
484
|
-
checkbox: _propTypes2.default.bool,
|
|
485
|
-
/**
|
|
486
|
-
* Icon affiché lorsque l'item est sélectionné
|
|
487
|
-
*/
|
|
488
|
-
checkedIcon: _propTypes2.default.node,
|
|
489
440
|
/**
|
|
490
441
|
* Useful to extend the style applied to components.
|
|
491
442
|
*/
|
|
492
443
|
classes: _propTypes2.default.object,
|
|
493
444
|
/**
|
|
494
|
-
*
|
|
495
|
-
*/
|
|
496
|
-
disabled: _propTypes2.default.bool,
|
|
497
|
-
/**
|
|
498
|
-
* Si "true", liste avec hierarchie
|
|
499
|
-
*/
|
|
500
|
-
hierarchic: _propTypes2.default.bool,
|
|
501
|
-
/**
|
|
502
|
-
* Icon affiché lorsque l'item n'est pas sélectionné et qu'on le survole
|
|
503
|
-
*/
|
|
504
|
-
hoverIcon: _propTypes2.default.node,
|
|
505
|
-
/**
|
|
506
|
-
* Icon affiché lorsque l'item n'est pas sélectionné
|
|
445
|
+
* État de l'élément
|
|
507
446
|
*/
|
|
508
|
-
|
|
447
|
+
selected: _propTypes2.default.bool,
|
|
509
448
|
/**
|
|
510
|
-
*
|
|
449
|
+
* Type de l'élément
|
|
511
450
|
*/
|
|
512
|
-
|
|
451
|
+
type: _propTypes2.default.string,
|
|
513
452
|
/**
|
|
514
453
|
* Élément dont la structure attendue dépend du type
|
|
515
454
|
* paramètres requis:
|
|
@@ -517,45 +456,65 @@ HiSelectableListItem.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
517
456
|
* - label: string
|
|
518
457
|
*/
|
|
519
458
|
item: _propTypes2.default.object.isRequired,
|
|
520
|
-
/**
|
|
521
|
-
* Padding par défaut des éléments
|
|
522
|
-
*/
|
|
523
|
-
leftPadding: _propTypes2.default.number,
|
|
524
459
|
/**
|
|
525
460
|
* Niveau de l'item
|
|
526
461
|
*/
|
|
527
462
|
level: _propTypes2.default.number,
|
|
528
463
|
/**
|
|
529
|
-
*
|
|
464
|
+
* Affiche l'item en tant qu'item parent d'un groupe
|
|
530
465
|
*/
|
|
531
|
-
|
|
466
|
+
parentItem: _propTypes2.default.bool,
|
|
532
467
|
/**
|
|
533
468
|
* Fonction de callback à la sélection de l'élément
|
|
534
469
|
*/
|
|
535
470
|
onSelect: _propTypes2.default.func,
|
|
536
471
|
/**
|
|
537
|
-
*
|
|
472
|
+
* Applique le style et désactive le click
|
|
538
473
|
*/
|
|
539
|
-
|
|
474
|
+
disabled: _propTypes2.default.bool,
|
|
540
475
|
/**
|
|
541
|
-
*
|
|
476
|
+
* Items sélectionné partiellement
|
|
542
477
|
*/
|
|
543
|
-
|
|
478
|
+
indeterminate: _propTypes2.default.bool,
|
|
544
479
|
/**
|
|
545
480
|
* Les items parents sont sélectionnables
|
|
546
481
|
*/
|
|
547
482
|
parentItemSelectable: _propTypes2.default.bool,
|
|
548
483
|
/**
|
|
549
|
-
*
|
|
484
|
+
* Nombre d'items enfants
|
|
550
485
|
*/
|
|
551
|
-
|
|
486
|
+
nbChildren: _propTypes2.default.number,
|
|
552
487
|
/**
|
|
553
488
|
* Traductions (par défaut en anglais)
|
|
554
489
|
*/
|
|
555
490
|
translations: _propTypes2.default.object,
|
|
556
491
|
/**
|
|
557
|
-
*
|
|
492
|
+
* Icon affiché lorsque l'item n'est pas sélectionné
|
|
493
|
+
*/
|
|
494
|
+
icon: _propTypes2.default.node,
|
|
495
|
+
/**
|
|
496
|
+
* Icon affiché lorsqu'un item parent n'est pas sélectionné
|
|
497
|
+
*/
|
|
498
|
+
parentIcon: _propTypes2.default.node,
|
|
499
|
+
/**
|
|
500
|
+
* Icon affiché lorsque l'item n'est pas sélectionné et qu'on le survole
|
|
501
|
+
*/
|
|
502
|
+
hoverIcon: _propTypes2.default.node,
|
|
503
|
+
/**
|
|
504
|
+
* Icon affiché lorsque l'item est sélectionné
|
|
505
|
+
*/
|
|
506
|
+
checkedIcon: _propTypes2.default.node,
|
|
507
|
+
/**
|
|
508
|
+
* Affiche une checkbox
|
|
509
|
+
*/
|
|
510
|
+
checkbox: _propTypes2.default.bool,
|
|
511
|
+
/**
|
|
512
|
+
* Si "true", liste avec hierarchie
|
|
513
|
+
*/
|
|
514
|
+
hierarchic: _propTypes2.default.bool,
|
|
515
|
+
/**
|
|
516
|
+
* Padding par défaut des éléments
|
|
558
517
|
*/
|
|
559
|
-
|
|
518
|
+
leftPadding: _propTypes2.default.number
|
|
560
519
|
} : {};
|
|
561
520
|
exports.default = (0, _withStyles2.default)(styles, { name: 'HmuiHiSelectableList' })(HiSelectableListItem);
|
|
@@ -60,7 +60,7 @@ var styles = exports.styles = function styles(theme) {
|
|
|
60
60
|
maxHeight: 40,
|
|
61
61
|
marginRight: 12,
|
|
62
62
|
padding: 4,
|
|
63
|
-
backgroundColor: theme.palette.
|
|
63
|
+
backgroundColor: theme.palette.background1,
|
|
64
64
|
borderRadius: '2px 2px 0 0',
|
|
65
65
|
width: '100%',
|
|
66
66
|
maxWidth: 200,
|
package/HiSwitch/index.js
CHANGED
|
@@ -12,12 +12,6 @@ Object.defineProperty(exports, 'default', {
|
|
|
12
12
|
return _interopRequireDefault(_HiSwitch).default;
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
|
-
Object.defineProperty(exports, 'HiSwitch', {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function get() {
|
|
18
|
-
return _interopRequireDefault(_HiSwitch).default;
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
15
|
|
|
22
16
|
var _HiSwitchState = require('./HiSwitchState');
|
|
23
17
|
|
|
@@ -4,10 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
-
var _extends2 = require('babel-runtime/helpers/extends');
|
|
8
|
-
|
|
9
|
-
var _extends3 = _interopRequireDefault(_extends2);
|
|
10
|
-
|
|
11
7
|
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
|
|
12
8
|
|
|
13
9
|
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
|
|
@@ -69,42 +65,57 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
69
65
|
return _this;
|
|
70
66
|
}
|
|
71
67
|
|
|
72
|
-
/**
|
|
73
|
-
* CollecContextMenuDatas
|
|
74
|
-
*
|
|
75
|
-
* définit les données utilisées par le context menu (lookup, exclude, copy, redirect)
|
|
76
|
-
* - value : valeur sur laquelle on filtre
|
|
77
|
-
* - label : label de la value (traduite)
|
|
78
|
-
*/
|
|
79
|
-
|
|
80
|
-
|
|
81
68
|
(0, _createClass3.default)(BodyCellBuilder, [{
|
|
82
69
|
key: 'collectContextMenuDatas',
|
|
83
|
-
value: function collectContextMenuDatas() {
|
|
84
|
-
var
|
|
85
|
-
|
|
86
|
-
data = (0, _objectWithoutProperties3.default)(_props$data, ['value']);
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
var contextLabel = data.label ? data.label : value;
|
|
90
|
-
|
|
70
|
+
value: function collectContextMenuDatas(props) {
|
|
71
|
+
var label = '';
|
|
72
|
+
var value = null;
|
|
91
73
|
switch (this.props.type) {
|
|
92
|
-
|
|
74
|
+
case cst.TYPE_ADDRESS:
|
|
75
|
+
label = this.props.datas.name + ' ' + this.props.datas.streetAddress + ' ' + this.props.datas.city + ' ' + this.props.datas.postalCode + ' ' + this.props.datas.isoCountry;
|
|
76
|
+
break;
|
|
77
|
+
case cst.TYPE_SENTINEL:
|
|
78
|
+
label = this.props.datas.score + '|' + this.props.datas.fraudResult;
|
|
79
|
+
if (this.props.smartDecision && typeof this.props.datas.automaticFraudReviewResult !== 'undefined') {
|
|
80
|
+
label += '|' + this.props.datas.automaticFraudReviewResult;
|
|
81
|
+
}
|
|
82
|
+
break;
|
|
83
|
+
case cst.TYPE_ACCOUNT:
|
|
84
|
+
case cst.TYPE_ACCOUNT_NUMBER:
|
|
85
|
+
case cst.TYPE_ICON:
|
|
86
|
+
case cst.TYPE_IMAGE:
|
|
87
|
+
case cst.TYPE_NUMERIC:
|
|
88
|
+
case cst.TYPE_TEXT:
|
|
89
|
+
default:
|
|
90
|
+
label = this.props.datas.value;
|
|
91
|
+
break;
|
|
93
92
|
case cst.TYPE_DATE:
|
|
94
93
|
var options = { year: 'numeric', month: '2-digit', day: '2-digit' };
|
|
95
|
-
var date = new Date(value);
|
|
96
|
-
|
|
94
|
+
var date = new Date(this.props.datas.value);
|
|
95
|
+
label = date.toLocaleString(this.props.dateLocale, options);
|
|
96
|
+
value = this.props.datas.value;
|
|
97
97
|
break;
|
|
98
|
-
|
|
99
98
|
case cst.TYPE_RATE:
|
|
100
|
-
|
|
99
|
+
label = (0, _hiHelpers.formatRate)(this.props.datas.value, this.props.view, this.props.numberLocale);
|
|
100
|
+
value = this.props.datas.value;
|
|
101
|
+
break;
|
|
102
|
+
case cst.TYPE_THIRD_PARTY_SECURITY:
|
|
103
|
+
case cst.TYPE_STATUS:
|
|
104
|
+
label = this.props.datas.value;
|
|
105
|
+
value = this.props.datas.code;
|
|
106
|
+
break;
|
|
107
|
+
case cst.TYPE_COUNTRY:
|
|
108
|
+
label = this.props.datas.value;
|
|
109
|
+
value = this.props.datas.isoCode;
|
|
101
110
|
break;
|
|
102
111
|
}
|
|
103
|
-
|
|
112
|
+
if (value === null) {
|
|
113
|
+
value = label;
|
|
114
|
+
}
|
|
104
115
|
return {
|
|
105
116
|
id: this.props.checkboxValue,
|
|
106
117
|
column: this.props.colId,
|
|
107
|
-
label:
|
|
118
|
+
label: label,
|
|
108
119
|
value: value
|
|
109
120
|
};
|
|
110
121
|
}
|
|
@@ -114,9 +125,10 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
114
125
|
var _props = this.props,
|
|
115
126
|
ukey = _props.ukey,
|
|
116
127
|
type = _props.type,
|
|
117
|
-
|
|
128
|
+
datas = _props.datas,
|
|
118
129
|
view = _props.view,
|
|
119
130
|
width = _props.width,
|
|
131
|
+
fixedWidth = _props.fixedWidth,
|
|
120
132
|
padding = _props.padding,
|
|
121
133
|
align = _props.align,
|
|
122
134
|
dense = _props.dense,
|
|
@@ -130,16 +142,14 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
130
142
|
childrenCount = _props.childrenCount,
|
|
131
143
|
onOpenDetails = _props.onOpenDetails,
|
|
132
144
|
lookedUp = _props.lookedUp,
|
|
133
|
-
|
|
134
|
-
disableContextMenu = _props.disableContextMenu,
|
|
135
|
-
detailInfos = _props.detailInfos,
|
|
136
|
-
props = (0, _objectWithoutProperties3.default)(_props, ['ukey', 'type', 'data', 'view', 'width', 'padding', 'align', 'dense', 'ellipsis', 'onSelect', 'selectable', 'selected', 'sticky', 'dateLocale', 'numberLocale', 'childrenCount', 'onOpenDetails', 'lookedUp', 'fixedColumnWidth', 'disableContextMenu', 'detailInfos']);
|
|
145
|
+
props = (0, _objectWithoutProperties3.default)(_props, ['ukey', 'type', 'datas', 'view', 'width', 'fixedWidth', 'padding', 'align', 'dense', 'ellipsis', 'onSelect', 'selectable', 'selected', 'sticky', 'dateLocale', 'numberLocale', 'childrenCount', 'onOpenDetails', 'lookedUp']);
|
|
137
146
|
|
|
138
147
|
|
|
139
148
|
var layoutProps = {
|
|
140
149
|
type: type,
|
|
141
150
|
view: view,
|
|
142
151
|
width: width,
|
|
152
|
+
fixedWidth: fixedWidth,
|
|
143
153
|
align: align,
|
|
144
154
|
dense: dense,
|
|
145
155
|
onSelect: onSelect,
|
|
@@ -148,42 +158,37 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
148
158
|
selected: selected,
|
|
149
159
|
sticky: sticky,
|
|
150
160
|
childrenCount: childrenCount,
|
|
151
|
-
lookedUp: lookedUp
|
|
152
|
-
fixedColumnWidth: fixedColumnWidth,
|
|
153
|
-
detailInfos: detailInfos,
|
|
154
|
-
onOpenDetails: onOpenDetails
|
|
161
|
+
lookedUp: lookedUp
|
|
155
162
|
};
|
|
156
163
|
|
|
157
|
-
var
|
|
158
|
-
if (typeof data !== 'undefined') {
|
|
159
|
-
|
|
160
|
-
var cellElement = void 0;
|
|
164
|
+
var cellElement = void 0;
|
|
161
165
|
|
|
166
|
+
if (typeof datas !== 'undefined') {
|
|
162
167
|
switch (type) {
|
|
163
168
|
case cst.TYPE_ACCOUNT:
|
|
164
|
-
cellElement = _react2.default.createElement(_BodyCells.CellAccount, { value:
|
|
169
|
+
cellElement = _react2.default.createElement(_BodyCells.CellAccount, { value: datas.value, color: datas.color, sticky: sticky });
|
|
165
170
|
break;
|
|
166
171
|
|
|
167
172
|
case cst.TYPE_ACCOUNT_NUMBER:
|
|
168
173
|
cellElement = _react2.default.createElement(_BodyCells.CellAccountNumber, {
|
|
169
|
-
value:
|
|
170
|
-
country:
|
|
171
|
-
expirationDate:
|
|
172
|
-
expirationDateLabel:
|
|
173
|
-
statusColor:
|
|
174
|
-
issuer:
|
|
174
|
+
value: datas.value,
|
|
175
|
+
country: datas.country,
|
|
176
|
+
expirationDate: datas.expirationDate,
|
|
177
|
+
expirationDateLabel: datas.expirationDateLabel,
|
|
178
|
+
statusColor: datas.statusColor,
|
|
179
|
+
issuer: datas.issuer,
|
|
175
180
|
sticky: sticky
|
|
176
181
|
});
|
|
177
182
|
break;
|
|
178
183
|
|
|
179
184
|
case cst.TYPE_ADDRESS:
|
|
180
185
|
cellElement = _react2.default.createElement(_BodyCells.CellAddress, {
|
|
181
|
-
name:
|
|
182
|
-
streetAddress:
|
|
183
|
-
city:
|
|
184
|
-
postalCode:
|
|
185
|
-
country:
|
|
186
|
-
isoCountry:
|
|
186
|
+
name: datas.name,
|
|
187
|
+
streetAddress: datas.streetAddress,
|
|
188
|
+
city: datas.city,
|
|
189
|
+
postalCode: datas.postalCode,
|
|
190
|
+
country: datas.country,
|
|
191
|
+
isoCountry: datas.isoCountry,
|
|
187
192
|
view: view,
|
|
188
193
|
sticky: sticky
|
|
189
194
|
});
|
|
@@ -191,9 +196,8 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
191
196
|
|
|
192
197
|
case cst.TYPE_COUNTRY:
|
|
193
198
|
cellElement = _react2.default.createElement(_BodyCells.CellCountry, {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
value: data.value,
|
|
199
|
+
value: datas.value,
|
|
200
|
+
isoCode: datas.isoCode,
|
|
197
201
|
view: view,
|
|
198
202
|
sticky: sticky
|
|
199
203
|
});
|
|
@@ -201,7 +205,7 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
201
205
|
|
|
202
206
|
case cst.TYPE_DATE:
|
|
203
207
|
cellElement = _react2.default.createElement(_BodyCells.CellDate, {
|
|
204
|
-
value:
|
|
208
|
+
value: datas.value,
|
|
205
209
|
locale: dateLocale,
|
|
206
210
|
view: view,
|
|
207
211
|
displayTime: props.displayTime,
|
|
@@ -210,10 +214,10 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
210
214
|
break;
|
|
211
215
|
|
|
212
216
|
case cst.TYPE_ICON:
|
|
217
|
+
if (view === cst.VIEWS.SMALL) layoutProps.fixedWidth = true;
|
|
213
218
|
cellElement = _react2.default.createElement(_BodyCells.CellIcon, {
|
|
214
|
-
value:
|
|
215
|
-
icon:
|
|
216
|
-
color: data.color,
|
|
219
|
+
value: datas.value,
|
|
220
|
+
icon: datas.icon,
|
|
217
221
|
view: view,
|
|
218
222
|
sticky: sticky
|
|
219
223
|
});
|
|
@@ -221,9 +225,8 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
221
225
|
|
|
222
226
|
case cst.TYPE_IMAGE:
|
|
223
227
|
cellElement = _react2.default.createElement(_BodyCells.CellImage, {
|
|
224
|
-
value:
|
|
225
|
-
path:
|
|
226
|
-
size: this.props.size,
|
|
228
|
+
value: datas.value,
|
|
229
|
+
path: datas.path,
|
|
227
230
|
view: view,
|
|
228
231
|
sticky: sticky
|
|
229
232
|
});
|
|
@@ -231,9 +234,8 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
231
234
|
|
|
232
235
|
case cst.TYPE_NUMERIC:
|
|
233
236
|
cellElement = _react2.default.createElement(_BodyCells.CellNumeric, {
|
|
234
|
-
value:
|
|
235
|
-
currency:
|
|
236
|
-
precision: data.precision,
|
|
237
|
+
value: datas.value,
|
|
238
|
+
currency: datas.currency,
|
|
237
239
|
locale: numberLocale,
|
|
238
240
|
view: view,
|
|
239
241
|
sticky: sticky
|
|
@@ -242,10 +244,10 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
242
244
|
|
|
243
245
|
case cst.TYPE_RATE:
|
|
244
246
|
cellElement = _react2.default.createElement(_BodyCells.CellRate, {
|
|
245
|
-
value:
|
|
246
|
-
isPositive:
|
|
247
|
-
trendchip:
|
|
248
|
-
indicator:
|
|
247
|
+
value: datas.value,
|
|
248
|
+
isPositive: datas.isPositive,
|
|
249
|
+
trendchip: datas.trendchip,
|
|
250
|
+
indicator: datas.indicator,
|
|
249
251
|
locale: numberLocale,
|
|
250
252
|
view: view,
|
|
251
253
|
sticky: sticky
|
|
@@ -254,33 +256,31 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
254
256
|
|
|
255
257
|
case cst.TYPE_SENTINEL:
|
|
256
258
|
cellElement = _react2.default.createElement(_BodyCells.CellSentinel, {
|
|
257
|
-
score:
|
|
258
|
-
fraudResult:
|
|
259
|
-
automaticFraudReviewResult:
|
|
260
|
-
pendingManualAction:
|
|
259
|
+
score: datas.score,
|
|
260
|
+
fraudResult: datas.fraudResult,
|
|
261
|
+
automaticFraudReviewResult: datas.automaticFraudReviewResult,
|
|
262
|
+
pendingManualAction: datas.pendingManualAction,
|
|
261
263
|
smartDecision: props.smartDecision,
|
|
262
264
|
sticky: sticky
|
|
263
265
|
});
|
|
264
266
|
break;
|
|
265
267
|
|
|
266
268
|
case cst.TYPE_STATUS:
|
|
267
|
-
cellElement = _react2.default.createElement(_BodyCells.CellStatus,
|
|
268
|
-
code:
|
|
269
|
-
|
|
269
|
+
cellElement = _react2.default.createElement(_BodyCells.CellStatus, {
|
|
270
|
+
code: datas.code,
|
|
271
|
+
nbOperations: datas.count_operations,
|
|
272
|
+
value: datas.value,
|
|
273
|
+
onOpenDetails: onOpenDetails,
|
|
270
274
|
sticky: sticky
|
|
271
|
-
}
|
|
272
|
-
nbOperations: detailInfos.total,
|
|
273
|
-
onOpenDetails: onOpenDetails
|
|
274
|
-
}));
|
|
275
|
-
delete layoutProps.detailInfos;
|
|
276
|
-
delete layoutProps.onOpenDetails;
|
|
275
|
+
});
|
|
277
276
|
break;
|
|
278
277
|
|
|
279
278
|
case cst.TYPE_THIRD_PARTY_SECURITY:
|
|
280
279
|
layoutProps.align = 'center';
|
|
280
|
+
layoutProps.fixedWidth = true;
|
|
281
281
|
cellElement = _react2.default.createElement(_BodyCells.CellThirdPartySecurity, {
|
|
282
|
-
value:
|
|
283
|
-
|
|
282
|
+
value: datas.value,
|
|
283
|
+
code: datas.code,
|
|
284
284
|
sticky: sticky
|
|
285
285
|
});
|
|
286
286
|
break;
|
|
@@ -289,24 +289,24 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
289
289
|
default:
|
|
290
290
|
cellElement = _react2.default.createElement(_BodyCells.CellText, {
|
|
291
291
|
ukey: ukey,
|
|
292
|
-
value:
|
|
292
|
+
value: datas.value,
|
|
293
293
|
ellipsis: ellipsis,
|
|
294
294
|
view: view,
|
|
295
295
|
sticky: sticky
|
|
296
296
|
});
|
|
297
297
|
break;
|
|
298
298
|
}
|
|
299
|
-
|
|
300
|
-
cellContent = disableContextMenu ? cellElement : _react2.default.createElement(
|
|
301
|
-
_reactContextmenu.ContextMenuTrigger,
|
|
302
|
-
{
|
|
303
|
-
id: 'hitable_context_menu_' + this.props.tabId,
|
|
304
|
-
collect: this.collectContextMenuDatas
|
|
305
|
-
},
|
|
306
|
-
cellElement
|
|
307
|
-
);
|
|
308
299
|
}
|
|
309
300
|
|
|
301
|
+
var cellContent = cellElement ? _react2.default.createElement(
|
|
302
|
+
_reactContextmenu.ContextMenuTrigger,
|
|
303
|
+
{
|
|
304
|
+
id: 'hitable_context_menu_' + this.props.tabId,
|
|
305
|
+
collect: this.collectContextMenuDatas
|
|
306
|
+
},
|
|
307
|
+
cellElement
|
|
308
|
+
) : cellElement;
|
|
309
|
+
|
|
310
310
|
return _react2.default.createElement(
|
|
311
311
|
_BodyCells.CellLayout,
|
|
312
312
|
layoutProps,
|
|
@@ -318,9 +318,7 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
318
318
|
}(_react2.default.PureComponent);
|
|
319
319
|
|
|
320
320
|
BodyCellBuilder.defaultProps = {
|
|
321
|
-
ellipsis: 'right'
|
|
322
|
-
disableContextMenu: true,
|
|
323
|
-
detailInfos: null
|
|
321
|
+
ellipsis: 'right'
|
|
324
322
|
};
|
|
325
323
|
exports.default = BodyCellBuilder;
|
|
326
324
|
BodyCellBuilder.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -336,14 +334,10 @@ BodyCellBuilder.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
336
334
|
* Identifiant de la colonne
|
|
337
335
|
*/
|
|
338
336
|
colId: _propTypes2.default.string,
|
|
339
|
-
/**
|
|
340
|
-
* Données de références
|
|
341
|
-
*/
|
|
342
|
-
columnDatas: _propTypes2.default.array,
|
|
343
337
|
/**
|
|
344
338
|
* Données relatives au type de la cellule
|
|
345
339
|
*/
|
|
346
|
-
|
|
340
|
+
datas: _propTypes2.default.object,
|
|
347
341
|
/**
|
|
348
342
|
* Locale a utilisée pour l'affichage des dates
|
|
349
343
|
*/
|
|
@@ -352,23 +346,14 @@ BodyCellBuilder.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
352
346
|
* Densité, défini la hauteur de la ligne
|
|
353
347
|
*/
|
|
354
348
|
dense: _propTypes2.default.bool,
|
|
355
|
-
/**
|
|
356
|
-
* Ajoute un Chip affichant le nombre de ligne de détails de la ligne et permettant de les affichés via onOpenDetails
|
|
357
|
-
*/
|
|
358
|
-
detailInfos: _propTypes2.default.object,
|
|
359
|
-
/**
|
|
360
|
-
* Active/désactive le menu contextuel au clic droit sur les cellules du tableau
|
|
361
|
-
*/
|
|
362
|
-
disableContextMenu: _propTypes2.default.bool.isRequired,
|
|
363
349
|
/**
|
|
364
350
|
* Ellipsis
|
|
365
351
|
*/
|
|
366
352
|
ellipsis: _propTypes2.default.oneOf(['left', 'right', 'middle', 'name', 'after-first-word']),
|
|
367
353
|
/**
|
|
368
|
-
*
|
|
369
|
-
* Sinon les colonnes s'adaptent à l'espace disponible
|
|
354
|
+
* La largeur de la cellule est fixé (toutes les colonnes sauf une)
|
|
370
355
|
*/
|
|
371
|
-
|
|
356
|
+
fixedWidth: _propTypes2.default.bool,
|
|
372
357
|
/**
|
|
373
358
|
* Recherche lookup sur cette colonne
|
|
374
359
|
*/
|