fomantic-ui 2.9.1-beta.21 → 2.9.1-beta.23
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/.eslintrc.js +95 -75
- package/.github/workflows/ci.yml +2 -2
- package/.github/workflows/nightly.yml +1 -1
- package/.github/workflows/release.yml +1 -1
- package/.stylelintrc.js +6 -7
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +7 -7
- package/dist/components/accordion.min.css +1 -1
- 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 +54 -53
- 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 +1 -1
- package/dist/components/button.min.css +1 -1
- package/dist/components/calendar.css +3 -3
- package/dist/components/calendar.js +119 -99
- package/dist/components/calendar.min.css +2 -2
- package/dist/components/calendar.min.js +2 -2
- package/dist/components/card.css +1 -1
- package/dist/components/card.min.css +1 -1
- package/dist/components/checkbox.css +1 -1
- package/dist/components/checkbox.js +8 -8
- 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 +1 -1
- package/dist/components/container.min.css +1 -1
- package/dist/components/dimmer.css +1 -1
- package/dist/components/dimmer.js +16 -18
- 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 +1 -1
- package/dist/components/dropdown.js +87 -87
- package/dist/components/dropdown.min.css +1 -1
- package/dist/components/dropdown.min.js +2 -2
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +17 -23
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +2 -2
- package/dist/components/feed.css +1 -1
- package/dist/components/feed.min.css +1 -1
- package/dist/components/flag.css +1 -1
- package/dist/components/flag.min.css +1 -1
- package/dist/components/flyout.css +2 -2
- package/dist/components/flyout.js +32 -30
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +2 -2
- package/dist/components/form.css +2 -2
- package/dist/components/form.js +113 -89
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +2 -2
- package/dist/components/grid.css +1 -1
- package/dist/components/grid.min.css +1 -1
- package/dist/components/header.css +1 -1
- package/dist/components/header.min.css +1 -1
- package/dist/components/icon.css +1 -1
- package/dist/components/icon.min.css +1 -1
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +1 -1
- package/dist/components/input.min.css +1 -1
- package/dist/components/item.css +1 -1
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +1 -1
- package/dist/components/label.min.css +1 -1
- package/dist/components/list.css +1 -1
- package/dist/components/list.min.css +1 -1
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/message.css +1 -1
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +1 -1
- package/dist/components/modal.js +22 -22
- package/dist/components/modal.min.css +1 -1
- package/dist/components/modal.min.js +2 -2
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +18 -16
- 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 +1 -1
- package/dist/components/popup.js +30 -30
- package/dist/components/popup.min.css +1 -1
- package/dist/components/popup.min.js +2 -2
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +23 -21
- 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 +1 -1
- package/dist/components/rating.js +8 -8
- 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 +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +1 -1
- package/dist/components/search.js +41 -46
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +2 -2
- package/dist/components/segment.css +1 -1
- package/dist/components/segment.min.css +1 -1
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +9 -9
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +2 -2
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +21 -19
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +2 -2
- package/dist/components/site.css +1 -1
- package/dist/components/site.js +11 -10
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +2 -2
- package/dist/components/slider.js +39 -42
- package/dist/components/slider.min.js +2 -2
- package/dist/components/state.js +7 -7
- package/dist/components/state.min.js +2 -2
- package/dist/components/statistic.css +1 -1
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +1 -1
- package/dist/components/step.min.css +1 -1
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +7 -7
- 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 +36 -38
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +2 -2
- package/dist/components/table.css +1 -1
- 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 +20 -17
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +2 -2
- package/dist/components/transition.css +7 -7
- package/dist/components/transition.js +27 -21
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +2 -2
- package/dist/components/visibility.js +8 -8
- package/dist/components/visibility.min.js +2 -2
- package/dist/semantic.css +60 -60
- package/dist/semantic.js +780 -735
- package/dist/semantic.min.css +2 -2
- package/dist/semantic.min.js +2 -2
- package/examples/.eslintrc.js +6 -0
- package/examples/responsive.html +1 -1
- package/gulpfile.js +1 -1
- package/package.json +5 -4
- package/scripts/nightly-version.js +3 -3
- package/src/definitions/behaviors/api.js +53 -52
- package/src/definitions/behaviors/form.js +112 -88
- package/src/definitions/behaviors/state.js +6 -6
- package/src/definitions/behaviors/visibility.js +7 -7
- package/src/definitions/collections/menu.less +2 -2
- package/src/definitions/elements/button.less +2 -2
- package/src/definitions/elements/loader.less +4 -4
- package/src/definitions/elements/step.less +1 -1
- package/src/definitions/globals/site.js +10 -9
- package/src/definitions/modules/accordion.js +6 -6
- package/src/definitions/modules/calendar.js +118 -98
- package/src/definitions/modules/calendar.less +2 -2
- package/src/definitions/modules/checkbox.js +7 -7
- package/src/definitions/modules/dimmer.js +15 -17
- package/src/definitions/modules/dimmer.less +10 -10
- package/src/definitions/modules/dropdown.js +86 -86
- package/src/definitions/modules/embed.js +16 -22
- package/src/definitions/modules/flyout.js +31 -29
- package/src/definitions/modules/flyout.less +1 -1
- package/src/definitions/modules/modal.js +21 -21
- package/src/definitions/modules/nag.js +17 -15
- package/src/definitions/modules/popup.js +29 -29
- package/src/definitions/modules/progress.js +22 -20
- package/src/definitions/modules/rating.js +7 -7
- package/src/definitions/modules/search.js +40 -45
- package/src/definitions/modules/shape.js +8 -8
- package/src/definitions/modules/sidebar.js +20 -18
- package/src/definitions/modules/slider.js +38 -41
- package/src/definitions/modules/sticky.js +6 -6
- package/src/definitions/modules/tab.js +35 -37
- package/src/definitions/modules/toast.js +19 -16
- package/src/definitions/modules/transition.js +26 -20
- package/src/themes/amazon/elements/button.overrides +7 -7
- package/src/themes/default/collections/form.variables +1 -1
- package/src/themes/default/elements/reveal.variables +1 -1
- package/src/themes/default/globals/site.variables +1 -1
- package/src/themes/default/modules/dimmer.variables +6 -6
- package/src/themes/default/modules/modal.variables +1 -1
- package/src/themes/default/modules/slider.variables +4 -4
- package/src/themes/default/modules/toast.variables +2 -2
- package/src/themes/default/modules/transition.overrides +12 -12
- package/src/themes/flat/collections/form.overrides +2 -2
- package/src/themes/flat/globals/site.variables +1 -1
- package/src/themes/github/collections/form.overrides +2 -2
- package/src/themes/github/collections/menu.variables +1 -1
- package/src/themes/github/collections/message.overrides +3 -3
- package/src/themes/github/elements/input.overrides +2 -2
- package/src/themes/timeline/views/feed.overrides +3 -3
- package/src/themes/twitter/elements/button.overrides +2 -2
- package/tasks/.eslintrc.js +9 -0
- package/tasks/README.md +1 -3
- package/tasks/admin/components/create.js +9 -16
- package/tasks/admin/components/init.js +7 -7
- package/tasks/admin/components/update.js +7 -7
- package/tasks/admin/distributions/create.js +15 -17
- package/tasks/admin/distributions/init.js +7 -7
- package/tasks/admin/distributions/update.js +7 -7
- package/tasks/admin/publish.js +1 -1
- package/tasks/admin/register.js +2 -2
- package/tasks/admin/release.js +1 -1
- package/tasks/build/assets.js +2 -2
- package/tasks/build/css.js +8 -3
- package/tasks/build/javascript.js +3 -1
- package/tasks/build.js +1 -1
- package/tasks/check-install.js +1 -1
- package/tasks/clean.js +1 -1
- package/tasks/collections/README.md +3 -5
- package/tasks/collections/admin.js +1 -1
- package/tasks/collections/docs.js +1 -1
- package/tasks/collections/install.js +1 -1
- package/tasks/collections/rtl.js +1 -1
- package/tasks/collections/various.js +1 -1
- package/tasks/config/admin/github.js +5 -6
- package/tasks/config/admin/templates/css-package.js +1 -1
- package/tasks/config/admin/templates/less-package.js +1 -1
- package/tasks/config/npm/gulpfile.js +7 -7
- package/tasks/config/project/config.js +9 -16
- package/tasks/config/project/install.js +26 -25
- package/tasks/config/project/release.js +12 -14
- package/tasks/config/tasks.js +17 -19
- package/tasks/config/user.js +1 -1
- package/tasks/docs/build.js +5 -3
- package/tasks/docs/metadata.js +7 -8
- package/tasks/docs/serve.js +5 -3
- package/tasks/install.js +38 -38
- package/tasks/rtl/build.js +1 -1
- package/tasks/rtl/watch.js +1 -1
- package/tasks/version.js +1 -1
- package/tasks/watch.js +1 -1
- package/test/.eslintrc.js +23 -0
- package/test/meteor/assets.js +1 -1
- package/test/modules/module.spec.js +15 -15
- package/test/modules/popup.spec.js +1 -1
- package/test/modules/search.spec.js +1 -1
- package/test/modules/tab.spec.js +1 -1
- package/test/modules/transition.spec.js +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.9.1-beta.
|
2
|
+
* # Fomantic-UI 2.9.1-beta.23+27384cb - Sidebar
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -15,7 +15,7 @@
|
|
15
15
|
return typeof obj === 'function' && typeof obj.nodeType !== 'number';
|
16
16
|
}
|
17
17
|
|
18
|
-
window = (
|
18
|
+
window = (window !== undefined && window.Math === Math)
|
19
19
|
? window
|
20
20
|
: globalThis;
|
21
21
|
|
@@ -30,11 +30,11 @@
|
|
30
30
|
|
31
31
|
moduleSelector = $allModules.selector || '',
|
32
32
|
|
33
|
-
time =
|
33
|
+
time = Date.now(),
|
34
34
|
performance = [],
|
35
35
|
|
36
36
|
query = arguments[0],
|
37
|
-
methodInvoked = (typeof query
|
37
|
+
methodInvoked = (typeof query === 'string'),
|
38
38
|
queryArguments = [].slice.call(arguments, 1),
|
39
39
|
|
40
40
|
requestAnimationFrame = window.requestAnimationFrame
|
@@ -309,7 +309,7 @@
|
|
309
309
|
module.verbose('Forcing repaint event');
|
310
310
|
element.style.display = 'none';
|
311
311
|
var ignored = element.offsetHeight;
|
312
|
-
element.scrollTop = element.scrollTop;
|
312
|
+
element.scrollTop = element.scrollTop; // eslint-disable-line no-self-assign
|
313
313
|
element.style.display = '';
|
314
314
|
},
|
315
315
|
|
@@ -374,7 +374,7 @@
|
|
374
374
|
bodyMargin: function () {
|
375
375
|
initialBodyMargin = $context.css((isBody ? 'margin-' : 'padding-') + (module.can.leftBodyScrollbar() ? 'left' : 'right'));
|
376
376
|
var
|
377
|
-
bodyMarginRightPixel = parseInt(initialBodyMargin.replace(/[^\d.]/g, '')),
|
377
|
+
bodyMarginRightPixel = parseInt(initialBodyMargin.replace(/[^\d.]/g, ''), 10),
|
378
378
|
bodyScrollbarWidth = isBody ? window.innerWidth - document.documentElement.clientWidth : $context[0].offsetWidth - $context[0].clientWidth
|
379
379
|
;
|
380
380
|
tempBodyMargin = bodyMarginRightPixel + bodyScrollbarWidth;
|
@@ -403,9 +403,9 @@
|
|
403
403
|
module.hideOthers(module.show);
|
404
404
|
|
405
405
|
return;
|
406
|
-
} else {
|
407
|
-
module.hideOthers();
|
408
406
|
}
|
407
|
+
|
408
|
+
module.hideOthers();
|
409
409
|
} else {
|
410
410
|
settings.transition = 'overlay';
|
411
411
|
}
|
@@ -709,9 +709,11 @@
|
|
709
709
|
direction: function () {
|
710
710
|
if ($module.hasClass(className.top)) {
|
711
711
|
return className.top;
|
712
|
-
}
|
712
|
+
}
|
713
|
+
if ($module.hasClass(className.right)) {
|
713
714
|
return className.right;
|
714
|
-
}
|
715
|
+
}
|
716
|
+
if ($module.hasClass(className.bottom)) {
|
715
717
|
return className.bottom;
|
716
718
|
}
|
717
719
|
|
@@ -803,9 +805,9 @@
|
|
803
805
|
module.verbose('Browser was found to be iOS', userAgent);
|
804
806
|
|
805
807
|
return true;
|
806
|
-
} else {
|
807
|
-
return false;
|
808
808
|
}
|
809
|
+
|
810
|
+
return false;
|
809
811
|
},
|
810
812
|
mobile: function () {
|
811
813
|
var
|
@@ -816,11 +818,11 @@
|
|
816
818
|
module.verbose('Browser was found to be mobile', userAgent);
|
817
819
|
|
818
820
|
return true;
|
819
|
-
} else {
|
820
|
-
module.verbose('Browser is not mobile, using regular transition', userAgent);
|
821
|
-
|
822
|
-
return false;
|
823
821
|
}
|
822
|
+
|
823
|
+
module.verbose('Browser is not mobile, using regular transition', userAgent);
|
824
|
+
|
825
|
+
return false;
|
824
826
|
},
|
825
827
|
hidden: function () {
|
826
828
|
return !module.is.visible();
|
@@ -907,7 +909,7 @@
|
|
907
909
|
previousTime
|
908
910
|
;
|
909
911
|
if (settings.performance) {
|
910
|
-
currentTime =
|
912
|
+
currentTime = Date.now();
|
911
913
|
previousTime = time || currentTime;
|
912
914
|
executionTime = currentTime - previousTime;
|
913
915
|
time = currentTime;
|
@@ -958,8 +960,8 @@
|
|
958
960
|
;
|
959
961
|
passedArguments = passedArguments || queryArguments;
|
960
962
|
context = context || element;
|
961
|
-
if (typeof query
|
962
|
-
query = query.split(/[
|
963
|
+
if (typeof query === 'string' && object !== undefined) {
|
964
|
+
query = query.split(/[ .]/);
|
963
965
|
maxDepth = query.length - 1;
|
964
966
|
$.each(query, function (depth, value) {
|
965
967
|
var camelCaseValue = (depth != maxDepth)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* # Fomantic UI - 2.9.1-beta.
|
2
|
+
* # Fomantic UI - 2.9.1-beta.23+27384cb
|
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=void 0!==I&&I.Math==Math?I:globalThis,z.fn.sidebar=function(k){var w,e=z(this),A=z(I),E=z(V),F=z("body"),O=z("html"),P=z("head"),M=e.selector||"",B=(new Date).getTime(),H=[],R=k,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(k)?z.extend(!0,{},z.fn.sidebar.settings,k):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,T={initialize:function(){T.debug("Initializing sidebar",k),T.create.id(),a=T.get.transitionEvent(),l.delaySetup?D(T.setup.layout):T.setup.layout(),D(function(){T.setup.cache()}),T.instantiate()},instantiate:function(){T.verbose("Storing instance of module",T),y=T,h.data(f,T)},create:{id:function(){e=(Math.random().toString(16)+"000000000").slice(2,10),r="."+e,T.verbose("Creating unique id for element",e)}},destroy:function(){T.verbose("Destroying previous module for",h),h.off(u).removeData(f),T.is.ios()&&T.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&&(T.verbose("User clicked on dimmed page"),T.hide()),e&&(T.verbose("User clicked on dimmable context (scaled out page)"),T.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(){T.verbose("Adding clickaway events to context",b),b.on("click"+r,T.event.clickaway).on("touchend"+r,T.event.clickaway)},scrollLock:function(){l.scrollLock&&(T.debug("Disabling page scroll"),(C=T.has.scrollbar())&&(T.save.bodyMargin(),T.set.bodyMargin()),b.addClass(c.locked)),T.verbose("Adding events to contain sidebar scroll"),E.on("touchmove"+r,T.event.touch),h.on("scroll"+u,T.event.containScroll)}},unbind:{clickaway:function(){T.verbose("Removing clickaway events from context",b),b.off(r)},scrollLock:function(){T.verbose("Removing scroll lock from page"),C&&T.restore.bodyMargin(),b.removeClass(c.locked),E.off(r),h.off("scroll"+u)}},add:{inlineCSS:function(){var e=T.cache.width||h.outerWidth(),i=T.cache.height||h.outerHeight(),n=T.is.rtl(),t=T.get.direction(),i={left:e,right:-e,top:i,bottom:-i};n&&(T.verbose("RTL detected, flipping widths"),i.left=-e,i.right=e),n="<style>","left"===t||"right"===t?(T.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); }"),T.is.ie()&&("left"===t||"right"===t?(T.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),T.debug("Adding sizing css to head",o)}},refresh:function(){T.verbose("Refreshing selector cache"),b=[I,V].indexOf(l.context)<0?E.find(l.context):F,T.refreshSidebars(),p=b.children(i.pusher),b.children(i.fixed),T.clear.cache()},refreshSidebars:function(){T.verbose("Refreshing other sidebars"),m=b.children(i.sidebar)},repaint:function(){T.verbose("Forcing repaint event"),v.style.display="none";v.offsetHeight;v.scrollTop=v.scrollTop,v.style.display=""},setup:{cache:function(){T.cache={width:h.outerWidth(),height:h.outerHeight()}},layout:function(){0===b.children(i.pusher).length&&(T.debug("Adding wrapper element for sidebar"),T.error(d.pusher),p=z('<div class="pusher" />'),b.children().not(i.omitted).not(m).wrapAll(p),T.refresh()),0!==h.nextAll(i.pusher).length&&h.nextAll(i.pusher)[0]===p[0]||(T.debug("Moved sidebar to correct parent element"),T.error(d.movedSidebar,v),h.detach().prependTo(b),T.refresh()),T.clear.cache(),T.set.pushable(),T.set.direction()}},attachEvents:function(e,i){var n=z(e);i=q(T[i])?T[i]:T.toggle,0<n.length?(T.debug("Attaching sidebar events to element",e,i),n.on("click"+u,i)):T.error(d.notFound,e)},can:{leftBodyScrollbar:function(){return T.cache.leftBodyScrollbar===W&&(T.cache.leftBodyScrollbar=T.is.rtl()&&(T.is.iframe&&!T.is.firefox()||T.is.safari()||T.is.edge()||T.is.ie())),T.cache.leftBodyScrollbar}},save:{bodyMargin:function(){x=b.css((g?"margin-":"padding-")+(T.can.leftBodyScrollbar()?"left":"right"));var e=parseInt(x.replace(/[^\d.]/g,"")),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(){},T.is.hidden())if(!1===l.onShow.call(v))T.verbose("Show callback returned false cancelling show");else{if(l.overlay&&(T.error(d.overlay),l.transition="overlay"),T.refresh(),T.othersActive())if(T.debug("Other sidebars currently visible"),l.exclusive){if("overlay"!=l.transition)return void T.hideOthers(T.show);T.hideOthers()}else l.transition="overlay";T.set.dimmerStyles(),T.pushPage(function(){e.call(v),l.onVisible.call(v)}),l.onChange.call(v)}else T.debug("Sidebar is already visible")},hide:function(e){e=q(e)?e:function(){},(T.is.visible()||T.is.animating())&&!1!==l.onHide.call(v)&&(T.debug("Hiding sidebar",e),T.refreshSidebars(),T.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 T.othersVisible()||T.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(){T.verbose("Determining toggled direction"),T.is.hidden()?T.show():T.hide()},pushPage:function(i){var e,n,t=T.get.transition(),o="overlay"===t||T.othersActive()?h:p;i=q(i)?i:function(){},l.returnScroll&&(s=(g?A:b).scrollTop()),"scale down"===l.transition&&T.scrollToTop(),T.bind.scrollLock(),T.set.transition(t),T.repaint(),t=function(){T.bind.clickaway(),T.add.inlineCSS(),T.set.animating(),T.set.visible()},e=function(){T.set.dimmed()},n=function(e){e.target==o[0]&&(o.off(a+r,n),T.remove.animating(),i.call(v))},o.off(a+r),o.on(a+r,n),D(t),l.dimPage&&!T.othersVisible()&&D(e)},pullPage:function(i){var e,n,t=T.get.transition(),o="overlay"==t||T.othersActive()?h:p;i=q(i)?i:function(){},T.verbose("Removing context push state",T.get.direction()),T.unbind.clickaway(),T.unbind.scrollLock(),e=function(){T.set.transition(t),T.set.animating(),l.dimPage&&!T.othersVisible()&&T.set.closing(),T.remove.visible()},n=function(e){e.target==o[0]&&(o.off(a+r,n),T.remove.animating(),T.remove.closing(),T.remove.transition(),T.remove.inlineCSS(),"scale down"!==t&&!l.returnScroll||T.scrollBack(),l.dimPage&&!T.othersVisible()&&p.removeClass(c.dimmed),i.call(v))},o.off(a+r),o.on(a+r,n),D(e)},scrollToTop:function(){T.verbose("Scrolling to top of page to avoid animation issues"),h.scrollTop(0),(g?A:b)[0].scrollTo(0,0)},scrollBack:function(){T.verbose("Scrolling back to original page position"),(g?A:b)[0].scrollTo(0,s)},clear:{cache:function(){T.verbose("Clearing cached dimensions"),T.cache={}}},set:{bodyMargin:function(){var n=T.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||T.get.transition(),h.addClass(e)},direction:function(e){e=e||T.get.direction(),h.addClass(c[e])},visible:function(){h.addClass(c.visible)},overlay:function(){h.addClass(c.overlay)}},remove:{inlineCSS:function(){T.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||T.get.transition(),h.removeClass(e)},direction:function(e){e=e||T.get.direction(),h.removeClass(c[e])},visible:function(){h.removeClass(c.visible)},overlay:function(){h.removeClass(c.overlay)}},restore:{bodyMargin:function(){var n=T.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=T.get.direction(),e=T.is.mobile()?"auto"==l.mobileTransition?l.defaultTransition.mobile[e]:l.mobileTransition:"auto"==l.transition?l.defaultTransition.computer[e]:l.transition;return T.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 T.cache.isSafari===W&&(T.cache.isSafari=/constructor/i.test(I.HTMLElement)||!!I.ApplePaySession),T.cache.isSafari},edge:function(){return T.cache.isEdge===W&&(T.cache.isEdge=!!I.setImmediate&&!T.is.ie()),T.cache.isEdge},firefox:function(){return T.cache.isFirefox===W&&(T.cache.isFirefox=!!I.InstallTrigger),T.cache.isFirefox},iframe:function(){return!(self===top)},ie:function(){var e,i;return T.cache.isIE===W&&(e=!I.ActiveXObject&&"ActiveXObject"in I,i="ActiveXObject"in I,T.cache.isIE=e||i),T.cache.isIE},ios:function(){var e=navigator.userAgent,i=e.match(t.ios),n=e.match(t.mobileChrome);return!(!i||n)&&(T.verbose("Browser was found to be iOS",e),!0)},mobile:function(){var e=navigator.userAgent;return e.match(t.mobile)?(T.verbose("Browser was found to be mobile",e),!0):(T.verbose("Browser is not mobile, using regular transition",e),!1)},hidden:function(){return!T.is.visible()},visible:function(){return h.hasClass(c.visible)},open:function(){return T.is.visible()},closed:function(){return T.is.hidden()},vertical:function(){return h.hasClass(c.top)},animating:function(){return b.hasClass(c.animating)},rtl:function(){return T.cache.isRTL===W&&(T.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")),T.cache.isRTL}},setting:function(e,i){if(T.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,T,e);else{if(i===W)return T[e];T[e]=i}},debug:function(){!l.silent&&l.debug&&(l.performance?T.performance.log(arguments):(T.debug=Function.prototype.bind.call(console.info,console,l.name+":"),T.debug.apply(console,arguments)))},verbose:function(){!l.silent&&l.verbose&&l.debug&&(l.performance?T.performance.log(arguments):(T.verbose=Function.prototype.bind.call(console.info,console,l.name+":"),T.verbose.apply(console,arguments)))},error:function(){l.silent||(T.error=Function.prototype.bind.call(console.error,console,l.name+":"),T.error.apply(console,arguments))},performance:{log:function(e){var i,n;l.performance&&(n=(i=(new Date).getTime())-(B||i),B=i,H.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:v,"Execution Time":n})),clearTimeout(T.performance.timer),T.performance.timer=setTimeout(T.performance.display,500)},display:function(){var e=l.name+":",n=0;B=!1,clearTimeout(T.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]:T.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&&T.initialize(),T.invoke(R)):(y!==W&&T.invoke("destroy"),T.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
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.23+27384cb - Site
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -15,17 +15,17 @@
|
|
15
15
|
return typeof obj === 'function' && typeof obj.nodeType !== 'number';
|
16
16
|
}
|
17
17
|
|
18
|
-
window = (window !== undefined && window.Math
|
18
|
+
window = (window !== undefined && window.Math === Math)
|
19
19
|
? window
|
20
20
|
: globalThis;
|
21
21
|
|
22
|
-
$.
|
22
|
+
$.fn.site = function (parameters) {
|
23
23
|
var
|
24
|
-
time =
|
24
|
+
time = Date.now(),
|
25
25
|
performance = [],
|
26
26
|
|
27
27
|
query = arguments[0],
|
28
|
-
methodInvoked = (typeof query
|
28
|
+
methodInvoked = (typeof query === 'string'),
|
29
29
|
queryArguments = [].slice.call(arguments, 1),
|
30
30
|
|
31
31
|
settings = ($.isPlainObject(parameters))
|
@@ -71,13 +71,13 @@
|
|
71
71
|
module.verbose('Console not available, normalizing events');
|
72
72
|
module.disable.console();
|
73
73
|
}
|
74
|
-
if (
|
74
|
+
if (console.group === undefined || console.groupEnd === undefined || console.groupCollapsed === undefined) {
|
75
75
|
module.verbose('Console group not available, normalizing events');
|
76
76
|
window.console.group = function () {};
|
77
77
|
window.console.groupEnd = function () {};
|
78
78
|
window.console.groupCollapsed = function () {};
|
79
79
|
}
|
80
|
-
if (
|
80
|
+
if (console.markTimeline === undefined) {
|
81
81
|
module.verbose('Mark timeline not available, normalizing events');
|
82
82
|
window.console.markTimeline = function () {};
|
83
83
|
}
|
@@ -309,7 +309,7 @@
|
|
309
309
|
previousTime
|
310
310
|
;
|
311
311
|
if (settings.performance) {
|
312
|
-
currentTime =
|
312
|
+
currentTime = Date.now();
|
313
313
|
previousTime = time || currentTime;
|
314
314
|
executionTime = currentTime - previousTime;
|
315
315
|
time = currentTime;
|
@@ -357,8 +357,8 @@
|
|
357
357
|
;
|
358
358
|
passedArguments = passedArguments || queryArguments;
|
359
359
|
context = context || element;
|
360
|
-
if (typeof query
|
361
|
-
query = query.split(/[
|
360
|
+
if (typeof query === 'string' && object !== undefined) {
|
361
|
+
query = query.split(/[ .]/);
|
362
362
|
maxDepth = query.length - 1;
|
363
363
|
$.each(query, function (depth, value) {
|
364
364
|
var camelCaseValue = (depth != maxDepth)
|
@@ -417,6 +417,7 @@
|
|
417
417
|
? returnedValue
|
418
418
|
: this;
|
419
419
|
};
|
420
|
+
$.site = $.fn.site;
|
420
421
|
|
421
422
|
$.site.settings = {
|
422
423
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* # Fomantic UI - 2.9.1-beta.
|
2
|
+
* # Fomantic UI - 2.9.1-beta.23+27384cb
|
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(b,p,v,h){"use strict";p=p!==h&&p.Math
|
11
|
+
!function(b,p,v,h){"use strict";p=p!==h&&p.Math===Math?p:globalThis,b.fn.site=function(e){var c,i=Date.now(),t=[],n=e,o="string"==typeof n,l=[].slice.call(arguments,1),r=b.isPlainObject(e)?b.extend(!0,{},b.site.settings,e):b.extend({},b.site.settings),s=r.namespace,u=r.error,a="module-"+s,m=b(v),d=this,f=m.data(a),g={initialize:function(){g.instantiate()},instantiate:function(){g.verbose("Storing instance of site",g),f=g,m.data(a,g)},normalize:function(){g.fix.console(),g.fix.requestAnimationFrame()},fix:{console:function(){g.debug("Normalizing window.console"),console!==h&&console.log!==h||(g.verbose("Console not available, normalizing events"),g.disable.console()),console.group!==h&&console.groupEnd!==h&&console.groupCollapsed!==h||(g.verbose("Console group not available, normalizing events"),p.console.group=function(){},p.console.groupEnd=function(){},p.console.groupCollapsed=function(){}),console.markTimeline===h&&(g.verbose("Mark timeline not available, normalizing events"),p.console.markTimeline=function(){})},consoleClear:function(){g.debug("Disabling programmatic console clearing"),p.console.clear=function(){}},requestAnimationFrame:function(){g.debug("Normalizing requestAnimationFrame"),p.requestAnimationFrame===h&&(g.debug("RequestAnimationFrame not available, normalizing event"),p.requestAnimationFrame=p.requestAnimationFrame||p.mozRequestAnimationFrame||p.webkitRequestAnimationFrame||p.msRequestAnimationFrame||function(e){setTimeout(e,0)})}},moduleExists:function(e){return b.fn[e]!==h&&b.fn[e].settings!==h},enabled:{modules:function(e){var o=[];return e=e||r.modules,b.each(e,function(e,n){g.moduleExists(n)&&o.push(n)}),o}},disabled:{modules:function(e){var o=[];return e=e||r.modules,b.each(e,function(e,n){g.moduleExists(n)||o.push(n)}),o}},change:{setting:function(i,t,e,s){e="string"==typeof e?"all"===e?r.modules:[e]:e||r.modules,s=s===h||s,b.each(e,function(e,n){var o=!g.moduleExists(n)||(b.fn[n].settings.namespace||!1);g.moduleExists(n)&&(g.verbose("Changing default setting",i,t,n),b.fn[n].settings[i]=t,s&&o&&0<(o=b(":data(module-"+o+")")).length&&(g.verbose("Modifying existing settings",o),o[n]("setting",i,t)))})},settings:function(i,e,t){e="string"==typeof e?[e]:e||r.modules,t=t===h||t,b.each(e,function(e,n){var o;g.moduleExists(n)&&(g.verbose("Changing default setting",i,n),b.extend(!0,b.fn[n].settings,i),t&&s&&0<(o=b(":data(module-"+s+")")).length&&(g.verbose("Modifying existing settings",o),o[n]("setting",i)))})}},enable:{console:function(){g.console(!0)},debug:function(e,n){e=e||r.modules,g.debug("Enabling debug for modules",e),g.change.setting("debug",!0,e,n)},verbose:function(e,n){e=e||r.modules,g.debug("Enabling verbose debug for modules",e),g.change.setting("verbose",!0,e,n)}},disable:{console:function(){g.console(!1)},debug:function(e,n){e=e||r.modules,g.debug("Disabling debug for modules",e),g.change.setting("debug",!1,e,n)},verbose:function(e,n){e=e||r.modules,g.debug("Disabling verbose debug for modules",e),g.change.setting("verbose",!1,e,n)}},console:function(e){e?f.cache.console===h?g.error(u.console):(g.debug("Restoring console function"),p.console=f.cache.console):(g.debug("Disabling console function"),f.cache.console=p.console,p.console={clear:function(){},error:function(){},group:function(){},groupCollapsed:function(){},groupEnd:function(){},info:function(){},log:function(){},markTimeline:function(){},warn:function(){}})},destroy:function(){g.verbose("Destroying previous site for",m),m.removeData(a)},cache:{},setting:function(e,n){if(b.isPlainObject(e))b.extend(!0,r,e);else{if(n===h)return r[e];r[e]=n}},internal:function(e,n){if(b.isPlainObject(e))b.extend(!0,g,e);else{if(n===h)return g[e];g[e]=n}},debug:function(){r.debug&&(r.performance?g.performance.log(arguments):(g.debug=Function.prototype.bind.call(console.info,console,r.name+":"),g.debug.apply(console,arguments)))},verbose:function(){r.verbose&&r.debug&&(r.performance?g.performance.log(arguments):(g.verbose=Function.prototype.bind.call(console.info,console,r.name+":"),g.verbose.apply(console,arguments)))},error:function(){g.error=Function.prototype.bind.call(console.error,console,r.name+":"),g.error.apply(console,arguments)},performance:{log:function(e){var n,o;r.performance&&(o=(n=Date.now())-(i||n),i=n,t.push({Element:d,Name:e[0],Arguments:[].slice.call(e,1)||"","Execution Time":o})),clearTimeout(g.performance.timer),g.performance.timer=setTimeout(g.performance.display,500)},display:function(){var e=r.name+":",o=0;i=!1,clearTimeout(g.performance.timer),b.each(t,function(e,n){o+=n["Execution Time"]}),e+=" "+o+"ms",(console.group!==h||console.table!==h)&&0<t.length&&(console.groupCollapsed(e),console.table?console.table(t):b.each(t,function(e,n){console.log(n.Name+": "+n["Execution Time"]+"ms")}),console.groupEnd()),t=[]}},invoke:function(i,e,n){var t,s,o,r,a=f;return e=e||l,n=n||d,"string"==typeof i&&a!==h&&(i=i.split(/[ .]/),t=i.length-1,b.each(i,function(e,n){var o=e!=t?n+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(b.isPlainObject(a[o])&&e!=t)a=a[o];else{if(a[o]!==h)return s=a[o],!1;{if(!b.isPlainObject(a[n])||e==t)return a[n]!==h?s=a[n]:g.error(u.method,i),!1;a=a[n]}}})),"function"==typeof(r=s)&&"number"!=typeof r.nodeType?o=s.apply(n,e):s!==h&&(o=s),Array.isArray(c)?c.push(o):c!==h?c=[c,o]:o!==h&&(c=o),s}};return o?(f===h&&g.initialize(),g.invoke(n)):(f!==h&&g.destroy(),g.initialize()),c!==h?c:this},b.site=b.fn.site,b.site.settings={name:"Site",namespace:"site",error:{console:"Console cannot be restored, most likely it was overwritten outside of module",method:"The method you called is not defined."},debug:!1,verbose:!1,performance:!0,modules:["accordion","api","calendar","checkbox","dimmer","dropdown","embed","form","modal","nag","popup","slider","rating","shape","sidebar","state","sticky","tab","toast","transition","visibility","visit"],siteNamespace:"site",namespaceStub:{cache:{},config:{},sections:{},section:{},utilities:{}}},b.extend(b.expr.pseudos,{data:b.expr.createPseudo(function(n){return function(e){return!!b.data(e,n)}})})}(jQuery,window,document);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.9.1-beta.
|
2
|
+
* # Fomantic-UI 2.9.1-beta.23+27384cb - Slider
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -15,7 +15,7 @@
|
|
15
15
|
return typeof obj === 'function' && typeof obj.nodeType !== 'number';
|
16
16
|
}
|
17
17
|
|
18
|
-
window = (
|
18
|
+
window = (window !== undefined && window.Math === Math)
|
19
19
|
? window
|
20
20
|
: globalThis;
|
21
21
|
|
@@ -27,11 +27,11 @@
|
|
27
27
|
|
28
28
|
moduleSelector = $allModules.selector || '',
|
29
29
|
|
30
|
-
time =
|
30
|
+
time = Date.now(),
|
31
31
|
performance = [],
|
32
32
|
|
33
33
|
query = arguments[0],
|
34
|
-
methodInvoked = (typeof query
|
34
|
+
methodInvoked = (typeof query === 'string'),
|
35
35
|
queryArguments = [].slice.call(arguments, 1),
|
36
36
|
|
37
37
|
alphabet = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'],
|
@@ -138,7 +138,7 @@
|
|
138
138
|
if ($module.attr('tabindex') === undefined) {
|
139
139
|
$module.attr('tabindex', 0);
|
140
140
|
}
|
141
|
-
if ($module.find('.inner').length
|
141
|
+
if ($module.find('.inner').length === 0) {
|
142
142
|
$module.append("<div class='inner'>"
|
143
143
|
+ "<div class='track'></div>"
|
144
144
|
+ "<div class='track-fill'></div>"
|
@@ -149,7 +149,7 @@
|
|
149
149
|
$thumb = $module.find('.thumb:not(.second)');
|
150
150
|
$currThumb = $thumb;
|
151
151
|
if (module.is.range()) {
|
152
|
-
if ($module.find('.thumb.second').length
|
152
|
+
if ($module.find('.thumb.second').length === 0) {
|
153
153
|
$module.find('.inner').append("<div class='thumb second'></div>");
|
154
154
|
}
|
155
155
|
$secondThumb = $module.find('.thumb.second');
|
@@ -161,7 +161,7 @@
|
|
161
161
|
labels: function () {
|
162
162
|
if (module.is.labeled()) {
|
163
163
|
$labels = $module.find('.labels:not(.auto)');
|
164
|
-
if ($labels.length
|
164
|
+
if ($labels.length > 0) {
|
165
165
|
module.setup.customLabel();
|
166
166
|
} else {
|
167
167
|
module.setup.autoLabel();
|
@@ -196,7 +196,7 @@
|
|
196
196
|
},
|
197
197
|
autoLabel: function () {
|
198
198
|
$labels = $module.find('.labels');
|
199
|
-
if ($labels.length
|
199
|
+
if ($labels.length > 0) {
|
200
200
|
$labels.empty();
|
201
201
|
} else {
|
202
202
|
$labels = $module.append('<ul class="auto labels"></ul>').find('.labels');
|
@@ -523,23 +523,23 @@
|
|
523
523
|
trackOffset: function () {
|
524
524
|
if (module.is.vertical()) {
|
525
525
|
return $track.offset().top;
|
526
|
-
} else {
|
527
|
-
return $track.offset().left;
|
528
526
|
}
|
527
|
+
|
528
|
+
return $track.offset().left;
|
529
529
|
},
|
530
530
|
trackLength: function () {
|
531
531
|
if (module.is.vertical()) {
|
532
532
|
return $track.height();
|
533
|
-
} else {
|
534
|
-
return $track.width();
|
535
533
|
}
|
534
|
+
|
535
|
+
return $track.width();
|
536
536
|
},
|
537
537
|
trackLeft: function () {
|
538
538
|
if (module.is.vertical()) {
|
539
539
|
return $track.position().top;
|
540
|
-
} else {
|
541
|
-
return $track.position().left;
|
542
540
|
}
|
541
|
+
|
542
|
+
return $track.position().left;
|
543
543
|
},
|
544
544
|
trackStartPos: function () {
|
545
545
|
return module.is.reversed() ? module.get.trackLeft() + module.get.trackLength() : module.get.trackLeft();
|
@@ -574,11 +574,7 @@
|
|
574
574
|
;
|
575
575
|
if (step != 0) {
|
576
576
|
var split = String(step).split('.');
|
577
|
-
|
578
|
-
decimalPlaces = split[1].length;
|
579
|
-
} else {
|
580
|
-
decimalPlaces = 0;
|
581
|
-
}
|
577
|
+
decimalPlaces = split.length == 2 ? split[1].length : 0;
|
582
578
|
} else {
|
583
579
|
decimalPlaces = settings.decimalPlaces;
|
584
580
|
}
|
@@ -637,12 +633,12 @@
|
|
637
633
|
case 'second':
|
638
634
|
if (module.is.range()) {
|
639
635
|
return module.secondThumbVal;
|
640
|
-
} else {
|
641
|
-
module.error(error.notrange);
|
642
|
-
|
643
|
-
break;
|
644
636
|
}
|
645
|
-
|
637
|
+
|
638
|
+
module.error(error.notrange);
|
639
|
+
|
640
|
+
break;
|
641
|
+
|
646
642
|
default:
|
647
643
|
return module.thumbVal;
|
648
644
|
}
|
@@ -655,12 +651,12 @@
|
|
655
651
|
case 'second':
|
656
652
|
if (module.is.range()) {
|
657
653
|
return secondPos;
|
658
|
-
} else {
|
659
|
-
module.error(error.notrange);
|
660
|
-
|
661
|
-
break;
|
662
654
|
}
|
663
|
-
|
655
|
+
|
656
|
+
module.error(error.notrange);
|
657
|
+
|
658
|
+
break;
|
659
|
+
|
664
660
|
default:
|
665
661
|
return position;
|
666
662
|
}
|
@@ -852,15 +848,18 @@
|
|
852
848
|
;
|
853
849
|
if (key == downArrow || key == leftArrow) {
|
854
850
|
return SINGLE_BACKSTEP;
|
855
|
-
}
|
851
|
+
}
|
852
|
+
if (key == upArrow || key == rightArrow) {
|
856
853
|
return SINGLE_STEP;
|
857
|
-
}
|
854
|
+
}
|
855
|
+
if (key == keys.pageDown) {
|
858
856
|
return BIG_BACKSTEP;
|
859
|
-
}
|
857
|
+
}
|
858
|
+
if (key == keys.pageUp) {
|
860
859
|
return BIG_STEP;
|
861
|
-
} else {
|
862
|
-
return NO_STEP;
|
863
860
|
}
|
861
|
+
|
862
|
+
return NO_STEP;
|
864
863
|
},
|
865
864
|
},
|
866
865
|
|
@@ -1009,8 +1008,8 @@
|
|
1009
1008
|
thumbPosValue,
|
1010
1009
|
min = module.get.min(),
|
1011
1010
|
max = module.get.max(),
|
1012
|
-
thumbPosPercent = 100 * (newValue - min) / (max - min),
|
1013
|
-
trackStartPosPercent = 100 * (Math.min(thumbVal, secondThumbVal) - min) / (max - min),
|
1011
|
+
thumbPosPercent = 100 * ((newValue - min) / (max - min)),
|
1012
|
+
trackStartPosPercent = 100 * ((Math.min(thumbVal, secondThumbVal) - min) / (max - min)),
|
1014
1013
|
trackEndPosPercent = 100 * (1 - (Math.max(thumbVal, secondThumbVal) - min) / (max - min))
|
1015
1014
|
;
|
1016
1015
|
if (module.is.vertical()) {
|
@@ -1146,7 +1145,7 @@
|
|
1146
1145
|
previousTime
|
1147
1146
|
;
|
1148
1147
|
if (settings.performance) {
|
1149
|
-
currentTime =
|
1148
|
+
currentTime = Date.now();
|
1150
1149
|
previousTime = time || currentTime;
|
1151
1150
|
executionTime = currentTime - previousTime;
|
1152
1151
|
time = currentTime;
|
@@ -1198,8 +1197,8 @@
|
|
1198
1197
|
;
|
1199
1198
|
passedArguments = passedArguments || queryArguments;
|
1200
1199
|
context = context || element;
|
1201
|
-
if (typeof query
|
1202
|
-
query = query.split(/[
|
1200
|
+
if (typeof query === 'string' && object !== undefined) {
|
1201
|
+
query = query.split(/[ .]/);
|
1203
1202
|
maxDepth = query.length - 1;
|
1204
1203
|
$.each(query, function (depth, value) {
|
1205
1204
|
var camelCaseValue = (depth != maxDepth)
|
@@ -1300,9 +1299,7 @@
|
|
1300
1299
|
// page up/down multiplier. How many more times the steps to take on page up/down press
|
1301
1300
|
pageMultiplier: 2,
|
1302
1301
|
|
1303
|
-
selector: {
|
1304
|
-
|
1305
|
-
},
|
1302
|
+
selector: {},
|
1306
1303
|
|
1307
1304
|
className: {
|
1308
1305
|
reversed: 'reversed',
|