@atlassian/aui 9.2.1 → 9.2.4-b02efa22b
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 +12 -12
- 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 +12 -12
- package/dist/aui/aui-prototyping.nodeps.js.map +1 -1
- package/package.json +2 -2
- package/src/js/aui/date-picker.js +5 -0
- package/src/js/aui/header-async.js +8 -3
- package/src/js/aui/i18n.js +6 -1
- package/src/js/aui/inline-dialog.js +1 -1
- package/src/js/aui/tabs.js +3 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlassian/aui",
|
|
3
3
|
"description": "Atlassian User Interface library",
|
|
4
|
-
"version": "9.2.
|
|
4
|
+
"version": "9.2.4-b02efa22b",
|
|
5
5
|
"author": "Atlassian Pty Ltd.",
|
|
6
6
|
"homepage": "https://aui.atlassian.com",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"skatejs": "0.13.17",
|
|
43
43
|
"skatejs-template-html": "0.0.0",
|
|
44
44
|
"trim-extra-html-whitespace": "1.3.0",
|
|
45
|
-
"underscore": "1.
|
|
45
|
+
"underscore": "1.13.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@atlassian/adg-server-iconfont": "3.1.0",
|
|
@@ -337,6 +337,11 @@ const initPolyfill = function (datePicker) {
|
|
|
337
337
|
// shows that changing the `type` of input does not erase its value.
|
|
338
338
|
// see https://codepen.io/chrisdarroch/pen/YzwgjyJ
|
|
339
339
|
$field.prop('type', 'text');
|
|
340
|
+
// Set default value on initialization to handle all date formats.
|
|
341
|
+
// It is possible, because of changing type to text on the line above.
|
|
342
|
+
$field.val($field.attr('value'));
|
|
343
|
+
// Trigger change to update calendar popup value.
|
|
344
|
+
$field.trigger('propertychange');
|
|
340
345
|
|
|
341
346
|
// demonstrate the polyfill is initialised
|
|
342
347
|
$field.attr('data-aui-dp-uuid', datePickerUUID);
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import createHeader from './internal/header/create-header';
|
|
2
2
|
import skate from './internal/skate';
|
|
3
3
|
|
|
4
|
-
const Header = skate('aui-header', {
|
|
5
|
-
type: skate.type.
|
|
4
|
+
const Header = skate('aui-header-end', {
|
|
5
|
+
type: skate.type.ELEMENT,
|
|
6
6
|
created: function (element) {
|
|
7
|
-
|
|
7
|
+
const auiHeader = element.parentElement;
|
|
8
|
+
if (auiHeader && auiHeader.classList.contains('aui-header')) {
|
|
9
|
+
createHeader(auiHeader);
|
|
10
|
+
} else {
|
|
11
|
+
console.log('Could not async. initialise aui-header');
|
|
12
|
+
}
|
|
8
13
|
}
|
|
9
14
|
});
|
|
10
15
|
|
package/src/js/aui/i18n.js
CHANGED
|
@@ -7,7 +7,7 @@ import keys from './internal/i18n/aui';
|
|
|
7
7
|
* the key is returned - this could occur in plugin mode if the I18n transform is not performed;
|
|
8
8
|
* or in flatpack mode if the i18n JS file is not loaded.
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
const I18n = {
|
|
11
11
|
keys: keys,
|
|
12
12
|
getText: function (key, ...params) {
|
|
13
13
|
if (Object.prototype.hasOwnProperty.call(this.keys, key)) {
|
|
@@ -18,6 +18,11 @@ export var I18n = {
|
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
+
export {
|
|
22
|
+
I18n,
|
|
23
|
+
format
|
|
24
|
+
}
|
|
25
|
+
|
|
21
26
|
/**
|
|
22
27
|
* Deprecated - do not use AJS.I18n.getText from global scope within AUI code. Use import { I18n } from '../i18n'
|
|
23
28
|
* Also keep in mind that WRM is looking for patterns like "I18n.getText" so do not create
|
|
@@ -6,7 +6,7 @@ import globalize from './internal/globalize';
|
|
|
6
6
|
import keyCode from './key-code';
|
|
7
7
|
import cssEscape from 'css.escape';
|
|
8
8
|
|
|
9
|
-
/* eslint
|
|
9
|
+
/* eslint quotes:off, eqeqeq:off, strict:off, complexity:off */
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Creates a new inline dialog.
|
package/src/js/aui/tabs.js
CHANGED
|
@@ -214,7 +214,7 @@ function calculateResponsiveTabs(tabsContainer, index) {
|
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
if (!$tabsContainer.hasClass('aui-tabs-disabled')) {
|
|
217
|
-
$dropdown.on('click', 'a', handleTabClick);
|
|
217
|
+
$dropdown.on('click.aui-tabs', 'a', handleTabClick);
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
/* Workaround for bug in Edge where the dom is just not being re-rendered properly
|
|
@@ -371,7 +371,7 @@ function getResponsiveTabs () {
|
|
|
371
371
|
function initWindow () {
|
|
372
372
|
const handler = debounce(responsiveResizeHandler, 200);
|
|
373
373
|
handler(getResponsiveTabs());
|
|
374
|
-
$(window).on('resize', () => handler(getResponsiveTabs()));
|
|
374
|
+
$(window).on('resize.aui-tabs', () => handler(getResponsiveTabs()));
|
|
375
375
|
}
|
|
376
376
|
|
|
377
377
|
function initTab (tab) {
|
|
@@ -392,7 +392,7 @@ function initTab (tab) {
|
|
|
392
392
|
});
|
|
393
393
|
|
|
394
394
|
// Set up click event for tabs
|
|
395
|
-
$tabMenu.on('click', 'a', handleTabClick);
|
|
395
|
+
$tabMenu.on('click.aui-tabs', 'a', handleTabClick);
|
|
396
396
|
$tab.data('aui-tab-events-bound', true);
|
|
397
397
|
|
|
398
398
|
initPanes(tab);
|