@pie-element/complex-rubric 0.0.2-next.4424 → 0.1.0
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/defaults.d.ts +232 -0
- package/dist/author/defaults.d.ts.map +1 -0
- package/dist/author/defaults.js +177 -0
- package/dist/author/index.d.ts +35 -0
- package/dist/author/index.d.ts.map +1 -0
- package/dist/author/index.js +86 -0
- package/dist/author/main.d.ts +24 -0
- package/dist/author/main.d.ts.map +1 -0
- package/dist/author/main.js +106 -0
- package/dist/controller/defaults.d.ts +40 -0
- package/dist/controller/defaults.d.ts.map +1 -0
- package/dist/controller/defaults.js +42 -0
- package/dist/controller/index.d.ts +26 -0
- package/dist/controller/index.d.ts.map +1 -0
- package/dist/controller/index.js +107 -0
- package/dist/controller/utils.d.ts +10 -0
- package/dist/controller/utils.d.ts.map +1 -0
- package/dist/controller/utils.js +4 -0
- package/dist/delivery/index.d.ts +24 -0
- package/dist/delivery/index.d.ts.map +1 -0
- package/dist/delivery/index.js +96 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.iife.d.ts +9 -0
- package/dist/index.iife.d.ts.map +1 -0
- package/dist/index.iife.js +145 -0
- package/dist/index.js +2 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_apply.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNative.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseKeysIn.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseRest.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseSetToString.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseTimes.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_coreJsData.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_defineProperty.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getRawTag.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getValue.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isIterateeCall.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeysIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nodeUtil.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_overRest.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_root.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setToString.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_shortOut.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_toSource.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/constant.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/defaults.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/eq.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/identity.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArguments.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isBuffer.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isFunction.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isObject.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isTypedArray.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/print/index.d.ts +25 -0
- package/dist/print/index.d.ts.map +1 -0
- package/dist/print/index.js +84 -0
- package/package.json +65 -16
- package/src/author/defaults.tsx +223 -0
- package/{configure/src/index.js → src/author/index.ts} +69 -28
- package/src/author/main.tsx +172 -0
- package/src/controller/defaults.ts +49 -0
- package/src/controller/index.ts +230 -0
- package/src/controller/utils.ts +13 -0
- package/src/{index.js → delivery/index.ts} +65 -9
- package/src/index.iife.ts +16 -0
- package/src/index.ts +1 -0
- package/src/print/index.ts +150 -0
- package/LICENSE.md +0 -5
- package/README.md +0 -3
- package/configure/lib/defaults.js +0 -99
- package/configure/lib/defaults.js.map +0 -1
- package/configure/lib/index.js +0 -232
- package/configure/lib/index.js.map +0 -1
- package/configure/lib/main.js +0 -165
- package/configure/lib/main.js.map +0 -1
- package/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.md +0 -376
- package/configure/node_modules/@pie-element/multi-trait-rubric/LICENSE.md +0 -5
- package/configure/node_modules/@pie-element/multi-trait-rubric/README.md +0 -55
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.md +0 -344
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js +0 -455
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js.map +0 -1
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js +0 -82
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js.map +0 -1
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js +0 -112
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js +0 -438
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js.map +0 -1
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js +0 -324
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js.map +0 -1
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js +0 -490
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js.map +0 -1
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js +0 -334
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js.map +0 -1
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js +0 -254
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js.map +0 -1
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js +0 -29
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js.map +0 -1
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/package.json +0 -22
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.md +0 -66
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js +0 -9
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js.map +0 -1
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js +0 -122
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/package.json +0 -15
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json +0 -226
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json.md +0 -169
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/config.js +0 -8
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/generate.js +0 -108
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/index.html +0 -1
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/session.js +0 -6
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json +0 -282
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json.md +0 -189
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js +0 -85
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js +0 -99
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js.map +0 -1
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js +0 -209
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js.map +0 -1
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js +0 -103
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js.map +0 -1
- package/configure/node_modules/@pie-element/multi-trait-rubric/package.json +0 -24
- package/configure/node_modules/@pie-element/rubric/CHANGELOG.json +0 -257
- package/configure/node_modules/@pie-element/rubric/CHANGELOG.md +0 -731
- package/configure/node_modules/@pie-element/rubric/LICENSE.md +0 -5
- package/configure/node_modules/@pie-element/rubric/README.md +0 -3
- package/configure/node_modules/@pie-element/rubric/configure/CHANGELOG.json +0 -197
- package/configure/node_modules/@pie-element/rubric/configure/CHANGELOG.md +0 -615
- package/configure/node_modules/@pie-element/rubric/configure/lib/index.js +0 -93
- package/configure/node_modules/@pie-element/rubric/configure/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-element/rubric/configure/package.json +0 -16
- package/configure/node_modules/@pie-element/rubric/configure/src/index.js +0 -38
- package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.json +0 -17
- package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.md +0 -105
- package/configure/node_modules/@pie-element/rubric/controller/lib/index.js +0 -14
- package/configure/node_modules/@pie-element/rubric/controller/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-element/rubric/controller/package.json +0 -9
- package/configure/node_modules/@pie-element/rubric/controller/src/__tests__/index.test.js +0 -35
- package/configure/node_modules/@pie-element/rubric/controller/src/index.js +0 -6
- package/configure/node_modules/@pie-element/rubric/docs/config-schema.json +0 -24
- package/configure/node_modules/@pie-element/rubric/docs/config-schema.json.md +0 -19
- package/configure/node_modules/@pie-element/rubric/docs/demo/config.js +0 -8
- package/configure/node_modules/@pie-element/rubric/docs/demo/generate.js +0 -8
- package/configure/node_modules/@pie-element/rubric/docs/demo/index.html +0 -3
- package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json +0 -62
- package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json.md +0 -35
- package/configure/node_modules/@pie-element/rubric/lib/index.js +0 -88
- package/configure/node_modules/@pie-element/rubric/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-element/rubric/lib/main.js +0 -171
- package/configure/node_modules/@pie-element/rubric/lib/main.js.map +0 -1
- package/configure/node_modules/@pie-element/rubric/lib/print.js +0 -114
- package/configure/node_modules/@pie-element/rubric/lib/print.js.map +0 -1
- package/configure/node_modules/@pie-element/rubric/package.json +0 -25
- package/configure/node_modules/@pie-element/rubric/src/__tests__/__snapshots__/rubric-view.test.jsx.snap +0 -22767
- package/configure/node_modules/@pie-element/rubric/src/__tests__/rubric-view.test.jsx +0 -48
- package/configure/node_modules/@pie-element/rubric/src/index.js +0 -38
- package/configure/node_modules/@pie-element/rubric/src/main.jsx +0 -117
- package/configure/node_modules/@pie-element/rubric/src/print.js +0 -63
- package/configure/package.json +0 -22
- package/configure/src/__tests__/__snapshots__/main.test.jsx.snap +0 -106
- package/configure/src/__tests__/index.test.js +0 -41
- package/configure/src/__tests__/main.test.jsx +0 -104
- package/configure/src/defaults.js +0 -122
- package/configure/src/main.jsx +0 -117
- package/controller/lib/defaults.js +0 -99
- package/controller/lib/defaults.js.map +0 -1
- package/controller/lib/index.js +0 -147
- package/controller/lib/index.js.map +0 -1
- package/controller/package.json +0 -12
- package/controller/src/__tests__/index.test.js +0 -58
- package/controller/src/defaults.js +0 -121
- package/controller/src/index.js +0 -81
- package/docs/config-schema.json +0 -427
- package/docs/config-schema.json.md +0 -315
- package/docs/demo/config.js +0 -8
- package/docs/demo/generate.js +0 -119
- package/docs/demo/index.html +0 -1
- package/docs/demo/session.js +0 -6
- package/docs/pie-schema.json +0 -994
- package/docs/pie-schema.json.md +0 -660
- package/lib/index.js +0 -176
- package/lib/index.js.map +0 -1
- package/src/__tests__/index.test.js +0 -166
package/dist/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_apply.js
|
|
2
|
+
function e(e, t, n) {
|
|
3
|
+
switch (n.length) {
|
|
4
|
+
case 0: return e.call(t);
|
|
5
|
+
case 1: return e.call(t, n[0]);
|
|
6
|
+
case 2: return e.call(t, n[0], n[1]);
|
|
7
|
+
case 3: return e.call(t, n[0], n[1], n[2]);
|
|
8
|
+
}
|
|
9
|
+
return e.apply(t, n);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { e as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import e from "./isArray.js";
|
|
2
|
+
import t from "./_isIndex.js";
|
|
3
|
+
import n from "./_baseTimes.js";
|
|
4
|
+
import r from "./isArguments.js";
|
|
5
|
+
import i from "./isBuffer.js";
|
|
6
|
+
import a from "./isTypedArray.js";
|
|
7
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayLikeKeys.js
|
|
8
|
+
var o = Object.prototype.hasOwnProperty;
|
|
9
|
+
function s(s, c) {
|
|
10
|
+
var l = e(s), u = !l && r(s), d = !l && !u && i(s), f = !l && !u && !d && a(s), p = l || u || d || f, m = p ? n(s.length, String) : [], h = m.length;
|
|
11
|
+
for (var g in s) (c || o.call(s, g)) && !(p && (g == "length" || d && (g == "offset" || g == "parent") || f && (g == "buffer" || g == "byteLength" || g == "byteOffset") || t(g, h))) && m.push(g);
|
|
12
|
+
return m;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { s as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "./_Symbol.js";
|
|
2
|
+
import t from "./_getRawTag.js";
|
|
3
|
+
import n from "./_objectToString.js";
|
|
4
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.js
|
|
5
|
+
var r = "[object Null]", i = "[object Undefined]", a = e ? e.toStringTag : void 0;
|
|
6
|
+
function o(e) {
|
|
7
|
+
return e == null ? e === void 0 ? i : r : a && a in Object(e) ? t(e) : n(e);
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { o as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import e from "./_baseGetTag.js";
|
|
2
|
+
import t from "./isObjectLike.js";
|
|
3
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsArguments.js
|
|
4
|
+
var n = "[object Arguments]";
|
|
5
|
+
function r(r) {
|
|
6
|
+
return t(r) && e(r) == n;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { r as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import e from "./isObject.js";
|
|
2
|
+
import t from "./isFunction.js";
|
|
3
|
+
import n from "./_isMasked.js";
|
|
4
|
+
import r from "./_toSource.js";
|
|
5
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNative.js
|
|
6
|
+
var i = /[\\^$.*+?()[\]{}|]/g, a = /^\[object .+?Constructor\]$/, o = Function.prototype, s = Object.prototype, c = o.toString, l = s.hasOwnProperty, u = RegExp("^" + c.call(l).replace(i, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
7
|
+
function d(i) {
|
|
8
|
+
return !e(i) || n(i) ? !1 : (t(i) ? u : a).test(r(i));
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { d as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import e from "./_baseGetTag.js";
|
|
2
|
+
import t from "./isObjectLike.js";
|
|
3
|
+
import n from "./isLength.js";
|
|
4
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsTypedArray.js
|
|
5
|
+
var r = "[object Arguments]", i = "[object Array]", a = "[object Boolean]", o = "[object Date]", s = "[object Error]", c = "[object Function]", l = "[object Map]", u = "[object Number]", d = "[object Object]", f = "[object RegExp]", p = "[object Set]", m = "[object String]", h = "[object WeakMap]", g = "[object ArrayBuffer]", _ = "[object DataView]", v = "[object Float32Array]", y = "[object Float64Array]", b = "[object Int8Array]", x = "[object Int16Array]", S = "[object Int32Array]", C = "[object Uint8Array]", w = "[object Uint8ClampedArray]", T = "[object Uint16Array]", E = "[object Uint32Array]", D = {};
|
|
6
|
+
D[v] = D[y] = D[b] = D[x] = D[S] = D[C] = D[w] = D[T] = D[E] = !0, D[r] = D[i] = D[g] = D[a] = D[_] = D[o] = D[s] = D[c] = D[l] = D[u] = D[d] = D[f] = D[p] = D[m] = D[h] = !1;
|
|
7
|
+
function O(r) {
|
|
8
|
+
return t(r) && n(r.length) && !!D[e(r)];
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { O as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import e from "./isObject.js";
|
|
2
|
+
import t from "./_isPrototype.js";
|
|
3
|
+
import n from "./_nativeKeysIn.js";
|
|
4
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseKeysIn.js
|
|
5
|
+
var r = Object.prototype.hasOwnProperty;
|
|
6
|
+
function i(i) {
|
|
7
|
+
if (!e(i)) return n(i);
|
|
8
|
+
var a = t(i), o = [];
|
|
9
|
+
for (var s in i) s == "constructor" && (a || !r.call(i, s)) || o.push(s);
|
|
10
|
+
return o;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { i as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import e from "./identity.js";
|
|
2
|
+
import t from "./_setToString.js";
|
|
3
|
+
import n from "./_overRest.js";
|
|
4
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseRest.js
|
|
5
|
+
function r(r, i) {
|
|
6
|
+
return t(n(r, i, e), r + "");
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { r as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import e from "./identity.js";
|
|
2
|
+
import t from "./constant.js";
|
|
3
|
+
import n from "./_defineProperty.js";
|
|
4
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseSetToString.js
|
|
5
|
+
var r = n ? function(e, r) {
|
|
6
|
+
return n(e, "toString", {
|
|
7
|
+
configurable: !0,
|
|
8
|
+
enumerable: !1,
|
|
9
|
+
value: t(r),
|
|
10
|
+
writable: !0
|
|
11
|
+
});
|
|
12
|
+
} : e;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { r as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "./_getNative.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_defineProperty.js
|
|
3
|
+
var t = function() {
|
|
4
|
+
try {
|
|
5
|
+
var t = e(Object, "defineProperty");
|
|
6
|
+
return t({}, "", {}), t;
|
|
7
|
+
} catch {}
|
|
8
|
+
}();
|
|
9
|
+
//#endregion
|
|
10
|
+
export { t as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import e from "./_baseIsNative.js";
|
|
2
|
+
import t from "./_getValue.js";
|
|
3
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getNative.js
|
|
4
|
+
function n(n, r) {
|
|
5
|
+
var i = t(n, r);
|
|
6
|
+
return e(i) ? i : void 0;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { n as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import e from "./_Symbol.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getRawTag.js
|
|
3
|
+
var t = Object.prototype, n = t.hasOwnProperty, r = t.toString, i = e ? e.toStringTag : void 0;
|
|
4
|
+
function a(e) {
|
|
5
|
+
var t = n.call(e, i), a = e[i];
|
|
6
|
+
try {
|
|
7
|
+
e[i] = void 0;
|
|
8
|
+
var o = !0;
|
|
9
|
+
} catch {}
|
|
10
|
+
var s = r.call(e);
|
|
11
|
+
return o && (t ? e[i] = a : delete e[i]), s;
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { a as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isIndex.js
|
|
2
|
+
var e = 9007199254740991, t = /^(?:0|[1-9]\d*)$/;
|
|
3
|
+
function n(n, r) {
|
|
4
|
+
var i = typeof n;
|
|
5
|
+
return r ??= e, !!r && (i == "number" || i != "symbol" && t.test(n)) && n > -1 && n % 1 == 0 && n < r;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { n as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import e from "./isObject.js";
|
|
2
|
+
import t from "./_isIndex.js";
|
|
3
|
+
import n from "./eq.js";
|
|
4
|
+
import r from "./isArrayLike.js";
|
|
5
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isIterateeCall.js
|
|
6
|
+
function i(i, a, o) {
|
|
7
|
+
if (!e(o)) return !1;
|
|
8
|
+
var s = typeof a;
|
|
9
|
+
return (s == "number" ? r(o) && t(a, o.length) : s == "string" && a in o) ? n(o[a], i) : !1;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { i as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import e from "./_coreJsData.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isMasked.js
|
|
3
|
+
var t = function() {
|
|
4
|
+
var t = /[^.]+$/.exec(e && e.keys && e.keys.IE_PROTO || "");
|
|
5
|
+
return t ? "Symbol(src)_1." + t : "";
|
|
6
|
+
}();
|
|
7
|
+
function n(e) {
|
|
8
|
+
return !!t && t in e;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { n as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isPrototype.js
|
|
2
|
+
var e = Object.prototype;
|
|
3
|
+
function t(t) {
|
|
4
|
+
var n = t && t.constructor;
|
|
5
|
+
return t === (typeof n == "function" && n.prototype || e);
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { t as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import e from "./_freeGlobal.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nodeUtil.js
|
|
3
|
+
var t = typeof exports == "object" && exports && !exports.nodeType && exports, n = t && typeof module == "object" && module && !module.nodeType && module, r = n && n.exports === t && e.process, i = function() {
|
|
4
|
+
try {
|
|
5
|
+
return n && n.require && n.require("util").types || r && r.binding && r.binding("util");
|
|
6
|
+
} catch {}
|
|
7
|
+
}();
|
|
8
|
+
//#endregion
|
|
9
|
+
export { i as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import e from "./_apply.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_overRest.js
|
|
3
|
+
var t = Math.max;
|
|
4
|
+
function n(n, r, i) {
|
|
5
|
+
return r = t(r === void 0 ? n.length - 1 : r, 0), function() {
|
|
6
|
+
for (var a = arguments, o = -1, s = t(a.length - r, 0), c = Array(s); ++o < s;) c[o] = a[r + o];
|
|
7
|
+
o = -1;
|
|
8
|
+
for (var l = Array(r + 1); ++o < r;) l[o] = a[o];
|
|
9
|
+
return l[r] = i(c), e(n, this, l);
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import e from "./_freeGlobal.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_root.js
|
|
3
|
+
var t = typeof self == "object" && self && self.Object === Object && self, n = e || t || Function("return this")();
|
|
4
|
+
//#endregion
|
|
5
|
+
export { n as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_shortOut.js
|
|
2
|
+
var e = 800, t = 16, n = Date.now;
|
|
3
|
+
function r(r) {
|
|
4
|
+
var i = 0, a = 0;
|
|
5
|
+
return function() {
|
|
6
|
+
var o = n(), s = t - (o - a);
|
|
7
|
+
if (a = o, s > 0) {
|
|
8
|
+
if (++i >= e) return arguments[0];
|
|
9
|
+
} else i = 0;
|
|
10
|
+
return r.apply(void 0, arguments);
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { r as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_toSource.js
|
|
2
|
+
var e = Function.prototype.toString;
|
|
3
|
+
function t(t) {
|
|
4
|
+
if (t != null) {
|
|
5
|
+
try {
|
|
6
|
+
return e.call(t);
|
|
7
|
+
} catch {}
|
|
8
|
+
try {
|
|
9
|
+
return t + "";
|
|
10
|
+
} catch {}
|
|
11
|
+
}
|
|
12
|
+
return "";
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { t as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import e from "./eq.js";
|
|
2
|
+
import t from "./_baseRest.js";
|
|
3
|
+
import n from "./_isIterateeCall.js";
|
|
4
|
+
import r from "./keysIn.js";
|
|
5
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/defaults.js
|
|
6
|
+
var i = Object.prototype, a = i.hasOwnProperty, o = t(function(t, o) {
|
|
7
|
+
t = Object(t);
|
|
8
|
+
var s = -1, c = o.length, l = c > 2 ? o[2] : void 0;
|
|
9
|
+
for (l && n(o[0], o[1], l) && (c = 1); ++s < c;) for (var u = o[s], d = r(u), f = -1, p = d.length; ++f < p;) {
|
|
10
|
+
var m = d[f], h = t[m];
|
|
11
|
+
(h === void 0 || e(h, i[m]) && !a.call(t, m)) && (t[m] = u[m]);
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
export { o as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "./isObjectLike.js";
|
|
2
|
+
import t from "./_baseIsArguments.js";
|
|
3
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArguments.js
|
|
4
|
+
var n = Object.prototype, r = n.hasOwnProperty, i = n.propertyIsEnumerable, a = t(function() {
|
|
5
|
+
return arguments;
|
|
6
|
+
}()) ? t : function(t) {
|
|
7
|
+
return e(t) && r.call(t, "callee") && !i.call(t, "callee");
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { a as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import e from "./isFunction.js";
|
|
2
|
+
import t from "./isLength.js";
|
|
3
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArrayLike.js
|
|
4
|
+
function n(n) {
|
|
5
|
+
return n != null && t(n.length) && !e(n);
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { n as default };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import e from "./_root.js";
|
|
2
|
+
import t from "./stubFalse.js";
|
|
3
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isBuffer.js
|
|
4
|
+
var n = typeof exports == "object" && exports && !exports.nodeType && exports, r = n && typeof module == "object" && module && !module.nodeType && module, i = r && r.exports === n ? e.Buffer : void 0, a = (i ? i.isBuffer : void 0) || t;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { a as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import e from "./_baseGetTag.js";
|
|
2
|
+
import t from "./isObject.js";
|
|
3
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isFunction.js
|
|
4
|
+
var n = "[object AsyncFunction]", r = "[object Function]", i = "[object GeneratorFunction]", a = "[object Proxy]";
|
|
5
|
+
function o(o) {
|
|
6
|
+
if (!t(o)) return !1;
|
|
7
|
+
var s = e(o);
|
|
8
|
+
return s == r || s == i || s == n || s == a;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { o as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "./_baseIsTypedArray.js";
|
|
2
|
+
import t from "./_baseUnary.js";
|
|
3
|
+
import n from "./_nodeUtil.js";
|
|
4
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isTypedArray.js
|
|
5
|
+
var r = n && n.isTypedArray, i = r ? t(r) : e;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { i as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import e from "./isArrayLike.js";
|
|
2
|
+
import t from "./_arrayLikeKeys.js";
|
|
3
|
+
import n from "./_baseKeysIn.js";
|
|
4
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keysIn.js
|
|
5
|
+
function r(r) {
|
|
6
|
+
return e(r) ? t(r, !0) : n(r);
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { r as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-elements/packages/complex-rubric/src/print.js
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
declare class ComplexRubricPrint extends HTMLElement {
|
|
10
|
+
constructor();
|
|
11
|
+
set type(t: any);
|
|
12
|
+
get type(): any;
|
|
13
|
+
set model(m: any);
|
|
14
|
+
setRubricModel(simpleRubric: any): void;
|
|
15
|
+
setMultiTraitRubricModel(multiTraitRubric: any): void;
|
|
16
|
+
setRubriclessModel(rubricless: any): void;
|
|
17
|
+
set options(o: any);
|
|
18
|
+
get multiTraitRubric(): Element | null;
|
|
19
|
+
get simpleRubric(): Element | null;
|
|
20
|
+
get rubricless(): Element | null;
|
|
21
|
+
connectedCallback(): void;
|
|
22
|
+
_render(): void;
|
|
23
|
+
}
|
|
24
|
+
export default ComplexRubricPrint;
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/print/index.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AA6CH,cAAM,kBAAmB,SAAQ,WAAW;;IAQ1C,IAAI,IAAI,CAAC,CAAC,KAAA,EAET;IAED,IAAI,IAAI,QAEP;IAED,IAAI,KAAK,CAAC,CAAC,KAAA,EA2BV;IAED,cAAc,CAAC,YAAY,KAAA;IAM3B,wBAAwB,CAAC,gBAAgB,KAAA;IAczC,kBAAkB,CAAC,UAAU,KAAA;IAM7B,IAAI,OAAO,CAAC,CAAC,KAAA,EAEZ;IAED,IAAI,gBAAgB,mBAEnB;IAED,IAAI,YAAY,mBAEf;IAED,IAAI,UAAU,mBAEb;IAED,iBAAiB;IAIjB,OAAO;CAGR;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import e from "@pie-element/rubric";
|
|
2
|
+
import t from "@pie-element/multi-trait-rubric";
|
|
3
|
+
import { RUBRIC_TYPES as n } from "@pie-lib/rubric";
|
|
4
|
+
//#region src/print/index.ts
|
|
5
|
+
var r = "complex-rubric-simple", i = "complex-rubric-multi-trait", a = class extends e {}, o = class extends t {}, s = {
|
|
6
|
+
[n.SIMPLE_RUBRIC]: `<${r} id="simpleRubric" />`,
|
|
7
|
+
[n.RUBRICLESS]: `<${r} id="rubricless" />`,
|
|
8
|
+
[n.MULTI_TRAIT_RUBRIC]: `<${i} id="multiTraitRubric" />`
|
|
9
|
+
}, c = (e, t) => t.role === "instructor" ? (e.mode = "evaluate", e.animationsDisabled = !0, e) : {};
|
|
10
|
+
customElements.get(r) || customElements.define(r, a), customElements.get(i) || customElements.define(i, o);
|
|
11
|
+
var l = class extends HTMLElement {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(), this._model = {}, this._type = n.SIMPLE_RUBRIC, this._options = null;
|
|
14
|
+
}
|
|
15
|
+
set type(e) {
|
|
16
|
+
this._type = e;
|
|
17
|
+
}
|
|
18
|
+
get type() {
|
|
19
|
+
return this._type;
|
|
20
|
+
}
|
|
21
|
+
set model(e) {
|
|
22
|
+
this._model = e;
|
|
23
|
+
let t = this._type;
|
|
24
|
+
switch (this.type = e.rubricType, this._type) {
|
|
25
|
+
case n.SIMPLE_RUBRIC:
|
|
26
|
+
default:
|
|
27
|
+
customElements.whenDefined(r).then(() => {
|
|
28
|
+
this.setRubricModel(this.simpleRubric);
|
|
29
|
+
});
|
|
30
|
+
break;
|
|
31
|
+
case n.MULTI_TRAIT_RUBRIC:
|
|
32
|
+
customElements.whenDefined(i).then(() => {
|
|
33
|
+
this.setMultiTraitRubricModel(this.multiTraitRubric);
|
|
34
|
+
});
|
|
35
|
+
break;
|
|
36
|
+
case n.RUBRICLESS:
|
|
37
|
+
customElements.whenDefined(r).then(() => {
|
|
38
|
+
this.setRubriclessModel(this.rubricless);
|
|
39
|
+
});
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
t !== this.type && this._render();
|
|
43
|
+
}
|
|
44
|
+
setRubricModel(e) {
|
|
45
|
+
this._model && this._model.rubrics && this._model.rubrics.simpleRubric && (e.model = c(this._model.rubrics.simpleRubric, this._options));
|
|
46
|
+
}
|
|
47
|
+
setMultiTraitRubricModel(e) {
|
|
48
|
+
if (this._model && this._model.rubrics && this._model.rubrics.multiTraitRubric) {
|
|
49
|
+
let { scales: t, excludeZero: n } = this._model.rubrics.multiTraitRubric || {}, r = (t || []).map((e) => ({
|
|
50
|
+
...e,
|
|
51
|
+
excludeZero: n
|
|
52
|
+
}));
|
|
53
|
+
e.model = {
|
|
54
|
+
...c(this._model.rubrics.multiTraitRubric, this._options),
|
|
55
|
+
visible: !0,
|
|
56
|
+
arrowsDisabled: !0,
|
|
57
|
+
scales: r
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
setRubriclessModel(e) {
|
|
62
|
+
this._model && this._model.rubrics && this._model.rubrics.rubricless && (e.model = c(this._model.rubrics.rubricless, this._options));
|
|
63
|
+
}
|
|
64
|
+
set options(e) {
|
|
65
|
+
this._options = e;
|
|
66
|
+
}
|
|
67
|
+
get multiTraitRubric() {
|
|
68
|
+
return this.querySelector(`${i}#multiTraitRubric`);
|
|
69
|
+
}
|
|
70
|
+
get simpleRubric() {
|
|
71
|
+
return this.querySelector(`${r}#simpleRubric`);
|
|
72
|
+
}
|
|
73
|
+
get rubricless() {
|
|
74
|
+
return this.querySelector(`${r}#rubricless`);
|
|
75
|
+
}
|
|
76
|
+
connectedCallback() {
|
|
77
|
+
this._render();
|
|
78
|
+
}
|
|
79
|
+
_render() {
|
|
80
|
+
this.innerHTML = s[this._type] || "";
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
//#endregion
|
|
84
|
+
export { l as default };
|