design-angular-kit 1.0.0-1 → 1.0.0-11

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 +97 -0
  3. package/assets/i18n/it.json +97 -0
  4. package/esm2020/lib/abstracts/abstract-form.component.mjs +171 -0
  5. package/esm2020/lib/abstracts/abstract.component.mjs +45 -0
  6. package/esm2020/lib/components/components.module.mjs +256 -0
  7. package/esm2020/lib/components/core/accordion/accordion.component.mjs +31 -0
  8. package/esm2020/lib/components/core/alert/alert.component.mjs +69 -0
  9. package/esm2020/lib/components/core/badge/badge.directive.mjs +34 -0
  10. package/esm2020/lib/components/core/button/button.directive.mjs +80 -0
  11. package/esm2020/lib/components/core/callout/callout.component.mjs +84 -0
  12. package/esm2020/lib/components/core/card/card.component.mjs +58 -0
  13. package/esm2020/lib/components/core/carousel/carousel/carousel.component.mjs +79 -0
  14. package/esm2020/lib/components/core/carousel/carousel-item/carousel-item.component.mjs +15 -0
  15. package/esm2020/lib/components/core/chip/chip.component.mjs +89 -0
  16. package/esm2020/lib/components/core/collapse/collapse.component.mjs +101 -0
  17. package/esm2020/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.mjs +24 -0
  18. package/esm2020/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.mjs +11 -0
  19. package/esm2020/lib/components/core/dimmer/dimmer.component.mjs +59 -0
  20. package/esm2020/lib/components/core/dropdown/dropdown/dropdown.component.mjs +130 -0
  21. package/esm2020/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +68 -0
  22. package/esm2020/lib/components/core/forward/forward.directive.mjs +51 -0
  23. package/esm2020/lib/components/core/link/link.component.mjs +40 -0
  24. package/esm2020/lib/components/core/list/list/list.component.mjs +13 -0
  25. package/esm2020/lib/components/core/list/list-item/list-item.component.mjs +36 -0
  26. package/esm2020/lib/components/core/modal/modal.component.mjs +98 -0
  27. package/esm2020/lib/components/core/notifications/notifications.component.mjs +110 -0
  28. package/esm2020/lib/components/core/pagination/pagination.component.mjs +131 -0
  29. package/esm2020/lib/components/core/popover/popover.directive.mjs +179 -0
  30. package/esm2020/lib/components/core/progress-bar/progress-bar.component.mjs +34 -0
  31. package/esm2020/lib/components/core/progress-button/progress-button.component.mjs +27 -0
  32. package/esm2020/lib/components/core/rating/rating.component.mjs +49 -0
  33. package/esm2020/lib/components/core/spinner/spinner.component.mjs +35 -0
  34. package/esm2020/lib/components/core/steppers/steppers-container/steppers-container.component.mjs +127 -0
  35. package/esm2020/lib/components/core/steppers/steppers-item/steppers-item.component.mjs +19 -0
  36. package/esm2020/lib/components/core/tab/tab-container/tab-container.component.mjs +59 -0
  37. package/esm2020/lib/components/core/tab/tab-item/tab-item.component.mjs +36 -0
  38. package/esm2020/lib/components/core/table/table.component.mjs +57 -0
  39. package/esm2020/lib/components/core/tooltip/tooltip.directive.mjs +143 -0
  40. package/esm2020/lib/components/form/checkbox/checkbox.component.mjs +40 -0
  41. package/esm2020/lib/components/form/input/input.component.mjs +222 -0
  42. package/esm2020/lib/components/form/password-input/password-input.component.mjs +112 -0
  43. package/esm2020/lib/components/form/radio-button/radio-button.component.mjs +68 -0
  44. package/esm2020/lib/components/form/select/select.component.mjs +62 -0
  45. package/esm2020/lib/components/form/textarea/textarea.component.mjs +46 -0
  46. package/esm2020/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +139 -0
  47. package/esm2020/lib/components/form/upload-file-list/upload-file-list.component.mjs +104 -0
  48. package/esm2020/lib/components/navigation/back-button/back-button.component.mjs +69 -0
  49. package/esm2020/lib/components/navigation/back-to-top/back-to-top.component.mjs +64 -0
  50. package/esm2020/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.mjs +56 -0
  51. package/esm2020/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.mjs +23 -0
  52. package/esm2020/lib/components/navigation/header/header.component.mjs +57 -0
  53. package/esm2020/lib/components/utils/icon/icon.component.mjs +54 -0
  54. package/esm2020/lib/components/utils/language-switcher/language-switcher.component.mjs +39 -0
  55. package/esm2020/lib/components/utils/not-found-page/not-found-page.component.mjs +13 -0
  56. package/esm2020/lib/design-angular-kit.module.mjs +45 -131
  57. package/esm2020/lib/interfaces/core.mjs +16 -0
  58. package/esm2020/lib/interfaces/form.mjs +2 -0
  59. package/esm2020/lib/interfaces/icon.mjs +2 -0
  60. package/esm2020/lib/interfaces/utils.mjs +2 -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 +3550 -2712
  69. package/fesm2015/design-angular-kit.mjs.map +1 -1
  70. package/fesm2020/design-angular-kit.mjs +3519 -2722
  71. package/fesm2020/design-angular-kit.mjs.map +1 -1
  72. package/lib/abstracts/abstract-form.component.d.ts +86 -0
  73. package/lib/abstracts/abstract.component.d.ts +30 -0
  74. package/lib/components/components.module.d.ts +60 -0
  75. package/lib/components/core/accordion/accordion.component.d.ts +12 -0
  76. package/lib/components/core/alert/alert.component.d.ts +39 -0
  77. package/lib/components/core/badge/badge.directive.d.ts +16 -0
  78. package/lib/components/core/button/button.directive.d.ts +36 -0
  79. package/lib/components/core/callout/callout.component.d.ts +47 -0
  80. package/lib/components/core/card/card.component.d.ts +41 -0
  81. package/lib/components/core/carousel/carousel/carousel.component.d.ts +50 -0
  82. package/lib/components/core/carousel/carousel-item/carousel-item.component.d.ts +11 -0
  83. package/lib/components/core/chip/chip.component.d.ts +62 -0
  84. package/lib/components/core/collapse/collapse.component.d.ts +60 -0
  85. package/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.d.ts +12 -0
  86. package/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.d.ts +5 -0
  87. package/lib/components/core/dimmer/dimmer.component.d.ts +24 -0
  88. package/lib/components/core/dropdown/dropdown/dropdown.component.d.ts +81 -0
  89. package/lib/components/core/dropdown/dropdown-item/dropdown-item.component.d.ts +39 -0
  90. package/lib/components/core/forward/forward.directive.d.ts +14 -0
  91. package/lib/components/core/link/link.component.d.ts +31 -0
  92. package/lib/components/core/list/list/list.component.d.ts +10 -0
  93. package/lib/components/core/list/list-item/list-item.component.d.ts +24 -0
  94. package/lib/components/core/modal/modal.component.d.ts +59 -0
  95. package/lib/components/core/notifications/notifications.component.d.ts +44 -0
  96. package/lib/components/core/pagination/pagination.component.d.ts +92 -0
  97. package/lib/components/core/popover/popover.directive.d.ts +98 -0
  98. package/lib/components/core/progress-bar/progress-bar.component.d.ts +28 -0
  99. package/lib/components/core/progress-button/progress-button.component.d.ts +22 -0
  100. package/lib/components/core/rating/rating.component.d.ts +24 -0
  101. package/lib/components/core/spinner/spinner.component.d.ts +21 -0
  102. package/lib/components/core/steppers/steppers-container/steppers-container.component.d.ts +104 -0
  103. package/lib/components/core/steppers/steppers-item/steppers-item.component.d.ts +20 -0
  104. package/lib/components/core/tab/tab-container/tab-container.component.d.ts +30 -0
  105. package/lib/components/core/tab/tab-item/tab-item.component.d.ts +34 -0
  106. package/lib/components/core/table/table.component.d.ts +54 -0
  107. package/lib/components/core/tooltip/tooltip.directive.d.ts +81 -0
  108. package/lib/components/form/checkbox/checkbox.component.d.ts +30 -0
  109. package/lib/components/form/input/input.component.d.ts +96 -0
  110. package/lib/components/form/password-input/password-input.component.d.ts +55 -0
  111. package/lib/components/form/radio-button/radio-button.component.d.ts +29 -0
  112. package/lib/components/form/select/select.component.d.ts +30 -0
  113. package/lib/components/form/textarea/textarea.component.d.ts +24 -0
  114. package/lib/components/form/upload-drag-drop/upload-drag-drop.component.d.ts +54 -0
  115. package/lib/components/form/upload-file-list/upload-file-list.component.d.ts +59 -0
  116. package/lib/components/navigation/back-button/back-button.component.d.ts +47 -0
  117. package/lib/components/navigation/back-to-top/back-to-top.component.d.ts +41 -0
  118. package/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +32 -0
  119. package/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.d.ts +22 -0
  120. package/lib/components/navigation/header/header.component.d.ts +24 -0
  121. package/lib/components/utils/icon/icon.component.d.ts +40 -0
  122. package/lib/components/utils/language-switcher/language-switcher.component.d.ts +23 -0
  123. package/lib/components/utils/not-found-page/not-found-page.component.d.ts +5 -0
  124. package/lib/design-angular-kit.module.d.ts +7 -24
  125. package/lib/interfaces/core.d.ts +59 -0
  126. package/lib/interfaces/form.d.ts +67 -0
  127. package/lib/interfaces/icon.d.ts +3 -0
  128. package/lib/interfaces/utils.d.ts +10 -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 -13
  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,104 @@
