@qoretechnologies/reqore 0.78.12 → 0.78.13-pr.715.g3135f4f
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/components/Accordion/index.d.ts.map +1 -1
- package/dist/components/Accordion/index.js +10 -9
- package/dist/components/Accordion/index.js.map +1 -1
- package/dist/components/Bubble/index.d.ts.map +1 -1
- package/dist/components/Bubble/index.js +3 -2
- package/dist/components/Bubble/index.js.map +1 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +18 -5
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Callout/index.d.ts.map +1 -1
- package/dist/components/Callout/index.js +7 -6
- package/dist/components/Callout/index.js.map +1 -1
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +4 -3
- package/dist/components/Checkbox/index.js.map +1 -1
- package/dist/components/CollapsibleContent/index.d.ts +12 -0
- package/dist/components/CollapsibleContent/index.d.ts.map +1 -1
- package/dist/components/CollapsibleContent/index.js +37 -16
- package/dist/components/CollapsibleContent/index.js.map +1 -1
- package/dist/components/Collection/index.d.ts.map +1 -1
- package/dist/components/Collection/index.js +6 -3
- package/dist/components/Collection/index.js.map +1 -1
- package/dist/components/Collection/item.js +1 -1
- package/dist/components/Collection/item.js.map +1 -1
- package/dist/components/DataView/index.d.ts +11 -0
- package/dist/components/DataView/index.d.ts.map +1 -1
- package/dist/components/DataView/index.js +37 -22
- package/dist/components/DataView/index.js.map +1 -1
- package/dist/components/DescriptionList/index.d.ts.map +1 -1
- package/dist/components/DescriptionList/index.js +5 -1
- package/dist/components/DescriptionList/index.js.map +1 -1
- package/dist/components/Effect/index.d.ts +6 -0
- package/dist/components/Effect/index.d.ts.map +1 -1
- package/dist/components/Effect/index.js +26 -21
- package/dist/components/Effect/index.js.map +1 -1
- package/dist/components/EntityRow/index.d.ts.map +1 -1
- package/dist/components/EntityRow/index.js +2 -2
- package/dist/components/EntityRow/index.js.map +1 -1
- package/dist/components/FeatureCard/index.d.ts.map +1 -1
- package/dist/components/FeatureCard/index.js +5 -4
- package/dist/components/FeatureCard/index.js.map +1 -1
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/Icon/index.js +10 -5
- package/dist/components/Icon/index.js.map +1 -1
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/index.js +5 -4
- package/dist/components/Input/index.js.map +1 -1
- package/dist/components/KeyboardShortcut/index.d.ts.map +1 -1
- package/dist/components/KeyboardShortcut/index.js +3 -2
- package/dist/components/KeyboardShortcut/index.js.map +1 -1
- package/dist/components/Layout/index.d.ts.map +1 -1
- package/dist/components/Layout/index.js +6 -2
- package/dist/components/Layout/index.js.map +1 -1
- package/dist/components/Link/index.d.ts.map +1 -1
- package/dist/components/Link/index.js +7 -2
- package/dist/components/Link/index.js.map +1 -1
- package/dist/components/Menu/divider.d.ts.map +1 -1
- package/dist/components/Menu/divider.js +4 -1
- package/dist/components/Menu/divider.js.map +1 -1
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Menu/index.js.map +1 -1
- package/dist/components/Message/index.d.ts.map +1 -1
- package/dist/components/Message/index.js +9 -1
- package/dist/components/Message/index.js.map +1 -1
- package/dist/components/NavRail/index.d.ts.map +1 -1
- package/dist/components/NavRail/index.js +5 -3
- package/dist/components/NavRail/index.js.map +1 -1
- package/dist/components/Notifications/notification.d.ts.map +1 -1
- package/dist/components/Notifications/notification.js +3 -2
- package/dist/components/Notifications/notification.js.map +1 -1
- package/dist/components/Notifications/styles.d.ts +2 -0
- package/dist/components/Notifications/styles.d.ts.map +1 -1
- package/dist/components/Notifications/styles.js +65 -24
- package/dist/components/Notifications/styles.js.map +1 -1
- package/dist/components/Panel/index.d.ts.map +1 -1
- package/dist/components/Panel/index.js +50 -23
- package/dist/components/Panel/index.js.map +1 -1
- package/dist/components/Paragraph/index.d.ts.map +1 -1
- package/dist/components/Paragraph/index.js +3 -3
- package/dist/components/Paragraph/index.js.map +1 -1
- package/dist/components/Progress/index.d.ts.map +1 -1
- package/dist/components/Progress/index.js +11 -4
- package/dist/components/Progress/index.js.map +1 -1
- package/dist/components/SegmentedControl/index.d.ts +17 -0
- package/dist/components/SegmentedControl/index.d.ts.map +1 -1
- package/dist/components/SegmentedControl/index.js +93 -33
- package/dist/components/SegmentedControl/index.js.map +1 -1
- package/dist/components/Select/valuePreview.js +5 -2
- package/dist/components/Select/valuePreview.js.map +1 -1
- package/dist/components/SeverityRow/index.d.ts +8 -0
- package/dist/components/SeverityRow/index.d.ts.map +1 -1
- package/dist/components/SeverityRow/index.js +25 -10
- package/dist/components/SeverityRow/index.js.map +1 -1
- package/dist/components/Spacer/index.js +1 -1
- package/dist/components/Spacer/index.js.map +1 -1
- package/dist/components/Span/index.d.ts.map +1 -1
- package/dist/components/Span/index.js +3 -3
- package/dist/components/Span/index.js.map +1 -1
- package/dist/components/StackedBar/index.d.ts.map +1 -1
- package/dist/components/StackedBar/index.js +8 -2
- package/dist/components/StackedBar/index.js.map +1 -1
- package/dist/components/Statistic/index.d.ts +16 -1
- package/dist/components/Statistic/index.d.ts.map +1 -1
- package/dist/components/Statistic/index.js +6 -5
- package/dist/components/Statistic/index.js.map +1 -1
- package/dist/components/Table/body.d.ts.map +1 -1
- package/dist/components/Table/body.js +36 -4
- package/dist/components/Table/body.js.map +1 -1
- package/dist/components/Table/cell.d.ts.map +1 -1
- package/dist/components/Table/cell.js +36 -21
- package/dist/components/Table/cell.js.map +1 -1
- package/dist/components/Table/header.d.ts +8 -1
- package/dist/components/Table/header.d.ts.map +1 -1
- package/dist/components/Table/header.js +5 -5
- package/dist/components/Table/header.js.map +1 -1
- package/dist/components/Table/headerCell.d.ts +8 -1
- package/dist/components/Table/headerCell.d.ts.map +1 -1
- package/dist/components/Table/headerCell.js +30 -20
- package/dist/components/Table/headerCell.js.map +1 -1
- package/dist/components/Table/helpers.d.ts +32 -2
- package/dist/components/Table/helpers.d.ts.map +1 -1
- package/dist/components/Table/helpers.js +68 -5
- package/dist/components/Table/helpers.js.map +1 -1
- package/dist/components/Table/index.d.ts +43 -1
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +68 -77
- package/dist/components/Table/index.js.map +1 -1
- package/dist/components/Table/row.d.ts.map +1 -1
- package/dist/components/Table/row.js +4 -4
- package/dist/components/Table/row.js.map +1 -1
- package/dist/components/Tabs/item.d.ts.map +1 -1
- package/dist/components/Tabs/item.js +1 -1
- package/dist/components/Tabs/item.js.map +1 -1
- package/dist/components/Tabs/list.d.ts +4 -2
- package/dist/components/Tabs/list.d.ts.map +1 -1
- package/dist/components/Tabs/list.js +25 -15
- package/dist/components/Tabs/list.js.map +1 -1
- package/dist/components/Tag/index.d.ts.map +1 -1
- package/dist/components/Tag/index.js +5 -4
- package/dist/components/Tag/index.js.map +1 -1
- package/dist/components/Testimonial/index.d.ts.map +1 -1
- package/dist/components/Testimonial/index.js +5 -4
- package/dist/components/Testimonial/index.js.map +1 -1
- package/dist/components/Textarea/index.d.ts.map +1 -1
- package/dist/components/Textarea/index.js +5 -4
- package/dist/components/Textarea/index.js.map +1 -1
- package/dist/components/Tier/index.d.ts.map +1 -1
- package/dist/components/Tier/index.js +3 -3
- package/dist/components/Tier/index.js.map +1 -1
- package/dist/components/Timeline/index.d.ts.map +1 -1
- package/dist/components/Timeline/index.js +3 -2
- package/dist/components/Timeline/index.js.map +1 -1
- package/dist/constants/sizes.d.ts +11 -0
- package/dist/constants/sizes.d.ts.map +1 -1
- package/dist/constants/sizes.js +14 -1
- package/dist/constants/sizes.js.map +1 -1
- package/dist/constants/theme.d.ts +84 -0
- package/dist/constants/theme.d.ts.map +1 -1
- package/dist/constants/theme.js.map +1 -1
- package/dist/containers/UIProvider.d.ts.map +1 -1
- package/dist/containers/UIProvider.js +6 -2
- package/dist/containers/UIProvider.js.map +1 -1
- package/dist/helpers/colors.d.ts +11 -1
- package/dist/helpers/colors.d.ts.map +1 -1
- package/dist/helpers/colors.js +24 -3
- package/dist/helpers/colors.js.map +1 -1
- package/dist/helpers/typeScale.d.ts +25 -0
- package/dist/helpers/typeScale.d.ts.map +1 -0
- package/dist/helpers/typeScale.js +28 -0
- package/dist/helpers/typeScale.js.map +1 -0
- package/dist/hooks/useUppercaseLabels.d.ts +8 -0
- package/dist/hooks/useUppercaseLabels.d.ts.map +1 -0
- package/dist/hooks/useUppercaseLabels.js +13 -0
- package/dist/hooks/useUppercaseLabels.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/docs/docs/guides/theming.mdx +15 -0
- package/package.json +1 -1
- package/tests.json +0 -1
|
@@ -67,18 +67,19 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
67
67
|
var polished_1 = require("polished");
|
|
68
68
|
var react_1 = require("react");
|
|
69
69
|
var styled_components_1 = require("styled-components");
|
|
70
|
-
var
|
|
70
|
+
var typeScale_1 = require("../../helpers/typeScale");
|
|
71
71
|
var colors_1 = require("../../helpers/colors");
|
|
72
72
|
var styled_1 = __importStar(require("../../helpers/styled"));
|
|
73
73
|
var utils_1 = require("../../helpers/utils");
|
|
74
74
|
var helpers_1 = require("./helpers");
|
|
75
75
|
var Button_1 = __importDefault(require("../Button"));
|
|
76
|
+
var helpers_2 = require("./helpers");
|
|
76
77
|
var TooltipComponent_1 = require("../TooltipComponent");
|
|
77
78
|
exports.StyledTableCell = styled_1.default.div.withConfig({
|
|
78
79
|
// `wrap` drives the cell's white-space rule and `width` its CSS width; neither is a DOM
|
|
79
80
|
// attribute of a `div`.
|
|
80
81
|
shouldForwardProp: (0, styled_1.omitStyleProps)('wrap', 'width'),
|
|
81
|
-
})(
|
|
82
|
+
})(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), function (_a) {
|
|
82
83
|
var width = _a.width, minWidth = _a.minWidth, maxWidth = _a.maxWidth, grow = _a.grow;
|
|
83
84
|
return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", "px;\n min-width: ", "px;\n max-width: ", "px;\n\n flex-grow: ", ";\n "], ["\n width: ", "px;\n min-width: ", "px;\n max-width: ", "px;\n\n flex-grow: ", ";\n "])), width, minWidth, maxWidth, grow || (width ? undefined : 1));
|
|
84
85
|
}, function (_a) {
|
|
@@ -110,37 +111,51 @@ exports.StyledTableCell = styled_1.default.div.withConfig({
|
|
|
110
111
|
if (hovered) {
|
|
111
112
|
opacity += 0.08;
|
|
112
113
|
}
|
|
113
|
-
//
|
|
114
|
+
// At rest a pinned cell is 'transparent' like any other: its opaque paint
|
|
115
|
+
// comes from `pinnedBackground` below, which lays the SAME surface the
|
|
116
|
+
// table sits on under it. It used to return `theme.main` here, which was
|
|
117
|
+
// then washed to 30% and layered over the panel surface — so every pinned
|
|
118
|
+
// column sat a step darker than its neighbours, at rest, for no reason a
|
|
119
|
+
// reader could see.
|
|
114
120
|
if (opacity === 0) {
|
|
115
|
-
return
|
|
121
|
+
return 'transparent';
|
|
116
122
|
}
|
|
117
123
|
return (0, colors_1.changeLightness)(color, opacity);
|
|
118
124
|
};
|
|
119
125
|
var backgroundColor = getBackgroundColor();
|
|
126
|
+
// A table is drawn inside a panel; with `theme.panel` named, an untinted row sits on that
|
|
127
|
+
// surface and its line is the panel's hairline.
|
|
128
|
+
var themedPanel = (0, colors_1.getThemePanelSurface)(theme);
|
|
120
129
|
var displayedBackgroundColor = backgroundColor === 'transparent'
|
|
121
|
-
? theme
|
|
130
|
+
? (0, colors_1.getPanelBackgroundColor)(theme)
|
|
122
131
|
: (0, polished_1.rgba)(backgroundColor, 0.3);
|
|
132
|
+
var cellBorderColor = backgroundColor === 'transparent' && (themedPanel === null || themedPanel === void 0 ? void 0 : themedPanel.border)
|
|
133
|
+
? themedPanel.border
|
|
134
|
+
: (0, colors_1.changeLightness)(displayedBackgroundColor, 0.1);
|
|
123
135
|
// Pinned cells need an opaque paint so non-pinned cells scrolling underneath don't show
|
|
124
|
-
// through. We layer the semi-transparent displayed color over a
|
|
136
|
+
// through. We layer the semi-transparent displayed color over the surface a table is
|
|
137
|
+
// drawn on — a panel's — so at rest a pinned cell is indistinguishable from its neighbours.
|
|
125
138
|
var pinnedBackground = pin
|
|
126
|
-
? "linear-gradient(".concat(displayedBackgroundColor, ", ").concat(displayedBackgroundColor, "), ").concat(
|
|
139
|
+
? "linear-gradient(".concat(displayedBackgroundColor, ", ").concat(displayedBackgroundColor, "), ").concat((0, colors_1.getPanelBackgroundColor)(theme))
|
|
127
140
|
: undefined;
|
|
128
|
-
return (0, styled_components_1.css)(
|
|
141
|
+
return (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n box-sizing: border-box;\n display: flex;\n align-items: ", ";\n justify-content: ", ";\n flex-shrink: 0;\n align-self: stretch;\n border-bottom: ", ";\n\n ", "\n\n /* Each side is a length, never `undefined`: `padding: undefined 10px` drops to\n `padding: 10px`, so a `padded: 'horizontal'` cell got 10px top and bottom too and\n clipped its text once the line was taller than the 12px left between them. */\n padding: ", "\n ", ";\n font-size: ", "px;\n background: ", ";\n color: ", ";\n border-color: ", ";\n transition: background-color 0.2s ease-out;\n opacity: ", ";\n pointer-events: ", ";\n cursor: ", ";\n\n ", "\n\n ", "\n\n ", "\n\n /* ------------------------------------------------------------------\n A cell contains what it is given.\n\n These rules used to name p.reqore-table-text \u2014 the paragraph the\n table's own 'text' / 'number' / 'time-ago' cell renderers produce \u2014 so\n they reached exactly the content the table had written itself.\n Everything else got nothing: the 'title' renderer (a heading), the\n 'tag' renderer, and every element a caller's own cell content function\n returns, which is how a real table fills a cell. Those elements laid\n themselves out at their natural size, and since a body row is drawn at\n ONE height \u2014 decided before any of this is laid out, because a\n virtualised list has to know it up front \u2014 a paragraph of prose simply\n painted over the rows beneath it. Two and three descriptions\n overprinted each other and none of them could be read.\n\n So the rules are about the cell's content, whatever that content is:\n\n - min-width 0, because a flex item's automatic minimum size is its\n MIN-CONTENT width, which for one long unbreakable token (a URL, an\n id) is the whole token. That minimum beats max-width, which is why\n capping a link's width at the call site did not hold it: the address\n of one row printed across the next column's chips.\n - max-width and max-height of 100%, so the content is bounded by the\n box it is in, on both axes, whatever it is.\n - and, when the cell does not wrap, one line ending in an ellipsis.\n\n Wrapping is the other honest answer: wrap turns virtualisation off (see\n IReqoreTableProps), every row is then drawn at the height of its own\n content, and the whole value is on screen instead of a line of it. A\n wrapped cell still needs a break opportunity inside a long token, or it\n overflows sideways for the same reason as above. ----------------- */\n > * {\n min-width: 0;\n max-width: 100%;\n }\n\n ", "\n\n ", "\n\n p.reqore-table-text {\n margin: 0;\n padding: 0;\n }\n "], ["\n box-sizing: border-box;\n display: flex;\n align-items: ", ";\n justify-content: ", ";\n flex-shrink: 0;\n align-self: stretch;\n border-bottom: ", ";\n\n ", "\n\n /* Each side is a length, never \\`undefined\\`: \\`padding: undefined 10px\\` drops to\n \\`padding: 10px\\`, so a \\`padded: 'horizontal'\\` cell got 10px top and bottom too and\n clipped its text once the line was taller than the 12px left between them. */\n padding: ", "\n ", ";\n font-size: ", "px;\n background: ", ";\n color: ", ";\n border-color: ", ";\n transition: background-color 0.2s ease-out;\n opacity: ", ";\n pointer-events: ", ";\n cursor: ", ";\n\n ", "\n\n ", "\n\n ", "\n\n /* ------------------------------------------------------------------\n A cell contains what it is given.\n\n These rules used to name p.reqore-table-text \u2014 the paragraph the\n table's own 'text' / 'number' / 'time-ago' cell renderers produce \u2014 so\n they reached exactly the content the table had written itself.\n Everything else got nothing: the 'title' renderer (a heading), the\n 'tag' renderer, and every element a caller's own cell content function\n returns, which is how a real table fills a cell. Those elements laid\n themselves out at their natural size, and since a body row is drawn at\n ONE height \u2014 decided before any of this is laid out, because a\n virtualised list has to know it up front \u2014 a paragraph of prose simply\n painted over the rows beneath it. Two and three descriptions\n overprinted each other and none of them could be read.\n\n So the rules are about the cell's content, whatever that content is:\n\n - min-width 0, because a flex item's automatic minimum size is its\n MIN-CONTENT width, which for one long unbreakable token (a URL, an\n id) is the whole token. That minimum beats max-width, which is why\n capping a link's width at the call site did not hold it: the address\n of one row printed across the next column's chips.\n - max-width and max-height of 100%, so the content is bounded by the\n box it is in, on both axes, whatever it is.\n - and, when the cell does not wrap, one line ending in an ellipsis.\n\n Wrapping is the other honest answer: wrap turns virtualisation off (see\n IReqoreTableProps), every row is then drawn at the height of its own\n content, and the whole value is on screen instead of a line of it. A\n wrapped cell still needs a break opportunity inside a long token, or it\n overflows sideways for the same reason as above. ----------------- */\n > * {\n min-width: 0;\n max-width: 100%;\n }\n\n ", "\n\n ", "\n\n p.reqore-table-text {\n margin: 0;\n padding: 0;\n }\n "])), maxHeight ? 'flex-start' : 'center', align ? (0, utils_1.alignToFlexAlign)(align) : 'flex-start', !flat ? '1px solid ' : undefined, maxHeight && (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n max-height: ", "px;\n overflow: hidden;\n "], ["\n position: relative;\n max-height: ", "px;\n overflow: hidden;\n "])), maxHeight), !padded || padded === 'both' || padded === 'vertical' ? (wrap ? '6px' : '0') : '0', !padded || padded === 'both' || padded === 'horizontal'
|
|
129
142
|
? "".concat(helpers_1.TABLE_CELL_HORIZONTAL_PADDING_PX, "px")
|
|
130
|
-
:
|
|
131
|
-
? (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background: linear-gradient(\n ", ",\n ", "\n ),\n ", ";\n "], ["\n background: linear-gradient(\n ", ",\n ", "\n ),\n ", ";\n "])), (0, polished_1.lighten)(0.1, displayedBackgroundColor), (0, polished_1.lighten)(0.1, displayedBackgroundColor),
|
|
132
|
-
? (0, styled_components_1.css)(
|
|
143
|
+
: '0', (0, typeScale_1.getTextSize)(theme, size), pinnedBackground !== null && pinnedBackground !== void 0 ? pinnedBackground : (backgroundColor === 'transparent' ? 'transparent' : displayedBackgroundColor), (0, colors_1.getReadableColorFrom)(getOriginalBackgroundColor(), !hovered), cellBorderColor, disabled ? 0.2 : 1, disabled ? 'none' : undefined, interactive || interactiveCell ? 'pointer' : 'default', pin && (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n position: sticky;\n ", "\n z-index: 2;\n ", "\n "], ["\n position: sticky;\n ", "\n z-index: 2;\n ", "\n "])), pin === 'left' ? "left: ".concat(pinOffset || 0, "px;") : "right: ".concat(pinOffset || 0, "px;"), pinEdge && (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n /* Use a pseudo-element instead of box-shadow so the shadow is strictly bounded to\n the cell's height \u2014 a blurred box-shadow bleeds vertically and stacks across\n neighboring pinned cells, producing dark bands between rows.\n\n Drawn only while a column really is hidden under this edge (the body marks\n its scroll containers, see TABLE_OVERFLOW_ATTRIBUTE): a table whose columns\n all fit has nothing to announce, and a permanent dark band beside the\n actions column was the one thing that made a pinned column look different. */\n &::after {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n width: 12px;\n pointer-events: none;\n opacity: 0;\n transition: opacity 0.12s ease;\n ", "\n background: linear-gradient(\n to ", ",\n rgba(0, 0, 0, 0.35),\n rgba(0, 0, 0, 0)\n );\n }\n ", " {\n opacity: 1;\n }\n "], ["\n /* Use a pseudo-element instead of box-shadow so the shadow is strictly bounded to\n the cell's height \u2014 a blurred box-shadow bleeds vertically and stacks across\n neighboring pinned cells, producing dark bands between rows.\n\n Drawn only while a column really is hidden under this edge (the body marks\n its scroll containers, see TABLE_OVERFLOW_ATTRIBUTE): a table whose columns\n all fit has nothing to announce, and a permanent dark band beside the\n actions column was the one thing that made a pinned column look different. */\n &::after {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n width: 12px;\n pointer-events: none;\n opacity: 0;\n transition: opacity 0.12s ease;\n ", "\n background: linear-gradient(\n to ", ",\n rgba(0, 0, 0, 0.35),\n rgba(0, 0, 0, 0)\n );\n }\n ", " {\n opacity: 1;\n }\n "])), pin === 'left' ? 'right: -12px;' : 'left: -12px;', pin === 'left' ? 'right' : 'left', (0, helpers_2.pinnedEdgeShadowSelector)(pin))), interactive && (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n /* A row that does something on a click says so under the pointer: the whole row lights,\n the way a cell with its own click already did. Row hover was dropped with the row's\n hover STATE (a re-render per mouse move); it is plain CSS on the row now, free. */\n .reqore-table-row:hover > & {\n ", "\n }\n "], ["\n /* A row that does something on a click says so under the pointer: the whole row lights,\n the way a cell with its own click already did. Row hover was dropped with the row's\n hover STATE (a re-render per mouse move); it is plain CSS on the row now, free. */\n .reqore-table-row:hover > & {\n ", "\n }\n "])), pin
|
|
144
|
+
? (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background: linear-gradient(\n ", ",\n ", "\n ),\n ", ";\n "], ["\n background: linear-gradient(\n ", ",\n ", "\n ),\n ", ";\n "])), (0, polished_1.lighten)(0.1, displayedBackgroundColor), (0, polished_1.lighten)(0.1, displayedBackgroundColor), (0, colors_1.getPanelBackgroundColor)(theme)) : (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background-color: ", ";\n "], ["\n background-color: ", ";\n "])), (0, polished_1.lighten)(0.1, displayedBackgroundColor))), interactiveCell && (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n &:hover {\n /* Pinned cells rely on the layered background shorthand for their opaque base \u2014\n overriding just background-color would lose theme.main and let the non-pinned\n cells scrolling underneath show through on hover. */\n ", "\n }\n "], ["\n &:hover {\n /* Pinned cells rely on the layered background shorthand for their opaque base \u2014\n overriding just background-color would lose theme.main and let the non-pinned\n cells scrolling underneath show through on hover. */\n ", "\n }\n "])), pin
|
|
145
|
+
? (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n background: linear-gradient(\n ", ",\n ", "\n ),\n ", ";\n "], ["\n background: linear-gradient(\n ", ",\n ", "\n ),\n ", ";\n "])), (0, polished_1.lighten)(0.1, displayedBackgroundColor), (0, polished_1.lighten)(0.1, displayedBackgroundColor), (0, colors_1.getPanelBackgroundColor)(theme)) : (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n background-color: ", ";\n "], ["\n background-color: ", ";\n "])), (0, polished_1.lighten)(0.1, displayedBackgroundColor))), !maxHeight && (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n /* Bound the content to the cell's own height.\n\n Left to a cell that clips itself \u2014 the maxHeight clamp above \u2014 this\n would take its job away rather than help: that clamp shows a Show\n more button, and it knows to show it by asking whether its content is\n TALLER than it is. Content pre-shrunk to fit is content with nothing\n more to show, so the button never appeared and the rest of the value\n became unreachable.\n\n Everywhere else the bound is what holds a cell's content to its row.\n It is inert while wrapping does what it says, because the row is then\n as tall as its tallest cell and that cell's content is already\n exactly that tall. It bites where wrapping CANNOT make the row taller\n \u2014 wrap together with an explicit virtualized, which the table warns\n about \u2014 and in the ordinary case below, where it holds anything the\n ellipsis does not reach: a group of chips that wrapped, an image. */\n > * {\n max-height: 100%;\n overflow: hidden;\n }\n "], ["\n /* Bound the content to the cell's own height.\n\n Left to a cell that clips itself \u2014 the maxHeight clamp above \u2014 this\n would take its job away rather than help: that clamp shows a Show\n more button, and it knows to show it by asking whether its content is\n TALLER than it is. Content pre-shrunk to fit is content with nothing\n more to show, so the button never appeared and the rest of the value\n became unreachable.\n\n Everywhere else the bound is what holds a cell's content to its row.\n It is inert while wrapping does what it says, because the row is then\n as tall as its tallest cell and that cell's content is already\n exactly that tall. It bites where wrapping CANNOT make the row taller\n \u2014 wrap together with an explicit virtualized, which the table warns\n about \u2014 and in the ordinary case below, where it holds anything the\n ellipsis does not reach: a group of chips that wrapped, an image. */\n > * {\n max-height: 100%;\n overflow: hidden;\n }\n "]))), wrap
|
|
146
|
+
? (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n > * {\n word-break: break-word;\n overflow-wrap: anywhere;\n }\n\n p.reqore-table-text {\n white-space: normal;\n }\n "], ["\n > * {\n word-break: break-word;\n overflow-wrap: anywhere;\n }\n\n p.reqore-table-text {\n white-space: normal;\n }\n "]))) : (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n > * {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n "], ["\n > * {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n "]))));
|
|
133
147
|
});
|
|
134
|
-
var StyledCellExpandOverlay = styled_1.default.div(
|
|
148
|
+
var StyledCellExpandOverlay = styled_1.default.div(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: flex-end;\n justify-content: center;\n padding: 4px 6px;\n pointer-events: none;\n z-index: 1;\n height: 36px;\n background: ", ";\n\n > * {\n pointer-events: auto;\n }\n"], ["\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: flex-end;\n justify-content: center;\n padding: 4px 6px;\n pointer-events: none;\n z-index: 1;\n height: 36px;\n background: ", ";\n\n > * {\n pointer-events: auto;\n }\n"])), function (_a) {
|
|
135
149
|
var theme = _a.theme;
|
|
136
150
|
return "linear-gradient(to bottom, ".concat((0, polished_1.rgba)(theme.main, 0), " 0%, ").concat(theme.main, " 80%)");
|
|
137
151
|
});
|
|
138
152
|
exports.ReqoreTableBodyCell = (0, react_1.memo)((0, react_1.forwardRef)(function (props, ref) {
|
|
139
153
|
var _a;
|
|
154
|
+
var _b;
|
|
140
155
|
var expandHeightButtonProps = props.expandHeightButtonProps, cellStyleProps = __rest(props, ["expandHeightButtonProps"]);
|
|
141
156
|
var maxHeight = cellStyleProps.maxHeight, children = cellStyleProps.children, size = cellStyleProps.size;
|
|
142
|
-
var
|
|
143
|
-
var
|
|
157
|
+
var _c = (0, react_1.useState)(false), expanded = _c[0], setExpanded = _c[1];
|
|
158
|
+
var _d = (0, react_1.useState)(false), isOverflowing = _d[0], setIsOverflowing = _d[1];
|
|
144
159
|
var localRef = (0, react_1.useRef)(null);
|
|
145
160
|
var setRefs = (0, react_1.useCallback)(function (el) {
|
|
146
161
|
localRef.current = el;
|
|
@@ -172,12 +187,12 @@ exports.ReqoreTableBodyCell = (0, react_1.memo)((0, react_1.forwardRef)(function
|
|
|
172
187
|
}, [maxHeight, expanded, children]);
|
|
173
188
|
var effectiveMaxHeight = expanded ? undefined : maxHeight;
|
|
174
189
|
var showOverlay = !!maxHeight && !expanded && isOverflowing;
|
|
175
|
-
return ((0, jsx_runtime_1.jsxs)(TooltipComponent_1.ReqoreTooltipComponent, __assign({ Component: exports.StyledTableCell }, cellStyleProps, { maxHeight
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
190
|
+
return ((0, jsx_runtime_1.jsxs)(TooltipComponent_1.ReqoreTooltipComponent, __assign({ Component: exports.StyledTableCell }, cellStyleProps, (_a = {}, _a[helpers_2.TABLE_PIN_ATTRIBUTE] = cellStyleProps.pin, _a.maxHeight = effectiveMaxHeight, _a.ref = setRefs, _a.children = [children, showOverlay && ((0, jsx_runtime_1.jsx)(StyledCellExpandOverlay, { className: 'reqore-table-cell-expand', onClick: function (e) { return e.stopPropagation(); }, children: (0, jsx_runtime_1.jsx)(Button_1.default, __assign({ compact: true, size: size === 'micro' || size === 'tiny' ? 'tiny' : 'small', rightIcon: 'ArrowDownSLine' }, expandHeightButtonProps, { onClick: function (e) {
|
|
191
|
+
var _a;
|
|
192
|
+
e.stopPropagation();
|
|
193
|
+
(_a = expandHeightButtonProps === null || expandHeightButtonProps === void 0 ? void 0 : expandHeightButtonProps.onClick) === null || _a === void 0 ? void 0 : _a.call(expandHeightButtonProps, e);
|
|
194
|
+
setExpanded(true);
|
|
195
|
+
}, children: (_b = expandHeightButtonProps === null || expandHeightButtonProps === void 0 ? void 0 : expandHeightButtonProps.children) !== null && _b !== void 0 ? _b : 'Show more' })) }))], _a))));
|
|
181
196
|
}));
|
|
182
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13;
|
|
197
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16;
|
|
183
198
|
//# sourceMappingURL=cell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell.js","sourceRoot":"","sources":["../../../src/components/Table/cell.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAyC;AACzC,+BAAyF;AACzF,uDAAwC;
|
|
1
|
+
{"version":3,"file":"cell.js","sourceRoot":"","sources":["../../../src/components/Table/cell.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAyC;AACzC,+BAAyF;AACzF,uDAAwC;AAGxC,qDAAsD;AAEtD,+CAK8B;AAC9B,6DAA8D;AAC9D,6CAAuD;AACvD,qCAA6D;AAE7D,qDAA6D;AAC7D,qCAA0E;AAE1E,wDAA6D;AAmBhD,QAAA,eAAe,GAAG,gBAAM,CAAC,GAAG,CAAC,UAAU,CAAC;IACnD,wFAAwF;IACxF,wBAAwB;IACxB,iBAAiB,EAAE,IAAA,uBAAc,EAAC,MAAM,EAAE,OAAO,CAAC;CACnD,CAAC,2FAAuB,MACrB,EAOC,QAED,EA0RD,IACF,KApSG,UAAC,EAAmC;QAAjC,KAAK,WAAA,EAAE,QAAQ,cAAA,EAAE,QAAQ,cAAA,EAAE,IAAI,UAAA;IAClC,WAAA,uBAAG,gLAAA,iBACQ,EAAK,wBACD,EAAQ,wBAC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C,uBAAC,gBAAY,aACX,OAAO,QACP,IAAI,EAAE,IAAI,KAAK,OAAO,IAAI,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAC5D,SAAS,EAAC,gBAAgB,IACtB,uBAAuB,IAC3B,OAAO,EAAE,UAAC,CAAC;;oBACT,CAAC,CAAC,eAAe,EAAE,CAAC;oBACpB,MAAA,uBAAuB,aAAvB,uBAAuB,uBAAvB,uBAAuB,CAAE,OAAO,wEAAG,CAAC,CAAC,CAAC;oBACtC,WAAW,CAAC,IAAI,CAAC,CAAC;gBACpB,CAAC,YAEA,MAAA,uBAAuB,aAAvB,uBAAuB,uBAAvB,uBAAuB,CAAE,QAAQ,mCAAI,WAAW,IACpC,GACS,CAC3B,QACsB,CAC1B,CAAC;AACJ,CAAC,CACF,CACF,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IReqoreEffect } from '../Effect';
|
|
1
2
|
import { IReqoreTableColumn, IReqoreTableSort } from '.';
|
|
2
3
|
import { TSizes } from '../../constants/sizes';
|
|
3
4
|
import { IReqoreTheme } from '../../constants/theme';
|
|
@@ -5,7 +6,7 @@ import { IWithReqoreSize } from '../../types/global';
|
|
|
5
6
|
import { IReqoreButtonProps } from '../Button';
|
|
6
7
|
import { IReqoreTableHeaderCellProps } from './headerCell';
|
|
7
8
|
export type TColumnsUpdater = <T extends keyof IReqoreTableColumn>(id: string, key: T, value: IReqoreTableColumn[T]) => void;
|
|
8
|
-
export interface IReqoreCustomHeaderCellProps extends Pick<IReqoreTableHeaderCellProps, 'sortData' | 'onSortChange' | 'onColumnsUpdate' | 'onFilterChange' | 'pinOffset' | 'pinEdge' | 'parentMinimal' | 'sortAscendingLabel' | 'sortDescendingLabel' | 'pinLeftLabel' | 'pinRightLabel' | 'hideColumnLabel' | 'resetSizeLabel' | 'otherActionsLabel' | 'columnFilterPlaceholder'>, Omit<IReqoreTableColumn, 'cell' | 'header'>, Omit<IReqoreButtonProps, 'maxWidth' | 'content'> {
|
|
9
|
+
export interface IReqoreCustomHeaderCellProps extends Pick<IReqoreTableHeaderCellProps, 'sortData' | 'onSortChange' | 'onColumnsUpdate' | 'onFilterChange' | 'pinOffset' | 'pinEdge' | 'parentMinimal' | 'parentHeaderEffect' | 'dividers' | 'sortIndicator' | 'sortAscendingLabel' | 'sortDescendingLabel' | 'pinLeftLabel' | 'pinRightLabel' | 'hideColumnLabel' | 'resetSizeLabel' | 'otherActionsLabel' | 'columnFilterPlaceholder'>, Omit<IReqoreTableColumn, 'cell' | 'header'>, Omit<IReqoreButtonProps, 'maxWidth' | 'content'> {
|
|
9
10
|
hasColumns?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export interface IReqoreCustomHeaderCellComponent extends React.FC<IReqoreCustomHeaderCellProps> {
|
|
@@ -27,6 +28,12 @@ export interface IReqoreTableSectionProps extends IWithReqoreSize {
|
|
|
27
28
|
* `header.transparent` still wins.
|
|
28
29
|
*/
|
|
29
30
|
minimal?: boolean;
|
|
31
|
+
/** See `IReqoreTableProps.headerEffect`. */
|
|
32
|
+
headerEffect?: IReqoreEffect;
|
|
33
|
+
/** See `IReqoreTableProps.headerDividers`. */
|
|
34
|
+
dividers?: boolean;
|
|
35
|
+
/** See `IReqoreTableProps.sortIndicator`. */
|
|
36
|
+
sortIndicator?: 'wash' | 'arrow';
|
|
30
37
|
/** See `IReqoreTableProps.sortAscendingLabel`. */
|
|
31
38
|
sortAscendingLabel?: string;
|
|
32
39
|
/** See `IReqoreTableProps.sortDescendingLabel`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/components/Table/header.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/components/Table/header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAI/C,OAAO,EAAE,kBA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,EAAE,YAAY,CAAC;IACpB,KAAK,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;CACrC;AAED,eAAO,MAAM,uBAAuB,KAKnC,CAAC;;AAmPF,wBAAuC"}
|
|
@@ -111,10 +111,10 @@ var getColumnsGrow = function (columns) {
|
|
|
111
111
|
return grow || undefined;
|
|
112
112
|
};
|
|
113
113
|
var ReqoreTableHeader = (0, react_1.forwardRef)(function (_a, ref) {
|
|
114
|
-
var columns = _a.columns, onSortChange = _a.onSortChange, sortData = _a.sortData, onColumnsUpdate = _a.onColumnsUpdate, onFilterChange = _a.onFilterChange, size = _a.size, component = _a.component, heightAsGroup = _a.heightAsGroup, bodyRef = _a.bodyRef, tableWidth = _a.tableWidth, minimal = _a.minimal, sortAscendingLabel = _a.sortAscendingLabel, sortDescendingLabel = _a.sortDescendingLabel, pinLeftLabel = _a.pinLeftLabel, pinRightLabel = _a.pinRightLabel, hideColumnLabel = _a.hideColumnLabel, resetSizeLabel = _a.resetSizeLabel, otherActionsLabel = _a.otherActionsLabel, columnFilterPlaceholder = _a.columnFilterPlaceholder;
|
|
114
|
+
var columns = _a.columns, onSortChange = _a.onSortChange, sortData = _a.sortData, onColumnsUpdate = _a.onColumnsUpdate, onFilterChange = _a.onFilterChange, size = _a.size, component = _a.component, heightAsGroup = _a.heightAsGroup, bodyRef = _a.bodyRef, tableWidth = _a.tableWidth, minimal = _a.minimal, headerEffect = _a.headerEffect, dividers = _a.dividers, sortIndicator = _a.sortIndicator, sortAscendingLabel = _a.sortAscendingLabel, sortDescendingLabel = _a.sortDescendingLabel, pinLeftLabel = _a.pinLeftLabel, pinRightLabel = _a.pinRightLabel, hideColumnLabel = _a.hideColumnLabel, resetSizeLabel = _a.resetSizeLabel, otherActionsLabel = _a.otherActionsLabel, columnFilterPlaceholder = _a.columnFilterPlaceholder;
|
|
115
115
|
var _b = (0, useCombinedRefs_1.useCombinedRefs)(ref), targetRef = _b.targetRef, setRef = _b.setRef;
|
|
116
|
-
var pinOffsets = (0, react_1.useMemo)(function () { return (0, helpers_1.calculatePinOffsets)(columns); }, [columns]);
|
|
117
|
-
var totalColumnsWidth = (0, react_1.useMemo)(function () { return (0, helpers_1.getTotalColumnsWidth)(columns); }, [columns]);
|
|
116
|
+
var pinOffsets = (0, react_1.useMemo)(function () { return (0, helpers_1.calculatePinOffsets)(columns, tableWidth); }, [columns, tableWidth]);
|
|
117
|
+
var totalColumnsWidth = (0, react_1.useMemo)(function () { return (0, helpers_1.getTotalColumnsWidth)(columns, tableWidth); }, [columns, tableWidth]);
|
|
118
118
|
(0, react_1.useEffect)(function () {
|
|
119
119
|
var el = targetRef.current;
|
|
120
120
|
if (!el) {
|
|
@@ -146,11 +146,11 @@ var ReqoreTableHeader = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
146
146
|
var renderLeafHeaderCell = function (column) {
|
|
147
147
|
var grow = column.grow, align = column.align, dataId = column.dataId, _a = column.header, onClick = _a.onClick, headerComponent = _a.component, rest = __rest(_a, ["onClick", "component"]), colRest = __rest(column, ["grow", "align", "dataId", "header"]);
|
|
148
148
|
var pinInfo = pinOffsets[dataId];
|
|
149
|
-
return renderHeaderCell(headerComponent, __assign(__assign(__assign(__assign({}, minimalHeaderDefaults), rest), (0, lodash_1.omit)(colRest, ['cell'])), { onClick: onClick, dataId: dataId, size: size, sortData: sortData, grow: grow, align: align, onSortChange: onSortChange, onColumnsUpdate: onColumnsUpdate, onFilterChange: onFilterChange, pinOffset: pinInfo === null || pinInfo === void 0 ? void 0 : pinInfo.offset, pinEdge: pinInfo === null || pinInfo === void 0 ? void 0 : pinInfo.isEdge, parentMinimal: minimal, sortAscendingLabel: sortAscendingLabel, sortDescendingLabel: sortDescendingLabel, pinLeftLabel: pinLeftLabel, pinRightLabel: pinRightLabel, hideColumnLabel: hideColumnLabel, resetSizeLabel: resetSizeLabel, otherActionsLabel: otherActionsLabel, columnFilterPlaceholder: columnFilterPlaceholder }));
|
|
149
|
+
return renderHeaderCell(headerComponent, __assign(__assign(__assign(__assign({}, minimalHeaderDefaults), rest), (0, lodash_1.omit)(colRest, ['cell'])), { onClick: onClick, dataId: dataId, size: size, sortData: sortData, grow: grow, align: align, onSortChange: onSortChange, onColumnsUpdate: onColumnsUpdate, onFilterChange: onFilterChange, pinOffset: pinInfo === null || pinInfo === void 0 ? void 0 : pinInfo.offset, pinEdge: pinInfo === null || pinInfo === void 0 ? void 0 : pinInfo.isEdge, parentMinimal: minimal, parentHeaderEffect: headerEffect, dividers: dividers, sortIndicator: sortIndicator, sortAscendingLabel: sortAscendingLabel, sortDescendingLabel: sortDescendingLabel, pinLeftLabel: pinLeftLabel, pinRightLabel: pinRightLabel, hideColumnLabel: hideColumnLabel, resetSizeLabel: resetSizeLabel, otherActionsLabel: otherActionsLabel, columnFilterPlaceholder: columnFilterPlaceholder }));
|
|
150
150
|
};
|
|
151
151
|
var renderGroup = function (column) {
|
|
152
152
|
var align = column.align, dataId = column.dataId, _a = column.header, subColumns = _a.columns, onClick = _a.onClick, headerComponent = _a.component, rest = __rest(_a, ["columns", "onClick", "component"]), colRest = __rest(column, ["align", "dataId", "header"]);
|
|
153
|
-
return ((0, jsx_runtime_1.jsxs)(StyledColumnGroup, { grow: getColumnsGrow(subColumns), className: 'reqore-table-column-group', "data-reqore-table-column-group-id": dataId, width: (0, helpers_1.getColumnsRenderedWidth)(subColumns), maxWidth: (0, helpers_1.getColumnsMaxWidth)(subColumns), minWidth: (0, helpers_1.getColumnsMinWidth)(subColumns), children: [renderHeaderCell(headerComponent, __assign(__assign(__assign(__assign({}, minimalHeaderDefaults), rest), (0, lodash_1.omit)(colRest, ['cell'])), { dataId: dataId, size: size, onClick: onClick, rounded: false, textAlign: align, className: 'reqore-table-column-group-header', resizable: false, hideable: false, pinnable: false, hasColumns: true, grow: 1, parentMinimal: minimal })), (0, jsx_runtime_1.jsx)(StyledColumnGroupHeaders, { className: 'reqore-table-headers', children: renderUnpinnedColumns(subColumns) })] }, dataId));
|
|
153
|
+
return ((0, jsx_runtime_1.jsxs)(StyledColumnGroup, { grow: getColumnsGrow(subColumns), className: 'reqore-table-column-group', "data-reqore-table-column-group-id": dataId, width: (0, helpers_1.getColumnsRenderedWidth)(subColumns), maxWidth: (0, helpers_1.getColumnsMaxWidth)(subColumns), minWidth: (0, helpers_1.getColumnsMinWidth)(subColumns), children: [renderHeaderCell(headerComponent, __assign(__assign(__assign(__assign({}, minimalHeaderDefaults), rest), (0, lodash_1.omit)(colRest, ['cell'])), { dataId: dataId, size: size, onClick: onClick, rounded: false, textAlign: align, className: 'reqore-table-column-group-header', resizable: false, hideable: false, pinnable: false, hasColumns: true, grow: 1, parentMinimal: minimal, parentHeaderEffect: headerEffect, dividers: dividers, sortIndicator: sortIndicator })), (0, jsx_runtime_1.jsx)(StyledColumnGroupHeaders, { className: 'reqore-table-headers', children: renderUnpinnedColumns(subColumns) })] }, dataId));
|
|
154
154
|
};
|
|
155
155
|
var renderUnpinnedColumns = function (cols) {
|
|
156
156
|
return cols.map(function (column) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.js","sourceRoot":"","sources":["../../../src/components/Table/header.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"header.js","sourceRoot":"","sources":["../../../src/components/Table/header.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,iCAA8B;AAC9B,+BAA0E;AAC1E,uDAAwC;AAExC,+CAA2D;AAE3D,+CAAuD;AACvD,6DAA8D;AAC9D,6CAAuD;AACvD,+DAA8D;AAG9D,2CAAkF;AAClF,qCAQmB;AAoFnB,IAAM,wBAAwB,GAAG,gBAAM,CAAC,GAAG,+EAA0B,MACjE,EAoBD,IACF,KArBG,UAAC,EAAiC;QAA/B,aAA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AM;;YACrB,IAAI,MAAA,MAAM,CAAC,MAAM,0CAAE,OAAO,EAAE,CAAC;gBAC3B,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC;YAC7B,CAAC;YACD,OAAO,oBAAoB,CAAC,MAAM,CAAC,CAAC;QACtC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,8FAA8F;IAC9F,0FAA0F;IAC1F,kDAAkD;IAClD,IAAM,aAAa,GAAG,UAAC,OAA6B;QAClD,IAAM,YAAY,GAAyB,IAAA,6BAAmB,EAAC,OAAO,EAAE,UAAU,CAAC,CAAC;QAC9E,IAAA,KAAwC,IAAA,gCAAsB,EAAC,YAAY,CAAC,EAA1E,UAAU,gBAAA,EAAE,QAAQ,cAAA,EAAE,WAAW,iBAAyC,CAAC;QAEnF,qDACK,UAAU,CAAC,GAAG,CAAC,UAAC,GAAG,IAAK,OAAA,oBAAoB,CAAC,GAAG,CAAC,EAAzB,CAAyB,CAAC,SAClD,qBAAqB,CAAC,QAAQ,CAAC,SAC/B,WAAW,CAAC,GAAG,CAAC,UAAC,GAAG,IAAK,OAAA,oBAAoB,CAAC,GAAG,CAAC,EAAzB,CAAyB,CAAC,QACtD;IACJ,CAAC,CAAC;IAEF,OAAO,CACL,uBAAC,wBAAwB,IACvB,SAAS,EAAC,6BAA6B,EACvC,aAAa,EAAE,aAAa,EAC5B,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,iBAAiB,EAC3B,GAAG,EAAE,MAAM,YAEX,uBAAC,oBAAoB,cAAE,aAAa,CAAC,OAAO,CAAC,GAAwB,GAC5C,CAC5B,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,kBAAe,IAAA,YAAI,EAAC,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IReqoreTableColumn, IReqoreTableSort } from '.';
|
|
2
2
|
import { IReqoreTheme } from '../../constants/theme';
|
|
3
3
|
import { IReqoreButtonProps } from '../Button';
|
|
4
|
+
import { IReqoreEffect } from '../Effect';
|
|
4
5
|
import { TColumnsUpdater } from './header';
|
|
5
6
|
export interface IReqoreTableHeaderCellProps extends Omit<IReqoreTableColumn, 'cell'>, Pick<IReqoreTableColumn['header'], 'content' | 'actions'>, Omit<IReqoreButtonProps, 'maxWidth' | 'content'> {
|
|
6
7
|
onSortChange?: (sort: string) => void;
|
|
@@ -17,6 +18,12 @@ export interface IReqoreTableHeaderCellProps extends Omit<IReqoreTableColumn, 'c
|
|
|
17
18
|
* public column config — the table threads it through internally.
|
|
18
19
|
*/
|
|
19
20
|
parentMinimal?: boolean;
|
|
21
|
+
/** See `IReqoreTableProps.headerEffect`: merged over the base header typography. */
|
|
22
|
+
parentHeaderEffect?: IReqoreEffect;
|
|
23
|
+
/** See `IReqoreTableProps.headerDividers`: `false` shows the resize handle only on hover. */
|
|
24
|
+
dividers?: boolean;
|
|
25
|
+
/** See `IReqoreTableProps.sortIndicator`: `'arrow'` draws an arrow instead of the info wash. */
|
|
26
|
+
sortIndicator?: 'wash' | 'arrow';
|
|
20
27
|
/** See `IReqoreTableProps.sortAscendingLabel`. */
|
|
21
28
|
sortAscendingLabel?: string;
|
|
22
29
|
/** See `IReqoreTableProps.sortDescendingLabel`. */
|
|
@@ -43,5 +50,5 @@ export interface IReqoreTableHeaderStyle {
|
|
|
43
50
|
}
|
|
44
51
|
export declare const StyledTableHeaderResize: any;
|
|
45
52
|
export declare const StyledSortIcon: any;
|
|
46
|
-
export declare const ReqoreTableHeaderCell: import("react").MemoExoticComponent<({ width, maxWidth, minWidth, resizedWidth, grow, align, pin, pinOffset, pinEdge, onSortChange, dataId, sortable, sortData, className, onClick, onColumnsUpdate, resizable, filterPlaceholder, filterable, hideable, pinnable, filter, content, size, onFilterChange, actions, parentMinimal, hasColumns, sortAscendingLabel, sortDescendingLabel, pinLeftLabel, pinRightLabel, hideColumnLabel, resetSizeLabel, otherActionsLabel, columnFilterPlaceholder, ...rest }: IReqoreTableHeaderCellProps) => import("react/jsx-runtime").JSX.Element>;
|
|
53
|
+
export declare const ReqoreTableHeaderCell: import("react").MemoExoticComponent<({ width, maxWidth, minWidth, resizedWidth, grow, align, pin, pinOffset, pinEdge, onSortChange, dataId, sortable, sortData, className, onClick, onColumnsUpdate, resizable, filterPlaceholder, filterable, hideable, pinnable, filter, content, size, onFilterChange, actions, parentMinimal, parentHeaderEffect, dividers, sortIndicator, hasColumns, sortAscendingLabel, sortDescendingLabel, pinLeftLabel, pinRightLabel, hideColumnLabel, resetSizeLabel, otherActionsLabel, columnFilterPlaceholder, ...rest }: IReqoreTableHeaderCellProps) => import("react/jsx-runtime").JSX.Element>;
|
|
47
54
|
//# sourceMappingURL=headerCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headerCell.d.ts","sourceRoot":"","sources":["../../../src/components/Table/headerCell.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,GAAG,CAAC;AAEzD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,OAAqB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"headerCell.d.ts","sourceRoot":"","sources":["../../../src/components/Table/headerCell.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,GAAG,CAAC;AAEzD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,OAAqB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAG7D,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,2BACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,MAAM,CAAC,EACtC,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC,EACzD,IAAI,CAAC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AC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,uBAAuB,KAmBnC,CAAC;AAEF,eAAO,MAAM,cAAc,KAE1B,CAAC;AA4EF,eAAO,MAAM,qBAAqB,2hBA0C7B,2BAA2B,6CA4T/B,CAAC"}
|
|
@@ -59,13 +59,16 @@ exports.StyledTableHeaderResize = styled_1.default.div(templateObject_1 || (temp
|
|
|
59
59
|
return (0, polished_1.rgba)((0, colors_1.getReadableColor)(theme), $minimal ? 0.5 : 0.4);
|
|
60
60
|
});
|
|
61
61
|
exports.StyledSortIcon = (0, styled_1.default)(__1.ReqoreIcon)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: absolute;\n"], ["\n position: absolute;\n"])));
|
|
62
|
-
var StyledHeaderResizable = (0, styled_1.default)(re_resizable_1.Resizable)(
|
|
62
|
+
var StyledHeaderResizable = (0, styled_1.default)(re_resizable_1.Resizable)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n box-sizing: border-box;\n flex-shrink: 0;\n\n * {\n box-sizing: border-box;\n }\n\n ", "\n\n /* A pinned header cell paints the surface the table sits on, so the header\n cells scrolling under it do not show through. Under minimal the cell's own\n button is transparent, and a pinned column used to need header.transparent\n set to false (a filled button, i.e. a different-looking header) to stay opaque. */\n ", "\n\n ", "\n"], ["\n box-sizing: border-box;\n flex-shrink: 0;\n\n * {\n box-sizing: border-box;\n }\n\n ", "\n\n /* A pinned header cell paints the surface the table sits on, so the header\n cells scrolling under it do not show through. Under minimal the cell's own\n button is transparent, and a pinned column used to need header.transparent\n set to false (a filled button, i.e. a different-looking header) to stay opaque. */\n ", "\n\n ", "\n"])), function (_a) {
|
|
63
63
|
var $minimal = _a.$minimal;
|
|
64
64
|
return $minimal && (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n &:hover .reqore-table-header-resize {\n opacity: 0.5;\n }\n "], ["\n &:hover .reqore-table-header-resize {\n opacity: 0.5;\n }\n "])));
|
|
65
|
+
}, function (_a) {
|
|
66
|
+
var $pin = _a.$pin, theme = _a.theme;
|
|
67
|
+
return $pin && (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background: ", ";\n "], ["\n background: ", ";\n "])), (0, colors_1.getPanelBackgroundColor)(theme));
|
|
65
68
|
}, function (_a) {
|
|
66
69
|
var $pin = _a.$pin, $pinEdge = _a.$pinEdge;
|
|
67
70
|
return $pin &&
|
|
68
|
-
$pinEdge && (0, styled_components_1.css)(
|
|
71
|
+
$pinEdge && (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n /* Bounded-height pseudo-shadow (matches body pinned cells). Override the inline\n overflow:hidden so the 12px projection isn't clipped on this cell. Drawn only\n while a column is hidden under this edge \u2014 see TABLE_OVERFLOW_ATTRIBUTE. */\n overflow: visible !important;\n\n &::after {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n width: 12px;\n pointer-events: none;\n opacity: 0;\n transition: opacity 0.12s ease;\n ", "\n background: linear-gradient(\n to ", ",\n rgba(0, 0, 0, 0.35),\n rgba(0, 0, 0, 0)\n );\n z-index: 1;\n }\n ", " {\n opacity: 1;\n }\n "], ["\n /* Bounded-height pseudo-shadow (matches body pinned cells). Override the inline\n overflow:hidden so the 12px projection isn't clipped on this cell. Drawn only\n while a column is hidden under this edge \u2014 see TABLE_OVERFLOW_ATTRIBUTE. */\n overflow: visible !important;\n\n &::after {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n width: 12px;\n pointer-events: none;\n opacity: 0;\n transition: opacity 0.12s ease;\n ", "\n background: linear-gradient(\n to ", ",\n rgba(0, 0, 0, 0.35),\n rgba(0, 0, 0, 0)\n );\n z-index: 1;\n }\n ", " {\n opacity: 1;\n }\n "])), $pin === 'left' ? 'right: -12px;' : 'left: -12px;', $pin === 'left' ? 'right' : 'left', (0, helpers_1.pinnedEdgeShadowSelector)($pin));
|
|
69
72
|
});
|
|
70
73
|
/** A header cell's menu does not open on a click with ⌘ held, which sorts the column instead. */
|
|
71
74
|
var opensUnlessSorting = function (_popoverData, event) {
|
|
@@ -79,8 +82,8 @@ var OPTIONS_BUTTON_STYLE = {
|
|
|
79
82
|
borderLeft: 'none',
|
|
80
83
|
};
|
|
81
84
|
exports.ReqoreTableHeaderCell = (0, react_1.memo)(function (_a) {
|
|
82
|
-
var _b;
|
|
83
|
-
var width = _a.width, maxWidth = _a.maxWidth, minWidth = _a.minWidth, resizedWidth = _a.resizedWidth, grow = _a.grow, align = _a.align, pin = _a.pin, pinOffset = _a.pinOffset, pinEdge = _a.pinEdge, onSortChange = _a.onSortChange, dataId = _a.dataId, sortable = _a.sortable, sortData = _a.sortData, className = _a.className, onClick = _a.onClick, onColumnsUpdate = _a.onColumnsUpdate,
|
|
85
|
+
var _b, _c;
|
|
86
|
+
var width = _a.width, maxWidth = _a.maxWidth, minWidth = _a.minWidth, resizedWidth = _a.resizedWidth, grow = _a.grow, align = _a.align, pin = _a.pin, pinOffset = _a.pinOffset, pinEdge = _a.pinEdge, onSortChange = _a.onSortChange, dataId = _a.dataId, sortable = _a.sortable, sortData = _a.sortData, className = _a.className, onClick = _a.onClick, onColumnsUpdate = _a.onColumnsUpdate, _d = _a.resizable, resizable = _d === void 0 ? true : _d, filterPlaceholder = _a.filterPlaceholder, filterable = _a.filterable, _e = _a.hideable, hideable = _e === void 0 ? true : _e, _f = _a.pinnable, pinnable = _f === void 0 ? true : _f, filter = _a.filter, content = _a.content, size = _a.size, onFilterChange = _a.onFilterChange, actions = _a.actions, parentMinimal = _a.parentMinimal, parentHeaderEffect = _a.parentHeaderEffect, _g = _a.dividers, dividers = _g === void 0 ? true : _g, _h = _a.sortIndicator, sortIndicator = _h === void 0 ? 'wash' : _h, hasColumns = _a.hasColumns, _j = _a.sortAscendingLabel, sortAscendingLabel = _j === void 0 ? 'Sort ascending' : _j, _k = _a.sortDescendingLabel, sortDescendingLabel = _k === void 0 ? 'Sort descending' : _k, _l = _a.pinLeftLabel, pinLeftLabel = _l === void 0 ? 'Pin left' : _l, _m = _a.pinRightLabel, pinRightLabel = _m === void 0 ? 'Pin Right' : _m, _o = _a.hideColumnLabel, hideColumnLabel = _o === void 0 ? 'Hide column' : _o, _p = _a.resetSizeLabel, resetSizeLabel = _p === void 0 ? 'Reset size' : _p, _q = _a.otherActionsLabel, otherActionsLabel = _q === void 0 ? 'Other' : _q, _r = _a.columnFilterPlaceholder, columnFilterPlaceholder = _r === void 0 ? 'Filter by this column...' : _r, rest = __rest(_a, ["width", "maxWidth", "minWidth", "resizedWidth", "grow", "align", "pin", "pinOffset", "pinEdge", "onSortChange", "dataId", "sortable", "sortData", "className", "onClick", "onColumnsUpdate", "resizable", "filterPlaceholder", "filterable", "hideable", "pinnable", "filter", "content", "size", "onFilterChange", "actions", "parentMinimal", "parentHeaderEffect", "dividers", "sortIndicator", "hasColumns", "sortAscendingLabel", "sortDescendingLabel", "pinLeftLabel", "pinRightLabel", "hideColumnLabel", "resetSizeLabel", "otherActionsLabel", "columnFilterPlaceholder"]);
|
|
84
87
|
var items = (0, react_1.useMemo)(function () {
|
|
85
88
|
var _items = [];
|
|
86
89
|
if (resizable || hideable || pinnable || sortable) {
|
|
@@ -206,7 +209,7 @@ exports.ReqoreTableHeaderCell = (0, react_1.memo)(function (_a) {
|
|
|
206
209
|
// surface stays cohesive — full-opacity headers on a tinted strip already
|
|
207
210
|
// read clearly. Per-column `header.effect` (carried in `rest.effect`)
|
|
208
211
|
// still wins via the spread below.
|
|
209
|
-
var baseHeaderEffect = (0, react_1.useMemo)(function () { return (__assign({ uppercase: true, weight: 'thick', textSize: (0, utils_1.getOneLessSize)(size), spaced: 1 }, (parentMinimal ? { opacity: 0.7 } : {}))); }, [size, parentMinimal]);
|
|
212
|
+
var baseHeaderEffect = (0, react_1.useMemo)(function () { return (__assign(__assign({ uppercase: true, weight: 'thick', textSize: (0, utils_1.getOneLessSize)(size), spaced: 1 }, (parentMinimal ? { opacity: 0.7 } : {})), parentHeaderEffect)); }, [size, parentMinimal, parentHeaderEffect]);
|
|
210
213
|
/* What a header cell hands the button and the menus it draws keeps its identity while what it is made
|
|
211
214
|
of does: the button and the dropdown are memo components, and a handler or an object made anew on
|
|
212
215
|
every render (DeepScan: REACT_INEFFICIENT_PURE_COMPONENT_PROP) drew them again each time the cell
|
|
@@ -232,7 +235,7 @@ exports.ReqoreTableHeaderCell = (0, react_1.memo)(function (_a) {
|
|
|
232
235
|
inset: true,
|
|
233
236
|
size: 1,
|
|
234
237
|
}
|
|
235
|
-
: undefined, gradient: isSortedBy
|
|
238
|
+
: undefined, gradient: isSortedBy && sortIndicator !== 'arrow'
|
|
236
239
|
? {
|
|
237
240
|
direction: "to ".concat(sortDirection === 'desc' ? 'top' : 'bottom'),
|
|
238
241
|
colors: {
|
|
@@ -241,20 +244,27 @@ exports.ReqoreTableHeaderCell = (0, react_1.memo)(function (_a) {
|
|
|
241
244
|
150: 'info:darken:3',
|
|
242
245
|
},
|
|
243
246
|
}
|
|
244
|
-
: undefined }, ownEffect)); }, [filter, isSortedBy, sortDirection, ownEffect]);
|
|
247
|
+
: undefined }, ownEffect)); }, [filter, isSortedBy, sortDirection, sortIndicator, ownEffect]);
|
|
248
|
+
// `sortIndicator: 'arrow'` says the sort with an arrow beside the label, in place of the wash.
|
|
249
|
+
var sortArrowIcon = sortIndicator === 'arrow' && isSortedBy
|
|
250
|
+
? sortDirection === 'desc'
|
|
251
|
+
? 'ArrowDownLine'
|
|
252
|
+
: 'ArrowUpLine'
|
|
253
|
+
: undefined;
|
|
245
254
|
var buttonEffect = (0, react_1.useMemo)(function () { return (__assign(__assign({}, baseHeaderEffect), ownEffect)); }, [baseHeaderEffect, ownEffect]);
|
|
246
|
-
return ((0, jsx_runtime_1.jsx)(StyledHeaderResizable, __assign({}, { $pin: pin, $pinEdge: pinEdge, $minimal: parentMinimal }, { "data-reqore-table-column-id": hasColumns ? undefined : dataId, minWidth
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
255
|
+
return ((0, jsx_runtime_1.jsx)(StyledHeaderResizable, __assign({}, { $pin: pin, $pinEdge: pinEdge, $minimal: parentMinimal }, (_c = { "data-reqore-table-column-id": hasColumns ? undefined : dataId }, _c[helpers_1.TABLE_PIN_ATTRIBUTE] = pin, _c.minWidth = minWidth !== null && minWidth !== void 0 ? minWidth : renderedWidth, _c.maxWidth = maxWidth, _c.onResize = function (_event, _direction, _component) {
|
|
256
|
+
onColumnsUpdate === null || onColumnsUpdate === void 0 ? void 0 : onColumnsUpdate(dataId, 'resizedWidth', parseInt(_component.style.width));
|
|
257
|
+
},
|
|
258
|
+
// A press on the column's resize handle resizes the column; it does not pull the table.
|
|
259
|
+
_c.handleClasses = { right: 'reqore-no-drag-scroll' }, _c.handleComponent = {
|
|
260
|
+
right: ((0, jsx_runtime_1.jsx)(exports.StyledTableHeaderResize, { className: 'reqore-table-header-resize', "$minimal": parentMinimal || !dividers })),
|
|
261
|
+
}, _c.style = __assign({ overflow: 'hidden', flexGrow: grow }, pinStyle), _c.size = {
|
|
262
|
+
width: renderedWidth,
|
|
263
|
+
height: undefined,
|
|
264
|
+
}, _c.enable = {
|
|
265
|
+
right: resizable,
|
|
266
|
+
}, _c.children =
|
|
267
|
+
(0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(__1.ReqoreControlGroup, { fluid: true, stack: true, rounded: false, fill: true, style: { height: '100%' }, children: [content ? (content) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, size_1.default)(items) ? ((0, jsx_runtime_1.jsx)(__1.ReqoreDropdown, __assign({ className: "".concat(className || '', " reqore-table-header-cell-options reqore-table-header-cell"), compact: true, size: size, rounded: false, filterable: filterable, filterPlaceholder: filterPlaceholder || columnFilterPlaceholder, filter: filter, onFilterChange: handleFilterChange, items: items, showCaret: false, textAlign: align, readOnlyOnEmpty: true, onBeforeOpen: opensUnlessSorting, inputProps: filterInputProps, onClick: handleClick, labelEffect: baseHeaderEffect }, rest, { rightIcon: sortArrowIcon !== null && sortArrowIcon !== void 0 ? sortArrowIcon : rest.rightIcon, effect: menuEffect }))) : ((0, jsx_runtime_1.jsx)(Button_1.default, __assign({ className: "".concat(className || '', " reqore-table-header-cell-options reqore-table-header-cell"), compact: true, size: size, rounded: false, textAlign: align, onClick: handleClick }, rest, { effect: buttonEffect }))) })), content && (filterable || hideable || resizable) ? ((0, jsx_runtime_1.jsx)(__1.ReqoreDropdown, { icon: 'More2Line', className: 'reqore-table-header-cell-options', fixed: true, compact: true, buttonStyle: OPTIONS_BUTTON_STYLE, size: size, rounded: false, intent: filter || (isSortedBy && sortIndicator !== 'arrow') ? 'info' : rest.intent, filterable: filterable, filterPlaceholder: filterPlaceholder || columnFilterPlaceholder, filter: filter, inputProps: filterInputProps, onFilterChange: handleFilterChange, items: items })) : null] }) }), _c))));
|
|
258
268
|
});
|
|
259
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
269
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
|
|
260
270
|
//# sourceMappingURL=headerCell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headerCell.js","sourceRoot":"","sources":["../../../src/components/Table/headerCell.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAgC;AAChC,qCAAgC;AAChC,6CAAyC;AACzC,+BAAmD;AACnD,uDAAkD;AAClD,gEAA0C;AAE1C,2BAAuE;AAEvE,+CAAwD;AACxD,6CAAqD;AACrD,qDAA6D;AAI7D,qCAAmD;AA+CtC,QAAA,uBAAuB,GAAG,gBAAM,CAAC,GAAG,8jBAAwB,kRAM5D,EAAoC,2NAWzC,EAA4E,UAEnF,KAbY,UAAC,EAAY;QAAV,QAAQ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