fomantic-ui 2.10.0-beta.54 → 2.10.0-beta.55

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 (176) hide show
  1. package/.eslintrc.js +1 -7
  2. package/dist/components/accordion.css +1 -1
  3. package/dist/components/accordion.js +1 -1
  4. package/dist/components/accordion.min.css +1 -1
  5. package/dist/components/accordion.min.js +1 -1
  6. package/dist/components/ad.css +1 -1
  7. package/dist/components/ad.min.css +1 -1
  8. package/dist/components/api.js +19 -23
  9. package/dist/components/api.min.js +1 -1
  10. package/dist/components/breadcrumb.css +1 -1
  11. package/dist/components/breadcrumb.min.css +1 -1
  12. package/dist/components/button.css +1 -1
  13. package/dist/components/button.min.css +1 -1
  14. package/dist/components/calendar.css +1 -1
  15. package/dist/components/calendar.js +18 -29
  16. package/dist/components/calendar.min.css +1 -1
  17. package/dist/components/calendar.min.js +1 -1
  18. package/dist/components/card.css +1 -1
  19. package/dist/components/card.min.css +1 -1
  20. package/dist/components/checkbox.css +1 -1
  21. package/dist/components/checkbox.js +1 -1
  22. package/dist/components/checkbox.min.css +1 -1
  23. package/dist/components/checkbox.min.js +1 -1
  24. package/dist/components/comment.css +1 -1
  25. package/dist/components/comment.min.css +1 -1
  26. package/dist/components/container.css +1 -1
  27. package/dist/components/container.min.css +1 -1
  28. package/dist/components/dimmer.css +1 -1
  29. package/dist/components/dimmer.js +3 -5
  30. package/dist/components/dimmer.min.css +1 -1
  31. package/dist/components/dimmer.min.js +1 -1
  32. package/dist/components/divider.css +1 -1
  33. package/dist/components/divider.min.css +1 -1
  34. package/dist/components/dropdown.css +1 -1
  35. package/dist/components/dropdown.js +22 -32
  36. package/dist/components/dropdown.min.css +1 -1
  37. package/dist/components/dropdown.min.js +1 -1
  38. package/dist/components/embed.css +1 -1
  39. package/dist/components/embed.js +1 -1
  40. package/dist/components/embed.min.css +1 -1
  41. package/dist/components/embed.min.js +1 -1
  42. package/dist/components/emoji.css +1 -1
  43. package/dist/components/emoji.min.css +1 -1
  44. package/dist/components/feed.css +1 -1
  45. package/dist/components/feed.min.css +1 -1
  46. package/dist/components/flag.css +1 -1
  47. package/dist/components/flag.min.css +1 -1
  48. package/dist/components/flyout.css +1 -1
  49. package/dist/components/flyout.js +1 -1
  50. package/dist/components/flyout.min.css +1 -1
  51. package/dist/components/flyout.min.js +1 -1
  52. package/dist/components/form.css +1 -1
  53. package/dist/components/form.js +65 -66
  54. package/dist/components/form.min.css +1 -1
  55. package/dist/components/form.min.js +2 -2
  56. package/dist/components/grid.css +1 -1
  57. package/dist/components/grid.min.css +1 -1
  58. package/dist/components/header.css +1 -1
  59. package/dist/components/header.min.css +1 -1
  60. package/dist/components/icon.css +1 -1
  61. package/dist/components/icon.min.css +1 -1
  62. package/dist/components/image.css +1 -1
  63. package/dist/components/image.min.css +1 -1
  64. package/dist/components/input.css +1 -1
  65. package/dist/components/input.min.css +1 -1
  66. package/dist/components/item.css +1 -1
  67. package/dist/components/item.min.css +1 -1
  68. package/dist/components/label.css +1 -1
  69. package/dist/components/label.min.css +1 -1
  70. package/dist/components/list.css +1 -1
  71. package/dist/components/list.min.css +1 -1
  72. package/dist/components/loader.css +1 -1
  73. package/dist/components/loader.min.css +1 -1
  74. package/dist/components/menu.css +1 -1
  75. package/dist/components/menu.min.css +1 -1
  76. package/dist/components/message.css +1 -1
  77. package/dist/components/message.min.css +1 -1
  78. package/dist/components/modal.css +1 -1
  79. package/dist/components/modal.js +1 -1
  80. package/dist/components/modal.min.css +1 -1
  81. package/dist/components/modal.min.js +1 -1
  82. package/dist/components/nag.css +1 -1
  83. package/dist/components/nag.js +3 -3
  84. package/dist/components/nag.min.css +1 -1
  85. package/dist/components/nag.min.js +1 -1
  86. package/dist/components/placeholder.css +1 -1
  87. package/dist/components/placeholder.min.css +1 -1
  88. package/dist/components/popup.css +1 -1
  89. package/dist/components/popup.js +5 -6
  90. package/dist/components/popup.min.css +1 -1
  91. package/dist/components/popup.min.js +1 -1
  92. package/dist/components/progress.css +1 -1
  93. package/dist/components/progress.js +1 -1
  94. package/dist/components/progress.min.css +1 -1
  95. package/dist/components/progress.min.js +1 -1
  96. package/dist/components/rail.css +1 -1
  97. package/dist/components/rail.min.css +1 -1
  98. package/dist/components/rating.css +1 -1
  99. package/dist/components/rating.js +1 -1
  100. package/dist/components/rating.min.css +1 -1
  101. package/dist/components/rating.min.js +1 -1
  102. package/dist/components/reset.css +1 -1
  103. package/dist/components/reset.min.css +1 -1
  104. package/dist/components/reveal.css +1 -1
  105. package/dist/components/reveal.min.css +1 -1
  106. package/dist/components/search.css +1 -1
  107. package/dist/components/search.js +21 -30
  108. package/dist/components/search.min.css +1 -1
  109. package/dist/components/search.min.js +1 -1
  110. package/dist/components/segment.css +1 -1
  111. package/dist/components/segment.min.css +1 -1
  112. package/dist/components/shape.css +1 -1
  113. package/dist/components/shape.js +1 -1
  114. package/dist/components/shape.min.css +1 -1
  115. package/dist/components/shape.min.js +1 -1
  116. package/dist/components/sidebar.css +1 -1
  117. package/dist/components/sidebar.js +1 -1
  118. package/dist/components/sidebar.min.css +1 -1
  119. package/dist/components/sidebar.min.js +1 -1
  120. package/dist/components/site.css +1 -1
  121. package/dist/components/site.js +1 -1
  122. package/dist/components/site.min.css +1 -1
  123. package/dist/components/site.min.js +1 -1
  124. package/dist/components/slider.css +1 -1
  125. package/dist/components/slider.js +7 -8
  126. package/dist/components/slider.min.css +1 -1
  127. package/dist/components/slider.min.js +1 -1
  128. package/dist/components/state.js +7 -9
  129. package/dist/components/state.min.js +1 -1
  130. package/dist/components/statistic.css +1 -1
  131. package/dist/components/statistic.min.css +1 -1
  132. package/dist/components/step.css +1 -1
  133. package/dist/components/step.min.css +1 -1
  134. package/dist/components/sticky.css +1 -1
  135. package/dist/components/sticky.js +8 -12
  136. package/dist/components/sticky.min.css +1 -1
  137. package/dist/components/sticky.min.js +1 -1
  138. package/dist/components/tab.css +1 -1
  139. package/dist/components/tab.js +6 -13
  140. package/dist/components/tab.min.css +1 -1
  141. package/dist/components/tab.min.js +2 -2
  142. package/dist/components/table.css +1 -1
  143. package/dist/components/table.min.css +1 -1
  144. package/dist/components/text.css +1 -1
  145. package/dist/components/text.min.css +1 -1
  146. package/dist/components/toast.css +1 -1
  147. package/dist/components/toast.js +5 -7
  148. package/dist/components/toast.min.css +1 -1
  149. package/dist/components/toast.min.js +2 -2
  150. package/dist/components/transition.css +1 -1
  151. package/dist/components/transition.js +1 -1
  152. package/dist/components/transition.min.css +1 -1
  153. package/dist/components/transition.min.js +1 -1
  154. package/dist/components/visibility.js +8 -14
  155. package/dist/components/visibility.min.js +1 -1
  156. package/dist/semantic.css +53 -53
  157. package/dist/semantic.js +209 -269
  158. package/dist/semantic.min.css +1 -1
  159. package/dist/semantic.min.js +2 -2
  160. package/package.json +1 -1
  161. package/src/definitions/behaviors/api.js +18 -22
  162. package/src/definitions/behaviors/form.js +64 -65
  163. package/src/definitions/behaviors/state.js +6 -8
  164. package/src/definitions/behaviors/visibility.js +7 -13
  165. package/src/definitions/modules/calendar.js +17 -28
  166. package/src/definitions/modules/dimmer.js +2 -4
  167. package/src/definitions/modules/dropdown.js +21 -31
  168. package/src/definitions/modules/nag.js +2 -2
  169. package/src/definitions/modules/popup.js +4 -5
  170. package/src/definitions/modules/search.js +20 -29
  171. package/src/definitions/modules/slider.js +6 -7
  172. package/src/definitions/modules/sticky.js +7 -11
  173. package/src/definitions/modules/tab.js +5 -12
  174. package/src/definitions/modules/toast.js +4 -6
  175. package/test/meteor/assets.js +1 -1
  176. package/test/meteor/fonts.js +1 -1
