@cloudfrogger/goodui 0.0.59 → 0.0.62

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 (397) hide show
  1. package/README.md +10 -0
  2. package/ai/README.md +47 -0
  3. package/ai/case-studies/index.md +10 -0
  4. package/ai/case-studies/vpshoster.md +18 -0
  5. package/ai/case-studies/webmailer.md +21 -0
  6. package/ai/catalog/README.md +7 -0
  7. package/ai/catalog/component.schema.json +289 -0
  8. package/ai/catalog/components/div-goodDetailRow.json +33 -0
  9. package/ai/catalog/components/form-goodForm.json +84 -0
  10. package/ai/catalog/components/good-action-bar.json +83 -0
  11. package/ai/catalog/components/good-action-group.json +143 -0
  12. package/ai/catalog/components/good-action-menu.json +121 -0
  13. package/ai/catalog/components/good-alert.json +184 -0
  14. package/ai/catalog/components/good-app-layout.json +245 -0
  15. package/ai/catalog/components/good-assistant-body.json +43 -0
  16. package/ai/catalog/components/good-assistant-footer.json +43 -0
  17. package/ai/catalog/components/good-assistant-header.json +43 -0
  18. package/ai/catalog/components/good-assistant-main.json +61 -0
  19. package/ai/catalog/components/good-assistant-mobile.json +43 -0
  20. package/ai/catalog/components/good-assistant-panel.json +131 -0
  21. package/ai/catalog/components/good-avatar-menu-item.json +82 -0
  22. package/ai/catalog/components/good-avatar-menu.json +83 -0
  23. package/ai/catalog/components/good-badge.json +180 -0
  24. package/ai/catalog/components/good-bar-chart.json +118 -0
  25. package/ai/catalog/components/good-brand-icon.json +71 -0
  26. package/ai/catalog/components/good-breadcrumbs.json +102 -0
  27. package/ai/catalog/components/good-button.json +192 -0
  28. package/ai/catalog/components/good-calendar.json +430 -0
  29. package/ai/catalog/components/good-card-footer.json +63 -0
  30. package/ai/catalog/components/good-card-header.json +100 -0
  31. package/ai/catalog/components/good-card.json +57 -0
  32. package/ai/catalog/components/good-chart-axis.json +168 -0
  33. package/ai/catalog/components/good-chart-bar.json +89 -0
  34. package/ai/catalog/components/good-chart-histogram.json +78 -0
  35. package/ai/catalog/components/good-chart-line.json +89 -0
  36. package/ai/catalog/components/good-chart-scatter.json +87 -0
  37. package/ai/catalog/components/good-checkbox.json +171 -0
  38. package/ai/catalog/components/good-citation.json +62 -0
  39. package/ai/catalog/components/good-code-block.json +116 -0
  40. package/ai/catalog/components/good-color-controls.json +58 -0
  41. package/ai/catalog/components/good-color-picker.json +141 -0
  42. package/ai/catalog/components/good-column.json +53 -0
  43. package/ai/catalog/components/good-columns.json +77 -0
  44. package/ai/catalog/components/good-date-input.json +386 -0
  45. package/ai/catalog/components/good-detail-list.json +43 -0
  46. package/ai/catalog/components/good-dropdown.json +259 -0
  47. package/ai/catalog/components/good-error-page.json +133 -0
  48. package/ai/catalog/components/good-error-text.json +43 -0
  49. package/ai/catalog/components/good-expandable.json +159 -0
  50. package/ai/catalog/components/good-eyebrow.json +61 -0
  51. package/ai/catalog/components/good-field-label.json +62 -0
  52. package/ai/catalog/components/good-form-field.json +67 -0
  53. package/ai/catalog/components/good-form-row.json +70 -0
  54. package/ai/catalog/components/good-group.json +150 -0
  55. package/ai/catalog/components/good-heading-group.json +45 -0
  56. package/ai/catalog/components/good-heading.json +69 -0
  57. package/ai/catalog/components/good-hint.json +43 -0
  58. package/ai/catalog/components/good-histogram.json +103 -0
  59. package/ai/catalog/components/good-icon.json +97 -0
  60. package/ai/catalog/components/good-image-input.json +190 -0
  61. package/ai/catalog/components/good-image-preview.json +97 -0
  62. package/ai/catalog/components/good-inline-image.json +131 -0
  63. package/ai/catalog/components/good-input-phone.json +226 -0
  64. package/ai/catalog/components/good-input.json +350 -0
  65. package/ai/catalog/components/good-line-chart.json +94 -0
  66. package/ai/catalog/components/good-link.json +147 -0
  67. package/ai/catalog/components/good-listbox.json +248 -0
  68. package/ai/catalog/components/good-main-menu.json +138 -0
  69. package/ai/catalog/components/good-main-view.json +179 -0
  70. package/ai/catalog/components/good-map-color-scale.json +163 -0
  71. package/ai/catalog/components/good-map-overlay.json +136 -0
  72. package/ai/catalog/components/good-modal-footer.json +63 -0
  73. package/ai/catalog/components/good-modal-header.json +73 -0
  74. package/ai/catalog/components/good-modal.json +131 -0
  75. package/ai/catalog/components/good-month-calendar.json +170 -0
  76. package/ai/catalog/components/good-notification-host.json +46 -0
  77. package/ai/catalog/components/good-notifications.json +72 -0
  78. package/ai/catalog/components/good-number-input.json +180 -0
  79. package/ai/catalog/components/good-paragraph.json +47 -0
  80. package/ai/catalog/components/good-pdf-preview.json +153 -0
  81. package/ai/catalog/components/good-pin-input.json +211 -0
  82. package/ai/catalog/components/good-progress.json +158 -0
  83. package/ai/catalog/components/good-prose.json +43 -0
  84. package/ai/catalog/components/good-radio-group.json +181 -0
  85. package/ai/catalog/components/good-range-slider.json +285 -0
  86. package/ai/catalog/components/good-rating.json +160 -0
  87. package/ai/catalog/components/good-resizable-pane.json +61 -0
  88. package/ai/catalog/components/good-resizable.json +185 -0
  89. package/ai/catalog/components/good-rich-text-editor.json +164 -0
  90. package/ai/catalog/components/good-scatter-chart.json +94 -0
  91. package/ai/catalog/components/good-search.json +60 -0
  92. package/ai/catalog/components/good-section.json +43 -0
  93. package/ai/catalog/components/good-select-country.json +205 -0
  94. package/ai/catalog/components/good-select-font.json +111 -0
  95. package/ai/catalog/components/good-select.json +217 -0
  96. package/ai/catalog/components/good-separator.json +59 -0
  97. package/ai/catalog/components/good-settings.json +60 -0
  98. package/ai/catalog/components/good-sidebar-container.json +112 -0
  99. package/ai/catalog/components/good-sidebar-item.json +210 -0
  100. package/ai/catalog/components/good-sidebar-menu-container.json +80 -0
  101. package/ai/catalog/components/good-sidebar-submenu-group.json +98 -0
  102. package/ai/catalog/components/good-sidebar-submenu-item.json +113 -0
  103. package/ai/catalog/components/good-signature-pad.json +115 -0
  104. package/ai/catalog/components/good-sparkline.json +188 -0
  105. package/ai/catalog/components/good-status-icon.json +425 -0
  106. package/ai/catalog/components/good-subheading.json +67 -0
  107. package/ai/catalog/components/good-subnav.json +132 -0
  108. package/ai/catalog/components/good-summary.json +43 -0
  109. package/ai/catalog/components/good-switch.json +167 -0
  110. package/ai/catalog/components/good-tab.json +129 -0
  111. package/ai/catalog/components/good-table.json +294 -0
  112. package/ai/catalog/components/good-tabs.json +90 -0
  113. package/ai/catalog/components/good-textarea.json +194 -0
  114. package/ai/catalog/components/good-theme-toggle.json +57 -0
  115. package/ai/catalog/components/good-timeline-section.json +105 -0
  116. package/ai/catalog/components/good-timeline-step.json +248 -0
  117. package/ai/catalog/components/good-timeline.json +302 -0
  118. package/ai/catalog/components/good-topbar-dropdown-item.json +115 -0
  119. package/ai/catalog/components/good-topbar-dropdown-menu.json +85 -0
  120. package/ai/catalog/components/good-topbar-menu-container.json +96 -0
  121. package/ai/catalog/components/good-topbar-menu-item.json +99 -0
  122. package/ai/catalog/components/good-topbar-submenu.json +77 -0
  123. package/ai/catalog/components/good-topbar.json +259 -0
  124. package/ai/catalog/components/good-world-map.json +145 -0
  125. package/ai/catalog/components/goodCardActions.json +33 -0
  126. package/ai/catalog/components/goodDropdownFooter.json +33 -0
  127. package/ai/catalog/components/goodDropdownHeader.json +33 -0
  128. package/ai/catalog/components/goodExpandableHeader.json +33 -0
  129. package/ai/catalog/components/ng-template-goodListboxItem.json +33 -0
  130. package/ai/catalog/components/ng-template-goodTableCell.json +43 -0
  131. package/ai/catalog/index.json +1484 -0
  132. package/ai/catalog/index.schema.json +13 -0
  133. package/ai/examples/angular.json +26 -0
  134. package/ai/examples/edit-form.html +13 -0
  135. package/ai/examples/edit-form.ts +18 -0
  136. package/ai/examples/index.html +1 -0
  137. package/ai/examples/login.html +11 -0
  138. package/ai/examples/login.ts +14 -0
  139. package/ai/examples/main.ts +25 -0
  140. package/ai/examples/settings.html +10 -0
  141. package/ai/examples/settings.ts +13 -0
  142. package/ai/examples/table-view.html +3 -0
  143. package/ai/examples/table-view.ts +21 -0
  144. package/ai/examples/tsconfig.json +27 -0
  145. package/ai/guides/common-mistakes.md +9 -0
  146. package/ai/guides/component-discovery.md +17 -0
  147. package/ai/guides/design-tokens.md +10 -0
  148. package/ai/guides/layout.md +17 -0
  149. package/ai/guides/page-patterns.md +39 -0
  150. package/ai/install.mjs +25 -0
  151. package/ai/manifest.json +6 -0
  152. package/ai/skill/goodui/SKILL.md +27 -0
  153. package/angular/projects/goodui/package.json +28 -0
  154. package/angular/projects/goodui/src/action-bar.css +20 -0
  155. package/angular/projects/goodui/src/assistant-panel.css +38 -0
  156. package/angular/projects/goodui/src/calendar.css +161 -0
  157. package/angular/projects/goodui/src/chart.css +35 -0
  158. package/angular/projects/goodui/src/color-picker.css +40 -0
  159. package/angular/projects/goodui/src/error-page.css +24 -0
  160. package/angular/projects/goodui/src/lib/action-bar.ts +161 -0
  161. package/angular/projects/goodui/src/lib/action-group.ts +31 -0
  162. package/angular/projects/goodui/src/lib/action-menu.ts +81 -0
  163. package/angular/projects/goodui/src/lib/actions.ts +318 -0
  164. package/angular/projects/goodui/src/lib/alert.ts +60 -0
  165. package/angular/projects/goodui/src/lib/app-layout.ts +79 -0
  166. package/angular/projects/goodui/src/lib/assistant-panel.ts +133 -0
  167. package/angular/projects/goodui/src/lib/badge.ts +47 -0
  168. package/angular/projects/goodui/src/lib/bar-chart.html +80 -0
  169. package/angular/projects/goodui/src/lib/bar-chart.ts +233 -0
  170. package/angular/projects/goodui/src/lib/breadcrumbs.ts +81 -0
  171. package/angular/projects/goodui/src/lib/button.ts +38 -0
  172. package/angular/projects/goodui/src/lib/calendar-layout.ts +68 -0
  173. package/angular/projects/goodui/src/lib/calendar-service.ts +144 -0
  174. package/angular/projects/goodui/src/lib/calendar-working-hours.ts +65 -0
  175. package/angular/projects/goodui/src/lib/calendar.html +200 -0
  176. package/angular/projects/goodui/src/lib/calendar.ts +471 -0
  177. package/angular/projects/goodui/src/lib/card.ts +64 -0
  178. package/angular/projects/goodui/src/lib/chart-colors.ts +22 -0
  179. package/angular/projects/goodui/src/lib/chart-data.ts +269 -0
  180. package/angular/projects/goodui/src/lib/checkbox.ts +87 -0
  181. package/angular/projects/goodui/src/lib/code-block.ts +147 -0
  182. package/angular/projects/goodui/src/lib/color-controls.ts +107 -0
  183. package/angular/projects/goodui/src/lib/color-picker.ts +142 -0
  184. package/angular/projects/goodui/src/lib/color-utils.ts +69 -0
  185. package/angular/projects/goodui/src/lib/country-data.ts +16 -0
  186. package/angular/projects/goodui/src/lib/date-input.ts +542 -0
  187. package/angular/projects/goodui/src/lib/dropdown.ts +309 -0
  188. package/angular/projects/goodui/src/lib/error-page.ts +46 -0
  189. package/angular/projects/goodui/src/lib/expandable.ts +64 -0
  190. package/angular/projects/goodui/src/lib/form.ts +12 -0
  191. package/angular/projects/goodui/src/lib/goodui-config.ts +16 -0
  192. package/angular/projects/goodui/src/lib/group.ts +45 -0
  193. package/angular/projects/goodui/src/lib/histogram.html +52 -0
  194. package/angular/projects/goodui/src/lib/histogram.ts +146 -0
  195. package/angular/projects/goodui/src/lib/icon.ts +44 -0
  196. package/angular/projects/goodui/src/lib/image-input.ts +154 -0
  197. package/angular/projects/goodui/src/lib/image-preview.ts +26 -0
  198. package/angular/projects/goodui/src/lib/input-phone.ts +305 -0
  199. package/angular/projects/goodui/src/lib/input.ts +143 -0
  200. package/angular/projects/goodui/src/lib/line-chart.html +53 -0
  201. package/angular/projects/goodui/src/lib/line-chart.ts +193 -0
  202. package/angular/projects/goodui/src/lib/link.ts +46 -0
  203. package/angular/projects/goodui/src/lib/listbox.ts +254 -0
  204. package/angular/projects/goodui/src/lib/main-view.ts +39 -0
  205. package/angular/projects/goodui/src/lib/marker-colors.ts +7 -0
  206. package/angular/projects/goodui/src/lib/modal.ts +199 -0
  207. package/angular/projects/goodui/src/lib/models.ts +115 -0
  208. package/angular/projects/goodui/src/lib/month-calendar.ts +289 -0
  209. package/angular/projects/goodui/src/lib/notification-center.ts +170 -0
  210. package/angular/projects/goodui/src/lib/notification-host.ts +86 -0
  211. package/angular/projects/goodui/src/lib/number-input.ts +180 -0
  212. package/angular/projects/goodui/src/lib/pdf-preview.ts +242 -0
  213. package/angular/projects/goodui/src/lib/pdf-worker.generated.ts +2 -0
  214. package/angular/projects/goodui/src/lib/pin-input.ts +193 -0
  215. package/angular/projects/goodui/src/lib/progress.ts +93 -0
  216. package/angular/projects/goodui/src/lib/provide-goodui.ts +15 -0
  217. package/angular/projects/goodui/src/lib/radio-group.ts +94 -0
  218. package/angular/projects/goodui/src/lib/range-slider.ts +313 -0
  219. package/angular/projects/goodui/src/lib/rating.ts +90 -0
  220. package/angular/projects/goodui/src/lib/required-control.ts +4 -0
  221. package/angular/projects/goodui/src/lib/resizable.ts +168 -0
  222. package/angular/projects/goodui/src/lib/rich-text-command.ts +111 -0
  223. package/angular/projects/goodui/src/lib/rich-text-editor.html +193 -0
  224. package/angular/projects/goodui/src/lib/rich-text-editor.ts +864 -0
  225. package/angular/projects/goodui/src/lib/rich-text-sanitize.ts +99 -0
  226. package/angular/projects/goodui/src/lib/scatter-chart.html +48 -0
  227. package/angular/projects/goodui/src/lib/scatter-chart.ts +150 -0
  228. package/angular/projects/goodui/src/lib/select-country.ts +104 -0
  229. package/angular/projects/goodui/src/lib/select-font.ts +189 -0
  230. package/angular/projects/goodui/src/lib/select.ts +336 -0
  231. package/angular/projects/goodui/src/lib/sidebar.ts +232 -0
  232. package/angular/projects/goodui/src/lib/signature-pad.ts +238 -0
  233. package/angular/projects/goodui/src/lib/sparkline.html +15 -0
  234. package/angular/projects/goodui/src/lib/sparkline.ts +106 -0
  235. package/angular/projects/goodui/src/lib/status-icon.ts +79 -0
  236. package/angular/projects/goodui/src/lib/subnav.ts +156 -0
  237. package/angular/projects/goodui/src/lib/switch.ts +54 -0
  238. package/angular/projects/goodui/src/lib/table.ts +538 -0
  239. package/angular/projects/goodui/src/lib/tabs.ts +251 -0
  240. package/angular/projects/goodui/src/lib/textarea.ts +83 -0
  241. package/angular/projects/goodui/src/lib/theme.ts +49 -0
  242. package/angular/projects/goodui/src/lib/timeline.ts +252 -0
  243. package/angular/projects/goodui/src/lib/topbar.ts +402 -0
  244. package/angular/projects/goodui/src/lib/typography.ts +250 -0
  245. package/angular/projects/goodui/src/lib/world-map-data.ts +3 -0
  246. package/angular/projects/goodui/src/lib/world-map.html +73 -0
  247. package/angular/projects/goodui/src/lib/world-map.ts +391 -0
  248. package/angular/projects/goodui/src/month-calendar.css +47 -0
  249. package/angular/projects/goodui/src/pdf-preview.css +25 -0
  250. package/angular/projects/goodui/src/progress.css +38 -0
  251. package/angular/projects/goodui/src/public-api.ts +74 -0
  252. package/angular/projects/goodui/src/range-slider.css +54 -0
  253. package/angular/projects/goodui/src/resizable.css +32 -0
  254. package/angular/projects/goodui/src/rich-text-editor.css +33 -0
  255. package/angular/projects/goodui/src/select-font.css +16 -0
  256. package/angular/projects/goodui/src/signature-pad.css +14 -0
  257. package/angular/projects/goodui/src/styles.css +1105 -0
  258. package/angular/projects/goodui/src/timeline.css +138 -0
  259. package/angular/projects/goodui/src/tokens.generated.css +754 -0
  260. package/design/component-map.json +2233 -0
  261. package/design-tokens/penpot.tokens.json +3339 -0
  262. package/design.md +452 -0
  263. package/guides/README.md +17 -0
  264. package/guides/components/action-bar.md +43 -0
  265. package/guides/components/action-group.md +43 -0
  266. package/guides/components/action-menu.md +22 -0
  267. package/guides/components/alert.md +28 -0
  268. package/guides/components/assistant-panel.md +50 -0
  269. package/guides/components/avatar-menu.md +34 -0
  270. package/guides/components/badge.md +39 -0
  271. package/guides/components/bar-chart.md +40 -0
  272. package/guides/components/breadcrumbs.md +37 -0
  273. package/guides/components/button.md +40 -0
  274. package/guides/components/calendar.md +166 -0
  275. package/guides/components/card.md +62 -0
  276. package/guides/components/chart-axis.md +5 -0
  277. package/guides/components/chart-bar.md +5 -0
  278. package/guides/components/chart-data.md +58 -0
  279. package/guides/components/chart-histogram.md +16 -0
  280. package/guides/components/chart-line.md +5 -0
  281. package/guides/components/chart-scatter.md +14 -0
  282. package/guides/components/checkbox.md +36 -0
  283. package/guides/components/code-block.md +35 -0
  284. package/guides/components/color-controls.md +22 -0
  285. package/guides/components/column.md +5 -0
  286. package/guides/components/columns.md +13 -0
  287. package/guides/components/date-input.md +62 -0
  288. package/guides/components/detail-list.md +25 -0
  289. package/guides/components/dropdown.md +48 -0
  290. package/guides/components/error-page.md +31 -0
  291. package/guides/components/expandable.md +36 -0
  292. package/guides/components/form.md +49 -0
  293. package/guides/components/group.md +41 -0
  294. package/guides/components/histogram.md +45 -0
  295. package/guides/components/icon.md +13 -0
  296. package/guides/components/image-input.md +34 -0
  297. package/guides/components/input-phone.md +45 -0
  298. package/guides/components/input.md +59 -0
  299. package/guides/components/line-chart.md +37 -0
  300. package/guides/components/link.md +31 -0
  301. package/guides/components/listbox.md +109 -0
  302. package/guides/components/main-menu.md +11 -0
  303. package/guides/components/main-view.md +21 -0
  304. package/guides/components/modal.md +58 -0
  305. package/guides/components/month-calendar.md +88 -0
  306. package/guides/components/notifications.md +76 -0
  307. package/guides/components/number-input.md +21 -0
  308. package/guides/components/pdf-preview.md +38 -0
  309. package/guides/components/pin-input.md +37 -0
  310. package/guides/components/progress.md +41 -0
  311. package/guides/components/radio-group.md +41 -0
  312. package/guides/components/range-slider.md +42 -0
  313. package/guides/components/rating.md +39 -0
  314. package/guides/components/resizable-pane.md +3 -0
  315. package/guides/components/resizable.md +75 -0
  316. package/guides/components/rich-text-editor.md +113 -0
  317. package/guides/components/scatter-chart.md +43 -0
  318. package/guides/components/search.md +9 -0
  319. package/guides/components/select-font.md +16 -0
  320. package/guides/components/select.md +65 -0
  321. package/guides/components/settings.md +11 -0
  322. package/guides/components/sidebar.md +47 -0
  323. package/guides/components/signature-pad.md +45 -0
  324. package/guides/components/sparkline.md +31 -0
  325. package/guides/components/status-icon.md +32 -0
  326. package/guides/components/submenus.md +30 -0
  327. package/guides/components/subnav.md +54 -0
  328. package/guides/components/switch.md +48 -0
  329. package/guides/components/table.md +256 -0
  330. package/guides/components/tabs.md +46 -0
  331. package/guides/components/textarea.md +44 -0
  332. package/guides/components/theme-toggle.md +33 -0
  333. package/guides/components/timeline-section.md +7 -0
  334. package/guides/components/timeline-step.md +12 -0
  335. package/guides/components/timeline.md +179 -0
  336. package/guides/components/topbar.md +83 -0
  337. package/guides/components/typography.md +155 -0
  338. package/guides/components/world-map.md +72 -0
  339. package/guides/contributing/design-to-code.md +261 -0
  340. package/guides/deployment/drone.md +77 -0
  341. package/guides/examples/user-registration.md +11 -0
  342. package/guides/foundations/naming.md +7 -0
  343. package/guides/foundations/tokens.md +203 -0
  344. package/guides/intro.md +80 -0
  345. package/guides/layout/app-layout.md +64 -0
  346. package/guides/layout/layout-rules.md +16 -0
  347. package/homepage/src/app/examples/calendar-workspace/calendar-workspace-page.html +22 -0
  348. package/homepage/src/app/examples/calendar-workspace/calendar-workspace-page.ts +111 -0
  349. package/homepage/src/app/examples/calendar-workspace/source-code.generated.ts +3 -0
  350. package/homepage/src/app/examples/case-studies/cloudhoster/billing-page.html +166 -0
  351. package/homepage/src/app/examples/case-studies/cloudhoster/billing-page.ts +134 -0
  352. package/homepage/src/app/examples/case-studies/cloudhoster/cloudhoster-store.ts +92 -0
  353. package/homepage/src/app/examples/case-studies/cloudhoster/create-database-page.html +93 -0
  354. package/homepage/src/app/examples/case-studies/cloudhoster/create-database-page.ts +115 -0
  355. package/homepage/src/app/examples/case-studies/cloudhoster/database-detail-page.html +202 -0
  356. package/homepage/src/app/examples/case-studies/cloudhoster/database-detail-page.ts +143 -0
  357. package/homepage/src/app/examples/case-studies/cloudhoster/databases-page.html +70 -0
  358. package/homepage/src/app/examples/case-studies/cloudhoster/databases-page.ts +44 -0
  359. package/homepage/src/app/examples/case-studies/cloudhoster/home-page.html +70 -0
  360. package/homepage/src/app/examples/case-studies/cloudhoster/home-page.ts +32 -0
  361. package/homepage/src/app/examples/case-studies/cloudhoster/source-code.generated.ts +12 -0
  362. package/homepage/src/app/examples/case-studies/vpshoster/create-server-page.html +208 -0
  363. package/homepage/src/app/examples/case-studies/vpshoster/create-server-page.ts +214 -0
  364. package/homepage/src/app/examples/case-studies/vpshoster/overview-page.html +35 -0
  365. package/homepage/src/app/examples/case-studies/vpshoster/overview-page.ts +17 -0
  366. package/homepage/src/app/examples/case-studies/vpshoster/servers-page.html +111 -0
  367. package/homepage/src/app/examples/case-studies/vpshoster/servers-page.ts +206 -0
  368. package/homepage/src/app/examples/case-studies/vpshoster/source-code.generated.ts +6 -0
  369. package/homepage/src/app/examples/case-studies/vpshoster/vps-store.ts +92 -0
  370. package/homepage/src/app/examples/case-studies/webmailer/webmailer-page.html +35 -0
  371. package/homepage/src/app/examples/case-studies/webmailer/webmailer-page.ts +17 -0
  372. package/homepage/src/app/examples/error-pages/error-pages-example-page.html +27 -0
  373. package/homepage/src/app/examples/error-pages/error-pages-example-page.ts +34 -0
  374. package/homepage/src/app/examples/error-pages/not-found-page.html +8 -0
  375. package/homepage/src/app/examples/error-pages/not-found-page.ts +19 -0
  376. package/homepage/src/app/examples/error-pages/server-error-page.html +8 -0
  377. package/homepage/src/app/examples/error-pages/server-error-page.ts +20 -0
  378. package/homepage/src/app/examples/error-pages/source-code.generated.ts +7 -0
  379. package/homepage/src/app/examples/mail-compose/mail-compose-page.html +25 -0
  380. package/homepage/src/app/examples/mail-compose/mail-compose-page.ts +28 -0
  381. package/homepage/src/app/examples/mail-workspace/mail-workspace-page.html +59 -0
  382. package/homepage/src/app/examples/mail-workspace/mail-workspace-page.ts +128 -0
  383. package/homepage/src/app/examples/mail-workspace/source-code.generated.ts +3 -0
  384. package/homepage/src/app/examples/notifications/notifications-page.html +51 -0
  385. package/homepage/src/app/examples/notifications/notifications-page.ts +133 -0
  386. package/homepage/src/app/examples/notifications/source-code.generated.ts +3 -0
  387. package/homepage/src/app/examples/pdf-reader/pdf-reader-page.html +27 -0
  388. package/homepage/src/app/examples/pdf-reader/pdf-reader-page.ts +39 -0
  389. package/homepage/src/app/examples/pdf-reader/source-code.generated.ts +3 -0
  390. package/homepage/src/app/examples/user-registration/source-code.generated.ts +5 -0
  391. package/homepage/src/app/examples/user-registration/user-registration-example-page.html +11 -0
  392. package/homepage/src/app/examples/user-registration/user-registration-example-page.ts +21 -0
  393. package/homepage/src/app/examples/user-registration/user-registration-form.html +116 -0
  394. package/homepage/src/app/examples/user-registration/user-registration-form.ts +93 -0
  395. package/homepage/src/app/examples/user-registration/user-registration-page.html +11 -0
  396. package/homepage/src/app/examples/user-registration/user-registration-page.ts +23 -0
  397. package/package.json +2 -2
