yootd 0.0.17 → 0.0.19
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/LICENSE +21 -21
- package/README.md +43 -43
- package/dist/Preview/components/preview/phone.scss +8 -8
- package/dist/anchor/index.scss +23 -23
- package/dist/approval-process/index.scss +95 -95
- package/dist/areas/index.scss +21 -21
- package/dist/areas/types/types.d.ts +39 -39
- package/dist/aside/components/SortableItem.scss +93 -93
- package/dist/aside/index.scss +25 -25
- package/dist/aside/types/types.d.ts +44 -44
- package/dist/badge/index.scss +5 -5
- package/dist/buildings/types/types.d.ts +21 -21
- package/dist/button/index.scss +30 -30
- package/dist/cascader/index.scss +5 -5
- package/dist/courses/types/types.d.ts +18 -18
- package/dist/dictionary/types/types.d.ts +14 -14
- package/dist/drawer-modal/index.scss +39 -39
- package/dist/drawer-modal/types/types.d.ts +3 -3
- package/dist/dropdown/assets/arrow-down.svg +5 -5
- package/dist/empty/index.scss +15 -15
- package/dist/group-title/index.scss +31 -31
- package/dist/image/index.scss +26 -26
- package/dist/input/index.scss +5 -5
- package/dist/modal/index.scss +65 -65
- package/dist/pagination/index.scss +47 -47
- package/dist/school/index.d.ts +2 -1
- package/dist/school/index.js +13 -5
- package/dist/school/index.scss +21 -21
- package/dist/school/types/types.d.ts +1 -0
- package/dist/state/index.scss +89 -89
- package/dist/steps/index.scss +32 -32
- package/dist/student-dropdown/types/types.d.ts +44 -44
- package/dist/table/components/primary-header-row/index.scss +58 -58
- package/dist/table/components/primary-tbody-row/index.scss +5 -5
- package/dist/table/index.module.scss +9 -9
- package/dist/table/index.scss +33 -33
- package/dist/tabs/index.scss +86 -86
- package/dist/tag/index.scss +4 -4
- package/dist/teacher/types/types.d.ts +31 -31
- package/dist/tree/index.scss +25 -25
- package/dist/upload/index.scss +115 -115
- package/dist/user-dropdown/types/types.d.ts +45 -45
- package/dist/video-player/index.scss +310 -310
- package/dist/year-term/index.d.ts +2 -1
- package/dist/year-term/index.js +9 -4
- package/dist/year-term/index.scss +21 -21
- package/dist/year-term/types/types.d.ts +28 -28
- package/dist/zones/index.module.scss +23 -23
- package/dist/zones/types/types.d.ts +26 -26
- package/package.json +1 -1
@@ -1,310 +1,310 @@
|
|
1
|
-
.yot-video-player {
|
2
|
-
display: flex;
|
3
|
-
justify-content: center;
|
4
|
-
align-items: center;
|
5
|
-
|
6
|
-
&-container {
|
7
|
-
width: 100%;
|
8
|
-
height: 100%;
|
9
|
-
position: relative;
|
10
|
-
overflow: hidden;
|
11
|
-
display: flex;
|
12
|
-
justify-content: center;
|
13
|
-
align-items: center;
|
14
|
-
flex-shrink: 0;
|
15
|
-
|
16
|
-
&:hover & {
|
17
|
-
&__progress {
|
18
|
-
visibility: visible;
|
19
|
-
}
|
20
|
-
|
21
|
-
&__controls-bottom-progress__bar {
|
22
|
-
visibility: hidden;
|
23
|
-
}
|
24
|
-
}
|
25
|
-
|
26
|
-
&__video {
|
27
|
-
width: 100%;
|
28
|
-
height: 100%;
|
29
|
-
object-fit: fill;
|
30
|
-
}
|
31
|
-
|
32
|
-
&__controls {
|
33
|
-
position: absolute;
|
34
|
-
left: 0;
|
35
|
-
bottom: 0;
|
36
|
-
width: 100%;
|
37
|
-
height: 55px;
|
38
|
-
display: flex;
|
39
|
-
flex-direction: column;
|
40
|
-
justify-content: flex-end;
|
41
|
-
z-index: 10;
|
42
|
-
}
|
43
|
-
|
44
|
-
&__mask {
|
45
|
-
width: 100%;
|
46
|
-
height: 100px;
|
47
|
-
background-repeat: repeat-x;
|
48
|
-
background-position: bottom;
|
49
|
-
position: absolute;
|
50
|
-
left: 0;
|
51
|
-
bottom: 0;
|
52
|
-
}
|
53
|
-
|
54
|
-
&__progress {
|
55
|
-
height: 16px;
|
56
|
-
padding: 6px 0px;
|
57
|
-
margin: 0px 6px;
|
58
|
-
overflow: hidden;
|
59
|
-
position: relative;
|
60
|
-
box-sizing: border-box;
|
61
|
-
cursor: pointer;
|
62
|
-
visibility: hidden;
|
63
|
-
}
|
64
|
-
|
65
|
-
&__progress-bar {
|
66
|
-
width: 100%;
|
67
|
-
height: 3px;
|
68
|
-
background-color: #e1e1e133;
|
69
|
-
position: absolute;
|
70
|
-
}
|
71
|
-
|
72
|
-
&__controls-content {
|
73
|
-
width: 100%;
|
74
|
-
height: 100%;
|
75
|
-
display: flex;
|
76
|
-
align-items: center;
|
77
|
-
box-sizing: border-box;
|
78
|
-
padding: 0px 6px;
|
79
|
-
user-select: none;
|
80
|
-
position: relative;
|
81
|
-
z-index: 10;
|
82
|
-
}
|
83
|
-
|
84
|
-
&__controls-icon {
|
85
|
-
width: 16px;
|
86
|
-
height: 16px;
|
87
|
-
cursor: pointer;
|
88
|
-
margin-right: 20px;
|
89
|
-
}
|
90
|
-
|
91
|
-
&__controls-text {
|
92
|
-
margin-right: 20px;
|
93
|
-
font-size: 12px;
|
94
|
-
white-space: nowrap;
|
95
|
-
}
|
96
|
-
|
97
|
-
&__controls-speed {
|
98
|
-
margin-left: auto;
|
99
|
-
margin-right: 20px;
|
100
|
-
font-size: 12px;
|
101
|
-
cursor: pointer;
|
102
|
-
white-space: nowrap;
|
103
|
-
position: relative;
|
104
|
-
|
105
|
-
&--disabled {
|
106
|
-
pointer-events: none;
|
107
|
-
color: gray;
|
108
|
-
}
|
109
|
-
}
|
110
|
-
|
111
|
-
&__controls-speed-picker-container {
|
112
|
-
position: absolute;
|
113
|
-
left: 50%;
|
114
|
-
bottom: 24px;
|
115
|
-
width: 70px;
|
116
|
-
margin-left: -35px;
|
117
|
-
border-radius: 4px;
|
118
|
-
}
|
119
|
-
|
120
|
-
&__controls-speeds {
|
121
|
-
height: 36px;
|
122
|
-
display: flex;
|
123
|
-
justify-content: center;
|
124
|
-
align-items: center;
|
125
|
-
color: white;
|
126
|
-
|
127
|
-
&--selected {
|
128
|
-
color: #00aeec;
|
129
|
-
}
|
130
|
-
}
|
131
|
-
|
132
|
-
&__controls-volume {
|
133
|
-
position: relative;
|
134
|
-
margin-right: 20px;
|
135
|
-
display: flex;
|
136
|
-
align-items: center;
|
137
|
-
|
138
|
-
&__icon {
|
139
|
-
width: 16px;
|
140
|
-
height: 16px;
|
141
|
-
cursor: pointer;
|
142
|
-
|
143
|
-
&--disabled {
|
144
|
-
pointer-events: none;
|
145
|
-
}
|
146
|
-
}
|
147
|
-
|
148
|
-
&__slider {
|
149
|
-
position: absolute;
|
150
|
-
left: 50%;
|
151
|
-
bottom: 24px;
|
152
|
-
width: 30px;
|
153
|
-
height: 100px;
|
154
|
-
margin-left: -15px;
|
155
|
-
padding-bottom: 5px;
|
156
|
-
display: flex;
|
157
|
-
flex-direction: column;
|
158
|
-
align-items: center;
|
159
|
-
overflow: hidden;
|
160
|
-
background-color: rgba(0, 0, 0, 0.8);
|
161
|
-
color: white;
|
162
|
-
overflow: hidden;
|
163
|
-
|
164
|
-
&__number {
|
165
|
-
height: 28px;
|
166
|
-
display: flex;
|
167
|
-
justify-content: center;
|
168
|
-
align-items: center;
|
169
|
-
|
170
|
-
&__text {
|
171
|
-
font-size: 12px;
|
172
|
-
}
|
173
|
-
}
|
174
|
-
|
175
|
-
&__progress-bar {
|
176
|
-
display: flex;
|
177
|
-
flex: 1;
|
178
|
-
position: relative;
|
179
|
-
flex-direction: column;
|
180
|
-
align-items: center;
|
181
|
-
padding-bottom: 4px;
|
182
|
-
|
183
|
-
&__line {
|
184
|
-
background-color: white;
|
185
|
-
width: 4px;
|
186
|
-
height: 100%;
|
187
|
-
border-radius: 4px;
|
188
|
-
position: relative;
|
189
|
-
overflow: hidden;
|
190
|
-
|
191
|
-
&__button-1 {
|
192
|
-
position: absolute;
|
193
|
-
width: 4px;
|
194
|
-
height: 100%;
|
195
|
-
background-color: #00aeec;
|
196
|
-
}
|
197
|
-
}
|
198
|
-
|
199
|
-
&__button-2 {
|
200
|
-
position: absolute;
|
201
|
-
width: 10px;
|
202
|
-
height: 10px;
|
203
|
-
border-radius: 50%;
|
204
|
-
background-color: #00aeec;
|
205
|
-
}
|
206
|
-
}
|
207
|
-
}
|
208
|
-
}
|
209
|
-
|
210
|
-
&__controls-capture {
|
211
|
-
position: relative;
|
212
|
-
margin-right: 20px;
|
213
|
-
display: flex;
|
214
|
-
align-items: center;
|
215
|
-
|
216
|
-
svg {
|
217
|
-
width: 16px;
|
218
|
-
height: 16px;
|
219
|
-
cursor: pointer;
|
220
|
-
}
|
221
|
-
}
|
222
|
-
|
223
|
-
&__controls-setting {
|
224
|
-
position: relative;
|
225
|
-
margin-right: 20px;
|
226
|
-
display: flex;
|
227
|
-
align-items: center;
|
228
|
-
|
229
|
-
svg {
|
230
|
-
width: 16px;
|
231
|
-
height: 16px;
|
232
|
-
cursor: pointer;
|
233
|
-
}
|
234
|
-
|
235
|
-
&__panel {
|
236
|
-
background-color: rgba(0, 0, 0, 0.8);
|
237
|
-
width: 96px;
|
238
|
-
left: 50%;
|
239
|
-
margin-left: -48px;
|
240
|
-
margin-bottom: 24px;
|
241
|
-
bottom: 0;
|
242
|
-
position: absolute;
|
243
|
-
font-size: 12px;
|
244
|
-
padding: 0 12px;
|
245
|
-
border-radius: 4px;
|
246
|
-
|
247
|
-
&__item {
|
248
|
-
color: white;
|
249
|
-
width: 100%;
|
250
|
-
height: 40px;
|
251
|
-
display: flex;
|
252
|
-
align-items: center;
|
253
|
-
|
254
|
-
&__checkbox {
|
255
|
-
margin-left: 8px;
|
256
|
-
cursor: pointer;
|
257
|
-
}
|
258
|
-
}
|
259
|
-
}
|
260
|
-
}
|
261
|
-
|
262
|
-
&__controls-full-screen {
|
263
|
-
width: 16px;
|
264
|
-
height: 16px;
|
265
|
-
cursor: pointer;
|
266
|
-
}
|
267
|
-
|
268
|
-
&__controls-bottom-progress {
|
269
|
-
&__bar {
|
270
|
-
position: relative;
|
271
|
-
left: 0px;
|
272
|
-
bottom: 0px;
|
273
|
-
width: 100%;
|
274
|
-
height: 2px;
|
275
|
-
z-index: 10;
|
276
|
-
|
277
|
-
&__item-1 {
|
278
|
-
width: 100%;
|
279
|
-
height: 100%;
|
280
|
-
background-color: #e1e1e133;
|
281
|
-
position: absolute;
|
282
|
-
}
|
283
|
-
|
284
|
-
&__item-2 {
|
285
|
-
position: absolute;
|
286
|
-
height: 100%;
|
287
|
-
background-color: #e1e1e14d;
|
288
|
-
}
|
289
|
-
|
290
|
-
&__item-3 {
|
291
|
-
height: 100%;
|
292
|
-
background-color: #00aeec;
|
293
|
-
position: absolute;
|
294
|
-
}
|
295
|
-
}
|
296
|
-
}
|
297
|
-
|
298
|
-
&__canvas {
|
299
|
-
position: absolute;
|
300
|
-
transform-origin: center;
|
301
|
-
}
|
302
|
-
}
|
303
|
-
|
304
|
-
&--full-screened {
|
305
|
-
transform: rotate(90deg);
|
306
|
-
transform-origin: center;
|
307
|
-
width: 100vh !important;
|
308
|
-
height: 100vw !important;
|
309
|
-
}
|
310
|
-
}
|
1
|
+
.yot-video-player {
|
2
|
+
display: flex;
|
3
|
+
justify-content: center;
|
4
|
+
align-items: center;
|
5
|
+
|
6
|
+
&-container {
|
7
|
+
width: 100%;
|
8
|
+
height: 100%;
|
9
|
+
position: relative;
|
10
|
+
overflow: hidden;
|
11
|
+
display: flex;
|
12
|
+
justify-content: center;
|
13
|
+
align-items: center;
|
14
|
+
flex-shrink: 0;
|
15
|
+
|
16
|
+
&:hover & {
|
17
|
+
&__progress {
|
18
|
+
visibility: visible;
|
19
|
+
}
|
20
|
+
|
21
|
+
&__controls-bottom-progress__bar {
|
22
|
+
visibility: hidden;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
&__video {
|
27
|
+
width: 100%;
|
28
|
+
height: 100%;
|
29
|
+
object-fit: fill;
|
30
|
+
}
|
31
|
+
|
32
|
+
&__controls {
|
33
|
+
position: absolute;
|
34
|
+
left: 0;
|
35
|
+
bottom: 0;
|
36
|
+
width: 100%;
|
37
|
+
height: 55px;
|
38
|
+
display: flex;
|
39
|
+
flex-direction: column;
|
40
|
+
justify-content: flex-end;
|
41
|
+
z-index: 10;
|
42
|
+
}
|
43
|
+
|
44
|
+
&__mask {
|
45
|
+
width: 100%;
|
46
|
+
height: 100px;
|
47
|
+
background-repeat: repeat-x;
|
48
|
+
background-position: bottom;
|
49
|
+
position: absolute;
|
50
|
+
left: 0;
|
51
|
+
bottom: 0;
|
52
|
+
}
|
53
|
+
|
54
|
+
&__progress {
|
55
|
+
height: 16px;
|
56
|
+
padding: 6px 0px;
|
57
|
+
margin: 0px 6px;
|
58
|
+
overflow: hidden;
|
59
|
+
position: relative;
|
60
|
+
box-sizing: border-box;
|
61
|
+
cursor: pointer;
|
62
|
+
visibility: hidden;
|
63
|
+
}
|
64
|
+
|
65
|
+
&__progress-bar {
|
66
|
+
width: 100%;
|
67
|
+
height: 3px;
|
68
|
+
background-color: #e1e1e133;
|
69
|
+
position: absolute;
|
70
|
+
}
|
71
|
+
|
72
|
+
&__controls-content {
|
73
|
+
width: 100%;
|
74
|
+
height: 100%;
|
75
|
+
display: flex;
|
76
|
+
align-items: center;
|
77
|
+
box-sizing: border-box;
|
78
|
+
padding: 0px 6px;
|
79
|
+
user-select: none;
|
80
|
+
position: relative;
|
81
|
+
z-index: 10;
|
82
|
+
}
|
83
|
+
|
84
|
+
&__controls-icon {
|
85
|
+
width: 16px;
|
86
|
+
height: 16px;
|
87
|
+
cursor: pointer;
|
88
|
+
margin-right: 20px;
|
89
|
+
}
|
90
|
+
|
91
|
+
&__controls-text {
|
92
|
+
margin-right: 20px;
|
93
|
+
font-size: 12px;
|
94
|
+
white-space: nowrap;
|
95
|
+
}
|
96
|
+
|
97
|
+
&__controls-speed {
|
98
|
+
margin-left: auto;
|
99
|
+
margin-right: 20px;
|
100
|
+
font-size: 12px;
|
101
|
+
cursor: pointer;
|
102
|
+
white-space: nowrap;
|
103
|
+
position: relative;
|
104
|
+
|
105
|
+
&--disabled {
|
106
|
+
pointer-events: none;
|
107
|
+
color: gray;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
&__controls-speed-picker-container {
|
112
|
+
position: absolute;
|
113
|
+
left: 50%;
|
114
|
+
bottom: 24px;
|
115
|
+
width: 70px;
|
116
|
+
margin-left: -35px;
|
117
|
+
border-radius: 4px;
|
118
|
+
}
|
119
|
+
|
120
|
+
&__controls-speeds {
|
121
|
+
height: 36px;
|
122
|
+
display: flex;
|
123
|
+
justify-content: center;
|
124
|
+
align-items: center;
|
125
|
+
color: white;
|
126
|
+
|
127
|
+
&--selected {
|
128
|
+
color: #00aeec;
|
129
|
+
}
|
130
|
+
}
|
131
|
+
|
132
|
+
&__controls-volume {
|
133
|
+
position: relative;
|
134
|
+
margin-right: 20px;
|
135
|
+
display: flex;
|
136
|
+
align-items: center;
|
137
|
+
|
138
|
+
&__icon {
|
139
|
+
width: 16px;
|
140
|
+
height: 16px;
|
141
|
+
cursor: pointer;
|
142
|
+
|
143
|
+
&--disabled {
|
144
|
+
pointer-events: none;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
|
148
|
+
&__slider {
|
149
|
+
position: absolute;
|
150
|
+
left: 50%;
|
151
|
+
bottom: 24px;
|
152
|
+
width: 30px;
|
153
|
+
height: 100px;
|
154
|
+
margin-left: -15px;
|
155
|
+
padding-bottom: 5px;
|
156
|
+
display: flex;
|
157
|
+
flex-direction: column;
|
158
|
+
align-items: center;
|
159
|
+
overflow: hidden;
|
160
|
+
background-color: rgba(0, 0, 0, 0.8);
|
161
|
+
color: white;
|
162
|
+
overflow: hidden;
|
163
|
+
|
164
|
+
&__number {
|
165
|
+
height: 28px;
|
166
|
+
display: flex;
|
167
|
+
justify-content: center;
|
168
|
+
align-items: center;
|
169
|
+
|
170
|
+
&__text {
|
171
|
+
font-size: 12px;
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
&__progress-bar {
|
176
|
+
display: flex;
|
177
|
+
flex: 1;
|
178
|
+
position: relative;
|
179
|
+
flex-direction: column;
|
180
|
+
align-items: center;
|
181
|
+
padding-bottom: 4px;
|
182
|
+
|
183
|
+
&__line {
|
184
|
+
background-color: white;
|
185
|
+
width: 4px;
|
186
|
+
height: 100%;
|
187
|
+
border-radius: 4px;
|
188
|
+
position: relative;
|
189
|
+
overflow: hidden;
|
190
|
+
|
191
|
+
&__button-1 {
|
192
|
+
position: absolute;
|
193
|
+
width: 4px;
|
194
|
+
height: 100%;
|
195
|
+
background-color: #00aeec;
|
196
|
+
}
|
197
|
+
}
|
198
|
+
|
199
|
+
&__button-2 {
|
200
|
+
position: absolute;
|
201
|
+
width: 10px;
|
202
|
+
height: 10px;
|
203
|
+
border-radius: 50%;
|
204
|
+
background-color: #00aeec;
|
205
|
+
}
|
206
|
+
}
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
&__controls-capture {
|
211
|
+
position: relative;
|
212
|
+
margin-right: 20px;
|
213
|
+
display: flex;
|
214
|
+
align-items: center;
|
215
|
+
|
216
|
+
svg {
|
217
|
+
width: 16px;
|
218
|
+
height: 16px;
|
219
|
+
cursor: pointer;
|
220
|
+
}
|
221
|
+
}
|
222
|
+
|
223
|
+
&__controls-setting {
|
224
|
+
position: relative;
|
225
|
+
margin-right: 20px;
|
226
|
+
display: flex;
|
227
|
+
align-items: center;
|
228
|
+
|
229
|
+
svg {
|
230
|
+
width: 16px;
|
231
|
+
height: 16px;
|
232
|
+
cursor: pointer;
|
233
|
+
}
|
234
|
+
|
235
|
+
&__panel {
|
236
|
+
background-color: rgba(0, 0, 0, 0.8);
|
237
|
+
width: 96px;
|
238
|
+
left: 50%;
|
239
|
+
margin-left: -48px;
|
240
|
+
margin-bottom: 24px;
|
241
|
+
bottom: 0;
|
242
|
+
position: absolute;
|
243
|
+
font-size: 12px;
|
244
|
+
padding: 0 12px;
|
245
|
+
border-radius: 4px;
|
246
|
+
|
247
|
+
&__item {
|
248
|
+
color: white;
|
249
|
+
width: 100%;
|
250
|
+
height: 40px;
|
251
|
+
display: flex;
|
252
|
+
align-items: center;
|
253
|
+
|
254
|
+
&__checkbox {
|
255
|
+
margin-left: 8px;
|
256
|
+
cursor: pointer;
|
257
|
+
}
|
258
|
+
}
|
259
|
+
}
|
260
|
+
}
|
261
|
+
|
262
|
+
&__controls-full-screen {
|
263
|
+
width: 16px;
|
264
|
+
height: 16px;
|
265
|
+
cursor: pointer;
|
266
|
+
}
|
267
|
+
|
268
|
+
&__controls-bottom-progress {
|
269
|
+
&__bar {
|
270
|
+
position: relative;
|
271
|
+
left: 0px;
|
272
|
+
bottom: 0px;
|
273
|
+
width: 100%;
|
274
|
+
height: 2px;
|
275
|
+
z-index: 10;
|
276
|
+
|
277
|
+
&__item-1 {
|
278
|
+
width: 100%;
|
279
|
+
height: 100%;
|
280
|
+
background-color: #e1e1e133;
|
281
|
+
position: absolute;
|
282
|
+
}
|
283
|
+
|
284
|
+
&__item-2 {
|
285
|
+
position: absolute;
|
286
|
+
height: 100%;
|
287
|
+
background-color: #e1e1e14d;
|
288
|
+
}
|
289
|
+
|
290
|
+
&__item-3 {
|
291
|
+
height: 100%;
|
292
|
+
background-color: #00aeec;
|
293
|
+
position: absolute;
|
294
|
+
}
|
295
|
+
}
|
296
|
+
}
|
297
|
+
|
298
|
+
&__canvas {
|
299
|
+
position: absolute;
|
300
|
+
transform-origin: center;
|
301
|
+
}
|
302
|
+
}
|
303
|
+
|
304
|
+
&--full-screened {
|
305
|
+
transform: rotate(90deg);
|
306
|
+
transform-origin: center;
|
307
|
+
width: 100vh !important;
|
308
|
+
height: 100vw !important;
|
309
|
+
}
|
310
|
+
}
|
package/dist/year-term/index.js
CHANGED
@@ -1,9 +1,13 @@
|
|
1
|
+
var _excluded = ["type", "style", "showSearch", "value", "onChange", "allowClear", "placeholder"];
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
1
3
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
2
4
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
3
5
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
4
6
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
5
7
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
6
8
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
9
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
10
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
7
11
|
import { useQuery } from '@tanstack/react-query';
|
8
12
|
import React, { useEffect, useMemo, useState } from 'react';
|
9
13
|
import { Select } from "./..";
|
@@ -20,7 +24,8 @@ export var YearTerm = function YearTerm(_ref) {
|
|
20
24
|
onChange = _ref.onChange,
|
21
25
|
_ref$allowClear = _ref.allowClear,
|
22
26
|
allowClear = _ref$allowClear === void 0 ? true : _ref$allowClear,
|
23
|
-
placeholder = _ref.placeholder
|
27
|
+
placeholder = _ref.placeholder,
|
28
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
24
29
|
var mb = useBem('YearTerm');
|
25
30
|
var request = useRequest();
|
26
31
|
// 选择的学年id
|
@@ -140,7 +145,7 @@ export var YearTerm = function YearTerm(_ref) {
|
|
140
145
|
return /*#__PURE__*/React.createElement("div", {
|
141
146
|
className: isSingle ? '' : "".concat(mb),
|
142
147
|
style: isSingle ? {} : style
|
143
|
-
}, type === 'term' ? null : /*#__PURE__*/React.createElement(Select, {
|
148
|
+
}, type === 'term' ? null : /*#__PURE__*/React.createElement(Select, _extends({
|
144
149
|
value: yearId,
|
145
150
|
allowClear: allowClear,
|
146
151
|
className: "".concat(mb.b('school-select')),
|
@@ -153,7 +158,7 @@ export var YearTerm = function YearTerm(_ref) {
|
|
153
158
|
},
|
154
159
|
options: allYearOptions,
|
155
160
|
onChange: changeFirstSelect
|
156
|
-
}), type === 'year' ? null : /*#__PURE__*/React.createElement(Select, {
|
161
|
+
}, type !== 'yearTerm' ? rest : {})), type === 'year' ? null : /*#__PURE__*/React.createElement(Select, _extends({
|
157
162
|
value: termId,
|
158
163
|
allowClear: allowClear,
|
159
164
|
showSearch: showSearch,
|
@@ -165,5 +170,5 @@ export var YearTerm = function YearTerm(_ref) {
|
|
165
170
|
},
|
166
171
|
options: termOptions,
|
167
172
|
onChange: changeSecondSelect
|
168
|
-
}));
|
173
|
+
}, type !== 'yearTerm' ? rest : {})));
|
169
174
|
};
|