fomantic-ui 2.10.0-beta.1 → 2.10.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/dist/components/accordion.css +1 -1
  2. package/dist/components/accordion.js +1 -1
  3. package/dist/components/accordion.min.css +1 -1
  4. package/dist/components/accordion.min.js +1 -1
  5. package/dist/components/ad.css +1 -1
  6. package/dist/components/ad.min.css +1 -1
  7. package/dist/components/api.js +6 -6
  8. package/dist/components/api.min.js +1 -1
  9. package/dist/components/breadcrumb.css +1 -1
  10. package/dist/components/breadcrumb.min.css +1 -1
  11. package/dist/components/button.css +1 -1
  12. package/dist/components/button.min.css +1 -1
  13. package/dist/components/calendar.css +1 -1
  14. package/dist/components/calendar.js +7 -7
  15. package/dist/components/calendar.min.css +1 -1
  16. package/dist/components/calendar.min.js +1 -1
  17. package/dist/components/card.css +1 -1
  18. package/dist/components/card.min.css +1 -1
  19. package/dist/components/checkbox.css +1 -1
  20. package/dist/components/checkbox.js +1 -1
  21. package/dist/components/checkbox.min.css +1 -1
  22. package/dist/components/checkbox.min.js +1 -1
  23. package/dist/components/comment.css +1 -1
  24. package/dist/components/comment.min.css +1 -1
  25. package/dist/components/container.css +1 -1
  26. package/dist/components/container.min.css +1 -1
  27. package/dist/components/dimmer.css +1 -1
  28. package/dist/components/dimmer.js +4 -4
  29. package/dist/components/dimmer.min.css +1 -1
  30. package/dist/components/dimmer.min.js +1 -1
  31. package/dist/components/divider.css +1 -1
  32. package/dist/components/divider.min.css +1 -1
  33. package/dist/components/dropdown.css +1 -1
  34. package/dist/components/dropdown.js +29 -29
  35. package/dist/components/dropdown.min.css +1 -1
  36. package/dist/components/dropdown.min.js +1 -1
  37. package/dist/components/embed.css +1 -1
  38. package/dist/components/embed.js +2 -2
  39. package/dist/components/embed.min.css +1 -1
  40. package/dist/components/embed.min.js +1 -1
  41. package/dist/components/emoji.css +1 -1
  42. package/dist/components/emoji.min.css +1 -1
  43. package/dist/components/feed.css +1 -1
  44. package/dist/components/feed.min.css +1 -1
  45. package/dist/components/flag.css +1 -1
  46. package/dist/components/flag.min.css +1 -1
  47. package/dist/components/flyout.css +1 -1
  48. package/dist/components/flyout.js +3 -3
  49. package/dist/components/flyout.min.css +1 -1
  50. package/dist/components/flyout.min.js +2 -2
  51. package/dist/components/form.css +5 -5
  52. package/dist/components/form.js +11 -11
  53. package/dist/components/form.min.css +1 -1
  54. package/dist/components/form.min.js +1 -1
  55. package/dist/components/grid.css +1 -1
  56. package/dist/components/grid.min.css +1 -1
  57. package/dist/components/header.css +1 -1
  58. package/dist/components/header.min.css +1 -1
  59. package/dist/components/icon.css +1 -1
  60. package/dist/components/icon.min.css +1 -1
  61. package/dist/components/image.css +1 -1
  62. package/dist/components/image.min.css +1 -1
  63. package/dist/components/input.css +1 -1
  64. package/dist/components/input.min.css +1 -1
  65. package/dist/components/item.css +1 -1
  66. package/dist/components/item.min.css +1 -1
  67. package/dist/components/label.css +1 -1
  68. package/dist/components/label.min.css +1 -1
  69. package/dist/components/list.css +1 -1
  70. package/dist/components/list.min.css +1 -1
  71. package/dist/components/loader.css +1 -1
  72. package/dist/components/loader.min.css +1 -1
  73. package/dist/components/menu.css +1 -1
  74. package/dist/components/menu.min.css +1 -1
  75. package/dist/components/message.css +1 -1
  76. package/dist/components/message.min.css +1 -1
  77. package/dist/components/modal.css +1 -1
  78. package/dist/components/modal.js +2 -2
  79. package/dist/components/modal.min.css +1 -1
  80. package/dist/components/modal.min.js +1 -1
  81. package/dist/components/nag.css +1 -1
  82. package/dist/components/nag.js +2 -2
  83. package/dist/components/nag.min.css +1 -1
  84. package/dist/components/nag.min.js +1 -1
  85. package/dist/components/placeholder.css +1 -1
  86. package/dist/components/placeholder.min.css +1 -1
  87. package/dist/components/popup.css +1 -1
  88. package/dist/components/popup.js +8 -8
  89. package/dist/components/popup.min.css +1 -1
  90. package/dist/components/popup.min.js +1 -1
  91. package/dist/components/progress.css +1 -1
  92. package/dist/components/progress.js +7 -7
  93. package/dist/components/progress.min.css +1 -1
  94. package/dist/components/progress.min.js +1 -1
  95. package/dist/components/rail.css +1 -1
  96. package/dist/components/rail.min.css +1 -1
  97. package/dist/components/rating.css +1 -1
  98. package/dist/components/rating.js +1 -1
  99. package/dist/components/rating.min.css +1 -1
  100. package/dist/components/rating.min.js +1 -1
  101. package/dist/components/reset.css +1 -1
  102. package/dist/components/reset.min.css +1 -1
  103. package/dist/components/reveal.css +1 -1
  104. package/dist/components/reveal.min.css +1 -1
  105. package/dist/components/search.css +1 -1
  106. package/dist/components/search.js +7 -7
  107. package/dist/components/search.min.css +1 -1
  108. package/dist/components/search.min.js +1 -1
  109. package/dist/components/segment.css +1 -1
  110. package/dist/components/segment.min.css +1 -1
  111. package/dist/components/shape.css +1 -1
  112. package/dist/components/shape.js +2 -2
  113. package/dist/components/shape.min.css +1 -1
  114. package/dist/components/shape.min.js +1 -1
  115. package/dist/components/sidebar.css +1 -1
  116. package/dist/components/sidebar.js +2 -2
  117. package/dist/components/sidebar.min.css +1 -1
  118. package/dist/components/sidebar.min.js +1 -1
  119. package/dist/components/site.css +1 -1
  120. package/dist/components/site.js +1 -1
  121. package/dist/components/site.min.css +1 -1
  122. package/dist/components/site.min.js +1 -1
  123. package/dist/components/slider.css +1 -1
  124. package/dist/components/slider.js +5 -5
  125. package/dist/components/slider.min.css +1 -1
  126. package/dist/components/slider.min.js +2 -2
  127. package/dist/components/state.js +3 -3
  128. package/dist/components/state.min.js +1 -1
  129. package/dist/components/statistic.css +1 -1
  130. package/dist/components/statistic.min.css +1 -1
  131. package/dist/components/step.css +1 -1
  132. package/dist/components/step.min.css +1 -1
  133. package/dist/components/sticky.css +1 -1
  134. package/dist/components/sticky.js +5 -5
  135. package/dist/components/sticky.min.css +1 -1
  136. package/dist/components/sticky.min.js +1 -1
  137. package/dist/components/tab.css +1 -1
  138. package/dist/components/tab.js +10 -13
  139. package/dist/components/tab.min.css +1 -1
  140. package/dist/components/tab.min.js +2 -2
  141. package/dist/components/table.css +1 -1
  142. package/dist/components/table.min.css +1 -1
  143. package/dist/components/text.css +1 -1
  144. package/dist/components/text.min.css +1 -1
  145. package/dist/components/toast.css +1 -1
  146. package/dist/components/toast.js +4 -4
  147. package/dist/components/toast.min.css +1 -1
  148. package/dist/components/toast.min.js +1 -1
  149. package/dist/components/transition.css +1 -1
  150. package/dist/components/transition.js +5 -5
  151. package/dist/components/transition.min.css +1 -1
  152. package/dist/components/transition.min.js +1 -1
  153. package/dist/components/visibility.js +2 -2
  154. package/dist/components/visibility.min.js +1 -1
  155. package/dist/semantic.css +57 -57
  156. package/dist/semantic.js +131 -134
  157. package/dist/semantic.min.css +1 -1
  158. package/dist/semantic.min.js +2 -2
  159. package/package.json +1 -1
  160. package/src/README.md +3 -3
  161. package/src/definitions/behaviors/api.js +5 -5
  162. package/src/definitions/behaviors/form.js +10 -10
  163. package/src/definitions/behaviors/state.js +2 -2
  164. package/src/definitions/behaviors/visibility.js +1 -1
  165. package/src/definitions/collections/form.less +1 -1
  166. package/src/definitions/modules/calendar.js +6 -6
  167. package/src/definitions/modules/dimmer.js +3 -3
  168. package/src/definitions/modules/dropdown.js +28 -28
  169. package/src/definitions/modules/embed.js +1 -1
  170. package/src/definitions/modules/flyout.js +2 -2
  171. package/src/definitions/modules/modal.js +1 -1
  172. package/src/definitions/modules/nag.js +1 -1
  173. package/src/definitions/modules/popup.js +7 -7
  174. package/src/definitions/modules/progress.js +6 -6
  175. package/src/definitions/modules/search.js +6 -6
  176. package/src/definitions/modules/shape.js +1 -1
  177. package/src/definitions/modules/sidebar.js +1 -1
  178. package/src/definitions/modules/slider.js +4 -4
  179. package/src/definitions/modules/slider.less +1 -1
  180. package/src/definitions/modules/sticky.js +4 -4
  181. package/src/definitions/modules/tab.js +9 -12
  182. package/src/definitions/modules/toast.js +3 -3
  183. package/src/definitions/modules/transition.js +4 -4
  184. package/src/themes/default/modules/slider.variables +1 -1
