@tetacom/ng-components 1.0.151 → 1.1.0
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 +521 -49
- package/assets/file-icons.svg +1 -0
- package/assets/icons.svg +138 -205
- package/component/accordion/accordion-item/accordion-item.component.d.ts +1 -4
- package/component/button/button/button.component.d.ts +1 -4
- package/component/checkbox/checkbox/checkbox.component.d.ts +1 -2
- package/component/date-picker/date-picker/date-picker.component.d.ts +68 -38
- package/component/date-picker/date-picker.module.d.ts +16 -19
- package/component/date-picker/day-select/day-select.component.d.ts +51 -0
- package/component/date-picker/model/date-picker-mode.enum.d.ts +5 -0
- package/component/date-picker/month-picker/month-picker.component.d.ts +50 -16
- package/component/date-picker/month-select/month-select.component.d.ts +40 -0
- package/component/date-picker/public-api.d.ts +4 -5
- package/component/date-picker/service/picker-touch.service.d.ts +12 -0
- package/component/date-picker/time-part-control/time-part-control.component.d.ts +26 -0
- package/component/date-picker/util/date-picker-util.d.ts +15 -0
- package/component/date-picker/year-select/year-select.component.d.ts +45 -0
- package/component/dropdown/dropdown-base.d.ts +1 -3
- package/component/filter/filter.module.d.ts +2 -1
- package/component/icon/icon-file/icon-file.component.d.ts +3 -9
- package/component/icon/icon.module.d.ts +5 -4
- package/component/icon/public-api.d.ts +0 -1
- package/component/input/input/input.component.d.ts +1 -3
- package/component/message/model/message.d.ts +0 -3
- package/component/public-api.d.ts +0 -2
- package/component/select/select/select.component.d.ts +1 -4
- package/component/select/select.module.d.ts +2 -1
- package/component/switch/switch/switch.component.d.ts +1 -4
- package/component/table/table-body/table-body.component.d.ts +1 -0
- package/component/table/table.module.d.ts +2 -1
- package/component/tree/tree.module.d.ts +2 -1
- package/directive/hint/hint.directive.d.ts +1 -3
- package/directive/only-number/only-number.directive.d.ts +2 -1
- package/directive/public-api.d.ts +1 -0
- package/directive/scrollable/public-api.d.ts +3 -0
- package/directive/scrollable/scrollable/scrollable.component.d.ts +32 -0
- package/directive/scrollable/scrollable.directive.d.ts +6 -0
- package/directive/scrollable/scrollable.module.d.ts +10 -0
- package/esm2020/component/accordion/accordion/accordion.component.mjs +2 -3
- package/esm2020/component/accordion/accordion-head/accordion-head.component.mjs +2 -3
- package/esm2020/component/accordion/accordion-item/accordion-item.component.mjs +3 -13
- package/esm2020/component/button/button/button.component.mjs +3 -18
- package/esm2020/component/checkbox/checkbox/checkbox.component.mjs +3 -6
- package/esm2020/component/date-picker/date-picker/date-picker.component.mjs +235 -141
- package/esm2020/component/date-picker/date-picker.module.mjs +45 -41
- package/esm2020/component/date-picker/day-select/day-select.component.mjs +184 -0
- package/esm2020/component/date-picker/model/date-picker-mode.enum.mjs +7 -0
- package/esm2020/component/date-picker/month-picker/month-picker.component.mjs +237 -33
- package/esm2020/component/date-picker/month-select/month-select.component.mjs +148 -0
- package/esm2020/component/date-picker/public-api.mjs +5 -6
- package/esm2020/component/date-picker/service/picker-touch.service.mjs +34 -0
- package/esm2020/component/date-picker/time-part-control/time-part-control.component.mjs +73 -0
- package/esm2020/component/date-picker/util/date-picker-util.mjs +142 -0
- package/esm2020/component/date-picker/year-select/year-select.component.mjs +189 -0
- package/esm2020/component/dropdown/dropdown/dropdown.component.mjs +2 -3
- package/esm2020/component/dropdown/dropdown-base.mjs +2 -6
- 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/filter.module.mjs +7 -3
- package/esm2020/component/filter/list-filter/list-filter.component.mjs +4 -3
- 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 +6 -20
- package/esm2020/component/icon/icon.module.mjs +6 -1
- package/esm2020/component/icon/public-api.mjs +1 -2
- package/esm2020/component/input/input/input.component.mjs +3 -6
- 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 +3 -4
- package/esm2020/component/message/message-host/message-host.component.mjs +1 -1
- package/esm2020/component/message/model/message.mjs +1 -2
- 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 +1 -4
- package/esm2020/component/select/select/select.component.mjs +6 -9
- package/esm2020/component/select/select.module.mjs +7 -3
- package/esm2020/component/switch/switch/switch.component.mjs +7 -19
- 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-body/table-body.component.mjs +11 -6
- 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 +4 -3
- package/esm2020/component/table/table.module.mjs +7 -3
- package/esm2020/component/theme-switch/theme-switch/theme-switch.component.mjs +1 -1
- package/esm2020/component/tree/tree/tree.component.mjs +6 -4
- package/esm2020/component/tree/tree.module.mjs +5 -4
- package/esm2020/directive/hint/hint.directive.mjs +3 -6
- package/esm2020/directive/only-number/only-number.directive.mjs +12 -2
- package/esm2020/directive/public-api.mjs +2 -1
- package/esm2020/directive/scrollable/public-api.mjs +4 -0
- package/esm2020/directive/scrollable/scrollable/scrollable.component.mjs +96 -0
- package/esm2020/directive/scrollable/scrollable.directive.mjs +19 -0
- package/esm2020/directive/scrollable/scrollable.module.mjs +33 -0
- package/esm2020/locale/en.mjs +1 -3
- package/esm2020/locale/ru.mjs +1 -3
- package/esm2020/locale/teta-localisation.mjs +1 -1
- package/esm2020/observable/animation-frame.mjs +30 -0
- package/esm2020/observable/public-api.mjs +2 -1
- package/esm2020/pipe/prepend-zero/prepend-zero.module.mjs +18 -0
- package/esm2020/pipe/prepend-zero/prepend-zero.pipe.mjs +21 -0
- package/fesm2015/tetacom-ng-components.mjs +5483 -5181
- package/fesm2015/tetacom-ng-components.mjs.map +1 -1
- package/fesm2020/tetacom-ng-components.mjs +3333 -3025
- package/fesm2020/tetacom-ng-components.mjs.map +1 -1
- package/locale/teta-localisation.d.ts +0 -2
- package/observable/animation-frame.d.ts +4 -0
- package/observable/public-api.d.ts +1 -0
- package/package.json +2 -3
- package/pipe/prepend-zero/prepend-zero.module.d.ts +8 -0
- package/pipe/prepend-zero/prepend-zero.pipe.d.ts +7 -0
- package/style/accordion.scss +6 -28
- package/style/assembly-library.scss +1 -4
- package/style/assembly-presets.scss +1 -0
- package/style/button.scss +13 -16
- package/style/checkbox.scss +13 -26
- package/style/chips.scss +10 -10
- package/style/color.scss +36 -1
- package/style/datepicker.scss +24 -139
- package/style/drag.scss +1 -1
- package/style/dropdown.scss +4 -6
- package/style/hint.scss +5 -5
- package/style/icon.scss +1 -2
- package/style/input.scss +23 -32
- package/style/layout.scss +2 -6
- package/style/library.scss +17 -0
- package/style/list.scss +8 -11
- package/style/loader.scss +2 -2
- package/style/message.scss +7 -15
- package/style/modal.scss +2 -3
- package/style/navigation.scss +1 -4
- package/style/presets/color-presets.scss +160 -8
- package/style/presets/font-presets.scss +25 -26
- package/style/presets/shadow-presets.scss +16 -0
- package/style/progress.scss +3 -3
- package/style/radio.scss +7 -21
- package/style/resize-panel.scss +2 -2
- package/style/scroll.scss +21 -17
- package/style/select.scss +21 -26
- package/style/shadow.scss +20 -0
- package/style/sidebar.scss +1 -1
- package/style/switch.scss +10 -15
- package/style/table.scss +15 -17
- package/style/tabs.scss +11 -11
- package/style/toggle.scss +18 -20
- package/style/tokens/basedark.tokens.css +77 -0
- package/style/tokens/baselight.tokens.css +61 -0
- package/style/tokens/global.tokens.css +235 -0
- package/style/tokens/utility.tokens.css +1119 -0
- package/style/toolbar.scss +1 -1
- package/style/tooltip.scss +6 -8
- package/style/tree.scss +4 -4
- package/style/util/button-util.scss +58 -0
- package/common/model/view-type.model.d.ts +0 -1
- package/component/avatar/avatar/avatar.component.d.ts +0 -17
- package/component/avatar/avatar.module.d.ts +0 -9
- package/component/avatar/model/avatar-color.enum.d.ts +0 -20
- package/component/avatar/public-api.d.ts +0 -2
- package/component/date-picker/base-calendar.d.ts +0 -49
- package/component/date-picker/base-picker.d.ts +0 -60
- package/component/date-picker/date-picker/date-calendar/date-calendar.component.d.ts +0 -20
- package/component/date-picker/date-range/date-range.component.d.ts +0 -46
- package/component/date-picker/date-range/range-calendar/range-calendar.component.d.ts +0 -39
- package/component/date-picker/day-picker/day-item/day-item.component.d.ts +0 -9
- package/component/date-picker/day-picker/day-picker.component.d.ts +0 -30
- package/component/date-picker/model/from-to.model.d.ts +0 -4
- package/component/date-picker/model/min-max-date.model.d.ts +0 -4
- package/component/date-picker/year-picker/scroll-to-selected-year.directive.d.ts +0 -11
- package/component/date-picker/year-picker/year-picker.component.d.ts +0 -24
- package/component/divider/divider/divider.component.d.ts +0 -10
- package/component/divider/divider.module.d.ts +0 -8
- package/component/divider/public-api.d.ts +0 -2
- package/component/icon/icon-file/icon-file.module.d.ts +0 -9
- package/esm2020/common/model/view-type.model.mjs +0 -2
- package/esm2020/component/avatar/avatar/avatar.component.mjs +0 -57
- package/esm2020/component/avatar/avatar.module.mjs +0 -28
- package/esm2020/component/avatar/model/avatar-color.enum.mjs +0 -22
- package/esm2020/component/avatar/public-api.mjs +0 -3
- package/esm2020/component/date-picker/base-calendar.mjs +0 -99
- package/esm2020/component/date-picker/base-picker.mjs +0 -102
- package/esm2020/component/date-picker/date-picker/date-calendar/date-calendar.component.mjs +0 -49
- package/esm2020/component/date-picker/date-range/date-range.component.mjs +0 -211
- package/esm2020/component/date-picker/date-range/range-calendar/range-calendar.component.mjs +0 -108
- package/esm2020/component/date-picker/day-picker/day-item/day-item.component.mjs +0 -15
- package/esm2020/component/date-picker/day-picker/day-picker.component.mjs +0 -113
- package/esm2020/component/date-picker/model/from-to.model.mjs +0 -2
- package/esm2020/component/date-picker/model/min-max-date.model.mjs +0 -2
- package/esm2020/component/date-picker/year-picker/scroll-to-selected-year.directive.mjs +0 -26
- package/esm2020/component/date-picker/year-picker/year-picker.component.mjs +0 -48
- package/esm2020/component/divider/divider/divider.component.mjs +0 -18
- package/esm2020/component/divider/divider.module.mjs +0 -20
- package/esm2020/component/divider/public-api.mjs +0 -3
- package/esm2020/component/icon/icon-file/icon-file.module.mjs +0 -28
- package/style/badge.scss +0 -28
- package/style/bottombar.scss +0 -5
- package/style/divider.scss +0 -15
- package/style/presets/view-types.scss +0 -15
- package/style/tag.scss +0 -37
- package/style/util/scroll-util.scss +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tetacom/ng-components",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^14.0.0",
|
|
@@ -10,8 +10,7 @@
|
|
|
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"
|
|
14
|
-
"@tetacom/themes": "^0.0.9"
|
|
13
|
+
"luxon": "^3.1.0"
|
|
15
14
|
},
|
|
16
15
|
"dependencies": {
|
|
17
16
|
"tslib": "^2.3.0"
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./prepend-zero.pipe";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class PrependZeroModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PrependZeroModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PrependZeroModule, [typeof i1.PrependZeroPipe], [typeof i2.CommonModule], [typeof i1.PrependZeroPipe]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PrependZeroModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PrependZeroPipe implements PipeTransform {
|
|
4
|
+
transform(value: number, length: number): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PrependZeroPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<PrependZeroPipe, "tetaPrependZero", false>;
|
|
7
|
+
}
|
package/style/accordion.scss
CHANGED
|
@@ -1,54 +1,33 @@
|
|
|
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
|
-
}
|
|
16
3
|
|
|
17
4
|
.accordion {
|
|
18
5
|
display: flex;
|
|
19
6
|
flex-direction: column;
|
|
20
|
-
gap: 8px;
|
|
21
|
-
|
|
22
|
-
@include getView('base');
|
|
23
7
|
|
|
24
8
|
&-item {
|
|
25
9
|
display: flex;
|
|
26
10
|
flex-direction: column;
|
|
27
|
-
min-height:
|
|
28
|
-
background: var(--color-global-bgcard);
|
|
11
|
+
min-height: 40px;
|
|
29
12
|
|
|
30
13
|
&_active {
|
|
31
14
|
flex-grow: 0;
|
|
32
|
-
background: var(--color-text-10);
|
|
33
15
|
}
|
|
34
16
|
}
|
|
35
17
|
|
|
36
18
|
&-head {
|
|
37
19
|
display: flex;
|
|
38
20
|
align-items: center;
|
|
39
|
-
height:
|
|
40
|
-
padding: 0
|
|
21
|
+
height: 40px;
|
|
22
|
+
padding: 0 8px;
|
|
23
|
+
grid-gap: 8px;
|
|
41
24
|
flex-shrink: 0;
|
|
42
|
-
|
|
43
|
-
justify-content: space-between;
|
|
25
|
+
border-bottom: solid 1px getColorVar('text', '5');
|
|
44
26
|
@include getFont($fonts, 'title-3');
|
|
45
27
|
|
|
46
|
-
|
|
47
28
|
&:hover:not(&_disabled) {
|
|
48
29
|
cursor: pointer;
|
|
49
|
-
background: var(--color-text-5);
|
|
50
30
|
}
|
|
51
|
-
|
|
52
31
|
&_open {
|
|
53
32
|
border: none;
|
|
54
33
|
}
|
|
@@ -63,7 +42,6 @@
|
|
|
63
42
|
display: flex;
|
|
64
43
|
flex-grow: 1;
|
|
65
44
|
min-height: 0;
|
|
66
|
-
|
|
45
|
+
border-bottom: solid 1px getColorVar('text', '5');
|
|
67
46
|
}
|
|
68
|
-
|
|
69
47
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
@import "./accordion.scss";
|
|
2
2
|
@import "./skeleton.scss";
|
|
3
|
-
@import "./badge.scss";
|
|
4
3
|
@import "./border.scss";
|
|
5
4
|
@import "./button.scss";
|
|
6
5
|
@import "./checkbox.scss";
|
|
@@ -32,10 +31,8 @@
|
|
|
32
31
|
@import "./switch.scss";
|
|
33
32
|
@import "./table.scss";
|
|
34
33
|
@import "./tabs.scss";
|
|
35
|
-
@import "./tag.scss";
|
|
36
34
|
@import "./toggle.scss";
|
|
37
35
|
@import "./toolbar.scss";
|
|
38
36
|
@import "./tooltip.scss";
|
|
39
37
|
@import "./tree.scss";
|
|
40
|
-
|
|
41
|
-
@import "./divider.scss";
|
|
38
|
+
|
package/style/button.scss
CHANGED
|
@@ -1,34 +1,27 @@
|
|
|
1
1
|
@import "./util/color-util.scss";
|
|
2
2
|
@import "./util/font-util.scss";
|
|
3
|
-
@import "
|
|
3
|
+
@import "./util/button-util.scss";
|
|
4
4
|
|
|
5
5
|
.button {
|
|
6
6
|
display: inline-flex;
|
|
7
|
-
grid-gap:
|
|
7
|
+
grid-gap: 4px;
|
|
8
8
|
align-items: center;
|
|
9
|
-
|
|
9
|
+
height: 28px;
|
|
10
|
+
padding: 0 12px;
|
|
10
11
|
border: 0;
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
border-radius: 4px;
|
|
13
|
+
color: getColorVar('white', '50');
|
|
14
|
+
fill: getColorVar('white', '50');
|
|
15
|
+
@include getFont($fonts, 'button-2');
|
|
13
16
|
transition: background 0.4s;
|
|
14
17
|
white-space: nowrap;
|
|
15
18
|
overflow: hidden;
|
|
16
19
|
text-overflow: ellipsis;
|
|
17
20
|
|
|
18
|
-
@include getView('btn');
|
|
19
|
-
|
|
20
21
|
&:hover:not([disabled]) {
|
|
21
22
|
cursor: pointer;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
|
-
&-m {
|
|
25
|
-
height: 28px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&-l {
|
|
29
|
-
height: 32px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
25
|
&-xs {
|
|
33
26
|
padding: 0;
|
|
34
27
|
height: 16px;
|
|
@@ -42,7 +35,7 @@
|
|
|
42
35
|
}
|
|
43
36
|
|
|
44
37
|
&[disabled] {
|
|
45
|
-
|
|
38
|
+
|
|
46
39
|
filter: grayscale(1);
|
|
47
40
|
opacity: 0.3;
|
|
48
41
|
}
|
|
@@ -51,3 +44,7 @@
|
|
|
51
44
|
box-shadow: 0 0 0 4px var(--color-primary-10);
|
|
52
45
|
}
|
|
53
46
|
}
|
|
47
|
+
|
|
48
|
+
@each $paletteName in $palettes {
|
|
49
|
+
@include generateButtonForPalette($paletteName);
|
|
50
|
+
}
|
package/style/checkbox.scss
CHANGED
|
@@ -5,46 +5,33 @@
|
|
|
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
|
-
|
|
14
8
|
&__tick {
|
|
15
|
-
background:
|
|
16
|
-
border: solid 1px
|
|
17
|
-
border-radius:
|
|
18
|
-
height:
|
|
19
|
-
width:
|
|
9
|
+
background: getColorVar('background', '50');
|
|
10
|
+
border: solid 1px getColorVar('text', '20');
|
|
11
|
+
border-radius: 2px;
|
|
12
|
+
height: 14px;
|
|
13
|
+
width: 14px;
|
|
20
14
|
display: flex;
|
|
21
15
|
align-items: center;
|
|
22
16
|
justify-content: center;
|
|
23
|
-
|
|
17
|
+
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15) inset;
|
|
24
18
|
&_active {
|
|
25
19
|
border: solid 0;
|
|
26
|
-
border-radius:
|
|
27
|
-
background:
|
|
28
|
-
fill:
|
|
20
|
+
border-radius: 2px;
|
|
21
|
+
background: getColorVar('primary', '50');
|
|
22
|
+
fill: getColorVar('white', '50');
|
|
29
23
|
}
|
|
30
24
|
}
|
|
31
25
|
|
|
32
|
-
&:hover
|
|
26
|
+
&:hover {
|
|
33
27
|
cursor: pointer;
|
|
34
28
|
}
|
|
35
29
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
background: var(--color-text-5);
|
|
39
|
-
border-color: var(--color-text-30);
|
|
40
|
-
|
|
41
|
-
&_active {
|
|
42
|
-
background: var(--color-primary-60);
|
|
43
|
-
}
|
|
30
|
+
&:hover &__tick {
|
|
31
|
+
border-color: getColorVar('text', '50');
|
|
44
32
|
}
|
|
45
33
|
|
|
46
|
-
|
|
47
|
-
@each $paletteName, $palette in map-get($themes, nth(map-keys($themes), 1)) {
|
|
34
|
+
@each $paletteName in $palettes {
|
|
48
35
|
&.checkbox-#{$paletteName} {
|
|
49
36
|
fill: getColorVar($paletteName, '50');
|
|
50
37
|
}
|
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";
|
|
4
2
|
|
|
5
3
|
.chip {
|
|
6
|
-
height:
|
|
7
|
-
@include getFont($fonts,'button-2');
|
|
4
|
+
height: 24px;
|
|
8
5
|
border: solid transparent 0;
|
|
9
6
|
border-radius: 12px;
|
|
10
|
-
background:
|
|
11
|
-
fill:
|
|
12
|
-
color:
|
|
7
|
+
background: getColorVar('text', '10');
|
|
8
|
+
fill: getColorVar('text', '50');
|
|
9
|
+
color: getColorVar('text', '90');
|
|
13
10
|
margin-right: 4px;
|
|
14
11
|
margin-top: 4px;
|
|
15
12
|
display: inline-flex;
|
|
16
13
|
align-items: center;
|
|
17
|
-
padding: 4px
|
|
18
|
-
|
|
19
|
-
@include getView('base');
|
|
14
|
+
padding: 4px 8px 4px 6px;
|
|
15
|
+
|
|
20
16
|
&:hover {
|
|
21
17
|
cursor: pointer;
|
|
22
18
|
}
|
|
19
|
+
|
|
20
|
+
teta-icon {
|
|
21
|
+
margin-right: 6px;
|
|
22
|
+
}
|
|
23
23
|
}
|
package/style/color.scss
CHANGED
|
@@ -1,7 +1,42 @@
|
|
|
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
|
+
|
|
4
40
|
.bg-transparent {
|
|
5
41
|
background-color: transparent;
|
|
6
42
|
}
|
|
7
|
-
|
package/style/datepicker.scss
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
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";
|
|
5
4
|
|
|
6
5
|
.datepicker {
|
|
7
6
|
display: inline-flex;
|
|
8
|
-
width:
|
|
7
|
+
width: 150px;
|
|
9
8
|
min-width: 0;
|
|
10
9
|
|
|
11
|
-
@include getView('base');
|
|
12
|
-
|
|
13
10
|
&-wide {
|
|
14
11
|
width: 170px;
|
|
15
12
|
}
|
|
@@ -19,36 +16,28 @@
|
|
|
19
16
|
flex-grow: 1;
|
|
20
17
|
align-items: center;
|
|
21
18
|
height: 28px;
|
|
22
|
-
border: solid 1px
|
|
23
|
-
background:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
border: solid 1px getColorVar('text', '20');
|
|
20
|
+
background: getColorVar('background', '50');
|
|
21
|
+
color: getColorVar('text', '90');
|
|
22
|
+
fill: getColorVar('text', '90');
|
|
23
|
+
border-radius: 4px;
|
|
27
24
|
padding: 0 8px;
|
|
28
|
-
transition: border-color 0.4s
|
|
25
|
+
transition: border-color 0.4s;
|
|
29
26
|
min-width: 0;
|
|
30
27
|
|
|
31
28
|
&_disabled {
|
|
32
|
-
background-color:
|
|
29
|
+
background-color: getColorVar('text', 5);
|
|
33
30
|
border: 0;
|
|
34
|
-
color:
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&:focus-within {
|
|
38
|
-
border-color: var(--color-primary-50);
|
|
31
|
+
color: getColorVar('text', 40);
|
|
39
32
|
}
|
|
40
33
|
|
|
41
|
-
&:hover:not(&_disabled)
|
|
42
|
-
|
|
34
|
+
&:hover:not(&_disabled) {
|
|
35
|
+
border-color: getColorVar('text', '40');
|
|
43
36
|
cursor: pointer;
|
|
44
37
|
}
|
|
45
38
|
|
|
46
|
-
&:active:not(&_disabled) {
|
|
47
|
-
border-color: var(--color-primary-50);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
39
|
&_invalid {
|
|
51
|
-
border-color:
|
|
40
|
+
border-color: getColorVar('red', '50');
|
|
52
41
|
}
|
|
53
42
|
}
|
|
54
43
|
|
|
@@ -57,72 +46,16 @@
|
|
|
57
46
|
}
|
|
58
47
|
|
|
59
48
|
&:focus &-head, &_open &-head {
|
|
60
|
-
border-color:
|
|
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
|
-
|
|
49
|
+
border-color: getColorVar('primary', '50');
|
|
92
50
|
}
|
|
93
51
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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
|
-
}
|
|
52
|
+
//&-body {
|
|
53
|
+
// @include shadow(2);
|
|
54
|
+
// background-color: getColorVar('background', '50');
|
|
55
|
+
//}
|
|
121
56
|
|
|
122
57
|
&-content {
|
|
123
|
-
|
|
124
|
-
max-height: 268px;
|
|
125
|
-
overflow: hidden;
|
|
58
|
+
width: 224px;
|
|
126
59
|
}
|
|
127
60
|
|
|
128
61
|
&-picker {
|
|
@@ -143,74 +76,26 @@
|
|
|
143
76
|
justify-content: center;
|
|
144
77
|
}
|
|
145
78
|
|
|
146
|
-
&-arrow_hidden {
|
|
147
|
-
visibility: hidden;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
79
|
&-date {
|
|
151
80
|
height: 32px;
|
|
152
81
|
display: flex;
|
|
153
82
|
align-items: center;
|
|
154
83
|
justify-content: center;
|
|
155
84
|
border: solid 0;
|
|
156
|
-
|
|
157
|
-
&:hover:not(&_disabled):not(&_active):not(&-range_hover) {
|
|
158
|
-
cursor: pointer;
|
|
159
|
-
background-color: var(--color-primary-5);
|
|
160
|
-
}
|
|
85
|
+
border-radius: 32px;
|
|
161
86
|
|
|
162
87
|
&:hover:not(&_disabled):not(&_active) {
|
|
163
88
|
cursor: pointer;
|
|
164
|
-
background-color:
|
|
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;
|
|
89
|
+
background-color: getColorVar('text', '5');
|
|
202
90
|
}
|
|
203
91
|
|
|
204
|
-
&_active
|
|
205
|
-
|
|
206
|
-
color:
|
|
207
|
-
background-color: var(--color-primary-50);
|
|
208
|
-
border-top-right-radius: 0;
|
|
209
|
-
border-bottom-right-radius: 0;
|
|
92
|
+
&_active {
|
|
93
|
+
color: getColorVar('white', '50');
|
|
94
|
+
background-color: getColorVar('primary', '50');
|
|
210
95
|
}
|
|
211
96
|
|
|
212
97
|
&_disabled {
|
|
213
|
-
color:
|
|
98
|
+
color: getColorVar('text', '10');
|
|
214
99
|
}
|
|
215
100
|
}
|
|
216
101
|
|
package/style/drag.scss
CHANGED
package/style/dropdown.scss
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
@import "util/color-util";
|
|
2
2
|
@import "util/shadow-util";
|
|
3
|
-
@import "presets/view-types.scss";
|
|
4
3
|
|
|
5
4
|
.dropdown {
|
|
6
|
-
border:
|
|
5
|
+
border-radius: 4px;
|
|
6
|
+
border: solid 1px getColorVar('text', '5');
|
|
7
7
|
position: fixed;
|
|
8
8
|
display: flex;
|
|
9
9
|
z-index: 1050;
|
|
10
|
-
|
|
11
|
-
background:
|
|
10
|
+
@include shadow(2);
|
|
11
|
+
background: getColorVar('background', '50');
|
|
12
12
|
animation: fadeInFromNone 0.5s ease-out;
|
|
13
13
|
|
|
14
|
-
@include getView('base');
|
|
15
|
-
|
|
16
14
|
&-backdrop {
|
|
17
15
|
position: fixed;
|
|
18
16
|
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
|
+
|
|
4
4
|
.hint {
|
|
5
|
-
|
|
5
|
+
@include 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: getColorVar('text', '10');
|
|
10
|
+
color: getColorVar('text', '90');
|
|
11
11
|
border: solid 0;
|
|
12
|
-
|
|
12
|
+
border-radius: 2px;
|
|
13
13
|
}
|
package/style/icon.scss
CHANGED