fomantic-ui 2.10.0-beta.6 → 2.10.0-beta.8

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 (227) hide show
  1. package/.eslintrc.js +0 -10
  2. package/README.md +4 -5
  3. package/changelog-setup.js +64 -70
  4. package/dist/components/accordion.css +1 -1
  5. package/dist/components/accordion.js +94 -131
  6. package/dist/components/accordion.min.css +1 -1
  7. package/dist/components/accordion.min.js +2 -2
  8. package/dist/components/ad.css +1 -1
  9. package/dist/components/ad.min.css +1 -1
  10. package/dist/components/api.js +152 -205
  11. package/dist/components/api.min.js +2 -2
  12. package/dist/components/breadcrumb.css +1 -1
  13. package/dist/components/breadcrumb.min.css +1 -1
  14. package/dist/components/button.css +1 -1
  15. package/dist/components/button.min.css +1 -1
  16. package/dist/components/calendar.css +1 -1
  17. package/dist/components/calendar.js +305 -341
  18. package/dist/components/calendar.min.css +1 -1
  19. package/dist/components/calendar.min.js +2 -2
  20. package/dist/components/card.css +1 -1
  21. package/dist/components/card.min.css +1 -1
  22. package/dist/components/checkbox.css +1 -1
  23. package/dist/components/checkbox.js +76 -116
  24. package/dist/components/checkbox.min.css +1 -1
  25. package/dist/components/checkbox.min.js +2 -2
  26. package/dist/components/comment.css +1 -1
  27. package/dist/components/comment.min.css +1 -1
  28. package/dist/components/container.css +1 -1
  29. package/dist/components/container.min.css +1 -1
  30. package/dist/components/dimmer.css +1 -1
  31. package/dist/components/dimmer.js +58 -91
  32. package/dist/components/dimmer.min.css +1 -1
  33. package/dist/components/dimmer.min.js +2 -2
  34. package/dist/components/divider.css +1 -1
  35. package/dist/components/divider.min.css +1 -1
  36. package/dist/components/dropdown.css +1 -1
  37. package/dist/components/dropdown.js +674 -977
  38. package/dist/components/dropdown.min.css +1 -1
  39. package/dist/components/dropdown.min.js +2 -2
  40. package/dist/components/embed.css +1 -1
  41. package/dist/components/embed.js +80 -127
  42. package/dist/components/embed.min.css +1 -1
  43. package/dist/components/embed.min.js +2 -2
  44. package/dist/components/emoji.css +1 -1
  45. package/dist/components/emoji.min.css +1 -1
  46. package/dist/components/feed.css +1 -1
  47. package/dist/components/feed.min.css +1 -1
  48. package/dist/components/flag.css +1 -1
  49. package/dist/components/flag.min.css +1 -1
  50. package/dist/components/flyout.css +1 -1
  51. package/dist/components/flyout.js +192 -274
  52. package/dist/components/flyout.min.css +1 -1
  53. package/dist/components/flyout.min.js +2 -2
  54. package/dist/components/form.css +1 -1
  55. package/dist/components/form.js +325 -429
  56. package/dist/components/form.min.css +1 -1
  57. package/dist/components/form.min.js +2 -2
  58. package/dist/components/grid.css +1 -1
  59. package/dist/components/grid.min.css +1 -1
  60. package/dist/components/header.css +1 -1
  61. package/dist/components/header.min.css +1 -1
  62. package/dist/components/icon.css +1 -1
  63. package/dist/components/icon.min.css +1 -1
  64. package/dist/components/image.css +1 -1
  65. package/dist/components/image.min.css +1 -1
  66. package/dist/components/input.css +1 -1
  67. package/dist/components/input.min.css +1 -1
  68. package/dist/components/item.css +1 -1
  69. package/dist/components/item.min.css +1 -1
  70. package/dist/components/label.css +1 -1
  71. package/dist/components/label.min.css +1 -1
  72. package/dist/components/list.css +1 -1
  73. package/dist/components/list.min.css +1 -1
  74. package/dist/components/loader.css +1 -1
  75. package/dist/components/loader.min.css +1 -1
  76. package/dist/components/menu.css +1 -1
  77. package/dist/components/menu.min.css +1 -1
  78. package/dist/components/message.css +1 -1
  79. package/dist/components/message.min.css +1 -1
  80. package/dist/components/modal.css +1 -1
  81. package/dist/components/modal.js +221 -313
  82. package/dist/components/modal.min.css +1 -1
  83. package/dist/components/modal.min.js +2 -2
  84. package/dist/components/nag.css +1 -1
  85. package/dist/components/nag.js +67 -97
  86. package/dist/components/nag.min.css +1 -1
  87. package/dist/components/nag.min.js +2 -2
  88. package/dist/components/placeholder.css +1 -1
  89. package/dist/components/placeholder.min.css +1 -1
  90. package/dist/components/popup.css +1 -1
  91. package/dist/components/popup.js +185 -254
  92. package/dist/components/popup.min.css +1 -1
  93. package/dist/components/popup.min.js +2 -2
  94. package/dist/components/progress.css +1 -1
  95. package/dist/components/progress.js +103 -138
  96. package/dist/components/progress.min.css +1 -1
  97. package/dist/components/progress.min.js +2 -2
  98. package/dist/components/rail.css +1 -1
  99. package/dist/components/rail.min.css +1 -1
  100. package/dist/components/rating.css +1 -1
  101. package/dist/components/rating.js +89 -139
  102. package/dist/components/rating.min.css +1 -1
  103. package/dist/components/rating.min.js +2 -2
  104. package/dist/components/reset.css +1 -1
  105. package/dist/components/reset.min.css +1 -1
  106. package/dist/components/reveal.css +1 -1
  107. package/dist/components/reveal.min.css +1 -1
  108. package/dist/components/search.css +1 -1
  109. package/dist/components/search.js +253 -352
  110. package/dist/components/search.min.css +1 -1
  111. package/dist/components/search.min.js +2 -2
  112. package/dist/components/segment.css +1 -1
  113. package/dist/components/segment.min.css +1 -1
  114. package/dist/components/shape.css +1 -1
  115. package/dist/components/shape.js +157 -223
  116. package/dist/components/shape.min.css +1 -1
  117. package/dist/components/shape.min.js +2 -2
  118. package/dist/components/sidebar.css +1 -1
  119. package/dist/components/sidebar.js +122 -163
  120. package/dist/components/sidebar.min.css +1 -1
  121. package/dist/components/sidebar.min.js +2 -2
  122. package/dist/components/site.css +1 -1
  123. package/dist/components/site.js +38 -57
  124. package/dist/components/site.min.css +1 -1
  125. package/dist/components/site.min.js +2 -2
  126. package/dist/components/slider.css +1 -1
  127. package/dist/components/slider.js +242 -325
  128. package/dist/components/slider.min.css +1 -1
  129. package/dist/components/slider.min.js +2 -2
  130. package/dist/components/state.js +68 -98
  131. package/dist/components/state.min.js +2 -2
  132. package/dist/components/statistic.css +1 -1
  133. package/dist/components/statistic.min.css +1 -1
  134. package/dist/components/step.css +1 -1
  135. package/dist/components/step.min.css +1 -1
  136. package/dist/components/sticky.css +1 -1
  137. package/dist/components/sticky.js +116 -159
  138. package/dist/components/sticky.min.css +1 -1
  139. package/dist/components/sticky.min.js +2 -2
  140. package/dist/components/tab.css +1 -1
  141. package/dist/components/tab.js +168 -233
  142. package/dist/components/tab.min.css +1 -1
  143. package/dist/components/tab.min.js +2 -2
  144. package/dist/components/table.css +1 -1
  145. package/dist/components/table.min.css +1 -1
  146. package/dist/components/text.css +1 -1
  147. package/dist/components/text.min.css +1 -1
  148. package/dist/components/toast.css +1 -1
  149. package/dist/components/toast.js +99 -132
  150. package/dist/components/toast.min.css +1 -1
  151. package/dist/components/toast.min.js +2 -2
  152. package/dist/components/transition.css +1 -1
  153. package/dist/components/transition.js +86 -141
  154. package/dist/components/transition.min.css +1 -1
  155. package/dist/components/transition.min.js +2 -2
  156. package/dist/components/visibility.js +134 -210
  157. package/dist/components/visibility.min.js +2 -2
  158. package/dist/semantic.css +53 -53
  159. package/dist/semantic.js +4100 -5721
  160. package/dist/semantic.min.css +1 -1
  161. package/dist/semantic.min.js +2 -2
  162. package/examples/assets/show-examples.js +2 -4
  163. package/gulpfile.js +5 -7
  164. package/package.json +1 -1
  165. package/scripts/nightly-version.js +7 -10
  166. package/src/definitions/behaviors/api.js +151 -204
  167. package/src/definitions/behaviors/form.js +324 -428
  168. package/src/definitions/behaviors/state.js +67 -97
  169. package/src/definitions/behaviors/visibility.js +133 -209
  170. package/src/definitions/globals/site.js +37 -56
  171. package/src/definitions/modules/accordion.js +93 -130
  172. package/src/definitions/modules/calendar.js +304 -340
  173. package/src/definitions/modules/checkbox.js +75 -115
  174. package/src/definitions/modules/dimmer.js +57 -90
  175. package/src/definitions/modules/dropdown.js +673 -976
  176. package/src/definitions/modules/embed.js +79 -126
  177. package/src/definitions/modules/flyout.js +191 -273
  178. package/src/definitions/modules/modal.js +220 -312
  179. package/src/definitions/modules/nag.js +66 -96
  180. package/src/definitions/modules/popup.js +184 -253
  181. package/src/definitions/modules/progress.js +102 -137
  182. package/src/definitions/modules/rating.js +88 -138
  183. package/src/definitions/modules/search.js +252 -351
  184. package/src/definitions/modules/shape.js +156 -222
  185. package/src/definitions/modules/sidebar.js +121 -162
  186. package/src/definitions/modules/slider.js +241 -324
  187. package/src/definitions/modules/sticky.js +115 -158
  188. package/src/definitions/modules/tab.js +167 -232
  189. package/src/definitions/modules/toast.js +98 -131
  190. package/src/definitions/modules/transition.js +85 -140
  191. package/tasks/admin/components/create.js +88 -108
  192. package/tasks/admin/components/init.js +26 -32
  193. package/tasks/admin/components/update.js +46 -53
  194. package/tasks/admin/distributions/create.js +71 -101
  195. package/tasks/admin/distributions/init.js +27 -33
  196. package/tasks/admin/distributions/update.js +45 -52
  197. package/tasks/admin/register.js +11 -15
  198. package/tasks/build/assets.js +14 -18
  199. package/tasks/build/css.js +54 -63
  200. package/tasks/build/javascript.js +45 -53
  201. package/tasks/build.js +4 -6
  202. package/tasks/check-install.js +5 -7
  203. package/tasks/clean.js +2 -4
  204. package/tasks/collections/admin.js +13 -15
  205. package/tasks/collections/build.js +6 -8
  206. package/tasks/collections/docs.js +2 -4
  207. package/tasks/collections/install.js +2 -4
  208. package/tasks/collections/rtl.js +2 -4
  209. package/tasks/collections/various.js +2 -4
  210. package/tasks/config/admin/github.js +7 -9
  211. package/tasks/config/admin/templates/css-package.js +1 -3
  212. package/tasks/config/admin/templates/less-package.js +1 -3
  213. package/tasks/config/npm/gulpfile.js +4 -6
  214. package/tasks/config/project/config.js +22 -30
  215. package/tasks/config/project/install.js +56 -70
  216. package/tasks/config/project/release.js +6 -8
  217. package/tasks/config/tasks.js +8 -12
  218. package/tasks/config/user.js +13 -17
  219. package/tasks/docs/build.js +26 -31
  220. package/tasks/docs/metadata.js +24 -30
  221. package/tasks/docs/serve.js +20 -26
  222. package/tasks/install.js +71 -98
  223. package/tasks/rtl/build.js +2 -4
  224. package/tasks/rtl/watch.js +2 -4
  225. package/tasks/watch.js +9 -11
  226. package/test/meteor/fonts.js +1 -2
  227. package/test/modules/module.spec.js +16 -18
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.6+42a411a
2
+ * # Fomantic UI - 2.10.0-beta.8+62e258f
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(O,x){"use strict";x=void 0!==x&&x.Math===Math?x:globalThis,O.fn.accordion=function(v){var p,e=O(this),m=Date.now(),h=[],b=v,y="string"==typeof b,C=[].slice.call(arguments,1);return e.each(function(){var e,a=O.isPlainObject(v)?O.extend(!0,{},O.fn.accordion.settings,v):O.extend({},O.fn.accordion.settings),s=a.className,n=a.namespace,l=a.selector,c=a.error,i="."+n,t="module-"+n,o=O(this),r=o.find(l.title),d=o.find(l.content),u=this,g=o.data(t),f={initialize:function(){f.debug("Initializing",o),f.bind.events(),a.observeChanges&&f.observeChanges(),f.instantiate()},instantiate:function(){g=f,o.data(t,f)},destroy:function(){f.debug("Destroying previous instance",o),o.off(i).removeData(t)},refresh:function(){r=o.find(l.title),d=o.find(l.content)},observeChanges:function(){"MutationObserver"in x&&((e=new MutationObserver(function(e){f.debug("DOM tree modified, updating selector cache"),f.refresh()})).observe(u,{childList:!0,subtree:!0}),f.debug("Setting up mutation observer",e))},bind:{events:function(){f.debug("Binding delegated events"),o.on(a.on+i,l.trigger,f.event.click)}},event:{click:function(e){0===O(e.target).closest(l.ignore).length&&f.toggle.call(this)}},toggle:function(e){var e=void 0!==e?"number"==typeof e?r.eq(e):O(e).closest(l.title):O(this).closest(l.title),n=e.next(d),i=n.hasClass(s.animating),n=n.hasClass(s.active),t=n&&!i,n=!n&&i;f.debug("Toggling visibility of content",e),t||n?a.collapsible?f.close.call(e):f.debug("Cannot close accordion content collapsing is disabled"):f.open.call(e)},open:function(e){var e=void 0!==e?"number"==typeof e?r.eq(e):O(e).closest(l.title):O(this).closest(l.title),n=e.next(d),i=n.hasClass(s.animating);n.hasClass(s.active)||i?f.debug("Accordion already open, skipping",n):(f.debug("Opening accordion content",e),a.onOpening.call(n),a.onChanging.call(n),a.exclusive&&f.closeOthers.call(e),e.addClass(s.active),n.stop(!0,!0).addClass(s.animating),a.animateChildren&&(void 0!==O.fn.transition?n.children().transition({animation:"fade in",queue:!1,useFailSafe:!0,debug:a.debug,verbose:a.verbose,silent:a.silent,duration:a.duration,skipInlineHidden:!0,onComplete:function(){n.children().removeClass(s.transition)}}):n.children().stop(!0,!0).animate({opacity:1},a.duration,f.resetOpacity)),n.slideDown(a.duration,a.easing,function(){n.removeClass(s.animating).addClass(s.active),f.reset.display.call(this),a.onOpen.call(this),a.onChange.call(this)}))},close:function(e){var e=void 0!==e?"number"==typeof e?r.eq(e):O(e).closest(l.title):O(this).closest(l.title),n=e.next(d),i=n.hasClass(s.animating),t=n.hasClass(s.active);!t&&!(!t&&i)||t&&i||(f.debug("Closing accordion content",n),a.onClosing.call(n),a.onChanging.call(n),e.removeClass(s.active),n.stop(!0,!0).addClass(s.animating),a.animateChildren&&(void 0!==O.fn.transition?n.children().transition({animation:"fade out",queue:!1,useFailSafe:!0,debug:a.debug,verbose:a.verbose,silent:a.silent,duration:a.duration,skipInlineHidden:!0}):n.children().stop(!0,!0).animate({opacity:0},a.duration,f.resetOpacity)),n.slideUp(a.duration,a.easing,function(){n.removeClass(s.animating).removeClass(s.active),f.reset.display.call(this),a.onClose.call(this),a.onChange.call(this)}))},closeOthers:function(e){var n,e=void 0!==e?r.eq(e):O(this).closest(l.title),i=e.parents(l.content).prev(l.title),e=e.closest(l.accordion),t=l.title+"."+s.active+":visible",o=l.content+"."+s.active+":visible",o=a.closeNested?(n=e.find(t).not(i)).next(d):(n=e.find(t).not(i),e=e.find(o).find(t).not(i),(n=n.not(e)).next(d));0<n.length&&(f.debug("Exclusive enabled, closing other content",n),n.removeClass(s.active),o.removeClass(s.animating).stop(!0,!0),a.animateChildren&&(void 0!==O.fn.transition?o.children().transition({animation:"fade out",useFailSafe:!0,debug:a.debug,verbose:a.verbose,silent:a.silent,duration:a.duration,skipInlineHidden:!0}):o.children().stop(!0,!0).animate({opacity:0},a.duration,f.resetOpacity)),o.slideUp(a.duration,a.easing,function(){O(this).removeClass(s.active),f.reset.display.call(this)}))},reset:{display:function(){f.verbose("Removing inline display from element",this);var e=O(this);e.css("display",""),""===e.attr("style")&&e.attr("style","").removeAttr("style")},opacity:function(){f.verbose("Removing inline opacity from element",this);var e=O(this);e.css("opacity",""),""===e.attr("style")&&e.attr("style","").removeAttr("style")}},setting:function(e,n){if(f.debug("Changing setting",e,n),O.isPlainObject(e))O.extend(!0,a,e);else{if(void 0===n)return a[e];O.isPlainObject(a[e])?O.extend(!0,a[e],n):a[e]=n}},internal:function(e,n){if(f.debug("Changing internal",e,n),void 0===n)return f[e];O.isPlainObject(e)?O.extend(!0,f,e):f[e]=n},debug:function(){!a.silent&&a.debug&&(a.performance?f.performance.log(arguments):(f.debug=Function.prototype.bind.call(console.info,console,a.name+":"),f.debug.apply(console,arguments)))},verbose:function(){!a.silent&&a.verbose&&a.debug&&(a.performance?f.performance.log(arguments):(f.verbose=Function.prototype.bind.call(console.info,console,a.name+":"),f.verbose.apply(console,arguments)))},error:function(){a.silent||(f.error=Function.prototype.bind.call(console.error,console,a.name+":"),f.error.apply(console,arguments))},performance:{log:function(e){var n,i;a.performance&&(i=(n=Date.now())-(m||n),m=n,h.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:u,"Execution Time":i})),clearTimeout(f.performance.timer),f.performance.timer=setTimeout(function(){f.performance.display()},500)},display:function(){var e=a.name+":",i=0;m=!1,clearTimeout(f.performance.timer),O.each(h,function(e,n){i+=n["Execution Time"]}),e+=" "+i+"ms",0<h.length&&(console.groupCollapsed(e),console.table?console.table(h):O.each(h,function(e,n){console.log(n.Name+": "+n["Execution Time"]+"ms")}),console.groupEnd()),h=[]}},invoke:function(t,e,n){var o,a,i,s,l=g;return e=e||C,n=n||u,"string"==typeof t&&void 0!==l&&(t=t.split(/[ .]/),o=t.length-1,O.each(t,function(e,n){var i=e!==o?n+t[e+1].charAt(0).toUpperCase()+t[e+1].slice(1):t;if(O.isPlainObject(l[i])&&e!==o)l=l[i];else{if(void 0!==l[i])return a=l[i],!1;{if(!O.isPlainObject(l[n])||e===o)return void 0!==l[n]?a=l[n]:f.error(c.method,t),!1;l=l[n]}}})),"function"==typeof(s=a)&&"number"!=typeof s.nodeType?i=a.apply(n,e):void 0!==a&&(i=a),Array.isArray(p)?p.push(i):void 0!==p?p=[p,i]:void 0!==i&&(p=i),a}};y?(void 0===g&&f.initialize(),f.invoke(b)):(void 0!==g&&g.invoke("destroy"),f.initialize())}),void 0!==p?p:this},O.fn.accordion.settings={name:"Accordion",namespace:"accordion",silent:!1,debug:!1,verbose:!1,performance:!0,on:"click",observeChanges:!0,exclusive:!0,collapsible:!0,closeNested:!1,animateChildren:!0,duration:350,easing:"easeOutQuad",onOpening:function(){},onClosing:function(){},onChanging:function(){},onOpen:function(){},onClose:function(){},onChange:function(){},error:{method:"The method you called is not defined"},className:{active:"active",animating:"animating",transition:"transition"},selector:{accordion:".accordion",title:".title",trigger:".title",ignore:".ui.dropdown",content:".content"}},O.extend(O.easing,{easeOutQuad:function(e){return 1-(1-e)*(1-e)}})}(jQuery,window,document);
11
+ !function(O,x){"use strict";x=void 0!==x&&x.Math===Math?x:globalThis,O.fn.accordion=function(a){let e=O(this),s=Date.now(),m=[],h=a,b="string"==typeof h,y=[].slice.call(arguments,1),C;return e.each(function(){let l=O.isPlainObject(a)?O.extend(!0,{},O.fn.accordion.settings,a):O.extend({},O.fn.accordion.settings),c=l.className;var e=l.namespace;let r=l.selector,d=l.error,n="."+e,t="module-"+e,i=O(this),u=i.find(r.title),g=i.find(r.content),f=this,p=i.data(t),o,v;v={initialize:function(){v.debug("Initializing",i),v.bind.events(),l.observeChanges&&v.observeChanges(),v.instantiate()},instantiate:function(){p=v,i.data(t,v)},destroy:function(){v.debug("Destroying previous instance",i),i.off(n).removeData(t)},refresh:function(){u=i.find(r.title),g=i.find(r.content)},observeChanges:function(){"MutationObserver"in x&&((o=new MutationObserver(function(e){v.debug("DOM tree modified, updating selector cache"),v.refresh()})).observe(f,{childList:!0,subtree:!0}),v.debug("Setting up mutation observer",o))},bind:{events:function(){v.debug("Binding delegated events"),i.on(l.on+n,r.trigger,v.event.click)}},event:{click:function(e){0===O(e.target).closest(r.ignore).length&&v.toggle.call(this)}},toggle:function(e){let n=void 0!==e?"number"==typeof e?u.eq(e):O(e).closest(r.title):O(this).closest(r.title),t=n.next(g);var e=t.hasClass(c.animating),i=t.hasClass(c.active),o=i&&!e,i=!i&&e;v.debug("Toggling visibility of content",n),o||i?l.collapsible?v.close.call(n):v.debug("Cannot close accordion content collapsing is disabled"):v.open.call(n)},open:function(e){let n=void 0!==e?"number"==typeof e?u.eq(e):O(e).closest(r.title):O(this).closest(r.title),t=n.next(g);e=t.hasClass(c.animating);t.hasClass(c.active)||e?v.debug("Accordion already open, skipping",t):(v.debug("Opening accordion content",n),l.onOpening.call(t),l.onChanging.call(t),l.exclusive&&v.closeOthers.call(n),n.addClass(c.active),t.stop(!0,!0).addClass(c.animating),l.animateChildren&&(void 0!==O.fn.transition?t.children().transition({animation:"fade in",queue:!1,useFailSafe:!0,debug:l.debug,verbose:l.verbose,silent:l.silent,duration:l.duration,skipInlineHidden:!0,onComplete:function(){t.children().removeClass(c.transition)}}):t.children().stop(!0,!0).animate({opacity:1},l.duration,v.resetOpacity)),t.slideDown(l.duration,l.easing,function(){t.removeClass(c.animating).addClass(c.active),v.reset.display.call(this),l.onOpen.call(this),l.onChange.call(this)}))},close:function(e){let n=void 0!==e?"number"==typeof e?u.eq(e):O(e).closest(r.title):O(this).closest(r.title),t=n.next(g);var e=t.hasClass(c.animating),i=t.hasClass(c.active);!i&&!(!i&&e)||i&&e||(v.debug("Closing accordion content",t),l.onClosing.call(t),l.onChanging.call(t),n.removeClass(c.active),t.stop(!0,!0).addClass(c.animating),l.animateChildren&&(void 0!==O.fn.transition?t.children().transition({animation:"fade out",queue:!1,useFailSafe:!0,debug:l.debug,verbose:l.verbose,silent:l.silent,duration:l.duration,skipInlineHidden:!0}):t.children().stop(!0,!0).animate({opacity:0},l.duration,v.resetOpacity)),t.slideUp(l.duration,l.easing,function(){t.removeClass(c.animating).removeClass(c.active),v.reset.display.call(this),l.onClose.call(this),l.onChange.call(this)}))},closeOthers:function(e){let n=void 0!==e?u.eq(e):O(this).closest(r.title);e=n.parents(r.content).prev(r.title);let t=n.closest(r.accordion);var i=r.title+"."+c.active+":visible",o=r.content+"."+c.active+":visible";let a,s;s=(a=l.closeNested?t.find(i).not(e):(a=t.find(i).not(e),o=t.find(o).find(i).not(e),a.not(o))).next(g),0<a.length&&(v.debug("Exclusive enabled, closing other content",a),a.removeClass(c.active),s.removeClass(c.animating).stop(!0,!0),l.animateChildren&&(void 0!==O.fn.transition?s.children().transition({animation:"fade out",useFailSafe:!0,debug:l.debug,verbose:l.verbose,silent:l.silent,duration:l.duration,skipInlineHidden:!0}):s.children().stop(!0,!0).animate({opacity:0},l.duration,v.resetOpacity)),s.slideUp(l.duration,l.easing,function(){O(this).removeClass(c.active),v.reset.display.call(this)}))},reset:{display:function(){v.verbose("Removing inline display from element",this);let e=O(this);e.css("display",""),""===e.attr("style")&&e.attr("style","").removeAttr("style")},opacity:function(){v.verbose("Removing inline opacity from element",this);let e=O(this);e.css("opacity",""),""===e.attr("style")&&e.attr("style","").removeAttr("style")}},setting:function(e,n){if(v.debug("Changing setting",e,n),O.isPlainObject(e))O.extend(!0,l,e);else{if(void 0===n)return l[e];O.isPlainObject(l[e])?O.extend(!0,l[e],n):l[e]=n}},internal:function(e,n){if(v.debug("Changing internal",e,n),void 0===n)return v[e];O.isPlainObject(e)?O.extend(!0,v,e):v[e]=n},debug:function(){!l.silent&&l.debug&&(l.performance?v.performance.log(arguments):(v.debug=Function.prototype.bind.call(console.info,console,l.name+":"),v.debug.apply(console,arguments)))},verbose:function(){!l.silent&&l.verbose&&l.debug&&(l.performance?v.performance.log(arguments):(v.verbose=Function.prototype.bind.call(console.info,console,l.name+":"),v.verbose.apply(console,arguments)))},error:function(){l.silent||(v.error=Function.prototype.bind.call(console.error,console,l.name+":"),v.error.apply(console,arguments))},performance:{log:function(e){var n,t;l.performance&&(t=(n=Date.now())-(s||n),s=n,m.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:f,"Execution Time":t})),clearTimeout(v.performance.timer),v.performance.timer=setTimeout(function(){v.performance.display()},500)},display:function(){var e=l.name+":";let t=0;s=!1,clearTimeout(v.performance.timer),O.each(m,function(e,n){t+=n["Execution Time"]}),e+=" "+t+"ms",0<m.length&&(console.groupCollapsed(e),console.table?console.table(m):O.each(m,function(e,n){console.log(n.Name+": "+n["Execution Time"]+"ms")}),console.groupEnd()),m=[]}},invoke:function(i,e,n){let o=p,a,s,t;var l;return e=e||y,n=n||f,"string"==typeof i&&void 0!==o&&(i=i.split(/[ .]/),a=i.length-1,O.each(i,function(e,n){var t=e!==a?n+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(O.isPlainObject(o[t])&&e!==a)o=o[t];else{if(void 0!==o[t])return s=o[t],!1;{if(!O.isPlainObject(o[n])||e===a)return void 0!==o[n]?s=o[n]:v.error(d.method,i),!1;o=o[n]}}})),"function"==typeof(l=s)&&"number"!=typeof l.nodeType?t=s.apply(n,e):void 0!==s&&(t=s),Array.isArray(C)?C.push(t):void 0!==C?C=[C,t]:void 0!==t&&(C=t),s}},b?(void 0===p&&v.initialize(),v.invoke(h)):(void 0!==p&&p.invoke("destroy"),v.initialize())}),void 0!==C?C:this},O.fn.accordion.settings={name:"Accordion",namespace:"accordion",silent:!1,debug:!1,verbose:!1,performance:!0,on:"click",observeChanges:!0,exclusive:!0,collapsible:!0,closeNested:!1,animateChildren:!0,duration:350,easing:"easeOutQuad",onOpening:function(){},onClosing:function(){},onChanging:function(){},onOpen:function(){},onClose:function(){},onChange:function(){},error:{method:"The method you called is not defined"},className:{active:"active",animating:"animating",transition:"transition"},selector:{accordion:".accordion",title:".title",trigger:".title",ignore:".ui.dropdown",content:".content"}},O.extend(O.easing,{easeOutQuad:function(e){return 1-(1-e)*(1-e)}})}(jQuery,window,document);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.6+42a411a - Ad
2
+ * # Fomantic-UI 2.10.0-beta.8+62e258f - 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.6+42a411a - Ad
2
+ * # Fomantic-UI 2.10.0-beta.8+62e258f - 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.6+42a411a - API
2
+ * # Fomantic-UI 2.10.0-beta.8+62e258f - API
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -24,72 +24,68 @@
24
24
  : globalThis;
