bootstrap-italia 2.3.0 → 2.3.2

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 (44) hide show
  1. package/dist/css/bootstrap-italia-comuni.min.css +1 -1
  2. package/dist/css/bootstrap-italia.min.css +1 -1
  3. package/dist/js/bootstrap-italia.bundle.min.js +1 -1
  4. package/dist/js/bootstrap-italia.min.js +1 -1
  5. package/dist/version.js +1 -1
  6. package/dist/version.js.map +1 -1
  7. package/package.json +1 -1
  8. package/src/js/version.js +1 -1
  9. package/src/scss/custom/_version.scss +1 -1
  10. package/types/plugins/accordion.d.ts +14 -0
  11. package/types/plugins/alert.d.ts +14 -1
  12. package/types/plugins/backToTop.d.ts +45 -1
  13. package/types/plugins/button.d.ts +13 -1
  14. package/types/plugins/carousel-bi.d.ts +14 -0
  15. package/types/plugins/carousel.d.ts +13 -1
  16. package/types/plugins/collapse.d.ts +15 -1
  17. package/types/plugins/cookiebar.d.ts +12 -0
  18. package/types/plugins/dimmer.d.ts +12 -0
  19. package/types/plugins/dropdown.d.ts +16 -1
  20. package/types/plugins/form.d.ts +12 -0
  21. package/types/plugins/forward.d.ts +33 -1
  22. package/types/plugins/header-sticky.d.ts +12 -2
  23. package/types/plugins/history-back.d.ts +11 -0
  24. package/types/plugins/input-number.d.ts +12 -0
  25. package/types/plugins/input-password.d.ts +69 -1
  26. package/types/plugins/input-search-autocomplete.d.ts +29 -2
  27. package/types/plugins/input.d.ts +11 -1
  28. package/types/plugins/list.d.ts +11 -1
  29. package/types/plugins/masonry.d.ts +27 -2
  30. package/types/plugins/modal.d.ts +16 -1
  31. package/types/plugins/navbar-collapsible.d.ts +11 -0
  32. package/types/plugins/navscroll.d.ts +39 -2
  33. package/types/plugins/notification.d.ts +13 -1
  34. package/types/plugins/offcanvas.d.ts +15 -1
  35. package/types/plugins/popover.d.ts +15 -1
  36. package/types/plugins/progress-donut.d.ts +69 -2
  37. package/types/plugins/scrollspy.d.ts +15 -1
  38. package/types/plugins/select-autocomplete.d.ts +45 -1
  39. package/types/plugins/sticky.d.ts +2 -2
  40. package/types/plugins/tab.d.ts +13 -1
  41. package/types/plugins/toast.d.ts +15 -1
  42. package/types/plugins/tooltip.d.ts +15 -1
  43. package/types/plugins/transfer.d.ts +11 -0
  44. package/types/plugins/upload-dragdrop.d.ts +11 -0
@@ -1,5 +1,20 @@
1
1
  import { Modal as BSModal } from 'bootstrap'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
2
3
 
3
- declare class Modal extends BSModal {}
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
+ }
4
19
 
5
20
  export { Modal }
@@ -1,7 +1,18 @@
1
1
  import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
2
3
 
3
4
  declare class NavBarCollapsible extends BaseComponent {
4
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>;
5
16
 
6
17
  constructor(element: HTMLElement)
7
18
 
@@ -1,9 +1,22 @@
1
1
  import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
2
3
 
3
4
  declare class NavScroll extends BaseComponent {
4
5
  static get NAME(): string
5
-
6
- constructor(element: HTMLElement, config: any)
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?: Partial<NavScroll.Options>)
7
20
 
8
21
  _config: any
9
22
  _togglerElement: any
@@ -45,4 +58,28 @@ declare class NavScroll extends BaseComponent {
45
58
  _getScrollPadding(): any
46
59
  }
47
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
+
48
85
  export { NavScroll }
@@ -1,4 +1,5 @@
1
1
  import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
2
3
 
3
4
  /**
4
5
  * toggle per attivazione
@@ -8,7 +9,18 @@ import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
8
9
  **/
9
10
  declare class Notification extends BaseComponent {
10
11
  static get NAME(): string
11
-
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
+ >;
12
24
  constructor(element: HTMLElement, config?: Partial<Notification.Options>)
13
25
 
14
26
  _config: any
@@ -1,5 +1,19 @@
1
1
  import { Offcanvas as BSOffcanvas } from 'bootstrap'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
2
3
 
3
- declare class Offcanvas extends BSOffcanvas {}
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
+ }
4
18
 
5
19
  export { Offcanvas }
@@ -1,5 +1,19 @@
1
1
  import { Popover as BSPopover } from 'bootstrap'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
2
3
 
3
- declare class Popover extends BSPopover {}
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
+ }
4
18
 
5
19
  export { Popover }
@@ -1,9 +1,21 @@
1
1
  import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
2
3
 
