bootstrap-italia 2.12.0 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.EN.md +1 -1
- package/README.md +1 -1
- package/dist/bootstrap-italia.esm.js +1 -1
- package/dist/css/bootstrap-italia.min.css +9 -1
- package/dist/css/bootstrap-italia.min.css.map +1 -1
- package/dist/js/bootstrap-italia.bundle.min.js +19 -23
- package/dist/js/bootstrap-italia.min.js +18 -2
- package/dist/plugins/accept-overlay.js +19 -9
- package/dist/plugins/accept-overlay.js.map +1 -1
- package/dist/plugins/accordion.js +19 -24
- package/dist/plugins/accordion.js.map +1 -1
- package/dist/plugins/alert.js +67 -2
- package/dist/plugins/alert.js.map +1 -1
- package/dist/plugins/{backToTop.js → back-to-top.js} +14 -5
- package/dist/plugins/back-to-top.js.map +1 -0
- package/dist/plugins/base-component.js +91 -0
- package/dist/plugins/base-component.js.map +1 -0
- package/dist/plugins/button.js +58 -2
- package/dist/plugins/button.js.map +1 -1
- package/dist/plugins/carousel-bi.js +19 -9
- package/dist/plugins/carousel-bi.js.map +1 -1
- package/dist/plugins/carousel.js +445 -2
- package/dist/plugins/carousel.js.map +1 -1
- package/dist/plugins/collapse.js +273 -2
- package/dist/plugins/collapse.js.map +1 -1
- package/dist/plugins/cookiebar.js +39 -52
- package/dist/plugins/cookiebar.js.map +1 -1
- package/dist/plugins/dimmer.js +19 -8
- package/dist/plugins/dimmer.js.map +1 -1
- package/dist/plugins/dom/data.js +61 -0
- package/dist/plugins/dom/data.js.map +1 -0
- package/dist/plugins/dom/event-handler.js +296 -0
- package/dist/plugins/dom/event-handler.js.map +1 -0
- package/dist/plugins/dom/manipulator.js +76 -0
- package/dist/plugins/dom/manipulator.js.map +1 -0
- package/dist/plugins/dom/selector-engine.js +82 -0
- package/dist/plugins/dom/selector-engine.js.map +1 -0
- package/dist/plugins/dropdown.js +433 -2
- package/dist/plugins/dropdown.js.map +1 -1
- package/dist/plugins/fonts-loader.js +9 -1
- package/dist/plugins/fonts-loader.js.map +1 -1
- package/dist/plugins/form-validate.js +22 -8
- package/dist/plugins/form-validate.js.map +1 -1
- package/dist/plugins/forward.js +21 -18
- package/dist/plugins/forward.js.map +1 -1
- package/dist/plugins/header-sticky.js +11 -2
- package/dist/plugins/header-sticky.js.map +1 -1
- package/dist/plugins/history-back.js +17 -17
- package/dist/plugins/history-back.js.map +1 -1
- package/dist/plugins/init.js +9 -0
- package/dist/plugins/init.js.map +1 -1
- package/dist/plugins/input-label.js +14 -3
- package/dist/plugins/input-label.js.map +1 -1
- package/dist/plugins/input-number.js +13 -4
- package/dist/plugins/input-number.js.map +1 -1
- package/dist/plugins/input-password.js +48 -37
- package/dist/plugins/input-password.js.map +1 -1
- package/dist/plugins/input-search-autocomplete.js +9 -11
- package/dist/plugins/input-search-autocomplete.js.map +1 -1
- package/dist/plugins/input.js +12 -3
- package/dist/plugins/input.js.map +1 -1
- package/dist/plugins/list.js +23 -12
- package/dist/plugins/list.js.map +1 -1
- package/dist/plugins/masonry.js +29 -29
- package/dist/plugins/masonry.js.map +1 -1
- package/dist/plugins/modal.js +358 -2
- package/dist/plugins/modal.js.map +1 -1
- package/dist/plugins/navbar-collapsible.js +55 -45
- package/dist/plugins/navbar-collapsible.js.map +1 -1
- package/dist/plugins/navscroll.js +16 -23
- package/dist/plugins/navscroll.js.map +1 -1
- package/dist/plugins/notification.js +34 -23
- package/dist/plugins/notification.js.map +1 -1
- package/dist/plugins/offcanvas.js +259 -2
- package/dist/plugins/offcanvas.js.map +1 -1
- package/dist/plugins/popover.js +76 -2
- package/dist/plugins/popover.js.map +1 -1
- package/dist/plugins/progress-donut.js +19 -12
- package/dist/plugins/progress-donut.js.map +1 -1
- package/dist/plugins/scrollspy.js +273 -2
- package/dist/plugins/scrollspy.js.map +1 -1
- package/dist/plugins/select-autocomplete.js +10 -1
- package/dist/plugins/select-autocomplete.js.map +1 -1
- package/dist/plugins/sticky.js +21 -18
- package/dist/plugins/sticky.js.map +1 -1
- package/dist/plugins/tab.js +244 -27
- package/dist/plugins/tab.js.map +1 -1
- package/dist/plugins/toast.js +203 -2
- package/dist/plugins/toast.js.map +1 -1
- package/dist/plugins/tooltip.js +602 -2
- package/dist/plugins/tooltip.js.map +1 -1
- package/dist/plugins/track-focus.js +8 -0
- package/dist/plugins/track-focus.js.map +1 -1
- package/dist/plugins/transfer.js +11 -16
- package/dist/plugins/transfer.js.map +1 -1
- package/dist/plugins/upload-dragdrop.js +13 -4
- package/dist/plugins/upload-dragdrop.js.map +1 -1
- package/dist/plugins/util/backdrop.js +155 -0
- package/dist/plugins/util/backdrop.js.map +1 -0
- package/dist/plugins/util/component-functions.js +38 -0
- package/dist/plugins/util/component-functions.js.map +1 -0
- package/dist/plugins/util/config.js +70 -0
- package/dist/plugins/util/config.js.map +1 -0
- package/dist/plugins/util/cookies.js +8 -0
- package/dist/plugins/util/cookies.js.map +1 -1
- package/dist/plugins/util/device.js +0 -3
- package/dist/plugins/util/device.js.map +1 -1
- package/dist/plugins/util/dom.js +8 -0
- package/dist/plugins/util/dom.js.map +1 -1
- package/dist/plugins/util/focustrap.js +121 -0
- package/dist/plugins/util/focustrap.js.map +1 -0
- package/dist/plugins/util/index.js +280 -0
- package/dist/plugins/util/index.js.map +1 -0
- package/dist/plugins/util/observer.js +8 -0
- package/dist/plugins/util/observer.js.map +1 -1
- package/dist/plugins/util/on-document-scroll.js +20 -9
- package/dist/plugins/util/on-document-scroll.js.map +1 -1
- package/dist/plugins/util/pageScroll.js +8 -0
- package/dist/plugins/util/pageScroll.js.map +1 -1
- package/dist/plugins/util/sanitizer.js +115 -0
- package/dist/plugins/util/sanitizer.js.map +1 -0
- package/dist/plugins/util/scrollbar.js +120 -0
- package/dist/plugins/util/scrollbar.js.map +1 -0
- package/dist/plugins/util/swipe.js +150 -0
- package/dist/plugins/util/swipe.js.map +1 -0
- package/dist/plugins/util/template-factory.js +166 -0
- package/dist/plugins/util/template-factory.js.map +1 -0
- package/dist/plugins/util/tween.js +10 -1
- package/dist/plugins/util/tween.js.map +1 -1
- package/dist/plugins/util/youtube-video.js +12 -21
- package/dist/plugins/util/youtube-video.js.map +1 -1
- package/dist/plugins/videoplayer.js +19 -8
- package/dist/plugins/videoplayer.js.map +1 -1
- package/dist/version.js +10 -3
- package/dist/version.js.map +1 -1
- package/package.json +6 -7
- package/src/js/bootstrap-italia.entry.js +8 -0
- package/src/js/bootstrap-italia.esm.js +9 -1
- package/src/js/icons.js +8 -0
- package/src/js/load-plugin.js +8 -0
- package/src/js/plugins/accept-overlay.js +18 -10
- package/src/js/plugins/accordion.js +16 -22
- package/src/js/plugins/alert.js +66 -2
- package/src/js/plugins/{backToTop.js → back-to-top.js} +12 -4
- package/src/js/plugins/base-component.js +89 -0
- package/src/js/plugins/button.js +57 -2
- package/src/js/plugins/carousel-bi.js +18 -9
- package/src/js/plugins/carousel.js +444 -2
- package/src/js/plugins/collapse.js +272 -2
- package/src/js/plugins/cookiebar.js +37 -60
- package/src/js/plugins/dimmer.js +18 -8
- package/src/js/plugins/dom/data.js +58 -0
- package/src/js/plugins/dom/event-handler.js +301 -0
- package/src/js/plugins/dom/manipulator.js +75 -0
- package/src/js/plugins/dom/selector-engine.js +80 -0
- package/src/js/plugins/dropdown.js +432 -2
- package/src/js/plugins/fonts-loader.js +9 -1
- package/src/js/plugins/form-validate.js +21 -8
- package/src/js/plugins/form.js +11 -3
- package/src/js/plugins/forward.js +18 -16
- package/src/js/plugins/header-sticky.js +10 -2
- package/src/js/plugins/history-back.js +14 -14
- package/src/js/plugins/init.js +8 -0
- package/src/js/plugins/input-label.js +13 -3
- package/src/js/plugins/input-number.js +12 -4
- package/src/js/plugins/input-password.js +46 -36
- package/src/js/plugins/input-search-autocomplete.js +9 -13
- package/src/js/plugins/input.js +11 -3
- package/src/js/plugins/list.js +22 -12
- package/src/js/plugins/masonry.js +26 -27
- package/src/js/plugins/modal.js +357 -2
- package/src/js/plugins/navbar-collapsible.js +55 -53
- package/src/js/plugins/navscroll.js +16 -23
- package/src/js/plugins/notification.js +33 -23
- package/src/js/plugins/offcanvas.js +258 -2
- package/src/js/plugins/popover.js +75 -2
- package/src/js/plugins/progress-donut.js +17 -13
- package/src/js/plugins/scrollspy.js +272 -2
- package/src/js/plugins/select-autocomplete.js +9 -1
- package/src/js/plugins/sticky.js +21 -23
- package/src/js/plugins/tab.js +243 -27
- package/src/js/plugins/toast.js +206 -2
- package/src/js/plugins/tooltip.js +601 -2
- package/src/js/plugins/track-focus.js +8 -0
- package/src/js/plugins/transfer.js +12 -24
- package/src/js/plugins/upload-dragdrop.js +12 -4
- package/src/js/plugins/util/backdrop.js +153 -0
- package/src/js/plugins/util/component-functions.js +36 -0
- package/src/js/plugins/util/config.js +68 -0
- package/src/js/plugins/util/cookies.js +8 -0
- package/src/js/plugins/util/device.js +0 -3
- package/src/js/plugins/util/dom.js +8 -0
- package/src/js/plugins/util/focustrap.js +119 -0
- package/src/js/plugins/util/index.js +317 -0
- package/src/js/plugins/util/observer.js +8 -0
- package/src/js/plugins/util/on-document-scroll.js +19 -9
- package/src/js/plugins/util/pageScroll.js +8 -0
- package/src/js/plugins/util/sanitizer.js +112 -0
- package/src/js/plugins/util/scrollbar.js +118 -0
- package/src/js/plugins/util/swipe.js +148 -0
- package/src/js/plugins/util/template-factory.js +164 -0
- package/src/js/plugins/util/tween.js +9 -1
- package/src/js/plugins/util/youtube-video.js +12 -21
- package/src/js/plugins/videoplayer.js +18 -8
- package/src/js/version.js +10 -3
- package/src/scss/base/_containers.scss +41 -0
- package/src/scss/base/_functions.scss +373 -0
- package/src/scss/base/_helpers.scss +10 -0
- package/src/scss/base/_maps.scss +54 -0
- package/src/scss/base/_mixins.scss +44 -0
- package/src/scss/base/_reboot.scss +590 -0
- package/src/scss/base/_root.scss +73 -0
- package/src/scss/base/_transitions.scss +27 -0
- package/src/scss/base/_utilities.scss +742 -0
- package/src/scss/base/_variables.scss +2123 -0
- package/src/scss/base/_version.scss +3 -0
- package/src/scss/base/helpers/_clearfix.scss +3 -0
- package/src/scss/base/helpers/_color-bg.scss +10 -0
- package/src/scss/base/helpers/_colored-links.scss +16 -0
- package/src/scss/base/helpers/_position.scss +36 -0
- package/src/scss/base/helpers/_ratio.scss +26 -0
- package/src/scss/base/helpers/_stacks.scss +15 -0
- package/src/scss/base/helpers/_stretched-link.scss +15 -0
- package/src/scss/base/helpers/_text-truncation.scss +7 -0
- package/src/scss/base/helpers/_visually-hidden.scss +8 -0
- package/src/scss/base/helpers/_vr.scss +8 -0
- package/src/scss/base/mixins/_alert.scss +15 -0
- package/src/scss/base/mixins/_backdrop.scss +18 -0
- package/src/scss/base/mixins/_banner.scss +11 -0
- package/src/scss/base/mixins/_border-radius.scss +77 -0
- package/src/scss/base/mixins/_box-shadow.scss +18 -0
- package/src/scss/base/mixins/_breakpoints.scss +127 -0
- package/src/scss/base/mixins/_buttons.scss +141 -0
- package/src/scss/base/mixins/_caret.scss +64 -0
- package/src/scss/base/mixins/_clearfix.scss +9 -0
- package/src/scss/base/mixins/_color-scheme.scss +7 -0
- package/src/scss/base/mixins/_container.scss +11 -0
- package/src/scss/base/mixins/_deprecate.scss +10 -0
- package/src/scss/base/mixins/_forms.scss +152 -0
- package/src/scss/base/mixins/_gradients.scss +47 -0
- package/src/scss/base/mixins/_grid.scss +151 -0
- package/src/scss/base/mixins/_image.scss +15 -0
- package/src/scss/base/mixins/_list-group.scss +24 -0
- package/src/scss/base/mixins/_lists.scss +7 -0
- package/src/scss/base/mixins/_pagination.scss +10 -0
- package/src/scss/base/mixins/_reset-text.scss +17 -0
- package/src/scss/base/mixins/_resize.scss +6 -0
- package/src/scss/base/mixins/_table-variants.scss +24 -0
- package/src/scss/base/mixins/_text-truncate.scss +8 -0
- package/src/scss/base/mixins/_transition.scss +26 -0
- package/src/scss/base/mixins/_utilities.scss +96 -0
- package/src/scss/base/mixins/_visually-hidden.scss +29 -0
- package/src/scss/base/utilities/_api.scss +45 -0
- package/src/scss/base/vendor/_rfs.scss +337 -0
- package/src/scss/bootstrap-italia.scss +137 -156
- package/src/scss/components/_accordion.scss +297 -0
- package/src/scss/{custom → components}/_avatar.scss +75 -35
- package/src/scss/components/_badge.scss +60 -0
- package/src/scss/components/_breadcrumb.scss +95 -0
- package/src/scss/components/_button-group.scss +143 -0
- package/src/scss/components/_buttons.scss +467 -0
- package/src/scss/{custom → components}/_card.scss +228 -0
- package/src/scss/{custom → components}/_carousel.scss +225 -3
- package/src/scss/components/_dropdown.scss +480 -0
- package/src/scss/{custom → components}/_grid.scss +33 -0
- package/src/scss/{custom → components}/_gridlist.scss +7 -0
- package/src/scss/{custom → components}/_hero.scss +23 -57
- package/src/scss/components/_images.scss +48 -0
- package/src/scss/{custom → components}/_linklist.scss +0 -1
- package/src/scss/components/_list-group.scss +190 -0
- package/src/scss/components/_modal.scss +475 -0
- package/src/scss/components/_nav.scss +169 -0
- package/src/scss/components/_navbar.scss +273 -0
- package/src/scss/components/_offcanvas.scss +144 -0
- package/src/scss/components/_pagination.scss +108 -0
- package/src/scss/components/_placeholders.scss +51 -0
- package/src/scss/components/_popover.scss +298 -0
- package/src/scss/components/_progress-bars.scss +126 -0
- package/src/scss/{custom → components}/_steppers.scss +2 -2
- package/src/scss/{custom → components}/_tab.scss +3 -7
- package/src/scss/components/_tables.scss +171 -0
- package/src/scss/components/_toasts.scss +73 -0
- package/src/scss/{custom → components}/_toolbar.scss +19 -12
- package/src/scss/components/_tooltip.scss +139 -0
- package/src/scss/{custom → components}/_type.scss +92 -0
- package/src/scss/forms/_accessible-autocomplete.scss +188 -0
- package/src/scss/forms/_floating-labels.scss +75 -0
- package/src/scss/forms/_form-check.scss +175 -0
- package/src/scss/forms/_form-control.scss +201 -0
- package/src/scss/forms/_form-range.scss +95 -0
- package/src/scss/{custom → forms}/_form-select.scss +72 -0
- package/src/scss/forms/_form-text.scss +11 -0
- package/src/scss/{custom → forms}/_forms.scss +8 -12
- package/src/scss/forms/_input-group.scss +129 -0
- package/src/scss/forms/_labels.scss +36 -0
- package/src/scss/forms/_validation.scss +12 -0
- package/src/scss/utilities/icons.scss +5 -5
- package/types/index.d.ts +4 -1
- package/types/plugins/video.ts +33 -0
- package/dist/plugins/backToTop.js.map +0 -1
- package/src/scss/_functions.scss +0 -38
- package/src/scss/_variables.scss +0 -639
- package/src/scss/custom/_accessible-autocomplete.scss +0 -30
- package/src/scss/custom/_accordion.scss +0 -176
- package/src/scss/custom/_badge.scss +0 -29
- package/src/scss/custom/_breadcrumb.scss +0 -51
- package/src/scss/custom/_buttons.scss +0 -235
- package/src/scss/custom/_componente-base.scss +0 -6
- package/src/scss/custom/_dropdown.scss +0 -248
- package/src/scss/custom/_form-datepicker.scss +0 -604
- package/src/scss/custom/_images.scss +0 -10
- package/src/scss/custom/_modal.scss +0 -248
- package/src/scss/custom/_popover.scss +0 -106
- package/src/scss/custom/_progress-bars.scss +0 -70
- package/src/scss/custom/_tables.scss +0 -11
- package/src/scss/custom/_timepicker.scss +0 -252
- package/src/scss/custom/_tooltip.scss +0 -33
- package/src/scss/custom/_version.scss +0 -3
- package/src/scss/custom/mixins/_buttons.scss +0 -67
- package/src/scss/utilities/colors_vars.scss +0 -426
- /package/src/scss/{custom → base}/mixins/_text-emphasis.scss +0 -0
- /package/src/scss/{custom → components}/_accept-overlay.scss +0 -0
- /package/src/scss/{custom → components}/_affix.scss +0 -0
- /package/src/scss/{custom → components}/_alert.scss +0 -0
- /package/src/scss/{custom → components}/_anchor.scss +0 -0
- /package/src/scss/{custom → components}/_back-to-top.scss +0 -0
- /package/src/scss/{custom → components}/_bottomnav.scss +0 -0
- /package/src/scss/{custom → components}/_calendar.scss +0 -0
- /package/src/scss/{custom → components}/_callout.scss +0 -0
- /package/src/scss/{custom → components}/_chips.scss +0 -0
- /package/src/scss/{custom → components}/_code.scss +0 -0
- /package/src/scss/{custom → components}/_cookiebar.scss +0 -0
- /package/src/scss/{custom → components}/_dimmer.scss +0 -0
- /package/src/scss/{custom → components}/_figcaption.scss +0 -0
- /package/src/scss/{custom → components}/_font.scss +0 -0
- /package/src/scss/{custom → components}/_footer.scss +0 -0
- /package/src/scss/{custom → components}/_forward.scss +0 -0
- /package/src/scss/{custom → components}/_header.scss +0 -0
- /package/src/scss/{custom → components}/_headercenter.scss +0 -0
- /package/src/scss/{custom → components}/_headercentertheme.scss +0 -0
- /package/src/scss/{custom → components}/_headernavbar.scss +0 -0
- /package/src/scss/{custom → components}/_headernavbartheme.scss +0 -0
- /package/src/scss/{custom → components}/_headerslim.scss +0 -0
- /package/src/scss/{custom → components}/_headerslimtheme.scss +0 -0
- /package/src/scss/{custom → components}/_imgresponsive.scss +0 -0
- /package/src/scss/{custom → components}/_list.scss +0 -0
- /package/src/scss/{custom → components}/_map.scss +0 -0
- /package/src/scss/{custom → components}/_masonry-loader.scss +0 -0
- /package/src/scss/{custom → components}/_megamenu.scss +0 -0
- /package/src/scss/{custom → components}/_navigation.scss +0 -0
- /package/src/scss/{custom → components}/_navigationtheme.scss +0 -0
- /package/src/scss/{custom → components}/_navscroll.scss +0 -0
- /package/src/scss/{custom → components}/_navscrolltheme.scss +0 -0
- /package/src/scss/{custom → components}/_notifications.scss +0 -0
- /package/src/scss/{custom → components}/_overlay-panel.scss +0 -0
- /package/src/scss/{custom → components}/_page-scroll.scss +0 -0
- /package/src/scss/{custom → components}/_pager.scss +0 -0
- /package/src/scss/{custom → components}/_point-list.scss +0 -0
- /package/src/scss/{custom → components}/_print.scss +0 -0
- /package/src/scss/{custom → components}/_progress-donuts.scss +0 -0
- /package/src/scss/{custom → components}/_progress-spinners.scss +0 -0
- /package/src/scss/{custom → components}/_rating-list.scss +0 -0
- /package/src/scss/{custom → components}/_rating.scss +0 -0
- /package/src/scss/{custom → components}/_sections.scss +0 -0
- /package/src/scss/{custom → components}/_sidebar.scss +0 -0
- /package/src/scss/{custom → components}/_sidebarthemes.scss +0 -0
- /package/src/scss/{custom → components}/_skiplinks.scss +0 -0
- /package/src/scss/{custom → components}/_sticky.scss +0 -0
- /package/src/scss/{custom → components}/_thumbnav.scss +0 -0
- /package/src/scss/{custom → components}/_timeline.scss +0 -0
- /package/src/scss/{custom → components}/_videoplayer.scss +0 -0
- /package/src/scss/{custom → forms}/_autocomplete.scss +0 -0
- /package/src/scss/{custom → forms}/_form-input-file.scss +0 -0
- /package/src/scss/{custom → forms}/_form-input-number.scss +0 -0
- /package/src/scss/{custom → forms}/_form-input-upload.scss +0 -0
- /package/src/scss/{custom → forms}/_form-password.scss +0 -0
- /package/src/scss/{custom → forms}/_form-toggles.scss +0 -0
- /package/src/scss/{custom → forms}/_form-transfer.scss +0 -0
- /package/src/scss/{custom → forms}/_just-validate.scss +0 -0
- /package/types/plugins/{backToTop.d.ts → back-to-top.d.ts} +0 -0
package/dist/plugins/tooltip.js
CHANGED
|
@@ -1,6 +1,606 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Popper from '@popperjs/core';
|
|
2
|
+
import { isRTL, findShadowRoot, noop, getUID, getElement } from './util/index.js';
|
|
3
|
+
import { DefaultAllowlist } from './util/sanitizer.js';
|
|
4
|
+
import EventHandler from './dom/event-handler.js';
|
|
5
|
+
import Manipulator from './dom/manipulator.js';
|
|
6
|
+
import BaseComponent from './base-component.js';
|
|
7
|
+
import TemplateFactory from './util/template-factory.js';
|
|
2
8
|
|
|
3
|
-
|
|
9
|
+
/**
|
|
10
|
+
* --------------------------------------------------------------------------
|
|
11
|
+
* Bootstrap Italia (https://italia.github.io/bootstrap-italia/)
|
|
12
|
+
* Authors: https://github.com/italia/bootstrap-italia/blob/main/AUTHORS
|
|
13
|
+
* Licensed under BSD-3-Clause license (https://github.com/italia/bootstrap-italia/blob/main/LICENSE)
|
|
14
|
+
* This a fork of Bootstrap: Initial license and original file name below
|
|
15
|
+
* Bootstrap (v5.2.3): tooltip.js
|
|
16
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
17
|
+
* --------------------------------------------------------------------------
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Constants
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
const NAME = 'tooltip';
|
|
26
|
+
const DISALLOWED_ATTRIBUTES = new Set(['sanitize', 'allowList', 'sanitizeFn']);
|
|
27
|
+
|
|
28
|
+
const CLASS_NAME_FADE = 'fade';
|
|
29
|
+
const CLASS_NAME_MODAL = 'modal';
|
|
30
|
+
const CLASS_NAME_SHOW = 'show';
|
|
31
|
+
|
|
32
|
+
const SELECTOR_TOOLTIP_INNER = '.tooltip-inner';
|
|
33
|
+
const SELECTOR_MODAL = `.${CLASS_NAME_MODAL}`;
|
|
34
|
+
|
|
35
|
+
const EVENT_MODAL_HIDE = 'hide.bs.modal';
|
|
36
|
+
|
|
37
|
+
const TRIGGER_HOVER = 'hover';
|
|
38
|
+
const TRIGGER_FOCUS = 'focus';
|
|
39
|
+
const TRIGGER_CLICK = 'click';
|
|
40
|
+
const TRIGGER_MANUAL = 'manual';
|
|
41
|
+
|
|
42
|
+
const EVENT_HIDE = 'hide';
|
|
43
|
+
const EVENT_HIDDEN = 'hidden';
|
|
44
|
+
const EVENT_SHOW = 'show';
|
|
45
|
+
const EVENT_SHOWN = 'shown';
|
|
46
|
+
const EVENT_INSERTED = 'inserted';
|
|
47
|
+
const EVENT_CLICK = 'click';
|
|
48
|
+
const EVENT_FOCUSIN = 'focusin';
|
|
49
|
+
const EVENT_FOCUSOUT = 'focusout';
|
|
50
|
+
const EVENT_MOUSEENTER = 'mouseenter';
|
|
51
|
+
const EVENT_MOUSELEAVE = 'mouseleave';
|
|
52
|
+
|
|
53
|
+
const AttachmentMap = {
|
|
54
|
+
AUTO: 'auto',
|
|
55
|
+
TOP: 'top',
|
|
56
|
+
RIGHT: isRTL() ? 'left' : 'right',
|
|
57
|
+
BOTTOM: 'bottom',
|
|
58
|
+
LEFT: isRTL() ? 'right' : 'left',
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const Default = {
|
|
62
|
+
allowList: DefaultAllowlist,
|
|
63
|
+
animation: true,
|
|
64
|
+
boundary: 'clippingParents',
|
|
65
|
+
container: false,
|
|
66
|
+
customClass: '',
|
|
67
|
+
delay: 0,
|
|
68
|
+
fallbackPlacements: ['top', 'right', 'bottom', 'left'],
|
|
69
|
+
html: false,
|
|
70
|
+
offset: [0, 0],
|
|
71
|
+
placement: 'top',
|
|
72
|
+
popperConfig: null,
|
|
73
|
+
sanitize: true,
|
|
74
|
+
sanitizeFn: null,
|
|
75
|
+
selector: false,
|
|
76
|
+
template: '<div class="tooltip" role="tooltip">' + '<div class="tooltip-arrow"></div>' + '<div class="tooltip-inner"></div>' + '</div>',
|
|
77
|
+
title: '',
|
|
78
|
+
trigger: 'hover focus',
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
const DefaultType = {
|
|
82
|
+
allowList: 'object',
|
|
83
|
+
animation: 'boolean',
|
|
84
|
+
boundary: '(string|element)',
|
|
85
|
+
container: '(string|element|boolean)',
|
|
86
|
+
customClass: '(string|function)',
|
|
87
|
+
delay: '(number|object)',
|
|
88
|
+
fallbackPlacements: 'array',
|
|
89
|
+
html: 'boolean',
|
|
90
|
+
offset: '(array|string|function)',
|
|
91
|
+
placement: '(string|function)',
|
|
92
|
+
popperConfig: '(null|object|function)',
|
|
93
|
+
sanitize: 'boolean',
|
|
94
|
+
sanitizeFn: '(null|function)',
|
|
95
|
+
selector: '(string|boolean)',
|
|
96
|
+
template: 'string',
|
|
97
|
+
title: '(string|element|function)',
|
|
98
|
+
trigger: 'string',
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Class definition
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
class Tooltip extends BaseComponent {
|
|
106
|
+
constructor(element, config) {
|
|
107
|
+
if (typeof Popper === 'undefined') {
|
|
108
|
+
throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)")
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
super(element, config);
|
|
112
|
+
|
|
113
|
+
// Private
|
|
114
|
+
this._isEnabled = true;
|
|
115
|
+
this._timeout = 0;
|
|
116
|
+
this._isHovered = null;
|
|
117
|
+
this._activeTrigger = {};
|
|
118
|
+
this._popper = null;
|
|
119
|
+
this._templateFactory = null;
|
|
120
|
+
this._newContent = null;
|
|
121
|
+
|
|
122
|
+
// Protected
|
|
123
|
+
this.tip = null;
|
|
124
|
+
|
|
125
|
+
this._setListeners();
|
|
126
|
+
|
|
127
|
+
if (!this._config.selector) {
|
|
128
|
+
this._fixTitle();
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// Getters
|
|
133
|
+
static get Default() {
|
|
134
|
+
return Default
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
static get DefaultType() {
|
|
138
|
+
return DefaultType
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
static get NAME() {
|
|
142
|
+
return NAME
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// Public
|
|
146
|
+
enable() {
|
|
147
|
+
this._isEnabled = true;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
disable() {
|
|
151
|
+
this._isEnabled = false;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
toggleEnabled() {
|
|
155
|
+
this._isEnabled = !this._isEnabled;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
toggle() {
|
|
159
|
+
if (!this._isEnabled) {
|
|
160
|
+
return
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
this._activeTrigger.click = !this._activeTrigger.click;
|
|
164
|
+
if (this._isShown()) {
|
|
165
|
+
this._leave();
|
|
166
|
+
return
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
this._enter();
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
dispose() {
|
|
173
|
+
clearTimeout(this._timeout);
|
|
174
|
+
|
|
175
|
+
EventHandler.off(this._element.closest(SELECTOR_MODAL), EVENT_MODAL_HIDE, this._hideModalHandler);
|
|
176
|
+
|
|
177
|
+
if (this._element.getAttribute('data-bs-original-title')) {
|
|
178
|
+
this._element.setAttribute('title', this._element.getAttribute('data-bs-original-title'));
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
this._disposePopper();
|
|
182
|
+
super.dispose();
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
show() {
|
|
186
|
+
if (this._element.style.display === 'none') {
|
|
187
|
+
throw new Error('Please use show on visible elements')
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
if (!(this._isWithContent() && this._isEnabled)) {
|
|
191
|
+
return
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
const showEvent = EventHandler.trigger(this._element, this.constructor.eventName(EVENT_SHOW));
|
|
195
|
+
const shadowRoot = findShadowRoot(this._element);
|
|
196
|
+
const isInTheDom = (shadowRoot || this._element.ownerDocument.documentElement).contains(this._element);
|
|
197
|
+
|
|
198
|
+
if (showEvent.defaultPrevented || !isInTheDom) {
|
|
199
|
+
return
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// todo v6 remove this OR make it optional
|
|
203
|
+
this._disposePopper();
|
|
204
|
+
|
|
205
|
+
const tip = this._getTipElement();
|
|
206
|
+
|
|
207
|
+
this._element.setAttribute('aria-describedby', tip.getAttribute('id'));
|
|
208
|
+
|
|
209
|
+
const { container } = this._config;
|
|
210
|
+
|
|
211
|
+
if (!this._element.ownerDocument.documentElement.contains(this.tip)) {
|
|
212
|
+
container.append(tip);
|
|
213
|
+
EventHandler.trigger(this._element, this.constructor.eventName(EVENT_INSERTED));
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
this._popper = this._createPopper(tip);
|
|
217
|
+
|
|
218
|
+
tip.classList.add(CLASS_NAME_SHOW);
|
|
219
|
+
|
|
220
|
+
// If this is a touch-enabled device we add extra
|
|
221
|
+
// empty mouseover listeners to the body's immediate children;
|
|
222
|
+
// only needed because of broken event delegation on iOS
|
|
223
|
+
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
|
|
224
|
+
if ('ontouchstart' in document.documentElement) {
|
|
225
|
+
for (const element of [].concat(...document.body.children)) {
|
|
226
|
+
EventHandler.on(element, 'mouseover', noop);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
const complete = () => {
|
|
231
|
+
EventHandler.trigger(this._element, this.constructor.eventName(EVENT_SHOWN));
|
|
232
|
+
|
|
233
|
+
if (this._isHovered === false) {
|
|
234
|
+
this._leave();
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
this._isHovered = false;
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
this._queueCallback(complete, this.tip, this._isAnimated());
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
hide() {
|
|
244
|
+
if (!this._isShown()) {
|
|
245
|
+
return
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
const hideEvent = EventHandler.trigger(this._element, this.constructor.eventName(EVENT_HIDE));
|
|
249
|
+
if (hideEvent.defaultPrevented) {
|
|
250
|
+
return
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
const tip = this._getTipElement();
|
|
254
|
+
tip.classList.remove(CLASS_NAME_SHOW);
|
|
255
|
+
|
|
256
|
+
// If this is a touch-enabled device we remove the extra
|
|
257
|
+
// empty mouseover listeners we added for iOS support
|
|
258
|
+
if ('ontouchstart' in document.documentElement) {
|
|
259
|
+
for (const element of [].concat(...document.body.children)) {
|
|
260
|
+
EventHandler.off(element, 'mouseover', noop);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
this._activeTrigger[TRIGGER_CLICK] = false;
|
|
265
|
+
this._activeTrigger[TRIGGER_FOCUS] = false;
|
|
266
|
+
this._activeTrigger[TRIGGER_HOVER] = false;
|
|
267
|
+
this._isHovered = null; // it is a trick to support manual triggering
|
|
268
|
+
|
|
269
|
+
const complete = () => {
|
|
270
|
+
if (this._isWithActiveTrigger()) {
|
|
271
|
+
return
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
if (!this._isHovered) {
|
|
275
|
+
this._disposePopper();
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
this._element.removeAttribute('aria-describedby');
|
|
279
|
+
EventHandler.trigger(this._element, this.constructor.eventName(EVENT_HIDDEN));
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
this._queueCallback(complete, this.tip, this._isAnimated());
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
update() {
|
|
286
|
+
if (this._popper) {
|
|
287
|
+
this._popper.update();
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
// Protected
|
|
292
|
+
_isWithContent() {
|
|
293
|
+
return Boolean(this._getTitle())
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
_getTipElement() {
|
|
297
|
+
if (!this.tip) {
|
|
298
|
+
this.tip = this._createTipElement(this._newContent || this._getContentForTemplate());
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
return this.tip
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
_createTipElement(content) {
|
|
305
|
+
const tip = this._getTemplateFactory(content).toHtml();
|
|
306
|
+
|
|
307
|
+
// todo: remove this check on v6
|
|
308
|
+
if (!tip) {
|
|
309
|
+
return null
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
tip.classList.remove(CLASS_NAME_FADE, CLASS_NAME_SHOW);
|
|
313
|
+
// todo: on v6 the following can be achieved with CSS only
|
|
314
|
+
tip.classList.add(`bs-${this.constructor.NAME}-auto`);
|
|
315
|
+
|
|
316
|
+
const tipId = getUID(this.constructor.NAME).toString();
|
|
317
|
+
|
|
318
|
+
tip.setAttribute('id', tipId);
|
|
319
|
+
|
|
320
|
+
if (this._isAnimated()) {
|
|
321
|
+
tip.classList.add(CLASS_NAME_FADE);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
return tip
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
setContent(content) {
|
|
328
|
+
this._newContent = content;
|
|
329
|
+
if (this._isShown()) {
|
|
330
|
+
this._disposePopper();
|
|
331
|
+
this.show();
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
_getTemplateFactory(content) {
|
|
336
|
+
if (this._templateFactory) {
|
|
337
|
+
this._templateFactory.changeContent(content);
|
|
338
|
+
} else {
|
|
339
|
+
this._templateFactory = new TemplateFactory({
|
|
340
|
+
...this._config,
|
|
341
|
+
// the `content` var has to be after `this._config`
|
|
342
|
+
// to override config.content in case of popover
|
|
343
|
+
content,
|
|
344
|
+
extraClass: this._resolvePossibleFunction(this._config.customClass),
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
return this._templateFactory
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
_getContentForTemplate() {
|
|
352
|
+
return {
|
|
353
|
+
[SELECTOR_TOOLTIP_INNER]: this._getTitle(),
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
_getTitle() {
|
|
358
|
+
return this._resolvePossibleFunction(this._config.title) || this._element.getAttribute('data-bs-original-title')
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
// Private
|
|
362
|
+
_initializeOnDelegatedTarget(event) {
|
|
363
|
+
return this.constructor.getOrCreateInstance(event.delegateTarget, this._getDelegateConfig())
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
_isAnimated() {
|
|
367
|
+
return this._config.animation || (this.tip && this.tip.classList.contains(CLASS_NAME_FADE))
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
_isShown() {
|
|
371
|
+
return this.tip && this.tip.classList.contains(CLASS_NAME_SHOW)
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
_createPopper(tip) {
|
|
375
|
+
const placement = typeof this._config.placement === 'function' ? this._config.placement.call(this, tip, this._element) : this._config.placement;
|
|
376
|
+
const attachment = AttachmentMap[placement.toUpperCase()];
|
|
377
|
+
return Popper.createPopper(this._element, tip, this._getPopperConfig(attachment))
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
_getOffset() {
|
|
381
|
+
const { offset } = this._config;
|
|
382
|
+
|
|
383
|
+
if (typeof offset === 'string') {
|
|
384
|
+
return offset.split(',').map((value) => Number.parseInt(value, 10))
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
if (typeof offset === 'function') {
|
|
388
|
+
return (popperData) => offset(popperData, this._element)
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
return offset
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
_resolvePossibleFunction(arg) {
|
|
395
|
+
return typeof arg === 'function' ? arg.call(this._element) : arg
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
_getPopperConfig(attachment) {
|
|
399
|
+
const defaultBsPopperConfig = {
|
|
400
|
+
placement: attachment,
|
|
401
|
+
modifiers: [
|
|
402
|
+
{
|
|
403
|
+
name: 'flip',
|
|
404
|
+
options: {
|
|
405
|
+
fallbackPlacements: this._config.fallbackPlacements,
|
|
406
|
+
},
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
name: 'offset',
|
|
410
|
+
options: {
|
|
411
|
+
offset: this._getOffset(),
|
|
412
|
+
},
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
name: 'preventOverflow',
|
|
416
|
+
options: {
|
|
417
|
+
boundary: this._config.boundary,
|
|
418
|
+
},
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
name: 'arrow',
|
|
422
|
+
options: {
|
|
423
|
+
element: `.${this.constructor.NAME}-arrow`,
|
|
424
|
+
},
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
name: 'preSetPlacement',
|
|
428
|
+
enabled: true,
|
|
429
|
+
phase: 'beforeMain',
|
|
430
|
+
fn: (data) => {
|
|
431
|
+
// Pre-set Popper's placement attribute in order to read the arrow sizes properly.
|
|
432
|
+
// Otherwise, Popper mixes up the width and height dimensions since the initial arrow style is for top placement
|
|
433
|
+
this._getTipElement().setAttribute('data-popper-placement', data.state.placement);
|
|
434
|
+
},
|
|
435
|
+
},
|
|
436
|
+
],
|
|
437
|
+
};
|
|
438
|
+
|
|
439
|
+
return {
|
|
440
|
+
...defaultBsPopperConfig,
|
|
441
|
+
...(typeof this._config.popperConfig === 'function' ? this._config.popperConfig(defaultBsPopperConfig) : this._config.popperConfig),
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
_setListeners() {
|
|
446
|
+
const triggers = this._config.trigger.split(' ');
|
|
447
|
+
|
|
448
|
+
for (const trigger of triggers) {
|
|
449
|
+
if (trigger === 'click') {
|
|
450
|
+
EventHandler.on(this._element, this.constructor.eventName(EVENT_CLICK), this._config.selector, (event) => {
|
|
451
|
+
const context = this._initializeOnDelegatedTarget(event);
|
|
452
|
+
context.toggle();
|
|
453
|
+
});
|
|
454
|
+
} else if (trigger !== TRIGGER_MANUAL) {
|
|
455
|
+
const eventIn = trigger === TRIGGER_HOVER ? this.constructor.eventName(EVENT_MOUSEENTER) : this.constructor.eventName(EVENT_FOCUSIN);
|
|
456
|
+
const eventOut = trigger === TRIGGER_HOVER ? this.constructor.eventName(EVENT_MOUSELEAVE) : this.constructor.eventName(EVENT_FOCUSOUT);
|
|
457
|
+
|
|
458
|
+
EventHandler.on(this._element, eventIn, this._config.selector, (event) => {
|
|
459
|
+
const context = this._initializeOnDelegatedTarget(event);
|
|
460
|
+
context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;
|
|
461
|
+
context._enter();
|
|
462
|
+
});
|
|
463
|
+
EventHandler.on(this._element, eventOut, this._config.selector, (event) => {
|
|
464
|
+
const context = this._initializeOnDelegatedTarget(event);
|
|
465
|
+
context._activeTrigger[event.type === 'focusout' ? TRIGGER_FOCUS : TRIGGER_HOVER] = context._element.contains(event.relatedTarget);
|
|
466
|
+
|
|
467
|
+
context._leave();
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
this._hideModalHandler = () => {
|
|
473
|
+
if (this._element) {
|
|
474
|
+
this.hide();
|
|
475
|
+
}
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
EventHandler.on(this._element.closest(SELECTOR_MODAL), EVENT_MODAL_HIDE, this._hideModalHandler);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
_fixTitle() {
|
|
482
|
+
const title = this._element.getAttribute('title');
|
|
483
|
+
|
|
484
|
+
if (!title) {
|
|
485
|
+
return
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
if (!this._element.getAttribute('aria-label') && !this._element.textContent.trim()) {
|
|
489
|
+
this._element.setAttribute('aria-label', title);
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
this._element.setAttribute('data-bs-original-title', title); // DO NOT USE IT. Is only for backwards compatibility
|
|
493
|
+
this._element.removeAttribute('title');
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
_enter() {
|
|
497
|
+
if (this._isShown() || this._isHovered) {
|
|
498
|
+
this._isHovered = true;
|
|
499
|
+
return
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
this._isHovered = true;
|
|
503
|
+
|
|
504
|
+
this._setTimeout(() => {
|
|
505
|
+
if (this._isHovered) {
|
|
506
|
+
this.show();
|
|
507
|
+
}
|
|
508
|
+
}, this._config.delay.show);
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
_leave() {
|
|
512
|
+
if (this._isWithActiveTrigger()) {
|
|
513
|
+
return
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
this._isHovered = false;
|
|
517
|
+
|
|
518
|
+
this._setTimeout(() => {
|
|
519
|
+
if (!this._isHovered) {
|
|
520
|
+
this.hide();
|
|
521
|
+
}
|
|
522
|
+
}, this._config.delay.hide);
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
_setTimeout(handler, timeout) {
|
|
526
|
+
clearTimeout(this._timeout);
|
|
527
|
+
this._timeout = setTimeout(handler, timeout);
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
_isWithActiveTrigger() {
|
|
531
|
+
return Object.values(this._activeTrigger).includes(true)
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
_getConfig(config) {
|
|
535
|
+
const dataAttributes = Manipulator.getDataAttributes(this._element);
|
|
536
|
+
|
|
537
|
+
for (const dataAttribute of Object.keys(dataAttributes)) {
|
|
538
|
+
if (DISALLOWED_ATTRIBUTES.has(dataAttribute)) {
|
|
539
|
+
delete dataAttributes[dataAttribute];
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
config = {
|
|
544
|
+
...dataAttributes,
|
|
545
|
+
...(typeof config === 'object' && config ? config : {}),
|
|
546
|
+
};
|
|
547
|
+
config = this._mergeConfigObj(config);
|
|
548
|
+
config = this._configAfterMerge(config);
|
|
549
|
+
this._typeCheckConfig(config);
|
|
550
|
+
return config
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
_configAfterMerge(config) {
|
|
554
|
+
config.container = config.container === false ? document.body : getElement(config.container);
|
|
555
|
+
|
|
556
|
+
if (typeof config.delay === 'number') {
|
|
557
|
+
config.delay = {
|
|
558
|
+
show: config.delay,
|
|
559
|
+
hide: config.delay,
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
if (typeof config.title === 'number') {
|
|
564
|
+
config.title = config.title.toString();
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
if (typeof config.content === 'number') {
|
|
568
|
+
config.content = config.content.toString();
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
return config
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
_getDelegateConfig() {
|
|
575
|
+
const config = {};
|
|
576
|
+
|
|
577
|
+
for (const key in this._config) {
|
|
578
|
+
if (this.constructor.Default[key] !== this._config[key]) {
|
|
579
|
+
config[key] = this._config[key];
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
config.selector = false;
|
|
584
|
+
config.trigger = 'manual';
|
|
585
|
+
|
|
586
|
+
// In the future can be replaced with:
|
|
587
|
+
// const keysWithDifferentValues = Object.entries(this._config).filter(entry => this.constructor.Default[entry[0]] !== this._config[entry[0]])
|
|
588
|
+
// `Object.fromEntries(keysWithDifferentValues)`
|
|
589
|
+
return config
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
_disposePopper() {
|
|
593
|
+
if (this._popper) {
|
|
594
|
+
this._popper.destroy();
|
|
595
|
+
this._popper = null;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
if (this.tip) {
|
|
599
|
+
this.tip.remove();
|
|
600
|
+
this.tip = null;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
4
604
|
|
|
5
605
|
export { Tooltip as default };
|
|
6
606
|
//# sourceMappingURL=tooltip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.js","sources":["../../src/js/plugins/tooltip.js"],"sourcesContent":["import { default as BSTooltip } from 'bootstrap/js/src/tooltip'\n\nclass Tooltip extends BSTooltip {}\n\nexport default Tooltip\n"],"names":[],"mappings":";;AAEA,MAAM,OAAO,SAAS,SAAS,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"tooltip.js","sources":["../../src/js/plugins/tooltip.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap Italia (https://italia.github.io/bootstrap-italia/)\n * Authors: https://github.com/italia/bootstrap-italia/blob/main/AUTHORS\n * Licensed under BSD-3-Clause license (https://github.com/italia/bootstrap-italia/blob/main/LICENSE)\n * This a fork of Bootstrap: Initial license and original file name below\n * Bootstrap (v5.2.3): tooltip.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport * as Popper from '@popperjs/core'\nimport { findShadowRoot, getElement, getUID, isRTL, noop } from './util/index'\nimport { DefaultAllowlist } from './util/sanitizer'\nimport EventHandler from './dom/event-handler'\nimport Manipulator from './dom/manipulator'\nimport BaseComponent from './base-component'\nimport TemplateFactory from './util/template-factory'\n\n/**\n * Constants\n */\n\nconst NAME = 'tooltip'\nconst DISALLOWED_ATTRIBUTES = new Set(['sanitize', 'allowList', 'sanitizeFn'])\n\nconst CLASS_NAME_FADE = 'fade'\nconst CLASS_NAME_MODAL = 'modal'\nconst CLASS_NAME_SHOW = 'show'\n\nconst SELECTOR_TOOLTIP_INNER = '.tooltip-inner'\nconst SELECTOR_MODAL = `.${CLASS_NAME_MODAL}`\n\nconst EVENT_MODAL_HIDE = 'hide.bs.modal'\n\nconst TRIGGER_HOVER = 'hover'\nconst TRIGGER_FOCUS = 'focus'\nconst TRIGGER_CLICK = 'click'\nconst TRIGGER_MANUAL = 'manual'\n\nconst EVENT_HIDE = 'hide'\nconst EVENT_HIDDEN = 'hidden'\nconst EVENT_SHOW = 'show'\nconst EVENT_SHOWN = 'shown'\nconst EVENT_INSERTED = 'inserted'\nconst EVENT_CLICK = 'click'\nconst EVENT_FOCUSIN = 'focusin'\nconst EVENT_FOCUSOUT = 'focusout'\nconst EVENT_MOUSEENTER = 'mouseenter'\nconst EVENT_MOUSELEAVE = 'mouseleave'\n\nconst AttachmentMap = {\n AUTO: 'auto',\n TOP: 'top',\n RIGHT: isRTL() ? 'left' : 'right',\n BOTTOM: 'bottom',\n LEFT: isRTL() ? 'right' : 'left',\n}\n\nconst Default = {\n allowList: DefaultAllowlist,\n animation: true,\n boundary: 'clippingParents',\n container: false,\n customClass: '',\n delay: 0,\n fallbackPlacements: ['top', 'right', 'bottom', 'left'],\n html: false,\n offset: [0, 0],\n placement: 'top',\n popperConfig: null,\n sanitize: true,\n sanitizeFn: null,\n selector: false,\n template: '<div class=\"tooltip\" role=\"tooltip\">' + '<div class=\"tooltip-arrow\"></div>' + '<div class=\"tooltip-inner\"></div>' + '</div>',\n title: '',\n trigger: 'hover focus',\n}\n\nconst DefaultType = {\n allowList: 'object',\n animation: 'boolean',\n boundary: '(string|element)',\n container: '(string|element|boolean)',\n customClass: '(string|function)',\n delay: '(number|object)',\n fallbackPlacements: 'array',\n html: 'boolean',\n offset: '(array|string|function)',\n placement: '(string|function)',\n popperConfig: '(null|object|function)',\n sanitize: 'boolean',\n sanitizeFn: '(null|function)',\n selector: '(string|boolean)',\n template: 'string',\n title: '(string|element|function)',\n trigger: 'string',\n}\n\n/**\n * Class definition\n */\n\nclass Tooltip extends BaseComponent {\n constructor(element, config) {\n if (typeof Popper === 'undefined') {\n throw new TypeError(\"Bootstrap's tooltips require Popper (https://popper.js.org)\")\n }\n\n super(element, config)\n\n // Private\n this._isEnabled = true\n this._timeout = 0\n this._isHovered = null\n this._activeTrigger = {}\n this._popper = null\n this._templateFactory = null\n this._newContent = null\n\n // Protected\n this.tip = null\n\n this._setListeners()\n\n if (!this._config.selector) {\n this._fixTitle()\n }\n }\n\n // Getters\n static get Default() {\n return Default\n }\n\n static get DefaultType() {\n return DefaultType\n }\n\n static get NAME() {\n return NAME\n }\n\n // Public\n enable() {\n this._isEnabled = true\n }\n\n disable() {\n this._isEnabled = false\n }\n\n toggleEnabled() {\n this._isEnabled = !this._isEnabled\n }\n\n toggle() {\n if (!this._isEnabled) {\n return\n }\n\n this._activeTrigger.click = !this._activeTrigger.click\n if (this._isShown()) {\n this._leave()\n return\n }\n\n this._enter()\n }\n\n dispose() {\n clearTimeout(this._timeout)\n\n EventHandler.off(this._element.closest(SELECTOR_MODAL), EVENT_MODAL_HIDE, this._hideModalHandler)\n\n if (this._element.getAttribute('data-bs-original-title')) {\n this._element.setAttribute('title', this._element.getAttribute('data-bs-original-title'))\n }\n\n this._disposePopper()\n super.dispose()\n }\n\n show() {\n if (this._element.style.display === 'none') {\n throw new Error('Please use show on visible elements')\n }\n\n if (!(this._isWithContent() && this._isEnabled)) {\n return\n }\n\n const showEvent = EventHandler.trigger(this._element, this.constructor.eventName(EVENT_SHOW))\n const shadowRoot = findShadowRoot(this._element)\n const isInTheDom = (shadowRoot || this._element.ownerDocument.documentElement).contains(this._element)\n\n if (showEvent.defaultPrevented || !isInTheDom) {\n return\n }\n\n // todo v6 remove this OR make it optional\n this._disposePopper()\n\n const tip = this._getTipElement()\n\n this._element.setAttribute('aria-describedby', tip.getAttribute('id'))\n\n const { container } = this._config\n\n if (!this._element.ownerDocument.documentElement.contains(this.tip)) {\n container.append(tip)\n EventHandler.trigger(this._element, this.constructor.eventName(EVENT_INSERTED))\n }\n\n this._popper = this._createPopper(tip)\n\n tip.classList.add(CLASS_NAME_SHOW)\n\n // If this is a touch-enabled device we add extra\n // empty mouseover listeners to the body's immediate children;\n // only needed because of broken event delegation on iOS\n // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html\n if ('ontouchstart' in document.documentElement) {\n for (const element of [].concat(...document.body.children)) {\n EventHandler.on(element, 'mouseover', noop)\n }\n }\n\n const complete = () => {\n EventHandler.trigger(this._element, this.constructor.eventName(EVENT_SHOWN))\n\n if (this._isHovered === false) {\n this._leave()\n }\n\n this._isHovered = false\n }\n\n this._queueCallback(complete, this.tip, this._isAnimated())\n }\n\n hide() {\n if (!this._isShown()) {\n return\n }\n\n const hideEvent = EventHandler.trigger(this._element, this.constructor.eventName(EVENT_HIDE))\n if (hideEvent.defaultPrevented) {\n return\n }\n\n const tip = this._getTipElement()\n tip.classList.remove(CLASS_NAME_SHOW)\n\n // If this is a touch-enabled device we remove the extra\n // empty mouseover listeners we added for iOS support\n if ('ontouchstart' in document.documentElement) {\n for (const element of [].concat(...document.body.children)) {\n EventHandler.off(element, 'mouseover', noop)\n }\n }\n\n this._activeTrigger[TRIGGER_CLICK] = false\n this._activeTrigger[TRIGGER_FOCUS] = false\n this._activeTrigger[TRIGGER_HOVER] = false\n this._isHovered = null // it is a trick to support manual triggering\n\n const complete = () => {\n if (this._isWithActiveTrigger()) {\n return\n }\n\n if (!this._isHovered) {\n this._disposePopper()\n }\n\n this._element.removeAttribute('aria-describedby')\n EventHandler.trigger(this._element, this.constructor.eventName(EVENT_HIDDEN))\n }\n\n this._queueCallback(complete, this.tip, this._isAnimated())\n }\n\n update() {\n if (this._popper) {\n this._popper.update()\n }\n }\n\n // Protected\n _isWithContent() {\n return Boolean(this._getTitle())\n }\n\n _getTipElement() {\n if (!this.tip) {\n this.tip = this._createTipElement(this._newContent || this._getContentForTemplate())\n }\n\n return this.tip\n }\n\n _createTipElement(content) {\n const tip = this._getTemplateFactory(content).toHtml()\n\n // todo: remove this check on v6\n if (!tip) {\n return null\n }\n\n tip.classList.remove(CLASS_NAME_FADE, CLASS_NAME_SHOW)\n // todo: on v6 the following can be achieved with CSS only\n tip.classList.add(`bs-${this.constructor.NAME}-auto`)\n\n const tipId = getUID(this.constructor.NAME).toString()\n\n tip.setAttribute('id', tipId)\n\n if (this._isAnimated()) {\n tip.classList.add(CLASS_NAME_FADE)\n }\n\n return tip\n }\n\n setContent(content) {\n this._newContent = content\n if (this._isShown()) {\n this._disposePopper()\n this.show()\n }\n }\n\n _getTemplateFactory(content) {\n if (this._templateFactory) {\n this._templateFactory.changeContent(content)\n } else {\n this._templateFactory = new TemplateFactory({\n ...this._config,\n // the `content` var has to be after `this._config`\n // to override config.content in case of popover\n content,\n extraClass: this._resolvePossibleFunction(this._config.customClass),\n })\n }\n\n return this._templateFactory\n }\n\n _getContentForTemplate() {\n return {\n [SELECTOR_TOOLTIP_INNER]: this._getTitle(),\n }\n }\n\n _getTitle() {\n return this._resolvePossibleFunction(this._config.title) || this._element.getAttribute('data-bs-original-title')\n }\n\n // Private\n _initializeOnDelegatedTarget(event) {\n return this.constructor.getOrCreateInstance(event.delegateTarget, this._getDelegateConfig())\n }\n\n _isAnimated() {\n return this._config.animation || (this.tip && this.tip.classList.contains(CLASS_NAME_FADE))\n }\n\n _isShown() {\n return this.tip && this.tip.classList.contains(CLASS_NAME_SHOW)\n }\n\n _createPopper(tip) {\n const placement = typeof this._config.placement === 'function' ? this._config.placement.call(this, tip, this._element) : this._config.placement\n const attachment = AttachmentMap[placement.toUpperCase()]\n return Popper.createPopper(this._element, tip, this._getPopperConfig(attachment))\n }\n\n _getOffset() {\n const { offset } = this._config\n\n if (typeof offset === 'string') {\n return offset.split(',').map((value) => Number.parseInt(value, 10))\n }\n\n if (typeof offset === 'function') {\n return (popperData) => offset(popperData, this._element)\n }\n\n return offset\n }\n\n _resolvePossibleFunction(arg) {\n return typeof arg === 'function' ? arg.call(this._element) : arg\n }\n\n _getPopperConfig(attachment) {\n const defaultBsPopperConfig = {\n placement: attachment,\n modifiers: [\n {\n name: 'flip',\n options: {\n fallbackPlacements: this._config.fallbackPlacements,\n },\n },\n {\n name: 'offset',\n options: {\n offset: this._getOffset(),\n },\n },\n {\n name: 'preventOverflow',\n options: {\n boundary: this._config.boundary,\n },\n },\n {\n name: 'arrow',\n options: {\n element: `.${this.constructor.NAME}-arrow`,\n },\n },\n {\n name: 'preSetPlacement',\n enabled: true,\n phase: 'beforeMain',\n fn: (data) => {\n // Pre-set Popper's placement attribute in order to read the arrow sizes properly.\n // Otherwise, Popper mixes up the width and height dimensions since the initial arrow style is for top placement\n this._getTipElement().setAttribute('data-popper-placement', data.state.placement)\n },\n },\n ],\n }\n\n return {\n ...defaultBsPopperConfig,\n ...(typeof this._config.popperConfig === 'function' ? this._config.popperConfig(defaultBsPopperConfig) : this._config.popperConfig),\n }\n }\n\n _setListeners() {\n const triggers = this._config.trigger.split(' ')\n\n for (const trigger of triggers) {\n if (trigger === 'click') {\n EventHandler.on(this._element, this.constructor.eventName(EVENT_CLICK), this._config.selector, (event) => {\n const context = this._initializeOnDelegatedTarget(event)\n context.toggle()\n })\n } else if (trigger !== TRIGGER_MANUAL) {\n const eventIn = trigger === TRIGGER_HOVER ? this.constructor.eventName(EVENT_MOUSEENTER) : this.constructor.eventName(EVENT_FOCUSIN)\n const eventOut = trigger === TRIGGER_HOVER ? this.constructor.eventName(EVENT_MOUSELEAVE) : this.constructor.eventName(EVENT_FOCUSOUT)\n\n EventHandler.on(this._element, eventIn, this._config.selector, (event) => {\n const context = this._initializeOnDelegatedTarget(event)\n context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true\n context._enter()\n })\n EventHandler.on(this._element, eventOut, this._config.selector, (event) => {\n const context = this._initializeOnDelegatedTarget(event)\n context._activeTrigger[event.type === 'focusout' ? TRIGGER_FOCUS : TRIGGER_HOVER] = context._element.contains(event.relatedTarget)\n\n context._leave()\n })\n }\n }\n\n this._hideModalHandler = () => {\n if (this._element) {\n this.hide()\n }\n }\n\n EventHandler.on(this._element.closest(SELECTOR_MODAL), EVENT_MODAL_HIDE, this._hideModalHandler)\n }\n\n _fixTitle() {\n const title = this._element.getAttribute('title')\n\n if (!title) {\n return\n }\n\n if (!this._element.getAttribute('aria-label') && !this._element.textContent.trim()) {\n this._element.setAttribute('aria-label', title)\n }\n\n this._element.setAttribute('data-bs-original-title', title) // DO NOT USE IT. Is only for backwards compatibility\n this._element.removeAttribute('title')\n }\n\n _enter() {\n if (this._isShown() || this._isHovered) {\n this._isHovered = true\n return\n }\n\n this._isHovered = true\n\n this._setTimeout(() => {\n if (this._isHovered) {\n this.show()\n }\n }, this._config.delay.show)\n }\n\n _leave() {\n if (this._isWithActiveTrigger()) {\n return\n }\n\n this._isHovered = false\n\n this._setTimeout(() => {\n if (!this._isHovered) {\n this.hide()\n }\n }, this._config.delay.hide)\n }\n\n _setTimeout(handler, timeout) {\n clearTimeout(this._timeout)\n this._timeout = setTimeout(handler, timeout)\n }\n\n _isWithActiveTrigger() {\n return Object.values(this._activeTrigger).includes(true)\n }\n\n _getConfig(config) {\n const dataAttributes = Manipulator.getDataAttributes(this._element)\n\n for (const dataAttribute of Object.keys(dataAttributes)) {\n if (DISALLOWED_ATTRIBUTES.has(dataAttribute)) {\n delete dataAttributes[dataAttribute]\n }\n }\n\n config = {\n ...dataAttributes,\n ...(typeof config === 'object' && config ? config : {}),\n }\n config = this._mergeConfigObj(config)\n config = this._configAfterMerge(config)\n this._typeCheckConfig(config)\n return config\n }\n\n _configAfterMerge(config) {\n config.container = config.container === false ? document.body : getElement(config.container)\n\n if (typeof config.delay === 'number') {\n config.delay = {\n show: config.delay,\n hide: config.delay,\n }\n }\n\n if (typeof config.title === 'number') {\n config.title = config.title.toString()\n }\n\n if (typeof config.content === 'number') {\n config.content = config.content.toString()\n }\n\n return config\n }\n\n _getDelegateConfig() {\n const config = {}\n\n for (const key in this._config) {\n if (this.constructor.Default[key] !== this._config[key]) {\n config[key] = this._config[key]\n }\n }\n\n config.selector = false\n config.trigger = 'manual'\n\n // In the future can be replaced with:\n // const keysWithDifferentValues = Object.entries(this._config).filter(entry => this.constructor.Default[entry[0]] !== this._config[entry[0]])\n // `Object.fromEntries(keysWithDifferentValues)`\n return config\n }\n\n _disposePopper() {\n if (this._popper) {\n this._popper.destroy()\n this._popper = null\n }\n\n if (this.tip) {\n this.tip.remove()\n this.tip = null\n }\n }\n}\n\nexport default Tooltip\n"],"names":[],"mappings":";;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAUA;AACA;AACA;;AAEA,MAAM,IAAI,GAAG;AACb,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC,CAAC,UAAU,EAAE,WAAW,EAAE,YAAY,CAAC;;AAE7E,MAAM,eAAe,GAAG;AACxB,MAAM,gBAAgB,GAAG;AACzB,MAAM,eAAe,GAAG;;AAExB,MAAM,sBAAsB,GAAG;AAC/B,MAAM,cAAc,GAAG,CAAC,CAAC,EAAE,gBAAgB,CAAC;;AAE5C,MAAM,gBAAgB,GAAG;;AAEzB,MAAM,aAAa,GAAG;AACtB,MAAM,aAAa,GAAG;AACtB,MAAM,aAAa,GAAG;AACtB,MAAM,cAAc,GAAG;;AAEvB,MAAM,UAAU,GAAG;AACnB,MAAM,YAAY,GAAG;AACrB,MAAM,UAAU,GAAG;AACnB,MAAM,WAAW,GAAG;AACpB,MAAM,cAAc,GAAG;AACvB,MAAM,WAAW,GAAG;AACpB,MAAM,aAAa,GAAG;AACtB,MAAM,cAAc,GA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AO,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ;AAC9C;;AAEA,IAAI,OAAO;AACX;;AAEA,EAAE,kBAAkB,GAAG;AACvB,IAAI,MAAM,MAAM,GAAG;;AAEnB,IAAI,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,OAAO,EAAE;AACpC,MAAM,IAAI,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;AAC/D,QAAQ,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG;AACtC;AACA;;AAEA,IAAI,MAAM,CAAC,QAAQ,GAAG;AACtB,IAAI,MAAM,CAAC,OAAO,GAAG;;AAErB;AACA;AACA;AACA,IAAI,OAAO;AACX;;AAEA,EAAE,cAAc,GAAG;AACnB,IAAI,IAAI,IAAI,CAAC,OAAO,EAAE;AACtB,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO;AAC1B,MAAM,IAAI,CAAC,OAAO,GAAG;AACrB;;AAEA,IAAI,IAAI,IAAI,CAAC,GAAG,EAAE;AAClB,MAAM,IAAI,CAAC,GAAG,CAAC,MAAM;AACrB,MAAM,IAAI,CAAC,GAAG,GAAG;AACjB;AACA;AACA;;;;"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* --------------------------------------------------------------------------
|
|
3
|
+
* Bootstrap Italia (https://italia.github.io/bootstrap-italia/)
|
|
4
|
+
* Authors: https://github.com/italia/bootstrap-italia/blob/main/AUTHORS
|
|
5
|
+
* Licensed under BSD-3-Clause license (https://github.com/italia/bootstrap-italia/blob/main/LICENSE)
|
|
6
|
+
* --------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
|
|
1
9
|
const DATA_MOUSE_FOCUS = 'data-focus-mouse';
|
|
2
10
|
const CLASS_NAME_MOUSE_FOCUS = 'focus--mouse';
|
|
3
11
|
|