@oat-sa/tao-core-ui 1.52.0 → 1.53.0
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/itemButtonList.js
CHANGED
|
@@ -133,25 +133,28 @@ define(['jquery', 'ui/autoscroll', 'ui/component', 'handlebars', 'i18n', 'lodash
|
|
|
133
133
|
if (helper = helpers.id) { stack1 = helper.call(depth0, {hash:{},data:data}); }
|
|
134
134
|
else { helper = (depth0 && depth0.id); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
|
|
135
135
|
buffer += escapeExpression(stack1)
|
|
136
|
-
+ "\">\n <button class=\"buttonlist-btn\"\n role=\"link\"\n
|
|
136
|
+
+ "\">\n <button class=\"buttonlist-btn\"\n role=\"link\"\n ";
|
|
137
|
+
stack1 = helpers['if'].call(depth0, (depth0 && depth0.title), {hash:{},inverse:self.noop,fn:self.program(6, program6, data),data:data});
|
|
138
|
+
if(stack1 || stack1 === 0) { buffer += stack1; }
|
|
139
|
+
buffer += "\n aria-label=\"";
|
|
137
140
|
if (helper = helpers.ariaLabel) { stack1 = helper.call(depth0, {hash:{},data:data}); }
|
|
138
141
|
else { helper = (depth0 && depth0.ariaLabel); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
|
|
139
142
|
buffer += escapeExpression(stack1)
|
|
140
143
|
+ "\"\n ";
|
|
141
|
-
stack1 = helpers['if'].call(depth0, (depth0 && depth0.disabled), {hash:{},inverse:self.noop,fn:self.program(
|
|
144
|
+
stack1 = helpers['if'].call(depth0, (depth0 && depth0.disabled), {hash:{},inverse:self.noop,fn:self.program(8, program8, data),data:data});
|
|
142
145
|
if(stack1 || stack1 === 0) { buffer += stack1; }
|
|
143
146
|
buffer += "\n data-id=\"";
|
|
144
147
|
if (helper = helpers.id) { stack1 = helper.call(depth0, {hash:{},data:data}); }
|
|
145
148
|
else { helper = (depth0 && depth0.id); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
|
|
146
149
|
buffer += escapeExpression(stack1)
|
|
147
150
|
+ "\">\n <span class=\"icon-indicator indicator\" aria-hidden=\"true\"></span>\n ";
|
|
148
|
-
stack1 = helpers['if'].call(depth0, (depth0 && depth0.scoreType), {hash:{},inverse:self.noop,fn:self.program(
|
|
151
|
+
stack1 = helpers['if'].call(depth0, (depth0 && depth0.scoreType), {hash:{},inverse:self.noop,fn:self.program(10, program10, data),data:data});
|
|
149
152
|
if(stack1 || stack1 === 0) { buffer += stack1; }
|
|
150
153
|
buffer += "\n <span class=\"buttonlist-icon";
|
|
151
|
-
stack1 = helpers['if'].call(depth0, (depth0 && depth0.icon), {hash:{},inverse:self.noop,fn:self.program(
|
|
154
|
+
stack1 = helpers['if'].call(depth0, (depth0 && depth0.icon), {hash:{},inverse:self.noop,fn:self.program(12, program12, data),data:data});
|
|
152
155
|
if(stack1 || stack1 === 0) { buffer += stack1; }
|
|
153
156
|
buffer += "\" aria-hidden=\"true\"></span>\n <span class=\"buttonlist-label\" aria-hidden=\"true\">";
|
|
154
|
-
stack1 = helpers['if'].call(depth0, (depth0 && depth0.numericLabel), {hash:{},inverse:self.noop,fn:self.program(
|
|
157
|
+
stack1 = helpers['if'].call(depth0, (depth0 && depth0.numericLabel), {hash:{},inverse:self.noop,fn:self.program(14, program14, data),data:data});
|
|
155
158
|
if(stack1 || stack1 === 0) { buffer += stack1; }
|
|
156
159
|
buffer += "</span>\n </button>\n </li>\n ";
|
|
157
160
|
return buffer;
|
|
@@ -174,11 +177,22 @@ define(['jquery', 'ui/autoscroll', 'ui/component', 'handlebars', 'i18n', 'lodash
|
|
|
174
177
|
|
|
175
178
|
function program6(depth0,data) {
|
|
176
179
|
|
|
180
|
+
var buffer = "", stack1, helper;
|
|
181
|
+
buffer += "title=\"";
|
|
182
|
+
if (helper = helpers.title) { stack1 = helper.call(depth0, {hash:{},data:data}); }
|
|
183
|
+
else { helper = (depth0 && depth0.title); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
|
|
184
|
+
buffer += escapeExpression(stack1)
|
|
185
|
+
+ "\"";
|
|
186
|
+
return buffer;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
function program8(depth0,data) {
|
|
190
|
+
|
|
177
191
|
|
|
178
192
|
return "aria-disabled=\"true\"";
|
|
179
193
|
}
|
|
180
194
|
|
|
181
|
-
function
|
|
195
|
+
function program10(depth0,data) {
|
|
182
196
|
|
|
183
197
|
var buffer = "", stack1, helper;
|
|
184
198
|
buffer += "\n <span class=\"buttonlist-score-badge\">\n <span class=\"buttonlist-score-icon icon-";
|
|
@@ -189,7 +203,7 @@ define(['jquery', 'ui/autoscroll', 'ui/component', 'handlebars', 'i18n', 'lodash
|
|
|
189
203
|
return buffer;
|
|
190
204
|
}
|
|
191
205
|
|
|
192
|
-
function
|
|
206
|
+
function program12(depth0,data) {
|
|
193
207
|
|
|
194
208
|
var buffer = "", stack1, helper;
|
|
195
209
|
buffer += " icon-";
|
|
@@ -199,7 +213,7 @@ define(['jquery', 'ui/autoscroll', 'ui/component', 'handlebars', 'i18n', 'lodash
|
|
|
199
213
|
return buffer;
|
|
200
214
|
}
|
|
201
215
|
|
|
202
|
-
function
|
|
216
|
+
function program14(depth0,data) {
|
|
203
217
|
|
|
204
218
|
var stack1, helper;
|
|
205
219
|
if (helper = helpers.numericLabel) { stack1 = helper.call(depth0, {hash:{},data:data}); }
|
|
@@ -270,6 +284,7 @@ define(['jquery', 'ui/autoscroll', 'ui/component', 'handlebars', 'i18n', 'lodash
|
|
|
270
284
|
* @property {String} scoreType - 'correct'/'incorrect'/null
|
|
271
285
|
* @property {String} icon - 'info'/'flagged'/null
|
|
272
286
|
* @property {Boolean} disabled
|
|
287
|
+
* @property {String} [title] - optional tooltip
|
|
273
288
|
*/
|
|
274
289
|
|
|
275
290
|
/**
|
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
<li class="buttonlist-item {{status}}{{#if scoreType}} {{scoreType}}{{/if}}{{#if disabled}} disabled{{/if}}" data-id="{{id}}">
|
|
4
4
|
<button class="buttonlist-btn"
|
|
5
5
|
role="link"
|
|
6
|
+
{{#if title}}title="{{title}}"{{/if}}
|
|
6
7
|
aria-label="{{ariaLabel}}"
|
|
7
8
|
{{#if disabled}}aria-disabled="true"{{/if}}
|
|
8
9
|
data-id="{{id}}">
|
package/src/itemButtonList.js
CHANGED