design-angular-kit 1.0.0-7 → 1.0.0-9
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/esm2020/lib/abstracts/abstract-form-component.mjs +16 -7
- package/esm2020/lib/abstracts/abstract.component.mjs +13 -6
- package/esm2020/lib/components/core/accordion/accordion.component.mjs +19 -8
- package/esm2020/lib/components/core/alert/alert.component.mjs +46 -6
- package/esm2020/lib/components/core/button/button.directive.mjs +14 -12
- package/esm2020/lib/components/core/carousel/carousel/carousel.component.mjs +3 -3
- package/esm2020/lib/components/core/collapse/collapse.component.mjs +23 -18
- package/esm2020/lib/components/core/dropdown/dropdown/dropdown.component.mjs +74 -4
- package/esm2020/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +8 -11
- package/esm2020/lib/components/core/link/link.component.mjs +9 -8
- package/esm2020/lib/components/core/modal/modal.component.mjs +5 -5
- package/esm2020/lib/components/core/notifications/notifications.component.mjs +55 -11
- package/esm2020/lib/components/core/popover/popover.directive.mjs +5 -2
- package/esm2020/lib/components/core/tab/tab-container/tab-container.component.mjs +37 -11
- package/esm2020/lib/components/core/tab/tab-item/tab-item.component.mjs +4 -4
- package/esm2020/lib/components/core/tooltip/tooltip.directive.mjs +4 -1
- package/esm2020/lib/components/form/input/input.component.mjs +2 -2
- package/esm2020/lib/components/form/password-input/password-input.component.mjs +1 -1
- package/esm2020/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +1 -1
- package/esm2020/lib/components/form/upload-file-list/upload-file-list.component.mjs +13 -10
- package/esm2020/lib/components/navigation/back-to-top/back-to-top.component.mjs +41 -6
- package/esm2020/lib/components/navigation/header/header.component.mjs +9 -7
- package/esm2020/lib/components/utils/language-switcher/language-switcher.component.mjs +1 -1
- package/esm2020/lib/interfaces/core.mjs +1 -1
- package/esm2020/lib/services/notifications/notifications.service.mjs +24 -26
- package/esm2020/lib/utils/file-utils.mjs +9 -1
- package/fesm2015/design-angular-kit.mjs +498 -226
- package/fesm2015/design-angular-kit.mjs.map +1 -1
- package/fesm2020/design-angular-kit.mjs +477 -222
- package/fesm2020/design-angular-kit.mjs.map +1 -1
- package/lib/abstracts/abstract-form-component.d.ts +9 -4
- package/lib/abstracts/abstract.component.d.ts +10 -4
- package/lib/components/core/accordion/accordion.component.d.ts +4 -8
- package/lib/components/core/alert/alert.component.d.ts +24 -2
- package/lib/components/core/button/button.directive.d.ts +5 -7
- package/lib/components/core/carousel/carousel/carousel.component.d.ts +1 -1
- package/lib/components/core/collapse/collapse.component.d.ts +8 -7
- package/lib/components/core/dropdown/dropdown/dropdown.component.d.ts +41 -3
- package/lib/components/core/dropdown/dropdown-item/dropdown-item.component.d.ts +0 -5
- package/lib/components/core/link/link.component.d.ts +2 -5
- package/lib/components/core/modal/modal.component.d.ts +2 -2
- package/lib/components/core/notifications/notifications.component.d.ts +21 -7
- package/lib/components/core/popover/popover.directive.d.ts +3 -2
- package/lib/components/core/tab/tab-container/tab-container.component.d.ts +6 -4
- package/lib/components/core/tooltip/tooltip.directive.d.ts +3 -2
- package/lib/components/form/password-input/password-input.component.d.ts +2 -1
- package/lib/components/form/upload-drag-drop/upload-drag-drop.component.d.ts +2 -1
- package/lib/components/form/upload-file-list/upload-file-list.component.d.ts +3 -3
- package/lib/components/navigation/back-to-top/back-to-top.component.d.ts +22 -3
- package/lib/components/navigation/header/header.component.d.ts +6 -4
- package/lib/interfaces/core.d.ts +24 -1
- package/lib/services/notifications/notifications.service.d.ts +17 -17
- package/lib/utils/file-utils.d.ts +5 -0
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
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
4
|
export declare class NotificationsService {
|
|
5
5
|
private subject;
|
|
@@ -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,
|
|
60
|
+
info(title: string, message?: string, dismissible?: boolean, duration?: number, position?: NotificationPosition): void;
|
|
61
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsService, never>;
|
|
62
62
|
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationsService>;
|
|
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
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "design-angular-kit",
|
|
3
3
|
"description": "Un toolkit Angular conforme alle linee guida di design per i servizi web della PA",
|
|
4
|
-
"version": "1.0.0-
|
|
4
|
+
"version": "1.0.0-9",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"angular",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@angular/platform-browser": "^15.0.4",
|
|
38
38
|
"@ngx-translate/core": "^14.0.0",
|
|
39
39
|
"@ngx-translate/http-loader": "^7.0.0",
|
|
40
|
-
"bootstrap-italia": "^2.3.
|
|
40
|
+
"bootstrap-italia": "^2.3.4"
|
|
41
41
|
},
|
|
42
42
|
"module": "fesm2015/design-angular-kit.mjs",
|
|
43
43
|
"es2020": "fesm2020/design-angular-kit.mjs",
|