@local-civics/mgmt-ui 0.1.197 → 0.1.199
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/index.d.ts +26 -2
- package/dist/index.js +375 -253
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +376 -255
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34,30 +34,30 @@ function _interopNamespaceDefault(e) {
|
|
|
34
34
|
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
35
35
|
var papa__namespace = /*#__PURE__*/_interopNamespaceDefault(papa);
|
|
36
36
|
|
|
37
|
-
var __defProp$
|
|
38
|
-
var __getOwnPropSymbols$
|
|
39
|
-
var __hasOwnProp$
|
|
40
|
-
var __propIsEnum$
|
|
41
|
-
var __defNormalProp$
|
|
42
|
-
var __spreadValues$
|
|
37
|
+
var __defProp$f = Object.defineProperty;
|
|
38
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
39
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
40
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
41
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
42
|
+
var __spreadValues$f = (a, b) => {
|
|
43
43
|
for (var prop in b || (b = {}))
|
|
44
|
-
if (__hasOwnProp$
|
|
45
|
-
__defNormalProp$
|
|
46
|
-
if (__getOwnPropSymbols$
|
|
47
|
-
for (var prop of __getOwnPropSymbols$
|
|
48
|
-
if (__propIsEnum$
|
|
49
|
-
__defNormalProp$
|
|
44
|
+
if (__hasOwnProp$f.call(b, prop))
|
|
45
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
46
|
+
if (__getOwnPropSymbols$f)
|
|
47
|
+
for (var prop of __getOwnPropSymbols$f(b)) {
|
|
48
|
+
if (__propIsEnum$f.call(b, prop))
|
|
49
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
50
50
|
}
|
|
51
51
|
return a;
|
|
52
52
|
};
|
|
53
53
|
var __objRest$2 = (source, exclude) => {
|
|
54
54
|
var target = {};
|
|
55
55
|
for (var prop in source)
|
|
56
|
-
if (__hasOwnProp$
|
|
56
|
+
if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
57
57
|
target[prop] = source[prop];
|
|
58
|
-
if (source != null && __getOwnPropSymbols$
|
|
59
|
-
for (var prop of __getOwnPropSymbols$
|
|
60
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
58
|
+
if (source != null && __getOwnPropSymbols$f)
|
|
59
|
+
for (var prop of __getOwnPropSymbols$f(source)) {
|
|
60
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
|
|
61
61
|
target[prop] = source[prop];
|
|
62
62
|
}
|
|
63
63
|
return target;
|
|
@@ -74,7 +74,7 @@ const useStyles$v = core.createStyles((theme) => ({
|
|
|
74
74
|
function UserButton(_a) {
|
|
75
75
|
var _b = _a, { image, name, email, icon } = _b, others = __objRest$2(_b, ["image", "name", "email", "icon"]);
|
|
76
76
|
const { classes } = useStyles$v();
|
|
77
|
-
return /* @__PURE__ */ React__namespace.createElement(core.Group, __spreadValues$
|
|
77
|
+
return /* @__PURE__ */ React__namespace.createElement(core.Group, __spreadValues$f({ className: classes.user }, others), /* @__PURE__ */ React__namespace.createElement(core.Avatar, { src: image, radius: "xl" }), /* @__PURE__ */ React__namespace.createElement("div", { style: { flex: 1 } }, /* @__PURE__ */ React__namespace.createElement(core.Text, { size: "sm", weight: 500 }, name), /* @__PURE__ */ React__namespace.createElement(core.Text, { color: "dimmed", size: "xs" }, email)));
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
const compact = (num) => {
|
|
@@ -182,25 +182,25 @@ function LinksGroup({ icon: Icon, href, label, initiallyOpened, links, active, n
|
|
|
182
182
|
), hasLinks ? /* @__PURE__ */ React__namespace.createElement(core.Collapse, { in: opened }, items) : null);
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
var __defProp$
|
|
186
|
-
var __defProps$
|
|
187
|
-
var __getOwnPropDescs$
|
|
188
|
-
var __getOwnPropSymbols$
|
|
189
|
-
var __hasOwnProp$
|
|
190
|
-
var __propIsEnum$
|
|
191
|
-
var __defNormalProp$
|
|
192
|
-
var __spreadValues$
|
|
185
|
+
var __defProp$e = Object.defineProperty;
|
|
186
|
+
var __defProps$a = Object.defineProperties;
|
|
187
|
+
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
188
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
189
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
190
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
191
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
192
|
+
var __spreadValues$e = (a, b) => {
|
|
193
193
|
for (var prop in b || (b = {}))
|
|
194
|
-
if (__hasOwnProp$
|
|
195
|
-
__defNormalProp$
|
|
196
|
-
if (__getOwnPropSymbols$
|
|
197
|
-
for (var prop of __getOwnPropSymbols$
|
|
198
|
-
if (__propIsEnum$
|
|
199
|
-
__defNormalProp$
|
|
194
|
+
if (__hasOwnProp$e.call(b, prop))
|
|
195
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
196
|
+
if (__getOwnPropSymbols$e)
|
|
197
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
198
|
+
if (__propIsEnum$e.call(b, prop))
|
|
199
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
200
200
|
}
|
|
201
201
|
return a;
|
|
202
202
|
};
|
|
203
|
-
var __spreadProps$
|
|
203
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
|
204
204
|
const useStyles$t = core.createStyles((theme, _params, getRef) => {
|
|
205
205
|
const icon = getRef("icon");
|
|
206
206
|
return {
|
|
@@ -232,7 +232,7 @@ const useStyles$t = core.createStyles((theme, _params, getRef) => {
|
|
|
232
232
|
color: theme.colorScheme === "dark" ? theme.white : theme.black,
|
|
233
233
|
borderBottom: `1px solid ${theme.colorScheme === "dark" ? theme.colors.dark[4] : theme.colors.gray[3]}`
|
|
234
234
|
},
|
|
235
|
-
link: __spreadProps$
|
|
235
|
+
link: __spreadProps$a(__spreadValues$e({}, theme.fn.focusStyles()), {
|
|
236
236
|
display: "flex",
|
|
237
237
|
alignItems: "center",
|
|
238
238
|
textDecoration: "none",
|
|
@@ -315,12 +315,12 @@ function Navbar(props) {
|
|
|
315
315
|
}
|
|
316
316
|
return /* @__PURE__ */ React__namespace.createElement(
|
|
317
317
|
LinksGroup,
|
|
318
|
-
__spreadProps$
|
|
318
|
+
__spreadProps$a(__spreadValues$e(__spreadValues$e({
|
|
319
319
|
key: item.label,
|
|
320
320
|
active: props.active
|
|
321
321
|
}, item), context), {
|
|
322
322
|
links: (item.links || []).map((link) => {
|
|
323
|
-
return __spreadValues$
|
|
323
|
+
return __spreadValues$e(__spreadValues$e({}, link), props.links[`${item.label}/${link.label}`] || { notifications: 0, href: "" });
|
|
324
324
|
})
|
|
325
325
|
})
|
|
326
326
|
);
|
|
@@ -663,28 +663,28 @@ function useSortableData(items, config = { key: "", direction: null }) {
|
|
|
663
663
|
return { items: sortedItems, requestSort, sortConfig };
|
|
664
664
|
}
|
|
665
665
|
|
|
666
|
-
var __defProp$
|
|
667
|
-
var __defProps$
|
|
668
|
-
var __getOwnPropDescs$
|
|
669
|
-
var __getOwnPropSymbols$
|
|
670
|
-
var __hasOwnProp$
|
|
671
|
-
var __propIsEnum$
|
|
672
|
-
var __defNormalProp$
|
|
673
|
-
var __spreadValues$
|
|
666
|
+
var __defProp$d = Object.defineProperty;
|
|
667
|
+
var __defProps$9 = Object.defineProperties;
|
|
668
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
669
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
670
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
671
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
672
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
673
|
+
var __spreadValues$d = (a, b) => {
|
|
674
674
|
for (var prop in b || (b = {}))
|
|
675
|
-
if (__hasOwnProp$
|
|
676
|
-
__defNormalProp$
|
|
677
|
-
if (__getOwnPropSymbols$
|
|
678
|
-
for (var prop of __getOwnPropSymbols$
|
|
679
|
-
if (__propIsEnum$
|
|
680
|
-
__defNormalProp$
|
|
675
|
+
if (__hasOwnProp$d.call(b, prop))
|
|
676
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
677
|
+
if (__getOwnPropSymbols$d)
|
|
678
|
+
for (var prop of __getOwnPropSymbols$d(b)) {
|
|
679
|
+
if (__propIsEnum$d.call(b, prop))
|
|
680
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
681
681
|
}
|
|
682
682
|
return a;
|
|
683
683
|
};
|
|
684
|
-
var __spreadProps$
|
|
684
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
685
685
|
function Table$k(props) {
|
|
686
686
|
const preparedItems = React__namespace.useMemo(() => {
|
|
687
|
-
return props.items.map((item) => __spreadProps$
|
|
687
|
+
return props.items.map((item) => __spreadProps$9(__spreadValues$d({}, item), {
|
|
688
688
|
status: item.isComplete ? 1 : 0
|
|
689
689
|
}));
|
|
690
690
|
}, [props.items]);
|
|
@@ -1135,28 +1135,28 @@ const SplitButton$4 = (props) => {
|
|
|
1135
1135
|
));
|
|
1136
1136
|
};
|
|
1137
1137
|
|
|
1138
|
-
var __defProp$
|
|
1139
|
-
var __defProps$
|
|
1140
|
-
var __getOwnPropDescs$
|
|
1141
|
-
var __getOwnPropSymbols$
|
|
1142
|
-
var __hasOwnProp$
|
|
1143
|
-
var __propIsEnum$
|
|
1144
|
-
var __defNormalProp$
|
|
1145
|
-
var __spreadValues$
|
|
1138
|
+
var __defProp$c = Object.defineProperty;
|
|
1139
|
+
var __defProps$8 = Object.defineProperties;
|
|
1140
|
+
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
1141
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
1142
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
1143
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
1144
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1145
|
+
var __spreadValues$c = (a, b) => {
|
|
1146
1146
|
for (var prop in b || (b = {}))
|
|
1147
|
-
if (__hasOwnProp$
|
|
1148
|
-
__defNormalProp$
|
|
1149
|
-
if (__getOwnPropSymbols$
|
|
1150
|
-
for (var prop of __getOwnPropSymbols$
|
|
1151
|
-
if (__propIsEnum$
|
|
1152
|
-
__defNormalProp$
|
|
1147
|
+
if (__hasOwnProp$c.call(b, prop))
|
|
1148
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
1149
|
+
if (__getOwnPropSymbols$c)
|
|
1150
|
+
for (var prop of __getOwnPropSymbols$c(b)) {
|
|
1151
|
+
if (__propIsEnum$c.call(b, prop))
|
|
1152
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
1153
1153
|
}
|
|
1154
1154
|
return a;
|
|
1155
1155
|
};
|
|
1156
|
-
var __spreadProps$
|
|
1156
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
1157
1157
|
function Table$c(props) {
|
|
1158
1158
|
const preparedItems = React__namespace.useMemo(() => {
|
|
1159
|
-
return props.items.map((item) => __spreadProps$
|
|
1159
|
+
return props.items.map((item) => __spreadProps$8(__spreadValues$c({}, item), {
|
|
1160
1160
|
fullName: item.givenName && item.familyName ? `${item.givenName} ${item.familyName}`.toLowerCase() : item.email.toLowerCase()
|
|
1161
1161
|
}));
|
|
1162
1162
|
}, [props.items]);
|
|
@@ -1253,25 +1253,25 @@ function Table$c(props) {
|
|
|
1253
1253
|
));
|
|
1254
1254
|
}
|
|
1255
1255
|
|
|
1256
|
-
var __defProp$
|
|
1257
|
-
var __defProps$
|
|
1258
|
-
var __getOwnPropDescs$
|
|
1259
|
-
var __getOwnPropSymbols$
|
|
1260
|
-
var __hasOwnProp$
|
|
1261
|
-
var __propIsEnum$
|
|
1262
|
-
var __defNormalProp$
|
|
1263
|
-
var __spreadValues$
|
|
1256
|
+
var __defProp$b = Object.defineProperty;
|
|
1257
|
+
var __defProps$7 = Object.defineProperties;
|
|
1258
|
+
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
1259
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
1260
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
1261
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
1262
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1263
|
+
var __spreadValues$b = (a, b) => {
|
|
1264
1264
|
for (var prop in b || (b = {}))
|
|
1265
|
-
if (__hasOwnProp$
|
|
1266
|
-
__defNormalProp$
|
|
1267
|
-
if (__getOwnPropSymbols$
|
|
1268
|
-
for (var prop of __getOwnPropSymbols$
|
|
1269
|
-
if (__propIsEnum$
|
|
1270
|
-
__defNormalProp$
|
|
1265
|
+
if (__hasOwnProp$b.call(b, prop))
|
|
1266
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
1267
|
+
if (__getOwnPropSymbols$b)
|
|
1268
|
+
for (var prop of __getOwnPropSymbols$b(b)) {
|
|
1269
|
+
if (__propIsEnum$b.call(b, prop))
|
|
1270
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
1271
1271
|
}
|
|
1272
1272
|
return a;
|
|
1273
1273
|
};
|
|
1274
|
-
var __spreadProps$
|
|
1274
|
+
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
1275
1275
|
const useStyles$l = core.createStyles((theme) => ({
|
|
1276
1276
|
title: {
|
|
1277
1277
|
fontSize: 34,
|
|
@@ -1337,27 +1337,27 @@ const Class = (props) => {
|
|
|
1337
1337
|
padding: "xl",
|
|
1338
1338
|
size: "xl"
|
|
1339
1339
|
},
|
|
1340
|
-
/* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: "md" }, /* @__PURE__ */ React__namespace.createElement(DropzoneButton$1, __spreadProps$
|
|
1340
|
+
/* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: "md" }, /* @__PURE__ */ React__namespace.createElement(DropzoneButton$1, __spreadProps$7(__spreadValues$b({}, props), { close: () => setOpened(false) })), /* @__PURE__ */ React__namespace.createElement(core.Divider, { label: "or", labelPosition: "center", my: "md", variant: "dashed" }), /* @__PURE__ */ React__namespace.createElement("form", { onSubmit: form$1.onSubmit(() => {
|
|
1341
1341
|
const values = form$1.values;
|
|
1342
1342
|
form$1.reset();
|
|
1343
1343
|
setOpened(false);
|
|
1344
1344
|
props.onCreateMembers && props.onCreateMembers([values]);
|
|
1345
1345
|
}) }, /* @__PURE__ */ React__namespace.createElement(core.Stack, null, /* @__PURE__ */ React__namespace.createElement(
|
|
1346
1346
|
core.TextInput,
|
|
1347
|
-
__spreadValues$
|
|
1347
|
+
__spreadValues$b({
|
|
1348
1348
|
withAsterisk: true,
|
|
1349
1349
|
label: "Email",
|
|
1350
1350
|
placeholder: "Email"
|
|
1351
1351
|
}, form$1.getInputProps("email"))
|
|
1352
1352
|
), /* @__PURE__ */ React__namespace.createElement(core.Group, { grow: true }, /* @__PURE__ */ React__namespace.createElement(
|
|
1353
1353
|
core.TextInput,
|
|
1354
|
-
__spreadValues$
|
|
1354
|
+
__spreadValues$b({
|
|
1355
1355
|
label: "Given name",
|
|
1356
1356
|
placeholder: "Given name"
|
|
1357
1357
|
}, form$1.getInputProps("givenName"))
|
|
1358
1358
|
), /* @__PURE__ */ React__namespace.createElement(
|
|
1359
1359
|
core.TextInput,
|
|
1360
|
-
__spreadValues$
|
|
1360
|
+
__spreadValues$b({
|
|
1361
1361
|
label: "Family name",
|
|
1362
1362
|
placeholder: "Family name"
|
|
1363
1363
|
}, form$1.getInputProps("familyName"))
|
|
@@ -1518,19 +1518,19 @@ function Table$b(props) {
|
|
|
1518
1518
|
));
|
|
1519
1519
|
}
|
|
1520
1520
|
|
|
1521
|
-
var __defProp$
|
|
1522
|
-
var __getOwnPropSymbols$
|
|
1523
|
-
var __hasOwnProp$
|
|
1524
|
-
var __propIsEnum$
|
|
1525
|
-
var __defNormalProp$
|
|
1526
|
-
var __spreadValues$
|
|
1521
|
+
var __defProp$a = Object.defineProperty;
|
|
1522
|
+
var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
|
|
1523
|
+
var __hasOwnProp$a = Object.prototype.hasOwnProperty;
|
|
1524
|
+
var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
|
|
1525
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1526
|
+
var __spreadValues$a = (a, b) => {
|
|
1527
1527
|
for (var prop in b || (b = {}))
|
|
1528
|
-
if (__hasOwnProp$
|
|
1529
|
-
__defNormalProp$
|
|
1530
|
-
if (__getOwnPropSymbols$
|
|
1531
|
-
for (var prop of __getOwnPropSymbols$
|
|
1532
|
-
if (__propIsEnum$
|
|
1533
|
-
__defNormalProp$
|
|
1528
|
+
if (__hasOwnProp$a.call(b, prop))
|
|
1529
|
+
__defNormalProp$a(a, prop, b[prop]);
|
|
1530
|
+
if (__getOwnPropSymbols$a)
|
|
1531
|
+
for (var prop of __getOwnPropSymbols$a(b)) {
|
|
1532
|
+
if (__propIsEnum$a.call(b, prop))
|
|
1533
|
+
__defNormalProp$a(a, prop, b[prop]);
|
|
1534
1534
|
}
|
|
1535
1535
|
return a;
|
|
1536
1536
|
};
|
|
@@ -1577,14 +1577,14 @@ const Classes = (props) => {
|
|
|
1577
1577
|
props.onCreateClass && props.onCreateClass(values);
|
|
1578
1578
|
}) }, /* @__PURE__ */ React__namespace.createElement(core.Stack, null, /* @__PURE__ */ React__namespace.createElement(
|
|
1579
1579
|
core.TextInput,
|
|
1580
|
-
__spreadValues$
|
|
1580
|
+
__spreadValues$a({
|
|
1581
1581
|
withAsterisk: true,
|
|
1582
1582
|
label: "Name",
|
|
1583
1583
|
placeholder: "Class name"
|
|
1584
1584
|
}, form$1.getInputProps("name"))
|
|
1585
1585
|
), /* @__PURE__ */ React__namespace.createElement(
|
|
1586
1586
|
core.TextInput,
|
|
1587
|
-
__spreadValues$
|
|
1587
|
+
__spreadValues$a({
|
|
1588
1588
|
label: "Description",
|
|
1589
1589
|
placeholder: "A class for my first period English students"
|
|
1590
1590
|
}, form$1.getInputProps("description"))
|
|
@@ -1814,30 +1814,30 @@ function CardGradient(props) {
|
|
|
1814
1814
|
), /* @__PURE__ */ React__namespace.createElement(core.Text, { size: "xl", weight: 500, mt: "md" }, props.title), /* @__PURE__ */ React__namespace.createElement(core.Text, { size: "sm", mt: "sm", color: "dimmed" }, props.description));
|
|
1815
1815
|
}
|
|
1816
1816
|
|
|
1817
|
-
var __defProp$
|
|
1818
|
-
var __getOwnPropSymbols$
|
|
1819
|
-
var __hasOwnProp$
|
|
1820
|
-
var __propIsEnum$
|
|
1821
|
-
var __defNormalProp$
|
|
1822
|
-
var __spreadValues$
|
|
1817
|
+
var __defProp$9 = Object.defineProperty;
|
|
1818
|
+
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
1819
|
+
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
1820
|
+
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
1821
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1822
|
+
var __spreadValues$9 = (a, b) => {
|
|
1823
1823
|
for (var prop in b || (b = {}))
|
|
1824
|
-
if (__hasOwnProp$
|
|
1825
|
-
__defNormalProp$
|
|
1826
|
-
if (__getOwnPropSymbols$
|
|
1827
|
-
for (var prop of __getOwnPropSymbols$
|
|
1828
|
-
if (__propIsEnum$
|
|
1829
|
-
__defNormalProp$
|
|
1824
|
+
if (__hasOwnProp$9.call(b, prop))
|
|
1825
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
1826
|
+
if (__getOwnPropSymbols$9)
|
|
1827
|
+
for (var prop of __getOwnPropSymbols$9(b)) {
|
|
1828
|
+
if (__propIsEnum$9.call(b, prop))
|
|
1829
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
1830
1830
|
}
|
|
1831
1831
|
return a;
|
|
1832
1832
|
};
|
|
1833
1833
|
var __objRest$1 = (source, exclude) => {
|
|
1834
1834
|
var target = {};
|
|
1835
1835
|
for (var prop in source)
|
|
1836
|
-
if (__hasOwnProp$
|
|
1836
|
+
if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1837
1837
|
target[prop] = source[prop];
|
|
1838
|
-
if (source != null && __getOwnPropSymbols$
|
|
1839
|
-
for (var prop of __getOwnPropSymbols$
|
|
1840
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1838
|
+
if (source != null && __getOwnPropSymbols$9)
|
|
1839
|
+
for (var prop of __getOwnPropSymbols$9(source)) {
|
|
1840
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
|
|
1841
1841
|
target[prop] = source[prop];
|
|
1842
1842
|
}
|
|
1843
1843
|
return target;
|
|
@@ -1904,9 +1904,9 @@ const TenantBanner = (_a) => {
|
|
|
1904
1904
|
};
|
|
1905
1905
|
return /* @__PURE__ */ React__namespace.createElement(
|
|
1906
1906
|
core.Card,
|
|
1907
|
-
__spreadValues$
|
|
1907
|
+
__spreadValues$9({
|
|
1908
1908
|
radius: "md",
|
|
1909
|
-
style: __spreadValues$
|
|
1909
|
+
style: __spreadValues$9({ backgroundImage: `url(${image})` }, style),
|
|
1910
1910
|
className: cx(classes.card, className)
|
|
1911
1911
|
}, others),
|
|
1912
1912
|
/* @__PURE__ */ React__namespace.createElement(
|
|
@@ -2079,28 +2079,28 @@ function Stack$3(props) {
|
|
|
2079
2079
|
return /* @__PURE__ */ React__namespace.createElement(core.ScrollArea.Autosize, { maxHeight: 600 }, /* @__PURE__ */ React__namespace.createElement(core.UnstyledButton, { component: reactRouterDom.Link, to: props.href }, /* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: 24, sx: { padding: 20, minWidth: 700 } }, rows)));
|
|
2080
2080
|
}
|
|
2081
2081
|
|
|
2082
|
-
var __defProp$
|
|
2083
|
-
var __defProps$
|
|
2084
|
-
var __getOwnPropDescs$
|
|
2085
|
-
var __getOwnPropSymbols$
|
|
2086
|
-
var __hasOwnProp$
|
|
2087
|
-
var __propIsEnum$
|
|
2088
|
-
var __defNormalProp$
|
|
2089
|
-
var __spreadValues$
|
|
2082
|
+
var __defProp$8 = Object.defineProperty;
|
|
2083
|
+
var __defProps$6 = Object.defineProperties;
|
|
2084
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
2085
|
+
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
2086
|
+
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
2087
|
+
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
2088
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2089
|
+
var __spreadValues$8 = (a, b) => {
|
|
2090
2090
|
for (var prop in b || (b = {}))
|
|
2091
|
-
if (__hasOwnProp$
|
|
2092
|
-
__defNormalProp$
|
|
2093
|
-
if (__getOwnPropSymbols$
|
|
2094
|
-
for (var prop of __getOwnPropSymbols$
|
|
2095
|
-
if (__propIsEnum$
|
|
2096
|
-
__defNormalProp$
|
|
2091
|
+
if (__hasOwnProp$8.call(b, prop))
|
|
2092
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
2093
|
+
if (__getOwnPropSymbols$8)
|
|
2094
|
+
for (var prop of __getOwnPropSymbols$8(b)) {
|
|
2095
|
+
if (__propIsEnum$8.call(b, prop))
|
|
2096
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
2097
2097
|
}
|
|
2098
2098
|
return a;
|
|
2099
2099
|
};
|
|
2100
|
-
var __spreadProps$
|
|
2100
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
2101
2101
|
function Table$6(props) {
|
|
2102
2102
|
const preparedItems = React__namespace.useMemo(() => {
|
|
2103
|
-
return props.items.map((item) => __spreadProps$
|
|
2103
|
+
return props.items.map((item) => __spreadProps$6(__spreadValues$8({}, item), {
|
|
2104
2104
|
status: item.isComplete ? 2 : item.isStarted ? 1 : 0
|
|
2105
2105
|
}));
|
|
2106
2106
|
}, [props.items]);
|
|
@@ -2587,25 +2587,25 @@ function Table$4(props) {
|
|
|
2587
2587
|
return /* @__PURE__ */ React__namespace.createElement(core.ScrollArea, null, /* @__PURE__ */ React__namespace.createElement(core.Table, { verticalSpacing: 20, sx: { minWidth: 700 }, highlightOnHover: true, striped: true }, /* @__PURE__ */ React__namespace.createElement("thead", null, /* @__PURE__ */ React__namespace.createElement("tr", null, /* @__PURE__ */ React__namespace.createElement("th", null, "Name"), /* @__PURE__ */ React__namespace.createElement("th", null, "Role"), /* @__PURE__ */ React__namespace.createElement("th", null, "Account Created?"), /* @__PURE__ */ React__namespace.createElement("th", null, "# of Classes"), /* @__PURE__ */ React__namespace.createElement("th", null, "Last Active"), /* @__PURE__ */ React__namespace.createElement("th", null))), /* @__PURE__ */ React__namespace.createElement("tbody", null, rows)));
|
|
2588
2588
|
}
|
|
2589
2589
|
|
|
2590
|
-
var __defProp$
|
|
2591
|
-
var __defProps$
|
|
2592
|
-
var __getOwnPropDescs$
|
|
2593
|
-
var __getOwnPropSymbols$
|
|
2594
|
-
var __hasOwnProp$
|
|
2595
|
-
var __propIsEnum$
|
|
2596
|
-
var __defNormalProp$
|
|
2597
|
-
var __spreadValues$
|
|
2590
|
+
var __defProp$7 = Object.defineProperty;
|
|
2591
|
+
var __defProps$5 = Object.defineProperties;
|
|
2592
|
+
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
2593
|
+
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
|
2594
|
+
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
|
2595
|
+
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
|
2596
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2597
|
+
var __spreadValues$7 = (a, b) => {
|
|
2598
2598
|
for (var prop in b || (b = {}))
|
|
2599
|
-
if (__hasOwnProp$
|
|
2600
|
-
__defNormalProp$
|
|
2601
|
-
if (__getOwnPropSymbols$
|
|
2602
|
-
for (var prop of __getOwnPropSymbols$
|
|
2603
|
-
if (__propIsEnum$
|
|
2604
|
-
__defNormalProp$
|
|
2599
|
+
if (__hasOwnProp$7.call(b, prop))
|
|
2600
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
2601
|
+
if (__getOwnPropSymbols$7)
|
|
2602
|
+
for (var prop of __getOwnPropSymbols$7(b)) {
|
|
2603
|
+
if (__propIsEnum$7.call(b, prop))
|
|
2604
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
2605
2605
|
}
|
|
2606
2606
|
return a;
|
|
2607
2607
|
};
|
|
2608
|
-
var __spreadProps$
|
|
2608
|
+
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
2609
2609
|
const useStyles$a = core.createStyles((theme) => ({
|
|
2610
2610
|
title: {
|
|
2611
2611
|
fontSize: 34,
|
|
@@ -2667,27 +2667,27 @@ const People = (props) => {
|
|
|
2667
2667
|
padding: "xl",
|
|
2668
2668
|
size: "xl"
|
|
2669
2669
|
},
|
|
2670
|
-
/* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: "md" }, /* @__PURE__ */ React__namespace.createElement(DropzoneButton, __spreadProps$
|
|
2670
|
+
/* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: "md" }, /* @__PURE__ */ React__namespace.createElement(DropzoneButton, __spreadProps$5(__spreadValues$7({}, props), { close: () => setOpened(false) })), /* @__PURE__ */ React__namespace.createElement(core.Divider, { label: "or", labelPosition: "center", my: "md", variant: "dashed" }), /* @__PURE__ */ React__namespace.createElement("form", { onSubmit: form$1.onSubmit(() => {
|
|
2671
2671
|
const values = form$1.values;
|
|
2672
2672
|
form$1.reset();
|
|
2673
2673
|
setOpened(false);
|
|
2674
2674
|
props.onCreateUsers && props.onCreateUsers([values]);
|
|
2675
2675
|
}) }, /* @__PURE__ */ React__namespace.createElement(core.Stack, null, /* @__PURE__ */ React__namespace.createElement(
|
|
2676
2676
|
core.TextInput,
|
|
2677
|
-
__spreadValues$
|
|
2677
|
+
__spreadValues$7({
|
|
2678
2678
|
withAsterisk: true,
|
|
2679
2679
|
label: "Email",
|
|
2680
2680
|
placeholder: "Email"
|
|
2681
2681
|
}, form$1.getInputProps("email"))
|
|
2682
2682
|
), /* @__PURE__ */ React__namespace.createElement(core.Group, { grow: true }, /* @__PURE__ */ React__namespace.createElement(
|
|
2683
2683
|
core.TextInput,
|
|
2684
|
-
__spreadValues$
|
|
2684
|
+
__spreadValues$7({
|
|
2685
2685
|
label: "Given name",
|
|
2686
2686
|
placeholder: "Given name"
|
|
2687
2687
|
}, form$1.getInputProps("givenName"))
|
|
2688
2688
|
), /* @__PURE__ */ React__namespace.createElement(
|
|
2689
2689
|
core.TextInput,
|
|
2690
|
-
__spreadValues$
|
|
2690
|
+
__spreadValues$7({
|
|
2691
2691
|
label: "Family name",
|
|
2692
2692
|
placeholder: "Family name"
|
|
2693
2693
|
}, form$1.getInputProps("familyName"))
|
|
@@ -2873,24 +2873,24 @@ const StartAnonymousLesson = (props) => {
|
|
|
2873
2873
|
))))));
|
|
2874
2874
|
};
|
|
2875
2875
|
|
|
2876
|
-
var __defProp$
|
|
2877
|
-
var __getOwnPropSymbols$
|
|
2878
|
-
var __hasOwnProp$
|
|
2879
|
-
var __propIsEnum$
|
|
2880
|
-
var __defNormalProp$
|
|
2881
|
-
var __spreadValues$
|
|
2876
|
+
var __defProp$6 = Object.defineProperty;
|
|
2877
|
+
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
2878
|
+
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
2879
|
+
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
2880
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2881
|
+
var __spreadValues$6 = (a, b) => {
|
|
2882
2882
|
for (var prop in b || (b = {}))
|
|
2883
|
-
if (__hasOwnProp$
|
|
2884
|
-
__defNormalProp$
|
|
2885
|
-
if (__getOwnPropSymbols$
|
|
2886
|
-
for (var prop of __getOwnPropSymbols$
|
|
2887
|
-
if (__propIsEnum$
|
|
2888
|
-
__defNormalProp$
|
|
2883
|
+
if (__hasOwnProp$6.call(b, prop))
|
|
2884
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
2885
|
+
if (__getOwnPropSymbols$6)
|
|
2886
|
+
for (var prop of __getOwnPropSymbols$6(b)) {
|
|
2887
|
+
if (__propIsEnum$6.call(b, prop))
|
|
2888
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
2889
2889
|
}
|
|
2890
2890
|
return a;
|
|
2891
2891
|
};
|
|
2892
2892
|
const BadgeGrid = (props) => {
|
|
2893
|
-
const badges = props.badges.map((b) => /* @__PURE__ */ React__namespace.createElement(TaskCard, __spreadValues$
|
|
2893
|
+
const badges = props.badges.map((b) => /* @__PURE__ */ React__namespace.createElement(TaskCard, __spreadValues$6({ key: b.title }, b)));
|
|
2894
2894
|
return /* @__PURE__ */ React__namespace.createElement(core.SimpleGrid, { cols: 4, breakpoints: [{ maxWidth: "sm", cols: 1 }, { maxWidth: "md", cols: 3 }] }, badges);
|
|
2895
2895
|
};
|
|
2896
2896
|
function TaskCard(props) {
|
|
@@ -2954,33 +2954,33 @@ const TrialHome = (props) => {
|
|
|
2954
2954
|
)), /* @__PURE__ */ React__namespace.createElement(core.Title, { maw: 500, mb: 20, mt: 20, className: classes.title }, "Based on the tags you selected, check out these lessons to get started with your students!"), /* @__PURE__ */ React__namespace.createElement(BadgeGrid, { onAssign: props.onAssign, badges: props.badges })));
|
|
2955
2955
|
};
|
|
2956
2956
|
|
|
2957
|
-
var __defProp$
|
|
2958
|
-
var __defProps$
|
|
2959
|
-
var __getOwnPropDescs$
|
|
2960
|
-
var __getOwnPropSymbols$
|
|
2961
|
-
var __hasOwnProp$
|
|
2962
|
-
var __propIsEnum$
|
|
2963
|
-
var __defNormalProp$
|
|
2964
|
-
var __spreadValues$
|
|
2957
|
+
var __defProp$5 = Object.defineProperty;
|
|
2958
|
+
var __defProps$4 = Object.defineProperties;
|
|
2959
|
+
var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
|
|
2960
|
+
var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
|
|
2961
|
+
var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
|
|
2962
|
+
var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
|
|
2963
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2964
|
+
var __spreadValues$5 = (a, b) => {
|
|
2965
2965
|
for (var prop in b || (b = {}))
|
|
2966
|
-
if (__hasOwnProp$
|
|
2967
|
-
__defNormalProp$
|
|
2968
|
-
if (__getOwnPropSymbols$
|
|
2969
|
-
for (var prop of __getOwnPropSymbols$
|
|
2970
|
-
if (__propIsEnum$
|
|
2971
|
-
__defNormalProp$
|
|
2966
|
+
if (__hasOwnProp$5.call(b, prop))
|
|
2967
|
+
__defNormalProp$5(a, prop, b[prop]);
|
|
2968
|
+
if (__getOwnPropSymbols$5)
|
|
2969
|
+
for (var prop of __getOwnPropSymbols$5(b)) {
|
|
2970
|
+
if (__propIsEnum$5.call(b, prop))
|
|
2971
|
+
__defNormalProp$5(a, prop, b[prop]);
|
|
2972
2972
|
}
|
|
2973
2973
|
return a;
|
|
2974
2974
|
};
|
|
2975
|
-
var __spreadProps$
|
|
2975
|
+
var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
|
|
2976
2976
|
var __objRest = (source, exclude) => {
|
|
2977
2977
|
var target = {};
|
|
2978
2978
|
for (var prop in source)
|
|
2979
|
-
if (__hasOwnProp$
|
|
2979
|
+
if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2980
2980
|
target[prop] = source[prop];
|
|
2981
|
-
if (source != null && __getOwnPropSymbols$
|
|
2982
|
-
for (var prop of __getOwnPropSymbols$
|
|
2983
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2981
|
+
if (source != null && __getOwnPropSymbols$5)
|
|
2982
|
+
for (var prop of __getOwnPropSymbols$5(source)) {
|
|
2983
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$5.call(source, prop))
|
|
2984
2984
|
target[prop] = source[prop];
|
|
2985
2985
|
}
|
|
2986
2986
|
return target;
|
|
@@ -3030,7 +3030,7 @@ function ImageCheckbox(_a) {
|
|
|
3030
3030
|
const { classes, cx } = useStyles$7({ checked: value });
|
|
3031
3031
|
return /* @__PURE__ */ React__namespace.createElement(
|
|
3032
3032
|
core.UnstyledButton,
|
|
3033
|
-
__spreadProps$
|
|
3033
|
+
__spreadProps$4(__spreadValues$5({}, others), {
|
|
3034
3034
|
onClick: () => handleChange(!value),
|
|
3035
3035
|
className: cx(classes.button, className)
|
|
3036
3036
|
}),
|
|
@@ -3051,7 +3051,7 @@ function ImageCheckbox(_a) {
|
|
|
3051
3051
|
function SelectGrid(props) {
|
|
3052
3052
|
const items = props.items.map((item) => /* @__PURE__ */ React__namespace.createElement(
|
|
3053
3053
|
ImageCheckbox,
|
|
3054
|
-
__spreadProps$
|
|
3054
|
+
__spreadProps$4(__spreadValues$5({}, item), {
|
|
3055
3055
|
key: item.title,
|
|
3056
3056
|
onChange: (checked) => props.onChange(item.title, checked)
|
|
3057
3057
|
})
|
|
@@ -3069,25 +3069,25 @@ function SelectGrid(props) {
|
|
|
3069
3069
|
);
|
|
3070
3070
|
}
|
|
3071
3071
|
|
|
3072
|
-
var __defProp$
|
|
3073
|
-
var __defProps$
|
|
3074
|
-
var __getOwnPropDescs$
|
|
3075
|
-
var __getOwnPropSymbols$
|
|
3076
|
-
var __hasOwnProp$
|
|
3077
|
-
var __propIsEnum$
|
|
3078
|
-
var __defNormalProp$
|
|
3079
|
-
var __spreadValues$
|
|
3072
|
+
var __defProp$4 = Object.defineProperty;
|
|
3073
|
+
var __defProps$3 = Object.defineProperties;
|
|
3074
|
+
var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
|
|
3075
|
+
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
3076
|
+
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
3077
|
+
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|
3078
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3079
|
+
var __spreadValues$4 = (a, b) => {
|
|
3080
3080
|
for (var prop in b || (b = {}))
|
|
3081
|
-
if (__hasOwnProp$
|
|
3082
|
-
__defNormalProp$
|
|
3083
|
-
if (__getOwnPropSymbols$
|
|
3084
|
-
for (var prop of __getOwnPropSymbols$
|
|
3085
|
-
if (__propIsEnum$
|
|
3086
|
-
__defNormalProp$
|
|
3081
|
+
if (__hasOwnProp$4.call(b, prop))
|
|
3082
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
3083
|
+
if (__getOwnPropSymbols$4)
|
|
3084
|
+
for (var prop of __getOwnPropSymbols$4(b)) {
|
|
3085
|
+
if (__propIsEnum$4.call(b, prop))
|
|
3086
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
3087
3087
|
}
|
|
3088
3088
|
return a;
|
|
3089
3089
|
};
|
|
3090
|
-
var __spreadProps$
|
|
3090
|
+
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
3091
3091
|
const useStyles$6 = core.createStyles((theme) => ({
|
|
3092
3092
|
wrapper: {
|
|
3093
3093
|
minHeight: "100%",
|
|
@@ -3197,7 +3197,7 @@ const TrialRegistration = (props) => {
|
|
|
3197
3197
|
label: "School/Organization Name",
|
|
3198
3198
|
placeholder: "What's the name of your school?",
|
|
3199
3199
|
data: props.organizations.map((o) => {
|
|
3200
|
-
return __spreadProps$
|
|
3200
|
+
return __spreadProps$3(__spreadValues$4({}, o), { value: o.displayName });
|
|
3201
3201
|
}),
|
|
3202
3202
|
onItemSubmit: (item) => setOrganization({ organizationId: item.organizationId, displayName: item.displayName }),
|
|
3203
3203
|
onChange: (next) => {
|
|
@@ -3209,7 +3209,7 @@ const TrialRegistration = (props) => {
|
|
|
3209
3209
|
SelectGrid,
|
|
3210
3210
|
{
|
|
3211
3211
|
items: OPTIONS,
|
|
3212
|
-
onChange: (e, checked) => setInterests(__spreadProps$
|
|
3212
|
+
onChange: (e, checked) => setInterests(__spreadProps$3(__spreadValues$4({}, interests), { [e]: checked }))
|
|
3213
3213
|
}
|
|
3214
3214
|
), /* @__PURE__ */ React__namespace.createElement(core.Group, { position: "right", mt: "md" }, /* @__PURE__ */ React__namespace.createElement(
|
|
3215
3215
|
core.Button,
|
|
@@ -3247,25 +3247,25 @@ const AdminProvider = (props) => {
|
|
|
3247
3247
|
);
|
|
3248
3248
|
};
|
|
3249
3249
|
|
|
3250
|
-
var __defProp$
|
|
3251
|
-
var __defProps$
|
|
3252
|
-
var __getOwnPropDescs$
|
|
3253
|
-
var __getOwnPropSymbols$
|
|
3254
|
-
var __hasOwnProp$
|
|
3255
|
-
var __propIsEnum$
|
|
3256
|
-
var __defNormalProp$
|
|
3257
|
-
var __spreadValues$
|
|
3250
|
+
var __defProp$3 = Object.defineProperty;
|
|
3251
|
+
var __defProps$2 = Object.defineProperties;
|
|
3252
|
+
var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
|
|
3253
|
+
var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
|
|
3254
|
+
var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
|
|
3255
|
+
var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
|
|
3256
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3257
|
+
var __spreadValues$3 = (a, b) => {
|
|
3258
3258
|
for (var prop in b || (b = {}))
|
|
3259
|
-
if (__hasOwnProp$
|
|
3260
|
-
__defNormalProp$
|
|
3261
|
-
if (__getOwnPropSymbols$
|
|
3262
|
-
for (var prop of __getOwnPropSymbols$
|
|
3263
|
-
if (__propIsEnum$
|
|
3264
|
-
__defNormalProp$
|
|
3259
|
+
if (__hasOwnProp$3.call(b, prop))
|
|
3260
|
+
__defNormalProp$3(a, prop, b[prop]);
|
|
3261
|
+
if (__getOwnPropSymbols$3)
|
|
3262
|
+
for (var prop of __getOwnPropSymbols$3(b)) {
|
|
3263
|
+
if (__propIsEnum$3.call(b, prop))
|
|
3264
|
+
__defNormalProp$3(a, prop, b[prop]);
|
|
3265
3265
|
}
|
|
3266
3266
|
return a;
|
|
3267
3267
|
};
|
|
3268
|
-
var __spreadProps$
|
|
3268
|
+
var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
|
|
3269
3269
|
const useStyles$5 = core.createStyles((theme, props) => ({
|
|
3270
3270
|
footer: {
|
|
3271
3271
|
paddingTop: theme.spacing.md,
|
|
@@ -3361,7 +3361,7 @@ const App = (props) => {
|
|
|
3361
3361
|
padding: "xs",
|
|
3362
3362
|
navbar: props.navbar && /* @__PURE__ */ React__namespace.createElement(
|
|
3363
3363
|
Navbar,
|
|
3364
|
-
__spreadProps$
|
|
3364
|
+
__spreadProps$2(__spreadValues$3({}, props.navbar.props), {
|
|
3365
3365
|
onSwitchAccounts: account.accounts && account.accounts.length > 1 ? () => account.setChangeModalOpen(true) : void 0
|
|
3366
3366
|
})
|
|
3367
3367
|
),
|
|
@@ -3554,25 +3554,25 @@ function Stack$1(props) {
|
|
|
3554
3554
|
return /* @__PURE__ */ React__namespace.createElement(core.Grid, { grow: true, gutter: "lg", sx: { padding: 20, minWidth: 700 } }, rows);
|
|
3555
3555
|
}
|
|
3556
3556
|
|
|
3557
|
-
var __defProp$
|
|
3558
|
-
var __getOwnPropSymbols$
|
|
3559
|
-
var __hasOwnProp$
|
|
3560
|
-
var __propIsEnum$
|
|
3561
|
-
var __defNormalProp$
|
|
3562
|
-
var __spreadValues$
|
|
3557
|
+
var __defProp$2 = Object.defineProperty;
|
|
3558
|
+
var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
|
|
3559
|
+
var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
|
|
3560
|
+
var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
|
|
3561
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3562
|
+
var __spreadValues$2 = (a, b) => {
|
|
3563
3563
|
for (var prop in b || (b = {}))
|
|
3564
|
-
if (__hasOwnProp$
|
|
3565
|
-
__defNormalProp$
|
|
3566
|
-
if (__getOwnPropSymbols$
|
|
3567
|
-
for (var prop of __getOwnPropSymbols$
|
|
3568
|
-
if (__propIsEnum$
|
|
3569
|
-
__defNormalProp$
|
|
3564
|
+
if (__hasOwnProp$2.call(b, prop))
|
|
3565
|
+
__defNormalProp$2(a, prop, b[prop]);
|
|
3566
|
+
if (__getOwnPropSymbols$2)
|
|
3567
|
+
for (var prop of __getOwnPropSymbols$2(b)) {
|
|
3568
|
+
if (__propIsEnum$2.call(b, prop))
|
|
3569
|
+
__defNormalProp$2(a, prop, b[prop]);
|
|
3570
3570
|
}
|
|
3571
3571
|
return a;
|
|
3572
3572
|
};
|
|
3573
3573
|
function Table$2(props) {
|
|
3574
3574
|
const preparedItems = React__namespace.useMemo(() => {
|
|
3575
|
-
return (props.items || []).map((item) => __spreadValues$
|
|
3575
|
+
return (props.items || []).map((item) => __spreadValues$2(__spreadValues$2({}, item), item.categoryPoints));
|
|
3576
3576
|
}, [props.items]);
|
|
3577
3577
|
const { items: sortedItems, requestSort, sortConfig } = useSortableData(preparedItems);
|
|
3578
3578
|
if (props.loading && props.items.length === 0) {
|
|
@@ -3828,9 +3828,17 @@ const SplitButton = (props) => {
|
|
|
3828
3828
|
};
|
|
3829
3829
|
|
|
3830
3830
|
function Stack(props) {
|
|
3831
|
-
|
|
3831
|
+
const { items, hideBadge, hideLesson } = props;
|
|
3832
|
+
if (!items.length)
|
|
3832
3833
|
return null;
|
|
3833
|
-
|
|
3834
|
+
const visibleColumns = [
|
|
3835
|
+
true,
|
|
3836
|
+
!hideBadge,
|
|
3837
|
+
!hideLesson,
|
|
3838
|
+
true
|
|
3839
|
+
].filter(Boolean).length;
|
|
3840
|
+
const span = 12 / visibleColumns;
|
|
3841
|
+
return /* @__PURE__ */ React__namespace.createElement(core.Grid, { gutter: "md", sx: { padding: 20, minWidth: 700 } }, /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { span }, /* @__PURE__ */ React__namespace.createElement(core.Text, { weight: "bold" }, "Link")), !hideBadge && /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { span }, /* @__PURE__ */ React__namespace.createElement(core.Text, { weight: "bold" }, "Badge")), !hideLesson && /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { span }, /* @__PURE__ */ React__namespace.createElement(core.Text, { weight: "bold" }, "Lesson")), /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { span }, /* @__PURE__ */ React__namespace.createElement(core.Text, { weight: "bold" }, "Question")), items.map((row, i) => /* @__PURE__ */ React__namespace.createElement(React__namespace.Fragment, { key: i }, /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { span }, /* @__PURE__ */ React__namespace.createElement(
|
|
3834
3842
|
core.Button,
|
|
3835
3843
|
{
|
|
3836
3844
|
component: "a",
|
|
@@ -3841,33 +3849,33 @@ function Stack(props) {
|
|
|
3841
3849
|
variant: "light"
|
|
3842
3850
|
},
|
|
3843
3851
|
"View File"
|
|
3844
|
-
)), /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { span
|
|
3852
|
+
)), !hideBadge && /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { span }, /* @__PURE__ */ React__namespace.createElement(core.Text, null, row.badgeName)), !hideLesson && /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { span }, /* @__PURE__ */ React__namespace.createElement(core.Text, null, row.lessonName)), /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { span }, /* @__PURE__ */ React__namespace.createElement(core.Text, null, row.question)))));
|
|
3845
3853
|
}
|
|
3846
3854
|
|
|
3847
|
-
var __defProp = Object.defineProperty;
|
|
3848
|
-
var __defProps = Object.defineProperties;
|
|
3849
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
3850
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3851
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
3852
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
3853
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3854
|
-
var __spreadValues = (a, b) => {
|
|
3855
|
+
var __defProp$1 = Object.defineProperty;
|
|
3856
|
+
var __defProps$1 = Object.defineProperties;
|
|
3857
|
+
var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
|
|
3858
|
+
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|
3859
|
+
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
3860
|
+
var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
|
|
3861
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3862
|
+
var __spreadValues$1 = (a, b) => {
|
|
3855
3863
|
for (var prop in b || (b = {}))
|
|
3856
|
-
if (__hasOwnProp.call(b, prop))
|
|
3857
|
-
__defNormalProp(a, prop, b[prop]);
|
|
3858
|
-
if (__getOwnPropSymbols)
|
|
3859
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
3860
|
-
if (__propIsEnum.call(b, prop))
|
|
3861
|
-
__defNormalProp(a, prop, b[prop]);
|
|
3864
|
+
if (__hasOwnProp$1.call(b, prop))
|
|
3865
|
+
__defNormalProp$1(a, prop, b[prop]);
|
|
3866
|
+
if (__getOwnPropSymbols$1)
|
|
3867
|
+
for (var prop of __getOwnPropSymbols$1(b)) {
|
|
3868
|
+
if (__propIsEnum$1.call(b, prop))
|
|
3869
|
+
__defNormalProp$1(a, prop, b[prop]);
|
|
3862
3870
|
}
|
|
3863
3871
|
return a;
|
|
3864
3872
|
};
|
|
3865
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
3873
|
+
var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
|
|
3866
3874
|
function Table(props) {
|
|
3867
3875
|
const preparedItems = React__namespace.useMemo(() => {
|
|
3868
3876
|
return props.items.map((item) => {
|
|
3869
3877
|
var _a;
|
|
3870
|
-
return __spreadProps(__spreadValues({}, item), {
|
|
3878
|
+
return __spreadProps$1(__spreadValues$1({}, item), {
|
|
3871
3879
|
submissionCount: ((_a = item.submissions) == null ? void 0 : _a.length) || 0
|
|
3872
3880
|
});
|
|
3873
3881
|
});
|
|
@@ -3914,12 +3922,66 @@ function Table(props) {
|
|
|
3914
3922
|
render: (row) => row.submissions.length
|
|
3915
3923
|
}],
|
|
3916
3924
|
rowExpansion: {
|
|
3917
|
-
content: ({ record }) => /* @__PURE__ */ React__namespace.createElement(
|
|
3925
|
+
content: ({ record }) => /* @__PURE__ */ React__namespace.createElement(
|
|
3926
|
+
Stack,
|
|
3927
|
+
{
|
|
3928
|
+
items: record.submissions,
|
|
3929
|
+
hideBadge: props.hideBadge,
|
|
3930
|
+
hideLesson: props.hideLesson
|
|
3931
|
+
}
|
|
3932
|
+
)
|
|
3918
3933
|
}
|
|
3919
3934
|
}
|
|
3920
3935
|
));
|
|
3921
3936
|
}
|
|
3922
3937
|
|
|
3938
|
+
var __defProp = Object.defineProperty;
|
|
3939
|
+
var __defProps = Object.defineProperties;
|
|
3940
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
3941
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3942
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
3943
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
3944
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3945
|
+
var __spreadValues = (a, b) => {
|
|
3946
|
+
for (var prop in b || (b = {}))
|
|
3947
|
+
if (__hasOwnProp.call(b, prop))
|
|
3948
|
+
__defNormalProp(a, prop, b[prop]);
|
|
3949
|
+
if (__getOwnPropSymbols)
|
|
3950
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
3951
|
+
if (__propIsEnum.call(b, prop))
|
|
3952
|
+
__defNormalProp(a, prop, b[prop]);
|
|
3953
|
+
}
|
|
3954
|
+
return a;
|
|
3955
|
+
};
|
|
3956
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
3957
|
+
const useFilteredStudents = (students) => {
|
|
3958
|
+
return React__namespace.useMemo(() => {
|
|
3959
|
+
const byBadge = (badgeId) => students.map((s) => __spreadProps(__spreadValues({}, s), {
|
|
3960
|
+
submissions: (s.submissions || []).filter(
|
|
3961
|
+
(sub) => sub.badgeId === badgeId
|
|
3962
|
+
)
|
|
3963
|
+
})).filter((s) => s.submissions.length);
|
|
3964
|
+
const byLesson = (lessonName) => students.map((s) => __spreadProps(__spreadValues({}, s), {
|
|
3965
|
+
submissions: (s.submissions || []).filter(
|
|
3966
|
+
(sub) => sub.lessonName === lessonName
|
|
3967
|
+
)
|
|
3968
|
+
})).filter((s) => s.submissions.length);
|
|
3969
|
+
const byPathway = (pathwayId, badges) => {
|
|
3970
|
+
const validBadgeIds = badges.filter(
|
|
3971
|
+
(b) => Array.isArray(b.categories) && b.categories.some(
|
|
3972
|
+
(c) => c.startsWith(pathwayId)
|
|
3973
|
+
)
|
|
3974
|
+
).map((b) => b.badgeId);
|
|
3975
|
+
return students.map((s) => __spreadProps(__spreadValues({}, s), {
|
|
3976
|
+
submissions: (s.submissions || []).filter(
|
|
3977
|
+
(sub) => validBadgeIds.includes(sub.badgeId)
|
|
3978
|
+
)
|
|
3979
|
+
})).filter((s) => s.submissions.length);
|
|
3980
|
+
};
|
|
3981
|
+
return { byBadge, byLesson, byPathway };
|
|
3982
|
+
}, [students]);
|
|
3983
|
+
};
|
|
3984
|
+
|
|
3923
3985
|
const useStyles = core.createStyles((theme) => ({
|
|
3924
3986
|
title: {
|
|
3925
3987
|
fontSize: 34,
|
|
@@ -3932,6 +3994,43 @@ const useStyles = core.createStyles((theme) => ({
|
|
|
3932
3994
|
maxWidth: 600
|
|
3933
3995
|
}
|
|
3934
3996
|
}));
|
|
3997
|
+
const BadgeTable = ({ badges, students, loading }) => {
|
|
3998
|
+
const { byBadge } = useFilteredStudents(students);
|
|
3999
|
+
return /* @__PURE__ */ React__namespace.createElement(core.Accordion, null, badges.map((b) => /* @__PURE__ */ React__namespace.createElement(core.Accordion.Item, { key: b.badgeId, value: b.badgeId }, /* @__PURE__ */ React__namespace.createElement(core.Accordion.Control, null, b.displayName), /* @__PURE__ */ React__namespace.createElement(core.Accordion.Panel, null, /* @__PURE__ */ React__namespace.createElement(
|
|
4000
|
+
Table,
|
|
4001
|
+
{
|
|
4002
|
+
loading,
|
|
4003
|
+
items: byBadge(b.badgeId),
|
|
4004
|
+
hideBadge: true
|
|
4005
|
+
}
|
|
4006
|
+
)))));
|
|
4007
|
+
};
|
|
4008
|
+
const LessonTableWrapper = ({ lessons, students, loading }) => {
|
|
4009
|
+
const { byLesson } = useFilteredStudents(students);
|
|
4010
|
+
return /* @__PURE__ */ React__namespace.createElement(core.Accordion, null, lessons.map((l) => /* @__PURE__ */ React__namespace.createElement(core.Accordion.Item, { key: l.lessonId, value: l.lessonId }, /* @__PURE__ */ React__namespace.createElement(core.Accordion.Control, null, l.lessonName), /* @__PURE__ */ React__namespace.createElement(core.Accordion.Panel, null, /* @__PURE__ */ React__namespace.createElement(
|
|
4011
|
+
Table,
|
|
4012
|
+
{
|
|
4013
|
+
loading,
|
|
4014
|
+
items: byLesson(l.lessonName),
|
|
4015
|
+
hideLesson: true
|
|
4016
|
+
}
|
|
4017
|
+
)))));
|
|
4018
|
+
};
|
|
4019
|
+
const PathwayTable = ({
|
|
4020
|
+
pathways,
|
|
4021
|
+
badges,
|
|
4022
|
+
students,
|
|
4023
|
+
loading
|
|
4024
|
+
}) => {
|
|
4025
|
+
const { byPathway } = useFilteredStudents(students);
|
|
4026
|
+
return /* @__PURE__ */ React__namespace.createElement(core.Accordion, null, pathways.map((p) => /* @__PURE__ */ React__namespace.createElement(core.Accordion.Item, { key: p.pathwayId, value: p.pathwayId }, /* @__PURE__ */ React__namespace.createElement(core.Accordion.Control, null, /* @__PURE__ */ React__namespace.createElement("strong", null, p.title), /* @__PURE__ */ React__namespace.createElement("div", null, p.description)), /* @__PURE__ */ React__namespace.createElement(core.Accordion.Panel, null, /* @__PURE__ */ React__namespace.createElement(
|
|
4027
|
+
Table,
|
|
4028
|
+
{
|
|
4029
|
+
loading,
|
|
4030
|
+
items: byPathway(p.pathwayId, badges)
|
|
4031
|
+
}
|
|
4032
|
+
)))));
|
|
4033
|
+
};
|
|
3935
4034
|
const FileLocker = (props) => {
|
|
3936
4035
|
const { classes } = useStyles();
|
|
3937
4036
|
const [tab, setTab] = React.useState("students");
|
|
@@ -3997,6 +4096,28 @@ const FileLocker = (props) => {
|
|
|
3997
4096
|
loading: props.loading,
|
|
3998
4097
|
items: props.students
|
|
3999
4098
|
}
|
|
4099
|
+
), tab === "pathways" && /* @__PURE__ */ React__namespace.createElement(
|
|
4100
|
+
PathwayTable,
|
|
4101
|
+
{
|
|
4102
|
+
pathways: props.pathways || [],
|
|
4103
|
+
badges: props.badges || [],
|
|
4104
|
+
students: props.students,
|
|
4105
|
+
loading: props.loading
|
|
4106
|
+
}
|
|
4107
|
+
), tab === "badges" && /* @__PURE__ */ React__namespace.createElement(
|
|
4108
|
+
BadgeTable,
|
|
4109
|
+
{
|
|
4110
|
+
badges: props.badges || [],
|
|
4111
|
+
students: props.students,
|
|
4112
|
+
loading: props.loading
|
|
4113
|
+
}
|
|
4114
|
+
), tab === "lessons" && /* @__PURE__ */ React__namespace.createElement(
|
|
4115
|
+
LessonTableWrapper,
|
|
4116
|
+
{
|
|
4117
|
+
lessons: props.lessons,
|
|
4118
|
+
students: props.students,
|
|
4119
|
+
loading: props.loading
|
|
4120
|
+
}
|
|
4000
4121
|
)))))));
|
|
4001
4122
|
};
|
|
4002
4123
|
|
|
@@ -4023,6 +4144,7 @@ exports.Lessons = Lessons;
|
|
|
4023
4144
|
exports.Navbar = Navbar;
|
|
4024
4145
|
exports.Organization = Organization;
|
|
4025
4146
|
exports.Pathway = Pathway;
|
|
4147
|
+
exports.PathwayTable = PathwayTable;
|
|
4026
4148
|
exports.Pathways = Pathways;
|
|
4027
4149
|
exports.People = People;
|
|
4028
4150
|
exports.StartAnonymousLesson = StartAnonymousLesson;
|