fomantic-ui 2.10.0-beta.62 → 2.10.0-beta.64

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 (209) hide show
  1. package/.eslintrc.js +0 -1
  2. package/changelog-setup.js +10 -10
  3. package/dist/components/accordion.css +1 -1
  4. package/dist/components/accordion.js +40 -41
  5. package/dist/components/accordion.min.css +1 -1
  6. package/dist/components/accordion.min.js +2 -2
  7. package/dist/components/ad.css +1 -1
  8. package/dist/components/ad.min.css +1 -1
  9. package/dist/components/api.js +57 -61
  10. package/dist/components/api.min.js +2 -2
  11. package/dist/components/breadcrumb.css +1 -1
  12. package/dist/components/breadcrumb.min.css +1 -1
  13. package/dist/components/button.css +1 -1
  14. package/dist/components/button.min.css +1 -1
  15. package/dist/components/calendar.css +1 -1
  16. package/dist/components/calendar.js +186 -187
  17. package/dist/components/calendar.min.css +1 -1
  18. package/dist/components/calendar.min.js +2 -2
  19. package/dist/components/card.css +1 -1
  20. package/dist/components/card.min.css +1 -1
  21. package/dist/components/checkbox.css +1 -1
  22. package/dist/components/checkbox.js +29 -30
  23. package/dist/components/checkbox.min.css +1 -1
  24. package/dist/components/checkbox.min.js +2 -2
  25. package/dist/components/comment.css +1 -1
  26. package/dist/components/comment.min.css +1 -1
  27. package/dist/components/container.css +1 -1
  28. package/dist/components/container.min.css +1 -1
  29. package/dist/components/dimmer.css +1 -1
  30. package/dist/components/dimmer.js +22 -23
  31. package/dist/components/dimmer.min.css +1 -1
  32. package/dist/components/dimmer.min.js +2 -2
  33. package/dist/components/divider.css +1 -1
  34. package/dist/components/divider.min.css +1 -1
  35. package/dist/components/dropdown.css +1 -1
  36. package/dist/components/dropdown.js +293 -337
  37. package/dist/components/dropdown.min.css +1 -1
  38. package/dist/components/dropdown.min.js +2 -2
  39. package/dist/components/embed.css +1 -1
  40. package/dist/components/embed.js +33 -35
  41. package/dist/components/embed.min.css +1 -1
  42. package/dist/components/embed.min.js +2 -2
  43. package/dist/components/emoji.css +1 -1
  44. package/dist/components/emoji.min.css +1 -1
  45. package/dist/components/feed.css +1 -1
  46. package/dist/components/feed.min.css +1 -1
  47. package/dist/components/flag.css +1 -1
  48. package/dist/components/flag.min.css +1 -1
  49. package/dist/components/flyout.css +1 -1
  50. package/dist/components/flyout.js +74 -81
  51. package/dist/components/flyout.min.css +1 -1
  52. package/dist/components/flyout.min.js +2 -2
  53. package/dist/components/form.css +1 -1
  54. package/dist/components/form.js +141 -146
  55. package/dist/components/form.min.css +1 -1
  56. package/dist/components/form.min.js +2 -2
  57. package/dist/components/grid.css +1 -1
  58. package/dist/components/grid.min.css +1 -1
  59. package/dist/components/header.css +1 -1
  60. package/dist/components/header.min.css +1 -1
  61. package/dist/components/icon.css +1 -1
  62. package/dist/components/icon.min.css +1 -1
  63. package/dist/components/image.css +1 -1
  64. package/dist/components/image.min.css +1 -1
  65. package/dist/components/input.css +1 -1
  66. package/dist/components/input.min.css +1 -1
  67. package/dist/components/item.css +1 -1
  68. package/dist/components/item.min.css +1 -1
  69. package/dist/components/label.css +1 -1
  70. package/dist/components/label.min.css +1 -1
  71. package/dist/components/list.css +1 -1
  72. package/dist/components/list.min.css +1 -1
  73. package/dist/components/loader.css +1 -1
  74. package/dist/components/loader.min.css +1 -1
  75. package/dist/components/menu.css +1 -1
  76. package/dist/components/menu.min.css +1 -1
  77. package/dist/components/message.css +1 -1
  78. package/dist/components/message.min.css +1 -1
  79. package/dist/components/modal.css +1 -1
  80. package/dist/components/modal.js +80 -81
  81. package/dist/components/modal.min.css +1 -1
  82. package/dist/components/modal.min.js +2 -2
  83. package/dist/components/nag.css +1 -1
  84. package/dist/components/nag.js +27 -28
  85. package/dist/components/nag.min.css +1 -1
  86. package/dist/components/nag.min.js +2 -2
  87. package/dist/components/placeholder.css +1 -1
  88. package/dist/components/placeholder.min.css +1 -1
  89. package/dist/components/popup.css +1 -1
  90. package/dist/components/popup.js +62 -72
  91. package/dist/components/popup.min.css +1 -1
  92. package/dist/components/popup.min.js +2 -2
  93. package/dist/components/progress.css +1 -1
  94. package/dist/components/progress.js +51 -55
  95. package/dist/components/progress.min.css +1 -1
  96. package/dist/components/progress.min.js +2 -2
  97. package/dist/components/rail.css +1 -1
  98. package/dist/components/rail.min.css +1 -1
  99. package/dist/components/rating.css +1 -1
  100. package/dist/components/rating.js +33 -34
  101. package/dist/components/rating.min.css +1 -1
  102. package/dist/components/rating.min.js +2 -2
  103. package/dist/components/reset.css +1 -1
  104. package/dist/components/reset.min.css +1 -1
  105. package/dist/components/reveal.css +1 -1
  106. package/dist/components/reveal.min.css +1 -1
  107. package/dist/components/search.css +1 -1
  108. package/dist/components/search.js +96 -109
  109. package/dist/components/search.min.css +1 -1
  110. package/dist/components/search.min.js +2 -2
  111. package/dist/components/segment.css +1 -1
  112. package/dist/components/segment.min.css +1 -1
  113. package/dist/components/shape.css +1 -1
  114. package/dist/components/shape.js +44 -45
  115. package/dist/components/shape.min.css +1 -1
  116. package/dist/components/shape.min.js +2 -2
  117. package/dist/components/sidebar.css +1 -1
  118. package/dist/components/sidebar.js +56 -64
  119. package/dist/components/sidebar.min.css +1 -1
  120. package/dist/components/sidebar.min.js +2 -2
  121. package/dist/components/site.css +1 -1
  122. package/dist/components/site.js +16 -17
  123. package/dist/components/site.min.css +1 -1
  124. package/dist/components/site.min.js +2 -2
  125. package/dist/components/slider.css +1 -1
  126. package/dist/components/slider.js +143 -148
  127. package/dist/components/slider.min.css +1 -1
  128. package/dist/components/slider.min.js +2 -2
  129. package/dist/components/state.js +24 -25
  130. package/dist/components/state.min.js +2 -2
  131. package/dist/components/statistic.css +1 -1
  132. package/dist/components/statistic.min.css +1 -1
  133. package/dist/components/step.css +1 -1
  134. package/dist/components/step.min.css +1 -1
  135. package/dist/components/sticky.css +1 -1
  136. package/dist/components/sticky.js +42 -43
  137. package/dist/components/sticky.min.css +1 -1
  138. package/dist/components/sticky.min.js +2 -2
  139. package/dist/components/tab.css +1 -1
  140. package/dist/components/tab.js +57 -66
  141. package/dist/components/tab.min.css +1 -1
  142. package/dist/components/tab.min.js +2 -2
  143. package/dist/components/table.css +1 -1
  144. package/dist/components/table.min.css +1 -1
  145. package/dist/components/text.css +1 -1
  146. package/dist/components/text.min.css +1 -1
  147. package/dist/components/toast.css +1 -1
  148. package/dist/components/toast.js +32 -33
  149. package/dist/components/toast.min.css +1 -1
  150. package/dist/components/toast.min.js +2 -2
  151. package/dist/components/transition.css +1 -1
  152. package/dist/components/transition.js +38 -45
  153. package/dist/components/transition.min.css +1 -1
  154. package/dist/components/transition.min.js +2 -2
  155. package/dist/components/visibility.js +76 -77
  156. package/dist/components/visibility.min.js +2 -2
  157. package/dist/semantic.css +53 -53
  158. package/dist/semantic.js +1753 -1884
  159. package/dist/semantic.min.css +1 -1
  160. package/dist/semantic.min.js +2 -2
  161. package/package.json +1 -1
  162. package/scripts/nightly-version.js +3 -3
  163. package/src/definitions/behaviors/api.js +56 -60
  164. package/src/definitions/behaviors/form.js +140 -145
  165. package/src/definitions/behaviors/state.js +23 -24
  166. package/src/definitions/behaviors/visibility.js +75 -76
  167. package/src/definitions/globals/site.js +15 -16
  168. package/src/definitions/modules/accordion.js +39 -40
  169. package/src/definitions/modules/calendar.js +185 -186
  170. package/src/definitions/modules/checkbox.js +28 -29
  171. package/src/definitions/modules/dimmer.js +21 -22
  172. package/src/definitions/modules/dropdown.js +292 -336
  173. package/src/definitions/modules/embed.js +32 -34
  174. package/src/definitions/modules/flyout.js +73 -80
  175. package/src/definitions/modules/modal.js +79 -80
  176. package/src/definitions/modules/nag.js +26 -27
  177. package/src/definitions/modules/popup.js +61 -71
  178. package/src/definitions/modules/progress.js +50 -54
  179. package/src/definitions/modules/rating.js +32 -33
  180. package/src/definitions/modules/search.js +95 -108
  181. package/src/definitions/modules/shape.js +43 -44
  182. package/src/definitions/modules/sidebar.js +55 -63
  183. package/src/definitions/modules/slider.js +142 -147
  184. package/src/definitions/modules/sticky.js +41 -42
  185. package/src/definitions/modules/tab.js +56 -65
  186. package/src/definitions/modules/toast.js +31 -32
  187. package/src/definitions/modules/transition.js +37 -44
  188. package/tasks/admin/components/create.js +11 -11
  189. package/tasks/admin/components/init.js +11 -12
  190. package/tasks/admin/components/update.js +19 -20
  191. package/tasks/admin/distributions/create.js +24 -36
  192. package/tasks/admin/distributions/init.js +11 -12
  193. package/tasks/admin/distributions/update.js +18 -19
  194. package/tasks/admin/register.js +7 -7
  195. package/tasks/build/assets.js +1 -1
  196. package/tasks/build/css.js +1 -1
  197. package/tasks/build/javascript.js +1 -1
  198. package/tasks/config/admin/github.js +1 -1
  199. package/tasks/config/admin/templates/css-package.js +1 -1
  200. package/tasks/config/admin/templates/less-package.js +1 -1
  201. package/tasks/config/project/config.js +6 -6
  202. package/tasks/config/project/install.js +12 -12
  203. package/tasks/config/project/release.js +5 -11
  204. package/tasks/config/tasks.js +5 -5
  205. package/tasks/config/user.js +1 -4
  206. package/tasks/docs/metadata.js +11 -12
  207. package/tasks/install.js +9 -9
  208. package/test/meteor/assets.js +1 -1
  209. package/test/modules/module.spec.js +18 -18
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.62+40c7533 - Rating
2
+ * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Rating
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.62+40c7533
2
+ * # Fomantic UI - 2.10.0-beta.64+bcb9c73
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -8,4 +8,4 @@
8
8
  * https://opensource.org/licenses/MIT
