@hipay/hipay-material-ui 1.0.0-beta.7 → 1.0.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/HiBreadcrumb/HiBreadcrumb.js +143 -0
  2. package/HiBreadcrumb/HiStep.js +123 -0
  3. package/HiBreadcrumb/HiStepConnector.js +142 -0
  4. package/HiBreadcrumb/HiStepIcon.js +134 -0
  5. package/HiBreadcrumb/HiStepLabel.js +182 -0
  6. package/HiBreadcrumb/HiStepper.js +125 -0
  7. package/HiBreadcrumb/index.js +16 -0
  8. package/HiDatePicker/HiDateRangeSelector.js +1 -1
  9. package/HiForm/HiFormControl.js +19 -27
  10. package/HiForm/HiSearchField.js +1 -1
  11. package/HiPins/HiPins.js +0 -1
  12. package/HiSelectableList/HiSelectableListItem.js +22 -9
  13. package/HiTable/BodyCells/CellLayout.js +5 -1
  14. package/HiTable/BodyCells/CellStatus.js +5 -1
  15. package/HiTable/BodyCells/CellText.js +2 -1
  16. package/HiTable/ColumnFilter.js +5 -1
  17. package/HiTable/HiTable.js +15 -8
  18. package/HiTable/HiTableBody.js +13 -3
  19. package/HiTable/OrderColumns.js +6 -2
  20. package/es/HiBreadcrumb/HiBreadcrumb.js +73 -0
  21. package/es/HiBreadcrumb/HiStep.js +93 -0
  22. package/es/HiBreadcrumb/HiStepConnector.js +83 -0
  23. package/es/HiBreadcrumb/HiStepIcon.js +81 -0
  24. package/es/HiBreadcrumb/HiStepLabel.js +154 -0
  25. package/es/HiBreadcrumb/HiStepper.js +62 -0
  26. package/es/HiBreadcrumb/index.js +1 -0
  27. package/es/HiDatePicker/HiDateRangeSelector.js +1 -1
  28. package/es/HiForm/HiFormControl.js +15 -15
  29. package/es/HiForm/HiSearchField.js +1 -1
  30. package/es/HiPins/HiPins.js +0 -1
  31. package/es/HiSelectableList/HiSelectableListItem.js +21 -9
  32. package/es/HiTable/BodyCells/CellLayout.js +5 -1
  33. package/es/HiTable/BodyCells/CellStatus.js +5 -1
  34. package/es/HiTable/BodyCells/CellText.js +2 -1
  35. package/es/HiTable/ColumnFilter.js +5 -1
  36. package/es/HiTable/HiTable.js +15 -8
  37. package/es/HiTable/HiTableBody.js +13 -3
  38. package/es/HiTable/OrderColumns.js +6 -2
  39. package/package.json +1 -1
  40. package/umd/hipay-material-ui.development.js +104 -66
  41. package/umd/hipay-material-ui.production.min.js +2 -2
@@ -28,6 +28,10 @@ export const styles = theme => ({
28
28
  lookedUp: {
29
29
  background: `linear-gradient(0deg, transparent 25%, #FFFF8D 10%, #FFFF8D 75%, transparent 30%)`,
30
30
  borderRadius: '45%'
31
+ },
32
+ pins: {
33
+ position: 'relative',
34
+ top: 3
31
35
  }
32
36
  });
33
37
 
@@ -115,7 +119,7 @@ class CellLayout extends React.Component {
115
119
  },
116
120
  React.createElement(
117
121
  HiPins,
118
- { color: theme.palette.business.primary.normal },
122
+ { color: theme.palette.business.primary.normal, className: classes.pins },
119
123
  childrenCount
120
124
  )
121
125
  )
@@ -11,6 +11,10 @@ export const styles = theme => ({
11
11
  display: 'inline-flex',
12
12
  alignItems: 'baseline',
13
13
  maxWidth: 'calc(100% - 36px)'
14
+ },
15
+ pins: {
16
+ position: 'relative',
17
+ bottom: 1
14
18
  }
15
19
  });
16
20
 
@@ -33,7 +37,7 @@ class CellStatus extends React.PureComponent {
33
37
  React.createElement(HiColoredLabel, { label: value, color: color }),
34
38
  React.createElement(
35
39
  HiPins,
36
- { color: color, onClick: onOpenDetails },
40
+ { color: color, onClick: onOpenDetails, className: classes.pins },
37
41
  nbOperations
38
42
  )
39
43
  ) : React.createElement(HiColoredLabel, { label: value, color: color })
@@ -17,7 +17,8 @@ export const styles = theme => ({
17
17
  display: 'inline-block',
18
18
  overflow: 'hidden',
19
19
  textOverflow: 'ellipsis',
20
- whiteSpace: 'pre'
20
+ whiteSpace: 'pre',
21
+ width: '100%'
21
22
  },
22
23
  noEllipsisSpan: {
23
24
  display: 'inline-block',
@@ -253,7 +253,11 @@ class ColumnFilter extends React.Component {
253
253
  React.createElement(
254
254
  'div',
255
255
  { className: classes.menuItemFilter },
256
- translations.filter,
256
+ React.createElement(
257
+ 'span',
258
+ { style: { marginRight: 4 } },
259
+ translations.filter
260
+ ),
257
261
  React.createElement(
258
262
  HiPins,
259
263
  {
@@ -581,7 +581,8 @@ class HiTable extends React.Component {
581
581
  translations,
582
582
  view,
583
583
  groupBy,
584
- lookupColumns
584
+ lookupColumns,
585
+ loading
585
586
  } = this.props;
586
587
 
587
588
  const { dateUpdate, isScrollToBottom, groupByIds } = this.state;
@@ -652,7 +653,8 @@ class HiTable extends React.Component {
652
653
  groupBy: groupBy,
653
654
  onClickNext: this.handleNextStickyRow,
654
655
  groupByIds: groupByIds,
655
- lookupColumns: lookupColumns
656
+ lookupColumns: lookupColumns,
657
+ loading: loading
656
658
  }),
657
659
  infiniteScroll && React.createElement(HiTableFooterScroll, {
658
660
  tabId: tabId,
@@ -717,7 +719,8 @@ HiTable.defaultProps = {
717
719
  }
718
720
  },
719
721
  view: 'l',
720
- lookupColumns: []
722
+ lookupColumns: [],
723
+ loading: false
721
724
  };
722
725
  HiTable.propTypes = process.env.NODE_ENV !== "production" ? {
723
726
  /**
@@ -748,6 +751,10 @@ HiTable.propTypes = process.env.NODE_ENV !== "production" ? {
748
751
  * Active le filtre sur les colonnes filtrables
749
752
  */
750
753
  filterable: PropTypes.bool,
754
+ /**
755
+ * Id de la colonne par laquelle sont regroupé les éléments
756
+ */
757
+ groupBy: PropTypes.string,
751
758
  /**
752
759
  * Ajoute le loader et le requestNextDatas en fin de tableau (si infiniteScroll activé)
753
760
  */
@@ -760,6 +767,10 @@ HiTable.propTypes = process.env.NODE_ENV !== "production" ? {
760
767
  * Ajoute l'infinite scroll
761
768
  */
762
769
  infiniteScroll: PropTypes.bool,
770
+ /**
771
+ * État du tableau en cours de chargement des données
772
+ */
773
+ loading: PropTypes.bool,
763
774
  /**
764
775
  * Identifiant de la ou des colonnes sur la/lesquelles il y a une 'lookup' search
765
776
  */
@@ -867,10 +878,6 @@ HiTable.propTypes = process.env.NODE_ENV !== "production" ? {
867
878
  * Taille du tableau (L/M/S),
868
879
  * définit l'espace entre les cellules et leurs tailles par default
869
880
  */
870
- view: PropTypes.oneOf(['l', 'm', 's']),
871
- /**
872
- * Id de la colonne par laquelle sont regroupé les éléments
873
- */
874
- groupBy: PropTypes.string
881
+ view: PropTypes.oneOf(['l', 'm', 's'])
875
882
  } : {};
876
883
  export default withStyles(styles, { withTheme: true, name: 'HmuiHiTable' })(HiTable);
@@ -191,7 +191,8 @@ class HiTableBody extends React.Component {
191
191
  numberLocale,
192
192
  groupByIds,
193
193
  sortedColumnId,
194
- lookupColumns
194
+ lookupColumns,
195
+ loading
195
196
  } = this.props;
196
197
 
197
198
  const { openedParentRowId, openedDetailsRowIdList } = this.state;
@@ -330,7 +331,11 @@ class HiTableBody extends React.Component {
330
331
  {
331
332
  id: `${tabId}-body`,
332
333
  className: classes.tbody,
333
- style: { height },
334
+ style: _extends({
335
+ height
336
+ }, loading && {
337
+ opacity: 0.6
338
+ }),
334
339
  onScroll: onScroll
335
340
  },
336
341
  tableRows.map(tableRow => {
@@ -349,7 +354,8 @@ HiTableBody.defaultProps = {
349
354
  dense: false,
350
355
  height: 450,
351
356
  sticky: true,
352
- view: 'l'
357
+ view: 'l',
358
+ loading: false
353
359
  };
354
360
  HiTableBody.propTypes = process.env.NODE_ENV !== "production" ? {
355
361
  /**
@@ -381,6 +387,10 @@ HiTableBody.propTypes = process.env.NODE_ENV !== "production" ? {
381
387
  * Hauteur du tableau (px)
382
388
  */
383
389
  height: PropTypes.number,
390
+ /**
391
+ * État du tableau en cours de chargement des données
392
+ */
393
+ loading: PropTypes.bool,
384
394
  /**
385
395
  * Identifiant de la ou des colonnes sur la/lesquelles il y a une 'lookup' search
386
396
  */
@@ -63,7 +63,8 @@ export const styles = theme => ({
63
63
  controlLabelRoot: {
64
64
  marginLeft: 6,
65
65
  marginBottom: 8,
66
- fontSize: 15
66
+ fontSize: 15,
67
+ width: 160
67
68
  },
68
69
  switchLabelRoot: {
69
70
  marginLeft: 15,
@@ -72,7 +73,10 @@ export const styles = theme => ({
72
73
  columnLabel: {
73
74
  position: 'relative',
74
75
  top: 5,
75
- left: 5
76
+ left: 5,
77
+ overflow: 'hidden',
78
+ textOverflow: 'ellipsis',
79
+ whiteSpace: 'nowrap'
76
80
  },
77
81
  label: {
78
82
  fontWeight: 'inherit'
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@hipay/hipay-material-ui",
3
3
  "private": false,
4
4
  "author": "HiPay PSYCHE Team",
5
- "version": "1.0.0-beta.7",
5
+ "version": "1.0.0-beta.8",
6
6
  "description": "HiPay Material-UI Style Guide - React components that implement Google's Material Design from Material-UI.",
7
7
  "main": "./index.js",
8
8
  "repository": {