slick-table 1.1.18 → 1.1.19

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.
@@ -2,6 +2,7 @@ declare const _default: {
2
2
  Button: import('@emotion/styled').StyledComponent<import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
3
3
  ref?: ((instance: HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLButtonElement> | null | undefined;
4
4
  }, "className" | "style" | "classes" | "tabIndex" | "color" | "children" | "sx" | "variant" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
5
+ Dialog: import('@emotion/styled').StyledComponent<import('@mui/material').DialogProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
5
6
  DialogTitle: import('@emotion/styled').StyledComponent<import('@mui/material').DialogTitleOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
6
7
  ref?: ((instance: HTMLSpanElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLSpanElement> | null | undefined;
7
8
  }, "className" | "style" | "classes" | "p" | "color" | "children" | "height" | "sx" | "variant" | "width" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -1 +1 @@
1
- {"version":3,"file":"PopupSummary.style.d.ts","sourceRoot":"","sources":["../../../../../src/entities/popup-summary/ui/PopupSummary.style.ts"],"names":[],"mappings":";;;;;;;;;;;AAgBA,wBAIE"}
1
+ {"version":3,"file":"PopupSummary.style.d.ts","sourceRoot":"","sources":["../../../../../src/entities/popup-summary/ui/PopupSummary.style.ts"],"names":[],"mappings":";;;;;;;;;;;;AAsBA,wBAKE"}
@@ -1 +1 @@
1
- {"version":3,"file":"TotalByColumn.d.ts","sourceRoot":"","sources":["../../../../../../src/entities/popup-summary/ui/TotalByColumn/TotalByColumn.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAM7E,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,MAAM,CA0BpC,CAAC;AAEF,UAAU,MAAM;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EACX,MAAM,GACN,WAAW,GACX,gBAAgB,GAChB,uBAAuB,GACvB,uBAAuB,CAAC;CAC3B"}
1
+ {"version":3,"file":"TotalByColumn.d.ts","sourceRoot":"","sources":["../../../../../../src/entities/popup-summary/ui/TotalByColumn/TotalByColumn.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAM7E,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,MAAM,CA6BpC,CAAC;AAEF,UAAU,MAAM;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EACX,MAAM,GACN,WAAW,GACX,gBAAgB,GAChB,uBAAuB,GACvB,uBAAuB,CAAC;CAC3B"}
@@ -1,9 +1,6 @@
1
1
  declare const _default: {
2
- DialogContentText: import('@emotion/styled').StyledComponent<import('@mui/material').DialogContentTextOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
3
- ref?: ((instance: HTMLSpanElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLSpanElement> | null | undefined;
4
- }, "className" | "style" | "classes" | "p" | "color" | "children" | "height" | "sx" | "variant" | "width" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
5
2
  Icon: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
6
- Text: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
3
+ Total: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
7
4
  };
8
5
  export default _default;
9
6
  //# sourceMappingURL=TotalByColumn.style.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TotalByColumn.style.d.ts","sourceRoot":"","sources":["../../../../../../src/entities/popup-summary/ui/TotalByColumn/TotalByColumn.style.ts"],"names":[],"mappings":";;;;;;;AAkBA,wBAA0E"}
1
+ {"version":3,"file":"TotalByColumn.style.d.ts","sourceRoot":"","sources":["../../../../../../src/entities/popup-summary/ui/TotalByColumn/TotalByColumn.style.ts"],"names":[],"mappings":";;;;AAiBA,wBAA+B"}
@@ -1 +1 @@
1
- {"version":3,"file":"StyledDialogContentText.d.ts","sourceRoot":"","sources":["../../../../../../src/entities/popup-summary/ui/styles/StyledDialogContentText.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB;;6nDAIlC,CAAC"}
1
+ {"version":3,"file":"StyledDialogContentText.d.ts","sourceRoot":"","sources":["../../../../../../src/entities/popup-summary/ui/styles/StyledDialogContentText.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB;;6nDAKlC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slick-table",
3
- "version": "1.1.18",
3
+ "version": "1.1.19",
4
4
  "description": "Enhanced version of SlickGrid library",
5
5
  "private": false,
6
6
  "type": "module",
@@ -1,4 +1,10 @@
1
- import { Button, DialogTitle, List, styled } from "@mui/material";
1
+ import { Button, Dialog, DialogTitle, List, styled } from "@mui/material";
2
+
3
+ const StyledDialog = styled(Dialog)({
4
+ "& .MuiPaper-root": {
5
+ minWidth: "25em",
6
+ },
7
+ });
2
8
 
3
9
  const StyledDialogTitle = styled(DialogTitle)({
4
10
  color: "#1E456F",
@@ -16,6 +22,7 @@ const StyledButton = styled(Button)({
16
22
 
17
23
  export default {
18
24
  Button: StyledButton,
25
+ Dialog: StyledDialog,
19
26
  DialogTitle: StyledDialogTitle,
20
27
  List: StyledList,
21
28
  };
@@ -1,4 +1,4 @@
1
- import { Box, Dialog, DialogActions, DialogContent } from "@mui/material";
1
+ import { Box, DialogActions, DialogContent } from "@mui/material";
2
2
  import { FC, useEffect, useState } from "react";
3
3
 
4
4
  import { eventSummary } from "shared/lib/slickgrid";
@@ -39,11 +39,11 @@ export const PopupSummary: FC = () => {
39
39
  if (!isOpened) return null;
40
40
 
41
41
  return (
42
- <Dialog open={isOpened} onClose={onClose}>
42
+ <Styled.Dialog open={isOpened} onClose={onClose}>
43
43
  <Styled.DialogTitle>Selected rows summary</Styled.DialogTitle>
44
44
  <DialogContent>
45
45
  <Styled.List>
46
- <StyledDialogContentText>{`number of selected rows: ${rowsNumber}`}</StyledDialogContentText>
46
+ <StyledDialogContentText>{`Number of selected rows: ${rowsNumber}`}</StyledDialogContentText>
47
47
  {Object.entries(totals).map(
48
48
  ([id, { label, total, totalFormatted }]) => (
49
49
  <Box key={id}>
@@ -62,6 +62,6 @@ export const PopupSummary: FC = () => {
62
62
  Close
63
63
  </Styled.Button>
64
64
  </DialogActions>
65
- </Dialog>
65
+ </Styled.Dialog>
66
66
  );
67
67
  };
@@ -1,14 +1,13 @@
1
- import { DialogContentText, styled } from "@mui/material";
1
+ import { styled } from "@mui/material";
2
2
 
3
- const Text = styled("span")({
4
- marginRight: "0.5em",
5
- });
6
- const StyledDialogContentText = styled(DialogContentText)({
3
+ const Total = styled("span")({
7
4
  display: "flex",
8
5
  alignItems: "center",
9
6
  });
10
7
 
11
8
  const Icon = styled("span")({
9
+ marginLeft: "0.5em",
10
+ width: "20px",
12
11
  cursor: "pointer",
13
12
  backgroundColor: "#1E456F",
14
13
  "&:hover": {
@@ -16,4 +15,4 @@ const Icon = styled("span")({
16
15
  },
17
16
  });
18
17
 
19
- export default { DialogContentText: StyledDialogContentText, Icon, Text };
18
+ export default { Icon, Total };
@@ -19,17 +19,20 @@ export const TotalByColumn: FC<IProps> = ({ label, total, totalFormatted }) => {
19
19
 
20
20
  return (
21
21
  <StyledDialogContentText>
22
- <Styled.Text>{`total ${label}: ${totalFormatted}`}</Styled.Text>
23
- {open ? (
24
- <Styled.Icon className={"sgi sgi-check"}></Styled.Icon>
25
- ) : (
26
- <Tooltip title={"Copy to clipboard"}>
27
- <Styled.Icon
28
- className={"sgi sgi-content-copy"}
29
- onClick={copyToClipboard}
30
- />
31
- </Tooltip>
32
- )}
22
+ <span>{`Total ${label}:`}</span>
23
+ <Styled.Total>
24
+ <span>{`${totalFormatted}`}</span>
25
+ {open ? (
26
+ <Styled.Icon className={"sgi sgi-check"}></Styled.Icon>
27
+ ) : (
28
+ <Tooltip title={"Copy to clipboard"}>
29
+ <Styled.Icon
30
+ className={"sgi sgi-content-copy"}
31
+ onClick={copyToClipboard}
32
+ />
33
+ </Tooltip>
34
+ )}
35
+ </Styled.Total>
33
36
  </StyledDialogContentText>
34
37
  );
35
38
  };
@@ -4,4 +4,5 @@ export const StyledDialogContentText = styled(DialogContentText)({
4
4
  alignItems: "center",
5
5
  color: "#1E456F",
6
6
  display: "flex",
7
+ justifyContent: "space-between",
7
8
  });