package/.eslintrc.js CHANGED
@@ -9,7 +9,7 @@ module.exports = {
9
9
  'plugin:@internal/eslint-plugin/recommended',
10
10
  ],
11
11
  parserOptions: {
12
- ecmaVersion: '2020',
12
+ ecmaVersion: '2021',
13
13
  sourceType: 'module',
14
14
  },
15
15
  ignorePatterns: [
@@ -31,7 +31,6 @@ module.exports = {
31
31
  }],
32
32
  'consistent-return': 'off',
33
33
  curly: ['error', 'all'],
34
- 'default-case': 'off',
35
34
  'func-names': 'off',
36
35
  'import/no-unresolved': 'off',
37
36
  'import/prefer-default-export': 'off',
@@ -41,12 +40,10 @@ module.exports = {
41
40
  'linebreak-style': ['error', 'unix'],
42
41
  'max-len': 'off',
43
42
  'no-console': 'off',
44
- 'no-lonely-if': 'off',
45
43
  'no-nested-ternary': 'off',
46
44
  'no-param-reassign': 'off',
47
45
  'no-plusplus': 'off',
48
46
  'no-restricted-syntax': 'off',
49
- 'no-underscore-dangle': 'off',
50
47
  'no-unused-vars': 'off',
51
48
  'object-shorthand': ['error', 'never'],
52
49
  'padding-line-between-statements': ['error', {
@@ -68,14 +65,11 @@ module.exports = {
68
65
  },
69
66
  }],
70
67
  strict: 'off',
71
- 'unicorn/catch-error-name': 'off',
72
68
  'unicorn/no-anonymous-default-export': 'off',
73
69
  'unicorn/no-array-callback-reference': 'off',
74
- 'unicorn/no-lonely-if': 'off',
75
70
  'unicorn/no-negated-condition': 'off',
76
71
  'unicorn/no-null': 'off',
77
72
  'unicorn/no-this-assignment': 'off',
78
- 'unicorn/numeric-separators-style': 'off',
79
73
  'unicorn/prefer-array-find': 'off',
80
74
  'unicorn/prefer-array-some': 'off', // https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2007
81
75
  'unicorn/prefer-at': 'off',
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Accordion
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Accordion
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Accordion
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Accordion
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Accordion
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Accordion
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.54+9149817
2
+ * # Fomantic UI - 2.10.0-beta.55+8a92769
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Ad
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Ad
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Ad
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Ad
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - API
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - API
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -241,22 +241,20 @@
241
241
  if (!settings.throttle) {
242
242
  module.debug('Sending request', data, ajaxSettings.method);
243
243
  module.send.request();
244
+ } else if (!settings.throttleFirstRequest && !module.timer) {
245
+ module.debug('Sending request', data, ajaxSettings.method);
246
+ module.send.request();
247
+ module.timer = setTimeout(function () {}, settings.throttle);
244
248
  } else {
245
- if (!settings.throttleFirstRequest && !module.timer) {
246
- module.debug('Sending request', data, ajaxSettings.method);
249
+ module.debug('Throttling request', settings.throttle);
250
+ clearTimeout(module.timer);
251
+ module.timer = setTimeout(function () {
252
+ if (module.timer) {
253
+ delete module.timer;
254
+ }
255
+ module.debug('Sending throttled request', data, ajaxSettings.method);
247
256
  module.send.request();
248
- module.timer = setTimeout(function () {}, settings.throttle);
249
- } else {
250
- module.debug('Throttling request', settings.throttle);
251
- clearTimeout(module.timer);
252
- module.timer = setTimeout(function () {
253
- if (module.timer) {
254
- delete module.timer;
255
- }
256
- module.debug('Sending throttled request', data, ajaxSettings.method);
257
- module.send.request();
258
- }, settings.throttle);
259
- }
257
+ }, settings.throttle);
260
258
  }
261
259
  },
