@hitachivantara/uikit-react-lab 3.45.12 → 3.47.0
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.
- package/dist/QueryBuilder/Context.js +4 -1
- package/dist/QueryBuilder/Context.js.map +1 -1
- package/dist/QueryBuilder/Rule/Value/Value.js +1 -5
- package/dist/QueryBuilder/Rule/Value/Value.js.map +1 -1
- package/dist/QueryBuilder/index.d.ts +1 -0
- package/dist/QueryBuilder/index.js +20 -0
- package/dist/QueryBuilder/index.js.map +1 -1
- package/dist/Table/Table.d.ts +5 -1
- package/dist/Table/Table.js +20 -5
- package/dist/Table/Table.js.map +1 -1
- package/dist/Table/TableBody/TableBody.js +33 -5
- package/dist/Table/TableBody/TableBody.js.map +1 -1
- package/dist/Table/TableBody/styles.js.map +1 -1
- package/dist/Table/TableCell/TableCell.d.ts +3 -1
- package/dist/Table/TableCell/TableCell.js +22 -2
- package/dist/Table/TableCell/TableCell.js.map +1 -1
- package/dist/Table/TableCell/styles.js +28 -0
- package/dist/Table/TableCell/styles.js.map +1 -1
- package/dist/Table/TableHeader/TableHeader.d.ts +1 -0
- package/dist/Table/TableHeader/TableHeader.js +6 -1
- package/dist/Table/TableHeader/TableHeader.js.map +1 -1
- package/dist/Table/TableHeader/styles.js +9 -0
- package/dist/Table/TableHeader/styles.js.map +1 -1
- package/dist/Table/TableRow/TableRow.d.ts +3 -1
- package/dist/Table/TableRow/TableRow.js +16 -2
- package/dist/Table/TableRow/TableRow.js.map +1 -1
- package/dist/Table/TableRow/styles.js +28 -3
- package/dist/Table/TableRow/styles.js.map +1 -1
- package/dist/Table/styles.js +5 -0
- package/dist/Table/styles.js.map +1 -1
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/dist/legacy/QueryBuilder/Context.js +3 -3
- package/dist/legacy/QueryBuilder/Context.js.map +1 -1
- package/dist/legacy/QueryBuilder/Rule/Value/Value.js +1 -5
- package/dist/legacy/QueryBuilder/Rule/Value/Value.js.map +1 -1
- package/dist/legacy/QueryBuilder/index.d.ts +1 -0
- package/dist/legacy/QueryBuilder/index.js +1 -0
- package/dist/legacy/QueryBuilder/index.js.map +1 -1
- package/dist/legacy/Table/Table.d.ts +5 -1
- package/dist/legacy/Table/Table.js +21 -6
- package/dist/legacy/Table/Table.js.map +1 -1
- package/dist/legacy/Table/TableBody/TableBody.js +31 -6
- package/dist/legacy/Table/TableBody/TableBody.js.map +1 -1
- package/dist/legacy/Table/TableBody/styles.js.map +1 -1
- package/dist/legacy/Table/TableCell/TableCell.d.ts +3 -1
- package/dist/legacy/Table/TableCell/TableCell.js +22 -2
- package/dist/legacy/Table/TableCell/TableCell.js.map +1 -1
- package/dist/legacy/Table/TableCell/styles.js +28 -0
- package/dist/legacy/Table/TableCell/styles.js.map +1 -1
- package/dist/legacy/Table/TableHeader/TableHeader.d.ts +1 -0
- package/dist/legacy/Table/TableHeader/TableHeader.js +6 -1
- package/dist/legacy/Table/TableHeader/TableHeader.js.map +1 -1
- package/dist/legacy/Table/TableHeader/styles.js +9 -0
- package/dist/legacy/Table/TableHeader/styles.js.map +1 -1
- package/dist/legacy/Table/TableRow/TableRow.d.ts +3 -1
- package/dist/legacy/Table/TableRow/TableRow.js +16 -2
- package/dist/legacy/Table/TableRow/TableRow.js.map +1 -1
- package/dist/legacy/Table/TableRow/styles.js +27 -3
- package/dist/legacy/Table/TableRow/styles.js.map +1 -1
- package/dist/legacy/Table/styles.js +5 -0
- package/dist/legacy/Table/styles.js.map +1 -1
- package/dist/legacy/index.js +1 -0
- package/dist/legacy/index.js.map +1 -1
- package/dist/modern/QueryBuilder/Context.js +3 -3
- package/dist/modern/QueryBuilder/Context.js.map +1 -1
- package/dist/modern/QueryBuilder/Rule/Value/Value.js +1 -5
- package/dist/modern/QueryBuilder/Rule/Value/Value.js.map +1 -1
- package/dist/modern/QueryBuilder/index.d.ts +1 -0
- package/dist/modern/QueryBuilder/index.js +1 -0
- package/dist/modern/QueryBuilder/index.js.map +1 -1
- package/dist/modern/Table/Table.d.ts +5 -1
- package/dist/modern/Table/Table.js +21 -7
- package/dist/modern/Table/Table.js.map +1 -1
- package/dist/modern/Table/TableBody/TableBody.js +30 -7
- package/dist/modern/Table/TableBody/TableBody.js.map +1 -1
- package/dist/modern/Table/TableBody/styles.js.map +1 -1
- package/dist/modern/Table/TableCell/TableCell.d.ts +3 -1
- package/dist/modern/Table/TableCell/TableCell.js +22 -2
- package/dist/modern/Table/TableCell/TableCell.js.map +1 -1
- package/dist/modern/Table/TableCell/styles.js +28 -0
- package/dist/modern/Table/TableCell/styles.js.map +1 -1
- package/dist/modern/Table/TableHeader/TableHeader.d.ts +1 -0
- package/dist/modern/Table/TableHeader/TableHeader.js +6 -1
- package/dist/modern/Table/TableHeader/TableHeader.js.map +1 -1
- package/dist/modern/Table/TableHeader/styles.js +9 -0
- package/dist/modern/Table/TableHeader/styles.js.map +1 -1
- package/dist/modern/Table/TableRow/TableRow.d.ts +3 -1
- package/dist/modern/Table/TableRow/TableRow.js +16 -2
- package/dist/modern/Table/TableRow/TableRow.js.map +1 -1
- package/dist/modern/Table/TableRow/styles.js +26 -3
- package/dist/modern/Table/TableRow/styles.js.map +1 -1
- package/dist/modern/Table/styles.js +5 -0
- package/dist/modern/Table/styles.js.map +1 -1
- package/dist/modern/index.js +1 -0
- package/dist/modern/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -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","stickyColumn","position","zIndex","background","
|
|
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;MAKFW,SAAS,sBAAehB,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BQ,KAA3C,CALP;MAMFD,YAAY,sBAAeX,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BQ,KAA3C;IANV,GAOCZ,KAAK,CAACE,EAAN,CAASe,UAAT,CAAoBC,aAPrB,CATC;IAkBLC,IAAI;MACFC,SAAS,EAAE,EADT;MAEF,OAAO;QACLN,MAAM,EAAE;MADH,CAFL;MAKFC,eAAe,EAAE;IALf,GAMCf,KAAK,CAACE,EAAN,CAASe,UAAT,CAAoBI,UANrB;MAQF,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AAjB,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"}
|
|
@@ -109,7 +109,7 @@ var HvTableHeader = /*#__PURE__*/(0, _react.forwardRef)(function HvTableHeader(p
|
|
|
109
109
|
role: role,
|
|
110
110
|
scope: scope,
|
|
111
111
|
style: style,
|
|
112
|
-
className: (0, _clsx.default)(classes.root, classes[type], className, align !== "inherit" && classes["align".concat((0, _capitalize.default)(align))], variant !== "default" && classes["variant".concat((0, _capitalize.default)(variant))], stickyColumn && classes.stickyColumn, stickyColumnMostLeft && classes.stickyColumnMostLeft, stickyColumnLeastRight && classes.stickyColumnLeastRight, groupColumnMostLeft && classes.groupColumnMostLeft, groupColumnMostRight && classes.groupColumnMostRight, sortable && classes.sortable, sorted && classes.sorted, resizable && classes.resizable, resizing && classes.resizing),
|
|
112
|
+
className: (0, _clsx.default)(classes.root, classes[type], className, align !== "inherit" && classes["align".concat((0, _capitalize.default)(align))], variant !== "default" && classes["variant".concat((0, _capitalize.default)(variant))], stickyColumn && classes.stickyColumn, stickyColumnMostLeft && classes.stickyColumnMostLeft, stickyColumnLeastRight && classes.stickyColumnLeastRight, groupColumnMostLeft && classes.groupColumnMostLeft, groupColumnMostRight && classes.groupColumnMostRight, sortable && classes.sortable, sorted && classes.sorted, resizable && classes.resizable, resizing && classes.resizing, tableContext.variant === "listrow" && classes.variantList),
|
|
113
113
|
"aria-sort": sortable ? sortDirection : undefined
|
|
114
114
|
}, others), /*#__PURE__*/_react.default.createElement("div", {
|
|
115
115
|
className: (0, _clsx.default)(classes.headerContent, align !== "inherit" && classes["alignFlex".concat((0, _capitalize.default)(align))])
|
|
@@ -379,6 +379,11 @@ process.env.NODE_ENV !== "production" ? HvTableHeader.propTypes = {
|
|
|
379
379
|
*/
|
|
380
380
|
variantNone: _propTypes.default.string,
|
|
381
381
|
|
|
382
|
+
/**
|
|
383
|
+
* Styles applied to the component root when its variant is list row
|
|
384
|
+
*/
|
|
385
|
+
variantList: _propTypes.default.string,
|
|
386
|
+
|
|
382
387
|
/**
|
|
383
388
|
* Styles applied to the cell when it's part of a resizable column.
|
|
384
389
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableHeader.js","names":["defaultComponent","HvTableHeader","props","ref","children","component","className","style","classes","scopeProp","scope","align","variant","typeProp","type","stickyColumn","stickyColumnMostLeft","stickyColumnLeastRight","groupColumnMostLeft","groupColumnMostRight","sortDirection","sorted","sortable","headerTextProps","resizerProps","resizable","resizing","others","tableContext","TableContext","tableSectionContext","TableSectionContext","isHeadCell","Sort","Component","components","Th","role","paragraph","root","undefined","headerContent","sortButton","sortIcon","headerParagraph","headerText","sortableHeaderText","resizer","propTypes","PropTypes","elementType","node","string","instanceOf","Object","oneOf","bool","object","shape","head","body","footer","alignLeft","alignRight","alignCenter","alignJustify","alignFlexLeft","alignFlexRight","alignFlexCenter","alignFlexJustify","variantCheckbox","variantExpand","variantActions","variantNone","isRequired","styles","name"],"sources":["../../../src/Table/TableHeader/TableHeader.js"],"sourcesContent":["import React, { forwardRef, useContext, useMemo } from \"react\";\nimport PropTypes, { object } from \"prop-types\";\nimport clsx from \"clsx\";\nimport capitalize from \"lodash/capitalize\";\n\nimport { withStyles } from \"@material-ui/core\";\nimport { HvButton, HvTypography } from \"@hitachivantara/uikit-react-core\";\nimport { getSortIcon, isParagraph } from \"./utils\";\nimport styles from \"./styles\";\nimport TableContext from \"../TableContext\";\nimport TableSectionContext from \"../TableSectionContext\";\n\nconst defaultComponent = \"th\";\n\n/**\n * `HvTableHeader` acts as a `th` element and inherits styles from its context\n */\nconst HvTableHeader = forwardRef(function HvTableHeader(props, ref) {\n const {\n children,\n\n component,\n\n className,\n style,\n classes,\n\n scope: scopeProp,\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 sortDirection = \"none\",\n sorted,\n sortable,\n headerTextProps,\n\n resizerProps = {},\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 const isHeadCell = type === \"head\";\n\n const scope = scopeProp ?? isHeadCell ? \"col\" : \"row\";\n\n const Sort = useMemo(() => getSortIcon(sorted && sortDirection), [sorted, sortDirection]);\n\n const Component = component || tableContext?.components?.Th || defaultComponent;\n\n // eslint-disable-next-line no-nested-ternary\n const role = Component === defaultComponent ? null : isHeadCell ? \"columnheader\" : \"rowheader\";\n const paragraph = isParagraph(children);\n return (\n <Component\n ref={ref}\n role={role}\n scope={scope}\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\n [classes.stickyColumn]: stickyColumn,\n [classes.stickyColumnMostLeft]: stickyColumnMostLeft,\n [classes.stickyColumnLeastRight]: stickyColumnLeastRight,\n\n [classes.groupColumnMostLeft]: groupColumnMostLeft,\n [classes.groupColumnMostRight]: groupColumnMostRight,\n\n [classes.sortable]: sortable,\n [classes.sorted]: sorted,\n [classes.resizable]: resizable,\n [classes.resizing]: resizing,\n },\n className\n )}\n aria-sort={sortable ? sortDirection : undefined}\n {...others}\n >\n <div\n className={clsx(classes.headerContent, {\n [classes[`alignFlex${capitalize(align)}`]]: align !== \"inherit\",\n })}\n >\n {isHeadCell && sortable && (\n <HvButton className={classes.sortButton} icon overrideIconColors={false}>\n <Sort className={classes.sortIcon} />\n </HvButton>\n )}\n <HvTypography\n component=\"div\"\n className={clsx({\n [classes.headerText]: !paragraph,\n [classes.headerParagraph]: paragraph,\n [classes.sortableHeaderText]: sortable,\n })}\n variant=\"highlightText\"\n {...headerTextProps}\n >\n {children}\n </HvTypography>\n {resizable && <div {...resizerProps} className={classes.resizer} />}\n </div>\n </Component>\n );\n});\n\nHvTableHeader.propTypes = {\n /**\n * The component used for the root node. Either a string to use a HTML element or a component.\n * Defaults to th.\n */\n component: PropTypes.elementType,\n\n /**\n * Content to be rendered\n */\n children: PropTypes.node,\n\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 /**\n * The scope of cells that the header element relates to.\n */\n scope: PropTypes.oneOf([\"col\", \"row\", \"colgroup\", \"rowgroup\"]),\n\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([\"checkbox\", \"expand\", \"actions\", \"default\", \"none\"]),\n\n /**\n * Specify the cell 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 /**\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 /**\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 /**\n * Whether or not the cell is sorted\n */\n sorted: PropTypes.bool,\n /**\n * Whether or not the cell is sortable\n */\n sortable: PropTypes.bool,\n /**\n * Set sort direction icon and aria-sort.\n */\n sortDirection: PropTypes.oneOf([\"ascending\", \"descending\", false]),\n /**\n * Extra props to be passed onto the text in the header.\n */\n headerTextProps: PropTypes.instanceOf(object),\n\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 /**\n * The resize props injected in the resize handler\n */\n resizerProps: PropTypes.instanceOf(object),\n\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 /**\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 /**\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 /**\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 /**\n * Styles applied to the container of the header cell content.\n */\n headerContent: PropTypes.string,\n /**\n * Styles applied to the text of the header cell.\n */\n headerText: PropTypes.string,\n /**\n * Styles applied to the text of the header cell when it is a paragraph.\n */\n headerParagraph: PropTypes.string,\n /**\n * Styles applied to the text of the header cell when it is sorted.\n */\n sortableHeaderText: PropTypes.string,\n\n /**\n * Styles applied to the component root when it is sorted.\n */\n sorted: PropTypes.string,\n /**\n * Styles applied to the component root when it is sortable.\n */\n sortable: PropTypes.string,\n /**\n * Styles applied to the sort button component.\n */\n sortButton: PropTypes.string,\n /**\n * Styles applied to the sort icon component.\n */\n sortIcon: PropTypes.string,\n\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 header content when it is left aligned\n */\n alignFlexLeft: PropTypes.string,\n /**\n * Styles applied to the header content when it is right aligned\n */\n alignFlexRight: PropTypes.string,\n /**\n * Styles applied to the header content when it is center aligned\n */\n alignFlexCenter: PropTypes.string,\n /**\n * Styles applied to the header content when it is justified\n */\n alignFlexJustify: 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 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 /**\n * Styles applied to the resizer object when column is resizable.\n */\n resizer: PropTypes.string,\n }).isRequired,\n};\n\nexport default withStyles(styles, { name: \"HvTableHeader\" })(HvTableHeader);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,IAAMA,gBAAgB,GAAG,IAAzB;AAEA;AACA;AACA;;AACA,IAAMC,aAAa,gBAAG,uBAAW,SAASA,aAAT,CAAuBC,KAAvB,EAA8BC,GAA9B,EAAmC;EAAA;;EAClE,IACEC,QADF,GAiCIF,KAjCJ,CACEE,QADF;EAAA,IAGEC,SAHF,GAiCIH,K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;AACJ;AACA;IACI9B,QAAQ,EAAE2B,mBAAUG,MAjEG;;IAkEvB;AACJ;AACA;IACIV,UAAU,EAAEO,mBAAUG,MArEC;;IAsEvB;AACJ;AACA;IACIT,QAAQ,EAAEM,mBAAUG,MAzEG;;IA2EvB;AACJ;AACA;IACIU,SAAS,EAAEb,mBAAUG,MA9EE;;IA+EvB;AACJ;AACA;IACIW,UAAU,EAAEd,mBAAUG,MAlFC;;IAmFvB;AACJ;AACA;IACIY,WAAW,EAAEf,mBAAUG,MAtFA;;IAuFvB;AACJ;AACA;IACIa,YAAY,EAAEhB,mBAAUG,MA1FD;;IA2FvB;AACJ;AACA;IACIc,aAAa,EAAEjB,mBAAUG,MA9FF;;IA+FvB;AACJ;AACA;IACIe,cAAc,EAAElB,mBAAUG,MAlGH;;IAmGvB;AACJ;AACA;IACIgB,eAAe,EAAEnB,mBAAUG,MAtGJ;;IAuGvB;AACJ;AACA;IACIiB,gBAAgB,EAAEpB,mBAAUG,MA1GL;;IA2GvB;AACJ;AACA;IACIkB,eAAe,EAAErB,mBAAUG,MA9GJ;;IA+GvB;AACJ;AACA;IACImB,aAAa,EAAEtB,mBAAUG,MAlHF;;IAmHvB;AACJ;AACA;IACIoB,cAAc,EAAEvB,mBAAUG,MAtHH;;IAuHvB;AACJ;AACA;IACIqB,WAAW,EAAExB,mBAAUG,MA1HA;;IA2HvB;AACJ;AACA;IACI3B,SAAS,EAAEwB,mBAAUG,MA9HE;;IA+HvB;AACJ;AACA;IACI1B,QAAQ,EAAEuB,mBAAUG,MAlIG;;IAmIvB;AACJ;AACA;IACIL,OAAO,EAAEE,mBAAUG;EAtII,CAAhB,EAuINsB;AAxOqB,CAA1B;;eA2Oe,sBAAWC,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAA8C3E,aAA9C,C"}
|
|
1
|
+
{"version":3,"file":"TableHeader.js","names":["defaultComponent","HvTableHeader","props","ref","children","component","className","style","classes","scopeProp","scope","align","variant","typeProp","type","stickyColumn","stickyColumnMostLeft","stickyColumnLeastRight","groupColumnMostLeft","groupColumnMostRight","sortDirection","sorted","sortable","headerTextProps","resizerProps","resizable","resizing","others","tableContext","TableContext","tableSectionContext","TableSectionContext","isHeadCell","Sort","Component","components","Th","role","paragraph","root","variantList","undefined","headerContent","sortButton","sortIcon","headerParagraph","headerText","sortableHeaderText","resizer","propTypes","PropTypes","elementType","node","string","instanceOf","Object","oneOf","bool","object","shape","head","body","footer","alignLeft","alignRight","alignCenter","alignJustify","alignFlexLeft","alignFlexRight","alignFlexCenter","alignFlexJustify","variantCheckbox","variantExpand","variantActions","variantNone","isRequired","styles","name"],"sources":["../../../src/Table/TableHeader/TableHeader.js"],"sourcesContent":["import React, { forwardRef, useContext, useMemo } from \"react\";\nimport PropTypes, { object } from \"prop-types\";\nimport clsx from \"clsx\";\nimport capitalize from \"lodash/capitalize\";\n\nimport { withStyles } from \"@material-ui/core\";\nimport { HvButton, HvTypography } from \"@hitachivantara/uikit-react-core\";\nimport { getSortIcon, isParagraph } from \"./utils\";\nimport styles from \"./styles\";\nimport TableContext from \"../TableContext\";\nimport TableSectionContext from \"../TableSectionContext\";\n\nconst defaultComponent = \"th\";\n\n/**\n * `HvTableHeader` acts as a `th` element and inherits styles from its context\n */\nconst HvTableHeader = forwardRef(function HvTableHeader(props, ref) {\n const {\n children,\n\n component,\n\n className,\n style,\n classes,\n\n scope: scopeProp,\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 sortDirection = \"none\",\n sorted,\n sortable,\n headerTextProps,\n\n resizerProps = {},\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 const isHeadCell = type === \"head\";\n\n const scope = scopeProp ?? isHeadCell ? \"col\" : \"row\";\n\n const Sort = useMemo(() => getSortIcon(sorted && sortDirection), [sorted, sortDirection]);\n\n const Component = component || tableContext?.components?.Th || defaultComponent;\n\n // eslint-disable-next-line no-nested-ternary\n const role = Component === defaultComponent ? null : isHeadCell ? \"columnheader\" : \"rowheader\";\n const paragraph = isParagraph(children);\n return (\n <Component\n ref={ref}\n role={role}\n scope={scope}\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.stickyColumn]: stickyColumn,\n [classes.stickyColumnMostLeft]: stickyColumnMostLeft,\n [classes.stickyColumnLeastRight]: stickyColumnLeastRight,\n\n [classes.groupColumnMostLeft]: groupColumnMostLeft,\n [classes.groupColumnMostRight]: groupColumnMostRight,\n\n [classes.sortable]: sortable,\n [classes.sorted]: sorted,\n [classes.resizable]: resizable,\n [classes.resizing]: resizing,\n },\n className\n )}\n aria-sort={sortable ? sortDirection : undefined}\n {...others}\n >\n <div\n className={clsx(classes.headerContent, {\n [classes[`alignFlex${capitalize(align)}`]]: align !== \"inherit\",\n })}\n >\n {isHeadCell && sortable && (\n <HvButton className={classes.sortButton} icon overrideIconColors={false}>\n <Sort className={classes.sortIcon} />\n </HvButton>\n )}\n <HvTypography\n component=\"div\"\n className={clsx({\n [classes.headerText]: !paragraph,\n [classes.headerParagraph]: paragraph,\n [classes.sortableHeaderText]: sortable,\n })}\n variant=\"highlightText\"\n {...headerTextProps}\n >\n {children}\n </HvTypography>\n {resizable && <div {...resizerProps} className={classes.resizer} />}\n </div>\n </Component>\n );\n});\n\nHvTableHeader.propTypes = {\n /**\n * The component used for the root node. Either a string to use a HTML element or a component.\n * Defaults to th.\n */\n component: PropTypes.elementType,\n\n /**\n * Content to be rendered\n */\n children: PropTypes.node,\n\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 /**\n * The scope of cells that the header element relates to.\n */\n scope: PropTypes.oneOf([\"col\", \"row\", \"colgroup\", \"rowgroup\"]),\n\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([\"checkbox\", \"expand\", \"actions\", \"default\", \"none\"]),\n\n /**\n * Specify the cell 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 /**\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 /**\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 /**\n * Whether or not the cell is sorted\n */\n sorted: PropTypes.bool,\n /**\n * Whether or not the cell is sortable\n */\n sortable: PropTypes.bool,\n /**\n * Set sort direction icon and aria-sort.\n */\n sortDirection: PropTypes.oneOf([\"ascending\", \"descending\", false]),\n /**\n * Extra props to be passed onto the text in the header.\n */\n headerTextProps: PropTypes.instanceOf(object),\n\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 /**\n * The resize props injected in the resize handler\n */\n resizerProps: PropTypes.instanceOf(object),\n\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 /**\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 /**\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 /**\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 /**\n * Styles applied to the container of the header cell content.\n */\n headerContent: PropTypes.string,\n /**\n * Styles applied to the text of the header cell.\n */\n headerText: PropTypes.string,\n /**\n * Styles applied to the text of the header cell when it is a paragraph.\n */\n headerParagraph: PropTypes.string,\n /**\n * Styles applied to the text of the header cell when it is sorted.\n */\n sortableHeaderText: PropTypes.string,\n\n /**\n * Styles applied to the component root when it is sorted.\n */\n sorted: PropTypes.string,\n /**\n * Styles applied to the component root when it is sortable.\n */\n sortable: PropTypes.string,\n /**\n * Styles applied to the sort button component.\n */\n sortButton: PropTypes.string,\n /**\n * Styles applied to the sort icon component.\n */\n sortIcon: PropTypes.string,\n\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 header content when it is left aligned\n */\n alignFlexLeft: PropTypes.string,\n /**\n * Styles applied to the header content when it is right aligned\n */\n alignFlexRight: PropTypes.string,\n /**\n * Styles applied to the header content when it is center aligned\n */\n alignFlexCenter: PropTypes.string,\n /**\n * Styles applied to the header content when it is justified\n */\n alignFlexJustify: 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 row\n */\n variantList: 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 /**\n * Styles applied to the resizer object when column is resizable.\n */\n resizer: PropTypes.string,\n }).isRequired,\n};\n\nexport default withStyles(styles, { name: \"HvTableHeader\" })(HvTableHeader);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,IAAMA,gBAAgB,GAAG,IAAzB;AAEA;AACA;AACA;;AACA,IAAMC,aAAa,gBAAG,uBAAW,SAASA,aAAT,CAAuBC,KAAvB,EAA8BC,GAA9B,EAAmC;EAAA;;EAClE,IACEC,QADF,GAiCIF,KAjCJ,CACEE,QADF;EAAA,IAGEC,SAHF,GAiCIH,KAjCJ,CAGEG,SAHF;EAAA,IAKEC,SALF,GAiCIJ,KAjCJ,CAKEI,SALF;EAAA,IAMEC,KANF,GAiCIL,KAjCJ,CAMEK,KANF;EAAA,IAOEC,OAPF,GAiCIN,KAjCJ,CAOEM,OAPF;EAAA,IASSC,SATT,GAiCIP,KAjCJ,CASEQ,KATF;EAAA,mBAiCIR,KAjCJ,CAWES,KAXF;EAAA,IAWEA,KAXF,6BAWU,SAXV;EAAA,qBAiCIT,KAjCJ,CAYEU,OAZF;EAAA,IAYEA,OAZF,+BAYY,SAZZ;EAAA,IAcQC,QAdR,GAiCIX,KAjCJ,CAcEY,IAdF;EAAA,0BAiCIZ,KAjCJ,CAgBEa,YAhBF;EAAA,IAgBEA,YAhBF,oCAgBiB,KAhBjB;EAAA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EAAEjB,mBAAUG,MA9FF;;IA+FvB;AACJ;AACA;IACIe,cAAc,EAAElB,mBAAUG,MAlGH;;IAmGvB;AACJ;AACA;IACIgB,eAAe,EAAEnB,mBAAUG,MAtGJ;;IAuGvB;AACJ;AACA;IACIiB,gBAAgB,EAAEpB,mBAAUG,MA1GL;;IA2GvB;AACJ;AACA;IACIkB,eAAe,EAAErB,mBAAUG,MA9GJ;;IA+GvB;AACJ;AACA;IACImB,aAAa,EAAEtB,mBAAUG,MAlHF;;IAmHvB;AACJ;AACA;IACIoB,cAAc,EAAEvB,mBAAUG,MAtHH;;IAuHvB;AACJ;AACA;IACIqB,WAAW,EAAExB,mBAAUG,MA1HA;;IA2HvB;AACJ;AACA;IACIb,WAAW,EAAEU,mBAAUG,MA9HA;;IA+HvB;AACJ;AACA;IACI5B,SAAS,EAAEyB,mBAAUG,MAlIE;;IAmIvB;AACJ;AACA;IACI3B,QAAQ,EAAEwB,mBAAUG,MAtIG;;IAuIvB;AACJ;AACA;IACIL,OAAO,EAAEE,mBAAUG;EA1II,CAAhB,EA2INsB;AA5OqB,CAA1B;;eA+Oe,sBAAWC,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAA8C5E,aAA9C,C"}
|
|
@@ -148,6 +148,15 @@ var styles = function styles(theme) {
|
|
|
148
148
|
maxWidth: 32,
|
|
149
149
|
borderLeft: "solid 1px ".concat(theme.hv.palette.atmosphere.atmo4)
|
|
150
150
|
},
|
|
151
|
+
variantList: {
|
|
152
|
+
backgroundColor: "inherit",
|
|
153
|
+
borderBottom: 0,
|
|
154
|
+
height: 16,
|
|
155
|
+
":first-child > &": {
|
|
156
|
+
borderTop: 0,
|
|
157
|
+
height: 16
|
|
158
|
+
}
|
|
159
|
+
},
|
|
151
160
|
stickyColumn: {
|
|
152
161
|
position: "sticky",
|
|
153
162
|
zIndex: 2,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","names":["styles","theme","root","height","verticalAlign","textAlign","padding","hvSpacing","borderBottom","palette","atmo4","head","borderTop","paddingTop","backgroundColor","atmo1","hv","typography","highlightText","transition","transitions","create","duration","shorter","paddingLeft","cursor","atmo3","visibility","body","normalText","footer","alignLeft","alignCenter","alignRight","flexDirection","alignJustify","headerContent","display","alignItems","headerText","overflow","textOverflow","headerParagraph","sortableHeaderText","alignFlexLeft","justifyContent","alignFlexCenter","alignFlexRight","alignFlexJustify","variantNone","variantCheckbox","width","maxWidth","borderRight","atmosphere","variantExpand","variantActions","borderLeft","stickyColumn","position","zIndex","stickyColumnMostLeft","stickyColumnLeastRight","groupColumnMostLeft","groupColumnMostRight","sortable","sorted","sortButton","boxShadow","sortIcon","resizable","resizing","accent","acce1","resizer","right","top","transform","touchAction"],"sources":["../../../src/Table/TableHeader/styles.js"],"sourcesContent":["import { hexToRgbA } from \"@hitachivantara/uikit-react-core\";\n\nconst styles = (theme) => ({\n root: {\n \"--first-row-cell-height\": \"52px\",\n \"--cell-height\": \"32px\",\n\n height: \"var(--cell-height)\",\n verticalAlign: \"inherit\",\n textAlign: \"left\",\n padding: theme.hvSpacing(0, \"xs\", 0, \"32px\"),\n\n borderBottom: `1px solid ${theme.palette.atmo4}`,\n },\n\n head: {\n \":first-child > &\": {\n height: \"var(--first-row-cell-height)\",\n borderTop: `1px solid ${theme.palette.atmo4}`,\n },\n\n paddingTop: 8,\n verticalAlign: \"top\",\n\n backgroundColor: theme.palette.atmo1,\n borderBottom: `1px solid ${theme.palette.atmo4}`,\n ...theme.hv.typography.highlightText,\n\n transition: theme.transitions.create(\"background-color\", {\n duration: theme.transitions.duration.shorter,\n }),\n\n \"&$sortable\": {\n verticalAlign: \"initial\",\n paddingTop: 0,\n paddingLeft: 0,\n cursor: \"pointer\",\n\n \"&:hover\": {\n backgroundColor: theme.palette.atmo3,\n\n \"& $sortIcon\": {\n visibility: \"visible\",\n },\n },\n \"&:focus-within\": {\n backgroundColor: theme.palette.atmo3,\n\n \"& $sortIcon\": {\n visibility: \"visible\",\n },\n },\n // IE fallback code (using focus-within-polyfill)\n \"&.focus-within\": {\n backgroundColor: theme.palette.atmo3,\n\n \"& $sortIcon\": {\n visibility: \"visible\",\n },\n },\n },\n },\n body: {\n backgroundColor: \"inherit\",\n ...theme.hv.typography.normalText,\n\n \"&$sortable:not($variantNone)\": {\n paddingLeft: 32,\n },\n \"&$sorted\": {\n backgroundColor: hexToRgbA(theme.palette.atmo1, 0.4),\n },\n },\n footer: {},\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 headerContent: {\n display: \"flex\",\n alignItems: \"flex-start\",\n },\n headerText: {\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n },\n headerParagraph: {\n overflow: \"hidden\",\n display: \"-webkit-box\",\n \"-webkit-line-clamp\": 2,\n \"-webkit-box-orient\": \"vertical\",\n },\n sortableHeaderText: {\n paddingTop: \"8px\",\n },\n alignFlexLeft: {\n justifyContent: \"flex-start\",\n },\n alignFlexCenter: {\n justifyContent: \"center\",\n },\n alignFlexRight: {\n justifyContent: \"flex-end\",\n },\n alignFlexJustify: {\n textAlign: \"justify\",\n },\n\n variantNone: {\n padding: 0,\n },\n variantCheckbox: {\n padding: 0,\n width: 32,\n maxWidth: 32,\n borderRight: `solid 1px ${theme.hv.palette.atmosphere.atmo4}`,\n },\n variantExpand: {},\n variantActions: {\n padding: 0,\n width: 32,\n maxWidth: 32,\n borderLeft: `solid 1px ${theme.hv.palette.atmosphere.atmo4}`,\n },\n\n stickyColumn: {\n position: \"sticky\",\n zIndex: 2,\n\n \"&$groupColumnMostRight+$stickyColumn\": {\n borderLeft: 0,\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 sortable: {},\n sorted: {\n \"& $sortIcon\": {\n visibility: \"visible\",\n },\n },\n sortButton: {\n \"$root$sortable &\": {\n boxShadow: \"none\",\n backgroundColor: \"transparent\",\n },\n },\n sortIcon: {\n display: \"inline-flex\",\n visibility: \"hidden\",\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 resizer: {\n display: \"inline-block\",\n width: 10,\n height: \"100%\",\n position: \"absolute\",\n right: 0,\n top: 0,\n transform: \"translateX(50%)\",\n zIndex: 1,\n touchAction: \"none\",\n },\n});\n\nexport default styles;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;EAAA,OAAY;IACzBC,IAAI,EAAE;MACJ,2BAA2B,MADvB;MAEJ,iBAAiB,MAFb;MAIJC,MAAM,EAAE,oBAJJ;MAKJC,aAAa,EAAE,SALX;MAMJC,SAAS,EAAE,MANP;MAOJC,OAAO,EAAEL,KAAK,CAACM,SAAN,CAAgB,CAAhB,EAAmB,IAAnB,EAAyB,CAAzB,EAA4B,MAA5B,CAPL;MASJC,YAAY,sBAAeP,KAAK,CAACQ,OAAN,CAAcC,KAA7B;IATR,CADmB;IAazBC,IAAI;M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QAAQ,EAAE;MACRlB,WAAW,sBAAepD,KAAK,CAACe,EAAN,CAASP,OAAT,CAAiB+D,MAAjB,CAAwBC,KAAvC;IADH,CAjMe;IAqMzBC,OAAO,EAAE;MACPrC,OAAO,EAAE,cADF;MAEPc,KAAK,EAAE,EAFA;MAGPhD,MAAM,EAAE,MAHD;MAIPwD,QAAQ,EAAE,UAJH;MAKPgB,KAAK,EAAE,CALA;MAMPC,GAAG,EAAE,CANE;MAOPC,SAAS,EAAE,iBAPJ;MAQPjB,MAAM,EAAE,CARD;MASPkB,WAAW,EAAE;IATN;EArMgB,CAAZ;AAAA,CAAf;;eAkNe9E,M"}
|
|
1
|
+
{"version":3,"file":"styles.js","names":["styles","theme","root","height","verticalAlign","textAlign","padding","hvSpacing","borderBottom","palette","atmo4","head","borderTop","paddingTop","backgroundColor","atmo1","hv","typography","highlightText","transition","transitions","create","duration","shorter","paddingLeft","cursor","atmo3","visibility","body","normalText","footer","alignLeft","alignCenter","alignRight","flexDirection","alignJustify","headerContent","display","alignItems","headerText","overflow","textOverflow","headerParagraph","sortableHeaderText","alignFlexLeft","justifyContent","alignFlexCenter","alignFlexRight","alignFlexJustify","variantNone","variantCheckbox","width","maxWidth","borderRight","atmosphere","variantExpand","variantActions","borderLeft","variantList","stickyColumn","position","zIndex","stickyColumnMostLeft","stickyColumnLeastRight","groupColumnMostLeft","groupColumnMostRight","sortable","sorted","sortButton","boxShadow","sortIcon","resizable","resizing","accent","acce1","resizer","right","top","transform","touchAction"],"sources":["../../../src/Table/TableHeader/styles.js"],"sourcesContent":["import { hexToRgbA } from \"@hitachivantara/uikit-react-core\";\n\nconst styles = (theme) => ({\n root: {\n \"--first-row-cell-height\": \"52px\",\n \"--cell-height\": \"32px\",\n\n height: \"var(--cell-height)\",\n verticalAlign: \"inherit\",\n textAlign: \"left\",\n padding: theme.hvSpacing(0, \"xs\", 0, \"32px\"),\n\n borderBottom: `1px solid ${theme.palette.atmo4}`,\n },\n\n head: {\n \":first-child > &\": {\n height: \"var(--first-row-cell-height)\",\n borderTop: `1px solid ${theme.palette.atmo4}`,\n },\n\n paddingTop: 8,\n verticalAlign: \"top\",\n\n backgroundColor: theme.palette.atmo1,\n borderBottom: `1px solid ${theme.palette.atmo4}`,\n ...theme.hv.typography.highlightText,\n\n transition: theme.transitions.create(\"background-color\", {\n duration: theme.transitions.duration.shorter,\n }),\n\n \"&$sortable\": {\n verticalAlign: \"initial\",\n paddingTop: 0,\n paddingLeft: 0,\n cursor: \"pointer\",\n\n \"&:hover\": {\n backgroundColor: theme.palette.atmo3,\n\n \"& $sortIcon\": {\n visibility: \"visible\",\n },\n },\n \"&:focus-within\": {\n backgroundColor: theme.palette.atmo3,\n\n \"& $sortIcon\": {\n visibility: \"visible\",\n },\n },\n // IE fallback code (using focus-within-polyfill)\n \"&.focus-within\": {\n backgroundColor: theme.palette.atmo3,\n\n \"& $sortIcon\": {\n visibility: \"visible\",\n },\n },\n },\n },\n body: {\n backgroundColor: \"inherit\",\n ...theme.hv.typography.normalText,\n\n \"&$sortable:not($variantNone)\": {\n paddingLeft: 32,\n },\n \"&$sorted\": {\n backgroundColor: hexToRgbA(theme.palette.atmo1, 0.4),\n },\n },\n footer: {},\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 headerContent: {\n display: \"flex\",\n alignItems: \"flex-start\",\n },\n headerText: {\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n },\n headerParagraph: {\n overflow: \"hidden\",\n display: \"-webkit-box\",\n \"-webkit-line-clamp\": 2,\n \"-webkit-box-orient\": \"vertical\",\n },\n sortableHeaderText: {\n paddingTop: \"8px\",\n },\n alignFlexLeft: {\n justifyContent: \"flex-start\",\n },\n alignFlexCenter: {\n justifyContent: \"center\",\n },\n alignFlexRight: {\n justifyContent: \"flex-end\",\n },\n alignFlexJustify: {\n textAlign: \"justify\",\n },\n\n variantNone: {\n padding: 0,\n },\n variantCheckbox: {\n padding: 0,\n width: 32,\n maxWidth: 32,\n borderRight: `solid 1px ${theme.hv.palette.atmosphere.atmo4}`,\n },\n variantExpand: {},\n variantActions: {\n padding: 0,\n width: 32,\n maxWidth: 32,\n borderLeft: `solid 1px ${theme.hv.palette.atmosphere.atmo4}`,\n },\n variantList: {\n backgroundColor: \"inherit\",\n borderBottom: 0,\n height: 16,\n \":first-child > &\": {\n borderTop: 0,\n height: 16,\n },\n },\n stickyColumn: {\n position: \"sticky\",\n zIndex: 2,\n\n \"&$groupColumnMostRight+$stickyColumn\": {\n borderLeft: 0,\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 sortable: {},\n sorted: {\n \"& $sortIcon\": {\n visibility: \"visible\",\n },\n },\n sortButton: {\n \"$root$sortable &\": {\n boxShadow: \"none\",\n backgroundColor: \"transparent\",\n },\n },\n sortIcon: {\n display: \"inline-flex\",\n visibility: \"hidden\",\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 resizer: {\n display: \"inline-block\",\n width: 10,\n height: \"100%\",\n position: \"absolute\",\n right: 0,\n top: 0,\n transform: \"translateX(50%)\",\n zIndex: 1,\n touchAction: \"none\",\n },\n});\n\nexport default styles;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;EAAA,OAAY;IACzBC,IAAI,EAAE;MACJ,2BAA2B,MADvB;MAEJ,iBAAiB,MAFb;MAIJC,MAAM,EAAE,oBAJJ;MAKJC,aAAa,EAAE,SALX;MAMJC,SAAS,EAAE,MANP;MAOJC,OAAO,EAAEL,KAAK,CAACM,SAAN,CAAgB,CAAhB,EAAmB,IAAnB,EAAyB,CAAzB,EAA4B,MAA5B,CAPL;MASJC,YAAY,sBAAeP,KAAK,CAACQ,OAAN,CAAcC,KAA7B;IATR,CADmB;IAazBC,IAAI;MACF,oBAAoB;QAClBR,MAAM,EAAE,8BADU;QAElBS,SAAS,sBAAeX,KAAK,CAACQ,OAAN,CAAcC,KAA7B;MAFS,CADlB;MAMFG,UAAU,EAAE,CANV;MAOFT,aAAa,EAAE,KAPb;MASFU,eAAe,EAAEb,KAAK,CAACQ,OAAN,CAAcM,KAT7B;MAUFP,YAAY,sBAAeP,KAAK,CAACQ,OAAN,CAAcC,KAA7B;IAVV,GAWCT,KAAK,CAACe,EAAN,CAASC,UAAT,CAAoBC,aAXrB;MAaFC,UAAU,EAAElB,KAAK,CAACmB,WAAN,CAAkBC,MAAlB,CAAyB,kBAAzB,EAA6C;QACvDC,QAAQ,EAAErB,KAAK,CAACmB,WAAN,CAAkBE,QAAlB,CAA2BC;MADkB,CAA7C,CAbV;MAiBF,cAAc;QACZnB,aAAa,EAAE,SADH;QAEZS,UAAU,EAAE,CAFA;QAGZW,WAAW,EAAE,CAHD;QAIZC,MAAM,EAAE,SAJI;QAMZ,WAAW;UACTX,eAAe,EAAEb,KAAK,CAACQ,OAAN,CAAciB,KADtB;UAGT,eAAe;YACbC,UAA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
-
| "striped"
|
|
11
|
+
| "striped"
|
|
12
|
+
| "variantList"
|
|
13
|
+
| "variantListHead";
|
|
12
14
|
|
|
13
15
|
export interface HvTableRowProps
|
|
14
16
|
extends StandardProps<React.HTMLAttributes<HTMLTableRowElement>, HvTableRowClassKey> {
|
|
@@ -68,10 +68,14 @@ var HvTableRow = /*#__PURE__*/(0, _react.forwardRef)(function HvTableRow(props,
|
|
|
68
68
|
var tableContext = (0, _react.useContext)(_TableContext.default);
|
|
69
69
|
var tableSectionContext = (0, _react.useContext)(_TableSectionContext.default);
|
|
70
70
|
var type = (tableSectionContext === null || tableSectionContext === void 0 ? void 0 : tableSectionContext.type) || "body";
|
|
71
|
+
var isList = tableContext.variant === "listrow";
|
|
71
72
|
var Component = component || (tableContext === null || tableContext === void 0 ? void 0 : (_tableContext$compone = tableContext.components) === null || _tableContext$compone === void 0 ? void 0 : _tableContext$compone.Tr) || defaultComponent;
|
|
72
73
|
return /*#__PURE__*/_react.default.createElement(Component, (0, _extends2.default)({
|
|
73
74
|
ref: ref,
|
|
74
|
-
className: (0, _clsx.default)(classes.root, classes[type],
|
|
75
|
+
className: (0, _clsx.default)(classes.root, classes[type], tableSectionContext.filterClassName, className, isList && {
|
|
76
|
+
"body": classes.variantList,
|
|
77
|
+
"head": classes.variantListHead
|
|
78
|
+
}[type], hover && classes.hover, selected && classes.selected, expanded && classes.expanded, striped && classes.striped),
|
|
75
79
|
role: Component === defaultComponent ? null : "row"
|
|
76
80
|
}, others));
|
|
77
81
|
});
|
|
@@ -154,7 +158,17 @@ process.env.NODE_ENV !== "production" ? HvTableRow.propTypes = {
|
|
|
154
158
|
/**
|
|
155
159
|
* Styles applied to the component root when inside a `HvTableFooter`.
|
|
156
160
|
*/
|
|
157
|
-
footer: _propTypes.default.string
|
|
161
|
+
footer: _propTypes.default.string,
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Styles applied to the component root when its table variant is list.
|
|
165
|
+
*/
|
|
166
|
+
variantList: _propTypes.default.string,
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Styles applied to the component root when its table variant is list.
|
|
170
|
+
*/
|
|
171
|
+
variantListHead: _propTypes.default.string
|
|
158
172
|
}).isRequired
|
|
159
173
|
} : void 0;
|
|
160
174
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableRow.js","names":["defaultComponent","HvTableRow","props","ref","classes","className","component","hover","selected","expanded","striped","others","tableContext","TableContext","tableSectionContext","TableSectionContext","type","Component","components","Tr","root","propTypes","PropTypes","elementType","children","node","string","bool","shape","head","body","footer","isRequired","styles","name"],"sources":["../../../src/Table/TableRow/TableRow.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 styles from \"./styles\";\nimport TableContext from \"../TableContext\";\nimport TableSectionContext from \"../TableSectionContext\";\n\nconst defaultComponent = \"tr\";\n\n/**\n * `HvTableRow` acts as a `tr` element and inherits styles from its context\n */\nconst HvTableRow = forwardRef(function HvTableRow(props, ref) {\n const {\n classes,\n className,\n component,\n hover = false,\n selected = false,\n expanded = false,\n striped = false,\n ...others\n } = props;\n\n const tableContext = useContext(TableContext);\n const tableSectionContext = useContext(TableSectionContext);\n\n const type = tableSectionContext?.type || \"body\";\n\n const Component = component || tableContext?.components?.Tr || defaultComponent;\n\n return (\n <Component\n ref={ref}\n className={clsx(\n classes.root,\n classes[type],\n {\n [classes.hover]: hover,\n [classes.selected]: selected,\n [classes.expanded]: expanded,\n [classes.striped]: striped,\n },\n className\n )}\n role={Component === defaultComponent ? null : \"row\"}\n {...others}\n />\n );\n});\n\nHvTableRow.propTypes = {\n /**\n * The component used for the root node. Either a string to use a HTML element or a component.\n * Defaults to tr.\n */\n component: PropTypes.elementType,\n
|
|
1
|
+
{"version":3,"file":"TableRow.js","names":["defaultComponent","HvTableRow","props","ref","classes","className","component","hover","selected","expanded","striped","others","tableContext","TableContext","tableSectionContext","TableSectionContext","type","isList","variant","Component","components","Tr","root","filterClassName","variantList","variantListHead","propTypes","PropTypes","elementType","children","node","string","bool","shape","head","body","footer","isRequired","styles","name"],"sources":["../../../src/Table/TableRow/TableRow.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 styles from \"./styles\";\nimport TableContext from \"../TableContext\";\nimport TableSectionContext from \"../TableSectionContext\";\n\nconst defaultComponent = \"tr\";\n\n/**\n * `HvTableRow` acts as a `tr` element and inherits styles from its context\n */\nconst HvTableRow = forwardRef(function HvTableRow(props, ref) {\n const {\n classes,\n className,\n component,\n hover = false,\n selected = false,\n expanded = false,\n striped = false,\n ...others\n } = props;\n\n const tableContext = useContext(TableContext);\n const tableSectionContext = useContext(TableSectionContext);\n\n const type = tableSectionContext?.type || \"body\";\n\n const isList = tableContext.variant === \"listrow\";\n\n const Component = component || tableContext?.components?.Tr || defaultComponent;\n\n return (\n <Component\n ref={ref}\n className={clsx(\n classes.root,\n classes[type],\n {\n [classes.hover]: hover,\n [classes.selected]: selected,\n [classes.expanded]: expanded,\n [classes.striped]: striped,\n [classes.variantList]: isList && type === \"body\",\n [classes.variantListHead]: isList && type === \"head\",\n },\n tableSectionContext.filterClassName,\n className\n )}\n role={Component === defaultComponent ? null : \"row\"}\n {...others}\n />\n );\n});\n\nHvTableRow.propTypes = {\n /**\n * The component used for the root node. Either a string to use a HTML element or a component.\n * Defaults to tr.\n */\n component: PropTypes.elementType,\n /**\n * Content to be rendered\n */\n children: PropTypes.node,\n\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n\n /**\n * Whether the table row will shade on hover.\n */\n hover: PropTypes.bool,\n /**\n * Whether the table row will have the selected shading.\n */\n selected: PropTypes.bool,\n /**\n * Whether the table row is expanded.\n */\n expanded: PropTypes.bool,\n /**\n * Whether the table row background is striped.\n */\n striped: 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 component root when selected.\n */\n selected: PropTypes.string,\n /**\n * Styles applied to the component root when expanded.\n */\n expanded: PropTypes.string,\n /**\n * Styles applied to the component root when striped.\n */\n striped: PropTypes.string,\n /**\n * Styles applied to the component root on hover.\n */\n hover: PropTypes.string,\n /**\n * Styles applied to the component root when inside a `HvTableHead`.\n */\n head: PropTypes.string,\n /**\n * Styles applied to the component root when inside a `HvTableBody`.\n */\n body: PropTypes.string,\n /**\n * Styles applied to the component root when inside a `HvTableFooter`.\n */\n footer: PropTypes.string,\n /**\n * Styles applied to the component root when its table variant is list.\n */\n variantList: PropTypes.string,\n /**\n * Styles applied to the component root when its table variant is list.\n */\n variantListHead: PropTypes.string,\n }).isRequired,\n};\n\nexport default withStyles(styles, { name: \"HvTableRow\" })(HvTableRow);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAEA;;AACA;;AACA;;;;;;;;AAEA,IAAMA,gBAAgB,GAAG,IAAzB;AAEA;AACA;AACA;;AACA,IAAMC,UAAU,gBAAG,uBAAW,SAASA,UAAT,CAAoBC,KAApB,EAA2BC,GAA3B,EAAgC;EAAA;;EAC5D,IACEC,OADF,GASIF,KATJ,CACEE,OADF;EAAA,IAEEC,SAFF,GASIH,KATJ,CAEEG,SAFF;EAAA,IAGEC,SAHF,GASIJ,KATJ,CAGEI,SAHF;EAAA,mBASIJ,KATJ,CAIEK,KAJF;EAAA,IAIEA,KAJF,6BAIU,KAJV;EAAA,sBASIL,KATJ,CAKEM,QALF;EAAA,IAKEA,QALF,gCAKa,KALb;EAAA,sBASIN,KATJ,CAMEO,QANF;EAAA,IAMEA,QANF,gCAMa,KANb;EAAA,qBASIP,KATJ,CAOEQ,OAPF;EAAA,IAOEA,OAPF,+BAOY,KAPZ;EAAA,IAQKC,MARL,0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ACF;AACA;EACExB,QAAQ,EAAEmB,mBAAUK,IAvBC;;EAwBrB;AACF;AACA;EACEvB,QAAQ,EAAEkB,mBAAUK,IA3BC;;EA4BrB;AACF;AACA;EACEtB,OAAO,EAAEiB,mBAAUK,IA/BE;;EAgCrB;AACF;AACA;EACE5B,OAAO,EAAEuB,mBAAUM,KAAV,CAAgB;IACvB;AACJ;AACA;IACIX,IAAI,EAAEK,mBAAUI,MAJO;;IAKvB;AACJ;AACA;IACIvB,QAAQ,EAAEmB,mBAAUI,MARG;;IASvB;AACJ;AACA;IACItB,QAAQ,EAAEkB,mBAAUI,MAZG;;IAavB;AACJ;AACA;IACIrB,OAAO,EAAEiB,mBAAUI,MAhBI;;IAiBvB;AACJ;AACA;IACIxB,KAAK,EAAEoB,mBAAUI,MApBM;;IAqBvB;AACJ;AACA;IACIG,IAAI,EAAEP,mBAAUI,MAxBO;;IAyBvB;AACJ;AACA;IACII,IAAI,EAAER,mBAAUI,MA5BO;;IA6BvB;AACJ;AACA;IACIK,MAAM,EAAET,mBAAUI,MAhCK;;IAiCvB;AACJ;AACA;IACIP,WAAW,EAAEG,mBAAUI,MApCA;;IAqCvB;AACJ;AACA;IACIN,eAAe,EAAEE,mBAAUI;EAxCJ,CAAhB,EAyCNM;AA5EkB,CAAvB;;eA+Ee,sBAAWC,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAA2CtC,UAA3C,C"}
|
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
+
require("core-js/modules/es.array.concat.js");
|
|
9
|
+
|
|
8
10
|
var _core = require("@material-ui/core");
|
|
9
11
|
|
|
10
12
|
var _styles = require("@material-ui/core/styles");
|
|
@@ -31,9 +33,7 @@ var styles = function styles(theme) {
|
|
|
31
33
|
},
|
|
32
34
|
body: {},
|
|
33
35
|
footer: {},
|
|
34
|
-
selected: {
|
|
35
|
-
backgroundColor: theme.palette.atmo1
|
|
36
|
-
},
|
|
36
|
+
selected: {},
|
|
37
37
|
expanded: {
|
|
38
38
|
backgroundColor: theme.palette.atmo1,
|
|
39
39
|
"& > *[role=cell]": {
|
|
@@ -52,6 +52,31 @@ var styles = function styles(theme) {
|
|
|
52
52
|
"&:hover": {
|
|
53
53
|
backgroundColor: theme.palette.atmo3
|
|
54
54
|
}
|
|
55
|
+
},
|
|
56
|
+
variantList: {
|
|
57
|
+
borderBottom: 0,
|
|
58
|
+
backgroundColor: theme.palette.atmo1,
|
|
59
|
+
height: 52,
|
|
60
|
+
"&$selected": {
|
|
61
|
+
boxShadow: "1px 1px ".concat(theme.hv.palette.accent.acce1, ", -1px -1px ").concat(theme.hv.palette.accent.acce1, ", -1px 1px ").concat(theme.hv.palette.accent.acce1, ", 1px -1px ").concat(theme.hv.palette.accent.acce1),
|
|
62
|
+
"&:hover": {
|
|
63
|
+
boxShadow: "1px 1px ".concat(theme.hv.palette.accent.acce1, ", -1px -1px ").concat(theme.hv.palette.accent.acce1, ", -1px 1px ").concat(theme.hv.palette.accent.acce1, ", 1px -1px ").concat(theme.hv.palette.accent.acce1),
|
|
64
|
+
background: theme.hv.palette.atmosphere.atmo1
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"&:hover": {
|
|
68
|
+
boxShadow: "1px 1px ".concat(theme.hv.palette.atmosphere.atmo4, ", -1px -1px ").concat(theme.hv.palette.atmosphere.atmo4, ", -1px 1px ").concat(theme.hv.palette.atmosphere.atmo4, ", 1px -1px ").concat(theme.hv.palette.atmosphere.atmo4),
|
|
69
|
+
background: theme.hv.palette.atmosphere.atmo1
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
variantListHead: {
|
|
73
|
+
height: 16,
|
|
74
|
+
"&:first-child": {
|
|
75
|
+
height: 16
|
|
76
|
+
},
|
|
77
|
+
"tr&:first-child": {
|
|
78
|
+
height: 16
|
|
79
|
+
}
|
|
55
80
|
}
|
|
56
81
|
};
|
|
57
82
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","names":["styles","theme","root","color","backgroundColor","verticalAlign","outline","minHeight","height","head","body","footer","selected","
|
|
1
|
+
{"version":3,"file":"styles.js","names":["styles","theme","root","color","backgroundColor","verticalAlign","outline","minHeight","height","head","body","footer","selected","expanded","palette","atmo1","borderBottom","striped","hover","transition","transitions","create","duration","shortest","atmo3","variantList","boxShadow","hv","accent","acce1","background","atmosphere","atmo4","variantListHead"],"sources":["../../../src/Table/TableRow/styles.js"],"sourcesContent":["import { hexToRgb } from \"@material-ui/core\";\nimport { alpha } from \"@material-ui/core/styles\";\n\nconst styles = (theme) => ({\n root: {\n color: \"inherit\",\n backgroundColor: \"inherit\",\n verticalAlign: \"middle\",\n outline: 0,\n minHeight: 32,\n \"tr&\": {\n height: 32,\n },\n },\n head: {\n \"&:first-child\": {\n height: 52,\n },\n\n \"tr&:first-child\": {\n height: 52,\n },\n },\n body: {},\n footer: {},\n selected: {},\n expanded: {\n backgroundColor: theme.palette.atmo1,\n \"& > *[role=cell]\": {\n borderBottom: \"none\",\n },\n },\n striped: {\n \"&:nth-child(even)\": {\n backgroundColor: alpha(hexToRgb(theme.palette.atmo1), 0.6),\n },\n },\n hover: {\n transition: theme.transitions.create(\"background-color\", {\n duration: theme.transitions.duration.shortest,\n }),\n\n \"&:hover\": {\n backgroundColor: theme.palette.atmo3,\n },\n },\n variantList: {\n borderBottom: 0,\n backgroundColor: theme.palette.atmo1,\n height: 52,\n \"&$selected\": {\n boxShadow: `1px 1px ${theme.hv.palette.accent.acce1}, -1px -1px ${theme.hv.palette.accent.acce1}, -1px 1px ${theme.hv.palette.accent.acce1}, 1px -1px ${theme.hv.palette.accent.acce1}`,\n\n \"&:hover\": {\n boxShadow: `1px 1px ${theme.hv.palette.accent.acce1}, -1px -1px ${theme.hv.palette.accent.acce1}, -1px 1px ${theme.hv.palette.accent.acce1}, 1px -1px ${theme.hv.palette.accent.acce1}`,\n background: theme.hv.palette.atmosphere.atmo1,\n },\n },\n\n \"&:hover\": {\n boxShadow: `1px 1px ${theme.hv.palette.atmosphere.atmo4}, -1px -1px ${theme.hv.palette.atmosphere.atmo4}, -1px 1px ${theme.hv.palette.atmosphere.atmo4}, 1px -1px ${theme.hv.palette.atmosphere.atmo4}`,\n background: theme.hv.palette.atmosphere.atmo1,\n },\n },\n variantListHead: {\n height: 16,\n \"&:first-child\": {\n height: 16,\n },\n\n \"tr&:first-child\": {\n height: 16,\n },\n },\n});\n\nexport default styles;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;EAAA,OAAY;IACzBC,IAAI,EAAE;MACJC,KAAK,EAAE,SADH;MAEJC,eAAe,EAAE,SAFb;MAGJC,aAAa,EAAE,QAHX;MAIJC,OAAO,EAAE,CAJL;MAKJC,SAAS,EAAE,EALP;MAMJ,OAAO;QACLC,MAAM,EAAE;MADH;IANH,CADmB;IAWzBC,IAAI,EAAE;MACJ,iBAAiB;QACfD,MAAM,EAAE;MADO,CADb;MAKJ,mBAAmB;QACjBA,MAAM,EAAE;MADS;IALf,CAXmB;IAoBzBE,IAAI,EAAE,EApBmB;IAqBzBC,MAAM,EAAE,EArBiB;IAsBzBC,QAAQ,EAAE,EAtBe;IAuBzBC,QAAQ,EAAE;MACRT,eAAe,EAAEH,KAAK,CAACa,OAAN,CAAcC,KADvB;MAER,oBAAoB;QAClBC,YAAY,EAAE;MADI;IAFZ,CAvBe;IA6BzBC,OAAO,EAAE;MACP,qBAAqB;QACnBb,eAAe,EAAE,mBAAM,oBAASH,KAAK,CAACa,OAAN,CAAcC,KAAvB,CAAN,EAAqC,GAArC;MADE;IADd,CA7BgB;IAkCzBG,KAAK,EAAE;MACLC,UAAU,EAAElB,KAAK,CAACmB,WAAN,CAAkBC,MAAlB,CAAyB,kBAAzB,EAA6C;QACvDC,QAAQ,EAAErB,KAAK,CAACmB,WAAN,CAAkB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I,wBAA2J/B,KAAK,CAAC0B,EAAN,CAASb,OAAT,CAAiBiB,UAAjB,CAA4BC,KAAvL,CADA;QAETF,UAAU,EAAE7B,KAAK,CAAC0B,EAAN,CAASb,OAAT,CAAiBiB,UAAjB,CAA4BhB;MAF/B;IAbA,CA3CY;IA6DzBkB,eAAe,EAAE;MACfzB,MAAM,EAAE,EADO;MAEf,iBAAiB;QACfA,MAAM,EAAE;MADO,CAFF;MAMf,mBAAmB;QACjBA,MAAM,EAAE;MADS;IANJ;EA7DQ,CAAZ;AAAA,CAAf;;eAyEeR,M"}
|
package/dist/Table/styles.js
CHANGED
package/dist/Table/styles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","names":["styles","theme","root","position","width","hv","typography","normalText","borderSpacing","padding","spacing","textAlign","captionSide","stickyHeader","stickyColumns","backgroundColor","palette","atmosphere","atmo2"],"sources":["../../src/Table/styles.js"],"sourcesContent":["const styles = (theme) => ({\n root: {\n position: \"relative\",\n width: \"100%\",\n\n ...theme.hv.typography.normalText,\n\n \"table&\": {\n borderSpacing: 0,\n },\n\n \"& caption\": {\n ...theme.typography.normalText,\n padding: theme.spacing(\"xs\"),\n textAlign: \"left\",\n captionSide: \"bottom\",\n },\n },\n stickyHeader: {},\n stickyColumns: {\n backgroundColor: theme.hv.palette.atmosphere.atmo2,\n },\n});\n\nexport default styles;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;EAAA,OAAY;IACzBC,IAAI;MACFC,QAAQ,EAAE,UADR;MAEFC,KAAK,EAAE;IAFL,GAICH,KAAK,CAACI,EAAN,CAASC,UAAT,CAAoBC,UAJrB;MAMF,UAAU;QACRC,aAAa,EAAE;MADP,CANR;MAUF,6CACKP,KAAK,CAACK,UAAN,CAAiBC,UADtB;QAEEE,OAAO,EAAER,KAAK,CAACS,OAAN,CAAc,IAAd,CAFX;QAGEC,SAAS,EAAE,MAHb;QAIEC,WAAW,EAAE;MAJf;IAVE,EADqB;IAkBzBC,YAAY,EAAE,EAlBW;IAmBzBC,aAAa,EAAE;MACbC,eAAe,EAAEd,KAAK,CAACI,EAAN,CAASW,OAAT,CAAiBC,UAAjB,CAA4BC;IADhC;
|
|
1
|
+
{"version":3,"file":"styles.js","names":["styles","theme","root","position","width","hv","typography","normalText","borderSpacing","padding","spacing","textAlign","captionSide","stickyHeader","stickyColumns","backgroundColor","palette","atmosphere","atmo2","listRow","hvSpacing"],"sources":["../../src/Table/styles.js"],"sourcesContent":["const styles = (theme) => ({\n root: {\n position: \"relative\",\n width: \"100%\",\n\n ...theme.hv.typography.normalText,\n\n \"table&\": {\n borderSpacing: 0,\n },\n\n \"& caption\": {\n ...theme.typography.normalText,\n padding: theme.spacing(\"xs\"),\n textAlign: \"left\",\n captionSide: \"bottom\",\n },\n },\n stickyHeader: {},\n stickyColumns: {\n backgroundColor: theme.hv.palette.atmosphere.atmo2,\n },\n listRow: {\n \"table&\": {\n borderSpacing: theme.hvSpacing(0, \"xs\"),\n },\n },\n});\n\nexport default styles;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;EAAA,OAAY;IACzBC,IAAI;MACFC,QAAQ,EAAE,UADR;MAEFC,KAAK,EAAE;IAFL,GAICH,KAAK,CAACI,EAAN,CAASC,UAAT,CAAoBC,UAJrB;MAMF,UAAU;QACRC,aAAa,EAAE;MADP,CANR;MAUF,6CACKP,KAAK,CAACK,UAAN,CAAiBC,UADtB;QAEEE,OAAO,EAAER,KAAK,CAACS,OAAN,CAAc,IAAd,CAFX;QAGEC,SAAS,EAAE,MAHb;QAIEC,WAAW,EAAE;MAJf;IAVE,EADqB;IAkBzBC,YAAY,EAAE,EAlBW;IAmBzBC,aAAa,EAAE;MACbC,eAAe,EAAEd,KAAK,CAACI,EAAN,CAASW,OAAT,CAAiBC,UAAjB,CAA4BC;IADhC,CAnBU;IAsBzBC,OAAO,EAAE;MACP,UAAU;QACRX,aAAa,EAAEP,KAAK,CAACmB,SAAN,CAAgB,CAAhB,EAAmB,IAAnB;MADP;IADH;EAtBgB,CAAZ;AAAA,CAAf;;eA6BepB,M"}
|
package/dist/index.js
CHANGED
|
@@ -189,7 +189,19 @@ var _Drawer = _interopRequireDefault(require("./Drawer"));
|
|
|
189
189
|
|
|
190
190
|
var _ColorPicker = _interopRequireDefault(require("./ColorPicker"));
|
|
191
191
|
|
|
192
|
-
var _QueryBuilder =
|
|
192
|
+
var _QueryBuilder = _interopRequireWildcard(require("./QueryBuilder"));
|
|
193
|
+
|
|
194
|
+
Object.keys(_QueryBuilder).forEach(function (key) {
|
|
195
|
+
if (key === "default" || key === "__esModule") return;
|
|
196
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
197
|
+
if (key in exports && exports[key] === _QueryBuilder[key]) return;
|
|
198
|
+
Object.defineProperty(exports, key, {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function get() {
|
|
201
|
+
return _QueryBuilder[key];
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
});
|
|
193
205
|
|
|
194
206
|
var _InlineEditor = _interopRequireDefault(require("./InlineEditor"));
|
|
195
207
|
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/index.js"],"sourcesContent":["// components\nexport { default as HvAppSwitcherPanel } from \"./AppSwitcherPanel\";\nexport * from \"./AppSwitcherPanel\";\nexport { default as HvFormComposer } from \"./FormComposer\";\nexport { default as HvNavigationAnchors } from \"./NavigationAnchors\";\nexport { default as HvNotificationPanel } from \"./NotificationPanel\";\nexport { default as HvSlider } from \"./Slider\";\nexport { default as HvTable } from \"./Table\";\nexport * from \"./Table\";\nexport { default as HvTimeAgo } from \"./TimeAgo\";\nexport * from \"./TimeAgo\";\nexport { default as HvTimePicker } from \"./TimePicker\";\nexport { default as HvTag } from \"./Tag\";\nexport { default as HvDrawer } from \"./Drawer\";\nexport { default as HvColorPicker } from \"./ColorPicker\";\nexport { default as HvQueryBuilder } from \"./QueryBuilder\";\nexport { default as HvInlineEditor } from \"./InlineEditor\";\nexport { default as HvProgressBar } from \"./ProgressBar\";\nexport { default as HvDotPagination } from \"./DotPagination\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.js"],"sourcesContent":["// components\nexport { default as HvAppSwitcherPanel } from \"./AppSwitcherPanel\";\nexport * from \"./AppSwitcherPanel\";\nexport { default as HvFormComposer } from \"./FormComposer\";\nexport { default as HvNavigationAnchors } from \"./NavigationAnchors\";\nexport { default as HvNotificationPanel } from \"./NotificationPanel\";\nexport { default as HvSlider } from \"./Slider\";\nexport { default as HvTable } from \"./Table\";\nexport * from \"./Table\";\nexport { default as HvTimeAgo } from \"./TimeAgo\";\nexport * from \"./TimeAgo\";\nexport { default as HvTimePicker } from \"./TimePicker\";\nexport { default as HvTag } from \"./Tag\";\nexport { default as HvDrawer } from \"./Drawer\";\nexport { default as HvColorPicker } from \"./ColorPicker\";\nexport { default as HvQueryBuilder } from \"./QueryBuilder\";\nexport * from \"./QueryBuilder\";\nexport { default as HvInlineEditor } from \"./InlineEditor\";\nexport { default as HvProgressBar } from \"./ProgressBar\";\nexport { default as HvDotPagination } from \"./DotPagination\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AACA;;AACA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext } from "react";
|
|
2
|
-
var defaultOperators = {
|
|
2
|
+
export var defaultOperators = {
|
|
3
3
|
numeric: [{
|
|
4
4
|
operator: "greaterThan",
|
|
5
5
|
label: "Greater than (>)",
|
|
@@ -130,14 +130,14 @@ var defaultOperators = {
|
|
|
130
130
|
combinators: ["and"]
|
|
131
131
|
}]
|
|
132
132
|
};
|
|
133
|
-
var defaultCombinators = [{
|
|
133
|
+
export var defaultCombinators = [{
|
|
134
134
|
operand: "and",
|
|
135
135
|
label: "AND"
|
|
136
136
|
}, {
|
|
137
137
|
operand: "or",
|
|
138
138
|
label: "OR"
|
|
139
139
|
}];
|
|
140
|
-
var defaultLabels = {
|
|
140
|
+
export var defaultLabels = {
|
|
141
141
|
query: {
|
|
142
142
|
delete: {
|
|
143
143
|
ariaLabel: "Reset query",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Context.js","names":["createContext","defaultOperators","numeric","operator","label","combinators","text","textarea","boolean","dateandtime","defaultCombinators","operand","defaultLabels","query","delete","ariaLabel","tooltip","dialogTitle","dialogMessage","dialogConfirm","dialogCancel","dialogCloseTooltip","rule","attribute","placeholder","exists","value","distance","connectorText","button","validation","required","invalid","options","true","false","equal","greaterThan","range","leftLabel","rightLabel","datetime","dateLabel","datePlaceholder","timeLabel","timePlaceholder","startDateLabel","startDatePlaceholder","startTimeLabel","startTimePlaceholder","endDateLabel","endDatePlaceholder","endTimeLabel","endTimePlaceholder","invalidInterval","group","reset","addRule","addGroup","empty","title","createCondition","createGroup","spacer","dispatchAction","askAction","selectLocation","attributes","operators","maxDepth","labels","initialTouched"],"sources":["../../../src/QueryBuilder/Context.js"],"sourcesContent":["import { createContext } from \"react\";\n\nconst defaultOperators = {\n numeric: [\n {\n operator: \"greaterThan\",\n label: \"Greater than (>)\",\n combinators: [\"and\"],\n },\n {\n operator: \"lessThan\",\n label: \"Less than (<)\",\n combinators: [\"and\"],\n },\n {\n operator: \"equalsTo\",\n label: \"Equal to (=)\",\n combinators: [\"and\", \"or\"],\n },\n {\n operator: \"greaterThanEq\",\n label: \"Greater than or equal to (>=)\",\n combinators: [\"and\"],\n },\n {\n operator: \"lessThanEq\",\n label: \"Less than or equal to (<=)\",\n combinators: [\"and\"],\n },\n {\n operator: \"notEqual\",\n label: \"Not equal to (!=)\",\n combinators: [\"and\"],\n },\n {\n operator: \"range\",\n label: \"Range\",\n combinators: [\"and\"],\n },\n ],\n text: [\n {\n operator: \"equals\",\n label: \"Equals\",\n combinators: [\"and\", \"or\"],\n },\n {\n operator: \"equalsIgnoreCase\",\n label: \"Equals Ignore Case\",\n combinators: [\"and\", \"or\"],\n },\n {\n operator: \"Contains\",\n label: \"Contains\",\n combinators: [\"and\", \"or\"],\n },\n {\n operator: \"StartsWith\",\n label: \"A string begins with\",\n combinators: [\"and\", \"or\"],\n },\n {\n operator: \"EndsWith\",\n label: \"A string ends with\",\n combinators: [\"and\", \"or\"],\n },\n {\n operator: \"IsNotEmpty\",\n label: \"Is Not empty\",\n combinators: [\"and\"],\n },\n {\n operator: \"IsNot\",\n label: \"Is Not\",\n combinators: [\"and\"],\n },\n {\n operator: \"Empty\",\n label: \"Empty\",\n combinators: [\"and\"],\n },\n ],\n textarea: [\n {\n operator: \"equals\",\n label: \"Equals\",\n combinators: [\"and\", \"or\"],\n },\n {\n operator: \"equalsIgnoreCase\",\n label: \"Equals Ignore Case\",\n combinators: [\"and\", \"or\"],\n },\n {\n operator: \"Contains\",\n label: \"Contains\",\n combinators: [\"and\", \"or\"],\n },\n {\n operator: \"StartsWith\",\n label: \"A string begins with\",\n combinators: [\"and\", \"or\"],\n },\n {\n operator: \"EndsWith\",\n label: \"A string ends with\",\n combinators: [\"and\", \"or\"],\n },\n {\n operator: \"IsNotEmpty\",\n label: \"Is Not empty\",\n combinators: [\"and\"],\n },\n {\n operator: \"IsNot\",\n label: \"Is Not\",\n combinators: [\"and\"],\n },\n {\n operator: \"Empty\",\n label: \"Empty\",\n combinators: [\"and\"],\n },\n ],\n boolean: [\n {\n operator: \"equalsTo\",\n label: \"=\",\n combinators: [\"and\", \"or\"],\n },\n ],\n dateandtime: [\n {\n operator: \"greaterThan\",\n label: \"Greater than\",\n combinators: [\"and\"],\n },\n {\n operator: \"lessThan\",\n label: \"Less than\",\n combinators: [\"and\"],\n },\n {\n operator: \"equalsTo\",\n label: \"Equal to\",\n combinators: [\"and\", \"or\"],\n },\n {\n operator: \"greaterThanEq\",\n label: \"Greater than or equal to\",\n combinators: [\"and\"],\n },\n {\n operator: \"lessThanEq\",\n label: \"Less than or equal to\",\n combinators: [\"and\"],\n },\n {\n operator: \"notEqual\",\n label: \"Not equal to\",\n combinators: [\"and\"],\n },\n {\n operator: \"range\",\n label: \"Range\",\n combinators: [\"and\"],\n },\n ],\n};\n\nconst defaultCombinators = [\n { operand: \"and\", label: \"AND\" },\n { operand: \"or\", label: \"OR\" },\n];\n\nconst defaultLabels = {\n query: {\n delete: {\n ariaLabel: \"Reset query\",\n tooltip: \"Reset query\",\n dialogTitle: \"Remove all conditions?\",\n dialogMessage:\n \"Are you sure you want to remove all the conditions? They will be removed permanently.\",\n dialogConfirm: \"Yes\",\n dialogCancel: \"No\",\n dialogCloseTooltip: \"Close\",\n },\n },\n rule: {\n attribute: {\n label: \"Attribute\",\n placeholder: \"Select attribute...\",\n exists: \"Attribute already exists.\",\n },\n operator: {\n label: \"Operator\",\n placeholder: \"Select operator...\",\n },\n value: {\n distance: {\n label: \"Value\",\n connectorText: \"radius miles from\",\n button: \"Select location\",\n validation: {\n required: \"The value is required.\",\n invalid: \"Value must be a positive number.\",\n },\n },\n text: {\n label: \"Value\",\n placeholder: \"Enter value...\",\n validation: {\n required: \"The value is required.\",\n },\n },\n boolean: {\n label: \"Value\",\n placeholder: \"Enter value\",\n options: {\n true: \"True\",\n false: \"False\",\n },\n },\n numeric: {\n label: \"Value\",\n placeholder: \"Enter value\",\n validation: {\n required: \"The value is required.\",\n invalid: \"Value must be a number.\",\n equal: \"Cannot be equal.\",\n greaterThan: \"Needs to be greater.\",\n },\n range: {\n leftLabel: \"From\",\n rightLabel: \"To\",\n },\n },\n datetime: {\n dateLabel: \"Date\",\n datePlaceholder: \"Select Date\",\n timeLabel: \"Time\",\n timePlaceholder: \"Select Time\",\n startDateLabel: \"Start Date\",\n startDatePlaceholder: \"Select Start Date\",\n startTimeLabel: \"Start Time\",\n startTimePlaceholder: \"Select Start Time\",\n endDateLabel: \"End Date\",\n endDatePlaceholder: \"Select End Date\",\n endTimeLabel: \"End Time\",\n endTimePlaceholder: \"Select End Time\",\n validation: {\n required: \"The value is required.\",\n invalidInterval: \"End date and time must be after start date and time.\",\n },\n },\n },\n delete: {\n ariaLabel: \"Remove condition\",\n tooltip: \"Remove condition\",\n dialogTitle: \"Remove condition?\",\n dialogMessage:\n \"Are you sure you want to remove the condition? It will be removed permanently.\",\n dialogConfirm: \"Yes\",\n dialogCancel: \"No\",\n dialogCloseTooltip: \"Close\",\n },\n },\n group: {\n delete: {\n ariaLabel: \"Remove group\",\n tooltip: \"Remove group\",\n dialogTitle: \"Remove group?\",\n dialogMessage: \"Are you sure you want to remove the group? It will be removed permanently.\",\n dialogConfirm: \"Yes\",\n dialogCancel: \"No\",\n dialogCloseTooltip: \"Close\",\n },\n reset: {\n ariaLabel: \"Change operator\",\n tooltip: \"Change operator query\",\n dialogTitle: \"Change conditional operator?\",\n dialogMessage:\n \"Do you want to change conditional operator? You won't be able to undo this operation. Conditions and/or groups will be removed.\",\n dialogConfirm: \"Yes\",\n dialogCancel: \"No\",\n dialogCloseTooltip: \"Close\",\n },\n addRule: {\n label: \"Add condition\",\n },\n addGroup: {\n label: \"Add group\",\n },\n },\n empty: {\n title: \"No conditions created yet\",\n createCondition: \"Create a condition\",\n createGroup: \"condition group\",\n spacer: \" or a \",\n },\n};\n\nexport default createContext({\n dispatchAction: () => ({}),\n askAction: () => ({}),\n selectLocation: () => ({}),\n attributes: {},\n operators: defaultOperators,\n combinators: defaultCombinators,\n maxDepth: 1,\n labels: defaultLabels,\n initialTouched: false,\n});\n"],"mappings":"AAAA,SAASA,aAAT,QAA8B,OAA9B;AAEA,IAAMC,gBAAgB,GAAG;EACvBC,OAAO,EAAE,CACP;IACEC,QAAQ,EAAE,aADZ;IAEEC,KAAK,EAAE,kBAFT;IAGEC,WAAW,EAAE,CAAC,KAAD;EAHf,CADO,EAMP;IACEF,QAAQ,EAAE,UADZ;IAEEC,KAAK,EAAE,eAFT;IAGEC,WAAW,EAAE,CAAC,KAAD;EAHf,CANO,EAWP;IACEF,QAAQ,EAAE,UADZ;IAEEC,KAAK,EAAE,cAFT;IAGEC,WAAW,EAAE,CAAC,KAAD,EAAQ,IAAR;EAHf,CAXO,EAgBP;IACEF,QAAQ,EAAE,eADZ;IAEEC,KAAK,EAAE,+BAFT;IAGEC,WAAW,EAAE,CAAC,KAAD;EAHf,CAhBO,EAqBP;IACEF,QAAQ,EAAE,YADZ;IAEEC,KAAK,EAAE,4BAFT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E,IAPR;MAQNC,kBAAkB,EAAE;IARd;EApEJ,CAbc;EA4FpBkC,KAAK,EAAE;IACLzC,MAAM,EAAE;MACNC,SAAS,EAAE,cADL;MAENC,OAAO,EAAE,cAFH;MAGNC,WAAW,EAAE,eAHP;MAINC,aAAa,EAAE,4EAJT;MAKNC,aAAa,EAAE,KALT;MAMNC,YAAY,EAAE,IANR;MAONC,kBAAkB,EAAE;IAPd,CADH;IAULmC,KAAK,EAAE;MACLzC,SAAS,EAAE,iBADN;MAELC,OAAO,EAAE,uBAFJ;MAGLC,WAAW,EAAE,8BAHR;MAILC,aAAa,EACX,iIALG;MAMLC,aAAa,EAAE,KANV;MAOLC,YAAY,EAAE,IAPT;MAQLC,kBAAkB,EAAE;IARf,CAVF;IAoBLoC,OAAO,EAAE;MACPrD,KAAK,EAAE;IADA,CApBJ;IAuBLsD,QAAQ,EAAE;MACRtD,KAAK,EAAE;IADC;EAvBL,CA5Fa;EAuHpBuD,KAAK,EAAE;IACLC,KAAK,EAAE,2BADF;IAELC,eAAe,EAAE,oBAFZ;IAGLC,WAAW,EAAE,iBAHR;IAILC,MAAM,EAAE;EAJH;AAvHa,CAAtB;AA+HA,4BAAe/D,aAAa,CAAC;EAC3BgE,cAAc,EAAE;IAAA,OAAO,EAAP;EAAA,CADW;EAE3BC,SAAS,EAAE;IAAA,OAAO,EAAP;EAAA,CAFgB;EAG3BC,cAAc,EAAE;IAAA,OAAO,EAAP;EAAA,CAHW;EAI3BC,UAAU,EAAE,EAJe;EAK3BC,SAAS,EAAEnE,gBALgB;EAM3BI,WAAW,EAAEK,kBANc;EAO3B2D,QAAQ,EAAE,CAPiB;EAQ3BC,MAAM,EAAE1D,aARmB;EAS3B2D,cAAc,EAAE;AATW,CAAD,CAA5B"}
|
|
1
|
+
{"version":3,"file":"Context.js","names":["createContext","defaultOperators","numeric","operator","label","combinators","text","textarea","boolean","dateandtime","defaultCombinators","operand","defaultLabels","query","delete","ariaLabel","tooltip","dialogTitle","dialogMessage","dialogConfirm","dialogCancel","dialogCloseTooltip","rule","attribute","placeholder","exists","value","distance","connectorText","button","validation","required","invalid","options","true","false","equal","greaterThan","range","leftLabel","rightLabel","datetime","dateLabel","datePlaceholder","timeLabel","timePlaceholder","startDateLabel","startDatePlaceholder","startTimeLabel","startTimePlaceholder","endDateLabel","endDatePlaceholder","endTimeLabel","endTimePlaceholder","invalidInterval","group","reset","addRule","addGroup","empty","title","createCondition","createGroup","spacer","dispatchAction","askAction","selectLocation","attributes","operators","maxDepth","labels","initialTouched"],"sources":["../../../src/QueryBuilder/Context.js"],"sourcesContent":["import { createContext } from \"react\";\n\nexport const defaultOperators = {\n numeric: [\n {\n operator: \"greaterThan\",\n label: \"Greater than (>)\",\n combinators: [\"and\"],\n },\n {\n operator: \"lessThan\",\n label: \"Less than (<)\",\n combinators: [\"and\"],\n },\n {\n operator: \"equalsTo\",\n label: \"Equal to (=)\",\n combinators: [\"and\", \"or\"],\n },\n {\n operator: \"greaterThanEq\",\n label: \"Greater than or equal to (>=)\",\n combinators: [\"and\"],\n },\n {\n operator: \"lessThanEq\",\n label: \"Less than or equal to (<=)\",\n combinators: [\"and\"],\n },\n {\n operator: \"notEqual\",\n label: \"Not equal to (!=)\",\n combinators: [\"and\"],\n },\n {\n operator: \"range\",\n label: \"Range\",\n combinators: [\"and\"],\n },\n ],\n text: [\n {\n operator: \"equals\",\n label: \"Equals\",\n combinators: [\"and\", \"or\"],\n },\n {\n operator: \"equalsIgnoreCase\",\n label: \"Equals Ignore Case\",\n combinators: [\"and\", \"or\"],\n },\n {\n operator: \"Contains\",\n label: \"Contains\",\n combinators: [\"and\", \"or\"],\n },\n {\n operator: \"StartsWith\",\n label: \"A string begins with\",\n combinators: [\"and\", \"or\"],\n },\n {\n operator: \"EndsWith\",\n label: \"A string ends with\",\n combinators: [\"and\", \"or\"],\n },\n {\n operator: \"IsNotEmpty\",\n label: \"Is Not empty\",\n combinators: [\"and\"],\n },\n {\n operator: \"IsNot\",\n label: \"Is Not\",\n combinators: [\"and\"],\n },\n {\n operator: \"Empty\",\n label: \"Empty\",\n combinators: [\"and\"],\n },\n ],\n textarea: [\n {\n operator: \"equals\",\n label: \"Equals\",\n combinators: [\"and\", \"or\"],\n },\n {\n operator: \"equalsIgnoreCase\",\n label: \"Equals Ignore Case\",\n combinators: [\"and\", \"or\"],\n },\n {\n operator: \"Contains\",\n label: \"Contains\",\n combinators: [\"and\", \"or\"],\n },\n {\n operator: \"StartsWith\",\n label: \"A string begins with\",\n combinators: [\"and\", \"or\"],\n },\n {\n operator: \"EndsWith\",\n label: \"A string ends with\",\n combinators: [\"and\", \"or\"],\n },\n {\n operator: \"IsNotEmpty\",\n label: \"Is Not empty\",\n combinators: [\"and\"],\n },\n {\n operator: \"IsNot\",\n label: \"Is Not\",\n combinators: [\"and\"],\n },\n {\n operator: \"Empty\",\n label: \"Empty\",\n combinators: [\"and\"],\n },\n ],\n boolean: [\n {\n operator: \"equalsTo\",\n label: \"=\",\n combinators: [\"and\", \"or\"],\n },\n ],\n dateandtime: [\n {\n operator: \"greaterThan\",\n label: \"Greater than\",\n combinators: [\"and\"],\n },\n {\n operator: \"lessThan\",\n label: \"Less than\",\n combinators: [\"and\"],\n },\n {\n operator: \"equalsTo\",\n label: \"Equal to\",\n combinators: [\"and\", \"or\"],\n },\n {\n operator: \"greaterThanEq\",\n label: \"Greater than or equal to\",\n combinators: [\"and\"],\n },\n {\n operator: \"lessThanEq\",\n label: \"Less than or equal to\",\n combinators: [\"and\"],\n },\n {\n operator: \"notEqual\",\n label: \"Not equal to\",\n combinators: [\"and\"],\n },\n {\n operator: \"range\",\n label: \"Range\",\n combinators: [\"and\"],\n },\n ],\n};\n\nexport const defaultCombinators = [\n { operand: \"and\", label: \"AND\" },\n { operand: \"or\", label: \"OR\" },\n];\n\nexport const defaultLabels = {\n query: {\n delete: {\n ariaLabel: \"Reset query\",\n tooltip: \"Reset query\",\n dialogTitle: \"Remove all conditions?\",\n dialogMessage:\n \"Are you sure you want to remove all the conditions? They will be removed permanently.\",\n dialogConfirm: \"Yes\",\n dialogCancel: \"No\",\n dialogCloseTooltip: \"Close\",\n },\n },\n rule: {\n attribute: {\n label: \"Attribute\",\n placeholder: \"Select attribute...\",\n exists: \"Attribute already exists.\",\n },\n operator: {\n label: \"Operator\",\n placeholder: \"Select operator...\",\n },\n value: {\n distance: {\n label: \"Value\",\n connectorText: \"radius miles from\",\n button: \"Select location\",\n validation: {\n required: \"The value is required.\",\n invalid: \"Value must be a positive number.\",\n },\n },\n text: {\n label: \"Value\",\n placeholder: \"Enter value...\",\n validation: {\n required: \"The value is required.\",\n },\n },\n boolean: {\n label: \"Value\",\n placeholder: \"Enter value\",\n options: {\n true: \"True\",\n false: \"False\",\n },\n },\n numeric: {\n label: \"Value\",\n placeholder: \"Enter value\",\n validation: {\n required: \"The value is required.\",\n invalid: \"Value must be a number.\",\n equal: \"Cannot be equal.\",\n greaterThan: \"Needs to be greater.\",\n },\n range: {\n leftLabel: \"From\",\n rightLabel: \"To\",\n },\n },\n datetime: {\n dateLabel: \"Date\",\n datePlaceholder: \"Select Date\",\n timeLabel: \"Time\",\n timePlaceholder: \"Select Time\",\n startDateLabel: \"Start Date\",\n startDatePlaceholder: \"Select Start Date\",\n startTimeLabel: \"Start Time\",\n startTimePlaceholder: \"Select Start Time\",\n endDateLabel: \"End Date\",\n endDatePlaceholder: \"Select End Date\",\n endTimeLabel: \"End Time\",\n endTimePlaceholder: \"Select End Time\",\n validation: {\n required: \"The value is required.\",\n invalidInterval: \"End date and time must be after start date and time.\",\n },\n },\n },\n delete: {\n ariaLabel: \"Remove condition\",\n tooltip: \"Remove condition\",\n dialogTitle: \"Remove condition?\",\n dialogMessage:\n \"Are you sure you want to remove the condition? It will be removed permanently.\",\n dialogConfirm: \"Yes\",\n dialogCancel: \"No\",\n dialogCloseTooltip: \"Close\",\n },\n },\n group: {\n delete: {\n ariaLabel: \"Remove group\",\n tooltip: \"Remove group\",\n dialogTitle: \"Remove group?\",\n dialogMessage: \"Are you sure you want to remove the group? It will be removed permanently.\",\n dialogConfirm: \"Yes\",\n dialogCancel: \"No\",\n dialogCloseTooltip: \"Close\",\n },\n reset: {\n ariaLabel: \"Change operator\",\n tooltip: \"Change operator query\",\n dialogTitle: \"Change conditional operator?\",\n dialogMessage:\n \"Do you want to change conditional operator? You won't be able to undo this operation. Conditions and/or groups will be removed.\",\n dialogConfirm: \"Yes\",\n dialogCancel: \"No\",\n dialogCloseTooltip: \"Close\",\n },\n addRule: {\n label: \"Add condition\",\n },\n addGroup: {\n label: \"Add group\",\n },\n },\n empty: {\n title: \"No conditions created yet\",\n createCondition: \"Create a condition\",\n createGroup: \"condition group\",\n spacer: \" or a \",\n },\n};\n\nexport default createContext({\n dispatchAction: () => ({}),\n askAction: () => ({}),\n selectLocation: () => ({}),\n attributes: {},\n operators: defaultOperators,\n combinators: defaultCombinators,\n maxDepth: 1,\n labels: defaultLabels,\n initialTouched: false,\n});\n"],"mappings":"AAAA,SAASA,aAAT,QAA8B,OAA9B;AAEA,OAAO,IAAMC,gBAAgB,GAAG;EAC9BC,OAAO,EAAE,CACP;IACEC,QAAQ,EAAE,aADZ;IAEEC,KAAK,EAAE,kBAFT;IAGEC,WAAW,EAAE,CAAC,KAAD;EAHf,CADO,EAMP;IACEF,QAAQ,EAAE,UADZ;IAEEC,KAAK,EAAE,eAFT;IAGEC,WAAW,EAAE,CAAC,KAAD;EAHf,CANO,EAWP;IACEF,QAAQ,EAAE,UADZ;IAEEC,KAAK,EAAE,cAFT;IAGEC,WAAW,EAAE,CAAC,KAAD,EAAQ,IAAR;EAHf,CAXO,EAgBP;IACEF,QAAQ,EAAE,eADZ;IAEEC,KAAK,EAAE,+BAFT;IAGEC,WAAW,EAAE,CAAC,KAAD;EAHf,CAhBO,EAqBP;IACEF,QAAQ,EAAE,YADZ;IAEEC,KAAK,EAAE,4BAFT;IAGEC,WAAW,EAAE,CAAC,KAAD;EAHf,CArBO,EA0BP;IACEF,QAAQ,EAAE,UADZ;IAE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AAK,EAAE;IACLzC,MAAM,EAAE;MACNC,SAAS,EAAE,cADL;MAENC,OAAO,EAAE,cAFH;MAGNC,WAAW,EAAE,eAHP;MAINC,aAAa,EAAE,4EAJT;MAKNC,aAAa,EAAE,KALT;MAMNC,YAAY,EAAE,IANR;MAONC,kBAAkB,EAAE;IAPd,CADH;IAULmC,KAAK,EAAE;MACLzC,SAAS,EAAE,iBADN;MAELC,OAAO,EAAE,uBAFJ;MAGLC,WAAW,EAAE,8BAHR;MAILC,aAAa,EACX,iIALG;MAMLC,aAAa,EAAE,KANV;MAOLC,YAAY,EAAE,IAPT;MAQLC,kBAAkB,EAAE;IARf,CAVF;IAoBLoC,OAAO,EAAE;MACPrD,KAAK,EAAE;IADA,CApBJ;IAuBLsD,QAAQ,EAAE;MACRtD,KAAK,EAAE;IADC;EAvBL,CA5FoB;EAuH3BuD,KAAK,EAAE;IACLC,KAAK,EAAE,2BADF;IAELC,eAAe,EAAE,oBAFZ;IAGLC,WAAW,EAAE,iBAHR;IAILC,MAAM,EAAE;EAJH;AAvHoB,CAAtB;AA+HP,4BAAe/D,aAAa,CAAC;EAC3BgE,cAAc,EAAE;IAAA,OAAO,EAAP;EAAA,CADW;EAE3BC,SAAS,EAAE;IAAA,OAAO,EAAP;EAAA,CAFgB;EAG3BC,cAAc,EAAE;IAAA,OAAO,EAAP;EAAA,CAHW;EAI3BC,UAAU,EAAE,EAJe;EAK3BC,SAAS,EAAEnE,gBALgB;EAM3BI,WAAW,EAAEK,kBANc;EAO3B2D,QAAQ,EAAE,CAPiB;EAQ3BC,MAAM,EAAE1D,aARmB;EAS3B2D,cAAc,EAAE;AATW,CAAD,CAA5B"}
|
|
@@ -55,6 +55,7 @@ var Value = function Value(_ref) {
|
|
|
55
55
|
|
|
56
56
|
case "text":
|
|
57
57
|
case "textarea":
|
|
58
|
+
default:
|
|
58
59
|
{
|
|
59
60
|
return /*#__PURE__*/React.createElement(TextValue, {
|
|
60
61
|
id: id,
|
|
@@ -72,11 +73,6 @@ var Value = function Value(_ref) {
|
|
|
72
73
|
initialTouched: initialTouched
|
|
73
74
|
});
|
|
74
75
|
}
|
|
75
|
-
|
|
76
|
-
default:
|
|
77
|
-
{
|
|
78
|
-
return null;
|
|
79
|
-
}
|
|
80
76
|
}
|
|
81
77
|
};
|
|
82
78
|
|