design-angular-kit 1.0.0-0 → 1.0.0-10

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 (229) hide show
  1. package/README.md +183 -24
  2. package/assets/i18n/en.json +93 -0
  3. package/assets/i18n/it.json +93 -0
  4. package/esm2020/lib/abstracts/abstract-form-component.mjs +174 -0
  5. package/esm2020/lib/abstracts/abstract.component.mjs +27 -0
  6. package/esm2020/lib/components/core/accordion/accordion.component.mjs +31 -0
  7. package/esm2020/lib/components/core/alert/alert.component.mjs +69 -0
  8. package/esm2020/lib/components/core/badge/badge.directive.mjs +34 -0
  9. package/esm2020/lib/components/core/button/button.directive.mjs +80 -0
  10. package/esm2020/lib/components/core/callout/callout.component.mjs +84 -0
  11. package/esm2020/lib/components/core/card/card.component.mjs +58 -0
  12. package/esm2020/lib/components/core/carousel/carousel/carousel.component.mjs +66 -0
  13. package/esm2020/lib/components/core/carousel/carousel-item/carousel-item.component.mjs +14 -0
  14. package/esm2020/lib/components/core/chip/chip.component.mjs +89 -0
  15. package/esm2020/lib/components/core/collapse/collapse.component.mjs +101 -0
  16. package/esm2020/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.mjs +24 -0
  17. package/esm2020/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.mjs +11 -0
  18. package/esm2020/lib/components/core/dimmer/dimmer.component.mjs +59 -0
  19. package/esm2020/lib/components/core/dropdown/dropdown/dropdown.component.mjs +130 -0
  20. package/esm2020/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +68 -0
  21. package/esm2020/lib/components/core/forward/forward.directive.mjs +51 -0
  22. package/esm2020/lib/components/core/link/link.component.mjs +40 -0
  23. package/esm2020/lib/components/core/list/list/list.component.mjs +13 -0
  24. package/esm2020/lib/components/core/list/list-item/list-item.component.mjs +36 -0
  25. package/esm2020/lib/components/core/modal/modal.component.mjs +98 -0
  26. package/esm2020/lib/components/core/notifications/notifications.component.mjs +110 -0
  27. package/esm2020/lib/components/core/pagination/pagination.component.mjs +51 -0
  28. package/esm2020/lib/components/core/popover/popover.directive.mjs +179 -0
  29. package/esm2020/lib/components/core/progress-bar/progress-bar.component.mjs +34 -0
  30. package/esm2020/lib/components/core/progress-button/progress-button.component.mjs +27 -0
  31. package/esm2020/lib/components/core/rating/rating.component.mjs +45 -0
  32. package/esm2020/lib/components/core/spinner/spinner.component.mjs +35 -0
  33. package/esm2020/lib/components/core/steppers/steppers-container/steppers-container.component.mjs +119 -0
  34. package/esm2020/lib/components/core/steppers/steppers-item/steppers-item.component.mjs +18 -0
  35. package/esm2020/lib/components/core/tab/tab-container/tab-container.component.mjs +59 -0
  36. package/esm2020/lib/components/core/tab/tab-item/tab-item.component.mjs +36 -0
  37. package/esm2020/lib/components/core/table/table.component.mjs +57 -0
  38. package/esm2020/lib/components/core/tooltip/tooltip.directive.mjs +143 -0
  39. package/esm2020/lib/components/form/checkbox/checkbox.component.mjs +40 -0
  40. package/esm2020/lib/components/form/input/input.component.mjs +222 -0
  41. package/esm2020/lib/components/form/password-input/password-input.component.mjs +112 -0
  42. package/esm2020/lib/components/form/radio-button/radio-button.component.mjs +53 -0
  43. package/esm2020/lib/components/form/select/select.component.mjs +62 -0
  44. package/esm2020/lib/components/form/textarea/textarea.component.mjs +46 -0
  45. package/esm2020/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +137 -0
  46. package/esm2020/lib/components/form/upload-file-list/upload-file-list.component.mjs +104 -0
  47. package/esm2020/lib/components/navigation/back-button/back-button.component.mjs +69 -0
  48. package/esm2020/lib/components/navigation/back-to-top/back-to-top.component.mjs +74 -0
  49. package/esm2020/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.mjs +45 -0
  50. package/esm2020/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.mjs +23 -0
  51. package/esm2020/lib/components/navigation/header/header.component.mjs +63 -0
  52. package/esm2020/lib/components/utils/icon/icon.component.mjs +54 -0
  53. package/esm2020/lib/components/utils/language-switcher/language-switcher.component.mjs +39 -0
  54. package/esm2020/lib/components/utils/not-found-page/not-found-page.component.mjs +13 -0
  55. package/esm2020/lib/design-angular-kit.module.mjs +45 -131
  56. package/esm2020/lib/interfaces/core.mjs +16 -0
  57. package/esm2020/lib/interfaces/form.mjs +2 -0
  58. package/esm2020/lib/interfaces/icon.mjs +2 -0
  59. package/esm2020/lib/interfaces/utils.mjs +2 -0
  60. package/esm2020/lib/modules/components.module.mjs +261 -0
  61. package/esm2020/lib/pipes/mark-matching-text.pipe.mjs +36 -0
  62. package/esm2020/lib/services/notifications/notifications.service.mjs +120 -0
  63. package/esm2020/lib/utils/boolean-input.mjs +15 -0
  64. package/esm2020/lib/utils/file-utils.mjs +73 -0
  65. package/esm2020/lib/utils/regex.mjs +26 -0
  66. package/esm2020/lib/validators/it-validators.mjs +134 -0
  67. package/esm2020/public_api.mjs +67 -36
  68. package/fesm2015/design-angular-kit.mjs +3424 -2713
  69. package/fesm2015/design-angular-kit.mjs.map +1 -1
  70. package/fesm2020/design-angular-kit.mjs +3391 -2713
  71. package/fesm2020/design-angular-kit.mjs.map +1 -1
  72. package/lib/abstracts/abstract-form-component.d.ts +89 -0
  73. package/lib/abstracts/abstract.component.d.ts +20 -0
  74. package/lib/components/core/accordion/accordion.component.d.ts +12 -0
  75. package/lib/components/core/alert/alert.component.d.ts +39 -0
  76. package/lib/components/core/badge/badge.directive.d.ts +16 -0
  77. package/lib/components/core/button/button.directive.d.ts +36 -0
  78. package/lib/components/core/callout/callout.component.d.ts +47 -0
  79. package/lib/components/core/card/card.component.d.ts +41 -0
  80. package/lib/components/core/carousel/carousel/carousel.component.d.ts +46 -0
  81. package/lib/components/core/carousel/carousel-item/carousel-item.component.d.ts +10 -0
  82. package/lib/components/core/chip/chip.component.d.ts +62 -0
  83. package/lib/components/core/collapse/collapse.component.d.ts +60 -0
  84. package/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.d.ts +12 -0
  85. package/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.d.ts +5 -0
  86. package/lib/components/core/dimmer/dimmer.component.d.ts +24 -0
  87. package/lib/components/core/dropdown/dropdown/dropdown.component.d.ts +81 -0
  88. package/lib/components/core/dropdown/dropdown-item/dropdown-item.component.d.ts +39 -0
  89. package/lib/components/core/forward/forward.directive.d.ts +14 -0
  90. package/lib/components/core/link/link.component.d.ts +31 -0
  91. package/lib/components/core/list/list/list.component.d.ts +10 -0
  92. package/lib/components/core/list/list-item/list-item.component.d.ts +24 -0
  93. package/lib/components/core/modal/modal.component.d.ts +59 -0
  94. package/lib/components/core/notifications/notifications.component.d.ts +44 -0
  95. package/lib/components/core/pagination/pagination.component.d.ts +31 -0
  96. package/lib/components/core/popover/popover.directive.d.ts +98 -0
  97. package/lib/components/core/progress-bar/progress-bar.component.d.ts +28 -0
  98. package/lib/components/core/progress-button/progress-button.component.d.ts +22 -0
  99. package/lib/components/core/rating/rating.component.d.ts +20 -0
  100. package/lib/components/core/spinner/spinner.component.d.ts +21 -0
  101. package/lib/components/core/steppers/steppers-container/steppers-container.component.d.ts +102 -0
  102. package/lib/components/core/steppers/steppers-item/steppers-item.component.d.ts +19 -0
  103. package/lib/components/core/tab/tab-container/tab-container.component.d.ts +30 -0
  104. package/lib/components/core/tab/tab-item/tab-item.component.d.ts +34 -0
  105. package/lib/components/core/table/table.component.d.ts +54 -0
  106. package/lib/components/core/tooltip/tooltip.directive.d.ts +81 -0
  107. package/lib/components/form/checkbox/checkbox.component.d.ts +30 -0
  108. package/lib/components/form/input/input.component.d.ts +96 -0
  109. package/lib/components/form/password-input/password-input.component.d.ts +55 -0
  110. package/lib/components/form/radio-button/radio-button.component.d.ts +29 -0
  111. package/lib/components/form/select/select.component.d.ts +30 -0
  112. package/lib/components/form/textarea/textarea.component.d.ts +24 -0
  113. package/lib/components/form/upload-drag-drop/upload-drag-drop.component.d.ts +54 -0
  114. package/lib/components/form/upload-file-list/upload-file-list.component.d.ts +59 -0
  115. package/lib/components/navigation/back-button/back-button.component.d.ts +47 -0
  116. package/lib/components/navigation/back-to-top/back-to-top.component.d.ts +46 -0
  117. package/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +30 -0
  118. package/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.d.ts +22 -0
  119. package/lib/components/navigation/header/header.component.d.ts +30 -0
  120. package/lib/components/utils/icon/icon.component.d.ts +40 -0
  121. package/lib/components/utils/language-switcher/language-switcher.component.d.ts +23 -0
  122. package/lib/components/utils/not-found-page/not-found-page.component.d.ts +5 -0
  123. package/lib/design-angular-kit.module.d.ts +7 -24
  124. package/lib/interfaces/core.d.ts +59 -0
  125. package/lib/interfaces/form.d.ts +67 -0
  126. package/lib/interfaces/icon.d.ts +3 -0
  127. package/lib/interfaces/utils.d.ts +10 -0
  128. package/lib/modules/components.module.d.ts +62 -0
  129. package/lib/services/notifications/notifications.service.d.ts +63 -0
  130. package/lib/utils/boolean-input.d.ts +11 -0
  131. package/lib/utils/file-utils.d.ts +32 -0
  132. package/lib/utils/regex.d.ts +25 -0
  133. package/lib/validators/it-validators.d.ts +58 -0
  134. package/package.json +22 -12
  135. package/public_api.d.ts +59 -35
  136. package/esm2020/lib/badge/badge.directive.mjs +0 -83
  137. package/esm2020/lib/breadcrumb/breadcrumb-item.component.mjs +0 -66
  138. package/esm2020/lib/breadcrumb/breadcrumb.component.mjs +0 -89
  139. package/esm2020/lib/button/button.directive.mjs +0 -185
  140. package/esm2020/lib/button/button.module.mjs +0 -18
  141. package/esm2020/lib/checkbox/checkbox.component.mjs +0 -138
  142. package/esm2020/lib/collapse/collapse-group.component.mjs +0 -57
  143. package/esm2020/lib/collapse/collapse-item.component.mjs +0 -79
  144. package/esm2020/lib/collapse/collapse.config.mjs +0 -12
  145. package/esm2020/lib/collapse/collapse.directive.mjs +0 -55
  146. package/esm2020/lib/collapse/collapse.module.mjs +0 -22
  147. package/esm2020/lib/dropdown/dropdown-divider.component.mjs +0 -11
  148. package/esm2020/lib/dropdown/dropdown-item.component.mjs +0 -97
  149. package/esm2020/lib/dropdown/dropdown.component.mjs +0 -143
  150. package/esm2020/lib/dropdown/dropdown.config.mjs +0 -12
  151. package/esm2020/lib/dropdown/dropdown.directive.mjs +0 -156
  152. package/esm2020/lib/dropdown/dropdown.module.mjs +0 -25
  153. package/esm2020/lib/enums/icons.enum.mjs +0 -27
  154. package/esm2020/lib/form-input/form-input-password.utils.mjs +0 -154
  155. package/esm2020/lib/form-input/form-input.component.mjs +0 -495
  156. package/esm2020/lib/form-input/it-prefix.directive.mjs +0 -13
  157. package/esm2020/lib/form-input/it-suffix.directive.mjs +0 -13
  158. package/esm2020/lib/form-input/it-text-prefix.directive.mjs +0 -13
  159. package/esm2020/lib/form-input/it-text-suffix.directive.mjs +0 -13
  160. package/esm2020/lib/form-input/mark-matching-text.pipe.mjs +0 -36
  161. package/esm2020/lib/icon/icon.component.mjs +0 -87
  162. package/esm2020/lib/icon/icon.module.mjs +0 -18
  163. package/esm2020/lib/models/Alignment.mjs +0 -15
  164. package/esm2020/lib/models/ButtonSize.mjs +0 -15
  165. package/esm2020/lib/models/InputType.mjs +0 -44
  166. package/esm2020/lib/models/ThemeColor.mjs +0 -30
  167. package/esm2020/lib/popover/popover.config.mjs +0 -17
  168. package/esm2020/lib/popover/popover.directive.mjs +0 -33
  169. package/esm2020/lib/popover/popover.module.mjs +0 -19
  170. package/esm2020/lib/progress-bar/progress-bar.component.mjs +0 -98
  171. package/esm2020/lib/radio/radio.component.mjs +0 -287
  172. package/esm2020/lib/radio/unique-selection-dispatcher.mjs +0 -55
  173. package/esm2020/lib/tabs/tab-group.component.mjs +0 -177
  174. package/esm2020/lib/tabs/tab.component.mjs +0 -73
  175. package/esm2020/lib/tabs/tabs.module.mjs +0 -20
  176. package/esm2020/lib/toggle/toggle.component.mjs +0 -86
  177. package/esm2020/lib/tooltip/tooltip.config.mjs +0 -17
  178. package/esm2020/lib/tooltip/tooltip.directive.mjs +0 -43
  179. package/esm2020/lib/tooltip/tooltip.module.mjs +0 -19
  180. package/esm2020/lib/util/focus-mouse.directive.mjs +0 -32
  181. package/esm2020/lib/util/util.mjs +0 -12
  182. package/esm2020/lib/util/utils.module.mjs +0 -16
  183. package/lib/badge/badge.directive.d.ts +0 -33
  184. package/lib/breadcrumb/breadcrumb-item.component.d.ts +0 -33
  185. package/lib/breadcrumb/breadcrumb.component.d.ts +0 -33
  186. package/lib/button/button.directive.d.ts +0 -72
  187. package/lib/button/button.module.d.ts +0 -8
  188. package/lib/checkbox/checkbox.component.d.ts +0 -61
  189. package/lib/collapse/collapse-group.component.d.ts +0 -16
  190. package/lib/collapse/collapse-item.component.d.ts +0 -46
  191. package/lib/collapse/collapse.config.d.ts +0 -6
  192. package/lib/collapse/collapse.directive.d.ts +0 -25
  193. package/lib/collapse/collapse.module.d.ts +0 -12
  194. package/lib/dropdown/dropdown-divider.component.d.ts +0 -5
  195. package/lib/dropdown/dropdown-item.component.d.ts +0 -56
  196. package/lib/dropdown/dropdown.component.d.ts +0 -65
  197. package/lib/dropdown/dropdown.config.d.ts +0 -6
  198. package/lib/dropdown/dropdown.directive.d.ts +0 -77
  199. package/lib/dropdown/dropdown.module.d.ts +0 -15
  200. package/lib/enums/icons.enum.d.ts +0 -23
  201. package/lib/form-input/form-input-password.utils.d.ts +0 -45
  202. package/lib/form-input/form-input.component.d.ts +0 -283
  203. package/lib/form-input/it-prefix.directive.d.ts +0 -5
  204. package/lib/form-input/it-suffix.directive.d.ts +0 -5
  205. package/lib/form-input/it-text-prefix.directive.d.ts +0 -5
  206. package/lib/form-input/it-text-suffix.directive.d.ts +0 -5
  207. package/lib/icon/icon.component.d.ts +0 -34
  208. package/lib/icon/icon.module.d.ts +0 -8
  209. package/lib/models/Alignment.d.ts +0 -12
  210. package/lib/models/ButtonSize.d.ts +0 -11
  211. package/lib/models/InputType.d.ts +0 -36
  212. package/lib/models/ThemeColor.d.ts +0 -21
  213. package/lib/popover/popover.config.d.ts +0 -11
  214. package/lib/popover/popover.directive.d.ts +0 -20
  215. package/lib/popover/popover.module.d.ts +0 -9
  216. package/lib/progress-bar/progress-bar.component.d.ts +0 -55
  217. package/lib/radio/radio.component.d.ts +0 -116
  218. package/lib/radio/unique-selection-dispatcher.d.ts +0 -36
  219. package/lib/tabs/tab-group.component.d.ts +0 -71
  220. package/lib/tabs/tab.component.d.ts +0 -44
  221. package/lib/tabs/tabs.module.d.ts +0 -10
  222. package/lib/toggle/toggle.component.d.ts +0 -46
  223. package/lib/tooltip/tooltip.config.d.ts +0 -11
  224. package/lib/tooltip/tooltip.directive.d.ts +0 -27
  225. package/lib/tooltip/tooltip.module.d.ts +0 -9
  226. package/lib/util/focus-mouse.directive.d.ts +0 -13
  227. package/lib/util/util.d.ts +0 -5
  228. package/lib/util/utils.module.d.ts +0 -7
  229. /package/lib/{form-input → pipes}/mark-matching-text.pipe.d.ts +0 -0
