design-angular-kit 1.0.0-0 → 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 -12
- 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
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import { IconColor, IconName, IconSize } from "../../../interfaces/icon";
|
|
3
|
+
import { BooleanInput } from "../../../utils/boolean-input";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class IconComponent implements AfterViewInit {
|
|
6
|
+
protected readonly _renderer: Renderer2;
|
|
7
|
+
protected readonly _elementRef: ElementRef;
|
|
8
|
+
/**
|
|
9
|
+
* The icon name
|
|
10
|
+
*/
|
|
11
|
+
name: IconName;
|
|
12
|
+
/**
|
|
13
|
+
* The icon size
|
|
14
|
+
*/
|
|
15
|
+
size?: IconSize;
|
|
16
|
+
/**
|
|
17
|
+
* The icon color
|
|
18
|
+
*/
|
|
19
|
+
color?: IconColor;
|
|
20
|
+
/**
|
|
21
|
+
* Create a padding proportional to the size of the surrounding icon.
|
|
22
|
+
*/
|
|
23
|
+
padded?: BooleanInput;
|
|
24
|
+
/**
|
|
25
|
+
* Custom class
|
|
26
|
+
*/
|
|
27
|
+
class: string;
|
|
28
|
+
/**
|
|
29
|
+
* Return the icon href
|
|
30
|
+
*/
|
|
31
|
+
get iconHref(): string;
|
|
32
|
+
/**
|
|
33
|
+
* Return the icon class
|
|
34
|
+
*/
|
|
35
|
+
get iconClass(): string;
|
|
36
|
+
constructor(_renderer: Renderer2, _elementRef: ElementRef);
|
|
37
|
+
ngAfterViewInit(): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "it-icon[name]", never, { "name": "name"; "size": "size"; "color": "color"; "padded": "padded"; "class": "class"; }, {}, never, never, false, never>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
+
import { AvailableLanguage } from '../../../interfaces/utils';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class LanguageSwitcherComponent implements OnInit {
|
|
7
|
+
private readonly translateService;
|
|
8
|
+
/**
|
|
9
|
+
* The available languages
|
|
10
|
+
* @default The languages available through TranslateService (ngx-translate)
|
|
11
|
+
*/
|
|
12
|
+
availableLanguages?: Array<AvailableLanguage>;
|
|
13
|
+
currentLang$: Observable<AvailableLanguage | undefined>;
|
|
14
|
+
constructor(translateService: TranslateService);
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
/**
|
|
17
|
+
* Change the current language
|
|
18
|
+
* @param lang the language code
|
|
19
|
+
*/
|
|
20
|
+
changeLanguage(lang: string): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LanguageSwitcherComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LanguageSwitcherComponent, "it-language-switcher", never, { "availableLanguages": "availableLanguages"; }, {}, never, never, false, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class NotFoundPageComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotFoundPageComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotFoundPageComponent, "it-not-found-page", never, {}, {}, never, never, false, never>;
|
|
5
|
+
}
|
|
@@ -1,29 +1,12 @@
|
|
|
1
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "./badge/badge.directive";
|
|
6
|
-
import * as i5 from "./progress-bar/progress-bar.component";
|
|
7
|
-
import * as i6 from "./form-input/form-input.component";
|
|
8
|
-
import * as i7 from "./breadcrumb/breadcrumb.component";
|
|
9
|
-
import * as i8 from "./breadcrumb/breadcrumb-item.component";
|
|
10
|
-
import * as i9 from "./form-input/it-prefix.directive";
|
|
11
|
-
import * as i10 from "./form-input/it-suffix.directive";
|
|
12
|
-
import * as i11 from "./form-input/it-text-prefix.directive";
|
|
13
|
-
import * as i12 from "./form-input/it-text-suffix.directive";
|
|
14
|
-
import * as i13 from "./form-input/mark-matching-text.pipe";
|
|
15
|
-
import * as i14 from "@angular/common";
|
|
16
|
-
import * as i15 from "./util/utils.module";
|
|
17
|
-
import * as i16 from "@angular/forms";
|
|
18
|
-
import * as i17 from "./popover/popover.module";
|
|
19
|
-
import * as i18 from "./tooltip/tooltip.module";
|
|
20
|
-
import * as i19 from "./collapse/collapse.module";
|
|
21
|
-
import * as i20 from "./dropdown/dropdown.module";
|
|
22
|
-
import * as i21 from "./icon/icon.module";
|
|
23
|
-
import * as i22 from "./button/button.module";
|
|
24
|
-
import * as i23 from "./tabs/tabs.module";
|
|
3
|
+
import * as i1 from "./modules/components.module";
|
|
4
|
+
import * as i2 from "@angular/common/http";
|
|
5
|
+
import * as i3 from "@ngx-translate/core";
|
|
25
6
|
export declare class DesignAngularKitModule {
|
|
7
|
+
private readonly translateService;
|
|
8
|
+
constructor(translateService: TranslateService);
|
|
26
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<DesignAngularKitModule, never>;
|
|
27
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DesignAngularKitModule, [typeof i1.
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DesignAngularKitModule, never, [typeof i1.ComponentsModule, typeof i2.HttpClientModule, typeof i3.TranslateModule], [typeof i1.ComponentsModule, typeof i3.TranslateModule]>;
|
|
28
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<DesignAngularKitModule>;
|
|
29
12
|
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { IconName } from './icon';
|
|
2
|
+
export declare type AlertColor = 'info' | 'success' | 'warning' | 'danger';
|
|
3
|
+
export declare type ButtonColor = 'primary' | 'outline-primary' | 'secondary' | 'outline-secondary' | 'success' | 'outline-success' | 'danger' | 'outline-danger' | 'warning' | 'outline-warning' | 'info' | 'outline-info' | 'light' | 'outline-light' | 'dark' | 'outline-dark' | 'link';
|
|
4
|
+
export declare type ButtonSize = 'lg' | 'sm' | 'xs';
|
|
5
|
+
export declare type ButtonType = 'submit' | 'button';
|
|
6
|
+
export declare type CalloutColor = 'success' | 'warning' | 'danger' | 'important' | 'note';
|
|
7
|
+
export declare type CalloutAppearance = 'default' | 'highlight' | 'more';
|
|
8
|
+
export declare type ElementPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
9
|
+
export declare type ProgressBarColor = 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
10
|
+
export declare type BadgeColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
11
|
+
export declare type TableColor = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
|
|
12
|
+
export declare type TableHeadColor = 'light' | 'dark';
|
|
13
|
+
export declare type TableResponsive = 'responsive' | 'responsive-sm' | 'responsive-md' | 'responsive-lg' | 'responsive-xl' | 'responsive-xxl';
|
|
14
|
+
export declare type VerticalAlignment = 'align-baseline' | 'align-top' | 'align-middle' | 'align-bottom' | 'align-text-bottom' | 'align-text-top';
|
|
15
|
+
export declare type DropdownDirection = 'dropup' | 'dropend' | 'dropstart';
|
|
16
|
+
export declare type CarouselType = 'default' | 'three-cols' | 'three-cols-arrow-visible';
|
|
17
|
+
export interface Notification {
|
|
18
|
+
/**
|
|
19
|
+
* Notification type
|
|
20
|
+
*/
|
|
21
|
+
type: NotificationType;
|
|
22
|
+
/**
|
|
23
|
+
* Notification title
|
|
24
|
+
*/
|
|
25
|
+
title: string;
|
|
26
|
+
/**
|
|
27
|
+
* Notification message / text
|
|
28
|
+
*/
|
|
29
|
+
message?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Custom duration of notification
|
|
32
|
+
*/
|
|
33
|
+
duration?: number;
|
|
34
|
+
/**
|
|
35
|
+
* The close notification button appears
|
|
36
|
+
*/
|
|
37
|
+
dismissible?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Custom position of notification
|
|
40
|
+
*/
|
|
41
|
+
position?: NotificationPosition;
|
|
42
|
+
/**
|
|
43
|
+
* Custom icon of notification
|
|
44
|
+
*/
|
|
45
|
+
icon?: IconName;
|
|
46
|
+
}
|
|
47
|
+
export declare enum NotificationType {
|
|
48
|
+
Standard = "standard",
|
|
49
|
+
Success = "success",
|
|
50
|
+
Error = "error",
|
|
51
|
+
Info = "info",
|
|
52
|
+
Warning = "warning"
|
|
53
|
+
}
|
|
54
|
+
export declare enum NotificationPosition {
|
|
55
|
+
Top = "top-fix mt-3",
|
|
56
|
+
Bottom = "bottom-fix mb-3",
|
|
57
|
+
Left = "left-fix ms-3",
|
|
58
|
+
Right = "right-fix me-3"
|
|
59
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { IconName } from './icon';
|
|
2
|
+
export declare type InputControlType = 'text' | 'email' | 'number' | 'date' | 'time' | 'tel' | 'color' | 'url' | 'search';
|
|
3
|
+
export interface SelectControlOption {
|
|
4
|
+
value: any;
|
|
5
|
+
text?: string;
|
|
6
|
+
selected?: boolean | ((value: any) => boolean);
|
|
7
|
+
disabled?: boolean | ((value: any) => boolean);
|
|
8
|
+
}
|
|
9
|
+
export interface SelectControlGroup {
|
|
10
|
+
label: string;
|
|
11
|
+
options: Array<SelectControlOption>;
|
|
12
|
+
dragdrop?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface UploadFileListItem {
|
|
15
|
+
/**
|
|
16
|
+
* The item id
|
|
17
|
+
*/
|
|
18
|
+
id: number;
|
|
19
|
+
/**
|
|
20
|
+
* The uploaded file
|
|
21
|
+
*/
|
|
22
|
+
file: File;
|
|
23
|
+
/**
|
|
24
|
+
* Show progress bar
|
|
25
|
+
*
|
|
26
|
+
* The status of the item changes based on the value:
|
|
27
|
+
* - <b>uploading</b>: if value is between 0 and 100 (exclusive 0 < value < 100)
|
|
28
|
+
* - <b>success</b>: if value is greater than 100
|
|
29
|
+
*/
|
|
30
|
+
progress?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Show the ability to delete item
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
removable?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Set the status of the item as 'error'
|
|
38
|
+
*/
|
|
39
|
+
error?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Add tooltip on file item name
|
|
42
|
+
* @example It can be used to show the error message or additional information about the file
|
|
43
|
+
*/
|
|
44
|
+
tooltip?: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Elemento disponibile per l'autocompletamento del it-form-input
|
|
48
|
+
*/
|
|
49
|
+
export interface AutocompleteItem {
|
|
50
|
+
/** Valore voce di autocompletamento */
|
|
51
|
+
value: string;
|
|
52
|
+
/** Opzionale. Path in cui ricercare l'immagine dell'avatar da posizionare a sinistra della voce di autocompletamento */
|
|
53
|
+
avatarSrcPath?: string;
|
|
54
|
+
/** Opzionale. Testo in alternativa dell'avatar per accessibilità */
|
|
55
|
+
avatarAltText?: string;
|
|
56
|
+
/** Opzionale. Icona posizionata a sinistra della voce di autocompletamento */
|
|
57
|
+
icon?: IconName;
|
|
58
|
+
/** Opzionale. Label posizionata a destra della voce di autocompletamento */
|
|
59
|
+
label?: string;
|
|
60
|
+
/** Opzionale. Link relativo all'elemento */
|
|
61
|
+
link?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Attribute not used for autocomplete rendering.
|
|
64
|
+
* It can be useful to retrieve some extra information when selecting the autocomplete item
|
|
65
|
+
*/
|
|
66
|
+
additionalData?: any;
|
|
67
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare type IconSize = 'xs' | 'sm' | 'lg' | 'xl';
|
|
2
|
+
export declare type IconColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'light' | 'white';
|
|
3
|
+
export declare type IconName = 'arrow-down' | 'arrow-down-circle' | 'arrow-down-triangle' | 'arrow-left' | 'arrow-left-circle' | 'arrow-left-triangle' | 'arrow-right' | 'arrow-right-circle' | 'arrow-right-triangle' | 'arrow-up' | 'arrow-up-circle' | 'arrow-up-triangle' | 'ban' | 'bookmark' | 'box' | 'burger' | 'calendar' | 'camera' | 'card' | 'chart-line' | 'check' | 'check-circle' | 'chevron-left' | 'chevron-right' | 'clip' | 'clock' | 'close' | 'close-big' | 'close-circle' | 'comment' | 'copy' | 'delete' | 'download' | 'error' | 'exchange-circle' | 'expand' | 'external-link' | 'flag' | 'folder' | 'fullscreen' | 'funnel' | 'hearing' | 'help' | 'help-circle' | 'horn' | 'inbox' | 'info-circle' | 'key' | 'link' | 'list' | 'locked' | 'logout' | 'mail' | 'mail-open' | 'map-marker' | 'map-marker-circle' | 'map-marker-minus' | 'map-marker-plus' | 'maximize' | 'maximize-alt' | 'minimize' | 'minus' | 'minus-circle' | 'more-actions' | 'more-items' | 'note' | 'pa' | 'password-invisible' | 'password-visible' | 'pencil' | 'piattaforme' | 'pin' | 'plug' | 'plus' | 'plus-circle' | 'presentation' | 'print' | 'refresh' | 'restore' | 'rss' | 'rss-square' | 'search' | 'settings' | 'share' | 'software' | 'star-full' | 'star-outline' | 'telephone' | 'tool' | 'unlocked' | 'upload' | 'user' | 'video' | 'warning' | 'warning-circle' | 'wifi' | 'zoom-in' | 'zoom-out' | 'behance' | 'facebook' | 'facebook-square' | 'figma' | 'figma-square' | 'flickr' | 'flickr-square' | 'github' | 'instagram' | 'linkedin' | 'linkedin-square' | 'mastodon' | 'mastodon-square' | 'medium' | 'medium-square' | 'pinterest' | 'pinterest-square' | 'quora' | 'quora-square' | 'reddit' | 'reddit-square' | 'slack' | 'slack-square' | 'snapchat' | 'snapchat-square' | 'stackexchange' | 'stackexchange-square' | 'stackoverflow' | 'stackoverflow-square' | 'telegram' | 'tiktok' | 'tiktok-square' | 'twitter' | 'twitter-square' | 'vimeo' | 'vimeo-square' | 'whatsapp' | 'whatsapp-square' | 'youtube' | 'google' | 'designers-italia' | 'team-digitale' | 'file' | 'files' | 'file-audio' | 'file-compressed' | 'file-csv' | 'file-json' | 'file-odp' | 'file-ods' | 'file-odt' | 'file-pdf' | 'file-pdf-ext' | 'file-sheet' | 'file-slides' | 'file-txt' | 'file-video' | 'file-xml';
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "../abstracts/abstract.component";
|
|
3
|
+
import * as i2 from "../abstracts/abstract-form-component";
|
|
4
|
+
import * as i3 from "../components/core/accordion/accordion.component";
|
|
5
|
+
import * as i4 from "../components/core/alert/alert.component";
|
|
6
|
+
import * as i5 from "../components/core/badge/badge.directive";
|
|
7
|
+
import * as i6 from "../components/core/button/button.directive";
|
|
8
|
+
import * as i7 from "../components/core/callout/callout.component";
|
|
9
|
+
import * as i8 from "../components/core/card/card.component";
|
|
10
|
+
import * as i9 from "../components/core/carousel/carousel/carousel.component";
|
|
11
|
+
import * as i10 from "../components/core/carousel/carousel-item/carousel-item.component";
|
|
12
|
+
import * as i11 from "../components/core/chip/chip.component";
|
|
13
|
+
import * as i12 from "../components/core/collapse/collapse.component";
|
|
14
|
+
import * as i13 from "../components/core/dimmer/dimmer-buttons/dimmer-buttons.component";
|
|
15
|
+
import * as i14 from "../components/core/dimmer/dimmer.component";
|
|
16
|
+
import * as i15 from "../components/core/dimmer/dimmer-icon/dimmer-icon.component";
|
|
17
|
+
import * as i16 from "../components/core/dropdown/dropdown/dropdown.component";
|
|
18
|
+
import * as i17 from "../components/core/dropdown/dropdown-item/dropdown-item.component";
|
|
19
|
+
import * as i18 from "../components/core/forward/forward.directive";
|
|
20
|
+
import * as i19 from "../components/core/link/link.component";
|
|
21
|
+
import * as i20 from "../components/core/list/list/list.component";
|
|
22
|
+
import * as i21 from "../components/core/list/list-item/list-item.component";
|
|
23
|
+
import * as i22 from "../components/core/modal/modal.component";
|
|
24
|
+
import * as i23 from "../components/core/notifications/notifications.component";
|
|
25
|
+
import * as i24 from "../components/core/pagination/pagination.component";
|
|
26
|
+
import * as i25 from "../components/core/popover/popover.directive";
|
|
27
|
+
import * as i26 from "../components/core/progress-bar/progress-bar.component";
|
|
28
|
+
import * as i27 from "../components/core/progress-button/progress-button.component";
|
|
29
|
+
import * as i28 from "../components/core/rating/rating.component";
|
|
30
|
+
import * as i29 from "../components/core/spinner/spinner.component";
|
|
31
|
+
import * as i30 from "../components/core/steppers/steppers-container/steppers-container.component";
|
|
32
|
+
import * as i31 from "../components/core/steppers/steppers-item/steppers-item.component";
|
|
33
|
+
import * as i32 from "../components/core/tab/tab-container/tab-container.component";
|
|
34
|
+
import * as i33 from "../components/core/tab/tab-item/tab-item.component";
|
|
35
|
+
import * as i34 from "../components/core/table/table.component";
|
|
36
|
+
import * as i35 from "../components/core/tooltip/tooltip.directive";
|
|
37
|
+
import * as i36 from "../components/form/checkbox/checkbox.component";
|
|
38
|
+
import * as i37 from "../components/form/input/input.component";
|
|
39
|
+
import * as i38 from "../components/form/password-input/password-input.component";
|
|
40
|
+
import * as i39 from "../components/form/radio-button/radio-button.component";
|
|
41
|
+
import * as i40 from "../components/form/select/select.component";
|
|
42
|
+
import * as i41 from "../components/form/textarea/textarea.component";
|
|
43
|
+
import * as i42 from "../components/form/upload-drag-drop/upload-drag-drop.component";
|
|
44
|
+
import * as i43 from "../components/form/upload-file-list/upload-file-list.component";
|
|
45
|
+
import * as i44 from "../components/navigation/back-button/back-button.component";
|
|
46
|
+
import * as i45 from "../components/navigation/back-to-top/back-to-top.component";
|
|
47
|
+
import * as i46 from "../components/navigation/breadcrumbs/breadcrumb/breadcrumb.component";
|
|
48
|
+
import * as i47 from "../components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component";
|
|
49
|
+
import * as i48 from "../components/navigation/header/header.component";
|
|
50
|
+
import * as i49 from "../components/utils/icon/icon.component";
|
|
51
|
+
import * as i50 from "../components/utils/not-found-page/not-found-page.component";
|
|
52
|
+
import * as i51 from "../components/utils/language-switcher/language-switcher.component";
|
|
53
|
+
import * as i52 from "../pipes/mark-matching-text.pipe";
|
|
54
|
+
import * as i53 from "@angular/common";
|
|
55
|
+
import * as i54 from "@ngx-translate/core";
|
|
56
|
+
import * as i55 from "@angular/forms";
|
|
57
|
+
import * as i56 from "@angular/router";
|
|
58
|
+
export declare class ComponentsModule {
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentsModule, never>;
|
|
60
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentsModule, [typeof i1.AbstractComponent, typeof i2.AbstractFormComponent, typeof i3.AccordionComponent, typeof i4.AlertComponent, typeof i5.BadgeDirective, typeof i6.ButtonDirective, typeof i7.CalloutComponent, typeof i8.CardComponent, typeof i9.CarouselComponent, typeof i10.CarouselItemComponent, typeof i11.ChipComponent, typeof i12.CollapseComponent, typeof i13.DimmerButtonsComponent, typeof i14.DimmerComponent, typeof i15.DimmerIconComponent, typeof i16.DropdownComponent, typeof i17.DropdownItemComponent, typeof i18.ForwardDirective, typeof i19.LinkComponent, typeof i20.ListComponent, typeof i21.ListItemComponent, typeof i22.ModalComponent, typeof i23.NotificationsComponent, typeof i24.PaginationComponent, typeof i25.PopoverDirective, typeof i26.ProgressBarComponent, typeof i27.ProgressButtonComponent, typeof i28.RatingComponent, typeof i29.SpinnerComponent, typeof i30.SteppersContainerComponent, typeof i31.SteppersItemComponent, typeof i32.TabContainerComponent, typeof i33.TabItemComponent, typeof i34.TableComponent, typeof i35.TooltipDirective, typeof i36.CheckboxComponent, typeof i37.InputComponent, typeof i38.PasswordInputComponent, typeof i39.RadioButtonComponent, typeof i40.SelectComponent, typeof i41.TextareaComponent, typeof i42.UploadDragDropComponent, typeof i43.UploadFileListComponent, typeof i44.BackButtonComponent, typeof i45.BackToTopComponent, typeof i46.BreadcrumbComponent, typeof i47.BreadcrumbItemComponent, typeof i48.HeaderComponent, typeof i49.IconComponent, typeof i50.NotFoundPageComponent, typeof i51.LanguageSwitcherComponent, typeof i52.MarkMatchingTextPipe], [typeof i53.CommonModule, typeof i54.TranslateModule, typeof i55.ReactiveFormsModule, typeof i53.NgIf, typeof i53.NgForOf, typeof i56.RouterLink], [typeof i3.AccordionComponent, typeof i4.AlertComponent, typeof i5.BadgeDirective, typeof i6.ButtonDirective, typeof i7.CalloutComponent, typeof i8.CardComponent, typeof i9.CarouselComponent, typeof i10.CarouselItemComponent, typeof i11.ChipComponent, typeof i12.CollapseComponent, typeof i13.DimmerButtonsComponent, typeof i14.DimmerComponent, typeof i15.DimmerIconComponent, typeof i16.DropdownComponent, typeof i17.DropdownItemComponent, typeof i18.ForwardDirective, typeof i19.LinkComponent, typeof i20.ListComponent, typeof i21.ListItemComponent, typeof i22.ModalComponent, typeof i23.NotificationsComponent, typeof i24.PaginationComponent, typeof i25.PopoverDirective, typeof i26.ProgressBarComponent, typeof i27.ProgressButtonComponent, typeof i28.RatingComponent, typeof i29.SpinnerComponent, typeof i30.SteppersContainerComponent, typeof i31.SteppersItemComponent, typeof i32.TabContainerComponent, typeof i33.TabItemComponent, typeof i34.TableComponent, typeof i35.TooltipDirective, typeof i36.CheckboxComponent, typeof i37.InputComponent, typeof i38.PasswordInputComponent, typeof i39.RadioButtonComponent, typeof i40.SelectComponent, typeof i41.TextareaComponent, typeof i42.UploadDragDropComponent, typeof i43.UploadFileListComponent, typeof i44.BackButtonComponent, typeof i45.BackToTopComponent, typeof i46.BreadcrumbComponent, typeof i47.BreadcrumbItemComponent, typeof i48.HeaderComponent, typeof i49.IconComponent, typeof i50.NotFoundPageComponent, typeof i51.LanguageSwitcherComponent, typeof i52.MarkMatchingTextPipe]>;
|
|
61
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ComponentsModule>;
|
|
62
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { Notification, NotificationPosition, NotificationType } from '../../interfaces/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NotificationsService {
|
|
5
|
+
private subject;
|
|
6
|
+
/**
|
|
7
|
+
* Listen on notification arrived
|
|
8
|
+
* @param filterType filter type of notification
|
|
9
|
+
*/
|
|
10
|
+
onNotification(filterType?: NotificationType): Observable<Notification>;
|
|
11
|
+
/**
|
|
12
|
+
* Show new notification
|
|
13
|
+
* @param notification notification
|
|
14
|
+
*/
|
|
15
|
+
addNotification(notification: Notification): void;
|
|
16
|
+
/**
|
|
17
|
+
* Create new Standard notification
|
|
18
|
+
* @param title notification title
|
|
19
|
+
* @param message notification message
|
|
20
|
+
* @param dismissible notification dismissible
|
|
21
|
+
* @param duration notification duration (milliseconds)
|
|
22
|
+
* @param position notification position
|
|
23
|
+
*/
|
|
24
|
+
standard(title: string, message?: string, dismissible?: boolean, duration?: number, position?: NotificationPosition): void;
|
|
25
|
+
/**
|
|
26
|
+
* Create new Success notification
|
|
27
|
+
* @param title notification title
|
|
28
|
+
* @param message notification message
|
|
29
|
+
* @param dismissible notification dismissible
|
|
30
|
+
* @param duration notification duration (milliseconds)
|
|
31
|
+
* @param position notification position
|
|
32
|
+
*/
|
|
33
|
+
success(title: string, message?: string, dismissible?: boolean, duration?: number, position?: NotificationPosition): void;
|
|
34
|
+
/**
|
|
35
|
+
* Create new Error notification
|
|
36
|
+
* @param title notification title
|
|
37
|
+
* @param message notification message
|
|
38
|
+
* @param dismissible notification dismissible
|
|
39
|
+
* @param duration notification duration (milliseconds)
|
|
40
|
+
* @param position notification position
|
|
41
|
+
*/
|
|
42
|
+
error(title: string, message?: string, dismissible?: boolean, duration?: number, position?: NotificationPosition): void;
|
|
43
|
+
/**
|
|
44
|
+
* Create new Warning notification
|
|
45
|
+
* @param title notification title
|
|
46
|
+
* @param message notification message
|
|
47
|
+
* @param dismissible notification dismissible
|
|
48
|
+
* @param duration notification duration (milliseconds)
|
|
49
|
+
* @param position notification position
|
|
50
|
+
*/
|
|
51
|
+
warning(title: string, message?: string, dismissible?: boolean, duration?: number, position?: NotificationPosition): void;
|
|
52
|
+
/**
|
|
53
|
+
* Create new Info notification
|
|
54
|
+
* @param title notification title
|
|
55
|
+
* @param message notification message
|
|
56
|
+
* @param dismissible notification dismissible
|
|
57
|
+
* @param duration notification duration (milliseconds)
|
|
58
|
+
* @param position notification position
|
|
59
|
+
*/
|
|
60
|
+
info(title: string, message?: string, dismissible?: boolean, duration?: number, position?: NotificationPosition): void;
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsService, never>;
|
|
62
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationsService>;
|
|
63
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare type BooleanInput = boolean | 'true' | 'false';
|
|
2
|
+
/**
|
|
3
|
+
* Check if boolean input has true value and not is `undefined`
|
|
4
|
+
* @param booleanInput the boolean input
|
|
5
|
+
*/
|
|
6
|
+
export declare function isTrueBooleanInput(booleanInput?: BooleanInput): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Check if boolean input has false value or is `undefined`
|
|
9
|
+
* @param booleanInput the boolean input
|
|
10
|
+
*/
|
|
11
|
+
export declare function isFalseBooleanInput(booleanInput?: BooleanInput): boolean;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export declare class FileUtils {
|
|
3
|
+
/**
|
|
4
|
+
* Return the file size string
|
|
5
|
+
* @param file the file
|
|
6
|
+
* @param decimals decimal to show
|
|
7
|
+
*/
|
|
8
|
+
static getFileSizeString(file: File, decimals?: number): string;
|
|
9
|
+
/**
|
|
10
|
+
* Convert a file to base64 string
|
|
11
|
+
* @param file the base64 string
|
|
12
|
+
*/
|
|
13
|
+
static fileToBase64(file: File): Observable<string>;
|
|
14
|
+
/**
|
|
15
|
+
* Convert base64 to Blob
|
|
16
|
+
* @param base64 the base64 string
|
|
17
|
+
* @param mimeType the <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types">MIME type</a> (example 'application/pdf')
|
|
18
|
+
*/
|
|
19
|
+
static base64ToBlob(base64: string, mimeType: string): Blob;
|
|
20
|
+
/**
|
|
21
|
+
* Convert base64 to File
|
|
22
|
+
* @param base64 the base64 string
|
|
23
|
+
* @param mimeType the <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types">MIME type</a> (example 'application/pdf')
|
|
24
|
+
* @param filename the file name
|
|
25
|
+
*/
|
|
26
|
+
static base64ToFile(base64: string, mimeType: string, filename: string): File;
|
|
27
|
+
/**
|
|
28
|
+
* Extract the MIME type from base64 string
|
|
29
|
+
* @param base64 the base64 string
|
|
30
|
+
*/
|
|
31
|
+
static getMimeTypeFromBase64(base64: string): string | undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* General Email Regex (RFC 5322 Official Standard)
|
|
3
|
+
* http://emailregex.com/
|
|
4
|
+
*/
|
|
5
|
+
export declare const EMAIL_REGEX: RegExp;
|
|
6
|
+
/**
|
|
7
|
+
* Phone number Regex
|
|
8
|
+
*/
|
|
9
|
+
export declare const PHONE_NUMBER_REGEX: RegExp;
|
|
10
|
+
/**
|
|
11
|
+
* URL Regex
|
|
12
|
+
*/
|
|
13
|
+
export declare const URL_REGEX: RegExp;
|
|
14
|
+
/**
|
|
15
|
+
* The italian tax code Regex (Codice Fiscale)
|
|
16
|
+
*/
|
|
17
|
+
export declare const ITALIAN_TAX_CODE_REGEX: RegExp;
|
|
18
|
+
/**
|
|
19
|
+
* The VAT number Regex (Partita iva)
|
|
20
|
+
*/
|
|
21
|
+
export declare const VAT_NUMBER_REGEX: RegExp;
|
|
22
|
+
/**
|
|
23
|
+
* Italian CAP Regex
|
|
24
|
+
*/
|
|
25
|
+
export declare const CAP_REGEX: RegExp;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';
|
|
2
|
+
export declare class ItValidators {
|
|
3
|
+
static SpecialCharacterPattern: string;
|
|
4
|
+
/**
|
|
5
|
+
* Static pattern validator with custom error
|
|
6
|
+
* @param regex
|
|
7
|
+
* @param error
|
|
8
|
+
*/
|
|
9
|
+
static customPattern(regex: RegExp, error: ValidationErrors): ValidatorFn;
|
|
10
|
+
/**
|
|
11
|
+
* Set Validator if the condition is satisfied
|
|
12
|
+
* @param validator the validator to apply if the condition is true
|
|
13
|
+
* @param condition the condition
|
|
14
|
+
*/
|
|
15
|
+
static conditional(validator: ValidatorFn, condition: (control: AbstractControl) => boolean): ValidatorFn;
|
|
16
|
+
/**
|
|
17
|
+
* Check whether our password and confirm password are a match
|
|
18
|
+
* @param control
|
|
19
|
+
*/
|
|
20
|
+
static passwordMatch(control: AbstractControl): AbstractControl | null;
|
|
21
|
+
/**
|
|
22
|
+
* Password validator
|
|
23
|
+
* @param minLength minimum password length - default 10
|
|
24
|
+
* @param hasNumber check whether the entered password has a number - default true
|
|
25
|
+
* @param hasCapitalCase check whether the entered password has upper case letter - default true
|
|
26
|
+
* @param hasSmallCase check whether the entered password has a lower-case letter - default true
|
|
27
|
+
* @param hasSpecialCharacters check whether the entered password has a special character - default true
|
|
28
|
+
*/
|
|
29
|
+
static password(minLength?: number, hasNumber?: boolean, hasCapitalCase?: boolean, hasSmallCase?: boolean, hasSpecialCharacters?: boolean): ValidatorFn;
|
|
30
|
+
/**
|
|
31
|
+
* Email validator
|
|
32
|
+
*/
|
|
33
|
+
static get email(): ValidatorFn;
|
|
34
|
+
/**
|
|
35
|
+
* Phone number validator
|
|
36
|
+
*/
|
|
37
|
+
static get tel(): ValidatorFn;
|
|
38
|
+
/**
|
|
39
|
+
* URL validator
|
|
40
|
+
*/
|
|
41
|
+
static get url(): ValidatorFn;
|
|
42
|
+
/**
|
|
43
|
+
* Italian Tax Code validator
|
|
44
|
+
*/
|
|
45
|
+
static get taxCode(): ValidatorFn;
|
|
46
|
+
/**
|
|
47
|
+
* VAT Number validator
|
|
48
|
+
*/
|
|
49
|
+
static get vatNumber(): ValidatorFn;
|
|
50
|
+
/**
|
|
51
|
+
* Italian Postal Code validator (CAP)
|
|
52
|
+
*/
|
|
53
|
+
static get cap(): ValidatorFn;
|
|
54
|
+
/**
|
|
55
|
+
* Check if value is a valid RegExp
|
|
56
|
+
*/
|
|
57
|
+
static get regExp(): ValidatorFn;
|
|
58
|
+
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "design-angular-kit",
|
|
3
3
|
"description": "Un toolkit Angular conforme alle linee guida di design per i servizi web della PA",
|
|
4
|
-
"version": "1.0.0-
|
|
5
|
-
"license": "
|
|
4
|
+
"version": "1.0.0-10",
|
|
5
|
+
"license": "BSD-3-Clause",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"angular",
|
|
8
8
|
"toolkit",
|
|
@@ -15,19 +15,29 @@
|
|
|
15
15
|
"type": "git",
|
|
16
16
|
"url": "https://github.com/italia/design-angular-kit.git"
|
|
17
17
|
},
|
|
18
|
+
"author": {
|
|
19
|
+
"name": "Antonino Bonanno",
|
|
20
|
+
"email": "bonanno@net-serv.it",
|
|
21
|
+
"url": "https://github.com/AntoninoBonanno"
|
|
22
|
+
},
|
|
23
|
+
"contributors": [
|
|
24
|
+
{
|
|
25
|
+
"name": "Net Service Srl",
|
|
26
|
+
"email": "areatecnica@net-serv.it",
|
|
27
|
+
"url": "https://www.net-serv.it/"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
18
30
|
"dependencies": {
|
|
19
|
-
"
|
|
20
|
-
"@ng-bootstrap/ng-bootstrap": "13.0.0",
|
|
21
|
-
"@popperjs/core": "^2.10.2",
|
|
22
|
-
"bootstrap": "^5.2.0",
|
|
23
|
-
"tslib": "^2.0.0"
|
|
31
|
+
"tslib": "^2.4.1"
|
|
24
32
|
},
|
|
25
33
|
"peerDependencies": {
|
|
26
|
-
"@angular/
|
|
27
|
-
"@angular/
|
|
28
|
-
"@angular/
|
|
29
|
-
"
|
|
30
|
-
"
|
|
34
|
+
"@angular/animations": "^15.0.4",
|
|
35
|
+
"@angular/common": "^15.0.4",
|
|
36
|
+
"@angular/core": "^15.0.4",
|
|
37
|
+
"@angular/platform-browser": "^15.0.4",
|
|
38
|
+
"@ngx-translate/core": "^14.0.0",
|
|
39
|
+
"@ngx-translate/http-loader": "^7.0.0",
|
|
40
|
+
"bootstrap-italia": "^2.3.4"
|
|
31
41
|
},
|
|
32
42
|
"module": "fesm2015/design-angular-kit.mjs",
|
|
33
43
|
"es2020": "fesm2020/design-angular-kit.mjs",
|