design-angular-kit 1.0.0-2 → 1.0.0-21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +102 -26
- package/assets/i18n/en.json +122 -0
- package/assets/i18n/it.json +52 -11
- package/esm2022/lib/abstracts/abstract-form.component.mjs +186 -0
- package/esm2022/lib/abstracts/abstract.component.mjs +45 -0
- package/esm2022/lib/components/components.module.mjs +188 -0
- package/esm2022/lib/components/core/accordion/accordion.component.mjs +38 -0
- package/esm2022/lib/components/core/alert/alert.component.mjs +74 -0
- package/esm2022/lib/components/core/badge/badge.directive.mjs +38 -0
- package/esm2022/lib/components/core/button/button.directive.mjs +85 -0
- package/esm2022/lib/components/core/callout/callout.component.mjs +57 -0
- package/esm2022/lib/components/core/card/card.component.mjs +64 -0
- package/esm2022/lib/components/core/carousel/carousel/carousel.component.mjs +89 -0
- package/esm2022/lib/components/core/carousel/carousel-item/carousel-item.component.mjs +19 -0
- package/esm2022/lib/components/core/carousel/carousel.module.mjs +23 -0
- package/esm2022/lib/components/core/chip/chip.component.mjs +96 -0
- package/esm2022/lib/components/core/collapse/collapse.component.mjs +101 -0
- package/esm2022/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.mjs +24 -0
- package/esm2022/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.mjs +11 -0
- package/esm2022/lib/components/core/dimmer/dimmer.component.mjs +59 -0
- package/esm2022/lib/components/core/dimmer/dimmer.module.mjs +27 -0
- package/esm2022/lib/components/core/dropdown/dropdown/dropdown.component.mjs +143 -0
- package/esm2022/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +68 -0
- package/esm2022/lib/components/core/dropdown/dropdown.module.mjs +18 -0
- package/esm2022/lib/components/core/forward/forward.directive.mjs +53 -0
- package/esm2022/lib/components/core/link/link.component.mjs +46 -0
- package/esm2022/lib/components/core/list/list/list.component.mjs +17 -0
- package/esm2022/lib/components/core/list/list-item/list-item.component.mjs +40 -0
- package/esm2022/lib/components/core/list/list.module.mjs +23 -0
- package/esm2022/lib/components/core/modal/modal.component.mjs +192 -0
- package/esm2022/lib/components/core/notifications/notifications.component.mjs +111 -0
- package/esm2022/lib/components/core/pagination/pagination.component.mjs +133 -0
- package/esm2022/lib/components/core/popover/popover.directive.mjs +175 -0
- package/esm2022/lib/components/core/progress-bar/progress-bar.component.mjs +35 -0
- package/esm2022/lib/components/core/progress-button/progress-button.component.mjs +27 -0
- package/esm2022/lib/components/core/spinner/spinner.component.mjs +36 -0
- package/esm2022/lib/components/core/steppers/steppers-container/steppers-container.component.mjs +138 -0
- package/esm2022/lib/components/core/steppers/steppers-item/steppers-item.component.mjs +19 -0
- package/esm2022/lib/components/core/steppers/steppers.module.mjs +23 -0
- package/esm2022/lib/components/core/tab/tab-container/tab-container.component.mjs +60 -0
- package/esm2022/lib/components/core/tab/tab-item/tab-item.component.mjs +36 -0
- package/esm2022/lib/components/core/tab/tab.module.mjs +23 -0
- package/esm2022/lib/components/core/table/table.component.mjs +57 -0
- package/esm2022/lib/components/core/tooltip/tooltip.directive.mjs +142 -0
- package/esm2022/lib/components/form/checkbox/checkbox.component.mjs +49 -0
- package/esm2022/lib/components/form/form.module.mjs +55 -0
- package/esm2022/lib/components/form/input/input.component.mjs +239 -0
- package/esm2022/lib/components/form/password-input/password-input.component.mjs +155 -0
- package/esm2022/lib/components/form/radio-button/radio-button.component.mjs +69 -0
- package/esm2022/lib/components/form/range/range.component.mjs +64 -0
- package/esm2022/lib/components/form/rating/rating.component.mjs +51 -0
- package/esm2022/lib/components/form/select/select.component.mjs +70 -0
- package/esm2022/lib/components/form/textarea/textarea.component.mjs +47 -0
- package/esm2022/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +140 -0
- package/esm2022/lib/components/form/upload-file-list/upload-file-list.component.mjs +112 -0
- package/esm2022/lib/components/navigation/back-button/back-button.component.mjs +71 -0
- package/esm2022/lib/components/navigation/back-to-top/back-to-top.component.mjs +64 -0
- package/esm2022/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.mjs +57 -0
- package/esm2022/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.mjs +23 -0
- package/esm2022/lib/components/navigation/breadcrumbs/breadcrumbs.module.mjs +18 -0
- package/esm2022/lib/components/navigation/header/header.component.mjs +58 -0
- package/esm2022/lib/components/utils/error-page/error-page.component.mjs +81 -0
- package/esm2022/lib/components/utils/icon/icon.component.mjs +55 -0
- package/esm2022/lib/components/utils/language-switcher/language-switcher.component.mjs +47 -0
- package/esm2022/lib/design-angular-kit-config.mjs +15 -0
- package/esm2022/lib/design-angular-kit.module.mjs +68 -0
- package/esm2022/lib/interfaces/core.mjs +16 -0
- package/esm2022/lib/interfaces/design-angular-kit-init.mjs +2 -0
- package/esm2022/lib/interfaces/form.mjs +2 -0
- package/esm2022/lib/interfaces/icon.mjs +165 -0
- package/esm2022/lib/interfaces/utils.mjs +2 -0
- package/esm2022/lib/pipes/mark-matching-text.pipe.mjs +37 -0
- package/esm2022/lib/services/notification/notification.service.mjs +120 -0
- package/esm2022/lib/utils/file-utils.mjs +73 -0
- package/esm2022/lib/utils/regex.mjs +31 -0
- package/esm2022/lib/validators/it-validators.mjs +153 -0
- package/esm2022/public_api.mjs +85 -0
- package/fesm2022/design-angular-kit.mjs +4649 -0
- package/fesm2022/design-angular-kit.mjs.map +1 -0
- package/lib/abstracts/{abstract-form-component.d.ts → abstract-form.component.d.ts} +12 -10
- package/lib/abstracts/abstract.component.d.ts +24 -8
- package/lib/components/components.module.d.ts +40 -0
- package/lib/components/core/accordion/accordion.component.d.ts +11 -9
- package/lib/components/core/alert/alert.component.d.ts +32 -5
- package/lib/components/core/badge/badge.directive.d.ts +12 -6
- package/lib/components/core/button/button.directive.d.ts +24 -17
- package/lib/components/core/callout/callout.component.d.ts +26 -17
- package/lib/components/core/card/card.component.d.ts +23 -13
- package/lib/components/core/carousel/carousel/carousel.component.d.ts +34 -15
- package/lib/components/core/carousel/carousel-item/carousel-item.component.d.ts +8 -3
- package/lib/components/core/carousel/carousel.module.d.ts +8 -0
- package/lib/components/core/chip/chip.component.d.ts +8 -5
- package/lib/components/core/collapse/collapse.component.d.ts +16 -15
- package/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.d.ts +3 -3
- package/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.d.ts +3 -3
- package/lib/components/core/dimmer/dimmer.component.d.ts +4 -4
- package/lib/components/core/dimmer/dimmer.module.d.ts +9 -0
- package/lib/components/core/dropdown/dropdown/dropdown.component.d.ts +53 -10
- package/lib/components/core/dropdown/dropdown-item/dropdown-item.component.d.ts +8 -13
- package/lib/components/core/dropdown/dropdown.module.d.ts +8 -0
- package/lib/components/core/forward/forward.directive.d.ts +3 -3
- package/lib/components/core/link/link.component.d.ts +9 -10
- package/lib/components/core/list/list/list.component.d.ts +6 -5
- package/lib/components/core/list/list-item/list-item.component.d.ts +12 -8
- package/lib/components/core/list/list.module.d.ts +8 -0
- package/lib/components/core/modal/modal.component.d.ts +83 -14
- package/lib/components/core/notifications/notifications.component.d.ts +25 -11
- package/lib/components/core/pagination/pagination.component.d.ts +71 -10
- package/lib/components/core/popover/popover.directive.d.ts +15 -14
- package/lib/components/core/progress-bar/progress-bar.component.d.ts +6 -6
- package/lib/components/core/progress-button/progress-button.component.d.ts +5 -5
- package/lib/components/core/spinner/spinner.component.d.ts +6 -6
- package/lib/components/core/steppers/steppers-container/steppers-container.component.d.ts +128 -0
- package/lib/components/core/steppers/steppers-item/steppers-item.component.d.ts +20 -0
- package/lib/components/core/steppers/steppers.module.d.ts +8 -0
- package/lib/components/core/tab/tab-container/tab-container.component.d.ts +14 -12
- package/lib/components/core/tab/tab-item/tab-item.component.d.ts +11 -11
- package/lib/components/core/tab/tab.module.d.ts +8 -0
- package/lib/components/core/table/table.component.d.ts +14 -14
- package/lib/components/core/tooltip/tooltip.directive.d.ts +12 -11
- package/lib/components/form/checkbox/checkbox.component.d.ts +13 -10
- package/lib/components/form/form.module.d.ts +16 -0
- package/lib/components/form/input/input.component.d.ts +59 -13
- package/lib/components/form/password-input/password-input.component.d.ts +33 -8
- package/lib/components/form/radio-button/radio-button.component.d.ts +7 -6
- package/lib/components/form/range/range.component.d.ts +42 -0
- package/lib/components/form/rating/rating.component.d.ts +24 -0
- package/lib/components/form/select/select.component.d.ts +12 -6
- package/lib/components/form/textarea/textarea.component.d.ts +5 -5
- package/lib/components/form/upload-drag-drop/upload-drag-drop.component.d.ts +8 -7
- package/lib/components/form/upload-file-list/upload-file-list.component.d.ts +11 -9
- package/lib/components/navigation/back-button/back-button.component.d.ts +4 -4
- package/lib/components/navigation/back-to-top/back-to-top.component.d.ts +28 -13
- package/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +11 -9
- package/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.d.ts +6 -6
- package/lib/components/navigation/breadcrumbs/breadcrumbs.module.d.ts +8 -0
- package/lib/components/navigation/header/header.component.d.ts +9 -13
- package/lib/components/utils/error-page/error-page.component.d.ts +44 -0
- package/lib/components/utils/icon/icon.component.d.ts +14 -16
- package/lib/components/utils/language-switcher/language-switcher.component.d.ts +27 -0
- package/lib/design-angular-kit-config.d.ts +16 -0
- package/lib/design-angular-kit.module.d.ts +9 -4
- package/lib/interfaces/core.d.ts +40 -16
- package/lib/interfaces/design-angular-kit-init.d.ts +7 -0
- package/lib/interfaces/form.d.ts +32 -8
- package/lib/interfaces/icon.d.ts +4 -3
- package/lib/interfaces/utils.d.ts +10 -0
- package/lib/pipes/mark-matching-text.pipe.d.ts +10 -0
- package/lib/services/{notifications/notifications.service.d.ts → notification/notification.service.d.ts} +20 -20
- package/lib/utils/boolean-input.d.ts +1 -1
- package/lib/utils/file-utils.d.ts +5 -0
- package/lib/utils/regex.d.ts +5 -0
- package/lib/validators/it-validators.d.ts +16 -9
- package/package.json +13 -17
- package/public_api.d.ts +21 -4
- package/esm2020/lib/abstracts/abstract-form-component.mjs +0 -165
- package/esm2020/lib/abstracts/abstract.component.mjs +0 -20
- package/esm2020/lib/components/core/accordion/accordion.component.mjs +0 -20
- package/esm2020/lib/components/core/alert/alert.component.mjs +0 -29
- package/esm2020/lib/components/core/badge/badge.directive.mjs +0 -34
- package/esm2020/lib/components/core/button/button.directive.mjs +0 -78
- package/esm2020/lib/components/core/callout/callout.component.mjs +0 -59
- package/esm2020/lib/components/core/card/card.component.mjs +0 -58
- package/esm2020/lib/components/core/carousel/carousel/carousel.component.mjs +0 -66
- package/esm2020/lib/components/core/carousel/carousel-item/carousel-item.component.mjs +0 -14
- package/esm2020/lib/components/core/chip/chip.component.mjs +0 -89
- package/esm2020/lib/components/core/collapse/collapse.component.mjs +0 -96
- package/esm2020/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.mjs +0 -24
- package/esm2020/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.mjs +0 -11
- package/esm2020/lib/components/core/dimmer/dimmer.component.mjs +0 -59
- package/esm2020/lib/components/core/dropdown/dropdown/dropdown.component.mjs +0 -60
- package/esm2020/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +0 -71
- package/esm2020/lib/components/core/forward/forward.directive.mjs +0 -51
- package/esm2020/lib/components/core/link/link.component.mjs +0 -39
- package/esm2020/lib/components/core/list/list/list.component.mjs +0 -13
- package/esm2020/lib/components/core/list/list-item/list-item.component.mjs +0 -36
- package/esm2020/lib/components/core/modal/modal.component.mjs +0 -98
- package/esm2020/lib/components/core/notifications/notifications.component.mjs +0 -66
- package/esm2020/lib/components/core/pagination/pagination.component.mjs +0 -51
- package/esm2020/lib/components/core/popover/popover.directive.mjs +0 -176
- package/esm2020/lib/components/core/progress-bar/progress-bar.component.mjs +0 -34
- package/esm2020/lib/components/core/progress-button/progress-button.component.mjs +0 -27
- package/esm2020/lib/components/core/spinner/spinner.component.mjs +0 -35
- package/esm2020/lib/components/core/tab/tab-container/tab-container.component.mjs +0 -33
- package/esm2020/lib/components/core/tab/tab-item/tab-item.component.mjs +0 -36
- package/esm2020/lib/components/core/table/table.component.mjs +0 -57
- package/esm2020/lib/components/core/tooltip/tooltip.directive.mjs +0 -140
- package/esm2020/lib/components/form/checkbox/checkbox.component.mjs +0 -40
- package/esm2020/lib/components/form/input/input.component.mjs +0 -159
- package/esm2020/lib/components/form/password-input/password-input.component.mjs +0 -112
- package/esm2020/lib/components/form/radio-button/radio-button.component.mjs +0 -53
- package/esm2020/lib/components/form/select/select.component.mjs +0 -62
- package/esm2020/lib/components/form/textarea/textarea.component.mjs +0 -46
- package/esm2020/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +0 -134
- package/esm2020/lib/components/form/upload-file-list/upload-file-list.component.mjs +0 -99
- package/esm2020/lib/components/navigation/back-button/back-button.component.mjs +0 -69
- package/esm2020/lib/components/navigation/back-to-top/back-to-top.component.mjs +0 -39
- package/esm2020/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.mjs +0 -45
- package/esm2020/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.mjs +0 -23
- package/esm2020/lib/components/navigation/header/header.component.mjs +0 -61
- package/esm2020/lib/components/utils/icon/icon.component.mjs +0 -54
- package/esm2020/lib/components/utils/not-found-page/not-found-page.component.mjs +0 -13
- package/esm2020/lib/design-angular-kit.module.mjs +0 -42
- package/esm2020/lib/interfaces/core.mjs +0 -16
- package/esm2020/lib/interfaces/form.mjs +0 -2
- package/esm2020/lib/interfaces/icon.mjs +0 -2
- package/esm2020/lib/modules/components.module.mjs +0 -241
- package/esm2020/lib/services/notifications/notifications.service.mjs +0 -122
- package/esm2020/lib/utils/file-utils.mjs +0 -65
- package/esm2020/lib/utils/regex.mjs +0 -26
- package/esm2020/lib/validators/it-validators.mjs +0 -131
- package/esm2020/public_api.mjs +0 -64
- package/fesm2015/design-angular-kit.mjs +0 -3271
- package/fesm2015/design-angular-kit.mjs.map +0 -1
- package/fesm2020/design-angular-kit.mjs +0 -3231
- package/fesm2020/design-angular-kit.mjs.map +0 -1
- package/lib/components/utils/not-found-page/not-found-page.component.d.ts +0 -5
- package/lib/modules/components.module.d.ts +0 -57
- /package/{esm2020 → esm2022}/design-angular-kit.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/utils/boolean-input.mjs +0 -0
|
@@ -1,27 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
|
2
|
+
import { BooleanInput } from '../../../utils/boolean-input';
|
|
3
|
+
import { ItAbstractComponent } from '../../../abstracts/abstract.component';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
5
|
-
/**
|
|
6
|
-
* The back to top ID
|
|
7
|
-
* @default 'back-to-top-button'
|
|
8
|
-
*/
|
|
9
|
-
id: string;
|
|
5
|
+
export declare class ItBackToTopComponent extends ItAbstractComponent implements AfterViewInit {
|
|
10
6
|
/**
|
|
11
7
|
* Show small button
|
|
12
8
|
*/
|
|
13
|
-
small
|
|
9
|
+
small: BooleanInput | undefined;
|
|
14
10
|
/**
|
|
15
11
|
* Show shadow
|
|
16
12
|
*/
|
|
17
|
-
shadow
|
|
13
|
+
shadow: BooleanInput | undefined;
|
|
18
14
|
/**
|
|
19
15
|
* Button usable button on a dark background
|
|
20
16
|
*/
|
|
21
|
-
dark
|
|
17
|
+
dark: BooleanInput | undefined;
|
|
18
|
+
private backToTop?;
|
|
19
|
+
private backToTopElement?;
|
|
22
20
|
get isSmall(): boolean;
|
|
23
21
|
get isShadow(): boolean;
|
|
24
22
|
get isDark(): boolean;
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
ngAfterViewInit(): void;
|
|
24
|
+
/**
|
|
25
|
+
* Show button
|
|
26
|
+
*/
|
|
27
|
+
show(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Hide the button
|
|
30
|
+
*/
|
|
31
|
+
hide(): void;
|
|
32
|
+
/**
|
|
33
|
+
* Activates the scroll animation towards the Y coordinate indicated by the positionTop option
|
|
34
|
+
*/
|
|
35
|
+
scrollToTop(): void;
|
|
36
|
+
/**
|
|
37
|
+
* Eliminate component features
|
|
38
|
+
*/
|
|
39
|
+
dispose(): void;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItBackToTopComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItBackToTopComponent, "it-back-to-top", ["itBackToTop"], { "small": { "alias": "small"; "required": false; }; "shadow": { "alias": "shadow"; "required": false; }; "dark": { "alias": "dark"; "required": false; }; }, {}, never, never, true, never>;
|
|
27
42
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ChangeDetectorRef, QueryList } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { BooleanInput } from
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, OnDestroy, QueryList } from '@angular/core';
|
|
2
|
+
import { ItBreadcrumbItemComponent } from '../breadcrumb-item/breadcrumb-item.component';
|
|
3
|
+
import { BooleanInput } from '../../../../utils/boolean-input';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class ItBreadcrumbComponent implements AfterViewInit, OnDestroy {
|
|
6
6
|
private readonly _changeDetectorRef;
|
|
7
7
|
/**
|
|
8
8
|
* The character to use as separator
|
|
@@ -12,19 +12,21 @@ export declare class BreadcrumbComponent {
|
|
|
12
12
|
/**
|
|
13
13
|
* Dark style
|
|
14
14
|
*/
|
|
15
|
-
dark
|
|
15
|
+
dark: BooleanInput | undefined;
|
|
16
16
|
/**
|
|
17
17
|
* The tab items
|
|
18
18
|
*/
|
|
19
|
-
items?: QueryList<
|
|
19
|
+
items?: QueryList<ItBreadcrumbItemComponent>;
|
|
20
20
|
get isDark(): boolean;
|
|
21
|
+
private itemSubscriptions?;
|
|
21
22
|
constructor(_changeDetectorRef: ChangeDetectorRef);
|
|
22
23
|
ngAfterViewInit(): void;
|
|
24
|
+
ngOnDestroy(): void;
|
|
23
25
|
/**
|
|
24
26
|
* Check if index is last item
|
|
25
27
|
* @param index
|
|
26
28
|
*/
|
|
27
|
-
isLastItem(index: number): boolean;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
29
|
+
protected isLastItem(index: number): boolean;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItBreadcrumbComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItBreadcrumbComponent, "it-breadcrumb", never, { "separator": { "alias": "separator"; "required": false; }; "dark": { "alias": "dark"; "required": false; }; }, {}, ["items"], never, true, never>;
|
|
30
32
|
}
|
package/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
2
|
import { BooleanInput } from '../../../../utils/boolean-input';
|
|
3
3
|
import { IconName } from '../../../../interfaces/icon';
|
|
4
|
-
import {
|
|
4
|
+
import { ItLinkComponent } from '../../../core/link/link.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class ItBreadcrumbItemComponent extends ItLinkComponent {
|
|
7
7
|
/**
|
|
8
8
|
* Is active breadcrumb item
|
|
9
9
|
*/
|
|
10
|
-
active
|
|
10
|
+
active: BooleanInput | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* The name of icon to show
|
|
13
13
|
*/
|
|
14
|
-
iconName
|
|
14
|
+
iconName: IconName | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* The content of item
|
|
17
17
|
*/
|
|
18
18
|
htmlContent: TemplateRef<any>;
|
|
19
19
|
get isActive(): boolean;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
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
22
|
}
|
|
@@ -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,13 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BooleanInput } from
|
|
3
|
-
import {
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { BooleanInput } from '../../../utils/boolean-input';
|
|
3
|
+
import { ItAbstractComponent } from '../../../abstracts/abstract.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
6
|
-
|
|
7
|
-
protected readonly _elementRef: ElementRef;
|
|
8
|
-
light?: BooleanInput;
|
|
5
|
+
export declare class ItHeaderComponent extends ItAbstractComponent {
|
|
6
|
+
light: BooleanInput | undefined;
|
|
9
7
|
showSlim?: BooleanInput;
|
|
10
|
-
slimTitle
|
|
8
|
+
slimTitle: string | undefined;
|
|
11
9
|
loginStyle: 'none' | 'default' | 'full';
|
|
12
10
|
smallHeader?: BooleanInput;
|
|
13
11
|
showSearch?: BooleanInput;
|
|
@@ -15,14 +13,12 @@ export declare class HeaderComponent extends AbstractComponent {
|
|
|
15
13
|
searchClick: EventEmitter<Event>;
|
|
16
14
|
/**
|
|
17
15
|
* TODO: complete header
|
|
18
|
-
* @param _renderer
|
|
19
|
-
* @param _elementRef
|
|
20
16
|
*/
|
|
21
|
-
constructor(
|
|
17
|
+
constructor();
|
|
22
18
|
get isLight(): boolean;
|
|
23
19
|
get isShowSlim(): boolean;
|
|
24
20
|
get isSmallHeader(): boolean;
|
|
25
21
|
get isShowSearch(): boolean;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItHeaderComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItHeaderComponent, "it-header", never, { "light": { "alias": "light"; "required": false; }; "showSlim": { "alias": "showSlim"; "required": false; }; "slimTitle": { "alias": "slimTitle"; "required": false; }; "loginStyle": { "alias": "loginStyle"; "required": false; }; "smallHeader": { "alias": "smallHeader"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; }, { "loginClick": "loginClick"; "searchClick": "searchClick"; }, never, ["[slimLinkList]", "[slimRightZone]", "[brand]", "[rightZone]"], true, never>;
|
|
28
24
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ActivatedRoute } from '@angular/router';
|
|
2
|
+
import { BooleanInput } from '../../../utils/boolean-input';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
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?: BooleanInput;
|
|
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?: BooleanInput;
|
|
32
|
+
/**
|
|
33
|
+
* Show/Hide home button
|
|
34
|
+
* @default true - show
|
|
35
|
+
*/
|
|
36
|
+
showHomeButton?: BooleanInput;
|
|
37
|
+
constructor(route: ActivatedRoute);
|
|
38
|
+
get isDefaultErrorCode(): boolean;
|
|
39
|
+
get isShowErrorCode(): boolean;
|
|
40
|
+
get isShowBackButton(): boolean;
|
|
41
|
+
get isShowHomeButton(): boolean;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItErrorPageComponent, never>;
|
|
43
|
+
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>;
|
|
44
|
+
}
|
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { IconColor, IconName, IconSize } from '../../../interfaces/icon';
|
|
2
|
+
import { BooleanInput } from '../../../utils/boolean-input';
|
|
3
|
+
import { DesignAngularKitConfig } from '../../../design-angular-kit-config';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
6
|
-
|
|
7
|
-
protected readonly _elementRef: ElementRef;
|
|
5
|
+
export declare class ItIconComponent {
|
|
6
|
+
private readonly config;
|
|
8
7
|
/**
|
|
9
|
-
* The icon
|
|
8
|
+
* The icon name
|
|
10
9
|
*/
|
|
11
10
|
name: IconName;
|
|
12
11
|
/**
|
|
13
12
|
* The icon size
|
|
14
13
|
*/
|
|
15
|
-
size
|
|
14
|
+
size: IconSize | undefined;
|
|
16
15
|
/**
|
|
17
16
|
* The icon color
|
|
18
17
|
*/
|
|
19
|
-
color
|
|
18
|
+
color: IconColor | undefined;
|
|
20
19
|
/**
|
|
21
20
|
* Create a padding proportional to the size of the surrounding icon.
|
|
22
21
|
*/
|
|
23
|
-
padded
|
|
22
|
+
padded: BooleanInput | undefined;
|
|
24
23
|
/**
|
|
25
|
-
* Custom class
|
|
24
|
+
* Custom class of svg
|
|
26
25
|
*/
|
|
27
|
-
|
|
26
|
+
svgClass: string | undefined;
|
|
28
27
|
/**
|
|
29
28
|
* Return the icon href
|
|
30
29
|
*/
|
|
@@ -33,8 +32,7 @@ export declare class IconComponent implements AfterViewInit {
|
|
|
33
32
|
* Return the icon class
|
|
34
33
|
*/
|
|
35
34
|
get iconClass(): string;
|
|
36
|
-
constructor(
|
|
37
|
-
|
|
38
|
-
static
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "it-icon[name]", never, { "name": "name"; "size": "size"; "color": "color"; "padded": "padded"; "class": "class"; }, {}, never, never, false, never>;
|
|
35
|
+
constructor(config: DesignAngularKitConfig);
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItIconComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItIconComponent, "it-icon[name]", never, { "name": { "alias": "name"; "required": false; }; "size": { "alias": "size"; "required": false; }; "color": { "alias": "color"; "required": false; }; "padded": { "alias": "padded"; "required": false; }; "svgClass": { "alias": "svgClass"; "required": false; }; }, {}, never, never, true, never>;
|
|
40
38
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 ItLanguageSwitcherComponent 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> | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Dropdown mode
|
|
15
|
+
*/
|
|
16
|
+
mode: 'button' | 'link';
|
|
17
|
+
protected currentLang$: Observable<AvailableLanguage | undefined>;
|
|
18
|
+
constructor(translateService: TranslateService);
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
/**
|
|
21
|
+
* Change the current language
|
|
22
|
+
* @param lang the language code
|
|
23
|
+
*/
|
|
24
|
+
changeLanguage(lang: string): void;
|
|
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>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { DesignAngularKitInit } from './interfaces/design-angular-kit-init';
|
|
3
|
+
export declare const DESIGN_ANGULAR_KIT_CONFIG: InjectionToken<DesignAngularKitConfig>;
|
|
4
|
+
export declare class DesignAngularKitConfig {
|
|
5
|
+
/**
|
|
6
|
+
* The init config
|
|
7
|
+
* @private
|
|
8
|
+
*/
|
|
9
|
+
private readonly initConfig?;
|
|
10
|
+
constructor(nextInit?: DesignAngularKitInit);
|
|
11
|
+
/**
|
|
12
|
+
* The initial path in the `href` attribute in the `IconComponent` component
|
|
13
|
+
* @default './bootstrap-italia/dist/svg/sprites.svg'
|
|
14
|
+
*/
|
|
15
|
+
get iconHref(): string;
|
|
16
|
+
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { DesignAngularKitInit } from './interfaces/design-angular-kit-init';
|
|
1
4
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "
|
|
3
|
-
import * as i2 from "@
|
|
4
|
-
import * as i3 from "@ngx-translate/core";
|
|
5
|
+
import * as i1 from "@angular/common/http";
|
|
6
|
+
import * as i2 from "@ngx-translate/core";
|
|
5
7
|
export declare class DesignAngularKitModule {
|
|
8
|
+
private readonly translateService;
|
|
9
|
+
static forRoot(initConfig?: DesignAngularKitInit): ModuleWithProviders<DesignAngularKitModule>;
|
|
10
|
+
constructor(translateService: TranslateService);
|
|
6
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DesignAngularKitModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DesignAngularKitModule, never, [typeof i1.
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DesignAngularKitModule, never, [typeof i1.HttpClientModule, typeof i2.TranslateModule], never>;
|
|
8
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<DesignAngularKitModule>;
|
|
9
14
|
}
|
package/lib/interfaces/core.d.ts
CHANGED
|
@@ -1,25 +1,49 @@
|
|
|
1
|
-
|
|
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
|
|
1
|
+
import { IconName } from './icon';
|
|
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';
|
|
16
18
|
export interface Notification {
|
|
19
|
+
/**
|
|
20
|
+
* Notification type
|
|
21
|
+
*/
|
|
17
22
|
type: NotificationType;
|
|
23
|
+
/**
|
|
24
|
+
* Notification title
|
|
25
|
+
*/
|
|
18
26
|
title: string;
|
|
27
|
+
/**
|
|
28
|
+
* Notification message / text
|
|
29
|
+
*/
|
|
19
30
|
message?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Custom duration of notification
|
|
33
|
+
*/
|
|
20
34
|
duration?: number;
|
|
21
|
-
|
|
35
|
+
/**
|
|
36
|
+
* The close notification button appears
|
|
37
|
+
*/
|
|
38
|
+
dismissible?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Custom position of notification
|
|
41
|
+
*/
|
|
22
42
|
position?: NotificationPosition;
|
|
43
|
+
/**
|
|
44
|
+
* Custom icon of notification
|
|
45
|
+
*/
|
|
46
|
+
icon?: IconName;
|
|
23
47
|
}
|
|
24
48
|
export declare enum NotificationType {
|
|
25
49
|
Standard = "standard",
|
package/lib/interfaces/form.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
1
|
+
import { IconName } from './icon';
|
|
2
|
+
export type InputControlType = 'text' | 'email' | 'number' | 'date' | 'time' | 'tel' | 'color' | 'url' | 'search';
|
|
3
|
+
export interface SelectControlOption<T = any> {
|
|
4
|
+
value: T;
|
|
4
5
|
text?: string;
|
|
5
|
-
selected?: boolean | ((value:
|
|
6
|
-
disabled?: boolean | ((value:
|
|
6
|
+
selected?: boolean | ((value: T) => boolean);
|
|
7
|
+
disabled?: boolean | ((value: T) => boolean);
|
|
7
8
|
}
|
|
8
|
-
export interface SelectControlGroup {
|
|
9
|
+
export interface SelectControlGroup<T = any> {
|
|
9
10
|
label: string;
|
|
10
|
-
options: Array<SelectControlOption
|
|
11
|
+
options: Array<SelectControlOption<T>>;
|
|
11
12
|
dragdrop?: boolean;
|
|
12
13
|
}
|
|
13
14
|
export interface UploadFileListItem {
|
|
@@ -35,9 +36,32 @@ export interface UploadFileListItem {
|
|
|
35
36
|
/**
|
|
36
37
|
* Set the status of the item as 'error'
|
|
37
38
|
*/
|
|
38
|
-
error?:
|
|
39
|
+
error?: boolean;
|
|
39
40
|
/**
|
|
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
|
|
41
43
|
*/
|
|
42
44
|
tooltip?: string;
|
|
43
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* Elemento disponibile per l'autocompletamento del it-form-input
|
|
48
|
+
*/
|
|
49
|
+
export interface AutocompleteItem<T = any> {
|
|
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?: T;
|
|
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,10 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MarkMatchingTextPipe implements PipeTransform {
|
|
5
|
+
private readonly domSanitizer;
|
|
6
|
+
constructor(domSanitizer: DomSanitizer);
|
|
7
|
+
transform(allString: string, searchString: string): any;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MarkMatchingTextPipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MarkMatchingTextPipe, "markMatchingText", true>;
|
|
10
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Observable } from
|
|
2
|
-
import { Notification, NotificationPosition, NotificationType } from
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { Notification, NotificationPosition, NotificationType } from '../../interfaces/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class ItNotificationService {
|
|
5
5
|
private subject;
|
|
6
6
|
/**
|
|
7
7
|
* Listen on notification arrived
|
|
@@ -17,47 +17,47 @@ export declare class NotificationsService {
|
|
|
17
17
|
* Create new Standard notification
|
|
18
18
|
* @param title notification title
|
|
19
19
|
* @param message notification message
|
|
20
|
-
* @param
|
|
21
|
-
* @param duration notification duration (
|
|
20
|
+
* @param dismissible notification dismissible
|
|
21
|
+
* @param duration notification duration (milliseconds)
|
|
22
22
|
* @param position notification position
|
|
23
23
|
*/
|
|
24
|
-
standard(title: string, message?: string,
|
|
24
|
+
standard(title: string, message?: string, dismissible?: boolean, duration?: number, position?: NotificationPosition): void;
|
|
25
25
|
/**
|
|
26
26
|
* Create new Success notification
|
|
27
27
|
* @param title notification title
|
|
28
28
|
* @param message notification message
|
|
29
|
-
* @param
|
|
30
|
-
* @param duration notification duration (
|
|
29
|
+
* @param dismissible notification dismissible
|
|
30
|
+
* @param duration notification duration (milliseconds)
|
|
31
31
|
* @param position notification position
|
|
32
32
|
*/
|
|
33
|
-
success(title: string, message?: string,
|
|
33
|
+
success(title: string, message?: string, dismissible?: boolean, duration?: number, position?: NotificationPosition): void;
|
|
34
34
|
/**
|
|
35
35
|
* Create new Error notification
|
|
36
36
|
* @param title notification title
|
|
37
37
|
* @param message notification message
|
|
38
|
-
* @param
|
|
39
|
-
* @param duration notification duration (
|
|
38
|
+
* @param dismissible notification dismissible
|
|
39
|
+
* @param duration notification duration (milliseconds)
|
|
40
40
|
* @param position notification position
|
|
41
41
|
*/
|
|
42
|
-
error(title: string, message?: string,
|
|
42
|
+
error(title: string, message?: string, dismissible?: boolean, duration?: number, position?: NotificationPosition): void;
|
|
43
43
|
/**
|
|
44
44
|
* Create new Warning notification
|
|
45
45
|
* @param title notification title
|
|
46
46
|
* @param message notification message
|
|
47
|
-
* @param
|
|
48
|
-
* @param duration notification duration (
|
|
47
|
+
* @param dismissible notification dismissible
|
|
48
|
+
* @param duration notification duration (milliseconds)
|
|
49
49
|
* @param position notification position
|
|
50
50
|
*/
|
|
51
|
-
warning(title: string, message?: string,
|
|
51
|
+
warning(title: string, message?: string, dismissible?: boolean, duration?: number, position?: NotificationPosition): void;
|
|
52
52
|
/**
|
|
53
53
|
* Create new Info notification
|
|
54
54
|
* @param title notification title
|
|
55
55
|
* @param message notification message
|
|
56
|
-
* @param
|
|
57
|
-
* @param duration notification duration (
|
|
56
|
+
* @param dismissible notification dismissible
|
|
57
|
+
* @param duration notification duration (milliseconds)
|
|
58
58
|
* @param position notification position
|
|
59
59
|
*/
|
|
60
|
-
info(title: string, message?: string,
|
|
61
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
62
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
60
|
+
info(title: string, message?: string, dismissible?: boolean, duration?: number, position?: NotificationPosition): void;
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItNotificationService, never>;
|
|
62
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ItNotificationService>;
|
|
63
63
|
}
|
|
@@ -24,4 +24,9 @@ export declare class FileUtils {
|
|
|
24
24
|
* @param filename the file name
|
|
25
25
|
*/
|
|
26
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;
|
|
27
32
|
}
|