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,54 @@
1
+ import { AbstractFormComponent } from '../../../abstracts/abstract-form-component';
2
+ import { Observable } from 'rxjs';
3
+ import { BooleanInput } from '../../../utils/boolean-input';
4
+ import * as i0 from "@angular/core";
5
+ export declare class PasswordInputComponent extends AbstractFormComponent<string> {
6
+ /**
7
+ * The password minimum length
8
+ * @default 10
9
+ */
10
+ minLength: number;
11
+ /**
12
+ * The password must contain at least one number
13
+ * @default true
14
+ */
15
+ useNumber: boolean;
16
+ /**
17
+ * The password must contain at least one uppercase character
18
+ * @default true
19
+ */
20
+ useCapitalCase: boolean;
21
+ /**
22
+ * The password must contain at least one lowercase character
23
+ * @default true
24
+ */
25
+ useSmallCase: boolean;
26
+ /**
27
+ * The password must contain at least one special character
28
+ * @default true
29
+ */
30
+ useSpecialCharacters: boolean;
31
+ /**
32
+ * The input placeholder
33
+ */
34
+ placeholder: string;
35
+ /**
36
+ * The input description
37
+ */
38
+ description?: string;
39
+ /**
40
+ * Enable to show the strength meter
41
+ */
42
+ showStrengthMeter?: BooleanInput;
43
+ inputPasswordBs?: any;
44
+ private inputElement?;
45
+ ngOnInit(): void;
46
+ ngAfterViewInit(): void;
47
+ get isStrengthMeter(): boolean;
48
+ /**
49
+ * Return the invalid message string from TranslateService
50
+ */
51
+ get invalidMessage(): Observable<string>;
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<PasswordInputComponent, never>;
53
+ 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>;
54
+ }
@@ -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][label][value]", never, { "value": "value"; "inline": "inline"; "group": "group"; "checked": "checked"; }, {}, never, ["*", "[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,53 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { AbstractComponent } from '../../../abstracts/abstract.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class UploadDragDropComponent extends AbstractComponent {
5
+ /**
6
+ * The accepted file type to upload <br>
7
+ * 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
8
+ * @example application/pdf,image/png
9
+ * @default *
10
+ */
11
+ accept: string;
12
+ /**
13
+ * Fired when file start to upload
14
+ */
15
+ fileStartUpload: EventEmitter<File>;
16
+ isDragover: boolean;
17
+ isLoading: boolean;
18
+ isSuccess: boolean;
19
+ donut?: any;
20
+ private donutElement?;
21
+ filename?: string;
22
+ extension?: string;
23
+ fileSize?: string;
24
+ ngAfterViewInit(): void;
25
+ onDragOver(evt: DragEvent): void;
26
+ onDragLeave(evt: DragEvent): void;
27
+ onDrop(evt: DragEvent): void;
28
+ /**
29
+ * On load file from input
30
+ * @param event
31
+ */
32
+ onLoadFile(event: Event): void;
33
+ /**
34
+ * Start the upload file
35
+ * @param file
36
+ */
37
+ start(file: File): void;
38
+ /**
39
+ * Percentage of upload
40
+ * @param value the percentage
41
+ */
42
+ progress(value: number): void;
43
+ /**
44
+ * Upload success
45
+ */
46
+ success(): void;
47
+ /**
48
+ * Reset file uploader
49
+ */
50
+ reset(): void;
51
+ static ɵfac: i0.ɵɵFactoryDeclaration<UploadDragDropComponent, never>;
52
+ static ɵcmp: i0.ɵɵComponentDeclaration<UploadDragDropComponent, "it-upload-drag-drop[id]", ["itUploadDragDrop"], { "accept": "accept"; }, { "fileStartUpload": "fileStartUpload"; }, never, never, false, never>;
53
+ }
@@ -0,0 +1,57 @@
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
13
+ * @default *
14
+ */
15
+ accept: string;
16
+ /**
17
+ * If upload multiple files
18
+ */
19
+ multiple: BooleanInput;
20
+ /**
21
+ * If is file list image
22
+ */
23
+ images?: BooleanInput;
24
+ /**
25
+ * Hide the load button
26
+ */
27
+ hideLoadButton?: BooleanInput;
28
+ /**
29
+ * Fired when upload new files
30
+ */
31
+ uploadFiles: EventEmitter<FileList>;
32
+ /**
33
+ * Fired on delete item button click
34
+ */
35
+ deleteItem: EventEmitter<UploadFileListItem>;
36
+ /**
37
+ * Cache to preview image
38
+ */
39
+ previewImages: Map<number, string>;
40
+ ngOnInit(): void;
41
+ ngOnChanges(changes: SimpleChanges): void;
42
+ get isMultipleInput(): boolean;
43
+ get isImageList(): boolean;
44
+ get isHideLoadButton(): boolean;
45
+ /**
46
+ * On load file from input
47
+ * @param event
48
+ */
49
+ onLoadFiles(event: Event): void;
50
+ /**
51
+ * Get the file size string
52
+ * @param file
53
+ */
54
+ getFileSize(file: File): string;
55
+ static ɵfac: i0.ɵɵFactoryDeclaration<UploadFileListComponent, never>;
56
+ 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>;
57
+ }
@@ -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(): 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,27 @@
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
+ get isSmall(): boolean;
23
+ get isShadow(): boolean;
24
+ get isDark(): boolean;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<BackToTopComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<BackToTopComponent, "it-back-to-top", never, { "id": "id"; "small": "small"; "shadow": "shadow"; "dark": "dark"; }, {}, never, never, false, never>;
27
+ }
@@ -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,28 @@
1
+ import { 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
+ light?: BooleanInput;
9
+ showSlim?: BooleanInput;
10
+ slimTitle?: string;
11
+ loginStyle: 'none' | 'default' | 'full';
12
+ smallHeader?: BooleanInput;
13
+ showSearch?: BooleanInput;
14
+ loginClick: EventEmitter<Event>;
15
+ searchClick: EventEmitter<Event>;
16
+ /**
17
+ * TODO: complete header
18
+ * @param _renderer
19
+ * @param _elementRef
20
+ */
21
+ constructor(_renderer: Renderer2, _elementRef: ElementRef);
22
+ get isLight(): boolean;
23
+ get isShowSlim(): boolean;
24
+ get isSmallHeader(): boolean;
25
+ get isShowSearch(): boolean;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
27
+ 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>;
28
+ }
@@ -0,0 +1,40 @@
1
+ import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
2
+ import { IconColor, IconName, IconSize } from "../../../interfaces/icon";
3
+ import { BooleanInput } from "../../../utils/boolean-input";
4
+ import * as i0 from "@angular/core";
5
+ export declare class IconComponent implements AfterViewInit {
6
+ protected readonly _renderer: Renderer2;
7
+ protected readonly _elementRef: ElementRef;
8
+ /**
9
+ * The icon name
10
+ */
11
+ name: IconName;
12
+ /**
13
+ * The icon size
14
+ */
15
+ size?: IconSize;
16
+ /**
17
+ * The icon color
18
+ */
19
+ color?: IconColor;
20
+ /**
21
+ * Create a padding proportional to the size of the surrounding icon.
22
+ */
23
+ padded?: BooleanInput;
24
+ /**
25
+ * Custom class
26
+ */
27
+ class: string;
28
+ /**
29
+ * Return the icon href
30
+ */
31
+ get iconHref(): string;
32
+ /**
33
+ * Return the icon class
34
+ */
35
+ get iconClass(): string;
36
+ constructor(_renderer: Renderer2, _elementRef: ElementRef);
37
+ ngAfterViewInit(): void;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "it-icon[name]", never, { "name": "name"; "size": "size"; "color": "color"; "padded": "padded"; "class": "class"; }, {}, never, never, false, never>;
40
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class NotFoundPageComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<NotFoundPageComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<NotFoundPageComponent, "it-not-found-page", never, {}, {}, never, never, false, never>;
5
+ }
@@ -1,29 +1,9 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./checkbox/checkbox.component";
3
- import * as i2 from "./toggle/toggle.component";
4
- import * as i3 from "./radio/radio.component";
5
- import * as i4 from "./badge/badge.directive";
6
- import * as i5 from "./progress-bar/progress-bar.component";
7
- import * as i6 from "./form-input/form-input.component";
8
- import * as i7 from "./breadcrumb/breadcrumb.component";
9
- import * as i8 from "./breadcrumb/breadcrumb-item.component";
10
- import * as i9 from "./form-input/it-prefix.directive";
11
- import * as i10 from "./form-input/it-suffix.directive";
12
- import * as i11 from "./form-input/it-text-prefix.directive";
13
- import * as i12 from "./form-input/it-text-suffix.directive";
14
- import * as i13 from "./form-input/mark-matching-text.pipe";
15
- import * as i14 from "@angular/common";
16
- import * as i15 from "./util/utils.module";
17
- import * as i16 from "@angular/forms";
18
- import * as i17 from "./popover/popover.module";
19
- import * as i18 from "./tooltip/tooltip.module";
20
- import * as i19 from "./collapse/collapse.module";
21
- import * as i20 from "./dropdown/dropdown.module";
22
- import * as i21 from "./icon/icon.module";
23
- import * as i22 from "./button/button.module";
24
- import * as i23 from "./tabs/tabs.module";
2
+ import * as i1 from "./modules/components.module";
3
+ import * as i2 from "@angular/common/http";
4
+ import * as i3 from "@ngx-translate/core";
25
5
  export declare class DesignAngularKitModule {
26
6
  static ɵfac: i0.ɵɵFactoryDeclaration<DesignAngularKitModule, never>;
27
- static ɵmod: i0.ɵɵNgModuleDeclaration<DesignAngularKitModule, [typeof i1.CheckboxComponent, typeof i2.ToggleComponent, typeof i3.RadioGroupDirective, typeof i3.RadioButtonComponent, typeof i4.BadgeDirective, typeof i5.ProgressBarComponent, typeof i6.FormInputComponent, typeof i7.BreadcrumbComponent, typeof i8.BreadcrumbItemComponent, typeof i9.ItPrefixDirective, typeof i10.ItSuffixDirective, typeof i11.ItTextPrefixDirective, typeof i12.ItTextSuffixDirective, typeof i13.MarkMatchingTextPipe], [typeof i14.CommonModule, typeof i15.ItUtilsModule, typeof i16.FormsModule, typeof i17.ItPopoverModule, typeof i18.ItTooltipModule, typeof i19.ItCollapseModule, typeof i20.ItDropdownModule, typeof i21.ItIconModule, typeof i22.ItButtonModule, typeof i23.ItTabsModule], [typeof i1.CheckboxComponent, typeof i2.ToggleComponent, typeof i3.RadioGroupDirective, typeof i3.RadioButtonComponent, typeof i4.BadgeDirective, typeof i5.ProgressBarComponent, typeof i22.ItButtonModule, typeof i6.FormInputComponent, typeof i7.BreadcrumbComponent, typeof i8.BreadcrumbItemComponent, typeof i21.ItIconModule, typeof i9.ItPrefixDirective, typeof i10.ItSuffixDirective, typeof i11.ItTextPrefixDirective, typeof i12.ItTextSuffixDirective, typeof i17.ItPopoverModule, typeof i18.ItTooltipModule, typeof i19.ItCollapseModule, typeof i20.ItDropdownModule, typeof i15.ItUtilsModule]>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DesignAngularKitModule, never, [typeof i1.ComponentsModule, typeof i2.HttpClientModule, typeof i3.TranslateModule], [typeof i1.ComponentsModule]>;
28
8
  static ɵinj: i0.ɵɵInjectorDeclaration<DesignAngularKitModule>;
29
9
  }
