@atlassian/aui 9.3.22 → 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 (255) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +7 -9
  3. package/dist/aui/aui-css-deprecations.js.map +1 -1
  4. package/dist/aui/aui-prototyping-browserfocus.css +1 -1
  5. package/dist/aui/aui-prototyping.css +9 -9
  6. package/dist/aui/aui-prototyping.js +2 -2
  7. package/dist/aui/aui-prototyping.js.map +1 -1
  8. package/dist/aui/aui-prototyping.nodeps.css +9 -9
  9. package/dist/aui/aui-prototyping.nodeps.js +2 -2
  10. package/dist/aui/aui-prototyping.nodeps.js.map +1 -1
  11. package/entry/aui.batch.components.js +21 -21
  12. package/entry/aui.batch.page.js +3 -3
  13. package/entry/aui.batch.patterns.js +20 -20
  14. package/entry/aui.batch.prototyping.js +3 -11
  15. package/entry/aui.component.nav.js +1 -1
  16. package/entry/aui.component.progressbar.js +4 -1
  17. package/entry/aui.side-effects.js +2 -2
  18. package/entry/behaviours/aui.behaviour.format.js +1 -1
  19. package/entry/behaviours/aui.behaviour.i18n.js +1 -1
  20. package/entry/behaviours/aui.behaviour.keyboard-shortcuts.js +1 -1
  21. package/entry/behaviours/aui.behaviour.progressive-data-set.js +1 -1
  22. package/entry/behaviours/aui.behaviour.version.js +1 -1
  23. package/entry/deprecated/aui.component.inline-dialog1.js +1 -1
  24. package/package.json +1 -1
  25. package/src/js/aui/alphanum.js +1 -1
  26. package/src/js/aui/banner.js +2 -2
  27. package/src/js/aui/blanket.js +7 -11
  28. package/src/js/aui/button.js +5 -5
  29. package/src/js/aui/checkbox-multiselect.js +79 -76
  30. package/src/js/aui/clone.js +1 -1
  31. package/src/js/aui/close-button.js +2 -6
  32. package/src/js/aui/contain-dropdown.js +5 -5
  33. package/src/js/aui/contains.js +1 -1
  34. package/src/js/aui/cookie.js +12 -16
  35. package/src/js/aui/date-picker.js +84 -69
  36. package/src/js/aui/debounce.js +5 -8
  37. package/src/js/aui/dialog.js +206 -172
  38. package/src/js/aui/dialog2.js +9 -8
  39. package/src/js/aui/dropdown2.js +211 -181
  40. package/src/js/aui/escape-html.js +2 -2
  41. package/src/js/aui/escape.js +1 -1
  42. package/src/js/aui/event.js +4 -8
  43. package/src/js/aui/expander.js +9 -7
  44. package/src/js/aui/flag.js +15 -17
  45. package/src/js/aui/focus-manager.js +19 -18
  46. package/src/js/aui/form-notification.js +14 -13
  47. package/src/js/aui/form-validation/basic-validators.js +39 -30
  48. package/src/js/aui/form-validation/validator-register.js +9 -5
  49. package/src/js/aui/form-validation.js +17 -14
  50. package/src/js/aui/format.js +9 -6
  51. package/src/js/aui/forms/create-forms-component-body.js +6 -9
  52. package/src/js/aui/forms/custom-checkbox.js +2 -6
  53. package/src/js/aui/forms/custom-radio.js +2 -6
  54. package/src/js/aui/forms.js +4 -8
  55. package/src/js/aui/header-async.js +1 -1
  56. package/src/js/aui/header.js +2 -2
  57. package/src/js/aui/i18n.js +2 -5
  58. package/src/js/aui/index-of.js +1 -1
  59. package/src/js/aui/inline-dialog.js +171 -117
  60. package/src/js/aui/inline-dialog2.js +60 -50
  61. package/src/js/aui/internal/add-id.js +1 -1
  62. package/src/js/aui/internal/alignment.js +57 -49
  63. package/src/js/aui/internal/amdify.js +0 -1
  64. package/src/js/aui/internal/animation.js +2 -5
  65. package/src/js/aui/internal/attributes.js +2 -3
  66. package/src/js/aui/internal/browser.js +5 -6
  67. package/src/js/aui/internal/constants.js +1 -3
  68. package/src/js/aui/internal/deduplicateIDs.js +8 -7
  69. package/src/js/aui/internal/deprecation/deprecated-adg2-icons.js +132 -132
  70. package/src/js/aui/internal/deprecation.js +53 -31
  71. package/src/js/aui/internal/detect-children-change.js +3 -2
  72. package/src/js/aui/internal/elements.js +2 -5
  73. package/src/js/aui/internal/enforcer.js +11 -13
  74. package/src/js/aui/internal/globalize.js +3 -3
  75. package/src/js/aui/internal/has-touch.js +1 -2
  76. package/src/js/aui/internal/header/create-header.js +54 -28
  77. package/src/js/aui/internal/i18n/aui.js +8 -5
  78. package/src/js/aui/internal/i18n/aui_af.js +31 -31
  79. package/src/js/aui/internal/i18n/aui_ar.js +31 -31
  80. package/src/js/aui/internal/i18n/aui_ar_DZ.js +31 -31
  81. package/src/js/aui/internal/i18n/aui_az.js +31 -31
  82. package/src/js/aui/internal/i18n/aui_bg.js +31 -31
  83. package/src/js/aui/internal/i18n/aui_bs.js +31 -31
  84. package/src/js/aui/internal/i18n/aui_ca.js +31 -31
  85. package/src/js/aui/internal/i18n/aui_cs.js +31 -31
  86. package/src/js/aui/internal/i18n/aui_da.js +31 -31
  87. package/src/js/aui/internal/i18n/aui_de.js +31 -31
  88. package/src/js/aui/internal/i18n/aui_el.js +31 -31
  89. package/src/js/aui/internal/i18n/aui_en_AU.js +31 -31
  90. package/src/js/aui/internal/i18n/aui_en_GB.js +31 -31
  91. package/src/js/aui/internal/i18n/aui_en_NZ.js +31 -31
  92. package/src/js/aui/internal/i18n/aui_eo.js +31 -31
  93. package/src/js/aui/internal/i18n/aui_es.js +31 -31
  94. package/src/js/aui/internal/i18n/aui_et.js +31 -31
  95. package/src/js/aui/internal/i18n/aui_eu.js +31 -31
  96. package/src/js/aui/internal/i18n/aui_fa.js +31 -31
  97. package/src/js/aui/internal/i18n/aui_fi.js +31 -31
  98. package/src/js/aui/internal/i18n/aui_fo.js +31 -31
  99. package/src/js/aui/internal/i18n/aui_fr.js +31 -31
  100. package/src/js/aui/internal/i18n/aui_fr_CH.js +31 -31
  101. package/src/js/aui/internal/i18n/aui_gl.js +31 -31
  102. package/src/js/aui/internal/i18n/aui_he.js +31 -31
  103. package/src/js/aui/internal/i18n/aui_hr.js +31 -31
  104. package/src/js/aui/internal/i18n/aui_hu.js +31 -31
  105. package/src/js/aui/internal/i18n/aui_hy.js +31 -31
  106. package/src/js/aui/internal/i18n/aui_id.js +31 -31
  107. package/src/js/aui/internal/i18n/aui_is.js +31 -31
  108. package/src/js/aui/internal/i18n/aui_it.js +31 -31
  109. package/src/js/aui/internal/i18n/aui_ja.js +31 -31
  110. package/src/js/aui/internal/i18n/aui_ko.js +31 -31
  111. package/src/js/aui/internal/i18n/aui_kz.js +31 -31
  112. package/src/js/aui/internal/i18n/aui_lt.js +31 -31
  113. package/src/js/aui/internal/i18n/aui_lv.js +31 -31
  114. package/src/js/aui/internal/i18n/aui_ml.js +31 -31
  115. package/src/js/aui/internal/i18n/aui_ms.js +31 -31
  116. package/src/js/aui/internal/i18n/aui_nl.js +31 -31
  117. package/src/js/aui/internal/i18n/aui_no.js +31 -31
  118. package/src/js/aui/internal/i18n/aui_pl.js +31 -31
  119. package/src/js/aui/internal/i18n/aui_pt.js +31 -31
  120. package/src/js/aui/internal/i18n/aui_pt_BR.js +31 -31
  121. package/src/js/aui/internal/i18n/aui_rm.js +31 -31
  122. package/src/js/aui/internal/i18n/aui_ro.js +31 -31
  123. package/src/js/aui/internal/i18n/aui_ru.js +31 -31
  124. package/src/js/aui/internal/i18n/aui_sk.js +31 -31
  125. package/src/js/aui/internal/i18n/aui_sl.js +31 -31
  126. package/src/js/aui/internal/i18n/aui_sq.js +31 -31
  127. package/src/js/aui/internal/i18n/aui_sr.js +31 -31
  128. package/src/js/aui/internal/i18n/aui_sr_SR.js +31 -31
  129. package/src/js/aui/internal/i18n/aui_sv.js +31 -31
  130. package/src/js/aui/internal/i18n/aui_ta.js +31 -31
  131. package/src/js/aui/internal/i18n/aui_th.js +31 -31
  132. package/src/js/aui/internal/i18n/aui_tj.js +31 -31
  133. package/src/js/aui/internal/i18n/aui_tr.js +31 -31
  134. package/src/js/aui/internal/i18n/aui_uk.js +31 -31
  135. package/src/js/aui/internal/i18n/aui_vi.js +31 -31
  136. package/src/js/aui/internal/i18n/aui_zh_CN.js +31 -31
  137. package/src/js/aui/internal/i18n/aui_zh_HK.js +31 -31
  138. package/src/js/aui/internal/i18n/aui_zh_TW.js +31 -31
  139. package/src/js/aui/internal/log.js +2 -6
  140. package/src/js/aui/internal/mediaQuery.js +2 -3
  141. package/src/js/aui/internal/select/option.js +3 -3
  142. package/src/js/aui/internal/select/suggestion-model.js +1 -1
  143. package/src/js/aui/internal/select/suggestions-model.js +4 -5
  144. package/src/js/aui/internal/select/suggestions-view.js +17 -12
  145. package/src/js/aui/internal/state.js +2 -3
  146. package/src/js/aui/is-clipped.js +2 -2
  147. package/src/js/aui/key-code.js +1 -1
  148. package/src/js/aui/label.js +6 -6
  149. package/src/js/aui/layer.js +100 -98
  150. package/src/js/aui/messages.js +51 -38
  151. package/src/js/aui/navigation.js +7 -9
  152. package/src/js/aui/on-text-resize.js +7 -5
  153. package/src/js/aui/params.js +11 -8
  154. package/src/js/aui/polyfills/custom-event.js +7 -7
  155. package/src/js/aui/polyfills/placeholder.js +4 -4
  156. package/src/js/aui/populate-parameters.js +4 -4
  157. package/src/js/aui/progress-indicator.js +35 -27
  158. package/src/js/aui/progressive-data-set.js +13 -8
  159. package/src/js/aui/query-input.js +1 -1
  160. package/src/js/aui/restful-table/class-names.js +1 -1
  161. package/src/js/aui/restful-table/data-keys.js +1 -1
  162. package/src/js/aui/restful-table/edit-row.js +63 -63
  163. package/src/js/aui/restful-table/entry-model.js +6 -13
  164. package/src/js/aui/restful-table/event-handlers.js +4 -8
  165. package/src/js/aui/restful-table/event-names.js +1 -1
  166. package/src/js/aui/restful-table/row.js +41 -23
  167. package/src/js/aui/restful-table.js +101 -72
  168. package/src/js/aui/result-set.js +5 -5
  169. package/src/js/aui/results-list.js +3 -3
  170. package/src/js/aui/select.js +65 -49
  171. package/src/js/aui/select2.js +14 -6
  172. package/src/js/aui/sidebar.js +81 -51
  173. package/src/js/aui/spin.js +61 -49
  174. package/src/js/aui/spinner.js +11 -12
  175. package/src/js/aui/tables-sortable.js +21 -10
  176. package/src/js/aui/tabs.js +108 -77
  177. package/src/js/aui/to-init.js +1 -1
  178. package/src/js/aui/toggle.js +55 -43
  179. package/src/js/aui/tooltip.js +32 -31
  180. package/src/js/aui/trigger.js +20 -18
  181. package/src/js/aui/truncating-progressive-data-set.js +1 -1
  182. package/src/js/aui/unbind-text-resize.js +1 -1
  183. package/src/js/aui/unique-id.js +1 -1
  184. package/src/js/aui/when-i-type.js +66 -39
  185. package/src/js/aui-css-deprecations.js +50 -50
  186. package/src/js/jquery/jquery.hotkeys.js +124 -49
  187. package/src/js/jquery/jquery.moveto.js +18 -12
  188. package/src/less/adg-fancy-file-input.less +2 -3
  189. package/src/less/adg-header-quicksearch.less +4 -1
  190. package/src/less/adg-iconfont.less +242 -242
  191. package/src/less/adgs-icons.less +262 -262
  192. package/src/less/aui-appheader.less +10 -6
  193. package/src/less/aui-buttons.less +6 -5
  194. package/src/less/aui-date-picker.less +9 -6
  195. package/src/less/aui-experimental-expander.less +8 -8
  196. package/src/less/aui-experimental-labels.less +4 -3
  197. package/src/less/aui-experimental-progress-indicator.less +10 -4
  198. package/src/less/aui-experimental-progress-tracker.less +9 -6
  199. package/src/less/aui-experimental-restfultable.less +11 -3
  200. package/src/less/aui-experimental-tables-sortable.less +5 -3
  201. package/src/less/aui-experimental-tooltip.less +1 -1
  202. package/src/less/aui-link.less +0 -1
  203. package/src/less/aui-lozenge.less +6 -3
  204. package/src/less/aui-navigation.less +13 -13
  205. package/src/less/aui-page-layout.less +3 -4
  206. package/src/less/aui-page-typography.less +8 -3
  207. package/src/less/aui-reset.less +22 -6
  208. package/src/less/aui-select2.less +11 -8
  209. package/src/less/aui-sidebar-badges.less +1 -2
  210. package/src/less/aui-sidebar-config.less +7 -2
  211. package/src/less/aui-sidebar-grouping.less +16 -6
  212. package/src/less/aui-sidebar-navigation.less +7 -5
  213. package/src/less/aui-sidebar-skeleton.less +4 -3
  214. package/src/less/aui-skip-link.less +2 -1
  215. package/src/less/aui-spinner.less +2 -2
  216. package/src/less/aui-toggle.less +2 -2
  217. package/src/less/aui-toolbar2.less +1 -1
  218. package/src/less/checkbox-multiselect.less +13 -13
  219. package/src/less/dialog.less +3 -3
  220. package/src/less/dialog2.less +12 -11
  221. package/src/less/dropdown2-temp.css +4 -4
  222. package/src/less/dropdown2.less +3 -3
  223. package/src/less/form-notification.less +10 -6
  224. package/src/less/forms-current.less +6 -5
  225. package/src/less/forms-legacy.less +4 -2
  226. package/src/less/forms-radios-and-checkboxes.less +9 -11
  227. package/src/less/forms.less +2 -4
  228. package/src/less/iconfont-mixin.less +7 -4
  229. package/src/less/imports/aui-theme/adg/adg-colors.less +40 -40
  230. package/src/less/imports/aui-theme/adg/adg-neutral-dark.less +20 -20
  231. package/src/less/imports/aui-theme/adg/adg-neutral-light.less +20 -20
  232. package/src/less/imports/aui-theme/components/buttons.less +5 -1
  233. package/src/less/imports/aui-theme/components/dropdown.less +3 -1
  234. package/src/less/imports/aui-theme/components/form-notification.less +2 -1
  235. package/src/less/imports/aui-theme/components/forms.less +16 -1
  236. package/src/less/imports/aui-theme/components/inline-dialog2.less +1 -1
  237. package/src/less/imports/aui-theme/components/navigation.less +3 -3
  238. package/src/less/imports/aui-theme/components/progress-tracker.less +6 -2
  239. package/src/less/imports/aui-theme/components/tables.less +3 -2
  240. package/src/less/imports/aui-theme/components/toggle.less +8 -3
  241. package/src/less/imports/aui-theme/core/colors.less +12 -4
  242. package/src/less/imports/aui-theme/core/icons.less +22 -22
  243. package/src/less/imports/aui-theme/core/text.less +6 -3
  244. package/src/less/imports/mixins/dropdown2-trigger-chevron-icon.less +0 -1
  245. package/src/less/imports/mixins/focus.less +12 -4
  246. package/src/less/imports/mixins/media-queries.less +2 -2
  247. package/src/less/imports/mixins/shadows.less +3 -1
  248. package/src/less/imports/mixins/tab-indicator.less +2 -2
  249. package/src/less/imports/mixins.less +11 -4
  250. package/src/less/inline-dialog.less +21 -19
  251. package/src/less/layer.less +0 -2
  252. package/src/less/messages.less +2 -1
  253. package/src/less/single-select.less +14 -9
  254. package/src/less/tables.less +3 -2
  255. package/src/less/tabs.less +4 -3
@@ -1,23 +1,23 @@
1
1
  // JS components
2
- export * from './aui.component.banner'
3
- export * from './aui.component.button'
4
- export * from './aui.component.dialog2'
5
- export * from './aui.component.dropdown2'
6
- export * from './aui.component.expander'
7
- export * from './aui.component.flag'
8
- export * from './aui.component.form.checkbox-multi-select'
9
- export * from './aui.component.form.file-select'
10
- export * from './aui.component.form.label'
11
- export * from './aui.component.form.select2'
12
- export * from './aui.component.form.single-select'
13
- export * from './aui.component.form.toggle'
14
- export * from './aui.component.inline-dialog2'
2
+ export * from './aui.component.banner';
3
+ export * from './aui.component.button';
4
+ export * from './aui.component.dialog2';
5
+ export * from './aui.component.dropdown2';
6
+ export * from './aui.component.expander';
7
+ export * from './aui.component.flag';
8
+ export * from './aui.component.form.checkbox-multi-select';
9
+ export * from './aui.component.form.file-select';
10
+ export * from './aui.component.form.label';
11
+ export * from './aui.component.form.select2';
12
+ export * from './aui.component.form.single-select';
13
+ export * from './aui.component.form.toggle';
14
+ export * from './aui.component.inline-dialog2';
15
15
  // export * from './aui.component.layer'
16
- export * from './aui.component.message'
17
- export * from './aui.component.nav'
18
- export * from './aui.component.progressbar'
19
- export * from './aui.component.sortable-table'
20
- export * from './aui.component.spinner'
21
- export * from './aui.component.tabs'
22
- export * from './aui.component.tooltip'
23
- export * from './aui.component.trigger'
16
+ export * from './aui.component.message';
17
+ export * from './aui.component.nav';
18
+ export * from './aui.component.progressbar';
19
+ export * from './aui.component.sortable-table';
20
+ export * from './aui.component.spinner';
21
+ export * from './aui.component.tabs';
22
+ export * from './aui.component.tooltip';
23
+ export * from './aui.component.trigger';
@@ -1,4 +1,4 @@
1
1
  // Page-level CSS
2
- import './styles/aui.page.reset'
3
- import './styles/aui.page.typography'
4
- import './styles/aui.page.links'
2
+ import './styles/aui.page.reset';
3
+ import './styles/aui.page.typography';
4
+ import './styles/aui.page.links';
@@ -1,21 +1,21 @@
1
1
  // HTML + CSS patterns
2
- import './styles/aui.pattern.avatar'
3
- import './styles/aui.pattern.badge'
4
- import './styles/aui.pattern.banner'
5
- import './styles/aui.pattern.basic'
6
- import './styles/aui.pattern.button'
7
- import './styles/aui.pattern.forms'
8
- import './styles/aui.pattern.group'
9
- import './styles/aui.pattern.help'
10
- import './styles/aui.pattern.icon'
11
- import './styles/aui.pattern.inline-dialog'
12
- import './styles/aui.pattern.label'
13
- import './styles/aui.pattern.lozenge'
14
- import './styles/aui.pattern.messages'
15
- import './styles/aui.pattern.multi-step-progress'
16
- import './styles/aui.pattern.nav'
17
- import './styles/aui.pattern.page-header'
18
- import './styles/aui.pattern.page-layout'
19
- import './styles/aui.pattern.table'
20
- import './styles/aui.pattern.tabs'
21
- import './styles/aui.pattern.toolbar2'
2
+ import './styles/aui.pattern.avatar';
3
+ import './styles/aui.pattern.badge';
4
+ import './styles/aui.pattern.banner';
5
+ import './styles/aui.pattern.basic';
6
+ import './styles/aui.pattern.button';
7
+ import './styles/aui.pattern.forms';
8
+ import './styles/aui.pattern.group';
9
+ import './styles/aui.pattern.help';
10
+ import './styles/aui.pattern.icon';
11
+ import './styles/aui.pattern.inline-dialog';
12
+ import './styles/aui.pattern.label';
13
+ import './styles/aui.pattern.lozenge';
14
+ import './styles/aui.pattern.messages';
15
+ import './styles/aui.pattern.multi-step-progress';
16
+ import './styles/aui.pattern.nav';
17
+ import './styles/aui.pattern.page-header';
18
+ import './styles/aui.pattern.page-layout';
19
+ import './styles/aui.pattern.table';
20
+ import './styles/aui.pattern.tabs';
21
+ import './styles/aui.pattern.toolbar2';
@@ -1,6 +1,6 @@
1
1
  export * from './aui.side-effects';
2
2
  export { log, error, warn } from './behaviours/aui.behaviour.logger';
3
- import {i18n as I18n} from './behaviours/aui.behaviour.i18n';
3
+ import { i18n as I18n } from './behaviours/aui.behaviour.i18n';
4
4
  import './aui.batch.page';
5
5
  import './aui.batch.patterns';
6
6
  import './aui.batch.iconography';
@@ -14,15 +14,7 @@ import { RestfulTable } from './aui.component.restful-table';
14
14
  import { sidebar } from './aui.component.sidebar';
15
15
  import { whenIType } from './behaviours/aui.behaviour.keyboard-shortcuts';
16
16
 
17
- export {
18
- I18n,
19
- Header,
20
- DatePicker,
21
- CalendarWidget,
22
- RestfulTable,
23
- sidebar,
24
- whenIType,
25
- };
17
+ export { I18n, Header, DatePicker, CalendarWidget, RestfulTable, sidebar, whenIType };
26
18
 
27
19
  export const {
28
20
  FocusManager,
@@ -47,7 +39,7 @@ export const {
47
39
  tablessortable,
48
40
  tabs,
49
41
  undim,
50
- _addID
42
+ _addID,
51
43
  } = window.AJS;
52
44
 
53
45
  // Fix AUI + WRM compatibility in a hacky way.
@@ -1,2 +1,2 @@
1
1
  import './styles/aui.pattern.nav';
2
- export {default as navigation, NavigationEl} from '@atlassian/aui/src/js/aui/navigation';
2
+ export { default as navigation, NavigationEl } from '@atlassian/aui/src/js/aui/navigation';
@@ -1,4 +1,7 @@
1
1
  import './styles/aui.page.reset';
2
2
  import './styles/aui.page.typography';
3
3
  import '@atlassian/aui/src/less/aui-experimental-progress-indicator.less';
4
- export { default as progressBars, ProgressBarEl } from '@atlassian/aui/src/js/aui/progress-indicator';
4
+ export {
5
+ default as progressBars,
6
+ ProgressBarEl,
7
+ } from '@atlassian/aui/src/js/aui/progress-indicator';
@@ -20,5 +20,5 @@ import './styles/aui.pattern.toolbar2';
20
20
  export * from './aui.core';
21
21
  // todo AUI-4814: undo the weird relationships between layer, layerManager, and LayerManager.global
22
22
  export * from './behaviours/aui.behaviour.layer-manager'; // because this is created in layer.js, and is needed as a side-effect on most pages :(
23
- export {default as $} from '@atlassian/aui/src/js/aui/setup';
24
- export {default as toInit} from '@atlassian/aui/src/js/aui/to-init';
23
+ export { default as $ } from '@atlassian/aui/src/js/aui/setup';
24
+ export { default as toInit } from '@atlassian/aui/src/js/aui/to-init';
@@ -5,4 +5,4 @@
5
5
  * @note This behaviour really should be a part of the WRM itself.
6
6
  * @see https://ecosystem.atlassian.net/browse/PLUGWEB-109
7
7
  */
8
- export {default as format} from '@atlassian/aui/src/js/aui/format';
8
+ export { default as format } from '@atlassian/aui/src/js/aui/format';
@@ -1 +1 @@
1
- export {default as i18n} from '@atlassian/aui/src/js/aui/i18n';
1
+ export { default as i18n } from '@atlassian/aui/src/js/aui/i18n';
@@ -1 +1 @@
1
- export {default as whenIType} from '@atlassian/aui/src/js/aui/when-i-type';
1
+ export { default as whenIType } from '@atlassian/aui/src/js/aui/when-i-type';
@@ -1 +1 @@
1
- export {default as ProgressiveDataSet} from '../../src/js/aui/progressive-data-set';
1
+ export { default as ProgressiveDataSet } from '../../src/js/aui/progressive-data-set';
@@ -1 +1 @@
1
- export {default as version} from '@atlassian/aui/src/js/aui/version';
1
+ export { default as version } from '@atlassian/aui/src/js/aui/version';
@@ -1,2 +1,2 @@
1
1
  import '../../src/less/inline-dialog.less';
2
- export {default as InlineDialog} from '../../src/js/aui/inline-dialog';
2
+ export { default as InlineDialog } from '../../src/js/aui/inline-dialog';
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.3.22",
4
+ "version": "9.3.23",
5
5
  "author": "Atlassian Pty Ltd.",
6
6
  "homepage": "https://aui.atlassian.com",
7
7
  "license": "Apache-2.0",
@@ -7,7 +7,7 @@ import globalize from './internal/globalize';
7
7
  * @param {String} b second string to compare
8
8
  * @return {Number(-1|0|1)} -1 if a < b, 0 if a = b, 1 if a > b
9
9
  */
10
- function alphanum (a, b) {
10
+ function alphanum(a, b) {
11
11
  a = (a + '').toLowerCase();
12
12
  b = (b + '').toLowerCase();
13
13
 
@@ -5,7 +5,7 @@ import globalize from './internal/globalize';
5
5
 
6
6
  var ID_BANNER_CONTAINER = 'header';
7
7
 
8
- function banner (options) {
8
+ function banner(options) {
9
9
  var $banner = renderBannerElement(options);
10
10
 
11
11
  pruneBannerContainer();
@@ -14,7 +14,7 @@ function banner (options) {
14
14
  return $banner[0];
15
15
  }
16
16
 
17
- function renderBannerElement({body, type = 'error'}) {
17
+ function renderBannerElement({ body, type = 'error' }) {
18
18
  return $('<div class="aui-banner" role="banner"></div>')
19
19
  .append($.parseHTML(body || ''))
20
20
  .addClass(`aui-banner-${type}`);
@@ -10,8 +10,7 @@ var _hiddenByAui = [];
10
10
  * Dims the screen using a blanket div
11
11
  * @param useShim deprecated, it is calculated by dim() now
12
12
  */
13
- function dim (useShim, zIndex) {
14
-
13
+ function dim(useShim, zIndex) {
15
14
  //if we're blanketing the page it means we want to hide the whatever is under the blanket from the screen readers as well
16
15
  function hasAriaHidden(element) {
17
16
  return element.hasAttribute('aria-hidden');
@@ -36,7 +35,7 @@ function dim (useShim, zIndex) {
36
35
  useShimDeprecationLogger();
37
36
  }
38
37
 
39
- var isBlanketShowing = (!!dim.$dim) && !dim.$dim[0].hasAttribute('hidden');
38
+ var isBlanketShowing = !!dim.$dim && !dim.$dim[0].hasAttribute('hidden');
40
39
 
41
40
  if (!!dim.$dim) {
42
41
  dim.$dim.remove();
@@ -55,7 +54,7 @@ function dim (useShim, zIndex) {
55
54
  dim.cachedOverflow = {
56
55
  overflow: overflowEl.style.overflow,
57
56
  overflowX: overflowEl.style.overflowX,
58
- overflowY: overflowEl.style.overflowY
57
+ overflowY: overflowEl.style.overflowY,
59
58
  };
60
59
 
61
60
  overflowEl.style.overflowX = 'hidden';
@@ -66,7 +65,7 @@ function dim (useShim, zIndex) {
66
65
  dim.$dim.removeAttr('hidden');
67
66
 
68
67
  if (zIndex) {
69
- dim.$dim.css({zIndex: zIndex});
68
+ dim.$dim.css({ zIndex: zIndex });
70
69
  }
71
70
 
72
71
  return dim.$dim;
@@ -76,7 +75,7 @@ function dim (useShim, zIndex) {
76
75
  * Removes semitransparent DIV
77
76
  * @see dim
78
77
  */
79
- function undim () {
78
+ function undim() {
80
79
  _hiddenByAui.forEach(function (element) {
81
80
  element.removeAttribute('aria-hidden');
82
81
  });
@@ -95,13 +94,10 @@ function undim () {
95
94
  }
96
95
 
97
96
  var useShimDeprecationLogger = getMessageLogger('useShim', {
98
- extraInfo: 'useShim has no alternative as it is now calculated by dim().'
97
+ extraInfo: 'useShim has no alternative as it is now calculated by dim().',
99
98
  });
100
99
 
101
100
  globalize('dim', dim);
102
101
  globalize('undim', undim);
103
102
 
104
- export {
105
- dim,
106
- undim
107
- };
103
+ export { dim, undim };
@@ -1,13 +1,13 @@
1
1
  import * as logger from './internal/log';
2
2
  import amdify from './internal/amdify';
3
3
  import skate from './internal/skate';
4
- import SpinnerEl, {SIZE} from './spinner';
4
+ import SpinnerEl, { SIZE } from './spinner';
5
5
 
6
- function isBusy (button) {
6
+ function isBusy(button) {
7
7
  return button.hasAttribute('aria-busy') && button.getAttribute('aria-busy') === 'true';
8
8
  }
9
9
 
10
- function isInputNode (button) {
10
+ function isInputNode(button) {
11
11
  return button.nodeName === 'INPUT';
12
12
  }
13
13
 
@@ -66,8 +66,8 @@ skate('aui-button', {
66
66
  }
67
67
 
68
68
  return isBusy(this);
69
- }
70
- }
69
+ },
70
+ },
71
71
  });
72
72
 
73
73
  amdify('aui/button');
@@ -15,11 +15,12 @@ var templates = {
15
15
  // clear items section
16
16
  var $clearItemsSection = createSection();
17
17
 
18
- $('<button />').attr({
19
- type: 'button',
20
- 'data-aui-checkbox-multiselect-clear': '',
21
- class: 'aui-button aui-button-link'
22
- })
18
+ $('<button />')
19
+ .attr({
20
+ 'type': 'button',
21
+ 'data-aui-checkbox-multiselect-clear': '',
22
+ 'class': 'aui-button aui-button-link',
23
+ })
23
24
  .text(I18n.getText('aui.checkboxmultiselect.clear.selected'))
24
25
  .appendTo($clearItemsSection);
25
26
 
@@ -28,11 +29,13 @@ var templates = {
28
29
  var $itemList = $('<ul />').appendTo($section);
29
30
 
30
31
  $.each(items, function (idx, item) {
31
- var $li = $('<li />').attr({
32
- class: item.styleClass || ''
33
- }).appendTo($itemList);
32
+ var $li = $('<li />')
33
+ .attr({
34
+ class: item.styleClass || '',
35
+ })
36
+ .appendTo($itemList);
34
37
 
35
- var $a = $('<a />')
38
+ var $a = $('<a />')
36
39
  .text(item.label)
37
40
  .attr('data-value', item.value)
38
41
  .addClass('aui-dropdown2-checkbox aui-dropdown2-interactive')
@@ -50,40 +53,33 @@ var templates = {
50
53
  }
51
54
  });
52
55
 
53
- return $('<div />')
54
- .append($clearItemsSection)
55
- .append($section)
56
- .html();
56
+ return $('<div />').append($clearItemsSection).append($section).html();
57
57
  },
58
58
 
59
59
  furniture: function (name, optionsHtml) {
60
60
  var dropdownId = name + '-dropdown';
61
61
 
62
- var $select = $('<select />').attr({
63
- name: name,
64
- multiple: 'multiple'
65
- }).html(optionsHtml);
66
-
67
- var $dropdown = $('<div>')
62
+ var $select = $('<select />')
68
63
  .attr({
69
- id: dropdownId,
70
- class: 'aui-checkbox-multiselect-dropdown aui-dropdown2'
71
- });
64
+ name: name,
65
+ multiple: 'multiple',
66
+ })
67
+ .html(optionsHtml);
72
68
 
73
- var $button = $('<button />')
74
- .attr({
75
- class: 'aui-checkbox-multiselect-btn aui-button aui-dropdown2-trigger',
76
- type: 'button',
77
- 'aria-owns': dropdownId,
78
- 'aria-haspopup': true
79
- });
80
-
81
- return $('<div />')
82
- .append($select)
83
- .append($button)
84
- .append($dropdown)
85
- .html();
86
- }
69
+ var $dropdown = $('<div>').attr({
70
+ id: dropdownId,
71
+ class: 'aui-checkbox-multiselect-dropdown aui-dropdown2',
72
+ });
73
+
74
+ var $button = $('<button />').attr({
75
+ 'class': 'aui-checkbox-multiselect-btn aui-button aui-dropdown2-trigger',
76
+ 'type': 'button',
77
+ 'aria-owns': dropdownId,
78
+ 'aria-haspopup': true,
79
+ });
80
+
81
+ return $('<div />').append($select).append($button).append($dropdown).html();
82
+ },
87
83
  };
88
84
 
89
85
  /**
@@ -91,7 +87,7 @@ var templates = {
91
87
  * option in the <select>.
92
88
  * @private
93
89
  */
94
- function handleDropdownSelection (e) {
90
+ function handleDropdownSelection(e) {
95
91
  var $a = $(e.target);
96
92
  var value = $a.attr('data-value');
97
93
  updateOption(this, value, $a.hasClass('aui-dropdown2-checked'));
@@ -104,7 +100,7 @@ function handleDropdownSelection (e) {
104
100
  * @param value - value of option to update
105
101
  * @param {Boolean} selected - select or unselect it.
106
102
  */
107
- function updateOption (component, value, selected) {
103
+ function updateOption(component, value, selected) {
108
104
  var $toUpdate = component.$select.find('option').filter(function () {
109
105
  var $this = $(this);
110
106
  return $this.attr('value') === value && $this.prop('selected') !== selected;
@@ -119,7 +115,7 @@ function updateOption (component, value, selected) {
119
115
  * Enables 'clear all' button if there are any selected <option>s, otherwise disables it.
120
116
  * @private
121
117
  */
122
- function updateClearAll (component) {
118
+ function updateClearAll(component) {
123
119
  component.$dropdown.find('[data-aui-checkbox-multiselect-clear]').prop('disabled', function () {
124
120
  return getSelectedDescriptors(component).length < 1;
125
121
  });
@@ -131,8 +127,10 @@ function updateClearAll (component) {
131
127
  * @param component
132
128
  * @returns {string}
133
129
  */
134
- function getButtonTitle (component) {
135
- return component.$dropdown[0].hasAttribute('hidden') ? '' : getSelectedLabels(component).join(', ');
130
+ function getButtonTitle(component) {
131
+ return component.$dropdown[0].hasAttribute('hidden')
132
+ ? ''
133
+ : getSelectedLabels(component).join(', ');
136
134
  }
137
135
 
138
136
  /**
@@ -141,7 +139,7 @@ function getButtonTitle (component) {
141
139
  * @returns {Array<Object>}
142
140
  * @private
143
141
  */
144
- function mapOptionDescriptors ($options) {
142
+ function mapOptionDescriptors($options) {
145
143
  return $options.map(function () {
146
144
  var $option = $(this);
147
145
  return {
@@ -151,7 +149,7 @@ function mapOptionDescriptors ($options) {
151
149
  styleClass: $option.data('styleClass'),
152
150
  title: $option.attr('title'),
153
151
  disabled: $option.attr('disabled'),
154
- selected: $option.prop('selected')
152
+ selected: $option.prop('selected'),
155
153
  };
156
154
  });
157
155
  }
@@ -161,16 +159,15 @@ function mapOptionDescriptors ($options) {
161
159
  * @returns {string}
162
160
  * @private
163
161
  */
164
- function getImplicitAllLabel (component) {
162
+ function getImplicitAllLabel(component) {
165
163
  return $(component).data('allLabel') || 'All';
166
164
  }
167
165
 
168
-
169
166
  /**
170
167
  * Renders dropdown with list of items representing the selected or unselect state of the <option>s in <select>
171
168
  * @private
172
169
  */
173
- function renderDropdown (component) {
170
+ function renderDropdown(component) {
174
171
  component.$dropdown.html(templates.dropdown(getDescriptors(component)));
175
172
  updateClearAll(component);
176
173
  }
@@ -180,9 +177,11 @@ function renderDropdown (component) {
180
177
  * is displayed.
181
178
  * @private
182
179
  */
183
- function renderButton (component) {
180
+ function renderButton(component) {
184
181
  var selectedLabels = getSelectedLabels(component);
185
- var label = isImplicitAll(component) ? getImplicitAllLabel(component) : selectedLabels.join(', ');
182
+ var label = isImplicitAll(component)
183
+ ? getImplicitAllLabel(component)
184
+ : selectedLabels.join(', ');
186
185
  component.$btn.text(label);
187
186
  }
188
187
 
@@ -192,7 +191,7 @@ function renderButton (component) {
192
191
  * @private
193
192
  * @returns Array<Object>
194
193
  */
195
- function getDescriptors (component) {
194
+ function getDescriptors(component) {
196
195
  return mapOptionDescriptors(component.getOptions());
197
196
  }
198
197
 
@@ -202,7 +201,7 @@ function getDescriptors (component) {
202
201
  * @private
203
202
  * @returns Array<Object>
204
203
  */
205
- function getSelectedDescriptors (component) {
204
+ function getSelectedDescriptors(component) {
206
205
  return mapOptionDescriptors(component.getSelectedOptions());
207
206
  }
208
207
 
@@ -211,7 +210,7 @@ function getSelectedDescriptors (component) {
211
210
  * @private
212
211
  * @returns Array<String>
213
212
  */
214
- function getSelectedLabels (component) {
213
+ function getSelectedLabels(component) {
215
214
  return $.map(getSelectedDescriptors(component), function (descriptor) {
216
215
  return descriptor.label;
217
216
  });
@@ -221,7 +220,7 @@ function getSelectedLabels (component) {
221
220
  * If nothing is selected, we take this to mean that everything is selected.
222
221
  * @returns Boolean
223
222
  */
224
- function isImplicitAll (component) {
223
+ function isImplicitAll(component) {
225
224
  return getSelectedDescriptors(component).length === 0;
226
225
  }
227
226
 
@@ -237,29 +236,30 @@ const CheckboxMultiselectEl = skate('aui-checkbox-multiselect', {
237
236
  var name = component.getAttribute('name') || uid('aui-checkbox-multiselect-');
238
237
  component.innerHTML = templates.furniture(name, component.innerHTML);
239
238
 
240
- component.$select = $('select', component)
241
- .on('change', function () {
242
- renderButton(component);
243
- updateClearAll(component);
244
- });
239
+ component.$select = $('select', component).on('change', function () {
240
+ renderButton(component);
241
+ updateClearAll(component);
242
+ });
245
243
 
246
244
  component.$dropdown = $('.aui-checkbox-multiselect-dropdown', component)
247
245
  .on('aui-dropdown2-item-check', handleDropdownSelection.bind(component))
248
246
  .on('aui-dropdown2-item-uncheck', handleDropdownSelection.bind(component))
249
- .on('click', 'button[data-aui-checkbox-multiselect-clear]', component.deselectAllOptions.bind(component));
250
-
251
- component.$btn = $('.aui-checkbox-multiselect-btn', component)
252
- .tooltip({
253
- title: function () {
254
- return getButtonTitle(component);
255
- }
256
- });
247
+ .on(
248
+ 'click',
249
+ 'button[data-aui-checkbox-multiselect-clear]',
250
+ component.deselectAllOptions.bind(component)
251
+ );
252
+
253
+ component.$btn = $('.aui-checkbox-multiselect-btn', component).tooltip({
254
+ title: function () {
255
+ return getButtonTitle(component);
256
+ },
257
+ });
257
258
 
258
259
  renderButton(component);
259
260
  renderDropdown(component);
260
261
  },
261
262
  prototype: {
262
-
263
263
  /**
264
264
  * Gets all options regardless of selected or unselected
265
265
  * @returns {jQuery}
@@ -303,7 +303,9 @@ const CheckboxMultiselectEl = skate('aui-checkbox-multiselect', {
303
303
  */
304
304
  deselectAllOptions: function () {
305
305
  this.$select.val([]).trigger('change');
306
- this.$dropdown.find('.aui-dropdown2-checked,.checked').removeClass('aui-dropdown2-checked checked');
306
+ this.$dropdown
307
+ .find('.aui-dropdown2-checked,.checked')
308
+ .removeClass('aui-dropdown2-checked checked');
307
309
  },
308
310
 
309
311
  /**
@@ -311,13 +313,14 @@ const CheckboxMultiselectEl = skate('aui-checkbox-multiselect', {
311
313
  * @param descriptor
312
314
  */
313
315
  addOption: function (descriptor) {
314
- $('<option />').attr({
315
- value: descriptor.value,
316
- icon: descriptor.icon,
317
- disabled: descriptor.disabled,
318
- selected: descriptor.selected,
319
- title: descriptor.title
320
- })
316
+ $('<option />')
317
+ .attr({
318
+ value: descriptor.value,
319
+ icon: descriptor.icon,
320
+ disabled: descriptor.disabled,
321
+ selected: descriptor.selected,
322
+ title: descriptor.title,
323
+ })
321
324
  .text(descriptor.label)
322
325
  .appendTo(this.$select);
323
326
  renderButton(this);
@@ -332,8 +335,8 @@ const CheckboxMultiselectEl = skate('aui-checkbox-multiselect', {
332
335
  this.$select.find("[value='" + value + "']").remove();
333
336
  renderButton(this);
334
337
  renderDropdown(this);
335
- }
336
- }
338
+ },
339
+ },
337
340
  });
338
341
 
339
342
  amdify('aui/checkbox-multiselect', CheckboxMultiselectEl);
@@ -6,7 +6,7 @@ import globalize from './internal/globalize';
6
6
  *
7
7
  * @param {String} selector A jQuery selector
8
8
  */
9
- function clone (selector) {
9
+ function clone(selector) {
10
10
  return $(selector).clone().removeAttr('id');
11
11
  }
12
12
 
@@ -1,11 +1,7 @@
1
- import {I18n} from './i18n';
1
+ import { I18n } from './i18n';
2
2
 
3
3
  const CLOSE_BUTTON_CLASS = 'aui-close-button';
4
4
  const CLOSE_BUTTON_CLASS_SELECTOR = `.${CLOSE_BUTTON_CLASS}`;
5
5
  const CLOSE_BUTTON = `<button type="button" class="${CLOSE_BUTTON_CLASS}" aria-label="${I18n.getText('aui.words.close')}">`;
6
6
 
7
- export {
8
- CLOSE_BUTTON,
9
- CLOSE_BUTTON_CLASS,
10
- CLOSE_BUTTON_CLASS_SELECTOR
11
- };
7
+ export { CLOSE_BUTTON, CLOSE_BUTTON_CLASS, CLOSE_BUTTON_CLASS_SELECTOR };