1
+ import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnDestroy, QueryList } from '@angular/core';
2
+ import { BooleanInput } from '../../../../utils/boolean-input';
3
+ import { SteppersItemComponent } from '../steppers-item/steppers-item.component';
4
+ import { ProgressBarColor } from '../../../../interfaces/core';
5
+ import * as i0 from "@angular/core";
6
+ export declare class SteppersContainerComponent implements AfterViewInit, OnDestroy {
7
+ private readonly _changeDetectorRef;
8
+ /**
9
+ * The active step index
10
+ * @param index the step index
11
+ */
12
+ activeStep: number;
13
+ /**
14
+ * Show the stepper header
15
+ * @default true
16
+ */
17
+ showHeader: BooleanInput;
18
+ /**
19
+ * Dark style
20
+ */
21
+ dark?: BooleanInput;
22
+ /**
23
+ * The labels present in the header steps can be anticipated by the relative ordinal number.
24
+ */
25
+ steppersNumber?: BooleanInput;
26
+ /**
27
+ * The progress style
28
+ * -<b>progress</b>: Show progress bar - You can change the color with the `progressColor` attribute
29
+ * -<b>dots</b>: Show progress dots
30
+ * @default undefined - don't show progress
31
+ */
32
+ progressStyle?: 'progress' | 'dots';
33
+ /**
34
+ * Customize progress color
35
+ */
36
+ progressColor?: ProgressBarColor;
37
+ /**
38
+ * Show the back button
39
+ * @default true
40
+ */
41
+ showBackButton: BooleanInput;
42
+ /**
43
+ * Show the forward button
44
+ * @default true
45
+ */
46
+ showForwardButton: BooleanInput;
47
+ /**
48
+ * Show the confirm button
49
+ * @default false
50
+ */
51
+ showConfirmButton: BooleanInput;
52
+ /**
53
+ * Show the confirm button as indeterminate progress button
54
+ */
55
+ confirmLoading?: BooleanInput;
56
+ /**
57
+ * Show the save button
58
+ * @default false
59
+ */
60
+ showSaveButton: BooleanInput;
61
+ /**
62
+ * Show the save button as indeterminate progress button
63
+ */
64
+ saveLoading?: BooleanInput;
65
+ /**
66
+ * The stepper items
67
+ */
68
+ steps?: QueryList<SteppersItemComponent>;
69
+ /**
70
+ * On back button click
71
+ * @event activeStep the current step index
72
+ */
73
+ backClick: EventEmitter<number>;
74
+ /**
75
+ * On forward button click
76
+ * @event activeStep the current step index
77
+ */
78
+ forwardClick: EventEmitter<number>;
79
+ /**
80
+ * On confirm button click
81
+ * @event activeStep the current step index
82
+ */
83
+ confirmClick: EventEmitter<number>;
84
+ /**
85
+ * On save button click
86
+ * @event activeStep the current step index
87
+ */
88
+ saveClick: EventEmitter<number>;
89
+ get isShowHeader(): boolean;
90
+ get isSteppersNumber(): boolean;
91
+ get isDark(): boolean;
92
+ get isShowBackButton(): boolean;
93
+ get isShowForwardButton(): boolean;
94
+ get isShowConfirmButton(): boolean;
95
+ get isConfirmLoading(): boolean;
96
+ get isShowSaveButton(): boolean;
97
+ get isSaveLoading(): boolean;
98
+ private stepsSubscriptions?;
99
+ constructor(_changeDetectorRef: ChangeDetectorRef);
100
+ ngAfterViewInit(): void;
101
+ ngOnDestroy(): void;
102
+ static ɵfac: i0.ɵɵFactoryDeclaration<SteppersContainerComponent, never>;
103
+ static ɵcmp: i0.ɵɵComponentDeclaration<SteppersContainerComponent, "it-steppers-container[activeStep]", never, { "activeStep": "activeStep"; "showHeader": "showHeader"; "dark": "dark"; "steppersNumber": "steppersNumber"; "progressStyle": "progressStyle"; "progressColor": "progressColor"; "showBackButton": "showBackButton"; "showForwardButton": "showForwardButton"; "showConfirmButton": "showConfirmButton"; "confirmLoading": "confirmLoading"; "showSaveButton": "showSaveButton"; "saveLoading": "saveLoading"; }, { "backClick": "backClick"; "forwardClick": "forwardClick"; "confirmClick": "confirmClick"; "saveClick": "saveClick"; }, ["steps"], never, false, never>;
104
+ }
@@ -0,0 +1,20 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import { IconName } from '../../../../interfaces/icon';
3
+ import { AbstractComponent } from '../../../../abstracts/abstract.component';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SteppersItemComponent extends AbstractComponent {
6
+ /**
7
+ * The labels present in the header steps
8
+ */
9
+ label: string;
10
+ /**
11
+ * The labels present in the header steps can be preceded by an icon.
12
+ */
13
+ icon?: IconName;
14
+ /**
15
+ * The content of step
16
+ */
17
+ htmlContent: TemplateRef<any>;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<SteppersItemComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<SteppersItemComponent, "it-steppers-item[label]", never, { "label": "label"; "icon": "icon"; }, {}, never, ["*"], false, never>;
20
+ }
@@ -0,0 +1,30 @@
1
+ import { OnDestroy, QueryList } from '@angular/core';
2
+ import { BooleanInput } from '../../../../utils/boolean-input';
3
+ import { TabItemComponent } from '../tab-item/tab-item.component';
4
+ import { AbstractComponent } from '../../../../abstracts/abstract.component';
5
+ import * as i0 from "@angular/core";
6
+ export declare class TabContainerComponent extends AbstractComponent implements OnDestroy {
7
+ /**
8
+ * Tabs automatically occupy the entire available width
9
+ */
10
+ auto?: BooleanInput;
11
+ /**
12
+ * To obtain the correct margin between text and icon in the horizontally developed tab
13
+ */
14
+ iconText?: BooleanInput;
15
+ /**
16
+ * Dark style
17
+ */
18
+ dark?: BooleanInput;
19
+ /**
20
+ * The tab items
21
+ */
22
+ tabs?: QueryList<TabItemComponent>;
23
+ private tabNavLinks?;
24
+ private tabSubscriptions?;
25
+ isTrueBooleanInput(booleanInput?: BooleanInput): boolean;
26
+ ngAfterViewInit(): void;
27
+ ngOnDestroy(): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<TabContainerComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabContainerComponent, "it-tab-container", never, { "auto": "auto"; "iconText": "iconText"; "dark": "dark"; }, {}, ["tabs"], never, false, never>;
30
+ }
@@ -0,0 +1,34 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import { AbstractComponent } from '../../../../abstracts/abstract.component';
3
+ import { BooleanInput } from '../../../../utils/boolean-input';
4
+ import { IconName } from '../../../../interfaces/icon';
5
+ import * as i0 from "@angular/core";
6
+ export declare class TabItemComponent extends AbstractComponent {
7
+ /**
8
+ * The tab label
9
+ */
10
+ label?: string;
11
+ /**
12
+ * The icon name
13
+ */
14
+ icon?: IconName;
15
+ /**
16
+ * Default active tab
17
+ */
18
+ active?: BooleanInput;
19
+ /**
20
+ * Default disabled tab
21
+ */
22
+ disabled?: BooleanInput;
23
+ /**
24
+ * Custom class
25
+ */
26
+ class: string;
27
+ /**
28
+ * The content of tab
29
+ */
30
+ htmlContent: TemplateRef<any>;
31
+ ngAfterViewInit(): void;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<TabItemComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabItemComponent, "it-tab-item", never, { "label": "label"; "icon": "icon"; "active": "active"; "disabled": "disabled"; "class": "class"; }, {}, never, ["*"], false, never>;
34
+ }
@@ -0,0 +1,54 @@
1
+ import { TableColor, TableHeadColor, TableResponsive, VerticalAlignment } from '../../../interfaces/core';
2
+ import { BooleanInput } from '../../../utils/boolean-input';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TableComponent {
5
+ /**
6
+ * Table color
7
+ */
8
+ color?: TableColor;
9
+ /**
10
+ * Head table color
11
+ */
12
+ headColor?: TableHeadColor;
13
+ /**
14
+ * Use vertical alignment classes to realign where needed.
15
+ */
16
+ alignment?: VerticalAlignment;
17
+ /**
18
+ * Use .table-striped to add zebra stripes to each table row contained in <tbody>.
19
+ */
20
+ striped?: BooleanInput;
21
+ /**
22
+ * Add .table-hover to enable hover state on table rows contained in <tbody>.
23
+ */
24
+ hover?: BooleanInput;
25
+ /**
26
+ * Add .table-bordered to have borders on all sides of the table and on all cells.
27
+ */
28
+ bordered?: BooleanInput;
29
+ /**
30
+ * Add the .table-borderless class for a borderless table.
31
+ */
32
+ borderless?: BooleanInput;
33
+ /**
34
+ * Add .table-sm to make tables more compact by halving the cell padding.
35
+ */
36
+ compact?: BooleanInput;
37
+ /**
38
+ * To render the <caption> on top of the table
39
+ */
40
+ captionTop?: BooleanInput;
41
+ /**
42
+ * Responsive tables allow you to scroll tables horizontally with ease.
43
+ * @default responsive
44
+ */
45
+ responsive: TableResponsive;
46
+ get isStriped(): boolean;
47
+ get isHover(): boolean;
48
+ get isBordered(): boolean;
49
+ get isBorderless(): boolean;
50
+ get isCompact(): boolean;
51
+ get isCaptionTop(): boolean;
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
53
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "it-table", never, { "color": "color"; "headColor": "headColor"; "alignment": "alignment"; "striped": "striped"; "hover": "hover"; "bordered": "bordered"; "borderless": "borderless"; "compact": "compact"; "captionTop": "captionTop"; "responsive": "responsive"; }, {}, never, ["[caption]", "[thead]", "[tbody]", "[tfoot]"], false, never>;
54
+ }
@@ -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", 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", 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", 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 | undefined> {
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[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", 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", 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", ["itUploadDragDrop"], { "accept": "accept"; }, { "fileStartUpload": "fileStartUpload"; }, never, never, false, never>;
54
+ }