@@ -0,0 +1,40 @@
1
+ import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
2
+ import { IconColor, IconName, IconSize } from "../../../interfaces/icon";
3
+ import { BooleanInput } from "../../../utils/boolean-input";
4
+ import * as i0 from "@angular/core";
5
+ export declare class IconComponent implements AfterViewInit {
6
+ protected readonly _renderer: Renderer2;
7
+ protected readonly _elementRef: ElementRef;
8
+ /**
9
+ * The icon name
10
+ */
11
+ name: IconName;
12
+ /**
13
+ * The icon size
14
+ */
15
+ size?: IconSize;
16
+ /**
17
+ * The icon color
18
+ */
19
+ color?: IconColor;
20
+ /**
21
+ * Create a padding proportional to the size of the surrounding icon.
22
+ */
23
+ padded?: BooleanInput;
24
+ /**
25
+ * Custom class
26
+ */
27
+ class: string;
28
+ /**
29
+ * Return the icon href
30
+ */
31
+ get iconHref(): string;
32
+ /**
33
+ * Return the icon class
34
+ */
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>;
40
+ }
@@ -0,0 +1,23 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { TranslateService } from '@ngx-translate/core';
4
+ import { AvailableLanguage } from '../../../interfaces/utils';
5
+ import * as i0 from "@angular/core";
6
+ export declare class LanguageSwitcherComponent implements OnInit {
7
+ private readonly translateService;
8
+ /**
9
+ * The available languages
10
+ * @default The languages available through TranslateService (ngx-translate)
11
+ */
12
+ availableLanguages?: Array<AvailableLanguage>;
13
+ currentLang$: Observable<AvailableLanguage | undefined>;
14
+ constructor(translateService: TranslateService);
15
+ ngOnInit(): void;
16
+ /**
17
+ * Change the current language
18
+ * @param lang the language code
19
+ */
20
+ 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>;
23
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class NotFoundPageComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<NotFoundPageComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<NotFoundPageComponent, "it-not-found-page", never, {}, {}, never, never, false, never>;
5
+ }
@@ -1,29 +1,12 @@
1
+ import { TranslateService } from '@ngx-translate/core';
1
2
  import * as i0 from "@angular/core";
