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
@@ -4,7 +4,7 @@ import Util from './util'
|
|
4
4
|
|
5
5
|
/**
|
6
6
|
* --------------------------------------------------------------------------
|
7
|
-
* Bootstrap (v4.1.
|
7
|
+
* Bootstrap (v4.1.3): dropdown.js
|
8
8
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
9
9
|
* --------------------------------------------------------------------------
|
10
10
|
*/
|
@@ -17,7 +17,7 @@ const Dropdown = (($) => {
|
|
17
17
|
*/
|
18
18
|
|
19
19
|
const NAME = 'dropdown'
|
20
|
-
const VERSION = '4.1.
|
20
|
+
const VERSION = '4.1.3'
|
21
21
|
const DATA_KEY = 'bs.dropdown'
|
22
22
|
const EVENT_KEY = `.${DATA_KEY}`
|
23
23
|
const DATA_API_KEY = '.data-api'
|
@@ -242,13 +242,15 @@ const Dropdown = (($) => {
|
|
242
242
|
_getMenuElement() {
|
243
243
|
if (!this._menu) {
|
244
244
|
const parent = Dropdown._getParentFromElement(this._element)
|
245
|
-
|
245
|
+
if (parent) {
|
246
|
+
this._menu = parent.querySelector(Selector.MENU)
|
247
|
+
}
|
246
248
|
}
|
247
249
|
return this._menu
|
248
250
|
}
|
249
251
|
|
250
252
|
_getPlacement() {
|
251
|
-
const $parentDropdown = $(this._element
|
253
|
+
const $parentDropdown = $(this._element.parentNode)
|
252
254
|
let placement = AttachmentMap.BOTTOM
|
253
255
|
|
254
256
|
// Handle dropup
|
@@ -284,6 +286,7 @@ const Dropdown = (($) => {
|
|
284
286
|
} else {
|
285
287
|
offsetConf.offset = this._config.offset
|
286
288
|
}
|
289
|
+
|
287
290
|
const popperConfig = {
|
288
291
|
placement: this._getPlacement(),
|
289
292
|
modifiers: {
|
@@ -333,14 +336,18 @@ const Dropdown = (($) => {
|
|
333
336
|
return
|
334
337
|
}
|
335
338
|
|
336
|
-
const toggles =
|
337
|
-
for (let i = 0
|
339
|
+
const toggles = [].slice.call(document.querySelectorAll(Selector.DATA_TOGGLE))
|
340
|
+
for (let i = 0, len = toggles.length; i < len; i++) {
|
338
341
|
const parent = Dropdown._getParentFromElement(toggles[i])
|
339
342
|
const context = $(toggles[i]).data(DATA_KEY)
|
340
343
|
const relatedTarget = {
|
341
344
|
relatedTarget: toggles[i]
|
342
345
|
}
|
343
346
|
|
347
|
+
if (event && event.type === 'click') {
|
348
|
+
relatedTarget.clickEvent = event
|
349
|
+
}
|
350
|
+
|
344
351
|
if (!context) {
|
345
352
|
continue
|
346
353
|
}
|
@@ -382,7 +389,7 @@ const Dropdown = (($) => {
|
|
382
389
|
const selector = Util.getSelectorFromElement(element)
|
383
390
|
|
384
391
|
if (selector) {
|
385
|
-
parent =
|
392
|
+
parent = document.querySelector(selector)
|
386
393
|
}
|
387
394
|
|
388
395
|
return parent || element.parentNode
|
@@ -417,7 +424,7 @@ const Dropdown = (($) => {
|
|
417
424
|
if (!isActive && (event.which !== ESCAPE_KEYCODE || event.which !== SPACE_KEYCODE) ||
|
418
425
|
isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
|
419
426
|
if (event.which === ESCAPE_KEYCODE) {
|
420
|
-
const toggle =
|
427
|
+
const toggle = parent.querySelector(Selector.DATA_TOGGLE)
|
421
428
|
$(toggle).trigger('focus')
|
422
429
|
}
|
423
430
|
|
@@ -425,7 +432,7 @@ const Dropdown = (($) => {
|
|
425
432
|
return
|
426
433
|
}
|
427
434
|
|
428
|
-
const items =
|
435
|
+
const items = [].slice.call(parent.querySelectorAll(Selector.VISIBLE_ITEMS))
|
429
436
|
|
430
437
|
if (items.length === 0) {
|
431
438
|
return
|
@@ -13,7 +13,7 @@ import Util from './util'
|
|
13
13
|
|
14
14
|
/**
|
15
15
|
* --------------------------------------------------------------------------
|
16
|
-
* Bootstrap (v4.1.
|
16
|
+
* Bootstrap (v4.1.3): index.js
|
17
17
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
18
18
|
* --------------------------------------------------------------------------
|
19
19
|
*/
|
@@ -3,7 +3,7 @@ import Util from './util'
|
|
3
3
|
|
4
4
|
/**
|
5
5
|
* --------------------------------------------------------------------------
|
6
|
-
* Bootstrap (v4.1.
|
6
|
+
* Bootstrap (v4.1.3): modal.js
|
7
7
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
8
8
|
* --------------------------------------------------------------------------
|
9
9
|
*/
|
@@ -16,7 +16,7 @@ const Modal = (($) => {
|
|
16
16
|
*/
|
17
17
|
|
18
18
|
const NAME = 'modal'
|
19
|
-
const VERSION = '4.1.
|
19
|
+
const VERSION = '4.1.3'
|
20
20
|
const DATA_KEY = 'bs.modal'
|
21
21
|
const EVENT_KEY = `.${DATA_KEY}`
|
22
22
|
const DATA_API_KEY = '.data-api'
|
@@ -64,8 +64,7 @@ const Modal = (($) => {
|
|
64
64
|
DATA_TOGGLE : '[data-toggle="modal"]',
|
65
65
|
DATA_DISMISS : '[data-dismiss="modal"]',
|
66
66
|
FIXED_CONTENT : '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top',
|
67
|
-
STICKY_CONTENT : '.sticky-top'
|
68
|
-
NAVBAR_TOGGLER : '.navbar-toggler'
|
67
|
+
STICKY_CONTENT : '.sticky-top'
|
69
68
|
}
|
70
69
|
|
71
70
|
/**
|
@@ -78,7 +77,7 @@ const Modal = (($) => {
|
|
78
77
|
constructor(element, config) {
|
79
78
|
this._config = this._getConfig(config)
|
80
79
|
this._element = element
|
81
|
-
this._dialog =
|
80
|
+
this._dialog = element.querySelector(Selector.DIALOG)
|
82
81
|
this._backdrop = null
|
83
82
|
this._isShown = false
|
84
83
|
this._isBodyOverflowing = false
|
@@ -333,7 +332,7 @@ const Modal = (($) => {
|
|
333
332
|
this._backdrop.className = ClassName.BACKDROP
|
334
333
|
|
335
334
|
if (animate) {
|
336
|
-
|
335
|
+
this._backdrop.classList.add(animate)
|
337
336
|
}
|
338
337
|
|
339
338
|
$(this._backdrop).appendTo(document.body)
|
@@ -430,46 +429,48 @@ const Modal = (($) => {
|
|
430
429
|
if (this._isBodyOverflowing) {
|
431
430
|
// Note: DOMNode.style.paddingRight returns the actual value or '' if not set
|
432
431
|
// while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set
|
432
|
+
const fixedContent = [].slice.call(document.querySelectorAll(Selector.FIXED_CONTENT))
|
433
|
+
const stickyContent = [].slice.call(document.querySelectorAll(Selector.STICKY_CONTENT))
|
433
434
|
|
434
435
|
// Adjust fixed content padding
|
435
|
-
$(
|
436
|
-
const actualPadding =
|
436
|
+
$(fixedContent).each((index, element) => {
|
437
|
+
const actualPadding = element.style.paddingRight
|
437
438
|
const calculatedPadding = $(element).css('padding-right')
|
438
|
-
$(element)
|
439
|
+
$(element)
|
440
|
+
.data('padding-right', actualPadding)
|
441
|
+
.css('padding-right', `${parseFloat(calculatedPadding) + this._scrollbarWidth}px`)
|
439
442
|
})
|
440
443
|
|
441
444
|
// Adjust sticky content margin
|
442
|
-
$(
|
443
|
-
const actualMargin =
|
445
|
+
$(stickyContent).each((index, element) => {
|
446
|
+
const actualMargin = element.style.marginRight
|
444
447
|
const calculatedMargin = $(element).css('margin-right')
|
445
|
-
$(element)
|
446
|
-
|
447
|
-
|
448
|
-
// Adjust navbar-toggler margin
|
449
|
-
$(Selector.NAVBAR_TOGGLER).each((index, element) => {
|
450
|
-
const actualMargin = $(element)[0].style.marginRight
|
451
|
-
const calculatedMargin = $(element).css('margin-right')
|
452
|
-
$(element).data('margin-right', actualMargin).css('margin-right', `${parseFloat(calculatedMargin) + this._scrollbarWidth}px`)
|
448
|
+
$(element)
|
449
|
+
.data('margin-right', actualMargin)
|
450
|
+
.css('margin-right', `${parseFloat(calculatedMargin) - this._scrollbarWidth}px`)
|
453
451
|
})
|
454
452
|
|
455
453
|
// Adjust body padding
|
456
454
|
const actualPadding = document.body.style.paddingRight
|
457
455
|
const calculatedPadding = $(document.body).css('padding-right')
|
458
|
-
$(document.body)
|
456
|
+
$(document.body)
|
457
|
+
.data('padding-right', actualPadding)
|
458
|
+
.css('padding-right', `${parseFloat(calculatedPadding) + this._scrollbarWidth}px`)
|
459
459
|
}
|
460
460
|
}
|
461
461
|
|
462
462
|
_resetScrollbar() {
|
463
463
|
// Restore fixed content padding
|
464
|
-
|
464
|
+
const fixedContent = [].slice.call(document.querySelectorAll(Selector.FIXED_CONTENT))
|
465
|
+
$(fixedContent).each((index, element) => {
|
465
466
|
const padding = $(element).data('padding-right')
|
466
|
-
|
467
|
-
|
468
|
-
}
|
467
|
+
$(element).removeData('padding-right')
|
468
|
+
element.style.paddingRight = padding ? padding : ''
|
469
469
|
})
|
470
470
|
|
471
|
-
// Restore sticky content
|
472
|
-
|
471
|
+
// Restore sticky content
|
472
|
+
const elements = [].slice.call(document.querySelectorAll(`${Selector.STICKY_CONTENT}`))
|
473
|
+
$(elements).each((index, element) => {
|
473
474
|
const margin = $(element).data('margin-right')
|
474
475
|
if (typeof margin !== 'undefined') {
|
475
476
|
$(element).css('margin-right', margin).removeData('margin-right')
|
@@ -478,9 +479,8 @@ const Modal = (($) => {
|
|
478
479
|
|
479
480
|
// Restore body padding
|
480
481
|
const padding = $(document.body).data('padding-right')
|
481
|
-
|
482
|
-
|
483
|
-
}
|
482
|
+
$(document.body).removeData('padding-right')
|
483
|
+
document.body.style.paddingRight = padding ? padding : ''
|
484
484
|
}
|
485
485
|
|
486
486
|
_getScrollbarWidth() { // thx d.walsh
|
@@ -531,7 +531,7 @@ const Modal = (($) => {
|
|
531
531
|
const selector = Util.getSelectorFromElement(this)
|
532
532
|
|
533
533
|
if (selector) {
|
534
|
-
target =
|
534
|
+
target = document.querySelector(selector)
|
535
535
|
}
|
536
536
|
|
537
537
|
const config = $(target).data(DATA_KEY)
|
@@ -3,7 +3,7 @@ import Tooltip from './tooltip'
|
|
3
3
|
|
4
4
|
/**
|
5
5
|
* --------------------------------------------------------------------------
|
6
|
-
* Bootstrap (v4.1.
|
6
|
+
* Bootstrap (v4.1.3): popover.js
|
7
7
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
8
8
|
* --------------------------------------------------------------------------
|
9
9
|
*/
|
@@ -16,7 +16,7 @@ const Popover = (($) => {
|
|
16
16
|
*/
|
17
17
|
|
18
18
|
const NAME = 'popover'
|
19
|
-
const VERSION = '4.1.
|
19
|
+
const VERSION = '4.1.3'
|
20
20
|
const DATA_KEY = 'bs.popover'
|
21
21
|
const EVENT_KEY = `.${DATA_KEY}`
|
22
22
|
const JQUERY_NO_CONFLICT = $.fn[NAME]
|
@@ -3,7 +3,7 @@ import Util from './util'
|
|
3
3
|
|
4
4
|
/**
|
5
5
|
* --------------------------------------------------------------------------
|
6
|
-
* Bootstrap (v4.1.
|
6
|
+
* Bootstrap (v4.1.3): scrollspy.js
|
7
7
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
8
8
|
* --------------------------------------------------------------------------
|
9
9
|
*/
|
@@ -16,7 +16,7 @@ const ScrollSpy = (($) => {
|
|
16
16
|
*/
|
17
17
|
|
18
18
|
const NAME = 'scrollspy'
|
19
|
-
const VERSION = '4.1.
|
19
|
+
const VERSION = '4.1.3'
|
20
20
|
const DATA_KEY = 'bs.scrollspy'
|
21
21
|
const EVENT_KEY = `.${DATA_KEY}`
|
22
22
|
const DATA_API_KEY = '.data-api'
|
@@ -115,7 +115,7 @@ const ScrollSpy = (($) => {
|
|
115
115
|
|
116
116
|
this._scrollHeight = this._getScrollHeight()
|
117
117
|
|
118
|
-
const targets =
|
118
|
+
const targets = [].slice.call(document.querySelectorAll(this._selector))
|
119
119
|
|
120
120
|
targets
|
121
121
|
.map((element) => {
|
@@ -123,7 +123,7 @@ const ScrollSpy = (($) => {
|
|
123
123
|
const targetSelector = Util.getSelectorFromElement(element)
|
124
124
|
|
125
125
|
if (targetSelector) {
|
126
|
-
target =
|
126
|
+
target = document.querySelector(targetSelector)
|
127
127
|
}
|
128
128
|
|
129
129
|
if (target) {
|
@@ -225,7 +225,8 @@ const ScrollSpy = (($) => {
|
|
225
225
|
return
|
226
226
|
}
|
227
227
|
|
228
|
-
|
228
|
+
const offsetLength = this._offsets.length
|
229
|
+
for (let i = offsetLength; i--;) {
|
229
230
|
const isActiveTarget = this._activeTarget !== this._targets[i] &&
|
230
231
|
scrollTop >= this._offsets[i] &&
|
231
232
|
(typeof this._offsets[i + 1] === 'undefined' ||
|
@@ -249,7 +250,7 @@ const ScrollSpy = (($) => {
|
|
249
250
|
`${selector}[href="${target}"]`
|
250
251
|
})
|
251
252
|
|
252
|
-
const $link = $(queries.join(','))
|
253
|
+
const $link = $([].slice.call(document.querySelectorAll(queries.join(','))))
|
253
254
|
|
254
255
|
if ($link.hasClass(ClassName.DROPDOWN_ITEM)) {
|
255
256
|
$link.closest(Selector.DROPDOWN).find(Selector.DROPDOWN_TOGGLE).addClass(ClassName.ACTIVE)
|
@@ -270,7 +271,8 @@ const ScrollSpy = (($) => {
|
|
270
271
|
}
|
271
272
|
|
272
273
|
_clear() {
|
273
|
-
|
274
|
+
const nodes = [].slice.call(document.querySelectorAll(this._selector))
|
275
|
+
$(nodes).filter(Selector.ACTIVE).removeClass(ClassName.ACTIVE)
|
274
276
|
}
|
275
277
|
|
276
278
|
// Static
|
@@ -302,9 +304,10 @@ const ScrollSpy = (($) => {
|
|
302
304
|
*/
|
303
305
|
|
304
306
|
$(window).on(Event.LOAD_DATA_API, () => {
|
305
|
-
const scrollSpys =
|
307
|
+
const scrollSpys = [].slice.call(document.querySelectorAll(Selector.DATA_SPY))
|
306
308
|
|
307
|
-
|
309
|
+
const scrollSpysLength = scrollSpys.length
|
310
|
+
for (let i = scrollSpysLength; i--;) {
|
308
311
|
const $spy = $(scrollSpys[i])
|
309
312
|
ScrollSpy._jQueryInterface.call($spy, $spy.data())
|
310
313
|
}
|
@@ -3,7 +3,7 @@ import Util from './util'
|
|
3
3
|
|
4
4
|
/**
|
5
5
|
* --------------------------------------------------------------------------
|
6
|
-
* Bootstrap (v4.1.
|
6
|
+
* Bootstrap (v4.1.3): tab.js
|
7
7
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
8
8
|
* --------------------------------------------------------------------------
|
9
9
|
*/
|
@@ -16,7 +16,7 @@ const Tab = (($) => {
|
|
16
16
|
*/
|
17
17
|
|
18
18
|
const NAME = 'tab'
|
19
|
-
const VERSION = '4.1.
|
19
|
+
const VERSION = '4.1.3'
|
20
20
|
const DATA_KEY = 'bs.tab'
|
21
21
|
const EVENT_KEY = `.${DATA_KEY}`
|
22
22
|
const DATA_API_KEY = '.data-api'
|
@@ -106,7 +106,7 @@ const Tab = (($) => {
|
|
106
106
|
}
|
107
107
|
|
108
108
|
if (selector) {
|
109
|
-
target =
|
109
|
+
target = document.querySelector(selector)
|
110
110
|
}
|
111
111
|
|
112
112
|
this._activate(
|
@@ -199,7 +199,8 @@ const Tab = (($) => {
|
|
199
199
|
$(element.parentNode).hasClass(ClassName.DROPDOWN_MENU)) {
|
200
200
|
const dropdownElement = $(element).closest(Selector.DROPDOWN)[0]
|
201
201
|
if (dropdownElement) {
|
202
|
-
|
202
|
+
const dropdownToggleList = [].slice.call(dropdownElement.querySelectorAll(Selector.DROPDOWN_TOGGLE))
|
203
|
+
$(dropdownToggleList).addClass(ClassName.ACTIVE)
|
203
204
|
}
|
204
205
|
|
205
206
|
element.setAttribute('aria-expanded', true)
|
@@ -4,7 +4,7 @@ import Util from './util'
|
|
4
4
|
|
5
5
|
/**
|
6
6
|
* --------------------------------------------------------------------------
|
7
|
-
* Bootstrap (v4.1.
|
7
|
+
* Bootstrap (v4.1.3): tooltip.js
|
8
8
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
9
9
|
* --------------------------------------------------------------------------
|
10
10
|
*/
|
@@ -17,7 +17,7 @@ const Tooltip = (($) => {
|
|
17
17
|
*/
|
18
18
|
|
19
19
|
const NAME = 'tooltip'
|
20
|
-
const VERSION = '4.1.
|
20
|
+
const VERSION = '4.1.3'
|
21
21
|
const DATA_KEY = 'bs.tooltip'
|
22
22
|
const EVENT_KEY = `.${DATA_KEY}`
|
23
23
|
const JQUERY_NO_CONFLICT = $.fn[NAME]
|
@@ -273,7 +273,7 @@ const Tooltip = (($) => {
|
|
273
273
|
const attachment = this._getAttachment(placement)
|
274
274
|
this.addAttachmentClass(attachment)
|
275
275
|
|
276
|
-
const container = this.config.container === false ? document.body : $(this.config.container)
|
276
|
+
const container = this.config.container === false ? document.body : $(document).find(this.config.container)
|
277
277
|
|
278
278
|
$(tip).data(this.constructor.DATA_KEY, this)
|
279
279
|
|
@@ -418,9 +418,9 @@ const Tooltip = (($) => {
|
|
418
418
|
}
|
419
419
|
|
420
420
|
setContent() {
|
421
|
-
const
|
422
|
-
this.setElementContent($tip.
|
423
|
-
$tip.removeClass(`${ClassName.FADE} ${ClassName.SHOW}`)
|
421
|
+
const tip = this.getTipElement()
|
422
|
+
this.setElementContent($(tip.querySelectorAll(Selector.TOOLTIP_INNER)), this.getTitle())
|
423
|
+
$(tip).removeClass(`${ClassName.FADE} ${ClassName.SHOW}`)
|
424
424
|
}
|
425
425
|
|
426
426
|
setElementContent($element, content) {
|
@@ -655,14 +655,16 @@ const Tooltip = (($) => {
|
|
655
655
|
_cleanTipClass() {
|
656
656
|
const $tip = $(this.getTipElement())
|
657
657
|
const tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX)
|
658
|
-
if (tabClass !== null && tabClass.length
|
658
|
+
if (tabClass !== null && tabClass.length) {
|
659
659
|
$tip.removeClass(tabClass.join(''))
|
660
660
|
}
|
661
661
|
}
|
662
662
|
|
663
|
-
_handlePopperPlacementChange(
|
663
|
+
_handlePopperPlacementChange(popperData) {
|
664
|
+
const popperInstance = popperData.instance
|
665
|
+
this.tip = popperInstance.popper
|
664
666
|
this._cleanTipClass()
|
665
|
-
this.addAttachmentClass(this._getAttachment(
|
667
|
+
this.addAttachmentClass(this._getAttachment(popperData.placement))
|
666
668
|
}
|
667
669
|
|
668
670
|
_fixTransition() {
|
@@ -2,7 +2,7 @@ import $ from 'jquery'
|
|
2
2
|
|
3
3
|
/**
|
4
4
|
* --------------------------------------------------------------------------
|
5
|
-
* Bootstrap (v4.1.
|
5
|
+
* Bootstrap (v4.1.3): util.js
|
6
6
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
7
7
|
* --------------------------------------------------------------------------
|
8
8
|
*/
|
@@ -82,8 +82,7 @@ const Util = (($) => {
|
|
82
82
|
}
|
83
83
|
|
84
84
|
try {
|
85
|
-
|
86
|
-
return $selector.length > 0 ? selector : null
|
85
|
+
return document.querySelector(selector) ? selector : null
|
87
86
|
} catch (err) {
|
88
87
|
return null
|
89
88
|
}
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<!-- jQuery -->
|
9
9
|
<script>
|
10
10
|
(function () {
|
11
|
-
var path = '../../assets/js/vendor/jquery-slim.min.js'
|
11
|
+
var path = '../../site/docs/4.1/assets/js/vendor/jquery-slim.min.js'
|
12
12
|
// get jquery param from the query string.
|
13
13
|
var jQueryVersion = location.search.match(/[?&]jquery=(.*?)(?=&|$)/)
|
14
14
|
|
@@ -19,11 +19,11 @@
|
|
19
19
|
document.write('<script src="' + path + '"><\/script>')
|
20
20
|
}())
|
21
21
|
</script>
|
22
|
-
<script src="../../assets/js/vendor/popper.min.js"></script>
|
22
|
+
<script src="../../site/docs/4.1/assets/js/vendor/popper.min.js"></script>
|
23
23
|
|
24
24
|
<!-- QUnit -->
|
25
|
-
<link rel="stylesheet" href="../../node_modules/
|
26
|
-
<script src="../../node_modules/
|
25
|
+
<link rel="stylesheet" href="../../node_modules/qunit/qunit/qunit.css" media="screen">
|
26
|
+
<script src="../../node_modules/qunit/qunit/qunit.js"></script>
|
27
27
|
|
28
28
|
<!-- Sinon -->
|
29
29
|
<script src="../../node_modules/sinon/pkg/sinon-no-sourcemaps.js"></script>
|