@atlassian/aui 10.1.7 → 10.1.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/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/package.json +1 -1
- package/src/js-vendor-effective/select2/select2.js +15 -15
package/package.json
CHANGED
|
@@ -246,7 +246,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
246
246
|
window.setTimeout(function() {
|
|
247
247
|
var el=$el[0], pos=$el.val().length, range;
|
|
248
248
|
|
|
249
|
-
$el.focus
|
|
249
|
+
$el.trigger("focus");
|
|
250
250
|
|
|
251
251
|
/* make sure el received focus so we do not error out when trying to manipulate the caret.
|
|
252
252
|
sometimes modals or others listeners may steal it after its set */
|
|
@@ -1323,12 +1323,12 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
1323
1323
|
|
|
1324
1324
|
// some validation frameworks ignore the change event and listen instead to keyup, click for selects
|
|
1325
1325
|
// so here we trigger the click event manually
|
|
1326
|
-
this.opts.element.click
|
|
1326
|
+
this.opts.element.trigger("click");
|
|
1327
1327
|
|
|
1328
1328
|
// ValidationEngine ignores the change event and listens instead to blur
|
|
1329
1329
|
// so here we trigger the blur event manually if so desired
|
|
1330
1330
|
if (this.opts.blurOnChange)
|
|
1331
|
-
this.opts.element.blur
|
|
1331
|
+
this.opts.element.trigger("blur");
|
|
1332
1332
|
},
|
|
1333
1333
|
|
|
1334
1334
|
//abstract
|
|
@@ -1670,7 +1670,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
1670
1670
|
var nextSearchTerm = this.opts.nextSearchTerm(this.data(), this.lastSearchTerm);
|
|
1671
1671
|
if(nextSearchTerm !== undefined){
|
|
1672
1672
|
this.search.val(nextSearchTerm);
|
|
1673
|
-
this.search.select
|
|
1673
|
+
this.search.trigger("select");
|
|
1674
1674
|
return true;
|
|
1675
1675
|
}
|
|
1676
1676
|
|
|
@@ -2026,7 +2026,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
2026
2026
|
this.close();
|
|
2027
2027
|
this.container.removeClass("select2-container-active");
|
|
2028
2028
|
// synonymous to .is(':focus'), which is available in jquery >= 1.6
|
|
2029
|
-
if (this.search[0] === document.activeElement) { this.search.blur
|
|
2029
|
+
if (this.search[0] === document.activeElement) { this.search.trigger("blur"); }
|
|
2030
2030
|
this.clearSearch();
|
|
2031
2031
|
this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus");
|
|
2032
2032
|
},
|
|
@@ -2182,7 +2182,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
2182
2182
|
this.search.val(this.focusser.val());
|
|
2183
2183
|
}
|
|
2184
2184
|
if (this.opts.shouldFocusInput(this)) {
|
|
2185
|
-
this.search.focus
|
|
2185
|
+
this.search.trigger("focus");
|
|
2186
2186
|
// move the cursor to the end after focussing, otherwise it will be at the beginning and
|
|
2187
2187
|
// new text will appear *before* focusser.val()
|
|
2188
2188
|
el = this.search.get(0);
|
|
@@ -2211,7 +2211,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
2211
2211
|
this.focusser.prop("disabled", false);
|
|
2212
2212
|
|
|
2213
2213
|
if (this.opts.shouldFocusInput(this)) {
|
|
2214
|
-
this.focusser.focus
|
|
2214
|
+
this.focusser.trigger("focus");
|
|
2215
2215
|
}
|
|
2216
2216
|
},
|
|
2217
2217
|
|
|
@@ -2222,7 +2222,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
2222
2222
|
} else {
|
|
2223
2223
|
this.focusser.prop("disabled", false);
|
|
2224
2224
|
if (this.opts.shouldFocusInput(this)) {
|
|
2225
|
-
this.focusser.focus
|
|
2225
|
+
this.focusser.trigger("focus");
|
|
2226
2226
|
}
|
|
2227
2227
|
}
|
|
2228
2228
|
},
|
|
@@ -2238,7 +2238,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
2238
2238
|
this.focusser.prop("disabled", false);
|
|
2239
2239
|
|
|
2240
2240
|
if (this.opts.shouldFocusInput(this)) {
|
|
2241
|
-
this.focusser.focus
|
|
2241
|
+
this.focusser.trigger("focus");
|
|
2242
2242
|
}
|
|
2243
2243
|
},
|
|
2244
2244
|
|
|
@@ -2340,7 +2340,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
2340
2340
|
if (document.activeElement === this.body.get(0)) {
|
|
2341
2341
|
window.setTimeout(this.bind(function() {
|
|
2342
2342
|
if (this.opened() && this.results && this.results.length > 1) {
|
|
2343
|
-
this.search.focus
|
|
2343
|
+
this.search.trigger("focus");
|
|
2344
2344
|
}
|
|
2345
2345
|
}), 0);
|
|
2346
2346
|
}
|
|
@@ -2397,7 +2397,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
2397
2397
|
this.close();
|
|
2398
2398
|
|
|
2399
2399
|
if (this.selection) {
|
|
2400
|
-
this.selection.focus
|
|
2400
|
+
this.selection.trigger("focus");
|
|
2401
2401
|
}
|
|
2402
2402
|
}));
|
|
2403
2403
|
|
|
@@ -2420,7 +2420,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
2420
2420
|
|
|
2421
2421
|
dropdown.on("mousedown touchstart", this.bind(function() {
|
|
2422
2422
|
if (this.opts.shouldFocusInput(this)) {
|
|
2423
|
-
this.search.focus
|
|
2423
|
+
this.search.trigger("focus");
|
|
2424
2424
|
}
|
|
2425
2425
|
}));
|
|
2426
2426
|
|
|
@@ -2632,7 +2632,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
2632
2632
|
this.close();
|
|
2633
2633
|
|
|
2634
2634
|
if ((!options || !options.noFocus) && this.opts.shouldFocusInput(this)) {
|
|
2635
|
-
this.focusser.focus
|
|
2635
|
+
this.focusser.trigger("focus");
|
|
2636
2636
|
}
|
|
2637
2637
|
|
|
2638
2638
|
if (!equal(old, this.id(data))) {
|
|
@@ -3121,7 +3121,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
3121
3121
|
this.updateResults(true);
|
|
3122
3122
|
|
|
3123
3123
|
if (this.opts.shouldFocusInput(this)) {
|
|
3124
|
-
this.search.focus
|
|
3124
|
+
this.search.trigger("focus");
|
|
3125
3125
|
}
|
|
3126
3126
|
this.opts.element.trigger($.Event("select2-open"));
|
|
3127
3127
|
},
|
|
@@ -3135,7 +3135,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
3135
3135
|
// multi
|
|
3136
3136
|
focus: function () {
|
|
3137
3137
|
this.close();
|
|
3138
|
-
this.search.focus
|
|
3138
|
+
this.search.trigger("focus");
|
|
3139
3139
|
},
|
|
3140
3140
|
|
|
3141
3141
|
// multi
|