@sarasanalytics-com/design-system 0.0.42 → 0.0.43

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/.editorconfig +16 -0
  2. package/.eslintrc.json +23 -0
  3. package/.storybook/main.ts +21 -0
  4. package/.storybook/manager.ts +17 -0
  5. package/.storybook/preview-head.html +5 -0
  6. package/.storybook/preview.ts +66 -0
  7. package/.storybook/tsconfig.doc.json +10 -0
  8. package/.storybook/tsconfig.json +11 -0
  9. package/.storybook/typings.d.ts +4 -0
  10. package/.vscode/extensions.json +7 -0
  11. package/.vscode/launch.json +20 -0
  12. package/.vscode/settings.json +13 -0
  13. package/.vscode/tasks.json +42 -0
  14. package/README.md +45 -24
  15. package/angular.json +195 -0
  16. package/build-storybook.log +45 -0
  17. package/documentation.json +0 -0
  18. package/generate-public-api.js +59 -0
  19. package/package.json +74 -19
  20. package/projects/component-library/README.md +24 -0
  21. package/projects/component-library/ng-package.json +8 -0
  22. package/projects/component-library/package.json +12 -0
  23. package/projects/component-library/src/interfaces/avatar-interface.ts +6 -0
  24. package/projects/component-library/src/interfaces/button-interface.ts +37 -0
  25. package/{interfaces/card-carousel-interface.d.ts → projects/component-library/src/interfaces/card-carousel-interface.ts} +2 -1
  26. package/projects/component-library/src/interfaces/chip-interface.ts +11 -0
  27. package/projects/component-library/src/interfaces/grid-interface.ts +24 -0
  28. package/projects/component-library/src/interfaces/icon-interface.ts +21 -0
  29. package/projects/component-library/src/interfaces/select-interface.ts +20 -0
  30. package/projects/component-library/src/interfaces/tab-interface.ts +6 -0
  31. package/{interfaces/toast-interface.d.ts → projects/component-library/src/interfaces/toast-interface.ts} +1 -1
  32. package/projects/component-library/src/lib/accordion/accordion.component.css +188 -0
  33. package/projects/component-library/src/lib/accordion/accordion.component.html +151 -0
  34. package/projects/component-library/src/lib/accordion/accordion.component.spec.ts +23 -0
  35. package/projects/component-library/src/lib/accordion/accordion.component.ts +129 -0
  36. package/projects/component-library/src/lib/avatar/avatar.component.css +48 -0
  37. package/projects/component-library/src/lib/avatar/avatar.component.html +5 -0
  38. package/projects/component-library/src/lib/avatar/avatar.component.spec.ts +23 -0
  39. package/projects/component-library/src/lib/avatar/avatar.component.ts +50 -0
  40. package/projects/component-library/src/lib/button/button.component.css +145 -0
  41. package/projects/component-library/src/lib/button/button.component.html +25 -0
  42. package/projects/component-library/src/lib/button/button.component.spec.ts +23 -0
  43. package/projects/component-library/src/lib/button/button.component.ts +82 -0
  44. package/projects/component-library/src/lib/calendar-header/calendar-header.component.css +67 -0
  45. package/projects/component-library/src/lib/calendar-header/calendar-header.component.html +20 -0
  46. package/projects/component-library/src/lib/calendar-header/calendar-header.component.spec.ts +23 -0
  47. package/projects/component-library/src/lib/calendar-header/calendar-header.component.ts +191 -0
  48. package/projects/component-library/src/lib/card/card-body/card-body.component.css +0 -0
  49. package/projects/component-library/src/lib/card/card-body/card-body.component.html +1 -0
  50. package/projects/component-library/src/lib/card/card-body/card-body.component.spec.ts +23 -0
  51. package/projects/component-library/src/lib/card/card-body/card-body.component.ts +12 -0
  52. package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.css +70 -0
  53. package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.html +1 -0
  54. package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.spec.ts +23 -0
  55. package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.ts +13 -0
  56. package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.css +4 -0
  57. package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.html +3 -0
  58. package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.spec.ts +23 -0
  59. package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.ts +12 -0
  60. package/projects/component-library/src/lib/card/card-icon/card-icon.component.css +0 -0
  61. package/projects/component-library/src/lib/card/card-icon/card-icon.component.html +1 -0
  62. package/projects/component-library/src/lib/card/card-icon/card-icon.component.spec.ts +23 -0
  63. package/projects/component-library/src/lib/card/card-icon/card-icon.component.ts +12 -0
  64. package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.css +3 -0
  65. package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.html +1 -0
  66. package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.spec.ts +23 -0
  67. package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.ts +12 -0
  68. package/projects/component-library/src/lib/card/card.component.css +149 -0
  69. package/projects/component-library/src/lib/card/card.component.html +46 -0
  70. package/projects/component-library/src/lib/card/card.component.spec.ts +23 -0
  71. package/projects/component-library/src/lib/card/card.component.ts +47 -0
  72. package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.css +79 -0
  73. package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.html +55 -0
  74. package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.spec.ts +23 -0
  75. package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.ts +44 -0
  76. package/projects/component-library/src/lib/card/guide-card/guide-card.component.css +80 -0
  77. package/projects/component-library/src/lib/card/guide-card/guide-card.component.html +24 -0
  78. package/projects/component-library/src/lib/card/guide-card/guide-card.component.spec.ts +23 -0
  79. package/projects/component-library/src/lib/card/guide-card/guide-card.component.ts +19 -0
  80. package/projects/component-library/src/lib/card-carousel/card-carousel.component.css +91 -0
  81. package/projects/component-library/src/lib/card-carousel/card-carousel.component.html +54 -0
  82. package/projects/component-library/src/lib/card-carousel/card-carousel.component.spec.ts +23 -0
  83. package/projects/component-library/src/lib/card-carousel/card-carousel.component.ts +89 -0
  84. package/projects/component-library/src/lib/checkbox/checkbox.component.css +79 -0
  85. package/projects/component-library/src/lib/checkbox/checkbox.component.html +27 -0
  86. package/projects/component-library/src/lib/checkbox/checkbox.component.spec.ts +23 -0
  87. package/projects/component-library/src/lib/checkbox/checkbox.component.ts +38 -0
  88. package/projects/component-library/src/lib/chips/chips.component.css +129 -0
  89. package/projects/component-library/src/lib/chips/chips.component.html +17 -0
  90. package/projects/component-library/src/lib/chips/chips.component.spec.ts +23 -0
  91. package/projects/component-library/src/lib/chips/chips.component.ts +54 -0
  92. package/projects/component-library/src/lib/component-library.component.spec.ts +23 -0
  93. package/projects/component-library/src/lib/component-library.component.ts +16 -0
  94. package/projects/component-library/src/lib/component-library.service.spec.ts +16 -0
  95. package/projects/component-library/src/lib/component-library.service.ts +9 -0
  96. package/projects/component-library/src/lib/datepicker/datepicker.component.css +33 -0
  97. package/projects/component-library/src/lib/datepicker/datepicker.component.html +11 -0
  98. package/projects/component-library/src/lib/datepicker/datepicker.component.spec.ts +23 -0
  99. package/projects/component-library/src/lib/datepicker/datepicker.component.ts +36 -0
  100. package/projects/component-library/src/lib/form-input/form-input.component.css +164 -0
  101. package/projects/component-library/src/lib/form-input/form-input.component.html +55 -0
  102. package/projects/component-library/src/lib/form-input/form-input.component.spec.ts +23 -0
  103. package/projects/component-library/src/lib/form-input/form-input.component.ts +282 -0
  104. package/projects/component-library/src/lib/form-select/form-select.component.css +158 -0
  105. package/projects/component-library/src/lib/form-select/form-select.component.html +38 -0
  106. package/projects/component-library/src/lib/form-select/form-select.component.spec.ts +23 -0
  107. package/projects/component-library/src/lib/form-select/form-select.component.ts +72 -0
  108. package/projects/component-library/src/lib/grid-cell/grid-cell.component.css +78 -0
  109. package/projects/component-library/src/lib/grid-cell/grid-cell.component.html +31 -0
  110. package/projects/component-library/src/lib/grid-cell/grid-cell.component.spec.ts +23 -0
  111. package/projects/component-library/src/lib/grid-cell/grid-cell.component.ts +89 -0
  112. package/projects/component-library/src/lib/header/header.component.css +62 -0
  113. package/projects/component-library/src/lib/header/header.component.html +23 -0
  114. package/projects/component-library/src/lib/header/header.component.spec.ts +23 -0
  115. package/projects/component-library/src/lib/header/header.component.ts +28 -0
  116. package/projects/component-library/src/lib/icon/icon.component.css +65 -0
  117. package/projects/component-library/src/lib/icon/icon.component.html +9 -0
  118. package/projects/component-library/src/lib/icon/icon.component.ts +64 -0
  119. package/projects/component-library/src/lib/icon/icon.service.ts +26 -0
  120. package/projects/component-library/src/lib/left-nav/left-nav.component.css +109 -0
  121. package/projects/component-library/src/lib/left-nav/left-nav.component.html +51 -0
  122. package/projects/component-library/src/lib/left-nav/left-nav.component.spec.ts +23 -0
  123. package/projects/component-library/src/lib/left-nav/left-nav.component.ts +180 -0
  124. package/projects/component-library/src/lib/list/list.component.css +28 -0
  125. package/projects/component-library/src/lib/list/list.component.html +10 -0
  126. package/projects/component-library/src/lib/list/list.component.spec.ts +23 -0
  127. package/projects/component-library/src/lib/list/list.component.ts +15 -0
  128. package/projects/component-library/src/lib/message-banner/message-banner.component.css +52 -0
  129. package/projects/component-library/src/lib/message-banner/message-banner.component.html +15 -0
  130. package/projects/component-library/src/lib/message-banner/message-banner.component.spec.ts +23 -0
  131. package/projects/component-library/src/lib/message-banner/message-banner.component.ts +31 -0
  132. package/projects/component-library/src/lib/page-layout/page-layout.component.css +76 -0
  133. package/projects/component-library/src/lib/page-layout/page-layout.component.html +30 -0
  134. package/projects/component-library/src/lib/page-layout/page-layout.component.spec.ts +23 -0
  135. package/projects/component-library/src/lib/page-layout/page-layout.component.ts +14 -0
  136. package/projects/component-library/src/lib/progress-bar/progress-bar.component.css +30 -0
  137. package/projects/component-library/src/lib/progress-bar/progress-bar.component.html +4 -0
  138. package/projects/component-library/src/lib/progress-bar/progress-bar.component.spec.ts +23 -0
  139. package/projects/component-library/src/lib/progress-bar/progress-bar.component.ts +24 -0
  140. package/projects/component-library/src/lib/radio-button/radio-button.component.css +128 -0
  141. package/projects/component-library/src/lib/radio-button/radio-button.component.html +28 -0
  142. package/projects/component-library/src/lib/radio-button/radio-button.component.spec.ts +23 -0
  143. package/projects/component-library/src/lib/radio-button/radio-button.component.ts +35 -0
  144. package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.css +118 -0
  145. package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.html +11 -0
  146. package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.spec.ts +23 -0
  147. package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.ts +74 -0
  148. package/projects/component-library/src/lib/spinner/spinner.component.css +41 -0
  149. package/projects/component-library/src/lib/spinner/spinner.component.html +1 -0
  150. package/projects/component-library/src/lib/spinner/spinner.component.spec.ts +23 -0
  151. package/projects/component-library/src/lib/spinner/spinner.component.ts +15 -0
  152. package/projects/component-library/src/lib/stepper/stepper.component.css +96 -0
  153. package/projects/component-library/src/lib/stepper/stepper.component.html +14 -0
  154. package/projects/component-library/src/lib/stepper/stepper.component.spec.ts +23 -0
  155. package/projects/component-library/src/lib/stepper/stepper.component.ts +61 -0
  156. package/projects/component-library/src/lib/tabs/tabs.component.css +100 -0
  157. package/projects/component-library/src/lib/tabs/tabs.component.html +16 -0
  158. package/projects/component-library/src/lib/tabs/tabs.component.spec.ts +23 -0
  159. package/projects/component-library/src/lib/tabs/tabs.component.ts +37 -0
  160. package/projects/component-library/src/lib/toast/toast.component.css +115 -0
  161. package/projects/component-library/src/lib/toast/toast.component.html +29 -0
  162. package/projects/component-library/src/lib/toast/toast.component.spec.ts +23 -0
  163. package/projects/component-library/src/lib/toast/toast.component.ts +87 -0
  164. package/projects/component-library/src/lib/tool-tip/tool-tip.component.css +144 -0
  165. package/projects/component-library/src/lib/tool-tip/tool-tip.component.html +31 -0
  166. package/projects/component-library/src/lib/tool-tip/tool-tip.component.spec.ts +23 -0
  167. package/projects/component-library/src/lib/tool-tip/tool-tip.component.ts +37 -0
  168. package/{public-api.d.ts → projects/component-library/src/public-api.ts} +12 -0
  169. package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.css +0 -0
  170. package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.html +22 -0
  171. package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.spec.ts +23 -0
  172. package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.ts +13 -0
  173. package/projects/component-library/src/utils/validators.ts +100 -0
  174. package/projects/component-library/tsconfig.lib.json +14 -0
  175. package/projects/component-library/tsconfig.lib.prod.json +10 -0
  176. package/projects/component-library/tsconfig.spec.json +14 -0
  177. package/sarasanalytics-com-design-system-0.0.21.tgz +0 -0
  178. package/src/Saras-logo.svg +15 -0
  179. package/src/app/app.component.css +82 -0
  180. package/src/app/app.component.html +663 -0
  181. package/src/app/app.component.spec.ts +29 -0
  182. package/src/app/app.component.ts +1341 -0
  183. package/src/app/app.config.ts +56 -0
  184. package/src/app/app.routes.ts +3 -0
  185. package/src/app/data.ts +52 -0
  186. package/src/app/kitchen-sink/kitchen-sink.component.css +30 -0
  187. package/src/app/kitchen-sink/kitchen-sink.component.html +7 -0
  188. package/src/app/kitchen-sink/kitchen-sink.component.spec.ts +23 -0
  189. package/src/app/kitchen-sink/kitchen-sink.component.ts +92 -0
  190. package/src/assets/.gitkeep +0 -0
  191. package/src/assets/analysis.svg +1 -0
  192. package/src/assets/arrowRightOutlined.svg +1 -0
  193. package/src/assets/avatar.svg +1 -0
  194. package/src/assets/bpn.svg +1 -0
  195. package/src/assets/businessStatsFilled.svg +1 -0
  196. package/src/assets/channelkey.svg +1 -0
  197. package/src/assets/chatHelpOutlined.svg +1 -0
  198. package/src/assets/checkCircleFilled.svg +1 -0
  199. package/src/assets/checkCircleOutlined.svg +1 -0
  200. package/src/assets/checkOutlined.svg +1 -0
  201. package/src/assets/circleFilled.svg +1 -0
  202. package/src/assets/closeBlueOutlined.svg +1 -0
  203. package/src/assets/closeCircleFilled.svg +1 -0
  204. package/src/assets/closeOutlined.svg +1 -0
  205. package/src/assets/dataonavatar.svg +1 -0
  206. package/src/assets/datonAvatar.png +0 -0
  207. package/src/assets/desktopSpeakerOutlined.svg +1 -0
  208. package/src/assets/disabledCheckboxFilled.svg +1 -0
  209. package/src/assets/doubleDownOutlined.svg +1 -0
  210. package/src/assets/downChevronOutlined.svg +3 -0
  211. package/src/assets/downOutlined.svg +1 -0
  212. package/src/assets/errorCircleOutlined.svg +1 -0
  213. package/src/assets/errorCrossOutlined.svg +3 -0
  214. package/src/assets/eyeFilled.svg +1 -0
  215. package/src/assets/eyeOff.svg +3 -0
  216. package/src/assets/eyeOutlined.svg +1 -0
  217. package/src/assets/formDetailsOutlined.svg +1 -0
  218. package/src/assets/gridViewOutlined.svg +1 -0
  219. package/src/assets/headsetOutlined.svg +3 -0
  220. package/src/assets/homeOutlined.svg +1 -0
  221. package/src/assets/icons/analysis1.svg +1 -0
  222. package/src/assets/infoCircleOutlined.svg +3 -0
  223. package/src/assets/infoTriangleFilled.svg +1 -0
  224. package/src/assets/infoTriangleOutlined.svg +1 -0
  225. package/src/assets/innosupps.svg +1 -0
  226. package/src/assets/leftChevronCircle.svg +2 -0
  227. package/src/assets/locationOutlined.svg +1 -0
  228. package/src/assets/loginDashboard.png +0 -0
  229. package/src/assets/mailOutlined.svg +1 -0
  230. package/src/assets/multiConnectionHub.svg +1 -0
  231. package/src/assets/murad.svg +1 -0
  232. package/src/assets/personOutlined.svg +1 -0
  233. package/src/assets/pricingIcon.svg +3 -0
  234. package/src/assets/rightChevronCircle.svg +1 -0
  235. package/src/assets/rightChevronOutlined.svg +1 -0
  236. package/src/assets/sarasFullLogo.svg +13 -0
  237. package/src/assets/sarasWhite.svg +1 -0
  238. package/src/assets/settingsOutlined.svg +1 -0
  239. package/src/assets/sourcesOutlined.svg +1 -0
  240. package/src/assets/tabDesktopArrowClockwiseOutlined.svg +1 -0
  241. package/src/assets/targetScanOutlined.svg +1 -0
  242. package/src/assets/timerOutlined.svg +5 -0
  243. package/src/assets/upwardTriangleFilled.svg +1 -0
  244. package/src/custom-theme.scss +37 -0
  245. package/src/favicon.ico +0 -0
  246. package/src/index.html +23 -0
  247. package/src/main.ts +6 -0
  248. package/src/stories/GettingStarted.mdx +233 -0
  249. package/src/stories/KitchenSink.stories.ts +109 -0
  250. package/src/stories/accordion.stories.ts +234 -0
  251. package/src/stories/avatar.stories.ts +45 -0
  252. package/src/stories/card-carousel.stories.ts +136 -0
  253. package/src/stories/card.stories.ts +242 -0
  254. package/src/stories/checkbox.stories.ts +238 -0
  255. package/src/stories/chips.stories.ts +61 -0
  256. package/src/stories/custom-button.stories.ts +89 -0
  257. package/src/stories/datepicker.stories.ts +78 -0
  258. package/src/stories/form-input.stories.ts +166 -0
  259. package/src/stories/gridCell.stories.ts +234 -0
  260. package/src/stories/header.stories.ts +61 -0
  261. package/src/stories/icon.stories.ts +65 -0
  262. package/src/stories/leftnav.stories.ts +67 -0
  263. package/src/stories/message-banner.stories.ts +116 -0
  264. package/src/stories/page-layout.stories.ts +200 -0
  265. package/src/stories/progress-bar.stories.ts +40 -0
  266. package/src/stories/radio-button.stories.ts +80 -0
  267. package/src/stories/scrolling-card.stories.ts +36 -0
  268. package/src/stories/selectInput.stories.ts +176 -0
  269. package/src/stories/stepper.stories.ts +92 -0
  270. package/src/stories/tabs.stories.ts +97 -0
  271. package/src/stories/toast.stories.ts +74 -0
  272. package/src/stories/tool-tip.stories.ts +45 -0
  273. package/src/styles.css +388 -0
  274. package/src/svg.d.ts +1 -0
  275. package/tsconfig.app.json +14 -0
  276. package/tsconfig.json +42 -0
  277. package/tsconfig.spec.json +14 -0
  278. package/esm2022/interfaces/avatar-interface.mjs +0 -2
  279. package/esm2022/interfaces/button-interface.mjs +0 -10
  280. package/esm2022/interfaces/card-carousel-interface.mjs +0 -2
  281. package/esm2022/interfaces/chip-interface.mjs +0 -2
  282. package/esm2022/interfaces/grid-interface.mjs +0 -2
  283. package/esm2022/interfaces/guide-card-interface.mjs +0 -2
  284. package/esm2022/interfaces/icon-interface.mjs +0 -16
  285. package/esm2022/interfaces/message-banner.mjs +0 -2
  286. package/esm2022/interfaces/option-interface.mjs +0 -2
  287. package/esm2022/interfaces/select-interface.mjs +0 -2
  288. package/esm2022/interfaces/tab-interface.mjs +0 -2
  289. package/esm2022/interfaces/toast-interface.mjs +0 -2
  290. package/esm2022/lib/accordion/accordion.component.mjs +0 -115
  291. package/esm2022/lib/avatar/avatar.component.mjs +0 -56
  292. package/esm2022/lib/button/button.component.mjs +0 -100
  293. package/esm2022/lib/calendar-header/calendar-header.component.mjs +0 -168
  294. package/esm2022/lib/card/card-body/card-body.component.mjs +0 -11
  295. package/esm2022/lib/card/card-custom-header/card-custom-header.component.mjs +0 -11
  296. package/esm2022/lib/card/card-footer-actions/card-footer-actions.component.mjs +0 -11
  297. package/esm2022/lib/card/card-icon/card-icon.component.mjs +0 -11
  298. package/esm2022/lib/card/card-title-actions/card-title-actions.component.mjs +0 -11
  299. package/esm2022/lib/card/card.component.mjs +0 -111
  300. package/esm2022/lib/card/checkbox-card/checkbox-card.component.mjs +0 -41
  301. package/esm2022/lib/card/guide-card/guide-card.component.mjs +0 -19
  302. package/esm2022/lib/card-carousel/card-carousel.component.mjs +0 -87
  303. package/esm2022/lib/checkbox/checkbox.component.mjs +0 -38
  304. package/esm2022/lib/chips/chips.component.mjs +0 -62
  305. package/esm2022/lib/component-library.component.mjs +0 -19
  306. package/esm2022/lib/component-library.service.mjs +0 -14
  307. package/esm2022/lib/datepicker/datepicker.component.mjs +0 -40
  308. package/esm2022/lib/form-input/form-input.component.mjs +0 -219
  309. package/esm2022/lib/form-select/form-select.component.mjs +0 -77
  310. package/esm2022/lib/grid-cell/grid-cell.component.mjs +0 -84
  311. package/esm2022/lib/header/header.component.mjs +0 -37
  312. package/esm2022/lib/icon/icon.component.mjs +0 -73
  313. package/esm2022/lib/icon/icon.service.mjs +0 -28
  314. package/esm2022/lib/left-nav/left-nav.component.mjs +0 -146
  315. package/esm2022/lib/list/list.component.mjs +0 -23
  316. package/esm2022/lib/message-banner/message-banner.component.mjs +0 -43
  317. package/esm2022/lib/page-layout/page-layout.component.mjs +0 -21
  318. package/esm2022/lib/progress-bar/progress-bar.component.mjs +0 -29
  319. package/esm2022/lib/radio-button/radio-button.component.mjs +0 -33
  320. package/esm2022/lib/scrolling-cards/scrolling-cards.component.mjs +0 -59
  321. package/esm2022/lib/spinner/spinner.component.mjs +0 -22
  322. package/esm2022/lib/stepper/stepper.component.mjs +0 -64
  323. package/esm2022/lib/tabs/tabs.component.mjs +0 -38
  324. package/esm2022/lib/toast/toast.component.mjs +0 -100
  325. package/esm2022/lib/tool-tip/tool-tip.component.mjs +0 -41
  326. package/esm2022/public-api.mjs +0 -56
  327. package/esm2022/sarasanalytics-com-design-system.mjs +0 -5
  328. package/esm2022/utils/validators.mjs +0 -97
  329. package/fesm2022/sarasanalytics-com-design-system.mjs +0 -2001
  330. package/fesm2022/sarasanalytics-com-design-system.mjs.map +0 -1
  331. package/index.d.ts +0 -5
  332. package/interfaces/avatar-interface.d.ts +0 -6
  333. package/interfaces/button-interface.d.ts +0 -22
  334. package/interfaces/chip-interface.d.ts +0 -11
  335. package/interfaces/grid-interface.d.ts +0 -24
  336. package/interfaces/icon-interface.d.ts +0 -4
  337. package/interfaces/select-interface.d.ts +0 -20
  338. package/interfaces/tab-interface.d.ts +0 -6
  339. package/lib/accordion/accordion.component.d.ts +0 -25
  340. package/lib/avatar/avatar.component.d.ts +0 -18
  341. package/lib/button/button.component.d.ts +0 -32
  342. package/lib/calendar-header/calendar-header.component.d.ts +0 -31
  343. package/lib/card/card-body/card-body.component.d.ts +0 -5
  344. package/lib/card/card-custom-header/card-custom-header.component.d.ts +0 -5
  345. package/lib/card/card-footer-actions/card-footer-actions.component.d.ts +0 -5
  346. package/lib/card/card-icon/card-icon.component.d.ts +0 -5
  347. package/lib/card/card-title-actions/card-title-actions.component.d.ts +0 -5
  348. package/lib/card/card.component.d.ts +0 -31
  349. package/lib/card/checkbox-card/checkbox-card.component.d.ts +0 -12
  350. package/lib/card/guide-card/guide-card.component.d.ts +0 -8
  351. package/lib/card-carousel/card-carousel.component.d.ts +0 -27
  352. package/lib/checkbox/checkbox.component.d.ts +0 -9
  353. package/lib/chips/chips.component.d.ts +0 -22
  354. package/lib/component-library.component.d.ts +0 -5
  355. package/lib/component-library.service.d.ts +0 -6
  356. package/lib/datepicker/datepicker.component.d.ts +0 -9
  357. package/lib/form-input/form-input.component.d.ts +0 -67
  358. package/lib/form-select/form-select.component.d.ts +0 -18
  359. package/lib/grid-cell/grid-cell.component.d.ts +0 -20
  360. package/lib/header/header.component.d.ts +0 -14
  361. package/lib/icon/icon.component.d.ts +0 -24
  362. package/lib/icon/icon.service.d.ts +0 -12
  363. package/lib/left-nav/left-nav.component.d.ts +0 -47
  364. package/lib/list/list.component.d.ts +0 -10
  365. package/lib/message-banner/message-banner.component.d.ts +0 -19
  366. package/lib/page-layout/page-layout.component.d.ts +0 -8
  367. package/lib/progress-bar/progress-bar.component.d.ts +0 -13
  368. package/lib/radio-button/radio-button.component.d.ts +0 -12
  369. package/lib/scrolling-cards/scrolling-cards.component.d.ts +0 -36
  370. package/lib/spinner/spinner.component.d.ts +0 -7
  371. package/lib/stepper/stepper.component.d.ts +0 -17
  372. package/lib/tabs/tabs.component.d.ts +0 -15
  373. package/lib/toast/toast.component.d.ts +0 -33
  374. package/lib/tool-tip/tool-tip.component.d.ts +0 -15
  375. package/utils/validators.d.ts +0 -6
  376. /package/{interfaces/guide-card-interface.d.ts → projects/component-library/src/interfaces/guide-card-interface.ts} +0 -0
  377. /package/{interfaces/message-banner.d.ts → projects/component-library/src/interfaces/message-banner.ts} +0 -0
  378. /package/{interfaces/option-interface.d.ts → projects/component-library/src/interfaces/option-interface.ts} +0 -0
