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,89 @@
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 ProgressDonut 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<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>)
19
+
20
+ _config: any
21
+ _bar: any
22
+
23
+ set(progess: any): void
24
+
25
+ dispose(): void
26
+
27
+ _getConfig(config: any): any
28
+
29
+ _getStepCallback(): (state: any, circle: any) => void
30
+
31
+ _init(): void
32
+ }
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
+
89
+ export { ProgressDonut }
@@ -0,0 +1,19 @@
1
+ import { ScrollSpy as BSScrollspy } from 'bootstrap'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
3
+
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
+ }
18
+
19
+ export { ScrollSpy }
@@ -0,0 +1,57 @@
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 SelectAutocomplete 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<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
+ >;
18
+
19
+ constructor(element: HTMLElement, config: any)
20
+
21
+ _config: any
22
+
23
+ _enhance(): void
24
+ }
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
+
57
+ export { SelectAutocomplete }
@@ -0,0 +1,97 @@
1
+ import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
2
+
3
+ declare class Sticky extends BaseComponent {
4
+ static get NAME(): string
5
+
6
+ constructor(element: HTMLElement, config?: Partial<Sticky.Options>)
7
+
8
+ _config: Partial<Sticky.Options>;
9
+ _isSticky: boolean
10
+ _wrapper: HTMLDivElement
11
+ _stickyTarget: any
12
+ _stickyTargetMobile: any
13
+ _stickyLimit: number
14
+ _stickyLimitMobile: number
15
+ _scrollCb: {
16
+ id: any
17
+ _callback: any
18
+ dispose(): void
19
+ _execute(data: any): void
20
+ }
21
+ _isMobile: boolean
22
+ _prevTop: number
23
+
24
+ dispose(): void
25
+
26
+ _getConfig(config: any): any
27
+
28
+ _bindEvents(): void
29
+
30
+ _onResize(): void
31
+
32
+ _onScroll(): void
33
+
34
+ _setLimit(): void
35
+
36
+ _getLimit(): number
37
+
38
+ /**
39
+ * get the absolute position of an element
40
+ * @param {*} element - the target element
41
+ * @returns {Object} - absolute position top and left of the element
42
+ */
43
+ _cumulativeOffset(element: any): any
44
+
45
+ _isTypeSticky(): boolean
46
+
47
+ _checkSticky(): void
48
+
49
+ _setSticky(): void
50
+
51
+ _unsetSticky(): void
52
+
53
+ _createWrapper(): HTMLDivElement
54
+
55
+ _destroyWrapper(): void
56
+
57
+ _getStickySimblings(): any
58
+
59
+ /**
60
+ * returns the top position of the element considering the config and the other sticky elements
61
+ */
62
+ _getPositionTop(): any
63
+ }
64
+
65
+ declare namespace Sticky {
66
+ interface Options {
67
+ /**
68
+ * Position type: 'sticky' or 'fixed'.
69
+ *
70
+ * @default 'sticky'
71
+ */
72
+ positionType: 'sticky' | string;
73
+
74
+ /**
75
+ * Class name for sticky.
76
+ *
77
+ * @default ''
78
+ */
79
+ stickyClassName: string;
80
+
81
+ /**
82
+ * If set to true, Sticky element will be stackable
83
+ *
84
+ * @default false
85
+ */
86
+ stackable: boolean | false;
87
+
88
+ /**
89
+ * Padding top value
90
+ *
91
+ * @default 0
92
+ */
93
+ paddingTop: number;
94
+ }
95
+ }
96
+
97
+ export { Sticky }
@@ -0,0 +1,17 @@
1
+ import { Tab as BSTab } from 'bootstrap'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
3
+
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
+ }
16
+
17
+ export { Tab }
@@ -0,0 +1,19 @@
1
+ import { Toast as BSToast } from 'bootstrap'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
3
+
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
+ }
18
+
19
+ export { Toast }
@@ -0,0 +1,19 @@
1
+ import { Tooltip as BSTooltip } from 'bootstrap'
2
+ import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
3
+
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
+ }
18
+
19
+ export { Tooltip }
@@ -0,0 +1,7 @@
1
+ declare class TrackFocus {
2
+ _usingMouse: boolean
3
+
4
+ _bindEvents(): void
5
+ }
6
+
7
+ export { TrackFocus }
@@ -0,0 +1,52 @@
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 Transfer 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<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>;
16
+
17
+ constructor(element: HTMLElement)
18
+
19
+ _addBtnElement: any
20
+ _invBtnElement: any
21
+ _resetBtnElement: any
22
+ _listDefault: {
23
+ source: any
24
+ target: any
25
+ }
26
+
27
+ _bindEvents(): void
28
+
29
+ _disableElement(element: any): void
30
+
31
+ _enableElement(element: any): void
32
+
33
+ _getScopeData(scope: any): {
34
+ scope: any
35
+ list: any
36
+ listChecked: any
37
+ head: any
38
+ inputHead: any
39
+ labelNumHead: any
40
+ group: any
41
+ }
42
+
43
+ _checkList(scopeElControl: any): void
44
+
45
+ _checkListHeader(scopeElControl: any): void
46
+
47
+ _addItems(inverse: any): void
48
+
49
+ _resetAll(): void
50
+ }
51
+
52
+ export { Transfer }
@@ -0,0 +1,44 @@
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 UploadDragDrop 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<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>;
16
+
17
+ constructor(element: HTMLElement)
18
+
19
+ _donut: any
20
+
21
+ progress(value: any): void
22
+
23
+ start(): void
24
+
25
+ success(): void
26
+
27
+ reset(): void
28
+
29
+ dispose(): void
30
+
31
+ _bindEvents(): void
32
+
33
+ _preventEvent(evt: any): void
34
+
35
+ _dropIn(): void
36
+
37
+ _dropOut(): void
38
+
39
+ _drop(): void
40
+
41
+ _isSuccess(): any
42
+ }
43
+
44
+ export { UploadDragDrop }
package/types/decs.d.ts DELETED
@@ -1 +0,0 @@
1
- declare module 'bootstrap-italia'