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
@@ -20,7 +20,7 @@
20
20
 
21
21
  const DATA_MOUSE_FOCUS="data-focus-mouse";class TrackFocus{constructor(){this._usingMouse=!1,this._bindEvents();}_bindEvents(){["keydown","mousedown"].forEach((t=>{document.addEventListener(t,(t=>{this._usingMouse="mousedown"===t.type;}));})),document.addEventListener("focusin",(t=>{this._usingMouse&&t.target&&(t.target.classList.add("focus--mouse"),t.target.setAttribute(DATA_MOUSE_FOCUS,!0));})),document.addEventListener("focusout",(t=>{t.target&&(t.target.classList.remove("focus--mouse"),t.target.setAttribute(DATA_MOUSE_FOCUS,!1));}));}}new TrackFocus;const TrackFocus$1 = TrackFocus;
22
22
 
23
- const BOOTSTRAP_ITALIA_VERSION = "2.3.0";
23
+ const BOOTSTRAP_ITALIA_VERSION = "2.3.2";
24
24
 
25
25
  const init=()=>{window.BOOTSTRAP_ITALIA_VERSION||(new TrackFocus$1,window.BOOTSTRAP_ITALIA_VERSION=BOOTSTRAP_ITALIA_VERSION);};const init$1 = init;init();
26
26
 
@@ -46,7 +46,7 @@
46
46
 
47
47
  const DATA_MOUSE_FOCUS="data-focus-mouse";class TrackFocus{constructor(){this._usingMouse=!1,this._bindEvents();}_bindEvents(){["keydown","mousedown"].forEach((t=>{document.addEventListener(t,(t=>{this._usingMouse="mousedown"===t.type;}));})),document.addEventListener("focusin",(t=>{this._usingMouse&&t.target&&(t.target.classList.add("focus--mouse"),t.target.setAttribute(DATA_MOUSE_FOCUS,!0));})),document.addEventListener("focusout",(t=>{t.target&&(t.target.classList.remove("focus--mouse"),t.target.setAttribute(DATA_MOUSE_FOCUS,!1));}));}}new TrackFocus;const TrackFocus$1 = TrackFocus;
48
48
 
49
- const BOOTSTRAP_ITALIA_VERSION = "2.3.0";
49
+ const BOOTSTRAP_ITALIA_VERSION = "2.3.2";
50
50
 
51
51
  const init=()=>{window.BOOTSTRAP_ITALIA_VERSION||(new TrackFocus$1,window.BOOTSTRAP_ITALIA_VERSION=BOOTSTRAP_ITALIA_VERSION);};const init$1 = init;init();
52
52
 
package/dist/version.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // bootstrap italia version variable
2
2
  // useful to check for the current version
3
3
  // eslint-disable-next-line no-unused-vars
4
- const BOOTSTRAP_ITALIA_VERSION = '2.3.0';
4
+ const BOOTSTRAP_ITALIA_VERSION = '2.3.2';
5
5
 
6
6
  export { BOOTSTRAP_ITALIA_VERSION as default };
