@hipay/hipay-material-ui 1.0.0-beta.29 → 1.0.0-beta.3
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 +12 -24
- 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 +30 -28
- package/HiForm/HiInput.js +21 -49
- package/HiForm/HiPasswordField.js +3 -8
- package/HiForm/HiSearchField.js +3 -9
- package/HiForm/index.js +0 -36
- package/HiLoader/HiLoader.js +9 -16
- package/HiPins/HiPins.js +5 -6
- package/HiSelect/HiSelect.js +344 -591
- package/HiSelect/HiSelectField.js +6 -8
- package/HiSelect/HiSuggestSelect.js +51 -90
- package/HiSelect/HiSuggestSelectField.js +80 -88
- package/HiSelect/SelectInput.js +37 -97
- package/HiSelectableList/HiSelectableList.js +49 -57
- package/HiSelectableList/HiSelectableListItem.js +94 -145
- 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 +25 -39
- 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 +12 -19
- 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 +18 -24
- package/es/HiForm/HiInput.js +20 -44
- package/es/HiForm/HiPasswordField.js +3 -8
- package/es/HiForm/HiSearchField.js +3 -4
- 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 +313 -547
- package/es/HiSelect/HiSelectField.js +7 -9
- package/es/HiSelect/HiSuggestSelect.js +43 -85
- package/es/HiSelect/HiSuggestSelectField.js +69 -77
- package/es/HiSelect/SelectInput.js +37 -94
- package/es/HiSelectableList/HiSelectableList.js +50 -58
- package/es/HiSelectableList/HiSelectableListItem.js +94 -137
- 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 +22 -41
- 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 +79661 -115789
- 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,31 +1,27 @@
|
|
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
|
+
|
6
|
+
import Tooltip from '../../Tooltip';
|
7
|
+
import { withStyles, withTheme } from '../../styles';
|
5
8
|
import { Lock, LockOpen, LockOpenOutline } from 'mdi-material-ui';
|
6
|
-
import { withStyles } from '../../styles';
|
7
9
|
|
8
|
-
export const styles = {
|
10
|
+
export const styles = theme => ({
|
9
11
|
icon: {
|
10
12
|
width: 18,
|
11
13
|
height: 18
|
12
|
-
},
|
13
|
-
nowrap: {
|
14
|
-
whiteSpace: 'nowrap'
|
15
14
|
}
|
16
|
-
};
|
15
|
+
});
|
17
16
|
|
18
17
|
/**
|
19
18
|
* Cette cellule permet d'afficher une icône représentant le statut du 3DS.
|
20
19
|
*/
|
21
|
-
class CellThirdPartySecurity extends React.
|
22
|
-
|
23
|
-
shouldComponentUpdate(nextProps, nextState) {
|
24
|
-
return _JSON$stringify(this.props) !== _JSON$stringify(nextProps) || _JSON$stringify(this.state) !== _JSON$stringify(nextState);
|
25
|
-
}
|
20
|
+
class CellThirdPartySecurity extends React.PureComponent {
|
26
21
|
|
27
22
|
render() {
|
28
|
-
const { classes, theme,
|
23
|
+
const { classes, theme, code, value } = this.props;
|
24
|
+
|
29
25
|
const ECI_5 = 0; // authenticated
|
30
26
|
const ECI_6 = 1; // cardholder not enrolled
|
31
27
|
const ECI_7 = 2; //
|
@@ -34,42 +30,33 @@ class CellThirdPartySecurity extends React.Component {
|
|
34
30
|
const AUTH_2 = 5; // force 3DS
|
35
31
|
|
36
32
|
let icon = null;
|
37
|
-
switch (
|
33
|
+
switch (code) {
|
38
34
|
case ECI_5:
|
39
|
-
icon = React.createElement(Lock, {
|
40
|
-
className: classes.icon,
|
41
|
-
style: { color: theme.palette.positive.normal }
|
42
|
-
});
|
35
|
+
icon = React.createElement(Lock, { className: classes.icon, style: { color: theme.palette.positive.normal } });
|
43
36
|
break;
|
44
37
|
case ECI_6:
|
45
|
-
icon = React.createElement(LockOpen, {
|
46
|
-
className: classes.icon,
|
47
|
-
style: { color: theme.palette.middle.normal }
|
48
|
-
});
|
38
|
+
icon = React.createElement(LockOpen, { className: classes.icon, style: { color: theme.palette.middle.normal } });
|
49
39
|
break;
|
50
40
|
case AUTH_1:
|
51
|
-
icon = React.createElement(LockOpenOutline, {
|
52
|
-
className: classes.icon,
|
53
|
-
style: { color: theme.palette.neutral.light }
|
54
|
-
});
|
41
|
+
icon = React.createElement(LockOpenOutline, { className: classes.icon, style: { color: theme.palette.neutral.light } });
|
55
42
|
break;
|
56
43
|
case AUTH_2:
|
57
|
-
icon = React.createElement(LockOpen, {
|
58
|
-
className: classes.icon,
|
59
|
-
style: { color: theme.palette.neutral.light }
|
60
|
-
});
|
44
|
+
icon = React.createElement(LockOpen, { className: classes.icon, style: { color: theme.palette.neutral.light } });
|
61
45
|
break;
|
62
46
|
case ECI_7:
|
63
47
|
case AUTH_0:
|
64
|
-
default:
|
65
48
|
icon = null;
|
66
49
|
break;
|
67
50
|
}
|
68
51
|
|
69
52
|
return React.createElement(
|
70
|
-
|
71
|
-
|
72
|
-
|
53
|
+
Tooltip,
|
54
|
+
{ title: value, placement: this.props.sticky ? 'right' : 'bottom' },
|
55
|
+
React.createElement(
|
56
|
+
'div',
|
57
|
+
null,
|
58
|
+
icon
|
59
|
+
)
|
73
60
|
);
|
74
61
|
}
|
75
62
|
}
|
@@ -79,14 +66,6 @@ CellThirdPartySecurity.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
79
66
|
* Useful to extend the style applied to components.
|
80
67
|
*/
|
81
68
|
classes: PropTypes.object,
|
82
|
-
/**
|
83
|
-
* Label
|
84
|
-
*/
|
85
|
-
label: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
86
|
-
/**
|
87
|
-
* True si la colonne est sticky
|
88
|
-
*/
|
89
|
-
sticky: PropTypes.bool,
|
90
69
|
/**
|
91
70
|
* Useful to extend the theme applied to components.
|
92
71
|
* Used theme props positive.normal, middle.normal, neutral.light
|
@@ -101,6 +80,10 @@ CellThirdPartySecurity.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
101
80
|
* AUTH_1 = 4; // ask for 3DS
|
102
81
|
* AUTH_2 = 5; // force 3DS
|
103
82
|
*/
|
104
|
-
|
83
|
+
code: PropTypes.number,
|
84
|
+
/**
|
85
|
+
* Label
|
86
|
+
*/
|
87
|
+
value: PropTypes.string
|
105
88
|
} : {};
|
106
89
|
export default withStyles(styles, { withTheme: true, name: 'HmuiCellThirdPartySecurity' })(CellThirdPartySecurity);
|
@@ -1,6 +1,8 @@
|
|
1
1
|
//flow
|
2
|
+
|
2
3
|
export { default as CellThirdPartySecurity } from './CellThirdPartySecurity';
|
3
4
|
export { default as CellAccount } from './CellAccount';
|
5
|
+
export { default as CellAccountNumber } from './CellAccountNumber';
|
4
6
|
export { default as CellAddress } from './CellAddress';
|
5
7
|
export { default as CellDate } from './CellDate';
|
6
8
|
export { default as CellIcon } from './CellIcon';
|
package/es/HiTable/BodyRow.js
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
|
2
|
-
import _JSON$stringify from 'babel-runtime/core-js/json/stringify';
|
3
1
|
import _extends from 'babel-runtime/helpers/extends';
|
2
|
+
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
|
4
3
|
|
5
4
|
// @inheritedComponent BodyCellBuilder
|
6
5
|
import React from 'react';
|
@@ -9,15 +8,12 @@ import classNames from 'classnames';
|
|
9
8
|
import { TableRow, TableCell } from 'material-ui/Table';
|
10
9
|
import { fade } from 'material-ui/styles/colorManipulator';
|
11
10
|
import BodyCellBuilder from './BodyCellBuilder';
|
12
|
-
import { withStyles } from '../styles';
|
11
|
+
import { withStyles, withTheme } from '../styles';
|
13
12
|
import * as cst from './constants';
|
14
13
|
|
15
14
|
export const styles = theme => ({
|
16
|
-
root: {
|
17
|
-
backgroundColor: theme.palette.background3
|
18
|
-
},
|
19
15
|
rootSelected: {
|
20
|
-
backgroundColor: theme.palette.
|
16
|
+
backgroundColor: theme.palette.background3
|
21
17
|
},
|
22
18
|
hover: {
|
23
19
|
'&:hover': {
|
@@ -49,21 +45,17 @@ export const styles = theme => ({
|
|
49
45
|
}
|
50
46
|
});
|
51
47
|
|
52
|
-
class BodyRow extends React.
|
48
|
+
class BodyRow extends React.PureComponent {
|
53
49
|
|
54
50
|
constructor(props) {
|
55
51
|
super();
|
56
52
|
|
57
|
-
this.handleOpenRowDetails = type => () => {
|
58
|
-
this.props.onOpenRowDetails(this.props.row.rowId, type);
|
59
|
-
};
|
60
|
-
|
61
53
|
this.state = {
|
62
54
|
live: props.live,
|
63
|
-
style:
|
64
|
-
backgroundColor: fade(props.theme.palette.business.primary.normal, 0.08),
|
65
|
-
transition: 'background-color 2s'
|
66
|
-
}
|
55
|
+
style: {
|
56
|
+
backgroundColor: props.live ? fade(props.theme.palette.business.primary.normal, 0.08) : props.theme.palette.background3,
|
57
|
+
transition: props.live ? 'background-color 2s' : 'none'
|
58
|
+
}
|
67
59
|
};
|
68
60
|
|
69
61
|
this.handleClick = this.handleClick.bind(this);
|
@@ -71,16 +63,15 @@ class BodyRow extends React.Component {
|
|
71
63
|
this.handleSelect = this.handleSelect.bind(this);
|
72
64
|
}
|
73
65
|
|
74
|
-
shouldComponentUpdate(nextProps, nextState) {
|
75
|
-
return _JSON$stringify(this.props) !== _JSON$stringify(nextProps) || _JSON$stringify(this.state) !== _JSON$stringify(nextState);
|
76
|
-
}
|
77
|
-
|
78
66
|
componentDidMount() {
|
79
67
|
// Live data animation
|
80
68
|
if (this.state.live) {
|
81
69
|
this.setState({
|
82
70
|
live: false,
|
83
|
-
style: {
|
71
|
+
style: {
|
72
|
+
backgroundColor: this.props.theme.palette.background3,
|
73
|
+
transition: 'background-color 2s'
|
74
|
+
}
|
84
75
|
});
|
85
76
|
}
|
86
77
|
}
|
@@ -90,7 +81,10 @@ class BodyRow extends React.Component {
|
|
90
81
|
if (prevState.live === true && this.state.live === false) {
|
91
82
|
setTimeout(() => {
|
92
83
|
this.setState({
|
93
|
-
style: {
|
84
|
+
style: {
|
85
|
+
backgroundColor: this.props.theme.palette.background3,
|
86
|
+
transition: 'none'
|
87
|
+
}
|
94
88
|
});
|
95
89
|
}, 2500);
|
96
90
|
}
|
@@ -103,6 +97,10 @@ class BodyRow extends React.Component {
|
|
103
97
|
}
|
104
98
|
}
|
105
99
|
|
100
|
+
handleOpenRowDetails() {
|
101
|
+
this.props.onOpenRowDetails(this.props.row.rowId);
|
102
|
+
}
|
103
|
+
|
106
104
|
handleSelect() {
|
107
105
|
this.props.onSelect(this.props.row);
|
108
106
|
}
|
@@ -114,7 +112,6 @@ class BodyRow extends React.Component {
|
|
114
112
|
theme,
|
115
113
|
row,
|
116
114
|
columns,
|
117
|
-
lookupColumns,
|
118
115
|
orderedColumns,
|
119
116
|
selectable,
|
120
117
|
selected,
|
@@ -125,13 +122,13 @@ class BodyRow extends React.Component {
|
|
125
122
|
numberLocale,
|
126
123
|
sticky,
|
127
124
|
innerRow,
|
128
|
-
isDetail
|
129
|
-
detailRowsOptions
|
125
|
+
isDetail
|
130
126
|
} = _props,
|
131
|
-
other = _objectWithoutProperties(_props, ['classes', 'theme', 'row', 'columns', '
|
127
|
+
other = _objectWithoutProperties(_props, ['classes', 'theme', 'row', 'columns', 'orderedColumns', 'selectable', 'selected', 'onClick', 'view', 'dense', 'dateLocale', 'numberLocale', 'sticky', 'innerRow', 'isDetail']);
|
132
128
|
|
133
129
|
const { style } = this.state;
|
134
130
|
|
131
|
+
let firstCol = true;
|
135
132
|
let unfixedCol = true;
|
136
133
|
|
137
134
|
const rowStyle = _extends({}, style, {
|
@@ -146,23 +143,9 @@ class BodyRow extends React.Component {
|
|
146
143
|
// If there is no datas don't display the row
|
147
144
|
if (!row.hasOwnProperty('datas')) return false;
|
148
145
|
|
149
|
-
let detailsInfos = {};
|
150
|
-
if (row.details && row.details.length > 0) {
|
151
|
-
detailsInfos = row.details.reduce((memo, item) => {
|
152
|
-
if (item.rows.length > 0 && detailRowsOptions[item.type] && detailRowsOptions[item.type].anchor) {
|
153
|
-
memo[detailRowsOptions[item.type].anchor] = _extends({
|
154
|
-
type: item.type,
|
155
|
-
total: item.rows.length
|
156
|
-
}, detailRowsOptions[item.type]);
|
157
|
-
}
|
158
|
-
return memo;
|
159
|
-
}, {});
|
160
|
-
}
|
161
|
-
|
162
146
|
return React.createElement(
|
163
147
|
TableRow,
|
164
148
|
{
|
165
|
-
className: classes.root,
|
166
149
|
classes: { selected: classes.rootSelected, hover: classes.hover },
|
167
150
|
onClick: this.handleClick,
|
168
151
|
hover: true,
|
@@ -177,85 +160,65 @@ class BodyRow extends React.Component {
|
|
177
160
|
key: `${row.rowId}-left-cell`,
|
178
161
|
className: patchDivClass
|
179
162
|
}),
|
180
|
-
orderedColumns.map(
|
181
|
-
|
182
|
-
// Dynamic column settings (from OrderColumns)
|
183
|
-
const {
|
184
|
-
colId: colRefId,
|
185
|
-
displayed,
|
186
|
-
view: colView
|
187
|
-
} = colRef,
|
163
|
+
orderedColumns.map(colRef => {
|
164
|
+
const { colId: colRefId, displayed, view: colView } = colRef,
|
188
165
|
colRefProps = _objectWithoutProperties(colRef, ['colId', 'displayed', 'view']);
|
166
|
+
if (displayed !== false) {
|
167
|
+
// the first column is sticky (except checkbox)
|
168
|
+
const first = firstCol;
|
169
|
+
firstCol = false;
|
170
|
+
const _columns$colRef$colId = columns[colRef.colId],
|
171
|
+
{
|
172
|
+
colId,
|
173
|
+
align,
|
174
|
+
datas,
|
175
|
+
ellipsis,
|
176
|
+
fixedWidth,
|
177
|
+
type,
|
178
|
+
width
|
179
|
+
} = _columns$colRef$colId,
|
180
|
+
columnProps = _objectWithoutProperties(_columns$colRef$colId, ['colId', 'align', 'datas', 'ellipsis', 'fixedWidth', 'type', 'width']);
|
181
|
+
const data = row.datas[colRef.colId];
|
189
182
|
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
const first = index === 0;
|
194
|
-
|
195
|
-
// Static column settings
|
196
|
-
const _columns$colRefId = columns[colRefId],
|
197
|
-
{
|
198
|
-
colId,
|
199
|
-
align,
|
200
|
-
data: colData,
|
201
|
-
ellipsis,
|
202
|
-
fixedWidth,
|
203
|
-
type,
|
204
|
-
width
|
205
|
-
} = _columns$colRefId,
|
206
|
-
columnProps = _objectWithoutProperties(_columns$colRefId, ['colId', 'align', 'data', 'ellipsis', 'fixedWidth', 'type', 'width']);
|
207
|
-
|
208
|
-
// view define in OrderColumn or table prop view by default
|
209
|
-
const effectiveView = colView || view;
|
210
|
-
|
211
|
-
// add clickable badge in cell to open children
|
212
|
-
const isParentAnchor = row.hasOwnProperty('parentAnchorColumn') && row.parentAnchorColumn === colId && row.hasOwnProperty('children') && row.children.length > 0;
|
183
|
+
const effectiveView = colView || view;
|
184
|
+
// add clickable badge in cell to open children
|
185
|
+
const isParentAnchor = row.hasOwnProperty('parentAnchorColumn') && row.parentAnchorColumn === colId && row.hasOwnProperty('children') && row.children.length > 0;
|
213
186
|
|
214
|
-
|
215
|
-
|
216
|
-
|
187
|
+
// the first non fixed column is the only one not fixed
|
188
|
+
const unfixed = unfixedCol && fixedWidth !== true;
|
189
|
+
unfixedCol = unfixedCol && fixedWidth !== true ? false : unfixedCol;
|
217
190
|
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
// Cell data
|
222
|
-
let data = row.datas[colRefId];
|
223
|
-
// Get object data for column based on reference datas
|
224
|
-
if (data !== undefined && colData !== undefined) {
|
225
|
-
const colItem = colData.find(item => item.id === data.value);
|
226
|
-
if (colItem) {
|
227
|
-
// Hydrate data object with reference item
|
228
|
-
data = _extends({}, colItem, data);
|
191
|
+
let lookedUp = false;
|
192
|
+
if (this.props.lookupColumns && this.props.lookupColumns.includes(colId)) {
|
193
|
+
lookedUp = true;
|
229
194
|
}
|
230
|
-
}
|
231
195
|
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
}, columnProps, colRefProps));
|
196
|
+
return React.createElement(BodyCellBuilder, _extends({}, other, {
|
197
|
+
key: `${row.rowId}-${colId}-cell`,
|
198
|
+
ukey: `${row.rowId}-${colId}-cell`,
|
199
|
+
checkboxValue: row.rowId,
|
200
|
+
type: type,
|
201
|
+
datas: data,
|
202
|
+
ellipsis: ellipsis,
|
203
|
+
align: align,
|
204
|
+
view: effectiveView,
|
205
|
+
padding: cst.DEFAULT_PADDING[view],
|
206
|
+
width: width,
|
207
|
+
fixedWidth: !unfixed,
|
208
|
+
sticky: sticky && first,
|
209
|
+
selectable: selectable && first,
|
210
|
+
dateLocale: dateLocale,
|
211
|
+
numberLocale: numberLocale,
|
212
|
+
dense: dense,
|
213
|
+
selected: selected,
|
214
|
+
onSelect: this.handleSelect,
|
215
|
+
onOpenDetails: this.handleOpenRowDetails,
|
216
|
+
childrenCount: isParentAnchor ? row.children.length : null,
|
217
|
+
colId: colId,
|
218
|
+
lookedUp: lookedUp
|
219
|
+
}, columnProps, colRefProps));
|
220
|
+
}
|
221
|
+
return null;
|
259
222
|
}),
|
260
223
|
React.createElement(TableCell, {
|
261
224
|
style: {
|
@@ -278,9 +241,7 @@ BodyRow.defaultProps = {
|
|
278
241
|
sticky: false,
|
279
242
|
live: false,
|
280
243
|
innerRow: false,
|
281
|
-
lookupColumns: []
|
282
|
-
fixedColumnWidth: true,
|
283
|
-
detailRowsOptions: {}
|
244
|
+
lookupColumns: []
|
284
245
|
};
|
285
246
|
BodyRow.propTypes = process.env.NODE_ENV !== "production" ? {
|
286
247
|
/**
|
@@ -291,15 +252,6 @@ BodyRow.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
291
252
|
* Densité d'affichage (joue sur la hauteur des lignes)
|
292
253
|
*/
|
293
254
|
dense: PropTypes.bool,
|
294
|
-
/**
|
295
|
-
* Options utilisées pour décrire le comportement de lignes de détails
|
296
|
-
*/
|
297
|
-
detailRowsOptions: PropTypes.object,
|
298
|
-
/**
|
299
|
-
* Fixe la taille des colonnes selon le type de vue
|
300
|
-
* Sinon les colonnes s'adaptent à l'espace disponible
|
301
|
-
*/
|
302
|
-
fixedColumnWidth: PropTypes.bool,
|
303
255
|
/**
|
304
256
|
* Applique le style d'une ligne intégrée a un sous-tableau
|
305
257
|
*/
|
package/es/HiTable/ChildRow.js
CHANGED
@@ -112,9 +112,9 @@ class ChildRow extends React.PureComponent {
|
|
112
112
|
parentIndicatorColumn, parentLabel, parentLabelIcon,
|
113
113
|
children, columns, orderedColumns,
|
114
114
|
selectable, selected,
|
115
|
-
dateLocale, dense, sticky, view
|
115
|
+
dateLocale, dense, sticky, view
|
116
116
|
} = _props,
|
117
|
-
other = _objectWithoutProperties(_props, ['classes', 'theme', 'onClose', 'parentRowId', 'parentRowDatas', 'parentIndicatorColumn', 'parentLabel', 'parentLabelIcon', 'children', 'columns', 'orderedColumns', 'selectable', 'selected', 'dateLocale', 'dense', 'sticky', 'view'
|
117
|
+
other = _objectWithoutProperties(_props, ['classes', 'theme', 'onClose', 'parentRowId', 'parentRowDatas', 'parentIndicatorColumn', 'parentLabel', 'parentLabelIcon', 'children', 'columns', 'orderedColumns', 'selectable', 'selected', 'dateLocale', 'dense', 'sticky', 'view']);
|
118
118
|
|
119
119
|
let indicator = '';
|
120
120
|
if (parentIndicatorColumn && columns.hasOwnProperty(parentIndicatorColumn)) {
|
@@ -141,7 +141,10 @@ class ChildRow extends React.PureComponent {
|
|
141
141
|
TableBody,
|
142
142
|
null,
|
143
143
|
React.createElement(BodyRow, _extends({
|
144
|
-
row:
|
144
|
+
row: {
|
145
|
+
rowId: parentRowId,
|
146
|
+
datas: parentRowDatas
|
147
|
+
},
|
145
148
|
selectable: selectable,
|
146
149
|
selected: selected,
|
147
150
|
columns: columns,
|
@@ -274,6 +277,10 @@ ChildRow.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
274
277
|
* Données de la ligne parente
|
275
278
|
*/
|
276
279
|
parentRowDatas: PropTypes.object.isRequired,
|
280
|
+
/**
|
281
|
+
* Ligne des détails de la ligne parente
|
282
|
+
*/
|
283
|
+
parentDetailRows: PropTypes.array,
|
277
284
|
/**
|
278
285
|
* Indicateur du sous-ensemble (en général la date)
|
279
286
|
*/
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import _Set from 'babel-runtime/core-js/set';
|
2
1
|
import _extends from 'babel-runtime/helpers/extends';
|
3
2
|
import React from 'react';
|
4
3
|
import Popover from 'material-ui/Popover';
|
@@ -30,6 +29,9 @@ export const styles = theme => ({
|
|
30
29
|
padding: 10,
|
31
30
|
color: theme.palette.neutral.normal
|
32
31
|
},
|
32
|
+
menuItemSortable: {
|
33
|
+
paddingLeft: 8
|
34
|
+
},
|
33
35
|
menuItemFilter: _extends({}, theme.typography.body1, {
|
34
36
|
color: theme.palette.neutral.dark,
|
35
37
|
fontWeight: theme.typography.fontWeightMedium,
|
@@ -70,7 +72,7 @@ export const styles = theme => ({
|
|
70
72
|
fontSize: 14
|
71
73
|
},
|
72
74
|
button: {
|
73
|
-
|
75
|
+
height: 40,
|
74
76
|
fontSize: 14,
|
75
77
|
width: '50%'
|
76
78
|
},
|
@@ -140,20 +142,20 @@ class ColumnFilter extends React.Component {
|
|
140
142
|
* Sélectionne tous les items filtrés
|
141
143
|
*/
|
142
144
|
selectAllFilters() {
|
143
|
-
this.setState(
|
144
|
-
selectedIdList: [...new _Set([...prevState.selectedIdList, ...prevState.suggestions.map(item => item.id)])]
|
145
|
-
}));
|
145
|
+
this.setState({ selectedIdList: this.state.suggestions.map(item => item.id) });
|
146
146
|
}
|
147
147
|
|
148
148
|
/**
|
149
149
|
* Désélectionne tous les items filtrés
|
150
150
|
*/
|
151
151
|
deselectAllFilters() {
|
152
|
-
this.
|
153
|
-
|
154
|
-
|
155
|
-
|
152
|
+
const selectedIdList = this.state.selectedIdList;
|
153
|
+
this.state.suggestions.map(item => {
|
154
|
+
if (this.state.selectedIdList.includes(item.id)) {
|
155
|
+
selectedIdList.splice(this.state.selectedIdList.indexOf(item.id), 1);
|
156
|
+
}
|
156
157
|
});
|
158
|
+
this.setState({ selectedIdList });
|
157
159
|
}
|
158
160
|
|
159
161
|
handleSort(direction) {
|
@@ -197,7 +199,7 @@ class ColumnFilter extends React.Component {
|
|
197
199
|
),
|
198
200
|
!!sortable && React.createElement(
|
199
201
|
'div',
|
200
|
-
|
202
|
+
{ className: classes.menuItemSortable },
|
201
203
|
React.createElement(
|
202
204
|
MenuItem,
|
203
205
|
{
|
@@ -251,11 +253,7 @@ class ColumnFilter extends React.Component {
|
|
251
253
|
React.createElement(
|
252
254
|
'div',
|
253
255
|
{ className: classes.menuItemFilter },
|
254
|
-
|
255
|
-
'span',
|
256
|
-
{ style: { marginRight: 4 } },
|
257
|
-
translations.filter
|
258
|
-
),
|
256
|
+
translations.filter,
|
259
257
|
React.createElement(
|
260
258
|
HiPins,
|
261
259
|
{
|
@@ -299,8 +297,7 @@ class ColumnFilter extends React.Component {
|
|
299
297
|
itemList: suggestions,
|
300
298
|
selectedIdList: selectedIdList,
|
301
299
|
onSelect: this.toggleSelectItem,
|
302
|
-
leftPadding: 28
|
303
|
-
checkbox: type !== 'icon'
|
300
|
+
leftPadding: 28
|
304
301
|
}),
|
305
302
|
React.createElement(
|
306
303
|
'div',
|