slick-table 1.1.61 → 1.1.63

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.
@@ -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,3 +1,5 @@
1
+ @use './icons' as *;
2
+
1
3
  #slick-table-autocomplete {
2
4
  background-color: white;
3
5
  box-shadow: gray 0 0 5px 1px;
@@ -1 +1 @@
1
- {"version":3,"file":"Table.style.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/shared/lib/slickgrid/ui/SlickgridTable/ui/Table/Table.style.ts"],"names":[],"mappings":";;;;;AAoIA,wBAA6B"}
1
+ {"version":3,"file":"Table.style.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/shared/lib/slickgrid/ui/SlickgridTable/ui/Table/Table.style.ts"],"names":[],"mappings":";;;;;AAsJA,wBAA6B"}
@@ -1 +1 @@
1
- {"version":3,"file":"columnCheckboxSelector.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shared/lib/slickgrid/ui/columns/columnCheckboxSelector/columnCheckboxSelector.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,eAAO,MAAM,sBAAsB,EAAE,OAGpC,CAAC"}
1
+ {"version":3,"file":"columnCheckboxSelector.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shared/lib/slickgrid/ui/columns/columnCheckboxSelector/columnCheckboxSelector.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,eAAO,MAAM,sBAAsB,EAAE,OAIpC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"WithTableStyles.style.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shared/lib/slickgrid/ui/styles/WithTableStyles/WithTableStyles.style.ts"],"names":[],"mappings":";;;;;AA0CA,wBAA2B"}
1
+ {"version":3,"file":"WithTableStyles.style.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shared/lib/slickgrid/ui/styles/WithTableStyles/WithTableStyles.style.ts"],"names":[],"mappings":";;;;;AAIA,wBAA2B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slick-table",
3
- "version": "1.1.61",
3
+ "version": "1.1.63",
4
4
  "description": "Enhanced version of SlickGrid library",
5
5
  "private": false,
6
6
  "type": "module",
@@ -1,3 +1,5 @@
1
+ @use './icons' as *;
2
+
1
3
  #slick-table-autocomplete {
2
4
  background-color: white;
3
5
  box-shadow: gray 0 0 5px 1px;
@@ -13,53 +13,62 @@ const Container = styled(Box)({
13
13
  maxWidth: "100%",
14
14
  userSelect: "none",
15
15
 
16
- "& .slick-header-column": {
17
- "&.filter-active .slick-header-button::after": {
18
- width: "7px",
19
- height: "7px",
20
- content: "''",
21
- backgroundColor: "#2196f3",
22
- position: "absolute",
23
- borderRadius: "50%",
24
- border: "2px solid #f8f8f8",
25
- top: "3px",
26
- right: "3px",
27
- },
28
- "&:not([data-id=_checkbox_selector]):not([data-id=isEdited])": {
29
- "& .slick-column-name": {
30
- textOverflow: "ellipsis",
31
- whiteSpace: "nowrap",
32
- overflow: "hidden",
33
- maxWidth: "calc(100% - 16px)",
16
+ "& .slick-header": {
17
+ borderTopColor: "transparent",
18
+ "& .slick-header-column": {
19
+ "&:last-child": {
20
+ borderRightColor: "transparent",
34
21
  },
35
- },
36
- "&.slick-state-hover": {
37
22
  "&.filter-active .slick-header-button::after": {
38
- border: "2px solid #e8e8e8",
23
+ width: "7px",
24
+ height: "7px",
25
+ content: "''",
26
+ backgroundColor: "#2196f3",
27
+ position: "absolute",
28
+ borderRadius: "50%",
29
+ border: "2px solid #f8f8f8",
30
+ top: "3px",
31
+ right: "3px",
39
32
  },
40
- "& .slick-header-button": {
41
- "&::before": {
42
- backgroundColor: "#e8e8e8",
33
+ "&:not([data-id=_checkbox_selector]):not([data-id=isEdited])": {
34
+ "& .slick-column-name": {
35
+ textOverflow: "ellipsis",
36
+ whiteSpace: "nowrap",
37
+ overflow: "hidden",
38
+ maxWidth: "calc(100% - 16px)",
43
39
  },
44
40
  },
45
- },
46
- "& .slick-column-name": {
47
- fontSize,
48
- },
49
- "& .slick-header-button": {
50
- width: "19px",
51
- height: "12px",
52
- "&::before": {
53
- position: "absolute",
54
- content: "''",
41
+ "&.slick-state-hover": {
42
+ "&.filter-active .slick-header-button::after": {
43
+ border: "2px solid #e8e8e8",
44
+ },
45
+ "& .slick-header-button": {
46
+ "&::before": {
47
+ backgroundColor: "#e8e8e8",
48
+ },
49
+ },
50
+ },
51
+ "& .slick-column-name": {
52
+ fontSize,
53
+ },
54
+ "& .slick-header-button": {
55
55
  width: "19px",
56
56
  height: "12px",
57
- top: "6px",
58
- right: "5px",
59
- backgroundImage:
60
- "repeating-linear-gradient(0deg, #808080, #808080 2px, transparent 2px, transparent 4px)",
61
- clipPath: "polygon(0% 0%, 100% 0%, 50% 110%)",
62
- backgroundColor: "#f8f8f8",
57
+ "&::before": {
58
+ position: "absolute",
59
+ content: "''",
60
+ width: "19px",
61
+ height: "12px",
62
+ top: "6px",
63
+ right: "5px",
64
+ backgroundImage:
65
+ "repeating-linear-gradient(0deg, #808080, #808080 2px, transparent 2px, transparent 4px)",
66
+ clipPath: "polygon(0% 0%, 100% 0%, 50% 110%)",
67
+ backgroundColor: "transparent",
68
+ },
69
+ },
70
+ "& .slick-resizable-handle": {
71
+ boxShadow: "none",
63
72
  },
64
73
  },
65
74
  },
@@ -67,10 +76,17 @@ const Container = styled(Box)({
67
76
  "& .slick-viewport": {
68
77
  // Prevent displaying vertical scroll bar. Override this style when table exceeds available width
69
78
  overflowX: "hidden !important",
70
- backgroundColor: "transparent",
79
+ scrollbarWidth: "thin",
71
80
  "& .slick-cell": {
81
+ borderTop: "none",
82
+ borderRightStyle: "solid",
83
+ borderLeft: "none",
84
+ borderWidth: "1px",
72
85
  display: "flex",
73
86
  fontSize,
87
+ "&:last-child": {
88
+ borderRight: "none",
89
+ },
74
90
  "&.text-center": {
75
91
  justifyContent: "center",
76
92
  textAlign: "center",
@@ -102,6 +118,7 @@ const Container = styled(Box)({
102
118
  position: "absolute",
103
119
  top: cellHeight,
104
120
  "& div": {
121
+ fontSize,
105
122
  "&:hover": {
106
123
  cursor: "pointer",
107
124
  },
@@ -120,6 +137,7 @@ const Container = styled(Box)({
120
137
  display: "flex",
121
138
  justifyContent: "flex-end",
122
139
  alignItems: "center",
140
+ fontSize,
123
141
  paddingRight: "5px",
124
142
  borderBottom: "none",
125
143
  fontWeight: "bold",
@@ -2,6 +2,7 @@ import { CHECKBOX_SELECTOR } from "shared/model/consts";
2
2
  import { IColumn } from "shared/model/types";
3
3
 
4
4
  export const columnCheckboxSelector: IColumn = {
5
+ cssClass: "text-center",
5
6
  id: CHECKBOX_SELECTOR,
6
7
  field: CHECKBOX_SELECTOR,
7
8
  };
@@ -1,43 +1,5 @@
1
1
  import { Box, styled } from "@mui/material";
2
2
 
3
- const Wrapper = styled(Box)(({ theme }) => ({
4
- "& .slick-container": {
5
- color: theme.palette.text.primary,
6
- borderColor: theme.palette.background.paper,
7
-
8
- "& .slick-viewport": {
9
- backgroundColor: theme.palette.background.paper,
10
- "& .grid-canvas": {
11
- "& .ui-widget-content.slick-row": {
12
- "&.even": {
13
- backgroundColor: theme.palette.background.default,
14
- },
15
- "& .slick-cell": {
16
- "&.active": {
17
- borderColor: "#007bff",
18
- "& input": {
19
- color: theme.palette.text.primary,
20
- },
21
- },
22
- "&.selected": {
23
- color: theme.palette.text.primary,
24
- },
25
- "& select": {
26
- color: theme.palette.text.primary,
27
- backgroundColor: theme.palette.background.default,
28
- },
29
- "& #autocomplete": {
30
- backgroundColor: theme.palette.background.default,
31
- },
32
- },
33
- },
34
- },
35
- },
36
-
37
- "& .slick-footerrow": {
38
- backgroundColor: theme.palette.background.default,
39
- },
40
- },
41
- }));
3
+ const Wrapper = styled(Box)(() => ({}));
42
4
 
43
5
  export default { Wrapper };