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.
Files changed (54) hide show
  1. package/esm2020/lib/abstracts/abstract-form-component.mjs +16 -7
  2. package/esm2020/lib/abstracts/abstract.component.mjs +13 -6
  3. package/esm2020/lib/components/core/accordion/accordion.component.mjs +19 -8
  4. package/esm2020/lib/components/core/alert/alert.component.mjs +46 -6
  5. package/esm2020/lib/components/core/button/button.directive.mjs +14 -12
  6. package/esm2020/lib/components/core/carousel/carousel/carousel.component.mjs +3 -3
  7. package/esm2020/lib/components/core/collapse/collapse.component.mjs +23 -18
  8. package/esm2020/lib/components/core/dropdown/dropdown/dropdown.component.mjs +74 -4
  9. package/esm2020/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +8 -11
  10. package/esm2020/lib/components/core/link/link.component.mjs +9 -8
  11. package/esm2020/lib/components/core/modal/modal.component.mjs +5 -5
  12. package/esm2020/lib/components/core/notifications/notifications.component.mjs +55 -11
  13. package/esm2020/lib/components/core/popover/popover.directive.mjs +5 -2
  14. package/esm2020/lib/components/core/tab/tab-container/tab-container.component.mjs +37 -11
  15. package/esm2020/lib/components/core/tab/tab-item/tab-item.component.mjs +4 -4
  16. package/esm2020/lib/components/core/tooltip/tooltip.directive.mjs +4 -1
  17. package/esm2020/lib/components/form/input/input.component.mjs +2 -2
  18. package/esm2020/lib/components/form/password-input/password-input.component.mjs +1 -1
  19. package/esm2020/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +1 -1
  20. package/esm2020/lib/components/form/upload-file-list/upload-file-list.component.mjs +13 -10
  21. package/esm2020/lib/components/navigation/back-to-top/back-to-top.component.mjs +41 -6
  22. package/esm2020/lib/components/navigation/header/header.component.mjs +9 -7
  23. package/esm2020/lib/components/utils/language-switcher/language-switcher.component.mjs +1 -1
  24. package/esm2020/lib/interfaces/core.mjs +1 -1
  25. package/esm2020/lib/services/notifications/notifications.service.mjs +24 -26
  26. package/esm2020/lib/utils/file-utils.mjs +9 -1
  27. package/fesm2015/design-angular-kit.mjs +498 -226
  28. package/fesm2015/design-angular-kit.mjs.map +1 -1
  29. package/fesm2020/design-angular-kit.mjs +477 -222
  30. package/fesm2020/design-angular-kit.mjs.map +1 -1
  31. package/lib/abstracts/abstract-form-component.d.ts +9 -4
  32. package/lib/abstracts/abstract.component.d.ts +10 -4
  33. package/lib/components/core/accordion/accordion.component.d.ts +4 -8
  34. package/lib/components/core/alert/alert.component.d.ts +24 -2
  35. package/lib/components/core/button/button.directive.d.ts +5 -7
  36. package/lib/components/core/carousel/carousel/carousel.component.d.ts +1 -1
  37. package/lib/components/core/collapse/collapse.component.d.ts +8 -7
  38. package/lib/components/core/dropdown/dropdown/dropdown.component.d.ts +41 -3
  39. package/lib/components/core/dropdown/dropdown-item/dropdown-item.component.d.ts +0 -5
  40. package/lib/components/core/link/link.component.d.ts +2 -5
  41. package/lib/components/core/modal/modal.component.d.ts +2 -2
  42. package/lib/components/core/notifications/notifications.component.d.ts +21 -7
  43. package/lib/components/core/popover/popover.directive.d.ts +3 -2
  44. package/lib/components/core/tab/tab-container/tab-container.component.d.ts +6 -4
  45. package/lib/components/core/tooltip/tooltip.directive.d.ts +3 -2
  46. package/lib/components/form/password-input/password-input.component.d.ts +2 -1
  47. package/lib/components/form/upload-drag-drop/upload-drag-drop.component.d.ts +2 -1
  48. package/lib/components/form/upload-file-list/upload-file-list.component.d.ts +3 -3
  49. package/lib/components/navigation/back-to-top/back-to-top.component.d.ts +22 -3
  50. package/lib/components/navigation/header/header.component.d.ts +6 -4
  51. package/lib/interfaces/core.d.ts +24 -1
  52. package/lib/services/notifications/notifications.service.d.ts +17 -17
  53. package/lib/utils/file-utils.d.ts +5 -0
  54. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
- import { Observable } from "rxjs";
2
- import { Notification, NotificationPosition, NotificationType } from "../../interfaces/core";
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 dismissable notification dismissable
21
- * @param duration notification duration (millis)
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, dismissable?: boolean, duration?: number, position?: NotificationPosition): void;
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 dismissable notification dismissable
30
- * @param duration notification duration (millis)
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, dismissable?: boolean, duration?: number, position?: NotificationPosition): void;
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 dismissable notification dismissable
39
- * @param duration notification duration (millis)
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, dismissable?: boolean, duration?: number, position?: NotificationPosition): void;
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 dismissable notification dismissable
48
- * @param duration notification duration (millis)
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, dismissable?: boolean, duration?: number, position?: NotificationPosition): void;
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 dismissable notification dismissable
57
- * @param duration notification duration (millis)
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, dismissable?: boolean, duration?: number, position?: NotificationPosition): void;
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-7",
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.2"
40
+ "bootstrap-italia": "^2.3.4"
41
41
  },
42
42
  "module": "fesm2015/design-angular-kit.mjs",
43
43
  "es2020": "fesm2020/design-angular-kit.mjs",