@@ -134,7 +134,7 @@
134
134
  determine: {
135
135
  searchFields: function () {
136
136
  // this makes sure $.extend does not add specified search fields to default fields
137
- // this is the only setting which should not extend defaults
137
+ // this is the only setting that should not extend defaults
138
138
  if (parameters && parameters.searchFields !== undefined) {
139
139
  settings.searchFields = Array.isArray(parameters.searchFields)
140
140
  ? parameters.searchFields
@@ -660,7 +660,7 @@
660
660
  ? searchFields
661
661
  : settings.searchFields;
662
662
 
663
- // search fields should be array to loop correctly
663
+ // search fields should be an array to loop correctly
664
664
  if (!Array.isArray(searchFields)) {
665
665
  searchFields = [searchFields];
666
666
  }
@@ -938,7 +938,7 @@
938
938
  id: function (results) {
939
939
  module.debug('Injecting unique ids into results');
940
940
  var
941
- // since results may be object, we must use counters
941
+ // since results may be an object, we must use counters
942
942
  categoryIndex = 0,
943
943
  resultIndex = 0
944
944
  ;
@@ -1342,7 +1342,7 @@
1342
1342
  // minimum characters required to search
1343
1343
  minCharacters: 1,
1344
1344
 
1345
- // whether to select first result after searching automatically
1345
+ // whether to select the first result after searching automatically
1346
1346
  selectFirstResult: false,
1347
1347
 
1348
1348
  // API config
@@ -1370,7 +1370,7 @@
1370
1370
  // Whether search result should highlight matching strings
1371
1371
  highlightMatches: false,
1372
1372
 
1373
- // match results also if they contain diacritics of the same base character (for example searching for "a" will also match "á" or "â" or "à", etc...)
1373
+ // match results also if they contain diacritics of the same base character (for example, searching for "a" will also match "á" or "â" or "à", etc...)
1374
1374
  ignoreDiacritics: false,
1375
1375
 
1376
1376
  // whether to consider case sensitivity on local searching
@@ -1379,7 +1379,7 @@
1379
1379
  // whether to add events to prompt automatically
1380
1380
  automatic: true,
1381
1381
 
1382
- // delay before hiding menu after blur
1382
+ // delay before hiding the menu after blur
1383
1383
  hideDelay: 0,
1384
1384
 
1385
1385
  // delay before searching
@@ -767,7 +767,7 @@
767
767
  onBeforeChange: function () {},
768
768
  onChange: function () {},
769
769
 
770
- // allow animation to same side
770
+ // allow animation to the same side
771
771
  allowRepeats: false,
772
772
 
773
773
  // animation duration
@@ -389,7 +389,7 @@
389
389
  if (module.othersActive()) {
390
390
  module.debug('Other sidebars currently visible');
391
391
  if (settings.exclusive) {
392
- // if not overlay queue animation after hide
392
+ // if not overlay, queue animation after hide
393
393
  if (settings.transition !== 'overlay') {
394
394
  module.hideOthers(module.show);
395
395
 
@@ -271,7 +271,7 @@
271
271
  isHover = false;
272
272
  });
273
273
  // All touch events are invoked on the element where the touch *started*. Thus, we can bind them all
274
- // on the thumb(s) and don't need to worry about interference with other components, i.e. no dynamic binding
274
+ // on the thumb(s) and don't need to worry about interference with other components, i.e., no dynamic binding
275
275
  // and unbinding required.
276
276
  $module.find('.thumb')
277
277
  .on('touchstart' + eventNamespace, module.event.touchDown)
@@ -281,7 +281,7 @@
281
281
  ;
282
282
  },
283
283
  slidingEvents: function () {
284
- // these don't need the identifier because we only ever want one of them to be registered with document
284
+ // these don't need the identifier because we only ever want one of them to be registered with the document
285
285
  module.verbose('Binding page wide events while handle is being draged');
286
286
  $document.on('mousemove' + eventNamespace, module.event.move);
287
287
  $document.on('mouseup' + eventNamespace, module.event.up);
@@ -506,7 +506,7 @@
506
506
  },
507
507
 
508
508
  resync: function () {
509
- module.verbose('Resyncing thumb position based on value');
509
+ module.verbose('Re-syncing thumb position based on value');
510
510
  module.setup.labels();
511
511
  if (module.is.range()) {
512
512
  module.update.position(module.secondThumbVal, $secondThumb);
@@ -985,7 +985,7 @@
985
985
  if (value !== difference) {
986
986
  module.verbose('Rounding value to closest step: ' + difference);
987
987
  }
988
- // Use precision to avoid ugly Javascript floating point rounding issues
988
+ // Use precision to avoid ugly JavaScript floating point rounding issues
989
989
  // (like 35 * .01 = 0.35000000000000003)
990
990
  module.verbose('Cutting off additional decimal places');
991
991
 
@@ -106,7 +106,7 @@
106
106
  --------------- */
107
107
 
108
108
  .ui.disabled.slider@{notCheckbox} {
109
- opacity: @disabledOpactiy;
109
+ opacity: @disabledOpacity;
110
110
  }
111
111
 
112
112
  .ui.disabled.slider .inner:hover {
@@ -871,10 +871,10 @@
871
871
  // Offset to adjust scroll when attached to bottom of screen
872
872
  bottomOffset: 0,
873
873
 
874
- // will only set container height if difference between context and container is larger than this number
874
+ // will only set container height if the difference between context and container is larger than this number
875
875
  jitter: 5,
876
876
 
877
- // set width of sticky element when it is fixed to page (used to make sure 100% width is maintained if no fixed size set)
877
+ // set width of the sticky element when it is fixed to page (used to make sure 100% width is maintained if no fixed size set)
878
878
  setSize: true,
879
879
 
880
880
  // Whether to automatically observe changes with Mutation Observers
@@ -886,10 +886,10 @@
886
886
  // Called on each scroll
887
887
  onScroll: function () {},
888
888
 
889
- // Called when element is stuck to viewport
889
+ // Called when the element is stuck to viewport
890
890
  onStick: function () {},
891
891
 
892
- // Called when element is unstuck from viewport
892
+ // Called when the element is unstuck from viewport
893
893
  onUnstick: function () {},
894
894
 
895
895
  // Called when element reaches top of context
@@ -320,7 +320,7 @@
320
320
  pushStateAvailable = window.history && window.history.pushState,
321
321
  shouldIgnoreLoad = pushStateAvailable && settings.ignoreFirstLoad && firstLoad,
322
322
  remoteContent = settings.auto || $.isPlainObject(settings.apiSettings),
323
- // only add default path if not remote content
323
+ // only add the default path if not remote content
324
324
  pathArray = remoteContent && !shouldIgnoreLoad
325
325
  ? module.utilities.pathToArray(tabPath)
326
326
  : module.get.defaultPathArray(tabPath)
@@ -392,7 +392,7 @@
392
392
  $anchor = $('#' + tabPath + ', a[name="' + tabPath + '"]');
393
393
  currentPath = $anchor.closest('[data-tab]').data(metadata.tab);
394
394
  $tab = module.get.tabElement(currentPath);
395
- // if anchor exists use parent tab
395
+ // if anchor exists, use parent tab
396
396
  if ($anchor && $anchor.length > 0 && currentPath) {
397
397
  module.debug('Anchor link used, opening parent tab', $tab, $anchor);
398
398
  if (settings.onBeforeChange.call(element, currentPath) === false) {
@@ -471,9 +471,6 @@
471
471
  encodeParameters: false,
472
472
  on: 'now',
473
473
  cache: settings.alwaysRefresh,
474
- headers: {
475
- 'X-Remote': true,
476
- },
477
474
  onSuccess: function (response) {
478
475
  if (settings.cacheType === 'response') {
479
476
  module.cache.add(fullTabPath, response);
@@ -618,7 +615,7 @@
618
615
  path: function () {
619
616
  return $.address.value();
620
617
  },
621
- // adds default tabs to tab path
618
+ // adds default tabs to the tab path
622
619
  defaultPathArray: function (tabPath) {
623
620
  return module.utilities.pathToArray(module.get.defaultPath(tabPath));
624
621
  },
@@ -902,7 +899,7 @@
902
899
  verbose: false,
903
900
  performance: true,
904
901
 
905
- auto: false, // uses pjax style endpoints fetching content from same url with remote-content headers
902
+ auto: false, // uses pjax style endpoints fetching content from the same url with remote-content headers
906
903
  history: false, // use browser history
907
904
  historyType: 'hash', // #/ or html5 state
908
905
  path: false, // base path of url
@@ -916,21 +913,21 @@
916
913
  alwaysRefresh: false, // load tab content new every tab click
917
914
  cache: true, // cache the content requests to pull locally
918
915
  loadOnce: false, // Whether tab data should only be loaded once when using remote content
919
- cacheType: 'response', // Whether to cache exact response, or to html cache contents after scripts execute
920
- ignoreFirstLoad: false, // don't load remote content on first load
916
+ cacheType: 'response', // Whether to cache exact response, or to HTML cache contents after scripts execute
917
+ ignoreFirstLoad: false, // don't load remote content on the first load
921
918
 
922
919
  apiSettings: false, // settings for api call
923
920
  evaluateScripts: 'once', // whether inline scripts should be parsed (true/false/once). Once will not re-evaluate on cached content
924
- autoTabActivation: true, // whether a non existing active tab will auto activate the first available tab
921
+ autoTabActivation: true, // whether a non-existing active tab will auto activate the first available tab
925
922
 
926
923
  onFirstLoad: function (tabPath, parameterArray, historyEvent) {}, // called first time loaded
927
924
  onLoad: function (tabPath, parameterArray, historyEvent) {}, // called on every load
928
925
  onVisible: function (tabPath, parameterArray, historyEvent) {}, // called every time tab visible
929
- onRequest: function (tabPath, parameterArray, historyEvent) {}, // called ever time a tab beings loading remote content
926
+ onRequest: function (tabPath, parameterArray, historyEvent) {}, // called every time a tab beings loading remote content
930
927
  onBeforeChange: function (tabPath) {}, // called before a tab is about to be changed. Returning false will cancel the tab change
931
928
 
932
929
  templates: {
933
- determineTitle: function (tabArray) {}, // returns page title for path
930
+ determineTitle: function (tabArray) {}, // returns page title for the path
934
931
  },
935
932
 
936
933
  error: {
@@ -826,8 +826,8 @@
826
826
 
827
827
  title: '',
828
828
  message: '',
829
- displayTime: 3000, // set to zero to require manually dismissal, otherwise hides on its own
830
- minDisplayTime: 1000, // minimum displaytime in case displayTime is set to 'auto'
829
+ displayTime: 3000, // set to zero to require manual dismissal, otherwise hides on its own
830
+ minDisplayTime: 1000, // minimum display time in case displayTime is set to 'auto'
831
831
  wordsPerMinute: 120,
832
832
  showIcon: false,
833
833
  newestOnTop: false,
@@ -850,7 +850,7 @@
850
850
  showDuration: 500,
851
851
  hideMethod: 'scale',
852
852
  hideDuration: 500,
853
- closeEasing: 'easeOutCubic', // Set to empty string to stack the closed toast area immediately (old behaviour)
853
+ closeEasing: 'easeOutCubic', // Set to empty string to stack the closed toast area immediately (old behavior)
854
854
  closeDuration: 500,
855
855
  },
856
856
 
@@ -588,7 +588,7 @@
588
588
  if (shouldDetermine && $module.data(metadata.displayType) === undefined) {
589
589
  var currentDisplay = $module.css('display');
590
590
  if (currentDisplay === '' || currentDisplay === 'none') {
591
- // create fake element to determine display state
591
+ // create a fake element to determine display state
592
592
  module.can.transition(true);
593
593
  } else {
594
594
  module.save.displayType(currentDisplay);
@@ -967,7 +967,7 @@
967
967
  // event namespace
968
968
  namespace: 'transition',
969
969
 
970
- // delay between animations in group
970
+ // delay between animations in a group
971
971
  interval: 0,
972
972
 
973
973
  // whether group animations should be reversed
@@ -990,13 +990,13 @@
990
990
  // whether timeout should be used to ensure callback fires in cases animationend does not
991
991
  useFailSafe: true,
992
992
 
993
- // delay in ms for fail safe
993
+ // delay in ms for fail-safe
994
994
  failSafeDelay: 100,
995
995
 
996
996
  // whether EXACT animation can occur twice in a row
997
997
  allowRepeats: false,
998
998
 
999
- // Override final display type on visible
999
+ // Override the final display type on visible
1000
1000
  displayType: false,
1001
1001
 
1002
1002
  // animation duration
@@ -46,7 +46,7 @@
46
46
  -------------------- */
47
47
 
48
48
  /* Disabled */
49
- @disabledOpactiy: 0.5;
49
+ @disabledOpacity: 0.5;
50
50
  @disabledTrackFillColor: @background;
51
51
 
52
52
  /* -------------------