slick-table 1.1.16 → 1.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/index.cjs.js +85 -85
  2. package/dist/index.es.js +4637 -4583
  3. package/dist/types/entities/popup-summary/index.d.ts +0 -1
  4. package/dist/types/entities/popup-summary/index.d.ts.map +1 -1
  5. package/dist/types/entities/popup-summary/lib/getTotals.d.ts.map +1 -1
  6. package/dist/types/entities/popup-summary/model/index.d.ts +0 -1
  7. package/dist/types/entities/popup-summary/model/index.d.ts.map +1 -1
  8. package/dist/types/entities/popup-summary/model/types/ITotal.d.ts +5 -0
  9. package/dist/types/entities/popup-summary/model/types/ITotal.d.ts.map +1 -1
  10. package/dist/types/entities/popup-summary/ui/PopupSummary.d.ts.map +1 -1
  11. package/dist/types/entities/popup-summary/ui/PopupSummary.style.d.ts +13 -0
  12. package/dist/types/entities/popup-summary/ui/PopupSummary.style.d.ts.map +1 -0
  13. package/dist/types/entities/popup-summary/ui/TotalByColumn/TotalByColumn.d.ts +2 -0
  14. package/dist/types/entities/popup-summary/ui/TotalByColumn/TotalByColumn.d.ts.map +1 -1
  15. package/dist/types/entities/popup-summary/ui/TotalByColumn/TotalByColumn.style.d.ts.map +1 -1
  16. package/dist/types/entities/popup-summary/ui/styles/StyledDialogContentText.d.ts +4 -0
  17. package/dist/types/entities/popup-summary/ui/styles/StyledDialogContentText.d.ts.map +1 -0
  18. package/dist/types/entities/popup-summary/ui/styles/index.d.ts +2 -0
  19. package/dist/types/entities/popup-summary/ui/styles/index.d.ts.map +1 -0
  20. package/dist/types/features/column-filters/ui/ButtonReset/ButtonReset.style.d.ts +1 -1
  21. package/dist/types/features/context-menu/ui/ButtonSummary/ButtonSummary.d.ts.map +1 -1
  22. package/dist/types/features/header-context-menu/ui/Item/Item.style.d.ts +1 -1
  23. package/dist/types/shared/lib/slickgrid/index.d.ts +1 -1
  24. package/dist/types/shared/lib/slickgrid/index.d.ts.map +1 -1
  25. package/dist/types/shared/lib/slickgrid/lib/hotKeys/hotKeysOpenSummary.d.ts +3 -0
  26. package/dist/types/shared/lib/slickgrid/lib/hotKeys/hotKeysOpenSummary.d.ts.map +1 -0
  27. package/dist/types/shared/lib/slickgrid/lib/hotKeys/index.d.ts +1 -0
  28. package/dist/types/shared/lib/slickgrid/lib/hotKeys/index.d.ts.map +1 -1
  29. package/dist/types/shared/lib/slickgrid/lib/index.d.ts +1 -1
  30. package/dist/types/shared/lib/slickgrid/lib/index.d.ts.map +1 -1
  31. package/dist/types/shared/lib/slickgrid/model/SlickTable/hotKeys/DefaultHotKeys.d.ts.map +1 -1
  32. package/dist/types/shared/lib/slickgrid/model/events/eventSummary.d.ts +13 -0
  33. package/dist/types/shared/lib/slickgrid/model/events/eventSummary.d.ts.map +1 -0
  34. package/dist/types/shared/lib/slickgrid/model/events/index.d.ts +1 -0
  35. package/dist/types/shared/lib/slickgrid/model/events/index.d.ts.map +1 -1
  36. package/dist/types/shared/lib/slickgrid/model/index.d.ts +1 -1
  37. package/dist/types/shared/lib/slickgrid/model/index.d.ts.map +1 -1
  38. package/dist/types/shared/model/enums/EKeyCode.d.ts +1 -0
  39. package/dist/types/shared/model/enums/EKeyCode.d.ts.map +1 -1
  40. package/dist/types/shared/ui/ContextSelect/ContextSelect.style.d.ts +1 -1
  41. package/package.json +1 -1
  42. package/src/app/styles/icons.scss +16 -0
  43. package/src/app/styles/mixins.scss +12 -0
  44. package/src/entities/popup-summary/index.ts +0 -1
  45. package/src/entities/popup-summary/lib/getTotals.ts +16 -1
  46. package/src/entities/popup-summary/model/index.ts +0 -1
  47. package/src/entities/popup-summary/model/types/ITotal.ts +23 -1
  48. package/src/entities/popup-summary/ui/PopupSummary.style.ts +21 -0
  49. package/src/entities/popup-summary/ui/PopupSummary.tsx +24 -24
  50. package/src/entities/popup-summary/ui/TotalByColumn/TotalByColumn.style.ts +3 -0
  51. package/src/entities/popup-summary/ui/TotalByColumn/TotalByColumn.tsx +13 -4
  52. package/src/entities/popup-summary/ui/styles/StyledDialogContentText.ts +7 -0
  53. package/src/entities/popup-summary/ui/styles/index.ts +1 -0
  54. package/src/features/context-menu/ui/ButtonSummary/ButtonSummary.tsx +2 -4
  55. package/src/index.scss +2 -1
  56. package/src/shared/lib/slickgrid/index.ts +1 -0
  57. package/src/shared/lib/slickgrid/lib/hotKeys/hotKeysOpenSummary.ts +7 -0
  58. package/src/shared/lib/slickgrid/lib/hotKeys/index.ts +1 -0
  59. package/src/shared/lib/slickgrid/lib/index.ts +1 -0
  60. package/src/shared/lib/slickgrid/model/SlickTable/hotKeys/DefaultHotKeys.ts +9 -0
  61. package/src/{entities/popup-summary/model/event → shared/lib/slickgrid/model/events}/eventSummary.ts +9 -0
  62. package/src/shared/lib/slickgrid/model/events/index.ts +1 -0
  63. package/src/shared/lib/slickgrid/model/index.ts +5 -1
  64. package/src/shared/model/enums/EKeyCode.ts +1 -0
  65. package/dist/types/entities/popup-summary/model/event/eventSummary.d.ts +0 -9
  66. package/dist/types/entities/popup-summary/model/event/eventSummary.d.ts.map +0 -1
  67. package/dist/types/entities/popup-summary/model/event/index.d.ts +0 -2
  68. package/dist/types/entities/popup-summary/model/event/index.d.ts.map +0 -1
  69. package/src/entities/popup-summary/model/event/index.ts +0 -1
