@cloudfrogger/goodui 0.0.73 → 0.0.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/ai/README.md +6 -0
  2. package/ai/catalog/components/good-form-row.json +16 -1
  3. package/ai/catalog/components/good-group.json +1 -2
  4. package/ai/catalog/components/good-heading-2.json +3 -1
  5. package/ai/catalog/components/good-heading-group.json +3 -1
  6. package/ai/catalog/components/good-section.json +49 -1
  7. package/ai/catalog/components/good-table.json +55 -0
  8. package/ai/catalog/index.json +4 -4
  9. package/ai/examples/settings.html +3 -2
  10. package/ai/examples/settings.ts +2 -2
  11. package/ai/guides/common-mistakes.md +6 -0
  12. package/ai/guides/layout.md +4 -2
  13. package/ai/guides/page-patterns.md +7 -1
  14. package/ai/manifest.json +2 -2
  15. package/ai/skill/goodui/SKILL.md +12 -2
  16. package/angular/projects/goodui/package.json +1 -1
  17. package/angular/projects/goodui/src/lib/group.ts +1 -1
  18. package/angular/projects/goodui/src/lib/table.ts +6 -1
  19. package/angular/projects/goodui/src/lib/typography.ts +4 -1
  20. package/angular/projects/goodui/src/styles.css +30 -2
  21. package/design/app-shell-contract.json +2 -0
  22. package/design/component-map.json +44 -1
  23. package/design/header-search-variants.json +2 -0
  24. package/design/settings-layout-contract.json +166 -0
  25. package/design/typography-components.json +2 -1
  26. package/design.md +4 -3
  27. package/fesm2022/cloudfrogger-goodui.mjs +21 -13
  28. package/fesm2022/cloudfrogger-goodui.mjs.map +1 -1
  29. package/guides/components/group.md +18 -0
  30. package/guides/components/header-actions.md +2 -0
  31. package/guides/components/header-avatar.md +2 -0
  32. package/guides/components/header-menu.md +2 -0
  33. package/guides/components/main-view.md +4 -0
  34. package/guides/components/settings.md +4 -0
  35. package/guides/components/sidebar.md +2 -0
  36. package/guides/components/subnav.md +2 -0
  37. package/guides/components/table.md +8 -0
  38. package/guides/components/typography.md +23 -0
  39. package/guides/contributing/design-to-code.md +17 -0
  40. package/guides/layout/screen-design.md +63 -0
  41. package/homepage/src/app/examples/settings/settings-page.html +112 -0
  42. package/homepage/src/app/examples/settings/settings-page.ts +133 -0
  43. package/homepage/src/app/examples/settings/source-code.generated.ts +3 -0
  44. package/package.json +2 -2
  45. package/styles.css +1 -1
  46. package/types/cloudfrogger-goodui.d.ts +9 -3
@@ -0,0 +1,166 @@
1
+ {
2
+ "page": "44 Settings",
3
+ "pageId": "489901a3-7f15-8049-8008-fc89a1713350",
4
+ "components": [
5
+ {
6
+ "penpotName": "goodui.section.settings",
7
+ "penpotId": "489901a3-7f15-8049-8008-fc89e6cf3bc1",
8
+ "angularSelector": "good-section",
9
+ "kind": "component",
10
+ "state": "settings",
11
+ "shapeId": "489901a3-7f15-8049-8008-fc89e107d22d",
12
+ "semantics": "layout=settings;appearance=default"
13
+ },
14
+ {
15
+ "penpotName": "goodui.section.settings-danger",
16
+ "penpotId": "489901a3-7f15-8049-8008-fc89ecca52fa",
17
+ "angularSelector": "good-section",
18
+ "kind": "component",
19
+ "state": "settings-danger",
20
+ "shapeId": "489901a3-7f15-8049-8008-fc89e6d13c61",
21
+ "semantics": "layout=settings;appearance=danger"
22
+ },
23
+ {
24
+ "penpotName": "goodui.table.embedded-default",
25
+ "penpotId": "489901a3-7f15-8049-8008-fc89ece41d55",
26
+ "angularSelector": "good-table",
27
+ "kind": "component",
28
+ "state": "embedded-default",
29
+ "shapeId": "489901a3-7f15-8049-8008-fc89eccc38ae",
30
+ "semantics": "frameAppearance=none;density=default"
31
+ },
32
+ {
33
+ "penpotName": "goodui.table.embedded-compact",
34
+ "penpotId": "489901a3-7f15-8049-8008-fc89ed012d9b",
35
+ "angularSelector": "good-table",
36
+ "kind": "component",
37
+ "state": "embedded-compact",
38
+ "shapeId": "489901a3-7f15-8049-8008-fc89ece7b0ea",
39
+ "semantics": "frameAppearance=none;density=compact"
40
+ },
41
+ {
42
+ "penpotName": "goodui.form-row.3-actions",
43
+ "penpotId": "489901a3-7f15-8049-8008-fc8a65b2f013",
44
+ "angularSelector": "good-form-row",
45
+ "kind": "component",
46
+ "state": "3-actions",
47
+ "shapeId": "489901a3-7f15-8049-8008-fc8a641a728f",
48
+ "semantics": "columns=3;actions"
49
+ },
50
+ {
51
+ "penpotName": "goodui.form-row.3-actions-mobile",
52
+ "penpotId": "489901a3-7f15-8049-8008-fc8a672942eb",
53
+ "angularSelector": "good-form-row",
54
+ "kind": "component",
55
+ "state": "3-actions-mobile",
56
+ "shapeId": "489901a3-7f15-8049-8008-fc8a65b6c7d9",
57
+ "semantics": "columns=3;actions;mobile"
58
+ }
59
+ ],
60
+ "angular": {
61
+ "good-section": {
62
+ "inputs": {
63
+ "layout": [
64
+ "default",
65
+ "settings"
66
+ ],
67
+ "appearance": [
68
+ "default",
69
+ "danger"
70
+ ],
71
+ "spacing": [
72
+ "default",
73
+ "content"
74
+ ]
75
+ },
76
+ "projection": [
77
+ "good-heading-group",
78
+ "[good-section-actions]",
79
+ "*"
80
+ ]
81
+ },
82
+ "good-table": {
83
+ "inputs": {
84
+ "frameAppearance": [
85
+ "default",
86
+ "none"
87
+ ],
88
+ "density": [
89
+ "default",
90
+ "compact",
91
+ null
92
+ ],
93
+ "searchTerm": "string"
94
+ },
95
+ "note": "Legacy tableStyle=compact selects compact density unless density is explicit. Existing Table variant IDs are preserved."
96
+ },
97
+ "good-form-row": {
98
+ "inputs": {
99
+ "columns": [
100
+ 2,
101
+ 3
102
+ ]
103
+ },
104
+ "projection": [
105
+ "good-form-field",
106
+ "[good-form-row-actions]"
107
+ ],
108
+ "breakpoints": {
109
+ "twoColumns": 700,
110
+ "oneColumn": 500
111
+ }
112
+ },
113
+ "good-main-view": {
114
+ "mobileActions": "Actions follow the full-width heading at viewport widths of 640 px and below."
115
+ }
116
+ },
117
+ "examples": [
118
+ {
119
+ "name": "example.settings.overview-desktop",
120
+ "id": "489901a3-7f15-8049-8008-fc8aa7c53294",
121
+ "width": 1440,
122
+ "mode": "overview"
123
+ },
124
+ {
125
+ "name": "example.settings.overview-mobile",
126
+ "id": "489901a3-7f15-8049-8008-fc8ac703f99e",
127
+ "width": 390,
128
+ "mode": "overview"
129
+ },
130
+ {
131
+ "name": "example.settings.read-desktop",
132
+ "id": "489901a3-7f15-8049-8008-fc8af508e286",
133
+ "width": 1440,
134
+ "mode": "read"
135
+ },
136
+ {
137
+ "name": "example.settings.read-mobile",
138
+ "id": "489901a3-7f15-8049-8008-fc8b560d5f14",
139
+ "width": 390,
140
+ "mode": "read"
141
+ },
142
+ {
143
+ "name": "example.settings.edit-desktop",
144
+ "id": "489901a3-7f15-8049-8008-fc8b9d74f56b",
145
+ "width": 1440,
146
+ "mode": "edit"
147
+ },
148
+ {
149
+ "name": "example.settings.edit-mobile",
150
+ "id": "489901a3-7f15-8049-8008-fc8c1d32a7a3",
151
+ "width": 390,
152
+ "mode": "edit"
153
+ }
154
+ ],
155
+ "composition": "The example owns detached AppShell, Section, HeadingGroup, and runtime Table composition frames so projected children and runtime cell content can vary. Sidebar, Header, Heading, Summary, FormField, Input, Button, and repeated FormRow components remain linked. Library embedded Table components preserve linked Badge, Switch, and ActionMenu specimens. No domain behavior belongs to the reusable components.",
156
+ "homepage": "homepage/src/app/examples/settings/settings-page.html",
157
+ "prototype": {
158
+ "navigation": [
159
+ "overview -> read",
160
+ "read -> edit",
161
+ "edit -> read (Save or Cancel)",
162
+ "read/edit breadcrumb -> overview"
163
+ ],
164
+ "note": "Penpot demonstrates navigation with sample content. Filtering, validation, draft changes, saving, removal, and archive confirmation run in the Angular example."
165
+ }
166
+ }
@@ -61,7 +61,8 @@
61
61
  "typography.section.content.subsection-gap",
62
62
  "typography.section.content.section-gap"
63
63
  ],
