fomantic-ui 2.9.4-beta.37 → 2.9.4-beta.38

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 (160) 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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +18 -5
  35. package/dist/components/dropdown.min.css +1 -1
  36. package/dist/components/dropdown.min.js +2 -2
  37. package/dist/components/embed.css +1 -1
  38. package/dist/components/embed.js +1 -1
  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 +1 -1
  49. package/dist/components/flyout.min.css +1 -1
  50. package/dist/components/flyout.min.js +1 -1
  51. package/dist/components/form.css +1 -1
  52. package/dist/components/form.js +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  125. package/dist/components/slider.min.css +1 -1
  126. package/dist/components/slider.min.js +1 -1
  127. package/dist/components/state.js +1 -1
  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 +1 -1
  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 +1 -1
  139. package/dist/components/tab.min.css +1 -1
  140. package/dist/components/tab.min.js +1 -1
  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 +1 -1
  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 +1 -1
  151. package/dist/components/transition.min.css +1 -1
  152. package/dist/components/transition.min.js +1 -1
  153. package/dist/components/visibility.js +1 -1
  154. package/dist/components/visibility.min.js +1 -1
  155. package/dist/semantic.css +53 -53
  156. package/dist/semantic.js +43 -30
  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/definitions/modules/dropdown.js +17 -4
package/dist/semantic.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.4-beta.37+35a4548
2
+ * # Fomantic UI - 2.9.4-beta.38+18b5554
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -9,7 +9,7 @@
9
9
  *
10
10
  */
