@pie-element/ebsr 10.2.9-next.13 → 10.2.9-next.20
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/module/element.js +4 -20
- package/module/print.js +40 -56
- package/package.json +3 -3
package/module/element.js
CHANGED
|
@@ -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, {
|
|
@@ -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/print.js
CHANGED
|
@@ -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,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/ebsr",
|
|
3
|
-
"version": "10.2.9-next.
|
|
3
|
+
"version": "10.2.9-next.20+e7e5cd4eb",
|
|
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.20+e7e5cd4eb",
|
|
11
11
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
12
12
|
"@pie-lib/pie-toolbox": "2.6.1",
|
|
13
13
|
"classnames": "^2.2.5",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"author": "pie framework developers",
|
|
18
18
|
"license": "ISC",
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "e7e5cd4eb2d1360d4b18ff8f0756cff448dc1574",
|
|
20
20
|
"scripts": {
|
|
21
21
|
"postpublish": "../../scripts/postpublish"
|
|
22
22
|
},
|