@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,9 +1,11 @@
|
|
1
|
-
import _JSON$stringify from 'babel-runtime/core-js/json/stringify';
|
2
1
|
// @inheritedComponent CellLayout
|
2
|
+
|
3
3
|
import React from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
5
|
+
import Tooltip from '../../Tooltip';
|
5
6
|
import * as cst from '../constants';
|
6
7
|
import withStyles from '../../styles/withStyles';
|
8
|
+
import CellLayout from './CellLayout';
|
7
9
|
|
8
10
|
export const styles = theme => ({
|
9
11
|
rightEllipsisSpan: {
|
@@ -21,11 +23,7 @@ export const styles = theme => ({
|
|
21
23
|
* - sinon on affiche la ville et le pays
|
22
24
|
* - tous les champs définis sont affichés dans le tooltip
|
23
25
|
*/
|
24
|
-
class CellAddress extends React.
|
25
|
-
|
26
|
-
shouldComponentUpdate(nextProps, nextState) {
|
27
|
-
return _JSON$stringify(this.props) !== _JSON$stringify(nextProps) || _JSON$stringify(this.state) !== _JSON$stringify(nextState);
|
28
|
-
}
|
26
|
+
class CellAddress extends React.PureComponent {
|
29
27
|
|
30
28
|
render() {
|
31
29
|
const { classes, streetAddress, name, city, postalCode, view, country, isoCountry } = this.props;
|
@@ -45,10 +43,48 @@ class CellAddress extends React.Component {
|
|
45
43
|
label += isoCountry;
|
46
44
|
}
|
47
45
|
|
48
|
-
|
46
|
+
let tooltipContent = React.createElement(
|
49
47
|
'div',
|
50
|
-
|
51
|
-
|
48
|
+
null,
|
49
|
+
React.createElement(
|
50
|
+
'div',
|
51
|
+
null,
|
52
|
+
name
|
53
|
+
),
|
54
|
+
React.createElement(
|
55
|
+
'div',
|
56
|
+
null,
|
57
|
+
streetAddress
|
58
|
+
),
|
59
|
+
React.createElement(
|
60
|
+
'div',
|
61
|
+
null,
|
62
|
+
React.createElement(
|
63
|
+
'span',
|
64
|
+
null,
|
65
|
+
city + ', '
|
66
|
+
),
|
67
|
+
React.createElement(
|
68
|
+
'span',
|
69
|
+
null,
|
70
|
+
postalCode
|
71
|
+
)
|
72
|
+
),
|
73
|
+
React.createElement(
|
74
|
+
'div',
|
75
|
+
null,
|
76
|
+
country
|
77
|
+
)
|
78
|
+
);
|
79
|
+
|
80
|
+
return React.createElement(
|
81
|
+
Tooltip,
|
82
|
+
{ title: tooltipContent, placement: this.props.sticky ? 'right' : 'bottom' },
|
83
|
+
React.createElement(
|
84
|
+
'div',
|
85
|
+
{ className: classes.rightEllipsisSpan },
|
86
|
+
label
|
87
|
+
)
|
52
88
|
);
|
53
89
|
}
|
54
90
|
}
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import _JSON$stringify from 'babel-runtime/core-js/json/stringify';
|
2
1
|
import React from 'react';
|
3
2
|
import PropTypes from 'prop-types';
|
3
|
+
|
4
4
|
import CellImage from './CellImage';
|
5
|
+
import Tooltip from '../../Tooltip';
|
5
6
|
import withStyles from '../../styles/withStyles';
|
6
7
|
import * as cst from '../constants';
|
7
8
|
|
@@ -43,19 +44,44 @@ export const styles = theme => ({
|
|
43
44
|
* en vue small : Affiche la valeur courte (id), tooltip = Image + Value
|
44
45
|
*
|
45
46
|
*/
|
46
|
-
class CellCountry extends React.
|
47
|
-
|
48
|
-
shouldComponentUpdate(nextProps, nextState) {
|
49
|
-
return _JSON$stringify(this.props) !== _JSON$stringify(nextProps) || _JSON$stringify(this.state) !== _JSON$stringify(nextState);
|
50
|
-
}
|
47
|
+
class CellCountry extends React.PureComponent {
|
51
48
|
|
52
49
|
render() {
|
53
|
-
const {
|
50
|
+
const { classes, value, isoCode, view } = this.props;
|
51
|
+
|
52
|
+
let path = '/static/images/countries/' + isoCode.toLowerCase() + '.svg';
|
53
|
+
|
54
|
+
let tooltipContent = React.createElement(
|
55
|
+
'div',
|
56
|
+
null,
|
57
|
+
React.createElement('img', { src: path, className: classes.tooltipImg }),
|
58
|
+
React.createElement(
|
59
|
+
'span',
|
60
|
+
{ className: classes.tooltipLabel },
|
61
|
+
value
|
62
|
+
)
|
63
|
+
);
|
54
64
|
|
55
65
|
if (view === cst.VIEWS.LARGE) {
|
56
|
-
return React.createElement(CellImage, {
|
66
|
+
return React.createElement(CellImage, { view: cst.VIEWS.LARGE, value: value, path: path });
|
57
67
|
} else {
|
58
|
-
|
68
|
+
let valueElement = value;
|
69
|
+
if (view === cst.VIEWS.SMALL) {
|
70
|
+
valueElement = isoCode.toUpperCase();
|
71
|
+
}
|
72
|
+
return React.createElement(
|
73
|
+
Tooltip,
|
74
|
+
{ title: tooltipContent, placement: this.props.sticky ? 'right' : 'bottom' },
|
75
|
+
React.createElement(
|
76
|
+
'div',
|
77
|
+
{ className: classes.wrapper },
|
78
|
+
React.createElement(
|
79
|
+
'span',
|
80
|
+
{ className: classes.label },
|
81
|
+
valueElement
|
82
|
+
)
|
83
|
+
)
|
84
|
+
);
|
59
85
|
}
|
60
86
|
}
|
61
87
|
}
|
@@ -68,15 +94,11 @@ CellCountry.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
68
94
|
/**
|
69
95
|
* Label
|
70
96
|
*/
|
71
|
-
|
72
|
-
/**
|
73
|
-
* Flag's image path
|
74
|
-
*/
|
75
|
-
path: PropTypes.string,
|
97
|
+
value: PropTypes.string.isRequired,
|
76
98
|
/**
|
77
|
-
*
|
99
|
+
* Code ISO
|
78
100
|
*/
|
79
|
-
|
101
|
+
isoCode: PropTypes.string.isRequired,
|
80
102
|
/**
|
81
103
|
* View (L/M/S)
|
82
104
|
*/
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import
|
1
|
+
import _extends from 'babel-runtime/helpers/extends';
|
2
2
|
import React from 'react';
|
3
3
|
import PropTypes from 'prop-types';
|
4
|
-
|
5
|
-
import 'moment/locale/fr';
|
4
|
+
|
6
5
|
import withStyles from '../../styles/withStyles';
|
6
|
+
import Tooltip from '../../Tooltip';
|
7
7
|
import * as cst from '../constants';
|
8
8
|
|
9
|
-
export const styles = {
|
9
|
+
export const styles = theme => ({
|
10
10
|
rightEllipsisSpan: {
|
11
11
|
display: 'inline-block',
|
12
12
|
overflow: 'hidden',
|
@@ -14,33 +14,51 @@ export const styles = {
|
|
14
14
|
whiteSpace: 'pre',
|
15
15
|
width: '100%'
|
16
16
|
}
|
17
|
-
};
|
17
|
+
});
|
18
18
|
|
19
19
|
/**
|
20
20
|
* Cette cellule permet d'afficher une date en fonction de la locale de l'utilisateur
|
21
21
|
*/
|
22
22
|
class CellDate extends React.Component {
|
23
|
-
constructor(...args) {
|
24
|
-
var _temp;
|
25
|
-
|
26
|
-
return _temp = super(...args), this.formatLong = 'dddd DD MMMM YYYY HH:mm:ss', _temp;
|
27
|
-
}
|
28
|
-
|
29
|
-
shouldComponentUpdate(nextProps, nextState) {
|
30
|
-
return _JSON$stringify(this.props) !== _JSON$stringify(nextProps) || _JSON$stringify(this.state) !== _JSON$stringify(nextState);
|
31
|
-
}
|
32
23
|
|
33
24
|
render() {
|
34
|
-
const { classes, displayTime, value, locale, view
|
25
|
+
const { classes, displayTime, value, locale, view } = this.props;
|
35
26
|
|
36
|
-
const date =
|
37
|
-
date.locale(locale);
|
27
|
+
const date = new Date(value);
|
38
28
|
|
39
|
-
let
|
29
|
+
let options = _extends({
|
30
|
+
weekday: 'long',
|
31
|
+
year: 'numeric',
|
32
|
+
month: 'long',
|
33
|
+
day: '2-digit'
|
34
|
+
}, displayTime && {
|
35
|
+
hour: '2-digit',
|
36
|
+
minute: '2-digit',
|
37
|
+
second: '2-digit'
|
38
|
+
});
|
39
|
+
const titleValue = date.toLocaleString(locale, options);
|
40
|
+
let displayedValue = titleValue;
|
40
41
|
if (view === cst.VIEWS.SMALL) {
|
41
|
-
|
42
|
+
options = _extends({
|
43
|
+
year: '2-digit',
|
44
|
+
month: '2-digit',
|
45
|
+
day: '2-digit'
|
46
|
+
}, displayTime && {
|
47
|
+
hour: '2-digit',
|
48
|
+
minute: '2-digit'
|
49
|
+
});
|
50
|
+
displayedValue = date.toLocaleString(locale, options);
|
42
51
|
} else if (view === cst.VIEWS.MEDIUM) {
|
43
|
-
|
52
|
+
options = _extends({
|
53
|
+
year: 'numeric',
|
54
|
+
month: '2-digit',
|
55
|
+
day: '2-digit'
|
56
|
+
}, displayTime && {
|
57
|
+
hour: '2-digit',
|
58
|
+
minute: '2-digit',
|
59
|
+
second: '2-digit'
|
60
|
+
});
|
61
|
+
displayedValue = date.toLocaleString(locale, options);
|
44
62
|
}
|
45
63
|
|
46
64
|
if (view === cst.VIEWS.LARGE) {
|
@@ -52,18 +70,21 @@ class CellDate extends React.Component {
|
|
52
70
|
}
|
53
71
|
|
54
72
|
return React.createElement(
|
55
|
-
|
56
|
-
{
|
57
|
-
|
73
|
+
Tooltip,
|
74
|
+
{ title: titleValue, placement: this.props.sticky ? 'right' : 'bottom' },
|
75
|
+
React.createElement(
|
76
|
+
'div',
|
77
|
+
{ className: classes.rightEllipsisSpan },
|
78
|
+
displayedValue
|
79
|
+
)
|
58
80
|
);
|
59
81
|
}
|
60
82
|
}
|
61
83
|
|
62
84
|
CellDate.defaultProps = {
|
63
85
|
displayTime: false,
|
64
|
-
locale: 'en',
|
65
|
-
view: 'l'
|
66
|
-
formatShort: 'DD/MM/YYYY'
|
86
|
+
locale: 'en-EN',
|
87
|
+
view: 'l'
|
67
88
|
};
|
68
89
|
CellDate.propTypes = process.env.NODE_ENV !== "production" ? {
|
69
90
|
/**
|
@@ -75,21 +96,11 @@ CellDate.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
75
96
|
*/
|
76
97
|
displayTime: PropTypes.bool,
|
77
98
|
/**
|
78
|
-
*
|
79
|
-
* @see https://momentjs.com/docs/#/parsing/string-format/
|
80
|
-
*/
|
81
|
-
formatShort: PropTypes.string.isRequired,
|
82
|
-
/**
|
83
|
-
* Locale moment
|
99
|
+
* Locale BCP 47
|
84
100
|
*/
|
85
101
|
locale: PropTypes.string,
|
86
102
|
/**
|
87
|
-
*
|
88
|
-
* doit avoir un comportement "sticky" lors du scroll horizontal
|
89
|
-
*/
|
90
|
-
sticky: PropTypes.bool,
|
91
|
-
/**
|
92
|
-
* Date as string
|
103
|
+
* Volume/Amount
|
93
104
|
*/
|
94
105
|
value: PropTypes.string.isRequired,
|
95
106
|
/**
|
@@ -1,61 +1,66 @@
|
|
1
|
-
import _JSON$stringify from 'babel-runtime/core-js/json/stringify';
|
2
1
|
import React from 'react';
|
3
2
|
import PropTypes from 'prop-types';
|
3
|
+
|
4
|
+
import Tooltip from '../../Tooltip';
|
4
5
|
import withStyles from '../../styles/withStyles';
|
5
6
|
import * as cst from '../constants';
|
6
7
|
import HiIconBuilder from '../../utils/HiIconBuilder';
|
7
8
|
|
8
|
-
export const styles = {
|
9
|
+
export const styles = theme => ({
|
9
10
|
icon: {
|
10
11
|
float: 'left'
|
11
12
|
},
|
12
13
|
label: {
|
13
|
-
margin:
|
14
|
+
margin: 5
|
15
|
+
},
|
16
|
+
wrapper: {
|
14
17
|
whiteSpace: 'nowrap',
|
15
18
|
overflow: 'hidden',
|
16
19
|
textOverflow: 'ellipsis'
|
17
|
-
},
|
18
|
-
wrapper: {
|
19
|
-
maxWidth: '100%',
|
20
|
-
display: 'inline-flex'
|
21
|
-
},
|
22
|
-
nowrap: {
|
23
|
-
whiteSpace: 'nowrap'
|
24
20
|
}
|
25
|
-
};
|
21
|
+
});
|
26
22
|
|
27
23
|
/**
|
28
24
|
* Cette cellule permet d'afficher une icône et un label (optionnel).
|
29
25
|
* En vue small (s) elle affiche uniquement l'icône avec une largeur fixe.
|
30
26
|
*/
|
31
|
-
class CellIcon extends React.
|
32
|
-
|
33
|
-
shouldComponentUpdate(nextProps, nextState) {
|
34
|
-
return _JSON$stringify(this.props) !== _JSON$stringify(nextProps) || _JSON$stringify(this.state) !== _JSON$stringify(nextState);
|
35
|
-
}
|
27
|
+
class CellIcon extends React.PureComponent {
|
36
28
|
|
37
29
|
render() {
|
38
|
-
const { classes, icon, value, view
|
30
|
+
const { classes, icon, value, view } = this.props;
|
39
31
|
|
40
|
-
const iconElement =
|
32
|
+
const iconElement = React.createElement(HiIconBuilder, { className: classes.icon, icon: icon, size: 18 });
|
41
33
|
|
42
|
-
|
34
|
+
const tooltipContent = React.createElement(
|
43
35
|
'div',
|
44
|
-
|
36
|
+
null,
|
45
37
|
iconElement,
|
46
|
-
|
38
|
+
React.createElement(
|
47
39
|
'span',
|
48
|
-
|
40
|
+
null,
|
49
41
|
value
|
50
42
|
)
|
51
43
|
);
|
44
|
+
|
45
|
+
return React.createElement(
|
46
|
+
Tooltip,
|
47
|
+
{ title: tooltipContent, placement: this.props.sticky ? 'right' : 'bottom' },
|
48
|
+
React.createElement(
|
49
|
+
'div',
|
50
|
+
{ className: classes.wrapper },
|
51
|
+
iconElement,
|
52
|
+
view !== cst.VIEWS.SMALL && typeof value !== 'undefined' && React.createElement(
|
53
|
+
'span',
|
54
|
+
{ className: classes.label },
|
55
|
+
value
|
56
|
+
)
|
57
|
+
)
|
58
|
+
);
|
52
59
|
}
|
53
60
|
}
|
54
61
|
|
55
62
|
CellIcon.defaultProps = {
|
56
|
-
|
57
|
-
view: 'l',
|
58
|
-
color: '#000'
|
63
|
+
view: 'l'
|
59
64
|
};
|
60
65
|
CellIcon.propTypes = process.env.NODE_ENV !== "production" ? {
|
61
66
|
/**
|
@@ -63,14 +68,9 @@ CellIcon.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
63
68
|
*/
|
64
69
|
classes: PropTypes.object,
|
65
70
|
/**
|
66
|
-
*
|
67
|
-
*/
|
68
|
-
color: PropTypes.string.isRequired,
|
69
|
-
/**
|
70
|
-
* Icon name [from material-design-icons](https://materialdesignicons.com/)
|
71
|
-
* used by HiIconBuilder
|
71
|
+
* Icône name [from material-design-icons](https://materialdesignicons.com/)
|
72
72
|
*/
|
73
|
-
icon: PropTypes.string,
|
73
|
+
icon: PropTypes.string.isRequired,
|
74
74
|
/**
|
75
75
|
* Label
|
76
76
|
*/
|
@@ -1,43 +1,43 @@
|
|
1
|
-
import _JSON$stringify from 'babel-runtime/core-js/json/stringify';
|
2
1
|
import React from 'react';
|
3
2
|
import PropTypes from 'prop-types';
|
3
|
+
|
4
4
|
import Tooltip from '../../Tooltip';
|
5
5
|
import withStyles from '../../styles/withStyles';
|
6
6
|
import * as cst from '../constants';
|
7
7
|
|
8
8
|
export const styles = theme => ({
|
9
9
|
img: {
|
10
|
+
width: 24,
|
10
11
|
height: 'auto',
|
11
12
|
float: 'left'
|
12
13
|
},
|
13
14
|
smallImg: {
|
15
|
+
width: 24,
|
14
16
|
height: 'auto'
|
15
17
|
},
|
16
18
|
label: {
|
17
|
-
marginLeft: 5
|
18
|
-
whiteSpace: 'nowrap',
|
19
|
-
overflow: 'hidden',
|
20
|
-
textOverflow: 'ellipsis'
|
19
|
+
marginLeft: 5
|
21
20
|
},
|
22
21
|
tooltipImg: {
|
23
22
|
width: 24,
|
24
23
|
height: 'auto',
|
25
|
-
float: 'left'
|
24
|
+
float: 'left',
|
25
|
+
marginTop: 2
|
26
26
|
},
|
27
27
|
tooltipLabel: {
|
28
28
|
marginLeft: 5,
|
29
|
+
position: 'relative',
|
30
|
+
bottom: 2,
|
29
31
|
verticalAlign: 'middle'
|
32
|
+
|
30
33
|
},
|
31
34
|
wrapper: {
|
32
|
-
|
33
|
-
|
35
|
+
whiteSpace: 'nowrap',
|
36
|
+
overflow: "hidden",
|
37
|
+
textOverflow: "ellipsis"
|
34
38
|
},
|
35
39
|
center: {
|
36
40
|
textAlign: 'center'
|
37
|
-
},
|
38
|
-
tooltipContainer: {
|
39
|
-
display: 'flex',
|
40
|
-
alignItems: 'center'
|
41
41
|
}
|
42
42
|
});
|
43
43
|
|
@@ -46,39 +46,34 @@ export const styles = theme => ({
|
|
46
46
|
* En vue large, aucun tooltip n'est affiché
|
47
47
|
* En vue small (s) elle affiche uniquement l'image avec une largeur fixe.
|
48
48
|
*/
|
49
|
-
class CellImage extends React.
|
50
|
-
|
51
|
-
shouldComponentUpdate(nextProps, nextState) {
|
52
|
-
return _JSON$stringify(this.props) !== _JSON$stringify(nextProps) || _JSON$stringify(this.state) !== _JSON$stringify(nextState);
|
53
|
-
}
|
49
|
+
class CellImage extends React.PureComponent {
|
54
50
|
|
55
51
|
render() {
|
56
|
-
const { classes, path, value, view
|
52
|
+
const { classes, path, value, view } = this.props;
|
53
|
+
|
54
|
+
const tooltipContent = React.createElement(
|
55
|
+
'div',
|
56
|
+
null,
|
57
|
+
React.createElement('img', { src: path, alt: value, className: classes.tooltipImg }),
|
58
|
+
React.createElement(
|
59
|
+
'span',
|
60
|
+
{ className: classes.tooltipLabel },
|
61
|
+
value
|
62
|
+
)
|
63
|
+
);
|
57
64
|
|
58
65
|
let innerCellElement = null;
|
59
|
-
if (
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
);
|
66
|
-
} else {
|
67
|
-
innerCellElement = React.createElement(
|
68
|
-
'div',
|
69
|
-
{ className: classes.wrapper },
|
70
|
-
React.createElement('img', { src: path, alt: value, className: classes.img, width: size }),
|
71
|
-
!!value && React.createElement(
|
72
|
-
'span',
|
73
|
-
{ className: classes.label },
|
74
|
-
value
|
75
|
-
)
|
76
|
-
);
|
77
|
-
}
|
66
|
+
if (view === cst.VIEWS.SMALL) {
|
67
|
+
innerCellElement = React.createElement(
|
68
|
+
'div',
|
69
|
+
{ className: classes.center },
|
70
|
+
React.createElement('img', { src: path, alt: value, className: classes.smallImg })
|
71
|
+
);
|
78
72
|
} else {
|
79
73
|
innerCellElement = React.createElement(
|
80
74
|
'div',
|
81
75
|
{ className: classes.wrapper },
|
76
|
+
React.createElement('img', { src: path, alt: value, className: classes.img }),
|
82
77
|
!!value && React.createElement(
|
83
78
|
'span',
|
84
79
|
{ className: classes.label },
|
@@ -87,13 +82,18 @@ class CellImage extends React.Component {
|
|
87
82
|
);
|
88
83
|
}
|
89
84
|
|
90
|
-
|
85
|
+
if (view === cst.VIEWS.LARGE) {
|
86
|
+
return innerCellElement;
|
87
|
+
} else {
|
88
|
+
return React.createElement(
|
89
|
+
Tooltip,
|
90
|
+
{ title: tooltipContent, placement: this.props.sticky ? 'right' : 'bottom' },
|
91
|
+
innerCellElement
|
92
|
+
);
|
93
|
+
}
|
91
94
|
}
|
92
95
|
}
|
93
96
|
|
94
|
-
CellImage.defaultProps = {
|
95
|
-
size: 24
|
96
|
-
};
|
97
97
|
CellImage.propTypes = process.env.NODE_ENV !== "production" ? {
|
98
98
|
/**
|
99
99
|
* Useful to extend the style applied to components.
|
@@ -102,13 +102,9 @@ CellImage.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
102
102
|
/**
|
103
103
|
* Image path
|
104
104
|
*/
|
105
|
-
path: PropTypes.string,
|
106
|
-
/**
|
107
|
-
* Image path
|
108
|
-
*/
|
109
|
-
size: PropTypes.number.isRequired,
|
105
|
+
path: PropTypes.string.isRequired,
|
110
106
|
/**
|
111
|
-
*
|
107
|
+
* Label
|
112
108
|
*/
|
113
109
|
value: PropTypes.string,
|
114
110
|
/**
|