@oat-sa/tao-core-ui 3.9.7 → 3.9.9

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/dist/previewer.js CHANGED
@@ -135,6 +135,7 @@ define(['jquery', 'lodash', 'core/mimetype', 'core/pluginifier', 'ui/mediaplayer
135
135
  * @private
136
136
  */
137
137
  _clearPlayer: function ($elt) {
138
+ if ($elt.parents('.qti-item').length) return; // avoid clear in qti mode
138
139
  if ($elt && $elt.data('player')) {
139
140
  $elt.data('player').destroy();
140
141
  $elt.removeData('player');
@@ -255,15 +255,15 @@ define(['jquery', 'lodash', 'handlebars', 'lib/handlebars/helpers', 'css!ui/sear
255
255
  buffer += "\n </span>\n <div class=\"logic-radio-group\">\n <label class=\"logic-label\">\n <input type=\"radio\" name=\""
256
256
  + escapeExpression(((stack1 = ((stack1 = (depth0 && depth0.criterion)),stack1 == null || stack1 === false ? stack1 : stack1.id)),typeof stack1 === functionType ? stack1.apply(depth0) : stack1))
257
257
  + "-logic\" value=\"LOGIC_AND\"><span class=\"icon-radio\"></span> "
258
- + escapeExpression((helper = helpers.__ || (depth0 && depth0.__),options={hash:{},data:data},helper ? helper.call(depth0, "Exact match", options) : helperMissing.call(depth0, "__", "Exact match", options)))
258
+ + escapeExpression((helper = helpers.__ || (depth0 && depth0.__),options={hash:{},data:data},helper ? helper.call(depth0, "Include all", options) : helperMissing.call(depth0, "__", "Include all", options)))
259
259
  + "\n </label>\n <label class=\"logic-label\">\n <input type=\"radio\" name=\""
260
260
  + escapeExpression(((stack1 = ((stack1 = (depth0 && depth0.criterion)),stack1 == null || stack1 === false ? stack1 : stack1.id)),typeof stack1 === functionType ? stack1.apply(depth0) : stack1))
261
261
  + "-logic\" value=\"LOGIC_OR\"><span class=\"icon-radio\"></span> "
262
- + escapeExpression((helper = helpers.__ || (depth0 && depth0.__),options={hash:{},data:data},helper ? helper.call(depth0, "In", options) : helperMissing.call(depth0, "__", "In", options)))
262
+ + escapeExpression((helper = helpers.__ || (depth0 && depth0.__),options={hash:{},data:data},helper ? helper.call(depth0, "Include any", options) : helperMissing.call(depth0, "__", "Include any", options)))
263
263
  + "\n </label>\n <label class=\"logic-label\">\n <input type=\"radio\" name=\""
264
264
  + escapeExpression(((stack1 = ((stack1 = (depth0 && depth0.criterion)),stack1 == null || stack1 === false ? stack1 : stack1.id)),typeof stack1 === functionType ? stack1.apply(depth0) : stack1))
265
265
  + "-logic\" value=\"LOGIC_NOT\"><span class=\"icon-radio\"></span> "
266
- + escapeExpression((helper = helpers.__ || (depth0 && depth0.__),options={hash:{},data:data},helper ? helper.call(depth0, "Not in", options) : helperMissing.call(depth0, "__", "Not in", options)))
266
+ + escapeExpression((helper = helpers.__ || (depth0 && depth0.__),options={hash:{},data:data},helper ? helper.call(depth0, "Include none", options) : helperMissing.call(depth0, "__", "Include none", options)))
267
267
  + "\n </label>\n </div>\n <input type='text' name=\""
268
268
  + escapeExpression(((stack1 = ((stack1 = (depth0 && depth0.criterion)),stack1 == null || stack1 === false ? stack1 : stack1.id)),typeof stack1 === functionType ? stack1.apply(depth0) : stack1))
269
269
  + "-select\">\n </div>\n</div>\n";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oat-sa/tao-core-ui",
3
- "version": "3.9.7",
3
+ "version": "3.9.9",
4
4
  "displayName": "TAO Core UI",
5
5
  "description": "UI libraries of TAO",
6
6
  "scripts": {
package/src/previewer.js CHANGED
@@ -139,6 +139,7 @@ const previewer = {
139
139
  * @private
140
140
  */
141
141
  _clearPlayer: function($elt) {
142
+ if ($elt.parents('.qti-item').length) return; // avoid clear in qti mode
142
143
  if ($elt && $elt.data('player')) {
143
144
  $elt.data('player').destroy();
144
145
  $elt.removeData('player');
@@ -9,13 +9,13 @@
9
9
  </span>
10
10
  <div class="logic-radio-group">
11
11
  <label class="logic-label">
12
- <input type="radio" name="{{criterion.id}}-logic" value="LOGIC_AND"><span class="icon-radio"></span> {{__ "Exact match"}}
12
+ <input type="radio" name="{{criterion.id}}-logic" value="LOGIC_AND"><span class="icon-radio"></span> {{__ "Include all"}}
13
13
  </label>
14
14
  <label class="logic-label">
15
- <input type="radio" name="{{criterion.id}}-logic" value="LOGIC_OR"><span class="icon-radio"></span> {{__ "In"}}
15
+ <input type="radio" name="{{criterion.id}}-logic" value="LOGIC_OR"><span class="icon-radio"></span> {{__ "Include any"}}
16
16
  </label>
17
17
  <label class="logic-label">
18
- <input type="radio" name="{{criterion.id}}-logic" value="LOGIC_NOT"><span class="icon-radio"></span> {{__ "Not in"}}
18
+ <input type="radio" name="{{criterion.id}}-logic" value="LOGIC_NOT"><span class="icon-radio"></span> {{__ "Include none"}}
19
19
  </label>
20
20
  </div>
21
21
  <input type='text' name="{{criterion.id}}-select">