@pie-lib/config-ui 13.0.4-next.31 → 13.0.4-next.33
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/choice-configuration/feedback-menu.js +1 -1
- package/dist/choice-configuration/index.js +48 -48
- package/dist/choice-utils.js +1 -1
- package/dist/feedback-config/feedback-selector.js +20 -20
- package/dist/feedback-config/index.js +2 -2
- package/dist/help.js +21 -20
- package/dist/index.js +8 -8
- package/dist/langs.js +1 -1
- package/dist/layout/config-layout.js +1 -1
- package/dist/layout/index.js +1 -1
- package/dist/layout/layout-contents.js +1 -1
- package/dist/layout/settings-box.js +7 -6
- package/dist/node_modules/.bun/{@babel_runtime@7.28.6 → @babel_runtime@7.29.7}/node_modules/@babel/runtime/helpers/esm/extends.js +2 -2
- package/dist/node_modules/.bun/{@babel_runtime@7.28.6 → @babel_runtime@7.29.7}/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +3 -3
- package/dist/node_modules/.bun/{@babel_runtime@7.28.6 → @babel_runtime@7.29.7}/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +2 -2
- package/dist/node_modules/.bun/{@babel_runtime@7.28.6 → @babel_runtime@7.29.7}/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +2 -2
- package/dist/node_modules/.bun/react-measure@2.5.2_6dbf9a050bc9aadb/node_modules/react-measure/dist/index.esm.js +3 -3
- package/dist/number-text-field-custom.js +1 -1
- package/dist/number-text-field.js +1 -1
- package/dist/settings/display-size.js +1 -1
- package/dist/settings/index.js +2 -2
- package/dist/settings/panel.js +2 -2
- package/dist/tabs/index.js +1 -1
- package/dist/tags-input/index.js +1 -1
- package/package.json +9 -4
|
@@ -6,22 +6,22 @@ import { styled as a } from "@mui/material/styles";
|
|
|
6
6
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
7
|
import c from "@pie-lib/editable-html-tip-tap";
|
|
8
8
|
import * as l from "@pie-lib/render-ui";
|
|
9
|
-
import { InputContainer as u } from "@pie-lib/render-ui";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
9
|
+
import { InputContainer as u, color as d } from "@pie-lib/render-ui";
|
|
10
|
+
import f from "@mui/material/IconButton";
|
|
11
|
+
import p from "@mui/material/TextField";
|
|
12
|
+
import m from "@mui/icons-material/Delete";
|
|
13
|
+
import h from "@mui/icons-material/SubdirectoryArrowRight";
|
|
14
14
|
//#region src/choice-configuration/index.tsx
|
|
15
|
-
function
|
|
15
|
+
function g(e) {
|
|
16
16
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
return !e ||
|
|
18
|
+
function _(e, t) {
|
|
19
|
+
return !e || g(e) ? e : g(e.default) ? e.default : t && g(e[t]) ? e[t] : t && g(e[t]?.default) ? e[t].default : e;
|
|
20
20
|
}
|
|
21
|
-
var
|
|
21
|
+
var v = _(u, "InputContainer") || _(x.InputContainer, "InputContainer"), y = l, b = y.default, x = b && typeof b == "object" ? b : y, S = a("div")(({ theme: e }) => ({ marginTop: e.spacing(2) })), C = ({ label: e, onChange: t, value: n, className: r, imageSupport: i, disableImageAlignmentButtons: a, disabled: s, spellCheck: l, nonEmpty: u, pluginOpts: d, toolbarOpts: f, error: p, maxImageWidth: m, maxImageHeight: h, uploadSoundSupport: g, mathMlOptions: _ = {} }) => /* @__PURE__ */ o(v, {
|
|
22
22
|
label: e,
|
|
23
23
|
className: r,
|
|
24
|
-
children: /* @__PURE__ */ o(
|
|
24
|
+
children: /* @__PURE__ */ o(S, { children: /* @__PURE__ */ o(c, {
|
|
25
25
|
markup: n || "",
|
|
26
26
|
disabled: s,
|
|
27
27
|
spellCheck: l,
|
|
@@ -36,67 +36,67 @@ var _ = g(u, "InputContainer") || g(b.InputContainer, "InputContainer"), v = l,
|
|
|
36
36
|
maxImageHeight: h,
|
|
37
37
|
uploadSoundSupport: g,
|
|
38
38
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
39
|
-
mathMlOptions:
|
|
39
|
+
mathMlOptions: _
|
|
40
40
|
}) })
|
|
41
|
-
}),
|
|
42
|
-
fill:
|
|
41
|
+
}), w = a("div")(() => ({ position: "relative" })), T = a(h)(() => ({
|
|
42
|
+
fill: d.border(),
|
|
43
43
|
left: -56,
|
|
44
44
|
position: "absolute",
|
|
45
45
|
top: 40
|
|
46
|
-
})),
|
|
46
|
+
})), E = a(p)(({ theme: e }) => ({
|
|
47
47
|
width: "100%",
|
|
48
48
|
marginTop: e.spacing(2)
|
|
49
|
-
})),
|
|
49
|
+
})), D = a(C)(({ theme: e }) => ({
|
|
50
50
|
width: "100%",
|
|
51
51
|
marginTop: e.spacing(2)
|
|
52
|
-
})),
|
|
52
|
+
})), O = ({ value: e, onChange: t, type: n, correct: r, defaults: i, toolbarOpts: a, mathMlOptions: c = {} }) => !n || n === "none" ? null : n === "default" ? /* @__PURE__ */ s(w, { children: [/* @__PURE__ */ o(T, {}), /* @__PURE__ */ o(E, {
|
|
53
53
|
label: "Feedback Text",
|
|
54
54
|
value: r ? i.correct : i.incorrect,
|
|
55
55
|
variant: "standard"
|
|
56
|
-
})] }) : /* @__PURE__ */ s(
|
|
56
|
+
})] }) : /* @__PURE__ */ s(w, { children: [/* @__PURE__ */ o(T, {}), /* @__PURE__ */ o(D, {
|
|
57
57
|
label: "Feedback Text",
|
|
58
58
|
value: e,
|
|
59
59
|
onChange: t,
|
|
60
60
|
toolbarOpts: a,
|
|
61
61
|
mathMlOptions: c
|
|
62
|
-
})] }),
|
|
62
|
+
})] }), k = a("span")(({ theme: e }) => ({
|
|
63
63
|
paddingRight: e.spacing(1),
|
|
64
64
|
paddingTop: e.spacing(3)
|
|
65
|
-
})),
|
|
65
|
+
})), A = a("div")(() => ({
|
|
66
66
|
display: "flex",
|
|
67
67
|
alignItems: "center"
|
|
68
|
-
})),
|
|
68
|
+
})), j = a("div")(({ theme: e }) => ({
|
|
69
69
|
flex: "0 1 auto",
|
|
70
70
|
paddingTop: e.spacing(.5),
|
|
71
71
|
paddingBottom: 0,
|
|
72
72
|
marginRight: 0,
|
|
73
73
|
marginLeft: e.spacing(1)
|
|
74
|
-
})),
|
|
74
|
+
})), M = a("div")(({ theme: e }) => ({
|
|
75
75
|
flex: "0 1 auto",
|
|
76
76
|
paddingTop: e.spacing(2),
|
|
77
77
|
paddingLeft: 0,
|
|
78
78
|
marginLeft: 0,
|
|
79
79
|
marginRight: e.spacing(1)
|
|
80
|
-
})),
|
|
80
|
+
})), N = a("div")(() => ({
|
|
81
81
|
margin: 0,
|
|
82
82
|
width: "inherit"
|
|
83
|
-
})),
|
|
83
|
+
})), P = a("div")(() => ({
|
|
84
84
|
margin: 0,
|
|
85
85
|
width: "inherit"
|
|
86
|
-
})),
|
|
86
|
+
})), F = a("div")(({ theme: e }) => ({
|
|
87
87
|
flex: "0 1 auto",
|
|
88
88
|
paddingTop: e.spacing(2),
|
|
89
89
|
paddingLeft: 0,
|
|
90
90
|
marginLeft: 0
|
|
91
|
-
})),
|
|
91
|
+
})), I = a("div")(({ theme: e }) => ({
|
|
92
92
|
display: "flex",
|
|
93
93
|
flex: 1,
|
|
94
94
|
flexDirection: "column",
|
|
95
95
|
marginRight: e.spacing(1)
|
|
96
|
-
})),
|
|
96
|
+
})), L = a("div")(({ theme: e }) => ({
|
|
97
97
|
fontSize: e.typography.fontSize - 2,
|
|
98
98
|
color: e.palette.error.main
|
|
99
|
-
})),
|
|
99
|
+
})), R = class extends r.Component {
|
|
100
100
|
static propTypes = {
|
|
101
101
|
noLabels: i.bool,
|
|
102
102
|
useLetterOrdering: i.bool,
|
|
@@ -178,26 +178,26 @@ var _ = g(u, "InputContainer") || g(b.InputContainer, "InputContainer"), v = l,
|
|
|
178
178
|
});
|
|
179
179
|
};
|
|
180
180
|
render() {
|
|
181
|
-
let { data: r, mode: i, onDelete: a, defaultFeedback: c, index: l, className: u, noLabels:
|
|
182
|
-
return /* @__PURE__ */ s(
|
|
183
|
-
l > 0 && /* @__PURE__ */ o(
|
|
181
|
+
let { data: r, mode: i, onDelete: a, defaultFeedback: c, index: l, className: u, noLabels: d, useLetterOrdering: p, imageSupport: h, disableImageAlignmentButtons: g, disabled: _, spellCheck: y, nonEmpty: b, allowFeedBack: x, allowDelete: S, pluginOpts: w, toolbarOpts: T, error: E, noCorrectAnswerError: D, uploadSoundSupport: R, maxImageWidth: z, maxImageHeight: B, mathMlOptions: V = {} } = this.props, H = i === "checkbox" ? e : t;
|
|
182
|
+
return /* @__PURE__ */ s(A, { children: [
|
|
183
|
+
l > 0 && /* @__PURE__ */ o(k, {
|
|
184
184
|
type: "title",
|
|
185
|
-
children:
|
|
185
|
+
children: p ? String.fromCharCode(96 + l).toUpperCase() : l
|
|
186
186
|
}),
|
|
187
|
-
/* @__PURE__ */ o(
|
|
187
|
+
/* @__PURE__ */ o(j, { children: /* @__PURE__ */ o(H, {
|
|
188
188
|
onChange: this.onCheckedChange,
|
|
189
|
-
label:
|
|
189
|
+
label: d ? "" : "Correct",
|
|
190
190
|
checked: !!r.correct,
|
|
191
|
-
error:
|
|
191
|
+
error: D
|
|
192
192
|
}) }),
|
|
193
|
-
/* @__PURE__ */ s(
|
|
194
|
-
/* @__PURE__ */ o(
|
|
195
|
-
label:
|
|
193
|
+
/* @__PURE__ */ s(I, { children: [
|
|
194
|
+
/* @__PURE__ */ o(C, {
|
|
195
|
+
label: d ? "" : "Label",
|
|
196
196
|
value: r.label,
|
|
197
197
|
onChange: this.onLabelChange,
|
|
198
198
|
imageSupport: h,
|
|
199
199
|
disableImageAlignmentButtons: g,
|
|
200
|
-
disabled:
|
|
200
|
+
disabled: _,
|
|
201
201
|
spellCheck: y,
|
|
202
202
|
nonEmpty: b,
|
|
203
203
|
pluginOpts: w,
|
|
@@ -208,8 +208,8 @@ var _ = g(u, "InputContainer") || g(b.InputContainer, "InputContainer"), v = l,
|
|
|
208
208
|
maxImageWidth: z,
|
|
209
209
|
maxImageHeight: B
|
|
210
210
|
}),
|
|
211
|
-
E && /* @__PURE__ */ o(
|
|
212
|
-
x && /* @__PURE__ */ o(
|
|
211
|
+
E && /* @__PURE__ */ o(L, { children: E }),
|
|
212
|
+
x && /* @__PURE__ */ o(O, {
|
|
213
213
|
...r.feedback,
|
|
214
214
|
correct: r.correct,
|
|
215
215
|
defaults: c,
|
|
@@ -217,24 +217,24 @@ var _ = g(u, "InputContainer") || g(b.InputContainer, "InputContainer"), v = l,
|
|
|
217
217
|
toolbarOpts: T
|
|
218
218
|
})
|
|
219
219
|
] }),
|
|
220
|
-
x && /* @__PURE__ */ o(
|
|
221
|
-
label:
|
|
222
|
-
children: /* @__PURE__ */ o(
|
|
220
|
+
x && /* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(v, {
|
|
221
|
+
label: d ? "" : "Feedback",
|
|
222
|
+
children: /* @__PURE__ */ o(N, { children: /* @__PURE__ */ o(n, {
|
|
223
223
|
onChange: this.onFeedbackTypeChange,
|
|
224
224
|
value: r.feedback
|
|
225
225
|
}) })
|
|
226
226
|
}) }),
|
|
227
|
-
|
|
228
|
-
label:
|
|
229
|
-
children: /* @__PURE__ */ o(
|
|
227
|
+
S && /* @__PURE__ */ o(F, { children: /* @__PURE__ */ o(v, {
|
|
228
|
+
label: d ? "" : "Delete",
|
|
229
|
+
children: /* @__PURE__ */ o(P, { children: /* @__PURE__ */ o(f, {
|
|
230
230
|
"aria-label": "delete",
|
|
231
231
|
onClick: a,
|
|
232
232
|
size: "large",
|
|
233
|
-
children: /* @__PURE__ */ o(
|
|
233
|
+
children: /* @__PURE__ */ o(m, {})
|
|
234
234
|
}) })
|
|
235
235
|
}) })
|
|
236
236
|
] });
|
|
237
237
|
}
|
|
238
238
|
};
|
|
239
239
|
//#endregion
|
|
240
|
-
export {
|
|
240
|
+
export { R as ChoiceConfiguration, R as default };
|
package/dist/choice-utils.js
CHANGED
|
@@ -5,33 +5,33 @@ import { styled as r } from "@mui/material/styles";
|
|
|
5
5
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
6
|
import o from "@pie-lib/editable-html-tip-tap";
|
|
7
7
|
import * as s from "@pie-lib/render-ui";
|
|
8
|
-
import { InputContainer as c } from "@pie-lib/render-ui";
|
|
8
|
+
import { InputContainer as c, color as l } from "@pie-lib/render-ui";
|
|
9
9
|
//#region src/feedback-config/feedback-selector.tsx
|
|
10
|
-
function
|
|
10
|
+
function u(e) {
|
|
11
11
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
return !e ||
|
|
13
|
+
function d(e, t) {
|
|
14
|
+
return !e || u(e) ? e : u(e.default) ? e.default : t && u(e[t]) ? e[t] : t && u(e[t]?.default) ? e[t].default : e;
|
|
15
15
|
}
|
|
16
|
-
var
|
|
16
|
+
var f = d(c, "InputContainer") || d(h.InputContainer, "InputContainer"), p = s, m = p.default, h = m && typeof m == "object" ? m : p, g = r(o)(({ theme: e }) => ({ fontFamily: e.typography.fontFamily })), _ = {
|
|
17
17
|
default: "Simple Feedback",
|
|
18
18
|
none: "No Feedback",
|
|
19
19
|
custom: "Customized Feedback"
|
|
20
|
-
},
|
|
20
|
+
}, v = r("div")(({ theme: e }) => ({ marginBottom: e.spacing(1) })), y = r(f)(() => ({ paddingBottom: 0 })), b = r("div")(({ theme: e }) => ({
|
|
21
21
|
marginTop: "0px",
|
|
22
|
-
background:
|
|
22
|
+
background: l.backgroundDark(),
|
|
23
23
|
padding: 0,
|
|
24
24
|
marginBottom: e.spacing(2),
|
|
25
25
|
borderRadius: "4px"
|
|
26
|
-
})),
|
|
26
|
+
})), x = r("div")(({ theme: e }) => ({
|
|
27
27
|
marginTop: "0px",
|
|
28
|
-
background:
|
|
28
|
+
background: l.backgroundDark(),
|
|
29
29
|
padding: e.spacing(2),
|
|
30
30
|
marginBottom: e.spacing(2),
|
|
31
31
|
borderRadius: "4px",
|
|
32
32
|
fontFamily: e.typography.fontFamily,
|
|
33
33
|
cursor: "default"
|
|
34
|
-
})),
|
|
34
|
+
})), S = r(e)(({ theme: e }) => ({ paddingTop: e.spacing(1) })), C = {
|
|
35
35
|
type: n.oneOf([
|
|
36
36
|
"default",
|
|
37
37
|
"custom",
|
|
@@ -39,11 +39,11 @@ var d = u(c, "InputContainer") || u(m.InputContainer, "InputContainer"), f = s,
|
|
|
39
39
|
]),
|
|
40
40
|
default: n.string,
|
|
41
41
|
custom: n.string
|
|
42
|
-
},
|
|
42
|
+
}, w = class extends t.Component {
|
|
43
43
|
static propTypes = {
|
|
44
44
|
keys: n.arrayOf(n.string),
|
|
45
45
|
label: n.string.isRequired,
|
|
46
|
-
feedback: n.shape(
|
|
46
|
+
feedback: n.shape(C).isRequired,
|
|
47
47
|
onChange: n.func.isRequired,
|
|
48
48
|
toolbarOpts: n.object,
|
|
49
49
|
mathMlOptions: n.object
|
|
@@ -65,28 +65,28 @@ var d = u(c, "InputContainer") || u(m.InputContainer, "InputContainer"), f = s,
|
|
|
65
65
|
};
|
|
66
66
|
render() {
|
|
67
67
|
let { keys: e, label: t, feedback: n, toolbarOpts: r, mathMlOptions: o = {} } = this.props;
|
|
68
|
-
return /* @__PURE__ */ a(
|
|
69
|
-
/* @__PURE__ */ i(
|
|
68
|
+
return /* @__PURE__ */ a(v, { children: [
|
|
69
|
+
/* @__PURE__ */ i(y, {
|
|
70
70
|
label: t,
|
|
71
71
|
extraClasses: { label: { transform: "translateY(-20%)" } },
|
|
72
|
-
children: /* @__PURE__ */ i(
|
|
73
|
-
keys: e || Object.keys(
|
|
72
|
+
children: /* @__PURE__ */ i(S, {
|
|
73
|
+
keys: e || Object.keys(_),
|
|
74
74
|
label: t,
|
|
75
75
|
value: n.type,
|
|
76
76
|
onChange: this.changeType,
|
|
77
|
-
feedbackLabels:
|
|
77
|
+
feedbackLabels: _
|
|
78
78
|
})
|
|
79
79
|
}),
|
|
80
|
-
n.type === "custom" && /* @__PURE__ */ i(
|
|
80
|
+
n.type === "custom" && /* @__PURE__ */ i(b, { children: /* @__PURE__ */ i(g, {
|
|
81
81
|
onChange: this.changeCustom,
|
|
82
82
|
markup: n.custom || "",
|
|
83
83
|
toolbarOpts: r,
|
|
84
84
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
85
85
|
mathMlOptions: o
|
|
86
86
|
}) }),
|
|
87
|
-
n.type === "default" && /* @__PURE__ */ a(
|
|
87
|
+
n.type === "default" && /* @__PURE__ */ a(x, { children: [" ", n.default] })
|
|
88
88
|
] });
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
91
|
//#endregion
|
|
92
|
-
export {
|
|
92
|
+
export { w as FeedbackSelector, w as default, C as FeedbackType };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,
|
|
1
|
+
import { FeedbackSelector as e, FeedbackType as t } from "./feedback-selector.js";
|
|
2
2
|
import n from "react";
|
|
3
3
|
import r from "prop-types";
|
|
4
4
|
import { styled as i } from "@mui/material/styles";
|
|
@@ -93,4 +93,4 @@ var p = i("div")(() => ({
|
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
//#endregion
|
|
96
|
-
export {
|
|
96
|
+
export { g as FeedbackConfig, g as default, e as FeedbackSelector, h as buildDefaults };
|
package/dist/help.js
CHANGED
|
@@ -2,41 +2,42 @@ import e from "react";
|
|
|
2
2
|
import t from "prop-types";
|
|
3
3
|
import { styled as n } from "@mui/material/styles";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
import a from "@
|
|
6
|
-
import o from "@mui/material/
|
|
7
|
-
import s from "@mui/material/
|
|
8
|
-
import c from "@mui/material/
|
|
9
|
-
import l from "@mui/material/
|
|
10
|
-
import u from "@mui/material/
|
|
11
|
-
import d from "@mui/
|
|
12
|
-
import f from "@mui/material/
|
|
5
|
+
import { color as a } from "@pie-lib/render-ui";
|
|
6
|
+
import o from "@mui/material/Dialog";
|
|
7
|
+
import s from "@mui/material/DialogTitle";
|
|
8
|
+
import c from "@mui/material/DialogContentText";
|
|
9
|
+
import l from "@mui/material/DialogContent";
|
|
10
|
+
import u from "@mui/material/DialogActions";
|
|
11
|
+
import d from "@mui/material/Button";
|
|
12
|
+
import f from "@mui/icons-material/Help";
|
|
13
|
+
import p from "@mui/material/IconButton";
|
|
13
14
|
//#region src/help.tsx
|
|
14
|
-
var
|
|
15
|
+
var m = n(p)(() => ({ "&:hover": { color: a.borderLight() } })), h = ({ onClick: e }) => /* @__PURE__ */ r(m, {
|
|
15
16
|
onClick: e,
|
|
16
17
|
size: "large",
|
|
17
|
-
children: /* @__PURE__ */ r(
|
|
18
|
+
children: /* @__PURE__ */ r(f, {})
|
|
18
19
|
});
|
|
19
|
-
|
|
20
|
-
var
|
|
20
|
+
h.propTypes = { onClick: t.func };
|
|
21
|
+
var g = ({ open: e, onClose: t, children: n, title: a }) => /* @__PURE__ */ i(o, {
|
|
21
22
|
open: e,
|
|
22
23
|
onClose: t,
|
|
23
24
|
children: [
|
|
24
|
-
/* @__PURE__ */ r(
|
|
25
|
-
/* @__PURE__ */ r(
|
|
26
|
-
/* @__PURE__ */ r(
|
|
25
|
+
/* @__PURE__ */ r(s, { children: a }),
|
|
26
|
+
/* @__PURE__ */ r(l, { children: /* @__PURE__ */ r(c, { children: n }) }),
|
|
27
|
+
/* @__PURE__ */ r(u, { children: /* @__PURE__ */ r(d, {
|
|
27
28
|
onClick: t,
|
|
28
29
|
color: "primary",
|
|
29
30
|
children: "OK"
|
|
30
31
|
}) })
|
|
31
32
|
]
|
|
32
33
|
});
|
|
33
|
-
|
|
34
|
+
g.propTypes = {
|
|
34
35
|
open: t.bool,
|
|
35
36
|
onClose: t.func,
|
|
36
37
|
children: t.oneOfType([t.arrayOf(t.node), t.node]).isRequired,
|
|
37
38
|
title: t.string.isRequired
|
|
38
39
|
};
|
|
39
|
-
var
|
|
40
|
+
var _ = class extends e.Component {
|
|
40
41
|
static propTypes = {
|
|
41
42
|
children: t.oneOfType([t.arrayOf(t.node), t.node]).isRequired,
|
|
42
43
|
title: t.string
|
|
@@ -46,10 +47,10 @@ var g = class extends e.Component {
|
|
|
46
47
|
}
|
|
47
48
|
render() {
|
|
48
49
|
let { children: e, title: t } = this.props;
|
|
49
|
-
return /* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r(
|
|
50
|
+
return /* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r(h, {
|
|
50
51
|
color: "accent",
|
|
51
52
|
onClick: () => this.setState({ open: !0 })
|
|
52
|
-
}), /* @__PURE__ */ r(
|
|
53
|
+
}), /* @__PURE__ */ r(g, {
|
|
53
54
|
open: this.state.open,
|
|
54
55
|
title: t,
|
|
55
56
|
onClose: () => this.setState({ open: !1 }),
|
|
@@ -58,4 +59,4 @@ var g = class extends e.Component {
|
|
|
58
59
|
}
|
|
59
60
|
};
|
|
60
61
|
//#endregion
|
|
61
|
-
export { g as default };
|
|
62
|
+
export { h as HelpButton, g as HelpDialog, _ as default };
|
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import e from "./alert-dialog.js";
|
|
2
|
-
import t from "./feedback-config/feedback-selector.js";
|
|
3
|
-
import n,
|
|
2
|
+
import { FeedbackSelector as t } from "./feedback-config/feedback-selector.js";
|
|
3
|
+
import { FeedbackConfig as n, buildDefaults as r } from "./feedback-config/index.js";
|
|
4
4
|
import { InputCheckbox as i, InputRadio as a, InputSwitch as o } from "./inputs.js";
|
|
5
|
-
import s,
|
|
6
|
-
import l from "./tabs/index.js";
|
|
5
|
+
import { Langs as s, LanguageControls as c } from "./langs.js";
|
|
6
|
+
import { Tabs as l } from "./tabs/index.js";
|
|
7
7
|
import u from "./checkbox.js";
|
|
8
8
|
import d from "./form-section.js";
|
|
9
9
|
import f from "./help.js";
|
|
10
10
|
import p from "./input.js";
|
|
11
|
-
import m from "./number-text-field.js";
|
|
12
|
-
import h from "./number-text-field-custom.js";
|
|
11
|
+
import { NumberTextField as m } from "./number-text-field.js";
|
|
12
|
+
import { NumberTextFieldCustom as h } from "./number-text-field-custom.js";
|
|
13
13
|
import g, { NChoice as _ } from "./two-choice.js";
|
|
14
14
|
import v from "./mui-box/index.js";
|
|
15
|
-
import y from "./tags-input/index.js";
|
|
16
|
-
import b from "./choice-configuration/index.js";
|
|
15
|
+
import { TagsInput as y } from "./tags-input/index.js";
|
|
16
|
+
import { ChoiceConfiguration as b } from "./choice-configuration/index.js";
|
|
17
17
|
import { layout_exports as x } from "./layout/index.js";
|
|
18
18
|
import { choice_utils_exports as S } from "./choice-utils.js";
|
|
19
19
|
import C from "./with-stateful-model.js";
|
package/dist/langs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e, { withContentRect as t } from "../node_modules/.bun/react-measure@2.5.2_6dbf9a050bc9aadb/node_modules/react-measure/dist/index.esm.js";
|
|
2
2
|
import n from "./layout-contents.js";
|
|
3
|
-
import r from "./settings-box.js";
|
|
3
|
+
import { SettingsBox as r } from "./settings-box.js";
|
|
4
4
|
import i from "react";
|
|
5
5
|
import a from "prop-types";
|
|
6
6
|
import { StyledEngineProvider as o, ThemeProvider as s, createTheme as c } from "@mui/material/styles";
|
package/dist/layout/index.js
CHANGED
|
@@ -2,10 +2,11 @@ import e from "react";
|
|
|
2
2
|
import t from "prop-types";
|
|
3
3
|
import { styled as n } from "@mui/material/styles";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
import { color as i } from "@pie-lib/render-ui";
|
|
5
6
|
//#region src/layout/settings-box.tsx
|
|
6
|
-
var
|
|
7
|
-
backgroundColor:
|
|
8
|
-
border: `2px solid ${
|
|
7
|
+
var a = n("div")(() => ({
|
|
8
|
+
backgroundColor: i.white(),
|
|
9
|
+
border: `2px solid ${i.border()}`,
|
|
9
10
|
display: "flex",
|
|
10
11
|
flexDirection: "column",
|
|
11
12
|
justifyContent: "flex-start",
|
|
@@ -13,7 +14,7 @@ var i = n("div")(({ theme: e }) => ({
|
|
|
13
14
|
maxWidth: "300px",
|
|
14
15
|
padding: "20px 4px 4px 20px",
|
|
15
16
|
zIndex: 99
|
|
16
|
-
})),
|
|
17
|
+
})), o = class extends e.Component {
|
|
17
18
|
static propTypes = {
|
|
18
19
|
className: t.string,
|
|
19
20
|
children: t.oneOfType([t.arrayOf(t.node), t.node]).isRequired
|
|
@@ -21,11 +22,11 @@ var i = n("div")(({ theme: e }) => ({
|
|
|
21
22
|
static defaultProps = {};
|
|
22
23
|
render() {
|
|
23
24
|
let { className: e, children: t } = this.props;
|
|
24
|
-
return /* @__PURE__ */ r(
|
|
25
|
+
return /* @__PURE__ */ r(a, {
|
|
25
26
|
className: e,
|
|
26
27
|
children: t
|
|
27
28
|
});
|
|
28
29
|
}
|
|
29
30
|
};
|
|
30
31
|
//#endregion
|
|
31
|
-
export {
|
|
32
|
+
export { o as SettingsBox, o as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../../node_modules/.bun/@babel+runtime@7.
|
|
1
|
+
//#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
2
2
|
function e() {
|
|
3
3
|
return e = Object.assign ? Object.assign.bind() : function(e) {
|
|
4
4
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -9,4 +9,4 @@ function e() {
|
|
|
9
9
|
}, e.apply(null, arguments);
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
|
-
export { e as
|
|
12
|
+
export { e as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
//#region ../../../node_modules/.bun/@babel+runtime@7.
|
|
1
|
+
import e from "./setPrototypeOf.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
3
3
|
function t(t, n) {
|
|
4
4
|
t.prototype = Object.create(n.prototype), t.prototype.constructor = t, e(t, n);
|
|
5
5
|
}
|
|
6
6
|
//#endregion
|
|
7
|
-
export { t as
|
|
7
|
+
export { t as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../../node_modules/.bun/@babel+runtime@7.
|
|
1
|
+
//#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
2
2
|
function e(e, t) {
|
|
3
3
|
if (e == null) return {};
|
|
4
4
|
var n = {};
|
|
@@ -9,4 +9,4 @@ function e(e, t) {
|
|
|
9
9
|
return n;
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
|
-
export { e as
|
|
12
|
+
export { e as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
//#region ../../../node_modules/.bun/@babel+runtime@7.
|
|
1
|
+
//#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
2
2
|
function e(t, n) {
|
|
3
3
|
return e = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
4
4
|
return e.__proto__ = t, e;
|
|
5
5
|
}, e(t, n);
|
|
6
6
|
}
|
|
7
7
|
//#endregion
|
|
8
|
-
export { e as
|
|
8
|
+
export { e as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import e from "../../../../@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js";
|
|
2
|
+
import t from "../../../../@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";
|
|
3
|
+
import n from "../../../../@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js";
|
|
4
4
|
import r from "../../../../resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
5
5
|
import { Component as i, createElement as a } from "react";
|
|
6
6
|
import o from "prop-types";
|
package/dist/settings/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import t from "./panel.js";
|
|
2
|
+
import { Panel as t } from "./panel.js";
|
|
3
3
|
//#region src/settings/index.ts
|
|
4
4
|
var n = /* @__PURE__ */ e({
|
|
5
5
|
Panel: () => t,
|
|
@@ -60,4 +60,4 @@ var n = /* @__PURE__ */ e({
|
|
|
60
60
|
choices: t
|
|
61
61
|
});
|
|
62
62
|
//#endregion
|
|
63
|
-
export { n as settings_exports };
|
|
63
|
+
export { t as Panel, u as checkbox, d as checkboxes, s as dropdown, c as numberField, l as numberFields, o as radio, n as settings_exports, r as textField, i as toggle };
|
package/dist/settings/panel.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import e from "../checkbox.js";
|
|
2
|
-
import t from "../number-text-field.js";
|
|
2
|
+
import { NumberTextField as t } from "../number-text-field.js";
|
|
3
3
|
import { NChoice as n } from "../two-choice.js";
|
|
4
4
|
import r from "./toggle.js";
|
|
5
5
|
import i from "./settings-radio-label.js";
|
|
@@ -198,4 +198,4 @@ var L = class extends a.Component {
|
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
200
|
//#endregion
|
|
201
|
-
export { L as default };
|
|
201
|
+
export { L as Panel, L as default };
|
package/dist/tabs/index.js
CHANGED
package/dist/tags-input/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-lib/config-ui",
|
|
3
|
-
"version": "13.0.4-next.
|
|
3
|
+
"version": "13.0.4-next.33",
|
|
4
4
|
"description": "React implementation of @pie-lib/config-ui synced from pie-lib",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/pie-framework/pie-elements-ng.git",
|
|
8
|
+
"directory": "packages/lib-react/config-ui"
|
|
9
|
+
},
|
|
5
10
|
"dependencies": {
|
|
6
11
|
"@emotion/react": "^11.14.0",
|
|
7
|
-
"@emotion/
|
|
12
|
+
"@emotion/styled": "^11.14.1",
|
|
8
13
|
"@mui/icons-material": "^7.3.4",
|
|
9
14
|
"@mui/material": "^7.3.4",
|
|
10
|
-
"@pie-lib/editable-html-tip-tap": "2.1.2-next.
|
|
15
|
+
"@pie-lib/editable-html-tip-tap": "2.1.2-next.33",
|
|
11
16
|
"@pie-lib/icons": "4.0.2",
|
|
12
|
-
"@pie-lib/render-ui": "6.1.1-next.
|
|
17
|
+
"@pie-lib/render-ui": "6.1.1-next.39",
|
|
13
18
|
"assert": "^1.4.1",
|
|
14
19
|
"debug": "^4.1.1",
|
|
15
20
|
"prop-types": "^15.6.2",
|