@tetacom/ng-components 1.0.148 → 1.0.150
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/assets/color-icons.svg +49 -521
- package/assets/file-icons.svg +0 -1
- package/assets/icons.svg +205 -138
- package/common/model/view-type.model.d.ts +1 -0
- package/component/accordion/accordion-item/accordion-item.component.d.ts +4 -1
- package/component/avatar/avatar/avatar.component.d.ts +17 -0
- package/component/avatar/avatar.module.d.ts +9 -0
- package/component/avatar/model/avatar-color.enum.d.ts +20 -0
- package/component/avatar/public-api.d.ts +2 -0
- package/component/button/button/button.component.d.ts +4 -1
- package/component/checkbox/checkbox/checkbox.component.d.ts +2 -1
- package/component/date-picker/base-calendar.d.ts +49 -0
- package/component/date-picker/base-picker.d.ts +60 -0
- package/component/date-picker/date-picker/date-calendar/date-calendar.component.d.ts +20 -0
- package/component/date-picker/date-picker/date-picker.component.d.ts +38 -68
- package/component/date-picker/date-picker.module.d.ts +19 -15
- package/component/date-picker/date-range/date-range.component.d.ts +46 -0
- package/component/date-picker/date-range/range-calendar/range-calendar.component.d.ts +39 -0
- package/component/date-picker/day-picker/day-item/day-item.component.d.ts +9 -0
- package/component/date-picker/day-picker/day-picker.component.d.ts +30 -0
- package/component/date-picker/model/from-to.model.d.ts +4 -0
- package/component/date-picker/model/min-max-date.model.d.ts +4 -0
- package/component/date-picker/month-picker/month-picker.component.d.ts +16 -50
- package/component/date-picker/public-api.d.ts +5 -4
- package/component/date-picker/year-picker/scroll-to-selected-year.directive.d.ts +11 -0
- package/component/date-picker/year-picker/year-picker.component.d.ts +24 -0
- package/component/divider/divider/divider.component.d.ts +10 -0
- package/component/divider/divider.module.d.ts +8 -0
- package/component/divider/public-api.d.ts +2 -0
- package/component/dropdown/dropdown-base.d.ts +3 -1
- package/component/icon/icon-file/icon-file.component.d.ts +9 -3
- package/component/icon/icon-file/icon-file.module.d.ts +9 -0
- package/component/icon/icon.module.d.ts +4 -5
- package/component/icon/public-api.d.ts +1 -0
- package/component/input/input/input.component.d.ts +3 -1
- package/component/message/model/message.d.ts +3 -0
- package/component/public-api.d.ts +2 -0
- package/component/select/select/select.component.d.ts +4 -1
- package/component/switch/switch/switch.component.d.ts +4 -1
- package/directive/hint/hint.directive.d.ts +3 -1
- package/esm2020/common/model/view-type.model.mjs +2 -0
- package/esm2020/component/accordion/accordion/accordion.component.mjs +3 -2
- package/esm2020/component/accordion/accordion-head/accordion-head.component.mjs +3 -2
- package/esm2020/component/accordion/accordion-item/accordion-item.component.mjs +13 -3
- package/esm2020/component/avatar/avatar/avatar.component.mjs +57 -0
- package/esm2020/component/avatar/avatar.module.mjs +28 -0
- package/esm2020/component/avatar/model/avatar-color.enum.mjs +22 -0
- package/esm2020/component/avatar/public-api.mjs +3 -0
- package/esm2020/component/button/button/button.component.mjs +18 -3
- package/esm2020/component/checkbox/checkbox/checkbox.component.mjs +6 -3
- package/esm2020/component/date-picker/base-calendar.mjs +99 -0
- package/esm2020/component/date-picker/base-picker.mjs +102 -0
- package/esm2020/component/date-picker/date-picker/date-calendar/date-calendar.component.mjs +49 -0
- package/esm2020/component/date-picker/date-picker/date-picker.component.mjs +141 -234
- package/esm2020/component/date-picker/date-picker.module.mjs +41 -41
- package/esm2020/component/date-picker/date-range/date-range.component.mjs +211 -0
- package/esm2020/component/date-picker/date-range/range-calendar/range-calendar.component.mjs +108 -0
- package/esm2020/component/date-picker/day-picker/day-item/day-item.component.mjs +15 -0
- package/esm2020/component/date-picker/day-picker/day-picker.component.mjs +113 -0
- package/esm2020/component/date-picker/model/from-to.model.mjs +2 -0
- package/esm2020/component/date-picker/model/min-max-date.model.mjs +2 -0
- package/esm2020/component/date-picker/month-picker/month-picker.component.mjs +33 -236
- package/esm2020/component/date-picker/public-api.mjs +6 -5
- package/esm2020/component/date-picker/year-picker/scroll-to-selected-year.directive.mjs +26 -0
- package/esm2020/component/date-picker/year-picker/year-picker.component.mjs +48 -0
- package/esm2020/component/divider/divider/divider.component.mjs +18 -0
- package/esm2020/component/divider/divider.module.mjs +20 -0
- package/esm2020/component/divider/public-api.mjs +3 -0
- package/esm2020/component/dropdown/dropdown/dropdown.component.mjs +3 -2
- package/esm2020/component/dropdown/dropdown-base.mjs +6 -2
- package/esm2020/component/dropdown/dropdown.directive.mjs +1 -1
- package/esm2020/component/expand-card/expand-card/expand-card.component.mjs +1 -1
- package/esm2020/component/expand-card/expand-item/expand-item.component.mjs +1 -1
- package/esm2020/component/expand-panel/expand-panel/expand-panel.component.mjs +1 -1
- package/esm2020/component/file-upload/file-upload-area/file-upload-area.component.mjs +1 -1
- package/esm2020/component/filter/date-filter/date-filter.component.mjs +1 -1
- package/esm2020/component/filter/list-filter/list-filter.component.mjs +1 -1
- package/esm2020/component/filter/numeric-filter/numeric-filter.component.mjs +1 -1
- package/esm2020/component/filter/string-filter/string-filter.component.mjs +1 -1
- package/esm2020/component/icon/icon-file/icon-file.component.mjs +20 -6
- package/esm2020/component/icon/icon-file/icon-file.module.mjs +28 -0
- package/esm2020/component/icon/icon.module.mjs +1 -6
- package/esm2020/component/icon/public-api.mjs +2 -1
- package/esm2020/component/input/input/input.component.mjs +6 -3
- package/esm2020/component/input/input.module.mjs +1 -1
- package/esm2020/component/input/text-field/text-field.component.mjs +3 -3
- package/esm2020/component/message/message/message.component.mjs +4 -3
- package/esm2020/component/message/message-host/message-host.component.mjs +1 -1
- package/esm2020/component/message/model/message.mjs +2 -1
- package/esm2020/component/modal/dialog/dialog.component.mjs +1 -1
- package/esm2020/component/property-grid/property-grid/property-grid-item/property-grid-item.component.mjs +2 -2
- package/esm2020/component/public-api.mjs +4 -1
- package/esm2020/component/select/select/select.component.mjs +9 -4
- package/esm2020/component/switch/switch/switch.component.mjs +19 -7
- package/esm2020/component/table/default/boolean-cell/boolean-cell.component.mjs +1 -1
- package/esm2020/component/table/default/date-cell/date-cell.component.mjs +1 -1
- package/esm2020/component/table/default/date-time-cell/date-time-cell.component.mjs +1 -1
- package/esm2020/component/table/default/default-head-cell/default-head-cell.component.mjs +1 -1
- package/esm2020/component/table/default/list-cell/list-cell.component.mjs +1 -1
- package/esm2020/component/table/default/string-cell/string-cell.component.mjs +1 -1
- package/esm2020/component/table/selection-cell/selection-cell.component.mjs +1 -1
- package/esm2020/component/table/selection-head-cell/selection-head-cell.component.mjs +1 -1
- package/esm2020/component/table/table-head/filter-dropdown-tab/filter-dropdown-tab.component.mjs +1 -1
- package/esm2020/component/table/table-head/visibility-dropdown-tab/visibility-dropdown-tab.component.mjs +1 -1
- package/esm2020/component/theme-switch/theme-switch/theme-switch.component.mjs +1 -1
- package/esm2020/directive/hint/hint.directive.mjs +6 -3
- package/esm2020/locale/en.mjs +3 -1
- package/esm2020/locale/ru.mjs +3 -1
- package/esm2020/locale/teta-localisation.mjs +1 -1
- package/fesm2015/tetacom-ng-components.mjs +2898 -3015
- package/fesm2015/tetacom-ng-components.mjs.map +1 -1
- package/fesm2020/tetacom-ng-components.mjs +5440 -5565
- package/fesm2020/tetacom-ng-components.mjs.map +1 -1
- package/locale/teta-localisation.d.ts +2 -0
- package/package.json +3 -2
- package/style/accordion.scss +28 -6
- package/style/assembly-library.scss +4 -1
- package/style/assembly-presets.scss +0 -1
- package/style/badge.scss +28 -0
- package/style/bottombar.scss +5 -0
- package/style/button.scss +16 -13
- package/style/checkbox.scss +26 -13
- package/style/chips.scss +10 -10
- package/style/color.scss +1 -36
- package/style/datepicker.scss +139 -24
- package/style/divider.scss +15 -0
- package/style/drag.scss +1 -1
- package/style/dropdown.scss +6 -4
- package/style/hint.scss +5 -5
- package/style/icon.scss +2 -1
- package/style/input.scss +32 -23
- package/style/layout.scss +6 -2
- package/style/list.scss +11 -8
- package/style/loader.scss +2 -2
- package/style/message.scss +15 -7
- package/style/modal.scss +3 -2
- package/style/navigation.scss +4 -1
- package/style/presets/color-presets.scss +8 -160
- package/style/presets/font-presets.scss +26 -25
- package/style/presets/view-types.scss +15 -0
- package/style/progress.scss +3 -3
- package/style/radio.scss +21 -7
- package/style/resize-panel.scss +2 -2
- package/style/scroll.scss +3 -3
- package/style/select.scss +26 -21
- package/style/shadow.scss +0 -20
- package/style/sidebar.scss +1 -1
- package/style/switch.scss +15 -10
- package/style/table.scss +15 -15
- package/style/tabs.scss +11 -11
- package/style/tag.scss +37 -0
- package/style/toggle.scss +20 -18
- package/style/toolbar.scss +1 -1
- package/style/tooltip.scss +8 -6
- package/style/tree.scss +4 -4
- package/component/date-picker/day-select/day-select.component.d.ts +0 -51
- package/component/date-picker/model/date-picker-mode.enum.d.ts +0 -5
- package/component/date-picker/month-select/month-select.component.d.ts +0 -40
- package/component/date-picker/service/picker-touch.service.d.ts +0 -12
- package/component/date-picker/time-part-control/time-part-control.component.d.ts +0 -26
- package/component/date-picker/util/date-picker-util.d.ts +0 -15
- package/component/date-picker/year-select/year-select.component.d.ts +0 -45
- package/esm2020/component/date-picker/day-select/day-select.component.mjs +0 -184
- package/esm2020/component/date-picker/model/date-picker-mode.enum.mjs +0 -7
- package/esm2020/component/date-picker/month-select/month-select.component.mjs +0 -148
- package/esm2020/component/date-picker/service/picker-touch.service.mjs +0 -34
- package/esm2020/component/date-picker/time-part-control/time-part-control.component.mjs +0 -73
- package/esm2020/component/date-picker/util/date-picker-util.mjs +0 -142
- package/esm2020/component/date-picker/year-select/year-select.component.mjs +0 -189
- package/esm2020/pipe/prepend-zero/prepend-zero.module.mjs +0 -18
- package/esm2020/pipe/prepend-zero/prepend-zero.pipe.mjs +0 -21
- package/pipe/prepend-zero/prepend-zero.module.d.ts +0 -8
- package/pipe/prepend-zero/prepend-zero.pipe.d.ts +0 -7
- package/style/presets/shadow-presets.scss +0 -16
- package/style/tokens/basedark.tokens.css +0 -77
- package/style/tokens/baselight.tokens.css +0 -61
- package/style/tokens/global.tokens.css +0 -235
- package/style/tokens/utility.tokens.css +0 -1119
- package/style/util/button-util.scss +0 -58
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tetacom/ng-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.150",
|
|
4
4
|
"private": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^14.0.0",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"object-hash": "^2.2.0",
|
|
11
11
|
"three": "^0.139.2",
|
|
12
12
|
"html-to-image": "^1.9.0",
|
|
13
|
-
"luxon": "^3.1.0"
|
|
13
|
+
"luxon": "^3.1.0",
|
|
14
|
+
"@tetacom/themes": "^0.0.9"
|
|
14
15
|
},
|
|
15
16
|
"dependencies": {
|
|
16
17
|
"tslib": "^2.3.0"
|
package/style/accordion.scss
CHANGED
|
@@ -1,33 +1,54 @@
|
|
|
1
1
|
@import "./util/font-util.scss";
|
|
2
2
|
@import "./util/color-util.scss";
|
|
3
|
+
@import "presets/view-types";
|
|
4
|
+
|
|
5
|
+
.accordion_rounded .accordion-head {
|
|
6
|
+
border-radius: 8px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.accordion_brick .accordion-head {
|
|
10
|
+
border-radius: 0
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.accordion_circle .accordion-head {
|
|
14
|
+
border-radius: 100px;
|
|
15
|
+
}
|
|
3
16
|
|
|
4
17
|
.accordion {
|
|
5
18
|
display: flex;
|
|
6
19
|
flex-direction: column;
|
|
20
|
+
gap: 8px;
|
|
21
|
+
|
|
22
|
+
@include getView('base');
|
|
7
23
|
|
|
8
24
|
&-item {
|
|
9
25
|
display: flex;
|
|
10
26
|
flex-direction: column;
|
|
11
|
-
min-height:
|
|
27
|
+
min-height: 52px;
|
|
28
|
+
background: var(--color-global-bgcard);
|
|
12
29
|
|
|
13
30
|
&_active {
|
|
14
31
|
flex-grow: 0;
|
|
32
|
+
background: var(--color-text-10);
|
|
15
33
|
}
|
|
16
34
|
}
|
|
17
35
|
|
|
18
36
|
&-head {
|
|
19
37
|
display: flex;
|
|
20
38
|
align-items: center;
|
|
21
|
-
height:
|
|
22
|
-
padding: 0
|
|
23
|
-
grid-gap: 8px;
|
|
39
|
+
height: 52px;
|
|
40
|
+
padding: 0 12px;
|
|
24
41
|
flex-shrink: 0;
|
|
25
|
-
border-bottom: solid 1px
|
|
42
|
+
//border-bottom: solid 1px var(--color-text-5);
|
|
43
|
+
justify-content: space-between;
|
|
26
44
|
@include getFont($fonts, 'title-3');
|
|
27
45
|
|
|
46
|
+
|
|
28
47
|
&:hover:not(&_disabled) {
|
|
29
48
|
cursor: pointer;
|
|
49
|
+
background: var(--color-text-5);
|
|
30
50
|
}
|
|
51
|
+
|
|
31
52
|
&_open {
|
|
32
53
|
border: none;
|
|
33
54
|
}
|
|
@@ -42,6 +63,7 @@
|
|
|
42
63
|
display: flex;
|
|
43
64
|
flex-grow: 1;
|
|
44
65
|
min-height: 0;
|
|
45
|
-
border-bottom: solid 1px
|
|
66
|
+
//border-bottom: solid 1px var(--color-text-5);
|
|
46
67
|
}
|
|
68
|
+
|
|
47
69
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@import "./accordion.scss";
|
|
2
2
|
@import "./skeleton.scss";
|
|
3
|
+
@import "./badge.scss";
|
|
3
4
|
@import "./border.scss";
|
|
4
5
|
@import "./button.scss";
|
|
5
6
|
@import "./checkbox.scss";
|
|
@@ -31,8 +32,10 @@
|
|
|
31
32
|
@import "./switch.scss";
|
|
32
33
|
@import "./table.scss";
|
|
33
34
|
@import "./tabs.scss";
|
|
35
|
+
@import "./tag.scss";
|
|
34
36
|
@import "./toggle.scss";
|
|
35
37
|
@import "./toolbar.scss";
|
|
36
38
|
@import "./tooltip.scss";
|
|
37
39
|
@import "./tree.scss";
|
|
38
|
-
|
|
40
|
+
@import "./bottombar.scss";
|
|
41
|
+
@import "./divider.scss";
|
package/style/badge.scss
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@import "util/font-util.scss";
|
|
2
|
+
@import "util/color-util.scss";
|
|
3
|
+
@import "presets/view-types.scss";
|
|
4
|
+
|
|
5
|
+
.badge {
|
|
6
|
+
border-style: solid;
|
|
7
|
+
border-width: 1px;
|
|
8
|
+
width: fit-content;
|
|
9
|
+
padding: 4px 6px;
|
|
10
|
+
border-radius: 8px;
|
|
11
|
+
@include getFont($fonts, 'overline');
|
|
12
|
+
|
|
13
|
+
@include getView('base');
|
|
14
|
+
|
|
15
|
+
@each $paletteName, $palette in map-get($themes, nth(map-keys($themes), 1)) {
|
|
16
|
+
&-#{"" + $paletteName} {
|
|
17
|
+
border-color: getColorVar($paletteName, '50');
|
|
18
|
+
color: getColorVar($paletteName, '50');
|
|
19
|
+
|
|
20
|
+
&_filled {
|
|
21
|
+
background-color: getColorVar($paletteName, '50');
|
|
22
|
+
color: white;
|
|
23
|
+
border-color: transparent;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
package/style/button.scss
CHANGED
|
@@ -1,27 +1,34 @@
|
|
|
1
1
|
@import "./util/color-util.scss";
|
|
2
2
|
@import "./util/font-util.scss";
|
|
3
|
-
@import "
|
|
3
|
+
@import "presets/view-types.scss";
|
|
4
4
|
|
|
5
5
|
.button {
|
|
6
6
|
display: inline-flex;
|
|
7
|
-
grid-gap:
|
|
7
|
+
grid-gap: 6px;
|
|
8
8
|
align-items: center;
|
|
9
|
-
|
|
10
|
-
padding: 0 12px;
|
|
9
|
+
padding: 6px 8px;
|
|
11
10
|
border: 0;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
fill: getColorVar('white', '50');
|
|
15
|
-
@include getFont($fonts, 'button-2');
|
|
11
|
+
color: var(--color-global-white);
|
|
12
|
+
fill: var(--color-global-white);
|
|
16
13
|
transition: background 0.4s;
|
|
17
14
|
white-space: nowrap;
|
|
18
15
|
overflow: hidden;
|
|
19
16
|
text-overflow: ellipsis;
|
|
20
17
|
|
|
18
|
+
@include getView('btn');
|
|
19
|
+
|
|
21
20
|
&:hover:not([disabled]) {
|
|
22
21
|
cursor: pointer;
|
|
23
22
|
}
|
|
24
23
|
|
|
24
|
+
&-m {
|
|
25
|
+
height: 28px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&-l {
|
|
29
|
+
height: 32px;
|
|
30
|
+
}
|
|
31
|
+
|
|
25
32
|
&-xs {
|
|
26
33
|
padding: 0;
|
|
27
34
|
height: 16px;
|
|
@@ -35,7 +42,7 @@
|
|
|
35
42
|
}
|
|
36
43
|
|
|
37
44
|
&[disabled] {
|
|
38
|
-
|
|
45
|
+
border: none;
|
|
39
46
|
filter: grayscale(1);
|
|
40
47
|
opacity: 0.3;
|
|
41
48
|
}
|
|
@@ -44,7 +51,3 @@
|
|
|
44
51
|
box-shadow: 0 0 0 4px var(--color-primary-10);
|
|
45
52
|
}
|
|
46
53
|
}
|
|
47
|
-
|
|
48
|
-
@each $paletteName in $palettes {
|
|
49
|
-
@include generateButtonForPalette($paletteName);
|
|
50
|
-
}
|
package/style/checkbox.scss
CHANGED
|
@@ -5,33 +5,46 @@
|
|
|
5
5
|
align-items: center;
|
|
6
6
|
grid-gap: 8px;
|
|
7
7
|
|
|
8
|
+
&_disabled {
|
|
9
|
+
cursor: default!important;
|
|
10
|
+
fill: var(--color-text-5)!important;
|
|
11
|
+
color: var(--color-text-50)!important;
|
|
12
|
+
}
|
|
13
|
+
|
|
8
14
|
&__tick {
|
|
9
|
-
background:
|
|
10
|
-
border: solid 1px
|
|
11
|
-
border-radius:
|
|
12
|
-
height:
|
|
13
|
-
width:
|
|
15
|
+
background: var(--color-global-bgcard);
|
|
16
|
+
border: solid 1px var(--color-text-20);
|
|
17
|
+
border-radius: 4px;
|
|
18
|
+
height: 16px;
|
|
19
|
+
width: 16px;
|
|
14
20
|
display: flex;
|
|
15
21
|
align-items: center;
|
|
16
22
|
justify-content: center;
|
|
17
|
-
|
|
23
|
+
|
|
18
24
|
&_active {
|
|
19
25
|
border: solid 0;
|
|
20
|
-
border-radius:
|
|
21
|
-
background:
|
|
22
|
-
fill:
|
|
26
|
+
border-radius: 4px;
|
|
27
|
+
background: var(--color-primary-50);
|
|
28
|
+
fill: var(--color-global-white);
|
|
23
29
|
}
|
|
24
30
|
}
|
|
25
31
|
|
|
26
|
-
&:hover {
|
|
32
|
+
&:hover:not(&_disabled) {
|
|
27
33
|
cursor: pointer;
|
|
28
34
|
}
|
|
29
35
|
|
|
30
|
-
|
|
31
|
-
|
|
36
|
+
|
|
37
|
+
&:hover:not(&_disabled) &__tick {
|
|
38
|
+
background: var(--color-text-5);
|
|
39
|
+
border-color: var(--color-text-30);
|
|
40
|
+
|
|
41
|
+
&_active {
|
|
42
|
+
background: var(--color-primary-60);
|
|
43
|
+
}
|
|
32
44
|
}
|
|
33
45
|
|
|
34
|
-
|
|
46
|
+
|
|
47
|
+
@each $paletteName, $palette in map-get($themes, nth(map-keys($themes), 1)) {
|
|
35
48
|
&.checkbox-#{$paletteName} {
|
|
36
49
|
fill: getColorVar($paletteName, '50');
|
|
37
50
|
}
|
package/style/chips.scss
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
@import "util/color-util.scss";
|
|
2
|
+
@import "util/font-util.scss";
|
|
3
|
+
@import "presets/view-types.scss";
|
|
2
4
|
|
|
3
5
|
.chip {
|
|
4
|
-
height:
|
|
6
|
+
height: 28px;
|
|
7
|
+
@include getFont($fonts,'button-2');
|
|
5
8
|
border: solid transparent 0;
|
|
6
9
|
border-radius: 12px;
|
|
7
|
-
background:
|
|
8
|
-
fill:
|
|
9
|
-
color:
|
|
10
|
+
background: var(--color-text-10);
|
|
11
|
+
fill: var(--color-text-50);
|
|
12
|
+
color: var(--color-text-90);
|
|
10
13
|
margin-right: 4px;
|
|
11
14
|
margin-top: 4px;
|
|
12
15
|
display: inline-flex;
|
|
13
16
|
align-items: center;
|
|
14
|
-
padding: 4px
|
|
15
|
-
|
|
17
|
+
padding: 4px 4px 4px 10px;
|
|
18
|
+
gap: 8px;
|
|
19
|
+
@include getView('base');
|
|
16
20
|
&:hover {
|
|
17
21
|
cursor: pointer;
|
|
18
22
|
}
|
|
19
|
-
|
|
20
|
-
teta-icon {
|
|
21
|
-
margin-right: 6px;
|
|
22
|
-
}
|
|
23
23
|
}
|
package/style/color.scss
CHANGED
|
@@ -1,42 +1,7 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
2
|
@import "./util/color-util.scss";
|
|
3
3
|
|
|
4
|
-
body {
|
|
5
|
-
@each $paletteName, $palette in map.get($themes, "default") {
|
|
6
|
-
@each $paletteColorName, $paletteColor in $palette {
|
|
7
|
-
--color-#{$paletteName}-#{$paletteColorName}: #{$paletteColor};
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@each $themeName, $theme in $themes {
|
|
13
|
-
.theme-#{$themeName} {
|
|
14
|
-
@each $paletteName, $palette in $theme {
|
|
15
|
-
@each $paletteColorName, $paletteColor in $palette {
|
|
16
|
-
--color-#{$paletteName}-#{$paletteColorName}: #{$paletteColor};
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
@each $paletteName, $i in $palettes {
|
|
24
|
-
@each $gradeName, $j in $grades {
|
|
25
|
-
.color-#{$paletteName}-#{$gradeName} {
|
|
26
|
-
color: getColorVar($paletteName, $gradeName);
|
|
27
|
-
}
|
|
28
|
-
.bg-#{$paletteName}-#{$gradeName} {
|
|
29
|
-
background-color: getColorVar($paletteName, $gradeName);
|
|
30
|
-
}
|
|
31
|
-
.border-#{$paletteName}-#{$gradeName} {
|
|
32
|
-
border-color: getColorVar($paletteName, $gradeName);
|
|
33
|
-
}
|
|
34
|
-
.fill-#{$paletteName}-#{$gradeName} {
|
|
35
|
-
fill: getColorVar($paletteName, $gradeName);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
4
|
.bg-transparent {
|
|
41
5
|
background-color: transparent;
|
|
42
6
|
}
|
|
7
|
+
|
package/style/datepicker.scss
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
@import "util/font-util.scss";
|
|
2
2
|
@import "util/shadow-util.scss";
|
|
3
3
|
@import "util/color-util.scss";
|
|
4
|
+
@import "presets/view-types.scss";
|
|
4
5
|
|
|
5
6
|
.datepicker {
|
|
6
7
|
display: inline-flex;
|
|
7
|
-
width:
|
|
8
|
+
width: 110px;
|
|
8
9
|
min-width: 0;
|
|
9
10
|
|
|
11
|
+
@include getView('base');
|
|
12
|
+
|
|
10
13
|
&-wide {
|
|
11
14
|
width: 170px;
|
|
12
15
|
}
|
|
@@ -16,28 +19,36 @@
|
|
|
16
19
|
flex-grow: 1;
|
|
17
20
|
align-items: center;
|
|
18
21
|
height: 28px;
|
|
19
|
-
border: solid 1px
|
|
20
|
-
background:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
border: solid 1px var(--color-text-5);
|
|
23
|
+
background: var(--color-text-5);
|
|
24
|
+
background-clip: padding-box;
|
|
25
|
+
color: var(--color-text-90);
|
|
26
|
+
fill: var(--color-text-90);
|
|
24
27
|
padding: 0 8px;
|
|
25
|
-
transition: border-color 0.4s;
|
|
28
|
+
transition: border-color 0.4s, background-color 0.4s;
|
|
26
29
|
min-width: 0;
|
|
27
30
|
|
|
28
31
|
&_disabled {
|
|
29
|
-
background-color:
|
|
32
|
+
background-color: var(--color-text-5);
|
|
30
33
|
border: 0;
|
|
31
|
-
color:
|
|
34
|
+
color: var(--color-text-40);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:focus-within {
|
|
38
|
+
border-color: var(--color-primary-50);
|
|
32
39
|
}
|
|
33
40
|
|
|
34
|
-
&:hover:not(&_disabled) {
|
|
35
|
-
|
|
41
|
+
&:hover:not(&_disabled):not(:focus-within) {
|
|
42
|
+
background-color: var(--color-text-10);
|
|
36
43
|
cursor: pointer;
|
|
37
44
|
}
|
|
38
45
|
|
|
46
|
+
&:active:not(&_disabled) {
|
|
47
|
+
border-color: var(--color-primary-50);
|
|
48
|
+
}
|
|
49
|
+
|
|
39
50
|
&_invalid {
|
|
40
|
-
border-color:
|
|
51
|
+
border-color: var(--color-red-50);
|
|
41
52
|
}
|
|
42
53
|
}
|
|
43
54
|
|
|
@@ -46,16 +57,72 @@
|
|
|
46
57
|
}
|
|
47
58
|
|
|
48
59
|
&:focus &-head, &_open &-head {
|
|
49
|
-
border-color:
|
|
60
|
+
border-color: var(--color-primary-50);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&-year {
|
|
64
|
+
max-height: 200px;
|
|
65
|
+
display: grid;
|
|
66
|
+
width: 248px;
|
|
67
|
+
align-items: center;
|
|
68
|
+
grid-template-columns: 1fr 1fr 1fr;
|
|
69
|
+
padding: 0 12px;
|
|
70
|
+
column-gap: 4px;
|
|
71
|
+
|
|
72
|
+
&_item {
|
|
73
|
+
transition: background 0.4s;
|
|
74
|
+
min-height: 32px;
|
|
75
|
+
|
|
76
|
+
&:hover:not(&_disabled):not(&_active) {
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
background-color: var(--color-primary-5);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&_disabled {
|
|
82
|
+
color: var(--color-text-30);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&_active {
|
|
86
|
+
color: var(--color-global-white);
|
|
87
|
+
background-color: var(--color-primary-50);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
50
92
|
}
|
|
51
93
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
94
|
+
&-month {
|
|
95
|
+
max-height: 200px;
|
|
96
|
+
display: grid;
|
|
97
|
+
align-items: center;
|
|
98
|
+
grid-template-columns: 1fr 1fr 1fr;
|
|
99
|
+
|
|
100
|
+
&-wrapper {
|
|
101
|
+
width: 248px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&_item {
|
|
105
|
+
transition: background 0.4s;
|
|
106
|
+
min-height: 32px;
|
|
107
|
+
|
|
108
|
+
&:hover:not(&_disabled):not(&_active) {
|
|
109
|
+
cursor: pointer;
|
|
110
|
+
background-color: var(--color-text-5);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&_active {
|
|
114
|
+
color: var(--color-global-white);
|
|
115
|
+
background-color: var(--color-primary-50);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
}
|
|
56
121
|
|
|
57
122
|
&-content {
|
|
58
|
-
|
|
123
|
+
user-select: none;
|
|
124
|
+
max-height: 268px;
|
|
125
|
+
overflow: hidden;
|
|
59
126
|
}
|
|
60
127
|
|
|
61
128
|
&-picker {
|
|
@@ -76,26 +143,74 @@
|
|
|
76
143
|
justify-content: center;
|
|
77
144
|
}
|
|
78
145
|
|
|
146
|
+
&-arrow_hidden {
|
|
147
|
+
visibility: hidden;
|
|
148
|
+
}
|
|
149
|
+
|
|
79
150
|
&-date {
|
|
80
151
|
height: 32px;
|
|
81
152
|
display: flex;
|
|
82
153
|
align-items: center;
|
|
83
154
|
justify-content: center;
|
|
84
155
|
border: solid 0;
|
|
85
|
-
|
|
156
|
+
|
|
157
|
+
&:hover:not(&_disabled):not(&_active):not(&-range_hover) {
|
|
158
|
+
cursor: pointer;
|
|
159
|
+
background-color: var(--color-primary-5);
|
|
160
|
+
}
|
|
86
161
|
|
|
87
162
|
&:hover:not(&_disabled):not(&_active) {
|
|
88
163
|
cursor: pointer;
|
|
89
|
-
background-color:
|
|
164
|
+
background-color: var(--color-primary-50);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&-range {
|
|
168
|
+
&_active {
|
|
169
|
+
background-color: var(--color-primary-10);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&_active:not(.datepicker-date_active) {
|
|
173
|
+
background-color: var(--color-primary-10);
|
|
174
|
+
border-radius: 0;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&_hover {
|
|
178
|
+
background-color: var(--color-primary-5);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&_hover:not(.datepicker-date_active) {
|
|
182
|
+
background-color: var(--color-primary-5);
|
|
183
|
+
border-radius: 0;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&_disabled {
|
|
187
|
+
visibility: hidden;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&_active:not(.datepicker-date-range_hover) {
|
|
192
|
+
color: var(--color-global-white);
|
|
193
|
+
background-color: var(--color-primary-50);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
&_active-second {
|
|
197
|
+
cursor: pointer;
|
|
198
|
+
border-top-left-radius: 0;
|
|
199
|
+
color: var(--color-global-white);
|
|
200
|
+
background-color: var(--color-primary-50);
|
|
201
|
+
border-bottom-left-radius: 0;
|
|
90
202
|
}
|
|
91
203
|
|
|
92
|
-
&_active {
|
|
93
|
-
|
|
94
|
-
|
|
204
|
+
&_active-first {
|
|
205
|
+
cursor: pointer;
|
|
206
|
+
color: var(--color-global-white);
|
|
207
|
+
background-color: var(--color-primary-50);
|
|
208
|
+
border-top-right-radius: 0;
|
|
209
|
+
border-bottom-right-radius: 0;
|
|
95
210
|
}
|
|
96
211
|
|
|
97
212
|
&_disabled {
|
|
98
|
-
color:
|
|
213
|
+
color: var(--color-text-30);
|
|
99
214
|
}
|
|
100
215
|
}
|
|
101
216
|
|
package/style/drag.scss
CHANGED
package/style/dropdown.scss
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
@import "util/color-util";
|
|
2
2
|
@import "util/shadow-util";
|
|
3
|
+
@import "presets/view-types.scss";
|
|
3
4
|
|
|
4
5
|
.dropdown {
|
|
5
|
-
border
|
|
6
|
-
border: solid 1px getColorVar('text', '5');
|
|
6
|
+
border: solid 1px var(--color-text-5);
|
|
7
7
|
position: fixed;
|
|
8
8
|
display: flex;
|
|
9
9
|
z-index: 1050;
|
|
10
|
-
|
|
11
|
-
background:
|
|
10
|
+
box-shadow: var(--shadow-2);
|
|
11
|
+
background: var(--color-global-bgcard);
|
|
12
12
|
animation: fadeInFromNone 0.5s ease-out;
|
|
13
13
|
|
|
14
|
+
@include getView('base');
|
|
15
|
+
|
|
14
16
|
&-backdrop {
|
|
15
17
|
position: fixed;
|
|
16
18
|
top: 0;
|
package/style/hint.scss
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
@import "util/shadow-util.scss";
|
|
2
2
|
@import "util/color-util.scss";
|
|
3
|
-
|
|
3
|
+
@import "presets/view-types.scss";
|
|
4
4
|
.hint {
|
|
5
|
-
|
|
5
|
+
box-shadow: var(--shadow-1);
|
|
6
6
|
padding: 4px 8px;
|
|
7
7
|
white-space: nowrap;
|
|
8
8
|
z-index: 3;
|
|
9
|
-
background-color:
|
|
10
|
-
color:
|
|
9
|
+
background-color: var(--color-text-10);
|
|
10
|
+
color: var(--color-text-90);
|
|
11
11
|
border: solid 0;
|
|
12
|
-
|
|
12
|
+
@include getView('base');
|
|
13
13
|
}
|
package/style/icon.scss
CHANGED