@@ -1,3 +1,2 @@
1
- export { eventSummary } from './model';
2
1
  export { PopupSummary } from './ui';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/entities/popup-summary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/entities/popup-summary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getTotals.d.ts","sourceRoot":"","sources":["../../../../../src/entities/popup-summary/lib/getTotals.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,wBAAgB,SAAS,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,GAAG,MAAM,CAwBhE"}
1
+ {"version":3,"file":"getTotals.d.ts","sourceRoot":"","sources":["../../../../../src/entities/popup-summary/lib/getTotals.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,wBAAgB,SAAS,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,GAAG,MAAM,CAuChE"}
@@ -1,3 +1,2 @@
1
- export { eventSummary } from './event';
2
1
  export type { ITotal } from './types';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/entities/popup-summary/model/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/entities/popup-summary/model/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC"}
@@ -1,5 +1,10 @@
1
+ import { Column, Formatter, FormatterResultWithHtml, FormatterResultWithText } from 'slickgrid';
1
2
  export type ITotal = Record<string, {
3
+ cell: number;
4
+ column: Column;
5
+ formatter?: Formatter<any>;
2
6
  label: string;
3
7
  total: number;
8
+ totalFormatted: string | HTMLElement | DocumentFragment | FormatterResultWithHtml | FormatterResultWithText;
4
9
  }>;
5
10
  //# sourceMappingURL=ITotal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ITotal.d.ts","sourceRoot":"","sources":["../../../../../../src/entities/popup-summary/model/types/ITotal.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC"}
1
+ {"version":3,"file":"ITotal.d.ts","sourceRoot":"","sources":["../../../../../../src/entities/popup-summary/model/types/ITotal.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,MAAM,EACN,SAAS,EACT,uBAAuB,EACvB,uBAAuB,EACvB,MAAM,WAAW,CAAC;AAEnB,MAAM,MAAM,MAAM,GAAG,MAAM,CAC1B,MAAM,EACN;IACC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EACX,MAAM,GACN,WAAW,GACX,gBAAgB,GAChB,uBAAuB,GACvB,uBAAuB,CAAC;CAC3B,CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"PopupSummary.d.ts","sourceRoot":"","sources":["../../../../../src/entities/popup-summary/ui/PopupSummary.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,EAAE,EAAuB,MAAM,OAAO,CAAC;AAQhD,eAAO,MAAM,YAAY,EAAE,EAgD1B,CAAC"}
1
+ {"version":3,"file":"PopupSummary.d.ts","sourceRoot":"","sources":["../../../../../src/entities/popup-summary/ui/PopupSummary.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAuB,MAAM,OAAO,CAAC;AAWhD,eAAO,MAAM,YAAY,EAAE,EAsD1B,CAAC"}
@@ -0,0 +1,13 @@
1
+ declare const _default: {
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
+ 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
+ }, "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
+ 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
+ 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
+ }, "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>, {}, {}>;
8
+ List: import('@emotion/styled').StyledComponent<import('@mui/material').ListOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & {
9
+ ref?: ((instance: HTMLUListElement | 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<HTMLUListElement> | null | undefined;
10
+ }, "className" | "style" | "classes" | "children" | "sx" | "dense" | "disablePadding" | "subheader"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
11
+ };
12
+ export default _default;
13
+ //# sourceMappingURL=PopupSummary.style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PopupSummary.style.d.ts","sourceRoot":"","sources":["../../../../../src/entities/popup-summary/ui/PopupSummary.style.ts"],"names":[],"mappings":";;;;;;;;;;;AAgBA,wBAIE"}
@@ -1,8 +1,10 @@
1
1
  import { FC } from 'react';
2
+ import { FormatterResultWithHtml, FormatterResultWithText } from 'slickgrid';
2
3
  export declare const TotalByColumn: FC<IProps>;
3
4
  interface IProps {
4
5
  label: string;
5
6
  total: number;
7
+ totalFormatted: string | HTMLElement | DocumentFragment | FormatterResultWithHtml | FormatterResultWithText;
6
8
  }
7
9
  export {};
8
10
  //# sourceMappingURL=TotalByColumn.d.ts.map
@@ -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;AAIrC,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,MAAM,CA0BpC,CAAC;AAEF,UAAU,MAAM;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACd"}
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 +1 @@
1
- {"version":3,"file":"TotalByColumn.style.d.ts","sourceRoot":"","sources":["../../../../../../src/entities/popup-summary/ui/TotalByColumn/TotalByColumn.style.ts"],"names":[],"mappings":";;;;;;;AAeA,wBAA0E"}
1
+ {"version":3,"file":"TotalByColumn.style.d.ts","sourceRoot":"","sources":["../../../../../../src/entities/popup-summary/ui/TotalByColumn/TotalByColumn.style.ts"],"names":[],"mappings":";;;;;;;AAkBA,wBAA0E"}
@@ -0,0 +1,4 @@
1
+ export declare const StyledDialogContentText: import('@emotion/styled').StyledComponent<import('@mui/material').DialogContentTextOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
2
+ 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;
3
+ }, "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>, {}, {}>;
4
+ //# sourceMappingURL=StyledDialogContentText.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export { StyledDialogContentText } from './StyledDialogContentText';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/entities/popup-summary/ui/styles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  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
- }, "className" | "style" | "classes" | "tabIndex" | "color" | "children" | "sx" | "variant" | "href" | "disabled" | "action" | "size" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
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
5
  };
6
6
  export default _default;
7
7
  //# sourceMappingURL=ButtonReset.style.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonSummary.d.ts","sourceRoot":"","sources":["../../../../../../src/features/context-menu/ui/ButtonSummary/ButtonSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAQrD,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,MAAM,CAuBpC,CAAC;AAEF,UAAU,MAAM;IACf,WAAW,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CAC/C"}
1
+ {"version":3,"file":"ButtonSummary.d.ts","sourceRoot":"","sources":["../../../../../../src/features/context-menu/ui/ButtonSummary/ButtonSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAMrD,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,MAAM,CAuBpC,CAAC;AAEF,UAAU,MAAM;IACf,WAAW,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CAC/C"}
@@ -3,7 +3,7 @@ declare const _default: {
3
3
  Checkbox: import('@emotion/styled').StyledComponent<CheckboxProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
4
4
  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"> & {
5
5
  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;
6
- }, "className" | "style" | "classes" | "tabIndex" | "color" | "children" | "sx" | "variant" | "href" | "disabled" | "action" | "size" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
6
+ }, "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>, {}, {}>;
7
7
  };
