fomantic-ui 2.10.0-beta.4 → 2.10.0-beta.40

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 (246) hide show
  1. package/.eslintrc.js +0 -10
  2. package/CHANGELOG.md +5289 -2325
  3. package/README.md +4 -5
  4. package/changelog-setup.js +85 -69
  5. package/changelog-template.hbs +256 -251
  6. package/dist/components/accordion.css +1 -1
  7. package/dist/components/accordion.js +103 -142
  8. package/dist/components/accordion.min.css +1 -1
  9. package/dist/components/accordion.min.js +2 -2
  10. package/dist/components/ad.css +1 -1
  11. package/dist/components/ad.min.css +1 -1
  12. package/dist/components/api.js +152 -205
  13. package/dist/components/api.min.js +2 -2
  14. package/dist/components/breadcrumb.css +1 -1
  15. package/dist/components/breadcrumb.min.css +1 -1
  16. package/dist/components/button.css +1 -2
  17. package/dist/components/button.min.css +2 -2
  18. package/dist/components/calendar.css +1 -1
  19. package/dist/components/calendar.js +308 -346
  20. package/dist/components/calendar.min.css +1 -1
  21. package/dist/components/calendar.min.js +2 -2
  22. package/dist/components/card.css +1 -1
  23. package/dist/components/card.min.css +1 -1
  24. package/dist/components/checkbox.css +1 -1
  25. package/dist/components/checkbox.js +85 -127
  26. package/dist/components/checkbox.min.css +1 -1
  27. package/dist/components/checkbox.min.js +2 -2
  28. package/dist/components/comment.css +1 -1
  29. package/dist/components/comment.min.css +1 -1
  30. package/dist/components/container.css +1 -1
  31. package/dist/components/container.min.css +1 -1
  32. package/dist/components/dimmer.css +1 -1
  33. package/dist/components/dimmer.js +58 -91
  34. package/dist/components/dimmer.min.css +1 -1
  35. package/dist/components/dimmer.min.js +2 -2
  36. package/dist/components/divider.css +1 -1
  37. package/dist/components/divider.min.css +1 -1
  38. package/dist/components/dropdown.css +7 -5
  39. package/dist/components/dropdown.js +744 -1071
  40. package/dist/components/dropdown.min.css +2 -2
  41. package/dist/components/dropdown.min.js +2 -2
  42. package/dist/components/embed.css +1 -1
  43. package/dist/components/embed.js +83 -113
  44. package/dist/components/embed.min.css +1 -1
  45. package/dist/components/embed.min.js +2 -2
  46. package/dist/components/emoji.css +3809 -7617
  47. package/dist/components/emoji.min.css +2 -2
  48. package/dist/components/feed.css +1 -1
  49. package/dist/components/feed.min.css +1 -1
  50. package/dist/components/flag.css +1 -1
  51. package/dist/components/flag.min.css +1 -1
  52. package/dist/components/flyout.css +1 -1
  53. package/dist/components/flyout.js +225 -314
  54. package/dist/components/flyout.min.css +1 -1
  55. package/dist/components/flyout.min.js +2 -2
  56. package/dist/components/form.css +1 -1
  57. package/dist/components/form.js +325 -429
  58. package/dist/components/form.min.css +1 -1
  59. package/dist/components/form.min.js +2 -2
  60. package/dist/components/grid.css +1 -1
  61. package/dist/components/grid.min.css +1 -1
  62. package/dist/components/header.css +1 -1
  63. package/dist/components/header.min.css +1 -1
  64. package/dist/components/icon.css +1 -1
  65. package/dist/components/icon.min.css +1 -1
  66. package/dist/components/image.css +1 -1
  67. package/dist/components/image.min.css +1 -1
  68. package/dist/components/input.css +1 -1
  69. package/dist/components/input.min.css +1 -1
  70. package/dist/components/item.css +1 -1
  71. package/dist/components/item.min.css +1 -1
  72. package/dist/components/label.css +2 -1
  73. package/dist/components/label.min.css +2 -2
  74. package/dist/components/list.css +1 -1
  75. package/dist/components/list.min.css +1 -1
  76. package/dist/components/loader.css +1 -1
  77. package/dist/components/loader.min.css +1 -1
  78. package/dist/components/menu.css +40 -40
  79. package/dist/components/menu.min.css +2 -2
  80. package/dist/components/message.css +1 -1
  81. package/dist/components/message.min.css +1 -1
  82. package/dist/components/modal.css +3 -3
  83. package/dist/components/modal.js +259 -358
  84. package/dist/components/modal.min.css +2 -2
  85. package/dist/components/modal.min.js +2 -2
  86. package/dist/components/nag.css +1 -1
  87. package/dist/components/nag.js +67 -97
  88. package/dist/components/nag.min.css +1 -1
  89. package/dist/components/nag.min.js +2 -2
  90. package/dist/components/placeholder.css +1 -1
  91. package/dist/components/placeholder.min.css +1 -1
  92. package/dist/components/popup.css +1 -1
  93. package/dist/components/popup.js +190 -264
  94. package/dist/components/popup.min.css +1 -1
  95. package/dist/components/popup.min.js +2 -2
  96. package/dist/components/progress.css +1 -1
  97. package/dist/components/progress.js +103 -138
  98. package/dist/components/progress.min.css +1 -1
  99. package/dist/components/progress.min.js +2 -2
  100. package/dist/components/rail.css +1 -1
  101. package/dist/components/rail.min.css +1 -1
  102. package/dist/components/rating.css +1 -1
  103. package/dist/components/rating.js +90 -123
  104. package/dist/components/rating.min.css +1 -1
  105. package/dist/components/rating.min.js +2 -2
  106. package/dist/components/reset.css +1 -1
  107. package/dist/components/reset.min.css +1 -1
  108. package/dist/components/reveal.css +1 -1
  109. package/dist/components/reveal.min.css +1 -1
  110. package/dist/components/search.css +1 -1
  111. package/dist/components/search.js +270 -373
  112. package/dist/components/search.min.css +1 -1
  113. package/dist/components/search.min.js +2 -2
  114. package/dist/components/segment.css +1 -1
  115. package/dist/components/segment.min.css +1 -1
  116. package/dist/components/shape.css +1 -1
  117. package/dist/components/shape.js +157 -223
  118. package/dist/components/shape.min.css +1 -1
  119. package/dist/components/shape.min.js +2 -2
  120. package/dist/components/sidebar.css +1 -1
  121. package/dist/components/sidebar.js +125 -165
  122. package/dist/components/sidebar.min.css +1 -1
  123. package/dist/components/sidebar.min.js +2 -2
  124. package/dist/components/site.css +1 -1
  125. package/dist/components/site.js +38 -57
  126. package/dist/components/site.min.css +1 -1
  127. package/dist/components/site.min.js +2 -2
  128. package/dist/components/slider.css +1 -1
  129. package/dist/components/slider.js +242 -325
  130. package/dist/components/slider.min.css +1 -1
  131. package/dist/components/slider.min.js +2 -2
  132. package/dist/components/state.js +68 -98
  133. package/dist/components/state.min.js +2 -2
  134. package/dist/components/statistic.css +1 -1
  135. package/dist/components/statistic.min.css +1 -1
  136. package/dist/components/step.css +1 -1
  137. package/dist/components/step.min.css +1 -1
  138. package/dist/components/sticky.css +1 -1
  139. package/dist/components/sticky.js +131 -176
  140. package/dist/components/sticky.min.css +1 -1
  141. package/dist/components/sticky.min.js +2 -2
  142. package/dist/components/tab.css +1 -1
  143. package/dist/components/tab.js +168 -233
  144. package/dist/components/tab.min.css +1 -1
  145. package/dist/components/tab.min.js +2 -2
  146. package/dist/components/table.css +8 -8
  147. package/dist/components/table.min.css +2 -2
  148. package/dist/components/text.css +1 -1
  149. package/dist/components/text.min.css +1 -1
  150. package/dist/components/toast.css +1 -1
  151. package/dist/components/toast.js +104 -143
  152. package/dist/components/toast.min.css +1 -1
  153. package/dist/components/toast.min.js +2 -2
  154. package/dist/components/transition.css +1 -1
  155. package/dist/components/transition.js +86 -141
  156. package/dist/components/transition.min.css +1 -1
  157. package/dist/components/transition.min.js +2 -2
  158. package/dist/components/visibility.js +145 -223
  159. package/dist/components/visibility.min.js +2 -2
  160. package/dist/semantic.css +3916 -7722
  161. package/dist/semantic.js +4324 -5973
  162. package/dist/semantic.min.css +2 -2
  163. package/dist/semantic.min.js +2 -2
  164. package/examples/assets/show-examples.js +2 -4
  165. package/examples/attached.html +1 -1
  166. package/examples/components/menu.html +1 -1
  167. package/gulpfile.js +5 -7
  168. package/package.json +1 -3
  169. package/scripts/nightly-version.js +7 -10
  170. package/src/definitions/behaviors/api.js +151 -204
  171. package/src/definitions/behaviors/form.js +324 -428
  172. package/src/definitions/behaviors/state.js +67 -97
  173. package/src/definitions/behaviors/visibility.js +144 -222
  174. package/src/definitions/collections/menu.less +101 -96
  175. package/src/definitions/collections/table.less +7 -7
  176. package/src/definitions/elements/button.less +0 -1
  177. package/src/definitions/elements/label.less +1 -0
  178. package/src/definitions/globals/site.js +37 -56
  179. package/src/definitions/modules/accordion.js +102 -141
  180. package/src/definitions/modules/calendar.js +307 -345
  181. package/src/definitions/modules/checkbox.js +84 -126
  182. package/src/definitions/modules/dimmer.js +57 -90
  183. package/src/definitions/modules/dropdown.js +743 -1070
  184. package/src/definitions/modules/dropdown.less +11 -5
  185. package/src/definitions/modules/embed.js +82 -112
  186. package/src/definitions/modules/flyout.js +224 -313
  187. package/src/definitions/modules/modal.js +258 -357
  188. package/src/definitions/modules/modal.less +1 -1
  189. package/src/definitions/modules/nag.js +66 -96
  190. package/src/definitions/modules/popup.js +189 -263
  191. package/src/definitions/modules/progress.js +102 -137
  192. package/src/definitions/modules/rating.js +89 -122
  193. package/src/definitions/modules/search.js +269 -372
  194. package/src/definitions/modules/shape.js +156 -222
  195. package/src/definitions/modules/sidebar.js +124 -164
  196. package/src/definitions/modules/slider.js +241 -324
  197. package/src/definitions/modules/sticky.js +130 -175
  198. package/src/definitions/modules/tab.js +167 -232
  199. package/src/definitions/modules/toast.js +103 -142
  200. package/src/definitions/modules/transition.js +85 -140
  201. package/src/themes/chubby/collections/menu.variables +1 -1
  202. package/src/themes/default/collections/menu.variables +23 -23
  203. package/src/themes/default/globals/variation.variables +3 -2
  204. package/src/themes/default/modules/dropdown.variables +1 -0
  205. package/src/themes/default/modules/modal.variables +1 -1
  206. package/tasks/admin/components/create.js +88 -108
  207. package/tasks/admin/components/init.js +26 -32
  208. package/tasks/admin/components/update.js +46 -53
  209. package/tasks/admin/distributions/create.js +71 -101
  210. package/tasks/admin/distributions/init.js +27 -33
  211. package/tasks/admin/distributions/update.js +45 -52
  212. package/tasks/admin/register.js +11 -15
  213. package/tasks/build/assets.js +14 -18
  214. package/tasks/build/css.js +54 -63
  215. package/tasks/build/javascript.js +45 -53
  216. package/tasks/build.js +4 -6
  217. package/tasks/check-install.js +5 -7
  218. package/tasks/clean.js +2 -4
  219. package/tasks/collections/admin.js +13 -15
  220. package/tasks/collections/build.js +6 -8
  221. package/tasks/collections/docs.js +2 -4
  222. package/tasks/collections/install.js +2 -4
  223. package/tasks/collections/rtl.js +2 -4
  224. package/tasks/collections/various.js +2 -4
  225. package/tasks/config/admin/github.js +7 -9
  226. package/tasks/config/admin/templates/css-package.js +1 -3
  227. package/tasks/config/admin/templates/less-package.js +1 -3
  228. package/tasks/config/defaults.js +0 -1
  229. package/tasks/config/npm/gulpfile.js +4 -6
  230. package/tasks/config/project/config.js +22 -30
  231. package/tasks/config/project/install.js +61 -78
  232. package/tasks/config/project/release.js +6 -8
  233. package/tasks/config/tasks.js +8 -12
  234. package/tasks/config/user.js +13 -17
  235. package/tasks/docs/build.js +26 -31
  236. package/tasks/docs/metadata.js +24 -30
  237. package/tasks/docs/serve.js +20 -26
  238. package/tasks/install.js +81 -109
  239. package/tasks/rtl/build.js +2 -4
  240. package/tasks/rtl/watch.js +2 -4
  241. package/tasks/watch.js +9 -11
  242. package/test/meteor/fonts.js +1 -2
  243. package/test/modules/module.spec.js +16 -18
  244. package/types/fomantic-ui-dropdown.d.ts +44 -0
  245. package/types/fomantic-ui-embed.d.ts +1 -1
  246. package/types/fomantic-ui-search.d.ts +6 -6
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Flyout
2
+ * # Fomantic-UI 2.10.0-beta.40+b480ca2 - Flyout
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.4+fcf090f
2
+ * # Fomantic UI - 2.10.0-beta.40+b480ca2
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(Q,W,U){"use strict";function _(e){return"function"==typeof e&&"number"!=typeof e.nodeType}W=void 0!==W&&W.Math===Math?W:globalThis,Q.fn.flyout=function(D){var N,e=Q(this),L=Q(W),O=Q(U),B=(Q("html"),Q("head")),z=Q("body"),R=Date.now(),q=[],I=D,j="string"==typeof I,K=[].slice.call(arguments,1),V=function(e,t){var n;return 0<=[W,U].indexOf(e)?n=z:0===(n=Q(t.document).find(e)).length&&(n=t.frameElement?V(e,t.parent):z),n};return e.each(function(){var n,e,o,s,t,i,r,l=Q.isPlainObject(D)?Q.extend(!0,{},Q.fn.flyout.settings,D):Q.extend({},Q.fn.flyout.settings),c=l.selector,a=l.className,u=l.namespace,d=l.fields,f=l.regExp,h=l.error,g="."+u,p="module-"+u,v=Q(this),m=V(l.context,W),b=v.find(c.close),y=v.children(c.flyout),k=m.children(c.pusher),x=v.hasClass("flyout"),S=this,A=x?v.data(p):void 0,w=!1,C=m[0]===z[0],T="",F="",H=!1,M=!1,P=!1,E={initialize:function(){var s;E.debug("Initializing flyout",D),E.create.id(),x||(E.create.flyout(),_(l.onHidden)||(l.onHidden=function(){E.destroy(),v.remove()}),l.autoShow||(l.autoShow=!0)),v.addClass(l.class),""!==l.title&&v.find(c.header).html(E.helpers.escape(l.title,l.preserveHTML)).addClass(l.classTitle),""!==l.content&&v.find(c.content).html(E.helpers.escape(l.content,l.preserveHTML)).addClass(l.classContent),E.has.configActions()&&(0===(s=v.find(c.actions).addClass(l.classActions)).length?s=Q("<div/>",{class:a.actions+" "+(l.classActions||"")}).appendTo(v):s.empty(),l.actions.forEach(function(e){var t=e[d.icon]?"<i "+(e[d.text]?'aria-hidden="true"':"")+' class="'+E.helpers.deQuote(e[d.icon])+' icon"></i>':"",n=E.helpers.escape(e[d.text]||"",l.preserveHTML),i=E.helpers.deQuote(e[d.class]||""),o=e[d.click]&&_(e[d.click])?e[d.click]:function(){};s.append(Q("<button/>",{html:t+n,"aria-label":(e[d.text]||e[d.icon]||"").replace(/<[^>]+(>|$)/g,""),class:a.button+" "+i,on:{click:function(){!1!==o.call(S,v)&&E.hide()}}}))})),l.delaySetup?requestAnimationFrame(E.setup.layout):E.setup.layout(),requestAnimationFrame(function(){E.setup.cache()}),"left"!==E.get.direction()&&"right"!==E.get.direction()||(E.setup.heights(),E.bind.resize()),E.bind.events(),E.observeChanges(),E.instantiate(),l.autoShow&&E.show()},instantiate:function(){E.verbose("Storing instance of module",E),A=E,v.data(p,A)},create:{flyout:function(){var e;E.verbose("Programmatically create flyout",m),v=Q("<div/>",{class:a.flyout,role:"dialog","aria-modal":l.dimPage}),l.closeIcon&&(b=Q("<i/>",{class:a.close,role:"button",tabindex:0,"aria-label":l.text.close}),v.append(b)),""!==l.title&&(e="_"+E.get.id()+"title",v.attr("aria-labelledby",e),Q("<div/>",{class:a.header,id:e}).appendTo(v)),""!==l.content&&(e="_"+E.get.id()+"desc",v.attr("aria-describedby",e),Q("<div/>",{class:a.content,id:e}).appendTo(v)),E.has.configActions()&&Q("<div/>",{class:a.actions}).appendTo(v),v.prependTo(m),S=v[0]},id:function(){t=(Math.random().toString(16)+"000000000").slice(2,10),s="."+t,E.verbose("Creating unique id for element",t)}},destroy:function(){i&&i.disconnect(),E.verbose("Destroying previous module for",v),v.off(g).removeData(p),b.off(s),n&&n.off(s),m.off(s),L.off(s),O.off(s)},event:{keyboard:function(e){e.which===l.keys.escape&&(l.closable?(E.debug("Escape key pressed hiding flyout"),E.hide()):E.debug("Escape key pressed, but closable is set to false"),e.preventDefault())},resize:function(){E.setup.heights()},focus:function(){M=!0},click:function(e){M&&U.activeElement!==e.target&&E.is.visible()&&l.autofocus&&l.dimPage&&0===Q(U.activeElement).closest(c.flyout).length&&requestAnimationFrame(E.set.autofocus),M=!1},clickaway:function(e){var t;l.closable&&(t=0<k.find(e.target).length||k.is(e.target),e=m.is(e.target),t&&(E.verbose("User clicked on dimmed page"),E.hide()),e&&(E.verbose("User clicked on dimmable context (scaled out page)"),E.hide()))},close:function(e){E.hide()},closeKeyUp:function(e){e=e.which;e!==l.keys.enter&&e!==l.keys.space||E.hide()},inputKeyDown:{first:function(e){e.which===l.keys.tab&&e.shiftKey&&(n.last().trigger("focus"),e.preventDefault())},last:function(e){e.which!==l.keys.tab||e.shiftKey||(n.first().trigger("focus"),e.preventDefault())}},approve:function(e){w||!1===l.onApprove.call(E.element,Q(this))?E.verbose("Approve callback returned false cancelling close"):(w=!0,E.hide(function(){w=!1}))},deny:function(e){w||!1===l.onDeny.call(E.element,Q(this))?E.verbose("Deny callback returned false cancelling close"):(w=!0,E.hide(function(){w=!1}))},touch:function(e){},containScroll:function(e){S.scrollTop<=0&&(S.scrollTop=1),S.scrollTop+S.offsetHeight>=S.scrollHeight&&(S.scrollTop=S.scrollHeight-S.offsetHeight-1)},scroll:function(e){0===Q(e.target).closest(c.flyout).length&&e.preventDefault()}},bind:{resize:function(){E.verbose("Adding resize event to window",L),L.on("resize"+s,E.event.resize)},events:function(){E.verbose("Attaching events"),v.on("click"+g,c.close,E.event.close).on("click"+g,c.approve,E.event.approve).on("click"+g,c.deny,E.event.deny),b.on("keyup"+s,E.event.closeKeyUp),L.on("focus"+s,E.event.focus),m.on("click"+s,E.event.click)},clickaway:function(){E.verbose("Adding clickaway events to context",m),m.on("click"+s,E.event.clickaway).on("touchend"+s,E.event.clickaway)},scrollLock:function(){l.scrollLock&&(E.debug("Disabling page scroll"),(H=E.has.scrollbar())&&(E.save.bodyMargin(),E.set.bodyMargin()),m.addClass(a.locked)),E.verbose("Adding events to contain flyout scroll"),O.on("touchmove"+s,E.event.touch),v.on("scroll"+g,E.event.containScroll)}},unbind:{clickaway:function(){E.verbose("Removing clickaway events from context",m),m.off(s)},scrollLock:function(){E.verbose("Removing scroll lock from page"),H&&E.restore.bodyMargin(),m.removeClass(a.locked),O.off(s),v.off("scroll"+g)}},add:{inlineCSS:function(){var e=E.cache.width||v.outerWidth(),t=E.cache.height||v.outerHeight(),n=E.is.rtl(),i=E.get.direction(),t={left:e,right:-e,top:t,bottom:-t};n&&(E.verbose("RTL detected, flipping widths"),t.left=-e,t.right=e),n="<style>","left"===i||"right"===i?(E.debug("Adding CSS rules for animation distance",e),n+=" .ui.visible."+i+".flyout ~ .fixed, .ui.visible."+i+".flyout ~ .pusher { transform: translate3d("+t[i]+"px, 0, 0); }"):"top"!==i&&"bottom"!==i||(n+=" .ui.visible."+i+".flyout ~ .fixed, .ui.visible."+i+".flyout ~ .pusher { transform: translate3d(0, "+t[i]+"px, 0); }"),o=Q(n+="</style>").appendTo(B),E.debug("Adding sizing css to head",o)},keyboardShortcuts:function(){E.verbose("Adding keyboard shortcuts"),O.on("keydown"+g,E.event.keyboard)}},observeChanges:function(){"MutationObserver"in W&&((i=new MutationObserver(function(e){function o(e){for(var t=[],n=0,i=e.length;n<i;n++)Array.prototype.push.apply(t,o(e[n].childNodes)),t.push(e[n]);return t}var n=!1,i=!0;e.every(function(e){var t;return"attributes"===e.type?P&&("disabled"===e.attributeName||0<Q(e.target).find(":input").addBack(":input").filter(":visible").length)&&(n=!0):(t=Q(o(e.addedNodes)).filter("a[href], [tabindex], :input:enabled").filter(":visible"),e=Q(o(e.removedNodes)).filter("a[href], [tabindex], :input"),(0<t.length||0<e.length)&&(n=!0,(0<t.filter(":input").length||0<e.filter(":input").length)&&(i=!1))),!n}),n&&E.refreshInputs(i)})).observe(S,{attributeFilter:["class","disabled"],attributes:!0,childList:!0,subtree:!0}),E.debug("Setting up mutation observer",i))},refresh:function(){E.verbose("Refreshing selector cache"),m=V(l.context,W),E.refreshFlyouts(),k=m.children(c.pusher),E.clear.cache()},refreshFlyouts:function(){E.verbose("Refreshing other flyouts"),y=m.children(c.flyout)},refreshInputs:function(e){n&&n.off("keydown"+s),l.dimPage&&(0===(n=v.find("a[href], [tabindex], :input:enabled").filter(":visible").filter(function(){return 0===Q(this).closest(".disabled").length})).filter(":input").length?(n=v.add(n),v.attr("tabindex",-1)):v.removeAttr("tabindex"),n.first().on("keydown"+s,E.event.inputKeyDown.first),n.last().on("keydown"+s,E.event.inputKeyDown.last),!e&&l.autofocus&&0===n.filter(":focus").length&&E.set.autofocus())},setup:{cache:function(){E.cache={width:v.outerWidth(),height:v.outerHeight()}},layout:function(){0===m.children(c.pusher).length&&(E.debug("Adding wrapper element for flyout"),E.error(h.pusher),k=Q('<div class="pusher" />'),m.children().not(c.omitted).not(y).wrapAll(k),E.refresh()),0!==v.nextAll(c.pusher).length&&v.nextAll(c.pusher)[0]===k[0]||(E.debug("Moved flyout to correct parent element"),E.error(h.movedFlyout,S),v.detach().prependTo(m),E.refresh()),E.is.mobile()&&v.addClass(a.fullscreen),E.clear.cache(),E.set.pushable(),E.set.direction()},heights:function(){E.debug("Setting up heights",v);var e=v.children(c.header),t=v.children(c.content),n=v.children(c.actions),e=(m.height()||0)-(e.outerHeight()||0)-(n.outerHeight()||0);0<e&&t.css("min-height",String(e)+"px")}},attachEvents:function(e,t){var n=Q(e);t=_(E[t])?E[t]:E.toggle,0<n.length?(E.debug("Attaching flyout events to element",e,t),n.on("click"+g,t)):E.error(h.notFound,e)},show:function(e){e=_(e)?e:function(){},E.is.hidden()?!1===l.onShow.call(S)?E.verbose("Show callback returned false cancelling show"):(E.refresh(),E.othersActive()&&(E.debug("Other flyouts currently visible"),l.exclusive?E.hideOthers():w=!1),E.set.dimmerStyles(),E.set.observeAttributes(!1),E.pushPage(function(){e.call(S),l.onVisible.call(S),l.keyboardShortcuts&&E.add.keyboardShortcuts(),E.save.focus(),E.refreshInputs(),requestAnimationFrame(E.set.observeAttributes)}),l.onChange.call(S)):E.debug("Flyout is already visible")},hide:function(e){if(e=_(e)?e:function(){},!1===l.onHide.call(S,Q(this)))return E.verbose("Hide callback returned false cancelling hide"),w=!1;(E.is.visible()||E.is.animating())&&(E.debug("Hiding flyout",e),E.refreshFlyouts(),E.set.observeAttributes(!1),E.pullPage(function(){e.call(S),_(l.onHidden)&&l.onHidden.call(S),E.restore.focus()}),l.onChange.call(S))},othersAnimating:function(){return 0<y.not(v).filter("."+a.animating).length},othersVisible:function(){return 0<y.not(v).filter("."+a.visible).length},othersActive:function(){return E.othersVisible()||E.othersAnimating()},hideOthers:function(e){var t=y.not(v).filter("."+a.visible),n=t.length,i=0;e=e||function(){},t.flyout("hide",function(){++i===n&&e()})},toggle:function(){E.verbose("Determining toggled direction"),E.is.hidden()?E.show():E.hide()},pushPage:function(t){var e,n,i;t=_(t)?t:function(){},E.set.overlay(),l.returnScroll&&(r=(C?L:m).scrollTop()),E.bind.scrollLock(),e=function(){E.bind.clickaway(),E.add.inlineCSS(),E.set.animating(),E.set.visible()},n=function(){E.set.dimmed()},i=function(e){e.target===v[0]&&(v.off("transitionend"+s,i),E.remove.animating(),t.call(S))},v.off("transitionend"+s),v.on("transitionend"+s,i),requestAnimationFrame(e),l.dimPage&&!E.othersVisible()&&requestAnimationFrame(n)},pullPage:function(t){var e,n;t=_(t)?t:function(){},E.verbose("Removing context push state",E.get.direction()),E.unbind.clickaway(),E.othersActive()||(E.unbind.scrollLock(),l.keyboardShortcuts&&E.remove.keyboardShortcuts()),e=function(){E.set.overlay(),E.set.animating(),l.dimPage&&!E.othersVisible()&&E.set.closing(),E.remove.visible()},n=function(e){e.target===v[0]&&(v.off("transitionend"+s,n),E.remove.animating(),E.remove.closing(),E.remove.overlay(),E.remove.inlineCSS(),l.returnScroll&&E.scrollBack(),l.dimPage&&!E.othersVisible()&&k.removeClass(a.dimmed),t.call(S))},v.off("transitionend"+s),v.on("transitionend"+s,n),requestAnimationFrame(e)},scrollToTop:function(){E.verbose("Scrolling to top of page to avoid animation issues"),v.scrollTop(0),(C?L:m)[0].scrollTo(0,0)},scrollBack:function(){E.verbose("Scrolling back to original page position"),(C?L:m)[0].scrollTo(0,r)},clear:{cache:function(){E.verbose("Clearing cached dimensions"),E.cache={}}},set:{observeAttributes:function(e){P=!1!==e},autofocus:function(){var e=n.filter("[autofocus]"),t=n.filter(":input");(0<e.length?e:0<t.length?t:v).first().trigger("focus")},dimmerStyles:function(){l.blurring?k.addClass(a.blurring):k.removeClass(a.blurring)},bodyMargin:function(){var n=E.can.leftBodyScrollbar()?"left":"right";m.css((C?"margin-":"padding-")+n,F+"px"),m.find(c.bodyFixed.replace("right",n)).each(function(){var e=Q(this),t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"calc("+e.css(t)+" + "+F+"px)")})},pushed:function(){m.addClass(a.pushed)},pushable:function(){m.addClass(a.pushable)},dimmed:function(){k.addClass(a.dimmed)},active:function(){v.addClass(a.active)},animating:function(){v.addClass(a.animating)},closing:function(){k.addClass(a.closing)},direction:function(e){e=e||E.get.direction(),v.addClass(a[e])},visible:function(){v.addClass(a.visible)},overlay:function(){v.addClass(a.overlay)}},remove:{inlineCSS:function(){E.debug("Removing inline css styles",o),o&&0<o.length&&o.remove()},keyboardShortcuts:function(){E.verbose("Removing keyboard shortcuts"),O.off("keydown"+g)},pushed:function(){m.removeClass(a.pushed)},pushable:function(){m.removeClass(a.pushable)},active:function(){v.removeClass(a.active)},animating:function(){v.removeClass(a.animating)},closing:function(){k.removeClass(a.closing)},direction:function(e){e=e||E.get.direction(),v.removeClass(a[e])},visible:function(){v.removeClass(a.visible)},overlay:function(){v.removeClass(a.overlay)}},get:{direction:function(){return v.hasClass(a.top)?a.top:v.hasClass(a.right)?a.right:v.hasClass(a.bottom)?a.bottom:a.left},id:function(){return t},element:function(){return v},settings:function(){return l}},can:{leftBodyScrollbar:function(){return void 0===E.cache.leftBodyScrollbar&&(E.cache.leftBodyScrollbar=E.is.rtl()&&(E.is.iframe&&!E.is.firefox()||E.is.safari())),E.cache.leftBodyScrollbar}},save:{focus:function(){0<Q(U.activeElement).closest(v).length||(e=Q(U.activeElement).trigger("blur"))},bodyMargin:function(){T=m.css((C?"margin-":"padding-")+(E.can.leftBodyScrollbar()?"left":"right"));var e=parseInt(T.replace(/[^\d.]/g,""),10),t=C?W.innerWidth-U.documentElement.clientWidth:m[0].offsetWidth-m[0].clientWidth;F=e+t}},is:{safari:function(){return void 0===E.cache.isSafari&&(E.cache.isSafari=/constructor/i.test(W.HTMLElement)||!!W.ApplePaySession),E.cache.isSafari},firefox:function(){return void 0===E.cache.isFirefox&&(E.cache.isFirefox=!!W.InstallTrigger),E.cache.isFirefox},iframe:function(){return!(self===top)},mobile:function(){var e=navigator.userAgent;return e.match(f.mobile)?(E.verbose("Browser was found to be mobile",e),!0):(E.verbose("Browser is not mobile, using regular transition",e),!1)},hidden:function(){return!E.is.visible()},visible:function(){return v.hasClass(a.visible)},animating:function(){return m.hasClass(a.animating)},rtl:function(){return void 0===E.cache.isRTL&&(E.cache.isRTL="rtl"===v.attr("dir")||"rtl"===v.css("direction")||"rtl"===z.attr("dir")||"rtl"===z.css("direction")||"rtl"===m.attr("dir")||"rtl"===m.css("direction")),E.cache.isRTL}},has:{configActions:function(){return Array.isArray(l.actions)&&0<l.actions.length},scrollbar:function(){return C||"hidden"!==m.css("overflow-y")}},restore:{focus:function(){e&&0<e.length&&l.restoreFocus&&e.trigger("focus")},bodyMargin:function(){var n=E.can.leftBodyScrollbar()?"left":"right";m.css((C?"margin-":"padding-")+n,T),m.find(c.bodyFixed.replace("right",n)).each(function(){var e=Q(this),t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"")})}},helpers:{deQuote:function(e){return String(e).replace(/"/g,"")},escape:function(e,t){if(t)return e;var n={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"};return/["&'<>`]/.test(e)?(e=e.replace(/&(?![\d#a-z]{1,12};)/gi,"&amp;")).replace(/["'<>`]/g,function(e){return n[e]}):e}},setting:function(e,t){if(E.debug("Changing setting",e,t),Q.isPlainObject(e))Q.extend(!0,l,e);else{if(void 0===t)return l[e];Q.isPlainObject(l[e])?Q.extend(!0,l[e],t):l[e]=t}},internal:function(e,t){if(Q.isPlainObject(e))Q.extend(!0,E,e);else{if(void 0===t)return E[e];E[e]=t}},debug:function(){!l.silent&&l.debug&&(l.performance?E.performance.log(arguments):(E.debug=Function.prototype.bind.call(console.info,console,l.name+":"),E.debug.apply(console,arguments)))},verbose:function(){!l.silent&&l.verbose&&l.debug&&(l.performance?E.performance.log(arguments):(E.verbose=Function.prototype.bind.call(console.info,console,l.name+":"),E.verbose.apply(console,arguments)))},error:function(){l.silent||(E.error=Function.prototype.bind.call(console.error,console,l.name+":"),E.error.apply(console,arguments))},performance:{log:function(e){var t,n;l.performance&&(n=(t=Date.now())-(R||t),R=t,q.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:S,"Execution Time":n})),clearTimeout(E.performance.timer),E.performance.timer=setTimeout(function(){E.performance.display()},500)},display:function(){var e=l.name+":",n=0;R=!1,clearTimeout(E.performance.timer),Q.each(q,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",0<q.length&&(console.groupCollapsed(e),console.table?console.table(q):Q.each(q,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),q=[]}},invoke:function(i,e,t){var o,s,n,r=A;return e=e||K,t=S||t,"string"==typeof i&&void 0!==r&&(i=i.split(/[ .]/),o=i.length-1,Q.each(i,function(e,t){var n=e!==o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(Q.isPlainObject(r[n])&&e!==o)r=r[n];else{if(void 0!==r[n])return s=r[n],!1;{if(!Q.isPlainObject(r[t])||e===o)return void 0!==r[t]?s=r[t]:E.error(h.method,i),!1;r=r[t]}}})),_(s)?n=s.apply(t,e):void 0!==s&&(n=s),Array.isArray(N)?N.push(n):void 0!==N?N=[N,n]:void 0!==n&&(N=n),s}};j?(void 0===A&&(_(l.templates[I])&&(l.autoShow=!0,l.className.flyout=l.className.template,l=Q.extend(!0,{},l,l.templates[I].apply(E,K)),a=l.className,l.namespace,d=l.fields,h=l.error),E.initialize()),_(l.templates[I])||E.invoke(I)):(void 0!==A&&A.invoke("destroy"),E.initialize(),N=v)}),void 0!==N?N:this},Q.flyout=Q.fn.flyout,Q.fn.flyout.settings={name:"Flyout",namespace:"flyout",silent:!1,debug:!1,verbose:!1,performance:!0,context:"body",exclusive:!1,closable:!0,autofocus:!0,restoreFocus:!0,dimPage:!0,scrollLock:!1,returnScroll:!1,delaySetup:!1,autoShow:!1,keyboardShortcuts:!0,title:"",content:"",class:"",classTitle:"",classContent:"",classActions:"",closeIcon:!1,actions:!1,preserveHTML:!1,fields:{class:"class",text:"text",icon:"icon",click:"click"},onChange:function(){},onShow:function(){},onHide:function(){return!0},onHidden:!1,onVisible:function(){},onApprove:function(){},onDeny:function(){},keys:{space:32,enter:13,escape:27,tab:9},className:{flyout:"ui flyout",close:"close icon",header:"ui header",content:"content",actions:"actions",active:"active",animating:"animating",blurring:"blurring",closing:"closing",dimmed:"dimmed",locked:"locked",pushable:"pushable",pushed:"pushed",right:"right",top:"top",left:"left",bottom:"bottom",visible:"visible",overlay:"overlay",fullscreen:"fullscreen",template:"ui flyout",button:"ui button",ok:"positive",cancel:"negative",prompt:"ui fluid input"},selector:{bodyFixed:"> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.right.flyout, > .ui.fixed.nag, > .ui.fixed.nag > .close",fixed:".fixed",omitted:"script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed",pusher:".pusher",flyout:".ui.flyout",header:".ui.header",content:".content",actions:".actions",close:".close",approve:".actions .positive, .actions .approve, .actions .ok",deny:".actions .negative, .actions .deny, .actions .cancel"},regExp:{mobile:/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g},error:{method:"The method you called is not defined.",pusher:"Had to add pusher element. For optimal performance make sure body content is inside a pusher element",movedFlyout:"Had to move flyout. For optimal performance make sure flyout and pusher are direct children of your body tag",notFound:"There were no elements that matched the specified selector"},text:{ok:"Ok",cancel:"Cancel",close:"Close"}},Q.fn.flyout.settings.templates={getArguments:function(e){e=[].slice.call(e);return Q.isPlainObject(e[0])?Q.extend({handler:function(){},content:"",title:""},e[0]):(_(e[e.length-1])||e.push(function(){}),{handler:e.pop(),content:e.pop()||"",title:e.pop()||""})},alert:function(){var e=this.get.settings(),t=e.templates.getArguments(arguments);return{title:t.title,content:t.content,actions:[{text:e.text.ok,class:e.className.ok,click:t.handler}]}},confirm:function(){var e=this.get.settings(),t=e.templates.getArguments(arguments);return{title:t.title,content:t.content,actions:[{text:e.text.ok,class:e.className.ok,click:function(){t.handler(!0)}},{text:e.text.cancel,class:e.className.cancel,click:function(){t.handler(!1)}}]}},prompt:function(){var t=this,e=this.get.settings(),n=e.templates.getArguments(arguments);return 0===Q(Q.parseHTML(n.content)).filter(".ui.input").length&&(n.content+='<p><div class="'+e.className.prompt+'"><input placeholder="'+this.helpers.deQuote(n.placeholder||"")+'" type="text" value="'+this.helpers.deQuote(n.defaultValue||"")+'"></div></p>'),{title:n.title,content:n.content,actions:[{text:e.text.ok,class:e.className.ok,click:function(){var e=t.get.settings(),e=t.get.element().find(e.selector.prompt)[0];n.handler(Q(e).val())}},{text:e.text.cancel,class:e.className.cancel,click:function(){n.handler(null)}}]}}}}(jQuery,window,document);
11
+ !function(U,_,Q){"use strict";function Z(e){return"function"==typeof e&&"number"!=typeof e.nodeType}_=void 0!==_&&_.Math===Math?_:globalThis,U.fn.flyout=function(N){let e=U(this),B=U(_),L=U(Q);U("html");let O=U("head"),z=U("body"),R=Date.now(),q=[],I=N,j="string"==typeof I,K=[].slice.call(arguments,1),V=function(e,t){let n;return 0<=[_,Q].indexOf(e)?n=z:0===(n=U(t.document).find(e)).length&&(n=t.frameElement?V(e,t.parent):z),n},W;return e.each(function(){let l=U.isPlainObject(N)?U.extend(!0,{},U.fn.flyout.settings,N):U.extend({},U.fn.flyout.settings),o=l.selector,r=l.className;var e=l.namespace;let c=l.fields,t=l.regExp,a=l.error,i="."+e,n="module-"+e,u=U(this),s=V(l.context,_),d=u.find(o.close),f,h,g=u.children(o.flyout),p=s.children(o.pusher),m,b=u.hasClass("flyout"),v=this,y=b?u.data(n):void 0,k=!1,x=s[0]===z[0],S="",A=0,w=0,C=!1,T=!1,F,H,P,E=!1,M,D;D={initialize:function(){if(D.debug("Initializing flyout",N),D.create.id(),b||(D.create.flyout(),Z(l.onHidden)||(l.onHidden=function(){D.destroy(),u.remove()}),l.autoShow||(l.autoShow=!0)),u.addClass(l.class),""!==l.title&&u.find(o.header).html(D.helpers.escape(l.title,l)).addClass(l.classTitle),""!==l.content&&u.find(o.content).html(D.helpers.escape(l.content,l)).addClass(l.classContent),D.has.configActions()){let s=u.find(o.actions).addClass(l.classActions);0===s.length?s=U("<div/>",{class:r.actions+" "+(l.classActions||"")}).appendTo(u):s.empty(),l.actions.forEach(function(e){var t=e[c.icon]?"<i "+(e[c.text]?'aria-hidden="true"':"")+' class="'+D.helpers.escape(e[c.icon])+' icon"></i>':"",n=D.helpers.escape(e[c.text]||"",l),i=D.helpers.escape(e[c.class]||"");let o=e[c.click]&&Z(e[c.click])?e[c.click]:function(){};s.append(U("<button/>",{html:t+n,"aria-label":(e[c.text]||e[c.icon]||"").replace(/<[^>]+(>|$)/g,""),class:r.button+" "+i,on:{click:function(){!1!==o.call(v,u)&&D.hide()}}}))})}l.delaySetup?requestAnimationFrame(D.setup.layout):D.setup.layout(),requestAnimationFrame(function(){D.setup.cache()}),"left"!==D.get.direction()&&"right"!==D.get.direction()||(D.setup.heights(),D.bind.resize()),D.bind.events(),D.observeChanges(),D.instantiate(),l.autoShow&&D.show()},instantiate:function(){D.verbose("Storing instance of module",D),y=D,u.data(n,y)},create:{flyout:function(){var e;D.verbose("Programmatically create flyout",s),u=U("<div/>",{class:r.flyout,role:"dialog","aria-modal":l.dimPage}),l.closeIcon&&(d=U("<i/>",{class:r.close,role:"button",tabindex:0,"aria-label":l.text.close}),u.append(d)),""!==l.title&&(e="_"+D.get.id()+"title",u.attr("aria-labelledby",e),U("<div/>",{class:r.header,id:e}).appendTo(u)),""!==l.content&&(e="_"+D.get.id()+"desc",u.attr("aria-describedby",e),U("<div/>",{class:r.content,id:e}).appendTo(u)),D.has.configActions()&&U("<div/>",{class:r.actions}).appendTo(u),u.prependTo(s),v=u[0]},id:function(){H=(Math.random().toString(16)+"000000000").slice(2,10),F="."+H,D.verbose("Creating unique id for element",H)}},destroy:function(){P&&P.disconnect(),D.verbose("Destroying previous module for",u),u.off(i).removeData(n),d.off(F),f&&f.off(F),s.off(F),B.off(F),L.off(F)},event:{keyboard:function(e){e.which===l.keys.escape&&(l.closable?(D.debug("Escape key pressed hiding flyout"),D.hide()):D.debug("Escape key pressed, but closable is set to false"),e.preventDefault())},resize:function(){D.setup.heights()},focus:function(){T=!0},click:function(e){T&&Q.activeElement!==e.target&&D.is.visible()&&l.autofocus&&l.dimPage&&0===U(Q.activeElement).closest(o.flyout).length&&requestAnimationFrame(D.set.autofocus),T=!1},clickaway:function(e){var t;l.closable&&(t=0<p.find(e.target).length||p.is(e.target),e=s.is(e.target),t&&(D.verbose("User clicked on dimmed page"),D.hide()),e&&(D.verbose("User clicked on dimmable context (scaled out page)"),D.hide()))},close:function(e){D.hide()},closeKeyUp:function(e){e=e.which;e!==l.keys.enter&&e!==l.keys.space||D.hide()},inputKeyDown:{first:function(e){e.which===l.keys.tab&&e.shiftKey&&(f.last().trigger("focus"),e.preventDefault())},last:function(e){e.which!==l.keys.tab||e.shiftKey||(f.first().trigger("focus"),e.preventDefault())}},approve:function(e){k||!1===l.onApprove.call(D.element,U(this))?D.verbose("Approve callback returned false cancelling close"):(k=!0,D.hide(function(){k=!1}))},deny:function(e){k||!1===l.onDeny.call(D.element,U(this))?D.verbose("Deny callback returned false cancelling close"):(k=!0,D.hide(function(){k=!1}))},touch:function(e){},containScroll:function(e){v.scrollTop<=0&&(v.scrollTop=1),v.scrollTop+v.offsetHeight>=v.scrollHeight&&(v.scrollTop=v.scrollHeight-v.offsetHeight-1)},scroll:function(e){0===U(e.target).closest(o.flyout).length&&e.preventDefault()}},bind:{resize:function(){D.verbose("Adding resize event to window",B),B.on("resize"+F,D.event.resize)},events:function(){D.verbose("Attaching events"),u.on("click"+i,o.close,D.event.close).on("click"+i,o.approve,D.event.approve).on("click"+i,o.deny,D.event.deny),d.on("keyup"+F,D.event.closeKeyUp),B.on("focus"+F,D.event.focus),s.on("click"+F,D.event.click)},clickaway:function(){D.verbose("Adding clickaway events to context",s),s.on("click"+F,D.event.clickaway).on("touchend"+F,D.event.clickaway)},scrollLock:function(){l.scrollLock&&(D.debug("Disabling page scroll"),(C=D.has.scrollbar())&&(D.save.bodyMargin(),D.set.bodyMargin()),s.addClass(r.locked)),D.verbose("Adding events to contain flyout scroll"),L.on("touchmove"+F,D.event.touch),u.on("scroll"+i,D.event.containScroll)}},unbind:{clickaway:function(){D.verbose("Removing clickaway events from context",s),s.off(F)},scrollLock:function(){D.verbose("Removing scroll lock from page"),C&&D.restore.bodyMargin(),s.removeClass(r.locked),L.off(F),u.off("scroll"+i)}},add:{inlineCSS:function(){var e=D.cache.width||u.outerWidth(),t=D.cache.height||u.outerHeight(),n=D.is.rtl(),i=D.get.direction();let o={left:e,right:-e,top:t,bottom:-t},s;n&&(D.verbose("RTL detected, flipping widths"),o.left=-e,o.right=e),s="<style>","left"===i||"right"===i?(D.debug("Adding CSS rules for animation distance",e),s+=" .ui.visible."+i+".flyout ~ .fixed, .ui.visible."+i+".flyout ~ .pusher { transform: translate3d("+o[i]+"px, 0, 0); }"):"top"!==i&&"bottom"!==i||(s+=" .ui.visible."+i+".flyout ~ .fixed, .ui.visible."+i+".flyout ~ .pusher { transform: translate3d(0, "+o[i]+"px, 0); }"),s+="</style>",m=U(s).appendTo(O),D.debug("Adding sizing css to head",m)},keyboardShortcuts:function(){D.verbose("Adding keyboard shortcuts"),L.on("keydown"+i,D.event.keyboard)}},observeChanges:function(){(P=new MutationObserver(function(e){function o(n){let i=[];for(let e=0,t=n.length;e<t;e++)Array.prototype.push.apply(i,o(n[e].childNodes)),i.push(n[e]);return i}let i=!1,s=!0;e.every(function(n){if("attributes"===n.type)E&&("disabled"===n.attributeName||0<U(n.target).find(":input").addBack(":input").filter(":visible").length)&&(i=!0);else{let e=U(o(n.addedNodes)).filter("a[href], [tabindex], :input:enabled").filter(":visible"),t=U(o(n.removedNodes)).filter("a[href], [tabindex], :input");(0<e.length||0<t.length)&&(i=!0,(0<e.filter(":input").length||0<t.filter(":input").length)&&(s=!1))}return!i}),i&&D.refreshInputs(s)})).observe(v,{attributeFilter:["class","disabled"],attributes:!0,childList:!0,subtree:!0}),D.debug("Setting up mutation observer",P)},refresh:function(){D.verbose("Refreshing selector cache"),s=V(l.context,_),D.refreshFlyouts(),p=s.children(o.pusher),D.clear.cache()},refreshFlyouts:function(){D.verbose("Refreshing other flyouts"),g=s.children(o.flyout)},refreshInputs:function(e){f&&f.off("keydown"+F),l.dimPage&&(0===(f=u.find("a[href], [tabindex], :input:enabled").filter(":visible").filter(function(){return 0===U(this).closest(".disabled").length})).filter(":input").length?(f=u.add(f),u.attr("tabindex",-1)):u.removeAttr("tabindex"),f.first().on("keydown"+F,D.event.inputKeyDown.first),f.last().on("keydown"+F,D.event.inputKeyDown.last),!e&&l.autofocus&&0===f.filter(":focus").length&&D.set.autofocus())},setup:{cache:function(){D.cache={width:u.outerWidth(),height:u.outerHeight()}},layout:function(){0===s.children(o.pusher).length&&(D.debug("Adding wrapper element for flyout"),D.error(a.pusher),p=U('<div class="pusher" />'),s.children().not(o.omitted).not(g).wrapAll(p),D.refresh()),0!==u.nextAll(o.pusher).length&&u.nextAll(o.pusher)[0]===p[0]||(D.debug("Moved flyout to correct parent element"),D.error(a.movedFlyout,v),u.detach().prependTo(s),D.refresh()),D.is.mobile()&&u.addClass(r.fullscreen),D.clear.cache(),D.set.pushable(),D.set.direction()},heights:function(){D.debug("Setting up heights",u);let e=u.children(o.header),t=u.children(o.content),n=u.children(o.actions);var i=(s.height()||0)-(e.outerHeight()||0)-(n.outerHeight()||0);0<i&&t.css("min-height",String(i)+"px")}},attachEvents:function(e,t){let n=U(e);t=Z(D[t])?D[t]:D.toggle,0<n.length?(D.debug("Attaching flyout events to element",e,t),n.on("click"+i,t)):D.error(a.notFound,e)},show:function(e){e=Z(e)?e:function(){},D.is.hidden()?!1===l.onShow.call(v)?D.verbose("Show callback returned false cancelling show"):(D.refresh(),D.othersActive()&&(D.debug("Other flyouts currently visible"),l.exclusive?D.hideOthers():k=!1),D.set.dimmerStyles(),D.set.observeAttributes(!1),D.pushPage(function(){e.call(v),l.onVisible.call(v),l.keyboardShortcuts&&D.add.keyboardShortcuts(),D.save.focus(),D.refreshInputs(),requestAnimationFrame(D.set.observeAttributes)}),l.onChange.call(v)):D.debug("Flyout is already visible")},hide:function(e){if(e=Z(e)?e:function(){},!1===l.onHide.call(v,U(this)))return D.verbose("Hide callback returned false cancelling hide"),k=!1;(D.is.visible()||D.is.animating())&&(D.debug("Hiding flyout",e),D.refreshFlyouts(),D.set.observeAttributes(!1),D.pullPage(function(){e.call(v),Z(l.onHidden)&&l.onHidden.call(v),D.restore.focus()}),l.onChange.call(v))},othersAnimating:function(){return 0<g.not(u).filter("."+r.animating).length},othersVisible:function(){return 0<g.not(u).filter("."+r.visible).length},othersActive:function(){return D.othersVisible()||D.othersAnimating()},hideOthers:function(e){let t=g.not(u).filter("."+r.visible),n=t.length,i=0;e=e||function(){},t.flyout("hide",function(){++i===n&&e()})},toggle:function(){D.verbose("Determining toggled direction"),D.is.hidden()?D.show():D.hide()},pushPage:function(t){var e,n;let i;t=Z(t)?t:function(){},D.set.overlay(),l.returnScroll&&(M=(x?B:s).scrollTop()),D.bind.scrollLock(),e=function(){D.bind.clickaway(),D.add.inlineCSS(),D.set.animating(),D.set.visible()},n=function(){D.set.dimmed()},i=function(e){e.target===u[0]&&(u.off("transitionend"+F,i),D.remove.animating(),t.call(v))},u.off("transitionend"+F),u.on("transitionend"+F,i),requestAnimationFrame(e),l.dimPage&&!D.othersVisible()&&requestAnimationFrame(n)},pullPage:function(t){var e;let n;t=Z(t)?t:function(){},D.verbose("Removing context push state",D.get.direction()),D.unbind.clickaway(),D.othersActive()||(D.unbind.scrollLock(),l.keyboardShortcuts&&D.remove.keyboardShortcuts()),e=function(){D.set.overlay(),D.set.animating(),l.dimPage&&!D.othersVisible()&&D.set.closing(),D.remove.visible()},n=function(e){e.target===u[0]&&(u.off("transitionend"+F,n),D.remove.animating(),D.remove.closing(),D.remove.overlay(),D.remove.inlineCSS(),l.returnScroll&&D.scrollBack(),l.dimPage&&!D.othersVisible()&&p.removeClass(r.dimmed),t.call(v))},u.off("transitionend"+F),u.on("transitionend"+F,n),requestAnimationFrame(e)},scrollToTop:function(){D.verbose("Scrolling to top of page to avoid animation issues"),u.scrollTop(0),(x?B:s)[0].scrollTo(0,0)},scrollBack:function(){D.verbose("Scrolling back to original page position"),(x?B:s)[0].scrollTo(0,M)},clear:{cache:function(){D.verbose("Clearing cached dimensions"),D.cache={}}},set:{observeAttributes:function(e){E=!1!==e},autofocus:function(){let e=f.filter("[autofocus]"),t=f.filter(":input"),n=(0<e.length?e:0<t.length?t:u).first();n.trigger("focus")},dimmerStyles:function(){l.blurring?p.addClass(r.blurring):p.removeClass(r.blurring)},bodyMargin:function(){let n=D.can.leftBodyScrollbar()?"left":"right";s.css((x?"margin-":"padding-")+n,w+"px"),s.find(o.bodyFixed.replace("right",n)).each(function(){let e=U(this);var t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"calc("+e.css(t)+" + "+w+"px)")})},pushed:function(){s.addClass(r.pushed)},pushable:function(){s.addClass(r.pushable)},dimmed:function(){p.addClass(r.dimmed)},active:function(){u.addClass(r.active)},animating:function(){u.addClass(r.animating)},closing:function(){p.addClass(r.closing)},direction:function(e){e=e||D.get.direction(),u.addClass(r[e])},visible:function(){u.addClass(r.visible)},overlay:function(){u.addClass(r.overlay)}},remove:{inlineCSS:function(){D.debug("Removing inline css styles",m),m&&0<m.length&&m.remove()},keyboardShortcuts:function(){D.verbose("Removing keyboard shortcuts"),L.off("keydown"+i)},pushed:function(){s.removeClass(r.pushed)},pushable:function(){s.removeClass(r.pushable)},active:function(){u.removeClass(r.active)},animating:function(){u.removeClass(r.animating)},closing:function(){p.removeClass(r.closing)},direction:function(e){e=e||D.get.direction(),u.removeClass(r[e])},visible:function(){u.removeClass(r.visible)},overlay:function(){u.removeClass(r.overlay)}},get:{direction:function(){return u.hasClass(r.top)?r.top:u.hasClass(r.right)?r.right:u.hasClass(r.bottom)?r.bottom:r.left},id:function(){return H},element:function(){return u},settings:function(){return l}},can:{leftBodyScrollbar:function(){return void 0===D.cache.leftBodyScrollbar&&(D.cache.leftBodyScrollbar=D.is.rtl()&&(D.is.iframe&&!D.is.firefox()||D.is.safari())),D.cache.leftBodyScrollbar}},save:{focus:function(){let e=U(Q.activeElement);0<e.closest(u).length||(h=U(Q.activeElement).trigger("blur"))},bodyMargin:function(){S=s.css((x?"margin-":"padding-")+(D.can.leftBodyScrollbar()?"left":"right")),A=parseInt(S.replace(/[^\d.]/g,""),10);var e=x?_.innerWidth-Q.documentElement.clientWidth:s[0].offsetWidth-s[0].clientWidth;w=A+e}},is:{safari:function(){return void 0===D.cache.isSafari&&(D.cache.isSafari=/constructor/i.test(_.HTMLElement)||!!_.ApplePaySession),D.cache.isSafari},firefox:function(){return void 0===D.cache.isFirefox&&(D.cache.isFirefox=!!_.InstallTrigger),D.cache.isFirefox},iframe:function(){return!(self===top)},mobile:function(){let e=navigator.userAgent;return e.match(t.mobile)?(D.verbose("Browser was found to be mobile",e),!0):(D.verbose("Browser is not mobile, using regular transition",e),!1)},hidden:function(){return!D.is.visible()},visible:function(){return u.hasClass(r.visible)},animating:function(){return s.hasClass(r.animating)},rtl:function(){return void 0===D.cache.isRTL&&(D.cache.isRTL="rtl"===u.attr("dir")||"rtl"===u.css("direction")||"rtl"===z.attr("dir")||"rtl"===z.css("direction")||"rtl"===s.attr("dir")||"rtl"===s.css("direction")),D.cache.isRTL}},has:{configActions:function(){return Array.isArray(l.actions)&&0<l.actions.length},scrollbar:function(){return x||"hidden"!==s.css("overflow-y")}},restore:{focus:function(){h&&0<h.length&&l.restoreFocus&&h.trigger("focus")},bodyMargin:function(){let n=D.can.leftBodyScrollbar()?"left":"right";s.css((x?"margin-":"padding-")+n,0===A?"":S),s.find(o.bodyFixed.replace("right",n)).each(function(){let e=U(this);var t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"")})}},helpers:{escape:function(e,t){if(void 0!==t&&t.preserveHTML)return e;const n={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"};return String(e).replace(/["&'<>]/g,e=>n[e])}},setting:function(e,t){if(D.debug("Changing setting",e,t),U.isPlainObject(e))U.extend(!0,l,e);else{if(void 0===t)return l[e];U.isPlainObject(l[e])?U.extend(!0,l[e],t):l[e]=t}},internal:function(e,t){if(U.isPlainObject(e))U.extend(!0,D,e);else{if(void 0===t)return D[e];D[e]=t}},debug:function(){!l.silent&&l.debug&&(l.performance?D.performance.log(arguments):(D.debug=Function.prototype.bind.call(console.info,console,l.name+":"),D.debug.apply(console,arguments)))},verbose:function(){!l.silent&&l.verbose&&l.debug&&(l.performance?D.performance.log(arguments):(D.verbose=Function.prototype.bind.call(console.info,console,l.name+":"),D.verbose.apply(console,arguments)))},error:function(){l.silent||(D.error=Function.prototype.bind.call(console.error,console,l.name+":"),D.error.apply(console,arguments))},performance:{log:function(e){var t,n;l.performance&&(n=(t=Date.now())-(R||t),R=t,q.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:v,"Execution Time":n})),clearTimeout(D.performance.timer),D.performance.timer=setTimeout(function(){D.performance.display()},500)},display:function(){var e=l.name+":";let n=0;R=!1,clearTimeout(D.performance.timer),U.each(q,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",0<q.length&&(console.groupCollapsed(e),console.table?console.table(q):U.each(q,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),q=[]}},invoke:function(i,e,t){let o=y,s,l,n;return e=e||K,t=v||t,"string"==typeof i&&void 0!==o&&(i=i.split(/[ .]/),s=i.length-1,U.each(i,function(e,t){var n=e!==s?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(U.isPlainObject(o[n])&&e!==s)o=o[n];else{if(void 0!==o[n])return l=o[n],!1;{if(!U.isPlainObject(o[t])||e===s)return void 0!==o[t]?l=o[t]:D.error(a.method,i),!1;o=o[t]}}})),Z(l)?n=l.apply(t,e):void 0!==l&&(n=l),Array.isArray(W)?W.push(n):void 0!==W?W=[W,n]:void 0!==n&&(W=n),l}},j?(void 0===y&&(Z(l.templates[I])&&(l.autoShow=!0,l.className.flyout=l.className.template,l=U.extend(!0,{},l,l.templates[I].apply(D,K)),r=l.className,l.namespace,c=l.fields,a=l.error),D.initialize()),Z(l.templates[I])||D.invoke(I)):(void 0!==y&&y.invoke("destroy"),D.initialize(),W=u)}),void 0!==W?W:this},U.flyout=U.fn.flyout,U.fn.flyout.settings={name:"Flyout",namespace:"flyout",silent:!1,debug:!1,verbose:!1,performance:!0,context:"body",exclusive:!1,closable:!0,autofocus:!0,restoreFocus:!0,dimPage:!0,scrollLock:!1,returnScroll:!1,delaySetup:!1,autoShow:!1,keyboardShortcuts:!0,title:"",content:"",class:"",classTitle:"",classContent:"",classActions:"",closeIcon:!1,actions:!1,preserveHTML:!1,fields:{class:"class",text:"text",icon:"icon",click:"click"},onChange:function(){},onShow:function(){},onHide:function(){return!0},onHidden:!1,onVisible:function(){},onApprove:function(){},onDeny:function(){},keys:{space:32,enter:13,escape:27,tab:9},className:{flyout:"ui flyout",close:"close icon",header:"ui header",content:"content",actions:"actions",active:"active",animating:"animating",blurring:"blurring",closing:"closing",dimmed:"dimmed",locked:"locked",pushable:"pushable",pushed:"pushed",right:"right",top:"top",left:"left",bottom:"bottom",visible:"visible",overlay:"overlay",fullscreen:"fullscreen",template:"ui flyout",button:"ui button",ok:"positive",cancel:"negative",prompt:"ui fluid input"},selector:{bodyFixed:"> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.right.flyout, > .ui.fixed.nag, > .ui.fixed.nag > .close",fixed:".fixed",omitted:"script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed",pusher:".pusher",flyout:".ui.flyout",header:".ui.header",content:".content",actions:".actions",close:".close",approve:".actions .positive, .actions .approve, .actions .ok",deny:".actions .negative, .actions .deny, .actions .cancel"},regExp:{mobile:/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g},error:{method:"The method you called is not defined.",pusher:"Had to add pusher element. For optimal performance make sure body content is inside a pusher element",movedFlyout:"Had to move flyout. For optimal performance make sure flyout and pusher are direct children of your body tag",notFound:"There were no elements that matched the specified selector"},text:{ok:"Ok",cancel:"Cancel",close:"Close"}},U.fn.flyout.settings.templates={getArguments:function(e){let t=[].slice.call(e);return U.isPlainObject(t[0])?U.extend({handler:function(){},content:"",title:""},t[0]):(Z(t[t.length-1])||t.push(function(){}),{handler:t.pop(),content:t.pop()||"",title:t.pop()||""})},alert:function(){let e=this.get.settings();var t=e.templates.getArguments(arguments);return{title:t.title,content:t.content,actions:[{text:e.text.ok,class:e.className.ok,click:t.handler}]}},confirm:function(){let e=this.get.settings(),t=e.templates.getArguments(arguments);return{title:t.title,content:t.content,actions:[{text:e.text.ok,class:e.className.ok,click:function(){t.handler(!0)}},{text:e.text.cancel,class:e.className.cancel,click:function(){t.handler(!1)}}]}},prompt:function(){let t=this,e=this.get.settings(),n=e.templates.getArguments(arguments);return 0===U(U.parseHTML(n.content)).filter(".ui.input").length&&(n.content+='<p><div class="'+e.className.prompt+'"><input placeholder="'+this.helpers.escape(n.placeholder||"")+'" type="text" value="'+this.helpers.escape(n.defaultValue||"")+'"></div></p>'),{title:n.title,content:n.content,actions:[{text:e.text.ok,class:e.className.ok,click:function(){var e=t.get.settings(),e=t.get.element().find(e.selector.prompt)[0];n.handler(U(e).val())}},{text:e.text.cancel,class:e.className.cancel,click:function(){n.handler(null)}}]}}}}(jQuery,window,document);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.4+fcf090f - Form
2
+ * # Fomantic-UI 2.10.0-beta.40+b480ca2 - Form
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *