design-angular-kit 1.0.0-1 → 1.0.0-10
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 +183 -24
- package/assets/i18n/en.json +93 -0
- package/assets/i18n/it.json +93 -0
- package/esm2020/lib/abstracts/abstract-form-component.mjs +174 -0
- package/esm2020/lib/abstracts/abstract.component.mjs +27 -0
- package/esm2020/lib/components/core/accordion/accordion.component.mjs +31 -0
- package/esm2020/lib/components/core/alert/alert.component.mjs +69 -0
- package/esm2020/lib/components/core/badge/badge.directive.mjs +34 -0
- package/esm2020/lib/components/core/button/button.directive.mjs +80 -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 +101 -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 +130 -0
- package/esm2020/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +68 -0
- package/esm2020/lib/components/core/forward/forward.directive.mjs +51 -0
- package/esm2020/lib/components/core/link/link.component.mjs +40 -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 +110 -0
- package/esm2020/lib/components/core/pagination/pagination.component.mjs +51 -0
- package/esm2020/lib/components/core/popover/popover.directive.mjs +179 -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/rating/rating.component.mjs +45 -0
- package/esm2020/lib/components/core/spinner/spinner.component.mjs +35 -0
- package/esm2020/lib/components/core/steppers/steppers-container/steppers-container.component.mjs +119 -0
- package/esm2020/lib/components/core/steppers/steppers-item/steppers-item.component.mjs +18 -0
- package/esm2020/lib/components/core/tab/tab-container/tab-container.component.mjs +59 -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 +143 -0
- package/esm2020/lib/components/form/checkbox/checkbox.component.mjs +40 -0
- package/esm2020/lib/components/form/input/input.component.mjs +222 -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 +137 -0
- package/esm2020/lib/components/form/upload-file-list/upload-file-list.component.mjs +104 -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 +74 -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 +63 -0
- package/esm2020/lib/components/utils/icon/icon.component.mjs +54 -0
- package/esm2020/lib/components/utils/language-switcher/language-switcher.component.mjs +39 -0
- package/esm2020/lib/components/utils/not-found-page/not-found-page.component.mjs +13 -0
- package/esm2020/lib/design-angular-kit.module.mjs +45 -131
- 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/interfaces/utils.mjs +2 -0
- package/esm2020/lib/modules/components.module.mjs +261 -0
- package/esm2020/lib/pipes/mark-matching-text.pipe.mjs +36 -0
- package/esm2020/lib/services/notifications/notifications.service.mjs +120 -0
- package/esm2020/lib/utils/boolean-input.mjs +15 -0
- package/esm2020/lib/utils/file-utils.mjs +73 -0
- package/esm2020/lib/utils/regex.mjs +26 -0
- package/esm2020/lib/validators/it-validators.mjs +134 -0
- package/esm2020/public_api.mjs +67 -36
- package/fesm2015/design-angular-kit.mjs +3424 -2713
- package/fesm2015/design-angular-kit.mjs.map +1 -1
- package/fesm2020/design-angular-kit.mjs +3391 -2713
- package/fesm2020/design-angular-kit.mjs.map +1 -1
- package/lib/abstracts/abstract-form-component.d.ts +89 -0
- package/lib/abstracts/abstract.component.d.ts +20 -0
- package/lib/components/core/accordion/accordion.component.d.ts +12 -0
- package/lib/components/core/alert/alert.component.d.ts +39 -0
- package/lib/components/core/badge/badge.directive.d.ts +16 -0
- package/lib/components/core/button/button.directive.d.ts +36 -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 +60 -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 +81 -0
- package/lib/components/core/dropdown/dropdown-item/dropdown-item.component.d.ts +39 -0
- package/lib/components/core/forward/forward.directive.d.ts +14 -0
- package/lib/components/core/link/link.component.d.ts +31 -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 +44 -0
- package/lib/components/core/pagination/pagination.component.d.ts +31 -0
- package/lib/components/core/popover/popover.directive.d.ts +98 -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/rating/rating.component.d.ts +20 -0
- package/lib/components/core/spinner/spinner.component.d.ts +21 -0
- package/lib/components/core/steppers/steppers-container/steppers-container.component.d.ts +102 -0
- package/lib/components/core/steppers/steppers-item/steppers-item.component.d.ts +19 -0
- package/lib/components/core/tab/tab-container/tab-container.component.d.ts +30 -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 +81 -0
- package/lib/components/form/checkbox/checkbox.component.d.ts +30 -0
- package/lib/components/form/input/input.component.d.ts +96 -0
- package/lib/components/form/password-input/password-input.component.d.ts +55 -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 +54 -0
- package/lib/components/form/upload-file-list/upload-file-list.component.d.ts +59 -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 +46 -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 +30 -0
- package/lib/components/utils/icon/icon.component.d.ts +40 -0
- package/lib/components/utils/language-switcher/language-switcher.component.d.ts +23 -0
- package/lib/components/utils/not-found-page/not-found-page.component.d.ts +5 -0
- package/lib/design-angular-kit.module.d.ts +7 -24
- package/lib/interfaces/core.d.ts +59 -0
- package/lib/interfaces/form.d.ts +67 -0
- package/lib/interfaces/icon.d.ts +3 -0
- package/lib/interfaces/utils.d.ts +10 -0
- package/lib/modules/components.module.d.ts +62 -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 +32 -0
- package/lib/utils/regex.d.ts +25 -0
- package/lib/validators/it-validators.d.ts +58 -0
- package/package.json +22 -13
- package/public_api.d.ts +59 -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
- /package/lib/{form-input → pipes}/mark-matching-text.pipe.d.ts +0 -0
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { OnDestroy } from '@angular/core';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
export declare type UniqueSelectionDispatcherListener = (id: string, name: string) => void;
|
|
11
|
-
/**
|
|
12
|
-
* Class to coordinate unique selection based on name.
|
|
13
|
-
* Intended to be consumed as an Angular service.
|
|
14
|
-
* This service is needed because native radio change events are only fired on the item currently
|
|
15
|
-
* being selected, and we still need to uncheck the previous selection.
|
|
16
|
-
*
|
|
17
|
-
* This service does not *store* any IDs and names because they may change at any time, so it is
|
|
18
|
-
* less error-prone if they are simply passed through when the events occur.
|
|
19
|
-
*/
|
|
20
|
-
export declare class UniqueSelectionDispatcher implements OnDestroy {
|
|
21
|
-
private _listeners;
|
|
22
|
-
/**
|
|
23
|
-
* Notify other items that selection for the given name has been set.
|
|
24
|
-
* @param id ID of the item.
|
|
25
|
-
* @param name Name of the item.
|
|
26
|
-
*/
|
|
27
|
-
notify(id: string, name: string): void;
|
|
28
|
-
/**
|
|
29
|
-
* Listen for future changes to item selection.
|
|
30
|
-
* @return Function used to deregister listener
|
|
31
|
-
*/
|
|
32
|
-
listen(listener: UniqueSelectionDispatcherListener): () => void;
|
|
33
|
-
ngOnDestroy(): void;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UniqueSelectionDispatcher, never>;
|
|
35
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UniqueSelectionDispatcher>;
|
|
36
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { AfterContentInit, QueryList, EventEmitter, ChangeDetectorRef, AfterContentChecked, OnDestroy } from '@angular/core';
|
|
2
|
-
import { ItTabComponent } from './tab.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/** Un change event emesso ai cambi di selezione. */
|
|
5
|
-
export declare class TabChangeEvent {
|
|
6
|
-
/** Indice del tab selezionato. */
|
|
7
|
-
index: number;
|
|
8
|
-
/** Riferimento al tab selezionato. */
|
|
9
|
-
tab: ItTabComponent;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Un componente tab-group con design bootstrap italia. Utilizzabile con il tag `<it-tab-group>`.
|
|
13
|
-
*
|
|
14
|
-
* Supporta al suo interno tab di base `<it-tab>` con una label e un contenuto.
|
|
15
|
-
*/
|
|
16
|
-
export declare class ItTabGroupComponent implements AfterContentInit, AfterContentChecked, OnDestroy {
|
|
17
|
-
private _changeDetectorRef;
|
|
18
|
-
_tabs: QueryList<ItTabComponent>;
|
|
19
|
-
/** L'indice del tab che dovrebbe essere selezionato dopo che il contenuto e' stato controllato */
|
|
20
|
-
private _indexToSelect;
|
|
21
|
-
/** Subscription all'aggiunta e rimozione di tab. */
|
|
22
|
-
private _tabsSubscription;
|
|
23
|
-
/** Subscription ai cambiamenti alle label dei tab. */
|
|
24
|
-
private _tabLabelSubscription;
|
|
25
|
-
/** Se le tab sono formattate come pill. */
|
|
26
|
-
get pill(): boolean;
|
|
27
|
-
set pill(value: boolean);
|
|
28
|
-
private _isPill;
|
|
29
|
-
/** L'indice della tab attiva. */
|
|
30
|
-
get selectedIndex(): number | null;
|
|
31
|
-
set selectedIndex(value: number | null);
|
|
32
|
-
private _selectedIndex;
|
|
33
|
-
/**
|
|
34
|
-
* Se il tab-group ha un tema scuro
|
|
35
|
-
*/
|
|
36
|
-
get dark(): boolean;
|
|
37
|
-
set dark(value: boolean);
|
|
38
|
-
private _dark;
|
|
39
|
-
/** abilita il supporto al data-binding bidirezionale `[(selectedIndex)]` */
|
|
40
|
-
readonly selectedIndexChange: EventEmitter<number>;
|
|
41
|
-
/** emesso quando la selezione del tab cambia. */
|
|
42
|
-
readonly selectedTabChange: EventEmitter<TabChangeEvent>;
|
|
43
|
-
private _groupId;
|
|
44
|
-
constructor(_changeDetectorRef: ChangeDetectorRef);
|
|
45
|
-
/**
|
|
46
|
-
* Dopo che il contenuto è controllato, il componente conosce i tab che sono stati definiti
|
|
47
|
-
* e qual è l'indice del tab selezionato.
|
|
48
|
-
*/
|
|
49
|
-
ngAfterContentChecked(): void;
|
|
50
|
-
changeTab(newIndex: number): void;
|
|
51
|
-
ngAfterContentInit(): void;
|
|
52
|
-
ngOnDestroy(): void;
|
|
53
|
-
private _createChangeEvent;
|
|
54
|
-
/**
|
|
55
|
-
* Sottoscrivi a cambiamenti nelle label dei tab. Necessario perchè l'input per la label è sul TabComponent
|
|
56
|
-
* mentre il data binding è all'interno di TabGroupComponent. Per fare in modo che il binding sia aggiornato
|
|
57
|
-
* bisogna sottoscriversi ai cambiamenti e azionare la change detection in maniera manuale.
|
|
58
|
-
*/
|
|
59
|
-
private _subscribeToTabLabels;
|
|
60
|
-
/** fissa l'indice tra 0 e la dimensione dei tab. */
|
|
61
|
-
private _clampTabIndex;
|
|
62
|
-
/** ritorna un id univoco per ogni label di tab */
|
|
63
|
-
_getTabLabelId(i: number): string;
|
|
64
|
-
/** ritorna un id univoco per ogni elemento di contenuto del tab */
|
|
65
|
-
_getTabContentId(i: number): string;
|
|
66
|
-
/** restituisce il tabIndex del tab. */
|
|
67
|
-
_getTabIndex(tab: ItTabComponent, idx: number): number | null;
|
|
68
|
-
_handleClick($event: Event, index: number): void;
|
|
69
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItTabGroupComponent, never>;
|
|
70
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ItTabGroupComponent, "it-tab-group", ["itTabGroup"], { "pill": "pill"; "selectedIndex": "selectedIndex"; "dark": "dark"; }, { "selectedIndexChange": "selectedIndexChange"; "selectedTabChange": "selectedTabChange"; }, ["_tabs"], never, false>;
|
|
71
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { OnDestroy, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Un componente tab con design bootstrap italia. Indica la singola tab di un insieme di tab.
|
|
6
|
-
* Utilizzabile con il tag `<it-tab>` all'interno di un tag `<it-tab-group>`.
|
|
7
|
-
*/
|
|
8
|
-
export declare class ItTabComponent implements OnChanges, OnDestroy {
|
|
9
|
-
/** Testo della tab. */
|
|
10
|
-
label: string;
|
|
11
|
-
/** Aria label del tab. */
|
|
12
|
-
ariaLabel: string;
|
|
13
|
-
/**
|
|
14
|
-
* Riferimento all'elemento dal quale il tab è etichettato.
|
|
15
|
-
* Viene resettato se `aria-label` è impostato.
|
|
16
|
-
*/
|
|
17
|
-
ariaLabelledby: string;
|
|
18
|
-
/** Se la tab è disabilitata. */
|
|
19
|
-
get disabled(): boolean;
|
|
20
|
-
set disabled(value: boolean);
|
|
21
|
-
private _disabled;
|
|
22
|
-
/**
|
|
23
|
-
* La stringa rappresentante l'icona da utilizzare nel titolo della tab. Es. `it-file`
|
|
24
|
-
*/
|
|
25
|
-
icon: string | null;
|
|
26
|
-
/** Emette un evento ogni volta che la label cambia. */
|
|
27
|
-
readonly _labelChange: Subject<void>;
|
|
28
|
-
/** Emette un evento ogni volta che l'attributo disabled cambia */
|
|
29
|
-
readonly _disableChange: Subject<void>;
|
|
30
|
-
/**
|
|
31
|
-
* La posizione relativa della tab dove 0 rappresenta il centro, i negativi sono a sinistra
|
|
32
|
-
* e i positivi sono a destra.
|
|
33
|
-
*/
|
|
34
|
-
position: number | null;
|
|
35
|
-
/**
|
|
36
|
-
* Se il tab è attivo.
|
|
37
|
-
*/
|
|
38
|
-
isActive: boolean;
|
|
39
|
-
_implicitContent: TemplateRef<any>;
|
|
40
|
-
ngOnDestroy(): void;
|
|
41
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
42
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItTabComponent, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ItTabComponent, "it-tab", ["itTab"], { "label": "label"; "ariaLabel": "aria-label"; "ariaLabelledby": "aria-labelledby"; "disabled": "disabled"; "icon": "icon"; }, {}, never, ["*"], false>;
|
|
44
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./tab.component";
|
|
3
|
-
import * as i2 from "./tab-group.component";
|
|
4
|
-
import * as i3 from "@angular/common";
|
|
5
|
-
import * as i4 from "../util/utils.module";
|
|
6
|
-
export declare class ItTabsModule {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItTabsModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ItTabsModule, [typeof i1.ItTabComponent, typeof i2.ItTabGroupComponent], [typeof i3.CommonModule, typeof i4.ItUtilsModule], [typeof i1.ItTabComponent, typeof i2.ItTabGroupComponent]>;
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ItTabsModule>;
|
|
10
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ToggleChange {
|
|
5
|
-
source: ToggleComponent;
|
|
6
|
-
checked: boolean;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Una toggle con design bootstrap italia. Supporta tutte le funzionalità di una checkbox HTML5,
|
|
10
|
-
* ed espone una API simile. Una `<it-toggle>` può essere checked, unchecked, o disabled.
|
|
11
|
-
*/
|
|
12
|
-
export declare class ToggleComponent implements ControlValueAccessor {
|
|
13
|
-
private _changeDetectorRef;
|
|
14
|
-
/**
|
|
15
|
-
* Se la toggle è selezionata.
|
|
16
|
-
*/
|
|
17
|
-
get checked(): boolean;
|
|
18
|
-
set checked(value: boolean);
|
|
19
|
-
private _checked;
|
|
20
|
-
/**
|
|
21
|
-
* L'etichetta della toggle.
|
|
22
|
-
*/
|
|
23
|
-
label: string;
|
|
24
|
-
/**
|
|
25
|
-
* Se la toggle è disabilitata.
|
|
26
|
-
*/
|
|
27
|
-
get disabled(): boolean;
|
|
28
|
-
set disabled(value: boolean);
|
|
29
|
-
private _disabled;
|
|
30
|
-
/**
|
|
31
|
-
* Evento emesso quando il valore `checked` della toggle cambia.
|
|
32
|
-
*/
|
|
33
|
-
readonly change: EventEmitter<ToggleChange>;
|
|
34
|
-
inputId: string;
|
|
35
|
-
private _onTouched;
|
|
36
|
-
private _controlValueAccessorChangeFn;
|
|
37
|
-
constructor(_changeDetectorRef: ChangeDetectorRef);
|
|
38
|
-
writeValue(value: any): void;
|
|
39
|
-
registerOnChange(fn: (value: any) => void): void;
|
|
40
|
-
registerOnTouched(fn: any): void;
|
|
41
|
-
handleChange(event: Event): void;
|
|
42
|
-
private _toggle;
|
|
43
|
-
private _emitChangeEvent;
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleComponent, never>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ToggleComponent, "it-toggle", never, { "checked": "checked"; "label": "label"; "disabled": "disabled"; }, { "change": "change"; }, never, never, false>;
|
|
46
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { NgbTooltipConfig } 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 ItTooltipConfig extends NgbTooltipConfig {
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItTooltipConfig, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ItTooltipConfig>;
|
|
11
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Angular ng-bootstrap team All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://raw.githubusercontent.com/ng-bootstrap/ng-bootstrap/master/LICENSE
|
|
7
|
-
*/
|
|
8
|
-
import { OnInit, OnDestroy, OnChanges, Injector, Renderer2, ElementRef, TemplateRef, ViewContainerRef, NgZone, ApplicationRef, ChangeDetectorRef } from '@angular/core';
|
|
9
|
-
import { ItTooltipConfig } from './tooltip.config';
|
|
10
|
-
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
/**
|
|
13
|
-
* Una direttiva per la creazione di un tooltip.
|
|
14
|
-
*/
|
|
15
|
-
export declare class ItTooltip extends NgbTooltip implements OnInit, OnDestroy, OnChanges {
|
|
16
|
-
/**
|
|
17
|
-
* The string content or a `TemplateRef` for the content to be displayed in the popover.
|
|
18
|
-
*
|
|
19
|
-
* If the title and the content are falsy, the popover won't open.
|
|
20
|
-
*/
|
|
21
|
-
itTooltip: string | TemplateRef<any> | null | undefined;
|
|
22
|
-
constructor(_elementRef: ElementRef<HTMLElement>, _renderer: Renderer2, injector: Injector, viewContainerRef: ViewContainerRef, config: ItTooltipConfig, _ngZone: NgZone, _document: any, _changeDetector: ChangeDetectorRef, applicationRef: ApplicationRef);
|
|
23
|
-
ngOnInit(): void;
|
|
24
|
-
ngOnDestroy(): void;
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItTooltip, never>;
|
|
26
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ItTooltip, "[itTooltip]", ["itTooltip"], { "itTooltip": "itTooltip"; }, {}, never, never, false>;
|
|
27
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./tooltip.directive";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "@ng-bootstrap/ng-bootstrap";
|
|
5
|
-
export declare class ItTooltipModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItTooltipModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ItTooltipModule, [typeof i1.ItTooltip], [typeof i2.CommonModule, typeof i3.NgbTooltipModule], [typeof i1.ItTooltip]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ItTooltipModule>;
|
|
9
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from "@angular/core";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Aggiunge la classe "focus--mouse" quando viene effettuato il focus sull'elemento a cui è applicata la direttiva
|
|
5
|
-
*/
|
|
6
|
-
export declare class FocusMouseDirective {
|
|
7
|
-
private elementRef;
|
|
8
|
-
constructor(elementRef: ElementRef);
|
|
9
|
-
onFocus(): void;
|
|
10
|
-
onBlur(): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FocusMouseDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FocusMouseDirective, "[focusMouse]", ["focusMouse"], {}, {}, never, never, false>;
|
|
13
|
-
}
|
package/lib/util/util.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./focus-mouse.directive";
|
|
3
|
-
export declare class ItUtilsModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItUtilsModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ItUtilsModule, [typeof i1.FocusMouseDirective], never, [typeof i1.FocusMouseDirective]>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ItUtilsModule>;
|
|
7
|
-
}
|
|
File without changes
|