@sarasanalytics-com/design-system 0.0.43 → 0.0.44

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 (378) hide show
  1. package/README.md +13 -34
  2. package/esm2022/interfaces/avatar-interface.mjs +2 -0
  3. package/esm2022/interfaces/button-interface.mjs +10 -0
  4. package/esm2022/interfaces/card-carousel-interface.mjs +2 -0
  5. package/esm2022/interfaces/chip-interface.mjs +2 -0
  6. package/esm2022/interfaces/grid-interface.mjs +2 -0
  7. package/esm2022/interfaces/guide-card-interface.mjs +2 -0
  8. package/esm2022/interfaces/icon-interface.mjs +16 -0
  9. package/esm2022/interfaces/message-banner.mjs +2 -0
  10. package/esm2022/interfaces/option-interface.mjs +2 -0
  11. package/esm2022/interfaces/select-interface.mjs +2 -0
  12. package/esm2022/interfaces/tab-interface.mjs +2 -0
  13. package/esm2022/interfaces/toast-interface.mjs +2 -0
  14. package/esm2022/lib/accordion/accordion.component.mjs +115 -0
  15. package/esm2022/lib/avatar/avatar.component.mjs +56 -0
  16. package/esm2022/lib/button/button.component.mjs +100 -0
  17. package/esm2022/lib/calendar-header/calendar-header.component.mjs +168 -0
  18. package/esm2022/lib/card/card-body/card-body.component.mjs +11 -0
  19. package/esm2022/lib/card/card-custom-header/card-custom-header.component.mjs +11 -0
  20. package/esm2022/lib/card/card-footer-actions/card-footer-actions.component.mjs +11 -0
  21. package/esm2022/lib/card/card-icon/card-icon.component.mjs +11 -0
  22. package/esm2022/lib/card/card-title-actions/card-title-actions.component.mjs +11 -0
  23. package/esm2022/lib/card/card.component.mjs +97 -0
  24. package/esm2022/lib/card/checkbox-card/checkbox-card.component.mjs +41 -0
  25. package/esm2022/lib/card/guide-card/guide-card.component.mjs +19 -0
  26. package/esm2022/lib/card-carousel/card-carousel.component.mjs +87 -0
  27. package/esm2022/lib/checkbox/checkbox.component.mjs +38 -0
  28. package/esm2022/lib/chips/chips.component.mjs +62 -0
  29. package/esm2022/lib/component-library.component.mjs +19 -0
  30. package/esm2022/lib/component-library.service.mjs +14 -0
  31. package/esm2022/lib/datepicker/datepicker.component.mjs +40 -0
  32. package/esm2022/lib/form-input/form-input.component.mjs +219 -0
  33. package/esm2022/lib/form-select/form-select.component.mjs +77 -0
  34. package/esm2022/lib/grid-cell/grid-cell.component.mjs +84 -0
  35. package/esm2022/lib/header/header.component.mjs +37 -0
  36. package/esm2022/lib/icon/icon.component.mjs +73 -0
  37. package/esm2022/lib/icon/icon.service.mjs +28 -0
  38. package/esm2022/lib/left-nav/left-nav.component.mjs +146 -0
  39. package/esm2022/lib/list/list.component.mjs +23 -0
  40. package/esm2022/lib/message-banner/message-banner.component.mjs +43 -0
  41. package/esm2022/lib/page-layout/page-layout.component.mjs +21 -0
  42. package/esm2022/lib/progress-bar/progress-bar.component.mjs +29 -0
  43. package/esm2022/lib/radio-button/radio-button.component.mjs +33 -0
  44. package/esm2022/lib/scrolling-cards/scrolling-cards.component.mjs +59 -0
  45. package/esm2022/lib/spinner/spinner.component.mjs +22 -0
  46. package/esm2022/lib/stepper/stepper.component.mjs +64 -0
  47. package/esm2022/lib/tabs/tabs.component.mjs +38 -0
  48. package/esm2022/lib/toast/toast.component.mjs +100 -0
  49. package/esm2022/lib/tool-tip/tool-tip.component.mjs +41 -0
  50. package/esm2022/public-api.mjs +56 -0
  51. package/esm2022/sarasanalytics-com-design-system.mjs +5 -0
  52. package/esm2022/utils/validators.mjs +97 -0
  53. package/fesm2022/sarasanalytics-com-design-system.mjs +1987 -0
  54. package/fesm2022/sarasanalytics-com-design-system.mjs.map +1 -0
  55. package/index.d.ts +5 -0
  56. package/interfaces/avatar-interface.d.ts +6 -0
  57. package/interfaces/button-interface.d.ts +22 -0
  58. package/{projects/component-library/src/interfaces/card-carousel-interface.ts → interfaces/card-carousel-interface.d.ts} +1 -2
  59. package/interfaces/chip-interface.d.ts +11 -0
  60. package/interfaces/grid-interface.d.ts +24 -0
  61. package/interfaces/icon-interface.d.ts +4 -0
  62. package/interfaces/select-interface.d.ts +20 -0
  63. package/interfaces/tab-interface.d.ts +6 -0
  64. package/{projects/component-library/src/interfaces/toast-interface.ts → interfaces/toast-interface.d.ts} +1 -1
  65. package/lib/accordion/accordion.component.d.ts +25 -0
  66. package/lib/avatar/avatar.component.d.ts +18 -0
  67. package/lib/button/button.component.d.ts +32 -0
  68. package/lib/calendar-header/calendar-header.component.d.ts +31 -0
  69. package/lib/card/card-body/card-body.component.d.ts +5 -0
  70. package/lib/card/card-custom-header/card-custom-header.component.d.ts +5 -0
  71. package/lib/card/card-footer-actions/card-footer-actions.component.d.ts +5 -0
  72. package/lib/card/card-icon/card-icon.component.d.ts +5 -0
  73. package/lib/card/card-title-actions/card-title-actions.component.d.ts +5 -0
  74. package/lib/card/card.component.d.ts +28 -0
  75. package/lib/card/checkbox-card/checkbox-card.component.d.ts +12 -0
  76. package/lib/card/guide-card/guide-card.component.d.ts +8 -0
  77. package/lib/card-carousel/card-carousel.component.d.ts +27 -0
  78. package/lib/checkbox/checkbox.component.d.ts +9 -0
  79. package/lib/chips/chips.component.d.ts +22 -0
  80. package/lib/component-library.component.d.ts +5 -0
  81. package/lib/component-library.service.d.ts +6 -0
  82. package/lib/datepicker/datepicker.component.d.ts +9 -0
  83. package/lib/form-input/form-input.component.d.ts +67 -0
  84. package/lib/form-select/form-select.component.d.ts +18 -0
  85. package/lib/grid-cell/grid-cell.component.d.ts +20 -0
  86. package/lib/header/header.component.d.ts +14 -0
  87. package/lib/icon/icon.component.d.ts +24 -0
  88. package/lib/icon/icon.service.d.ts +12 -0
  89. package/lib/left-nav/left-nav.component.d.ts +47 -0
  90. package/lib/list/list.component.d.ts +10 -0
  91. package/lib/message-banner/message-banner.component.d.ts +19 -0
  92. package/lib/page-layout/page-layout.component.d.ts +8 -0
  93. package/lib/progress-bar/progress-bar.component.d.ts +13 -0
  94. package/lib/radio-button/radio-button.component.d.ts +12 -0
  95. package/lib/scrolling-cards/scrolling-cards.component.d.ts +36 -0
  96. package/lib/spinner/spinner.component.d.ts +7 -0
  97. package/lib/stepper/stepper.component.d.ts +17 -0
  98. package/lib/tabs/tabs.component.d.ts +15 -0
  99. package/lib/toast/toast.component.d.ts +33 -0
  100. package/lib/tool-tip/tool-tip.component.d.ts +15 -0
  101. package/package.json +19 -74
  102. package/{projects/component-library/src/public-api.ts → public-api.d.ts} +0 -12
  103. package/utils/validators.d.ts +6 -0
  104. package/.editorconfig +0 -16
  105. package/.eslintrc.json +0 -23
  106. package/.storybook/main.ts +0 -21
  107. package/.storybook/manager.ts +0 -17
  108. package/.storybook/preview-head.html +0 -5
  109. package/.storybook/preview.ts +0 -66
  110. package/.storybook/tsconfig.doc.json +0 -10
  111. package/.storybook/tsconfig.json +0 -11
  112. package/.storybook/typings.d.ts +0 -4
  113. package/.vscode/extensions.json +0 -7
  114. package/.vscode/launch.json +0 -20
  115. package/.vscode/settings.json +0 -13
  116. package/.vscode/tasks.json +0 -42
  117. package/angular.json +0 -195
  118. package/build-storybook.log +0 -45
  119. package/documentation.json +0 -0
  120. package/generate-public-api.js +0 -59
  121. package/projects/component-library/README.md +0 -24
  122. package/projects/component-library/ng-package.json +0 -8
  123. package/projects/component-library/package.json +0 -12
  124. package/projects/component-library/src/interfaces/avatar-interface.ts +0 -6
  125. package/projects/component-library/src/interfaces/button-interface.ts +0 -37
  126. package/projects/component-library/src/interfaces/chip-interface.ts +0 -11
  127. package/projects/component-library/src/interfaces/grid-interface.ts +0 -24
  128. package/projects/component-library/src/interfaces/icon-interface.ts +0 -21
  129. package/projects/component-library/src/interfaces/select-interface.ts +0 -20
  130. package/projects/component-library/src/interfaces/tab-interface.ts +0 -6
  131. package/projects/component-library/src/lib/accordion/accordion.component.css +0 -188
  132. package/projects/component-library/src/lib/accordion/accordion.component.html +0 -151
  133. package/projects/component-library/src/lib/accordion/accordion.component.spec.ts +0 -23
  134. package/projects/component-library/src/lib/accordion/accordion.component.ts +0 -129
  135. package/projects/component-library/src/lib/avatar/avatar.component.css +0 -48
  136. package/projects/component-library/src/lib/avatar/avatar.component.html +0 -5
  137. package/projects/component-library/src/lib/avatar/avatar.component.spec.ts +0 -23
  138. package/projects/component-library/src/lib/avatar/avatar.component.ts +0 -50
  139. package/projects/component-library/src/lib/button/button.component.css +0 -145
  140. package/projects/component-library/src/lib/button/button.component.html +0 -25
  141. package/projects/component-library/src/lib/button/button.component.spec.ts +0 -23
  142. package/projects/component-library/src/lib/button/button.component.ts +0 -82
  143. package/projects/component-library/src/lib/calendar-header/calendar-header.component.css +0 -67
  144. package/projects/component-library/src/lib/calendar-header/calendar-header.component.html +0 -20
  145. package/projects/component-library/src/lib/calendar-header/calendar-header.component.spec.ts +0 -23
  146. package/projects/component-library/src/lib/calendar-header/calendar-header.component.ts +0 -191
  147. package/projects/component-library/src/lib/card/card-body/card-body.component.css +0 -0
  148. package/projects/component-library/src/lib/card/card-body/card-body.component.html +0 -1
  149. package/projects/component-library/src/lib/card/card-body/card-body.component.spec.ts +0 -23
  150. package/projects/component-library/src/lib/card/card-body/card-body.component.ts +0 -12
  151. package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.css +0 -70
  152. package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.html +0 -1
  153. package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.spec.ts +0 -23
  154. package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.ts +0 -13
  155. package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.css +0 -4
  156. package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.html +0 -3
  157. package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.spec.ts +0 -23
  158. package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.ts +0 -12
  159. package/projects/component-library/src/lib/card/card-icon/card-icon.component.css +0 -0
  160. package/projects/component-library/src/lib/card/card-icon/card-icon.component.html +0 -1
  161. package/projects/component-library/src/lib/card/card-icon/card-icon.component.spec.ts +0 -23
  162. package/projects/component-library/src/lib/card/card-icon/card-icon.component.ts +0 -12
  163. package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.css +0 -3
  164. package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.html +0 -1
  165. package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.spec.ts +0 -23
  166. package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.ts +0 -12
  167. package/projects/component-library/src/lib/card/card.component.css +0 -149
  168. package/projects/component-library/src/lib/card/card.component.html +0 -46
  169. package/projects/component-library/src/lib/card/card.component.spec.ts +0 -23
  170. package/projects/component-library/src/lib/card/card.component.ts +0 -47
  171. package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.css +0 -79
  172. package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.html +0 -55
  173. package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.spec.ts +0 -23
  174. package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.ts +0 -44
  175. package/projects/component-library/src/lib/card/guide-card/guide-card.component.css +0 -80
  176. package/projects/component-library/src/lib/card/guide-card/guide-card.component.html +0 -24
  177. package/projects/component-library/src/lib/card/guide-card/guide-card.component.spec.ts +0 -23
  178. package/projects/component-library/src/lib/card/guide-card/guide-card.component.ts +0 -19
  179. package/projects/component-library/src/lib/card-carousel/card-carousel.component.css +0 -91
  180. package/projects/component-library/src/lib/card-carousel/card-carousel.component.html +0 -54
  181. package/projects/component-library/src/lib/card-carousel/card-carousel.component.spec.ts +0 -23
  182. package/projects/component-library/src/lib/card-carousel/card-carousel.component.ts +0 -89
  183. package/projects/component-library/src/lib/checkbox/checkbox.component.css +0 -79
  184. package/projects/component-library/src/lib/checkbox/checkbox.component.html +0 -27
  185. package/projects/component-library/src/lib/checkbox/checkbox.component.spec.ts +0 -23
  186. package/projects/component-library/src/lib/checkbox/checkbox.component.ts +0 -38
  187. package/projects/component-library/src/lib/chips/chips.component.css +0 -129
  188. package/projects/component-library/src/lib/chips/chips.component.html +0 -17
  189. package/projects/component-library/src/lib/chips/chips.component.spec.ts +0 -23
  190. package/projects/component-library/src/lib/chips/chips.component.ts +0 -54
  191. package/projects/component-library/src/lib/component-library.component.spec.ts +0 -23
  192. package/projects/component-library/src/lib/component-library.component.ts +0 -16
  193. package/projects/component-library/src/lib/component-library.service.spec.ts +0 -16
  194. package/projects/component-library/src/lib/component-library.service.ts +0 -9
  195. package/projects/component-library/src/lib/datepicker/datepicker.component.css +0 -33
  196. package/projects/component-library/src/lib/datepicker/datepicker.component.html +0 -11
  197. package/projects/component-library/src/lib/datepicker/datepicker.component.spec.ts +0 -23
  198. package/projects/component-library/src/lib/datepicker/datepicker.component.ts +0 -36
  199. package/projects/component-library/src/lib/form-input/form-input.component.css +0 -164
  200. package/projects/component-library/src/lib/form-input/form-input.component.html +0 -55
  201. package/projects/component-library/src/lib/form-input/form-input.component.spec.ts +0 -23
  202. package/projects/component-library/src/lib/form-input/form-input.component.ts +0 -282
  203. package/projects/component-library/src/lib/form-select/form-select.component.css +0 -158
  204. package/projects/component-library/src/lib/form-select/form-select.component.html +0 -38
  205. package/projects/component-library/src/lib/form-select/form-select.component.spec.ts +0 -23
  206. package/projects/component-library/src/lib/form-select/form-select.component.ts +0 -72
  207. package/projects/component-library/src/lib/grid-cell/grid-cell.component.css +0 -78
  208. package/projects/component-library/src/lib/grid-cell/grid-cell.component.html +0 -31
  209. package/projects/component-library/src/lib/grid-cell/grid-cell.component.spec.ts +0 -23
  210. package/projects/component-library/src/lib/grid-cell/grid-cell.component.ts +0 -89
  211. package/projects/component-library/src/lib/header/header.component.css +0 -62
  212. package/projects/component-library/src/lib/header/header.component.html +0 -23
  213. package/projects/component-library/src/lib/header/header.component.spec.ts +0 -23
  214. package/projects/component-library/src/lib/header/header.component.ts +0 -28
  215. package/projects/component-library/src/lib/icon/icon.component.css +0 -65
  216. package/projects/component-library/src/lib/icon/icon.component.html +0 -9
  217. package/projects/component-library/src/lib/icon/icon.component.ts +0 -64
  218. package/projects/component-library/src/lib/icon/icon.service.ts +0 -26
  219. package/projects/component-library/src/lib/left-nav/left-nav.component.css +0 -109
  220. package/projects/component-library/src/lib/left-nav/left-nav.component.html +0 -51
  221. package/projects/component-library/src/lib/left-nav/left-nav.component.spec.ts +0 -23
  222. package/projects/component-library/src/lib/left-nav/left-nav.component.ts +0 -180
  223. package/projects/component-library/src/lib/list/list.component.css +0 -28
  224. package/projects/component-library/src/lib/list/list.component.html +0 -10
  225. package/projects/component-library/src/lib/list/list.component.spec.ts +0 -23
  226. package/projects/component-library/src/lib/list/list.component.ts +0 -15
  227. package/projects/component-library/src/lib/message-banner/message-banner.component.css +0 -52
  228. package/projects/component-library/src/lib/message-banner/message-banner.component.html +0 -15
  229. package/projects/component-library/src/lib/message-banner/message-banner.component.spec.ts +0 -23
  230. package/projects/component-library/src/lib/message-banner/message-banner.component.ts +0 -31
  231. package/projects/component-library/src/lib/page-layout/page-layout.component.css +0 -76
  232. package/projects/component-library/src/lib/page-layout/page-layout.component.html +0 -30
  233. package/projects/component-library/src/lib/page-layout/page-layout.component.spec.ts +0 -23
  234. package/projects/component-library/src/lib/page-layout/page-layout.component.ts +0 -14
  235. package/projects/component-library/src/lib/progress-bar/progress-bar.component.css +0 -30
  236. package/projects/component-library/src/lib/progress-bar/progress-bar.component.html +0 -4
  237. package/projects/component-library/src/lib/progress-bar/progress-bar.component.spec.ts +0 -23
  238. package/projects/component-library/src/lib/progress-bar/progress-bar.component.ts +0 -24
  239. package/projects/component-library/src/lib/radio-button/radio-button.component.css +0 -128
  240. package/projects/component-library/src/lib/radio-button/radio-button.component.html +0 -28
  241. package/projects/component-library/src/lib/radio-button/radio-button.component.spec.ts +0 -23
  242. package/projects/component-library/src/lib/radio-button/radio-button.component.ts +0 -35
  243. package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.css +0 -118
  244. package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.html +0 -11
  245. package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.spec.ts +0 -23
  246. package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.ts +0 -74
  247. package/projects/component-library/src/lib/spinner/spinner.component.css +0 -41
  248. package/projects/component-library/src/lib/spinner/spinner.component.html +0 -1
  249. package/projects/component-library/src/lib/spinner/spinner.component.spec.ts +0 -23
  250. package/projects/component-library/src/lib/spinner/spinner.component.ts +0 -15
  251. package/projects/component-library/src/lib/stepper/stepper.component.css +0 -96
  252. package/projects/component-library/src/lib/stepper/stepper.component.html +0 -14
  253. package/projects/component-library/src/lib/stepper/stepper.component.spec.ts +0 -23
  254. package/projects/component-library/src/lib/stepper/stepper.component.ts +0 -61
  255. package/projects/component-library/src/lib/tabs/tabs.component.css +0 -100
  256. package/projects/component-library/src/lib/tabs/tabs.component.html +0 -16
  257. package/projects/component-library/src/lib/tabs/tabs.component.spec.ts +0 -23
  258. package/projects/component-library/src/lib/tabs/tabs.component.ts +0 -37
  259. package/projects/component-library/src/lib/toast/toast.component.css +0 -115
  260. package/projects/component-library/src/lib/toast/toast.component.html +0 -29
  261. package/projects/component-library/src/lib/toast/toast.component.spec.ts +0 -23
  262. package/projects/component-library/src/lib/toast/toast.component.ts +0 -87
  263. package/projects/component-library/src/lib/tool-tip/tool-tip.component.css +0 -144
  264. package/projects/component-library/src/lib/tool-tip/tool-tip.component.html +0 -31
  265. package/projects/component-library/src/lib/tool-tip/tool-tip.component.spec.ts +0 -23
  266. package/projects/component-library/src/lib/tool-tip/tool-tip.component.ts +0 -37
  267. package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.css +0 -0
  268. package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.html +0 -22
  269. package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.spec.ts +0 -23
  270. package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.ts +0 -13
  271. package/projects/component-library/src/utils/validators.ts +0 -100
  272. package/projects/component-library/tsconfig.lib.json +0 -14
  273. package/projects/component-library/tsconfig.lib.prod.json +0 -10
  274. package/projects/component-library/tsconfig.spec.json +0 -14
  275. package/sarasanalytics-com-design-system-0.0.21.tgz +0 -0
  276. package/src/Saras-logo.svg +0 -15
  277. package/src/app/app.component.css +0 -82
  278. package/src/app/app.component.html +0 -663
  279. package/src/app/app.component.spec.ts +0 -29
  280. package/src/app/app.component.ts +0 -1341
  281. package/src/app/app.config.ts +0 -56
  282. package/src/app/app.routes.ts +0 -3
  283. package/src/app/data.ts +0 -52
  284. package/src/app/kitchen-sink/kitchen-sink.component.css +0 -30
  285. package/src/app/kitchen-sink/kitchen-sink.component.html +0 -7
  286. package/src/app/kitchen-sink/kitchen-sink.component.spec.ts +0 -23
  287. package/src/app/kitchen-sink/kitchen-sink.component.ts +0 -92
  288. package/src/assets/.gitkeep +0 -0
  289. package/src/assets/analysis.svg +0 -1
  290. package/src/assets/arrowRightOutlined.svg +0 -1
  291. package/src/assets/avatar.svg +0 -1
  292. package/src/assets/bpn.svg +0 -1
  293. package/src/assets/businessStatsFilled.svg +0 -1
  294. package/src/assets/channelkey.svg +0 -1
  295. package/src/assets/chatHelpOutlined.svg +0 -1
  296. package/src/assets/checkCircleFilled.svg +0 -1
  297. package/src/assets/checkCircleOutlined.svg +0 -1
  298. package/src/assets/checkOutlined.svg +0 -1
  299. package/src/assets/circleFilled.svg +0 -1
  300. package/src/assets/closeBlueOutlined.svg +0 -1
  301. package/src/assets/closeCircleFilled.svg +0 -1
  302. package/src/assets/closeOutlined.svg +0 -1
  303. package/src/assets/dataonavatar.svg +0 -1
  304. package/src/assets/datonAvatar.png +0 -0
  305. package/src/assets/desktopSpeakerOutlined.svg +0 -1
  306. package/src/assets/disabledCheckboxFilled.svg +0 -1
  307. package/src/assets/doubleDownOutlined.svg +0 -1
  308. package/src/assets/downChevronOutlined.svg +0 -3
  309. package/src/assets/downOutlined.svg +0 -1
  310. package/src/assets/errorCircleOutlined.svg +0 -1
  311. package/src/assets/errorCrossOutlined.svg +0 -3
  312. package/src/assets/eyeFilled.svg +0 -1
  313. package/src/assets/eyeOff.svg +0 -3
  314. package/src/assets/eyeOutlined.svg +0 -1
  315. package/src/assets/formDetailsOutlined.svg +0 -1
  316. package/src/assets/gridViewOutlined.svg +0 -1
  317. package/src/assets/headsetOutlined.svg +0 -3
  318. package/src/assets/homeOutlined.svg +0 -1
  319. package/src/assets/icons/analysis1.svg +0 -1
  320. package/src/assets/infoCircleOutlined.svg +0 -3
  321. package/src/assets/infoTriangleFilled.svg +0 -1
  322. package/src/assets/infoTriangleOutlined.svg +0 -1
  323. package/src/assets/innosupps.svg +0 -1
  324. package/src/assets/leftChevronCircle.svg +0 -2
  325. package/src/assets/locationOutlined.svg +0 -1
  326. package/src/assets/loginDashboard.png +0 -0
  327. package/src/assets/mailOutlined.svg +0 -1
  328. package/src/assets/multiConnectionHub.svg +0 -1
  329. package/src/assets/murad.svg +0 -1
  330. package/src/assets/personOutlined.svg +0 -1
  331. package/src/assets/pricingIcon.svg +0 -3
  332. package/src/assets/rightChevronCircle.svg +0 -1
  333. package/src/assets/rightChevronOutlined.svg +0 -1
  334. package/src/assets/sarasFullLogo.svg +0 -13
  335. package/src/assets/sarasWhite.svg +0 -1
  336. package/src/assets/settingsOutlined.svg +0 -1
  337. package/src/assets/sourcesOutlined.svg +0 -1
  338. package/src/assets/tabDesktopArrowClockwiseOutlined.svg +0 -1
  339. package/src/assets/targetScanOutlined.svg +0 -1
  340. package/src/assets/timerOutlined.svg +0 -5
  341. package/src/assets/upwardTriangleFilled.svg +0 -1
  342. package/src/custom-theme.scss +0 -37
  343. package/src/favicon.ico +0 -0
  344. package/src/index.html +0 -23
  345. package/src/main.ts +0 -6
  346. package/src/stories/GettingStarted.mdx +0 -233
  347. package/src/stories/KitchenSink.stories.ts +0 -109
  348. package/src/stories/accordion.stories.ts +0 -234
  349. package/src/stories/avatar.stories.ts +0 -45
  350. package/src/stories/card-carousel.stories.ts +0 -136
  351. package/src/stories/card.stories.ts +0 -242
  352. package/src/stories/checkbox.stories.ts +0 -238
  353. package/src/stories/chips.stories.ts +0 -61
  354. package/src/stories/custom-button.stories.ts +0 -89
  355. package/src/stories/datepicker.stories.ts +0 -78
  356. package/src/stories/form-input.stories.ts +0 -166
  357. package/src/stories/gridCell.stories.ts +0 -234
  358. package/src/stories/header.stories.ts +0 -61
  359. package/src/stories/icon.stories.ts +0 -65
  360. package/src/stories/leftnav.stories.ts +0 -67
  361. package/src/stories/message-banner.stories.ts +0 -116
  362. package/src/stories/page-layout.stories.ts +0 -200
  363. package/src/stories/progress-bar.stories.ts +0 -40
  364. package/src/stories/radio-button.stories.ts +0 -80
  365. package/src/stories/scrolling-card.stories.ts +0 -36
  366. package/src/stories/selectInput.stories.ts +0 -176
  367. package/src/stories/stepper.stories.ts +0 -92
  368. package/src/stories/tabs.stories.ts +0 -97
  369. package/src/stories/toast.stories.ts +0 -74
  370. package/src/stories/tool-tip.stories.ts +0 -45
  371. package/src/svg.d.ts +0 -1
  372. package/tsconfig.app.json +0 -14
  373. package/tsconfig.json +0 -42
  374. package/tsconfig.spec.json +0 -14
  375. /package/{projects/component-library/src/interfaces/guide-card-interface.ts → interfaces/guide-card-interface.d.ts} +0 -0
  376. /package/{projects/component-library/src/interfaces/message-banner.ts → interfaces/message-banner.d.ts} +0 -0
  377. /package/{projects/component-library/src/interfaces/option-interface.ts → interfaces/option-interface.d.ts} +0 -0
  378. /package/{src → styles}/styles.css +0 -0
@@ -1,158 +0,0 @@
1
- .idle {
2
- --border: 1px solid var(--grey-50);
3
- }
4
-
5
- .activated {
6
- --border: 1px solid var(--primary-300);
7
- }
8
-
9
- .disabled {
10
- border: 1px solid var(--grey-50) !important;
11
- }
12
-
13
- .ng-select-field:hover {
14
- --border: 1px solid var(--primary-300);
15
- --font-color: var(--text-highemphasis);
16
- }
17
-
18
- .ng-select-field {
19
- width: 100%;
20
- box-sizing: border-box;
21
- position: relative;
22
- display: inline-flex;
23
- padding: 0px var(--small-12px);
24
- height: 40px;
25
- justify-content: center;
26
- align-items: center;
27
- border: var(--border);
28
- border-radius: var(--small-4px);
29
- font-family: var(--font);
30
- font-size: 14px;
31
- font-style: normal;
32
- font-weight: 400;
33
- line-height: 20px;
34
- letter-spacing: 0.25px;
35
- --font-color: var(--text-lowemphasis);
36
- }
37
-
38
- .ng-select {
39
- width: inherit;
40
- display: inline-flex;
41
- justify-content: center;
42
- align-items: center;
43
- flex-shrink: 0;
44
- }
45
-
46
- .ng-select ::ng-deep .ng-select-container {
47
- display: inline-flex;
48
-
49
- justify-content: center;
50
- align-items: center;
51
- flex-shrink: 0;
52
- font-family: var(--font);
53
- box-sizing: border-box;
54
- border: none;
55
- }
56
-
57
- .ng-select ::ng-deep .ng-dropdown-panel {
58
- margin-top: 2px;
59
- border: 1px solid var(--grey-50);
60
- box-shadow: none !important;
61
- }
62
-
63
- .ng-select ::ng-deep .ng-select-container {
64
- box-shadow: none !important;
65
- position: relative !important;
66
- z-index: 1 !important;
67
- }
68
-
69
- .ng-select ::ng-deep .ng-value-container {
70
- padding: 0 !important;
71
- flex-wrap: nowrap !important;
72
- display: flex;
73
- justify-content: flex-start;
74
- gap: 5px;
75
- overflow-x: hidden;
76
- }
77
-
78
- .ng-select ::ng-deep .ng-value {
79
- flex: none;
80
- margin: 0 !important;
81
- }
82
-
83
- .overflow-label {
84
- padding: 0px 5px;
85
- cursor: pointer;
86
- }
87
-
88
- .ng-select ::ng-deep .ng-placeholder {
89
- padding: 0 !important;
90
- position: inherit !important;
91
- color: var(--text-lowemphasis);
92
- }
93
-
94
- .ng-select ::ng-deep .ng-input {
95
- padding: 0 !important;
96
- position: inherit !important;
97
- }
98
-
99
- .ng-select ::ng-deep .ng-clear-wrapper {
100
- z-index: 9;
101
- display: flex;
102
- margin-left: 5px;
103
- }
104
-
105
-
106
- .ng-select ::ng-deep .ng-arrow {
107
- border-color: none !important;
108
- border-style: none !important;
109
- border-width: 0 !important;
110
- }
111
-
112
- .svg-icon {
113
- mask-size: contain;
114
- width: 20px;
115
- height: 20px;
116
- background-color: grey;
117
- }
118
-
119
- .svg-icon:hover {
120
- cursor: pointer;
121
- }
122
-
123
- .ng-select ::ng-deep .ng-arrow-wrapper,
124
- ::ng-deep .ng-select-filtered .ng-select-container .ng-value-container .ng-value {
125
- display: none;
126
- }
127
-
128
- .support-label {
129
- font-family: var(--font);
130
- font-size: 11px;
131
- font-style: normal;
132
- font-weight: 400;
133
- line-height: 16px;
134
- letter-spacing: 0.5px;
135
- color: var(--text-lowemphasis);
136
- padding: var(--small-4px) var(--small-16px) 0px var(--small-16px);
137
- }
138
-
139
- .clicked-label {
140
- position: relative;
141
- width: max-content;
142
-
143
- font-family: var(--font);
144
- font-size: 11px;
145
- font-style: normal;
146
- font-weight: 500;
147
- line-height: 16px;
148
- letter-spacing: 0.5px;
149
-
150
- color: var(--text-lowemphasis);
151
-
152
- padding: 0 var(--small-8px);
153
- margin-left: 12px;
154
- margin-bottom: -8px;
155
- z-index: 99;
156
-
157
- background-color: white;
158
- }
@@ -1,38 +0,0 @@
1
- <div [style.visibility]="(openState || topLabel) ? 'visible' : 'hidden'" class="clicked-label">{{params.label}}</div>
2
- <div class="ng-select-field {{openState ? 'activated' : 'idle'}} {{field.props.disabled ? 'disabled' : ''}}">
3
-
4
- <div role="button" title="drop-button" tabindex="0" class="left-icon svg-icon" [style]="svgStyle"
5
- (click)="openClose(true)" (blur)="openClose(false)"
6
- *ngIf="(params.dropIconPosition == 'left' || params.dropIconPosition == 'both')">
7
- </div>
8
-
9
- <ng-select (change)="checkForZero($event)" (remove)="shiftLabel('removed')" (clear)="shiftLabel('cleared')"
10
- (search)="openClose(true)" (focus)="openClose(true)" (blur)=" openClose(false)" [isOpen]="openState"
11
- [placeholder]="placeholderLabel" bindLabel="name" [items]="selectables" [multiple]="params.multiple"
12
- [formControl]="formControl" [style] [formlyAttributes]="field" [searchable]="field.props['searchable']">
13
- <ng-template ng-multi-label-tmp let-items="items" let-clear="clear">
14
- <div *ngFor="let item of (items ? items.slice(startInd,startInd+labelLimit): [])">
15
- <sa-chip (onClickEvent)=" (!field.props.disabled) ? clear(item) : null" [id]="item.id"
16
- [iconPath]="params.iconPath" [text]="item.name" [type]="params.type"
17
- [state]="field.props.disabled ? 'neutral' : params.state" [filling]="params.filling"
18
- [iconPosition]="params.iconPosition">
19
- </sa-chip>
20
- </div>
21
- <div (click)="shiftLabel('clicked')" class="ng-value overflow-label" *ngIf="items.length > (startInd+labelLimit)">
22
- <sa-chip text="+{{items.length-(startInd+labelLimit)}}" type="regular" state="default" filling="filled">
23
- </sa-chip>
24
- </div>
25
- <div (click)="shiftLabel('cleared')" *ngIf="startInd == items.length-labelLimit" class="ng-value overflow-label">
26
- <sa-chip text="..." type="regular" state="default" filling="filled">
27
- </sa-chip>
28
- </div>
29
- </ng-template>
30
- </ng-select>
31
-
32
- <div role="button" title="drop-button" tabindex="0" class="right-icon svg-icon" [style]="svgStyle"
33
- (click)="openClose(true)" (blur)="openClose(false)"
34
- *ngIf="(params.dropIconPosition == 'right' || params.dropIconPosition == 'both')">
35
- </div>
36
-
37
- </div>
38
- <div class="support-label">{{params.supportText}}</div>
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { FormSelectComponent } from './form-select.component';
4
-
5
- describe('FormSelectComponent', () => {
6
- let component: FormSelectComponent;
7
- let fixture: ComponentFixture<FormSelectComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [FormSelectComponent]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(FormSelectComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,72 +0,0 @@
1
- import { Component } from '@angular/core';
2
- import { ReactiveFormsModule } from '@angular/forms';
3
- import { FormlyModule } from '@ngx-formly/core';
4
- import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
5
- import { NgSelectModule } from '@ng-select/ng-select';
6
- import { ChipsComponent } from '../chips/chips.component';
7
- import { NgIf, NgFor } from '@angular/common';
8
-
9
- @Component({
10
- selector: 'lib-form-select',
11
- standalone: true,
12
- imports: [
13
- ReactiveFormsModule,
14
- FormlyModule,
15
- ReactiveFormsModule,
16
- NgSelectModule,
17
- ChipsComponent,
18
- NgIf,
19
- NgFor
20
- ],
21
- templateUrl: './form-select.component.html',
22
- styleUrl: './form-select.component.css'
23
- })
24
- export class FormSelectComponent extends FieldType<FieldTypeConfig> {
25
- selectables: any;
26
- params: any;
27
-
28
- svgStyle = {};
29
- openState: boolean = false;
30
- topLabel: boolean;
31
- startInd: number = 0;
32
- labelLimit: number = 2;
33
-
34
- placeholderLabel: string;
35
-
36
- ngOnInit() {
37
- this.selectables = this.field.props.options;
38
- this.params = this.field.props['params'];
39
- this.placeholderLabel = this.params.label;
40
- console.log('search', this.field.props['searchable'])
41
- this.svgStyle = {
42
- '-webkit-mask-image': `url(${this.params.dropIcon})})`,
43
- 'mask-image': `url(${this.params.dropIcon})`,
44
- }
45
- }
46
- openClose(state: boolean) {
47
- if (this.field.props.disabled) return;
48
- this.openState = state;
49
- if (state || this.formControl.value?.length > 0) {
50
- this.placeholderLabel = '';
51
- } else {
52
- this.placeholderLabel = this.params.label;
53
- }
54
- }
55
- shiftLabel(action: string) {
56
- if (action == 'clicked') this.startInd++;
57
- if (action == 'cleared') this.startInd = 0;
58
- if (action == 'removed' && this.startInd > 0) this.startInd--;
59
- }
60
- checkForZero(selected: any, state?: boolean) {
61
- this.topLabel = selected?.length == 0 ? false : true;
62
- // console.log("test", this.formControl.value?.length)
63
- // console.log("test", this.openState)
64
- // console.log("placeholder--- ", this.placeholderLabel)
65
- // console.log("params.label--- ", this.params.label)
66
- if (this.openState || this.formControl.value?.length > 0) {
67
- this.placeholderLabel = '';
68
- } else {
69
- this.placeholderLabel = this.params.label;
70
- }
71
- }
72
- }
@@ -1,78 +0,0 @@
1
- .header {
2
- --bg: var(--primary-50);
3
- --color: var(--text-highemphasis);
4
- --border: none;
5
- --flex-direction: left;
6
- }
7
-
8
- .header:hover {
9
- cursor: pointer;
10
- }
11
-
12
- .row {
13
- --color: var(--text-highemphasis);
14
- --cursor: default;
15
- --border: var(--grey-50);
16
- --flex-direction: left;
17
- }
18
-
19
- .numeric {
20
- --color: var(--text-highemphasis);
21
- --cursor: default;
22
- --border: var(--grey-50);
23
- --flex-direction: right;
24
- }
25
-
26
- .interactive {
27
- --color: var(--primary-500);
28
- --cursor: pointer;
29
- --border: var(--grey-50);
30
- --flex-direction: left;
31
- }
32
-
33
- .grid-cell {
34
- display: flex;
35
- height: 48px;
36
- padding: var(--small-12px);
37
- justify-content: var(--flex-direction);
38
- align-items: center;
39
- gap: var(--small-8px);
40
- flex-shrink: 0;
41
-
42
- font-family: var(--font);
43
- box-sizing: border-box;
44
- border-bottom: 1px solid var(--border);
45
-
46
- width: calc(100% - 20px);
47
- background-color: var(--bg);
48
- }
49
-
50
- .grid-text {
51
- display: flex;
52
- flex-direction: column;
53
- }
54
-
55
- .main-text {
56
- color: var(--color);
57
- font-size: 14px;
58
- font-weight: 400;
59
- height: 20px;
60
- line-height: 20px;
61
- }
62
-
63
- .main-text:hover {
64
- cursor: var(--cursor);
65
- }
66
-
67
- .sub-text {
68
- font-size: 11px;
69
- font-weight: 400;
70
- height: 16px;
71
- line-height: 16px;
72
- color: var(--text-mediumemphasis);
73
- }
74
-
75
- .icons {
76
- width: var(--medium-20px);
77
- height: var(--medium-20px);
78
- }
@@ -1,31 +0,0 @@
1
- <div class="grid-cell {{params.cellType}}">
2
-
3
- <img class="icons" src={{params.iconPath}} [style.display]="(params.viewLeadingIcon) ? 'block' : 'none'" alt="">
4
-
5
- <sa-avatar [id]="params.avatarConfig?.id" [altText]="params.avatarConfig?.altText"
6
- [imagePath]="params.avatarConfig?.imagePath" [size]="params.avatarConfig?.size"
7
- [style.display]="(params.viewAvatar) ? 'block' : 'none'" (onClickEvent)="avatarClicked($event)">
8
- </sa-avatar>
9
-
10
- <div class="grid-text" [style.display]="(params.viewText) ? 'block' : 'none'">
11
- <div [style.display]="(params.text) ? 'block' : 'none'" (click)="linkClicked()" class="main-text">{{params.text}}
12
- </div>
13
-
14
- <div [style.display]="(params.subText) ? 'block' : 'none'" class="sub-text">{{params.subText}}</div>
15
- </div>
16
-
17
- <img class="icons" src={{params.iconPath}} [style.display]="(params.viewTrailingIcon) ? 'block' : 'none'" alt="">
18
-
19
-
20
- <sa-chip *ngFor="let config of params.chipConfig, let i = index" [id]="config.id" [filling]="config.filling"
21
- id="chip_{{rowNum}}_{{config.id}}" [iconPath]="config.iconPath" [iconPosition]="config.iconPosition"
22
- [largeStateIcon]="config.largeStateIcon" [state]="config.state" [type]="config.type" [text]="config.text"
23
- [style.display]="(params.viewChip) ? 'block' : 'none'" (onClickEvent)="chipClicked($event)"></sa-chip>
24
-
25
- <sa-button [iconPosition]="params.buttonConfig?.iconPosition" [ImagePath]="params.buttonConfig?.imagePath"
26
- [id]="params.buttonConfig?.id" [size]="params.buttonConfig?.size" [state]="params.buttonConfig?.state"
27
- [type]="params.buttonConfig?.type" [text]="params.buttonConfig?.text" [href]="params.buttonConfig?.href"
28
- [hrefTarget]="params.buttonConfig?.hrefTarget" [style.display]="(params.viewButton) ? 'block' : 'none'"
29
- (onClickEvent)="buttonClicked($event)"></sa-button>
30
-
31
- </div>
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { GridCellComponent } from './grid-cell.component';
4
-
5
- describe('GridCellComponent', () => {
6
- let component: GridCellComponent;
7
- let fixture: ComponentFixture<GridCellComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [GridCellComponent]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(GridCellComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,89 +0,0 @@
1
- import { Component, EventEmitter } from '@angular/core';
2
- import { Output } from '@angular/core';
3
- import { AvatarComponent } from '../avatar/avatar.component';
4
- import { ChipsComponent } from '../chips/chips.component';
5
- import { ButtonComponent } from '../button/button.component';
6
- import { NgFor } from '@angular/common';
7
- import { ICellRendererAngularComp, IHeaderAngularComp } from 'ag-grid-angular';
8
- import { GridInterface } from '../../interfaces/grid-interface';
9
-
10
- @Component({
11
- selector: 'lib-grid-cell',
12
- standalone: true,
13
- imports: [
14
- AvatarComponent,
15
- ChipsComponent,
16
- ButtonComponent,
17
- NgFor
18
- ],
19
- templateUrl: './grid-cell.component.html',
20
- styleUrl: './grid-cell.component.css'
21
- })
22
- export class GridCellComponent implements ICellRendererAngularComp, IHeaderAngularComp {
23
- params: GridInterface;
24
- rowNum: number;
25
-
26
- @Output() onClickButtonEvent = new EventEmitter();
27
- @Output() onClickChipEvent = new EventEmitter();
28
- @Output() onClickLinkEvent = new EventEmitter();
29
- @Output() onClickAvatarEvent = new EventEmitter();
30
-
31
- buttonClicked(evt: Event) {
32
- this.params.buttonClicked && this.params.buttonClicked({ // calls the function passed via params in gridInterface.
33
- ...evt,
34
- rowId: this.rowNum
35
- });
36
- this.onClickButtonEvent.emit({ ...evt, rowId: this.rowNum }); // this event isn't caught by anything.
37
- }
38
-
39
- // above function behavior is same for all functions in this class
40
-
41
- chipClicked(evt: Event) {
42
- this.params.chipClicked && this.params.chipClicked({
43
- ...evt,
44
- rowId: this.rowNum
45
- });
46
- this.onClickChipEvent.emit({ ...evt, rowId: this.rowNum });
47
- }
48
-
49
- linkClicked() {
50
- if (this.params.cellType != "interactive") return;
51
-
52
- this.params.linkClicked && this.params.linkClicked({ //calling function passed in params with rowId object in arguments
53
- rowId: this.rowNum
54
- });
55
-
56
- if (this.params.interactiveLink != "") {
57
- if (this.params.interactiveLinkTarget == "blank") {
58
- window.open(this.params.interactiveLink)!;
59
- }
60
- else if (this.params.interactiveLinkTarget == "self") {
61
- location.href = this.params.interactiveLink!;
62
- }
63
- }
64
- this.onClickLinkEvent.emit({ rowId: this.rowNum });
65
- }
66
-
67
- avatarClicked(evt: Event) {
68
- this.params.avatarClicked && this.params.avatarClicked({
69
- ...evt,
70
- rowId: this.rowNum
71
- });
72
- this.onClickChipEvent.emit({ ...evt, rowId: this.rowNum });
73
- }
74
-
75
- agInit(inParams: any): void { // must exist when class implements ICellRendererAngularComp / IHeaderAngularComp
76
-
77
- this.rowNum = inParams.rowIndex;
78
- this.params = inParams.value; // inParams.value exists when gridCell is rendered as cell, `cellRenderer: GridCellComponent`
79
- if (inParams.value == undefined) { // inParams.value is undefined when gridCell is rendered as header, `headerComponent: GridCellComponent`,
80
- this.params = inParams
81
- }
82
- // console.log(this.params);
83
- }
84
-
85
- refresh(params: any) { // must exist when class implements ICellRendererAngularComp / IHeaderAngularComp
86
- return false; // not sure what this return value does.
87
- }
88
-
89
- }
@@ -1,62 +0,0 @@
1
- .header {
2
- width: 100%;
3
- height: 96px;
4
- font-family: var(--font);
5
- padding: var(--medium-20px, 20px) var(--medium-32px, 32px);
6
- display: flex;
7
-
8
- justify-content: space-between;
9
- align-items: center;
10
-
11
- box-sizing: border-box;
12
- border-radius: var(--small-8px, 8px);
13
- border: 1px solid var(--grey-50, #E9EAEB);
14
- background: var(--Structural-White, #FFF);
15
- }
16
-
17
- .header-content {
18
- display: flex;
19
- flex-direction: column;
20
- gap: var(--small-8px, 8px);
21
- }
22
-
23
- .heading {
24
- display: flex;
25
- justify-content: flex-start;
26
- align-items: center;
27
- gap: var(--small-8px, 8px);
28
- }
29
-
30
- .header-name {
31
- font-size: 22px;
32
- font-style: normal;
33
- font-weight: 500;
34
- line-height: 28px;
35
- }
36
-
37
- .header-info {
38
- display: flex;
39
- gap: var(--small-12px, 12px);
40
- }
41
-
42
- .info-item {
43
- display: flex;
44
- justify-content: center;
45
- align-items: center;
46
- gap: var(--small-4px, 4px);
47
- font-size: 12px;
48
- font-style: normal;
49
- font-weight: 400;
50
- line-height: 16px;
51
- color: var(--text-mediumemphasis);
52
- }
53
-
54
- .info-item img {
55
- width: 20px;
56
- height: 20px;
57
- }
58
-
59
- .actions {
60
- display: flex;
61
- gap: var(--small-12px, 12px);
62
- }
@@ -1,23 +0,0 @@
1
- <div class="header">
2
- <div class="header-content">
3
- <div class="heading">
4
- <div class="header-name">{{headerName}}</div>
5
- <div *ngFor="let chip of chipConfig">
6
- <sa-chip type="regular" [state]="chip[1]" filling="filled" [text]="chip[0]"></sa-chip>
7
- </div>
8
- </div>
9
- <div class="header-info">
10
- <div class="info-item" *ngFor="let item of info">
11
- <img [src]="item[1]" alt="">
12
- {{item[0]}}
13
- </div>
14
- </div>
15
- </div>
16
- <div class="actions">
17
- <sa-button *ngIf="buttonHelper" (onClickEvent)="clicked(0)" [text]="buttonHelper" type="transparent" size="medium"
18
- state="default">
19
- </sa-button>
20
- <sa-button *ngIf="buttonMain" (onClickEvent)="clicked(1)" [text]="buttonMain" type="primary" size="medium"
21
- state="default"></sa-button>
22
- </div>
23
- </div>
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { HeaderComponent } from './header.component';
4
-
5
- describe('HeaderComponent', () => {
6
- let component: HeaderComponent;
7
- let fixture: ComponentFixture<HeaderComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [HeaderComponent]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(HeaderComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,28 +0,0 @@
1
- import { Component, EventEmitter, Output } from '@angular/core';
2
- import { ChipsComponent } from '../chips/chips.component';
3
- import { Input } from '@angular/core';
4
- import { NgFor } from '@angular/common';
5
- import { ButtonComponent } from '../button/button.component';
6
- import { NgIf } from '@angular/common';
7
-
8
- @Component({
9
- selector: 'sa-header',
10
- standalone: true,
11
- imports: [ChipsComponent, NgFor, ButtonComponent, NgIf],
12
- templateUrl: './header.component.html',
13
- styleUrl: './header.component.css'
14
- })
15
- export class HeaderComponent {
16
- @Input() info: string[][];
17
- @Input() headerName: string;
18
- @Input() chipConfig: string[][];
19
- @Input() buttonHelper: string;
20
- @Input() buttonMain: string;
21
-
22
- @Output() mainButtonClicked = new EventEmitter();
23
- @Output() helperButtonClicked = new EventEmitter();
24
-
25
- clicked(num: number) {
26
- num ? this.mainButtonClicked.emit() : this.helperButtonClicked.emit();
27
- }
28
- }