gent_styleguide 2.9.2 → 2.12.0
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/.codeclimate.yml +51 -14
- package/CHANGELOG.md +15 -1
- package/CONTRIBUTING.md +8 -1
- package/README.md +23 -6
- package/build/styleguide/js/base-min.js +68 -1
- package/build/styleguide/js/breadcrumbs.binding-min.js +13 -1
- package/build/styleguide/js/breadcrumbs.functions-min.js +131 -1
- package/build/styleguide/js/button-drop-min.js +38 -1
- package/build/styleguide/js/button-drop.binding-min.js +13 -1
- package/build/styleguide/js/button-drop.functions-min.js +48 -1
- package/build/styleguide/js/gallery.binding-min.js +12 -1
- package/build/styleguide/js/gallery.functions-min.js +29 -1
- package/build/styleguide/js/hamburger-menu.binding-min.js +17 -1
- package/build/styleguide/js/hamburger-menu.functions-min.js +166 -1
- package/build/styleguide/js/header.binding-min.js +18 -1
- package/build/styleguide/js/header.functions-min.js +73 -1
- package/build/styleguide/js/input-date.binding-min.js +8 -1
- package/build/styleguide/js/input-date.functions-min.js +27 -1
- package/build/styleguide/js/input-multiselect-chosen.binding-min.js +31 -1
- package/build/styleguide/js/input-multiselect-chosen.functions-min.js +24 -1
- package/build/styleguide/js/teaser-collection.binding-min.js +14 -1
- package/build/styleguide/sass/00-settings/_vars.scss +2 -3
- package/build/styleguide/sass/01-mixins/grid/_default_classes.scss +8 -6
- package/build/styleguide/sass/01-mixins/grid/_mixins.scss +22 -20
- package/build/styleguide/sass/11-base/forms/_forms.scss +3 -0
- package/build/styleguide/sass/11-base/grid/_grid.scss +2 -2
- package/build/styleguide/sass/21-atoms/fieldset/_fieldset.scss +1 -1
- package/build/styleguide/sass/21-atoms/inputs/input-multiselect-chosen/_input-multiselect-chosen.scss +1 -1
- package/build/styleguide/sass/21-atoms/tag/_tag.scss +0 -5
- package/build/styleguide/sass/31-molecules/building-blocks/breadcrumbs/_breadcrumbs.scss +33 -37
- package/build/styleguide/sass/31-molecules/building-blocks/hamburger-menu/_hamburger-menu.scss +1 -1
- package/build/styleguide/sass/31-molecules/status-message/_status-message.scss +1 -0
- package/build/styleguide/sass/41-organisms/header/_header.scss +2 -2
- package/build/styleguide/sass/main_cli.scss +12 -11
- package/nbproject/private/private.properties +1 -0
- package/nbproject/private/private.xml +8 -0
- package/nbproject/project.properties +5 -0
- package/nbproject/project.xml +9 -0
- package/package.json +7 -9
- package/.github/ISSUE_TEMPLATE.md +0 -32
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -30
- package/.mdl.style.rb +0 -9
- package/.mdlrc +0 -1
- package/.travis.yml +0 -27
- package/build/styleguide/vendor/chosen-js/README.md +0 -47
- package/build/styleguide/vendor/chosen-js/chosen-sprite.png +0 -0
- package/build/styleguide/vendor/chosen-js/chosen-sprite@2x.png +0 -0
- package/build/styleguide/vendor/chosen-js/chosen.css +0 -490
- package/build/styleguide/vendor/chosen-js/chosen.jquery.js +0 -1349
- package/build/styleguide/vendor/chosen-js/chosen.jquery.min.js +0 -3
- package/build/styleguide/vendor/chosen-js/chosen.min.css +0 -11
- package/build/styleguide/vendor/chosen-js/chosen.proto.js +0 -1389
- package/build/styleguide/vendor/chosen-js/chosen.proto.min.js +0 -3
- package/build/styleguide/vendor/jquery/AUTHORS.txt +0 -301
- package/build/styleguide/vendor/jquery/LICENSE.txt +0 -36
- package/build/styleguide/vendor/jquery/README.md +0 -67
- package/build/styleguide/vendor/jquery/dist/core.js +0 -476
- package/build/styleguide/vendor/jquery/dist/jquery.js +0 -10253
- package/build/styleguide/vendor/jquery/dist/jquery.min.js +0 -4
- package/build/styleguide/vendor/jquery/dist/jquery.min.map +0 -1
- package/build/styleguide/vendor/jquery/dist/jquery.slim.js +0 -8160
- package/build/styleguide/vendor/jquery/dist/jquery.slim.min.js +0 -4
- package/build/styleguide/vendor/jquery/dist/jquery.slim.min.map +0 -1
- package/build/styleguide/vendor/jquery/external/sizzle/LICENSE.txt +0 -36
- package/build/styleguide/vendor/jquery/external/sizzle/dist/sizzle.js +0 -2272
- package/build/styleguide/vendor/jquery/external/sizzle/dist/sizzle.min.js +0 -3
- package/build/styleguide/vendor/jquery/external/sizzle/dist/sizzle.min.map +0 -1
- package/build/styleguide/vendor/jquery/package.json +0 -97
- package/build/styleguide/vendor/jquery/src/.eslintrc.json +0 -5
- package/build/styleguide/vendor/jquery/src/ajax/jsonp.js +0 -102
- package/build/styleguide/vendor/jquery/src/ajax/load.js +0 -76
- package/build/styleguide/vendor/jquery/src/ajax/parseXML.js +0 -30
- package/build/styleguide/vendor/jquery/src/ajax/script.js +0 -77
- package/build/styleguide/vendor/jquery/src/ajax/var/location.js +0 -5
- package/build/styleguide/vendor/jquery/src/ajax/var/nonce.js +0 -7
- package/build/styleguide/vendor/jquery/src/ajax/var/rquery.js +0 -5
- package/build/styleguide/vendor/jquery/src/ajax/xhr.js +0 -169
- package/build/styleguide/vendor/jquery/src/ajax.js +0 -855
- package/build/styleguide/vendor/jquery/src/attributes/attr.js +0 -141
- package/build/styleguide/vendor/jquery/src/attributes/classes.js +0 -174
- package/build/styleguide/vendor/jquery/src/attributes/prop.js +0 -143
- package/build/styleguide/vendor/jquery/src/attributes/support.js +0 -33
- package/build/styleguide/vendor/jquery/src/attributes/val.js +0 -190
- package/build/styleguide/vendor/jquery/src/attributes.js +0 -13
- package/build/styleguide/vendor/jquery/src/callbacks.js +0 -234
- package/build/styleguide/vendor/jquery/src/core/DOMEval.js +0 -16
- package/build/styleguide/vendor/jquery/src/core/access.js +0 -70
- package/build/styleguide/vendor/jquery/src/core/init.js +0 -128
- package/build/styleguide/vendor/jquery/src/core/nodeName.js +0 -13
- package/build/styleguide/vendor/jquery/src/core/parseHTML.js +0 -65
- package/build/styleguide/vendor/jquery/src/core/ready-no-deferred.js +0 -96
- package/build/styleguide/vendor/jquery/src/core/ready.js +0 -86
- package/build/styleguide/vendor/jquery/src/core/readyException.js +0 -13
- package/build/styleguide/vendor/jquery/src/core/stripAndCollapse.js +0 -14
- package/build/styleguide/vendor/jquery/src/core/support.js +0 -20
- package/build/styleguide/vendor/jquery/src/core/var/rsingleTag.js +0 -6
- package/build/styleguide/vendor/jquery/src/core.js +0 -476
- package/build/styleguide/vendor/jquery/src/css/addGetHookIf.js +0 -26
- package/build/styleguide/vendor/jquery/src/css/adjustCSS.js +0 -71
- package/build/styleguide/vendor/jquery/src/css/curCSS.js +0 -65
- package/build/styleguide/vendor/jquery/src/css/hiddenVisibleSelectors.js +0 -15
- package/build/styleguide/vendor/jquery/src/css/showHide.js +0 -105
- package/build/styleguide/vendor/jquery/src/css/support.js +0 -89
- package/build/styleguide/vendor/jquery/src/css/var/cssExpand.js +0 -5
- package/build/styleguide/vendor/jquery/src/css/var/getStyles.js +0 -17
- package/build/styleguide/vendor/jquery/src/css/var/isHiddenWithinTree.js +0 -34
- package/build/styleguide/vendor/jquery/src/css/var/rmargin.js +0 -5
- package/build/styleguide/vendor/jquery/src/css/var/rnumnonpx.js +0 -7
- package/build/styleguide/vendor/jquery/src/css/var/swap.js +0 -26
- package/build/styleguide/vendor/jquery/src/css.js +0 -438
- package/build/styleguide/vendor/jquery/src/data/Data.js +0 -161
- package/build/styleguide/vendor/jquery/src/data/var/acceptData.js +0 -19
- package/build/styleguide/vendor/jquery/src/data/var/dataPriv.js +0 -7
- package/build/styleguide/vendor/jquery/src/data/var/dataUser.js +0 -7
- package/build/styleguide/vendor/jquery/src/data.js +0 -179
- package/build/styleguide/vendor/jquery/src/deferred/exceptionHook.js +0 -21
- package/build/styleguide/vendor/jquery/src/deferred.js +0 -391
- package/build/styleguide/vendor/jquery/src/deprecated.js +0 -40
- package/build/styleguide/vendor/jquery/src/dimensions.js +0 -56
- package/build/styleguide/vendor/jquery/src/effects/Tween.js +0 -123
- package/build/styleguide/vendor/jquery/src/effects/animatedSelector.js +0 -15
- package/build/styleguide/vendor/jquery/src/effects.js +0 -699
- package/build/styleguide/vendor/jquery/src/event/ajax.js +0 -22
- package/build/styleguide/vendor/jquery/src/event/alias.js +0 -29
- package/build/styleguide/vendor/jquery/src/event/focusin.js +0 -55
- package/build/styleguide/vendor/jquery/src/event/support.js +0 -11
- package/build/styleguide/vendor/jquery/src/event/trigger.js +0 -185
- package/build/styleguide/vendor/jquery/src/event.js +0 -746
- package/build/styleguide/vendor/jquery/src/exports/amd.js +0 -26
- package/build/styleguide/vendor/jquery/src/exports/global.js +0 -34
- package/build/styleguide/vendor/jquery/src/jquery.js +0 -41
- package/build/styleguide/vendor/jquery/src/manipulation/_evalUrl.js +0 -23
- package/build/styleguide/vendor/jquery/src/manipulation/buildFragment.js +0 -104
- package/build/styleguide/vendor/jquery/src/manipulation/getAll.js +0 -32
- package/build/styleguide/vendor/jquery/src/manipulation/setGlobalEval.js +0 -22
- package/build/styleguide/vendor/jquery/src/manipulation/support.js +0 -35
- package/build/styleguide/vendor/jquery/src/manipulation/var/rcheckableType.js +0 -5
- package/build/styleguide/vendor/jquery/src/manipulation/var/rscriptType.js +0 -5
- package/build/styleguide/vendor/jquery/src/manipulation/var/rtagName.js +0 -5
- package/build/styleguide/vendor/jquery/src/manipulation/wrapMap.js +0 -29
- package/build/styleguide/vendor/jquery/src/manipulation.js +0 -488
- package/build/styleguide/vendor/jquery/src/offset.js +0 -229
- package/build/styleguide/vendor/jquery/src/queue/delay.js +0 -24
- package/build/styleguide/vendor/jquery/src/queue.js +0 -145
- package/build/styleguide/vendor/jquery/src/selector-native.js +0 -237
- package/build/styleguide/vendor/jquery/src/selector-sizzle.js +0 -19
- package/build/styleguide/vendor/jquery/src/selector.js +0 -3
- package/build/styleguide/vendor/jquery/src/serialize.js +0 -130
- package/build/styleguide/vendor/jquery/src/traversing/findFilter.js +0 -106
- package/build/styleguide/vendor/jquery/src/traversing/var/dir.js +0 -22
- package/build/styleguide/vendor/jquery/src/traversing/var/rneedsContext.js +0 -8
- package/build/styleguide/vendor/jquery/src/traversing/var/siblings.js +0 -17
- package/build/styleguide/vendor/jquery/src/traversing.js +0 -191
- package/build/styleguide/vendor/jquery/src/var/ObjectFunctionString.js +0 -7
- package/build/styleguide/vendor/jquery/src/var/arr.js +0 -5
- package/build/styleguide/vendor/jquery/src/var/class2type.js +0 -6
- package/build/styleguide/vendor/jquery/src/var/concat.js +0 -7
- package/build/styleguide/vendor/jquery/src/var/document.js +0 -5
- package/build/styleguide/vendor/jquery/src/var/documentElement.js +0 -7
- package/build/styleguide/vendor/jquery/src/var/fnToString.js +0 -7
- package/build/styleguide/vendor/jquery/src/var/getProto.js +0 -5
- package/build/styleguide/vendor/jquery/src/var/hasOwn.js +0 -7
- package/build/styleguide/vendor/jquery/src/var/indexOf.js +0 -7
- package/build/styleguide/vendor/jquery/src/var/pnum.js +0 -5
- package/build/styleguide/vendor/jquery/src/var/push.js +0 -7
- package/build/styleguide/vendor/jquery/src/var/rcssNum.js +0 -9
- package/build/styleguide/vendor/jquery/src/var/rnothtmlwhite.js +0 -8
- package/build/styleguide/vendor/jquery/src/var/slice.js +0 -7
- package/build/styleguide/vendor/jquery/src/var/support.js +0 -6
- package/build/styleguide/vendor/jquery/src/var/toString.js +0 -7
- package/build/styleguide/vendor/jquery/src/wrap.js +0 -77
- package/build/styleguide/vendor/lightgallery/.editorconfig +0 -16
- package/build/styleguide/vendor/lightgallery/.gitattributes +0 -1
- package/build/styleguide/vendor/lightgallery/.jscsrc +0 -7
- package/build/styleguide/vendor/lightgallery/.jshintrc +0 -18
- package/build/styleguide/vendor/lightgallery/.travis.yml +0 -9
- package/build/styleguide/vendor/lightgallery/Gruntfile.js +0 -208
- package/build/styleguide/vendor/lightgallery/LICENSE.md +0 -686
- package/build/styleguide/vendor/lightgallery/README.md +0 -191
- package/build/styleguide/vendor/lightgallery/contributing.md +0 -34
- package/build/styleguide/vendor/lightgallery/demo/img/1-1600.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/1-375.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/1-480.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/1.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/13-1600.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/13-375.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/13-480.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/13.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/2-1600.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/2-375.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/2-480.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/2.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/4-1600.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/4-375.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/4-480.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/4.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/thumb-1.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/thumb-13.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/thumb-2.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/img/thumb-4.jpg +0 -0
- package/build/styleguide/vendor/lightgallery/demo/index.html +0 -162
- package/build/styleguide/vendor/lightgallery/dist/css/lg-fb-comment-box.css +0 -57
- package/build/styleguide/vendor/lightgallery/dist/css/lg-fb-comment-box.min.css +0 -1
- package/build/styleguide/vendor/lightgallery/dist/css/lg-transitions.css +0 -779
- package/build/styleguide/vendor/lightgallery/dist/css/lg-transitions.min.css +0 -1
- package/build/styleguide/vendor/lightgallery/dist/css/lightgallery.css +0 -982
- package/build/styleguide/vendor/lightgallery/dist/css/lightgallery.min.css +0 -1
- package/build/styleguide/vendor/lightgallery/dist/fonts/lg.eot +0 -0
- package/build/styleguide/vendor/lightgallery/dist/fonts/lg.svg +0 -47
- package/build/styleguide/vendor/lightgallery/dist/fonts/lg.ttf +0 -0
- package/build/styleguide/vendor/lightgallery/dist/fonts/lg.woff +0 -0
- package/build/styleguide/vendor/lightgallery/dist/img/loading.gif +0 -0
- package/build/styleguide/vendor/lightgallery/dist/img/video-play.png +0 -0
- package/build/styleguide/vendor/lightgallery/dist/img/vimeo-play.png +0 -0
- package/build/styleguide/vendor/lightgallery/dist/img/youtube-play.png +0 -0
- package/build/styleguide/vendor/lightgallery/dist/js/lightgallery-all.js +0 -3331
- package/build/styleguide/vendor/lightgallery/dist/js/lightgallery-all.min.js +0 -5
- package/build/styleguide/vendor/lightgallery/dist/js/lightgallery.js +0 -1364
- package/build/styleguide/vendor/lightgallery/dist/js/lightgallery.min.js +0 -4
- package/build/styleguide/vendor/lightgallery/lib/jquery.mousewheel.min.js +0 -8
- package/build/styleguide/vendor/lightgallery/lib/lg.png +0 -0
- package/build/styleguide/vendor/lightgallery/lib/picturefill.min.js +0 -4
- package/build/styleguide/vendor/lightgallery/lightGallery.jquery.json +0 -27
- package/build/styleguide/vendor/lightgallery/modules/lg-autoplay.js +0 -206
- package/build/styleguide/vendor/lightgallery/modules/lg-autoplay.min.js +0 -4
- package/build/styleguide/vendor/lightgallery/modules/lg-fullscreen.js +0 -116
- package/build/styleguide/vendor/lightgallery/modules/lg-fullscreen.min.js +0 -4
- package/build/styleguide/vendor/lightgallery/modules/lg-hash.js +0 -101
- package/build/styleguide/vendor/lightgallery/modules/lg-hash.min.js +0 -4
- package/build/styleguide/vendor/lightgallery/modules/lg-pager.js +0 -105
- package/build/styleguide/vendor/lightgallery/modules/lg-pager.min.js +0 -4
- package/build/styleguide/vendor/lightgallery/modules/lg-share.js +0 -107
- package/build/styleguide/vendor/lightgallery/modules/lg-share.min.js +0 -4
- package/build/styleguide/vendor/lightgallery/modules/lg-thumbnail.js +0 -478
- package/build/styleguide/vendor/lightgallery/modules/lg-thumbnail.min.js +0 -4
- package/build/styleguide/vendor/lightgallery/modules/lg-video.js +0 -317
- package/build/styleguide/vendor/lightgallery/modules/lg-video.min.js +0 -4
- package/build/styleguide/vendor/lightgallery/modules/lg-zoom.js +0 -527
- package/build/styleguide/vendor/lightgallery/modules/lg-zoom.min.js +0 -4
- package/build/styleguide/vendor/lightgallery/package.json +0 -60
- package/build/styleguide/vendor/lightgallery/selection.json +0 -407
- package/build/styleguide/vendor/lightgallery/src/css/lg-fb-comment-box.css +0 -54
- package/build/styleguide/vendor/lightgallery/src/css/lg-fb-comment-box.css.map +0 -7
- package/build/styleguide/vendor/lightgallery/src/css/lg-transitions.css +0 -776
- package/build/styleguide/vendor/lightgallery/src/css/lg-transitions.css.map +0 -7
- package/build/styleguide/vendor/lightgallery/src/css/lightgallery.css +0 -979
- package/build/styleguide/vendor/lightgallery/src/css/lightgallery.css.map +0 -7
- package/build/styleguide/vendor/lightgallery/src/fonts/lg.eot +0 -0
- package/build/styleguide/vendor/lightgallery/src/fonts/lg.svg +0 -47
- package/build/styleguide/vendor/lightgallery/src/fonts/lg.ttf +0 -0
- package/build/styleguide/vendor/lightgallery/src/fonts/lg.woff +0 -0
- package/build/styleguide/vendor/lightgallery/src/img/loading.gif +0 -0
- package/build/styleguide/vendor/lightgallery/src/img/video-play.png +0 -0
- package/build/styleguide/vendor/lightgallery/src/img/vimeo-play.png +0 -0
- package/build/styleguide/vendor/lightgallery/src/img/youtube-play.png +0 -0
- package/build/styleguide/vendor/lightgallery/src/js/.jshintrc +0 -22
- package/build/styleguide/vendor/lightgallery/src/js/lightgallery.js +0 -1342
- package/build/styleguide/vendor/lightgallery/src/sass/lg-animations.scss +0 -714
- package/build/styleguide/vendor/lightgallery/src/sass/lg-autoplay.scss +0 -36
- package/build/styleguide/vendor/lightgallery/src/sass/lg-core.scss +0 -272
- package/build/styleguide/vendor/lightgallery/src/sass/lg-fb-comment-box.scss +0 -52
- package/build/styleguide/vendor/lightgallery/src/sass/lg-fonts.scss +0 -22
- package/build/styleguide/vendor/lightgallery/src/sass/lg-fullscreen.scss +0 -9
- package/build/styleguide/vendor/lightgallery/src/sass/lg-mixins.scss +0 -330
- package/build/styleguide/vendor/lightgallery/src/sass/lg-pager.scss +0 -89
- package/build/styleguide/vendor/lightgallery/src/sass/lg-share.scss +0 -135
- package/build/styleguide/vendor/lightgallery/src/sass/lg-theme-default.scss +0 -208
- package/build/styleguide/vendor/lightgallery/src/sass/lg-thumbnail.scss +0 -111
- package/build/styleguide/vendor/lightgallery/src/sass/lg-transitions.scss +0 -766
- package/build/styleguide/vendor/lightgallery/src/sass/lg-variables.scss +0 -57
- package/build/styleguide/vendor/lightgallery/src/sass/lg-video.scss +0 -110
- package/build/styleguide/vendor/lightgallery/src/sass/lg-zoom.scss +0 -69
- package/build/styleguide/vendor/lightgallery/src/sass/lightgallery.scss +0 -15
- package/build/styleguide/vendor/lightgallery/src/sass/prepros.cfg +0 -530
- package/build/styleguide/vendor/lightgallery/test/.jshintrc +0 -33
- package/build/styleguide/vendor/lightgallery/test/lightgallery.html +0 -27
- package/build/styleguide/vendor/lightgallery/test/lightgallery_test.js +0 -16
- package/build/styleguide/vendor/masonry-layout/README.md +0 -80
- package/build/styleguide/vendor/masonry-layout/dist/masonry.pkgd.js +0 -2499
- package/build/styleguide/vendor/masonry-layout/dist/masonry.pkgd.min.js +0 -9
- package/build/styleguide/vendor/masonry-layout/masonry.js +0 -239
- package/postinstall.sh +0 -76
- package/version_tag.sh +0 -99
- package/yarn.lock +0 -7827
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
define( [
|
|
2
|
-
"../core",
|
|
3
|
-
"../data/var/dataPriv",
|
|
4
|
-
"../css/var/isHiddenWithinTree"
|
|
5
|
-
], function( jQuery, dataPriv, isHiddenWithinTree ) {
|
|
6
|
-
|
|
7
|
-
"use strict";
|
|
8
|
-
|
|
9
|
-
var defaultDisplayMap = {};
|
|
10
|
-
|
|
11
|
-
function getDefaultDisplay( elem ) {
|
|
12
|
-
var temp,
|
|
13
|
-
doc = elem.ownerDocument,
|
|
14
|
-
nodeName = elem.nodeName,
|
|
15
|
-
display = defaultDisplayMap[ nodeName ];
|
|
16
|
-
|
|
17
|
-
if ( display ) {
|
|
18
|
-
return display;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
temp = doc.body.appendChild( doc.createElement( nodeName ) );
|
|
22
|
-
display = jQuery.css( temp, "display" );
|
|
23
|
-
|
|
24
|
-
temp.parentNode.removeChild( temp );
|
|
25
|
-
|
|
26
|
-
if ( display === "none" ) {
|
|
27
|
-
display = "block";
|
|
28
|
-
}
|
|
29
|
-
defaultDisplayMap[ nodeName ] = display;
|
|
30
|
-
|
|
31
|
-
return display;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function showHide( elements, show ) {
|
|
35
|
-
var display, elem,
|
|
36
|
-
values = [],
|
|
37
|
-
index = 0,
|
|
38
|
-
length = elements.length;
|
|
39
|
-
|
|
40
|
-
// Determine new display value for elements that need to change
|
|
41
|
-
for ( ; index < length; index++ ) {
|
|
42
|
-
elem = elements[ index ];
|
|
43
|
-
if ( !elem.style ) {
|
|
44
|
-
continue;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
display = elem.style.display;
|
|
48
|
-
if ( show ) {
|
|
49
|
-
|
|
50
|
-
// Since we force visibility upon cascade-hidden elements, an immediate (and slow)
|
|
51
|
-
// check is required in this first loop unless we have a nonempty display value (either
|
|
52
|
-
// inline or about-to-be-restored)
|
|
53
|
-
if ( display === "none" ) {
|
|
54
|
-
values[ index ] = dataPriv.get( elem, "display" ) || null;
|
|
55
|
-
if ( !values[ index ] ) {
|
|
56
|
-
elem.style.display = "";
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) {
|
|
60
|
-
values[ index ] = getDefaultDisplay( elem );
|
|
61
|
-
}
|
|
62
|
-
} else {
|
|
63
|
-
if ( display !== "none" ) {
|
|
64
|
-
values[ index ] = "none";
|
|
65
|
-
|
|
66
|
-
// Remember what we're overwriting
|
|
67
|
-
dataPriv.set( elem, "display", display );
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// Set the display of the elements in a second loop to avoid constant reflow
|
|
73
|
-
for ( index = 0; index < length; index++ ) {
|
|
74
|
-
if ( values[ index ] != null ) {
|
|
75
|
-
elements[ index ].style.display = values[ index ];
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
return elements;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
jQuery.fn.extend( {
|
|
83
|
-
show: function() {
|
|
84
|
-
return showHide( this, true );
|
|
85
|
-
},
|
|
86
|
-
hide: function() {
|
|
87
|
-
return showHide( this );
|
|
88
|
-
},
|
|
89
|
-
toggle: function( state ) {
|
|
90
|
-
if ( typeof state === "boolean" ) {
|
|
91
|
-
return state ? this.show() : this.hide();
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
return this.each( function() {
|
|
95
|
-
if ( isHiddenWithinTree( this ) ) {
|
|
96
|
-
jQuery( this ).show();
|
|
97
|
-
} else {
|
|
98
|
-
jQuery( this ).hide();
|
|
99
|
-
}
|
|
100
|
-
} );
|
|
101
|
-
}
|
|
102
|
-
} );
|
|
103
|
-
|
|
104
|
-
return showHide;
|
|
105
|
-
} );
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
define( [
|
|
2
|
-
"../core",
|
|
3
|
-
"../var/document",
|
|
4
|
-
"../var/documentElement",
|
|
5
|
-
"../var/support"
|
|
6
|
-
], function( jQuery, document, documentElement, support ) {
|
|
7
|
-
|
|
8
|
-
"use strict";
|
|
9
|
-
|
|
10
|
-
( function() {
|
|
11
|
-
|
|
12
|
-
// Executing both pixelPosition & boxSizingReliable tests require only one layout
|
|
13
|
-
// so they're executed at the same time to save the second computation.
|
|
14
|
-
function computeStyleTests() {
|
|
15
|
-
|
|
16
|
-
// This is a singleton, we need to execute it only once
|
|
17
|
-
if ( !div ) {
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
div.style.cssText =
|
|
22
|
-
"box-sizing:border-box;" +
|
|
23
|
-
"position:relative;display:block;" +
|
|
24
|
-
"margin:auto;border:1px;padding:1px;" +
|
|
25
|
-
"top:1%;width:50%";
|
|
26
|
-
div.innerHTML = "";
|
|
27
|
-
documentElement.appendChild( container );
|
|
28
|
-
|
|
29
|
-
var divStyle = window.getComputedStyle( div );
|
|
30
|
-
pixelPositionVal = divStyle.top !== "1%";
|
|
31
|
-
|
|
32
|
-
// Support: Android 4.0 - 4.3 only, Firefox <=3 - 44
|
|
33
|
-
reliableMarginLeftVal = divStyle.marginLeft === "2px";
|
|
34
|
-
boxSizingReliableVal = divStyle.width === "4px";
|
|
35
|
-
|
|
36
|
-
// Support: Android 4.0 - 4.3 only
|
|
37
|
-
// Some styles come back with percentage values, even though they shouldn't
|
|
38
|
-
div.style.marginRight = "50%";
|
|
39
|
-
pixelMarginRightVal = divStyle.marginRight === "4px";
|
|
40
|
-
|
|
41
|
-
documentElement.removeChild( container );
|
|
42
|
-
|
|
43
|
-
// Nullify the div so it wouldn't be stored in the memory and
|
|
44
|
-
// it will also be a sign that checks already performed
|
|
45
|
-
div = null;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
var pixelPositionVal, boxSizingReliableVal, pixelMarginRightVal, reliableMarginLeftVal,
|
|
49
|
-
container = document.createElement( "div" ),
|
|
50
|
-
div = document.createElement( "div" );
|
|
51
|
-
|
|
52
|
-
// Finish early in limited (non-browser) environments
|
|
53
|
-
if ( !div.style ) {
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// Support: IE <=9 - 11 only
|
|
58
|
-
// Style of cloned element affects source element cloned (#8908)
|
|
59
|
-
div.style.backgroundClip = "content-box";
|
|
60
|
-
div.cloneNode( true ).style.backgroundClip = "";
|
|
61
|
-
support.clearCloneStyle = div.style.backgroundClip === "content-box";
|
|
62
|
-
|
|
63
|
-
container.style.cssText = "border:0;width:8px;height:0;top:0;left:-9999px;" +
|
|
64
|
-
"padding:0;margin-top:1px;position:absolute";
|
|
65
|
-
container.appendChild( div );
|
|
66
|
-
|
|
67
|
-
jQuery.extend( support, {
|
|
68
|
-
pixelPosition: function() {
|
|
69
|
-
computeStyleTests();
|
|
70
|
-
return pixelPositionVal;
|
|
71
|
-
},
|
|
72
|
-
boxSizingReliable: function() {
|
|
73
|
-
computeStyleTests();
|
|
74
|
-
return boxSizingReliableVal;
|
|
75
|
-
},
|
|
76
|
-
pixelMarginRight: function() {
|
|
77
|
-
computeStyleTests();
|
|
78
|
-
return pixelMarginRightVal;
|
|
79
|
-
},
|
|
80
|
-
reliableMarginLeft: function() {
|
|
81
|
-
computeStyleTests();
|
|
82
|
-
return reliableMarginLeftVal;
|
|
83
|
-
}
|
|
84
|
-
} );
|
|
85
|
-
} )();
|
|
86
|
-
|
|
87
|
-
return support;
|
|
88
|
-
|
|
89
|
-
} );
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
define( function() {
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
return function( elem ) {
|
|
5
|
-
|
|
6
|
-
// Support: IE <=11 only, Firefox <=30 (#15098, #14150)
|
|
7
|
-
// IE throws on elements created in popups
|
|
8
|
-
// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
|
|
9
|
-
var view = elem.ownerDocument.defaultView;
|
|
10
|
-
|
|
11
|
-
if ( !view || !view.opener ) {
|
|
12
|
-
view = window;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
return view.getComputedStyle( elem );
|
|
16
|
-
};
|
|
17
|
-
} );
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
define( [
|
|
2
|
-
"../../core",
|
|
3
|
-
"../../selector"
|
|
4
|
-
|
|
5
|
-
// css is assumed
|
|
6
|
-
], function( jQuery ) {
|
|
7
|
-
"use strict";
|
|
8
|
-
|
|
9
|
-
// isHiddenWithinTree reports if an element has a non-"none" display style (inline and/or
|
|
10
|
-
// through the CSS cascade), which is useful in deciding whether or not to make it visible.
|
|
11
|
-
// It differs from the :hidden selector (jQuery.expr.pseudos.hidden) in two important ways:
|
|
12
|
-
// * A hidden ancestor does not force an element to be classified as hidden.
|
|
13
|
-
// * Being disconnected from the document does not force an element to be classified as hidden.
|
|
14
|
-
// These differences improve the behavior of .toggle() et al. when applied to elements that are
|
|
15
|
-
// detached or contained within hidden ancestors (gh-2404, gh-2863).
|
|
16
|
-
return function( elem, el ) {
|
|
17
|
-
|
|
18
|
-
// isHiddenWithinTree might be called from jQuery#filter function;
|
|
19
|
-
// in that case, element will be second argument
|
|
20
|
-
elem = el || elem;
|
|
21
|
-
|
|
22
|
-
// Inline style trumps all
|
|
23
|
-
return elem.style.display === "none" ||
|
|
24
|
-
elem.style.display === "" &&
|
|
25
|
-
|
|
26
|
-
// Otherwise, check computed style
|
|
27
|
-
// Support: Firefox <=43 - 45
|
|
28
|
-
// Disconnected elements can have computed display: none, so first confirm that elem is
|
|
29
|
-
// in the document.
|
|
30
|
-
jQuery.contains( elem.ownerDocument, elem ) &&
|
|
31
|
-
|
|
32
|
-
jQuery.css( elem, "display" ) === "none";
|
|
33
|
-
};
|
|
34
|
-
} );
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
define( function() {
|
|
2
|
-
|
|
3
|
-
"use strict";
|
|
4
|
-
|
|
5
|
-
// A method for quickly swapping in/out CSS properties to get correct calculations.
|
|
6
|
-
return function( elem, options, callback, args ) {
|
|
7
|
-
var ret, name,
|
|
8
|
-
old = {};
|
|
9
|
-
|
|
10
|
-
// Remember the old values, and insert the new ones
|
|
11
|
-
for ( name in options ) {
|
|
12
|
-
old[ name ] = elem.style[ name ];
|
|
13
|
-
elem.style[ name ] = options[ name ];
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
ret = callback.apply( elem, args || [] );
|
|
17
|
-
|
|
18
|
-
// Revert the old values
|
|
19
|
-
for ( name in options ) {
|
|
20
|
-
elem.style[ name ] = old[ name ];
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
return ret;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
} );
|