2
- import * as i1 from "./checkbox/checkbox.component";
3
- import * as i2 from "./toggle/toggle.component";
4
- import * as i3 from "./radio/radio.component";
5
- import * as i4 from "./badge/badge.directive";
6
- import * as i5 from "./progress-bar/progress-bar.component";
7
- import * as i6 from "./form-input/form-input.component";
8
- import * as i7 from "./breadcrumb/breadcrumb.component";
9
- import * as i8 from "./breadcrumb/breadcrumb-item.component";
10
- import * as i9 from "./form-input/it-prefix.directive";
11
- import * as i10 from "./form-input/it-suffix.directive";
12
- import * as i11 from "./form-input/it-text-prefix.directive";
13
- import * as i12 from "./form-input/it-text-suffix.directive";
14
- import * as i13 from "./form-input/mark-matching-text.pipe";
15
- import * as i14 from "@angular/common";
16
- import * as i15 from "./util/utils.module";
17
- import * as i16 from "@angular/forms";
18
- import * as i17 from "./popover/popover.module";
19
- import * as i18 from "./tooltip/tooltip.module";
20
- import * as i19 from "./collapse/collapse.module";
21
- import * as i20 from "./dropdown/dropdown.module";
22
- import * as i21 from "./icon/icon.module";
23
- import * as i22 from "./button/button.module";
24
- import * as i23 from "./tabs/tabs.module";
3
+ import * as i1 from "./modules/components.module";
4
+ import * as i2 from "@angular/common/http";
5
+ import * as i3 from "@ngx-translate/core";
25
6
  export declare class DesignAngularKitModule {
7
+ private readonly translateService;
8
+ constructor(translateService: TranslateService);
26
9
  static ɵfac: i0.ɵɵFactoryDeclaration<DesignAngularKitModule, never>;
27
- static ɵmod: i0.ɵɵNgModuleDeclaration<DesignAngularKitModule, [typeof i1.CheckboxComponent, typeof i2.ToggleComponent, typeof i3.RadioGroupDirective, typeof i3.RadioButtonComponent, typeof i4.BadgeDirective, typeof i5.ProgressBarComponent, typeof i6.FormInputComponent, typeof i7.BreadcrumbComponent, typeof i8.BreadcrumbItemComponent, typeof i9.ItPrefixDirective, typeof i10.ItSuffixDirective, typeof i11.ItTextPrefixDirective, typeof i12.ItTextSuffixDirective, typeof i13.MarkMatchingTextPipe], [typeof i14.CommonModule, typeof i15.ItUtilsModule, typeof i16.FormsModule, typeof i17.ItPopoverModule, typeof i18.ItTooltipModule, typeof i19.ItCollapseModule, typeof i20.ItDropdownModule, typeof i21.ItIconModule, typeof i22.ItButtonModule, typeof i23.ItTabsModule], [typeof i1.CheckboxComponent, typeof i2.ToggleComponent, typeof i3.RadioGroupDirective, typeof i3.RadioButtonComponent, typeof i4.BadgeDirective, typeof i5.ProgressBarComponent, typeof i22.ItButtonModule, typeof i6.FormInputComponent, typeof i7.BreadcrumbComponent, typeof i8.BreadcrumbItemComponent, typeof i21.ItIconModule, typeof i9.ItPrefixDirective, typeof i10.ItSuffixDirective, typeof i11.ItTextPrefixDirective, typeof i12.ItTextSuffixDirective, typeof i17.ItPopoverModule, typeof i18.ItTooltipModule, typeof i19.ItCollapseModule, typeof i20.ItDropdownModule, typeof i15.ItUtilsModule]>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DesignAngularKitModule, never, [typeof i1.ComponentsModule, typeof i2.HttpClientModule, typeof i3.TranslateModule], [typeof i1.ComponentsModule, typeof i3.TranslateModule]>;
28
11
  static ɵinj: i0.ɵɵInjectorDeclaration<DesignAngularKitModule>;
29
12
  }
