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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/README.md +152 -18
  2. package/assets/i18n/it.json +81 -0
  3. package/esm2020/lib/abstracts/abstract-form-component.mjs +165 -0
  4. package/esm2020/lib/abstracts/abstract.component.mjs +20 -0
  5. package/esm2020/lib/components/core/accordion/accordion.component.mjs +20 -0
  6. package/esm2020/lib/components/core/alert/alert.component.mjs +29 -0
  7. package/esm2020/lib/components/core/badge/badge.directive.mjs +34 -0
  8. package/esm2020/lib/components/core/button/button.directive.mjs +78 -0
  9. package/esm2020/lib/components/core/callout/callout.component.mjs +84 -0
  10. package/esm2020/lib/components/core/card/card.component.mjs +58 -0
  11. package/esm2020/lib/components/core/carousel/carousel/carousel.component.mjs +66 -0
  12. package/esm2020/lib/components/core/carousel/carousel-item/carousel-item.component.mjs +14 -0
  13. package/esm2020/lib/components/core/chip/chip.component.mjs +89 -0
  14. package/esm2020/lib/components/core/collapse/collapse.component.mjs +96 -0
  15. package/esm2020/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.mjs +24 -0
  16. package/esm2020/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.mjs +11 -0
  17. package/esm2020/lib/components/core/dimmer/dimmer.component.mjs +59 -0
  18. package/esm2020/lib/components/core/dropdown/dropdown/dropdown.component.mjs +60 -0
  19. package/esm2020/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +71 -0
  20. package/esm2020/lib/components/core/forward/forward.directive.mjs +51 -0
  21. package/esm2020/lib/components/core/link/link.component.mjs +39 -0
  22. package/esm2020/lib/components/core/list/list/list.component.mjs +13 -0
  23. package/esm2020/lib/components/core/list/list-item/list-item.component.mjs +36 -0
  24. package/esm2020/lib/components/core/modal/modal.component.mjs +98 -0
  25. package/esm2020/lib/components/core/notifications/notifications.component.mjs +66 -0
  26. package/esm2020/lib/components/core/pagination/pagination.component.mjs +51 -0
  27. package/esm2020/lib/components/core/popover/popover.directive.mjs +176 -0
  28. package/esm2020/lib/components/core/progress-bar/progress-bar.component.mjs +34 -0
  29. package/esm2020/lib/components/core/progress-button/progress-button.component.mjs +27 -0
  30. package/esm2020/lib/components/core/spinner/spinner.component.mjs +35 -0
  31. package/esm2020/lib/components/core/tab/tab-container/tab-container.component.mjs +33 -0
  32. package/esm2020/lib/components/core/tab/tab-item/tab-item.component.mjs +36 -0
  33. package/esm2020/lib/components/core/table/table.component.mjs +57 -0
  34. package/esm2020/lib/components/core/tooltip/tooltip.directive.mjs +140 -0
  35. package/esm2020/lib/components/form/checkbox/checkbox.component.mjs +40 -0
  36. package/esm2020/lib/components/form/input/input.component.mjs +226 -0
  37. package/esm2020/lib/components/form/password-input/password-input.component.mjs +112 -0
  38. package/esm2020/lib/components/form/radio-button/radio-button.component.mjs +53 -0
  39. package/esm2020/lib/components/form/select/select.component.mjs +62 -0
  40. package/esm2020/lib/components/form/textarea/textarea.component.mjs +46 -0
  41. package/esm2020/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +134 -0
  42. package/esm2020/lib/components/form/upload-file-list/upload-file-list.component.mjs +99 -0
  43. package/esm2020/lib/components/navigation/back-button/back-button.component.mjs +69 -0
  44. package/esm2020/lib/components/navigation/back-to-top/back-to-top.component.mjs +39 -0
  45. package/esm2020/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.mjs +45 -0
  46. package/esm2020/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.mjs +23 -0
  47. package/esm2020/lib/components/navigation/header/header.component.mjs +61 -0
  48. package/esm2020/lib/components/utils/icon/icon.component.mjs +54 -0
  49. package/esm2020/lib/components/utils/not-found-page/not-found-page.component.mjs +13 -0
  50. package/esm2020/lib/design-angular-kit.module.mjs +32 -132
  51. package/esm2020/lib/interfaces/core.mjs +16 -0
  52. package/esm2020/lib/interfaces/form.mjs +2 -0
  53. package/esm2020/lib/interfaces/icon.mjs +2 -0
  54. package/esm2020/lib/modules/components.module.mjs +245 -0
  55. package/esm2020/lib/pipes/mark-matching-text.pipe.mjs +36 -0
  56. package/esm2020/lib/services/notifications/notifications.service.mjs +122 -0
  57. package/esm2020/lib/utils/boolean-input.mjs +15 -0
  58. package/esm2020/lib/utils/file-utils.mjs +65 -0
  59. package/esm2020/lib/utils/regex.mjs +26 -0
  60. package/esm2020/lib/validators/it-validators.mjs +131 -0
  61. package/esm2020/public_api.mjs +62 -36
  62. package/fesm2015/design-angular-kit.mjs +2856 -2640
  63. package/fesm2015/design-angular-kit.mjs.map +1 -1
  64. package/fesm2020/design-angular-kit.mjs +2837 -2640
  65. package/fesm2020/design-angular-kit.mjs.map +1 -1
  66. package/lib/abstracts/abstract-form-component.d.ts +84 -0
  67. package/lib/abstracts/abstract.component.d.ts +14 -0
  68. package/lib/components/core/accordion/accordion.component.d.ts +16 -0
  69. package/lib/components/core/alert/alert.component.d.ts +17 -0
  70. package/lib/components/core/badge/badge.directive.d.ts +16 -0
  71. package/lib/components/core/button/button.directive.d.ts +38 -0
  72. package/lib/components/core/callout/callout.component.d.ts +47 -0
  73. package/lib/components/core/card/card.component.d.ts +41 -0
  74. package/lib/components/core/carousel/carousel/carousel.component.d.ts +46 -0
  75. package/lib/components/core/carousel/carousel-item/carousel-item.component.d.ts +10 -0
  76. package/lib/components/core/chip/chip.component.d.ts +62 -0
  77. package/lib/components/core/collapse/collapse.component.d.ts +59 -0
  78. package/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.d.ts +12 -0
  79. package/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.d.ts +5 -0
  80. package/lib/components/core/dimmer/dimmer.component.d.ts +24 -0
  81. package/lib/components/core/dropdown/dropdown/dropdown.component.d.ts +43 -0
  82. package/lib/components/core/dropdown/dropdown-item/dropdown-item.component.d.ts +44 -0
  83. package/lib/components/core/forward/forward.directive.d.ts +14 -0
  84. package/lib/components/core/link/link.component.d.ts +34 -0
  85. package/lib/components/core/list/list/list.component.d.ts +10 -0
  86. package/lib/components/core/list/list-item/list-item.component.d.ts +24 -0
  87. package/lib/components/core/modal/modal.component.d.ts +59 -0
  88. package/lib/components/core/notifications/notifications.component.d.ts +30 -0
  89. package/lib/components/core/pagination/pagination.component.d.ts +31 -0
  90. package/lib/components/core/popover/popover.directive.d.ts +97 -0
  91. package/lib/components/core/progress-bar/progress-bar.component.d.ts +28 -0
  92. package/lib/components/core/progress-button/progress-button.component.d.ts +22 -0
  93. package/lib/components/core/spinner/spinner.component.d.ts +21 -0
  94. package/lib/components/core/tab/tab-container/tab-container.component.d.ts +28 -0
  95. package/lib/components/core/tab/tab-item/tab-item.component.d.ts +34 -0
  96. package/lib/components/core/table/table.component.d.ts +54 -0
  97. package/lib/components/core/tooltip/tooltip.directive.d.ts +80 -0
  98. package/lib/components/form/checkbox/checkbox.component.d.ts +30 -0
  99. package/lib/components/form/input/input.component.d.ts +94 -0
  100. package/lib/components/form/password-input/password-input.component.d.ts +54 -0
  101. package/lib/components/form/radio-button/radio-button.component.d.ts +29 -0
  102. package/lib/components/form/select/select.component.d.ts +30 -0
  103. package/lib/components/form/textarea/textarea.component.d.ts +24 -0
  104. package/lib/components/form/upload-drag-drop/upload-drag-drop.component.d.ts +53 -0
  105. package/lib/components/form/upload-file-list/upload-file-list.component.d.ts +57 -0
  106. package/lib/components/navigation/back-button/back-button.component.d.ts +47 -0
  107. package/lib/components/navigation/back-to-top/back-to-top.component.d.ts +27 -0
  108. package/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +30 -0
  109. package/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.d.ts +22 -0
  110. package/lib/components/navigation/header/header.component.d.ts +28 -0
  111. package/lib/components/utils/icon/icon.component.d.ts +40 -0
  112. package/lib/components/utils/not-found-page/not-found-page.component.d.ts +5 -0
  113. package/lib/design-angular-kit.module.d.ts +4 -24
  114. package/lib/interfaces/core.d.ts +36 -0
  115. package/lib/interfaces/form.d.ts +61 -0
  116. package/lib/interfaces/icon.d.ts +3 -0
  117. package/lib/modules/components.module.d.ts +58 -0
  118. package/lib/{form-input → pipes}/mark-matching-text.pipe.d.ts +0 -0
  119. package/lib/services/notifications/notifications.service.d.ts +63 -0
  120. package/lib/utils/boolean-input.d.ts +11 -0
  121. package/lib/utils/file-utils.d.ts +27 -0
  122. package/lib/utils/regex.d.ts +25 -0
  123. package/lib/validators/it-validators.d.ts +58 -0
  124. package/package.json +20 -13
  125. package/public_api.d.ts +54 -35
  126. package/esm2020/lib/badge/badge.directive.mjs +0 -83
  127. package/esm2020/lib/breadcrumb/breadcrumb-item.component.mjs +0 -66
  128. package/esm2020/lib/breadcrumb/breadcrumb.component.mjs +0 -89
  129. package/esm2020/lib/button/button.directive.mjs +0 -185
  130. package/esm2020/lib/button/button.module.mjs +0 -18
  131. package/esm2020/lib/checkbox/checkbox.component.mjs +0 -138
  132. package/esm2020/lib/collapse/collapse-group.component.mjs +0 -57
  133. package/esm2020/lib/collapse/collapse-item.component.mjs +0 -79
  134. package/esm2020/lib/collapse/collapse.config.mjs +0 -12
  135. package/esm2020/lib/collapse/collapse.directive.mjs +0 -55
  136. package/esm2020/lib/collapse/collapse.module.mjs +0 -22
  137. package/esm2020/lib/dropdown/dropdown-divider.component.mjs +0 -11
  138. package/esm2020/lib/dropdown/dropdown-item.component.mjs +0 -97
  139. package/esm2020/lib/dropdown/dropdown.component.mjs +0 -143
  140. package/esm2020/lib/dropdown/dropdown.config.mjs +0 -12
  141. package/esm2020/lib/dropdown/dropdown.directive.mjs +0 -156
  142. package/esm2020/lib/dropdown/dropdown.module.mjs +0 -25
  143. package/esm2020/lib/enums/icons.enum.mjs +0 -27
  144. package/esm2020/lib/form-input/form-input-password.utils.mjs +0 -154
  145. package/esm2020/lib/form-input/form-input.component.mjs +0 -495
  146. package/esm2020/lib/form-input/it-prefix.directive.mjs +0 -13
  147. package/esm2020/lib/form-input/it-suffix.directive.mjs +0 -13
  148. package/esm2020/lib/form-input/it-text-prefix.directive.mjs +0 -13
  149. package/esm2020/lib/form-input/it-text-suffix.directive.mjs +0 -13
  150. package/esm2020/lib/form-input/mark-matching-text.pipe.mjs +0 -36
  151. package/esm2020/lib/icon/icon.component.mjs +0 -87
  152. package/esm2020/lib/icon/icon.module.mjs +0 -18
  153. package/esm2020/lib/models/Alignment.mjs +0 -15
  154. package/esm2020/lib/models/ButtonSize.mjs +0 -15
  155. package/esm2020/lib/models/InputType.mjs +0 -44
  156. package/esm2020/lib/models/ThemeColor.mjs +0 -30
  157. package/esm2020/lib/popover/popover.config.mjs +0 -17
  158. package/esm2020/lib/popover/popover.directive.mjs +0 -33
  159. package/esm2020/lib/popover/popover.module.mjs +0 -19
  160. package/esm2020/lib/progress-bar/progress-bar.component.mjs +0 -98
  161. package/esm2020/lib/radio/radio.component.mjs +0 -287
  162. package/esm2020/lib/radio/unique-selection-dispatcher.mjs +0 -55
  163. package/esm2020/lib/tabs/tab-group.component.mjs +0 -177
  164. package/esm2020/lib/tabs/tab.component.mjs +0 -73
  165. package/esm2020/lib/tabs/tabs.module.mjs +0 -20
  166. package/esm2020/lib/toggle/toggle.component.mjs +0 -86
  167. package/esm2020/lib/tooltip/tooltip.config.mjs +0 -17
  168. package/esm2020/lib/tooltip/tooltip.directive.mjs +0 -43
  169. package/esm2020/lib/tooltip/tooltip.module.mjs +0 -19
  170. package/esm2020/lib/util/focus-mouse.directive.mjs +0 -32
  171. package/esm2020/lib/util/util.mjs +0 -12
  172. package/esm2020/lib/util/utils.module.mjs +0 -16
  173. package/lib/badge/badge.directive.d.ts +0 -33
  174. package/lib/breadcrumb/breadcrumb-item.component.d.ts +0 -33
  175. package/lib/breadcrumb/breadcrumb.component.d.ts +0 -33
  176. package/lib/button/button.directive.d.ts +0 -72
  177. package/lib/button/button.module.d.ts +0 -8
  178. package/lib/checkbox/checkbox.component.d.ts +0 -61
  179. package/lib/collapse/collapse-group.component.d.ts +0 -16
  180. package/lib/collapse/collapse-item.component.d.ts +0 -46
  181. package/lib/collapse/collapse.config.d.ts +0 -6
  182. package/lib/collapse/collapse.directive.d.ts +0 -25
  183. package/lib/collapse/collapse.module.d.ts +0 -12
  184. package/lib/dropdown/dropdown-divider.component.d.ts +0 -5
  185. package/lib/dropdown/dropdown-item.component.d.ts +0 -56
  186. package/lib/dropdown/dropdown.component.d.ts +0 -65
  187. package/lib/dropdown/dropdown.config.d.ts +0 -6
  188. package/lib/dropdown/dropdown.directive.d.ts +0 -77
  189. package/lib/dropdown/dropdown.module.d.ts +0 -15
  190. package/lib/enums/icons.enum.d.ts +0 -23
  191. package/lib/form-input/form-input-password.utils.d.ts +0 -45
  192. package/lib/form-input/form-input.component.d.ts +0 -283
  193. package/lib/form-input/it-prefix.directive.d.ts +0 -5
  194. package/lib/form-input/it-suffix.directive.d.ts +0 -5
  195. package/lib/form-input/it-text-prefix.directive.d.ts +0 -5
  196. package/lib/form-input/it-text-suffix.directive.d.ts +0 -5
  197. package/lib/icon/icon.component.d.ts +0 -34
  198. package/lib/icon/icon.module.d.ts +0 -8
  199. package/lib/models/Alignment.d.ts +0 -12
  200. package/lib/models/ButtonSize.d.ts +0 -11
  201. package/lib/models/InputType.d.ts +0 -36
  202. package/lib/models/ThemeColor.d.ts +0 -21
  203. package/lib/popover/popover.config.d.ts +0 -11
  204. package/lib/popover/popover.directive.d.ts +0 -20
  205. package/lib/popover/popover.module.d.ts +0 -9
  206. package/lib/progress-bar/progress-bar.component.d.ts +0 -55
  207. package/lib/radio/radio.component.d.ts +0 -116
  208. package/lib/radio/unique-selection-dispatcher.d.ts +0 -36
  209. package/lib/tabs/tab-group.component.d.ts +0 -71
  210. package/lib/tabs/tab.component.d.ts +0 -44
  211. package/lib/tabs/tabs.module.d.ts +0 -10
  212. package/lib/toggle/toggle.component.d.ts +0 -46
  213. package/lib/tooltip/tooltip.config.d.ts +0 -11
  214. package/lib/tooltip/tooltip.directive.d.ts +0 -27
  215. package/lib/tooltip/tooltip.module.d.ts +0 -9
  216. package/lib/util/focus-mouse.directive.d.ts +0 -13
  217. package/lib/util/util.d.ts +0 -5
  218. package/lib/util/utils.module.d.ts +0 -7