@@ -0,0 +1,116 @@
1
+ <form goodForm layout="vertical" [fullWidth]="true" [formGroup]="form" (ngSubmit)="createUser()" novalidate>
2
+ <good-group title="Personal details" [headingLevel]="2" [mobileBleed]="true">
3
+ <good-radio-group label="Title" orientation="horizontal" [options]="salutations"
4
+ formControlName="salutation" />
5
+ <good-form-row [columns]="3">
6
+ <good-form-field [required]="true">
7
+ <good-field-label forId="registration-first-name">First name</good-field-label>
8
+ <good-input inputId="registration-first-name" label="First name" autocomplete="given-name"
9
+ formControlName="firstName" [error]="isInvalid('firstName')" />
10
+ @if (isInvalid('firstName')) { <good-error-text>Enter your first name.</good-error-text> }
11
+ </good-form-field>
12
+ <good-form-field>
13
+ <good-field-label forId="registration-middle-name">Middle name</good-field-label>
14
+ <good-input inputId="registration-middle-name" label="Middle name" autocomplete="additional-name"
15
+ formControlName="middleName" />
16
+ </good-form-field>
17
+ <good-form-field [required]="true">
18
+ <good-field-label forId="registration-last-name">Last name</good-field-label>
19
+ <good-input inputId="registration-last-name" label="Last name" autocomplete="family-name"
20
+ formControlName="lastName" [error]="isInvalid('lastName')" />
21
+ @if (isInvalid('lastName')) { <good-error-text>Enter your last name.</good-error-text> }
22
+ </good-form-field>
23
+ </good-form-row>
24
+ </good-group>
25
+ <good-group title="Address" [headingLevel]="2" [mobileBleed]="true">
26
+ <good-form-field [required]="true">
27
+ <good-field-label forId="registration-street">Street address</good-field-label>
28
+ <good-input inputId="registration-street" label="Street address" autocomplete="street-address"
29
+ formControlName="streetAddress" [error]="isInvalid('streetAddress')" />
30
+ @if (isInvalid('streetAddress')) { <good-error-text>Enter your street address.</good-error-text> }
31
+ </good-form-field>
32
+ <good-form-row [columns]="3">
33
+ <good-form-field [required]="true">
34
+ <good-field-label forId="registration-postal-code">Postal code</good-field-label>
35
+ <good-input inputId="registration-postal-code" label="Postal code" autocomplete="postal-code"
36
+ formControlName="postalCode" [error]="isInvalid('postalCode')" />
37
+ @if (isInvalid('postalCode')) { <good-error-text>Enter your postal code.</good-error-text> }
38
+ </good-form-field>
39
+ <good-form-field [required]="true">
40
+ <good-field-label forId="registration-city">City</good-field-label>
41
+ <good-input inputId="registration-city" label="City" autocomplete="address-level2"
42
+ formControlName="city" [error]="isInvalid('city')" />
43
+ @if (isInvalid('city')) { <good-error-text>Enter your city.</good-error-text> }
44
+ </good-form-field>
45
+ <good-form-field>
46
+ <good-select-country label="Country" [showLabel]="true" [required]="true"
47
+ formControlName="country" [error]="isInvalid('country')" />
48
+ @if (isInvalid('country')) { <good-error-text>Select a country.</good-error-text> }
49
+ </good-form-field>
50
+ </good-form-row>
51
+ </good-group>
52
+ <good-group title="Contact details" appearance="contrast" [headingLevel]="2" [mobileBleed]="true">
53
+ <good-form-row>
54
+ <good-form-field>
55
+ <good-field-label forId="registration-phone">Phone number</good-field-label>
56
+ <good-input-phone inputId="registration-phone" label="Phone number" formControlName="phone"
57
+ [country]="form.controls.country.value" [error]="isInvalid('phone')" />
58
+ <good-hint>Optional landline number.</good-hint>
59
+ </good-form-field>
60
+ <good-form-field [required]="true">
61
+ <good-field-label forId="registration-mobile">Mobile number</good-field-label>
62
+ <good-input-phone inputId="registration-mobile" label="Mobile number" formControlName="mobile"
63
+ [country]="form.controls.country.value" [error]="isInvalid('mobile')" />
64
+ @if (isInvalid('mobile')) { <good-error-text>Enter a mobile number.</good-error-text> }
65
+ </good-form-field>
66
+ </good-form-row>
67
+ <good-form-field [required]="true">
68
+ <good-field-label forId="registration-email">Email address</good-field-label>
69
+ <good-input inputId="registration-email" label="Email address" type="email" autocomplete="email"
70
+ formControlName="email" [error]="isInvalid('email')" />
71
+ @if (isInvalid('email')) { <good-error-text>Enter a valid email address.</good-error-text> }
72
+ </good-form-field>
73
+ </good-group>
74
+ <good-group title="Preferences" [headingLevel]="2" [mobileBleed]="true">
75
+ <good-listbox label="Interests" [showLabel]="true" [groups]="interestGroups"
76
+ selectionMode="multiple" appearance="checkbox" formControlName="interests" />
77
+ <good-hint>Optional. Select any interests you would like to share.</good-hint>
78
+ <good-form-field>
79
+ <good-field-label forId="registration-bio">About you</good-field-label>
80
+ <good-textarea inputId="registration-bio" label="About you" formControlName="bio"
81
+ placeholder="Share a little about yourself" [resizable]="true" />
82
+ <good-hint>Optional. A short introduction for your profile.</good-hint>
83
+ </good-form-field>
84
+ </good-group>
85
+ <good-group title="Account security" [headingLevel]="2" [mobileBleed]="true">
86
+ <good-form-row>
87
+ <good-form-field [required]="true">
88
+ <good-field-label forId="registration-password">Password</good-field-label>
89
+ <good-input inputId="registration-password" label="Password" type="password" autocomplete="new-password"
90
+ formControlName="password" [error]="isInvalid('password')" />
91
+ @if (isInvalid('password')) { <good-error-text>Enter a password.</good-error-text> }
92
+ </good-form-field>
93
+ <good-form-field [required]="true">
94
+ <good-field-label forId="registration-confirm-password">Confirm password</good-field-label>
95
+ <good-input inputId="registration-confirm-password" label="Confirm password" type="password"
96
+ autocomplete="new-password" formControlName="confirmPassword"
97
+ [error]="isInvalid('confirmPassword') || confirmationMismatch()" />
98
+ @if (confirmationMismatch()) { <good-error-text>Passwords must match.</good-error-text> }
99
+ @else if (isInvalid('confirmPassword')) { <good-error-text>Confirm your password.</good-error-text> }
100
+ </good-form-field>
101
+ </good-form-row>
102
+ </good-group>
103
+ <good-action-group><good-button type="submit">Create user</good-button></good-action-group>
104
+ @if (submitted() && form.invalid) {
105
+ <good-error-text>Review the highlighted fields before creating a user.</good-error-text>
106
+ }
107
+ </form>
108
+ @if (createdUser(); as user) {
109
+ <good-card [mobileBleed]="true">
110
+ <good-card-header title="User created in this demo" />
111
+ <good-paragraph>{{ user.name }} · {{ user.email }}</good-paragraph>
112
+ @if (user.interests.length) { <good-paragraph>Interests: {{ user.interests.join(', ') }}</good-paragraph> }
113
+ @if (user.bio) { <good-paragraph>About: {{ user.bio }}</good-paragraph> }
114
+ <good-hint>This example validates locally and does not save the user to a server.</good-hint>
115
+ </good-card>
116
+ }
@@ -0,0 +1,93 @@
1
+ import { ChangeDetectionStrategy, Component, signal } from '@angular/core';
2
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
3
+ import { FormControl, FormGroup, ReactiveFormsModule, ValidatorFn, Validators } from '@angular/forms';
4
+ import {
5
+ GoodActionGroupComponent, GoodButtonComponent, GoodCardComponent, GoodCardHeaderComponent,
6
+ GoodErrorTextComponent, GoodFieldLabelComponent, GoodFormDirective, GoodFormFieldComponent,
7
+ GoodFormRowComponent, GoodGroupComponent, GoodHintComponent, GoodInputComponent,
8
+ GoodInputPhoneComponent, GoodListboxComponent, GoodListboxGroup, GoodParagraphComponent,
9
+ GoodRadioGroupComponent, GoodSelectCountryComponent,
10
+ GoodTextareaComponent,
11
+ } from '@cloudfrogger/goodui';
12
+
13
+ const passwordsMatch: ValidatorFn = form => {
14
+ const password = form.get('password')?.value;
15
+ const confirmation = form.get('confirmPassword')?.value;
16
+ return password && confirmation && password !== confirmation ? { passwordsMismatch: true } : null;
17
+ };
18
+
19
+ @Component({
20
+ selector: 'example-user-registration-form', standalone: true,
21
+ imports: [ReactiveFormsModule, GoodActionGroupComponent, GoodButtonComponent, GoodCardComponent,
22
+ GoodCardHeaderComponent, GoodErrorTextComponent, GoodFieldLabelComponent, GoodFormDirective,
23
+ GoodFormFieldComponent, GoodFormRowComponent, GoodGroupComponent, GoodHintComponent,
24
+ GoodInputComponent, GoodInputPhoneComponent, GoodListboxComponent, GoodParagraphComponent, GoodRadioGroupComponent,
25
+ GoodSelectCountryComponent, GoodTextareaComponent],
26
+ changeDetection: ChangeDetectionStrategy.OnPush,
27
+ templateUrl: './user-registration-form.html',
28
+ })
29
+ export class UserRegistrationFormExampleComponent {
30
+ readonly form = new FormGroup({
31
+ salutation: new FormControl('none', { nonNullable: true }),
32
+ firstName: new FormControl('', { nonNullable: true, validators: Validators.required }),
33
+ middleName: new FormControl('', { nonNullable: true }),
34
+ lastName: new FormControl('', { nonNullable: true, validators: Validators.required }),
35
+ streetAddress: new FormControl('', { nonNullable: true, validators: Validators.required }),
36
+ postalCode: new FormControl('', { nonNullable: true, validators: Validators.required }),
37
+ city: new FormControl('', { nonNullable: true, validators: Validators.required }),
38
+ country: new FormControl<string | null>(null, Validators.required),
39
+ phone: new FormControl('', { nonNullable: true }),
40
+ mobile: new FormControl('', { nonNullable: true, validators: Validators.required }),
41
+ email: new FormControl('', { nonNullable: true, validators: [Validators.required, Validators.email] }),
42
+ interests: new FormControl<readonly string[]>([], { nonNullable: true }),
43
+ bio: new FormControl('', { nonNullable: true }),
44
+ password: new FormControl('', { nonNullable: true, validators: Validators.required }),
45
+ confirmPassword: new FormControl('', { nonNullable: true, validators: Validators.required }),
46
+ }, { validators: passwordsMatch });
47
+ readonly submitted = signal(false);
48
+ readonly salutations = [
49
+ { value: 'mr', label: 'Mr.' },
50
+ { value: 'ms', label: 'Ms.' },
51
+ { value: 'none', label: 'No title' },
52
+ ];
53
+ readonly interestGroups: readonly GoodListboxGroup[] = [
54
+ { id: 'creative', label: 'Creative', items: [
55
+ { id: 'design', label: 'Design' },
56
+ { id: 'photography', label: 'Photography' },
57
+ ] },
58
+ { id: 'outdoors', label: 'Outdoors', items: [
59
+ { id: 'hiking', label: 'Hiking' },
60
+ { id: 'gardening', label: 'Gardening' },
61
+ ] },
62
+ ];
63
+ readonly createdUser = signal<{ name: string; email: string; interests: readonly string[]; bio: string } | null>(null);
64
+
65
+ constructor() {
66
+ this.form.valueChanges.pipe(takeUntilDestroyed()).subscribe(() => this.createdUser.set(null));
67
+ }
68
+
69
+ isInvalid(name: keyof typeof this.form.controls): boolean {
70
+ const control = this.form.controls[name];
71
+ return control.invalid && (control.touched || this.submitted());
72
+ }
73
+
74
+ confirmationMismatch(): boolean {
75
+ return this.form.hasError('passwordsMismatch') &&
76
+ (this.form.controls.confirmPassword.touched || this.submitted());
77
+ }
78
+
79
+ createUser(): void {
80
+ this.submitted.set(true);
81
+ this.form.markAllAsTouched();
82
+ if (this.form.invalid) return;
83
+ const user = this.form.getRawValue();
84
+ const interestLabels = this.interestGroups.flatMap(group => group.items)
85
+ .filter(item => user.interests.includes(item.id)).map(item => item.label);
86
+ this.createdUser.set({
87
+ name: [user.firstName, user.middleName, user.lastName].filter(Boolean).join(' '),
88
+ email: user.email,
89
+ interests: interestLabels,
90
+ bio: user.bio.trim(),
91
+ });
92
+ }
93
+ }
@@ -0,0 +1,11 @@
1
+ <good-main-view>
2
+ <good-section>
3
+ <good-breadcrumbs [items]="breadcrumbs" />
4
+ <good-heading-group>
5
+ <good-heading>User registration</good-heading>
6
+ <good-summary>A complete registration form composed entirely from GoodUI components</good-summary>
7
+ </good-heading-group>
8
+ <example-user-registration-form />
9
+ <ng-content />
10
+ </good-section>
11
+ </good-main-view>
@@ -0,0 +1,23 @@
1
+ import { ChangeDetectionStrategy, Component } from '@angular/core';
2
+ import {
3
+ GoodBreadcrumbsComponent, GoodHeadingComponent, GoodHeadingGroupComponent,
4
+ GoodMainViewComponent, GoodSectionComponent, GoodSummaryComponent, type GoodBreadcrumbItem,
5
+ } from '@cloudfrogger/goodui';
6
+ import { UserRegistrationFormExampleComponent } from './user-registration-form';
7
+
8
+ @Component({
9
+ selector: 'example-user-registration-page',
10
+ standalone: true,
11
+ imports: [GoodMainViewComponent, GoodSectionComponent, GoodBreadcrumbsComponent,
12
+ GoodHeadingGroupComponent, GoodHeadingComponent, GoodSummaryComponent,
13
+ UserRegistrationFormExampleComponent],
14
+ changeDetection: ChangeDetectionStrategy.OnPush,
15
+ templateUrl: './user-registration-page.html',
16
+ })
17
+ export class UserRegistrationPageComponent {
18
+ readonly breadcrumbs: readonly GoodBreadcrumbItem[] = [
19
+ { label: 'Home', route: '/dashboard' },
20
+ { label: 'Examples' },
21
+ { label: 'User registration' },
22
+ ];
23
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudfrogger/goodui",
3
- "version": "0.0.59",
3
+ "version": "0.0.62",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -35,5 +35,5 @@
35
35
  "module": "fesm2022/cloudfrogger-goodui.mjs",
36
36
  "typings": "types/cloudfrogger-goodui.d.ts",
37
37
  "type": "module",
38
- "gitHead": "98c48684c03dc33dab45d1a80cd8dd2860727502"
38
+ "gitHead": "8aa9ecb321c2565828004f3723834d0e522409e3"
39
39
  }