3
4
  declare class ProgressDonut extends BaseComponent {
4
5
  static get NAME(): string
5
-
6
- constructor(element: HTMLElement, config: any)
6
+ /**
7
+ * Static method which allows you to get the instance associated
8
+ * with a DOM element.
9
+ */
10
+ static getInstance: GetInstanceFactory<ProgressDonut>;
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
+ ProgressDonut, Partial<ProgressDonut.Options>
17
+ >;
18
+ constructor(element: HTMLElement, config?: Partial<ProgressDonut.Options>)
7
19
 
8
20
  _config: any
9
21
  _bar: any
@@ -19,4 +31,59 @@ declare class ProgressDonut extends BaseComponent {
19
31
  _init(): void
20
32
  }
21
33
 
34
+ declare namespace ProgressDonut {
35
+
36
+ interface Options {
37
+ /**
38
+ * Main color
39
+ *
40
+ * @default '#5C6F82'
41
+ */
42
+ color: string;
43
+ /**
44
+ * Trail color
45
+ *
46
+ * @default '#D9DADB'
47
+ */
48
+ trailColor: string;
49
+ /**
50
+ * Stroke width
51
+ *
52
+ * @default 24
53
+ */
54
+ strokeWidth: number;
55
+ /**
56
+ * Trail width
57
+ *
58
+ * @default 12
59
+ */
60
+ trailWidth: number;
61
+ /**
62
+ * Duration
63
+ *
64
+ * @default 1400
65
+ */
66
+ duration: number;
67
+ /**
68
+ * Value
69
+ *
70
+ * @default 0
71
+ */
72
+ value: number;
73
+ /**
74
+ * Animate
75
+ *
76
+ * @default true
77
+ */
78
+ animate: boolean;
79
+ /**
80
+ * Scroll easing
81
+ *
82
+ * @default 'easeInOut'
83
+ */
84
+ easing: string;
85
+ }
86
+
87
+ }
88
+
22
89
  export { ProgressDonut }
@@ -1,5 +1,19 @@
1
1
  import { ScrollSpy as BSScrollspy } from 'bootstrap'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
2
3
 
3
- declare class ScrollSpy extends BSScrollspy {}
4
+ declare class ScrollSpy extends BSScrollspy {
5
+ /**
6
+ * Static method which allows you to get the instance associated
7
+ * with a DOM element.
8
+ */
9
+ static getInstance: GetInstanceFactory<ScrollSpy>;
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
+ ScrollSpy, Partial<BSScrollspy.Options>
16
+ >;
17
+ }
4
18
 
5
19
  export { ScrollSpy }
@@ -1,13 +1,57 @@
1
1
  import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
2
3
 
3
4
  declare class SelectAutocomplete extends BaseComponent {
4
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<SelectAutocomplete>;
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
+ SelectAutocomplete, any
17
+ >;
5
18
 
6
- constructor(element: HTMLElement, config: any)
19
+ constructor(element: HTMLElement, config?: any)
7
20
 
8
21
  _config: any
9
22
 
10
23
  _enhance(): void
11
24
  }
12
25
 
26
+ declare namespace SelectAutocomplete {
27
+
28
+ interface Options {
29
+ /**
30
+ * Top position
31
+ *
32
+ * @default 0
33
+ */
34
+ positionTop: number;
35
+ /**
36
+ * Scroll limit
37
+ *
38
+ * @default 100
39
+ */
40
+ scrollLimit: number;
41
+ /**
42
+ * Scroll duration
43
+ *
44
+ * @default 800
45
+ */
46
+ duration: number;
47
+ /**
48
+ * Scroll easing
49
+ *
50
+ * @default 'easeInOutSine'
51
+ */
52
+ easing: string;
53
+ }
54
+
55
+ }
56
+
13
57
  export { SelectAutocomplete }
@@ -3,9 +3,9 @@ import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
3
3
  declare class Sticky extends BaseComponent {
4
4
  static get NAME(): string
5
5
 
6
- constructor(element: HTMLElement, config?: Partial<Carousel.Options>)
6
+ constructor(element: HTMLElement, config?: Partial<Sticky.Options>)
7
7
 
8
- _config: Partial<Carousel.Options>;
8
+ _config: Partial<Sticky.Options>;
9
9
  _isSticky: boolean
10
10
  _wrapper: HTMLDivElement
11
11
  _stickyTarget: any
@@ -1,5 +1,17 @@
1
1
  import { Tab as BSTab } from 'bootstrap'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
2
3
 
3
- declare class Tab extends BSTab {}
4
+ declare class Tab extends BSTab {
5
+ /**
6
+ * Static method which allows you to get the instance associated
7
+ * with a DOM element.
8
+ */
9
+ static getInstance: GetInstanceFactory<Tab>;
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<Tab>;
15
+ }
4
16
 
5
17
  export { Tab }
@@ -1,5 +1,19 @@
1
1
  import { Toast as BSToast } from 'bootstrap'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
2
3
 
3
- declare class Toast extends BSToast {}
4
+ declare class Toast extends BSToast {
5
+ /**
6
+ * Static method which allows you to get the instance associated
7
+ * with a DOM element.
8
+ */
9
+ static getInstance: GetInstanceFactory<Toast>;
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
+ Toast, Partial<BSToast.Options>
16
+ >;
17
+ }
4
18
 
5
19
  export { Toast }
@@ -1,5 +1,19 @@
1
1
  import { Tooltip as BSTooltip } from 'bootstrap'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
2
3
 
3
- declare class Tooltip extends BSTooltip {}
4
+ declare class Tooltip extends BSTooltip {
5
+ /**
6
+ * Static method which allows you to get the instance associated
7
+ * with a DOM element.
8
+ */
9
+ static getInstance: GetInstanceFactory<Tooltip>;
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
+ Tooltip, Partial<BSTooltip.Options>
16
+ >;
17
+ }
4
18
 
5
19
  export { Tooltip }
@@ -1,7 +1,18 @@
1
1
  import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
2
3
 
3
4
  declare class Transfer extends BaseComponent {
4
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<Transfer>;
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<Transfer>;
5
16
 
6
17
  constructor(element: HTMLElement)
7
18
 
@@ -1,7 +1,18 @@
1
1
  import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
2
3
 
3
4
  declare class UploadDragDrop extends BaseComponent {
4
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<UploadDragDrop>;
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<UploadDragDrop>;
5
16
 
6
17
  constructor(element: HTMLElement)
7
18