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
package/types/index.d.ts
ADDED
|
@@ -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,25 @@
|
|
|
1
|
+
import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
|
|
2
|
+
|
|
3
|
+
type KeyName = 'ArrowDown' | 'ArrowUp' | 'Home' | 'End'
|
|
4
|
+
|
|
5
|
+
declare class Accordion extends BaseComponent {
|
|
6
|
+
static get NAME(): string
|
|
7
|
+
|
|
8
|
+
constructor(element: HTMLElement)
|
|
9
|
+
|
|
10
|
+
handleKeyDown(keyName: KeyName, target: HTMLElement, evt: Event): void
|
|
11
|
+
|
|
12
|
+
_bindEvents(): void
|
|
13
|
+
|
|
14
|
+
_getHeadButtons(): any
|
|
15
|
+
|
|
16
|
+
_focusNext(target: HTMLElement): void
|
|
17
|
+
|
|
18
|
+
_focusPrev(target: HTMLElement): void
|
|
19
|
+
|
|
20
|
+
_focusFirst(target: HTMLElement): void
|
|
21
|
+
|
|
22
|
+
_focusLast(target: HTMLElement): void
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { Accordion }
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
|
|
2
|
+
|
|
3
|
+
declare class BackToTop extends BaseComponent {
|
|
4
|
+
static get NAME(): string
|
|
5
|
+
|
|
6
|
+
constructor(element: HTMLElement, config: any)
|
|
7
|
+
|
|
8
|
+
_config: any
|
|
9
|
+
_scrollCb: {
|
|
10
|
+
id: any
|
|
11
|
+
_callback: any
|
|
12
|
+
dispose(): void
|
|
13
|
+
_execute(data: any): void
|
|
14
|
+
}
|
|
15
|
+
_isAnim: boolean
|
|
16
|
+
_prevScrollBehavior: string
|
|
17
|
+
|
|
18
|
+
show(): void
|
|
19
|
+
|
|
20
|
+
hide(): void
|
|
21
|
+
|
|
22
|
+
toggleShow(): void
|
|
23
|
+
|
|
24
|
+
scrollToTop(): void
|
|
25
|
+
|
|
26
|
+
dispose(): void
|
|
27
|
+
|
|
28
|
+
_getConfig(config: any): any
|
|
29
|
+
|
|
30
|
+
_bindEvents(): void
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { BackToTop }
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
|
|
2
|
+
import Splide from '@splidejs/splide'
|
|
3
|
+
|
|
4
|
+
declare class CarouselBI extends BaseComponent {
|
|
5
|
+
static get NAME(): string
|
|
6
|
+
|
|
7
|
+
constructor(element: HTMLElement)
|
|
8
|
+
|
|
9
|
+
_config: {
|
|
10
|
+
slideFocus: boolean
|
|
11
|
+
i18n: {
|
|
12
|
+
prev: string
|
|
13
|
+
next: string
|
|
14
|
+
first: string
|
|
15
|
+
last: string
|
|
16
|
+
slideX: string
|
|
17
|
+
pageX: string
|
|
18
|
+
play: string
|
|
19
|
+
pause: string
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
_splide: Splide
|
|
23
|
+
|
|
24
|
+
dispose(): void
|
|
25
|
+
|
|
26
|
+
_init(): void
|
|
27
|
+
|
|
28
|
+
_getConfig(): {
|
|
29
|
+
slideFocus: boolean
|
|
30
|
+
i18n: {
|
|
31
|
+
prev: string
|
|
32
|
+
next: string
|
|
33
|
+
first: string
|
|
34
|
+
last: string
|
|
35
|
+
slideX: string
|
|
36
|
+
pageX: string
|
|
37
|
+
play: string
|
|
38
|
+
pause: string
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { CarouselBI }
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* ------------------------------------------------------------------------
|
|
5
|
+
* Class Definition
|
|
6
|
+
* ------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
declare class Cookiebar extends BaseComponent {
|
|
9
|
+
static get NAME(): string
|
|
10
|
+
|
|
11
|
+
static get VERSION(): string
|
|
12
|
+
|
|
13
|
+
static clearCookie(): void
|
|
14
|
+
|
|
15
|
+
static _handleAccept(cookiebarInstance: any): (event: any) => void
|
|
16
|
+
|
|
17
|
+
static _handleConsent(cookiebarInstance: any): (event: any) => void
|
|
18
|
+
|
|
19
|
+
static _getCookieEU(): string
|
|
20
|
+
|
|
21
|
+
constructor(element: HTMLElement)
|
|
22
|
+
|
|
23
|
+
_isShown: boolean
|
|
24
|
+
_isTransitioning: boolean
|
|
25
|
+
|
|
26
|
+
show(): void
|
|
27
|
+
|
|
28
|
+
hide(): void
|
|
29
|
+
|
|
30
|
+
accept(element: HTMLElement): void
|
|
31
|
+
|
|
32
|
+
_isAnimated(): boolean
|
|
33
|
+
|
|
34
|
+
_showElement(): void
|
|
35
|
+
|
|
36
|
+
_hideElement(): void
|
|
37
|
+
|
|
38
|
+
_setCookieEU(): void
|
|
39
|
+
|
|
40
|
+
_getRootElement(element: HTMLElement): any
|
|
41
|
+
|
|
42
|
+
_triggerCloseEvent(element: HTMLElement): any
|
|
43
|
+
|
|
44
|
+
_removeElement(element: HTMLElement): void
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export { Cookiebar }
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
|
|
2
|
+
|
|
3
|
+
declare class Dimmer extends BaseComponent {
|
|
4
|
+
static get NAME(): string
|
|
5
|
+
|
|
6
|
+
constructor(element: HTMLElement)
|
|
7
|
+
|
|
8
|
+
_isShown: boolean
|
|
9
|
+
_isTransitioning: boolean
|
|
10
|
+
|
|
11
|
+
show(): void
|
|
12
|
+
|
|
13
|
+
hide(): void
|
|
14
|
+
|
|
15
|
+
_isAnimated(): boolean
|
|
16
|
+
|
|
17
|
+
_showElement(): void
|
|
18
|
+
|
|
19
|
+
_hideElement(): void
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { Dimmer }
|
|
@@ -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,18 @@
|
|
|
1
|
+
import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* DEPRECATED
|
|
5
|
+
*/
|
|
6
|
+
declare class Form extends BaseComponent {
|
|
7
|
+
static get NAME(): string
|
|
8
|
+
|
|
9
|
+
constructor(element: HTMLElement)
|
|
10
|
+
|
|
11
|
+
_bindEvents(): void
|
|
12
|
+
|
|
13
|
+
_getInputLabel(input: any): any
|
|
14
|
+
|
|
15
|
+
_isInputEmpty(input: any): boolean
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { Form }
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
|
|
2
|
+
|
|
3
|
+
declare class Forward extends BaseComponent {
|
|
4
|
+
static get NAME(): string
|
|
5
|
+
|
|
6
|
+
constructor(element: HTMLElement, config: any)
|
|
7
|
+
|
|
8
|
+
_config: any
|
|
9
|
+
|
|
10
|
+
goToTarget(): void
|
|
11
|
+
|
|
12
|
+
_getConfig(config: any): any
|
|
13
|
+
|
|
14
|
+
_bindEvents(): void
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { Forward }
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare class HeaderSticky {
|
|
2
|
+
static getOrCreateInstance(element: HTMLElement): any
|
|
3
|
+
|
|
4
|
+
constructor(element: HTMLElement)
|
|
5
|
+
|
|
6
|
+
_element: any
|
|
7
|
+
_elementObj: any
|
|
8
|
+
|
|
9
|
+
_bindEvents(): void
|
|
10
|
+
|
|
11
|
+
_toggleClonedElement(toAdd?: boolean): void
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { HeaderSticky }
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
|
|
2
|
+
|
|
3
|
+
declare class HistoryBack extends BaseComponent {
|
|
4
|
+
static get NAME(): string
|
|
5
|
+
|
|
6
|
+
constructor(element: HTMLElement)
|
|
7
|
+
|
|
8
|
+
back(): void
|
|
9
|
+
|
|
10
|
+
_bindEvents(): void
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
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 }
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
|
|
2
|
+
import { InputLabel } from './input-label'
|
|
3
|
+
|
|
4
|
+
declare class InputNumber extends BaseComponent {
|
|
5
|
+
static get NAME(): string
|
|
6
|
+
|
|
7
|
+
constructor(element: HTMLElement)
|
|
8
|
+
|
|
9
|
+
_wrapperElement: any
|
|
10
|
+
_label: InputLabel
|
|
11
|
+
|
|
12
|
+
_init(): void
|
|
13
|
+
|
|
14
|
+
_bindEvents(): void
|
|
15
|
+
|
|
16
|
+
_inputResize(): void
|
|
17
|
+
|
|
18
|
+
_incrDecr(isDecr: any): void
|
|
19
|
+
|
|
20
|
+
_checkLimit(): void
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { InputNumber }
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
|
|
2
|
+
import { InputLabel } from './input-label'
|
|
3
|
+
|
|
4
|
+
declare class InputPassword extends BaseComponent {
|
|
5
|
+
static get NAME(): string
|
|
6
|
+
|
|
7
|
+
constructor(element: HTMLElement, config: any)
|
|
8
|
+
|
|
9
|
+
_config: any
|
|
10
|
+
_isCustom: any
|
|
11
|
+
_meter: any
|
|
12
|
+
_isShiftPressed: boolean
|
|
13
|
+
_isCapsOn: boolean
|
|
14
|
+
_grayBarElement: any
|
|
15
|
+
_colorBarElement: any
|
|
16
|
+
_textElement: any
|
|
17
|
+
_capsElement: any
|
|
18
|
+
_showPwdElement: any
|
|
19
|
+
_text: {}
|
|
20
|
+
_label: InputLabel
|
|
21
|
+
|
|
22
|
+
_getConfig(config: any): any
|
|
23
|
+
|
|
24
|
+
_init(): void
|
|
25
|
+
|
|
26
|
+
_bindEvents(): void
|
|
27
|
+
|
|
28
|
+
_showCapsMsg(): void
|
|
29
|
+
|
|
30
|
+
_hideCapsMsg(): void
|
|
31
|
+
|
|
32
|
+
_toggleShowPassword(): void
|
|
33
|
+
|
|
34
|
+
_checkPassword(): void
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Returns strings based on the score given.
|
|
38
|
+
*
|
|
39
|
+
* @param int score Score base.
|
|
40
|
+
* @return string
|
|
41
|
+
*/
|
|
42
|
+
_scoreText(score: any): any
|
|
43
|
+
|
|
44
|
+
_scoreColor(score: any): 'success' | 'danger' | 'muted' | 'warning'
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Returns a value between -1 and 100 to score
|
|
48
|
+
* the user's password.
|
|
49
|
+
*
|
|
50
|
+
* @param string password The password to be checked.
|
|
51
|
+
* @return int
|
|
52
|
+
*/
|
|
53
|
+
_calculateScore(password: any): number
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Checks for repetition of characters in
|
|
57
|
+
* a string
|
|
58
|
+
*
|
|
59
|
+
* @param int rLen Repetition length.
|
|
60
|
+
* @param string str The string to be checked.
|
|
61
|
+
* @return string
|
|
62
|
+
*/
|
|
63
|
+
_checkRepetition(rLen: any, str: any): string
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { InputPassword }
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
|
|
2
|
+
import { InputLabel } from './input-label'
|
|
3
|
+
|
|
4
|
+
declare class InputSearch extends BaseComponent {
|
|
5
|
+
static get NAME(): string
|
|
6
|
+
|
|
7
|
+
constructor(element: HTMLElement, config: any)
|
|
8
|
+
|
|
9
|
+
_config: any
|
|
10
|
+
_items: any[]
|
|
11
|
+
_autocompleteElement: HTMLUListElement
|
|
12
|
+
_label: InputLabel
|
|
13
|
+
|
|
14
|
+
search(): void
|
|
15
|
+
|
|
16
|
+
_getConfig(config: any): any
|
|
17
|
+
|
|
18
|
+
_getItems(): any
|
|
19
|
+
|
|
20
|
+
_init(): void
|
|
21
|
+
|
|
22
|
+
_bindEvents(): void
|
|
23
|
+
|
|
24
|
+
_createOption(link: any, text: any, label: any, icon: any): HTMLLIElement
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { InputSearch }
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
|
|
2
|
+
import { InputLabel } from './input-label'
|
|
3
|
+
|
|
4
|
+
declare class Input extends BaseComponent {
|
|
5
|
+
static get NAME(): string
|
|
6
|
+
|
|
7
|
+
constructor(element: HTMLElement)
|
|
8
|
+
|
|
9
|
+
_label: InputLabel
|
|
10
|
+
|
|
11
|
+
_bindEvents(): void
|
|
12
|
+
|
|
13
|
+
_handleFileDescription(): void
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { Input }
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
|
|
2
|
+
|
|
3
|
+
declare class List extends BaseComponent {
|
|
4
|
+
static get NAME(): string
|
|
5
|
+
|
|
6
|
+
constructor(element: HTMLElement)
|
|
7
|
+
|
|
8
|
+
toggleCheckbox(item: any): void
|
|
9
|
+
|
|
10
|
+
_init(): void
|
|
11
|
+
|
|
12
|
+
_initCheckbox(): void
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { List }
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
|
|
2
|
+
|
|
3
|
+
declare class Masonry extends BaseComponent {
|
|
4
|
+
static get NAME(): string
|
|
5
|
+
|
|
6
|
+
constructor(element: HTMLElement, config: any)
|
|
7
|
+
|
|
8
|
+
_config: any
|
|
9
|
+
_masonry: any
|
|
10
|
+
_images: any
|
|
11
|
+
_loadCounter: number
|
|
12
|
+
|
|
13
|
+
dispose(): void
|
|
14
|
+
|
|
15
|
+
_getConfig(config: any): any
|
|
16
|
+
|
|
17
|
+
_init(): void
|
|
18
|
+
|
|
19
|
+
_onLoadEnd(): void
|
|
20
|
+
|
|
21
|
+
_initMasonry(): void
|
|
22
|
+
|
|
23
|
+
_createLoader(): HTMLDivElement
|
|
24
|
+
|
|
25
|
+
_getOrCreateLoader(): any
|
|
26
|
+
|
|
27
|
+
_destroyLoader(): void
|
|
28
|
+
|
|
29
|
+
_showLoader(): void
|
|
30
|
+
|
|
31
|
+
_hideLoader(): void
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { Masonry }
|