@pie-element/complex-rubric 7.1.1-next.0 → 7.1.1-next.29

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.
Files changed (118) hide show
  1. package/CHANGELOG.md +1439 -0
  2. package/LICENSE.md +5 -0
  3. package/README.md +3 -0
  4. package/configure/CHANGELOG.md +1093 -0
  5. package/configure/lib/defaults.js +271 -0
  6. package/configure/lib/defaults.js.map +1 -0
  7. package/configure/lib/index.js +150 -0
  8. package/configure/lib/index.js.map +1 -0
  9. package/configure/lib/main.js +172 -0
  10. package/configure/lib/main.js.map +1 -0
  11. package/configure/package.json +27 -0
  12. package/configure/src/__tests__/index.test.js +94 -0
  13. package/configure/src/__tests__/main.test.jsx +140 -0
  14. package/configure/src/defaults.js +213 -0
  15. package/configure/src/index.js +169 -0
  16. package/configure/src/main.jsx +162 -0
  17. package/controller/CHANGELOG.md +932 -0
  18. package/controller/lib/defaults.js +42 -0
  19. package/controller/lib/defaults.js.map +1 -0
  20. package/controller/lib/index.js +239 -0
  21. package/controller/lib/index.js.map +1 -0
  22. package/controller/lib/utils.js +11 -0
  23. package/controller/lib/utils.js.map +1 -0
  24. package/controller/package.json +16 -0
  25. package/controller/src/__tests__/index.test.js +55 -0
  26. package/controller/src/defaults.js +39 -0
  27. package/controller/src/index.js +220 -0
  28. package/controller/src/utils.js +3 -0
  29. package/docs/config-schema.json +4255 -0
  30. package/docs/config-schema.json.md +3162 -0
  31. package/docs/demo/config.js +8 -0
  32. package/docs/demo/generate.js +196 -0
  33. package/docs/demo/index.html +1 -0
  34. package/docs/demo/session.js +6 -0
  35. package/docs/pie-schema.json +3302 -0
  36. package/docs/pie-schema.json.md +2364 -0
  37. package/lib/index.js +141 -0
  38. package/lib/index.js.map +1 -0
  39. package/lib/print.js +129 -0
  40. package/lib/print.js.map +1 -0
  41. package/module/configure.js +1 -0
  42. package/module/controller.js +262 -0
  43. package/module/demo.js +221 -0
  44. package/module/element.js +1 -0
  45. package/module/index.html +21 -0
  46. package/module/manifest.json +22 -0
  47. package/module/print-demo.js +259 -0
  48. package/module/print.html +18 -0
  49. package/module/print.js +1 -0
  50. package/package.json +20 -57
  51. package/src/__tests__/index.test.js +256 -0
  52. package/src/index.js +152 -0
  53. package/src/print.js +140 -0
  54. package/dist/author/defaults.d.ts +0 -231
  55. package/dist/author/defaults.js +0 -177
  56. package/dist/author/index.d.ts +0 -34
  57. package/dist/author/index.js +0 -87
  58. package/dist/author/main.d.ts +0 -23
  59. package/dist/author/main.js +0 -106
  60. package/dist/controller/defaults.d.ts +0 -39
  61. package/dist/controller/defaults.js +0 -42
  62. package/dist/controller/index.d.ts +0 -25
  63. package/dist/controller/index.js +0 -107
  64. package/dist/controller/utils.d.ts +0 -9
  65. package/dist/controller/utils.js +0 -4
  66. package/dist/delivery/index.d.ts +0 -23
  67. package/dist/delivery/index.js +0 -96
  68. package/dist/index.d.ts +0 -1
  69. package/dist/index.iife.d.ts +0 -8
  70. package/dist/index.iife.js +0 -145
  71. package/dist/index.js +0 -2
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +0 -12
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +0 -13
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +0 -9
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +0 -14
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +0 -7
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +0 -5
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +0 -10
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +0 -4
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +0 -9
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +0 -6
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +0 -8
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js +0 -12
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +0 -11
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +0 -8
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +0 -8
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +0 -9
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +0 -13
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +0 -6
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +0 -14
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +0 -15
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +0 -8
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/defaults.js +0 -16
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +0 -6
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +0 -6
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +0 -10
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +0 -9
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +0 -6
  117. package/dist/print/index.d.ts +0 -24
  118. package/dist/print/index.js +0 -84
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
1
- import e from "./delivery/index.js";
2
- export { e as default };
@@ -1,5 +0,0 @@
1
- import e from "./_root.js";
2
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js
3
- var t = e.Symbol;
4
- //#endregion
5
- export { t as default };
@@ -1,12 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/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 };
@@ -1,15 +0,0 @@
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.18.1/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 };
@@ -1,10 +0,0 @@
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.18.1/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 };
@@ -1,9 +0,0 @@
1
- import e from "./_baseGetTag.js";
2
- import t from "./isObjectLike.js";
3
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/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 };
@@ -1,11 +0,0 @@
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.18.1/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 };
@@ -1,11 +0,0 @@
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.18.1/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 };
@@ -1,13 +0,0 @@
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.18.1/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 };
@@ -1,9 +0,0 @@
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.18.1/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 };
@@ -1,14 +0,0 @@
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.18.1/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 };
@@ -1,7 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js
2
- function e(e, t) {
3
- for (var n = -1, r = Array(e); ++n < e;) r[n] = t(n);
4
- return r;
5
- }
6
- //#endregion
7
- export { e as default };
@@ -1,8 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js
2
- function e(e) {
3
- return function(t) {
4
- return e(t);
5
- };
6
- }
7
- //#endregion
8
- export { e as default };
@@ -1,5 +0,0 @@
1
- import e from "./_root.js";
2
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js
3
- var t = e["__core-js_shared__"];
4
- //#endregion
5
- export { t as default };
@@ -1,10 +0,0 @@
1
- import e from "./_getNative.js";
2
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/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 };
@@ -1,4 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js
2
- var e = typeof global == "object" && global && global.Object === Object && global;
3
- //#endregion
4
- export { e as default };
@@ -1,9 +0,0 @@
1
- import e from "./_baseIsNative.js";
2
- import t from "./_getValue.js";
3
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/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 };
@@ -1,14 +0,0 @@
1
- import e from "./_Symbol.js";
2
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/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 };
@@ -1,6 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js
2
- function e(e, t) {
3
- return e?.[t];
4
- }
5
- //#endregion
6
- export { e as default };
@@ -1,8 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/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 };
@@ -1,12 +0,0 @@
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.18.1/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 };
@@ -1,11 +0,0 @@
1
- import e from "./_coreJsData.js";
2
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/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 };
@@ -1,8 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/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 };
@@ -1,8 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js
2
- function e(e) {
3
- var t = [];
4
- if (e != null) for (var n in Object(e)) t.push(n);
5
- return t;
6
- }
7
- //#endregion
8
- export { e as default };
@@ -1,9 +0,0 @@
1
- import e from "./_freeGlobal.js";
2
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/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 };
@@ -1,7 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
2
- var e = Object.prototype.toString;
3
- function t(t) {
4
- return e.call(t);
5
- }
6
- //#endregion
7
- export { t as default };
@@ -1,13 +0,0 @@
1
- import e from "./_apply.js";
2
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/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 };
@@ -1,5 +0,0 @@
1
- import e from "./_freeGlobal.js";
2
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/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 };
@@ -1,6 +0,0 @@
1
- import e from "./_shortOut.js";
2
- import t from "./_baseSetToString.js";
3
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js
4
- var n = e(t);
5
- //#endregion
6
- export { n as default };
@@ -1,14 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/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 };
@@ -1,15 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/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 };
@@ -1,8 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js
2
- function e(e) {
3
- return function() {
4
- return e;
5
- };
6
- }
7
- //#endregion
8
- export { e as default };
@@ -1,16 +0,0 @@
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.18.1/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 };
@@ -1,6 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js
2
- function e(e, t) {
3
- return e === t || e !== e && t !== t;
4
- }
5
- //#endregion
6
- export { e as default };
@@ -1,6 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js
2
- function e(e) {
3
- return e;
4
- }
5
- //#endregion
6
- export { e as default };
@@ -1,10 +0,0 @@
1
- import e from "./isObjectLike.js";
2
- import t from "./_baseIsArguments.js";
3
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/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 };
@@ -1,4 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js
2
- var e = Array.isArray;
3
- //#endregion
4
- export { e as default };
@@ -1,8 +0,0 @@
1
- import e from "./isFunction.js";
2
- import t from "./isLength.js";
3
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/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 };
@@ -1,6 +0,0 @@
1
- import e from "./_root.js";
2
- import t from "./stubFalse.js";
3
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/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 };
@@ -1,11 +0,0 @@
1
- import e from "./_baseGetTag.js";
2
- import t from "./isObject.js";
3
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/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 };
@@ -1,7 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js
2
- var e = 9007199254740991;
3
- function t(t) {
4
- return typeof t == "number" && t > -1 && t % 1 == 0 && t <= e;
5
- }
6
- //#endregion
7
- export { t as default };
@@ -1,7 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
2
- function e(e) {
3
- var t = typeof e;
4
- return e != null && (t == "object" || t == "function");
5
- }
6
- //#endregion
7
- export { e as default };
@@ -1,6 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
2
- function e(e) {
3
- return typeof e == "object" && !!e;
4
- }
5
- //#endregion
6
- export { e as default };
@@ -1,7 +0,0 @@
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.18.1/node_modules/lodash-es/isTypedArray.js
5
- var r = n && n.isTypedArray, i = r ? t(r) : e;
6
- //#endregion
7
- export { i as default };
@@ -1,9 +0,0 @@
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.18.1/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 };
@@ -1,6 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js
2
- function e() {
3
- return !1;
4
- }
5
- //#endregion
6
- export { e as default };
@@ -1,24 +0,0 @@
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;
@@ -1,84 +0,0 @@
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 };