design-angular-kit 1.2.1 → 1.2.2

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 (546) hide show
  1. package/README.md +461 -0
  2. package/esm2022/design-angular-kit.mjs +5 -0
  3. package/esm2022/lib/abstracts/abstract-form.component.mjs +186 -0
  4. package/esm2022/lib/abstracts/abstract.component.mjs +46 -0
  5. package/esm2022/lib/components/core/accordion/accordion.component.mjs +39 -0
  6. package/esm2022/lib/components/core/alert/alert.component.mjs +71 -0
  7. package/esm2022/lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component.mjs +43 -0
  8. package/esm2022/lib/components/core/avatar/avatar-group/avatar-group.component.mjs +40 -0
  9. package/esm2022/lib/components/core/avatar/avatar.directive.mjs +78 -0
  10. package/esm2022/lib/components/core/avatar/avatar.module.mjs +33 -0
  11. package/esm2022/lib/components/core/badge/badge.directive.mjs +39 -0
  12. package/esm2022/lib/components/core/button/button.directive.mjs +80 -0
  13. package/esm2022/lib/components/core/callout/callout.component.mjs +64 -0
  14. package/esm2022/lib/components/core/card/card.component.mjs +59 -0
  15. package/esm2022/lib/components/core/carousel/carousel/carousel.component.mjs +84 -0
  16. package/esm2022/lib/components/core/carousel/carousel-item/carousel-item.component.mjs +19 -0
  17. package/esm2022/lib/components/core/carousel/carousel.module.mjs +18 -0
  18. package/esm2022/lib/components/core/chip/chip.component.mjs +136 -0
  19. package/esm2022/lib/components/core/collapse/collapse.component.mjs +116 -0
  20. package/esm2022/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.mjs +27 -0
  21. package/esm2022/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.mjs +11 -0
  22. package/esm2022/lib/components/core/dimmer/dimmer.component.mjs +55 -0
  23. package/esm2022/lib/components/core/dimmer/dimmer.module.mjs +19 -0
  24. package/esm2022/lib/components/core/dropdown/dropdown/dropdown.component.mjs +147 -0
  25. package/esm2022/lib/components/core/dropdown/dropdown-item/dropdown-item.component.mjs +70 -0
  26. package/esm2022/lib/components/core/dropdown/dropdown.module.mjs +18 -0
  27. package/esm2022/lib/components/core/forward/forward.directive.mjs +57 -0
  28. package/esm2022/lib/components/core/link/link.component.mjs +42 -0
  29. package/esm2022/lib/components/core/list/list/list.component.mjs +22 -0
  30. package/esm2022/lib/components/core/list/list-item/list-item.component.mjs +56 -0
  31. package/esm2022/lib/components/core/list/list.module.mjs +18 -0
  32. package/esm2022/lib/components/core/modal/modal.component.mjs +194 -0
  33. package/esm2022/lib/components/core/notifications/notifications.component.mjs +111 -0
  34. package/esm2022/lib/components/core/pagination/pagination.component.mjs +130 -0
  35. package/esm2022/lib/components/core/popover/popover.directive.mjs +176 -0
  36. package/esm2022/lib/components/core/progress-bar/progress-bar.component.mjs +34 -0
  37. package/esm2022/lib/components/core/progress-button/progress-button.component.mjs +25 -0
  38. package/esm2022/lib/components/core/spinner/spinner.component.mjs +30 -0
  39. package/esm2022/lib/components/core/steppers/steppers-container/steppers-container.component.mjs +116 -0
  40. package/esm2022/lib/components/core/steppers/steppers-item/steppers-item.component.mjs +22 -0
  41. package/esm2022/lib/components/core/steppers/steppers.module.mjs +18 -0
  42. package/esm2022/lib/components/core/tab/tab-container/tab-container.component.mjs +97 -0
  43. package/esm2022/lib/components/core/tab/tab-item/tab-item.component.mjs +39 -0
  44. package/esm2022/lib/components/core/tab/tab.module.mjs +18 -0
  45. package/esm2022/lib/components/core/table/sort/sort-header/sort-header.component.mjs +134 -0
  46. package/esm2022/lib/components/core/table/sort/sort.directive.mjs +123 -0
  47. package/esm2022/lib/components/core/table/table.component.mjs +45 -0
  48. package/esm2022/lib/components/core/table/table.module.mjs +19 -0
  49. package/esm2022/lib/components/core/timeline/timeline-item/timeline-item.component.mjs +90 -0
  50. package/esm2022/lib/components/core/timeline/timeline.component.mjs +36 -0
  51. package/esm2022/lib/components/core/timeline/timeline.module.mjs +18 -0
  52. package/esm2022/lib/components/core/tooltip/tooltip.directive.mjs +143 -0
  53. package/esm2022/lib/components/form/autocomplete/autocomplete.component.mjs +112 -0
  54. package/esm2022/lib/components/form/checkbox/checkbox.component.mjs +48 -0
  55. package/esm2022/lib/components/form/form.module.mjs +63 -0
  56. package/esm2022/lib/components/form/input/input.component.mjs +190 -0
  57. package/esm2022/lib/components/form/password-input/password-input.component.mjs +149 -0
  58. package/esm2022/lib/components/form/radio-button/radio-button.component.mjs +60 -0
  59. package/esm2022/lib/components/form/range/range.component.mjs +64 -0
  60. package/esm2022/lib/components/form/rating/rating.component.mjs +50 -0
  61. package/esm2022/lib/components/form/select/select.component.mjs +70 -0
  62. package/esm2022/lib/components/form/textarea/textarea.component.mjs +55 -0
  63. package/esm2022/lib/components/form/transfer/store/transfer.reducers.mjs +191 -0
  64. package/esm2022/lib/components/form/transfer/store/transfer.state.mjs +2 -0
  65. package/esm2022/lib/components/form/transfer/store/transfer.store.mjs +70 -0
  66. package/esm2022/lib/components/form/transfer/transfer-list/transfer-list.component.mjs +72 -0
  67. package/esm2022/lib/components/form/transfer/transfer.component.mjs +149 -0
  68. package/esm2022/lib/components/form/transfer/transfer.model.mjs +6 -0
  69. package/esm2022/lib/components/form/upload-drag-drop/upload-drag-drop.component.mjs +142 -0
  70. package/esm2022/lib/components/form/upload-file-list/upload-file-list.component.mjs +107 -0
  71. package/esm2022/lib/components/navigation/back-button/back-button.component.mjs +67 -0
  72. package/esm2022/lib/components/navigation/back-to-top/back-to-top.component.mjs +68 -0
  73. package/esm2022/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.mjs +51 -0
  74. package/esm2022/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.mjs +21 -0
  75. package/esm2022/lib/components/navigation/breadcrumbs/breadcrumbs.module.mjs +18 -0
  76. package/esm2022/lib/components/navigation/header/header.component.mjs +103 -0
  77. package/esm2022/lib/components/navigation/megamenu/megamenu.component.mjs +27 -0
  78. package/esm2022/lib/components/navigation/navbar/navbar/navbar.component.mjs +49 -0
  79. package/esm2022/lib/components/navigation/navbar/navbar-item/navbar-item.component.mjs +11 -0
  80. package/esm2022/lib/components/navigation/navbar/navbar.module.mjs +18 -0
  81. package/esm2022/lib/components/navigation/navscroll/navscroll-list-item.component.mjs +98 -0
  82. package/esm2022/lib/components/navigation/navscroll/navscroll-list-items.component.mjs +44 -0
  83. package/esm2022/lib/components/navigation/navscroll/navscroll.component.mjs +116 -0
  84. package/esm2022/lib/components/navigation/navscroll/navscroll.model.mjs +2 -0
  85. package/esm2022/lib/components/navigation/navscroll/navscroll.store.mjs +68 -0
  86. package/esm2022/lib/components/navigation/navscroll/navscroll.utils.mjs +23 -0
  87. package/esm2022/lib/components/navigation/sidebar/sidebar.component.mjs +50 -0
  88. package/esm2022/lib/components/navigation/skiplink/skiplink/skiplink.component.mjs +27 -0
  89. package/esm2022/lib/components/navigation/skiplink/skiplink-item/skiplink-item.component.mjs +26 -0
  90. package/esm2022/lib/components/navigation/skiplink/skiplink.module.mjs +18 -0
  91. package/esm2022/lib/components/utils/error-page/error-page.component.mjs +74 -0
  92. package/esm2022/lib/components/utils/icon/icon.component.mjs +63 -0
  93. package/esm2022/lib/components/utils/language-switcher/language-switcher.component.mjs +50 -0
  94. package/esm2022/lib/design-angular-kit.module.mjs +233 -0
  95. package/esm2022/lib/enums/colors.enums.mjs +12 -0
  96. package/esm2022/lib/enums/sizes.enum.mjs +9 -0
  97. package/esm2022/lib/interfaces/core.mjs +16 -0
  98. package/esm2022/lib/interfaces/design-angular-kit-config.mjs +7 -0
  99. package/esm2022/lib/interfaces/form.mjs +2 -0
  100. package/esm2022/lib/interfaces/icon.mjs +168 -0
  101. package/esm2022/lib/interfaces/sortable-table.mjs +6 -0
  102. package/esm2022/lib/interfaces/utils.mjs +2 -0
  103. package/esm2022/lib/pipes/date-ago.pipe.mjs +56 -0
  104. package/esm2022/lib/pipes/duration.pipe.mjs +115 -0
  105. package/esm2022/lib/pipes/mark-matching-text.pipe.mjs +48 -0
  106. package/esm2022/lib/provide-design-angular-kit.mjs +64 -0
  107. package/esm2022/lib/services/notification/notification.service.mjs +120 -0
  108. package/esm2022/lib/utils/coercion.mjs +18 -0
  109. package/esm2022/lib/utils/date-utils.mjs +162 -0
  110. package/esm2022/lib/utils/file-utils.mjs +73 -0
  111. package/esm2022/lib/utils/regex.mjs +35 -0
  112. package/esm2022/lib/validators/it-validators.mjs +156 -0
  113. package/esm2022/public_api.mjs +110 -0
  114. package/fesm2022/design-angular-kit.mjs +6731 -0
  115. package/fesm2022/design-angular-kit.mjs.map +1 -0
  116. package/index.d.ts +5 -0
  117. package/lib/abstracts/abstract-form.component.d.ts +87 -0
  118. package/lib/abstracts/abstract.component.d.ts +30 -0
  119. package/lib/components/core/accordion/accordion.component.d.ts +18 -0
  120. package/lib/components/core/alert/alert.component.d.ts +44 -0
  121. package/lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component.d.ts +29 -0
  122. package/lib/components/core/avatar/avatar-group/avatar-group.component.d.ts +15 -0
  123. package/lib/components/core/avatar/avatar.directive.d.ts +33 -0
  124. package/lib/components/core/avatar/avatar.module.d.ts +9 -0
  125. package/lib/components/core/badge/badge.directive.d.ts +23 -0
  126. package/lib/components/core/button/button.directive.d.ts +48 -0
  127. package/lib/components/core/callout/callout.component.d.ts +50 -0
  128. package/lib/components/core/card/card.component.d.ts +69 -0
  129. package/lib/components/core/carousel/carousel/carousel.component.d.ts +65 -0
  130. package/lib/components/core/carousel/carousel-item/carousel-item.component.d.ts +15 -0
  131. package/lib/components/core/carousel/carousel.module.d.ts +8 -0
  132. package/lib/components/core/chip/chip.component.d.ts +76 -0
  133. package/lib/components/core/collapse/collapse.component.d.ts +67 -0
  134. package/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.d.ts +12 -0
  135. package/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.d.ts +5 -0
  136. package/lib/components/core/dimmer/dimmer.component.d.ts +24 -0
  137. package/lib/components/core/dimmer/dimmer.module.d.ts +9 -0
  138. package/lib/components/core/dropdown/dropdown/dropdown.component.d.ts +94 -0
  139. package/lib/components/core/dropdown/dropdown-item/dropdown-item.component.d.ts +46 -0
  140. package/lib/components/core/dropdown/dropdown.module.d.ts +8 -0
  141. package/lib/components/core/forward/forward.directive.d.ts +14 -0
  142. package/lib/components/core/link/link.component.d.ts +35 -0
  143. package/lib/components/core/list/list/list.component.d.ts +24 -0
  144. package/lib/components/core/list/list-item/list-item.component.d.ts +41 -0
  145. package/lib/components/core/list/list.module.d.ts +8 -0
  146. package/lib/components/core/modal/modal.component.d.ts +135 -0
  147. package/lib/components/core/notifications/notifications.component.d.ts +45 -0
  148. package/lib/components/core/pagination/pagination.component.d.ts +92 -0
  149. package/lib/components/core/popover/popover.directive.d.ts +99 -0
  150. package/lib/components/core/progress-bar/progress-bar.component.d.ts +31 -0
  151. package/lib/components/core/progress-button/progress-button.component.d.ts +21 -0
  152. package/lib/components/core/spinner/spinner.component.d.ts +24 -0
  153. package/lib/components/core/steppers/steppers-container/steppers-container.component.d.ts +130 -0
  154. package/lib/components/core/steppers/steppers-item/steppers-item.component.d.ts +24 -0
  155. package/lib/components/core/steppers/steppers.module.d.ts +8 -0
  156. package/lib/components/core/tab/tab-container/tab-container.component.d.ts +60 -0
  157. package/lib/components/core/tab/tab-item/tab-item.component.d.ts +38 -0
  158. package/lib/components/core/tab/tab.module.d.ts +8 -0
  159. package/lib/components/core/table/sort/sort-header/sort-header.component.d.ts +72 -0
  160. package/lib/components/core/table/sort/sort.directive.d.ts +53 -0
  161. package/lib/components/core/table/table.component.d.ts +60 -0
  162. package/lib/components/core/table/table.module.d.ts +9 -0
  163. package/lib/components/core/timeline/timeline-item/timeline-item.component.d.ts +79 -0
  164. package/lib/components/core/timeline/timeline.component.d.ts +21 -0
  165. package/lib/components/core/timeline/timeline.module.d.ts +8 -0
  166. package/lib/components/core/tooltip/tooltip.directive.d.ts +82 -0
  167. package/lib/components/form/autocomplete/autocomplete.component.d.ts +59 -0
  168. package/lib/components/form/checkbox/checkbox.component.d.ts +41 -0
  169. package/lib/components/form/form.module.d.ts +18 -0
  170. package/lib/components/form/input/input.component.d.ts +95 -0
  171. package/lib/components/form/password-input/password-input.component.d.ts +80 -0
  172. package/lib/components/form/radio-button/radio-button.component.d.ts +38 -0
  173. package/lib/components/form/range/range.component.d.ts +42 -0
  174. package/lib/components/form/rating/rating.component.d.ts +24 -0
  175. package/lib/components/form/select/select.component.d.ts +36 -0
  176. package/lib/components/form/textarea/textarea.component.d.ts +34 -0
  177. package/lib/components/form/transfer/store/transfer.reducers.d.ts +103 -0
  178. package/lib/components/form/transfer/store/transfer.state.d.ts +18 -0
  179. package/lib/components/form/transfer/store/transfer.store.d.ts +23 -0
  180. package/lib/components/form/transfer/transfer-list/transfer-list.component.d.ts +48 -0
  181. package/lib/components/form/transfer/transfer.component.d.ts +75 -0
  182. package/{src/lib/components/form/transfer/transfer.model.ts → lib/components/form/transfer/transfer.model.d.ts} +2 -9
  183. package/lib/components/form/upload-drag-drop/upload-drag-drop.component.d.ts +60 -0
  184. package/lib/components/form/upload-file-list/upload-file-list.component.d.ts +62 -0
  185. package/lib/components/navigation/back-button/back-button.component.d.ts +47 -0
  186. package/lib/components/navigation/back-to-top/back-to-top.component.d.ts +50 -0
  187. package/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +28 -0
  188. package/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.d.ts +23 -0
  189. package/lib/components/navigation/breadcrumbs/breadcrumbs.module.d.ts +8 -0
  190. package/lib/components/navigation/header/header.component.d.ts +38 -0
  191. package/lib/components/navigation/megamenu/megamenu.component.d.ts +22 -0
  192. package/lib/components/navigation/navbar/navbar/navbar.component.d.ts +19 -0
  193. package/lib/components/navigation/navbar/navbar-item/navbar-item.component.d.ts +5 -0
  194. package/lib/components/navigation/navbar/navbar.module.d.ts +8 -0
  195. package/lib/components/navigation/navscroll/navscroll-list-item.component.d.ts +16 -0
  196. package/lib/components/navigation/navscroll/navscroll-list-items.component.d.ts +7 -0
  197. package/lib/components/navigation/navscroll/navscroll.component.d.ts +47 -0
  198. package/{src/lib/components/navigation/navscroll/navscroll.model.ts → lib/components/navigation/navscroll/navscroll.model.d.ts} +5 -7
  199. package/lib/components/navigation/navscroll/navscroll.store.d.ts +16 -0
  200. package/lib/components/navigation/navscroll/navscroll.utils.d.ts +6 -0
  201. package/lib/components/navigation/sidebar/sidebar.component.d.ts +26 -0
  202. package/lib/components/navigation/skiplink/skiplink/skiplink.component.d.ts +17 -0
  203. package/lib/components/navigation/skiplink/skiplink-item/skiplink-item.component.d.ts +24 -0
  204. package/lib/components/navigation/skiplink/skiplink.module.d.ts +8 -0
  205. package/lib/components/utils/error-page/error-page.component.d.ts +44 -0
  206. package/lib/components/utils/icon/icon.component.d.ts +53 -0
  207. package/lib/components/utils/language-switcher/language-switcher.component.d.ts +27 -0
  208. package/lib/design-angular-kit.module.d.ts +53 -0
  209. package/lib/enums/colors.enums.d.ts +10 -0
  210. package/lib/enums/sizes.enum.d.ts +7 -0
  211. package/{src/lib/interfaces/core.ts → lib/interfaces/core.d.ts} +53 -95
  212. package/lib/interfaces/design-angular-kit-config.d.ts +30 -0
  213. package/lib/interfaces/form.d.ts +67 -0
  214. package/lib/interfaces/icon.d.ts +4 -0
  215. package/lib/interfaces/sortable-table.d.ts +33 -0
  216. package/lib/interfaces/utils.d.ts +10 -0
  217. package/lib/pipes/date-ago.pipe.d.ts +17 -0
  218. package/lib/pipes/duration.pipe.d.ts +35 -0
  219. package/lib/pipes/mark-matching-text.pipe.d.ts +18 -0
  220. package/lib/provide-design-angular-kit.d.ts +7 -0
  221. package/lib/services/notification/notification.service.d.ts +63 -0
  222. package/{src/lib/utils/coercion.ts → lib/utils/coercion.d.ts} +1 -7
  223. package/lib/utils/date-utils.d.ts +79 -0
  224. package/lib/utils/file-utils.d.ts +32 -0
  225. package/lib/utils/regex.d.ts +34 -0
  226. package/lib/validators/it-validators.d.ts +69 -0
  227. package/package.json +14 -9
  228. package/{src/public_api.ts → public_api.d.ts} +0 -43
  229. package/schematics/ng-add/index.d.ts +3 -0
  230. package/schematics/ng-add/index.js +29 -0
  231. package/schematics/ng-add/index.js.map +1 -0
  232. package/schematics/ng-add/index.spec.d.ts +1 -0
  233. package/schematics/ng-add/index.spec.js +43 -0
  234. package/schematics/ng-add/index.spec.js.map +1 -0
  235. package/schematics/ng-add/rules/setup-project/add-animations.d.ts +2 -0
  236. package/schematics/ng-add/rules/setup-project/add-animations.js +11 -0
  237. package/schematics/ng-add/rules/setup-project/add-animations.js.map +1 -0
  238. package/schematics/ng-add/rules/setup-project/add-assets.d.ts +3 -0
  239. package/schematics/ng-add/rules/setup-project/add-assets.js +50 -0
  240. package/schematics/ng-add/rules/setup-project/add-assets.js.map +1 -0
  241. package/schematics/ng-add/rules/setup-project/add-design-angular-kit.d.ts +3 -0
  242. package/schematics/ng-add/rules/setup-project/add-design-angular-kit.js +43 -0
  243. package/schematics/ng-add/rules/setup-project/add-design-angular-kit.js.map +1 -0
  244. package/schematics/ng-add/rules/setup-project/add-http-client.d.ts +2 -0
  245. package/schematics/ng-add/rules/setup-project/add-http-client.js +11 -0
  246. package/schematics/ng-add/rules/setup-project/add-http-client.js.map +1 -0
  247. package/schematics/ng-add/rules/setup-project/add-import-to-style-file.d.ts +11 -0
  248. package/schematics/ng-add/rules/setup-project/add-import-to-style-file.js +112 -0
  249. package/schematics/ng-add/rules/setup-project/add-import-to-style-file.js.map +1 -0
  250. package/schematics/ng-add/rules/setup-project/add-localisation.d.ts +3 -0
  251. package/schematics/ng-add/rules/setup-project/add-localisation.js +50 -0
  252. package/schematics/ng-add/rules/setup-project/add-localisation.js.map +1 -0
  253. package/schematics/ng-add/rules/setup-project/angular-json-helper.d.ts +2 -0
  254. package/schematics/ng-add/rules/setup-project/angular-json-helper.js +13 -0
  255. package/schematics/ng-add/rules/setup-project/angular-json-helper.js.map +1 -0
  256. package/schematics/ng-add/rules/setup-project/exceptions.d.ts +7 -0
  257. package/schematics/ng-add/rules/setup-project/exceptions.js +17 -0
  258. package/schematics/ng-add/rules/setup-project/exceptions.js.map +1 -0
  259. package/schematics/ng-add/rules/setup-project/index.js +23 -0
  260. package/schematics/ng-add/rules/setup-project/index.js.map +1 -0
  261. package/schematics/ng-add/{schema.ts → schema.d.ts} +1 -1
  262. package/schematics/ng-add/schema.js +3 -0
  263. package/schematics/ng-add/schema.js.map +1 -0
  264. package/schematics/ng-add/setup-project.d.ts +3 -0
  265. package/schematics/ng-add/setup-project.js +37 -0
  266. package/schematics/ng-add/setup-project.js.map +1 -0
  267. package/schematics/ng-add/setup-project.spec.d.ts +1 -0
  268. package/schematics/ng-add/setup-project.spec.js +139 -0
  269. package/schematics/ng-add/setup-project.spec.js.map +1 -0
  270. package/schematics/ng-add/utils.d.ts +14 -0
  271. package/schematics/ng-add/utils.js +49 -0
  272. package/schematics/ng-add/utils.js.map +1 -0
  273. package/schematics/ng-add/versions-helper.d.ts +3 -0
  274. package/schematics/ng-add/versions-helper.js +40 -0
  275. package/schematics/ng-add/versions-helper.js.map +1 -0
  276. package/.eslintrc.json +0 -31
  277. package/karma.conf.js +0 -38
  278. package/ng-package.json +0 -9
  279. package/ng-package.prod.json +0 -8
  280. package/schematics/ng-add/index.spec.ts +0 -45
  281. package/schematics/ng-add/index.ts +0 -36
  282. package/schematics/ng-add/rules/setup-project/add-animations.ts +0 -7
  283. package/schematics/ng-add/rules/setup-project/add-assets.ts +0 -45
  284. package/schematics/ng-add/rules/setup-project/add-design-angular-kit.ts +0 -40
  285. package/schematics/ng-add/rules/setup-project/add-http-client.ts +0 -7
  286. package/schematics/ng-add/rules/setup-project/add-import-to-style-file.ts +0 -120
  287. package/schematics/ng-add/rules/setup-project/add-localisation.ts +0 -45
  288. package/schematics/ng-add/rules/setup-project/angular-json-helper.ts +0 -11
  289. package/schematics/ng-add/rules/setup-project/exceptions.ts +0 -13
  290. package/schematics/ng-add/setup-project.spec.ts +0 -166
  291. package/schematics/ng-add/setup-project.ts +0 -31
  292. package/schematics/ng-add/utils.ts +0 -71
  293. package/schematics/ng-add/versions-helper.ts +0 -41
  294. package/src/lib/abstracts/abstract-form.component.ts +0 -200
  295. package/src/lib/abstracts/abstract.component.ts +0 -63
  296. package/src/lib/components/core/accordion/accordion.component.html +0 -27
  297. package/src/lib/components/core/accordion/accordion.component.spec.ts +0 -21
  298. package/src/lib/components/core/accordion/accordion.component.ts +0 -40
  299. package/src/lib/components/core/alert/alert.component.html +0 -19
  300. package/src/lib/components/core/alert/alert.component.scss +0 -3
  301. package/src/lib/components/core/alert/alert.component.spec.ts +0 -62
  302. package/src/lib/components/core/alert/alert.component.ts +0 -75
  303. package/src/lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component.html +0 -23
  304. package/src/lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component.scss +0 -17
  305. package/src/lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component.spec.ts +0 -21
  306. package/src/lib/components/core/avatar/avatar-dropdown/avatar-dropdown.component.ts +0 -50
  307. package/src/lib/components/core/avatar/avatar-group/avatar-group.component.html +0 -7
  308. package/src/lib/components/core/avatar/avatar-group/avatar-group.component.spec.ts +0 -38
  309. package/src/lib/components/core/avatar/avatar-group/avatar-group.component.ts +0 -25
  310. package/src/lib/components/core/avatar/avatar.directive.ts +0 -73
  311. package/src/lib/components/core/avatar/avatar.module.ts +0 -18
  312. package/src/lib/components/core/badge/badge.directive.spec.ts +0 -59
  313. package/src/lib/components/core/badge/badge.directive.ts +0 -39
  314. package/src/lib/components/core/button/button.directive.spec.ts +0 -96
  315. package/src/lib/components/core/button/button.directive.ts +0 -89
  316. package/src/lib/components/core/callout/callout.component.html +0 -25
  317. package/src/lib/components/core/callout/callout.component.spec.ts +0 -138
  318. package/src/lib/components/core/callout/callout.component.ts +0 -92
  319. package/src/lib/components/core/card/card.component.html +0 -35
  320. package/src/lib/components/core/card/card.component.scss +0 -30
  321. package/src/lib/components/core/card/card.component.spec.ts +0 -21
  322. package/src/lib/components/core/card/card.component.ts +0 -78
  323. package/src/lib/components/core/carousel/carousel/carousel.component.html +0 -29
  324. package/src/lib/components/core/carousel/carousel/carousel.component.scss +0 -1
  325. package/src/lib/components/core/carousel/carousel/carousel.component.spec.ts +0 -21
  326. package/src/lib/components/core/carousel/carousel/carousel.component.ts +0 -119
  327. package/src/lib/components/core/carousel/carousel-item/carousel-item.component.html +0 -3
  328. package/src/lib/components/core/carousel/carousel-item/carousel-item.component.spec.ts +0 -22
  329. package/src/lib/components/core/carousel/carousel-item/carousel-item.component.ts +0 -20
  330. package/src/lib/components/core/carousel/carousel.module.ts +0 -11
  331. package/src/lib/components/core/chip/chip.component.html +0 -26
  332. package/src/lib/components/core/chip/chip.component.spec.ts +0 -87
  333. package/src/lib/components/core/chip/chip.component.ts +0 -154
  334. package/src/lib/components/core/collapse/collapse.component.html +0 -3
  335. package/src/lib/components/core/collapse/collapse.component.spec.ts +0 -21
  336. package/src/lib/components/core/collapse/collapse.component.ts +0 -124
  337. package/src/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.html +0 -3
  338. package/src/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.spec.ts +0 -35
  339. package/src/lib/components/core/dimmer/dimmer-buttons/dimmer-buttons.component.ts +0 -23
  340. package/src/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.html +0 -3
  341. package/src/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.spec.ts +0 -22
  342. package/src/lib/components/core/dimmer/dimmer-icon/dimmer-icon.component.ts +0 -10
  343. package/src/lib/components/core/dimmer/dimmer.component.html +0 -7
  344. package/src/lib/components/core/dimmer/dimmer.component.spec.ts +0 -49
  345. package/src/lib/components/core/dimmer/dimmer.component.ts +0 -50
  346. package/src/lib/components/core/dimmer/dimmer.module.ts +0 -12
  347. package/src/lib/components/core/dropdown/dropdown/dropdown.component.html +0 -45
  348. package/src/lib/components/core/dropdown/dropdown/dropdown.component.scss +0 -3
  349. package/src/lib/components/core/dropdown/dropdown/dropdown.component.spec.ts +0 -21
  350. package/src/lib/components/core/dropdown/dropdown/dropdown.component.ts +0 -186
  351. package/src/lib/components/core/dropdown/dropdown-item/dropdown-item.component.html +0 -18
  352. package/src/lib/components/core/dropdown/dropdown-item/dropdown-item.component.scss +0 -4
  353. package/src/lib/components/core/dropdown/dropdown-item/dropdown-item.component.spec.ts +0 -21
  354. package/src/lib/components/core/dropdown/dropdown-item/dropdown-item.component.ts +0 -82
  355. package/src/lib/components/core/dropdown/dropdown.module.ts +0 -11
  356. package/src/lib/components/core/forward/forward.directive.spec.ts +0 -60
  357. package/src/lib/components/core/forward/forward.directive.ts +0 -43
  358. package/src/lib/components/core/link/link.component.html +0 -13
  359. package/src/lib/components/core/link/link.component.spec.ts +0 -21
  360. package/src/lib/components/core/link/link.component.ts +0 -54
  361. package/src/lib/components/core/list/list/list.component.html +0 -13
  362. package/src/lib/components/core/list/list/list.component.spec.ts +0 -21
  363. package/src/lib/components/core/list/list/list.component.ts +0 -30
  364. package/src/lib/components/core/list/list-item/list-item.component.html +0 -42
  365. package/src/lib/components/core/list/list-item/list-item.component.scss +0 -16
  366. package/src/lib/components/core/list/list-item/list-item.component.spec.ts +0 -21
  367. package/src/lib/components/core/list/list-item/list-item.component.ts +0 -75
  368. package/src/lib/components/core/list/list.module.ts +0 -11
  369. package/src/lib/components/core/modal/modal.component.html +0 -36
  370. package/src/lib/components/core/modal/modal.component.scss +0 -3
  371. package/src/lib/components/core/modal/modal.component.spec.ts +0 -21
  372. package/src/lib/components/core/modal/modal.component.ts +0 -218
  373. package/src/lib/components/core/notifications/notifications.component.html +0 -25
  374. package/src/lib/components/core/notifications/notifications.component.scss +0 -3
  375. package/src/lib/components/core/notifications/notifications.component.spec.ts +0 -21
  376. package/src/lib/components/core/notifications/notifications.component.ts +0 -123
  377. package/src/lib/components/core/pagination/pagination.component.html +0 -107
  378. package/src/lib/components/core/pagination/pagination.component.spec.ts +0 -21
  379. package/src/lib/components/core/pagination/pagination.component.ts +0 -157
  380. package/src/lib/components/core/popover/popover.directive.spec.ts +0 -21
  381. package/src/lib/components/core/popover/popover.directive.ts +0 -171
  382. package/src/lib/components/core/progress-bar/progress-bar.component.html +0 -20
  383. package/src/lib/components/core/progress-bar/progress-bar.component.spec.ts +0 -21
  384. package/src/lib/components/core/progress-bar/progress-bar.component.ts +0 -46
  385. package/src/lib/components/core/progress-button/progress-button.component.html +0 -5
  386. package/src/lib/components/core/progress-button/progress-button.component.spec.ts +0 -21
  387. package/src/lib/components/core/progress-button/progress-button.component.ts +0 -39
  388. package/src/lib/components/core/spinner/spinner.component.html +0 -7
  389. package/src/lib/components/core/spinner/spinner.component.spec.ts +0 -80
  390. package/src/lib/components/core/spinner/spinner.component.ts +0 -31
  391. package/src/lib/components/core/steppers/steppers-container/steppers-container.component.html +0 -126
  392. package/src/lib/components/core/steppers/steppers-container/steppers-container.component.spec.ts +0 -21
  393. package/src/lib/components/core/steppers/steppers-container/steppers-container.component.ts +0 -185
  394. package/src/lib/components/core/steppers/steppers-item/steppers-item.component.html +0 -3
  395. package/src/lib/components/core/steppers/steppers-item/steppers-item.component.spec.ts +0 -22
  396. package/src/lib/components/core/steppers/steppers-item/steppers-item.component.ts +0 -33
  397. package/src/lib/components/core/steppers/steppers.module.ts +0 -11
  398. package/src/lib/components/core/tab/tab-container/tab-container.component.html +0 -78
  399. package/src/lib/components/core/tab/tab-container/tab-container.component.spec.ts +0 -21
  400. package/src/lib/components/core/tab/tab-container/tab-container.component.ts +0 -137
  401. package/src/lib/components/core/tab/tab-item/tab-item.component.html +0 -3
  402. package/src/lib/components/core/tab/tab-item/tab-item.component.spec.ts +0 -22
  403. package/src/lib/components/core/tab/tab-item/tab-item.component.ts +0 -50
  404. package/src/lib/components/core/tab/tab.module.ts +0 -11
  405. package/src/lib/components/core/table/sort/sort-header/sort-header.component.html +0 -27
  406. package/src/lib/components/core/table/sort/sort-header/sort-header.component.scss +0 -65
  407. package/src/lib/components/core/table/sort/sort-header/sort-header.component.spec.ts +0 -25
  408. package/src/lib/components/core/table/sort/sort-header/sort-header.component.ts +0 -164
  409. package/src/lib/components/core/table/sort/sort.directive.spec.ts +0 -73
  410. package/src/lib/components/core/table/sort/sort.directive.ts +0 -142
  411. package/src/lib/components/core/table/table.component.html +0 -23
  412. package/src/lib/components/core/table/table.component.scss +0 -7
  413. package/src/lib/components/core/table/table.component.spec.ts +0 -21
  414. package/src/lib/components/core/table/table.component.ts +0 -70
  415. package/src/lib/components/core/table/table.module.ts +0 -12
  416. package/src/lib/components/core/timeline/timeline-item/timeline-item.component.html +0 -47
  417. package/src/lib/components/core/timeline/timeline-item/timeline-item.component.spec.ts +0 -24
  418. package/src/lib/components/core/timeline/timeline-item/timeline-item.component.ts +0 -102
  419. package/src/lib/components/core/timeline/timeline.component.html +0 -21
  420. package/src/lib/components/core/timeline/timeline.component.spec.ts +0 -21
  421. package/src/lib/components/core/timeline/timeline.component.ts +0 -31
  422. package/src/lib/components/core/timeline/timeline.module.ts +0 -11
  423. package/src/lib/components/core/tooltip/tooltip.directive.spec.ts +0 -20
  424. package/src/lib/components/core/tooltip/tooltip.directive.ts +0 -141
  425. package/src/lib/components/form/autocomplete/autocomplete.component.html +0 -58
  426. package/src/lib/components/form/autocomplete/autocomplete.component.spec.ts +0 -21
  427. package/src/lib/components/form/autocomplete/autocomplete.component.ts +0 -130
  428. package/src/lib/components/form/checkbox/checkbox.component.html +0 -67
  429. package/src/lib/components/form/checkbox/checkbox.component.spec.ts +0 -21
  430. package/src/lib/components/form/checkbox/checkbox.component.ts +0 -65
  431. package/src/lib/components/form/form.module.ts +0 -34
  432. package/src/lib/components/form/input/input.component.html +0 -92
  433. package/src/lib/components/form/input/input.component.scss +0 -29
  434. package/src/lib/components/form/input/input.component.spec.ts +0 -21
  435. package/src/lib/components/form/input/input.component.ts +0 -234
  436. package/src/lib/components/form/password-input/password-input.component.html +0 -65
  437. package/src/lib/components/form/password-input/password-input.component.scss +0 -9
  438. package/src/lib/components/form/password-input/password-input.component.spec.ts +0 -21
  439. package/src/lib/components/form/password-input/password-input.component.ts +0 -171
  440. package/src/lib/components/form/radio-button/radio-button.component.html +0 -50
  441. package/src/lib/components/form/radio-button/radio-button.component.scss +0 -14
  442. package/src/lib/components/form/radio-button/radio-button.component.spec.ts +0 -21
  443. package/src/lib/components/form/radio-button/radio-button.component.ts +0 -82
  444. package/src/lib/components/form/range/range.component.html +0 -17
  445. package/src/lib/components/form/range/range.component.scss +0 -17
  446. package/src/lib/components/form/range/range.component.spec.ts +0 -21
  447. package/src/lib/components/form/range/range.component.ts +0 -100
  448. package/src/lib/components/form/rating/rating.component.html +0 -24
  449. package/src/lib/components/form/rating/rating.component.spec.ts +0 -21
  450. package/src/lib/components/form/rating/rating.component.ts +0 -52
  451. package/src/lib/components/form/select/select.component.html +0 -54
  452. package/src/lib/components/form/select/select.component.scss +0 -3
  453. package/src/lib/components/form/select/select.component.spec.ts +0 -22
  454. package/src/lib/components/form/select/select.component.ts +0 -91
  455. package/src/lib/components/form/textarea/textarea.component.html +0 -28
  456. package/src/lib/components/form/textarea/textarea.component.scss +0 -12
  457. package/src/lib/components/form/textarea/textarea.component.spec.ts +0 -21
  458. package/src/lib/components/form/textarea/textarea.component.ts +0 -61
  459. package/src/lib/components/form/transfer/store/transfer.reducers.ts +0 -242
  460. package/src/lib/components/form/transfer/store/transfer.state.ts +0 -20
  461. package/src/lib/components/form/transfer/store/transfer.store.ts +0 -88
  462. package/src/lib/components/form/transfer/transfer-list/transfer-list.component.html +0 -42
  463. package/src/lib/components/form/transfer/transfer-list/transfer-list.component.spec.ts +0 -33
  464. package/src/lib/components/form/transfer/transfer-list/transfer-list.component.ts +0 -93
  465. package/src/lib/components/form/transfer/transfer.component.html +0 -52
  466. package/src/lib/components/form/transfer/transfer.component.spec.ts +0 -27
  467. package/src/lib/components/form/transfer/transfer.component.ts +0 -159
  468. package/src/lib/components/form/upload-drag-drop/upload-drag-drop.component.html +0 -36
  469. package/src/lib/components/form/upload-drag-drop/upload-drag-drop.component.spec.ts +0 -21
  470. package/src/lib/components/form/upload-drag-drop/upload-drag-drop.component.ts +0 -170
  471. package/src/lib/components/form/upload-file-list/upload-file-list.component.html +0 -46
  472. package/src/lib/components/form/upload-file-list/upload-file-list.component.spec.ts +0 -22
  473. package/src/lib/components/form/upload-file-list/upload-file-list.component.ts +0 -120
  474. package/src/lib/components/navigation/back-button/back-button.component.html +0 -25
  475. package/src/lib/components/navigation/back-button/back-button.component.spec.ts +0 -91
  476. package/src/lib/components/navigation/back-button/back-button.component.ts +0 -67
  477. package/src/lib/components/navigation/back-to-top/back-to-top.component.html +0 -11
  478. package/src/lib/components/navigation/back-to-top/back-to-top.component.spec.ts +0 -21
  479. package/src/lib/components/navigation/back-to-top/back-to-top.component.ts +0 -80
  480. package/src/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.html +0 -23
  481. package/src/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.spec.ts +0 -21
  482. package/src/lib/components/navigation/breadcrumbs/breadcrumb/breadcrumb.component.ts +0 -68
  483. package/src/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.html +0 -3
  484. package/src/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.spec.ts +0 -22
  485. package/src/lib/components/navigation/breadcrumbs/breadcrumb-item/breadcrumb-item.component.ts +0 -29
  486. package/src/lib/components/navigation/breadcrumbs/breadcrumbs.module.ts +0 -11
  487. package/src/lib/components/navigation/header/header.component.html +0 -102
  488. package/src/lib/components/navigation/header/header.component.scss +0 -3
  489. package/src/lib/components/navigation/header/header.component.spec.ts +0 -21
  490. package/src/lib/components/navigation/header/header.component.ts +0 -107
  491. package/src/lib/components/navigation/megamenu/megamenu.component.html +0 -34
  492. package/src/lib/components/navigation/megamenu/megamenu.component.scss +0 -5
  493. package/src/lib/components/navigation/megamenu/megamenu.component.ts +0 -30
  494. package/src/lib/components/navigation/navbar/navbar/navbar.component.html +0 -28
  495. package/src/lib/components/navigation/navbar/navbar/navbar.component.ts +0 -45
  496. package/src/lib/components/navigation/navbar/navbar-item/navbar-item.component.html +0 -3
  497. package/src/lib/components/navigation/navbar/navbar-item/navbar-item.component.ts +0 -10
  498. package/src/lib/components/navigation/navbar/navbar.module.ts +0 -11
  499. package/src/lib/components/navigation/navscroll/navscroll-list-item.component.ts +0 -95
  500. package/src/lib/components/navigation/navscroll/navscroll-list-items.component.ts +0 -27
  501. package/src/lib/components/navigation/navscroll/navscroll.component.html +0 -101
  502. package/src/lib/components/navigation/navscroll/navscroll.component.scss +0 -9
  503. package/src/lib/components/navigation/navscroll/navscroll.component.ts +0 -143
  504. package/src/lib/components/navigation/navscroll/navscroll.store.ts +0 -96
  505. package/src/lib/components/navigation/navscroll/navscroll.utils.ts +0 -28
  506. package/src/lib/components/navigation/sidebar/sidebar.component.html +0 -11
  507. package/src/lib/components/navigation/sidebar/sidebar.component.spec.ts +0 -21
  508. package/src/lib/components/navigation/sidebar/sidebar.component.ts +0 -39
  509. package/src/lib/components/navigation/skiplink/skiplink/skiplink.component.html +0 -15
  510. package/src/lib/components/navigation/skiplink/skiplink/skiplink.component.ts +0 -27
  511. package/src/lib/components/navigation/skiplink/skiplink-item/skiplink-item.component.html +0 -15
  512. package/src/lib/components/navigation/skiplink/skiplink-item/skiplink-item.component.ts +0 -38
  513. package/src/lib/components/navigation/skiplink/skiplink.module.ts +0 -11
  514. package/src/lib/components/utils/error-page/error-page.component.html +0 -33
  515. package/src/lib/components/utils/error-page/error-page.component.spec.ts +0 -21
  516. package/src/lib/components/utils/error-page/error-page.component.ts +0 -79
  517. package/src/lib/components/utils/icon/icon.component.html +0 -6
  518. package/src/lib/components/utils/icon/icon.component.spec.ts +0 -21
  519. package/src/lib/components/utils/icon/icon.component.ts +0 -95
  520. package/src/lib/components/utils/language-switcher/language-switcher.component.html +0 -21
  521. package/src/lib/components/utils/language-switcher/language-switcher.component.spec.ts +0 -21
  522. package/src/lib/components/utils/language-switcher/language-switcher.component.ts +0 -56
  523. package/src/lib/design-angular-kit.module.ts +0 -131
  524. package/src/lib/enums/colors.enums.ts +0 -10
  525. package/src/lib/enums/sizes.enum.ts +0 -7
  526. package/src/lib/interfaces/design-angular-kit-config.ts +0 -34
  527. package/src/lib/interfaces/form.ts +0 -78
  528. package/src/lib/interfaces/icon.ts +0 -176
  529. package/src/lib/interfaces/sortable-table.ts +0 -42
  530. package/src/lib/interfaces/utils.ts +0 -11
  531. package/src/lib/pipes/date-ago.pipe.ts +0 -57
  532. package/src/lib/pipes/duration.pipe.ts +0 -112
  533. package/src/lib/pipes/mark-matching-text.pipe.ts +0 -43
  534. package/src/lib/provide-design-angular-kit.ts +0 -73
  535. package/src/lib/services/notification/notification.service.spec.ts +0 -16
  536. package/src/lib/services/notification/notification.service.ts +0 -119
  537. package/src/lib/utils/date-utils.ts +0 -184
  538. package/src/lib/utils/file-utils.ts +0 -80
  539. package/src/lib/utils/regex.ts +0 -44
  540. package/src/lib/validators/it-validators.ts +0 -193
  541. package/src/test.ts +0 -26
  542. package/tsconfig.lib.json +0 -24
  543. package/tsconfig.lib.prod.json +0 -9
  544. package/tsconfig.schematics.json +0 -25
  545. package/tsconfig.spec.json +0 -9
  546. /package/schematics/ng-add/rules/setup-project/{index.ts → index.d.ts} +0 -0
