@hipay/hipay-material-ui 1.0.0-beta.18 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +18 -39
- 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 +97 -97
- 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 +19 -25
- package/HiTable/BodyCells/CellNumeric.js +2 -7
- package/HiTable/BodyCells/CellSentinel.js +17 -26
- package/HiTable/BodyCells/CellStatus.js +2 -6
- package/HiTable/BodyCells/CellText.js +1 -2
- package/HiTable/BodyCells/CellThirdPartySecurity.js +22 -45
- package/HiTable/BodyRow.js +57 -78
- package/HiTable/ColumnFilter.js +15 -28
- package/HiTable/HeaderCell.js +16 -20
- package/HiTable/HiTable.js +11 -61
- package/HiTable/HiTableBody.js +14 -46
- 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 +17 -34
- 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 +98 -96
- 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 +21 -27
- package/es/HiTable/BodyCells/CellNumeric.js +2 -6
- package/es/HiTable/BodyCells/CellSentinel.js +9 -20
- package/es/HiTable/BodyCells/CellStatus.js +2 -6
- package/es/HiTable/BodyCells/CellText.js +1 -2
- package/es/HiTable/BodyCells/CellThirdPartySecurity.js +18 -42
- package/es/HiTable/BodyRow.js +56 -79
- package/es/HiTable/ColumnFilter.js +9 -15
- package/es/HiTable/HeaderCell.js +16 -20
- package/es/HiTable/HiTable.js +12 -59
- package/es/HiTable/HiTableBody.js +11 -42
- 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 +43603 -87235
- 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
|
|
|
@@ -65,42 +65,57 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
65
65
|
return _this;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
/**
|
|
69
|
-
* CollecContextMenuDatas
|
|
70
|
-
*
|
|
71
|
-
* définit les données utilisées par le context menu (lookup, exclude, copy, redirect)
|
|
72
|
-
* - value : valeur sur laquelle on filtre
|
|
73
|
-
* - label : label de la value (traduite)
|
|
74
|
-
*/
|
|
75
|
-
|
|
76
|
-
|
|
77
68
|
(0, _createClass3.default)(BodyCellBuilder, [{
|
|
78
69
|
key: 'collectContextMenuDatas',
|
|
79
|
-
value: function collectContextMenuDatas() {
|
|
80
|
-
var
|
|
81
|
-
|
|
82
|
-
data = (0, _objectWithoutProperties3.default)(_props$data, ['value']);
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
var contextLabel = data.label ? data.label : value;
|
|
86
|
-
|
|
70
|
+
value: function collectContextMenuDatas(props) {
|
|
71
|
+
var label = '';
|
|
72
|
+
var value = null;
|
|
87
73
|
switch (this.props.type) {
|
|
88
|
-
|
|
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;
|
|
89
92
|
case cst.TYPE_DATE:
|
|
90
93
|
var options = { year: 'numeric', month: '2-digit', day: '2-digit' };
|
|
91
|
-
var date = new Date(value);
|
|
92
|
-
|
|
94
|
+
var date = new Date(this.props.datas.value);
|
|
95
|
+
label = date.toLocaleString(this.props.dateLocale, options);
|
|
96
|
+
value = this.props.datas.value;
|
|
93
97
|
break;
|
|
94
|
-
|
|
95
98
|
case cst.TYPE_RATE:
|
|
96
|
-
|
|
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;
|
|
97
110
|
break;
|
|
98
111
|
}
|
|
99
|
-
|
|
112
|
+
if (value === null) {
|
|
113
|
+
value = label;
|
|
114
|
+
}
|
|
100
115
|
return {
|
|
101
116
|
id: this.props.checkboxValue,
|
|
102
117
|
column: this.props.colId,
|
|
103
|
-
label:
|
|
118
|
+
label: label,
|
|
104
119
|
value: value
|
|
105
120
|
};
|
|
106
121
|
}
|
|
@@ -110,9 +125,10 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
110
125
|
var _props = this.props,
|
|
111
126
|
ukey = _props.ukey,
|
|
112
127
|
type = _props.type,
|
|
113
|
-
|
|
128
|
+
datas = _props.datas,
|
|
114
129
|
view = _props.view,
|
|
115
130
|
width = _props.width,
|
|
131
|
+
fixedWidth = _props.fixedWidth,
|
|
116
132
|
padding = _props.padding,
|
|
117
133
|
align = _props.align,
|
|
118
134
|
dense = _props.dense,
|
|
@@ -126,15 +142,14 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
126
142
|
childrenCount = _props.childrenCount,
|
|
127
143
|
onOpenDetails = _props.onOpenDetails,
|
|
128
144
|
lookedUp = _props.lookedUp,
|
|
129
|
-
|
|
130
|
-
disableContextMenu = _props.disableContextMenu,
|
|
131
|
-
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']);
|
|
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']);
|
|
132
146
|
|
|
133
147
|
|
|
134
148
|
var layoutProps = {
|
|
135
149
|
type: type,
|
|
136
150
|
view: view,
|
|
137
151
|
width: width,
|
|
152
|
+
fixedWidth: fixedWidth,
|
|
138
153
|
align: align,
|
|
139
154
|
dense: dense,
|
|
140
155
|
onSelect: onSelect,
|
|
@@ -143,40 +158,37 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
143
158
|
selected: selected,
|
|
144
159
|
sticky: sticky,
|
|
145
160
|
childrenCount: childrenCount,
|
|
146
|
-
lookedUp: lookedUp
|
|
147
|
-
fixedColumnWidth: fixedColumnWidth
|
|
161
|
+
lookedUp: lookedUp
|
|
148
162
|
};
|
|
149
163
|
|
|
150
|
-
var
|
|
151
|
-
if (typeof data !== 'undefined') {
|
|
152
|
-
|
|
153
|
-
var cellElement = void 0;
|
|
164
|
+
var cellElement = void 0;
|
|
154
165
|
|
|
166
|
+
if (typeof datas !== 'undefined') {
|
|
155
167
|
switch (type) {
|
|
156
168
|
case cst.TYPE_ACCOUNT:
|
|
157
|
-
cellElement = _react2.default.createElement(_BodyCells.CellAccount, { value:
|
|
169
|
+
cellElement = _react2.default.createElement(_BodyCells.CellAccount, { value: datas.value, color: datas.color, sticky: sticky });
|
|
158
170
|
break;
|
|
159
171
|
|
|
160
172
|
case cst.TYPE_ACCOUNT_NUMBER:
|
|
161
173
|
cellElement = _react2.default.createElement(_BodyCells.CellAccountNumber, {
|
|
162
|
-
value:
|
|
163
|
-
country:
|
|
164
|
-
expirationDate:
|
|
165
|
-
expirationDateLabel:
|
|
166
|
-
statusColor:
|
|
167
|
-
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,
|
|
168
180
|
sticky: sticky
|
|
169
181
|
});
|
|
170
182
|
break;
|
|
171
183
|
|
|
172
184
|
case cst.TYPE_ADDRESS:
|
|
173
185
|
cellElement = _react2.default.createElement(_BodyCells.CellAddress, {
|
|
174
|
-
name:
|
|
175
|
-
streetAddress:
|
|
176
|
-
city:
|
|
177
|
-
postalCode:
|
|
178
|
-
country:
|
|
179
|
-
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,
|
|
180
192
|
view: view,
|
|
181
193
|
sticky: sticky
|
|
182
194
|
});
|
|
@@ -184,9 +196,8 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
184
196
|
|
|
185
197
|
case cst.TYPE_COUNTRY:
|
|
186
198
|
cellElement = _react2.default.createElement(_BodyCells.CellCountry, {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
value: data.value,
|
|
199
|
+
value: datas.value,
|
|
200
|
+
isoCode: datas.isoCode,
|
|
190
201
|
view: view,
|
|
191
202
|
sticky: sticky
|
|
192
203
|
});
|
|
@@ -194,7 +205,7 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
194
205
|
|
|
195
206
|
case cst.TYPE_DATE:
|
|
196
207
|
cellElement = _react2.default.createElement(_BodyCells.CellDate, {
|
|
197
|
-
value:
|
|
208
|
+
value: datas.value,
|
|
198
209
|
locale: dateLocale,
|
|
199
210
|
view: view,
|
|
200
211
|
displayTime: props.displayTime,
|
|
@@ -203,10 +214,10 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
203
214
|
break;
|
|
204
215
|
|
|
205
216
|
case cst.TYPE_ICON:
|
|
217
|
+
if (view === cst.VIEWS.SMALL) layoutProps.fixedWidth = true;
|
|
206
218
|
cellElement = _react2.default.createElement(_BodyCells.CellIcon, {
|
|
207
|
-
value:
|
|
208
|
-
icon:
|
|
209
|
-
color: data.color,
|
|
219
|
+
value: datas.value,
|
|
220
|
+
icon: datas.icon,
|
|
210
221
|
view: view,
|
|
211
222
|
sticky: sticky
|
|
212
223
|
});
|
|
@@ -214,9 +225,8 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
214
225
|
|
|
215
226
|
case cst.TYPE_IMAGE:
|
|
216
227
|
cellElement = _react2.default.createElement(_BodyCells.CellImage, {
|
|
217
|
-
value:
|
|
218
|
-
path:
|
|
219
|
-
size: this.props.size,
|
|
228
|
+
value: datas.value,
|
|
229
|
+
path: datas.path,
|
|
220
230
|
view: view,
|
|
221
231
|
sticky: sticky
|
|
222
232
|
});
|
|
@@ -224,9 +234,8 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
224
234
|
|
|
225
235
|
case cst.TYPE_NUMERIC:
|
|
226
236
|
cellElement = _react2.default.createElement(_BodyCells.CellNumeric, {
|
|
227
|
-
value:
|
|
228
|
-
currency:
|
|
229
|
-
precision: data.precision,
|
|
237
|
+
value: datas.value,
|
|
238
|
+
currency: datas.currency,
|
|
230
239
|
locale: numberLocale,
|
|
231
240
|
view: view,
|
|
232
241
|
sticky: sticky
|
|
@@ -235,10 +244,10 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
235
244
|
|
|
236
245
|
case cst.TYPE_RATE:
|
|
237
246
|
cellElement = _react2.default.createElement(_BodyCells.CellRate, {
|
|
238
|
-
value:
|
|
239
|
-
isPositive:
|
|
240
|
-
trendchip:
|
|
241
|
-
indicator:
|
|
247
|
+
value: datas.value,
|
|
248
|
+
isPositive: datas.isPositive,
|
|
249
|
+
trendchip: datas.trendchip,
|
|
250
|
+
indicator: datas.indicator,
|
|
242
251
|
locale: numberLocale,
|
|
243
252
|
view: view,
|
|
244
253
|
sticky: sticky
|
|
@@ -247,10 +256,10 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
247
256
|
|
|
248
257
|
case cst.TYPE_SENTINEL:
|
|
249
258
|
cellElement = _react2.default.createElement(_BodyCells.CellSentinel, {
|
|
250
|
-
score:
|
|
251
|
-
fraudResult:
|
|
252
|
-
automaticFraudReviewResult:
|
|
253
|
-
pendingManualAction:
|
|
259
|
+
score: datas.score,
|
|
260
|
+
fraudResult: datas.fraudResult,
|
|
261
|
+
automaticFraudReviewResult: datas.automaticFraudReviewResult,
|
|
262
|
+
pendingManualAction: datas.pendingManualAction,
|
|
254
263
|
smartDecision: props.smartDecision,
|
|
255
264
|
sticky: sticky
|
|
256
265
|
});
|
|
@@ -258,9 +267,9 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
258
267
|
|
|
259
268
|
case cst.TYPE_STATUS:
|
|
260
269
|
cellElement = _react2.default.createElement(_BodyCells.CellStatus, {
|
|
261
|
-
code:
|
|
262
|
-
nbOperations:
|
|
263
|
-
value:
|
|
270
|
+
code: datas.code,
|
|
271
|
+
nbOperations: datas.count_operations,
|
|
272
|
+
value: datas.value,
|
|
264
273
|
onOpenDetails: onOpenDetails,
|
|
265
274
|
sticky: sticky
|
|
266
275
|
});
|
|
@@ -268,9 +277,10 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
268
277
|
|
|
269
278
|
case cst.TYPE_THIRD_PARTY_SECURITY:
|
|
270
279
|
layoutProps.align = 'center';
|
|
280
|
+
layoutProps.fixedWidth = true;
|
|
271
281
|
cellElement = _react2.default.createElement(_BodyCells.CellThirdPartySecurity, {
|
|
272
|
-
value:
|
|
273
|
-
|
|
282
|
+
value: datas.value,
|
|
283
|
+
code: datas.code,
|
|
274
284
|
sticky: sticky
|
|
275
285
|
});
|
|
276
286
|
break;
|
|
@@ -279,24 +289,24 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
279
289
|
default:
|
|
280
290
|
cellElement = _react2.default.createElement(_BodyCells.CellText, {
|
|
281
291
|
ukey: ukey,
|
|
282
|
-
value:
|
|
292
|
+
value: datas.value,
|
|
283
293
|
ellipsis: ellipsis,
|
|
284
294
|
view: view,
|
|
285
295
|
sticky: sticky
|
|
286
296
|
});
|
|
287
297
|
break;
|
|
288
298
|
}
|
|
289
|
-
|
|
290
|
-
cellContent = disableContextMenu ? cellElement : _react2.default.createElement(
|
|
291
|
-
_reactContextmenu.ContextMenuTrigger,
|
|
292
|
-
{
|
|
293
|
-
id: 'hitable_context_menu_' + this.props.tabId,
|
|
294
|
-
collect: this.collectContextMenuDatas
|
|
295
|
-
},
|
|
296
|
-
cellElement
|
|
297
|
-
);
|
|
298
299
|
}
|
|
299
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
|
+
|
|
300
310
|
return _react2.default.createElement(
|
|
301
311
|
_BodyCells.CellLayout,
|
|
302
312
|
layoutProps,
|
|
@@ -308,8 +318,7 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
|
308
318
|
}(_react2.default.PureComponent);
|
|
309
319
|
|
|
310
320
|
BodyCellBuilder.defaultProps = {
|
|
311
|
-
ellipsis: 'right'
|
|
312
|
-
disableContextMenu: true
|
|
321
|
+
ellipsis: 'right'
|
|
313
322
|
};
|
|
314
323
|
exports.default = BodyCellBuilder;
|
|
315
324
|
BodyCellBuilder.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -325,14 +334,10 @@ BodyCellBuilder.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
325
334
|
* Identifiant de la colonne
|
|
326
335
|
*/
|
|
327
336
|
colId: _propTypes2.default.string,
|
|
328
|
-
/**
|
|
329
|
-
* Données de références
|
|
330
|
-
*/
|
|
331
|
-
columnDatas: _propTypes2.default.array,
|
|
332
337
|
/**
|
|
333
338
|
* Données relatives au type de la cellule
|
|
334
339
|
*/
|
|
335
|
-
|
|
340
|
+
datas: _propTypes2.default.object,
|
|
336
341
|
/**
|
|
337
342
|
* Locale a utilisée pour l'affichage des dates
|
|
338
343
|
*/
|
|
@@ -341,19 +346,14 @@ BodyCellBuilder.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
341
346
|
* Densité, défini la hauteur de la ligne
|
|
342
347
|
*/
|
|
343
348
|
dense: _propTypes2.default.bool,
|
|
344
|
-
/**
|
|
345
|
-
* Active/désactive le menu contextuel au clic droit sur les cellules du tableau
|
|
346
|
-
*/
|
|
347
|
-
disableContextMenu: _propTypes2.default.bool.isRequired,
|
|
348
349
|
/**
|
|
349
350
|
* Ellipsis
|
|
350
351
|
*/
|
|
351
352
|
ellipsis: _propTypes2.default.oneOf(['left', 'right', 'middle', 'name', 'after-first-word']),
|
|
352
353
|
/**
|
|
353
|
-
*
|
|
354
|
-
* Sinon les colonnes s'adaptent à l'espace disponible
|
|
354
|
+
* La largeur de la cellule est fixé (toutes les colonnes sauf une)
|
|
355
355
|
*/
|
|
356
|
-
|
|
356
|
+
fixedWidth: _propTypes2.default.bool,
|
|
357
357
|
/**
|
|
358
358
|
* Recherche lookup sur cette colonne
|
|
359
359
|
*/
|