card 1.96.2 → 1.96.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/config/initializers/patches.rb +1 -1
- data/db/migrate_core_cards/20130823192433_add_style_cards.rb +1 -1
- data/db/migrate_core_cards/20170314175313_add_notification_event_card.rb +2 -3
- data/db/migrate_core_cards/data/1.11_help_text.json +16 -16
- data/db/migrate_core_cards/data/1.13_config_text.json +2 -2
- data/db/migrate_core_cards/data/1.14_config_descriptions_etc.json +12 -12
- data/db/migrate_core_cards/data/bootstrap_layout.json +1 -1
- data/db/seed/new/card_actions.yml +799 -799
- data/db/seed/new/card_acts.yml +2 -2
- data/db/seed/new/cards.yml +1610 -1610
- data/db/seed/new/schema_migrations.yml +8 -10
- data/db/seed/test/fixtures/card_actions.yml +1789 -1789
- data/db/seed/test/fixtures/card_acts.yml +447 -447
- data/db/seed/test/fixtures/card_changes.yml +66 -66
- data/db/seed/test/fixtures/card_references.yml +575 -575
- data/db/seed/test/fixtures/cards.yml +2612 -2612
- data/db/seed/test/seed.rb +2 -1
- data/lib/card/format/error.rb +12 -6
- data/lib/card/model/save_helper.rb +2 -1
- data/lib/card/query.rb +1 -1
- data/lib/card/set.rb +22 -12
- data/lib/card/view/cache.rb +3 -3
- data/lib/cardio.rb +3 -1
- data/mod/ace_editor/db/migrate_core_cards/20160804112538_add_ace_cards.rb +1 -1
- data/mod/basic_formats/set/all/base.rb +16 -2
- data/mod/basic_formats/set/all/json.rb +16 -14
- data/mod/bootstrap/lib/stylesheets/style_bootstrap_cards.scss +54 -4
- data/mod/bootstrap/vendor/bootstrap/Gemfile +3 -3
- data/mod/bootstrap/vendor/bootstrap/Gemfile.lock +15 -15
- data/mod/bootstrap/vendor/bootstrap/README.md +36 -30
- data/mod/bootstrap/vendor/bootstrap/_config.yml +12 -30
- data/mod/bootstrap/vendor/bootstrap/build/build-plugins.js +81 -0
- data/mod/bootstrap/vendor/bootstrap/build/generate-sri.js +2 -2
- data/mod/bootstrap/vendor/bootstrap/build/workbox.config.json +1 -1
- data/mod/bootstrap/vendor/bootstrap/build/workbox.js +1 -1
- data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap-grid.css +1 -1
- data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap-grid.css.map +1 -1
- data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap-grid.min.css +1 -1
- data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap-grid.min.css.map +1 -1
- data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap-reboot.css +5 -4
- data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap-reboot.css.map +1 -1
- data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap-reboot.min.css +2 -2
- data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap-reboot.min.css.map +1 -1
- data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap.css +145 -96
- data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap.css.map +1 -1
- data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap.min.css +2 -2
- data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap.min.css.map +1 -1
- data/mod/bootstrap/vendor/bootstrap/dist/js/bootstrap.bundle.js +123 -106
- data/mod/bootstrap/vendor/bootstrap/dist/js/bootstrap.bundle.js.map +1 -1
- data/mod/bootstrap/vendor/bootstrap/dist/js/bootstrap.bundle.min.js +2 -2
- data/mod/bootstrap/vendor/bootstrap/dist/js/bootstrap.bundle.min.js.map +1 -1
- data/mod/bootstrap/vendor/bootstrap/dist/js/bootstrap.js +123 -106
- data/mod/bootstrap/vendor/bootstrap/dist/js/bootstrap.js.map +1 -1
- data/mod/bootstrap/vendor/bootstrap/dist/js/bootstrap.min.js +2 -2
- data/mod/bootstrap/vendor/bootstrap/dist/js/bootstrap.min.js.map +1 -1
- data/mod/bootstrap/vendor/bootstrap/js/dist/alert.js +160 -134
- data/mod/bootstrap/vendor/bootstrap/js/dist/alert.js.map +1 -1
- data/mod/bootstrap/vendor/bootstrap/js/dist/button.js +150 -125
- data/mod/bootstrap/vendor/bootstrap/js/dist/button.js.map +1 -1
- data/mod/bootstrap/vendor/bootstrap/js/dist/carousel.js +465 -406
- data/mod/bootstrap/vendor/bootstrap/js/dist/carousel.js.map +1 -1
- data/mod/bootstrap/vendor/bootstrap/js/dist/collapse.js +338 -274
- data/mod/bootstrap/vendor/bootstrap/js/dist/collapse.js.map +1 -1
- data/mod/bootstrap/vendor/bootstrap/js/dist/dropdown.js +442 -379
- data/mod/bootstrap/vendor/bootstrap/js/dist/dropdown.js.map +1 -1
- data/mod/bootstrap/vendor/bootstrap/js/dist/index.js +1 -1
- data/mod/bootstrap/vendor/bootstrap/js/dist/index.js.map +1 -1
- data/mod/bootstrap/vendor/bootstrap/js/dist/modal.js +503 -454
- data/mod/bootstrap/vendor/bootstrap/js/dist/modal.js.map +1 -1
- data/mod/bootstrap/vendor/bootstrap/js/dist/popover.js +224 -164
- data/mod/bootstrap/vendor/bootstrap/js/dist/popover.js.map +1 -1
- data/mod/bootstrap/vendor/bootstrap/js/dist/scrollspy.js +308 -248
- data/mod/bootstrap/vendor/bootstrap/js/dist/scrollspy.js.map +1 -1
- data/mod/bootstrap/vendor/bootstrap/js/dist/tab.js +218 -191
- data/mod/bootstrap/vendor/bootstrap/js/dist/tab.js.map +1 -1
- data/mod/bootstrap/vendor/bootstrap/js/dist/tooltip.js +584 -524
- data/mod/bootstrap/vendor/bootstrap/js/dist/tooltip.js.map +1 -1
- data/mod/bootstrap/vendor/bootstrap/js/dist/util.js +130 -118
- data/mod/bootstrap/vendor/bootstrap/js/dist/util.js.map +1 -1
- data/mod/bootstrap/vendor/bootstrap/js/src/alert.js +3 -3
- data/mod/bootstrap/vendor/bootstrap/js/src/button.js +7 -7
- data/mod/bootstrap/vendor/bootstrap/js/src/carousel.js +16 -13
- data/mod/bootstrap/vendor/bootstrap/js/src/collapse.js +25 -21
- data/mod/bootstrap/vendor/bootstrap/js/src/dropdown.js +16 -9
- data/mod/bootstrap/vendor/bootstrap/js/src/index.js +1 -1
- data/mod/bootstrap/vendor/bootstrap/js/src/modal.js +30 -30
- data/mod/bootstrap/vendor/bootstrap/js/src/popover.js +2 -2
- data/mod/bootstrap/vendor/bootstrap/js/src/scrollspy.js +12 -9
- data/mod/bootstrap/vendor/bootstrap/js/src/tab.js +5 -4
- data/mod/bootstrap/vendor/bootstrap/js/src/tooltip.js +11 -9
- data/mod/bootstrap/vendor/bootstrap/js/src/util.js +2 -3
- data/mod/bootstrap/vendor/bootstrap/js/tests/index.html +4 -4
- data/mod/bootstrap/vendor/bootstrap/js/tests/karma-bundle.conf.js +2 -2
- data/mod/bootstrap/vendor/bootstrap/js/tests/karma.conf.js +7 -2
- data/mod/bootstrap/vendor/bootstrap/js/tests/unit/alert.js +1 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/unit/button.js +1 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/unit/carousel.js +1 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/unit/collapse.js +1 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/unit/dropdown.js +69 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/unit/modal.js +3 -43
- data/mod/bootstrap/vendor/bootstrap/js/tests/unit/popover.js +1 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/unit/scrollspy.js +1 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/unit/tab.js +1 -0
- data/mod/bootstrap/vendor/bootstrap/js/tests/unit/tooltip.js +24 -40
- data/mod/bootstrap/vendor/bootstrap/js/tests/unit/util.js +5 -1
- data/mod/bootstrap/vendor/bootstrap/js/tests/visual/alert.html +1 -1
- data/mod/bootstrap/vendor/bootstrap/js/tests/visual/button.html +1 -1
- data/mod/bootstrap/vendor/bootstrap/js/tests/visual/carousel.html +1 -2
- data/mod/bootstrap/vendor/bootstrap/js/tests/visual/collapse.html +15 -1
- data/mod/bootstrap/vendor/bootstrap/js/tests/visual/dropdown.html +2 -2
- data/mod/bootstrap/vendor/bootstrap/js/tests/visual/modal.html +8 -8
- data/mod/bootstrap/vendor/bootstrap/js/tests/visual/popover.html +2 -2
- data/mod/bootstrap/vendor/bootstrap/js/tests/visual/scrollspy.html +1 -2
- data/mod/bootstrap/vendor/bootstrap/js/tests/visual/tab.html +3 -2
- data/mod/bootstrap/vendor/bootstrap/js/tests/visual/tooltip.html +35 -23
- data/mod/bootstrap/vendor/bootstrap/nuget/bootstrap.nuspec +5 -1
- data/mod/bootstrap/vendor/bootstrap/nuget/bootstrap.sass.nuspec +5 -1
- data/mod/bootstrap/vendor/bootstrap/package-lock.json +5397 -7292
- data/mod/bootstrap/vendor/bootstrap/package.js +1 -1
- data/mod/bootstrap/vendor/bootstrap/package.json +63 -64
- data/mod/bootstrap/vendor/bootstrap/scss/_buttons.scss +0 -1
- data/mod/bootstrap/vendor/bootstrap/scss/_carousel.scss +1 -1
- data/mod/bootstrap/vendor/bootstrap/scss/_close.scss +8 -7
- data/mod/bootstrap/vendor/bootstrap/scss/_custom-forms.scss +32 -20
- data/mod/bootstrap/vendor/bootstrap/scss/_forms.scss +13 -15
- data/mod/bootstrap/vendor/bootstrap/scss/_functions.scss +1 -1
- data/mod/bootstrap/vendor/bootstrap/scss/_input-group.scss +22 -7
- data/mod/bootstrap/vendor/bootstrap/scss/_modal.scss +18 -6
- data/mod/bootstrap/vendor/bootstrap/scss/_navbar.scss +2 -2
- data/mod/bootstrap/vendor/bootstrap/scss/_reboot.scss +5 -2
- data/mod/bootstrap/vendor/bootstrap/scss/_tables.scss +0 -1
- data/mod/bootstrap/vendor/bootstrap/scss/_variables.scss +88 -65
- data/mod/bootstrap/vendor/bootstrap/scss/bootstrap-grid.scss +1 -1
- data/mod/bootstrap/vendor/bootstrap/scss/bootstrap-reboot.scss +1 -1
- data/mod/bootstrap/vendor/bootstrap/scss/bootstrap.scss +1 -1
- data/mod/bootstrap/vendor/bootstrap/scss/mixins/_breakpoints.scss +1 -1
- data/mod/bootstrap/vendor/bootstrap/scss/mixins/_forms.scss +7 -7
- data/mod/bootstrap/vendor/bootstrap/scss/mixins/_hover.scss +1 -1
- data/mod/bootstrap/vendor/bootstrap/{_data → site/_data}/breakpoints.yml +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_data → site/_data}/browser-bugs.yml +5 -5
- data/mod/bootstrap/vendor/bootstrap/{_data → site/_data}/browser-features.yml +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_data → site/_data}/colors.yml +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_data → site/_data}/examples.yml +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_data → site/_data}/grays.yml +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_data → site/_data}/nav.yml +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_data → site/_data}/theme-colors.yml +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_data → site/_data}/translations.yml +0 -0
- data/mod/bootstrap/vendor/bootstrap/site/_includes/ads.html +1 -0
- data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/bugify.html +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/callout-danger-async-methods.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/callout-info-mediaqueries-breakpoints.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/callout-warning-color-assistive-technologies.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/callout.html +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/docs-navbar.html +1 -4
- data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/docs-sidebar.html +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/example.html +0 -0
- data/mod/bootstrap/vendor/bootstrap/site/_includes/favicons.html +9 -0
- data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/footer.html +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/header.html +5 -7
- data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/icons/bootstrap.svg +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/icons/download.svg +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/icons/github.svg +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/icons/import.svg +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/icons/lightning.svg +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/icons/menu.svg +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/icons/slack.svg +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/icons/twitter.svg +0 -0
- data/mod/bootstrap/vendor/bootstrap/site/_includes/scripts.html +26 -0
- data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/skippy.html +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/social.html +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_layouts → site/_layouts}/default.html +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_layouts → site/_layouts}/docs.html +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_layouts → site/_layouts}/examples.html +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_layouts → site/_layouts}/home.html +0 -0
- data/mod/bootstrap/vendor/bootstrap/{_layouts → site/_layouts}/redirect.html +1 -1
- data/mod/bootstrap/vendor/bootstrap/{_layouts → site/_layouts}/simple.html +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/about/brand.md +5 -5
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/about/license.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/about/overview.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/about/translations.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/site/docs/4.1/assets/brand/bootstrap-outline.svg +4 -0
- data/mod/bootstrap/vendor/bootstrap/site/docs/4.1/assets/brand/bootstrap-punchout.svg +4 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/brand/bootstrap-social-logo.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/brand/bootstrap-social.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/site/docs/4.1/assets/brand/bootstrap-solid.svg +4 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/css/docs.min.css +0 -0
- data/mod/bootstrap/vendor/bootstrap/site/docs/4.1/assets/css/docs.min.css.map +1 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/bootstrap-stack.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/bootstrap-themes.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/favicons/android-chrome-192x192.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/favicons/android-chrome-512x512.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/favicons/apple-touch-icon.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/favicons/browserconfig.xml +1 -1
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/favicons/favicon-16x16.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/favicons/favicon-32x32.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/favicons/manifest.json +2 -2
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/favicons/mstile-144x144.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/favicons/mstile-150x150.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/favicons/mstile-310x150.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/favicons/mstile-310x310.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/favicons/mstile-70x70.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/site/docs/4.1/assets/img/favicons/safari-pinned-tab.svg +4 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/js/docs.min.js +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/js/src/application.js +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/js/src/ie-emulation-modes-warning.js +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/js/src/pwa.js +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/js/src/search.js +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/js/vendor/anchor.min.js +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/js/vendor/clipboard.min.js +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/js/vendor/holder.min.js +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/js/vendor/jquery-slim.min.js +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/js/vendor/popper.min.js +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_ads.scss +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_algolia.scss +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_anchor.scss +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_brand.scss +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_browser-bugs.scss +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_buttons.scss +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_callouts.scss +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_clipboard-js.scss +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_colors.scss +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_component-examples.scss +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_content.scss +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_examples.scss +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_footer.scss +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_masthead.scss +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_nav.scss +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_sidebar.scss +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_skiplink.scss +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_syntax.scss +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_variables.scss +0 -0
- data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/docs.scss +3 -3
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/browser-bugs.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/alerts.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/badge.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/breadcrumb.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/button-group.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/buttons.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/card.md +2 -2
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/carousel.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/collapse.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/dropdowns.md +3 -2
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/forms.md +17 -17
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/input-group.md +27 -27
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/jumbotron.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/list-group.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/modal.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/navbar.md +3 -3
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/navs.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/pagination.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/popovers.md +2 -2
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/progress.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/scrollspy.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/tooltips.md +11 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/content/code.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/content/figures.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/content/images.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/content/reboot.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/content/tables.md +16 -5
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/content/typography.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/album/album.css +0 -2
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/album/index.html +15 -15
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/blog/blog.css +0 -5
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/blog/index.html +7 -7
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/carousel/carousel.css +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/carousel/index.html +5 -5
- data/mod/bootstrap/vendor/bootstrap/site/docs/4.1/examples/checkout/form-validation.css +5 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/checkout/index.html +6 -6
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/cover/cover.css +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/cover/index.html +4 -4
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/dashboard/dashboard.css +0 -7
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/dashboard/index.html +4 -4
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/floating-labels/floating-labels.css +23 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/floating-labels/index.html +2 -2
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/grid/grid.css +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/grid/index.html +9 -9
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/index.html +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/jumbotron/index.html +4 -4
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/jumbotron/jumbotron.css +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/navbar-bottom/index.html +4 -4
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/navbar-fixed/index.html +4 -4
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/navbar-fixed/navbar-top-fixed.css +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/navbar-static/index.html +4 -4
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/navbar-static/navbar-top.css +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/navbars/index.html +4 -4
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/navbars/navbar.css +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/offcanvas/index.html +10 -10
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/offcanvas/offcanvas.css +0 -4
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/offcanvas/offcanvas.js +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/pricing/index.html +10 -10
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/pricing/pricing.css +0 -5
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/product/index.html +15 -15
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/product/product.css +0 -5
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/album.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/blog.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/carousel.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/checkout.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/cover.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/dashboard.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/floating-labels.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/grid.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/jumbotron.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/navbar-bottom.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/navbar-fixed.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/navbar-static.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/navbars.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/offcanvas.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/pricing.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/product.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/sign-in.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/starter-template.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/sticky-footer-navbar.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/sticky-footer.png +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/sign-in/index.html +2 -2
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/sign-in/signin.css +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/starter-template/index.html +4 -4
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/starter-template/starter-template.css +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/sticky-footer-navbar/index.html +4 -4
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/sticky-footer-navbar/sticky-footer-navbar.css +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/sticky-footer/index.html +1 -1
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/sticky-footer/sticky-footer.css +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/tooltip-viewport/index.html +4 -4
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/tooltip-viewport/tooltip-viewport.css +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/tooltip-viewport/tooltip-viewport.js +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/extend/approach.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/extend/icons.md +1 -1
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/extend/index.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/getting-started/accessibility.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/getting-started/best-practices.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/getting-started/browsers-devices.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/getting-started/build-tools.md +1 -1
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/getting-started/contents.md +12 -8
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/getting-started/download.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/getting-started/introduction.md +2 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/getting-started/javascript.md +3 -1
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/getting-started/theming.md +16 -16
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/getting-started/webpack.md +1 -6
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/layout/grid.md +1 -1
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/layout/media-object.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/layout/overview.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/layout/utilities-for-layout.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/migration.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/borders.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/clearfix.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/close-icon.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/colors.md +1 -1
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/display.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/embed.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/flex.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/float.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/image-replacement.md +1 -1
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/position.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/screenreaders.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/shadows.md +1 -1
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/sizing.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/spacing.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/text.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/vertical-align.md +0 -0
- data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/visibility.md +1 -1
- data/mod/bootstrap/vendor/bootstrap/{favicon.ico → site/favicon.ico} +0 -0
- data/mod/bootstrap/vendor/bootstrap/{index.html → site/index.html} +2 -2
- data/mod/bootstrap/vendor/bootstrap/{robots.txt → site/robots.txt} +0 -0
- data/mod/bootstrap/vendor/bootstrap/{sw.js → site/sw.js} +1 -1
- data/mod/carrierwave/lib/carrier_wave/file_card_uploader.rb +1 -1
- data/mod/carrierwave/set/abstract/attachment/upload_cache.rb +5 -8
- data/mod/carrierwave/template/type/file/file_chooser.haml +1 -1
- data/mod/core/set/abstract/code_file.rb +4 -0
- data/mod/core/set/all/haml.rb +2 -2
- data/mod/follow/spec/set/all/notify_spec.rb +2 -1
- data/mod/google_analytics/set/all/google_analytics.rb +5 -3
- data/mod/item/set/all/bar.haml +6 -3
- data/mod/item/set/all/bar.rb +27 -12
- data/mod/item/set/all/box.haml +4 -3
- data/mod/item/set/all/box.rb +1 -1
- data/mod/item/set/all/expanded_bar.haml +8 -6
- data/mod/item/spec/set/all/bar_spec.rb +3 -3
- data/mod/machines/lib/javascript/decko_filter.js.coffee +5 -1
- data/mod/machines/lib/stylesheets/style_cards.scss +16 -24
- data/mod/pointer/set/abstract/01_paging.rb +4 -4
- data/mod/pointer/set/abstract/02_pointer/options_api.rb +10 -12
- data/mod/prosemirror_editor/db/migrate_core_cards/20160804112548_add_prosemirror_cards.rb +1 -1
- data/mod/search/set/abstract/search.rb +9 -6
- data/mod/search/set/abstract/wql_search.rb +20 -5
- data/mod/search/set/self/search.rb +1 -1
- data/mod/standard/set/all/error.rb +15 -0
- data/mod/standard/set/all/rich_html/content.rb +30 -21
- data/mod/standard/set/all/rich_html/content/labeled.haml +4 -0
- data/mod/standard/set/all/rich_html/error.rb +11 -12
- data/mod/standard/set/all/rich_html/title.rb +1 -1
- data/mod/standard/spec/content/chunk/include_spec.rb +1 -1
- data/mod/standard/spec/set/all/error_spec.rb +1 -1
- data/mod/standard/spec/set/type/email_template/email_config_spec.rb +10 -9
- data/mod/standard/spec/set/type/uri_spec.rb +7 -7
- data/mod/tinymce_editor/db/migrate_core_cards/20160804112560_add_tinymce_cards.rb +1 -1
- data/mod/utility/set/abstract/bs_badge/labeled_badge.haml +1 -1
- data/mod/utility/set/abstract/media/media_snippet.haml +1 -2
- metadata +231 -230
- data/mod/bootstrap/vendor/bootstrap/_includes/ads.html +0 -1
- data/mod/bootstrap/vendor/bootstrap/_includes/favicons.html +0 -9
- data/mod/bootstrap/vendor/bootstrap/_includes/scripts.html +0 -26
- data/mod/bootstrap/vendor/bootstrap/assets/brand/bootstrap-outline.svg +0 -6
- data/mod/bootstrap/vendor/bootstrap/assets/brand/bootstrap-punchout.svg +0 -6
- data/mod/bootstrap/vendor/bootstrap/assets/brand/bootstrap-solid.svg +0 -6
- data/mod/bootstrap/vendor/bootstrap/assets/css/docs.min.css.map +0 -1
- data/mod/bootstrap/vendor/bootstrap/assets/img/favicons/safari-pinned-tab.svg +0 -20
- data/mod/bootstrap/vendor/bootstrap/build/upload-preview.sh +0 -13
- data/mod/bootstrap/vendor/bootstrap/docs/4.1/examples/checkout/form-validation.css +0 -11
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/collapse.js"],"names":["Collapse","$","NAME","VERSION","DATA_KEY","EVENT_KEY","DATA_API_KEY","JQUERY_NO_CONFLICT","fn","Default","toggle","parent","DefaultType","Event","SHOW","SHOWN","HIDE","HIDDEN","CLICK_DATA_API","ClassName","COLLAPSE","COLLAPSING","COLLAPSED","Dimension","WIDTH","HEIGHT","Selector","ACTIVES","DATA_TOGGLE","element","config","_isTransitioning","_element","_config","_getConfig","_triggerArray","makeArray","id","tabToggles","i","length","elem","selector","Util","getSelectorFromElement","filter","_selector","push","_parent","_getParent","_addAriaAndCollapsedClass","hasClass","hide","show","actives","activesData","find","not","data","startEvent","trigger","isDefaultPrevented","_jQueryInterface","call","dimension","_getDimension","removeClass","addClass","style","attr","setTransitioning","complete","capitalizedDimension","toUpperCase","slice","scrollSize","transitionDuration","getTransitionDurationFromElement","one","TRANSITION_END","emulateTransitionEnd","getBoundingClientRect","reflow","$elem","isTransitioning","dispose","removeData","Boolean","typeCheckConfig","hasWidth","isElement","jquery","each","_getTargetFromElement","triggerArray","isOpen","toggleClass","$this","test","TypeError","document","on","event","currentTarget","tagName","preventDefault","$trigger","$target","Constructor","noConflict"],"mappings":";;;;;;;;AAGA;;;;;;AAOA,IAAMA,WAAY,UAACC,CAAD,EAAO;AACvB;;;;;AAMA,MAAMC,OAAsB,UAA5B;AACA,MAAMC,UAAsB,OAA5B;AACA,MAAMC,WAAsB,aAA5B;AACA,MAAMC,kBAA0BD,QAAhC;AACA,MAAME,eAAsB,WAA5B;AACA,MAAMC,qBAAsBN,EAAEO,EAAF,CAAKN,IAAL,CAA5B;AAEA,MAAMO,UAAU;AACdC,YAAS,IADK;AAEdC,YAAS;AAFK,GAAhB;AAKA,MAAMC,cAAc;AAClBF,YAAS,SADS;AAElBC,YAAS;AAFS,GAApB;AAKA,MAAME,QAAQ;AACZC,mBAAwBT,SADZ;AAEZU,qBAAyBV,SAFb;AAGZW,mBAAwBX,SAHZ;AAIZY,uBAA0BZ,SAJd;AAKZa,8BAAyBb,SAAzB,GAAqCC;AALzB,GAAd;AAQA,MAAMa,YAAY;AAChBL,UAAa,MADG;AAEhBM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M,OAAP;AACD;AA7FoB;;AAAA;AAAA;AAyVvB;;;;;;;AAMAR,IAAEmG,QAAF,EAAYC,EAAZ,CAAexF,MAAMK,cAArB,EAAqCQ,SAASE,WAA9C,EAA2D,UAAU0E,KAAV,EAAiB;AAC1E;AACA,QAAIA,MAAMC,aAAN,CAAoBC,OAApB,KAAgC,GAApC,EAAyC;AACvCF,YAAMG,cAAN;AACD;;AAED,QAAMC,WAAWzG,EAAE,IAAF,CAAjB;AACA,QAAMyC,WAAWC,KAAKC,sBAAL,CAA4B,IAA5B,CAAjB;AACA3C,MAAEyC,QAAF,EAAYkD,IAAZ,CAAiB,YAAY;AAC3B,UAAMe,UAAU1G,EAAE,IAAF,CAAhB;AACA,UAAMyD,OAAUiD,QAAQjD,IAAR,CAAatD,QAAb,CAAhB;AACA,UAAM0B,SAAU4B,OAAO,QAAP,GAAkBgD,SAAShD,IAAT,EAAlC;;AACA1D,eAAS8D,gBAAT,CAA0BC,IAA1B,CAA+B4C,OAA/B,EAAwC7E,MAAxC;AACD,KALD;AAMD,GAdD;AAgBA;;;;;;AAMA7B,IAAEO,EAAF,CAAKN,IAAL,IAAaF,SAAS8D,gBAAtB;AACA7D,IAAEO,EAAF,CAAKN,IAAL,EAAW0G,WAAX,GAAyB5G,QAAzB;;AACAC,IAAEO,EAAF,CAAKN,IAAL,EAAW2G,UAAX,GAAwB,YAAY;AAClC5G,MAAEO,EAAF,CAAKN,IAAL,IAAaK,kBAAb;AACA,WAAOP,SAAS8D,gBAAhB;AACD,GAHD;;AAKA,SAAO9D,QAAP;AACD,CA7XgB,CA6XdC,CA7Xc,CAAjB","sourcesContent":["import $ from 'jquery'\nimport Util from './util'\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.1.1): collapse.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst Collapse = (($) => {\n /**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\n const NAME = 'collapse'\n const VERSION = '4.1.1'\n const DATA_KEY = 'bs.collapse'\n const EVENT_KEY = `.${DATA_KEY}`\n const DATA_API_KEY = '.data-api'\n const JQUERY_NO_CONFLICT = $.fn[NAME]\n\n const Default = {\n toggle : true,\n parent : ''\n }\n\n const DefaultType = {\n toggle : 'boolean',\n parent : '(string|element)'\n }\n\n const Event = {\n SHOW : `show${EVENT_KEY}`,\n SHOWN : `shown${EVENT_KEY}`,\n HIDE : `hide${EVENT_KEY}`,\n HIDDEN : `hidden${EVENT_KEY}`,\n CLICK_DATA_API : `click${EVENT_KEY}${DATA_API_KEY}`\n }\n\n const ClassName = {\n SHOW : 'show',\n COLLAPSE : 'collapse',\n COLLAPSING : 'collapsing',\n COLLAPSED : 'collapsed'\n }\n\n const Dimension = {\n WIDTH : 'width',\n HEIGHT : 'height'\n }\n\n const Selector = {\n ACTIVES : '.show, .collapsing',\n DATA_TOGGLE : '[data-toggle=\"collapse\"]'\n }\n\n /**\n * ------------------------------------------------------------------------\n * Class Definition\n * ------------------------------------------------------------------------\n */\n\n class Collapse {\n constructor(element, config) {\n this._isTransitioning = false\n this._element = element\n this._config = this._getConfig(config)\n this._triggerArray = $.makeArray($(\n `[data-toggle=\"collapse\"][href=\"#${element.id}\"],` +\n `[data-toggle=\"collapse\"][data-target=\"#${element.id}\"]`\n ))\n const tabToggles = $(Selector.DATA_TOGGLE)\n for (let i = 0; i < tabToggles.length; i++) {\n const elem = tabToggles[i]\n const selector = Util.getSelectorFromElement(elem)\n if (selector !== null && $(selector).filter(element).length > 0) {\n this._selector = selector\n this._triggerArray.push(elem)\n }\n }\n\n this._parent = this._config.parent ? this._getParent() : null\n\n if (!this._config.parent) {\n this._addAriaAndCollapsedClass(this._element, this._triggerArray)\n }\n\n if (this._config.toggle) {\n this.toggle()\n }\n }\n\n // Getters\n\n static get VERSION() {\n return VERSION\n }\n\n static get Default() {\n return Default\n }\n\n // Public\n\n toggle() {\n if ($(this._element).hasClass(ClassName.SHOW)) {\n this.hide()\n } else {\n this.show()\n }\n }\n\n show() {\n if (this._isTransitioning ||\n $(this._element).hasClass(ClassName.SHOW)) {\n return\n }\n\n let actives\n let activesData\n\n if (this._parent) {\n actives = $.makeArray(\n $(this._parent)\n .find(Selector.ACTIVES)\n .filter(`[data-parent=\"${this._config.parent}\"]`)\n )\n if (actives.length === 0) {\n actives = null\n }\n }\n\n if (actives) {\n activesData = $(actives).not(this._selector).data(DATA_KEY)\n if (activesData && activesData._isTransitioning) {\n return\n }\n }\n\n const startEvent = $.Event(Event.SHOW)\n $(this._element).trigger(startEvent)\n if (startEvent.isDefaultPrevented()) {\n return\n }\n\n if (actives) {\n Collapse._jQueryInterface.call($(actives).not(this._selector), 'hide')\n if (!activesData) {\n $(actives).data(DATA_KEY, null)\n }\n }\n\n const dimension = this._getDimension()\n\n $(this._element)\n .removeClass(ClassName.COLLAPSE)\n .addClass(ClassName.COLLAPSING)\n\n this._element.style[dimension] = 0\n\n if (this._triggerArray.length > 0) {\n $(this._triggerArray)\n .removeClass(ClassName.COLLAPSED)\n .attr('aria-expanded', true)\n }\n\n this.setTransitioning(true)\n\n const complete = () => {\n $(this._element)\n .removeClass(ClassName.COLLAPSING)\n .addClass(ClassName.COLLAPSE)\n .addClass(ClassName.SHOW)\n\n this._element.style[dimension] = ''\n\n this.setTransitioning(false)\n\n $(this._element).trigger(Event.SHOWN)\n }\n\n const capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1)\n const scrollSize = `scroll${capitalizedDimension}`\n const transitionDuration = Util.getTransitionDurationFromElement(this._element)\n\n $(this._element)\n .one(Util.TRANSITION_END, complete)\n .emulateTransitionEnd(transitionDuration)\n\n this._element.style[dimension] = `${this._element[scrollSize]}px`\n }\n\n hide() {\n if (this._isTransitioning ||\n !$(this._element).hasClass(ClassName.SHOW)) {\n return\n }\n\n const startEvent = $.Event(Event.HIDE)\n $(this._element).trigger(startEvent)\n if (startEvent.isDefaultPrevented()) {\n return\n }\n\n const dimension = this._getDimension()\n\n this._element.style[dimension] = `${this._element.getBoundingClientRect()[dimension]}px`\n\n Util.reflow(this._element)\n\n $(this._element)\n .addClass(ClassName.COLLAPSING)\n .removeClass(ClassName.COLLAPSE)\n .removeClass(ClassName.SHOW)\n\n if (this._triggerArray.length > 0) {\n for (let i = 0; i < this._triggerArray.length; i++) {\n const trigger = this._triggerArray[i]\n const selector = Util.getSelectorFromElement(trigger)\n if (selector !== null) {\n const $elem = $(selector)\n if (!$elem.hasClass(ClassName.SHOW)) {\n $(trigger).addClass(ClassName.COLLAPSED)\n .attr('aria-expanded', false)\n }\n }\n }\n }\n\n this.setTransitioning(true)\n\n const complete = () => {\n this.setTransitioning(false)\n $(this._element)\n .removeClass(ClassName.COLLAPSING)\n .addClass(ClassName.COLLAPSE)\n .trigger(Event.HIDDEN)\n }\n\n this._element.style[dimension] = ''\n const transitionDuration = Util.getTransitionDurationFromElement(this._element)\n\n $(this._element)\n .one(Util.TRANSITION_END, complete)\n .emulateTransitionEnd(transitionDuration)\n }\n\n setTransitioning(isTransitioning) {\n this._isTransitioning = isTransitioning\n }\n\n dispose() {\n $.removeData(this._element, DATA_KEY)\n\n this._config = null\n this._parent = null\n this._element = null\n this._triggerArray = null\n this._isTransitioning = null\n }\n\n // Private\n\n _getConfig(config) {\n config = {\n ...Default,\n ...config\n }\n config.toggle = Boolean(config.toggle) // Coerce string values\n Util.typeCheckConfig(NAME, config, DefaultType)\n return config\n }\n\n _getDimension() {\n const hasWidth = $(this._element).hasClass(Dimension.WIDTH)\n return hasWidth ? Dimension.WIDTH : Dimension.HEIGHT\n }\n\n _getParent() {\n let parent = null\n if (Util.isElement(this._config.parent)) {\n parent = this._config.parent\n\n // It's a jQuery object\n if (typeof this._config.parent.jquery !== 'undefined') {\n parent = this._config.parent[0]\n }\n } else {\n parent = $(this._config.parent)[0]\n }\n\n const selector =\n `[data-toggle=\"collapse\"][data-parent=\"${this._config.parent}\"]`\n\n $(parent).find(selector).each((i, element) => {\n this._addAriaAndCollapsedClass(\n Collapse._getTargetFromElement(element),\n [element]\n )\n })\n\n return parent\n }\n\n _addAriaAndCollapsedClass(element, triggerArray) {\n if (element) {\n const isOpen = $(element).hasClass(ClassName.SHOW)\n\n if (triggerArray.length > 0) {\n $(triggerArray)\n .toggleClass(ClassName.COLLAPSED, !isOpen)\n .attr('aria-expanded', isOpen)\n }\n }\n }\n\n // Static\n\n static _getTargetFromElement(element) {\n const selector = Util.getSelectorFromElement(element)\n return selector ? $(selector)[0] : null\n }\n\n static _jQueryInterface(config) {\n return this.each(function () {\n const $this = $(this)\n let data = $this.data(DATA_KEY)\n const _config = {\n ...Default,\n ...$this.data(),\n ...typeof config === 'object' && config ? config : {}\n }\n\n if (!data && _config.toggle && /show|hide/.test(config)) {\n _config.toggle = false\n }\n\n if (!data) {\n data = new Collapse(this, _config)\n $this.data(DATA_KEY, data)\n }\n\n if (typeof config === 'string') {\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`)\n }\n data[config]()\n }\n })\n }\n }\n\n /**\n * ------------------------------------------------------------------------\n * Data Api implementation\n * ------------------------------------------------------------------------\n */\n\n $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {\n // preventDefault only for <a> elements (which change the URL) not inside the collapsible element\n if (event.currentTarget.tagName === 'A') {\n event.preventDefault()\n }\n\n const $trigger = $(this)\n const selector = Util.getSelectorFromElement(this)\n $(selector).each(function () {\n const $target = $(this)\n const data = $target.data(DATA_KEY)\n const config = data ? 'toggle' : $trigger.data()\n Collapse._jQueryInterface.call($target, config)\n })\n })\n\n /**\n * ------------------------------------------------------------------------\n * jQuery\n * ------------------------------------------------------------------------\n */\n\n $.fn[NAME] = Collapse._jQueryInterface\n $.fn[NAME].Constructor = Collapse\n $.fn[NAME].noConflict = function () {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return Collapse._jQueryInterface\n }\n\n return Collapse\n})($)\n\nexport default Collapse\n"],"file":"collapse.js"}
|
1
|
+
{"version":3,"file":"collapse.js","sources":["../src/collapse.js"],"sourcesContent":["import $ from 'jquery'\nimport Util from './util'\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.1.3): collapse.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst Collapse = (($) => {\n /**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\n const NAME = 'collapse'\n const VERSION = '4.1.3'\n const DATA_KEY = 'bs.collapse'\n const EVENT_KEY = `.${DATA_KEY}`\n const DATA_API_KEY = '.data-api'\n const JQUERY_NO_CONFLICT = $.fn[NAME]\n\n const Default = {\n toggle : true,\n parent : ''\n }\n\n const DefaultType = {\n toggle : 'boolean',\n parent : '(string|element)'\n }\n\n const Event = {\n SHOW : `show${EVENT_KEY}`,\n SHOWN : `shown${EVENT_KEY}`,\n HIDE : `hide${EVENT_KEY}`,\n HIDDEN : `hidden${EVENT_KEY}`,\n CLICK_DATA_API : `click${EVENT_KEY}${DATA_API_KEY}`\n }\n\n const ClassName = {\n SHOW : 'show',\n COLLAPSE : 'collapse',\n COLLAPSING : 'collapsing',\n COLLAPSED : 'collapsed'\n }\n\n const Dimension = {\n WIDTH : 'width',\n HEIGHT : 'height'\n }\n\n const Selector = {\n ACTIVES : '.show, .collapsing',\n DATA_TOGGLE : '[data-toggle=\"collapse\"]'\n }\n\n /**\n * ------------------------------------------------------------------------\n * Class Definition\n * ------------------------------------------------------------------------\n */\n\n class Collapse {\n constructor(element, config) {\n this._isTransitioning = false\n this._element = element\n this._config = this._getConfig(config)\n this._triggerArray = $.makeArray(document.querySelectorAll(\n `[data-toggle=\"collapse\"][href=\"#${element.id}\"],` +\n `[data-toggle=\"collapse\"][data-target=\"#${element.id}\"]`\n ))\n const toggleList = [].slice.call(document.querySelectorAll(Selector.DATA_TOGGLE))\n for (let i = 0, len = toggleList.length; i < len; i++) {\n const elem = toggleList[i]\n const selector = Util.getSelectorFromElement(elem)\n const filterElement = [].slice.call(document.querySelectorAll(selector))\n .filter((foundElem) => foundElem === element)\n\n if (selector !== null && filterElement.length > 0) {\n this._selector = selector\n this._triggerArray.push(elem)\n }\n }\n\n this._parent = this._config.parent ? this._getParent() : null\n\n if (!this._config.parent) {\n this._addAriaAndCollapsedClass(this._element, this._triggerArray)\n }\n\n if (this._config.toggle) {\n this.toggle()\n }\n }\n\n // Getters\n\n static get VERSION() {\n return VERSION\n }\n\n static get Default() {\n return Default\n }\n\n // Public\n\n toggle() {\n if ($(this._element).hasClass(ClassName.SHOW)) {\n this.hide()\n } else {\n this.show()\n }\n }\n\n show() {\n if (this._isTransitioning ||\n $(this._element).hasClass(ClassName.SHOW)) {\n return\n }\n\n let actives\n let activesData\n\n if (this._parent) {\n actives = [].slice.call(this._parent.querySelectorAll(Selector.ACTIVES))\n .filter((elem) => elem.getAttribute('data-parent') === this._config.parent)\n\n if (actives.length === 0) {\n actives = null\n }\n }\n\n if (actives) {\n activesData = $(actives).not(this._selector).data(DATA_KEY)\n if (activesData && activesData._isTransitioning) {\n return\n }\n }\n\n const startEvent = $.Event(Event.SHOW)\n $(this._element).trigger(startEvent)\n if (startEvent.isDefaultPrevented()) {\n return\n }\n\n if (actives) {\n Collapse._jQueryInterface.call($(actives).not(this._selector), 'hide')\n if (!activesData) {\n $(actives).data(DATA_KEY, null)\n }\n }\n\n const dimension = this._getDimension()\n\n $(this._element)\n .removeClass(ClassName.COLLAPSE)\n .addClass(ClassName.COLLAPSING)\n\n this._element.style[dimension] = 0\n\n if (this._triggerArray.length) {\n $(this._triggerArray)\n .removeClass(ClassName.COLLAPSED)\n .attr('aria-expanded', true)\n }\n\n this.setTransitioning(true)\n\n const complete = () => {\n $(this._element)\n .removeClass(ClassName.COLLAPSING)\n .addClass(ClassName.COLLAPSE)\n .addClass(ClassName.SHOW)\n\n this._element.style[dimension] = ''\n\n this.setTransitioning(false)\n\n $(this._element).trigger(Event.SHOWN)\n }\n\n const capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1)\n const scrollSize = `scroll${capitalizedDimension}`\n const transitionDuration = Util.getTransitionDurationFromElement(this._element)\n\n $(this._element)\n .one(Util.TRANSITION_END, complete)\n .emulateTransitionEnd(transitionDuration)\n\n this._element.style[dimension] = `${this._element[scrollSize]}px`\n }\n\n hide() {\n if (this._isTransitioning ||\n !$(this._element).hasClass(ClassName.SHOW)) {\n return\n }\n\n const startEvent = $.Event(Event.HIDE)\n $(this._element).trigger(startEvent)\n if (startEvent.isDefaultPrevented()) {\n return\n }\n\n const dimension = this._getDimension()\n\n this._element.style[dimension] = `${this._element.getBoundingClientRect()[dimension]}px`\n\n Util.reflow(this._element)\n\n $(this._element)\n .addClass(ClassName.COLLAPSING)\n .removeClass(ClassName.COLLAPSE)\n .removeClass(ClassName.SHOW)\n\n const triggerArrayLength = this._triggerArray.length\n if (triggerArrayLength > 0) {\n for (let i = 0; i < triggerArrayLength; i++) {\n const trigger = this._triggerArray[i]\n const selector = Util.getSelectorFromElement(trigger)\n if (selector !== null) {\n const $elem = $([].slice.call(document.querySelectorAll(selector)))\n if (!$elem.hasClass(ClassName.SHOW)) {\n $(trigger).addClass(ClassName.COLLAPSED)\n .attr('aria-expanded', false)\n }\n }\n }\n }\n\n this.setTransitioning(true)\n\n const complete = () => {\n this.setTransitioning(false)\n $(this._element)\n .removeClass(ClassName.COLLAPSING)\n .addClass(ClassName.COLLAPSE)\n .trigger(Event.HIDDEN)\n }\n\n this._element.style[dimension] = ''\n const transitionDuration = Util.getTransitionDurationFromElement(this._element)\n\n $(this._element)\n .one(Util.TRANSITION_END, complete)\n .emulateTransitionEnd(transitionDuration)\n }\n\n setTransitioning(isTransitioning) {\n this._isTransitioning = isTransitioning\n }\n\n dispose() {\n $.removeData(this._element, DATA_KEY)\n\n this._config = null\n this._parent = null\n this._element = null\n this._triggerArray = null\n this._isTransitioning = null\n }\n\n // Private\n\n _getConfig(config) {\n config = {\n ...Default,\n ...config\n }\n config.toggle = Boolean(config.toggle) // Coerce string values\n Util.typeCheckConfig(NAME, config, DefaultType)\n return config\n }\n\n _getDimension() {\n const hasWidth = $(this._element).hasClass(Dimension.WIDTH)\n return hasWidth ? Dimension.WIDTH : Dimension.HEIGHT\n }\n\n _getParent() {\n let parent = null\n if (Util.isElement(this._config.parent)) {\n parent = this._config.parent\n\n // It's a jQuery object\n if (typeof this._config.parent.jquery !== 'undefined') {\n parent = this._config.parent[0]\n }\n } else {\n parent = document.querySelector(this._config.parent)\n }\n\n const selector =\n `[data-toggle=\"collapse\"][data-parent=\"${this._config.parent}\"]`\n\n const children = [].slice.call(parent.querySelectorAll(selector))\n $(children).each((i, element) => {\n this._addAriaAndCollapsedClass(\n Collapse._getTargetFromElement(element),\n [element]\n )\n })\n\n return parent\n }\n\n _addAriaAndCollapsedClass(element, triggerArray) {\n if (element) {\n const isOpen = $(element).hasClass(ClassName.SHOW)\n\n if (triggerArray.length) {\n $(triggerArray)\n .toggleClass(ClassName.COLLAPSED, !isOpen)\n .attr('aria-expanded', isOpen)\n }\n }\n }\n\n // Static\n\n static _getTargetFromElement(element) {\n const selector = Util.getSelectorFromElement(element)\n return selector ? document.querySelector(selector) : null\n }\n\n static _jQueryInterface(config) {\n return this.each(function () {\n const $this = $(this)\n let data = $this.data(DATA_KEY)\n const _config = {\n ...Default,\n ...$this.data(),\n ...typeof config === 'object' && config ? config : {}\n }\n\n if (!data && _config.toggle && /show|hide/.test(config)) {\n _config.toggle = false\n }\n\n if (!data) {\n data = new Collapse(this, _config)\n $this.data(DATA_KEY, data)\n }\n\n if (typeof config === 'string') {\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`)\n }\n data[config]()\n }\n })\n }\n }\n\n /**\n * ------------------------------------------------------------------------\n * Data Api implementation\n * ------------------------------------------------------------------------\n */\n\n $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {\n // preventDefault only for <a> elements (which change the URL) not inside the collapsible element\n if (event.currentTarget.tagName === 'A') {\n event.preventDefault()\n }\n\n const $trigger = $(this)\n const selector = Util.getSelectorFromElement(this)\n const selectors = [].slice.call(document.querySelectorAll(selector))\n $(selectors).each(function () {\n const $target = $(this)\n const data = $target.data(DATA_KEY)\n const config = data ? 'toggle' : $trigger.data()\n Collapse._jQueryInterface.call($target, config)\n })\n })\n\n /**\n * ------------------------------------------------------------------------\n * jQuery\n * ------------------------------------------------------------------------\n */\n\n $.fn[NAME] = Collapse._jQueryInterface\n $.fn[NAME].Constructor = Collapse\n $.fn[NAME].noConflict = function () {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return Collapse._jQueryInterface\n }\n\n return Collapse\n})($)\n\nexport default Collapse\n"],"names":["Collapse","$","NAME","VERSION","DATA_KEY","EVENT_KEY","DATA_API_KEY","JQUERY_NO_CONFLICT","fn","Default","toggle","parent","DefaultType","Event","SHOW","SHOWN","HIDE","HIDDEN","CLICK_DATA_API","ClassName","COLLAPSE","COLLAPSING","COLLAPSED","Dimension","WIDTH","HEIGHT","Selector","ACTIVES","DATA_TOGGLE","element","config","_isTransitioning","_element","_config","_getConfig","_triggerArray","makeArray","document","querySelectorAll","id","toggleList","slice","call","i","len","length","elem","selector","Util","getSelectorFromElement","filterElement","filter","foundElem","_selector","push","_parent","_getParent","_addAriaAndCollapsedClass","hasClass","hide","show","actives","activesData","getAttribute","not","data","startEvent","trigger","isDefaultPrevented","_jQueryInterface","dimension","_getDimension","removeClass","addClass","style","attr","setTransitioning","complete","capitalizedDimension","toUpperCase","scrollSize","transitionDuration","getTransitionDurationFromElement","one","TRANSITION_END","emulateTransitionEnd","getBoundingClientRect","reflow","triggerArrayLength","$elem","isTransitioning","dispose","removeData","Boolean","typeCheckConfig","hasWidth","isElement","jquery","querySelector","children","each","_getTargetFromElement","triggerArray","isOpen","toggleClass","$this","test","TypeError","on","event","currentTarget","tagName","preventDefault","$trigger","selectors","$target","Constructor","noConflict"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ED,QAAMC,WAAWhH,KAAE,IAAF,CAAjB;EACA,QAAM8C,WAAWC,KAAKC,sBAAL,CAA4B,IAA5B,CAAjB;EACA,QAAMiE,YAAY,GAAGzE,KAAH,CAASC,IAAT,CAAcL,SAASC,gBAAT,CAA0BS,QAA1B,CAAd,CAAlB;EACA9C,SAAEiH,SAAF,EAAad,IAAb,CAAkB,YAAY;EAC5B,UAAMe,UAAUlH,KAAE,IAAF,CAAhB;EACA,UAAMgE,OAAUkD,QAAQlD,IAAR,CAAa7D,QAAb,CAAhB;EACA,UAAM0B,SAAUmC,OAAO,QAAP,GAAkBgD,SAAShD,IAAT,EAAlC;;EACAjE,eAASqE,gBAAT,CAA0B3B,IAA1B,CAA+ByE,OAA/B,EAAwCrF,MAAxC;EACD,KALD;EAMD,GAfD;EAiBA;;;;;;EAMA7B,OAAEO,EAAF,CAAKN,IAAL,IAAaF,SAASqE,gBAAtB;EACApE,OAAEO,EAAF,CAAKN,IAAL,EAAWkH,WAAX,GAAyBpH,QAAzB;;EACAC,OAAEO,EAAF,CAAKN,IAAL,EAAWmH,UAAX,GAAwB,YAAY;EAClCpH,SAAEO,EAAF,CAAKN,IAAL,IAAaK,kBAAb;EACA,WAAOP,SAASqE,gBAAhB;EACD,GAHD;;EAKA,SAAOrE,QAAP;EACD,CAjYgB,CAiYdC,CAjYc,CAAjB;;;;;;;;"}
|
@@ -1,489 +1,552 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
(function (global, factory) {
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery'), require('popper.js'), require('./util.js')) :
|
3
|
+
typeof define === 'function' && define.amd ? define(['jquery', 'popper.js', './util.js'], factory) :
|
4
|
+
(global.Dropdown = factory(global.jQuery,global.Popper,global.Util));
|
5
|
+
}(this, (function ($,Popper,Util) { 'use strict';
|
6
|
+
|
7
|
+
$ = $ && $.hasOwnProperty('default') ? $['default'] : $;
|
8
|
+
Popper = Popper && Popper.hasOwnProperty('default') ? Popper['default'] : Popper;
|
9
|
+
Util = Util && Util.hasOwnProperty('default') ? Util['default'] : Util;
|
10
|
+
|
11
|
+
function _defineProperties(target, props) {
|
12
|
+
for (var i = 0; i < props.length; i++) {
|
13
|
+
var descriptor = props[i];
|
14
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
15
|
+
descriptor.configurable = true;
|
16
|
+
if ("value" in descriptor) descriptor.writable = true;
|
17
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
22
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
23
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
24
|
+
return Constructor;
|
25
|
+
}
|
26
|
+
|
27
|
+
function _defineProperty(obj, key, value) {
|
28
|
+
if (key in obj) {
|
29
|
+
Object.defineProperty(obj, key, {
|
30
|
+
value: value,
|
31
|
+
enumerable: true,
|
32
|
+
configurable: true,
|
33
|
+
writable: true
|
34
|
+
});
|
35
|
+
} else {
|
36
|
+
obj[key] = value;
|
37
|
+
}
|
38
|
+
|
39
|
+
return obj;
|
40
|
+
}
|
41
|
+
|
42
|
+
function _objectSpread(target) {
|
43
|
+
for (var i = 1; i < arguments.length; i++) {
|
44
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
45
|
+
var ownKeys = Object.keys(source);
|
46
|
+
|
47
|
+
if (typeof Object.getOwnPropertySymbols === 'function') {
|
48
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
|
49
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
50
|
+
}));
|
51
|
+
}
|
4
52
|
|
5
|
-
|
53
|
+
ownKeys.forEach(function (key) {
|
54
|
+
_defineProperty(target, key, source[key]);
|
55
|
+
});
|
56
|
+
}
|
6
57
|
|
7
|
-
|
58
|
+
return target;
|
59
|
+
}
|
8
60
|
|
9
|
-
/**
|
10
|
-
* --------------------------------------------------------------------------
|
11
|
-
* Bootstrap (v4.1.1): dropdown.js
|
12
|
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
13
|
-
* --------------------------------------------------------------------------
|
14
|
-
*/
|
15
|
-
var Dropdown = function ($) {
|
16
61
|
/**
|
17
|
-
*
|
18
|
-
*
|
19
|
-
*
|
62
|
+
* --------------------------------------------------------------------------
|
63
|
+
* Bootstrap (v4.1.3): dropdown.js
|
64
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
65
|
+
* --------------------------------------------------------------------------
|
20
66
|
*/
|
21
|
-
|
22
|
-
var
|
23
|
-
var DATA_KEY = 'bs.dropdown';
|
24
|
-
var EVENT_KEY = "." + DATA_KEY;
|
25
|
-
var DATA_API_KEY = '.data-api';
|
26
|
-
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
27
|
-
var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
|
28
|
-
|
29
|
-
var SPACE_KEYCODE = 32; // KeyboardEvent.which value for space key
|
30
|
-
|
31
|
-
var TAB_KEYCODE = 9; // KeyboardEvent.which value for tab key
|
32
|
-
|
33
|
-
var ARROW_UP_KEYCODE = 38; // KeyboardEvent.which value for up arrow key
|
34
|
-
|
35
|
-
var ARROW_DOWN_KEYCODE = 40; // KeyboardEvent.which value for down arrow key
|
36
|
-
|
37
|
-
var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse)
|
38
|
-
|
39
|
-
var REGEXP_KEYDOWN = new RegExp(ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE);
|
40
|
-
var Event = {
|
41
|
-
HIDE: "hide" + EVENT_KEY,
|
42
|
-
HIDDEN: "hidden" + EVENT_KEY,
|
43
|
-
SHOW: "show" + EVENT_KEY,
|
44
|
-
SHOWN: "shown" + EVENT_KEY,
|
45
|
-
CLICK: "click" + EVENT_KEY,
|
46
|
-
CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY,
|
47
|
-
KEYDOWN_DATA_API: "keydown" + EVENT_KEY + DATA_API_KEY,
|
48
|
-
KEYUP_DATA_API: "keyup" + EVENT_KEY + DATA_API_KEY
|
49
|
-
};
|
50
|
-
var ClassName = {
|
51
|
-
DISABLED: 'disabled',
|
52
|
-
SHOW: 'show',
|
53
|
-
DROPUP: 'dropup',
|
54
|
-
DROPRIGHT: 'dropright',
|
55
|
-
DROPLEFT: 'dropleft',
|
56
|
-
MENURIGHT: 'dropdown-menu-right',
|
57
|
-
MENULEFT: 'dropdown-menu-left',
|
58
|
-
POSITION_STATIC: 'position-static'
|
59
|
-
};
|
60
|
-
var Selector = {
|
61
|
-
DATA_TOGGLE: '[data-toggle="dropdown"]',
|
62
|
-
FORM_CHILD: '.dropdown form',
|
63
|
-
MENU: '.dropdown-menu',
|
64
|
-
NAVBAR_NAV: '.navbar-nav',
|
65
|
-
VISIBLE_ITEMS: '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)'
|
66
|
-
};
|
67
|
-
var AttachmentMap = {
|
68
|
-
TOP: 'top-start',
|
69
|
-
TOPEND: 'top-end',
|
70
|
-
BOTTOM: 'bottom-start',
|
71
|
-
BOTTOMEND: 'bottom-end',
|
72
|
-
RIGHT: 'right-start',
|
73
|
-
RIGHTEND: 'right-end',
|
74
|
-
LEFT: 'left-start',
|
75
|
-
LEFTEND: 'left-end'
|
76
|
-
};
|
77
|
-
var Default = {
|
78
|
-
offset: 0,
|
79
|
-
flip: true,
|
80
|
-
boundary: 'scrollParent',
|
81
|
-
reference: 'toggle',
|
82
|
-
display: 'dynamic'
|
83
|
-
};
|
84
|
-
var DefaultType = {
|
85
|
-
offset: '(number|string|function)',
|
86
|
-
flip: 'boolean',
|
87
|
-
boundary: '(string|element)',
|
88
|
-
reference: '(string|element)',
|
89
|
-
display: 'string'
|
67
|
+
|
68
|
+
var Dropdown = function ($$$1) {
|
90
69
|
/**
|
91
70
|
* ------------------------------------------------------------------------
|
92
|
-
*
|
71
|
+
* Constants
|
93
72
|
* ------------------------------------------------------------------------
|
94
73
|
*/
|
74
|
+
var NAME = 'dropdown';
|
75
|
+
var VERSION = '4.1.3';
|
76
|
+
var DATA_KEY = 'bs.dropdown';
|
77
|
+
var EVENT_KEY = "." + DATA_KEY;
|
78
|
+
var DATA_API_KEY = '.data-api';
|
79
|
+
var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
|
80
|
+
var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
|
81
|
+
|
82
|
+
var SPACE_KEYCODE = 32; // KeyboardEvent.which value for space key
|
83
|
+
|
84
|
+
var TAB_KEYCODE = 9; // KeyboardEvent.which value for tab key
|
85
|
+
|
86
|
+
var ARROW_UP_KEYCODE = 38; // KeyboardEvent.which value for up arrow key
|
87
|
+
|
88
|
+
var ARROW_DOWN_KEYCODE = 40; // KeyboardEvent.which value for down arrow key
|
89
|
+
|
90
|
+
var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse)
|
91
|
+
|
92
|
+
var REGEXP_KEYDOWN = new RegExp(ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE);
|
93
|
+
var Event = {
|
94
|
+
HIDE: "hide" + EVENT_KEY,
|
95
|
+
HIDDEN: "hidden" + EVENT_KEY,
|
96
|
+
SHOW: "show" + EVENT_KEY,
|
97
|
+
SHOWN: "shown" + EVENT_KEY,
|
98
|
+
CLICK: "click" + EVENT_KEY,
|
99
|
+
CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY,
|
100
|
+
KEYDOWN_DATA_API: "keydown" + EVENT_KEY + DATA_API_KEY,
|
101
|
+
KEYUP_DATA_API: "keyup" + EVENT_KEY + DATA_API_KEY
|
102
|
+
};
|
103
|
+
var ClassName = {
|
104
|
+
DISABLED: 'disabled',
|
105
|
+
SHOW: 'show',
|
106
|
+
DROPUP: 'dropup',
|
107
|
+
DROPRIGHT: 'dropright',
|
108
|
+
DROPLEFT: 'dropleft',
|
109
|
+
MENURIGHT: 'dropdown-menu-right',
|
110
|
+
MENULEFT: 'dropdown-menu-left',
|
111
|
+
POSITION_STATIC: 'position-static'
|
112
|
+
};
|
113
|
+
var Selector = {
|
114
|
+
DATA_TOGGLE: '[data-toggle="dropdown"]',
|
115
|
+
FORM_CHILD: '.dropdown form',
|
116
|
+
MENU: '.dropdown-menu',
|
117
|
+
NAVBAR_NAV: '.navbar-nav',
|
118
|
+
VISIBLE_ITEMS: '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)'
|
119
|
+
};
|
120
|
+
var AttachmentMap = {
|
121
|
+
TOP: 'top-start',
|
122
|
+
TOPEND: 'top-end',
|
123
|
+
BOTTOM: 'bottom-start',
|
124
|
+
BOTTOMEND: 'bottom-end',
|
125
|
+
RIGHT: 'right-start',
|
126
|
+
RIGHTEND: 'right-end',
|
127
|
+
LEFT: 'left-start',
|
128
|
+
LEFTEND: 'left-end'
|
129
|
+
};
|
130
|
+
var Default = {
|
131
|
+
offset: 0,
|
132
|
+
flip: true,
|
133
|
+
boundary: 'scrollParent',
|
134
|
+
reference: 'toggle',
|
135
|
+
display: 'dynamic'
|
136
|
+
};
|
137
|
+
var DefaultType = {
|
138
|
+
offset: '(number|string|function)',
|
139
|
+
flip: 'boolean',
|
140
|
+
boundary: '(string|element)',
|
141
|
+
reference: '(string|element)',
|
142
|
+
display: 'string'
|
143
|
+
/**
|
144
|
+
* ------------------------------------------------------------------------
|
145
|
+
* Class Definition
|
146
|
+
* ------------------------------------------------------------------------
|
147
|
+
*/
|
95
148
|
|
96
|
-
|
149
|
+
};
|
97
150
|
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
151
|
+
var Dropdown =
|
152
|
+
/*#__PURE__*/
|
153
|
+
function () {
|
154
|
+
function Dropdown(element, config) {
|
155
|
+
this._element = element;
|
156
|
+
this._popper = null;
|
157
|
+
this._config = this._getConfig(config);
|
158
|
+
this._menu = this._getMenuElement();
|
159
|
+
this._inNavbar = this._detectNavbar();
|
107
160
|
|
108
|
-
|
109
|
-
|
161
|
+
this._addEventListeners();
|
162
|
+
} // Getters
|
110
163
|
|
111
164
|
|
112
|
-
|
165
|
+
var _proto = Dropdown.prototype;
|
113
166
|
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
167
|
+
// Public
|
168
|
+
_proto.toggle = function toggle() {
|
169
|
+
if (this._element.disabled || $$$1(this._element).hasClass(ClassName.DISABLED)) {
|
170
|
+
return;
|
171
|
+
}
|
119
172
|
|
120
|
-
|
173
|
+
var parent = Dropdown._getParentFromElement(this._element);
|
121
174
|
|
122
|
-
|
175
|
+
var isActive = $$$1(this._menu).hasClass(ClassName.SHOW);
|
123
176
|
|
124
|
-
|
177
|
+
Dropdown._clearMenus();
|
125
178
|
|
126
|
-
|
127
|
-
|
128
|
-
|
179
|
+
if (isActive) {
|
180
|
+
return;
|
181
|
+
}
|
129
182
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
183
|
+
var relatedTarget = {
|
184
|
+
relatedTarget: this._element
|
185
|
+
};
|
186
|
+
var showEvent = $$$1.Event(Event.SHOW, relatedTarget);
|
187
|
+
$$$1(parent).trigger(showEvent);
|
135
188
|
|
136
|
-
|
137
|
-
|
138
|
-
|
189
|
+
if (showEvent.isDefaultPrevented()) {
|
190
|
+
return;
|
191
|
+
} // Disable totally Popper.js for Dropdown in Navbar
|
139
192
|
|
140
193
|
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
194
|
+
if (!this._inNavbar) {
|
195
|
+
/**
|
196
|
+
* Check for Popper dependency
|
197
|
+
* Popper - https://popper.js.org
|
198
|
+
*/
|
199
|
+
if (typeof Popper === 'undefined') {
|
200
|
+
throw new TypeError('Bootstrap dropdown require Popper.js (https://popper.js.org)');
|
201
|
+
}
|
149
202
|
|
150
|
-
|
203
|
+
var referenceElement = this._element;
|
151
204
|
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
205
|
+
if (this._config.reference === 'parent') {
|
206
|
+
referenceElement = parent;
|
207
|
+
} else if (Util.isElement(this._config.reference)) {
|
208
|
+
referenceElement = this._config.reference; // Check if it's jQuery element
|
156
209
|
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
210
|
+
if (typeof this._config.reference.jquery !== 'undefined') {
|
211
|
+
referenceElement = this._config.reference[0];
|
212
|
+
}
|
213
|
+
} // If boundary is not `scrollParent`, then set position to `static`
|
214
|
+
// to allow the menu to "escape" the scroll parent's boundaries
|
215
|
+
// https://github.com/twbs/bootstrap/issues/24251
|
163
216
|
|
164
217
|
|
165
|
-
|
166
|
-
|
167
|
-
|
218
|
+
if (this._config.boundary !== 'scrollParent') {
|
219
|
+
$$$1(parent).addClass(ClassName.POSITION_STATIC);
|
220
|
+
}
|
168
221
|
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
222
|
+
this._popper = new Popper(referenceElement, this._menu, this._getPopperConfig());
|
223
|
+
} // If this is a touch-enabled device we add extra
|
224
|
+
// empty mouseover listeners to the body's immediate children;
|
225
|
+
// only needed because of broken event delegation on iOS
|
226
|
+
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
|
174
227
|
|
175
228
|
|
176
|
-
|
177
|
-
|
178
|
-
|
229
|
+
if ('ontouchstart' in document.documentElement && $$$1(parent).closest(Selector.NAVBAR_NAV).length === 0) {
|
230
|
+
$$$1(document.body).children().on('mouseover', null, $$$1.noop);
|
231
|
+
}
|
179
232
|
|
180
|
-
|
233
|
+
this._element.focus();
|
181
234
|
|
182
|
-
|
235
|
+
this._element.setAttribute('aria-expanded', true);
|
183
236
|
|
184
|
-
|
185
|
-
|
186
|
-
|
237
|
+
$$$1(this._menu).toggleClass(ClassName.SHOW);
|
238
|
+
$$$1(parent).toggleClass(ClassName.SHOW).trigger($$$1.Event(Event.SHOWN, relatedTarget));
|
239
|
+
};
|
187
240
|
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
241
|
+
_proto.dispose = function dispose() {
|
242
|
+
$$$1.removeData(this._element, DATA_KEY);
|
243
|
+
$$$1(this._element).off(EVENT_KEY);
|
244
|
+
this._element = null;
|
245
|
+
this._menu = null;
|
193
246
|
|
194
|
-
|
195
|
-
|
247
|
+
if (this._popper !== null) {
|
248
|
+
this._popper.destroy();
|
196
249
|
|
197
|
-
|
198
|
-
|
199
|
-
|
250
|
+
this._popper = null;
|
251
|
+
}
|
252
|
+
};
|
200
253
|
|
201
|
-
|
202
|
-
|
254
|
+
_proto.update = function update() {
|
255
|
+
this._inNavbar = this._detectNavbar();
|
203
256
|
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
257
|
+
if (this._popper !== null) {
|
258
|
+
this._popper.scheduleUpdate();
|
259
|
+
}
|
260
|
+
}; // Private
|
208
261
|
|
209
262
|
|
210
|
-
|
211
|
-
|
263
|
+
_proto._addEventListeners = function _addEventListeners() {
|
264
|
+
var _this = this;
|
212
265
|
|
213
|
-
|
214
|
-
|
215
|
-
|
266
|
+
$$$1(this._element).on(Event.CLICK, function (event) {
|
267
|
+
event.preventDefault();
|
268
|
+
event.stopPropagation();
|
216
269
|
|
217
|
-
|
218
|
-
|
219
|
-
|
270
|
+
_this.toggle();
|
271
|
+
});
|
272
|
+
};
|
220
273
|
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
274
|
+
_proto._getConfig = function _getConfig(config) {
|
275
|
+
config = _objectSpread({}, this.constructor.Default, $$$1(this._element).data(), config);
|
276
|
+
Util.typeCheckConfig(NAME, config, this.constructor.DefaultType);
|
277
|
+
return config;
|
278
|
+
};
|
226
279
|
|
227
|
-
|
228
|
-
|
229
|
-
|
280
|
+
_proto._getMenuElement = function _getMenuElement() {
|
281
|
+
if (!this._menu) {
|
282
|
+
var parent = Dropdown._getParentFromElement(this._element);
|
230
283
|
|
231
|
-
|
232
|
-
|
284
|
+
if (parent) {
|
285
|
+
this._menu = parent.querySelector(Selector.MENU);
|
286
|
+
}
|
287
|
+
}
|
233
288
|
|
234
|
-
|
235
|
-
|
289
|
+
return this._menu;
|
290
|
+
};
|
236
291
|
|
237
|
-
|
238
|
-
|
239
|
-
|
292
|
+
_proto._getPlacement = function _getPlacement() {
|
293
|
+
var $parentDropdown = $$$1(this._element.parentNode);
|
294
|
+
var placement = AttachmentMap.BOTTOM; // Handle dropup
|
240
295
|
|
241
|
-
|
242
|
-
|
296
|
+
if ($parentDropdown.hasClass(ClassName.DROPUP)) {
|
297
|
+
placement = AttachmentMap.TOP;
|
243
298
|
|
244
|
-
|
245
|
-
|
299
|
+
if ($$$1(this._menu).hasClass(ClassName.MENURIGHT)) {
|
300
|
+
placement = AttachmentMap.TOPEND;
|
301
|
+
}
|
302
|
+
} else if ($parentDropdown.hasClass(ClassName.DROPRIGHT)) {
|
303
|
+
placement = AttachmentMap.RIGHT;
|
304
|
+
} else if ($parentDropdown.hasClass(ClassName.DROPLEFT)) {
|
305
|
+
placement = AttachmentMap.LEFT;
|
306
|
+
} else if ($$$1(this._menu).hasClass(ClassName.MENURIGHT)) {
|
307
|
+
placement = AttachmentMap.BOTTOMEND;
|
246
308
|
}
|
247
|
-
} else if ($parentDropdown.hasClass(ClassName.DROPRIGHT)) {
|
248
|
-
placement = AttachmentMap.RIGHT;
|
249
|
-
} else if ($parentDropdown.hasClass(ClassName.DROPLEFT)) {
|
250
|
-
placement = AttachmentMap.LEFT;
|
251
|
-
} else if ($(this._menu).hasClass(ClassName.MENURIGHT)) {
|
252
|
-
placement = AttachmentMap.BOTTOMEND;
|
253
|
-
}
|
254
|
-
|
255
|
-
return placement;
|
256
|
-
};
|
257
309
|
|
258
|
-
|
259
|
-
|
260
|
-
};
|
310
|
+
return placement;
|
311
|
+
};
|
261
312
|
|
262
|
-
|
263
|
-
|
313
|
+
_proto._detectNavbar = function _detectNavbar() {
|
314
|
+
return $$$1(this._element).closest('.navbar').length > 0;
|
315
|
+
};
|
264
316
|
|
265
|
-
|
317
|
+
_proto._getPopperConfig = function _getPopperConfig() {
|
318
|
+
var _this2 = this;
|
266
319
|
|
267
|
-
|
268
|
-
offsetConf.fn = function (data) {
|
269
|
-
data.offsets = _objectSpread({}, data.offsets, _this2._config.offset(data.offsets) || {});
|
270
|
-
return data;
|
271
|
-
};
|
272
|
-
} else {
|
273
|
-
offsetConf.offset = this._config.offset;
|
274
|
-
}
|
320
|
+
var offsetConf = {};
|
275
321
|
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
boundariesElement: this._config.boundary
|
285
|
-
}
|
286
|
-
} // Disable Popper.js if we have a static display
|
322
|
+
if (typeof this._config.offset === 'function') {
|
323
|
+
offsetConf.fn = function (data) {
|
324
|
+
data.offsets = _objectSpread({}, data.offsets, _this2._config.offset(data.offsets) || {});
|
325
|
+
return data;
|
326
|
+
};
|
327
|
+
} else {
|
328
|
+
offsetConf.offset = this._config.offset;
|
329
|
+
}
|
287
330
|
|
288
|
-
|
331
|
+
var popperConfig = {
|
332
|
+
placement: this._getPlacement(),
|
333
|
+
modifiers: {
|
334
|
+
offset: offsetConf,
|
335
|
+
flip: {
|
336
|
+
enabled: this._config.flip
|
337
|
+
},
|
338
|
+
preventOverflow: {
|
339
|
+
boundariesElement: this._config.boundary
|
340
|
+
}
|
341
|
+
} // Disable Popper.js if we have a static display
|
289
342
|
|
290
|
-
if (this._config.display === 'static') {
|
291
|
-
popperConfig.modifiers.applyStyle = {
|
292
|
-
enabled: false
|
293
343
|
};
|
294
|
-
}
|
295
344
|
|
296
|
-
|
297
|
-
|
345
|
+
if (this._config.display === 'static') {
|
346
|
+
popperConfig.modifiers.applyStyle = {
|
347
|
+
enabled: false
|
348
|
+
};
|
349
|
+
}
|
298
350
|
|
351
|
+
return popperConfig;
|
352
|
+
}; // Static
|
299
353
|
|
300
|
-
Dropdown._jQueryInterface = function _jQueryInterface(config) {
|
301
|
-
return this.each(function () {
|
302
|
-
var data = $(this).data(DATA_KEY);
|
303
354
|
|
304
|
-
|
355
|
+
Dropdown._jQueryInterface = function _jQueryInterface(config) {
|
356
|
+
return this.each(function () {
|
357
|
+
var data = $$$1(this).data(DATA_KEY);
|
305
358
|
|
306
|
-
|
307
|
-
data = new Dropdown(this, _config);
|
308
|
-
$(this).data(DATA_KEY, data);
|
309
|
-
}
|
359
|
+
var _config = typeof config === 'object' ? config : null;
|
310
360
|
|
311
|
-
|
312
|
-
|
313
|
-
|
361
|
+
if (!data) {
|
362
|
+
data = new Dropdown(this, _config);
|
363
|
+
$$$1(this).data(DATA_KEY, data);
|
314
364
|
}
|
315
365
|
|
316
|
-
|
366
|
+
if (typeof config === 'string') {
|
367
|
+
if (typeof data[config] === 'undefined') {
|
368
|
+
throw new TypeError("No method named \"" + config + "\"");
|
369
|
+
}
|
370
|
+
|
371
|
+
data[config]();
|
372
|
+
}
|
373
|
+
});
|
374
|
+
};
|
375
|
+
|
376
|
+
Dropdown._clearMenus = function _clearMenus(event) {
|
377
|
+
if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH || event.type === 'keyup' && event.which !== TAB_KEYCODE)) {
|
378
|
+
return;
|
317
379
|
}
|
318
|
-
});
|
319
|
-
};
|
320
380
|
|
321
|
-
|
322
|
-
if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH || event.type === 'keyup' && event.which !== TAB_KEYCODE)) {
|
323
|
-
return;
|
324
|
-
}
|
381
|
+
var toggles = [].slice.call(document.querySelectorAll(Selector.DATA_TOGGLE));
|
325
382
|
|
326
|
-
|
383
|
+
for (var i = 0, len = toggles.length; i < len; i++) {
|
384
|
+
var parent = Dropdown._getParentFromElement(toggles[i]);
|
327
385
|
|
328
|
-
|
329
|
-
|
386
|
+
var context = $$$1(toggles[i]).data(DATA_KEY);
|
387
|
+
var relatedTarget = {
|
388
|
+
relatedTarget: toggles[i]
|
389
|
+
};
|
330
390
|
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
};
|
391
|
+
if (event && event.type === 'click') {
|
392
|
+
relatedTarget.clickEvent = event;
|
393
|
+
}
|
335
394
|
|
336
|
-
|
337
|
-
|
338
|
-
|
395
|
+
if (!context) {
|
396
|
+
continue;
|
397
|
+
}
|
339
398
|
|
340
|
-
|
399
|
+
var dropdownMenu = context._menu;
|
341
400
|
|
342
|
-
|
343
|
-
|
344
|
-
|
401
|
+
if (!$$$1(parent).hasClass(ClassName.SHOW)) {
|
402
|
+
continue;
|
403
|
+
}
|
345
404
|
|
346
|
-
|
347
|
-
|
348
|
-
|
405
|
+
if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $$$1.contains(parent, event.target)) {
|
406
|
+
continue;
|
407
|
+
}
|
408
|
+
|
409
|
+
var hideEvent = $$$1.Event(Event.HIDE, relatedTarget);
|
410
|
+
$$$1(parent).trigger(hideEvent);
|
349
411
|
|
350
|
-
|
351
|
-
|
412
|
+
if (hideEvent.isDefaultPrevented()) {
|
413
|
+
continue;
|
414
|
+
} // If this is a touch-enabled device we remove the extra
|
415
|
+
// empty mouseover listeners we added for iOS support
|
352
416
|
|
353
|
-
if (hideEvent.isDefaultPrevented()) {
|
354
|
-
continue;
|
355
|
-
} // If this is a touch-enabled device we remove the extra
|
356
|
-
// empty mouseover listeners we added for iOS support
|
357
417
|
|
418
|
+
if ('ontouchstart' in document.documentElement) {
|
419
|
+
$$$1(document.body).children().off('mouseover', null, $$$1.noop);
|
420
|
+
}
|
358
421
|
|
359
|
-
|
360
|
-
|
422
|
+
toggles[i].setAttribute('aria-expanded', 'false');
|
423
|
+
$$$1(dropdownMenu).removeClass(ClassName.SHOW);
|
424
|
+
$$$1(parent).removeClass(ClassName.SHOW).trigger($$$1.Event(Event.HIDDEN, relatedTarget));
|
361
425
|
}
|
426
|
+
};
|
362
427
|
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
}
|
367
|
-
};
|
428
|
+
Dropdown._getParentFromElement = function _getParentFromElement(element) {
|
429
|
+
var parent;
|
430
|
+
var selector = Util.getSelectorFromElement(element);
|
368
431
|
|
369
|
-
|
370
|
-
|
371
|
-
|
432
|
+
if (selector) {
|
433
|
+
parent = document.querySelector(selector);
|
434
|
+
}
|
372
435
|
|
373
|
-
|
374
|
-
|
375
|
-
}
|
436
|
+
return parent || element.parentNode;
|
437
|
+
}; // eslint-disable-next-line complexity
|
376
438
|
|
377
|
-
return parent || element.parentNode;
|
378
|
-
}; // eslint-disable-next-line complexity
|
379
439
|
|
440
|
+
Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) {
|
441
|
+
// If not input/textarea:
|
442
|
+
// - And not a key in REGEXP_KEYDOWN => not a dropdown command
|
443
|
+
// If input/textarea:
|
444
|
+
// - If space key => not a dropdown command
|
445
|
+
// - If key is other than escape
|
446
|
+
// - If key is not up or down => not a dropdown command
|
447
|
+
// - If trigger inside the menu => not a dropdown command
|
448
|
+
if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $$$1(event.target).closest(Selector.MENU).length) : !REGEXP_KEYDOWN.test(event.which)) {
|
449
|
+
return;
|
450
|
+
}
|
380
451
|
|
381
|
-
|
382
|
-
|
383
|
-
// - And not a key in REGEXP_KEYDOWN => not a dropdown command
|
384
|
-
// If input/textarea:
|
385
|
-
// - If space key => not a dropdown command
|
386
|
-
// - If key is other than escape
|
387
|
-
// - If key is not up or down => not a dropdown command
|
388
|
-
// - If trigger inside the menu => not a dropdown command
|
389
|
-
if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $(event.target).closest(Selector.MENU).length) : !REGEXP_KEYDOWN.test(event.which)) {
|
390
|
-
return;
|
391
|
-
}
|
452
|
+
event.preventDefault();
|
453
|
+
event.stopPropagation();
|
392
454
|
|
393
|
-
|
394
|
-
|
455
|
+
if (this.disabled || $$$1(this).hasClass(ClassName.DISABLED)) {
|
456
|
+
return;
|
457
|
+
}
|
395
458
|
|
396
|
-
|
397
|
-
return;
|
398
|
-
}
|
459
|
+
var parent = Dropdown._getParentFromElement(this);
|
399
460
|
|
400
|
-
|
461
|
+
var isActive = $$$1(parent).hasClass(ClassName.SHOW);
|
401
462
|
|
402
|
-
|
463
|
+
if (!isActive && (event.which !== ESCAPE_KEYCODE || event.which !== SPACE_KEYCODE) || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
|
464
|
+
if (event.which === ESCAPE_KEYCODE) {
|
465
|
+
var toggle = parent.querySelector(Selector.DATA_TOGGLE);
|
466
|
+
$$$1(toggle).trigger('focus');
|
467
|
+
}
|
403
468
|
|
404
|
-
|
405
|
-
|
406
|
-
var toggle = $(parent).find(Selector.DATA_TOGGLE)[0];
|
407
|
-
$(toggle).trigger('focus');
|
469
|
+
$$$1(this).trigger('click');
|
470
|
+
return;
|
408
471
|
}
|
409
472
|
|
410
|
-
|
411
|
-
return;
|
412
|
-
}
|
473
|
+
var items = [].slice.call(parent.querySelectorAll(Selector.VISIBLE_ITEMS));
|
413
474
|
|
414
|
-
|
475
|
+
if (items.length === 0) {
|
476
|
+
return;
|
477
|
+
}
|
415
478
|
|
416
|
-
|
417
|
-
return;
|
418
|
-
}
|
479
|
+
var index = items.indexOf(event.target);
|
419
480
|
|
420
|
-
|
481
|
+
if (event.which === ARROW_UP_KEYCODE && index > 0) {
|
482
|
+
// Up
|
483
|
+
index--;
|
484
|
+
}
|
421
485
|
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
486
|
+
if (event.which === ARROW_DOWN_KEYCODE && index < items.length - 1) {
|
487
|
+
// Down
|
488
|
+
index++;
|
489
|
+
}
|
426
490
|
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
}
|
491
|
+
if (index < 0) {
|
492
|
+
index = 0;
|
493
|
+
}
|
431
494
|
|
432
|
-
|
433
|
-
|
434
|
-
}
|
495
|
+
items[index].focus();
|
496
|
+
};
|
435
497
|
|
436
|
-
|
437
|
-
|
498
|
+
_createClass(Dropdown, null, [{
|
499
|
+
key: "VERSION",
|
500
|
+
get: function get() {
|
501
|
+
return VERSION;
|
502
|
+
}
|
503
|
+
}, {
|
504
|
+
key: "Default",
|
505
|
+
get: function get() {
|
506
|
+
return Default;
|
507
|
+
}
|
508
|
+
}, {
|
509
|
+
key: "DefaultType",
|
510
|
+
get: function get() {
|
511
|
+
return DefaultType;
|
512
|
+
}
|
513
|
+
}]);
|
438
514
|
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
get: function get() {
|
447
|
-
return Default;
|
448
|
-
}
|
449
|
-
}, {
|
450
|
-
key: "DefaultType",
|
451
|
-
get: function get() {
|
452
|
-
return DefaultType;
|
453
|
-
}
|
454
|
-
}]);
|
515
|
+
return Dropdown;
|
516
|
+
}();
|
517
|
+
/**
|
518
|
+
* ------------------------------------------------------------------------
|
519
|
+
* Data Api implementation
|
520
|
+
* ------------------------------------------------------------------------
|
521
|
+
*/
|
455
522
|
|
456
|
-
return Dropdown;
|
457
|
-
}();
|
458
|
-
/**
|
459
|
-
* ------------------------------------------------------------------------
|
460
|
-
* Data Api implementation
|
461
|
-
* ------------------------------------------------------------------------
|
462
|
-
*/
|
463
523
|
|
524
|
+
$$$1(document).on(Event.KEYDOWN_DATA_API, Selector.DATA_TOGGLE, Dropdown._dataApiKeydownHandler).on(Event.KEYDOWN_DATA_API, Selector.MENU, Dropdown._dataApiKeydownHandler).on(Event.CLICK_DATA_API + " " + Event.KEYUP_DATA_API, Dropdown._clearMenus).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
|
525
|
+
event.preventDefault();
|
526
|
+
event.stopPropagation();
|
464
527
|
|
465
|
-
|
466
|
-
|
467
|
-
|
528
|
+
Dropdown._jQueryInterface.call($$$1(this), 'toggle');
|
529
|
+
}).on(Event.CLICK_DATA_API, Selector.FORM_CHILD, function (e) {
|
530
|
+
e.stopPropagation();
|
531
|
+
});
|
532
|
+
/**
|
533
|
+
* ------------------------------------------------------------------------
|
534
|
+
* jQuery
|
535
|
+
* ------------------------------------------------------------------------
|
536
|
+
*/
|
468
537
|
|
469
|
-
Dropdown._jQueryInterface
|
470
|
-
|
471
|
-
e.stopPropagation();
|
472
|
-
});
|
473
|
-
/**
|
474
|
-
* ------------------------------------------------------------------------
|
475
|
-
* jQuery
|
476
|
-
* ------------------------------------------------------------------------
|
477
|
-
*/
|
538
|
+
$$$1.fn[NAME] = Dropdown._jQueryInterface;
|
539
|
+
$$$1.fn[NAME].Constructor = Dropdown;
|
478
540
|
|
479
|
-
|
480
|
-
|
541
|
+
$$$1.fn[NAME].noConflict = function () {
|
542
|
+
$$$1.fn[NAME] = JQUERY_NO_CONFLICT;
|
543
|
+
return Dropdown._jQueryInterface;
|
544
|
+
};
|
481
545
|
|
482
|
-
|
483
|
-
|
484
|
-
return Dropdown._jQueryInterface;
|
485
|
-
};
|
546
|
+
return Dropdown;
|
547
|
+
}($, Popper);
|
486
548
|
|
487
549
|
return Dropdown;
|
488
|
-
|
489
|
-
|
550
|
+
|
551
|
+
})));
|
552
|
+
//# sourceMappingURL=dropdown.js.map
|