design-angular-kit 1.0.0-9 → 1.0.0-prerelease.2

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 (259) hide show
  1. package/README.md +212 -64
  2. package/assets/i18n/en.json +81 -12
  3. package/assets/i18n/it.json +80 -11
  4. package/esm2022/lib/abstracts/abstract-form.component.mjs +187 -0
  5. package/esm2022/lib/abstracts/abstract.component.mjs +45 -0
  6. package/esm2022/lib/components/core/accordion/accordion.component.mjs +39 -0
  7. package/esm2022/lib/components/core/alert/alert.component.mjs +71 -0
  8. package/esm2022/lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component.mjs +43 -0
  9. package/esm2022/lib/components/core/avatar/avatar-group/avatar-group.component.mjs +38 -0
  10. package/esm2022/lib/components/core/avatar/avatar.directive.mjs +78 -0
  11. package/esm2022/lib/components/core/avatar/avatar.module.mjs +33 -0
  12. package/esm2022/lib/components/core/badge/badge.directive.mjs +39 -0
  13. package/esm2022/lib/components/core/button/button.directive.mjs +86 -0
  14. package/esm2022/lib/components/core/callout/callout.component.mjs +57 -0
  15. package/esm2022/lib/components/core/card/card.component.mjs +59 -0
  16. package/esm2022/lib/components/core/carousel/carousel/carousel.component.mjs +84 -0
  17. package/esm2022/lib/components/core/carousel/carousel-item/carousel-item.component.mjs +19 -0
  18. package/esm2022/lib/components/core/carousel/carousel.module.mjs +18 -0
  19. package/esm2022/lib/components/core/chip/chip.component.mjs +136 -0
  20. package/esm2022/lib/components/core/collapse/collapse.component.mjs +104 -0
  21. package/esm2022/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.mjs +24 -0
  22. package/esm2022/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.mjs +11 -0
  23. package/esm2022/lib/components/core/dimmer/dimmer.component.mjs +55 -0
  24. package/esm2022/lib/components/core/dimmer/dimmer.module.mjs +19 -0
  25. package/esm2022/lib/components/core/dropdown/dropdown/dropdown.component.mjs +144 -0
  26. package/esm2022/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +61 -0
  27. package/esm2022/lib/components/core/dropdown/dropdown.module.mjs +18 -0
  28. package/esm2022/lib/components/core/forward/forward.directive.mjs +53 -0
  29. package/esm2022/lib/components/core/link/link.component.mjs +42 -0
  30. package/esm2022/lib/components/core/list/list/list.component.mjs +22 -0
  31. package/esm2022/lib/components/core/list/list-item/list-item.component.mjs +51 -0
  32. package/esm2022/lib/components/core/list/list.module.mjs +18 -0
  33. package/esm2022/lib/components/core/modal/modal.component.mjs +194 -0
  34. package/esm2022/lib/components/core/notifications/notifications.component.mjs +111 -0
  35. package/esm2022/lib/components/core/pagination/pagination.component.mjs +130 -0
  36. package/esm2022/lib/components/core/popover/popover.directive.mjs +176 -0
  37. package/esm2022/lib/components/core/progress-bar/progress-bar.component.mjs +34 -0
  38. package/esm2022/lib/components/core/progress-button/progress-button.component.mjs +25 -0
  39. package/esm2022/lib/components/core/spinner/spinner.component.mjs +30 -0
  40. package/esm2022/lib/components/core/steppers/steppers-container/steppers-container.component.mjs +116 -0
  41. package/esm2022/lib/components/core/steppers/steppers-item/steppers-item.component.mjs +20 -0
  42. package/esm2022/lib/components/core/steppers/steppers.module.mjs +18 -0
  43. package/esm2022/lib/components/core/tab/tab-container/tab-container.component.mjs +63 -0
  44. package/esm2022/lib/components/core/tab/tab-item/tab-item.component.mjs +39 -0
  45. package/esm2022/lib/components/core/tab/tab.module.mjs +18 -0
  46. package/esm2022/lib/components/core/table/sort/sort-header/sort-header.component.mjs +134 -0
  47. package/esm2022/lib/components/core/table/sort/sort.directive.mjs +123 -0
  48. package/esm2022/lib/components/core/table/table.component.mjs +45 -0
  49. package/esm2022/lib/components/core/table/table.module.mjs +19 -0
  50. package/esm2022/lib/components/core/tooltip/tooltip.directive.mjs +143 -0
  51. package/esm2022/lib/components/form/autocomplete/autocomplete.component.mjs +106 -0
  52. package/esm2022/lib/components/form/checkbox/checkbox.component.mjs +48 -0
  53. package/esm2022/lib/components/form/form.module.mjs +59 -0
  54. package/esm2022/lib/components/form/input/input.component.mjs +187 -0
  55. package/esm2022/lib/components/form/password-input/password-input.component.mjs +149 -0
  56. package/esm2022/lib/components/form/radio-button/radio-button.component.mjs +60 -0
  57. package/esm2022/lib/components/form/range/range.component.mjs +64 -0
  58. package/esm2022/lib/components/form/rating/rating.component.mjs +50 -0
  59. package/esm2022/lib/components/form/select/select.component.mjs +70 -0
  60. package/esm2022/lib/components/form/textarea/textarea.component.mjs +55 -0
  61. package/esm2022/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +142 -0
  62. package/esm2022/lib/components/form/upload-file-list/upload-file-list.component.mjs +107 -0
  63. package/esm2022/lib/components/navigation/back-button/back-button.component.mjs +67 -0
  64. package/esm2022/lib/components/navigation/back-to-top/back-to-top.component.mjs +58 -0
  65. package/esm2022/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.mjs +51 -0
  66. package/esm2022/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.mjs +21 -0
  67. package/esm2022/lib/components/navigation/breadcrumbs/breadcrumbs.module.mjs +18 -0
  68. package/esm2022/lib/components/navigation/header/header.component.mjs +87 -0
  69. package/esm2022/lib/components/navigation/megamenu/megamenu.component.mjs +27 -0
  70. package/esm2022/lib/components/navigation/navbar/navbar/navbar.component.mjs +40 -0
  71. package/esm2022/lib/components/navigation/navbar/navbar-item/navbar-item.component.mjs +11 -0
  72. package/esm2022/lib/components/navigation/navbar/navbar.module.mjs +18 -0
  73. package/esm2022/lib/components/utils/error-page/error-page.component.mjs +74 -0
  74. package/esm2022/lib/components/utils/icon/icon.component.mjs +58 -0
  75. package/esm2022/lib/components/utils/language-switcher/language-switcher.component.mjs +50 -0
  76. package/esm2022/lib/design-angular-kit.module.mjs +213 -0
  77. package/esm2022/lib/enums/colors.enums.mjs +12 -0
  78. package/esm2022/lib/enums/sizes.enum.mjs +9 -0
  79. package/esm2022/lib/interfaces/core.mjs +16 -0
  80. package/esm2022/lib/interfaces/design-angular-kit-config.mjs +7 -0
  81. package/esm2022/lib/interfaces/form.mjs +2 -0
  82. package/esm2022/lib/interfaces/icon.mjs +165 -0
  83. package/esm2022/lib/interfaces/sortable-table.mjs +6 -0
  84. package/esm2022/lib/pipes/date-ago.pipe.mjs +56 -0
  85. package/esm2022/lib/pipes/duration.pipe.mjs +110 -0
  86. package/esm2022/lib/pipes/mark-matching-text.pipe.mjs +48 -0
  87. package/esm2022/lib/provide-design-angular-kit.mjs +61 -0
  88. package/esm2022/lib/services/notification/notification.service.mjs +120 -0
  89. package/esm2022/lib/utils/coercion.mjs +18 -0
  90. package/esm2022/lib/utils/date-utils.mjs +160 -0
  91. package/esm2022/lib/utils/file-utils.mjs +73 -0
  92. package/esm2022/lib/utils/regex.mjs +31 -0
  93. package/esm2022/lib/validators/it-validators.mjs +153 -0
  94. package/esm2022/public_api.mjs +99 -0
  95. package/fesm2022/design-angular-kit.mjs +5556 -0
  96. package/fesm2022/design-angular-kit.mjs.map +1 -0
  97. package/lib/abstracts/{abstract-form-component.d.ts → abstract-form.component.d.ts} +12 -14
  98. package/lib/abstracts/abstract.component.d.ts +18 -8
  99. package/lib/components/core/accordion/accordion.component.d.ts +11 -5
  100. package/lib/components/core/alert/alert.component.d.ts +15 -10
  101. package/lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component.d.ts +29 -0
  102. package/lib/components/core/avatar/avatar-group/avatar-group.component.d.ts +13 -0
  103. package/lib/components/core/avatar/avatar.directive.d.ts +33 -0
  104. package/lib/components/core/avatar/avatar.module.d.ts +9 -0
  105. package/lib/components/core/badge/badge.directive.d.ts +14 -7
  106. package/lib/components/core/button/button.directive.d.ts +25 -15
  107. package/lib/components/core/callout/callout.component.d.ts +18 -20
  108. package/lib/components/core/card/card.component.d.ts +46 -18
  109. package/lib/components/core/carousel/carousel/carousel.component.d.ts +34 -15
  110. package/lib/components/core/carousel/carousel-item/carousel-item.component.d.ts +8 -3
  111. package/lib/components/core/carousel/carousel.module.d.ts +8 -0
  112. package/lib/components/core/chip/chip.component.d.ts +29 -15
  113. package/lib/components/core/collapse/collapse.component.d.ts +22 -15
  114. package/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.d.ts +3 -3
  115. package/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.d.ts +3 -3
  116. package/lib/components/core/dimmer/dimmer.component.d.ts +6 -6
  117. package/lib/components/core/dimmer/dimmer.module.d.ts +9 -0
  118. package/lib/components/core/dropdown/dropdown/dropdown.component.d.ts +30 -17
  119. package/lib/components/core/dropdown/dropdown-item/dropdown-item.component.d.ts +15 -12
  120. package/lib/components/core/dropdown/dropdown.module.d.ts +8 -0
  121. package/lib/components/core/forward/forward.directive.d.ts +3 -3
  122. package/lib/components/core/link/link.component.d.ts +14 -10
  123. package/lib/components/core/list/list/list.component.d.ts +20 -6
  124. package/lib/components/core/list/list-item/list-item.component.d.ts +23 -9
  125. package/lib/components/core/list/list.module.d.ts +8 -0
  126. package/lib/components/core/modal/modal.component.d.ts +89 -13
  127. package/lib/components/core/notifications/notifications.component.d.ts +9 -8
  128. package/lib/components/core/pagination/pagination.component.d.ts +71 -10
  129. package/lib/components/core/popover/popover.directive.d.ts +15 -14
  130. package/lib/components/core/progress-bar/progress-bar.component.d.ts +11 -8
  131. package/lib/components/core/progress-button/progress-button.component.d.ts +5 -6
  132. package/lib/components/core/spinner/spinner.component.d.ts +13 -10
  133. package/lib/components/core/steppers/steppers-container/steppers-container.component.d.ts +55 -27
  134. package/lib/components/core/steppers/steppers-item/steppers-item.component.d.ts +5 -4
  135. package/lib/components/core/steppers/steppers.module.d.ts +8 -0
  136. package/lib/components/core/tab/tab-container/tab-container.component.d.ts +15 -12
  137. package/lib/components/core/tab/tab-item/tab-item.component.d.ts +14 -10
  138. package/lib/components/core/tab/tab.module.d.ts +8 -0
  139. package/lib/components/core/table/sort/sort-header/sort-header.component.d.ts +72 -0
  140. package/lib/components/core/table/sort/sort.directive.d.ts +53 -0
  141. package/lib/components/core/table/table.component.d.ts +26 -20
  142. package/lib/components/core/table/table.module.d.ts +9 -0
  143. package/lib/components/core/tooltip/tooltip.directive.d.ts +12 -11
  144. package/lib/components/form/autocomplete/autocomplete.component.d.ts +55 -0
  145. package/lib/components/form/checkbox/checkbox.component.d.ts +23 -12
  146. package/lib/components/form/form.module.d.ts +17 -0
  147. package/lib/components/form/input/input.component.d.ts +42 -43
  148. package/lib/components/form/password-input/password-input.component.d.ts +35 -10
  149. package/lib/components/form/radio-button/radio-button.component.d.ts +20 -11
  150. package/lib/components/form/range/range.component.d.ts +42 -0
  151. package/lib/components/form/rating/rating.component.d.ts +24 -0
  152. package/lib/components/form/select/select.component.d.ts +12 -6
  153. package/lib/components/form/textarea/textarea.component.d.ts +15 -5
  154. package/lib/components/form/upload-drag-drop/upload-drag-drop.component.d.ts +18 -12
  155. package/lib/components/form/upload-file-list/upload-file-list.component.d.ts +14 -11
  156. package/lib/components/navigation/back-button/back-button.component.d.ts +8 -8
  157. package/lib/components/navigation/back-to-top/back-to-top.component.d.ts +15 -16
  158. package/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +12 -14
  159. package/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.d.ts +9 -8
  160. package/lib/components/navigation/breadcrumbs/breadcrumbs.module.d.ts +8 -0
  161. package/lib/components/navigation/header/header.component.d.ts +28 -25
  162. package/lib/components/navigation/megamenu/megamenu.component.d.ts +22 -0
  163. package/lib/components/navigation/navbar/navbar/navbar.component.d.ts +16 -0
  164. package/lib/components/navigation/navbar/navbar-item/navbar-item.component.d.ts +5 -0
  165. package/lib/components/navigation/navbar/navbar.module.d.ts +8 -0
  166. package/lib/components/utils/error-page/error-page.component.d.ts +44 -0
  167. package/lib/components/utils/icon/icon.component.d.ts +25 -17
  168. package/lib/components/utils/language-switcher/language-switcher.component.d.ts +9 -5
  169. package/lib/design-angular-kit.module.d.ts +44 -7
  170. package/lib/enums/colors.enums.d.ts +10 -0
  171. package/lib/enums/sizes.enum.d.ts +7 -0
  172. package/lib/interfaces/core.d.ts +16 -15
  173. package/lib/interfaces/design-angular-kit-config.d.ts +30 -0
  174. package/lib/interfaces/form.d.ts +9 -9
  175. package/lib/interfaces/icon.d.ts +4 -3
  176. package/lib/interfaces/sortable-table.d.ts +33 -0
  177. package/lib/pipes/date-ago.pipe.d.ts +17 -0
  178. package/lib/pipes/duration.pipe.d.ts +35 -0
  179. package/lib/pipes/mark-matching-text.pipe.d.ts +15 -7
  180. package/lib/provide-design-angular-kit.d.ts +7 -0
  181. package/lib/services/{notifications/notifications.service.d.ts → notification/notification.service.d.ts} +3 -3
  182. package/lib/utils/coercion.d.ts +14 -0
  183. package/lib/utils/date-utils.d.ts +78 -0
  184. package/lib/utils/file-utils.d.ts +1 -1
  185. package/lib/utils/regex.d.ts +5 -0
  186. package/lib/validators/it-validators.d.ts +9 -2
  187. package/package.json +17 -22
  188. package/public_api.d.ts +31 -4
  189. package/esm2020/lib/abstracts/abstract-form-component.mjs +0 -174
  190. package/esm2020/lib/abstracts/abstract.component.mjs +0 -27
  191. package/esm2020/lib/components/core/accordion/accordion.component.mjs +0 -31
  192. package/esm2020/lib/components/core/alert/alert.component.mjs +0 -69
  193. package/esm2020/lib/components/core/badge/badge.directive.mjs +0 -34
  194. package/esm2020/lib/components/core/button/button.directive.mjs +0 -80
  195. package/esm2020/lib/components/core/callout/callout.component.mjs +0 -84
  196. package/esm2020/lib/components/core/card/card.component.mjs +0 -58
  197. package/esm2020/lib/components/core/carousel/carousel/carousel.component.mjs +0 -66
  198. package/esm2020/lib/components/core/carousel/carousel-item/carousel-item.component.mjs +0 -14
  199. package/esm2020/lib/components/core/chip/chip.component.mjs +0 -89
  200. package/esm2020/lib/components/core/collapse/collapse.component.mjs +0 -101
  201. package/esm2020/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.mjs +0 -24
  202. package/esm2020/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.mjs +0 -11
  203. package/esm2020/lib/components/core/dimmer/dimmer.component.mjs +0 -59
  204. package/esm2020/lib/components/core/dropdown/dropdown/dropdown.component.mjs +0 -130
  205. package/esm2020/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +0 -68
  206. package/esm2020/lib/components/core/forward/forward.directive.mjs +0 -51
  207. package/esm2020/lib/components/core/link/link.component.mjs +0 -40
  208. package/esm2020/lib/components/core/list/list/list.component.mjs +0 -13
  209. package/esm2020/lib/components/core/list/list-item/list-item.component.mjs +0 -36
  210. package/esm2020/lib/components/core/modal/modal.component.mjs +0 -98
  211. package/esm2020/lib/components/core/notifications/notifications.component.mjs +0 -110
  212. package/esm2020/lib/components/core/pagination/pagination.component.mjs +0 -51
  213. package/esm2020/lib/components/core/popover/popover.directive.mjs +0 -179
  214. package/esm2020/lib/components/core/progress-bar/progress-bar.component.mjs +0 -34
  215. package/esm2020/lib/components/core/progress-button/progress-button.component.mjs +0 -27
  216. package/esm2020/lib/components/core/spinner/spinner.component.mjs +0 -35
  217. package/esm2020/lib/components/core/steppers/steppers-container/steppers-container.component.mjs +0 -119
  218. package/esm2020/lib/components/core/steppers/steppers-item/steppers-item.component.mjs +0 -18
  219. package/esm2020/lib/components/core/tab/tab-container/tab-container.component.mjs +0 -59
  220. package/esm2020/lib/components/core/tab/tab-item/tab-item.component.mjs +0 -36
  221. package/esm2020/lib/components/core/table/table.component.mjs +0 -57
  222. package/esm2020/lib/components/core/tooltip/tooltip.directive.mjs +0 -143
  223. package/esm2020/lib/components/form/checkbox/checkbox.component.mjs +0 -40
  224. package/esm2020/lib/components/form/input/input.component.mjs +0 -222
  225. package/esm2020/lib/components/form/password-input/password-input.component.mjs +0 -112
  226. package/esm2020/lib/components/form/radio-button/radio-button.component.mjs +0 -53
  227. package/esm2020/lib/components/form/select/select.component.mjs +0 -62
  228. package/esm2020/lib/components/form/textarea/textarea.component.mjs +0 -46
  229. package/esm2020/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +0 -137
  230. package/esm2020/lib/components/form/upload-file-list/upload-file-list.component.mjs +0 -104
  231. package/esm2020/lib/components/navigation/back-button/back-button.component.mjs +0 -69
  232. package/esm2020/lib/components/navigation/back-to-top/back-to-top.component.mjs +0 -74
  233. package/esm2020/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.mjs +0 -45
  234. package/esm2020/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.mjs +0 -23
  235. package/esm2020/lib/components/navigation/header/header.component.mjs +0 -63
  236. package/esm2020/lib/components/utils/icon/icon.component.mjs +0 -54
  237. package/esm2020/lib/components/utils/language-switcher/language-switcher.component.mjs +0 -39
  238. package/esm2020/lib/components/utils/not-found-page/not-found-page.component.mjs +0 -13
  239. package/esm2020/lib/design-angular-kit.module.mjs +0 -56
  240. package/esm2020/lib/interfaces/core.mjs +0 -16
  241. package/esm2020/lib/interfaces/form.mjs +0 -2
  242. package/esm2020/lib/interfaces/icon.mjs +0 -2
  243. package/esm2020/lib/modules/components.module.mjs +0 -257
  244. package/esm2020/lib/pipes/mark-matching-text.pipe.mjs +0 -36
  245. package/esm2020/lib/services/notifications/notifications.service.mjs +0 -120
  246. package/esm2020/lib/utils/boolean-input.mjs +0 -15
  247. package/esm2020/lib/utils/file-utils.mjs +0 -73
  248. package/esm2020/lib/utils/regex.mjs +0 -26
  249. package/esm2020/lib/validators/it-validators.mjs +0 -134
  250. package/esm2020/public_api.mjs +0 -70
  251. package/fesm2015/design-angular-kit.mjs +0 -3850
  252. package/fesm2015/design-angular-kit.mjs.map +0 -1
  253. package/fesm2020/design-angular-kit.mjs +0 -3797
  254. package/fesm2020/design-angular-kit.mjs.map +0 -1
  255. package/lib/components/utils/not-found-page/not-found-page.component.d.ts +0 -5
  256. package/lib/modules/components.module.d.ts +0 -61
  257. package/lib/utils/boolean-input.d.ts +0 -11
  258. /package/{esm2020 → esm2022}/design-angular-kit.mjs +0 -0
  259. /package/{esm2020 → esm2022}/lib/interfaces/utils.mjs +0 -0
