@pie-element/number-line 13.2.2-beta.5 → 13.2.2-beta.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 (82) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/configure/CHANGELOG.md +4 -0
  3. package/configure/package.json +3 -3
  4. package/controller/CHANGELOG.md +4 -0
  5. package/controller/package.json +1 -1
  6. package/package.json +2 -2
  7. package/configure/lib/arrows.js +0 -89
  8. package/configure/lib/arrows.js.map +0 -1
  9. package/configure/lib/card-bar.js +0 -57
  10. package/configure/lib/card-bar.js.map +0 -1
  11. package/configure/lib/defaults.js +0 -177
  12. package/configure/lib/defaults.js.map +0 -1
  13. package/configure/lib/domain.js +0 -87
  14. package/configure/lib/domain.js.map +0 -1
  15. package/configure/lib/index.js +0 -180
  16. package/configure/lib/index.js.map +0 -1
  17. package/configure/lib/main.js +0 -815
  18. package/configure/lib/main.js.map +0 -1
  19. package/configure/lib/number-text-field.js +0 -26
  20. package/configure/lib/number-text-field.js.map +0 -1
  21. package/configure/lib/point-config.js +0 -84
  22. package/configure/lib/point-config.js.map +0 -1
  23. package/configure/lib/size.js +0 -66
  24. package/configure/lib/size.js.map +0 -1
  25. package/configure/lib/ticks.js +0 -234
  26. package/configure/lib/ticks.js.map +0 -1
  27. package/configure/lib/utils.js +0 -12
  28. package/configure/lib/utils.js.map +0 -1
  29. package/controller/lib/defaults.js +0 -56
  30. package/controller/lib/defaults.js.map +0 -1
  31. package/controller/lib/index.js +0 -430
  32. package/controller/lib/index.js.map +0 -1
  33. package/controller/lib/tickUtils.js +0 -294
  34. package/controller/lib/tickUtils.js.map +0 -1
  35. package/controller/lib/utils.js +0 -168
  36. package/controller/lib/utils.js.map +0 -1
  37. package/lib/data-converter.js +0 -96
  38. package/lib/data-converter.js.map +0 -1
  39. package/lib/draggable/index.js +0 -114
  40. package/lib/draggable/index.js.map +0 -1
  41. package/lib/index.js +0 -197
  42. package/lib/index.js.map +0 -1
  43. package/lib/number-line/colors.js +0 -11
  44. package/lib/number-line/colors.js.map +0 -1
  45. package/lib/number-line/feedback.js +0 -92
  46. package/lib/number-line/feedback.js.map +0 -1
  47. package/lib/number-line/graph/arrow.js +0 -44
  48. package/lib/number-line/graph/arrow.js.map +0 -1
  49. package/lib/number-line/graph/elements/base.js +0 -20
  50. package/lib/number-line/graph/elements/base.js.map +0 -1
  51. package/lib/number-line/graph/elements/builder.js +0 -37
  52. package/lib/number-line/graph/elements/builder.js.map +0 -1
  53. package/lib/number-line/graph/elements/line.js +0 -259
  54. package/lib/number-line/graph/elements/line.js.map +0 -1
  55. package/lib/number-line/graph/elements/point.js +0 -204
  56. package/lib/number-line/graph/elements/point.js.map +0 -1
  57. package/lib/number-line/graph/elements/ray.js +0 -190
  58. package/lib/number-line/graph/elements/ray.js.map +0 -1
  59. package/lib/number-line/graph/index.js +0 -262
  60. package/lib/number-line/graph/index.js.map +0 -1
  61. package/lib/number-line/graph/line.js +0 -38
  62. package/lib/number-line/graph/line.js.map +0 -1
  63. package/lib/number-line/graph/stacks.js +0 -78
  64. package/lib/number-line/graph/stacks.js.map +0 -1
  65. package/lib/number-line/graph/tick-utils.js +0 -347
  66. package/lib/number-line/graph/tick-utils.js.map +0 -1
  67. package/lib/number-line/graph/ticks.js +0 -188
  68. package/lib/number-line/graph/ticks.js.map +0 -1
  69. package/lib/number-line/index.js +0 -384
  70. package/lib/number-line/index.js.map +0 -1
  71. package/lib/number-line/point-chooser/button.js +0 -49
  72. package/lib/number-line/point-chooser/button.js.map +0 -1
  73. package/lib/number-line/point-chooser/img.js +0 -8
  74. package/lib/number-line/point-chooser/img.js.map +0 -1
  75. package/lib/number-line/point-chooser/index.js +0 -197
  76. package/lib/number-line/point-chooser/index.js.map +0 -1
  77. package/lib/number-line/point-chooser/styles.js +0 -77
  78. package/lib/number-line/point-chooser/styles.js.map +0 -1
  79. package/lib/number-line/transitions/fade.js +0 -88
  80. package/lib/number-line/transitions/fade.js.map +0 -1
  81. package/lib/number-line/transitions/index.js +0 -14
  82. package/lib/number-line/transitions/index.js.map +0 -1