package/.editorconfig ADDED
@@ -0,0 +1,16 @@
1
+ # Editor configuration, see https://editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ charset = utf-8
6
+ indent_style = space
7
+ indent_size = 2
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
10
+
11
+ [*.ts]
12
+ quote_type = single
13
+
14
+ [*.md]
15
+ max_line_length = off
16
+ trim_trailing_whitespace = false
package/.eslintrc.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "env": {
3
+ "browser": true,
4
+ "es2021": true
5
+ },
6
+ "extends": [
7
+ "eslint:recommended",
8
+ "plugin:@typescript-eslint/recommended"
9
+ ],
10
+ "parser": "@typescript-eslint/parser",
11
+ "parserOptions": {
12
+ "ecmaVersion": "latest",
13
+ "sourceType": "module"
14
+ },
15
+ "plugins": [
16
+ "@typescript-eslint"
17
+ ],
18
+ "rules": {
19
+ "@angular-eslint/template/accessibility-valid-aria": ["error"],
20
+ "@angular-eslint/template/accessibility-role-has-required-aria": ["error"],
21
+ "@typescript-eslint/no-explicit-any": "off"
22
+ }
23
+ }
@@ -0,0 +1,21 @@
1
+ import type { StorybookConfig } from "@storybook/angular";
2
+
3
+ const config: StorybookConfig = {
4
+ stories: ['../src/stories/*.stories.ts', '../src/stories/*.mdx'],
5
+ staticDirs: ['../src'],
6
+ addons: [
7
+ "@storybook/addon-links",
8
+ "@storybook/addon-essentials",
9
+ "@storybook/addon-interactions",
10
+ '@storybook/addon-docs',
11
+ '@storybook/addon-actions'
12
+ ],
13
+ framework: {
14
+ name: "@storybook/angular",
15
+ options: {},
16
+ },
17
+ docs: {
18
+ autodocs: "tag",
19
+ },
20
+ };
21
+ export default config;
@@ -0,0 +1,17 @@
1
+ // .storybook/manager.js
2
+ import { addons } from '@storybook/manager-api';
3
+ import { create } from '@storybook/theming/create';
4
+
5
+ addons.setConfig({
6
+ theme: create({
7
+ base: 'light', // or 'dark'
8
+ brandTitle: 'Saras',
9
+ brandUrl: 'https://sarasanalytics.com',
10
+ brandImage: '../Saras-logo.svg', // Path to your logo image
11
+ colorSecondary: '#1B77E4',
12
+
13
+ appBg: '#ffffff',
14
+ appContentBg: '#ffffff',
15
+ appPreviewBg: '#ffffff',
16
+ }),
17
+ });
@@ -0,0 +1,5 @@
1
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
2
+ <link
3
+ href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
4
+ rel="stylesheet">
5
+ <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
@@ -0,0 +1,66 @@
1
+ import type { Preview } from "@storybook/angular";
2
+ import { componentWrapperDecorator } from "@storybook/angular";
3
+
4
+ const preview: Preview = {
5
+ parameters: {
6
+ options: {
7
+ storySort: {
8
+ order: [
9
+ 'Getting started',
10
+ '*',
11
+ 'Kitchen Sink'
12
+ ]
13
+ }
14
+ },
15
+ },
16
+ globalTypes: {
17
+ theme: {
18
+ description: 'Global theme for components',
19
+ defaultValue: 'saras-theme',
20
+ toolbar: {
21
+ title: 'Theme',
22
+ icon: 'circlehollow',
23
+ items: ['saras-theme', 'insights-theme', 'purple-theme'],
24
+ dynamicTitle: true,
25
+ },
26
+ },
27
+ },
28
+ decorators: [
29
+ componentWrapperDecorator(
30
+ (story) => {
31
+ return `
32
+ ${story}
33
+ `
34
+ },
35
+ ({ globals }) => {
36
+ document.body.classList.remove("saras-theme"); // remove if this theme already exists in classlist
37
+ document.body.classList.remove("insights-theme"); // Since we don't know which one already exists, we try all
38
+ document.body.classList.remove("purple-theme"); // Since we don't know which one already exists, we try all
39
+ document.body.classList.add(globals['theme']); // append the most recent class selection here.
40
+ return { myTheme: globals['theme'] };
41
+ },
42
+ ),
43
+ ],
44
+ };
45
+
46
+ export default preview;
47
+
48
+
49
+ // storySort: {
50
+ // order: [
51
+ // 'Avatar',
52
+ // 'Button',
53
+ // 'Chips',
54
+ // 'Datepicker',
55
+ // 'GridCell',
56
+ // 'Header',
57
+ // 'Select Input',
58
+ // 'Stepper',
59
+ // 'Tabs',
60
+ // 'Toast',
61
+ // 'ToolTip',
62
+ // 'Avatar Sink',
63
+ // 'Button Sink',
64
+ // 'Chip Sink'
65
+ // ]
66
+ // }
@@ -0,0 +1,10 @@
1
+ // This tsconfig is used by Compodoc to generate the documentation for the project.
2
+ // If Compodoc is not used, this file can be deleted.
3
+ {
4
+ "extends": "./tsconfig.json",
5
+ // Exclude all files that are not needed for documentation generation.
6
+ "exclude": ["../src/test.ts", "../src/**/*.spec.ts", "../src/**/*.stories.ts"],
7
+ // Please make sure to include all files from which Compodoc should generate documentation.
8
+ "include": ["../src/**/*"],
9
+ "files": ["./typings.d.ts"]
10
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "../tsconfig.app.json",
3
+ "compilerOptions": {
4
+ "types": ["node"],
5
+ "allowSyntheticDefaultImports": true,
6
+ "resolveJsonModule": true
7
+ },
8
+ "exclude": ["../src/test.ts", "../src/**/*.spec.ts"],
9
+ "include": ["../src/**/*.stories.*", "./preview.ts"],
10
+ "files": ["./typings.d.ts"]
11
+ }
@@ -0,0 +1,4 @@
1
+ declare module '*.md' {
2
+ const content: string;
3
+ export default content;
4
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3
+ "recommendations": [
4
+ "angular.ng-template",
5
+ "hookyqr.beautify"
6
+ ]
7
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
3
+ "version": "0.2.0",
4
+ "configurations": [
5
+ {
6
+ "name": "ng serve",
7
+ "type": "chrome",
8
+ "request": "launch",
9
+ "preLaunchTask": "npm: start",
10
+ "url": "http://localhost:4200/"
11
+ },
12
+ {
13
+ "name": "ng test",
14
+ "type": "chrome",
15
+ "request": "launch",
16
+ "preLaunchTask": "npm: test",
17
+ "url": "http://localhost:9876/debug.html"
18
+ }
19
+ ]
20
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "beautify.onSave": true,
3
+
4
+ "editor.formatOnSave": true,
5
+
6
+ "beautify.JSfiles": [
7
+ "js",
8
+ "json",
9
+ "jsbeautifyrc",
10
+ "jshintrc",
11
+ "ts",
12
+ ]
13
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ // For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
3
+ "version": "2.0.0",
4
+ "tasks": [
5
+ {
6
+ "type": "npm",
7
+ "script": "start",
8
+ "isBackground": true,
9
+ "problemMatcher": {
10
+ "owner": "typescript",
11
+ "pattern": "$tsc",
12
+ "background": {
13
+ "activeOnStart": true,
14
+ "beginsPattern": {
15
+ "regexp": "(.*?)"
16
+ },
17
+ "endsPattern": {
18
+ "regexp": "bundle generation complete"
19
+ }
20
+ }
21
+ }
22
+ },
23
+ {
24
+ "type": "npm",
25
+ "script": "test",
26
+ "isBackground": true,
27
+ "problemMatcher": {
28
+ "owner": "typescript",
29
+ "pattern": "$tsc",
30
+ "background": {
31
+ "activeOnStart": true,
32
+ "beginsPattern": {
33
+ "regexp": "(.*?)"
34
+ },
35
+ "endsPattern": {
36
+ "regexp": "bundle generation complete"
37
+ }
38
+ }
39
+ }
40
+ }
41
+ ]
42
+ }
package/README.md CHANGED
@@ -1,24 +1,45 @@
1
- # TestLibrary
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.2.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project component-library` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project component-library`.
8
- > Note: Don't forget to add `--project component-library` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build component-library` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build component-library`, go to the dist folder `cd dist/component-library` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test component-library` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
1
+ **Welcome to the saras-design-system wiki!**
2
+
3
+ ***
4
+
5
+
6
+ ### Installation
7
+
8
+ `npm i @sarasanalytics-com/design-system`
9
+ ***
10
+
11
+ ### Helpful Commands:
12
+ Once you clone this repository, these commands might be helpful to get you started.
13
+ 1. `ng serve` or `npm run start`
14
+ This will run the demo application on localhost. This page has implementation examples for all components in the design system along with kitchen sinks for Chips, Buttons, and Avatars.
15
+
16
+ 2. `ng run sadlc:storybook`
17
+ To run storybook on localhost.
18
+
19
+ 3. `ng run sadlc:build-storybook`
20
+ To build storybook.
21
+
22
+ 4. `npm run chromatic`
23
+ To host a storybook with chromatic.
24
+
25
+
26
+ To publish the NPM package.
27
+
28
+ 1. take a pull from dev branch
29
+
30
+ 2. do `npm login` in your terminal
31
+
32
+ 3. do `ng build component-library`
33
+ Run this command from root before you publish to NPM. Make sure you add any new components to [public-api.ts](https://github.com/sarasanalytics-com/saras-design-system/blob/v1/projects/component-library/src/public-api.ts#L7).
34
+
35
+ 4. do `cd dist/component-library/`
36
+
37
+ 5. change the version to next value in the `package.json` inside `dist/component-library/package.json`
38
+
39
+ 6. do `npm publish --access public`
40
+
41
+ Run this command from root before you publish to NPM. Make sure you add any new components to [public-api.ts](https://github.com/sarasanalytics-com/saras-design-system/blob/v1/projects/component-library/src/public-api.ts#L7).
42
+
43
+ Make sure that theme classes are present in `styles.css` of your project and `index.html` has at-least one of these classes in it's body tag.
44
+
45
+ ***
package/angular.json ADDED
@@ -0,0 +1,195 @@
1
+ {
2
+ "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3
+ "version": 1,
4
+ "newProjectRoot": "projects",
5
+ "projects": {
6
+ "sadlc": {
7
+ "projectType": "application",
8
+ "schematics": {},
9
+ "root": "",
10
+ "sourceRoot": "src",
11
+ "prefix": "app",
12
+ "architect": {
13
+ "build": {
14
+ "builder": "@angular-devkit/build-angular:application",
15
+ "options": {
16
+ "outputPath": "dist/sadlc",
17
+ "index": "src/index.html",
18
+ "browser": "src/main.ts",
19
+ "polyfills": [
20
+ "zone.js"
21
+ ],
22
+ "tsConfig": "tsconfig.app.json",
23
+ "assets": [
24
+ "src/favicon.ico",
25
+ "src/assets"
26
+ ],
27
+ "styles": [
28
+ "src/custom-theme.scss",
29
+ "src/styles.css",
30
+ "ag-grid-community/styles/ag-grid.css",
31
+ "ag-grid-community/styles/ag-theme-alpine.css",
32
+ "@ng-select/ng-select/themes/default.theme.css"
33
+ ],
34
+ "scripts": []
35
+ },
36
+ "configurations": {
37
+ "production": {
38
+ "budgets": [
39
+ {
40
+ "type": "initial",
41
+ "maximumWarning": "2mb",
42
+ "maximumError": "4mb"
43
+ },
44
+ {
45
+ "type": "anyComponentStyle",
46
+ "maximumWarning": "4kb",
47
+ "maximumError": "6kb"
48
+ }
49
+ ],
50
+ "outputHashing": "all"
51
+ },
52
+ "development": {
53
+ "optimization": false,
54
+ "extractLicenses": false,
55
+ "sourceMap": true
56
+ }
57
+ },
58
+ "defaultConfiguration": "production"
59
+ },
60
+ "serve": {
61
+ "builder": "@angular-devkit/build-angular:dev-server",
62
+ "configurations": {
63
+ "production": {
64
+ "buildTarget": "sadlc:build:production"
65
+ },
66
+ "development": {
67
+ "buildTarget": "sadlc:build:development"
68
+ }
69
+ },
70
+ "defaultConfiguration": "development"
71
+ },
72
+ "extract-i18n": {
73
+ "builder": "@angular-devkit/build-angular:extract-i18n",
74
+ "options": {
75
+ "buildTarget": "sadlc:build"
76
+ }
77
+ },
78
+ "test": {
79
+ "builder": "@angular-devkit/build-angular:karma",
80
+ "options": {
81
+ "polyfills": [
82
+ "zone.js",
83
+ "zone.js/testing"
84
+ ],
85
+ "tsConfig": "tsconfig.spec.json",
86
+ "assets": [
87
+ "src/favicon.ico",
88
+ "src/assets"
89
+ ],
90
+ "styles": [
91
+ "src/styles.css"
92
+ ],
93
+ "scripts": []
94
+ }
95
+ },
96
+ "storybook": {
97
+ "builder": "@storybook/angular:start-storybook",
98
+ "options": {
99
+ "configDir": ".storybook",
100
+ "browserTarget": "sadlc:build",
101
+ "compodoc": false,
102
+ "port": 6006
103
+ }
104
+ },
105
+ "build-storybook": {
106
+ "builder": "@storybook/angular:build-storybook",
107
+ "options": {
108
+ "configDir": ".storybook",
109
+ "browserTarget": "sadlc:build",
110
+ "compodoc": false,
111
+ "outputDir": "dist/storybook/sadlc",
112
+ "styles": ["src/styles.css", "src/custom-theme.scss", "ag-grid-community/styles/ag-grid.css",
113
+ "ag-grid-community/styles/ag-theme-alpine.css",
114
+ "@ng-select/ng-select/themes/default.theme.css"]
115
+ }
116
+ }
117
+ }
118
+ },
119
+ "component-library": {
120
+ "projectType": "library",
121
+ "root": "projects/component-library",
122
+ "sourceRoot": "projects/component-library/src",
123
+ "prefix": "sa",
124
+ "architect": {
125
+ "build": {
126
+ "builder": "@angular-devkit/build-angular:ng-packagr",
127
+ "options": {
128
+ "project": "projects/component-library/ng-package.json"
129
+ },
130
+ "configurations": {
131
+ "production": {
132
+ "tsConfig": "projects/component-library/tsconfig.lib.prod.json"
133
+ },
134
+ "development": {
135
+ "tsConfig": "projects/component-library/tsconfig.lib.json"
136
+ }
137
+ },
138
+ "defaultConfiguration": "production"
139
+ },
140
+ "test": {
141
+ "builder": "@angular-devkit/build-angular:karma",
142
+ "options": {
143
+ "tsConfig": "projects/component-library/tsconfig.spec.json",
144
+ "polyfills": [
145
+ "zone.js",
146
+ "zone.js/testing"
147
+ ]
148
+ }
149
+ },
150
+ "lint": {
151
+ "builder": "@angular-eslint/builder:lint",
152
+ "options": {
153
+ "lintFilePatterns":[
154
+ "src/**/*.ts",
155
+ "src/**/*/*.html"
156
+ ]
157
+ }
158
+ },
159
+ "storybook": {
160
+ "builder": "@storybook/angular:start-storybook",
161
+ "options": {
162
+ "configDir": "projects/component-library/.storybook",
163
+ "browserTarget": "component-library:build",
164
+ "compodoc": true,
165
+ "port": 6006,
166
+ "compodocArgs": [
167
+ "-e",
168
+ "json",
169
+ "-d",
170
+ "."
171
+ ]
172
+ }
173
+ },
174
+ "build-storybook": {
175
+ "builder": "@storybook/angular:build-storybook",
176
+ "options": {
177
+ "configDir": "projects/component-library/.storybook",
178
+ "browserTarget": "component-library:build",
179
+ "compodoc": true,
180
+ "compodocArgs": [
181
+ "-e",
182
+ "json",
183
+ "-d",
184
+ "."
185
+ ],
186
+ "outputDir": "dist/storybook/component-library"
187
+ }
188
+ }
189
+ }
190
+ }
191
+ },
192
+ "cli": {
193
+ "analytics": false
194
+ }
195
+ }
@@ -0,0 +1,45 @@
1
+
2
+ > @sarasanalytics-com/design-system@0.0.21 build-storybook
3
+ > ng run sadlc:build-storybook --output-dir /var/folders/hl/59d4pv7s7xlg2jhswlln9tsh0000gn/T/chromatic--896-rCNCoDILVmst
4
+
5
+ info => Cleaning outputDir: ../../../../../var/folders/hl/59d4pv7s7xlg2jhswlln9tsh0000gn/T/chromatic--896-rCNCoDILVmst
6
+ info => Loading presets
7
+ info Found existing addon "@storybook/addon-docs", skipping.
8
+ info Found existing addon "@storybook/addon-actions", skipping.
9
+ info Found existing addon "@storybook/addon-docs", skipping.
10
+ info Found existing addon "@storybook/addon-actions", skipping.
11
+ info => Building manager..
12
+ info => Manager built (112 ms)
13
+ info => Building preview..
14
+ info Addon-docs: using MDX3
15
+ info => Using implicit CSS loaders
16
+ info => Using angular browser target options from "sadlc:build"
17
+ info => Using angular project with "tsConfig:/Users/saras/Documents/workspace/saras-design-system/.storybook/tsconfig.json"
18
+ info => Using default Webpack5 setup
19
+ info => Copying static files: src at ../../../../../var/folders/hl/59d4pv7s7xlg2jhswlln9tsh0000gn/T/chromatic--896-rCNCoDILVmst
20
+ WARN export 'EmptyTabContent' (imported as 'EmptyTabContent') was not found in '@storybook/components' (possible exports: A, ActionBar, AddonPanel, Badge, Bar, Blockquote, Button, ClipboardCode, Code, DL, Div, DocumentWrapper, ErrorFormatter, FlexBar, Form, H1, H2, H3, H4, H5, H6, HR, IconButton, IconButtonSkeleton, Icons, Img, LI, Link, ListItem, Loader, OL, P, Placeholder, Pre, ResetWrapper, ScrollArea, Separator, Spaced, Span, StorybookIcon, StorybookLogo, Symbols, SyntaxHighlighter, TT, TabBar, TabButton, TabWrapper, Table, Tabs, TabsState, TooltipLinkList, TooltipMessage, TooltipNote, UL, WithTooltip, WithTooltipPure, Zoom, codeCommon, components, createCopyToClipboardFunction, getStoryHref, icons, interleaveSeparators, nameSpaceClassNames, resetComponents, withReset)
21
+ WARN Module Warning (from ./node_modules/postcss-loader/dist/cjs.js):
22
+ WARN (3:5) from "autoprefixer" plugin: end value has mixed support, consider using flex-end instead
23
+ WARN
24
+ WARN Code:
25
+ WARN justify-content: end
26
+ WARN
27
+ WARN asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
28
+ WARN This can impact web performance.
29
+ WARN Assets:
30
+ WARN 1280.b1dee8b620464854ffea.css (290 KiB)
31
+ WARN 56.2655bb94.iframe.bundle.js (1.32 MiB)
32
+ WARN 6568.0b8f7d0f.iframe.bundle.js (478 KiB)
33
+ WARN 1144.ac4580a6.iframe.bundle.js (897 KiB)
34
+ WARN 1280.e0d1b79a.iframe.bundle.js (3.46 MiB)
35
+ WARN entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
36
+ WARN Entrypoints:
37
+ WARN main (3.86 MiB)
38
+ WARN runtime~main.475591f7.iframe.bundle.js
39
+ WARN 1280.b1dee8b620464854ffea.css
40
+ WARN 1280.e0d1b79a.iframe.bundle.js
41
+ WARN main.e3879df2f74772d13833.css
42
+ WARN main.1dd44b25.iframe.bundle.js
43
+ WARN
44
+ info => Preview built (17 s)
45
+ info => Output directory: /var/folders/hl/59d4pv7s7xlg2jhswlln9tsh0000gn/T/chromatic--896-rCNCoDILVmst
File without changes
@@ -0,0 +1,59 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+
4
+ const srcPath = path.join(__dirname, 'projects', 'component-library', 'src');
5
+ const libPath = path.join(srcPath, 'lib');
6
+ const interfacesPath = path.join(srcPath, 'interfaces');
7
+ const publicApiPath = path.join(srcPath, 'public-api.ts');
8
+
9
+ function getFiles(dir, extensions) {
10
+ const files = fs.readdirSync(dir, { withFileTypes: true });
11
+ let targetFiles = [];
12
+
13
+ for (const file of files) {
14
+ if (file.isDirectory()) {
15
+ targetFiles = targetFiles.concat(getFiles(path.join(dir, file.name), extensions));
16
+ } else if (extensions.some(ext => file.name.endsWith(ext))) {
17
+ targetFiles.push(path.relative(srcPath, path.join(dir, file.name)));
18
+ }
19
+ }
20
+
21
+ return targetFiles;
22
+ }
23
+
24
+ function generatePublicApi() {
25
+ const componentFiles = getFiles(libPath, ['.component.ts']);
26
+ const serviceFiles = getFiles(libPath, ['.service.ts']);
27
+ const interfaceFiles = getFiles(interfacesPath, ['.ts']);
28
+
29
+ let content = `/*
30
+ * Public API Surface of component-library
31
+ */
32
+
33
+ // ... existing code ...
34
+
35
+ `;
36
+
37
+ content += '\n// Components\n';
38
+ componentFiles.forEach(file => {
39
+ const importPath = file.replace(/\.ts$/, '');
40
+ content += `export * from './${importPath}';\n`;
41
+ });
42
+
43
+ content += '\n// Services\n';
44
+ serviceFiles.forEach(file => {
45
+ const importPath = file.replace(/\.ts$/, '');
46
+ content += `export * from './${importPath}';\n`;
47
+ });
48
+
49
+ content += '\n// Interfaces\n';
50
+ interfaceFiles.forEach(file => {
51
+ const importPath = file.replace(/\.ts$/, '');
52
+ content += `export * from './${importPath}';\n`;
53
+ });
54
+
55
+ fs.writeFileSync(publicApiPath, content);
56
+ console.log('public-api.ts has been updated with all component, service, and interface exports.');
57
+ }
58
+
59
+ generatePublicApi();