design-angular-kit 1.0.0-1 → 1.0.0-3

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 (218) hide show
  1. package/README.md +152 -18
  2. package/assets/i18n/it.json +81 -0
  3. package/esm2020/lib/abstracts/abstract-form-component.mjs +165 -0
  4. package/esm2020/lib/abstracts/abstract.component.mjs +20 -0
  5. package/esm2020/lib/components/core/accordion/accordion.component.mjs +20 -0
  6. package/esm2020/lib/components/core/alert/alert.component.mjs +29 -0
  7. package/esm2020/lib/components/core/badge/badge.directive.mjs +34 -0
  8. package/esm2020/lib/components/core/button/button.directive.mjs +78 -0
  9. package/esm2020/lib/components/core/callout/callout.component.mjs +84 -0
  10. package/esm2020/lib/components/core/card/card.component.mjs +58 -0
  11. package/esm2020/lib/components/core/carousel/carousel/carousel.component.mjs +66 -0
  12. package/esm2020/lib/components/core/carousel/carousel-item/carousel-item.component.mjs +14 -0
  13. package/esm2020/lib/components/core/chip/chip.component.mjs +89 -0
  14. package/esm2020/lib/components/core/collapse/collapse.component.mjs +96 -0
  15. package/esm2020/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.mjs +24 -0
  16. package/esm2020/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.mjs +11 -0
  17. package/esm2020/lib/components/core/dimmer/dimmer.component.mjs +59 -0
  18. package/esm2020/lib/components/core/dropdown/dropdown/dropdown.component.mjs +60 -0
  19. package/esm2020/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +71 -0
  20. package/esm2020/lib/components/core/forward/forward.directive.mjs +51 -0
  21. package/esm2020/lib/components/core/link/link.component.mjs +39 -0
  22. package/esm2020/lib/components/core/list/list/list.component.mjs +13 -0
  23. package/esm2020/lib/components/core/list/list-item/list-item.component.mjs +36 -0
  24. package/esm2020/lib/components/core/modal/modal.component.mjs +98 -0
  25. package/esm2020/lib/components/core/notifications/notifications.component.mjs +66 -0
  26. package/esm2020/lib/components/core/pagination/pagination.component.mjs +51 -0
  27. package/esm2020/lib/components/core/popover/popover.directive.mjs +176 -0
  28. package/esm2020/lib/components/core/progress-bar/progress-bar.component.mjs +34 -0
  29. package/esm2020/lib/components/core/progress-button/progress-button.component.mjs +27 -0
  30. package/esm2020/lib/components/core/spinner/spinner.component.mjs +35 -0
  31. package/esm2020/lib/components/core/tab/tab-container/tab-container.component.mjs +33 -0
  32. package/esm2020/lib/components/core/tab/tab-item/tab-item.component.mjs +36 -0
  33. package/esm2020/lib/components/core/table/table.component.mjs +57 -0
  34. package/esm2020/lib/components/core/tooltip/tooltip.directive.mjs +140 -0
  35. package/esm2020/lib/components/form/checkbox/checkbox.component.mjs +40 -0
  36. package/esm2020/lib/components/form/input/input.component.mjs +226 -0
  37. package/esm2020/lib/components/form/password-input/password-input.component.mjs +112 -0
  38. package/esm2020/lib/components/form/radio-button/radio-button.component.mjs +53 -0
  39. package/esm2020/lib/components/form/select/select.component.mjs +62 -0
  40. package/esm2020/lib/components/form/textarea/textarea.component.mjs +46 -0
  41. package/esm2020/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +134 -0
  42. package/esm2020/lib/components/form/upload-file-list/upload-file-list.component.mjs +99 -0
  43. package/esm2020/lib/components/navigation/back-button/back-button.component.mjs +69 -0
  44. package/esm2020/lib/components/navigation/back-to-top/back-to-top.component.mjs +39 -0
  45. package/esm2020/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.mjs +45 -0
  46. package/esm2020/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.mjs +23 -0
  47. package/esm2020/lib/components/navigation/header/header.component.mjs +61 -0
  48. package/esm2020/lib/components/utils/icon/icon.component.mjs +54 -0
  49. package/esm2020/lib/components/utils/not-found-page/not-found-page.component.mjs +13 -0
  50. package/esm2020/lib/design-angular-kit.module.mjs +32 -132
  51. package/esm2020/lib/interfaces/core.mjs +16 -0
  52. package/esm2020/lib/interfaces/form.mjs +2 -0
  53. package/esm2020/lib/interfaces/icon.mjs +2 -0
  54. package/esm2020/lib/modules/components.module.mjs +245 -0
  55. package/esm2020/lib/pipes/mark-matching-text.pipe.mjs +36 -0
  56. package/esm2020/lib/services/notifications/notifications.service.mjs +122 -0
  57. package/esm2020/lib/utils/boolean-input.mjs +15 -0
  58. package/esm2020/lib/utils/file-utils.mjs +65 -0
  59. package/esm2020/lib/utils/regex.mjs +26 -0
  60. package/esm2020/lib/validators/it-validators.mjs +131 -0
  61. package/esm2020/public_api.mjs +62 -36
  62. package/fesm2015/design-angular-kit.mjs +2856 -2640
  63. package/fesm2015/design-angular-kit.mjs.map +1 -1
  64. package/fesm2020/design-angular-kit.mjs +2837 -2640
  65. package/fesm2020/design-angular-kit.mjs.map +1 -1
  66. package/lib/abstracts/abstract-form-component.d.ts +84 -0
  67. package/lib/abstracts/abstract.component.d.ts +14 -0
  68. package/lib/components/core/accordion/accordion.component.d.ts +16 -0
  69. package/lib/components/core/alert/alert.component.d.ts +17 -0
  70. package/lib/components/core/badge/badge.directive.d.ts +16 -0
  71. package/lib/components/core/button/button.directive.d.ts +38 -0
  72. package/lib/components/core/callout/callout.component.d.ts +47 -0
  73. package/lib/components/core/card/card.component.d.ts +41 -0
  74. package/lib/components/core/carousel/carousel/carousel.component.d.ts +46 -0
  75. package/lib/components/core/carousel/carousel-item/carousel-item.component.d.ts +10 -0
  76. package/lib/components/core/chip/chip.component.d.ts +62 -0
  77. package/lib/components/core/collapse/collapse.component.d.ts +59 -0
  78. package/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.d.ts +12 -0
  79. package/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.d.ts +5 -0
  80. package/lib/components/core/dimmer/dimmer.component.d.ts +24 -0
  81. package/lib/components/core/dropdown/dropdown/dropdown.component.d.ts +43 -0
  82. package/lib/components/core/dropdown/dropdown-item/dropdown-item.component.d.ts +44 -0
  83. package/lib/components/core/forward/forward.directive.d.ts +14 -0
  84. package/lib/components/core/link/link.component.d.ts +34 -0
  85. package/lib/components/core/list/list/list.component.d.ts +10 -0
  86. package/lib/components/core/list/list-item/list-item.component.d.ts +24 -0
  87. package/lib/components/core/modal/modal.component.d.ts +59 -0
  88. package/lib/components/core/notifications/notifications.component.d.ts +30 -0
  89. package/lib/components/core/pagination/pagination.component.d.ts +31 -0
  90. package/lib/components/core/popover/popover.directive.d.ts +97 -0
  91. package/lib/components/core/progress-bar/progress-bar.component.d.ts +28 -0
  92. package/lib/components/core/progress-button/progress-button.component.d.ts +22 -0
  93. package/lib/components/core/spinner/spinner.component.d.ts +21 -0
  94. package/lib/components/core/tab/tab-container/tab-container.component.d.ts +28 -0
  95. package/lib/components/core/tab/tab-item/tab-item.component.d.ts +34 -0
  96. package/lib/components/core/table/table.component.d.ts +54 -0
  97. package/lib/components/core/tooltip/tooltip.directive.d.ts +80 -0
  98. package/lib/components/form/checkbox/checkbox.component.d.ts +30 -0
  99. package/lib/components/form/input/input.component.d.ts +94 -0
  100. package/lib/components/form/password-input/password-input.component.d.ts +54 -0
  101. package/lib/components/form/radio-button/radio-button.component.d.ts +29 -0
  102. package/lib/components/form/select/select.component.d.ts +30 -0
  103. package/lib/components/form/textarea/textarea.component.d.ts +24 -0
  104. package/lib/components/form/upload-drag-drop/upload-drag-drop.component.d.ts +53 -0
  105. package/lib/components/form/upload-file-list/upload-file-list.component.d.ts +57 -0
  106. package/lib/components/navigation/back-button/back-button.component.d.ts +47 -0
  107. package/lib/components/navigation/back-to-top/back-to-top.component.d.ts +27 -0
  108. package/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +30 -0
  109. package/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.d.ts +22 -0
  110. package/lib/components/navigation/header/header.component.d.ts +28 -0
  111. package/lib/components/utils/icon/icon.component.d.ts +40 -0
  112. package/lib/components/utils/not-found-page/not-found-page.component.d.ts +5 -0
  113. package/lib/design-angular-kit.module.d.ts +4 -24
  114. package/lib/interfaces/core.d.ts +36 -0
  115. package/lib/interfaces/form.d.ts +61 -0
  116. package/lib/interfaces/icon.d.ts +3 -0
  117. package/lib/modules/components.module.d.ts +58 -0
  118. package/lib/{form-input → pipes}/mark-matching-text.pipe.d.ts +0 -0
  119. package/lib/services/notifications/notifications.service.d.ts +63 -0
  120. package/lib/utils/boolean-input.d.ts +11 -0
  121. package/lib/utils/file-utils.d.ts +27 -0
  122. package/lib/utils/regex.d.ts +25 -0
  123. package/lib/validators/it-validators.d.ts +58 -0
  124. package/package.json +20 -13
  125. package/public_api.d.ts +54 -35
  126. package/esm2020/lib/badge/badge.directive.mjs +0 -83
  127. package/esm2020/lib/breadcrumb/breadcrumb-item.component.mjs +0 -66
  128. package/esm2020/lib/breadcrumb/breadcrumb.component.mjs +0 -89
  129. package/esm2020/lib/button/button.directive.mjs +0 -185
  130. package/esm2020/lib/button/button.module.mjs +0 -18
  131. package/esm2020/lib/checkbox/checkbox.component.mjs +0 -138
  132. package/esm2020/lib/collapse/collapse-group.component.mjs +0 -57
  133. package/esm2020/lib/collapse/collapse-item.component.mjs +0 -79
  134. package/esm2020/lib/collapse/collapse.config.mjs +0 -12
  135. package/esm2020/lib/collapse/collapse.directive.mjs +0 -55
  136. package/esm2020/lib/collapse/collapse.module.mjs +0 -22
  137. package/esm2020/lib/dropdown/dropdown-divider.component.mjs +0 -11
  138. package/esm2020/lib/dropdown/dropdown-item.component.mjs +0 -97
  139. package/esm2020/lib/dropdown/dropdown.component.mjs +0 -143
  140. package/esm2020/lib/dropdown/dropdown.config.mjs +0 -12
  141. package/esm2020/lib/dropdown/dropdown.directive.mjs +0 -156
  142. package/esm2020/lib/dropdown/dropdown.module.mjs +0 -25
  143. package/esm2020/lib/enums/icons.enum.mjs +0 -27
  144. package/esm2020/lib/form-input/form-input-password.utils.mjs +0 -154
  145. package/esm2020/lib/form-input/form-input.component.mjs +0 -495
  146. package/esm2020/lib/form-input/it-prefix.directive.mjs +0 -13
  147. package/esm2020/lib/form-input/it-suffix.directive.mjs +0 -13
  148. package/esm2020/lib/form-input/it-text-prefix.directive.mjs +0 -13
  149. package/esm2020/lib/form-input/it-text-suffix.directive.mjs +0 -13
  150. package/esm2020/lib/form-input/mark-matching-text.pipe.mjs +0 -36
  151. package/esm2020/lib/icon/icon.component.mjs +0 -87
  152. package/esm2020/lib/icon/icon.module.mjs +0 -18
  153. package/esm2020/lib/models/Alignment.mjs +0 -15
  154. package/esm2020/lib/models/ButtonSize.mjs +0 -15
  155. package/esm2020/lib/models/InputType.mjs +0 -44
  156. package/esm2020/lib/models/ThemeColor.mjs +0 -30
  157. package/esm2020/lib/popover/popover.config.mjs +0 -17
  158. package/esm2020/lib/popover/popover.directive.mjs +0 -33
  159. package/esm2020/lib/popover/popover.module.mjs +0 -19
  160. package/esm2020/lib/progress-bar/progress-bar.component.mjs +0 -98
  161. package/esm2020/lib/radio/radio.component.mjs +0 -287
  162. package/esm2020/lib/radio/unique-selection-dispatcher.mjs +0 -55
  163. package/esm2020/lib/tabs/tab-group.component.mjs +0 -177
  164. package/esm2020/lib/tabs/tab.component.mjs +0 -73
  165. package/esm2020/lib/tabs/tabs.module.mjs +0 -20
  166. package/esm2020/lib/toggle/toggle.component.mjs +0 -86
  167. package/esm2020/lib/tooltip/tooltip.config.mjs +0 -17
  168. package/esm2020/lib/tooltip/tooltip.directive.mjs +0 -43
  169. package/esm2020/lib/tooltip/tooltip.module.mjs +0 -19
  170. package/esm2020/lib/util/focus-mouse.directive.mjs +0 -32
  171. package/esm2020/lib/util/util.mjs +0 -12
  172. package/esm2020/lib/util/utils.module.mjs +0 -16
  173. package/lib/badge/badge.directive.d.ts +0 -33
  174. package/lib/breadcrumb/breadcrumb-item.component.d.ts +0 -33
  175. package/lib/breadcrumb/breadcrumb.component.d.ts +0 -33
  176. package/lib/button/button.directive.d.ts +0 -72
  177. package/lib/button/button.module.d.ts +0 -8
  178. package/lib/checkbox/checkbox.component.d.ts +0 -61
  179. package/lib/collapse/collapse-group.component.d.ts +0 -16
  180. package/lib/collapse/collapse-item.component.d.ts +0 -46
  181. package/lib/collapse/collapse.config.d.ts +0 -6
  182. package/lib/collapse/collapse.directive.d.ts +0 -25
  183. package/lib/collapse/collapse.module.d.ts +0 -12
  184. package/lib/dropdown/dropdown-divider.component.d.ts +0 -5
  185. package/lib/dropdown/dropdown-item.component.d.ts +0 -56
  186. package/lib/dropdown/dropdown.component.d.ts +0 -65
  187. package/lib/dropdown/dropdown.config.d.ts +0 -6
  188. package/lib/dropdown/dropdown.directive.d.ts +0 -77
  189. package/lib/dropdown/dropdown.module.d.ts +0 -15
  190. package/lib/enums/icons.enum.d.ts +0 -23
  191. package/lib/form-input/form-input-password.utils.d.ts +0 -45
  192. package/lib/form-input/form-input.component.d.ts +0 -283
  193. package/lib/form-input/it-prefix.directive.d.ts +0 -5
  194. package/lib/form-input/it-suffix.directive.d.ts +0 -5
  195. package/lib/form-input/it-text-prefix.directive.d.ts +0 -5
  196. package/lib/form-input/it-text-suffix.directive.d.ts +0 -5
  197. package/lib/icon/icon.component.d.ts +0 -34
  198. package/lib/icon/icon.module.d.ts +0 -8
  199. package/lib/models/Alignment.d.ts +0 -12
  200. package/lib/models/ButtonSize.d.ts +0 -11
  201. package/lib/models/InputType.d.ts +0 -36
  202. package/lib/models/ThemeColor.d.ts +0 -21
  203. package/lib/popover/popover.config.d.ts +0 -11
  204. package/lib/popover/popover.directive.d.ts +0 -20
  205. package/lib/popover/popover.module.d.ts +0 -9
  206. package/lib/progress-bar/progress-bar.component.d.ts +0 -55
  207. package/lib/radio/radio.component.d.ts +0 -116
  208. package/lib/radio/unique-selection-dispatcher.d.ts +0 -36
  209. package/lib/tabs/tab-group.component.d.ts +0 -71
  210. package/lib/tabs/tab.component.d.ts +0 -44
  211. package/lib/tabs/tabs.module.d.ts +0 -10
  212. package/lib/toggle/toggle.component.d.ts +0 -46
  213. package/lib/tooltip/tooltip.config.d.ts +0 -11
  214. package/lib/tooltip/tooltip.directive.d.ts +0 -27
  215. package/lib/tooltip/tooltip.module.d.ts +0 -9
  216. package/lib/util/focus-mouse.directive.d.ts +0 -13
  217. package/lib/util/util.d.ts +0 -5
  218. package/lib/util/utils.module.d.ts +0 -7
