@odx/ui 2.4.0 → 2.6.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/ag-grid-theme.css +1 -1
- package/core-theme.css +1 -1
- package/package.json +1 -1
- package/scss/3rdparty/ag-grid/theme.scss +9 -2
- package/scss/abstract/_utils.scss +1 -1
- package/scss/components/autocomplete.component.scss +2 -2
- package/scss/components/calendar.component.scss +168 -0
- package/scss/components/datepicker.component.scss +30 -0
- package/scss/components/dropdown.component.scss +1 -0
- package/scss/components/form-field.component.scss +6 -3
- package/scss/components/list-item.component.scss +1 -0
- package/scss/components/select.component.scss +2 -3
- package/scss/core.scss +2 -0
package/package.json
CHANGED
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
--ag-icon-font-code-eye-slash: '#{icons.get-icon-glyph(placeholder)}';
|
|
37
37
|
--ag-icon-font-code-eye: '#{icons.get-icon-glyph(placeholder)}';
|
|
38
38
|
--ag-icon-font-code-filter: '#{icons.get-icon-glyph(filter)}';
|
|
39
|
-
--ag-icon-font-code-first: '#{icons.get-icon-glyph(
|
|
39
|
+
--ag-icon-font-code-first: '#{icons.get-icon-glyph(chevron-left-end)}';
|
|
40
40
|
--ag-icon-font-code-grip: '#{icons.get-icon-glyph(placeholder)}';
|
|
41
41
|
--ag-icon-font-code-group: '#{icons.get-icon-glyph(placeholder)}';
|
|
42
|
-
--ag-icon-font-code-last: '#{icons.get-icon-glyph(
|
|
42
|
+
--ag-icon-font-code-last: '#{icons.get-icon-glyph(chevron-right-end)}';
|
|
43
43
|
--ag-icon-font-code-left: '#{icons.get-icon-glyph(arrow-left)}';
|
|
44
44
|
--ag-icon-font-code-linked: '#{icons.get-icon-glyph(placeholder)}';
|
|
45
45
|
--ag-icon-font-code-loading: '#{icons.get-icon-glyph(placeholder)}';
|
|
@@ -217,4 +217,11 @@
|
|
|
217
217
|
.ag-select-list {
|
|
218
218
|
color: var(--odx-c-text);
|
|
219
219
|
}
|
|
220
|
+
|
|
221
|
+
.ag-paging-panel {
|
|
222
|
+
.ag-paging-row-summary-panel-number,
|
|
223
|
+
.ag-paging-number {
|
|
224
|
+
font-weight: var(--odx-typography-font-weight-bold);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
220
227
|
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/dimensions';
|
|
3
|
+
@use '../abstract/motion';
|
|
4
|
+
@use '../abstract/typography';
|
|
5
|
+
@use '../abstract/utils';
|
|
6
|
+
|
|
7
|
+
.odx-calendar {
|
|
8
|
+
$root: &;
|
|
9
|
+
|
|
10
|
+
display: inline-block;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
max-height: inherit;
|
|
13
|
+
|
|
14
|
+
&-header {
|
|
15
|
+
@include motion.transition(background-color outline-color color border-radius);
|
|
16
|
+
@include utils.vertical-center-content();
|
|
17
|
+
@include typography.font-weight(normal);
|
|
18
|
+
|
|
19
|
+
background-color: var(--odx-c-background-content);
|
|
20
|
+
border-bottom: 1px solid var(--odx-input-control-outline-color);
|
|
21
|
+
|
|
22
|
+
.odx-action-group {
|
|
23
|
+
width: 100%;
|
|
24
|
+
|
|
25
|
+
@include dimensions.margin(0, top);
|
|
26
|
+
@include dimensions.margin(math.div(4, 24), bottom);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&__title {
|
|
30
|
+
flex: 1 1 auto;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&-cell {
|
|
35
|
+
@include dimensions.container(1.5);
|
|
36
|
+
@include motion.transition(background-color outline-color color border-radius);
|
|
37
|
+
@include utils.interactive(false);
|
|
38
|
+
@include utils.with-outline-bold();
|
|
39
|
+
@include typography.font-weight(normal);
|
|
40
|
+
|
|
41
|
+
border-radius: var(--odx-v-border-radius-controls);
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
outline-color: transparent;
|
|
44
|
+
position: relative;
|
|
45
|
+
text-align: center;
|
|
46
|
+
vertical-align: middle;
|
|
47
|
+
z-index: 1;
|
|
48
|
+
|
|
49
|
+
&:hover {
|
|
50
|
+
background-color: var(--blue-700-10);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&--is-current,
|
|
54
|
+
&.is-selected {
|
|
55
|
+
@include typography.font-weight(medium);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&.is-selected {
|
|
59
|
+
background-color: var(--odx-c-focus);
|
|
60
|
+
|
|
61
|
+
&:hover {
|
|
62
|
+
background-color: var(--cyan-500-20);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&--adjacent,
|
|
67
|
+
&.is-disabled {
|
|
68
|
+
color: var(--odx-input-control-color-disabled);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&:focus {
|
|
72
|
+
&:disabled,
|
|
73
|
+
&.is-disabled {
|
|
74
|
+
outline-color: var(--odx-c-focus-outline-disabled);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&-month {
|
|
80
|
+
#{$root}__table {
|
|
81
|
+
border-collapse: separate;
|
|
82
|
+
border-spacing: dimensions.get-size(math.div(4, 24));
|
|
83
|
+
|
|
84
|
+
@include dimensions.margin-x(math.div(-4, 24));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
#{$root}__weekdays {
|
|
88
|
+
@include typography.font-weight(bold);
|
|
89
|
+
@include typography.font-size(-1);
|
|
90
|
+
@include utils.non-interactive();
|
|
91
|
+
|
|
92
|
+
text-align: center;
|
|
93
|
+
|
|
94
|
+
td {
|
|
95
|
+
@include dimensions.container(1.5);
|
|
96
|
+
|
|
97
|
+
vertical-align: middle;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
#{$root}-cell {
|
|
102
|
+
&--is-current::after {
|
|
103
|
+
@include dimensions.container(1);
|
|
104
|
+
@include dimensions.margin(0.25);
|
|
105
|
+
|
|
106
|
+
background-color: var(--blue-700-15);
|
|
107
|
+
border-radius: 50%;
|
|
108
|
+
content: '';
|
|
109
|
+
left: 0;
|
|
110
|
+
position: absolute;
|
|
111
|
+
top: 0;
|
|
112
|
+
z-index: -1;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&-year,
|
|
118
|
+
&-years {
|
|
119
|
+
#{$root}-cell {
|
|
120
|
+
&--is-current {
|
|
121
|
+
background-color: var(--blue-700-10);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&-year {
|
|
127
|
+
#{$root}__body {
|
|
128
|
+
display: inline-table;
|
|
129
|
+
|
|
130
|
+
@include dimensions.margin-y(1.75);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
#{$root}__table {
|
|
134
|
+
@include dimensions.margin(1.42, bottom);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
#{$root}__season {
|
|
138
|
+
display: grid;
|
|
139
|
+
grid-gap: 50px;
|
|
140
|
+
grid-template-columns: repeat(3, 1fr);
|
|
141
|
+
margin: 2px 0;
|
|
142
|
+
|
|
143
|
+
@include dimensions.padding-x(1.16);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
#{$root}-cell {
|
|
147
|
+
@include dimensions.container(math.div(5, 3));
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&-years {
|
|
152
|
+
#{$root}__table {
|
|
153
|
+
margin: 0 28px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
#{$root}__year-row {
|
|
157
|
+
display: grid;
|
|
158
|
+
grid-gap: 36px;
|
|
159
|
+
grid-template-columns: repeat(3, 1fr);
|
|
160
|
+
margin: 2px 0;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
#{$root}-cell {
|
|
164
|
+
height: dimensions.get-size(math.div(5, 3));
|
|
165
|
+
width: dimensions.get-size(2);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@use '../abstract/utils';
|
|
2
|
+
|
|
3
|
+
.odx-datepicker {
|
|
4
|
+
$root: &;
|
|
5
|
+
$dropdown-max-height: 359px;
|
|
6
|
+
|
|
7
|
+
@include utils.vertical-center-content();
|
|
8
|
+
|
|
9
|
+
&__trigger {
|
|
10
|
+
#{$root}.is-readonly & {
|
|
11
|
+
@include utils.non-interactive();
|
|
12
|
+
|
|
13
|
+
color: var(--odx-control-color-disabled);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&__control {
|
|
18
|
+
width: 100%;
|
|
19
|
+
|
|
20
|
+
&::-webkit-inner-spin-button,
|
|
21
|
+
&::-webkit-calendar-picker-indicator {
|
|
22
|
+
appearance: none;
|
|
23
|
+
display: none;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.odx-dropdown {
|
|
28
|
+
max-height: $dropdown-max-height;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -117,12 +117,15 @@ body {
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
#{$control-selector} {
|
|
120
|
-
@include dimensions.padding-x($form-field-inner-padding);
|
|
121
|
-
@include typography.font-weight(medium);
|
|
122
|
-
|
|
123
120
|
vertical-align: middle;
|
|
124
121
|
width: 100%;
|
|
125
122
|
|
|
123
|
+
@include dimensions.padding-x($form-field-inner-padding);
|
|
124
|
+
@include typography.font-weight(medium);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
#{$control-selector},
|
|
128
|
+
input {
|
|
126
129
|
&::placeholder {
|
|
127
130
|
@include typography.font-weight(normal);
|
|
128
131
|
|
package/scss/core.scss
CHANGED
|
@@ -41,11 +41,13 @@ Layout
|
|
|
41
41
|
@use 'components/button-group.component';
|
|
42
42
|
@use 'components/button.component';
|
|
43
43
|
@use 'components/card.component';
|
|
44
|
+
@use 'components/calendar.component';
|
|
44
45
|
@use 'components/checkbox.component';
|
|
45
46
|
@use 'components/chip.component';
|
|
46
47
|
@use 'components/chip-list.component';
|
|
47
48
|
@use 'components/circular-progress.component';
|
|
48
49
|
@use 'components/content-box.component';
|
|
50
|
+
@use 'components/datepicker.component';
|
|
49
51
|
@use 'components/dropdown.component';
|
|
50
52
|
@use 'components/expandable-list-item.component';
|
|
51
53
|
@use 'components/form-field.component';
|