@pie-element/complex-rubric 7.1.2-next.0 → 7.1.2-next.10
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 +34 -31
- package/dist/author/main.d.ts +2 -0
- package/dist/author/main.js +55 -52
- package/dist/browser/author/index.js +49489 -6999
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/complex-rubric.css +2 -0
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/delivery/index.js +22 -21
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/browser/delivery-BBE6SJnT.js +728 -0
- package/dist/browser/delivery-BBE6SJnT.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-CjMNqGUU.js +9228 -0
- package/dist/browser/private-tags-CjMNqGUU.js.map +1 -0
- package/dist/browser/rolldown-runtime-CWhphoD1.js +32 -0
- package/dist/delivery/index.js +25 -24
- package/dist/index.iife.js +30 -30
- package/dist/print/index.js +26 -25
- package/dist/private-tags.d.ts +4 -0
- package/dist/private-tags.js +3 -0
- package/dist/runtime-support.d.ts +12 -0
- package/dist/runtime-support.js +12 -0
- package/module/print.js +15915 -0
- package/module/print.js.map +1 -0
- package/package.json +28 -12
- package/print.js +2 -0
- package/dist/browser/dist-DJUOd5EZ.js +0 -19
- package/dist/browser/dist-DJUOd5EZ.js.map +0 -1
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +0 -4
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +0 -15
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/defaults.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +0 -6
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as __pieBrowserCjsReactRequire from "react";
|
|
2
|
+
const __pieBrowserCjsRequire = (specifier) => {
|
|
3
|
+
switch (specifier) {
|
|
4
|
+
case "react": return __pieBrowserCjsReactRequire;
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
default:
|
|
10
|
+
throw new Error(`Unsupported browser CJS require: ${specifier}`);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
//#region \0rolldown/runtime.js
|
|
14
|
+
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, n) => {
|
|
15
|
+
let r = {};
|
|
16
|
+
for (var i in e) t(r, i, {
|
|
17
|
+
get: e[i],
|
|
18
|
+
enumerable: !0
|
|
19
|
+
});
|
|
20
|
+
return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
21
|
+
}, c = (e, i, o, s) => {
|
|
22
|
+
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, {
|
|
23
|
+
get: ((e) => i[e]).bind(null, d),
|
|
24
|
+
enumerable: !(s = n(i, d)) || s.enumerable
|
|
25
|
+
});
|
|
26
|
+
return e;
|
|
27
|
+
}, l = (n, r, a) => (a = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule ? t(a, "default", {
|
|
28
|
+
value: n,
|
|
29
|
+
enumerable: !0
|
|
30
|
+
}) : a, n)), u = __pieBrowserCjsRequire;
|
|
31
|
+
//#endregion
|
|
32
|
+
export { l as i, s as n, u as r, o as t };
|
package/dist/delivery/index.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
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/delivery/index.ts
|
|
5
|
-
var
|
|
6
|
-
customElements.get(
|
|
7
|
-
var
|
|
6
|
+
var a = t, o = e, s = class extends n {}, c = class extends r {};
|
|
7
|
+
customElements.get(a) || customElements.define(a, s), customElements.get(o) || customElements.define(o, c);
|
|
8
|
+
var l = class extends HTMLElement {
|
|
8
9
|
constructor() {
|
|
9
|
-
super(), this._model = {}, this._type =
|
|
10
|
+
super(), this._model = {}, this._type = i.SIMPLE_RUBRIC;
|
|
10
11
|
}
|
|
11
12
|
set type(e) {
|
|
12
13
|
this._type = e;
|
|
@@ -18,19 +19,19 @@ var s = class extends HTMLElement {
|
|
|
18
19
|
this._model = e;
|
|
19
20
|
let t = this._type;
|
|
20
21
|
switch (this.type = e.rubricType, this._type) {
|
|
21
|
-
case
|
|
22
|
+
case i.SIMPLE_RUBRIC:
|
|
22
23
|
default:
|
|
23
|
-
customElements.whenDefined(
|
|
24
|
+
customElements.whenDefined(a).then(() => {
|
|
24
25
|
this.setRubricModel(this.simpleRubric);
|
|
25
26
|
});
|
|
26
27
|
break;
|
|
27
|
-
case
|
|
28
|
-
customElements.whenDefined(
|
|
28
|
+
case i.MULTI_TRAIT_RUBRIC:
|
|
29
|
+
customElements.whenDefined(o).then(() => {
|
|
29
30
|
this.setMultiTraitRubricModel(this.multiTraitRubric);
|
|
30
31
|
});
|
|
31
32
|
break;
|
|
32
|
-
case
|
|
33
|
-
customElements.whenDefined(
|
|
33
|
+
case i.RUBRICLESS:
|
|
34
|
+
customElements.whenDefined(a).then(() => {
|
|
34
35
|
this.setRubriclessModel(this.rubricless);
|
|
35
36
|
});
|
|
36
37
|
break;
|
|
@@ -65,32 +66,32 @@ var s = class extends HTMLElement {
|
|
|
65
66
|
}
|
|
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
81
|
let e;
|
|
81
|
-
switch (e = this._type ===
|
|
82
|
-
case
|
|
82
|
+
switch (e = this._type === i.SIMPLE_RUBRIC ? `<${a} id="simpleRubric" />` : this._type === i.RUBRICLESS ? `<${a} id="rubricless" />` : `<${o} id="multiTraitRubric" />`, this.innerHTML = e, this._type) {
|
|
83
|
+
case i.SIMPLE_RUBRIC:
|
|
83
84
|
default:
|
|
84
|
-
customElements.get(
|
|
85
|
+
customElements.get(a) && this.setRubricModel(this.simpleRubric);
|
|
85
86
|
break;
|
|
86
|
-
case
|
|
87
|
-
customElements.get(
|
|
87
|
+
case i.MULTI_TRAIT_RUBRIC:
|
|
88
|
+
customElements.get(o) && this.setMultiTraitRubricModel(this.multiTraitRubric);
|
|
88
89
|
break;
|
|
89
|
-
case
|
|
90
|
-
customElements.get(
|
|
90
|
+
case i.RUBRICLESS:
|
|
91
|
+
customElements.get(a) && this.setRubriclessModel(this.rubricless);
|
|
91
92
|
break;
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
95
|
};
|
|
95
96
|
//#endregion
|
|
96
|
-
export {
|
|
97
|
+
export { l as default };
|