design-angular-kit 18.0.0 → 20.0.0

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 (283) hide show
  1. package/README.md +26 -1
  2. package/fesm2022/design-angular-kit.mjs +521 -553
  3. package/fesm2022/design-angular-kit.mjs.map +1 -1
  4. package/index.d.ts +3986 -3
  5. package/package.json +11 -10
  6. package/schematics/ng-add/index.js +1 -1
  7. package/schematics/ng-add/index.js.map +1 -1
  8. package/schematics/ng-add/rules/setup-project/add-animations.js +1 -2
  9. package/schematics/ng-add/rules/setup-project/add-animations.js.map +1 -1
  10. package/schematics/ng-add/rules/setup-project/add-assets.js +1 -2
  11. package/schematics/ng-add/rules/setup-project/add-assets.js.map +1 -1
  12. package/schematics/ng-add/rules/setup-project/add-design-angular-kit.js +1 -2
  13. package/schematics/ng-add/rules/setup-project/add-design-angular-kit.js.map +1 -1
  14. package/schematics/ng-add/rules/setup-project/add-http-client.js +1 -2
  15. package/schematics/ng-add/rules/setup-project/add-http-client.js.map +1 -1
  16. package/schematics/ng-add/rules/setup-project/add-import-to-style-file.js +1 -2
  17. package/schematics/ng-add/rules/setup-project/add-import-to-style-file.js.map +1 -1
  18. package/schematics/ng-add/rules/setup-project/add-localisation.js +1 -2
  19. package/schematics/ng-add/rules/setup-project/add-localisation.js.map +1 -1
  20. package/schematics/ng-add/rules/setup-project/angular-json-helper.js +1 -2
  21. package/schematics/ng-add/rules/setup-project/angular-json-helper.js.map +1 -1
  22. package/schematics/ng-add/setup-project.js +2 -2
  23. package/schematics/ng-add/setup-project.js.map +1 -1
  24. package/schematics/ng-add/setup-project.spec.js +1 -1
  25. package/schematics/ng-add/utils.js +13 -6
  26. package/schematics/ng-add/utils.js.map +1 -1
  27. package/schematics/ng-add/utils.spec.d.ts +1 -0
  28. package/schematics/ng-add/utils.spec.js +48 -0
  29. package/schematics/ng-add/utils.spec.js.map +1 -0
  30. package/schematics/ng-add/versions-helper.js +11 -19
  31. package/schematics/ng-add/versions-helper.js.map +1 -1
  32. package/schematics/ng-add/versions-helper.spec.d.ts +1 -0
  33. package/schematics/ng-add/versions-helper.spec.js +46 -0
  34. package/schematics/ng-add/versions-helper.spec.js.map +1 -0
  35. package/esm2022/design-angular-kit.mjs +0 -5
  36. package/esm2022/lib/abstracts/abstract-form.component.mjs +0 -199
  37. package/esm2022/lib/abstracts/abstract.component.mjs +0 -46
  38. package/esm2022/lib/components/core/accordion/accordion.component.mjs +0 -39
  39. package/esm2022/lib/components/core/alert/alert.component.mjs +0 -71
  40. package/esm2022/lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component.mjs +0 -43
  41. package/esm2022/lib/components/core/avatar/avatar-extra-text.directive.mjs +0 -22
  42. package/esm2022/lib/components/core/avatar/avatar-group/avatar-group.component.mjs +0 -84
  43. package/esm2022/lib/components/core/avatar/avatar-presence.directive.mjs +0 -38
  44. package/esm2022/lib/components/core/avatar/avatar-status.directive.mjs +0 -38
  45. package/esm2022/lib/components/core/avatar/avatar-wrapper.directive.mjs +0 -32
  46. package/esm2022/lib/components/core/avatar/avatar.directive.mjs +0 -78
  47. package/esm2022/lib/components/core/avatar/avatar.module.mjs +0 -52
  48. package/esm2022/lib/components/core/badge/badge.directive.mjs +0 -39
  49. package/esm2022/lib/components/core/button/button.directive.mjs +0 -80
  50. package/esm2022/lib/components/core/callout/callout.component.mjs +0 -64
  51. package/esm2022/lib/components/core/card/card.component.mjs +0 -59
  52. package/esm2022/lib/components/core/carousel/carousel/carousel.component.mjs +0 -86
  53. package/esm2022/lib/components/core/carousel/carousel-item/carousel-item.component.mjs +0 -19
  54. package/esm2022/lib/components/core/carousel/carousel.module.mjs +0 -18
  55. package/esm2022/lib/components/core/chip/chip.component.mjs +0 -136
  56. package/esm2022/lib/components/core/collapse/collapse.component.mjs +0 -116
  57. package/esm2022/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.mjs +0 -27
  58. package/esm2022/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.mjs +0 -11
  59. package/esm2022/lib/components/core/dimmer/dimmer.component.mjs +0 -55
  60. package/esm2022/lib/components/core/dimmer/dimmer.module.mjs +0 -19
  61. package/esm2022/lib/components/core/dropdown/dropdown/dropdown.component.mjs +0 -147
  62. package/esm2022/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +0 -70
  63. package/esm2022/lib/components/core/dropdown/dropdown.module.mjs +0 -18
  64. package/esm2022/lib/components/core/forward/forward.directive.mjs +0 -57
  65. package/esm2022/lib/components/core/link/link.component.mjs +0 -42
  66. package/esm2022/lib/components/core/list/list/list.component.mjs +0 -22
  67. package/esm2022/lib/components/core/list/list-item/list-item.component.mjs +0 -67
  68. package/esm2022/lib/components/core/list/list.module.mjs +0 -18
  69. package/esm2022/lib/components/core/modal/modal.component.mjs +0 -194
  70. package/esm2022/lib/components/core/notifications/notifications.component.mjs +0 -111
  71. package/esm2022/lib/components/core/pagination/pagination.component.mjs +0 -130
  72. package/esm2022/lib/components/core/popover/popover.directive.mjs +0 -176
  73. package/esm2022/lib/components/core/progress-bar/progress-bar.component.mjs +0 -34
  74. package/esm2022/lib/components/core/progress-button/progress-button.component.mjs +0 -25
  75. package/esm2022/lib/components/core/spinner/spinner.component.mjs +0 -30
  76. package/esm2022/lib/components/core/steppers/steppers-container/steppers-container.component.mjs +0 -116
  77. package/esm2022/lib/components/core/steppers/steppers-item/steppers-item.component.mjs +0 -22
  78. package/esm2022/lib/components/core/steppers/steppers.module.mjs +0 -18
  79. package/esm2022/lib/components/core/tab/tab-container/tab-container.component.mjs +0 -97
  80. package/esm2022/lib/components/core/tab/tab-item/tab-item.component.mjs +0 -39
  81. package/esm2022/lib/components/core/tab/tab.module.mjs +0 -18
  82. package/esm2022/lib/components/core/table/sort/sort-header/sort-header.component.mjs +0 -134
  83. package/esm2022/lib/components/core/table/sort/sort.directive.mjs +0 -123
  84. package/esm2022/lib/components/core/table/table.component.mjs +0 -45
  85. package/esm2022/lib/components/core/table/table.module.mjs +0 -19
  86. package/esm2022/lib/components/core/timeline/timeline-item/timeline-item.component.mjs +0 -90
  87. package/esm2022/lib/components/core/timeline/timeline.component.mjs +0 -36
  88. package/esm2022/lib/components/core/timeline/timeline.module.mjs +0 -18
  89. package/esm2022/lib/components/core/tooltip/tooltip.directive.mjs +0 -143
  90. package/esm2022/lib/components/core/video-player/video-player-i18n.model.mjs +0 -2
  91. package/esm2022/lib/components/core/video-player/video-player-i18n.service.mjs +0 -130
  92. package/esm2022/lib/components/core/video-player/video-player.component.mjs +0 -301
  93. package/esm2022/lib/components/core/video-player/video-player.config.mjs +0 -43
  94. package/esm2022/lib/components/core/video-player/video-player.cookie.mjs +0 -25
  95. package/esm2022/lib/components/core/video-player/video-player.model.mjs +0 -3
  96. package/esm2022/lib/components/core/video-player/video-player.module.mjs +0 -16
  97. package/esm2022/lib/components/form/autocomplete/autocomplete.component.mjs +0 -178
  98. package/esm2022/lib/components/form/checkbox/checkbox.component.mjs +0 -48
  99. package/esm2022/lib/components/form/form.module.mjs +0 -67
  100. package/esm2022/lib/components/form/input/input.component.mjs +0 -190
  101. package/esm2022/lib/components/form/password-input/password-input.component.mjs +0 -149
  102. package/esm2022/lib/components/form/radio-button/radio-button.component.mjs +0 -60
  103. package/esm2022/lib/components/form/range/range.component.mjs +0 -64
  104. package/esm2022/lib/components/form/rating/rating.component.mjs +0 -50
  105. package/esm2022/lib/components/form/search/search.component.mjs +0 -112
  106. package/esm2022/lib/components/form/select/select.component.mjs +0 -70
  107. package/esm2022/lib/components/form/textarea/textarea.component.mjs +0 -55
  108. package/esm2022/lib/components/form/transfer/store/transfer.reducers.mjs +0 -191
  109. package/esm2022/lib/components/form/transfer/store/transfer.state.mjs +0 -2
  110. package/esm2022/lib/components/form/transfer/store/transfer.store.mjs +0 -70
  111. package/esm2022/lib/components/form/transfer/transfer-list/transfer-list.component.mjs +0 -72
  112. package/esm2022/lib/components/form/transfer/transfer.component.mjs +0 -149
  113. package/esm2022/lib/components/form/transfer/transfer.model.mjs +0 -6
  114. package/esm2022/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +0 -142
  115. package/esm2022/lib/components/form/upload-file-list/upload-file-list.component.mjs +0 -107
  116. package/esm2022/lib/components/navigation/back-button/back-button.component.mjs +0 -67
  117. package/esm2022/lib/components/navigation/back-to-top/back-to-top.component.mjs +0 -68
  118. package/esm2022/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.mjs +0 -51
  119. package/esm2022/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.mjs +0 -21
  120. package/esm2022/lib/components/navigation/breadcrumbs/breadcrumbs.module.mjs +0 -18
  121. package/esm2022/lib/components/navigation/footer/footer.component.mjs +0 -12
  122. package/esm2022/lib/components/navigation/header/header.component.mjs +0 -108
  123. package/esm2022/lib/components/navigation/megamenu/megamenu.component.mjs +0 -27
  124. package/esm2022/lib/components/navigation/navbar/navbar/navbar.component.mjs +0 -51
  125. package/esm2022/lib/components/navigation/navbar/navbar-item/navbar-item.component.mjs +0 -11
  126. package/esm2022/lib/components/navigation/navbar/navbar.module.mjs +0 -18
  127. package/esm2022/lib/components/navigation/navscroll/navscroll-list-item.component.mjs +0 -97
  128. package/esm2022/lib/components/navigation/navscroll/navscroll-list-items.component.mjs +0 -44
  129. package/esm2022/lib/components/navigation/navscroll/navscroll.component.mjs +0 -119
  130. package/esm2022/lib/components/navigation/navscroll/navscroll.model.mjs +0 -2
  131. package/esm2022/lib/components/navigation/navscroll/navscroll.store.mjs +0 -68
  132. package/esm2022/lib/components/navigation/navscroll/navscroll.utils.mjs +0 -23
  133. package/esm2022/lib/components/navigation/sidebar/sidebar.component.mjs +0 -50
  134. package/esm2022/lib/components/navigation/skiplink/skiplink/skiplink.component.mjs +0 -27
  135. package/esm2022/lib/components/navigation/skiplink/skiplink-item/skiplink-item.component.mjs +0 -26
  136. package/esm2022/lib/components/navigation/skiplink/skiplink.module.mjs +0 -18
  137. package/esm2022/lib/components/utils/error-page/error-page.component.mjs +0 -74
  138. package/esm2022/lib/components/utils/icon/icon.component.mjs +0 -63
  139. package/esm2022/lib/components/utils/language-switcher/language-switcher.component.mjs +0 -50
  140. package/esm2022/lib/design-angular-kit.module.mjs +0 -242
  141. package/esm2022/lib/enums/colors.enums.mjs +0 -12
  142. package/esm2022/lib/enums/sizes.enum.mjs +0 -9
  143. package/esm2022/lib/interfaces/core.mjs +0 -16
  144. package/esm2022/lib/interfaces/design-angular-kit-config.mjs +0 -7
  145. package/esm2022/lib/interfaces/form.mjs +0 -2
  146. package/esm2022/lib/interfaces/icon.mjs +0 -181
  147. package/esm2022/lib/interfaces/sortable-table.mjs +0 -6
  148. package/esm2022/lib/interfaces/utils.mjs +0 -2
  149. package/esm2022/lib/pipes/date-ago.pipe.mjs +0 -56
  150. package/esm2022/lib/pipes/duration.pipe.mjs +0 -115
  151. package/esm2022/lib/pipes/mark-matching-text.pipe.mjs +0 -48
  152. package/esm2022/lib/provide-design-angular-kit.mjs +0 -64
  153. package/esm2022/lib/services/notification/notification.service.mjs +0 -120
  154. package/esm2022/lib/utils/coercion.mjs +0 -18
  155. package/esm2022/lib/utils/date-utils.mjs +0 -162
  156. package/esm2022/lib/utils/file-utils.mjs +0 -73
  157. package/esm2022/lib/utils/regex.mjs +0 -35
  158. package/esm2022/lib/validators/it-validators.mjs +0 -161
  159. package/esm2022/public_api.mjs +0 -119
  160. package/lib/abstracts/abstract-form.component.d.ts +0 -89
  161. package/lib/abstracts/abstract.component.d.ts +0 -30
  162. package/lib/components/core/accordion/accordion.component.d.ts +0 -18
  163. package/lib/components/core/alert/alert.component.d.ts +0 -44
  164. package/lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component.d.ts +0 -29
  165. package/lib/components/core/avatar/avatar-extra-text.directive.d.ts +0 -6
  166. package/lib/components/core/avatar/avatar-group/avatar-group.component.d.ts +0 -20
  167. package/lib/components/core/avatar/avatar-presence.directive.d.ts +0 -17
  168. package/lib/components/core/avatar/avatar-status.directive.d.ts +0 -17
  169. package/lib/components/core/avatar/avatar-wrapper.directive.d.ts +0 -9
  170. package/lib/components/core/avatar/avatar.directive.d.ts +0 -33
  171. package/lib/components/core/avatar/avatar.module.d.ts +0 -13
  172. package/lib/components/core/badge/badge.directive.d.ts +0 -23
  173. package/lib/components/core/button/button.directive.d.ts +0 -48
  174. package/lib/components/core/callout/callout.component.d.ts +0 -50
  175. package/lib/components/core/card/card.component.d.ts +0 -69
  176. package/lib/components/core/carousel/carousel/carousel.component.d.ts +0 -65
  177. package/lib/components/core/carousel/carousel-item/carousel-item.component.d.ts +0 -15
  178. package/lib/components/core/carousel/carousel.module.d.ts +0 -8
  179. package/lib/components/core/chip/chip.component.d.ts +0 -76
  180. package/lib/components/core/collapse/collapse.component.d.ts +0 -67
  181. package/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.d.ts +0 -12
  182. package/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.d.ts +0 -5
  183. package/lib/components/core/dimmer/dimmer.component.d.ts +0 -24
  184. package/lib/components/core/dimmer/dimmer.module.d.ts +0 -9
  185. package/lib/components/core/dropdown/dropdown/dropdown.component.d.ts +0 -94
  186. package/lib/components/core/dropdown/dropdown-item/dropdown-item.component.d.ts +0 -46
  187. package/lib/components/core/dropdown/dropdown.module.d.ts +0 -8
  188. package/lib/components/core/forward/forward.directive.d.ts +0 -14
  189. package/lib/components/core/link/link.component.d.ts +0 -35
  190. package/lib/components/core/list/list/list.component.d.ts +0 -24
  191. package/lib/components/core/list/list-item/list-item.component.d.ts +0 -44
  192. package/lib/components/core/list/list.module.d.ts +0 -8
  193. package/lib/components/core/modal/modal.component.d.ts +0 -135
  194. package/lib/components/core/notifications/notifications.component.d.ts +0 -45
  195. package/lib/components/core/pagination/pagination.component.d.ts +0 -92
  196. package/lib/components/core/popover/popover.directive.d.ts +0 -99
  197. package/lib/components/core/progress-bar/progress-bar.component.d.ts +0 -31
  198. package/lib/components/core/progress-button/progress-button.component.d.ts +0 -21
  199. package/lib/components/core/spinner/spinner.component.d.ts +0 -24
  200. package/lib/components/core/steppers/steppers-container/steppers-container.component.d.ts +0 -130
  201. package/lib/components/core/steppers/steppers-item/steppers-item.component.d.ts +0 -24
  202. package/lib/components/core/steppers/steppers.module.d.ts +0 -8
  203. package/lib/components/core/tab/tab-container/tab-container.component.d.ts +0 -60
  204. package/lib/components/core/tab/tab-item/tab-item.component.d.ts +0 -38
  205. package/lib/components/core/tab/tab.module.d.ts +0 -8
  206. package/lib/components/core/table/sort/sort-header/sort-header.component.d.ts +0 -72
  207. package/lib/components/core/table/sort/sort.directive.d.ts +0 -53
  208. package/lib/components/core/table/table.component.d.ts +0 -60
  209. package/lib/components/core/table/table.module.d.ts +0 -9
  210. package/lib/components/core/timeline/timeline-item/timeline-item.component.d.ts +0 -79
  211. package/lib/components/core/timeline/timeline.component.d.ts +0 -21
  212. package/lib/components/core/timeline/timeline.module.d.ts +0 -8
  213. package/lib/components/core/tooltip/tooltip.directive.d.ts +0 -82
  214. package/lib/components/core/video-player/video-player-i18n.model.d.ts +0 -179
  215. package/lib/components/core/video-player/video-player-i18n.service.d.ts +0 -17
  216. package/lib/components/core/video-player/video-player.component.d.ts +0 -46
  217. package/lib/components/core/video-player/video-player.config.d.ts +0 -68
  218. package/lib/components/core/video-player/video-player.cookie.d.ts +0 -6
  219. package/lib/components/core/video-player/video-player.model.d.ts +0 -44
  220. package/lib/components/core/video-player/video-player.module.d.ts +0 -7
  221. package/lib/components/form/autocomplete/autocomplete.component.d.ts +0 -75
  222. package/lib/components/form/checkbox/checkbox.component.d.ts +0 -41
  223. package/lib/components/form/form.module.d.ts +0 -19
  224. package/lib/components/form/input/input.component.d.ts +0 -95
  225. package/lib/components/form/password-input/password-input.component.d.ts +0 -80
  226. package/lib/components/form/radio-button/radio-button.component.d.ts +0 -38
  227. package/lib/components/form/range/range.component.d.ts +0 -42
  228. package/lib/components/form/rating/rating.component.d.ts +0 -24
  229. package/lib/components/form/search/search.component.d.ts +0 -59
  230. package/lib/components/form/select/select.component.d.ts +0 -36
  231. package/lib/components/form/textarea/textarea.component.d.ts +0 -34
  232. package/lib/components/form/transfer/store/transfer.reducers.d.ts +0 -103
  233. package/lib/components/form/transfer/store/transfer.state.d.ts +0 -18
  234. package/lib/components/form/transfer/store/transfer.store.d.ts +0 -23
  235. package/lib/components/form/transfer/transfer-list/transfer-list.component.d.ts +0 -48
  236. package/lib/components/form/transfer/transfer.component.d.ts +0 -75
  237. package/lib/components/form/transfer/transfer.model.d.ts +0 -6
  238. package/lib/components/form/upload-drag-drop/upload-drag-drop.component.d.ts +0 -60
  239. package/lib/components/form/upload-file-list/upload-file-list.component.d.ts +0 -62
  240. package/lib/components/navigation/back-button/back-button.component.d.ts +0 -47
  241. package/lib/components/navigation/back-to-top/back-to-top.component.d.ts +0 -50
  242. package/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +0 -28
  243. package/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.d.ts +0 -23
  244. package/lib/components/navigation/breadcrumbs/breadcrumbs.module.d.ts +0 -8
  245. package/lib/components/navigation/footer/footer.component.d.ts +0 -6
  246. package/lib/components/navigation/header/header.component.d.ts +0 -39
  247. package/lib/components/navigation/megamenu/megamenu.component.d.ts +0 -22
  248. package/lib/components/navigation/navbar/navbar/navbar.component.d.ts +0 -19
  249. package/lib/components/navigation/navbar/navbar-item/navbar-item.component.d.ts +0 -5
  250. package/lib/components/navigation/navbar/navbar.module.d.ts +0 -8
  251. package/lib/components/navigation/navscroll/navscroll-list-item.component.d.ts +0 -16
  252. package/lib/components/navigation/navscroll/navscroll-list-items.component.d.ts +0 -7
  253. package/lib/components/navigation/navscroll/navscroll.component.d.ts +0 -47
  254. package/lib/components/navigation/navscroll/navscroll.model.d.ts +0 -15
  255. package/lib/components/navigation/navscroll/navscroll.store.d.ts +0 -16
  256. package/lib/components/navigation/navscroll/navscroll.utils.d.ts +0 -6
  257. package/lib/components/navigation/sidebar/sidebar.component.d.ts +0 -26
  258. package/lib/components/navigation/skiplink/skiplink/skiplink.component.d.ts +0 -17
  259. package/lib/components/navigation/skiplink/skiplink-item/skiplink-item.component.d.ts +0 -24
  260. package/lib/components/navigation/skiplink/skiplink.module.d.ts +0 -8
  261. package/lib/components/utils/error-page/error-page.component.d.ts +0 -44
  262. package/lib/components/utils/icon/icon.component.d.ts +0 -53
  263. package/lib/components/utils/language-switcher/language-switcher.component.d.ts +0 -27
  264. package/lib/design-angular-kit.module.d.ts +0 -55
  265. package/lib/enums/colors.enums.d.ts +0 -10
  266. package/lib/enums/sizes.enum.d.ts +0 -7
  267. package/lib/interfaces/core.d.ts +0 -77
  268. package/lib/interfaces/design-angular-kit-config.d.ts +0 -30
  269. package/lib/interfaces/form.d.ts +0 -67
  270. package/lib/interfaces/icon.d.ts +0 -4
  271. package/lib/interfaces/sortable-table.d.ts +0 -33
  272. package/lib/interfaces/utils.d.ts +0 -10
  273. package/lib/pipes/date-ago.pipe.d.ts +0 -17
  274. package/lib/pipes/duration.pipe.d.ts +0 -35
  275. package/lib/pipes/mark-matching-text.pipe.d.ts +0 -18
  276. package/lib/provide-design-angular-kit.d.ts +0 -7
  277. package/lib/services/notification/notification.service.d.ts +0 -63
  278. package/lib/utils/coercion.d.ts +0 -14
  279. package/lib/utils/date-utils.d.ts +0 -79
  280. package/lib/utils/file-utils.d.ts +0 -32
  281. package/lib/utils/regex.d.ts +0 -34
  282. package/lib/validators/it-validators.d.ts +0 -70
  283. package/public_api.d.ts +0 -106
