@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.
- package/README.md +10 -0
- package/ai/README.md +47 -0
- package/ai/case-studies/index.md +10 -0
- package/ai/case-studies/vpshoster.md +18 -0
- package/ai/case-studies/webmailer.md +21 -0
- package/ai/catalog/README.md +7 -0
- package/ai/catalog/component.schema.json +289 -0
- package/ai/catalog/components/div-goodDetailRow.json +33 -0
- package/ai/catalog/components/form-goodForm.json +84 -0
- package/ai/catalog/components/good-action-bar.json +83 -0
- package/ai/catalog/components/good-action-group.json +143 -0
- package/ai/catalog/components/good-action-menu.json +121 -0
- package/ai/catalog/components/good-alert.json +184 -0
- package/ai/catalog/components/good-app-layout.json +245 -0
- package/ai/catalog/components/good-assistant-body.json +43 -0
- package/ai/catalog/components/good-assistant-footer.json +43 -0
- package/ai/catalog/components/good-assistant-header.json +43 -0
- package/ai/catalog/components/good-assistant-main.json +61 -0
- package/ai/catalog/components/good-assistant-mobile.json +43 -0
- package/ai/catalog/components/good-assistant-panel.json +131 -0
- package/ai/catalog/components/good-avatar-menu-item.json +82 -0
- package/ai/catalog/components/good-avatar-menu.json +83 -0
- package/ai/catalog/components/good-badge.json +180 -0
- package/ai/catalog/components/good-bar-chart.json +118 -0
- package/ai/catalog/components/good-brand-icon.json +71 -0
- package/ai/catalog/components/good-breadcrumbs.json +102 -0
- package/ai/catalog/components/good-button.json +192 -0
- package/ai/catalog/components/good-calendar.json +430 -0
- package/ai/catalog/components/good-card-footer.json +63 -0
- package/ai/catalog/components/good-card-header.json +100 -0
- package/ai/catalog/components/good-card.json +57 -0
- package/ai/catalog/components/good-chart-axis.json +168 -0
- package/ai/catalog/components/good-chart-bar.json +89 -0
- package/ai/catalog/components/good-chart-histogram.json +78 -0
- package/ai/catalog/components/good-chart-line.json +89 -0
- package/ai/catalog/components/good-chart-scatter.json +87 -0
- package/ai/catalog/components/good-checkbox.json +171 -0
- package/ai/catalog/components/good-citation.json +62 -0
- package/ai/catalog/components/good-code-block.json +116 -0
- package/ai/catalog/components/good-color-controls.json +58 -0
- package/ai/catalog/components/good-color-picker.json +141 -0
- package/ai/catalog/components/good-column.json +53 -0
- package/ai/catalog/components/good-columns.json +77 -0
- package/ai/catalog/components/good-date-input.json +386 -0
- package/ai/catalog/components/good-detail-list.json +43 -0
- package/ai/catalog/components/good-dropdown.json +259 -0
- package/ai/catalog/components/good-error-page.json +133 -0
- package/ai/catalog/components/good-error-text.json +43 -0
- package/ai/catalog/components/good-expandable.json +159 -0
- package/ai/catalog/components/good-eyebrow.json +61 -0
- package/ai/catalog/components/good-field-label.json +62 -0
- package/ai/catalog/components/good-form-field.json +67 -0
- package/ai/catalog/components/good-form-row.json +70 -0
- package/ai/catalog/components/good-group.json +150 -0
- package/ai/catalog/components/good-heading-group.json +45 -0
- package/ai/catalog/components/good-heading.json +69 -0
- package/ai/catalog/components/good-hint.json +43 -0
- package/ai/catalog/components/good-histogram.json +103 -0
- package/ai/catalog/components/good-icon.json +97 -0
- package/ai/catalog/components/good-image-input.json +190 -0
- package/ai/catalog/components/good-image-preview.json +97 -0
- package/ai/catalog/components/good-inline-image.json +131 -0
- package/ai/catalog/components/good-input-phone.json +226 -0
- package/ai/catalog/components/good-input.json +350 -0
- package/ai/catalog/components/good-line-chart.json +94 -0
- package/ai/catalog/components/good-link.json +147 -0
- package/ai/catalog/components/good-listbox.json +248 -0
- package/ai/catalog/components/good-main-menu.json +138 -0
- package/ai/catalog/components/good-main-view.json +179 -0
- package/ai/catalog/components/good-map-color-scale.json +163 -0
- package/ai/catalog/components/good-map-overlay.json +136 -0
- package/ai/catalog/components/good-modal-footer.json +63 -0
- package/ai/catalog/components/good-modal-header.json +73 -0
- package/ai/catalog/components/good-modal.json +131 -0
- package/ai/catalog/components/good-month-calendar.json +170 -0
- package/ai/catalog/components/good-notification-host.json +46 -0
- package/ai/catalog/components/good-notifications.json +72 -0
- package/ai/catalog/components/good-number-input.json +180 -0
- package/ai/catalog/components/good-paragraph.json +47 -0
- package/ai/catalog/components/good-pdf-preview.json +153 -0
- package/ai/catalog/components/good-pin-input.json +211 -0
- package/ai/catalog/components/good-progress.json +158 -0
- package/ai/catalog/components/good-prose.json +43 -0
- package/ai/catalog/components/good-radio-group.json +181 -0
- package/ai/catalog/components/good-range-slider.json +285 -0
- package/ai/catalog/components/good-rating.json +160 -0
- package/ai/catalog/components/good-resizable-pane.json +61 -0
- package/ai/catalog/components/good-resizable.json +185 -0
- package/ai/catalog/components/good-rich-text-editor.json +164 -0
- package/ai/catalog/components/good-scatter-chart.json +94 -0
- package/ai/catalog/components/good-search.json +60 -0
- package/ai/catalog/components/good-section.json +43 -0
- package/ai/catalog/components/good-select-country.json +205 -0
- package/ai/catalog/components/good-select-font.json +111 -0
- package/ai/catalog/components/good-select.json +217 -0
- package/ai/catalog/components/good-separator.json +59 -0
- package/ai/catalog/components/good-settings.json +60 -0
- package/ai/catalog/components/good-sidebar-container.json +112 -0
- package/ai/catalog/components/good-sidebar-item.json +210 -0
- package/ai/catalog/components/good-sidebar-menu-container.json +80 -0
- package/ai/catalog/components/good-sidebar-submenu-group.json +98 -0
- package/ai/catalog/components/good-sidebar-submenu-item.json +113 -0
- package/ai/catalog/components/good-signature-pad.json +115 -0
- package/ai/catalog/components/good-sparkline.json +188 -0
- package/ai/catalog/components/good-status-icon.json +425 -0
- package/ai/catalog/components/good-subheading.json +67 -0
- package/ai/catalog/components/good-subnav.json +132 -0
- package/ai/catalog/components/good-summary.json +43 -0
- package/ai/catalog/components/good-switch.json +167 -0
- package/ai/catalog/components/good-tab.json +129 -0
- package/ai/catalog/components/good-table.json +294 -0
- package/ai/catalog/components/good-tabs.json +90 -0
- package/ai/catalog/components/good-textarea.json +194 -0
- package/ai/catalog/components/good-theme-toggle.json +57 -0
- package/ai/catalog/components/good-timeline-section.json +105 -0
- package/ai/catalog/components/good-timeline-step.json +248 -0
- package/ai/catalog/components/good-timeline.json +302 -0
- package/ai/catalog/components/good-topbar-dropdown-item.json +115 -0
- package/ai/catalog/components/good-topbar-dropdown-menu.json +85 -0
- package/ai/catalog/components/good-topbar-menu-container.json +96 -0
- package/ai/catalog/components/good-topbar-menu-item.json +99 -0
- package/ai/catalog/components/good-topbar-submenu.json +77 -0
- package/ai/catalog/components/good-topbar.json +259 -0
- package/ai/catalog/components/good-world-map.json +145 -0
- package/ai/catalog/components/goodCardActions.json +33 -0
- package/ai/catalog/components/goodDropdownFooter.json +33 -0
- package/ai/catalog/components/goodDropdownHeader.json +33 -0
- package/ai/catalog/components/goodExpandableHeader.json +33 -0
- package/ai/catalog/components/ng-template-goodListboxItem.json +33 -0
- package/ai/catalog/components/ng-template-goodTableCell.json +43 -0
- package/ai/catalog/index.json +1484 -0
- package/ai/catalog/index.schema.json +13 -0
- package/ai/examples/angular.json +26 -0
- package/ai/examples/edit-form.html +13 -0
- package/ai/examples/edit-form.ts +18 -0
- package/ai/examples/index.html +1 -0
- package/ai/examples/login.html +11 -0
- package/ai/examples/login.ts +14 -0
- package/ai/examples/main.ts +25 -0
- package/ai/examples/settings.html +10 -0
- package/ai/examples/settings.ts +13 -0
- package/ai/examples/table-view.html +3 -0
- package/ai/examples/table-view.ts +21 -0
- package/ai/examples/tsconfig.json +27 -0
- package/ai/guides/common-mistakes.md +9 -0
- package/ai/guides/component-discovery.md +17 -0
- package/ai/guides/design-tokens.md +10 -0
- package/ai/guides/layout.md +17 -0
- package/ai/guides/page-patterns.md +39 -0
- package/ai/install.mjs +25 -0
- package/ai/manifest.json +6 -0
- package/ai/skill/goodui/SKILL.md +27 -0
- package/angular/projects/goodui/package.json +28 -0
- package/angular/projects/goodui/src/action-bar.css +20 -0
- package/angular/projects/goodui/src/assistant-panel.css +38 -0
- package/angular/projects/goodui/src/calendar.css +161 -0
- package/angular/projects/goodui/src/chart.css +35 -0
- package/angular/projects/goodui/src/color-picker.css +40 -0
- package/angular/projects/goodui/src/error-page.css +24 -0
- package/angular/projects/goodui/src/lib/action-bar.ts +161 -0
- package/angular/projects/goodui/src/lib/action-group.ts +31 -0
- package/angular/projects/goodui/src/lib/action-menu.ts +81 -0
- package/angular/projects/goodui/src/lib/actions.ts +318 -0
- package/angular/projects/goodui/src/lib/alert.ts +60 -0
- package/angular/projects/goodui/src/lib/app-layout.ts +79 -0
- package/angular/projects/goodui/src/lib/assistant-panel.ts +133 -0
- package/angular/projects/goodui/src/lib/badge.ts +47 -0
- package/angular/projects/goodui/src/lib/bar-chart.html +80 -0
- package/angular/projects/goodui/src/lib/bar-chart.ts +233 -0
- package/angular/projects/goodui/src/lib/breadcrumbs.ts +81 -0
- package/angular/projects/goodui/src/lib/button.ts +38 -0
- package/angular/projects/goodui/src/lib/calendar-layout.ts +68 -0
- package/angular/projects/goodui/src/lib/calendar-service.ts +144 -0
- package/angular/projects/goodui/src/lib/calendar-working-hours.ts +65 -0
- package/angular/projects/goodui/src/lib/calendar.html +200 -0
- package/angular/projects/goodui/src/lib/calendar.ts +471 -0
- package/angular/projects/goodui/src/lib/card.ts +64 -0
- package/angular/projects/goodui/src/lib/chart-colors.ts +22 -0
- package/angular/projects/goodui/src/lib/chart-data.ts +269 -0
- package/angular/projects/goodui/src/lib/checkbox.ts +87 -0
- package/angular/projects/goodui/src/lib/code-block.ts +147 -0
- package/angular/projects/goodui/src/lib/color-controls.ts +107 -0
- package/angular/projects/goodui/src/lib/color-picker.ts +142 -0
- package/angular/projects/goodui/src/lib/color-utils.ts +69 -0
- package/angular/projects/goodui/src/lib/country-data.ts +16 -0
- package/angular/projects/goodui/src/lib/date-input.ts +542 -0
- package/angular/projects/goodui/src/lib/dropdown.ts +309 -0
- package/angular/projects/goodui/src/lib/error-page.ts +46 -0
- package/angular/projects/goodui/src/lib/expandable.ts +64 -0
- package/angular/projects/goodui/src/lib/form.ts +12 -0
- package/angular/projects/goodui/src/lib/goodui-config.ts +16 -0
- package/angular/projects/goodui/src/lib/group.ts +45 -0
- package/angular/projects/goodui/src/lib/histogram.html +52 -0
- package/angular/projects/goodui/src/lib/histogram.ts +146 -0
- package/angular/projects/goodui/src/lib/icon.ts +44 -0
- package/angular/projects/goodui/src/lib/image-input.ts +154 -0
- package/angular/projects/goodui/src/lib/image-preview.ts +26 -0
- package/angular/projects/goodui/src/lib/input-phone.ts +305 -0
- package/angular/projects/goodui/src/lib/input.ts +143 -0
- package/angular/projects/goodui/src/lib/line-chart.html +53 -0
- package/angular/projects/goodui/src/lib/line-chart.ts +193 -0
- package/angular/projects/goodui/src/lib/link.ts +46 -0
- package/angular/projects/goodui/src/lib/listbox.ts +254 -0
- package/angular/projects/goodui/src/lib/main-view.ts +39 -0
- package/angular/projects/goodui/src/lib/marker-colors.ts +7 -0
- package/angular/projects/goodui/src/lib/modal.ts +199 -0
- package/angular/projects/goodui/src/lib/models.ts +115 -0
- package/angular/projects/goodui/src/lib/month-calendar.ts +289 -0
- package/angular/projects/goodui/src/lib/notification-center.ts +170 -0
- package/angular/projects/goodui/src/lib/notification-host.ts +86 -0
- package/angular/projects/goodui/src/lib/number-input.ts +180 -0
- package/angular/projects/goodui/src/lib/pdf-preview.ts +242 -0
- package/angular/projects/goodui/src/lib/pdf-worker.generated.ts +2 -0
- package/angular/projects/goodui/src/lib/pin-input.ts +193 -0
- package/angular/projects/goodui/src/lib/progress.ts +93 -0
- package/angular/projects/goodui/src/lib/provide-goodui.ts +15 -0
- package/angular/projects/goodui/src/lib/radio-group.ts +94 -0
- package/angular/projects/goodui/src/lib/range-slider.ts +313 -0
- package/angular/projects/goodui/src/lib/rating.ts +90 -0
- package/angular/projects/goodui/src/lib/required-control.ts +4 -0
- package/angular/projects/goodui/src/lib/resizable.ts +168 -0
- package/angular/projects/goodui/src/lib/rich-text-command.ts +111 -0
- package/angular/projects/goodui/src/lib/rich-text-editor.html +193 -0
- package/angular/projects/goodui/src/lib/rich-text-editor.ts +864 -0
- package/angular/projects/goodui/src/lib/rich-text-sanitize.ts +99 -0
- package/angular/projects/goodui/src/lib/scatter-chart.html +48 -0
- package/angular/projects/goodui/src/lib/scatter-chart.ts +150 -0
- package/angular/projects/goodui/src/lib/select-country.ts +104 -0
- package/angular/projects/goodui/src/lib/select-font.ts +189 -0
- package/angular/projects/goodui/src/lib/select.ts +336 -0
- package/angular/projects/goodui/src/lib/sidebar.ts +232 -0
- package/angular/projects/goodui/src/lib/signature-pad.ts +238 -0
- package/angular/projects/goodui/src/lib/sparkline.html +15 -0
- package/angular/projects/goodui/src/lib/sparkline.ts +106 -0
- package/angular/projects/goodui/src/lib/status-icon.ts +79 -0
- package/angular/projects/goodui/src/lib/subnav.ts +156 -0
- package/angular/projects/goodui/src/lib/switch.ts +54 -0
- package/angular/projects/goodui/src/lib/table.ts +538 -0
- package/angular/projects/goodui/src/lib/tabs.ts +251 -0
- package/angular/projects/goodui/src/lib/textarea.ts +83 -0
- package/angular/projects/goodui/src/lib/theme.ts +49 -0
- package/angular/projects/goodui/src/lib/timeline.ts +252 -0
- package/angular/projects/goodui/src/lib/topbar.ts +402 -0
- package/angular/projects/goodui/src/lib/typography.ts +250 -0
- package/angular/projects/goodui/src/lib/world-map-data.ts +3 -0
- package/angular/projects/goodui/src/lib/world-map.html +73 -0
- package/angular/projects/goodui/src/lib/world-map.ts +391 -0
- package/angular/projects/goodui/src/month-calendar.css +47 -0
- package/angular/projects/goodui/src/pdf-preview.css +25 -0
- package/angular/projects/goodui/src/progress.css +38 -0
- package/angular/projects/goodui/src/public-api.ts +74 -0
- package/angular/projects/goodui/src/range-slider.css +54 -0
- package/angular/projects/goodui/src/resizable.css +32 -0
- package/angular/projects/goodui/src/rich-text-editor.css +33 -0
- package/angular/projects/goodui/src/select-font.css +16 -0
- package/angular/projects/goodui/src/signature-pad.css +14 -0
- package/angular/projects/goodui/src/styles.css +1105 -0
- package/angular/projects/goodui/src/timeline.css +138 -0
- package/angular/projects/goodui/src/tokens.generated.css +754 -0
- package/design/component-map.json +2233 -0
- package/design-tokens/penpot.tokens.json +3339 -0
- package/design.md +452 -0
- package/guides/README.md +17 -0
- package/guides/components/action-bar.md +43 -0
- package/guides/components/action-group.md +43 -0
- package/guides/components/action-menu.md +22 -0
- package/guides/components/alert.md +28 -0
- package/guides/components/assistant-panel.md +50 -0
- package/guides/components/avatar-menu.md +34 -0
- package/guides/components/badge.md +39 -0
- package/guides/components/bar-chart.md +40 -0
- package/guides/components/breadcrumbs.md +37 -0
- package/guides/components/button.md +40 -0
- package/guides/components/calendar.md +166 -0
- package/guides/components/card.md +62 -0
- package/guides/components/chart-axis.md +5 -0
- package/guides/components/chart-bar.md +5 -0
- package/guides/components/chart-data.md +58 -0
- package/guides/components/chart-histogram.md +16 -0
- package/guides/components/chart-line.md +5 -0
- package/guides/components/chart-scatter.md +14 -0
- package/guides/components/checkbox.md +36 -0
- package/guides/components/code-block.md +35 -0
- package/guides/components/color-controls.md +22 -0
- package/guides/components/column.md +5 -0
- package/guides/components/columns.md +13 -0
- package/guides/components/date-input.md +62 -0
- package/guides/components/detail-list.md +25 -0
- package/guides/components/dropdown.md +48 -0
- package/guides/components/error-page.md +31 -0
- package/guides/components/expandable.md +36 -0
- package/guides/components/form.md +49 -0
- package/guides/components/group.md +41 -0
- package/guides/components/histogram.md +45 -0
- package/guides/components/icon.md +13 -0
- package/guides/components/image-input.md +34 -0
- package/guides/components/input-phone.md +45 -0
- package/guides/components/input.md +59 -0
- package/guides/components/line-chart.md +37 -0
- package/guides/components/link.md +31 -0
- package/guides/components/listbox.md +109 -0
- package/guides/components/main-menu.md +11 -0
- package/guides/components/main-view.md +21 -0
- package/guides/components/modal.md +58 -0
- package/guides/components/month-calendar.md +88 -0
- package/guides/components/notifications.md +76 -0
- package/guides/components/number-input.md +21 -0
- package/guides/components/pdf-preview.md +38 -0
- package/guides/components/pin-input.md +37 -0
- package/guides/components/progress.md +41 -0
- package/guides/components/radio-group.md +41 -0
- package/guides/components/range-slider.md +42 -0
- package/guides/components/rating.md +39 -0
- package/guides/components/resizable-pane.md +3 -0
- package/guides/components/resizable.md +75 -0
- package/guides/components/rich-text-editor.md +113 -0
- package/guides/components/scatter-chart.md +43 -0
- package/guides/components/search.md +9 -0
- package/guides/components/select-font.md +16 -0
- package/guides/components/select.md +65 -0
- package/guides/components/settings.md +11 -0
- package/guides/components/sidebar.md +47 -0
- package/guides/components/signature-pad.md +45 -0
- package/guides/components/sparkline.md +31 -0
- package/guides/components/status-icon.md +32 -0
- package/guides/components/submenus.md +30 -0
- package/guides/components/subnav.md +54 -0
- package/guides/components/switch.md +48 -0
- package/guides/components/table.md +256 -0
- package/guides/components/tabs.md +46 -0
- package/guides/components/textarea.md +44 -0
- package/guides/components/theme-toggle.md +33 -0
- package/guides/components/timeline-section.md +7 -0
- package/guides/components/timeline-step.md +12 -0
- package/guides/components/timeline.md +179 -0
- package/guides/components/topbar.md +83 -0
- package/guides/components/typography.md +155 -0
- package/guides/components/world-map.md +72 -0
- package/guides/contributing/design-to-code.md +261 -0
- package/guides/deployment/drone.md +77 -0
- package/guides/examples/user-registration.md +11 -0
- package/guides/foundations/naming.md +7 -0
- package/guides/foundations/tokens.md +203 -0
- package/guides/intro.md +80 -0
- package/guides/layout/app-layout.md +64 -0
- package/guides/layout/layout-rules.md +16 -0
- package/homepage/src/app/examples/calendar-workspace/calendar-workspace-page.html +22 -0
- package/homepage/src/app/examples/calendar-workspace/calendar-workspace-page.ts +111 -0
- package/homepage/src/app/examples/calendar-workspace/source-code.generated.ts +3 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/billing-page.html +166 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/billing-page.ts +134 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/cloudhoster-store.ts +92 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/create-database-page.html +93 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/create-database-page.ts +115 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/database-detail-page.html +202 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/database-detail-page.ts +143 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/databases-page.html +70 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/databases-page.ts +44 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/home-page.html +70 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/home-page.ts +32 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/source-code.generated.ts +12 -0
- package/homepage/src/app/examples/case-studies/vpshoster/create-server-page.html +208 -0
- package/homepage/src/app/examples/case-studies/vpshoster/create-server-page.ts +214 -0
- package/homepage/src/app/examples/case-studies/vpshoster/overview-page.html +35 -0
- package/homepage/src/app/examples/case-studies/vpshoster/overview-page.ts +17 -0
- package/homepage/src/app/examples/case-studies/vpshoster/servers-page.html +111 -0
- package/homepage/src/app/examples/case-studies/vpshoster/servers-page.ts +206 -0
- package/homepage/src/app/examples/case-studies/vpshoster/source-code.generated.ts +6 -0
- package/homepage/src/app/examples/case-studies/vpshoster/vps-store.ts +92 -0
- package/homepage/src/app/examples/case-studies/webmailer/webmailer-page.html +35 -0
- package/homepage/src/app/examples/case-studies/webmailer/webmailer-page.ts +17 -0
- package/homepage/src/app/examples/error-pages/error-pages-example-page.html +27 -0
- package/homepage/src/app/examples/error-pages/error-pages-example-page.ts +34 -0
- package/homepage/src/app/examples/error-pages/not-found-page.html +8 -0
- package/homepage/src/app/examples/error-pages/not-found-page.ts +19 -0
- package/homepage/src/app/examples/error-pages/server-error-page.html +8 -0
- package/homepage/src/app/examples/error-pages/server-error-page.ts +20 -0
- package/homepage/src/app/examples/error-pages/source-code.generated.ts +7 -0
- package/homepage/src/app/examples/mail-compose/mail-compose-page.html +25 -0
- package/homepage/src/app/examples/mail-compose/mail-compose-page.ts +28 -0
- package/homepage/src/app/examples/mail-workspace/mail-workspace-page.html +59 -0
- package/homepage/src/app/examples/mail-workspace/mail-workspace-page.ts +128 -0
- package/homepage/src/app/examples/mail-workspace/source-code.generated.ts +3 -0
- package/homepage/src/app/examples/notifications/notifications-page.html +51 -0
- package/homepage/src/app/examples/notifications/notifications-page.ts +133 -0
- package/homepage/src/app/examples/notifications/source-code.generated.ts +3 -0
- package/homepage/src/app/examples/pdf-reader/pdf-reader-page.html +27 -0
- package/homepage/src/app/examples/pdf-reader/pdf-reader-page.ts +39 -0
- package/homepage/src/app/examples/pdf-reader/source-code.generated.ts +3 -0
- package/homepage/src/app/examples/user-registration/source-code.generated.ts +5 -0
- package/homepage/src/app/examples/user-registration/user-registration-example-page.html +11 -0
- package/homepage/src/app/examples/user-registration/user-registration-example-page.ts +21 -0
- package/homepage/src/app/examples/user-registration/user-registration-form.html +116 -0
- package/homepage/src/app/examples/user-registration/user-registration-form.ts +93 -0
- package/homepage/src/app/examples/user-registration/user-registration-page.html +11 -0
- package/homepage/src/app/examples/user-registration/user-registration-page.ts +23 -0
- 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.
|
|
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": "
|
|
38
|
+
"gitHead": "8aa9ecb321c2565828004f3723834d0e522409e3"
|
|
39
39
|
}
|