@atlassian/aui 10.1.9 → 10.1.10
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/aui/aui-prototyping.css +1 -1
- package/dist/aui/aui-prototyping.js +1 -1
- package/dist/aui/aui-prototyping.js.map +1 -1
- package/dist/aui/aui-prototyping.nodeps.css +1 -1
- package/dist/aui/aui-prototyping.nodeps.js +1 -1
- package/dist/aui/aui-prototyping.nodeps.js.map +1 -1
- package/dist/aui/fonts/adgs-icons.eot +0 -0
- package/dist/aui/fonts/adgs-icons.ttf +0 -0
- package/dist/aui/fonts/adgs-icons.woff +0 -0
- package/package.json +2 -2
- package/src/js-vendor-effective/jquery.hotkeys/jquery.hotkeys.js +1 -1
- package/src/js-vendor-effective/select2/select2.js +10 -10
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlassian/aui",
|
|
3
3
|
"description": "Atlassian User Interface library",
|
|
4
|
-
"version": "10.1.
|
|
4
|
+
"version": "10.1.10",
|
|
5
5
|
"author": "Atlassian Pty Ltd.",
|
|
6
6
|
"homepage": "https://aui.atlassian.com",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@atlaskit/tokens": "4.9.1",
|
|
40
|
-
"@atlassian/adg-server-iconfont": "3.1.
|
|
40
|
+
"@atlassian/adg-server-iconfont": "3.1.1",
|
|
41
41
|
"@popperjs/core": "2.11.8",
|
|
42
42
|
"backbone": "1.6.0",
|
|
43
43
|
"css.escape": "1.5.1",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
TimedNumber.prototype.inc = function () {
|
|
54
54
|
if (this.timer) {
|
|
55
55
|
clearTimeout(this.timeout);
|
|
56
|
-
this.timeout = setTimeout(
|
|
56
|
+
this.timeout = setTimeout(TimedNumber.prototype.reset.bind(this), this.timer);
|
|
57
57
|
}
|
|
58
58
|
this.num++;
|
|
59
59
|
};
|
|
@@ -542,11 +542,11 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
542
542
|
var t = query.term, filtered = {results: []};
|
|
543
543
|
var result = isFunc ? data(query) : data;
|
|
544
544
|
if (Array.isArray(result)) {
|
|
545
|
-
|
|
546
|
-
var isObject =
|
|
547
|
-
text = isObject ?
|
|
545
|
+
result.forEach(function (item) {
|
|
546
|
+
var isObject = item.text !== undefined,
|
|
547
|
+
text = isObject ? item.text : item;
|
|
548
548
|
if (t === "" || query.matcher(t, text)) {
|
|
549
|
-
filtered.results.push(isObject ?
|
|
549
|
+
filtered.results.push(isObject ? item : {id: item, text: item});
|
|
550
550
|
}
|
|
551
551
|
});
|
|
552
552
|
query.callback(filtered);
|
|
@@ -1216,8 +1216,8 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
1216
1216
|
if (opts.initSelection === undefined) {
|
|
1217
1217
|
opts.initSelection = function (element, callback) {
|
|
1218
1218
|
var data = [];
|
|
1219
|
-
|
|
1220
|
-
var obj = { id:
|
|
1219
|
+
splitVal(element.val(), opts.separator, opts.transformVal).forEach(function (item) {
|
|
1220
|
+
var obj = { id: item, text: item },
|
|
1221
1221
|
tags = opts.tags;
|
|
1222
1222
|
if (typeof tags === 'function') tags=tags();
|
|
1223
1223
|
$(tags).each(function() { if (equal(this.id, obj.id)) { obj = this; return false; } });
|
|
@@ -3420,10 +3420,10 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
3420
3420
|
} else {
|
|
3421
3421
|
var unique = [], valMap = {};
|
|
3422
3422
|
// filter out duplicates
|
|
3423
|
-
|
|
3424
|
-
if (!(
|
|
3425
|
-
unique.push(
|
|
3426
|
-
valMap[
|
|
3423
|
+
val.forEach(function (item) {
|
|
3424
|
+
if (!(item in valMap)) {
|
|
3425
|
+
unique.push(item);
|
|
3426
|
+
valMap[item] = 0;
|
|
3427
3427
|
}
|
|
3428
3428
|
});
|
|
3429
3429
|
this.opts.element.val(unique.length === 0 ? "" : unique.join(this.opts.separator));
|