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/modal.js"],"names":["Modal","$","NAME","VERSION","DATA_KEY","EVENT_KEY","DATA_API_KEY","JQUERY_NO_CONFLICT","fn","ESCAPE_KEYCODE","Default","backdrop","keyboard","focus","show","DefaultType","Event","HIDE","HIDDEN","SHOW","SHOWN","FOCUSIN","RESIZE","CLICK_DISMISS","KEYDOWN_DISMISS","MOUSEUP_DISMISS","MOUSEDOWN_DISMISS","CLICK_DATA_API","ClassName","SCROLLBAR_MEASURER","BACKDROP","OPEN","FADE","Selector","DIALOG","DATA_TOGGLE","DATA_DISMISS","FIXED_CONTENT","STICKY_CONTENT","NAVBAR_TOGGLER","element","config","_config","_getConfig","_element","_dialog","find","_backdrop","_isShown","_isBodyOverflowing","_ignoreBackdropClick","_scrollbarWidth","toggle","relatedTarget","hide","_isTransitioning","hasClass","showEvent","trigger","isDefaultPrevented","_checkScrollbar","_setScrollbar","_adjustDialog","document","body","addClass","_setEscapeEvent","_setResizeEvent","on","event","one","target","is","_showBackdrop","_showElement","preventDefault","hideEvent","transition","off","removeClass","transitionDuration","Util","getTransitionDurationFromElement","TRANSITION_END","_hideModal","emulateTransitionEnd","dispose","removeData","window","handleUpdate","typeCheckConfig","parentNode","nodeType","Node","ELEMENT_NODE","appendChild","style","display","removeAttribute","scrollTop","reflow","_enforceFocus","shownEvent","transitionComplete","has","length","which","setAttribute","_resetAdjustments","_resetScrollbar","_removeBackdrop","remove","callback","animate","createElement","className","appendTo","currentTarget","backdropTransitionDuration","callbackRemove","isModalOverflowing","scrollHeight","documentElement","clientHeight","paddingLeft","paddingRight","rect","getBoundingClientRect","left","right","innerWidth","_getScrollbarWidth","each","index","actualPadding","calculatedPadding","css","data","parseFloat","actualMargin","marginRight","calculatedMargin","padding","margin","scrollDiv","scrollbarWidth","width","clientWidth","removeChild","_jQueryInterface","TypeError","selector","getSelectorFromElement","tagName","$target","call","Constructor","noConflict"],"mappings":";;;;;;;;AAGA;;;;;;AAOA,IAAMA,QAAS,UAACC,CAAD,EAAO;AACpB;;;;;AAMA,MAAMC,OAAqB,OAA3B;AACA,MAAMC,UAAqB,OAA3B;AACA,MAAMC,WAAq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;;AAKA,SAAOrJ,KAAP;AACD,CAtjBa,CAsjBXC,CAtjBW,CAAd","sourcesContent":["import $ from 'jquery'\nimport Util from './util'\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.1.1): modal.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst Modal = (($) => {\n /**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\n const NAME = 'modal'\n const VERSION = '4.1.1'\n const DATA_KEY = 'bs.modal'\n const EVENT_KEY = `.${DATA_KEY}`\n const DATA_API_KEY = '.data-api'\n const JQUERY_NO_CONFLICT = $.fn[NAME]\n const ESCAPE_KEYCODE = 27 // KeyboardEvent.which value for Escape (Esc) key\n\n const Default = {\n backdrop : true,\n keyboard : true,\n focus : true,\n show : true\n }\n\n const DefaultType = {\n backdrop : '(boolean|string)',\n keyboard : 'boolean',\n focus : 'boolean',\n show : 'boolean'\n }\n\n const Event = {\n HIDE : `hide${EVENT_KEY}`,\n HIDDEN : `hidden${EVENT_KEY}`,\n SHOW : `show${EVENT_KEY}`,\n SHOWN : `shown${EVENT_KEY}`,\n FOCUSIN : `focusin${EVENT_KEY}`,\n RESIZE : `resize${EVENT_KEY}`,\n CLICK_DISMISS : `click.dismiss${EVENT_KEY}`,\n KEYDOWN_DISMISS : `keydown.dismiss${EVENT_KEY}`,\n MOUSEUP_DISMISS : `mouseup.dismiss${EVENT_KEY}`,\n MOUSEDOWN_DISMISS : `mousedown.dismiss${EVENT_KEY}`,\n CLICK_DATA_API : `click${EVENT_KEY}${DATA_API_KEY}`\n }\n\n const ClassName = {\n SCROLLBAR_MEASURER : 'modal-scrollbar-measure',\n BACKDROP : 'modal-backdrop',\n OPEN : 'modal-open',\n FADE : 'fade',\n SHOW : 'show'\n }\n\n const Selector = {\n DIALOG : '.modal-dialog',\n DATA_TOGGLE : '[data-toggle=\"modal\"]',\n DATA_DISMISS : '[data-dismiss=\"modal\"]',\n FIXED_CONTENT : '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top',\n STICKY_CONTENT : '.sticky-top',\n NAVBAR_TOGGLER : '.navbar-toggler'\n }\n\n /**\n * ------------------------------------------------------------------------\n * Class Definition\n * ------------------------------------------------------------------------\n */\n\n class Modal {\n constructor(element, config) {\n this._config = this._getConfig(config)\n this._element = element\n this._dialog = $(element).find(Selector.DIALOG)[0]\n this._backdrop = null\n this._isShown = false\n this._isBodyOverflowing = false\n this._ignoreBackdropClick = false\n this._scrollbarWidth = 0\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(relatedTarget) {\n return this._isShown ? this.hide() : this.show(relatedTarget)\n }\n\n show(relatedTarget) {\n if (this._isTransitioning || this._isShown) {\n return\n }\n\n if ($(this._element).hasClass(ClassName.FADE)) {\n this._isTransitioning = true\n }\n\n const showEvent = $.Event(Event.SHOW, {\n relatedTarget\n })\n\n $(this._element).trigger(showEvent)\n\n if (this._isShown || showEvent.isDefaultPrevented()) {\n return\n }\n\n this._isShown = true\n\n this._checkScrollbar()\n this._setScrollbar()\n\n this._adjustDialog()\n\n $(document.body).addClass(ClassName.OPEN)\n\n this._setEscapeEvent()\n this._setResizeEvent()\n\n $(this._element).on(\n Event.CLICK_DISMISS,\n Selector.DATA_DISMISS,\n (event) => this.hide(event)\n )\n\n $(this._dialog).on(Event.MOUSEDOWN_DISMISS, () => {\n $(this._element).one(Event.MOUSEUP_DISMISS, (event) => {\n if ($(event.target).is(this._element)) {\n this._ignoreBackdropClick = true\n }\n })\n })\n\n this._showBackdrop(() => this._showElement(relatedTarget))\n }\n\n hide(event) {\n if (event) {\n event.preventDefault()\n }\n\n if (this._isTransitioning || !this._isShown) {\n return\n }\n\n const hideEvent = $.Event(Event.HIDE)\n\n $(this._element).trigger(hideEvent)\n\n if (!this._isShown || hideEvent.isDefaultPrevented()) {\n return\n }\n\n this._isShown = false\n const transition = $(this._element).hasClass(ClassName.FADE)\n\n if (transition) {\n this._isTransitioning = true\n }\n\n this._setEscapeEvent()\n this._setResizeEvent()\n\n $(document).off(Event.FOCUSIN)\n\n $(this._element).removeClass(ClassName.SHOW)\n\n $(this._element).off(Event.CLICK_DISMISS)\n $(this._dialog).off(Event.MOUSEDOWN_DISMISS)\n\n\n if (transition) {\n const transitionDuration = Util.getTransitionDurationFromElement(this._element)\n\n $(this._element)\n .one(Util.TRANSITION_END, (event) => this._hideModal(event))\n .emulateTransitionEnd(transitionDuration)\n } else {\n this._hideModal()\n }\n }\n\n dispose() {\n $.removeData(this._element, DATA_KEY)\n\n $(window, document, this._element, this._backdrop).off(EVENT_KEY)\n\n this._config = null\n this._element = null\n this._dialog = null\n this._backdrop = null\n this._isShown = null\n this._isBodyOverflowing = null\n this._ignoreBackdropClick = null\n this._scrollbarWidth = null\n }\n\n handleUpdate() {\n this._adjustDialog()\n }\n\n // Private\n\n _getConfig(config) {\n config = {\n ...Default,\n ...config\n }\n Util.typeCheckConfig(NAME, config, DefaultType)\n return config\n }\n\n _showElement(relatedTarget) {\n const transition = $(this._element).hasClass(ClassName.FADE)\n\n if (!this._element.parentNode ||\n this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {\n // Don't move modal's DOM position\n document.body.appendChild(this._element)\n }\n\n this._element.style.display = 'block'\n this._element.removeAttribute('aria-hidden')\n this._element.scrollTop = 0\n\n if (transition) {\n Util.reflow(this._element)\n }\n\n $(this._element).addClass(ClassName.SHOW)\n\n if (this._config.focus) {\n this._enforceFocus()\n }\n\n const shownEvent = $.Event(Event.SHOWN, {\n relatedTarget\n })\n\n const transitionComplete = () => {\n if (this._config.focus) {\n this._element.focus()\n }\n this._isTransitioning = false\n $(this._element).trigger(shownEvent)\n }\n\n if (transition) {\n const transitionDuration = Util.getTransitionDurationFromElement(this._element)\n\n $(this._dialog)\n .one(Util.TRANSITION_END, transitionComplete)\n .emulateTransitionEnd(transitionDuration)\n } else {\n transitionComplete()\n }\n }\n\n _enforceFocus() {\n $(document)\n .off(Event.FOCUSIN) // Guard against infinite focus loop\n .on(Event.FOCUSIN, (event) => {\n if (document !== event.target &&\n this._element !== event.target &&\n $(this._element).has(event.target).length === 0) {\n this._element.focus()\n }\n })\n }\n\n _setEscapeEvent() {\n if (this._isShown && this._config.keyboard) {\n $(this._element).on(Event.KEYDOWN_DISMISS, (event) => {\n if (event.which === ESCAPE_KEYCODE) {\n event.preventDefault()\n this.hide()\n }\n })\n } else if (!this._isShown) {\n $(this._element).off(Event.KEYDOWN_DISMISS)\n }\n }\n\n _setResizeEvent() {\n if (this._isShown) {\n $(window).on(Event.RESIZE, (event) => this.handleUpdate(event))\n } else {\n $(window).off(Event.RESIZE)\n }\n }\n\n _hideModal() {\n this._element.style.display = 'none'\n this._element.setAttribute('aria-hidden', true)\n this._isTransitioning = false\n this._showBackdrop(() => {\n $(document.body).removeClass(ClassName.OPEN)\n this._resetAdjustments()\n this._resetScrollbar()\n $(this._element).trigger(Event.HIDDEN)\n })\n }\n\n _removeBackdrop() {\n if (this._backdrop) {\n $(this._backdrop).remove()\n this._backdrop = null\n }\n }\n\n _showBackdrop(callback) {\n const animate = $(this._element).hasClass(ClassName.FADE)\n ? ClassName.FADE : ''\n\n if (this._isShown && this._config.backdrop) {\n this._backdrop = document.createElement('div')\n this._backdrop.className = ClassName.BACKDROP\n\n if (animate) {\n $(this._backdrop).addClass(animate)\n }\n\n $(this._backdrop).appendTo(document.body)\n\n $(this._element).on(Event.CLICK_DISMISS, (event) => {\n if (this._ignoreBackdropClick) {\n this._ignoreBackdropClick = false\n return\n }\n if (event.target !== event.currentTarget) {\n return\n }\n if (this._config.backdrop === 'static') {\n this._element.focus()\n } else {\n this.hide()\n }\n })\n\n if (animate) {\n Util.reflow(this._backdrop)\n }\n\n $(this._backdrop).addClass(ClassName.SHOW)\n\n if (!callback) {\n return\n }\n\n if (!animate) {\n callback()\n return\n }\n\n const backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop)\n\n $(this._backdrop)\n .one(Util.TRANSITION_END, callback)\n .emulateTransitionEnd(backdropTransitionDuration)\n } else if (!this._isShown && this._backdrop) {\n $(this._backdrop).removeClass(ClassName.SHOW)\n\n const callbackRemove = () => {\n this._removeBackdrop()\n if (callback) {\n callback()\n }\n }\n\n if ($(this._element).hasClass(ClassName.FADE)) {\n const backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop)\n\n $(this._backdrop)\n .one(Util.TRANSITION_END, callbackRemove)\n .emulateTransitionEnd(backdropTransitionDuration)\n } else {\n callbackRemove()\n }\n } else if (callback) {\n callback()\n }\n }\n\n // ----------------------------------------------------------------------\n // the following methods are used to handle overflowing modals\n // todo (fat): these should probably be refactored out of modal.js\n // ----------------------------------------------------------------------\n\n _adjustDialog() {\n const isModalOverflowing =\n this._element.scrollHeight > document.documentElement.clientHeight\n\n if (!this._isBodyOverflowing && isModalOverflowing) {\n this._element.style.paddingLeft = `${this._scrollbarWidth}px`\n }\n\n if (this._isBodyOverflowing && !isModalOverflowing) {\n this._element.style.paddingRight = `${this._scrollbarWidth}px`\n }\n }\n\n _resetAdjustments() {\n this._element.style.paddingLeft = ''\n this._element.style.paddingRight = ''\n }\n\n _checkScrollbar() {\n const rect = document.body.getBoundingClientRect()\n this._isBodyOverflowing = rect.left + rect.right < window.innerWidth\n this._scrollbarWidth = this._getScrollbarWidth()\n }\n\n _setScrollbar() {\n if (this._isBodyOverflowing) {\n // Note: DOMNode.style.paddingRight returns the actual value or '' if not set\n // while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set\n\n // Adjust fixed content padding\n $(Selector.FIXED_CONTENT).each((index, element) => {\n const actualPadding = $(element)[0].style.paddingRight\n const calculatedPadding = $(element).css('padding-right')\n $(element).data('padding-right', actualPadding).css('padding-right', `${parseFloat(calculatedPadding) + this._scrollbarWidth}px`)\n })\n\n // Adjust sticky content margin\n $(Selector.STICKY_CONTENT).each((index, element) => {\n const actualMargin = $(element)[0].style.marginRight\n const calculatedMargin = $(element).css('margin-right')\n $(element).data('margin-right', actualMargin).css('margin-right', `${parseFloat(calculatedMargin) - this._scrollbarWidth}px`)\n })\n\n // Adjust navbar-toggler margin\n $(Selector.NAVBAR_TOGGLER).each((index, element) => {\n const actualMargin = $(element)[0].style.marginRight\n const calculatedMargin = $(element).css('margin-right')\n $(element).data('margin-right', actualMargin).css('margin-right', `${parseFloat(calculatedMargin) + this._scrollbarWidth}px`)\n })\n\n // Adjust body padding\n const actualPadding = document.body.style.paddingRight\n const calculatedPadding = $(document.body).css('padding-right')\n $(document.body).data('padding-right', actualPadding).css('padding-right', `${parseFloat(calculatedPadding) + this._scrollbarWidth}px`)\n }\n }\n\n _resetScrollbar() {\n // Restore fixed content padding\n $(Selector.FIXED_CONTENT).each((index, element) => {\n const padding = $(element).data('padding-right')\n if (typeof padding !== 'undefined') {\n $(element).css('padding-right', padding).removeData('padding-right')\n }\n })\n\n // Restore sticky content and navbar-toggler margin\n $(`${Selector.STICKY_CONTENT}, ${Selector.NAVBAR_TOGGLER}`).each((index, element) => {\n const margin = $(element).data('margin-right')\n if (typeof margin !== 'undefined') {\n $(element).css('margin-right', margin).removeData('margin-right')\n }\n })\n\n // Restore body padding\n const padding = $(document.body).data('padding-right')\n if (typeof padding !== 'undefined') {\n $(document.body).css('padding-right', padding).removeData('padding-right')\n }\n }\n\n _getScrollbarWidth() { // thx d.walsh\n const scrollDiv = document.createElement('div')\n scrollDiv.className = ClassName.SCROLLBAR_MEASURER\n document.body.appendChild(scrollDiv)\n const scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth\n document.body.removeChild(scrollDiv)\n return scrollbarWidth\n }\n\n // Static\n\n static _jQueryInterface(config, relatedTarget) {\n return this.each(function () {\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) {\n data = new Modal(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](relatedTarget)\n } else if (_config.show) {\n data.show(relatedTarget)\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 let target\n const selector = Util.getSelectorFromElement(this)\n\n if (selector) {\n target = $(selector)[0]\n }\n\n const config = $(target).data(DATA_KEY)\n ? 'toggle' : {\n ...$(target).data(),\n ...$(this).data()\n }\n\n if (this.tagName === 'A' || this.tagName === 'AREA') {\n event.preventDefault()\n }\n\n const $target = $(target).one(Event.SHOW, (showEvent) => {\n if (showEvent.isDefaultPrevented()) {\n // Only register focus restorer if modal will actually get shown\n return\n }\n\n $target.one(Event.HIDDEN, () => {\n if ($(this).is(':visible')) {\n this.focus()\n }\n })\n })\n\n Modal._jQueryInterface.call($(target), config, this)\n })\n\n /**\n * ------------------------------------------------------------------------\n * jQuery\n * ------------------------------------------------------------------------\n */\n\n $.fn[NAME] = Modal._jQueryInterface\n $.fn[NAME].Constructor = Modal\n $.fn[NAME].noConflict = function () {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return Modal._jQueryInterface\n }\n\n return Modal\n})($)\n\nexport default Modal\n"],"file":"modal.js"}
|
1
|
+
{"version":3,"file":"modal.js","sources":["../src/modal.js"],"sourcesContent":["import $ from 'jquery'\nimport Util from './util'\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.1.3): modal.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst Modal = (($) => {\n /**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\n const NAME = 'modal'\n const VERSION = '4.1.3'\n const DATA_KEY = 'bs.modal'\n const EVENT_KEY = `.${DATA_KEY}`\n const DATA_API_KEY = '.data-api'\n const JQUERY_NO_CONFLICT = $.fn[NAME]\n const ESCAPE_KEYCODE = 27 // KeyboardEvent.which value for Escape (Esc) key\n\n const Default = {\n backdrop : true,\n keyboard : true,\n focus : true,\n show : true\n }\n\n const DefaultType = {\n backdrop : '(boolean|string)',\n keyboard : 'boolean',\n focus : 'boolean',\n show : 'boolean'\n }\n\n const Event = {\n HIDE : `hide${EVENT_KEY}`,\n HIDDEN : `hidden${EVENT_KEY}`,\n SHOW : `show${EVENT_KEY}`,\n SHOWN : `shown${EVENT_KEY}`,\n FOCUSIN : `focusin${EVENT_KEY}`,\n RESIZE : `resize${EVENT_KEY}`,\n CLICK_DISMISS : `click.dismiss${EVENT_KEY}`,\n KEYDOWN_DISMISS : `keydown.dismiss${EVENT_KEY}`,\n MOUSEUP_DISMISS : `mouseup.dismiss${EVENT_KEY}`,\n MOUSEDOWN_DISMISS : `mousedown.dismiss${EVENT_KEY}`,\n CLICK_DATA_API : `click${EVENT_KEY}${DATA_API_KEY}`\n }\n\n const ClassName = {\n SCROLLBAR_MEASURER : 'modal-scrollbar-measure',\n BACKDROP : 'modal-backdrop',\n OPEN : 'modal-open',\n FADE : 'fade',\n SHOW : 'show'\n }\n\n const Selector = {\n DIALOG : '.modal-dialog',\n DATA_TOGGLE : '[data-toggle=\"modal\"]',\n DATA_DISMISS : '[data-dismiss=\"modal\"]',\n FIXED_CONTENT : '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top',\n STICKY_CONTENT : '.sticky-top'\n }\n\n /**\n * ------------------------------------------------------------------------\n * Class Definition\n * ------------------------------------------------------------------------\n */\n\n class Modal {\n constructor(element, config) {\n this._config = this._getConfig(config)\n this._element = element\n this._dialog = element.querySelector(Selector.DIALOG)\n this._backdrop = null\n this._isShown = false\n this._isBodyOverflowing = false\n this._ignoreBackdropClick = false\n this._scrollbarWidth = 0\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(relatedTarget) {\n return this._isShown ? this.hide() : this.show(relatedTarget)\n }\n\n show(relatedTarget) {\n if (this._isTransitioning || this._isShown) {\n return\n }\n\n if ($(this._element).hasClass(ClassName.FADE)) {\n this._isTransitioning = true\n }\n\n const showEvent = $.Event(Event.SHOW, {\n relatedTarget\n })\n\n $(this._element).trigger(showEvent)\n\n if (this._isShown || showEvent.isDefaultPrevented()) {\n return\n }\n\n this._isShown = true\n\n this._checkScrollbar()\n this._setScrollbar()\n\n this._adjustDialog()\n\n $(document.body).addClass(ClassName.OPEN)\n\n this._setEscapeEvent()\n this._setResizeEvent()\n\n $(this._element).on(\n Event.CLICK_DISMISS,\n Selector.DATA_DISMISS,\n (event) => this.hide(event)\n )\n\n $(this._dialog).on(Event.MOUSEDOWN_DISMISS, () => {\n $(this._element).one(Event.MOUSEUP_DISMISS, (event) => {\n if ($(event.target).is(this._element)) {\n this._ignoreBackdropClick = true\n }\n })\n })\n\n this._showBackdrop(() => this._showElement(relatedTarget))\n }\n\n hide(event) {\n if (event) {\n event.preventDefault()\n }\n\n if (this._isTransitioning || !this._isShown) {\n return\n }\n\n const hideEvent = $.Event(Event.HIDE)\n\n $(this._element).trigger(hideEvent)\n\n if (!this._isShown || hideEvent.isDefaultPrevented()) {\n return\n }\n\n this._isShown = false\n const transition = $(this._element).hasClass(ClassName.FADE)\n\n if (transition) {\n this._isTransitioning = true\n }\n\n this._setEscapeEvent()\n this._setResizeEvent()\n\n $(document).off(Event.FOCUSIN)\n\n $(this._element).removeClass(ClassName.SHOW)\n\n $(this._element).off(Event.CLICK_DISMISS)\n $(this._dialog).off(Event.MOUSEDOWN_DISMISS)\n\n\n if (transition) {\n const transitionDuration = Util.getTransitionDurationFromElement(this._element)\n\n $(this._element)\n .one(Util.TRANSITION_END, (event) => this._hideModal(event))\n .emulateTransitionEnd(transitionDuration)\n } else {\n this._hideModal()\n }\n }\n\n dispose() {\n $.removeData(this._element, DATA_KEY)\n\n $(window, document, this._element, this._backdrop).off(EVENT_KEY)\n\n this._config = null\n this._element = null\n this._dialog = null\n this._backdrop = null\n this._isShown = null\n this._isBodyOverflowing = null\n this._ignoreBackdropClick = null\n this._scrollbarWidth = null\n }\n\n handleUpdate() {\n this._adjustDialog()\n }\n\n // Private\n\n _getConfig(config) {\n config = {\n ...Default,\n ...config\n }\n Util.typeCheckConfig(NAME, config, DefaultType)\n return config\n }\n\n _showElement(relatedTarget) {\n const transition = $(this._element).hasClass(ClassName.FADE)\n\n if (!this._element.parentNode ||\n this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {\n // Don't move modal's DOM position\n document.body.appendChild(this._element)\n }\n\n this._element.style.display = 'block'\n this._element.removeAttribute('aria-hidden')\n this._element.scrollTop = 0\n\n if (transition) {\n Util.reflow(this._element)\n }\n\n $(this._element).addClass(ClassName.SHOW)\n\n if (this._config.focus) {\n this._enforceFocus()\n }\n\n const shownEvent = $.Event(Event.SHOWN, {\n relatedTarget\n })\n\n const transitionComplete = () => {\n if (this._config.focus) {\n this._element.focus()\n }\n this._isTransitioning = false\n $(this._element).trigger(shownEvent)\n }\n\n if (transition) {\n const transitionDuration = Util.getTransitionDurationFromElement(this._element)\n\n $(this._dialog)\n .one(Util.TRANSITION_END, transitionComplete)\n .emulateTransitionEnd(transitionDuration)\n } else {\n transitionComplete()\n }\n }\n\n _enforceFocus() {\n $(document)\n .off(Event.FOCUSIN) // Guard against infinite focus loop\n .on(Event.FOCUSIN, (event) => {\n if (document !== event.target &&\n this._element !== event.target &&\n $(this._element).has(event.target).length === 0) {\n this._element.focus()\n }\n })\n }\n\n _setEscapeEvent() {\n if (this._isShown && this._config.keyboard) {\n $(this._element).on(Event.KEYDOWN_DISMISS, (event) => {\n if (event.which === ESCAPE_KEYCODE) {\n event.preventDefault()\n this.hide()\n }\n })\n } else if (!this._isShown) {\n $(this._element).off(Event.KEYDOWN_DISMISS)\n }\n }\n\n _setResizeEvent() {\n if (this._isShown) {\n $(window).on(Event.RESIZE, (event) => this.handleUpdate(event))\n } else {\n $(window).off(Event.RESIZE)\n }\n }\n\n _hideModal() {\n this._element.style.display = 'none'\n this._element.setAttribute('aria-hidden', true)\n this._isTransitioning = false\n this._showBackdrop(() => {\n $(document.body).removeClass(ClassName.OPEN)\n this._resetAdjustments()\n this._resetScrollbar()\n $(this._element).trigger(Event.HIDDEN)\n })\n }\n\n _removeBackdrop() {\n if (this._backdrop) {\n $(this._backdrop).remove()\n this._backdrop = null\n }\n }\n\n _showBackdrop(callback) {\n const animate = $(this._element).hasClass(ClassName.FADE)\n ? ClassName.FADE : ''\n\n if (this._isShown && this._config.backdrop) {\n this._backdrop = document.createElement('div')\n this._backdrop.className = ClassName.BACKDROP\n\n if (animate) {\n this._backdrop.classList.add(animate)\n }\n\n $(this._backdrop).appendTo(document.body)\n\n $(this._element).on(Event.CLICK_DISMISS, (event) => {\n if (this._ignoreBackdropClick) {\n this._ignoreBackdropClick = false\n return\n }\n if (event.target !== event.currentTarget) {\n return\n }\n if (this._config.backdrop === 'static') {\n this._element.focus()\n } else {\n this.hide()\n }\n })\n\n if (animate) {\n Util.reflow(this._backdrop)\n }\n\n $(this._backdrop).addClass(ClassName.SHOW)\n\n if (!callback) {\n return\n }\n\n if (!animate) {\n callback()\n return\n }\n\n const backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop)\n\n $(this._backdrop)\n .one(Util.TRANSITION_END, callback)\n .emulateTransitionEnd(backdropTransitionDuration)\n } else if (!this._isShown && this._backdrop) {\n $(this._backdrop).removeClass(ClassName.SHOW)\n\n const callbackRemove = () => {\n this._removeBackdrop()\n if (callback) {\n callback()\n }\n }\n\n if ($(this._element).hasClass(ClassName.FADE)) {\n const backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop)\n\n $(this._backdrop)\n .one(Util.TRANSITION_END, callbackRemove)\n .emulateTransitionEnd(backdropTransitionDuration)\n } else {\n callbackRemove()\n }\n } else if (callback) {\n callback()\n }\n }\n\n // ----------------------------------------------------------------------\n // the following methods are used to handle overflowing modals\n // todo (fat): these should probably be refactored out of modal.js\n // ----------------------------------------------------------------------\n\n _adjustDialog() {\n const isModalOverflowing =\n this._element.scrollHeight > document.documentElement.clientHeight\n\n if (!this._isBodyOverflowing && isModalOverflowing) {\n this._element.style.paddingLeft = `${this._scrollbarWidth}px`\n }\n\n if (this._isBodyOverflowing && !isModalOverflowing) {\n this._element.style.paddingRight = `${this._scrollbarWidth}px`\n }\n }\n\n _resetAdjustments() {\n this._element.style.paddingLeft = ''\n this._element.style.paddingRight = ''\n }\n\n _checkScrollbar() {\n const rect = document.body.getBoundingClientRect()\n this._isBodyOverflowing = rect.left + rect.right < window.innerWidth\n this._scrollbarWidth = this._getScrollbarWidth()\n }\n\n _setScrollbar() {\n if (this._isBodyOverflowing) {\n // Note: DOMNode.style.paddingRight returns the actual value or '' if not set\n // while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set\n const fixedContent = [].slice.call(document.querySelectorAll(Selector.FIXED_CONTENT))\n const stickyContent = [].slice.call(document.querySelectorAll(Selector.STICKY_CONTENT))\n\n // Adjust fixed content padding\n $(fixedContent).each((index, element) => {\n const actualPadding = element.style.paddingRight\n const calculatedPadding = $(element).css('padding-right')\n $(element)\n .data('padding-right', actualPadding)\n .css('padding-right', `${parseFloat(calculatedPadding) + this._scrollbarWidth}px`)\n })\n\n // Adjust sticky content margin\n $(stickyContent).each((index, element) => {\n const actualMargin = element.style.marginRight\n const calculatedMargin = $(element).css('margin-right')\n $(element)\n .data('margin-right', actualMargin)\n .css('margin-right', `${parseFloat(calculatedMargin) - this._scrollbarWidth}px`)\n })\n\n // Adjust body padding\n const actualPadding = document.body.style.paddingRight\n const calculatedPadding = $(document.body).css('padding-right')\n $(document.body)\n .data('padding-right', actualPadding)\n .css('padding-right', `${parseFloat(calculatedPadding) + this._scrollbarWidth}px`)\n }\n }\n\n _resetScrollbar() {\n // Restore fixed content padding\n const fixedContent = [].slice.call(document.querySelectorAll(Selector.FIXED_CONTENT))\n $(fixedContent).each((index, element) => {\n const padding = $(element).data('padding-right')\n $(element).removeData('padding-right')\n element.style.paddingRight = padding ? padding : ''\n })\n\n // Restore sticky content\n const elements = [].slice.call(document.querySelectorAll(`${Selector.STICKY_CONTENT}`))\n $(elements).each((index, element) => {\n const margin = $(element).data('margin-right')\n if (typeof margin !== 'undefined') {\n $(element).css('margin-right', margin).removeData('margin-right')\n }\n })\n\n // Restore body padding\n const padding = $(document.body).data('padding-right')\n $(document.body).removeData('padding-right')\n document.body.style.paddingRight = padding ? padding : ''\n }\n\n _getScrollbarWidth() { // thx d.walsh\n const scrollDiv = document.createElement('div')\n scrollDiv.className = ClassName.SCROLLBAR_MEASURER\n document.body.appendChild(scrollDiv)\n const scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth\n document.body.removeChild(scrollDiv)\n return scrollbarWidth\n }\n\n // Static\n\n static _jQueryInterface(config, relatedTarget) {\n return this.each(function () {\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) {\n data = new Modal(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](relatedTarget)\n } else if (_config.show) {\n data.show(relatedTarget)\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 let target\n const selector = Util.getSelectorFromElement(this)\n\n if (selector) {\n target = document.querySelector(selector)\n }\n\n const config = $(target).data(DATA_KEY)\n ? 'toggle' : {\n ...$(target).data(),\n ...$(this).data()\n }\n\n if (this.tagName === 'A' || this.tagName === 'AREA') {\n event.preventDefault()\n }\n\n const $target = $(target).one(Event.SHOW, (showEvent) => {\n if (showEvent.isDefaultPrevented()) {\n // Only register focus restorer if modal will actually get shown\n return\n }\n\n $target.one(Event.HIDDEN, () => {\n if ($(this).is(':visible')) {\n this.focus()\n }\n })\n })\n\n Modal._jQueryInterface.call($(target), config, this)\n })\n\n /**\n * ------------------------------------------------------------------------\n * jQuery\n * ------------------------------------------------------------------------\n */\n\n $.fn[NAME] = Modal._jQueryInterface\n $.fn[NAME].Constructor = Modal\n $.fn[NAME].noConflict = function () {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return Modal._jQueryInterface\n }\n\n return Modal\n})($)\n\nexport default Modal\n"],"names":["Modal","$","NAME","VERSION","DATA_KEY","EVENT_KEY","DATA_API_KEY","JQUERY_NO_CONFLICT","fn","ESCAPE_KEYCODE","Default","backdrop","keyboard","focus","show","DefaultType","Event","HIDE","HIDDEN","SHOW","SHOWN","FOCUSIN","RESIZE","CLICK_DISMISS","KEYDOWN_DISMISS","MOUSEUP_DISMISS","MOUSEDOWN_DISMISS","CLICK_DATA_API","ClassName","SCROLLBAR_MEASURER","BACKDROP","OPEN","FADE","Selector","DIALOG","DATA_TOGGLE","DATA_DISMISS","FIXED_CONTENT","STICKY_CONTENT","element","config","_config","_getConfig","_element","_dialog","querySelector","_backdrop","_isShown","_isBodyOverflowing","_ignoreBackdropClick","_scrollbarWidth","toggle","relatedTarget","hide","_isTransitioning","hasClass","showEvent","trigger","isDefaultPrevented","_checkScrollbar","_setScrollbar","_adjustDialog","document","body","addClass","_setEscapeEvent","_setResizeEvent","on","event","one","target","is","_showBackdrop","_showElement","preventDefault","hideEvent","transition","off","removeClass","transitionDuration","Util","getTransitionDurationFromElement","TRANSITION_END","_hideModal","emulateTransitionEnd","dispose","removeData","window","handleUpdate","typeCheckConfig","parentNode","nodeType","Node","ELEMENT_NODE","appendChild","style","display","removeAttribute","scrollTop","reflow","_enforceFocus","shownEvent","transitionComplete","has","length","which","setAttribute","_resetAdjustments","_resetScrollbar","_removeBackdrop","remove","callback","animate","createElement","className","classList","add","appendTo","currentTarget","backdropTransitionDuration","callbackRemove","isModalOverflowing","scrollHeight","documentElement","clientHeight","paddingLeft","paddingRight","rect","getBoundingClientRect","left","right","innerWidth","_getScrollbarWidth","fixedContent","slice","call","querySelectorAll","stickyContent","each","index","actualPadding","calculatedPadding","css","data","parseFloat","actualMargin","marginRight","calculatedMargin","padding","elements","margin","scrollDiv","scrollbarWidth","width","clientWidth","removeChild","_jQueryInterface","TypeError","selector","getSelectorFromElement","tagName","$target","Constructor","noConflict"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGA;;;;;;;EAOA,IAAMA,QAAS,UAACC,IAAD,EAAO;EACpB;;;;;EAMA,MAAMC,OAAqB,OAA3B;EACA,MAAMC,UAAqB,OAA3B;EACA,MAAMC,WAAqB,UAA3B;EACA,MAAMC,kBAAyBD,QAA/B;EACA,MAAME,eAAqB,WAA3B;EACA,MAAMC,qBAAqBN,KAAEO,EAAF,CAAKN,IAAL,CAA3B;EACA,MAAMO,iBAAqB,EAA3B,CAboB;;EAepB,MAAMC,UAAU;EACdC,cAAW,IADG;EAEdC,cAAW,IAFG;EAGdC,WAAW,IAHG;EAIdC,UAAW;EAJG,GAAhB;EAOA,MAAMC,cAAc;EAClBJ,cAAW,kBADO;EAElBC,cAAW,SAFO;EAGlBC,WAAW,SAHO;EAIlBC,UAAW;EAJO,GAApB;EAOA,MAAME,QAAQ;EACZC,mBAA2BZ,SADf;EAEZa,uBAA6Bb,SAFjB;EAGZc,mBAA2Bd,SAHf;EAIZe,qBAA4Bf,SAJhB;EAKZgB,yBAA8BhB,SALlB;EAMZiB,uBAA6BjB,SANjB;EAOZkB,qCAAoClB,SAPxB;EAQZmB,yCAAsCnB,SAR1B;EASZoB,yCAAsCpB,SAT1B;EAUZqB,6CAAwCrB,SAV5B;EAWZsB,8BAA4BtB,SAA5B,GAAwCC;EAX5B,GAAd;EAcA,MAAMsB,YAAY;EAChBC,wBAAqB,yBADL;EAEhBC,cAAqB,gBAFL;EAGhBC,UAAqB,YAHL;EAIhBC,UAAqB,MAJL;EAKhBb,UAAqB;EALL,GAAlB;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B;;EACAC,OAAEO,EAAF,CAAKN,IAAL,EAAWiK,UAAX,GAAwB,YAAY;EAClClK,SAAEO,EAAF,CAAKN,IAAL,IAAaK,kBAAb;EACA,WAAOP,MAAM4J,gBAAb;EACD,GAHD;;EAKA,SAAO5J,KAAP;EACD,CAtjBa,CAsjBXC,CAtjBW,CAAd;;;;;;;;"}
|
@@ -1,206 +1,266 @@
|
|
1
|
-
function
|
1
|
+
(function (global, factory) {
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery'), require('./tooltip.js')) :
|
3
|
+
typeof define === 'function' && define.amd ? define(['jquery', './tooltip.js'], factory) :
|
4
|
+
(global.Popover = factory(global.jQuery,global.Tooltip));
|
5
|
+
}(this, (function ($,Tooltip) { 'use strict';
|
6
|
+
|
7
|
+
$ = $ && $.hasOwnProperty('default') ? $['default'] : $;
|
8
|
+
Tooltip = Tooltip && Tooltip.hasOwnProperty('default') ? Tooltip['default'] : Tooltip;
|
9
|
+
|
10
|
+
function _defineProperties(target, props) {
|
11
|
+
for (var i = 0; i < props.length; i++) {
|
12
|
+
var descriptor = props[i];
|
13
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
14
|
+
descriptor.configurable = true;
|
15
|
+
if ("value" in descriptor) descriptor.writable = true;
|
16
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
21
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
22
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
23
|
+
return Constructor;
|
24
|
+
}
|
25
|
+
|
26
|
+
function _defineProperty(obj, key, value) {
|
27
|
+
if (key in obj) {
|
28
|
+
Object.defineProperty(obj, key, {
|
29
|
+
value: value,
|
30
|
+
enumerable: true,
|
31
|
+
configurable: true,
|
32
|
+
writable: true
|
33
|
+
});
|
34
|
+
} else {
|
35
|
+
obj[key] = value;
|
36
|
+
}
|
37
|
+
|
38
|
+
return obj;
|
39
|
+
}
|
2
40
|
|
3
|
-
function
|
41
|
+
function _objectSpread(target) {
|
42
|
+
for (var i = 1; i < arguments.length; i++) {
|
43
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
44
|
+
var ownKeys = Object.keys(source);
|
4
45
|
|
5
|
-
|
46
|
+
if (typeof Object.getOwnPropertySymbols === 'function') {
|
47
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
|
48
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
49
|
+
}));
|
50
|
+
}
|
51
|
+
|
52
|
+
ownKeys.forEach(function (key) {
|
53
|
+
_defineProperty(target, key, source[key]);
|
54
|
+
});
|
55
|
+
}
|
6
56
|
|
7
|
-
|
57
|
+
return target;
|
58
|
+
}
|
8
59
|
|
9
|
-
function
|
60
|
+
function _inheritsLoose(subClass, superClass) {
|
61
|
+
subClass.prototype = Object.create(superClass.prototype);
|
62
|
+
subClass.prototype.constructor = subClass;
|
63
|
+
subClass.__proto__ = superClass;
|
64
|
+
}
|
10
65
|
|
11
|
-
/**
|
12
|
-
* --------------------------------------------------------------------------
|
13
|
-
* Bootstrap (v4.1.1): popover.js
|
14
|
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
15
|
-
* --------------------------------------------------------------------------
|
16
|
-
*/
|
17
|
-
var Popover = function ($) {
|
18
66
|
/**
|
19
|
-
*
|
20
|
-
*
|
21
|
-
*
|
67
|
+
* --------------------------------------------------------------------------
|
68
|
+
* Bootstrap (v4.1.3): popover.js
|
69
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
70
|
+
* --------------------------------------------------------------------------
|
22
71
|
*/
|
23
|
-
|
24
|
-
var
|
25
|
-
var DATA_KEY = 'bs.popover';
|
26
|
-
var EVENT_KEY = "." + DATA_KEY;
|
27
|
-
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
28
|
-
var CLASS_PREFIX = 'bs-popover';
|
29
|
-
var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
|
30
|
-
|
31
|
-
var Default = _objectSpread({}, Tooltip.Default, {
|
32
|
-
placement: 'right',
|
33
|
-
trigger: 'click',
|
34
|
-
content: '',
|
35
|
-
template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
|
36
|
-
});
|
37
|
-
|
38
|
-
var DefaultType = _objectSpread({}, Tooltip.DefaultType, {
|
39
|
-
content: '(string|element|function)'
|
40
|
-
});
|
41
|
-
|
42
|
-
var ClassName = {
|
43
|
-
FADE: 'fade',
|
44
|
-
SHOW: 'show'
|
45
|
-
};
|
46
|
-
var Selector = {
|
47
|
-
TITLE: '.popover-header',
|
48
|
-
CONTENT: '.popover-body'
|
49
|
-
};
|
50
|
-
var Event = {
|
51
|
-
HIDE: "hide" + EVENT_KEY,
|
52
|
-
HIDDEN: "hidden" + EVENT_KEY,
|
53
|
-
SHOW: "show" + EVENT_KEY,
|
54
|
-
SHOWN: "shown" + EVENT_KEY,
|
55
|
-
INSERTED: "inserted" + EVENT_KEY,
|
56
|
-
CLICK: "click" + EVENT_KEY,
|
57
|
-
FOCUSIN: "focusin" + EVENT_KEY,
|
58
|
-
FOCUSOUT: "focusout" + EVENT_KEY,
|
59
|
-
MOUSEENTER: "mouseenter" + EVENT_KEY,
|
60
|
-
MOUSELEAVE: "mouseleave" + EVENT_KEY
|
72
|
+
|
73
|
+
var Popover = function ($$$1) {
|
61
74
|
/**
|
62
75
|
* ------------------------------------------------------------------------
|
63
|
-
*
|
76
|
+
* Constants
|
64
77
|
* ------------------------------------------------------------------------
|
65
78
|
*/
|
79
|
+
var NAME = 'popover';
|
80
|
+
var VERSION = '4.1.3';
|
81
|
+
var DATA_KEY = 'bs.popover';
|
82
|
+
var EVENT_KEY = "." + DATA_KEY;
|
83
|
+
var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
|
84
|
+
var CLASS_PREFIX = 'bs-popover';
|
85
|
+
var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
|
86
|
+
|
87
|
+
var Default = _objectSpread({}, Tooltip.Default, {
|
88
|
+
placement: 'right',
|
89
|
+
trigger: 'click',
|
90
|
+
content: '',
|
91
|
+
template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
|
92
|
+
});
|
93
|
+
|
94
|
+
var DefaultType = _objectSpread({}, Tooltip.DefaultType, {
|
95
|
+
content: '(string|element|function)'
|
96
|
+
});
|
97
|
+
|
98
|
+
var ClassName = {
|
99
|
+
FADE: 'fade',
|
100
|
+
SHOW: 'show'
|
101
|
+
};
|
102
|
+
var Selector = {
|
103
|
+
TITLE: '.popover-header',
|
104
|
+
CONTENT: '.popover-body'
|
105
|
+
};
|
106
|
+
var Event = {
|
107
|
+
HIDE: "hide" + EVENT_KEY,
|
108
|
+
HIDDEN: "hidden" + EVENT_KEY,
|
109
|
+
SHOW: "show" + EVENT_KEY,
|
110
|
+
SHOWN: "shown" + EVENT_KEY,
|
111
|
+
INSERTED: "inserted" + EVENT_KEY,
|
112
|
+
CLICK: "click" + EVENT_KEY,
|
113
|
+
FOCUSIN: "focusin" + EVENT_KEY,
|
114
|
+
FOCUSOUT: "focusout" + EVENT_KEY,
|
115
|
+
MOUSEENTER: "mouseenter" + EVENT_KEY,
|
116
|
+
MOUSELEAVE: "mouseleave" + EVENT_KEY
|
117
|
+
/**
|
118
|
+
* ------------------------------------------------------------------------
|
119
|
+
* Class Definition
|
120
|
+
* ------------------------------------------------------------------------
|
121
|
+
*/
|
66
122
|
|
67
|
-
|
68
|
-
|
69
|
-
var Popover =
|
70
|
-
/*#__PURE__*/
|
71
|
-
function (_Tooltip) {
|
72
|
-
_inheritsLoose(Popover, _Tooltip);
|
123
|
+
};
|
73
124
|
|
74
|
-
|
75
|
-
|
76
|
-
|
125
|
+
var Popover =
|
126
|
+
/*#__PURE__*/
|
127
|
+
function (_Tooltip) {
|
128
|
+
_inheritsLoose(Popover, _Tooltip);
|
77
129
|
|
78
|
-
|
130
|
+
function Popover() {
|
131
|
+
return _Tooltip.apply(this, arguments) || this;
|
132
|
+
}
|
79
133
|
|
80
|
-
|
81
|
-
_proto.isWithContent = function isWithContent() {
|
82
|
-
return this.getTitle() || this._getContent();
|
83
|
-
};
|
134
|
+
var _proto = Popover.prototype;
|
84
135
|
|
85
|
-
|
86
|
-
|
87
|
-
|
136
|
+
// Overrides
|
137
|
+
_proto.isWithContent = function isWithContent() {
|
138
|
+
return this.getTitle() || this._getContent();
|
139
|
+
};
|
88
140
|
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
};
|
141
|
+
_proto.addAttachmentClass = function addAttachmentClass(attachment) {
|
142
|
+
$$$1(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
|
143
|
+
};
|
93
144
|
|
94
|
-
|
95
|
-
|
145
|
+
_proto.getTipElement = function getTipElement() {
|
146
|
+
this.tip = this.tip || $$$1(this.config.template)[0];
|
147
|
+
return this.tip;
|
148
|
+
};
|
96
149
|
|
97
|
-
|
150
|
+
_proto.setContent = function setContent() {
|
151
|
+
var $tip = $$$1(this.getTipElement()); // We use append for html objects to maintain js events
|
98
152
|
|
99
|
-
|
153
|
+
this.setElementContent($tip.find(Selector.TITLE), this.getTitle());
|
100
154
|
|
101
|
-
|
102
|
-
content = content.call(this.element);
|
103
|
-
}
|
155
|
+
var content = this._getContent();
|
104
156
|
|
105
|
-
|
106
|
-
|
107
|
-
|
157
|
+
if (typeof content === 'function') {
|
158
|
+
content = content.call(this.element);
|
159
|
+
}
|
108
160
|
|
161
|
+
this.setElementContent($tip.find(Selector.CONTENT), content);
|
162
|
+
$tip.removeClass(ClassName.FADE + " " + ClassName.SHOW);
|
163
|
+
}; // Private
|
109
164
|
|
110
|
-
_proto._getContent = function _getContent() {
|
111
|
-
return this.element.getAttribute('data-content') || this.config.content;
|
112
|
-
};
|
113
165
|
|
114
|
-
|
115
|
-
|
116
|
-
|
166
|
+
_proto._getContent = function _getContent() {
|
167
|
+
return this.element.getAttribute('data-content') || this.config.content;
|
168
|
+
};
|
117
169
|
|
118
|
-
|
119
|
-
$tip
|
120
|
-
|
121
|
-
}; // Static
|
170
|
+
_proto._cleanTipClass = function _cleanTipClass() {
|
171
|
+
var $tip = $$$1(this.getTipElement());
|
172
|
+
var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
|
122
173
|
|
174
|
+
if (tabClass !== null && tabClass.length > 0) {
|
175
|
+
$tip.removeClass(tabClass.join(''));
|
176
|
+
}
|
177
|
+
}; // Static
|
123
178
|
|
124
|
-
Popover._jQueryInterface = function _jQueryInterface(config) {
|
125
|
-
return this.each(function () {
|
126
|
-
var data = $(this).data(DATA_KEY);
|
127
179
|
|
128
|
-
|
180
|
+
Popover._jQueryInterface = function _jQueryInterface(config) {
|
181
|
+
return this.each(function () {
|
182
|
+
var data = $$$1(this).data(DATA_KEY);
|
129
183
|
|
130
|
-
|
131
|
-
return;
|
132
|
-
}
|
184
|
+
var _config = typeof config === 'object' ? config : null;
|
133
185
|
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
}
|
186
|
+
if (!data && /destroy|hide/.test(config)) {
|
187
|
+
return;
|
188
|
+
}
|
138
189
|
|
139
|
-
|
140
|
-
|
141
|
-
|
190
|
+
if (!data) {
|
191
|
+
data = new Popover(this, _config);
|
192
|
+
$$$1(this).data(DATA_KEY, data);
|
142
193
|
}
|
143
194
|
|
144
|
-
|
195
|
+
if (typeof config === 'string') {
|
196
|
+
if (typeof data[config] === 'undefined') {
|
197
|
+
throw new TypeError("No method named \"" + config + "\"");
|
198
|
+
}
|
199
|
+
|
200
|
+
data[config]();
|
201
|
+
}
|
202
|
+
});
|
203
|
+
};
|
204
|
+
|
205
|
+
_createClass(Popover, null, [{
|
206
|
+
key: "VERSION",
|
207
|
+
// Getters
|
208
|
+
get: function get() {
|
209
|
+
return VERSION;
|
145
210
|
}
|
146
|
-
}
|
147
|
-
|
211
|
+
}, {
|
212
|
+
key: "Default",
|
213
|
+
get: function get() {
|
214
|
+
return Default;
|
215
|
+
}
|
216
|
+
}, {
|
217
|
+
key: "NAME",
|
218
|
+
get: function get() {
|
219
|
+
return NAME;
|
220
|
+
}
|
221
|
+
}, {
|
222
|
+
key: "DATA_KEY",
|
223
|
+
get: function get() {
|
224
|
+
return DATA_KEY;
|
225
|
+
}
|
226
|
+
}, {
|
227
|
+
key: "Event",
|
228
|
+
get: function get() {
|
229
|
+
return Event;
|
230
|
+
}
|
231
|
+
}, {
|
232
|
+
key: "EVENT_KEY",
|
233
|
+
get: function get() {
|
234
|
+
return EVENT_KEY;
|
235
|
+
}
|
236
|
+
}, {
|
237
|
+
key: "DefaultType",
|
238
|
+
get: function get() {
|
239
|
+
return DefaultType;
|
240
|
+
}
|
241
|
+
}]);
|
148
242
|
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
key: "Default",
|
157
|
-
get: function get() {
|
158
|
-
return Default;
|
159
|
-
}
|
160
|
-
}, {
|
161
|
-
key: "NAME",
|
162
|
-
get: function get() {
|
163
|
-
return NAME;
|
164
|
-
}
|
165
|
-
}, {
|
166
|
-
key: "DATA_KEY",
|
167
|
-
get: function get() {
|
168
|
-
return DATA_KEY;
|
169
|
-
}
|
170
|
-
}, {
|
171
|
-
key: "Event",
|
172
|
-
get: function get() {
|
173
|
-
return Event;
|
174
|
-
}
|
175
|
-
}, {
|
176
|
-
key: "EVENT_KEY",
|
177
|
-
get: function get() {
|
178
|
-
return EVENT_KEY;
|
179
|
-
}
|
180
|
-
}, {
|
181
|
-
key: "DefaultType",
|
182
|
-
get: function get() {
|
183
|
-
return DefaultType;
|
184
|
-
}
|
185
|
-
}]);
|
243
|
+
return Popover;
|
244
|
+
}(Tooltip);
|
245
|
+
/**
|
246
|
+
* ------------------------------------------------------------------------
|
247
|
+
* jQuery
|
248
|
+
* ------------------------------------------------------------------------
|
249
|
+
*/
|
186
250
|
|
187
|
-
return Popover;
|
188
|
-
}(Tooltip);
|
189
|
-
/**
|
190
|
-
* ------------------------------------------------------------------------
|
191
|
-
* jQuery
|
192
|
-
* ------------------------------------------------------------------------
|
193
|
-
*/
|
194
251
|
|
252
|
+
$$$1.fn[NAME] = Popover._jQueryInterface;
|
253
|
+
$$$1.fn[NAME].Constructor = Popover;
|
195
254
|
|
196
|
-
|
197
|
-
|
255
|
+
$$$1.fn[NAME].noConflict = function () {
|
256
|
+
$$$1.fn[NAME] = JQUERY_NO_CONFLICT;
|
257
|
+
return Popover._jQueryInterface;
|
258
|
+
};
|
198
259
|
|
199
|
-
|
200
|
-
|
201
|
-
return Popover._jQueryInterface;
|
202
|
-
};
|
260
|
+
return Popover;
|
261
|
+
}($);
|
203
262
|
|
204
263
|
return Popover;
|
205
|
-
|
206
|
-
|
264
|
+
|
265
|
+
})));
|
266
|
+
//# sourceMappingURL=popover.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"file":"popover.js","sources":["../src/popover.js"],"sourcesContent":["import $ from 'jquery'\nimport Tooltip from './tooltip'\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.1.3): popover.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst Popover = (($) => {\n /**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\n const NAME = 'popover'\n const VERSION = '4.1.3'\n const DATA_KEY = 'bs.popover'\n const EVENT_KEY = `.${DATA_KEY}`\n const JQUERY_NO_CONFLICT = $.fn[NAME]\n const CLASS_PREFIX = 'bs-popover'\n const BSCLS_PREFIX_REGEX = new RegExp(`(^|\\\\s)${CLASS_PREFIX}\\\\S+`, 'g')\n\n const Default = {\n ...Tooltip.Default,\n placement : 'right',\n trigger : 'click',\n content : '',\n template : '<div class=\"popover\" role=\"tooltip\">' +\n '<div class=\"arrow\"></div>' +\n '<h3 class=\"popover-header\"></h3>' +\n '<div class=\"popover-body\"></div></div>'\n }\n\n const DefaultType = {\n ...Tooltip.DefaultType,\n content : '(string|element|function)'\n }\n\n const ClassName = {\n FADE : 'fade',\n SHOW : 'show'\n }\n\n const Selector = {\n TITLE : '.popover-header',\n CONTENT : '.popover-body'\n }\n\n const Event = {\n HIDE : `hide${EVENT_KEY}`,\n HIDDEN : `hidden${EVENT_KEY}`,\n SHOW : `show${EVENT_KEY}`,\n SHOWN : `shown${EVENT_KEY}`,\n INSERTED : `inserted${EVENT_KEY}`,\n CLICK : `click${EVENT_KEY}`,\n FOCUSIN : `focusin${EVENT_KEY}`,\n FOCUSOUT : `focusout${EVENT_KEY}`,\n MOUSEENTER : `mouseenter${EVENT_KEY}`,\n MOUSELEAVE : `mouseleave${EVENT_KEY}`\n }\n\n /**\n * ------------------------------------------------------------------------\n * Class Definition\n * ------------------------------------------------------------------------\n */\n\n class Popover extends Tooltip {\n // Getters\n\n static get VERSION() {\n return VERSION\n }\n\n static get Default() {\n return Default\n }\n\n static get NAME() {\n return NAME\n }\n\n static get DATA_KEY() {\n return DATA_KEY\n }\n\n static get Event() {\n return Event\n }\n\n static get EVENT_KEY() {\n return EVENT_KEY\n }\n\n static get DefaultType() {\n return DefaultType\n }\n\n // Overrides\n\n isWithContent() {\n return this.getTitle() || this._getContent()\n }\n\n addAttachmentClass(attachment) {\n $(this.getTipElement()).addClass(`${CLASS_PREFIX}-${attachment}`)\n }\n\n getTipElement() {\n this.tip = this.tip || $(this.config.template)[0]\n return this.tip\n }\n\n setContent() {\n const $tip = $(this.getTipElement())\n\n // We use append for html objects to maintain js events\n this.setElementContent($tip.find(Selector.TITLE), this.getTitle())\n let content = this._getContent()\n if (typeof content === 'function') {\n content = content.call(this.element)\n }\n this.setElementContent($tip.find(Selector.CONTENT), content)\n\n $tip.removeClass(`${ClassName.FADE} ${ClassName.SHOW}`)\n }\n\n // Private\n\n _getContent() {\n return this.element.getAttribute('data-content') ||\n this.config.content\n }\n\n _cleanTipClass() {\n const $tip = $(this.getTipElement())\n const tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX)\n if (tabClass !== null && tabClass.length > 0) {\n $tip.removeClass(tabClass.join(''))\n }\n }\n\n // Static\n\n static _jQueryInterface(config) {\n return this.each(function () {\n let data = $(this).data(DATA_KEY)\n const _config = typeof config === 'object' ? config : null\n\n if (!data && /destroy|hide/.test(config)) {\n return\n }\n\n if (!data) {\n data = new Popover(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 * jQuery\n * ------------------------------------------------------------------------\n */\n\n $.fn[NAME] = Popover._jQueryInterface\n $.fn[NAME].Constructor = Popover\n $.fn[NAME].noConflict = function () {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return Popover._jQueryInterface\n }\n\n return Popover\n})($)\n\nexport default Popover\n"],"names":["Popover","$","NAME","VERSION","DATA_KEY","EVENT_KEY","JQUERY_NO_CONFLICT","fn","CLASS_PREFIX","BSCLS_PREFIX_REGEX","RegExp","Default","Tooltip","placement","trigger","content","template","DefaultType","ClassName","FADE","SHOW","Selector","TITLE","CONTENT","Event","HIDE","HIDDEN","SHOWN","INSERTED","CLICK","FOCUSIN","FOCUSOUT","MOUSEENTER","MOUSELEAVE","isWithContent","getTitle","_getContent","addAttachmentClass","attachment","getTipElement","addClass","tip","config","setContent","$tip","setElementContent","find","call","element","removeClass","getAttribute","_cleanTipClass","tabClass","attr","match","length","join","_jQueryInterface","each","data","_config","test","TypeError","Constructor","noConflict"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;EACAC,OAAEM,EAAF,CAAKL,IAAL,EAAW8D,UAAX,GAAwB,YAAY;EAClC/D,SAAEM,EAAF,CAAKL,IAAL,IAAaI,kBAAb;EACA,WAAON,QAAQyD,gBAAf;EACD,GAHD;;EAKA,SAAOzD,OAAP;EACD,CA/Ke,CA+KbC,CA/Ka,CAAhB;;;;;;;;"}
|
@@ -1,319 +1,379 @@
|
|
1
|
-
|
1
|
+
(function (global, factory) {
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery'), require('./util.js')) :
|
3
|
+
typeof define === 'function' && define.amd ? define(['jquery', './util.js'], factory) :
|
4
|
+
(global.ScrollSpy = factory(global.jQuery,global.Util));
|
5
|
+
}(this, (function ($,Util) { 'use strict';
|
6
|
+
|
7
|
+
$ = $ && $.hasOwnProperty('default') ? $['default'] : $;
|
8
|
+
Util = Util && Util.hasOwnProperty('default') ? Util['default'] : Util;
|
9
|
+
|
10
|
+
function _defineProperties(target, props) {
|
11
|
+
for (var i = 0; i < props.length; i++) {
|
12
|
+
var descriptor = props[i];
|
13
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
14
|
+
descriptor.configurable = true;
|
15
|
+
if ("value" in descriptor) descriptor.writable = true;
|
16
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
21
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
22
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
23
|
+
return Constructor;
|
24
|
+
}
|
25
|
+
|
26
|
+
function _defineProperty(obj, key, value) {
|
27
|
+
if (key in obj) {
|
28
|
+
Object.defineProperty(obj, key, {
|
29
|
+
value: value,
|
30
|
+
enumerable: true,
|
31
|
+
configurable: true,
|
32
|
+
writable: true
|
33
|
+
});
|
34
|
+
} else {
|
35
|
+
obj[key] = value;
|
36
|
+
}
|
37
|
+
|
38
|
+
return obj;
|
39
|
+
}
|
40
|
+
|
41
|
+
function _objectSpread(target) {
|
42
|
+
for (var i = 1; i < arguments.length; i++) {
|
43
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
44
|
+
var ownKeys = Object.keys(source);
|
2
45
|
|
3
|
-
|
46
|
+
if (typeof Object.getOwnPropertySymbols === 'function') {
|
47
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
|
48
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
49
|
+
}));
|
50
|
+
}
|
4
51
|
|
5
|
-
|
52
|
+
ownKeys.forEach(function (key) {
|
53
|
+
_defineProperty(target, key, source[key]);
|
54
|
+
});
|
55
|
+
}
|
6
56
|
|
7
|
-
|
57
|
+
return target;
|
58
|
+
}
|
8
59
|
|
9
|
-
/**
|
10
|
-
* --------------------------------------------------------------------------
|
11
|
-
* Bootstrap (v4.1.1): scrollspy.js
|
12
|
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
13
|
-
* --------------------------------------------------------------------------
|
14
|
-
*/
|
15
|
-
var ScrollSpy = function ($) {
|
16
60
|
/**
|
17
|
-
*
|
18
|
-
*
|
19
|
-
*
|
61
|
+
* --------------------------------------------------------------------------
|
62
|
+
* Bootstrap (v4.1.3): scrollspy.js
|
63
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
64
|
+
* --------------------------------------------------------------------------
|
20
65
|
*/
|
21
|
-
|
22
|
-
var
|
23
|
-
var DATA_KEY = 'bs.scrollspy';
|
24
|
-
var EVENT_KEY = "." + DATA_KEY;
|
25
|
-
var DATA_API_KEY = '.data-api';
|
26
|
-
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
27
|
-
var Default = {
|
28
|
-
offset: 10,
|
29
|
-
method: 'auto',
|
30
|
-
target: ''
|
31
|
-
};
|
32
|
-
var DefaultType = {
|
33
|
-
offset: 'number',
|
34
|
-
method: 'string',
|
35
|
-
target: '(string|element)'
|
36
|
-
};
|
37
|
-
var Event = {
|
38
|
-
ACTIVATE: "activate" + EVENT_KEY,
|
39
|
-
SCROLL: "scroll" + EVENT_KEY,
|
40
|
-
LOAD_DATA_API: "load" + EVENT_KEY + DATA_API_KEY
|
41
|
-
};
|
42
|
-
var ClassName = {
|
43
|
-
DROPDOWN_ITEM: 'dropdown-item',
|
44
|
-
DROPDOWN_MENU: 'dropdown-menu',
|
45
|
-
ACTIVE: 'active'
|
46
|
-
};
|
47
|
-
var Selector = {
|
48
|
-
DATA_SPY: '[data-spy="scroll"]',
|
49
|
-
ACTIVE: '.active',
|
50
|
-
NAV_LIST_GROUP: '.nav, .list-group',
|
51
|
-
NAV_LINKS: '.nav-link',
|
52
|
-
NAV_ITEMS: '.nav-item',
|
53
|
-
LIST_ITEMS: '.list-group-item',
|
54
|
-
DROPDOWN: '.dropdown',
|
55
|
-
DROPDOWN_ITEMS: '.dropdown-item',
|
56
|
-
DROPDOWN_TOGGLE: '.dropdown-toggle'
|
57
|
-
};
|
58
|
-
var OffsetMethod = {
|
59
|
-
OFFSET: 'offset',
|
60
|
-
POSITION: 'position'
|
66
|
+
|
67
|
+
var ScrollSpy = function ($$$1) {
|
61
68
|
/**
|
62
69
|
* ------------------------------------------------------------------------
|
63
|
-
*
|
70
|
+
* Constants
|
64
71
|
* ------------------------------------------------------------------------
|
65
72
|
*/
|
73
|
+
var NAME = 'scrollspy';
|
74
|
+
var VERSION = '4.1.3';
|
75
|
+
var DATA_KEY = 'bs.scrollspy';
|
76
|
+
var EVENT_KEY = "." + DATA_KEY;
|
77
|
+
var DATA_API_KEY = '.data-api';
|
78
|
+
var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
|
79
|
+
var Default = {
|
80
|
+
offset: 10,
|
81
|
+
method: 'auto',
|
82
|
+
target: ''
|
83
|
+
};
|
84
|
+
var DefaultType = {
|
85
|
+
offset: 'number',
|
86
|
+
method: 'string',
|
87
|
+
target: '(string|element)'
|
88
|
+
};
|
89
|
+
var Event = {
|
90
|
+
ACTIVATE: "activate" + EVENT_KEY,
|
91
|
+
SCROLL: "scroll" + EVENT_KEY,
|
92
|
+
LOAD_DATA_API: "load" + EVENT_KEY + DATA_API_KEY
|
93
|
+
};
|
94
|
+
var ClassName = {
|
95
|
+
DROPDOWN_ITEM: 'dropdown-item',
|
96
|
+
DROPDOWN_MENU: 'dropdown-menu',
|
97
|
+
ACTIVE: 'active'
|
98
|
+
};
|
99
|
+
var Selector = {
|
100
|
+
DATA_SPY: '[data-spy="scroll"]',
|
101
|
+
ACTIVE: '.active',
|
102
|
+
NAV_LIST_GROUP: '.nav, .list-group',
|
103
|
+
NAV_LINKS: '.nav-link',
|
104
|
+
NAV_ITEMS: '.nav-item',
|
105
|
+
LIST_ITEMS: '.list-group-item',
|
106
|
+
DROPDOWN: '.dropdown',
|
107
|
+
DROPDOWN_ITEMS: '.dropdown-item',
|
108
|
+
DROPDOWN_TOGGLE: '.dropdown-toggle'
|
109
|
+
};
|
110
|
+
var OffsetMethod = {
|
111
|
+
OFFSET: 'offset',
|
112
|
+
POSITION: 'position'
|
113
|
+
/**
|
114
|
+
* ------------------------------------------------------------------------
|
115
|
+
* Class Definition
|
116
|
+
* ------------------------------------------------------------------------
|
117
|
+
*/
|
66
118
|
|
67
|
-
|
68
|
-
|
69
|
-
var ScrollSpy =
|
70
|
-
/*#__PURE__*/
|
71
|
-
function () {
|
72
|
-
function ScrollSpy(element, config) {
|
73
|
-
var _this = this;
|
74
|
-
|
75
|
-
this._element = element;
|
76
|
-
this._scrollElement = element.tagName === 'BODY' ? window : element;
|
77
|
-
this._config = this._getConfig(config);
|
78
|
-
this._selector = this._config.target + " " + Selector.NAV_LINKS + "," + (this._config.target + " " + Selector.LIST_ITEMS + ",") + (this._config.target + " " + Selector.DROPDOWN_ITEMS);
|
79
|
-
this._offsets = [];
|
80
|
-
this._targets = [];
|
81
|
-
this._activeTarget = null;
|
82
|
-
this._scrollHeight = 0;
|
83
|
-
$(this._scrollElement).on(Event.SCROLL, function (event) {
|
84
|
-
return _this._process(event);
|
85
|
-
});
|
86
|
-
this.refresh();
|
119
|
+
};
|
87
120
|
|
88
|
-
|
89
|
-
|
121
|
+
var ScrollSpy =
|
122
|
+
/*#__PURE__*/
|
123
|
+
function () {
|
124
|
+
function ScrollSpy(element, config) {
|
125
|
+
var _this = this;
|
126
|
+
|
127
|
+
this._element = element;
|
128
|
+
this._scrollElement = element.tagName === 'BODY' ? window : element;
|
129
|
+
this._config = this._getConfig(config);
|
130
|
+
this._selector = this._config.target + " " + Selector.NAV_LINKS + "," + (this._config.target + " " + Selector.LIST_ITEMS + ",") + (this._config.target + " " + Selector.DROPDOWN_ITEMS);
|
131
|
+
this._offsets = [];
|
132
|
+
this._targets = [];
|
133
|
+
this._activeTarget = null;
|
134
|
+
this._scrollHeight = 0;
|
135
|
+
$$$1(this._scrollElement).on(Event.SCROLL, function (event) {
|
136
|
+
return _this._process(event);
|
137
|
+
});
|
138
|
+
this.refresh();
|
90
139
|
|
140
|
+
this._process();
|
141
|
+
} // Getters
|
91
142
|
|
92
|
-
var _proto = ScrollSpy.prototype;
|
93
143
|
|
94
|
-
|
95
|
-
_proto.refresh = function refresh() {
|
96
|
-
var _this2 = this;
|
144
|
+
var _proto = ScrollSpy.prototype;
|
97
145
|
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
this._offsets = [];
|
102
|
-
this._targets = [];
|
103
|
-
this._scrollHeight = this._getScrollHeight();
|
104
|
-
var targets = $.makeArray($(this._selector));
|
105
|
-
targets.map(function (element) {
|
106
|
-
var target;
|
107
|
-
var targetSelector = Util.getSelectorFromElement(element);
|
146
|
+
// Public
|
147
|
+
_proto.refresh = function refresh() {
|
148
|
+
var _this2 = this;
|
108
149
|
|
109
|
-
|
110
|
-
|
111
|
-
|
150
|
+
var autoMethod = this._scrollElement === this._scrollElement.window ? OffsetMethod.OFFSET : OffsetMethod.POSITION;
|
151
|
+
var offsetMethod = this._config.method === 'auto' ? autoMethod : this._config.method;
|
152
|
+
var offsetBase = offsetMethod === OffsetMethod.POSITION ? this._getScrollTop() : 0;
|
153
|
+
this._offsets = [];
|
154
|
+
this._targets = [];
|
155
|
+
this._scrollHeight = this._getScrollHeight();
|
156
|
+
var targets = [].slice.call(document.querySelectorAll(this._selector));
|
157
|
+
targets.map(function (element) {
|
158
|
+
var target;
|
159
|
+
var targetSelector = Util.getSelectorFromElement(element);
|
112
160
|
|
113
|
-
|
114
|
-
|
161
|
+
if (targetSelector) {
|
162
|
+
target = document.querySelector(targetSelector);
|
163
|
+
}
|
115
164
|
|
116
|
-
if (
|
117
|
-
|
118
|
-
|
165
|
+
if (target) {
|
166
|
+
var targetBCR = target.getBoundingClientRect();
|
167
|
+
|
168
|
+
if (targetBCR.width || targetBCR.height) {
|
169
|
+
// TODO (fat): remove sketch reliance on jQuery position/offset
|
170
|
+
return [$$$1(target)[offsetMethod]().top + offsetBase, targetSelector];
|
171
|
+
}
|
119
172
|
}
|
120
|
-
}
|
121
173
|
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
174
|
+
return null;
|
175
|
+
}).filter(function (item) {
|
176
|
+
return item;
|
177
|
+
}).sort(function (a, b) {
|
178
|
+
return a[0] - b[0];
|
179
|
+
}).forEach(function (item) {
|
180
|
+
_this2._offsets.push(item[0]);
|
181
|
+
|
182
|
+
_this2._targets.push(item[1]);
|
183
|
+
});
|
184
|
+
};
|
185
|
+
|
186
|
+
_proto.dispose = function dispose() {
|
187
|
+
$$$1.removeData(this._element, DATA_KEY);
|
188
|
+
$$$1(this._scrollElement).off(EVENT_KEY);
|
189
|
+
this._element = null;
|
190
|
+
this._scrollElement = null;
|
191
|
+
this._config = null;
|
192
|
+
this._selector = null;
|
193
|
+
this._offsets = null;
|
194
|
+
this._targets = null;
|
195
|
+
this._activeTarget = null;
|
196
|
+
this._scrollHeight = null;
|
197
|
+
}; // Private
|
129
198
|
|
130
|
-
_this2._targets.push(item[1]);
|
131
|
-
});
|
132
|
-
};
|
133
199
|
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
_proto._getConfig = function _getConfig(config) {
|
149
|
-
config = _objectSpread({}, Default, typeof config === 'object' && config ? config : {});
|
150
|
-
|
151
|
-
if (typeof config.target !== 'string') {
|
152
|
-
var id = $(config.target).attr('id');
|
153
|
-
|
154
|
-
if (!id) {
|
155
|
-
id = Util.getUID(NAME);
|
156
|
-
$(config.target).attr('id', id);
|
200
|
+
_proto._getConfig = function _getConfig(config) {
|
201
|
+
config = _objectSpread({}, Default, typeof config === 'object' && config ? config : {});
|
202
|
+
|
203
|
+
if (typeof config.target !== 'string') {
|
204
|
+
var id = $$$1(config.target).attr('id');
|
205
|
+
|
206
|
+
if (!id) {
|
207
|
+
id = Util.getUID(NAME);
|
208
|
+
$$$1(config.target).attr('id', id);
|
209
|
+
}
|
210
|
+
|
211
|
+
config.target = "#" + id;
|
157
212
|
}
|
158
213
|
|
159
|
-
|
160
|
-
|
214
|
+
Util.typeCheckConfig(NAME, config, DefaultType);
|
215
|
+
return config;
|
216
|
+
};
|
161
217
|
|
162
|
-
|
163
|
-
|
164
|
-
|
218
|
+
_proto._getScrollTop = function _getScrollTop() {
|
219
|
+
return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop;
|
220
|
+
};
|
165
221
|
|
166
|
-
|
167
|
-
|
168
|
-
|
222
|
+
_proto._getScrollHeight = function _getScrollHeight() {
|
223
|
+
return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);
|
224
|
+
};
|
169
225
|
|
170
|
-
|
171
|
-
|
172
|
-
|
226
|
+
_proto._getOffsetHeight = function _getOffsetHeight() {
|
227
|
+
return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height;
|
228
|
+
};
|
173
229
|
|
174
|
-
|
175
|
-
|
176
|
-
};
|
230
|
+
_proto._process = function _process() {
|
231
|
+
var scrollTop = this._getScrollTop() + this._config.offset;
|
177
232
|
|
178
|
-
|
179
|
-
var scrollTop = this._getScrollTop() + this._config.offset;
|
233
|
+
var scrollHeight = this._getScrollHeight();
|
180
234
|
|
181
|
-
|
235
|
+
var maxScroll = this._config.offset + scrollHeight - this._getOffsetHeight();
|
182
236
|
|
183
|
-
|
237
|
+
if (this._scrollHeight !== scrollHeight) {
|
238
|
+
this.refresh();
|
239
|
+
}
|
184
240
|
|
185
|
-
|
186
|
-
|
187
|
-
}
|
241
|
+
if (scrollTop >= maxScroll) {
|
242
|
+
var target = this._targets[this._targets.length - 1];
|
188
243
|
|
189
|
-
|
190
|
-
|
244
|
+
if (this._activeTarget !== target) {
|
245
|
+
this._activate(target);
|
246
|
+
}
|
191
247
|
|
192
|
-
|
193
|
-
this._activate(target);
|
248
|
+
return;
|
194
249
|
}
|
195
250
|
|
196
|
-
|
197
|
-
|
251
|
+
if (this._activeTarget && scrollTop < this._offsets[0] && this._offsets[0] > 0) {
|
252
|
+
this._activeTarget = null;
|
198
253
|
|
199
|
-
|
200
|
-
this._activeTarget = null;
|
254
|
+
this._clear();
|
201
255
|
|
202
|
-
|
256
|
+
return;
|
257
|
+
}
|
203
258
|
|
204
|
-
|
205
|
-
}
|
259
|
+
var offsetLength = this._offsets.length;
|
206
260
|
|
207
|
-
|
208
|
-
|
261
|
+
for (var i = offsetLength; i--;) {
|
262
|
+
var isActiveTarget = this._activeTarget !== this._targets[i] && scrollTop >= this._offsets[i] && (typeof this._offsets[i + 1] === 'undefined' || scrollTop < this._offsets[i + 1]);
|
209
263
|
|
210
|
-
|
211
|
-
|
264
|
+
if (isActiveTarget) {
|
265
|
+
this._activate(this._targets[i]);
|
266
|
+
}
|
212
267
|
}
|
213
|
-
}
|
214
|
-
};
|
268
|
+
};
|
215
269
|
|
216
|
-
|
217
|
-
|
270
|
+
_proto._activate = function _activate(target) {
|
271
|
+
this._activeTarget = target;
|
218
272
|
|
219
|
-
|
273
|
+
this._clear();
|
220
274
|
|
221
|
-
|
275
|
+
var queries = this._selector.split(','); // eslint-disable-next-line arrow-body-style
|
222
276
|
|
223
277
|
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
278
|
+
queries = queries.map(function (selector) {
|
279
|
+
return selector + "[data-target=\"" + target + "\"]," + (selector + "[href=\"" + target + "\"]");
|
280
|
+
});
|
281
|
+
var $link = $$$1([].slice.call(document.querySelectorAll(queries.join(','))));
|
228
282
|
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
283
|
+
if ($link.hasClass(ClassName.DROPDOWN_ITEM)) {
|
284
|
+
$link.closest(Selector.DROPDOWN).find(Selector.DROPDOWN_TOGGLE).addClass(ClassName.ACTIVE);
|
285
|
+
$link.addClass(ClassName.ACTIVE);
|
286
|
+
} else {
|
287
|
+
// Set triggered link as active
|
288
|
+
$link.addClass(ClassName.ACTIVE); // Set triggered links parents as active
|
289
|
+
// With both <ul> and <nav> markup a parent is the previous sibling of any nav ancestor
|
236
290
|
|
237
|
-
|
291
|
+
$link.parents(Selector.NAV_LIST_GROUP).prev(Selector.NAV_LINKS + ", " + Selector.LIST_ITEMS).addClass(ClassName.ACTIVE); // Handle special case when .nav-link is inside .nav-item
|
238
292
|
|
239
|
-
|
240
|
-
|
293
|
+
$link.parents(Selector.NAV_LIST_GROUP).prev(Selector.NAV_ITEMS).children(Selector.NAV_LINKS).addClass(ClassName.ACTIVE);
|
294
|
+
}
|
241
295
|
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
296
|
+
$$$1(this._scrollElement).trigger(Event.ACTIVATE, {
|
297
|
+
relatedTarget: target
|
298
|
+
});
|
299
|
+
};
|
246
300
|
|
247
|
-
|
248
|
-
|
249
|
-
|
301
|
+
_proto._clear = function _clear() {
|
302
|
+
var nodes = [].slice.call(document.querySelectorAll(this._selector));
|
303
|
+
$$$1(nodes).filter(Selector.ACTIVE).removeClass(ClassName.ACTIVE);
|
304
|
+
}; // Static
|
250
305
|
|
251
306
|
|
252
|
-
|
253
|
-
|
254
|
-
|
307
|
+
ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
|
308
|
+
return this.each(function () {
|
309
|
+
var data = $$$1(this).data(DATA_KEY);
|
255
310
|
|
256
|
-
|
311
|
+
var _config = typeof config === 'object' && config;
|
257
312
|
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
313
|
+
if (!data) {
|
314
|
+
data = new ScrollSpy(this, _config);
|
315
|
+
$$$1(this).data(DATA_KEY, data);
|
316
|
+
}
|
262
317
|
|
263
|
-
|
264
|
-
|
265
|
-
|
318
|
+
if (typeof config === 'string') {
|
319
|
+
if (typeof data[config] === 'undefined') {
|
320
|
+
throw new TypeError("No method named \"" + config + "\"");
|
321
|
+
}
|
322
|
+
|
323
|
+
data[config]();
|
266
324
|
}
|
325
|
+
});
|
326
|
+
};
|
267
327
|
|
268
|
-
|
328
|
+
_createClass(ScrollSpy, null, [{
|
329
|
+
key: "VERSION",
|
330
|
+
get: function get() {
|
331
|
+
return VERSION;
|
269
332
|
}
|
270
|
-
}
|
271
|
-
|
333
|
+
}, {
|
334
|
+
key: "Default",
|
335
|
+
get: function get() {
|
336
|
+
return Default;
|
337
|
+
}
|
338
|
+
}]);
|
272
339
|
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
get: function get() {
|
281
|
-
return Default;
|
282
|
-
}
|
283
|
-
}]);
|
340
|
+
return ScrollSpy;
|
341
|
+
}();
|
342
|
+
/**
|
343
|
+
* ------------------------------------------------------------------------
|
344
|
+
* Data Api implementation
|
345
|
+
* ------------------------------------------------------------------------
|
346
|
+
*/
|
284
347
|
|
285
|
-
return ScrollSpy;
|
286
|
-
}();
|
287
|
-
/**
|
288
|
-
* ------------------------------------------------------------------------
|
289
|
-
* Data Api implementation
|
290
|
-
* ------------------------------------------------------------------------
|
291
|
-
*/
|
292
348
|
|
349
|
+
$$$1(window).on(Event.LOAD_DATA_API, function () {
|
350
|
+
var scrollSpys = [].slice.call(document.querySelectorAll(Selector.DATA_SPY));
|
351
|
+
var scrollSpysLength = scrollSpys.length;
|
293
352
|
|
294
|
-
|
295
|
-
|
353
|
+
for (var i = scrollSpysLength; i--;) {
|
354
|
+
var $spy = $$$1(scrollSpys[i]);
|
296
355
|
|
297
|
-
|
298
|
-
|
356
|
+
ScrollSpy._jQueryInterface.call($spy, $spy.data());
|
357
|
+
}
|
358
|
+
});
|
359
|
+
/**
|
360
|
+
* ------------------------------------------------------------------------
|
361
|
+
* jQuery
|
362
|
+
* ------------------------------------------------------------------------
|
363
|
+
*/
|
299
364
|
|
300
|
-
|
301
|
-
|
302
|
-
});
|
303
|
-
/**
|
304
|
-
* ------------------------------------------------------------------------
|
305
|
-
* jQuery
|
306
|
-
* ------------------------------------------------------------------------
|
307
|
-
*/
|
365
|
+
$$$1.fn[NAME] = ScrollSpy._jQueryInterface;
|
366
|
+
$$$1.fn[NAME].Constructor = ScrollSpy;
|
308
367
|
|
309
|
-
|
310
|
-
|
368
|
+
$$$1.fn[NAME].noConflict = function () {
|
369
|
+
$$$1.fn[NAME] = JQUERY_NO_CONFLICT;
|
370
|
+
return ScrollSpy._jQueryInterface;
|
371
|
+
};
|
311
372
|
|
312
|
-
|
313
|
-
|
314
|
-
return ScrollSpy._jQueryInterface;
|
315
|
-
};
|
373
|
+
return ScrollSpy;
|
374
|
+
}($);
|
316
375
|
|
317
376
|
return ScrollSpy;
|
318
|
-
|
319
|
-
|
377
|
+
|
378
|
+
})));
|
379
|
+
//# sourceMappingURL=scrollspy.js.map
|