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.
Files changed (220) hide show
  1. package/README.md +102 -26
  2. package/assets/i18n/en.json +122 -0
  3. package/assets/i18n/it.json +52 -11
  4. package/esm2022/lib/abstracts/abstract-form.component.mjs +186 -0
  5. package/esm2022/lib/abstracts/abstract.component.mjs +45 -0
  6. package/esm2022/lib/components/components.module.mjs +188 -0
  7. package/esm2022/lib/components/core/accordion/accordion.component.mjs +38 -0
  8. package/esm2022/lib/components/core/alert/alert.component.mjs +74 -0
  9. package/esm2022/lib/components/core/badge/badge.directive.mjs +38 -0
  10. package/esm2022/lib/components/core/button/button.directive.mjs +85 -0
  11. package/esm2022/lib/components/core/callout/callout.component.mjs +57 -0
  12. package/esm2022/lib/components/core/card/card.component.mjs +64 -0
  13. package/esm2022/lib/components/core/carousel/carousel/carousel.component.mjs +89 -0
  14. package/esm2022/lib/components/core/carousel/carousel-item/carousel-item.component.mjs +19 -0
  15. package/esm2022/lib/components/core/carousel/carousel.module.mjs +23 -0
  16. package/esm2022/lib/components/core/chip/chip.component.mjs +96 -0
  17. package/esm2022/lib/components/core/collapse/collapse.component.mjs +101 -0
  18. package/esm2022/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.mjs +24 -0
  19. package/esm2022/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.mjs +11 -0
  20. package/esm2022/lib/components/core/dimmer/dimmer.component.mjs +59 -0
  21. package/esm2022/lib/components/core/dimmer/dimmer.module.mjs +27 -0
  22. package/esm2022/lib/components/core/dropdown/dropdown/dropdown.component.mjs +143 -0
  23. package/esm2022/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +68 -0
  24. package/esm2022/lib/components/core/dropdown/dropdown.module.mjs +18 -0
  25. package/esm2022/lib/components/core/forward/forward.directive.mjs +53 -0
  26. package/esm2022/lib/components/core/link/link.component.mjs +46 -0
  27. package/esm2022/lib/components/core/list/list/list.component.mjs +17 -0
  28. package/esm2022/lib/components/core/list/list-item/list-item.component.mjs +40 -0
  29. package/esm2022/lib/components/core/list/list.module.mjs +23 -0
  30. package/esm2022/lib/components/core/modal/modal.component.mjs +192 -0
  31. package/esm2022/lib/components/core/notifications/notifications.component.mjs +111 -0
  32. package/esm2022/lib/components/core/pagination/pagination.component.mjs +133 -0
  33. package/esm2022/lib/components/core/popover/popover.directive.mjs +175 -0
  34. package/esm2022/lib/components/core/progress-bar/progress-bar.component.mjs +35 -0
  35. package/esm2022/lib/components/core/progress-button/progress-button.component.mjs +27 -0
  36. package/esm2022/lib/components/core/spinner/spinner.component.mjs +36 -0
  37. package/esm2022/lib/components/core/steppers/steppers-container/steppers-container.component.mjs +138 -0
  38. package/esm2022/lib/components/core/steppers/steppers-item/steppers-item.component.mjs +19 -0
  39. package/esm2022/lib/components/core/steppers/steppers.module.mjs +23 -0
  40. package/esm2022/lib/components/core/tab/tab-container/tab-container.component.mjs +60 -0
  41. package/esm2022/lib/components/core/tab/tab-item/tab-item.component.mjs +36 -0
  42. package/esm2022/lib/components/core/tab/tab.module.mjs +23 -0
  43. package/esm2022/lib/components/core/table/table.component.mjs +57 -0
  44. package/esm2022/lib/components/core/tooltip/tooltip.directive.mjs +142 -0
  45. package/esm2022/lib/components/form/checkbox/checkbox.component.mjs +49 -0
  46. package/esm2022/lib/components/form/form.module.mjs +55 -0
  47. package/esm2022/lib/components/form/input/input.component.mjs +239 -0
  48. package/esm2022/lib/components/form/password-input/password-input.component.mjs +155 -0
  49. package/esm2022/lib/components/form/radio-button/radio-button.component.mjs +69 -0
  50. package/esm2022/lib/components/form/range/range.component.mjs +64 -0
  51. package/esm2022/lib/components/form/rating/rating.component.mjs +51 -0
  52. package/esm2022/lib/components/form/select/select.component.mjs +70 -0
  53. package/esm2022/lib/components/form/textarea/textarea.component.mjs +47 -0
  54. package/esm2022/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +140 -0
  55. package/esm2022/lib/components/form/upload-file-list/upload-file-list.component.mjs +112 -0
  56. package/esm2022/lib/components/navigation/back-button/back-button.component.mjs +71 -0
  57. package/esm2022/lib/components/navigation/back-to-top/back-to-top.component.mjs +64 -0
  58. package/esm2022/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.mjs +57 -0
  59. package/esm2022/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.mjs +23 -0
  60. package/esm2022/lib/components/navigation/breadcrumbs/breadcrumbs.module.mjs +18 -0
  61. package/esm2022/lib/components/navigation/header/header.component.mjs +58 -0
  62. package/esm2022/lib/components/utils/error-page/error-page.component.mjs +81 -0
  63. package/esm2022/lib/components/utils/icon/icon.component.mjs +55 -0
  64. package/esm2022/lib/components/utils/language-switcher/language-switcher.component.mjs +47 -0
  65. package/esm2022/lib/design-angular-kit-config.mjs +15 -0
  66. package/esm2022/lib/design-angular-kit.module.mjs +68 -0
  67. package/esm2022/lib/interfaces/core.mjs +16 -0
  68. package/esm2022/lib/interfaces/design-angular-kit-init.mjs +2 -0
  69. package/esm2022/lib/interfaces/form.mjs +2 -0
  70. package/esm2022/lib/interfaces/icon.mjs +165 -0
  71. package/esm2022/lib/interfaces/utils.mjs +2 -0
  72. package/esm2022/lib/pipes/mark-matching-text.pipe.mjs +37 -0
  73. package/esm2022/lib/services/notification/notification.service.mjs +120 -0
  74. package/esm2022/lib/utils/file-utils.mjs +73 -0
  75. package/esm2022/lib/utils/regex.mjs +31 -0
  76. package/esm2022/lib/validators/it-validators.mjs +153 -0
  77. package/esm2022/public_api.mjs +85 -0
  78. package/fesm2022/design-angular-kit.mjs +4649 -0
  79. package/fesm2022/design-angular-kit.mjs.map +1 -0
  80. package/lib/abstracts/{abstract-form-component.d.ts → abstract-form.component.d.ts} +12 -10
  81. package/lib/abstracts/abstract.component.d.ts +24 -8
  82. package/lib/components/components.module.d.ts +40 -0
  83. package/lib/components/core/accordion/accordion.component.d.ts +11 -9
  84. package/lib/components/core/alert/alert.component.d.ts +32 -5
  85. package/lib/components/core/badge/badge.directive.d.ts +12 -6
  86. package/lib/components/core/button/button.directive.d.ts +24 -17
  87. package/lib/components/core/callout/callout.component.d.ts +26 -17
  88. package/lib/components/core/card/card.component.d.ts +23 -13
  89. package/lib/components/core/carousel/carousel/carousel.component.d.ts +34 -15
  90. package/lib/components/core/carousel/carousel-item/carousel-item.component.d.ts +8 -3
  91. package/lib/components/core/carousel/carousel.module.d.ts +8 -0
  92. package/lib/components/core/chip/chip.component.d.ts +8 -5
  93. package/lib/components/core/collapse/collapse.component.d.ts +16 -15
  94. package/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.d.ts +3 -3
  95. package/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.d.ts +3 -3
  96. package/lib/components/core/dimmer/dimmer.component.d.ts +4 -4
  97. package/lib/components/core/dimmer/dimmer.module.d.ts +9 -0
  98. package/lib/components/core/dropdown/dropdown/dropdown.component.d.ts +53 -10
  99. package/lib/components/core/dropdown/dropdown-item/dropdown-item.component.d.ts +8 -13
  100. package/lib/components/core/dropdown/dropdown.module.d.ts +8 -0
  101. package/lib/components/core/forward/forward.directive.d.ts +3 -3
  102. package/lib/components/core/link/link.component.d.ts +9 -10
  103. package/lib/components/core/list/list/list.component.d.ts +6 -5
  104. package/lib/components/core/list/list-item/list-item.component.d.ts +12 -8
  105. package/lib/components/core/list/list.module.d.ts +8 -0
  106. package/lib/components/core/modal/modal.component.d.ts +83 -14
  107. package/lib/components/core/notifications/notifications.component.d.ts +25 -11
  108. package/lib/components/core/pagination/pagination.component.d.ts +71 -10
  109. package/lib/components/core/popover/popover.directive.d.ts +15 -14
  110. package/lib/components/core/progress-bar/progress-bar.component.d.ts +6 -6
  111. package/lib/components/core/progress-button/progress-button.component.d.ts +5 -5
  112. package/lib/components/core/spinner/spinner.component.d.ts +6 -6
  113. package/lib/components/core/steppers/steppers-container/steppers-container.component.d.ts +128 -0
  114. package/lib/components/core/steppers/steppers-item/steppers-item.component.d.ts +20 -0
  115. package/lib/components/core/steppers/steppers.module.d.ts +8 -0
  116. package/lib/components/core/tab/tab-container/tab-container.component.d.ts +14 -12
  117. package/lib/components/core/tab/tab-item/tab-item.component.d.ts +11 -11
  118. package/lib/components/core/tab/tab.module.d.ts +8 -0
  119. package/lib/components/core/table/table.component.d.ts +14 -14
  120. package/lib/components/core/tooltip/tooltip.directive.d.ts +12 -11
  121. package/lib/components/form/checkbox/checkbox.component.d.ts +13 -10
  122. package/lib/components/form/form.module.d.ts +16 -0
  123. package/lib/components/form/input/input.component.d.ts +59 -13
  124. package/lib/components/form/password-input/password-input.component.d.ts +33 -8
  125. package/lib/components/form/radio-button/radio-button.component.d.ts +7 -6
  126. package/lib/components/form/range/range.component.d.ts +42 -0
  127. package/lib/components/form/rating/rating.component.d.ts +24 -0
  128. package/lib/components/form/select/select.component.d.ts +12 -6
  129. package/lib/components/form/textarea/textarea.component.d.ts +5 -5
  130. package/lib/components/form/upload-drag-drop/upload-drag-drop.component.d.ts +8 -7
  131. package/lib/components/form/upload-file-list/upload-file-list.component.d.ts +11 -9
  132. package/lib/components/navigation/back-button/back-button.component.d.ts +4 -4
  133. package/lib/components/navigation/back-to-top/back-to-top.component.d.ts +28 -13
  134. package/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +11 -9
  135. package/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.d.ts +6 -6
  136. package/lib/components/navigation/breadcrumbs/breadcrumbs.module.d.ts +8 -0
  137. package/lib/components/navigation/header/header.component.d.ts +9 -13
  138. package/lib/components/utils/error-page/error-page.component.d.ts +44 -0
  139. package/lib/components/utils/icon/icon.component.d.ts +14 -16
  140. package/lib/components/utils/language-switcher/language-switcher.component.d.ts +27 -0
  141. package/lib/design-angular-kit-config.d.ts +16 -0
  142. package/lib/design-angular-kit.module.d.ts +9 -4
  143. package/lib/interfaces/core.d.ts +40 -16
  144. package/lib/interfaces/design-angular-kit-init.d.ts +7 -0
  145. package/lib/interfaces/form.d.ts +32 -8
  146. package/lib/interfaces/icon.d.ts +4 -3
  147. package/lib/interfaces/utils.d.ts +10 -0
  148. package/lib/pipes/mark-matching-text.pipe.d.ts +10 -0
  149. package/lib/services/{notifications/notifications.service.d.ts → notification/notification.service.d.ts} +20 -20
  150. package/lib/utils/boolean-input.d.ts +1 -1
  151. package/lib/utils/file-utils.d.ts +5 -0
  152. package/lib/utils/regex.d.ts +5 -0
  153. package/lib/validators/it-validators.d.ts +16 -9
  154. package/package.json +13 -17
  155. package/public_api.d.ts +21 -4
  156. package/esm2020/lib/abstracts/abstract-form-component.mjs +0 -165
  157. package/esm2020/lib/abstracts/abstract.component.mjs +0 -20
  158. package/esm2020/lib/components/core/accordion/accordion.component.mjs +0 -20
  159. package/esm2020/lib/components/core/alert/alert.component.mjs +0 -29
  160. package/esm2020/lib/components/core/badge/badge.directive.mjs +0 -34
  161. package/esm2020/lib/components/core/button/button.directive.mjs +0 -78
  162. package/esm2020/lib/components/core/callout/callout.component.mjs +0 -59
  163. package/esm2020/lib/components/core/card/card.component.mjs +0 -58
  164. package/esm2020/lib/components/core/carousel/carousel/carousel.component.mjs +0 -66
  165. package/esm2020/lib/components/core/carousel/carousel-item/carousel-item.component.mjs +0 -14
  166. package/esm2020/lib/components/core/chip/chip.component.mjs +0 -89
  167. package/esm2020/lib/components/core/collapse/collapse.component.mjs +0 -96
  168. package/esm2020/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.mjs +0 -24
  169. package/esm2020/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.mjs +0 -11
  170. package/esm2020/lib/components/core/dimmer/dimmer.component.mjs +0 -59
  171. package/esm2020/lib/components/core/dropdown/dropdown/dropdown.component.mjs +0 -60
  172. package/esm2020/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +0 -71
  173. package/esm2020/lib/components/core/forward/forward.directive.mjs +0 -51
  174. package/esm2020/lib/components/core/link/link.component.mjs +0 -39
  175. package/esm2020/lib/components/core/list/list/list.component.mjs +0 -13
  176. package/esm2020/lib/components/core/list/list-item/list-item.component.mjs +0 -36
  177. package/esm2020/lib/components/core/modal/modal.component.mjs +0 -98
  178. package/esm2020/lib/components/core/notifications/notifications.component.mjs +0 -66
  179. package/esm2020/lib/components/core/pagination/pagination.component.mjs +0 -51
  180. package/esm2020/lib/components/core/popover/popover.directive.mjs +0 -176
  181. package/esm2020/lib/components/core/progress-bar/progress-bar.component.mjs +0 -34
  182. package/esm2020/lib/components/core/progress-button/progress-button.component.mjs +0 -27
  183. package/esm2020/lib/components/core/spinner/spinner.component.mjs +0 -35
  184. package/esm2020/lib/components/core/tab/tab-container/tab-container.component.mjs +0 -33
  185. package/esm2020/lib/components/core/tab/tab-item/tab-item.component.mjs +0 -36
  186. package/esm2020/lib/components/core/table/table.component.mjs +0 -57
  187. package/esm2020/lib/components/core/tooltip/tooltip.directive.mjs +0 -140
  188. package/esm2020/lib/components/form/checkbox/checkbox.component.mjs +0 -40
  189. package/esm2020/lib/components/form/input/input.component.mjs +0 -159
  190. package/esm2020/lib/components/form/password-input/password-input.component.mjs +0 -112
  191. package/esm2020/lib/components/form/radio-button/radio-button.component.mjs +0 -53
  192. package/esm2020/lib/components/form/select/select.component.mjs +0 -62
  193. package/esm2020/lib/components/form/textarea/textarea.component.mjs +0 -46
  194. package/esm2020/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +0 -134
  195. package/esm2020/lib/components/form/upload-file-list/upload-file-list.component.mjs +0 -99
  196. package/esm2020/lib/components/navigation/back-button/back-button.component.mjs +0 -69
  197. package/esm2020/lib/components/navigation/back-to-top/back-to-top.component.mjs +0 -39
  198. package/esm2020/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.mjs +0 -45
  199. package/esm2020/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.mjs +0 -23
  200. package/esm2020/lib/components/navigation/header/header.component.mjs +0 -61
  201. package/esm2020/lib/components/utils/icon/icon.component.mjs +0 -54
  202. package/esm2020/lib/components/utils/not-found-page/not-found-page.component.mjs +0 -13
  203. package/esm2020/lib/design-angular-kit.module.mjs +0 -42
  204. package/esm2020/lib/interfaces/core.mjs +0 -16
  205. package/esm2020/lib/interfaces/form.mjs +0 -2
  206. package/esm2020/lib/interfaces/icon.mjs +0 -2
  207. package/esm2020/lib/modules/components.module.mjs +0 -241
  208. package/esm2020/lib/services/notifications/notifications.service.mjs +0 -122
  209. package/esm2020/lib/utils/file-utils.mjs +0 -65
  210. package/esm2020/lib/utils/regex.mjs +0 -26
  211. package/esm2020/lib/validators/it-validators.mjs +0 -131
  212. package/esm2020/public_api.mjs +0 -64
  213. package/fesm2015/design-angular-kit.mjs +0 -3271
  214. package/fesm2015/design-angular-kit.mjs.map +0 -1
  215. package/fesm2020/design-angular-kit.mjs +0 -3231
  216. package/fesm2020/design-angular-kit.mjs.map +0 -1
  217. package/lib/components/utils/not-found-page/not-found-page.component.d.ts +0 -5
  218. package/lib/modules/components.module.d.ts +0 -57
  219. /package/{esm2020 → esm2022}/design-angular-kit.mjs +0 -0
  220. /package/{esm2020 → esm2022}/lib/utils/boolean-input.mjs +0 -0
