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/tab.js"],"names":["Tab","$","NAME","VERSION","DATA_KEY","EVENT_KEY","DATA_API_KEY","JQUERY_NO_CONFLICT","fn","Event","HIDE","HIDDEN","SHOW","SHOWN","CLICK_DATA_API","ClassName","DROPDOWN_MENU","ACTIVE","DISABLED","FADE","Selector","DROPDOWN","NAV_LIST_GROUP","ACTIVE_UL","DATA_TOGGLE","DROPDOWN_TOGGLE","DROPDOWN_ACTIVE_CHILD","element","_element","show","parentNode","nodeType","Node","ELEMENT_NODE","hasClass","target","previous","listElement","closest","selector","Util","getSelectorFromElement","itemSelector","nodeName","makeArray","find","length","hideEvent","relatedTarget","showEvent","trigger","isDefaultPrevented","_activate","complete","hiddenEvent","shownEvent","dispose","removeData","container","callback","activeElements","children","active","isTransitioning","_transitionComplete","transitionDuration","getTransitionDurationFromElement","one","TRANSITION_END","emulateTransitionEnd","removeClass","dropdownChild","getAttribute","setAttribute","addClass","reflow","dropdownElement","_jQueryInterface","config","each","$this","data","TypeError","document","on","event","preventDefault","call","Constructor","noConflict"],"mappings":";;;;AAGA;;;;;;AAOA,IAAMA,MAAO,UAACC,CAAD,EAAO;AAClB;;;;;AAMA,MAAMC,OAAqB,KAA3B;AACA,MAAMC,UAAqB,OAA3B;AACA,MAAMC,WAAqB,QAA3B;AACA,MAAMC,kBAAyBD,QAA/B;AACA,MAAME,eAAqB,WAA3B;AACA,MAAMC,qBAAqBN,EAAEO,EAAF,CAAKN,IAAL,CAA3B;AAEA,MAAMO,QAAQ;AACZC,mBAAwBL,SADZ;AAEZM,uBAA0BN,SAFd;AAGZO,mBAAwBP,SAHZ;AAIZQ,qBAAyBR,SAJb;AAKZS,8BAAyBT,SAAzB,GAAqCC;AALzB,GAAd;AAQA,MAAMS,YAAY;AAChBC,mBAAgB,eADA;AAEhBC,YAAgB,QAFA;AAGhBC,cAAgB,UAHA;AAIhBC,UAAgB,MAJA;AAKhBP,UAAgB;AALA,GAAlB;AAQA,MAAMQ,WAAW;AACfC,cAAwB,WADT;AAEfC,oBAAwB,mBAFT;AAGfL,YAAwB,SAHT;AAIfM,eAAwB,gBAJT;AAKfC,iBAAwB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;AAvDe;;AAAA;AAAA;AAgOlB;;;;;;;AAMAF,IAAEkF,QAAF,EACGC,EADH,CACM3E,MAAMK,cADZ,EAC4BM,SAASI,WADrC,EACkD,UAAU6D,KAAV,EAAiB;AAC/DA,UAAMC,cAAN;;AACAtF,QAAI6E,gBAAJ,CAAqBU,IAArB,CAA0BtF,EAAE,IAAF,CAA1B,EAAmC,MAAnC;AACD,GAJH;AAMA;;;;;;AAMAA,IAAEO,EAAF,CAAKN,IAAL,IAAaF,IAAI6E,gBAAjB;AACA5E,IAAEO,EAAF,CAAKN,IAAL,EAAWsF,WAAX,GAAyBxF,GAAzB;;AACAC,IAAEO,EAAF,CAAKN,IAAL,EAAWuF,UAAX,GAAwB,YAAY;AAClCxF,MAAEO,EAAF,CAAKN,IAAL,IAAaK,kBAAb;AACA,WAAOP,IAAI6E,gBAAX;AACD,GAHD;;AAKA,SAAO7E,GAAP;AACD,CA1PW,CA0PTC,CA1PS,CAAZ","sourcesContent":["import $ from 'jquery'\nimport Util from './util'\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.1.1): tab.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst Tab = (($) => {\n /**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\n const NAME = 'tab'\n const VERSION = '4.1.1'\n const DATA_KEY = 'bs.tab'\n const EVENT_KEY = `.${DATA_KEY}`\n const DATA_API_KEY = '.data-api'\n const JQUERY_NO_CONFLICT = $.fn[NAME]\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 CLICK_DATA_API : `click${EVENT_KEY}${DATA_API_KEY}`\n }\n\n const ClassName = {\n DROPDOWN_MENU : 'dropdown-menu',\n ACTIVE : 'active',\n DISABLED : 'disabled',\n FADE : 'fade',\n SHOW : 'show'\n }\n\n const Selector = {\n DROPDOWN : '.dropdown',\n NAV_LIST_GROUP : '.nav, .list-group',\n ACTIVE : '.active',\n ACTIVE_UL : '> li > .active',\n DATA_TOGGLE : '[data-toggle=\"tab\"], [data-toggle=\"pill\"], [data-toggle=\"list\"]',\n DROPDOWN_TOGGLE : '.dropdown-toggle',\n DROPDOWN_ACTIVE_CHILD : '> .dropdown-menu .active'\n }\n\n /**\n * ------------------------------------------------------------------------\n * Class Definition\n * ------------------------------------------------------------------------\n */\n\n class Tab {\n constructor(element) {\n this._element = element\n }\n\n // Getters\n\n static get VERSION() {\n return VERSION\n }\n\n // Public\n\n show() {\n if (this._element.parentNode &&\n this._element.parentNode.nodeType === Node.ELEMENT_NODE &&\n $(this._element).hasClass(ClassName.ACTIVE) ||\n $(this._element).hasClass(ClassName.DISABLED)) {\n return\n }\n\n let target\n let previous\n const listElement = $(this._element).closest(Selector.NAV_LIST_GROUP)[0]\n const selector = Util.getSelectorFromElement(this._element)\n\n if (listElement) {\n const itemSelector = listElement.nodeName === 'UL' ? Selector.ACTIVE_UL : Selector.ACTIVE\n previous = $.makeArray($(listElement).find(itemSelector))\n previous = previous[previous.length - 1]\n }\n\n const hideEvent = $.Event(Event.HIDE, {\n relatedTarget: this._element\n })\n\n const showEvent = $.Event(Event.SHOW, {\n relatedTarget: previous\n })\n\n if (previous) {\n $(previous).trigger(hideEvent)\n }\n\n $(this._element).trigger(showEvent)\n\n if (showEvent.isDefaultPrevented() ||\n hideEvent.isDefaultPrevented()) {\n return\n }\n\n if (selector) {\n target = $(selector)[0]\n }\n\n this._activate(\n this._element,\n listElement\n )\n\n const complete = () => {\n const hiddenEvent = $.Event(Event.HIDDEN, {\n relatedTarget: this._element\n })\n\n const shownEvent = $.Event(Event.SHOWN, {\n relatedTarget: previous\n })\n\n $(previous).trigger(hiddenEvent)\n $(this._element).trigger(shownEvent)\n }\n\n if (target) {\n this._activate(target, target.parentNode, complete)\n } else {\n complete()\n }\n }\n\n dispose() {\n $.removeData(this._element, DATA_KEY)\n this._element = null\n }\n\n // Private\n\n _activate(element, container, callback) {\n let activeElements\n if (container.nodeName === 'UL') {\n activeElements = $(container).find(Selector.ACTIVE_UL)\n } else {\n activeElements = $(container).children(Selector.ACTIVE)\n }\n\n const active = activeElements[0]\n const isTransitioning = callback &&\n (active && $(active).hasClass(ClassName.FADE))\n\n const complete = () => this._transitionComplete(\n element,\n active,\n callback\n )\n\n if (active && isTransitioning) {\n const transitionDuration = Util.getTransitionDurationFromElement(active)\n\n $(active)\n .one(Util.TRANSITION_END, complete)\n .emulateTransitionEnd(transitionDuration)\n } else {\n complete()\n }\n }\n\n _transitionComplete(element, active, callback) {\n if (active) {\n $(active).removeClass(`${ClassName.SHOW} ${ClassName.ACTIVE}`)\n\n const dropdownChild = $(active.parentNode).find(\n Selector.DROPDOWN_ACTIVE_CHILD\n )[0]\n\n if (dropdownChild) {\n $(dropdownChild).removeClass(ClassName.ACTIVE)\n }\n\n if (active.getAttribute('role') === 'tab') {\n active.setAttribute('aria-selected', false)\n }\n }\n\n $(element).addClass(ClassName.ACTIVE)\n if (element.getAttribute('role') === 'tab') {\n element.setAttribute('aria-selected', true)\n }\n\n Util.reflow(element)\n $(element).addClass(ClassName.SHOW)\n\n if (element.parentNode &&\n $(element.parentNode).hasClass(ClassName.DROPDOWN_MENU)) {\n const dropdownElement = $(element).closest(Selector.DROPDOWN)[0]\n if (dropdownElement) {\n $(dropdownElement).find(Selector.DROPDOWN_TOGGLE).addClass(ClassName.ACTIVE)\n }\n\n element.setAttribute('aria-expanded', true)\n }\n\n if (callback) {\n callback()\n }\n }\n\n // Static\n\n static _jQueryInterface(config) {\n return this.each(function () {\n const $this = $(this)\n let data = $this.data(DATA_KEY)\n\n if (!data) {\n data = new Tab(this)\n $this.data(DATA_KEY, data)\n }\n\n if (typeof config === 'string') {\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`)\n }\n data[config]()\n }\n })\n }\n }\n\n /**\n * ------------------------------------------------------------------------\n * Data Api implementation\n * ------------------------------------------------------------------------\n */\n\n $(document)\n .on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {\n event.preventDefault()\n Tab._jQueryInterface.call($(this), 'show')\n })\n\n /**\n * ------------------------------------------------------------------------\n * jQuery\n * ------------------------------------------------------------------------\n */\n\n $.fn[NAME] = Tab._jQueryInterface\n $.fn[NAME].Constructor = Tab\n $.fn[NAME].noConflict = function () {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return Tab._jQueryInterface\n }\n\n return Tab\n})($)\n\nexport default Tab\n"],"file":"tab.js"}
|
1
|
+
{"version":3,"file":"tab.js","sources":["../src/tab.js"],"sourcesContent":["import $ from 'jquery'\nimport Util from './util'\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.1.3): tab.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst Tab = (($) => {\n /**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\n const NAME = 'tab'\n const VERSION = '4.1.3'\n const DATA_KEY = 'bs.tab'\n const EVENT_KEY = `.${DATA_KEY}`\n const DATA_API_KEY = '.data-api'\n const JQUERY_NO_CONFLICT = $.fn[NAME]\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 CLICK_DATA_API : `click${EVENT_KEY}${DATA_API_KEY}`\n }\n\n const ClassName = {\n DROPDOWN_MENU : 'dropdown-menu',\n ACTIVE : 'active',\n DISABLED : 'disabled',\n FADE : 'fade',\n SHOW : 'show'\n }\n\n const Selector = {\n DROPDOWN : '.dropdown',\n NAV_LIST_GROUP : '.nav, .list-group',\n ACTIVE : '.active',\n ACTIVE_UL : '> li > .active',\n DATA_TOGGLE : '[data-toggle=\"tab\"], [data-toggle=\"pill\"], [data-toggle=\"list\"]',\n DROPDOWN_TOGGLE : '.dropdown-toggle',\n DROPDOWN_ACTIVE_CHILD : '> .dropdown-menu .active'\n }\n\n /**\n * ------------------------------------------------------------------------\n * Class Definition\n * ------------------------------------------------------------------------\n */\n\n class Tab {\n constructor(element) {\n this._element = element\n }\n\n // Getters\n\n static get VERSION() {\n return VERSION\n }\n\n // Public\n\n show() {\n if (this._element.parentNode &&\n this._element.parentNode.nodeType === Node.ELEMENT_NODE &&\n $(this._element).hasClass(ClassName.ACTIVE) ||\n $(this._element).hasClass(ClassName.DISABLED)) {\n return\n }\n\n let target\n let previous\n const listElement = $(this._element).closest(Selector.NAV_LIST_GROUP)[0]\n const selector = Util.getSelectorFromElement(this._element)\n\n if (listElement) {\n const itemSelector = listElement.nodeName === 'UL' ? Selector.ACTIVE_UL : Selector.ACTIVE\n previous = $.makeArray($(listElement).find(itemSelector))\n previous = previous[previous.length - 1]\n }\n\n const hideEvent = $.Event(Event.HIDE, {\n relatedTarget: this._element\n })\n\n const showEvent = $.Event(Event.SHOW, {\n relatedTarget: previous\n })\n\n if (previous) {\n $(previous).trigger(hideEvent)\n }\n\n $(this._element).trigger(showEvent)\n\n if (showEvent.isDefaultPrevented() ||\n hideEvent.isDefaultPrevented()) {\n return\n }\n\n if (selector) {\n target = document.querySelector(selector)\n }\n\n this._activate(\n this._element,\n listElement\n )\n\n const complete = () => {\n const hiddenEvent = $.Event(Event.HIDDEN, {\n relatedTarget: this._element\n })\n\n const shownEvent = $.Event(Event.SHOWN, {\n relatedTarget: previous\n })\n\n $(previous).trigger(hiddenEvent)\n $(this._element).trigger(shownEvent)\n }\n\n if (target) {\n this._activate(target, target.parentNode, complete)\n } else {\n complete()\n }\n }\n\n dispose() {\n $.removeData(this._element, DATA_KEY)\n this._element = null\n }\n\n // Private\n\n _activate(element, container, callback) {\n let activeElements\n if (container.nodeName === 'UL') {\n activeElements = $(container).find(Selector.ACTIVE_UL)\n } else {\n activeElements = $(container).children(Selector.ACTIVE)\n }\n\n const active = activeElements[0]\n const isTransitioning = callback &&\n (active && $(active).hasClass(ClassName.FADE))\n\n const complete = () => this._transitionComplete(\n element,\n active,\n callback\n )\n\n if (active && isTransitioning) {\n const transitionDuration = Util.getTransitionDurationFromElement(active)\n\n $(active)\n .one(Util.TRANSITION_END, complete)\n .emulateTransitionEnd(transitionDuration)\n } else {\n complete()\n }\n }\n\n _transitionComplete(element, active, callback) {\n if (active) {\n $(active).removeClass(`${ClassName.SHOW} ${ClassName.ACTIVE}`)\n\n const dropdownChild = $(active.parentNode).find(\n Selector.DROPDOWN_ACTIVE_CHILD\n )[0]\n\n if (dropdownChild) {\n $(dropdownChild).removeClass(ClassName.ACTIVE)\n }\n\n if (active.getAttribute('role') === 'tab') {\n active.setAttribute('aria-selected', false)\n }\n }\n\n $(element).addClass(ClassName.ACTIVE)\n if (element.getAttribute('role') === 'tab') {\n element.setAttribute('aria-selected', true)\n }\n\n Util.reflow(element)\n $(element).addClass(ClassName.SHOW)\n\n if (element.parentNode &&\n $(element.parentNode).hasClass(ClassName.DROPDOWN_MENU)) {\n const dropdownElement = $(element).closest(Selector.DROPDOWN)[0]\n if (dropdownElement) {\n const dropdownToggleList = [].slice.call(dropdownElement.querySelectorAll(Selector.DROPDOWN_TOGGLE))\n $(dropdownToggleList).addClass(ClassName.ACTIVE)\n }\n\n element.setAttribute('aria-expanded', true)\n }\n\n if (callback) {\n callback()\n }\n }\n\n // Static\n\n static _jQueryInterface(config) {\n return this.each(function () {\n const $this = $(this)\n let data = $this.data(DATA_KEY)\n\n if (!data) {\n data = new Tab(this)\n $this.data(DATA_KEY, data)\n }\n\n if (typeof config === 'string') {\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`)\n }\n data[config]()\n }\n })\n }\n }\n\n /**\n * ------------------------------------------------------------------------\n * Data Api implementation\n * ------------------------------------------------------------------------\n */\n\n $(document)\n .on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {\n event.preventDefault()\n Tab._jQueryInterface.call($(this), 'show')\n })\n\n /**\n * ------------------------------------------------------------------------\n * jQuery\n * ------------------------------------------------------------------------\n */\n\n $.fn[NAME] = Tab._jQueryInterface\n $.fn[NAME].Constructor = Tab\n $.fn[NAME].noConflict = function () {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return Tab._jQueryInterface\n }\n\n return Tab\n})($)\n\nexport default Tab\n"],"names":["Tab","$","NAME","VERSION","DATA_KEY","EVENT_KEY","DATA_API_KEY","JQUERY_NO_CONFLICT","fn","Event","HIDE","HIDDEN","SHOW","SHOWN","CLICK_DATA_API","ClassName","DROPDOWN_MENU","ACTIVE","DISABLED","FADE","Selector","DROPDOWN","NAV_LIST_GROUP","ACTIVE_UL","DATA_TOGGLE","DROPDOWN_TOGGLE","DROPDOWN_ACTIVE_CHILD","element","_element","show","parentNode","nodeType","Node","ELEMENT_NODE","hasClass","target","previous","listElement","closest","selector","Util","getSelectorFromElement","itemSelector","nodeName","makeArray","find","length","hideEvent","relatedTarget","showEvent","trigger","isDefaultPrevented","document","querySelector","_activate","complete","hiddenEvent","shownEvent","dispose","removeData","container","callback","activeElements","children","active","isTransitioning","_transitionComplete","transitionDuration","getTransitionDurationFromElement","one","TRANSITION_END","emulateTransitionEnd","removeClass","dropdownChild","getAttribute","setAttribute","addClass","reflow","dropdownElement","dropdownToggleList","slice","call","querySelectorAll","_jQueryInterface","config","each","$this","data","TypeError","on","event","preventDefault","Constructor","noConflict"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;EAGA;;;;;;;EAOA,IAAMA,MAAO,UAACC,IAAD,EAAO;EAClB;;;;;EAMA,MAAMC,OAAqB,KAA3B;EACA,MAAMC,UAAqB,OAA3B;EACA,MAAMC,WAAqB,QAA3B;EACA,MAAMC,kBAAyBD,QAA/B;EACA,MAAME,eAAqB,WAA3B;EACA,MAAMC,qBAAqBN,KAAEO,EAAF,CAAKN,IAAL,CAA3B;EAEA,MAAMO,QAAQ;EACZC,mBAAwBL,SADZ;EAEZM,uBA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,IAAL,EAAW;EACTA,iBAAO,IAAIvF,GAAJ,CAAQ,IAAR,CAAP;EACAsF,gBAAMC,IAAN,CAAWnF,QAAX,EAAqBmF,IAArB;EACD;;EAED,YAAI,OAAOH,MAAP,KAAkB,QAAtB,EAAgC;EAC9B,cAAI,OAAOG,KAAKH,MAAL,CAAP,KAAwB,WAA5B,EAAyC;EACvC,kBAAM,IAAII,SAAJ,wBAAkCJ,MAAlC,QAAN;EACD;;EACDG,eAAKH,MAAL;EACD;EACF,OAfM,CAAP;EAgBD,KA9Ne;;EAAA;EAAA;EAAA,0BAqDK;EACnB,eAAOjF,OAAP;EACD;EAvDe;;EAAA;EAAA;EAiOlB;;;;;;;EAMAF,OAAEmD,QAAF,EACGqC,EADH,CACMhF,MAAMK,cADZ,EAC4BM,SAASI,WADrC,EACkD,UAAUkE,KAAV,EAAiB;EAC/DA,UAAMC,cAAN;;EACA3F,QAAImF,gBAAJ,CAAqBF,IAArB,CAA0BhF,KAAE,IAAF,CAA1B,EAAmC,MAAnC;EACD,GAJH;EAMA;;;;;;EAMAA,OAAEO,EAAF,CAAKN,IAAL,IAAaF,IAAImF,gBAAjB;EACAlF,OAAEO,EAAF,CAAKN,IAAL,EAAW0F,WAAX,GAAyB5F,GAAzB;;EACAC,OAAEO,EAAF,CAAKN,IAAL,EAAW2F,UAAX,GAAwB,YAAY;EAClC5F,SAAEO,EAAF,CAAKN,IAAL,IAAaK,kBAAb;EACA,WAAOP,IAAImF,gBAAX;EACD,GAHD;;EAKA,SAAOnF,GAAP;EACD,CA3PW,CA2PTC,CA3PS,CAAZ;;;;;;;;"}
|
@@ -1,674 +1,734 @@
|
|
1
|
-
|
1
|
+
(function (global, factory) {
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery'), require('popper.js'), require('./util.js')) :
|
3
|
+
typeof define === 'function' && define.amd ? define(['jquery', 'popper.js', './util.js'], factory) :
|
4
|
+
(global.Tooltip = factory(global.jQuery,global.Popper,global.Util));
|
5
|
+
}(this, (function ($,Popper,Util) { 'use strict';
|
6
|
+
|
7
|
+
$ = $ && $.hasOwnProperty('default') ? $['default'] : $;
|
8
|
+
Popper = Popper && Popper.hasOwnProperty('default') ? Popper['default'] : Popper;
|
9
|
+
Util = Util && Util.hasOwnProperty('default') ? Util['default'] : Util;
|
10
|
+
|
11
|
+
function _defineProperties(target, props) {
|
12
|
+
for (var i = 0; i < props.length; i++) {
|
13
|
+
var descriptor = props[i];
|
14
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
15
|
+
descriptor.configurable = true;
|
16
|
+
if ("value" in descriptor) descriptor.writable = true;
|
17
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
22
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
23
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
24
|
+
return Constructor;
|
25
|
+
}
|
26
|
+
|
27
|
+
function _defineProperty(obj, key, value) {
|
28
|
+
if (key in obj) {
|
29
|
+
Object.defineProperty(obj, key, {
|
30
|
+
value: value,
|
31
|
+
enumerable: true,
|
32
|
+
configurable: true,
|
33
|
+
writable: true
|
34
|
+
});
|
35
|
+
} else {
|
36
|
+
obj[key] = value;
|
37
|
+
}
|
38
|
+
|
39
|
+
return obj;
|
40
|
+
}
|
2
41
|
|
3
|
-
function
|
42
|
+
function _objectSpread(target) {
|
43
|
+
for (var i = 1; i < arguments.length; i++) {
|
44
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
45
|
+
var ownKeys = Object.keys(source);
|
46
|
+
|
47
|
+
if (typeof Object.getOwnPropertySymbols === 'function') {
|
48
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
|
49
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
50
|
+
}));
|
51
|
+
}
|
4
52
|
|
5
|
-
|
53
|
+
ownKeys.forEach(function (key) {
|
54
|
+
_defineProperty(target, key, source[key]);
|
55
|
+
});
|
56
|
+
}
|
6
57
|
|
7
|
-
|
58
|
+
return target;
|
59
|
+
}
|
8
60
|
|
9
|
-
/**
|
10
|
-
* --------------------------------------------------------------------------
|
11
|
-
* Bootstrap (v4.1.1): tooltip.js
|
12
|
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
13
|
-
* --------------------------------------------------------------------------
|
14
|
-
*/
|
15
|
-
var Tooltip = function ($) {
|
16
61
|
/**
|
17
|
-
*
|
18
|
-
*
|
19
|
-
*
|
62
|
+
* --------------------------------------------------------------------------
|
63
|
+
* Bootstrap (v4.1.3): tooltip.js
|
64
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
65
|
+
* --------------------------------------------------------------------------
|
20
66
|
*/
|
21
|
-
|
22
|
-
var
|
23
|
-
var DATA_KEY = 'bs.tooltip';
|
24
|
-
var EVENT_KEY = "." + DATA_KEY;
|
25
|
-
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
26
|
-
var CLASS_PREFIX = 'bs-tooltip';
|
27
|
-
var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
|
28
|
-
var DefaultType = {
|
29
|
-
animation: 'boolean',
|
30
|
-
template: 'string',
|
31
|
-
title: '(string|element|function)',
|
32
|
-
trigger: 'string',
|
33
|
-
delay: '(number|object)',
|
34
|
-
html: 'boolean',
|
35
|
-
selector: '(string|boolean)',
|
36
|
-
placement: '(string|function)',
|
37
|
-
offset: '(number|string)',
|
38
|
-
container: '(string|element|boolean)',
|
39
|
-
fallbackPlacement: '(string|array)',
|
40
|
-
boundary: '(string|element)'
|
41
|
-
};
|
42
|
-
var AttachmentMap = {
|
43
|
-
AUTO: 'auto',
|
44
|
-
TOP: 'top',
|
45
|
-
RIGHT: 'right',
|
46
|
-
BOTTOM: 'bottom',
|
47
|
-
LEFT: 'left'
|
48
|
-
};
|
49
|
-
var Default = {
|
50
|
-
animation: true,
|
51
|
-
template: '<div class="tooltip" role="tooltip">' + '<div class="arrow"></div>' + '<div class="tooltip-inner"></div></div>',
|
52
|
-
trigger: 'hover focus',
|
53
|
-
title: '',
|
54
|
-
delay: 0,
|
55
|
-
html: false,
|
56
|
-
selector: false,
|
57
|
-
placement: 'top',
|
58
|
-
offset: 0,
|
59
|
-
container: false,
|
60
|
-
fallbackPlacement: 'flip',
|
61
|
-
boundary: 'scrollParent'
|
62
|
-
};
|
63
|
-
var HoverState = {
|
64
|
-
SHOW: 'show',
|
65
|
-
OUT: 'out'
|
66
|
-
};
|
67
|
-
var Event = {
|
68
|
-
HIDE: "hide" + EVENT_KEY,
|
69
|
-
HIDDEN: "hidden" + EVENT_KEY,
|
70
|
-
SHOW: "show" + EVENT_KEY,
|
71
|
-
SHOWN: "shown" + EVENT_KEY,
|
72
|
-
INSERTED: "inserted" + EVENT_KEY,
|
73
|
-
CLICK: "click" + EVENT_KEY,
|
74
|
-
FOCUSIN: "focusin" + EVENT_KEY,
|
75
|
-
FOCUSOUT: "focusout" + EVENT_KEY,
|
76
|
-
MOUSEENTER: "mouseenter" + EVENT_KEY,
|
77
|
-
MOUSELEAVE: "mouseleave" + EVENT_KEY
|
78
|
-
};
|
79
|
-
var ClassName = {
|
80
|
-
FADE: 'fade',
|
81
|
-
SHOW: 'show'
|
82
|
-
};
|
83
|
-
var Selector = {
|
84
|
-
TOOLTIP: '.tooltip',
|
85
|
-
TOOLTIP_INNER: '.tooltip-inner',
|
86
|
-
ARROW: '.arrow'
|
87
|
-
};
|
88
|
-
var Trigger = {
|
89
|
-
HOVER: 'hover',
|
90
|
-
FOCUS: 'focus',
|
91
|
-
CLICK: 'click',
|
92
|
-
MANUAL: 'manual'
|
67
|
+
|
68
|
+
var Tooltip = function ($$$1) {
|
93
69
|
/**
|
94
70
|
* ------------------------------------------------------------------------
|
95
|
-
*
|
71
|
+
* Constants
|
96
72
|
* ------------------------------------------------------------------------
|
97
73
|
*/
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
74
|
+
var NAME = 'tooltip';
|
75
|
+
var VERSION = '4.1.3';
|
76
|
+
var DATA_KEY = 'bs.tooltip';
|
77
|
+
var EVENT_KEY = "." + DATA_KEY;
|
78
|
+
var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
|
79
|
+
var CLASS_PREFIX = 'bs-tooltip';
|
80
|
+
var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
|
81
|
+
var DefaultType = {
|
82
|
+
animation: 'boolean',
|
83
|
+
template: 'string',
|
84
|
+
title: '(string|element|function)',
|
85
|
+
trigger: 'string',
|
86
|
+
delay: '(number|object)',
|
87
|
+
html: 'boolean',
|
88
|
+
selector: '(string|boolean)',
|
89
|
+
placement: '(string|function)',
|
90
|
+
offset: '(number|string)',
|
91
|
+
container: '(string|element|boolean)',
|
92
|
+
fallbackPlacement: '(string|array)',
|
93
|
+
boundary: '(string|element)'
|
94
|
+
};
|
95
|
+
var AttachmentMap = {
|
96
|
+
AUTO: 'auto',
|
97
|
+
TOP: 'top',
|
98
|
+
RIGHT: 'right',
|
99
|
+
BOTTOM: 'bottom',
|
100
|
+
LEFT: 'left'
|
101
|
+
};
|
102
|
+
var Default = {
|
103
|
+
animation: true,
|
104
|
+
template: '<div class="tooltip" role="tooltip">' + '<div class="arrow"></div>' + '<div class="tooltip-inner"></div></div>',
|
105
|
+
trigger: 'hover focus',
|
106
|
+
title: '',
|
107
|
+
delay: 0,
|
108
|
+
html: false,
|
109
|
+
selector: false,
|
110
|
+
placement: 'top',
|
111
|
+
offset: 0,
|
112
|
+
container: false,
|
113
|
+
fallbackPlacement: 'flip',
|
114
|
+
boundary: 'scrollParent'
|
115
|
+
};
|
116
|
+
var HoverState = {
|
117
|
+
SHOW: 'show',
|
118
|
+
OUT: 'out'
|
119
|
+
};
|
120
|
+
var Event = {
|
121
|
+
HIDE: "hide" + EVENT_KEY,
|
122
|
+
HIDDEN: "hidden" + EVENT_KEY,
|
123
|
+
SHOW: "show" + EVENT_KEY,
|
124
|
+
SHOWN: "shown" + EVENT_KEY,
|
125
|
+
INSERTED: "inserted" + EVENT_KEY,
|
126
|
+
CLICK: "click" + EVENT_KEY,
|
127
|
+
FOCUSIN: "focusin" + EVENT_KEY,
|
128
|
+
FOCUSOUT: "focusout" + EVENT_KEY,
|
129
|
+
MOUSEENTER: "mouseenter" + EVENT_KEY,
|
130
|
+
MOUSELEAVE: "mouseleave" + EVENT_KEY
|
131
|
+
};
|
132
|
+
var ClassName = {
|
133
|
+
FADE: 'fade',
|
134
|
+
SHOW: 'show'
|
135
|
+
};
|
136
|
+
var Selector = {
|
137
|
+
TOOLTIP: '.tooltip',
|
138
|
+
TOOLTIP_INNER: '.tooltip-inner',
|
139
|
+
ARROW: '.arrow'
|
140
|
+
};
|
141
|
+
var Trigger = {
|
142
|
+
HOVER: 'hover',
|
143
|
+
FOCUS: 'focus',
|
144
|
+
CLICK: 'click',
|
145
|
+
MANUAL: 'manual'
|
105
146
|
/**
|
106
|
-
*
|
107
|
-
*
|
147
|
+
* ------------------------------------------------------------------------
|
148
|
+
* Class Definition
|
149
|
+
* ------------------------------------------------------------------------
|
108
150
|
*/
|
109
|
-
if (typeof Popper === 'undefined') {
|
110
|
-
throw new TypeError('Bootstrap tooltips require Popper.js (https://popper.js.org)');
|
111
|
-
} // private
|
112
151
|
|
152
|
+
};
|
113
153
|
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
154
|
+
var Tooltip =
|
155
|
+
/*#__PURE__*/
|
156
|
+
function () {
|
157
|
+
function Tooltip(element, config) {
|
158
|
+
/**
|
159
|
+
* Check for Popper dependency
|
160
|
+
* Popper - https://popper.js.org
|
161
|
+
*/
|
162
|
+
if (typeof Popper === 'undefined') {
|
163
|
+
throw new TypeError('Bootstrap tooltips require Popper.js (https://popper.js.org)');
|
164
|
+
} // private
|
119
165
|
|
120
|
-
this.element = element;
|
121
|
-
this.config = this._getConfig(config);
|
122
|
-
this.tip = null;
|
123
166
|
|
124
|
-
|
125
|
-
|
167
|
+
this._isEnabled = true;
|
168
|
+
this._timeout = 0;
|
169
|
+
this._hoverState = '';
|
170
|
+
this._activeTrigger = {};
|
171
|
+
this._popper = null; // Protected
|
126
172
|
|
173
|
+
this.element = element;
|
174
|
+
this.config = this._getConfig(config);
|
175
|
+
this.tip = null;
|
127
176
|
|
128
|
-
|
177
|
+
this._setListeners();
|
178
|
+
} // Getters
|
129
179
|
|
130
|
-
// Public
|
131
|
-
_proto.enable = function enable() {
|
132
|
-
this._isEnabled = true;
|
133
|
-
};
|
134
180
|
|
135
|
-
|
136
|
-
this._isEnabled = false;
|
137
|
-
};
|
181
|
+
var _proto = Tooltip.prototype;
|
138
182
|
|
139
|
-
|
140
|
-
|
141
|
-
|
183
|
+
// Public
|
184
|
+
_proto.enable = function enable() {
|
185
|
+
this._isEnabled = true;
|
186
|
+
};
|
142
187
|
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
}
|
188
|
+
_proto.disable = function disable() {
|
189
|
+
this._isEnabled = false;
|
190
|
+
};
|
147
191
|
|
148
|
-
|
149
|
-
|
150
|
-
|
192
|
+
_proto.toggleEnabled = function toggleEnabled() {
|
193
|
+
this._isEnabled = !this._isEnabled;
|
194
|
+
};
|
151
195
|
|
152
|
-
|
153
|
-
|
154
|
-
|
196
|
+
_proto.toggle = function toggle(event) {
|
197
|
+
if (!this._isEnabled) {
|
198
|
+
return;
|
155
199
|
}
|
156
200
|
|
157
|
-
|
201
|
+
if (event) {
|
202
|
+
var dataKey = this.constructor.DATA_KEY;
|
203
|
+
var context = $$$1(event.currentTarget).data(dataKey);
|
158
204
|
|
159
|
-
|
160
|
-
|
205
|
+
if (!context) {
|
206
|
+
context = new this.constructor(event.currentTarget, this._getDelegateConfig());
|
207
|
+
$$$1(event.currentTarget).data(dataKey, context);
|
208
|
+
}
|
209
|
+
|
210
|
+
context._activeTrigger.click = !context._activeTrigger.click;
|
211
|
+
|
212
|
+
if (context._isWithActiveTrigger()) {
|
213
|
+
context._enter(null, context);
|
214
|
+
} else {
|
215
|
+
context._leave(null, context);
|
216
|
+
}
|
161
217
|
} else {
|
162
|
-
|
163
|
-
|
164
|
-
} else {
|
165
|
-
if ($(this.getTipElement()).hasClass(ClassName.SHOW)) {
|
166
|
-
this._leave(null, this);
|
218
|
+
if ($$$1(this.getTipElement()).hasClass(ClassName.SHOW)) {
|
219
|
+
this._leave(null, this);
|
167
220
|
|
168
|
-
|
169
|
-
|
221
|
+
return;
|
222
|
+
}
|
170
223
|
|
171
|
-
|
172
|
-
|
173
|
-
|
224
|
+
this._enter(null, this);
|
225
|
+
}
|
226
|
+
};
|
174
227
|
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
228
|
+
_proto.dispose = function dispose() {
|
229
|
+
clearTimeout(this._timeout);
|
230
|
+
$$$1.removeData(this.element, this.constructor.DATA_KEY);
|
231
|
+
$$$1(this.element).off(this.constructor.EVENT_KEY);
|
232
|
+
$$$1(this.element).closest('.modal').off('hide.bs.modal');
|
180
233
|
|
181
|
-
|
182
|
-
|
183
|
-
|
234
|
+
if (this.tip) {
|
235
|
+
$$$1(this.tip).remove();
|
236
|
+
}
|
184
237
|
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
238
|
+
this._isEnabled = null;
|
239
|
+
this._timeout = null;
|
240
|
+
this._hoverState = null;
|
241
|
+
this._activeTrigger = null;
|
189
242
|
|
190
|
-
|
191
|
-
|
192
|
-
|
243
|
+
if (this._popper !== null) {
|
244
|
+
this._popper.destroy();
|
245
|
+
}
|
193
246
|
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
247
|
+
this._popper = null;
|
248
|
+
this.element = null;
|
249
|
+
this.config = null;
|
250
|
+
this.tip = null;
|
251
|
+
};
|
199
252
|
|
200
|
-
|
201
|
-
|
253
|
+
_proto.show = function show() {
|
254
|
+
var _this = this;
|
202
255
|
|
203
|
-
|
204
|
-
|
205
|
-
|
256
|
+
if ($$$1(this.element).css('display') === 'none') {
|
257
|
+
throw new Error('Please use show on visible elements');
|
258
|
+
}
|
206
259
|
|
207
|
-
|
260
|
+
var showEvent = $$$1.Event(this.constructor.Event.SHOW);
|
208
261
|
|
209
|
-
|
210
|
-
|
211
|
-
|
262
|
+
if (this.isWithContent() && this._isEnabled) {
|
263
|
+
$$$1(this.element).trigger(showEvent);
|
264
|
+
var isInTheDom = $$$1.contains(this.element.ownerDocument.documentElement, this.element);
|
212
265
|
|
213
|
-
|
214
|
-
|
215
|
-
|
266
|
+
if (showEvent.isDefaultPrevented() || !isInTheDom) {
|
267
|
+
return;
|
268
|
+
}
|
216
269
|
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
270
|
+
var tip = this.getTipElement();
|
271
|
+
var tipId = Util.getUID(this.constructor.NAME);
|
272
|
+
tip.setAttribute('id', tipId);
|
273
|
+
this.element.setAttribute('aria-describedby', tipId);
|
274
|
+
this.setContent();
|
222
275
|
|
223
|
-
|
224
|
-
|
225
|
-
|
276
|
+
if (this.config.animation) {
|
277
|
+
$$$1(tip).addClass(ClassName.FADE);
|
278
|
+
}
|
226
279
|
|
227
|
-
|
280
|
+
var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement;
|
228
281
|
|
229
|
-
|
282
|
+
var attachment = this._getAttachment(placement);
|
230
283
|
|
231
|
-
|
232
|
-
|
233
|
-
|
284
|
+
this.addAttachmentClass(attachment);
|
285
|
+
var container = this.config.container === false ? document.body : $$$1(document).find(this.config.container);
|
286
|
+
$$$1(tip).data(this.constructor.DATA_KEY, this);
|
234
287
|
|
235
|
-
|
236
|
-
|
237
|
-
|
288
|
+
if (!$$$1.contains(this.element.ownerDocument.documentElement, this.tip)) {
|
289
|
+
$$$1(tip).appendTo(container);
|
290
|
+
}
|
238
291
|
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
292
|
+
$$$1(this.element).trigger(this.constructor.Event.INSERTED);
|
293
|
+
this._popper = new Popper(this.element, tip, {
|
294
|
+
placement: attachment,
|
295
|
+
modifiers: {
|
296
|
+
offset: {
|
297
|
+
offset: this.config.offset
|
298
|
+
},
|
299
|
+
flip: {
|
300
|
+
behavior: this.config.fallbackPlacement
|
301
|
+
},
|
302
|
+
arrow: {
|
303
|
+
element: Selector.ARROW
|
304
|
+
},
|
305
|
+
preventOverflow: {
|
306
|
+
boundariesElement: this.config.boundary
|
307
|
+
}
|
248
308
|
},
|
249
|
-
|
250
|
-
|
309
|
+
onCreate: function onCreate(data) {
|
310
|
+
if (data.originalPlacement !== data.placement) {
|
311
|
+
_this._handlePopperPlacementChange(data);
|
312
|
+
}
|
251
313
|
},
|
252
|
-
|
253
|
-
boundariesElement: this.config.boundary
|
254
|
-
}
|
255
|
-
},
|
256
|
-
onCreate: function onCreate(data) {
|
257
|
-
if (data.originalPlacement !== data.placement) {
|
314
|
+
onUpdate: function onUpdate(data) {
|
258
315
|
_this._handlePopperPlacementChange(data);
|
259
316
|
}
|
260
|
-
}
|
261
|
-
|
262
|
-
|
317
|
+
});
|
318
|
+
$$$1(tip).addClass(ClassName.SHOW); // If this is a touch-enabled device we add extra
|
319
|
+
// empty mouseover listeners to the body's immediate children;
|
320
|
+
// only needed because of broken event delegation on iOS
|
321
|
+
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
|
322
|
+
|
323
|
+
if ('ontouchstart' in document.documentElement) {
|
324
|
+
$$$1(document.body).children().on('mouseover', null, $$$1.noop);
|
263
325
|
}
|
264
|
-
});
|
265
|
-
$(tip).addClass(ClassName.SHOW); // If this is a touch-enabled device we add extra
|
266
|
-
// empty mouseover listeners to the body's immediate children;
|
267
|
-
// only needed because of broken event delegation on iOS
|
268
|
-
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
|
269
326
|
|
270
|
-
|
271
|
-
|
272
|
-
|
327
|
+
var complete = function complete() {
|
328
|
+
if (_this.config.animation) {
|
329
|
+
_this._fixTransition();
|
330
|
+
}
|
273
331
|
|
274
|
-
|
275
|
-
|
276
|
-
_this.
|
277
|
-
}
|
332
|
+
var prevHoverState = _this._hoverState;
|
333
|
+
_this._hoverState = null;
|
334
|
+
$$$1(_this.element).trigger(_this.constructor.Event.SHOWN);
|
278
335
|
|
279
|
-
|
280
|
-
|
281
|
-
|
336
|
+
if (prevHoverState === HoverState.OUT) {
|
337
|
+
_this._leave(null, _this);
|
338
|
+
}
|
339
|
+
};
|
282
340
|
|
283
|
-
if (
|
284
|
-
|
341
|
+
if ($$$1(this.tip).hasClass(ClassName.FADE)) {
|
342
|
+
var transitionDuration = Util.getTransitionDurationFromElement(this.tip);
|
343
|
+
$$$1(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
344
|
+
} else {
|
345
|
+
complete();
|
285
346
|
}
|
286
|
-
};
|
287
|
-
|
288
|
-
if ($(this.tip).hasClass(ClassName.FADE)) {
|
289
|
-
var transitionDuration = Util.getTransitionDurationFromElement(this.tip);
|
290
|
-
$(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
291
|
-
} else {
|
292
|
-
complete();
|
293
347
|
}
|
294
|
-
}
|
295
|
-
};
|
348
|
+
};
|
296
349
|
|
297
|
-
|
298
|
-
|
350
|
+
_proto.hide = function hide(callback) {
|
351
|
+
var _this2 = this;
|
299
352
|
|
300
|
-
|
301
|
-
|
353
|
+
var tip = this.getTipElement();
|
354
|
+
var hideEvent = $$$1.Event(this.constructor.Event.HIDE);
|
302
355
|
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
356
|
+
var complete = function complete() {
|
357
|
+
if (_this2._hoverState !== HoverState.SHOW && tip.parentNode) {
|
358
|
+
tip.parentNode.removeChild(tip);
|
359
|
+
}
|
307
360
|
|
308
|
-
|
361
|
+
_this2._cleanTipClass();
|
309
362
|
|
310
|
-
|
363
|
+
_this2.element.removeAttribute('aria-describedby');
|
311
364
|
|
312
|
-
|
365
|
+
$$$1(_this2.element).trigger(_this2.constructor.Event.HIDDEN);
|
313
366
|
|
314
|
-
|
315
|
-
|
316
|
-
|
367
|
+
if (_this2._popper !== null) {
|
368
|
+
_this2._popper.destroy();
|
369
|
+
}
|
317
370
|
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
371
|
+
if (callback) {
|
372
|
+
callback();
|
373
|
+
}
|
374
|
+
};
|
322
375
|
|
323
|
-
|
376
|
+
$$$1(this.element).trigger(hideEvent);
|
324
377
|
|
325
|
-
|
326
|
-
|
327
|
-
|
378
|
+
if (hideEvent.isDefaultPrevented()) {
|
379
|
+
return;
|
380
|
+
}
|
328
381
|
|
329
|
-
|
330
|
-
|
382
|
+
$$$1(tip).removeClass(ClassName.SHOW); // If this is a touch-enabled device we remove the extra
|
383
|
+
// empty mouseover listeners we added for iOS support
|
331
384
|
|
332
|
-
|
333
|
-
|
334
|
-
|
385
|
+
if ('ontouchstart' in document.documentElement) {
|
386
|
+
$$$1(document.body).children().off('mouseover', null, $$$1.noop);
|
387
|
+
}
|
335
388
|
|
336
|
-
|
337
|
-
|
338
|
-
|
389
|
+
this._activeTrigger[Trigger.CLICK] = false;
|
390
|
+
this._activeTrigger[Trigger.FOCUS] = false;
|
391
|
+
this._activeTrigger[Trigger.HOVER] = false;
|
339
392
|
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
393
|
+
if ($$$1(this.tip).hasClass(ClassName.FADE)) {
|
394
|
+
var transitionDuration = Util.getTransitionDurationFromElement(tip);
|
395
|
+
$$$1(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
|
396
|
+
} else {
|
397
|
+
complete();
|
398
|
+
}
|
346
399
|
|
347
|
-
|
348
|
-
|
400
|
+
this._hoverState = '';
|
401
|
+
};
|
349
402
|
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
403
|
+
_proto.update = function update() {
|
404
|
+
if (this._popper !== null) {
|
405
|
+
this._popper.scheduleUpdate();
|
406
|
+
}
|
407
|
+
}; // Protected
|
355
408
|
|
356
409
|
|
357
|
-
|
358
|
-
|
359
|
-
|
410
|
+
_proto.isWithContent = function isWithContent() {
|
411
|
+
return Boolean(this.getTitle());
|
412
|
+
};
|
360
413
|
|
361
|
-
|
362
|
-
|
363
|
-
|
414
|
+
_proto.addAttachmentClass = function addAttachmentClass(attachment) {
|
415
|
+
$$$1(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
|
416
|
+
};
|
364
417
|
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
418
|
+
_proto.getTipElement = function getTipElement() {
|
419
|
+
this.tip = this.tip || $$$1(this.config.template)[0];
|
420
|
+
return this.tip;
|
421
|
+
};
|
369
422
|
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
423
|
+
_proto.setContent = function setContent() {
|
424
|
+
var tip = this.getTipElement();
|
425
|
+
this.setElementContent($$$1(tip.querySelectorAll(Selector.TOOLTIP_INNER)), this.getTitle());
|
426
|
+
$$$1(tip).removeClass(ClassName.FADE + " " + ClassName.SHOW);
|
427
|
+
};
|
375
428
|
|
376
|
-
|
377
|
-
|
429
|
+
_proto.setElementContent = function setElementContent($element, content) {
|
430
|
+
var html = this.config.html;
|
378
431
|
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
432
|
+
if (typeof content === 'object' && (content.nodeType || content.jquery)) {
|
433
|
+
// Content is a DOM node or a jQuery
|
434
|
+
if (html) {
|
435
|
+
if (!$$$1(content).parent().is($element)) {
|
436
|
+
$element.empty().append(content);
|
437
|
+
}
|
438
|
+
} else {
|
439
|
+
$element.text($$$1(content).text());
|
384
440
|
}
|
385
441
|
} else {
|
386
|
-
$element
|
442
|
+
$element[html ? 'html' : 'text'](content);
|
387
443
|
}
|
388
|
-
}
|
389
|
-
$element[html ? 'html' : 'text'](content);
|
390
|
-
}
|
391
|
-
};
|
444
|
+
};
|
392
445
|
|
393
|
-
|
394
|
-
|
446
|
+
_proto.getTitle = function getTitle() {
|
447
|
+
var title = this.element.getAttribute('data-original-title');
|
395
448
|
|
396
|
-
|
397
|
-
|
398
|
-
|
449
|
+
if (!title) {
|
450
|
+
title = typeof this.config.title === 'function' ? this.config.title.call(this.element) : this.config.title;
|
451
|
+
}
|
399
452
|
|
400
|
-
|
401
|
-
|
453
|
+
return title;
|
454
|
+
}; // Private
|
402
455
|
|
403
456
|
|
404
|
-
|
405
|
-
|
406
|
-
|
457
|
+
_proto._getAttachment = function _getAttachment(placement) {
|
458
|
+
return AttachmentMap[placement.toUpperCase()];
|
459
|
+
};
|
407
460
|
|
408
|
-
|
409
|
-
|
461
|
+
_proto._setListeners = function _setListeners() {
|
462
|
+
var _this3 = this;
|
463
|
+
|
464
|
+
var triggers = this.config.trigger.split(' ');
|
465
|
+
triggers.forEach(function (trigger) {
|
466
|
+
if (trigger === 'click') {
|
467
|
+
$$$1(_this3.element).on(_this3.constructor.Event.CLICK, _this3.config.selector, function (event) {
|
468
|
+
return _this3.toggle(event);
|
469
|
+
});
|
470
|
+
} else if (trigger !== Trigger.MANUAL) {
|
471
|
+
var eventIn = trigger === Trigger.HOVER ? _this3.constructor.Event.MOUSEENTER : _this3.constructor.Event.FOCUSIN;
|
472
|
+
var eventOut = trigger === Trigger.HOVER ? _this3.constructor.Event.MOUSELEAVE : _this3.constructor.Event.FOCUSOUT;
|
473
|
+
$$$1(_this3.element).on(eventIn, _this3.config.selector, function (event) {
|
474
|
+
return _this3._enter(event);
|
475
|
+
}).on(eventOut, _this3.config.selector, function (event) {
|
476
|
+
return _this3._leave(event);
|
477
|
+
});
|
478
|
+
}
|
410
479
|
|
411
|
-
|
412
|
-
|
413
|
-
if (trigger === 'click') {
|
414
|
-
$(_this3.element).on(_this3.constructor.Event.CLICK, _this3.config.selector, function (event) {
|
415
|
-
return _this3.toggle(event);
|
480
|
+
$$$1(_this3.element).closest('.modal').on('hide.bs.modal', function () {
|
481
|
+
return _this3.hide();
|
416
482
|
});
|
417
|
-
}
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
return _this3._leave(event);
|
483
|
+
});
|
484
|
+
|
485
|
+
if (this.config.selector) {
|
486
|
+
this.config = _objectSpread({}, this.config, {
|
487
|
+
trigger: 'manual',
|
488
|
+
selector: ''
|
424
489
|
});
|
490
|
+
} else {
|
491
|
+
this._fixTitle();
|
425
492
|
}
|
493
|
+
};
|
426
494
|
|
427
|
-
|
428
|
-
|
429
|
-
});
|
430
|
-
});
|
431
|
-
|
432
|
-
if (this.config.selector) {
|
433
|
-
this.config = _objectSpread({}, this.config, {
|
434
|
-
trigger: 'manual',
|
435
|
-
selector: ''
|
436
|
-
});
|
437
|
-
} else {
|
438
|
-
this._fixTitle();
|
439
|
-
}
|
440
|
-
};
|
495
|
+
_proto._fixTitle = function _fixTitle() {
|
496
|
+
var titleType = typeof this.element.getAttribute('data-original-title');
|
441
497
|
|
442
|
-
|
443
|
-
|
498
|
+
if (this.element.getAttribute('title') || titleType !== 'string') {
|
499
|
+
this.element.setAttribute('data-original-title', this.element.getAttribute('title') || '');
|
500
|
+
this.element.setAttribute('title', '');
|
501
|
+
}
|
502
|
+
};
|
444
503
|
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
}
|
449
|
-
};
|
504
|
+
_proto._enter = function _enter(event, context) {
|
505
|
+
var dataKey = this.constructor.DATA_KEY;
|
506
|
+
context = context || $$$1(event.currentTarget).data(dataKey);
|
450
507
|
|
451
|
-
|
452
|
-
|
453
|
-
|
508
|
+
if (!context) {
|
509
|
+
context = new this.constructor(event.currentTarget, this._getDelegateConfig());
|
510
|
+
$$$1(event.currentTarget).data(dataKey, context);
|
511
|
+
}
|
454
512
|
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
}
|
513
|
+
if (event) {
|
514
|
+
context._activeTrigger[event.type === 'focusin' ? Trigger.FOCUS : Trigger.HOVER] = true;
|
515
|
+
}
|
459
516
|
|
460
|
-
|
461
|
-
|
462
|
-
|
517
|
+
if ($$$1(context.getTipElement()).hasClass(ClassName.SHOW) || context._hoverState === HoverState.SHOW) {
|
518
|
+
context._hoverState = HoverState.SHOW;
|
519
|
+
return;
|
520
|
+
}
|
463
521
|
|
464
|
-
|
522
|
+
clearTimeout(context._timeout);
|
465
523
|
context._hoverState = HoverState.SHOW;
|
466
|
-
return;
|
467
|
-
}
|
468
|
-
|
469
|
-
clearTimeout(context._timeout);
|
470
|
-
context._hoverState = HoverState.SHOW;
|
471
524
|
|
472
|
-
|
473
|
-
context.show();
|
474
|
-
return;
|
475
|
-
}
|
476
|
-
|
477
|
-
context._timeout = setTimeout(function () {
|
478
|
-
if (context._hoverState === HoverState.SHOW) {
|
525
|
+
if (!context.config.delay || !context.config.delay.show) {
|
479
526
|
context.show();
|
527
|
+
return;
|
480
528
|
}
|
481
|
-
}, context.config.delay.show);
|
482
|
-
};
|
483
529
|
|
484
|
-
|
485
|
-
|
486
|
-
|
530
|
+
context._timeout = setTimeout(function () {
|
531
|
+
if (context._hoverState === HoverState.SHOW) {
|
532
|
+
context.show();
|
533
|
+
}
|
534
|
+
}, context.config.delay.show);
|
535
|
+
};
|
487
536
|
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
}
|
537
|
+
_proto._leave = function _leave(event, context) {
|
538
|
+
var dataKey = this.constructor.DATA_KEY;
|
539
|
+
context = context || $$$1(event.currentTarget).data(dataKey);
|
492
540
|
|
493
|
-
|
494
|
-
|
495
|
-
|
541
|
+
if (!context) {
|
542
|
+
context = new this.constructor(event.currentTarget, this._getDelegateConfig());
|
543
|
+
$$$1(event.currentTarget).data(dataKey, context);
|
544
|
+
}
|
496
545
|
|
497
|
-
|
498
|
-
|
499
|
-
|
546
|
+
if (event) {
|
547
|
+
context._activeTrigger[event.type === 'focusout' ? Trigger.FOCUS : Trigger.HOVER] = false;
|
548
|
+
}
|
500
549
|
|
501
|
-
|
502
|
-
|
550
|
+
if (context._isWithActiveTrigger()) {
|
551
|
+
return;
|
552
|
+
}
|
503
553
|
|
504
|
-
|
505
|
-
context.
|
506
|
-
return;
|
507
|
-
}
|
554
|
+
clearTimeout(context._timeout);
|
555
|
+
context._hoverState = HoverState.OUT;
|
508
556
|
|
509
|
-
|
510
|
-
if (context._hoverState === HoverState.OUT) {
|
557
|
+
if (!context.config.delay || !context.config.delay.hide) {
|
511
558
|
context.hide();
|
559
|
+
return;
|
512
560
|
}
|
513
|
-
}, context.config.delay.hide);
|
514
|
-
};
|
515
561
|
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
562
|
+
context._timeout = setTimeout(function () {
|
563
|
+
if (context._hoverState === HoverState.OUT) {
|
564
|
+
context.hide();
|
565
|
+
}
|
566
|
+
}, context.config.delay.hide);
|
567
|
+
};
|
568
|
+
|
569
|
+
_proto._isWithActiveTrigger = function _isWithActiveTrigger() {
|
570
|
+
for (var trigger in this._activeTrigger) {
|
571
|
+
if (this._activeTrigger[trigger]) {
|
572
|
+
return true;
|
573
|
+
}
|
520
574
|
}
|
521
|
-
}
|
522
575
|
|
523
|
-
|
524
|
-
|
576
|
+
return false;
|
577
|
+
};
|
525
578
|
|
526
|
-
|
527
|
-
|
579
|
+
_proto._getConfig = function _getConfig(config) {
|
580
|
+
config = _objectSpread({}, this.constructor.Default, $$$1(this.element).data(), typeof config === 'object' && config ? config : {});
|
528
581
|
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
582
|
+
if (typeof config.delay === 'number') {
|
583
|
+
config.delay = {
|
584
|
+
show: config.delay,
|
585
|
+
hide: config.delay
|
586
|
+
};
|
587
|
+
}
|
535
588
|
|
536
|
-
|
537
|
-
|
538
|
-
|
589
|
+
if (typeof config.title === 'number') {
|
590
|
+
config.title = config.title.toString();
|
591
|
+
}
|
539
592
|
|
540
|
-
|
541
|
-
|
542
|
-
|
593
|
+
if (typeof config.content === 'number') {
|
594
|
+
config.content = config.content.toString();
|
595
|
+
}
|
543
596
|
|
544
|
-
|
545
|
-
|
546
|
-
|
597
|
+
Util.typeCheckConfig(NAME, config, this.constructor.DefaultType);
|
598
|
+
return config;
|
599
|
+
};
|
547
600
|
|
548
|
-
|
549
|
-
|
601
|
+
_proto._getDelegateConfig = function _getDelegateConfig() {
|
602
|
+
var config = {};
|
550
603
|
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
604
|
+
if (this.config) {
|
605
|
+
for (var key in this.config) {
|
606
|
+
if (this.constructor.Default[key] !== this.config[key]) {
|
607
|
+
config[key] = this.config[key];
|
608
|
+
}
|
555
609
|
}
|
556
610
|
}
|
557
|
-
}
|
558
611
|
|
559
|
-
|
560
|
-
|
612
|
+
return config;
|
613
|
+
};
|
561
614
|
|
562
|
-
|
563
|
-
|
564
|
-
|
615
|
+
_proto._cleanTipClass = function _cleanTipClass() {
|
616
|
+
var $tip = $$$1(this.getTipElement());
|
617
|
+
var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
|
565
618
|
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
619
|
+
if (tabClass !== null && tabClass.length) {
|
620
|
+
$tip.removeClass(tabClass.join(''));
|
621
|
+
}
|
622
|
+
};
|
570
623
|
|
571
|
-
|
572
|
-
|
624
|
+
_proto._handlePopperPlacementChange = function _handlePopperPlacementChange(popperData) {
|
625
|
+
var popperInstance = popperData.instance;
|
626
|
+
this.tip = popperInstance.popper;
|
573
627
|
|
574
|
-
|
575
|
-
};
|
628
|
+
this._cleanTipClass();
|
576
629
|
|
577
|
-
|
578
|
-
|
579
|
-
var initConfigAnimation = this.config.animation;
|
630
|
+
this.addAttachmentClass(this._getAttachment(popperData.placement));
|
631
|
+
};
|
580
632
|
|
581
|
-
|
582
|
-
|
583
|
-
|
633
|
+
_proto._fixTransition = function _fixTransition() {
|
634
|
+
var tip = this.getTipElement();
|
635
|
+
var initConfigAnimation = this.config.animation;
|
636
|
+
|
637
|
+
if (tip.getAttribute('x-placement') !== null) {
|
638
|
+
return;
|
639
|
+
}
|
584
640
|
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
641
|
+
$$$1(tip).removeClass(ClassName.FADE);
|
642
|
+
this.config.animation = false;
|
643
|
+
this.hide();
|
644
|
+
this.show();
|
645
|
+
this.config.animation = initConfigAnimation;
|
646
|
+
}; // Static
|
591
647
|
|
592
648
|
|
593
|
-
|
594
|
-
|
595
|
-
|
649
|
+
Tooltip._jQueryInterface = function _jQueryInterface(config) {
|
650
|
+
return this.each(function () {
|
651
|
+
var data = $$$1(this).data(DATA_KEY);
|
596
652
|
|
597
|
-
|
653
|
+
var _config = typeof config === 'object' && config;
|
598
654
|
|
599
|
-
|
600
|
-
|
601
|
-
|
655
|
+
if (!data && /dispose|hide/.test(config)) {
|
656
|
+
return;
|
657
|
+
}
|
602
658
|
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
659
|
+
if (!data) {
|
660
|
+
data = new Tooltip(this, _config);
|
661
|
+
$$$1(this).data(DATA_KEY, data);
|
662
|
+
}
|
663
|
+
|
664
|
+
if (typeof config === 'string') {
|
665
|
+
if (typeof data[config] === 'undefined') {
|
666
|
+
throw new TypeError("No method named \"" + config + "\"");
|
667
|
+
}
|
607
668
|
|
608
|
-
|
609
|
-
if (typeof data[config] === 'undefined') {
|
610
|
-
throw new TypeError("No method named \"" + config + "\"");
|
669
|
+
data[config]();
|
611
670
|
}
|
671
|
+
});
|
672
|
+
};
|
612
673
|
|
613
|
-
|
674
|
+
_createClass(Tooltip, null, [{
|
675
|
+
key: "VERSION",
|
676
|
+
get: function get() {
|
677
|
+
return VERSION;
|
614
678
|
}
|
615
|
-
}
|
616
|
-
|
679
|
+
}, {
|
680
|
+
key: "Default",
|
681
|
+
get: function get() {
|
682
|
+
return Default;
|
683
|
+
}
|
684
|
+
}, {
|
685
|
+
key: "NAME",
|
686
|
+
get: function get() {
|
687
|
+
return NAME;
|
688
|
+
}
|
689
|
+
}, {
|
690
|
+
key: "DATA_KEY",
|
691
|
+
get: function get() {
|
692
|
+
return DATA_KEY;
|
693
|
+
}
|
694
|
+
}, {
|
695
|
+
key: "Event",
|
696
|
+
get: function get() {
|
697
|
+
return Event;
|
698
|
+
}
|
699
|
+
}, {
|
700
|
+
key: "EVENT_KEY",
|
701
|
+
get: function get() {
|
702
|
+
return EVENT_KEY;
|
703
|
+
}
|
704
|
+
}, {
|
705
|
+
key: "DefaultType",
|
706
|
+
get: function get() {
|
707
|
+
return DefaultType;
|
708
|
+
}
|
709
|
+
}]);
|
617
710
|
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
get: function get() {
|
626
|
-
return Default;
|
627
|
-
}
|
628
|
-
}, {
|
629
|
-
key: "NAME",
|
630
|
-
get: function get() {
|
631
|
-
return NAME;
|
632
|
-
}
|
633
|
-
}, {
|
634
|
-
key: "DATA_KEY",
|
635
|
-
get: function get() {
|
636
|
-
return DATA_KEY;
|
637
|
-
}
|
638
|
-
}, {
|
639
|
-
key: "Event",
|
640
|
-
get: function get() {
|
641
|
-
return Event;
|
642
|
-
}
|
643
|
-
}, {
|
644
|
-
key: "EVENT_KEY",
|
645
|
-
get: function get() {
|
646
|
-
return EVENT_KEY;
|
647
|
-
}
|
648
|
-
}, {
|
649
|
-
key: "DefaultType",
|
650
|
-
get: function get() {
|
651
|
-
return DefaultType;
|
652
|
-
}
|
653
|
-
}]);
|
711
|
+
return Tooltip;
|
712
|
+
}();
|
713
|
+
/**
|
714
|
+
* ------------------------------------------------------------------------
|
715
|
+
* jQuery
|
716
|
+
* ------------------------------------------------------------------------
|
717
|
+
*/
|
654
718
|
|
655
|
-
return Tooltip;
|
656
|
-
}();
|
657
|
-
/**
|
658
|
-
* ------------------------------------------------------------------------
|
659
|
-
* jQuery
|
660
|
-
* ------------------------------------------------------------------------
|
661
|
-
*/
|
662
719
|
|
720
|
+
$$$1.fn[NAME] = Tooltip._jQueryInterface;
|
721
|
+
$$$1.fn[NAME].Constructor = Tooltip;
|
663
722
|
|
664
|
-
|
665
|
-
|
723
|
+
$$$1.fn[NAME].noConflict = function () {
|
724
|
+
$$$1.fn[NAME] = JQUERY_NO_CONFLICT;
|
725
|
+
return Tooltip._jQueryInterface;
|
726
|
+
};
|
666
727
|
|
667
|
-
|
668
|
-
|
669
|
-
return Tooltip._jQueryInterface;
|
670
|
-
};
|
728
|
+
return Tooltip;
|
729
|
+
}($, Popper);
|
671
730
|
|
672
731
|
return Tooltip;
|
673
|
-
|
674
|
-
|
732
|
+
|
733
|
+
})));
|
734
|
+
//# sourceMappingURL=tooltip.js.map
|