@hitachivantara/uikit-react-lab 3.49.1 → 3.49.4

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 (93) hide show
  1. package/dist/AppSwitcherPanel/Action/Action.js.map +1 -1
  2. package/dist/AppSwitcherPanel/AppSwitcherPanel.js.map +1 -1
  3. package/dist/AppSwitcherPanel/TitleWithTooltip.js.map +1 -1
  4. package/dist/ColorPicker/ColorPicker.js.map +1 -1
  5. package/dist/ColorPicker/Fields/Fields.js.map +1 -1
  6. package/dist/ColorPicker/Fields/styles.js.map +1 -1
  7. package/dist/ColorPicker/Picker/Picker.js.map +1 -1
  8. package/dist/ColorPicker/Picker/styles.js.map +1 -1
  9. package/dist/ColorPicker/PresetColors/PresetColors.js.map +1 -1
  10. package/dist/ColorPicker/PresetColors/styles.js.map +1 -1
  11. package/dist/Controls/Controls.js.map +1 -1
  12. package/dist/Controls/LeftControl/LeftControl.js.map +1 -1
  13. package/dist/Controls/RightControl/RightControl.js.map +1 -1
  14. package/dist/Controls/context/ControlsContext.js.map +1 -1
  15. package/dist/DotPagination/DotPagination.js.map +1 -1
  16. package/dist/Drawer/Drawer.js.map +1 -1
  17. package/dist/Drawer/styles.js.map +1 -1
  18. package/dist/FormComposer/FormComposer.js.map +1 -1
  19. package/dist/InlineEditor/InlineEditor.js.map +1 -1
  20. package/dist/NavigationAnchors/NavigationAnchors.js.map +1 -1
  21. package/dist/NavigationAnchors/NavigationOption.js.map +1 -1
  22. package/dist/NotificationPanel/EmptyStatePanel/EmptyStatePanel.js.map +1 -1
  23. package/dist/NotificationPanel/Notification/Notification.js.map +1 -1
  24. package/dist/NotificationPanel/NotificationPanel.js.map +1 -1
  25. package/dist/NotificationPanel/NotificationsIndicator/NotificationsIndicator.js.map +1 -1
  26. package/dist/ProgressBar/ProgressBar.js.map +1 -1
  27. package/dist/ProgressBar/ProgressBarSimulator.js.map +1 -1
  28. package/dist/QueryBuilder/ConfirmationDialog/ConfirmationDialog.js.map +1 -1
  29. package/dist/QueryBuilder/ConfirmationDialog/styles.js.map +1 -1
  30. package/dist/QueryBuilder/Context.js.map +1 -1
  31. package/dist/QueryBuilder/QueryBuilder.js.map +1 -1
  32. package/dist/QueryBuilder/Rule/Attribute/Attribute.js.map +1 -1
  33. package/dist/QueryBuilder/Rule/Operator/Operator.js.map +1 -1
  34. package/dist/QueryBuilder/Rule/Rule.js.map +1 -1
  35. package/dist/QueryBuilder/Rule/Value/BooleanValue/BooleanValue.js.map +1 -1
  36. package/dist/QueryBuilder/Rule/Value/DateTimeValue/DateTimeValue.js.map +1 -1
  37. package/dist/QueryBuilder/Rule/Value/DateTimeValue/styles.js.map +1 -1
  38. package/dist/QueryBuilder/Rule/Value/DateTimeValue/utils.js.map +1 -1
  39. package/dist/QueryBuilder/Rule/Value/NumericValue/NumericValue.js.map +1 -1
  40. package/dist/QueryBuilder/Rule/Value/NumericValue/styles.js.map +1 -1
  41. package/dist/QueryBuilder/Rule/Value/TextValue/TextValue.js.map +1 -1
  42. package/dist/QueryBuilder/Rule/Value/TextValue/styles.js.map +1 -1
  43. package/dist/QueryBuilder/Rule/Value/Value.js.map +1 -1
  44. package/dist/QueryBuilder/Rule/styles.js.map +1 -1
  45. package/dist/QueryBuilder/RuleGroup/RuleGroup.js.map +1 -1
  46. package/dist/QueryBuilder/utils/date.js.map +1 -1
  47. package/dist/QueryBuilder/utils/reducer.js.map +1 -1
  48. package/dist/Slider/KnobRing/KnobRing.js.map +1 -1
  49. package/dist/Slider/KnobRing/index.js.map +1 -1
  50. package/dist/Slider/Slider.js.map +1 -1
  51. package/dist/Table/Table.js.map +1 -1
  52. package/dist/Table/TableBody/TableBody.js.map +1 -1
  53. package/dist/Table/TableCell/TableCell.js.map +1 -1
  54. package/dist/Table/TableCell/styles.js.map +1 -1
  55. package/dist/Table/TableContainer/TableContainer.js.map +1 -1
  56. package/dist/Table/TableContext.js.map +1 -1
  57. package/dist/Table/TableHead/TableHead.js.map +1 -1
  58. package/dist/Table/TableHeader/TableHeader.js.map +1 -1
  59. package/dist/Table/TableHeader/styles.js.map +1 -1
  60. package/dist/Table/TableRow/TableRow.js.map +1 -1
  61. package/dist/Table/TableRow/styles.js.map +1 -1
  62. package/dist/Table/TableSectionContext.js.map +1 -1
  63. package/dist/Table/hooks/useBulkActions.js.map +1 -1
  64. package/dist/Table/hooks/usePagination.js.map +1 -1
  65. package/dist/Table/hooks/useResizeColumns.js.map +1 -1
  66. package/dist/Table/hooks/useRowExpand.js.map +1 -1
  67. package/dist/Table/hooks/useRowSelection.js.map +1 -1
  68. package/dist/Table/hooks/useSortBy.js.map +1 -1
  69. package/dist/Table/hooks/useSticky.js.map +1 -1
  70. package/dist/Table/hooks/useTable.js.map +1 -1
  71. package/dist/Table/hooks/useTableStyles.js.map +1 -1
  72. package/dist/Table/renderers/DateColumnCell/DateColumnCell.js.map +1 -1
  73. package/dist/Table/renderers/DropdownColumnCell/DropdownColumnCell.js.map +1 -1
  74. package/dist/Table/renderers/ProgressColumnCell/ProgressColumnCell.js.map +1 -1
  75. package/dist/Table/renderers/ProgressColumnCell/styles.js.map +1 -1
  76. package/dist/Table/renderers/SwitchColumnCell/SwitchColumnCell.js.map +1 -1
  77. package/dist/Table/renderers/SwitchColumnCell/styles.js.map +1 -1
  78. package/dist/Table/renderers/renderers.js.map +1 -1
  79. package/dist/Tag/Tag.js.map +1 -1
  80. package/dist/TimeAgo/TimeAgo.js.map +1 -1
  81. package/dist/TimeAgo/formatUtils.js.map +1 -1
  82. package/dist/TimeAgo/useTimeAgo.js.map +1 -1
  83. package/dist/TimeAgo/useTimeout.js.map +1 -1
  84. package/dist/TimePicker/PeriodPicker/PeriodPicker.js.map +1 -1
  85. package/dist/TimePicker/PeriodPicker/index.js.map +1 -1
  86. package/dist/TimePicker/TimePicker.js.map +1 -1
  87. package/dist/TimePicker/UnitTimePicker/UnitTimePicker.js.map +1 -1
  88. package/dist/TimePicker/UnitTimePicker/index.js.map +1 -1
  89. package/dist/TimePicker/timePickerConverter.js.map +1 -1
  90. package/dist/TimePicker/timePickerFormatter.js.map +1 -1
  91. package/dist/TimePicker/timePickerUtils.js.map +1 -1
  92. package/dist/withStyleProps/WithStyleProps.js.map +1 -1
  93. package/package.json +5 -5