7
7
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sources":["../src/js/version.js"],"sourcesContent":["// bootstrap italia version variable\n// useful to check for the current version\n// eslint-disable-next-line no-unused-vars\nconst BOOTSTRAP_ITALIA_VERSION = '2.3.0'\nexport default BOOTSTRAP_ITALIA_VERSION\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACK,MAAC,wBAAwB,GAAG;;;;"}
1
+ {"version":3,"file":"version.js","sources":["../src/js/version.js"],"sourcesContent":["// bootstrap italia version variable\n// useful to check for the current version\n// eslint-disable-next-line no-unused-vars\nconst BOOTSTRAP_ITALIA_VERSION = '2.3.2'\nexport default BOOTSTRAP_ITALIA_VERSION\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACK,MAAC,wBAAwB,GAAG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bootstrap-italia",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "keywords": [
5
5
  "css",
6
6
  "sass",
package/src/js/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // bootstrap italia version variable
2
2
  // useful to check for the current version
3
3
  // eslint-disable-next-line no-unused-vars
4
- const BOOTSTRAP_ITALIA_VERSION = '2.3.0'
4
+ const BOOTSTRAP_ITALIA_VERSION = '2.3.2'
5
5
  export default BOOTSTRAP_ITALIA_VERSION
@@ -1,3 +1,3 @@
1
1
  :root {
2
- --bootstrap-italia-version: '2.3.0';
2
+ --bootstrap-italia-version: '2.3.2';
3
3
  }
@@ -1,10 +1,24 @@
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
  type KeyName = 'ArrowDown' | 'ArrowUp' | 'Home' | 'End'
4
5
 
5
6
  declare class Accordion extends BaseComponent {
6
7
  static get NAME(): string
7
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
+
8
22
  constructor(element: HTMLElement)
9
23
 
10
24
  handleKeyDown(keyName: KeyName, target: HTMLElement, evt: Event): void
@@ -1,5 +1,18 @@
1
1
  import { Alert as BSAlert } from 'bootstrap'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
2
3
 
3
- declare class Alert extends BSAlert {}
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<Alert>;
15
+
16
+ }
4
17
 
5
18
  export { Alert }
@@ -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 BackToTop 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<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
+ >;
5
18
 
6
- constructor(element: HTMLElement, config: any)
19
+ constructor(element: HTMLElement, config?: Partial<BackToTop.Options>)
7
20
 
8
21
  _config: any
9
22
  _scrollCb: {
@@ -30,4 +43,35 @@ declare class BackToTop extends BaseComponent {
30
43
  _bindEvents(): void
31
44
  }
32
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
+
33
77
  export { BackToTop }
@@ -1,5 +1,17 @@
1
1
  import { Button as BSButton } from 'bootstrap'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
2
3
 
3
- declare class Button extends BSButton {}
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
+ }
4
16
 
5
17
  export { Button }
@@ -1,7 +1,21 @@
1
1
  import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
3
+
2
4
  import Splide from '@splidejs/splide'
3
5
 
4
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<CarouselBI>;
18
+
5
19
  static get NAME(): string
6
20
 
7
21
  constructor(element: HTMLElement)
@@ -1,5 +1,17 @@
1
1
  import { Carousel as BSCarousel } from 'bootstrap'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
2
3
 
3
- declare class Carousel extends BSCarousel {}
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<Carousel>;
15
+ }
4
16
 
5
17
  export { Carousel }
@@ -1,5 +1,19 @@
1
1
  import { Collapse as BSCollapse } from 'bootstrap'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
2
3
 
3
- declare class Collapse extends BSCollapse {}
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
+ }
4
18
 
5
19
  export { Collapse }
@@ -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
  * ------------------------------------------------------------------------
@@ -10,6 +11,17 @@ declare class Cookiebar extends BaseComponent {
10
11
 
11
12
  static get VERSION(): string
12
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
+
13
25
  static clearCookie(): void
14
26
 
15
27
  static _handleAccept(cookiebarInstance: any): (event: any) => void
@@ -1,8 +1,20 @@
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 Dimmer extends BaseComponent {
4
5
  static get NAME(): string
5
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
+
6
18
  constructor(element: HTMLElement)
7
19
 
8
20
  _isShown: boolean
@@ -1,5 +1,20 @@
1
1
  import { Dropdown as BSDropdown } from 'bootstrap'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
2
3
 
3
- declare class Dropdown extends BSDropdown {}
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
+ }
4
19
 
5
20
  export { Dropdown }
@@ -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
  * DEPRECATED
@@ -6,6 +7,17 @@ import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
6
7
  declare class Form extends BaseComponent {
7
8
  static get NAME(): string
8
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
+
9
21
  constructor(element: HTMLElement)
10
22
 
11
23
  _bindEvents(): void
@@ -1,9 +1,23 @@
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 Forward extends BaseComponent {
4
5
  static get NAME(): string
5
6
 
6
- constructor(element: HTMLElement, config: any)
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>)
7
21
 
8
22
  _config: any
9
23
 
@@ -14,4 +28,22 @@ declare class Forward extends BaseComponent {
14
28
  _bindEvents(): void
15
29
  }
16
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
+
17
49
  export { Forward }
@@ -1,6 +1,16 @@
1
- declare class HeaderSticky {
2
- static getOrCreateInstance(element: HTMLElement): any
1
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
3
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>;
4
14
  constructor(element: HTMLElement)
5
15
 
6
16
  _element: any
@@ -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 HistoryBack 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<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>;
5
16
 
6
17
  constructor(element: HTMLElement)
7
18
 
@@ -1,8 +1,20 @@
1
1
  import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
2
2
  import { InputLabel } from './input-label'
3
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
4
+
3
5
 
4
6
  declare class InputNumber extends BaseComponent {
5
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>;
6
18
 
7
19
  constructor(element: HTMLElement)
8
20
 
@@ -1,10 +1,23 @@
1
1
  import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
2
2
  import { InputLabel } from './input-label'
3
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
4
+
3
5
 
4
6
  declare class InputPassword extends BaseComponent {
5
7
  static get NAME(): string
6
8
 
7
- constructor(element: HTMLElement, config: any)
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>)
8
21
 
9
22
  _config: any
10
23
  _isCustom: any
@@ -63,4 +76,59 @@ declare class InputPassword extends BaseComponent {
63
76
  _checkRepetition(rLen: any, str: any): string
64
77
  }
65
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
+ * Show text toggle
126
+ *
127
+ * @default true
128
+ */
129
+ showText: boolean;
130
+ }
131
+
132
+ }
133
+
66
134
  export { InputPassword }
@@ -1,10 +1,24 @@
1
1
  import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
2
2
  import { InputLabel } from './input-label'
3
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
4
+
3
5
 
4
6
  declare class InputSearch extends BaseComponent {
5
7
  static get NAME(): string
6
-
7
- constructor(element: HTMLElement, config: any)
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>)
8
22
 
9
23
  _config: any
10
24
  _items: any[]
@@ -24,4 +38,17 @@ declare class InputSearch extends BaseComponent {
24
38
  _createOption(link: any, text: any, label: any, icon: any): HTMLLIElement
25
39
  }
26
40
 
41
+ declare namespace InputSearch {
42
+
43
+ interface Options {
44
+ /**
45
+ * Autocomplete elements
46
+ *
47
+ * @default []
48
+ */
49
+ autocomplete: any[],
50
+ }
51
+
52
+ }
53
+
27
54
  export { InputSearch }
@@ -1,9 +1,19 @@
1
1
  import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
2
2
  import { InputLabel } from './input-label'
3
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
3
4
 
4
5
  declare class Input extends BaseComponent {
5
6
  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<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>;
7
17
  constructor(element: HTMLElement)
8
18
 
9
19
  _label: InputLabel
@@ -1,8 +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 List extends BaseComponent {
4
5
  static get NAME(): string
5
-
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>;
6
16
  constructor(element: HTMLElement)
7
17
 
8
18
  toggleCheckbox(item: any): void
@@ -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 Masonry 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<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?: Partial<Masonry.Options>)
7
19
 
8
20
  _config: any
9
21
  _masonry: any
@@ -31,4 +43,17 @@ declare class Masonry extends BaseComponent {
31
43
  _hideLoader(): void
32
44
  }
33
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
+
34
59
  export { Masonry }