design-angular-kit 1.0.0-1 → 1.0.0-3
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 +152 -18
- package/assets/i18n/it.json +81 -0
- package/esm2020/lib/abstracts/abstract-form-component.mjs +165 -0
- package/esm2020/lib/abstracts/abstract.component.mjs +20 -0
- package/esm2020/lib/components/core/accordion/accordion.component.mjs +20 -0
- package/esm2020/lib/components/core/alert/alert.component.mjs +29 -0
- package/esm2020/lib/components/core/badge/badge.directive.mjs +34 -0
- package/esm2020/lib/components/core/button/button.directive.mjs +78 -0
- package/esm2020/lib/components/core/callout/callout.component.mjs +84 -0
- package/esm2020/lib/components/core/card/card.component.mjs +58 -0
- package/esm2020/lib/components/core/carousel/carousel/carousel.component.mjs +66 -0
- package/esm2020/lib/components/core/carousel/carousel-item/carousel-item.component.mjs +14 -0
- package/esm2020/lib/components/core/chip/chip.component.mjs +89 -0
- package/esm2020/lib/components/core/collapse/collapse.component.mjs +96 -0
- package/esm2020/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.mjs +24 -0
- package/esm2020/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.mjs +11 -0
- package/esm2020/lib/components/core/dimmer/dimmer.component.mjs +59 -0
- package/esm2020/lib/components/core/dropdown/dropdown/dropdown.component.mjs +60 -0
- package/esm2020/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +71 -0
- package/esm2020/lib/components/core/forward/forward.directive.mjs +51 -0
- package/esm2020/lib/components/core/link/link.component.mjs +39 -0
- package/esm2020/lib/components/core/list/list/list.component.mjs +13 -0
- package/esm2020/lib/components/core/list/list-item/list-item.component.mjs +36 -0
- package/esm2020/lib/components/core/modal/modal.component.mjs +98 -0
- package/esm2020/lib/components/core/notifications/notifications.component.mjs +66 -0
- package/esm2020/lib/components/core/pagination/pagination.component.mjs +51 -0
- package/esm2020/lib/components/core/popover/popover.directive.mjs +176 -0
- package/esm2020/lib/components/core/progress-bar/progress-bar.component.mjs +34 -0
- package/esm2020/lib/components/core/progress-button/progress-button.component.mjs +27 -0
- package/esm2020/lib/components/core/spinner/spinner.component.mjs +35 -0
- package/esm2020/lib/components/core/tab/tab-container/tab-container.component.mjs +33 -0
- package/esm2020/lib/components/core/tab/tab-item/tab-item.component.mjs +36 -0
- package/esm2020/lib/components/core/table/table.component.mjs +57 -0
- package/esm2020/lib/components/core/tooltip/tooltip.directive.mjs +140 -0
- package/esm2020/lib/components/form/checkbox/checkbox.component.mjs +40 -0
- package/esm2020/lib/components/form/input/input.component.mjs +226 -0
- package/esm2020/lib/components/form/password-input/password-input.component.mjs +112 -0
- package/esm2020/lib/components/form/radio-button/radio-button.component.mjs +53 -0
- package/esm2020/lib/components/form/select/select.component.mjs +62 -0
- package/esm2020/lib/components/form/textarea/textarea.component.mjs +46 -0
- package/esm2020/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +134 -0
- package/esm2020/lib/components/form/upload-file-list/upload-file-list.component.mjs +99 -0
- package/esm2020/lib/components/navigation/back-button/back-button.component.mjs +69 -0
- package/esm2020/lib/components/navigation/back-to-top/back-to-top.component.mjs +39 -0
- package/esm2020/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.mjs +45 -0
- package/esm2020/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.mjs +23 -0
- package/esm2020/lib/components/navigation/header/header.component.mjs +61 -0
- package/esm2020/lib/components/utils/icon/icon.component.mjs +54 -0
- package/esm2020/lib/components/utils/not-found-page/not-found-page.component.mjs +13 -0
- package/esm2020/lib/design-angular-kit.module.mjs +32 -132
- package/esm2020/lib/interfaces/core.mjs +16 -0
- package/esm2020/lib/interfaces/form.mjs +2 -0
- package/esm2020/lib/interfaces/icon.mjs +2 -0
- package/esm2020/lib/modules/components.module.mjs +245 -0
- package/esm2020/lib/pipes/mark-matching-text.pipe.mjs +36 -0
- package/esm2020/lib/services/notifications/notifications.service.mjs +122 -0
- package/esm2020/lib/utils/boolean-input.mjs +15 -0
- package/esm2020/lib/utils/file-utils.mjs +65 -0
- package/esm2020/lib/utils/regex.mjs +26 -0
- package/esm2020/lib/validators/it-validators.mjs +131 -0
- package/esm2020/public_api.mjs +62 -36
- package/fesm2015/design-angular-kit.mjs +2856 -2640
- package/fesm2015/design-angular-kit.mjs.map +1 -1
- package/fesm2020/design-angular-kit.mjs +2837 -2640
- package/fesm2020/design-angular-kit.mjs.map +1 -1
- package/lib/abstracts/abstract-form-component.d.ts +84 -0
- package/lib/abstracts/abstract.component.d.ts +14 -0
- package/lib/components/core/accordion/accordion.component.d.ts +16 -0
- package/lib/components/core/alert/alert.component.d.ts +17 -0
- package/lib/components/core/badge/badge.directive.d.ts +16 -0
- package/lib/components/core/button/button.directive.d.ts +38 -0
- package/lib/components/core/callout/callout.component.d.ts +47 -0
- package/lib/components/core/card/card.component.d.ts +41 -0
- package/lib/components/core/carousel/carousel/carousel.component.d.ts +46 -0
- package/lib/components/core/carousel/carousel-item/carousel-item.component.d.ts +10 -0
- package/lib/components/core/chip/chip.component.d.ts +62 -0
- package/lib/components/core/collapse/collapse.component.d.ts +59 -0
- package/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.d.ts +12 -0
- package/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.d.ts +5 -0
- package/lib/components/core/dimmer/dimmer.component.d.ts +24 -0
- package/lib/components/core/dropdown/dropdown/dropdown.component.d.ts +43 -0
- package/lib/components/core/dropdown/dropdown-item/dropdown-item.component.d.ts +44 -0
- package/lib/components/core/forward/forward.directive.d.ts +14 -0
- package/lib/components/core/link/link.component.d.ts +34 -0
- package/lib/components/core/list/list/list.component.d.ts +10 -0
- package/lib/components/core/list/list-item/list-item.component.d.ts +24 -0
- package/lib/components/core/modal/modal.component.d.ts +59 -0
- package/lib/components/core/notifications/notifications.component.d.ts +30 -0
- package/lib/components/core/pagination/pagination.component.d.ts +31 -0
- package/lib/components/core/popover/popover.directive.d.ts +97 -0
- package/lib/components/core/progress-bar/progress-bar.component.d.ts +28 -0
- package/lib/components/core/progress-button/progress-button.component.d.ts +22 -0
- package/lib/components/core/spinner/spinner.component.d.ts +21 -0
- package/lib/components/core/tab/tab-container/tab-container.component.d.ts +28 -0
- package/lib/components/core/tab/tab-item/tab-item.component.d.ts +34 -0
- package/lib/components/core/table/table.component.d.ts +54 -0
- package/lib/components/core/tooltip/tooltip.directive.d.ts +80 -0
- package/lib/components/form/checkbox/checkbox.component.d.ts +30 -0
- package/lib/components/form/input/input.component.d.ts +94 -0
- package/lib/components/form/password-input/password-input.component.d.ts +54 -0
- package/lib/components/form/radio-button/radio-button.component.d.ts +29 -0
- package/lib/components/form/select/select.component.d.ts +30 -0
- package/lib/components/form/textarea/textarea.component.d.ts +24 -0
- package/lib/components/form/upload-drag-drop/upload-drag-drop.component.d.ts +53 -0
- package/lib/components/form/upload-file-list/upload-file-list.component.d.ts +57 -0
- package/lib/components/navigation/back-button/back-button.component.d.ts +47 -0
- package/lib/components/navigation/back-to-top/back-to-top.component.d.ts +27 -0
- package/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +30 -0
- package/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.d.ts +22 -0
- package/lib/components/navigation/header/header.component.d.ts +28 -0
- package/lib/components/utils/icon/icon.component.d.ts +40 -0
- package/lib/components/utils/not-found-page/not-found-page.component.d.ts +5 -0
- package/lib/design-angular-kit.module.d.ts +4 -24
- package/lib/interfaces/core.d.ts +36 -0
- package/lib/interfaces/form.d.ts +61 -0
- package/lib/interfaces/icon.d.ts +3 -0
- package/lib/modules/components.module.d.ts +58 -0
- package/lib/{form-input → pipes}/mark-matching-text.pipe.d.ts +0 -0
- package/lib/services/notifications/notifications.service.d.ts +63 -0
- package/lib/utils/boolean-input.d.ts +11 -0
- package/lib/utils/file-utils.d.ts +27 -0
- package/lib/utils/regex.d.ts +25 -0
- package/lib/validators/it-validators.d.ts +58 -0
- package/package.json +20 -13
- package/public_api.d.ts +54 -35
- package/esm2020/lib/badge/badge.directive.mjs +0 -83
- package/esm2020/lib/breadcrumb/breadcrumb-item.component.mjs +0 -66
- package/esm2020/lib/breadcrumb/breadcrumb.component.mjs +0 -89
- package/esm2020/lib/button/button.directive.mjs +0 -185
- package/esm2020/lib/button/button.module.mjs +0 -18
- package/esm2020/lib/checkbox/checkbox.component.mjs +0 -138
- package/esm2020/lib/collapse/collapse-group.component.mjs +0 -57
- package/esm2020/lib/collapse/collapse-item.component.mjs +0 -79
- package/esm2020/lib/collapse/collapse.config.mjs +0 -12
- package/esm2020/lib/collapse/collapse.directive.mjs +0 -55
- package/esm2020/lib/collapse/collapse.module.mjs +0 -22
- package/esm2020/lib/dropdown/dropdown-divider.component.mjs +0 -11
- package/esm2020/lib/dropdown/dropdown-item.component.mjs +0 -97
- package/esm2020/lib/dropdown/dropdown.component.mjs +0 -143
- package/esm2020/lib/dropdown/dropdown.config.mjs +0 -12
- package/esm2020/lib/dropdown/dropdown.directive.mjs +0 -156
- package/esm2020/lib/dropdown/dropdown.module.mjs +0 -25
- package/esm2020/lib/enums/icons.enum.mjs +0 -27
- package/esm2020/lib/form-input/form-input-password.utils.mjs +0 -154
- package/esm2020/lib/form-input/form-input.component.mjs +0 -495
- package/esm2020/lib/form-input/it-prefix.directive.mjs +0 -13
- package/esm2020/lib/form-input/it-suffix.directive.mjs +0 -13
- package/esm2020/lib/form-input/it-text-prefix.directive.mjs +0 -13
- package/esm2020/lib/form-input/it-text-suffix.directive.mjs +0 -13
- package/esm2020/lib/form-input/mark-matching-text.pipe.mjs +0 -36
- package/esm2020/lib/icon/icon.component.mjs +0 -87
- package/esm2020/lib/icon/icon.module.mjs +0 -18
- package/esm2020/lib/models/Alignment.mjs +0 -15
- package/esm2020/lib/models/ButtonSize.mjs +0 -15
- package/esm2020/lib/models/InputType.mjs +0 -44
- package/esm2020/lib/models/ThemeColor.mjs +0 -30
- package/esm2020/lib/popover/popover.config.mjs +0 -17
- package/esm2020/lib/popover/popover.directive.mjs +0 -33
- package/esm2020/lib/popover/popover.module.mjs +0 -19
- package/esm2020/lib/progress-bar/progress-bar.component.mjs +0 -98
- package/esm2020/lib/radio/radio.component.mjs +0 -287
- package/esm2020/lib/radio/unique-selection-dispatcher.mjs +0 -55
- package/esm2020/lib/tabs/tab-group.component.mjs +0 -177
- package/esm2020/lib/tabs/tab.component.mjs +0 -73
- package/esm2020/lib/tabs/tabs.module.mjs +0 -20
- package/esm2020/lib/toggle/toggle.component.mjs +0 -86
- package/esm2020/lib/tooltip/tooltip.config.mjs +0 -17
- package/esm2020/lib/tooltip/tooltip.directive.mjs +0 -43
- package/esm2020/lib/tooltip/tooltip.module.mjs +0 -19
- package/esm2020/lib/util/focus-mouse.directive.mjs +0 -32
- package/esm2020/lib/util/util.mjs +0 -12
- package/esm2020/lib/util/utils.module.mjs +0 -16
- package/lib/badge/badge.directive.d.ts +0 -33
- package/lib/breadcrumb/breadcrumb-item.component.d.ts +0 -33
- package/lib/breadcrumb/breadcrumb.component.d.ts +0 -33
- package/lib/button/button.directive.d.ts +0 -72
- package/lib/button/button.module.d.ts +0 -8
- package/lib/checkbox/checkbox.component.d.ts +0 -61
- package/lib/collapse/collapse-group.component.d.ts +0 -16
- package/lib/collapse/collapse-item.component.d.ts +0 -46
- package/lib/collapse/collapse.config.d.ts +0 -6
- package/lib/collapse/collapse.directive.d.ts +0 -25
- package/lib/collapse/collapse.module.d.ts +0 -12
- package/lib/dropdown/dropdown-divider.component.d.ts +0 -5
- package/lib/dropdown/dropdown-item.component.d.ts +0 -56
- package/lib/dropdown/dropdown.component.d.ts +0 -65
- package/lib/dropdown/dropdown.config.d.ts +0 -6
- package/lib/dropdown/dropdown.directive.d.ts +0 -77
- package/lib/dropdown/dropdown.module.d.ts +0 -15
- package/lib/enums/icons.enum.d.ts +0 -23
- package/lib/form-input/form-input-password.utils.d.ts +0 -45
- package/lib/form-input/form-input.component.d.ts +0 -283
- package/lib/form-input/it-prefix.directive.d.ts +0 -5
- package/lib/form-input/it-suffix.directive.d.ts +0 -5
- package/lib/form-input/it-text-prefix.directive.d.ts +0 -5
- package/lib/form-input/it-text-suffix.directive.d.ts +0 -5
- package/lib/icon/icon.component.d.ts +0 -34
- package/lib/icon/icon.module.d.ts +0 -8
- package/lib/models/Alignment.d.ts +0 -12
- package/lib/models/ButtonSize.d.ts +0 -11
- package/lib/models/InputType.d.ts +0 -36
- package/lib/models/ThemeColor.d.ts +0 -21
- package/lib/popover/popover.config.d.ts +0 -11
- package/lib/popover/popover.directive.d.ts +0 -20
- package/lib/popover/popover.module.d.ts +0 -9
- package/lib/progress-bar/progress-bar.component.d.ts +0 -55
- package/lib/radio/radio.component.d.ts +0 -116
- package/lib/radio/unique-selection-dispatcher.d.ts +0 -36
- package/lib/tabs/tab-group.component.d.ts +0 -71
- package/lib/tabs/tab.component.d.ts +0 -44
- package/lib/tabs/tabs.module.d.ts +0 -10
- package/lib/toggle/toggle.component.d.ts +0 -46
- package/lib/tooltip/tooltip.config.d.ts +0 -11
- package/lib/tooltip/tooltip.directive.d.ts +0 -27
- package/lib/tooltip/tooltip.module.d.ts +0 -9
- package/lib/util/focus-mouse.directive.d.ts +0 -13
- package/lib/util/util.d.ts +0 -5
- package/lib/util/utils.module.d.ts +0 -7
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
import { AfterContentInit, EventEmitter, ChangeDetectorRef, QueryList, OnInit } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import { ItPrefixDirective } from './it-prefix.directive';
|
|
4
|
-
import { ItSuffixDirective } from './it-suffix.directive';
|
|
5
|
-
import { ItTextPrefixDirective } from './it-text-prefix.directive';
|
|
6
|
-
import { ItTextSuffixDirective } from './it-text-suffix.directive';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class FormInputChange {
|
|
9
|
-
source: FormInputComponent;
|
|
10
|
-
value: any;
|
|
11
|
-
constructor(source: FormInputComponent, value: any);
|
|
12
|
-
}
|
|
13
|
-
export interface PasswordStrengthMeterConfig {
|
|
14
|
-
/** Testo per il punteggio di forza della password minimo */
|
|
15
|
-
shortPass: string;
|
|
16
|
-
/** Testo per punteggio di forza della password basso */
|
|
17
|
-
badPass: string;
|
|
18
|
-
/** Testo per punteggio di forza della password buono */
|
|
19
|
-
goodPass: string;
|
|
20
|
-
/** Testo per il punteggio di forza della password massimo */
|
|
21
|
-
strongPass: string;
|
|
22
|
-
/** Testo di aiuto */
|
|
23
|
-
enterPass: string;
|
|
24
|
-
/** Testo per avvertire che il CAPS LOCK è inserito */
|
|
25
|
-
alertCaps: string;
|
|
26
|
-
/** Lunghezza minima per il calcolo della forza della password (soglia password molto debole) */
|
|
27
|
-
showText: boolean;
|
|
28
|
-
/** Attiva/disattiva la visibilità dei messaggi di errore */
|
|
29
|
-
minimumLength: number;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Elemento disponibile per l'autocompletamento del it-form-input
|
|
33
|
-
*/
|
|
34
|
-
export interface AutoCompleteItem {
|
|
35
|
-
/** Valore voce di autocompletamento */
|
|
36
|
-
value: string;
|
|
37
|
-
/** Opzionale. Path in cui ricercare l'immagine dell'avatar da posizionare a sinistra della voce di autocompletamento */
|
|
38
|
-
avatarSrcPath?: string;
|
|
39
|
-
/** Opzionale. Testo in alternativa dell'avatar per accessibilità */
|
|
40
|
-
avatarAltText?: string;
|
|
41
|
-
/** Opzionale. Icona posizionata a sinistra della voce di autocompletamento */
|
|
42
|
-
icon?: string;
|
|
43
|
-
/** Opzionale. Label posizionata a destra della voce di autocompletamento */
|
|
44
|
-
label?: string;
|
|
45
|
-
/** Opzionale. Link relativo all'elemento */
|
|
46
|
-
link?: string;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Elementi e stili per la creazione di input accessibili e responsivi.
|
|
50
|
-
*/
|
|
51
|
-
export declare class FormInputComponent implements OnInit, AfterContentInit, ControlValueAccessor {
|
|
52
|
-
private _changeDetector;
|
|
53
|
-
private _formInputPasswordUtils;
|
|
54
|
-
_prefixChildren: QueryList<ItPrefixDirective>;
|
|
55
|
-
_textPrefixChildren: QueryList<ItTextPrefixDirective>;
|
|
56
|
-
_suffixChildren: QueryList<ItSuffixDirective>;
|
|
57
|
-
_textSuffixChildren: QueryList<ItTextSuffixDirective>;
|
|
58
|
-
INPUT_TYPES: {
|
|
59
|
-
TEXT: string;
|
|
60
|
-
EMAIL: string;
|
|
61
|
-
PASSWORD: string;
|
|
62
|
-
NUMBER: string;
|
|
63
|
-
SEARCH: string;
|
|
64
|
-
TIME: string;
|
|
65
|
-
DATE: string;
|
|
66
|
-
};
|
|
67
|
-
private _inputElement;
|
|
68
|
-
/**
|
|
69
|
-
* Opzionale. Indica se mostrare gli input readonly nella forma stilizzata come testo normale
|
|
70
|
-
*/
|
|
71
|
-
get readonlyPlainText(): boolean;
|
|
72
|
-
set readonlyPlainText(value: boolean);
|
|
73
|
-
private _readonlyPlainText;
|
|
74
|
-
/**
|
|
75
|
-
* Opzionale. Indica se abilitare il controllo sulla sicurezza della password
|
|
76
|
-
*/
|
|
77
|
-
get enablePasswordStrengthMeter(): boolean;
|
|
78
|
-
set enablePasswordStrengthMeter(value: boolean);
|
|
79
|
-
private _enablePasswordStrengthMeter;
|
|
80
|
-
/**
|
|
81
|
-
* Punteggio di sicurezza calcolato in base alla password immessa se enablePasswordStrengthMeter ha valore true
|
|
82
|
-
*/
|
|
83
|
-
passwordScore: number;
|
|
84
|
-
/**
|
|
85
|
-
* Dimensione dell'input di autocomplete. Di default ha dimensione standard.
|
|
86
|
-
*/
|
|
87
|
-
autocompleteWrapperSize: 'big' | 'default';
|
|
88
|
-
private _passwordStrengthMeterConfig;
|
|
89
|
-
set passwordStrengthMeterConfig(newConfig: PasswordStrengthMeterConfig);
|
|
90
|
-
get passwordStrengthMeterConfig(): PasswordStrengthMeterConfig;
|
|
91
|
-
/**
|
|
92
|
-
* Indica l'id dell'elemento HTML
|
|
93
|
-
*/
|
|
94
|
-
get id(): string;
|
|
95
|
-
set id(value: string);
|
|
96
|
-
private _id;
|
|
97
|
-
/**
|
|
98
|
-
* Indica l'attributo name del componente HTML
|
|
99
|
-
*/
|
|
100
|
-
get name(): string;
|
|
101
|
-
set name(value: string);
|
|
102
|
-
private _name;
|
|
103
|
-
/**
|
|
104
|
-
* Indica il tipo di campo. Puo' assumere i valori text, email, password e number
|
|
105
|
-
*/
|
|
106
|
-
get type(): string;
|
|
107
|
-
set type(value: string);
|
|
108
|
-
private _type;
|
|
109
|
-
/**
|
|
110
|
-
* Indica il valore della label da visualizzare
|
|
111
|
-
*/
|
|
112
|
-
get label(): string;
|
|
113
|
-
set label(value: string);
|
|
114
|
-
private _label;
|
|
115
|
-
/**
|
|
116
|
-
* Indica se la label dell'input deve essere visualizzata dall'utente o solamente visibile per lo screen reader
|
|
117
|
-
*/
|
|
118
|
-
get labelVisuallyHidden(): boolean;
|
|
119
|
-
set labelVisuallyHidden(value: boolean);
|
|
120
|
-
private _labelVisuallyHidden;
|
|
121
|
-
/**
|
|
122
|
-
* Indica il valore che avrà l'attributo HTML "min" per l'input di tipo number
|
|
123
|
-
*/
|
|
124
|
-
get min(): number;
|
|
125
|
-
set min(value: number);
|
|
126
|
-
private _min;
|
|
127
|
-
/**
|
|
128
|
-
* Indica il valore che avrà l'attributo HTML "max" per l'input di tipo number
|
|
129
|
-
*/
|
|
130
|
-
get max(): number;
|
|
131
|
-
set max(value: number);
|
|
132
|
-
private _max;
|
|
133
|
-
/**
|
|
134
|
-
* Indica il valore che avrà l'attributo HTML "step" per l'input di tipo number
|
|
135
|
-
*/
|
|
136
|
-
get step(): number;
|
|
137
|
-
set step(value: number);
|
|
138
|
-
private _step;
|
|
139
|
-
/**
|
|
140
|
-
* Indica il testo di aiuto sotto la input
|
|
141
|
-
*/
|
|
142
|
-
get note(): string;
|
|
143
|
-
set note(value: string);
|
|
144
|
-
private _note;
|
|
145
|
-
/**
|
|
146
|
-
* Indica il testo presente nel campo vuoto. Nel caso sia già presente la label, il placeholder non verrà mostrato
|
|
147
|
-
*/
|
|
148
|
-
get placeholder(): string;
|
|
149
|
-
set placeholder(value: string);
|
|
150
|
-
private _placeholder;
|
|
151
|
-
/**
|
|
152
|
-
* Indica l'icona da visualizzare a sinistra del campo di input
|
|
153
|
-
*/
|
|
154
|
-
get icon(): string;
|
|
155
|
-
set icon(value: string);
|
|
156
|
-
private _icon;
|
|
157
|
-
/**
|
|
158
|
-
* Opzionale.
|
|
159
|
-
* Indica se il campo in questione è disabilitato.
|
|
160
|
-
* Accetta una espressione booleana o può essere usato come attributo senza valore
|
|
161
|
-
*/
|
|
162
|
-
get disabled(): boolean;
|
|
163
|
-
set disabled(value: boolean);
|
|
164
|
-
private _disabled;
|
|
165
|
-
/**
|
|
166
|
-
* Opzionale.
|
|
167
|
-
* Nel caso di input numerico, indica se il campo è una valuta.
|
|
168
|
-
* Accetta una espressione booleana o può essere usato come attributo senza valore
|
|
169
|
-
*/
|
|
170
|
-
get currency(): boolean;
|
|
171
|
-
set currency(value: boolean);
|
|
172
|
-
private _currency;
|
|
173
|
-
/**
|
|
174
|
-
* Opzionale.
|
|
175
|
-
* Nel caso di input numerico, indica se il campo è una percentuale.
|
|
176
|
-
* Accetta una espressione booleana o può essere usato come attributo senza valore
|
|
177
|
-
*/
|
|
178
|
-
get percentage(): boolean;
|
|
179
|
-
set percentage(value: boolean);
|
|
180
|
-
private _percentage;
|
|
181
|
-
/**
|
|
182
|
-
* Opzionale.
|
|
183
|
-
* Nel caso di input numerico, indica se il campo si deve ridimensionare automaticamente a seconda del valore contenuto in esso.
|
|
184
|
-
* Accetta una espressione booleana o può essere usato come attributo senza valore
|
|
185
|
-
*/
|
|
186
|
-
get adaptive(): boolean;
|
|
187
|
-
set adaptive(value: boolean);
|
|
188
|
-
private _adaptive;
|
|
189
|
-
/**
|
|
190
|
-
* Opzionale.
|
|
191
|
-
* Indica se il campo in questione è di sola lettura.
|
|
192
|
-
* Accetta una espressione booleana o può essere usato come attributo senza valore
|
|
193
|
-
*/
|
|
194
|
-
get readonly(): boolean;
|
|
195
|
-
set readonly(value: boolean);
|
|
196
|
-
private _readonly;
|
|
197
|
-
get value(): any;
|
|
198
|
-
set value(value: any);
|
|
199
|
-
/**
|
|
200
|
-
* Opzionale.
|
|
201
|
-
* Disponibile solo se il type è search.
|
|
202
|
-
* Indica la lista di elementi ricercabili su cui basare il sistema di autocompletamento della input
|
|
203
|
-
*/
|
|
204
|
-
get autoCompleteData(): Array<AutoCompleteItem>;
|
|
205
|
-
set autoCompleteData(value: Array<AutoCompleteItem>);
|
|
206
|
-
private _autoCompleteData;
|
|
207
|
-
/**
|
|
208
|
-
* Evento emesso quando il valore dell'input cambia.
|
|
209
|
-
* Gli eventi di change sono emessi soltanto quando il valore cambia a causa dell'interazione dell'utente
|
|
210
|
-
* con il campo d'input.
|
|
211
|
-
*/
|
|
212
|
-
readonly change: EventEmitter<FormInputChange>;
|
|
213
|
-
/**
|
|
214
|
-
* Opzionale.
|
|
215
|
-
* Indica se disabilitare l'avviso di CAPS LOCK attivo
|
|
216
|
-
* Accetta una espressione booleana o può essere usato come attributo senza valore
|
|
217
|
-
*/
|
|
218
|
-
get disableCapsLockAlert(): boolean;
|
|
219
|
-
set disableCapsLockAlert(value: boolean);
|
|
220
|
-
private _disableCapsLockAlert;
|
|
221
|
-
/**
|
|
222
|
-
* Indica se è attivo il CAPS LOCK
|
|
223
|
-
*/
|
|
224
|
-
isCapsLockActive: boolean;
|
|
225
|
-
/**
|
|
226
|
-
* La label da mostrare in caso sia attivo il CAPS LOCK
|
|
227
|
-
*/
|
|
228
|
-
capsLockActiveLabel: string;
|
|
229
|
-
get isLabelActive(): boolean;
|
|
230
|
-
set isLabelActive(value: boolean);
|
|
231
|
-
private _isLabelActive;
|
|
232
|
-
get isPasswordMode(): boolean;
|
|
233
|
-
set isPasswordMode(value: boolean);
|
|
234
|
-
private _isPasswordMode;
|
|
235
|
-
get isPasswordVisible(): boolean;
|
|
236
|
-
set isPasswordVisible(value: boolean);
|
|
237
|
-
private _isPasswordVisible;
|
|
238
|
-
showAutocompletion: boolean;
|
|
239
|
-
private _isInitialized;
|
|
240
|
-
private _controlValueAccessorChangeFn;
|
|
241
|
-
private _onTouched;
|
|
242
|
-
/** Indica se è stato effettuato il focus sul campo di input */
|
|
243
|
-
focus: boolean;
|
|
244
|
-
private _emitChangeEvent;
|
|
245
|
-
ngOnInit(): void;
|
|
246
|
-
writeValue(value: any): void;
|
|
247
|
-
registerOnChange(fn: (value: any) => void): void;
|
|
248
|
-
registerOnTouched(fn: any): void;
|
|
249
|
-
constructor(_changeDetector: ChangeDetectorRef);
|
|
250
|
-
ngAfterContentInit(): void;
|
|
251
|
-
onChange(): void;
|
|
252
|
-
onInput(): void;
|
|
253
|
-
onFocus(): void;
|
|
254
|
-
onBlur(): void;
|
|
255
|
-
get noteId(): string;
|
|
256
|
-
getRelatedEntries(): any[];
|
|
257
|
-
isAutocompletable(): boolean;
|
|
258
|
-
onEntryClick(entry: AutoCompleteItem, event: Event): void;
|
|
259
|
-
/**
|
|
260
|
-
* indica se il campo di input è composto da altri elementi accessori come
|
|
261
|
-
* icone o bottoni da posizionare adiacenti al campo di input
|
|
262
|
-
*/
|
|
263
|
-
get isInputGroup(): boolean;
|
|
264
|
-
/**
|
|
265
|
-
* Ricalcola il punteggio di sicurezza in base al valore corrente
|
|
266
|
-
*/
|
|
267
|
-
recalculatePasswordStrength(): void;
|
|
268
|
-
get passwordScoreText(): string;
|
|
269
|
-
get passwordScoreColor(): string;
|
|
270
|
-
get valueLength(): number;
|
|
271
|
-
onKeyUp(event: KeyboardEvent): void;
|
|
272
|
-
autocompleteItemTrackByValueFn(index: number, item: AutoCompleteItem): string;
|
|
273
|
-
/**
|
|
274
|
-
* Incrementa il valore dell'input numerico di tanto quanto vale lo step
|
|
275
|
-
*/
|
|
276
|
-
incrementNumberValue(): void;
|
|
277
|
-
/**
|
|
278
|
-
* Decrementa il valore dell'input numerico di tanto quanto vale lo step
|
|
279
|
-
*/
|
|
280
|
-
decrementNumberValue(): void;
|
|
281
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormInputComponent, never>;
|
|
282
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormInputComponent, "it-input", never, { "readonlyPlainText": "readonlyPlainText"; "enablePasswordStrengthMeter": "enablePasswordStrengthMeter"; "autocompleteWrapperSize": "autocompleteWrapperSize"; "passwordStrengthMeterConfig": "passwordStrengthMeterConfig"; "id": "id"; "name": "name"; "type": "type"; "label": "label"; "labelVisuallyHidden": "labelVisuallyHidden"; "min": "min"; "max": "max"; "step": "step"; "note": "note"; "placeholder": "placeholder"; "icon": "icon"; "disabled": "disabled"; "currency": "currency"; "percentage": "percentage"; "adaptive": "adaptive"; "readonly": "readonly"; "autoCompleteData": "autoCompleteData"; "disableCapsLockAlert": "disableCapsLockAlert"; "capsLockActiveLabel": "capsLockActiveLabel"; }, { "change": "change"; }, ["_prefixChildren", "_textPrefixChildren", "_suffixChildren", "_textSuffixChildren"], ["[itTextPrefix]", "[itPrefix]", "[itTextSuffix]", "[itSuffix]"], false>;
|
|
283
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ItTextPrefixDirective {
|
|
3
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItTextPrefixDirective, never>;
|
|
4
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ItTextPrefixDirective, "[itTextPrefix]", never, {}, {}, never, never, false>;
|
|
5
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ItTextSuffixDirective {
|
|
3
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItTextSuffixDirective, never>;
|
|
4
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ItTextSuffixDirective, "[itTextSuffix]", never, {}, {}, never, never, false>;
|
|
5
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { IconBackgroundColorEnum, IconColorEnum, IconSizeEnum } from '../enums/icons.enum';
|
|
3
|
-
import { HorizontalAlign } from '../models/Alignment';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class IconComponent {
|
|
6
|
-
private _cdr;
|
|
7
|
-
private static readonly ICON_BASE_URL;
|
|
8
|
-
constructor(_cdr: ChangeDetectorRef);
|
|
9
|
-
changeColor(color: IconColorEnum): void;
|
|
10
|
-
rounded: boolean;
|
|
11
|
-
roundedColor: IconColorEnum;
|
|
12
|
-
get roundedColorClass(): string;
|
|
13
|
-
set icon(newIcon: string);
|
|
14
|
-
protected iconName: string;
|
|
15
|
-
wai: string;
|
|
16
|
-
size: IconSizeEnum;
|
|
17
|
-
color: IconColorEnum;
|
|
18
|
-
bgColor: IconBackgroundColorEnum;
|
|
19
|
-
padded: boolean;
|
|
20
|
-
expand: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Allineamento orizzontale dell'icona rispetto al contenitor: 'left' | 'right'
|
|
23
|
-
*/
|
|
24
|
-
position: HorizontalAlign;
|
|
25
|
-
private _verticalAlign;
|
|
26
|
-
/**
|
|
27
|
-
* Allineamento verticale dell'icona rispetto al contenitore: 'top' | 'middle' | 'bottom'
|
|
28
|
-
*/
|
|
29
|
-
get verticalAlign(): any;
|
|
30
|
-
set verticalAlign(value: any);
|
|
31
|
-
svgPath: string;
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "it-icon", never, { "rounded": "rounded"; "roundedColor": "roundedColor"; "icon": "icon"; "wai": "wai"; "size": "size"; "color": "color"; "bgColor": "bgColor"; "padded": "padded"; "expand": "expand"; "position": "position"; "verticalAlign": "verticalAlign"; }, {}, never, never, false>;
|
|
34
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./icon.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
export declare class ItIconModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItIconModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ItIconModule, [typeof i1.IconComponent], [typeof i2.CommonModule], [typeof i1.IconComponent]>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ItIconModule>;
|
|
8
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as t from 'io-ts';
|
|
2
|
-
export declare enum VerticalAlign {
|
|
3
|
-
top = "top",
|
|
4
|
-
middle = "middle",
|
|
5
|
-
bottom = "bottom"
|
|
6
|
-
}
|
|
7
|
-
export declare enum HorizontalAlign {
|
|
8
|
-
left = "left",
|
|
9
|
-
right = "right"
|
|
10
|
-
}
|
|
11
|
-
export declare const HORIZONTAL_ALIGN: t.KeyofC<typeof HorizontalAlign>;
|
|
12
|
-
export declare const VERTICAL_ALIGN: t.KeyofC<typeof VerticalAlign>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as t from 'io-ts';
|
|
2
|
-
export declare const InputType: t.KeyofC<{
|
|
3
|
-
text: any;
|
|
4
|
-
email: any;
|
|
5
|
-
password: any;
|
|
6
|
-
number: any;
|
|
7
|
-
time: any;
|
|
8
|
-
search: any;
|
|
9
|
-
date: any;
|
|
10
|
-
radio: any;
|
|
11
|
-
checkbox: any;
|
|
12
|
-
textarea: any;
|
|
13
|
-
button: any;
|
|
14
|
-
reset: any;
|
|
15
|
-
submit: any;
|
|
16
|
-
'datetime-local': any;
|
|
17
|
-
hidden: any;
|
|
18
|
-
image: any;
|
|
19
|
-
month: any;
|
|
20
|
-
range: any;
|
|
21
|
-
tel: any;
|
|
22
|
-
url: any;
|
|
23
|
-
week: any;
|
|
24
|
-
datetime: any;
|
|
25
|
-
color: any;
|
|
26
|
-
file: any;
|
|
27
|
-
}>;
|
|
28
|
-
export declare const INPUT_TYPES: {
|
|
29
|
-
TEXT: string;
|
|
30
|
-
EMAIL: string;
|
|
31
|
-
PASSWORD: string;
|
|
32
|
-
NUMBER: string;
|
|
33
|
-
SEARCH: string;
|
|
34
|
-
TIME: string;
|
|
35
|
-
DATE: string;
|
|
36
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as t from 'io-ts';
|
|
2
|
-
export declare const ThemeColor: t.KeyofC<{
|
|
3
|
-
primary: any;
|
|
4
|
-
secondary: any;
|
|
5
|
-
danger: any;
|
|
6
|
-
warning: any;
|
|
7
|
-
info: any;
|
|
8
|
-
success: any;
|
|
9
|
-
light: any;
|
|
10
|
-
dark: any;
|
|
11
|
-
}>;
|
|
12
|
-
export declare const THEME_COLORS: {
|
|
13
|
-
PRIMARY: string;
|
|
14
|
-
SECONDARY: string;
|
|
15
|
-
DANGER: string;
|
|
16
|
-
WARNING: string;
|
|
17
|
-
INFO: string;
|
|
18
|
-
SUCCESS: string;
|
|
19
|
-
LIGHT: string;
|
|
20
|
-
DARK: string;
|
|
21
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { NgbPopoverConfig } from '@ng-bootstrap/ng-bootstrap';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Servizio di configurazione per la direttiva ItPopover.
|
|
5
|
-
* Il servizio può essere iniettato, tipicamente in un root component, per impostare i valori delle proprietà in
|
|
6
|
-
* modo tale da fornire i valori di default per tutti i popover utilizzati in un'applicazione.
|
|
7
|
-
*/
|
|
8
|
-
export declare class ItPopoverConfig extends NgbPopoverConfig {
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItPopoverConfig, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ItPopoverConfig>;
|
|
11
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { OnInit, OnDestroy, OnChanges, Injector, Renderer2, ElementRef, TemplateRef, ViewContainerRef, NgZone, ChangeDetectorRef, ApplicationRef } from '@angular/core';
|
|
2
|
-
import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';
|
|
3
|
-
import { ItPopoverConfig } from './popover.config';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* A lightweight and extensible directive for fancy popover creation.
|
|
7
|
-
*/
|
|
8
|
-
export declare class ItPopover extends NgbPopover implements OnInit, OnDestroy, OnChanges {
|
|
9
|
-
/**
|
|
10
|
-
* The string content or a `TemplateRef` for the content to be displayed in the popover.
|
|
11
|
-
*
|
|
12
|
-
* If the title and the content are falsy, the popover won't open.
|
|
13
|
-
*/
|
|
14
|
-
itPopover: string | TemplateRef<any> | null | undefined;
|
|
15
|
-
constructor(_elementRef: ElementRef<HTMLElement>, _renderer: Renderer2, injector: Injector, viewContainerRef: ViewContainerRef, config: ItPopoverConfig, _ngZone: NgZone, _document: any, _changeDetector: ChangeDetectorRef, applicationRef: ApplicationRef);
|
|
16
|
-
ngOnInit(): void;
|
|
17
|
-
ngOnDestroy(): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItPopover, never>;
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ItPopover, "[itPopover]", ["itPopover"], { "itPopover": "itPopover"; }, {}, never, never, false>;
|
|
20
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./popover.directive";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "@ng-bootstrap/ng-bootstrap";
|
|
5
|
-
export declare class ItPopoverModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItPopoverModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ItPopoverModule, [typeof i1.ItPopover], [typeof i2.CommonModule, typeof i3.NgbPopoverModule], [typeof i1.ItPopover]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ItPopoverModule>;
|
|
9
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
/**
|
|
3
|
-
* Una barra di avanzamento con design bootstrap italia.
|
|
4
|
-
*/
|
|
5
|
-
export declare class ProgressBarComponent {
|
|
6
|
-
static readonly PROGRESS_BAR_DEFAULT_MIN = 0;
|
|
7
|
-
static readonly PROGRESS_BAR_DEFAULT_MAX = 100;
|
|
8
|
-
static readonly PROGRESS_BAR_DEFAULT_VALUE = 0;
|
|
9
|
-
static readonly PROGRESS_BAR_DEFAULT_LABEL = "";
|
|
10
|
-
progressbarId: string;
|
|
11
|
-
/**
|
|
12
|
-
* Il valore minimo della barra di avanzamento.
|
|
13
|
-
*/
|
|
14
|
-
get min(): number;
|
|
15
|
-
set min(v: number);
|
|
16
|
-
private _min;
|
|
17
|
-
/**
|
|
18
|
-
* Il valore massimo della barra di avanzamento.
|
|
19
|
-
*/
|
|
20
|
-
get max(): number;
|
|
21
|
-
set max(v: number);
|
|
22
|
-
private _max;
|
|
23
|
-
/**
|
|
24
|
-
* L'attuale valore della barra di avanzamento.
|
|
25
|
-
*/
|
|
26
|
-
get value(): number;
|
|
27
|
-
set value(v: number);
|
|
28
|
-
private _value;
|
|
29
|
-
/**
|
|
30
|
-
* L'etichetta della barra di avanzamento.
|
|
31
|
-
*/
|
|
32
|
-
get label(): string;
|
|
33
|
-
set label(v: string);
|
|
34
|
-
private _label;
|
|
35
|
-
get indeterminate(): boolean;
|
|
36
|
-
set indeterminate(value: boolean);
|
|
37
|
-
private _indeterminate;
|
|
38
|
-
get indeterminateHiddenText(): string;
|
|
39
|
-
set indeterminateHiddenText(v: string);
|
|
40
|
-
private _indeterminateHiddenText;
|
|
41
|
-
/**
|
|
42
|
-
* Il colore della barra di avanzamento.
|
|
43
|
-
*/
|
|
44
|
-
get color(): any;
|
|
45
|
-
set color(value: any);
|
|
46
|
-
private _color;
|
|
47
|
-
valuePercentage(): number;
|
|
48
|
-
pgStyle(): {
|
|
49
|
-
width: string;
|
|
50
|
-
};
|
|
51
|
-
get progressBarClass(): Set<string>;
|
|
52
|
-
constructor();
|
|
53
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
|
|
54
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent, "it-progress-bar", never, { "min": "min"; "max": "max"; "value": "value"; "label": "label"; "indeterminate": "indeterminate"; "indeterminateHiddenText": "indeterminateHiddenText"; "color": "color"; }, {}, never, never, false>;
|
|
55
|
-
}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, ChangeDetectorRef, AfterContentInit, QueryList, OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import { UniqueSelectionDispatcher } from './unique-selection-dispatcher';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class RadioChange {
|
|
6
|
-
source: RadioButtonComponent;
|
|
7
|
-
value: any;
|
|
8
|
-
constructor(source: RadioButtonComponent, value: any);
|
|
9
|
-
}
|
|
10
|
-
export declare class RadioGroupDirective implements AfterContentInit, ControlValueAccessor {
|
|
11
|
-
private _changeDetector;
|
|
12
|
-
role: string;
|
|
13
|
-
/**
|
|
14
|
-
* Il valore selezionato per il gruppo. Dovrebbe essere uguale al valore del radio button selezionato se
|
|
15
|
-
* *esiste* un radio button con un valore corrispondente. Se *non esiste* un radio button corrispondente
|
|
16
|
-
* questo valore persiste ed è applicato nel caso in cui un nuovo radio button viene aggiunto con il valore
|
|
17
|
-
* corrispondente.
|
|
18
|
-
*/
|
|
19
|
-
private _value;
|
|
20
|
-
/** L'attributo HTML name da applicare ai radio button in questo gruppo */
|
|
21
|
-
private _name;
|
|
22
|
-
/** Il radio button attualmente selezionato. */
|
|
23
|
-
private _selected;
|
|
24
|
-
/** se `value` è stato settato al suo valore iniziale. */
|
|
25
|
-
private _isInitialized;
|
|
26
|
-
/** Se il radio group è disabilitato. */
|
|
27
|
-
private _disabled;
|
|
28
|
-
/**
|
|
29
|
-
* Evento emesso quando il valore del gruppo cambia.
|
|
30
|
-
* Gli eventi di change sono emessi soltanto quando il valore cambia a causa dell'interazione dell'utente
|
|
31
|
-
* con il radio button (stesso comportamento di `<input type-"radio">`).
|
|
32
|
-
*/
|
|
33
|
-
readonly change: EventEmitter<RadioChange>;
|
|
34
|
-
/** radio buttons figli. */
|
|
35
|
-
_radios: QueryList<RadioButtonComponent>;
|
|
36
|
-
/** Il metodo da chiamare per aggiornare ngModel */
|
|
37
|
-
_controlValueAccessorChangeFn: (value: any) => void;
|
|
38
|
-
onTouched: () => any;
|
|
39
|
-
/** Nome del gruppo di radio button. Tutti i radio button all'interno del gruppo avranno questo nome. */
|
|
40
|
-
get name(): string;
|
|
41
|
-
set name(value: string);
|
|
42
|
-
/** Valore del radio button. */
|
|
43
|
-
get value(): any;
|
|
44
|
-
set value(newValue: any);
|
|
45
|
-
_checkSelectedRadioButton(): void;
|
|
46
|
-
/** Il radio button selezionato. */
|
|
47
|
-
get selected(): RadioButtonComponent | null;
|
|
48
|
-
set selected(selected: RadioButtonComponent | null);
|
|
49
|
-
/** Se il gruppo è disabled */
|
|
50
|
-
get disabled(): boolean;
|
|
51
|
-
set disabled(value: boolean);
|
|
52
|
-
constructor(_changeDetector: ChangeDetectorRef);
|
|
53
|
-
/**
|
|
54
|
-
* Inizializza le proprietà quando il contenuto dei figliè disponibile.
|
|
55
|
-
* Questo permette di propagare gli attributi rilevanti ai radio buttons associati.
|
|
56
|
-
*/
|
|
57
|
-
ngAfterContentInit(): void;
|
|
58
|
-
_touch(): void;
|
|
59
|
-
private _updateRadioButtonNames;
|
|
60
|
-
/** Aggiorna il radio button `selected` a seconda del suo _value. */
|
|
61
|
-
private _updateSelectedRadioFromValue;
|
|
62
|
-
/** Invia l'evento change con la selezione corrente e il valore del gruppo. */
|
|
63
|
-
_emitChangeEvent(): void;
|
|
64
|
-
_markRadiosForCheck(): void;
|
|
65
|
-
writeValue(value: any): void;
|
|
66
|
-
registerOnChange(fn: (value: any) => void): void;
|
|
67
|
-
registerOnTouched(fn: any): void;
|
|
68
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupDirective, never>;
|
|
69
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RadioGroupDirective, "it-radio-group", ["itRadioGroup"], { "name": "name"; "value": "value"; "selected": "selected"; "disabled": "disabled"; }, { "change": "change"; }, ["_radios"], never, false>;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Un radio button con design bootstrap italia. Supporta tutte le funzionalità di una radio HTML5,
|
|
73
|
-
* ed espone una API simile. Una `<it-radio-button>` può essere checked, unchecked, o disabled.
|
|
74
|
-
*/
|
|
75
|
-
export declare class RadioButtonComponent implements OnInit, OnDestroy {
|
|
76
|
-
private _changeDetector;
|
|
77
|
-
private _radioDispatcher;
|
|
78
|
-
id: string;
|
|
79
|
-
/** Attributo 'name' usato per raggruppare i radio button per un'unica selezione. */
|
|
80
|
-
name: string;
|
|
81
|
-
/** L'etichetta delradio button. */
|
|
82
|
-
label: string;
|
|
83
|
-
/** se il radio button è checked. */
|
|
84
|
-
get checked(): boolean;
|
|
85
|
-
set checked(value: boolean);
|
|
86
|
-
/** Il valore di questo radio button. */
|
|
87
|
-
get value(): any;
|
|
88
|
-
set value(value: any);
|
|
89
|
-
/** Se il radio button è disabled. */
|
|
90
|
-
get disabled(): boolean;
|
|
91
|
-
set disabled(value: boolean);
|
|
92
|
-
/**
|
|
93
|
-
* Evento emesso quando il valore `checked` del radio button cambia.
|
|
94
|
-
*/
|
|
95
|
-
readonly change: EventEmitter<RadioChange>;
|
|
96
|
-
/** Il radio group padre. Può essere presente o meno. */
|
|
97
|
-
radioGroup: RadioGroupDirective;
|
|
98
|
-
/** Se il radio button è checked. */
|
|
99
|
-
private _checked;
|
|
100
|
-
/** Se il radio button è disabled. */
|
|
101
|
-
private _disabled;
|
|
102
|
-
/** il valore assegnato al radio button. */
|
|
103
|
-
private _value;
|
|
104
|
-
private _removeUniqueSelectionListener;
|
|
105
|
-
constructor(radioGroup: RadioGroupDirective, _changeDetector: ChangeDetectorRef, _radioDispatcher: UniqueSelectionDispatcher);
|
|
106
|
-
/**
|
|
107
|
-
* Segna il radio button come da controllare per la change detection.
|
|
108
|
-
*/
|
|
109
|
-
_markForCheck(): void;
|
|
110
|
-
ngOnInit(): void;
|
|
111
|
-
ngOnDestroy(): void;
|
|
112
|
-
private _emitChangeEvent;
|
|
113
|
-
_onInputChange(event: Event): void;
|
|
114
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, [{ optional: true; }, null, null]>;
|
|
115
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "it-radio-button", ["itRadioButton"], { "name": "name"; "label": "label"; "checked": "checked"; "value": "value"; "disabled": "disabled"; }, { "change": "change"; }, never, never, false>;
|
|
116
|
-
}
|