@atlassian/aui 7.10.0 → 7.10.3

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.
Files changed (128) hide show
  1. package/changelog.md +51 -5
  2. package/dist/aui/css/aui-experimental.css.map +1 -1
  3. package/dist/aui/css/aui-experimental.min.css +1 -1
  4. package/dist/aui/css/aui-experimental.min.css.map +1 -1
  5. package/dist/aui/css/aui-iconfonts.min.css.map +1 -1
  6. package/dist/aui/css/aui.css.map +1 -1
  7. package/dist/aui/css/aui.min.css +8 -8
  8. package/dist/aui/css/aui.min.css.map +1 -1
  9. package/dist/aui/js/aui-css-deprecations.js +6 -6
  10. package/dist/aui/js/aui-css-deprecations.min.js +1 -1
  11. package/dist/aui/js/aui-datepicker.js +81 -39
  12. package/dist/aui/js/aui-datepicker.min.js +1 -1
  13. package/dist/aui/js/aui-experimental.js +279 -277
  14. package/dist/aui/js/aui-experimental.min.js +1 -1
  15. package/dist/aui/js/aui-header-async.js +6 -6
  16. package/dist/aui/js/aui-header-async.min.js +1 -1
  17. package/dist/aui/js/aui-soy.js +56 -56
  18. package/dist/aui/js/aui-soy.min.js +1 -1
  19. package/dist/aui/js/aui.js +2283 -1540
  20. package/dist/aui/js/aui.min.js +1 -1
  21. package/lib/css/aui-date-picker.css.map +1 -1
  22. package/lib/css/aui-experimental-tooltip.css.map +1 -1
  23. package/lib/css/aui-page-typography-legacy1.css.map +1 -1
  24. package/lib/css/aui-page-typography.css.map +1 -1
  25. package/lib/css/batch/aui-experimental.css.map +1 -1
  26. package/lib/css/batch/aui.css.map +1 -1
  27. package/lib/css/forms.css.map +1 -1
  28. package/lib/css/imports/aui-theme/core/atlaskit-theme/borders.css +2 -0
  29. package/lib/css/imports/aui-theme/core/atlaskit-theme/borders.css.map +1 -0
  30. package/lib/css/imports/aui-theme/core/atlaskit-theme/colors.css +2 -0
  31. package/lib/css/imports/aui-theme/core/atlaskit-theme/colors.css.map +1 -0
  32. package/lib/css/imports/aui-theme/core/atlaskit-theme/fonts.css +2 -0
  33. package/lib/css/imports/aui-theme/core/atlaskit-theme/fonts.css.map +1 -0
  34. package/lib/css/imports/aui-theme/core/colors.css.map +1 -1
  35. package/lib/css/imports/aui-theme/core/text.css.map +1 -1
  36. package/lib/js/aui/backbone.js.map +1 -1
  37. package/lib/js/aui/binder.js.map +1 -1
  38. package/lib/js/aui/binders/placeholder.js.map +1 -1
  39. package/lib/js/aui/button.js.map +1 -1
  40. package/lib/js/aui/checkbox-multiselect.js.map +1 -1
  41. package/lib/js/aui/date-picker.js +72 -26
  42. package/lib/js/aui/date-picker.js.map +1 -1
  43. package/lib/js/aui/dialog.js.map +1 -1
  44. package/lib/js/aui/dialog2.js.map +1 -1
  45. package/lib/js/aui/drop-down.js.map +1 -1
  46. package/lib/js/aui/dropdown2.js +7 -5
  47. package/lib/js/aui/dropdown2.js.map +1 -1
  48. package/lib/js/aui/fancy-file-input.js.map +1 -1
  49. package/lib/js/aui/flag.js.map +1 -1
  50. package/lib/js/aui/focus-manager-global.js.map +1 -1
  51. package/lib/js/aui/focus-manager.js.map +1 -1
  52. package/lib/js/aui/form-notification.js.map +1 -1
  53. package/lib/js/aui/form-validation/basic-validators.js.map +1 -1
  54. package/lib/js/aui/form-validation/validator-register.js.map +1 -1
  55. package/lib/js/aui/form-validation.js.map +1 -1
  56. package/lib/js/aui/header-async.js.map +1 -1
  57. package/lib/js/aui/i18n.js.map +1 -1
  58. package/lib/js/aui/inline-dialog.js.map +1 -1
  59. package/lib/js/aui/inline-dialog2.js.map +1 -1
  60. package/lib/js/aui/internal/alignment.js.map +1 -1
  61. package/lib/js/aui/internal/deprecation.js.map +1 -1
  62. package/lib/js/aui/internal/globalize.js.map +1 -1
  63. package/lib/js/aui/internal/header/create-header.js.map +1 -1
  64. package/lib/js/aui/internal/select/option.js +1 -1
  65. package/lib/js/aui/internal/select/option.js.map +1 -1
  66. package/lib/js/aui/internal/select/suggestion-model.js.map +1 -1
  67. package/lib/js/aui/internal/select/suggestions-view.js.map +1 -1
  68. package/lib/js/aui/internal/skate.js.map +1 -1
  69. package/lib/js/aui/internal/widget.js.map +1 -1
  70. package/lib/js/aui/label.js.map +1 -1
  71. package/lib/js/aui/layer-manager-global.js.map +1 -1
  72. package/lib/js/aui/layer-manager.js.map +1 -1
  73. package/lib/js/aui/layer.js.map +1 -1
  74. package/lib/js/aui/messages.js.map +1 -1
  75. package/lib/js/aui/navigation.js.map +1 -1
  76. package/lib/js/aui/polyfills/placeholder.js.map +1 -1
  77. package/lib/js/aui/populate-parameters.js.map +1 -1
  78. package/lib/js/aui/progress-indicator.js.map +1 -1
  79. package/lib/js/aui/progressive-data-set.js.map +1 -1
  80. package/lib/js/aui/query-input.js.map +1 -1
  81. package/lib/js/aui/restful-table/custom-create-view.js.map +1 -1
  82. package/lib/js/aui/restful-table/custom-edit-view.js.map +1 -1
  83. package/lib/js/aui/restful-table/custom-read-view.js.map +1 -1
  84. package/lib/js/aui/restful-table/edit-row.js.map +1 -1
  85. package/lib/js/aui/restful-table/entry-model.js.map +1 -1
  86. package/lib/js/aui/restful-table/row.js.map +1 -1
  87. package/lib/js/aui/restful-table.js +3 -1
  88. package/lib/js/aui/restful-table.js.map +1 -1
  89. package/lib/js/aui/result-set.js.map +1 -1
  90. package/lib/js/aui/results-list.js.map +1 -1
  91. package/lib/js/aui/select.js.map +1 -1
  92. package/lib/js/aui/select2.js.map +1 -1
  93. package/lib/js/aui/setup.js.map +1 -1
  94. package/lib/js/aui/sidebar.js.map +1 -1
  95. package/lib/js/aui/spin.js.map +1 -1
  96. package/lib/js/aui/spinner.js.map +1 -1
  97. package/lib/js/aui/tables-sortable.js.map +1 -1
  98. package/lib/js/aui/tabs.js +6 -1
  99. package/lib/js/aui/tabs.js.map +1 -1
  100. package/lib/js/aui/template.js.map +1 -1
  101. package/lib/js/aui/toggle.js.map +1 -1
  102. package/lib/js/aui/tooltip.js.map +1 -1
  103. package/lib/js/aui/trigger.js.map +1 -1
  104. package/lib/js/aui/truncating-progressive-data-set.js.map +1 -1
  105. package/lib/js/aui/unbind-text-resize.js.map +1 -1
  106. package/lib/js/aui/underscore.js.map +1 -1
  107. package/lib/js/aui/version.js +1 -1
  108. package/lib/js/aui/version.js.map +1 -1
  109. package/lib/js/aui/when-i-type.js.map +1 -1
  110. package/lib/js/aui-css-deprecations.js.map +1 -1
  111. package/lib/js-vendor/jquery/jquery-ui/jquery.ui.dialog.js +30 -3
  112. package/package.json +57 -44
  113. package/src/js/aui/date-picker.js +64 -25
  114. package/src/js/aui/dropdown2.js +2 -1
  115. package/src/js/aui/internal/select/option.js +1 -1
  116. package/src/js/aui/restful-table.js +3 -1
  117. package/src/js/aui/tabs.js +6 -1
  118. package/src/js-vendor/jquery/jquery-ui/jquery.ui.dialog.js +30 -3
  119. package/src/less/imports/aui-theme/core/atlaskit-theme/borders.less +1 -0
  120. package/src/less/imports/aui-theme/core/atlaskit-theme/colors.less +112 -0
  121. package/src/less/imports/aui-theme/core/atlaskit-theme/fonts.less +3 -0
  122. package/src/less/imports/aui-theme/core/colors.less +1 -1
  123. package/src/less/imports/aui-theme/core/text.less +1 -1
  124. package/yarn.lock +8161 -3856
  125. package/lib/js-vendor/jquery/jquery-ui/jquery-ui.js +0 -11396
  126. package/lib/js-vendor/underscorejs/underscore.js +0 -1287
  127. package/src/js-vendor/jquery/jquery-ui/jquery-ui.js +0 -11396
  128. package/src/js-vendor/underscorejs/underscore.js +0 -1287
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@atlassian/aui",
3
3
  "description": "Atlassian User Interface Framework",
4
- "version": "7.10.0",
4
+ "version": "7.10.3",
5
5
  "author": "Atlassian Pty Ltd.",
6
6
  "homepage": "https://docs.atlassian.com/aui/latest/",
7
7
  "license": "SEE LICENSE IN LICENSE.md",
@@ -35,11 +35,11 @@
35
35
  "skatejs-template-html": "0.0.0",
36
36
  "tether": "atlassian/tether#amd-with-global",
37
37
  "trim-extra-html-whitespace": "1.3.0",
38
- "underscore": "1.6.0",
39
- "webcomponents.js": "0.7.20"
38
+ "underscore": "1.13.1",
39
+ "webcomponents.js": "0.7.20",
40
+ "yarn-version-bump": "0.0.4"
40
41
  },
41
42
  "devDependencies": {
42
- "@atlaskit/util-shared-styles": "2.10.4",
43
43
  "@atlassian/atlassian-soy-loader": "2.1.1",
44
44
  "@atlassian/eslint-config-atlassian-fecq": "*",
45
45
  "@atlassian/soy-template-plugin-js": "4.3.0",
@@ -58,69 +58,66 @@
58
58
  "eslint-plugin-mocha": "4.11.0",
59
59
  "extract-text-webpack-plugin": "^3.0.2",
60
60
  "file-loader": "1.1.5",
61
- "galvatron": "treshugart/galvatron#2e399eb",
61
+ "galvatron": "treshugart/galvatron#d140aeb",
62
62
  "glob": "7.1.2",
63
- "gulp": "gulpjs/gulp#4ed9a4a32755",
63
+ "gulp": "4.0.2",
64
64
  "gulp-auto-task": "treshugart/gulp-auto-task#f58bcb5",
65
65
  "gulp-babel": "7.0.0",
66
66
  "gulp-batch": "1.0.5",
67
- "gulp-cli": "1.4.0",
68
- "gulp-clone": "1.0.0",
67
+ "gulp-cli": "2.3.0",
68
+ "gulp-clone": "2.0.1",
69
69
  "gulp-concat": "2.6.1",
70
70
  "gulp-cssnano": "2.1.3",
71
- "gulp-debug": "3.1.0",
72
- "gulp-dedupe": "0.0.2",
73
- "gulp-eslint": "4.0.0",
74
- "gulp-filter": "5.0.1",
75
- "gulp-header": "1.8.9",
76
- "gulp-if": "2.0.2",
77
- "gulp-less": "3.3.2",
71
+ "gulp-debug": "4.0.0",
72
+ "gulp-eslint": "6.0.0",
73
+ "gulp-filter": "6.0.0",
74
+ "gulp-header": "2.0.9",
75
+ "gulp-if": "3.0.0",
76
+ "gulp-less": "4.0.1",
78
77
  "gulp-native2ascii": "0.0.3",
79
- "gulp-rename": "1.2.2",
80
- "gulp-replace": "^0.6.1",
81
- "gulp-sourcemaps": "2.6.1",
82
- "gulp-tap": "1.0.1",
83
- "gulp-uglify": "3.0.0",
84
- "gulp-watch": "4.3.11",
85
- "gulp-watch-less": "treshugart/gulp-watch-less#b647b49",
78
+ "gulp-rename": "2.0.0",
79
+ "gulp-sourcemaps": "3.0.0",
80
+ "gulp-tap": "2.0.0",
81
+ "gulp-uglify": "3.0.2",
82
+ "gulp-watch": "5.0.1",
83
+ "gulp-watch-less": "1.0.1",
86
84
  "gulp-webserver": "0.9.1",
87
- "gulp-zip": "4.0.0",
85
+ "gulp-zip": "5.1.0",
88
86
  "jquery": "2.2.0",
89
87
  "jquery-migrate": "1.4.1",
90
88
  "jstransformer-handlebars": "^1.1.0",
91
- "karma": "1.7.1",
92
- "karma-chrome-launcher": "2.2.0",
93
- "karma-coverage": "1.1.1",
94
- "karma-firefox-launcher": "1.0.1",
95
- "karma-junit-reporter": "1.2.0",
89
+ "karma": "6.2.0",
90
+ "karma-chrome-launcher": "3.1.0",
91
+ "karma-coverage": "2.0.3",
92
+ "karma-firefox-launcher": "2.1.0",
93
+ "karma-junit-reporter": "2.0.1",
96
94
  "karma-less-preprocessor": "0.3.3",
97
- "karma-mocha": "1.3.0",
95
+ "karma-mocha": "2.0.1",
98
96
  "karma-safari-launcher": "1.0.0",
99
- "karma-sauce-launcher": "1.2.0",
100
- "karma-sinon-chai": "1.2.0",
101
- "karma-spec-reporter": "0.0.31",
97
+ "karma-sauce-launcher": "4.3.5",
98
+ "karma-sinon-chai": "2.0.2",
99
+ "karma-spec-reporter": "0.0.32",
102
100
  "lazypipe": "1.0.1",
103
101
  "less": "^2.7.3",
104
102
  "less-loader": "^4.0.5",
105
- "less-plugin-npm-import": "2.1.0",
106
103
  "lolex": "1.4.0",
107
104
  "map-stream": "0.0.7",
108
105
  "md5": "2.2.1",
109
106
  "merge-stream": "1.0.1",
110
107
  "metalsmith": "2.3.0",
111
- "metalsmith-define": "^2.0.1",
112
- "metalsmith-discover-helpers": "^0.1.0",
113
- "metalsmith-discover-partials": "^0.1.0",
114
- "metalsmith-in-place": "^4.1.1",
115
- "metalsmith-layouts": "1.8.1",
116
- "metalsmith-markdown": "0.2.1",
117
- "metalsmith-rootpath": "^1.0.4",
108
+ "metalsmith-define": "2.1.3",
109
+ "metalsmith-discover-helpers": "0.1.1",
110
+ "metalsmith-discover-partials": "0.1.2",
111
+ "metalsmith-in-place": "4.4.2",
112
+ "metalsmith-layouts": "2.3.1",
113
+ "metalsmith-markdown": "1.3.0",
114
+ "metalsmith-rootpath": "1.0.4",
118
115
  "mime": "2.0.3",
119
116
  "minimatch": "3.0.4",
120
- "mkdirp": "0.5.1",
121
- "mocha": "2.4.5",
122
- "multimatch": "2.1.0",
123
- "phantomcss": "^1.1.5",
117
+ "mkdirp": "1.0.4",
118
+ "mocha": "8.3.2",
119
+ "multimatch": "5.0.0",
120
+ "phantomcss": "^1.6.0",
124
121
  "pre-commit": "1.2.2",
125
122
  "request": "2.83.0",
126
123
  "sandy": "0.6.1",
@@ -135,6 +132,22 @@
135
132
  "webpack": "3.10.0",
136
133
  "webpack-merge": "4.1.1"
137
134
  },
135
+ "resolutions": {
136
+ "cryptiles": "4.1.3",
137
+ "cssnano": "4.1.10",
138
+ "gulp-auto-task/**/glob": "5.0.15",
139
+ "gulp": "4.0.2",
140
+ "gulp-filter": "6.0.0",
141
+ "gulp-watch": "5.0.1",
142
+ "gulp-webserver/**/tiny-lr": "2.0.0",
143
+ "less/**/hoek": "4.2.1",
144
+ "micromatch": "4.0.2",
145
+ "open": "8.0.2",
146
+ "uglifyjs-webpack-plugin/**/serialize-javascript": "3.1.0",
147
+ "webfonts-generator/**/xmldom": "0.5.0",
148
+ "webpack/**/yargs": "11.1.1",
149
+ "yargs-parser": "20.2.7"
150
+ },
138
151
  "repository": {
139
152
  "type": "git",
140
153
  "url": "https://bitbucket.org/atlassian/aui"
@@ -10,14 +10,14 @@ import keyCode from './key-code';
10
10
  import i18n from './i18n';
11
11
 
12
12
 
13
- var datePickerCounter = 0;
13
+ let datePickerCounter = 0;
14
14
 
15
- function DatePicker (field, options) {
16
- var datePicker;
17
- var initPolyfill;
18
- var $field;
19
- var datePickerUUID;
20
- var parentPopup;
15
+ function DatePicker (field, baseOptions) {
16
+ let datePicker;
17
+ let initPolyfill;
18
+ let $field;
19
+ let datePickerUUID;
20
+ let options = {};
21
21
 
22
22
  datePicker = {};
23
23
  datePickerUUID = datePickerCounter++;
@@ -28,7 +28,6 @@ function DatePicker (field, options) {
28
28
 
29
29
  $field = $(field);
30
30
  $field.attr('data-aui-dp-uuid', datePickerUUID);
31
- options = $.extend(undefined, DatePicker.prototype.defaultOptions, options);
32
31
 
33
32
  // ---------------------------------------------------------------------
34
33
  // expose arguments with getters ---------------------------------------
@@ -48,16 +47,18 @@ function DatePicker (field, options) {
48
47
 
49
48
  initPolyfill = function () {
50
49
 
51
- var calendar;
52
- var handleDatePickerFocus;
53
- var handleFieldBlur;
54
- var handleFieldFocus;
55
- var handleFieldUpdate;
56
- var initCalendar;
57
- var isSuppressingShow;
58
- var isTrackingDatePickerFocus;
59
- var popup;
60
- var popupContents;
50
+ let calendar;
51
+ let attributeHandler;
52
+ let handleDatePickerFocus;
53
+ let handleFieldBlur;
54
+ let handleFieldFocus;
55
+ let handleFieldUpdate;
56
+ let initCalendar;
57
+ let isSuppressingShow;
58
+ let isTrackingDatePickerFocus;
59
+ let popup;
60
+ let parentPopup;
61
+ let popupContents;
61
62
 
62
63
  // -----------------------------------------------------------------
63
64
  // expose methods for controlling the popup ------------------------
@@ -83,6 +84,18 @@ function DatePicker (field, options) {
83
84
  }
84
85
  };
85
86
 
87
+ datePicker.setMin = function (value) {
88
+ if (typeof calendar !== 'undefined') {
89
+ return calendar.datepicker('option', 'minDate', value);
90
+ }
91
+ };
92
+
93
+ datePicker.setMax = function (value) {
94
+ if (typeof calendar !== 'undefined') {
95
+ return calendar.datepicker('option', 'maxDate', value);
96
+ }
97
+ };
98
+
86
99
  // -----------------------------------------------------------------
87
100
  // initialise the calendar -----------------------------------------
88
101
  // -----------------------------------------------------------------
@@ -107,7 +120,7 @@ function DatePicker (field, options) {
107
120
  'nextText': '>',
108
121
  'onSelect': function (dateText) {
109
122
  $field.val(dateText);
110
- $field.change();
123
+ $field.trigger('change');
111
124
  datePicker.hide();
112
125
  isSuppressingShow = true;
113
126
  $field.focus();
@@ -137,6 +150,17 @@ function DatePicker (field, options) {
137
150
  $field.on('focusout keydown', handleFieldBlur);
138
151
  $field.on('propertychange keyup input paste', handleFieldUpdate);
139
152
 
153
+ // bind attribute handlers to account for html5 attributes
154
+ attributeHandler = new MutationObserver(function (mutationsList) {
155
+ mutationsList.forEach(function(mutation) {
156
+ if (mutation.attributeName === 'min') {
157
+ datePicker.setMin(mutation.target.getAttribute('min'));
158
+ } else if (mutation.attributeName === 'max') {
159
+ datePicker.setMax(mutation.target.getAttribute('max'));
160
+ }
161
+ });
162
+ });
163
+ attributeHandler.observe($field[0], { attributes: true });
140
164
  };
141
165
 
142
166
  // -----------------------------------------------------------------
@@ -184,10 +208,6 @@ function DatePicker (field, options) {
184
208
  // the calendar
185
209
  if (val) {
186
210
  calendar.datepicker('setDate', $field.val());
187
- calendar.datepicker('option', {
188
- 'maxDate': $field.attr('max'),
189
- 'minDate': $field.attr('min')
190
- });
191
211
  }
192
212
  };
193
213
 
@@ -200,12 +220,18 @@ function DatePicker (field, options) {
200
220
  // goodbye, cruel world!
201
221
  datePicker.hide();
202
222
 
223
+ if (attributeHandler) {
224
+ attributeHandler.disconnect();
225
+ attributeHandler = null;
226
+ }
227
+
203
228
  $field.attr('placeholder', null);
204
229
 
205
230
  $field.off('propertychange keyup input paste', handleFieldUpdate);
206
231
  $field.off('focus click', handleFieldFocus);
207
232
  $field.off('focusout keydown', handleFieldBlur);
208
233
  $('body').off('keydown', handleFieldBlur);
234
+ $('body').off('focus blur click mousedown keydown', handleDatePickerFocus);
209
235
 
210
236
  if (DatePicker.prototype.browserSupportsDateField) {
211
237
  $field[0].type = 'date';
@@ -315,11 +341,16 @@ function DatePicker (field, options) {
315
341
 
316
342
  };
317
343
 
344
+ datePicker.reconfigure = function (newOptions) {
345
+ options = $.extend(undefined, DatePicker.prototype.defaultOptions, newOptions);
346
+ datePicker.reset();
347
+ };
348
+
318
349
  // ---------------------------------------------------------------------
319
350
  // bootstrap -----------------------------------------------------------
320
351
  // ---------------------------------------------------------------------
321
352
 
322
- datePicker.reset();
353
+ datePicker.reconfigure(baseOptions);
323
354
 
324
355
  return datePicker;
325
356
 
@@ -401,9 +432,17 @@ DatePicker.prototype.localisations = {
401
432
  // -------------------------------------------------------------------------
402
433
  // finally, integrate with jQuery for convenience --------------------------
403
434
  // -------------------------------------------------------------------------
435
+ const key = 'aui-datepicker';
404
436
 
405
437
  $.fn.datePicker = function (options) {
406
- return new DatePicker(this, options);
438
+ let picker = this.data(key);
439
+ if (!picker) {
440
+ picker = new DatePicker(this, options);
441
+ this.data(key, picker);
442
+ } else if (typeof options === 'object') {
443
+ picker.reconfigure(options);
444
+ }
445
+ return picker;
407
446
  };
408
447
 
409
448
  globalize('DatePicker', DatePicker);
@@ -14,6 +14,7 @@ import keyCode from './key-code';
14
14
  import layer from './layer';
15
15
  import state from './internal/state';
16
16
  import skate from './internal/skate';
17
+ import escapeHtml from './escape-html';
17
18
 
18
19
  function isChecked(el) {
19
20
  return $(el).is('.checked, .aui-dropdown2-checked, [aria-checked="true"]');
@@ -67,7 +68,7 @@ function makeAsyncDropdownContents (json) {
67
68
  var itemHtml = `
68
69
  <${tagName} ${makeAttribute('for')} ${makeAttribute('href')} ${makeBooleanAttribute('interactive')}
69
70
  ${makeBooleanAttribute('checked')} ${makeBooleanAttribute('disabled')} ${makeBooleanAttribute('hidden')}>
70
- ${itemData.content}
71
+ ${escapeHtml(itemData.content)}
71
72
  </${tagName}>`;
72
73
 
73
74
  return itemHtml;
@@ -18,7 +18,7 @@ export default skate('aui-option', {
18
18
  serialize: function () {
19
19
  var json = {};
20
20
  if (this.hasAttribute('img-src')) {
21
- json['img-src'] = this.getAttribute('img-src');
21
+ json['img-src'] = escapeHtml(this.getAttribute('img-src'));
22
22
  }
23
23
  json.value = this.value;
24
24
  json.label = escapeHtml(this.textContent);
@@ -272,7 +272,9 @@ var RestfulTable = Backbone.View.extend({
272
272
  this._applyFocusCoordinator(this._createRow);
273
273
 
274
274
  // focus create row
275
- this._createRow.trigger(this._event.FOCUS);
275
+ if (this.options.autoFocus) {
276
+ this._createRow.trigger(this._event.FOCUS);
277
+ }
276
278
  }
277
279
 
278
280
  // when a model is removed from the collection, remove it from the viewport also
@@ -214,6 +214,10 @@ function switchToTab (tab) {
214
214
  return;
215
215
  }
216
216
 
217
+ if ($tab.attr('href') === undefined) {
218
+ return;
219
+ }
220
+
217
221
  var $pane = $($tab.attr('href').match(REGEX)[0]);
218
222
 
219
223
  $pane
@@ -412,7 +416,8 @@ var tabs = {
412
416
  },
413
417
 
414
418
  change: function (a) {
415
- var $a = $(a);
419
+ var collection = a instanceof HTMLElement || a instanceof $ ? a : document.querySelector(a);
420
+ var $a = $(collection).first();
416
421
  var $tabGroup = $a.closest('.aui-tabs');
417
422
 
418
423
  switchToTab($a);
@@ -1,3 +1,4 @@
1
+ /*! THIS FILE HAS BEEN MODIFIED BY ATLASSIAN. Modified lines are marked below, search "ATLASSIAN" */
1
2
  /*!
2
3
  * jQuery UI Dialog 1.8.24
3
4
  *
@@ -164,12 +165,19 @@ $.widget("ui.dialog", {
164
165
  .text(options.closeText)
165
166
  .appendTo(uiDialogTitlebarClose),
166
167
 
168
+ /**
169
+ * FOLLOWING LINES MODIFIED BY ATLASSIAN
170
+ *
171
+ * This is a backport of the fix in #6016 in commit 7e9060c109b928769a664dbcc2c17bd21231b6f3
172
+ */
167
173
  uiDialogTitle = $('<span></span>')
168
174
  .addClass('ui-dialog-title')
169
175
  .attr('id', titleId)
170
- .html(title)
171
176
  .prependTo(uiDialogTitlebar);
172
177
 
178
+ this._title(uiDialogTitle);
179
+ /** END ATLASSIAN */
180
+
173
181
  //handling of deprecated beforeclose (vs beforeClose) option
174
182
  //Ticket #4669 http://dev.jqueryui.com/ticket/4669
175
183
  //TODO: remove in 1.9pre
@@ -193,6 +201,19 @@ $.widget("ui.dialog", {
193
201
  uiDialog.bgiframe();
194
202
  }
195
203
  },
204
+
205
+ /**
206
+ * FOLLOWING LINES MODIFIED BY ATLASSIAN
207
+ *
208
+ * This is a backport of the fix in #6016 in commit 7e9060c109b928769a664dbcc2c17bd21231b6f3
209
+ */
210
+ _title: function(title) {
211
+ if (!this.options.title) {
212
+ title.html("&#160;");
213
+ }
214
+ title.text(this.options.title);
215
+ },
216
+ /** END ATLASSIAN */
196
217
 
197
218
  _init: function() {
198
219
  if ( this.options.autoOpen ) {
@@ -627,8 +648,14 @@ $.widget("ui.dialog", {
627
648
  }
628
649
  break;
629
650
  case "title":
630
- // convert whatever was passed in o a string, for html() to not throw up
631
- $(".ui-dialog-title", self.uiDialogTitlebar).html("" + (value || '&#160;'));
651
+ /**
652
+ * FOLLOWING LINES MODIFIED BY ATLASSIAN
653
+ *
654
+ * This is a backport of the fix in #6016 in commit 7e9060c109b928769a664dbcc2c17bd21231b6f3
655
+ */
656
+ this._title(self.uiDialogTitlebar.find(".ui-dialog-title"));
657
+ /** END ATLASSIAN */
658
+
632
659
  break;
633
660
  }
634
661
 
@@ -0,0 +1 @@
1
+ @ak-border-radius: 3px;
@@ -0,0 +1,112 @@
1
+ // Primary color palette
2
+ @ak-color-primary1: @ak-color-N800;
3
+ @ak-color-primary2: @ak-color-B500;
4
+ @ak-color-primary3: @ak-color-N0;
5
+
6
+ // Secondary color palette
7
+ @ak-color-secondary1: @ak-color-R300;
8
+ @ak-color-secondary2: @ak-color-Y300;
9
+ @ak-color-secondary3: @ak-color-G300;
10
+ @ak-color-secondary4: @ak-color-P300;
11
+ @ak-color-secondary5: @ak-color-T300;
12
+
13
+ // Reds
14
+ @ak-color-R50: #FFEBE6;
15
+ @ak-color-R75: #FFBDAD;
16
+ @ak-color-R100: #FF8F73;
17
+ @ak-color-R200: #FF7452;
18
+ @ak-color-R300: #FF5630;
19
+ @ak-color-R400: #DE350B;
20
+ @ak-color-R500: #BF2600;
21
+
22
+ // Yellows
23
+ @ak-color-Y50: #FFFAE6;
24
+ @ak-color-Y75: #FFF0B3;
25
+ @ak-color-Y100: #FFE380;
26
+ @ak-color-Y200: #FFC400;
27
+ @ak-color-Y300: #FFAB00;
28
+ @ak-color-Y400: #FF991F;
29
+ @ak-color-Y500: #FF8B00;
30
+
31
+ // Greens
32
+ @ak-color-G50: #E3FCEF;
33
+ @ak-color-G75: #ABF5D1;
34
+ @ak-color-G100: #79F2C0;
35
+ @ak-color-G200: #57D9A3;
36
+ @ak-color-G300: #36B37E;
37
+ @ak-color-G400: #00875A;
38
+ @ak-color-G500: #006644;
39
+
40
+ // Blues
41
+ @ak-color-B50: #DEEBFF;
42
+ @ak-color-B75: #B3D4FF;
43
+ @ak-color-B100: #4C9AFF;
44
+ @ak-color-B200: #2684FF;
45
+ @ak-color-B300: #0065FF;
46
+ @ak-color-B400: #0052CC;
47
+ @ak-color-B500: #0747A6;
48
+
49
+ // Purples
50
+ @ak-color-P50: #EAE6FF;
51
+ @ak-color-P75: #C0B6F2;
52
+ @ak-color-P100: #998DD9;
53
+ @ak-color-P200: #8777D9;
54
+ @ak-color-P300: #6554C0;
55
+ @ak-color-P400: #5243AA;
56
+ @ak-color-P500: #403294;
57
+
58
+ // Teals
59
+ @ak-color-T50: #E6FCFF;
60
+ @ak-color-T75: #B3F5FF;
61
+ @ak-color-T100: #79E2F2;
62
+ @ak-color-T200: #00C7E6;
63
+ @ak-color-T300: #00B8D9;
64
+ @ak-color-T400: #00A3BF;
65
+ @ak-color-T500: #008DA6;
66
+
67
+ @ak-color-N0: #FFFFFF;
68
+ @ak-color-N10: #FAFBFC;
69
+ @ak-color-N20: #F4F5F7;
70
+ @ak-color-N30: #EBECF0;
71
+ @ak-color-N40: #DFE1E6;
72
+ @ak-color-N50: #C1C7D0;
73
+ @ak-color-N60: #B3BAC5;
74
+ @ak-color-N70: #A5ADBA;
75
+ @ak-color-N80: #97A0AF;
76
+ @ak-color-N90: #8993A4;
77
+ @ak-color-N100: #7A869A;
78
+ @ak-color-N200: #6B778C;
79
+ @ak-color-N300: #5E6C84;
80
+ @ak-color-N400: #505F79;
81
+ @ak-color-N500: #42526E;
82
+ @ak-color-N600: #344563;
83
+ @ak-color-N700: #253858;
84
+ @ak-color-N800: #172B4D;
85
+
86
+ // ATTENTION: update the tints this if you update this one
87
+ @ak-color-N900: #091E42;
88
+
89
+
90
+ // Each tint is made of N900 and an alpha channel
91
+ // ak-color-NXXXA: rgba(red(@ak-color-N900), green(@ak-color-N900), 66, ALPHA);
92
+ // but we can't use this, because the JS export would not transform it properly
93
+ // so it follows:
94
+ // ak-color-N900 -> rgb(9,30,66)
95
+
96
+ @ak-color-N10A: rgba(9, 30, 66, 0.02);
97
+ @ak-color-N20A: rgba(9, 30, 66, 0.04);
98
+ @ak-color-N30A: rgba(9, 30, 66, 0.08);
99
+ @ak-color-N40A: rgba(9, 30, 66, 0.13);
100
+ @ak-color-N50A: rgba(9, 30, 66, 0.25);
101
+ @ak-color-N60A: rgba(9, 30, 66, 0.31);
102
+ @ak-color-N70A: rgba(9, 30, 66, 0.36);
103
+ @ak-color-N80A: rgba(9, 30, 66, 0.42);
104
+ @ak-color-N90A: rgba(9, 30, 66, 0.48);
105
+ @ak-color-N100A: rgba(9, 30, 66, 0.54);
106
+ @ak-color-N200A: rgba(9, 30, 66, 0.60);
107
+ @ak-color-N300A: rgba(9, 30, 66, 0.66);
108
+ @ak-color-N400A: rgba(9, 30, 66, 0.71);
109
+ @ak-color-N500A: rgba(9, 30, 66, 0.77);
110
+ @ak-color-N600A: rgba(9, 30, 66, 0.82);
111
+ @ak-color-N700A: rgba(9, 30, 66, 0.89);
112
+ @ak-color-N800A: rgba(9, 30, 66, 0.95);
@@ -0,0 +1,3 @@
1
+ @ak-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
2
+ @ak-font-size-default: 14px;
3
+ @ak-code-font-family: "SFMono-Medium", "SF Mono", "Segoe UI Mono", "Roboto Mono", "Ubuntu Mono", Menlo, Courier, monospace;
@@ -1,4 +1,4 @@
1
- @import '~@atlaskit/util-shared-styles/src/colors';
1
+ @import 'atlaskit-theme/colors';
2
2
 
3
3
  //
4
4
  // ADG3 Compatible Colours Palette
@@ -1,4 +1,4 @@
1
- @import '~@atlaskit/util-shared-styles/src/fonts';
1
+ @import 'atlaskit-theme/fonts';
2
2
  @import 'colors';
3
3
 
4
4
  @aui-text-color: @ak-color-N800;