@@ -1,25 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { ItSortHeaderComponent } from './sort-header.component';
4
- import { ItSortDirective } from '../sort.directive';
5
- import { tb_base } from '../../../../../../test';
6
-
7
- describe('ItSortHeaderComponent', () => {
8
- let component: ItSortHeaderComponent;
9
- let fixture: ComponentFixture<ItSortHeaderComponent>;
10
- const sortDirective: ItSortDirective = new ItSortDirective();
11
-
12
- beforeEach(() => {
13
- TestBed.configureTestingModule({
14
- imports: [ItSortHeaderComponent],
15
- providers: [{ provide: ItSortDirective, useValue: sortDirective }, ...tb_base.providers],
16
- });
17
- fixture = TestBed.createComponent(ItSortHeaderComponent);
18
- component = fixture.componentInstance;
19
- fixture.detectChanges();
20
- });
21
-
22
- it('should create', () => {
23
- expect(component).toBeTruthy();
24
- });
25
- });
@@ -1,164 +0,0 @@
1
- import {
2
- booleanAttribute,
3
- ChangeDetectionStrategy,
4
- ChangeDetectorRef,
5
- Component,
6
- HostBinding,
7
- HostListener,
8
- Inject,
9
- Input,
10
- OnDestroy,
11
- OnInit,
12
- Optional,
13
- ViewEncapsulation,
14
- } from '@angular/core';
15
- import { ItSortDirective } from '../sort.directive';
16
- import { merge, Subscription } from 'rxjs';
17
- import { ItIconComponent } from '../../../../utils/icon/icon.component';
18
- import { IconName } from '../../../../../interfaces/icon';
19
- import {
20
- IT_SORT_DEFAULT_OPTIONS,
21
- ItSortable,
22
- ItSortDefaultOptions,
23
- SortDirection,
24
- SortHeaderArrowPosition,
25
- } from '../../../../../interfaces/sortable-table';
26
-
27
- /**
28
- * Applies sorting behavior (click to change sort) and styles to an element, including an
29
- * arrow to display the current sort direction.
30
- *
31
- * Must be provided with an id and contained within a parent ItSort directive.
32
- *
33
- * If used on header cells in a CdkTable, it will automatically default its id from its containing
34
- * column definition.
35
- */
36
- @Component({
37
- // eslint-disable-next-line @angular-eslint/component-selector
38
- selector: '[it-sort-header]',
39
- exportAs: 'itSortHeader',
40
- standalone: true,
41
- imports: [ItIconComponent],
42
- templateUrl: './sort-header.component.html',
43
- styleUrls: ['./sort-header.component.scss'],
44
- encapsulation: ViewEncapsulation.None,
45
- changeDetection: ChangeDetectionStrategy.OnPush,
46
- })
47
- export class ItSortHeaderComponent implements ItSortable, OnDestroy, OnInit {
48
- /**
49
- * ID of this sort header. If used within the context of a CdkColumnDef, this will default to
50
- * the column's name.
51
- */
52
- @Input('it-sort-header') id!: string;
53
-
54
- /** Sets the position of the arrow that displays when sorted. */
55
- @Input() arrowPosition: SortHeaderArrowPosition = 'after';
56
-
57
- /** Overrides the sort start value of the containing MatSort for this SortHeaderComponent. */
58
- @Input() start?: SortDirection;
59
-
60
- /** whether the sort header is disabled. */
61
- @Input({ transform: booleanAttribute })
62
- sortDisabled: boolean = false;
63
-
64
- /** Overrides the disable clear value of the containing SortDirective for this MatSortable. */
65
- @Input({ transform: booleanAttribute })
66
- disableSortClear?: boolean;
67
-
68
- @HostBinding('class')
69
- public readonly sortHeaderClass = 'it-sort-header';
70
-
71
- private _rerenderSubscription?: Subscription;
72
-
73
- /** The direction the arrow should be facing according to the current state. */
74
- private _arrowDirection?: SortDirection;
75
-
76
- constructor(
77
- private readonly _changeDetectorRef: ChangeDetectorRef,
78
- // `SortDirective` is not optionally injected, but just asserted manually w/ better error.
79
- @Optional() public readonly _sort: ItSortDirective,
80
- @Optional() @Inject(IT_SORT_DEFAULT_OPTIONS) defaultOptions?: ItSortDefaultOptions
81
- ) {
82
- if (defaultOptions?.arrowPosition) {
83
- this.arrowPosition = defaultOptions?.arrowPosition;
84
- }
85
-
86
- this._handleStateChanges();
87
- }
88
-
89
- ngOnInit() {
90
- // Initialize the direction of the arrow and set the view state to be immediately that state.
91
- this.updateArrowDirection();
92
- this._sort.register(this);
93
- }
94
-
95
- ngOnDestroy() {
96
- this._sort.deregister(this);
97
- this._rerenderSubscription?.unsubscribe();
98
- }
99
-
100
- @HostListener('click')
101
- _handleClick() {
102
- if (!this.isDisabled) {
103
- this._sort.sort(this);
104
- }
105
- }
106
-
107
- /**
108
- * Whether this MatSortHeader is currently sorted in either ascending or descending order.
109
- */
110
- protected get isSorted() {
111
- return this._sort.active == this.id && (this._sort.direction === 'asc' || this._sort.direction === 'desc');
112
- }
113
-
114
- /**
115
- * Returns the icon class by the arrow direction
116
- */
117
- protected get arrowIconClass(): IconName {
118
- return `${this._arrowDirection == 'asc' ? 'arrow-up' : 'arrow-down'}`;
119
- }
120
-
121
- /**
122
- * Updates the direction the arrow should be pointing. If it is not sorted, the arrow should be
123
- * facing the start direction. Otherwise if it is sorted, the arrow should point in the currently
124
- * active sorted direction. The reason this is updated through a function is because the direction
125
- * should only be changed at specific times - when deactivated but the hint is displayed and when
126
- * the sort is active and the direction changes. Otherwise the arrow's direction should linger
127
- * in cases such as the sort becoming deactivated but we want to animate the arrow away while
128
- * preserving its direction, even though the next sort direction is actually different and should
129
- * only be changed once the arrow displays again (hint or activation).
130
- */
131
- private updateArrowDirection() {
132
- this._arrowDirection = this.isSorted ? this._sort.direction : this.start || this._sort.start;
133
- }
134
-
135
- @HostBinding('class.it-sort-header-disabled')
136
- public get isDisabled() {
137
- return this._sort.sortDisabled || this.sortDisabled;
138
- }
139
-
140
- /**
141
- * Gets the aria-sort attribute that should be applied to this sort header. If this header
142
- * is not sorted, returns null so that the attribute is removed from the host element. Aria spec
143
- * says that the aria-sort property should only be present on one header at a time, so removing
144
- * ensures this is true.
145
- */
146
- @HostBinding('attr.aria-sort')
147
- public get ariaSortAttribute() {
148
- if (!this.isSorted) {
149
- return 'none';
150
- }
151
-
152
- return this._sort.direction == 'asc' ? 'ascending' : 'descending';
153
- }
154
-
155
- /** Handles changes in the sorting state. */
156
- private _handleStateChanges() {
157
- this._rerenderSubscription = merge(this._sort.sortChange, this._sort._stateChanges).subscribe(() => {
158
- if (this.isSorted) {
159
- this.updateArrowDirection();
160
- }
161
- this._changeDetectorRef.markForCheck();
162
- });
163
- }
164
- }
@@ -1,73 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
- import { ItSortDirective } from './sort.directive';
3
- import { tb_base } from 'projects/design-angular-kit/src/test';
4
- import { ChangeDetectionStrategy, Component, DebugElement } from '@angular/core';
5
- import { By } from '@angular/platform-browser';
6
- import { ItSortHeaderComponent } from './sort-header/sort-header.component';
7
- import { ItSortEvent } from '../../../../interfaces/sortable-table';
8
-
9
- @Component({
10
- standalone: true,
11
- template: ` <it-table itSort (sortChange)="sortData($event)">
12
- <ng-container thead>
13
- <tr>
14
- <th it-sort-header="name" scope="col">Nome</th>
15
- </tr>
16
- </ng-container>
17
-
18
- <ng-container tbody>
19
- <tr>
20
- <td>Mario</td>
21
- </tr>
22
- <tr>
23
- <td>Alessandro</td>
24
- </tr>
25
- <tr>
26
- <td>Francesco</td>
27
- </tr>
28
- </ng-container>
29
- </it-table>`,
30
- imports: [ItSortDirective, ItSortHeaderComponent],
31
- })
32
- class TestComponent {
33
- sortData(event: ItSortEvent) {
34
- console.log(event);
35
- }
36
- }
37
-
38
- describe('ItSortDirective', () => {
39
- let component: TestComponent;
40
- let fixture: ComponentFixture<TestComponent>;
41
- let des: DebugElement[];
42
-
43
- beforeEach(async () => {
44
- await TestBed.configureTestingModule({
45
- imports: [ItSortDirective, ItSortHeaderComponent, TestComponent],
46
- providers: tb_base.providers,
47
- })
48
- .overrideComponent(TestComponent, {
49
- set: { changeDetection: ChangeDetectionStrategy.Default },
50
- })
51
- .compileComponents();
52
-
53
- fixture = TestBed.createComponent(TestComponent);
54
- component = fixture.componentInstance;
55
- fixture.detectChanges();
56
-
57
- // all elements with an attached SortDirective
58
- des = fixture.debugElement.queryAll(By.directive(ItSortHeaderComponent));
59
- });
60
-
61
- it('should create an instance', () => {
62
- const directive = new ItSortDirective();
63
- expect(directive).toBeTruthy();
64
- });
65
-
66
- it('should emit sort event', () => {
67
- const th = des[0].nativeElement as HTMLTableColElement;
68
- spyOn(component, 'sortData');
69
- th.dispatchEvent(new Event('click'));
70
- fixture.detectChanges();
71
- expect(component.sortData).toHaveBeenCalledWith({ active: 'name', direction: 'asc' });
72
- });
73
- });
@@ -1,142 +0,0 @@
1
- import {
2
- Directive,
3
- EventEmitter,
4
- Inject,
5
- Input,
6
- OnChanges,
7
- OnDestroy,
8
- Optional,
9
- Output,
10
- booleanAttribute,
11
- HostBinding,
12
- } from '@angular/core';
13
- import { Subject } from 'rxjs';
14
- import {
15
- IT_SORT_DEFAULT_OPTIONS,
16
- ItSortable,
17
- ItSortDefaultOptions,
18
- ItSortEvent,
19
- SortDirection,
20
- } from '../../../../interfaces/sortable-table';
21
-
22
- @Directive({
23
- standalone: true,
24
- selector: '[itSort]',
25
- exportAs: 'itSort',
26
- })
27
- export class ItSortDirective implements OnChanges, OnDestroy {
28
- /** The id of the most recently sorted ItSortable. */
29
- @Input('itSortActive') active?: string;
30
-
31
- /**
32
- * The direction to set when an MatSortable is initially sorted.
33
- * May be overridden by the MatSortable's sort start.
34
- */
35
- @Input('itSortStart') start: SortDirection = 'asc';
36
-
37
- /** The sort direction of the currently active ItSortable. */
38
- @Input('itSortDirection')
39
- get direction(): SortDirection {
40
- return this._direction;
41
- }
42
- set direction(direction: SortDirection) {
43
- this._direction = direction;
44
- }
45
- private _direction: SortDirection;
46
-
47
- /**
48
- * Whether to disable the user from clearing the sort by finishing the sort direction cycle.
49
- * May be overridden by the ItSortable's disable clear input.
50
- */
51
- @Input({ transform: booleanAttribute })
52
- disableSortClear?: boolean;
53
-
54
- /** Whether the sortable is disabled. */
55
- @Input({ transform: booleanAttribute })
56
- sortDisabled: boolean = false;
57
-
58
- /** Event emitted when the user changes either the active sort or sort direction. */
59
- @Output() readonly sortChange: EventEmitter<ItSortEvent> = new EventEmitter<ItSortEvent>();
60
-
61
- @HostBinding('class')
62
- public readonly sortDirectiveClass = 'it-sort';
63
-
64
- /** Collection of all registered sortables that this directive manages. */
65
- protected sortables = new Map<string, ItSortable>();
66
-
67
- /** Used to notify any child components listening to state changes. */
68
- readonly _stateChanges = new Subject<void>();
69
-
70
- constructor(
71
- @Optional()
72
- @Inject(IT_SORT_DEFAULT_OPTIONS)
73
- private _defaultOptions?: ItSortDefaultOptions
74
- ) {}
75
-
76
- /**
77
- * Register function to be used by the contained ItSortables. Adds the ItSortable to the
78
- * collection of ItSortables.
79
- */
80
- register(sortable: ItSortable): void {
81
- this.sortables.set(sortable.id, sortable);
82
- }
83
-
84
- /**
85
- * Unregister function to be used by the contained ItSortables. Removes the ItSortable from the
86
- * collection of contained ItSortables.
87
- */
88
- deregister(sortable: ItSortable): void {
89
- this.sortables.delete(sortable.id);
90
- }
91
-
92
- /** Sets the active sort id and determines the new sort direction. */
93
- sort(sortable: ItSortable): void {
94
- if (this.active != sortable.id) {
95
- this.active = sortable.id;
96
- this.direction = sortable.start ? sortable.start : this.start;
97
- } else {
98
- this.direction = this.getNextSortDirection(sortable);
99
- }
100
-
101
- this.sortChange.emit({ active: this.active, direction: this.direction });
102
- }
103
-
104
- /** Returns the next sort direction of the active sortable, checking for potential overrides. */
105
- getNextSortDirection(sortable: ItSortable): SortDirection {
106
- if (!sortable) {
107
- return undefined;
108
- }
109
-
110
- // Get the sort direction cycle with the potential sortable overrides.
111
- const disableClear = sortable?.disableSortClear ?? this.disableSortClear ?? !!this._defaultOptions?.disableClear;
112
- const sortDirectionCycle = getSortDirectionCycle(sortable.start || this.start, disableClear);
113
-
114
- // Get and return the next direction in the cycle
115
- let nextDirectionIndex = sortDirectionCycle.indexOf(this.direction) + 1;
116
- if (nextDirectionIndex >= sortDirectionCycle.length) {
117
- nextDirectionIndex = 0;
118
- }
119
- return sortDirectionCycle[nextDirectionIndex];
120
- }
121
-
122
- ngOnChanges() {
123
- this._stateChanges.next();
124
- }
125
-
126
- ngOnDestroy() {
127
- this._stateChanges.complete();
128
- }
129
- }
130
-
131
- /** Returns the sort direction cycle to use given the provided parameters of order and clear. */
132
- function getSortDirectionCycle(start: SortDirection, disableClear: boolean): Array<SortDirection | undefined> {
133
- const sortOrder: Array<SortDirection> = ['asc', 'desc'];
134
- if (start == 'desc') {
135
- sortOrder.reverse();
136
- }
137
- if (!disableClear) {
138
- sortOrder.push(undefined);
139
- }
140
-
141
- return sortOrder;
142
- }
@@ -1,23 +0,0 @@
1
- <div [class]="responsive ? 'table-' + responsive : undefined">
2
- <table
3
- class="table{{ color ? ' table-' + color : '' }}{{ alignment ? ' ' + alignment : '' }}"
4
- [class.table-striped]="striped"
5
- [class.table-hover]="hover"
6
- [class.table-bordered]="bordered"
7
- [class.table-borderless]="borderless"
8
- [class.table-sm]="compact"
9
- [class.caption-top]="captionTop">
10
- <caption>
11
- <ng-content select="[caption]"></ng-content>
12
- </caption>
13
- <thead [class]="headColor ? 'table-' + headColor : undefined">
14
- <ng-content select="[thead]"></ng-content>
15
- </thead>
16
- <tbody>
17
- <ng-content select="[tbody]"></ng-content>
18
- </tbody>
19
- <tfoot>
20
- <ng-content select="[tfoot]"></ng-content>
21
- </tfoot>
22
- </table>
23
- </div>
@@ -1,7 +0,0 @@
1
- caption:empty {
2
- display: none;
3
- }
4
-
5
- caption:empty ~ thead {
6
- border-top: none !important;
7
- }
@@ -1,21 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { ItTableComponent } from './table.component';
4
- import { tb_base } from '../../../../test';
5
-
6
- describe('ItTableComponent', () => {
7
- let component: ItTableComponent;
8
- let fixture: ComponentFixture<ItTableComponent>;
9
-
10
- beforeEach(async () => {
11
- await TestBed.configureTestingModule(tb_base).compileComponents();
12
-
13
- fixture = TestBed.createComponent(ItTableComponent);
14
- component = fixture.componentInstance;
15
- fixture.detectChanges();
16
- });
17
-
18
- it('should create', () => {
19
- expect(component).toBeTruthy();
20
- });
21
- });
@@ -1,70 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2
- import { TableColor, TableHeadColor, TableResponsive, VerticalAlignment } from '../../../interfaces/core';
3
- import { inputToBoolean } from '../../../utils/coercion';
4
-
5
- @Component({
6
- standalone: true,
7
- selector: 'it-table',
8
- templateUrl: './table.component.html',
9
- styleUrls: ['./table.component.scss'],
10
- changeDetection: ChangeDetectionStrategy.OnPush,
11
- imports: [],
12
- })
13
- export class ItTableComponent {
14
- /**
15
- * Table color
16
- */
17
- @Input() color: TableColor | undefined;
18
-
19
- /**
20
- * Head table color
21
- */
22
- @Input() headColor: TableHeadColor | undefined;
23
-
24
- /**
25
- * Use vertical alignment classes to realign where needed.
26
- */
27
- @Input() alignment: VerticalAlignment | undefined;
28
-
29
- /**
30
- * Use .table-striped to add zebra stripes to each table row contained in <tbody>.
31
- * @default false
32
- */
33
- @Input({ transform: inputToBoolean }) striped?: boolean;
34
-
35
- /**
36
- * Add .table-hover to enable hover state on table rows contained in <tbody>.
37
- * @default false
38
- */
39
- @Input({ transform: inputToBoolean }) hover?: boolean;
40
-
41
- /**
42
- * Add .table-bordered to have borders on all sides of the table and on all cells.
43
- * @default false
44
- */
45
- @Input({ transform: inputToBoolean }) bordered?: boolean;
46
-
47
- /**
48
- * Add the .table-borderless class for a borderless table.
49
- * @default false
50
- */
51
- @Input({ transform: inputToBoolean }) borderless?: boolean;
52
-
53
- /**
54
- * Add .table-sm to make tables more compact by halving the cell padding.
55
- * @efault false
56
- */
57
- @Input({ transform: inputToBoolean }) compact?: boolean;
58
-
59
- /**
60
- * To render the <caption> on top of the table
61
- * @default false
62
- */
63
- @Input({ transform: inputToBoolean }) captionTop?: boolean;
64
-
65
- /**
66
- * Responsive tables allow you to scroll tables horizontally with ease.
67
- * @default responsive
68
- */
69
- @Input() responsive: TableResponsive = 'responsive';
70
- }
@@ -1,12 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { ItTableComponent } from './table.component';
3
- import { ItSortDirective } from './sort/sort.directive';
4
- import { ItSortHeaderComponent } from './sort/sort-header/sort-header.component';
5
-
6
- const tableComponents = [ItTableComponent, ItSortDirective, ItSortHeaderComponent];
7
-
8
- @NgModule({
9
- imports: tableComponents,
10
- exports: tableComponents,
11
- })
12
- export class ItTableModule {}
@@ -1,47 +0,0 @@
1
- <div class="timeline-element">
2
- @if (pinType === 'now') {
3
- <span class="it-now-label d-none d-lg-flex">{{ 'it.timeline.today' | translate }}</span>
4
- }
5
- <h3 class="it-pin-wrapper" [ngClass]="{ 'it-evidence': pinType === 'evidence', 'it-now': pinType === 'now' }">
6
- <div class="pin-icon">
7
- @if (pinIcon) {
8
- <it-icon [name]="pinIcon" [title]="pinIconTitle" [attr.role]="pinIconTitle ? 'img' : null"></it-icon>
9
- } @else {
10
- <it-icon name="code-circle"></it-icon>
11
- }
12
- </div>
13
- <div class="pin-text">
14
- <span>{{ pinText }}</span>
15
- </div>
16
- </h3>
17
- <div class="card-wrapper">
18
- <div class="card">
19
- <div class="card-body">
20
- @if ((categoryTitle && categoryLink) || eventDate) {
21
- <div class="category-top">
22
- @if (categoryTitle) {
23
- <span class="visually-hidden">{{ categoryLabel }}</span>
24
- <a class="category" [href]="categoryLink">{{ categoryTitle }}</a>
25
- }
26
- @if (eventDate) {
27
- <span class="visually-hidden">{{ dateLabel }}</span>
28
- <span class="data">{{ eventDate | date: dateFormat }}</span>
29
- }
30
- </div>
31
- }
32
- <h4 class="card-title">{{ title }}</h4>
33
- <p class="card-text">{{ text }}</p>
34
- @if (signature) {
35
- <span class="card-signature">{{ signature }}</span>
36
- }
37
- @if (showReadMore) {
38
- <a class="read-more" [href]="readMoreLink">
39
- <span class="text">{{ 'it.timeline.read-more' | translate }}</span>
40
- <span class="visually-hidden">{{ 'it.timeline.read-more-on' | translate: { title: title } }}</span>
41
- <it-icon name="arrow-right"></it-icon>
42
- </a>
43
- }
44
- </div>
45
- </div>
46
- </div>
47
- </div>
@@ -1,24 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
- import { ItTimelineItemComponent } from './timeline-item.component';
3
- import { tb_base } from '../../../../../test';
4
-
5
- describe('ItTimelineItemComponent', () => {
6
- let component: ItTimelineItemComponent;
7
- let fixture: ComponentFixture<ItTimelineItemComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule(tb_base).compileComponents();
11
-
12
- // await TestBed.configureTestingModule({
13
- // imports: [ItTimelineItemComponent],
14
- // }).compileComponents();
15
-
16
- fixture = TestBed.createComponent(ItTimelineItemComponent);
17
- component = fixture.componentInstance;
18
- fixture.detectChanges();
19
- });
20
-
21
- it('should create', () => {
22
- expect(component).toBeTruthy();
23
- });
24
- });