64
- "note": "Default preserves compact spacing and its original library ID. Content owns 24 px direct block gaps, 12 px after headings, 40 px before later headings, and 48 px between adjacent content Sections. Prose retains its 20 px paragraph gap; images retain their caption gap. Set spacing explicitly on nested Sections."
64
+ "note": "Default preserves compact spacing and its original library ID. Content owns 24 px direct block gaps, 12 px after headings, 40 px before later headings, and 48 px between adjacent content Sections. Prose retains its 20 px paragraph gap; images retain their caption gap. Set spacing explicitly on nested Sections.",
65
+ "settingsContract": "design/settings-layout-contract.json"
65
66
  },
66
67
  {
67
68
  "family": "prose",
package/design.md CHANGED
@@ -23,12 +23,13 @@ The nested sidebar lets “My Account” expand to “Account Home,” which exp
23
23
  | Header dropdown | Help panel 220 px wide under topbar; 34 px rows, 2 px row gap, 6 px radius | `HeaderDropdownMenu` owns panel, divider, and rows |
24
24
  | Header submenu | Support Forum panel 218 × 124 px; 4 px gap from parent, aligned with trigger row | `HeaderSubmenu` owns the next level and flips at the viewport edge |
25
25
  | Avatar menu | About 250 × 384 px account panel under the avatar; 40 px rows, 36 px identity image, 8 px panel radius | `AvatarMenu` owns identity, row spacing, nested menus, appearance switch, and sign-out area |
26
- | Main view | 20 px top and 30 px horizontal padding below topbar; 24 px horizontal on mobile | `MainView` owns page container and optional heading. `layout=fill` removes workspace padding but keeps that inset on an optional heading; an omitted heading lets the workspace touch the topbar. |
26
+ | Main view | 20 px top and 30 px horizontal padding below topbar; 24 px horizontal on mobile | `MainView` owns page container and optional heading; actions move below the full-width heading at 640 px and below. `layout=fill` removes workspace padding but keeps that inset on an optional heading; an omitted heading lets the workspace touch the topbar. |
27
27
  | Subnav | 60 px desktop, 44 px mobile; active 2 px underline; one scrollable row | `Subnav` owns the section strip, item spacing, horizontal scroll, and dropdown position |
28
28
  | Button | 32/40/48 px high by size, 6 px radius; optional leading Lucide icon or icon-only square | `Button` owns padding, border, focus, disabled state, and hit area |
29
29
  | Action group | 8/12/16 px token gaps; horizontal wrap or vertical stack | `ActionGroup` owns spacing and alignment between related controls |
30
30
  | Action bar | Full-width strip above a workspace, with grouped icon-over-label commands and right-side tools | `ActionBar` composes Button, ActionGroup, and Dropdown; it keeps important commands visible and moves other commands to More. `MainView` owns an optional fixed toolbar slot above its fill content. Penpot publication is pending a working plugin connection. |
31
- | Group and FormRow | Light outline, plain, or contrast group with optional inset title; 16 px default child gap and optional 4 px tight gap; equal-width two or three column fields | `Group` owns frame, heading, padding, and vertical rhythm; `FormRow` owns responsive horizontal field layout |
31
+ | Group and FormRow | Light outline, plain, or contrast group with optional inset title; 16 px default child gap and optional 4 px tight gap; equal-width two or three column fields | `Group` owns frame, heading, padding, and vertical rhythm; `FormRow` owns responsive horizontal field layout and an optional intrinsic-width `[good-form-row-actions]` track |
32
+ | Settings sections | Borderless page sections with a title, short description, wrapping action area, 24 px vertical padding, and quiet dividers | `Section layout=settings` owns local actions and rhythm; `appearance=danger` accents only the heading. MainView owns page actions; application code owns read/edit drafts and confirmation. |
32
33
  | Detail list | Compact semantic label/value rows with aligned tabular values | `DetailList` renders a native description list; `div[goodDetailRow]` contains one `dt` and `dd`. The family is published on `12 Typography`. |
33
34
  | Card | 1 px border, 12 px outer radius; optional 64 px header, 144 px image header, and footer | `Card` owns frame, clipping, content padding, and section dividers; Header and Footer own their internal flow |
34
35
  | Mobile Card and framed Group | 12 px inner side padding at 640 px and below; 16 px Group and Card body vertical padding; optional 8 px bleed on both sides | `Card` and `Group` own their compact spacing and opt-in `mobileBleed`; `MainView` keeps its 24 px mobile side margins |
@@ -43,7 +44,7 @@ The nested sidebar lets “My Account” expand to “Account Home,” which exp
43
44
  | Checkbox | 16/20/24 px box; 44 × 44 px minimum hit area | `Checkbox` owns the native input, three-state transition, mark, focus, and disabled presentation |
44
45
  | Radio group | 16/20/24 px circular indicators; 44 px minimum choice height | `RadioGroup` owns the native fieldset, legend, exclusive selection, option flow, focus, and disabled presentation |
45
46
  | Rating | 16/20/24 px Lucide symbols in 32/40/48 px targets; 4 px gap | `Rating` owns a one-through-count score, native radio selection, display-only semantics, and disabled presentation |
46
- | Table | Four frame styles, default column reordering, responsive column visibility, optional search and pagination, opt-in single selection, and data-driven row emphasis | `Table` owns data rendering, column order and drag handles, sort/filter/page controls, stable row selection by ID, keyboard row focus, selected-row highlighting, and optional bold row text; cell controls retain their own actions. |
47
+ | Table | Independent frame and density, four legacy styles, external search, default column reordering, responsive column visibility, optional search and pagination, opt-in single selection, and data-driven row emphasis | `Table` owns data rendering, column order and drag handles, sort/filter/page controls, stable row selection by ID, keyboard row focus, selected-row highlighting, and optional bold row text; cell controls retain their own actions. |
47
48
  | Line chart | Responsive multi-series SVG plot on a GoodUI Card, with typed sources, declarative axes and lines, and an optional Table view | `LineChart` owns plotting, legend, theme-aware marker/highlight palette, optional `colors` array, icon data toggle, and validation. `ChartAxis` and `ChartLine` configure it declaratively. `GoodChartDataSource` is the common 1D/2D/3D row contract; time bucketing requires explicit aggregation. Penpot page `42 Charts` publishes the chart and configuration specimens. |
48
49
  | Bar chart | Responsive grouped bars on a GoodUI Card, vertical by default and optionally horizontal, with the same typed sources, axes, palette API, and Table view | `BarChart` owns grouped bars, the marker/highlight palette, and a zero baseline. `ChartAxis` and `ChartBar` configure it declaratively. `orientation=horizontal` rotates the plot without changing source keys or logical axis tags. Multiple sources share category positions and use the same validation and time aggregation as LineChart. Penpot page `42 Charts` publishes both orientations. |
49
50
  | Histogram | Equal-width count intervals from raw numeric observations on a GoodUI Card | `Histogram` owns shared bins across all declared sources, adjacent bars, a count axis, legend, marker palette, optional Table view, and validation. `ChartAxis` and `ChartHistogram` configure it declaratively. Bins use lower-inclusive boundaries and include the upper bound in the final bin. Penpot page `42 Charts` publishes the chart and series specimens. |
@@ -3451,16 +3451,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
3451
3451
  }] });
3452
3452
  class GoodSectionComponent {
3453
3453
  spacing = input('default', ...(ngDevMode ? [{ debugName: "spacing" }] : /* istanbul ignore next */ []));
3454
+ layout = input('default', ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
3455
+ appearance = input('default', ...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
3454
3456
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodSectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3455
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.25", type: GoodSectionComponent, isStandalone: true, selector: "good-section", inputs: { spacing: { classPropertyName: "spacing", publicName: "spacing", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-spacing": "spacing()" }, classAttribute: "good-section" }, ngImport: i0, template: `<section><ng-content /></section>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3457
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.25", type: GoodSectionComponent, isStandalone: true, selector: "good-section", inputs: { spacing: { classPropertyName: "spacing", publicName: "spacing", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-spacing": "spacing()", "attr.data-layout": "layout()", "attr.data-appearance": "appearance()" }, classAttribute: "good-section" }, ngImport: i0, template: `<section><ng-content /></section>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3456
3458
  }
