@pie-element/likert 4.1.2-next.29 → 4.1.2-next.30
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/browser/{Radio-05Um-DXk.js → Radio-CrAgJWRZ.js} +416 -377
- package/dist/browser/{Radio-05Um-DXk.js.map → Radio-CrAgJWRZ.js.map} +1 -1
- package/dist/browser/author/index.js +7742 -7741
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/delivery/index.js +19 -19
- package/dist/browser/editor-runtime/{Radio-CQodEm7S.js → Radio-eQHaAUDA.js} +944 -905
- package/dist/browser/editor-runtime/{Radio-CQodEm7S.js.map → Radio-eQHaAUDA.js.map} +1 -1
- package/dist/browser/editor-runtime/author/index.js +3791 -3790
- package/dist/browser/editor-runtime/author/index.js.map +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +16 -16
- package/dist/index.iife.js +21 -21
- package/package.json +5 -5
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { At as e, D as t, Dt as n, T as r, Tt as i, ct as a, d as o, i as s, o as c, t as l, y as u } from "../Radio-CrAgJWRZ.js";
|
|
2
2
|
import d from "react";
|
|
3
3
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
4
4
|
import { createRoot as m } from "react-dom/client";
|
|
5
5
|
//#region src/delivery/likertEntities.ts
|
|
6
|
-
var h = /* @__PURE__ */
|
|
6
|
+
var h = /* @__PURE__ */ e(n(), 1), g = {
|
|
7
7
|
horizontal: "horizontal",
|
|
8
8
|
vertical: "vertical"
|
|
9
|
-
}, _ =
|
|
10
|
-
color: `var(--choice-input-color, ${
|
|
11
|
-
"&.Mui-checked": { color: `var(--choice-input-selected-color, ${
|
|
12
|
-
"&.Mui-disabled": { color: `var(--choice-input-disabled-color, ${
|
|
13
|
-
}), v =
|
|
14
|
-
color:
|
|
9
|
+
}, _ = a(l)({
|
|
10
|
+
color: `var(--choice-input-color, ${i.text()})`,
|
|
11
|
+
"&.Mui-checked": { color: `var(--choice-input-selected-color, ${i.primary()})` },
|
|
12
|
+
"&.Mui-disabled": { color: `var(--choice-input-disabled-color, ${i.defaults.DISABLED})` }
|
|
13
|
+
}), v = a("p")({
|
|
14
|
+
color: i.text(),
|
|
15
15
|
textAlign: "center",
|
|
16
16
|
cursor: "pointer"
|
|
17
|
-
}), y =
|
|
17
|
+
}), y = a("div")({
|
|
18
18
|
display: "flex",
|
|
19
19
|
alignItems: "center",
|
|
20
20
|
flex: 1,
|
|
21
21
|
padding: "0 5px",
|
|
22
22
|
"& label": {}
|
|
23
|
-
}), b = s
|
|
23
|
+
}), b = a(s)({ margin: 0 }), x = class extends d.Component {
|
|
24
24
|
static propTypes = {
|
|
25
25
|
checked: h.default.bool.isRequired,
|
|
26
26
|
disabled: h.default.bool.isRequired,
|
|
@@ -62,15 +62,15 @@ function S(e) {
|
|
|
62
62
|
function C(e, t) {
|
|
63
63
|
return !e || S(e) ? e : S(e.default) ? e.default : t && S(e[t]) ? e[t] : t && S(e[t]?.default) ? e[t].default : e;
|
|
64
64
|
}
|
|
65
|
-
var w = C(
|
|
66
|
-
color:
|
|
67
|
-
backgroundColor:
|
|
65
|
+
var w = C(o, "PreviewPrompt") || C(O.PreviewPrompt, "PreviewPrompt"), T = C(r, "Collapsible") || C(O.Collapsible, "Collapsible"), E = c, D = E.default, O = D && typeof D == "object" ? D : E, k = a("div")({
|
|
66
|
+
color: i.text(),
|
|
67
|
+
backgroundColor: i.background(),
|
|
68
68
|
"& *": { "-webkit-font-smoothing": "antialiased" }
|
|
69
|
-
}), A =
|
|
69
|
+
}), A = a(T)(({ theme: e }) => ({ marginBottom: e.spacing(2) })), j = a("div")(({ theme: e }) => ({
|
|
70
70
|
verticalAlign: "middle",
|
|
71
71
|
color: "var(--pie-primary-text, var(--pie-text, #000000))",
|
|
72
72
|
paddingBottom: e.spacing(2)
|
|
73
|
-
})), M =
|
|
73
|
+
})), M = a("div")({ display: "flex" }), N = class extends d.Component {
|
|
74
74
|
static propTypes = {
|
|
75
75
|
className: h.default.string,
|
|
76
76
|
choices: h.default.array,
|
|
@@ -123,7 +123,7 @@ function P(e) {
|
|
|
123
123
|
function F(e, t) {
|
|
124
124
|
return !e || P(e) ? e : P(e.default) ? e.default : t && P(e[t]) ? e[t] : t && P(e[t]?.default) ? e[t].default : e;
|
|
125
125
|
}
|
|
126
|
-
var I = F(u, "PreviewLayout") || F(z.PreviewLayout, "PreviewLayout"), L =
|
|
126
|
+
var I = F(u, "PreviewLayout") || F(z.PreviewLayout, "PreviewLayout"), L = c, R = L.default, z = R && typeof R == "object" ? R : L, B = class extends d.Component {
|
|
127
127
|
static propTypes = {
|
|
128
128
|
model: h.default.object,
|
|
129
129
|
session: h.default.object,
|
|
@@ -198,13 +198,13 @@ var V = class e extends CustomEvent {
|
|
|
198
198
|
}
|
|
199
199
|
_render() {
|
|
200
200
|
if (!this._model || !this._session) return;
|
|
201
|
-
let
|
|
201
|
+
let e = d.createElement(B, {
|
|
202
202
|
model: this._model,
|
|
203
203
|
session: this._session,
|
|
204
204
|
onSessionChange: this.sessionChanged.bind(this)
|
|
205
205
|
});
|
|
206
|
-
this._root ||= m(this), this._root.render(
|
|
207
|
-
|
|
206
|
+
this._root ||= m(this), this._root.render(e), queueMicrotask(() => {
|
|
207
|
+
t(this);
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
210
|
disconnectedCallback() {
|