@cloudfrogger/goodui 0.0.72 → 0.0.74
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/ai/README.md +6 -0
- package/ai/catalog/components/good-form-row.json +16 -1
- package/ai/catalog/components/good-group.json +1 -2
- package/ai/catalog/components/good-header-themetoggle.json +1 -8
- package/ai/catalog/components/good-heading-2.json +3 -1
- package/ai/catalog/components/good-heading-group.json +3 -1
- package/ai/catalog/components/good-section.json +49 -1
- package/ai/catalog/components/good-table.json +55 -0
- package/ai/catalog/index.json +6 -6
- package/ai/examples/settings.html +3 -2
- package/ai/examples/settings.ts +2 -2
- package/ai/guides/common-mistakes.md +6 -0
- package/ai/guides/layout.md +4 -2
- package/ai/guides/page-patterns.md +7 -1
- package/ai/manifest.json +2 -2
- package/ai/skill/goodui/SKILL.md +12 -2
- package/angular/projects/goodui/package.json +1 -1
- package/angular/projects/goodui/src/lib/actions.ts +4 -4
- package/angular/projects/goodui/src/lib/group.ts +1 -1
- package/angular/projects/goodui/src/lib/table.ts +6 -1
- package/angular/projects/goodui/src/lib/theme.ts +1 -2
- package/angular/projects/goodui/src/lib/typography.ts +4 -1
- package/angular/projects/goodui/src/styles.css +30 -2
- package/design/component-map.json +44 -8
- package/design/settings-layout-contract.json +166 -0
- package/design/typography-components.json +2 -1
- package/design.md +4 -3
- package/fesm2022/cloudfrogger-goodui.mjs +28 -21
- package/fesm2022/cloudfrogger-goodui.mjs.map +1 -1
- package/guides/components/group.md +18 -0
- package/guides/components/header-themetoggle.md +3 -3
- package/guides/components/main-view.md +4 -0
- package/guides/components/settings.md +2 -0
- package/guides/components/table.md +8 -0
- package/guides/components/typography.md +23 -0
- package/guides/contributing/design-to-code.md +16 -1
- package/guides/layout/screen-design.md +63 -0
- package/homepage/src/app/examples/settings/settings-page.html +112 -0
- package/homepage/src/app/examples/settings/settings-page.ts +133 -0
- package/homepage/src/app/examples/settings/source-code.generated.ts +3 -0
- package/package.json +2 -2
- package/styles.css +1 -1
- package/types/cloudfrogger-goodui.d.ts +10 -4
|
@@ -167,8 +167,7 @@ class GoodThemeService {
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
cycle() {
|
|
170
|
-
|
|
171
|
-
this.setTheme(next[this.preference()]);
|
|
170
|
+
this.toggle();
|
|
172
171
|
}
|
|
173
172
|
toggle() {
|
|
174
173
|
this.setTheme(this.theme() === 'light' ? 'dark' : 'light');
|
|
@@ -1306,10 +1305,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
1306
1305
|
}], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], dialog: [{ type: i0.ViewChild, args: ['dialog', { isSignal: true }] }] } });
|
|
1307
1306
|
class GoodHeaderThemeToggleComponent {
|
|
1308
1307
|
theme = inject(GoodThemeService);
|
|
1309
|
-
icon = computed(() => (
|
|
1310
|
-
label = computed(() => `Appearance: ${this.theme.
|
|
1308
|
+
icon = computed(() => this.theme.theme() === 'light' ? 'sun' : 'moon', ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
1309
|
+
label = computed(() => `Appearance: ${this.theme.theme()}. Switch to ${this.theme.theme() === 'light' ? 'dark' : 'light'} mode`, ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
1311
1310
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHeaderThemeToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1312
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: GoodHeaderThemeToggleComponent, isStandalone: true, selector: "good-header-themetoggle", host: { classAttribute: "good-header-themetoggle" }, ngImport: i0, template: `<button type="button" class="good-action-button" [attr.aria-label]="label()" [attr.title]="label()" (click)="theme.
|
|
1311
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: GoodHeaderThemeToggleComponent, isStandalone: true, selector: "good-header-themetoggle", host: { classAttribute: "good-header-themetoggle" }, ngImport: i0, template: `<button type="button" class="good-action-button" [attr.aria-label]="label()" [attr.title]="label()" (click)="theme.toggle()">
|
|
1313
1312
|
<good-icon [name]="icon()" />
|
|
1314
1313
|
</button>`, isInline: true, dependencies: [{ kind: "component", type: GoodIconComponent, selector: "good-icon", inputs: ["name"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1315
1314
|
}
|
|
@@ -1320,7 +1319,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
1320
1319
|
standalone: true,
|
|
1321
1320
|
imports: [GoodIconComponent],
|
|
1322
1321
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1323
|
-
template: `<button type="button" class="good-action-button" [attr.aria-label]="label()" [attr.title]="label()" (click)="theme.
|
|
1322
|
+
template: `<button type="button" class="good-action-button" [attr.aria-label]="label()" [attr.title]="label()" (click)="theme.toggle()">
|
|
1324
1323
|
<good-icon [name]="icon()" />
|
|
1325
1324
|
</button>`,
|
|
1326
1325
|
host: { class: 'good-header-themetoggle' },
|
|
@@ -1512,7 +1511,7 @@ class GoodHeaderAvatarComponent {
|
|
|
1512
1511
|
@if (action.variant !== 'sign-out') { <good-avatar-menu-item [action]="action" [path]="action.id" (closed)="closeMenu()" /> }
|
|
1513
1512
|
}
|
|
1514
1513
|
<span class="good-avatar-separator" role="separator"></span>
|
|
1515
|
-
<label class="good-avatar-theme-row"><span>Dark Mode</span><input type="checkbox" role="switch" [checked]="theme.
|
|
1514
|
+
<label class="good-avatar-theme-row"><span>Dark Mode</span><input type="checkbox" role="switch" [checked]="theme.theme() === 'dark'" (change)="theme.setTheme($any($event.target).checked ? 'dark' : 'light')" /><span class="good-avatar-switch" aria-hidden="true"></span></label>
|
|
1516
1515
|
@for (action of actions(); track action.id) {
|
|
1517
1516
|
@if (action.variant === 'sign-out') { <good-avatar-menu-item [action]="action" [path]="action.id" (closed)="closeMenu()" /> }
|
|
1518
1517
|
}
|
|
@@ -1540,7 +1539,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
1540
1539
|
@if (action.variant !== 'sign-out') { <good-avatar-menu-item [action]="action" [path]="action.id" (closed)="closeMenu()" /> }
|
|
1541
1540
|
}
|
|
1542
1541
|
<span class="good-avatar-separator" role="separator"></span>
|
|
1543
|
-
<label class="good-avatar-theme-row"><span>Dark Mode</span><input type="checkbox" role="switch" [checked]="theme.
|
|
1542
|
+
<label class="good-avatar-theme-row"><span>Dark Mode</span><input type="checkbox" role="switch" [checked]="theme.theme() === 'dark'" (change)="theme.setTheme($any($event.target).checked ? 'dark' : 'light')" /><span class="good-avatar-switch" aria-hidden="true"></span></label>
|
|
1544
1543
|
@for (action of actions(); track action.id) {
|
|
1545
1544
|
@if (action.variant === 'sign-out') { <good-avatar-menu-item [action]="action" [path]="action.id" (closed)="closeMenu()" /> }
|
|
1546
1545
|
}
|
|
@@ -3452,16 +3451,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3452
3451
|
}] });
|
|
3453
3452
|
class GoodSectionComponent {
|
|
3454
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 */ []));
|
|
3455
3456
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodSectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3456
|
-
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 });
|
|
3457
3458
|
}
|
|
3458
3459
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodSectionComponent, decorators: [{
|
|
3459
3460
|
type: Component,
|
|
3460
3461
|
args: [{
|
|
3461
3462
|
selector: 'good-section', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3462
|
-
host: { class: 'good-section', '[attr.data-spacing]': 'spacing()'
|
|
3463
|
+
host: { class: 'good-section', '[attr.data-spacing]': 'spacing()', '[attr.data-layout]': 'layout()', '[attr.data-appearance]': 'appearance()' },
|
|
3464
|
+
template: `<section><ng-content /></section>`,
|
|
3463
3465
|
}]
|
|
3464
|
-
}], 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 }] }] } });
|
|
3465
3467
|
class GoodProseComponent {
|
|
3466
3468
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodProseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3467
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 });
|
|
@@ -3836,7 +3838,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3836
3838
|
class GoodFormRowComponent {
|
|
3837
3839
|
columns = input(2, ...(ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []));
|
|
3838
3840
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodFormRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3839
|
-
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
|
|
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 });
|
|
3840
3842
|
}
|
|
3841
3843
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodFormRowComponent, decorators: [{
|
|
3842
3844
|
type: Component,
|
|
@@ -3845,7 +3847,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3845
3847
|
standalone: true,
|
|
3846
3848
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3847
3849
|
host: { class: 'good-form-row', '[attr.data-columns]': 'columns()' },
|
|
3848
|
-
template: `<ng-content
|
|
3850
|
+
template: `<ng-content /><div class="good-form-row-actions"><ng-content select="[good-form-row-actions]" /></div>`,
|
|
3849
3851
|
}]
|
|
3850
3852
|
}], propDecorators: { columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }] } });
|
|
3851
3853
|
|
|
@@ -4660,6 +4662,10 @@ class GoodTableComponent {
|
|
|
4660
4662
|
style = input('default', ...(ngDevMode ? [{ debugName: "style" }] : /* istanbul ignore next */ []));
|
|
4661
4663
|
/** Prefer this name in templates: static style="compact" is interpreted as an HTML style attribute. */
|
|
4662
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 */ []));
|
|
4663
4669
|
/** Drag or use the header grips to reorder columns; enabled by default. */
|
|
4664
4670
|
reorderable = input(true, { ...(ngDevMode ? { debugName: "reorderable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
4665
4671
|
/** Optional controlled order of leaf column IDs; emits changes from user reordering. */
|
|
@@ -4791,6 +4797,7 @@ class GoodTableComponent {
|
|
|
4791
4797
|
return `${start}–${end} of ${total} records`;
|
|
4792
4798
|
}, ...(ngDevMode ? [{ debugName: "pageSummary" }] : /* istanbul ignore next */ []));
|
|
4793
4799
|
constructor() {
|
|
4800
|
+
effect(() => { const term = this.searchTerm(); untracked(() => this.setSearch(term)); });
|
|
4794
4801
|
effect(() => {
|
|
4795
4802
|
this.columns();
|
|
4796
4803
|
const width = this.tableWidth();
|
|
@@ -5017,9 +5024,9 @@ class GoodTableComponent {
|
|
|
5017
5024
|
});
|
|
5018
5025
|
}
|
|
5019
5026
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5020
|
-
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: `
|
|
5021
5028
|
<ng-content select="ng-template[goodTableCell]" />
|
|
5022
|
-
<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">
|
|
5023
5030
|
@if (searchable()) {
|
|
5024
5031
|
<div class="good-table-toolbar">
|
|
5025
5032
|
<good-input label="Search records" type="search" [startIcon]="searchIcon" [placeholder]="searchPlaceholder()"
|
|
@@ -5151,7 +5158,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
5151
5158
|
host: { class: 'good-table', '[attr.data-column-dragging]': 'dragSourceId() ? "true" : null', '[attr.data-responsive-columns]': 'hasResponsiveColumns() ? "true" : null' },
|
|
5152
5159
|
template: `
|
|
5153
5160
|
<ng-content select="ng-template[goodTableCell]" />
|
|
5154
|
-
<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">
|
|
5155
5162
|
@if (searchable()) {
|
|
5156
5163
|
<div class="good-table-toolbar">
|
|
5157
5164
|
<good-input label="Search records" type="search" [startIcon]="searchIcon" [placeholder]="searchPlaceholder()"
|
|
@@ -5272,7 +5279,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
5272
5279
|
</div>
|
|
5273
5280
|
`,
|
|
5274
5281
|
}]
|
|
5275
|
-
}], 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 }] }] } });
|
|
5276
5283
|
|
|
5277
5284
|
function parseNumber(value, type) {
|
|
5278
5285
|
if (typeof value !== 'number' || !Number.isFinite(value))
|
|
@@ -5789,7 +5796,7 @@ class GoodLineChartComponent {
|
|
|
5789
5796
|
return new Intl.DateTimeFormat('en-US', options).format(time);
|
|
5790
5797
|
}
|
|
5791
5798
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodLineChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5792
|
-
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 });
|
|
5793
5800
|
}
|
|
5794
5801
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodLineChartComponent, decorators: [{
|
|
5795
5802
|
type: Component,
|
|
@@ -6007,7 +6014,7 @@ class GoodBarChartComponent {
|
|
|
6007
6014
|
return this.xAxis().type === 'time' ? this.formatTime(Number(value)) : String(value);
|
|
6008
6015
|
}
|
|
6009
6016
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodBarChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6010
|
-
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 });
|
|
6011
6018
|
}
|
|
6012
6019
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodBarChartComponent, decorators: [{
|
|
6013
6020
|
type: Component,
|
|
@@ -6151,7 +6158,7 @@ class GoodScatterChartComponent {
|
|
|
6151
6158
|
return new Intl.DateTimeFormat('en-US', options).format(value);
|
|
6152
6159
|
}
|
|
6153
6160
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodScatterChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6154
|
-
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 });
|
|
6155
6162
|
}
|
|
6156
6163
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodScatterChartComponent, decorators: [{
|
|
6157
6164
|
type: Component,
|
|
@@ -6296,7 +6303,7 @@ class GoodHistogramComponent {
|
|
|
6296
6303
|
return new Intl.NumberFormat('en-US', { maximumFractionDigits: digits, minimumFractionDigits: digits }).format(value);
|
|
6297
6304
|
}
|
|
6298
6305
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHistogramComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6299
|
-
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 });
|
|
6300
6307
|
}
|
|
6301
6308
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: GoodHistogramComponent, decorators: [{
|
|
6302
6309
|
type: Component,
|