@cuemath/leap 2.8.60-ag2 → 2.8.60-ag3
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/features/chapters/chapters-list/chapter-item/chapter-item-styled.js +5 -4
- package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js.map +1 -1
- package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js +2 -1
- package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js.map +1 -1
- package/dist/features/chapters-v2/comps/node-card/node-card-tags.js +6 -6
- package/dist/features/chapters-v2/comps/node-card/node-card-tags.js.map +1 -1
- package/dist/features/chapters-v2/utils/node-card-utils.js +18 -17
- package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -1
- package/dist/features/homework/card-menu-options.js +44 -20
- package/dist/features/homework/card-menu-options.js.map +1 -1
- package/dist/features/homework/homework-card.js +200 -153
- package/dist/features/homework/homework-card.js.map +1 -1
- package/dist/features/homework/hw-card-list/hw-card-list.js +444 -0
- package/dist/features/homework/hw-card-list/hw-card-list.js.map +1 -0
- package/dist/features/homework/styles.js +30 -23
- package/dist/features/homework/styles.js.map +1 -1
- package/dist/features/milestone/milestone-list-container/api/get-milestone-resources.js +1 -1
- package/dist/features/milestone/milestone-list-container/api/get-milestone-resources.js.map +1 -1
- package/dist/features/milestone/milestone-list-container/api/get-tests-list.js +1 -1
- package/dist/features/milestone/milestone-list-container/api/get-tests-list.js.map +1 -1
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js +10 -0
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js.map +1 -0
- package/dist/index.d.ts +7 -1
- package/dist/index.js +328 -326
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
@@ -0,0 +1,444 @@
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
2
|
+
import { h as m } from "../../../node_modules/humanize-plus/dist/humanize.js";
|
3
|
+
import r from "styled-components";
|
4
|
+
import { getTopicsFromItems as u } from "../../milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js";
|
5
|
+
import p from "../homework-card.js";
|
6
|
+
const h = r.div`
|
7
|
+
display: flex;
|
8
|
+
overflow-x: auto;
|
9
|
+
white-space: nowrap;
|
10
|
+
-webkit-overflow-scrolling: touch;
|
11
|
+
scrollbar-width: thin;
|
12
|
+
padding: 16px 0;
|
13
|
+
|
14
|
+
/* Hide scrollbar for Chrome, Safari and Opera */
|
15
|
+
&::-webkit-scrollbar {
|
16
|
+
height: 6px;
|
17
|
+
}
|
18
|
+
|
19
|
+
/* Handle */
|
20
|
+
&::-webkit-scrollbar-thumb {
|
21
|
+
background: #888;
|
22
|
+
border-radius: 4px;
|
23
|
+
}
|
24
|
+
|
25
|
+
/* Handle on hover */
|
26
|
+
&::-webkit-scrollbar-thumb:hover {
|
27
|
+
background: #555;
|
28
|
+
}
|
29
|
+
`, b = r.div`
|
30
|
+
display: inline-flex;
|
31
|
+
gap: 16px;
|
32
|
+
padding: 0 16px;
|
33
|
+
`, k = ({ userType: t = "STUDENT", ...l }) => /* @__PURE__ */ a(h, { children: /* @__PURE__ */ a(b, { children: v().map((s) => {
|
34
|
+
const {
|
35
|
+
items: i,
|
36
|
+
node_id: n,
|
37
|
+
sheet_time: _,
|
38
|
+
total_questions: e,
|
39
|
+
worksheet_id: o
|
40
|
+
} = s, c = _ && Math.ceil(_ / 60) || 0, d = u(i).join(", "), f = `${typeof e == "number" ? `${e} ${m.pluralize(e, "Question")}, ` : ""}${c} Mins`;
|
41
|
+
return /* @__PURE__ */ a(
|
42
|
+
p,
|
43
|
+
{
|
44
|
+
userType: t,
|
45
|
+
header: d,
|
46
|
+
subHeader: f,
|
47
|
+
nodeData: s,
|
48
|
+
...l
|
49
|
+
},
|
50
|
+
`${o}_${n}`
|
51
|
+
);
|
52
|
+
}) }) }), y = k;
|
53
|
+
function v() {
|
54
|
+
return [
|
55
|
+
{
|
56
|
+
accuracy: null,
|
57
|
+
attempt_location: "ANY",
|
58
|
+
block_id: "",
|
59
|
+
card_header: "TEST",
|
60
|
+
desmos_calculator_enabled: !1,
|
61
|
+
due_date_ts: null,
|
62
|
+
is_lesson_v3_enabled: !1,
|
63
|
+
is_optional: !1,
|
64
|
+
is_timed: !1,
|
65
|
+
is_worksheet_v3: !0,
|
66
|
+
learnosity_activity_ref: "Assessment-Terms-Of-An-Arithmetic-Progression-A01",
|
67
|
+
marked_as_completed: !1,
|
68
|
+
node_id: "af4fd83a-67a3-11eb-afbf-02420a001024",
|
69
|
+
node_type: "ASSESSMENT",
|
70
|
+
permissions: {
|
71
|
+
can_change_attempt_location: !1,
|
72
|
+
can_mark_familiar: !1,
|
73
|
+
can_reattempt: !1,
|
74
|
+
can_reset: !1,
|
75
|
+
can_resume: !1,
|
76
|
+
can_review: !1,
|
77
|
+
can_start: !0,
|
78
|
+
can_teacher_review: !1,
|
79
|
+
can_unassign: !0
|
80
|
+
},
|
81
|
+
sheet_statement: "Start",
|
82
|
+
sheet_time: 2400,
|
83
|
+
state: "NOT_STARTED",
|
84
|
+
title: "n-th term of an Arithmetic Progression",
|
85
|
+
user_node_id: "78957e1a-1acf-11f0-8168-c2b1a02ee487",
|
86
|
+
worksheet_id: "af4f1404-67a3-11eb-afbf-02420a001024",
|
87
|
+
chapter_id: "",
|
88
|
+
complete_status: !1,
|
89
|
+
user_chapter_id: null,
|
90
|
+
image_url: "",
|
91
|
+
image_hue: "YELLOW",
|
92
|
+
total_questions: null
|
93
|
+
},
|
94
|
+
{
|
95
|
+
accuracy: null,
|
96
|
+
attempt_location: "ANY",
|
97
|
+
block_id: "",
|
98
|
+
card_header: "TEST",
|
99
|
+
desmos_calculator_enabled: !1,
|
100
|
+
due_date_ts: 1745418683,
|
101
|
+
is_lesson_v3_enabled: !1,
|
102
|
+
is_optional: !1,
|
103
|
+
is_timed: !1,
|
104
|
+
is_worksheet_v3: null,
|
105
|
+
learnosity_activity_ref: "Assessment-Sum-Of-Terms-Of-An-Arithmetic-Progression-A01",
|
106
|
+
marked_as_completed: !1,
|
107
|
+
node_id: "b12a30ba-67a3-11eb-afbf-02420a001024",
|
108
|
+
node_type: "ASSESSMENT",
|
109
|
+
permissions: {
|
110
|
+
can_change_attempt_location: !1,
|
111
|
+
can_mark_familiar: !1,
|
112
|
+
can_reattempt: !1,
|
113
|
+
can_reset: !1,
|
114
|
+
can_resume: !1,
|
115
|
+
can_review: !1,
|
116
|
+
can_start: !0,
|
117
|
+
can_teacher_review: !1,
|
118
|
+
can_unassign: !0
|
119
|
+
},
|
120
|
+
sheet_statement: "Start",
|
121
|
+
sheet_time: 2400,
|
122
|
+
state: "NOT_STARTED",
|
123
|
+
title: "Sum of n-terms of an AP",
|
124
|
+
user_node_id: "789cc5a8-1acf-11f0-8168-c2b1a02ee487",
|
125
|
+
worksheet_id: "b129c968-67a3-11eb-afbf-02420a001024",
|
126
|
+
chapter_id: "",
|
127
|
+
complete_status: !1,
|
128
|
+
user_chapter_id: null,
|
129
|
+
image_url: "",
|
130
|
+
image_hue: "YELLOW",
|
131
|
+
total_questions: null
|
132
|
+
},
|
133
|
+
{
|
134
|
+
accuracy: null,
|
135
|
+
attempt_location: "ANY",
|
136
|
+
block_id: "",
|
137
|
+
card_header: "LEARN",
|
138
|
+
desmos_calculator_enabled: !1,
|
139
|
+
due_date_ts: 1745418683,
|
140
|
+
is_lesson_v3_enabled: !0,
|
141
|
+
is_optional: !0,
|
142
|
+
is_timed: !1,
|
143
|
+
is_worksheet_v3: null,
|
144
|
+
learnosity_activity_ref: "Expand-Numbers-in-Powers-of-10-W01_A",
|
145
|
+
marked_as_completed: !1,
|
146
|
+
node_id: "d905f101-e17c-437c-b333-ba99ecf5c2da",
|
147
|
+
node_type: "LEARNING",
|
148
|
+
permissions: {
|
149
|
+
can_change_attempt_location: !1,
|
150
|
+
can_mark_familiar: !1,
|
151
|
+
can_reattempt: !1,
|
152
|
+
can_reset: !1,
|
153
|
+
can_resume: !1,
|
154
|
+
can_review: !1,
|
155
|
+
can_start: !0,
|
156
|
+
can_teacher_review: !1,
|
157
|
+
can_unassign: !0
|
158
|
+
},
|
159
|
+
sheet_statement: "Start",
|
160
|
+
sheet_time: 0,
|
161
|
+
state: "NOT_STARTED",
|
162
|
+
title: "Expand Numbers in Powers of 10",
|
163
|
+
user_node_id: "789d9e06-1acf-11f0-8168-c2b1a02ee487",
|
164
|
+
worksheet_id: "1360e0f6-1184-11f0-954d-ea33ccf24623",
|
165
|
+
chapter_id: "",
|
166
|
+
complete_status: !1,
|
167
|
+
user_chapter_id: null,
|
168
|
+
image_url: "",
|
169
|
+
image_hue: "YELLOW",
|
170
|
+
total_questions: null
|
171
|
+
},
|
172
|
+
{
|
173
|
+
accuracy: 100,
|
174
|
+
block_id: "",
|
175
|
+
card_header: "SUBJECTIVE",
|
176
|
+
desmos_calculator_enabled: !1,
|
177
|
+
due_date_ts: 1745418683,
|
178
|
+
is_lesson_v3_enabled: !1,
|
179
|
+
is_optional: !1,
|
180
|
+
is_timed: !1,
|
181
|
+
is_worksheet_v3: !0,
|
182
|
+
learnosity_activity_ref: "RoW-G5-Use-Relative-Pronouns-W02",
|
183
|
+
marked_as_completed: !1,
|
184
|
+
node_id: "ddeb2842-04bc-11f0-bcc6-924e5c300e22",
|
185
|
+
node_type: "SUBJECTIVE",
|
186
|
+
permissions: {
|
187
|
+
can_change_attempt_location: !1,
|
188
|
+
can_mark_familiar: !1,
|
189
|
+
can_reattempt: !1,
|
190
|
+
can_reset: !0,
|
191
|
+
can_resume: !1,
|
192
|
+
can_review: !0,
|
193
|
+
can_start: !1,
|
194
|
+
can_teacher_review: !1,
|
195
|
+
can_unassign: !1
|
196
|
+
},
|
197
|
+
sheet_time: 2400,
|
198
|
+
state: "COMPLETED",
|
199
|
+
title: "subjective test",
|
200
|
+
user_node_id: "789e3e06-1acf-11f0-8168-c2b1a02ee487",
|
201
|
+
worksheet_id: "ddea33e2-04bc-11f0-bcc6-924e5c300e22",
|
202
|
+
attempt_location: "ANY",
|
203
|
+
chapter_id: "",
|
204
|
+
complete_status: !1,
|
205
|
+
sheet_statement: "",
|
206
|
+
user_chapter_id: null,
|
207
|
+
image_url: "",
|
208
|
+
image_hue: "YELLOW",
|
209
|
+
total_questions: null
|
210
|
+
},
|
211
|
+
{
|
212
|
+
accuracy: null,
|
213
|
+
block_id: "",
|
214
|
+
card_header: "PRACTICE",
|
215
|
+
desmos_calculator_enabled: !1,
|
216
|
+
due_date_ts: 1745418683,
|
217
|
+
is_lesson_v3_enabled: !1,
|
218
|
+
is_optional: !1,
|
219
|
+
is_timed: !1,
|
220
|
+
is_worksheet_v3: null,
|
221
|
+
learnosity_activity_ref: "Ratio-Proportion-Unitary-Method-R08",
|
222
|
+
marked_as_completed: !1,
|
223
|
+
node_id: "fed47724-67a5-11eb-afbf-02420a001024",
|
224
|
+
node_type: "PRACTICE",
|
225
|
+
permissions: {
|
226
|
+
can_change_attempt_location: !1,
|
227
|
+
can_mark_familiar: !1,
|
228
|
+
can_reattempt: !1,
|
229
|
+
can_reset: !1,
|
230
|
+
can_resume: !1,
|
231
|
+
can_review: !1,
|
232
|
+
can_start: !0,
|
233
|
+
can_teacher_review: !1,
|
234
|
+
can_unassign: !0
|
235
|
+
},
|
236
|
+
sheet_statement: "Start",
|
237
|
+
sheet_time: 2400,
|
238
|
+
state: "NOT_STARTED",
|
239
|
+
title: "Unit Conversion",
|
240
|
+
user_node_id: "789f6196-1acf-11f0-8168-c2b1a02ee487",
|
241
|
+
worksheet_id: "fed4079e-67a5-11eb-afbf-02420a001024",
|
242
|
+
attempt_location: "ANY",
|
243
|
+
chapter_id: "",
|
244
|
+
complete_status: !1,
|
245
|
+
user_chapter_id: null,
|
246
|
+
image_url: "",
|
247
|
+
image_hue: "YELLOW",
|
248
|
+
total_questions: null
|
249
|
+
}
|
250
|
+
// {
|
251
|
+
// accuracy: null,
|
252
|
+
// attempt_location: 'ANY',
|
253
|
+
// attempt_state: null,
|
254
|
+
// block_id: '',
|
255
|
+
// break_interval: 0,
|
256
|
+
// card_header: 'SUBJECTIVE',
|
257
|
+
// ceremony_completed_on_ts: null,
|
258
|
+
// chapter_id: null,
|
259
|
+
// completed_on_ts: null,
|
260
|
+
// course_type: 'REMEDIAL',
|
261
|
+
// desmos_calculator_enabled: false,
|
262
|
+
// due_date_ts: 1745475763,
|
263
|
+
// generic_node_type: null,
|
264
|
+
// is_core_lesson_node: null,
|
265
|
+
// is_irrelevant: false,
|
266
|
+
// is_lesson_primary_node: null,
|
267
|
+
// is_lesson_v3_enabled: false,
|
268
|
+
// is_optional: true,
|
269
|
+
// is_timed: false,
|
270
|
+
// is_worksheet_v3: null,
|
271
|
+
// learnosity_activity_ref: 'Test_Tech_Two',
|
272
|
+
// lesson_id: null,
|
273
|
+
// marked_as_completed: false,
|
274
|
+
// mini_goal_code: null,
|
275
|
+
// node_group: null,
|
276
|
+
// node_id: '6d5e1068-bd5f-4674-9cb6-7f37e8ababfe',
|
277
|
+
// node_sub_group: null,
|
278
|
+
// node_type: 'SUBJECTIVE',
|
279
|
+
// permissions: {
|
280
|
+
// can_attempt: false,
|
281
|
+
// can_change_attempt_location: false,
|
282
|
+
// can_mark_familiar: false,
|
283
|
+
// can_reattempt: false,
|
284
|
+
// can_reset: false,
|
285
|
+
// can_resume: false,
|
286
|
+
// can_review: false,
|
287
|
+
// can_start: true,
|
288
|
+
// can_teacher_review: false,
|
289
|
+
// can_teacher_score: false,
|
290
|
+
// can_unassign: true,
|
291
|
+
// can_unlock: false,
|
292
|
+
// can_view_solution: false,
|
293
|
+
// is_review_disabled: false,
|
294
|
+
// },
|
295
|
+
// position: 1,
|
296
|
+
// program_id: null,
|
297
|
+
// rewards: [],
|
298
|
+
// scheduled_end_ts: null,
|
299
|
+
// scheduled_start_ts: null,
|
300
|
+
// sheet_statement: 'Start',
|
301
|
+
// sheet_time: 0,
|
302
|
+
// started_on_ts: null,
|
303
|
+
// state: 'NOT_STARTED',
|
304
|
+
// target_accuracy: 0,
|
305
|
+
// timer_type: null,
|
306
|
+
// title: 'Test_Tech_Two',
|
307
|
+
// unlocked_on_ts: 1744870963,
|
308
|
+
// user_attempt_id: null,
|
309
|
+
// user_block_id: null,
|
310
|
+
// user_node_id: '5f5dcdb4-1b54-11f0-8168-c2b1a02ee487',
|
311
|
+
// worksheet_id: '7cfb02dc-0e5d-11f0-be13-ea33ccf24623',
|
312
|
+
// },
|
313
|
+
// {
|
314
|
+
// accuracy: null,
|
315
|
+
// attempt_location: 'ANY',
|
316
|
+
// attempt_state: null,
|
317
|
+
// block_id: '',
|
318
|
+
// break_interval: 0,
|
319
|
+
// card_header: 'LEARN',
|
320
|
+
// ceremony_completed_on_ts: null,
|
321
|
+
// chapter_id: null,
|
322
|
+
// completed_on_ts: null,
|
323
|
+
// course_type: 'REMEDIAL',
|
324
|
+
// desmos_calculator_enabled: false,
|
325
|
+
// due_date_ts: 1746513423,
|
326
|
+
// generic_node_type: null,
|
327
|
+
// is_core_lesson_node: null,
|
328
|
+
// is_irrelevant: false,
|
329
|
+
// is_lesson_primary_node: null,
|
330
|
+
// is_lesson_v3_enabled: true,
|
331
|
+
// is_optional: false,
|
332
|
+
// is_timed: false,
|
333
|
+
// is_worksheet_v3: null,
|
334
|
+
// learnosity_activity_ref: 'Numbers-upto-1000-SG1.W02',
|
335
|
+
// lesson_id: null,
|
336
|
+
// marked_as_completed: false,
|
337
|
+
// mini_goal_code: null,
|
338
|
+
// node_group: null,
|
339
|
+
// node_id: '40a93884-838b-11ee-93db-26923e20df24',
|
340
|
+
// node_sub_group: null,
|
341
|
+
// node_type: 'LEARNING',
|
342
|
+
// permissions: {
|
343
|
+
// can_attempt: false,
|
344
|
+
// can_change_attempt_location: false,
|
345
|
+
// can_mark_familiar: false,
|
346
|
+
// can_reattempt: false,
|
347
|
+
// can_reset: false,
|
348
|
+
// can_resume: false,
|
349
|
+
// can_review: false,
|
350
|
+
// can_start: true,
|
351
|
+
// can_teacher_review: false,
|
352
|
+
// can_teacher_score: false,
|
353
|
+
// can_unassign: true,
|
354
|
+
// can_unlock: false,
|
355
|
+
// can_view_solution: false,
|
356
|
+
// is_review_disabled: false,
|
357
|
+
// },
|
358
|
+
// position: 1,
|
359
|
+
// program_id: null,
|
360
|
+
// rewards: [],
|
361
|
+
// scheduled_end_ts: null,
|
362
|
+
// scheduled_start_ts: null,
|
363
|
+
// sheet_statement: 'Start',
|
364
|
+
// sheet_time: 0,
|
365
|
+
// started_on_ts: null,
|
366
|
+
// state: 'NOT_STARTED',
|
367
|
+
// target_accuracy: 70,
|
368
|
+
// timer_type: null,
|
369
|
+
// title: 'Test Real Numbers EP',
|
370
|
+
// unlocked_on_ts: 1745908623,
|
371
|
+
// user_attempt_id: null,
|
372
|
+
// user_block_id: null,
|
373
|
+
// user_node_id: '5c66ac42-24c4-11f0-a245-265be2cd6ea9',
|
374
|
+
// worksheet_id: '40a856a8-838b-11ee-93db-26923e20df24',
|
375
|
+
// },
|
376
|
+
// {
|
377
|
+
// accuracy: null,
|
378
|
+
// attempt_location: 'ANY',
|
379
|
+
// attempt_state: 'IN_PROGRESS',
|
380
|
+
// block_id: '',
|
381
|
+
// break_interval: 0,
|
382
|
+
// card_header: 'TEST',
|
383
|
+
// ceremony_completed_on_ts: null,
|
384
|
+
// chapter_id: null,
|
385
|
+
// completed_on_ts: null,
|
386
|
+
// course_type: 'REMEDIAL',
|
387
|
+
// desmos_calculator_enabled: false,
|
388
|
+
// due_date_ts: 1747631275,
|
389
|
+
// generic_node_type: null,
|
390
|
+
// is_core_lesson_node: null,
|
391
|
+
// is_irrelevant: false,
|
392
|
+
// is_lesson_primary_node: null,
|
393
|
+
// is_lesson_v3_enabled: false,
|
394
|
+
// is_optional: false,
|
395
|
+
// is_timed: true,
|
396
|
+
// is_worksheet_v3: true,
|
397
|
+
// learnosity_activity_ref: 'Chapter-Assessment-Real-Numbers',
|
398
|
+
// lesson_id: null,
|
399
|
+
// marked_as_completed: false,
|
400
|
+
// mini_goal_code: null,
|
401
|
+
// node_group: null,
|
402
|
+
// node_id: 'd21b58b0-0bac-11f0-ac74-ea33ccf24623',
|
403
|
+
// node_sub_group: null,
|
404
|
+
// node_type: 'ASSESSMENT',
|
405
|
+
// permissions: {
|
406
|
+
// can_attempt: false,
|
407
|
+
// can_change_attempt_location: false,
|
408
|
+
// can_mark_familiar: false,
|
409
|
+
// can_reattempt: false,
|
410
|
+
// can_reset: false,
|
411
|
+
// can_resume: true,
|
412
|
+
// can_review: true,
|
413
|
+
// can_start: false,
|
414
|
+
// can_teacher_review: false,
|
415
|
+
// can_teacher_score: false,
|
416
|
+
// can_unassign: false,
|
417
|
+
// can_unlock: false,
|
418
|
+
// can_view_solution: false,
|
419
|
+
// is_review_disabled: false,
|
420
|
+
// },
|
421
|
+
// position: 1,
|
422
|
+
// program_id: null,
|
423
|
+
// rewards: [],
|
424
|
+
// scheduled_end_ts: null,
|
425
|
+
// scheduled_start_ts: null,
|
426
|
+
// sheet_statement: 'Resume',
|
427
|
+
// sheet_time: 144000,
|
428
|
+
// started_on_ts: 1747026475,
|
429
|
+
// state: 'IN_PROGRESS',
|
430
|
+
// target_accuracy: 0,
|
431
|
+
// timer_type: 'FLEXIBLE',
|
432
|
+
// title: 'Test Subtraction',
|
433
|
+
// unlocked_on_ts: 1747026475,
|
434
|
+
// user_attempt_id: '32720a60-7c4b-443a-9011-57a65768ace2',
|
435
|
+
// user_block_id: null,
|
436
|
+
// user_node_id: 'ab06082c-1ab8-11f0-8168-c2b1a02ee487',
|
437
|
+
// worksheet_id: 'd21a6748-0bac-11f0-ac74-ea33ccf24623',
|
438
|
+
// },
|
439
|
+
];
|
440
|
+
}
|
441
|
+
export {
|
442
|
+
y as default
|
443
|
+
};
|
444
|
+
//# sourceMappingURL=hw-card-list.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hw-card-list.js","sources":["../../../../src/features/homework/hw-card-list/hw-card-list.tsx"],"sourcesContent":["import type { INodeDataProps } from '../../chapters-v2/comps/node-card/node-card-types';\nimport type { TUserTypes } from '../../ui/types';\n\nimport { pluralize } from 'humanize-plus';\nimport React from 'react';\nimport styled from 'styled-components';\n\nimport { getTopicsFromItems } from '../../milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils';\nimport HomeworkCard from '../homework-card';\n\ninterface HWCardListProps {\n userType: TUserTypes;\n}\n\nconst ScrollContainer = styled.div`\n display: flex;\n overflow-x: auto;\n white-space: nowrap;\n -webkit-overflow-scrolling: touch;\n scrollbar-width: thin;\n padding: 16px 0;\n\n /* Hide scrollbar for Chrome, Safari and Opera */\n &::-webkit-scrollbar {\n height: 6px;\n }\n\n /* Handle */\n &::-webkit-scrollbar-thumb {\n background: #888;\n border-radius: 4px;\n }\n\n /* Handle on hover */\n &::-webkit-scrollbar-thumb:hover {\n background: #555;\n }\n`;\n\nconst ScrollContent = styled.div`\n display: inline-flex;\n gap: 16px;\n padding: 0 16px;\n`;\n\nconst HWCardList: React.FC<HWCardListProps> = ({ userType = 'STUDENT', ...sheetCallbacks }) => {\n return (\n <ScrollContainer>\n <ScrollContent>\n {(getData() as INodeDataProps[]).map(sheet => {\n const {\n items,\n node_id: nodeId,\n sheet_time: sheetTime,\n total_questions: totalQuestions,\n worksheet_id: worksheetId,\n } = sheet;\n const totalSheetTime = (sheetTime && Math.ceil(sheetTime / 60)) || 0;\n const topics = getTopicsFromItems(items);\n const testChapterName = topics.join(', ');\n const subHeader = `${\n typeof totalQuestions === 'number'\n ? `${totalQuestions} ${pluralize(totalQuestions, 'Question')}, `\n : ''\n }${totalSheetTime} Mins`;\n\n return (\n <HomeworkCard\n key={`${worksheetId}_${nodeId}`}\n userType={userType}\n header={testChapterName}\n subHeader={subHeader}\n nodeData={sheet}\n {...sheetCallbacks}\n />\n );\n })}\n </ScrollContent>\n </ScrollContainer>\n );\n};\n\nexport default HWCardList;\n\n// Usage example:\n// <HWCardList>\n// <div>Item 1</div>\n// <div>Item 2</div>\n// <div>Item 3</div>\n// </HWCardList>\nfunction getData() {\n const mockData: INodeDataProps[] = [\n {\n accuracy: null,\n attempt_location: 'ANY',\n block_id: '',\n card_header: 'TEST',\n desmos_calculator_enabled: false,\n due_date_ts: null,\n is_lesson_v3_enabled: false,\n is_optional: false,\n is_timed: false,\n is_worksheet_v3: true,\n learnosity_activity_ref: 'Assessment-Terms-Of-An-Arithmetic-Progression-A01',\n marked_as_completed: false,\n node_id: 'af4fd83a-67a3-11eb-afbf-02420a001024',\n node_type: 'ASSESSMENT',\n permissions: {\n can_change_attempt_location: false,\n can_mark_familiar: false,\n can_reattempt: false,\n can_reset: false,\n can_resume: false,\n can_review: false,\n can_start: true,\n can_teacher_review: false,\n can_unassign: true,\n },\n sheet_statement: 'Start',\n sheet_time: 2400,\n state: 'NOT_STARTED',\n title: 'n-th term of an Arithmetic Progression',\n user_node_id: '78957e1a-1acf-11f0-8168-c2b1a02ee487',\n worksheet_id: 'af4f1404-67a3-11eb-afbf-02420a001024',\n chapter_id: '',\n complete_status: false,\n user_chapter_id: null,\n image_url: '',\n image_hue: 'YELLOW',\n total_questions: null,\n },\n {\n accuracy: null,\n attempt_location: 'ANY',\n block_id: '',\n card_header: 'TEST',\n desmos_calculator_enabled: false,\n due_date_ts: 1745418683,\n is_lesson_v3_enabled: false,\n is_optional: false,\n is_timed: false,\n is_worksheet_v3: null,\n learnosity_activity_ref: 'Assessment-Sum-Of-Terms-Of-An-Arithmetic-Progression-A01',\n marked_as_completed: false,\n node_id: 'b12a30ba-67a3-11eb-afbf-02420a001024',\n node_type: 'ASSESSMENT',\n permissions: {\n can_change_attempt_location: false,\n can_mark_familiar: false,\n can_reattempt: false,\n can_reset: false,\n can_resume: false,\n can_review: false,\n can_start: true,\n can_teacher_review: false,\n can_unassign: true,\n },\n sheet_statement: 'Start',\n sheet_time: 2400,\n state: 'NOT_STARTED',\n title: 'Sum of n-terms of an AP',\n user_node_id: '789cc5a8-1acf-11f0-8168-c2b1a02ee487',\n worksheet_id: 'b129c968-67a3-11eb-afbf-02420a001024',\n chapter_id: '',\n complete_status: false,\n user_chapter_id: null,\n image_url: '',\n image_hue: 'YELLOW',\n total_questions: null,\n },\n {\n accuracy: null,\n attempt_location: 'ANY',\n block_id: '',\n card_header: 'LEARN',\n desmos_calculator_enabled: false,\n due_date_ts: 1745418683,\n is_lesson_v3_enabled: true,\n is_optional: true,\n is_timed: false,\n is_worksheet_v3: null,\n learnosity_activity_ref: 'Expand-Numbers-in-Powers-of-10-W01_A',\n marked_as_completed: false,\n node_id: 'd905f101-e17c-437c-b333-ba99ecf5c2da',\n node_type: 'LEARNING',\n permissions: {\n can_change_attempt_location: false,\n can_mark_familiar: false,\n can_reattempt: false,\n can_reset: false,\n can_resume: false,\n can_review: false,\n can_start: true,\n can_teacher_review: false,\n can_unassign: true,\n },\n sheet_statement: 'Start',\n sheet_time: 0,\n state: 'NOT_STARTED',\n title: 'Expand Numbers in Powers of 10',\n user_node_id: '789d9e06-1acf-11f0-8168-c2b1a02ee487',\n worksheet_id: '1360e0f6-1184-11f0-954d-ea33ccf24623',\n chapter_id: '',\n complete_status: false,\n user_chapter_id: null,\n image_url: '',\n image_hue: 'YELLOW',\n total_questions: null,\n },\n {\n accuracy: 100,\n block_id: '',\n card_header: 'SUBJECTIVE',\n desmos_calculator_enabled: false,\n due_date_ts: 1745418683,\n is_lesson_v3_enabled: false,\n is_optional: false,\n is_timed: false,\n is_worksheet_v3: true,\n learnosity_activity_ref: 'RoW-G5-Use-Relative-Pronouns-W02',\n marked_as_completed: false,\n node_id: 'ddeb2842-04bc-11f0-bcc6-924e5c300e22',\n node_type: 'SUBJECTIVE',\n permissions: {\n can_change_attempt_location: false,\n can_mark_familiar: false,\n can_reattempt: false,\n can_reset: true,\n can_resume: false,\n can_review: true,\n can_start: false,\n can_teacher_review: false,\n can_unassign: false,\n },\n sheet_time: 2400,\n state: 'COMPLETED',\n title: 'subjective test',\n user_node_id: '789e3e06-1acf-11f0-8168-c2b1a02ee487',\n worksheet_id: 'ddea33e2-04bc-11f0-bcc6-924e5c300e22',\n attempt_location: 'ANY',\n chapter_id: '',\n complete_status: false,\n sheet_statement: '',\n user_chapter_id: null,\n image_url: '',\n image_hue: 'YELLOW',\n total_questions: null,\n },\n {\n accuracy: null,\n block_id: '',\n card_header: 'PRACTICE',\n desmos_calculator_enabled: false,\n due_date_ts: 1745418683,\n is_lesson_v3_enabled: false,\n is_optional: false,\n is_timed: false,\n is_worksheet_v3: null,\n learnosity_activity_ref: 'Ratio-Proportion-Unitary-Method-R08',\n marked_as_completed: false,\n node_id: 'fed47724-67a5-11eb-afbf-02420a001024',\n node_type: 'PRACTICE',\n permissions: {\n can_change_attempt_location: false,\n can_mark_familiar: false,\n can_reattempt: false,\n can_reset: false,\n can_resume: false,\n can_review: false,\n can_start: true,\n can_teacher_review: false,\n can_unassign: true,\n },\n sheet_statement: 'Start',\n sheet_time: 2400,\n state: 'NOT_STARTED',\n title: 'Unit Conversion',\n user_node_id: '789f6196-1acf-11f0-8168-c2b1a02ee487',\n worksheet_id: 'fed4079e-67a5-11eb-afbf-02420a001024',\n attempt_location: 'ANY',\n chapter_id: '',\n complete_status: false,\n user_chapter_id: null,\n image_url: '',\n image_hue: 'YELLOW',\n total_questions: null,\n },\n // {\n // accuracy: null,\n // attempt_location: 'ANY',\n // attempt_state: null,\n // block_id: '',\n // break_interval: 0,\n // card_header: 'SUBJECTIVE',\n // ceremony_completed_on_ts: null,\n // chapter_id: null,\n // completed_on_ts: null,\n // course_type: 'REMEDIAL',\n // desmos_calculator_enabled: false,\n // due_date_ts: 1745475763,\n // generic_node_type: null,\n // is_core_lesson_node: null,\n // is_irrelevant: false,\n // is_lesson_primary_node: null,\n // is_lesson_v3_enabled: false,\n // is_optional: true,\n // is_timed: false,\n // is_worksheet_v3: null,\n // learnosity_activity_ref: 'Test_Tech_Two',\n // lesson_id: null,\n // marked_as_completed: false,\n // mini_goal_code: null,\n // node_group: null,\n // node_id: '6d5e1068-bd5f-4674-9cb6-7f37e8ababfe',\n // node_sub_group: null,\n // node_type: 'SUBJECTIVE',\n // permissions: {\n // can_attempt: false,\n // can_change_attempt_location: false,\n // can_mark_familiar: false,\n // can_reattempt: false,\n // can_reset: false,\n // can_resume: false,\n // can_review: false,\n // can_start: true,\n // can_teacher_review: false,\n // can_teacher_score: false,\n // can_unassign: true,\n // can_unlock: false,\n // can_view_solution: false,\n // is_review_disabled: false,\n // },\n // position: 1,\n // program_id: null,\n // rewards: [],\n // scheduled_end_ts: null,\n // scheduled_start_ts: null,\n // sheet_statement: 'Start',\n // sheet_time: 0,\n // started_on_ts: null,\n // state: 'NOT_STARTED',\n // target_accuracy: 0,\n // timer_type: null,\n // title: 'Test_Tech_Two',\n // unlocked_on_ts: 1744870963,\n // user_attempt_id: null,\n // user_block_id: null,\n // user_node_id: '5f5dcdb4-1b54-11f0-8168-c2b1a02ee487',\n // worksheet_id: '7cfb02dc-0e5d-11f0-be13-ea33ccf24623',\n // },\n // {\n // accuracy: null,\n // attempt_location: 'ANY',\n // attempt_state: null,\n // block_id: '',\n // break_interval: 0,\n // card_header: 'LEARN',\n // ceremony_completed_on_ts: null,\n // chapter_id: null,\n // completed_on_ts: null,\n // course_type: 'REMEDIAL',\n // desmos_calculator_enabled: false,\n // due_date_ts: 1746513423,\n // generic_node_type: null,\n // is_core_lesson_node: null,\n // is_irrelevant: false,\n // is_lesson_primary_node: null,\n // is_lesson_v3_enabled: true,\n // is_optional: false,\n // is_timed: false,\n // is_worksheet_v3: null,\n // learnosity_activity_ref: 'Numbers-upto-1000-SG1.W02',\n // lesson_id: null,\n // marked_as_completed: false,\n // mini_goal_code: null,\n // node_group: null,\n // node_id: '40a93884-838b-11ee-93db-26923e20df24',\n // node_sub_group: null,\n // node_type: 'LEARNING',\n // permissions: {\n // can_attempt: false,\n // can_change_attempt_location: false,\n // can_mark_familiar: false,\n // can_reattempt: false,\n // can_reset: false,\n // can_resume: false,\n // can_review: false,\n // can_start: true,\n // can_teacher_review: false,\n // can_teacher_score: false,\n // can_unassign: true,\n // can_unlock: false,\n // can_view_solution: false,\n // is_review_disabled: false,\n // },\n // position: 1,\n // program_id: null,\n // rewards: [],\n // scheduled_end_ts: null,\n // scheduled_start_ts: null,\n // sheet_statement: 'Start',\n // sheet_time: 0,\n // started_on_ts: null,\n // state: 'NOT_STARTED',\n // target_accuracy: 70,\n // timer_type: null,\n // title: 'Test Real Numbers EP',\n // unlocked_on_ts: 1745908623,\n // user_attempt_id: null,\n // user_block_id: null,\n // user_node_id: '5c66ac42-24c4-11f0-a245-265be2cd6ea9',\n // worksheet_id: '40a856a8-838b-11ee-93db-26923e20df24',\n // },\n // {\n // accuracy: null,\n // attempt_location: 'ANY',\n // attempt_state: 'IN_PROGRESS',\n // block_id: '',\n // break_interval: 0,\n // card_header: 'TEST',\n // ceremony_completed_on_ts: null,\n // chapter_id: null,\n // completed_on_ts: null,\n // course_type: 'REMEDIAL',\n // desmos_calculator_enabled: false,\n // due_date_ts: 1747631275,\n // generic_node_type: null,\n // is_core_lesson_node: null,\n // is_irrelevant: false,\n // is_lesson_primary_node: null,\n // is_lesson_v3_enabled: false,\n // is_optional: false,\n // is_timed: true,\n // is_worksheet_v3: true,\n // learnosity_activity_ref: 'Chapter-Assessment-Real-Numbers',\n // lesson_id: null,\n // marked_as_completed: false,\n // mini_goal_code: null,\n // node_group: null,\n // node_id: 'd21b58b0-0bac-11f0-ac74-ea33ccf24623',\n // node_sub_group: null,\n // node_type: 'ASSESSMENT',\n // permissions: {\n // can_attempt: false,\n // can_change_attempt_location: false,\n // can_mark_familiar: false,\n // can_reattempt: false,\n // can_reset: false,\n // can_resume: true,\n // can_review: true,\n // can_start: false,\n // can_teacher_review: false,\n // can_teacher_score: false,\n // can_unassign: false,\n // can_unlock: false,\n // can_view_solution: false,\n // is_review_disabled: false,\n // },\n // position: 1,\n // program_id: null,\n // rewards: [],\n // scheduled_end_ts: null,\n // scheduled_start_ts: null,\n // sheet_statement: 'Resume',\n // sheet_time: 144000,\n // started_on_ts: 1747026475,\n // state: 'IN_PROGRESS',\n // target_accuracy: 0,\n // timer_type: 'FLEXIBLE',\n // title: 'Test Subtraction',\n // unlocked_on_ts: 1747026475,\n // user_attempt_id: '32720a60-7c4b-443a-9011-57a65768ace2',\n // user_block_id: null,\n // user_node_id: 'ab06082c-1ab8-11f0-8168-c2b1a02ee487',\n // worksheet_id: 'd21a6748-0bac-11f0-ac74-ea33ccf24623',\n // },\n ];\n\n return mockData;\n}\n"],"names":["ScrollContainer","styled","ScrollContent","HWCardList","userType","sheetCallbacks","jsx","getData","sheet","items","nodeId","sheetTime","totalQuestions","worksheetId","totalSheetTime","testChapterName","getTopicsFromItems","subHeader","pluralize","HomeworkCard","HWCardList$1"],"mappings":";;;;;AAcA,MAAMA,IAAkBC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAyBzBC,IAAgBD,EAAO;AAAA;AAAA;AAAA;AAAA,GAMvBE,IAAwC,CAAC,EAAE,UAAAC,IAAW,WAAW,GAAGC,0BAErEL,GACC,EAAA,UAAA,gBAAAM,EAACJ,KACG,UAAQK,EAAA,EAAuB,IAAI,CAASC,MAAA;AACtC,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,SAASC;AAAA,IACT,YAAYC;AAAA,IACZ,iBAAiBC;AAAA,IACjB,cAAcC;AAAA,EACZ,IAAAL,GACEM,IAAkBH,KAAa,KAAK,KAAKA,IAAY,EAAE,KAAM,GAE7DI,IADSC,EAAmBP,CAAK,EACR,KAAK,IAAI,GAClCQ,IAAY,GAChB,OAAOL,KAAmB,WACtB,GAAGA,CAAc,IAAIM,EAAA,UAAUN,GAAgB,UAAU,CAAC,OAC1D,EACN,GAAGE,CAAc;AAGf,SAAA,gBAAAR;AAAA,IAACa;AAAA,IAAA;AAAA,MAEC,UAAAf;AAAA,MACA,QAAQW;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|
+
import e from "../ui/layout/flex-view.js";
|
4
4
|
import n from "../ui/text/text.js";
|
5
|
-
const l = r(
|
5
|
+
const l = r(e)(({ theme: o }) => `
|
6
6
|
cursor: pointer;
|
7
7
|
width: fit-content;
|
8
8
|
|
@@ -16,9 +16,9 @@ const l = r(t)(({ theme: o }) => `
|
|
16
16
|
-webkit-box-orient: vertical;
|
17
17
|
overflow: hidden;
|
18
18
|
text-overflow: ellipsis;
|
19
|
-
`, u = r(
|
19
|
+
`, u = r(e)(({
|
20
20
|
theme: o,
|
21
|
-
$visible:
|
21
|
+
$visible: t
|
22
22
|
}) => `
|
23
23
|
cursor: pointer;
|
24
24
|
position: absolute;
|
@@ -26,43 +26,43 @@ const l = r(t)(({ theme: o }) => `
|
|
26
26
|
top: calc(100% + 4px);
|
27
27
|
left: 0;
|
28
28
|
transform-origin: top;
|
29
|
-
transform: scaleY(${
|
30
|
-
opacity: ${
|
29
|
+
transform: scaleY(${t ? 1 : 0});
|
30
|
+
opacity: ${t ? 1 : 0};
|
31
31
|
transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
|
32
32
|
|
33
33
|
&:hover {
|
34
34
|
border-radius: 50%;
|
35
35
|
background: ${o.colors.WHITE_5};
|
36
36
|
}
|
37
|
-
`), x = r(
|
37
|
+
`), x = r(e)`
|
38
38
|
border: 1px solid ${({ theme: o }) => o.colors.BLACK_T_15};
|
39
39
|
|
40
40
|
&:hover {
|
41
41
|
border: 1px solid ${({ theme: o }) => o.colors.BLACK};
|
42
42
|
}
|
43
|
-
`, b = r(
|
43
|
+
`, b = r(e)(({ $bgImage: o }) => o ? `
|
44
44
|
background-image: url(${o});
|
45
45
|
background-repeat: no-repeat;
|
46
46
|
background-size: cover;
|
47
47
|
background-position: center;
|
48
48
|
overflow: hidden;
|
49
|
-
` : "overflow: hidden;"), f = r(
|
49
|
+
` : "overflow: hidden;"), f = r(e)`
|
50
50
|
display: flex;
|
51
51
|
align-items: center;
|
52
52
|
justify-content: center;
|
53
|
-
`, w = r(
|
53
|
+
`, w = r(e)`
|
54
54
|
position: absolute;
|
55
55
|
right: -18px;
|
56
56
|
top: -4px;
|
57
|
-
`,
|
58
|
-
const { gutter:
|
57
|
+
`, g = r.img(({ theme: o }) => {
|
58
|
+
const { gutter: t } = o.layout;
|
59
59
|
return `
|
60
60
|
border: 1px solid ${o.colors.BLACK_T_15};
|
61
|
-
width: ${
|
62
|
-
height: ${
|
61
|
+
width: ${t * 4}px;
|
62
|
+
height: ${t * 4}px;
|
63
63
|
border-radius: 50%;
|
64
64
|
`;
|
65
|
-
}),
|
65
|
+
}), h = r(i)`
|
66
66
|
path {
|
67
67
|
stroke: ${({ theme: o }) => o.colors.WHITE};
|
68
68
|
}
|
@@ -72,20 +72,19 @@ const l = r(t)(({ theme: o }) => `
|
|
72
72
|
-webkit-box-orient: vertical;
|
73
73
|
overflow: hidden;
|
74
74
|
text-overflow: ellipsis;
|
75
|
-
`, v = r(
|
75
|
+
`, v = r(e)`
|
76
76
|
box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.4);
|
77
|
-
width: 180px;
|
78
77
|
position: relative;
|
79
78
|
left: 0;
|
80
79
|
top: 0;
|
81
|
-
`, k = r(
|
80
|
+
`, k = r(e)(({
|
82
81
|
theme: o,
|
83
|
-
$disabled:
|
82
|
+
$disabled: t
|
84
83
|
}) => `
|
85
|
-
cursor: ${
|
84
|
+
cursor: ${t ? "not-allowed" : "pointer"};
|
86
85
|
|
87
86
|
&:hover {
|
88
|
-
background: ${
|
87
|
+
background: ${t ? "transparent" : o.colors.BLACK};
|
89
88
|
};
|
90
89
|
|
91
90
|
path {
|
@@ -95,9 +94,16 @@ const l = r(t)(({ theme: o }) => `
|
|
95
94
|
white-space: nowrap;
|
96
95
|
overflow: hidden;
|
97
96
|
text-overflow: ellipsis;
|
97
|
+
`, W = r(e)`
|
98
|
+
position: absolute;
|
99
|
+
z-index: 6;
|
100
|
+
top: calc(100% - 32px);
|
101
|
+
right: 8px;
|
102
|
+
transform-origin: top;
|
103
|
+
transform: scaleY(1);
|
98
104
|
`;
|
99
105
|
export {
|
100
|
-
|
106
|
+
g as BannerImage,
|
101
107
|
w as BannerImageWrapper,
|
102
108
|
x as CardContainer,
|
103
109
|
l as CardKebabMenuWrapper,
|
@@ -107,8 +113,9 @@ export {
|
|
107
113
|
b as CardWrapper,
|
108
114
|
m as HeaderText,
|
109
115
|
f as IconWrapper,
|
116
|
+
W as MenuWrapper,
|
110
117
|
C as OptionText,
|
111
|
-
|
118
|
+
h as StyledMinus2Icon,
|
112
119
|
d as SubHeaderText
|
113
120
|
};
|
114
121
|
//# sourceMappingURL=styles.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../src/features/homework/styles.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport Minus2Icon from '../../assets/line-icons/icons/minus2';\nimport FlexView from '../ui/layout/flex-view';\nimport Text from '../ui/text/text';\n\ninterface ICardWrapperProps {\n $bgImage: string;\n}\ninterface ICardOptionsMenuWrapperProps {\n $visible: boolean;\n}\n\nexport const CardKebabMenuWrapper = styled(FlexView)(({ theme }) => {\n return `\n cursor: pointer;\n width: fit-content;\n \n &:hover {\n border-radius: 50%;\n background: ${theme.colors.WHITE_5}; \n }\n `;\n});\n\nexport const SubHeaderText = styled(Text)`\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nexport const CardMenuOptionsWrapper = styled(FlexView)<ICardOptionsMenuWrapperProps>(({\n theme,\n $visible,\n}) => {\n return `\n cursor: pointer;\n position: absolute;\n z-index: 6;\n top: calc(100% + 4px);\n left: 0;\n transform-origin: top;\n transform: scaleY(${$visible ? 1 : 0});\n opacity: ${$visible ? 1 : 0};\n transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;\n \n &:hover {\n border-radius: 50%;\n background: ${theme.colors.WHITE_5}; \n }\n `;\n});\n\nexport const CardContainer = styled(FlexView)`\n border: 1px solid ${({ theme }) => theme.colors.BLACK_T_15};\n\n &:hover {\n border: 1px solid ${({ theme }) => theme.colors.BLACK};\n }\n`;\n\nexport const CardWrapper = styled(FlexView)<ICardWrapperProps>(({ $bgImage }) => {\n if ($bgImage) {\n return `\n background-image: url(${$bgImage});\n background-repeat: no-repeat;\n background-size: cover;\n background-position: center;\n overflow: hidden;\n `;\n }\n\n return 'overflow: hidden;';\n});\n\nexport const IconWrapper = styled(FlexView)`\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\nexport const BannerImageWrapper = styled(FlexView)`\n position: absolute;\n right: -18px;\n top: -4px;\n`;\n\nexport const BannerImage = styled.img(({ theme }) => {\n const { gutter } = theme.layout;\n\n return `\n border: 1px solid ${theme.colors.BLACK_T_15};\n width: ${gutter * 4}px;\n height: ${gutter * 4}px;\n border-radius: 50%;\n `;\n});\n\nexport const StyledMinus2Icon = styled(Minus2Icon)`\n path {\n stroke: ${({ theme }) => theme.colors.WHITE};\n }\n`;\n\nexport const HeaderText = styled(Text)`\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nexport interface ICardOptionWrapperProps {\n $disabled?: boolean;\n}\n\nexport const CardOptions = styled(FlexView)`\n box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.4);\n
|
1
|
+
{"version":3,"file":"styles.js","sources":["../../../src/features/homework/styles.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport Minus2Icon from '../../assets/line-icons/icons/minus2';\nimport FlexView from '../ui/layout/flex-view';\nimport Text from '../ui/text/text';\n\ninterface ICardWrapperProps {\n $bgImage: string;\n}\ninterface ICardOptionsMenuWrapperProps {\n $visible: boolean;\n}\n\nexport const CardKebabMenuWrapper = styled(FlexView)(({ theme }) => {\n return `\n cursor: pointer;\n width: fit-content;\n \n &:hover {\n border-radius: 50%;\n background: ${theme.colors.WHITE_5}; \n }\n `;\n});\n\nexport const SubHeaderText = styled(Text)`\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nexport const CardMenuOptionsWrapper = styled(FlexView)<ICardOptionsMenuWrapperProps>(({\n theme,\n $visible,\n}) => {\n return `\n cursor: pointer;\n position: absolute;\n z-index: 6;\n top: calc(100% + 4px);\n left: 0;\n transform-origin: top;\n transform: scaleY(${$visible ? 1 : 0});\n opacity: ${$visible ? 1 : 0};\n transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;\n \n &:hover {\n border-radius: 50%;\n background: ${theme.colors.WHITE_5}; \n }\n `;\n});\n\nexport const CardContainer = styled(FlexView)`\n border: 1px solid ${({ theme }) => theme.colors.BLACK_T_15};\n\n &:hover {\n border: 1px solid ${({ theme }) => theme.colors.BLACK};\n }\n`;\n\nexport const CardWrapper = styled(FlexView)<ICardWrapperProps>(({ $bgImage }) => {\n if ($bgImage) {\n return `\n background-image: url(${$bgImage});\n background-repeat: no-repeat;\n background-size: cover;\n background-position: center;\n overflow: hidden;\n `;\n }\n\n return 'overflow: hidden;';\n});\n\nexport const IconWrapper = styled(FlexView)`\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\nexport const BannerImageWrapper = styled(FlexView)`\n position: absolute;\n right: -18px;\n top: -4px;\n`;\n\nexport const BannerImage = styled.img(({ theme }) => {\n const { gutter } = theme.layout;\n\n return `\n border: 1px solid ${theme.colors.BLACK_T_15};\n width: ${gutter * 4}px;\n height: ${gutter * 4}px;\n border-radius: 50%;\n `;\n});\n\nexport const StyledMinus2Icon = styled(Minus2Icon)`\n path {\n stroke: ${({ theme }) => theme.colors.WHITE};\n }\n`;\n\nexport const HeaderText = styled(Text)`\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nexport interface ICardOptionWrapperProps {\n $disabled?: boolean;\n}\n\nexport const CardOptions = styled(FlexView)`\n box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.4);\n position: relative;\n left: 0;\n top: 0;\n`;\n\nexport const CardOptionWrapper = styled(FlexView)<ICardOptionWrapperProps>(({\n theme,\n $disabled,\n}) => {\n return `\n cursor: ${$disabled ? 'not-allowed' : 'pointer'};\n \n &:hover {\n background: ${$disabled ? 'transparent' : theme.colors.BLACK};\n };\n \n path {\n fill: ${theme.colors.WHITE_1};\n }\n `;\n});\n\nexport const OptionText = styled(Text)`\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nexport const MenuWrapper = styled(FlexView)`\n position: absolute;\n z-index: 6;\n top: calc(100% - 32px);\n right: 8px;\n transform-origin: top;\n transform: scaleY(1);\n`;\n"],"names":["CardKebabMenuWrapper","styled","FlexView","theme","SubHeaderText","Text","CardMenuOptionsWrapper","$visible","CardContainer","CardWrapper","$bgImage","IconWrapper","BannerImageWrapper","BannerImage","gutter","StyledMinus2Icon","Minus2Icon","HeaderText","CardOptions","CardOptionWrapper","$disabled","OptionText","MenuWrapper"],"mappings":";;;;AAaO,MAAMA,IAAuBC,EAAOC,CAAQ,EAAE,CAAC,EAAE,OAAAC,QAC/C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAMWA,EAAM,OAAO,OAAO;AAAA;AAAA,GAGvC,GAEYC,IAAgBH,EAAOI,CAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQ3BC,IAAyBL,EAAOC,CAAQ,EAAgC,CAAC;AAAA,EACpF,OAAAC;AAAA,EACA,UAAAI;AACF,MACS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAOeA,IAAW,IAAI,CAAC;AAAA,eACzBA,IAAW,IAAI,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,oBAKXJ,EAAM,OAAO,OAAO;AAAA;AAAA,GAGvC,GAEYK,IAAgBP,EAAOC,CAAQ;AAAA,sBACtB,CAAC,EAAE,OAAAC,EAAA,MAAYA,E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import { createGetAPI as t } from "@cuemath/rest-api";
|
2
|
-
import {
|
2
|
+
import { BASE_URL_V3_1 as o } from "../../../../constants/api.js";
|
3
3
|
const { useGet: n, invalidate: a } = t({
|
4
4
|
getURL: (e, r, { studentId: s }) => `${o}/users/${s}/user-milestone/${e}/resources`
|
5
5
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-milestone-resources.js","sources":["../../../../../src/features/milestone/milestone-list-container/api/get-milestone-resources.ts"],"sourcesContent":["import type { INodeDataProps } from '../../../chapters-v2/comps/node-card/node-card-types';\n\nimport { createGetAPI } from '@cuemath/rest-api';\n\nimport {
|
1
|
+
{"version":3,"file":"get-milestone-resources.js","sources":["../../../../../src/features/milestone/milestone-list-container/api/get-milestone-resources.ts"],"sourcesContent":["import type { INodeDataProps } from '../../../chapters-v2/comps/node-card/node-card-types';\n\nimport { createGetAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V3_1 } from '../../../../constants/api';\n\ninterface IGetMilestoneResourcesAPIMetaData {\n studentId: string;\n}\n\nconst { useGet: useGetMilestoneResources, invalidate: invalidateMilestoneResources } = createGetAPI<\n INodeDataProps[],\n void,\n IGetMilestoneResourcesAPIMetaData\n>({\n getURL: (userMilestoneId, _, { studentId }) =>\n `${BASE_URL_V3_1}/users/${studentId}/user-milestone/${userMilestoneId}/resources`,\n});\n\nexport { useGetMilestoneResources, invalidateMilestoneResources };\n"],"names":["useGetMilestoneResources","invalidateMilestoneResources","createGetAPI","userMilestoneId","_","studentId","BASE_URL_V3_1"],"mappings":";;AAUA,MAAM,EAAE,QAAQA,GAA0B,YAAYC,EAAA,IAAiCC,EAIrF;AAAA,EACA,QAAQ,CAACC,GAAiBC,GAAG,EAAE,WAAAC,EAAA,MAC7B,GAAGC,CAAa,UAAUD,CAAS,mBAAmBF,CAAe;AACzE,CAAC;"}
|