@@ -1 +1 @@
1
- {"version":3,"file":"RuleGroup.js","names":["RuleGroup","level","id","combinator","rules","classes","context","Context","dispatchAction","askAction","maxDepth","combinators","labels","normalizedMaxDepth","actionButtons","type","query","addRule","label","group","addGroup","DeleteIcon","delete","tooltip","onClickCombinator","item","operand","root","topGroup","subGroup","topCombinator","map","combinatorButton","removeButton","topRemoveButton","actions","dialog","ariaLabel","length","rulesContainer","subRulesContainer","rule","index","isInvalid","some","r","i","attribute","empty","title","cursor","textDecoration","createCondition","spacer","createGroup","actionButtonContainer","topActionButtonContainer","propTypes","PropTypes","shape","string","number","array","styles","name"],"sources":["../../../src/QueryBuilder/RuleGroup/RuleGroup.js"],"sourcesContent":["import React, { useCallback, useContext } from \"react\";\nimport clsx from \"clsx\";\nimport { withStyles } from \"@material-ui/core\";\nimport PropTypes from \"prop-types\";\nimport {\n HvGrid,\n HvMultiButton,\n HvButton,\n HvEmptyState,\n HvTypography,\n withTooltip,\n} from \"@hitachivantara/uikit-react-core\";\nimport { Add, Delete, Info } from \"@hitachivantara/uikit-react-icons\";\n\nimport Context from \"../Context\";\nimport Rule from \"../Rule\";\nimport styles from \"./styles\";\n\nconst RuleGroup = ({ level = 0, id, combinator = \"and\", rules = [], classes }) => {\n const context = useContext(Context);\n\n const { dispatchAction, askAction, maxDepth, combinators, labels } = context;\n const normalizedMaxDepth = maxDepth - 1;\n\n const actionButtons = (\n <>\n <HvButton\n category=\"secondary\"\n onClick={() => {\n dispatchAction({ type: \"add-rule\", id });\n }}\n >\n <Add />\n {level === 0 && labels.query?.addRule?.label != null\n ? labels.query?.addRule?.label\n : labels.group.addRule.label}\n </HvButton>\n {level <= normalizedMaxDepth && (\n <HvButton\n category=\"secondary\"\n onClick={() => {\n dispatchAction({ type: \"add-group\", id });\n }}\n >\n <Add />\n {level === 0 && labels.query?.addGroup?.label != null\n ? labels.query?.addGroup?.label\n : labels.group.addGroup.label}\n </HvButton>\n )}\n </>\n );\n\n const DeleteIcon = withTooltip(\n () => <Delete />,\n level === 0 && labels.query?.delete?.tooltip\n ? labels.query?.delete?.tooltip\n : labels.group.delete.tooltip,\n \"top\"\n );\n\n const onClickCombinator = useCallback(\n (item) => {\n dispatchAction({\n type: \"set-combinator\",\n id,\n combinator: item.operand,\n });\n },\n [dispatchAction, id]\n );\n\n return (\n <div\n className={clsx(classes.root, {\n [classes.topGroup]: level === 0,\n [classes.subGroup]: level !== 0,\n })}\n >\n <HvGrid container>\n <HvGrid item>\n <HvMultiButton className={clsx(classes.combinator, classes.topCombinator)}>\n {combinators.map((item) => (\n <HvButton\n key={item.operand}\n className={classes.combinatorButton}\n selected={item.operand === combinator}\n onClick={() => item.operand && onClickCombinator(item)}\n >\n {item.label}\n </HvButton>\n ))}\n </HvMultiButton>\n </HvGrid>\n <HvGrid item>\n <HvButton\n icon\n className={clsx(classes.removeButton, classes.topRemoveButton)}\n onClick={() => {\n askAction({\n actions: [{ type: \"remove-node\", id }],\n dialog:\n level === 0 && labels.query?.delete != null\n ? labels.query.delete\n : labels.group.delete,\n });\n }}\n aria-label={\n level === 0 && labels.query?.delete?.ariaLabel\n ? labels.query?.delete?.ariaLabel\n : labels.group.delete.ariaLabel\n }\n >\n <DeleteIcon />\n </HvButton>\n </HvGrid>\n </HvGrid>\n {rules?.length > 0 && (\n <div\n className={clsx(classes.rulesContainer, {\n [classes.subRulesContainer]: level > 0,\n topRulesContainer: level === 0,\n })}\n >\n {rules.map((rule, index) => {\n if (\"combinator\" in rule) {\n return (\n <RuleGroup\n key={rule.id ?? index}\n level={level + 1}\n {...rule}\n id={rule.id}\n classes={classes}\n />\n );\n }\n\n const isInvalid =\n combinator === \"and\" &&\n rules.some((r, i) => {\n if (\"attribute\" in r) {\n if (r.attribute === rule.attribute && r.id !== rule.id && i < index) {\n return true;\n }\n }\n return false;\n });\n\n return (\n <Rule\n key={rule.id ?? index}\n {...rule}\n isInvalid={isInvalid}\n id={rule.id}\n combinator={combinator}\n />\n );\n })}\n </div>\n )}\n {rules?.length === 0 && (\n <HvEmptyState\n title={labels.empty?.title}\n message={\n <>\n <HvTypography\n variant=\"link\"\n component=\"a\"\n onClick={() => {\n dispatchAction({ type: \"add-rule\", id });\n }}\n style={{ cursor: \"pointer\", textDecoration: \"underline\" }}\n >\n {`${labels.empty?.createCondition}`}\n </HvTypography>\n {level <= normalizedMaxDepth && (\n <>\n {`${labels.empty?.spacer}`}\n <HvTypography\n variant=\"link\"\n component=\"a\"\n onClick={() => {\n dispatchAction({ type: \"add-group\", id });\n }}\n style={{ cursor: \"pointer\", textDecoration: \"underline\" }}\n >\n {`${labels.empty?.createGroup}`}\n </HvTypography>\n </>\n )}\n </>\n }\n icon={<Info />}\n />\n )}\n <HvGrid container>\n <HvGrid\n item\n className={clsx(classes.actionButtonContainer, classes.topActionButtonContainer)}\n >\n {actionButtons}\n </HvGrid>\n </HvGrid>\n </div>\n );\n};\n\nRuleGroup.propTypes = {\n /**\n * Override or extend the styles applied to the component.\n * See CSS API tab for more details.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the top group container.\n */\n topGroup: PropTypes.string,\n /**\n * Styles applied to the sub group containers.\n */\n subGroup: PropTypes.string,\n /**\n * Styles applied to the multi-button combinator container.\n */\n combinator: PropTypes.string,\n /**\n * Styles applied to the multi-button combinator container on the top group.\n */\n topCombinator: PropTypes.string,\n /**\n * Styles applied to each combinator button.\n */\n combinatorButton: PropTypes.string,\n /**\n * Styles applied to the remove button.\n */\n removeButton: PropTypes.string,\n /**\n * Styles applied to the remove button on the top group.\n */\n topRemoveButton: PropTypes.string,\n /**\n * Styles applied to the rules container.\n */\n rulesContainer: PropTypes.string,\n /**\n * Styles applied to the sub rules container.\n */\n subRulesContainer: PropTypes.string,\n /**\n * Styles applied to the action button container.\n */\n actionButtonContainer: PropTypes.string,\n /**\n * Styles applied to the top action button container.\n */\n topActionButtonContainer: PropTypes.string,\n }),\n id: PropTypes.number,\n level: PropTypes.number,\n combinator: PropTypes.string,\n rules: PropTypes.array,\n};\n\nexport default withStyles(styles, { name: \"RuleGroup\" })(RuleGroup);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAQA;;AAEA;;AACA;;AACA;;;;;;;;AAEA,IAAMA,SAAS,GAAG,SAAZA,SAAY,OAAgE;EAAA;;EAAA,sBAA7DC,KAA6D;EAAA,IAA7DA,KAA6D,2BAArD,CAAqD;EAAA,IAAlDC,EAAkD,QAAlDA,EAAkD;EAAA,2BAA9CC,UAA8C;EAAA,IAA9CA,UAA8C,gCAAjC,KAAiC;EAAA,sBAA1BC,KAA0B;EAAA,IAA1BA,KAA0B,2BAAlB,EAAkB;EAAA,IAAdC,OAAc,QAAdA,OAAc;EAChF,IAAMC,OAAO,GAAG,uBAAWC,gBAAX,CAAhB;EAEA,IAAQC,cAAR,GAAqEF,OAArE,CAAQE,cAAR;EAAA,IAAwBC,SAAxB,GAAqEH,OAArE,CAAwBG,SAAxB;EAAA,IAAmCC,QAAnC,GAAqEJ,OAArE,CAAmCI,QAAnC;EAAA,IAA6CC,WAA7C,GAAqEL,OAArE,CAA6CK,WAA7C;EAAA,IAA0DC,MAA1D,GAAqEN,OAArE,CAA0DM,MAA1D;EACA,IAAMC,kBAAkB,GAAGH,QAAQ,GAAG,CAAtC;;EAEA,IAAMI,aAAa,gBACjB,yEACE,6BAAC,wBAAD;IACE,QAAQ,EAAC,WADX;IAEE,OAAO,EAAE,mBAAM;MACbN,cAAc,CAAC;QAAEO,IAAI,EAAE,UAAR;QAAoBb,EAAE,EAAFA;MAApB,CAAD,CAAd;IACD;EAJH,gCAME,6BAAC,oBAAD,OANF,GAOGD,KAAK,KAAK,C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,CADF,CA1HF,CADF;AAqID,CA3LD;;AA6LA,wCAAAd,SAAS,CAACyD,SAAV,GAAsB;EACpB;AACF;AACA;AACA;EACEpD,OAAO,EAAEqD,mBAAUC,KAAV,CAAgB;IACvB;AACJ;AACA;IACIhC,IAAI,EAAE+B,mBAAUE,MAJO;;IAKvB;AACJ;AACA;IACIhC,QAAQ,EAAE8B,mBAAUE,MARG;;IASvB;AACJ;AACA;IACI/B,QAAQ,EAAE6B,mBAAUE,MAZG;;IAavB;AACJ;AACA;IACIzD,UAAU,EAAEuD,mBAAUE,MAhBC;;IAiBvB;AACJ;AACA;IACI9B,aAAa,EAAE4B,mBAAUE,MApBF;;IAqBvB;AACJ;AACA;IACI5B,gBAAgB,EAAE0B,mBAAUE,MAxBL;;IAyBvB;AACJ;AACA;IACI3B,YAAY,EAAEyB,mBAAUE,MA5BD;;IA6BvB;AACJ;AACA;IACI1B,eAAe,EAAEwB,mBAAUE,MAhCJ;;IAiCvB;AACJ;AACA;IACIrB,cAAc,EAAEmB,mBAAUE,MApCH;;IAqCvB;AACJ;AACA;IACIpB,iBAAiB,EAAEkB,mBAAUE,MAxCN;;IAyCvB;AACJ;AACA;IACIL,qBAAqB,EAAEG,mBAAUE,MA5CV;;IA6CvB;AACJ;AACA;IACIJ,wBAAwB,EAAEE,mBAAUE;EAhDb,CAAhB,CALW;EAuDpB1D,EAAE,EAAEwD,mBAAUG,MAvDM;EAwDpB5D,KAAK,EAAEyD,mBAAUG,MAxDG;EAyDpB1D,UAAU,EAAEuD,mBAAUE,MAzDF;EA0DpBxD,KAAK,EAAEsD,mBAAUI;AA1DG,CAAtB;;eA6De,sBAAWC,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAA0ChE,SAA1C,C"}
1
+ {"version":3,"file":"RuleGroup.js","names":["RuleGroup","level","id","combinator","rules","classes","context","useContext","Context","dispatchAction","askAction","maxDepth","combinators","labels","normalizedMaxDepth","actionButtons","type","query","addRule","label","group","addGroup","DeleteIcon","withTooltip","delete","tooltip","onClickCombinator","useCallback","item","operand","clsx","root","topGroup","subGroup","topCombinator","map","combinatorButton","removeButton","topRemoveButton","actions","dialog","ariaLabel","length","rulesContainer","subRulesContainer","rule","index","isInvalid","some","r","i","attribute","empty","title","cursor","textDecoration","createCondition","spacer","createGroup","actionButtonContainer","topActionButtonContainer","propTypes","PropTypes","shape","string","number","array","withStyles","styles","name"],"sources":["../../../src/QueryBuilder/RuleGroup/RuleGroup.js"],"sourcesContent":["import React, { useCallback, useContext } from \"react\";\nimport clsx from \"clsx\";\nimport { withStyles } from \"@material-ui/core\";\nimport PropTypes from \"prop-types\";\nimport {\n HvGrid,\n HvMultiButton,\n HvButton,\n HvEmptyState,\n HvTypography,\n withTooltip,\n} from \"@hitachivantara/uikit-react-core\";\nimport { Add, Delete, Info } from \"@hitachivantara/uikit-react-icons\";\n\nimport Context from \"../Context\";\nimport Rule from \"../Rule\";\nimport styles from \"./styles\";\n\nconst RuleGroup = ({ level = 0, id, combinator = \"and\", rules = [], classes }) => {\n const context = useContext(Context);\n\n const { dispatchAction, askAction, maxDepth, combinators, labels } = context;\n const normalizedMaxDepth = maxDepth - 1;\n\n const actionButtons = (\n <>\n <HvButton\n category=\"secondary\"\n onClick={() => {\n dispatchAction({ type: \"add-rule\", id });\n }}\n >\n <Add />\n {level === 0 && labels.query?.addRule?.label != null\n ? labels.query?.addRule?.label\n : labels.group.addRule.label}\n </HvButton>\n {level <= normalizedMaxDepth && (\n <HvButton\n category=\"secondary\"\n onClick={() => {\n dispatchAction({ type: \"add-group\", id });\n }}\n >\n <Add />\n {level === 0 && labels.query?.addGroup?.label != null\n ? labels.query?.addGroup?.label\n : labels.group.addGroup.label}\n </HvButton>\n )}\n </>\n );\n\n const DeleteIcon = withTooltip(\n () => <Delete />,\n level === 0 && labels.query?.delete?.tooltip\n ? labels.query?.delete?.tooltip\n : labels.group.delete.tooltip,\n \"top\"\n );\n\n const onClickCombinator = useCallback(\n (item) => {\n dispatchAction({\n type: \"set-combinator\",\n id,\n combinator: item.operand,\n });\n },\n [dispatchAction, id]\n );\n\n return (\n <div\n className={clsx(classes.root, {\n [classes.topGroup]: level === 0,\n [classes.subGroup]: level !== 0,\n })}\n >\n <HvGrid container>\n <HvGrid item>\n <HvMultiButton className={clsx(classes.combinator, classes.topCombinator)}>\n {combinators.map((item) => (\n <HvButton\n key={item.operand}\n className={classes.combinatorButton}\n selected={item.operand === combinator}\n onClick={() => item.operand && onClickCombinator(item)}\n >\n {item.label}\n </HvButton>\n ))}\n </HvMultiButton>\n </HvGrid>\n <HvGrid item>\n <HvButton\n icon\n className={clsx(classes.removeButton, classes.topRemoveButton)}\n onClick={() => {\n askAction({\n actions: [{ type: \"remove-node\", id }],\n dialog:\n level === 0 && labels.query?.delete != null\n ? labels.query.delete\n : labels.group.delete,\n });\n }}\n aria-label={\n level === 0 && labels.query?.delete?.ariaLabel\n ? labels.query?.delete?.ariaLabel\n : labels.group.delete.ariaLabel\n }\n >\n <DeleteIcon />\n </HvButton>\n </HvGrid>\n </HvGrid>\n {rules?.length > 0 && (\n <div\n className={clsx(classes.rulesContainer, {\n [classes.subRulesContainer]: level > 0,\n topRulesContainer: level === 0,\n })}\n >\n {rules.map((rule, index) => {\n if (\"combinator\" in rule) {\n return (\n <RuleGroup\n key={rule.id ?? index}\n level={level + 1}\n {...rule}\n id={rule.id}\n classes={classes}\n />\n );\n }\n\n const isInvalid =\n combinator === \"and\" &&\n rules.some((r, i) => {\n if (\"attribute\" in r) {\n if (r.attribute === rule.attribute && r.id !== rule.id && i < index) {\n return true;\n }\n }\n return false;\n });\n\n return (\n <Rule\n key={rule.id ?? index}\n {...rule}\n isInvalid={isInvalid}\n id={rule.id}\n combinator={combinator}\n />\n );\n })}\n </div>\n )}\n {rules?.length === 0 && (\n <HvEmptyState\n title={labels.empty?.title}\n message={\n <>\n <HvTypography\n variant=\"link\"\n component=\"a\"\n onClick={() => {\n dispatchAction({ type: \"add-rule\", id });\n }}\n style={{ cursor: \"pointer\", textDecoration: \"underline\" }}\n >\n {`${labels.empty?.createCondition}`}\n </HvTypography>\n {level <= normalizedMaxDepth && (\n <>\n {`${labels.empty?.spacer}`}\n <HvTypography\n variant=\"link\"\n component=\"a\"\n onClick={() => {\n dispatchAction({ type: \"add-group\", id });\n }}\n style={{ cursor: \"pointer\", textDecoration: \"underline\" }}\n >\n {`${labels.empty?.createGroup}`}\n </HvTypography>\n </>\n )}\n </>\n }\n icon={<Info />}\n />\n )}\n <HvGrid container>\n <HvGrid\n item\n className={clsx(classes.actionButtonContainer, classes.topActionButtonContainer)}\n >\n {actionButtons}\n </HvGrid>\n </HvGrid>\n </div>\n );\n};\n\nRuleGroup.propTypes = {\n /**\n * Override or extend the styles applied to the component.\n * See CSS API tab for more details.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the top group container.\n */\n topGroup: PropTypes.string,\n /**\n * Styles applied to the sub group containers.\n */\n subGroup: PropTypes.string,\n /**\n * Styles applied to the multi-button combinator container.\n */\n combinator: PropTypes.string,\n /**\n * Styles applied to the multi-button combinator container on the top group.\n */\n topCombinator: PropTypes.string,\n /**\n * Styles applied to each combinator button.\n */\n combinatorButton: PropTypes.string,\n /**\n * Styles applied to the remove button.\n */\n removeButton: PropTypes.string,\n /**\n * Styles applied to the remove button on the top group.\n */\n topRemoveButton: PropTypes.string,\n /**\n * Styles applied to the rules container.\n */\n rulesContainer: PropTypes.string,\n /**\n * Styles applied to the sub rules container.\n */\n subRulesContainer: PropTypes.string,\n /**\n * Styles applied to the action button container.\n */\n actionButtonContainer: PropTypes.string,\n /**\n * Styles applied to the top action button container.\n */\n topActionButtonContainer: PropTypes.string,\n }),\n id: PropTypes.number,\n level: PropTypes.number,\n combinator: PropTypes.string,\n rules: PropTypes.array,\n};\n\nexport default withStyles(styles, { name: \"RuleGroup\" })(RuleGroup);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;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hC,IAAI,EAAE+B,kBAAA,CAAUE,MAJO;;IAKvB;AACJ;AACA;IACIhC,QAAQ,EAAE8B,kBAAA,CAAUE,MARG;;IASvB;AACJ;AACA;IACI/B,QAAQ,EAAE6B,kBAAA,CAAUE,MAZG;;IAavB;AACJ;AACA;IACI7D,UAAU,EAAE2D,kBAAA,CAAUE,MAhBC;;IAiBvB;AACJ;AACA;IACI9B,aAAa,EAAE4B,kBAAA,CAAUE,MApBF;;IAqBvB;AACJ;AACA;IACI5B,gBAAgB,EAAE0B,kBAAA,CAAUE,MAxBL;;IAyBvB;AACJ;AACA;IACI3B,YAAY,EAAEyB,kBAAA,CAAUE,MA5BD;;IA6BvB;AACJ;AACA;IACI1B,eAAe,EAAEwB,kBAAA,CAAUE,MAhCJ;;IAiCvB;AACJ;AACA;IACIrB,cAAc,EAAEmB,kBAAA,CAAUE,MApCH;;IAqCvB;AACJ;AACA;IACIpB,iBAAiB,EAAEkB,kBAAA,CAAUE,MAxCN;;IAyCvB;AACJ;AACA;IACIL,qBAAqB,EAAEG,kBAAA,CAAUE,MA5CV;;IA6CvB;AACJ;AACA;IACIJ,wBAAwB,EAAEE,kBAAA,CAAUE;EAhDb,CAAhB,CALW;EAuDpB9D,EAAE,EAAE4D,kBAAA,CAAUG,MAvDM;EAwDpBhE,KAAK,EAAE6D,kBAAA,CAAUG,MAxDG;EAyDpB9D,UAAU,EAAE2D,kBAAA,CAAUE,MAzDF;EA0DpB5D,KAAK,EAAE0D,kBAAA,CAAUI;AA1DG,CAAtB;;eA6De,IAAAC,gBAAA,EAAWC,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAA0CrE,SAA1C,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"date.js","names":["dayjs","extend","utc","timezone","formatToUTC","date","tz","format","isNumericRange","value","from","undefined","to","isDateTimeStrings","time","isDateTimeRange","start","end","parseDate","toDate","parseTime","parts","split","length","hours","Number","parseInt","minutes","seconds","validateDateTimeValues","startDate","startTime","endDate","endTime","endDateIsBefore","endTimeIsBeforeOrSame","endDateTimeIsBefore"],"sources":["../../../src/QueryBuilder/utils/date.js"],"sourcesContent":["import dayjs from \"dayjs\";\nimport utc from \"dayjs/plugin/utc\";\nimport timezone from \"dayjs/plugin/timezone\";\n\ndayjs.extend(utc);\ndayjs.extend(timezone);\n\nexport const formatToUTC = (date, tz) => {\n return dayjs.tz(date, tz).utc().format();\n};\n\nexport function isNumericRange(value) {\n return value.from !== undefined && value.to !== undefined;\n}\n\nexport function isDateTimeStrings(value) {\n return value.date !== undefined && value.time !== undefined;\n}\n\nexport function isDateTimeRange(value) {\n return value.start !== undefined && value.end !== undefined;\n}\n\nexport const parseDate = (date) => {\n if (date != null) {\n return dayjs(date).toDate();\n }\n\n return undefined;\n};\n\nexport const parseTime = (time) => {\n if (time != null) {\n const parts = time.split(\":\");\n\n if (parts.length === 3) {\n return {\n hours: Number.parseInt(parts[0], 10),\n minutes: Number.parseInt(parts[1], 10),\n seconds: Number.parseInt(parts[2], 10),\n };\n }\n }\n\n return null;\n};\n\nexport const validateDateTimeValues = (startDate, startTime, endDate, endTime) => {\n if (parseDate(startDate) == null) {\n return false;\n }\n if (parseTime(startTime) == null) {\n return false;\n }\n\n if (endDate !== undefined || endTime !== undefined) {\n if (parseDate(endDate) == null) {\n return false;\n }\n if (parseTime(endTime) == null) {\n return false;\n }\n const endDateIsBefore = startDate != null && endDate != null && endDate < startDate;\n\n const endTimeIsBeforeOrSame =\n startDate != null &&\n endDate != null &&\n endDate === startDate &&\n startTime != null &&\n endTime != null &&\n endTime <= startTime;\n\n const endDateTimeIsBefore = endDateIsBefore || endTimeIsBeforeOrSame;\n\n return !endDateTimeIsBefore;\n }\n\n return true;\n};\n\nexport default dayjs;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEAA,eAAMC,MAAN,CAAaC,YAAb;;AACAF,eAAMC,MAAN,CAAaE,iBAAb;;AAEO,IAAMC,WAAW,GAAG,S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P;IAKD;EACF;;EAED,OAAO,IAAP;AACD,CAdM;;;;AAgBA,IAAMQ,sBAAsB,GAAG,SAAzBA,sBAAyB,CAACC,SAAD,EAAYC,SAAZ,EAAuBC,OAAvB,EAAgCC,OAAhC,EAA4C;EAChF,IAAIf,SAAS,CAACY,SAAD,CAAT,IAAwB,IAA5B,EAAkC;IAChC,OAAO,KAAP;EACD;;EACD,IAAIV,SAAS,CAACW,SAAD,CAAT,IAAwB,IAA5B,EAAkC;IAChC,OAAO,KAAP;EACD;;EAED,IAAIC,OAAO,KAAKrB,SAAZ,IAAyBsB,OAAO,KAAKtB,SAAzC,EAAoD;IAClD,IAAIO,SAAS,CAACc,OAAD,CAAT,IAAsB,IAA1B,EAAgC;MAC9B,OAAO,KAAP;IACD;;IACD,IAAIZ,SAAS,CAACa,OAAD,CAAT,IAAsB,IAA1B,EAAgC;MAC9B,OAAO,KAAP;IACD;;IACD,IAAMC,eAAe,GAAGJ,SAAS,IAAI,IAAb,IAAqBE,OAAO,IAAI,IAAhC,IAAwCA,OAAO,GAAGF,SAA1E;IAEA,IAAMK,qBAAqB,GACzBL,SAAS,IAAI,IAAb,IACAE,OAAO,IAAI,IADX,IAEAA,OAAO,KAAKF,SAFZ,IAGAC,SAAS,IAAI,IAHb,IAIAE,OAAO,IAAI,IAJX,IAKAA,OAAO,IAAIF,SANb;IAQA,IAAMK,mBAAmB,GAAGF,eAAe,IAAIC,qBAA/C;IAEA,OAAO,CAACC,mBAAR;EACD;;EAED,OAAO,IAAP;AACD,CA/BM;;;eAiCQpC,c"}
1
+ {"version":3,"file":"date.js","names":["dayjs","extend","utc","timezone","formatToUTC","date","tz","format","isNumericRange","value","from","undefined","to","isDateTimeStrings","time","isDateTimeRange","start","end","parseDate","toDate","parseTime","parts","split","length","hours","Number","parseInt","minutes","seconds","validateDateTimeValues","startDate","startTime","endDate","endTime","endDateIsBefore","endTimeIsBeforeOrSame","endDateTimeIsBefore"],"sources":["../../../src/QueryBuilder/utils/date.js"],"sourcesContent":["import dayjs from \"dayjs\";\nimport utc from \"dayjs/plugin/utc\";\nimport timezone from \"dayjs/plugin/timezone\";\n\ndayjs.extend(utc);\ndayjs.extend(timezone);\n\nexport const formatToUTC = (date, tz) => {\n return dayjs.tz(date, tz).utc().format();\n};\n\nexport function isNumericRange(value) {\n return value.from !== undefined && value.to !== undefined;\n}\n\nexport function isDateTimeStrings(value) {\n return value.date !== undefined && value.time !== undefined;\n}\n\nexport function isDateTimeRange(value) {\n return value.start !== undefined && value.end !== undefined;\n}\n\nexport const parseDate = (date) => {\n if (date != null) {\n return dayjs(date).toDate();\n }\n\n return undefined;\n};\n\nexport const parseTime = (time) => {\n if (time != null) {\n const parts = time.split(\":\");\n\n if (parts.length === 3) {\n return {\n hours: Number.parseInt(parts[0], 10),\n minutes: Number.parseInt(parts[1], 10),\n seconds: Number.parseInt(parts[2], 10),\n };\n }\n }\n\n return null;\n};\n\nexport const validateDateTimeValues = (startDate, startTime, endDate, endTime) => {\n if (parseDate(startDate) == null) {\n return false;\n }\n if (parseTime(startTime) == null) {\n return false;\n }\n\n if (endDate !== undefined || endTime !== undefined) {\n if (parseDate(endDate) == null) {\n return false;\n }\n if (parseTime(endTime) == null) {\n return false;\n }\n const endDateIsBefore = startDate != null && endDate != null && endDate < startDate;\n\n const endTimeIsBeforeOrSame =\n startDate != null &&\n endDate != null &&\n endDate === startDate &&\n startTime != null &&\n endTime != null &&\n endTime <= startTime;\n\n const endDateTimeIsBefore = endDateIsBefore || endTimeIsBeforeOrSame;\n\n return !endDateTimeIsBefore;\n }\n\n return true;\n};\n\nexport default dayjs;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEAA,cAAA,CAAMC,MAAN,CAAaC,YAAb;;AACAF,cAAA,CAAMC,MAAN,CAAaE,iBAAb;;AAEO,IAAMC,WAAW,GAAG,SAAdA,WAAc,CAACC,IAAD,EAAOC,EAAP,EAAc;EACvC,OAAON,cAAA,CAAMM,EAAN,CA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,sBAAsB,GAAG,SAAzBA,sBAAyB,CAACC,SAAD,EAAYC,SAAZ,EAAuBC,OAAvB,EAAgCC,OAAhC,EAA4C;EAChF,IAAIf,SAAS,CAACY,SAAD,CAAT,IAAwB,IAA5B,EAAkC;IAChC,OAAO,KAAP;EACD;;EACD,IAAIV,SAAS,CAACW,SAAD,CAAT,IAAwB,IAA5B,EAAkC;IAChC,OAAO,KAAP;EACD;;EAED,IAAIC,OAAO,KAAKrB,SAAZ,IAAyBsB,OAAO,KAAKtB,SAAzC,EAAoD;IAClD,IAAIO,SAAS,CAACc,OAAD,CAAT,IAAsB,IAA1B,EAAgC;MAC9B,OAAO,KAAP;IACD;;IACD,IAAIZ,SAAS,CAACa,OAAD,CAAT,IAAsB,IAA1B,EAAgC;MAC9B,OAAO,KAAP;IACD;;IACD,IAAMC,eAAe,GAAGJ,SAAS,IAAI,IAAb,IAAqBE,OAAO,IAAI,IAAhC,IAAwCA,OAAO,GAAGF,SAA1E;IAEA,IAAMK,qBAAqB,GACzBL,SAAS,IAAI,IAAb,IACAE,OAAO,IAAI,IADX,IAEAA,OAAO,KAAKF,SAFZ,IAGAC,SAAS,IAAI,IAHb,IAIAE,OAAO,IAAI,IAJX,IAKAA,OAAO,IAAIF,SANb;IAQA,IAAMK,mBAAmB,GAAGF,eAAe,IAAIC,qBAA/C;IAEA,OAAO,CAACC,mBAAR;EACD;;EAED,OAAO,IAAP;AACD,CA/BM;;;eAiCQpC,c"}
@@ -1 +1 @@
1
- {"version":3,"file":"reducer.js","names":["reducer","state","action","query","type","group","id","rules","rule","push","parent","filter","node","combinator","attribute","undefined","operator","value"],"sources":["../../../src/QueryBuilder/utils/reducer.js"],"sourcesContent":["import { emptyRule, emptyGroup, findNodeById, findParentById } from \"./index\";\n\nconst reducer = (state, action) => {\n const query = { ...state };\n\n switch (action.type) {\n case \"reset-query\": {\n return emptyGroup();\n }\n case \"reset-group\": {\n const group = findNodeById(action.id, query);\n if (group && \"rules\" in group) {\n group.rules = [emptyRule()];\n\n return query;\n }\n break;\n }\n case \"add-rule\": {\n const group = findNodeById(action.id, query);\n if (group && \"rules\" in group) {\n const rule = emptyRule();\n\n group.rules.push(rule);\n\n return query;\n }\n break;\n }\n case \"add-group\": {\n const group = findNodeById(action.id, query);\n if (group && \"rules\" in group) {\n group.rules.push(emptyGroup(true));\n\n return query;\n }\n break;\n }\n case \"remove-node\": {\n const parent = findParentById(action.id, query);\n if (parent) {\n parent.rules = parent.rules.filter((rule) => rule.id !== action.id);\n\n return query;\n }\n\n // reset query if deleting top node\n return emptyGroup();\n }\n case \"set-combinator\": {\n const node = findNodeById(action.id, query);\n if (node && \"combinator\" in node) {\n if (node.combinator !== action.combinator) {\n node.combinator = action.combinator;\n\n return query;\n }\n }\n break;\n }\n case \"set-attribute\": {\n const node = findNodeById(action.id, query);\n if (node && node.attribute !== action.attribute) {\n node.attribute = action.attribute ?? undefined;\n\n // we keep the operator and value unless the operator is explicitly null (or set)\n if (action.operator !== undefined) {\n node.operator = action.operator ?? undefined;\n node.value = action.value ?? undefined;\n }\n\n return query;\n }\n break;\n }\n case \"set-operator\": {\n const node = findNodeById(action.id, query);\n if (node && \"attribute\" in node) {\n if (node.operator !== action.operator) {\n node.operator = action.operator;\n if (action.value !== undefined) {\n node.value = action.value ?? undefined;\n }\n\n return query;\n }\n }\n break;\n }\n case \"set-value\": {\n const node = findNodeById(action.id, query);\n if (node && \"operator\" in node) {\n node.value = action.value ?? undefined;\n\n return query;\n }\n break;\n }\n\n default:\n }\n\n // just return existing state if nothing changed\n return state;\n};\n\nexport default reducer;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAEA,IAAMA,OAAO,GAAG,SAAVA,OAAU,CAACC,KAAD,EAAQC,MAAR,EAAmB;EACjC,IAAMC,KAAK,qBAAQF,KAAR,CAAX;;EAEA,QAAQC,MAAM,CAACE,IAAf;IACE,KAAK,aAAL;MAAoB;QAClB,OAAO,wBAAP;MACD;;IACD,KAAK,a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I,IAAI,cAAcA,MAA1B,EAAgC;UAAA;;UAC9BA,MAAI,CAACK,KAAL,qBAAaf,MAAM,CAACe,KAApB,2DAA6BF,SAA7B;UAEA,OAAOZ,KAAP;QACD;;QACD;MACD;;IAED;EA9FF,CAHiC,CAoGjC;;;EACA,OAAOF,KAAP;AACD,CAtGD;;eAwGeD,O"}
1
+ {"version":3,"file":"reducer.js","names":["reducer","state","action","query","type","emptyGroup","group","findNodeById","id","rules","emptyRule","rule","push","parent","findParentById","filter","node","combinator","attribute","undefined","operator","value"],"sources":["../../../src/QueryBuilder/utils/reducer.js"],"sourcesContent":["import { emptyRule, emptyGroup, findNodeById, findParentById } from \"./index\";\n\nconst reducer = (state, action) => {\n const query = { ...state };\n\n switch (action.type) {\n case \"reset-query\": {\n return emptyGroup();\n }\n case \"reset-group\": {\n const group = findNodeById(action.id, query);\n if (group && \"rules\" in group) {\n group.rules = [emptyRule()];\n\n return query;\n }\n break;\n }\n case \"add-rule\": {\n const group = findNodeById(action.id, query);\n if (group && \"rules\" in group) {\n const rule = emptyRule();\n\n group.rules.push(rule);\n\n return query;\n }\n break;\n }\n case \"add-group\": {\n const group = findNodeById(action.id, query);\n if (group && \"rules\" in group) {\n group.rules.push(emptyGroup(true));\n\n return query;\n }\n break;\n }\n case \"remove-node\": {\n const parent = findParentById(action.id, query);\n if (parent) {\n parent.rules = parent.rules.filter((rule) => rule.id !== action.id);\n\n return query;\n }\n\n // reset query if deleting top node\n return emptyGroup();\n }\n case \"set-combinator\": {\n const node = findNodeById(action.id, query);\n if (node && \"combinator\" in node) {\n if (node.combinator !== action.combinator) {\n node.combinator = action.combinator;\n\n return query;\n }\n }\n break;\n }\n case \"set-attribute\": {\n const node = findNodeById(action.id, query);\n if (node && node.attribute !== action.attribute) {\n node.attribute = action.attribute ?? undefined;\n\n // we keep the operator and value unless the operator is explicitly null (or set)\n if (action.operator !== undefined) {\n node.operator = action.operator ?? undefined;\n node.value = action.value ?? undefined;\n }\n\n return query;\n }\n break;\n }\n case \"set-operator\": {\n const node = findNodeById(action.id, query);\n if (node && \"attribute\" in node) {\n if (node.operator !== action.operator) {\n node.operator = action.operator;\n if (action.value !== undefined) {\n node.value = action.value ?? undefined;\n }\n\n return query;\n }\n }\n break;\n }\n case \"set-value\": {\n const node = findNodeById(action.id, query);\n if (node && \"operator\" in node) {\n node.value = action.value ?? undefined;\n\n return query;\n }\n break;\n }\n\n default:\n }\n\n // just return existing state if nothing changed\n return state;\n};\n\nexport default reducer;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAEA,IAAMA,OAAO,GAAG,SAAVA,OAAU,CAACC,KAAD,EAAQC,MAAR,EAAmB;EACjC,IAAMC,KAAK,qBAAQF,KAAR,CAAX;;EAEA,QAAQC,MAAM,CAACE,IAAf;IACE,KAAK,aAAL;MAAoB;QAClB,OAAO,IAAAC,iBAAA,GAAP;MACD;;IACD,KAAK,aAAL;MAAoB;QAClB,IAAMC,KAAK,GAAG,IAAAC,mBAAA,EAAaL,MAAM,CAACM,EAApB,EAAwBL,KAAxB,CAAd;;QACA,IAAIG,KAAK,IAAI,WAAWA,KAAxB,EAA+B;UAC7BA,KAAK,CAACG,KAAN,GAAc,CAAC,IAAAC,gBAAA,GAAD,CAAd;UAEA,OAAOP,KAAP;QACD;;QACD;MACD;;IACD,KAAK,UAAL;MAAiB;QACf,IAAMG,MAAK,GAAG,IAAAC,mBAAA,EAAaL,MAAM,CAACM,EAApB,EAAwBL,KAAxB,CAAd;;QACA,IAAIG,MAAK,IAAI,WAAWA,MAAxB,EAA+B;UAC7B,IAAMK,IAAI,GAAG,IAAAD,gBAAA,GAAb;;UAEAJ,MAAK,CAACG,KAAN,CAAYG,IAAZ,CAAiBD,IAAjB;;UAEA,OAAOR,KAAP;QACD;;QACD;MACD;;IACD,KAAK,WAAL;MAAkB;QAChB,IAAMG,OAAK,GAAG,IAAAC,mBAAA,EAAaL,MAAM,CAACM,EAApB,EAAwBL,KAAxB,CAAd;;Q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,QAAL,uBAAgBlB,MAAM,CAACkB,QAAvB,+DAAmCD,SAAnC;YACAH,KAAI,CAACK,KAAL,oBAAanB,MAAM,CAACmB,KAApB,yDAA6BF,SAA7B;UACD;;UAED,OAAOhB,KAAP;QACD;;QACD;MACD;;IACD,KAAK,cAAL;MAAqB;QACnB,IAAMa,MAAI,GAAG,IAAAT,mBAAA,EAAaL,MAAM,CAACM,EAApB,EAAwBL,KAAxB,CAAb;;QACA,IAAIa,MAAI,IAAI,eAAeA,MAA3B,EAAiC;UAC/B,IAAIA,MAAI,CAACI,QAAL,KAAkBlB,MAAM,CAACkB,QAA7B,EAAuC;YACrCJ,MAAI,CAACI,QAAL,GAAgBlB,MAAM,CAACkB,QAAvB;;YACA,IAAIlB,MAAM,CAACmB,KAAP,KAAiBF,SAArB,EAAgC;cAAA;;cAC9BH,MAAI,CAACK,KAAL,qBAAanB,MAAM,CAACmB,KAApB,2DAA6BF,SAA7B;YACD;;YAED,OAAOhB,KAAP;UACD;QACF;;QACD;MACD;;IACD,KAAK,WAAL;MAAkB;QAChB,IAAMa,MAAI,GAAG,IAAAT,mBAAA,EAAaL,MAAM,CAACM,EAApB,EAAwBL,KAAxB,CAAb;;QACA,IAAIa,MAAI,IAAI,cAAcA,MAA1B,EAAgC;UAAA;;UAC9BA,MAAI,CAACK,KAAL,qBAAanB,MAAM,CAACmB,KAApB,2DAA6BF,SAA7B;UAEA,OAAOhB,KAAP;QACD;;QACD;MACD;;IAED;EA9FF,CAHiC,CAoGjC;;;EACA,OAAOF,KAAP;AACD,CAtGD;;eAwGeD,O"}
@@ -1 +1 @@
1
- {"version":3,"file":"KnobRing.js","names":["HvKnobRing","props","classes","knobRing","propTypes","PropTypes","instanceOf","Object","isRequired"],"sources":["../../../src/Slider/KnobRing/KnobRing.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nconst HvKnobRing = (props) => {\n const { classes } = props;\n\n return <div className={classes.knobRing} />;\n};\n\nHvKnobRing.propTypes = {\n classes: PropTypes.instanceOf(Object).isRequired,\n};\n\nexport default HvKnobRing;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA,IAAMA,UAAU,GAAG,SAAbA,UAAa,CAACC,KAAD,EAAW;EAC5B,IAAQC,OAAR,GAAoBD,KAApB,CAAQC,OAAR;EAEA,oBAAO;IAAK,SAAS,EAAEA,OAAO,CAACC;EAAxB,EAAP;AACD,CAJD;;AAMA,wCAAAH,UAAU,CAACI,SAAX,GAAuB;EACrBF,OAAO,EAAEG,mBAAUC,UAAV,CAAqBC,MAArB,EAA6BC;AADjB,CAAvB;eAIeR,U"}
1
+ {"version":3,"file":"KnobRing.js","names":["HvKnobRing","props","classes","knobRing","propTypes","PropTypes","instanceOf","Object","isRequired"],"sources":["../../../src/Slider/KnobRing/KnobRing.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nconst HvKnobRing = (props) => {\n const { classes } = props;\n\n return <div className={classes.knobRing} />;\n};\n\nHvKnobRing.propTypes = {\n classes: PropTypes.instanceOf(Object).isRequired,\n};\n\nexport default HvKnobRing;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA,IAAMA,UAAU,GAAG,SAAbA,UAAa,CAACC,KAAD,EAAW;EAC5B,IAAQC,OAAR,GAAoBD,KAApB,CAAQC,OAAR;EAEA,oBAAO;IAAK,SAAS,EAAEA,OAAO,CAACC;EAAxB,EAAP;AACD,CAJD;;AAMA,wCAAAH,UAAU,CAACI,SAAX,GAAuB;EACrBF,OAAO,EAAEG,kBAAA,CAAUC,UAAV,CAAqBC,MAArB,EAA6BC;AADjB,CAAvB;eAIeR,U"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["styles","KnobRing"],"sources":["../../../src/Slider/KnobRing/index.js"],"sourcesContent":["import withStylesProps from \"../../withStyleProps\";\nimport styles from \"./styles\";\nimport KnobRing from \"./KnobRing\";\n\nexport default withStylesProps(styles)(KnobRing);\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;eAEe,6BAAgBA,eAAhB,EAAwBC,iBAAxB,C"}
1
+ {"version":3,"file":"index.js","names":["withStylesProps","styles","KnobRing"],"sources":["../../../src/Slider/KnobRing/index.js"],"sourcesContent":["import withStylesProps from \"../../withStyleProps\";\nimport styles from \"./styles\";\nimport KnobRing from \"./KnobRing\";\n\nexport default withStylesProps(styles)(KnobRing);\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;eAEe,IAAAA,uBAAA,EAAgBC,eAAhB,EAAwBC,iBAAxB,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.js","names":["scaledValueToKnobsPositionValue","scaledValue","minPointValue","inverseStepValue","Math","floor","transformKnobsPosition","values","knobsPositions","forEach","value","index","calculateStepValue","maxPointValue","divisionQuantity","abs","HvSlider","props","sliderValue","stepValue","markProperties","markstep","markDigits","formatMark","styles","marks","length","markProperty","position","label","style","mark","roundedMarkStep","labelValue","knobsPositionToScaledValue","toFixed","knobProperties","trackStyles","knobProperty","track","color","backgroundColor","trackColor","knobInner","knobOuterStyle","lastItem","knobOuter","hidden","knobHidden","knobHiddenLast","knobsCurrentPosition","newKnobsPosition","slice","knobsValues","noOverlap","state","duplicatedValue","findDuplicated","filter","item","indexOf","array","newArray","newPosition","previousValue","knobsPosition","knobs","generateKnobsPositionAndValues","onChange","defaultValues","fixed","setState","onBeforeChange","onAfterChange","formatTooltip","classes","dragging","restProps","knobValue","dragColor","sliderTooltip","hoverColor","markStep","theme","createTrackStyles","knobStyles","createKnobStyles","rangesCount","createMark","defaultKnobsPositions","createKnob","root","dot","onChangeHandler","onBeforeChangeHandler","onAfterChangeHandler","undefined","rail","React","Component","propTypes","PropTypes","arrayOf","number","isRequired","shape","string","defaultValue","bool","func","any","defaultProps","styleCreator","name","withTheme"],"sources":["../../src/Slider/Slider.js"],"sourcesContent":["/**\n * Note: https://github.com/react-component/slider/issues/504\n * Version must remain in \"8.6.3\" until this bug is fixed\n */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Range, Handle } from \"rc-slider\";\nimport Tooltip from \"rc-tooltip\";\nimport { withStyles } from \"@material-ui/core\";\nimport KnobRing from \"./KnobRing\";\nimport \"rc-slider/assets/index.css\";\nimport styleCreator from \"./styles\";\n\n/**\n * Transform the scaled values into knobs positions.\n *\n * @param {*} scaledValue - the value of the slider to be scaled\n * @param {*} minPointValue - The value of the first point in\n * the slider from left to right.\n * @param {*} inverseStepValue - The inverse of calculated separation between\n * the value of the points that compose the slider.\n */\nconst scaledValueToKnobsPositionValue = (scaledValue, minPointValue, inverseStepValue) =>\n Math.floor((scaledValue - minPointValue) * inverseStepValue);\n\n/**\n * Transform the received knobs values into knob positions\n *\n * @param {Object} values - The values of the slider.\n * @param {Number} inverseStepValue - The inverse of calculated separation between\n * the value of the points that compose the slider.\n * @param {Integer} minPointValue - The value of the first point in the slider from\n * left to right.\n * @returns {Array} - The position of the knobs.\n */\nconst transformKnobsPosition = (values, inverseStepValue, minPointValue) => {\n const knobsPositions = [];\n values.forEach((value, index) => {\n knobsPositions[index] = scaledValueToKnobsPositionValue(value, minPointValue, inverseStepValue);\n });\n return knobsPositions;\n};\n\n/**\n * Calculates the separation between each value in the slider.\n *\n * @param {*} maxPointValue - The value of the last point in the slider from left to right.\n * @param {*} minPointValue - The value of the first point in the slider from left to right.\n * @param {*} divisionQuantity - How many subdivisions there are in the slider.\n */\nconst calculateStepValue = (maxPointValue, minPointValue, divisionQuantity) =>\n Math.abs(maxPointValue - minPointValue) / divisionQuantity;\n\n/**\n * Sliders reflect a range of values along a bar, from which users may select a single value. They are ideal for adjusting settings such as volume, brightness, or applying image filters. Still in development\n */\nclass HvSlider extends React.Component {\n constructor(props) {\n super(props);\n\n const {\n markProperties,\n markStep,\n markDigits,\n knobProperties,\n values,\n defaultValues,\n theme,\n maxPointValue,\n minPointValue,\n divisionQuantity,\n formatMark,\n } = props;\n\n const styles = styleCreator(theme);\n const stepValue = calculateStepValue(maxPointValue, minPointValue, divisionQuantity);\n const inverseStepValue = 1 / stepValue;\n\n this.state = {\n knobsPositions: transformKnobsPosition(\n values.length > 0 ? values : defaultValues,\n inverseStepValue,\n minPointValue\n ),\n trackStyles: this.createTrackStyles(knobProperties, styles),\n knobStyles: this.createKnobStyles(knobProperties, styles),\n rangesCount: knobProperties.length - 1,\n marks: this.createMark(\n markProperties,\n markStep,\n divisionQuantity,\n minPointValue,\n stepValue,\n markDigits,\n formatMark,\n styles\n ),\n defaultKnobsPositions: transformKnobsPosition(defaultValues, inverseStepValue, minPointValue),\n styles,\n stepValue,\n inverseStepValue,\n };\n }\n\n static getDerivedStateFromProps(props, state) {\n const stepValue = calculateStepValue(\n props.maxPointValue,\n props.minPointValue,\n props.divisionQuantity\n );\n\n if (props.values.length > 0) {\n return {\n ...state,\n knobsPositions: transformKnobsPosition(\n props.values.length > 0 ? props.values : props.defaultValues,\n 1 / stepValue,\n props.minPointValue\n ),\n };\n }\n return null;\n }\n\n /**\n * Transform the scaled values into knobs positions.\n *\n * @param {*} sliderValue - the value of the slider to be scaled\n * @param {*} minPointValue - The value of the first point in the slider from left to right.\n * @param {*} stepValue - The calculated separation between the values of the slider.\n */\n knobsPositionToScaledValue = (sliderValue, minPointValue, stepValue) =>\n minPointValue + stepValue * sliderValue;\n\n /**\n * Generates the inline styles used for the track of each knob, applying colors if necessary.\n *\n * @param {Object} markProperties - The object provided by the user with\n * the desired configuration for the marks.\n * @param {Integer} markstep - The separation between marks.\n * @param {Integer} divisionQuantity - How many subdivisions there are in the slider.\n * @param {Integer} minPointValue - The value of the first point in the slider from\n * left to right.\n * @param {Integer} stepValue - The calculated separation between the values of the slider.\n * @param {Integer} markDigits - How many decimals the mark will show.\n * @param {Function} formatMark - A function provided by the user that is going to\n * be executed to format the mark text.\n * @param {Object} styles - the default styles for the marks.\n * @returns {Object} - An object with the for the marks.\n * @memberof HvSlider\n */\n createMark = (\n markProperties,\n markstep,\n divisionQuantity,\n minPointValue,\n stepValue,\n markDigits,\n formatMark,\n styles\n ) => {\n const marks = {};\n if (markProperties.length > 0) {\n markProperties.forEach((markProperty) => {\n marks[markProperty.position] = {\n label: `${markProperty.label}`,\n style: {\n ...styles.mark,\n },\n };\n });\n } else {\n const roundedMarkStep = Math.floor(markstep);\n for (let index = 0; index <= divisionQuantity; index += roundedMarkStep) {\n let labelValue = this.knobsPositionToScaledValue(index, minPointValue, stepValue).toFixed(\n markDigits\n );\n labelValue = formatMark(labelValue);\n marks[index] = {\n label: `${labelValue}`,\n style: {\n ...styles.mark,\n },\n };\n }\n }\n return marks;\n };\n\n /**\n * Generates the inline styles used for the track of each knob, applying colors if necessary.\n *\n * @param {Object} knobProperties - The object provided by the user with\n * the desired configuration for the knobs.\n * @param {Object} styles - the default styles for the tracks.\n * @returns {Object} - An object with the style for each track.\n * @memberof HvSlider\n */\n createTrackStyles = (knobProperties, styles) => {\n const trackStyles = [];\n if (knobProperties.length > 1) {\n knobProperties.forEach((knobProperty, index) => {\n trackStyles[index] = { ...styles.track };\n if (knobProperty.color) {\n trackStyles[index].backgroundColor = knobProperty.trackColor;\n }\n });\n }\n return trackStyles;\n };\n\n /**\n * Generates the inline styles used for each knob, applying colors if specified.\n *\n * @param {Object} knobProperties - The object provided by the user with\n * the desired configuration for the knobs.\n * @param {Object} styles - the default styles for the knobs.\n * @returns {Object} - An object with both the inner and outer styles for the knob.\n * @memberof HvSlider\n */\n createKnobStyles = (knobProperties, styles) => {\n const knobInner = [];\n const knobOuterStyle = [];\n\n const lastItem = knobProperties.length - 1;\n if (knobProperties.length > 1) {\n knobProperties.forEach((knobProperty, index) => {\n knobInner[index] = { ...styles.knobInner };\n knobOuterStyle[index] = { ...styles.knobOuter };\n\n if (knobProperty.color) {\n knobInner[index].backgroundColor = knobProperty.color;\n knobOuterStyle[index].backgroundColor = \"transparent\";\n }\n\n if (knobProperty.hidden) {\n knobInner[index] = styles.knobHidden;\n if (index === lastItem) {\n knobInner[index] = { ...styles.knobHiddenLast };\n knobInner[index].backgroundColor = knobProperty.color;\n knobOuterStyle[index] = { ...styles.knobHidden };\n knobOuterStyle[index].backgroundColor = knobProperty.color;\n }\n }\n });\n }\n\n return {\n knobInner,\n knobOuterStyle,\n };\n };\n\n /**\n * Generates an object which posses the current value and position of the knobs.\n *\n * @param {Array} knobsCurrentPosition - An array containing the current positions of the knobs.\n * @returns {Object} - An object with the positions and values of the knobs.\n * @memberof HvSlider\n */\n generateKnobsPositionAndValues = (knobsCurrentPosition) => {\n const newKnobsPosition = knobsCurrentPosition.slice();\n const knobsValues = [];\n const { minPointValue, noOverlap } = this.props;\n const { stepValue, knobsPositions } = this.state;\n\n let duplicatedValue = null;\n\n const findDuplicated = newKnobsPosition.filter(\n (item, index) => newKnobsPosition.indexOf(item) !== index\n );\n\n if (noOverlap && findDuplicated.length > 0) {\n [duplicatedValue] = findDuplicated;\n }\n newKnobsPosition.forEach((position, index, array) => {\n const newArray = array;\n let newPosition = position;\n\n if (noOverlap && newPosition === duplicatedValue) {\n const previousValue = knobsPositions[index];\n if (previousValue !== newPosition) {\n newPosition += newPosition > previousValue ? -1 : 1;\n newArray[index] = newPosition;\n }\n }\n\n knobsValues[index] = this.knobsPositionToScaledValue(newPosition, minPointValue, stepValue);\n }, this);\n\n return {\n knobsPosition: newKnobsPosition,\n knobsValues,\n };\n };\n\n /**\n * Function executed while the knobs changes.\n *\n * executes the callback provided by the user with the values and position of the knobs,\n * also lock the value of the knob in case one is fixed.\n *\n * @param {Array} knobsPosition - An array containing the current positions of the knobs.\n * @memberof HvSlider\n */\n onChangeHandler = (knobsPosition) => {\n const knobs = this.generateKnobsPositionAndValues(knobsPosition);\n const { knobProperties, onChange, minPointValue, defaultValues } = this.props;\n const { inverseStepValue } = this.state;\n knobProperties.forEach((knobProperty, index) => {\n if (knobProperty.fixed) {\n knobs.knobsPosition[index] = scaledValueToKnobsPositionValue(\n defaultValues[index],\n minPointValue,\n inverseStepValue\n );\n }\n });\n\n onChange(knobs);\n\n this.setState({\n knobsPositions: knobs.knobsPosition,\n });\n };\n\n /**\n * Function executed before a change.\n *\n * executes the callback provided by the user with the values and position of the knobs\n *\n * @param {Array} knobsPosition - An array containing the current positions of the knobs.\n * @memberof HvSlider\n */\n onBeforeChangeHandler = (knobsPosition) => {\n const { onBeforeChange } = this.props;\n const knobs = this.generateKnobsPositionAndValues(knobsPosition);\n onBeforeChange(knobs);\n };\n\n /**\n * Function executed after a change.\n *\n * executes the callback provided by the user with the values and position of the knobs\n *\n * @param {Array} knobsPosition - An array containing the current positions of the knobs.\n * @memberof HvSlider\n */\n onAfterChangeHandler = (knobsPosition) => {\n const { onAfterChange } = this.props;\n const knobs = this.generateKnobsPositionAndValues(knobsPosition);\n onAfterChange(knobs);\n };\n\n /**\n * Function used to create a custom knob for the slider.\n *\n * TODO: This should be isolated because is creating a sub component,\n * but there were some problems regarding the underlying component losing\n * references of the handlers disabling the focus.\n *\n * @param {Object} props - An object containing the properties of the knobs.\n * @memberof HvSlider\n */\n createKnob = (props) => {\n const { minPointValue, markDigits, knobProperties, formatTooltip, classes } = this.props;\n const { stepValue } = this.state;\n const { value, dragging, index, style, ...restProps } = props;\n\n const knobValue = this.knobsPositionToScaledValue(value, minPointValue, stepValue).toFixed(\n markDigits\n );\n if (dragging) {\n style.backgroundColor = knobProperties[index].dragColor;\n } else {\n style.backgroundColor = knobProperties[index].color;\n }\n\n return (\n <Tooltip\n prefixCls=\"rc-slider-tooltip\"\n overlay={formatTooltip(knobValue)}\n visible={dragging}\n placement=\"top\"\n key={index}\n overlayClassName={classes.sliderTooltip}\n >\n <Handle value={value} style={style} {...restProps}>\n <KnobRing hoverColor={knobProperties[index].hoverColor} dragging={dragging} />\n </Handle>\n </Tooltip>\n );\n };\n\n render() {\n const { divisionQuantity, classes } = this.props;\n\n const {\n knobsPositions,\n defaultKnobsPositions,\n rangesCount,\n knobStyles,\n trackStyles,\n marks,\n styles,\n } = this.state;\n\n return (\n <Range\n handle={this.createKnob}\n className={classes.root}\n min={0}\n max={divisionQuantity}\n step={1}\n marks={marks}\n dotStyle={styles.dot}\n onChange={this.onChangeHandler}\n onBeforeChange={this.onBeforeChangeHandler}\n onAfterChange={this.onAfterChangeHandler}\n value={knobsPositions.length > 0 ? knobsPositions : undefined}\n allowCross={false}\n defaultValue={defaultKnobsPositions}\n count={rangesCount}\n railStyle={styles.rail}\n handleStyle={knobStyles.knobInner}\n trackStyle={trackStyles}\n />\n );\n }\n}\n\nHvSlider.propTypes = {\n /**\n * The values array to apply to the component\n */\n values: PropTypes.arrayOf(PropTypes.number),\n /**\n * The default values array to apply to the component\n */\n defaultValues: PropTypes.arrayOf(PropTypes.number).isRequired,\n /**\n * The object used to set the knob properties,\n * for every item in the array a new knob will be created.\n */\n knobProperties: PropTypes.arrayOf(\n PropTypes.shape({\n color: PropTypes.string,\n defaultValue: PropTypes.number,\n hidden: PropTypes.bool,\n fixed: PropTypes.bool,\n hoverColor: PropTypes.string,\n trackColor: PropTypes.string,\n dragColor: PropTypes.string,\n })\n ).isRequired,\n /**\n * The object used to set the mark properties individually.\n */\n markProperties: PropTypes.arrayOf(\n PropTypes.shape({\n position: PropTypes.number,\n label: PropTypes.string,\n })\n ),\n /**\n * the function executed before a change will ocurr in the slider.\n * it will receive an object like\n * {\n * knobsPosition: [],\n * knobsValues: []\n * }\n */\n onBeforeChange: PropTypes.func,\n /**\n * the function executed while a change is ocurring in the slider.\n * it will receive an object like\n * {\n * knobsPosition: [],\n * knobsValues: []\n * }\n */\n onChange: PropTypes.func,\n /**\n * the function executed after a change ocurred in the slider.\n * it will receive an object like\n * {\n * knobsPosition: [],\n * knobsValues: []\n * }\n */\n onAfterChange: PropTypes.func,\n /**\n * the separation in points between marks.\n * example: if 10 divisions and a markstep of 2 there will be 5 marks.\n */\n markStep: PropTypes.number,\n /**\n * how many subdivisions there are in the slider.\n */\n divisionQuantity: PropTypes.number,\n /**\n * the value of the first point in the slider from left to right.\n */\n minPointValue: PropTypes.number,\n /**\n * the value of the last point in the slider from left to right.\n */\n maxPointValue: PropTypes.number,\n /**\n * the nax number of decimals if no format function is applied\n */\n markDigits: PropTypes.number,\n /**\n * a formatting function used to add format to the marks in the track,\n * the function receives the mark text\n */\n formatMark: PropTypes.func,\n /**\n * a formatting function used to add format to the tooltip in the track,\n * the function receives the mark text\n */\n formatTooltip: PropTypes.func,\n /**\n * if `true` the knobs can't have the same value, if `false` knobs can have the same value.\n */\n noOverlap: PropTypes.bool,\n /**\n * the classes object to be applied into the root object.\n */\n classes: PropTypes.shape({\n /**\n * Style applied to the root of the component.\n */\n root: PropTypes.string,\n /**\n * Style applied to the dot.\n */\n dot: PropTypes.string,\n /**\n * Style applied to the rail.\n */\n rail: PropTypes.string,\n /**\n * Style applied to the inner of the knob.\n */\n knobInner: PropTypes.string,\n /**\n * Style applied to the outside of the knob.\n */\n knobOuter: PropTypes.string,\n /**\n * Style applied when the knob is hidden.\n */\n knobHidden: PropTypes.string,\n /**\n * Style applied last hidden knob.\n */\n knobHiddenLast: PropTypes.string,\n /**\n * Style applied to the track.\n */\n track: PropTypes.string,\n /**\n * Style applied to the mark.\n */\n mark: PropTypes.string,\n /**\n * Style applied to the tooltip.\n */\n sliderTooltip: PropTypes.string,\n }).isRequired,\n\n theme: PropTypes.any.isRequired,\n};\n\nHvSlider.defaultProps = {\n markStep: 1,\n markDigits: 0,\n noOverlap: true,\n values: [],\n formatMark: (mark) => mark,\n formatTooltip: (mark) => mark,\n markProperties: [],\n divisionQuantity: 100,\n minPointValue: 0,\n maxPointValue: 100,\n onBeforeChange: () => {},\n onChange: () => {},\n onAfterChange: () => {},\n};\n\nexport default withStyles(styleCreator, { name: \"HvSlider\", withTheme: true })(HvSlider);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAMA,+BAA+B,GAAG,SAAlCA,+BAA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AAcN;AA7IF,CAArB;AAgJAxF,QAAQ,CAAC+F,YAAT,GAAwB;EACtB7B,QAAQ,EAAE,CADY;EAEtB5D,UAAU,EAAE,CAFU;EAGtBgC,SAAS,EAAE,IAHW;EAItB/C,MAAM,EAAE,EAJc;EAKtBgB,UAAU,EAAE,oBAACQ,IAAD;IAAA,OAAUA,IAAV;EAAA,CALU;EAMtB2C,aAAa,EAAE,uBAAC3C,IAAD;IAAA,OAAUA,IAAV;EAAA,CANO;EAOtBX,cAAc,EAAE,EAPM;EAQtBN,gBAAgB,EAAE,GARI;EAStBZ,aAAa,EAAE,CATO;EAUtBW,aAAa,EAAE,GAVO;EAWtB2D,cAAc,EAAE,0BAAM,CAAE,CAXF;EAYtBJ,QAAQ,EAAE,oBAAM,CAAE,CAZI;EAatBK,aAAa,EAAE,yBAAM,CAAE;AAbD,CAAxB;;eAgBe,sBAAWuC,gBAAX,EAAyB;EAAEC,IAAI,EAAE,UAAR;EAAoBC,SAAS,EAAE;AAA/B,CAAzB,EAAgElG,QAAhE,C"}
1
+ {"version":3,"file":"Slider.js","names":["scaledValueToKnobsPositionValue","scaledValue","minPointValue","inverseStepValue","Math","floor","transformKnobsPosition","values","knobsPositions","forEach","value","index","calculateStepValue","maxPointValue","divisionQuantity","abs","HvSlider","props","sliderValue","stepValue","markProperties","markstep","markDigits","formatMark","styles","marks","length","markProperty","position","label","style","mark","roundedMarkStep","labelValue","knobsPositionToScaledValue","toFixed","knobProperties","trackStyles","knobProperty","track","color","backgroundColor","trackColor","knobInner","knobOuterStyle","lastItem","knobOuter","hidden","knobHidden","knobHiddenLast","knobsCurrentPosition","newKnobsPosition","slice","knobsValues","noOverlap","state","duplicatedValue","findDuplicated","filter","item","indexOf","array","newArray","newPosition","previousValue","knobsPosition","knobs","generateKnobsPositionAndValues","onChange","defaultValues","fixed","setState","onBeforeChange","onAfterChange","formatTooltip","classes","dragging","restProps","knobValue","dragColor","sliderTooltip","hoverColor","markStep","theme","styleCreator","createTrackStyles","knobStyles","createKnobStyles","rangesCount","createMark","defaultKnobsPositions","createKnob","root","dot","onChangeHandler","onBeforeChangeHandler","onAfterChangeHandler","undefined","rail","React","Component","propTypes","PropTypes","arrayOf","number","isRequired","shape","string","defaultValue","bool","func","any","defaultProps","withStyles","name","withTheme"],"sources":["../../src/Slider/Slider.js"],"sourcesContent":["/**\n * Note: https://github.com/react-component/slider/issues/504\n * Version must remain in \"8.6.3\" until this bug is fixed\n */\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Range, Handle } from \"rc-slider\";\nimport Tooltip from \"rc-tooltip\";\nimport { withStyles } from \"@material-ui/core\";\nimport KnobRing from \"./KnobRing\";\nimport \"rc-slider/assets/index.css\";\nimport styleCreator from \"./styles\";\n\n/**\n * Transform the scaled values into knobs positions.\n *\n * @param {*} scaledValue - the value of the slider to be scaled\n * @param {*} minPointValue - The value of the first point in\n * the slider from left to right.\n * @param {*} inverseStepValue - The inverse of calculated separation between\n * the value of the points that compose the slider.\n */\nconst scaledValueToKnobsPositionValue = (scaledValue, minPointValue, inverseStepValue) =>\n Math.floor((scaledValue - minPointValue) * inverseStepValue);\n\n/**\n * Transform the received knobs values into knob positions\n *\n * @param {Object} values - The values of the slider.\n * @param {Number} inverseStepValue - The inverse of calculated separation between\n * the value of the points that compose the slider.\n * @param {Integer} minPointValue - The value of the first point in the slider from\n * left to right.\n * @returns {Array} - The position of the knobs.\n */\nconst transformKnobsPosition = (values, inverseStepValue, minPointValue) => {\n const knobsPositions = [];\n values.forEach((value, index) => {\n knobsPositions[index] = scaledValueToKnobsPositionValue(value, minPointValue, inverseStepValue);\n });\n return knobsPositions;\n};\n\n/**\n * Calculates the separation between each value in the slider.\n *\n * @param {*} maxPointValue - The value of the last point in the slider from left to right.\n * @param {*} minPointValue - The value of the first point in the slider from left to right.\n * @param {*} divisionQuantity - How many subdivisions there are in the slider.\n */\nconst calculateStepValue = (maxPointValue, minPointValue, divisionQuantity) =>\n Math.abs(maxPointValue - minPointValue) / divisionQuantity;\n\n/**\n * Sliders reflect a range of values along a bar, from which users may select a single value. They are ideal for adjusting settings such as volume, brightness, or applying image filters. Still in development\n */\nclass HvSlider extends React.Component {\n constructor(props) {\n super(props);\n\n const {\n markProperties,\n markStep,\n markDigits,\n knobProperties,\n values,\n defaultValues,\n theme,\n maxPointValue,\n minPointValue,\n divisionQuantity,\n formatMark,\n } = props;\n\n const styles = styleCreator(theme);\n const stepValue = calculateStepValue(maxPointValue, minPointValue, divisionQuantity);\n const inverseStepValue = 1 / stepValue;\n\n this.state = {\n knobsPositions: transformKnobsPosition(\n values.length > 0 ? values : defaultValues,\n inverseStepValue,\n minPointValue\n ),\n trackStyles: this.createTrackStyles(knobProperties, styles),\n knobStyles: this.createKnobStyles(knobProperties, styles),\n rangesCount: knobProperties.length - 1,\n marks: this.createMark(\n markProperties,\n markStep,\n divisionQuantity,\n minPointValue,\n stepValue,\n markDigits,\n formatMark,\n styles\n ),\n defaultKnobsPositions: transformKnobsPosition(defaultValues, inverseStepValue, minPointValue),\n styles,\n stepValue,\n inverseStepValue,\n };\n }\n\n static getDerivedStateFromProps(props, state) {\n const stepValue = calculateStepValue(\n props.maxPointValue,\n props.minPointValue,\n props.divisionQuantity\n );\n\n if (props.values.length > 0) {\n return {\n ...state,\n knobsPositions: transformKnobsPosition(\n props.values.length > 0 ? props.values : props.defaultValues,\n 1 / stepValue,\n props.minPointValue\n ),\n };\n }\n return null;\n }\n\n /**\n * Transform the scaled values into knobs positions.\n *\n * @param {*} sliderValue - the value of the slider to be scaled\n * @param {*} minPointValue - The value of the first point in the slider from left to right.\n * @param {*} stepValue - The calculated separation between the values of the slider.\n */\n knobsPositionToScaledValue = (sliderValue, minPointValue, stepValue) =>\n minPointValue + stepValue * sliderValue;\n\n /**\n * Generates the inline styles used for the track of each knob, applying colors if necessary.\n *\n * @param {Object} markProperties - The object provided by the user with\n * the desired configuration for the marks.\n * @param {Integer} markstep - The separation between marks.\n * @param {Integer} divisionQuantity - How many subdivisions there are in the slider.\n * @param {Integer} minPointValue - The value of the first point in the slider from\n * left to right.\n * @param {Integer} stepValue - The calculated separation between the values of the slider.\n * @param {Integer} markDigits - How many decimals the mark will show.\n * @param {Function} formatMark - A function provided by the user that is going to\n * be executed to format the mark text.\n * @param {Object} styles - the default styles for the marks.\n * @returns {Object} - An object with the for the marks.\n * @memberof HvSlider\n */\n createMark = (\n markProperties,\n markstep,\n divisionQuantity,\n minPointValue,\n stepValue,\n markDigits,\n formatMark,\n styles\n ) => {\n const marks = {};\n if (markProperties.length > 0) {\n markProperties.forEach((markProperty) => {\n marks[markProperty.position] = {\n label: `${markProperty.label}`,\n style: {\n ...styles.mark,\n },\n };\n });\n } else {\n const roundedMarkStep = Math.floor(markstep);\n for (let index = 0; index <= divisionQuantity; index += roundedMarkStep) {\n let labelValue = this.knobsPositionToScaledValue(index, minPointValue, stepValue).toFixed(\n markDigits\n );\n labelValue = formatMark(labelValue);\n marks[index] = {\n label: `${labelValue}`,\n style: {\n ...styles.mark,\n },\n };\n }\n }\n return marks;\n };\n\n /**\n * Generates the inline styles used for the track of each knob, applying colors if necessary.\n *\n * @param {Object} knobProperties - The object provided by the user with\n * the desired configuration for the knobs.\n * @param {Object} styles - the default styles for the tracks.\n * @returns {Object} - An object with the style for each track.\n * @memberof HvSlider\n */\n createTrackStyles = (knobProperties, styles) => {\n const trackStyles = [];\n if (knobProperties.length > 1) {\n knobProperties.forEach((knobProperty, index) => {\n trackStyles[index] = { ...styles.track };\n if (knobProperty.color) {\n trackStyles[index].backgroundColor = knobProperty.trackColor;\n }\n });\n }\n return trackStyles;\n };\n\n /**\n * Generates the inline styles used for each knob, applying colors if specified.\n *\n * @param {Object} knobProperties - The object provided by the user with\n * the desired configuration for the knobs.\n * @param {Object} styles - the default styles for the knobs.\n * @returns {Object} - An object with both the inner and outer styles for the knob.\n * @memberof HvSlider\n */\n createKnobStyles = (knobProperties, styles) => {\n const knobInner = [];\n const knobOuterStyle = [];\n\n const lastItem = knobProperties.length - 1;\n if (knobProperties.length > 1) {\n knobProperties.forEach((knobProperty, index) => {\n knobInner[index] = { ...styles.knobInner };\n knobOuterStyle[index] = { ...styles.knobOuter };\n\n if (knobProperty.color) {\n knobInner[index].backgroundColor = knobProperty.color;\n knobOuterStyle[index].backgroundColor = \"transparent\";\n }\n\n if (knobProperty.hidden) {\n knobInner[index] = styles.knobHidden;\n if (index === lastItem) {\n knobInner[index] = { ...styles.knobHiddenLast };\n knobInner[index].backgroundColor = knobProperty.color;\n knobOuterStyle[index] = { ...styles.knobHidden };\n knobOuterStyle[index].backgroundColor = knobProperty.color;\n }\n }\n });\n }\n\n return {\n knobInner,\n knobOuterStyle,\n };\n };\n\n /**\n * Generates an object which posses the current value and position of the knobs.\n *\n * @param {Array} knobsCurrentPosition - An array containing the current positions of the knobs.\n * @returns {Object} - An object with the positions and values of the knobs.\n * @memberof HvSlider\n */\n generateKnobsPositionAndValues = (knobsCurrentPosition) => {\n const newKnobsPosition = knobsCurrentPosition.slice();\n const knobsValues = [];\n const { minPointValue, noOverlap } = this.props;\n const { stepValue, knobsPositions } = this.state;\n\n let duplicatedValue = null;\n\n const findDuplicated = newKnobsPosition.filter(\n (item, index) => newKnobsPosition.indexOf(item) !== index\n );\n\n if (noOverlap && findDuplicated.length > 0) {\n [duplicatedValue] = findDuplicated;\n }\n newKnobsPosition.forEach((position, index, array) => {\n const newArray = array;\n let newPosition = position;\n\n if (noOverlap && newPosition === duplicatedValue) {\n const previousValue = knobsPositions[index];\n if (previousValue !== newPosition) {\n newPosition += newPosition > previousValue ? -1 : 1;\n newArray[index] = newPosition;\n }\n }\n\n knobsValues[index] = this.knobsPositionToScaledValue(newPosition, minPointValue, stepValue);\n }, this);\n\n return {\n knobsPosition: newKnobsPosition,\n knobsValues,\n };\n };\n\n /**\n * Function executed while the knobs changes.\n *\n * executes the callback provided by the user with the values and position of the knobs,\n * also lock the value of the knob in case one is fixed.\n *\n * @param {Array} knobsPosition - An array containing the current positions of the knobs.\n * @memberof HvSlider\n */\n onChangeHandler = (knobsPosition) => {\n const knobs = this.generateKnobsPositionAndValues(knobsPosition);\n const { knobProperties, onChange, minPointValue, defaultValues } = this.props;\n const { inverseStepValue } = this.state;\n knobProperties.forEach((knobProperty, index) => {\n if (knobProperty.fixed) {\n knobs.knobsPosition[index] = scaledValueToKnobsPositionValue(\n defaultValues[index],\n minPointValue,\n inverseStepValue\n );\n }\n });\n\n onChange(knobs);\n\n this.setState({\n knobsPositions: knobs.knobsPosition,\n });\n };\n\n /**\n * Function executed before a change.\n *\n * executes the callback provided by the user with the values and position of the knobs\n *\n * @param {Array} knobsPosition - An array containing the current positions of the knobs.\n * @memberof HvSlider\n */\n onBeforeChangeHandler = (knobsPosition) => {\n const { onBeforeChange } = this.props;\n const knobs = this.generateKnobsPositionAndValues(knobsPosition);\n onBeforeChange(knobs);\n };\n\n /**\n * Function executed after a change.\n *\n * executes the callback provided by the user with the values and position of the knobs\n *\n * @param {Array} knobsPosition - An array containing the current positions of the knobs.\n * @memberof HvSlider\n */\n onAfterChangeHandler = (knobsPosition) => {\n const { onAfterChange } = this.props;\n const knobs = this.generateKnobsPositionAndValues(knobsPosition);\n onAfterChange(knobs);\n };\n\n /**\n * Function used to create a custom knob for the slider.\n *\n * TODO: This should be isolated because is creating a sub component,\n * but there were some problems regarding the underlying component losing\n * references of the handlers disabling the focus.\n *\n * @param {Object} props - An object containing the properties of the knobs.\n * @memberof HvSlider\n */\n createKnob = (props) => {\n const { minPointValue, markDigits, knobProperties, formatTooltip, classes } = this.props;\n const { stepValue } = this.state;\n const { value, dragging, index, style, ...restProps } = props;\n\n const knobValue = this.knobsPositionToScaledValue(value, minPointValue, stepValue).toFixed(\n markDigits\n );\n if (dragging) {\n style.backgroundColor = knobProperties[index].dragColor;\n } else {\n style.backgroundColor = knobProperties[index].color;\n }\n\n return (\n <Tooltip\n prefixCls=\"rc-slider-tooltip\"\n overlay={formatTooltip(knobValue)}\n visible={dragging}\n placement=\"top\"\n key={index}\n overlayClassName={classes.sliderTooltip}\n >\n <Handle value={value} style={style} {...restProps}>\n <KnobRing hoverColor={knobProperties[index].hoverColor} dragging={dragging} />\n </Handle>\n </Tooltip>\n );\n };\n\n render() {\n const { divisionQuantity, classes } = this.props;\n\n const {\n knobsPositions,\n defaultKnobsPositions,\n rangesCount,\n knobStyles,\n trackStyles,\n marks,\n styles,\n } = this.state;\n\n return (\n <Range\n handle={this.createKnob}\n className={classes.root}\n min={0}\n max={divisionQuantity}\n step={1}\n marks={marks}\n dotStyle={styles.dot}\n onChange={this.onChangeHandler}\n onBeforeChange={this.onBeforeChangeHandler}\n onAfterChange={this.onAfterChangeHandler}\n value={knobsPositions.length > 0 ? knobsPositions : undefined}\n allowCross={false}\n defaultValue={defaultKnobsPositions}\n count={rangesCount}\n railStyle={styles.rail}\n handleStyle={knobStyles.knobInner}\n trackStyle={trackStyles}\n />\n );\n }\n}\n\nHvSlider.propTypes = {\n /**\n * The values array to apply to the component\n */\n values: PropTypes.arrayOf(PropTypes.number),\n /**\n * The default values array to apply to the component\n */\n defaultValues: PropTypes.arrayOf(PropTypes.number).isRequired,\n /**\n * The object used to set the knob properties,\n * for every item in the array a new knob will be created.\n */\n knobProperties: PropTypes.arrayOf(\n PropTypes.shape({\n color: PropTypes.string,\n defaultValue: PropTypes.number,\n hidden: PropTypes.bool,\n fixed: PropTypes.bool,\n hoverColor: PropTypes.string,\n trackColor: PropTypes.string,\n dragColor: PropTypes.string,\n })\n ).isRequired,\n /**\n * The object used to set the mark properties individually.\n */\n markProperties: PropTypes.arrayOf(\n PropTypes.shape({\n position: PropTypes.number,\n label: PropTypes.string,\n })\n ),\n /**\n * the function executed before a change will ocurr in the slider.\n * it will receive an object like\n * {\n * knobsPosition: [],\n * knobsValues: []\n * }\n */\n onBeforeChange: PropTypes.func,\n /**\n * the function executed while a change is ocurring in the slider.\n * it will receive an object like\n * {\n * knobsPosition: [],\n * knobsValues: []\n * }\n */\n onChange: PropTypes.func,\n /**\n * the function executed after a change ocurred in the slider.\n * it will receive an object like\n * {\n * knobsPosition: [],\n * knobsValues: []\n * }\n */\n onAfterChange: PropTypes.func,\n /**\n * the separation in points between marks.\n * example: if 10 divisions and a markstep of 2 there will be 5 marks.\n */\n markStep: PropTypes.number,\n /**\n * how many subdivisions there are in the slider.\n */\n divisionQuantity: PropTypes.number,\n /**\n * the value of the first point in the slider from left to right.\n */\n minPointValue: PropTypes.number,\n /**\n * the value of the last point in the slider from left to right.\n */\n maxPointValue: PropTypes.number,\n /**\n * the nax number of decimals if no format function is applied\n */\n markDigits: PropTypes.number,\n /**\n * a formatting function used to add format to the marks in the track,\n * the function receives the mark text\n */\n formatMark: PropTypes.func,\n /**\n * a formatting function used to add format to the tooltip in the track,\n * the function receives the mark text\n */\n formatTooltip: PropTypes.func,\n /**\n * if `true` the knobs can't have the same value, if `false` knobs can have the same value.\n */\n noOverlap: PropTypes.bool,\n /**\n * the classes object to be applied into the root object.\n */\n classes: PropTypes.shape({\n /**\n * Style applied to the root of the component.\n */\n root: PropTypes.string,\n /**\n * Style applied to the dot.\n */\n dot: PropTypes.string,\n /**\n * Style applied to the rail.\n */\n rail: PropTypes.string,\n /**\n * Style applied to the inner of the knob.\n */\n knobInner: PropTypes.string,\n /**\n * Style applied to the outside of the knob.\n */\n knobOuter: PropTypes.string,\n /**\n * Style applied when the knob is hidden.\n */\n knobHidden: PropTypes.string,\n /**\n * Style applied last hidden knob.\n */\n knobHiddenLast: PropTypes.string,\n /**\n * Style applied to the track.\n */\n track: PropTypes.string,\n /**\n * Style applied to the mark.\n */\n mark: PropTypes.string,\n /**\n * Style applied to the tooltip.\n */\n sliderTooltip: PropTypes.string,\n }).isRequired,\n\n theme: PropTypes.any.isRequired,\n};\n\nHvSlider.defaultProps = {\n markStep: 1,\n markDigits: 0,\n noOverlap: true,\n values: [],\n formatMark: (mark) => mark,\n formatTooltip: (mark) => mark,\n markProperties: [],\n divisionQuantity: 100,\n minPointValue: 0,\n maxPointValue: 100,\n onBeforeChange: () => {},\n onChange: () => {},\n onAfterChange: () => {},\n};\n\nexport default withStyles(styleCreator, { name: \"HvSlider\", withTheme: true })(HvSlider);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAMA,+BAA+B,GAAG,SAAlCA,+BAAkC,CAACC,WAAD,EAAcC,aAAd,EAA6BC,gBAA7B;EAAA,OACtCC,IAAI,CAACC,KAAL,CAAW,CAACJ,WAAW,GAAGC,aAAf,IAAgCC,gBAA3C,CADsC;AAAA,CAAxC;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA,IAAMG,sBAAsB,GAAG,SAAzBA,sBAAyB,CAACC,MAAD,EAASJ,gBAAT,EAA2BD,aAA3B,EAA6C;EAC1E,IAAMM,cAAc,GAAG,EAAvB;EACAD,MAAM,CAACE,OAAP,CAAe,UAACC,KAAD,EAAQC,KAAR,EAAkB;IAC/BH,cAAc,CAACG,KAAD,CAAd,GAAwBX,+BAA+B,CAACU,KAAD,EAAQR,aAAR,EAAuBC,gBAAvB,CAAvD;EACD,CAFD;EAGA,OAAOK,cAAP;AACD,CAND;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA,IAAMI,kBAAkB,GAAG,SAArBA,kBAAqB,CAACC,aAAD,EAAgBX,aAAhB,EAA+BY,gBAA/B;EAAA,OACzBV,IAAI,CAACW,GAAL,CAASF,aAAa,GAAGX,aAAzB,IAA0CY,gBADjB;AAAA,CAA3B;AAGA;AACA;AACA;;;IACME,Q;;;;;EACJ,kBAAYC,MAAZ,EAAmB;IAAA;;IAAA;IACjB,0BAAMA,MAAN;IADiB,yGA0EU,UAACC,WAAD,EAAchB,aAAd,EAA6BiB,SAA7B;MAAA,OAC3BjB,aAAa,GAAGiB,SAAS,GAAGD,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1 @@
1
- {"version":3,"file":"Table.js","names":["defaultComponent","computeTablePartComponents","rootComponent","Table","THead","TBody","Tr","Th","Td","HvTable","props","ref","classes","className","component","stickyHeader","stickyColumns","variant","others","containerRef","components","tableContext","root","listRow","propTypes","PropTypes","elementType","children","node","isRequired","string","bool","oneOf","shape","styles","name"],"sources":["../../src/Table/Table.js"],"sourcesContent":["import React, { useRef, forwardRef, useMemo } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\n\nimport { withStyles } from \"@material-ui/core\";\n\nimport TableContext from \"./TableContext\";\nimport styles from \"./styles\";\n\nconst defaultComponent = \"table\";\n\nconst computeTablePartComponents = (rootComponent) => {\n if (rootComponent === \"table\") {\n return {\n Table: \"table\",\n THead: \"thead\",\n TBody: \"tbody\",\n Tr: \"tr\",\n Th: \"th\",\n Td: \"td\",\n };\n }\n\n return {\n Table: rootComponent,\n THead: rootComponent,\n TBody: rootComponent,\n Tr: rootComponent,\n Th: rootComponent,\n Td: rootComponent,\n };\n};\n\n/**\n * A Table gathers relational data, it displays values arranged to allow quick numerical analysis\n * like comparison and sorting.\n *\n * **HvTable** component offers a set of HTML-equivalent elements, **styled to Design System's specification**,\n * for building tables.\n * You can rely on these **elements** when your table doesn’t have many interactions or you need it to be very lightweight.\n *\n * For better data handling and **advanced features** we recommend the use of the utility hooks collection .\n * See the <a href=\"?id=lab-table-hooks--main&viewMode=docs\" target=\"_self\">Table Hooks documentation</a> for more details.\n *\n * **PLEASE NOTE**: This Table implementation is still a WIP. There might be breaking changes.\n */\nconst HvTable = forwardRef(function HvTable(props, ref) {\n const {\n classes,\n className,\n component = defaultComponent,\n stickyHeader = false,\n stickyColumns = false,\n variant = \"default\",\n ...others\n } = props;\n\n const containerRef = useRef(ref);\n\n const components = useMemo(() => computeTablePartComponents(component), [component]);\n\n const tableContext = useMemo(\n () => ({ components, variant, containerRef }),\n [components, variant, containerRef]\n );\n\n return (\n <TableContext.Provider value={tableContext}>\n <components.Table\n ref={ref}\n role={component === defaultComponent ? null : \"table\"}\n className={clsx(\n classes.root,\n {\n [classes.stickyHeader]: stickyHeader,\n [classes.stickyColumns]: stickyColumns,\n [classes.listRow]: variant === \"listrow\",\n },\n className\n )}\n {...others}\n />\n </TableContext.Provider>\n );\n});\n\nHvTable.propTypes = {\n /**\n * The component used for the root node. Either a string to use a HTML element or a component.\n * Defaults to `table`.\n *\n * When using non-table elements, layout is up to the developer using the component.\n */\n component: PropTypes.elementType,\n /**\n * Content to be rendered\n */\n children: PropTypes.node.isRequired,\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * Whether the `HvTable` has a sticky header row.\n */\n stickyHeader: PropTypes.bool,\n /**\n * Whether the `HvTable` has sticky columns.\n */\n stickyColumns: PropTypes.bool,\n /**\n * Whether the `HvTable` has the list row styles or the default.\n */\n variant: PropTypes.oneOf([\"listrow\", \"default\"]),\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the component root class when it has a sticky header.\n */\n stickyHeader: PropTypes.string,\n /**\n * Styles applied to the component root class when it has sticky columns.\n */\n stickyColumns: PropTypes.string,\n /**\n * Styles applied to the component root class when it has sticky columns.\n */\n listRow: PropTypes.string,\n }).isRequired,\n};\n\nexport default withStyles(styles, { name: \"HvTable\" })(HvTable);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAEA;;AACA;;;;;;;;AAEA,IAAMA,gBAAgB,GAAG,OAAzB;;AAEA,IAAMC,0BAA0B,GAAG,SAA7BA,0BAA6B,CAACC,aAAD,EAAmB;EACpD,IAAIA,aAAa,KAAK,OAAtB,EAA+B;IAC7B,OAAO;MACLC,KAAK,EAAE,OADF;MAELC,KAAK,EAAE,OAFF;MAGLC,KAAK,EAAE,OAHF;MAILC,EAAE,EAAE,IAJC;MAKLC,EAAE,EAAE,IALC;MAMLC,EAAE,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;IAEE,IAAI,EAAEG,SAAS,KAAKd,gBAAd,GAAiC,IAAjC,GAAwC,OAFhD;IAGE,SAAS,EAAE,mBACTY,OAAO,CAACU,IADC,EAOTT,SAPS,EAGiBE,YAHjB,IAGNH,OAAO,CAACG,YAHF,EAIkBC,aAJlB,IAINJ,OAAO,CAACI,aAJF,EAKYC,OAAO,cALnB,IAKNL,OAAO,CAACW,OALF;EAHb,GAYML,MAZN,EADF,CADF;AAkBD,CAtCe,CAAhB;AAwCA,wCAAAT,OAAO,CAACe,SAAR,GAAoB;EAClB;AACF;AACA;AACA;AACA;AACA;EACEV,SAAS,EAAEW,mBAAUC,WAPH;;EAQlB;AACF;AACA;EACEC,QAAQ,EAAEF,mBAAUG,IAAV,CAAeC,UAXP;;EAYlB;AACF;AACA;EACEhB,SAAS,EAAEY,mBAAUK,MAfH;;EAgBlB;AACF;AACA;EACEf,YAAY,EAAEU,mBAAUM,IAnBN;;EAoBlB;AACF;AACA;EACEf,aAAa,EAAES,mBAAUM,IAvBP;;EAwBlB;AACF;AACA;EACEd,OAAO,EAAEQ,mBAAUO,KAAV,CAAgB,CAAC,SAAD,EAAY,SAAZ,CAAhB,CA3BS;;EA4BlB;AACF;AACA;EACEpB,OAAO,EAAEa,mBAAUQ,KAAV,CAAgB;IACvB;AACJ;AACA;IACIX,IAAI,EAAEG,mBAAUK,MAJO;;IAKvB;AACJ;AACA;IACIf,YAAY,EAAEU,mBAAUK,MARD;;IASvB;AACJ;AACA;IACId,aAAa,EAAES,mBAAUK,MAZF;;IAavB;AACJ;AACA;IACIP,OAAO,EAAEE,mBAAUK;EAhBI,CAAhB,EAiBND;AAhDe,CAApB;;eAmDe,sBAAWK,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAAwC1B,OAAxC,C"}
1
+ {"version":3,"file":"Table.js","names":["defaultComponent","computeTablePartComponents","rootComponent","Table","THead","TBody","Tr","Th","Td","HvTable","forwardRef","props","ref","classes","className","component","stickyHeader","stickyColumns","variant","others","containerRef","useRef","components","useMemo","tableContext","clsx","root","listRow","propTypes","PropTypes","elementType","children","node","isRequired","string","bool","oneOf","shape","withStyles","styles","name"],"sources":["../../src/Table/Table.js"],"sourcesContent":["import React, { useRef, forwardRef, useMemo } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\n\nimport { withStyles } from \"@material-ui/core\";\n\nimport TableContext from \"./TableContext\";\nimport styles from \"./styles\";\n\nconst defaultComponent = \"table\";\n\nconst computeTablePartComponents = (rootComponent) => {\n if (rootComponent === \"table\") {\n return {\n Table: \"table\",\n THead: \"thead\",\n TBody: \"tbody\",\n Tr: \"tr\",\n Th: \"th\",\n Td: \"td\",\n };\n }\n\n return {\n Table: rootComponent,\n THead: rootComponent,\n TBody: rootComponent,\n Tr: rootComponent,\n Th: rootComponent,\n Td: rootComponent,\n };\n};\n\n/**\n * A Table gathers relational data, it displays values arranged to allow quick numerical analysis\n * like comparison and sorting.\n *\n * **HvTable** component offers a set of HTML-equivalent elements, **styled to Design System's specification**,\n * for building tables.\n * You can rely on these **elements** when your table doesn’t have many interactions or you need it to be very lightweight.\n *\n * For better data handling and **advanced features** we recommend the use of the utility hooks collection .\n * See the <a href=\"?id=lab-table-hooks--main&viewMode=docs\" target=\"_self\">Table Hooks documentation</a> for more details.\n *\n * **PLEASE NOTE**: This Table implementation is still a WIP. There might be breaking changes.\n */\nconst HvTable = forwardRef(function HvTable(props, ref) {\n const {\n classes,\n className,\n component = defaultComponent,\n stickyHeader = false,\n stickyColumns = false,\n variant = \"default\",\n ...others\n } = props;\n\n const containerRef = useRef(ref);\n\n const components = useMemo(() => computeTablePartComponents(component), [component]);\n\n const tableContext = useMemo(\n () => ({ components, variant, containerRef }),\n [components, variant, containerRef]\n );\n\n return (\n <TableContext.Provider value={tableContext}>\n <components.Table\n ref={ref}\n role={component === defaultComponent ? null : \"table\"}\n className={clsx(\n classes.root,\n {\n [classes.stickyHeader]: stickyHeader,\n [classes.stickyColumns]: stickyColumns,\n [classes.listRow]: variant === \"listrow\",\n },\n className\n )}\n {...others}\n />\n </TableContext.Provider>\n );\n});\n\nHvTable.propTypes = {\n /**\n * The component used for the root node. Either a string to use a HTML element or a component.\n * Defaults to `table`.\n *\n * When using non-table elements, layout is up to the developer using the component.\n */\n component: PropTypes.elementType,\n /**\n * Content to be rendered\n */\n children: PropTypes.node.isRequired,\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * Whether the `HvTable` has a sticky header row.\n */\n stickyHeader: PropTypes.bool,\n /**\n * Whether the `HvTable` has sticky columns.\n */\n stickyColumns: PropTypes.bool,\n /**\n * Whether the `HvTable` has the list row styles or the default.\n */\n variant: PropTypes.oneOf([\"listrow\", \"default\"]),\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the component root class when it has a sticky header.\n */\n stickyHeader: PropTypes.string,\n /**\n * Styles applied to the component root class when it has sticky columns.\n */\n stickyColumns: PropTypes.string,\n /**\n * Styles applied to the component root class when it has sticky columns.\n */\n listRow: PropTypes.string,\n }).isRequired,\n};\n\nexport default withStyles(styles, { name: \"HvTable\" })(HvTable);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAEA;;AACA;;;;;;;;AAEA,IAAMA,gBAAgB,GAAG,OAAzB;;AAEA,IAAMC,0BAA0B,GAAG,SAA7BA,0BAA6B,CAACC,aAAD,EAAmB;EACpD,IAAIA,aAAa,KAAK,OAAtB,EAA+B;IAC7B,OAAO;MACLC,KAAK,EAAE,OADF;MAELC,KAAK,EAAE,OAFF;MAGLC,KAAK,EAAE,OAHF;MAILC,EAAE,EAAE,IAJC;MAKLC,EAAE,EAAE,IALC;MAMLC,EAAE,EAAE;IANC,CAAP;EAQD;;EAED,OAAO;IACLL,KAAK,EAAED,aADF;IAELE,KAAK,EAAEF,aAFF;IAGLG,KAAK,E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iC,IAAjC,GAAwC,OAFhD;IAGE,SAAS,EAAE,IAAAyB,aAAA,EACTZ,OAAO,CAACa,IADC,EAOTZ,SAPS,EAGiBE,YAHjB,IAGNH,OAAO,CAACG,YAHF,EAIkBC,aAJlB,IAINJ,OAAO,CAACI,aAJF,EAKYC,OAAO,cALnB,IAKNL,OAAO,CAACc,OALF;EAHb,GAYMR,MAZN,EADF,CADF;AAkBD,CAtCe,CAAhB;AAwCA,wCAAAV,OAAO,CAACmB,SAAR,GAAoB;EAClB;AACF;AACA;AACA;AACA;AACA;EACEb,SAAS,EAAEc,kBAAA,CAAUC,WAPH;;EAQlB;AACF;AACA;EACEC,QAAQ,EAAEF,kBAAA,CAAUG,IAAV,CAAeC,UAXP;;EAYlB;AACF;AACA;EACEnB,SAAS,EAAEe,kBAAA,CAAUK,MAfH;;EAgBlB;AACF;AACA;EACElB,YAAY,EAAEa,kBAAA,CAAUM,IAnBN;;EAoBlB;AACF;AACA;EACElB,aAAa,EAAEY,kBAAA,CAAUM,IAvBP;;EAwBlB;AACF;AACA;EACEjB,OAAO,EAAEW,kBAAA,CAAUO,KAAV,CAAgB,CAAC,SAAD,EAAY,SAAZ,CAAhB,CA3BS;;EA4BlB;AACF;AACA;EACEvB,OAAO,EAAEgB,kBAAA,CAAUQ,KAAV,CAAgB;IACvB;AACJ;AACA;IACIX,IAAI,EAAEG,kBAAA,CAAUK,MAJO;;IAKvB;AACJ;AACA;IACIlB,YAAY,EAAEa,kBAAA,CAAUK,MARD;;IASvB;AACJ;AACA;IACIjB,aAAa,EAAEY,kBAAA,CAAUK,MAZF;;IAavB;AACJ;AACA;IACIP,OAAO,EAAEE,kBAAA,CAAUK;EAhBI,CAAhB,EAiBND;AAhDe,CAApB;;eAmDe,IAAAK,gBAAA,EAAWC,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAAwC/B,OAAxC,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"TableBody.js","names":["tableSectionContext","type","filterClassName","defaultComponent","HvTableBody","props","externalRef","classes","className","component","children","withNavigation","others","tableContext","TableContext","bodyRef","handleRef","Component","components","TBody","root","map","element","key","selected","propTypes","PropTypes","string","node","elementType","bool","shape","isRequired","styles","name"],"sources":["../../../src/Table/TableBody/TableBody.js"],"sourcesContent":["import React, { forwardRef, useContext, useRef } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\n\nimport { withStyles } from \"@material-ui/core\";\nimport { HvFocus, useForkRef } from \"@hitachivantara/uikit-react-core\";\n\nimport TableContext from \"../TableContext\";\nimport TableSectionContext from \"../TableSectionContext\";\nimport styles from \"./styles\";\n\nconst tableSectionContext = {\n type: \"body\",\n filterClassName: \"grid\",\n};\n\nconst defaultComponent = \"tbody\";\n\n/**\n * HvTableBody acts as a `tbody` element.\n * `HvTableCell` and `HvTableRow` elements in it inherit body-specific styles\n */\nconst HvTableBody = forwardRef(function HvTableBody(props, externalRef) {\n const { classes, className, component, children, withNavigation = false, ...others } = props;\n\n const tableContext = useContext(TableContext);\n\n const bodyRef = useRef(null);\n\n const handleRef = useForkRef(externalRef, bodyRef);\n\n const Component = component || tableContext?.components?.TBody || defaultComponent;\n\n return (\n <TableSectionContext.Provider value={tableSectionContext}>\n <Component\n className={clsx(classes.root, className)}\n ref={handleRef}\n role={Component === defaultComponent ? null : \"rowgroup\"}\n {...others}\n >\n {withNavigation\n ? children.map((element) => {\n return (\n <HvFocus\n rootRef={bodyRef}\n key={`row-${element.key}`}\n strategy=\"grid\"\n useArrows=\"true\"\n filterClass={tableSectionContext.filterClassName}\n navigationJump={1}\n focusDisabled={false}\n selected={element.props.selected}\n >\n {element}\n </HvFocus>\n );\n })\n : children}\n </Component>\n </TableSectionContext.Provider>\n );\n});\n\nHvTableBody.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * Content to be rendered\n */\n children: PropTypes.node,\n /**\n * The component used for the root node. Either a string to use a HTML element or a component.\n * Defaults to tbody.\n */\n component: PropTypes.elementType,\n /**\n * Sets whether or not there should be arrow navigation between the table rows\n */\n withNavigation: PropTypes.bool,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n }).isRequired,\n};\n\nexport default withStyles(styles, { name: \"HvTableBody\" })(HvTableBody);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;AAEA;;AACA;;AACA;;;;;;;;AAEA,IAAMA,mBAAmB,GAAG;EAC1BC,IAAI,EAAE,MADoB;EAE1BC,eAAe,EAAE;AAFS,CAA5B;AAKA,IAAMC,gBAAgB,GAAG,OAAzB;AAEA;AACA;AACA;AACA;;AACA,IAAMC,WAAW,gBAAG,uBAAW,SAASA,WAAT,CAAqBC,KAArB,EAA4BC,WAA5B,EAAyC;EAAA;;EACtE,IAAQC,OAAR,GAAuFF,KAAvF,CAAQE,OAAR;EAAA,IAAiBC,SAAjB,GAAuFH,KAAvF,CAAiBG,SAAjB;EAAA,IAA4BC,SAA5B,GAAuFJ,KAAvF,CAA4BI,SAA5B;EAAA,IAAuCC,QAAvC,GAAuFL,KAAvF,CAAuCK,QAAvC;EAAA,4BAAuFL,KAAvF,CAAiDM,cAAjD;EAAA,IAAiDA,cAAjD,sCAAkE,KAAlE;EAAA,IAA4EC,MAA5E,0CAAuFP,KAAvF;EAEA,IAAMQ,YAAY,GAAG,uBAAWC,qBAAX,CAArB;EAEA,IAAMC,OAAO,GAAG,mBAAO,IAAP,CAAhB;EAEA,IAAMC,SAAS,GAAG,gCAAWV,WAAX,EAAwBS,OAAxB,CAAlB;EAEA,IAAME,SAAS,GAAGR,SAAS,KAAII,YAAJ,aAAIA,YAAJ,gDAAIA,YAAY,CAAEK,UAAlB,0DAAI,sBAA0BC,KAA9B,CAAT,IAAgDhB,gBAAlE;EAEA,oBACE,6BAAC,4BAAD,CAAqB,QAArB;IAA8B,KAAK,EAAEH;EAArC,gBACE,6BAAC,SAAD;IACE,SAAS,EAAE,mBAAKO,OAAO,CAACa,IAAb,EAAmBZ,SAAnB,CADb;IAEE,GAAG,EAAEQ,SAFP;IAGE,IAAI,EAAEC,SAAS,KAAKd,gBAAd,GAAiC,IAAjC,GAAwC;EAHhD,GAIMS,MAJN,GAMGD,cAAc,GACXD,QAAQ,CAACW,GAAT,CAAa,UAACC,OAAD,EAAa;IACxB,oBACE,6BAAC,uBAAD;MACE,OAAO,EAAEP,OADX;MAEE,GAAG,gBAASO,OAAO,CAACC,GAAjB,CAFL;MAGE,QAAQ,EAAC,MAHX;MAIE,SAAS,EAAC,MAJZ;MAKE,WAAW,EAAEvB,mBAAmB,CAACE,eALnC;MAME,cAAc,EAAE,CANlB;MAOE,aAAa,EAAE,KAPjB;MAQE,QAAQ,EAAEoB,OAAO,CAACjB,KAAR,CAAcmB;IAR1B,GAUGF,OAVH,CADF;EAcD,CAfD,CADW,GAiBXZ,QAvBN,CADF,CADF;AA6BD,CAxCmB,CAApB;AA0CA,wCAAAN,WAAW,CAACqB,SAAZ,GAAwB;EACtB;AACF;AACA;EACEjB,SAAS,EAAEkB,mBAAUC,MAJC;;EAKtB;AACF;AACA;EACEjB,QAAQ,EAAEgB,mBAAUE,IARE;;EAStB;AACF;AACA;AACA;EACEnB,SAAS,EAAEiB,mBAAUG,WAbC;;EActB;AACF;AACA;EACElB,cAAc,EAAEe,mBAAUI,IAjBJ;;EAkBtB;AACF;AACA;EACEvB,OAAO,EAAEmB,mBAAUK,KAAV,CAAgB;IACvB;AACJ;AACA;IACIX,IAAI,EAAEM,mBAAUC;EAJO,CAAhB,EAKNK;AA1BmB,CAAxB;;eA6Be,sBAAWC,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAA4C9B,WAA5C,C"}
1
+ {"version":3,"file":"TableBody.js","names":["tableSectionContext","type","filterClassName","defaultComponent","HvTableBody","forwardRef","props","externalRef","classes","className","component","children","withNavigation","others","tableContext","useContext","TableContext","bodyRef","useRef","handleRef","useForkRef","Component","components","TBody","clsx","root","map","element","key","selected","propTypes","PropTypes","string","node","elementType","bool","shape","isRequired","withStyles","styles","name"],"sources":["../../../src/Table/TableBody/TableBody.js"],"sourcesContent":["import React, { forwardRef, useContext, useRef } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\n\nimport { withStyles } from \"@material-ui/core\";\nimport { HvFocus, useForkRef } from \"@hitachivantara/uikit-react-core\";\n\nimport TableContext from \"../TableContext\";\nimport TableSectionContext from \"../TableSectionContext\";\nimport styles from \"./styles\";\n\nconst tableSectionContext = {\n type: \"body\",\n filterClassName: \"grid\",\n};\n\nconst defaultComponent = \"tbody\";\n\n/**\n * HvTableBody acts as a `tbody` element.\n * `HvTableCell` and `HvTableRow` elements in it inherit body-specific styles\n */\nconst HvTableBody = forwardRef(function HvTableBody(props, externalRef) {\n const { classes, className, component, children, withNavigation = false, ...others } = props;\n\n const tableContext = useContext(TableContext);\n\n const bodyRef = useRef(null);\n\n const handleRef = useForkRef(externalRef, bodyRef);\n\n const Component = component || tableContext?.components?.TBody || defaultComponent;\n\n return (\n <TableSectionContext.Provider value={tableSectionContext}>\n <Component\n className={clsx(classes.root, className)}\n ref={handleRef}\n role={Component === defaultComponent ? null : \"rowgroup\"}\n {...others}\n >\n {withNavigation\n ? children.map((element) => {\n return (\n <HvFocus\n rootRef={bodyRef}\n key={`row-${element.key}`}\n strategy=\"grid\"\n useArrows=\"true\"\n filterClass={tableSectionContext.filterClassName}\n navigationJump={1}\n focusDisabled={false}\n selected={element.props.selected}\n >\n {element}\n </HvFocus>\n );\n })\n : children}\n </Component>\n </TableSectionContext.Provider>\n );\n});\n\nHvTableBody.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * Content to be rendered\n */\n children: PropTypes.node,\n /**\n * The component used for the root node. Either a string to use a HTML element or a component.\n * Defaults to tbody.\n */\n component: PropTypes.elementType,\n /**\n * Sets whether or not there should be arrow navigation between the table rows\n */\n withNavigation: PropTypes.bool,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n }).isRequired,\n};\n\nexport default withStyles(styles, { name: \"HvTableBody\" })(HvTableBody);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;AAEA;;AACA;;AACA;;;;;;;;AAEA,IAAMA,mBAAmB,GAAG;EAC1BC,IAAI,EAAE,MADoB;EAE1BC,eAAe,EAAE;AAFS,CAA5B;AAKA,IAAMC,gBAAgB,GAAG,OAAzB;AAEA;AACA;AACA;AACA;;AACA,IAAMC,WAAW,gBAAG,IAAAC,iBAAA,EAAW,SAASD,WAAT,CAAqBE,KAArB,EAA4BC,WAA5B,EAAyC;EAAA;;EACtE,IAAQC,OAAR,GAAuFF,KAAvF,CAAQE,OAAR;EAAA,IAAiBC,SAAjB,GAAuFH,KAAvF,CAAiBG,SAAjB;EAAA,IAA4BC,SAA5B,GAAuFJ,KAAvF,CAA4BI,SAA5B;EAAA,IAAuCC,QAAvC,GAAuFL,KAAvF,CAAuCK,QAAvC;EAAA,4BAAuFL,KAAvF,CAAiDM,cAAjD;EAAA,IAAiDA,cAAjD,sCAAkE,KAAlE;EAAA,IAA4EC,MAA5E,0CAAuFP,KAAvF;EAEA,IAAMQ,YAAY,GAAG,IAAAC,iBAAA,EAAWC,qBAAX,CAArB;EAEA,IAAMC,OAAO,GAAG,IAAAC,aAAA,EAAO,IAAP,CAAhB;EAEA,IAAMC,SAAS,GAAG,IAAAC,0BAAA,EAAWb,WAAX,EAAwBU,OAAxB,CAAlB;EAEA,IAAMI,SAAS,GAAGX,SAAS,KAAII,YAAJ,aAAIA,YAAJ,gDAAIA,YAAY,CAAEQ,UAAlB,0DAAI,sBAA0BC,KAA9B,CAAT,IAAgDpB,gBAAlE;EAEA,oBACE,6BAAC,4BAAD,CAAqB,QAArB;IAA8B,KA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.js","names":["defaultComponent","HvTableCell","props","ref","children","component","className","style","classes","align","variant","typeProp","type","stickyColumn","stickyColumnMostLeft","stickyColumnLeastRight","groupColumnMostLeft","groupColumnMostRight","sorted","resizable","resizing","others","tableContext","TableContext","tableSectionContext","TableSectionContext","Component","components","Td","root","variantList","variantListHead","propTypes","PropTypes","elementType","node","string","instanceOf","Object","oneOf","bool","shape","head","body","footer","sortIcon","alignLeft","alignRight","alignCenter","alignJustify","variantCheckbox","variantExpand","variantActions","variantNone","variantListactions","variantListcheckbox","isRequired","styles","name"],"sources":["../../../src/Table/TableCell/TableCell.js"],"sourcesContent":["import React, { forwardRef, useContext } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\nimport capitalize from \"lodash/capitalize\";\n\nimport { withStyles } from \"@material-ui/core\";\nimport styles from \"./styles\";\nimport TableContext from \"../TableContext\";\nimport TableSectionContext from \"../TableSectionContext\";\n\nconst defaultComponent = \"td\";\n\n/**\n * `HvTableCell` acts as a `td` element and inherits styles from its context\n */\nconst HvTableCell = forwardRef(function HvTableCell(props, ref) {\n const {\n children,\n\n component,\n\n className,\n style,\n classes,\n\n align = \"inherit\",\n variant = \"default\",\n\n type: typeProp,\n\n stickyColumn = false,\n stickyColumnMostLeft = false,\n stickyColumnLeastRight = false,\n\n groupColumnMostLeft = false,\n groupColumnMostRight = false,\n\n sorted = false,\n\n resizable = false,\n resizing = false,\n\n ...others\n } = props;\n\n const tableContext = useContext(TableContext);\n const tableSectionContext = useContext(TableSectionContext);\n\n const type = typeProp || tableSectionContext?.type || \"body\";\n\n const Component = component || tableContext?.components?.Td || defaultComponent;\n\n return (\n <Component\n ref={ref}\n role={Component === defaultComponent ? null : \"cell\"}\n style={style}\n className={clsx(\n classes.root,\n classes[type],\n {\n [classes[`align${capitalize(align)}`]]: align !== \"inherit\",\n [classes[`variant${capitalize(variant)}`]]: variant !== \"default\",\n [classes.variantList]: tableContext.variant === \"listrow\",\n [classes.variantListHead]: tableContext.variant === \"listrow\" && type !== \"body\",\n [classes.sorted]: sorted,\n\n [classes.stickyColumn]: stickyColumn,\n [classes.stickyColumnMostLeft]: stickyColumnMostLeft,\n [classes.stickyColumnLeastRight]: stickyColumnLeastRight,\n\n [classes.groupColumnMostLeft]: groupColumnMostLeft,\n [classes.groupColumnMostRight]: groupColumnMostRight,\n\n [classes.resizable]: resizable,\n [classes.resizing]: resizing,\n },\n className\n )}\n {...others}\n >\n {children}\n </Component>\n );\n});\n\nHvTableCell.propTypes = {\n /**\n * The component used for the root node. Either a string to use a HTML element or a component.\n * Defaults to td.\n */\n component: PropTypes.elementType,\n /**\n * Content to be rendered\n */\n children: PropTypes.node,\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * Inline styles to be applied to the root element.\n */\n style: PropTypes.instanceOf(Object),\n /**\n * Set the text-align on the table cell content.\n */\n align: PropTypes.oneOf([\"center\", \"inherit\", \"justify\", \"left\", \"right\"]),\n /**\n * Sets the cell's variant.\n */\n variant: PropTypes.oneOf([\n \"checkbox\",\n \"expand\",\n \"actions\",\n \"default\",\n \"listcheckbox\",\n \"listactions\",\n \"none\",\n ]),\n /**\n * Specify the cell's type.\n * The prop defaults to the value inherited from the parent TableHead, TableBody, or TableFooter components.\n */\n type: PropTypes.oneOf([\"body\", \"footer\", \"head\"]),\n /**\n * Whether or not the cell is part of a sorted column.\n */\n sorted: PropTypes.bool,\n /**\n * The cell is part of a sticky column.\n */\n stickyColumn: PropTypes.bool,\n /**\n * The cell is part of the last sticky to the left column.\n */\n stickyColumnMostLeft: PropTypes.bool,\n /**\n * The cell is part of the first sticky to the right column.\n */\n stickyColumnLeastRight: PropTypes.bool,\n /**\n * The cell is part of the first column in the group.\n */\n groupColumnMostLeft: PropTypes.bool,\n /**\n * The cell is part of the last column in the group.\n */\n groupColumnMostRight: PropTypes.bool,\n /**\n * Whether or not the cell is resizable\n */\n resizable: PropTypes.bool,\n /**\n * Whether or not the cell is being resized\n */\n resizing: PropTypes.bool,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the cell when it's in the table head.\n */\n head: PropTypes.string,\n /**\n * Styles applied to the cell when it's in the table body.\n */\n body: PropTypes.string,\n /**\n * Styles applied to the cell when it's in the table footer.\n */\n footer: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of a sticky column.\n */\n stickyColumn: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of the last sticky to the left column.\n */\n stickyColumnMostLeft: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of the first right sticky column.\n */\n stickyColumnLeastRight: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of the first column in the group.\n */\n groupColumnMostLeft: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of the last column in the group.\n */\n groupColumnMostRight: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of a sorted column.\n */\n sorted: PropTypes.string,\n\n sortIcon: PropTypes.string,\n /**\n * Styles applied to the component root when it is left aligned\n */\n alignLeft: PropTypes.string,\n /**\n * Styles applied to the component root when it is right aligned\n */\n alignRight: PropTypes.string,\n /**\n * Styles applied to the component root when it is center aligned\n */\n alignCenter: PropTypes.string,\n /**\n * Styles applied to the component root when it is justified\n */\n alignJustify: PropTypes.string,\n /**\n * Styles applied to the component root when its variant is checkbox\n */\n variantCheckbox: PropTypes.string,\n /**\n * Styles applied to the component root when its variant is expand\n */\n variantExpand: PropTypes.string,\n /**\n * Styles applied to the component root when its variant is actions\n */\n variantActions: PropTypes.string,\n /**\n * Styles applied to the component root when its variant is none\n */\n variantNone: PropTypes.string,\n /**\n * Styles applied to the component root when its variant is list\n */\n variantList: PropTypes.string,\n /**\n * Styles applied to the cell when its variant is list and actions.\n */\n variantListactions: PropTypes.string,\n /**\n * Styles applied to the cell when its variant is list and checkbox.\n */\n variantListcheckbox: PropTypes.string,\n /**\n * Styles applied to the cell when its variant is list and the type is head .\n */\n variantListHead: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of a resizable column.\n */\n resizable: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of a resizing column.\n */\n resizing: PropTypes.string,\n }).isRequired,\n};\n\nexport default withStyles(styles, { name: \"HvTableCell\" })(HvTableCell);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;AAEA,IAAMA,gBAAgB,GAAG,IAAzB;AAEA;AACA;AACA;;AACA,IAAMC,WAAW,gBAAG,uBAAW,SAASA,WAAT,CAAqBC,KAArB,EAA4BC,GAA5B,EAAiC;EAAA;;EAC9D,IACEC,QADF,GA2BIF,KA3BJ,CACEE,QADF;EAAA,IAGEC,SAHF,GA2BIH,KA3BJ,CAGEG,SAHF;EAAA,IAKEC,SALF,GA2BIJ,KA3BJ,CAKEI,SALF;EAAA,IAMEC,KANF,GA2BIL,KA3BJ,CAMEK,KANF;EAAA,IAOEC,OAPF,GA2BIN,KA3BJ,CAOEM,OAPF;EAAA,mBA2BIN,KA3BJ,CASEO,KATF;EAAA,IASEA,KATF,6BASU,SATV;EAAA,qBA2BIP,KA3BJ,CAUEQ,OAVF;EAAA,IAUEA,OAVF,+BAUY,SAVZ;EAAA,IAYQC,QAZR,GA2BIT,KA3BJ,CAYEU,IAZF;EAAA,0BA2BIV,KA3BJ,CAcEW,YAdF;EAAA,IAcEA,YAdF,oCAciB,KAdjB;EAAA,4BA2BIX,KA3BJ,CAeEY,oBAfF;EAAA,IAeEA,oBAfF,sCAeyB,KAfzB;EAAA,4BA2BIZ,KA3BJ,CAgBEa,sBAhBF;EAAA,IAgBEA,sBAhBF,sCAgB2B,KAhB3B;EAAA,4BA2BIb,KA3BJ,CAkBEc,mBAlBF;EAAA,IAkBEA,mBAlBF,sCAkBwB,KAlBxB;EAAA,6BA2BId,KA3BJ,CAmBEe,oBAnBF;EAAA,IAmBEA,oBAnBF,uCAmByB,KAnBzB;EAAA,oBA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MAlEF;;IAmEvB;AACJ;AACA;IACIgB,cAAc,EAAEnB,mBAAUG,MAtEH;;IAuEvB;AACJ;AACA;IACIiB,WAAW,EAAEpB,mBAAUG,MA1EA;;IA2EvB;AACJ;AACA;IACIN,WAAW,EAAEG,mBAAUG,MA9EA;;IA+EvB;AACJ;AACA;IACIkB,kBAAkB,EAAErB,mBAAUG,MAlFP;;IAmFvB;AACJ;AACA;IACImB,mBAAmB,EAAEtB,mBAAUG,MAtFR;;IAuFvB;AACJ;AACA;IACIL,eAAe,EAAEE,mBAAUG,MA1FJ;;IA2FvB;AACJ;AACA;IACIjB,SAAS,EAAEc,mBAAUG,MA9FE;;IA+FvB;AACJ;AACA;IACIhB,QAAQ,EAAEa,mBAAUG;EAlGG,CAAhB,EAmGNoB;AA7KmB,CAAxB;;eAgLe,sBAAWC,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAA4CzD,WAA5C,C"}
1
+ {"version":3,"file":"TableCell.js","names":["defaultComponent","HvTableCell","forwardRef","props","ref","children","component","className","style","classes","align","variant","typeProp","type","stickyColumn","stickyColumnMostLeft","stickyColumnLeastRight","groupColumnMostLeft","groupColumnMostRight","sorted","resizable","resizing","others","tableContext","useContext","TableContext","tableSectionContext","TableSectionContext","Component","components","Td","clsx","root","capitalize","variantList","variantListHead","propTypes","PropTypes","elementType","node","string","instanceOf","Object","oneOf","bool","shape","head","body","footer","sortIcon","alignLeft","alignRight","alignCenter","alignJustify","variantCheckbox","variantExpand","variantActions","variantNone","variantListactions","variantListcheckbox","isRequired","withStyles","styles","name"],"sources":["../../../src/Table/TableCell/TableCell.js"],"sourcesContent":["import React, { forwardRef, useContext } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\nimport capitalize from \"lodash/capitalize\";\n\nimport { withStyles } from \"@material-ui/core\";\nimport styles from \"./styles\";\nimport TableContext from \"../TableContext\";\nimport TableSectionContext from \"../TableSectionContext\";\n\nconst defaultComponent = \"td\";\n\n/**\n * `HvTableCell` acts as a `td` element and inherits styles from its context\n */\nconst HvTableCell = forwardRef(function HvTableCell(props, ref) {\n const {\n children,\n\n component,\n\n className,\n style,\n classes,\n\n align = \"inherit\",\n variant = \"default\",\n\n type: typeProp,\n\n stickyColumn = false,\n stickyColumnMostLeft = false,\n stickyColumnLeastRight = false,\n\n groupColumnMostLeft = false,\n groupColumnMostRight = false,\n\n sorted = false,\n\n resizable = false,\n resizing = false,\n\n ...others\n } = props;\n\n const tableContext = useContext(TableContext);\n const tableSectionContext = useContext(TableSectionContext);\n\n const type = typeProp || tableSectionContext?.type || \"body\";\n\n const Component = component || tableContext?.components?.Td || defaultComponent;\n\n return (\n <Component\n ref={ref}\n role={Component === defaultComponent ? null : \"cell\"}\n style={style}\n className={clsx(\n classes.root,\n classes[type],\n {\n [classes[`align${capitalize(align)}`]]: align !== \"inherit\",\n [classes[`variant${capitalize(variant)}`]]: variant !== \"default\",\n [classes.variantList]: tableContext.variant === \"listrow\",\n [classes.variantListHead]: tableContext.variant === \"listrow\" && type !== \"body\",\n [classes.sorted]: sorted,\n\n [classes.stickyColumn]: stickyColumn,\n [classes.stickyColumnMostLeft]: stickyColumnMostLeft,\n [classes.stickyColumnLeastRight]: stickyColumnLeastRight,\n\n [classes.groupColumnMostLeft]: groupColumnMostLeft,\n [classes.groupColumnMostRight]: groupColumnMostRight,\n\n [classes.resizable]: resizable,\n [classes.resizing]: resizing,\n },\n className\n )}\n {...others}\n >\n {children}\n </Component>\n );\n});\n\nHvTableCell.propTypes = {\n /**\n * The component used for the root node. Either a string to use a HTML element or a component.\n * Defaults to td.\n */\n component: PropTypes.elementType,\n /**\n * Content to be rendered\n */\n children: PropTypes.node,\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * Inline styles to be applied to the root element.\n */\n style: PropTypes.instanceOf(Object),\n /**\n * Set the text-align on the table cell content.\n */\n align: PropTypes.oneOf([\"center\", \"inherit\", \"justify\", \"left\", \"right\"]),\n /**\n * Sets the cell's variant.\n */\n variant: PropTypes.oneOf([\n \"checkbox\",\n \"expand\",\n \"actions\",\n \"default\",\n \"listcheckbox\",\n \"listactions\",\n \"none\",\n ]),\n /**\n * Specify the cell's type.\n * The prop defaults to the value inherited from the parent TableHead, TableBody, or TableFooter components.\n */\n type: PropTypes.oneOf([\"body\", \"footer\", \"head\"]),\n /**\n * Whether or not the cell is part of a sorted column.\n */\n sorted: PropTypes.bool,\n /**\n * The cell is part of a sticky column.\n */\n stickyColumn: PropTypes.bool,\n /**\n * The cell is part of the last sticky to the left column.\n */\n stickyColumnMostLeft: PropTypes.bool,\n /**\n * The cell is part of the first sticky to the right column.\n */\n stickyColumnLeastRight: PropTypes.bool,\n /**\n * The cell is part of the first column in the group.\n */\n groupColumnMostLeft: PropTypes.bool,\n /**\n * The cell is part of the last column in the group.\n */\n groupColumnMostRight: PropTypes.bool,\n /**\n * Whether or not the cell is resizable\n */\n resizable: PropTypes.bool,\n /**\n * Whether or not the cell is being resized\n */\n resizing: PropTypes.bool,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the cell when it's in the table head.\n */\n head: PropTypes.string,\n /**\n * Styles applied to the cell when it's in the table body.\n */\n body: PropTypes.string,\n /**\n * Styles applied to the cell when it's in the table footer.\n */\n footer: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of a sticky column.\n */\n stickyColumn: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of the last sticky to the left column.\n */\n stickyColumnMostLeft: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of the first right sticky column.\n */\n stickyColumnLeastRight: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of the first column in the group.\n */\n groupColumnMostLeft: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of the last column in the group.\n */\n groupColumnMostRight: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of a sorted column.\n */\n sorted: PropTypes.string,\n\n sortIcon: PropTypes.string,\n /**\n * Styles applied to the component root when it is left aligned\n */\n alignLeft: PropTypes.string,\n /**\n * Styles applied to the component root when it is right aligned\n */\n alignRight: PropTypes.string,\n /**\n * Styles applied to the component root when it is center aligned\n */\n alignCenter: PropTypes.string,\n /**\n * Styles applied to the component root when it is justified\n */\n alignJustify: PropTypes.string,\n /**\n * Styles applied to the component root when its variant is checkbox\n */\n variantCheckbox: PropTypes.string,\n /**\n * Styles applied to the component root when its variant is expand\n */\n variantExpand: PropTypes.string,\n /**\n * Styles applied to the component root when its variant is actions\n */\n variantActions: PropTypes.string,\n /**\n * Styles applied to the component root when its variant is none\n */\n variantNone: PropTypes.string,\n /**\n * Styles applied to the component root when its variant is list\n */\n variantList: PropTypes.string,\n /**\n * Styles applied to the cell when its variant is list and actions.\n */\n variantListactions: PropTypes.string,\n /**\n * Styles applied to the cell when its variant is list and checkbox.\n */\n variantListcheckbox: PropTypes.string,\n /**\n * Styles applied to the cell when its variant is list and the type is head .\n */\n variantListHead: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of a resizable column.\n */\n resizable: PropTypes.string,\n /**\n * Styles applied to the cell when it's part of a resizing column.\n */\n resizing: PropTypes.string,\n }).isRequired,\n};\n\nexport default withStyles(styles, { name: \"HvTableCell\" })(HvTableCell);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;AAEA,IAAMA,gBAAgB,GAAG,IAAzB;AAEA;AACA;AACA;;AACA,IAAMC,WAAW,gBAAG,IAAAC,iBAAA,EAAW,SAASD,WAAT,CAAqBE,KAArB,EAA4BC,GAA5B,EAAiC;EAAA;;EAC9D,IACEC,QADF,GA2BIF,KA3BJ,CACEE,QADF;EAAA,IAGEC,SAHF,GA2BIH,KA3BJ,CAGEG,SAHF;EAAA,IAKEC,SALF,GA2BIJ,KA3BJ,CAKEI,SALF;EAAA,IAMEC,KANF,GA2BIL,KA3BJ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AAA,CAAUG,MAtFR;;IAuFvB;AACJ;AACA;IACIL,eAAe,EAAEE,kBAAA,CAAUG,MA1FJ;;IA2FvB;AACJ;AACA;IACIpB,SAAS,EAAEiB,kBAAA,CAAUG,MA9FE;;IA+FvB;AACJ;AACA;IACInB,QAAQ,EAAEgB,kBAAA,CAAUG;EAlGG,CAAhB,EAmGNoB;AA7KmB,CAAxB;;eAgLe,IAAAC,gBAAA,EAAWC,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAA4C9D,WAA5C,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","names":["styles","theme","semiTransparentAtmo1","hv","palette","atmosphere","atmo1","root","verticalAlign","textAlign","padding","hvSpacing","borderBottom","atmo4","head","height","backgroundColor","borderTop","typography","highlightText","body","minHeight","normalText","footer","sorted","alignLeft","alignCenter","alignRight","flexDirection","alignJustify","variantNone","variantCheckbox","width","maxWidth","overflow","borderRight","variantActions","borderLeft","variantExpand","paddingLeft","paddingTop","paddingBottom","variantList","border","variantListHead","variantListactions","atmo2","variantListcheckbox","stickyColumn","position","zIndex","background","backgroundImage","stickyColumnMostLeft","stickyColumnLeastRight","groupColumnMostLeft","groupColumnMostRight","resizable","resizing","accent","acce1"],"sources":["../../../src/Table/TableCell/styles.js"],"sourcesContent":["import { hexToRgbA } from \"@hitachivantara/uikit-react-core\";\n\nconst styles = (theme) => {\n const semiTransparentAtmo1 = hexToRgbA(theme.hv.palette.atmosphere.atmo1, 0.4);\n\n return {\n root: {\n verticalAlign: \"inherit\",\n textAlign: \"left\",\n padding: theme.hvSpacing(\"8px\", \"xs\", \"8px\", \"32px\"),\n\n borderBottom: `1px solid ${theme.hv.palette.atmosphere.atmo4}`,\n },\n\n head: {\n height: 52,\n verticalAlign: \"top\",\n\n backgroundColor: theme.hv.palette.atmosphere.atmo1,\n borderTop: `1px solid ${theme.hv.palette.atmosphere.atmo4}`,\n borderBottom: `1px solid ${theme.hv.palette.atmosphere.atmo4}`,\n ...theme.hv.typography.highlightText,\n },\n body: {\n minHeight: 32,\n \"td&\": {\n height: 32,\n },\n backgroundColor: \"inherit\",\n ...theme.hv.typography.normalText,\n\n \"&$sorted\": {\n backgroundColor: semiTransparentAtmo1,\n },\n },\n footer: {},\n\n sorted: {},\n\n alignLeft: {\n textAlign: \"left\",\n },\n alignCenter: {\n textAlign: \"center\",\n },\n alignRight: {\n textAlign: \"right\",\n flexDirection: \"row-reverse\",\n },\n alignJustify: {\n textAlign: \"justify\",\n },\n\n variantNone: {\n padding: 0,\n },\n variantCheckbox: {\n padding: 0,\n width: 32,\n maxWidth: 32,\n overflow: \"hidden\",\n borderRight: `solid 1px ${theme.hv.palette.atmosphere.atmo4}`,\n },\n variantActions: {\n padding: 0,\n width: 32,\n maxWidth: 32,\n borderLeft: `solid 1px ${theme.hv.palette.atmosphere.atmo4}`,\n },\n variantExpand: {\n paddingLeft: 0,\n paddingTop: 0,\n paddingBottom: 0,\n },\n variantList: {\n minHeight: 52,\n \"td&\": {\n height: 52,\n },\n padding: \"0, 0, 0, 32px\",\n border: 0,\n },\n variantListHead: {\n backgroundColor: \"inherit\",\n \"td&\": {\n height: 16,\n },\n },\n variantListactions: {\n borderLeft: `solid 2px ${theme.hv.palette.atmosphere.atmo2}`,\n paddingLeft: \"0\",\n textAlign: \"center\",\n width: 130,\n maxWidth: 130,\n },\n variantListcheckbox: {\n borderRight: `solid 2px ${theme.hv.palette.atmosphere.atmo2}`,\n padding: 0,\n textAlign: \"center\",\n width: 34,\n maxWidth: 34,\n },\n stickyColumn: {\n position: \"sticky\",\n zIndex: 2,\n background: theme.hv.palette.atmosphere.atmo2,\n\n \"&$groupColumnMostRight+$stickyColumn\": {\n borderLeft: 0,\n },\n\n \"&$sorted\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo2,\n backgroundImage: `linear-gradient(to right, ${semiTransparentAtmo1}, ${semiTransparentAtmo1})`,\n },\n },\n stickyColumnMostLeft: {\n borderRight: `solid 1px ${theme.hv.palette.atmosphere.atmo4}`,\n },\n stickyColumnLeastRight: {\n borderLeft: `solid 1px ${theme.hv.palette.atmosphere.atmo4}`,\n },\n\n groupColumnMostLeft: {\n borderLeft: `solid 1px ${theme.hv.palette.atmosphere.atmo4}`,\n\n \"&:first-child\": {\n borderLeft: 0,\n },\n },\n groupColumnMostRight: {\n borderRight: `solid 1px ${theme.hv.palette.atmosphere.atmo4}`,\n\n // due to the \":has()\" selector not being supported in browsers,\n // this need to be managed with inline styles\n // To be uncommented when not needed (see comment in src/Table/hooks/useSticky.js)\n // \"&:last-child,&:has(+ $stickyColumnLeastRight)\": {\n \"&:last-child\": {\n borderRight: 0,\n },\n\n \"&+:not($stickyColumn)\": {\n borderLeft: 0,\n },\n },\n\n resizable: {\n borderRight: `solid 1px ${theme.hv.palette.atmosphere.atmo4}`,\n },\n\n resizing: {\n borderRight: `solid 2px ${theme.hv.palette.accent.acce1}`,\n },\n };\n};\n\nexport default styles;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD,EAAW;EACxB,IAAMC,oBAAoB,GAAG,+BAAUD,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BC,KAAtC,EAA6C,GAA7C,CAA7B;EAEA,OAAO;IACLC,IAAI,EAAE;MACJC,aAAa,EAAE,SADX;MAEJC,SAAS,EAAE,MAFP;MAGJC,OAAO,EAAET,KAAK,CAACU,SAAN,CAAgB,KAAhB,EAAuB,IAAvB,EAA6B,KAA7B,EAAoC,MAApC,CAHL;MAKJC,YAAY,sBAAeX,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BQ,KAA3C;IALR,CADD;IASLC,IAAI;MACFC,MAAM,EAAE,EADN;MAEFP,aAAa,EAAE,KAFb;MAIFQ,eAAe,EAAEf,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BC,KAJ3C;MAK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C;IADS,CA/GjB;IAkHLyC,sBAAsB,EAAE;MACtBjB,UAAU,sBAAepC,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BQ,KAA3C;IADY,CAlHnB;IAsHL0C,mBAAmB,EAAE;MACnBlB,UAAU,sBAAepC,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BQ,KAA3C,CADS;MAGnB,iBAAiB;QACfwB,UAAU,EAAE;MADG;IAHE,CAtHhB;IA6HLmB,oBAAoB,EAAE;MACpBrB,WAAW,sBAAelC,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BQ,KAA3C,CADS;MAGpB;MACA;MACA;MACA;MACA,gBAAgB;QACdsB,WAAW,EAAE;MADC,CAPI;MAWpB,yBAAyB;QACvBE,UAAU,EAAE;MADW;IAXL,CA7HjB;IA6ILoB,SAAS,EAAE;MACTtB,WAAW,sBAAelC,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BQ,KAA3C;IADF,CA7IN;IAiJL6C,QAAQ,EAAE;MACRvB,WAAW,sBAAelC,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBuD,MAAjB,CAAwBC,KAAvC;IADH;EAjJL,CAAP;AAqJD,CAxJD;;eA0Je5D,M"}
1
+ {"version":3,"file":"styles.js","names":["styles","theme","semiTransparentAtmo1","hexToRgbA","hv","palette","atmosphere","atmo1","root","verticalAlign","textAlign","padding","hvSpacing","borderBottom","atmo4","head","height","backgroundColor","borderTop","typography","highlightText","body","minHeight","normalText","footer","sorted","alignLeft","alignCenter","alignRight","flexDirection","alignJustify","variantNone","variantCheckbox","width","maxWidth","overflow","borderRight","variantActions","borderLeft","variantExpand","paddingLeft","paddingTop","paddingBottom","variantList","border","variantListHead","variantListactions","atmo2","variantListcheckbox","stickyColumn","position","zIndex","background","backgroundImage","stickyColumnMostLeft","stickyColumnLeastRight","groupColumnMostLeft","groupColumnMostRight","resizable","resizing","accent","acce1"],"sources":["../../../src/Table/TableCell/styles.js"],"sourcesContent":["import { hexToRgbA } from \"@hitachivantara/uikit-react-core\";\n\nconst styles = (theme) => {\n const semiTransparentAtmo1 = hexToRgbA(theme.hv.palette.atmosphere.atmo1, 0.4);\n\n return {\n root: {\n verticalAlign: \"inherit\",\n textAlign: \"left\",\n padding: theme.hvSpacing(\"8px\", \"xs\", \"8px\", \"32px\"),\n\n borderBottom: `1px solid ${theme.hv.palette.atmosphere.atmo4}`,\n },\n\n head: {\n height: 52,\n verticalAlign: \"top\",\n\n backgroundColor: theme.hv.palette.atmosphere.atmo1,\n borderTop: `1px solid ${theme.hv.palette.atmosphere.atmo4}`,\n borderBottom: `1px solid ${theme.hv.palette.atmosphere.atmo4}`,\n ...theme.hv.typography.highlightText,\n },\n body: {\n minHeight: 32,\n \"td&\": {\n height: 32,\n },\n backgroundColor: \"inherit\",\n ...theme.hv.typography.normalText,\n\n \"&$sorted\": {\n backgroundColor: semiTransparentAtmo1,\n },\n },\n footer: {},\n\n sorted: {},\n\n alignLeft: {\n textAlign: \"left\",\n },\n alignCenter: {\n textAlign: \"center\",\n },\n alignRight: {\n textAlign: \"right\",\n flexDirection: \"row-reverse\",\n },\n alignJustify: {\n textAlign: \"justify\",\n },\n\n variantNone: {\n padding: 0,\n },\n variantCheckbox: {\n padding: 0,\n width: 32,\n maxWidth: 32,\n overflow: \"hidden\",\n borderRight: `solid 1px ${theme.hv.palette.atmosphere.atmo4}`,\n },\n variantActions: {\n padding: 0,\n width: 32,\n maxWidth: 32,\n borderLeft: `solid 1px ${theme.hv.palette.atmosphere.atmo4}`,\n },\n variantExpand: {\n paddingLeft: 0,\n paddingTop: 0,\n paddingBottom: 0,\n },\n variantList: {\n minHeight: 52,\n \"td&\": {\n height: 52,\n },\n padding: \"0, 0, 0, 32px\",\n border: 0,\n },\n variantListHead: {\n backgroundColor: \"inherit\",\n \"td&\": {\n height: 16,\n },\n },\n variantListactions: {\n borderLeft: `solid 2px ${theme.hv.palette.atmosphere.atmo2}`,\n paddingLeft: \"0\",\n textAlign: \"center\",\n width: 130,\n maxWidth: 130,\n },\n variantListcheckbox: {\n borderRight: `solid 2px ${theme.hv.palette.atmosphere.atmo2}`,\n padding: 0,\n textAlign: \"center\",\n width: 34,\n maxWidth: 34,\n },\n stickyColumn: {\n position: \"sticky\",\n zIndex: 2,\n background: theme.hv.palette.atmosphere.atmo2,\n\n \"&$groupColumnMostRight+$stickyColumn\": {\n borderLeft: 0,\n },\n\n \"&$sorted\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo2,\n backgroundImage: `linear-gradient(to right, ${semiTransparentAtmo1}, ${semiTransparentAtmo1})`,\n },\n },\n stickyColumnMostLeft: {\n borderRight: `solid 1px ${theme.hv.palette.atmosphere.atmo4}`,\n },\n stickyColumnLeastRight: {\n borderLeft: `solid 1px ${theme.hv.palette.atmosphere.atmo4}`,\n },\n\n groupColumnMostLeft: {\n borderLeft: `solid 1px ${theme.hv.palette.atmosphere.atmo4}`,\n\n \"&:first-child\": {\n borderLeft: 0,\n },\n },\n groupColumnMostRight: {\n borderRight: `solid 1px ${theme.hv.palette.atmosphere.atmo4}`,\n\n // due to the \":has()\" selector not being supported in browsers,\n // this need to be managed with inline styles\n // To be uncommented when not needed (see comment in src/Table/hooks/useSticky.js)\n // \"&:last-child,&:has(+ $stickyColumnLeastRight)\": {\n \"&:last-child\": {\n borderRight: 0,\n },\n\n \"&+:not($stickyColumn)\": {\n borderLeft: 0,\n },\n },\n\n resizable: {\n borderRight: `solid 1px ${theme.hv.palette.atmosphere.atmo4}`,\n },\n\n resizing: {\n borderRight: `solid 2px ${theme.hv.palette.accent.acce1}`,\n },\n };\n};\n\nexport default styles;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD,EAAW;EACxB,IAAMC,oBAAoB,GAAG,IAAAC,yBAAA,EAAUF,KAAK,CAACG,EAAN,C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MAAjB,CAAwBC,KAAvC;IADH;EAjJL,CAAP;AAqJD,CAxJD;;eA0Je7D,M"}
@@ -1 +1 @@
1
- {"version":3,"file":"TableContainer.js","names":["HvTableContainer","props","ref","classes","className","component","others","Component","root","propTypes","PropTypes","string","children","node","elementType","shape","isRequired","styles","name"],"sources":["../../../src/Table/TableContainer/TableContainer.js"],"sourcesContent":["import React, { forwardRef } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\n\nimport { withStyles } from \"@material-ui/core\";\n\nimport styles from \"./styles\";\n\n/**\n * HvTableContainer is a container for the HvTable\n */\nconst HvTableContainer = forwardRef(function HvTableContainer(props, ref) {\n const { classes, className, component, ...others } = props;\n\n const Component = component || \"div\";\n\n return <Component ref={ref} className={clsx(classes.root, className)} {...others} />;\n});\n\nHvTableContainer.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * Content to be rendered. Usually `<HvTable>`\n */\n children: PropTypes.node,\n /**\n * The component used for the root node. Either a string to use a HTML element or a component.\n * Defaults to div.\n */\n component: PropTypes.elementType,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n }).isRequired,\n};\n\nexport default withStyles(styles, { name: \"HvTableContainer\" })(HvTableContainer);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAEA;;;;;;;;AAEA;AACA;AACA;AACA,IAAMA,gBAAgB,gBAAG,uBAAW,SAASA,gBAAT,CAA0BC,KAA1B,EAAiCC,GAAjC,EAAsC;EACxE,IAAQC,OAAR,GAAqDF,KAArD,CAAQE,OAAR;EAAA,IAAiBC,SAAjB,GAAqDH,KAArD,CAAiBG,SAAjB;EAAA,IAA4BC,SAA5B,GAAqDJ,KAArD,CAA4BI,SAA5B;EAAA,IAA0CC,MAA1C,0CAAqDL,KAArD;EAEA,IAAMM,SAAS,GAAGF,SAAS,IAAI,KAA/B;EAEA,oBAAO,6BAAC,SAAD;IAAW,GAAG,EAAEH,GAAhB;IAAqB,SAAS,EAAE,mBAAKC,OAAO,CAACK,IAAb,EAAmBJ,SAAnB;EAAhC,GAAmEE,MAAnE,EAAP;AACD,CANwB,CAAzB;AAQA,wCAAAN,gBAAgB,CAACS,SAAjB,GAA6B;EAC3B;AACF;AACA;EACEL,SAAS,EAAEM,mBAAUC,MAJM;;EAK3B;AACF;AACA;EACEC,QAAQ,EAAEF,mBAAUG,IARO;;EAS3B;AACF;AACA;AACA;EACER,SAAS,EAAEK,mBAAUI,WAbM;;EAc3B;AACF;AACA;EACEX,OAAO,EAAEO,mBAAUK,KAAV,CAAgB;IACvB;AACJ;AACA;IACIP,IAAI,EAAEE,mBAAUC;EAJO,CAAhB,EAKNK;AAtBwB,CAA7B;;eAyBe,sBAAWC,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAAiDlB,gBAAjD,C"}
1
+ {"version":3,"file":"TableContainer.js","names":["HvTableContainer","forwardRef","props","ref","classes","className","component","others","Component","clsx","root","propTypes","PropTypes","string","children","node","elementType","shape","isRequired","withStyles","styles","name"],"sources":["../../../src/Table/TableContainer/TableContainer.js"],"sourcesContent":["import React, { forwardRef } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\n\nimport { withStyles } from \"@material-ui/core\";\n\nimport styles from \"./styles\";\n\n/**\n * HvTableContainer is a container for the HvTable\n */\nconst HvTableContainer = forwardRef(function HvTableContainer(props, ref) {\n const { classes, className, component, ...others } = props;\n\n const Component = component || \"div\";\n\n return <Component ref={ref} className={clsx(classes.root, className)} {...others} />;\n});\n\nHvTableContainer.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * Content to be rendered. Usually `<HvTable>`\n */\n children: PropTypes.node,\n /**\n * The component used for the root node. Either a string to use a HTML element or a component.\n * Defaults to div.\n */\n component: PropTypes.elementType,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n }).isRequired,\n};\n\nexport default withStyles(styles, { name: \"HvTableContainer\" })(HvTableContainer);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAEA;;;;;;;;AAEA;AACA;AACA;AACA,IAAMA,gBAAgB,gBAAG,IAAAC,iBAAA,EAAW,SAASD,gBAAT,CAA0BE,KAA1B,EAAiCC,GAAjC,EAAsC;EACxE,IAAQC,OAAR,GAAqDF,KAArD,CAAQE,OAAR;EAAA,IAAiBC,SAAjB,GAAqDH,KAArD,CAAiBG,SAAjB;EAAA,IAA4BC,SAA5B,GAAqDJ,KAArD,CAA4BI,SAA5B;EAAA,IAA0CC,MAA1C,0CAAqDL,KAArD;EAEA,IAAMM,SAAS,GAAGF,SAAS,IAAI,KAA/B;EAEA,oBAAO,6BAAC,SAAD;IAAW,GAAG,EAAEH,GAAhB;IAAqB,SAAS,EAAE,IAAAM,aAAA,EAAKL,OAAO,CAACM,IAAb,EAAmBL,SAAnB;EAAhC,GAAmEE,MAAnE,EAAP;AACD,CANwB,CAAzB;AAQA,wCAAAP,gBAAgB,CAACW,SAAjB,GAA6B;EAC3B;AACF;AACA;EACEN,SAAS,EAAEO,kBAAA,CAAUC,MAJM;;EAK3B;AACF;AACA;EACEC,QAAQ,EAAEF,kBAAA,CAAUG,IARO;;EAS3B;AACF;AACA;AACA;EACET,SAAS,EAAEM,kBAAA,CAAUI,WAbM;;EAc3B;AACF;AACA;EACEZ,OAAO,EAAEQ,kBAAA,CAAUK,KAAV,CAAgB;IACvB;AACJ;AACA;IACIP,IAAI,EAAEE,kBAAA,CAAUC;EAJO,CAAhB,EAKNK;AAtBwB,CAA7B;;eAyBe,IAAAC,gBAAA,EAAWC,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAAiDrB,gBAAjD,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"TableContext.js","names":["TableContext","process","env","NODE_ENV","displayName"],"sources":["../../src/Table/TableContext.js"],"sourcesContent":["import { createContext } from \"react\";\n\nconst TableContext = createContext();\n\nif (process.env.NODE_ENV !== \"production\") {\n TableContext.displayName = \"TableContext\";\n}\n\nexport default TableContext;\n"],"mappings":";;;;;;;AAAA;;AAEA,IAAMA,YAAY,gBAAG,2BAArB;;AAEA,IAAIC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAA7B,EAA2C;EACzCH,YAAY,CAACI,WAAb,GAA2B,cAA3B;AACD;;eAEcJ,Y"}
1
+ {"version":3,"file":"TableContext.js","names":["TableContext","createContext","process","env","NODE_ENV","displayName"],"sources":["../../src/Table/TableContext.js"],"sourcesContent":["import { createContext } from \"react\";\n\nconst TableContext = createContext();\n\nif (process.env.NODE_ENV !== \"production\") {\n TableContext.displayName = \"TableContext\";\n}\n\nexport default TableContext;\n"],"mappings":";;;;;;;AAAA;;AAEA,IAAMA,YAAY,gBAAG,IAAAC,oBAAA,GAArB;;AAEA,IAAIC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAA7B,EAA2C;EACzCJ,YAAY,CAACK,WAAb,GAA2B,cAA3B;AACD;;eAEcL,Y"}
@@ -1 +1 @@
1
- {"version":3,"file":"TableHead.js","names":["tableSectionContext","type","defaultComponent","HvTableHead","props","ref","classes","className","component","stickyHeader","others","tableContext","TableContext","Component","components","THead","root","propTypes","PropTypes","string","children","node","elementType","bool","shape","isRequired","styles","name"],"sources":["../../../src/Table/TableHead/TableHead.js"],"sourcesContent":["import React, { forwardRef, useContext } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\n\nimport { withStyles } from \"@material-ui/core\";\n\nimport TableContext from \"../TableContext\";\nimport TableSectionContext from \"../TableSectionContext\";\nimport styles from \"./styles\";\n\nconst tableSectionContext = {\n type: \"head\",\n};\n\nconst defaultComponent = \"thead\";\n\n/**\n * HvTableHead acts as a `thead` element.\n * `HvTableCell` and `HvTableRow` elements in it inherit header-specific styles\n */\nconst HvTableHead = forwardRef(function HvTableHead(props, ref) {\n const { classes, className, component, stickyHeader, ...others } = props;\n\n const tableContext = useContext(TableContext);\n\n const Component = component || tableContext?.components?.THead || defaultComponent;\n\n return (\n <TableSectionContext.Provider value={tableSectionContext}>\n <Component\n className={clsx(classes.root, { [classes.stickyHeader]: stickyHeader }, className)}\n ref={ref}\n role={Component === defaultComponent ? null : \"rowgroup\"}\n {...others}\n />\n </TableSectionContext.Provider>\n );\n});\n\nHvTableHead.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * Content to be rendered\n */\n children: PropTypes.node,\n /**\n * The component used for the root node. Either a string to use a HTML element or a component.\n * Defaults to thead.\n */\n component: PropTypes.elementType,\n /**\n * The table has sticky headers.\n */\n stickyHeader: PropTypes.bool,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n /**\n * Styles applied when the table has a sticky header.\n */\n stickyHeader: PropTypes.string,\n }).isRequired,\n};\n\nexport default withStyles(styles, { name: \"HvTableHead\" })(HvTableHead);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAEA;;AACA;;AACA;;;;;;;;AAEA,IAAMA,mBAAmB,GAAG;EAC1BC,IAAI,EAAE;AADoB,CAA5B;AAIA,IAAMC,gBAAgB,GAAG,OAAzB;AAEA;AACA;AACA;AACA;;AACA,IAAMC,WAAW,gBAAG,uBAAW,SAASA,WAAT,CAAqBC,KAArB,EAA4BC,GAA5B,EAAiC;EAAA;;EAC9D,IAAQC,OAAR,GAAmEF,KAAnE,CAAQE,OAAR;EAAA,IAAiBC,SAAjB,GAAmEH,KAAnE,CAAiBG,SAAjB;EAAA,IAA4BC,SAA5B,GAAmEJ,KAAnE,CAA4BI,SAA5B;EAAA,IAAuCC,YAAvC,GAAmEL,KAAnE,CAAuCK,YAAvC;EAAA,IAAwDC,MAAxD,0CAAmEN,KAAnE;EAEA,IAAMO,YAAY,GAAG,uBAAWC,qBAAX,CAArB;EAEA,IAAMC,SAAS,GAAGL,SAAS,KAAIG,YAAJ,aAAIA,YAAJ,gDAAIA,YAAY,CAAEG,UAAlB,0DAAI,sBAA0BC,KAA9B,CAAT,IAAgDb,gBAAlE;EAEA,oBACE,6BAAC,4BAAD,CAAqB,QAArB;IAA8B,KAAK,EAAEF;EAArC,gBACE,6BAAC,SAAD;IACE,SAAS,EAAE,mBAAKM,OAAO,CAACU,IAAb,EAA6DT,SAA7D,EAA6CE,YAA7C,IAAsBH,OAAO,CAACG,YAA9B,CADb;IAEE,GAAG,EAAEJ,GAFP;IAGE,IAAI,EAAEQ,SAAS,KAAKX,gBAAd,GAAiC,IAAjC,GAAwC;EAHhD,GAIMQ,MAJN,EADF,CADF;AAUD,CAjBmB,CAApB;AAmBA,wCAAAP,WAAW,CAACc,SAAZ,GAAwB;EACtB;AACF;AACA;EACEV,SAAS,EAAEW,mBAAUC,MAJC;;EAKtB;AACF;AACA;EACEC,QAAQ,EAAEF,mBAAUG,IARE;;EAStB;AACF;AACA;AACA;EACEb,SAAS,EAAEU,mBAAUI,WAbC;;EActB;AACF;AACA;EACEb,YAAY,EAAES,mBAAUK,IAjBF;;EAkBtB;AACF;AACA;EACEjB,OAAO,EAAEY,mBAAUM,KAAV,CAAgB;IACvB;AACJ;AACA;IACIR,IAAI,EAAEE,mBAAUC,MAJO;;IAKvB;AACJ;AACA;IACIV,YAAY,EAAES,mBAAUC;EARD,CAAhB,EASNM;AA9BmB,CAAxB;;eAiCe,sBAAWC,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAA4CxB,WAA5C,C"}
1
+ {"version":3,"file":"TableHead.js","names":["tableSectionContext","type","defaultComponent","HvTableHead","forwardRef","props","ref","classes","className","component","stickyHeader","others","tableContext","useContext","TableContext","Component","components","THead","clsx","root","propTypes","PropTypes","string","children","node","elementType","bool","shape","isRequired","withStyles","styles","name"],"sources":["../../../src/Table/TableHead/TableHead.js"],"sourcesContent":["import React, { forwardRef, useContext } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\n\nimport { withStyles } from \"@material-ui/core\";\n\nimport TableContext from \"../TableContext\";\nimport TableSectionContext from \"../TableSectionContext\";\nimport styles from \"./styles\";\n\nconst tableSectionContext = {\n type: \"head\",\n};\n\nconst defaultComponent = \"thead\";\n\n/**\n * HvTableHead acts as a `thead` element.\n * `HvTableCell` and `HvTableRow` elements in it inherit header-specific styles\n */\nconst HvTableHead = forwardRef(function HvTableHead(props, ref) {\n const { classes, className, component, stickyHeader, ...others } = props;\n\n const tableContext = useContext(TableContext);\n\n const Component = component || tableContext?.components?.THead || defaultComponent;\n\n return (\n <TableSectionContext.Provider value={tableSectionContext}>\n <Component\n className={clsx(classes.root, { [classes.stickyHeader]: stickyHeader }, className)}\n ref={ref}\n role={Component === defaultComponent ? null : \"rowgroup\"}\n {...others}\n />\n </TableSectionContext.Provider>\n );\n});\n\nHvTableHead.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * Content to be rendered\n */\n children: PropTypes.node,\n /**\n * The component used for the root node. Either a string to use a HTML element or a component.\n * Defaults to thead.\n */\n component: PropTypes.elementType,\n /**\n * The table has sticky headers.\n */\n stickyHeader: PropTypes.bool,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n /**\n * Styles applied when the table has a sticky header.\n */\n stickyHeader: PropTypes.string,\n }).isRequired,\n};\n\nexport default withStyles(styles, { name: \"HvTableHead\" })(HvTableHead);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAEA;;AACA;;AACA;;;;;;;;AAEA,IAAMA,mBAAmB,GAAG;EAC1BC,IAAI,EAAE;AADoB,CAA5B;AAI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