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

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 (291) hide show
  1. package/.all-contributorsrc +9 -0
  2. package/.eslintrc.js +0 -10
  3. package/CONTRIBUTING.md +4 -1
  4. package/CONTRIBUTORS.md +1 -0
  5. package/FAQ.md +7 -2
  6. package/README.md +5 -9
  7. package/ROADMAP.md +4 -4
  8. package/SECURITY.md +8 -7
  9. package/changelog-setup.js +64 -70
  10. package/dist/components/accordion.css +1 -1
  11. package/dist/components/accordion.js +103 -142
  12. package/dist/components/accordion.min.css +1 -1
  13. package/dist/components/accordion.min.js +2 -2
  14. package/dist/components/ad.css +1 -1
  15. package/dist/components/ad.min.css +1 -1
  16. package/dist/components/api.js +157 -210
  17. package/dist/components/api.min.js +2 -2
  18. package/dist/components/breadcrumb.css +1 -1
  19. package/dist/components/breadcrumb.min.css +1 -1
  20. package/dist/components/button.css +1 -2
  21. package/dist/components/button.min.css +2 -2
  22. package/dist/components/calendar.css +1 -2
  23. package/dist/components/calendar.js +314 -352
  24. package/dist/components/calendar.min.css +2 -2
  25. package/dist/components/calendar.min.js +2 -2
  26. package/dist/components/card.css +1 -1
  27. package/dist/components/card.min.css +1 -1
  28. package/dist/components/checkbox.css +1 -2
  29. package/dist/components/checkbox.js +85 -135
  30. package/dist/components/checkbox.min.css +2 -2
  31. package/dist/components/checkbox.min.js +2 -2
  32. package/dist/components/comment.css +1 -1
  33. package/dist/components/comment.min.css +1 -1
  34. package/dist/components/container.css +2 -4
  35. package/dist/components/container.min.css +2 -2
  36. package/dist/components/dimmer.css +1 -11
  37. package/dist/components/dimmer.js +61 -94
  38. package/dist/components/dimmer.min.css +2 -2
  39. package/dist/components/dimmer.min.js +2 -2
  40. package/dist/components/divider.css +1 -2
  41. package/dist/components/divider.min.css +2 -2
  42. package/dist/components/dropdown.css +30 -51
  43. package/dist/components/dropdown.js +736 -1055
  44. package/dist/components/dropdown.min.css +2 -2
  45. package/dist/components/dropdown.min.js +2 -2
  46. package/dist/components/embed.css +1 -1
  47. package/dist/components/embed.js +85 -114
  48. package/dist/components/embed.min.css +1 -1
  49. package/dist/components/embed.min.js +2 -2
  50. package/dist/components/emoji.css +3809 -7617
  51. package/dist/components/emoji.min.css +2 -2
  52. package/dist/components/feed.css +1 -1
  53. package/dist/components/feed.min.css +1 -1
  54. package/dist/components/flag.css +1 -1
  55. package/dist/components/flag.min.css +1 -1
  56. package/dist/components/flyout.css +2 -3
  57. package/dist/components/flyout.js +226 -355
  58. package/dist/components/flyout.min.css +2 -2
  59. package/dist/components/flyout.min.js +2 -2
  60. package/dist/components/form.css +5 -95
  61. package/dist/components/form.js +335 -444
  62. package/dist/components/form.min.css +2 -2
  63. package/dist/components/form.min.js +2 -2
  64. package/dist/components/grid.css +2 -58
  65. package/dist/components/grid.min.css +2 -2
  66. package/dist/components/header.css +1 -1
  67. package/dist/components/header.min.css +1 -1
  68. package/dist/components/icon.css +4 -4
  69. package/dist/components/icon.min.css +2 -2
  70. package/dist/components/image.css +1 -1
  71. package/dist/components/image.min.css +1 -1
  72. package/dist/components/input.css +1 -536
  73. package/dist/components/input.min.css +2 -2
  74. package/dist/components/item.css +1 -1
  75. package/dist/components/item.min.css +1 -1
  76. package/dist/components/label.css +1 -1
  77. package/dist/components/label.min.css +1 -1
  78. package/dist/components/list.css +1 -3
  79. package/dist/components/list.min.css +2 -2
  80. package/dist/components/loader.css +1 -1
  81. package/dist/components/loader.min.css +1 -1
  82. package/dist/components/menu.css +40 -48
  83. package/dist/components/menu.min.css +2 -2
  84. package/dist/components/message.css +1 -1
  85. package/dist/components/message.min.css +1 -1
  86. package/dist/components/modal.css +5 -9
  87. package/dist/components/modal.js +261 -384
  88. package/dist/components/modal.min.css +2 -2
  89. package/dist/components/modal.min.js +2 -2
  90. package/dist/components/nag.css +1 -1
  91. package/dist/components/nag.js +68 -98
  92. package/dist/components/nag.min.css +1 -1
  93. package/dist/components/nag.min.js +2 -2
  94. package/dist/components/placeholder.css +1 -1
  95. package/dist/components/placeholder.min.css +1 -1
  96. package/dist/components/popup.css +1 -2
  97. package/dist/components/popup.js +198 -271
  98. package/dist/components/popup.min.css +2 -2
  99. package/dist/components/popup.min.js +2 -2
  100. package/dist/components/progress.css +1 -1
  101. package/dist/components/progress.js +109 -144
  102. package/dist/components/progress.min.css +1 -1
  103. package/dist/components/progress.min.js +2 -2
  104. package/dist/components/rail.css +1 -1
  105. package/dist/components/rail.min.css +1 -1
  106. package/dist/components/rating.css +1 -1
  107. package/dist/components/rating.js +91 -123
  108. package/dist/components/rating.min.css +1 -1
  109. package/dist/components/rating.min.js +2 -2
  110. package/dist/components/reset.css +1 -1
  111. package/dist/components/reset.min.css +1 -1
  112. package/dist/components/reveal.css +1 -1
  113. package/dist/components/reveal.min.css +1 -1
  114. package/dist/components/search.css +2 -9
  115. package/dist/components/search.js +277 -379
  116. package/dist/components/search.min.css +2 -2
  117. package/dist/components/search.min.js +2 -2
  118. package/dist/components/segment.css +2 -7
  119. package/dist/components/segment.min.css +2 -2
  120. package/dist/components/shape.css +1 -2
  121. package/dist/components/shape.js +158 -224
  122. package/dist/components/shape.min.css +2 -2
  123. package/dist/components/shape.min.js +2 -2
  124. package/dist/components/sidebar.css +2 -3
  125. package/dist/components/sidebar.js +124 -206
  126. package/dist/components/sidebar.min.css +2 -2
  127. package/dist/components/sidebar.min.js +2 -2
  128. package/dist/components/site.css +9 -25
  129. package/dist/components/site.js +38 -57
  130. package/dist/components/site.min.css +2 -2
  131. package/dist/components/site.min.js +2 -2
  132. package/dist/components/slider.css +1 -1
  133. package/dist/components/slider.js +246 -329
  134. package/dist/components/slider.min.css +1 -1
  135. package/dist/components/slider.min.js +2 -2
  136. package/dist/components/state.js +70 -100
  137. package/dist/components/state.min.js +2 -2
  138. package/dist/components/statistic.css +1 -1
  139. package/dist/components/statistic.min.css +1 -1
  140. package/dist/components/step.css +1 -1
  141. package/dist/components/step.min.css +1 -1
  142. package/dist/components/sticky.css +1 -1
  143. package/dist/components/sticky.js +135 -180
  144. package/dist/components/sticky.min.css +1 -1
  145. package/dist/components/sticky.min.js +2 -2
  146. package/dist/components/tab.css +1 -1
  147. package/dist/components/tab.js +176 -244
  148. package/dist/components/tab.min.css +1 -1
  149. package/dist/components/tab.min.js +2 -2
  150. package/dist/components/table.css +3 -37
  151. package/dist/components/table.min.css +2 -2
  152. package/dist/components/text.css +1 -1
  153. package/dist/components/text.min.css +1 -1
  154. package/dist/components/toast.css +1 -3
  155. package/dist/components/toast.js +109 -147
  156. package/dist/components/toast.min.css +1 -1
  157. package/dist/components/toast.min.js +2 -2
  158. package/dist/components/transition.css +1 -1
  159. package/dist/components/transition.js +91 -146
  160. package/dist/components/transition.min.css +1 -1
  161. package/dist/components/transition.min.js +2 -2
  162. package/dist/components/visibility.js +146 -224
  163. package/dist/components/visibility.min.js +2 -2
  164. package/dist/semantic.css +3945 -8759
  165. package/dist/semantic.js +4397 -6155
  166. package/dist/semantic.min.css +2 -2
  167. package/dist/semantic.min.js +2 -2
  168. package/examples/assets/show-examples.js +2 -4
  169. package/examples/attached.html +1 -1
  170. package/examples/components/menu.html +1 -1
  171. package/gulpfile.js +5 -7
  172. package/package.json +3 -5
  173. package/scripts/nightly-version.js +7 -10
  174. package/src/README.md +3 -3
  175. package/src/definitions/behaviors/api.js +156 -209
  176. package/src/definitions/behaviors/form.js +334 -443
  177. package/src/definitions/behaviors/state.js +69 -99
  178. package/src/definitions/behaviors/visibility.js +145 -223
  179. package/src/definitions/collections/form.less +1 -13
  180. package/src/definitions/collections/grid.less +1 -61
  181. package/src/definitions/collections/menu.less +101 -107
  182. package/src/definitions/collections/table.less +1 -35
  183. package/src/definitions/elements/input.less +1 -61
  184. package/src/definitions/elements/segment.less +0 -6
  185. package/src/definitions/globals/site.js +37 -56
  186. package/src/definitions/globals/site.less +2 -18
  187. package/src/definitions/modules/accordion.js +102 -141
  188. package/src/definitions/modules/calendar.js +313 -351
  189. package/src/definitions/modules/checkbox.js +84 -134
  190. package/src/definitions/modules/dimmer.js +60 -93
  191. package/src/definitions/modules/dimmer.less +0 -9
  192. package/src/definitions/modules/dropdown.js +735 -1054
  193. package/src/definitions/modules/dropdown.less +31 -47
  194. package/src/definitions/modules/embed.js +84 -113
  195. package/src/definitions/modules/flyout.js +225 -354
  196. package/src/definitions/modules/modal.js +260 -383
  197. package/src/definitions/modules/modal.less +1 -1
  198. package/src/definitions/modules/nag.js +67 -97
  199. package/src/definitions/modules/popup.js +197 -270
  200. package/src/definitions/modules/progress.js +108 -143
  201. package/src/definitions/modules/rating.js +90 -122
  202. package/src/definitions/modules/search.js +276 -378
  203. package/src/definitions/modules/search.less +0 -3
  204. package/src/definitions/modules/shape.js +157 -223
  205. package/src/definitions/modules/sidebar.js +123 -205
  206. package/src/definitions/modules/slider.js +245 -328
  207. package/src/definitions/modules/slider.less +1 -1
  208. package/src/definitions/modules/sticky.js +134 -179
  209. package/src/definitions/modules/tab.js +175 -243
  210. package/src/definitions/modules/toast.js +108 -146
  211. package/src/definitions/modules/toast.less +1 -1
  212. package/src/definitions/modules/transition.js +90 -145
  213. package/src/theme.less +0 -13
  214. package/src/themes/basic/elements/icon.variables +1 -1
  215. package/src/themes/chubby/collections/menu.variables +1 -1
  216. package/src/themes/default/collections/grid.variables +0 -30
  217. package/src/themes/default/collections/menu.variables +23 -23
  218. package/src/themes/default/collections/table.variables +1 -5
  219. package/src/themes/default/elements/icon.variables +3 -3
  220. package/src/themes/default/globals/site.variables +8 -15
  221. package/src/themes/default/globals/variation.variables +3 -3
  222. package/src/themes/default/modules/dropdown.variables +1 -0
  223. package/src/themes/default/modules/slider.variables +1 -1
  224. package/src/themes/github/elements/icon.variables +1 -1
  225. package/src/themes/material/elements/icon.variables +1 -1
  226. package/tasks/README.md +1 -1
  227. package/tasks/admin/components/create.js +89 -122
  228. package/tasks/admin/components/init.js +34 -65
  229. package/tasks/admin/components/update.js +50 -61
  230. package/tasks/admin/distributions/create.js +71 -111
  231. package/tasks/admin/distributions/init.js +32 -63
  232. package/tasks/admin/distributions/update.js +49 -57
  233. package/tasks/admin/publish.js +1 -1
  234. package/tasks/admin/register.js +14 -19
  235. package/tasks/admin/release.js +2 -2
  236. package/tasks/build/assets.js +14 -18
  237. package/tasks/build/css.js +59 -68
  238. package/tasks/build/javascript.js +48 -56
  239. package/tasks/build.js +4 -6
  240. package/tasks/check-install.js +5 -8
  241. package/tasks/clean.js +5 -7
  242. package/tasks/collections/admin.js +14 -16
  243. package/tasks/collections/build.js +6 -8
  244. package/tasks/collections/docs.js +4 -6
  245. package/tasks/collections/install.js +2 -4
  246. package/tasks/collections/rtl.js +2 -4
  247. package/tasks/collections/various.js +2 -4
  248. package/tasks/config/admin/github.js +9 -19
  249. package/tasks/config/admin/templates/README.md +2 -2
  250. package/tasks/config/admin/templates/bower.json +2 -4
  251. package/tasks/config/admin/templates/composer.json +1 -1
  252. package/tasks/config/admin/templates/css-package.js +1 -4
  253. package/tasks/config/admin/templates/less-package.js +1 -3
  254. package/tasks/config/defaults.js +0 -1
  255. package/tasks/config/npm/gulpfile.js +4 -6
  256. package/tasks/config/project/config.js +27 -35
  257. package/tasks/config/project/install.js +64 -82
  258. package/tasks/config/project/release.js +7 -9
  259. package/tasks/config/tasks.js +10 -21
  260. package/tasks/config/user.js +14 -20
  261. package/tasks/docs/build.js +26 -31
  262. package/tasks/docs/metadata.js +30 -39
  263. package/tasks/docs/serve.js +23 -27
  264. package/tasks/install.js +94 -128
  265. package/tasks/rtl/build.js +2 -4
  266. package/tasks/rtl/watch.js +3 -5
  267. package/tasks/watch.js +13 -13
  268. package/test/meteor/fonts.js +1 -2
  269. package/test/modules/module.spec.js +16 -18
  270. package/types/fomantic-ui-calendar.d.ts +1 -1
  271. package/types/fomantic-ui-dropdown.d.ts +45 -1
  272. package/types/fomantic-ui-embed.d.ts +1 -1
  273. package/types/fomantic-ui-flyout.d.ts +1 -1
  274. package/types/fomantic-ui-form.d.ts +0 -7
  275. package/types/fomantic-ui-modal.d.ts +1 -1
  276. package/types/fomantic-ui-search.d.ts +12 -6
  277. package/types/fomantic-ui-toast.d.ts +1 -1
  278. package/src/themes/basic/assets/fonts/icons.woff +0 -0
  279. package/src/themes/default/assets/fonts/Lato-Bold.woff +0 -0
  280. package/src/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
  281. package/src/themes/default/assets/fonts/Lato-Italic.woff +0 -0
  282. package/src/themes/default/assets/fonts/Lato-Regular.woff +0 -0
  283. package/src/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
  284. package/src/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
  285. package/src/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
  286. package/src/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
  287. package/src/themes/default/assets/fonts/brand-icons.woff +0 -0
  288. package/src/themes/default/assets/fonts/icons.woff +0 -0
  289. package/src/themes/default/assets/fonts/outline-icons.woff +0 -0
  290. package/src/themes/github/assets/fonts/octicons.woff +0 -0
  291. package/src/themes/material/assets/fonts/icons.woff +0 -0
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.1+bee406e
2
+ * # Fomantic UI - 2.10.0-beta.11+6d1b302
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(W,e,Y){"use strict";e=void 0!==e&&e.Math===Math?e:globalThis,W.fn.shape=function(m){var v,b=W(this),x=Date.now(),y=[],C=m,S="string"==typeof C,w=[].slice.call(arguments,1);return b.each(function(){var i,n,a=W.isPlainObject(m)?W.extend(!0,{},W.fn.shape.settings,m):W.extend({},W.fn.shape.settings),e=a.namespace,r=a.selector,d=a.error,s=a.className,t="."+e,o="module-"+e,l=W(this),c=l.find(">"+r.sides),u=c.find(">"+r.side),f=!1,g=this,h=l.data(o),p={initialize:function(){p.verbose("Initializing module for",g),p.set.defaultSide(),p.instantiate()},instantiate:function(){p.verbose("Storing instance of module",p),h=p,l.data(o,h)},destroy:function(){p.verbose("Destroying previous module for",g),l.removeData(o).off(t)},refresh:function(){p.verbose("Refreshing selector cache for",g),l=W(g),c=W(this).find(r.sides),u=W(this).find(r.side)},repaint:function(){p.verbose("Forcing repaint event");(c[0]||Y.createElement("div")).offsetWidth},animate:function(e,t){p.verbose("Animating box with properties",e),t=t||function(e){p.verbose("Executing animation callback"),void 0!==e&&e.stopPropagation(),p.reset(),p.set.active()},a.onBeforeChange.call(n[0]),p.verbose("Starting CSS animation"),l.addClass(s.animating),c.css(e).one("transitionend",t),p.set.duration(a.duration),requestAnimationFrame(function(){l.addClass(s.animating),i.addClass(s.hidden)})},queue:function(e){p.debug("Queueing animation of",e),c.one("transitionend",function(){p.debug("Executing queued animation"),setTimeout(function(){l.shape(e)},0)})},reset:function(){p.verbose("Animating states reset"),l.removeClass(s.animating).attr("style","").removeAttr("style"),c.attr("style","").removeAttr("style"),u.attr("style","").removeAttr("style").removeClass(s.hidden),n.removeClass(s.animating).attr("style","").removeAttr("style")},is:{complete:function(){return u.filter("."+s.active)[0]===n[0]},animating:function(){return l.hasClass(s.animating)},hidden:function(){return 0<l.closest(":hidden").length}},set:{defaultSide:function(){i=u.filter("."+s.active),n=0<i.next(r.side).length?i.next(r.side):u.first(),f=!1,p.verbose("Active side set to",i),p.verbose("Next side set to",n)},duration:function(e){e=e||a.duration,p.verbose("Setting animation duration",e="number"==typeof e?e+"ms":e),!a.duration&&0!==a.duration||c.add(u).css({"transition-duration":e})},currentStageSize:function(){var e=u.filter("."+s.active),t=e.outerWidth(!0),e=e.outerHeight(!0);l.css({width:t,height:e})},stageSize:function(){var e=l.clone().addClass(s.loading),t=e.find(">"+r.sides+">"+r.side),i=t.filter("."+s.active),t=f?t.eq(f):0<i.next(r.side).length?i.next(r.side):t.first(),n="next"===a.width?t.outerWidth(!0):"initial"===a.width?l.width():a.width,o="next"===a.height?t.outerHeight(!0):"initial"===a.height?l.height():a.height;i.removeClass(s.active),t.addClass(s.active),e.insertAfter(l),e.remove(),"auto"!==a.width&&(l.css("width",n+a.jitter),p.verbose("Specifying width during animation",n)),"auto"!==a.height&&(l.css("height",o+a.jitter),p.verbose("Specifying height during animation",o))},nextSide:function(e){f=e,n=u.filter(e),f=u.index(n),0===n.length&&(p.set.defaultSide(),p.error(d.side)),p.verbose("Next side manually set to",n)},active:function(){p.verbose("Setting new side to active",n),u.removeClass(s.active),n.addClass(s.active),a.onChange.call(n[0]),p.set.defaultSide()}},flip:{to:function(e,t){var i;p.is.hidden()?p.debug("Module not visible",n):!p.is.complete()||p.is.animating()||a.allowRepeats?(i=p.get.transform[e](),p.is.animating()?p.queue("flip "+e):(p.debug("Flipping "+e,n),p.set.stageSize(),p.stage[t](),p.animate(i))):p.debug("Side already visible",n)},up:function(){p.flip.to("up","above")},down:function(){p.flip.to("down","below")},left:function(){p.flip.to("left","left")},right:function(){p.flip.to("right","right")},over:function(){p.flip.to("over","behind")},back:function(){p.flip.to("back","behind")}},get:{transform:{up:function(){var e=i.outerHeight(!0)/2;return{transform:"translateY("+(n.outerHeight(!0)-e)+"px) translateZ(-"+e+"px) rotateX(-90deg)"}},down:function(){var e=i.outerHeight(!0)/2;return{transform:"translateY(-"+e+"px) translateZ(-"+e+"px) rotateX(90deg)"}},left:function(){var e=i.outerWidth(!0)/2;return{transform:"translateX("+(n.outerWidth(!0)-e)+"px) translateZ(-"+e+"px) rotateY(90deg)"}},right:function(){var e=i.outerWidth(!0)/2;return{transform:"translateX(-"+e+"px) translateZ(-"+e+"px) rotateY(-90deg)"}},over:function(){return{transform:"translateX("+-(i.outerWidth(!0)-n.outerWidth(!0))/2+"px) rotateY(180deg)"}},back:function(){return{transform:"translateX("+-(i.outerWidth(!0)-n.outerWidth(!0))/2+"px) rotateY(-180deg)"}}},nextSide:function(){return 0<i.next(r.side).length?i.next(r.side):u.first()}},stage:{above:function(){var e={origin:(i.outerHeight(!0)-n.outerHeight(!0))/2,depth:{active:n.outerHeight(!0)/2,next:i.outerHeight(!0)/2}};p.verbose("Setting the initial animation position as above",n,e),i.css({transform:"rotateX(0deg)"}),n.addClass(s.animating).css({top:e.origin+"px",transform:"rotateX(90deg) translateZ("+e.depth.next+"px) translateY(-"+e.depth.active+"px)"})},below:function(){var e={origin:(i.outerHeight(!0)-n.outerHeight(!0))/2,depth:{active:n.outerHeight(!0)/2,next:i.outerHeight(!0)/2}};p.verbose("Setting the initial animation position as below",n,e),i.css({transform:"rotateX(0deg)"}),n.addClass(s.animating).css({top:e.origin+"px",transform:"rotateX(-90deg) translateZ("+e.depth.next+"px) translateY("+e.depth.active+"px)"})},left:function(){var e=i.outerWidth(!0),t=n.outerWidth(!0),t={origin:(e-t)/2,depth:{active:t/2,next:e/2}};p.verbose("Setting the initial animation position as left",n,t),i.css({transform:"rotateY(0deg)"}),n.addClass(s.animating).css({left:t.origin+"px",transform:"rotateY(-90deg) translateZ("+t.depth.next+"px) translateX(-"+t.depth.active+"px)"})},right:function(){var e=i.outerWidth(!0),t=n.outerWidth(!0),t={origin:(e-t)/2,depth:{active:t/2,next:e/2}};p.verbose("Setting the initial animation position as right",n,t),i.css({transform:"rotateY(0deg)"}),n.addClass(s.animating).css({left:t.origin+"px",transform:"rotateY(90deg) translateZ("+t.depth.next+"px) translateX("+t.depth.active+"px)"})},behind:function(){var e=i.outerWidth(!0),t=n.outerWidth(!0),t={origin:(e-t)/2,depth:{active:t/2,next:e/2}};p.verbose("Setting the initial animation position as behind",n,t),i.css({transform:"rotateY(0deg)"}),n.addClass(s.animating).css({left:t.origin+"px",transform:"rotateY(-180deg)"})}},setting:function(e,t){if(p.debug("Changing setting",e,t),W.isPlainObject(e))W.extend(!0,a,e);else{if(void 0===t)return a[e];W.isPlainObject(a[e])?W.extend(!0,a[e],t):a[e]=t}},internal:function(e,t){if(W.isPlainObject(e))W.extend(!0,p,e);else{if(void 0===t)return p[e];p[e]=t}},debug:function(){!a.silent&&a.debug&&(a.performance?p.performance.log(arguments):(p.debug=Function.prototype.bind.call(console.info,console,a.name+":"),p.debug.apply(console,arguments)))},verbose:function(){!a.silent&&a.verbose&&a.debug&&(a.performance?p.performance.log(arguments):(p.verbose=Function.prototype.bind.call(console.info,console,a.name+":"),p.verbose.apply(console,arguments)))},error:function(){a.silent||(p.error=Function.prototype.bind.call(console.error,console,a.name+":"),p.error.apply(console,arguments))},performance:{log:function(e){var t,i;a.performance&&(i=(t=Date.now())-(x||t),x=t,y.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:g,"Execution Time":i})),clearTimeout(p.performance.timer),p.performance.timer=setTimeout(function(){p.performance.display()},500)},display:function(){var e=a.name+":",i=0;x=!1,clearTimeout(p.performance.timer),W.each(y,function(e,t){i+=t["Execution Time"]}),e+=" "+i+"ms",1<b.length&&(e+=" ("+b.length+")"),0<y.length&&(console.groupCollapsed(e),console.table?console.table(y):W.each(y,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),y=[]}},invoke:function(n,e,t){var o,a,i,r,s=h;return e=e||w,t=t||g,"string"==typeof n&&void 0!==s&&(n=n.split(/[ .]/),o=n.length-1,W.each(n,function(e,t){var i=e!==o?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(W.isPlainObject(s[i])&&e!==o)s=s[i];else{if(void 0!==s[i])return a=s[i],!1;{if(!W.isPlainObject(s[t])||e===o)return void 0!==s[t]?a=s[t]:p.error(d.method,n),!1;s=s[t]}}})),"function"==typeof(r=a)&&"number"!=typeof r.nodeType?i=a.apply(t,e):void 0!==a&&(i=a),Array.isArray(v)?v.push(i):void 0!==v?v=[v,i]:void 0!==i&&(v=i),a}};S?(void 0===h&&p.initialize(),0<(e=l.find("input")).length?(e.trigger("blur"),setTimeout(function(){p.invoke(C)},150)):p.invoke(C)):(void 0!==h&&h.invoke("destroy"),p.initialize())}),void 0!==v?v:this},W.fn.shape.settings={name:"Shape",silent:!1,debug:!1,verbose:!1,jitter:0,performance:!0,namespace:"shape",width:"initial",height:"initial",onBeforeChange:function(){},onChange:function(){},allowRepeats:!1,duration:!1,error:{side:"You tried to switch to a side that does not exist.",method:"The method you called is not defined"},className:{animating:"animating",hidden:"hidden",loading:"loading",active:"active"},selector:{sides:".sides",side:".side"}}}(jQuery,window,document);
11
+ !function(W,e,Y){"use strict";e=void 0!==e&&e.Math===Math?e:globalThis,W.fn.shape=function(m){let v=W(this),b=Date.now(),x=[],y=m,C="string"==typeof y,S=[].slice.call(arguments,1),w;return v.each(function(){let r=W.isPlainObject(m)?W.extend(!0,{},W.fn.shape.settings,m):W.extend({},W.fn.shape.settings);var e=r.namespace;let s=r.selector,d=r.error,l=r.className,t="."+e,i="module-"+e,c=W(this),n=c.find(">"+s.sides),o=n.find(">"+s.side),u=!1,a,f,g=this,h=c.data(i),p;if(p={initialize:function(){p.verbose("Initializing module for",g),p.set.defaultSide(),p.instantiate()},instantiate:function(){p.verbose("Storing instance of module",p),h=p,c.data(i,h)},destroy:function(){p.verbose("Destroying previous module for",g),c.removeData(i).off(t)},refresh:function(){p.verbose("Refreshing selector cache for",g),c=W(g),n=W(this).find(s.sides),o=W(this).find(s.side)},repaint:function(){p.verbose("Forcing repaint event");(n[0]||Y.createElement("div")).offsetWidth},animate:function(e,t){p.verbose("Animating box with properties",e),t=t||function(e){p.verbose("Executing animation callback"),void 0!==e&&e.stopPropagation(),p.reset(),p.set.active()},r.onBeforeChange.call(f[0]),p.verbose("Starting CSS animation"),c.addClass(l.animating),n.css(e).one("transitionend",t),p.set.duration(r.duration),requestAnimationFrame(function(){c.addClass(l.animating),a.addClass(l.hidden)})},queue:function(e){p.debug("Queueing animation of",e),n.one("transitionend",function(){p.debug("Executing queued animation"),setTimeout(function(){c.shape(e)},0)})},reset:function(){p.verbose("Animating states reset"),c.removeClass(l.animating).attr("style","").removeAttr("style"),n.attr("style","").removeAttr("style"),o.attr("style","").removeAttr("style").removeClass(l.hidden),f.removeClass(l.animating).attr("style","").removeAttr("style")},is:{complete:function(){return o.filter("."+l.active)[0]===f[0]},animating:function(){return c.hasClass(l.animating)},hidden:function(){return 0<c.closest(":hidden").length}},set:{defaultSide:function(){a=o.filter("."+l.active),f=0<a.next(s.side).length?a.next(s.side):o.first(),u=!1,p.verbose("Active side set to",a),p.verbose("Next side set to",f)},duration:function(e){e="number"==typeof(e=e||r.duration)?e+"ms":e,p.verbose("Setting animation duration",e),!r.duration&&0!==r.duration||n.add(o).css({"transition-duration":e})},currentStageSize:function(){let e=o.filter("."+l.active);var t=e.outerWidth(!0),i=e.outerHeight(!0);c.css({width:t,height:i})},stageSize:function(){let e=c.clone().addClass(l.loading),t=e.find(">"+s.sides+">"+s.side),i=t.filter("."+l.active),n=u?t.eq(u):0<i.next(s.side).length?i.next(s.side):t.first();var o="next"===r.width?n.outerWidth(!0):"initial"===r.width?c.width():r.width,a="next"===r.height?n.outerHeight(!0):"initial"===r.height?c.height():r.height;i.removeClass(l.active),n.addClass(l.active),e.insertAfter(c),e.remove(),"auto"!==r.width&&(c.css("width",o+r.jitter),p.verbose("Specifying width during animation",o)),"auto"!==r.height&&(c.css("height",a+r.jitter),p.verbose("Specifying height during animation",a))},nextSide:function(e){u=e,f=o.filter(e),u=o.index(f),0===f.length&&(p.set.defaultSide(),p.error(d.side)),p.verbose("Next side manually set to",f)},active:function(){p.verbose("Setting new side to active",f),o.removeClass(l.active),f.addClass(l.active),r.onChange.call(f[0]),p.set.defaultSide()}},flip:{to:function(e,t){var i;p.is.hidden()?p.debug("Module not visible",f):!p.is.complete()||p.is.animating()||r.allowRepeats?(i=p.get.transform[e](),p.is.animating()?p.queue("flip "+e):(p.debug("Flipping "+e,f),p.set.stageSize(),p.stage[t](),p.animate(i))):p.debug("Side already visible",f)},up:function(){p.flip.to("up","above")},down:function(){p.flip.to("down","below")},left:function(){p.flip.to("left","left")},right:function(){p.flip.to("right","right")},over:function(){p.flip.to("over","behind")},back:function(){p.flip.to("back","behind")}},get:{transform:{up:function(){var e=a.outerHeight(!0)/2;return{transform:"translateY("+(f.outerHeight(!0)-e)+"px) translateZ(-"+e+"px) rotateX(-90deg)"}},down:function(){let e=a.outerHeight(!0)/2;return{transform:"translateY(-"+e+"px) translateZ(-"+e+"px) rotateX(90deg)"}},left:function(){var e=a.outerWidth(!0)/2;return{transform:"translateX("+(f.outerWidth(!0)-e)+"px) translateZ(-"+e+"px) rotateY(90deg)"}},right:function(){let e=a.outerWidth(!0)/2;return{transform:"translateX(-"+e+"px) translateZ(-"+e+"px) rotateY(-90deg)"}},over:function(){let e=-(a.outerWidth(!0)-f.outerWidth(!0))/2;return{transform:"translateX("+e+"px) rotateY(180deg)"}},back:function(){let e=-(a.outerWidth(!0)-f.outerWidth(!0))/2;return{transform:"translateX("+e+"px) rotateY(-180deg)"}}},nextSide:function(){return 0<a.next(s.side).length?a.next(s.side):o.first()}},stage:{above:function(){var e={origin:(a.outerHeight(!0)-f.outerHeight(!0))/2,depth:{active:f.outerHeight(!0)/2,next:a.outerHeight(!0)/2}};p.verbose("Setting the initial animation position as above",f,e),a.css({transform:"rotateX(0deg)"}),f.addClass(l.animating).css({top:e.origin+"px",transform:"rotateX(90deg) translateZ("+e.depth.next+"px) translateY(-"+e.depth.active+"px)"})},below:function(){var e={origin:(a.outerHeight(!0)-f.outerHeight(!0))/2,depth:{active:f.outerHeight(!0)/2,next:a.outerHeight(!0)/2}};p.verbose("Setting the initial animation position as below",f,e),a.css({transform:"rotateX(0deg)"}),f.addClass(l.animating).css({top:e.origin+"px",transform:"rotateX(-90deg) translateZ("+e.depth.next+"px) translateY("+e.depth.active+"px)"})},left:function(){let e=a.outerWidth(!0),t=f.outerWidth(!0);var i={origin:(e-t)/2,depth:{active:t/2,next:e/2}};p.verbose("Setting the initial animation position as left",f,i),a.css({transform:"rotateY(0deg)"}),f.addClass(l.animating).css({left:i.origin+"px",transform:"rotateY(-90deg) translateZ("+i.depth.next+"px) translateX(-"+i.depth.active+"px)"})},right:function(){let e=a.outerWidth(!0),t=f.outerWidth(!0);var i={origin:(e-t)/2,depth:{active:t/2,next:e/2}};p.verbose("Setting the initial animation position as right",f,i),a.css({transform:"rotateY(0deg)"}),f.addClass(l.animating).css({left:i.origin+"px",transform:"rotateY(90deg) translateZ("+i.depth.next+"px) translateX("+i.depth.active+"px)"})},behind:function(){let e=a.outerWidth(!0),t=f.outerWidth(!0);var i={origin:(e-t)/2,depth:{active:t/2,next:e/2}};p.verbose("Setting the initial animation position as behind",f,i),a.css({transform:"rotateY(0deg)"}),f.addClass(l.animating).css({left:i.origin+"px",transform:"rotateY(-180deg)"})}},setting:function(e,t){if(p.debug("Changing setting",e,t),W.isPlainObject(e))W.extend(!0,r,e);else{if(void 0===t)return r[e];W.isPlainObject(r[e])?W.extend(!0,r[e],t):r[e]=t}},internal:function(e,t){if(W.isPlainObject(e))W.extend(!0,p,e);else{if(void 0===t)return p[e];p[e]=t}},debug:function(){!r.silent&&r.debug&&(r.performance?p.performance.log(arguments):(p.debug=Function.prototype.bind.call(console.info,console,r.name+":"),p.debug.apply(console,arguments)))},verbose:function(){!r.silent&&r.verbose&&r.debug&&(r.performance?p.performance.log(arguments):(p.verbose=Function.prototype.bind.call(console.info,console,r.name+":"),p.verbose.apply(console,arguments)))},error:function(){r.silent||(p.error=Function.prototype.bind.call(console.error,console,r.name+":"),p.error.apply(console,arguments))},performance:{log:function(e){var t,i;r.performance&&(i=(t=Date.now())-(b||t),b=t,x.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:g,"Execution Time":i})),clearTimeout(p.performance.timer),p.performance.timer=setTimeout(function(){p.performance.display()},500)},display:function(){let e=r.name+":",i=0;b=!1,clearTimeout(p.performance.timer),W.each(x,function(e,t){i+=t["Execution Time"]}),e+=" "+i+"ms",1<v.length&&(e+=" ("+v.length+")"),0<x.length&&(console.groupCollapsed(e),console.table?console.table(x):W.each(x,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),x=[]}},invoke:function(n,e,t){let o=h,a,r,i;var s;return e=e||S,t=t||g,"string"==typeof n&&void 0!==o&&(n=n.split(/[ .]/),a=n.length-1,W.each(n,function(e,t){var i=e!==a?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(W.isPlainObject(o[i])&&e!==a)o=o[i];else{if(void 0!==o[i])return r=o[i],!1;{if(!W.isPlainObject(o[t])||e===a)return void 0!==o[t]?r=o[t]:p.error(d.method,n),!1;o=o[t]}}})),"function"==typeof(s=r)&&"number"!=typeof s.nodeType?i=r.apply(t,e):void 0!==r&&(i=r),Array.isArray(w)?w.push(i):void 0!==w?w=[w,i]:void 0!==i&&(w=i),r}},C){void 0===h&&p.initialize();let e=c.find("input");0<e.length?(e.trigger("blur"),setTimeout(function(){p.invoke(y)},150)):p.invoke(y)}else void 0!==h&&h.invoke("destroy"),p.initialize()}),void 0!==w?w:this},W.fn.shape.settings={name:"Shape",silent:!1,debug:!1,verbose:!1,jitter:0,performance:!0,namespace:"shape",width:"initial",height:"initial",onBeforeChange:function(){},onChange:function(){},allowRepeats:!1,duration:!1,error:{side:"You tried to switch to a side that does not exist.",method:"The method you called is not defined"},className:{animating:"animating",hidden:"hidden",loading:"loading",active:"active"},selector:{sides:".sides",side:".side"}}}(jQuery,window,document);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.1+bee406e - Sidebar
2
+ * # Fomantic-UI 2.10.0-beta.11+6d1b302 - Sidebar
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -30,8 +30,7 @@
30
30
  border-radius: 0 !important;
