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,81 @@
1
+ import { AfterViewInit, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
2
+ import { ElementPlacement } from '../../../interfaces/core';
3
+ import { BooleanInput } from '../../../utils/boolean-input';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TooltipDirective implements AfterViewInit, OnDestroy {
6
+ private readonly _elementRef;
7
+ /**
8
+ * Define the tooltip title
9
+ * @param title the tooltip title
10
+ */
11
+ set title(title: string | undefined);
12
+ /**
13
+ * Define the tooltip placement
14
+ * @param placement
15
+ */
16
+ set placement(placement: ElementPlacement);
17
+ /**
18
+ * Indicates whether the title contains html
19
+ * @param html true if contain html
20
+ */
21
+ set html(html: BooleanInput);
22
+ /**
23
+ * This event fires immediately when the show method is called.
24
+ */
25
+ onShow: EventEmitter<Event>;
26
+ /**
27
+ * This event is triggered when the tooltip has been made visible to the user (it will wait for the CSS transitions to complete).
28
+ */
29
+ onShown: EventEmitter<Event>;
30
+ /**
31
+ * This event fires immediately when the hide method is called.
32
+ */
33
+ onHide: EventEmitter<Event>;
34
+ /**
35
+ * This event is raised when the tooltip has finished being hidden from the user (it will wait for the CSS transitions to complete).
36
+ */
37
+ onHidden: EventEmitter<Event>;
38
+ /**
39
+ * This event fires after the show event when the tooltip template has been added to the DOM.
40
+ */
41
+ onInserted: EventEmitter<Event>;
42
+ private readonly element;
43
+ private tooltip?;
44
+ constructor(_elementRef: ElementRef);
45
+ ngAfterViewInit(): void;
46
+ ngOnDestroy(): void;
47
+ /**
48
+ * Shows the tooltip of an item.
49
+ */
50
+ show(): void;
51
+ /**
52
+ * Hide the tooltip of an element.
53
+ */
54
+ hide(): void;
55
+ /**
56
+ * Activate / Deactivate the tooltip of an element
57
+ */
58
+ toggle(): void;
59
+ /**
60
+ * Hides and destroys the tooltip of an element.
61
+ */
62
+ dispose(): void;
63
+ /**
64
+ * Gives the tooltip of an element a chance to be shown.
65
+ */
66
+ enable(): void;
67
+ /**
68
+ * Removes the ability to show the tooltip of an element.
69
+ */
70
+ disable(): void;
71
+ /**
72
+ * Toggles the possibility that the tooltip of an element is shown or hidden.
73
+ */
74
+ toggleEnabled(): void;
75
+ /**
76
+ * Updates the position of an element's tooltip.
77
+ */
78
+ update(): void;
79
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, never>;
80
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[itTooltip]", ["itTooltip"], { "title": "itTooltip"; "placement": "tooltipPlacement"; "html": "tooltipHtml"; }, { "onShow": "onShow"; "onShown": "onShown"; "onHide": "onHide"; "onHidden": "onHidden"; "onInserted": "onInserted"; }, never, never, false, never>;
81
+ }
@@ -0,0 +1,30 @@
1
+ import { AbstractFormComponent } from '../../../abstracts/abstract-form-component';
2
+ import { BooleanInput } from '../../../utils/boolean-input';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CheckboxComponent extends AbstractFormComponent<boolean> {
5
+ /**
6
+ * If show checkbox as toggle
7
+ */
8
+ toggle?: BooleanInput;
9
+ /**
10
+ * If show checkbox inline
11
+ */
12
+ inline?: BooleanInput;
13
+ /**
14
+ * If is checkbox group
15
+ */
16
+ group?: BooleanInput;
17
+ /**
18
+ * If checkbox is checked
19
+ */
20
+ checked?: BooleanInput;
21
+ /**
22
+ * If checkbox is indeterminate
23
+ */
24
+ indeterminate?: BooleanInput;
25
+ get isIndeterminate(): boolean;
26
+ get isGroup(): boolean;
27
+ ngOnInit(): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "it-checkbox[id]", never, { "toggle": "toggle"; "inline": "inline"; "group": "group"; "checked": "checked"; "indeterminate": "indeterminate"; }, {}, never, ["*", "[error]", "[label]"], false, never>;
30
+ }
@@ -0,0 +1,96 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { AbstractFormComponent } from '../../../abstracts/abstract-form-component';
3
+ import { AutocompleteItem, InputControlType } from '../../../interfaces/form';
4
+ import { BooleanInput } from '../../../utils/boolean-input';
5
+ import { Observable } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ export declare class InputComponent extends AbstractFormComponent<string | number> {
8
+ /**
9
+ * The input type
10
+ * @default text
11
+ */
12
+ type: InputControlType;
13
+ /**
14
+ * The input placeholder
15
+ */
16
+ placeholder: string;
17
+ /**
18
+ * The input description
19
+ */
20
+ description?: string;
21
+ /**
22
+ * To prevent modification of the contained value.
23
+ * - <b>plaintext</b>: Readonly field in the form stylized as plain text
24
+ */
25
+ readonly?: BooleanInput | 'plaintext';
26
+ /**
27
+ * The max value [Used only in type = 'number']
28
+ */
29
+ max?: number;
30
+ /**
31
+ * The min value [Used only in type = 'number']
32
+ */
33
+ min?: number;
34
+ /**
35
+ * The step value [Used only in type = 'number']
36
+ */
37
+ step?: number | 'any';
38
+ /**
39
+ * If is a currency number [Used only in type = 'number']
40
+ */
41
+ currency?: BooleanInput;
42
+ /**
43
+ * If is a percentage number [Used only in type = 'number']
44
+ */
45
+ percentage?: BooleanInput;
46
+ /**
47
+ * To make the numeric field automatically resize according to the value contained in it. [Used only in type = 'number']
48
+ */
49
+ adaptive?: BooleanInput;
50
+ /**
51
+ * Indicates the list of searchable elements on which to base the input autocomplete system [Optional. Used only in type = 'search']
52
+ * If you need to retrieve items via API, can pass a function of Observable
53
+ * @default undefined
54
+ */
55
+ autocompleteData?: Array<AutocompleteItem> | ((search?: string) => Observable<Array<AutocompleteItem>>);
56
+ /**
57
+ * Time span [ms] has passed without another source emission, to delay data filtering.
58
+ * Useful when the user is typing multiple letters
59
+ * @default 300 [ms]
60
+ */
61
+ autocompleteDebounceTime: number;
62
+ /**
63
+ * Fired when the Autocomplete Item has been selected
64
+ */
65
+ onAutocompleteSelected: EventEmitter<AutocompleteItem>;
66
+ showAutocompletion: boolean;
67
+ get isActiveLabel(): boolean;
68
+ /**
69
+ * Check is readonly field
70
+ */
71
+ get isReadonly(): boolean;
72
+ /**
73
+ * Return the invalid message string from TranslateService
74
+ */
75
+ get invalidMessage(): Observable<string>;
76
+ /** Observable da cui vengono emessi i risultati dell'auto completamento */
77
+ autocompleteResults$: Observable<{
78
+ searchedValue: string;
79
+ relatedEntries: Array<AutocompleteItem>;
80
+ }>;
81
+ ngOnInit(): void;
82
+ /**
83
+ * Increment or decrease the input number value of step
84
+ * @param decrease true to decrease value
85
+ */
86
+ incrementNumber(decrease?: boolean): void;
87
+ /**
88
+ * Create the autocomplete list
89
+ */
90
+ private getAutocompleteResults$;
91
+ onEntryClick(entry: AutocompleteItem, event: Event): void;
92
+ autocompleteItemTrackByValueFn(index: number, item: AutocompleteItem): string;
93
+ onKeyDown(): void;
94
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
95
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "it-input[id]", never, { "type": "type"; "placeholder": "placeholder"; "description": "description"; "readonly": "readonly"; "max": "max"; "min": "min"; "step": "step"; "currency": "currency"; "percentage": "percentage"; "adaptive": "adaptive"; "autocompleteData": "autocompleteData"; "autocompleteDebounceTime": "autocompleteDebounceTime"; }, { "onAutocompleteSelected": "onAutocompleteSelected"; }, never, ["[prepend]", "[prependText]", "[append]", "[appendText]", "[error]"], false, never>;
96
+ }
@@ -0,0 +1,55 @@
1
+ import { AbstractFormComponent } from '../../../abstracts/abstract-form-component';
2
+ import { Observable } from 'rxjs';
3
+ import { BooleanInput } from '../../../utils/boolean-input';
4
+ import { InputPassword } from 'bootstrap-italia';
5
+ import * as i0 from "@angular/core";
6
+ export declare class PasswordInputComponent extends AbstractFormComponent<string> {
7
+ /**
8
+ * The password minimum length
9
+ * @default 10
10
+ */
11
+ minLength: number;
12
+ /**
13
+ * The password must contain at least one number
14
+ * @default true
15
+ */
16
+ useNumber: boolean;
17
+ /**
18
+ * The password must contain at least one uppercase character
19
+ * @default true
20
+ */
21
+ useCapitalCase: boolean;
22
+ /**
23
+ * The password must contain at least one lowercase character
24
+ * @default true
25
+ */
26
+ useSmallCase: boolean;
27
+ /**
28
+ * The password must contain at least one special character
29
+ * @default true
30
+ */
31
+ useSpecialCharacters: boolean;
32
+ /**
33
+ * The input placeholder
34
+ */
35
+ placeholder: string;
36
+ /**
37
+ * The input description
38
+ */
39
+ description?: string;
40
+ /**
41
+ * Enable to show the strength meter
42
+ */
43
+ showStrengthMeter?: BooleanInput;
44
+ inputPasswordBs?: InputPassword;
45
+ private inputElement?;
46
+ ngOnInit(): void;
47
+ ngAfterViewInit(): void;
48
+ get isStrengthMeter(): boolean;
49
+ /**
50
+ * Return the invalid message string from TranslateService
51
+ */
52
+ get invalidMessage(): Observable<string>;
53
+ static ɵfac: i0.ɵɵFactoryDeclaration<PasswordInputComponent, never>;
54
+ static ɵcmp: i0.ɵɵComponentDeclaration<PasswordInputComponent, "it-password-input[id]", never, { "minLength": "minLength"; "useNumber": "useNumber"; "useCapitalCase": "useCapitalCase"; "useSmallCase": "useSmallCase"; "useSpecialCharacters": "useSpecialCharacters"; "placeholder": "placeholder"; "description": "description"; "showStrengthMeter": "showStrengthMeter"; }, {}, never, ["[error]"], false, never>;
55
+ }
@@ -0,0 +1,29 @@
1
+ import { AbstractFormComponent } from '../../../abstracts/abstract-form-component';
2
+ import { BooleanInput } from '../../../utils/boolean-input';
3
+ import * as i0 from "@angular/core";
4
+ export declare class RadioButtonComponent extends AbstractFormComponent<string | number> {
5
+ /**
6
+ * The radio value
7
+ */
8
+ value?: string | number;
9
+ /**
10
+ * If show radio inline
11
+ * @default false
12
+ */
13
+ inline: BooleanInput;
14
+ /**
15
+ * If is radio group
16
+ * @default false
17
+ */
18
+ group: BooleanInput;
19
+ /**
20
+ * If is radio is checked
21
+ */
22
+ checked?: BooleanInput;
23
+ get isInline(): boolean;
24
+ get isGroup(): boolean;
25
+ get name(): string;
26
+ ngOnInit(): void;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "it-radio-button[id][value]", never, { "value": "value"; "inline": "inline"; "group": "group"; "checked": "checked"; }, {}, never, ["[label]", "*", "[error]", "[error]"], false, never>;
29
+ }
@@ -0,0 +1,30 @@
1
+ import { AbstractFormComponent } from '../../../abstracts/abstract-form-component';
2
+ import { SelectControlGroup, SelectControlOption } from '../../../interfaces/form';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SelectComponent extends AbstractFormComponent {
5
+ /**
6
+ * The select options
7
+ */
8
+ options: Array<SelectControlOption>;
9
+ /**
10
+ * The select group options
11
+ */
12
+ groups?: Array<SelectControlGroup>;
13
+ /**
14
+ * The select description
15
+ */
16
+ description?: string;
17
+ ngOnInit(): void;
18
+ /**
19
+ * Check if the option is selected
20
+ * @param option the option
21
+ */
22
+ optionIsSelected(option: SelectControlOption): boolean;
23
+ /**
24
+ * Check if the option is disabled
25
+ * @param option the option
26
+ */
27
+ optionIsDisabled(option: SelectControlOption): boolean;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "it-select[id][options]", never, { "options": "options"; "groups": "groups"; "description": "description"; }, {}, never, never, false, never>;
30
+ }
@@ -0,0 +1,24 @@
1
+ import { AbstractFormComponent } from '../../../abstracts/abstract-form-component';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TextareaComponent extends AbstractFormComponent<string> {
5
+ /**
6
+ * Textarea Rows
7
+ * @default 3
8
+ */
9
+ rows?: number;
10
+ /**
11
+ * The textarea placeholder
12
+ */
13
+ placeholder: string;
14
+ /**
15
+ * The input description
16
+ */
17
+ description?: string;
18
+ /**
19
+ * Return the invalid message string from TranslateService
20
+ */
21
+ get invalidMessage(): Observable<string>;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextareaComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "it-textarea[id]", never, { "rows": "rows"; "placeholder": "placeholder"; "description": "description"; }, {}, never, ["[error]"], false, never>;
24
+ }
@@ -0,0 +1,54 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { AbstractComponent } from '../../../abstracts/abstract.component';
3
+ import { ProgressDonut } from 'bootstrap-italia';
4
+ import * as i0 from "@angular/core";
5
+ export declare class UploadDragDropComponent extends AbstractComponent {
6
+ /**
7
+ * The accepted file type to upload <br>
8
+ * Possible values: <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types">MIME Types</a> separated by comma
9
+ * @example application/pdf,image/png
10
+ * @default *
11
+ */
12
+ accept: string;
13
+ /**
14
+ * Fired when file start to upload
15
+ */
16
+ fileStartUpload: EventEmitter<File>;
17
+ isDragover: boolean;
18
+ isLoading: boolean;
19
+ isSuccess: boolean;
20
+ donut?: ProgressDonut;
21
+ private donutElement?;
22
+ filename?: string;
23
+ extension?: string;
24
+ fileSize?: string;
25
+ ngAfterViewInit(): void;
26
+ onDragOver(evt: DragEvent): void;
27
+ onDragLeave(evt: DragEvent): void;
28
+ onDrop(evt: DragEvent): void;
29
+ /**
30
+ * On load file from input
31
+ * @param event
32
+ */
33
+ onLoadFile(event: Event): void;
34
+ /**
35
+ * Start the upload file
36
+ * @param file
37
+ */
38
+ start(file: File): void;
39
+ /**
40
+ * Percentage of upload
41
+ * @param value the percentage [0 - 100]
42
+ */
43
+ progress(value: number): void;
44
+ /**
45
+ * Upload success
46
+ */
47
+ success(): void;
48
+ /**
49
+ * Reset file uploader
50
+ */
51
+ reset(): void;
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<UploadDragDropComponent, never>;
53
+ static ɵcmp: i0.ɵɵComponentDeclaration<UploadDragDropComponent, "it-upload-drag-drop[id]", ["itUploadDragDrop"], { "accept": "accept"; }, { "fileStartUpload": "fileStartUpload"; }, never, never, false, never>;
54
+ }
@@ -0,0 +1,59 @@
1
+ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
+ import { AbstractComponent } from '../../../abstracts/abstract.component';
3
+ import { BooleanInput } from '../../../utils/boolean-input';
4
+ import { UploadFileListItem } from '../../../interfaces/form';
5
+ import * as i0 from "@angular/core";
6
+ export declare class UploadFileListComponent extends AbstractComponent implements OnInit, OnChanges {
7
+ /**
8
+ * The list of files to show in list
9
+ */
10
+ fileList: Array<UploadFileListItem>;
11
+ /**
12
+ * The accepted file type to upload <br>
13
+ * Possible values: <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types">MIME Types</a> separated by comma
14
+ * @example application/pdf,image/png
15
+ * @default *
16
+ */
17
+ accept: string;
18
+ /**
19
+ * If upload multiple files
20
+ */
21
+ multiple: BooleanInput;
22
+ /**
23
+ * If is file list image
24
+ */
25
+ images?: BooleanInput;
26
+ /**
27
+ * Hide the load button
28
+ */
29
+ hideLoadButton?: BooleanInput;
30
+ /**
31
+ * Fired when upload new files
32
+ */
33
+ uploadFiles: EventEmitter<FileList>;
34
+ /**
35
+ * Fired on delete item button click
36
+ */
37
+ deleteItem: EventEmitter<UploadFileListItem>;
38
+ /**
39
+ * Cache to preview image
40
+ */
41
+ previewImages: Map<number, string>;
42
+ ngOnInit(): void;
43
+ ngOnChanges(changes: SimpleChanges): void;
44
+ get isMultipleInput(): boolean;
45
+ get isImageList(): boolean;
46
+ get isHideLoadButton(): boolean;
47
+ /**
48
+ * On load file from input
49
+ * @param event
50
+ */
51
+ onLoadFiles(event: Event): void;
52
+ /**
53
+ * Get the file size string
54
+ * @param file
55
+ */
56
+ getFileSize(file: File): string;
57
+ static ɵfac: i0.ɵɵFactoryDeclaration<UploadFileListComponent, never>;
58
+ static ɵcmp: i0.ɵɵComponentDeclaration<UploadFileListComponent, "it-upload-file-list[id][fileList]", never, { "fileList": "fileList"; "accept": "accept"; "multiple": "multiple"; "images": "images"; "hideLoadButton": "hideLoadButton"; }, { "uploadFiles": "uploadFiles"; "deleteItem": "deleteItem"; }, never, never, false, never>;
59
+ }
@@ -0,0 +1,47 @@
1
+ import { Location } from '@angular/common';
2
+ import { BooleanInput } from '../../../utils/boolean-input';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BackButtonComponent {
5
+ readonly _location: Location;
6
+ /**
7
+ * Back button style
8
+ * - <b>link</b>: use a link with icon and text
9
+ * - <b>button</b>: use a button with icon and text
10
+ * @default button
11
+ */
12
+ buttonStyle: 'link' | 'button';
13
+ /**
14
+ * Button direction
15
+ * - <b>left</b>: Back direction
16
+ * - <b>up</b>: Upper direction
17
+ * @default left
18
+ */
19
+ direction: 'left' | 'up';
20
+ /**
21
+ * Show/Hide icon
22
+ * @default true
23
+ */
24
+ showIcon: BooleanInput;
25
+ /**
26
+ * Show/Hide text
27
+ * @default true
28
+ */
29
+ showText: BooleanInput;
30
+ /**
31
+ * Custom back logic <br/>
32
+ *
33
+ * NOTE: to use 'this' need bind function <br/>
34
+ * @example backCbFn = this.errorCallback.bind(this);
35
+ * (errorCallback is your function, pass backCbFn to the component)
36
+ */
37
+ backFn?: (location: Location) => void;
38
+ get isShowIcon(): boolean;
39
+ get isShowText(): boolean;
40
+ constructor(_location: Location);
41
+ /**
42
+ * Go back function
43
+ */
44
+ goBack(event: Event): void;
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<BackButtonComponent, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<BackButtonComponent, "it-back-button", ["itBackButton"], { "buttonStyle": "buttonStyle"; "direction": "direction"; "showIcon": "showIcon"; "showText": "showText"; "backFn": "backFn"; }, {}, never, never, false, never>;
47
+ }
@@ -0,0 +1,46 @@
1
+ import { BooleanInput } from '../../../utils/boolean-input';
2
+ import { AbstractComponent } from '../../../abstracts/abstract.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BackToTopComponent extends AbstractComponent {
5
+ /**
6
+ * The back to top ID
7
+ * @default 'back-to-top-button'
8
+ */
9
+ id: string;
10
+ /**
11
+ * Show small button
12
+ */
13
+ small?: BooleanInput;
14
+ /**
15
+ * Show shadow
16
+ */
17
+ shadow?: BooleanInput;
18
+ /**
19
+ * Button usable button on a dark background
20
+ */
21
+ dark?: BooleanInput;
22
+ private backToTop?;
23
+ private backToTopElement?;
24
+ get isSmall(): boolean;
25
+ get isShadow(): boolean;
26
+ get isDark(): boolean;
27
+ ngAfterViewInit(): void;
28
+ /**
29
+ * Show button
30
+ */
31
+ show(): void;
32
+ /**
33
+ * Hide the button
34
+ */
35
+ hide(): void;
36
+ /**
37
+ * Activates the scroll animation towards the Y coordinate indicated by the positionTop option
38
+ */
39
+ scrollToTop(): void;
40
+ /**
41
+ * Eliminate component features
42
+ */
43
+ dispose(): void;
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<BackToTopComponent, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<BackToTopComponent, "it-back-to-top", ["itBackToTop"], { "id": "id"; "small": "small"; "shadow": "shadow"; "dark": "dark"; }, {}, never, never, false, never>;
46
+ }
@@ -0,0 +1,30 @@
1
+ import { ChangeDetectorRef, QueryList } from '@angular/core';
2
+ import { BreadcrumbItemComponent } from "../breadcrumb-item/breadcrumb-item.component";
3
+ import { BooleanInput } from "../../../../utils/boolean-input";
4
+ import * as i0 from "@angular/core";
5
+ export declare class BreadcrumbComponent {
6
+ private readonly _changeDetectorRef;
7
+ /**
8
+ * The character to use as separator
9
+ * @default /
10
+ */
11
+ separator: string;
12
+ /**
13
+ * Dark style
14
+ */
15
+ dark?: BooleanInput;
16
+ /**
17
+ * The tab items
18
+ */
19
+ items?: QueryList<BreadcrumbItemComponent>;
20
+ get isDark(): boolean;
21
+ constructor(_changeDetectorRef: ChangeDetectorRef);
22
+ 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>;
30
+ }
@@ -0,0 +1,22 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import { BooleanInput } from '../../../../utils/boolean-input';
3
+ import { IconName } from '../../../../interfaces/icon';
4
+ import { LinkComponent } from '../../../core/link/link.component';
5
+ import * as i0 from "@angular/core";
6
+ export declare class BreadcrumbItemComponent extends LinkComponent {
7
+ /**
8
+ * Is active breadcrumb item
9
+ */
10
+ active?: BooleanInput;
11
+ /**
12
+ * The name of icon to show
13
+ */
14
+ iconName?: IconName;
15
+ /**
16
+ * The content of item
17
+ */
18
+ 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>;
22
+ }
@@ -0,0 +1,30 @@
1
+ import { ChangeDetectorRef, ElementRef, EventEmitter, Renderer2 } from '@angular/core';
2
+ import { BooleanInput } from '../../../utils/boolean-input';
3
+ import { AbstractComponent } from '../../../abstracts/abstract.component';
4
+ 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;
12
+ loginStyle: 'none' | 'default' | 'full';
13
+ smallHeader?: BooleanInput;
14
+ showSearch?: BooleanInput;
15
+ loginClick: EventEmitter<Event>;
16
+ 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>;
30
+ }