@@ -1,180 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _main = _interopRequireDefault(require("./main"));
10
- var _react = _interopRequireDefault(require("react"));
11
- var _client = require("react-dom/client");
12
- var _pieConfigureEvents = require("@pie-framework/pie-configure-events");
13
- var defaults = _interopRequireWildcard(require("./defaults"));
14
- var math = _interopRequireWildcard(require("mathjs"));
15
- var _lodashEs = require("lodash-es");
16
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
17
- // this function is duplicated in controller; at some point, use the same shared function
18
- const updateTicks = model => {
19
- const {
20
- graph: {
21
- domain,
22
- labelStep,
23
- ticks = {}
24
- } = {}
25
- } = model;
26
- const {
27
- minor,
28
- major
29
- } = ticks;
30
- if (domain) {
31
- domain.min = Number((domain.min || 0).toFixed(2));
32
- domain.max = Number((domain.max || 0).toFixed(2));
33
- }
34
- if (labelStep && typeof labelStep === 'string' && labelStep.match(/^[1-9][0-9]*\/[1-9][0-9]*$/g)) {
35
- model.graph.fraction = true;
36
- ticks.tickIntervalType = 'Fraction';
37
-
38
- // update the ticks frequency and label value to match the label step if needed
39
- const step = math.evaluate(labelStep);
40
- if (step !== major) {
41
- ticks.major = step;
42
- ticks.minor = step / (major / minor);
43
- }
44
- }
45
- return model;
46
- };
47
- class NumberLine extends HTMLElement {
48
- constructor() {
49
- super();
50
- (0, _defineProperty2.default)(this, "resetModelAfterConfigurationIsSet", () => {
51
- // In environments that use pie-player-components, model is set before configuration.
52
- // This is the reason why sometimes the model gets altered non-reversible
53
- // (altered using default configuration instead of client configuration, because at that point client configuration was not set yet)
54
- // Therefore, in such environments, we will make sure to keep a modelCopy (initialised in set model) and use it to reset
55
- // the model in set configuration (resetModelAfterConfigurationIsSet) if set configuration is ever called
56
- const pieAuthors = document.querySelectorAll('pie-author');
57
- this.hasPlayerAsParent = Array.from(pieAuthors).some(author => author.contains(this));
58
- if (this.hasPlayerAsParent) {
59
- if (this._modelCopy) {
60
- this._model = this._modelCopy;
61
- } else {
62
- delete this._modelCopy;
63
- }
64
- }
65
- });
66
- (0, _defineProperty2.default)(this, "onChange", o => {
67
- this._model = {
68
- ...this._model,
69
- ...o
70
- };
71
- this.dispatchEvent(new _pieConfigureEvents.ModelUpdatedEvent(this._model));
72
- this._rerender();
73
- });
74
- (0, _defineProperty2.default)(this, "onConfigurationChanged", config => {
75
- this._configuration = config;
76
- this._render();
77
- });
78
- this._root = null;
79
- this._model = NumberLine.createDefaultModel();
80
- this._configuration = defaults.configuration;
81
- }
82
- set model(m) {
83
- this._model = NumberLine.createDefaultModel(m);
84
- this._modelCopy = (0, _lodashEs.cloneDeep)(this._model);
85
- this._rerender();
86
- }
87
- set configuration(c) {
88
- const newConfiguration = {
89
- ...defaults.configuration,
90
- ...c
91
- };
92
- this._configuration = newConfiguration;
93
- this.resetModelAfterConfigurationIsSet();
94
-
95
- // if language:enabled is true, then the corresponding default item model should include a language value;
96
- // if it is false, then the language field should be omitted from the item model.
97
- // if a default item model includes a language value (e.g., en_US) and the corresponding authoring view settings have language:settings = true,
98
- // then (a) language:enabled should also be true, and (b) that default language value should be represented in languageChoices[] (as a key).
99
- if (newConfiguration?.language?.enabled) {
100
- if (newConfiguration?.languageChoices?.options?.length) {
101
- this._model.language = newConfiguration?.languageChoices.options[0].value;
102
- }
103
- } else if (newConfiguration.language.settings && this._model.language) {
104
- this._configuration.language.enabled = true;
105
- if (!this._configuration.languageChoices.options || !this._configuration.languageChoices.options.length) {
106
- this._configuration.languageChoices.options = [];
107
- }
108
-
109
- // check if the language is already included in the languageChoices.options array
110
- // and if not, then add it.
111
- if (!this._configuration.languageChoices.options.find(option => option.value === this._model.language)) {
112
- this._configuration.languageChoices.options.push({
113
- value: this._model.language,
114
- label: this._model.language
115
- });
116
- }
117
- } else {
118
- delete this._model.language;
119
- }
120
- this._rerender();
121
- }
122
- insertImage(handler) {
123
- this.dispatchEvent(new _pieConfigureEvents.InsertImageEvent(handler));
124
- }
125
- onDeleteImage(src, done) {
126
- this.dispatchEvent(new _pieConfigureEvents.DeleteImageEvent(src, done));
127
- }
128
- insertSound(handler) {
129
- this.dispatchEvent(new _pieConfigureEvents.InsertSoundEvent(handler));
130
- }
131
- onDeleteSound(src, done) {
132
- this.dispatchEvent(new _pieConfigureEvents.DeleteSoundEvent(src, done));
133
- }
134
- _rerender() {
135
- let element = /*#__PURE__*/_react.default.createElement(_main.default, {
136
- model: this._model,
137
- configuration: this._configuration,
138
- onChange: this.onChange,
139
- onConfigurationChanged: this.onConfigurationChanged,
140
- imageSupport: {
141
- add: this.insertImage.bind(this),
142
- delete: this.onDeleteImage.bind(this)
143
- },
144
- uploadSoundSupport: {
145
- add: this.insertSound.bind(this),
146
- delete: this.onDeleteSound.bind(this)
147
- }
148
- });
149
- if (!this._root) {
150
- this._root = (0, _client.createRoot)(this);
151
- }
152
- this._root.render(element);
153
- }
154
- connectedCallback() {
155
- this._rerender();
156
- }
157
- disconnectedCallback() {
158
- if (this._root) {
159
- this._root.unmount();
160
- this._root = null;
161
- }
162
- }
163
- }
164
- exports.default = NumberLine;
165
- (0, _defineProperty2.default)(NumberLine, "createDefaultModel", (model = {}) => {
166
- const c = defaults.configuration;
167
- let language = model.language || '';
168
- if (!language && c.language && c.language.enabled) {
169
- if (c.languageChoices?.options?.length) {
170
- language = c.languageChoices.options[0].value;
171
- }
172
- }
173
- const normalizedModel = {
174
- ...defaults.model,
175
- ...model,
176
- language
177
- };
178
- return updateTicks(normalizedModel);
179
- });
180
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["_main","_interopRequireDefault","require","_react","_client","_pieConfigureEvents","defaults","_interopRequireWildcard","math","_lodashEs","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","updateTicks","model","graph","domain","labelStep","ticks","minor","major","min","Number","toFixed","max","match","fraction","tickIntervalType","step","evaluate","NumberLine","HTMLElement","constructor","_defineProperty2","pieAuthors","document","querySelectorAll","hasPlayerAsParent","Array","from","some","author","contains","_modelCopy","_model","dispatchEvent","ModelUpdatedEvent","_rerender","config","_configuration","_render","_root","createDefaultModel","configuration","m","cloneDeep","c","newConfiguration","resetModelAfterConfigurationIsSet","language","enabled","languageChoices","options","length","value","settings","find","option","push","label","insertImage","handler","InsertImageEvent","onDeleteImage","src","done","DeleteImageEvent","insertSound","InsertSoundEvent","onDeleteSound","DeleteSoundEvent","element","React","createElement","Main","onChange","onConfigurationChanged","imageSupport","add","bind","delete","uploadSoundSupport","createRoot","render","connectedCallback","disconnectedCallback","unmount","exports","normalizedModel"],"sources":["../src/index.js"],"sourcesContent":["import Main from './main';\nimport React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport {\n ModelUpdatedEvent,\n InsertSoundEvent,\n DeleteSoundEvent,\n InsertImageEvent,\n DeleteImageEvent,\n} from '@pie-framework/pie-configure-events';\nimport * as defaults from './defaults';\nimport * as math from 'mathjs';\nimport { cloneDeep } from 'lodash-es';\n\n// this function is duplicated in controller; at some point, use the same shared function\nconst updateTicks = (model) => {\n const { graph: { domain, labelStep, ticks = {} } = {} } = model;\n const { minor, major } = ticks;\n\n if (domain) {\n domain.min = Number((domain.min || 0).toFixed(2));\n domain.max = Number((domain.max || 0).toFixed(2));\n }\n\n if (labelStep && typeof labelStep === 'string' && labelStep.match(/^[1-9][0-9]*\\/[1-9][0-9]*$/g)) {\n model.graph.fraction = true;\n ticks.tickIntervalType = 'Fraction';\n\n // update the ticks frequency and label value to match the label step if needed\n const step = math.evaluate(labelStep);\n\n if (step !== major) {\n ticks.major = step;\n ticks.minor = step / (major / minor);\n }\n }\n\n return model;\n};\n\nexport default class NumberLine extends HTMLElement {\n static createDefaultModel = (model = {}) => {\n const c = defaults.configuration;\n let language = model.language || '';\n\n if (!language && c.language && c.language.enabled) {\n if (c.languageChoices?.options?.length) {\n language = c.languageChoices.options[0].value;\n }\n }\n\n const normalizedModel = {\n ...defaults.model,\n ...model,\n language,\n };\n\n return updateTicks(normalizedModel);\n };\n\n constructor() {\n super();\n this._root = null;\n this._model = NumberLine.createDefaultModel();\n this._configuration = defaults.configuration;\n }\n\n set model(m) {\n this._model = NumberLine.createDefaultModel(m);\n this._modelCopy = cloneDeep(this._model);\n\n this._rerender();\n }\n\n resetModelAfterConfigurationIsSet = () => {\n // In environments that use pie-player-components, model is set before configuration.\n // This is the reason why sometimes the model gets altered non-reversible\n // (altered using default configuration instead of client configuration, because at that point client configuration was not set yet)\n // Therefore, in such environments, we will make sure to keep a modelCopy (initialised in set model) and use it to reset\n // the model in set configuration (resetModelAfterConfigurationIsSet) if set configuration is ever called\n const pieAuthors = document.querySelectorAll('pie-author');\n this.hasPlayerAsParent = Array.from(pieAuthors).some((author) => author.contains(this));\n\n if (this.hasPlayerAsParent) {\n if (this._modelCopy) {\n this._model = this._modelCopy;\n } else {\n delete this._modelCopy;\n }\n }\n };\n\n set configuration(c) {\n const newConfiguration = {\n ...defaults.configuration,\n ...c,\n };\n\n this._configuration = newConfiguration;\n\n this.resetModelAfterConfigurationIsSet();\n\n // if language:enabled is true, then the corresponding default item model should include a language value;\n // if it is false, then the language field should be omitted from the item model.\n // if a default item model includes a language value (e.g., en_US) and the corresponding authoring view settings have language:settings = true,\n // then (a) language:enabled should also be true, and (b) that default language value should be represented in languageChoices[] (as a key).\n if (newConfiguration?.language?.enabled) {\n if (newConfiguration?.languageChoices?.options?.length) {\n this._model.language = newConfiguration?.languageChoices.options[0].value;\n }\n } else if (newConfiguration.language.settings && this._model.language) {\n this._configuration.language.enabled = true;\n\n if (!this._configuration.languageChoices.options || !this._configuration.languageChoices.options.length) {\n this._configuration.languageChoices.options = [];\n }\n\n // check if the language is already included in the languageChoices.options array\n // and if not, then add it.\n if (!this._configuration.languageChoices.options.find((option) => option.value === this._model.language)) {\n this._configuration.languageChoices.options.push({\n value: this._model.language,\n label: this._model.language,\n });\n }\n } else {\n delete this._model.language;\n }\n\n this._rerender();\n }\n\n onChange = (o) => {\n this._model = { ...this._model, ...o };\n\n this.dispatchEvent(new ModelUpdatedEvent(this._model));\n\n this._rerender();\n };\n\n onConfigurationChanged = (config) => {\n this._configuration = config;\n this._render();\n };\n\n insertImage(handler) {\n this.dispatchEvent(new InsertImageEvent(handler));\n }\n\n onDeleteImage(src, done) {\n this.dispatchEvent(new DeleteImageEvent(src, done));\n }\n\n insertSound(handler) {\n this.dispatchEvent(new InsertSoundEvent(handler));\n }\n\n onDeleteSound(src, done) {\n this.dispatchEvent(new DeleteSoundEvent(src, done));\n }\n\n _rerender() {\n let element = React.createElement(Main, {\n model: this._model,\n configuration: this._configuration,\n onChange: this.onChange,\n onConfigurationChanged: this.onConfigurationChanged,\n imageSupport: {\n add: this.insertImage.bind(this),\n delete: this.onDeleteImage.bind(this),\n },\n uploadSoundSupport: {\n add: this.insertSound.bind(this),\n delete: this.onDeleteSound.bind(this),\n },\n });\n\n if (!this._root) {\n this._root = createRoot(this);\n }\n this._root.render(element);\n }\n\n connectedCallback() {\n this._rerender();\n }\n\n disconnectedCallback() {\n if (this._root) {\n this._root.unmount();\n this._root = null;\n }\n }\n}\n"],"mappings":";;;;;;;;AAAA,IAAAA,KAAA,GA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