@@ -0,0 +1,58 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "../abstracts/abstract.component";
3
+ import * as i2 from "../abstracts/abstract-form-component";
4
+ import * as i3 from "../components/core/accordion/accordion.component";
5
+ import * as i4 from "../components/core/alert/alert.component";
6
+ import * as i5 from "../components/core/badge/badge.directive";
7
+ import * as i6 from "../components/core/button/button.directive";
8
+ import * as i7 from "../components/core/callout/callout.component";
9
+ import * as i8 from "../components/core/card/card.component";
10
+ import * as i9 from "../components/core/carousel/carousel/carousel.component";
11
+ import * as i10 from "../components/core/carousel/carousel-item/carousel-item.component";
12
+ import * as i11 from "../components/core/chip/chip.component";
13
+ import * as i12 from "../components/core/collapse/collapse.component";
14
+ import * as i13 from "../components/core/dimmer/dimmer-buttons/dimmer-buttons.component";
15
+ import * as i14 from "../components/core/dimmer/dimmer.component";
16
+ import * as i15 from "../components/core/dimmer/dimmer-icon/dimmer-icon.component";
17
+ import * as i16 from "../components/core/dropdown/dropdown/dropdown.component";
18
+ import * as i17 from "../components/core/dropdown/dropdown-item/dropdown-item.component";
19
+ import * as i18 from "../components/core/forward/forward.directive";
20
+ import * as i19 from "../components/core/link/link.component";
21
+ import * as i20 from "../components/core/list/list/list.component";
22
+ import * as i21 from "../components/core/list/list-item/list-item.component";
23
+ import * as i22 from "../components/core/modal/modal.component";
24
+ import * as i23 from "../components/core/notifications/notifications.component";
25
+ import * as i24 from "../components/core/pagination/pagination.component";
26
+ import * as i25 from "../components/core/popover/popover.directive";
27
+ import * as i26 from "../components/core/progress-bar/progress-bar.component";
28
+ import * as i27 from "../components/core/progress-button/progress-button.component";
29
+ import * as i28 from "../components/core/spinner/spinner.component";
30
+ import * as i29 from "../components/core/tab/tab-container/tab-container.component";
31
+ import * as i30 from "../components/core/tab/tab-item/tab-item.component";
32
+ import * as i31 from "../components/core/table/table.component";
33
+ import * as i32 from "../components/core/tooltip/tooltip.directive";
34
+ import * as i33 from "../components/form/checkbox/checkbox.component";
35
+ import * as i34 from "../components/form/input/input.component";
36
+ import * as i35 from "../components/form/password-input/password-input.component";
37
+ import * as i36 from "../components/form/radio-button/radio-button.component";
38
+ import * as i37 from "../components/form/select/select.component";
39
+ import * as i38 from "../components/form/textarea/textarea.component";
40
+ import * as i39 from "../components/form/upload-drag-drop/upload-drag-drop.component";
41
+ import * as i40 from "../components/form/upload-file-list/upload-file-list.component";
42
+ import * as i41 from "../components/navigation/back-button/back-button.component";
43
+ import * as i42 from "../components/navigation/back-to-top/back-to-top.component";
44
+ import * as i43 from "../components/navigation/breadcrumbs/breadcrumb/breadcrumb.component";
45
+ import * as i44 from "../components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component";
46
+ import * as i45 from "../components/navigation/header/header.component";
47
+ import * as i46 from "../components/utils/icon/icon.component";
48
+ import * as i47 from "../components/utils/not-found-page/not-found-page.component";
49
+ import * as i48 from "../pipes/mark-matching-text.pipe";
50
+ import * as i49 from "@angular/common";
51
+ import * as i50 from "@ngx-translate/core";
52
+ import * as i51 from "@angular/forms";
53
+ import * as i52 from "@angular/router";
54
+ export declare class ComponentsModule {
55
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComponentsModule, never>;
56
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentsModule, [typeof i1.AbstractComponent, typeof i2.AbstractFormComponent, typeof i3.AccordionComponent, typeof i4.AlertComponent, typeof i5.BadgeDirective, typeof i6.ButtonDirective, typeof i7.CalloutComponent, typeof i8.CardComponent, typeof i9.CarouselComponent, typeof i10.CarouselItemComponent, typeof i11.ChipComponent, typeof i12.CollapseComponent, typeof i13.DimmerButtonsComponent, typeof i14.DimmerComponent, typeof i15.DimmerIconComponent, typeof i16.DropdownComponent, typeof i17.DropdownItemComponent, typeof i18.ForwardDirective, typeof i19.LinkComponent, typeof i20.ListComponent, typeof i21.ListItemComponent, typeof i22.ModalComponent, typeof i23.NotificationsComponent, typeof i24.PaginationComponent, typeof i25.PopoverDirective, typeof i26.ProgressBarComponent, typeof i27.ProgressButtonComponent, typeof i28.SpinnerComponent, typeof i29.TabContainerComponent, typeof i30.TabItemComponent, typeof i31.TableComponent, typeof i32.TooltipDirective, typeof i33.CheckboxComponent, typeof i34.InputComponent, typeof i35.PasswordInputComponent, typeof i36.RadioButtonComponent, typeof i37.SelectComponent, typeof i38.TextareaComponent, typeof i39.UploadDragDropComponent, typeof i40.UploadFileListComponent, typeof i41.BackButtonComponent, typeof i42.BackToTopComponent, typeof i43.BreadcrumbComponent, typeof i44.BreadcrumbItemComponent, typeof i45.HeaderComponent, typeof i46.IconComponent, typeof i47.NotFoundPageComponent, typeof i48.MarkMatchingTextPipe], [typeof i49.CommonModule, typeof i50.TranslateModule, typeof i51.ReactiveFormsModule, typeof i49.NgIf, typeof i49.NgForOf, typeof i52.RouterLink], [typeof i3.AccordionComponent, typeof i4.AlertComponent, typeof i5.BadgeDirective, typeof i6.ButtonDirective, typeof i7.CalloutComponent, typeof i8.CardComponent, typeof i9.CarouselComponent, typeof i10.CarouselItemComponent, typeof i11.ChipComponent, typeof i12.CollapseComponent, typeof i13.DimmerButtonsComponent, typeof i14.DimmerComponent, typeof i15.DimmerIconComponent, typeof i16.DropdownComponent, typeof i17.DropdownItemComponent, typeof i18.ForwardDirective, typeof i19.LinkComponent, typeof i20.ListComponent, typeof i21.ListItemComponent, typeof i22.ModalComponent, typeof i23.NotificationsComponent, typeof i24.PaginationComponent, typeof i25.PopoverDirective, typeof i26.ProgressBarComponent, typeof i27.ProgressButtonComponent, typeof i28.SpinnerComponent, typeof i29.TabContainerComponent, typeof i30.TabItemComponent, typeof i31.TableComponent, typeof i32.TooltipDirective, typeof i33.CheckboxComponent, typeof i34.InputComponent, typeof i35.PasswordInputComponent, typeof i36.RadioButtonComponent, typeof i37.SelectComponent, typeof i38.TextareaComponent, typeof i39.UploadDragDropComponent, typeof i40.UploadFileListComponent, typeof i41.BackButtonComponent, typeof i42.BackToTopComponent, typeof i43.BreadcrumbComponent, typeof i44.BreadcrumbItemComponent, typeof i45.HeaderComponent, typeof i46.IconComponent, typeof i47.NotFoundPageComponent, typeof i48.MarkMatchingTextPipe]>;
57
+ static ɵinj: i0.ɵɵInjectorDeclaration<ComponentsModule>;
58
+ }
@@ -0,0 +1,63 @@
1
+ import { Observable } from "rxjs";
2
+ import { Notification, NotificationPosition, NotificationType } from "../../interfaces/core";
3
+ import * as i0 from "@angular/core";
4
+ export declare class NotificationsService {
5
+ private subject;
6
+ /**
7
+ * Listen on notification arrived
8
+ * @param filterType filter type of notification
9
+ */
10
+ onNotification(filterType?: NotificationType): Observable<Notification>;
11
+ /**
12
+ * Show new notification
13
+ * @param notification notification
14
+ */
15
+ addNotification(notification: Notification): void;
16
+ /**
17
+ * Create new Standard notification
18
+ * @param title notification title
19
+ * @param message notification message
20
+ * @param dismissable notification dismissable
21
+ * @param duration notification duration (millis)
22
+ * @param position notification position
23
+ */
24
+ standard(title: string, message?: string, dismissable?: boolean, duration?: number, position?: NotificationPosition): void;
25
+ /**
26
+ * Create new Success notification
27
+ * @param title notification title
28
+ * @param message notification message
29
+ * @param dismissable notification dismissable
30
+ * @param duration notification duration (millis)
31
+ * @param position notification position
32
+ */
33
+ success(title: string, message?: string, dismissable?: boolean, duration?: number, position?: NotificationPosition): void;
34
+ /**
35
+ * Create new Error notification
36
+ * @param title notification title
37
+ * @param message notification message
38
+ * @param dismissable notification dismissable
39
+ * @param duration notification duration (millis)
40
+ * @param position notification position
41
+ */
42
+ error(title: string, message?: string, dismissable?: boolean, duration?: number, position?: NotificationPosition): void;
43
+ /**
44
+ * Create new Warning notification
45
+ * @param title notification title
46
+ * @param message notification message
47
+ * @param dismissable notification dismissable
48
+ * @param duration notification duration (millis)
49
+ * @param position notification position
50
+ */
51
+ warning(title: string, message?: string, dismissable?: boolean, duration?: number, position?: NotificationPosition): void;
52
+ /**
53
+ * Create new Info notification
54
+ * @param title notification title
55
+ * @param message notification message
56
+ * @param dismissable notification dismissable
57
+ * @param duration notification duration (millis)
58
+ * @param position notification position
59
+ */
60
+ info(title: string, message?: string, dismissable?: boolean, duration?: number, position?: NotificationPosition): void;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsService, never>;
62
+ static ɵprov: i0.ɵɵInjectableDeclaration<NotificationsService>;
63
+ }
@@ -0,0 +1,11 @@
1
+ export declare type BooleanInput = boolean | 'true' | 'false';
2
+ /**
3
+ * Check if boolean input has true value and not is `undefined`
4
+ * @param booleanInput the boolean input
5
+ */
6
+ export declare function isTrueBooleanInput(booleanInput?: BooleanInput): boolean;
7
+ /**
8
+ * Check if boolean input has false value or is `undefined`
9
+ * @param booleanInput the boolean input
10
+ */
11
+ export declare function isFalseBooleanInput(booleanInput?: BooleanInput): boolean;
@@ -0,0 +1,27 @@
1
+ import { Observable } from 'rxjs';
2
+ export declare class FileUtils {
3
+ /**
4
+ * Return the file size string
5
+ * @param file the file
6
+ * @param decimals decimal to show
7
+ */
8
+ static getFileSizeString(file: File, decimals?: number): string;
9
+ /**
10
+ * Convert a file to base64 string
11
+ * @param file the base64 string
12
+ */
13
+ static fileToBase64(file: File): Observable<string>;
14
+ /**
15
+ * Convert base64 to Blob
16
+ * @param base64 the base64 string
17
+ * @param mimeType the <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types">MIME type</a> (example 'application/pdf')
18
+ */
19
+ static base64ToBlob(base64: string, mimeType: string): Blob;
20
+ /**
21
+ * Convert base64 to File
22
+ * @param base64 the base64 string
23
+ * @param mimeType the <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types">MIME type</a> (example 'application/pdf')
24
+ * @param filename the file name
25
+ */
26
+ static base64ToFile(base64: string, mimeType: string, filename: string): File;
27
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * General Email Regex (RFC 5322 Official Standard)
3
+ * http://emailregex.com/
4
+ */
5
+ export declare const EMAIL_REGEX: RegExp;
6
+ /**
7
+ * Phone number Regex
8
+ */
9
+ export declare const PHONE_NUMBER_REGEX: RegExp;
10
+ /**
11
+ * URL Regex
12
+ */
13
+ export declare const URL_REGEX: RegExp;
14
+ /**
15
+ * The italian tax code Regex (Codice Fiscale)
16
+ */
17
+ export declare const ITALIAN_TAX_CODE_REGEX: RegExp;
18
+ /**
19
+ * The VAT number Regex (Partita iva)
20
+ */
21
+ export declare const VAT_NUMBER_REGEX: RegExp;
22
+ /**
23
+ * Italian CAP Regex
24
+ */
25
+ export declare const CAP_REGEX: RegExp;
@@ -0,0 +1,58 @@
1
+ import { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';
2
+ export declare class ItValidators {
3
+ static SpecialCharacterPattern: string;
4
+ /**
5
+ * Static pattern validator with custom error
6
+ * @param regex
7
+ * @param error
8
+ */
9
+ static customPattern(regex: RegExp, error: ValidationErrors): ValidatorFn;
10
+ /**
11
+ * Set Validator if the condition is satisfied
12
+ * @param validator the validator to apply if the condition is true
13
+ * @param condition the condition
14
+ */
15
+ static conditional(validator: ValidatorFn, condition: (control: AbstractControl) => boolean): ValidatorFn;
16
+ /**
17
+ * Check whether our password and confirm password are a match
18
+ * @param control
19
+ */
20
+ static passwordMatch(control: AbstractControl): AbstractControl | null;
21
+ /**
22
+ * Password validator
23
+ * @param minLength minimum password length - default 10
24
+ * @param hasNumber check whether the entered password has a number - default true
25
+ * @param hasCapitalCase check whether the entered password has upper case letter - default true
26
+ * @param hasSmallCase check whether the entered password has a lower-case letter - default true
27
+ * @param hasSpecialCharacters check whether the entered password has a special character - default true
28
+ */
29
+ static password(minLength?: number, hasNumber?: boolean, hasCapitalCase?: boolean, hasSmallCase?: boolean, hasSpecialCharacters?: boolean): ValidatorFn;
30
+ /**
31
+ * Email validator
32
+ */
33
+ static email(): Array<ValidatorFn>;
34
+ /**
35
+ * Phone number validator
36
+ */
37
+ static tel(): ValidatorFn;
38
+ /**
39
+ * URL validator
40
+ */
41
+ static url(): ValidatorFn;
42
+ /**
43
+ * Italian Tax Code validator
44
+ */
45
+ static taxCode(): ValidatorFn;
46
+ /**
47
+ * VAT Number validator
48
+ */
49
+ static vatNumber(): ValidatorFn;
50
+ /**
51
+ * Italian Postal Code validator (CAP)
52
+ */
53
+ static cap(): ValidatorFn;
54
+ /**
55
+ * Check if value is a valid RegExp
56
+ */
57
+ static regExp(): ValidatorFn;
58
+ }
package/package.json CHANGED
@@ -1,8 +1,8 @@
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-1",
5
- "license": " BSD-3-Clause",
4
+ "version": "1.0.0-3",
5
+ "license": "BSD-3-Clause",
6
6
  "keywords": [
7
7
  "angular",
8
8
  "toolkit",
@@ -15,20 +15,27 @@
15
15
  "type": "git",
16
16
  "url": "https://github.com/italia/design-angular-kit.git"
17
17
  },
18
+ "author": {
19
+ "name": "Antonino Bonanno",
20
+ "email": "bonanno@net-serv.it",
21
+ "url": "https://github.com/AntoninoBonanno"
22
+ },
23
+ "contributors": [
24
+ {
25
+ "name": "Net Service Srl",
26
+ "email": "areatecnica@net-serv.it",
27
+ "url": "https://www.net-serv.it/"
28
+ }
29
+ ],
18
30
  "dependencies": {
19
- "@angular/localize": "^12.2.16",
20
- "@ng-bootstrap/ng-bootstrap": "13.0.0",
21
- "@popperjs/core": "^2.10.2",
22
- "bootstrap": "^5.2.0",
23
- "tslib": "^2.0.0",
24
- "io-ts": "^2.2.16",
25
- "fp-ts": "^2.13.1"
31
+ "tslib": "^2.4.1"
26
32
  },
27
33
  "peerDependencies": {
28
- "@angular/common": "^10.0.0",
29
- "@angular/core": "^10.0.0",
30
- "@angular/forms": "^10.0.0",
31
- "bootstrap-italia": "2.0.2"
34
+ "@angular/common": "^15.0.4",
35
+ "@angular/core": "^15.0.4",
36
+ "@ngx-translate/core": "^14.0.0",
37
+ "@ngx-translate/http-loader": "^7.0.0",
38
+ "bootstrap-italia": "^2.2.0"
32
39
  },
33
40
  "module": "fesm2015/design-angular-kit.mjs",
34
41
  "es2020": "fesm2020/design-angular-kit.mjs",
package/public_api.d.ts CHANGED
@@ -1,36 +1,55 @@
1
- export * from './lib/progress-bar/progress-bar.component';
2
- export * from './lib/checkbox/checkbox.component';
3
- export * from './lib/popover/popover.directive';
4
- export * from './lib/popover/popover.config';
5
- export * from './lib/popover/popover.module';
6
- export * from './lib/toggle/toggle.component';
7
- export * from './lib/radio/radio.component';
8
- export * from './lib/tooltip/tooltip.directive';
9
- export * from './lib/tooltip/tooltip.module';
10
- export * from './lib/tooltip/tooltip.config';
11
- export * from './lib/button/button.directive';
12
- export * from './lib/button/button.module';
13
- export * from './lib/badge/badge.directive';
14
- export * from './lib/collapse/collapse.directive';
15
- export * from './lib/collapse/collapse-item.component';
16
- export * from './lib/collapse/collapse-group.component';
17
- export * from './lib/collapse/collapse.module';
18
- export * from './lib/form-input/form-input.component';
19
- export * from './lib/form-input/it-prefix.directive';
20
- export * from './lib/form-input/it-suffix.directive';
21
- export * from './lib/form-input/it-text-suffix.directive';
22
- export * from './lib/form-input/it-text-prefix.directive';
23
- export * from './lib/dropdown/dropdown.component';
24
- export * from './lib/dropdown/dropdown-item.component';
25
- export * from './lib/dropdown/dropdown-divider.component';
26
- export * from './lib/breadcrumb/breadcrumb.component';
27
- export * from './lib/breadcrumb/breadcrumb-item.component';
28
- export * from './lib/tabs/tab-group.component';
29
- export * from './lib/icon/icon.component';
30
- export * from './lib/icon/icon.module';
31
- export * from './lib/dropdown/dropdown.directive';
32
- export * from './lib/dropdown/dropdown.config';
33
- export * from './lib/dropdown/dropdown.module';
34
- export * from './lib/util/utils.module';
35
- export * from './lib/util/focus-mouse.directive';
36
1
  export * from './lib/design-angular-kit.module';
2
+ export * from './lib/modules/components.module';
3
+ export * from './lib/components/core/accordion/accordion.component';
4
+ export * from './lib/components/core/alert/alert.component';
5
+ export * from './lib/components/core/badge/badge.directive';
6
+ export * from './lib/components/core/button/button.directive';
7
+ export * from './lib/components/core/callout/callout.component';
8
+ export * from './lib/components/core/card/card.component';
9
+ export * from './lib/components/core/carousel/carousel/carousel.component';
10
+ export * from './lib/components/core/carousel/carousel-item/carousel-item.component';
11
+ export * from './lib/components/core/chip/chip.component';
12
+ export * from './lib/components/core/collapse/collapse.component';
13
+ export * from './lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component';
14
+ export * from './lib/components/core/dimmer/dimmer.component';
15
+ export * from './lib/components/core/dimmer/dimmer-icon/dimmer-icon.component';
16
+ export * from './lib/components/core/dropdown/dropdown/dropdown.component';
17
+ export * from './lib/components/core/dropdown/dropdown-item/dropdown-item.component';
18
+ export * from './lib/components/core/forward/forward.directive';
19
+ export * from './lib/components/core/link/link.component';
20
+ export * from './lib/components/core/list/list/list.component';
21
+ export * from './lib/components/core/list/list-item/list-item.component';
22
+ export * from './lib/components/core/modal/modal.component';
23
+ export * from './lib/components/core/notifications/notifications.component';
24
+ export * from './lib/components/core/pagination/pagination.component';
25
+ export * from './lib/components/core/popover/popover.directive';
26
+ export * from './lib/components/core/progress-bar/progress-bar.component';
27
+ export * from './lib/components/core/progress-button/progress-button.component';
28
+ export * from './lib/components/core/spinner/spinner.component';
29
+ export * from './lib/components/core/tab/tab-container/tab-container.component';
30
+ export * from './lib/components/core/tab/tab-item/tab-item.component';
31
+ export * from './lib/components/core/table/table.component';
32
+ export * from './lib/components/core/tooltip/tooltip.directive';
33
+ export * from './lib/components/form/checkbox/checkbox.component';
34
+ export * from './lib/components/form/input/input.component';
35
+ export * from './lib/components/form/password-input/password-input.component';
36
+ export * from './lib/components/form/radio-button/radio-button.component';
37
+ export * from './lib/components/form/select/select.component';
38
+ export * from './lib/components/form/textarea/textarea.component';
39
+ export * from './lib/components/form/upload-drag-drop/upload-drag-drop.component';
40
+ export * from './lib/components/form/upload-file-list/upload-file-list.component';
41
+ export * from './lib/components/navigation/back-button/back-button.component';
42
+ export * from './lib/components/navigation/back-to-top/back-to-top.component';
43
+ export * from './lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component';
44
+ export * from './lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component';
45
+ export * from './lib/components/navigation/header/header.component';
46
+ export * from './lib/components/utils/icon/icon.component';
47
+ export * from './lib/components/utils/not-found-page/not-found-page.component';
48
+ export * from './lib/services/notifications/notifications.service';
49
+ export * from './lib/pipes/mark-matching-text.pipe';
50
+ export * from './lib/interfaces/core';
51
+ export * from './lib/interfaces/form';
52
+ export * from './lib/interfaces/icon';
53
+ export * from './lib/utils/regex';
54
+ export * from './lib/utils/file-utils';
55
+ export * from './lib/validators/it-validators';
@@ -1,83 +0,0 @@
1
- import { Directive, Input, HostBinding } from '@angular/core';
2
- import { ThemeColor, THEME_COLORS } from '../models/ThemeColor';
3
- import { Util } from '../util/util';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Una badge con design bootstrap italia.
7
- */
8
- export class BadgeDirective {
9
- constructor(el) {
10
- this.el = el;
11
- this._badgeColor = THEME_COLORS.LIGHT;
12
- this._badgeText = '';
13
- this._isPill = false;
14
- }
15
- /**
16
- * (Opzionale) indica il colore del badge. Può essere `primary`, `secondary`, `danger`, `warning`, `info`, `success`, `light` o `dark`.
17
- * Se non viene fornito o il valore è diverso da quelli previsti il suo valore di default è `light`.
18
- */
19
- get badgeColor() {
20
- return this._badgeColor;
21
- }
22
- set badgeColor(value) {
23
- if (ThemeColor.is(value)) {
24
- this._badgeColor = value;
25
- }
26
- else {
27
- this._badgeColor = THEME_COLORS.LIGHT;
28
- }
29
- }
30
- /**
31
- * La direttiva che abilita l'elemento come badge. Mostra il testo come contenuto del badge.
32
- * Se valutato ad `undefined`, `null` o stringa vuota il badge non viene mostrato.
33
- */
34
- get badgeText() { return this._badgeText; }
35
- set badgeText(value) {
36
- if (value) {
37
- this._badgeText = value;
38
- }
39
- else {
40
- this._badgeText = '';
41
- }
42
- }
43
- /**
44
- * Indica se il badge è arrotondato o meno.
45
- */
46
- get isPill() { return this._isPill; }
47
- set isPill(value) {
48
- this._isPill = Util.coerceBooleanProperty(value);
49
- }
50
- getBadgeColorClassName() {
51
- return `bg-${this._badgeColor}`;
52
- }
53
- get hostClasses() {
54
- return [
55
- 'badge',
56
- this.getBadgeColorClassName(),
57
- this.isPill ? 'rounded-pill' : '',
58
- ].join(' ');
59
- }
60
- }
61
- BadgeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: BadgeDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
62
- BadgeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: BadgeDirective, selector: "[itBadge]", inputs: { badgeColor: "badgeColor", badgeText: ["itBadge", "badgeText"], isPill: "isPill" }, host: { properties: { "innerText": "this.badgeText", "class": "this.hostClasses" } }, exportAs: ["itBadge"], ngImport: i0 });
63
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: BadgeDirective, decorators: [{
64
- type: Directive,
65
- args: [{
66
- selector: '[itBadge]',
67
- exportAs: 'itBadge'
68
- }]
69
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { badgeColor: [{
70
- type: Input
71
- }], badgeText: [{
72
- type: Input,
73
- args: ['itBadge']
74
- }, {
75
- type: HostBinding,
76
- args: ['innerText']
77
- }], isPill: [{
78
- type: Input
79
- }], hostClasses: [{
80
- type: HostBinding,
81
- args: ['class']
82
- }] } });
83
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFkZ2UuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZGVzaWduLWFuZ3VsYXIta2l0L3NyYy9saWIvYmFkZ2UvYmFkZ2UuZGlyZWN0aXZlLnR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zLl9iYWRnZUNvbG9yfWA7XG4gIH1cblxuICBASG9zdEJpbmRpbmcoJ2NsYXNzJylcbiAgZ2V0IGhvc3RDbGFzc2VzKCk6IHN0cmluZyB7XG4gICAgcmV0dXJuIFtcbiAgICAgICdiYWRnZScsXG4gICAgICB0aGlzLmdldEJhZGdlQ29sb3JDbGFzc05hbWUoKSxcbiAgICAgIHRoaXMuaXNQaWxsID8gJ3JvdW5kZWQtcGlsbCcgOiAnJyxcbiAgICBdLmpvaW4oJyAnKTtcbiAgfVxuXG4gIGNvbnN0cnVjdG9yKHByaXZhdGUgZWw6IEVsZW1lbnRSZWYpIHsgfVxuXG59XG4iXX0=
@@ -1,66 +0,0 @@
1
- import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@angular/common";
4
- import * as i2 from "../util/focus-mouse.directive";
5
- import * as i3 from "../icon/icon.component";
6
- let identifier = 0;
7
- export class BreadcrumbItemComponent {
8
- constructor(_cdRef, _elemRef) {
9
- this._cdRef = _cdRef;
10
- this._elemRef = _elemRef;
11
- this.id = `it-breadcrumb-item-${identifier++}`;
12
- this._isLast = false;
13
- this.customClass = '';
14
- }
15
- /**
16
- * Il link alla pagina verso cui andare al click di questo elemento del breadcrumb
17
- */
18
- get link() { return this._link; }
19
- set link(value) { this._link = value; }
20
- /**
21
- * La classe dell'icona da usare prima del testo dell'elemento del breadcrumb
22
- */
23
- get icon() { return this._icon; }
24
- set icon(value) { this._icon = value; }
25
- get iconColor() { return this._iconColor; }
26
- set iconColor(value) {
27
- if (this._iconColor !== value) {
28
- this._iconColor = value;
29
- this._cdRef.detectChanges();
30
- }
31
- }
32
- get separator() { return this._separator; }
33
- set separator(value) { this._separator = value; }
34
- get isLast() { return this._isLast; }
35
- set isLast(value) {
36
- this._isLast = value;
37
- const breadcrumbItem = this._elemRef.nativeElement.querySelector('.breadcrumb-item');
38
- if (this._isLast) {
39
- breadcrumbItem.setAttribute('aria-current', 'page');
40
- }
41
- else {
42
- if (breadcrumbItem.hasAttribute('aria-current')) {
43
- breadcrumbItem.removeAttribute('aria-current');
44
- }
45
- }
46
- this._cdRef.detectChanges();
47
- }
48
- get breadcrumbClass() {
49
- return 'breadcrumb-item ' + (this.customClass ?? '') + (this.isLast ? ' active' : '');
50
- }
51
- }
52
- BreadcrumbItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: BreadcrumbItemComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
53
- BreadcrumbItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: BreadcrumbItemComponent, selector: "it-breadcrumb-item", inputs: { link: "link", icon: "icon", iconColor: "iconColor", customClass: "customClass" }, ngImport: i0, template: "<li [class]=\"breadcrumbClass\" [id]=\"id\">\n <it-icon [icon] = \"icon\" [color] = \"iconColor\"></it-icon>\n\n <a [href]=\"link\" focusMouse>\n <ng-content></ng-content>\n </a> \n <span class=\"separator\" *ngIf=\"!isLast\">{{separator}}</span>\n</li>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.FocusMouseDirective, selector: "[focusMouse]", exportAs: ["focusMouse"] }, { kind: "component", type: i3.IconComponent, selector: "it-icon", inputs: ["rounded", "roundedColor", "icon", "wai", "size", "color", "bgColor", "padded", "expand", "position", "verticalAlign"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
54
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: BreadcrumbItemComponent, decorators: [{
55
- type: Component,
56
- args: [{ selector: 'it-breadcrumb-item', changeDetection: ChangeDetectionStrategy.OnPush, template: "<li [class]=\"breadcrumbClass\" [id]=\"id\">\n <it-icon [icon] = \"icon\" [color] = \"iconColor\"></it-icon>\n\n <a [href]=\"link\" focusMouse>\n <ng-content></ng-content>\n </a> \n <span class=\"separator\" *ngIf=\"!isLast\">{{separator}}</span>\n</li>\n" }]
57
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { link: [{
58
- type: Input
59
- }], icon: [{
60
- type: Input
61
- }], iconColor: [{
62
- type: Input
63
- }], customClass: [{
64
- type: Input
65
- }] } });
66
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJlYWRjcnVtYi1pdGVtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Rlc2lnbi1hbmd1bGFyLWtpdC9zcmMvbGliL2JyZWFkY3J1bWIvYnJlYWRjcnVtYi1pdGVtLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Rlc2lnbi1hbmd1bGFyLWtpdC9zcmMvbGliL2JyZWFkY3J1bWIvYnJlYWRjcnVtYi1pdGVtLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsS0FBSyxFQUFjLHVCQUF1QixFQUFxQixNQUFNLGVBQWUsQ0FBQzs7Ozs7QUFFakgsSUFBSSxVQUFVLEdBQUcsQ0FBQyxDQUFDO0FBUW5CLE1BQU0sT0FBTyx1QkFBdUI7SUFHbEMsWUFBb0IsTUFBeUIsRUFBVSxRQUFvQjtRQUF2RCxXQUFNLEdBQU4sTUFBTSxDQUFtQjtRQUFVLGFBQVEsR0FBUixRQUFRLENBQVk7UUFGM0UsT0FBRSxHQUFHLHNCQUFzQixVQUFVLEVBQUUsRUFBRSxDQUFDO1FBK0NsQyxZQUFPLEdBQUcsS0FBSyxDQUFDO1FBRWYsZ0JBQVcsR0FBVyxFQUFFLENBQ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