bootstrap-italia 2.2.0 → 2.3.0
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.
- package/README.EN.md +1 -1
- package/README.md +1 -1
- package/dist/css/bootstrap-italia-comuni.min.css +1 -1
- package/dist/css/bootstrap-italia.min.css +1 -1
- package/dist/css/bootstrap-italia.min.css.map +1 -1
- package/dist/js/bootstrap-italia.bundle.min.js +253 -189
- package/dist/js/bootstrap-italia.min.js +256 -0
- package/dist/plugins/input-label.js +4 -1
- package/dist/plugins/input-label.js.map +1 -1
- package/dist/plugins/notification.js +1 -23
- package/dist/plugins/notification.js.map +1 -1
- package/dist/plugins/progress-donut.js +2 -2
- package/dist/plugins/progress-donut.js.map +1 -1
- package/dist/plugins/tab.js +82 -1
- package/dist/plugins/tab.js.map +1 -1
- package/dist/svg/sprites.svg +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +6 -4
- package/src/js/bootstrap-italia.entry.js +14 -1
- package/src/js/icons.js +2 -0
- package/src/js/plugins/input-label.js +4 -1
- package/src/js/plugins/notification.js +1 -32
- package/src/js/plugins/progress-donut.js +2 -2
- package/src/js/plugins/tab.js +82 -1
- package/src/js/version.js +1 -1
- package/src/scss/_variables.scss +66 -57
- package/src/scss/bootstrap-italia-comuni.scss +40 -39
- package/src/scss/bootstrap-italia.scss +39 -38
- package/src/scss/custom/_accordion.scss +5 -5
- package/src/scss/custom/_alert.scss +3 -3
- package/src/scss/custom/_autocomplete.scss +2 -2
- package/src/scss/custom/_avatar.scss +5 -5
- package/src/scss/custom/_back-to-top.scss +2 -2
- package/src/scss/custom/_bottomnav.scss +2 -2
- package/src/scss/custom/_breadcrumb.scss +2 -0
- package/src/scss/custom/_buttons.scss +13 -8
- package/src/scss/custom/_calendar.scss +2 -2
- package/src/scss/custom/_callout.scss +25 -25
- package/src/scss/custom/_card.scss +1 -1
- package/src/scss/custom/_carousel.scss +3 -4
- package/src/scss/custom/_chips.scss +4 -4
- package/src/scss/custom/_cookiebar.scss +1 -1
- package/src/scss/custom/_dimmer.scss +5 -5
- package/src/scss/custom/_dropdown.scss +6 -6
- package/src/scss/custom/_footer.scss +2 -2
- package/src/scss/custom/_form-datepicker.scss +2 -6
- package/src/scss/custom/_form-input-file.scss +2 -2
- package/src/scss/custom/_form-input-number.scss +13 -13
- package/src/scss/custom/_form-password.scss +1 -1
- package/src/scss/custom/_form-select.scss +3 -3
- package/src/scss/custom/_forms.scss +19 -17
- package/src/scss/custom/_just-validate.scss +7 -0
- package/src/scss/custom/_linklist.scss +13 -13
- package/src/scss/custom/_list.scss +5 -5
- package/src/scss/custom/_masonry-loader.scss +1 -1
- package/src/scss/custom/_megamenu.scss +12 -12
- package/src/scss/custom/_modal.scss +1 -1
- package/src/scss/custom/_notifications.scss +6 -6
- package/src/scss/custom/_point-list.scss +0 -2
- package/src/scss/custom/_popover.scss +2 -2
- package/src/scss/custom/_progress-bars.scss +3 -4
- package/src/scss/custom/_progress-donuts.scss +3 -3
- package/src/scss/custom/_progress-spinners.scss +4 -4
- package/src/scss/custom/_sections.scss +3 -2
- package/src/scss/custom/_sidebar.scss +2 -2
- package/src/scss/custom/_steppers.scss +82 -57
- package/src/scss/custom/_tab.scss +23 -19
- package/src/scss/custom/_timeline.scss +9 -11
- package/src/scss/custom/_toolbar.scss +12 -12
- package/src/scss/custom/_tooltip.scss +1 -1
- package/src/scss/custom/_version.scss +1 -1
- package/src/scss/utilities/colors_vars.scss +64 -28
- package/src/svg/it-mastodon-square.svg +3 -0
- package/src/svg/it-mastodon.svg +3 -0
- package/types/index.d.ts +80 -0
- package/types/plugins/accordion.d.ts +25 -0
- package/types/plugins/alert.d.ts +5 -0
- package/types/plugins/backToTop.d.ts +33 -0
- package/types/plugins/button.d.ts +5 -0
- package/types/plugins/carousel-bi.d.ts +43 -0
- package/types/plugins/carousel.d.ts +5 -0
- package/types/plugins/collapse.d.ts +5 -0
- package/types/plugins/cookiebar.d.ts +47 -0
- package/types/plugins/dimmer.d.ts +22 -0
- package/types/plugins/dropdown.d.ts +5 -0
- package/types/plugins/form-validate.d.ts +53 -0
- package/types/plugins/form.d.ts +18 -0
- package/types/plugins/forward.d.ts +17 -0
- package/types/plugins/header-sticky.d.ts +14 -0
- package/types/plugins/history-back.d.ts +13 -0
- package/types/plugins/input-label.d.ts +25 -0
- package/types/plugins/input-number.d.ts +23 -0
- package/types/plugins/input-password.d.ts +66 -0
- package/types/plugins/input-search-autocomplete.d.ts +27 -0
- package/types/plugins/input.d.ts +16 -0
- package/types/plugins/list.d.ts +15 -0
- package/types/plugins/masonry.d.ts +34 -0
- package/types/plugins/modal.d.ts +5 -0
- package/types/plugins/navbar-collapsible.d.ts +66 -0
- package/types/plugins/navscroll.d.ts +48 -0
- package/types/plugins/notification.d.ts +80 -0
- package/types/plugins/offcanvas.d.ts +5 -0
- package/types/plugins/popover.d.ts +5 -0
- package/types/plugins/progress-donut.d.ts +22 -0
- package/types/plugins/scrollspy.d.ts +5 -0
- package/types/plugins/select-autocomplete.d.ts +13 -0
- package/types/plugins/sticky.d.ts +97 -0
- package/types/plugins/tab.d.ts +5 -0
- package/types/plugins/toast.d.ts +5 -0
- package/types/plugins/tooltip.d.ts +5 -0
- package/types/plugins/track-focus.d.ts +7 -0
- package/types/plugins/transfer.d.ts +41 -0
- package/types/plugins/upload-dragdrop.d.ts +33 -0
- package/types/decs.d.ts +0 -1
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
|
|
2
|
+
|
|
3
|
+
declare class NavBarCollapsible extends BaseComponent {
|
|
4
|
+
static get NAME(): string
|
|
5
|
+
|
|
6
|
+
constructor(element: HTMLElement)
|
|
7
|
+
|
|
8
|
+
_isShown: boolean
|
|
9
|
+
_isTransitioning: boolean
|
|
10
|
+
_isMobile: boolean
|
|
11
|
+
_isKeyShift: boolean
|
|
12
|
+
_currItemIdx: number
|
|
13
|
+
_btnClose: any
|
|
14
|
+
_btnBack: any
|
|
15
|
+
_menuWrapper: any
|
|
16
|
+
_overlay: any
|
|
17
|
+
_menuItems: any
|
|
18
|
+
|
|
19
|
+
show(relatedTarget: any): void
|
|
20
|
+
|
|
21
|
+
hide(): void
|
|
22
|
+
|
|
23
|
+
toggle(relatedTarget: any): void
|
|
24
|
+
|
|
25
|
+
dispose(): void
|
|
26
|
+
|
|
27
|
+
_bindEvents(): void
|
|
28
|
+
|
|
29
|
+
_onResize(): void
|
|
30
|
+
|
|
31
|
+
_onMenuItemKeyUp(evt: any): void
|
|
32
|
+
|
|
33
|
+
_onMenuItemKeyDown(evt: any): void
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Update the last focused element when an interactive element is clicked
|
|
37
|
+
*/
|
|
38
|
+
_onMenuItemClick(evt: any): void
|
|
39
|
+
|
|
40
|
+
currItemIdx: number
|
|
41
|
+
|
|
42
|
+
_isAnimated(): boolean
|
|
43
|
+
|
|
44
|
+
_isElementHidden(element: any): boolean
|
|
45
|
+
|
|
46
|
+
_showElement(): void
|
|
47
|
+
|
|
48
|
+
_hideElement(): void
|
|
49
|
+
|
|
50
|
+
_setOverlay(): void
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Moves focus to the next focusable element based on the DOM exploration direction
|
|
54
|
+
*/
|
|
55
|
+
_focusNext(): void
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Get the next focusable element from a starting point
|
|
59
|
+
* @param {int} start - the index of the array of the elements as starting point (included)
|
|
60
|
+
* @param {boolean} wayTop - the array search direction (true: bottom to top, false: top to bottom)
|
|
61
|
+
* @returns {Object} the item found and its index in the array
|
|
62
|
+
*/
|
|
63
|
+
_getNextVisibleItem(start: number, wayTop: boolean): any
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { NavBarCollapsible }
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
|
|
2
|
+
|
|
3
|
+
declare class NavScroll extends BaseComponent {
|
|
4
|
+
static get NAME(): string
|
|
5
|
+
|
|
6
|
+
constructor(element: HTMLElement, config: any)
|
|
7
|
+
|
|
8
|
+
_config: any
|
|
9
|
+
_togglerElement: any
|
|
10
|
+
_sectionContainer: any
|
|
11
|
+
_collapsible: any
|
|
12
|
+
_isCollapseOpened: boolean
|
|
13
|
+
_callbackQueue: any[]
|
|
14
|
+
_scrollCb: {
|
|
15
|
+
id: any
|
|
16
|
+
_callback: any
|
|
17
|
+
dispose(): void
|
|
18
|
+
_execute(data: any): void
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
setScrollPadding(scrollPadding: any): void
|
|
22
|
+
|
|
23
|
+
dispose(): void
|
|
24
|
+
|
|
25
|
+
_getConfig(config: any): any
|
|
26
|
+
|
|
27
|
+
_bindEvents(): void
|
|
28
|
+
|
|
29
|
+
_onCollapseOpened(): void
|
|
30
|
+
|
|
31
|
+
_onCollapseClosed(): void
|
|
32
|
+
|
|
33
|
+
_getParentLinks(element: any): any[]
|
|
34
|
+
|
|
35
|
+
_decorateToggler(text: any): void
|
|
36
|
+
|
|
37
|
+
_scrollToHash(hash: any): void
|
|
38
|
+
|
|
39
|
+
_updateProgress(content: any): void
|
|
40
|
+
|
|
41
|
+
_onScroll(): void
|
|
42
|
+
|
|
43
|
+
_getCollapsible(): any
|
|
44
|
+
|
|
45
|
+
_getScrollPadding(): any
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { NavScroll }
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* toggle per attivazione
|
|
5
|
+
* attrib per timeout (assegnabili al toggler o al componente, vince sempre il toggler)
|
|
6
|
+
* gestione chiusura (dismissable)
|
|
7
|
+
* la classe si riferisce all'elemento notification, con options, metodi open(timeout) e close (che deve gestire il timeout)
|
|
8
|
+
**/
|
|
9
|
+
declare class Notification extends BaseComponent {
|
|
10
|
+
static get NAME(): string
|
|
11
|
+
|
|
12
|
+
constructor(element: HTMLElement, config?: Partial<Notification.Options>)
|
|
13
|
+
|
|
14
|
+
_config: any
|
|
15
|
+
_isShown: boolean
|
|
16
|
+
_isTransitioning: boolean
|
|
17
|
+
_toId: any
|
|
18
|
+
|
|
19
|
+
show(timeout?: number, relatedTarget?: string | Element): void
|
|
20
|
+
|
|
21
|
+
hide(): void
|
|
22
|
+
|
|
23
|
+
toggle(relatedTarget?: string | Element): void
|
|
24
|
+
|
|
25
|
+
_isAnimated(): boolean
|
|
26
|
+
|
|
27
|
+
_showElement(timeout: number): void
|
|
28
|
+
|
|
29
|
+
_hideElement(): void
|
|
30
|
+
|
|
31
|
+
_getConfig(config: any): any
|
|
32
|
+
|
|
33
|
+
_getElementTimeout(relatedTarget: string | Element): any
|
|
34
|
+
|
|
35
|
+
_setTimeout(duration: any, callback: any): void
|
|
36
|
+
|
|
37
|
+
_clearTimeout(): void
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
declare namespace Notification {
|
|
41
|
+
enum Events {
|
|
42
|
+
/**
|
|
43
|
+
* This event fires immediately when the show instance method is called.
|
|
44
|
+
* If caused by a click, the clicked element is available as the
|
|
45
|
+
* relatedTarget property of the event.
|
|
46
|
+
*/
|
|
47
|
+
show = 'show.bs.modal',
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* This event is fired when the modal has finished being hidden from the
|
|
51
|
+
* user (will wait for CSS transitions to complete).
|
|
52
|
+
*/
|
|
53
|
+
hidden = 'hidden.bs.modal',
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
interface Options {
|
|
57
|
+
/**
|
|
58
|
+
* Closes the modal timeout milliseconds
|
|
59
|
+
*
|
|
60
|
+
* @default null
|
|
61
|
+
*/
|
|
62
|
+
timeout: number;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
interface Event extends CustomEvent {
|
|
66
|
+
/**
|
|
67
|
+
* The modal DOM element.
|
|
68
|
+
*/
|
|
69
|
+
target: HTMLElement;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Only present for `show.bs.modal` and `shown.bs.modal` events when
|
|
73
|
+
* the event was triggered by a click. In that case, it's the element
|
|
74
|
+
* that was clicked. Otherwise, it's undefined.
|
|
75
|
+
*/
|
|
76
|
+
relatedTarget?: HTMLElement;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export { Notification }
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
|
|
2
|
+
|
|
3
|
+
declare class ProgressDonut extends BaseComponent {
|
|
4
|
+
static get NAME(): string
|
|
5
|
+
|
|
6
|
+
constructor(element: HTMLElement, config: any)
|
|
7
|
+
|
|
8
|
+
_config: any
|
|
9
|
+
_bar: any
|
|
10
|
+
|
|
11
|
+
set(progess: any): void
|
|
12
|
+
|
|
13
|
+
dispose(): void
|
|
14
|
+
|
|
15
|
+
_getConfig(config: any): any
|
|
16
|
+
|
|
17
|
+
_getStepCallback(): (state: any, circle: any) => void
|
|
18
|
+
|
|
19
|
+
_init(): void
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { ProgressDonut }
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
|
|
2
|
+
|
|
3
|
+
declare class SelectAutocomplete extends BaseComponent {
|
|
4
|
+
static get NAME(): string
|
|
5
|
+
|
|
6
|
+
constructor(element: HTMLElement, config: any)
|
|
7
|
+
|
|
8
|
+
_config: any
|
|
9
|
+
|
|
10
|
+
_enhance(): void
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
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<Carousel.Options>)
|
|
7
|
+
|
|
8
|
+
_config: Partial<Carousel.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,41 @@
|
|
|
1
|
+
import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
|
|
2
|
+
|
|
3
|
+
declare class Transfer extends BaseComponent {
|
|
4
|
+
static get NAME(): string
|
|
5
|
+
|
|
6
|
+
constructor(element: HTMLElement)
|
|
7
|
+
|
|
8
|
+
_addBtnElement: any
|
|
9
|
+
_invBtnElement: any
|
|
10
|
+
_resetBtnElement: any
|
|
11
|
+
_listDefault: {
|
|
12
|
+
source: any
|
|
13
|
+
target: any
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
_bindEvents(): void
|
|
17
|
+
|
|
18
|
+
_disableElement(element: any): void
|
|
19
|
+
|
|
20
|
+
_enableElement(element: any): void
|
|
21
|
+
|
|
22
|
+
_getScopeData(scope: any): {
|
|
23
|
+
scope: any
|
|
24
|
+
list: any
|
|
25
|
+
listChecked: any
|
|
26
|
+
head: any
|
|
27
|
+
inputHead: any
|
|
28
|
+
labelNumHead: any
|
|
29
|
+
group: any
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
_checkList(scopeElControl: any): void
|
|
33
|
+
|
|
34
|
+
_checkListHeader(scopeElControl: any): void
|
|
35
|
+
|
|
36
|
+
_addItems(inverse: any): void
|
|
37
|
+
|
|
38
|
+
_resetAll(): void
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { Transfer }
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
|
|
2
|
+
|
|
3
|
+
declare class UploadDragDrop extends BaseComponent {
|
|
4
|
+
static get NAME(): string
|
|
5
|
+
|
|
6
|
+
constructor(element: HTMLElement)
|
|
7
|
+
|
|
8
|
+
_donut: any
|
|
9
|
+
|
|
10
|
+
progress(value: any): void
|
|
11
|
+
|
|
12
|
+
start(): void
|
|
13
|
+
|
|
14
|
+
success(): void
|
|
15
|
+
|
|
16
|
+
reset(): void
|
|
17
|
+
|
|
18
|
+
dispose(): void
|
|
19
|
+
|
|
20
|
+
_bindEvents(): void
|
|
21
|
+
|
|
22
|
+
_preventEvent(evt: any): void
|
|
23
|
+
|
|
24
|
+
_dropIn(): void
|
|
25
|
+
|
|
26
|
+
_dropOut(): void
|
|
27
|
+
|
|
28
|
+
_drop(): void
|
|
29
|
+
|
|
30
|
+
_isSuccess(): any
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { UploadDragDrop }
|
package/types/decs.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare module 'bootstrap-italia'
|