@@ -0,0 +1,84 @@
1
+ import { ControlValueAccessor, FormControl, NgControl, ValidatorFn } from '@angular/forms';
2
+ import { DoCheck, ElementRef, OnInit, Renderer2 } from '@angular/core';
3
+ import { AbstractComponent } from './abstract.component';
4
+ import { BooleanInput } from '../utils/boolean-input';
5
+ import { Observable } from 'rxjs';
6
+ import { TranslateService } from '@ngx-translate/core';
7
+ import * as i0 from "@angular/core";
8
+ export declare class AbstractFormComponent<T = any> extends AbstractComponent implements OnInit, ControlValueAccessor, DoCheck {
9
+ protected readonly _ngControl: NgControl;
10
+ protected readonly _translateService: TranslateService;
11
+ protected readonly _renderer: Renderer2;
12
+ protected readonly _elementRef: ElementRef;
13
+ /**
14
+ * The label of form control
15
+ */
16
+ label?: string;
17
+ /**
18
+ * Validation color display mode (validation triggered if field is touched or not pristine)
19
+ * - <b>true</b>: Always show the validation color
20
+ * - <b>false</b>: Never show validation color
21
+ * - <b>only-valid</b>: Show only valid validation color
22
+ * - <b>only-invalid</b>: Show only invalid validation color
23
+ * @default <b>only-invalid</b>: Show only invalid validation color
24
+ */
25
+ validationMode: BooleanInput | 'only-valid' | 'only-invalid';
26
+ /**
27
+ * Internal form control
28
+ */
29
+ control: FormControl;
30
+ constructor(_ngControl: NgControl, _translateService: TranslateService, _renderer: Renderer2, _elementRef: ElementRef);
31
+ /**
32
+ * Check if field is invalid (Validation failed)
33
+ */
34
+ get isInvalid(): boolean | undefined;
35
+ /**
36
+ * Check if field is valid (Validation successful)
37
+ */
38
+ get isValid(): boolean | undefined;
39
+ /**
40
+ * Return the invalid message string from TranslateService
41
+ */
42
+ get invalidMessage(): Observable<string>;
43
+ ngOnInit(): void;
44
+ onChange: (_: T) => void;
45
+ onTouched: () => void;
46
+ registerOnChange(fn: any): void;
47
+ registerOnTouched(fn: any): void;
48
+ setDisabledState(isDisabled: boolean): void;
49
+ writeValue(value: T): void;
50
+ /**
51
+ * Mark the control as touched
52
+ */
53
+ markAsTouched(): void;
54
+ /**
55
+ * Fired to check if form control is touched
56
+ */
57
+ ngDoCheck(): void;
58
+ /**
59
+ * Add the validators in control and parent control
60
+ * @param validators the validators
61
+ * @protected
62
+ */
63
+ protected addValidators(validators: ValidatorFn | ValidatorFn[]): void;
64
+ /**
65
+ * Reports whether the control with the given path has the error specified. <br/>
66
+ * If the control is not present, false is returned.
67
+ * @param errorCode The code of the error to check
68
+ * @param path A list of control names that designates how to move from the current control
69
+ * to the control that should be queried for errors.
70
+ * @returns whether the given error is present in the control at the given path.
71
+ */
72
+ hasError(errorCode: string, path?: Array<string | number> | string): boolean;
73
+ /**
74
+ * Reports error data for the control with the given path.
75
+ * @param errorCode The code of the error to check
76
+ * @param path A list of control names that designates how to move from the current control
77
+ * to the control that should be queried for errors.
78
+ * @returns error data for that particular error. If the control or error is not present,
79
+ * null is returned.
80
+ */
81
+ getError(errorCode: string, path?: Array<string | number> | string): any;
82
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFormComponent<any>, [{ optional: true; self: true; }, null, null, null]>;
83
+ static ɵcmp: i0.ɵɵComponentDeclaration<AbstractFormComponent<any>, "ng-component", never, { "label": "label"; "validationMode": "validationMode"; }, {}, never, never, false, never>;
84
+ }
@@ -0,0 +1,14 @@
1
+ import { AfterViewInit, ElementRef, Renderer2 } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class AbstractComponent implements AfterViewInit {
4
+ protected readonly _renderer: Renderer2;
5
+ protected readonly _elementRef: ElementRef;
6
+ /**
7
+ * The element ID
8
+ */
9
+ id?: string;
10
+ constructor(_renderer: Renderer2, _elementRef: ElementRef);
11
+ ngAfterViewInit(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<AbstractComponent, "ng-component", never, { "id": "id"; }, {}, never, never, false, never>;
14
+ }
@@ -0,0 +1,16 @@
1
+ import { AbstractComponent } from "../../../abstracts/abstract.component";
2
+ import { BooleanInput } from "../../../utils/boolean-input";
3
+ import * as i0 from "@angular/core";
4
+ export declare class AccordionComponent extends AbstractComponent {
5
+ /**
6
+ * Accordion Title
7
+ */
8
+ title: string;
9
+ /**
10
+ * True to set accordion opened by default
11
+ */
12
+ opened?: BooleanInput;
13
+ ngAfterViewInit(): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<AccordionComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<AccordionComponent, "it-accordion[id][title]", never, { "title": "title"; "opened": "opened"; }, {}, never, ["*"], false, never>;
16
+ }
@@ -0,0 +1,17 @@
1
+ import { AlertColor } from '../../../interfaces/core';
2
+ import { BooleanInput } from '../../../utils/boolean-input';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AlertComponent {
5
+ /**
6
+ * The alert color
7
+ * @default info
8
+ */
9
+ color: AlertColor;
10
+ /**
11
+ * Inserts the close button
12
+ */
13
+ dismissible?: BooleanInput;
14
+ get isDismissible(): boolean;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "it-alert", never, { "color": "color"; "dismissible": "dismissible"; }, {}, never, ["[heading]", "*"], false, never>;
17
+ }
@@ -0,0 +1,16 @@
1
+ import { BadgeColor } from '../../../interfaces/core';
2
+ import { BooleanInput } from '../../../utils/boolean-input';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BadgeDirective {
5
+ /**
6
+ * Define the badge color
7
+ */
8
+ color?: BadgeColor;
9
+ /**
10
+ * Show rounded badge
11
+ */
12
+ rounded?: BooleanInput;
13
+ get badgeClass(): string;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<BadgeDirective, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BadgeDirective, "[itBadge]", ["itBadge"], { "color": "itBadge"; "rounded": "rounded"; }, {}, never, never, false, never>;
16
+ }
@@ -0,0 +1,38 @@
1
+ import { QueryList } from '@angular/core';
2
+ import { ButtonColor, ButtonSize } from '../../../interfaces/core';
3
+ import { IconComponent } from '../../utils/icon/icon.component';
4
+ import { ProgressBarComponent } from '../progress-bar/progress-bar.component';
5
+ import { BooleanInput } from '../../../utils/boolean-input';
6
+ import * as i0 from "@angular/core";
7
+ export declare class ButtonDirective {
8
+ /**
9
+ * Button color
10
+ */
11
+ color?: ButtonColor;
12
+ /**
13
+ * Button size
14
+ */
15
+ size?: ButtonSize;
16
+ /**
17
+ * Indicates whether the button occupies all the width available to it.
18
+ */
19
+ block?: ButtonSize;
20
+ /**
21
+ * If button is disabled
22
+ */
23
+ disabled?: BooleanInput;
24
+ /**
25
+ * The icon children
26
+ */
27
+ icons?: QueryList<IconComponent>;
28
+ /**
29
+ * The progress bar children
30
+ */
31
+ progressBar?: ProgressBarComponent;
32
+ private isFocus;
33
+ onFocus(): void;
34
+ onBlur(): void;
35
+ get hostClasses(): string;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonDirective, never>;
37
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonDirective, "[itButton]", ["itButton"], { "color": "itButton"; "size": "size"; "block": "block"; "disabled": "disabled"; }, {}, ["icons", "progressBar"], never, false, never>;
38
+ }
@@ -0,0 +1,47 @@
1
+ import { CalloutAppearance, CalloutColor } from "../../../interfaces/core";
2
+ import { IconName } from '../../../interfaces/icon';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CalloutComponent {
5
+ /**
6
+ * Callout label
7
+ */
8
+ set label(value: string | undefined);
9
+ get label(): string | undefined;
10
+ private _label;
11
+ /**
12
+ * Callout hiddenLabel
13
+ */
14
+ set hiddenLabel(value: string | undefined);
15
+ get hiddenLabel(): string | undefined;
16
+ private _hiddenLabel;
17
+ /**
18
+ * Callout color
19
+ * - <b>success</b>
20
+ * - <b>danger</b>
21
+ * - <b>warning</b>
22
+ * - <b>important</b>
23
+ * - <b>note</b>
24
+ */
25
+ set color(value: CalloutColor | undefined);
26
+ get color(): CalloutColor | undefined;
27
+ private _color;
28
+ /**
29
+ * Callout appearance
30
+ * - <b>default</b>
31
+ * - <b>highlight</b>: Callout version with border only on the left side
32
+ * - <b>more</b>: It looks radically different from the other styles available and is suitable for more extensive texts
33
+ * @default default
34
+ */
35
+ set appearance(value: CalloutAppearance);
36
+ get appearance(): CalloutAppearance;
37
+ private _appearance;
38
+ /**
39
+ * Custom icon
40
+ */
41
+ set icon(value: IconName | undefined);
42
+ get icon(): IconName | undefined;
43
+ private _icon;
44
+ get iconName(): IconName;
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<CalloutComponent, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<CalloutComponent, "it-callout", never, { "label": "label"; "hiddenLabel": "hiddenLabel"; "color": "color"; "appearance": "appearance"; "icon": "icon"; }, {}, never, ["[bigText]", "*"], false, never>;
47
+ }
@@ -0,0 +1,41 @@
1
+ import { AbstractComponent } from '../../../abstracts/abstract.component';
2
+ import { BooleanInput } from '../../../utils/boolean-input';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CardComponent extends AbstractComponent {
5
+ /**
6
+ * It serves to space the cards in their mobile version.
7
+ * @default true
8
+ */
9
+ space: BooleanInput;
10
+ /**
11
+ * To create cards with short or "preview" content
12
+ */
13
+ teaser?: BooleanInput;
14
+ /**
15
+ * Card with image
16
+ */
17
+ hasImage?: BooleanInput;
18
+ /**
19
+ * To add rounding effects
20
+ */
21
+ rounded?: BooleanInput;
22
+ /**
23
+ * To add shadow effects
24
+ */
25
+ shadow?: BooleanInput;
26
+ /**
27
+ * Custom card class
28
+ */
29
+ cardClass: string;
30
+ /**
31
+ * Custom card body class
32
+ */
33
+ bodyClass: string;
34
+ get isSpace(): boolean;
35
+ get isTeaser(): boolean;
36
+ get isHasImage(): boolean;
37
+ get isRounded(): boolean;
38
+ get isShadow(): boolean;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<CardComponent, never>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "it-card", never, { "space": "space"; "teaser": "teaser"; "hasImage": "hasImage"; "rounded": "rounded"; "shadow": "shadow"; "cardClass": "cardClass"; "bodyClass": "bodyClass"; }, {}, never, ["[beforeBody]", "*"], false, never>;
41
+ }
@@ -0,0 +1,46 @@
1
+ import { AfterViewInit, QueryList } from '@angular/core';
2
+ import { CarouselType } from '../../../../interfaces/core';
3
+ import { BooleanInput } from '../../../../utils/boolean-input';
4
+ import { CarouselItemComponent } from '../carousel-item/carousel-item.component';
5
+ import * as i0 from "@angular/core";
6
+ export declare class CarouselComponent implements AfterViewInit {
7
+ /**
8
+ * The callout title
9
+ */
10
+ title?: string;
11
+ /**
12
+ * The carousel type
13
+ * @default default
14
+ */
15
+ type: CarouselType;
16
+ /**
17
+ * Custom class in splide__track element
18
+ */
19
+ trackClass: string;
20
+ /**
21
+ * True for full screen (landscape) viewing
22
+ */
23
+ fullCarousel?: BooleanInput;
24
+ /**
25
+ * To indicate that the contained image is of a large type
26
+ */
27
+ bigImg?: BooleanInput;
28
+ /**
29
+ * Card line style
30
+ */
31
+ lined?: BooleanInput;
32
+ items?: QueryList<CarouselItemComponent>;
33
+ private carouselDiv;
34
+ private carousel?;
35
+ get typeClass(): string;
36
+ get isFullCarousel(): boolean;
37
+ get isBigImg(): boolean;
38
+ get isLined(): boolean;
39
+ ngAfterViewInit(): void;
40
+ /**
41
+ * Removes CarouselBI features
42
+ */
43
+ dispose(): void;
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<CarouselComponent, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<CarouselComponent, "it-carousel", ["itCarousel"], { "title": "title"; "type": "type"; "trackClass": "trackClass"; "fullCarousel": "fullCarousel"; "bigImg": "bigImg"; "lined": "lined"; }, {}, ["items"], never, false, never>;
46
+ }
@@ -0,0 +1,10 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CarouselItemComponent {
4
+ /**
5
+ * The content of item
6
+ */
7
+ htmlContent: TemplateRef<any>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<CarouselItemComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<CarouselItemComponent, "it-carousel-item", never, {}, {}, never, ["*"], false, never>;
10
+ }
@@ -0,0 +1,62 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { IconName } from '../../../interfaces/icon';
3
+ import * as i0 from "@angular/core";
4
+ export declare type ChipColor = 'primary' | 'secondary' | 'success' | 'danger' | 'warning';
5
+ export declare class ChipComponent {
6
+ /**
7
+ * Indica la label
8
+ */
9
+ set label(value: string);
10
+ get label(): string;
11
+ private _label;
12
+ /**
13
+ * Indica se mostrate il pulante di chisura
14
+ */
15
+ set showCloseButton(value: boolean);
16
+ get showCloseButton(): boolean;
17
+ private _showCloseButton;
18
+ /**
19
+ * Indica il size
20
+ */
21
+ set size(value: '' | 'lg');
22
+ get size(): '' | 'lg';
23
+ private _size;
24
+ /**
25
+ * Indica il colore della chip
26
+ */
27
+ set color(value: ChipColor | undefined);
28
+ get color(): ChipColor | undefined;
29
+ private _color;
30
+ /**
31
+ * Indica se la chip è disabilitata
32
+ */
33
+ set disabled(value: boolean);
34
+ get disabled(): boolean;
35
+ private _disabled;
36
+ /**
37
+ * Indica il nome dell'icona, se valorizzata viene mostrata
38
+ */
39
+ set icon(value: IconName | undefined);
40
+ get icon(): IconName | undefined;
41
+ private _icon;
42
+ /**
43
+ * Indica l'url dell'avatar, se valorizzata viene mostrata
44
+ */
45
+ set avatar(value: string | undefined);
46
+ get avatar(): string | undefined;
47
+ private _avatar;
48
+ /**
49
+ * Indica il valore da aggiungere al parametro alt, di default ''
50
+ */
51
+ set altAvatar(value: string);
52
+ get altAvatar(): string;
53
+ private _altAvatar;
54
+ /**
55
+ * Evento emesso al click sul bottone di chiusura
56
+ */
57
+ close: EventEmitter<any>;
58
+ iconClose: IconName;
59
+ clickToClose(): void;
60
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChipComponent, never>;
61
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChipComponent, "it-chip", never, { "label": "label"; "showCloseButton": "showCloseButton"; "size": "size"; "color": "color"; "disabled": "disabled"; "icon": "icon"; "avatar": "avatar"; "altAvatar": "altAvatar"; }, { "close": "close"; }, never, never, false, never>;
62
+ }
@@ -0,0 +1,59 @@
1
+ import { ElementRef, EventEmitter, Renderer2 } from '@angular/core';
2
+ import { AbstractComponent } from '../../../abstracts/abstract.component';
3
+ import { BooleanInput } from '../../../utils/boolean-input';
4
+ import * as i0 from "@angular/core";
5
+ export declare class CollapseComponent extends AbstractComponent {
6
+ readonly _renderer: Renderer2;
7
+ readonly _elementRef: ElementRef;
8
+ /**
9
+ * Enable multiple collapse
10
+ */
11
+ multi?: BooleanInput;
12
+ /**
13
+ * Custom class
14
+ */
15
+ class: string;
16
+ /**
17
+ * This event fires immediately when the show method is called.
18
+ */
19
+ onShow: EventEmitter<Event>;
20
+ /**
21
+ * This event is triggered when the tooltip has been made visible to the user (it will wait for the CSS transitions to complete).
22
+ */
23
+ onShown: EventEmitter<Event>;
24
+ /**
25
+ * This event fires immediately when the hide method is called.
26
+ */
27
+ onHide: EventEmitter<Event>;
28
+ /**
29
+ * This event is raised when the tooltip has finished being hidden from the user (it will wait for the CSS transitions to complete).
30
+ */
31
+ onHidden: EventEmitter<Event>;
32
+ private readonly element;
33
+ private collapse?;
34
+ private collapseDiv;
35
+ get isMulti(): boolean;
36
+ constructor(_renderer: Renderer2, _elementRef: ElementRef);
37
+ ngAfterViewInit(): void;
38
+ /**
39
+ * Shows a resealable item
40
+ * NOTE: Returns to the caller before the collapsable element has actually been shown (onShown event).
41
+ */
42
+ show(): void;
43
+ /**
44
+ * Hides a resealable item
45
+ * NOTE: Returns to the caller before the collapsable element has actually been hidden (onHidden Event)
46
+ */
47
+ hide(): void;
48
+ /**
49
+ * Toggle a collapsible item to show or hide it.
50
+ * NOTE: Returns to the caller before the collapsable element has actually been shown or hidden (onShown and onHidden events)
51
+ */
52
+ toggle(): void;
53
+ /**
54
+ * Eliminates the possibility of an item being resealable
55
+ */
56
+ dispose(): void;
57
+ static ɵfac: i0.ɵɵFactoryDeclaration<CollapseComponent, never>;
58
+ static ɵcmp: i0.ɵɵComponentDeclaration<CollapseComponent, "it-collapse[id]", ["itCollapse"], { "multi": "multi"; "class": "class"; }, { "onShow": "onShow"; "onShown": "onShown"; "onHide": "onHide"; "onHidden": "onHidden"; }, never, ["*"], false, never>;
59
+ }
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class DimmerButtonsComponent {
3
+ /**
4
+ * Indica se abbiamo 1 solo bottone
5
+ * @default false
6
+ */
7
+ set hasOneButton(value: boolean);
8
+ get hasOneButton(): boolean;
9
+ private _hasOneButton;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<DimmerButtonsComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<DimmerButtonsComponent, "it-dimmer-buttons", never, { "hasOneButton": "hasOneButton"; }, {}, never, ["*"], false, never>;
12
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class DimmerIconComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<DimmerIconComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<DimmerIconComponent, "it-dimmer-icon", never, {}, {}, never, ["*"], false, never>;
5
+ }
@@ -0,0 +1,24 @@
1
+ import { ElementRef, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare type DimmerColor = '' | 'dimmer-primary';
4
+ export declare class DimmerComponent implements OnInit {
5
+ private elementRef;
6
+ /**
7
+ * Dimmer status
8
+ * @default false
9
+ */
10
+ set active(value: boolean);
11
+ get active(): boolean;
12
+ private _active;
13
+ /**
14
+ * Colore del dimmer
15
+ * @default ''
16
+ */
17
+ set color(value: DimmerColor);
18
+ get color(): DimmerColor;
19
+ private _color;
20
+ constructor(elementRef: ElementRef);
21
+ ngOnInit(): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<DimmerComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<DimmerComponent, "it-dimmer", never, { "active": "active"; "color": "color"; }, {}, never, ["*"], false, never>;
24
+ }
@@ -0,0 +1,43 @@
1
+ import { OnChanges, QueryList, SimpleChanges } from '@angular/core';
2
+ import { AbstractComponent } from '../../../../abstracts/abstract.component';
3
+ import { ButtonColor, DropdownDirection } from '../../../../interfaces/core';
4
+ import { BooleanInput } from '../../../../utils/boolean-input';
5
+ import { DropdownItemComponent } from '../dropdown-item/dropdown-item.component';
6
+ import * as i0 from "@angular/core";
7
+ export declare class DropdownComponent extends AbstractComponent implements OnChanges {
8
+ /**
9
+ * Button color
10
+ */
11
+ color?: ButtonColor;
12
+ /**
13
+ * To open menu items to:
14
+ * - <strong>dropup</strong>: up
15
+ * - <strong>dropend</strong>: right
16
+ * - <strong>dropstart</strong>: left
17
+ */
18
+ direction?: DropdownDirection;
19
+ /**
20
+ * To get a dropdown menu as wide as the element containing the dropdown button
21
+ */
22
+ fullWidth?: BooleanInput;
23
+ /**
24
+ * Dark menu style
25
+ */
26
+ dark?: BooleanInput;
27
+ /**
28
+ * The dropdown items
29
+ */
30
+ items?: QueryList<DropdownItemComponent>;
31
+ get buttonClass(): string;
32
+ get isFullWidth(): boolean;
33
+ get isDark(): boolean;
34
+ ngOnChanges(changes: SimpleChanges): void;
35
+ ngAfterViewInit(): void;
36
+ /**
37
+ * Set child items dark mode
38
+ * @private
39
+ */
40
+ private setDarkItems;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownComponent, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "it-dropdown[id]", never, { "color": "color"; "direction": "direction"; "fullWidth": "fullWidth"; "dark": "dark"; }, {}, ["items"], ["[button]", "[listHeading]", "[list]"], false, never>;
43
+ }
@@ -0,0 +1,44 @@
1
+ import { ChangeDetectorRef, ElementRef, Renderer2 } from '@angular/core';
2
+ import { BooleanInput } from '../../../../utils/boolean-input';
3
+ import { IconName } from '../../../../interfaces/icon';
4
+ import { LinkComponent } from '../../link/link.component';
5
+ import * as i0 from "@angular/core";
6
+ export declare class DropdownItemComponent extends LinkComponent {
7
+ protected readonly _renderer: Renderer2;
8
+ protected readonly _elementRef: ElementRef;
9
+ private readonly _changeDetectorRef;
10
+ /**
11
+ * Show divider
12
+ */
13
+ divider?: BooleanInput;
14
+ /**
15
+ * Active item
16
+ */
17
+ active?: BooleanInput;
18
+ /**
19
+ * To increase the size of links
20
+ */
21
+ large?: BooleanInput;
22
+ /**
23
+ * The name of icon to show
24
+ */
25
+ iconName?: IconName;
26
+ /**
27
+ * The icon position
28
+ * @default right
29
+ */
30
+ iconPosition: 'left' | 'right';
31
+ /**
32
+ * Change icon color if menu is dark
33
+ * @default false
34
+ */
35
+ isDark: boolean;
36
+ get isDivider(): boolean;
37
+ get isActive(): boolean;
38
+ get isLarge(): boolean;
39
+ get linkClass(): string;
40
+ constructor(_renderer: Renderer2, _elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef);
41
+ setDark(dark: boolean): void;
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownItemComponent, never>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownItemComponent, "it-dropdown-item", never, { "divider": "divider"; "active": "active"; "large": "large"; "iconName": "iconName"; "iconPosition": "iconPosition"; }, {}, never, ["*"], false, never>;
44
+ }
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ForwardDirective {
3
+ private document?;
4
+ /**
5
+ * Indica, se HTMLElement, l'elemento a cui navigare, o se stringa, il selettore che selezionerà l'elemento a cui navigare.
6
+ */
7
+ set itForward(value: HTMLElement | string | undefined);
8
+ get itForward(): HTMLElement | string | undefined;
9
+ private _itForward;
10
+ constructor(document?: Document | undefined);
11
+ onClick(event: any): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ForwardDirective, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ForwardDirective, "[itForward]", never, { "itForward": "itForward"; }, {}, never, never, false, never>;
14
+ }
@@ -0,0 +1,34 @@
1
+ import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
2
+ import { BooleanInput } from '../../../utils/boolean-input';
3
+ import * as i0 from "@angular/core";
4
+ export declare class LinkComponent implements AfterViewInit {
5
+ protected readonly _renderer: Renderer2;
6
+ protected readonly _elementRef: ElementRef;
7
+ /**
8
+ * The router link action
9
+ *
10
+ * Commands to pass to Router#createUrlTree.
11
+ * - array: commands to pass to Router#createUrlTree.
12
+ * - string: shorthand for array of commands with just the string, i.e. ['/route']
13
+ * - null|undefined: Disables the link by removing the href
14
+ */
15
+ href?: any[] | string | null;
16
+ /**
17
+ * Is an external link (false to not use Angular router link)
18
+ */
19
+ externalLink?: BooleanInput;
20
+ /**
21
+ * Is disabled link
22
+ */
23
+ disabled?: BooleanInput;
24
+ /**
25
+ * Custom class
26
+ */
27
+ class: string;
28
+ get isExternalLink(): boolean;
29
+ get isDisabled(): boolean;
30
+ constructor(_renderer: Renderer2, _elementRef: ElementRef);
31
+ ngAfterViewInit(): void;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<LinkComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<LinkComponent, "it-link", never, { "href": "href"; "externalLink": "externalLink"; "disabled": "disabled"; "class": "class"; }, {}, never, ["*"], false, never>;
34
+ }
@@ -0,0 +1,10 @@
1
+ import { BooleanInput } from '../../../../utils/boolean-input';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ListComponent {
4
+ /**
5
+ * Add 'link-list' class for navigation menù
6
+ */
7
+ linkList?: BooleanInput;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent, "it-list", never, { "linkList": "linkList"; }, {}, never, ["*"], false, never>;
10
+ }