8
8
  export default _default;
9
9
  //# sourceMappingURL=Item.style.d.ts.map
@@ -1,4 +1,4 @@
1
1
  export { Autocomplete, ColumnSorter, DateFormatter, DateValidator, EditorAmount, EditorAutocomplete, EditorDate, EditorSelectString, EditorSelectNumber, EditorSelectWithSearch, EmptyStringValidator, FORMATTER_NUMBER, FormatterCheck, getFormatterNumber, LengthValidator, PercentFormatter, FormatterCheckPrinter, StringFormatter, TotalCalculator, columnSorter, commitCurrentEdit, copySelectedRows, deleteRows, getDisplayedRows, getLastRow, getNextId, highlightCell, highlightColumns, hotKeysCopy, hotKeysDelete, hotKeysRedo, hotKeysUndo, isDeletionDangerous, onCellChange, onRowCountChanged, onRowsChanged, openContextMenu, selectedRows, formatterGroupTotals, useHotKeys, getUpdates, useListenIfTablesWereEdited, useUpdateTotal, wereEdited, } from './lib';
2
- export { ColumnPicker, DownloadManager, DecoratorEndingDate, DecoratorFilter, DecoratorColumnFilter, DecoratorPeriod, DefaultHotKeys, DefaultPrinter, DeletedRowsFilter, Filter, HotKeysDecorator, PreventCopying, RedoUndoOnly, SlickTable, WithConfirmationOfDeletion, WithoutHotKeys, eventContextMenu, eventHeaderContextMenu, } from './model';
2
+ export { ColumnPicker, DownloadManager, DecoratorEndingDate, DecoratorFilter, DecoratorColumnFilter, DecoratorPeriod, DefaultHotKeys, DefaultPrinter, DeletedRowsFilter, Filter, HotKeysDecorator, PreventCopying, RedoUndoOnly, SlickTable, WithConfirmationOfDeletion, WithoutHotKeys, eventContextMenu, eventHeaderContextMenu, eventSummary, } from './model';
3
3
  export { SlickgridTable, WithTableStyles, columnCheckboxSelector, columnIsEdited, eventOpenColumnFilters, handleHeaderButtons, headerButtons, openColumnFilter, } from './ui';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/lib/slickgrid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,UAAU,EACV,UAAU,EACV,2BAA2B,EAC3B,cAAc,EACd,UAAU,GACV,MAAM,OAAO,CAAC;AACf,OAAO,EACN,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,MAAM,EACN,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,0BAA0B,EAC1B,cAAc,EACd,gBAAgB,EAChB,sBAAsB,GACtB,MAAM,SAAS,CAAC;AACjB,OAAO,EACN,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,aAAa,EACb,gBAAgB,GAChB,MAAM,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/lib/slickgrid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,UAAU,EACV,UAAU,EACV,2BAA2B,EAC3B,cAAc,EACd,UAAU,GACV,MAAM,OAAO,CAAC;AACf,OAAO,EACN,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,MAAM,EACN,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,0BAA0B,EAC1B,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,YAAY,GACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EACN,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,aAAa,EACb,gBAAgB,GAChB,MAAM,MAAM,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { OnKeyDownEventArgs, SlickEventData } from 'slickgrid';
2
+ export declare function hotKeysOpenSummary(event: SlickEventData<OnKeyDownEventArgs>): boolean | undefined;
3
+ //# sourceMappingURL=hotKeysOpenSummary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hotKeysOpenSummary.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/lib/slickgrid/lib/hotKeys/hotKeysOpenSummary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAI/D,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,cAAc,CAAC,kBAAkB,CAAC,uBAE3E"}
@@ -1,5 +1,6 @@
1
1
  export { hotKeysCopy } from './hotKeysCopy';
2
2
  export { hotKeysDelete } from './hotKeysDelete';
3
+ export { hotKeysOpenSummary } from './hotKeysOpenSummary';
3
4
  export { hotKeysRedo } from './hotKeysRedo';
4
5
  export { hotKeysReverse } from './hotKeysReverse';
5
6
  export { hotKeysUndo } from './hotKeysUndo';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/lib/slickgrid/lib/hotKeys/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/lib/slickgrid/lib/hotKeys/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -2,7 +2,7 @@ export { getOnKeyDownCallback, onCellChange, onRowCountChanged, onRowsChanged, }
2
2
  export { openContextMenu } from './contextMenu';
3
3
  export { openHeaderContextMenu } from './header-context-menu';
4
4
  export { useHotKeys, useListenIfTablesWereEdited, useResizeCanvas, useUpdateTotal, } from './hooks';
5
- export { hotKeysCopy, hotKeysDelete, hotKeysRedo, hotKeysReverse, hotKeysUndo, nothingToCopy, positionToPaste, } from './hotKeys';
5
+ export { hotKeysCopy, hotKeysDelete, hotKeysOpenSummary, hotKeysRedo, hotKeysReverse, hotKeysUndo, nothingToCopy, positionToPaste, } from './hotKeys';
6
6
  export { Autocomplete, EditorAmount, EditorAutocomplete, EditorDate, EditorSelectString, EditorSelectNumber, EditorSelectWithSearch, } from './editors';
7
7
  export { FORMATTER_NUMBER, DateFormatter, FormatterCheck, getFormatterNumber, PercentFormatter, FormatterCheckPrinter, StringFormatter, } from './formatters';
8
8
  export { commitCurrentEdit, copySelectedRows, deleteRows, getActiveRowId, getDisplayedRows, getLastRow, getNextId, isDeletionDangerous, wereEdited, } from './functions';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/lib/slickgrid/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,aAAa,GACb,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EACN,UAAU,EACV,2BAA2B,EAC3B,eAAe,EACf,cAAc,GACd,MAAM,SAAS,CAAC;AACjB,OAAO,EACN,WAAW,EACX,aAAa,EACb,WAAW,EACX,cAAc,EACd,WAAW,EACX,aAAa,EACb,eAAe,GACf,MAAM,WAAW,CAAC;AACnB,OAAO,EACN,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,GACtB,MAAM,WAAW,CAAC;AACnB,OAAO,EACN,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,GACf,MAAM,cAAc,CAAC;AACtB,OAAO,EACN,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,mBAAmB,EACnB,UAAU,GACV,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACN,aAAa,EACb,oBAAoB,EACpB,eAAe,GACf,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/lib/slickgrid/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,aAAa,GACb,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EACN,UAAU,EACV,2BAA2B,EAC3B,eAAe,EACf,cAAc,GACd,MAAM,SAAS,CAAC;AACjB,OAAO,EACN,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,WAAW,EACX,cAAc,EACd,WAAW,EACX,aAAa,EACb,eAAe,GACf,MAAM,WAAW,CAAC;AACnB,OAAO,EACN,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,GACtB,MAAM,WAAW,CAAC;AACnB,OAAO,EACN,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,GACf,MAAM,cAAc,CAAC;AACtB,OAAO,EACN,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,mBAAmB,EACnB,UAAU,GACV,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACN,aAAa,EACb,oBAAoB,EACpB,eAAe,GACf,MAAM,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultHotKeys.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shared/lib/slickgrid/model/SlickTable/hotKeys/DefaultHotKeys.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,kBAAkB,EAElB,cAAc,EACd,SAAS,EACT,MAAM,WAAW,CAAC;AAEnB,OAAO,EACN,kBAAkB,EAClB,gBAAgB,EAEhB,WAAW,EAEX,MAAM,oBAAoB,CAAC;AAW5B,qBAAa,cAAe,YAAW,gBAAgB;IACtD,OAAO,CAAC,iBAAiB,CAA0B;IACnD,OAAO,CAAC,YAAY,CAAqB;IACzC,OAAO,CAAC,UAAU,CAAM;IAExB,OAAO,CAAC,aAAa;IAGrB,OAAO,CAAC,aAAa;IAId,mBAAmB,CACzB,KAAK,EAAE,cAAc,CAAC,kBAAkB,CAAC,EACzC,KAAK,EAAE,WAAW,GAChB,IAAI;IAoDA,kBAAkB,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,GAAG,IAAI;IAUhD,UAAU,IAAI,IAAI;IAIlB,oBAAoB,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;IAGzD,oBAAoB,IAAI,kBAAkB;CAGjD"}
1
+ {"version":3,"file":"DefaultHotKeys.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shared/lib/slickgrid/model/SlickTable/hotKeys/DefaultHotKeys.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,kBAAkB,EAElB,cAAc,EACd,SAAS,EACT,MAAM,WAAW,CAAC;AAEnB,OAAO,EACN,kBAAkB,EAClB,gBAAgB,EAEhB,WAAW,EAEX,MAAM,oBAAoB,CAAC;AAa5B,qBAAa,cAAe,YAAW,gBAAgB;IACtD,OAAO,CAAC,iBAAiB,CAA0B;IACnD,OAAO,CAAC,YAAY,CAAqB;IACzC,OAAO,CAAC,UAAU,CAAM;IAExB,OAAO,CAAC,aAAa;IAGrB,OAAO,CAAC,aAAa;IAId,mBAAmB,CACzB,KAAK,EAAE,cAAc,CAAC,kBAAkB,CAAC,EACzC,KAAK,EAAE,WAAW,GAChB,IAAI;IA2DA,kBAAkB,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,GAAG,IAAI;IAUhD,UAAU,IAAI,IAAI;IAIlB,oBAAoB,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;IAGzD,oBAAoB,IAAI,kBAAkB;CAGjD"}
@@ -0,0 +1,13 @@
1
+ import { AnEvent } from '../../../an-event';
2
+ import { ISlickTable } from '../../../../model/types';
3
+ declare class EventSummary extends AnEvent {
4
+ private _open;
5
+ private _table;
6
+ get open(): boolean;
7
+ set open(open: boolean);
8
+ get table(): ISlickTable | undefined;
9
+ set table(table: ISlickTable | undefined);
10
+ }
11
+ export declare const eventSummary: EventSummary;
12
+ export {};
13
+ //# sourceMappingURL=eventSummary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventSummary.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/lib/slickgrid/model/events/eventSummary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,cAAM,YAAa,SAAQ,OAAO;IACjC,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,MAAM,CAA0B;IAExC,IAAI,IAAI,YAEP;IACD,IAAI,IAAI,CAAC,IAAI,SAAA,EAGZ;IAED,IAAI,KAAK,4BAER;IACD,IAAI,KAAK,CAAC,KAAK,yBAAA,EAEd;CACD;AAED,eAAO,MAAM,YAAY,cAAqB,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export { eventContextMenu } from './eventContextMenu';
2
2
  export { eventHeaderContextMenu } from './eventHeaderContextMenu';
