@pie-element/categorize 13.1.2-next.5 → 13.1.2-next.7
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 +0 -1
- package/dist/author/defaults.js +2 -4
- package/dist/author/design/buttons.js +3 -3
- package/dist/author/design/categories/alternateResponses.js +2 -2
- package/dist/author/design/categories/category.js +2 -2
- package/dist/author/design/categories/choice-preview.js +1 -1
- package/dist/author/design/categories/droppable-placeholder.js +1 -1
- package/dist/author/design/categories/index.js +3 -3
- package/dist/author/design/choices/choice.js +2 -2
- package/dist/author/design/choices/config.js +1 -1
- package/dist/author/design/choices/index.js +3 -3
- package/dist/author/design/header.js +1 -1
- package/dist/author/design/index.js +78 -68
- package/dist/author/design/input-header.js +1 -1
- package/dist/author/index.d.ts +0 -1
- package/dist/author/index.js +2 -2
- package/dist/author/main.js +2 -2
- package/dist/author/utils.js +1 -1
- package/dist/browser/alert-dialog-BtccZZm9.js +11509 -0
- package/dist/browser/alert-dialog-BtccZZm9.js.map +1 -0
- package/dist/browser/author/index.js +41841 -834
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/controller/index.js +196 -123
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/delivery/index.js +294 -293
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/browser/{dist-DnGF41FP.js → dist-C11U2GIc.js} +301 -388
- package/dist/browser/dist-C11U2GIc.js.map +1 -0
- package/dist/browser/rolldown-runtime-CWhphoD1.js +32 -0
- package/dist/controller/defaults.d.ts +0 -1
- package/dist/controller/defaults.js +2 -4
- package/dist/controller/index.d.ts +1 -0
- package/dist/controller/index.js +92 -79
- package/dist/delivery/categorize/categories.js +3 -3
- package/dist/delivery/categorize/category.js +1 -1
- package/dist/delivery/categorize/choice.js +1 -1
- package/dist/delivery/categorize/choices.js +1 -1
- package/dist/delivery/categorize/grid-content.js +1 -1
- package/dist/delivery/categorize/index.js +3 -3
- package/dist/delivery/index.js +2 -2
- package/dist/index.iife.js +33 -33
- package/package.json +17 -10
- package/dist/browser/dist-7UsF60Ks.js +0 -55705
- package/dist/browser/dist-7UsF60Ks.js.map +0 -1
- package/dist/browser/dist-DnGF41FP.js.map +0 -1
package/dist/author/defaults.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { multiplePlacements as e } from "./utils.js";
|
|
2
1
|
//#region src/author/defaults.ts
|
|
3
|
-
var
|
|
2
|
+
var e = {
|
|
4
3
|
model: {
|
|
5
4
|
allowAlternateEnabled: !0,
|
|
6
5
|
allowMaxChoicesPerCategory: !1,
|
|
7
|
-
allowMultiplePlacementsEnabled: e.enabled,
|
|
8
6
|
alternates: [],
|
|
9
7
|
categories: [],
|
|
10
8
|
categoriesPerRow: 2,
|
|
@@ -167,4 +165,4 @@ var t = {
|
|
|
167
165
|
}
|
|
168
166
|
};
|
|
169
167
|
//#endregion
|
|
170
|
-
export {
|
|
168
|
+
export { e as default };
|
|
@@ -22,10 +22,10 @@ var a = n(i)(({ theme: e }) => ({ height: e.spacing(4) })), o = class extends e.
|
|
|
22
22
|
children: e
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
}, s = n(i)({
|
|
25
|
+
}, s = o, c = n(i)({
|
|
26
26
|
margin: 0,
|
|
27
27
|
padding: 0
|
|
28
|
-
}),
|
|
28
|
+
}), l = ({ label: e, onClick: t, disabled: n }) => /* @__PURE__ */ r(c, {
|
|
29
29
|
onClick: t,
|
|
30
30
|
size: "small",
|
|
31
31
|
color: "primary",
|
|
@@ -33,4 +33,4 @@ var a = n(i)(({ theme: e }) => ({ height: e.spacing(4) })), o = class extends e.
|
|
|
33
33
|
children: e
|
|
34
34
|
});
|
|
35
35
|
//#endregion
|
|
36
|
-
export {
|
|
36
|
+
export { s as AddButton, l as DeleteButton, o as RawAddButton };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from "./category.js";
|
|
1
|
+
import { Category as e } from "./category.js";
|
|
2
2
|
import t from "react";
|
|
3
3
|
import n from "prop-types";
|
|
4
4
|
import { styled as r } from "@mui/material/styles";
|
|
@@ -59,4 +59,4 @@ var s = r("div")(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), c = r("d
|
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
//#endregion
|
|
62
|
-
export { u as default };
|
|
62
|
+
export { u as AlternateResponses, u as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from "../input-header.js";
|
|
1
|
+
import { InputHeader as e } from "../input-header.js";
|
|
2
2
|
import { DeleteButton as t } from "../buttons.js";
|
|
3
3
|
import n from "./droppable-placeholder.js";
|
|
4
4
|
import r from "react";
|
|
@@ -95,4 +95,4 @@ var u = a(c, { shouldForwardProp: (e) => e !== "isDuplicated" })(({ theme: e, is
|
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
//#endregion
|
|
98
|
-
export { m as default };
|
|
98
|
+
export { m as Category, m as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import e from "./category.js";
|
|
2
|
-
import t from "../header.js";
|
|
1
|
+
import { Category as e } from "./category.js";
|
|
2
|
+
import { Header as t } from "../header.js";
|
|
3
3
|
import { generateValidationMessage as n } from "../../utils.js";
|
|
4
4
|
import { RowLabel as r } from "./RowLabel.js";
|
|
5
5
|
import i from "react";
|
|
@@ -143,4 +143,4 @@ var m = o("div")(({ theme: e }) => ({ marginBottom: e.spacing(3) })), h = o("div
|
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
145
|
//#endregion
|
|
146
|
-
export { v as default };
|
|
146
|
+
export { v as Categories, v as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from "../input-header.js";
|
|
1
|
+
import { InputHeader as e } from "../input-header.js";
|
|
2
2
|
import { DeleteButton as t } from "../buttons.js";
|
|
3
3
|
import { multiplePlacements as n } from "../../utils.js";
|
|
4
4
|
import "react";
|
|
@@ -17,7 +17,7 @@ i("@pie-element:categorize:configure:choice");
|
|
|
17
17
|
var h = (e) => {
|
|
18
18
|
if (e.lockChoiceOrder) return !0;
|
|
19
19
|
let t = e.choice.categoryCount || 0;
|
|
20
|
-
return t === 0
|
|
20
|
+
return t === 0 || e.correctResponseCount < t;
|
|
21
21
|
}, g = a(f)(({ theme: e }) => ({
|
|
22
22
|
minWidth: "196px",
|
|
23
23
|
padding: e.spacing(1),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import e from "../header.js";
|
|
1
|
+
import { Header as e } from "../header.js";
|
|
2
2
|
import t from "./choice.js";
|
|
3
|
-
import n from "./config.js";
|
|
3
|
+
import { Config as n } from "./config.js";
|
|
4
4
|
import r from "react";
|
|
5
5
|
import i from "prop-types";
|
|
6
6
|
import { styled as a } from "@mui/material/styles";
|
|
@@ -107,4 +107,4 @@ var u = a("div")(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), d = a("d
|
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
109
|
//#endregion
|
|
110
|
-
export { p as default };
|
|
110
|
+
export { p as Choices, p as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { getPluginProps as e } from "./utils.js";
|
|
2
|
-
import t from "./categories/choice-preview.js";
|
|
3
|
-
import n from "./header.js";
|
|
2
|
+
import { ChoicePreview as t } from "./categories/choice-preview.js";
|
|
3
|
+
import { Header as n } from "./header.js";
|
|
4
4
|
import { getMaxCategoryChoices as r, multiplePlacements as i } from "../utils.js";
|
|
5
|
-
import a from "./categories/index.js";
|
|
6
|
-
import o from "./categories/alternateResponses.js";
|
|
5
|
+
import { Categories as a } from "./categories/index.js";
|
|
6
|
+
import { AlternateResponses as o } from "./categories/alternateResponses.js";
|
|
7
7
|
import s from "./choices/choice.js";
|
|
8
|
-
import c from "./choices/index.js";
|
|
8
|
+
import { Choices as c } from "./choices/index.js";
|
|
9
9
|
import { buildAlternateResponses as l, buildCategories as u } from "./builder.js";
|
|
10
10
|
import d from "react";
|
|
11
11
|
import { renderMath as f } from "@pie-element/shared-math-rendering-mathjax";
|
|
@@ -30,16 +30,16 @@ var { translator: ae } = E, { dropdown: A, Panel: oe, toggle: j, radio: M, numbe
|
|
|
30
30
|
children: this.props.children
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
},
|
|
33
|
+
}, le = m(n)(({ theme: e }) => ({ marginBottom: e.spacing(2) })), P = m(D)(({ theme: e }) => ({
|
|
34
34
|
width: "100%",
|
|
35
35
|
paddingTop: e.spacing(1),
|
|
36
36
|
marginTop: e.spacing(1),
|
|
37
37
|
marginBottom: e.spacing(2)
|
|
38
|
-
})),
|
|
38
|
+
})), F = m("div")(({ theme: e }) => ({
|
|
39
39
|
fontSize: e.typography.fontSize - 2,
|
|
40
40
|
color: e.palette.error.main,
|
|
41
41
|
paddingTop: e.spacing(1)
|
|
42
|
-
})),
|
|
42
|
+
})), I = class extends d.Component {
|
|
43
43
|
static propTypes = {
|
|
44
44
|
configuration: p.object,
|
|
45
45
|
className: p.string,
|
|
@@ -115,7 +115,7 @@ var { translator: ae } = E, { dropdown: A, Panel: oe, toggle: j, radio: M, numbe
|
|
|
115
115
|
checkAllowMultiplePlacements = (e, t) => e === i.enabled ? 0 : e === i.disabled ? 1 : t.categoryCount || 0;
|
|
116
116
|
isAlertModalOpened = () => {
|
|
117
117
|
let { model: e } = this.props, { maxChoicesPerCategory: t = 0 } = e || {}, n = r(e);
|
|
118
|
-
return t
|
|
118
|
+
return t !== 0 && n > t;
|
|
119
119
|
};
|
|
120
120
|
onAlertModalCancel = () => {
|
|
121
121
|
let { model: e } = this.props, t = r(e);
|
|
@@ -225,12 +225,16 @@ var { translator: ae } = E, { dropdown: A, Panel: oe, toggle: j, radio: M, numbe
|
|
|
225
225
|
return null;
|
|
226
226
|
};
|
|
227
227
|
render() {
|
|
228
|
-
let { configuration: t, imageSupport: n, model: r, uploadSoundSupport: s, onConfigurationChanged: f } = this.props, { allowAlternate: p = {}, allowMultiplePlacements: m = {}, baseInputConfiguration: h = {}, categoriesPerRow: g = {}, choicesPosition: _ = {}, contentDimensions: v = {}, feedback: y = {}, lockChoiceOrder: b = {}, maxImageHeight: x = {}, maxImageWidth: S = {}, maxPlacements: C = {}, minCategoriesPerRow: E = 1, partialScoring: D = {}, prompt: O = {}, rationale:
|
|
229
|
-
|
|
228
|
+
let { configuration: t, imageSupport: n, model: r, uploadSoundSupport: s, onConfigurationChanged: f } = this.props, { allowAlternate: p = {}, allowMultiplePlacements: m = {}, baseInputConfiguration: h = {}, categoriesPerRow: g = {}, choicesPosition: _ = {}, contentDimensions: v = {}, feedback: y = {}, lockChoiceOrder: b = {}, maxImageHeight: x = {}, maxImageWidth: S = {}, maxPlacements: C = {}, minCategoriesPerRow: E = 1, partialScoring: D = {}, prompt: O = {}, rationale: I = {}, scoringType: L = {}, settingsPanelDisabled: ue, spellCheck: R = {}, studentInstructions: z = {}, teacherInstructions: B = {}, withRubric: V = {}, mathMlOptions: H = {}, language: U = {}, languageChoices: W = {}, allowMaxAnswerChoices: de = {} } = t || {}, { allowAlternateEnabled: fe, allowMaxChoicesPerCategory: pe, errors: me, feedbackEnabled: he, maxChoicesPerCategory: ge, promptEnabled: _e, rationaleEnabled: ve, spellCheckEnabled: G, teacherInstructionsEnabled: ye, toolbarEditorPosition: be, extraCSSRules: xe } = r || {}, { prompt: K, rationale: q, teacherInstructions: J } = me || {}, Y = { position: be === "top" ? "top" : "bottom" }, Se = r.config || {};
|
|
229
|
+
Se.choices = Se.choices || {
|
|
230
230
|
label: "",
|
|
231
231
|
columns: 2
|
|
232
232
|
};
|
|
233
|
-
let
|
|
233
|
+
let Ce = u(r.categories || [], r.choices || [], r.correctResponse || []), we = l(r.categories || [], r.choices || [], r.correctResponse || []), X = (() => {
|
|
234
|
+
if (r.allowMultiplePlacementsEnabled != null) return r.allowMultiplePlacementsEnabled;
|
|
235
|
+
let e = (r.correctResponse || []).flatMap((e) => e.choices || []);
|
|
236
|
+
return e.length === new Set(e).size ? i.disabled : i.enabled;
|
|
237
|
+
})(), Z = r.choices.map((e) => (e.correctResponseCount = this.countChoiceInCorrectResponse(e), e.categoryCount = this.checkAllowMultiplePlacements(X, e), e)), Q = S && S.prompt, $ = x && x.prompt, Te = {
|
|
234
238
|
partialScoring: D.settings && j(D.label),
|
|
235
239
|
lockChoiceOrder: b.settings && j(b.label),
|
|
236
240
|
categoriesPerRow: g.settings && N(g.label, {
|
|
@@ -249,13 +253,13 @@ var { translator: ae } = E, { dropdown: A, Panel: oe, toggle: j, radio: M, numbe
|
|
|
249
253
|
i.disabled,
|
|
250
254
|
i.perChoice
|
|
251
255
|
]),
|
|
252
|
-
maxAnswerChoices:
|
|
256
|
+
maxAnswerChoices: de.settings && N(de.label, {
|
|
253
257
|
label: "",
|
|
254
|
-
min:
|
|
258
|
+
min: Z?.length || 0,
|
|
255
259
|
max: 30
|
|
256
260
|
}),
|
|
257
261
|
allowMaxChoicesPerCategory: C.settings && j(C.label),
|
|
258
|
-
maxChoicesPerCategory:
|
|
262
|
+
maxChoicesPerCategory: pe === !0 && N(C.label, {
|
|
259
263
|
label: "",
|
|
260
264
|
min: 0,
|
|
261
265
|
max: 30
|
|
@@ -263,18 +267,18 @@ var { translator: ae } = E, { dropdown: A, Panel: oe, toggle: j, radio: M, numbe
|
|
|
263
267
|
promptEnabled: O.settings && j(O.label),
|
|
264
268
|
feedbackEnabled: y.settings && j(y.label),
|
|
265
269
|
allowAlternateEnabled: p.settings && j(p.label),
|
|
266
|
-
"language.enabled":
|
|
267
|
-
language:
|
|
268
|
-
},
|
|
269
|
-
teacherInstructionsEnabled:
|
|
270
|
-
studentInstructionsEnabled:
|
|
271
|
-
rationaleEnabled:
|
|
272
|
-
spellCheckEnabled:
|
|
273
|
-
scoringType:
|
|
274
|
-
rubricEnabled:
|
|
275
|
-
},
|
|
270
|
+
"language.enabled": U.settings && j(U.label, !0),
|
|
271
|
+
language: U.settings && U.enabled && A(W.label, W.options)
|
|
272
|
+
}, Ee = {
|
|
273
|
+
teacherInstructionsEnabled: B.settings && j(B.label),
|
|
274
|
+
studentInstructionsEnabled: z.settings && j(z.label),
|
|
275
|
+
rationaleEnabled: I.settings && j(I.label),
|
|
276
|
+
spellCheckEnabled: R.settings && j(R.label),
|
|
277
|
+
scoringType: L.settings && M(L.label, ["auto", "rubric"]),
|
|
278
|
+
rubricEnabled: V?.settings && j(V?.label)
|
|
279
|
+
}, De = this.isAlertModalOpened(), Oe = ae.t("translation:categorize:maxChoicesPerCategoryRestriction", {
|
|
276
280
|
lng: r.language,
|
|
277
|
-
maxChoicesPerCategory:
|
|
281
|
+
maxChoicesPerCategory: ge
|
|
278
282
|
});
|
|
279
283
|
return /* @__PURE__ */ w(te, {
|
|
280
284
|
onDragStart: this.onDragStart,
|
|
@@ -282,94 +286,100 @@ var { translator: ae } = E, { dropdown: A, Panel: oe, toggle: j, radio: M, numbe
|
|
|
282
286
|
children: /* @__PURE__ */ T(se, {
|
|
283
287
|
value: this.uid,
|
|
284
288
|
children: [/* @__PURE__ */ T(ie.ConfigLayout, {
|
|
285
|
-
extraCSSRules:
|
|
289
|
+
extraCSSRules: xe,
|
|
286
290
|
dimensions: v,
|
|
287
|
-
hideSettings:
|
|
291
|
+
hideSettings: ue,
|
|
288
292
|
settings: /* @__PURE__ */ w(oe, {
|
|
289
|
-
model:
|
|
293
|
+
model: {
|
|
294
|
+
...r,
|
|
295
|
+
allowMultiplePlacementsEnabled: X
|
|
296
|
+
},
|
|
290
297
|
onChangeModel: this.updateModel,
|
|
291
298
|
configuration: t,
|
|
292
299
|
onChangeConfiguration: f,
|
|
293
300
|
groups: {
|
|
294
|
-
Settings:
|
|
295
|
-
Properties:
|
|
301
|
+
Settings: Te,
|
|
302
|
+
Properties: Ee
|
|
296
303
|
},
|
|
297
304
|
modal: /* @__PURE__ */ w(ne, {
|
|
298
305
|
title: "Warning",
|
|
299
|
-
text:
|
|
300
|
-
open:
|
|
306
|
+
text: Oe,
|
|
307
|
+
open: De,
|
|
301
308
|
onClose: this.onAlertModalCancel
|
|
302
309
|
})
|
|
303
310
|
}),
|
|
304
311
|
children: [
|
|
305
|
-
|
|
306
|
-
label:
|
|
312
|
+
ye && /* @__PURE__ */ T(P, {
|
|
313
|
+
label: B.label,
|
|
307
314
|
children: [/* @__PURE__ */ w(k, {
|
|
308
315
|
markup: r.teacherInstructions || "",
|
|
309
316
|
onChange: this.changeTeacherInstructions,
|
|
310
317
|
imageSupport: n,
|
|
311
|
-
error:
|
|
318
|
+
error: J,
|
|
312
319
|
nonEmpty: !1,
|
|
313
|
-
toolbarOpts:
|
|
314
|
-
pluginProps: e(
|
|
315
|
-
spellCheck:
|
|
320
|
+
toolbarOpts: Y,
|
|
321
|
+
pluginProps: e(B?.inputConfiguration, h),
|
|
322
|
+
spellCheck: G,
|
|
316
323
|
maxImageWidth: S && S.teacherInstructions || Q,
|
|
317
324
|
maxImageHeight: x && x.teacherInstructions || $,
|
|
318
325
|
uploadSoundSupport: s,
|
|
319
326
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
320
|
-
mathMlOptions:
|
|
321
|
-
}),
|
|
327
|
+
mathMlOptions: H
|
|
328
|
+
}), J && /* @__PURE__ */ w(F, { children: J })]
|
|
322
329
|
}),
|
|
323
|
-
|
|
330
|
+
_e && /* @__PURE__ */ T(P, {
|
|
324
331
|
label: O.label,
|
|
325
332
|
children: [/* @__PURE__ */ w(k, {
|
|
326
333
|
markup: r.prompt || "",
|
|
327
334
|
onChange: this.onPromptChanged,
|
|
328
335
|
imageSupport: n,
|
|
329
|
-
error:
|
|
336
|
+
error: K,
|
|
330
337
|
nonEmpty: !1,
|
|
331
338
|
disableUnderline: !0,
|
|
332
|
-
toolbarOpts:
|
|
339
|
+
toolbarOpts: Y,
|
|
333
340
|
pluginProps: e(O?.inputConfiguration, h),
|
|
334
|
-
spellCheck:
|
|
341
|
+
spellCheck: G,
|
|
335
342
|
maxImageWidth: S && S.prompt,
|
|
336
343
|
maxImageHeight: x && x.prompt,
|
|
337
344
|
uploadSoundSupport: s,
|
|
338
345
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
339
|
-
mathMlOptions:
|
|
340
|
-
}),
|
|
346
|
+
mathMlOptions: H
|
|
347
|
+
}), K && /* @__PURE__ */ w(F, { children: K })]
|
|
341
348
|
}),
|
|
342
349
|
/* @__PURE__ */ w(a, {
|
|
343
350
|
imageSupport: n,
|
|
344
351
|
uploadSoundSupport: s,
|
|
345
352
|
model: r,
|
|
346
|
-
categories:
|
|
353
|
+
categories: Ce || [],
|
|
347
354
|
onModelChanged: this.updateModel,
|
|
348
|
-
toolbarOpts:
|
|
349
|
-
spellCheck:
|
|
355
|
+
toolbarOpts: Y,
|
|
356
|
+
spellCheck: G,
|
|
350
357
|
configuration: t,
|
|
351
358
|
defaultImageMaxWidth: Q,
|
|
352
359
|
defaultImageMaxHeight: $,
|
|
353
|
-
mathMlOptions:
|
|
360
|
+
mathMlOptions: H
|
|
354
361
|
}),
|
|
355
362
|
/* @__PURE__ */ w(c, {
|
|
356
363
|
imageSupport: n,
|
|
357
364
|
uploadSoundSupport: s,
|
|
358
|
-
choices:
|
|
359
|
-
model:
|
|
365
|
+
choices: Z,
|
|
366
|
+
model: {
|
|
367
|
+
...r,
|
|
368
|
+
allowMultiplePlacementsEnabled: X
|
|
369
|
+
},
|
|
360
370
|
onModelChanged: this.updateModel,
|
|
361
|
-
toolbarOpts:
|
|
362
|
-
spellCheck:
|
|
371
|
+
toolbarOpts: Y,
|
|
372
|
+
spellCheck: G,
|
|
363
373
|
configuration: t,
|
|
364
374
|
defaultImageMaxWidth: Q,
|
|
365
375
|
defaultImageMaxHeight: $
|
|
366
376
|
}),
|
|
367
|
-
|
|
377
|
+
fe && /* @__PURE__ */ w(le, {
|
|
368
378
|
label: "Alternate Responses",
|
|
369
379
|
buttonLabel: "ADD AN ALTERNATE RESPONSE",
|
|
370
380
|
onAdd: this.onAddAlternateResponse
|
|
371
381
|
}),
|
|
372
|
-
|
|
382
|
+
fe && we.map((e, i) => /* @__PURE__ */ T(d.Fragment, { children: [/* @__PURE__ */ w(le, {
|
|
373
383
|
variant: "subtitle1",
|
|
374
384
|
label: "Alternate Response",
|
|
375
385
|
buttonLabel: "REMOVE ALTERNATE RESPONSE",
|
|
@@ -382,30 +392,30 @@ var { translator: ae } = E, { dropdown: A, Panel: oe, toggle: j, radio: M, numbe
|
|
|
382
392
|
categories: e,
|
|
383
393
|
onModelChanged: this.updateModel,
|
|
384
394
|
uploadSoundSupport: s,
|
|
385
|
-
mathMlOptions:
|
|
395
|
+
mathMlOptions: H
|
|
386
396
|
})] }, i)),
|
|
387
|
-
|
|
388
|
-
label:
|
|
397
|
+
ve && /* @__PURE__ */ T(P, {
|
|
398
|
+
label: I.label,
|
|
389
399
|
children: [/* @__PURE__ */ w(k, {
|
|
390
400
|
markup: r.rationale || "",
|
|
391
401
|
onChange: this.changeRationale,
|
|
392
402
|
imageSupport: n,
|
|
393
|
-
error:
|
|
403
|
+
error: q,
|
|
394
404
|
nonEmpty: !1,
|
|
395
|
-
toolbarOpts:
|
|
405
|
+
toolbarOpts: Y,
|
|
396
406
|
pluginProps: e(O?.inputConfiguration, h),
|
|
397
|
-
spellCheck:
|
|
407
|
+
spellCheck: G,
|
|
398
408
|
maxImageWidth: S && S.rationale || Q,
|
|
399
409
|
maxImageHeight: x && x.rationale || $,
|
|
400
410
|
uploadSoundSupport: s,
|
|
401
411
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
402
|
-
mathMlOptions:
|
|
403
|
-
}),
|
|
412
|
+
mathMlOptions: H
|
|
413
|
+
}), q && /* @__PURE__ */ w(F, { children: q })]
|
|
404
414
|
}),
|
|
405
|
-
|
|
415
|
+
he && /* @__PURE__ */ w(re, {
|
|
406
416
|
feedback: r.feedback,
|
|
407
417
|
onChange: this.changeFeedback,
|
|
408
|
-
toolbarOpts:
|
|
418
|
+
toolbarOpts: Y
|
|
409
419
|
})
|
|
410
420
|
]
|
|
411
421
|
}), /* @__PURE__ */ w(ee, { children: /* @__PURE__ */ w(ce, { children: this.renderDragOverlay() }) })]
|
|
@@ -414,4 +424,4 @@ var { translator: ae } = E, { dropdown: A, Panel: oe, toggle: j, radio: M, numbe
|
|
|
414
424
|
}
|
|
415
425
|
};
|
|
416
426
|
//#endregion
|
|
417
|
-
export {
|
|
427
|
+
export { I as Design, I as default };
|
package/dist/author/index.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ export default class CategorizeConfigure extends HTMLElement {
|
|
|
10
10
|
static createDefaultModel: (model?: {}) => {
|
|
11
11
|
allowAlternateEnabled: boolean;
|
|
12
12
|
allowMaxChoicesPerCategory: boolean;
|
|
13
|
-
allowMultiplePlacementsEnabled: string;
|
|
14
13
|
alternates: never[];
|
|
15
14
|
categories: never[];
|
|
16
15
|
categoriesPerRow: number;
|
package/dist/author/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from "./main.js";
|
|
1
|
+
import { Main as e } from "./main.js";
|
|
2
2
|
import t from "./defaults.js";
|
|
3
3
|
import n from "react";
|
|
4
4
|
import { createRoot as r } from "react-dom/client";
|
|
@@ -80,7 +80,7 @@ var u = class u extends HTMLElement {
|
|
|
80
80
|
}, 0);
|
|
81
81
|
}
|
|
82
82
|
disconnectedCallback() {
|
|
83
|
-
this._root
|
|
83
|
+
this._root &&= (this._root.unmount(), null);
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
//#endregion
|
package/dist/author/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from "./design/index.js";
|
|
1
|
+
import { Design as e } from "./design/index.js";
|
|
2
2
|
import t from "react";
|
|
3
3
|
import n from "prop-types";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
@@ -27,4 +27,4 @@ var i = class extends t.Component {
|
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
//#endregion
|
|
30
|
-
export { i as default };
|
|
30
|
+
export { i as Main, i as default };
|
package/dist/author/utils.js
CHANGED