fomantic-ui 2.9.1-beta.24 → 2.9.1-beta.26
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.
- package/.eslint/eqeqeq-rule.js +18 -0
- package/.eslint/index.js +3 -0
- package/.eslintrc.js +1 -2
- package/.stylelintrc.js +8 -12
- package/dist/components/accordion.css +3 -3
- package/dist/components/accordion.js +4 -4
- package/dist/components/accordion.min.css +2 -2
- package/dist/components/accordion.min.js +2 -2
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +19 -19
- package/dist/components/api.min.js +2 -2
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +5 -5
- package/dist/components/button.min.css +2 -2
- package/dist/components/calendar.css +1 -1
- package/dist/components/calendar.js +18 -17
- package/dist/components/calendar.min.css +1 -1
- package/dist/components/calendar.min.js +2 -2
- package/dist/components/card.css +4 -4
- package/dist/components/card.min.css +2 -2
- package/dist/components/checkbox.css +3 -3
- package/dist/components/checkbox.js +11 -11
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +2 -2
- package/dist/components/comment.css +1 -1
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +2 -2
- package/dist/components/container.min.css +2 -2
- package/dist/components/dimmer.css +2 -2
- package/dist/components/dimmer.js +9 -9
- package/dist/components/dimmer.min.css +1 -1
- package/dist/components/dimmer.min.js +2 -2
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +13 -13
- package/dist/components/dropdown.js +103 -91
- package/dist/components/dropdown.min.css +2 -2
- package/dist/components/dropdown.min.js +2 -2
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +5 -5
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +2 -2
- package/dist/components/emoji.css +3547 -3547
- package/dist/components/feed.css +1 -1
- package/dist/components/feed.min.css +1 -1
- package/dist/components/flag.css +265 -265
- package/dist/components/flag.min.css +1 -1
- package/dist/components/flyout.css +7 -7
- package/dist/components/flyout.js +10 -10
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +2 -2
- package/dist/components/form.css +13 -13
- package/dist/components/form.js +77 -60
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +2 -2
- package/dist/components/grid.css +2 -2
- package/dist/components/grid.min.css +2 -2
- package/dist/components/header.css +2 -2
- package/dist/components/header.min.css +2 -2
- package/dist/components/icon.css +1960 -1960
- package/dist/components/icon.min.css +2 -2
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +2 -2
- package/dist/components/input.min.css +2 -2
- package/dist/components/item.css +3 -3
- package/dist/components/item.min.css +2 -2
- package/dist/components/label.css +2 -2
- package/dist/components/label.min.css +2 -2
- package/dist/components/list.css +4 -4
- package/dist/components/list.min.css +2 -2
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/menu.css +2 -2
- package/dist/components/menu.min.css +1 -1
- package/dist/components/message.css +2 -2
- package/dist/components/message.min.css +2 -2
- package/dist/components/modal.css +2 -2
- package/dist/components/modal.js +4 -4
- package/dist/components/modal.min.css +2 -2
- package/dist/components/modal.min.js +2 -2
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +5 -5
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +2 -2
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +2 -2
- package/dist/components/popup.js +39 -31
- package/dist/components/popup.min.css +2 -2
- package/dist/components/popup.min.js +2 -2
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +12 -12
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +2 -2
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +31 -31
- package/dist/components/rating.js +6 -6
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +2 -2
- package/dist/components/reset.css +1 -1
- package/dist/components/reset.min.css +1 -1
- package/dist/components/reveal.css +13 -13
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +4 -4
- package/dist/components/search.js +16 -16
- package/dist/components/search.min.css +2 -2
- package/dist/components/search.min.js +2 -2
- package/dist/components/segment.css +2 -2
- package/dist/components/segment.min.css +2 -2
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +5 -5
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +2 -2
- package/dist/components/sidebar.css +33 -33
- package/dist/components/sidebar.js +13 -13
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +2 -2
- package/dist/components/site.css +18 -18
- package/dist/components/site.js +4 -4
- package/dist/components/site.min.css +2 -2
- package/dist/components/site.min.js +2 -2
- package/dist/components/slider.js +50 -37
- package/dist/components/slider.min.js +2 -2
- package/dist/components/state.js +5 -5
- package/dist/components/state.min.js +2 -2
- package/dist/components/statistic.css +3 -3
- package/dist/components/statistic.min.css +2 -2
- package/dist/components/step.css +4 -4
- package/dist/components/step.min.css +2 -2
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +8 -8
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +2 -2
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +17 -17
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +2 -2
- package/dist/components/table.css +8 -2
- package/dist/components/table.min.css +1 -1
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +1 -1
- package/dist/components/toast.js +4 -4
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +2 -2
- package/dist/components/transition.css +97 -97
- package/dist/components/transition.js +8 -8
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +2 -2
- package/dist/components/visibility.js +12 -12
- package/dist/components/visibility.min.js +2 -2
- package/dist/semantic.css +6078 -6074
- package/dist/semantic.js +464 -413
- package/dist/semantic.min.css +2 -2
- package/dist/semantic.min.js +2 -2
- package/package.json +1 -1
- package/src/_site/modules/embed.variables +3 -0
- package/src/definitions/behaviors/api.js +18 -18
- package/src/definitions/behaviors/form.js +76 -59
- package/src/definitions/behaviors/state.js +4 -4
- package/src/definitions/behaviors/visibility.js +11 -11
- package/src/definitions/collections/breadcrumb.less +2 -2
- package/src/definitions/collections/form.less +12 -12
- package/src/definitions/collections/grid.less +7 -7
- package/src/definitions/collections/menu.less +4 -4
- package/src/definitions/collections/message.less +38 -38
- package/src/definitions/collections/table.less +3 -3
- package/src/definitions/elements/button.less +12 -12
- package/src/definitions/elements/container.less +2 -2
- package/src/definitions/elements/divider.less +2 -2
- package/src/definitions/elements/emoji.less +5 -5
- package/src/definitions/elements/flag.less +11 -11
- package/src/definitions/elements/header.less +2 -2
- package/src/definitions/elements/icon.less +22 -22
- package/src/definitions/elements/image.less +2 -2
- package/src/definitions/elements/input.less +2 -2
- package/src/definitions/elements/label.less +4 -4
- package/src/definitions/elements/list.less +3 -3
- package/src/definitions/elements/loader.less +2 -2
- package/src/definitions/elements/placeholder.less +2 -2
- package/src/definitions/elements/rail.less +2 -2
- package/src/definitions/elements/reveal.less +8 -8
- package/src/definitions/elements/segment.less +3 -3
- package/src/definitions/elements/step.less +2 -2
- package/src/definitions/elements/text.less +2 -2
- package/src/definitions/globals/reset.less +2 -2
- package/src/definitions/globals/site.js +3 -3
- package/src/definitions/globals/site.less +9 -9
- package/src/definitions/modules/accordion.js +3 -3
- package/src/definitions/modules/accordion.less +2 -2
- package/src/definitions/modules/calendar.js +17 -16
- package/src/definitions/modules/calendar.less +2 -2
- package/src/definitions/modules/checkbox.js +10 -10
- package/src/definitions/modules/checkbox.less +2 -2
- package/src/definitions/modules/dimmer.js +8 -8
- package/src/definitions/modules/dimmer.less +3 -3
- package/src/definitions/modules/dropdown.js +102 -90
- package/src/definitions/modules/dropdown.less +6 -6
- package/src/definitions/modules/embed.js +4 -4
- package/src/definitions/modules/embed.less +2 -2
- package/src/definitions/modules/flyout.js +9 -9
- package/src/definitions/modules/flyout.less +5 -5
- package/src/definitions/modules/modal.js +3 -3
- package/src/definitions/modules/modal.less +7 -7
- package/src/definitions/modules/nag.js +4 -4
- package/src/definitions/modules/nag.less +3 -3
- package/src/definitions/modules/popup.js +38 -30
- package/src/definitions/modules/popup.less +2 -2
- package/src/definitions/modules/progress.js +11 -11
- package/src/definitions/modules/progress.less +2 -2
- package/src/definitions/modules/rating.js +5 -5
- package/src/definitions/modules/rating.less +14 -10
- package/src/definitions/modules/search.js +15 -15
- package/src/definitions/modules/search.less +2 -2
- package/src/definitions/modules/shape.js +4 -4
- package/src/definitions/modules/shape.less +2 -2
- package/src/definitions/modules/sidebar.js +12 -12
- package/src/definitions/modules/sidebar.less +18 -18
- package/src/definitions/modules/slider.js +49 -36
- package/src/definitions/modules/slider.less +2 -2
- package/src/definitions/modules/sticky.js +7 -7
- package/src/definitions/modules/sticky.less +2 -2
- package/src/definitions/modules/tab.js +16 -16
- package/src/definitions/modules/tab.less +2 -2
- package/src/definitions/modules/toast.js +3 -3
- package/src/definitions/modules/toast.less +5 -5
- package/src/definitions/modules/transition.js +7 -7
- package/src/definitions/modules/transition.less +2 -2
- package/src/definitions/views/ad.less +2 -2
- package/src/definitions/views/card.less +16 -16
- package/src/definitions/views/comment.less +2 -2
- package/src/definitions/views/feed.less +2 -2
- package/src/definitions/views/item.less +3 -3
- package/src/definitions/views/statistic.less +2 -2
- package/src/semantic.less +54 -52
- package/src/theme.config.example +53 -53
- package/src/theme.less +13 -13
- package/src/themes/amazon/elements/button.variables +1 -1
- package/src/themes/amazon/globals/site.variables +5 -5
- package/src/themes/basic/elements/icon.overrides +4 -4
- package/src/themes/basic/elements/icon.variables +2 -2
- package/src/themes/basic/modules/progress.variables +2 -2
- package/src/themes/basic/views/card.variables +3 -3
- package/src/themes/bookish/elements/header.variables +1 -1
- package/src/themes/bootstrap3/elements/button.overrides +3 -0
- package/src/themes/bootstrap3/elements/button.variables +8 -8
- package/src/themes/chubby/collections/menu.overrides +3 -0
- package/src/themes/chubby/collections/menu.variables +2 -2
- package/src/themes/chubby/elements/button.overrides +4 -4
- package/src/themes/chubby/elements/header.variables +1 -1
- package/src/themes/chubby/modules/accordion.variables +1 -1
- package/src/themes/chubby/views/comment.overrides +1 -1
- package/src/themes/chubby/views/comment.variables +4 -4
- package/src/themes/classic/collections/table.variables +1 -1
- package/src/themes/classic/elements/button.variables +17 -17
- package/src/themes/classic/modules/progress.variables +1 -1
- package/src/themes/classic/views/card.overrides +13 -13
- package/src/themes/classic/views/card.variables +2 -2
- package/src/themes/colored/modules/checkbox.overrides +3 -0
- package/src/themes/colored/modules/checkbox.variables +1 -1
- package/src/themes/default/collections/grid.variables +1 -1
- package/src/themes/default/collections/menu.variables +2 -2
- package/src/themes/default/collections/table.overrides +3 -0
- package/src/themes/default/collections/table.variables +1 -1
- package/src/themes/default/elements/container.variables +9 -9
- package/src/themes/default/elements/divider.variables +2 -2
- package/src/themes/default/elements/emoji.variables +2 -2
- package/src/themes/default/elements/flag.variables +2 -2
- package/src/themes/default/elements/header.variables +15 -15
- package/src/themes/default/elements/icon.variables +1979 -1979
- package/src/themes/default/elements/label.variables +24 -24
- package/src/themes/default/elements/list.variables +3 -3
- package/src/themes/default/elements/loader.variables +8 -8
- package/src/themes/default/elements/rail.variables +2 -2
- package/src/themes/default/elements/segment.variables +1 -1
- package/src/themes/default/elements/step.overrides +2 -2
- package/src/themes/default/elements/step.variables +1 -1
- package/src/themes/default/globals/colors.less +450 -450
- package/src/themes/default/globals/site.variables +821 -821
- package/src/themes/default/modules/accordion.overrides +1 -1
- package/src/themes/default/modules/checkbox.overrides +2 -2
- package/src/themes/default/modules/dimmer.variables +7 -7
- package/src/themes/default/modules/dropdown.overrides +8 -8
- package/src/themes/default/modules/dropdown.variables +2 -2
- package/src/themes/default/modules/flyout.variables +1 -1
- package/src/themes/default/modules/modal.variables +1 -1
- package/src/themes/default/modules/popup.variables +1 -1
- package/src/themes/default/modules/search.variables +1 -1
- package/src/themes/default/modules/sidebar.variables +1 -1
- package/src/themes/default/modules/slider.variables +45 -45
- package/src/themes/default/modules/toast.variables +6 -6
- package/src/themes/default/modules/transition.overrides +24 -24
- package/src/themes/default/views/card.variables +11 -11
- package/src/themes/default/views/item.variables +4 -4
- package/src/themes/famfamfam/elements/flag.variables +2 -2
- package/src/themes/fixed-width/collections/grid.variables +3 -3
- package/src/themes/fixed-width/modules/modal.variables +9 -9
- package/src/themes/flat/collections/form.overrides +1 -1
- package/src/themes/flat/collections/form.variables +9 -9
- package/src/themes/flat/globals/site.variables +50 -50
- package/src/themes/github/collections/form.overrides +2 -2
- package/src/themes/github/collections/form.variables +2 -2
- package/src/themes/github/collections/menu.overrides +1 -1
- package/src/themes/github/collections/menu.variables +4 -4
- package/src/themes/github/collections/message.variables +5 -5
- package/src/themes/github/elements/button.variables +2 -2
- package/src/themes/github/elements/icon.variables +2 -2
- package/src/themes/github/elements/segment.variables +2 -2
- package/src/themes/github/elements/step.overrides +1 -1
- package/src/themes/github/elements/step.variables +2 -2
- package/src/themes/github/globals/site.variables +5 -5
- package/src/themes/github/modules/dropdown.overrides +4 -4
- package/src/themes/github/modules/dropdown.variables +6 -6
- package/src/themes/gmail/collections/message.overrides +3 -0
- package/src/themes/gmail/collections/message.variables +2 -2
- package/src/themes/instagram/views/card.overrides +1 -1
- package/src/themes/instagram/views/card.variables +1 -1
- package/src/themes/joypixels/elements/emoji.variables +2 -2
- package/src/themes/material/collections/menu.variables +2 -2
- package/src/themes/material/elements/button.overrides +4 -4
- package/src/themes/material/elements/button.variables +25 -25
- package/src/themes/material/elements/header.variables +6 -6
- package/src/themes/material/elements/icon.variables +4 -4
- package/src/themes/material/globals/site.overrides +3 -0
- package/src/themes/material/globals/site.variables +52 -52
- package/src/themes/material/modules/dropdown.overrides +1 -1
- package/src/themes/material/modules/dropdown.variables +3 -3
- package/src/themes/material/modules/modal.overrides +1 -1
- package/src/themes/material/modules/modal.variables +3 -3
- package/src/themes/pulsar/elements/loader.overrides +4 -4
- package/src/themes/round/elements/button.overrides +3 -0
- package/src/themes/round/elements/button.variables +15 -15
- package/src/themes/rtl/globals/site.variables +3 -3
- package/src/themes/striped/modules/progress.overrides +1 -1
- package/src/themes/systemfont/globals/site.variables +6 -6
- package/src/themes/timeline/views/feed.variables +4 -4
- package/src/themes/twitter/elements/button.overrides +1 -1
- package/src/themes/twitter/elements/button.variables +1 -1
- package/src/themes/twitter/elements/emoji.variables +2 -2
- package/tasks/admin/components/init.js +1 -1
- package/tasks/admin/components/update.js +1 -1
- package/tasks/admin/distributions/create.js +4 -5
- package/tasks/admin/distributions/init.js +1 -1
- package/tasks/admin/distributions/update.js +1 -1
- package/tasks/config/project/config.js +2 -2
- package/tasks/config/project/install.js +8 -8
- package/tasks/config/project/release.js +1 -1
- package/tasks/config/tasks.js +2 -2
- package/tasks/docs/metadata.js +1 -1
- package/tasks/install.js +3 -3
- package/test/modules/module.spec.js +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* # Fomantic UI - 2.9.1-beta.
|
2
|
+
* # Fomantic UI - 2.9.1-beta.26+1084e98
|
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(A,e,E,Y){"use strict";e=e!==Y&&e.Math===Math?e:globalThis,A.fn.shape=function(v){var b,x=A(this),y=Date.now(),w=[],C=v,S="string"==typeof C,T=[].slice.call(arguments,1),W=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||e.msRequestAnimationFrame||function(e){setTimeout(e,0)};return x.each(function(){var i,n,t=x.selector||"",a=A.isPlainObject(v)?A.extend(!0,{},A.fn.shape.settings,v):A.extend({},A.fn.shape.settings),e=a.namespace,r=a.selector,o=a.error,s=a.className,d="."+e,l="module-"+e,u=A(this),c=u.find(">"+r.sides),f=c.find(">"+r.side),g=!1,h=this,m=u.data(l),p={initialize:function(){p.verbose("Initializing module for",h),p.set.defaultSide(),p.instantiate()},instantiate:function(){p.verbose("Storing instance of module",p),m=p,u.data(l,m)},destroy:function(){p.verbose("Destroying previous module for",h),u.removeData(l).off(d)},refresh:function(){p.verbose("Refreshing selector cache for",h),u=A(h),c=A(this).find(r.sides),f=A(this).find(r.side)},repaint:function(){p.verbose("Forcing repaint event");(c[0]||E.createElement("div")).offsetWidth},animate:function(e,t){p.verbose("Animating box with properties",e),t=t||function(e){p.verbose("Executing animation callback"),e!==Y&&e.stopPropagation(),p.reset(),p.set.active()},a.onBeforeChange.call(n[0]),p.get.transitionEvent()?(p.verbose("Starting CSS animation"),u.addClass(s.animating),c.css(e).one(p.get.transitionEvent(),t),p.set.duration(a.duration),W(function(){u.addClass(s.animating),i.addClass(s.hidden)})):t()},queue:function(e){p.debug("Queueing animation of",e),c.one(p.get.transitionEvent(),function(){p.debug("Executing queued animation"),setTimeout(function(){u.shape(e)},0)})},reset:function(){p.verbose("Animating states reset"),u.removeClass(s.animating).attr("style","").removeAttr("style"),c.attr("style","").removeAttr("style"),f.attr("style","").removeAttr("style").removeClass(s.hidden),n.removeClass(s.animating).attr("style","").removeAttr("style")},is:{complete:function(){return f.filter("."+s.active)[0]
|
11
|
+
!function(A,e,E,Y){"use strict";e=e!==Y&&e.Math===Math?e:globalThis,A.fn.shape=function(v){var b,x=A(this),y=Date.now(),w=[],C=v,S="string"==typeof C,T=[].slice.call(arguments,1),W=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||e.msRequestAnimationFrame||function(e){setTimeout(e,0)};return x.each(function(){var i,n,t=x.selector||"",a=A.isPlainObject(v)?A.extend(!0,{},A.fn.shape.settings,v):A.extend({},A.fn.shape.settings),e=a.namespace,r=a.selector,o=a.error,s=a.className,d="."+e,l="module-"+e,u=A(this),c=u.find(">"+r.sides),f=c.find(">"+r.side),g=!1,h=this,m=u.data(l),p={initialize:function(){p.verbose("Initializing module for",h),p.set.defaultSide(),p.instantiate()},instantiate:function(){p.verbose("Storing instance of module",p),m=p,u.data(l,m)},destroy:function(){p.verbose("Destroying previous module for",h),u.removeData(l).off(d)},refresh:function(){p.verbose("Refreshing selector cache for",h),u=A(h),c=A(this).find(r.sides),f=A(this).find(r.side)},repaint:function(){p.verbose("Forcing repaint event");(c[0]||E.createElement("div")).offsetWidth},animate:function(e,t){p.verbose("Animating box with properties",e),t=t||function(e){p.verbose("Executing animation callback"),e!==Y&&e.stopPropagation(),p.reset(),p.set.active()},a.onBeforeChange.call(n[0]),p.get.transitionEvent()?(p.verbose("Starting CSS animation"),u.addClass(s.animating),c.css(e).one(p.get.transitionEvent(),t),p.set.duration(a.duration),W(function(){u.addClass(s.animating),i.addClass(s.hidden)})):t()},queue:function(e){p.debug("Queueing animation of",e),c.one(p.get.transitionEvent(),function(){p.debug("Executing queued animation"),setTimeout(function(){u.shape(e)},0)})},reset:function(){p.verbose("Animating states reset"),u.removeClass(s.animating).attr("style","").removeAttr("style"),c.attr("style","").removeAttr("style"),f.attr("style","").removeAttr("style").removeClass(s.hidden),n.removeClass(s.animating).attr("style","").removeAttr("style")},is:{complete:function(){return f.filter("."+s.active)[0]===n[0]},animating:function(){return u.hasClass(s.animating)},hidden:function(){return 0<u.closest(":hidden").length}},set:{defaultSide:function(){i=f.filter("."+a.className.active),n=0<i.next(r.side).length?i.next(r.side):f.first(),g=!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(f).css({"-webkit-transition-duration":e,"-moz-transition-duration":e,"-ms-transition-duration":e,"-o-transition-duration":e,"transition-duration":e})},currentStageSize:function(){var e=f.filter("."+a.className.active),t=e.outerWidth(!0),e=e.outerHeight(!0);u.css({width:t,height:e})},stageSize:function(){var e=u.clone().addClass(s.loading),t=e.find(">"+r.sides+">"+r.side),i=t.filter("."+a.className.active),t=g?t.eq(g):0<i.next(r.side).length?i.next(r.side):t.first(),n="next"===a.width?t.outerWidth(!0):"initial"===a.width?u.width():a.width,o="next"===a.height?t.outerHeight(!0):"initial"===a.height?u.height():a.height;i.removeClass(s.active),t.addClass(s.active),e.insertAfter(u),e.remove(),"auto"!==a.width&&(u.css("width",n+a.jitter),p.verbose("Specifying width during animation",n)),"auto"!==a.height&&(u.css("height",o+a.jitter),p.verbose("Specifying height during animation",o))},nextSide:function(e){g=e,n=f.filter(e),g=f.index(n),0===n.length&&(p.set.defaultSide(),p.error(o.side)),p.verbose("Next side manually set to",n)},active:function(){p.verbose("Setting new side to active",n),f.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)"}}},transitionEvent:function(){var e,t=E.createElement("element"),i={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in i)if(t.style[e]!==Y)return i[e]},nextSide:function(){return 0<i.next(r.side).length?i.next(r.side):f.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),A.isPlainObject(e))A.extend(!0,a,e);else{if(t===Y)return a[e];A.isPlainObject(a[e])?A.extend(!0,a[e],t):a[e]=t}},internal:function(e,t){if(A.isPlainObject(e))A.extend(!0,p,e);else{if(t===Y)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())-(y||t),y=t,w.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:h,"Execution Time":i})),clearTimeout(p.performance.timer),p.performance.timer=setTimeout(p.performance.display,500)},display:function(){var e=a.name+":",i=0;y=!1,clearTimeout(p.performance.timer),A.each(w,function(e,t){i+=t["Execution Time"]}),e+=" "+i+"ms",t&&(e+=" '"+t+"'"),1<x.length&&(e+=" ("+x.length+")"),(console.group!==Y||console.table!==Y)&&0<w.length&&(console.groupCollapsed(e),console.table?console.table(w):A.each(w,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),w=[]}},invoke:function(n,e,t){var o,a,i,r,s=m;return e=e||T,t=t||h,"string"==typeof n&&s!==Y&&(n=n.split(/[ .]/),o=n.length-1,A.each(n,function(e,t){var i=e!==o?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(A.isPlainObject(s[i])&&e!==o)s=s[i];else{if(s[i]!==Y)return a=s[i],!1;{if(!A.isPlainObject(s[t])||e===o)return s[t]!==Y&&(a=s[t]),!1;s=s[t]}}})),"function"==typeof(r=a)&&"number"!=typeof r.nodeType?i=a.apply(t,e):a!==Y&&(i=a),Array.isArray(b)?b.push(i):b!==Y?b=[b,i]:i!==Y&&(b=i),a}};S?(m===Y&&p.initialize(),0<(e=u.find("input")).length?(e.trigger("blur"),setTimeout(function(){p.invoke(C)},150)):p.invoke(C)):(m!==Y&&m.invoke("destroy"),p.initialize())}),b!==Y?b:this},A.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.9.1-beta.
|
2
|
+
* # Fomantic-UI 2.9.1-beta.26+1084e98 - Sidebar
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -360,12 +360,12 @@ body.pushable > .pusher {
|
|
360
360
|
transform: translate3d(100%, 0, 0);
|
361
361
|
}
|
362
362
|
.ui.top.overlay.sidebar {
|
363
|
-
-webkit-transform: translate3d(0
|
364
|
-
transform: translate3d(0
|
363
|
+
-webkit-transform: translate3d(0, -100%, 0);
|
364
|
+
transform: translate3d(0, -100%, 0);
|
365
365
|
}
|
366
366
|
.ui.bottom.overlay.sidebar {
|
367
|
-
-webkit-transform: translate3d(0
|
368
|
-
transform: translate3d(0
|
367
|
+
-webkit-transform: translate3d(0, 100%, 0);
|
368
|
+
transform: translate3d(0, 100%, 0);
|
369
369
|
}
|
370
370
|
|
371
371
|
/* Animation */
|
@@ -379,20 +379,20 @@ body.pushable > .pusher {
|
|
379
379
|
|
380
380
|
/* End - Sidebar */
|
381
381
|
.ui.visible.left.overlay.sidebar {
|
382
|
-
-webkit-transform: translate3d(0
|
383
|
-
transform: translate3d(0
|
382
|
+
-webkit-transform: translate3d(0, 0, 0);
|
383
|
+
transform: translate3d(0, 0, 0);
|
384
384
|
}
|
385
385
|
.ui.visible.right.overlay.sidebar {
|
386
|
-
-webkit-transform: translate3d(0
|
387
|
-
transform: translate3d(0
|
386
|
+
-webkit-transform: translate3d(0, 0, 0);
|
387
|
+
transform: translate3d(0, 0, 0);
|
388
388
|
}
|
389
389
|
.ui.visible.top.overlay.sidebar {
|
390
|
-
-webkit-transform: translate3d(0
|
391
|
-
transform: translate3d(0
|
390
|
+
-webkit-transform: translate3d(0, 0, 0);
|
391
|
+
transform: translate3d(0, 0, 0);
|
392
392
|
}
|
393
393
|
.ui.visible.bottom.overlay.sidebar {
|
394
|
-
-webkit-transform: translate3d(0
|
395
|
-
transform: translate3d(0
|
394
|
+
-webkit-transform: translate3d(0, 0, 0);
|
395
|
+
transform: translate3d(0, 0, 0);
|
396
396
|
}
|
397
397
|
|
398
398
|
/* End - Pusher */
|
@@ -425,18 +425,18 @@ body.pushable > .pusher {
|
|
425
425
|
transform: translate3d(100%, 0, 0);
|
426
426
|
}
|
427
427
|
.ui.top.push.sidebar {
|
428
|
-
-webkit-transform: translate3d(0
|
429
|
-
transform: translate3d(0
|
428
|
+
-webkit-transform: translate3d(0, -100%, 0);
|
429
|
+
transform: translate3d(0, -100%, 0);
|
430
430
|
}
|
431
431
|
.ui.bottom.push.sidebar {
|
432
|
-
-webkit-transform: translate3d(0
|
433
|
-
transform: translate3d(0
|
432
|
+
-webkit-transform: translate3d(0, 100%, 0);
|
433
|
+
transform: translate3d(0, 100%, 0);
|
434
434
|
}
|
435
435
|
|
436
436
|
/* End */
|
437
437
|
.ui.visible.push.sidebar {
|
438
|
-
-webkit-transform: translate3d(0
|
439
|
-
transform: translate3d(0
|
438
|
+
-webkit-transform: translate3d(0, 0, 0);
|
439
|
+
transform: translate3d(0, 0, 0);
|
440
440
|
}
|
441
441
|
|
442
442
|
/* --------------
|
@@ -483,8 +483,8 @@ body.pushable > .pusher {
|
|
483
483
|
transform: translate3d(0, -50%, 0);
|
484
484
|
}
|
485
485
|
.ui.bottom.slide.along.sidebar {
|
486
|
-
-webkit-transform: translate3d(0
|
487
|
-
transform: translate3d(0
|
486
|
+
-webkit-transform: translate3d(0, 50%, 0);
|
487
|
+
transform: translate3d(0, 50%, 0);
|
488
488
|
}
|
489
489
|
|
490
490
|
/* Animation */
|
@@ -497,8 +497,8 @@ body.pushable > .pusher {
|
|
497
497
|
|
498
498
|
/* End */
|
499
499
|
.ui.visible.slide.along.sidebar {
|
500
|
-
-webkit-transform: translate3d(0
|
501
|
-
transform: translate3d(0
|
500
|
+
-webkit-transform: translate3d(0, 0, 0);
|
501
|
+
transform: translate3d(0, 0, 0);
|
502
502
|
}
|
503
503
|
|
504
504
|
/* --------------
|
@@ -520,12 +520,12 @@ body.pushable > .pusher {
|
|
520
520
|
transform: translate3d(-50%, 0, 0);
|
521
521
|
}
|
522
522
|
.ui.top.slide.out.sidebar {
|
523
|
-
-webkit-transform: translate3d(0
|
524
|
-
transform: translate3d(0
|
523
|
+
-webkit-transform: translate3d(0, 50%, 0);
|
524
|
+
transform: translate3d(0, 50%, 0);
|
525
525
|
}
|
526
526
|
.ui.bottom.slide.out.sidebar {
|
527
|
-
-webkit-transform: translate3d(0
|
528
|
-
transform: translate3d(0
|
527
|
+
-webkit-transform: translate3d(0, -50%, 0);
|
528
|
+
transform: translate3d(0, -50%, 0);
|
529
529
|
}
|
530
530
|
|
531
531
|
/* Animation */
|
@@ -538,8 +538,8 @@ body.pushable > .pusher {
|
|
538
538
|
|
539
539
|
/* End */
|
540
540
|
.ui.visible.slide.out.sidebar {
|
541
|
-
-webkit-transform: translate3d(0
|
542
|
-
transform: translate3d(0
|
541
|
+
-webkit-transform: translate3d(0, 0, 0);
|
542
|
+
transform: translate3d(0, 0, 0);
|
543
543
|
}
|
544
544
|
|
545
545
|
/* --------------
|
@@ -563,12 +563,12 @@ body.pushable > .pusher {
|
|
563
563
|
transform: translate3d(100%, 0, 0);
|
564
564
|
}
|
565
565
|
.ui.top.scale.down.sidebar {
|
566
|
-
-webkit-transform: translate3d(0
|
567
|
-
transform: translate3d(0
|
566
|
+
-webkit-transform: translate3d(0, -100%, 0);
|
567
|
+
transform: translate3d(0, -100%, 0);
|
568
568
|
}
|
569
569
|
.ui.bottom.scale.down.sidebar {
|
570
|
-
-webkit-transform: translate3d(0
|
571
|
-
transform: translate3d(0
|
570
|
+
-webkit-transform: translate3d(0, 100%, 0);
|
571
|
+
transform: translate3d(0, 100%, 0);
|
572
572
|
}
|
573
573
|
|
574
574
|
/* Pusher - Initial */
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.9.1-beta.
|
2
|
+
* # Fomantic-UI 2.9.1-beta.26+1084e98 - Sidebar
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -249,7 +249,7 @@
|
|
249
249
|
+ ' -webkit-transform: translate3d(' + distance[direction] + 'px, 0, 0);'
|
250
250
|
+ ' transform: translate3d(' + distance[direction] + 'px, 0, 0);'
|
251
251
|
+ ' }';
|
252
|
-
} else if (direction === 'top' || direction
|
252
|
+
} else if (direction === 'top' || direction === 'bottom') {
|
253
253
|
style += ''
|
254
254
|
+ ' .ui.visible.' + direction + '.sidebar ~ .fixed,'
|
255
255
|
+ ' .ui.visible.' + direction + '.sidebar ~ .pusher {'
|
@@ -268,7 +268,7 @@
|
|
268
268
|
+ ' -webkit-transform: translate3d(' + distance[direction] + 'px, 0, 0);'
|
269
269
|
+ ' transform: translate3d(' + distance[direction] + 'px, 0, 0);'
|
270
270
|
+ ' }';
|
271
|
-
} else if (direction === 'top' || direction
|
271
|
+
} else if (direction === 'top' || direction === 'bottom') {
|
272
272
|
style += ''
|
273
273
|
+ ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher::after {'
|
274
274
|
+ ' -webkit-transform: translate3d(0, ' + distance[direction] + 'px, 0);'
|
@@ -399,7 +399,7 @@
|
|
399
399
|
module.debug('Other sidebars currently visible');
|
400
400
|
if (settings.exclusive) {
|
401
401
|
// if not overlay queue animation after hide
|
402
|
-
if (settings.transition
|
402
|
+
if (settings.transition !== 'overlay') {
|
403
403
|
module.hideOthers(module.show);
|
404
404
|
|
405
405
|
return;
|
@@ -456,7 +456,7 @@
|
|
456
456
|
$otherSidebars
|
457
457
|
.sidebar('hide', function () {
|
458
458
|
callbackCount++;
|
459
|
-
if (callbackCount
|
459
|
+
if (callbackCount === sidebarCount) {
|
460
460
|
callback();
|
461
461
|
}
|
462
462
|
})
|
@@ -504,7 +504,7 @@
|
|
504
504
|
module.set.dimmed();
|
505
505
|
};
|
506
506
|
transitionEnd = function (event) {
|
507
|
-
if (event.target
|
507
|
+
if (event.target === $transition[0]) {
|
508
508
|
$transition.off(transitionEvent + elementNamespace, transitionEnd);
|
509
509
|
module.remove.animating();
|
510
510
|
callback.call(element);
|
@@ -521,7 +521,7 @@
|
|
521
521
|
pullPage: function (callback) {
|
522
522
|
var
|
523
523
|
transition = module.get.transition(),
|
524
|
-
$transition = transition
|
524
|
+
$transition = transition === 'overlay' || module.othersActive()
|
525
525
|
? $module
|
526
526
|
: $pusher,
|
527
527
|
animate,
|
@@ -544,7 +544,7 @@
|
|
544
544
|
module.remove.visible();
|
545
545
|
};
|
546
546
|
transitionEnd = function (event) {
|
547
|
-
if (event.target
|
547
|
+
if (event.target === $transition[0]) {
|
548
548
|
$transition.off(transitionEvent + elementNamespace, transitionEnd);
|
549
549
|
module.remove.animating();
|
550
550
|
module.remove.closing();
|
@@ -725,10 +725,10 @@
|
|
725
725
|
transition
|
726
726
|
;
|
727
727
|
transition = module.is.mobile()
|
728
|
-
? (settings.mobileTransition
|
728
|
+
? (settings.mobileTransition === 'auto'
|
729
729
|
? settings.defaultTransition.mobile[direction]
|
730
730
|
: settings.mobileTransition)
|
731
|
-
: (settings.transition
|
731
|
+
: (settings.transition === 'auto'
|
732
732
|
? settings.defaultTransition.computer[direction]
|
733
733
|
: settings.transition);
|
734
734
|
module.verbose('Determined transition', transition);
|
@@ -964,17 +964,17 @@
|
|
964
964
|
query = query.split(/[ .]/);
|
965
965
|
maxDepth = query.length - 1;
|
966
966
|
$.each(query, function (depth, value) {
|
967
|
-
var camelCaseValue = depth
|
967
|
+
var camelCaseValue = depth !== maxDepth
|
968
968
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
969
969
|
: query
|
970
970
|
;
|
971
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
971
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
972
972
|
object = object[camelCaseValue];
|
973
973
|
} else if (object[camelCaseValue] !== undefined) {
|
974
974
|
found = object[camelCaseValue];
|
975
975
|
|
976
976
|
return false;
|
977
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
977
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
978
978
|
object = object[value];
|
979
979
|
} else if (object[value] !== undefined) {
|
980
980
|
found = object[value];
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* # Fomantic UI - 2.9.1-beta.
|
2
|
+
* # Fomantic UI - 2.9.1-beta.26+1084e98
|
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(z,I,V,W){"use strict";function q(e){return"function"==typeof e&&"number"!=typeof e.nodeType}I=I!==W&&I.Math===Math?I:globalThis,z.fn.sidebar=function(T){var w,e=z(this),A=z(I),E=z(V),F=z("body"),O=z("html"),P=z("head"),M=e.selector||"",B=Date.now(),H=[],R=T,L="string"==typeof R,j=[].slice.call(arguments,1),D=I.requestAnimationFrame||I.mozRequestAnimationFrame||I.webkitRequestAnimationFrame||I.msRequestAnimationFrame||function(e){setTimeout(e,0)};return e.each(function(){var o,r,e,s,a,l=z.isPlainObject(T)?z.extend(!0,{},z.fn.sidebar.settings,T):z.extend({},z.fn.sidebar.settings),i=l.selector,c=l.className,n=l.namespace,t=l.regExp,d=l.error,u="."+n,f="module-"+n,h=z(this),b=[I,V].indexOf(l.context)<0?E.find(l.context):F,g=b[0]===F[0],m=h.children(i.sidebar),p=(b.children(i.fixed),b.children(i.pusher)),v=this,y=h.data(f),x="",S="",C=!1,k={initialize:function(){k.debug("Initializing sidebar",T),k.create.id(),a=k.get.transitionEvent(),l.delaySetup?D(k.setup.layout):k.setup.layout(),D(function(){k.setup.cache()}),k.instantiate()},instantiate:function(){k.verbose("Storing instance of module",k),y=k,h.data(f,k)},create:{id:function(){e=(Math.random().toString(16)+"000000000").slice(2,10),r="."+e,k.verbose("Creating unique id for element",e)}},destroy:function(){k.verbose("Destroying previous module for",h),h.off(u).removeData(f),k.is.ios()&&k.remove.ios(),b.off(r),A.off(r),E.off(r)},event:{clickaway:function(e){var i;l.closable&&(i=0<p.find(e.target).length||p.is(e.target),e=b.is(e.target),i&&(k.verbose("User clicked on dimmed page"),k.hide()),e&&(k.verbose("User clicked on dimmable context (scaled out page)"),k.hide()))},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===z(e.target).closest(i.sidebar).length&&e.preventDefault()}},bind:{clickaway:function(){k.verbose("Adding clickaway events to context",b),b.on("click"+r,k.event.clickaway).on("touchend"+r,k.event.clickaway)},scrollLock:function(){l.scrollLock&&(k.debug("Disabling page scroll"),(C=k.has.scrollbar())&&(k.save.bodyMargin(),k.set.bodyMargin()),b.addClass(c.locked)),k.verbose("Adding events to contain sidebar scroll"),E.on("touchmove"+r,k.event.touch),h.on("scroll"+u,k.event.containScroll)}},unbind:{clickaway:function(){k.verbose("Removing clickaway events from context",b),b.off(r)},scrollLock:function(){k.verbose("Removing scroll lock from page"),C&&k.restore.bodyMargin(),b.removeClass(c.locked),E.off(r),h.off("scroll"+u)}},add:{inlineCSS:function(){var e=k.cache.width||h.outerWidth(),i=k.cache.height||h.outerHeight(),n=k.is.rtl(),t=k.get.direction(),i={left:e,right:-e,top:i,bottom:-i};n&&(k.verbose("RTL detected, flipping widths"),i.left=-e,i.right=e),n="<style>","left"===t||"right"===t?(k.debug("Adding CSS rules for animation distance",e),n+=" .ui.visible."+t+".sidebar ~ .fixed, .ui.visible."+t+".sidebar ~ .pusher { -webkit-transform: translate3d("+i[t]+"px, 0, 0); transform: translate3d("+i[t]+"px, 0, 0); }"):"top"!==t&&"bottom"!=t||(n+=" .ui.visible."+t+".sidebar ~ .fixed, .ui.visible."+t+".sidebar ~ .pusher { -webkit-transform: translate3d(0, "+i[t]+"px, 0); transform: translate3d(0, "+i[t]+"px, 0); }"),k.is.ie()&&("left"===t||"right"===t?(k.debug("Adding CSS rules for animation distance",e),n+=" body.pushable > .ui.visible."+t+".sidebar ~ .pusher::after { -webkit-transform: translate3d("+i[t]+"px, 0, 0); transform: translate3d("+i[t]+"px, 0, 0); }"):"top"!==t&&"bottom"!=t||(n+=" body.pushable > .ui.visible."+t+".sidebar ~ .pusher::after { -webkit-transform: translate3d(0, "+i[t]+"px, 0); transform: translate3d(0, "+i[t]+"px, 0); }"),n+=" body.pushable > .ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .pusher::after, body.pushable > .ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .pusher::after { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }"),o=z(n+="</style>").appendTo(P),k.debug("Adding sizing css to head",o)}},refresh:function(){k.verbose("Refreshing selector cache"),b=[I,V].indexOf(l.context)<0?E.find(l.context):F,k.refreshSidebars(),p=b.children(i.pusher),b.children(i.fixed),k.clear.cache()},refreshSidebars:function(){k.verbose("Refreshing other sidebars"),m=b.children(i.sidebar)},repaint:function(){k.verbose("Forcing repaint event"),v.style.display="none";v.offsetHeight;v.scrollTop=v.scrollTop,v.style.display=""},setup:{cache:function(){k.cache={width:h.outerWidth(),height:h.outerHeight()}},layout:function(){0===b.children(i.pusher).length&&(k.debug("Adding wrapper element for sidebar"),k.error(d.pusher),p=z('<div class="pusher" />'),b.children().not(i.omitted).not(m).wrapAll(p),k.refresh()),0!==h.nextAll(i.pusher).length&&h.nextAll(i.pusher)[0]===p[0]||(k.debug("Moved sidebar to correct parent element"),k.error(d.movedSidebar,v),h.detach().prependTo(b),k.refresh()),k.clear.cache(),k.set.pushable(),k.set.direction()}},attachEvents:function(e,i){var n=z(e);i=q(k[i])?k[i]:k.toggle,0<n.length?(k.debug("Attaching sidebar events to element",e,i),n.on("click"+u,i)):k.error(d.notFound,e)},can:{leftBodyScrollbar:function(){return k.cache.leftBodyScrollbar===W&&(k.cache.leftBodyScrollbar=k.is.rtl()&&(k.is.iframe&&!k.is.firefox()||k.is.safari()||k.is.edge()||k.is.ie())),k.cache.leftBodyScrollbar}},save:{bodyMargin:function(){x=b.css((g?"margin-":"padding-")+(k.can.leftBodyScrollbar()?"left":"right"));var e=parseInt(x.replace(/[^\d.]/g,""),10),i=g?I.innerWidth-V.documentElement.clientWidth:b[0].offsetWidth-b[0].clientWidth;S=e+i}},show:function(e){if(e=q(e)?e:function(){},k.is.hidden())if(!1===l.onShow.call(v))k.verbose("Show callback returned false cancelling show");else{if(l.overlay&&(k.error(d.overlay),l.transition="overlay"),k.refresh(),k.othersActive())if(k.debug("Other sidebars currently visible"),l.exclusive){if("overlay"!=l.transition)return void k.hideOthers(k.show);k.hideOthers()}else l.transition="overlay";k.set.dimmerStyles(),k.pushPage(function(){e.call(v),l.onVisible.call(v)}),l.onChange.call(v)}else k.debug("Sidebar is already visible")},hide:function(e){e=q(e)?e:function(){},(k.is.visible()||k.is.animating())&&!1!==l.onHide.call(v)&&(k.debug("Hiding sidebar",e),k.refreshSidebars(),k.pullPage(function(){e.call(v),l.onHidden.call(v)}),l.onChange.call(v))},othersAnimating:function(){return 0<m.not(h).filter("."+c.animating).length},othersVisible:function(){return 0<m.not(h).filter("."+c.visible).length},othersActive:function(){return k.othersVisible()||k.othersAnimating()},hideOthers:function(e){var i=m.not(h).filter("."+c.visible),n=i.length,t=0;e=e||function(){},i.sidebar("hide",function(){++t==n&&e()})},toggle:function(){k.verbose("Determining toggled direction"),k.is.hidden()?k.show():k.hide()},pushPage:function(i){var e,n,t=k.get.transition(),o="overlay"===t||k.othersActive()?h:p;i=q(i)?i:function(){},l.returnScroll&&(s=(g?A:b).scrollTop()),"scale down"===l.transition&&k.scrollToTop(),k.bind.scrollLock(),k.set.transition(t),k.repaint(),t=function(){k.bind.clickaway(),k.add.inlineCSS(),k.set.animating(),k.set.visible()},e=function(){k.set.dimmed()},n=function(e){e.target==o[0]&&(o.off(a+r,n),k.remove.animating(),i.call(v))},o.off(a+r),o.on(a+r,n),D(t),l.dimPage&&!k.othersVisible()&&D(e)},pullPage:function(i){var e,n,t=k.get.transition(),o="overlay"==t||k.othersActive()?h:p;i=q(i)?i:function(){},k.verbose("Removing context push state",k.get.direction()),k.unbind.clickaway(),k.unbind.scrollLock(),e=function(){k.set.transition(t),k.set.animating(),l.dimPage&&!k.othersVisible()&&k.set.closing(),k.remove.visible()},n=function(e){e.target==o[0]&&(o.off(a+r,n),k.remove.animating(),k.remove.closing(),k.remove.transition(),k.remove.inlineCSS(),"scale down"!==t&&!l.returnScroll||k.scrollBack(),l.dimPage&&!k.othersVisible()&&p.removeClass(c.dimmed),i.call(v))},o.off(a+r),o.on(a+r,n),D(e)},scrollToTop:function(){k.verbose("Scrolling to top of page to avoid animation issues"),h.scrollTop(0),(g?A:b)[0].scrollTo(0,0)},scrollBack:function(){k.verbose("Scrolling back to original page position"),(g?A:b)[0].scrollTo(0,s)},clear:{cache:function(){k.verbose("Clearing cached dimensions"),k.cache={}}},set:{bodyMargin:function(){var n=k.can.leftBodyScrollbar()?"left":"right";b.css((g?"margin-":"padding-")+n,S+"px"),b.find(i.bodyFixed.replace("right",n)).each(function(){var e=z(this),i="fixed"===e.css("position")?"padding-"+n:n;e.css(i,"calc("+e.css(i)+" + "+S+"px)")})},dimmerStyles:function(){l.blurring?p.addClass(c.blurring):p.removeClass(c.blurring)},ios:function(){O.addClass(c.ios)},pushed:function(){b.addClass(c.pushed)},pushable:function(){b.addClass(c.pushable)},dimmed:function(){p.addClass(c.dimmed)},active:function(){h.addClass(c.active)},animating:function(){h.addClass(c.animating)},closing:function(){p.addClass(c.closing)},transition:function(e){e=e||k.get.transition(),h.addClass(e)},direction:function(e){e=e||k.get.direction(),h.addClass(c[e])},visible:function(){h.addClass(c.visible)},overlay:function(){h.addClass(c.overlay)}},remove:{inlineCSS:function(){k.debug("Removing inline css styles",o),o&&0<o.length&&o.remove()},ios:function(){O.removeClass(c.ios)},pushed:function(){b.removeClass(c.pushed)},pushable:function(){b.removeClass(c.pushable)},active:function(){h.removeClass(c.active)},animating:function(){h.removeClass(c.animating)},closing:function(){p.removeClass(c.closing)},transition:function(e){e=e||k.get.transition(),h.removeClass(e)},direction:function(e){e=e||k.get.direction(),h.removeClass(c[e])},visible:function(){h.removeClass(c.visible)},overlay:function(){h.removeClass(c.overlay)}},restore:{bodyMargin:function(){var n=k.can.leftBodyScrollbar()?"left":"right";b.css((g?"margin-":"padding-")+n,x),b.find(i.bodyFixed.replace("right",n)).each(function(){var e=z(this),i="fixed"===e.css("position")?"padding-"+n:n;e.css(i,"")})}},get:{direction:function(){return h.hasClass(c.top)?c.top:h.hasClass(c.right)?c.right:h.hasClass(c.bottom)?c.bottom:c.left},transition:function(){var e=k.get.direction(),e=k.is.mobile()?"auto"==l.mobileTransition?l.defaultTransition.mobile[e]:l.mobileTransition:"auto"==l.transition?l.defaultTransition.computer[e]:l.transition;return k.verbose("Determined transition",e),e},transitionEvent:function(){var e,i=V.createElement("element"),n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in n)if(i.style[e]!==W)return n[e]}},has:{scrollbar:function(){return g||"hidden"!==b.css("overflow-y")}},is:{safari:function(){return k.cache.isSafari===W&&(k.cache.isSafari=/constructor/i.test(I.HTMLElement)||!!I.ApplePaySession),k.cache.isSafari},edge:function(){return k.cache.isEdge===W&&(k.cache.isEdge=!!I.setImmediate&&!k.is.ie()),k.cache.isEdge},firefox:function(){return k.cache.isFirefox===W&&(k.cache.isFirefox=!!I.InstallTrigger),k.cache.isFirefox},iframe:function(){return!(self===top)},ie:function(){var e,i;return k.cache.isIE===W&&(e=!I.ActiveXObject&&"ActiveXObject"in I,i="ActiveXObject"in I,k.cache.isIE=e||i),k.cache.isIE},ios:function(){var e=navigator.userAgent,i=e.match(t.ios),n=e.match(t.mobileChrome);return!(!i||n)&&(k.verbose("Browser was found to be iOS",e),!0)},mobile:function(){var e=navigator.userAgent;return e.match(t.mobile)?(k.verbose("Browser was found to be mobile",e),!0):(k.verbose("Browser is not mobile, using regular transition",e),!1)},hidden:function(){return!k.is.visible()},visible:function(){return h.hasClass(c.visible)},open:function(){return k.is.visible()},closed:function(){return k.is.hidden()},vertical:function(){return h.hasClass(c.top)},animating:function(){return b.hasClass(c.animating)},rtl:function(){return k.cache.isRTL===W&&(k.cache.isRTL="rtl"===h.attr("dir")||"rtl"===h.css("direction")||"rtl"===F.attr("dir")||"rtl"===F.css("direction")||"rtl"===b.attr("dir")||"rtl"===b.css("direction")),k.cache.isRTL}},setting:function(e,i){if(k.debug("Changing setting",e,i),z.isPlainObject(e))z.extend(!0,l,e);else{if(i===W)return l[e];z.isPlainObject(l[e])?z.extend(!0,l[e],i):l[e]=i}},internal:function(e,i){if(z.isPlainObject(e))z.extend(!0,k,e);else{if(i===W)return k[e];k[e]=i}},debug:function(){!l.silent&&l.debug&&(l.performance?k.performance.log(arguments):(k.debug=Function.prototype.bind.call(console.info,console,l.name+":"),k.debug.apply(console,arguments)))},verbose:function(){!l.silent&&l.verbose&&l.debug&&(l.performance?k.performance.log(arguments):(k.verbose=Function.prototype.bind.call(console.info,console,l.name+":"),k.verbose.apply(console,arguments)))},error:function(){l.silent||(k.error=Function.prototype.bind.call(console.error,console,l.name+":"),k.error.apply(console,arguments))},performance:{log:function(e){var i,n;l.performance&&(n=(i=Date.now())-(B||i),B=i,H.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:v,"Execution Time":n})),clearTimeout(k.performance.timer),k.performance.timer=setTimeout(k.performance.display,500)},display:function(){var e=l.name+":",n=0;B=!1,clearTimeout(k.performance.timer),z.each(H,function(e,i){n+=i["Execution Time"]}),e+=" "+n+"ms",M&&(e+=" '"+M+"'"),(console.group!==W||console.table!==W)&&0<H.length&&(console.groupCollapsed(e),console.table?console.table(H):z.each(H,function(e,i){console.log(i.Name+": "+i["Execution Time"]+"ms")}),console.groupEnd()),H=[]}},invoke:function(t,e,i){var o,r,n,s=y;return e=e||j,i=i||v,"string"==typeof t&&s!==W&&(t=t.split(/[ .]/),o=t.length-1,z.each(t,function(e,i){var n=e!=o?i+t[e+1].charAt(0).toUpperCase()+t[e+1].slice(1):t;if(z.isPlainObject(s[n])&&e!=o)s=s[n];else{if(s[n]!==W)return r=s[n],!1;{if(!z.isPlainObject(s[i])||e==o)return s[i]!==W?r=s[i]:k.error(d.method,t),!1;s=s[i]}}})),q(r)?n=r.apply(i,e):r!==W&&(n=r),Array.isArray(w)?w.push(n):w!==W?w=[w,n]:n!==W&&(w=n),r}};L?(y===W&&k.initialize(),k.invoke(R)):(y!==W&&k.invoke("destroy"),k.initialize())}),w!==W?w:this},z.fn.sidebar.settings={name:"Sidebar",namespace:"sidebar",silent:!1,debug:!1,verbose:!1,performance:!0,transition:"auto",mobileTransition:"auto",defaultTransition:{computer:{left:"uncover",right:"uncover",top:"overlay",bottom:"overlay"},mobile:{left:"uncover",right:"uncover",top:"overlay",bottom:"overlay"}},context:"body",exclusive:!1,closable:!0,dimPage:!0,scrollLock:!1,returnScroll:!1,delaySetup:!1,onChange:function(){},onShow:function(){},onHide:function(){},onHidden:function(){},onVisible:function(){},className:{active:"active",animating:"animating",blurring:"blurring",closing:"closing",dimmed:"dimmed",ios:"ios",locked:"locked",pushable:"pushable",pushed:"pushed",right:"right",top:"top",left:"left",bottom:"bottom",visible:"visible"},selector:{bodyFixed:"> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.fixed.nag, > .ui.fixed.nag > .close",fixed:".fixed",omitted:"script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed",pusher:".pusher",sidebar:".ui.sidebar"},regExp:{ios:/(iPad|iPhone|iPod)/g,mobileChrome:/(CriOS)/g,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",movedSidebar:"Had to move sidebar. For optimal performance make sure sidebar and pusher are direct children of your body tag",overlay:"The overlay setting is no longer supported, use animation: overlay",notFound:"There were no elements that matched the specified selector"}}}(jQuery,window,document);
|
11
|
+
!function(z,I,V,W){"use strict";function q(e){return"function"==typeof e&&"number"!=typeof e.nodeType}I=I!==W&&I.Math===Math?I:globalThis,z.fn.sidebar=function(T){var w,e=z(this),A=z(I),E=z(V),F=z("body"),O=z("html"),P=z("head"),M=e.selector||"",B=Date.now(),H=[],R=T,L="string"==typeof R,j=[].slice.call(arguments,1),D=I.requestAnimationFrame||I.mozRequestAnimationFrame||I.webkitRequestAnimationFrame||I.msRequestAnimationFrame||function(e){setTimeout(e,0)};return e.each(function(){var o,r,e,s,a,l=z.isPlainObject(T)?z.extend(!0,{},z.fn.sidebar.settings,T):z.extend({},z.fn.sidebar.settings),i=l.selector,c=l.className,n=l.namespace,t=l.regExp,d=l.error,u="."+n,f="module-"+n,h=z(this),b=[I,V].indexOf(l.context)<0?E.find(l.context):F,g=b[0]===F[0],m=h.children(i.sidebar),p=(b.children(i.fixed),b.children(i.pusher)),v=this,y=h.data(f),x="",S="",C=!1,k={initialize:function(){k.debug("Initializing sidebar",T),k.create.id(),a=k.get.transitionEvent(),l.delaySetup?D(k.setup.layout):k.setup.layout(),D(function(){k.setup.cache()}),k.instantiate()},instantiate:function(){k.verbose("Storing instance of module",k),y=k,h.data(f,k)},create:{id:function(){e=(Math.random().toString(16)+"000000000").slice(2,10),r="."+e,k.verbose("Creating unique id for element",e)}},destroy:function(){k.verbose("Destroying previous module for",h),h.off(u).removeData(f),k.is.ios()&&k.remove.ios(),b.off(r),A.off(r),E.off(r)},event:{clickaway:function(e){var i;l.closable&&(i=0<p.find(e.target).length||p.is(e.target),e=b.is(e.target),i&&(k.verbose("User clicked on dimmed page"),k.hide()),e&&(k.verbose("User clicked on dimmable context (scaled out page)"),k.hide()))},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===z(e.target).closest(i.sidebar).length&&e.preventDefault()}},bind:{clickaway:function(){k.verbose("Adding clickaway events to context",b),b.on("click"+r,k.event.clickaway).on("touchend"+r,k.event.clickaway)},scrollLock:function(){l.scrollLock&&(k.debug("Disabling page scroll"),(C=k.has.scrollbar())&&(k.save.bodyMargin(),k.set.bodyMargin()),b.addClass(c.locked)),k.verbose("Adding events to contain sidebar scroll"),E.on("touchmove"+r,k.event.touch),h.on("scroll"+u,k.event.containScroll)}},unbind:{clickaway:function(){k.verbose("Removing clickaway events from context",b),b.off(r)},scrollLock:function(){k.verbose("Removing scroll lock from page"),C&&k.restore.bodyMargin(),b.removeClass(c.locked),E.off(r),h.off("scroll"+u)}},add:{inlineCSS:function(){var e=k.cache.width||h.outerWidth(),i=k.cache.height||h.outerHeight(),n=k.is.rtl(),t=k.get.direction(),i={left:e,right:-e,top:i,bottom:-i};n&&(k.verbose("RTL detected, flipping widths"),i.left=-e,i.right=e),n="<style>","left"===t||"right"===t?(k.debug("Adding CSS rules for animation distance",e),n+=" .ui.visible."+t+".sidebar ~ .fixed, .ui.visible."+t+".sidebar ~ .pusher { -webkit-transform: translate3d("+i[t]+"px, 0, 0); transform: translate3d("+i[t]+"px, 0, 0); }"):"top"!==t&&"bottom"!==t||(n+=" .ui.visible."+t+".sidebar ~ .fixed, .ui.visible."+t+".sidebar ~ .pusher { -webkit-transform: translate3d(0, "+i[t]+"px, 0); transform: translate3d(0, "+i[t]+"px, 0); }"),k.is.ie()&&("left"===t||"right"===t?(k.debug("Adding CSS rules for animation distance",e),n+=" body.pushable > .ui.visible."+t+".sidebar ~ .pusher::after { -webkit-transform: translate3d("+i[t]+"px, 0, 0); transform: translate3d("+i[t]+"px, 0, 0); }"):"top"!==t&&"bottom"!==t||(n+=" body.pushable > .ui.visible."+t+".sidebar ~ .pusher::after { -webkit-transform: translate3d(0, "+i[t]+"px, 0); transform: translate3d(0, "+i[t]+"px, 0); }"),n+=" body.pushable > .ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .pusher::after, body.pushable > .ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .pusher::after { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }"),o=z(n+="</style>").appendTo(P),k.debug("Adding sizing css to head",o)}},refresh:function(){k.verbose("Refreshing selector cache"),b=[I,V].indexOf(l.context)<0?E.find(l.context):F,k.refreshSidebars(),p=b.children(i.pusher),b.children(i.fixed),k.clear.cache()},refreshSidebars:function(){k.verbose("Refreshing other sidebars"),m=b.children(i.sidebar)},repaint:function(){k.verbose("Forcing repaint event"),v.style.display="none";v.offsetHeight;v.scrollTop=v.scrollTop,v.style.display=""},setup:{cache:function(){k.cache={width:h.outerWidth(),height:h.outerHeight()}},layout:function(){0===b.children(i.pusher).length&&(k.debug("Adding wrapper element for sidebar"),k.error(d.pusher),p=z('<div class="pusher" />'),b.children().not(i.omitted).not(m).wrapAll(p),k.refresh()),0!==h.nextAll(i.pusher).length&&h.nextAll(i.pusher)[0]===p[0]||(k.debug("Moved sidebar to correct parent element"),k.error(d.movedSidebar,v),h.detach().prependTo(b),k.refresh()),k.clear.cache(),k.set.pushable(),k.set.direction()}},attachEvents:function(e,i){var n=z(e);i=q(k[i])?k[i]:k.toggle,0<n.length?(k.debug("Attaching sidebar events to element",e,i),n.on("click"+u,i)):k.error(d.notFound,e)},can:{leftBodyScrollbar:function(){return k.cache.leftBodyScrollbar===W&&(k.cache.leftBodyScrollbar=k.is.rtl()&&(k.is.iframe&&!k.is.firefox()||k.is.safari()||k.is.edge()||k.is.ie())),k.cache.leftBodyScrollbar}},save:{bodyMargin:function(){x=b.css((g?"margin-":"padding-")+(k.can.leftBodyScrollbar()?"left":"right"));var e=parseInt(x.replace(/[^\d.]/g,""),10),i=g?I.innerWidth-V.documentElement.clientWidth:b[0].offsetWidth-b[0].clientWidth;S=e+i}},show:function(e){if(e=q(e)?e:function(){},k.is.hidden())if(!1===l.onShow.call(v))k.verbose("Show callback returned false cancelling show");else{if(l.overlay&&(k.error(d.overlay),l.transition="overlay"),k.refresh(),k.othersActive())if(k.debug("Other sidebars currently visible"),l.exclusive){if("overlay"!==l.transition)return void k.hideOthers(k.show);k.hideOthers()}else l.transition="overlay";k.set.dimmerStyles(),k.pushPage(function(){e.call(v),l.onVisible.call(v)}),l.onChange.call(v)}else k.debug("Sidebar is already visible")},hide:function(e){e=q(e)?e:function(){},(k.is.visible()||k.is.animating())&&!1!==l.onHide.call(v)&&(k.debug("Hiding sidebar",e),k.refreshSidebars(),k.pullPage(function(){e.call(v),l.onHidden.call(v)}),l.onChange.call(v))},othersAnimating:function(){return 0<m.not(h).filter("."+c.animating).length},othersVisible:function(){return 0<m.not(h).filter("."+c.visible).length},othersActive:function(){return k.othersVisible()||k.othersAnimating()},hideOthers:function(e){var i=m.not(h).filter("."+c.visible),n=i.length,t=0;e=e||function(){},i.sidebar("hide",function(){++t===n&&e()})},toggle:function(){k.verbose("Determining toggled direction"),k.is.hidden()?k.show():k.hide()},pushPage:function(i){var e,n,t=k.get.transition(),o="overlay"===t||k.othersActive()?h:p;i=q(i)?i:function(){},l.returnScroll&&(s=(g?A:b).scrollTop()),"scale down"===l.transition&&k.scrollToTop(),k.bind.scrollLock(),k.set.transition(t),k.repaint(),t=function(){k.bind.clickaway(),k.add.inlineCSS(),k.set.animating(),k.set.visible()},e=function(){k.set.dimmed()},n=function(e){e.target===o[0]&&(o.off(a+r,n),k.remove.animating(),i.call(v))},o.off(a+r),o.on(a+r,n),D(t),l.dimPage&&!k.othersVisible()&&D(e)},pullPage:function(i){var e,n,t=k.get.transition(),o="overlay"===t||k.othersActive()?h:p;i=q(i)?i:function(){},k.verbose("Removing context push state",k.get.direction()),k.unbind.clickaway(),k.unbind.scrollLock(),e=function(){k.set.transition(t),k.set.animating(),l.dimPage&&!k.othersVisible()&&k.set.closing(),k.remove.visible()},n=function(e){e.target===o[0]&&(o.off(a+r,n),k.remove.animating(),k.remove.closing(),k.remove.transition(),k.remove.inlineCSS(),"scale down"!==t&&!l.returnScroll||k.scrollBack(),l.dimPage&&!k.othersVisible()&&p.removeClass(c.dimmed),i.call(v))},o.off(a+r),o.on(a+r,n),D(e)},scrollToTop:function(){k.verbose("Scrolling to top of page to avoid animation issues"),h.scrollTop(0),(g?A:b)[0].scrollTo(0,0)},scrollBack:function(){k.verbose("Scrolling back to original page position"),(g?A:b)[0].scrollTo(0,s)},clear:{cache:function(){k.verbose("Clearing cached dimensions"),k.cache={}}},set:{bodyMargin:function(){var n=k.can.leftBodyScrollbar()?"left":"right";b.css((g?"margin-":"padding-")+n,S+"px"),b.find(i.bodyFixed.replace("right",n)).each(function(){var e=z(this),i="fixed"===e.css("position")?"padding-"+n:n;e.css(i,"calc("+e.css(i)+" + "+S+"px)")})},dimmerStyles:function(){l.blurring?p.addClass(c.blurring):p.removeClass(c.blurring)},ios:function(){O.addClass(c.ios)},pushed:function(){b.addClass(c.pushed)},pushable:function(){b.addClass(c.pushable)},dimmed:function(){p.addClass(c.dimmed)},active:function(){h.addClass(c.active)},animating:function(){h.addClass(c.animating)},closing:function(){p.addClass(c.closing)},transition:function(e){e=e||k.get.transition(),h.addClass(e)},direction:function(e){e=e||k.get.direction(),h.addClass(c[e])},visible:function(){h.addClass(c.visible)},overlay:function(){h.addClass(c.overlay)}},remove:{inlineCSS:function(){k.debug("Removing inline css styles",o),o&&0<o.length&&o.remove()},ios:function(){O.removeClass(c.ios)},pushed:function(){b.removeClass(c.pushed)},pushable:function(){b.removeClass(c.pushable)},active:function(){h.removeClass(c.active)},animating:function(){h.removeClass(c.animating)},closing:function(){p.removeClass(c.closing)},transition:function(e){e=e||k.get.transition(),h.removeClass(e)},direction:function(e){e=e||k.get.direction(),h.removeClass(c[e])},visible:function(){h.removeClass(c.visible)},overlay:function(){h.removeClass(c.overlay)}},restore:{bodyMargin:function(){var n=k.can.leftBodyScrollbar()?"left":"right";b.css((g?"margin-":"padding-")+n,x),b.find(i.bodyFixed.replace("right",n)).each(function(){var e=z(this),i="fixed"===e.css("position")?"padding-"+n:n;e.css(i,"")})}},get:{direction:function(){return h.hasClass(c.top)?c.top:h.hasClass(c.right)?c.right:h.hasClass(c.bottom)?c.bottom:c.left},transition:function(){var e=k.get.direction(),e=k.is.mobile()?"auto"===l.mobileTransition?l.defaultTransition.mobile[e]:l.mobileTransition:"auto"===l.transition?l.defaultTransition.computer[e]:l.transition;return k.verbose("Determined transition",e),e},transitionEvent:function(){var e,i=V.createElement("element"),n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in n)if(i.style[e]!==W)return n[e]}},has:{scrollbar:function(){return g||"hidden"!==b.css("overflow-y")}},is:{safari:function(){return k.cache.isSafari===W&&(k.cache.isSafari=/constructor/i.test(I.HTMLElement)||!!I.ApplePaySession),k.cache.isSafari},edge:function(){return k.cache.isEdge===W&&(k.cache.isEdge=!!I.setImmediate&&!k.is.ie()),k.cache.isEdge},firefox:function(){return k.cache.isFirefox===W&&(k.cache.isFirefox=!!I.InstallTrigger),k.cache.isFirefox},iframe:function(){return!(self===top)},ie:function(){var e,i;return k.cache.isIE===W&&(e=!I.ActiveXObject&&"ActiveXObject"in I,i="ActiveXObject"in I,k.cache.isIE=e||i),k.cache.isIE},ios:function(){var e=navigator.userAgent,i=e.match(t.ios),n=e.match(t.mobileChrome);return!(!i||n)&&(k.verbose("Browser was found to be iOS",e),!0)},mobile:function(){var e=navigator.userAgent;return e.match(t.mobile)?(k.verbose("Browser was found to be mobile",e),!0):(k.verbose("Browser is not mobile, using regular transition",e),!1)},hidden:function(){return!k.is.visible()},visible:function(){return h.hasClass(c.visible)},open:function(){return k.is.visible()},closed:function(){return k.is.hidden()},vertical:function(){return h.hasClass(c.top)},animating:function(){return b.hasClass(c.animating)},rtl:function(){return k.cache.isRTL===W&&(k.cache.isRTL="rtl"===h.attr("dir")||"rtl"===h.css("direction")||"rtl"===F.attr("dir")||"rtl"===F.css("direction")||"rtl"===b.attr("dir")||"rtl"===b.css("direction")),k.cache.isRTL}},setting:function(e,i){if(k.debug("Changing setting",e,i),z.isPlainObject(e))z.extend(!0,l,e);else{if(i===W)return l[e];z.isPlainObject(l[e])?z.extend(!0,l[e],i):l[e]=i}},internal:function(e,i){if(z.isPlainObject(e))z.extend(!0,k,e);else{if(i===W)return k[e];k[e]=i}},debug:function(){!l.silent&&l.debug&&(l.performance?k.performance.log(arguments):(k.debug=Function.prototype.bind.call(console.info,console,l.name+":"),k.debug.apply(console,arguments)))},verbose:function(){!l.silent&&l.verbose&&l.debug&&(l.performance?k.performance.log(arguments):(k.verbose=Function.prototype.bind.call(console.info,console,l.name+":"),k.verbose.apply(console,arguments)))},error:function(){l.silent||(k.error=Function.prototype.bind.call(console.error,console,l.name+":"),k.error.apply(console,arguments))},performance:{log:function(e){var i,n;l.performance&&(n=(i=Date.now())-(B||i),B=i,H.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:v,"Execution Time":n})),clearTimeout(k.performance.timer),k.performance.timer=setTimeout(k.performance.display,500)},display:function(){var e=l.name+":",n=0;B=!1,clearTimeout(k.performance.timer),z.each(H,function(e,i){n+=i["Execution Time"]}),e+=" "+n+"ms",M&&(e+=" '"+M+"'"),(console.group!==W||console.table!==W)&&0<H.length&&(console.groupCollapsed(e),console.table?console.table(H):z.each(H,function(e,i){console.log(i.Name+": "+i["Execution Time"]+"ms")}),console.groupEnd()),H=[]}},invoke:function(t,e,i){var o,r,n,s=y;return e=e||j,i=i||v,"string"==typeof t&&s!==W&&(t=t.split(/[ .]/),o=t.length-1,z.each(t,function(e,i){var n=e!==o?i+t[e+1].charAt(0).toUpperCase()+t[e+1].slice(1):t;if(z.isPlainObject(s[n])&&e!==o)s=s[n];else{if(s[n]!==W)return r=s[n],!1;{if(!z.isPlainObject(s[i])||e===o)return s[i]!==W?r=s[i]:k.error(d.method,t),!1;s=s[i]}}})),q(r)?n=r.apply(i,e):r!==W&&(n=r),Array.isArray(w)?w.push(n):w!==W?w=[w,n]:n!==W&&(w=n),r}};L?(y===W&&k.initialize(),k.invoke(R)):(y!==W&&k.invoke("destroy"),k.initialize())}),w!==W?w:this},z.fn.sidebar.settings={name:"Sidebar",namespace:"sidebar",silent:!1,debug:!1,verbose:!1,performance:!0,transition:"auto",mobileTransition:"auto",defaultTransition:{computer:{left:"uncover",right:"uncover",top:"overlay",bottom:"overlay"},mobile:{left:"uncover",right:"uncover",top:"overlay",bottom:"overlay"}},context:"body",exclusive:!1,closable:!0,dimPage:!0,scrollLock:!1,returnScroll:!1,delaySetup:!1,onChange:function(){},onShow:function(){},onHide:function(){},onHidden:function(){},onVisible:function(){},className:{active:"active",animating:"animating",blurring:"blurring",closing:"closing",dimmed:"dimmed",ios:"ios",locked:"locked",pushable:"pushable",pushed:"pushed",right:"right",top:"top",left:"left",bottom:"bottom",visible:"visible"},selector:{bodyFixed:"> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.fixed.nag, > .ui.fixed.nag > .close",fixed:".fixed",omitted:"script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed",pusher:".pusher",sidebar:".ui.sidebar"},regExp:{ios:/(iPad|iPhone|iPod)/g,mobileChrome:/(CriOS)/g,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",movedSidebar:"Had to move sidebar. For optimal performance make sure sidebar and pusher are direct children of your body tag",overlay:"The overlay setting is no longer supported, use animation: overlay",notFound:"There were no elements that matched the specified selector"}}}(jQuery,window,document);
|
package/dist/components/site.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.9.1-beta.
|
2
|
+
* # Fomantic-UI 2.9.1-beta.26+1084e98 - Site
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
@font-face {
|
17
17
|
font-family: 'Lato';
|
18
|
-
src: url(
|
18
|
+
src: url('./../themes/default/assets/fonts/LatoLatin-Regular.woff2') format('woff2') , url('./../themes/default/assets/fonts/LatoLatin-Regular.woff') format('woff');
|
19
19
|
font-style: normal;
|
20
20
|
font-weight: normal;
|
21
21
|
font-display: swap;
|
@@ -24,7 +24,7 @@
|
|
24
24
|
}
|
25
25
|
@font-face {
|
26
26
|
font-family: 'Lato';
|
27
|
-
src: url(
|
27
|
+
src: url('./../themes/default/assets/fonts/LatoLatin-Bold.woff2') format('woff2') , url('./../themes/default/assets/fonts/LatoLatin-Bold.woff') format('woff');
|
28
28
|
font-style: normal;
|
29
29
|
font-weight: bold;
|
30
30
|
font-display: swap;
|
@@ -33,7 +33,7 @@
|
|
33
33
|
}
|
34
34
|
@font-face {
|
35
35
|
font-family: 'Lato';
|
36
|
-
src: url(
|
36
|
+
src: url('./../themes/default/assets/fonts/LatoLatin-Italic.woff2') format('woff2') , url('./../themes/default/assets/fonts/LatoLatin-Italic.woff') format('woff');
|
37
37
|
font-style: italic;
|
38
38
|
font-weight: normal;
|
39
39
|
font-display: swap;
|
@@ -42,7 +42,7 @@
|
|
42
42
|
}
|
43
43
|
@font-face {
|
44
44
|
font-family: 'Lato';
|
45
|
-
src: url(
|
45
|
+
src: url('./../themes/default/assets/fonts/LatoLatin-BoldItalic.woff2') format('woff2') , url('./../themes/default/assets/fonts/LatoLatin-BoldItalic.woff') format('woff');
|
46
46
|
font-style: italic;
|
47
47
|
font-weight: bold;
|
48
48
|
font-display: swap;
|
@@ -51,7 +51,7 @@
|
|
51
51
|
}
|
52
52
|
@font-face {
|
53
53
|
font-family: 'Lato';
|
54
|
-
src: url(
|
54
|
+
src: url('./../themes/default/assets/fonts/Lato-Regular.woff2') format('woff2') , url('./../themes/default/assets/fonts/Lato-Regular.woff') format('woff');
|
55
55
|
font-style: normal;
|
56
56
|
font-weight: normal;
|
57
57
|
font-display: swap;
|
@@ -60,7 +60,7 @@
|
|
60
60
|
}
|
61
61
|
@font-face {
|
62
62
|
font-family: 'Lato';
|
63
|
-
src: url(
|
63
|
+
src: url('./../themes/default/assets/fonts/Lato-Bold.woff2') format('woff2') , url('./../themes/default/assets/fonts/Lato-Bold.woff') format('woff');
|
64
64
|
font-style: normal;
|
65
65
|
font-weight: bold;
|
66
66
|
font-display: swap;
|
@@ -69,7 +69,7 @@
|
|
69
69
|
}
|
70
70
|
@font-face {
|
71
71
|
font-family: 'Lato';
|
72
|
-
src: url(
|
72
|
+
src: url('./../themes/default/assets/fonts/Lato-Italic.woff2') format('woff2') , url('./../themes/default/assets/fonts/Lato-Italic.woff') format('woff');
|
73
73
|
font-style: italic;
|
74
74
|
font-weight: normal;
|
75
75
|
font-display: swap;
|
@@ -78,7 +78,7 @@
|
|
78
78
|
}
|
79
79
|
@font-face {
|
80
80
|
font-family: 'Lato';
|
81
|
-
src: url(
|
81
|
+
src: url('./../themes/default/assets/fonts/Lato-BoldItalic.woff2') format('woff2') , url('./../themes/default/assets/fonts/Lato-BoldItalic.woff') format('woff');
|
82
82
|
font-style: italic;
|
83
83
|
font-weight: bold;
|
84
84
|
font-display: swap;
|
@@ -98,7 +98,7 @@ body {
|
|
98
98
|
overflow-x: hidden;
|
99
99
|
min-width: 320px;
|
100
100
|
background: #FFFFFF;
|
101
|
-
font-family: 'Lato', system-ui, -apple-system,
|
101
|
+
font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
102
102
|
font-size: 14px;
|
103
103
|
line-height: 1.4285em;
|
104
104
|
color: rgba(0, 0, 0, 0.87);
|
@@ -114,7 +114,7 @@ h2,
|
|
114
114
|
h3,
|
115
115
|
h4,
|
116
116
|
h5 {
|
117
|
-
font-family: 'Lato', system-ui, -apple-system,
|
117
|
+
font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
118
118
|
line-height: 1.28571429em;
|
119
119
|
margin: calc(2rem - 0.1428571428571429em) 0 1rem;
|
120
120
|
font-weight: bold;
|
@@ -186,26 +186,26 @@ a:hover {
|
|
186
186
|
|
187
187
|
|
188
188
|
/* Force Simple Scrollbars */
|
189
|
-
body
|
189
|
+
body::-webkit-scrollbar {
|
190
190
|
-webkit-appearance: none;
|
191
191
|
width: 10px;
|
192
192
|
height: 10px;
|
193
193
|
}
|
194
|
-
body
|
194
|
+
body::-webkit-scrollbar-track {
|
195
195
|
background: rgba(0, 0, 0, 0.1);
|
196
196
|
border-radius: 0;
|
197
197
|
}
|
198
|
-
body
|
198
|
+
body::-webkit-scrollbar-thumb {
|
199
199
|
cursor: pointer;
|
200
200
|
border-radius: 5px;
|
201
201
|
background: rgba(0, 0, 0, 0.25);
|
202
202
|
-webkit-transition: color 0.2s ease;
|
203
203
|
transition: color 0.2s ease;
|
204
204
|
}
|
205
|
-
body
|
205
|
+
body::-webkit-scrollbar-thumb:window-inactive {
|
206
206
|
background: rgba(0, 0, 0, 0.15);
|
207
207
|
}
|
208
|
-
body
|
208
|
+
body::-webkit-scrollbar-thumb:hover {
|
209
209
|
background: rgba(128, 135, 139, 0.8);
|
210
210
|
}
|
211
211
|
body .ui {
|
@@ -216,7 +216,7 @@ body .ui {
|
|
216
216
|
scrollbar-track-color: #e6e6e6;
|
217
217
|
scrollbar-arrow-color: #e6e6e6;
|
218
218
|
|
219
|
-
/* firefox
|
219
|
+
/* firefox: first color thumb, second track */
|
220
220
|
scrollbar-color: rgba(0, 0, 0, 0.25) rgba(0, 0, 0, 0.1);
|
221
221
|
scrollbar-width: thin;
|
222
222
|
}
|
@@ -242,7 +242,7 @@ body .ui.inverted:not(.dimmer) {
|
|
242
242
|
scrollbar-track-color: #323232;
|
243
243
|
scrollbar-arrow-color: #323232;
|
244
244
|
|
245
|
-
/* firefox
|
245
|
+
/* firefox: first color thumb, second track */
|
246
246
|
scrollbar-color: rgba(255, 255, 255, 0.25) rgba(255, 255, 255, 0.1);
|
247
247
|
}
|
248
248
|
|
package/dist/components/site.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.9.1-beta.
|
2
|
+
* # Fomantic-UI 2.9.1-beta.26+1084e98 - Site
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -361,17 +361,17 @@
|
|
361
361
|
query = query.split(/[ .]/);
|
362
362
|
maxDepth = query.length - 1;
|
363
363
|
$.each(query, function (depth, value) {
|
364
|
-
var camelCaseValue = depth
|
364
|
+
var camelCaseValue = depth !== maxDepth
|
365
365
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
366
366
|
: query
|
367
367
|
;
|
368
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
368
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
369
369
|
object = object[camelCaseValue];
|
370
370
|
} else if (object[camelCaseValue] !== undefined) {
|
371
371
|
found = object[camelCaseValue];
|
372
372
|
|
373
373
|
return false;
|
374
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
374
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
375
375
|
object = object[value];
|
376
376
|
} else if (object[value] !== undefined) {
|
377
377
|
found = object[value];
|