cats-data-grid 2.0.4 → 2.0.6
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/README.md +63 -63
- package/assets/images/check-white.svg +3 -3
- package/assets/images/gripper.svg +8 -0
- package/assets/images/minus-blue.svg +3 -3
- package/assets/images/pin.svg +4 -4
- package/assets/images/sort_down.svg +6 -6
- package/assets/images/sort_up.svg +6 -6
- package/assets/images/t-arrow-down.svg +4 -4
- package/assets/images/t-arrow-up.svg +4 -4
- package/assets/images/t-choose-column.svg +3 -3
- package/assets/images/t-data-pipeline.svg +13 -13
- package/assets/images/t-filter-applied.svg +4 -4
- package/assets/images/t-filter.svg +3 -3
- package/assets/images/t-gripper.svg +8 -8
- package/assets/images/t-group-by-name.svg +3 -3
- package/assets/images/t-more-vertical.svg +5 -5
- package/assets/images/t-move.svg +15 -15
- package/assets/images/t-x.svg +4 -4
- package/fesm2022/cats-data-grid.mjs +1580 -196
- package/fesm2022/cats-data-grid.mjs.map +1 -1
- package/index.d.ts +401 -13
- package/package.json +1 -1
- package/styles/_index.scss +3 -3
- package/styles/base/_fonts.scss +74 -74
- package/styles/base/_index.scss +1 -1
- package/styles/base/_reset.scss +60 -60
- package/styles/component/_form.scss +371 -340
- package/styles/component/_index.scss +1 -1
- package/styles/sass-utils/_function.scss +14 -14
- package/styles/sass-utils/_index.scss +3 -3
- package/styles/sass-utils/_mixin.scss +87 -87
- package/styles/sass-utils/_variable.scss +77 -77
|
@@ -1 +1 @@
|
|
|
1
|
-
@forward "./form";
|
|
1
|
+
@forward "./form";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
@use "sass:math";
|
|
2
|
-
@use "sass:list";
|
|
3
|
-
|
|
4
|
-
$font-size: 12px;
|
|
5
|
-
html {
|
|
6
|
-
font-size: $font-size;
|
|
7
|
-
}
|
|
8
|
-
@function rem($pxValue) {
|
|
9
|
-
// @return math.div($pxValue, $font-size) * 1rem;
|
|
10
|
-
// @return calc(math.div($pxValue, $font-size) * 1rem / var(--scale));
|
|
11
|
-
$val: calc($pxValue/$font-size);
|
|
12
|
-
@return calc($val * 1rem / var(--scale));
|
|
13
|
-
// @return list.slash(calc(math.div($pxValue, $font-size) * 1rem), var(--scale));
|
|
14
|
-
}
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
@use "sass:list";
|
|
3
|
+
|
|
4
|
+
$font-size: 12px;
|
|
5
|
+
html {
|
|
6
|
+
font-size: $font-size;
|
|
7
|
+
}
|
|
8
|
+
@function rem($pxValue) {
|
|
9
|
+
// @return math.div($pxValue, $font-size) * 1rem;
|
|
10
|
+
// @return calc(math.div($pxValue, $font-size) * 1rem / var(--scale));
|
|
11
|
+
$val: calc($pxValue/$font-size);
|
|
12
|
+
@return calc($val * 1rem / var(--scale));
|
|
13
|
+
// @return list.slash(calc(math.div($pxValue, $font-size) * 1rem), var(--scale));
|
|
14
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@forward "./variable";
|
|
2
|
-
@forward "./function";
|
|
3
|
-
@forward "./mixin";
|
|
1
|
+
@forward "./variable";
|
|
2
|
+
@forward "./function";
|
|
3
|
+
@forward "./mixin";
|
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
@use "variable" as *;
|
|
2
|
-
@use "function" as *;
|
|
3
|
-
|
|
4
|
-
$tablet: 1024px;
|
|
5
|
-
$mediumDesktop: 1280px;
|
|
6
|
-
$largeDesktop: 1360px;
|
|
7
|
-
$extraLargeDesktop: 1440px;
|
|
8
|
-
$xxlargeDesktop: 1536px;
|
|
9
|
-
$ultraWideDesktop: 1919px;
|
|
10
|
-
|
|
11
|
-
// --------------- MEDIA QUERY ------------------------
|
|
12
|
-
@mixin width-range($min, $max) {
|
|
13
|
-
@media only screen and (min-width: $min) and (max-width: $max) {
|
|
14
|
-
@content;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
// Example: how to use this mixin
|
|
18
|
-
// You can use any range
|
|
19
|
-
// @include width-range($mobile, $tablet - 1px) {
|
|
20
|
-
// // Styles for screens between mobile and tablet width
|
|
21
|
-
// }
|
|
22
|
-
|
|
23
|
-
// -------------- BOX HEIGHT AND WIDTH -------
|
|
24
|
-
@mixin box($width, $height: 100%) {
|
|
25
|
-
width: $width;
|
|
26
|
-
height: $height;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// ------------- FONT STYLE
|
|
30
|
-
@mixin fontStyle($fontSize, $lineHeight, $fontWeight: 400) {
|
|
31
|
-
font-size: $fontSize;
|
|
32
|
-
line-height: $lineHeight;
|
|
33
|
-
font-weight: $fontWeight;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// ------------- FLEX PROPERTY ------------------------
|
|
37
|
-
@mixin flex(
|
|
38
|
-
$justify: flex-start,
|
|
39
|
-
$align: stretch,
|
|
40
|
-
$gap: 0,
|
|
41
|
-
$direction: row,
|
|
42
|
-
$wrap: nowrap
|
|
43
|
-
) {
|
|
44
|
-
display: flex;
|
|
45
|
-
flex-direction: $direction;
|
|
46
|
-
justify-content: $justify;
|
|
47
|
-
align-items: $align;
|
|
48
|
-
flex-wrap: $wrap;
|
|
49
|
-
gap: $gap;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// USE CASE: IF YOU WANT ONLY 2 PROP. THEN OTHER PROP WILL APPLY AS DEFAULT PROP.
|
|
53
|
-
// @include flex(center, stretch,row, wrap, 10px);
|
|
54
|
-
|
|
55
|
-
// Positioning element
|
|
56
|
-
@mixin positioning($top, $left) {
|
|
57
|
-
top: $top;
|
|
58
|
-
left: $left;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// ------------- Border PROPERTY with width,color and radius ---------------------
|
|
62
|
-
@mixin border(
|
|
63
|
-
$width: rem(1px),
|
|
64
|
-
$style: solid,
|
|
65
|
-
$color: var(--neutral-200),
|
|
66
|
-
$radius: rem(4px)
|
|
67
|
-
) {
|
|
68
|
-
border: $width $style $color;
|
|
69
|
-
border-radius: $radius;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// ------------- On table top header Swap image on hover ---------------------
|
|
73
|
-
@mixin hoverSwap($base, $hover) {
|
|
74
|
-
#{$hover} {
|
|
75
|
-
display: none;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&:hover {
|
|
79
|
-
#{$base} {
|
|
80
|
-
display: none;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
#{$hover} {
|
|
84
|
-
display: flex;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
1
|
+
@use "variable" as *;
|
|
2
|
+
@use "function" as *;
|
|
3
|
+
|
|
4
|
+
$tablet: 1024px;
|
|
5
|
+
$mediumDesktop: 1280px;
|
|
6
|
+
$largeDesktop: 1360px;
|
|
7
|
+
$extraLargeDesktop: 1440px;
|
|
8
|
+
$xxlargeDesktop: 1536px;
|
|
9
|
+
$ultraWideDesktop: 1919px;
|
|
10
|
+
|
|
11
|
+
// --------------- MEDIA QUERY ------------------------
|
|
12
|
+
@mixin width-range($min, $max) {
|
|
13
|
+
@media only screen and (min-width: $min) and (max-width: $max) {
|
|
14
|
+
@content;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
// Example: how to use this mixin
|
|
18
|
+
// You can use any range
|
|
19
|
+
// @include width-range($mobile, $tablet - 1px) {
|
|
20
|
+
// // Styles for screens between mobile and tablet width
|
|
21
|
+
// }
|
|
22
|
+
|
|
23
|
+
// -------------- BOX HEIGHT AND WIDTH -------
|
|
24
|
+
@mixin box($width, $height: 100%) {
|
|
25
|
+
width: $width;
|
|
26
|
+
height: $height;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// ------------- FONT STYLE
|
|
30
|
+
@mixin fontStyle($fontSize, $lineHeight, $fontWeight: 400) {
|
|
31
|
+
font-size: $fontSize;
|
|
32
|
+
line-height: $lineHeight;
|
|
33
|
+
font-weight: $fontWeight;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// ------------- FLEX PROPERTY ------------------------
|
|
37
|
+
@mixin flex(
|
|
38
|
+
$justify: flex-start,
|
|
39
|
+
$align: stretch,
|
|
40
|
+
$gap: 0,
|
|
41
|
+
$direction: row,
|
|
42
|
+
$wrap: nowrap
|
|
43
|
+
) {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: $direction;
|
|
46
|
+
justify-content: $justify;
|
|
47
|
+
align-items: $align;
|
|
48
|
+
flex-wrap: $wrap;
|
|
49
|
+
gap: $gap;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// USE CASE: IF YOU WANT ONLY 2 PROP. THEN OTHER PROP WILL APPLY AS DEFAULT PROP.
|
|
53
|
+
// @include flex(center, stretch,row, wrap, 10px);
|
|
54
|
+
|
|
55
|
+
// Positioning element
|
|
56
|
+
@mixin positioning($top, $left) {
|
|
57
|
+
top: $top;
|
|
58
|
+
left: $left;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// ------------- Border PROPERTY with width,color and radius ---------------------
|
|
62
|
+
@mixin border(
|
|
63
|
+
$width: rem(1px),
|
|
64
|
+
$style: solid,
|
|
65
|
+
$color: var(--neutral-200),
|
|
66
|
+
$radius: rem(4px)
|
|
67
|
+
) {
|
|
68
|
+
border: $width $style $color;
|
|
69
|
+
border-radius: $radius;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// ------------- On table top header Swap image on hover ---------------------
|
|
73
|
+
@mixin hoverSwap($base, $hover) {
|
|
74
|
+
#{$hover} {
|
|
75
|
+
display: none;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&:hover {
|
|
79
|
+
#{$base} {
|
|
80
|
+
display: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
#{$hover} {
|
|
84
|
+
display: flex;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--white: #ffffff;
|
|
3
|
-
|
|
4
|
-
// --default: #000000;
|
|
5
|
-
// --black: #1f1f1f;
|
|
6
|
-
// --black-dust: #1a1a1a;
|
|
7
|
-
// --black-900: #202224;
|
|
8
|
-
|
|
9
|
-
--pagination-text: var(--neutral-500);
|
|
10
|
-
|
|
11
|
-
// NEUTRAL-COLOR
|
|
12
|
-
// --neutral-cross: #d9d9d9;
|
|
13
|
-
// --neutral-40: #d5d7da;
|
|
14
|
-
--neutral-50: #f0f0f0;
|
|
15
|
-
--neutral-100: #e6e7e8;
|
|
16
|
-
--neutral-200: #dadbdc;
|
|
17
|
-
--neutral-300: #c0c2c5;
|
|
18
|
-
--neutral-400: #81858a;
|
|
19
|
-
--neutral-500: #434a51;
|
|
20
|
-
--neutral-600: #040d17;
|
|
21
|
-
// --neutral-900: #010306;
|
|
22
|
-
|
|
23
|
-
// BLUE COLOR
|
|
24
|
-
--blue-50: #f7fafe;
|
|
25
|
-
--blue-100: #eaf3fd;
|
|
26
|
-
// --blue-200: #dfecfc;
|
|
27
|
-
--blue-300: #c8dff9;
|
|
28
|
-
// --blue-400: #92bff4;
|
|
29
|
-
--blue-600: #2680ea;
|
|
30
|
-
--blue-700: #1c60af;
|
|
31
|
-
// --blue-800: #1849d6;
|
|
32
|
-
|
|
33
|
-
// GREY COLOR
|
|
34
|
-
--grey-50: #e9eaeb;
|
|
35
|
-
// --grey-100: #e2e8f0;
|
|
36
|
-
// --grey-150: #d6d6d6;
|
|
37
|
-
// --grey-200: #64748b;
|
|
38
|
-
// --grey-300: #414651;
|
|
39
|
-
// --grey-400: #8080808c;
|
|
40
|
-
// --grey-600: #535862;
|
|
41
|
-
// --light-grey: #81858a;
|
|
42
|
-
// --dark-grey: #4a4a4a;
|
|
43
|
-
|
|
44
|
-
// --green-50: #f7fbf7;
|
|
45
|
-
--green-100: #ecf4ec;
|
|
46
|
-
--green-200: #e1eee2;
|
|
47
|
-
// --green-400: #9bc69d;
|
|
48
|
-
--green-600: #388e3c;
|
|
49
|
-
--green-700: #2a6a2d;
|
|
50
|
-
|
|
51
|
-
--red: #ff0000;
|
|
52
|
-
// --red-50: #fdf7f7;
|
|
53
|
-
--red-100: #faeaea;
|
|
54
|
-
// --red-200: #f7dfdf;
|
|
55
|
-
--red-300: #f0c9c9;
|
|
56
|
-
--red-700: #941e1e;
|
|
57
|
-
|
|
58
|
-
// --yellow-50: #fffdf5;
|
|
59
|
-
--yellow-100: #fff9e7;
|
|
60
|
-
// --yellow-200: #fff6da;
|
|
61
|
-
--yellow-300: #ffefc1;
|
|
62
|
-
// --yellow-400: #fff9e7;
|
|
63
|
-
// --yellow-500: #bf7200;
|
|
64
|
-
// --yellow-600: #ffc107;
|
|
65
|
-
--yellow-700: #bf9105;
|
|
66
|
-
// --yellow-800: #806003;
|
|
67
|
-
// --yellow-900: #bf9105;
|
|
68
|
-
|
|
69
|
-
// Orange
|
|
70
|
-
// --orange-50: rgba(255, 251, 245, 1);
|
|
71
|
-
// --orange-100: #fff5e6;
|
|
72
|
-
// --orange-200: #fff0d9;
|
|
73
|
-
--orange-600: #ff9800;
|
|
74
|
-
// --orange-700: rgba(191, 114, 0, 1);
|
|
75
|
-
|
|
76
|
-
--box-shadow: #0a0d1214;
|
|
77
|
-
}
|
|
1
|
+
:root {
|
|
2
|
+
--white: #ffffff;
|
|
3
|
+
|
|
4
|
+
// --default: #000000;
|
|
5
|
+
// --black: #1f1f1f;
|
|
6
|
+
// --black-dust: #1a1a1a;
|
|
7
|
+
// --black-900: #202224;
|
|
8
|
+
|
|
9
|
+
--pagination-text: var(--neutral-500);
|
|
10
|
+
|
|
11
|
+
// NEUTRAL-COLOR
|
|
12
|
+
// --neutral-cross: #d9d9d9;
|
|
13
|
+
// --neutral-40: #d5d7da;
|
|
14
|
+
--neutral-50: #f0f0f0;
|
|
15
|
+
--neutral-100: #e6e7e8;
|
|
16
|
+
--neutral-200: #dadbdc;
|
|
17
|
+
--neutral-300: #c0c2c5;
|
|
18
|
+
--neutral-400: #81858a;
|
|
19
|
+
--neutral-500: #434a51;
|
|
20
|
+
--neutral-600: #040d17;
|
|
21
|
+
// --neutral-900: #010306;
|
|
22
|
+
|
|
23
|
+
// BLUE COLOR
|
|
24
|
+
--blue-50: #f7fafe;
|
|
25
|
+
--blue-100: #eaf3fd;
|
|
26
|
+
// --blue-200: #dfecfc;
|
|
27
|
+
--blue-300: #c8dff9;
|
|
28
|
+
// --blue-400: #92bff4;
|
|
29
|
+
--blue-600: #2680ea;
|
|
30
|
+
--blue-700: #1c60af;
|
|
31
|
+
// --blue-800: #1849d6;
|
|
32
|
+
|
|
33
|
+
// GREY COLOR
|
|
34
|
+
--grey-50: #e9eaeb;
|
|
35
|
+
// --grey-100: #e2e8f0;
|
|
36
|
+
// --grey-150: #d6d6d6;
|
|
37
|
+
// --grey-200: #64748b;
|
|
38
|
+
// --grey-300: #414651;
|
|
39
|
+
// --grey-400: #8080808c;
|
|
40
|
+
// --grey-600: #535862;
|
|
41
|
+
// --light-grey: #81858a;
|
|
42
|
+
// --dark-grey: #4a4a4a;
|
|
43
|
+
|
|
44
|
+
// --green-50: #f7fbf7;
|
|
45
|
+
--green-100: #ecf4ec;
|
|
46
|
+
--green-200: #e1eee2;
|
|
47
|
+
// --green-400: #9bc69d;
|
|
48
|
+
--green-600: #388e3c;
|
|
49
|
+
--green-700: #2a6a2d;
|
|
50
|
+
|
|
51
|
+
--red: #ff0000;
|
|
52
|
+
// --red-50: #fdf7f7;
|
|
53
|
+
--red-100: #faeaea;
|
|
54
|
+
// --red-200: #f7dfdf;
|
|
55
|
+
--red-300: #f0c9c9;
|
|
56
|
+
--red-700: #941e1e;
|
|
57
|
+
|
|
58
|
+
// --yellow-50: #fffdf5;
|
|
59
|
+
--yellow-100: #fff9e7;
|
|
60
|
+
// --yellow-200: #fff6da;
|
|
61
|
+
--yellow-300: #ffefc1;
|
|
62
|
+
// --yellow-400: #fff9e7;
|
|
63
|
+
// --yellow-500: #bf7200;
|
|
64
|
+
// --yellow-600: #ffc107;
|
|
65
|
+
--yellow-700: #bf9105;
|
|
66
|
+
// --yellow-800: #806003;
|
|
67
|
+
// --yellow-900: #bf9105;
|
|
68
|
+
|
|
69
|
+
// Orange
|
|
70
|
+
// --orange-50: rgba(255, 251, 245, 1);
|
|
71
|
+
// --orange-100: #fff5e6;
|
|
72
|
+
// --orange-200: #fff0d9;
|
|
73
|
+
--orange-600: #ff9800;
|
|
74
|
+
// --orange-700: rgba(191, 114, 0, 1);
|
|
75
|
+
|
|
76
|
+
--box-shadow: #0a0d1214;
|
|
77
|
+
}
|