@cloudfrogger/goodui 0.0.60 → 0.0.63
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 +247 -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 +140 -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 +19 -0
- package/ai/guides/design-tokens.md +10 -0
- package/ai/guides/layout.md +19 -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 +320 -0
- package/angular/projects/goodui/src/lib/alert.ts +60 -0
- package/angular/projects/goodui/src/lib/app-layout.ts +84 -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 +403 -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/fesm2022/cloudfrogger-goodui.mjs +32 -18
- package/fesm2022/cloudfrogger-goodui.mjs.map +1 -1
- 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 +23 -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 +51 -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 +89 -0
- package/guides/components/typography.md +155 -0
- package/guides/components/world-map.md +72 -0
- package/guides/contributing/design-to-code.md +265 -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 +81 -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
- package/types/cloudfrogger-goodui.d.ts +2 -2
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
# Design tokens and themes
|
|
2
|
+
|
|
3
|
+
GoodUI uses the connected Penpot file's `layout` and `layout-dark` token sets. The `appearance/light` theme activates `layout`; `appearance/dark` activates both sets so dark colors override the shared values. The repository keeps a Penpot-format snapshot at `design-tokens/penpot.tokens.json` and generates CSS from it. The JSON holds the values; this guide explains their roles and bindings.
|
|
4
|
+
|
|
5
|
+
The interactive [Color Scheme page](../../homepage/src/app/getting-started/color-scheme.html) shows the current light and dark values for the 14 core `color.*` roles and 16 `color.marker.*` roles as swatches. Canvas, surface, text, muted, icon, border, selected, and overlay form the neutral layer. Brand and accent are separate roles even when they share a light value; error, warning, success, and info express state. Marker colors represent domain categories and highlights without status or brand meaning. Component tokens such as `button.default.background` alias these roles where appropriate. Overlay opacity is a separate component token.
|
|
6
|
+
|
|
7
|
+
## Marker and highlight palette
|
|
8
|
+
|
|
9
|
+
The 16 names are `sky`, `blue`, `indigo`, `violet`, `purple`, `fuchsia`, `pink`, `rose`, `red`, `orange`, `amber`, `yellow`, `lime`, `green`, `teal`, and `cyan`. They are published as `color.marker.<name>` in Penpot, `--good-color-marker-<name>` in CSS, and `--color-good-marker-<name>` in Tailwind 4. The light and dark sets have separate values. Penpot page `23 Marker Colors` displays token-bound swatches; calendar events accept `marker: '<name>'` and use that exact token for their fill. `calendar.marker.text` and `.text-on-deep` provide contrasting text on the marker fills. Applications can also use the variables for their own labeled markers or highlights. Color alone should not convey a required distinction; keep category text or another cue available.
|
|
10
|
+
|
|
11
|
+
## Customizing a consuming app
|
|
12
|
+
|
|
13
|
+
Import the package stylesheet in the application's global stylesheet, then put app-specific CSS variable overrides after it:
|
|
14
|
+
|
|
15
|
+
```css
|
|
16
|
+
@import "@cloudfrogger/goodui/styles.css";
|
|
17
|
+
|
|
18
|
+
:root {
|
|
19
|
+
--good-color-brand: #6D28D9;
|
|
20
|
+
--good-color-accent: #6D28D9;
|
|
21
|
+
--good-button-default-hover: #5B21B6;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[data-theme="dark"] {
|
|
25
|
+
--good-color-accent: #C4B5FD;
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Base color overrides propagate through aliases such as `--good-brand` and many component roles. Some component colors have their own explicit values, including the primary Button hover color; override those separately when changing the brand. `GoodThemeService.setTheme('dark')` or `setTheme('light')` selects the theme and stores the choice in the `goodui-theme` cookie. With no cookie, the service uses the system color preference.
|
|
30
|
+
|
|
31
|
+
CSS overrides affect only that app. To change the shared GoodUI Penpot and Angular palette together, edit `layout` and `layout-dark` in Penpot, export the token snapshot, and run `npm run tokens:generate` followed by `npm run tokens:check`. The export is manual; no automatic Penpot synchronization is implied.
|
|
32
|
+
|
|
33
|
+
## Penpot-to-CSS mapping
|
|
34
|
+
|
|
35
|
+
Token names remain intact in CSS, with dots and underscores converted to hyphens and a `--good-` prefix. The existing public color variables remain aliases for compatibility.
|
|
36
|
+
|
|
37
|
+
| Penpot token | Generated CSS variable | Penpot binding | Runtime use |
|
|
38
|
+
| --- | --- | --- | --- |
|
|
39
|
+
| `color.surface` | `--good-color-surface`; public `--good-surface` | Board/panel fill | Topbar, sidebar, panels |
|
|
40
|
+
| `color.accent` | `--good-color-accent`; public `--good-accent` | Active text and underline fills | Active navigation, focus |
|
|
41
|
+
| `color.marker.<name>` | `--good-color-marker-<name>` | 16 swatches on `23 Marker Colors` | Calendar categories and domain highlights |
|
|
42
|
+
| `calendar.marker.text` / `.text-on-deep` | `--good-calendar-marker-text*` | Linked calendar event text in marker-colored specimens | Contrasting text on exact marker-color fills in both themes |
|
|
43
|
+
| `calendar.now.color/line.height/dot.size` | `--good-calendar-now-*` | Linked current-time line and dot in week/day specimens | Live current-time line across the full week/day grid |
|
|
44
|
+
| `calendar.holiday.marker.size` | `--good-calendar-holiday-marker-size` | Linked holiday label marker in all four calendar specimens | Compact holiday marker; text and surface use existing semantic color tokens |
|
|
45
|
+
| `space.7_5` | `--good-space-7-5` | Alias target | Shared 30 px spacing value |
|
|
46
|
+
| `topbar.padding-inline` | `--good-topbar-padding-inline` | Desktop Topbar left/right flex padding | Desktop topbar padding |
|
|
47
|
+
| `main-menu.gap` | `--good-main-menu-gap` | MainMenu flex column gap | Action spacing |
|
|
48
|
+
| `sidebar.menu-gap` | `--good-sidebar-menu-gap` | SidebarMenuContainer flex row gap | Heading-to-items spacing |
|
|
49
|
+
| `size.sidebar` | `--good-size-sidebar` | SidebarContainer width | Sidebar width |
|
|
50
|
+
| `size.topbar` / `size.topbar-mobile` | `--good-size-topbar` / `--good-size-topbar-mobile` | Topbar heights | Shell heights |
|
|
51
|
+
| `control.action-size` | `--good-control-action-size` | Search, notifications, settings, avatar width and height | Four action hit areas |
|
|
52
|
+
| `control.sidebar-row-height` | `--good-control-sidebar-row-height` | SidebarItem height | Sidebar row minimum height |
|
|
53
|
+
| `control.button-height-small/default/large` | `--good-control-button-height-*` | Button variant height and icon-only width | 32/40/48 px control dimensions |
|
|
54
|
+
| `control.button-icon-size-small/default/large` | `--good-control-button-icon-size-*` | Nested Lucide instance width and height | 14/16/20 px icons |
|
|
55
|
+
| `button.padding-inline-*` / `button.gap-*` | `--good-button-padding-inline-*` / `--good-button-gap-*` | Button flex padding and icon-label gap | Size-specific spacing |
|
|
56
|
+
| `button.default/secondary/destructive.*` | `--good-button-<variant>-*` | Filled Button surface and foreground | Light/dark fill, text, and hover roles |
|
|
57
|
+
| `button.outline.*` / `button.ghost.*` | `--good-button-<variant>-*` | Border or foreground | Transparent Button variants |
|
|
58
|
+
| `subnav.height` / `.mobile-height` | `--good-subnav-height` / `--good-subnav-mobile-height` | Subnav board heights | Subnav strip |
|
|
59
|
+
| `radius.item` / `radius.card` | `--good-radius-item` / `--good-radius-card` | SidebarItem corners / MainView content border corners | Items and cards |
|
|
60
|
+
| `radius.button` | `--good-radius-button` | Button board corners | Button corner radius |
|
|
61
|
+
| `radius.action` | `--good-radius-action` | Circular search, notifications, settings, and avatar triggers | Action-trigger rounding |
|
|
62
|
+
| `color.error` / `switch.error.border` | `--good-color-error` / `--good-switch-error-border` | Switch error outline | Theme-specific validation color |
|
|
63
|
+
| `alert.<tone>.color/background/light` | `--good-alert-<tone>-*` | Bound Alert icon, text, and surface fills | Six semantic Alert tones in both themes |
|
|
64
|
+
| `alert.padding-x/y.*`, `alert.icon-size.*` | `--good-alert-padding-*`, `--good-alert-icon-size-*` | Bound Alert flex padding and linked Lucide size | Small, default, and large Alerts |
|
|
65
|
+
| `alert.radius`, `alert.border-width` | `--good-alert-radius`, `--good-alert-border-width` | Alert board radius and stroke width | Shared card corners and border |
|
|
66
|
+
| `progress.track.background/divider`, `progress.radius` | `--good-progress-track-*`, `--good-progress-radius` | Progress CSS track and segmented dividers; Penpot binds base color tokens directly and binds its radius to `progress.radius` | Theme surface and shared control radius |
|
|
67
|
+
| `progress.height.*`, `progress.label.*`, `progress.segment.*` | `--good-progress-height-*`, `--good-progress-label-*`, `--good-progress-segment-*` | Progress size, label rhythm, and segmented appearance | Three sizes and a common 14 px segment pitch |
|
|
68
|
+
| `notification.count.size/padding-inline/font-size` | `--good-notification-count-*` | Compact unread Badge on the 36 px bell | 16 px count without changing regular Badge sizes |
|
|
69
|
+
| `control.switch-width-*` / `control.switch-height-*` | `--good-control-switch-width-*` / `--good-control-switch-height-*` | Switch track dimensions | Small, default, large tracks |
|
|
70
|
+
| `control.switch-thumb-size-*` | `--good-control-switch-thumb-size-*` | Switch thumb dimensions | Small, default, large thumbs |
|
|
71
|
+
| `switch.off.background` / `switch.on.background` / `switch.thumb.background` | `--good-switch-*-background` | Switch track and thumb fills | On/off surfaces |
|
|
72
|
+
| `switch.mono.on.background` / `.off.thumb.background` / `.on.thumb.background` | `--good-switch-mono-*` | Mono Switch track and thumb fills | Theme text and inverse surface |
|
|
73
|
+
| `checkbox.unchecked.background` / `checkbox.<appearance>.unchecked.border` | `--good-checkbox-*` | Checkbox box fill and outline | Unchecked state |
|
|
74
|
+
| `checkbox.<appearance>.selected.background/mark` | `--good-checkbox-*` | Checkbox fill and vector stroke | Checked and indeterminate states |
|
|
75
|
+
| `checkbox.size.<size>.box/mark` / `checkbox.radius` | `--good-checkbox-size-<size>-*` / `--good-checkbox-radius` | Checkbox board and mark wrapper size, box corners | Three control sizes |
|
|
76
|
+
| `radio.unchecked.background` / `radio.<appearance>.unchecked.border` | `--good-radio-*` | Radio indicator fill and border | Unselected choices |
|
|
77
|
+
| `radio.<appearance>.selected.color` | `--good-radio-<appearance>-selected-color` | Selected indicator border and dot | Brand or mono selection |
|
|
78
|
+
| `radio.size.<size>.indicator/dot` / `radio.radius` | `--good-radio-size-<size>-*` / `--good-radio-radius` | Radio indicator and dot size and rounded corners | Small, default, and large choices |
|
|
79
|
+
| `rating.selected.color` / `rating.unselected.color` | `--good-rating-selected-color` / `--good-rating-unselected-color` | Linked Lucide path fill/stroke or stroke | Theme-aware selected yellow and unselected gray |
|
|
80
|
+
| `rating.heart.color` / `rating.custom.color` | `--good-rating-heart-color` / `--good-rating-custom-color` | Linked heart fill/stroke and custom smile stroke | Theme-aware red hearts and purple custom icons; `selectedColor` may override either at runtime |
|
|
81
|
+
| `rating.size.<size>.icon/target` / `rating.gap` | `--good-rating-size-<size>-*` / `--good-rating-gap` | Linked icon and hit-target dimensions; rating flex gap | Three rating sizes and spacing |
|
|
82
|
+
| `table.surface/border/text/muted` | `--good-table-*` | Table frame, boundaries, content, and supporting text | Theme-aware table base |
|
|
83
|
+
| `table.header.*` / `table.row.hover/striped` | `--good-table-header-*` / `--good-table-row-*` | Header and row state fills and text | Theme-aware table states |
|
|
84
|
+
| `table.cell.padding-*` / `table.compact.padding-*` | `--good-table-*-padding-*` | Header and data cell insets | Normal and compact density |
|
|
85
|
+
| `table.toolbar.*` / `table.footer.*` | `--good-table-toolbar-*` / `--good-table-footer-*` | Search and pagination section spacing | Optional table regions |
|
|
86
|
+
| `table.radius/min-width/search.width/empty.min-height` | `--good-table-*` | Frame corners, horizontal overflow, search width, empty state | Table geometry |
|
|
87
|
+
| `select.background/border/foreground/placeholder` | `--good-select-*` | Select control surface and text, aliased to Input roles | Both themes |
|
|
88
|
+
| `select.panel.*` / `select.option.*` | `--good-select-*` | Popup surface, option spacing and selected state, aliased to Dropdown and shared roles | Searchable and multi selection menus |
|
|
89
|
+
| `select.height.<size>` / `select.padding-inline.<size>` / `select.radius` | `--good-select-*` | Three control sizes and shared rounded corners | Small, default, and large Select and Country Select |
|
|
90
|
+
| `select.disabled.opacity` / `select.option.disabled.opacity` | `--good-select-*` | Separate disabled treatment for the control and an individual choice | Disabled states in Penpot and Angular |
|
|
91
|
+
| `phone.background/border/foreground/placeholder` | `--good-phone-*` | Telephone field surface and text, aliased to Input roles | Both themes |
|
|
92
|
+
| `phone.height.<size>` / `phone.radius` / `phone.padding-inline.<size>` | `--good-phone-*` | Three field heights, corners, and number inset | Small, default, and large Phone Input |
|
|
93
|
+
| `phone.country.*` / `phone.flag.*` / `phone.icon-size.<size>` | `--good-phone-*` | Country selector, flag, calling-code text, and chevron | Token-bound internal part |
|
|
94
|
+
| `phone.divider` / `phone.divider-width` / `phone.disabled.opacity` | `--good-phone-*` | Country-number separator and disabled state | Shared field treatment |
|
|
95
|
+
| `radio.legend.gap` / `radio.group.gap` / `radio.option.gap` | `--good-radio-*-gap` | Legend, option list, and indicator-to-label spacing | Radio Group flex layout |
|
|
96
|
+
| `radius.switch` | `--good-radius-switch` | Switch track corners | Pill radius |
|
|
97
|
+
| `radius.control` / `radius.compact` | `--good-radius-control` / `--good-radius-compact` | Input outer and file-button corners | Shared 6 px controls and 4 px compact details |
|
|
98
|
+
| `control.input-height-*` / `control.input-icon-size-*` | `--good-control-input-height-*` / `--good-control-input-icon-size-*` | Input and addon dimensions | Button-aligned 32/40/48 px controls and 14/16/20 px icons |
|
|
99
|
+
| `control.input-addon-icon-width-*` / `control.input-file-button-height-*` | `--good-control-input-addon-icon-width-*` / `--good-control-input-file-button-height-*` | Icon addon widths and file action heights | Size-specific internal controls |
|
|
100
|
+
| `input.padding-inline-*` / `input.gap-*` | `--good-input-padding-inline-*` / `--good-input-gap-*` | Input flex padding and gap | Size-specific field spacing |
|
|
101
|
+
| `input.background` / `.border` / `.foreground` / `.placeholder` | `--good-input-*` | Input surface, border, and text | Text-field surface, border, text, and hint |
|
|
102
|
+
| `input.readonly.background` / `input.addon.background` / `.foreground` | `--good-input-*-*` | Readonly and contrasted addon surfaces | Theme-aware secondary surfaces |
|
|
103
|
+
| `input.error.border` / `input.focus.border` | `--good-input-error-border` / `--good-input-focus-border` | Error stroke; runtime focus ring | Theme-aware error and focus borders |
|
|
104
|
+
| `date.panel.width/padding/gap/radius` | `--good-date-panel-*` | Calendar flex panel geometry | DateInput popup and mobile sheet |
|
|
105
|
+
| `date.panel.background/border/foreground` | `--good-date-panel-*` | Calendar surface, stroke, and text | Theme-aware calendar panel |
|
|
106
|
+
| `date.day.size/font-size/radius` | `--good-date-day-*` | Linked DateDay board and label | Calendar hit area and type |
|
|
107
|
+
| `date.day.muted/hover/selected.*/range.background` | `--good-date-day-*` | Day state fills and labels | Unavailable, selected, and range days |
|
|
108
|
+
| `date.time.border` | `--good-date-time-border` | Time editor border | Optional local-time control |
|
|
109
|
+
| `dropdown.panel.*` / `dropdown.popup.gap` | `--good-dropdown-panel-*` / `--good-dropdown-popup-gap` | Panel width, spacing, fill, border, and preferred trigger gap | Popup geometry and surface |
|
|
110
|
+
| `dropdown.item.*` / `dropdown.submenu.width` | `--good-dropdown-item-*` / `--good-dropdown-submenu-width` | Row height, padding, icon, text, hover, and child-panel width | Menu rows and nested menus |
|
|
111
|
+
| `dropdown.header.foreground` / `dropdown.badge.*` | `--good-dropdown-header-foreground` / `--good-dropdown-badge-*` | Section text and badge colors | Secondary information |
|
|
112
|
+
| `color.warning` / `color.warning-foreground` | `--good-color-warning` / `--good-color-warning-foreground` | Shared Warning yellow and readable text/icon color | Badge, Alert, Rating, and Color Scheme |
|
|
113
|
+
| `color.success` / `color.info` | `--good-color-success` / `--good-color-info` | Semantic colors | Theme-aware status roles |
|
|
114
|
+
| `badge.<color>.<variant>.background/foreground` | `--good-badge-<color>-<variant>-*` | Badge fill and label/icon colors | Solid, outline, and light treatments |
|
|
115
|
+
| `badge.<color>.outline.border` | `--good-badge-<color>-outline-border` | Badge outline stroke | Tinted outline treatment |
|
|
116
|
+
| `badge.size.<size>.height/padding-inline/gap/icon-size/font-size` | `--good-badge-size-<size>-*` | Badge flex size, padding, gap, icon size, and text font size | 24/28/32 px labels |
|
|
117
|
+
| `badge.shape.pill.radius` / `.square.radius` | `--good-badge-shape-*-radius` | Badge board corners; pill aliases the previous circle token | Pill and compact shapes |
|
|
118
|
+
| `link.brand.color` / `link.mono.color` | `--good-link-brand-color` / `--good-link-mono-color` | Link label fill and underline stroke | Accent or theme text color |
|
|
119
|
+
| `link.underline.gap` | `--good-link-underline-gap` | Link underline offset | Underline geometry |
|
|
120
|
+
| `card.background` / `card.border` / `card.radius` | `--good-card-background` / `--good-card-border` / `--good-card-radius` | Card surface, outline, outer corners | Shared card frame |
|
|
121
|
+
| `group.border/background/contrast-background/heading-color/radius` | `--good-group-*` | Light group frame and theme-aware contrast surface | Group appearances in both themes |
|
|
122
|
+
| `group.padding-block/padding-inline/gap/heading-gap` / `form-row.gap` | `--good-group-*` / `--good-form-row-gap` | Internal spacing and equal-column gap | Group and FormRow layout |
|
|
123
|
+
| `card.header.default.background` / `.secondary.background` | `--good-card-header-*-background` | Header fill | Default or quiet title bar |
|
|
124
|
+
| `card.header.image-height` / `.image.foreground` | `--good-card-header-image-*` | Image Header height and label color | Full-width image title bar |
|
|
125
|
+
| `card.padding-inline` / `.header.padding-block` / `.body.padding-block` / `.footer.padding-block` | `--good-card-*-padding-*` | Card section flex padding | Header, content, and footer spacing |
|
|
126
|
+
| `card.header.gap` / `.footer.gap` / `.footer.min-height` | `--good-card-*-gap` / `--good-card-footer-min-height` | Flex gaps and footer height | Actions and mixed footer content |
|
|
127
|
+
| `code.background` / `.border` / `.foreground` / `.muted` | `--good-code-*` | Source frame, outline, and text | Theme-aware block surface |
|
|
128
|
+
| `code.inline.background` / `.inline.radius` | `--good-code-inline-*` | Inline fill and corners | Inline source in running text |
|
|
129
|
+
| `code.syntax.keyword/string/number/comment/function/type` | `--good-code-syntax-*` | Representative source text fills | Light/dark syntax palette |
|
|
130
|
+
| `code.padding-inline` / `.padding-block` / `.gutter.width` / `.line-height` | `--good-code-*` | Viewport padding, gutter width, and line rhythm | Block layout and line numbers |
|
|
131
|
+
| `code.toolbar.height` / `.toolbar.padding-inline` / `.toolbar.background` | `--good-code-toolbar-*` | Toolbar height, padding, and fill | Caption and copy action |
|
|
132
|
+
| `code.fade.height` | `--good-code-fade-height` | Stepped Penpot overlay height | Collapsed preview fade |
|
|
133
|
+
| `code.font-size` / `.caption.font-size` | `--good-code-font-size` / `--good-code-caption-font-size` | Source and caption text sizes | Proportional code typography |
|
|
134
|
+
| `modal.background` / `.border` / `.foreground` / `.muted` | `--good-modal-*` | Dialog surface, border, and text | Theme-aware modal frame |
|
|
135
|
+
| `modal.width.*` / `.fullwidth.width.*` | `--good-modal-*` | Size-specific dialog and fullwidth widths | Responsive presentation |
|
|
136
|
+
| `modal.radius` / `.padding-inline` / `.header.*` / `.footer.*` / `.body.*` | `--good-modal-*` | Corner, section spacing, and section surfaces | Header, Body, and Footer layout |
|
|
137
|
+
| `modal.backdrop.color` / `.opacity` / `.blur` | `--good-modal-backdrop-*` | Dim and blur the page behind a modal | Native dialog backdrop |
|
|
138
|
+
| `action-group.gap.small/default/large` | `--good-action-group-gap-*` | 8/12/16 px flex gap | Spacing between related controls |
|
|
139
|
+
| `typography.heading.*` / `.eyebrow.*` / `.summary.*` | `--good-typography-*` | Page title scale, colors, and vertical gaps | Heading group with optional context |
|
|
140
|
+
| `typography.flow.*` / `.paragraph.*` / `.separator.*` | `--good-typography-*` | Reading width and content rhythm | Prose, subheadings, and divisions |
|
|
141
|
+
| `typography.section.max-width` | `--good-typography-section-max-width` | 1024 px content width | Centered Section in wider containers |
|
|
142
|
+
| `typography.image.*` / `.caption.*` | `--good-typography-*` | Figure width and caption spacing | Inline images in content flow |
|
|
143
|
+
| `typography.field.*` / `.label.*` / `.hint.*` / `.error.*` | `--good-typography-*` | Control labeling and feedback | Form field composition |
|
|
144
|
+
|
|
145
|
+
The semantic values `topbar.padding-inline`, `main-menu.gap`, `sidebar.menu-gap`, and `control.action-size` are Penpot aliases. Generated CSS preserves those references with `var(...)`; changing their base tokens changes both the resolved Penpot value and the generated CSS value after the documented refresh.
|
|
146
|
+
|
|
147
|
+
## Supported bindings and layout limits
|
|
148
|
+
|
|
149
|
+
The connected Penpot plugin API is version 2.17.0. It supports token bindings for color fills/strokes, spacing on flex and grid gaps and padding, sizing on width/height, and border radius on corners. The bindings above were checked through each shape's `tokens` map, including a desktop Topbar, MainMenu, SidebarMenuContainer, action control, SidebarItem, and MainView card border.
|
|
150
|
+
|
|
151
|
+
Some existing boards use absolute positions: the account MainView, Subnav's item track, and mobile Topbar. Penpot spacing tokens cannot control their individual placement offsets without changing their layout model. GoodUI keeps those offsets explicit to preserve the design. The mobile Topbar's 16 px padding and the 20 px intermediate-breakpoint padding are deliberate CSS rules, outside the bound desktop padding token. Some nested sidebar-menu instances have a different flex gap; they keep that instance value.
|
|
152
|
+
|
|
153
|
+
Two existing visual differences remain outside the shared-token mapping: Penpot's mobile MainMenu has a 10 px gap while Angular uses 4 px at the mobile breakpoint, and Penpot's TopbarMenuContainer has a 10 px flex gap while Angular uses 26 px on desktop. They need a design decision before they can share one semantic token without changing one of the current appearances.
|
|
154
|
+
|
|
155
|
+
Open and responsive shell states remain separate Penpot components. Button is a real variant group with 45 combinations; its former outline component IDs and nested instances are preserved. The [variant ID manifest](https://github.com/cloudfrogger/goodui/blob/master/design/button-variants.json) maps Penpot variants to the `good-button` inputs.
|
|
156
|
+
|
|
157
|
+
Switch is a real 36-combination variant group. Its width, height, radius, track fill, thumb size/fill, and error border have live Penpot token bindings. The original 18 IDs remain the brand appearance. `switch.mono.on.background` follows `color.text`, while mono off and on thumbs follow `color.text` and `color.surface` respectively. `switch.error.border` aliases `color.error`; the light value is `#DC2626` and the dark override is `#F87171`. The [Switch variant manifest](https://github.com/cloudfrogger/goodui/blob/master/design/switch-variants.json) maps the Penpot axes to `good-switch` inputs.
|
|
158
|
+
|
|
159
|
+
Checkbox uses 16/20/24 px token-sized boards and 10/12/16 px token-sized mark wrappers. Checked and indeterminate share a selected surface; their check and dash are editable vector paths bound to the appearance-specific mark-color token. Mono selected surfaces follow `color.text` and their marks follow `color.surface`; brand selected surfaces follow the theme-aware Switch on color. Box corners alias `radius.compact`. Penpot cannot bind the imported SVG group's own dimensions, so the inner vector coordinates are authored for each size; the wrapper board has the supported size-token binding. [Checkbox variant IDs](https://github.com/cloudfrogger/goodui/blob/master/design/checkbox-variants.json) map the 36 states to `good-checkbox`.
|
|
160
|
+
|
|
161
|
+
At the earlier Switch and Checkbox verification, the live Penpot catalog and repository snapshot matched by token name, type, and value: 214 tokens in `layout` and 34 in `layout-dark`. Changing the base `color.text` temporarily changed both a mono Switch track and a mono Checkbox fill; changing the semantic `checkbox.mono.selected.background` alias temporarily changed the bound Checkbox fill to brand blue. Both values were restored. Dark mode resolved mono selected Checkbox fill to `#FAFAFA`, its mark to `#09090B`, and the mono Switch on track to `#FAFAFA` with a dark thumb.
|
|
162
|
+
|
|
163
|
+
Input and shared control-radius tokens are present in Penpot's `layout` set and the repository snapshot. The generated CSS preserves all aliases: Input heights, icon sizes, padding, and gaps inherit Button's scale; `radius.control` inherits `radius.button`; `input.error.border` inherits the light/dark `color.error` values. The 21 Input variants, 24 addon variants, and two compositions on `03 Controls` bind their supported shape properties to these roles. The [Input variant manifest](https://github.com/cloudfrogger/goodui/blob/master/design/input-variants.json) records their library IDs. Changing `radius.button` and `input.error.border` temporarily changed the bound Input corner and error stroke in Penpot; both values were restored. Existing CSS corner values of 4, 6, 8, and 12 px were replaced with role tokens. All rounded main-component boards on `01 Components` have semantic radius bindings. Nested one-pixel inset surfaces retain their existing geometric radii; review those separately if the component construction changes.
|
|
164
|
+
|
|
165
|
+
Dropdown adds 18 `layout` tokens. Its Panel and Item main components bind the supported size, spacing, fill, stroke, and radius properties; linked Button and Lucide instances remain reusable. The [Dropdown variant manifest](https://github.com/cloudfrogger/goodui/blob/master/design/dropdown-variants.json) records 16 root, four Panel, and twelve Item library IDs. Changing a base spacing token and a semantic surface token temporarily changed the bound Item and Panel in Penpot; both were restored. The four popup placements and submenu anchoring use explicit Penpot geometry because token bindings cannot express those relative overlay positions. Angular reads `dropdown.popup.gap` from generated CSS for its root popup offset. Penpot's clipped list represents the scrollable middle section; actual scrolling is a browser behavior.
|
|
166
|
+
|
|
167
|
+
Badge adds semantic colors for warning, success, and info, with dark theme overrides. `secondary` solid references the secondary Button background and foreground; `text` follows the theme text role. Its 126 Penpot variants bind fills, text, height, inline padding, gap, icon size, font size, and four corner radii to the same names used in generated CSS. `fontSizes` is supported by the current Penpot token catalog and the generator. The [Badge variant manifest](https://github.com/cloudfrogger/goodui/blob/master/design/badge-variants.json) maps every visual combination to `good-badge`. The former ochre Warning base has been replaced by vivid yellow: `color.warning` is `#EAB308` in light mode and `#FACC15` in dark mode. Warning Badge solid uses that base with dark text; outline and light use `color.warning-foreground` for readable labels. The previous token counts and dark colors recorded for earlier Badge verification are historical, not the current palette.
|
|
168
|
+
|
|
169
|
+
The 2 px generic brand mark and circular avatar-image masks are geometric details outside the control/card radius scale. Popovers and invisible native inputs still use absolute positioning to overlay their triggers; regular control content uses flex layout.
|
|
170
|
+
|
|
171
|
+
Alert uses `alert.*` tokens in the live `layout` set. The color roles alias existing neutral, accent, error, warning, success, info, and Badge tint roles, so light and dark appearances follow those bases. `alert.brand.color` references `color.accent`, which resolves to a brighter blue in dark mode. Warning shares the vivid `color.warning` base with Badge and Rating, while `alert.warning.foreground` aliases `color.warning-foreground` for legible title and icon strokes on light surfaces. Padding, icon size, font size, card radius, border width, and toast stack geometry use their own semantic roles. The CSS generator supports Penpot's `borderWidth` token type. All 72 published Alert variants were checked for surface, title/body color and size, padding, and linked Lucide color/size bindings. Penpot required switching themes to refresh the rendered aliases after token edits. The repository snapshot was populated from live Penpot values and generated CSS is checked with `npm run tokens:check`.
|
|
172
|
+
|
|
173
|
+
Radio Group adds 15 `layout` tokens with semantic roles separate from Checkbox. Its 24 Penpot variants bind the option indicator, dot, radius, and flex gaps to those roles; the [Radio Group variant manifest](https://github.com/cloudfrogger/goodui/blob/master/design/radio-group-variants.json) records every ID. A temporary `color.text` change moved the bound mono dot, and a temporary `radio.mono.selected.color` change moved it to brand blue. Both values were restored. In the dark theme, the brand dot resolved to `#3B82F6`, the mono dot to `#FAFAFA`, and the indicator surface to `#09090B`. The Penpot catalog and repository snapshot matched across 229 `layout` and 34 `layout-dark` tokens before CSS generation.
|
|
174
|
+
|
|
175
|
+
Card and Link add 22 semantic `layout` tokens. The 24 Link variants bind label and underline colors; Card, Header, and Footer bind their frame, fills, text, radius, section sizes, padding, and gaps. Header images are media fills and cannot bind to a color token; their foreground uses `card.header.image.foreground`. The [Card](https://github.com/cloudfrogger/goodui/blob/master/design/card-variants.json) and [Link](https://github.com/cloudfrogger/goodui/blob/master/design/link-variants.json) manifests record the published IDs. The current repository snapshot contains 251 `layout` and 34 `layout-dark` tokens. Refreshing the JSON from Penpot remains a manual export/capture step; generated CSS preserves the aliases.
|
|
176
|
+
|
|
177
|
+
Code block adds 26 semantic `layout` tokens and six dark syntax overrides, for 277 `layout` and 40 `layout-dark` tokens. The five [Code block variants](https://github.com/cloudfrogger/goodui/blob/master/design/code-block-variants.json) bind their frame, toolbar, source text, padding, gutter width, fade strips, and radii where Penpot supports the property. A Penpot gradient stop cannot bind directly to a color token, so the static design uses six translucent, token-bound strips; CSS uses a smooth gradient with `code.background`. Changing base `radius.card` temporarily moved the bound Code block radius from 12 to 13 px; changing semantic `code.syntax.keyword` temporarily recolored the bound source text. Both values were restored. Dark mode resolves background to `#18181B`, foreground to `#FAFAFA`, and keywords to `#C4B5FD`. The Penpot catalog and repository snapshot matched token by token after restoration. Language-specific highlighting, clipboard access, and changing preview height are browser behavior.
|
|
178
|
+
|
|
179
|
+
Modal adds 28 `layout` tokens, bringing the current snapshot to 305 `layout` and 40 `layout-dark` tokens. The [Modal variant registry](https://github.com/cloudfrogger/goodui/blob/master/design/modal-variants.json) maps 18 Modal, two Header, and two Footer IDs to Angular. Modal surfaces, borders, text, widths, radius, section padding, heights, and gaps are bound to Penpot tokens where supported. The separate backdrop preview binds its fill and opacity to `modal.backdrop.color` and `modal.backdrop.opacity`; Penpot cannot bind the blur radius to the effect, so the preview fixes it at 8 px while CSS consumes `modal.backdrop.blur`. The `opacity` token is unitless and generated unchanged into the CSS custom property. Theme-aware colors resolve through `color.*` aliases. The token snapshot is a manual capture of the live Penpot catalog followed by `npm run tokens:generate`, not a live synchronization channel.
|
|
180
|
+
|
|
181
|
+
The Modal binding check changed base `radius.card` from 12 to 13 px and semantic `modal.width.default` from 560 to 570 px. Penpot's MCP token writes updated the resolved values immediately, but the shapes repainted only after the appearance theme was reapplied; then the bound default Modal measured 13 px radius and 570 px width. Both tokens were restored to 12 and 560, the light theme was reapplied, and the same Modal returned to those dimensions. The live token catalog and repository snapshot then matched by name, type, and value for all 305 `layout` and 40 `layout-dark` tokens.
|
|
182
|
+
|
|
183
|
+
Action group adds a base `space.4` token (16 px) and three semantic aliases for its small, default, and large gaps. The six [Action group variants](https://github.com/cloudfrogger/goodui/blob/master/design/action-group-variants.json) bind row and column gaps to those aliases. The current token snapshot has 309 `layout` and 40 `layout-dark` tokens; Angular consumes the same aliases through generated CSS. Horizontal and vertical flow uses Penpot flex layout and CSS flexbox; responsive switching at 680 px is an Angular runtime rule.
|
|
184
|
+
|
|
185
|
+
The binding check temporarily changed `space.4` from 16 to 18 px and `action-group.gap.default` from `{space.3}` to `{space.2}`. After reapplying the appearance theme, the bound large and default Penpot gaps measured 18 and 8 px respectively. Both values were restored, and the same gaps returned to 16 and 12 px. The live Penpot catalog and repository snapshot then matched by token name, type, and value across all 309 `layout` and 40 `layout-dark` tokens. Dark mode kept the Button variants' linked colors readable; the Action group itself has no color fill.
|
|
186
|
+
|
|
187
|
+
Typography originally added 48 semantic `layout` tokens. The H1 weight, size, after-gap, Summary tracking, and Paragraph after-gap bring the snapshot to 362 `layout` and 40 `layout-dark` tokens. The H1 and regular Heading variants bind different font-size and font-weight tokens; the H1 HeadingGroup binds its 16 px after-gap. Summary binds its 15 px font size, weight 700, and 0.75 px letter spacing, equivalent to 0.05em at that size. The 20 px `typography.paragraph.after-gap` token feeds the Prose child gap through an alias; Paragraph itself has no outer margin, so the parent controls spacing. `group.gap` now aliases `space.4` (16 px) for mixed form content; Group can use `spacing="tight"` with the shared 4 px step for clustered choices. Penpot's `letterSpacing` binding resolves values in pixels, so the shared token stores the equivalent pixel value; the CSS generator emits the same value. The [Typography registry](https://github.com/cloudfrogger/goodui/blob/master/design/typography-components.json) lists the linked components and variants. Penpot's current plugin rejects binding `fontFamilies` to text, and exposes no binding for line height or italic style; the specimens explicitly use Inter and authored line heights and italics. CSS consumes the exported font-family token and the same semantic color and spacing aliases.
|
|
188
|
+
|
|
189
|
+
Image Input adds `image-input.size` (180 px) to the `layout` set. Its Penpot preview tiles bind both width and height to that token, while square and circular corners bind `radius.card` and `radius.action`. CSS uses `--good-image-input-size` and the same radius and color aliases. At the Image Input verification, the live catalog and repository snapshot matched by name, type, value, and alias across 368 `layout` and 40 `layout-dark` tokens. A temporary change from 180 to 184 px and from 12 to 13 px on the base card radius moved the bound square tile; both values were restored. In dark mode the tile surface and border resolve to `#18181B` and `#27272A` through the existing semantic colors.
|
|
190
|
+
|
|
191
|
+
## Export and generation
|
|
192
|
+
|
|
193
|
+
1. In Penpot, export **Tokens → Tools → Export → Single JSON file** into `design-tokens/penpot.tokens.json`.
|
|
194
|
+
2. Run `npm run tokens:generate`, then `npm run tokens:check` from the repository root.
|
|
195
|
+
3. Build the homepage with `npm run build:homepage` and inspect light and dark appearances.
|
|
196
|
+
|
|
197
|
+
This is a **manual Penpot-to-repository export** followed by automatic CSS generation. The build regenerates CSS from the saved JSON, not from live Penpot. The generated file is `angular/projects/goodui/src/tokens.generated.css`; the package stylesheet imports it and exposes Tailwind CSS 4 `--color-good-*` mappings through `@theme inline`. GoodUI does not ship Tailwind Preflight to consuming apps.
|
|
198
|
+
|
|
199
|
+
For app-level theming, set `data-theme="light"` or `data-theme="dark"` on a common root. `GoodThemeService` stores an explicit Light or Dark preference in the `goodui-theme` cookie and writes the resolved value to `data-theme`. System mode removes the cookie, follows the system preference, and responds to later system changes. Put the [prepaint script](../components/theme-toggle.md) in the app's `index.html` to set the background before Angular loads. Apps can override public `--good-*` variables at runtime; these overrides are application-specific and do not write back to Penpot.
|
|
200
|
+
|
|
201
|
+
## Progress tokens
|
|
202
|
+
|
|
203
|
+
`progress.*` tokens define the track surface, divider color, radius, size-specific heights and label type, and segment dimensions. The color roles alias selected, text, and surface colors in the active Penpot theme. Penpot 2.17 did not repaint those aliases on this variant family, so the live track, label, and dividers bind directly to their corresponding base color tokens; the aliases remain the CSS source. The Angular selector also supports the semantic palette and all 16 marker colors through existing color tokens. A consumer-supplied RGB value overrides only that instance. The CSS values are generated from `design-tokens/penpot.tokens.json`; refresh that snapshot from Penpot after visual token changes.
|
package/guides/intro.md
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# GoodUI - an Angular UI toolkit
|
|
2
|
+
|
|
3
|
+
GoodUI is a complete Angular UI toolkit for SaaS applications. It comes with a reusable Penpot component library and is designed for AI-assisted design and implementation: component names, variants, and Angular APIs have a clear mapping, so the same building blocks can move from design to code.
|
|
4
|
+
|
|
5
|
+
Layout flexibility is intentionally limited. GoodUI components own their spacing, structure, and composition rules so different combinations produce a consistent interface with little custom layout work. The toolkit includes an application shell, navigation, menus, controls, and page content components. The Angular package uses Tailwind CSS 4; `homepage/` shows it in use.
|
|
6
|
+
|
|
7
|
+
[GitHub · cloudfrogger/goodui](https://github.com/cloudfrogger/goodui)
|
|
8
|
+
|
|
9
|
+
**License:** [MIT](https://github.com/cloudfrogger/goodui/blob/master/LICENSE) · Copyright © 2026 Cloudfrogger, Inc.
|
|
10
|
+
|
|
11
|
+
## Get started
|
|
12
|
+
|
|
13
|
+
GoodUI currently ships as a locally built package and targets Angular 21.2. You need Node.js 20.19 or newer. From a directory where you want both projects, build GoodUI and create an Angular app:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
git clone https://github.com/cloudfrogger/goodui.git
|
|
17
|
+
cd goodui
|
|
18
|
+
npm --prefix angular ci --legacy-peer-deps
|
|
19
|
+
npm run build:lib
|
|
20
|
+
cd ..
|
|
21
|
+
npx -y -p @angular/cli@21.2.27 ng new hello-goodui --routing --style=css --defaults
|
|
22
|
+
cd hello-goodui
|
|
23
|
+
npm install ../goodui/angular/dist/goodui
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Add the compiled GoodUI stylesheet to `src/styles.css`:
|
|
27
|
+
|
|
28
|
+
```css
|
|
29
|
+
@import "@cloudfrogger/goodui/styles.css";
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Replace `src/app/app.ts` with a small page:
|
|
33
|
+
|
|
34
|
+
```ts
|
|
35
|
+
import { Component } from '@angular/core';
|
|
36
|
+
import {
|
|
37
|
+
GoodAppLayoutComponent,
|
|
38
|
+
GoodMainViewComponent,
|
|
39
|
+
type GoodSidebarSection,
|
|
40
|
+
} from '@cloudfrogger/goodui';
|
|
41
|
+
|
|
42
|
+
@Component({
|
|
43
|
+
selector: 'app-root',
|
|
44
|
+
standalone: true,
|
|
45
|
+
imports: [GoodAppLayoutComponent, GoodMainViewComponent],
|
|
46
|
+
template: `
|
|
47
|
+
<good-app-layout brand="HELLO" [sidebarSections]="navigation">
|
|
48
|
+
<good-main-view title="Hello, GoodUI!">
|
|
49
|
+
<p>Your first page is ready.</p>
|
|
50
|
+
</good-main-view>
|
|
51
|
+
</good-app-layout>
|
|
52
|
+
`,
|
|
53
|
+
})
|
|
54
|
+
export class App {
|
|
55
|
+
readonly navigation: readonly GoodSidebarSection[] = [
|
|
56
|
+
{ id: 'main', heading: 'MAIN', items: [
|
|
57
|
+
{ id: 'home', label: 'Home', icon: 'home', route: '/' },
|
|
58
|
+
] },
|
|
59
|
+
];
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
The `--routing` option creates the router configuration required by `good-app-layout`. Start the app with `npm start` and open `http://localhost:4200/`. GoodUI's compiled CSS works without Tailwind in the consuming app.
|
|
64
|
+
|
|
65
|
+
### Add GoodUI to an existing Angular app
|
|
66
|
+
|
|
67
|
+
Build GoodUI with the first four commands above. In your Angular 21.2 project, run `npm install /path/to/goodui/angular/dist/goodui`, add the same CSS import to its global stylesheet, and import `GoodAppLayoutComponent` and `GoodMainViewComponent` in the component that owns your page. Ensure the app provides Angular Router, for example with `provideRouter(routes)` in `app.config.ts`. Use the page example above as a starting point; existing routes can render inside the layout with `<router-outlet />`.
|
|
68
|
+
|
|
69
|
+
For a working example in this repository:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
npm run setup
|
|
73
|
+
npm run start:homepage
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
The homepage opens at `http://localhost:4200/`. Explore the [AppLayout](./layout/app-layout.md), [sidebar](./components/sidebar.md), [topbar](./components/topbar.md), and [main view](./components/main-view.md) guides. The full design contract is in the repository's `design.md`.
|
|
77
|
+
|
|
78
|
+
### License
|
|
79
|
+
|
|
80
|
+
GoodUI is free for personal and commercial projects under the MIT License. No public acknowledgment is required; distributed copies or substantial portions must retain the copyright and license notice. We would appreciate an optional mention in your software acknowledgments. Copyright © 2026 Cloudfrogger, Inc. See the [full license text](https://github.com/cloudfrogger/goodui/blob/master/LICENSE).
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# AppLayout
|
|
2
|
+
|
|
3
|
+
`AppLayout` is the complete application shell. On desktop it positions a 280 px sidebar beside a 70 px topbar and the page area. On mobile it uses a 60 px topbar and a sidebar drawer with a scrim. The shell owns offsets, scroll areas, and stacking, so pages do not need layout margins for these regions.
|
|
4
|
+
|
|
5
|
+
The Penpot state `goodui.app-layout.help-submenu-open` shows the [two-level Help menu](../components/topbar.md) above the main view. It uses the existing AppLayout instance and reusable dropdown components.
|
|
6
|
+
|
|
7
|
+
## Reading the Penpot layout page
|
|
8
|
+
|
|
9
|
+
`02 Layout` starts with a guide to the shell, responsive breakpoint, and branding contract. Read its specimens in order: core desktop and mobile states, expanded navigation, Help overlay and Subnav, then application branding examples. All six published `goodui.app-layout.*` boards show the current GoodUI artwork in their brand slots. The SidebarContainer, Topbar, and BrandIcon masters on `01 Components` use the same specimen art. This is sample content in Penpot; the Angular shell still accepts each application's image URLs and ships no default GoodUI logo. The branding examples are compositions of linked shell instances with image previews exported from the logo artwork on `04 Logos`; they are not additional published UI components. Refresh the specimen and example previews if the source logo changes.
|
|
10
|
+
|
|
11
|
+
The desktop example places the light wordmark in the sidebar. The mobile examples show the symbol in the closed topbar and the wordmark in the open drawer. The final light and dark previews explain which image URL belongs to each appearance. The page's content-slot labels are illustrative; consumers project their own page content.
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
AppLayout
|
|
15
|
+
├─ SidebarContainer → SidebarMenuContainer → SidebarItem
|
|
16
|
+
│ → SidebarSubmenuGroup → SidebarSubmenuItem
|
|
17
|
+
└─ Topbar → TopbarMenuContainer → TopbarMenuItem
|
|
18
|
+
→ MainMenu → Search | Notifications | ThemeToggle | AvatarMenu
|
|
19
|
+
MainView → page heading | page content
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Angular API
|
|
23
|
+
|
|
24
|
+
```html
|
|
25
|
+
<good-app-layout
|
|
26
|
+
[brand]="brand"
|
|
27
|
+
brandLogoSrc="my-logo-light.svg"
|
|
28
|
+
brandLogoDarkSrc="my-logo-dark.svg"
|
|
29
|
+
brandMarkSrc="my-mark-light.svg"
|
|
30
|
+
brandMarkDarkSrc="my-mark-dark.svg"
|
|
31
|
+
[sidebarSections]="navigation"
|
|
32
|
+
[topbarItems]="topbarItems"
|
|
33
|
+
[user]="currentUser"
|
|
34
|
+
[notifications]="notifications">
|
|
35
|
+
<good-main-view title="Dashboard" description="Overview">
|
|
36
|
+
<good-section>
|
|
37
|
+
<!-- Put the page's centered content here. -->
|
|
38
|
+
</good-section>
|
|
39
|
+
</good-main-view>
|
|
40
|
+
</good-app-layout>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Choose `layout="page"` (the default) for a scrolling page. Direct `good-section` children give the heading and all content the same centered 1024 px maximum width; put every top-level content block in a Section. For a full-width scrolling page, omit Sections and place content directly in MainView; its heading and content then share the left edge. Keep the two patterns separate.
|
|
44
|
+
|
|
45
|
+
Choose `layout="fill"` when a single workspace must occupy all remaining height below the topbar. MainView removes its outer padding so the projected child meets the edges of the application area; the application page no longer scrolls. The child must own its internal scrolling. For the calendar, opt in with `[fillHeight]="true"` to make its frame flush and its views scroll inside:
|
|
46
|
+
|
|
47
|
+
Add `goodMainViewToolbar` to an optional strip that should stay above the filled content. The strip uses its natural height; the workspace receives the remaining height. Use `good-action-bar` for grouped commands and projected search/filter tools.
|
|
48
|
+
|
|
49
|
+
```html
|
|
50
|
+
<good-main-view layout="fill">
|
|
51
|
+
<good-calendar [fillHeight]="true" [sidebarEnabled]="true">
|
|
52
|
+
<div goodCalendarSidebar><good-month-calendar /></div>
|
|
53
|
+
</good-calendar>
|
|
54
|
+
</good-main-view>
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
The [calendar workspace example](../../homepage/src/app/examples/calendar-workspace/calendar-workspace-page.html) shows a routed page using this layout without a page heading.
|
|
58
|
+
|
|
59
|
+
The simple input API creates the component hierarchy internally. You can compose the exported containers directly for special cases. Navigation requires `provideRouter(...)`; the active path comes from Angular Router.
|
|
60
|
+
The homepage's **Foundation → Layout** chapter starts with **General** for the root component, shell, and providers. **Default layout** shows a scrolling route and the user registration example; **Fill view** shows a full-height workspace.
|
|
61
|
+
|
|
62
|
+
`brand` is the accessible name for optional logo artwork. `brandLogoSrc` and `brandLogoDarkSrc` supply the light and dark wordmarks for the desktop sidebar and mobile drawer. `brandMarkSrc` and `brandMarkDarkSrc` supply the light and dark symbols for the mobile topbar and optional desktop BrandIcon. When a dark URL is omitted, the light image is used in both themes. Without a mark URL, the mobile topbar continues to show the wordmark or text, preserving existing application behavior. Without a wordmark URL, the sidebar and drawer show the text brand and generic accent mark. Put the files in your Angular application's `public/` directory (or use your own hosted URLs). GoodUI does not package an application logo or favicon.
|
|
63
|
+
|
|
64
|
+
The browser favicon belongs to the application. Set its URL in your app's `src/index.html`, for example `<link rel="icon" type="image/svg+xml" href="favicon.svg">`, and put that file in your app's `public/` directory. Replace those with your own favicon when branding a consuming app; no GoodUI API or library file needs changing.
|
|
65
|
+
|
|
66
|
+
## Choose your topbar actions
|
|
67
|
+
|
|
68
|
+
Project a `good-main-menu` directly into AppLayout to choose the actions and their order. AppLayout forwards this container into Topbar and keeps routed content in the page area. Configure projected actions directly; shell action inputs continue to configure the generated default menu when no custom container is present.
|
|
69
|
+
|
|
70
|
+
```html
|
|
71
|
+
<good-app-layout [sidebarSections]="navigation">
|
|
72
|
+
<good-main-menu>
|
|
73
|
+
<good-search [items]="searchItems" />
|
|
74
|
+
<good-theme-toggle />
|
|
75
|
+
<good-avatar-menu [user]="currentUser" [actions]="accountActions" />
|
|
76
|
+
</good-main-menu>
|
|
77
|
+
<router-outlet />
|
|
78
|
+
</good-app-layout>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Import MainMenu and its selected child components in the declaring standalone component. See [Main menu](../components/main-menu.md) and its linked action guides.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Layout rules
|
|
2
|
+
|
|
3
|
+
GoodUI is reviewed at 1440 × 900 px and 390 × 844 px. Its current layout rules are:
|
|
4
|
+
|
|
5
|
+
- Sidebar: 280 px wide with a 1 px right border and 70 px brand area. Its menu scrolls independently from the page.
|
|
6
|
+
- Brand artwork: the desktop sidebar places a 160 × 35 px wordmark 24 px from the left; the mobile drawer places a 145 × 32 px wordmark 32 px from the left; the closed mobile topbar places a 30 × 28 px symbol before its drawer trigger. Applications provide the images.
|
|
7
|
+
- Topbar: 70 px on desktop, 60 px on mobile. It begins to the right of the sidebar on desktop and fills the viewport on mobile.
|
|
8
|
+
- Topbar navigation: items share a dedicated container. At the mobile breakpoint, the menu moves into the drawer.
|
|
9
|
+
- MainMenu: four 36 px actions, spaced 10 px apart and right aligned, in this order: search, notifications, settings, avatar.
|
|
10
|
+
- MainView `layout="page"`: 30 px horizontal and 20 px top padding on desktop; 24 px horizontal padding on mobile.
|
|
11
|
+
- MainView `layout="page"` (default) lets the page scroll and aligns direct Sections to the centered reading width. `layout="fill"` removes outer padding and gives one primary child the remaining height so that component can scroll internally.
|
|
12
|
+
- Subnav: optional full-width row at the top of MainView; 60 px desktop and 44 px mobile. Its items stay on one line and scroll within the row on narrow screens. The active item has a 2 px accent underline.
|
|
13
|
+
- Active sidebar item: 8 px radius. Cards and open panels: 12 px radius with a subtle border.
|
|
14
|
+
- Expanded sidebar groups stay within the sidebar scroll area. `SidebarSubmenuGroup` owns the guide lines and indentation; active child links use a neutral surface and accent dot.
|
|
15
|
+
|
|
16
|
+
Dropdowns and dialogs overlay the shell. Search opens a centered dialog, notifications open a right-side dialog, and the avatar/settings menus anchor to their triggers. Angular components handle focus and Escape; native dialogs make the background inert.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<good-main-view layout="fill">
|
|
2
|
+
<good-calendar label="Example schedule" [fillHeight]="true" [events]="visibleEvents()" [(date)]="date"
|
|
3
|
+
[showDayStrip]="true" [view]="view()" (viewChange)="setView($event)"
|
|
4
|
+
[sidebarEnabled]="true" [sidebarOpen]="sidebarOpen()" (sidebarOpenChange)="setSidebarOpen($event)"
|
|
5
|
+
(eventSelected)="selectEvent($event)" (eventMoved)="moveEvent($event)" (eventResized)="resizeEvent($event)">
|
|
6
|
+
<div goodCalendarSidebar>
|
|
7
|
+
<good-month-calendar [month]="monthKey()" [selected]="selectedDay()" (selectionChange)="pickDay($event)" />
|
|
8
|
+
<good-listbox label="My calendars" [showLabel]="true" [items]="calendars"
|
|
9
|
+
selectionMode="multiple" appearance="checkbox" [(selectedIds)]="visibleCalendars" />
|
|
10
|
+
</div>
|
|
11
|
+
<good-action-group goodCalendarActions orientation="responsive">
|
|
12
|
+
<good-button size="small" (click)="createEvent()">New event</good-button>
|
|
13
|
+
<good-button size="small" variant="outline" (click)="sourceOpen.set(true)">View source</good-button>
|
|
14
|
+
</good-action-group>
|
|
15
|
+
</good-calendar>
|
|
16
|
+
</good-main-view>
|
|
17
|
+
<span class="good-sr-only" role="status">{{ feedback() }}</span>
|
|
18
|
+
<good-modal [(open)]="sourceOpen" size="large" [scrollBody]="true">
|
|
19
|
+
<good-modal-header title="Calendar workspace source" />
|
|
20
|
+
<good-code-block [code]="htmlSource" language="html" title="calendar-workspace-page.html" />
|
|
21
|
+
<good-code-block [code]="typescriptSource" language="typescript" title="calendar-workspace-page.ts" />
|
|
22
|
+
</good-modal>
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, afterNextRender, computed, inject, signal } from '@angular/core';
|
|
2
|
+
import {
|
|
3
|
+
GoodActionGroupComponent, GoodButtonComponent, GoodCalendarComponent, GoodCodeBlockComponent,
|
|
4
|
+
GoodListboxComponent, GoodMainViewComponent, GoodModalComponent, GoodModalHeaderComponent,
|
|
5
|
+
GoodMonthCalendarComponent, type GoodListboxItem,
|
|
6
|
+
type GoodCalendarEvent, type GoodCalendarEventInput, type GoodCalendarMove, type GoodCalendarResize,
|
|
7
|
+
type GoodCalendarView, type GoodMonthCalendarSelection,
|
|
8
|
+
goodCalendarStartOfWeek,
|
|
9
|
+
} from '@cloudfrogger/goodui';
|
|
10
|
+
import { calendarWorkspaceHtml, calendarWorkspaceTs } from './source-code.generated';
|
|
11
|
+
|
|
12
|
+
type CalendarKind = 'work' | 'personal';
|
|
13
|
+
type WorkspaceEvent = GoodCalendarEventInput & { calendar: CalendarKind };
|
|
14
|
+
|
|
15
|
+
const week = goodCalendarStartOfWeek(new Date());
|
|
16
|
+
const today = new Date();
|
|
17
|
+
const at = (day: number, hour: number, minute = 0): Date =>
|
|
18
|
+
new Date(week.getFullYear(), week.getMonth(), week.getDate() + day, hour, minute);
|
|
19
|
+
const todayAt = (hour: number): Date =>
|
|
20
|
+
new Date(today.getFullYear(), today.getMonth(), today.getDate(), hour);
|
|
21
|
+
const dayKey = (date: Date): string =>
|
|
22
|
+
`${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, '0')}-${String(date.getDate()).padStart(2, '0')}`;
|
|
23
|
+
|
|
24
|
+
@Component({
|
|
25
|
+
selector: 'example-calendar-workspace-page',
|
|
26
|
+
standalone: true,
|
|
27
|
+
imports: [GoodActionGroupComponent, GoodButtonComponent, GoodCalendarComponent, GoodCodeBlockComponent,
|
|
28
|
+
GoodListboxComponent, GoodMainViewComponent, GoodModalComponent, GoodModalHeaderComponent, GoodMonthCalendarComponent],
|
|
29
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
30
|
+
templateUrl: './calendar-workspace-page.html',
|
|
31
|
+
})
|
|
32
|
+
export class CalendarWorkspacePageComponent {
|
|
33
|
+
private readonly destroyRef = inject(DestroyRef);
|
|
34
|
+
private viewChosen = false;
|
|
35
|
+
private sidebarChosen = false;
|
|
36
|
+
private nextId = 0;
|
|
37
|
+
|
|
38
|
+
readonly date = signal(new Date());
|
|
39
|
+
readonly view = signal<GoodCalendarView>('week');
|
|
40
|
+
readonly sidebarOpen = signal(true);
|
|
41
|
+
readonly calendars: readonly GoodListboxItem[] = [
|
|
42
|
+
{ id: 'work', label: 'Work' },
|
|
43
|
+
{ id: 'personal', label: 'Personal' },
|
|
44
|
+
];
|
|
45
|
+
readonly visibleCalendars = signal<readonly string[]>(['work', 'personal']);
|
|
46
|
+
readonly monthKey = computed(() => dayKey(this.date()).slice(0, 7));
|
|
47
|
+
readonly selectedDay = computed(() => dayKey(this.date()));
|
|
48
|
+
readonly events = signal<WorkspaceEvent[]>([
|
|
49
|
+
{ id: 'planning', title: 'Weekly planning', start: at(0, 9), end: at(0, 10), marker: 'blue', calendar: 'work' },
|
|
50
|
+
{ id: 'focus', title: 'Focus time', start: at(0, 13), end: at(0, 15), marker: 'blue', calendar: 'work', resizable: true },
|
|
51
|
+
{ id: 'review', title: 'Design review', start: at(1, 10), end: at(1, 11, 30), marker: 'blue', calendar: 'work' },
|
|
52
|
+
{ id: 'lunch', title: 'Lunch with Sam', start: at(1, 12), end: at(1, 13), marker: 'amber', calendar: 'personal' },
|
|
53
|
+
{ id: 'research', title: 'Research session', start: at(2, 11), end: at(2, 12), marker: 'blue', calendar: 'work' },
|
|
54
|
+
{ id: 'gym', title: 'Evening workout', start: at(2, 18), end: at(2, 19), marker: 'amber', calendar: 'personal' },
|
|
55
|
+
{ id: 'team', title: 'Team sync', start: at(3, 14), end: at(3, 15), marker: 'blue', calendar: 'work' },
|
|
56
|
+
{ id: 'dentist', title: 'Dentist appointment', start: at(3, 17), end: at(3, 18), marker: 'amber', calendar: 'personal' },
|
|
57
|
+
{ id: 'delivery', title: 'Project delivery', start: at(4, 10), end: at(4, 11), marker: 'blue', calendar: 'work' },
|
|
58
|
+
{ id: 'today', title: 'Today at a glance', start: todayAt(10), end: todayAt(11), marker: 'amber', calendar: 'personal' },
|
|
59
|
+
]);
|
|
60
|
+
readonly visibleEvents = computed(() => this.events().filter(event =>
|
|
61
|
+
this.visibleCalendars().includes(event.calendar)));
|
|
62
|
+
readonly feedback = signal('Choose a date, switch views, or select an event.');
|
|
63
|
+
readonly sourceOpen = signal(false);
|
|
64
|
+
readonly htmlSource = calendarWorkspaceHtml;
|
|
65
|
+
readonly typescriptSource = calendarWorkspaceTs;
|
|
66
|
+
|
|
67
|
+
constructor() {
|
|
68
|
+
afterNextRender(() => {
|
|
69
|
+
const narrow = matchMedia('(max-width: 700px)');
|
|
70
|
+
const adapt = (): void => {
|
|
71
|
+
if (!this.viewChosen) this.view.set(narrow.matches ? 'day' : 'week');
|
|
72
|
+
if (!this.sidebarChosen) this.sidebarOpen.set(!narrow.matches);
|
|
73
|
+
};
|
|
74
|
+
narrow.addEventListener('change', adapt);
|
|
75
|
+
this.destroyRef.onDestroy(() => narrow.removeEventListener('change', adapt));
|
|
76
|
+
adapt();
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
setView(view: GoodCalendarView): void { this.viewChosen = true; this.view.set(view); }
|
|
81
|
+
setSidebarOpen(open: boolean): void { this.sidebarChosen = true; this.sidebarOpen.set(open); }
|
|
82
|
+
|
|
83
|
+
pickDay(selection: GoodMonthCalendarSelection): void {
|
|
84
|
+
const [year, month, day] = selection.start.split('-').map(Number);
|
|
85
|
+
this.date.set(new Date(year, month - 1, day));
|
|
86
|
+
this.setView('day');
|
|
87
|
+
this.feedback.set(`Showing ${selection.start}.`);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
createEvent(): void {
|
|
91
|
+
const date = this.date();
|
|
92
|
+
const start = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 13);
|
|
93
|
+
const end = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 14);
|
|
94
|
+
const id = `new-${++this.nextId}`;
|
|
95
|
+
this.events.update(events => [...events, { id, title: 'New event', start, end, marker: 'amber', calendar: 'personal' }]);
|
|
96
|
+
this.visibleCalendars.update(ids => ids.includes('personal') ? ids : [...ids, 'personal']);
|
|
97
|
+
this.feedback.set('New event added at 1 PM.');
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
selectEvent(event: GoodCalendarEvent): void { this.feedback.set(`${event.title} selected.`); }
|
|
101
|
+
moveEvent(change: GoodCalendarMove): void {
|
|
102
|
+
this.events.update(events => events.map(event => event.id === change.event.id
|
|
103
|
+
? { ...event, start: change.start, end: change.end } : event));
|
|
104
|
+
this.feedback.set(`${change.event.title} moved.`);
|
|
105
|
+
}
|
|
106
|
+
resizeEvent(change: GoodCalendarResize): void {
|
|
107
|
+
this.events.update(events => events.map(event => event.id === change.event.id
|
|
108
|
+
? { ...event, end: change.end } : event));
|
|
109
|
+
this.feedback.set(`${change.event.title} resized.`);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// Generated from the editable example files. Run npm run examples:sync after changing them.
|
|
2
|
+
export const calendarWorkspaceHtml = "<good-main-view layout=\"fill\">\n <good-calendar label=\"Example schedule\" [fillHeight]=\"true\" [events]=\"visibleEvents()\" [(date)]=\"date\"\n [showDayStrip]=\"true\" [view]=\"view()\" (viewChange)=\"setView($event)\"\n [sidebarEnabled]=\"true\" [sidebarOpen]=\"sidebarOpen()\" (sidebarOpenChange)=\"setSidebarOpen($event)\"\n (eventSelected)=\"selectEvent($event)\" (eventMoved)=\"moveEvent($event)\" (eventResized)=\"resizeEvent($event)\">\n <div goodCalendarSidebar>\n <good-month-calendar [month]=\"monthKey()\" [selected]=\"selectedDay()\" (selectionChange)=\"pickDay($event)\" />\n <good-listbox label=\"My calendars\" [showLabel]=\"true\" [items]=\"calendars\"\n selectionMode=\"multiple\" appearance=\"checkbox\" [(selectedIds)]=\"visibleCalendars\" />\n </div>\n <good-action-group goodCalendarActions orientation=\"responsive\">\n <good-button size=\"small\" (click)=\"createEvent()\">New event</good-button>\n <good-button size=\"small\" variant=\"outline\" (click)=\"sourceOpen.set(true)\">View source</good-button>\n </good-action-group>\n </good-calendar>\n</good-main-view>\n<span class=\"good-sr-only\" role=\"status\">{{ feedback() }}</span>\n<good-modal [(open)]=\"sourceOpen\" size=\"large\" [scrollBody]=\"true\">\n <good-modal-header title=\"Calendar workspace source\" />\n <good-code-block [code]=\"htmlSource\" language=\"html\" title=\"calendar-workspace-page.html\" />\n <good-code-block [code]=\"typescriptSource\" language=\"typescript\" title=\"calendar-workspace-page.ts\" />\n</good-modal>\n";
|
|
3
|
+
export const calendarWorkspaceTs = "import { ChangeDetectionStrategy, Component, DestroyRef, afterNextRender, computed, inject, signal } from '@angular/core';\nimport {\n GoodActionGroupComponent, GoodButtonComponent, GoodCalendarComponent, GoodCodeBlockComponent,\n GoodListboxComponent, GoodMainViewComponent, GoodModalComponent, GoodModalHeaderComponent,\n GoodMonthCalendarComponent, type GoodListboxItem,\n type GoodCalendarEvent, type GoodCalendarEventInput, type GoodCalendarMove, type GoodCalendarResize,\n type GoodCalendarView, type GoodMonthCalendarSelection,\n goodCalendarStartOfWeek,\n} from '@cloudfrogger/goodui';\nimport { calendarWorkspaceHtml, calendarWorkspaceTs } from './source-code.generated';\n\ntype CalendarKind = 'work' | 'personal';\ntype WorkspaceEvent = GoodCalendarEventInput & { calendar: CalendarKind };\n\nconst week = goodCalendarStartOfWeek(new Date());\nconst today = new Date();\nconst at = (day: number, hour: number, minute = 0): Date =>\n new Date(week.getFullYear(), week.getMonth(), week.getDate() + day, hour, minute);\nconst todayAt = (hour: number): Date =>\n new Date(today.getFullYear(), today.getMonth(), today.getDate(), hour);\nconst dayKey = (date: Date): string =>\n `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, '0')}-${String(date.getDate()).padStart(2, '0')}`;\n\n@Component({\n selector: 'example-calendar-workspace-page',\n standalone: true,\n imports: [GoodActionGroupComponent, GoodButtonComponent, GoodCalendarComponent, GoodCodeBlockComponent,\n GoodListboxComponent, GoodMainViewComponent, GoodModalComponent, GoodModalHeaderComponent, GoodMonthCalendarComponent],\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './calendar-workspace-page.html',\n})\nexport class CalendarWorkspacePageComponent {\n private readonly destroyRef = inject(DestroyRef);\n private viewChosen = false;\n private sidebarChosen = false;\n private nextId = 0;\n\n readonly date = signal(new Date());\n readonly view = signal<GoodCalendarView>('week');\n readonly sidebarOpen = signal(true);\n readonly calendars: readonly GoodListboxItem[] = [\n { id: 'work', label: 'Work' },\n { id: 'personal', label: 'Personal' },\n ];\n readonly visibleCalendars = signal<readonly string[]>(['work', 'personal']);\n readonly monthKey = computed(() => dayKey(this.date()).slice(0, 7));\n readonly selectedDay = computed(() => dayKey(this.date()));\n readonly events = signal<WorkspaceEvent[]>([\n { id: 'planning', title: 'Weekly planning', start: at(0, 9), end: at(0, 10), marker: 'blue', calendar: 'work' },\n { id: 'focus', title: 'Focus time', start: at(0, 13), end: at(0, 15), marker: 'blue', calendar: 'work', resizable: true },\n { id: 'review', title: 'Design review', start: at(1, 10), end: at(1, 11, 30), marker: 'blue', calendar: 'work' },\n { id: 'lunch', title: 'Lunch with Sam', start: at(1, 12), end: at(1, 13), marker: 'amber', calendar: 'personal' },\n { id: 'research', title: 'Research session', start: at(2, 11), end: at(2, 12), marker: 'blue', calendar: 'work' },\n { id: 'gym', title: 'Evening workout', start: at(2, 18), end: at(2, 19), marker: 'amber', calendar: 'personal' },\n { id: 'team', title: 'Team sync', start: at(3, 14), end: at(3, 15), marker: 'blue', calendar: 'work' },\n { id: 'dentist', title: 'Dentist appointment', start: at(3, 17), end: at(3, 18), marker: 'amber', calendar: 'personal' },\n { id: 'delivery', title: 'Project delivery', start: at(4, 10), end: at(4, 11), marker: 'blue', calendar: 'work' },\n { id: 'today', title: 'Today at a glance', start: todayAt(10), end: todayAt(11), marker: 'amber', calendar: 'personal' },\n ]);\n readonly visibleEvents = computed(() => this.events().filter(event =>\n this.visibleCalendars().includes(event.calendar)));\n readonly feedback = signal('Choose a date, switch views, or select an event.');\n readonly sourceOpen = signal(false);\n readonly htmlSource = calendarWorkspaceHtml;\n readonly typescriptSource = calendarWorkspaceTs;\n\n constructor() {\n afterNextRender(() => {\n const narrow = matchMedia('(max-width: 700px)');\n const adapt = (): void => {\n if (!this.viewChosen) this.view.set(narrow.matches ? 'day' : 'week');\n if (!this.sidebarChosen) this.sidebarOpen.set(!narrow.matches);\n };\n narrow.addEventListener('change', adapt);\n this.destroyRef.onDestroy(() => narrow.removeEventListener('change', adapt));\n adapt();\n });\n }\n\n setView(view: GoodCalendarView): void { this.viewChosen = true; this.view.set(view); }\n setSidebarOpen(open: boolean): void { this.sidebarChosen = true; this.sidebarOpen.set(open); }\n\n pickDay(selection: GoodMonthCalendarSelection): void {\n const [year, month, day] = selection.start.split('-').map(Number);\n this.date.set(new Date(year, month - 1, day));\n this.setView('day');\n this.feedback.set(`Showing ${selection.start}.`);\n }\n\n createEvent(): void {\n const date = this.date();\n const start = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 13);\n const end = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 14);\n const id = `new-${++this.nextId}`;\n this.events.update(events => [...events, { id, title: 'New event', start, end, marker: 'amber', calendar: 'personal' }]);\n this.visibleCalendars.update(ids => ids.includes('personal') ? ids : [...ids, 'personal']);\n this.feedback.set('New event added at 1 PM.');\n }\n\n selectEvent(event: GoodCalendarEvent): void { this.feedback.set(`${event.title} selected.`); }\n moveEvent(change: GoodCalendarMove): void {\n this.events.update(events => events.map(event => event.id === change.event.id\n ? { ...event, start: change.start, end: change.end } : event));\n this.feedback.set(`${change.event.title} moved.`);\n }\n resizeEvent(change: GoodCalendarResize): void {\n this.events.update(events => events.map(event => event.id === change.event.id\n ? { ...event, end: change.end } : event));\n this.feedback.set(`${change.event.title} resized.`);\n }\n}\n";
|