3457
3459
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodSectionComponent, decorators: [{
3458
3460
  type: Component,
3459
3461
  args: [{
3460
3462
  selector: 'good-section', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush,
3461
- host: { class: 'good-section', '[attr.data-spacing]': 'spacing()' }, template: `<section><ng-content /></section>`,
3463
+ host: { class: 'good-section', '[attr.data-spacing]': 'spacing()', '[attr.data-layout]': 'layout()', '[attr.data-appearance]': 'appearance()' },
3464
+ template: `<section><ng-content /></section>`,
3462
3465
  }]
3463
- }], propDecorators: { spacing: [{ type: i0.Input, args: [{ isSignal: true, alias: "spacing", required: false }] }] } });
3466
+ }], propDecorators: { spacing: [{ type: i0.Input, args: [{ isSignal: true, alias: "spacing", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }] } });
3464
3467
  class GoodProseComponent {
3465
3468
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodProseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3466
3469
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: GoodProseComponent, isStandalone: true, selector: "good-prose", host: { classAttribute: "good-prose" }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
@@ -3835,7 +3838,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
3835
3838
  class GoodFormRowComponent {
3836
3839
  columns = input(2, ...(ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []));
3837
3840
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodFormRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3838
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.25", type: GoodFormRowComponent, isStandalone: true, selector: "good-form-row", inputs: { columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-columns": "columns()" }, classAttribute: "good-form-row" }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3841
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.25", type: GoodFormRowComponent, isStandalone: true, selector: "good-form-row", inputs: { columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-columns": "columns()" }, classAttribute: "good-form-row" }, ngImport: i0, template: `<ng-content /><div class="good-form-row-actions"><ng-content select="[good-form-row-actions]" /></div>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3839
3842
  }
3840
3843
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodFormRowComponent, decorators: [{
3841
3844
  type: Component,
@@ -3844,7 +3847,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
3844
3847
  standalone: true,
3845
3848
  changeDetection: ChangeDetectionStrategy.OnPush,
3846
3849
  host: { class: 'good-form-row', '[attr.data-columns]': 'columns()' },
3847
- template: `<ng-content />`,
3850
+ template: `<ng-content /><div class="good-form-row-actions"><ng-content select="[good-form-row-actions]" /></div>`,
3848
3851
  }]
3849
3852
  }], propDecorators: { columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }] } });
3850
3853
 
@@ -4659,6 +4662,10 @@ class GoodTableComponent {
4659
4662
  style = input('default', ...(ngDevMode ? [{ debugName: "style" }] : /* istanbul ignore next */ []));
4660
4663
  /** Prefer this name in templates: static style="compact" is interpreted as an HTML style attribute. */
4661
4664
  tableStyle = input(null, ...(ngDevMode ? [{ debugName: "tableStyle" }] : /* istanbul ignore next */ []));
4665
+ frameAppearance = input('default', ...(ngDevMode ? [{ debugName: "frameAppearance" }] : /* istanbul ignore next */ []));
4666
+ density = input(null, ...(ngDevMode ? [{ debugName: "density" }] : /* istanbul ignore next */ []));
4667
+ /** External search, including when searchable=false. Uses the same filtering and request path. */
4668
+ searchTerm = input('', ...(ngDevMode ? [{ debugName: "searchTerm" }] : /* istanbul ignore next */ []));
4662
4669
  /** Drag or use the header grips to reorder columns; enabled by default. */
4663
4670
  reorderable = input(true, { ...(ngDevMode ? { debugName: "reorderable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4664
4671
  /** Optional controlled order of leaf column IDs; emits changes from user reordering. */
@@ -4790,6 +4797,7 @@ class GoodTableComponent {
4790
4797
  return `${start}–${end} of ${total} records`;
4791
4798
  }, ...(ngDevMode ? [{ debugName: "pageSummary" }] : /* istanbul ignore next */ []));
4792
4799
  constructor() {
4800
+ effect(() => { const term = this.searchTerm(); untracked(() => this.setSearch(term)); });
4793
4801
  effect(() => {
4794
4802
  this.columns();
4795
4803
  const width = this.tableWidth();
@@ -5016,9 +5024,9 @@ class GoodTableComponent {
5016
5024
  });
5017
5025
  }
5018
5026
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5019
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodTableComponent, isStandalone: true, selector: "good-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, tableStyle: { classPropertyName: "tableStyle", publicName: "tableStyle", isSignal: true, isRequired: false, transformFunction: null }, reorderable: { classPropertyName: "reorderable", publicName: "reorderable", isSignal: true, isRequired: false, transformFunction: null }, columnOrder: { classPropertyName: "columnOrder", publicName: "columnOrder", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, sortingMode: { classPropertyName: "sortingMode", publicName: "sortingMode", isSignal: true, isRequired: false, transformFunction: null }, searchMode: { classPropertyName: "searchMode", publicName: "searchMode", isSignal: true, isRequired: false, transformFunction: null }, getRowId: { classPropertyName: "getRowId", publicName: "getRowId", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, selectedRowId: { classPropertyName: "selectedRowId", publicName: "selectedRowId", isSignal: true, isRequired: false, transformFunction: null }, emphasizeRow: { classPropertyName: "emphasizeRow", publicName: "emphasizeRow", isSignal: true, isRequired: false, transformFunction: null }, emphasisLabel: { classPropertyName: "emphasisLabel", publicName: "emphasisLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { columnOrder: "columnOrderChange", selectedRowId: "selectedRowIdChange", rowSelected: "rowSelected", sortingChange: "sortingChange", searchChange: "searchChange", request: "request" }, host: { properties: { "attr.data-column-dragging": "dragSourceId() ? \"true\" : null", "attr.data-responsive-columns": "hasResponsiveColumns() ? \"true\" : null" }, classAttribute: "good-table" }, queries: [{ propertyName: "cellTemplates", predicate: GoodTableCellDirective, isSignal: true }], viewQueries: [{ propertyName: "frame", first: true, predicate: ["frame"], descendants: true, isSignal: true }], ngImport: i0, template: `
5027
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodTableComponent, isStandalone: true, selector: "good-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, tableStyle: { classPropertyName: "tableStyle", publicName: "tableStyle", isSignal: true, isRequired: false, transformFunction: null }, frameAppearance: { classPropertyName: "frameAppearance", publicName: "frameAppearance", isSignal: true, isRequired: false, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null }, searchTerm: { classPropertyName: "searchTerm", publicName: "searchTerm", isSignal: true, isRequired: false, transformFunction: null }, reorderable: { classPropertyName: "reorderable", publicName: "reorderable", isSignal: true, isRequired: false, transformFunction: null }, columnOrder: { classPropertyName: "columnOrder", publicName: "columnOrder", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, sortingMode: { classPropertyName: "sortingMode", publicName: "sortingMode", isSignal: true, isRequired: false, transformFunction: null }, searchMode: { classPropertyName: "searchMode", publicName: "searchMode", isSignal: true, isRequired: false, transformFunction: null }, getRowId: { classPropertyName: "getRowId", publicName: "getRowId", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, selectedRowId: { classPropertyName: "selectedRowId", publicName: "selectedRowId", isSignal: true, isRequired: false, transformFunction: null }, emphasizeRow: { classPropertyName: "emphasizeRow", publicName: "emphasizeRow", isSignal: true, isRequired: false, transformFunction: null }, emphasisLabel: { classPropertyName: "emphasisLabel", publicName: "emphasisLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { columnOrder: "columnOrderChange", selectedRowId: "selectedRowIdChange", rowSelected: "rowSelected", sortingChange: "sortingChange", searchChange: "searchChange", request: "request" }, host: { properties: { "attr.data-column-dragging": "dragSourceId() ? \"true\" : null", "attr.data-responsive-columns": "hasResponsiveColumns() ? \"true\" : null" }, classAttribute: "good-table" }, queries: [{ propertyName: "cellTemplates", predicate: GoodTableCellDirective, isSignal: true }], viewQueries: [{ propertyName: "frame", first: true, predicate: ["frame"], descendants: true, isSignal: true }], ngImport: i0, template: `
5020
5028
  <ng-content select="ng-template[goodTableCell]" />
5021
- <div #frame class="good-table-frame" [attr.data-style]="tableStyle() ?? style()" [attr.aria-busy]="loading() ? 'true' : null">
5029
+ <div #frame class="good-table-frame" [attr.data-style]="tableStyle() ?? style()" [attr.data-frame]="frameAppearance()" [attr.data-density]="density() ?? ((tableStyle() ?? style()) === 'compact' ? 'compact' : 'default')" [attr.aria-busy]="loading() ? 'true' : null">
5022
5030
  @if (searchable()) {
5023
5031
  <div class="good-table-toolbar">
5024
5032
  <good-input label="Search records" type="search" [startIcon]="searchIcon" [placeholder]="searchPlaceholder()"
@@ -5150,7 +5158,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
5150
5158
  host: { class: 'good-table', '[attr.data-column-dragging]': 'dragSourceId() ? "true" : null', '[attr.data-responsive-columns]': 'hasResponsiveColumns() ? "true" : null' },
5151
5159
  template: `
5152
5160
  <ng-content select="ng-template[goodTableCell]" />
