design-angular-kit 1.0.0-9 → 1.0.0-prerelease.2
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 +212 -64
- package/assets/i18n/en.json +81 -12
- package/assets/i18n/it.json +80 -11
- package/esm2022/lib/abstracts/abstract-form.component.mjs +187 -0
- package/esm2022/lib/abstracts/abstract.component.mjs +45 -0
- package/esm2022/lib/components/core/accordion/accordion.component.mjs +39 -0
- package/esm2022/lib/components/core/alert/alert.component.mjs +71 -0
- package/esm2022/lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component.mjs +43 -0
- package/esm2022/lib/components/core/avatar/avatar-group/avatar-group.component.mjs +38 -0
- package/esm2022/lib/components/core/avatar/avatar.directive.mjs +78 -0
- package/esm2022/lib/components/core/avatar/avatar.module.mjs +33 -0
- package/esm2022/lib/components/core/badge/badge.directive.mjs +39 -0
- package/esm2022/lib/components/core/button/button.directive.mjs +86 -0
- package/esm2022/lib/components/core/callout/callout.component.mjs +57 -0
- package/esm2022/lib/components/core/card/card.component.mjs +59 -0
- package/esm2022/lib/components/core/carousel/carousel/carousel.component.mjs +84 -0
- package/esm2022/lib/components/core/carousel/carousel-item/carousel-item.component.mjs +19 -0
- package/esm2022/lib/components/core/carousel/carousel.module.mjs +18 -0
- package/esm2022/lib/components/core/chip/chip.component.mjs +136 -0
- package/esm2022/lib/components/core/collapse/collapse.component.mjs +104 -0
- package/esm2022/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.mjs +24 -0
- package/esm2022/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.mjs +11 -0
- package/esm2022/lib/components/core/dimmer/dimmer.component.mjs +55 -0
- package/esm2022/lib/components/core/dimmer/dimmer.module.mjs +19 -0
- package/esm2022/lib/components/core/dropdown/dropdown/dropdown.component.mjs +144 -0
- package/esm2022/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +61 -0
- package/esm2022/lib/components/core/dropdown/dropdown.module.mjs +18 -0
- package/esm2022/lib/components/core/forward/forward.directive.mjs +53 -0
- package/esm2022/lib/components/core/link/link.component.mjs +42 -0
- package/esm2022/lib/components/core/list/list/list.component.mjs +22 -0
- package/esm2022/lib/components/core/list/list-item/list-item.component.mjs +51 -0
- package/esm2022/lib/components/core/list/list.module.mjs +18 -0
- package/esm2022/lib/components/core/modal/modal.component.mjs +194 -0
- package/esm2022/lib/components/core/notifications/notifications.component.mjs +111 -0
- package/esm2022/lib/components/core/pagination/pagination.component.mjs +130 -0
- package/esm2022/lib/components/core/popover/popover.directive.mjs +176 -0
- package/esm2022/lib/components/core/progress-bar/progress-bar.component.mjs +34 -0
- package/esm2022/lib/components/core/progress-button/progress-button.component.mjs +25 -0
- package/esm2022/lib/components/core/spinner/spinner.component.mjs +30 -0
- package/esm2022/lib/components/core/steppers/steppers-container/steppers-container.component.mjs +116 -0
- package/esm2022/lib/components/core/steppers/steppers-item/steppers-item.component.mjs +20 -0
- package/esm2022/lib/components/core/steppers/steppers.module.mjs +18 -0
- package/esm2022/lib/components/core/tab/tab-container/tab-container.component.mjs +63 -0
- package/esm2022/lib/components/core/tab/tab-item/tab-item.component.mjs +39 -0
- package/esm2022/lib/components/core/tab/tab.module.mjs +18 -0
- package/esm2022/lib/components/core/table/sort/sort-header/sort-header.component.mjs +134 -0
- package/esm2022/lib/components/core/table/sort/sort.directive.mjs +123 -0
- package/esm2022/lib/components/core/table/table.component.mjs +45 -0
- package/esm2022/lib/components/core/table/table.module.mjs +19 -0
- package/esm2022/lib/components/core/tooltip/tooltip.directive.mjs +143 -0
- package/esm2022/lib/components/form/autocomplete/autocomplete.component.mjs +106 -0
- package/esm2022/lib/components/form/checkbox/checkbox.component.mjs +48 -0
- package/esm2022/lib/components/form/form.module.mjs +59 -0
- package/esm2022/lib/components/form/input/input.component.mjs +187 -0
- package/esm2022/lib/components/form/password-input/password-input.component.mjs +149 -0
- package/esm2022/lib/components/form/radio-button/radio-button.component.mjs +60 -0
- package/esm2022/lib/components/form/range/range.component.mjs +64 -0
- package/esm2022/lib/components/form/rating/rating.component.mjs +50 -0
- package/esm2022/lib/components/form/select/select.component.mjs +70 -0
- package/esm2022/lib/components/form/textarea/textarea.component.mjs +55 -0
- package/esm2022/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +142 -0
- package/esm2022/lib/components/form/upload-file-list/upload-file-list.component.mjs +107 -0
- package/esm2022/lib/components/navigation/back-button/back-button.component.mjs +67 -0
- package/esm2022/lib/components/navigation/back-to-top/back-to-top.component.mjs +58 -0
- package/esm2022/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.mjs +51 -0
- package/esm2022/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.mjs +21 -0
- package/esm2022/lib/components/navigation/breadcrumbs/breadcrumbs.module.mjs +18 -0
- package/esm2022/lib/components/navigation/header/header.component.mjs +87 -0
- package/esm2022/lib/components/navigation/megamenu/megamenu.component.mjs +27 -0
- package/esm2022/lib/components/navigation/navbar/navbar/navbar.component.mjs +40 -0
- package/esm2022/lib/components/navigation/navbar/navbar-item/navbar-item.component.mjs +11 -0
- package/esm2022/lib/components/navigation/navbar/navbar.module.mjs +18 -0
- package/esm2022/lib/components/utils/error-page/error-page.component.mjs +74 -0
- package/esm2022/lib/components/utils/icon/icon.component.mjs +58 -0
- package/esm2022/lib/components/utils/language-switcher/language-switcher.component.mjs +50 -0
- package/esm2022/lib/design-angular-kit.module.mjs +213 -0
- package/esm2022/lib/enums/colors.enums.mjs +12 -0
- package/esm2022/lib/enums/sizes.enum.mjs +9 -0
- package/esm2022/lib/interfaces/core.mjs +16 -0
- package/esm2022/lib/interfaces/design-angular-kit-config.mjs +7 -0
- package/esm2022/lib/interfaces/form.mjs +2 -0
- package/esm2022/lib/interfaces/icon.mjs +165 -0
- package/esm2022/lib/interfaces/sortable-table.mjs +6 -0
- package/esm2022/lib/pipes/date-ago.pipe.mjs +56 -0
- package/esm2022/lib/pipes/duration.pipe.mjs +110 -0
- package/esm2022/lib/pipes/mark-matching-text.pipe.mjs +48 -0
- package/esm2022/lib/provide-design-angular-kit.mjs +61 -0
- package/esm2022/lib/services/notification/notification.service.mjs +120 -0
- package/esm2022/lib/utils/coercion.mjs +18 -0
- package/esm2022/lib/utils/date-utils.mjs +160 -0
- package/esm2022/lib/utils/file-utils.mjs +73 -0
- package/esm2022/lib/utils/regex.mjs +31 -0
- package/esm2022/lib/validators/it-validators.mjs +153 -0
- package/esm2022/public_api.mjs +99 -0
- package/fesm2022/design-angular-kit.mjs +5556 -0
- package/fesm2022/design-angular-kit.mjs.map +1 -0
- package/lib/abstracts/{abstract-form-component.d.ts → abstract-form.component.d.ts} +12 -14
- package/lib/abstracts/abstract.component.d.ts +18 -8
- package/lib/components/core/accordion/accordion.component.d.ts +11 -5
- package/lib/components/core/alert/alert.component.d.ts +15 -10
- package/lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component.d.ts +29 -0
- package/lib/components/core/avatar/avatar-group/avatar-group.component.d.ts +13 -0
- package/lib/components/core/avatar/avatar.directive.d.ts +33 -0
- package/lib/components/core/avatar/avatar.module.d.ts +9 -0
- package/lib/components/core/badge/badge.directive.d.ts +14 -7
- package/lib/components/core/button/button.directive.d.ts +25 -15
- package/lib/components/core/callout/callout.component.d.ts +18 -20
- package/lib/components/core/card/card.component.d.ts +46 -18
- package/lib/components/core/carousel/carousel/carousel.component.d.ts +34 -15
- package/lib/components/core/carousel/carousel-item/carousel-item.component.d.ts +8 -3
- package/lib/components/core/carousel/carousel.module.d.ts +8 -0
- package/lib/components/core/chip/chip.component.d.ts +29 -15
- package/lib/components/core/collapse/collapse.component.d.ts +22 -15
- package/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.d.ts +3 -3
- package/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.d.ts +3 -3
- package/lib/components/core/dimmer/dimmer.component.d.ts +6 -6
- package/lib/components/core/dimmer/dimmer.module.d.ts +9 -0
- package/lib/components/core/dropdown/dropdown/dropdown.component.d.ts +30 -17
- package/lib/components/core/dropdown/dropdown-item/dropdown-item.component.d.ts +15 -12
- package/lib/components/core/dropdown/dropdown.module.d.ts +8 -0
- package/lib/components/core/forward/forward.directive.d.ts +3 -3
- package/lib/components/core/link/link.component.d.ts +14 -10
- package/lib/components/core/list/list/list.component.d.ts +20 -6
- package/lib/components/core/list/list-item/list-item.component.d.ts +23 -9
- package/lib/components/core/list/list.module.d.ts +8 -0
- package/lib/components/core/modal/modal.component.d.ts +89 -13
- package/lib/components/core/notifications/notifications.component.d.ts +9 -8
- package/lib/components/core/pagination/pagination.component.d.ts +71 -10
- package/lib/components/core/popover/popover.directive.d.ts +15 -14
- package/lib/components/core/progress-bar/progress-bar.component.d.ts +11 -8
- package/lib/components/core/progress-button/progress-button.component.d.ts +5 -6
- package/lib/components/core/spinner/spinner.component.d.ts +13 -10
- package/lib/components/core/steppers/steppers-container/steppers-container.component.d.ts +55 -27
- package/lib/components/core/steppers/steppers-item/steppers-item.component.d.ts +5 -4
- package/lib/components/core/steppers/steppers.module.d.ts +8 -0
- package/lib/components/core/tab/tab-container/tab-container.component.d.ts +15 -12
- package/lib/components/core/tab/tab-item/tab-item.component.d.ts +14 -10
- package/lib/components/core/tab/tab.module.d.ts +8 -0
- package/lib/components/core/table/sort/sort-header/sort-header.component.d.ts +72 -0
- package/lib/components/core/table/sort/sort.directive.d.ts +53 -0
- package/lib/components/core/table/table.component.d.ts +26 -20
- package/lib/components/core/table/table.module.d.ts +9 -0
- package/lib/components/core/tooltip/tooltip.directive.d.ts +12 -11
- package/lib/components/form/autocomplete/autocomplete.component.d.ts +55 -0
- package/lib/components/form/checkbox/checkbox.component.d.ts +23 -12
- package/lib/components/form/form.module.d.ts +17 -0
- package/lib/components/form/input/input.component.d.ts +42 -43
- package/lib/components/form/password-input/password-input.component.d.ts +35 -10
- package/lib/components/form/radio-button/radio-button.component.d.ts +20 -11
- package/lib/components/form/range/range.component.d.ts +42 -0
- package/lib/components/form/rating/rating.component.d.ts +24 -0
- package/lib/components/form/select/select.component.d.ts +12 -6
- package/lib/components/form/textarea/textarea.component.d.ts +15 -5
- package/lib/components/form/upload-drag-drop/upload-drag-drop.component.d.ts +18 -12
- package/lib/components/form/upload-file-list/upload-file-list.component.d.ts +14 -11
- package/lib/components/navigation/back-button/back-button.component.d.ts +8 -8
- package/lib/components/navigation/back-to-top/back-to-top.component.d.ts +15 -16
- package/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +12 -14
- package/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.d.ts +9 -8
- package/lib/components/navigation/breadcrumbs/breadcrumbs.module.d.ts +8 -0
- package/lib/components/navigation/header/header.component.d.ts +28 -25
- package/lib/components/navigation/megamenu/megamenu.component.d.ts +22 -0
- package/lib/components/navigation/navbar/navbar/navbar.component.d.ts +16 -0
- package/lib/components/navigation/navbar/navbar-item/navbar-item.component.d.ts +5 -0
- package/lib/components/navigation/navbar/navbar.module.d.ts +8 -0
- package/lib/components/utils/error-page/error-page.component.d.ts +44 -0
- package/lib/components/utils/icon/icon.component.d.ts +25 -17
- package/lib/components/utils/language-switcher/language-switcher.component.d.ts +9 -5
- package/lib/design-angular-kit.module.d.ts +44 -7
- package/lib/enums/colors.enums.d.ts +10 -0
- package/lib/enums/sizes.enum.d.ts +7 -0
- package/lib/interfaces/core.d.ts +16 -15
- package/lib/interfaces/design-angular-kit-config.d.ts +30 -0
- package/lib/interfaces/form.d.ts +9 -9
- package/lib/interfaces/icon.d.ts +4 -3
- package/lib/interfaces/sortable-table.d.ts +33 -0
- package/lib/pipes/date-ago.pipe.d.ts +17 -0
- package/lib/pipes/duration.pipe.d.ts +35 -0
- package/lib/pipes/mark-matching-text.pipe.d.ts +15 -7
- package/lib/provide-design-angular-kit.d.ts +7 -0
- package/lib/services/{notifications/notifications.service.d.ts → notification/notification.service.d.ts} +3 -3
- package/lib/utils/coercion.d.ts +14 -0
- package/lib/utils/date-utils.d.ts +78 -0
- package/lib/utils/file-utils.d.ts +1 -1
- package/lib/utils/regex.d.ts +5 -0
- package/lib/validators/it-validators.d.ts +9 -2
- package/package.json +17 -22
- package/public_api.d.ts +31 -4
- package/esm2020/lib/abstracts/abstract-form-component.mjs +0 -174
- package/esm2020/lib/abstracts/abstract.component.mjs +0 -27
- package/esm2020/lib/components/core/accordion/accordion.component.mjs +0 -31
- package/esm2020/lib/components/core/alert/alert.component.mjs +0 -69
- package/esm2020/lib/components/core/badge/badge.directive.mjs +0 -34
- package/esm2020/lib/components/core/button/button.directive.mjs +0 -80
- package/esm2020/lib/components/core/callout/callout.component.mjs +0 -84
- package/esm2020/lib/components/core/card/card.component.mjs +0 -58
- package/esm2020/lib/components/core/carousel/carousel/carousel.component.mjs +0 -66
- package/esm2020/lib/components/core/carousel/carousel-item/carousel-item.component.mjs +0 -14
- package/esm2020/lib/components/core/chip/chip.component.mjs +0 -89
- package/esm2020/lib/components/core/collapse/collapse.component.mjs +0 -101
- package/esm2020/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.mjs +0 -24
- package/esm2020/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.mjs +0 -11
- package/esm2020/lib/components/core/dimmer/dimmer.component.mjs +0 -59
- package/esm2020/lib/components/core/dropdown/dropdown/dropdown.component.mjs +0 -130
- package/esm2020/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +0 -68
- package/esm2020/lib/components/core/forward/forward.directive.mjs +0 -51
- package/esm2020/lib/components/core/link/link.component.mjs +0 -40
- package/esm2020/lib/components/core/list/list/list.component.mjs +0 -13
- package/esm2020/lib/components/core/list/list-item/list-item.component.mjs +0 -36
- package/esm2020/lib/components/core/modal/modal.component.mjs +0 -98
- package/esm2020/lib/components/core/notifications/notifications.component.mjs +0 -110
- package/esm2020/lib/components/core/pagination/pagination.component.mjs +0 -51
- package/esm2020/lib/components/core/popover/popover.directive.mjs +0 -179
- package/esm2020/lib/components/core/progress-bar/progress-bar.component.mjs +0 -34
- package/esm2020/lib/components/core/progress-button/progress-button.component.mjs +0 -27
- package/esm2020/lib/components/core/spinner/spinner.component.mjs +0 -35
- package/esm2020/lib/components/core/steppers/steppers-container/steppers-container.component.mjs +0 -119
- package/esm2020/lib/components/core/steppers/steppers-item/steppers-item.component.mjs +0 -18
- package/esm2020/lib/components/core/tab/tab-container/tab-container.component.mjs +0 -59
- package/esm2020/lib/components/core/tab/tab-item/tab-item.component.mjs +0 -36
- package/esm2020/lib/components/core/table/table.component.mjs +0 -57
- package/esm2020/lib/components/core/tooltip/tooltip.directive.mjs +0 -143
- package/esm2020/lib/components/form/checkbox/checkbox.component.mjs +0 -40
- package/esm2020/lib/components/form/input/input.component.mjs +0 -222
- package/esm2020/lib/components/form/password-input/password-input.component.mjs +0 -112
- package/esm2020/lib/components/form/radio-button/radio-button.component.mjs +0 -53
- package/esm2020/lib/components/form/select/select.component.mjs +0 -62
- package/esm2020/lib/components/form/textarea/textarea.component.mjs +0 -46
- package/esm2020/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +0 -137
- package/esm2020/lib/components/form/upload-file-list/upload-file-list.component.mjs +0 -104
- package/esm2020/lib/components/navigation/back-button/back-button.component.mjs +0 -69
- package/esm2020/lib/components/navigation/back-to-top/back-to-top.component.mjs +0 -74
- package/esm2020/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.mjs +0 -45
- package/esm2020/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.mjs +0 -23
- package/esm2020/lib/components/navigation/header/header.component.mjs +0 -63
- package/esm2020/lib/components/utils/icon/icon.component.mjs +0 -54
- package/esm2020/lib/components/utils/language-switcher/language-switcher.component.mjs +0 -39
- package/esm2020/lib/components/utils/not-found-page/not-found-page.component.mjs +0 -13
- package/esm2020/lib/design-angular-kit.module.mjs +0 -56
- package/esm2020/lib/interfaces/core.mjs +0 -16
- package/esm2020/lib/interfaces/form.mjs +0 -2
- package/esm2020/lib/interfaces/icon.mjs +0 -2
- package/esm2020/lib/modules/components.module.mjs +0 -257
- package/esm2020/lib/pipes/mark-matching-text.pipe.mjs +0 -36
- package/esm2020/lib/services/notifications/notifications.service.mjs +0 -120
- package/esm2020/lib/utils/boolean-input.mjs +0 -15
- package/esm2020/lib/utils/file-utils.mjs +0 -73
- package/esm2020/lib/utils/regex.mjs +0 -26
- package/esm2020/lib/validators/it-validators.mjs +0 -134
- package/esm2020/public_api.mjs +0 -70
- package/fesm2015/design-angular-kit.mjs +0 -3850
- package/fesm2015/design-angular-kit.mjs.map +0 -1
- package/fesm2020/design-angular-kit.mjs +0 -3797
- package/fesm2020/design-angular-kit.mjs.map +0 -1
- package/lib/components/utils/not-found-page/not-found-page.component.d.ts +0 -5
- package/lib/modules/components.module.d.ts +0 -61
- package/lib/utils/boolean-input.d.ts +0 -11
- /package/{esm2020 → esm2022}/design-angular-kit.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interfaces/utils.mjs +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ChangeDetectorRef, QueryList } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { BooleanInput } from "../../../../utils/boolean-input";
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, OnDestroy, QueryList } from '@angular/core';
|
|
2
|
+
import { ItBreadcrumbItemComponent } from '../breadcrumb-item/breadcrumb-item.component';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
|
-
|
|
4
|
+
import * as i1 from "../../../../utils/coercion";
|
|
5
|
+
export declare class ItBreadcrumbComponent implements AfterViewInit, OnDestroy {
|
|
6
6
|
private readonly _changeDetectorRef;
|
|
7
7
|
/**
|
|
8
8
|
* The character to use as separator
|
|
@@ -11,20 +11,18 @@ export declare class BreadcrumbComponent {
|
|
|
11
11
|
separator: string;
|
|
12
12
|
/**
|
|
13
13
|
* Dark style
|
|
14
|
+
* @default false
|
|
14
15
|
*/
|
|
15
|
-
dark?:
|
|
16
|
+
dark?: boolean;
|
|
16
17
|
/**
|
|
17
18
|
* The tab items
|
|
18
19
|
*/
|
|
19
|
-
items?: QueryList<
|
|
20
|
-
|
|
20
|
+
items?: QueryList<ItBreadcrumbItemComponent>;
|
|
21
|
+
private itemSubscriptions?;
|
|
21
22
|
constructor(_changeDetectorRef: ChangeDetectorRef);
|
|
22
23
|
ngAfterViewInit(): void;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
isLastItem(index: number): boolean;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbComponent, "it-breadcrumb", never, { "separator": "separator"; "dark": "dark"; }, {}, ["items"], never, false, never>;
|
|
24
|
+
ngOnDestroy(): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItBreadcrumbComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItBreadcrumbComponent, "it-breadcrumb", never, { "separator": { "alias": "separator"; "required": false; }; "dark": { "alias": "dark"; "required": false; }; }, {}, ["items"], never, true, never>;
|
|
27
|
+
static ngAcceptInputType_dark: i1.BooleanInput;
|
|
30
28
|
}
|
package/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.d.ts
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import { BooleanInput } from '../../../../utils/boolean-input';
|
|
3
2
|
import { IconName } from '../../../../interfaces/icon';
|
|
4
|
-
import {
|
|
3
|
+
import { ItLinkComponent } from '../../../core/link/link.component';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
|
|
5
|
+
import * as i1 from "../../../../utils/coercion";
|
|
6
|
+
export declare class ItBreadcrumbItemComponent extends ItLinkComponent {
|
|
7
7
|
/**
|
|
8
8
|
* Is active breadcrumb item
|
|
9
|
+
* @default false
|
|
9
10
|
*/
|
|
10
|
-
active?:
|
|
11
|
+
active?: boolean;
|
|
11
12
|
/**
|
|
12
13
|
* The name of icon to show
|
|
13
14
|
*/
|
|
14
|
-
iconName
|
|
15
|
+
iconName: IconName | undefined;
|
|
15
16
|
/**
|
|
16
17
|
* The content of item
|
|
17
18
|
*/
|
|
18
19
|
htmlContent: TemplateRef<any>;
|
|
19
|
-
|
|
20
|
-
static
|
|
21
|
-
static
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItBreadcrumbItemComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItBreadcrumbItemComponent, "it-breadcrumb-item", never, { "active": { "alias": "active"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
22
|
+
static ngAcceptInputType_active: i1.BooleanInput;
|
|
22
23
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./breadcrumb/breadcrumb.component";
|
|
3
|
+
import * as i2 from "./breadcrumb-item/breadcrumb-item.component";
|
|
4
|
+
export declare class ItBreadcrumbsModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItBreadcrumbsModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ItBreadcrumbsModule, never, [typeof i1.ItBreadcrumbComponent, typeof i2.ItBreadcrumbItemComponent], [typeof i1.ItBreadcrumbComponent, typeof i2.ItBreadcrumbItemComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ItBreadcrumbsModule>;
|
|
8
|
+
}
|
|
@@ -1,30 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BooleanInput } from '../../../utils/boolean-input';
|
|
3
|
-
import { AbstractComponent } from '../../../abstracts/abstract.component';
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
4
2
|
import * as i0 from "@angular/core";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
import * as i1 from "../../../utils/coercion";
|
|
4
|
+
export declare class ItHeaderComponent implements AfterViewInit, OnChanges {
|
|
5
|
+
light?: boolean;
|
|
6
|
+
sticky?: boolean;
|
|
7
|
+
showSlim?: boolean;
|
|
8
|
+
smallHeader?: boolean;
|
|
9
|
+
showSearch?: boolean;
|
|
10
|
+
slimTitle: string | undefined;
|
|
12
11
|
loginStyle: 'none' | 'default' | 'full';
|
|
13
|
-
smallHeader?: BooleanInput;
|
|
14
|
-
showSearch?: BooleanInput;
|
|
15
12
|
loginClick: EventEmitter<Event>;
|
|
16
13
|
searchClick: EventEmitter<Event>;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
static
|
|
29
|
-
static
|
|
14
|
+
private headerWrapper?;
|
|
15
|
+
megamenu?: boolean;
|
|
16
|
+
expand?: boolean;
|
|
17
|
+
private stickyHeader?;
|
|
18
|
+
constructor();
|
|
19
|
+
ngAfterViewInit(): void;
|
|
20
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
21
|
+
updateListeners(): void;
|
|
22
|
+
protected emitLoginClick(event: Event): void;
|
|
23
|
+
protected emitSearchClick(event: Event): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItHeaderComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItHeaderComponent, "it-header", never, { "light": { "alias": "light"; "required": false; }; "sticky": { "alias": "sticky"; "required": false; }; "showSlim": { "alias": "showSlim"; "required": false; }; "smallHeader": { "alias": "smallHeader"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "slimTitle": { "alias": "slimTitle"; "required": false; }; "loginStyle": { "alias": "loginStyle"; "required": false; }; "megamenu": { "alias": "megamenu"; "required": false; }; "expand": { "alias": "expand"; "required": false; }; }, { "loginClick": "loginClick"; "searchClick": "searchClick"; }, never, ["[slimLinkList]", "[slimRightZone]", "[brand]", "[rightZone]", "[navItems]"], true, never>;
|
|
26
|
+
static ngAcceptInputType_light: i1.BooleanInput;
|
|
27
|
+
static ngAcceptInputType_sticky: i1.BooleanInput;
|
|
28
|
+
static ngAcceptInputType_showSlim: i1.BooleanInput;
|
|
29
|
+
static ngAcceptInputType_smallHeader: i1.BooleanInput;
|
|
30
|
+
static ngAcceptInputType_showSearch: i1.BooleanInput;
|
|
31
|
+
static ngAcceptInputType_megamenu: i1.BooleanInput;
|
|
32
|
+
static ngAcceptInputType_expand: i1.BooleanInput;
|
|
30
33
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "../../../utils/coercion";
|
|
3
|
+
export declare class ItMegamenuComponent {
|
|
4
|
+
/**
|
|
5
|
+
* Megamenu mode
|
|
6
|
+
*/
|
|
7
|
+
mode: 'right-section' | 'left-section' | 'normal';
|
|
8
|
+
/**
|
|
9
|
+
* To show Megamenu header
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
header?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* To show Megamenu footer
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
footer?: boolean;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItMegamenuComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItMegamenuComponent, "it-megamenu", never, { "mode": { "alias": "mode"; "required": false; }; "header": { "alias": "header"; "required": false; }; "footer": { "alias": "footer"; "required": false; }; }, {}, never, ["[megamenuLeftZone]", "[megamenuHeadingLink]", "[megamenuLinkList]", "[megamenuFooter]"], true, never>;
|
|
20
|
+
static ngAcceptInputType_header: i1.BooleanInput;
|
|
21
|
+
static ngAcceptInputType_footer: i1.BooleanInput;
|
|
22
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "../../../../utils/coercion";
|
|
4
|
+
export declare class ItNavBarComponent implements AfterViewInit {
|
|
5
|
+
megamenu?: boolean;
|
|
6
|
+
expand?: boolean;
|
|
7
|
+
private collapseButton?;
|
|
8
|
+
private collapseView?;
|
|
9
|
+
private navbar?;
|
|
10
|
+
ngAfterViewInit(): void;
|
|
11
|
+
toggleCollapse(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItNavBarComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItNavBarComponent, "it-navbar", never, { "megamenu": { "alias": "megamenu"; "required": false; }; "expand": { "alias": "expand"; "required": false; }; }, {}, never, ["[navItems]"], true, never>;
|
|
14
|
+
static ngAcceptInputType_megamenu: i1.BooleanInput;
|
|
15
|
+
static ngAcceptInputType_expand: i1.BooleanInput;
|
|
16
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ItNavBarItemComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItNavBarItemComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItNavBarItemComponent, "it-navbar-item", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./navbar/navbar.component";
|
|
3
|
+
import * as i2 from "./navbar-item/navbar-item.component";
|
|
4
|
+
export declare class ItNavBarModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItNavBarModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ItNavBarModule, never, [typeof i1.ItNavBarComponent, typeof i2.ItNavBarItemComponent], [typeof i1.ItNavBarComponent, typeof i2.ItNavBarItemComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ItNavBarModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ActivatedRoute } from '@angular/router';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "../../../utils/coercion";
|
|
4
|
+
export declare class ItErrorPageComponent {
|
|
5
|
+
private readonly route;
|
|
6
|
+
/**
|
|
7
|
+
* The error code to show
|
|
8
|
+
*/
|
|
9
|
+
errorCode: number | 404 | 403 | 500 | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Show/Hide error code
|
|
12
|
+
* @default true - show
|
|
13
|
+
*/
|
|
14
|
+
showErrorCode?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Custom error title
|
|
17
|
+
* - If set it will be displayed instead of the default title.
|
|
18
|
+
* - It is possible to use i18n keys
|
|
19
|
+
*/
|
|
20
|
+
errorTitle: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Custom error description
|
|
23
|
+
* - If set it will be displayed instead of the default description.
|
|
24
|
+
* - It is possible to use i18n keys
|
|
25
|
+
*/
|
|
26
|
+
errorDescription: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Show/Hide back button
|
|
29
|
+
* @default true - show
|
|
30
|
+
*/
|
|
31
|
+
showBackButton?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Show/Hide home button
|
|
34
|
+
* @default true - show
|
|
35
|
+
*/
|
|
36
|
+
showHomeButton?: boolean;
|
|
37
|
+
constructor(route: ActivatedRoute);
|
|
38
|
+
get isDefaultErrorCode(): boolean;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItErrorPageComponent, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItErrorPageComponent, "it-error-page", never, { "errorCode": { "alias": "errorCode"; "required": false; }; "showErrorCode": { "alias": "showErrorCode"; "required": false; }; "errorTitle": { "alias": "errorTitle"; "required": false; }; "errorDescription": { "alias": "errorDescription"; "required": false; }; "showBackButton": { "alias": "showBackButton"; "required": false; }; "showHomeButton": { "alias": "showHomeButton"; "required": false; }; }, {}, never, never, true, never>;
|
|
41
|
+
static ngAcceptInputType_showErrorCode: i1.BooleanInput;
|
|
42
|
+
static ngAcceptInputType_showBackButton: i1.BooleanInput;
|
|
43
|
+
static ngAcceptInputType_showHomeButton: i1.BooleanInput;
|
|
44
|
+
}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IconColor, IconName, IconSize } from "../../../interfaces/icon";
|
|
3
|
-
import { BooleanInput } from "../../../utils/boolean-input";
|
|
1
|
+
import { IconColor, IconName, IconSize } from '../../../interfaces/icon';
|
|
4
2
|
import * as i0 from "@angular/core";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
protected readonly _elementRef: ElementRef;
|
|
3
|
+
import * as i1 from "../../../utils/coercion";
|
|
4
|
+
export declare class ItIconComponent {
|
|
8
5
|
/**
|
|
9
6
|
* The icon name
|
|
10
7
|
*/
|
|
@@ -12,29 +9,40 @@ export declare class IconComponent implements AfterViewInit {
|
|
|
12
9
|
/**
|
|
13
10
|
* The icon size
|
|
14
11
|
*/
|
|
15
|
-
size
|
|
12
|
+
size: IconSize | undefined;
|
|
16
13
|
/**
|
|
17
14
|
* The icon color
|
|
18
15
|
*/
|
|
19
|
-
color
|
|
16
|
+
color: IconColor | undefined;
|
|
20
17
|
/**
|
|
21
18
|
* Create a padding proportional to the size of the surrounding icon.
|
|
19
|
+
* @default false
|
|
22
20
|
*/
|
|
23
|
-
padded?:
|
|
21
|
+
padded?: boolean;
|
|
24
22
|
/**
|
|
25
|
-
* Custom class
|
|
23
|
+
* Custom class of svg
|
|
26
24
|
*/
|
|
27
|
-
|
|
25
|
+
svgClass: string | undefined;
|
|
28
26
|
/**
|
|
29
27
|
* Return the icon href
|
|
30
28
|
*/
|
|
31
|
-
get iconHref(): string;
|
|
29
|
+
protected get iconHref(): string;
|
|
32
30
|
/**
|
|
33
31
|
* Return the icon class
|
|
34
32
|
*/
|
|
35
|
-
get iconClass(): string;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
protected get iconClass(): string;
|
|
34
|
+
/**
|
|
35
|
+
* The bootstrap-italia asset folder path
|
|
36
|
+
* @default ./bootstrap-italia
|
|
37
|
+
*/
|
|
38
|
+
protected assetBasePath: string;
|
|
39
|
+
/**
|
|
40
|
+
* Custom Waria label
|
|
41
|
+
*/
|
|
42
|
+
labelWaria: string | undefined;
|
|
43
|
+
get isAriaHidden(): boolean;
|
|
44
|
+
constructor();
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItIconComponent, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItIconComponent, "it-icon", never, { "name": { "alias": "name"; "required": true; }; "size": { "alias": "size"; "required": false; }; "color": { "alias": "color"; "required": false; }; "padded": { "alias": "padded"; "required": false; }; "svgClass": { "alias": "svgClass"; "required": false; }; "labelWaria": { "alias": "labelWaria"; "required": false; }; }, {}, never, never, true, never>;
|
|
47
|
+
static ngAcceptInputType_padded: i1.BooleanInput;
|
|
40
48
|
}
|
|
@@ -3,14 +3,18 @@ import { Observable } from 'rxjs';
|
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
4
|
import { AvailableLanguage } from '../../../interfaces/utils';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class ItLanguageSwitcherComponent implements OnInit {
|
|
7
7
|
private readonly translateService;
|
|
8
8
|
/**
|
|
9
9
|
* The available languages
|
|
10
10
|
* @default The languages available through TranslateService (ngx-translate)
|
|
11
11
|
*/
|
|
12
|
-
availableLanguages
|
|
13
|
-
|
|
12
|
+
availableLanguages: Array<AvailableLanguage> | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Dropdown mode
|
|
15
|
+
*/
|
|
16
|
+
mode: 'button' | 'link';
|
|
17
|
+
protected currentLang$: Observable<AvailableLanguage | undefined>;
|
|
14
18
|
constructor(translateService: TranslateService);
|
|
15
19
|
ngOnInit(): void;
|
|
16
20
|
/**
|
|
@@ -18,6 +22,6 @@ export declare class LanguageSwitcherComponent implements OnInit {
|
|
|
18
22
|
* @param lang the language code
|
|
19
23
|
*/
|
|
20
24
|
changeLanguage(lang: string): void;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItLanguageSwitcherComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItLanguageSwitcherComponent, "it-language-switcher", never, { "availableLanguages": { "alias": "availableLanguages"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; }, {}, never, never, true, never>;
|
|
23
27
|
}
|
|
@@ -1,12 +1,49 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import { DesignAngularKitConfig } from './interfaces/design-angular-kit-config';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./
|
|
4
|
-
import * as i2 from "
|
|
5
|
-
import * as i3 from "
|
|
4
|
+
import * as i1 from "./components/core/accordion/accordion.component";
|
|
5
|
+
import * as i2 from "./components/core/alert/alert.component";
|
|
6
|
+
import * as i3 from "./components/core/avatar/avatar.module";
|
|
7
|
+
import * as i4 from "./components/core/badge/badge.directive";
|
|
8
|
+
import * as i5 from "./components/core/button/button.directive";
|
|
9
|
+
import * as i6 from "./components/core/callout/callout.component";
|
|
10
|
+
import * as i7 from "./components/core/card/card.component";
|
|
11
|
+
import * as i8 from "./components/core/carousel/carousel.module";
|
|
12
|
+
import * as i9 from "./components/core/chip/chip.component";
|
|
13
|
+
import * as i10 from "./components/core/collapse/collapse.component";
|
|
14
|
+
import * as i11 from "./components/core/dimmer/dimmer.module";
|
|
15
|
+
import * as i12 from "./components/core/dropdown/dropdown.module";
|
|
16
|
+
import * as i13 from "./components/core/forward/forward.directive";
|
|
17
|
+
import * as i14 from "./components/core/link/link.component";
|
|
18
|
+
import * as i15 from "./components/core/list/list.module";
|
|
19
|
+
import * as i16 from "./components/core/modal/modal.component";
|
|
20
|
+
import * as i17 from "./components/core/notifications/notifications.component";
|
|
21
|
+
import * as i18 from "./components/core/pagination/pagination.component";
|
|
22
|
+
import * as i19 from "./components/core/popover/popover.directive";
|
|
23
|
+
import * as i20 from "./components/core/progress-bar/progress-bar.component";
|
|
24
|
+
import * as i21 from "./components/core/progress-button/progress-button.component";
|
|
25
|
+
import * as i22 from "./components/core/spinner/spinner.component";
|
|
26
|
+
import * as i23 from "./components/core/steppers/steppers.module";
|
|
27
|
+
import * as i24 from "./components/core/tab/tab.module";
|
|
28
|
+
import * as i25 from "./components/core/table/table.module";
|
|
29
|
+
import * as i26 from "./components/core/tooltip/tooltip.directive";
|
|
30
|
+
import * as i27 from "./components/form/form.module";
|
|
31
|
+
import * as i28 from "./components/navigation/back-button/back-button.component";
|
|
32
|
+
import * as i29 from "./components/navigation/back-to-top/back-to-top.component";
|
|
33
|
+
import * as i30 from "./components/navigation/breadcrumbs/breadcrumbs.module";
|
|
34
|
+
import * as i31 from "./components/navigation/header/header.component";
|
|
35
|
+
import * as i32 from "./components/navigation/navbar/navbar.module";
|
|
36
|
+
import * as i33 from "./components/navigation/megamenu/megamenu.component";
|
|
37
|
+
import * as i34 from "./components/utils/error-page/error-page.component";
|
|
38
|
+
import * as i35 from "./components/utils/icon/icon.component";
|
|
39
|
+
import * as i36 from "./components/utils/language-switcher/language-switcher.component";
|
|
40
|
+
import * as i37 from "./pipes/date-ago.pipe";
|
|
41
|
+
import * as i38 from "./pipes/duration.pipe";
|
|
42
|
+
import * as i39 from "./pipes/mark-matching-text.pipe";
|
|
6
43
|
export declare class DesignAngularKitModule {
|
|
7
|
-
|
|
8
|
-
|
|
44
|
+
static forRoot(config?: DesignAngularKitConfig): ModuleWithProviders<DesignAngularKitModule>;
|
|
45
|
+
static forChild(): ModuleWithProviders<DesignAngularKitModule>;
|
|
9
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<DesignAngularKitModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DesignAngularKitModule, never, [typeof i1.
|
|
47
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DesignAngularKitModule, never, [typeof i1.ItAccordionComponent, typeof i2.ItAlertComponent, typeof i3.ItAvatarModule, typeof i4.ItBadgeDirective, typeof i5.ItButtonDirective, typeof i6.ItCalloutComponent, typeof i7.ItCardComponent, typeof i8.ItCarouselModule, typeof i9.ItChipComponent, typeof i10.ItCollapseComponent, typeof i11.ItDimmerModule, typeof i12.ItDropdownModule, typeof i13.ItForwardDirective, typeof i14.ItLinkComponent, typeof i15.ItListModule, typeof i16.ItModalComponent, typeof i17.ItNotificationsComponent, typeof i18.ItPaginationComponent, typeof i19.ItPopoverDirective, typeof i20.ItProgressBarComponent, typeof i21.ItProgressButtonComponent, typeof i22.ItSpinnerComponent, typeof i23.ItSteppersModule, typeof i24.ItTabModule, typeof i25.ItTableModule, typeof i26.ItTooltipDirective, typeof i27.ItFormModule, typeof i28.ItBackButtonComponent, typeof i29.ItBackToTopComponent, typeof i30.ItBreadcrumbsModule, typeof i31.ItHeaderComponent, typeof i32.ItNavBarModule, typeof i33.ItMegamenuComponent, typeof i34.ItErrorPageComponent, typeof i35.ItIconComponent, typeof i36.ItLanguageSwitcherComponent, typeof i37.ItDateAgoPipe, typeof i38.ItDurationPipe, typeof i39.ItMarkMatchingTextPipe], [typeof i1.ItAccordionComponent, typeof i2.ItAlertComponent, typeof i3.ItAvatarModule, typeof i4.ItBadgeDirective, typeof i5.ItButtonDirective, typeof i6.ItCalloutComponent, typeof i7.ItCardComponent, typeof i8.ItCarouselModule, typeof i9.ItChipComponent, typeof i10.ItCollapseComponent, typeof i11.ItDimmerModule, typeof i12.ItDropdownModule, typeof i13.ItForwardDirective, typeof i14.ItLinkComponent, typeof i15.ItListModule, typeof i16.ItModalComponent, typeof i17.ItNotificationsComponent, typeof i18.ItPaginationComponent, typeof i19.ItPopoverDirective, typeof i20.ItProgressBarComponent, typeof i21.ItProgressButtonComponent, typeof i22.ItSpinnerComponent, typeof i23.ItSteppersModule, typeof i24.ItTabModule, typeof i25.ItTableModule, typeof i26.ItTooltipDirective, typeof i27.ItFormModule, typeof i28.ItBackButtonComponent, typeof i29.ItBackToTopComponent, typeof i30.ItBreadcrumbsModule, typeof i31.ItHeaderComponent, typeof i32.ItNavBarModule, typeof i33.ItMegamenuComponent, typeof i34.ItErrorPageComponent, typeof i35.ItIconComponent, typeof i36.ItLanguageSwitcherComponent, typeof i37.ItDateAgoPipe, typeof i38.ItDurationPipe, typeof i39.ItMarkMatchingTextPipe]>;
|
|
11
48
|
static ɵinj: i0.ɵɵInjectorDeclaration<DesignAngularKitModule>;
|
|
12
49
|
}
|
package/lib/interfaces/core.d.ts
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { IconName } from './icon';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
2
|
+
export type AlertColor = 'primary' | 'info' | 'success' | 'warning' | 'danger';
|
|
3
|
+
export 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 type ButtonSize = 'lg' | 'sm' | 'xs';
|
|
5
|
+
export type ButtonType = 'submit' | 'button';
|
|
6
|
+
export type CalloutColor = 'success' | 'warning' | 'danger' | 'important' | 'note';
|
|
7
|
+
export type CalloutAppearance = 'default' | 'highlight' | 'more';
|
|
8
|
+
export type ChipColor = 'primary' | 'secondary' | 'success' | 'danger' | 'warning';
|
|
9
|
+
export type ElementPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
10
|
+
export type ProgressBarColor = 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
11
|
+
export type BadgeColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
12
|
+
export type TableColor = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
|
|
13
|
+
export type TableHeadColor = 'light' | 'dark';
|
|
14
|
+
export type TableResponsive = 'responsive' | 'responsive-sm' | 'responsive-md' | 'responsive-lg' | 'responsive-xl' | 'responsive-xxl';
|
|
15
|
+
export type VerticalAlignment = 'align-baseline' | 'align-top' | 'align-middle' | 'align-bottom' | 'align-text-bottom' | 'align-text-top';
|
|
16
|
+
export type DropdownDirection = 'dropup' | 'dropend' | 'dropstart';
|
|
17
|
+
export type CarouselType = 'default' | 'three-cols' | 'three-cols-arrow-visible';
|
|
17
18
|
export interface Notification {
|
|
18
19
|
/**
|
|
19
20
|
* Notification type
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { InjectionToken, Provider } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* The bootstrap-italia asset folder path
|
|
4
|
+
* @default ./bootstrap-italia
|
|
5
|
+
*/
|
|
6
|
+
export declare const IT_ASSET_BASE_PATH: InjectionToken<string>;
|
|
7
|
+
export interface DesignAngularKitConfig {
|
|
8
|
+
/**
|
|
9
|
+
* The bootstrap-italia asset folder path
|
|
10
|
+
* @default ./bootstrap-italia
|
|
11
|
+
*/
|
|
12
|
+
assetBasePath?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Load the <a href="https://italia.github.io/bootstrap-italia/docs/come-iniziare/introduzione/#fonts">bootstrap-italia fonts</a>
|
|
15
|
+
* @default true
|
|
16
|
+
*/
|
|
17
|
+
loadFont?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The TranslateModule loader
|
|
20
|
+
* @param itPrefix the design-angular-kit i18n path
|
|
21
|
+
* @param itSuffix the design-angular-kit i18n suffix
|
|
22
|
+
* @default
|
|
23
|
+
* {
|
|
24
|
+
* provide: TranslateLoader,
|
|
25
|
+
* useFactory: (http: HttpClient) => new TranslateHttpLoader(http, `${assetBasePath}/i18n/`, `.json?v${version}`),
|
|
26
|
+
* deps: [HttpClient],
|
|
27
|
+
* }
|
|
28
|
+
*/
|
|
29
|
+
translateLoader?: (itPrefix: string, itSuffix: string) => Provider;
|
|
30
|
+
}
|
package/lib/interfaces/form.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { IconName } from './icon';
|
|
2
|
-
export
|
|
3
|
-
export interface SelectControlOption {
|
|
4
|
-
value:
|
|
2
|
+
export type InputControlType = 'text' | 'email' | 'number' | 'date' | 'time' | 'tel' | 'color' | 'url';
|
|
3
|
+
export interface SelectControlOption<T = any> {
|
|
4
|
+
value: T;
|
|
5
5
|
text?: string;
|
|
6
|
-
selected?: boolean | ((value:
|
|
7
|
-
disabled?: boolean | ((value:
|
|
6
|
+
selected?: boolean | ((value: T) => boolean);
|
|
7
|
+
disabled?: boolean | ((value: T) => boolean);
|
|
8
8
|
}
|
|
9
|
-
export interface SelectControlGroup {
|
|
9
|
+
export interface SelectControlGroup<T = any> {
|
|
10
10
|
label: string;
|
|
11
|
-
options: Array<SelectControlOption
|
|
11
|
+
options: Array<SelectControlOption<T>>;
|
|
12
12
|
dragdrop?: boolean;
|
|
13
13
|
}
|
|
14
14
|
export interface UploadFileListItem {
|
|
@@ -46,7 +46,7 @@ export interface UploadFileListItem {
|
|
|
46
46
|
/**
|
|
47
47
|
* Elemento disponibile per l'autocompletamento del it-form-input
|
|
48
48
|
*/
|
|
49
|
-
export interface AutocompleteItem {
|
|
49
|
+
export interface AutocompleteItem<T = any> {
|
|
50
50
|
/** Valore voce di autocompletamento */
|
|
51
51
|
value: string;
|
|
52
52
|
/** Opzionale. Path in cui ricercare l'immagine dell'avatar da posizionare a sinistra della voce di autocompletamento */
|
|
@@ -63,5 +63,5 @@ export interface AutocompleteItem {
|
|
|
63
63
|
* Attribute not used for autocomplete rendering.
|
|
64
64
|
* It can be useful to retrieve some extra information when selecting the autocomplete item
|
|
65
65
|
*/
|
|
66
|
-
additionalData?:
|
|
66
|
+
additionalData?: T;
|
|
67
67
|
}
|
package/lib/interfaces/icon.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export type IconSize = 'xs' | 'sm' | 'lg' | 'xl';
|
|
2
|
+
export type IconColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'light' | 'white';
|
|
3
|
+
export type IconName = typeof IconNameArray[number];
|
|
4
|
+
export declare const IconNameArray: readonly ["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", "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-ppt", "file-txt", "file-video", "file-xml", "behance", "facebook", "facebook-square", "figma", "figma-square", "flickr", "flickr-square", "github", "instagram", "linkedin", "linkedin-square", "mastodon", "mastodon-square", "medium", "medium-square", "moodle", "moodle-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"];
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { InjectionToken } from "@angular/core";
|
|
2
|
+
export type SortDirection = 'asc' | 'desc' | undefined;
|
|
3
|
+
/** Position of the arrow that displays when sorted. */
|
|
4
|
+
export type SortHeaderArrowPosition = 'before' | 'after';
|
|
5
|
+
/** Interface for a directive that holds sorting state consumed by `ItSortHeader`. */
|
|
6
|
+
export interface ItSortable {
|
|
7
|
+
/** The id of the column being sorted. */
|
|
8
|
+
id: string;
|
|
9
|
+
/** Starting sort direction. */
|
|
10
|
+
start?: SortDirection;
|
|
11
|
+
/** Whether to disable clearing the sorting state. */
|
|
12
|
+
disableSortClear?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/** The current sort state. */
|
|
15
|
+
export interface ItSortEvent {
|
|
16
|
+
/** The id of the column being sorted. */
|
|
17
|
+
active: string;
|
|
18
|
+
/** The sort direction. */
|
|
19
|
+
direction: SortDirection;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Default options for `it-sort`.
|
|
23
|
+
*/
|
|
24
|
+
export interface ItSortDefaultOptions {
|
|
25
|
+
/** Whether to disable clearing the sorting state. */
|
|
26
|
+
disableClear?: boolean;
|
|
27
|
+
/** Position of the arrow that displays when sorted. */
|
|
28
|
+
arrowPosition?: SortHeaderArrowPosition;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Injection token to be used to override the default options for `it-sort`.
|
|
32
|
+
*/
|
|
33
|
+
export declare const IT_SORT_DEFAULT_OPTIONS: InjectionToken<ItSortDefaultOptions>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { TranslatePipe } from '@ngx-translate/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Indicates in a textual way how much time has passed since the indicated date
|
|
6
|
+
* @example 2 hours ago
|
|
7
|
+
*/
|
|
8
|
+
export declare class ItDateAgoPipe extends TranslatePipe implements PipeTransform {
|
|
9
|
+
/**
|
|
10
|
+
* Indicates in a textual way how much time has passed since the indicated date
|
|
11
|
+
* @example 2 hours ago
|
|
12
|
+
* @param value the Date or date string
|
|
13
|
+
*/
|
|
14
|
+
transform(value: string | Date): string;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItDateAgoPipe, never>;
|
|
16
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ItDateAgoPipe, "itDateAgo", true>;
|
|
17
|
+
}
|