@@ -0,0 +1,59 @@
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';
17
+ export interface Notification {
18
+ /**
19
+ * Notification type
20
+ */
21
+ type: NotificationType;
22
+ /**
23
+ * Notification title
24
+ */
25
+ title: string;
26
+ /**
27
+ * Notification message / text
28
+ */
29
+ message?: string;
30
+ /**
31
+ * Custom duration of notification
32
+ */
33
+ duration?: number;
34
+ /**
35
+ * The close notification button appears
36
+ */
37
+ dismissible?: boolean;
38
+ /**
39
+ * Custom position of notification
40
+ */
41
+ position?: NotificationPosition;
42
+ /**
43
+ * Custom icon of notification
44
+ */
45
+ icon?: IconName;
46
+ }
47
+ export declare enum NotificationType {
48
+ Standard = "standard",
49
+ Success = "success",
50
+ Error = "error",
51
+ Info = "info",
52
+ Warning = "warning"
53
+ }
54
+ export declare enum NotificationPosition {
55
+ Top = "top-fix mt-3",
56
+ Bottom = "bottom-fix mb-3",
57
+ Left = "left-fix ms-3",
58
+ Right = "right-fix me-3"
59
+ }
@@ -0,0 +1,67 @@
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;
5
+ text?: string;
6
+ selected?: boolean | ((value: any) => boolean);
7
+ disabled?: boolean | ((value: any) => boolean);
8
+ }
9
+ export interface SelectControlGroup {
10
+ label: string;
11
+ options: Array<SelectControlOption>;
12
+ dragdrop?: boolean;
13
+ }
14
+ export interface UploadFileListItem {
15
+ /**
16
+ * The item id
17
+ */
18
+ id: number;
19
+ /**
20
+ * The uploaded file
21
+ */
22
+ file: File;
23
+ /**
24
+ * Show progress bar
25
+ *
26
+ * The status of the item changes based on the value:
27
+ * - <b>uploading</b>: if value is between 0 and 100 (exclusive 0 < value < 100)
28
+ * - <b>success</b>: if value is greater than 100
29
+ */
30
+ progress?: number;
31
+ /**
32
+ * Show the ability to delete item
33
+ * @default false
34
+ */
35
+ removable?: boolean;
36
+ /**
37
+ * Set the status of the item as 'error'
38
+ */
39
+ error?: boolean;
40
+ /**
41
+ * Add tooltip on file item name
42
+ * @example It can be used to show the error message or additional information about the file
43
+ */
44
+ tooltip?: string;
45
+ }
46
+ /**
47
+ * Elemento disponibile per l'autocompletamento del it-form-input
48
+ */
49
+ export interface AutocompleteItem {
50
+ /** Valore voce di autocompletamento */
51
+ value: string;
52
+ /** Opzionale. Path in cui ricercare l'immagine dell'avatar da posizionare a sinistra della voce di autocompletamento */
53
+ avatarSrcPath?: string;
54
+ /** Opzionale. Testo in alternativa dell'avatar per accessibilità */
55
+ avatarAltText?: string;
56
+ /** Opzionale. Icona posizionata a sinistra della voce di autocompletamento */
57
+ icon?: IconName;
58
+ /** Opzionale. Label posizionata a destra della voce di autocompletamento */
59
+ label?: string;
60
+ /** Opzionale. Link relativo all'elemento */
61
+ link?: string;
62
+ /**
63
+ * Attribute not used for autocomplete rendering.
64
+ * It can be useful to retrieve some extra information when selecting the autocomplete item
65
+ */
66
+ additionalData?: any;
67
+ }
@@ -0,0 +1,3 @@
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';
@@ -0,0 +1,10 @@
1
+ export interface AvailableLanguage {
2
+ /**
3
+ * The language code
4
+ */
5
+ code: string;
6
+ /**
7
+ * Label to show
8
+ */
9
+ label: string;
10
+ }
@@ -0,0 +1,62 @@
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/rating/rating.component";
30
+ import * as i29 from "../components/core/spinner/spinner.component";
31
+ import * as i30 from "../components/core/steppers/steppers-container/steppers-container.component";
32
+ import * as i31 from "../components/core/steppers/steppers-item/steppers-item.component";
33
+ import * as i32 from "../components/core/tab/tab-container/tab-container.component";
34
+ import * as i33 from "../components/core/tab/tab-item/tab-item.component";
35
+ import * as i34 from "../components/core/table/table.component";
36
+ import * as i35 from "../components/core/tooltip/tooltip.directive";
37
+ import * as i36 from "../components/form/checkbox/checkbox.component";
38
+ import * as i37 from "../components/form/input/input.component";
39
+ import * as i38 from "../components/form/password-input/password-input.component";
40
+ import * as i39 from "../components/form/radio-button/radio-button.component";
41
+ import * as i40 from "../components/form/select/select.component";
42
+ import * as i41 from "../components/form/textarea/textarea.component";
43
+ import * as i42 from "../components/form/upload-drag-drop/upload-drag-drop.component";
44
+ import * as i43 from "../components/form/upload-file-list/upload-file-list.component";
45
+ import * as i44 from "../components/navigation/back-button/back-button.component";
46
+ import * as i45 from "../components/navigation/back-to-top/back-to-top.component";
47
+ import * as i46 from "../components/navigation/breadcrumbs/breadcrumb/breadcrumb.component";
48
+ import * as i47 from "../components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component";
49
+ import * as i48 from "../components/navigation/header/header.component";
50
+ import * as i49 from "../components/utils/icon/icon.component";
51
+ import * as i50 from "../components/utils/not-found-page/not-found-page.component";
52
+ import * as i51 from "../components/utils/language-switcher/language-switcher.component";
53
+ import * as i52 from "../pipes/mark-matching-text.pipe";
54
+ import * as i53 from "@angular/common";
55
+ import * as i54 from "@ngx-translate/core";
56
+ import * as i55 from "@angular/forms";
57
+ import * as i56 from "@angular/router";
58
+ export declare class ComponentsModule {
59
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComponentsModule, never>;
60
+ 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.RatingComponent, typeof i29.SpinnerComponent, typeof i30.SteppersContainerComponent, typeof i31.SteppersItemComponent, typeof i32.TabContainerComponent, typeof i33.TabItemComponent, typeof i34.TableComponent, typeof i35.TooltipDirective, typeof i36.CheckboxComponent, typeof i37.InputComponent, typeof i38.PasswordInputComponent, typeof i39.RadioButtonComponent, typeof i40.SelectComponent, typeof i41.TextareaComponent, typeof i42.UploadDragDropComponent, typeof i43.UploadFileListComponent, typeof i44.BackButtonComponent, typeof i45.BackToTopComponent, typeof i46.BreadcrumbComponent, typeof i47.BreadcrumbItemComponent, typeof i48.HeaderComponent, typeof i49.IconComponent, typeof i50.NotFoundPageComponent, typeof i51.LanguageSwitcherComponent, typeof i52.MarkMatchingTextPipe], [typeof i53.CommonModule, typeof i54.TranslateModule, typeof i55.ReactiveFormsModule, typeof i53.NgIf, typeof i53.NgForOf, typeof i56.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.RatingComponent, typeof i29.SpinnerComponent, typeof i30.SteppersContainerComponent, typeof i31.SteppersItemComponent, typeof i32.TabContainerComponent, typeof i33.TabItemComponent, typeof i34.TableComponent, typeof i35.TooltipDirective, typeof i36.CheckboxComponent, typeof i37.InputComponent, typeof i38.PasswordInputComponent, typeof i39.RadioButtonComponent, typeof i40.SelectComponent, typeof i41.TextareaComponent, typeof i42.UploadDragDropComponent, typeof i43.UploadFileListComponent, typeof i44.BackButtonComponent, typeof i45.BackToTopComponent, typeof i46.BreadcrumbComponent, typeof i47.BreadcrumbItemComponent, typeof i48.HeaderComponent, typeof i49.IconComponent, typeof i50.NotFoundPageComponent, typeof i51.LanguageSwitcherComponent, typeof i52.MarkMatchingTextPipe]>;
61
+ static ɵinj: i0.ɵɵInjectorDeclaration<ComponentsModule>;
62
+ }
@@ -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 dismissible notification dismissible
21
+ * @param duration notification duration (milliseconds)
22
+ * @param position notification position
23
+ */
24
+ standard(title: string, message?: string, dismissible?: boolean, duration?: number, position?: NotificationPosition): void;
25
+ /**
26
+ * Create new Success notification
27
+ * @param title notification title
28
+ * @param message notification message
29
+ * @param dismissible notification dismissible
30
+ * @param duration notification duration (milliseconds)
31
+ * @param position notification position
32
+ */
33
+ success(title: string, message?: string, dismissible?: boolean, duration?: number, position?: NotificationPosition): void;
34
+ /**
35
+ * Create new Error notification
36
+ * @param title notification title
37
+ * @param message notification message
38
+ * @param dismissible notification dismissible
39
+ * @param duration notification duration (milliseconds)
40
+ * @param position notification position
41
+ */
42
+ error(title: string, message?: string, dismissible?: boolean, duration?: number, position?: NotificationPosition): void;
43
+ /**
44
+ * Create new Warning notification
45
+ * @param title notification title
46
+ * @param message notification message
47
+ * @param dismissible notification dismissible
48
+ * @param duration notification duration (milliseconds)
49
+ * @param position notification position
50
+ */
51
+ warning(title: string, message?: string, dismissible?: boolean, duration?: number, position?: NotificationPosition): void;
52
+ /**
53
+ * Create new Info notification
54
+ * @param title notification title
55
+ * @param message notification message
56
+ * @param dismissible notification dismissible
57
+ * @param duration notification duration (milliseconds)
58
+ * @param position notification position
59
+ */
60
+ info(title: string, message?: string, dismissible?: 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,32 @@
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
+ /**
28
+ * Extract the MIME type from base64 string
29
+ * @param base64 the base64 string
30
+ */
31
+ static getMimeTypeFromBase64(base64: string): string | undefined;
32
+ }
@@ -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 get email(): ValidatorFn;
34
+ /**
35
+ * Phone number validator
36
+ */
37
+ static get tel(): ValidatorFn;
38
+ /**
39
+ * URL validator
40
+ */
41
+ static get url(): ValidatorFn;
42
+ /**
43
+ * Italian Tax Code validator
44
+ */
45
+ static get taxCode(): ValidatorFn;
46
+ /**
47
+ * VAT Number validator
48
+ */
49
+ static get vatNumber(): ValidatorFn;
50
+ /**
51
+ * Italian Postal Code validator (CAP)
52
+ */
53
+ static get cap(): ValidatorFn;
54
+ /**
55
+ * Check if value is a valid RegExp
56
+ */
57
+ static get 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-0",
5
- "license": " BSD-3-Clause",
4
+ "version": "1.0.0-10",
5
+ "license": "BSD-3-Clause",
6
6
  "keywords": [
7
7
  "angular",
8
8
  "toolkit",
@@ -15,19 +15,29 @@
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"
31
+ "tslib": "^2.4.1"
24
32
  },
25
33
  "peerDependencies": {
26
- "@angular/common": "^10.0.0",
27
- "@angular/core": "^10.0.0",
28
- "@angular/forms": "^10.0.0",
29
- "bootstrap-italia": "2.0.2",
30
- "io-ts": "^1.2.1"
34
+ "@angular/animations": "^15.0.4",
35
+ "@angular/common": "^15.0.4",
36
+ "@angular/core": "^15.0.4",
37
+ "@angular/platform-browser": "^15.0.4",
38
+ "@ngx-translate/core": "^14.0.0",
39
+ "@ngx-translate/http-loader": "^7.0.0",
40
+ "bootstrap-italia": "^2.3.4"
31
41
  },
32
42
  "module": "fesm2015/design-angular-kit.mjs",
33
43
  "es2020": "fesm2020/design-angular-kit.mjs",