design-angular-kit 1.0.0-2 → 1.0.0-21
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.md +102 -26
- package/assets/i18n/en.json +122 -0
- package/assets/i18n/it.json +52 -11
- package/esm2022/lib/abstracts/abstract-form.component.mjs +186 -0
- package/esm2022/lib/abstracts/abstract.component.mjs +45 -0
- package/esm2022/lib/components/components.module.mjs +188 -0
- package/esm2022/lib/components/core/accordion/accordion.component.mjs +38 -0
- package/esm2022/lib/components/core/alert/alert.component.mjs +74 -0
- package/esm2022/lib/components/core/badge/badge.directive.mjs +38 -0
- package/esm2022/lib/components/core/button/button.directive.mjs +85 -0
- package/esm2022/lib/components/core/callout/callout.component.mjs +57 -0
- package/esm2022/lib/components/core/card/card.component.mjs +64 -0
- package/esm2022/lib/components/core/carousel/carousel/carousel.component.mjs +89 -0
- package/esm2022/lib/components/core/carousel/carousel-item/carousel-item.component.mjs +19 -0
- package/esm2022/lib/components/core/carousel/carousel.module.mjs +23 -0
- package/esm2022/lib/components/core/chip/chip.component.mjs +96 -0
- package/esm2022/lib/components/core/collapse/collapse.component.mjs +101 -0
- package/esm2022/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.mjs +24 -0
- package/esm2022/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.mjs +11 -0
- package/esm2022/lib/components/core/dimmer/dimmer.component.mjs +59 -0
- package/esm2022/lib/components/core/dimmer/dimmer.module.mjs +27 -0
- package/esm2022/lib/components/core/dropdown/dropdown/dropdown.component.mjs +143 -0
- package/esm2022/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +68 -0
- package/esm2022/lib/components/core/dropdown/dropdown.module.mjs +18 -0
- package/esm2022/lib/components/core/forward/forward.directive.mjs +53 -0
- package/esm2022/lib/components/core/link/link.component.mjs +46 -0
- package/esm2022/lib/components/core/list/list/list.component.mjs +17 -0
- package/esm2022/lib/components/core/list/list-item/list-item.component.mjs +40 -0
- package/esm2022/lib/components/core/list/list.module.mjs +23 -0
- package/esm2022/lib/components/core/modal/modal.component.mjs +192 -0
- package/esm2022/lib/components/core/notifications/notifications.component.mjs +111 -0
- package/esm2022/lib/components/core/pagination/pagination.component.mjs +133 -0
- package/esm2022/lib/components/core/popover/popover.directive.mjs +175 -0
- package/esm2022/lib/components/core/progress-bar/progress-bar.component.mjs +35 -0
- package/esm2022/lib/components/core/progress-button/progress-button.component.mjs +27 -0
- package/esm2022/lib/components/core/spinner/spinner.component.mjs +36 -0
- package/esm2022/lib/components/core/steppers/steppers-container/steppers-container.component.mjs +138 -0
- package/esm2022/lib/components/core/steppers/steppers-item/steppers-item.component.mjs +19 -0
- package/esm2022/lib/components/core/steppers/steppers.module.mjs +23 -0
- package/esm2022/lib/components/core/tab/tab-container/tab-container.component.mjs +60 -0
- package/esm2022/lib/components/core/tab/tab-item/tab-item.component.mjs +36 -0
- package/esm2022/lib/components/core/tab/tab.module.mjs +23 -0
- package/esm2022/lib/components/core/table/table.component.mjs +57 -0
- package/esm2022/lib/components/core/tooltip/tooltip.directive.mjs +142 -0
- package/esm2022/lib/components/form/checkbox/checkbox.component.mjs +49 -0
- package/esm2022/lib/components/form/form.module.mjs +55 -0
- package/esm2022/lib/components/form/input/input.component.mjs +239 -0
- package/esm2022/lib/components/form/password-input/password-input.component.mjs +155 -0
- package/esm2022/lib/components/form/radio-button/radio-button.component.mjs +69 -0
- package/esm2022/lib/components/form/range/range.component.mjs +64 -0
- package/esm2022/lib/components/form/rating/rating.component.mjs +51 -0
- package/esm2022/lib/components/form/select/select.component.mjs +70 -0
- package/esm2022/lib/components/form/textarea/textarea.component.mjs +47 -0
- package/esm2022/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +140 -0
- package/esm2022/lib/components/form/upload-file-list/upload-file-list.component.mjs +112 -0
- package/esm2022/lib/components/navigation/back-button/back-button.component.mjs +71 -0
- package/esm2022/lib/components/navigation/back-to-top/back-to-top.component.mjs +64 -0
- package/esm2022/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.mjs +57 -0
- package/esm2022/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.mjs +23 -0
- package/esm2022/lib/components/navigation/breadcrumbs/breadcrumbs.module.mjs +18 -0
- package/esm2022/lib/components/navigation/header/header.component.mjs +58 -0
- package/esm2022/lib/components/utils/error-page/error-page.component.mjs +81 -0
- package/esm2022/lib/components/utils/icon/icon.component.mjs +55 -0
- package/esm2022/lib/components/utils/language-switcher/language-switcher.component.mjs +47 -0
- package/esm2022/lib/design-angular-kit-config.mjs +15 -0
- package/esm2022/lib/design-angular-kit.module.mjs +68 -0
- package/esm2022/lib/interfaces/core.mjs +16 -0
- package/esm2022/lib/interfaces/design-angular-kit-init.mjs +2 -0
- package/esm2022/lib/interfaces/form.mjs +2 -0
- package/esm2022/lib/interfaces/icon.mjs +165 -0
- package/esm2022/lib/interfaces/utils.mjs +2 -0
- package/esm2022/lib/pipes/mark-matching-text.pipe.mjs +37 -0
- package/esm2022/lib/services/notification/notification.service.mjs +120 -0
- package/esm2022/lib/utils/file-utils.mjs +73 -0
- package/esm2022/lib/utils/regex.mjs +31 -0
- package/esm2022/lib/validators/it-validators.mjs +153 -0
- package/esm2022/public_api.mjs +85 -0
- package/fesm2022/design-angular-kit.mjs +4649 -0
- package/fesm2022/design-angular-kit.mjs.map +1 -0
- package/lib/abstracts/{abstract-form-component.d.ts → abstract-form.component.d.ts} +12 -10
- package/lib/abstracts/abstract.component.d.ts +24 -8
- package/lib/components/components.module.d.ts +40 -0
- package/lib/components/core/accordion/accordion.component.d.ts +11 -9
- package/lib/components/core/alert/alert.component.d.ts +32 -5
- package/lib/components/core/badge/badge.directive.d.ts +12 -6
- package/lib/components/core/button/button.directive.d.ts +24 -17
- package/lib/components/core/callout/callout.component.d.ts +26 -17
- package/lib/components/core/card/card.component.d.ts +23 -13
- package/lib/components/core/carousel/carousel/carousel.component.d.ts +34 -15
- package/lib/components/core/carousel/carousel-item/carousel-item.component.d.ts +8 -3
- package/lib/components/core/carousel/carousel.module.d.ts +8 -0
- package/lib/components/core/chip/chip.component.d.ts +8 -5
- package/lib/components/core/collapse/collapse.component.d.ts +16 -15
- package/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.d.ts +3 -3
- package/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.d.ts +3 -3
- package/lib/components/core/dimmer/dimmer.component.d.ts +4 -4
- package/lib/components/core/dimmer/dimmer.module.d.ts +9 -0
- package/lib/components/core/dropdown/dropdown/dropdown.component.d.ts +53 -10
- package/lib/components/core/dropdown/dropdown-item/dropdown-item.component.d.ts +8 -13
- package/lib/components/core/dropdown/dropdown.module.d.ts +8 -0
- package/lib/components/core/forward/forward.directive.d.ts +3 -3
- package/lib/components/core/link/link.component.d.ts +9 -10
- package/lib/components/core/list/list/list.component.d.ts +6 -5
- package/lib/components/core/list/list-item/list-item.component.d.ts +12 -8
- package/lib/components/core/list/list.module.d.ts +8 -0
- package/lib/components/core/modal/modal.component.d.ts +83 -14
- package/lib/components/core/notifications/notifications.component.d.ts +25 -11
- package/lib/components/core/pagination/pagination.component.d.ts +71 -10
- package/lib/components/core/popover/popover.directive.d.ts +15 -14
- package/lib/components/core/progress-bar/progress-bar.component.d.ts +6 -6
- package/lib/components/core/progress-button/progress-button.component.d.ts +5 -5
- package/lib/components/core/spinner/spinner.component.d.ts +6 -6
- package/lib/components/core/steppers/steppers-container/steppers-container.component.d.ts +128 -0
- package/lib/components/core/steppers/steppers-item/steppers-item.component.d.ts +20 -0
- package/lib/components/core/steppers/steppers.module.d.ts +8 -0
- package/lib/components/core/tab/tab-container/tab-container.component.d.ts +14 -12
- package/lib/components/core/tab/tab-item/tab-item.component.d.ts +11 -11
- package/lib/components/core/tab/tab.module.d.ts +8 -0
- package/lib/components/core/table/table.component.d.ts +14 -14
- package/lib/components/core/tooltip/tooltip.directive.d.ts +12 -11
- package/lib/components/form/checkbox/checkbox.component.d.ts +13 -10
- package/lib/components/form/form.module.d.ts +16 -0
- package/lib/components/form/input/input.component.d.ts +59 -13
- package/lib/components/form/password-input/password-input.component.d.ts +33 -8
- package/lib/components/form/radio-button/radio-button.component.d.ts +7 -6
- package/lib/components/form/range/range.component.d.ts +42 -0
- package/lib/components/form/rating/rating.component.d.ts +24 -0
- package/lib/components/form/select/select.component.d.ts +12 -6
- package/lib/components/form/textarea/textarea.component.d.ts +5 -5
- package/lib/components/form/upload-drag-drop/upload-drag-drop.component.d.ts +8 -7
- package/lib/components/form/upload-file-list/upload-file-list.component.d.ts +11 -9
- package/lib/components/navigation/back-button/back-button.component.d.ts +4 -4
- package/lib/components/navigation/back-to-top/back-to-top.component.d.ts +28 -13
- package/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +11 -9
- package/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.d.ts +6 -6
- package/lib/components/navigation/breadcrumbs/breadcrumbs.module.d.ts +8 -0
- package/lib/components/navigation/header/header.component.d.ts +9 -13
- package/lib/components/utils/error-page/error-page.component.d.ts +44 -0
- package/lib/components/utils/icon/icon.component.d.ts +14 -16
- package/lib/components/utils/language-switcher/language-switcher.component.d.ts +27 -0
- package/lib/design-angular-kit-config.d.ts +16 -0
- package/lib/design-angular-kit.module.d.ts +9 -4
- package/lib/interfaces/core.d.ts +40 -16
- package/lib/interfaces/design-angular-kit-init.d.ts +7 -0
- package/lib/interfaces/form.d.ts +32 -8
- package/lib/interfaces/icon.d.ts +4 -3
- package/lib/interfaces/utils.d.ts +10 -0
- package/lib/pipes/mark-matching-text.pipe.d.ts +10 -0
- package/lib/services/{notifications/notifications.service.d.ts → notification/notification.service.d.ts} +20 -20
- package/lib/utils/boolean-input.d.ts +1 -1
- package/lib/utils/file-utils.d.ts +5 -0
- package/lib/utils/regex.d.ts +5 -0
- package/lib/validators/it-validators.d.ts +16 -9
- package/package.json +13 -17
- package/public_api.d.ts +21 -4
- package/esm2020/lib/abstracts/abstract-form-component.mjs +0 -165
- package/esm2020/lib/abstracts/abstract.component.mjs +0 -20
- package/esm2020/lib/components/core/accordion/accordion.component.mjs +0 -20
- package/esm2020/lib/components/core/alert/alert.component.mjs +0 -29
- package/esm2020/lib/components/core/badge/badge.directive.mjs +0 -34
- package/esm2020/lib/components/core/button/button.directive.mjs +0 -78
- package/esm2020/lib/components/core/callout/callout.component.mjs +0 -59
- package/esm2020/lib/components/core/card/card.component.mjs +0 -58
- package/esm2020/lib/components/core/carousel/carousel/carousel.component.mjs +0 -66
- package/esm2020/lib/components/core/carousel/carousel-item/carousel-item.component.mjs +0 -14
- package/esm2020/lib/components/core/chip/chip.component.mjs +0 -89
- package/esm2020/lib/components/core/collapse/collapse.component.mjs +0 -96
- package/esm2020/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.mjs +0 -24
- package/esm2020/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.mjs +0 -11
- package/esm2020/lib/components/core/dimmer/dimmer.component.mjs +0 -59
- package/esm2020/lib/components/core/dropdown/dropdown/dropdown.component.mjs +0 -60
- package/esm2020/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +0 -71
- package/esm2020/lib/components/core/forward/forward.directive.mjs +0 -51
- package/esm2020/lib/components/core/link/link.component.mjs +0 -39
- package/esm2020/lib/components/core/list/list/list.component.mjs +0 -13
- package/esm2020/lib/components/core/list/list-item/list-item.component.mjs +0 -36
- package/esm2020/lib/components/core/modal/modal.component.mjs +0 -98
- package/esm2020/lib/components/core/notifications/notifications.component.mjs +0 -66
- package/esm2020/lib/components/core/pagination/pagination.component.mjs +0 -51
- package/esm2020/lib/components/core/popover/popover.directive.mjs +0 -176
- package/esm2020/lib/components/core/progress-bar/progress-bar.component.mjs +0 -34
- package/esm2020/lib/components/core/progress-button/progress-button.component.mjs +0 -27
- package/esm2020/lib/components/core/spinner/spinner.component.mjs +0 -35
- package/esm2020/lib/components/core/tab/tab-container/tab-container.component.mjs +0 -33
- package/esm2020/lib/components/core/tab/tab-item/tab-item.component.mjs +0 -36
- package/esm2020/lib/components/core/table/table.component.mjs +0 -57
- package/esm2020/lib/components/core/tooltip/tooltip.directive.mjs +0 -140
- package/esm2020/lib/components/form/checkbox/checkbox.component.mjs +0 -40
- package/esm2020/lib/components/form/input/input.component.mjs +0 -159
- package/esm2020/lib/components/form/password-input/password-input.component.mjs +0 -112
- package/esm2020/lib/components/form/radio-button/radio-button.component.mjs +0 -53
- package/esm2020/lib/components/form/select/select.component.mjs +0 -62
- package/esm2020/lib/components/form/textarea/textarea.component.mjs +0 -46
- package/esm2020/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +0 -134
- package/esm2020/lib/components/form/upload-file-list/upload-file-list.component.mjs +0 -99
- package/esm2020/lib/components/navigation/back-button/back-button.component.mjs +0 -69
- package/esm2020/lib/components/navigation/back-to-top/back-to-top.component.mjs +0 -39
- package/esm2020/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.mjs +0 -45
- package/esm2020/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.mjs +0 -23
- package/esm2020/lib/components/navigation/header/header.component.mjs +0 -61
- package/esm2020/lib/components/utils/icon/icon.component.mjs +0 -54
- package/esm2020/lib/components/utils/not-found-page/not-found-page.component.mjs +0 -13
- package/esm2020/lib/design-angular-kit.module.mjs +0 -42
- package/esm2020/lib/interfaces/core.mjs +0 -16
- package/esm2020/lib/interfaces/form.mjs +0 -2
- package/esm2020/lib/interfaces/icon.mjs +0 -2
- package/esm2020/lib/modules/components.module.mjs +0 -241
- package/esm2020/lib/services/notifications/notifications.service.mjs +0 -122
- package/esm2020/lib/utils/file-utils.mjs +0 -65
- package/esm2020/lib/utils/regex.mjs +0 -26
- package/esm2020/lib/validators/it-validators.mjs +0 -131
- package/esm2020/public_api.mjs +0 -64
- package/fesm2015/design-angular-kit.mjs +0 -3271
- package/fesm2015/design-angular-kit.mjs.map +0 -1
- package/fesm2020/design-angular-kit.mjs +0 -3231
- package/fesm2020/design-angular-kit.mjs.map +0 -1
- package/lib/components/utils/not-found-page/not-found-page.component.d.ts +0 -5
- package/lib/modules/components.module.d.ts +0 -57
- /package/{esm2020 → esm2022}/design-angular-kit.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/utils/boolean-input.mjs +0 -0
|
@@ -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
|
|
5
|
+
export declare class ItTooltipDirective implements AfterViewInit, OnDestroy {
|
|
6
6
|
private readonly _elementRef;
|
|
7
7
|
/**
|
|
8
8
|
* Define the tooltip title
|
|
@@ -13,36 +13,37 @@ export declare class TooltipDirective implements AfterViewInit {
|
|
|
13
13
|
* Define the tooltip placement
|
|
14
14
|
* @param placement
|
|
15
15
|
*/
|
|
16
|
-
set
|
|
16
|
+
set tooltipPlacement(placement: ElementPlacement);
|
|
17
17
|
/**
|
|
18
18
|
* Indicates whether the title contains html
|
|
19
19
|
* @param html true if contain html
|
|
20
20
|
*/
|
|
21
|
-
set
|
|
21
|
+
set tooltipHtml(html: BooleanInput);
|
|
22
22
|
/**
|
|
23
23
|
* This event fires immediately when the show method is called.
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
showEvent: EventEmitter<Event>;
|
|
26
26
|
/**
|
|
27
27
|
* This event is triggered when the tooltip has been made visible to the user (it will wait for the CSS transitions to complete).
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
shownEvent: EventEmitter<Event>;
|
|
30
30
|
/**
|
|
31
31
|
* This event fires immediately when the hide method is called.
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
hideEvent: EventEmitter<Event>;
|
|
34
34
|
/**
|
|
35
35
|
* This event is raised when the tooltip has finished being hidden from the user (it will wait for the CSS transitions to complete).
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
hiddenEvent: EventEmitter<Event>;
|
|
38
38
|
/**
|
|
39
39
|
* This event fires after the show event when the tooltip template has been added to the DOM.
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
insertedEvent: EventEmitter<Event>;
|
|
42
42
|
private readonly element;
|
|
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
|
*/
|
|
@@ -75,6 +76,6 @@ export declare class TooltipDirective implements AfterViewInit {
|
|
|
75
76
|
* Updates the position of an element's tooltip.
|
|
76
77
|
*/
|
|
77
78
|
update(): void;
|
|
78
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
79
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItTooltipDirective, never>;
|
|
80
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ItTooltipDirective, "[itTooltip]", ["itTooltip"], { "title": { "alias": "itTooltip"; "required": false; }; "tooltipPlacement": { "alias": "tooltipPlacement"; "required": false; }; "tooltipHtml": { "alias": "tooltipHtml"; "required": false; }; }, { "showEvent": "showEvent"; "shownEvent": "shownEvent"; "hideEvent": "hideEvent"; "hiddenEvent": "hiddenEvent"; "insertedEvent": "insertedEvent"; }, never, never, true, never>;
|
|
80
81
|
}
|
|
@@ -1,30 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ItAbstractFormComponent } from '../../../abstracts/abstract-form.component';
|
|
3
|
+
import { BooleanInput } from '../../../utils/boolean-input';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
5
|
+
export declare class ItCheckboxComponent extends ItAbstractFormComponent<boolean | null | undefined> implements OnInit, OnChanges {
|
|
5
6
|
/**
|
|
6
7
|
* If show checkbox as toggle
|
|
7
8
|
*/
|
|
8
|
-
toggle
|
|
9
|
+
toggle: BooleanInput | undefined;
|
|
9
10
|
/**
|
|
10
11
|
* If show checkbox inline
|
|
11
12
|
*/
|
|
12
|
-
inline
|
|
13
|
+
inline: BooleanInput | undefined;
|
|
13
14
|
/**
|
|
14
15
|
* If is checkbox group
|
|
15
16
|
*/
|
|
16
|
-
group
|
|
17
|
+
group: BooleanInput | undefined;
|
|
17
18
|
/**
|
|
18
19
|
* If checkbox is checked
|
|
19
20
|
*/
|
|
20
|
-
checked
|
|
21
|
+
checked: BooleanInput | undefined;
|
|
21
22
|
/**
|
|
22
23
|
* If checkbox is indeterminate
|
|
23
24
|
*/
|
|
24
|
-
indeterminate
|
|
25
|
+
indeterminate: BooleanInput | undefined;
|
|
25
26
|
get isIndeterminate(): boolean;
|
|
26
27
|
get isGroup(): boolean;
|
|
27
28
|
ngOnInit(): void;
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
30
|
+
private markAsChecked;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItCheckboxComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItCheckboxComponent, "it-checkbox", never, { "toggle": { "alias": "toggle"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "group": { "alias": "group"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; }, {}, never, ["*", "[error]", "[label]"], true, never>;
|
|
30
33
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./checkbox/checkbox.component";
|
|
3
|
+
import * as i2 from "./input/input.component";
|
|
4
|
+
import * as i3 from "./password-input/password-input.component";
|
|
5
|
+
import * as i4 from "./radio-button/radio-button.component";
|
|
6
|
+
import * as i5 from "./range/range.component";
|
|
7
|
+
import * as i6 from "./rating/rating.component";
|
|
8
|
+
import * as i7 from "./select/select.component";
|
|
9
|
+
import * as i8 from "./textarea/textarea.component";
|
|
10
|
+
import * as i9 from "./upload-drag-drop/upload-drag-drop.component";
|
|
11
|
+
import * as i10 from "./upload-file-list/upload-file-list.component";
|
|
12
|
+
export declare class ItFormModule {
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItFormModule, never>;
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ItFormModule, never, [typeof i1.ItCheckboxComponent, typeof i2.ItInputComponent, typeof i3.ItPasswordInputComponent, typeof i4.ItRadioButtonComponent, typeof i5.ItRangeComponent, typeof i6.ItRatingComponent, typeof i7.ItSelectComponent, typeof i8.ItTextareaComponent, typeof i9.ItUploadDragDropComponent, typeof i10.ItUploadFileListComponent], [typeof i1.ItCheckboxComponent, typeof i2.ItInputComponent, typeof i3.ItPasswordInputComponent, typeof i4.ItRadioButtonComponent, typeof i5.ItRangeComponent, typeof i6.ItRatingComponent, typeof i7.ItSelectComponent, typeof i8.ItTextareaComponent, typeof i9.ItUploadDragDropComponent, typeof i10.ItUploadFileListComponent]>;
|
|
15
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ItFormModule>;
|
|
16
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { ItAbstractFormComponent } from '../../../abstracts/abstract-form.component';
|
|
3
|
+
import { AutocompleteItem, InputControlType } from '../../../interfaces/form';
|
|
3
4
|
import { BooleanInput } from '../../../utils/boolean-input';
|
|
4
5
|
import { Observable } from 'rxjs';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class
|
|
7
|
+
export declare class ItInputComponent extends ItAbstractFormComponent<string | number | null | undefined> implements OnInit {
|
|
7
8
|
/**
|
|
8
9
|
* The input type
|
|
9
10
|
* @default text
|
|
@@ -16,36 +17,69 @@ export declare class InputComponent extends AbstractFormComponent<string | numbe
|
|
|
16
17
|
/**
|
|
17
18
|
* The input description
|
|
18
19
|
*/
|
|
19
|
-
description
|
|
20
|
+
description: string | undefined;
|
|
20
21
|
/**
|
|
21
22
|
* To prevent modification of the contained value.
|
|
22
23
|
* - <b>plaintext</b>: Readonly field in the form stylized as plain text
|
|
23
24
|
*/
|
|
24
|
-
readonly
|
|
25
|
+
readonly: BooleanInput | 'plaintext' | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* The max date value [Used only in type = 'date']
|
|
28
|
+
* @default '9999-12-31'
|
|
29
|
+
* @example 'yyyy-mm-dd'
|
|
30
|
+
*/
|
|
31
|
+
maxDate?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The min date value [Used only in type = 'date']
|
|
34
|
+
* @example 'yyyy-mm-dd'
|
|
35
|
+
*/
|
|
36
|
+
minDate: string | undefined;
|
|
25
37
|
/**
|
|
26
38
|
* The max value [Used only in type = 'number']
|
|
27
39
|
*/
|
|
28
|
-
max
|
|
40
|
+
max: number | undefined;
|
|
29
41
|
/**
|
|
30
42
|
* The min value [Used only in type = 'number']
|
|
31
43
|
*/
|
|
32
|
-
min
|
|
44
|
+
min: number | undefined;
|
|
33
45
|
/**
|
|
34
46
|
* The step value [Used only in type = 'number']
|
|
35
47
|
*/
|
|
36
|
-
step
|
|
48
|
+
step: number | 'any' | undefined;
|
|
37
49
|
/**
|
|
38
50
|
* If is a currency number [Used only in type = 'number']
|
|
39
51
|
*/
|
|
40
|
-
currency
|
|
52
|
+
currency: BooleanInput | undefined;
|
|
41
53
|
/**
|
|
42
54
|
* If is a percentage number [Used only in type = 'number']
|
|
43
55
|
*/
|
|
44
|
-
percentage
|
|
56
|
+
percentage: BooleanInput | undefined;
|
|
45
57
|
/**
|
|
46
58
|
* To make the numeric field automatically resize according to the value contained in it. [Used only in type = 'number']
|
|
47
59
|
*/
|
|
48
|
-
adaptive
|
|
60
|
+
adaptive: BooleanInput | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Input autocomplete attribute (Browser autocomplete)
|
|
63
|
+
* @default undefined
|
|
64
|
+
*/
|
|
65
|
+
autocomplete: string | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Indicates the list of searchable elements on which to base the input autocomplete system [Optional. Used only in type = 'search']
|
|
68
|
+
* If you need to retrieve items via API, can pass a function of Observable
|
|
69
|
+
* @default undefined
|
|
70
|
+
*/
|
|
71
|
+
autocompleteData?: Array<AutocompleteItem> | ((search?: string | number | null) => Observable<Array<AutocompleteItem>>);
|
|
72
|
+
/**
|
|
73
|
+
* Time span [ms] has passed without another source emission, to delay data filtering.
|
|
74
|
+
* Useful when the user is typing multiple letters
|
|
75
|
+
* @default 300 [ms]
|
|
76
|
+
*/
|
|
77
|
+
autocompleteDebounceTime: number;
|
|
78
|
+
/**
|
|
79
|
+
* Fired when the Autocomplete Item has been selected
|
|
80
|
+
*/
|
|
81
|
+
autocompleteSelectedEvent: EventEmitter<AutocompleteItem>;
|
|
82
|
+
protected showAutocompletion: boolean;
|
|
49
83
|
get isActiveLabel(): boolean;
|
|
50
84
|
/**
|
|
51
85
|
* Check is readonly field
|
|
@@ -55,12 +89,24 @@ export declare class InputComponent extends AbstractFormComponent<string | numbe
|
|
|
55
89
|
* Return the invalid message string from TranslateService
|
|
56
90
|
*/
|
|
57
91
|
get invalidMessage(): Observable<string>;
|
|
92
|
+
/** Observable da cui vengono emessi i risultati dell'auto completamento */
|
|
93
|
+
autocompleteResults$: Observable<{
|
|
94
|
+
searchedValue: string | number | null | undefined;
|
|
95
|
+
relatedEntries: Array<AutocompleteItem>;
|
|
96
|
+
}>;
|
|
58
97
|
ngOnInit(): void;
|
|
59
98
|
/**
|
|
60
99
|
* Increment or decrease the input number value of step
|
|
61
100
|
* @param decrease true to decrease value
|
|
62
101
|
*/
|
|
63
102
|
incrementNumber(decrease?: boolean): void;
|
|
64
|
-
|
|
65
|
-
|
|
103
|
+
/**
|
|
104
|
+
* Create the autocomplete list
|
|
105
|
+
*/
|
|
106
|
+
private getAutocompleteResults$;
|
|
107
|
+
onEntryClick(entry: AutocompleteItem, event: Event): void;
|
|
108
|
+
autocompleteItemTrackByValueFn(index: number, item: AutocompleteItem): string;
|
|
109
|
+
onKeyDown(): void;
|
|
110
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItInputComponent, never>;
|
|
111
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItInputComponent, "it-input", never, { "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "description": { "alias": "description"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "max": { "alias": "max"; "required": false; }; "min": { "alias": "min"; "required": false; }; "step": { "alias": "step"; "required": false; }; "currency": { "alias": "currency"; "required": false; }; "percentage": { "alias": "percentage"; "required": false; }; "adaptive": { "alias": "adaptive"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "autocompleteData": { "alias": "autocompleteData"; "required": false; }; "autocompleteDebounceTime": { "alias": "autocompleteDebounceTime"; "required": false; }; }, { "autocompleteSelectedEvent": "autocompleteSelectedEvent"; }, never, ["[prepend]", "[prependText]", "[append]", "[appendText]", "[error]"], true, never>;
|
|
66
112
|
}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AfterViewInit, OnInit } from '@angular/core';
|
|
2
|
+
import { ItAbstractFormComponent } from '../../../abstracts/abstract-form.component';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
4
|
import { BooleanInput } from '../../../utils/boolean-input';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
6
|
+
export declare class ItPasswordInputComponent extends ItAbstractFormComponent<string | null | undefined> implements OnInit, AfterViewInit {
|
|
7
|
+
/**
|
|
8
|
+
* The field is required
|
|
9
|
+
* @default true
|
|
10
|
+
*/
|
|
11
|
+
required: boolean;
|
|
6
12
|
/**
|
|
7
13
|
* The password minimum length
|
|
8
14
|
* @default 10
|
|
@@ -34,21 +40,40 @@ export declare class PasswordInputComponent extends AbstractFormComponent<string
|
|
|
34
40
|
placeholder: string;
|
|
35
41
|
/**
|
|
36
42
|
* The input description
|
|
43
|
+
* - <b>true</b>: show the StrengthMeter description message
|
|
44
|
+
* - <b>string</b>: show custom description
|
|
45
|
+
* @default true for StrengthMeter mode else is undefined
|
|
37
46
|
*/
|
|
38
|
-
description
|
|
47
|
+
description: string | true | undefined;
|
|
39
48
|
/**
|
|
40
49
|
* Enable to show the strength meter
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
showStrengthMeter: BooleanInput | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Is the confirmation password field
|
|
55
|
+
* @default false
|
|
41
56
|
*/
|
|
42
|
-
|
|
43
|
-
|
|
57
|
+
confirmPasswordField: BooleanInput;
|
|
58
|
+
/**
|
|
59
|
+
* Input autocomplete attribute (Browser autocomplete)
|
|
60
|
+
* @default undefined
|
|
61
|
+
*/
|
|
62
|
+
autocomplete: string | undefined;
|
|
63
|
+
private inputPasswordBs?;
|
|
44
64
|
private inputElement?;
|
|
45
65
|
ngOnInit(): void;
|
|
46
66
|
ngAfterViewInit(): void;
|
|
47
|
-
get isStrengthMeter(): boolean;
|
|
67
|
+
protected get isStrengthMeter(): boolean;
|
|
68
|
+
protected get isConfirmPasswordField(): boolean;
|
|
48
69
|
/**
|
|
49
70
|
* Return the invalid message string from TranslateService
|
|
50
71
|
*/
|
|
51
72
|
get invalidMessage(): Observable<string>;
|
|
52
|
-
|
|
53
|
-
|
|
73
|
+
/**
|
|
74
|
+
* Retrieve the default StrengthMeter description message from TranslateService
|
|
75
|
+
*/
|
|
76
|
+
protected get strengthMeterDescription(): Observable<string>;
|
|
77
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItPasswordInputComponent, never>;
|
|
78
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItPasswordInputComponent, "it-password-input", never, { "required": { "alias": "required"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "useNumber": { "alias": "useNumber"; "required": false; }; "useCapitalCase": { "alias": "useCapitalCase"; "required": false; }; "useSmallCase": { "alias": "useSmallCase"; "required": false; }; "useSpecialCharacters": { "alias": "useSpecialCharacters"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "description": { "alias": "description"; "required": false; }; "showStrengthMeter": { "alias": "showStrengthMeter"; "required": false; }; "confirmPasswordField": { "alias": "confirmPasswordField"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; }, {}, never, ["[error]"], true, never>;
|
|
54
79
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ItAbstractFormComponent } from '../../../abstracts/abstract-form.component';
|
|
2
3
|
import { BooleanInput } from '../../../utils/boolean-input';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
5
|
+
export declare class ItRadioButtonComponent extends ItAbstractFormComponent<string | number | null | undefined> implements OnInit {
|
|
5
6
|
/**
|
|
6
7
|
* The radio value
|
|
7
8
|
*/
|
|
8
|
-
value
|
|
9
|
+
value: string | number | undefined | null;
|
|
9
10
|
/**
|
|
10
11
|
* If show radio inline
|
|
11
12
|
* @default false
|
|
@@ -19,11 +20,11 @@ export declare class RadioButtonComponent extends AbstractFormComponent<string |
|
|
|
19
20
|
/**
|
|
20
21
|
* If is radio is checked
|
|
21
22
|
*/
|
|
22
|
-
checked
|
|
23
|
+
checked: BooleanInput | undefined;
|
|
23
24
|
get isInline(): boolean;
|
|
24
25
|
get isGroup(): boolean;
|
|
25
26
|
get name(): string;
|
|
26
27
|
ngOnInit(): void;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItRadioButtonComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItRadioButtonComponent, "it-radio-button[value]", never, { "value": { "alias": "value"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "group": { "alias": "group"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; }, {}, never, ["[label]", "*", "[error]", "[error]"], true, never>;
|
|
29
30
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ElementRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ItAbstractFormComponent } from '../../../abstracts/abstract-form.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ItRangeComponent extends ItAbstractFormComponent<number | null | undefined> implements OnInit, OnChanges, OnDestroy {
|
|
5
|
+
/**
|
|
6
|
+
* The max value
|
|
7
|
+
*/
|
|
8
|
+
max?: number;
|
|
9
|
+
/**
|
|
10
|
+
* The min value
|
|
11
|
+
*/
|
|
12
|
+
min?: number;
|
|
13
|
+
/**
|
|
14
|
+
* The step value
|
|
15
|
+
*/
|
|
16
|
+
step?: number | 'any';
|
|
17
|
+
/**
|
|
18
|
+
* The color on left of thumb [Require rightColor]
|
|
19
|
+
* @example '#0d6efd' or 'var(--bs-primary)'
|
|
20
|
+
* @default undefined ('var(--bs-gray-300)')
|
|
21
|
+
*/
|
|
22
|
+
leftColor?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The color on right of thumb [Require leftColor]
|
|
25
|
+
* @example '#0d6efd' or 'var(--bs-primary)'
|
|
26
|
+
* @default undefined ('var(--bs-gray-300)')
|
|
27
|
+
*/
|
|
28
|
+
rightColor?: string;
|
|
29
|
+
slider: ElementRef<HTMLInputElement>;
|
|
30
|
+
private subscription?;
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
33
|
+
ngOnDestroy(): void;
|
|
34
|
+
writeValue(value: number | null | undefined): void;
|
|
35
|
+
/**
|
|
36
|
+
* Update the percentage of slider color
|
|
37
|
+
* @private
|
|
38
|
+
*/
|
|
39
|
+
private updateSliderColor;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItRangeComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItRangeComponent, "it-range", never, { "max": { "alias": "max"; "required": false; }; "min": { "alias": "min"; "required": false; }; "step": { "alias": "step"; "required": false; }; "leftColor": { "alias": "leftColor"; "required": false; }; "rightColor": { "alias": "rightColor"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ItAbstractFormComponent } from '../../../abstracts/abstract-form.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ItRatingComponent extends ItAbstractFormComponent<number | null | undefined> implements OnInit, OnChanges {
|
|
5
|
+
/**
|
|
6
|
+
* The rating value
|
|
7
|
+
*/
|
|
8
|
+
value: number | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Number of stars to show
|
|
11
|
+
* @default 5
|
|
12
|
+
*/
|
|
13
|
+
starCount: number;
|
|
14
|
+
protected stars: Array<number>;
|
|
15
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
/**
|
|
18
|
+
* Generate the array of stars
|
|
19
|
+
* @private
|
|
20
|
+
*/
|
|
21
|
+
private generateStars;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItRatingComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItRatingComponent, "it-rating", never, { "value": { "alias": "value"; "required": false; }; "starCount": { "alias": "starCount"; "required": false; }; }, {}, never, never, true, never>;
|
|
24
|
+
}
|
|
@@ -1,19 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ItAbstractFormComponent } from '../../../abstracts/abstract-form.component';
|
|
2
3
|
import { SelectControlGroup, SelectControlOption } from '../../../interfaces/form';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
5
|
+
export declare class ItSelectComponent extends ItAbstractFormComponent implements OnInit {
|
|
5
6
|
/**
|
|
6
7
|
* The select options
|
|
7
8
|
*/
|
|
8
|
-
options: Array<SelectControlOption
|
|
9
|
+
options: Array<SelectControlOption> | undefined;
|
|
9
10
|
/**
|
|
10
11
|
* The select group options
|
|
11
12
|
*/
|
|
12
|
-
groups
|
|
13
|
+
groups: Array<SelectControlGroup> | undefined;
|
|
13
14
|
/**
|
|
14
15
|
* The select description
|
|
15
16
|
*/
|
|
16
17
|
description?: string;
|
|
18
|
+
/**
|
|
19
|
+
* If set, add a `disabled selected` option with value `null` and as text the value of the attribute
|
|
20
|
+
* @example 'Select an option'
|
|
21
|
+
*/
|
|
22
|
+
defaultOption?: string;
|
|
17
23
|
ngOnInit(): void;
|
|
18
24
|
/**
|
|
19
25
|
* Check if the option is selected
|
|
@@ -25,6 +31,6 @@ export declare class SelectComponent extends AbstractFormComponent {
|
|
|
25
31
|
* @param option the option
|
|
26
32
|
*/
|
|
27
33
|
optionIsDisabled(option: SelectControlOption): boolean;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItSelectComponent, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItSelectComponent, "it-select", never, { "options": { "alias": "options"; "required": false; }; "groups": { "alias": "groups"; "required": false; }; "description": { "alias": "description"; "required": false; }; "defaultOption": { "alias": "defaultOption"; "required": false; }; }, {}, never, ["*", "[error]"], true, never>;
|
|
30
36
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ItAbstractFormComponent } from '../../../abstracts/abstract-form.component';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class ItTextareaComponent extends ItAbstractFormComponent<string | null | undefined> {
|
|
5
5
|
/**
|
|
6
6
|
* Textarea Rows
|
|
7
7
|
* @default 3
|
|
@@ -14,11 +14,11 @@ export declare class TextareaComponent extends AbstractFormComponent<string> {
|
|
|
14
14
|
/**
|
|
15
15
|
* The input description
|
|
16
16
|
*/
|
|
17
|
-
description
|
|
17
|
+
description: string | undefined;
|
|
18
18
|
/**
|
|
19
19
|
* Return the invalid message string from TranslateService
|
|
20
20
|
*/
|
|
21
21
|
get invalidMessage(): Observable<string>;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItTextareaComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItTextareaComponent, "it-textarea", never, { "rows": { "alias": "rows"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "description": { "alias": "description"; "required": false; }; }, {}, never, ["[error]"], true, never>;
|
|
24
24
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import {
|
|
1
|
+
import { AfterViewInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { ItAbstractComponent } from '../../../abstracts/abstract.component';
|
|
3
|
+
import { ProgressDonut } from 'bootstrap-italia';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
5
|
+
export declare class ItUploadDragDropComponent extends ItAbstractComponent implements AfterViewInit {
|
|
5
6
|
/**
|
|
6
7
|
* The accepted file type to upload <br>
|
|
7
8
|
* Possible values: <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types">MIME Types</a> separated by comma
|
|
@@ -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;
|
|
@@ -37,7 +38,7 @@ export declare class UploadDragDropComponent extends AbstractComponent {
|
|
|
37
38
|
start(file: File): void;
|
|
38
39
|
/**
|
|
39
40
|
* Percentage of upload
|
|
40
|
-
* @param value the percentage
|
|
41
|
+
* @param value the percentage [0 - 100]
|
|
41
42
|
*/
|
|
42
43
|
progress(value: number): void;
|
|
43
44
|
/**
|
|
@@ -48,6 +49,6 @@ export declare class UploadDragDropComponent extends AbstractComponent {
|
|
|
48
49
|
* Reset file uploader
|
|
49
50
|
*/
|
|
50
51
|
reset(): void;
|
|
51
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItUploadDragDropComponent, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItUploadDragDropComponent, "it-upload-drag-drop", ["itUploadDragDrop"], { "accept": { "alias": "accept"; "required": false; }; }, { "fileStartUpload": "fileStartUpload"; }, never, never, true, never>;
|
|
53
54
|
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { BooleanInput } from
|
|
4
|
-
import { UploadFileListItem } from
|
|
2
|
+
import { ItAbstractComponent } 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
|
-
export declare class
|
|
6
|
+
export declare class ItUploadFileListComponent extends ItAbstractComponent implements OnInit, OnChanges {
|
|
7
7
|
/**
|
|
8
8
|
* The list of files to show in list
|
|
9
9
|
*/
|
|
10
10
|
fileList: Array<UploadFileListItem>;
|
|
11
11
|
/**
|
|
12
|
-
* The accepted file type to upload
|
|
12
|
+
* The accepted file type to upload <br>
|
|
13
|
+
* Possible values: <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types">MIME Types</a> separated by comma
|
|
14
|
+
* @example application/pdf,image/png
|
|
13
15
|
* @default *
|
|
14
16
|
*/
|
|
15
17
|
accept: string;
|
|
@@ -20,11 +22,11 @@ export declare class UploadFileListComponent extends AbstractComponent implement
|
|
|
20
22
|
/**
|
|
21
23
|
* If is file list image
|
|
22
24
|
*/
|
|
23
|
-
images
|
|
25
|
+
images: BooleanInput | undefined;
|
|
24
26
|
/**
|
|
25
27
|
* Hide the load button
|
|
26
28
|
*/
|
|
27
|
-
hideLoadButton
|
|
29
|
+
hideLoadButton: BooleanInput | undefined;
|
|
28
30
|
/**
|
|
29
31
|
* Fired when upload new files
|
|
30
32
|
*/
|
|
@@ -52,6 +54,6 @@ export declare class UploadFileListComponent extends AbstractComponent implement
|
|
|
52
54
|
* @param file
|
|
53
55
|
*/
|
|
54
56
|
getFileSize(file: File): string;
|
|
55
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItUploadFileListComponent, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItUploadFileListComponent, "it-upload-file-list[fileList]", never, { "fileList": { "alias": "fileList"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "images": { "alias": "images"; "required": false; }; "hideLoadButton": { "alias": "hideLoadButton"; "required": false; }; }, { "uploadFiles": "uploadFiles"; "deleteItem": "deleteItem"; }, never, never, true, never>;
|
|
57
59
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Location } from '@angular/common';
|
|
2
2
|
import { BooleanInput } from '../../../utils/boolean-input';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class ItBackButtonComponent {
|
|
5
5
|
readonly _location: Location;
|
|
6
6
|
/**
|
|
7
7
|
* Back button style
|
|
@@ -41,7 +41,7 @@ export declare class BackButtonComponent {
|
|
|
41
41
|
/**
|
|
42
42
|
* Go back function
|
|
43
43
|
*/
|
|
44
|
-
goBack(): void;
|
|
45
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
44
|
+
goBack(event: Event): void;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItBackButtonComponent, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItBackButtonComponent, "it-back-button", ["itBackButton"], { "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "showText": { "alias": "showText"; "required": false; }; "backFn": { "alias": "backFn"; "required": false; }; }, {}, never, never, true, never>;
|
|
47
47
|
}
|