@@ -1,8 +1,8 @@
1
- import { ChangeDetectorRef, QueryList } from '@angular/core';
2
- import { BreadcrumbItemComponent } from "../breadcrumb-item/breadcrumb-item.component";
3
- import { BooleanInput } from "../../../../utils/boolean-input";
1
+ import { AfterViewInit, ChangeDetectorRef, OnDestroy, QueryList } from '@angular/core';
2
+ import { ItBreadcrumbItemComponent } from '../breadcrumb-item/breadcrumb-item.component';
4
3
  import * as i0 from "@angular/core";
5
- export declare class BreadcrumbComponent {
4
+ import * as i1 from "../../../../utils/coercion";
5
+ export declare class ItBreadcrumbComponent implements AfterViewInit, OnDestroy {
6
6
  private readonly _changeDetectorRef;
7
7
  /**
8
8
  * The character to use as separator
@@ -11,20 +11,18 @@ export declare class BreadcrumbComponent {
11
11
  separator: string;
12
12
  /**
13
13
  * Dark style
14
+ * @default false
14
15
  */
15
- dark?: BooleanInput;
16
+ dark?: boolean;
16
17
  /**
17
18
  * The tab items
18
19
  */
19
- items?: QueryList<BreadcrumbItemComponent>;
20
- get isDark(): boolean;
20
+ items?: QueryList<ItBreadcrumbItemComponent>;
21
+ private itemSubscriptions?;
21
22
  constructor(_changeDetectorRef: ChangeDetectorRef);
22
23
  ngAfterViewInit(): void;
23
- /**
24
- * Check if index is last item
25
- * @param index
26
- */
27
- isLastItem(index: number): boolean;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbComponent, "it-breadcrumb", never, { "separator": "separator"; "dark": "dark"; }, {}, ["items"], never, false, never>;
24
+ ngOnDestroy(): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItBreadcrumbComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItBreadcrumbComponent, "it-breadcrumb", never, { "separator": { "alias": "separator"; "required": false; }; "dark": { "alias": "dark"; "required": false; }; }, {}, ["items"], never, true, never>;
27
+ static ngAcceptInputType_dark: i1.BooleanInput;
30
28
  }
@@ -1,22 +1,23 @@
1
1
  import { TemplateRef } from '@angular/core';
2
- import { BooleanInput } from '../../../../utils/boolean-input';
3
2
  import { IconName } from '../../../../interfaces/icon';
4
- import { LinkComponent } from '../../../core/link/link.component';
3
+ import { ItLinkComponent } from '../../../core/link/link.component';
5
4
  import * as i0 from "@angular/core";
6
- export declare class BreadcrumbItemComponent extends LinkComponent {
5
+ import * as i1 from "../../../../utils/coercion";
6
+ export declare class ItBreadcrumbItemComponent extends ItLinkComponent {
7
7
  /**
8
8
  * Is active breadcrumb item
9
+ * @default false
9
10
  */
10
- active?: BooleanInput;
11
+ active?: boolean;
11
12
  /**
12
13
  * The name of icon to show
13
14
  */
14
- iconName?: IconName;
15
+ iconName: IconName | undefined;
15
16
  /**
16
17
  * The content of item
17
18
  */
18
19
  htmlContent: TemplateRef<any>;
19
- get isActive(): boolean;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbItemComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbItemComponent, "it-breadcrumb-item", never, { "active": "active"; "iconName": "iconName"; }, {}, never, ["*"], false, never>;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItBreadcrumbItemComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItBreadcrumbItemComponent, "it-breadcrumb-item", never, { "active": { "alias": "active"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; }, {}, never, ["*"], true, never>;
22
+ static ngAcceptInputType_active: i1.BooleanInput;
22
23
  }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./breadcrumb/breadcrumb.component";
3
+ import * as i2 from "./breadcrumb-item/breadcrumb-item.component";
4
+ export declare class ItBreadcrumbsModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItBreadcrumbsModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ItBreadcrumbsModule, never, [typeof i1.ItBreadcrumbComponent, typeof i2.ItBreadcrumbItemComponent], [typeof i1.ItBreadcrumbComponent, typeof i2.ItBreadcrumbItemComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<ItBreadcrumbsModule>;
8
+ }
@@ -1,30 +1,33 @@
1
- import { ChangeDetectorRef, ElementRef, EventEmitter, Renderer2 } from '@angular/core';
2
- import { BooleanInput } from '../../../utils/boolean-input';
3
- import { AbstractComponent } from '../../../abstracts/abstract.component';
1
+ import { AfterViewInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
4
2
  import * as i0 from "@angular/core";
5
- export declare class HeaderComponent extends AbstractComponent {
6
- protected readonly _renderer: Renderer2;
7
- protected readonly _elementRef: ElementRef;
8
- protected readonly _changeDetectorRef: ChangeDetectorRef;
9
- light?: BooleanInput;
10
- showSlim?: BooleanInput;
11
- slimTitle?: string;
3
+ import * as i1 from "../../../utils/coercion";
4
+ export declare class ItHeaderComponent implements AfterViewInit, OnChanges {
5
+ light?: boolean;
6
+ sticky?: boolean;
7
+ showSlim?: boolean;
8
+ smallHeader?: boolean;
9
+ showSearch?: boolean;
10
+ slimTitle: string | undefined;
12
11
  loginStyle: 'none' | 'default' | 'full';
13
- smallHeader?: BooleanInput;
14
- showSearch?: BooleanInput;
15
12
  loginClick: EventEmitter<Event>;
16
13
  searchClick: EventEmitter<Event>;
17
- /**
18
- * TODO: complete header
19
- * @param _renderer
20
- * @param _elementRef
21
- * @param _changeDetectorRef
22
- */
23
- constructor(_renderer: Renderer2, _elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef);
24
- get isLight(): boolean;
25
- get isShowSlim(): boolean;
26
- get isSmallHeader(): boolean;
27
- get isShowSearch(): boolean;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "it-header", never, { "light": "light"; "showSlim": "showSlim"; "slimTitle": "slimTitle"; "loginStyle": "loginStyle"; "smallHeader": "smallHeader"; "showSearch": "showSearch"; }, { "loginClick": "loginClick"; "searchClick": "searchClick"; }, never, ["[slimLinkList]", "[slimRightZone]", "[brand]", "[rightZone]"], false, never>;
14
+ private headerWrapper?;
15
+ megamenu?: boolean;
16
+ expand?: boolean;
17
+ private stickyHeader?;
18
+ constructor();
19
+ ngAfterViewInit(): void;
20
+ ngOnChanges(changes: SimpleChanges): void;
21
+ updateListeners(): void;
22
+ protected emitLoginClick(event: Event): void;
23
+ protected emitSearchClick(event: Event): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItHeaderComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItHeaderComponent, "it-header", never, { "light": { "alias": "light"; "required": false; }; "sticky": { "alias": "sticky"; "required": false; }; "showSlim": { "alias": "showSlim"; "required": false; }; "smallHeader": { "alias": "smallHeader"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "slimTitle": { "alias": "slimTitle"; "required": false; }; "loginStyle": { "alias": "loginStyle"; "required": false; }; "megamenu": { "alias": "megamenu"; "required": false; }; "expand": { "alias": "expand"; "required": false; }; }, { "loginClick": "loginClick"; "searchClick": "searchClick"; }, never, ["[slimLinkList]", "[slimRightZone]", "[brand]", "[rightZone]", "[navItems]"], true, never>;
26
+ static ngAcceptInputType_light: i1.BooleanInput;
27
+ static ngAcceptInputType_sticky: i1.BooleanInput;
28
+ static ngAcceptInputType_showSlim: i1.BooleanInput;
29
+ static ngAcceptInputType_smallHeader: i1.BooleanInput;
30
+ static ngAcceptInputType_showSearch: i1.BooleanInput;
31
+ static ngAcceptInputType_megamenu: i1.BooleanInput;
32
+ static ngAcceptInputType_expand: i1.BooleanInput;
30
33
  }
@@ -0,0 +1,22 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "../../../utils/coercion";
3
+ export declare class ItMegamenuComponent {
4
+ /**
5
+ * Megamenu mode
6
+ */
7
+ mode: 'right-section' | 'left-section' | 'normal';
8
+ /**
9
+ * To show Megamenu header
10
+ * @default false
11
+ */
12
+ header?: boolean;
13
+ /**
14
+ * To show Megamenu footer
15
+ * @default false
16
+ */
17
+ footer?: boolean;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItMegamenuComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItMegamenuComponent, "it-megamenu", never, { "mode": { "alias": "mode"; "required": false; }; "header": { "alias": "header"; "required": false; }; "footer": { "alias": "footer"; "required": false; }; }, {}, never, ["[megamenuLeftZone]", "[megamenuHeadingLink]", "[megamenuLinkList]", "[megamenuFooter]"], true, never>;
20
+ static ngAcceptInputType_header: i1.BooleanInput;
21
+ static ngAcceptInputType_footer: i1.BooleanInput;
22
+ }
@@ -0,0 +1,16 @@
1
+ import { AfterViewInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "../../../../utils/coercion";
4
+ export declare class ItNavBarComponent implements AfterViewInit {
5
+ megamenu?: boolean;
6
+ expand?: boolean;
7
+ private collapseButton?;
8
+ private collapseView?;
9
+ private navbar?;
10
+ ngAfterViewInit(): void;
11
+ toggleCollapse(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItNavBarComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItNavBarComponent, "it-navbar", never, { "megamenu": { "alias": "megamenu"; "required": false; }; "expand": { "alias": "expand"; "required": false; }; }, {}, never, ["[navItems]"], true, never>;
14
+ static ngAcceptInputType_megamenu: i1.BooleanInput;
15
+ static ngAcceptInputType_expand: i1.BooleanInput;
16
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ItNavBarItemComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItNavBarItemComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItNavBarItemComponent, "it-navbar-item", never, {}, {}, never, ["*"], true, never>;
5
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./navbar/navbar.component";
3
+ import * as i2 from "./navbar-item/navbar-item.component";
4
+ export declare class ItNavBarModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItNavBarModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ItNavBarModule, never, [typeof i1.ItNavBarComponent, typeof i2.ItNavBarItemComponent], [typeof i1.ItNavBarComponent, typeof i2.ItNavBarItemComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<ItNavBarModule>;
8
+ }
@@ -0,0 +1,44 @@
1
+ import { ActivatedRoute } from '@angular/router';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "../../../utils/coercion";
4
+ export declare class ItErrorPageComponent {
5
+ private readonly route;
6
+ /**
7
+ * The error code to show
8
+ */
9
+ errorCode: number | 404 | 403 | 500 | undefined;
10
+ /**
11
+ * Show/Hide error code
12
+ * @default true - show
13
+ */
14
+ showErrorCode?: boolean;
15
+ /**
16
+ * Custom error title
17
+ * - If set it will be displayed instead of the default title.
18
+ * - It is possible to use i18n keys
19
+ */
20
+ errorTitle: string | undefined;
21
+ /**
22
+ * Custom error description
23
+ * - If set it will be displayed instead of the default description.
24
+ * - It is possible to use i18n keys
25
+ */
26
+ errorDescription: string | undefined;
27
+ /**
28
+ * Show/Hide back button
29
+ * @default true - show
30
+ */
31
+ showBackButton?: boolean;
32
+ /**
33
+ * Show/Hide home button
34
+ * @default true - show
35
+ */
36
+ showHomeButton?: boolean;
37
+ constructor(route: ActivatedRoute);
38
+ get isDefaultErrorCode(): boolean;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItErrorPageComponent, never>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItErrorPageComponent, "it-error-page", never, { "errorCode": { "alias": "errorCode"; "required": false; }; "showErrorCode": { "alias": "showErrorCode"; "required": false; }; "errorTitle": { "alias": "errorTitle"; "required": false; }; "errorDescription": { "alias": "errorDescription"; "required": false; }; "showBackButton": { "alias": "showBackButton"; "required": false; }; "showHomeButton": { "alias": "showHomeButton"; "required": false; }; }, {}, never, never, true, never>;
41
+ static ngAcceptInputType_showErrorCode: i1.BooleanInput;
42
+ static ngAcceptInputType_showBackButton: i1.BooleanInput;
43
+ static ngAcceptInputType_showHomeButton: i1.BooleanInput;
44
+ }
@@ -1,10 +1,7 @@
1
- import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
2
- import { IconColor, IconName, IconSize } from "../../../interfaces/icon";
3
- import { BooleanInput } from "../../../utils/boolean-input";
1
+ import { IconColor, IconName, IconSize } from '../../../interfaces/icon';
4
2
  import * as i0 from "@angular/core";
5
- export declare class IconComponent implements AfterViewInit {
6
- protected readonly _renderer: Renderer2;
7
- protected readonly _elementRef: ElementRef;
3
+ import * as i1 from "../../../utils/coercion";
4
+ export declare class ItIconComponent {
8
5
  /**
9
6
  * The icon name
10
7
  */
@@ -12,29 +9,40 @@ export declare class IconComponent implements AfterViewInit {
12
9
  /**
13
10
  * The icon size
14
11
  */
15
- size?: IconSize;
12
+ size: IconSize | undefined;
16
13
  /**
17
14
  * The icon color
18
15
  */
19
- color?: IconColor;
16
+ color: IconColor | undefined;
20
17
  /**
21
18
  * Create a padding proportional to the size of the surrounding icon.
19
+ * @default false
22
20
  */
23
- padded?: BooleanInput;
21
+ padded?: boolean;
24
22
  /**
25
- * Custom class
23
+ * Custom class of svg
26
24
  */
27
- class: string;
25
+ svgClass: string | undefined;
28
26
  /**
29
27
  * Return the icon href
30
28
  */
31
- get iconHref(): string;
29
+ protected get iconHref(): string;
32
30
  /**
33
31
  * Return the icon class
34
32
  */
35
- get iconClass(): string;
36
- constructor(_renderer: Renderer2, _elementRef: ElementRef);
37
- ngAfterViewInit(): void;
38
- static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "it-icon[name]", never, { "name": "name"; "size": "size"; "color": "color"; "padded": "padded"; "class": "class"; }, {}, never, never, false, never>;
33
+ protected get iconClass(): string;
34
+ /**
35
+ * The bootstrap-italia asset folder path
36
+ * @default ./bootstrap-italia
37
+ */
38
+ protected assetBasePath: string;
39
+ /**
40
+ * Custom Waria label
41
+ */
42
+ labelWaria: string | undefined;
43
+ get isAriaHidden(): boolean;
44
+ constructor();
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItIconComponent, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItIconComponent, "it-icon", never, { "name": { "alias": "name"; "required": true; }; "size": { "alias": "size"; "required": false; }; "color": { "alias": "color"; "required": false; }; "padded": { "alias": "padded"; "required": false; }; "svgClass": { "alias": "svgClass"; "required": false; }; "labelWaria": { "alias": "labelWaria"; "required": false; }; }, {}, never, never, true, never>;
47
+ static ngAcceptInputType_padded: i1.BooleanInput;
40
48
  }
@@ -3,14 +3,18 @@ import { Observable } from 'rxjs';
3
3
  import { TranslateService } from '@ngx-translate/core';
4
4
  import { AvailableLanguage } from '../../../interfaces/utils';
5
5
  import * as i0 from "@angular/core";
6
- export declare class LanguageSwitcherComponent implements OnInit {
6
+ export declare class ItLanguageSwitcherComponent implements OnInit {
7
7
  private readonly translateService;
8
8
  /**
9
9
  * The available languages
10
10
  * @default The languages available through TranslateService (ngx-translate)
11
11
  */
12
- availableLanguages?: Array<AvailableLanguage>;
13
- currentLang$: Observable<AvailableLanguage | undefined>;
12
+ availableLanguages: Array<AvailableLanguage> | undefined;
13
+ /**
14
+ * Dropdown mode
15
+ */
16
+ mode: 'button' | 'link';
17
+ protected currentLang$: Observable<AvailableLanguage | undefined>;
14
18
  constructor(translateService: TranslateService);
15
19
  ngOnInit(): void;
16
20
  /**
@@ -18,6 +22,6 @@ export declare class LanguageSwitcherComponent implements OnInit {
18
22
  * @param lang the language code
19
23
  */
20
24
  changeLanguage(lang: string): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<LanguageSwitcherComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<LanguageSwitcherComponent, "it-language-switcher", never, { "availableLanguages": "availableLanguages"; }, {}, never, never, false, never>;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItLanguageSwitcherComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItLanguageSwitcherComponent, "it-language-switcher", never, { "availableLanguages": { "alias": "availableLanguages"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; }, {}, never, never, true, never>;
23
27
  }
@@ -1,12 +1,49 @@
1
- import { TranslateService } from '@ngx-translate/core';
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import { DesignAngularKitConfig } from './interfaces/design-angular-kit-config';
2
3
  import * as i0 from "@angular/core";
3
- import * as i1 from "./modules/components.module";
4
- import * as i2 from "@angular/common/http";
5
- import * as i3 from "@ngx-translate/core";
4
+ import * as i1 from "./components/core/accordion/accordion.component";
5
+ import * as i2 from "./components/core/alert/alert.component";
6
+ import * as i3 from "./components/core/avatar/avatar.module";
7
+ import * as i4 from "./components/core/badge/badge.directive";
8
+ import * as i5 from "./components/core/button/button.directive";
9
+ import * as i6 from "./components/core/callout/callout.component";
10
+ import * as i7 from "./components/core/card/card.component";
11
+ import * as i8 from "./components/core/carousel/carousel.module";
12
+ import * as i9 from "./components/core/chip/chip.component";
13
+ import * as i10 from "./components/core/collapse/collapse.component";
14
+ import * as i11 from "./components/core/dimmer/dimmer.module";
15
+ import * as i12 from "./components/core/dropdown/dropdown.module";
16
+ import * as i13 from "./components/core/forward/forward.directive";
17
+ import * as i14 from "./components/core/link/link.component";
18
+ import * as i15 from "./components/core/list/list.module";
19
+ import * as i16 from "./components/core/modal/modal.component";
20
+ import * as i17 from "./components/core/notifications/notifications.component";
21
+ import * as i18 from "./components/core/pagination/pagination.component";
22
+ import * as i19 from "./components/core/popover/popover.directive";
23
+ import * as i20 from "./components/core/progress-bar/progress-bar.component";
24
+ import * as i21 from "./components/core/progress-button/progress-button.component";
25
+ import * as i22 from "./components/core/spinner/spinner.component";
26
+ import * as i23 from "./components/core/steppers/steppers.module";
27
+ import * as i24 from "./components/core/tab/tab.module";
28
+ import * as i25 from "./components/core/table/table.module";
29
+ import * as i26 from "./components/core/tooltip/tooltip.directive";
30
+ import * as i27 from "./components/form/form.module";
31
+ import * as i28 from "./components/navigation/back-button/back-button.component";
32
+ import * as i29 from "./components/navigation/back-to-top/back-to-top.component";
33
+ import * as i30 from "./components/navigation/breadcrumbs/breadcrumbs.module";
34
+ import * as i31 from "./components/navigation/header/header.component";
35
+ import * as i32 from "./components/navigation/navbar/navbar.module";
36
+ import * as i33 from "./components/navigation/megamenu/megamenu.component";
37
+ import * as i34 from "./components/utils/error-page/error-page.component";
38
+ import * as i35 from "./components/utils/icon/icon.component";
39
+ import * as i36 from "./components/utils/language-switcher/language-switcher.component";
40
+ import * as i37 from "./pipes/date-ago.pipe";
41
+ import * as i38 from "./pipes/duration.pipe";
42
+ import * as i39 from "./pipes/mark-matching-text.pipe";
6
43
  export declare class DesignAngularKitModule {
7
- private readonly translateService;
8
- constructor(translateService: TranslateService);
44
+ static forRoot(config?: DesignAngularKitConfig): ModuleWithProviders<DesignAngularKitModule>;
45
+ static forChild(): ModuleWithProviders<DesignAngularKitModule>;
9
46
  static ɵfac: i0.ɵɵFactoryDeclaration<DesignAngularKitModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<DesignAngularKitModule, never, [typeof i1.ComponentsModule, typeof i2.HttpClientModule, typeof i3.TranslateModule], [typeof i1.ComponentsModule, typeof i3.TranslateModule]>;
47
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DesignAngularKitModule, never, [typeof i1.ItAccordionComponent, typeof i2.ItAlertComponent, typeof i3.ItAvatarModule, typeof i4.ItBadgeDirective, typeof i5.ItButtonDirective, typeof i6.ItCalloutComponent, typeof i7.ItCardComponent, typeof i8.ItCarouselModule, typeof i9.ItChipComponent, typeof i10.ItCollapseComponent, typeof i11.ItDimmerModule, typeof i12.ItDropdownModule, typeof i13.ItForwardDirective, typeof i14.ItLinkComponent, typeof i15.ItListModule, typeof i16.ItModalComponent, typeof i17.ItNotificationsComponent, typeof i18.ItPaginationComponent, typeof i19.ItPopoverDirective, typeof i20.ItProgressBarComponent, typeof i21.ItProgressButtonComponent, typeof i22.ItSpinnerComponent, typeof i23.ItSteppersModule, typeof i24.ItTabModule, typeof i25.ItTableModule, typeof i26.ItTooltipDirective, typeof i27.ItFormModule, typeof i28.ItBackButtonComponent, typeof i29.ItBackToTopComponent, typeof i30.ItBreadcrumbsModule, typeof i31.ItHeaderComponent, typeof i32.ItNavBarModule, typeof i33.ItMegamenuComponent, typeof i34.ItErrorPageComponent, typeof i35.ItIconComponent, typeof i36.ItLanguageSwitcherComponent, typeof i37.ItDateAgoPipe, typeof i38.ItDurationPipe, typeof i39.ItMarkMatchingTextPipe], [typeof i1.ItAccordionComponent, typeof i2.ItAlertComponent, typeof i3.ItAvatarModule, typeof i4.ItBadgeDirective, typeof i5.ItButtonDirective, typeof i6.ItCalloutComponent, typeof i7.ItCardComponent, typeof i8.ItCarouselModule, typeof i9.ItChipComponent, typeof i10.ItCollapseComponent, typeof i11.ItDimmerModule, typeof i12.ItDropdownModule, typeof i13.ItForwardDirective, typeof i14.ItLinkComponent, typeof i15.ItListModule, typeof i16.ItModalComponent, typeof i17.ItNotificationsComponent, typeof i18.ItPaginationComponent, typeof i19.ItPopoverDirective, typeof i20.ItProgressBarComponent, typeof i21.ItProgressButtonComponent, typeof i22.ItSpinnerComponent, typeof i23.ItSteppersModule, typeof i24.ItTabModule, typeof i25.ItTableModule, typeof i26.ItTooltipDirective, typeof i27.ItFormModule, typeof i28.ItBackButtonComponent, typeof i29.ItBackToTopComponent, typeof i30.ItBreadcrumbsModule, typeof i31.ItHeaderComponent, typeof i32.ItNavBarModule, typeof i33.ItMegamenuComponent, typeof i34.ItErrorPageComponent, typeof i35.ItIconComponent, typeof i36.ItLanguageSwitcherComponent, typeof i37.ItDateAgoPipe, typeof i38.ItDurationPipe, typeof i39.ItMarkMatchingTextPipe]>;
11
48
  static ɵinj: i0.ɵɵInjectorDeclaration<DesignAngularKitModule>;
12
49
  }
@@ -0,0 +1,10 @@
1
+ export declare enum ColorsEnum {
2
+ primary = "primary",
3
+ secondary = "secondary",
4
+ success = "success",
5
+ danger = "danger",
6
+ warning = "warning",
7
+ green = "green",
8
+ orange = "orange",
9
+ red = "red"
10
+ }
@@ -0,0 +1,7 @@
1
+ export declare enum SizesEnum {
2
+ xs = "size-xs",
3
+ sm = "size-sm",
4
+ lg = "size-lg",
5
+ xl = "size-xl",
6
+ xxl = "size-xxl"
7
+ }
@@ -1,19 +1,20 @@
1
1
  import { IconName } from './icon';
2
- export declare type AlertColor = 'info' | 'success' | 'warning' | 'danger';
3
- export declare type ButtonColor = 'primary' | 'outline-primary' | 'secondary' | 'outline-secondary' | 'success' | 'outline-success' | 'danger' | 'outline-danger' | 'warning' | 'outline-warning' | 'info' | 'outline-info' | 'light' | 'outline-light' | 'dark' | 'outline-dark' | 'link';
4
- export declare type ButtonSize = 'lg' | 'sm' | 'xs';
5
- export declare type ButtonType = 'submit' | 'button';
6
- export declare type CalloutColor = 'success' | 'warning' | 'danger' | 'important' | 'note';
7
- export declare type CalloutAppearance = 'default' | 'highlight' | 'more';
8
- export declare type ElementPlacement = 'top' | 'bottom' | 'left' | 'right';
9
- export declare type ProgressBarColor = 'primary' | 'success' | 'warning' | 'danger' | 'info';
10
- export declare type BadgeColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
11
- export declare type TableColor = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
12
- export declare type TableHeadColor = 'light' | 'dark';
13
- export declare type TableResponsive = 'responsive' | 'responsive-sm' | 'responsive-md' | 'responsive-lg' | 'responsive-xl' | 'responsive-xxl';
14
- export declare type VerticalAlignment = 'align-baseline' | 'align-top' | 'align-middle' | 'align-bottom' | 'align-text-bottom' | 'align-text-top';
15
- export declare type DropdownDirection = 'dropup' | 'dropend' | 'dropstart';
16
- export declare type CarouselType = 'default' | 'three-cols' | 'three-cols-arrow-visible';
2
+ export type AlertColor = 'primary' | 'info' | 'success' | 'warning' | 'danger';
3
+ export type ButtonColor = 'primary' | 'outline-primary' | 'secondary' | 'outline-secondary' | 'success' | 'outline-success' | 'danger' | 'outline-danger' | 'warning' | 'outline-warning' | 'info' | 'outline-info' | 'light' | 'outline-light' | 'dark' | 'outline-dark' | 'link';
4
+ export type ButtonSize = 'lg' | 'sm' | 'xs';
5
+ export type ButtonType = 'submit' | 'button';
6
+ export type CalloutColor = 'success' | 'warning' | 'danger' | 'important' | 'note';
7
+ export type CalloutAppearance = 'default' | 'highlight' | 'more';
8
+ export type ChipColor = 'primary' | 'secondary' | 'success' | 'danger' | 'warning';
9
+ export type ElementPlacement = 'top' | 'bottom' | 'left' | 'right';
10
+ export type ProgressBarColor = 'primary' | 'success' | 'warning' | 'danger' | 'info';
11
+ export type BadgeColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
12
+ export type TableColor = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
13
+ export type TableHeadColor = 'light' | 'dark';
14
+ export type TableResponsive = 'responsive' | 'responsive-sm' | 'responsive-md' | 'responsive-lg' | 'responsive-xl' | 'responsive-xxl';
15
+ export type VerticalAlignment = 'align-baseline' | 'align-top' | 'align-middle' | 'align-bottom' | 'align-text-bottom' | 'align-text-top';
16
+ export type DropdownDirection = 'dropup' | 'dropend' | 'dropstart';
17
+ export type CarouselType = 'default' | 'three-cols' | 'three-cols-arrow-visible';
17
18
  export interface Notification {
18
19
  /**
19
20
  * Notification type
@@ -0,0 +1,30 @@
1
+ import { InjectionToken, Provider } from '@angular/core';
2
+ /**
3
+ * The bootstrap-italia asset folder path
4
+ * @default ./bootstrap-italia
5
+ */
6
+ export declare const IT_ASSET_BASE_PATH: InjectionToken<string>;
7
+ export interface DesignAngularKitConfig {
8
+ /**
9
+ * The bootstrap-italia asset folder path
10
+ * @default ./bootstrap-italia
11
+ */
12
+ assetBasePath?: string;
13
+ /**
14
+ * Load the <a href="https://italia.github.io/bootstrap-italia/docs/come-iniziare/introduzione/#fonts">bootstrap-italia fonts</a>
15
+ * @default true
16
+ */
17
+ loadFont?: boolean;
18
+ /**
19
+ * The TranslateModule loader
20
+ * @param itPrefix the design-angular-kit i18n path
21
+ * @param itSuffix the design-angular-kit i18n suffix
22
+ * @default
23
+ * {
24
+ * provide: TranslateLoader,
25
+ * useFactory: (http: HttpClient) => new TranslateHttpLoader(http, `${assetBasePath}/i18n/`, `.json?v${version}`),
26
+ * deps: [HttpClient],
27
+ * }
28
+ */
29
+ translateLoader?: (itPrefix: string, itSuffix: string) => Provider;
30
+ }
@@ -1,14 +1,14 @@
1
1
  import { IconName } from './icon';
2
- export declare type InputControlType = 'text' | 'email' | 'number' | 'date' | 'time' | 'tel' | 'color' | 'url' | 'search';
3
- export interface SelectControlOption {
4
- value: any;
2
+ export type InputControlType = 'text' | 'email' | 'number' | 'date' | 'time' | 'tel' | 'color' | 'url';
3
+ export interface SelectControlOption<T = any> {
4
+ value: T;
5
5
  text?: string;
6
- selected?: boolean | ((value: any) => boolean);
7
- disabled?: boolean | ((value: any) => boolean);
6
+ selected?: boolean | ((value: T) => boolean);
7
+ disabled?: boolean | ((value: T) => boolean);
8
8
  }
9
- export interface SelectControlGroup {
9
+ export interface SelectControlGroup<T = any> {
10
10
  label: string;
11
- options: Array<SelectControlOption>;
11
+ options: Array<SelectControlOption<T>>;
12
12
  dragdrop?: boolean;
13
13
  }
14
14
  export interface UploadFileListItem {
@@ -46,7 +46,7 @@ export interface UploadFileListItem {
46
46
  /**
47
47
  * Elemento disponibile per l'autocompletamento del it-form-input
48
48
  */
49
- export interface AutocompleteItem {
49
+ export interface AutocompleteItem<T = any> {
50
50
  /** Valore voce di autocompletamento */
51
51
  value: string;
52
52
  /** Opzionale. Path in cui ricercare l'immagine dell'avatar da posizionare a sinistra della voce di autocompletamento */
@@ -63,5 +63,5 @@ export interface AutocompleteItem {
63
63
  * Attribute not used for autocomplete rendering.
64
64
  * It can be useful to retrieve some extra information when selecting the autocomplete item
65
65
  */
66
- additionalData?: any;
66
+ additionalData?: T;
67
67
  }
@@ -1,3 +1,4 @@
1
- export declare type IconSize = 'xs' | 'sm' | 'lg' | 'xl';
2
- export declare type IconColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'light' | 'white';
3
- export declare type IconName = 'arrow-down' | 'arrow-down-circle' | 'arrow-down-triangle' | 'arrow-left' | 'arrow-left-circle' | 'arrow-left-triangle' | 'arrow-right' | 'arrow-right-circle' | 'arrow-right-triangle' | 'arrow-up' | 'arrow-up-circle' | 'arrow-up-triangle' | 'ban' | 'bookmark' | 'box' | 'burger' | 'calendar' | 'camera' | 'card' | 'chart-line' | 'check' | 'check-circle' | 'chevron-left' | 'chevron-right' | 'clip' | 'clock' | 'close' | 'close-big' | 'close-circle' | 'comment' | 'copy' | 'delete' | 'download' | 'error' | 'exchange-circle' | 'expand' | 'external-link' | 'flag' | 'folder' | 'fullscreen' | 'funnel' | 'hearing' | 'help' | 'help-circle' | 'horn' | 'inbox' | 'info-circle' | 'key' | 'link' | 'list' | 'locked' | 'logout' | 'mail' | 'mail-open' | 'map-marker' | 'map-marker-circle' | 'map-marker-minus' | 'map-marker-plus' | 'maximize' | 'maximize-alt' | 'minimize' | 'minus' | 'minus-circle' | 'more-actions' | 'more-items' | 'note' | 'pa' | 'password-invisible' | 'password-visible' | 'pencil' | 'piattaforme' | 'pin' | 'plug' | 'plus' | 'plus-circle' | 'presentation' | 'print' | 'refresh' | 'restore' | 'rss' | 'rss-square' | 'search' | 'settings' | 'share' | 'software' | 'star-full' | 'star-outline' | 'telephone' | 'tool' | 'unlocked' | 'upload' | 'user' | 'video' | 'warning' | 'warning-circle' | 'wifi' | 'zoom-in' | 'zoom-out' | 'behance' | 'facebook' | 'facebook-square' | 'figma' | 'figma-square' | 'flickr' | 'flickr-square' | 'github' | 'instagram' | 'linkedin' | 'linkedin-square' | 'mastodon' | 'mastodon-square' | 'medium' | 'medium-square' | 'pinterest' | 'pinterest-square' | 'quora' | 'quora-square' | 'reddit' | 'reddit-square' | 'slack' | 'slack-square' | 'snapchat' | 'snapchat-square' | 'stackexchange' | 'stackexchange-square' | 'stackoverflow' | 'stackoverflow-square' | 'telegram' | 'tiktok' | 'tiktok-square' | 'twitter' | 'twitter-square' | 'vimeo' | 'vimeo-square' | 'whatsapp' | 'whatsapp-square' | 'youtube' | 'google' | 'designers-italia' | 'team-digitale' | 'file' | 'files' | 'file-audio' | 'file-compressed' | 'file-csv' | 'file-json' | 'file-odp' | 'file-ods' | 'file-odt' | 'file-pdf' | 'file-pdf-ext' | 'file-sheet' | 'file-slides' | 'file-txt' | 'file-video' | 'file-xml';
1
+ export type IconSize = 'xs' | 'sm' | 'lg' | 'xl';
2
+ export type IconColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'light' | 'white';
3
+ export type IconName = typeof IconNameArray[number];
4
+ export declare const IconNameArray: readonly ["arrow-down", "arrow-down-circle", "arrow-down-triangle", "arrow-left", "arrow-left-circle", "arrow-left-triangle", "arrow-right", "arrow-right-circle", "arrow-right-triangle", "arrow-up", "arrow-up-circle", "arrow-up-triangle", "ban", "bookmark", "box", "burger", "calendar", "camera", "card", "chart-line", "check", "check-circle", "chevron-left", "chevron-right", "clip", "clock", "close", "close-big", "close-circle", "comment", "copy", "delete", "download", "error", "exchange-circle", "expand", "external-link", "flag", "folder", "fullscreen", "funnel", "hearing", "help", "help-circle", "horn", "inbox", "info-circle", "key", "link", "list", "locked", "logout", "mail", "mail-open", "map-marker", "map-marker-circle", "map-marker-minus", "map-marker-plus", "maximize", "maximize-alt", "minimize", "minus", "minus-circle", "more-actions", "more-items", "note", "pa", "password-invisible", "password-visible", "pencil", "piattaforme", "pin", "plug", "plus", "plus-circle", "presentation", "print", "refresh", "restore", "rss", "rss-square", "search", "settings", "share", "software", "star-full", "star-outline", "telephone", "tool", "unlocked", "upload", "user", "video", "warning", "warning-circle", "wifi", "zoom-in", "zoom-out", "file", "files", "file-audio", "file-compressed", "file-csv", "file-json", "file-odp", "file-ods", "file-odt", "file-pdf", "file-pdf-ext", "file-sheet", "file-slides", "file-ppt", "file-txt", "file-video", "file-xml", "behance", "facebook", "facebook-square", "figma", "figma-square", "flickr", "flickr-square", "github", "instagram", "linkedin", "linkedin-square", "mastodon", "mastodon-square", "medium", "medium-square", "moodle", "moodle-square", "pinterest", "pinterest-square", "quora", "quora-square", "reddit", "reddit-square", "slack", "slack-square", "snapchat", "snapchat-square", "stackexchange", "stackexchange-square", "stackoverflow", "stackoverflow-square", "telegram", "tiktok", "tiktok-square", "twitter", "twitter-square", "vimeo", "vimeo-square", "whatsapp", "whatsapp-square", "youtube", "google", "designers-italia", "team-digitale"];
@@ -0,0 +1,33 @@
1
+ import { InjectionToken } from "@angular/core";
2
+ export type SortDirection = 'asc' | 'desc' | undefined;
3
+ /** Position of the arrow that displays when sorted. */
4
+ export type SortHeaderArrowPosition = 'before' | 'after';
5
+ /** Interface for a directive that holds sorting state consumed by `ItSortHeader`. */
6
+ export interface ItSortable {
7
+ /** The id of the column being sorted. */
8
+ id: string;
9
+ /** Starting sort direction. */
10
+ start?: SortDirection;
11
+ /** Whether to disable clearing the sorting state. */
12
+ disableSortClear?: boolean;
13
+ }
14
+ /** The current sort state. */
15
+ export interface ItSortEvent {
16
+ /** The id of the column being sorted. */
17
+ active: string;
18
+ /** The sort direction. */
19
+ direction: SortDirection;
20
+ }
21
+ /**
22
+ * Default options for `it-sort`.
23
+ */
24
+ export interface ItSortDefaultOptions {
25
+ /** Whether to disable clearing the sorting state. */
26
+ disableClear?: boolean;
27
+ /** Position of the arrow that displays when sorted. */
28
+ arrowPosition?: SortHeaderArrowPosition;
29
+ }
30
+ /**
31
+ * Injection token to be used to override the default options for `it-sort`.
32
+ */
33
+ export declare const IT_SORT_DEFAULT_OPTIONS: InjectionToken<ItSortDefaultOptions>;
@@ -0,0 +1,17 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { TranslatePipe } from '@ngx-translate/core';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Indicates in a textual way how much time has passed since the indicated date
6
+ * @example 2 hours ago
7
+ */
8
+ export declare class ItDateAgoPipe extends TranslatePipe implements PipeTransform {
9
+ /**
10
+ * Indicates in a textual way how much time has passed since the indicated date
11
+ * @example 2 hours ago
12
+ * @param value the Date or date string
13
+ */
14
+ transform(value: string | Date): string;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItDateAgoPipe, never>;
16
+ static ɵpipe: i0.ɵɵPipeDeclaration<ItDateAgoPipe, "itDateAgo", true>;
17
+ }