3
+ export { eventSummary } from './eventSummary';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/lib/slickgrid/model/events/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/lib/slickgrid/model/events/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  export { ColumnPicker, DownloadManager, DecoratorEndingDate, DecoratorFilter, DecoratorColumnFilter, DecoratorPeriod, DefaultHotKeys, DefaultPrinter, DeletedRowsFilter, Filter, HotKeysDecorator, PreventCopying, RedoUndoOnly, SlickTable, WithConfirmationOfDeletion, WithoutHotKeys, } from './SlickTable';
2
- export { eventContextMenu, eventHeaderContextMenu } from './events';
2
+ export { eventContextMenu, eventHeaderContextMenu, eventSummary, } from './events';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/lib/slickgrid/model/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,MAAM,EACN,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,0BAA0B,EAC1B,cAAc,GACd,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/lib/slickgrid/model/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,MAAM,EACN,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,0BAA0B,EAC1B,cAAc,GACd,MAAM,cAAc,CAAC;AACtB,OAAO,EACN,gBAAgB,EAChB,sBAAsB,EACtB,YAAY,GACZ,MAAM,UAAU,CAAC"}
@@ -3,6 +3,7 @@ export declare enum EKeyCode {
3
3
  "KeyDel" = 46,
4
4
  "KeyEnter" = 13,
5
5
  "KeyR" = 82,
6
+ "KeyS" = 83,
6
7
  "KeyY" = 89,
7
8
  "KeyZ" = 90
8
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"EKeyCode.d.ts","sourceRoot":"","sources":["../../../../../src/shared/model/enums/EKeyCode.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IACnB,MAAM,KAAK;IACX,QAAQ,KAAK;IACb,UAAU,KAAK;IACf,MAAM,KAAK;IACX,MAAM,KAAK;IACX,MAAM,KAAK;CACX"}
1
+ {"version":3,"file":"EKeyCode.d.ts","sourceRoot":"","sources":["../../../../../src/shared/model/enums/EKeyCode.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IACnB,MAAM,KAAK;IACX,QAAQ,KAAK;IACb,UAAU,KAAK;IACf,MAAM,KAAK;IACX,MAAM,KAAK;IACX,MAAM,KAAK;IACX,MAAM,KAAK;CACX"}
@@ -1,7 +1,7 @@
1
1
  declare const _default: {
2
2
  MenuItem: import('@emotion/styled').StyledComponent<import('@mui/material').MenuItemOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
3
3
  ref?: ((instance: HTMLLIElement | 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<HTMLLIElement> | null | undefined;
4
- }, "className" | "style" | "classes" | "autoFocus" | "tabIndex" | "children" | "sx" | "disabled" | "action" | "selected" | "dense" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableGutters" | "divider"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
4
+ }, "className" | "style" | "classes" | "autoFocus" | "tabIndex" | "children" | "sx" | "dense" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "selected" | "disableGutters" | "divider"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
5
5
  };
6
6
  export default _default;
7
7
  //# sourceMappingURL=ContextSelect.style.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slick-table",
3
- "version": "1.1.16",
3
+ "version": "1.1.17",
4
4
  "description": "Enhanced version of SlickGrid library",
5
5
  "private": false,
6
6
  "type": "module",
@@ -0,0 +1,16 @@
1
+ @use './mixins' as *;
2
+
3
+ $gray: #808080;
4
+ $green: #228b22;
5
+ $orange: #ff8c00;
6
+ $red: #ff3737;
7
+
8
+ @include svg("sgi-checkbox-multiple-outline", $gray , "M20,2H8A2,2 0 0,0 6,4V16A2,2 0 0,0 8,18H20A2,2 0 0,0 22,16V4A2,2 0 0,0 20,2M20,16H8V4H20V16M16,20V22H4A2,2 0 0,1 2,20V7H4V20H16M18.53,8.06L17.47,7L12.59,11.88L10.47,9.76L9.41,10.82L12.59,14L18.53,8.06Z");
9
+ @include svg("sgi-collapse-all-outline", $gray, "M4,2A2,2 0 0,0 2,4V14H4V4H14V2H4M8,6A2,2 0 0,0 6,8V18H8V8H18V6H8M20,12V20H12V12H20M20,10H12A2,2 0 0,0 10,12V20A2,2 0 0,0 12,22H20A2,2 0 0,0 22,20V12A2,2 0 0,0 20,10M19,17H13V15H19V17Z");
10
+ @include svg("sgi-content-copy", $gray, "M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z");
11
+ @include svg("sgi-download", $gray, "M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z");
12
+ @include svg("sgi-expand-all-outline", $gray, "M4,2A2,2 0 0,0 2,4V14H4V4H14V2H4M8,6A2,2 0 0,0 6,8V18H8V8H18V6H8M20,12V20H12V12H20M20,10H12A2,2 0 0,0 10,12V20A2,2 0 0,0 12,22H20A2,2 0 0,0 22,20V12A2,2 0 0,0 20,10M19,17H17V19H15V17H13V15H15V13H17V15H19V17Z");
13
+ @include svg("sgi-link", $gray, "M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z");
14
+ @include svg("sgi-link-off", $gray, "M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.43 19.12,14.63 17.79,15L19.25,16.44C20.88,15.61 22,13.95 22,12A5,5 0 0,0 17,7M16,11H13.81L15.81,13H16V11M2,4.27L5.11,7.38C3.29,8.12 2,9.91 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12C3.9,10.41 5.11,9.1 6.66,8.93L8.73,11H8V13H10.73L13,15.27V17H14.73L18.74,21L20,19.74L3.27,3L2,4.27Z");
15
+ @include svg("sgi-notification-clear-all", $gray, "M5,13H19V11H5M3,17H17V15H3M7,7V9H21V7");
16
+ @include svg("sgi-printer", $gray, "M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z");
@@ -0,0 +1,12 @@
1
+ @mixin svg($className, $color, $d) {
2
+ .#{$className} {
3
+ $svg: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Ctitle%3Ealpha-i-box-outline%3C/title%3E%3Cpath d="#{$d}" /%3E%3C/svg%3E');
4
+ mask: $svg no-repeat;
5
+ mask-size: 100% 100%;
6
+ -webkit-mask: $svg no-repeat;
7
+ -webkit-mask-size: 100% 100%;
8
+ height: 20px;
9
+ width: 20px;
10
+ background-color: #{$color};
11
+ }
12
+ }
@@ -1,2 +1 @@
1
- export { eventSummary } from "./model";
2
1
  export { PopupSummary } from "./ui";
@@ -12,11 +12,16 @@ export function getTotals(table: ISlickTable | undefined): ITotal {
12
12
  if (!grid) return result;
13
13
  const selectedRows = grid.getSelectedRows();
14
14
  const columns = grid.getColumns();
15
- columns.forEach(({ id, name }) => {
15
+ columns.forEach((column, index) => {
16
+ const { formatter, id, name } = column;
16
17
  if (ids.includes(id as string)) {
17
18
  result[id] = {
19
+ cell: index,
20
+ column,
21
+ formatter,
18
22
  label: name as string,
19
23
  total: 0,
24
+ totalFormatted: formatter ? formatter(0, 0, 0, column, {}, grid) : "0",
20
25
  };
21
26
  }
22
27
  });
@@ -25,6 +30,16 @@ export function getTotals(table: ISlickTable | undefined): ITotal {
25
30
  const item = dataView.getItem(rowNumber);
26
31
  Object.keys(result).forEach((id) => {
27
32
  result[id].total += item[id];
33
+ result[id].totalFormatted = result[id].formatter
34
+ ? result[id].formatter(
35
+ rowNumber,
36
+ result[id].cell,
37
+ result[id].total,
38
+ result[id].column,
39
+ item,
40
+ grid,
41
+ )
42
+ : `${result[id].total}`;
28
43
  });
29
44
  });
30
45
  return result;
@@ -1,2 +1 @@
1
- export { eventSummary } from "./event";
2
1
  export type { ITotal } from "./types";
@@ -1 +1,23 @@
1
- export type ITotal = Record<string, { label: string; total: number }>;
1
+ import {
2
+ Column,
3
+ Formatter,
4
+ FormatterResultWithHtml,
5
+ FormatterResultWithText,
6
+ } from "slickgrid";
7
+
8
+ export type ITotal = Record<
9
+ string,
10
+ {
11
+ cell: number;
12
+ column: Column;
13
+ formatter?: Formatter<any>;
14
+ label: string;
15
+ total: number;
16
+ totalFormatted:
17
+ | string
18
+ | HTMLElement
19
+ | DocumentFragment
20
+ | FormatterResultWithHtml
21
+ | FormatterResultWithText;
22
+ }
23
+ >;
@@ -0,0 +1,21 @@
1
+ import { Button, DialogTitle, List, styled } from "@mui/material";
2
+
3
+ const StyledDialogTitle = styled(DialogTitle)({
4
+ color: "#1E456F",
5
+ });
6
+
7
+ const StyledList = styled(List)({
8
+ padding: 0,
9
+ });
10
+
11
+ const StyledButton = styled(Button)({
12
+ borderColor: "#1E9577",
13
+ color: "#1E9577",
14
+ textTransform: "none",
15
+ });
16
+
17
+ export default {
18
+ Button: StyledButton,
19
+ DialogTitle: StyledDialogTitle,
20
+ List: StyledList,
21
+ };
@@ -1,20 +1,14 @@
1
- import {
2
- Box,
3
- Button,
4
- Dialog,
5
- DialogActions,
6
- DialogContent,
7
- DialogContentText,
8
- DialogTitle,
9
- List,
10
- } from "@mui/material";
1
+ import { Box, Dialog, DialogActions, DialogContent } from "@mui/material";
11
2
  import { FC, useEffect, useState } from "react";
12
3
 
13
- import { eventContextMenu } from "shared/lib/slickgrid";
4
+ import { eventSummary } from "shared/lib/slickgrid";
14
5
 
15
6
  import { getTotals } from "../lib";
16
- import { ITotal, eventSummary } from "../model";
7
+ import { ITotal } from "../model";
17
8
  import { TotalByColumn } from "./TotalByColumn";
9
+ import { StyledDialogContentText } from "./styles";
10
+
11
+ import Styled from "./PopupSummary.style";
18
12
 
19
13
  export const PopupSummary: FC = () => {
20
14
  const [rowsNumber, setRowsNumber] = useState(0);
@@ -29,7 +23,7 @@ export const PopupSummary: FC = () => {
29
23
  function callback() {
30
24
  const open = eventSummary.open;
31
25
  if (open) {
32
- const table = eventContextMenu.table;
26
+ const table = eventSummary.table;
33
27
  const grid = table?.grid;
34
28
  setRowsNumber(grid?.getSelectedRows().length || 0);
35
29
  setTotals(getTotals(table));
@@ -46,21 +40,27 @@ export const PopupSummary: FC = () => {
46
40
 
47
41
  return (
48
42
  <Dialog open={isOpened} onClose={onClose}>
49
- <DialogTitle>Selected rows summary</DialogTitle>
43
+ <Styled.DialogTitle>Selected rows summary</Styled.DialogTitle>
50
44
  <DialogContent>
51
- <List>
52
- <DialogContentText>{`- number of selected rows: ${rowsNumber}`}</DialogContentText>
53
- {Object.entries(totals).map(([id, total]) => (
54
- <Box key={id}>
55
- <TotalByColumn label={total.label} total={total.total} />
56
- </Box>
57
- ))}
58
- </List>
45
+ <Styled.List>
46
+ <StyledDialogContentText>{`number of selected rows: ${rowsNumber}`}</StyledDialogContentText>
47
+ {Object.entries(totals).map(
48
+ ([id, { label, total, totalFormatted }]) => (
49
+ <Box key={id}>
50
+ <TotalByColumn
51
+ label={label}
52
+ total={total}
53
+ totalFormatted={totalFormatted}
54
+ />
55
+ </Box>
56
+ ),
57
+ )}
58
+ </Styled.List>
59
59
  </DialogContent>
60
60
  <DialogActions>
61
- <Button variant={"outlined"} onClick={onClose}>
61
+ <Styled.Button variant={"outlined"} onClick={onClose}>
62
62
  Close
63
- </Button>
63
+ </Styled.Button>
64
64
  </DialogActions>
65
65
  </Dialog>
66
66
  );
@@ -11,6 +11,9 @@ const StyledDialogContentText = styled(DialogContentText)({
11
11
  const Icon = styled("span")({
12
12
  cursor: "pointer",
13
13
  backgroundColor: "#1E456F",
14
+ "&:hover": {
15
+ scale: "1.3",
16
+ },
14
17
  });
15
18
 
16
19
  export default { DialogContentText: StyledDialogContentText, Icon, Text };
@@ -1,9 +1,12 @@
1
1
  import { Tooltip } from "@mui/material";
2
2
  import { FC, useState } from "react";
3
+ import { FormatterResultWithHtml, FormatterResultWithText } from "slickgrid";
4
+
5
+ import { StyledDialogContentText } from "../styles";
3
6
 
4
7
  import Styled from "./TotalByColumn.style";
5
8
 
6
- export const TotalByColumn: FC<IProps> = ({ label, total }) => {
9
+ export const TotalByColumn: FC<IProps> = ({ label, total, totalFormatted }) => {
7
10
  const [open, setOpen] = useState(false);
8
11
 
9
12
  function copyToClipboard() {
@@ -15,8 +18,8 @@ export const TotalByColumn: FC<IProps> = ({ label, total }) => {
15
18
  }
16
19
 
17
20
  return (
18
- <Styled.DialogContentText>
19
- <Styled.Text>{`- total ${label}: ${total}`}</Styled.Text>
21
+ <StyledDialogContentText>
22
+ <Styled.Text>{`total ${label}: ${totalFormatted}`}</Styled.Text>
20
23
  {open ? (
21
24
  <Styled.Icon className={"sgi sgi-check"}></Styled.Icon>
22
25
  ) : (
@@ -27,11 +30,17 @@ export const TotalByColumn: FC<IProps> = ({ label, total }) => {
27
30
  />
28
31
  </Tooltip>
29
32
  )}
30
- </Styled.DialogContentText>
33
+ </StyledDialogContentText>
31
34
  );
32
35
  };
33
36
 
34
37
  interface IProps {
35
38
  label: string;
36
39
  total: number;
40
+ totalFormatted:
41
+ | string
42
+ | HTMLElement
43
+ | DocumentFragment
44
+ | FormatterResultWithHtml
45
+ | FormatterResultWithText;
37
46
  }
@@ -0,0 +1,7 @@
1
+ import { DialogContentText, styled } from "@mui/material";
2
+
3
+ export const StyledDialogContentText = styled(DialogContentText)({
4
+ alignItems: "center",
5
+ color: "#1E456F",
6
+ display: "flex",
7
+ });
@@ -0,0 +1 @@
1
+ export { StyledDialogContentText } from "./StyledDialogContentText";
@@ -1,8 +1,6 @@
1
1
  import { Dispatch, FC, SetStateAction } from "react";
2
2
 
3
- import { eventContextMenu } from "shared/lib/slickgrid";
4
-
5
- import { eventSummary } from "entities/popup-summary";
3
+ import { eventContextMenu, eventSummary } from "shared/lib/slickgrid";
6
4
 
7
5
  import Styled from "../ContextMenu.style";
8
6
 
@@ -14,7 +12,7 @@ export const ButtonSummary: FC<IProps> = ({ setIsOpened }) => {
14
12
  function openSummary() {
15
13
  if (!table) return;
16
14
  setIsOpened(false);
17
- eventContextMenu.table = table;
15
+ eventSummary.table = table;
18
16
  eventSummary.open = true;
19
17
  }
20
18
 
package/src/index.scss CHANGED
@@ -1,2 +1,3 @@
1
1
  @use './app/styles/slickgrid' as *;
2
- @use './app/styles/global' as *;
2
+ @use './app/styles/global' as *;
3
+ @use './app/styles/icons' as *;