bootstrap-italia 2.2.0 → 2.3.1

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.
Files changed (115) hide show
  1. package/README.EN.md +1 -1
  2. package/README.md +1 -1
  3. package/dist/css/bootstrap-italia-comuni.min.css +1 -1
  4. package/dist/css/bootstrap-italia.min.css +1 -1
  5. package/dist/css/bootstrap-italia.min.css.map +1 -1
  6. package/dist/js/bootstrap-italia.bundle.min.js +253 -189
  7. package/dist/js/bootstrap-italia.min.js +256 -0
  8. package/dist/plugins/input-label.js +4 -1
  9. package/dist/plugins/input-label.js.map +1 -1
  10. package/dist/plugins/notification.js +1 -23
  11. package/dist/plugins/notification.js.map +1 -1
  12. package/dist/plugins/progress-donut.js +2 -2
  13. package/dist/plugins/progress-donut.js.map +1 -1
  14. package/dist/plugins/tab.js +82 -1
  15. package/dist/plugins/tab.js.map +1 -1
  16. package/dist/svg/sprites.svg +1 -1
  17. package/dist/version.js +1 -1
  18. package/dist/version.js.map +1 -1
  19. package/package.json +6 -4
  20. package/src/js/bootstrap-italia.entry.js +14 -1
  21. package/src/js/icons.js +2 -0
  22. package/src/js/plugins/input-label.js +4 -1
  23. package/src/js/plugins/notification.js +1 -32
  24. package/src/js/plugins/progress-donut.js +2 -2
  25. package/src/js/plugins/tab.js +82 -1
  26. package/src/js/version.js +1 -1
  27. package/src/scss/_variables.scss +66 -57
  28. package/src/scss/bootstrap-italia-comuni.scss +40 -39
  29. package/src/scss/bootstrap-italia.scss +39 -38
  30. package/src/scss/custom/_accordion.scss +5 -5
  31. package/src/scss/custom/_alert.scss +3 -3
  32. package/src/scss/custom/_autocomplete.scss +2 -2
  33. package/src/scss/custom/_avatar.scss +5 -5
  34. package/src/scss/custom/_back-to-top.scss +2 -2
  35. package/src/scss/custom/_bottomnav.scss +2 -2
  36. package/src/scss/custom/_breadcrumb.scss +2 -0
  37. package/src/scss/custom/_buttons.scss +13 -8
  38. package/src/scss/custom/_calendar.scss +2 -2
  39. package/src/scss/custom/_callout.scss +25 -25
  40. package/src/scss/custom/_card.scss +1 -1
  41. package/src/scss/custom/_carousel.scss +3 -4
  42. package/src/scss/custom/_chips.scss +4 -4
  43. package/src/scss/custom/_cookiebar.scss +1 -1
  44. package/src/scss/custom/_dimmer.scss +5 -5
  45. package/src/scss/custom/_dropdown.scss +6 -6
  46. package/src/scss/custom/_footer.scss +2 -2
  47. package/src/scss/custom/_form-datepicker.scss +2 -6
  48. package/src/scss/custom/_form-input-file.scss +2 -2
  49. package/src/scss/custom/_form-input-number.scss +13 -13
  50. package/src/scss/custom/_form-password.scss +1 -1
  51. package/src/scss/custom/_form-select.scss +3 -3
  52. package/src/scss/custom/_forms.scss +19 -17
  53. package/src/scss/custom/_just-validate.scss +7 -0
  54. package/src/scss/custom/_linklist.scss +13 -13
  55. package/src/scss/custom/_list.scss +5 -5
  56. package/src/scss/custom/_masonry-loader.scss +1 -1
  57. package/src/scss/custom/_megamenu.scss +12 -12
  58. package/src/scss/custom/_modal.scss +1 -1
  59. package/src/scss/custom/_notifications.scss +6 -6
  60. package/src/scss/custom/_point-list.scss +0 -2
  61. package/src/scss/custom/_popover.scss +2 -2
  62. package/src/scss/custom/_progress-bars.scss +3 -4
  63. package/src/scss/custom/_progress-donuts.scss +3 -3
  64. package/src/scss/custom/_progress-spinners.scss +4 -4
  65. package/src/scss/custom/_sections.scss +3 -2
  66. package/src/scss/custom/_sidebar.scss +2 -2
  67. package/src/scss/custom/_steppers.scss +82 -57
  68. package/src/scss/custom/_tab.scss +23 -19
  69. package/src/scss/custom/_timeline.scss +9 -11
  70. package/src/scss/custom/_toolbar.scss +12 -12
  71. package/src/scss/custom/_tooltip.scss +1 -1
  72. package/src/scss/custom/_version.scss +1 -1
  73. package/src/scss/utilities/colors_vars.scss +64 -28
  74. package/src/svg/it-mastodon-square.svg +3 -0
  75. package/src/svg/it-mastodon.svg +3 -0
  76. package/types/index.d.ts +80 -0
  77. package/types/plugins/accordion.d.ts +39 -0
  78. package/types/plugins/alert.d.ts +20 -0
  79. package/types/plugins/backToTop.d.ts +77 -0
  80. package/types/plugins/button.d.ts +17 -0
  81. package/types/plugins/carousel-bi.d.ts +59 -0
  82. package/types/plugins/carousel.d.ts +19 -0
  83. package/types/plugins/collapse.d.ts +19 -0
  84. package/types/plugins/cookiebar.d.ts +59 -0
  85. package/types/plugins/dimmer.d.ts +34 -0
  86. package/types/plugins/dropdown.d.ts +20 -0
  87. package/types/plugins/form-validate.d.ts +53 -0
  88. package/types/plugins/form.d.ts +30 -0
  89. package/types/plugins/forward.d.ts +49 -0
  90. package/types/plugins/header-sticky.d.ts +24 -0
  91. package/types/plugins/history-back.d.ts +24 -0
  92. package/types/plugins/input-label.d.ts +25 -0
  93. package/types/plugins/input-number.d.ts +35 -0
  94. package/types/plugins/input-password.d.ts +128 -0
  95. package/types/plugins/input-search-autocomplete.d.ts +54 -0
  96. package/types/plugins/input.d.ts +26 -0
  97. package/types/plugins/list.d.ts +25 -0
  98. package/types/plugins/masonry.d.ts +59 -0
  99. package/types/plugins/modal.d.ts +20 -0
  100. package/types/plugins/navbar-collapsible.d.ts +77 -0
  101. package/types/plugins/navscroll.d.ts +85 -0
  102. package/types/plugins/notification.d.ts +92 -0
  103. package/types/plugins/offcanvas.d.ts +19 -0
  104. package/types/plugins/popover.d.ts +19 -0
  105. package/types/plugins/progress-donut.d.ts +89 -0
  106. package/types/plugins/scrollspy.d.ts +19 -0
  107. package/types/plugins/select-autocomplete.d.ts +57 -0
  108. package/types/plugins/sticky.d.ts +97 -0
  109. package/types/plugins/tab.d.ts +17 -0
  110. package/types/plugins/toast.d.ts +19 -0
  111. package/types/plugins/tooltip.d.ts +19 -0
  112. package/types/plugins/track-focus.d.ts +7 -0
  113. package/types/plugins/transfer.d.ts +52 -0
  114. package/types/plugins/upload-dragdrop.d.ts +44 -0
  115. package/types/decs.d.ts +0 -1