11
11
  /*!
12
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - Site
12
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - Site
13
13
  * https://github.com/fomantic/Fomantic-UI/
14
14
  *
15
15
  *
@@ -465,7 +465,7 @@
465
465
  })(jQuery, window, document);
466
466
 
467
467
  /*!
468
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - Form Validation
468
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - Form Validation
469
469
  * https://github.com/fomantic/Fomantic-UI/
470
470
  *
471
471
  *
@@ -2647,7 +2647,7 @@
2647
2647
  })(jQuery, window, document);
2648
2648
 
2649
2649
  /*!
2650
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - Accordion
2650
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - Accordion
2651
2651
  * https://github.com/fomantic/Fomantic-UI/
2652
2652
  *
2653
2653
  *
@@ -3243,7 +3243,7 @@
3243
3243
  })(jQuery, window, document);
3244
3244
 
3245
3245
  /*!
3246
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - Calendar
3246
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - Calendar
3247
3247
  * https://github.com/fomantic/Fomantic-UI/
3248
3248
  *
3249
3249
  *
@@ -5256,7 +5256,7 @@
5256
5256
  })(jQuery, window, document);
5257
5257
 
5258
5258
  /*!
5259
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - Checkbox
5259
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - Checkbox
5260
5260
  * https://github.com/fomantic/Fomantic-UI/
5261
5261
  *
5262
5262
  *
@@ -6145,7 +6145,7 @@
6145
6145
  })(jQuery, window, document);
6146
6146
 
6147
6147
  /*!
6148
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - Dimmer
6148
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - Dimmer
6149
6149
  * https://github.com/fomantic/Fomantic-UI/
6150
6150
  *
6151
6151
  *
@@ -6878,7 +6878,7 @@
6878
6878
  })(jQuery, window, document);
6879
6879
 
6880
6880
  /*!
6881
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - Dropdown
6881
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - Dropdown
6882
6882
  * https://github.com/fomantic/Fomantic-UI/
6883
6883
  *
6884
6884
  *
@@ -7672,7 +7672,7 @@
7672
7672
  }
7673
7673
  if (module.is.multiple()) {
7674
7674
  $.each(preSelected, function (index, value) {
7675
- $item.filter('[data-value="' + value + '"]')
7675
+ $item.filter('[data-' + metadata.value + '="' + value + '"]')
7676
7676
  .addClass(className.filtered)
7677
7677
  ;
7678
7678
  });
@@ -11050,6 +11050,7 @@
11050
11050
  descriptionVertical: 'descriptionVertical', // whether description should be vertical
11051
11051
  value: 'value', // actual dropdown value
11052
11052
  text: 'text', // displayed text when selected
11053
+ data: 'data', // custom data attributes
11053
11054
  type: 'type', // type of dropdown element
11054
11055
  image: 'image', // optional image path
11055
11056
  imageClass: 'imageClass', // optional individual class for image
@@ -11194,9 +11195,21 @@
11194
11195
  $.each(values, function (index, option) {
11195
11196
  var
11196
11197
  itemType = option[fields.type] || 'item',
11197
- isMenu = itemType.indexOf('menu') !== -1
11198
+ isMenu = itemType.indexOf('menu') !== -1,
11199
+ maybeData = '',
11200
+ dataObject = option[fields.data]
11198
11201
  ;
11199
-
11202
+ if (dataObject) {
11203
+ var dataKey,
11204
+ dataKeyEscaped
11205
+ ;
11206
+ for (dataKey in dataObject) {
11207
+ dataKeyEscaped = String(dataKey).replace(/\W/g, '');
11208
+ if (Object.prototype.hasOwnProperty.call(dataObject, dataKey) && ['text', 'value'].indexOf(dataKeyEscaped.toLowerCase()) === -1) {
11209
+ maybeData += ' data-' + dataKeyEscaped + '="' + deQuote(String(dataObject[dataKey])) + '"';
11210
+ }
11211
+ }
11212
+ }
11200
11213
  if (itemType === 'item' || isMenu) {
11201
11214
  var
11202
11215
  maybeText = option[fields.text]
@@ -11213,7 +11226,7 @@
11213
11226
  : '',
11214
11227
  hasDescription = escape(option[fields.description] || '', preserveHTML) !== ''
11215
11228
  ;
11216
- html += '<div class="' + deQuote(maybeActionable + maybeDisabled + maybeDescriptionVertical + (option[fields.class] || className.item)) + '" data-value="' + deQuote(option[fields.value], true) + '"' + maybeText + '>';
11229
+ html += '<div class="' + deQuote(maybeActionable + maybeDisabled + maybeDescriptionVertical + (option[fields.class] || className.item)) + '" data-value="' + deQuote(option[fields.value], true) + '"' + maybeText + maybeData + '>';
11217
11230
  if (isMenu) {
11218
11231
  html += '<i class="' + (itemType.indexOf('left') !== -1 ? 'left' : '') + ' dropdown icon"></i>';
11219
11232
  }
@@ -11286,7 +11299,7 @@
11286
11299
  })(jQuery, window, document);
11287
11300
 
11288
11301
  /*!
11289
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - Embed
11302
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - Embed
11290
11303
  * https://github.com/fomantic/Fomantic-UI/
11291
11304
  *
11292
11305
  *
@@ -11967,7 +11980,7 @@
11967
11980
  })(jQuery, window, document);
11968
11981
 
11969
11982
  /*!
11970
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - Flyout
11983
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - Flyout
11971
11984
  * https://github.com/fomantic/Fomantic-UI/
11972
11985
  *
11973
11986
  *
@@ -13519,7 +13532,7 @@
13519
13532
  })(jQuery, window, document);
13520
13533
 
13521
13534
  /*!
13522
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - Modal
13535
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - Modal
13523
13536
  * https://github.com/fomantic/Fomantic-UI/
13524
13537
  *
13525
13538
  *
@@ -15157,7 +15170,7 @@
15157
15170
  })(jQuery, window, document);
15158
15171
 
15159
15172
  /*!
15160
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - Nag
15173
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - Nag
15161
15174
  * https://github.com/fomantic/Fomantic-UI/
15162
15175
  *
15163
15176
  *
@@ -15724,7 +15737,7 @@
15724
15737
  })(jQuery, window, document);
15725
15738
 
15726
15739
  /*!
15727
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - Popup
15740
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - Popup
15728
15741
  * https://github.com/fomantic/Fomantic-UI/
15729
15742
  *
15730
15743
  *
@@ -17286,7 +17299,7 @@
17286
17299
  })(jQuery, window, document);
17287
17300
 
17288
17301
  /*!
17289
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - Progress
17302
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - Progress
17290
17303
  * https://github.com/fomantic/Fomantic-UI/
17291
17304
  *
17292
17305
  *
@@ -18266,7 +18279,7 @@
18266
18279
  })(jQuery, window, document);
18267
18280
 
18268
18281
  /*!
18269
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - Slider
18282
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - Slider
18270
18283
  * https://github.com/fomantic/Fomantic-UI/
18271
18284
  *
18272
18285
  *
@@ -19717,7 +19730,7 @@
19717
19730
  })(jQuery, window, document);
19718
19731
 
19719
19732
  /*!
19720
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - Rating
19733
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - Rating
19721
19734
  * https://github.com/fomantic/Fomantic-UI/
19722
19735
  *
19723
19736
  *
@@ -20258,7 +20271,7 @@
20258
20271
  })(jQuery, window, document);
20259
20272
 
20260
20273
  /*!
20261
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - Search
20274
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - Search
20262
20275
  * https://github.com/fomantic/Fomantic-UI/
20263
20276
  *
20264
20277
  *
@@ -21888,7 +21901,7 @@
21888
21901
  })(jQuery, window, document);
21889
21902
 
21890
21903
  /*!
21891
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - Shape
21904
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - Shape
21892
21905
  * https://github.com/fomantic/Fomantic-UI/
21893
21906
  *
21894
21907
  *
@@ -22686,7 +22699,7 @@
22686
22699
  })(jQuery, window, document);
22687
22700
 
22688
22701
  /*!
22689
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - Sidebar
22702
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - Sidebar
22690
22703
  * https://github.com/fomantic/Fomantic-UI/
22691
22704
  *
22692
22705
  *
@@ -23741,7 +23754,7 @@
23741
23754
  })(jQuery, window, document);
23742
23755
 
23743
23756
  /*!
23744
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - Sticky
23757
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - Sticky
23745
23758
  * https://github.com/fomantic/Fomantic-UI/
23746
23759
  *
23747
23760
  *
@@ -24659,7 +24672,7 @@
24659
24672
  })(jQuery, window, document);
24660
24673
 
24661
24674
  /*!
24662
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - Tab
24675
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - Tab
24663
24676
  * https://github.com/fomantic/Fomantic-UI/
24664
24677
  *
24665
24678
  *
@@ -25627,7 +25640,7 @@
25627
25640
  })(jQuery, window, document);
25628
25641
 
25629
25642
  /*!
25630
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - Toast
25643
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - Toast
25631
25644
  * https://github.com/fomantic/Fomantic-UI/
25632
25645
  *
25633
25646
  *
@@ -26590,7 +26603,7 @@
26590
26603
  })(jQuery, window, document);
26591
26604
 
26592
26605
  /*!
26593
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - Transition
26606
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - Transition
26594
26607
  * https://github.com/fomantic/Fomantic-UI/
26595
26608
  *
26596
26609
  *
@@ -27625,7 +27638,7 @@
27625
27638
  })(jQuery, window, document);
27626
27639
 
27627
27640
  /*!
27628
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - API
27641
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - API
27629
27642
  * https://github.com/fomantic/Fomantic-UI/
27630
27643
  *
27631
27644
  *
@@ -28851,7 +28864,7 @@
28851
28864
  })(jQuery, window, document);
28852
28865
 
28853
28866
  /*!
28854
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - State
28867
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - State
28855
28868
  * https://github.com/fomantic/Fomantic-UI/
28856
28869
  *
28857
28870
  *
@@ -29549,7 +29562,7 @@
29549
29562
  })(jQuery, window, document);
29550
29563
 
29551
29564
  /*!
29552
- * # Fomantic-UI 2.9.4-beta.37+35a4548 - Visibility
29565
+ * # Fomantic-UI 2.9.4-beta.38+18b5554 - Visibility
29553
29566
  * https://github.com/fomantic/Fomantic-UI/
29554
29567
  *
29555
29568
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.4-beta.37+35a4548
2
+ * # Fomantic UI - 2.9.4-beta.38+18b5554
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *