yuyeon 0.0.23 → 0.0.24
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/dist/style.css +1 -1
- package/dist/yuyeon.js +633 -596
- package/dist/yuyeon.umd.cjs +3 -3
- package/lib/components/button/YButton.mjs +2 -2
- package/lib/components/button/YButton.mjs.map +1 -1
- package/lib/components/card/YCard.scss +36 -36
- package/lib/components/checkbox/YInputCheckbox.scss +86 -86
- package/lib/components/field-input/YFieldInput.mjs +2 -1
- package/lib/components/field-input/YFieldInput.mjs.map +1 -1
- package/lib/components/field-input/YFieldInput.scss +11 -1
- package/lib/components/input/YInput.mjs +15 -7
- package/lib/components/input/YInput.mjs.map +1 -1
- package/lib/components/input/YInput.scss +256 -245
- package/lib/components/layer/YLayer.scss +33 -33
- package/lib/components/menu/YMenu.scss +22 -22
- package/lib/components/progress-bar/YProgressBar.mjs.map +1 -1
- package/lib/components/switch/YSwitch.scss +198 -198
- package/lib/components/table/YTable.scss +114 -114
- package/lib/components/tree-view/YTreeView.mjs.map +1 -1
- package/lib/composables/theme/factory.mjs.map +1 -1
- package/lib/styles/base.scss +4 -0
- package/package.json +1 -1
- package/types/components/field-input/YFieldInput.d.ts +27 -0
- package/types/components/input/YInput.d.ts +30 -3
- package/types/components/select/YSelect.d.ts +27 -0
|
@@ -1,198 +1,198 @@
|
|
|
1
|
-
@use '../../styles/palette';
|
|
2
|
-
@use '../../styles/variables';
|
|
3
|
-
|
|
4
|
-
.y-switch {
|
|
5
|
-
--y-switch__color: var(--y-theme-primary);
|
|
6
|
-
font-size: 1rem;
|
|
7
|
-
|
|
8
|
-
&__slot {
|
|
9
|
-
display: flex;
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
align-items: center;
|
|
12
|
-
color: inherit;
|
|
13
|
-
min-height: inherit;
|
|
14
|
-
position: relative;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&__input {
|
|
18
|
-
width: 3em;
|
|
19
|
-
height: 1.5em;
|
|
20
|
-
position: relative;
|
|
21
|
-
display: inline-flex;
|
|
22
|
-
user-select: none;
|
|
23
|
-
color: inherit;
|
|
24
|
-
flex: 0 0 auto;
|
|
25
|
-
|
|
26
|
-
input[role='switch'] {
|
|
27
|
-
position: absolute;
|
|
28
|
-
opacity: 0;
|
|
29
|
-
width: 100%;
|
|
30
|
-
height: 100%;
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
user-select: none;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
&:not(&--loading) &__input:active &__thumb {
|
|
36
|
-
width: 1em;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&__track {
|
|
40
|
-
width: 100%;
|
|
41
|
-
height: 100%;
|
|
42
|
-
border-radius: 2em;
|
|
43
|
-
background-color: #e0e0e0;
|
|
44
|
-
position: absolute;
|
|
45
|
-
left: 0;
|
|
46
|
-
top: 0;
|
|
47
|
-
transition: 300ms;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&__thumb {
|
|
51
|
-
width: 1.1em;
|
|
52
|
-
height: 1.1em;
|
|
53
|
-
align-self: center;
|
|
54
|
-
left: 0.185em;
|
|
55
|
-
border-radius: 50%;
|
|
56
|
-
display: flex;
|
|
57
|
-
justify-content: center;
|
|
58
|
-
align-items: center;
|
|
59
|
-
background-color: #fff;
|
|
60
|
-
pointer-events: none;
|
|
61
|
-
position: relative;
|
|
62
|
-
transition: 180ms cubic-bezier(0.78, 0.04, 0.9, 0.18);
|
|
63
|
-
will-change: left, transform;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&__spinner {
|
|
67
|
-
position: relative;
|
|
68
|
-
width: 100%;
|
|
69
|
-
height: 100%;
|
|
70
|
-
border-radius: 50%;
|
|
71
|
-
animation: rotate 2s linear infinite;
|
|
72
|
-
contain: paint;
|
|
73
|
-
|
|
74
|
-
@keyframes spinner-blur {
|
|
75
|
-
0% {
|
|
76
|
-
filter: blur(4px);
|
|
77
|
-
}
|
|
78
|
-
50% {
|
|
79
|
-
filter: blur(1px);
|
|
80
|
-
}
|
|
81
|
-
100% {
|
|
82
|
-
filter: blur(4px);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&:before {
|
|
87
|
-
content: '';
|
|
88
|
-
position: absolute;
|
|
89
|
-
top: 2px;
|
|
90
|
-
left: 2px;
|
|
91
|
-
right: 2px;
|
|
92
|
-
bottom: 2px;
|
|
93
|
-
border-radius: 50%;
|
|
94
|
-
border-width: 2px 2px 0 0;
|
|
95
|
-
border-style: solid;
|
|
96
|
-
border-color: var(--y-switch__color) transparent;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
&:after {
|
|
100
|
-
content: '';
|
|
101
|
-
position: absolute;
|
|
102
|
-
left: 0;
|
|
103
|
-
top: 0;
|
|
104
|
-
right: 0;
|
|
105
|
-
bottom: 0;
|
|
106
|
-
background: linear-gradient(0deg, transparent 60%, rgba(var(--y-switch__color), 0.4));
|
|
107
|
-
filter: blur(4px);
|
|
108
|
-
animation: spinner-blur 3s infinite;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
&--active {
|
|
113
|
-
.y-switch__track {
|
|
114
|
-
background-color: var(--y-switch__color);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.y-switch__thumb {
|
|
118
|
-
left: calc(100% - 1.1em - 0.24em);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
&--active:not(&--loading):active &__thumb {
|
|
123
|
-
left: 1.8em;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
&--focused {
|
|
127
|
-
.y-switch__thumb:before {
|
|
128
|
-
content: '';
|
|
129
|
-
position: absolute;
|
|
130
|
-
top: 2px;
|
|
131
|
-
bottom: 2px;
|
|
132
|
-
left: 2px;
|
|
133
|
-
right: 2px;
|
|
134
|
-
border-radius: 50%;
|
|
135
|
-
background-color: rgba(var(--y-switch__color), 0.4);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
&--stick-out {
|
|
140
|
-
.y-switch__thumb {
|
|
141
|
-
box-shadow: 2px 2px 5px -2px rgba(0, 0, 0, 0.54), 1px 1px 4px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.08);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.y-switch__track {
|
|
145
|
-
width: 80%;
|
|
146
|
-
height: 74%;
|
|
147
|
-
top: 50%;
|
|
148
|
-
left: 50%;
|
|
149
|
-
transform: translate(-50%, -50%);
|
|
150
|
-
box-shadow: inset 0 0 4px -1px rgba(0, 0, 0, 0.34);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
&--disabled {
|
|
155
|
-
opacity: 0.8;
|
|
156
|
-
filter: brightness(0.88);
|
|
157
|
-
|
|
158
|
-
.y-switch__thumb {
|
|
159
|
-
opacity: 0.4;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
&--disabled &__slot,
|
|
163
|
-
&--disabled &__input input {
|
|
164
|
-
cursor: default;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
&__state {
|
|
168
|
-
position: relative;
|
|
169
|
-
width: 100%;
|
|
170
|
-
height: 100%;
|
|
171
|
-
contain: content;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
&__state-label {
|
|
175
|
-
font-size: 12px;
|
|
176
|
-
color: #ffffff;
|
|
177
|
-
position: absolute;
|
|
178
|
-
height: 100%;
|
|
179
|
-
display: flex;
|
|
180
|
-
align-items: center;
|
|
181
|
-
transition: transform 180ms cubic-bezier(0.16, 0.85, 0.36, 0.96);
|
|
182
|
-
|
|
183
|
-
&--on {
|
|
184
|
-
left: -40px;
|
|
185
|
-
}
|
|
186
|
-
&--off {
|
|
187
|
-
right: 10px;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
&--active &__state-label {
|
|
192
|
-
transform: translateX(50px);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
&--stick-out &__state-label--off {
|
|
196
|
-
right: 7px;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
1
|
+
@use '../../styles/palette';
|
|
2
|
+
@use '../../styles/variables';
|
|
3
|
+
|
|
4
|
+
.y-switch {
|
|
5
|
+
--y-switch__color: var(--y-theme-primary);
|
|
6
|
+
font-size: 1rem;
|
|
7
|
+
|
|
8
|
+
&__slot {
|
|
9
|
+
display: flex;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
align-items: center;
|
|
12
|
+
color: inherit;
|
|
13
|
+
min-height: inherit;
|
|
14
|
+
position: relative;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&__input {
|
|
18
|
+
width: 3em;
|
|
19
|
+
height: 1.5em;
|
|
20
|
+
position: relative;
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
user-select: none;
|
|
23
|
+
color: inherit;
|
|
24
|
+
flex: 0 0 auto;
|
|
25
|
+
|
|
26
|
+
input[role='switch'] {
|
|
27
|
+
position: absolute;
|
|
28
|
+
opacity: 0;
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 100%;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
user-select: none;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
&:not(&--loading) &__input:active &__thumb {
|
|
36
|
+
width: 1em;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&__track {
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: 100%;
|
|
42
|
+
border-radius: 2em;
|
|
43
|
+
background-color: #e0e0e0;
|
|
44
|
+
position: absolute;
|
|
45
|
+
left: 0;
|
|
46
|
+
top: 0;
|
|
47
|
+
transition: 300ms;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&__thumb {
|
|
51
|
+
width: 1.1em;
|
|
52
|
+
height: 1.1em;
|
|
53
|
+
align-self: center;
|
|
54
|
+
left: 0.185em;
|
|
55
|
+
border-radius: 50%;
|
|
56
|
+
display: flex;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
align-items: center;
|
|
59
|
+
background-color: #fff;
|
|
60
|
+
pointer-events: none;
|
|
61
|
+
position: relative;
|
|
62
|
+
transition: 180ms cubic-bezier(0.78, 0.04, 0.9, 0.18);
|
|
63
|
+
will-change: left, transform;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&__spinner {
|
|
67
|
+
position: relative;
|
|
68
|
+
width: 100%;
|
|
69
|
+
height: 100%;
|
|
70
|
+
border-radius: 50%;
|
|
71
|
+
animation: rotate 2s linear infinite;
|
|
72
|
+
contain: paint;
|
|
73
|
+
|
|
74
|
+
@keyframes spinner-blur {
|
|
75
|
+
0% {
|
|
76
|
+
filter: blur(4px);
|
|
77
|
+
}
|
|
78
|
+
50% {
|
|
79
|
+
filter: blur(1px);
|
|
80
|
+
}
|
|
81
|
+
100% {
|
|
82
|
+
filter: blur(4px);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:before {
|
|
87
|
+
content: '';
|
|
88
|
+
position: absolute;
|
|
89
|
+
top: 2px;
|
|
90
|
+
left: 2px;
|
|
91
|
+
right: 2px;
|
|
92
|
+
bottom: 2px;
|
|
93
|
+
border-radius: 50%;
|
|
94
|
+
border-width: 2px 2px 0 0;
|
|
95
|
+
border-style: solid;
|
|
96
|
+
border-color: var(--y-switch__color) transparent;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&:after {
|
|
100
|
+
content: '';
|
|
101
|
+
position: absolute;
|
|
102
|
+
left: 0;
|
|
103
|
+
top: 0;
|
|
104
|
+
right: 0;
|
|
105
|
+
bottom: 0;
|
|
106
|
+
background: linear-gradient(0deg, transparent 60%, rgba(var(--y-switch__color), 0.4));
|
|
107
|
+
filter: blur(4px);
|
|
108
|
+
animation: spinner-blur 3s infinite;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&--active {
|
|
113
|
+
.y-switch__track {
|
|
114
|
+
background-color: var(--y-switch__color);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.y-switch__thumb {
|
|
118
|
+
left: calc(100% - 1.1em - 0.24em);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&--active:not(&--loading):active &__thumb {
|
|
123
|
+
left: 1.8em;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&--focused {
|
|
127
|
+
.y-switch__thumb:before {
|
|
128
|
+
content: '';
|
|
129
|
+
position: absolute;
|
|
130
|
+
top: 2px;
|
|
131
|
+
bottom: 2px;
|
|
132
|
+
left: 2px;
|
|
133
|
+
right: 2px;
|
|
134
|
+
border-radius: 50%;
|
|
135
|
+
background-color: rgba(var(--y-switch__color), 0.4);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&--stick-out {
|
|
140
|
+
.y-switch__thumb {
|
|
141
|
+
box-shadow: 2px 2px 5px -2px rgba(0, 0, 0, 0.54), 1px 1px 4px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.08);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.y-switch__track {
|
|
145
|
+
width: 80%;
|
|
146
|
+
height: 74%;
|
|
147
|
+
top: 50%;
|
|
148
|
+
left: 50%;
|
|
149
|
+
transform: translate(-50%, -50%);
|
|
150
|
+
box-shadow: inset 0 0 4px -1px rgba(0, 0, 0, 0.34);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&--disabled {
|
|
155
|
+
opacity: 0.8;
|
|
156
|
+
filter: brightness(0.88);
|
|
157
|
+
|
|
158
|
+
.y-switch__thumb {
|
|
159
|
+
opacity: 0.4;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
&--disabled &__slot,
|
|
163
|
+
&--disabled &__input input {
|
|
164
|
+
cursor: default;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&__state {
|
|
168
|
+
position: relative;
|
|
169
|
+
width: 100%;
|
|
170
|
+
height: 100%;
|
|
171
|
+
contain: content;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&__state-label {
|
|
175
|
+
font-size: 12px;
|
|
176
|
+
color: #ffffff;
|
|
177
|
+
position: absolute;
|
|
178
|
+
height: 100%;
|
|
179
|
+
display: flex;
|
|
180
|
+
align-items: center;
|
|
181
|
+
transition: transform 180ms cubic-bezier(0.16, 0.85, 0.36, 0.96);
|
|
182
|
+
|
|
183
|
+
&--on {
|
|
184
|
+
left: -40px;
|
|
185
|
+
}
|
|
186
|
+
&--off {
|
|
187
|
+
right: 10px;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&--active &__state-label {
|
|
192
|
+
transform: translateX(50px);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&--stick-out &__state-label--off {
|
|
196
|
+
right: 7px;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
@@ -1,114 +1,114 @@
|
|
|
1
|
-
$table-cell-padding: 0 16px !default;
|
|
2
|
-
|
|
3
|
-
.y-table {
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
|
|
7
|
-
&--fixed-height > &__container {
|
|
8
|
-
overflow-y: auto;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
&--flex-height {
|
|
12
|
-
//flex-grow: 1;
|
|
13
|
-
min-height: 0;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&--flex-height > &__container {
|
|
17
|
-
flex: 1 1;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&__container > table {
|
|
21
|
-
width: 100%;
|
|
22
|
-
border-spacing: 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&--fixed-head > &__container > table > thead > tr > th {
|
|
26
|
-
position: sticky;
|
|
27
|
-
top: 0;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&--fixed-head.y-table > &__container > table > thead > tr > th {
|
|
31
|
-
z-index: 1;
|
|
32
|
-
background: var(--y-theme-panel, 250, 250, 250);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&__container {
|
|
36
|
-
> table {
|
|
37
|
-
font-size: 0.875rem;
|
|
38
|
-
|
|
39
|
-
> thead,
|
|
40
|
-
> tbody,
|
|
41
|
-
> tfoot {
|
|
42
|
-
> tr {
|
|
43
|
-
> th, > td {
|
|
44
|
-
padding: $table-cell-padding;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
> thead > tr {
|
|
50
|
-
> th {
|
|
51
|
-
height: 56px;
|
|
52
|
-
text-align: left;
|
|
53
|
-
border-bottom: thin solid rgba(var(--y-theme-outline), var(--y-theme-outline-opacity));
|
|
54
|
-
user-select: none;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
> tbody > tr {
|
|
59
|
-
&:not(:last-child) {
|
|
60
|
-
> td {
|
|
61
|
-
border-bottom: thin solid rgba(var(--y-theme-outline), var(--y-theme-outline-opacity));
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
> td {
|
|
65
|
-
height: 54px;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.y-data-table-cell {
|
|
73
|
-
&--align-end {
|
|
74
|
-
text-align: end;
|
|
75
|
-
|
|
76
|
-
.y-data-table-header__content {
|
|
77
|
-
justify-content: flex-end;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.y-data-table-header {
|
|
84
|
-
&__content {
|
|
85
|
-
display: flex;
|
|
86
|
-
align-items: center;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
&__sorting-icon {
|
|
90
|
-
display: inline-flex;
|
|
91
|
-
width: 1em;
|
|
92
|
-
height: 1em;
|
|
93
|
-
margin-left: 4px;
|
|
94
|
-
cursor: pointer;
|
|
95
|
-
|
|
96
|
-
svg {
|
|
97
|
-
width: 1em;
|
|
98
|
-
height: 1em;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
&--disabled {
|
|
102
|
-
opacity: 0.08;
|
|
103
|
-
cursor: default;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.y-data-table-header--select, .y-data-table-data--select {
|
|
109
|
-
> .y-icon-checkbox {
|
|
110
|
-
&:not(&--disabled) {
|
|
111
|
-
cursor: pointer;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
1
|
+
$table-cell-padding: 0 16px !default;
|
|
2
|
+
|
|
3
|
+
.y-table {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
|
|
7
|
+
&--fixed-height > &__container {
|
|
8
|
+
overflow-y: auto;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&--flex-height {
|
|
12
|
+
//flex-grow: 1;
|
|
13
|
+
min-height: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&--flex-height > &__container {
|
|
17
|
+
flex: 1 1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&__container > table {
|
|
21
|
+
width: 100%;
|
|
22
|
+
border-spacing: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&--fixed-head > &__container > table > thead > tr > th {
|
|
26
|
+
position: sticky;
|
|
27
|
+
top: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&--fixed-head.y-table > &__container > table > thead > tr > th {
|
|
31
|
+
z-index: 1;
|
|
32
|
+
background: var(--y-theme-panel, 250, 250, 250);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&__container {
|
|
36
|
+
> table {
|
|
37
|
+
font-size: 0.875rem;
|
|
38
|
+
|
|
39
|
+
> thead,
|
|
40
|
+
> tbody,
|
|
41
|
+
> tfoot {
|
|
42
|
+
> tr {
|
|
43
|
+
> th, > td {
|
|
44
|
+
padding: $table-cell-padding;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
> thead > tr {
|
|
50
|
+
> th {
|
|
51
|
+
height: 56px;
|
|
52
|
+
text-align: left;
|
|
53
|
+
border-bottom: thin solid rgba(var(--y-theme-outline), var(--y-theme-outline-opacity));
|
|
54
|
+
user-select: none;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
> tbody > tr {
|
|
59
|
+
&:not(:last-child) {
|
|
60
|
+
> td {
|
|
61
|
+
border-bottom: thin solid rgba(var(--y-theme-outline), var(--y-theme-outline-opacity));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
> td {
|
|
65
|
+
height: 54px;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.y-data-table-cell {
|
|
73
|
+
&--align-end {
|
|
74
|
+
text-align: end;
|
|
75
|
+
|
|
76
|
+
.y-data-table-header__content {
|
|
77
|
+
justify-content: flex-end;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.y-data-table-header {
|
|
84
|
+
&__content {
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&__sorting-icon {
|
|
90
|
+
display: inline-flex;
|
|
91
|
+
width: 1em;
|
|
92
|
+
height: 1em;
|
|
93
|
+
margin-left: 4px;
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
|
|
96
|
+
svg {
|
|
97
|
+
width: 1em;
|
|
98
|
+
height: 1em;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&--disabled {
|
|
102
|
+
opacity: 0.08;
|
|
103
|
+
cursor: default;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.y-data-table-header--select, .y-data-table-data--select {
|
|
109
|
+
> .y-icon-checkbox {
|
|
110
|
+
&:not(&--disabled) {
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|