@hipay/hipay-material-ui 1.0.0-beta.29 → 1.0.0-beta.4
Sign up to get free protection for your applications and to get access to all the features.
- package/HiCheckbox/HiCheckbox.js +3 -6
- package/HiChip/HiChip.js +9 -84
- package/HiChip/HiChipSwitch.js +0 -6
- package/HiColoredLabel/HiColoredLabel.js +5 -11
- package/HiDatePicker/HiDatePicker.js +21 -35
- package/HiDatePicker/HiDateRangePicker.js +69 -152
- package/HiDatePicker/HiDateRangeSelector.js +30 -85
- package/HiDatePicker/Overlays/CustomOverlayLayout.js +1 -3
- package/HiDatePicker/Overlays/Overlay.js +5 -23
- package/HiDatePicker/stylesheet.js +0 -14
- package/HiForm/HiFormControl.js +29 -24
- package/HiForm/HiInput.js +17 -45
- package/HiForm/HiPasswordField.js +3 -8
- package/HiForm/HiSearchField.js +2 -8
- package/HiForm/index.js +0 -36
- package/HiLoader/HiLoader.js +9 -16
- package/HiPins/HiPins.js +5 -6
- package/HiSelect/HiSelect.js +157 -376
- package/HiSelect/HiSuggestSelect.js +8 -69
- package/HiSelect/SelectInput.js +19 -68
- package/HiSelectableList/HiSelectableList.js +49 -57
- package/HiSelectableList/HiSelectableListItem.js +94 -142
- package/HiTable/BodyCellBuilder.js +112 -144
- package/HiTable/BodyCells/CellAccount.js +21 -15
- package/HiTable/BodyCells/CellAccountNumber.js +220 -0
- package/HiTable/BodyCells/CellAddress.js +53 -15
- package/HiTable/BodyCells/CellCountry.js +43 -23
- package/HiTable/BodyCells/CellDate.js +64 -59
- package/HiTable/BodyCells/CellIcon.js +45 -46
- package/HiTable/BodyCells/CellImage.js +44 -54
- package/HiTable/BodyCells/CellLayout.js +24 -60
- package/HiTable/BodyCells/CellNumeric.js +28 -22
- package/HiTable/BodyCells/CellRate.js +6 -15
- package/HiTable/BodyCells/CellSentinel.js +68 -58
- package/HiTable/BodyCells/CellStatus.js +25 -30
- package/HiTable/BodyCells/CellText.js +46 -78
- package/HiTable/BodyCells/CellThirdPartySecurity.js +35 -53
- package/HiTable/BodyCells/index.js +9 -0
- package/HiTable/BodyRow.js +82 -133
- package/HiTable/ChildRow.js +9 -3
- package/HiTable/ColumnFilter.js +20 -30
- package/HiTable/HeaderCell.js +76 -97
- package/HiTable/HiStickyRow.js +16 -27
- package/HiTable/HiTable.js +111 -141
- package/HiTable/HiTableBody.js +62 -177
- package/HiTable/HiTableContextMenu.js +19 -39
- package/HiTable/HiTableFooterScroll.js +1 -1
- package/HiTable/HiTableHead.js +19 -42
- package/HiTable/OrderColumns.js +2 -6
- package/HiTable/constants.js +2 -2
- package/HiTopBar/HiTopBar.js +15 -25
- package/README.md +6 -72
- package/es/HiCheckbox/HiCheckbox.js +3 -6
- package/es/HiChip/HiChip.js +10 -96
- package/es/HiChip/HiChipSwitch.js +0 -6
- package/es/HiColoredLabel/HiColoredLabel.js +6 -11
- package/es/HiDatePicker/HiDatePicker.js +21 -30
- package/es/HiDatePicker/HiDateRangePicker.js +68 -140
- package/es/HiDatePicker/HiDateRangeSelector.js +31 -80
- package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +1 -3
- package/es/HiDatePicker/Overlays/Overlay.js +5 -19
- package/es/HiDatePicker/stylesheet.js +0 -14
- package/es/HiForm/HiFormControl.js +17 -20
- package/es/HiForm/HiInput.js +16 -40
- package/es/HiForm/HiPasswordField.js +3 -8
- package/es/HiForm/HiSearchField.js +2 -3
- package/es/HiForm/index.js +1 -5
- package/es/HiLoader/HiLoader.js +6 -10
- package/es/HiPins/HiPins.js +5 -4
- package/es/HiSelect/HiSelect.js +125 -327
- package/es/HiSelect/HiSuggestSelect.js +8 -65
- package/es/HiSelect/SelectInput.js +19 -55
- package/es/HiSelectableList/HiSelectableList.js +50 -58
- package/es/HiSelectableList/HiSelectableListItem.js +94 -134
- package/es/HiTable/BodyCellBuilder.js +113 -132
- package/es/HiTable/BodyCells/CellAccount.js +11 -9
- package/es/HiTable/BodyCells/CellAccountNumber.js +166 -0
- package/es/HiTable/BodyCells/CellAddress.js +45 -9
- package/es/HiTable/BodyCells/CellCountry.js +38 -16
- package/es/HiTable/BodyCells/CellDate.js +49 -38
- package/es/HiTable/BodyCells/CellIcon.js +32 -32
- package/es/HiTable/BodyCells/CellImage.js +43 -47
- package/es/HiTable/BodyCells/CellLayout.js +27 -60
- package/es/HiTable/BodyCells/CellNumeric.js +19 -15
- package/es/HiTable/BodyCells/CellRate.js +4 -9
- package/es/HiTable/BodyCells/CellSentinel.js +51 -41
- package/es/HiTable/BodyCells/CellStatus.js +20 -24
- package/es/HiTable/BodyCells/CellText.js +25 -52
- package/es/HiTable/BodyCells/CellThirdPartySecurity.js +26 -43
- package/es/HiTable/BodyCells/index.js +2 -0
- package/es/HiTable/BodyRow.js +77 -125
- package/es/HiTable/ChildRow.js +10 -3
- package/es/HiTable/ColumnFilter.js +14 -17
- package/es/HiTable/HeaderCell.js +82 -100
- package/es/HiTable/HiStickyRow.js +14 -21
- package/es/HiTable/HiTable.js +84 -114
- package/es/HiTable/HiTableBody.js +57 -149
- package/es/HiTable/HiTableContextMenu.js +19 -36
- package/es/HiTable/HiTableFooterScroll.js +1 -1
- package/es/HiTable/HiTableHead.js +18 -33
- package/es/HiTable/OrderColumns.js +2 -6
- package/es/HiTable/constants.js +7 -7
- package/es/HiTopBar/HiTopBar.js +16 -27
- package/es/styles/createHiMuiTheme.js +0 -13
- package/es/svg-icons/Cancel.js +0 -2
- package/es/svg-icons/index.js +1 -2
- package/es/utils/HiIconBuilder.js +6 -18
- package/es/utils/hiHelpers.js +8 -9
- package/index.es.js +1 -1
- package/index.js +1 -1
- package/package.json +4 -13
- package/styles/createHiMuiTheme.js +0 -13
- package/svg-icons/Cancel.js +0 -2
- package/svg-icons/index.js +0 -9
- package/umd/hipay-material-ui.development.js +77003 -113141
- package/umd/hipay-material-ui.production.min.js +5 -5
- package/utils/HiIconBuilder.js +5 -19
- package/utils/hiHelpers.js +7 -9
- package/HI-CHANGELOG.md +0 -114
- 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 -187
- package/HiForm/HiSlider.js +0 -399
- package/HiForm/HiUpload.js +0 -280
- package/HiForm/HiUploadField.js +0 -456
- package/HiMap/HiMap.js +0 -367
- package/HiMap/HiMapExpand.js +0 -217
- package/HiMap/index.js +0 -25
- package/HiPdfReader/HiPdfReader.js +0 -282
- package/HiPdfReader/index.js +0 -16
- package/HiTable/HiTableFooter.js +0 -140
- 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 -127
- package/es/HiForm/HiSlider.js +0 -309
- package/es/HiForm/HiUpload.js +0 -194
- package/es/HiForm/HiUploadField.js +0 -368
- package/es/HiMap/HiMap.js +0 -285
- package/es/HiMap/HiMapExpand.js +0 -145
- package/es/HiMap/index.js +0 -2
- package/es/HiPdfReader/HiPdfReader.js +0 -198
- package/es/HiPdfReader/index.js +0 -1
- package/es/HiTable/HiTableFooter.js +0 -80
- package/es/svg-icons/HiBriefcaseRescue.js +0 -15
- package/hmu/images/countries/ad.svg +0 -151
- package/hmu/images/countries/ae.svg +0 -6
- package/hmu/images/countries/af.svg +0 -83
- package/hmu/images/countries/ag.svg +0 -15
- package/hmu/images/countries/ai.svg +0 -767
- package/hmu/images/countries/al.svg +0 -5
- package/hmu/images/countries/am.svg +0 -5
- package/hmu/images/countries/ao.svg +0 -13
- package/hmu/images/countries/aq.svg +0 -6
- package/hmu/images/countries/ar.svg +0 -32
- package/hmu/images/countries/as.svg +0 -33
- package/hmu/images/countries/at.svg +0 -6
- package/hmu/images/countries/au.svg +0 -9
- package/hmu/images/countries/aw.svg +0 -186
- package/hmu/images/countries/ax.svg +0 -18
- package/hmu/images/countries/az.svg +0 -8
- package/hmu/images/countries/ba.svg +0 -12
- package/hmu/images/countries/bb.svg +0 -6
- package/hmu/images/countries/bd.svg +0 -4
- package/hmu/images/countries/be.svg +0 -7
- package/hmu/images/countries/bf.svg +0 -7
- package/hmu/images/countries/bg.svg +0 -7
- package/hmu/images/countries/bh.svg +0 -11
- package/hmu/images/countries/bi.svg +0 -15
- package/hmu/images/countries/bj.svg +0 -14
- package/hmu/images/countries/bl.svg +0 -7
- package/hmu/images/countries/bm.svg +0 -99
- package/hmu/images/countries/bn.svg +0 -36
- package/hmu/images/countries/bo.svg +0 -686
- package/hmu/images/countries/bq.svg +0 -5
- package/hmu/images/countries/br.svg +0 -45
- package/hmu/images/countries/bs.svg +0 -13
- package/hmu/images/countries/bt.svg +0 -89
- package/hmu/images/countries/bv.svg +0 -13
- package/hmu/images/countries/bw.svg +0 -7
- package/hmu/images/countries/by.svg +0 -61
- package/hmu/images/countries/bz.svg +0 -146
- package/hmu/images/countries/ca.svg +0 -4
- package/hmu/images/countries/cc.svg +0 -19
- package/hmu/images/countries/cd.svg +0 -5
- package/hmu/images/countries/cf.svg +0 -15
- package/hmu/images/countries/cg.svg +0 -12
- package/hmu/images/countries/ch.svg +0 -9
- package/hmu/images/countries/ci.svg +0 -7
- package/hmu/images/countries/ck.svg +0 -9
- package/hmu/images/countries/cl.svg +0 -13
- package/hmu/images/countries/cm.svg +0 -15
- package/hmu/images/countries/cn.svg +0 -11
- package/hmu/images/countries/co.svg +0 -7
- package/hmu/images/countries/cr.svg +0 -7
- package/hmu/images/countries/cu.svg +0 -13
- package/hmu/images/countries/cv.svg +0 -13
- package/hmu/images/countries/cw.svg +0 -14
- package/hmu/images/countries/cx.svg +0 -15
- package/hmu/images/countries/cy.svg +0 -6
- package/hmu/images/countries/cz.svg +0 -12
- package/hmu/images/countries/de.svg +0 -5
- package/hmu/images/countries/dj.svg +0 -13
- package/hmu/images/countries/dk.svg +0 -5
- package/hmu/images/countries/dm.svg +0 -152
- package/hmu/images/countries/do.svg +0 -6745
- package/hmu/images/countries/dz.svg +0 -5
- package/hmu/images/countries/ec.svg +0 -141
- package/hmu/images/countries/ee.svg +0 -7
- package/hmu/images/countries/eg.svg +0 -38
- package/hmu/images/countries/eh.svg +0 -15
- package/hmu/images/countries/er.svg +0 -8
- package/hmu/images/countries/es-ct.svg +0 -4
- package/hmu/images/countries/es.svg +0 -581
- package/hmu/images/countries/et.svg +0 -14
- package/hmu/images/countries/eu.svg +0 -28
- package/hmu/images/countries/fi.svg +0 -5
- package/hmu/images/countries/fj.svg +0 -124
- package/hmu/images/countries/fk.svg +0 -90
- package/hmu/images/countries/fm.svg +0 -11
- package/hmu/images/countries/fo.svg +0 -12
- package/hmu/images/countries/fr.svg +0 -7
- package/hmu/images/countries/ga.svg +0 -7
- package/hmu/images/countries/gb-eng.svg +0 -5
- package/hmu/images/countries/gb-nir.svg +0 -137
- package/hmu/images/countries/gb-sct.svg +0 -4
- package/hmu/images/countries/gb-wls.svg +0 -9
- package/hmu/images/countries/gb.svg +0 -15
- package/hmu/images/countries/gd.svg +0 -27
- package/hmu/images/countries/ge.svg +0 -6
- package/hmu/images/countries/gf.svg +0 -5
- package/hmu/images/countries/gg.svg +0 -9
- package/hmu/images/countries/gh.svg +0 -6
- package/hmu/images/countries/gi.svg +0 -33
- package/hmu/images/countries/gl.svg +0 -4
- package/hmu/images/countries/gm.svg +0 -14
- package/hmu/images/countries/gn.svg +0 -7
- package/hmu/images/countries/gp.svg +0 -7
- package/hmu/images/countries/gq.svg +0 -23
- package/hmu/images/countries/gr.svg +0 -22
- package/hmu/images/countries/gs.svg +0 -205
- package/hmu/images/countries/gt.svg +0 -204
- package/hmu/images/countries/gu.svg +0 -39
- package/hmu/images/countries/gw.svg +0 -13
- package/hmu/images/countries/gy.svg +0 -9
- package/hmu/images/countries/hk.svg +0 -32
- package/hmu/images/countries/hm.svg +0 -9
- package/hmu/images/countries/hn.svg +0 -18
- package/hmu/images/countries/hr.svg +0 -59
- package/hmu/images/countries/ht.svg +0 -122
- package/hmu/images/countries/hu.svg +0 -7
- package/hmu/images/countries/id.svg +0 -6
- package/hmu/images/countries/ie.svg +0 -7
- package/hmu/images/countries/il.svg +0 -14
- package/hmu/images/countries/im.svg +0 -36
- package/hmu/images/countries/in.svg +0 -25
- package/hmu/images/countries/io.svg +0 -148
- package/hmu/images/countries/iq.svg +0 -10
- package/hmu/images/countries/ir.svg +0 -219
- package/hmu/images/countries/is.svg +0 -12
- package/hmu/images/countries/it.svg +0 -7
- package/hmu/images/countries/je.svg +0 -32
- package/hmu/images/countries/jm.svg +0 -8
- package/hmu/images/countries/jo.svg +0 -16
- package/hmu/images/countries/jp.svg +0 -11
- package/hmu/images/countries/ke.svg +0 -23
- package/hmu/images/countries/kg.svg +0 -15
- package/hmu/images/countries/kh.svg +0 -69
- package/hmu/images/countries/ki.svg +0 -36
- package/hmu/images/countries/km.svg +0 -16
- package/hmu/images/countries/kn.svg +0 -14
- package/hmu/images/countries/kp.svg +0 -15
- package/hmu/images/countries/kr.svg +0 -24
- package/hmu/images/countries/kw.svg +0 -13
- package/hmu/images/countries/ky.svg +0 -63
- package/hmu/images/countries/kz.svg +0 -23
- package/hmu/images/countries/la.svg +0 -12
- package/hmu/images/countries/lb.svg +0 -15
- package/hmu/images/countries/lc.svg +0 -8
- package/hmu/images/countries/li.svg +0 -43
- package/hmu/images/countries/lk.svg +0 -22
- package/hmu/images/countries/lr.svg +0 -14
- package/hmu/images/countries/ls.svg +0 -8
- package/hmu/images/countries/lt.svg +0 -7
- package/hmu/images/countries/lu.svg +0 -5
- package/hmu/images/countries/lv.svg +0 -6
- package/hmu/images/countries/ly.svg +0 -13
- package/hmu/images/countries/ma.svg +0 -4
- package/hmu/images/countries/mc.svg +0 -6
- package/hmu/images/countries/md.svg +0 -72
- package/hmu/images/countries/me.svg +0 -118
- package/hmu/images/countries/mf.svg +0 -7
- package/hmu/images/countries/mg.svg +0 -7
- package/hmu/images/countries/mh.svg +0 -7
- package/hmu/images/countries/mk.svg +0 -5
- package/hmu/images/countries/ml.svg +0 -7
- package/hmu/images/countries/mm.svg +0 -16
- package/hmu/images/countries/mn.svg +0 -13
- package/hmu/images/countries/mo.svg +0 -9
- package/hmu/images/countries/mp.svg +0 -86
- package/hmu/images/countries/mq.svg +0 -7
- package/hmu/images/countries/mr.svg +0 -6
- package/hmu/images/countries/ms.svg +0 -39
- package/hmu/images/countries/mt.svg +0 -49
- package/hmu/images/countries/mu.svg +0 -8
- package/hmu/images/countries/mv.svg +0 -6
- package/hmu/images/countries/mw.svg +0 -10
- package/hmu/images/countries/mx.svg +0 -385
- package/hmu/images/countries/my.svg +0 -15
- package/hmu/images/countries/mz.svg +0 -21
- package/hmu/images/countries/na.svg +0 -16
- package/hmu/images/countries/nc.svg +0 -7
- package/hmu/images/countries/ne.svg +0 -6
- package/hmu/images/countries/nf.svg +0 -9
- package/hmu/images/countries/ng.svg +0 -6
- package/hmu/images/countries/ni.svg +0 -131
- package/hmu/images/countries/nl.svg +0 -7
- package/hmu/images/countries/no.svg +0 -7
- package/hmu/images/countries/np.svg +0 -14
- package/hmu/images/countries/nr.svg +0 -12
- package/hmu/images/countries/nu.svg +0 -26
- package/hmu/images/countries/nz.svg +0 -41
- package/hmu/images/countries/om.svg +0 -116
- package/hmu/images/countries/pa.svg +0 -14
- package/hmu/images/countries/pe.svg +0 -279
- package/hmu/images/countries/pf.svg +0 -19
- package/hmu/images/countries/pg.svg +0 -9
- package/hmu/images/countries/ph.svg +0 -28
- package/hmu/images/countries/pk.svg +0 -15
- package/hmu/images/countries/pl.svg +0 -6
- package/hmu/images/countries/pm.svg +0 -7
- package/hmu/images/countries/pn.svg +0 -62
- package/hmu/images/countries/pr.svg +0 -13
- package/hmu/images/countries/ps.svg +0 -15
- package/hmu/images/countries/pt.svg +0 -57
- package/hmu/images/countries/pw.svg +0 -11
- package/hmu/images/countries/py.svg +0 -157
- package/hmu/images/countries/qa.svg +0 -4
- package/hmu/images/countries/re.svg +0 -7
- package/hmu/images/countries/ro.svg +0 -7
- package/hmu/images/countries/rs.svg +0 -292
- package/hmu/images/countries/ru.svg +0 -7
- package/hmu/images/countries/rw.svg +0 -13
- package/hmu/images/countries/sa.svg +0 -26
- package/hmu/images/countries/sb.svg +0 -13
- package/hmu/images/countries/sc.svg +0 -14
- package/hmu/images/countries/sd.svg +0 -13
- package/hmu/images/countries/se.svg +0 -16
- package/hmu/images/countries/sg.svg +0 -13
- package/hmu/images/countries/sh.svg +0 -74
- package/hmu/images/countries/si.svg +0 -18
- package/hmu/images/countries/sj.svg +0 -7
- package/hmu/images/countries/sk.svg +0 -9
- package/hmu/images/countries/sl.svg +0 -7
- package/hmu/images/countries/sm.svg +0 -91
- package/hmu/images/countries/sn.svg +0 -8
- package/hmu/images/countries/so.svg +0 -11
- package/hmu/images/countries/sr.svg +0 -6
- package/hmu/images/countries/ss.svg +0 -8
- package/hmu/images/countries/st.svg +0 -16
- package/hmu/images/countries/sv.svg +0 -618
- package/hmu/images/countries/sx.svg +0 -56
- package/hmu/images/countries/sy.svg +0 -6
- package/hmu/images/countries/sz.svg +0 -45
- package/hmu/images/countries/tc.svg +0 -67
- package/hmu/images/countries/td.svg +0 -7
- package/hmu/images/countries/tf.svg +0 -15
- package/hmu/images/countries/tg.svg +0 -14
- package/hmu/images/countries/th.svg +0 -7
- package/hmu/images/countries/tj.svg +0 -22
- package/hmu/images/countries/tk.svg +0 -5
- package/hmu/images/countries/tl.svg +0 -13
- package/hmu/images/countries/tm.svg +0 -213
- package/hmu/images/countries/tn.svg +0 -13
- package/hmu/images/countries/to.svg +0 -10
- package/hmu/images/countries/tr.svg +0 -8
- package/hmu/images/countries/tt.svg +0 -5
- package/hmu/images/countries/tv.svg +0 -27
- package/hmu/images/countries/tw.svg +0 -14
- package/hmu/images/countries/tz.svg +0 -13
- package/hmu/images/countries/ua.svg +0 -6
- package/hmu/images/countries/ug.svg +0 -30
- package/hmu/images/countries/um.svg +0 -23
- package/hmu/images/countries/un.svg +0 -16
- package/hmu/images/countries/us.svg +0 -12
- package/hmu/images/countries/uy.svg +0 -28
- package/hmu/images/countries/uz.svg +0 -30
- package/hmu/images/countries/va.svg +0 -483
- package/hmu/images/countries/vc.svg +0 -8
- package/hmu/images/countries/ve.svg +0 -26
- package/hmu/images/countries/vg.svg +0 -133
- package/hmu/images/countries/vi.svg +0 -31
- package/hmu/images/countries/vn.svg +0 -11
- package/hmu/images/countries/vu.svg +0 -18
- package/hmu/images/countries/wf.svg +0 -7
- package/hmu/images/countries/ws.svg +0 -7
- package/hmu/images/countries/ye.svg +0 -7
- package/hmu/images/countries/yt.svg +0 -7
- package/hmu/images/countries/za.svg +0 -17
- package/hmu/images/countries/zm.svg +0 -27
- package/hmu/images/countries/zw.svg +0 -21
- package/hmu/images/hipay-white-logo.svg +0 -42
- package/hmu/images/logo_visa_75wx45h.gif +0 -0
- package/hmu/images/map_marker.svg +0 -8
- package/svg-icons/HiBriefcaseRescue.js +0 -30
@@ -1,18 +1,16 @@
|
|
1
|
-
import _extends from 'babel-runtime/helpers/extends';
|
2
1
|
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
|
3
|
-
import _JSON$stringify from 'babel-runtime/core-js/json/stringify';
|
4
2
|
import React from 'react';
|
5
3
|
import PropTypes from 'prop-types';
|
6
4
|
import { ContextMenuTrigger } from 'react-contextmenu';
|
7
|
-
|
5
|
+
|
8
6
|
import * as cst from './constants';
|
9
|
-
import { CellLayout, CellAccount, CellAddress, CellDate, CellIcon, CellImage, CellNumeric, CellRate, CellSentinel, CellStatus, CellText, CellThirdPartySecurity, CellCountry } from './BodyCells';
|
7
|
+
import { CellLayout, CellAccount, CellAccountNumber, CellAddress, CellDate, CellIcon, CellImage, CellNumeric, CellRate, CellSentinel, CellStatus, CellText, CellThirdPartySecurity, CellCountry } from './BodyCells';
|
10
8
|
import { formatRate } from '../utils/hiHelpers';
|
11
9
|
|
12
10
|
/**
|
13
11
|
* Construit la cellule correspondante au type demandé
|
14
12
|
*/
|
15
|
-
export default class BodyCellBuilder extends React.
|
13
|
+
export default class BodyCellBuilder extends React.PureComponent {
|
16
14
|
|
17
15
|
constructor(props) {
|
18
16
|
super(props);
|
@@ -20,42 +18,55 @@ export default class BodyCellBuilder extends React.Component {
|
|
20
18
|
this.collectContextMenuDatas = this.collectContextMenuDatas.bind(this);
|
21
19
|
}
|
22
20
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
/**
|
28
|
-
* CollecContextMenuDatas
|
29
|
-
*
|
30
|
-
* définit les données utilisées par le context menu (lookup, exclude, copy, redirect)
|
31
|
-
* - value : valeur sur laquelle on filtre
|
32
|
-
* - label : label de la value (traduite)
|
33
|
-
*/
|
34
|
-
collectContextMenuDatas() {
|
35
|
-
|
36
|
-
const _props$data = this.props.data,
|
37
|
-
{ value } = _props$data,
|
38
|
-
data = _objectWithoutProperties(_props$data, ['value']);
|
39
|
-
|
40
|
-
let contextLabel = data.label ? data.label : value;
|
41
|
-
|
21
|
+
collectContextMenuDatas(props) {
|
22
|
+
let label = '';
|
23
|
+
let value = null;
|
42
24
|
switch (this.props.type) {
|
43
|
-
|
25
|
+
case cst.TYPE_ADDRESS:
|
26
|
+
label = `${this.props.datas.name} ${this.props.datas.streetAddress} ${this.props.datas.city} ${this.props.datas.postalCode} ${this.props.datas.isoCountry}`;
|
27
|
+
break;
|
28
|
+
case cst.TYPE_SENTINEL:
|
29
|
+
label = `${this.props.datas.score}|${this.props.datas.fraudResult}`;
|
30
|
+
if (this.props.smartDecision && typeof this.props.datas.automaticFraudReviewResult !== 'undefined') {
|
31
|
+
label += `|${this.props.datas.automaticFraudReviewResult}`;
|
32
|
+
}
|
33
|
+
break;
|
34
|
+
case cst.TYPE_ACCOUNT:
|
35
|
+
case cst.TYPE_ACCOUNT_NUMBER:
|
36
|
+
case cst.TYPE_ICON:
|
37
|
+
case cst.TYPE_IMAGE:
|
38
|
+
case cst.TYPE_NUMERIC:
|
39
|
+
case cst.TYPE_TEXT:
|
40
|
+
default:
|
41
|
+
label = this.props.datas.value;
|
42
|
+
break;
|
44
43
|
case cst.TYPE_DATE:
|
45
44
|
const options = { year: 'numeric', month: '2-digit', day: '2-digit' };
|
46
|
-
const date = new Date(value);
|
47
|
-
|
45
|
+
const date = new Date(this.props.datas.value);
|
46
|
+
label = date.toLocaleString(this.props.dateLocale, options);
|
47
|
+
value = this.props.datas.value;
|
48
48
|
break;
|
49
|
-
|
50
49
|
case cst.TYPE_RATE:
|
51
|
-
|
50
|
+
label = formatRate(this.props.datas.value, this.props.view, this.props.numberLocale);
|
51
|
+
value = this.props.datas.value;
|
52
|
+
break;
|
53
|
+
case cst.TYPE_THIRD_PARTY_SECURITY:
|
54
|
+
case cst.TYPE_STATUS:
|
55
|
+
label = this.props.datas.value;
|
56
|
+
value = this.props.datas.code;
|
57
|
+
break;
|
58
|
+
case cst.TYPE_COUNTRY:
|
59
|
+
label = this.props.datas.value;
|
60
|
+
value = this.props.datas.isoCode;
|
52
61
|
break;
|
53
62
|
}
|
54
|
-
|
63
|
+
if (value === null) {
|
64
|
+
value = label;
|
65
|
+
}
|
55
66
|
return {
|
56
67
|
id: this.props.checkboxValue,
|
57
68
|
column: this.props.colId,
|
58
|
-
label
|
69
|
+
label,
|
59
70
|
value
|
60
71
|
};
|
61
72
|
}
|
@@ -65,14 +76,14 @@ export default class BodyCellBuilder extends React.Component {
|
|
65
76
|
{
|
66
77
|
ukey,
|
67
78
|
type,
|
68
|
-
|
79
|
+
datas,
|
69
80
|
view,
|
70
81
|
width,
|
82
|
+
fixedWidth,
|
71
83
|
padding,
|
72
84
|
align,
|
73
85
|
dense,
|
74
86
|
ellipsis,
|
75
|
-
formatShort,
|
76
87
|
onSelect,
|
77
88
|
selectable,
|
78
89
|
selected,
|
@@ -81,19 +92,15 @@ export default class BodyCellBuilder extends React.Component {
|
|
81
92
|
numberLocale,
|
82
93
|
childrenCount,
|
83
94
|
onOpenDetails,
|
84
|
-
lookedUp
|
85
|
-
fixedColumnWidth,
|
86
|
-
disableContextMenu,
|
87
|
-
detailInfos,
|
88
|
-
size,
|
89
|
-
tabId
|
95
|
+
lookedUp
|
90
96
|
} = _props,
|
91
|
-
props = _objectWithoutProperties(_props, ['ukey', 'type', '
|
97
|
+
props = _objectWithoutProperties(_props, ['ukey', 'type', 'datas', 'view', 'width', 'fixedWidth', 'padding', 'align', 'dense', 'ellipsis', 'onSelect', 'selectable', 'selected', 'sticky', 'dateLocale', 'numberLocale', 'childrenCount', 'onOpenDetails', 'lookedUp']);
|
92
98
|
|
93
99
|
const layoutProps = {
|
94
100
|
type,
|
95
101
|
view,
|
96
102
|
width,
|
103
|
+
fixedWidth,
|
97
104
|
align,
|
98
105
|
dense,
|
99
106
|
onSelect,
|
@@ -102,88 +109,84 @@ export default class BodyCellBuilder extends React.Component {
|
|
102
109
|
selected,
|
103
110
|
sticky,
|
104
111
|
childrenCount,
|
105
|
-
lookedUp
|
106
|
-
fixedColumnWidth,
|
107
|
-
detailInfos,
|
108
|
-
onOpenDetails
|
112
|
+
lookedUp
|
109
113
|
};
|
110
114
|
|
111
|
-
let
|
112
|
-
if (typeof data !== 'undefined') {
|
113
|
-
|
114
|
-
let cellElement;
|
115
|
+
let cellElement;
|
115
116
|
|
117
|
+
if (typeof datas !== 'undefined') {
|
116
118
|
switch (type) {
|
117
119
|
case cst.TYPE_ACCOUNT:
|
118
|
-
|
119
|
-
|
120
|
+
cellElement = React.createElement(CellAccount, { value: datas.value, color: datas.color, sticky: sticky });
|
121
|
+
break;
|
122
|
+
|
123
|
+
case cst.TYPE_ACCOUNT_NUMBER:
|
124
|
+
cellElement = React.createElement(CellAccountNumber, {
|
125
|
+
value: datas.value,
|
126
|
+
country: datas.country,
|
127
|
+
expirationDate: datas.expirationDate,
|
128
|
+
expirationDateLabel: datas.expirationDateLabel,
|
129
|
+
statusColor: datas.statusColor,
|
130
|
+
issuer: datas.issuer,
|
131
|
+
sticky: sticky
|
132
|
+
});
|
120
133
|
break;
|
121
134
|
|
122
135
|
case cst.TYPE_ADDRESS:
|
123
|
-
layoutProps.title = `${data.name}, ${data.value}, ${data.city}`;
|
124
136
|
cellElement = React.createElement(CellAddress, {
|
125
|
-
name:
|
126
|
-
streetAddress:
|
127
|
-
city:
|
128
|
-
postalCode:
|
129
|
-
country:
|
130
|
-
isoCountry:
|
137
|
+
name: datas.name,
|
138
|
+
streetAddress: datas.streetAddress,
|
139
|
+
city: datas.city,
|
140
|
+
postalCode: datas.postalCode,
|
141
|
+
country: datas.country,
|
142
|
+
isoCountry: datas.isoCountry,
|
131
143
|
view: view,
|
132
144
|
sticky: sticky
|
133
145
|
});
|
134
146
|
break;
|
135
147
|
|
136
148
|
case cst.TYPE_COUNTRY:
|
137
|
-
layoutProps.title = data.label ? data.label : data.value;
|
138
149
|
cellElement = React.createElement(CellCountry, {
|
139
|
-
|
140
|
-
|
141
|
-
value: data.value,
|
150
|
+
value: datas.value,
|
151
|
+
isoCode: datas.isoCode,
|
142
152
|
view: view,
|
143
153
|
sticky: sticky
|
144
154
|
});
|
145
155
|
break;
|
146
156
|
|
147
157
|
case cst.TYPE_DATE:
|
148
|
-
if (!props.displayTime) layoutProps.title = moment(data.value).format('dddd DD MMMM YYYY HH:mm:ss');
|
149
158
|
cellElement = React.createElement(CellDate, {
|
150
|
-
value:
|
159
|
+
value: datas.value,
|
151
160
|
locale: dateLocale,
|
152
161
|
view: view,
|
153
162
|
displayTime: props.displayTime,
|
154
|
-
sticky: sticky
|
155
|
-
formatShort: formatShort
|
163
|
+
sticky: sticky
|
156
164
|
});
|
157
165
|
break;
|
158
166
|
|
159
167
|
case cst.TYPE_ICON:
|
160
|
-
if (view === cst.VIEWS.SMALL) layoutProps.
|
168
|
+
if (view === cst.VIEWS.SMALL) layoutProps.fixedWidth = true;
|
161
169
|
cellElement = React.createElement(CellIcon, {
|
162
|
-
value:
|
163
|
-
icon:
|
164
|
-
color: data.color,
|
170
|
+
value: datas.value,
|
171
|
+
icon: datas.icon,
|
165
172
|
view: view,
|
166
173
|
sticky: sticky
|
167
174
|
});
|
168
175
|
break;
|
169
176
|
|
170
177
|
case cst.TYPE_IMAGE:
|
171
|
-
if (view === cst.VIEWS.SMALL) layoutProps.title = data.label ? data.label : data.value;
|
172
178
|
cellElement = React.createElement(CellImage, {
|
173
|
-
value:
|
174
|
-
path:
|
175
|
-
size: size,
|
179
|
+
value: datas.value,
|
180
|
+
path: datas.path,
|
176
181
|
view: view,
|
177
182
|
sticky: sticky
|
178
183
|
});
|
179
184
|
break;
|
180
185
|
|
181
186
|
case cst.TYPE_NUMERIC:
|
182
|
-
if (view !== cst.VIEWS.LARGE) layoutProps.title = data.label ? data.label : data.value;
|
183
187
|
cellElement = React.createElement(CellNumeric, {
|
184
|
-
value:
|
185
|
-
currency:
|
186
|
-
precision: data.precision,
|
188
|
+
value: datas.value,
|
189
|
+
currency: datas.currency,
|
187
190
|
locale: numberLocale,
|
188
191
|
view: view,
|
189
192
|
sticky: sticky
|
@@ -192,10 +195,10 @@ export default class BodyCellBuilder extends React.Component {
|
|
192
195
|
|
193
196
|
case cst.TYPE_RATE:
|
194
197
|
cellElement = React.createElement(CellRate, {
|
195
|
-
value:
|
196
|
-
isPositive:
|
197
|
-
trendchip:
|
198
|
-
indicator:
|
198
|
+
value: datas.value,
|
199
|
+
isPositive: datas.isPositive,
|
200
|
+
trendchip: datas.trendchip,
|
201
|
+
indicator: datas.indicator,
|
199
202
|
locale: numberLocale,
|
200
203
|
view: view,
|
201
204
|
sticky: sticky
|
@@ -204,64 +207,57 @@ export default class BodyCellBuilder extends React.Component {
|
|
204
207
|
|
205
208
|
case cst.TYPE_SENTINEL:
|
206
209
|
cellElement = React.createElement(CellSentinel, {
|
207
|
-
score:
|
208
|
-
fraudResult:
|
209
|
-
automaticFraudReviewResult:
|
210
|
-
pendingManualAction:
|
210
|
+
score: datas.score,
|
211
|
+
fraudResult: datas.fraudResult,
|
212
|
+
automaticFraudReviewResult: datas.automaticFraudReviewResult,
|
213
|
+
pendingManualAction: datas.pendingManualAction,
|
211
214
|
smartDecision: props.smartDecision,
|
212
215
|
sticky: sticky
|
213
216
|
});
|
214
217
|
break;
|
215
218
|
|
216
219
|
case cst.TYPE_STATUS:
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
value:
|
220
|
+
cellElement = React.createElement(CellStatus, {
|
221
|
+
code: datas.code,
|
222
|
+
nbOperations: datas.count_operations,
|
223
|
+
value: datas.value,
|
224
|
+
onOpenDetails: onOpenDetails,
|
221
225
|
sticky: sticky
|
222
|
-
}
|
223
|
-
nbOperations: detailInfos.total,
|
224
|
-
onOpenDetails: onOpenDetails
|
225
|
-
}));
|
226
|
-
delete layoutProps.detailInfos;
|
227
|
-
delete layoutProps.onOpenDetails;
|
226
|
+
});
|
228
227
|
break;
|
229
228
|
|
230
229
|
case cst.TYPE_THIRD_PARTY_SECURITY:
|
231
|
-
layoutProps.title = data.label ? data.label : data.value;
|
232
230
|
layoutProps.align = 'center';
|
231
|
+
layoutProps.fixedWidth = true;
|
233
232
|
cellElement = React.createElement(CellThirdPartySecurity, {
|
234
|
-
value:
|
235
|
-
|
233
|
+
value: datas.value,
|
234
|
+
code: datas.code,
|
236
235
|
sticky: sticky
|
237
236
|
});
|
238
237
|
break;
|
239
238
|
|
240
|
-
case cst.TYPE_ACCOUNT_NUMBER:
|
241
239
|
case cst.TYPE_TEXT:
|
242
240
|
default:
|
243
|
-
layoutProps.title = data.label ? data.label : data.value;
|
244
241
|
cellElement = React.createElement(CellText, {
|
245
242
|
ukey: ukey,
|
246
|
-
value:
|
243
|
+
value: datas.value,
|
247
244
|
ellipsis: ellipsis,
|
248
245
|
view: view,
|
249
|
-
sticky: sticky
|
250
|
-
color: data.color
|
246
|
+
sticky: sticky
|
251
247
|
});
|
252
248
|
break;
|
253
249
|
}
|
254
|
-
|
255
|
-
cellContent = disableContextMenu ? cellElement : React.createElement(
|
256
|
-
ContextMenuTrigger,
|
257
|
-
{
|
258
|
-
id: `hitable_context_menu_${tabId}`,
|
259
|
-
collect: this.collectContextMenuDatas
|
260
|
-
},
|
261
|
-
cellElement
|
262
|
-
);
|
263
250
|
}
|
264
251
|
|
252
|
+
const cellContent = cellElement ? React.createElement(
|
253
|
+
ContextMenuTrigger,
|
254
|
+
{
|
255
|
+
id: `hitable_context_menu_${this.props.tabId}`,
|
256
|
+
collect: this.collectContextMenuDatas
|
257
|
+
},
|
258
|
+
cellElement
|
259
|
+
) : cellElement;
|
260
|
+
|
265
261
|
return React.createElement(
|
266
262
|
CellLayout,
|
267
263
|
layoutProps,
|
@@ -270,9 +266,7 @@ export default class BodyCellBuilder extends React.Component {
|
|
270
266
|
}
|
271
267
|
}
|
272
268
|
BodyCellBuilder.defaultProps = {
|
273
|
-
ellipsis: 'right'
|
274
|
-
disableContextMenu: true,
|
275
|
-
detailInfos: null
|
269
|
+
ellipsis: 'right'
|
276
270
|
};
|
277
271
|
BodyCellBuilder.propTypes = process.env.NODE_ENV !== "production" ? {
|
278
272
|
/**
|
@@ -287,14 +281,10 @@ BodyCellBuilder.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
287
281
|
* Identifiant de la colonne
|
288
282
|
*/
|
289
283
|
colId: PropTypes.string,
|
290
|
-
/**
|
291
|
-
* Données de références
|
292
|
-
*/
|
293
|
-
columnDatas: PropTypes.array,
|
294
284
|
/**
|
295
285
|
* Données relatives au type de la cellule
|
296
286
|
*/
|
297
|
-
|
287
|
+
datas: PropTypes.object,
|
298
288
|
/**
|
299
289
|
* Locale a utilisée pour l'affichage des dates
|
300
290
|
*/
|
@@ -303,23 +293,14 @@ BodyCellBuilder.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
303
293
|
* Densité, défini la hauteur de la ligne
|
304
294
|
*/
|
305
295
|
dense: PropTypes.bool,
|
306
|
-
/**
|
307
|
-
* Ajoute un Chip affichant le nombre de ligne de détails de la ligne et permettant de les affichés via onOpenDetails
|
308
|
-
*/
|
309
|
-
detailInfos: PropTypes.object,
|
310
|
-
/**
|
311
|
-
* Active/désactive le menu contextuel au clic droit sur les cellules du tableau
|
312
|
-
*/
|
313
|
-
disableContextMenu: PropTypes.bool.isRequired,
|
314
296
|
/**
|
315
297
|
* Ellipsis
|
316
298
|
*/
|
317
299
|
ellipsis: PropTypes.oneOf(['left', 'right', 'middle', 'name', 'after-first-word']),
|
318
300
|
/**
|
319
|
-
*
|
320
|
-
* Sinon les colonnes s'adaptent à l'espace disponible
|
301
|
+
* La largeur de la cellule est fixé (toutes les colonnes sauf une)
|
321
302
|
*/
|
322
|
-
|
303
|
+
fixedWidth: PropTypes.bool,
|
323
304
|
/**
|
324
305
|
* Recherche lookup sur cette colonne
|
325
306
|
*/
|
@@ -360,5 +341,5 @@ BodyCellBuilder.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
360
341
|
/**
|
361
342
|
* Largeur de la cellule (hors padding), est déduit de view par défaut
|
362
343
|
*/
|
363
|
-
width: PropTypes.
|
344
|
+
width: PropTypes.number
|
364
345
|
} : {};
|
@@ -1,22 +1,24 @@
|
|
1
|
-
import _JSON$stringify from 'babel-runtime/core-js/json/stringify';
|
2
1
|
import React from 'react';
|
3
2
|
import PropTypes from 'prop-types';
|
4
3
|
import Tooltip from '../../Tooltip';
|
5
4
|
import HiColoredLabel from '../../HiColoredLabel';
|
5
|
+
import withStyles from '../../styles/withStyles';
|
6
|
+
|
7
|
+
export const styles = theme => ({});
|
6
8
|
|
7
9
|
/**
|
8
10
|
* Cette cellule permet d'afficher le nom d'un compte sous la forme d'un label coloré.
|
9
11
|
*/
|
10
|
-
class CellAccount extends React.
|
11
|
-
|
12
|
-
shouldComponentUpdate(nextProps, nextState) {
|
13
|
-
return _JSON$stringify(this.props) !== _JSON$stringify(nextProps) || _JSON$stringify(this.state) !== _JSON$stringify(nextState);
|
14
|
-
}
|
12
|
+
class CellAccount extends React.PureComponent {
|
15
13
|
|
16
14
|
render() {
|
17
15
|
const { value, color } = this.props;
|
18
16
|
|
19
|
-
return React.createElement(
|
17
|
+
return React.createElement(
|
18
|
+
Tooltip,
|
19
|
+
{ title: value, placement: 'bottom' },
|
20
|
+
React.createElement(HiColoredLabel, { label: value, color: color })
|
21
|
+
);
|
20
22
|
}
|
21
23
|
}
|
22
24
|
|
@@ -29,10 +31,10 @@ CellAccount.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
29
31
|
/**
|
30
32
|
* Couleur du compte
|
31
33
|
*/
|
32
|
-
color: PropTypes.string,
|
34
|
+
color: PropTypes.string.isRequired,
|
33
35
|
/**
|
34
36
|
* Nom du compte
|
35
37
|
*/
|
36
38
|
value: PropTypes.string.isRequired
|
37
39
|
} : {};
|
38
|
-
export default CellAccount;
|
40
|
+
export default withStyles(styles, { name: 'HmuiCellAccount' })(CellAccount);
|
@@ -0,0 +1,166 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
import { Circle } from 'mdi-material-ui';
|
4
|
+
import Tooltip from '../../Tooltip';
|
5
|
+
import { withStyles, withTheme } from '../../styles';
|
6
|
+
|
7
|
+
export const styles = theme => ({
|
8
|
+
tooltipWrapper: {
|
9
|
+
textAlign: 'center'
|
10
|
+
},
|
11
|
+
coloredIndicator: {
|
12
|
+
backgroundColor: '#ffffff',
|
13
|
+
borderRadius: '50%',
|
14
|
+
float: 'left',
|
15
|
+
width: 12,
|
16
|
+
height: 'auto',
|
17
|
+
position: 'relative',
|
18
|
+
top: 5,
|
19
|
+
right: 3
|
20
|
+
},
|
21
|
+
leftEllipsisSpan: {
|
22
|
+
display: 'inline-block',
|
23
|
+
overflow: 'hidden',
|
24
|
+
textOverflow: 'ellipsis',
|
25
|
+
whiteSpace: 'pre',
|
26
|
+
direction: 'rtl',
|
27
|
+
width: '49%'
|
28
|
+
},
|
29
|
+
rightEllipsisSpan: {
|
30
|
+
display: 'inline-block',
|
31
|
+
overflow: 'hidden',
|
32
|
+
textOverflow: 'ellipsis',
|
33
|
+
whiteSpace: 'pre'
|
34
|
+
},
|
35
|
+
noEllipsisSpan: {
|
36
|
+
display: 'inline-block',
|
37
|
+
overflow: 'hidden',
|
38
|
+
whiteSpace: 'pre',
|
39
|
+
maxWidth: '50%'
|
40
|
+
}
|
41
|
+
});
|
42
|
+
|
43
|
+
/**
|
44
|
+
* Cette cellule permet d'afficher un numéro de compte
|
45
|
+
* Le tooltip affiche les informations complémentaires (country, expiration date..)
|
46
|
+
*/
|
47
|
+
class CellAccountNumber extends React.PureComponent {
|
48
|
+
|
49
|
+
render() {
|
50
|
+
const {
|
51
|
+
classes,
|
52
|
+
value,
|
53
|
+
country,
|
54
|
+
expirationDate,
|
55
|
+
expirationDateLabel,
|
56
|
+
statusColor,
|
57
|
+
issuer
|
58
|
+
} = this.props;
|
59
|
+
|
60
|
+
let dateDisplayed = new Date(expirationDate);
|
61
|
+
|
62
|
+
if (isNaN(dateDisplayed.getMonth()) || isNaN(dateDisplayed.getFullYear())) {
|
63
|
+
dateDisplayed = '';
|
64
|
+
} else {
|
65
|
+
dateDisplayed = `${dateDisplayed.getMonth() + 1 < 10 ? `${dateDisplayed.getMonth()}${1}` : dateDisplayed.getMonth() + 1}/${dateDisplayed.getFullYear()}`;
|
66
|
+
}
|
67
|
+
|
68
|
+
const tooltipContent = React.createElement(
|
69
|
+
'div',
|
70
|
+
{ className: classes.tooltipWrapper },
|
71
|
+
React.createElement(
|
72
|
+
'div',
|
73
|
+
null,
|
74
|
+
issuer
|
75
|
+
),
|
76
|
+
React.createElement(
|
77
|
+
'div',
|
78
|
+
null,
|
79
|
+
value || 'N/A'
|
80
|
+
),
|
81
|
+
expirationDate && React.createElement(
|
82
|
+
'div',
|
83
|
+
null,
|
84
|
+
statusColor ? React.createElement(Circle, {
|
85
|
+
style: { color: statusColor },
|
86
|
+
className: classes.coloredIndicator
|
87
|
+
}) : '',
|
88
|
+
expirationDateLabel && `${expirationDateLabel} : `,
|
89
|
+
dateDisplayed
|
90
|
+
),
|
91
|
+
React.createElement(
|
92
|
+
'div',
|
93
|
+
null,
|
94
|
+
country
|
95
|
+
)
|
96
|
+
);
|
97
|
+
|
98
|
+
const start = value ? value.substr(0, Math.round(value.length / 2)) : '';
|
99
|
+
// reverse string for rtl display
|
100
|
+
const end = value ? value.substr(Math.round(value.length / 2)).split('').reverse().join('') : '';
|
101
|
+
|
102
|
+
return React.createElement(
|
103
|
+
Tooltip,
|
104
|
+
{ title: tooltipContent, placement: this.props.sticky ? 'right' : 'bottom' },
|
105
|
+
React.createElement(
|
106
|
+
'div',
|
107
|
+
{ className: classes.rightEllipsisSpan, style: { width: '100%' } },
|
108
|
+
React.createElement(
|
109
|
+
'div',
|
110
|
+
{
|
111
|
+
ref: div => {
|
112
|
+
this.cellText = div;
|
113
|
+
}
|
114
|
+
},
|
115
|
+
React.createElement(
|
116
|
+
'span',
|
117
|
+
{ className: classes.noEllipsisSpan },
|
118
|
+
start
|
119
|
+
),
|
120
|
+
React.createElement(
|
121
|
+
'span',
|
122
|
+
{ className: classes.leftEllipsisSpan },
|
123
|
+
end
|
124
|
+
)
|
125
|
+
)
|
126
|
+
)
|
127
|
+
);
|
128
|
+
}
|
129
|
+
}
|
130
|
+
|
131
|
+
CellAccountNumber.propTypes = process.env.NODE_ENV !== "production" ? {
|
132
|
+
/**
|
133
|
+
* Useful to extend the style applied to components.
|
134
|
+
*/
|
135
|
+
classes: PropTypes.object,
|
136
|
+
/**
|
137
|
+
* Pays du compte
|
138
|
+
*/
|
139
|
+
country: PropTypes.string,
|
140
|
+
/**
|
141
|
+
* Date d'expiration
|
142
|
+
*/
|
143
|
+
expirationDate: PropTypes.string,
|
144
|
+
/**
|
145
|
+
* Label de la date d'expiration
|
146
|
+
*/
|
147
|
+
expirationDateLabel: PropTypes.string,
|
148
|
+
/**
|
149
|
+
* Banque issuer
|
150
|
+
*/
|
151
|
+
issuer: PropTypes.string,
|
152
|
+
/**
|
153
|
+
* Couleur représentant le statut du compte (utilisé pour caractériser la date d'expiration)
|
154
|
+
*/
|
155
|
+
statusColor: PropTypes.string,
|
156
|
+
/**
|
157
|
+
* True si la colonne est la première colonne et doit avoir un comportement "sticky"
|
158
|
+
* lors du scroll horizontal
|
159
|
+
*/
|
160
|
+
sticky: PropTypes.bool,
|
161
|
+
/**
|
162
|
+
* Numéro du compte
|
163
|
+
*/
|
164
|
+
value: PropTypes.string
|
165
|
+
} : {};
|
166
|
+
export default withStyles(styles, { withTheme: true, name: 'HmuiCellAccountNumber' })(CellAccountNumber);
|