@@ -1,14 +1,16 @@
1
- import { ElementRef, EventEmitter, Renderer2 } from '@angular/core';
2
- import { AbstractComponent } from '../../../abstracts/abstract.component';
1
+ import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
2
+ import { ItAbstractComponent } from '../../../abstracts/abstract.component';
3
3
  import { BooleanInput } from '../../../utils/boolean-input';
4
4
  import * as i0 from "@angular/core";
5
- export declare class CollapseComponent extends AbstractComponent {
6
- readonly _renderer: Renderer2;
7
- readonly _elementRef: ElementRef;
5
+ export declare class ItCollapseComponent extends ItAbstractComponent implements AfterViewInit {
8
6
  /**
9
7
  * Enable multiple collapse
10
8
  */
11
- multi?: BooleanInput;
9
+ multi: BooleanInput | undefined;
10
+ /**
11
+ * Toggles the collapsible element on invocation
12
+ */
13
+ opened: BooleanInput | undefined;
12
14
  /**
13
15
  * Custom class
14
16
  */
@@ -16,24 +18,23 @@ export declare class CollapseComponent extends AbstractComponent {
16
18
  /**
17
19
  * This event fires immediately when the show method is called.
18
20
  */
19
- onShow: EventEmitter<Event>;
21
+ showEvent: EventEmitter<Event>;
20
22
  /**
21
23
  * This event is triggered when the tooltip has been made visible to the user (it will wait for the CSS transitions to complete).
22
24
  */
23
- onShown: EventEmitter<Event>;
25
+ shownEvent: EventEmitter<Event>;
24
26
  /**
25
27
  * This event fires immediately when the hide method is called.
26
28
  */
27
- onHide: EventEmitter<Event>;
29
+ hideEvent: EventEmitter<Event>;
28
30
  /**
29
31
  * This event is raised when the tooltip has finished being hidden from the user (it will wait for the CSS transitions to complete).
30
32
  */
31
- onHidden: EventEmitter<Event>;
32
- private readonly element;
33
+ hiddenEvent: EventEmitter<Event>;
33
34
  private collapse?;
34
- private collapseDiv;
35
+ protected collapseDiv?: ElementRef<HTMLDivElement>;
35
36
  get isMulti(): boolean;
36
- constructor(_renderer: Renderer2, _elementRef: ElementRef);
37
+ get isOpenedOnStart(): boolean;
37
38
  ngAfterViewInit(): void;
38
39
  /**
39
40
  * Shows a resealable item
@@ -54,6 +55,6 @@ export declare class CollapseComponent extends AbstractComponent {
54
55
  * Eliminates the possibility of an item being resealable
55
56
  */
56
57
  dispose(): void;
57
- static ɵfac: i0.ɵɵFactoryDeclaration<CollapseComponent, never>;
58
- static ɵcmp: i0.ɵɵComponentDeclaration<CollapseComponent, "it-collapse[id]", ["itCollapse"], { "multi": "multi"; "class": "class"; }, { "onShow": "onShow"; "onShown": "onShown"; "onHide": "onHide"; "onHidden": "onHidden"; }, never, ["*"], false, never>;
58
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItCollapseComponent, never>;
59
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItCollapseComponent, "it-collapse", ["itCollapse"], { "multi": { "alias": "multi"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, { "showEvent": "showEvent"; "shownEvent": "shownEvent"; "hideEvent": "hideEvent"; "hiddenEvent": "hiddenEvent"; }, never, ["*"], true, never>;
59
60
  }
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
- export declare class DimmerButtonsComponent {
2
+ export declare class ItDimmerButtonsComponent {
3
3
  /**
4
4
  * Indica se abbiamo 1 solo bottone
5
5
  * @default false
@@ -7,6 +7,6 @@ export declare class DimmerButtonsComponent {
7
7
  set hasOneButton(value: boolean);
8
8
  get hasOneButton(): boolean;
9
9
  private _hasOneButton;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<DimmerButtonsComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<DimmerButtonsComponent, "it-dimmer-buttons", never, { "hasOneButton": "hasOneButton"; }, {}, never, ["*"], false, never>;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItDimmerButtonsComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItDimmerButtonsComponent, "it-dimmer-buttons", never, { "hasOneButton": { "alias": "hasOneButton"; "required": false; }; }, {}, never, ["*"], true, never>;
12
12
  }
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
- export declare class DimmerIconComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<DimmerIconComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<DimmerIconComponent, "it-dimmer-icon", never, {}, {}, never, ["*"], false, never>;
2
+ export declare class ItDimmerIconComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItDimmerIconComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItDimmerIconComponent, "it-dimmer-icon", never, {}, {}, never, ["*"], true, never>;
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import { ElementRef, OnInit } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- export declare type DimmerColor = '' | 'dimmer-primary';
4
- export declare class DimmerComponent implements OnInit {
3
+ export type DimmerColor = '' | 'dimmer-primary';
4
+ export declare class ItDimmerComponent implements OnInit {
5
5
  private elementRef;
6
6
  /**
7
7
  * Dimmer status
@@ -19,6 +19,6 @@ export declare class DimmerComponent implements OnInit {
19
19
  private _color;
20
20
  constructor(elementRef: ElementRef);
21
21
  ngOnInit(): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<DimmerComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<DimmerComponent, "it-dimmer", never, { "active": "active"; "color": "color"; }, {}, never, ["*"], false, never>;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItDimmerComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItDimmerComponent, "it-dimmer", never, { "active": { "alias": "active"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, ["*"], true, never>;
24
24
  }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./dimmer.component";
3
+ import * as i2 from "./dimmer-icon/dimmer-icon.component";
4
+ import * as i3 from "./dimmer-buttons/dimmer-buttons.component";
5
+ export declare class ItDimmerModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItDimmerModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ItDimmerModule, never, [typeof i1.ItDimmerComponent, typeof i2.ItDimmerIconComponent, typeof i3.ItDimmerButtonsComponent], [typeof i1.ItDimmerComponent, typeof i2.ItDimmerIconComponent, typeof i3.ItDimmerButtonsComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<ItDimmerModule>;
9
+ }
@@ -1,10 +1,14 @@
1
- import { OnChanges, QueryList, SimpleChanges } from '@angular/core';
2
- import { AbstractComponent } from '../../../../abstracts/abstract.component';
1
+ import { AfterViewInit, EventEmitter, OnChanges, QueryList, SimpleChanges } from '@angular/core';
2
+ import { ItAbstractComponent } from '../../../../abstracts/abstract.component';
3
3
  import { ButtonColor, DropdownDirection } from '../../../../interfaces/core';
4
4
  import { BooleanInput } from '../../../../utils/boolean-input';
5
- import { DropdownItemComponent } from '../dropdown-item/dropdown-item.component';
5
+ import { ItDropdownItemComponent } from '../dropdown-item/dropdown-item.component';
6
6
  import * as i0 from "@angular/core";
7
- export declare class DropdownComponent extends AbstractComponent implements OnChanges {
7
+ export declare class ItDropdownComponent extends ItAbstractComponent implements AfterViewInit, OnChanges {
8
+ /**
9
+ * Dropdown mode
10
+ */
11
+ mode: 'button' | 'link';
8
12
  /**
9
13
  * Button color
10
14
  */
@@ -15,19 +19,37 @@ export declare class DropdownComponent extends AbstractComponent implements OnCh
15
19
  * - <strong>dropend</strong>: right
16
20
  * - <strong>dropstart</strong>: left
17
21
  */
18
- direction?: DropdownDirection;
22
+ direction: DropdownDirection | undefined;
19
23
  /**
20
24
  * To get a dropdown menu as wide as the element containing the dropdown button
21
25
  */
22
- fullWidth?: BooleanInput;
26
+ fullWidth: BooleanInput | undefined;
23
27
  /**
24
28
  * Dark menu style
25
29
  */
26
- dark?: BooleanInput;
30
+ dark: BooleanInput | undefined;
27
31
  /**
28
32
  * The dropdown items
29
33
  */
30
- items?: QueryList<DropdownItemComponent>;
34
+ items?: QueryList<ItDropdownItemComponent>;
35
+ /**
36
+ * Fires immediately when the show instance method is called.
37
+ */
38
+ showEvent: EventEmitter<Event>;
39
+ /**
40
+ * Fired when the dropdown has been made visible to the user and CSS transitions have completed.
41
+ */
42
+ shownEvent: EventEmitter<Event>;
43
+ /**
44
+ * Fires immediately when the hide instance method has been called.
45
+ */
46
+ hideEvent: EventEmitter<Event>;
47
+ /**
48
+ * Fired when the dropdown has finished being hidden from the user and CSS transitions have completed.
49
+ */
50
+ hiddenEvent: EventEmitter<Event>;
51
+ private dropdown?;
52
+ private dropdownButton?;
31
53
  get buttonClass(): string;
32
54
  get isFullWidth(): boolean;
33
55
  get isDark(): boolean;
@@ -38,6 +60,27 @@ export declare class DropdownComponent extends AbstractComponent implements OnCh
38
60
  * @private
39
61
  */
40
62
  private setDarkItems;
41
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownComponent, never>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "it-dropdown[id]", never, { "color": "color"; "direction": "direction"; "fullWidth": "fullWidth"; "dark": "dark"; }, {}, ["items"], ["[button]", "[listHeading]", "[list]"], false, never>;
63
+ private updateListeners;
64
+ /**
65
+ * Toggles the dropdown menu of a given navbar or tabbed navigation.
66
+ */
67
+ toggle(): void;
68
+ /**
69
+ * Shows the dropdown menu of a given navbar or tabbed navigation.
70
+ */
71
+ show(): void;
72
+ /**
73
+ * Hides the dropdown menu of a given navbar or tabbed navigation.
74
+ */
75
+ hide(): void;
76
+ /**
77
+ * Updates the position of an element's dropdown.
78
+ */
79
+ update(): void;
80
+ /**
81
+ * Destroys an element's dropdown. (Removes stored data on the DOM element)
82
+ */
83
+ dispose(): void;
84
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItDropdownComponent, never>;
85
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItDropdownComponent, "it-dropdown", ["itDropdown"], { "mode": { "alias": "mode"; "required": false; }; "color": { "alias": "color"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "dark": { "alias": "dark"; "required": false; }; }, { "showEvent": "showEvent"; "shownEvent": "shownEvent"; "hideEvent": "hideEvent"; "hiddenEvent": "hiddenEvent"; }, ["items"], ["[listHeading]", "[list]", "[button]"], true, never>;
43
86
  }
@@ -1,28 +1,24 @@
1
- import { ChangeDetectorRef, ElementRef, Renderer2 } from '@angular/core';
2
1
  import { BooleanInput } from '../../../../utils/boolean-input';
3
2
  import { IconName } from '../../../../interfaces/icon';
4
- import { LinkComponent } from '../../link/link.component';
3
+ import { ItLinkComponent } from '../../link/link.component';
5
4
  import * as i0 from "@angular/core";
6
- export declare class DropdownItemComponent extends LinkComponent {
7
- protected readonly _renderer: Renderer2;
8
- protected readonly _elementRef: ElementRef;
9
- private readonly _changeDetectorRef;
5
+ export declare class ItDropdownItemComponent extends ItLinkComponent {
10
6
  /**
11
7
  * Show divider
12
8
  */
13
- divider?: BooleanInput;
9
+ divider: BooleanInput | undefined;
14
10
  /**
15
11
  * Active item
16
12
  */
17
- active?: BooleanInput;
13
+ active: BooleanInput | undefined;
18
14
  /**
19
15
  * To increase the size of links
20
16
  */
21
- large?: BooleanInput;
17
+ large: BooleanInput | undefined;
22
18
  /**
23
19
  * The name of icon to show
24
20
  */
25
- iconName?: IconName;
21
+ iconName: IconName | undefined;
26
22
  /**
27
23
  * The icon position
28
24
  * @default right
@@ -37,8 +33,7 @@ export declare class DropdownItemComponent extends LinkComponent {
37
33
  get isActive(): boolean;
38
34
  get isLarge(): boolean;
39
35
  get linkClass(): string;
40
- constructor(_renderer: Renderer2, _elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef);
41
36
  setDark(dark: boolean): void;
42
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownItemComponent, never>;
43
- static ɵcmp: i0.ɵɵComponentDeclaration<DropdownItemComponent, "it-dropdown-item", never, { "divider": "divider"; "active": "active"; "large": "large"; "iconName": "iconName"; "iconPosition": "iconPosition"; }, {}, never, ["*"], false, never>;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItDropdownItemComponent, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItDropdownItemComponent, "it-dropdown-item", never, { "divider": { "alias": "divider"; "required": false; }; "active": { "alias": "active"; "required": false; }; "large": { "alias": "large"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; }, {}, never, ["*"], true, never>;
44
39
  }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./dropdown/dropdown.component";
3
+ import * as i2 from "./dropdown-item/dropdown-item.component";
4
+ export declare class ItDropdownModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItDropdownModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ItDropdownModule, never, [typeof i1.ItDropdownComponent, typeof i2.ItDropdownItemComponent], [typeof i1.ItDropdownComponent, typeof i2.ItDropdownItemComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<ItDropdownModule>;
8
+ }
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
- export declare class ForwardDirective {
2
+ export declare class ItForwardDirective {
3
3
  private document?;
4
4
  /**
5
5
  * Indica, se HTMLElement, l'elemento a cui navigare, o se stringa, il selettore che selezionerà l'elemento a cui navigare.
@@ -9,6 +9,6 @@ export declare class ForwardDirective {
9
9
  private _itForward;
10
10
  constructor(document?: Document | undefined);
11
11
  onClick(event: any): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<ForwardDirective, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<ForwardDirective, "[itForward]", never, { "itForward": "itForward"; }, {}, never, never, false, never>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItForwardDirective, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ItForwardDirective, "[itForward]", never, { "itForward": { "alias": "itForward"; "required": false; }; }, {}, never, never, true, never>;
14
14
  }
@@ -1,9 +1,8 @@
1
- import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
1
+ import { AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
2
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 LinkComponent implements AfterViewInit {
5
- protected readonly _renderer: Renderer2;
6
- protected readonly _elementRef: ElementRef;
5
+ export declare class ItLinkComponent extends ItAbstractComponent implements AfterViewInit, OnChanges {
7
6
  /**
8
7
  * The router link action
9
8
  *
@@ -12,23 +11,23 @@ export declare class LinkComponent implements AfterViewInit {
12
11
  * - string: shorthand for array of commands with just the string, i.e. ['/route']
13
12
  * - null|undefined: Disables the link by removing the href
14
13
  */
15
- href?: any[] | string | null;
14
+ href: any[] | string | null | undefined;
16
15
  /**
17
16
  * Is an external link (false to not use Angular router link)
18
17
  */
19
- externalLink?: BooleanInput;
18
+ externalLink: BooleanInput | undefined;
20
19
  /**
21
20
  * Is disabled link
22
21
  */
23
- disabled?: BooleanInput;
22
+ disabled: BooleanInput | undefined;
24
23
  /**
25
24
  * Custom class
26
25
  */
27
26
  class: string;
28
27
  get isExternalLink(): boolean;
29
28
  get isDisabled(): boolean;
30
- constructor(_renderer: Renderer2, _elementRef: ElementRef);
31
29
  ngAfterViewInit(): void;
32
- static ɵfac: i0.ɵɵFactoryDeclaration<LinkComponent, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<LinkComponent, "it-link", never, { "href": "href"; "externalLink": "externalLink"; "disabled": "disabled"; "class": "class"; }, {}, never, ["*"], false, never>;
30
+ ngOnChanges(changes: SimpleChanges): void;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItLinkComponent, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItLinkComponent, "it-link", never, { "href": { "alias": "href"; "required": false; }; "externalLink": { "alias": "externalLink"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
34
33
  }
@@ -1,10 +1,11 @@
1
1
  import { BooleanInput } from '../../../../utils/boolean-input';
2
2
  import * as i0 from "@angular/core";
3
- export declare class ListComponent {
3
+ export declare class ItListComponent {
4
4
  /**
5
- * Add 'link-list' class for navigation menù
5
+ * Add 'link-list' class for navigation menu
6
6
  */
7
- linkList?: BooleanInput;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<ListComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent, "it-list", never, { "linkList": "linkList"; }, {}, never, ["*"], false, never>;
7
+ linkList: BooleanInput | undefined;
8
+ protected get isLinkList(): boolean;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItListComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItListComponent, "it-list", never, { "linkList": { "alias": "linkList"; "required": false; }; }, {}, never, ["*"], true, never>;
10
11
  }
@@ -1,24 +1,28 @@
1
1
  import { BooleanInput } from '../../../../utils/boolean-input';
2
- import { LinkComponent } from '../../link/link.component';
2
+ import { ItLinkComponent } from '../../link/link.component';
3
3
  import * as i0 from "@angular/core";
4
- export declare class ListItemComponent extends LinkComponent {
4
+ export declare class ItListItemComponent extends ItLinkComponent {
5
5
  /**
6
6
  * Add active class
7
7
  */
8
- active?: BooleanInput;
8
+ active: BooleanInput | undefined;
9
9
  /**
10
10
  * Add large class
11
11
  */
12
- large?: BooleanInput;
12
+ large: BooleanInput | undefined;
13
+ /**
14
+ * Add icon-left class
15
+ */
16
+ iconLeft: BooleanInput | undefined;
13
17
  /**
14
18
  * The avatar url
15
19
  */
16
- avatar?: URL;
20
+ avatar: URL | undefined;
17
21
  /**
18
22
  * The thumb image url
19
23
  */
20
- image?: URL;
24
+ image: URL | undefined;
21
25
  get itemClass(): string;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<ListItemComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<ListItemComponent, "it-list-item", never, { "active": "active"; "large": "large"; "avatar": "avatar"; "image": "image"; }, {}, never, ["[icon]", "*", "[action]", "[metadata]", "[multiple]"], false, never>;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItListItemComponent, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItListItemComponent, "it-list-item", never, { "active": { "alias": "active"; "required": false; }; "large": { "alias": "large"; "required": false; }; "iconLeft": { "alias": "iconLeft"; "required": false; }; "avatar": { "alias": "avatar"; "required": false; }; "image": { "alias": "image"; "required": false; }; }, {}, never, ["[icon]", "*", "[action]", "[metadata]", "[multiple]"], true, never>;
24
28
  }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./list/list.component";
3
+ import * as i2 from "./list-item/list-item.component";
4
+ export declare class ItListModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItListModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ItListModule, never, [typeof i1.ItListComponent, typeof i2.ItListItemComponent], [typeof i1.ItListComponent, typeof i2.ItListItemComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<ItListModule>;
8
+ }
@@ -1,39 +1,108 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { AbstractComponent } from "../../../abstracts/abstract.component";
1
+ import { AfterViewInit, EventEmitter } from '@angular/core';
2
+ import { ItAbstractComponent } from '../../../abstracts/abstract.component';
3
+ import { BooleanInput } from '../../../utils/boolean-input';
4
+ import { Modal as BSModal } from 'bootstrap';
3
5
  import * as i0 from "@angular/core";
4
- export declare class ModalComponent extends AbstractComponent {
6
+ /**
7
+ * Modal windows
8
+ * @description To show featured content, notifications to users, or personalized content.
9
+ */
10
+ export declare class ItModalComponent extends ItAbstractComponent implements AfterViewInit {
5
11
  /**
6
- * The modal Title
12
+ * Show/Hide close button on header
13
+ * @default true
7
14
  */
8
- title: string;
15
+ closeButton: BooleanInput;
16
+ /**
17
+ * To correctly format the contents of the modal with icon
18
+ * @default false
19
+ */
20
+ alertModal: BooleanInput | undefined;
21
+ /**
22
+ * To correctly format the contents of the modal with Link List
23
+ * @default false
24
+ */
25
+ dialogLinkList: BooleanInput | undefined;
26
+ /**
27
+ * Modal type Popconfirm can be used for short confirmation messages.
28
+ * @default false
29
+ */
30
+ popconfirm: BooleanInput | undefined;
31
+ /**
32
+ * You can choose to use a scroll inside the modal, keeping the header and footer of the modal always visible
33
+ * @default false
34
+ */
35
+ scrollable: BooleanInput | undefined;
36
+ /**
37
+ * To have modals that appear with fades
38
+ * @default true
39
+ */
40
+ fade?: BooleanInput;
41
+ /**
42
+ * Modal alignment
43
+ * - <b>centered</b>: to vertically center the modal
44
+ * - <b>left</b>: to left-align the modal
45
+ * - <b>right</b>: to right-align the modal
46
+ * @default undefined
47
+ */
48
+ alignment: 'centered' | 'left' | 'right' | undefined;
9
49
  /**
10
50
  * The modal size
51
+ * @default undefined
52
+ */
53
+ size: 'sm' | 'lg' | 'xl' | undefined;
54
+ /**
55
+ * Includes a modal-backdrop element. Alternatively, specify static for a backdrop which doesn’t close the modal when clicked.
56
+ * @default true
57
+ */
58
+ backdrop: 'static' | BooleanInput;
59
+ /**
60
+ * Puts the focus on the modal when initialized.
61
+ * @default true
62
+ */
63
+ focus: BooleanInput;
64
+ /**
65
+ * Closes the modal when escape key is pressed.
66
+ * @default true
67
+ */
68
+ keyboard: BooleanInput;
69
+ /**
70
+ * To better distinguish the footer element with a shadow
71
+ * @default false
72
+ */
73
+ footerShadow: BooleanInput | undefined;
74
+ /**
75
+ * Modal options
11
76
  */
12
- size?: 'modal-sm' | 'modal-lg' | 'modal-xl';
77
+ options?: Partial<BSModal.Options>;
13
78
  /**
14
79
  * This event fires immediately when the instance method show is called.
15
80
  */
16
- onShow: EventEmitter<Event>;
81
+ showEvent: EventEmitter<Event>;
17
82
  /**
18
83
  * This event fires when the modal has been made visible to the user (it will wait for CSS transitions to complete).
19
84
  */
20
- onShown: EventEmitter<Event>;
85
+ shownEvent: EventEmitter<Event>;
21
86
  /**
22
87
  * This event is raised immediately when the instance method hide has been called.
23
88
  */
24
- onHide: EventEmitter<Event>;
89
+ hideEvent: EventEmitter<Event>;
25
90
  /**
26
91
  * This event fires when the modal has finished hiding from the user (it will wait for CSS transitions to complete).
27
92
  */
28
- onHidden: EventEmitter<Event>;
93
+ hiddenEvent: EventEmitter<Event>;
29
94
  /**
30
95
  * This event is fired when the modal is displayed, its background is static and a click outside the modal or a press
31
96
  * of the esc key occurs and data-bs-keyboard is set to false.
32
97
  */
33
- onHidePrevented: EventEmitter<Event>;
34
- private modal;
98
+ hidePreventedEvent: EventEmitter<Event>;
99
+ private modal?;
35
100
  private modalElement?;
36
101
  ngAfterViewInit(): void;
102
+ protected get isCloseButton(): boolean;
103
+ protected get isFooterShadow(): boolean;
104
+ protected get modalClass(): string;
105
+ protected get dialogClass(): string;
37
106
  /**
38
107
  * Manually activate/deactivate a modal. Returns to the caller before the modal has actually been shown or hidden
39
108
  */
@@ -54,6 +123,6 @@ export declare class ModalComponent extends AbstractComponent {
54
123
  * Destroys the modal of an element.
55
124
  */
56
125
  dispose(): void;
57
- static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
58
- static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "it-modal[id][title]", ["itModal"], { "title": "title"; "size": "size"; }, { "onShow": "onShow"; "onShown": "onShown"; "onHide": "onHide"; "onHidden": "onHidden"; "onHidePrevented": "onHidePrevented"; }, never, ["*", "[footer]"], false, never>;
126
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItModalComponent, never>;
127
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItModalComponent, "it-modal", ["itModal"], { "closeButton": { "alias": "closeButton"; "required": false; }; "alertModal": { "alias": "alertModal"; "required": false; }; "dialogLinkList": { "alias": "dialogLinkList"; "required": false; }; "popconfirm": { "alias": "popconfirm"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "fade": { "alias": "fade"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "size": { "alias": "size"; "required": false; }; "backdrop": { "alias": "backdrop"; "required": false; }; "focus": { "alias": "focus"; "required": false; }; "keyboard": { "alias": "keyboard"; "required": false; }; "footerShadow": { "alias": "footerShadow"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "showEvent": "showEvent"; "shownEvent": "shownEvent"; "hideEvent": "hideEvent"; "hiddenEvent": "hiddenEvent"; "hidePreventedEvent": "hidePreventedEvent"; }, never, ["[beforeTitle]", "[modalTitle]", "[description]", "*", "[footer]"], true, never>;
59
128
  }
@@ -1,30 +1,44 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { NotificationsService } from '../../../services/notifications/notifications.service';
1
+ import { ChangeDetectorRef, OnDestroy } from '@angular/core';
2
+ import { ItNotificationService } from '../../../services/notification/notification.service';
3
3
  import { Notification, NotificationPosition, NotificationType } from '../../../interfaces/core';
4
+ import { BooleanInput } from '../../../utils/boolean-input';
4
5
  import * as i0 from "@angular/core";
5
- export declare class NotificationsComponent implements OnDestroy {
6
+ export declare class ItNotificationsComponent implements OnDestroy {
7
+ private readonly _changeDetectorRef;
6
8
  private readonly _notificationService;
7
9
  /**
8
- * Default notifications duration
10
+ * Default notifications duration (milliseconds)
9
11
  * @default 8000
10
12
  */
11
13
  duration: number;
12
14
  /**
13
15
  * Default notifications position
14
16
  */
15
- position?: NotificationPosition;
17
+ position: NotificationPosition | undefined;
18
+ /**
19
+ * Default notifications is dismissible
20
+ * @default true
21
+ */
22
+ dismissible?: BooleanInput;
16
23
  private subscription;
17
- notifications: Array<Notification & {
24
+ private notificationCount;
25
+ protected notifications: Array<Notification & {
18
26
  id: string;
19
27
  }>;
20
- constructor(_notificationService: NotificationsService);
28
+ constructor(_changeDetectorRef: ChangeDetectorRef, _notificationService: ItNotificationService);
21
29
  ngOnDestroy(): void;
22
- get NotificationType(): typeof NotificationType;
30
+ protected get NotificationType(): typeof NotificationType;
23
31
  /**
24
32
  * Hide the notification
25
33
  * @param id
26
34
  */
27
- hideNotification(id: string): void;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsComponent, "it-notifications", never, { "duration": "duration"; "position": "position"; }, {}, never, never, false, never>;
35
+ protected hideNotification(id: string): void;
36
+ /**
37
+ * Retrieve the icon name by notification type
38
+ * @param notification the notification
39
+ * @protected
40
+ */
41
+ private getNotificationIcon;
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItNotificationsComponent, never>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItNotificationsComponent, "it-notifications", never, { "duration": { "alias": "duration"; "required": false; }; "position": { "alias": "position"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; }, {}, never, never, true, never>;
30
44
  }