@@ -1,79 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- export declare class ItDateUtils {
3
- /**
4
- * Add seconds to date
5
- * @param date the date
6
- * @param seconds seconds to add
7
- */
8
- static addSeconds(date: Date, seconds: number): Date;
9
- /**
10
- * Add minutes to date
11
- * @param date the date
12
- * @param minutes minutes to add
13
- */
14
- static addMinutes(date: Date, minutes: number): Date;
15
- /**
16
- * Add hours to date
17
- * @param date the date
18
- * @param hours hours to add
19
- */
20
- static addHours(date: Date, hours: number): Date;
21
- /**
22
- * Add days to date
23
- * @param date the date
24
- * @param days days to add
25
- */
26
- static addDays(date: Date, days: number): Date;
27
- /**
28
- * Add years to date
29
- * @param date the date
30
- * @param months months to add
31
- */
32
- static addMonths(date: Date, months: number): Date;
33
- /**
34
- * Add years to date
35
- * @param date the date
36
- * @param years years to add
37
- */
38
- static addYears(date: Date, years: number): Date;
39
- /**
40
- * Calculate number of days between two date
41
- * @param startDate
42
- * @param endDate
43
- * @param absolute return unsigned result
44
- */
45
- static countDays(startDate: Date, endDate: Date, absolute?: boolean): number;
46
- /**
47
- * Check if string is a date with iso format
48
- * @param value the string
49
- */
50
- static isIsoString(value: string | null): boolean;
51
- /**
52
- * Convert iso string to Date
53
- * @param isoString the iso string
54
- */
55
- static isoStringToDate(isoString: string | null): Date | null;
56
- /**
57
- * Remove time from an iso date string
58
- * @param isoString the iso string
59
- */
60
- static isoStringRemoveTime(isoString: string): string;
61
- /**
62
- * Set iso string hours to 0 and format correctly the date (consider timezone offset)
63
- * @example '2024-03-04T23:00:00.000Z' -> '2024-03-05T00:00:00.000Z'
64
- * @param isoString the iso string
65
- */
66
- static isoStringSetZeroTime(isoString: string): string;
67
- /**
68
- * Calculate the date time left and return the string format [d h m s]
69
- * @param endDate
70
- */
71
- static timeLeftString(endDate: Date): Observable<string>;
72
- /**
73
- * Calculate the next day of week
74
- * @param dayOfWeek Day of week 0=Sunday, 1=Monday...4=Thursday...
75
- * @param hour the specif hour
76
- * @param minute the specific minute
77
- */
78
- static nextWeekDayAndTime(dayOfWeek: number, hour?: number, minute?: number): Date;
79
- }
@@ -1,32 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- export declare class ItFileUtils {
3
- /**
4
- * Return the file size string
5
- * @param file the file
6
- * @param decimals decimal to show
7
- */
8
- static getFileSizeString(file: File, decimals?: number): string;
9
- /**
10
- * Convert a file to base64 string
11
- * @param file the base64 string
12
- */
13
- static fileToBase64(file: File): Observable<string>;
14
- /**
15
- * Convert base64 to Blob
16
- * @param base64 the base64 string
17
- * @param mimeType the <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types">MIME type</a> (example 'application/pdf')
18
- */
19
- static base64ToBlob(base64: string, mimeType: string): Blob;
20
- /**
21
- * Convert base64 to File
22
- * @param base64 the base64 string
23
- * @param mimeType the <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types">MIME type</a> (example 'application/pdf')
24
- * @param filename the file name
25
- */
26
- static base64ToFile(base64: string, mimeType: string, filename: string): File;
27
- /**
28
- * Extract the MIME type from base64 string
29
- * @param base64 the base64 string
30
- */
31
- static getMimeTypeFromBase64(base64: string): string | undefined;
32
- }
@@ -1,34 +0,0 @@
1
- /**
2
- * General Email Regex (RFC 5322 Official Standard)
3
- * http://emailregex.com/
4
- */
5
- export declare const EMAIL_REGEX: RegExp;
6
- /**
7
- * Phone number Regex
8
- */
9
- export declare const PHONE_NUMBER_REGEX: RegExp;
10
- /**
11
- * URL Regex
12
- */
13
- export declare const URL_REGEX: RegExp;
14
- /**
15
- * The italian tax code Regex (Codice Fiscale)
16
- */
17
- export declare const ITALIAN_TAX_CODE_REGEX: RegExp;
18
- /**
19
- * The VAT number Regex (Partita iva)
20
- */
21
- export declare const VAT_NUMBER_REGEX: RegExp;
22
- /**
23
- * Italian CAP Regex
24
- */
25
- export declare const CAP_REGEX: RegExp;
26
- /**
27
- * Italian Plate Regex
28
- */
29
- export declare const PLATE_REGEX: RegExp;
30
- /**
31
- * IBAN Regex
32
- * https://blog.marketto.it/en/2018/06/validate-any-country-iban/
33
- */
34
- export declare const IBAN_REGEX: RegExp;
@@ -1,70 +0,0 @@
1
- import { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';
2
- export declare class ItValidators {
3
- static SpecialCharacterPattern: string;
4
- /**
5
- * Static pattern validator with custom error
6
- * @param regex
7
- * @param error
8
- */
9
- static customPattern(regex: RegExp, error: ValidationErrors): ValidatorFn;
10
- /**
11
- * Set Validator if the condition is satisfied
12
- * @param validator the validator to apply if the condition is true
13
- * @param condition the condition
14
- */
15
- static conditional(validator: ValidatorFn, condition: (control: AbstractControl) => boolean): ValidatorFn;
16
- /**
17
- * Check whether our password and confirm password are a match
18
- * @param control
19
- * @param passwordControlName the password formControlName
20
- * @param confirmControlName the confirmPassword formControlName
21
- */
22
- static passwordMatch(control: AbstractControl, passwordControlName?: string, confirmControlName?: string): AbstractControl | null;
23
- /**
24
- * Password validator
25
- * @param minLength minimum password length - default 10
26
- * @param hasNumber check whether the entered password has a number - default true
27
- * @param hasCapitalCase check whether the entered password has upper case letter - default true
28
- * @param hasSmallCase check whether the entered password has a lower-case letter - default true
29
- * @param hasSpecialCharacters check whether the entered password has a special character - default true
30
- * @param required the field is required - default true
31
- */
32
- static password(minLength?: number, hasNumber?: boolean, hasCapitalCase?: boolean, hasSmallCase?: boolean, hasSpecialCharacters?: boolean, required?: boolean): ValidatorFn;
33
- /**
34
- * Email validator
35
- */
36
- static get email(): ValidatorFn;
37
- /**
38
- * Phone number validator
39
- */
40
- static get tel(): ValidatorFn;
41
- static includes(possibleValues: string[]): ValidatorFn;
42
- /**
43
- * URL validator
44
- */
45
- static get url(): ValidatorFn;
46
- /**
47
- * Italian Tax Code validator
48
- */
49
- static get taxCode(): ValidatorFn;
50
- /**
51
- * VAT Number validator
52
- */
53
- static get vatNumber(): ValidatorFn;
54
- /**
55
- * Italian Postal Code validator (CAP)
56
- */
57
- static get cap(): ValidatorFn;
58
- /**
59
- * IBAN validator
60
- */
61
- static get iban(): ValidatorFn;
62
- /**
63
- * Italian plate validator
64
- */
65
- static get plate(): ValidatorFn;
66
- /**
67
- * Check if value is a valid RegExp
68
- */
69
- static get regExp(): ValidatorFn;
70
- }
package/public_api.d.ts DELETED
@@ -1,106 +0,0 @@
1
- export * from './lib/design-angular-kit.module';
2
- export * from './lib/provide-design-angular-kit';
3
- export * from './lib/components/core/accordion/accordion.component';
4
- export * from './lib/components/core/alert/alert.component';
5
- export * from './lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component';
6
- export * from './lib/components/core/avatar/avatar-extra-text.directive';
7
- export * from './lib/components/core/avatar/avatar-group/avatar-group.component';
8
- export * from './lib/components/core/avatar/avatar-presence.directive';
9
- export * from './lib/components/core/avatar/avatar-status.directive';
10
- export * from './lib/components/core/avatar/avatar-wrapper.directive';
11
- export * from './lib/components/core/avatar/avatar.directive';
12
- export * from './lib/components/core/avatar/avatar.module';
13
- export * from './lib/components/core/badge/badge.directive';
14
- export * from './lib/components/core/button/button.directive';
15
- export * from './lib/components/core/callout/callout.component';
16
- export * from './lib/components/core/card/card.component';
17
- export * from './lib/components/core/carousel/carousel-item/carousel-item.component';
18
- export * from './lib/components/core/carousel/carousel.module';
19
- export * from './lib/components/core/carousel/carousel/carousel.component';
20
- export * from './lib/components/core/chip/chip.component';
21
- export * from './lib/components/core/collapse/collapse.component';
22
- export * from './lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component';
23
- export * from './lib/components/core/dimmer/dimmer-icon/dimmer-icon.component';
24
- export * from './lib/components/core/dimmer/dimmer.component';
25
- export * from './lib/components/core/dimmer/dimmer.module';
26
- export * from './lib/components/core/dropdown/dropdown-item/dropdown-item.component';
27
- export * from './lib/components/core/dropdown/dropdown.module';
28
- export * from './lib/components/core/dropdown/dropdown/dropdown.component';
29
- export * from './lib/components/core/forward/forward.directive';
30
- export * from './lib/components/core/link/link.component';
31
- export * from './lib/components/core/list/list-item/list-item.component';
32
- export * from './lib/components/core/list/list.module';
33
- export * from './lib/components/core/list/list/list.component';
34
- export * from './lib/components/core/modal/modal.component';
35
- export * from './lib/components/core/notifications/notifications.component';
36
- export * from './lib/components/core/pagination/pagination.component';
37
- export * from './lib/components/core/popover/popover.directive';
38
- export * from './lib/components/core/progress-bar/progress-bar.component';
39
- export * from './lib/components/core/progress-button/progress-button.component';
40
- export * from './lib/components/core/spinner/spinner.component';
41
- export * from './lib/components/core/steppers/steppers-container/steppers-container.component';
42
- export * from './lib/components/core/steppers/steppers-item/steppers-item.component';
43
- export * from './lib/components/core/steppers/steppers.module';
44
- export * from './lib/components/core/tab/tab-container/tab-container.component';
45
- export * from './lib/components/core/tab/tab-item/tab-item.component';
46
- export * from './lib/components/core/tab/tab.module';
47
- export * from './lib/components/core/table/sort/sort-header/sort-header.component';
48
- export * from './lib/components/core/table/sort/sort.directive';
49
- export * from './lib/components/core/table/table.component';
50
- export * from './lib/components/core/table/table.module';
51
- export * from './lib/components/core/timeline/timeline-item/timeline-item.component';
52
- export * from './lib/components/core/timeline/timeline.component';
53
- export * from './lib/components/core/timeline/timeline.module';
54
- export * from './lib/components/core/video-player/video-player.component';
55
- export * from './lib/components/core/video-player/video-player.model';
56
- export * from './lib/components/core/video-player/video-player.module';
57
- export * from './lib/components/core/tooltip/tooltip.directive';
58
- export * from './lib/components/form/autocomplete/autocomplete.component';
59
- export * from './lib/components/form/checkbox/checkbox.component';
60
- export * from './lib/components/form/form.module';
61
- export * from './lib/components/form/input/input.component';
62
- export * from './lib/components/form/password-input/password-input.component';
63
- export * from './lib/components/form/radio-button/radio-button.component';
64
- export * from './lib/components/form/range/range.component';
65
- export * from './lib/components/form/rating/rating.component';
66
- export * from './lib/components/form/search/search.component';
67
- export * from './lib/components/form/select/select.component';
68
- export * from './lib/components/form/textarea/textarea.component';
69
- export * from './lib/components/form/transfer/transfer.component';
70
- export * from './lib/components/form/transfer/transfer.model';
71
- export * from './lib/components/form/upload-drag-drop/upload-drag-drop.component';
72
- export * from './lib/components/form/upload-file-list/upload-file-list.component';
73
- export * from './lib/components/navigation/back-button/back-button.component';
74
- export * from './lib/components/navigation/back-to-top/back-to-top.component';
75
- export * from './lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component';
76
- export * from './lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component';
77
- export * from './lib/components/navigation/breadcrumbs/breadcrumbs.module';
78
- export * from './lib/components/navigation/header/header.component';
79
- export * from './lib/components/navigation/footer/footer.component';
80
- export * from './lib/components/navigation/megamenu/megamenu.component';
81
- export * from './lib/components/navigation/navbar/navbar-item/navbar-item.component';
82
- export * from './lib/components/navigation/navbar/navbar.module';
83
- export * from './lib/components/navigation/navbar/navbar/navbar.component';
84
- export * from './lib/components/navigation/navscroll/navscroll.component';
85
- export * from './lib/components/navigation/navscroll/navscroll.model';
86
- export * from './lib/components/navigation/sidebar/sidebar.component';
87
- export * from './lib/components/navigation/skiplink/skiplink-item/skiplink-item.component';
88
- export * from './lib/components/navigation/skiplink/skiplink.module';
89
- export * from './lib/components/navigation/skiplink/skiplink/skiplink.component';
90
- export * from './lib/components/utils/error-page/error-page.component';
91
- export * from './lib/components/utils/icon/icon.component';
92
- export * from './lib/components/utils/language-switcher/language-switcher.component';
93
- export * from './lib/services/notification/notification.service';
94
- export * from './lib/pipes/date-ago.pipe';
95
- export * from './lib/pipes/duration.pipe';
96
- export * from './lib/pipes/mark-matching-text.pipe';
97
- export * from './lib/interfaces/design-angular-kit-config';
98
- export * from './lib/interfaces/sortable-table';
99
- export * from './lib/interfaces/core';
100
- export * from './lib/interfaces/form';
101
- export * from './lib/interfaces/icon';
102
- export * from './lib/interfaces/utils';
103
- export * from './lib/utils/date-utils';
104
- export * from './lib/utils/file-utils';
105
- export * from './lib/utils/regex';
106
- export * from './lib/validators/it-validators';