@pie-element/graphing-solution-set 6.1.2-next.3 → 6.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.
Files changed (37) hide show
  1. package/author.js +2 -0
  2. package/dist/author/configure.js +3 -3
  3. package/dist/author/correct-response.js +1 -1
  4. package/dist/author/graphing-config.js +1 -1
  5. package/dist/author/index.d.ts +1 -0
  6. package/dist/author/index.js +11 -3
  7. package/dist/author/utils.js +1 -1
  8. package/dist/browser/{dist-MXGOn-n1.js → alert-dialog-DO9LwMjm.js} +31984 -44959
  9. package/dist/browser/alert-dialog-DO9LwMjm.js.map +1 -0
  10. package/dist/browser/assets/Symbola-4c507403.woff2 +0 -0
  11. package/dist/browser/author/index.js +2226 -335
  12. package/dist/browser/author/index.js.map +1 -1
  13. package/dist/browser/{browser-pUycHh7Y.js → browser-bbrzkX59.js} +7 -3
  14. package/dist/browser/browser-bbrzkX59.js.map +1 -0
  15. package/dist/browser/controller/index.js +1 -1
  16. package/dist/browser/controller/index.js.map +1 -1
  17. package/dist/browser/delivery/index.js +39 -40
  18. package/dist/browser/delivery/index.js.map +1 -1
  19. package/dist/browser/editor-runtime/alert-dialog-Bpj5FgBm.js +34198 -0
  20. package/dist/browser/editor-runtime/alert-dialog-Bpj5FgBm.js.map +1 -0
  21. package/dist/browser/editor-runtime/assets/Symbola-4c507403.woff2 +0 -0
  22. package/dist/browser/editor-runtime/author/index.js +3833 -0
  23. package/dist/browser/editor-runtime/author/index.js.map +1 -0
  24. package/dist/browser/editor-runtime/browser-d5JHIrvC.js +352 -0
  25. package/dist/browser/editor-runtime/browser-d5JHIrvC.js.map +1 -0
  26. package/dist/browser/editor-runtime/controller/index.js +193 -0
  27. package/dist/browser/editor-runtime/controller/index.js.map +1 -0
  28. package/dist/browser/editor-runtime/delivery/index.js +781 -0
  29. package/dist/browser/editor-runtime/delivery/index.js.map +1 -0
  30. package/dist/controller/utils.js +1 -1
  31. package/dist/delivery/index.js +2 -2
  32. package/dist/delivery/main.js +1 -1
  33. package/dist/index.iife.js +109 -153
  34. package/package.json +34 -25
  35. package/dist/browser/browser-pUycHh7Y.js.map +0 -1
  36. package/dist/browser/dist-MXGOn-n1.js.map +0 -1
  37. package/dist/browser/graphing-solution-set.css +0 -2
package/author.js ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from './dist/author/index.js';
2
+ export * from './dist/author/index.js';
@@ -1,5 +1,5 @@
1
- import e from "./graphing-config.js";
2
- import t from "./correct-response.js";
1
+ import { GraphingConfig as e } from "./graphing-config.js";
2
+ import { CorrectResponse as t } from "./correct-response.js";
3
3
  import n from "react";
4
4
  import r from "prop-types";
5
5
  import { styled as i } from "@mui/material/styles";
@@ -187,4 +187,4 @@ var y = i(s)(({ theme: e }) => ({
187
187
  }
188
188
  };
189
189
  //#endregion
190
- export { x as default };
190
+ export { x as Configure, x as default };
@@ -203,4 +203,4 @@ var h = a(f)(({ theme: e }) => ({
203
203
  }
204
204
  };
205
205
  //#endregion
206
- export { y as default };
206
+ export { y as CorrectResponse, y as default };
@@ -234,4 +234,4 @@ var v = o("div")(({ theme: e }) => ({
234
234
  }
235
235
  };
236
236
  //#endregion
237
- export { T as default };
237
+ export { T as GraphingConfig, T as default };
@@ -58,5 +58,6 @@ export default class GraphLinesConfigure extends HTMLElement {
58
58
  insertSound(handler: any): void;
59
59
  onDeleteSound(src: any, done: any): void;
60
60
  _render(): void;
61
+ connectedCallback(): void;
61
62
  disconnectedCallback(): void;
62
63
  }
@@ -1,4 +1,4 @@
1
- import e from "./configure.js";
1
+ import { Configure as e } from "./configure.js";
2
2
  import t from "./defaults.js";
3
3
  import n from "react";
4
4
  import { createRoot as r } from "react-dom/client";
@@ -38,7 +38,12 @@ var d = a("pie-elements:graphing-solution-set:configure"), f = (e) => Object.key
38
38
  this._model = a.createDefaultModel(e), this._render();
39
39
  }
40
40
  set configuration(e) {
41
- this._configuration = e, e.language?.enabled ? e.languageChoices?.options?.length && (this._model.language = e.languageChoices.options[0].value) : e.language.settings ? this._model.language && (this._configuration.language.enabled = !0) : delete this._model.language, this._render();
41
+ this._configuration = {
42
+ ...t.configuration,
43
+ ...e
44
+ };
45
+ let { language: n, languageChoices: r } = this._configuration;
46
+ n?.enabled ? r?.options?.length && (this._model.language = r.options[0].value) : n?.settings ? this._model.language && (this._configuration.language.enabled = !0) : delete this._model.language, this._render();
42
47
  }
43
48
  onModelChanged = (e) => {
44
49
  this._model = e, this._render(), d("[onModelChanged]: ", this._model), this.dispatchEvent(new u(this._model));
@@ -79,8 +84,11 @@ var d = a("pie-elements:graphing-solution-set:configure"), f = (e) => Object.key
79
84
  });
80
85
  }
81
86
  }
87
+ connectedCallback() {
88
+ this._render();
89
+ }
82
90
  disconnectedCallback() {
83
- this._root && this._root.unmount();
91
+ this._root &&= (this._root.unmount(), null);
84
92
  }
85
93
  };
86
94
  //#endregion
@@ -471,4 +471,4 @@ var t = [
471
471
  else return !t[1].building;
472
472
  };
473
473
  //#endregion
474
- export { o as applyConstraints, E as checkIfLinesAreAdded, c as filterPlotableMarks, w as findSectionsInSolutionSet, i as getGridValues, a as getLabelValues, T as pointInsidePolygon };
474
+ export { r as VALID_LABEL_VALUES, o as applyConstraints, E as checkIfLinesAreAdded, c as filterPlotableMarks, w as findSectionsInSolutionSet, i as getGridValues, a as getLabelValues, T as pointInsidePolygon };