@@ -0,0 +1,36 @@
1
+ export declare type AlertColor = 'info' | 'success' | 'warning' | 'danger';
2
+ export declare type ButtonColor = 'primary' | 'outline-primary' | 'secondary' | 'outline-secondary' | 'success' | 'outline-success' | 'danger' | 'outline-danger' | 'warning' | 'outline-warning' | 'info' | 'outline-info' | 'light' | 'outline-light' | 'dark' | 'outline-dark' | 'link';
3
+ export declare type ButtonSize = 'lg' | 'sm' | 'xs';
4
+ export declare type ButtonType = 'submit' | 'button';
5
+ export declare type CalloutColor = 'success' | 'warning' | 'danger' | 'important' | 'note';
6
+ export declare type CalloutAppearance = 'default' | 'highlight' | 'more';
7
+ export declare type ElementPlacement = 'top' | 'bottom' | 'left' | 'right';
8
+ export declare type ProgressBarColor = 'primary' | 'success' | 'warning' | 'danger' | 'info';
9
+ export declare type BadgeColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
10
+ export declare type TableColor = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
11
+ export declare type TableHeadColor = 'light' | 'dark';
12
+ export declare type TableResponsive = 'responsive' | 'responsive-sm' | 'responsive-md' | 'responsive-lg' | 'responsive-xl' | 'responsive-xxl';
13
+ export declare type VerticalAlignment = 'align-baseline' | 'align-top' | 'align-middle' | 'align-bottom' | 'align-text-bottom' | 'align-text-top';
14
+ export declare type DropdownDirection = 'dropup' | 'dropend' | 'dropstart';
15
+ export declare type CarouselType = 'default' | 'three-cols' | 'three-cols-arrow-visible';
16
+ export interface Notification {
17
+ type: NotificationType;
18
+ title: string;
19
+ message?: string;
20
+ duration?: number;
21
+ dismissable?: boolean;
22
+ position?: NotificationPosition;
23
+ }
24
+ export declare enum NotificationType {
25
+ Standard = "standard",
26
+ Success = "success",
27
+ Error = "error",
28
+ Info = "info",
29
+ Warning = "warning"
30
+ }
31
+ export declare enum NotificationPosition {
32
+ Top = "top-fix mt-3",
33
+ Bottom = "bottom-fix mb-3",
34
+ Left = "left-fix ms-3",
35
+ Right = "right-fix me-3"
36
+ }
@@ -0,0 +1,61 @@
1
+ import { IconName } from "./icon";
2
+ export declare type InputControlType = 'text' | 'email' | 'number' | 'date' | 'time' | 'tel' | 'color' | 'url' | 'search';
3
+ export interface SelectControlOption {
4
+ value: any;
5
+ text?: string;
6
+ selected?: boolean | ((value: any) => boolean);
7
+ disabled?: boolean | ((value: any) => boolean);
8
+ }
9
+ export interface SelectControlGroup {
10
+ label: string;
11
+ options: Array<SelectControlOption>;
12
+ dragdrop?: boolean;
13
+ }
14
+ export interface UploadFileListItem {
15
+ /**
16
+ * The item id
17
+ */
18
+ id: number;
19
+ /**
20
+ * The uploaded file
21
+ */
22
+ file: File;
23
+ /**
24
+ * Show progress bar
25
+ *
26
+ * The status of the item changes based on the value:
27
+ * - <b>uploading</b>: if value is between 0 and 100 (exclusive 0 < value < 100)
28
+ * - <b>success</b>: if value is greater than 100
29
+ */
30
+ progress?: number;
31
+ /**
32
+ * Show the ability to delete item
33
+ * @default false
34
+ */
35
+ removable?: boolean;
36
+ /**
37
+ * Set the status of the item as 'error'
38
+ */
39
+ error?: string;
40
+ /**
41
+ * Add tooltip on file item name
42
+ */
43
+ tooltip?: string;
44
+ }
45
+ /**
46
+ * Elemento disponibile per l'autocompletamento del it-form-input
47
+ */
48
+ export interface AutoCompleteItem {
49
+ /** Valore voce di autocompletamento */
50
+ value: string;
51
+ /** Opzionale. Path in cui ricercare l'immagine dell'avatar da posizionare a sinistra della voce di autocompletamento */
52
+ avatarSrcPath?: string;
53
+ /** Opzionale. Testo in alternativa dell'avatar per accessibilità */
54
+ avatarAltText?: string;
55
+ /** Opzionale. Icona posizionata a sinistra della voce di autocompletamento */
56
+ icon?: IconName;
57
+ /** Opzionale. Label posizionata a destra della voce di autocompletamento */
58
+ label?: string;
59
+ /** Opzionale. Link relativo all'elemento */
60
+ link?: string;
61
+ }
@@ -0,0 +1,3 @@
1
+ export declare type IconSize = 'xs' | 'sm' | 'lg' | 'xl';
2
+ export declare type IconColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'light' | 'white';
3
+ export declare type IconName = 'arrow-down' | 'arrow-down-circle' | 'arrow-down-triangle' | 'arrow-left' | 'arrow-left-circle' | 'arrow-left-triangle' | 'arrow-right' | 'arrow-right-circle' | 'arrow-right-triangle' | 'arrow-up' | 'arrow-up-circle' | 'arrow-up-triangle' | 'ban' | 'bookmark' | 'box' | 'burger' | 'calendar' | 'camera' | 'card' | 'chart-line' | 'check' | 'check-circle' | 'chevron-left' | 'chevron-right' | 'clip' | 'clock' | 'close' | 'close-big' | 'close-circle' | 'comment' | 'copy' | 'delete' | 'download' | 'error' | 'exchange-circle' | 'expand' | 'external-link' | 'flag' | 'folder' | 'fullscreen' | 'funnel' | 'hearing' | 'help' | 'help-circle' | 'horn' | 'inbox' | 'info-circle' | 'key' | 'link' | 'list' | 'locked' | 'logout' | 'mail' | 'mail-open' | 'map-marker' | 'map-marker-circle' | 'map-marker-minus' | 'map-marker-plus' | 'maximize' | 'maximize-alt' | 'minimize' | 'minus' | 'minus-circle' | 'more-actions' | 'more-items' | 'note' | 'pa' | 'password-invisible' | 'password-visible' | 'pencil' | 'piattaforme' | 'pin' | 'plug' | 'plus' | 'plus-circle' | 'presentation' | 'print' | 'refresh' | 'restore' | 'rss' | 'rss-square' | 'search' | 'settings' | 'share' | 'software' | 'star-full' | 'star-outline' | 'telephone' | 'tool' | 'unlocked' | 'upload' | 'user' | 'video' | 'warning' | 'warning-circle' | 'wifi' | 'zoom-in' | 'zoom-out' | 'behance' | 'facebook' | 'facebook-square' | 'figma' | 'figma-square' | 'flickr' | 'flickr-square' | 'github' | 'instagram' | 'linkedin' | 'linkedin-square' | 'medium' | 'medium-square' | 'pinterest' | 'pinterest-square' | 'quora' | 'quora-square' | 'reddit' | 'reddit-square' | 'slack' | 'slack-square' | 'snapchat' | 'snapchat-square' | 'stackexchange' | 'stackexchange-square' | 'stackoverflow' | 'stackoverflow-square' | 'telegram' | 'tiktok' | 'tiktok-square' | 'twitter' | 'twitter-square' | 'vimeo' | 'vimeo-square' | 'whatsapp' | 'whatsapp-square' | 'youtube' | 'google' | 'designers-italia' | 'team-digitale' | 'file' | 'files' | 'file-audio' | 'file-compressed' | 'file-csv' | 'file-json' | 'file-odp' | 'file-ods' | 'file-odt' | 'file-pdf' | 'file-pdf-ext' | 'file-sheet' | 'file-slides' | 'file-txt' | 'file-video' | 'file-xml';