design-angular-kit 1.0.0-7 → 1.0.0-9
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/esm2020/lib/abstracts/abstract-form-component.mjs +16 -7
- package/esm2020/lib/abstracts/abstract.component.mjs +13 -6
- package/esm2020/lib/components/core/accordion/accordion.component.mjs +19 -8
- package/esm2020/lib/components/core/alert/alert.component.mjs +46 -6
- package/esm2020/lib/components/core/button/button.directive.mjs +14 -12
- package/esm2020/lib/components/core/carousel/carousel/carousel.component.mjs +3 -3
- package/esm2020/lib/components/core/collapse/collapse.component.mjs +23 -18
- package/esm2020/lib/components/core/dropdown/dropdown/dropdown.component.mjs +74 -4
- package/esm2020/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +8 -11
- package/esm2020/lib/components/core/link/link.component.mjs +9 -8
- package/esm2020/lib/components/core/modal/modal.component.mjs +5 -5
- package/esm2020/lib/components/core/notifications/notifications.component.mjs +55 -11
- package/esm2020/lib/components/core/popover/popover.directive.mjs +5 -2
- package/esm2020/lib/components/core/tab/tab-container/tab-container.component.mjs +37 -11
- package/esm2020/lib/components/core/tab/tab-item/tab-item.component.mjs +4 -4
- package/esm2020/lib/components/core/tooltip/tooltip.directive.mjs +4 -1
- package/esm2020/lib/components/form/input/input.component.mjs +2 -2
- package/esm2020/lib/components/form/password-input/password-input.component.mjs +1 -1
- package/esm2020/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +1 -1
- package/esm2020/lib/components/form/upload-file-list/upload-file-list.component.mjs +13 -10
- package/esm2020/lib/components/navigation/back-to-top/back-to-top.component.mjs +41 -6
- package/esm2020/lib/components/navigation/header/header.component.mjs +9 -7
- package/esm2020/lib/components/utils/language-switcher/language-switcher.component.mjs +1 -1
- package/esm2020/lib/interfaces/core.mjs +1 -1
- package/esm2020/lib/services/notifications/notifications.service.mjs +24 -26
- package/esm2020/lib/utils/file-utils.mjs +9 -1
- package/fesm2015/design-angular-kit.mjs +498 -226
- package/fesm2015/design-angular-kit.mjs.map +1 -1
- package/fesm2020/design-angular-kit.mjs +477 -222
- package/fesm2020/design-angular-kit.mjs.map +1 -1
- package/lib/abstracts/abstract-form-component.d.ts +9 -4
- package/lib/abstracts/abstract.component.d.ts +10 -4
- package/lib/components/core/accordion/accordion.component.d.ts +4 -8
- package/lib/components/core/alert/alert.component.d.ts +24 -2
- package/lib/components/core/button/button.directive.d.ts +5 -7
- package/lib/components/core/carousel/carousel/carousel.component.d.ts +1 -1
- package/lib/components/core/collapse/collapse.component.d.ts +8 -7
- package/lib/components/core/dropdown/dropdown/dropdown.component.d.ts +41 -3
- package/lib/components/core/dropdown/dropdown-item/dropdown-item.component.d.ts +0 -5
- package/lib/components/core/link/link.component.d.ts +2 -5
- package/lib/components/core/modal/modal.component.d.ts +2 -2
- package/lib/components/core/notifications/notifications.component.d.ts +21 -7
- package/lib/components/core/popover/popover.directive.d.ts +3 -2
- package/lib/components/core/tab/tab-container/tab-container.component.d.ts +6 -4
- package/lib/components/core/tooltip/tooltip.directive.d.ts +3 -2
- package/lib/components/form/password-input/password-input.component.d.ts +2 -1
- package/lib/components/form/upload-drag-drop/upload-drag-drop.component.d.ts +2 -1
- package/lib/components/form/upload-file-list/upload-file-list.component.d.ts +3 -3
- package/lib/components/navigation/back-to-top/back-to-top.component.d.ts +22 -3
- package/lib/components/navigation/header/header.component.d.ts +6 -4
- package/lib/interfaces/core.d.ts +24 -1
- package/lib/services/notifications/notifications.service.d.ts +17 -17
- package/lib/utils/file-utils.d.ts +5 -0
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ControlValueAccessor, FormControl, NgControl, ValidatorFn } from '@angular/forms';
|
|
2
|
-
import { DoCheck, ElementRef, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
+
import { ChangeDetectorRef, DoCheck, ElementRef, OnInit, Renderer2 } from '@angular/core';
|
|
3
3
|
import { AbstractComponent } from './abstract.component';
|
|
4
4
|
import { BooleanInput } from '../utils/boolean-input';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
@@ -10,6 +10,7 @@ export declare class AbstractFormComponent<T = any> extends AbstractComponent im
|
|
|
10
10
|
protected readonly _translateService: TranslateService;
|
|
11
11
|
protected readonly _renderer: Renderer2;
|
|
12
12
|
protected readonly _elementRef: ElementRef;
|
|
13
|
+
protected readonly _changeDetectorRef: ChangeDetectorRef;
|
|
13
14
|
/**
|
|
14
15
|
* The label of form control
|
|
15
16
|
*/
|
|
@@ -23,11 +24,15 @@ export declare class AbstractFormComponent<T = any> extends AbstractComponent im
|
|
|
23
24
|
* @default <b>only-invalid</b>: Show only invalid validation color
|
|
24
25
|
*/
|
|
25
26
|
validationMode: BooleanInput | 'only-valid' | 'only-invalid';
|
|
27
|
+
/**
|
|
28
|
+
* Set the disabled state
|
|
29
|
+
*/
|
|
30
|
+
set disabled(isDisabled: BooleanInput);
|
|
26
31
|
/**
|
|
27
32
|
* Internal form control
|
|
28
33
|
*/
|
|
29
34
|
control: FormControl;
|
|
30
|
-
constructor(_ngControl: NgControl, _translateService: TranslateService, _renderer: Renderer2, _elementRef: ElementRef);
|
|
35
|
+
constructor(_ngControl: NgControl, _translateService: TranslateService, _renderer: Renderer2, _elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef);
|
|
31
36
|
/**
|
|
32
37
|
* Check if field is invalid (Validation failed)
|
|
33
38
|
*/
|
|
@@ -79,6 +84,6 @@ export declare class AbstractFormComponent<T = any> extends AbstractComponent im
|
|
|
79
84
|
* null is returned.
|
|
80
85
|
*/
|
|
81
86
|
getError(errorCode: string, path?: Array<string | number> | string): any;
|
|
82
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFormComponent<any>, [{ optional: true; self: true; }, null, null, null]>;
|
|
83
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractFormComponent<any>, "ng-component", never, { "label": "label"; "validationMode": "validationMode"; }, {}, never, never, false, never>;
|
|
87
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFormComponent<any>, [{ optional: true; self: true; }, null, null, null, null]>;
|
|
88
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractFormComponent<any>, "ng-component", never, { "label": "label"; "validationMode": "validationMode"; "disabled": "disabled"; }, {}, never, never, false, never>;
|
|
84
89
|
}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, Renderer2 } from
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class AbstractComponent implements AfterViewInit {
|
|
3
|
+
export declare class AbstractComponent implements AfterViewInit, OnChanges {
|
|
4
4
|
protected readonly _renderer: Renderer2;
|
|
5
5
|
protected readonly _elementRef: ElementRef;
|
|
6
|
+
protected readonly _changeDetectorRef: ChangeDetectorRef;
|
|
6
7
|
/**
|
|
7
8
|
* The element ID
|
|
8
9
|
*/
|
|
9
10
|
id?: string;
|
|
10
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Fired when component input attributes was changed
|
|
13
|
+
*/
|
|
14
|
+
valueChanges: EventEmitter<void>;
|
|
15
|
+
constructor(_renderer: Renderer2, _elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef);
|
|
11
16
|
ngAfterViewInit(): void;
|
|
17
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
12
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractComponent, "ng-component", never, { "id": "id"; }, {}, never, never, false, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractComponent, "ng-component", never, { "id": "id"; }, { "valueChanges": "valueChanges"; }, never, never, false, never>;
|
|
14
20
|
}
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BooleanInput } from "../../../utils/boolean-input";
|
|
1
|
+
import { CollapseComponent } from '../collapse/collapse.component';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class AccordionComponent extends
|
|
3
|
+
export declare class AccordionComponent extends CollapseComponent {
|
|
5
4
|
/**
|
|
6
5
|
* Accordion Title
|
|
7
6
|
*/
|
|
8
7
|
title: string;
|
|
9
|
-
|
|
10
|
-
* True to set accordion opened by default
|
|
11
|
-
*/
|
|
12
|
-
opened?: BooleanInput;
|
|
8
|
+
isCollapsed: boolean;
|
|
13
9
|
ngAfterViewInit(): void;
|
|
14
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionComponent, "it-accordion[id][title]",
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionComponent, "it-accordion[id][title]", ["itAccordion"], { "title": "title"; }, {}, never, ["*"], false, never>;
|
|
16
12
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
1
2
|
import { AlertColor } from '../../../interfaces/core';
|
|
2
3
|
import { BooleanInput } from '../../../utils/boolean-input';
|
|
4
|
+
import { AbstractComponent } from '../../../abstracts/abstract.component';
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class AlertComponent {
|
|
6
|
+
export declare class AlertComponent extends AbstractComponent {
|
|
5
7
|
/**
|
|
6
8
|
* The alert color
|
|
7
9
|
* @default info
|
|
@@ -11,7 +13,27 @@ export declare class AlertComponent {
|
|
|
11
13
|
* Inserts the close button
|
|
12
14
|
*/
|
|
13
15
|
dismissible?: BooleanInput;
|
|
16
|
+
/**
|
|
17
|
+
* This event fires immediately when the instance's close method is called.
|
|
18
|
+
*/
|
|
19
|
+
onClose: EventEmitter<Event>;
|
|
20
|
+
/**
|
|
21
|
+
* This event fires when the alert has been closed (it will wait for CSS transitions to complete).
|
|
22
|
+
*/
|
|
23
|
+
onClosed: EventEmitter<Event>;
|
|
24
|
+
private alert?;
|
|
25
|
+
private alertElement?;
|
|
14
26
|
get isDismissible(): boolean;
|
|
27
|
+
ngAfterViewInit(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Close an alert by removing it from the DOM.
|
|
30
|
+
* If the `.fade` and `.show` classes are present in the element, the alert will be closed with a disappearing effect.
|
|
31
|
+
*/
|
|
32
|
+
close(): void;
|
|
33
|
+
/**
|
|
34
|
+
* The alert is removed
|
|
35
|
+
*/
|
|
36
|
+
dispose(): void;
|
|
15
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "it-alert",
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "it-alert", ["itAlert"], { "color": "color"; "dismissible": "dismissible"; }, { "onClose": "onClose"; "onClosed": "onClosed"; }, never, ["[heading]", "*"], false, never>;
|
|
17
39
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { QueryList } from '@angular/core';
|
|
2
2
|
import { ButtonColor, ButtonSize } from '../../../interfaces/core';
|
|
3
3
|
import { IconComponent } from '../../utils/icon/icon.component';
|
|
4
|
-
import { ProgressBarComponent } from '../progress-bar/progress-bar.component';
|
|
5
4
|
import { BooleanInput } from '../../../utils/boolean-input';
|
|
5
|
+
import { ProgressButtonComponent } from '../progress-button/progress-button.component';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class ButtonDirective {
|
|
8
|
+
private progressButtonComponent;
|
|
8
9
|
/**
|
|
9
10
|
* Button color
|
|
10
11
|
*/
|
|
@@ -25,14 +26,11 @@ export declare class ButtonDirective {
|
|
|
25
26
|
* The icon children
|
|
26
27
|
*/
|
|
27
28
|
icons?: QueryList<IconComponent>;
|
|
28
|
-
/**
|
|
29
|
-
* The progress bar children
|
|
30
|
-
*/
|
|
31
|
-
progressBar?: ProgressBarComponent;
|
|
32
29
|
private isFocus;
|
|
30
|
+
constructor(progressButtonComponent: ProgressButtonComponent);
|
|
33
31
|
onFocus(): void;
|
|
34
32
|
onBlur(): void;
|
|
35
33
|
get hostClasses(): string;
|
|
36
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonDirective,
|
|
37
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonDirective, "[itButton]", ["itButton"], { "color": "itButton"; "size": "size"; "block": "block"; "disabled": "disabled"; }, {}, ["icons"
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonDirective, [{ optional: true; host: true; }]>;
|
|
35
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonDirective, "[itButton]", ["itButton"], { "color": "itButton"; "size": "size"; "block": "block"; "disabled": "disabled"; }, {}, ["icons"], never, false, never>;
|
|
38
36
|
}
|
|
@@ -30,8 +30,8 @@ export declare class CarouselComponent implements AfterViewInit {
|
|
|
30
30
|
*/
|
|
31
31
|
lined?: BooleanInput;
|
|
32
32
|
items?: QueryList<CarouselItemComponent>;
|
|
33
|
-
private carouselDiv;
|
|
34
33
|
private carousel?;
|
|
34
|
+
private carouselDiv;
|
|
35
35
|
get typeClass(): string;
|
|
36
36
|
get isFullCarousel(): boolean;
|
|
37
37
|
get isBigImg(): boolean;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { AbstractComponent } from '../../../abstracts/abstract.component';
|
|
3
3
|
import { BooleanInput } from '../../../utils/boolean-input';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class CollapseComponent extends AbstractComponent {
|
|
6
|
-
readonly _renderer: Renderer2;
|
|
7
|
-
readonly _elementRef: ElementRef;
|
|
8
6
|
/**
|
|
9
7
|
* Enable multiple collapse
|
|
10
8
|
*/
|
|
11
9
|
multi?: BooleanInput;
|
|
10
|
+
/**
|
|
11
|
+
* Toggles the collapsible element on invocation
|
|
12
|
+
*/
|
|
13
|
+
opened?: BooleanInput;
|
|
12
14
|
/**
|
|
13
15
|
* Custom class
|
|
14
16
|
*/
|
|
@@ -29,11 +31,10 @@ export declare class CollapseComponent extends AbstractComponent {
|
|
|
29
31
|
* This event is raised when the tooltip has finished being hidden from the user (it will wait for the CSS transitions to complete).
|
|
30
32
|
*/
|
|
31
33
|
onHidden: EventEmitter<Event>;
|
|
32
|
-
private readonly element;
|
|
33
34
|
private collapse?;
|
|
34
|
-
private collapseDiv
|
|
35
|
+
private collapseDiv?;
|
|
35
36
|
get isMulti(): boolean;
|
|
36
|
-
|
|
37
|
+
get isOpenedOnStart(): boolean;
|
|
37
38
|
ngAfterViewInit(): void;
|
|
38
39
|
/**
|
|
39
40
|
* Shows a resealable item
|
|
@@ -55,5 +56,5 @@ export declare class CollapseComponent extends AbstractComponent {
|
|
|
55
56
|
*/
|
|
56
57
|
dispose(): void;
|
|
57
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<CollapseComponent, never>;
|
|
58
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CollapseComponent, "it-collapse[id]", ["itCollapse"], { "multi": "multi"; "class": "class"; }, { "onShow": "onShow"; "onShown": "onShown"; "onHide": "onHide"; "onHidden": "onHidden"; }, never, ["*"], false, never>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CollapseComponent, "it-collapse[id]", ["itCollapse"], { "multi": "multi"; "opened": "opened"; "class": "class"; }, { "onShow": "onShow"; "onShown": "onShown"; "onHide": "onHide"; "onHidden": "onHidden"; }, never, ["*"], false, never>;
|
|
59
60
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventEmitter, QueryList, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { AbstractComponent } from '../../../../abstracts/abstract.component';
|
|
3
3
|
import { ButtonColor, DropdownDirection } from '../../../../interfaces/core';
|
|
4
4
|
import { BooleanInput } from '../../../../utils/boolean-input';
|
|
5
5
|
import { DropdownItemComponent } from '../dropdown-item/dropdown-item.component';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class DropdownComponent extends AbstractComponent
|
|
7
|
+
export declare class DropdownComponent extends AbstractComponent {
|
|
8
8
|
/**
|
|
9
9
|
* Button color
|
|
10
10
|
*/
|
|
@@ -28,6 +28,24 @@ export declare class DropdownComponent extends AbstractComponent implements OnCh
|
|
|
28
28
|
* The dropdown items
|
|
29
29
|
*/
|
|
30
30
|
items?: QueryList<DropdownItemComponent>;
|
|
31
|
+
/**
|
|
32
|
+
* Fires immediately when the show instance method is called.
|
|
33
|
+
*/
|
|
34
|
+
onShow: EventEmitter<Event>;
|
|
35
|
+
/**
|
|
36
|
+
* Fired when the dropdown has been made visible to the user and CSS transitions have completed.
|
|
37
|
+
*/
|
|
38
|
+
onShown: EventEmitter<Event>;
|
|
39
|
+
/**
|
|
40
|
+
* Fires immediately when the hide instance method has been called.
|
|
41
|
+
*/
|
|
42
|
+
onHide: EventEmitter<Event>;
|
|
43
|
+
/**
|
|
44
|
+
* Fired when the dropdown has finished being hidden from the user and CSS transitions have completed.
|
|
45
|
+
*/
|
|
46
|
+
onHidden: EventEmitter<Event>;
|
|
47
|
+
private dropdown?;
|
|
48
|
+
private dropdownButton?;
|
|
31
49
|
get buttonClass(): string;
|
|
32
50
|
get isFullWidth(): boolean;
|
|
33
51
|
get isDark(): boolean;
|
|
@@ -38,6 +56,26 @@ export declare class DropdownComponent extends AbstractComponent implements OnCh
|
|
|
38
56
|
* @private
|
|
39
57
|
*/
|
|
40
58
|
private setDarkItems;
|
|
59
|
+
/**
|
|
60
|
+
* Toggles the dropdown menu of a given navbar or tabbed navigation.
|
|
61
|
+
*/
|
|
62
|
+
toggle(): void;
|
|
63
|
+
/**
|
|
64
|
+
* Shows the dropdown menu of a given navbar or tabbed navigation.
|
|
65
|
+
*/
|
|
66
|
+
show(): void;
|
|
67
|
+
/**
|
|
68
|
+
* Hides the dropdown menu of a given navbar or tabbed navigation.
|
|
69
|
+
*/
|
|
70
|
+
hide(): void;
|
|
71
|
+
/**
|
|
72
|
+
* Updates the position of an element's dropdown.
|
|
73
|
+
*/
|
|
74
|
+
update(): void;
|
|
75
|
+
/**
|
|
76
|
+
* Destroys an element's dropdown. (Removes stored data on the DOM element)
|
|
77
|
+
*/
|
|
78
|
+
dispose(): void;
|
|
41
79
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownComponent, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "it-dropdown[id]",
|
|
80
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "it-dropdown[id]", ["itDropdown"], { "color": "color"; "direction": "direction"; "fullWidth": "fullWidth"; "dark": "dark"; }, { "onShow": "onShow"; "onShown": "onShown"; "onHide": "onHide"; "onHidden": "onHidden"; }, ["items"], ["[button]", "[listHeading]", "[list]"], false, never>;
|
|
43
81
|
}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, Renderer2 } from '@angular/core';
|
|
2
1
|
import { BooleanInput } from '../../../../utils/boolean-input';
|
|
3
2
|
import { IconName } from '../../../../interfaces/icon';
|
|
4
3
|
import { LinkComponent } from '../../link/link.component';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class DropdownItemComponent extends LinkComponent {
|
|
7
|
-
protected readonly _renderer: Renderer2;
|
|
8
|
-
protected readonly _elementRef: ElementRef;
|
|
9
|
-
private readonly _changeDetectorRef;
|
|
10
6
|
/**
|
|
11
7
|
* Show divider
|
|
12
8
|
*/
|
|
@@ -37,7 +33,6 @@ export declare class DropdownItemComponent extends LinkComponent {
|
|
|
37
33
|
get isActive(): boolean;
|
|
38
34
|
get isLarge(): boolean;
|
|
39
35
|
get linkClass(): string;
|
|
40
|
-
constructor(_renderer: Renderer2, _elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef);
|
|
41
36
|
setDark(dark: boolean): void;
|
|
42
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownItemComponent, never>;
|
|
43
38
|
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownItemComponent, "it-dropdown-item", never, { "divider": "divider"; "active": "active"; "large": "large"; "iconName": "iconName"; "iconPosition": "iconPosition"; }, {}, never, ["*"], false, never>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
|
|
2
1
|
import { BooleanInput } from '../../../utils/boolean-input';
|
|
2
|
+
import { AbstractComponent } from '../../../abstracts/abstract.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class LinkComponent
|
|
5
|
-
protected readonly _renderer: Renderer2;
|
|
6
|
-
protected readonly _elementRef: ElementRef;
|
|
4
|
+
export declare class LinkComponent extends AbstractComponent {
|
|
7
5
|
/**
|
|
8
6
|
* The router link action
|
|
9
7
|
*
|
|
@@ -27,7 +25,6 @@ export declare class LinkComponent implements AfterViewInit {
|
|
|
27
25
|
class: string;
|
|
28
26
|
get isExternalLink(): boolean;
|
|
29
27
|
get isDisabled(): boolean;
|
|
30
|
-
constructor(_renderer: Renderer2, _elementRef: ElementRef);
|
|
31
28
|
ngAfterViewInit(): void;
|
|
32
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<LinkComponent, never>;
|
|
33
30
|
static ɵcmp: i0.ɵɵComponentDeclaration<LinkComponent, "it-link", never, { "href": "href"; "externalLink": "externalLink"; "disabled": "disabled"; "class": "class"; }, {}, never, ["*"], false, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { AbstractComponent } from
|
|
2
|
+
import { AbstractComponent } from '../../../abstracts/abstract.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ModalComponent extends AbstractComponent {
|
|
5
5
|
/**
|
|
@@ -31,7 +31,7 @@ export declare class ModalComponent extends AbstractComponent {
|
|
|
31
31
|
* of the esc key occurs and data-bs-keyboard is set to false.
|
|
32
32
|
*/
|
|
33
33
|
onHidePrevented: EventEmitter<Event>;
|
|
34
|
-
private modal
|
|
34
|
+
private modal?;
|
|
35
35
|
private modalElement?;
|
|
36
36
|
ngAfterViewInit(): void;
|
|
37
37
|
/**
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
2
2
|
import { NotificationsService } from '../../../services/notifications/notifications.service';
|
|
3
3
|
import { Notification, NotificationPosition, NotificationType } from '../../../interfaces/core';
|
|
4
|
+
import { BooleanInput } from '../../../utils/boolean-input';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class NotificationsComponent implements OnDestroy {
|
|
7
|
+
private readonly _changeDetectorRef;
|
|
6
8
|
private readonly _notificationService;
|
|
7
9
|
/**
|
|
8
|
-
* Default notifications duration
|
|
10
|
+
* Default notifications duration (milliseconds)
|
|
9
11
|
* @default 8000
|
|
10
12
|
*/
|
|
11
13
|
duration: number;
|
|
@@ -13,18 +15,30 @@ export declare class NotificationsComponent implements OnDestroy {
|
|
|
13
15
|
* Default notifications position
|
|
14
16
|
*/
|
|
15
17
|
position?: NotificationPosition;
|
|
18
|
+
/**
|
|
19
|
+
* Default notifications is dismissible
|
|
20
|
+
* @default true
|
|
21
|
+
*/
|
|
22
|
+
dismissible?: BooleanInput;
|
|
16
23
|
private subscription;
|
|
17
|
-
|
|
24
|
+
private notificationCount;
|
|
25
|
+
protected notifications: Array<Notification & {
|
|
18
26
|
id: string;
|
|
19
27
|
}>;
|
|
20
|
-
constructor(_notificationService: NotificationsService);
|
|
28
|
+
constructor(_changeDetectorRef: ChangeDetectorRef, _notificationService: NotificationsService);
|
|
21
29
|
ngOnDestroy(): void;
|
|
22
|
-
get NotificationType(): typeof NotificationType;
|
|
30
|
+
protected get NotificationType(): typeof NotificationType;
|
|
23
31
|
/**
|
|
24
32
|
* Hide the notification
|
|
25
33
|
* @param id
|
|
26
34
|
*/
|
|
27
|
-
hideNotification(id: string): void;
|
|
35
|
+
protected hideNotification(id: string): void;
|
|
36
|
+
/**
|
|
37
|
+
* Retrieve the icon name by notification type
|
|
38
|
+
* @param notification the notification
|
|
39
|
+
* @protected
|
|
40
|
+
*/
|
|
41
|
+
private getNotificationIcon;
|
|
28
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsComponent, "it-notifications", never, { "duration": "duration"; "position": "position"; }, {}, never, never, false, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsComponent, "it-notifications", never, { "duration": "duration"; "position": "position"; "dismissible": "dismissible"; }, {}, never, never, false, never>;
|
|
30
44
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
2
|
import { ElementPlacement } from '../../../interfaces/core';
|
|
3
3
|
import { BooleanInput } from '../../../utils/boolean-input';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class PopoverDirective implements AfterViewInit {
|
|
5
|
+
export declare class PopoverDirective implements AfterViewInit, OnDestroy {
|
|
6
6
|
private readonly _elementRef;
|
|
7
7
|
/**
|
|
8
8
|
* Define the popover content
|
|
@@ -60,6 +60,7 @@ export declare class PopoverDirective implements AfterViewInit {
|
|
|
60
60
|
private popover?;
|
|
61
61
|
constructor(_elementRef: ElementRef);
|
|
62
62
|
ngAfterViewInit(): void;
|
|
63
|
+
ngOnDestroy(): void;
|
|
63
64
|
/**
|
|
64
65
|
* Shows the popover of an item.
|
|
65
66
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy, QueryList } from '@angular/core';
|
|
2
2
|
import { BooleanInput } from '../../../../utils/boolean-input';
|
|
3
3
|
import { TabItemComponent } from '../tab-item/tab-item.component';
|
|
4
|
+
import { AbstractComponent } from '../../../../abstracts/abstract.component';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TabContainerComponent implements
|
|
6
|
-
private readonly _changeDetectorRef;
|
|
6
|
+
export declare class TabContainerComponent extends AbstractComponent implements OnDestroy {
|
|
7
7
|
/**
|
|
8
8
|
* Tabs automatically occupy the entire available width
|
|
9
9
|
*/
|
|
@@ -20,9 +20,11 @@ export declare class TabContainerComponent implements AfterViewInit {
|
|
|
20
20
|
* The tab items
|
|
21
21
|
*/
|
|
22
22
|
tabs?: QueryList<TabItemComponent>;
|
|
23
|
-
|
|
23
|
+
private tabNavLinks?;
|
|
24
|
+
private tabSubscriptions?;
|
|
24
25
|
isTrueBooleanInput(booleanInput?: BooleanInput): boolean;
|
|
25
26
|
ngAfterViewInit(): void;
|
|
27
|
+
ngOnDestroy(): void;
|
|
26
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabContainerComponent, never>;
|
|
27
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<TabContainerComponent, "it-tab-container", never, { "auto": "auto"; "iconText": "iconText"; "dark": "dark"; }, {}, ["tabs"], never, false, never>;
|
|
28
30
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
2
|
import { ElementPlacement } from '../../../interfaces/core';
|
|
3
3
|
import { BooleanInput } from '../../../utils/boolean-input';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TooltipDirective implements AfterViewInit {
|
|
5
|
+
export declare class TooltipDirective implements AfterViewInit, OnDestroy {
|
|
6
6
|
private readonly _elementRef;
|
|
7
7
|
/**
|
|
8
8
|
* Define the tooltip title
|
|
@@ -43,6 +43,7 @@ export declare class TooltipDirective implements AfterViewInit {
|
|
|
43
43
|
private tooltip?;
|
|
44
44
|
constructor(_elementRef: ElementRef);
|
|
45
45
|
ngAfterViewInit(): void;
|
|
46
|
+
ngOnDestroy(): void;
|
|
46
47
|
/**
|
|
47
48
|
* Shows the tooltip of an item.
|
|
48
49
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AbstractFormComponent } from '../../../abstracts/abstract-form-component';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { BooleanInput } from '../../../utils/boolean-input';
|
|
4
|
+
import { InputPassword } from 'bootstrap-italia';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class PasswordInputComponent extends AbstractFormComponent<string> {
|
|
6
7
|
/**
|
|
@@ -40,7 +41,7 @@ export declare class PasswordInputComponent extends AbstractFormComponent<string
|
|
|
40
41
|
* Enable to show the strength meter
|
|
41
42
|
*/
|
|
42
43
|
showStrengthMeter?: BooleanInput;
|
|
43
|
-
inputPasswordBs?:
|
|
44
|
+
inputPasswordBs?: InputPassword;
|
|
44
45
|
private inputElement?;
|
|
45
46
|
ngOnInit(): void;
|
|
46
47
|
ngAfterViewInit(): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { AbstractComponent } from '../../../abstracts/abstract.component';
|
|
3
|
+
import { ProgressDonut } from 'bootstrap-italia';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class UploadDragDropComponent extends AbstractComponent {
|
|
5
6
|
/**
|
|
@@ -16,7 +17,7 @@ export declare class UploadDragDropComponent extends AbstractComponent {
|
|
|
16
17
|
isDragover: boolean;
|
|
17
18
|
isLoading: boolean;
|
|
18
19
|
isSuccess: boolean;
|
|
19
|
-
donut?:
|
|
20
|
+
donut?: ProgressDonut;
|
|
20
21
|
private donutElement?;
|
|
21
22
|
filename?: string;
|
|
22
23
|
extension?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { AbstractComponent } from
|
|
3
|
-
import { BooleanInput } from
|
|
4
|
-
import { UploadFileListItem } from
|
|
2
|
+
import { AbstractComponent } from '../../../abstracts/abstract.component';
|
|
3
|
+
import { BooleanInput } from '../../../utils/boolean-input';
|
|
4
|
+
import { UploadFileListItem } from '../../../interfaces/form';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class UploadFileListComponent extends AbstractComponent implements OnInit, OnChanges {
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BooleanInput } from
|
|
2
|
-
import { AbstractComponent } from
|
|
1
|
+
import { BooleanInput } from '../../../utils/boolean-input';
|
|
2
|
+
import { AbstractComponent } from '../../../abstracts/abstract.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class BackToTopComponent extends AbstractComponent {
|
|
5
5
|
/**
|
|
@@ -19,9 +19,28 @@ export declare class BackToTopComponent extends AbstractComponent {
|
|
|
19
19
|
* Button usable button on a dark background
|
|
20
20
|
*/
|
|
21
21
|
dark?: BooleanInput;
|
|
22
|
+
private backToTop?;
|
|
23
|
+
private backToTopElement?;
|
|
22
24
|
get isSmall(): boolean;
|
|
23
25
|
get isShadow(): boolean;
|
|
24
26
|
get isDark(): boolean;
|
|
27
|
+
ngAfterViewInit(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Show button
|
|
30
|
+
*/
|
|
31
|
+
show(): void;
|
|
32
|
+
/**
|
|
33
|
+
* Hide the button
|
|
34
|
+
*/
|
|
35
|
+
hide(): void;
|
|
36
|
+
/**
|
|
37
|
+
* Activates the scroll animation towards the Y coordinate indicated by the positionTop option
|
|
38
|
+
*/
|
|
39
|
+
scrollToTop(): void;
|
|
40
|
+
/**
|
|
41
|
+
* Eliminate component features
|
|
42
|
+
*/
|
|
43
|
+
dispose(): void;
|
|
25
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<BackToTopComponent, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BackToTopComponent, "it-back-to-top",
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BackToTopComponent, "it-back-to-top", ["itBackToTop"], { "id": "id"; "small": "small"; "shadow": "shadow"; "dark": "dark"; }, {}, never, never, false, never>;
|
|
27
46
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, Renderer2 } from '@angular/core';
|
|
2
|
-
import { BooleanInput } from
|
|
3
|
-
import { AbstractComponent } from
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, Renderer2 } from '@angular/core';
|
|
2
|
+
import { BooleanInput } from '../../../utils/boolean-input';
|
|
3
|
+
import { AbstractComponent } from '../../../abstracts/abstract.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class HeaderComponent extends AbstractComponent {
|
|
6
6
|
protected readonly _renderer: Renderer2;
|
|
7
7
|
protected readonly _elementRef: ElementRef;
|
|
8
|
+
protected readonly _changeDetectorRef: ChangeDetectorRef;
|
|
8
9
|
light?: BooleanInput;
|
|
9
10
|
showSlim?: BooleanInput;
|
|
10
11
|
slimTitle?: string;
|
|
@@ -17,8 +18,9 @@ export declare class HeaderComponent extends AbstractComponent {
|
|
|
17
18
|
* TODO: complete header
|
|
18
19
|
* @param _renderer
|
|
19
20
|
* @param _elementRef
|
|
21
|
+
* @param _changeDetectorRef
|
|
20
22
|
*/
|
|
21
|
-
constructor(_renderer: Renderer2, _elementRef: ElementRef);
|
|
23
|
+
constructor(_renderer: Renderer2, _elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef);
|
|
22
24
|
get isLight(): boolean;
|
|
23
25
|
get isShowSlim(): boolean;
|
|
24
26
|
get isSmallHeader(): boolean;
|
package/lib/interfaces/core.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IconName } from './icon';
|
|
1
2
|
export declare type AlertColor = 'info' | 'success' | 'warning' | 'danger';
|
|
2
3
|
export declare type ButtonColor = 'primary' | 'outline-primary' | 'secondary' | 'outline-secondary' | 'success' | 'outline-success' | 'danger' | 'outline-danger' | 'warning' | 'outline-warning' | 'info' | 'outline-info' | 'light' | 'outline-light' | 'dark' | 'outline-dark' | 'link';
|
|
3
4
|
export declare type ButtonSize = 'lg' | 'sm' | 'xs';
|
|
@@ -14,12 +15,34 @@ export declare type VerticalAlignment = 'align-baseline' | 'align-top' | 'align-
|
|
|
14
15
|
export declare type DropdownDirection = 'dropup' | 'dropend' | 'dropstart';
|
|
15
16
|
export declare type CarouselType = 'default' | 'three-cols' | 'three-cols-arrow-visible';
|
|
16
17
|
export interface Notification {
|
|
18
|
+
/**
|
|
19
|
+
* Notification type
|
|
20
|
+
*/
|
|
17
21
|
type: NotificationType;
|
|
22
|
+
/**
|
|
23
|
+
* Notification title
|
|
24
|
+
*/
|
|
18
25
|
title: string;
|
|
26
|
+
/**
|
|
27
|
+
* Notification message / text
|
|
28
|
+
*/
|
|
19
29
|
message?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Custom duration of notification
|
|
32
|
+
*/
|
|
20
33
|
duration?: number;
|
|
21
|
-
|
|
34
|
+
/**
|
|
35
|
+
* The close notification button appears
|
|
36
|
+
*/
|
|
37
|
+
dismissible?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Custom position of notification
|
|
40
|
+
*/
|
|
22
41
|
position?: NotificationPosition;
|
|
42
|
+
/**
|
|
43
|
+
* Custom icon of notification
|
|
44
|
+
*/
|
|
45
|
+
icon?: IconName;
|
|
23
46
|
}
|
|
24
47
|
export declare enum NotificationType {
|
|
25
48
|
Standard = "standard",
|