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,80 @@
1
+ import { Alert } from './plugins/alert'
2
+ import { Accordion } from './plugins/accordion'
3
+ import { BackToTop } from './plugins/backToTop'
4
+ import { Button } from './plugins/button'
5
+ import { Carousel } from './plugins/carousel'
6
+ import { CarouselBI } from './plugins/carousel-bi'
7
+ import { Collapse } from './plugins/collapse'
8
+ import { Cookiebar } from './plugins/cookiebar'
9
+ import { Dimmer } from './plugins/dimmer'
10
+ import { Dropdown } from './plugins/dropdown'
11
+ import { Form } from './plugins/form'
12
+ import { FormValidate, ValidatorSelectAutocomplete } from './plugins/form-validate'
13
+ import { Forward } from './plugins/forward'
14
+ import { HeaderSticky } from './plugins/header-sticky'
15
+ import { HistoryBack } from './plugins/history-back'
16
+ import { Input } from './plugins/input'
17
+ import { InputLabel } from './plugins/input-label'
18
+ import { InputNumber } from './plugins/input-number'
19
+ import { InputPassword } from './plugins/input-password'
20
+ import { InputSearch } from './plugins/input-search-autocomplete'
21
+ import { List } from './plugins/list'
22
+ import { Masonry } from './plugins/masonry'
23
+ import { Modal } from './plugins/modal'
24
+ import { NavBarCollapsible } from './plugins/navbar-collapsible'
25
+ import { NavScroll } from './plugins/navscroll'
26
+ import { Notification } from './plugins/notification'
27
+ import { Offcanvas } from './plugins/offcanvas'
28
+ import { Popover } from './plugins/popover'
29
+ import { ProgressDonut } from './plugins/progress-donut'
30
+ import { ScrollSpy } from './plugins/scrollspy'
31
+ import { SelectAutocomplete } from './plugins/select-autocomplete'
32
+ import { Sticky } from './plugins/sticky'
33
+ import { Tab } from './plugins/tab'
34
+ import { Toast } from './plugins/toast'
35
+ import { Tooltip } from './plugins/tooltip'
36
+ import { TrackFocus } from './plugins/track-focus'
37
+ import { Transfer } from './plugins/transfer'
38
+ import { UploadDragDrop } from './plugins/upload-dragdrop'
39
+
40
+ export {
41
+ Alert,
42
+ Accordion,
43
+ BackToTop,
44
+ Button,
45
+ Carousel,
46
+ CarouselBI,
47
+ Collapse,
48
+ Cookiebar,
49
+ Dimmer,
50
+ Dropdown,
51
+ Form,
52
+ FormValidate,
53
+ ValidatorSelectAutocomplete,
54
+ Forward,
55
+ HeaderSticky,
56
+ HistoryBack,
57
+ Input,
58
+ InputLabel,
59
+ InputNumber,
60
+ InputPassword,
61
+ InputSearch,
62
+ List,
63
+ Masonry,
64
+ Modal,
65
+ NavBarCollapsible,
66
+ NavScroll,
67
+ Notification,
68
+ Offcanvas,
69
+ Popover,
70
+ ProgressDonut,
71
+ ScrollSpy,
72
+ SelectAutocomplete,
73
+ Sticky,
74
+ Tab,
75
+ Toast,
76
+ Tooltip,
77
+ TrackFocus,
78
+ Transfer,
79
+ UploadDragDrop,
80
+ }
@@ -0,0 +1,39 @@
1
+ import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
3
+
4
+ type KeyName = 'ArrowDown' | 'ArrowUp' | 'Home' | 'End'
5
+
6
+ declare class Accordion 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<Accordion>;
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<
19
+ Accordion
20
+ >;
21
+
22
+ constructor(element: HTMLElement)
23
+
24
+ handleKeyDown(keyName: KeyName, target: HTMLElement, evt: Event): void
25
+
26
+ _bindEvents(): void
27
+
28
+ _getHeadButtons(): any
29
+
30
+ _focusNext(target: HTMLElement): void
31
+
32
+ _focusPrev(target: HTMLElement): void
33
+
34
+ _focusFirst(target: HTMLElement): void
35
+
36
+ _focusLast(target: HTMLElement): void
37
+ }
38
+
39
+ export { Accordion }
@@ -0,0 +1,20 @@
1
+ import { Alert as BSAlert } from 'bootstrap'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
3
+
4
+ declare class Alert extends BSAlert {
5
+ /**
6
+ * Static method which allows you to get the instance associated
7
+ * with a DOM element.
8
+ */
9
+ static getInstance: GetInstanceFactory<Alert>;
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
+ Alert
16
+ >;
17
+
18
+ }
19
+
20
+ export { Alert }
@@ -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 BackToTop 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<BackToTop>;
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
+ BackToTop, Partial<BackToTop.Options>
17
+ >;
18
+
19
+ constructor(element: HTMLElement, config?: Partial<BackToTop.Options>)
20
+
21
+ _config: any
22
+ _scrollCb: {
23
+ id: any
24
+ _callback: any
25
+ dispose(): void
26
+ _execute(data: any): void
27
+ }
28
+ _isAnim: boolean
29
+ _prevScrollBehavior: string
30
+
31
+ show(): void
32
+
33
+ hide(): void
34
+
35
+ toggleShow(): void
36
+
37
+ scrollToTop(): void
38
+
39
+ dispose(): void
40
+
41
+ _getConfig(config: any): any
42
+
43
+ _bindEvents(): void
44
+ }
45
+
46
+ declare namespace BackToTop {
47
+
48
+ interface Options {
49
+ /**
50
+ * Top position
51
+ *
52
+ * @default 0
53
+ */
54
+ positionTop: number;
55
+ /**
56
+ * Scroll limit
57
+ *
58
+ * @default 100
59
+ */
60
+ scrollLimit: number;
61
+ /**
62
+ * Scroll duration
63
+ *
64
+ * @default 800
65
+ */
66
+ duration: number;
67
+ /**
68
+ * Scroll easing
69
+ *
70
+ * @default 'easeInOutSine'
71
+ */
72
+ easing: string;
73
+ }
74
+
75
+ }
76
+
77
+ export { BackToTop }
@@ -0,0 +1,17 @@
1
+ import { Button as BSButton } from 'bootstrap'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
3
+
4
+ declare class Button extends BSButton {
5
+ /**
6
+ * Static method which allows you to get the instance associated
7
+ * with a DOM element.
8
+ */
9
+ static getInstance: GetInstanceFactory<Button>;
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<Button>;
15
+ }
16
+
17
+ export { Button }
@@ -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
+ import Splide from '@splidejs/splide'
5
+
6
+ declare class CarouselBI extends BaseComponent {
7
+
8
+ /**
9
+ * Static method which allows you to get the instance associated
10
+ * with a DOM element.
11
+ */
12
+ static getInstance: GetInstanceFactory<CarouselBI>;
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
+ CarouselBI
19
+ >;
20
+
21
+ static get NAME(): string
22
+
23
+ constructor(element: HTMLElement)
24
+
25
+ _config: {
26
+ slideFocus: boolean
27
+ i18n: {
28
+ prev: string
29
+ next: string
30
+ first: string
31
+ last: string
32
+ slideX: string
33
+ pageX: string
34
+ play: string
35
+ pause: string
36
+ }
37
+ }
38
+ _splide: Splide
39
+
40
+ dispose(): void
41
+
42
+ _init(): void
43
+
44
+ _getConfig(): {
45
+ slideFocus: boolean
46
+ i18n: {
47
+ prev: string
48
+ next: string
49
+ first: string
50
+ last: string
51
+ slideX: string
52
+ pageX: string
53
+ play: string
54
+ pause: string
55
+ }
56
+ }
57
+ }
58
+
59
+ export { CarouselBI }
@@ -0,0 +1,19 @@
1
+ import { Carousel as BSCarousel } from 'bootstrap'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
3
+
4
+ declare class Carousel extends BSCarousel {
5
+ /**
6
+ * Static method which allows you to get the instance associated
7
+ * with a DOM element.
8
+ */
9
+ static getInstance: GetInstanceFactory<Carousel>;
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
+ Carousel
16
+ >;
17
+ }
18
+
19
+ export { Carousel }
@@ -0,0 +1,19 @@
1
+ import { Collapse as BSCollapse } from 'bootstrap'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
3
+
4
+ declare class Collapse extends BSCollapse {
5
+ /**
6
+ * Static method which allows you to get the instance associated
7
+ * with a DOM element.
8
+ */
9
+ static getInstance: GetInstanceFactory<Collapse>;
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
+ Collapse, Partial<BSCollapse.Options>
16
+ >;
17
+ }
18
+
19
+ export { Collapse }
@@ -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
+ /**
5
+ * ------------------------------------------------------------------------
6
+ * Class Definition
7
+ * ------------------------------------------------------------------------
8
+ */
9
+ declare class Cookiebar extends BaseComponent {
10
+ static get NAME(): string
11
+
12
+ static get VERSION(): string
13
+
14
+ /**
15
+ * Static method which allows you to get the instance associated
16
+ * with a DOM element.
17
+ */
18
+ static getInstance: GetInstanceFactory<Cookiebar>;
19
+ /**
20
+ * Static method which allows you to get the modal instance associated with
21
+ * a DOM element, or create a new one in case it wasn’t initialised
22
+ */
23
+ static getOrCreateInstance: GetOrCreateInstanceFactory<Cookiebar>;
24
+
25
+ static clearCookie(): void
26
+
27
+ static _handleAccept(cookiebarInstance: any): (event: any) => void
28
+
29
+ static _handleConsent(cookiebarInstance: any): (event: any) => void
30
+
31
+ static _getCookieEU(): string
32
+
33
+ constructor(element: HTMLElement)
34
+
35
+ _isShown: boolean
36
+ _isTransitioning: boolean
37
+
38
+ show(): void
39
+
40
+ hide(): void
41
+
42
+ accept(element: HTMLElement): void
43
+
44
+ _isAnimated(): boolean
45
+
46
+ _showElement(): void
47
+
48
+ _hideElement(): void
49
+
50
+ _setCookieEU(): void
51
+
52
+ _getRootElement(element: HTMLElement): any
53
+
54
+ _triggerCloseEvent(element: HTMLElement): any
55
+
56
+ _removeElement(element: HTMLElement): void
57
+ }
58
+
59
+ export { Cookiebar }
@@ -0,0 +1,34 @@
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 Dimmer extends BaseComponent {
5
+ static get NAME(): string
6
+
7
+ /**
8
+ * Static method which allows you to get the instance associated
9
+ * with a DOM element.
10
+ */
11
+ static getInstance: GetInstanceFactory<Dimmer>;
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<Dimmer>;
17
+
18
+ constructor(element: HTMLElement)
19
+
20
+ _isShown: boolean
21
+ _isTransitioning: boolean
22
+
23
+ show(): void
24
+
25
+ hide(): void
26
+
27
+ _isAnimated(): boolean
28
+
29
+ _showElement(): void
30
+
31
+ _hideElement(): void
32
+ }
33
+
34
+ export { Dimmer }
@@ -0,0 +1,20 @@
1
+ import { Dropdown as BSDropdown } from 'bootstrap'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
3
+
4
+ declare class Dropdown extends BSDropdown {
5
+ /**
6
+ * Static method which allows you to get the instance associated
7
+ * with a DOM element.
8
+ */
9
+ static getInstance: GetInstanceFactory<Dropdown>;
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
+ Dropdown, Partial<BSDropdown.Options>
16
+ >;
17
+
18
+ }
19
+
20
+ export { Dropdown }
@@ -0,0 +1,53 @@
1
+ import JustValidate from 'just-validate'
2
+
3
+ export class FormValidate {
4
+ constructor(selector: HTMLElement, config: any)
5
+
6
+ formSelector: any
7
+ target: any
8
+ validate: JustValidate
9
+ config: {
10
+ errorFieldCssClass: string
11
+ errorLabelCssClass: string
12
+ } & import('just-validate/dist/modules/interfaces').GlobalConfigInterface
13
+ formItems: any[]
14
+
15
+ init(): void
16
+
17
+ /**
18
+ * Adds ARIA attributes to the input and to the error message
19
+ * @param {Object} target - the input element
20
+ */
21
+ onInputError(target: any): void
22
+
23
+ /**
24
+ * Removes input ARIA attributes
25
+ * @param {Object} target - the input element
26
+ */
27
+ onInputErrorRemove(target: any): void
28
+
29
+ /**
30
+ * Adds ARIA attributes to the fieldset and to the error message
31
+ * @param {Object} target - the fieldset element
32
+ */
33
+ onFieldsetError(target: any): void
34
+
35
+ /**
36
+ * Removes the fieldset ARIA attributes
37
+ * @param {Object} target - the fieldset element
38
+ */
39
+ onFieldsetErrorRemove(target: any): void
40
+
41
+ /**
42
+ * get the error messages for the target
43
+ * @param {Object} target - target node
44
+ */
45
+ getErrorMessages(target: any): any
46
+ }
47
+
48
+ /**
49
+ * Validate a custom autocomplete select
50
+ * @param {string} inputId - the input id
51
+ * @param {Object} config - { required }
52
+ */
53
+ export function ValidatorSelectAutocomplete(inputId: string, config?: any): (value: any, fields: any) => boolean
@@ -0,0 +1,30 @@
1
+ import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
3
+
4
+ /**
5
+ * DEPRECATED
6
+ */
7
+ declare class Form extends BaseComponent {
8
+ static get NAME(): string
9
+
10
+ /**
11
+ * Static method which allows you to get the instance associated
12
+ * with a DOM element.
13
+ */
14
+ static getInstance: GetInstanceFactory<Form>;
15
+ /**
16
+ * Static method which allows you to get the modal instance associated with
17
+ * a DOM element, or create a new one in case it wasn’t initialised
18
+ */
19
+ static getOrCreateInstance: GetOrCreateInstanceFactory<Form>;
20
+
21
+ constructor(element: HTMLElement)
22
+
23
+ _bindEvents(): void
24
+
25
+ _getInputLabel(input: any): any
26
+
27
+ _isInputEmpty(input: any): boolean
28
+ }
29
+
30
+ export { Form }
@@ -0,0 +1,49 @@
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 Forward extends BaseComponent {
5
+ static get NAME(): string
6
+
7
+ /**
8
+ * Static method which allows you to get the instance associated
9
+ * with a DOM element.
10
+ */
11
+ static getInstance: GetInstanceFactory<Forward>;
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<
17
+ Forward, Partial<Forward.Options>
18
+ >;
19
+
20
+ constructor(element: HTMLElement, config?: Partial<Forward.Options>)
21
+
22
+ _config: any
23
+
24
+ goToTarget(): void
25
+
26
+ _getConfig(config: any): any
27
+
28
+ _bindEvents(): void
29
+ }
30
+
31
+ declare namespace Forward {
32
+
33
+ interface Options {
34
+ /**
35
+ * Scroll duration
36
+ *
37
+ * @default 800
38
+ */
39
+ duration: number;
40
+ /**
41
+ * Scroll easing
42
+ *
43
+ * @default 'easeInOutSine'
44
+ */
45
+ easing: string;
46
+ }
47
+ }
48
+
49
+ export { Forward }
@@ -0,0 +1,24 @@
1
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
2
+
3
+ declare class HeaderSticky {
4
+ /**
5
+ * Static method which allows you to get the instance associated
6
+ * with a DOM element.
7
+ */
8
+ static getInstance: GetInstanceFactory<HeaderSticky>;
9
+ /**
10
+ * Static method which allows you to get the modal instance associated with
11
+ * a DOM element, or create a new one in case it wasn’t initialised
12
+ */
13
+ static getOrCreateInstance: GetOrCreateInstanceFactory<HeaderSticky>;
14
+ constructor(element: HTMLElement)
15
+
16
+ _element: any
17
+ _elementObj: any
18
+
19
+ _bindEvents(): void
20
+
21
+ _toggleClonedElement(toAdd?: boolean): void
22
+ }
23
+
24
+ export { HeaderSticky }
@@ -0,0 +1,24 @@
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 HistoryBack 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<HistoryBack>;
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<HistoryBack>;
16
+
17
+ constructor(element: HTMLElement)
18
+
19
+ back(): void
20
+
21
+ _bindEvents(): void
22
+ }
23
+
24
+ export { HistoryBack }
@@ -0,0 +1,25 @@
1
+ declare class InputLabel {
2
+ static get NAME(): string
3
+
4
+ static getInputFromLabel: (labelElement: any) => Element
5
+
6
+ constructor(element: HTMLElement)
7
+
8
+ _element: any
9
+
10
+ _init(): void
11
+
12
+ _bindEvents(): void
13
+
14
+ _getLabel(): any
15
+
16
+ _isEmpty(): boolean
17
+
18
+ _labelOut(): void
19
+
20
+ _labelOver(): void
21
+
22
+ _labelToggle(): void
23
+ }
24
+
25
+ export { InputLabel }