5153
- <div #frame class="good-table-frame" [attr.data-style]="tableStyle() ?? style()" [attr.aria-busy]="loading() ? 'true' : null">
5161
+ <div #frame class="good-table-frame" [attr.data-style]="tableStyle() ?? style()" [attr.data-frame]="frameAppearance()" [attr.data-density]="density() ?? ((tableStyle() ?? style()) === 'compact' ? 'compact' : 'default')" [attr.aria-busy]="loading() ? 'true' : null">
5154
5162
  @if (searchable()) {
5155
5163
  <div class="good-table-toolbar">
5156
5164
  <good-input label="Search records" type="search" [startIcon]="searchIcon" [placeholder]="searchPlaceholder()"
@@ -5271,7 +5279,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
5271
5279
  </div>
5272
5280
  `,
5273
5281
  }]
5274
- }], ctorParameters: () => [], propDecorators: { cellTemplates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => GoodTableCellDirective), { isSignal: true }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], tableStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableStyle", required: false }] }], reorderable: [{ type: i0.Input, args: [{ isSignal: true, alias: "reorderable", required: false }] }], columnOrder: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnOrder", required: false }] }, { type: i0.Output, args: ["columnOrderChange"] }], searchable: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchable", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], pagination: [{ type: i0.Input, args: [{ isSignal: true, alias: "pagination", required: false }] }], sortingMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortingMode", required: false }] }], searchMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchMode", required: false }] }], getRowId: [{ type: i0.Input, args: [{ isSignal: true, alias: "getRowId", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], selectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectable", required: false }] }], selectedRowId: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedRowId", required: false }] }, { type: i0.Output, args: ["selectedRowIdChange"] }], emphasizeRow: [{ type: i0.Input, args: [{ isSignal: true, alias: "emphasizeRow", required: false }] }], emphasisLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "emphasisLabel", required: false }] }], rowSelected: [{ type: i0.Output, args: ["rowSelected"] }], sortingChange: [{ type: i0.Output, args: ["sortingChange"] }], searchChange: [{ type: i0.Output, args: ["searchChange"] }], request: [{ type: i0.Output, args: ["request"] }], frame: [{ type: i0.ViewChild, args: ['frame', { isSignal: true }] }] } });
5282
+ }], ctorParameters: () => [], propDecorators: { cellTemplates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => GoodTableCellDirective), { isSignal: true }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], tableStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableStyle", required: false }] }], frameAppearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "frameAppearance", required: false }] }], density: [{ type: i0.Input, args: [{ isSignal: true, alias: "density", required: false }] }], searchTerm: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchTerm", required: false }] }], reorderable: [{ type: i0.Input, args: [{ isSignal: true, alias: "reorderable", required: false }] }], columnOrder: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnOrder", required: false }] }, { type: i0.Output, args: ["columnOrderChange"] }], searchable: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchable", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], pagination: [{ type: i0.Input, args: [{ isSignal: true, alias: "pagination", required: false }] }], sortingMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortingMode", required: false }] }], searchMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchMode", required: false }] }], getRowId: [{ type: i0.Input, args: [{ isSignal: true, alias: "getRowId", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], selectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectable", required: false }] }], selectedRowId: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedRowId", required: false }] }, { type: i0.Output, args: ["selectedRowIdChange"] }], emphasizeRow: [{ type: i0.Input, args: [{ isSignal: true, alias: "emphasizeRow", required: false }] }], emphasisLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "emphasisLabel", required: false }] }], rowSelected: [{ type: i0.Output, args: ["rowSelected"] }], sortingChange: [{ type: i0.Output, args: ["sortingChange"] }], searchChange: [{ type: i0.Output, args: ["searchChange"] }], request: [{ type: i0.Output, args: ["request"] }], frame: [{ type: i0.ViewChild, args: ['frame', { isSignal: true }] }] } });
5275
5283
 
5276
5284
  function parseNumber(value, type) {
5277
5285
  if (typeof value !== 'number' || !Number.isFinite(value))
@@ -5788,7 +5796,7 @@ class GoodLineChartComponent {
5788
5796
  return new Intl.DateTimeFormat('en-US', options).format(time);
5789
5797
  }
5790
5798
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodLineChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5791
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodLineChartComponent, isStandalone: true, selector: "good-line-chart", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, sources: { classPropertyName: "sources", publicName: "sources", isSignal: true, isRequired: true, transformFunction: null }, colors: { classPropertyName: "colors", publicName: "colors", isSignal: true, isRequired: false, transformFunction: null }, showDataToggle: { classPropertyName: "showDataToggle", publicName: "showDataToggle", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "good-line-chart" }, queries: [{ propertyName: "axes", predicate: GoodChartAxisComponent, isSignal: true }, { propertyName: "lineDefinitions", predicate: GoodChartLineComponent, isSignal: true }], viewQueries: [{ propertyName: "plotElement", first: true, predicate: ["plot"], descendants: true, isSignal: true }], ngImport: i0, template: "<good-card>\n <good-card-header [title]=\"title()\" [headingLevel]=\"3\">\n @if (showDataToggle()) {\n <good-button goodCardActions variant=\"ghost\" size=\"small\" [iconOnly]=\"true\"\n [icon]=\"dataVisible() ? chartIcon : tableIcon\" [ariaPressed]=\"dataVisible()\"\n [ariaLabel]=\"dataVisible() ? 'Show chart' : 'Show data'\"\n (click)=\"dataVisible.set(!dataVisible())\" />\n }\n </good-card-header>\n <div class=\"good-chart-config\" aria-hidden=\"true\"><ng-content /></div>\n @if (resolved().errors.length) {\n <div class=\"good-chart-message\" role=\"alert\">{{ resolved().errors.join(' ') }}</div>\n } @else if (!resolved().lines.length || !tableRows().length) {\n <div class=\"good-chart-message\">No data to display.</div>\n } @else if (dataVisible()) {\n <p class=\"good-chart-table-hint\">Scroll horizontally to see all series.</p>\n <good-table [label]=\"title() + ' data'\" tableStyle=\"compact\" [data]=\"tableRows()\"\n [columns]=\"tableColumns()\" [reorderable]=\"false\" />\n } @else {\n <div #plot class=\"good-chart-plot\">\n <svg [attr.viewBox]=\"'0 0 ' + width() + ' ' + height\" role=\"img\"\n [attr.aria-label]=\"ariaLabel() || title()\" preserveAspectRatio=\"xMidYMid meet\">\n @for (tick of yTicks(); track $index) {\n <line class=\"good-chart-grid\" [attr.x1]=\"left\" [attr.x2]=\"width() - right\"\n [attr.y1]=\"tick.y\" [attr.y2]=\"tick.y\" />\n <text class=\"good-chart-tick good-chart-y-tick\" [attr.x]=\"left - 9\" [attr.y]=\"tick.y + 4\">{{ tick.label }}</text>\n }\n <line class=\"good-chart-baseline\" [attr.x1]=\"left\" [attr.x2]=\"width() - right\"\n [attr.y1]=\"top + plotHeight\" [attr.y2]=\"top + plotHeight\" />\n @for (tick of xTicks(); track $index) {\n @if (tick.visible) {\n <text class=\"good-chart-tick good-chart-x-tick\" [attr.x]=\"tick.x\"\n [attr.y]=\"top + plotHeight + 19\">{{ tick.label }}</text>\n }\n }\n @for (line of renderedLines(); track line.id) {\n <path class=\"good-chart-line-path\" [attr.d]=\"line.path\" [attr.stroke]=\"line.colorValue\" />\n @for (dot of line.dots; track $index) {\n <circle class=\"good-chart-point\" [attr.cx]=\"dot.x\" [attr.cy]=\"dot.y\" r=\"3\"\n [attr.stroke]=\"line.colorValue\" />\n }\n }\n </svg>\n @if (yAxis().label) { <span class=\"good-chart-y-label\">{{ yAxis().label }}</span> }\n @if (xAxis().label) { <span class=\"good-chart-x-label\">{{ xAxis().label }}</span> }\n </div>\n <div class=\"good-chart-legend\" aria-label=\"Series legend\">\n @for (line of renderedLines(); track line.id) {\n <span class=\"good-chart-legend-item\"><i [style.background]=\"line.colorValue\" aria-hidden=\"true\"></i>{{ line.label }}</span>\n }\n </div>\n }\n</good-card>\n", dependencies: [{ kind: "component", type: GoodButtonComponent, selector: "good-button", inputs: ["icon", "endIcon", "iconOnly", "variant", "size", "ariaLabel", "ariaPressed", "disabled", "type", "ariaExpanded", "ariaControls", "hasPopup"] }, { kind: "component", type: GoodCardComponent, selector: "good-card", inputs: ["mobileBleed"] }, { kind: "component", type: GoodCardHeaderComponent, selector: "good-card-header", inputs: ["title", "headingLevel", "tone", "backgroundImage"] }, { kind: "directive", type: GoodCardActionsDirective, selector: "[goodCardActions]" }, { kind: "component", type: GoodTableComponent, selector: "good-table", inputs: ["data", "columns", "label", "style", "tableStyle", "reorderable", "columnOrder", "searchable", "searchPlaceholder", "pagination", "sortingMode", "searchMode", "getRowId", "loading", "emptyMessage", "selectable", "selectedRowId", "emphasizeRow", "emphasisLabel"], outputs: ["columnOrderChange", "selectedRowIdChange", "rowSelected", "sortingChange", "searchChange", "request"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5799
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodLineChartComponent, isStandalone: true, selector: "good-line-chart", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, sources: { classPropertyName: "sources", publicName: "sources", isSignal: true, isRequired: true, transformFunction: null }, colors: { classPropertyName: "colors", publicName: "colors", isSignal: true, isRequired: false, transformFunction: null }, showDataToggle: { classPropertyName: "showDataToggle", publicName: "showDataToggle", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "good-line-chart" }, queries: [{ propertyName: "axes", predicate: GoodChartAxisComponent, isSignal: true }, { propertyName: "lineDefinitions", predicate: GoodChartLineComponent, isSignal: true }], viewQueries: [{ propertyName: "plotElement", first: true, predicate: ["plot"], descendants: true, isSignal: true }], ngImport: i0, template: "<good-card>\n <good-card-header [title]=\"title()\" [headingLevel]=\"3\">\n @if (showDataToggle()) {\n <good-button goodCardActions variant=\"ghost\" size=\"small\" [iconOnly]=\"true\"\n [icon]=\"dataVisible() ? chartIcon : tableIcon\" [ariaPressed]=\"dataVisible()\"\n [ariaLabel]=\"dataVisible() ? 'Show chart' : 'Show data'\"\n (click)=\"dataVisible.set(!dataVisible())\" />\n }\n </good-card-header>\n <div class=\"good-chart-config\" aria-hidden=\"true\"><ng-content /></div>\n @if (resolved().errors.length) {\n <div class=\"good-chart-message\" role=\"alert\">{{ resolved().errors.join(' ') }}</div>\n } @else if (!resolved().lines.length || !tableRows().length) {\n <div class=\"good-chart-message\">No data to display.</div>\n } @else if (dataVisible()) {\n <p class=\"good-chart-table-hint\">Scroll horizontally to see all series.</p>\n <good-table [label]=\"title() + ' data'\" tableStyle=\"compact\" [data]=\"tableRows()\"\n [columns]=\"tableColumns()\" [reorderable]=\"false\" />\n } @else {\n <div #plot class=\"good-chart-plot\">\n <svg [attr.viewBox]=\"'0 0 ' + width() + ' ' + height\" role=\"img\"\n [attr.aria-label]=\"ariaLabel() || title()\" preserveAspectRatio=\"xMidYMid meet\">\n @for (tick of yTicks(); track $index) {\n <line class=\"good-chart-grid\" [attr.x1]=\"left\" [attr.x2]=\"width() - right\"\n [attr.y1]=\"tick.y\" [attr.y2]=\"tick.y\" />\n <text class=\"good-chart-tick good-chart-y-tick\" [attr.x]=\"left - 9\" [attr.y]=\"tick.y + 4\">{{ tick.label }}</text>\n }\n <line class=\"good-chart-baseline\" [attr.x1]=\"left\" [attr.x2]=\"width() - right\"\n [attr.y1]=\"top + plotHeight\" [attr.y2]=\"top + plotHeight\" />\n @for (tick of xTicks(); track $index) {\n @if (tick.visible) {\n <text class=\"good-chart-tick good-chart-x-tick\" [attr.x]=\"tick.x\"\n [attr.y]=\"top + plotHeight + 19\">{{ tick.label }}</text>\n }\n }\n @for (line of renderedLines(); track line.id) {\n <path class=\"good-chart-line-path\" [attr.d]=\"line.path\" [attr.stroke]=\"line.colorValue\" />\n @for (dot of line.dots; track $index) {\n <circle class=\"good-chart-point\" [attr.cx]=\"dot.x\" [attr.cy]=\"dot.y\" r=\"3\"\n [attr.stroke]=\"line.colorValue\" />\n }\n }\n </svg>\n @if (yAxis().label) { <span class=\"good-chart-y-label\">{{ yAxis().label }}</span> }\n @if (xAxis().label) { <span class=\"good-chart-x-label\">{{ xAxis().label }}</span> }\n </div>\n <div class=\"good-chart-legend\" aria-label=\"Series legend\">\n @for (line of renderedLines(); track line.id) {\n <span class=\"good-chart-legend-item\"><i [style.background]=\"line.colorValue\" aria-hidden=\"true\"></i>{{ line.label }}</span>\n }\n </div>\n }\n</good-card>\n", dependencies: [{ kind: "component", type: GoodButtonComponent, selector: "good-button", inputs: ["icon", "endIcon", "iconOnly", "variant", "size", "ariaLabel", "ariaPressed", "disabled", "type", "ariaExpanded", "ariaControls", "hasPopup"] }, { kind: "component", type: GoodCardComponent, selector: "good-card", inputs: ["mobileBleed"] }, { kind: "component", type: GoodCardHeaderComponent, selector: "good-card-header", inputs: ["title", "headingLevel", "tone", "backgroundImage"] }, { kind: "directive", type: GoodCardActionsDirective, selector: "[goodCardActions]" }, { kind: "component", type: GoodTableComponent, selector: "good-table", inputs: ["data", "columns", "label", "style", "tableStyle", "frameAppearance", "density", "searchTerm", "reorderable", "columnOrder", "searchable", "searchPlaceholder", "pagination", "sortingMode", "searchMode", "getRowId", "loading", "emptyMessage", "selectable", "selectedRowId", "emphasizeRow", "emphasisLabel"], outputs: ["columnOrderChange", "selectedRowIdChange", "rowSelected", "sortingChange", "searchChange", "request"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5792
5800
  }
5793
5801
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodLineChartComponent, decorators: [{
5794
5802
  type: Component,
@@ -6006,7 +6014,7 @@ class GoodBarChartComponent {
6006
6014
  return this.xAxis().type === 'time' ? this.formatTime(Number(value)) : String(value);
6007
6015
  }
6008
6016
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodBarChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6009
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodBarChartComponent, isStandalone: true, selector: "good-bar-chart", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, sources: { classPropertyName: "sources", publicName: "sources", isSignal: true, isRequired: true, transformFunction: null }, colors: { classPropertyName: "colors", publicName: "colors", isSignal: true, isRequired: false, transformFunction: null }, showDataToggle: { classPropertyName: "showDataToggle", publicName: "showDataToggle", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "good-bar-chart" }, queries: [{ propertyName: "axes", predicate: GoodChartAxisComponent, isSignal: true }, { propertyName: "barDefinitions", predicate: GoodChartBarComponent, isSignal: true }], viewQueries: [{ propertyName: "plotElement", first: true, predicate: ["plot"], descendants: true, isSignal: true }], ngImport: i0, template: "<good-card>\n <good-card-header [title]=\"title()\" [headingLevel]=\"3\">\n @if (showDataToggle()) {\n <good-button goodCardActions variant=\"ghost\" size=\"small\" [iconOnly]=\"true\"\n [icon]=\"dataVisible() ? chartIcon : tableIcon\" [ariaPressed]=\"dataVisible()\"\n [ariaLabel]=\"dataVisible() ? 'Show chart' : 'Show data'\"\n (click)=\"dataVisible.set(!dataVisible())\" />\n }\n </good-card-header>\n <div class=\"good-chart-config\" aria-hidden=\"true\"><ng-content /></div>\n @if (resolved().errors.length) {\n <div class=\"good-chart-message\" role=\"alert\">{{ resolved().errors.join(' ') }}</div>\n } @else if (!resolved().lines.length || !tableRows().length) {\n <div class=\"good-chart-message\">No data to display.</div>\n } @else if (dataVisible()) {\n <p class=\"good-chart-table-hint\">Scroll horizontally to see all series.</p>\n <good-table [label]=\"title() + ' data'\" tableStyle=\"compact\" [data]=\"tableRows()\"\n [columns]=\"tableColumns()\" [reorderable]=\"false\" />\n } @else {\n <div #plot class=\"good-chart-plot\">\n @if (orientation() === 'horizontal') {\n <svg [attr.viewBox]=\"'0 0 ' + width() + ' ' + horizontalHeight()\" role=\"img\"\n [attr.aria-label]=\"ariaLabel() || title()\" [style.height.px]=\"horizontalHeight()\"\n preserveAspectRatio=\"xMidYMid meet\">\n @for (tick of horizontalValueTicks(); track $index) {\n <line class=\"good-chart-grid\" [attr.x1]=\"tick.x\" [attr.x2]=\"tick.x\"\n [attr.y1]=\"top\" [attr.y2]=\"top + horizontalPlotHeight()\" />\n <text class=\"good-chart-tick good-chart-x-tick\" [attr.x]=\"tick.x\"\n [attr.y]=\"top + horizontalPlotHeight() + 19\">{{ tick.label }}</text>\n }\n @for (tick of horizontalCategoryTicks(); track $index) {\n <text class=\"good-chart-tick good-chart-y-tick\" [attr.x]=\"horizontalLeft() - 10\"\n [attr.y]=\"tick.y + 4\">{{ tick.label }}</text>\n }\n <line class=\"good-chart-baseline\" [attr.x1]=\"horizontalValueX(baseline())\"\n [attr.x2]=\"horizontalValueX(baseline())\" [attr.y1]=\"top\"\n [attr.y2]=\"top + horizontalPlotHeight()\" />\n @for (bar of horizontalBars(); track bar.id) {\n <rect class=\"good-chart-bar\" [attr.x]=\"bar.x\" [attr.y]=\"bar.y\"\n [attr.width]=\"bar.width\" [attr.height]=\"bar.height\" [attr.fill]=\"bar.color\" rx=\"2\">\n <title>{{ bar.title }}</title>\n </rect>\n }\n </svg>\n @if (xAxis().label) { <span class=\"good-chart-y-label\">{{ xAxis().label }}</span> }\n @if (yAxis().label) { <span class=\"good-chart-x-label\">{{ yAxis().label }}</span> }\n } @else {\n <svg [attr.viewBox]=\"'0 0 ' + width() + ' ' + height\" role=\"img\"\n [attr.aria-label]=\"ariaLabel() || title()\" preserveAspectRatio=\"xMidYMid meet\">\n @for (tick of yTicks(); track $index) {\n <line class=\"good-chart-grid\" [attr.x1]=\"left\" [attr.x2]=\"width() - right\"\n [attr.y1]=\"tick.y\" [attr.y2]=\"tick.y\" />\n <text class=\"good-chart-tick good-chart-y-tick\" [attr.x]=\"left - 9\" [attr.y]=\"tick.y + 4\">{{ tick.label }}</text>\n }\n <line class=\"good-chart-baseline\" [attr.x1]=\"left\" [attr.x2]=\"width() - right\"\n [attr.y1]=\"yPosition(baseline())\" [attr.y2]=\"yPosition(baseline())\" />\n @for (tick of xTicks(); track $index) {\n @if (tick.visible) {\n <text class=\"good-chart-tick good-chart-x-tick\" [attr.x]=\"tick.x\"\n [attr.y]=\"top + plotHeight + 19\">{{ tick.label }}</text>\n }\n }\n @for (bar of bars(); track bar.id) {\n <rect class=\"good-chart-bar\" [attr.x]=\"bar.x\" [attr.y]=\"bar.y\" [attr.width]=\"bar.width\"\n [attr.height]=\"bar.height\" [attr.fill]=\"bar.color\" rx=\"2\">\n <title>{{ bar.title }}</title>\n </rect>\n }\n </svg>\n @if (yAxis().label) { <span class=\"good-chart-y-label\">{{ yAxis().label }}</span> }\n @if (xAxis().label) { <span class=\"good-chart-x-label\">{{ xAxis().label }}</span> }\n }\n </div>\n <div class=\"good-chart-legend\" aria-label=\"Series legend\">\n @for (item of legend(); track item.id) {\n <span class=\"good-chart-legend-item\"><i [style.background]=\"item.color\" aria-hidden=\"true\"></i>{{ item.label }}</span>\n }\n </div>\n }\n</good-card>\n", dependencies: [{ kind: "component", type: GoodButtonComponent, selector: "good-button", inputs: ["icon", "endIcon", "iconOnly", "variant", "size", "ariaLabel", "ariaPressed", "disabled", "type", "ariaExpanded", "ariaControls", "hasPopup"] }, { kind: "component", type: GoodCardComponent, selector: "good-card", inputs: ["mobileBleed"] }, { kind: "component", type: GoodCardHeaderComponent, selector: "good-card-header", inputs: ["title", "headingLevel", "tone", "backgroundImage"] }, { kind: "directive", type: GoodCardActionsDirective, selector: "[goodCardActions]" }, { kind: "component", type: GoodTableComponent, selector: "good-table", inputs: ["data", "columns", "label", "style", "tableStyle", "reorderable", "columnOrder", "searchable", "searchPlaceholder", "pagination", "sortingMode", "searchMode", "getRowId", "loading", "emptyMessage", "selectable", "selectedRowId", "emphasizeRow", "emphasisLabel"], outputs: ["columnOrderChange", "selectedRowIdChange", "rowSelected", "sortingChange", "searchChange", "request"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6017
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodBarChartComponent, isStandalone: true, selector: "good-bar-chart", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, sources: { classPropertyName: "sources", publicName: "sources", isSignal: true, isRequired: true, transformFunction: null }, colors: { classPropertyName: "colors", publicName: "colors", isSignal: true, isRequired: false, transformFunction: null }, showDataToggle: { classPropertyName: "showDataToggle", publicName: "showDataToggle", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "good-bar-chart" }, queries: [{ propertyName: "axes", predicate: GoodChartAxisComponent, isSignal: true }, { propertyName: "barDefinitions", predicate: GoodChartBarComponent, isSignal: true }], viewQueries: [{ propertyName: "plotElement", first: true, predicate: ["plot"], descendants: true, isSignal: true }], ngImport: i0, template: "<good-card>\n <good-card-header [title]=\"title()\" [headingLevel]=\"3\">\n @if (showDataToggle()) {\n <good-button goodCardActions variant=\"ghost\" size=\"small\" [iconOnly]=\"true\"\n [icon]=\"dataVisible() ? chartIcon : tableIcon\" [ariaPressed]=\"dataVisible()\"\n [ariaLabel]=\"dataVisible() ? 'Show chart' : 'Show data'\"\n (click)=\"dataVisible.set(!dataVisible())\" />\n }\n </good-card-header>\n <div class=\"good-chart-config\" aria-hidden=\"true\"><ng-content /></div>\n @if (resolved().errors.length) {\n <div class=\"good-chart-message\" role=\"alert\">{{ resolved().errors.join(' ') }}</div>\n } @else if (!resolved().lines.length || !tableRows().length) {\n <div class=\"good-chart-message\">No data to display.</div>\n } @else if (dataVisible()) {\n <p class=\"good-chart-table-hint\">Scroll horizontally to see all series.</p>\n <good-table [label]=\"title() + ' data'\" tableStyle=\"compact\" [data]=\"tableRows()\"\n [columns]=\"tableColumns()\" [reorderable]=\"false\" />\n } @else {\n <div #plot class=\"good-chart-plot\">\n @if (orientation() === 'horizontal') {\n <svg [attr.viewBox]=\"'0 0 ' + width() + ' ' + horizontalHeight()\" role=\"img\"\n [attr.aria-label]=\"ariaLabel() || title()\" [style.height.px]=\"horizontalHeight()\"\n preserveAspectRatio=\"xMidYMid meet\">\n @for (tick of horizontalValueTicks(); track $index) {\n <line class=\"good-chart-grid\" [attr.x1]=\"tick.x\" [attr.x2]=\"tick.x\"\n [attr.y1]=\"top\" [attr.y2]=\"top + horizontalPlotHeight()\" />\n <text class=\"good-chart-tick good-chart-x-tick\" [attr.x]=\"tick.x\"\n [attr.y]=\"top + horizontalPlotHeight() + 19\">{{ tick.label }}</text>\n }\n @for (tick of horizontalCategoryTicks(); track $index) {\n <text class=\"good-chart-tick good-chart-y-tick\" [attr.x]=\"horizontalLeft() - 10\"\n [attr.y]=\"tick.y + 4\">{{ tick.label }}</text>\n }\n <line class=\"good-chart-baseline\" [attr.x1]=\"horizontalValueX(baseline())\"\n [attr.x2]=\"horizontalValueX(baseline())\" [attr.y1]=\"top\"\n [attr.y2]=\"top + horizontalPlotHeight()\" />\n @for (bar of horizontalBars(); track bar.id) {\n <rect class=\"good-chart-bar\" [attr.x]=\"bar.x\" [attr.y]=\"bar.y\"\n [attr.width]=\"bar.width\" [attr.height]=\"bar.height\" [attr.fill]=\"bar.color\" rx=\"2\">\n <title>{{ bar.title }}</title>\n </rect>\n }\n </svg>\n @if (xAxis().label) { <span class=\"good-chart-y-label\">{{ xAxis().label }}</span> }\n @if (yAxis().label) { <span class=\"good-chart-x-label\">{{ yAxis().label }}</span> }\n } @else {\n <svg [attr.viewBox]=\"'0 0 ' + width() + ' ' + height\" role=\"img\"\n [attr.aria-label]=\"ariaLabel() || title()\" preserveAspectRatio=\"xMidYMid meet\">\n @for (tick of yTicks(); track $index) {\n <line class=\"good-chart-grid\" [attr.x1]=\"left\" [attr.x2]=\"width() - right\"\n [attr.y1]=\"tick.y\" [attr.y2]=\"tick.y\" />\n <text class=\"good-chart-tick good-chart-y-tick\" [attr.x]=\"left - 9\" [attr.y]=\"tick.y + 4\">{{ tick.label }}</text>\n }\n <line class=\"good-chart-baseline\" [attr.x1]=\"left\" [attr.x2]=\"width() - right\"\n [attr.y1]=\"yPosition(baseline())\" [attr.y2]=\"yPosition(baseline())\" />\n @for (tick of xTicks(); track $index) {\n @if (tick.visible) {\n <text class=\"good-chart-tick good-chart-x-tick\" [attr.x]=\"tick.x\"\n [attr.y]=\"top + plotHeight + 19\">{{ tick.label }}</text>\n }\n }\n @for (bar of bars(); track bar.id) {\n <rect class=\"good-chart-bar\" [attr.x]=\"bar.x\" [attr.y]=\"bar.y\" [attr.width]=\"bar.width\"\n [attr.height]=\"bar.height\" [attr.fill]=\"bar.color\" rx=\"2\">\n <title>{{ bar.title }}</title>\n </rect>\n }\n </svg>\n @if (yAxis().label) { <span class=\"good-chart-y-label\">{{ yAxis().label }}</span> }\n @if (xAxis().label) { <span class=\"good-chart-x-label\">{{ xAxis().label }}</span> }\n }\n </div>\n <div class=\"good-chart-legend\" aria-label=\"Series legend\">\n @for (item of legend(); track item.id) {\n <span class=\"good-chart-legend-item\"><i [style.background]=\"item.color\" aria-hidden=\"true\"></i>{{ item.label }}</span>\n }\n </div>\n }\n</good-card>\n", dependencies: [{ kind: "component", type: GoodButtonComponent, selector: "good-button", inputs: ["icon", "endIcon", "iconOnly", "variant", "size", "ariaLabel", "ariaPressed", "disabled", "type", "ariaExpanded", "ariaControls", "hasPopup"] }, { kind: "component", type: GoodCardComponent, selector: "good-card", inputs: ["mobileBleed"] }, { kind: "component", type: GoodCardHeaderComponent, selector: "good-card-header", inputs: ["title", "headingLevel", "tone", "backgroundImage"] }, { kind: "directive", type: GoodCardActionsDirective, selector: "[goodCardActions]" }, { kind: "component", type: GoodTableComponent, selector: "good-table", inputs: ["data", "columns", "label", "style", "tableStyle", "frameAppearance", "density", "searchTerm", "reorderable", "columnOrder", "searchable", "searchPlaceholder", "pagination", "sortingMode", "searchMode", "getRowId", "loading", "emptyMessage", "selectable", "selectedRowId", "emphasizeRow", "emphasisLabel"], outputs: ["columnOrderChange", "selectedRowIdChange", "rowSelected", "sortingChange", "searchChange", "request"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6010
6018
  }
6011
6019
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodBarChartComponent, decorators: [{
6012
6020
  type: Component,
@@ -6150,7 +6158,7 @@ class GoodScatterChartComponent {
6150
6158
  return new Intl.DateTimeFormat('en-US', options).format(value);
6151
6159
  }
6152
6160
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodScatterChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6153
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodScatterChartComponent, isStandalone: true, selector: "good-scatter-chart", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, sources: { classPropertyName: "sources", publicName: "sources", isSignal: true, isRequired: true, transformFunction: null }, colors: { classPropertyName: "colors", publicName: "colors", isSignal: true, isRequired: false, transformFunction: null }, showDataToggle: { classPropertyName: "showDataToggle", publicName: "showDataToggle", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "good-scatter-chart" }, queries: [{ propertyName: "axes", predicate: GoodChartAxisComponent, isSignal: true }, { propertyName: "seriesDefinitions", predicate: GoodChartScatterComponent, isSignal: true }], viewQueries: [{ propertyName: "plotElement", first: true, predicate: ["plot"], descendants: true, isSignal: true }], ngImport: i0, template: "<good-card>\n <good-card-header [title]=\"title()\" [headingLevel]=\"3\">\n @if (showDataToggle()) {\n <good-button goodCardActions variant=\"ghost\" size=\"small\" [iconOnly]=\"true\"\n [icon]=\"dataVisible() ? chartIcon : tableIcon\" [ariaPressed]=\"dataVisible()\"\n [ariaLabel]=\"dataVisible() ? 'Show chart' : 'Show data'\"\n (click)=\"dataVisible.set(!dataVisible())\" />\n }\n </good-card-header>\n <div class=\"good-chart-config\" aria-hidden=\"true\"><ng-content /></div>\n @if (errors().length) {\n <div class=\"good-chart-message\" role=\"alert\">{{ errors().join(' ') }}</div>\n } @else if (!tableRows().length) {\n <div class=\"good-chart-message\">No data to display.</div>\n } @else if (dataVisible()) {\n <p class=\"good-chart-table-hint\">Scroll horizontally to see all columns.</p>\n <good-table [label]=\"title() + ' data'\" tableStyle=\"compact\" [data]=\"tableRows()\"\n [columns]=\"tableColumns()\" [reorderable]=\"false\" />\n } @else {\n <div #plot class=\"good-chart-plot\">\n <svg [attr.viewBox]=\"'0 0 ' + width() + ' ' + height\" role=\"img\"\n [attr.aria-label]=\"ariaLabel() || title()\" preserveAspectRatio=\"xMidYMid meet\">\n @for (tick of yTicks(); track $index) {\n <line class=\"good-chart-grid\" [attr.x1]=\"left\" [attr.x2]=\"width() - right\"\n [attr.y1]=\"tick.y\" [attr.y2]=\"tick.y\" />\n <text class=\"good-chart-tick good-chart-y-tick\" [attr.x]=\"left - 9\" [attr.y]=\"tick.y + 4\">{{ tick.label }}</text>\n }\n @for (tick of xTicks(); track $index) {\n <line class=\"good-chart-grid good-chart-x-grid\" [attr.x1]=\"tick.x\" [attr.x2]=\"tick.x\"\n [attr.y1]=\"top\" [attr.y2]=\"top + plotHeight\" />\n <text class=\"good-chart-tick good-chart-x-tick\" [attr.x]=\"tick.x\"\n [attr.y]=\"top + plotHeight + 19\">{{ tick.label }}</text>\n }\n @for (point of points(); track point.id) {\n <circle class=\"good-chart-scatter-point\" [attr.cx]=\"point.x\" [attr.cy]=\"point.y\"\n r=\"5\" [attr.fill]=\"point.color\"><title>{{ point.label }}</title></circle>\n }\n </svg>\n @if (yAxis().label) { <span class=\"good-chart-y-label\">{{ yAxis().label }}</span> }\n @if (xAxis().label) { <span class=\"good-chart-x-label\">{{ xAxis().label }}</span> }\n </div>\n <div class=\"good-chart-legend\" aria-label=\"Series legend\">\n @for (series of legend(); track series.id) {\n <span class=\"good-chart-legend-item\"><i [style.background]=\"series.color\" aria-hidden=\"true\"></i>{{ series.label }}</span>\n }\n </div>\n }\n</good-card>\n", dependencies: [{ kind: "component", type: GoodButtonComponent, selector: "good-button", inputs: ["icon", "endIcon", "iconOnly", "variant", "size", "ariaLabel", "ariaPressed", "disabled", "type", "ariaExpanded", "ariaControls", "hasPopup"] }, { kind: "component", type: GoodCardComponent, selector: "good-card", inputs: ["mobileBleed"] }, { kind: "component", type: GoodCardHeaderComponent, selector: "good-card-header", inputs: ["title", "headingLevel", "tone", "backgroundImage"] }, { kind: "directive", type: GoodCardActionsDirective, selector: "[goodCardActions]" }, { kind: "component", type: GoodTableComponent, selector: "good-table", inputs: ["data", "columns", "label", "style", "tableStyle", "reorderable", "columnOrder", "searchable", "searchPlaceholder", "pagination", "sortingMode", "searchMode", "getRowId", "loading", "emptyMessage", "selectable", "selectedRowId", "emphasizeRow", "emphasisLabel"], outputs: ["columnOrderChange", "selectedRowIdChange", "rowSelected", "sortingChange", "searchChange", "request"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6161
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodScatterChartComponent, isStandalone: true, selector: "good-scatter-chart", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, sources: { classPropertyName: "sources", publicName: "sources", isSignal: true, isRequired: true, transformFunction: null }, colors: { classPropertyName: "colors", publicName: "colors", isSignal: true, isRequired: false, transformFunction: null }, showDataToggle: { classPropertyName: "showDataToggle", publicName: "showDataToggle", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "good-scatter-chart" }, queries: [{ propertyName: "axes", predicate: GoodChartAxisComponent, isSignal: true }, { propertyName: "seriesDefinitions", predicate: GoodChartScatterComponent, isSignal: true }], viewQueries: [{ propertyName: "plotElement", first: true, predicate: ["plot"], descendants: true, isSignal: true }], ngImport: i0, template: "<good-card>\n <good-card-header [title]=\"title()\" [headingLevel]=\"3\">\n @if (showDataToggle()) {\n <good-button goodCardActions variant=\"ghost\" size=\"small\" [iconOnly]=\"true\"\n [icon]=\"dataVisible() ? chartIcon : tableIcon\" [ariaPressed]=\"dataVisible()\"\n [ariaLabel]=\"dataVisible() ? 'Show chart' : 'Show data'\"\n (click)=\"dataVisible.set(!dataVisible())\" />\n }\n </good-card-header>\n <div class=\"good-chart-config\" aria-hidden=\"true\"><ng-content /></div>\n @if (errors().length) {\n <div class=\"good-chart-message\" role=\"alert\">{{ errors().join(' ') }}</div>\n } @else if (!tableRows().length) {\n <div class=\"good-chart-message\">No data to display.</div>\n } @else if (dataVisible()) {\n <p class=\"good-chart-table-hint\">Scroll horizontally to see all columns.</p>\n <good-table [label]=\"title() + ' data'\" tableStyle=\"compact\" [data]=\"tableRows()\"\n [columns]=\"tableColumns()\" [reorderable]=\"false\" />\n } @else {\n <div #plot class=\"good-chart-plot\">\n <svg [attr.viewBox]=\"'0 0 ' + width() + ' ' + height\" role=\"img\"\n [attr.aria-label]=\"ariaLabel() || title()\" preserveAspectRatio=\"xMidYMid meet\">\n @for (tick of yTicks(); track $index) {\n <line class=\"good-chart-grid\" [attr.x1]=\"left\" [attr.x2]=\"width() - right\"\n [attr.y1]=\"tick.y\" [attr.y2]=\"tick.y\" />\n <text class=\"good-chart-tick good-chart-y-tick\" [attr.x]=\"left - 9\" [attr.y]=\"tick.y + 4\">{{ tick.label }}</text>\n }\n @for (tick of xTicks(); track $index) {\n <line class=\"good-chart-grid good-chart-x-grid\" [attr.x1]=\"tick.x\" [attr.x2]=\"tick.x\"\n [attr.y1]=\"top\" [attr.y2]=\"top + plotHeight\" />\n <text class=\"good-chart-tick good-chart-x-tick\" [attr.x]=\"tick.x\"\n [attr.y]=\"top + plotHeight + 19\">{{ tick.label }}</text>\n }\n @for (point of points(); track point.id) {\n <circle class=\"good-chart-scatter-point\" [attr.cx]=\"point.x\" [attr.cy]=\"point.y\"\n r=\"5\" [attr.fill]=\"point.color\"><title>{{ point.label }}</title></circle>\n }\n </svg>\n @if (yAxis().label) { <span class=\"good-chart-y-label\">{{ yAxis().label }}</span> }\n @if (xAxis().label) { <span class=\"good-chart-x-label\">{{ xAxis().label }}</span> }\n </div>\n <div class=\"good-chart-legend\" aria-label=\"Series legend\">\n @for (series of legend(); track series.id) {\n <span class=\"good-chart-legend-item\"><i [style.background]=\"series.color\" aria-hidden=\"true\"></i>{{ series.label }}</span>\n }\n </div>\n }\n</good-card>\n", dependencies: [{ kind: "component", type: GoodButtonComponent, selector: "good-button", inputs: ["icon", "endIcon", "iconOnly", "variant", "size", "ariaLabel", "ariaPressed", "disabled", "type", "ariaExpanded", "ariaControls", "hasPopup"] }, { kind: "component", type: GoodCardComponent, selector: "good-card", inputs: ["mobileBleed"] }, { kind: "component", type: GoodCardHeaderComponent, selector: "good-card-header", inputs: ["title", "headingLevel", "tone", "backgroundImage"] }, { kind: "directive", type: GoodCardActionsDirective, selector: "[goodCardActions]" }, { kind: "component", type: GoodTableComponent, selector: "good-table", inputs: ["data", "columns", "label", "style", "tableStyle", "frameAppearance", "density", "searchTerm", "reorderable", "columnOrder", "searchable", "searchPlaceholder", "pagination", "sortingMode", "searchMode", "getRowId", "loading", "emptyMessage", "selectable", "selectedRowId", "emphasizeRow", "emphasisLabel"], outputs: ["columnOrderChange", "selectedRowIdChange", "rowSelected", "sortingChange", "searchChange", "request"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6154
6162
  }
6155
6163
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodScatterChartComponent, decorators: [{
6156
6164
  type: Component,
@@ -6295,7 +6303,7 @@ class GoodHistogramComponent {
6295
6303
  return new Intl.NumberFormat('en-US', { maximumFractionDigits: digits, minimumFractionDigits: digits }).format(value);
6296
6304
  }
6297
6305
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHistogramComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6298
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodHistogramComponent, isStandalone: true, selector: "good-histogram", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, sources: { classPropertyName: "sources", publicName: "sources", isSignal: true, isRequired: true, transformFunction: null }, binCount: { classPropertyName: "binCount", publicName: "binCount", isSignal: true, isRequired: false, transformFunction: null }, colors: { classPropertyName: "colors", publicName: "colors", isSignal: true, isRequired: false, transformFunction: null }, showDataToggle: { classPropertyName: "showDataToggle", publicName: "showDataToggle", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "good-histogram" }, queries: [{ propertyName: "axes", predicate: GoodChartAxisComponent, isSignal: true }, { propertyName: "seriesDefinitions", predicate: GoodChartHistogramComponent, isSignal: true }], viewQueries: [{ propertyName: "plotElement", first: true, predicate: ["plot"], descendants: true, isSignal: true }], ngImport: i0, template: "<good-card>\n <good-card-header [title]=\"title()\" [headingLevel]=\"3\">\n @if (showDataToggle()) {\n <good-button goodCardActions variant=\"ghost\" size=\"small\" [iconOnly]=\"true\"\n [icon]=\"dataVisible() ? chartIcon : tableIcon\" [ariaPressed]=\"dataVisible()\"\n [ariaLabel]=\"dataVisible() ? 'Show chart' : 'Show data'\"\n (click)=\"dataVisible.set(!dataVisible())\" />\n }\n </good-card-header>\n <div class=\"good-chart-config\" aria-hidden=\"true\"><ng-content /></div>\n @if (errors().length) {\n <div class=\"good-chart-message\" role=\"alert\">{{ errors().join(' ') }}</div>\n } @else if (!resolved().bins.length || !resolved().series.length) {\n <div class=\"good-chart-message\">No data to display.</div>\n } @else if (dataVisible()) {\n <p class=\"good-chart-table-hint\">Scroll horizontally to see all series.</p>\n <good-table [label]=\"title() + ' data'\" tableStyle=\"compact\" [data]=\"tableRows()\"\n [columns]=\"tableColumns()\" [reorderable]=\"false\" />\n } @else {\n <div #plot class=\"good-chart-plot\">\n <svg [attr.viewBox]=\"'0 0 ' + width() + ' ' + height\" role=\"img\"\n [attr.aria-label]=\"ariaLabel() || title()\" preserveAspectRatio=\"xMidYMid meet\">\n @for (tick of yTicks(); track $index) {\n <line class=\"good-chart-grid\" [attr.x1]=\"left\" [attr.x2]=\"width() - right\"\n [attr.y1]=\"tick.y\" [attr.y2]=\"tick.y\" />\n <text class=\"good-chart-tick good-chart-y-tick\" [attr.x]=\"left - 9\" [attr.y]=\"tick.y + 4\">{{ tick.label }}</text>\n }\n <line class=\"good-chart-baseline\" [attr.x1]=\"left\" [attr.x2]=\"width() - right\"\n [attr.y1]=\"top + plotHeight\" [attr.y2]=\"top + plotHeight\" />\n @for (tick of xTicks(); track $index) {\n @if (tick.visible) {\n <text class=\"good-chart-tick good-chart-x-tick\" [attr.x]=\"tick.x\"\n [attr.y]=\"top + plotHeight + 19\">{{ tick.label }}</text>\n }\n }\n @for (bar of bars(); track bar.id) {\n <rect class=\"good-histogram-bar\" [attr.x]=\"bar.x\" [attr.y]=\"bar.y\"\n [attr.width]=\"bar.width\" [attr.height]=\"bar.height\" [attr.fill]=\"bar.color\">\n <title>{{ bar.title }}</title>\n </rect>\n }\n </svg>\n @if (yAxis().label) { <span class=\"good-chart-y-label\">{{ yAxis().label }}</span> }\n @if (xAxis().label) { <span class=\"good-chart-x-label\">{{ xAxis().label }}</span> }\n </div>\n <div class=\"good-chart-legend\" aria-label=\"Series legend\">\n @for (series of legend(); track series.id) {\n <span class=\"good-chart-legend-item\"><i [style.background]=\"series.color\" aria-hidden=\"true\"></i>{{ series.label }}</span>\n }\n </div>\n }\n</good-card>\n", dependencies: [{ kind: "component", type: GoodButtonComponent, selector: "good-button", inputs: ["icon", "endIcon", "iconOnly", "variant", "size", "ariaLabel", "ariaPressed", "disabled", "type", "ariaExpanded", "ariaControls", "hasPopup"] }, { kind: "component", type: GoodCardComponent, selector: "good-card", inputs: ["mobileBleed"] }, { kind: "component", type: GoodCardHeaderComponent, selector: "good-card-header", inputs: ["title", "headingLevel", "tone", "backgroundImage"] }, { kind: "directive", type: GoodCardActionsDirective, selector: "[goodCardActions]" }, { kind: "component", type: GoodTableComponent, selector: "good-table", inputs: ["data", "columns", "label", "style", "tableStyle", "reorderable", "columnOrder", "searchable", "searchPlaceholder", "pagination", "sortingMode", "searchMode", "getRowId", "loading", "emptyMessage", "selectable", "selectedRowId", "emphasizeRow", "emphasisLabel"], outputs: ["columnOrderChange", "selectedRowIdChange", "rowSelected", "sortingChange", "searchChange", "request"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6306
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: GoodHistogramComponent, isStandalone: true, selector: "good-histogram", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, sources: { classPropertyName: "sources", publicName: "sources", isSignal: true, isRequired: true, transformFunction: null }, binCount: { classPropertyName: "binCount", publicName: "binCount", isSignal: true, isRequired: false, transformFunction: null }, colors: { classPropertyName: "colors", publicName: "colors", isSignal: true, isRequired: false, transformFunction: null }, showDataToggle: { classPropertyName: "showDataToggle", publicName: "showDataToggle", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "good-histogram" }, queries: [{ propertyName: "axes", predicate: GoodChartAxisComponent, isSignal: true }, { propertyName: "seriesDefinitions", predicate: GoodChartHistogramComponent, isSignal: true }], viewQueries: [{ propertyName: "plotElement", first: true, predicate: ["plot"], descendants: true, isSignal: true }], ngImport: i0, template: "<good-card>\n <good-card-header [title]=\"title()\" [headingLevel]=\"3\">\n @if (showDataToggle()) {\n <good-button goodCardActions variant=\"ghost\" size=\"small\" [iconOnly]=\"true\"\n [icon]=\"dataVisible() ? chartIcon : tableIcon\" [ariaPressed]=\"dataVisible()\"\n [ariaLabel]=\"dataVisible() ? 'Show chart' : 'Show data'\"\n (click)=\"dataVisible.set(!dataVisible())\" />\n }\n </good-card-header>\n <div class=\"good-chart-config\" aria-hidden=\"true\"><ng-content /></div>\n @if (errors().length) {\n <div class=\"good-chart-message\" role=\"alert\">{{ errors().join(' ') }}</div>\n } @else if (!resolved().bins.length || !resolved().series.length) {\n <div class=\"good-chart-message\">No data to display.</div>\n } @else if (dataVisible()) {\n <p class=\"good-chart-table-hint\">Scroll horizontally to see all series.</p>\n <good-table [label]=\"title() + ' data'\" tableStyle=\"compact\" [data]=\"tableRows()\"\n [columns]=\"tableColumns()\" [reorderable]=\"false\" />\n } @else {\n <div #plot class=\"good-chart-plot\">\n <svg [attr.viewBox]=\"'0 0 ' + width() + ' ' + height\" role=\"img\"\n [attr.aria-label]=\"ariaLabel() || title()\" preserveAspectRatio=\"xMidYMid meet\">\n @for (tick of yTicks(); track $index) {\n <line class=\"good-chart-grid\" [attr.x1]=\"left\" [attr.x2]=\"width() - right\"\n [attr.y1]=\"tick.y\" [attr.y2]=\"tick.y\" />\n <text class=\"good-chart-tick good-chart-y-tick\" [attr.x]=\"left - 9\" [attr.y]=\"tick.y + 4\">{{ tick.label }}</text>\n }\n <line class=\"good-chart-baseline\" [attr.x1]=\"left\" [attr.x2]=\"width() - right\"\n [attr.y1]=\"top + plotHeight\" [attr.y2]=\"top + plotHeight\" />\n @for (tick of xTicks(); track $index) {\n @if (tick.visible) {\n <text class=\"good-chart-tick good-chart-x-tick\" [attr.x]=\"tick.x\"\n [attr.y]=\"top + plotHeight + 19\">{{ tick.label }}</text>\n }\n }\n @for (bar of bars(); track bar.id) {\n <rect class=\"good-histogram-bar\" [attr.x]=\"bar.x\" [attr.y]=\"bar.y\"\n [attr.width]=\"bar.width\" [attr.height]=\"bar.height\" [attr.fill]=\"bar.color\">\n <title>{{ bar.title }}</title>\n </rect>\n }\n </svg>\n @if (yAxis().label) { <span class=\"good-chart-y-label\">{{ yAxis().label }}</span> }\n @if (xAxis().label) { <span class=\"good-chart-x-label\">{{ xAxis().label }}</span> }\n </div>\n <div class=\"good-chart-legend\" aria-label=\"Series legend\">\n @for (series of legend(); track series.id) {\n <span class=\"good-chart-legend-item\"><i [style.background]=\"series.color\" aria-hidden=\"true\"></i>{{ series.label }}</span>\n }\n </div>\n }\n</good-card>\n", dependencies: [{ kind: "component", type: GoodButtonComponent, selector: "good-button", inputs: ["icon", "endIcon", "iconOnly", "variant", "size", "ariaLabel", "ariaPressed", "disabled", "type", "ariaExpanded", "ariaControls", "hasPopup"] }, { kind: "component", type: GoodCardComponent, selector: "good-card", inputs: ["mobileBleed"] }, { kind: "component", type: GoodCardHeaderComponent, selector: "good-card-header", inputs: ["title", "headingLevel", "tone", "backgroundImage"] }, { kind: "directive", type: GoodCardActionsDirective, selector: "[goodCardActions]" }, { kind: "component", type: GoodTableComponent, selector: "good-table", inputs: ["data", "columns", "label", "style", "tableStyle", "frameAppearance", "density", "searchTerm", "reorderable", "columnOrder", "searchable", "searchPlaceholder", "pagination", "sortingMode", "searchMode", "getRowId", "loading", "emptyMessage", "selectable", "selectedRowId", "emphasizeRow", "emphasisLabel"], outputs: ["columnOrderChange", "selectedRowIdChange", "rowSelected", "sortingChange", "searchChange", "request"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6299
6307
  }
6300
6308
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHistogramComponent, decorators: [{
6301
6309
  type: Component,