31
31
  margin: 0 !important;
32
32
  overflow-y: auto !important;
33
- -ms-scroll-chaining: none;
34
- overscroll-behavior: none;
33
+ overscroll-behavior: none;
35
34
  z-index: 102;
36
35
  }
37
36
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.1+bee406e - Sidebar
2
+ * # Fomantic-UI 2.10.0-beta.11+6d1b302 - Sidebar
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -20,71 +20,68 @@
20
20
  : globalThis;
21
21
 
22
22
  $.fn.sidebar = function (parameters) {
23
- var
24
- $allModules = $(this),
25
- $window = $(window),
26
- $document = $(document),
27
- $body = $('body'),
28
- $html = $('html'),
29
- $head = $('head'),
30
-
31
- time = Date.now(),
32
- performance = [],
33
-
34
- query = arguments[0],
35
- methodInvoked = typeof query === 'string',
36
- queryArguments = [].slice.call(arguments, 1),
37
- contextCheck = function (context, win) {
38
- var $context;
39
- if ([window, document].indexOf(context) >= 0) {
40
- $context = $body;
41
- } else {
42
- $context = $(win.document).find(context);
43
- if ($context.length === 0) {
44
- $context = win.frameElement ? contextCheck(context, win.parent) : $body;
45
- }
23
+ let $allModules = $(this);
24
+ let $window = $(window);
25
+ let $document = $(document);
26
+ let $body = $('body');
27
+ let $html = $('html');
28
+ let $head = $('head');
29
+
30
+ let time = Date.now();
31
+ let performance = [];
32
+
33
+ let query = arguments[0];
34
+ let methodInvoked = typeof query === 'string';
35
+ let queryArguments = [].slice.call(arguments, 1);
36
+ let contextCheck = function (context, win) {
37
+ let $context;
38
+ if ([window, document].indexOf(context) >= 0) {
39
+ $context = $body;
40
+ } else {
41
+ $context = $(win.document).find(context);
42
+ if ($context.length === 0) {
43
+ $context = win.frameElement ? contextCheck(context, win.parent) : $body;
46
44
  }
45
+ }
47
46
 
48
- return $context;
49
- },
50
- returnedValue;
47
+ return $context;
48
+ };
49
+ let returnedValue;
51
50
 
52
51
  $allModules.each(function () {
53
- var
54
- settings = $.isPlainObject(parameters)
55
- ? $.extend(true, {}, $.fn.sidebar.settings, parameters)
56
- : $.extend({}, $.fn.sidebar.settings),
57
-
58
- selector = settings.selector,
59
- className = settings.className,
60
- namespace = settings.namespace,
61
- regExp = settings.regExp,
62
- error = settings.error,
63
-
64
- eventNamespace = '.' + namespace,
65
- moduleNamespace = 'module-' + namespace,
66
-
67
- $module = $(this),
68
- $context = contextCheck(settings.context, window),
69
- isBody = $context[0] === $body[0],
70
-
71
- $sidebars = $module.children(selector.sidebar),
72
- $fixed = $context.children(selector.fixed),
73
- $pusher = $context.children(selector.pusher),
74
- $style,
75
-
76
- element = this,
77
- instance = $module.data(moduleNamespace),
78
-
79
- elementNamespace,
80
- id,
81
- currentScroll,
82
- initialBodyMargin = '',
83
- tempBodyMargin = '',
84
- hadScrollbar = false,
85
-
86
- module
87
- ;
52
+ let settings = $.isPlainObject(parameters)
53
+ ? $.extend(true, {}, $.fn.sidebar.settings, parameters)
54
+ : $.extend({}, $.fn.sidebar.settings);
55
+
56
+ let selector = settings.selector;
57
+ let className = settings.className;
58
+ let namespace = settings.namespace;
59
+ let regExp = settings.regExp;
60
+ let error = settings.error;
61
+
62
+ let eventNamespace = '.' + namespace;
63
+ let moduleNamespace = 'module-' + namespace;
64
+
65
+ let $module = $(this);
66
+ let $context = contextCheck(settings.context, window);
67
+ let isBody = $context[0] === $body[0];
68
+
69
+ let $sidebars = $module.children(selector.sidebar);
70
+ let $fixed = $context.children(selector.fixed);
71
+ let $pusher = $context.children(selector.pusher);
72
+ let $style;
73
+
74
+ let element = this;
75
+ let instance = $module.data(moduleNamespace);
76
+
77
+ let elementNamespace;
78
+ let id;
79
+ let currentScroll;
80
+ let initialBodyMargin = '';
81
+ let tempBodyMargin = '';
82
+ let hadScrollbar = false;
83
+
84
+ let module;
88
85
 
89
86
  module = {
90
87
 
@@ -111,8 +108,7 @@
111
108
  module.verbose('Storing instance of module', module);
112
109
  instance = module;
113
110
  $module
114
- .data(moduleNamespace, module)
115
- ;
111
+ .data(moduleNamespace, module);
116
112
  },
117
113
 
118
114
  create: {
@@ -127,8 +123,7 @@
127
123
  module.verbose('Destroying previous module for', $module);
128
124
  $module
129
125
  .off(eventNamespace)
130
- .removeData(moduleNamespace)
131
- ;
126
+ .removeData(moduleNamespace);
132
127
  // bound by uuid
133
128
  $context.off(elementNamespace);
134
129
  $window.off(elementNamespace);
@@ -138,10 +133,8 @@
138
133
  event: {
139
134
  clickaway: function (event) {
140
135
  if (settings.closable) {
141
- var
142
- clickedInPusher = $pusher.find(event.target).length > 0 || $pusher.is(event.target),
143
- clickedContext = $context.is(event.target)
144
- ;
136
+ let clickedInPusher = $pusher.find(event.target).length > 0 || $pusher.is(event.target);
137
+ let clickedContext = $context.is(event.target);
145
138
  if (clickedInPusher) {
146
139
  module.verbose('User clicked on dimmed page');
147
140
  module.hide();
@@ -175,8 +168,7 @@
175
168
  module.verbose('Adding clickaway events to context', $context);
176
169
  $context
177
170
  .on('click' + elementNamespace, module.event.clickaway)
178
- .on('touchend' + elementNamespace, module.event.clickaway)
179
- ;
171
+ .on('touchend' + elementNamespace, module.event.clickaway);
180
172
  },
181
173
  scrollLock: function () {
182
174
  if (settings.scrollLock) {
@@ -190,11 +182,9 @@
190
182
  }
191
183
  module.verbose('Adding events to contain sidebar scroll');
192
184
  $document
193
- .on('touchmove' + elementNamespace, module.event.touch)
194
- ;
185
+ .on('touchmove' + elementNamespace, module.event.touch);
195
186
  $module
196
- .on('scroll' + eventNamespace, module.event.containScroll)
197
- ;
187
+ .on('scroll' + eventNamespace, module.event.containScroll);
198
188
  },
199
189
  },
200
190
  unbind: {
@@ -215,19 +205,17 @@
215
205
 
216
206
  add: {
217
207
  inlineCSS: function () {
218
- var
219
- width = module.cache.width || $module.outerWidth(),
220
- height = module.cache.height || $module.outerHeight(),
221
- isRTL = module.is.rtl(),
222
- direction = module.get.direction(),
223
- distance = {
224
- left: width,
225
- right: -width,
226
- top: height,
227
- bottom: -height,
228
- },
229
- style
230
- ;
208
+ let width = module.cache.width || $module.outerWidth();
209
+ let height = module.cache.height || $module.outerHeight();
210
+ let isRTL = module.is.rtl();
211
+ let direction = module.get.direction();
212
+ let distance = {
213
+ left: width,
214
+ right: -width,
215
+ top: height,
216
+ bottom: -height,
217
+ };
218
+ let style;
231
219
 
232
220
  if (isRTL) {
233
221
  module.verbose('RTL detected, flipping widths');
@@ -252,32 +240,9 @@
252
240
  + ' }';
253
241
  }
254
242
 
255
- /* IE is only browser not to create context with transforms */
256
- /* https://www.w3.org/Bugs/Public/show_bug.cgi?id=16328 */
257
- if (module.is.ie()) {
258
- if (direction === 'left' || direction === 'right') {
259
- module.debug('Adding CSS rules for animation distance', width);
260
- style += ''
261
- + ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher::after {'
262
- + ' transform: translate3d(' + distance[direction] + 'px, 0, 0);'
263
- + ' }';
264
- } else if (direction === 'top' || direction === 'bottom') {
265
- style += ''
266
- + ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher::after {'
267
- + ' transform: translate3d(0, ' + distance[direction] + 'px, 0);'
268
- + ' }';
269
- }
270
- /* opposite sides visible forces content overlay */
271
- style += ''
272
- + ' body.pushable > .ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .pusher::after,'
273
- + ' body.pushable > .ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .pusher::after {'
274
- + ' transform: translate3d(0, 0, 0);'
275
- + ' }';
276
- }
277
243
  style += '</style>';
278
244
  $style = $(style)
279
- .appendTo($head)
280
- ;
245
+ .appendTo($head);
281
246
  module.debug('Adding sizing css to head', $style);
282
247
  },
283
248
  },
@@ -299,7 +264,7 @@
299
264
  repaint: function () {
300
265
  module.verbose('Forcing repaint event');
301
266
  element.style.display = 'none';
302
- var ignored = element.offsetHeight;
267
+ let ignored = element.offsetHeight;
303
268
  element.scrollTop = element.scrollTop; // eslint-disable-line no-self-assign
304
269
  element.style.display = '';
305
270
  },
@@ -320,8 +285,7 @@
320
285
  .children()
321
286
  .not(selector.omitted)
322
287
  .not($sidebars)
323
- .wrapAll($pusher)
324
- ;
288
+ .wrapAll($pusher);
325
289
  module.refresh();
326
290
  }
327
291
  if ($module.nextAll(selector.pusher).length === 0 || $module.nextAll(selector.pusher)[0] !== $pusher[0]) {
@@ -337,17 +301,14 @@
337
301
  },
338
302
 
339
303
  attachEvents: function (selector, event) {
340
- var
341
- $toggle = $(selector)
342
- ;
304
+ let $toggle = $(selector);
343
305
  event = isFunction(module[event])
344
306
  ? module[event]
345
307
  : module.toggle;
346
308
  if ($toggle.length > 0) {
347
309
  module.debug('Attaching sidebar events to element', selector, event);
348
310
  $toggle
349
- .on('click' + eventNamespace, event)
350
- ;
311
+ .on('click' + eventNamespace, event);
351
312
  } else {
352
313
  module.error(error.notFound, selector);
353
314
  }
@@ -355,7 +316,7 @@
355
316
  can: {
356
317
  leftBodyScrollbar: function () {
357
318
  if (module.cache.leftBodyScrollbar === undefined) {
358
- module.cache.leftBodyScrollbar = module.is.rtl() && ((module.is.iframe && !module.is.firefox()) || module.is.safari() || module.is.edge() || module.is.ie());
319
+ module.cache.leftBodyScrollbar = module.is.rtl() && ((module.is.iframe && !module.is.firefox()) || module.is.safari());
359
320
  }
360
321
 
361
322
  return module.cache.leftBodyScrollbar;
@@ -364,10 +325,8 @@
364
325
  save: {
365
326
  bodyMargin: function () {
366
327
  initialBodyMargin = $context.css((isBody ? 'margin-' : 'padding-') + (module.can.leftBodyScrollbar() ? 'left' : 'right'));
367
- var
368
- bodyMarginRightPixel = parseInt(initialBodyMargin.replace(/[^\d.]/g, ''), 10),
369
- bodyScrollbarWidth = isBody ? window.innerWidth - document.documentElement.clientWidth : $context[0].offsetWidth - $context[0].clientWidth
370
- ;
328
+ let bodyMarginRightPixel = parseInt(initialBodyMargin.replace(/[^\d.]/g, ''), 10);
329
+ let bodyScrollbarWidth = isBody ? window.innerWidth - document.documentElement.clientWidth : $context[0].offsetWidth - $context[0].clientWidth;
371
330
  tempBodyMargin = bodyMarginRightPixel + bodyScrollbarWidth;
372
331
  },
373
332
  },
@@ -389,7 +348,7 @@
389
348
  if (module.othersActive()) {
390
349
  module.debug('Other sidebars currently visible');
391
350
  if (settings.exclusive) {
392
- // if not overlay queue animation after hide
351
+ // if not overlay, queue animation after hide
393
352
  if (settings.transition !== 'overlay') {
394
353
  module.hideOthers(module.show);
395
354
 
@@ -438,11 +397,9 @@
438
397
  },
439
398
 
440
399
  hideOthers: function (callback) {
441
- var
442
- $otherSidebars = $sidebars.not($module).filter('.' + className.visible),
443
- sidebarCount = $otherSidebars.length,
444
- callbackCount = 0
445
- ;
400
+ let $otherSidebars = $sidebars.not($module).filter('.' + className.visible);
401
+ let sidebarCount = $otherSidebars.length;
402
+ let callbackCount = 0;
446
403
  callback = callback || function () {};
447
404
  $otherSidebars
448
405
  .sidebar('hide', function () {
@@ -450,8 +407,7 @@
450
407
  if (callbackCount === sidebarCount) {
451
408
  callback();
452
409
  }
453
- })
454
- ;
410
+ });
455
411
  },
456
412
 
457
413
  toggle: function () {
@@ -464,15 +420,13 @@
464
420
  },
465
421
 
466
422
  pushPage: function (callback) {
467
- var
468
- transition = module.get.transition(),
469
- $transition = transition === 'overlay' || module.othersActive()
470
- ? $module
471
- : $pusher,
472
- animate,
473
- dim,
474
- transitionEnd
475
- ;
423
+ let transition = module.get.transition();
424
+ let $transition = transition === 'overlay' || module.othersActive()
425
+ ? $module
426
+ : $pusher;
427
+ let animate;
428
+ let dim;
429
+ let transitionEnd;
476
430
  callback = isFunction(callback)
477
431
  ? callback
478
432
  : function () {};
@@ -510,14 +464,12 @@
510
464
  },
511
465
 
512
466
  pullPage: function (callback) {
513
- var
514
- transition = module.get.transition(),
515
- $transition = transition === 'overlay' || module.othersActive()
516
- ? $module
517
- : $pusher,
518
- animate,
519
- transitionEnd
520
- ;
467
+ let transition = module.get.transition();
468
+ let $transition = transition === 'overlay' || module.othersActive()
469
+ ? $module
470
+ : $pusher;
471
+ let animate;
472
+ let transitionEnd;
521
473
  callback = isFunction(callback)
522
474
  ? callback
523
475
  : function () {};
@@ -575,13 +527,11 @@
575
527
 
576
528
  set: {
577
529
  bodyMargin: function () {
578
- var position = module.can.leftBodyScrollbar() ? 'left' : 'right';
530
+ let position = module.can.leftBodyScrollbar() ? 'left' : 'right';
579
531
  $context.css((isBody ? 'margin-' : 'padding-') + position, tempBodyMargin + 'px');
580
532
  $context.find(selector.bodyFixed.replace('right', position)).each(function () {
581
- var
582
- el = $(this),
583
- attribute = el.css('position') === 'fixed' ? 'padding-' + position : position
584
- ;
533
+ let el = $(this);
534
+ let attribute = el.css('position') === 'fixed' ? 'padding-' + position : position;
585
535
  el.css(attribute, 'calc(' + el.css(attribute) + ' + ' + tempBodyMargin + 'px)');
586
536
  });
587
537
  },
@@ -675,13 +625,11 @@
675
625
  },
676
626
  restore: {
677
627
  bodyMargin: function () {
678
- var position = module.can.leftBodyScrollbar() ? 'left' : 'right';
628
+ let position = module.can.leftBodyScrollbar() ? 'left' : 'right';
679
629
  $context.css((isBody ? 'margin-' : 'padding-') + position, initialBodyMargin);
680
630
  $context.find(selector.bodyFixed.replace('right', position)).each(function () {
681
- var
682
- el = $(this),
683
- attribute = el.css('position') === 'fixed' ? 'padding-' + position : position
684
- ;
631
+ let el = $(this);
632
+ let attribute = el.css('position') === 'fixed' ? 'padding-' + position : position;
685
633
  el.css(attribute, '');
686
634
  });
687
635
  },
@@ -701,10 +649,8 @@
701
649
  return className.left;
702
650
  },
703
651
  transition: function () {
704
- var
705
- direction = module.get.direction(),
706
- transition
707
- ;
652
+ let direction = module.get.direction();
653
+ let transition;
708
654
  transition = module.is.mobile()
709
655
  ? (settings.mobileTransition === 'auto'
710
656
  ? settings.defaultTransition.mobile[direction]
@@ -730,13 +676,6 @@
730
676
 
731
677
  return module.cache.isSafari;
732
678
  },
733
- edge: function () {
734
- if (module.cache.isEdge === undefined) {
735
- module.cache.isEdge = !!window.setImmediate && !module.is.ie();
736
- }
737
-
738
- return module.cache.isEdge;
739
- },
740
679
  firefox: function () {
741
680
  if (module.cache.isFirefox === undefined) {
742
681
  module.cache.isFirefox = !!window.InstallTrigger;
@@ -747,23 +686,9 @@
747
686
  iframe: function () {
748
687
  return !(self === top);
749
688
  },
750
- ie: function () {
751
- if (module.cache.isIE === undefined) {
752
- var
753
- isIE11 = !window.ActiveXObject && 'ActiveXObject' in window,
754
- isIE = 'ActiveXObject' in window
755
- ;
756
- module.cache.isIE = isIE11 || isIE;
757
- }
758
-
759
- return module.cache.isIE;
760
- },
761
-
762
689
  mobile: function () {
763
- var
764
- userAgent = navigator.userAgent,
765
- isMobile = userAgent.match(regExp.mobile)
766
- ;
690
+ let userAgent = navigator.userAgent;
691
+ let isMobile = userAgent.match(regExp.mobile);
767
692
  if (isMobile) {
768
693
  module.verbose('Browser was found to be mobile', userAgent);
769
694
 
@@ -853,11 +778,9 @@
853
778
  },
854
779
  performance: {
855
780
  log: function (message) {
856
- var
857
- currentTime,
858
- executionTime,
859
- previousTime
860
- ;
781
+ let currentTime;
782
+ let executionTime;
783
+ let previousTime;
861
784
  if (settings.performance) {
862
785
  currentTime = Date.now();
863
786
  previousTime = time || currentTime;
@@ -876,10 +799,8 @@
876
799
  }, 500);
877
800
  },
878
801
  display: function () {
879
- var
880
- title = settings.name + ':',
881
- totalTime = 0
882
- ;
802
+ let title = settings.name + ':';
803
+ let totalTime = 0;
883
804
  time = false;
884
805
  clearTimeout(module.performance.timer);
885
806
  $.each(performance, function (index, data) {
@@ -901,22 +822,19 @@
901
822
  },
902
823
  },
903
824
  invoke: function (query, passedArguments, context) {
904
- var
905
- object = instance,
906
- maxDepth,
907
- found,
908
- response
909
- ;
825
+ let object = instance;
826
+ let maxDepth;
827
+ let found;
828
+ let response;
910
829
  passedArguments = passedArguments || queryArguments;
911
830
  context = context || element;
912
831
  if (typeof query === 'string' && object !== undefined) {
913
832
  query = query.split(/[ .]/);
914
833
  maxDepth = query.length - 1;
915
834
  $.each(query, function (depth, value) {
916
- var camelCaseValue = depth !== maxDepth
835
+ let camelCaseValue = depth !== maxDepth
917
836
  ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
918
- : query
919
- ;
837
+ : query;
920
838
  if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
921
839
  object = object[camelCaseValue];
922
840
  } else if (object[camelCaseValue] !== undefined) {