262
260
 
@@ -580,15 +578,13 @@
580
578
  }
581
579
  if (status === 'invalid') {
582
580
  module.debug('JSON did not pass success test. A server-side error has most likely occurred', response);
583
- } else if (status === 'error') {
584
- if (xhr !== undefined) {
585
- module.debug('XHR produced a server error', status, httpMessage);
586
- // make sure we have an error to display to console
587
- if ((xhr.status < 200 || xhr.status >= 300) && httpMessage !== undefined && httpMessage !== '') {
588
- module.error(error.statusMessage + httpMessage, ajaxSettings.url);
589
- }
590
- settings.onError.call(context, errorMessage, $module, xhr);
581
+ } else if (status === 'error' && xhr !== undefined) {
582
+ module.debug('XHR produced a server error', status, httpMessage);
583
+ // make sure we have an error to display to console
584
+ if ((xhr.status < 200 || xhr.status >= 300) && httpMessage !== undefined && httpMessage !== '') {
585
+ module.error(error.statusMessage + httpMessage, ajaxSettings.url);
591
586
  }
587
+ settings.onError.call(context, errorMessage, $module, xhr);
592
588
  }
593
589
 
594
590
  if (settings.errorDuration && status !== 'aborted') {
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.54+9149817
2
+ * # Fomantic UI - 2.10.0-beta.55+8a92769
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Breadcrumb
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Breadcrumb
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Breadcrumb
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Breadcrumb
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Button
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Button
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Button
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Button
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Calendar
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Calendar
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Calendar
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Calendar
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -672,10 +672,8 @@
672
672
  // enter key
673
673
  case 13: {
674
674
  let date = module.get.focusDate();
675
- if (date && !settings.isDisabled(date, mode) && !module.helper.isDisabled(date, mode) && module.helper.isEnabled(date, mode)) {
676
- if (settings.onSelect.call(element, date, module.get.mode()) !== false) {
677
- module.selectDate(date);
678
- }
675
+ if (date && !settings.isDisabled(date, mode) && !module.helper.isDisabled(date, mode) && module.helper.isEnabled(date, mode) && settings.onSelect.call(element, date, module.get.mode()) !== false) {
676
+ module.selectDate(date);
679
677
  }
680
678
  // disable form submission:
681
679
  event.preventDefault();
@@ -690,6 +688,7 @@
690
688
 
691
689
  break;
692
690
  }
691
+ // no default
693
692
  }
694
693
  }
695
694
 
@@ -1248,10 +1247,8 @@
1248
1247
  if (typeof d[metadata.year] === 'number' && date.getFullYear() === d[metadata.year]) {
1249
1248
  return d;
1250
1249
  }
1251
- if (Array.isArray(d[metadata.year])) {
1252
- if (d[metadata.year].includes(date.getFullYear())) {
1253
- return d;
1254
- }
1250
+ if (Array.isArray(d[metadata.year]) && d[metadata.year].includes(date.getFullYear())) {
1251
+ return d;
1255
1252
  }
1256
1253
  } else if (d[metadata.month]) {
1257
1254
  if (typeof d[metadata.month] === 'number' && date.getMonth() === d[metadata.month]) {
@@ -1271,12 +1268,10 @@
1271
1268
  if (d[metadata.date] instanceof Date && module.helper.dateEqual(date, module.helper.sanitiseDate(d[metadata.date]), mode)) {
1272
1269
  return d;
1273
1270
  }
1274
- if (Array.isArray(d[metadata.date])) {
1275
- if (d[metadata.date].some(function (idate) {
1276
- return module.helper.dateEqual(date, idate, mode);
1277
- })) {
1278
- return d;
1279
- }
1271
+ if (Array.isArray(d[metadata.date]) && d[metadata.date].some(function (idate) {
1272
+ return module.helper.dateEqual(date, idate, mode);
1273
+ })) {
1274
+ return d;
1280
1275
  }
1281
1276
  }
1282
1277
  }
@@ -1292,10 +1287,8 @@
1292
1287
  if (typeof d[metadata.hours] === 'number' && date.getHours() === d[metadata.hours]) {
1293
1288
  return d;
1294
1289
  }
1295
- if (Array.isArray(d[metadata.hours])) {
1296
- if (d[metadata.hours].includes(date.getHours())) {
1297
- return d;
1298
- }
1290
+ if (Array.isArray(d[metadata.hours]) && d[metadata.hours].includes(date.getHours())) {
1291
+ return d;
1299
1292
  }
1300
1293
  }
1301
1294
  };
@@ -1308,21 +1301,17 @@
1308
1301
  if (typeof d[metadata.days] === 'number' && date.getDay() === d[metadata.days]) {
1309
1302
  return d;
1310
1303
  }
1311
- if (Array.isArray(d[metadata.days])) {
1312
- if (d[metadata.days].includes(date.getDay())) {
1313
- return d;
1314
- }
1304
+ if (Array.isArray(d[metadata.days]) && d[metadata.days].includes(date.getDay())) {
1305
+ return d;
1315
1306
  }
1316
1307
  } else if (d[metadata.date] && hourCheck(date, d)) {
1317
1308
  if (d[metadata.date] instanceof Date && module.helper.dateEqual(date, module.helper.sanitiseDate(d[metadata.date]))) {
1318
1309
  return d;
1319
1310
  }
1320
- if (Array.isArray(d[metadata.date])) {
1321
- if (d[metadata.date].some(function (idate) {
1322
- return module.helper.dateEqual(date, idate, mode);
1323
- })) {
1324
- return d;
1325
- }
1311
+ if (Array.isArray(d[metadata.date]) && d[metadata.date].some(function (idate) {
1312
+ return module.helper.dateEqual(date, idate, mode);
1313
+ })) {
1314
+ return d;
1326
1315
  }
1327
1316
  } else if (hourCheck(date, d)) {
1328
1317
  return d;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Calendar
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Calendar
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.54+9149817
2
+ * # Fomantic UI - 2.10.0-beta.55+8a92769
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Card
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Card
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Card
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Card
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Checkbox
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Checkbox
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Checkbox
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Checkbox
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Checkbox
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Checkbox
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.54+9149817
2
+ * # Fomantic UI - 2.10.0-beta.55+8a92769
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Comment
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Comment
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Comment
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Comment
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Container
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Container
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Container
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Container
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Dimmer
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Dimmer
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Dimmer
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Dimmer
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -200,10 +200,8 @@
200
200
  module.verbose('Toggling dimmer visibility', $dimmer);
201
201
  if (!module.is.dimmed()) {
202
202
  module.show();
203
- } else {
204
- if (module.is.closable()) {
205
- module.hide();
206
- }
203
+ } else if (module.is.closable()) {
204
+ module.hide();
207
205
  }
208
206
  },
209
207
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Dimmer
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Dimmer
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.54+9149817
2
+ * # Fomantic UI - 2.10.0-beta.55+8a92769
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Divider
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Divider
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Divider
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Divider
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Dropdown
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Dropdown
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Dropdown
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Dropdown
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1132,15 +1132,13 @@
1132
1132
  },
1133
1133
  blur: function (event) {
1134
1134
  pageLostFocus = document.activeElement === this;
1135
- if (module.is.searchSelection(true) && !willRefocus) {
1136
- if (!itemActivated && !pageLostFocus) {
1137
- if (settings.forceSelection) {
1138
- module.forceSelection();
1139
- } else if (!settings.allowAdditions && !settings.keepSearchTerm && !module.has.menuSearch()) {
1140
- module.remove.searchTerm();
1141
- }
1142
- module.hide();
1135
+ if (module.is.searchSelection(true) && !willRefocus && !itemActivated && !pageLostFocus) {
1136
+ if (settings.forceSelection) {
1137
+ module.forceSelection();
1138
+ } else if (!settings.allowAdditions && !settings.keepSearchTerm && !module.has.menuSearch()) {
1139
+ module.remove.searchTerm();
1143
1140
  }
1141
+ module.hide();
1144
1142
  }
1145
1143
  willRefocus = false;
1146
1144
  },
@@ -1245,10 +1243,8 @@
1245
1243
  }
1246
1244
  },
1247
1245
  hide: function (event) {
1248
- if (module.determine.eventInModule(event, module.hide)) {
1249
- if (element.id && $(event.target).attr('for') === element.id) {
1250
- event.preventDefault();
1251
- }
1246
+ if (module.determine.eventInModule(event, module.hide) && element.id && $(event.target).attr('for') === element.id) {
1247
+ event.preventDefault();
1252
1248
  }
1253
1249
  },
1254
1250
  },
@@ -1458,10 +1454,8 @@
1458
1454
  case keys.backspace: {
1459
1455
  if (hasActiveLabel) {
1460
1456
  module.verbose('Removing active labels');
1461
- if (isLastLabel) {
1462
- if (isSearch && !isFocusedOnSearch) {
1463
- module.focusSearch();
1464
- }
1457
+ if (isLastLabel && isSearch && !isFocusedOnSearch) {
1458
+ module.focusSearch();
1465
1459
  }
1466
1460
  $activeLabel.last().next(selector.siblingLabel).addClass(className.active);
1467
1461
  module.remove.activeLabels($activeLabel);
@@ -1564,17 +1558,15 @@
1564
1558
  }
1565
1559
 
1566
1560
  // right arrow (show submenu)
1567
- if (pressedKey === keys.rightArrow) {
1568
- if (hasSubMenu) {
1569
- module.verbose('Right key pressed, opening sub-menu');
1570
- module.animate.show(false, $subMenu);
1571
- $selectedItem
1572
- .removeClass(className.selected);
1573
- $subMenu
1574
- .find(selector.item).eq(0)
1575
- .addClass(className.selected);
1576
- event.preventDefault();
1577
- }
1561
+ if (pressedKey === keys.rightArrow && hasSubMenu) {
1562
+ module.verbose('Right key pressed, opening sub-menu');
1563
+ module.animate.show(false, $subMenu);
1564
+ $selectedItem
1565
+ .removeClass(className.selected);
1566
+ $subMenu
1567
+ .find(selector.item).eq(0)
1568
+ .addClass(className.selected);
1569
+ event.preventDefault();
1578
1570
  }
1579
1571
  }
1580
1572
 
@@ -1657,10 +1649,8 @@
1657
1649
  event.preventDefault();
1658
1650
  }
1659
1651
  }
1660
- } else {
1661
- if (!module.has.search()) {
1662
- module.set.selectedLetter(String.fromCodePoint(pressedKey));
1663
- }
1652
+ } else if (!module.has.search()) {
1653
+ module.set.selectedLetter(String.fromCodePoint(pressedKey));
1664
1654
  }
1665
1655
  },
1666
1656
  },
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Dropdown
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Dropdown
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.54+9149817
2
+ * # Fomantic UI - 2.10.0-beta.55+8a92769
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Embed
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Embed
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Embed
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Embed
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Embed
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Embed
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.54+9149817
2
+ * # Fomantic UI - 2.10.0-beta.55+8a92769
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.54+9149817 - Emoji
2
+ * # Fomantic-UI 2.10.0-beta.55+8a92769 - Emoji
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *