@atlassian/aui 9.11.0 → 9.11.4

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 (123) hide show
  1. package/dist/aui/aui-prototyping-design-tokens-api-full.js +1 -1
  2. package/dist/aui/aui-prototyping-design-tokens-api.js +1 -1
  3. package/dist/aui/aui-prototyping-design-tokens-base-themes-css.css +1 -1
  4. package/dist/aui/aui-prototyping-design-tokens-base-themes-css.js +1 -1
  5. package/dist/aui/aui-prototyping-design-tokens-base-themes.js +1 -1
  6. package/dist/aui/aui-prototyping.css +6 -6
  7. package/dist/aui/aui-prototyping.css.map +1 -1
  8. package/dist/aui/aui-prototyping.js +24 -21
  9. package/dist/aui/aui-prototyping.js.map +1 -1
  10. package/dist/aui/aui-prototyping.nodeps.css +6 -6
  11. package/dist/aui/aui-prototyping.nodeps.css.map +1 -1
  12. package/dist/aui/aui-prototyping.nodeps.js +24 -21
  13. package/dist/aui/aui-prototyping.nodeps.js.map +1 -1
  14. package/entry/aui.component.form.select2.js +1 -1
  15. package/entry/deprecated/aui.behaviour.jquery-form.js +1 -1
  16. package/package.json +79 -73
  17. package/src/js/aui/inline-dialog.js +3 -0
  18. package/src/js/aui/select2.js +24 -7
  19. package/src/js/aui/tables-sortable.js +2 -1
  20. package/src/js/aui/when-i-type.js +1 -1
  21. package/src/js-vendor/jquery-aop/LICENSE +21 -0
  22. package/src/js-vendor/jquery-aop/README.md +54 -0
  23. package/src/js-vendor/jquery-aop/aop.js +404 -0
  24. package/src/js-vendor/jquery-aop/jquery-aop.txt +5 -0
  25. package/src/js-vendor/jquery-aop/package.json +16 -0
  26. package/src/js-vendor/jquery-form/jquery.form.js +813 -0
  27. package/src/js-vendor/jquery-form/package.json +15 -0
  28. package/src/js-vendor/jquery.hotkeys/jquery.hotkeys.js +99 -0
  29. package/src/js-vendor/jquery.hotkeys/package.json +14 -0
  30. package/src/js-vendor/select2/CONTRIBUTING.md +107 -0
  31. package/src/js-vendor/select2/LICENSE +18 -0
  32. package/src/js-vendor/select2/README.md +115 -0
  33. package/src/js-vendor/select2/bower.json +8 -0
  34. package/src/js-vendor/select2/component.json +66 -0
  35. package/src/js-vendor/select2/composer.json +29 -0
  36. package/src/js-vendor/select2/package.json +20 -0
  37. package/src/js-vendor/select2/release.sh +79 -0
  38. package/src/js-vendor/select2/select2-bootstrap.css +87 -0
  39. package/src/{css-vendor/jquery/plugins → js-vendor/select2}/select2-spinner.gif +0 -0
  40. package/src/js-vendor/select2/select2.jquery.json +36 -0
  41. package/src/js-vendor/select2/select2.min.js +23 -0
  42. package/src/js-vendor/select2/select2.png +0 -0
  43. package/src/js-vendor/select2/select2_locale_ar.js +19 -0
  44. package/src/js-vendor/select2/select2_locale_az.js +20 -0
  45. package/src/js-vendor/select2/select2_locale_bg.js +20 -0
  46. package/src/js-vendor/select2/select2_locale_ca.js +19 -0
  47. package/src/js-vendor/select2/select2_locale_cs.js +51 -0
  48. package/src/js-vendor/select2/select2_locale_da.js +19 -0
  49. package/src/js-vendor/select2/select2_locale_de.js +18 -0
  50. package/src/js-vendor/select2/select2_locale_el.js +19 -0
  51. package/src/js-vendor/select2/select2_locale_en.js.template +20 -0
  52. package/src/js-vendor/select2/select2_locale_es.js +19 -0
  53. package/src/js-vendor/select2/select2_locale_et.js +19 -0
  54. package/src/js-vendor/select2/select2_locale_eu.js +45 -0
  55. package/src/js-vendor/select2/select2_locale_fa.js +21 -0
  56. package/src/js-vendor/select2/select2_locale_fi.js +30 -0
  57. package/src/js-vendor/select2/select2_locale_fr.js +18 -0
  58. package/src/js-vendor/select2/select2_locale_gl.js +45 -0
  59. package/src/js-vendor/select2/select2_locale_he.js +19 -0
  60. package/src/js-vendor/select2/select2_locale_hr.js +24 -0
  61. package/src/js-vendor/select2/select2_locale_hu.js +17 -0
  62. package/src/js-vendor/select2/select2_locale_id.js +21 -0
  63. package/src/js-vendor/select2/select2_locale_is.js +17 -0
  64. package/src/js-vendor/select2/select2_locale_it.js +17 -0
  65. package/src/js-vendor/select2/select2_locale_ja.js +17 -0
  66. package/src/js-vendor/select2/select2_locale_ka.js +19 -0
  67. package/src/js-vendor/select2/select2_locale_ko.js +19 -0
  68. package/src/js-vendor/select2/select2_locale_lt.js +26 -0
  69. package/src/js-vendor/select2/select2_locale_lv.js +19 -0
  70. package/src/js-vendor/select2/select2_locale_mk.js +19 -0
  71. package/src/js-vendor/select2/select2_locale_ms.js +21 -0
  72. package/src/js-vendor/select2/select2_locale_nb.js +22 -0
  73. package/src/js-vendor/select2/select2_locale_nl.js +17 -0
  74. package/src/js-vendor/select2/select2_locale_pl.js +54 -0
  75. package/src/js-vendor/select2/select2_locale_pt-BR.js +18 -0
  76. package/src/js-vendor/select2/select2_locale_pt-PT.js +17 -0
  77. package/src/js-vendor/select2/select2_locale_ro.js +17 -0
  78. package/src/js-vendor/select2/select2_locale_rs.js +19 -0
  79. package/src/js-vendor/select2/select2_locale_ru.js +23 -0
  80. package/src/js-vendor/select2/select2_locale_sk.js +50 -0
  81. package/src/js-vendor/select2/select2_locale_sv.js +19 -0
  82. package/src/js-vendor/select2/select2_locale_th.js +19 -0
  83. package/src/js-vendor/select2/select2_locale_tr.js +20 -0
  84. package/src/js-vendor/select2/select2_locale_ug-CN.js +16 -0
  85. package/src/js-vendor/select2/select2_locale_uk.js +25 -0
  86. package/src/js-vendor/select2/select2_locale_vi.js +20 -0
  87. package/src/js-vendor/select2/select2_locale_zh-CN.js +16 -0
  88. package/src/js-vendor/select2/select2_locale_zh-TW.js +16 -0
  89. package/src/js-vendor/select2/select2x2.png +0 -0
  90. package/src/js-vendor/tablesorter/README.md +158 -0
  91. package/src/js-vendor/tablesorter/jquery.tablesorter.js +1901 -0
  92. package/src/js-vendor/tablesorter/package.json +43 -0
  93. package/src/less/adg-header-quicksearch.less +2 -2
  94. package/src/less/aui-appheader.less +3 -3
  95. package/src/less/aui-buttons.less +2 -2
  96. package/src/less/aui-experimental-tooltip.less +1 -1
  97. package/src/less/aui-navigation.less +4 -4
  98. package/src/less/aui-page-layout.less +2 -2
  99. package/src/less/aui-page-typography.less +1 -1
  100. package/src/less/aui-select2.less +1 -1
  101. package/src/less/aui-sidebar-config.less +1 -1
  102. package/src/less/aui-sidebar-grouping.less +2 -2
  103. package/src/less/aui-sidebar-navigation.less +2 -2
  104. package/src/less/aui-toggle.less +2 -2
  105. package/src/less/dropdown2.less +2 -4
  106. package/src/less/forms-current.less +1 -1
  107. package/src/less/forms-legacy.less +2 -2
  108. package/src/less/forms-radios-and-checkboxes.less +2 -2
  109. package/src/less/forms.less +2 -2
  110. package/src/less/imports/aui-theme/components/buttons.less +2 -2
  111. package/src/less/imports/aui-theme/components/forms.less +1 -1
  112. package/src/less/imports/aui-theme/components/navigation.less +1 -1
  113. package/src/less/imports/aui-theme/components/toggle.less +2 -2
  114. package/src/less/imports/mixins/typography.less +8 -8
  115. package/src/less/imports/mixins.less +1 -1
  116. package/src/less/single-select.less +1 -1
  117. package/src/css-vendor/jquery/plugins/select2.png +0 -0
  118. package/src/css-vendor/jquery/plugins/select2x2.png +0 -0
  119. package/src/js/jquery/jquery.hotkeys.js +0 -176
  120. package/src/js-vendor/jquery/jquery.tablesorter.js +0 -1896
  121. package/src/js-vendor/jquery/plugins/jquery.form.js +0 -819
  122. /package/src/{css-vendor/jquery/plugins/jquery.select2.css → js-vendor/select2/select2.css} +0 -0
  123. /package/src/js-vendor/{jquery/plugins/jquery.select2.js → select2/select2.js} +0 -0
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "tablesorter",
3
+ "title": "tablesorter",
4
+ "version": "2.17.8",
5
+ "description": "tablesorter is a jQuery plugin for turning a standard HTML table with THEAD and TBODY tags into a sortable table without page refreshes. tablesorter can successfully parse and sort many types of data including linked data in a cell.\n\nThis forked version adds lots of new enhancements including: alphanumeric sorting, pager callback functons, multiple widgets providing column styling, ui theme application, sticky headers, column filters and resizer, as well as extended documentation with a lot more demos.",
6
+ "author": {
7
+ "name": "Christian Bach",
8
+ "url": "http://tablesorter.com/"
9
+ },
10
+ "maintainers": [{
11
+ "name": "Rob Garrison",
12
+ "url": "https://github.com/Mottie",
13
+ "email": "wowmotty@gmail.com"
14
+ }],
15
+ "licenses": [{
16
+ "type": "MIT",
17
+ "url": "http://www.opensource.org/licenses/mit-license.php"
18
+ },{
19
+ "type": "GPL",
20
+ "url": "http://www.gnu.org/licenses/gpl.html"
21
+ }],
22
+ "homepage": "http://mottie.github.com/tablesorter/",
23
+ "bugs": "https://github.com/Mottie/tablesorter/issues",
24
+ "docs": "http://mottie.github.com/tablesorter/docs/index.html",
25
+ "demo": "https://github.com/Mottie/tablesorter/wiki",
26
+ "dependencies": {
27
+ "jquery": ">=1.2.6"
28
+ },
29
+ "keywords": [
30
+ "table",
31
+ "sort",
32
+ "sorting",
33
+ "alphanumeric",
34
+ "natural"
35
+ ],
36
+ "main": "jquery.tablesorter.js",
37
+ "files": [
38
+ "css/theme.default.css",
39
+ "js/jquery.tablesorter.min.js",
40
+ "js/jquery.tablesorter.widgets.min.js",
41
+ "addons/pager/"
42
+ ]
43
+ }
@@ -48,7 +48,7 @@
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((30 / @aui-font-size-medium), em); // 30px effective - need height in ems so that user-specified font-sizes apply
52
52
  font-family: inherit;
53
53
  font-size: @aui-font-size-medium;
54
54
  padding: 0 @padding-left-right 0 @icon-gutter;
@@ -79,7 +79,7 @@
79
79
  align-self: center;
80
80
  pointer-events: none; // so the icon isn't clickable, so clicks on it will focus the input field
81
81
  position: absolute;
82
- left: (@icon-gutter - @icon-width) / 2; // sneakily shift the icon inside the input field
82
+ left: ((@icon-gutter - @icon-width) / 2); // sneakily shift the icon inside the input field
83
83
 
84
84
  // And now the actual icon concerns:
85
85
  content: @icon;
@@ -34,7 +34,7 @@ aui-header,
34
34
  @section-gap: 20px;
35
35
 
36
36
  box-sizing: border-box;
37
- padding: 0 @aui-grid;
37
+ padding: 7px @aui-grid 10px @aui-grid;
38
38
  position: relative;
39
39
 
40
40
  .aui-header-before {
@@ -154,11 +154,11 @@ aui-header,
154
154
  // Special-case padding to separate non-nav items from nav items.
155
155
  .aui-header-primary > .aui-nav > li > .aui-button,
156
156
  .aui-header-primary > .aui-nav > li > .aui-buttons {
157
- margin-left: @section-gap / 2;
157
+ margin-left: (@section-gap / 2);
158
158
  }
159
159
 
160
160
  .aui-header-secondary > .aui-nav > li > .aui-quicksearch {
161
- margin-right: @section-gap / 2;
161
+ margin-right: (@section-gap / 2);
162
162
  }
163
163
 
164
164
  // Override the icon styles so that every icon in the header is a uniform size...
@@ -203,9 +203,9 @@ a.aui-button,
203
203
  // Compact buttons
204
204
  .aui-button.aui-button-compact {
205
205
  font-size: @aui-font-size-small;
206
- height: unit(26px / @aui-font-size-small, em); // 26px with 12px font-size
206
+ height: unit((26px / @aui-font-size-small), em); // 26px with 12px font-size
207
207
  padding: (@aui-button-padding-y / 2) (@aui-button-padding-x * .8);
208
- line-height: unit(20 / @aui-font-size-small);
208
+ line-height: unit((20 / @aui-font-size-small));
209
209
  }
210
210
 
211
211
  //
@@ -7,7 +7,7 @@
7
7
  z-index: @aui-z-tooltip;
8
8
  border-radius: @aui-border-radius-small;
9
9
  font-size: @aui-font-size-small;
10
- line-height: unit(20 / @aui-font-size-small);
10
+ line-height: unit((20 / @aui-font-size-small));
11
11
  word-wrap: break-word;
12
12
 
13
13
  a,
@@ -35,7 +35,7 @@
35
35
  -------------------- */
36
36
  .aui-nav-heading {
37
37
  #aui.typography.h100(@aui-nav-heading-text-color);
38
- line-height: unit(20 / @aui-nav-heading-text-font-size);
38
+ line-height: unit((20 / @aui-nav-heading-text-font-size));
39
39
  padding: 0 @aui-nav-link-spacing-horizontal; // to match the nav-item layout.
40
40
 
41
41
  & > strong {
@@ -208,8 +208,8 @@
208
208
  left: 0;
209
209
  margin: 0;
210
210
  position: absolute;
211
- padding: ((@aui-nav-subtree-toggle-icon-size - @aui-icon-size-small) / 2);
212
- top: ((@box-size - @aui-nav-subtree-toggle-icon-size) / 2);
211
+ padding: (((@aui-nav-subtree-toggle-icon-size - @aui-icon-size-small) / 2));
212
+ top: (((@box-size - @aui-nav-subtree-toggle-icon-size) / 2));
213
213
  width: @aui-nav-subtree-toggle-icon-size;
214
214
  outline-radius: @aui-border-radius-smallish;
215
215
  z-index: 1; // because it needs to sit "above" the link it's for.
@@ -247,7 +247,7 @@
247
247
  .aui-navgroup-vertical .aui-nav .aui-nav-item-actions {
248
248
  @actions-glyph-size: unit(@aui-icon-size-small * 0.75, px);
249
249
  @actions-button-size: @aui-icon-size-small;
250
- @aui-nav-item-actions-top-offset: ((@aui-nav-link-effective-height - @actions-button-size) / 2);
250
+ @aui-nav-item-actions-top-offset: (((@aui-nav-link-effective-height - @actions-button-size) / 2));
251
251
  @aui-nav-item-actions-left-offset: 4px;
252
252
  @aui-nav-item-actions-border-radius: 2px; // because it's a tiny button. 3px would probably work, though.
253
253
 
@@ -51,7 +51,7 @@
51
51
  #footer .footer-body > ul > li {
52
52
  display: inline-block;
53
53
  font-size: @aui-font-size-small;
54
- line-height: unit(20 / @aui-font-size-small);
54
+ line-height: unit((20 / @aui-font-size-small));
55
55
  padding: 0;
56
56
  white-space: nowrap;
57
57
  }
@@ -81,7 +81,7 @@ body {
81
81
  #footer .footer-body {
82
82
  color: @aui-footer-body-text-color;
83
83
  font-size: @aui-font-size-small;
84
- line-height: unit(20 / @aui-font-size-small);
84
+ line-height: unit((20 / @aui-font-size-small));
85
85
  margin: (@aui-grid * 2) 0;
86
86
  padding: 0 @aui-grid (@aui-grid * 2 + 1) @aui-grid;
87
87
  min-height: 44px; /* margin + height of image, means footer is just as high if no footer link present */
@@ -95,7 +95,7 @@ h5 + h6 {
95
95
  small {
96
96
  color: @aui-lesser-text-color;
97
97
  font-size: @aui-font-size-small;
98
- line-height: unit(16 / @aui-font-size-small);
98
+ line-height: unit((16 / @aui-font-size-small));
99
99
  }
100
100
  code,
101
101
  kbd {
@@ -103,7 +103,7 @@
103
103
  });
104
104
  input {
105
105
  //padding for the icon
106
- padding-right: @icon-offset/2 + @aui-icon-size-small;
106
+ padding-right: (@icon-offset/2) + @aui-icon-size-small;
107
107
  #aui.with-focus-border();
108
108
  border-radius: @aui-select2-form-field-border-radius;
109
109
  //we need to use important because jquery plugin uses important as well :(
@@ -7,7 +7,7 @@
7
7
  @aui-sidebar-gutter: @aui-grid; // the effective space between the edges and where boxes have to start in order for stuff to lay out according to the spec
8
8
 
9
9
  @aui-sidebar-nav-link-expected-height: 34px; // 34px makes room for 20px icon box sizes.
10
- @aui-sidebar-nav-link-inner-spacing: unit((@aui-sidebar-nav-link-expected-height - @aui-sidebar-icon-size) / 2, px);
10
+ @aui-sidebar-nav-link-inner-spacing: unit(((@aui-sidebar-nav-link-expected-height - @aui-sidebar-icon-size) / 2), px);
11
11
  @aui-sidebar-nav-link-icon-spacing: @aui-sidebar-grid; // distance between the right edge of an icon and the left edge of text content
12
12
 
13
13
  @aui-sidebar-header-avatar-collapsed: @aui-avatar-size-medium; // resize header avatar to a smaller size
@@ -82,8 +82,8 @@
82
82
  display: block;
83
83
  height: @aui-icon-size-large;
84
84
  left: 0;
85
- margin-left: ((@aui-sidebar-collapsed-width - @aui-sidebar-header-avatar-collapsed - (@aui-sidebar-group-actions-border-width * 2)) / 2);
86
- margin-right: ((@aui-sidebar-collapsed-width - @aui-sidebar-header-avatar-collapsed - (@aui-sidebar-group-actions-border-width * 2)) / 2);
85
+ margin-left: (((@aui-sidebar-collapsed-width - @aui-sidebar-header-avatar-collapsed - (@aui-sidebar-group-actions-border-width * 2)) / 2));
86
+ margin-right: (((@aui-sidebar-collapsed-width - @aui-sidebar-header-avatar-collapsed - (@aui-sidebar-group-actions-border-width * 2)) / 2));
87
87
  position: absolute;
88
88
  top: 0;
89
89
  width: @aui-icon-size-large;
@@ -52,7 +52,7 @@
52
52
  // Actions
53
53
  .aui-nav-item-actions {
54
54
  @actions-button-size: @aui-icon-size-small;
55
- top: ((@aui-sidebar-nav-link-expected-height - @actions-button-size) / 2);
55
+ top: (((@aui-sidebar-nav-link-expected-height - @actions-button-size) / 2));
56
56
  height: @actions-button-size;
57
57
  width: @actions-button-size;
58
58
  }
@@ -94,7 +94,7 @@
94
94
  @box-size: @aui-sidebar-nav-link-expected-height; // that assumption in aui-navigation about the .aui-nav-item height? yeeeeah, it's invalid here.
95
95
  @fake-icon-with-spacing: @aui-nav-subtree-toggle-icon-size + @aui-sidebar-nav-link-icon-spacing;
96
96
 
97
- top: ((@box-size - @aui-nav-subtree-toggle-icon-size) / 2);
97
+ top: (((@box-size - @aui-nav-subtree-toggle-icon-size) / 2));
98
98
  left: @aui-sidebar-nav-link-inner-spacing; // push it "inside" the .aui-nav-item, though the element actually adjacent to it.
99
99
  color: @aui-sidebar-toggle-icon-color;
100
100
 
@@ -81,8 +81,8 @@ aui-toggle {
81
81
  .aui-icon aui-spinner[size="small"] {
82
82
  color: inherit;
83
83
  position: absolute;
84
- top: (@aui-toggle-icon-size - @aui-spinner-size-small) / 2; // because it is inside the icon.
85
- left: (@aui-toggle-icon-size - @aui-spinner-size-small) / 2; // because it is inside the icon.
84
+ top: ((@aui-toggle-icon-size - @aui-spinner-size-small) / 2); // because it is inside the icon.
85
+ left: ((@aui-toggle-icon-size - @aui-spinner-size-small) / 2); // because it is inside the icon.
86
86
  }
87
87
  }
88
88
 
@@ -44,10 +44,8 @@
44
44
  font: inherit;
45
45
  margin: 0;
46
46
  text-align: left;
47
- // these could be removed if the parent was `display: flex`... but that might mess up consumers' CSS overrides
48
- width: -moz-available;
49
- width: -webkit-fill-available;
50
- width: fill-available;
47
+ // this could be removed if the parent was `display: flex`... but that might mess up consumers' CSS overrides
48
+ width: stretch;
51
49
  }
52
50
 
53
51
  .dropdown-items({
@@ -302,7 +302,7 @@ form.aui:not(.aui-legacy-forms) {
302
302
 
303
303
  div.description {
304
304
  font-size: @aui-font-size-xsmall;
305
- line-height: unit(20 / @aui-font-size-xsmall);
305
+ line-height: unit((20 / @aui-font-size-xsmall));
306
306
  color: @aui-form-description-text-color;
307
307
  margin: 5px 0 0 0;
308
308
 
@@ -173,7 +173,7 @@ form.aui.aui-legacy-forms {
173
173
 
174
174
  div.description {
175
175
  font-size: @aui-font-size-small;
176
- line-height: unit(20 / @aui-font-size-small);
176
+ line-height: unit((20 / @aui-font-size-small));
177
177
  color: @aui-form-description-text-color;
178
178
  margin: 5px 0 0 0;
179
179
 
@@ -199,7 +199,7 @@ form.aui.aui-legacy-forms {
199
199
  @size: @aui-font-size-medium;
200
200
  box-sizing: border-box;
201
201
  font-size: @size;
202
- height: unit(20 / @size, em);
202
+ height: unit((20 / @size), em);
203
203
  left: 0;
204
204
  margin: 0;
205
205
  padding: 2px;
@@ -50,7 +50,7 @@ form.aui:not(.aui-legacy-forms) {
50
50
  }
51
51
  .aui-radio-position(iconfont) {
52
52
  position: absolute;
53
- left: @radio-offset-left - @radio-glyph-offset-adjustment/2;
53
+ left: @radio-offset-left - (@radio-glyph-offset-adjustment/2);
54
54
  top: @radio-offset-top - @radio-glyph-offset-adjustment;
55
55
  }
56
56
  .aui-radio-outline-position() {
@@ -231,7 +231,7 @@ form.aui:not(.aui-legacy-forms) {
231
231
 
232
232
  content: @aui-glyph-check;
233
233
  color: @checkbox-checked-icon-color;
234
- font-size: @aui-font-size-large / 2;
234
+ font-size: (@aui-font-size-large / 2);
235
235
  line-height: @aui-form-button-size;
236
236
  font-weight: @aui-font-weight-bold;
237
237
  text-align: center;
@@ -194,7 +194,7 @@ form.aui.long-label .date-select .field-group {
194
194
  font-weight: @aui-font-weight-semibold;
195
195
  display: block;
196
196
  float: none;
197
- margin: 0 0 @aui-grid / 2 0;
197
+ margin: 0 0 (@aui-grid / 2) 0;
198
198
  padding: 0;
199
199
  text-align: left;
200
200
  width: auto;
@@ -320,7 +320,7 @@ form.aui pre.aui-form {
320
320
  border: 1px solid @aui-border-color;
321
321
  font-family: @aui-code-font-family;
322
322
  font-size: @size;
323
- line-height: unit(20 / @size);
323
+ line-height: unit((20 / @size));
324
324
  overflow-x: auto;
325
325
  overflow-y: visible;
326
326
  padding: @aui-grid * 1.5;
@@ -9,10 +9,10 @@
9
9
  @aui-button-border-style: solid;
10
10
  @aui-button-border-width: 1px;
11
11
  @aui-button-font-size: @aui-font-size-medium;
12
- @aui-button-height: unit(@aui-button-effective-height / @aui-button-font-size, em);
12
+ @aui-button-height: unit((@aui-button-effective-height / @aui-button-font-size), em);
13
13
  @aui-button-padding-x: 10px;
14
14
  @aui-button-padding-y: 4px;
15
- @aui-button-line-height: unit((@aui-button-effective-height - (@aui-button-border-width + @aui-button-padding-y) *2) / @aui-button-font-size, em);
15
+ @aui-button-line-height: unit(((@aui-button-effective-height - (@aui-button-border-width + @aui-button-padding-y) *2) / @aui-button-font-size), em);
16
16
 
17
17
  // Default button
18
18
  @aui-button-default-bg-color: var(--aui-button-default-bg-color);
@@ -33,7 +33,7 @@
33
33
  @aui-form-field-width-medium-long: 350px;
34
34
  @aui-form-field-width-long: 500px;
35
35
  @aui-form-field-width-full: none;
36
- @aui-form-field-height: unit(30px / @aui-font-size-medium, em); // 30px - using ems so the fields increase in line with user specified font-sizes
36
+ @aui-form-field-height: unit((30px / @aui-font-size-medium), em); // 30px - using ems so the fields increase in line with user specified font-sizes
37
37
 
38
38
  @aui-form-transition-time: 0.2s;
39
39
 
@@ -48,7 +48,7 @@
48
48
  // but the inner content box is only 16px tall. This enables things like
49
49
  // lozenges and small icons to line up correctly with the text, without explicit treatment.
50
50
  // this is assumed and exploited in places like the sidebar's navigation.
51
- line-height: unit((@height - (2 * @aui-nav-link-spacing-vertical)) / @aui-nav-actions-list-item-font-size);
51
+ line-height: unit(((@height - (2 * @aui-nav-link-spacing-vertical)) / @aui-nav-actions-list-item-font-size));
52
52
  padding: @aui-nav-link-spacing-vertical @aui-nav-link-spacing-horizontal;
53
53
  }
54
54
 
@@ -17,8 +17,8 @@
17
17
  @aui-toggle-width: (@aui-toggle-border-width * 2 + @aui-toggle-horizontal-padding * 3 + @aui-toggle-icon-size * 2);
18
18
 
19
19
  @aui-toggle-effective-height: 26px;
20
- @aui-toggle-height: unit(@aui-toggle-effective-height / @aui-toggle-font-size, em); // note: this is the same as a compact AUI button.
21
- @aui-toggle-icon-top: unit((@aui-toggle-effective-height - @aui-toggle-icon-size) / 2, px);
20
+ @aui-toggle-height: unit((@aui-toggle-effective-height / @aui-toggle-font-size), em); // note: this is the same as a compact AUI button.
21
+ @aui-toggle-icon-top: unit(((@aui-toggle-effective-height - @aui-toggle-icon-size) / 2), px);
22
22
  @aui-toggle-handle-width: .odd(@aui-toggle-icon-size + @aui-toggle-horizontal-padding)[@result]; // circles work better with odd numbers
23
23
  @aui-toggle-slide-width: (@aui-toggle-icon-size * 2);
24
24
 
@@ -16,7 +16,7 @@
16
16
  @size: @aui-font-size-xxxlarge;
17
17
  font-size: @size;
18
18
  font-weight: @aui-font-weight-semibold;
19
- line-height: unit(40 / @size);
19
+ line-height: unit((40 / @size));
20
20
  letter-spacing: -0.01em;
21
21
  text-transform: none;
22
22
  }
@@ -25,7 +25,7 @@
25
25
  @size: @aui-font-size-xxlarge;
26
26
  font-size: @size;
27
27
  font-weight: @aui-font-weight-medium;
28
- line-height: unit(30 / @size);
28
+ line-height: unit((30 / @size));
29
29
  letter-spacing: -0.01em;
30
30
  text-transform: none;
31
31
  }
@@ -34,7 +34,7 @@
34
34
  @size: @aui-font-size-xlarge;
35
35
  font-size: @size;
36
36
  font-weight: @aui-font-weight-medium;
37
- line-height: unit(30 / @size);
37
+ line-height: unit((30 / @size));
38
38
  letter-spacing: -0.008em;
39
39
  text-transform: none;
40
40
  }
@@ -43,7 +43,7 @@
43
43
  @size: @aui-font-size-large;
44
44
  font-size: @size;
45
45
  font-weight: @aui-font-weight-medium;
46
- line-height: unit(20 / @size);
46
+ line-height: unit((20 / @size));
47
47
  letter-spacing: -0.006em;
48
48
  text-transform: none;
49
49
  }
@@ -52,7 +52,7 @@
52
52
  @size: @aui-font-size-medium;
53
53
  font-size: @size;
54
54
  font-weight: @aui-font-weight-semibold;
55
- line-height: unit(20 / @size);
55
+ line-height: unit((20 / @size));
56
56
  letter-spacing: -0.003em;
57
57
  text-transform: none;
58
58
  }
@@ -61,7 +61,7 @@
61
61
  @size: @aui-font-size-small;
62
62
  font-size: @size;
63
63
  font-weight: @aui-font-weight-semibold;
64
- line-height: unit(20 / @size);
64
+ line-height: unit((20 / @size));
65
65
  letter-spacing: 0;
66
66
  text-transform: none;
67
67
  }
@@ -70,7 +70,7 @@
70
70
  color: @color;
71
71
  font-size: @size;
72
72
  font-weight: @aui-font-weight-semibold;
73
- line-height: unit(20 / @size);
73
+ line-height: unit((20 / @size));
74
74
  letter-spacing: 0;
75
75
  text-transform: none;
76
76
  }
@@ -79,7 +79,7 @@
79
79
  color: @color;
80
80
  font-size: @size;
81
81
  font-weight: @aui-font-weight-semibold;
82
- line-height: unit(16 / @size);
82
+ line-height: unit((16 / @size));
83
83
  letter-spacing: 0;
84
84
  text-transform: uppercase;
85
85
  }
@@ -64,7 +64,7 @@
64
64
  font-variant: normal;
65
65
  font-weight: @aui-font-weight-normal;
66
66
  letter-spacing: @aui-font-letter-spacing;
67
- line-height: unit(20 / @aui-font-size-medium);
67
+ line-height: unit((20 / @aui-font-size-medium));
68
68
  text-align: left; // in case anybody used text-align for layout purposes
69
69
  white-space: normal;
70
70
  }
@@ -71,7 +71,7 @@
71
71
  @select-trigger-padding-right: 6px;
72
72
  @select-trigger-arrow-width: 8px;
73
73
  @select-trigger-width: @aui-button-border-width * 2 + @select-trigger-padding-left + @select-trigger-arrow-width + @select-trigger-padding-right;
74
- @select-trigger-arrow-height: @select-trigger-arrow-width / 2;
74
+ @select-trigger-arrow-height: (@select-trigger-arrow-width / 2);
75
75
 
76
76
  form.aui:not(.aui-legacy-forms) aui-select,
77
77
  aui-select {
@@ -1,176 +0,0 @@
1
- /*
2
- * Modified by Atlassian to allow chaining of keys
3
- *
4
- * jQuery Hotkeys Plugin
5
- * Copyright 2010, John Resig
6
- * Dual licensed under the MIT or GPL Version 2 licenses.
7
- *
8
- * Based upon the plugin by Tzury Bar Yochay:
9
- * http://github.com/tzuryby/hotkeys
10
- *
11
- * Original idea by:
12
- * Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/
13
- */
14
-
15
- (function(jQuery){
16
-
17
- jQuery.hotkeys = {
18
- version: "0.8",
19
-
20
- 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: ']'
30
- },
31
-
32
- // These only work under Mac Gecko when using keypress (see http://unixpapa.com/js/key.html).
33
- keypressKeys: [ "<", ">", "?" ],
34
-
35
- shiftNums: {
36
- "`": "~", "1": "!", "2": "@", "3": "#", "4": "$", "5": "%", "6": "^", "7": "&",
37
- "8": "*", "9": "(", "0": ")", "-": "_", "=": "+", ";": ":", "'": "\"", ",": "<",
38
- ".": ">", "/": "?", "\\": "|"
39
- }
40
- };
41
-
42
- jQuery.each(jQuery.hotkeys.keypressKeys, function (_, key) {
43
- jQuery.hotkeys.shiftNums[ key ] = key;
44
- });
45
-
46
- function TimedNumber(timer) {
47
- this.num = 0;
48
- this.timer = timer > 0 ? timer : false;
49
- }
50
- TimedNumber.prototype.val = function () {
51
- return this.num;
52
- };
53
- TimedNumber.prototype.inc = function () {
54
- if (this.timer) {
55
- clearTimeout(this.timeout);
56
- this.timeout = setTimeout(jQuery.proxy(TimedNumber.prototype.reset, this), this.timer);
57
- }
58
- this.num++;
59
- };
60
- TimedNumber.prototype.reset = function () {
61
- if (this.timer) {
62
- clearTimeout(this.timeout);
63
- }
64
- this.num = 0;
65
- };
66
-
67
- function keyHandler( handleObj ) {
68
- // Only care when a possible input has been specified
69
- if ( !(jQuery.isPlainObject(handleObj.data) || jQuery.isArray(handleObj.data) || typeof handleObj.data === "string") ) {
70
- return;
71
- }
72
-
73
- var origHandler = handleObj.handler,
74
- options = {
75
- timer: 700,
76
- combo: []
77
- };
78
-
79
- (function (data) {
80
- if (typeof data === 'string') {
81
- options.combo = [ data ];
82
- } else if (jQuery.isArray(data)) {
83
- options.combo = data;
84
- } else {
85
- jQuery.extend(options, data);
86
- }
87
- options.combo = jQuery.map(options.combo, function (key) {
88
- return key.toLowerCase();
89
- });
90
- })(handleObj.data);
91
-
92
- handleObj.index = new TimedNumber(options.timer);
93
- handleObj.handler = function( event ) {
94
- // Don't fire in text-accepting inputs that we didn't directly bind to
95
- // 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' )) {
98
- return;
99
- }
100
-
101
- // 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 = {};
105
-
106
- // check combinations (alt|ctrl|shift+anything)
107
- if ( event.altKey && special !== "alt" ) {
108
- modif += "alt+";
109
- }
110
-
111
- if ( event.ctrlKey && special !== "ctrl" ) {
112
- modif += "ctrl+";
113
- }
114
-
115
- // TODO: Need to make sure this works consistently across platforms
116
- if ( event.metaKey && !event.ctrlKey && special !== "meta" ) {
117
- modif += "meta+";
118
- }
119
-
120
- if ( event.shiftKey && special !== "shift" ) {
121
- modif += "shift+";
122
- }
123
-
124
- // Under Chrome and Safari, meta's keycode == '['s charcode
125
- // Even if they did type this key combo we could not use it because it is browser back in Chrome/Safari on OS X
126
- if (event.metaKey && character === '[') {
127
- character = null;
128
- }
129
-
130
- if (special) {
131
- possible[ modif + special ] = true;
132
- }
133
- if (character) {
134
- possible[ modif + character ] = true;
135
- }
136
-
137
- // "$" can be specified as "shift+4" or "$"
138
- if ( /shift+/.test(modif) ) {
139
- possible [ modif.replace('shift+', '') + jQuery.hotkeys.shiftNums[ (special || character) ] ] = true;
140
- }
141
-
142
- var index = handleObj.index,
143
- combo = options.combo;
144
-
145
- if ( pressed(combo[index.val()], possible) ) {
146
- if ( index.val() === combo.length - 1 ) {
147
- index.reset();
148
- return origHandler.apply(this, arguments);
149
- } else {
150
- index.inc();
151
- }
152
- } else {
153
- index.reset();
154
- // For mutli-key combinations, we might have restarted the key sequence.
155
- if ( pressed(combo[0], possible) ) {
156
- index.inc();
157
- }
158
- }
159
- };
160
- }
161
-
162
- function pressed(key, possible) {
163
- var keys = key.split(' ');
164
- for (var i = 0, len = keys.length; i < len; i++) {
165
- if ( possible[keys[i]] ) {
166
- return true;
167
- }
168
- }
169
- return false;
170
- }
171
-
172
- jQuery.each([ "keydown", "keyup", "keypress" ], function() {
173
- jQuery.event.special[ this ] = { add: keyHandler };
174
- });
175
-
176
- })( jQuery );