@atlassian/aui 9.10.5 → 9.11.1
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-design-tokens-api-full.js +2 -2
- package/dist/aui/aui-prototyping-design-tokens-api-full.js.map +1 -1
- package/dist/aui/aui-prototyping-design-tokens-api.js +2 -2
- package/dist/aui/aui-prototyping-design-tokens-api.js.map +1 -1
- package/dist/aui/aui-prototyping-design-tokens-base-themes-css.css +2 -2
- package/dist/aui/aui-prototyping-design-tokens-base-themes-css.css.map +1 -1
- package/dist/aui/aui-prototyping-design-tokens-base-themes-css.js +1 -1
- package/dist/aui/aui-prototyping-design-tokens-base-themes.js +2 -2
- package/dist/aui/aui-prototyping-design-tokens-base-themes.js.map +1 -1
- package/dist/aui/aui-prototyping.css +2 -2
- package/dist/aui/aui-prototyping.css.map +1 -1
- package/dist/aui/aui-prototyping.js +5 -5
- package/dist/aui/aui-prototyping.js.map +1 -1
- package/dist/aui/aui-prototyping.nodeps.css +2 -2
- package/dist/aui/aui-prototyping.nodeps.css.map +1 -1
- package/dist/aui/aui-prototyping.nodeps.js +8 -8
- package/dist/aui/aui-prototyping.nodeps.js.map +1 -1
- package/dist/aui/themes/dark.js +1 -1
- package/dist/aui/themes/dark.js.map +1 -1
- package/dist/aui/themes/legacy-dark.js +1 -1
- package/dist/aui/themes/legacy-dark.js.map +1 -1
- package/dist/aui/themes/legacy-light.js +1 -1
- package/dist/aui/themes/legacy-light.js.map +1 -1
- package/dist/aui/themes/light.js +1 -1
- package/dist/aui/themes/light.js.map +1 -1
- package/dist/aui/themes/typography-adg3.js +1 -1
- package/dist/aui/themes/typography-adg3.js.map +1 -1
- package/dist/aui/themes/typography-minor3.js +1 -1
- package/dist/aui/themes/typography-minor3.js.map +1 -1
- package/entry/token-themes-generated/npm/aui-prototyping-design-tokens-base-themes.css +2 -0
- package/entry/token-themes-generated/npm/themes/dark.js +1 -0
- package/entry/token-themes-generated/npm/themes/legacy-dark.js +1 -0
- package/entry/token-themes-generated/npm/themes/legacy-light.js +1 -0
- package/entry/token-themes-generated/npm/themes/light.js +1 -0
- package/entry/token-themes-generated/npm/themes/typography-adg3.js +18 -16
- package/entry/token-themes-generated/npm/themes/typography-minor3.js +27 -21
- package/package.json +3 -3
- package/src/js/aui/flag.js +34 -8
- package/src/js/aui/focus-manager.js +3 -1
- package/src/js/aui/inline-dialog.js +0 -3
- package/src/js/aui/internal/a11y/focusable-query.js +4 -0
- package/src/js/aui/restful-table/edit-row.js +2 -2
- package/src/js/aui/select2.js +6 -23
- package/src/js/aui/tooltip.js +3 -2
- package/src/less/aui-appheader.less +1 -1
|
@@ -227,7 +227,7 @@ export default Backbone.View.extend({
|
|
|
227
227
|
|
|
228
228
|
this.$el.addClass(this.classNames.DISABLED)
|
|
229
229
|
.find(':submit')
|
|
230
|
-
.
|
|
230
|
+
.prop('disabled', true);
|
|
231
231
|
|
|
232
232
|
return this;
|
|
233
233
|
},
|
|
@@ -254,7 +254,7 @@ export default Backbone.View.extend({
|
|
|
254
254
|
|
|
255
255
|
this.$el.removeClass(this.classNames.DISABLED)
|
|
256
256
|
.find(':submit')
|
|
257
|
-
.
|
|
257
|
+
.prop('disabled', false);
|
|
258
258
|
|
|
259
259
|
return this;
|
|
260
260
|
},
|
package/src/js/aui/select2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import $ from './jquery';
|
|
2
2
|
import '../../js-vendor/jquery/plugins/jquery.select2';
|
|
3
|
-
import layer from
|
|
3
|
+
import layer from "./layer";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Wraps a vanilla Select2 with ADG _style_, as an auiSelect2 method on jQuery objects.
|
|
@@ -20,11 +20,9 @@ const auiContainer = 'aui-select2-container';
|
|
|
20
20
|
const auiDropdown = 'aui-select2-drop aui-dropdown2';
|
|
21
21
|
const auiHasAvatar = 'aui-has-avatar';
|
|
22
22
|
|
|
23
|
-
// Other constants
|
|
24
|
-
const DROPDOWN_LAYER_KEY = 'aui.select2DropdownLayer';
|
|
25
|
-
|
|
26
23
|
$.fn.auiSelect2 = function (first) {
|
|
27
24
|
let updatedArgs;
|
|
25
|
+
let dropdownLayer;
|
|
28
26
|
|
|
29
27
|
if ($.isPlainObject(first)) {
|
|
30
28
|
const auiOpts = $.extend({}, first);
|
|
@@ -85,18 +83,12 @@ $.fn.auiSelect2 = function (first) {
|
|
|
85
83
|
const $selectInput = $(this);
|
|
86
84
|
const $selectDropdown = $selectInput.select2('dropdown');
|
|
87
85
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
if (!dropdownLayer) {
|
|
91
|
-
dropdownLayer = layer();
|
|
92
|
-
$selectInput.data(DROPDOWN_LAYER_KEY, dropdownLayer);
|
|
93
|
-
}
|
|
94
|
-
|
|
86
|
+
if (!dropdownLayer) dropdownLayer = layer();
|
|
95
87
|
dropdownLayer.show(); // add layer to layer manager to get top z-index
|
|
96
88
|
|
|
97
89
|
$selectDropdown.css('z-index', dropdownLayer.$el.css('z-index'));
|
|
98
90
|
// mask is created during opening event, before open
|
|
99
|
-
$(
|
|
91
|
+
$("#select2-drop-mask").css('z-index', dropdownLayer.$el.css('z-index'));
|
|
100
92
|
|
|
101
93
|
if (options.multiple || $selectInput.attr('multiple')) {
|
|
102
94
|
// This is a multi-select, exiting
|
|
@@ -110,17 +102,8 @@ $.fn.auiSelect2 = function (first) {
|
|
|
110
102
|
|
|
111
103
|
select2Instance.on('select2-close', function () {
|
|
112
104
|
const $selectInput = $(this);
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
if (dropdownLayer) {
|
|
116
|
-
dropdownLayer.hide();
|
|
117
|
-
} else {
|
|
118
|
-
AJS.warn(
|
|
119
|
-
'Warning! AUI: `select2-close` event handler could not discover the layer linked with the Select2 dropdown.',
|
|
120
|
-
'This may be happening when there are many instances of Select2 created on the same DOM element.',
|
|
121
|
-
'Consider checking your code as this can negatively affect performance.'
|
|
122
|
-
);
|
|
123
|
-
}
|
|
105
|
+
|
|
106
|
+
dropdownLayer.hide();
|
|
124
107
|
|
|
125
108
|
$selectInput.removeData('was-ariadescribedby-cleared');
|
|
126
109
|
});
|
package/src/js/aui/tooltip.js
CHANGED
|
@@ -48,7 +48,8 @@ const getTipNode = () => {
|
|
|
48
48
|
const toggleTooltipVisibility = (shouldBeHidden = false) => {
|
|
49
49
|
const tipNode = getTipNode();
|
|
50
50
|
if (tipNode) {
|
|
51
|
-
tipNode.classList.toggle('
|
|
51
|
+
tipNode.classList.toggle('hidden', shouldBeHidden);
|
|
52
|
+
tipNode.setAttribute('aria-hidden', shouldBeHidden);
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
|
|
@@ -136,7 +137,7 @@ class Tooltip {
|
|
|
136
137
|
|
|
137
138
|
initContainer() {
|
|
138
139
|
if ($sharedTip === undefined || $sharedTip.get(0) && !$sharedTip.get(0).isConnected) {
|
|
139
|
-
$sharedTip = $(`<div id="${AUI_TOOLTIP_ID}" class="${AUI_TOOLTIP_CLASS_NAME}
|
|
140
|
+
$sharedTip = $(`<div id="${AUI_TOOLTIP_ID}" class="${AUI_TOOLTIP_CLASS_NAME} hidden" role="tooltip" aria-hidden="true"><p class="aui-tooltip-content"></p></div>`);
|
|
140
141
|
$(document.body).append($sharedTip);
|
|
141
142
|
}
|
|
142
143
|
}
|