@pie-element/complex-rubric 7.1.2-next.2 → 7.1.2-next.3
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/author/index.js +39 -36
- package/dist/author/main.d.ts +2 -0
- package/dist/author/main.js +55 -52
- package/dist/browser/author/index.js +1763 -7009
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/complex-rubric.css +2 -0
- package/dist/browser/delivery/index.js +22 -21
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/browser/delivery-A_7EWNQT.js +691 -0
- package/dist/browser/delivery-A_7EWNQT.js.map +1 -0
- package/dist/browser/print/index.js +25 -24
- package/dist/browser/print/index.js.map +1 -1
- package/dist/browser/private-tags-BTGKqp_N.js +60407 -0
- package/dist/browser/private-tags-BTGKqp_N.js.map +1 -0
- package/dist/delivery/index.js +25 -24
- package/dist/index.iife.js +18 -18
- package/dist/print/index.js +26 -25
- package/dist/private-tags.d.ts +4 -0
- package/dist/private-tags.js +3 -0
- package/package.json +3 -3
- package/dist/browser/dist-DJUOd5EZ.js +0 -19
- package/dist/browser/dist-DJUOd5EZ.js.map +0 -1
package/dist/print/index.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { COMPLEX_RUBRIC_MULTI_TRAIT_TAG as e, COMPLEX_RUBRIC_SIMPLE_TAG as t } from "../private-tags.js";
|
|
2
|
+
import n from "@pie-element/rubric";
|
|
3
|
+
import r from "@pie-element/multi-trait-rubric";
|
|
4
|
+
import { RUBRIC_TYPES as i } from "@pie-lib/rubric";
|
|
4
5
|
//#region src/print/index.ts
|
|
5
|
-
var
|
|
6
|
-
[
|
|
7
|
-
[
|
|
8
|
-
[
|
|
9
|
-
},
|
|
10
|
-
customElements.get(
|
|
11
|
-
var
|
|
6
|
+
var a = t, o = e, s = class extends n {}, c = class extends r {}, l = {
|
|
7
|
+
[i.SIMPLE_RUBRIC]: `<${a} id="simpleRubric" />`,
|
|
8
|
+
[i.RUBRICLESS]: `<${a} id="rubricless" />`,
|
|
9
|
+
[i.MULTI_TRAIT_RUBRIC]: `<${o} id="multiTraitRubric" />`
|
|
10
|
+
}, u = (e, t) => t.role === "instructor" ? (e.mode = "evaluate", e.animationsDisabled = !0, e) : {};
|
|
11
|
+
customElements.get(a) || customElements.define(a, s), customElements.get(o) || customElements.define(o, c);
|
|
12
|
+
var d = class extends HTMLElement {
|
|
12
13
|
constructor() {
|
|
13
|
-
super(), this._model = {}, this._type =
|
|
14
|
+
super(), this._model = {}, this._type = i.SIMPLE_RUBRIC, this._options = null;
|
|
14
15
|
}
|
|
15
16
|
set type(e) {
|
|
16
17
|
this._type = e;
|
|
@@ -22,19 +23,19 @@ var l = class extends HTMLElement {
|
|
|
22
23
|
this._model = e;
|
|
23
24
|
let t = this._type;
|
|
24
25
|
switch (this.type = e.rubricType, this._type) {
|
|
25
|
-
case
|
|
26
|
+
case i.SIMPLE_RUBRIC:
|
|
26
27
|
default:
|
|
27
|
-
customElements.whenDefined(
|
|
28
|
+
customElements.whenDefined(a).then(() => {
|
|
28
29
|
this.setRubricModel(this.simpleRubric);
|
|
29
30
|
});
|
|
30
31
|
break;
|
|
31
|
-
case
|
|
32
|
-
customElements.whenDefined(
|
|
32
|
+
case i.MULTI_TRAIT_RUBRIC:
|
|
33
|
+
customElements.whenDefined(o).then(() => {
|
|
33
34
|
this.setMultiTraitRubricModel(this.multiTraitRubric);
|
|
34
35
|
});
|
|
35
36
|
break;
|
|
36
|
-
case
|
|
37
|
-
customElements.whenDefined(
|
|
37
|
+
case i.RUBRICLESS:
|
|
38
|
+
customElements.whenDefined(a).then(() => {
|
|
38
39
|
this.setRubriclessModel(this.rubricless);
|
|
39
40
|
});
|
|
40
41
|
break;
|
|
@@ -42,7 +43,7 @@ var l = class extends HTMLElement {
|
|
|
42
43
|
t !== this.type && this._render();
|
|
43
44
|
}
|
|
44
45
|
setRubricModel(e) {
|
|
45
|
-
this._model && this._model.rubrics && this._model.rubrics.simpleRubric && (e.model =
|
|
46
|
+
this._model && this._model.rubrics && this._model.rubrics.simpleRubric && (e.model = u(this._model.rubrics.simpleRubric, this._options));
|
|
46
47
|
}
|
|
47
48
|
setMultiTraitRubricModel(e) {
|
|
48
49
|
if (this._model && this._model.rubrics && this._model.rubrics.multiTraitRubric) {
|
|
@@ -51,7 +52,7 @@ var l = class extends HTMLElement {
|
|
|
51
52
|
excludeZero: n
|
|
52
53
|
}));
|
|
53
54
|
e.model = {
|
|
54
|
-
...
|
|
55
|
+
...u(this._model.rubrics.multiTraitRubric, this._options),
|
|
55
56
|
visible: !0,
|
|
56
57
|
arrowsDisabled: !0,
|
|
57
58
|
scales: r
|
|
@@ -59,26 +60,26 @@ var l = class extends HTMLElement {
|
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
62
|
setRubriclessModel(e) {
|
|
62
|
-
this._model && this._model.rubrics && this._model.rubrics.rubricless && (e.model =
|
|
63
|
+
this._model && this._model.rubrics && this._model.rubrics.rubricless && (e.model = u(this._model.rubrics.rubricless, this._options));
|
|
63
64
|
}
|
|
64
65
|
set options(e) {
|
|
65
66
|
this._options = e;
|
|
66
67
|
}
|
|
67
68
|
get multiTraitRubric() {
|
|
68
|
-
return this.querySelector(`${
|
|
69
|
+
return this.querySelector(`${o}#multiTraitRubric`);
|
|
69
70
|
}
|
|
70
71
|
get simpleRubric() {
|
|
71
|
-
return this.querySelector(`${
|
|
72
|
+
return this.querySelector(`${a}#simpleRubric`);
|
|
72
73
|
}
|
|
73
74
|
get rubricless() {
|
|
74
|
-
return this.querySelector(`${
|
|
75
|
+
return this.querySelector(`${a}#rubricless`);
|
|
75
76
|
}
|
|
76
77
|
connectedCallback() {
|
|
77
78
|
this._render();
|
|
78
79
|
}
|
|
79
80
|
_render() {
|
|
80
|
-
this.innerHTML =
|
|
81
|
+
this.innerHTML = l[this._type] || "";
|
|
81
82
|
}
|
|
82
83
|
};
|
|
83
84
|
//#endregion
|
|
84
|
-
export {
|
|
85
|
+
export { d as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var e = `--version-${((e) => e.trim().toLowerCase().replace(/[.+]/g, "-").replace(/[^0-9A-Za-z-]/g, "-").replace(/-{2,}/g, "-"))("7.1.2-next.3")}`, t = `complex-rubric-simple${e}`, n = `complex-rubric-multi-trait${e}`, r = `rubric-configure${e}`, i = `multi-trait-rubric-configure${e}`;
|
|
2
|
+
//#endregion
|
|
3
|
+
export { i as COMPLEX_RUBRIC_MULTI_TRAIT_CONFIGURE_TAG, n as COMPLEX_RUBRIC_MULTI_TRAIT_TAG, r as COMPLEX_RUBRIC_SIMPLE_CONFIGURE_TAG, t as COMPLEX_RUBRIC_SIMPLE_TAG };
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric",
|
|
3
|
-
"version": "7.1.2-next.
|
|
3
|
+
"version": "7.1.2-next.3",
|
|
4
4
|
"description": "Complex Rubric Scoring Interaction",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@emotion/react": "^11.14.0",
|
|
7
7
|
"@emotion/style": "^0.8.0",
|
|
8
8
|
"@mui/icons-material": "^7.3.4",
|
|
9
9
|
"@mui/material": "^7.3.4",
|
|
10
|
-
"@pie-element/multi-trait-rubric": "8.1.2-next.
|
|
11
|
-
"@pie-element/rubric": "8.1.2-next.
|
|
10
|
+
"@pie-element/multi-trait-rubric": "8.1.2-next.3",
|
|
11
|
+
"@pie-element/rubric": "8.1.2-next.3",
|
|
12
12
|
"@pie-lib/rubric": "2.0.4-next.30",
|
|
13
13
|
"debug": "^4.1.1",
|
|
14
14
|
"prop-types": "^15.8.1",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, i, o, s) => {
|
|
3
|
-
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
4
|
-
get: ((e) => i[e]).bind(null, d),
|
|
5
|
-
enumerable: !(s = n(i, d)) || s.enumerable
|
|
6
|
-
});
|
|
7
|
-
return e;
|
|
8
|
-
}, c = (n, r, a) => (a = n == null ? {} : e(i(n)), s(r || !n || !n.__esModule ? t(a, "default", {
|
|
9
|
-
value: n,
|
|
10
|
-
enumerable: !0
|
|
11
|
-
}) : a, n)), l = {
|
|
12
|
-
SIMPLE_RUBRIC: "simpleRubric",
|
|
13
|
-
MULTI_TRAIT_RUBRIC: "multiTraitRubric",
|
|
14
|
-
RUBRICLESS: "rubricless"
|
|
15
|
-
};
|
|
16
|
-
//#endregion
|
|
17
|
-
export { o as n, c as r, l as t };
|
|
18
|
-
|
|
19
|
-
//# sourceMappingURL=dist-DJUOd5EZ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dist-DJUOd5EZ.js","names":[],"sources":["../../../../lib-react/rubric/dist/index.js"],"sourcesContent":["import e from \"./authoring.js\";\n//#region src/index.ts\nvar t = {\n\tSIMPLE_RUBRIC: \"simpleRubric\",\n\tMULTI_TRAIT_RUBRIC: \"multiTraitRubric\",\n\tRUBRICLESS: \"rubricless\"\n};\n//#endregion\nexport { e as Authoring, t as RUBRIC_TYPES };\n"],"mappings":";;;;;;;;;;aAEI,IAAI;CACP,eAAe;CACf,oBAAoB;CACpB,YAAY;AACb"}
|