25
25
 
26
26
  $.fn.api = function (parameters) {
27
- var
28
- // use window context if none specified
29
- $allModules = isFunction(this)
30
- ? $(window)
31
- : $(this),
32
- time = Date.now(),
33
- performance = [],
34
-
35
- query = arguments[0],
36
- methodInvoked = typeof query === 'string',
37
- queryArguments = [].slice.call(arguments, 1),
38
- contextCheck = function (context, win) {
39
- var $context;
40
- if ([window, document].indexOf(context) >= 0) {
41
- $context = $(context);
42
- } else {
43
- $context = $(win.document).find(context);
44
- if ($context.length === 0) {
45
- $context = win.frameElement ? contextCheck(context, win.parent) : window;
46
- }
27
+ // use window context if none specified
28
+ let $allModules = isFunction(this)
29
+ ? $(window)
30
+ : $(this);
31
+ let time = Date.now();
32
+ let performance = [];
33
+
34
+ let query = arguments[0];
35
+ let methodInvoked = typeof query === 'string';
36
+ let queryArguments = [].slice.call(arguments, 1);
37
+ let contextCheck = function (context, win) {
38
+ let $context;
39
+ if ([window, document].indexOf(context) >= 0) {
40
+ $context = $(context);
41
+ } else {
42
+ $context = $(win.document).find(context);
43
+ if ($context.length === 0) {
44
+ $context = win.frameElement ? contextCheck(context, win.parent) : window;
47
45
  }
46
+ }
48
47
 
49
- return $context;
50
- },
51
- returnedValue
52
- ;
48
+ return $context;
49
+ };
50
+ let returnedValue;
53
51
 
54
52
  $allModules.each(function () {
55
- var
56
- settings = $.isPlainObject(parameters)
57
- ? $.extend(true, {}, $.fn.api.settings, parameters)
58
- : $.extend({}, $.fn.api.settings),
59
-
60
- // internal aliases
61
- regExp = settings.regExp,
62
- namespace = settings.namespace,
63
- metadata = settings.metadata,
64
- selector = settings.selector,
65
- error = settings.error,
66
- className = settings.className,
67
-
68
- // define namespaces for modules
69
- eventNamespace = '.' + namespace,
70
- moduleNamespace = 'module-' + namespace,
71
-
72
- // element that creates request
73
- $module = $(this),
74
- $form = $module.closest(selector.form),
75
-
76
- // context used for state
77
- $context = settings.stateContext ? contextCheck(settings.stateContext, window) : $module,
78
-
79
- // request details
80
- ajaxSettings,
81
- requestSettings,
82
- url,
83
- data,
84
- requestStartTime,
85
- originalData,
86
-
87
- // standard module
88
- element = this,
89
- context = $context[0],
90
- instance = $module.data(moduleNamespace),
91
- module
92
- ;
53
+ let settings = $.isPlainObject(parameters)
54
+ ? $.extend(true, {}, $.fn.api.settings, parameters)
55
+ : $.extend({}, $.fn.api.settings);
56
+
57
+ // internal aliases
58
+ let regExp = settings.regExp;
59
+ let namespace = settings.namespace;
60
+ let metadata = settings.metadata;
61
+ let selector = settings.selector;
62
+ let error = settings.error;
63
+ let className = settings.className;
64
+
65
+ // define namespaces for modules
66
+ let eventNamespace = '.' + namespace;
67
+ let moduleNamespace = 'module-' + namespace;
68
+
69
+ // element that creates request
70
+ let $module = $(this);
71
+ let $form = $module.closest(selector.form);
72
+
73
+ // context used for state
74
+ let $context = settings.stateContext ? contextCheck(settings.stateContext, window) : $module;
75
+
76
+ // request details
77
+ let ajaxSettings;
78
+ let requestSettings;
79
+ let url;
80
+ let data;
81
+ let requestStartTime;
82
+ let originalData;
83
+
84
+ // standard module
85
+ let element = this;
86
+ let context = $context[0];
87
+ let instance = $module.data(moduleNamespace);
88
+ let module;
93
89
 
94
90
  module = {
95
91
 
@@ -105,28 +101,23 @@
105
101
  module.verbose('Storing instance of module', module);
106
102
  instance = module;
107
103
  $module
108
- .data(moduleNamespace, instance)
109
- ;
104
+ .data(moduleNamespace, instance);
110
105
  },
111
106
 
112
107
  destroy: function () {
113
108
  module.verbose('Destroying previous module for', element);
114
109
  $module
115
110
  .removeData(moduleNamespace)
116
- .off(eventNamespace)
117
- ;
111
+ .off(eventNamespace);
118
112
  },
119
113
 
120
114
  bind: {
121
115
  events: function () {
122
- var
123
- triggerEvent = module.get.event()
124
- ;
116
+ let triggerEvent = module.get.event();
125
117
  if (triggerEvent) {
126
118
  module.verbose('Attaching API events to element', triggerEvent);
127
119
  $module
128
- .on(triggerEvent + eventNamespace, module.event.trigger)
129
- ;
120
+ .on(triggerEvent + eventNamespace, module.event.trigger);
130
121
  } else if (settings.on === 'now') {
131
122
  module.debug('Querying API endpoint immediately');
132
123
  module.query();
@@ -150,9 +141,7 @@
150
141
 
151
142
  read: {
152
143
  cachedResponse: function (url) {
153
- var
154
- response
155
- ;
144
+ let response;
156
145
  if (window.Storage === undefined) {
157
146
  module.error(error.noStorage);
158
147
 
@@ -356,10 +345,8 @@
356
345
 
357
346
  add: {
358
347
  urlData: function (url, urlData) {
359
- var
360
- requiredVariables,
361
- optionalVariables
362
- ;
348
+ let requiredVariables;
349
+ let optionalVariables;
363
350
  if (url) {
364
351
  requiredVariables = url.match(regExp.required);
365
352
  optionalVariables = url.match(regExp.optional);
@@ -367,19 +354,17 @@
367
354
  if (requiredVariables) {
368
355
  module.debug('Looking for required URL variables', requiredVariables);
369
356
  $.each(requiredVariables, function (index, templatedString) {
370
- var
371
- // allow legacy {$var} style
372
- variable = templatedString.indexOf('$') !== -1
373
- ? templatedString.slice(2, -1)
374
- : templatedString.slice(1, -1),
375
- value = $.isPlainObject(urlData) && urlData[variable] !== undefined
376
- ? urlData[variable]
377
- : ($module.data(variable) !== undefined
378
- ? $module.data(variable)
379
- : ($context.data(variable) !== undefined // eslint-disable-line unicorn/no-nested-ternary
380
- ? $context.data(variable)
381
- : urlData[variable]))
382
- ;
357
+ // allow legacy {$var} style
358
+ let variable = templatedString.indexOf('$') !== -1
359
+ ? templatedString.slice(2, -1)
360
+ : templatedString.slice(1, -1);
361
+ let value = $.isPlainObject(urlData) && urlData[variable] !== undefined
362
+ ? urlData[variable]
363
+ : ($module.data(variable) !== undefined
364
+ ? $module.data(variable)
365
+ : ($context.data(variable) !== undefined // eslint-disable-line unicorn/no-nested-ternary
366
+ ? $context.data(variable)
367
+ : urlData[variable]));
383
368
  // remove value
384
369
  if (value === undefined) {
385
370
  module.error(error.requiredParameter, variable, url);
@@ -398,19 +383,17 @@
398
383
  if (optionalVariables) {
399
384
  module.debug('Looking for optional URL variables', requiredVariables);
400
385
  $.each(optionalVariables, function (index, templatedString) {
401
- var
402
- // allow legacy {/$var} style
403
- variable = templatedString.indexOf('$') !== -1
404
- ? templatedString.slice(3, -1)
405
- : templatedString.slice(2, -1),
406
- value = $.isPlainObject(urlData) && urlData[variable] !== undefined
407
- ? urlData[variable]
408
- : ($module.data(variable) !== undefined
409
- ? $module.data(variable)
410
- : ($context.data(variable) !== undefined // eslint-disable-line unicorn/no-nested-ternary
411
- ? $context.data(variable)
412
- : urlData[variable]))
413
- ;
386
+ // allow legacy {/$var} style
387
+ let variable = templatedString.indexOf('$') !== -1
388
+ ? templatedString.slice(3, -1)
389
+ : templatedString.slice(2, -1);
390
+ let value = $.isPlainObject(urlData) && urlData[variable] !== undefined
391
+ ? urlData[variable]
392
+ : ($module.data(variable) !== undefined
393
+ ? $module.data(variable)
394
+ : ($context.data(variable) !== undefined // eslint-disable-line unicorn/no-nested-ternary
395
+ ? $context.data(variable)
396
+ : urlData[variable]));
414
397
  // optional replacement
415
398
  if (value !== undefined) {
416
399
  module.verbose('Optional variable Found', variable, value);
@@ -429,11 +412,9 @@
429
412
  return url;
430
413
  },
431
414
  formData: function (data) {
432
- var
433
- formData = {},
434
- hasOtherData,
435
- useFormDataApi = settings.serializeForm === 'formdata'
436
- ;
415
+ let formData = {};
416
+ let hasOtherData;
417
+ let useFormDataApi = settings.serializeForm === 'formdata';
437
418
  data = data || originalData || settings.data;
438
419
  hasOtherData = $.isPlainObject(data);
439
420
 
@@ -442,16 +423,14 @@
442
423
  settings.processData = settings.processData !== undefined ? settings.processData : false;
443
424
  settings.contentType = settings.contentType !== undefined ? settings.contentType : false;
444
425
  } else {
445
- var
446
- formArray = $form.serializeArray(),
447
- pushes = {},
448
- pushValues = {},
449
- build = function (base, key, value) {
450
- base[key] = value;
451
-
452
- return base;
453
- }
454
- ;
426
+ let formArray = $form.serializeArray();
427
+ let pushes = {};
428
+ let pushValues = {};
429
+ let build = function (base, key, value) {
430
+ base[key] = value;
431
+
432
+ return base;
433
+ };
455
434
  // add files
456
435
  $.each($('input[type="file"]', $form), function (i, tag) {
457
436
  $.each($(tag)[0].files, function (j, file) {
@@ -462,17 +441,15 @@
462
441
  if (!regExp.validate.test(el.name)) {
463
442
  return;
464
443
  }
465
- var
466
- isCheckbox = $('[name="' + el.name + '"]', $form).attr('type') === 'checkbox',
467
- floatValue = parseFloat(el.value),
468
- value = (isCheckbox && el.value === 'on')
444
+ let isCheckbox = $('[name="' + CSS.escape(el.name) + '"]', $form).attr('type') === 'checkbox';
445
+ let floatValue = parseFloat(el.value);
446
+ let value = (isCheckbox && el.value === 'on')
469
447
  || el.value === 'true'
470
448
  || (String(floatValue) === el.value
471
449
  ? floatValue
472
- : (el.value === 'false' ? false : el.value)),
473
- nameKeys = el.name.match(regExp.key) || [],
474
- pushKey = el.name.replace(/\[]$/, '')
475
- ;
450
+ : (el.value === 'false' ? false : el.value));
451
+ let nameKeys = el.name.match(regExp.key) || [];
452
+ let pushKey = el.name.replace(/\[]$/, '');
476
453
  if (!(pushKey in pushes)) {
477
454
  pushes[pushKey] = 0;
478
455
  pushValues[pushKey] = value;
@@ -486,7 +463,7 @@
486
463
  }
487
464
 
488
465
  while (nameKeys.length > 0) {
489
- var k = nameKeys.pop();
466
+ let k = nameKeys.pop();
490
467
 
491
468
  if (k === '' && !Array.isArray(value)) { // foo[]
492
469
  value = build([], pushes[pushKey]++, value);
@@ -544,16 +521,14 @@
544
521
  // nothing special
545
522
  },
546
523
  done: function (response, textStatus, xhr) {
547
- var
548
- context = this,
549
- elapsedTime = Date.now() - requestStartTime,
550
- timeLeft = settings.loadingDuration - elapsedTime,
551
- translatedResponse = isFunction(settings.onResponse)
552
- ? (module.is.expectingJSON() && !settings.rawResponse
553
- ? settings.onResponse.call(context, $.extend(true, {}, response))
554
- : settings.onResponse.call(context, response))
555
- : false
556
- ;
524
+ let context = this;
525
+ let elapsedTime = Date.now() - requestStartTime;
526
+ let timeLeft = settings.loadingDuration - elapsedTime;
527
+ let translatedResponse = isFunction(settings.onResponse)
528
+ ? (module.is.expectingJSON() && !settings.rawResponse
529
+ ? settings.onResponse.call(context, $.extend(true, {}, response))
530
+ : settings.onResponse.call(context, response))
531
+ : false;
557
532
  timeLeft = timeLeft > 0
558
533
  ? timeLeft
559
534
  : 0;
@@ -573,11 +548,9 @@
573
548
  }, timeLeft);
574
549
  },
575
550
  fail: function (xhr, status, httpMessage) {
576
- var
577
- context = this,
578
- elapsedTime = Date.now() - requestStartTime,
579
- timeLeft = settings.loadingDuration - elapsedTime
580
- ;
551
+ let context = this;
552
+ let elapsedTime = Date.now() - requestStartTime;
553
+ let timeLeft = settings.loadingDuration - elapsedTime;
581
554
  timeLeft = timeLeft > 0
582
555
  ? timeLeft
583
556
  : 0;
@@ -603,10 +576,8 @@
603
576
  settings.onSuccess.call(context, response, $module, xhr);
604
577
  },
605
578
  complete: function (firstParameter, secondParameter) {
606
- var
607
- xhr,
608
- response
609
- ;
579
+ let xhr;
580
+ let response;
610
581
  // have to guess callback parameters based on request success
611
582
  if (module.was.successful()) {
612
583
  response = firstParameter;
@@ -619,11 +590,9 @@
619
590
  settings.onComplete.call(context, response, $module, xhr);
620
591
  },
621
592
  fail: function (xhr, status, httpMessage) {
622
- var
623
- // pull response from xhr if available
624
- response = module.get.responseFromXHR(xhr),
625
- errorMessage = module.get.errorFromRequest(response, status, httpMessage)
626
- ;
593
+ // pull response from xhr if available
594
+ let response = module.get.responseFromXHR(xhr);
595
+ let errorMessage = module.get.errorFromRequest(response, status, httpMessage);
627
596
  if (status === 'aborted') {
628
597
  module.debug('XHR Aborted (Most likely caused by page navigation or CORS Policy)', status, httpMessage);
629
598
  settings.onAbort.call(context, status, $module, xhr);
@@ -665,28 +634,24 @@
665
634
  return $.Deferred()
666
635
  .always(module.event.request.complete)
667
636
  .done(module.event.request.done)
668
- .fail(module.event.request.fail)
669
- ;
637
+ .fail(module.event.request.fail);
670
638
  },
671
639
 
672
640
  mockedXHR: function () {
673
- var
674
- // xhr does not simulate these properties of xhr but must return them
675
- textStatus = false,
676
- status = false,
677
- httpMessage = false,
678
- responder = settings.mockResponse || settings.response,
679
- asyncResponder = settings.mockResponseAsync || settings.responseAsync,
680
- asyncCallback,
681
- response,
682
- mockedXHR
683
- ;
641
+ // xhr does not simulate these properties of xhr but must return them
642
+ let textStatus = false;
643
+ let status = false;
644
+ let httpMessage = false;
645
+ let responder = settings.mockResponse || settings.response;
646
+ let asyncResponder = settings.mockResponseAsync || settings.responseAsync;
647
+ let asyncCallback;
648
+ let response;
649
+ let mockedXHR;
684
650
 
685
651
  mockedXHR = $.Deferred()
686
652
  .always(module.event.xhr.complete)
687
653
  .done(module.event.xhr.done)
688
- .fail(module.event.xhr.fail)
689
- ;
654
+ .fail(module.event.xhr.fail);
690
655
 
691
656
  if (responder) {
692
657
  if (isFunction(responder)) {
@@ -716,15 +681,12 @@
716
681
  },
717
682
 
718
683
  xhr: function () {
719
- var
720
- xhr
721
- ;
684
+ let xhr;
722
685
  // ajax request promise
723
686
  xhr = $.ajax(ajaxSettings)
724
687
  .always(module.event.xhr.always)
725
688
  .done(module.event.xhr.done)
726
- .fail(module.event.xhr.fail)
727
- ;
689
+ .fail(module.event.xhr.fail);
728
690
  module.verbose('Created server request', xhr, ajaxSettings);
729
691
 
730
692
  return xhr;
@@ -779,9 +741,7 @@
779
741
  return module.xhr || false;
780
742
  },
781
743
  settings: function () {
782
- var
783
- runSettings
784
- ;
744
+ let runSettings;
785
745
  runSettings = settings.beforeSend.call($module, settings);
786
746
  if (runSettings) {
787
747
  if (runSettings.success !== undefined) {
@@ -812,11 +772,9 @@
812
772
  : $.extend(true, {}, settings);
813
773
  },
814
774
  urlEncodedValue: function (value) {
815
- var
816
- decodedValue = window.decodeURIComponent(value),
817
- encodedValue = window.encodeURIComponent(value),
818
- alreadyEncoded = decodedValue !== value
819
- ;
775
+ let decodedValue = window.decodeURIComponent(value);
776
+ let encodedValue = window.encodeURIComponent(value);
777
+ let alreadyEncoded = decodedValue !== value;
820
778
  if (alreadyEncoded) {
821
779
  module.debug('URL value is already encoded, avoiding double encoding', value);
822
780
 
@@ -827,9 +785,7 @@
827
785
  return encodedValue;
828
786
  },
829
787
  defaultData: function () {
830
- var
831
- data = {}
832
- ;
788
+ let data = {};
833
789
  if (!isWindow(element)) {
834
790
  if (module.is.input()) {
835
791
  data.value = $module.val();
@@ -889,9 +845,7 @@
889
845
  },
890
846
 
891
847
  abort: function () {
892
- var
893
- xhr = module.get.xhr()
894
- ;
848
+ let xhr = module.get.xhr();
895
849
  if (xhr && xhr.state() !== 'resolved') {
896
850
  module.debug('Cancelling API request');
897
851
  xhr.abort();
@@ -955,11 +909,9 @@
955
909
  },
956
910
  performance: {
957
911
  log: function (message) {
958
- var
959
- currentTime,
960
- executionTime,
961
- previousTime
962
- ;
912
+ let currentTime;
913
+ let executionTime;
914
+ let previousTime;
963
915
  if (settings.performance) {
964
916
  currentTime = Date.now();
965
917
  previousTime = time || currentTime;
@@ -978,10 +930,8 @@
978
930
  }, 500);
979
931
  },
980
932
  display: function () {
981
- var
982
- title = settings.name + ':',
983
- totalTime = 0
984
- ;
933
+ let title = settings.name + ':';
934
+ let totalTime = 0;
985
935
  time = false;
986
936
  clearTimeout(module.performance.timer);
987
937
  $.each(performance, function (index, data) {
@@ -1003,22 +953,19 @@
1003
953
  },
1004
954
  },
1005
955
  invoke: function (query, passedArguments, context) {
1006
- var
1007
- object = instance,
1008
- maxDepth,
1009
- found,
1010
- response
1011
- ;
956
+ let object = instance;
957
+ let maxDepth;
958
+ let found;
959
+ let response;
1012
960
  passedArguments = passedArguments || queryArguments;
1013
961
  context = context || element;
1014
962
  if (typeof query === 'string' && object !== undefined) {
1015
963
  query = query.split(/[ .]/);
1016
964
  maxDepth = query.length - 1;
1017
965
  $.each(query, function (depth, value) {
1018
- var camelCaseValue = depth !== maxDepth
966
+ let camelCaseValue = depth !== maxDepth
1019
967
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
1020
- : query
1021
- ;
968
+ : query;
1022
969
  if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
1023
970
  object = object[camelCaseValue];
1024
971
  } else if (object[camelCaseValue] !== undefined) {