@atlassian/aui 9.3.21 → 9.3.23

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 (272) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +7 -9
  3. package/dist/aui/aui-css-deprecations.js +1 -1
  4. package/dist/aui/aui-css-deprecations.js.map +1 -1
  5. package/dist/aui/aui-prototyping-browserfocus.css +1 -353
  6. package/dist/aui/aui-prototyping-darkmode.css +1 -262
  7. package/dist/aui/aui-prototyping.css +10 -10
  8. package/dist/aui/aui-prototyping.js +7 -7
  9. package/dist/aui/aui-prototyping.js.map +1 -1
  10. package/dist/aui/aui-prototyping.nodeps.css +10 -10
  11. package/dist/aui/aui-prototyping.nodeps.js +9 -9
  12. package/dist/aui/aui-prototyping.nodeps.js.map +1 -1
  13. package/entry/aui.batch.components.js +21 -21
  14. package/entry/aui.batch.page.js +3 -3
  15. package/entry/aui.batch.patterns.js +20 -20
  16. package/entry/aui.batch.prototyping.js +3 -11
  17. package/entry/aui.component.nav.js +1 -1
  18. package/entry/aui.component.progressbar.js +4 -1
  19. package/entry/aui.side-effects.js +2 -2
  20. package/entry/behaviours/aui.behaviour.format.js +1 -1
  21. package/entry/behaviours/aui.behaviour.i18n.js +1 -1
  22. package/entry/behaviours/aui.behaviour.keyboard-shortcuts.js +1 -1
  23. package/entry/behaviours/aui.behaviour.progressive-data-set.js +1 -1
  24. package/entry/behaviours/aui.behaviour.version.js +1 -1
  25. package/entry/deprecated/aui.component.inline-dialog1.js +1 -1
  26. package/package.json +3 -7
  27. package/src/js/aui/alphanum.js +1 -1
  28. package/src/js/aui/banner.js +2 -2
  29. package/src/js/aui/blanket.js +7 -11
  30. package/src/js/aui/button.js +5 -5
  31. package/src/js/aui/checkbox-multiselect.js +79 -76
  32. package/src/js/aui/clone.js +1 -1
  33. package/src/js/aui/close-button.js +2 -6
  34. package/src/js/aui/contain-dropdown.js +5 -5
  35. package/src/js/aui/contains.js +1 -1
  36. package/src/js/aui/cookie.js +12 -16
  37. package/src/js/aui/date-picker.js +84 -69
  38. package/src/js/aui/debounce.js +5 -8
  39. package/src/js/aui/dialog.js +206 -172
  40. package/src/js/aui/dialog2.js +9 -8
  41. package/src/js/aui/dropdown2.js +211 -181
  42. package/src/js/aui/escape-html.js +2 -2
  43. package/src/js/aui/escape.js +1 -1
  44. package/src/js/aui/event.js +4 -8
  45. package/src/js/aui/expander.js +9 -7
  46. package/src/js/aui/flag.js +15 -17
  47. package/src/js/aui/focus-manager.js +19 -18
  48. package/src/js/aui/form-notification.js +14 -13
  49. package/src/js/aui/form-validation/basic-validators.js +39 -30
  50. package/src/js/aui/form-validation/validator-register.js +9 -5
  51. package/src/js/aui/form-validation.js +17 -14
  52. package/src/js/aui/format.js +9 -6
  53. package/src/js/aui/forms/create-forms-component-body.js +6 -9
  54. package/src/js/aui/forms/custom-checkbox.js +2 -6
  55. package/src/js/aui/forms/custom-radio.js +2 -6
  56. package/src/js/aui/forms.js +4 -8
  57. package/src/js/aui/header-async.js +1 -1
  58. package/src/js/aui/header.js +2 -2
  59. package/src/js/aui/i18n.js +2 -5
  60. package/src/js/aui/index-of.js +1 -1
  61. package/src/js/aui/inline-dialog.js +171 -117
  62. package/src/js/aui/inline-dialog2.js +60 -50
  63. package/src/js/aui/internal/add-id.js +1 -1
  64. package/src/js/aui/internal/alignment.js +57 -49
  65. package/src/js/aui/internal/amdify.js +0 -1
  66. package/src/js/aui/internal/animation.js +2 -5
  67. package/src/js/aui/internal/attributes.js +2 -3
  68. package/src/js/aui/internal/browser.js +5 -6
  69. package/src/js/aui/internal/constants.js +1 -3
  70. package/src/js/aui/internal/deduplicateIDs.js +8 -7
  71. package/src/js/aui/internal/deprecation/deprecated-adg2-icons.js +132 -132
  72. package/src/js/aui/internal/deprecation.js +53 -31
  73. package/src/js/aui/internal/detect-children-change.js +3 -2
  74. package/src/js/aui/internal/elements.js +2 -5
  75. package/src/js/aui/internal/enforcer.js +11 -13
  76. package/src/js/aui/internal/globalize.js +3 -3
  77. package/src/js/aui/internal/has-touch.js +1 -2
  78. package/src/js/aui/internal/header/create-header.js +54 -28
  79. package/src/js/aui/internal/i18n/aui.js +8 -5
  80. package/src/js/aui/internal/i18n/aui_af.js +31 -31
  81. package/src/js/aui/internal/i18n/aui_ar.js +31 -31
  82. package/src/js/aui/internal/i18n/aui_ar_DZ.js +31 -31
  83. package/src/js/aui/internal/i18n/aui_az.js +31 -31
  84. package/src/js/aui/internal/i18n/aui_bg.js +31 -31
  85. package/src/js/aui/internal/i18n/aui_bs.js +31 -31
  86. package/src/js/aui/internal/i18n/aui_ca.js +31 -31
  87. package/src/js/aui/internal/i18n/aui_cs.js +31 -31
  88. package/src/js/aui/internal/i18n/aui_da.js +31 -31
  89. package/src/js/aui/internal/i18n/aui_de.js +31 -31
  90. package/src/js/aui/internal/i18n/aui_el.js +31 -31
  91. package/src/js/aui/internal/i18n/aui_en_AU.js +31 -31
  92. package/src/js/aui/internal/i18n/aui_en_GB.js +31 -31
  93. package/src/js/aui/internal/i18n/aui_en_NZ.js +31 -31
  94. package/src/js/aui/internal/i18n/aui_eo.js +31 -31
  95. package/src/js/aui/internal/i18n/aui_es.js +31 -31
  96. package/src/js/aui/internal/i18n/aui_et.js +31 -31
  97. package/src/js/aui/internal/i18n/aui_eu.js +31 -31
  98. package/src/js/aui/internal/i18n/aui_fa.js +31 -31
  99. package/src/js/aui/internal/i18n/aui_fi.js +31 -31
  100. package/src/js/aui/internal/i18n/aui_fo.js +31 -31
  101. package/src/js/aui/internal/i18n/aui_fr.js +31 -31
  102. package/src/js/aui/internal/i18n/aui_fr_CH.js +31 -31
  103. package/src/js/aui/internal/i18n/aui_gl.js +31 -31
  104. package/src/js/aui/internal/i18n/aui_he.js +31 -31
  105. package/src/js/aui/internal/i18n/aui_hr.js +31 -31
  106. package/src/js/aui/internal/i18n/aui_hu.js +31 -31
  107. package/src/js/aui/internal/i18n/aui_hy.js +31 -31
  108. package/src/js/aui/internal/i18n/aui_id.js +31 -31
  109. package/src/js/aui/internal/i18n/aui_is.js +31 -31
  110. package/src/js/aui/internal/i18n/aui_it.js +31 -31
  111. package/src/js/aui/internal/i18n/aui_ja.js +31 -31
  112. package/src/js/aui/internal/i18n/aui_ko.js +31 -31
  113. package/src/js/aui/internal/i18n/aui_kz.js +31 -31
  114. package/src/js/aui/internal/i18n/aui_lt.js +31 -31
  115. package/src/js/aui/internal/i18n/aui_lv.js +31 -31
  116. package/src/js/aui/internal/i18n/aui_ml.js +31 -31
  117. package/src/js/aui/internal/i18n/aui_ms.js +31 -31
  118. package/src/js/aui/internal/i18n/aui_nl.js +31 -31
  119. package/src/js/aui/internal/i18n/aui_no.js +31 -31
  120. package/src/js/aui/internal/i18n/aui_pl.js +31 -31
  121. package/src/js/aui/internal/i18n/aui_pt.js +31 -31
  122. package/src/js/aui/internal/i18n/aui_pt_BR.js +31 -31
  123. package/src/js/aui/internal/i18n/aui_rm.js +31 -31
  124. package/src/js/aui/internal/i18n/aui_ro.js +31 -31
  125. package/src/js/aui/internal/i18n/aui_ru.js +31 -31
  126. package/src/js/aui/internal/i18n/aui_sk.js +31 -31
  127. package/src/js/aui/internal/i18n/aui_sl.js +31 -31
  128. package/src/js/aui/internal/i18n/aui_sq.js +31 -31
  129. package/src/js/aui/internal/i18n/aui_sr.js +31 -31
  130. package/src/js/aui/internal/i18n/aui_sr_SR.js +31 -31
  131. package/src/js/aui/internal/i18n/aui_sv.js +31 -31
  132. package/src/js/aui/internal/i18n/aui_ta.js +31 -31
  133. package/src/js/aui/internal/i18n/aui_th.js +31 -31
  134. package/src/js/aui/internal/i18n/aui_tj.js +31 -31
  135. package/src/js/aui/internal/i18n/aui_tr.js +31 -31
  136. package/src/js/aui/internal/i18n/aui_uk.js +31 -31
  137. package/src/js/aui/internal/i18n/aui_vi.js +31 -31
  138. package/src/js/aui/internal/i18n/aui_zh_CN.js +31 -31
  139. package/src/js/aui/internal/i18n/aui_zh_HK.js +31 -31
  140. package/src/js/aui/internal/i18n/aui_zh_TW.js +31 -31
  141. package/src/js/aui/internal/log.js +2 -6
  142. package/src/js/aui/internal/mediaQuery.js +2 -3
  143. package/src/js/aui/internal/select/option.js +3 -3
  144. package/src/js/aui/internal/select/suggestion-model.js +1 -1
  145. package/src/js/aui/internal/select/suggestions-model.js +4 -5
  146. package/src/js/aui/internal/select/suggestions-view.js +17 -12
  147. package/src/js/aui/internal/state.js +2 -3
  148. package/src/js/aui/is-clipped.js +2 -2
  149. package/src/js/aui/key-code.js +1 -1
  150. package/src/js/aui/label.js +6 -6
  151. package/src/js/aui/layer.js +100 -98
  152. package/src/js/aui/messages.js +51 -38
  153. package/src/js/aui/navigation.js +7 -9
  154. package/src/js/aui/on-text-resize.js +7 -5
  155. package/src/js/aui/params.js +11 -8
  156. package/src/js/aui/polyfills/custom-event.js +7 -7
  157. package/src/js/aui/polyfills/placeholder.js +4 -4
  158. package/src/js/aui/populate-parameters.js +4 -4
  159. package/src/js/aui/progress-indicator.js +35 -27
  160. package/src/js/aui/progressive-data-set.js +13 -8
  161. package/src/js/aui/query-input.js +1 -1
  162. package/src/js/aui/restful-table/class-names.js +1 -1
  163. package/src/js/aui/restful-table/data-keys.js +1 -1
  164. package/src/js/aui/restful-table/edit-row.js +63 -63
  165. package/src/js/aui/restful-table/entry-model.js +6 -13
  166. package/src/js/aui/restful-table/event-handlers.js +4 -8
  167. package/src/js/aui/restful-table/event-names.js +1 -1
  168. package/src/js/aui/restful-table/row.js +41 -23
  169. package/src/js/aui/restful-table.js +101 -72
  170. package/src/js/aui/result-set.js +5 -5
  171. package/src/js/aui/results-list.js +3 -3
  172. package/src/js/aui/select.js +65 -49
  173. package/src/js/aui/select2.js +14 -6
  174. package/src/js/aui/sidebar.js +81 -51
  175. package/src/js/aui/spin.js +61 -49
  176. package/src/js/aui/spinner.js +11 -12
  177. package/src/js/aui/tables-sortable.js +21 -10
  178. package/src/js/aui/tabs.js +108 -77
  179. package/src/js/aui/to-init.js +1 -1
  180. package/src/js/aui/toggle.js +55 -43
  181. package/src/js/aui/tooltip.js +32 -31
  182. package/src/js/aui/trigger.js +20 -18
  183. package/src/js/aui/truncating-progressive-data-set.js +1 -1
  184. package/src/js/aui/unbind-text-resize.js +1 -1
  185. package/src/js/aui/unique-id.js +1 -1
  186. package/src/js/aui/when-i-type.js +66 -39
  187. package/src/js/aui-css-deprecations.js +50 -50
  188. package/src/js/jquery/jquery.hotkeys.js +124 -49
  189. package/src/js/jquery/jquery.moveto.js +18 -12
  190. package/src/less/adg-fancy-file-input.less +2 -3
  191. package/src/less/adg-header-quicksearch.less +4 -1
  192. package/src/less/adg-iconfont.less +242 -242
  193. package/src/less/adgs-icons.less +262 -262
  194. package/src/less/aui-appheader.less +10 -6
  195. package/src/less/aui-buttons.less +6 -5
  196. package/src/less/aui-date-picker.less +9 -6
  197. package/src/less/aui-experimental-expander.less +8 -8
  198. package/src/less/aui-experimental-labels.less +4 -3
  199. package/src/less/aui-experimental-progress-indicator.less +10 -4
  200. package/src/less/aui-experimental-progress-tracker.less +9 -6
  201. package/src/less/aui-experimental-restfultable.less +11 -3
  202. package/src/less/aui-experimental-tables-sortable.less +5 -3
  203. package/src/less/aui-experimental-tooltip.less +1 -1
  204. package/src/less/aui-link.less +0 -1
  205. package/src/less/aui-lozenge.less +6 -3
  206. package/src/less/aui-navigation.less +13 -13
  207. package/src/less/aui-page-layout.less +3 -4
  208. package/src/less/aui-page-typography.less +8 -3
  209. package/src/less/aui-reset.less +22 -6
  210. package/src/less/aui-select2.less +11 -8
  211. package/src/less/aui-sidebar-badges.less +1 -2
  212. package/src/less/aui-sidebar-config.less +7 -2
  213. package/src/less/aui-sidebar-grouping.less +16 -6
  214. package/src/less/aui-sidebar-navigation.less +7 -5
  215. package/src/less/aui-sidebar-skeleton.less +4 -3
  216. package/src/less/aui-skip-link.less +2 -1
  217. package/src/less/aui-spinner.less +2 -2
  218. package/src/less/aui-toggle.less +2 -2
  219. package/src/less/aui-toolbar2.less +1 -1
  220. package/src/less/checkbox-multiselect.less +13 -13
  221. package/src/less/dialog.less +3 -3
  222. package/src/less/dialog2.less +12 -11
  223. package/src/less/dropdown2-temp.css +4 -4
  224. package/src/less/dropdown2.less +3 -3
  225. package/src/less/form-notification.less +10 -6
  226. package/src/less/forms-current.less +6 -5
  227. package/src/less/forms-legacy.less +4 -2
  228. package/src/less/forms-radios-and-checkboxes.less +9 -11
  229. package/src/less/forms.less +2 -4
  230. package/src/less/iconfont-mixin.less +7 -4
  231. package/src/less/imports/aui-theme/adg/adg-colors.less +40 -40
  232. package/src/less/imports/aui-theme/adg/adg-neutral-dark.less +20 -20
  233. package/src/less/imports/aui-theme/adg/adg-neutral-light.less +20 -20
  234. package/src/less/imports/aui-theme/components/buttons.less +5 -1
  235. package/src/less/imports/aui-theme/components/dropdown.less +3 -1
  236. package/src/less/imports/aui-theme/components/form-notification.less +2 -1
  237. package/src/less/imports/aui-theme/components/forms.less +16 -1
  238. package/src/less/imports/aui-theme/components/inline-dialog2.less +1 -1
  239. package/src/less/imports/aui-theme/components/navigation.less +3 -3
  240. package/src/less/imports/aui-theme/components/progress-tracker.less +6 -2
  241. package/src/less/imports/aui-theme/components/tables.less +3 -2
  242. package/src/less/imports/aui-theme/components/toggle.less +8 -3
  243. package/src/less/imports/aui-theme/core/colors.less +12 -4
  244. package/src/less/imports/aui-theme/core/icons.less +22 -22
  245. package/src/less/imports/aui-theme/core/text.less +6 -3
  246. package/src/less/imports/mixins/dropdown2-trigger-chevron-icon.less +0 -1
  247. package/src/less/imports/mixins/focus.less +12 -4
  248. package/src/less/imports/mixins/media-queries.less +2 -2
  249. package/src/less/imports/mixins/shadows.less +3 -1
  250. package/src/less/imports/mixins/tab-indicator.less +2 -2
  251. package/src/less/imports/mixins.less +11 -4
  252. package/src/less/inline-dialog.less +21 -19
  253. package/src/less/layer.less +0 -2
  254. package/src/less/messages.less +2 -1
  255. package/src/less/single-select.less +14 -9
  256. package/src/less/tables.less +3 -2
  257. package/src/less/tabs.less +4 -3
  258. package/entry/token-themes-generated/npm/aui-prototyping-design-tokens-base-themes.css +0 -797
  259. package/entry/token-themes-generated/npm/aui-prototyping-design-tokens-base-themes.js +0 -26
  260. package/entry/token-themes-generated/npm/aui-prototyping-design-tokens-theme-import-map.js +0 -51
  261. package/entry/token-themes-generated/npm/themes/dark-future.js +0 -7
  262. package/entry/token-themes-generated/npm/themes/dark-new-input-border.js +0 -7
  263. package/entry/token-themes-generated/npm/themes/dark.js +0 -395
  264. package/entry/token-themes-generated/npm/themes/legacy-dark.js +0 -395
  265. package/entry/token-themes-generated/npm/themes/legacy-light.js +0 -395
  266. package/entry/token-themes-generated/npm/themes/light-future.js +0 -7
  267. package/entry/token-themes-generated/npm/themes/light-new-input-border.js +0 -7
  268. package/entry/token-themes-generated/npm/themes/light.js +0 -395
  269. package/entry/token-themes-generated/npm/themes/shape.js +0 -15
  270. package/entry/token-themes-generated/npm/themes/spacing.js +0 -27
  271. package/entry/token-themes-generated/npm/themes/typography-adg3.js +0 -50
  272. package/entry/token-themes-generated/npm/themes/typography-minor3.js +0 -41
@@ -2,55 +2,56 @@ import { css } from './aui/internal/deprecation';
2
2
  import deprecatedAdg2Icons from './aui/internal/deprecation/deprecated-adg2-icons';
3
3
 
4
4
  css('.aui-message span.aui-icon', {
5
- displayName: 'Message icon span'
5
+ displayName: 'Message icon span',
6
6
  });
7
7
  css('.aui-tabs.vertical-tabs', {
8
- displayName: 'Vertical tabs'
8
+ displayName: 'Vertical tabs',
9
9
  });
10
10
  css('form.aui span.content');
11
- css([
12
- 'form.aui .button',
13
- 'form.aui .buttons-container'
14
- ], {
11
+ css(['form.aui .button', 'form.aui .buttons-container'], {
15
12
  displayName: 'Unprefixed buttons',
16
13
  alternativeName: 'aui-button and aui-buttons',
17
14
  removeInVersion: '10.0.0',
18
15
  });
19
- css([
20
- 'form.aui .icon-date',
21
- 'form.aui .icon-range',
22
- 'form.aui .icon-help',
23
- 'form.aui .icon-required',
24
- 'form.aui .icon-inline-help',
25
- 'form.aui .icon-users',
26
- '.aui-icon-date',
27
- '.aui-icon-range',
28
- '.aui-icon-help',
29
- '.aui-icon-required',
30
- '.aui-icon-users',
31
- '.aui-icon-inline-help'
32
- ], {
33
- displayName: 'Form icons'
34
- });
35
- css([
36
- '.aui-dropdown2 .active',
37
- '.aui-dropdown2 .checked',
38
- '.aui-dropdown2 .disabled',
39
- '.aui-dropdown2 .interactive'
40
- ], {
41
- displayName: 'Unprefixed dropdown2 css AUI-2150',
42
- removeInVersion: '10.0.0'
43
- });
44
-
45
-
16
+ css(
17
+ [
18
+ 'form.aui .icon-date',
19
+ 'form.aui .icon-range',
20
+ 'form.aui .icon-help',
21
+ 'form.aui .icon-required',
22
+ 'form.aui .icon-inline-help',
23
+ 'form.aui .icon-users',
24
+ '.aui-icon-date',
25
+ '.aui-icon-range',
26
+ '.aui-icon-help',
27
+ '.aui-icon-required',
28
+ '.aui-icon-users',
29
+ '.aui-icon-inline-help',
30
+ ],
31
+ {
32
+ displayName: 'Form icons',
33
+ }
34
+ );
35
+ css(
36
+ [
37
+ '.aui-dropdown2 .active',
38
+ '.aui-dropdown2 .checked',
39
+ '.aui-dropdown2 .disabled',
40
+ '.aui-dropdown2 .interactive',
41
+ ],
42
+ {
43
+ displayName: 'Unprefixed dropdown2 css AUI-2150',
44
+ removeInVersion: '10.0.0',
45
+ }
46
+ );
46
47
 
47
48
  // 5.9.0
48
49
  // -----
49
50
 
50
51
  var fiveNineZero = {
51
52
  // Inline Dialog
52
- 'arrow': 'aui-inline-dialog-arrow',
53
- 'contents': 'aui-inline-dialog-contents',
53
+ arrow: 'aui-inline-dialog-arrow',
54
+ contents: 'aui-inline-dialog-contents',
54
55
  };
55
56
  var name;
56
57
 
@@ -59,7 +60,7 @@ for (name in fiveNineZero) {
59
60
  css(name, {
60
61
  alternativeName: fiveNineZero[name],
61
62
  removeVersion: '10.0.0',
62
- sinceVersion: '5.9.0'
63
+ sinceVersion: '5.9.0',
63
64
  });
64
65
  }
65
66
  }
@@ -72,39 +73,38 @@ css('.aui-badge', {
72
73
  alternativeName: 'aui-badge',
73
74
  sinceVersion: '7.1.0',
74
75
  removeInVersion: '10.0.0',
75
- extraInfo: 'The badge pattern is best used as a web component instead of a CSS class'
76
+ extraInfo: 'The badge pattern is best used as a web component instead of a CSS class',
76
77
  });
77
78
 
78
79
  // 7.5.0
79
80
  // -----
80
81
 
81
- css([
82
- '.aui-iconfont-image-extrasmall',
83
- ], {
82
+ css(['.aui-iconfont-image-extrasmall'], {
84
83
  displayName: 'Special size icon names',
85
84
  sinceVersion: '7.5.0',
86
85
  removeInVersion: '10.0.0',
87
- extraInfo: 'The only size variant allowed for icon names is `-small`.'
86
+ extraInfo: 'The only size variant allowed for icon names is `-small`.',
88
87
  });
89
88
 
90
89
  // New ADGS names for the old ADG2 icon
91
- deprecatedAdg2Icons.forEach(({ newName, oldName }) => (
90
+ deprecatedAdg2Icons.forEach(({ newName, oldName }) =>
92
91
  css(`.aui-iconfont-${oldName}`, {
93
92
  displayName: 'ADG2 icon',
94
93
  alternativeName: `.aui-iconfont-${newName}`,
95
94
  sinceVersion: '7.5.0',
96
95
  removeVersion: '10.0.0',
97
- extraInfo: 'Use the new ADGS icon CSS class name'
96
+ extraInfo: 'Use the new ADGS icon CSS class name',
98
97
  })
99
- ));
98
+ );
100
99
 
101
100
  // 7.8.0
102
101
  css('.aui-table-interactive', {
103
102
  alternativeName: '.aui-table-list',
104
103
  sinceVersion: '7.8.0',
105
104
  removeInVersion: '10.0.0',
106
- extraInfo: 'The "interactive" suffix caused some confusion when contrasted with sortable tables.' +
107
- 'The name has been updated to reflect its intended purpose: displaying lists of data in a tabular format.'
105
+ extraInfo:
106
+ 'The "interactive" suffix caused some confusion when contrasted with sortable tables.' +
107
+ 'The name has been updated to reflect its intended purpose: displaying lists of data in a tabular format.',
108
108
  });
109
109
 
110
110
  // 7.9.4
@@ -113,7 +113,7 @@ css('aui-spinner[filled]', {
113
113
  removeInVersion: '10.0.0',
114
114
  extraInfo: `Add CSS to the parent element of the <aui-spinner>.
115
115
  Use CSS flexbox or grid to vertically align it.
116
- See https://css-tricks.com/centering-css-complete-guide/ for techniques.`
116
+ See https://css-tricks.com/centering-css-complete-guide/ for techniques.`,
117
117
  });
118
118
 
119
119
  // 8.4.0
@@ -121,7 +121,7 @@ See https://css-tricks.com/centering-css-complete-guide/ for techniques.`
121
121
  css('.aui-button-light', {
122
122
  sinceVersion: '8.4.0',
123
123
  removeInVersion: '10.0.0',
124
- extraInfo: 'ADGS allows only for normal and subtle buttons.'
124
+ extraInfo: 'ADGS allows only for normal and subtle buttons.',
125
125
  });
126
126
 
127
127
  // 9.3.5
@@ -129,5 +129,5 @@ css('.aui-button-light', {
129
129
  css('.aui-dropdown2-tailed', {
130
130
  sinceVersion: '9.3.5',
131
131
  removeInVersion: '10.0.0',
132
- extraInfo: 'ADGS does not include tails on layered components'
133
- })
132
+ extraInfo: 'ADGS does not include tails on layered components',
133
+ });
@@ -10,37 +10,99 @@
10
10
  *
11
11
  * Original idea by:
12
12
  * Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/
13
- */
14
-
15
- (function(jQuery){
13
+ */
16
14
 
15
+ (function (jQuery) {
17
16
  jQuery.hotkeys = {
18
- version: "0.8",
17
+ version: '0.8',
19
18
 
20
19
  specialKeys: {
21
- 8: "backspace", 9: "tab", 13: "return", 16: "shift", 17: "ctrl", 18: "alt", 19: "pause",
22
- 20: "capslock", 27: "esc", 32: "space", 33: "pageup", 34: "pagedown", 35: "end", 36: "home",
23
- 37: "left", 38: "up", 39: "right", 40: "down", 45: "insert", 46: "del",
24
- 91 : "meta",
25
- 96: "0", 97: "1", 98: "2", 99: "3", 100: "4", 101: "5", 102: "6", 103: "7",
26
- 104: "8", 105: "9", 106: "*", 107: "+", 109: "-", 110: ".", 111 : "/",
27
- 112: "f1", 113: "f2", 114: "f3", 115: "f4", 116: "f5", 117: "f6", 118: "f7", 119: "f8",
28
- 120: "f9", 121: "f10", 122: "f11", 123: "f12", 144: "numlock", 145: "scroll",
29
- 188: ",", 190: ".", 191: "/", 224: "meta", 219: '[', 221: ']'
20
+ 8: 'backspace',
21
+ 9: 'tab',
22
+ 13: 'return',
23
+ 16: 'shift',
24
+ 17: 'ctrl',
25
+ 18: 'alt',
26
+ 19: 'pause',
27
+ 20: 'capslock',
28
+ 27: 'esc',
29
+ 32: 'space',
30
+ 33: 'pageup',
31
+ 34: 'pagedown',
32
+ 35: 'end',
33
+ 36: 'home',
34
+ 37: 'left',
35
+ 38: 'up',
36
+ 39: 'right',
37
+ 40: 'down',
38
+ 45: 'insert',
39
+ 46: 'del',
40
+ 91: 'meta',
41
+ 96: '0',
42
+ 97: '1',
43
+ 98: '2',
44
+ 99: '3',
45
+ 100: '4',
46
+ 101: '5',
47
+ 102: '6',
48
+ 103: '7',
49
+ 104: '8',
50
+ 105: '9',
51
+ 106: '*',
52
+ 107: '+',
53
+ 109: '-',
54
+ 110: '.',
55
+ 111: '/',
56
+ 112: 'f1',
57
+ 113: 'f2',
58
+ 114: 'f3',
59
+ 115: 'f4',
60
+ 116: 'f5',
61
+ 117: 'f6',
62
+ 118: 'f7',
63
+ 119: 'f8',
64
+ 120: 'f9',
65
+ 121: 'f10',
66
+ 122: 'f11',
67
+ 123: 'f12',
68
+ 144: 'numlock',
69
+ 145: 'scroll',
70
+ 188: ',',
71
+ 190: '.',
72
+ 191: '/',
73
+ 224: 'meta',
74
+ 219: '[',
75
+ 221: ']',
30
76
  },
31
77
 
32
78
  // These only work under Mac Gecko when using keypress (see http://unixpapa.com/js/key.html).
33
- keypressKeys: [ "<", ">", "?" ],
79
+ keypressKeys: ['<', '>', '?'],
34
80
 
35
81
  shiftNums: {
36
- "`": "~", "1": "!", "2": "@", "3": "#", "4": "$", "5": "%", "6": "^", "7": "&",
37
- "8": "*", "9": "(", "0": ")", "-": "_", "=": "+", ";": ":", "'": "\"", ",": "<",
38
- ".": ">", "/": "?", "\\": "|"
39
- }
82
+ '`': '~',
83
+ '1': '!',
84
+ '2': '@',
85
+ '3': '#',
86
+ '4': '$',
87
+ '5': '%',
88
+ '6': '^',
89
+ '7': '&',
90
+ '8': '*',
91
+ '9': '(',
92
+ '0': ')',
93
+ '-': '_',
94
+ '=': '+',
95
+ ';': ':',
96
+ "'": '"',
97
+ ',': '<',
98
+ '.': '>',
99
+ '/': '?',
100
+ '\\': '|',
101
+ },
40
102
  };
41
103
 
42
104
  jQuery.each(jQuery.hotkeys.keypressKeys, function (_, key) {
43
- jQuery.hotkeys.shiftNums[ key ] = key;
105
+ jQuery.hotkeys.shiftNums[key] = key;
44
106
  });
45
107
 
46
108
  function TimedNumber(timer) {
@@ -64,21 +126,27 @@
64
126
  this.num = 0;
65
127
  };
66
128
 
67
- function keyHandler( handleObj ) {
129
+ function keyHandler(handleObj) {
68
130
  // Only care when a possible input has been specified
69
- if ( !(jQuery.isPlainObject(handleObj.data) || jQuery.isArray(handleObj.data) || typeof handleObj.data === "string") ) {
131
+ if (
132
+ !(
133
+ jQuery.isPlainObject(handleObj.data) ||
134
+ jQuery.isArray(handleObj.data) ||
135
+ typeof handleObj.data === 'string'
136
+ )
137
+ ) {
70
138
  return;
71
139
  }
72
140
 
73
141
  var origHandler = handleObj.handler,
74
142
  options = {
75
143
  timer: 700,
76
- combo: []
144
+ combo: [],
77
145
  };
78
146
 
79
147
  (function (data) {
80
148
  if (typeof data === 'string') {
81
- options.combo = [ data ];
149
+ options.combo = [data];
82
150
  } else if (jQuery.isArray(data)) {
83
151
  options.combo = data;
84
152
  } else {
@@ -90,35 +158,41 @@
90
158
  })(handleObj.data);
91
159
 
92
160
  handleObj.index = new TimedNumber(options.timer);
93
- handleObj.handler = function( event ) {
161
+ handleObj.handler = function (event) {
94
162
  // Don't fire in text-accepting inputs that we didn't directly bind to
95
163
  // important to note that jQuery.fn.prop is only available on jquery 1.6+
96
- if ( this !== event.target && (/textarea|select|input/i.test( event.target.nodeName ) ||
97
- jQuery(event.target).prop('contenteditable') === 'true' )) {
164
+ if (
165
+ this !== event.target &&
166
+ (/textarea|select|input/i.test(event.target.nodeName) ||
167
+ jQuery(event.target).prop('contenteditable') === 'true')
168
+ ) {
98
169
  return;
99
170
  }
100
171
 
101
172
  // Keypress represents characters, not special keys
102
- var special = event.type !== 'keypress' ? jQuery.hotkeys.specialKeys[ event.which ] : null,
103
- character = String.fromCharCode( event.which ).toLowerCase(),
104
- key, modif = "", possible = {};
173
+ var special =
174
+ event.type !== 'keypress' ? jQuery.hotkeys.specialKeys[event.which] : null,
175
+ character = String.fromCharCode(event.which).toLowerCase(),
176
+ key,
177
+ modif = '',
178
+ possible = {};
105
179
 
106
180
  // check combinations (alt|ctrl|shift+anything)
107
- if ( event.altKey && special !== "alt" ) {
108
- modif += "alt+";
181
+ if (event.altKey && special !== 'alt') {
182
+ modif += 'alt+';
109
183
  }
110
184
 
111
- if ( event.ctrlKey && special !== "ctrl" ) {
112
- modif += "ctrl+";
185
+ if (event.ctrlKey && special !== 'ctrl') {
186
+ modif += 'ctrl+';
113
187
  }
114
188
 
115
189
  // TODO: Need to make sure this works consistently across platforms
116
- if ( event.metaKey && !event.ctrlKey && special !== "meta" ) {
117
- modif += "meta+";
190
+ if (event.metaKey && !event.ctrlKey && special !== 'meta') {
191
+ modif += 'meta+';
118
192
  }
119
193
 
120
- if ( event.shiftKey && special !== "shift" ) {
121
- modif += "shift+";
194
+ if (event.shiftKey && special !== 'shift') {
195
+ modif += 'shift+';
122
196
  }
123
197
 
124
198
  // Under Chrome and Safari, meta's keycode == '['s charcode
@@ -128,22 +202,24 @@
128
202
  }
129
203
 
130
204
  if (special) {
131
- possible[ modif + special ] = true;
205
+ possible[modif + special] = true;
132
206
  }
133
207
  if (character) {
134
- possible[ modif + character ] = true;
208
+ possible[modif + character] = true;
135
209
  }
136
210
 
137
211
  // "$" can be specified as "shift+4" or "$"
138
- if ( /shift+/.test(modif) ) {
139
- possible [ modif.replace('shift+', '') + jQuery.hotkeys.shiftNums[ (special || character) ] ] = true;
212
+ if (/shift+/.test(modif)) {
213
+ possible[
214
+ modif.replace('shift+', '') + jQuery.hotkeys.shiftNums[special || character]
215
+ ] = true;
140
216
  }
141
217
 
142
218
  var index = handleObj.index,
143
219
  combo = options.combo;
144
220
 
145
- if ( pressed(combo[index.val()], possible) ) {
146
- if ( index.val() === combo.length - 1 ) {
221
+ if (pressed(combo[index.val()], possible)) {
222
+ if (index.val() === combo.length - 1) {
147
223
  index.reset();
148
224
  return origHandler.apply(this, arguments);
149
225
  } else {
@@ -152,7 +228,7 @@
152
228
  } else {
153
229
  index.reset();
154
230
  // For mutli-key combinations, we might have restarted the key sequence.
155
- if ( pressed(combo[0], possible) ) {
231
+ if (pressed(combo[0], possible)) {
156
232
  index.inc();
157
233
  }
158
234
  }
@@ -162,15 +238,14 @@
162
238
  function pressed(key, possible) {
163
239
  var keys = key.split(' ');
164
240
  for (var i = 0, len = keys.length; i < len; i++) {
165
- if ( possible[keys[i]] ) {
241
+ if (possible[keys[i]]) {
166
242
  return true;
167
243
  }
168
244
  }
169
245
  return false;
170
246
  }
171
247
 
172
- jQuery.each([ "keydown", "keyup", "keypress" ], function() {
173
- jQuery.event.special[ this ] = { add: keyHandler };
248
+ jQuery.each(['keydown', 'keyup', 'keypress'], function () {
249
+ jQuery.event.special[this] = { add: keyHandler };
174
250
  });
175
-
176
- })( jQuery );
251
+ })(jQuery);
@@ -28,7 +28,7 @@
28
28
  jQuery.fn.moveTo = function (options) {
29
29
  var defaults = {
30
30
  transition: false,
31
- scrollOffset: 35
31
+ scrollOffset: 35,
32
32
  };
33
33
 
34
34
  var opts = jQuery.extend(defaults, options);
@@ -36,13 +36,15 @@ jQuery.fn.moveTo = function (options) {
36
36
  var topOffset = instance.offset().top;
37
37
  var scrollTarget;
38
38
 
39
- if ((jQuery(window).scrollTop() + jQuery(window).height() - this.outerHeight() < topOffset ||
39
+ if (
40
+ (jQuery(window).scrollTop() + jQuery(window).height() - this.outerHeight() < topOffset ||
40
41
  jQuery(window).scrollTop() + opts.scrollOffset > topOffset) &&
41
- jQuery(window).height() > opts.scrollOffset) {
42
-
42
+ jQuery(window).height() > opts.scrollOffset
43
+ ) {
43
44
  if (jQuery(window).scrollTop() + opts.scrollOffset > topOffset) {
44
45
  //move up
45
- scrollTarget = topOffset - (jQuery(window).height() - this.outerHeight()) + opts.scrollOffset;
46
+ scrollTarget =
47
+ topOffset - (jQuery(window).height() - this.outerHeight()) + opts.scrollOffset;
46
48
  } else {
47
49
  //move down
48
50
  scrollTarget = topOffset - opts.scrollOffset;
@@ -51,15 +53,19 @@ jQuery.fn.moveTo = function (options) {
51
53
  if (!jQuery.fn.moveTo.animating && opts.transition) {
52
54
  jQuery(document).trigger('moveToStarted', this);
53
55
  jQuery.fn.moveTo.animating = true;
54
- jQuery('html,body').animate({
55
- scrollTop: scrollTarget
56
- }, 1000, function () {
57
- jQuery(document).trigger('moveToFinished', instance);
58
- delete jQuery.fn.moveTo.animating;
59
- });
56
+ jQuery('html,body').animate(
57
+ {
58
+ scrollTop: scrollTarget,
59
+ },
60
+ 1000,
61
+ function () {
62
+ jQuery(document).trigger('moveToFinished', instance);
63
+ delete jQuery.fn.moveTo.animating;
64
+ }
65
+ );
60
66
  return this;
61
67
  } else {
62
- var jQueryCache = jQuery('html, body');
68
+ var jQueryCache = jQuery('html, body');
63
69
  if (jQueryCache.is(':animated')) {
64
70
  jQueryCache.stop();
65
71
  delete jQuery.fn.moveTo.animating;
@@ -32,7 +32,6 @@
32
32
  @aui-ffi-button-border-color-disabled: @aui-ffi-button-border-color;
33
33
  @aui-ffi-button-text-color-disabled: @aui-button-default-disabled-text-color;
34
34
 
35
-
36
35
  border-radius: @aui-ffi-field-border-radius;
37
36
  box-shadow: none;
38
37
  color: @aui-ffi-field-text-color;
@@ -76,7 +75,7 @@
76
75
  }
77
76
 
78
77
  /* The actual input - made opaque but styled so the cursor positions well */
79
- input[type="file"] {
78
+ input[type='file'] {
80
79
  padding: 0 @aui-ffi-field-horizontal-padding;
81
80
  }
82
81
 
@@ -103,7 +102,7 @@
103
102
  background-color: @aui-ffi-button-bg-color-active;
104
103
  background-image: none;
105
104
  color: @aui-ffi-button-text-color-active;
106
- text-decoration:none;
105
+ text-decoration: none;
107
106
  text-shadow: none;
108
107
  }
109
108
  }
@@ -48,7 +48,10 @@
48
48
  box-shadow: none;
49
49
  box-sizing: border-box;
50
50
  color: @text-color;
51
- height: unit(30 / @aui-font-size-medium, em); // 30px effective - need height in ems so that user-specified font-sizes apply
51
+ height: unit(
52
+ 30 / @aui-font-size-medium,
53
+ em
54
+ ); // 30px effective - need height in ems so that user-specified font-sizes apply
52
55
  font-family: inherit;
53
56
  font-size: @aui-font-size-medium;
54
57
  padding: 0 @padding-left-right 0 @icon-gutter;