@@ -0,0 +1,35 @@
1
+ import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
2
+ import { InputLabel } from './input-label'
3
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
4
+
5
+
6
+ declare class InputNumber extends BaseComponent {
7
+ static get NAME(): string
8
+ /**
9
+ * Static method which allows you to get the instance associated
10
+ * with a DOM element.
11
+ */
12
+ static getInstance: GetInstanceFactory<InputNumber>;
13
+ /**
14
+ * Static method which allows you to get the modal instance associated with
15
+ * a DOM element, or create a new one in case it wasn’t initialised
16
+ */
17
+ static getOrCreateInstance: GetOrCreateInstanceFactory<InputNumber>;
18
+
19
+ constructor(element: HTMLElement)
20
+
21
+ _wrapperElement: any
22
+ _label: InputLabel
23
+
24
+ _init(): void
25
+
26
+ _bindEvents(): void
27
+
28
+ _inputResize(): void
29
+
30
+ _incrDecr(isDecr: any): void
31
+
32
+ _checkLimit(): void
33
+ }
34
+
35
+ export { InputNumber }
@@ -0,0 +1,128 @@
1
+ import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
2
+ import { InputLabel } from './input-label'
3
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
4
+
5
+
6
+ declare class InputPassword extends BaseComponent {
7
+ static get NAME(): string
8
+
9
+ /**
10
+ * Static method which allows you to get the instance associated
11
+ * with a DOM element.
12
+ */
13
+ static getInstance: GetInstanceFactory<InputPassword>;
14
+ /**
15
+ * Static method which allows you to get the modal instance associated with
16
+ * a DOM element, or create a new one in case it wasn’t initialised
17
+ */
18
+ static getOrCreateInstance: GetOrCreateInstanceFactory<InputPassword, Partial<InputPassword.Options>>;
19
+
20
+ constructor(element: HTMLElement, config?: Partial<InputPassword.Options>)
21
+
22
+ _config: any
23
+ _isCustom: any
24
+ _meter: any
25
+ _isShiftPressed: boolean
26
+ _isCapsOn: boolean
27
+ _grayBarElement: any
28
+ _colorBarElement: any
29
+ _textElement: any
30
+ _capsElement: any
31
+ _showPwdElement: any
32
+ _text: {}
33
+ _label: InputLabel
34
+
35
+ _getConfig(config: any): any
36
+
37
+ _init(): void
38
+
39
+ _bindEvents(): void
40
+
41
+ _showCapsMsg(): void
42
+
43
+ _hideCapsMsg(): void
44
+
45
+ _toggleShowPassword(): void
46
+
47
+ _checkPassword(): void
48
+
49
+ /**
50
+ * Returns strings based on the score given.
51
+ *
52
+ * @param int score Score base.
53
+ * @return string
54
+ */
55
+ _scoreText(score: any): any
56
+
57
+ _scoreColor(score: any): 'success' | 'danger' | 'muted' | 'warning'
58
+
59
+ /**
60
+ * Returns a value between -1 and 100 to score
61
+ * the user's password.
62
+ *
63
+ * @param string password The password to be checked.
64
+ * @return int
65
+ */
66
+ _calculateScore(password: any): number
67
+
68
+ /**
69
+ * Checks for repetition of characters in
70
+ * a string
71
+ *
72
+ * @param int rLen Repetition length.
73
+ * @param string str The string to be checked.
74
+ * @return string
75
+ */
76
+ _checkRepetition(rLen: any, str: any): string
77
+ }
78
+
79
+ declare namespace InputPassword {
80
+
81
+ interface Options {
82
+ /**
83
+ * Label message in case of short password
84
+ *
85
+ * @default 'Password molto debole'
86
+ */
87
+ shortPass: string;
88
+ /**
89
+ * Label message in case of bad password
90
+ *
91
+ * @default 'Password debole'
92
+ */
93
+ badPass: string;
94
+ /**
95
+ * Label message in case of good (secure) password
96
+ *
97
+ * @default 'Password sicura'
98
+ */
99
+ goodPass: string;
100
+ /**
101
+ * Label message in case of very secure password
102
+ *
103
+ * @default 'Password molto sicura'
104
+ */
105
+ strongPass: string;
106
+ /**
107
+ * Label message to instruct users on how to choose a password
108
+ *
109
+ * @default 'Inserisci almeno 8 caratteri e una lettera maiuscola'
110
+ */
111
+ enterPass: string;
112
+ /**
113
+ * Label message in case of caps lock
114
+ *
115
+ * @default 'CAPS LOCK inserito'
116
+ */
117
+ alertCaps: string;
118
+ /**
119
+ * Minimum password length
120
+ *
121
+ * @default 4
122
+ */
123
+ minimumLength: number;
124
+ }
125
+
126
+ }
127
+
128
+ export { InputPassword }
@@ -0,0 +1,54 @@
1
+ import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
2
+ import { InputLabel } from './input-label'
3
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
4
+
5
+
6
+ declare class InputSearch extends BaseComponent {
7
+ static get NAME(): string
8
+ /**
9
+ * Static method which allows you to get the instance associated
10
+ * with a DOM element.
11
+ */
12
+ static getInstance: GetInstanceFactory<InputSearch>;
13
+ /**
14
+ * Static method which allows you to get the modal instance associated with
15
+ * a DOM element, or create a new one in case it wasn’t initialised
16
+ */
17
+ static getOrCreateInstance: GetOrCreateInstanceFactory<
18
+ InputSearch, Partial<InputSearch.Options>
19
+ >;
20
+
21
+ constructor(element: HTMLElement, config?: Partial<InputSearch.Options>)
22
+
23
+ _config: any
24
+ _items: any[]
25
+ _autocompleteElement: HTMLUListElement
26
+ _label: InputLabel
27
+
28
+ search(): void
29
+
30
+ _getConfig(config: any): any
31
+
32
+ _getItems(): any
33
+
34
+ _init(): void
35
+
36
+ _bindEvents(): void
37
+
38
+ _createOption(link: any, text: any, label: any, icon: any): HTMLLIElement
39
+ }
40
+
41
+ declare namespace InputSearch {
42
+
43
+ interface Options {
44
+ /**
45
+ * Autocomplete elements
46
+ *
47
+ * @default []
48
+ */
49
+ autocomplete: any[],
50
+ }
51
+
52
+ }
53
+
54
+ export { InputSearch }
@@ -0,0 +1,26 @@
1
+ import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
2
+ import { InputLabel } from './input-label'
3
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
4
+
5
+ declare class Input extends BaseComponent {
6
+ static get NAME(): string
7
+ /**
8
+ * Static method which allows you to get the instance associated
9
+ * with a DOM element.
10
+ */
11
+ static getInstance: GetInstanceFactory<Input>;
12
+ /**
13
+ * Static method which allows you to get the modal instance associated with
14
+ * a DOM element, or create a new one in case it wasn’t initialised
15
+ */
16
+ static getOrCreateInstance: GetOrCreateInstanceFactory<Input>;
17
+ constructor(element: HTMLElement)
18
+
19
+ _label: InputLabel
20
+
21
+ _bindEvents(): void
22
+
23
+ _handleFileDescription(): void
24
+ }
25
+
26
+ export { Input }
@@ -0,0 +1,25 @@
1
+ import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
3
+
4
+ declare class List extends BaseComponent {
5
+ static get NAME(): string
6
+ /**
7
+ * Static method which allows you to get the instance associated
8
+ * with a DOM element.
9
+ */
10
+ static getInstance: GetInstanceFactory<List>;
11
+ /**
12
+ * Static method which allows you to get the modal instance associated with
13
+ * a DOM element, or create a new one in case it wasn’t initialised
14
+ */
15
+ static getOrCreateInstance: GetOrCreateInstanceFactory<List>;
16
+ constructor(element: HTMLElement)
17
+
18
+ toggleCheckbox(item: any): void
19
+
20
+ _init(): void
21
+
22
+ _initCheckbox(): void
23
+ }
24
+
25
+ export { List }
@@ -0,0 +1,59 @@
1
+ import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
3
+
4
+ declare class Masonry extends BaseComponent {
5
+ static get NAME(): string
6
+ /**
7
+ * Static method which allows you to get the instance associated
8
+ * with a DOM element.
9
+ */
10
+ static getInstance: GetInstanceFactory<Masonry>;
11
+ /**
12
+ * Static method which allows you to get the modal instance associated with
13
+ * a DOM element, or create a new one in case it wasn’t initialised
14
+ */
15
+ static getOrCreateInstance: GetOrCreateInstanceFactory<
16
+ Masonry, Partial<Masonry.Options>
17
+ >;
18
+ constructor(element: HTMLElement, config: any)
19
+
20
+ _config: any
21
+ _masonry: any
22
+ _images: any
23
+ _loadCounter: number
24
+
25
+ dispose(): void
26
+
27
+ _getConfig(config: any): any
28
+
29
+ _init(): void
30
+
31
+ _onLoadEnd(): void
32
+
33
+ _initMasonry(): void
34
+
35
+ _createLoader(): HTMLDivElement
36
+
37
+ _getOrCreateLoader(): any
38
+
39
+ _destroyLoader(): void
40
+
41
+ _showLoader(): void
42
+
43
+ _hideLoader(): void
44
+ }
45
+
46
+ declare namespace Masonry {
47
+
48
+ interface Options {
49
+ /**
50
+ * Sets item positions in percent values, rather than pixel value
51
+ *
52
+ * @default true
53
+ */
54
+ percentPosition: boolean;
55
+ }
56
+
57
+ }
58
+
59
+ export { Masonry }
@@ -0,0 +1,20 @@
1
+ import { Modal as BSModal } from 'bootstrap'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
3
+
4
+
5
+ declare class Modal extends BSModal {
6
+ /**
7
+ * Static method which allows you to get the instance associated
8
+ * with a DOM element.
9
+ */
10
+ static getInstance: GetInstanceFactory<Modal>;
11
+ /**
12
+ * Static method which allows you to get the modal instance associated with
13
+ * a DOM element, or create a new one in case it wasn’t initialised
14
+ */
15
+ static getOrCreateInstance: GetOrCreateInstanceFactory<
16
+ Modal, Partial<BSModal.Options>
17
+ >;
18
+ }
19
+
20
+ export { Modal }
@@ -0,0 +1,77 @@
1
+ import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
3
+
4
+ declare class NavBarCollapsible extends BaseComponent {
5
+ static get NAME(): string
6
+ /**
7
+ * Static method which allows you to get the instance associated
8
+ * with a DOM element.
9
+ */
10
+ static getInstance: GetInstanceFactory<NavBarCollapsible>;
11
+ /**
12
+ * Static method which allows you to get the modal instance associated with
13
+ * a DOM element, or create a new one in case it wasn’t initialised
14
+ */
15
+ static getOrCreateInstance: GetOrCreateInstanceFactory<NavBarCollapsible>;
16
+
17
+ constructor(element: HTMLElement)
18
+
19
+ _isShown: boolean
20
+ _isTransitioning: boolean
21
+ _isMobile: boolean
22
+ _isKeyShift: boolean
23
+ _currItemIdx: number
24
+ _btnClose: any
25
+ _btnBack: any
26
+ _menuWrapper: any
27
+ _overlay: any
28
+ _menuItems: any
29
+
30
+ show(relatedTarget: any): void
31
+
32
+ hide(): void
33
+
34
+ toggle(relatedTarget: any): void
35
+
36
+ dispose(): void
37
+
38
+ _bindEvents(): void
39
+
40
+ _onResize(): void
41
+
42
+ _onMenuItemKeyUp(evt: any): void
43
+
44
+ _onMenuItemKeyDown(evt: any): void
45
+
46
+ /**
47
+ * Update the last focused element when an interactive element is clicked
48
+ */
49
+ _onMenuItemClick(evt: any): void
50
+
51
+ currItemIdx: number
52
+
53
+ _isAnimated(): boolean
54
+
55
+ _isElementHidden(element: any): boolean
56
+
57
+ _showElement(): void
58
+
59
+ _hideElement(): void
60
+
61
+ _setOverlay(): void
62
+
63
+ /**
64
+ * Moves focus to the next focusable element based on the DOM exploration direction
65
+ */
66
+ _focusNext(): void
67
+
68
+ /**
69
+ * Get the next focusable element from a starting point
70
+ * @param {int} start - the index of the array of the elements as starting point (included)
71
+ * @param {boolean} wayTop - the array search direction (true: bottom to top, false: top to bottom)
72
+ * @returns {Object} the item found and its index in the array
73
+ */
74
+ _getNextVisibleItem(start: number, wayTop: boolean): any
75
+ }
76
+
77
+ export { NavBarCollapsible }
@@ -0,0 +1,85 @@
1
+ import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
3
+
4
+ declare class NavScroll extends BaseComponent {
5
+ static get NAME(): string
6
+ /**
7
+ * Static method which allows you to get the instance associated
8
+ * with a DOM element.
9
+ */
10
+ static getInstance: GetInstanceFactory<NavScroll>;
11
+ /**
12
+ * Static method which allows you to get the modal instance associated with
13
+ * a DOM element, or create a new one in case it wasn’t initialised
14
+ */
15
+ static getOrCreateInstance: GetOrCreateInstanceFactory<
16
+ NavScroll, Partial<NavScroll.Options>
17
+ >;
18
+
19
+ constructor(element: HTMLElement, config: any)
20
+
21
+ _config: any
22
+ _togglerElement: any
23
+ _sectionContainer: any
24
+ _collapsible: any
25
+ _isCollapseOpened: boolean
26
+ _callbackQueue: any[]
27
+ _scrollCb: {
28
+ id: any
29
+ _callback: any
30
+ dispose(): void
31
+ _execute(data: any): void
32
+ }
33
+
34
+ setScrollPadding(scrollPadding: any): void
35
+
36
+ dispose(): void
37
+
38
+ _getConfig(config: any): any
39
+
40
+ _bindEvents(): void
41
+
42
+ _onCollapseOpened(): void
43
+
44
+ _onCollapseClosed(): void
45
+
46
+ _getParentLinks(element: any): any[]
47
+
48
+ _decorateToggler(text: any): void
49
+
50
+ _scrollToHash(hash: any): void
51
+
52
+ _updateProgress(content: any): void
53
+
54
+ _onScroll(): void
55
+
56
+ _getCollapsible(): any
57
+
58
+ _getScrollPadding(): any
59
+ }
60
+
61
+ declare namespace NavScroll {
62
+
63
+ interface Options {
64
+ /**
65
+ * Scroll padding
66
+ *
67
+ * @default 10
68
+ */
69
+ scrollPadding: number;
70
+ /**
71
+ * Scroll duration
72
+ *
73
+ * @default 800
74
+ */
75
+ duration: number;
76
+ /**
77
+ * Scroll easing
78
+ *
79
+ * @default 'easeInOutSine'
80
+ */
81
+ easing: string;
82
+ }
83
+ }
84
+
85
+ export { NavScroll }
@@ -0,0 +1,92 @@
1
+ import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
3
+
4
+ /**
5
+ * toggle per attivazione
6
+ * attrib per timeout (assegnabili al toggler o al componente, vince sempre il toggler)
7
+ * gestione chiusura (dismissable)
8
+ * la classe si riferisce all'elemento notification, con options, metodi open(timeout) e close (che deve gestire il timeout)
9
+ **/
10
+ declare class Notification extends BaseComponent {
11
+ static get NAME(): string
12
+ /**
13
+ * Static method which allows you to get the instance associated
14
+ * with a DOM element.
15
+ */
16
+ static getInstance: GetInstanceFactory<Notification>;
17
+ /**
18
+ * Static method which allows you to get the modal instance associated with
19
+ * a DOM element, or create a new one in case it wasn’t initialised
20
+ */
21
+ static getOrCreateInstance: GetOrCreateInstanceFactory<
22
+ Notification, Partial<Notification.Options>
23
+ >;
24
+ constructor(element: HTMLElement, config?: Partial<Notification.Options>)
25
+
26
+ _config: any
27
+ _isShown: boolean
28
+ _isTransitioning: boolean
29
+ _toId: any
30
+
31
+ show(timeout?: number, relatedTarget?: string | Element): void
32
+
33
+ hide(): void
34
+
35
+ toggle(relatedTarget?: string | Element): void
36
+
37
+ _isAnimated(): boolean
38
+
39
+ _showElement(timeout: number): void
40
+
41
+ _hideElement(): void
42
+
43
+ _getConfig(config: any): any
44
+
45
+ _getElementTimeout(relatedTarget: string | Element): any
46
+
47
+ _setTimeout(duration: any, callback: any): void
48
+
49
+ _clearTimeout(): void
50
+ }
51
+
52
+ declare namespace Notification {
53
+ enum Events {
54
+ /**
55
+ * This event fires immediately when the show instance method is called.
56
+ * If caused by a click, the clicked element is available as the
57
+ * relatedTarget property of the event.
58
+ */
59
+ show = 'show.bs.modal',
60
+
61
+ /**
62
+ * This event is fired when the modal has finished being hidden from the
63
+ * user (will wait for CSS transitions to complete).
64
+ */
65
+ hidden = 'hidden.bs.modal',
66
+ }
67
+
68
+ interface Options {
69
+ /**
70
+ * Closes the modal timeout milliseconds
71
+ *
72
+ * @default null
73
+ */
74
+ timeout: number;
75
+ }
76
+
77
+ interface Event extends CustomEvent {
78
+ /**
79
+ * The modal DOM element.
80
+ */
81
+ target: HTMLElement;
82
+
83
+ /**
84
+ * Only present for `show.bs.modal` and `shown.bs.modal` events when
85
+ * the event was triggered by a click. In that case, it's the element
86
+ * that was clicked. Otherwise, it's undefined.
87
+ */
88
+ relatedTarget?: HTMLElement;
89
+ }
90
+ }
91
+
92
+ export { Notification }
@@ -0,0 +1,19 @@
1
+ import { Offcanvas as BSOffcanvas } from 'bootstrap'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
3
+
4
+ declare class Offcanvas extends BSOffcanvas {
5
+ /**
6
+ * Static method which allows you to get the instance associated
7
+ * with a DOM element.
8
+ */
9
+ static getInstance: GetInstanceFactory<Offcanvas>;
10
+ /**
11
+ * Static method which allows you to get the modal instance associated with
12
+ * a DOM element, or create a new one in case it wasn’t initialised
13
+ */
14
+ static getOrCreateInstance: GetOrCreateInstanceFactory<
15
+ Offcanvas, Partial<BSOffcanvas.Options>
16
+ >;
17
+ }
18
+
19
+ export { Offcanvas }
@@ -0,0 +1,19 @@
1
+ import { Popover as BSPopover } from 'bootstrap'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
3
+
4
+ declare class Popover extends BSPopover {
5
+ /**
6
+ * Static method which allows you to get the instance associated
7
+ * with a DOM element.
8
+ */
9
+ static getInstance: GetInstanceFactory<Popover>;
10
+ /**
11
+ * Static method which allows you to get the modal instance associated with
12
+ * a DOM element, or create a new one in case it wasn’t initialised
13
+ */
14
+ static getOrCreateInstance: GetOrCreateInstanceFactory<
15
+ Popover, Partial<BSPopover.Options>
16
+ >;
17
+ }
18
+
19
+ export { Popover }