@pie-element/ebsr 10.2.9-next.17 → 10.2.9-next.22
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/configure/package.json +1 -1
- package/controller/package.json +1 -1
- package/module/configure.js +1 -1
- package/module/controller.js +2 -2
- package/module/element.js +7 -23
- package/module/manifest.json +1 -1
- package/module/print.js +43 -59
- package/package.json +4 -4
package/configure/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"@material-ui/core": "^3.9.2",
|
|
11
11
|
"@pie-element/multiple-choice": "^9.7.1",
|
|
12
12
|
"@pie-framework/pie-configure-events": "^1.2.0",
|
|
13
|
-
"@pie-lib/pie-toolbox": "2.
|
|
13
|
+
"@pie-lib/pie-toolbox": "2.7.0",
|
|
14
14
|
"lodash": "^4.17.15",
|
|
15
15
|
"prop-types": "^15.6.2",
|
|
16
16
|
"react": "^16.8.1",
|
package/controller/package.json
CHANGED
package/module/configure.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {_dll_react, _dll_prop_types, _dll_lodash, _dll_react_dom} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.0.1/module/index.js";
|
|
2
2
|
import MultipleChoiceConfigure from '@pie-element/multiple-choice/configure/lib';
|
|
3
|
-
import {_dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@5.7.
|
|
3
|
+
import {_dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@5.7.2/module/index.js";
|
|
4
4
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
5
5
|
function getDefaultExportFromCjs(x) {
|
|
6
6
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
package/module/controller.js
CHANGED
|
@@ -23436,7 +23436,7 @@ var _default = {
|
|
|
23436
23436
|
},
|
|
23437
23437
|
imageClozeAssociation: {
|
|
23438
23438
|
reachedLimit_one: 'You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.',
|
|
23439
|
-
reachedLimit_other: '
|
|
23439
|
+
reachedLimit_other: 'Full'
|
|
23440
23440
|
},
|
|
23441
23441
|
drawingResponse: {
|
|
23442
23442
|
fillColor: 'Fill color',
|
|
@@ -23532,7 +23532,7 @@ var _default = {
|
|
|
23532
23532
|
},
|
|
23533
23533
|
imageClozeAssociation: {
|
|
23534
23534
|
reachedLimit_one: 'Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.',
|
|
23535
|
-
reachedLimit_other: '
|
|
23535
|
+
reachedLimit_other: 'Lleno'
|
|
23536
23536
|
},
|
|
23537
23537
|
drawingResponse: {
|
|
23538
23538
|
fillColor: 'Color de relleno',
|
package/module/element.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.0.1/module/index.js";
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@5.7.
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@5.7.2/module/index.js";
|
|
3
3
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
4
|
function getDefaultExportFromCjs(x) {
|
|
5
5
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -40,7 +40,7 @@ class ModelSetEvent extends CustomEvent {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
ModelSetEvent.TYPE = 'model-set';
|
|
43
|
-
lib$8.ModelSetEvent = ModelSetEvent;
|
|
43
|
+
var ModelSetEvent_1 = lib$8.ModelSetEvent = ModelSetEvent;
|
|
44
44
|
class SessionChangedEvent extends CustomEvent {
|
|
45
45
|
constructor(component, complete) {
|
|
46
46
|
super(SessionChangedEvent.TYPE, {
|
|
@@ -8451,7 +8451,7 @@ var en = {};
|
|
|
8451
8451
|
},
|
|
8452
8452
|
imageClozeAssociation: {
|
|
8453
8453
|
reachedLimit_one: 'You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.',
|
|
8454
|
-
reachedLimit_other: '
|
|
8454
|
+
reachedLimit_other: 'Full'
|
|
8455
8455
|
},
|
|
8456
8456
|
drawingResponse: {
|
|
8457
8457
|
fillColor: 'Fill color',
|
|
@@ -8544,7 +8544,7 @@ var es = {};
|
|
|
8544
8544
|
},
|
|
8545
8545
|
imageClozeAssociation: {
|
|
8546
8546
|
reachedLimit_one: 'Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.',
|
|
8547
|
-
reachedLimit_other: '
|
|
8547
|
+
reachedLimit_other: 'Lleno'
|
|
8548
8548
|
},
|
|
8549
8549
|
drawingResponse: {
|
|
8550
8550
|
fillColor: 'Color de relleno',
|
|
@@ -13070,7 +13070,7 @@ const isComplete = (session, model) => {
|
|
|
13070
13070
|
if (!session || !session.value) {
|
|
13071
13071
|
return false;
|
|
13072
13072
|
}
|
|
13073
|
-
const {choiceMode, minSelections, maxSelections} = model || ({});
|
|
13073
|
+
const {choiceMode, minSelections = 1, maxSelections} = model || ({});
|
|
13074
13074
|
const selections = session.value.length || 0;
|
|
13075
13075
|
if (choiceMode === 'radio') {
|
|
13076
13076
|
return !!selections;
|
|
@@ -13108,26 +13108,10 @@ class MultipleChoice extends HTMLElement {
|
|
|
13108
13108
|
trailing: true
|
|
13109
13109
|
});
|
|
13110
13110
|
this._dispatchResponseChanged = debounce(() => {
|
|
13111
|
-
|
|
13112
|
-
bubbles: true,
|
|
13113
|
-
composed: true,
|
|
13114
|
-
detail: {
|
|
13115
|
-
complete: isComplete(this._session, this._model),
|
|
13116
|
-
component: this.tagName.toLowerCase()
|
|
13117
|
-
}
|
|
13118
|
-
});
|
|
13119
|
-
this.dispatchEvent(event);
|
|
13111
|
+
this.dispatchEvent(new SessionChangedEvent_1(this.tagName.toLowerCase(), isComplete(this._session, this._model)));
|
|
13120
13112
|
});
|
|
13121
13113
|
this._dispatchModelSet = debounce(() => {
|
|
13122
|
-
this.dispatchEvent(new
|
|
13123
|
-
bubbles: true,
|
|
13124
|
-
composed: true,
|
|
13125
|
-
detail: {
|
|
13126
|
-
complete: isComplete(this._session, this._model),
|
|
13127
|
-
component: this.tagName.toLowerCase(),
|
|
13128
|
-
hasModel: this._model !== undefined
|
|
13129
|
-
}
|
|
13130
|
-
}));
|
|
13114
|
+
this.dispatchEvent(new ModelSetEvent_1(this.tagName.toLowerCase(), isComplete(this._session, this._model), this._model !== undefined));
|
|
13131
13115
|
}, 50, {
|
|
13132
13116
|
leading: false,
|
|
13133
13117
|
trailing: true
|
package/module/manifest.json
CHANGED
package/module/print.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.0.1/module/index.js";
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@5.7.
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@5.7.2/module/index.js";
|
|
3
3
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
4
|
function getDefaultExportFromCjs(x) {
|
|
5
5
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -8414,7 +8414,7 @@ var en = {};
|
|
|
8414
8414
|
},
|
|
8415
8415
|
imageClozeAssociation: {
|
|
8416
8416
|
reachedLimit_one: 'You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.',
|
|
8417
|
-
reachedLimit_other: '
|
|
8417
|
+
reachedLimit_other: 'Full'
|
|
8418
8418
|
},
|
|
8419
8419
|
drawingResponse: {
|
|
8420
8420
|
fillColor: 'Fill color',
|
|
@@ -8507,7 +8507,7 @@ var es = {};
|
|
|
8507
8507
|
},
|
|
8508
8508
|
imageClozeAssociation: {
|
|
8509
8509
|
reachedLimit_one: 'Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.',
|
|
8510
|
-
reachedLimit_other: '
|
|
8510
|
+
reachedLimit_other: 'Lleno'
|
|
8511
8511
|
},
|
|
8512
8512
|
drawingResponse: {
|
|
8513
8513
|
fillColor: 'Color de relleno',
|
|
@@ -13003,6 +13003,43 @@ const Root = props => React$1.createElement(styles$b.MuiThemeProvider, {
|
|
|
13003
13003
|
lineNumber: 59
|
|
13004
13004
|
}
|
|
13005
13005
|
}));
|
|
13006
|
+
var lib = {};
|
|
13007
|
+
Object.defineProperty(lib, "__esModule", {
|
|
13008
|
+
value: true
|
|
13009
|
+
});
|
|
13010
|
+
class ModelSetEvent extends CustomEvent {
|
|
13011
|
+
constructor(component, complete, hasModel) {
|
|
13012
|
+
super(ModelSetEvent.TYPE, {
|
|
13013
|
+
bubbles: true,
|
|
13014
|
+
composed: true,
|
|
13015
|
+
detail: {
|
|
13016
|
+
complete,
|
|
13017
|
+
component,
|
|
13018
|
+
hasModel
|
|
13019
|
+
}
|
|
13020
|
+
});
|
|
13021
|
+
this.component = component;
|
|
13022
|
+
this.complete = complete;
|
|
13023
|
+
}
|
|
13024
|
+
}
|
|
13025
|
+
ModelSetEvent.TYPE = 'model-set';
|
|
13026
|
+
var ModelSetEvent_1 = lib.ModelSetEvent = ModelSetEvent;
|
|
13027
|
+
class SessionChangedEvent extends CustomEvent {
|
|
13028
|
+
constructor(component, complete) {
|
|
13029
|
+
super(SessionChangedEvent.TYPE, {
|
|
13030
|
+
bubbles: true,
|
|
13031
|
+
composed: true,
|
|
13032
|
+
detail: {
|
|
13033
|
+
complete,
|
|
13034
|
+
component
|
|
13035
|
+
}
|
|
13036
|
+
});
|
|
13037
|
+
this.component = component;
|
|
13038
|
+
this.complete = complete;
|
|
13039
|
+
}
|
|
13040
|
+
}
|
|
13041
|
+
SessionChangedEvent.TYPE = 'session-changed';
|
|
13042
|
+
var SessionChangedEvent_1 = lib.SessionChangedEvent = SessionChangedEvent;
|
|
13006
13043
|
const {concat: concat} = _dll_lodash;
|
|
13007
13044
|
const {uniq: uniq} = _dll_lodash;
|
|
13008
13045
|
const {without: without} = _dll_lodash;
|
|
@@ -13033,7 +13070,7 @@ const isComplete = (session, model) => {
|
|
|
13033
13070
|
if (!session || !session.value) {
|
|
13034
13071
|
return false;
|
|
13035
13072
|
}
|
|
13036
|
-
const {choiceMode, minSelections, maxSelections} = model || ({});
|
|
13073
|
+
const {choiceMode, minSelections = 1, maxSelections} = model || ({});
|
|
13037
13074
|
const selections = session.value.length || 0;
|
|
13038
13075
|
if (choiceMode === 'radio') {
|
|
13039
13076
|
return !!selections;
|
|
@@ -13071,26 +13108,10 @@ class MultipleChoice extends HTMLElement {
|
|
|
13071
13108
|
trailing: true
|
|
13072
13109
|
});
|
|
13073
13110
|
this._dispatchResponseChanged = debounce(() => {
|
|
13074
|
-
|
|
13075
|
-
bubbles: true,
|
|
13076
|
-
composed: true,
|
|
13077
|
-
detail: {
|
|
13078
|
-
complete: isComplete(this._session, this._model),
|
|
13079
|
-
component: this.tagName.toLowerCase()
|
|
13080
|
-
}
|
|
13081
|
-
});
|
|
13082
|
-
this.dispatchEvent(event);
|
|
13111
|
+
this.dispatchEvent(new SessionChangedEvent_1(this.tagName.toLowerCase(), isComplete(this._session, this._model)));
|
|
13083
13112
|
});
|
|
13084
13113
|
this._dispatchModelSet = debounce(() => {
|
|
13085
|
-
this.dispatchEvent(new
|
|
13086
|
-
bubbles: true,
|
|
13087
|
-
composed: true,
|
|
13088
|
-
detail: {
|
|
13089
|
-
complete: isComplete(this._session, this._model),
|
|
13090
|
-
component: this.tagName.toLowerCase(),
|
|
13091
|
-
hasModel: this._model !== undefined
|
|
13092
|
-
}
|
|
13093
|
-
}));
|
|
13114
|
+
this.dispatchEvent(new ModelSetEvent_1(this.tagName.toLowerCase(), isComplete(this._session, this._model), this._model !== undefined));
|
|
13094
13115
|
}, 50, {
|
|
13095
13116
|
leading: false,
|
|
13096
13117
|
trailing: true
|
|
@@ -13126,43 +13147,6 @@ class MultipleChoice extends HTMLElement {
|
|
|
13126
13147
|
this._rerender();
|
|
13127
13148
|
}
|
|
13128
13149
|
}
|
|
13129
|
-
var lib = {};
|
|
13130
|
-
Object.defineProperty(lib, "__esModule", {
|
|
13131
|
-
value: true
|
|
13132
|
-
});
|
|
13133
|
-
class ModelSetEvent extends CustomEvent {
|
|
13134
|
-
constructor(component, complete, hasModel) {
|
|
13135
|
-
super(ModelSetEvent.TYPE, {
|
|
13136
|
-
bubbles: true,
|
|
13137
|
-
composed: true,
|
|
13138
|
-
detail: {
|
|
13139
|
-
complete,
|
|
13140
|
-
component,
|
|
13141
|
-
hasModel
|
|
13142
|
-
}
|
|
13143
|
-
});
|
|
13144
|
-
this.component = component;
|
|
13145
|
-
this.complete = complete;
|
|
13146
|
-
}
|
|
13147
|
-
}
|
|
13148
|
-
ModelSetEvent.TYPE = 'model-set';
|
|
13149
|
-
lib.ModelSetEvent = ModelSetEvent;
|
|
13150
|
-
class SessionChangedEvent extends CustomEvent {
|
|
13151
|
-
constructor(component, complete) {
|
|
13152
|
-
super(SessionChangedEvent.TYPE, {
|
|
13153
|
-
bubbles: true,
|
|
13154
|
-
composed: true,
|
|
13155
|
-
detail: {
|
|
13156
|
-
complete,
|
|
13157
|
-
component
|
|
13158
|
-
}
|
|
13159
|
-
});
|
|
13160
|
-
this.component = component;
|
|
13161
|
-
this.complete = complete;
|
|
13162
|
-
}
|
|
13163
|
-
}
|
|
13164
|
-
SessionChangedEvent.TYPE = 'session-changed';
|
|
13165
|
-
var SessionChangedEvent_1 = lib.SessionChangedEvent = SessionChangedEvent;
|
|
13166
13150
|
const {cloneDeep: cloneDeep} = _dll_lodash;
|
|
13167
13151
|
const {get: get} = _dll_lodash;
|
|
13168
13152
|
const debug = _dll_debug;
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/ebsr",
|
|
3
|
-
"version": "10.2.9-next.
|
|
3
|
+
"version": "10.2.9-next.22+6517bb532",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": "pie-framework/pie-elements",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@pie-element/multiple-choice": "^9.7.2-next.
|
|
10
|
+
"@pie-element/multiple-choice": "^9.7.2-next.22+6517bb532",
|
|
11
11
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
12
|
-
"@pie-lib/pie-toolbox": "2.
|
|
12
|
+
"@pie-lib/pie-toolbox": "2.7.0",
|
|
13
13
|
"classnames": "^2.2.5",
|
|
14
14
|
"debug": "^4.1.1",
|
|
15
15
|
"lodash": "^4.17.11"
|
|
16
16
|
},
|
|
17
17
|
"author": "pie framework developers",
|
|
18
18
|
"license": "ISC",
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "6517bb532d2b416fdf57525a3d50c62c83fdc543",
|
|
20
20
|
"scripts": {
|
|
21
21
|
"postpublish": "../../scripts/postpublish"
|
|
22
22
|
},
|