@pie-element/categorize 13.1.2-next.4 → 13.1.2-next.6

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 (45) hide show
  1. package/dist/author/defaults.d.ts +0 -1
  2. package/dist/author/defaults.js +2 -4
  3. package/dist/author/design/buttons.js +3 -3
  4. package/dist/author/design/categories/alternateResponses.js +2 -2
  5. package/dist/author/design/categories/category.js +2 -2
  6. package/dist/author/design/categories/choice-preview.js +1 -1
  7. package/dist/author/design/categories/droppable-placeholder.js +1 -1
  8. package/dist/author/design/categories/index.js +3 -3
  9. package/dist/author/design/choices/choice.js +2 -2
  10. package/dist/author/design/choices/config.js +1 -1
  11. package/dist/author/design/choices/index.js +3 -3
  12. package/dist/author/design/header.js +1 -1
  13. package/dist/author/design/index.js +78 -68
  14. package/dist/author/design/input-header.js +1 -1
  15. package/dist/author/index.d.ts +0 -1
  16. package/dist/author/index.js +2 -2
  17. package/dist/author/main.js +2 -2
  18. package/dist/author/utils.js +1 -1
  19. package/dist/browser/alert-dialog-BtccZZm9.js +11509 -0
  20. package/dist/browser/alert-dialog-BtccZZm9.js.map +1 -0
  21. package/dist/browser/author/index.js +41841 -834
  22. package/dist/browser/author/index.js.map +1 -1
  23. package/dist/browser/controller/index.js +196 -123
  24. package/dist/browser/controller/index.js.map +1 -1
  25. package/dist/browser/delivery/index.js +294 -293
  26. package/dist/browser/delivery/index.js.map +1 -1
  27. package/dist/browser/{dist-DnGF41FP.js → dist-C11U2GIc.js} +301 -388
  28. package/dist/browser/dist-C11U2GIc.js.map +1 -0
  29. package/dist/browser/rolldown-runtime-CWhphoD1.js +32 -0
  30. package/dist/controller/defaults.d.ts +0 -1
  31. package/dist/controller/defaults.js +2 -4
  32. package/dist/controller/index.d.ts +1 -0
  33. package/dist/controller/index.js +92 -79
  34. package/dist/delivery/categorize/categories.js +3 -3
  35. package/dist/delivery/categorize/category.js +1 -1
  36. package/dist/delivery/categorize/choice.js +1 -1
  37. package/dist/delivery/categorize/choices.js +1 -1
  38. package/dist/delivery/categorize/grid-content.js +1 -1
  39. package/dist/delivery/categorize/index.js +3 -3
  40. package/dist/delivery/index.js +2 -2
  41. package/dist/index.iife.js +33 -33
  42. package/package.json +15 -10
  43. package/dist/browser/dist-7UsF60Ks.js +0 -55705
  44. package/dist/browser/dist-7UsF60Ks.js.map +0 -1
  45. package/dist/browser/dist-DnGF41FP.js.map +0 -1
@@ -10,7 +10,6 @@ declare const _default: {
10
10
  model: {
11
11
  allowAlternateEnabled: boolean;
12
12
  allowMaxChoicesPerCategory: boolean;
13
- allowMultiplePlacementsEnabled: string;
14
13
  alternates: never[];
15
14
  categories: never[];
16
15
  categoriesPerRow: number;
@@ -1,10 +1,8 @@
1
- import { multiplePlacements as e } from "./utils.js";
2
1
  //#region src/author/defaults.ts
3
- var t = {
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 { t as default };
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
- }), c = ({ label: e, onClick: t, disabled: n }) => /* @__PURE__ */ r(s, {
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 { o as AddButton, c as DeleteButton };
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 };
@@ -57,4 +57,4 @@ var p = f(n, "HtmlAndMath") || f(g.HtmlAndMath, "HtmlAndMath"), m = t, h = m.def
57
57
  }
58
58
  };
59
59
  //#endregion
60
- export { y as default };
60
+ export { y as ChoicePreview, y as default };
@@ -1,4 +1,4 @@
1
- import e from "./choice-preview.js";
1
+ import { ChoicePreview as e } from "./choice-preview.js";
2
2
  import t from "react";
3
3
  import n from "prop-types";
4
4
  import r from "debug";
@@ -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 ? !0 : e.correctResponseCount < t;
20
+ return t === 0 || e.correctResponseCount < t;
21
21
  }, g = a(f)(({ theme: e }) => ({
22
22
  minWidth: "196px",
23
23
  padding: e.spacing(1),
@@ -30,4 +30,4 @@ var a = n("div")(({ theme: e }) => ({
30
30
  }
31
31
  };
32
32
  //#endregion
33
- export { s as default };
33
+ export { s as Config, s as default };
@@ -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 };
@@ -46,4 +46,4 @@ var c = r("div")(({ theme: e }) => ({
46
46
  }
47
47
  };
48
48
  //#endregion
49
- export { d as default };
49
+ export { d as Header, d 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
- }, P = m(n)(({ theme: e }) => ({ marginBottom: e.spacing(2) })), F = m(D)(({ theme: e }) => ({
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
- })), I = m("div")(({ theme: e }) => ({
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
- })), L = class extends d.Component {
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 === 0 ? !1 : n > 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: L = {}, scoringType: R = {}, settingsPanelDisabled: le, spellCheck: z = {}, studentInstructions: B = {}, teacherInstructions: V = {}, withRubric: H = {}, mathMlOptions: U = {}, language: W = {}, languageChoices: G = {}, allowMaxAnswerChoices: K = {} } = t || {}, { allowAlternateEnabled: ue, allowMaxChoicesPerCategory: de, errors: fe, feedbackEnabled: pe, maxChoicesPerCategory: me, promptEnabled: he, rationaleEnabled: ge, spellCheckEnabled: q, teacherInstructionsEnabled: _e, toolbarEditorPosition: ve, extraCSSRules: ye } = r || {}, { prompt: J, rationale: Y, teacherInstructions: X } = fe || {}, Z = { position: ve === "top" ? "top" : "bottom" }, be = r.config || {};
229
- be.choices = be.choices || {
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 xe = u(r.categories || [], r.choices || [], r.correctResponse || []), Se = l(r.categories || [], r.choices || [], r.correctResponse || []), Ce = r.choices.map((e) => (e.correctResponseCount = this.countChoiceInCorrectResponse(e), e.categoryCount = this.checkAllowMultiplePlacements(r.allowMultiplePlacementsEnabled, e), e)), Q = S && S.prompt, $ = x && x.prompt, we = {
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: K.settings && N(K.label, {
256
+ maxAnswerChoices: de.settings && N(de.label, {
253
257
  label: "",
254
- min: Ce?.length || 0,
258
+ min: Z?.length || 0,
255
259
  max: 30
256
260
  }),
257
261
  allowMaxChoicesPerCategory: C.settings && j(C.label),
258
- maxChoicesPerCategory: de === !0 && N(C.label, {
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": W.settings && j(W.label, !0),
267
- language: W.settings && W.enabled && A(G.label, G.options)
268
- }, Te = {
269
- teacherInstructionsEnabled: V.settings && j(V.label),
270
- studentInstructionsEnabled: B.settings && j(B.label),
271
- rationaleEnabled: L.settings && j(L.label),
272
- spellCheckEnabled: z.settings && j(z.label),
273
- scoringType: R.settings && M(R.label, ["auto", "rubric"]),
274
- rubricEnabled: H?.settings && j(H?.label)
275
- }, Ee = this.isAlertModalOpened(), De = ae.t("translation:categorize:maxChoicesPerCategoryRestriction", {
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: me
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: ye,
289
+ extraCSSRules: xe,
286
290
  dimensions: v,
287
- hideSettings: le,
291
+ hideSettings: ue,
288
292
  settings: /* @__PURE__ */ w(oe, {
289
- model: r,
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: we,
295
- Properties: Te
301
+ Settings: Te,
302
+ Properties: Ee
296
303
  },
297
304
  modal: /* @__PURE__ */ w(ne, {
298
305
  title: "Warning",
299
- text: De,
300
- open: Ee,
306
+ text: Oe,
307
+ open: De,
301
308
  onClose: this.onAlertModalCancel
302
309
  })
303
310
  }),
304
311
  children: [
305
- _e && /* @__PURE__ */ T(F, {
306
- label: V.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: X,
318
+ error: J,
312
319
  nonEmpty: !1,
313
- toolbarOpts: Z,
314
- pluginProps: e(V?.inputConfiguration, h),
315
- spellCheck: q,
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: U
321
- }), X && /* @__PURE__ */ w(I, { children: X })]
327
+ mathMlOptions: H
328
+ }), J && /* @__PURE__ */ w(F, { children: J })]
322
329
  }),
323
- he && /* @__PURE__ */ T(F, {
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: J,
336
+ error: K,
330
337
  nonEmpty: !1,
331
338
  disableUnderline: !0,
332
- toolbarOpts: Z,
339
+ toolbarOpts: Y,
333
340
  pluginProps: e(O?.inputConfiguration, h),
334
- spellCheck: q,
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: U
340
- }), J && /* @__PURE__ */ w(I, { children: J })]
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: xe || [],
353
+ categories: Ce || [],
347
354
  onModelChanged: this.updateModel,
348
- toolbarOpts: Z,
349
- spellCheck: q,
355
+ toolbarOpts: Y,
356
+ spellCheck: G,
350
357
  configuration: t,
351
358
  defaultImageMaxWidth: Q,
352
359
  defaultImageMaxHeight: $,
353
- mathMlOptions: U
360
+ mathMlOptions: H
354
361
  }),
355
362
  /* @__PURE__ */ w(c, {
356
363
  imageSupport: n,
357
364
  uploadSoundSupport: s,
358
- choices: Ce,
359
- model: r,
365
+ choices: Z,
366
+ model: {
367
+ ...r,
368
+ allowMultiplePlacementsEnabled: X
369
+ },
360
370
  onModelChanged: this.updateModel,
361
- toolbarOpts: Z,
362
- spellCheck: q,
371
+ toolbarOpts: Y,
372
+ spellCheck: G,
363
373
  configuration: t,
364
374
  defaultImageMaxWidth: Q,
365
375
  defaultImageMaxHeight: $
366
376
  }),
367
- ue && /* @__PURE__ */ w(P, {
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
- ue && Se.map((e, i) => /* @__PURE__ */ T(d.Fragment, { children: [/* @__PURE__ */ w(P, {
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: U
395
+ mathMlOptions: H
386
396
  })] }, i)),
387
- ge && /* @__PURE__ */ T(F, {
388
- label: L.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: Y,
403
+ error: q,
394
404
  nonEmpty: !1,
395
- toolbarOpts: Z,
405
+ toolbarOpts: Y,
396
406
  pluginProps: e(O?.inputConfiguration, h),
397
- spellCheck: q,
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: U
403
- }), Y && /* @__PURE__ */ w(I, { children: Y })]
412
+ mathMlOptions: H
413
+ }), q && /* @__PURE__ */ w(F, { children: q })]
404
414
  }),
405
- pe && /* @__PURE__ */ w(re, {
415
+ he && /* @__PURE__ */ w(re, {
406
416
  feedback: r.feedback,
407
417
  onChange: this.changeFeedback,
408
- toolbarOpts: Z
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 { L as default };
427
+ export { I as Design, I as default };
@@ -66,4 +66,4 @@ var o = r(a)({
66
66
  }
67
67
  };
68
68
  //#endregion
69
- export { c as default };
69
+ export { c as InputHeader, c as default };
@@ -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;
@@ -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 && this._root.unmount();
83
+ this._root &&= (this._root.unmount(), null);
84
84
  }
85
85
  };
86
86
  //#endregion
@@ -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 };
@@ -14,4 +14,4 @@ var e = (e) => {
14
14
  }, 0);
15
15
  };
16
16
  //#endregion
17
- export { e as generateValidationMessage, r as getMaxCategoryChoices, t as multiplePlacements };
17
+ export { e as generateValidationMessage, r as getMaxCategoryChoices, n as maxLength, t as multiplePlacements };