9
9
  *
10
10
  */
11
- !function(R,e){"use strict";e=void 0!==e&&e.Math===Math?e:globalThis,R.fn.rating=function(...e){let f=R(this),p=Date.now(),b=[],h=e[0],y="string"==typeof h,C=e.slice(1),x;return f.each(function(){let a=R.isPlainObject(h)?R.extend(!0,{},R.fn.rating.settings,h):R.extend({},R.fn.rating.settings);var e=a.namespace;let o=a.className,l=a.error,t=a.metadata,n=a.selector,r=a.cssVars,i="."+e,s="module-"+e,c=this,d=R(this).data(s),u=R(this),g=u.find(n.icon),m,v;v={initialize:function(){v.verbose("Initializing rating module",a),0===g.length&&v.setup.layout(),a.interactive&&!v.is.disabled()?v.enable():v.disable(),v.set.initialLoad(),v.set.rating(v.get.initialRating()),v.remove.initialLoad(),v.instantiate()},instantiate:function(){v.verbose("Instantiating module",a),d=v,u.data(s,v)},destroy:function(){v.verbose("Destroying previous instance",d),v.remove.events(),u.removeData(s)},refresh:function(){g=u.find(n.icon)},setup:{layout:function(){var e=v.get.maxRating(),t=v.get.icon(),e=R.fn.rating.settings.templates.icon(e,t);v.debug("Generating icon html dynamically"),u.html(e),v.refresh()}},event:{mouseenter:function(){let e=R(this);e.nextAll().removeClass(o.selected),u.addClass(o.selected),e.addClass(o.selected).prevAll().addClass(o.selected)},mouseleave:function(){u.removeClass(o.selected),g.removeClass(o.selected)},click:function(){var e=R(this),t=v.get.rating(),e=g.index(e)+1;("auto"===a.clearable?1===g.length:a.clearable)&&t===e?v.clearRating():v.set.rating(e)}},clearRating:function(){v.debug("Clearing current rating"),v.set.rating(0)},bind:{events:function(){v.verbose("Binding events"),u.on("mouseenter"+i,n.icon,v.event.mouseenter).on("mouseleave"+i,n.icon,v.event.mouseleave).on("click"+i,n.icon,v.event.click)}},remove:{events:function(){v.verbose("Removing events"),u.off(i)},initialLoad:function(){m=!1}},enable:function(){v.debug("Setting rating to interactive mode"),v.bind.events(),u.removeClass(o.disabled)},disable:function(){v.debug("Setting rating to read-only mode"),v.remove.events(),u.addClass(o.disabled)},is:{initialLoad:function(){return m},disabled:function(){return u.hasClass(o.disabled)}},get:{icon:function(){var e=u.data(t.icon);return e&&u.removeData(t.icon),e||a.icon},initialRating:function(){return void 0!==u.data(t.rating)?(u.removeData(t.rating),u.data(t.rating)):a.initialRating},maxRating:function(){return void 0!==u.data(t.maxRating)?(u.removeData(t.maxRating),u.data(t.maxRating)):a.maxRating},rating:function(){var e=g.filter("."+o.active).length;return v.verbose("Current rating retrieved",e),e}},set:{rating:function(e){var t=Math.floor(Math.max(e-1,0));let n=g.eq(t),i=e<=1?n:n.next();t=e%1*100;u.removeClass(o.selected),g.removeClass(o.selected).removeClass(o.active).removeClass(o.partiallyActive),0<e&&(v.verbose("Setting current rating to",e),n.prevAll().addBack().addClass(o.active),n.next()&&e%1!=0&&(i.addClass(o.partiallyActive).addClass(o.active),i.css(r.filledCustomPropName,t+"%"),"transparent"===i.css("backgroundColor")&&i.removeClass(o.partiallyActive).removeClass(o.active))),v.is.initialLoad()||a.onRate.call(c,e)},initialLoad:function(){m=!0}},setting:function(e,t){if(v.debug("Changing setting",e,t),R.isPlainObject(e))R.extend(!0,a,e);else{if(void 0===t)return a[e];R.isPlainObject(a[e])?R.extend(!0,a[e],t):a[e]=t}},internal:function(e,t){if(R.isPlainObject(e))R.extend(!0,v,e);else{if(void 0===t)return v[e];v[e]=t}},debug:function(...e){!a.silent&&a.debug&&(a.performance?v.performance.log(e):(v.debug=Function.prototype.bind.call(console.info,console,a.name+":"),v.debug.apply(console,e)))},verbose:function(...e){!a.silent&&a.verbose&&a.debug&&(a.performance?v.performance.log(e):(v.verbose=Function.prototype.bind.call(console.info,console,a.name+":"),v.verbose.apply(console,e)))},error:function(...e){a.silent||(v.error=Function.prototype.bind.call(console.error,console,a.name+":"),v.error.apply(console,e))},performance:{log:function(e){var t,n;a.performance&&(n=(t=Date.now())-(p||t),p=t,b.push({Name:e[0],Arguments:e.slice(1),Element:c,"Execution Time":n})),clearTimeout(v.performance.timer),v.performance.timer=setTimeout(function(){v.performance.display()},500)},display:function(){let e=a.name+":",n=0;p=!1,clearTimeout(v.performance.timer),R.each(b,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",1<f.length&&(e+=" ("+f.length+")"),0<b.length&&(console.groupCollapsed(e),console.table(b),console.groupEnd()),b=[]}},invoke:function(i,e=C,t=c){let a=d,o,r,n;var s;return"string"==typeof i&&void 0!==a&&(i=i.split(/[ .]/),o=i.length-1,R.each(i,function(e,t){var n=e!==o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(R.isPlainObject(a[n])&&e!==o)a=a[n];else{if(void 0!==a[n])return r=a[n],!1;{if(!R.isPlainObject(a[t])||e===o)return void 0!==a[t]?r=a[t]:v.error(l.method,i),!1;a=a[t]}}})),"function"==typeof(s=r)&&"number"!=typeof s.nodeType?n=r.apply(t,e):void 0!==r&&(n=r),Array.isArray(x)?x.push(n):void 0!==x?x=[x,n]:void 0!==n&&(x=n),r}},y?(void 0===d&&v.initialize(),v.invoke(h)):(void 0!==d&&d.invoke("destroy"),v.initialize())}),void 0!==x?x:this},R.fn.rating.settings={name:"Rating",namespace:"rating",icon:"star",silent:!1,debug:!1,verbose:!1,performance:!0,initialRating:0,interactive:!0,maxRating:4,clearable:"auto",fireOnInit:!1,onRate:function(e){},error:{method:"The method you called is not defined"},metadata:{rating:"rating",maxRating:"maxRating",icon:"icon"},className:{active:"active",disabled:"disabled",selected:"selected",loading:"loading",partiallyActive:"partial"},cssVars:{filledCustomPropName:"--full"},selector:{icon:".icon"},templates:{escape:function(e){const t={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"};return String(e).replace(/["&'<>]/g,e=>t[e])},icon:function(e,t){let n=1,i="",a=R.fn.rating.settings.templates.escape;for(;n<=e;)i+='<i class="'+a(t)+' icon"></i>',n++;return i}}}}(jQuery,window,document);
11
+ !function(R,e){"use strict";e=void 0!==e&&e.Math===Math?e:globalThis,R.fn.rating=function(...e){const f=R(this);let p=Date.now(),b=[];const h=e[0],y="string"==typeof h,C=e.slice(1);let x;return f.each(function(){const a=R.isPlainObject(h)?R.extend(!0,{},R.fn.rating.settings,h):R.extend({},R.fn.rating.settings);var e=a.namespace;const o=a.className,l=a.error,t=a.metadata,n=a.selector,r=a.cssVars,i="."+e,s="module-"+e,c=this;let d=R(this).data(s);const u=R(this);let g=u.find(n.icon),m;const v={initialize:function(){v.verbose("Initializing rating module",a),0===g.length&&v.setup.layout(),a.interactive&&!v.is.disabled()?v.enable():v.disable(),v.set.initialLoad(),v.set.rating(v.get.initialRating()),v.remove.initialLoad(),v.instantiate()},instantiate:function(){v.verbose("Instantiating module",a),d=v,u.data(s,v)},destroy:function(){v.verbose("Destroying previous instance",d),v.remove.events(),u.removeData(s)},refresh:function(){g=u.find(n.icon)},setup:{layout:function(){var e=v.get.maxRating(),t=v.get.icon(),e=R.fn.rating.settings.templates.icon(e,t);v.debug("Generating icon html dynamically"),u.html(e),v.refresh()}},event:{mouseenter:function(){const e=R(this);e.nextAll().removeClass(o.selected),u.addClass(o.selected),e.addClass(o.selected).prevAll().addClass(o.selected)},mouseleave:function(){u.removeClass(o.selected),g.removeClass(o.selected)},click:function(){var e=R(this),t=v.get.rating(),e=g.index(e)+1;("auto"===a.clearable?1===g.length:a.clearable)&&t===e?v.clearRating():v.set.rating(e)}},clearRating:function(){v.debug("Clearing current rating"),v.set.rating(0)},bind:{events:function(){v.verbose("Binding events"),u.on("mouseenter"+i,n.icon,v.event.mouseenter).on("mouseleave"+i,n.icon,v.event.mouseleave).on("click"+i,n.icon,v.event.click)}},remove:{events:function(){v.verbose("Removing events"),u.off(i)},initialLoad:function(){m=!1}},enable:function(){v.debug("Setting rating to interactive mode"),v.bind.events(),u.removeClass(o.disabled)},disable:function(){v.debug("Setting rating to read-only mode"),v.remove.events(),u.addClass(o.disabled)},is:{initialLoad:function(){return m},disabled:function(){return u.hasClass(o.disabled)}},get:{icon:function(){var e=u.data(t.icon);return e&&u.removeData(t.icon),e||a.icon},initialRating:function(){return void 0!==u.data(t.rating)?(u.removeData(t.rating),u.data(t.rating)):a.initialRating},maxRating:function(){return void 0!==u.data(t.maxRating)?(u.removeData(t.maxRating),u.data(t.maxRating)):a.maxRating},rating:function(){var e=g.filter("."+o.active).length;return v.verbose("Current rating retrieved",e),e}},set:{rating:function(e){var t=Math.floor(Math.max(e-1,0));const n=g.eq(t),i=e<=1?n:n.next();t=e%1*100;u.removeClass(o.selected),g.removeClass(o.selected).removeClass(o.active).removeClass(o.partiallyActive),0<e&&(v.verbose("Setting current rating to",e),n.prevAll().addBack().addClass(o.active),n.next()&&e%1!=0&&(i.addClass(o.partiallyActive).addClass(o.active),i.css(r.filledCustomPropName,t+"%"),"transparent"===i.css("backgroundColor")&&i.removeClass(o.partiallyActive).removeClass(o.active))),v.is.initialLoad()||a.onRate.call(c,e)},initialLoad:function(){m=!0}},setting:function(e,t){if(v.debug("Changing setting",e,t),R.isPlainObject(e))R.extend(!0,a,e);else{if(void 0===t)return a[e];R.isPlainObject(a[e])?R.extend(!0,a[e],t):a[e]=t}},internal:function(e,t){if(R.isPlainObject(e))R.extend(!0,v,e);else{if(void 0===t)return v[e];v[e]=t}},debug:function(...e){!a.silent&&a.debug&&(a.performance?v.performance.log(e):(v.debug=Function.prototype.bind.call(console.info,console,a.name+":"),v.debug.apply(console,e)))},verbose:function(...e){!a.silent&&a.verbose&&a.debug&&(a.performance?v.performance.log(e):(v.verbose=Function.prototype.bind.call(console.info,console,a.name+":"),v.verbose.apply(console,e)))},error:function(...e){a.silent||(v.error=Function.prototype.bind.call(console.error,console,a.name+":"),v.error.apply(console,e))},performance:{log:function(e){var t,n;a.performance&&(n=(t=Date.now())-(p||t),p=t,b.push({Name:e[0],Arguments:e.slice(1),Element:c,"Execution Time":n})),clearTimeout(v.performance.timer),v.performance.timer=setTimeout(function(){v.performance.display()},500)},display:function(){let e=a.name+":",n=0;p=!1,clearTimeout(v.performance.timer),R.each(b,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",1<f.length&&(e+=" ("+f.length+")"),0<b.length&&(console.groupCollapsed(e),console.table(b),console.groupEnd()),b=[]}},invoke:function(i,e=C,t=c){let a=d,o,r,n;var s;return"string"==typeof i&&void 0!==a&&(i=i.split(/[ .]/),o=i.length-1,R.each(i,function(e,t){var n=e!==o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(R.isPlainObject(a[n])&&e!==o)a=a[n];else{if(void 0!==a[n])return r=a[n],!1;{if(!R.isPlainObject(a[t])||e===o)return void 0!==a[t]?r=a[t]:v.error(l.method,i),!1;a=a[t]}}})),"function"==typeof(s=r)&&"number"!=typeof s.nodeType?n=r.apply(t,e):void 0!==r&&(n=r),Array.isArray(x)?x.push(n):void 0!==x?x=[x,n]:void 0!==n&&(x=n),r}};y?(void 0===d&&v.initialize(),v.invoke(h)):(void 0!==d&&d.invoke("destroy"),v.initialize())}),void 0!==x?x:this},R.fn.rating.settings={name:"Rating",namespace:"rating",icon:"star",silent:!1,debug:!1,verbose:!1,performance:!0,initialRating:0,interactive:!0,maxRating:4,clearable:"auto",fireOnInit:!1,onRate:function(e){},error:{method:"The method you called is not defined"},metadata:{rating:"rating",maxRating:"maxRating",icon:"icon"},className:{active:"active",disabled:"disabled",selected:"selected",loading:"loading",partiallyActive:"partial"},cssVars:{filledCustomPropName:"--full"},selector:{icon:".icon"},templates:{escape:function(e){const t={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"};return String(e).replace(/["&'<>]/g,e=>t[e])},icon:function(e,t){let n=1,i="";const a=R.fn.rating.settings.templates.escape;for(;n<=e;)i+='<i class="'+a(t)+' icon"></i>',n++;return i}}}}(jQuery,window,document);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.62+40c7533 - Reset
2
+ * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Reset
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.62+40c7533 - Reset
2
+ * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Reset
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.62+40c7533 - Reveal
2
+ * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Reveal
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.62+40c7533 - Reveal
2
+ * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Reveal
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.62+40c7533 - Search
2
+ * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Search
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.62+40c7533 - Search
2
+ * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Search
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -20,47 +20,45 @@
20
20
  : globalThis;
21
21
 
22
22
  $.fn.search = function (...args) {
23
- let $allModules = $(this);
23
+ const $allModules = $(this);
24
24
 
25
25
  let time = Date.now();
26
26
  let performance = [];
27
27
 
28
- let parameters = args[0];
29
- let methodInvoked = typeof parameters === 'string';
30
- let queryArguments = args.slice(1);
28
+ const parameters = args[0];
29
+ const methodInvoked = typeof parameters === 'string';
30
+ const queryArguments = args.slice(1);
31
31
  let returnedValue;
32
32
  $allModules.each(function () {
33
- let settings = $.isPlainObject(parameters)
33
+ const settings = $.isPlainObject(parameters)
34
34
  ? $.extend(true, {}, $.fn.search.settings, parameters)
35
35
  : $.extend({}, $.fn.search.settings);
36
36
 
37
- let className = settings.className;
38
- let metadata = settings.metadata;
39
- let regExp = settings.regExp;
40
- let fields = settings.fields;
41
- let selector = settings.selector;
42
- let error = settings.error;
43
- let namespace = settings.namespace;
37
+ const className = settings.className;
38
+ const metadata = settings.metadata;
39
+ const regExp = settings.regExp;
40
+ const fields = settings.fields;
41
+ const selector = settings.selector;
42
+ const error = settings.error;
43
+ const namespace = settings.namespace;
44
44
 
45
- let eventNamespace = '.' + namespace;
46
- let moduleNamespace = namespace + '-module';
45
+ const eventNamespace = '.' + namespace;
46
+ const moduleNamespace = namespace + '-module';
47
47
 
48
- let $module = $(this);
48
+ const $module = $(this);
49
49
  let $prompt = $module.find(selector.prompt);
50
50
  let $searchButton = $module.find(selector.searchButton);
51
51
  let $results = $module.find(selector.results);
52
52
  let $result = $module.find(selector.result);
53
53
  let $category = $module.find(selector.category);
54
54
 
55
- let element = this;
55
+ const element = this;
56
56
  let instance = $module.data(moduleNamespace);
57
57
 
58
58
  let disabledBubbled = false;
59
59
  let resultsDismissed = false;
60
60
 
61
- let module;
62
-
63
- module = {
61
+ const module = {
64
62
 
65
63
  initialize: function () {
66
64
  module.verbose('Initializing module');
@@ -158,8 +156,8 @@
158
156
  }
159
157
  },
160
158
  blur: function (event) {
161
- let pageLostFocus = document.activeElement === this;
162
- let callback = function () {
159
+ const pageLostFocus = document.activeElement === this;
160
+ const callback = function () {
163
161
  module.cancel.query();
164
162
  module.remove.focus();
165
163
  module.timer = setTimeout(function () {
@@ -204,18 +202,18 @@
204
202
  },
205
203
  click: function (event) {
206
204
  module.debug('Search result selected');
207
- let $result = $(this);
208
- let $title = $result.find(selector.title).eq(0);
209
- let $link = $result.is('a[href]') ? $result : $();
210
- let href = $link.attr('href') || false;
211
- let target = $link.attr('target') || false;
205
+ const $result = $(this);
206
+ const $title = $result.find(selector.title).eq(0);
207
+ const $link = $result.is('a[href]') ? $result : $();
208
+ const href = $link.attr('href') || false;
209
+ const target = $link.attr('target') || false;
212
210
  // title is used for result lookup
213
- let value = $title.length > 0
211
+ const value = $title.length > 0
214
212
  ? $title.text()
215
213
  : false;
216
- let results = module.get.results();
217
- let result = $result.data(metadata.result) || module.get.result(value, results);
218
- let oldValue = module.get.value();
214
+ const results = module.get.results();
215
+ const result = $result.data(metadata.result) || module.get.result(value, results);
216
+ const oldValue = module.get.value();
219
217
  if (isFunction(settings.onSelect) && settings.onSelect.call(element, result, results) === false) {
220
218
  module.debug('Custom onSelect callback cancelled default select action');
221
219
  disabledBubbled = true;
@@ -239,18 +237,14 @@
239
237
  },
240
238
  },
241
239
  ensureVisible: function ($el) {
242
- let elTop;
243
- let elBottom;
244
- let resultsScrollTop;
245
- let resultsHeight;
246
240
  if ($el.length === 0) {
247
241
  return;
248
242
  }
249
- elTop = $el.position().top;
250
- elBottom = elTop + $el.outerHeight(true);
243
+ const elTop = $el.position().top;
244
+ const elBottom = elTop + $el.outerHeight(true);
251
245
 
252
- resultsScrollTop = $results.scrollTop();
253
- resultsHeight = $results.height();
246
+ const resultsScrollTop = $results.scrollTop();
247
+ const resultsHeight = $results.height();
254
248
 
255
249
  if (elTop < 0) {
256
250
  $results.scrollTop(resultsScrollTop + elTop);
@@ -260,15 +254,15 @@
260
254
  },
261
255
  handleKeyboard: function (event) {
262
256
  // force selector refresh
263
- let $result = $module.find(selector.result);
264
- let $category = $module.find(selector.category);
265
- let $activeResult = $result.filter('.' + className.active);
266
- let currentIndex = $result.index($activeResult);
267
- let resultSize = $result.length;
268
- let hasActiveResult = $activeResult.length > 0;
269
-
270
- let keyCode = event.which;
271
- let keys = {
257
+ const $result = $module.find(selector.result);
258
+ const $category = $module.find(selector.category);
259
+ const $activeResult = $result.filter('.' + className.active);
260
+ const currentIndex = $result.index($activeResult);
261
+ const resultSize = $result.length;
262
+ const hasActiveResult = $activeResult.length > 0;
263
+
264
+ const keyCode = event.which;
265
+ const keys = {
272
266
  backspace: 8,
273
267
  enter: 13,
274
268
  escape: 27,
@@ -337,7 +331,7 @@
337
331
 
338
332
  setup: {
339
333
  api: function (searchTerm, callback) {
340
- let apiSettings = {
334
+ const apiSettings = {
341
335
  debug: settings.debug,
342
336
  on: false,
343
337
  cache: settings.cache,
@@ -346,7 +340,7 @@
346
340
  query: searchTerm,
347
341
  },
348
342
  };
349
- let apiCallbacks = {
343
+ const apiCallbacks = {
350
344
  onSuccess: function (response, $module, xhr) {
351
345
  module.parse.response.call(element, response, searchTerm);
352
346
  callback();
@@ -405,8 +399,8 @@
405
399
  if (!event.target) {
406
400
  return;
407
401
  }
408
- let $target = $(event.target);
409
- let isInDOM = document.documentElement.contains(event.target);
402
+ const $target = $(event.target);
403
+ const isInDOM = document.documentElement.contains(event.target);
410
404
 
411
405
  return isInDOM && $target.closest(selector.message).length > 0;
412
406
  },
@@ -429,8 +423,8 @@
429
423
  }
430
424
  },
431
425
  inputEvent: function () {
432
- let prompt = $prompt[0];
433
- let inputEvent = prompt !== undefined && prompt.oninput !== undefined
426
+ const prompt = $prompt[0];
427
+ const inputEvent = prompt !== undefined && prompt.oninput !== undefined
434
428
  ? 'input'
435
429
  : (prompt !== undefined && prompt.onpropertychange !== undefined
436
430
  ? 'propertychange'
@@ -444,14 +438,8 @@
444
438
  results: function () {
445
439
  return $module.data(metadata.results);
446
440
  },
447
- result: function (value, results) {
441
+ result: function (value = module.get.value(), results = module.get.results()) {
448
442
  let result = false;
449
- value = value !== undefined
450
- ? value
451
- : module.get.value();
452
- results = results !== undefined
453
- ? results
454
- : module.get.results();
455
443
  if (settings.type === 'category') {
456
444
  module.debug('Finding result that matches', value);
457
445
  $.each(results, function (index, category) {
@@ -520,8 +508,8 @@
520
508
  callback = isFunction(callback)
521
509
  ? callback
522
510
  : function () {};
523
- let searchTerm = module.get.value();
524
- let cache = module.read.cache(searchTerm);
511
+ const searchTerm = module.get.value();
512
+ const cache = module.read.cache(searchTerm);
525
513
  if (module.has.minimumCharacters()) {
526
514
  if (cache) {
527
515
  module.debug('Reading result from cache', searchTerm);
@@ -551,7 +539,6 @@
551
539
  search: {
552
540
  local: function (searchTerm) {
553
541
  let results = module.search.object(searchTerm, settings.source);
554
- let searchHTML;
555
542
  module.set.loading();
556
543
  module.save.results(results);
557
544
  module.debug('Returned full local search results', results);
@@ -562,7 +549,7 @@
562
549
  if (settings.type === 'category') {
563
550
  results = module.create.categoryResults(results);
564
551
  }
565
- searchHTML = module.generateResults({
552
+ const searchHTML = module.generateResults({
566
553
  results: results,
567
554
  });
568
555
  module.remove.loading();
@@ -586,17 +573,17 @@
586
573
  },
587
574
  object: function (searchTerm, source = settings.source, searchFields = settings.searchFields) {
588
575
  searchTerm = module.remove.diacritics(String(searchTerm));
589
- let results = [];
590
- let exactResults = [];
591
- let fuzzyResults = [];
592
- let searchExp = searchTerm.replace(regExp.escape, '\\$&');
593
- let matchRegExp = new RegExp(regExp.beginsWith + searchExp, settings.ignoreSearchCase ? 'i' : '');
576
+ const results = [];
577
+ const exactResults = [];
578
+ const fuzzyResults = [];
579
+ const searchExp = searchTerm.replace(regExp.escape, '\\$&');
580
+ const matchRegExp = new RegExp(regExp.beginsWith + searchExp, settings.ignoreSearchCase ? 'i' : '');
594
581
 
595
582
  // avoid duplicates when pushing results
596
- let addResult = function (array, result) {
597
- let notResult = !results.includes(result);
598
- let notFuzzyResult = !fuzzyResults.includes(result);
599
- let notExactResults = !exactResults.includes(result);
583
+ const addResult = function (array, result) {
584
+ const notResult = !results.includes(result);
585
+ const notFuzzyResult = !fuzzyResults.includes(result);
586
+ const notExactResults = !exactResults.includes(result);
600
587
  if (notResult && notFuzzyResult && notExactResults) {
601
588
  array.push(result);
602
589
  }
@@ -614,11 +601,11 @@
614
601
  return [];
615
602
  }
616
603
  // iterate through search fields looking for matches
617
- let lastSearchFieldIndex = searchFields.length - 1;
604
+ const lastSearchFieldIndex = searchFields.length - 1;
618
605
  $.each(source, function (label, content) {
619
- let concatenatedContent = [];
606
+ const concatenatedContent = [];
620
607
  $.each(searchFields, function (index, field) {
621
- let fieldExists = typeof content[field] === 'string' || typeof content[field] === 'number';
608
+ const fieldExists = typeof content[field] === 'string' || typeof content[field] === 'number';
622
609
  if (fieldExists) {
623
610
  let text;
624
611
  text = typeof content[field] === 'string'
@@ -661,7 +648,7 @@
661
648
  return term.includes(query);
662
649
  },
663
650
  wordSearch: function (query, term, matchAll) {
664
- let allWords = query.split(/\s+/);
651
+ const allWords = query.split(/\s+/);
665
652
  let found = false;
666
653
  for (const w of allWords) {
667
654
  found = module.exactSearch(w, term);
@@ -673,8 +660,8 @@
673
660
  return found;
674
661
  },
675
662
  fuzzySearch: function (query, term) {
676
- let termLength = term.length;
677
- let queryLength = query.length;
663
+ const termLength = term.length;
664
+ const queryLength = query.length;
678
665
  if (typeof query !== 'string') {
679
666
  return false;
680
667
  }
@@ -690,7 +677,7 @@
690
677
  }
691
678
  for (let characterIndex = 0, nextCharacterIndex = 0; characterIndex < queryLength; characterIndex++) {
692
679
  let continueSearch = false;
693
- let queryCharacter = query.codePointAt(characterIndex);
680
+ const queryCharacter = query.codePointAt(characterIndex);
694
681
  while (nextCharacterIndex < termLength) {
695
682
  if (term.codePointAt(nextCharacterIndex++) === queryCharacter) {
696
683
  continueSearch = true;
@@ -710,11 +697,11 @@
710
697
  parse: {
711
698
  response: function (response, searchTerm) {
712
699
  if (Array.isArray(response)) {
713
- let o = {};
700
+ const o = {};
714
701
  o[fields.results] = response;
715
702
  response = o;
716
703
  }
717
- let searchHTML = module.generateResults(response);
704
+ const searchHTML = module.generateResults(response);
718
705
  module.verbose('Parsing server response', response);
719
706
  if (response !== undefined && searchTerm !== undefined && response[fields.results] !== undefined) {
720
707
  module.addResults(searchHTML);
@@ -738,8 +725,8 @@
738
725
 
739
726
  has: {
740
727
  minimumCharacters: function () {
741
- let searchTerm = module.get.value();
742
- let numCharacters = searchTerm.length;
728
+ const searchTerm = module.get.value();
729
+ const numCharacters = searchTerm.length;
743
730
 
744
731
  return numCharacters >= settings.minCharacters;
745
732
  },
@@ -747,7 +734,7 @@
747
734
  if ($results.length === 0) {
748
735
  return false;
749
736
  }
750
- let html = $results.html();
737
+ const html = $results.html();
751
738
 
752
739
  return html !== '';
753
740
  },
@@ -755,7 +742,7 @@
755
742
 
756
743
  clear: {
757
744
  cache: function (value) {
758
- let cache = $module.data(metadata.cache);
745
+ const cache = $module.data(metadata.cache);
759
746
  if (!value) {
760
747
  module.debug('Clearing cache', value);
761
748
  $module.removeData(metadata.cache);
@@ -772,7 +759,7 @@
772
759
 
773
760
  read: {
774
761
  cache: function (name) {
775
- let cache = $module.data(metadata.cache);
762
+ const cache = $module.data(metadata.cache);
776
763
  if (settings.cache) {
777
764
  module.verbose('Checking cache for generated html for query', name);
778
765
 
@@ -787,7 +774,7 @@
787
774
 
788
775
  create: {
789
776
  categoryResults: function (results) {
790
- let categoryResults = {};
777
+ const categoryResults = {};
791
778
  $.each(results, function (index, result) {
792
779
  if (!result.category) {
793
780
  return;
@@ -806,7 +793,7 @@
806
793
  return categoryResults;
807
794
  },
808
795
  id: function (resultIndex, categoryIndex) {
809
- let resultID = resultIndex + 1; // not zero indexed
796
+ const resultID = resultIndex + 1; // not zero indexed
810
797
  let letterID;
811
798
  let id;
812
799
  if (categoryIndex !== undefined) {
@@ -833,7 +820,7 @@
833
820
  inject: {
834
821
  result: function (result, resultIndex, categoryIndex) {
835
822
  module.verbose('Injecting result into results');
836
- let $selectedResult = categoryIndex !== undefined
823
+ const $selectedResult = categoryIndex !== undefined
837
824
  ? $results
838
825
  .children().eq(categoryIndex)
839
826
  .children(selector.results)
@@ -890,7 +877,7 @@
890
877
 
891
878
  write: {
892
879
  cache: function (name, value) {
893
- let cache = $module.data(metadata.cache) !== undefined
880
+ const cache = $module.data(metadata.cache) !== undefined
894
881
  ? $module.data(metadata.cache)
895
882
  : {};
896
883
  if (settings.cache) {
@@ -941,7 +928,7 @@
941
928
  silent: settings.silent,
942
929
  duration: settings.duration,
943
930
  onShow: function () {
944
- let $firstResult = $module.find(selector.result).eq(0);
931
+ const $firstResult = $module.find(selector.result).eq(0);
945
932
  module.ensureVisible($firstResult);
946
933
  },
947
934
  onComplete: function () {
@@ -989,9 +976,9 @@
989
976
 
990
977
  generateResults: function (response) {
991
978
  module.debug('Generating html from response', response);
992
- let template = settings.templates[settings.type];
993
- let isProperObject = $.isPlainObject(response[fields.results]) && !$.isEmptyObject(response[fields.results]);
994
- let isProperArray = Array.isArray(response[fields.results]) && response[fields.results].length > 0;
979
+ const template = settings.templates[settings.type];
980
+ const isProperObject = $.isPlainObject(response[fields.results]) && !$.isEmptyObject(response[fields.results]);
981
+ const isProperArray = Array.isArray(response[fields.results]) && response[fields.results].length > 0;
995
982
  let html = '';
996
983
  if (isProperObject || isProperArray) {
997
984
  if (settings.maxResults > 0) {
@@ -1004,13 +991,13 @@
1004
991
  }
1005
992
  }
1006
993
  if (settings.highlightMatches) {
1007
- let results = response[fields.results];
1008
- let regExpIgnore = settings.ignoreSearchCase ? 'i' : '';
1009
- let querySplit = [...module.get.value()];
1010
- let diacriticReg = settings.ignoreDiacritics ? '[\u0300-\u036F]?' : '';
1011
- let htmlReg = '(?![^<]*>)';
1012
- let markedRegExp = new RegExp(htmlReg + '(' + querySplit.join(diacriticReg + ')(.*?)' + htmlReg + '(') + diacriticReg + ')', regExpIgnore);
1013
- let markedReplacer = function (...args) {
994
+ const results = response[fields.results];
995
+ const regExpIgnore = settings.ignoreSearchCase ? 'i' : '';
996
+ const querySplit = [...module.get.value()];
997
+ const diacriticReg = settings.ignoreDiacritics ? '[\u0300-\u036F]?' : '';
998
+ const htmlReg = '(?![^<]*>)';
999
+ const markedRegExp = new RegExp(htmlReg + '(' + querySplit.join(diacriticReg + ')(.*?)' + htmlReg + '(') + diacriticReg + ')', regExpIgnore);
1000
+ const markedReplacer = function (...args) {
1014
1001
  args = args.slice(1, querySplit.length * 2).map(function (x, i) {
1015
1002
  return i & 1 ? x : '<mark>' + x + '</mark>'; // eslint-disable-line no-bitwise
1016
1003
  });
@@ -1019,7 +1006,7 @@
1019
1006
  };
1020
1007
  $.each(results, function (label, content) {
1021
1008
  $.each(settings.searchFields, function (index, field) {
1022
- let fieldExists = typeof content[field] === 'string' || typeof content[field] === 'number';
1009
+ const fieldExists = typeof content[field] === 'string' || typeof content[field] === 'number';
1023
1010
  if (fieldExists) {
1024
1011
  let markedHTML = typeof content[field] === 'string'
1025
1012
  ? content[field]
@@ -1148,7 +1135,7 @@
1148
1135
  query = query.split(/[ .]/);
1149
1136
  maxDepth = query.length - 1;
1150
1137
  $.each(query, function (depth, value) {
1151
- let camelCaseValue = depth !== maxDepth
1138
+ const camelCaseValue = depth !== maxDepth
1152
1139
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
1153
1140
  : query;
1154
1141
  if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
@@ -1392,8 +1379,8 @@
1392
1379
  },
1393
1380
  category: function (response, settings) {
1394
1381
  let html = '';
1395
- let fields = settings.fields;
1396
- let escape = settings.templates.escape;
1382
+ const fields = settings.fields;
1383
+ const escape = settings.templates.escape;
1397
1384
  if (response[fields.categoryResults] !== undefined) {
1398
1385
  // each category
1399
1386
  $.each(response[fields.categoryResults], function (index, category) {
@@ -1465,8 +1452,8 @@
1465
1452
  },
1466
1453
  standard: function (response, settings) {
1467
1454
  let html = '';
1468
- let fields = settings.fields;
1469
- let escape = settings.templates.escape;
1455
+ const fields = settings.fields;
1456
+ const escape = settings.templates.escape;
1470
1457
  if (response[fields.results] !== undefined) {
1471
1458
  // each result
1472
1459
  $.each(response[fields.results], function (index, result) {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.62+40c7533 - Search
2
+ * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Search
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *