@skyux/code-examples 15.0.0-alpha.2 → 15.0.0-alpha.3
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { ChangeDetectionStrategy, Component, inject, Input, viewChild, signal, effect, Injectable, ChangeDetectorRef, input, computed,
|
|
2
|
+
import { ChangeDetectionStrategy, Component, inject, Input, viewChild, signal, effect, Injectable, ChangeDetectorRef, input, computed, resource, model, afterNextRender, linkedSignal, untracked, ViewChild, InjectionToken } from '@angular/core';
|
|
3
3
|
import * as i2 from '@skyux/action-bars';
|
|
4
4
|
import { SkySummaryActionBarModule } from '@skyux/action-bars';
|
|
5
5
|
import * as i1 from '@skyux/indicators';
|
|
@@ -43,6 +43,7 @@ import * as i2$6 from '@skyux/autonumeric';
|
|
|
43
43
|
import { SkyAutonumericModule, SkyAutonumericOptionsProvider } from '@skyux/autonumeric';
|
|
44
44
|
import * as i1$8 from '@skyux/avatar';
|
|
45
45
|
import { SkyAvatarModule } from '@skyux/avatar';
|
|
46
|
+
import { SkyChart, SkyChartAxisCategory, SkyChartAxisValue, SkyChartBar, SkyChartBarSeries } from '@skyux/charts';
|
|
46
47
|
import * as i2$7 from '@skyux/colorpicker';
|
|
47
48
|
import { SkyColorpickerModule, SkyColorpickerMessageType } from '@skyux/colorpicker';
|
|
48
49
|
import * as i3$1 from '@skyux/core';
|
|
@@ -4950,6 +4951,375 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
4950
4951
|
args: [{ selector: 'app-avatar-example', changeDetection: ChangeDetectionStrategy.Eager, imports: [SkyAvatarModule], template: "<sky-avatar\n data-sky-id=\"user-profile-avatar\"\n [canChange]=\"true\"\n [maxFileSize]=\"1000\"\n [name]=\"name()\"\n [src]=\"avatar()\"\n (avatarChanged)=\"onAvatarChanged($event)\"\n/>\n" }]
|
|
4951
4952
|
}] });
|
|
4952
4953
|
|
|
4954
|
+
/**
|
|
4955
|
+
* @title Bar chart with asynchronously loaded data
|
|
4956
|
+
*/
|
|
4957
|
+
class ChartsChartBarAsyncExample {
|
|
4958
|
+
constructor() {
|
|
4959
|
+
// Simulate network latency.
|
|
4960
|
+
this.delay = input(1200, /* @ts-ignore */
|
|
4961
|
+
...(ngDevMode ? [{ debugName: "delay" }] : /* istanbul ignore next */ []));
|
|
4962
|
+
// A real SPA might use `httpResource` to load remote data. While reloading,
|
|
4963
|
+
// the resource keeps its previous value, so the chart stays rendered
|
|
4964
|
+
// beneath the wait overlay.
|
|
4965
|
+
this.donations = resource({ ...(ngDevMode ? { debugName: "donations" } : /* istanbul ignore next */ {}), params: () => ({ delay: this.delay() }),
|
|
4966
|
+
loader: ({ params }) => fetchDonationsFromServer(params.delay) });
|
|
4967
|
+
}
|
|
4968
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ChartsChartBarAsyncExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4969
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: ChartsChartBarAsyncExample, isStandalone: true, selector: "app-chart-bar-async-example", inputs: { delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<button\n class=\"sky-btn sky-btn-default sky-theme-margin-bottom-s\"\n type=\"button\"\n [disabled]=\"donations.isLoading()\"\n (click)=\"donations.reload()\"\n>\n Reload data\n</button>\n<sky-chart\n data-sky-id=\"donations-by-quarter\"\n headingText=\"Donations by quarter\"\n [loading]=\"donations.isLoading()\"\n>\n @if (donations.value(); as data) {\n <sky-chart-bar>\n <sky-chart-axis-category\n labelText=\"Quarter\"\n [categories]=\"data.categories\"\n />\n <sky-chart-axis-value format=\"currency\" labelText=\"Donations\" />\n <sky-chart-bar-series labelText=\"Donations\" [values]=\"data.values\" />\n </sky-chart-bar>\n }\n</sky-chart>\n", dependencies: [{ kind: "component", type: SkyChart, selector: "sky-chart", inputs: ["headingHidden", "headingLevel", "headingStyle", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "loading", "subheadingText"] }, { kind: "component", type: SkyChartAxisCategory, selector: "sky-chart-axis-category", inputs: ["categories", "labelHidden", "labelText"] }, { kind: "component", type: SkyChartAxisValue, selector: "sky-chart-axis-value", inputs: ["currencyCode", "digits", "format", "labelHidden", "labelText", "max", "min", "scaleType"] }, { kind: "component", type: SkyChartBar, selector: "sky-chart-bar", inputs: ["orientation", "seriesLayout"] }, { kind: "component", type: SkyChartBarSeries, selector: "sky-chart-bar-series", inputs: ["labelText", "stackId", "values"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4970
|
+
}
|
|
4971
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ChartsChartBarAsyncExample, decorators: [{
|
|
4972
|
+
type: Component,
|
|
4973
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-chart-bar-async-example', imports: [
|
|
4974
|
+
SkyChart,
|
|
4975
|
+
SkyChartAxisCategory,
|
|
4976
|
+
SkyChartAxisValue,
|
|
4977
|
+
SkyChartBar,
|
|
4978
|
+
SkyChartBarSeries,
|
|
4979
|
+
], template: "<button\n class=\"sky-btn sky-btn-default sky-theme-margin-bottom-s\"\n type=\"button\"\n [disabled]=\"donations.isLoading()\"\n (click)=\"donations.reload()\"\n>\n Reload data\n</button>\n<sky-chart\n data-sky-id=\"donations-by-quarter\"\n headingText=\"Donations by quarter\"\n [loading]=\"donations.isLoading()\"\n>\n @if (donations.value(); as data) {\n <sky-chart-bar>\n <sky-chart-axis-category\n labelText=\"Quarter\"\n [categories]=\"data.categories\"\n />\n <sky-chart-axis-value format=\"currency\" labelText=\"Donations\" />\n <sky-chart-bar-series labelText=\"Donations\" [values]=\"data.values\" />\n </sky-chart-bar>\n }\n</sky-chart>\n" }]
|
|
4980
|
+
}], propDecorators: { delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }] } });
|
|
4981
|
+
/**
|
|
4982
|
+
* Simulates a server-side call that returns the chart's data after a delay.
|
|
4983
|
+
*/
|
|
4984
|
+
async function fetchDonationsFromServer(delay) {
|
|
4985
|
+
await new Promise((resolve) => setTimeout(resolve, delay));
|
|
4986
|
+
return {
|
|
4987
|
+
categories: ['Q1', 'Q2', 'Q3', 'Q4'],
|
|
4988
|
+
values: [45, 72, 38, 90],
|
|
4989
|
+
};
|
|
4990
|
+
}
|
|
4991
|
+
|
|
4992
|
+
/**
|
|
4993
|
+
* @title Basic bar chart
|
|
4994
|
+
*/
|
|
4995
|
+
class ChartsChartBarBasicExample {
|
|
4996
|
+
constructor() {
|
|
4997
|
+
this.years = [2010, 2011, 2012, 2013, 2014, 2015, 2016];
|
|
4998
|
+
this.acquisitions = [10, 20, 15, 25, 22, 30, 28];
|
|
4999
|
+
}
|
|
5000
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ChartsChartBarBasicExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5001
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: ChartsChartBarBasicExample, isStandalone: true, selector: "app-chart-bar-basic-example", ngImport: i0, template: "<sky-chart\n data-sky-id=\"acquisitions-by-year\"\n headingText=\"Acquisitions by year\"\n>\n <sky-chart-bar data-sky-id=\"acquisitions-bar\">\n <sky-chart-axis-category labelText=\"Year\" [categories]=\"years\" />\n <sky-chart-axis-value labelText=\"Acquisitions\" />\n <sky-chart-bar-series\n labelText=\"Acquisitions by year\"\n [values]=\"acquisitions\"\n />\n </sky-chart-bar>\n</sky-chart>\n", dependencies: [{ kind: "component", type: SkyChart, selector: "sky-chart", inputs: ["headingHidden", "headingLevel", "headingStyle", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "loading", "subheadingText"] }, { kind: "component", type: SkyChartAxisCategory, selector: "sky-chart-axis-category", inputs: ["categories", "labelHidden", "labelText"] }, { kind: "component", type: SkyChartAxisValue, selector: "sky-chart-axis-value", inputs: ["currencyCode", "digits", "format", "labelHidden", "labelText", "max", "min", "scaleType"] }, { kind: "component", type: SkyChartBar, selector: "sky-chart-bar", inputs: ["orientation", "seriesLayout"] }, { kind: "component", type: SkyChartBarSeries, selector: "sky-chart-bar-series", inputs: ["labelText", "stackId", "values"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5002
|
+
}
|
|
5003
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ChartsChartBarBasicExample, decorators: [{
|
|
5004
|
+
type: Component,
|
|
5005
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-chart-bar-basic-example', imports: [
|
|
5006
|
+
SkyChart,
|
|
5007
|
+
SkyChartAxisCategory,
|
|
5008
|
+
SkyChartAxisValue,
|
|
5009
|
+
SkyChartBar,
|
|
5010
|
+
SkyChartBarSeries,
|
|
5011
|
+
], template: "<sky-chart\n data-sky-id=\"acquisitions-by-year\"\n headingText=\"Acquisitions by year\"\n>\n <sky-chart-bar data-sky-id=\"acquisitions-bar\">\n <sky-chart-axis-category labelText=\"Year\" [categories]=\"years\" />\n <sky-chart-axis-value labelText=\"Acquisitions\" />\n <sky-chart-bar-series\n labelText=\"Acquisitions by year\"\n [values]=\"acquisitions\"\n />\n </sky-chart-bar>\n</sky-chart>\n" }]
|
|
5012
|
+
}] });
|
|
5013
|
+
|
|
5014
|
+
/**
|
|
5015
|
+
* @title Floating bar chart with multiple series
|
|
5016
|
+
*/
|
|
5017
|
+
class ChartsChartBarFloatingMultipleSeriesExample {
|
|
5018
|
+
constructor() {
|
|
5019
|
+
this.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'];
|
|
5020
|
+
this.anchorage = [
|
|
5021
|
+
[-13, -6],
|
|
5022
|
+
[-11, -3],
|
|
5023
|
+
[-7, 1],
|
|
5024
|
+
[0, 8],
|
|
5025
|
+
[6, 14],
|
|
5026
|
+
[11, 18],
|
|
5027
|
+
];
|
|
5028
|
+
this.asheville = [
|
|
5029
|
+
[-3, 8],
|
|
5030
|
+
[-1, 11],
|
|
5031
|
+
[3, 15],
|
|
5032
|
+
[7, 20],
|
|
5033
|
+
[12, 24],
|
|
5034
|
+
[16, 28],
|
|
5035
|
+
];
|
|
5036
|
+
}
|
|
5037
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ChartsChartBarFloatingMultipleSeriesExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5038
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: ChartsChartBarFloatingMultipleSeriesExample, isStandalone: true, selector: "app-chart-bar-floating-multiple-series-example", ngImport: i0, template: "<sky-chart\n data-sky-id=\"temperature-range-by-city\"\n headingText=\"Temperature range by month and city\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category labelText=\"Month\" [categories]=\"months\" />\n <sky-chart-axis-value labelText=\"Temperature (\u00B0C)\" />\n <sky-chart-bar-series labelText=\"Anchorage\" [values]=\"anchorage\" />\n <sky-chart-bar-series labelText=\"Asheville\" [values]=\"asheville\" />\n </sky-chart-bar>\n</sky-chart>\n", dependencies: [{ kind: "component", type: SkyChart, selector: "sky-chart", inputs: ["headingHidden", "headingLevel", "headingStyle", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "loading", "subheadingText"] }, { kind: "component", type: SkyChartAxisCategory, selector: "sky-chart-axis-category", inputs: ["categories", "labelHidden", "labelText"] }, { kind: "component", type: SkyChartAxisValue, selector: "sky-chart-axis-value", inputs: ["currencyCode", "digits", "format", "labelHidden", "labelText", "max", "min", "scaleType"] }, { kind: "component", type: SkyChartBar, selector: "sky-chart-bar", inputs: ["orientation", "seriesLayout"] }, { kind: "component", type: SkyChartBarSeries, selector: "sky-chart-bar-series", inputs: ["labelText", "stackId", "values"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5039
|
+
}
|
|
5040
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ChartsChartBarFloatingMultipleSeriesExample, decorators: [{
|
|
5041
|
+
type: Component,
|
|
5042
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-chart-bar-floating-multiple-series-example', imports: [
|
|
5043
|
+
SkyChart,
|
|
5044
|
+
SkyChartAxisCategory,
|
|
5045
|
+
SkyChartAxisValue,
|
|
5046
|
+
SkyChartBar,
|
|
5047
|
+
SkyChartBarSeries,
|
|
5048
|
+
], template: "<sky-chart\n data-sky-id=\"temperature-range-by-city\"\n headingText=\"Temperature range by month and city\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category labelText=\"Month\" [categories]=\"months\" />\n <sky-chart-axis-value labelText=\"Temperature (\u00B0C)\" />\n <sky-chart-bar-series labelText=\"Anchorage\" [values]=\"anchorage\" />\n <sky-chart-bar-series labelText=\"Asheville\" [values]=\"asheville\" />\n </sky-chart-bar>\n</sky-chart>\n" }]
|
|
5049
|
+
}] });
|
|
5050
|
+
|
|
5051
|
+
/**
|
|
5052
|
+
* @title Floating bar chart (value ranges)
|
|
5053
|
+
*/
|
|
5054
|
+
class ChartsChartBarFloatingExample {
|
|
5055
|
+
constructor() {
|
|
5056
|
+
this.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'];
|
|
5057
|
+
this.temperatureRanges = [
|
|
5058
|
+
[-2, 5],
|
|
5059
|
+
[0, 8],
|
|
5060
|
+
[4, 14],
|
|
5061
|
+
[9, 19],
|
|
5062
|
+
[14, 24],
|
|
5063
|
+
[18, 28],
|
|
5064
|
+
];
|
|
5065
|
+
}
|
|
5066
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ChartsChartBarFloatingExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5067
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: ChartsChartBarFloatingExample, isStandalone: true, selector: "app-chart-bar-floating-example", ngImport: i0, template: "<sky-chart\n data-sky-id=\"temperature-range\"\n headingText=\"Temperature range by month\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category labelText=\"Month\" [categories]=\"months\" />\n <sky-chart-axis-value labelText=\"Temperature (\u00B0C)\" />\n <sky-chart-bar-series\n labelText=\"Temperature range\"\n [values]=\"temperatureRanges\"\n />\n </sky-chart-bar>\n</sky-chart>\n", dependencies: [{ kind: "component", type: SkyChart, selector: "sky-chart", inputs: ["headingHidden", "headingLevel", "headingStyle", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "loading", "subheadingText"] }, { kind: "component", type: SkyChartAxisCategory, selector: "sky-chart-axis-category", inputs: ["categories", "labelHidden", "labelText"] }, { kind: "component", type: SkyChartAxisValue, selector: "sky-chart-axis-value", inputs: ["currencyCode", "digits", "format", "labelHidden", "labelText", "max", "min", "scaleType"] }, { kind: "component", type: SkyChartBar, selector: "sky-chart-bar", inputs: ["orientation", "seriesLayout"] }, { kind: "component", type: SkyChartBarSeries, selector: "sky-chart-bar-series", inputs: ["labelText", "stackId", "values"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5068
|
+
}
|
|
5069
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ChartsChartBarFloatingExample, decorators: [{
|
|
5070
|
+
type: Component,
|
|
5071
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-chart-bar-floating-example', imports: [
|
|
5072
|
+
SkyChart,
|
|
5073
|
+
SkyChartAxisCategory,
|
|
5074
|
+
SkyChartAxisValue,
|
|
5075
|
+
SkyChartBar,
|
|
5076
|
+
SkyChartBarSeries,
|
|
5077
|
+
], template: "<sky-chart\n data-sky-id=\"temperature-range\"\n headingText=\"Temperature range by month\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category labelText=\"Month\" [categories]=\"months\" />\n <sky-chart-axis-value labelText=\"Temperature (\u00B0C)\" />\n <sky-chart-bar-series\n labelText=\"Temperature range\"\n [values]=\"temperatureRanges\"\n />\n </sky-chart-bar>\n</sky-chart>\n" }]
|
|
5078
|
+
}] });
|
|
5079
|
+
|
|
5080
|
+
/**
|
|
5081
|
+
* @title Bar chart with grouped, stacked series
|
|
5082
|
+
*/
|
|
5083
|
+
class ChartsChartBarGroupedStackedExample {
|
|
5084
|
+
constructor() {
|
|
5085
|
+
this.months = [
|
|
5086
|
+
'January',
|
|
5087
|
+
'February',
|
|
5088
|
+
'March',
|
|
5089
|
+
'April',
|
|
5090
|
+
'May',
|
|
5091
|
+
'June',
|
|
5092
|
+
'July',
|
|
5093
|
+
];
|
|
5094
|
+
this.westInStore = [38, 6, 54, 69, 88, 13, 87];
|
|
5095
|
+
this.westOnline = [37, 84, 28, 84, 97, 22, 63];
|
|
5096
|
+
this.eastInStore = [24, 51, 40, 33, 62, 45, 51];
|
|
5097
|
+
this.eastOnline = [55, 30, 47, 58, 41, 66, 39];
|
|
5098
|
+
}
|
|
5099
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ChartsChartBarGroupedStackedExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5100
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: ChartsChartBarGroupedStackedExample, isStandalone: true, selector: "app-chart-bar-grouped-stacked-example", ngImport: i0, template: "<sky-chart\n data-sky-id=\"monthly-sales-by-region\"\n headingText=\"Monthly sales by region\"\n>\n <sky-chart-bar seriesLayout=\"stacked\">\n <sky-chart-axis-category labelText=\"Month\" [categories]=\"months\" />\n <sky-chart-axis-value labelText=\"Sales\" />\n <sky-chart-bar-series\n labelText=\"West in store\"\n stackId=\"West\"\n [values]=\"westInStore\"\n />\n <sky-chart-bar-series\n labelText=\"West online\"\n stackId=\"West\"\n [values]=\"westOnline\"\n />\n <sky-chart-bar-series\n labelText=\"East in store\"\n stackId=\"East\"\n [values]=\"eastInStore\"\n />\n <sky-chart-bar-series\n labelText=\"East online\"\n stackId=\"East\"\n [values]=\"eastOnline\"\n />\n </sky-chart-bar>\n</sky-chart>\n", dependencies: [{ kind: "component", type: SkyChart, selector: "sky-chart", inputs: ["headingHidden", "headingLevel", "headingStyle", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "loading", "subheadingText"] }, { kind: "component", type: SkyChartAxisCategory, selector: "sky-chart-axis-category", inputs: ["categories", "labelHidden", "labelText"] }, { kind: "component", type: SkyChartAxisValue, selector: "sky-chart-axis-value", inputs: ["currencyCode", "digits", "format", "labelHidden", "labelText", "max", "min", "scaleType"] }, { kind: "component", type: SkyChartBar, selector: "sky-chart-bar", inputs: ["orientation", "seriesLayout"] }, { kind: "component", type: SkyChartBarSeries, selector: "sky-chart-bar-series", inputs: ["labelText", "stackId", "values"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5101
|
+
}
|
|
5102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ChartsChartBarGroupedStackedExample, decorators: [{
|
|
5103
|
+
type: Component,
|
|
5104
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-chart-bar-grouped-stacked-example', imports: [
|
|
5105
|
+
SkyChart,
|
|
5106
|
+
SkyChartAxisCategory,
|
|
5107
|
+
SkyChartAxisValue,
|
|
5108
|
+
SkyChartBar,
|
|
5109
|
+
SkyChartBarSeries,
|
|
5110
|
+
], template: "<sky-chart\n data-sky-id=\"monthly-sales-by-region\"\n headingText=\"Monthly sales by region\"\n>\n <sky-chart-bar seriesLayout=\"stacked\">\n <sky-chart-axis-category labelText=\"Month\" [categories]=\"months\" />\n <sky-chart-axis-value labelText=\"Sales\" />\n <sky-chart-bar-series\n labelText=\"West in store\"\n stackId=\"West\"\n [values]=\"westInStore\"\n />\n <sky-chart-bar-series\n labelText=\"West online\"\n stackId=\"West\"\n [values]=\"westOnline\"\n />\n <sky-chart-bar-series\n labelText=\"East in store\"\n stackId=\"East\"\n [values]=\"eastInStore\"\n />\n <sky-chart-bar-series\n labelText=\"East online\"\n stackId=\"East\"\n [values]=\"eastOnline\"\n />\n </sky-chart-bar>\n</sky-chart>\n" }]
|
|
5111
|
+
}] });
|
|
5112
|
+
|
|
5113
|
+
/**
|
|
5114
|
+
* @title Bar chart with hidden axis labels
|
|
5115
|
+
*/
|
|
5116
|
+
class ChartsChartBarHiddenLabelsExample {
|
|
5117
|
+
constructor() {
|
|
5118
|
+
this.years = [2010, 2011, 2012, 2013, 2014, 2015, 2016];
|
|
5119
|
+
this.acquisitions = [10, 20, 15, 25, 22, 30, 28];
|
|
5120
|
+
}
|
|
5121
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ChartsChartBarHiddenLabelsExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5122
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: ChartsChartBarHiddenLabelsExample, isStandalone: true, selector: "app-chart-bar-hidden-labels-example", ngImport: i0, template: "<sky-chart\n data-sky-id=\"acquisitions-by-year-minimal\"\n headingText=\"Acquisitions by year\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category\n labelHidden\n labelText=\"Year\"\n [categories]=\"years\"\n />\n <sky-chart-axis-value labelHidden labelText=\"Acquisitions\" />\n <sky-chart-bar-series\n labelText=\"Acquisitions by year\"\n [values]=\"acquisitions\"\n />\n </sky-chart-bar>\n</sky-chart>\n", dependencies: [{ kind: "component", type: SkyChart, selector: "sky-chart", inputs: ["headingHidden", "headingLevel", "headingStyle", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "loading", "subheadingText"] }, { kind: "component", type: SkyChartAxisCategory, selector: "sky-chart-axis-category", inputs: ["categories", "labelHidden", "labelText"] }, { kind: "component", type: SkyChartAxisValue, selector: "sky-chart-axis-value", inputs: ["currencyCode", "digits", "format", "labelHidden", "labelText", "max", "min", "scaleType"] }, { kind: "component", type: SkyChartBar, selector: "sky-chart-bar", inputs: ["orientation", "seriesLayout"] }, { kind: "component", type: SkyChartBarSeries, selector: "sky-chart-bar-series", inputs: ["labelText", "stackId", "values"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5123
|
+
}
|
|
5124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ChartsChartBarHiddenLabelsExample, decorators: [{
|
|
5125
|
+
type: Component,
|
|
5126
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-chart-bar-hidden-labels-example', imports: [
|
|
5127
|
+
SkyChart,
|
|
5128
|
+
SkyChartAxisCategory,
|
|
5129
|
+
SkyChartAxisValue,
|
|
5130
|
+
SkyChartBar,
|
|
5131
|
+
SkyChartBarSeries,
|
|
5132
|
+
], template: "<sky-chart\n data-sky-id=\"acquisitions-by-year-minimal\"\n headingText=\"Acquisitions by year\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category\n labelHidden\n labelText=\"Year\"\n [categories]=\"years\"\n />\n <sky-chart-axis-value labelHidden labelText=\"Acquisitions\" />\n <sky-chart-bar-series\n labelText=\"Acquisitions by year\"\n [values]=\"acquisitions\"\n />\n </sky-chart-bar>\n</sky-chart>\n" }]
|
|
5133
|
+
}] });
|
|
5134
|
+
|
|
5135
|
+
/**
|
|
5136
|
+
* @title Horizontal bar chart
|
|
5137
|
+
*/
|
|
5138
|
+
class ChartsChartBarHorizontalExample {
|
|
5139
|
+
constructor() {
|
|
5140
|
+
this.regions = [
|
|
5141
|
+
'Northeast',
|
|
5142
|
+
'Southeast',
|
|
5143
|
+
'Midwest',
|
|
5144
|
+
'Southwest',
|
|
5145
|
+
'West',
|
|
5146
|
+
];
|
|
5147
|
+
this.sales = [42, 58, 35, 47, 63];
|
|
5148
|
+
}
|
|
5149
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ChartsChartBarHorizontalExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5150
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: ChartsChartBarHorizontalExample, isStandalone: true, selector: "app-chart-bar-horizontal-example", ngImport: i0, template: "<sky-chart data-sky-id=\"sales-by-region\" headingText=\"Sales by region\">\n <sky-chart-bar orientation=\"horizontal\">\n <sky-chart-axis-category labelText=\"Region\" [categories]=\"regions\" />\n <sky-chart-axis-value labelText=\"Sales\" />\n <sky-chart-bar-series labelText=\"Sales\" [values]=\"sales\" />\n </sky-chart-bar>\n</sky-chart>\n", dependencies: [{ kind: "component", type: SkyChart, selector: "sky-chart", inputs: ["headingHidden", "headingLevel", "headingStyle", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "loading", "subheadingText"] }, { kind: "component", type: SkyChartAxisCategory, selector: "sky-chart-axis-category", inputs: ["categories", "labelHidden", "labelText"] }, { kind: "component", type: SkyChartAxisValue, selector: "sky-chart-axis-value", inputs: ["currencyCode", "digits", "format", "labelHidden", "labelText", "max", "min", "scaleType"] }, { kind: "component", type: SkyChartBar, selector: "sky-chart-bar", inputs: ["orientation", "seriesLayout"] }, { kind: "component", type: SkyChartBarSeries, selector: "sky-chart-bar-series", inputs: ["labelText", "stackId", "values"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5151
|
+
}
|
|
5152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ChartsChartBarHorizontalExample, decorators: [{
|
|
5153
|
+
type: Component,
|
|
5154
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-chart-bar-horizontal-example', imports: [
|
|
5155
|
+
SkyChart,
|
|
5156
|
+
SkyChartAxisCategory,
|
|
5157
|
+
SkyChartAxisValue,
|
|
5158
|
+
SkyChartBar,
|
|
5159
|
+
SkyChartBarSeries,
|
|
5160
|
+
], template: "<sky-chart data-sky-id=\"sales-by-region\" headingText=\"Sales by region\">\n <sky-chart-bar orientation=\"horizontal\">\n <sky-chart-axis-category labelText=\"Region\" [categories]=\"regions\" />\n <sky-chart-axis-value labelText=\"Sales\" />\n <sky-chart-bar-series labelText=\"Sales\" [values]=\"sales\" />\n </sky-chart-bar>\n</sky-chart>\n" }]
|
|
5161
|
+
}] });
|
|
5162
|
+
|
|
5163
|
+
/**
|
|
5164
|
+
* @title Bar chart with a logarithmic value scale
|
|
5165
|
+
*/
|
|
5166
|
+
class ChartsChartBarLogarithmicExample {
|
|
5167
|
+
constructor() {
|
|
5168
|
+
this.categories = [
|
|
5169
|
+
'Cat-1',
|
|
5170
|
+
'Cat-2',
|
|
5171
|
+
'Cat-3',
|
|
5172
|
+
'Cat-4',
|
|
5173
|
+
'Cat-5',
|
|
5174
|
+
'Cat-6',
|
|
5175
|
+
'Cat-7',
|
|
5176
|
+
'Cat-8',
|
|
5177
|
+
'Cat-9',
|
|
5178
|
+
'Cat-10',
|
|
5179
|
+
'Cat-11',
|
|
5180
|
+
'Cat-12',
|
|
5181
|
+
'Cat-13',
|
|
5182
|
+
];
|
|
5183
|
+
this.values = [
|
|
5184
|
+
1, 1.1, 1.9, 2.1, 4.9, 5.1, 9, 11, 90, 110, 900, 1100, 9000,
|
|
5185
|
+
];
|
|
5186
|
+
}
|
|
5187
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ChartsChartBarLogarithmicExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5188
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: ChartsChartBarLogarithmicExample, isStandalone: true, selector: "app-chart-bar-logarithmic-example", ngImport: i0, template: "<sky-chart\n data-sky-id=\"spending-by-category\"\n headingText=\"Spending by category\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category labelText=\"Category\" [categories]=\"categories\" />\n <sky-chart-axis-value labelText=\"Spending\" scaleType=\"logarithmic\" />\n <sky-chart-bar-series labelText=\"Spending\" [values]=\"values\" />\n </sky-chart-bar>\n</sky-chart>\n", dependencies: [{ kind: "component", type: SkyChart, selector: "sky-chart", inputs: ["headingHidden", "headingLevel", "headingStyle", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "loading", "subheadingText"] }, { kind: "component", type: SkyChartAxisCategory, selector: "sky-chart-axis-category", inputs: ["categories", "labelHidden", "labelText"] }, { kind: "component", type: SkyChartAxisValue, selector: "sky-chart-axis-value", inputs: ["currencyCode", "digits", "format", "labelHidden", "labelText", "max", "min", "scaleType"] }, { kind: "component", type: SkyChartBar, selector: "sky-chart-bar", inputs: ["orientation", "seriesLayout"] }, { kind: "component", type: SkyChartBarSeries, selector: "sky-chart-bar-series", inputs: ["labelText", "stackId", "values"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5189
|
+
}
|
|
5190
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ChartsChartBarLogarithmicExample, decorators: [{
|
|
5191
|
+
type: Component,
|
|
5192
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-chart-bar-logarithmic-example', imports: [
|
|
5193
|
+
SkyChart,
|
|
5194
|
+
SkyChartAxisCategory,
|
|
5195
|
+
SkyChartAxisValue,
|
|
5196
|
+
SkyChartBar,
|
|
5197
|
+
SkyChartBarSeries,
|
|
5198
|
+
], template: "<sky-chart\n data-sky-id=\"spending-by-category\"\n headingText=\"Spending by category\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category labelText=\"Category\" [categories]=\"categories\" />\n <sky-chart-axis-value labelText=\"Spending\" scaleType=\"logarithmic\" />\n <sky-chart-bar-series labelText=\"Spending\" [values]=\"values\" />\n </sky-chart-bar>\n</sky-chart>\n" }]
|
|
5199
|
+
}] });
|
|
5200
|
+
|
|
5201
|
+
/**
|
|
5202
|
+
* @title Bar chart with multiple series (grouped bars)
|
|
5203
|
+
*/
|
|
5204
|
+
class ChartsChartBarMultipleSeriesExample {
|
|
5205
|
+
constructor() {
|
|
5206
|
+
this.years = [2010, 2011, 2012, 2013, 2014, 2015, 2016];
|
|
5207
|
+
this.actual = [10, 20, 15, 25, 22, 30, 28];
|
|
5208
|
+
this.target = [12, 18, 20, 22, 26, 28, 32];
|
|
5209
|
+
}
|
|
5210
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ChartsChartBarMultipleSeriesExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5211
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: ChartsChartBarMultipleSeriesExample, isStandalone: true, selector: "app-chart-bar-multiple-series-example", ngImport: i0, template: "<sky-chart data-sky-id=\"actual-vs-target\" headingText=\"Actual vs. target\">\n <sky-chart-bar>\n <sky-chart-axis-category labelText=\"Year\" [categories]=\"years\" />\n <sky-chart-axis-value labelText=\"Acquisitions\" />\n <sky-chart-bar-series labelText=\"Actual\" [values]=\"actual\" />\n <sky-chart-bar-series labelText=\"Target\" [values]=\"target\" />\n </sky-chart-bar>\n</sky-chart>\n", dependencies: [{ kind: "component", type: SkyChart, selector: "sky-chart", inputs: ["headingHidden", "headingLevel", "headingStyle", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "loading", "subheadingText"] }, { kind: "component", type: SkyChartAxisCategory, selector: "sky-chart-axis-category", inputs: ["categories", "labelHidden", "labelText"] }, { kind: "component", type: SkyChartAxisValue, selector: "sky-chart-axis-value", inputs: ["currencyCode", "digits", "format", "labelHidden", "labelText", "max", "min", "scaleType"] }, { kind: "component", type: SkyChartBar, selector: "sky-chart-bar", inputs: ["orientation", "seriesLayout"] }, { kind: "component", type: SkyChartBarSeries, selector: "sky-chart-bar-series", inputs: ["labelText", "stackId", "values"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5212
|
+
}
|
|
5213
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ChartsChartBarMultipleSeriesExample, decorators: [{
|
|
5214
|
+
type: Component,
|
|
5215
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-chart-bar-multiple-series-example', imports: [
|
|
5216
|
+
SkyChart,
|
|
5217
|
+
SkyChartAxisCategory,
|
|
5218
|
+
SkyChartAxisValue,
|
|
5219
|
+
SkyChartBar,
|
|
5220
|
+
SkyChartBarSeries,
|
|
5221
|
+
], template: "<sky-chart data-sky-id=\"actual-vs-target\" headingText=\"Actual vs. target\">\n <sky-chart-bar>\n <sky-chart-axis-category labelText=\"Year\" [categories]=\"years\" />\n <sky-chart-axis-value labelText=\"Acquisitions\" />\n <sky-chart-bar-series labelText=\"Actual\" [values]=\"actual\" />\n <sky-chart-bar-series labelText=\"Target\" [values]=\"target\" />\n </sky-chart-bar>\n</sky-chart>\n" }]
|
|
5222
|
+
}] });
|
|
5223
|
+
|
|
5224
|
+
/**
|
|
5225
|
+
* @title Stacked bar chart
|
|
5226
|
+
*/
|
|
5227
|
+
class ChartsChartBarStackedExample {
|
|
5228
|
+
constructor() {
|
|
5229
|
+
this.months = [
|
|
5230
|
+
'January',
|
|
5231
|
+
'February',
|
|
5232
|
+
'March',
|
|
5233
|
+
'April',
|
|
5234
|
+
'May',
|
|
5235
|
+
'June',
|
|
5236
|
+
'July',
|
|
5237
|
+
];
|
|
5238
|
+
this.online = [38, 6, 54, 69, 88, 13, 87];
|
|
5239
|
+
this.inStore = [37, 84, 28, 84, 97, 22, 63];
|
|
5240
|
+
this.phone = [86, 4, 7, 85, 8, 51, 30];
|
|
5241
|
+
}
|
|
5242
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ChartsChartBarStackedExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5243
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: ChartsChartBarStackedExample, isStandalone: true, selector: "app-chart-bar-stacked-example", ngImport: i0, template: "<sky-chart data-sky-id=\"monthly-sales\" headingText=\"Monthly sales\">\n <sky-chart-bar seriesLayout=\"stacked\">\n <sky-chart-axis-category labelText=\"Month\" [categories]=\"months\" />\n <sky-chart-axis-value labelText=\"Sales\" />\n <sky-chart-bar-series labelText=\"In store\" [values]=\"inStore\" />\n <sky-chart-bar-series labelText=\"Online\" [values]=\"online\" />\n <sky-chart-bar-series labelText=\"Phone\" [values]=\"phone\" />\n </sky-chart-bar>\n</sky-chart>\n", dependencies: [{ kind: "component", type: SkyChart, selector: "sky-chart", inputs: ["headingHidden", "headingLevel", "headingStyle", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "loading", "subheadingText"] }, { kind: "component", type: SkyChartAxisCategory, selector: "sky-chart-axis-category", inputs: ["categories", "labelHidden", "labelText"] }, { kind: "component", type: SkyChartAxisValue, selector: "sky-chart-axis-value", inputs: ["currencyCode", "digits", "format", "labelHidden", "labelText", "max", "min", "scaleType"] }, { kind: "component", type: SkyChartBar, selector: "sky-chart-bar", inputs: ["orientation", "seriesLayout"] }, { kind: "component", type: SkyChartBarSeries, selector: "sky-chart-bar-series", inputs: ["labelText", "stackId", "values"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5244
|
+
}
|
|
5245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ChartsChartBarStackedExample, decorators: [{
|
|
5246
|
+
type: Component,
|
|
5247
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-chart-bar-stacked-example', imports: [
|
|
5248
|
+
SkyChart,
|
|
5249
|
+
SkyChartAxisCategory,
|
|
5250
|
+
SkyChartAxisValue,
|
|
5251
|
+
SkyChartBar,
|
|
5252
|
+
SkyChartBarSeries,
|
|
5253
|
+
], template: "<sky-chart data-sky-id=\"monthly-sales\" headingText=\"Monthly sales\">\n <sky-chart-bar seriesLayout=\"stacked\">\n <sky-chart-axis-category labelText=\"Month\" [categories]=\"months\" />\n <sky-chart-axis-value labelText=\"Sales\" />\n <sky-chart-bar-series labelText=\"In store\" [values]=\"inStore\" />\n <sky-chart-bar-series labelText=\"Online\" [values]=\"online\" />\n <sky-chart-bar-series labelText=\"Phone\" [values]=\"phone\" />\n </sky-chart-bar>\n</sky-chart>\n" }]
|
|
5254
|
+
}] });
|
|
5255
|
+
|
|
5256
|
+
/**
|
|
5257
|
+
* @title Bar chart with fixed value bounds
|
|
5258
|
+
*/
|
|
5259
|
+
class ChartsChartBarValueBoundsExample {
|
|
5260
|
+
constructor() {
|
|
5261
|
+
this.months = [
|
|
5262
|
+
'January',
|
|
5263
|
+
'February',
|
|
5264
|
+
'March',
|
|
5265
|
+
'April',
|
|
5266
|
+
'May',
|
|
5267
|
+
'June',
|
|
5268
|
+
'July',
|
|
5269
|
+
];
|
|
5270
|
+
// Percent values are fractional, so 0.85 displays as 85%. Pinning the axis
|
|
5271
|
+
// to [0, 1] keeps the scale at 0–100% regardless of the plotted values.
|
|
5272
|
+
this.goalCompletion = [
|
|
5273
|
+
0.62, 0.71, 0.68, 0.79, 0.85, 0.91, 0.88,
|
|
5274
|
+
];
|
|
5275
|
+
}
|
|
5276
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ChartsChartBarValueBoundsExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5277
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: ChartsChartBarValueBoundsExample, isStandalone: true, selector: "app-chart-bar-value-bounds-example", ngImport: i0, template: "<sky-chart\n data-sky-id=\"goal-completion\"\n headingText=\"Goal completion by month\"\n subheadingText=\"The percent value axis is pinned to 0\u2013100% with min and max, so the scale stays fixed regardless of the plotted values.\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category\n labelHidden\n labelText=\"Month\"\n [categories]=\"months\"\n />\n <sky-chart-axis-value\n format=\"percent\"\n labelText=\"Goal completion\"\n max=\"1\"\n min=\"0\"\n />\n <sky-chart-bar-series\n labelText=\"Goal completion\"\n [values]=\"goalCompletion\"\n />\n </sky-chart-bar>\n</sky-chart>\n", dependencies: [{ kind: "component", type: SkyChart, selector: "sky-chart", inputs: ["headingHidden", "headingLevel", "headingStyle", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "loading", "subheadingText"] }, { kind: "component", type: SkyChartAxisCategory, selector: "sky-chart-axis-category", inputs: ["categories", "labelHidden", "labelText"] }, { kind: "component", type: SkyChartAxisValue, selector: "sky-chart-axis-value", inputs: ["currencyCode", "digits", "format", "labelHidden", "labelText", "max", "min", "scaleType"] }, { kind: "component", type: SkyChartBar, selector: "sky-chart-bar", inputs: ["orientation", "seriesLayout"] }, { kind: "component", type: SkyChartBarSeries, selector: "sky-chart-bar-series", inputs: ["labelText", "stackId", "values"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5278
|
+
}
|
|
5279
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ChartsChartBarValueBoundsExample, decorators: [{
|
|
5280
|
+
type: Component,
|
|
5281
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-chart-bar-value-bounds-example', imports: [
|
|
5282
|
+
SkyChart,
|
|
5283
|
+
SkyChartAxisCategory,
|
|
5284
|
+
SkyChartAxisValue,
|
|
5285
|
+
SkyChartBar,
|
|
5286
|
+
SkyChartBarSeries,
|
|
5287
|
+
], template: "<sky-chart\n data-sky-id=\"goal-completion\"\n headingText=\"Goal completion by month\"\n subheadingText=\"The percent value axis is pinned to 0\u2013100% with min and max, so the scale stays fixed regardless of the plotted values.\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category\n labelHidden\n labelText=\"Month\"\n [categories]=\"months\"\n />\n <sky-chart-axis-value\n format=\"percent\"\n labelText=\"Goal completion\"\n max=\"1\"\n min=\"0\"\n />\n <sky-chart-bar-series\n labelText=\"Goal completion\"\n [values]=\"goalCompletion\"\n />\n </sky-chart-bar>\n</sky-chart>\n" }]
|
|
5288
|
+
}] });
|
|
5289
|
+
|
|
5290
|
+
/**
|
|
5291
|
+
* @title Bar chart value formats (number, currency, and percent)
|
|
5292
|
+
*/
|
|
5293
|
+
class ChartsChartBarValueFormatExample {
|
|
5294
|
+
constructor() {
|
|
5295
|
+
this.months = [
|
|
5296
|
+
'January',
|
|
5297
|
+
'February',
|
|
5298
|
+
'March',
|
|
5299
|
+
'April',
|
|
5300
|
+
'May',
|
|
5301
|
+
'June',
|
|
5302
|
+
'July',
|
|
5303
|
+
];
|
|
5304
|
+
this.acquisitions = [10, 20, 15, 25, 22, 30, 28];
|
|
5305
|
+
this.revenue = [1000, 2200, 1800, 2600, 2400, 3100, 2900];
|
|
5306
|
+
// Percent values are fractional, so 0.25 displays as 25%.
|
|
5307
|
+
this.conversionRate = [0.1, 0.14, 0.12, 0.18, 0.16, 0.22, 0.2];
|
|
5308
|
+
}
|
|
5309
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ChartsChartBarValueFormatExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5310
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: ChartsChartBarValueFormatExample, isStandalone: true, selector: "app-chart-bar-value-format-example", ngImport: i0, template: "<sky-chart\n class=\"sky-theme-margin-bottom-l\"\n data-sky-id=\"acquisitions-by-month\"\n headingText=\"Acquisitions by month\"\n subheadingText=\"Number format: values display as plain, locale-aware numbers.\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category\n labelHidden\n labelText=\"Month\"\n [categories]=\"months\"\n />\n <sky-chart-axis-value labelText=\"Acquisitions\" />\n <sky-chart-bar-series labelText=\"Acquisitions\" [values]=\"acquisitions\" />\n </sky-chart-bar>\n</sky-chart>\n\n<sky-chart\n class=\"sky-theme-margin-bottom-l\"\n data-sky-id=\"revenue-by-month\"\n headingText=\"Revenue by month\"\n subheadingText=\"Currency format: values display with the specified currency code (EUR).\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category\n labelHidden\n labelText=\"Month\"\n [categories]=\"months\"\n />\n <sky-chart-axis-value\n currencyCode=\"EUR\"\n digits=\"0\"\n format=\"currency\"\n labelText=\"Revenue\"\n />\n <sky-chart-bar-series labelText=\"Revenue\" [values]=\"revenue\" />\n </sky-chart-bar>\n</sky-chart>\n\n<sky-chart\n data-sky-id=\"conversion-rate-by-month\"\n headingText=\"Conversion rate by month\"\n subheadingText=\"Percent format: fractional values display as percentages, so 0.25 shows as 25%.\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category labelText=\"Month\" [categories]=\"months\" />\n <sky-chart-axis-value format=\"percent\" labelText=\"Conversion\" />\n <sky-chart-bar-series\n labelText=\"Conversion rate\"\n [values]=\"conversionRate\"\n />\n </sky-chart-bar>\n</sky-chart>\n", dependencies: [{ kind: "component", type: SkyChart, selector: "sky-chart", inputs: ["headingHidden", "headingLevel", "headingStyle", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "loading", "subheadingText"] }, { kind: "component", type: SkyChartAxisCategory, selector: "sky-chart-axis-category", inputs: ["categories", "labelHidden", "labelText"] }, { kind: "component", type: SkyChartAxisValue, selector: "sky-chart-axis-value", inputs: ["currencyCode", "digits", "format", "labelHidden", "labelText", "max", "min", "scaleType"] }, { kind: "component", type: SkyChartBar, selector: "sky-chart-bar", inputs: ["orientation", "seriesLayout"] }, { kind: "component", type: SkyChartBarSeries, selector: "sky-chart-bar-series", inputs: ["labelText", "stackId", "values"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5311
|
+
}
|
|
5312
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ChartsChartBarValueFormatExample, decorators: [{
|
|
5313
|
+
type: Component,
|
|
5314
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-chart-bar-value-format-example', imports: [
|
|
5315
|
+
SkyChart,
|
|
5316
|
+
SkyChartAxisCategory,
|
|
5317
|
+
SkyChartAxisValue,
|
|
5318
|
+
SkyChartBar,
|
|
5319
|
+
SkyChartBarSeries,
|
|
5320
|
+
], template: "<sky-chart\n class=\"sky-theme-margin-bottom-l\"\n data-sky-id=\"acquisitions-by-month\"\n headingText=\"Acquisitions by month\"\n subheadingText=\"Number format: values display as plain, locale-aware numbers.\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category\n labelHidden\n labelText=\"Month\"\n [categories]=\"months\"\n />\n <sky-chart-axis-value labelText=\"Acquisitions\" />\n <sky-chart-bar-series labelText=\"Acquisitions\" [values]=\"acquisitions\" />\n </sky-chart-bar>\n</sky-chart>\n\n<sky-chart\n class=\"sky-theme-margin-bottom-l\"\n data-sky-id=\"revenue-by-month\"\n headingText=\"Revenue by month\"\n subheadingText=\"Currency format: values display with the specified currency code (EUR).\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category\n labelHidden\n labelText=\"Month\"\n [categories]=\"months\"\n />\n <sky-chart-axis-value\n currencyCode=\"EUR\"\n digits=\"0\"\n format=\"currency\"\n labelText=\"Revenue\"\n />\n <sky-chart-bar-series labelText=\"Revenue\" [values]=\"revenue\" />\n </sky-chart-bar>\n</sky-chart>\n\n<sky-chart\n data-sky-id=\"conversion-rate-by-month\"\n headingText=\"Conversion rate by month\"\n subheadingText=\"Percent format: fractional values display as percentages, so 0.25 shows as 25%.\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category labelText=\"Month\" [categories]=\"months\" />\n <sky-chart-axis-value format=\"percent\" labelText=\"Conversion\" />\n <sky-chart-bar-series\n labelText=\"Conversion rate\"\n [values]=\"conversionRate\"\n />\n </sky-chart-bar>\n</sky-chart>\n" }]
|
|
5321
|
+
}] });
|
|
5322
|
+
|
|
4953
5323
|
function isColorpickerOutput$2(value) {
|
|
4954
5324
|
return !!(value && typeof value === 'object' && 'rgba' in value);
|
|
4955
5325
|
}
|
|
@@ -13023,7 +13393,7 @@ let RecordPageContentComponent$1 = class RecordPageContentComponent {
|
|
|
13023
13393
|
];
|
|
13024
13394
|
}
|
|
13025
13395
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RecordPageContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
13026
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: RecordPageContentComponent, isStandalone: true, selector: "app-record-page-content", ngImport: i0, template: "<sky-fluid-grid gutterSize=\"medium\" [disableMargin]=\"true\">\n <sky-row>\n <sky-column [screenMedium]=\"4\" [screenSmall]=\"12\">\n <sky-box class=\"sky-theme-margin-bottom-xl\" headingText=\"Details\">\n <sky-box-controls>\n <button\n aria-label=\"Edit button for details\"\n class=\"sky-btn sky-btn-icon-borderless\"\n type=\"button\"\n >\n <sky-icon iconName=\"edit\" />\n </button>\n </sky-box-controls>\n <sky-box-content>\n <sky-description-list mode=\"vertical\">\n @for (recordDetail of recordDetails; track recordDetail.detail) {\n <sky-description-list-content>\n <sky-description-list-term>\n {{ recordDetail.detail }}\n </sky-description-list-term>\n <sky-description-list-description>\n {{ recordDetail.info }}\n </sky-description-list-description>\n </sky-description-list-content>\n }\n </sky-description-list>\n </sky-box-content>\n </sky-box>\n </sky-column>\n <sky-column [screenMedium]=\"4\" [screenSmall]=\"12\">\n <sky-box class=\"sky-theme-margin-bottom-xl\" headingText=\"Payments\">\n <sky-box-content>\n <div class=\"box-2-content\">\n <div class=\"box-2-actuals\">\n <h3 class=\"sky-theme-font-heading-4\">Actuals</h3>\n @for (\n actual of actualPayments;\n track actual.category;\n let i = $index\n ) {\n <sky-key-info\n [ngClass]=\"{\n 'sky-margin-stacked-lg': i < actualPayments.length - 1\n }\"\n >\n <sky-key-info-value class=\"sky-theme-font-display-3\">\n {{ actual.value }}\n </sky-key-info-value>\n <sky-key-info-label>{{ actual.category }}</sky-key-info-label>\n </sky-key-info>\n }\n </div>\n <div class=\"box-2-projected\">\n <h3 class=\"sky-theme-font-heading-4\">Projected</h3>\n @for (\n projected of projectedPayments;\n track projected;\n let i = $index\n ) {\n <sky-key-info\n [ngClass]=\"{\n 'sky-margin-stacked-lg': i < projectedPayments.length - 1\n }\"\n >\n <sky-key-info-value class=\"sky-theme-font-display-3\">\n {{ projected.value }}\n </sky-key-info-value>\n <sky-key-info-label>\n {{ projected.category }}\n </sky-key-info-label>\n </sky-key-info>\n }\n </div>\n </div>\n </sky-box-content>\n </sky-box>\n </sky-column>\n <sky-column [screenMedium]=\"4\" [screenSmall]=\"12\">\n <sky-box headingText=\"Recent activity\">\n <sky-box-content>\n <sky-repeater>\n @for (activity of recentActivity; track activity.
|
|
13396
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: RecordPageContentComponent, isStandalone: true, selector: "app-record-page-content", ngImport: i0, template: "<sky-fluid-grid gutterSize=\"medium\" [disableMargin]=\"true\">\n <sky-row>\n <sky-column [screenMedium]=\"4\" [screenSmall]=\"12\">\n <sky-box class=\"sky-theme-margin-bottom-xl\" headingText=\"Details\">\n <sky-box-controls>\n <button\n aria-label=\"Edit button for details\"\n class=\"sky-btn sky-btn-icon-borderless\"\n type=\"button\"\n >\n <sky-icon iconName=\"edit\" />\n </button>\n </sky-box-controls>\n <sky-box-content>\n <sky-description-list mode=\"vertical\">\n @for (recordDetail of recordDetails; track recordDetail.detail) {\n <sky-description-list-content>\n <sky-description-list-term>\n {{ recordDetail.detail }}\n </sky-description-list-term>\n <sky-description-list-description>\n {{ recordDetail.info }}\n </sky-description-list-description>\n </sky-description-list-content>\n }\n </sky-description-list>\n </sky-box-content>\n </sky-box>\n </sky-column>\n <sky-column [screenMedium]=\"4\" [screenSmall]=\"12\">\n <sky-box class=\"sky-theme-margin-bottom-xl\" headingText=\"Payments\">\n <sky-box-content>\n <div class=\"box-2-content\">\n <div class=\"box-2-actuals\">\n <h3 class=\"sky-theme-font-heading-4\">Actuals</h3>\n @for (\n actual of actualPayments;\n track actual.category;\n let i = $index\n ) {\n <sky-key-info\n [ngClass]=\"{\n 'sky-margin-stacked-lg': i < actualPayments.length - 1\n }\"\n >\n <sky-key-info-value class=\"sky-theme-font-display-3\">\n {{ actual.value }}\n </sky-key-info-value>\n <sky-key-info-label>{{ actual.category }}</sky-key-info-label>\n </sky-key-info>\n }\n </div>\n <div class=\"box-2-projected\">\n <h3 class=\"sky-theme-font-heading-4\">Projected</h3>\n @for (\n projected of projectedPayments;\n track projected;\n let i = $index\n ) {\n <sky-key-info\n [ngClass]=\"{\n 'sky-margin-stacked-lg': i < projectedPayments.length - 1\n }\"\n >\n <sky-key-info-value class=\"sky-theme-font-display-3\">\n {{ projected.value }}\n </sky-key-info-value>\n <sky-key-info-label>\n {{ projected.category }}\n </sky-key-info-label>\n </sky-key-info>\n }\n </div>\n </div>\n </sky-box-content>\n </sky-box>\n </sky-column>\n <sky-column [screenMedium]=\"4\" [screenSmall]=\"12\">\n <sky-box headingText=\"Recent activity\">\n <sky-box-content>\n <sky-repeater>\n @for (activity of recentActivity; track activity.date) {\n <sky-repeater-item>\n <sky-repeater-item-content>\n <div class=\"sky-theme-margin-bottom-xs\">\n {{ activity.activity }}\n </div>\n <div class=\"sky-theme-font-body-deemphasized-m\">\n {{ activity.date }}\n </div>\n </sky-repeater-item-content>\n </sky-repeater-item>\n }\n </sky-repeater>\n </sky-box-content>\n </sky-box>\n </sky-column>\n </sky-row>\n</sky-fluid-grid>\n", styles: [".box-2-content{display:flex}.box-2-content div{display:flex;flex-direction:column;flex-grow:1}.box-2-content .box-2-actuals{margin-right:60px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: SkyBoxModule }, { kind: "component", type: i1$5.λ41, selector: "sky-box", inputs: ["headingText", "headingHidden", "headingLevel", "headingStyle", "helpPopoverContent", "helpPopoverTitle", "helpKey", "ariaLabel", "ariaLabelledBy", "ariaRole"] }, { kind: "component", type: i1$5.λ43, selector: "sky-box-content" }, { kind: "component", type: i1$5.λ44, selector: "sky-box-controls" }, { kind: "ngmodule", type: SkyDescriptionListModule }, { kind: "component", type: i1$5.λ18, selector: "sky-description-list", inputs: ["defaultDescription", "listItemWidth", "mode"] }, { kind: "component", type: i1$5.λ21, selector: "sky-description-list-content", inputs: ["helpKey", "helpPopoverContent", "helpPopoverTitle"] }, { kind: "component", type: i1$5.λ19, selector: "sky-description-list-term" }, { kind: "component", type: i1$5.λ20, selector: "sky-description-list-description" }, { kind: "ngmodule", type: SkyFluidGridModule }, { kind: "component", type: i1$5.λ23, selector: "sky-row", inputs: ["reverseColumnOrder"] }, { kind: "component", type: i1$5.λ24, selector: "sky-column", inputs: ["screenXSmall", "screenSmall", "screenMedium", "screenLarge"] }, { kind: "component", type: i1$5.λ22, selector: "sky-fluid-grid", inputs: ["disableMargin", "gutterSize"] }, { kind: "ngmodule", type: SkyIconModule }, { kind: "component", type: i1$9.λ1, selector: "sky-icon", inputs: ["iconName", "variant", "iconSize"] }, { kind: "ngmodule", type: SkyKeyInfoModule }, { kind: "component", type: i1.λ8, selector: "sky-key-info", inputs: ["helpKey", "helpPopoverContent", "helpPopoverTitle", "layout"] }, { kind: "component", type: i1.λ6, selector: "sky-key-info-label" }, { kind: "component", type: i1.λ7, selector: "sky-key-info-value" }, { kind: "ngmodule", type: SkyRepeaterModule }, { kind: "component", type: i4.λ11, selector: "sky-repeater", inputs: ["activeIndex", "ariaLabel", "reorderable", "expandMode"], outputs: ["activeIndexChange", "orderChange"] }, { kind: "component", type: i4.λ10, selector: "sky-repeater-item", inputs: ["disabled", "itemName", "inlineFormConfig", "inlineFormTemplate", "isExpanded", "isSelected", "reorderable", "selectable", "showInlineForm", "tag"], outputs: ["collapse", "expand", "inlineFormClose", "isSelectedChange"] }, { kind: "component", type: i4.λ8, selector: "sky-repeater-item-content" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
13027
13397
|
};
|
|
13028
13398
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RecordPageContentComponent$1, decorators: [{
|
|
13029
13399
|
type: Component,
|
|
@@ -13035,7 +13405,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
13035
13405
|
SkyIconModule,
|
|
13036
13406
|
SkyKeyInfoModule,
|
|
13037
13407
|
SkyRepeaterModule,
|
|
13038
|
-
], template: "<sky-fluid-grid gutterSize=\"medium\" [disableMargin]=\"true\">\n <sky-row>\n <sky-column [screenMedium]=\"4\" [screenSmall]=\"12\">\n <sky-box class=\"sky-theme-margin-bottom-xl\" headingText=\"Details\">\n <sky-box-controls>\n <button\n aria-label=\"Edit button for details\"\n class=\"sky-btn sky-btn-icon-borderless\"\n type=\"button\"\n >\n <sky-icon iconName=\"edit\" />\n </button>\n </sky-box-controls>\n <sky-box-content>\n <sky-description-list mode=\"vertical\">\n @for (recordDetail of recordDetails; track recordDetail.detail) {\n <sky-description-list-content>\n <sky-description-list-term>\n {{ recordDetail.detail }}\n </sky-description-list-term>\n <sky-description-list-description>\n {{ recordDetail.info }}\n </sky-description-list-description>\n </sky-description-list-content>\n }\n </sky-description-list>\n </sky-box-content>\n </sky-box>\n </sky-column>\n <sky-column [screenMedium]=\"4\" [screenSmall]=\"12\">\n <sky-box class=\"sky-theme-margin-bottom-xl\" headingText=\"Payments\">\n <sky-box-content>\n <div class=\"box-2-content\">\n <div class=\"box-2-actuals\">\n <h3 class=\"sky-theme-font-heading-4\">Actuals</h3>\n @for (\n actual of actualPayments;\n track actual.category;\n let i = $index\n ) {\n <sky-key-info\n [ngClass]=\"{\n 'sky-margin-stacked-lg': i < actualPayments.length - 1\n }\"\n >\n <sky-key-info-value class=\"sky-theme-font-display-3\">\n {{ actual.value }}\n </sky-key-info-value>\n <sky-key-info-label>{{ actual.category }}</sky-key-info-label>\n </sky-key-info>\n }\n </div>\n <div class=\"box-2-projected\">\n <h3 class=\"sky-theme-font-heading-4\">Projected</h3>\n @for (\n projected of projectedPayments;\n track projected;\n let i = $index\n ) {\n <sky-key-info\n [ngClass]=\"{\n 'sky-margin-stacked-lg': i < projectedPayments.length - 1\n }\"\n >\n <sky-key-info-value class=\"sky-theme-font-display-3\">\n {{ projected.value }}\n </sky-key-info-value>\n <sky-key-info-label>\n {{ projected.category }}\n </sky-key-info-label>\n </sky-key-info>\n }\n </div>\n </div>\n </sky-box-content>\n </sky-box>\n </sky-column>\n <sky-column [screenMedium]=\"4\" [screenSmall]=\"12\">\n <sky-box headingText=\"Recent activity\">\n <sky-box-content>\n <sky-repeater>\n @for (activity of recentActivity; track activity.
|
|
13408
|
+
], template: "<sky-fluid-grid gutterSize=\"medium\" [disableMargin]=\"true\">\n <sky-row>\n <sky-column [screenMedium]=\"4\" [screenSmall]=\"12\">\n <sky-box class=\"sky-theme-margin-bottom-xl\" headingText=\"Details\">\n <sky-box-controls>\n <button\n aria-label=\"Edit button for details\"\n class=\"sky-btn sky-btn-icon-borderless\"\n type=\"button\"\n >\n <sky-icon iconName=\"edit\" />\n </button>\n </sky-box-controls>\n <sky-box-content>\n <sky-description-list mode=\"vertical\">\n @for (recordDetail of recordDetails; track recordDetail.detail) {\n <sky-description-list-content>\n <sky-description-list-term>\n {{ recordDetail.detail }}\n </sky-description-list-term>\n <sky-description-list-description>\n {{ recordDetail.info }}\n </sky-description-list-description>\n </sky-description-list-content>\n }\n </sky-description-list>\n </sky-box-content>\n </sky-box>\n </sky-column>\n <sky-column [screenMedium]=\"4\" [screenSmall]=\"12\">\n <sky-box class=\"sky-theme-margin-bottom-xl\" headingText=\"Payments\">\n <sky-box-content>\n <div class=\"box-2-content\">\n <div class=\"box-2-actuals\">\n <h3 class=\"sky-theme-font-heading-4\">Actuals</h3>\n @for (\n actual of actualPayments;\n track actual.category;\n let i = $index\n ) {\n <sky-key-info\n [ngClass]=\"{\n 'sky-margin-stacked-lg': i < actualPayments.length - 1\n }\"\n >\n <sky-key-info-value class=\"sky-theme-font-display-3\">\n {{ actual.value }}\n </sky-key-info-value>\n <sky-key-info-label>{{ actual.category }}</sky-key-info-label>\n </sky-key-info>\n }\n </div>\n <div class=\"box-2-projected\">\n <h3 class=\"sky-theme-font-heading-4\">Projected</h3>\n @for (\n projected of projectedPayments;\n track projected;\n let i = $index\n ) {\n <sky-key-info\n [ngClass]=\"{\n 'sky-margin-stacked-lg': i < projectedPayments.length - 1\n }\"\n >\n <sky-key-info-value class=\"sky-theme-font-display-3\">\n {{ projected.value }}\n </sky-key-info-value>\n <sky-key-info-label>\n {{ projected.category }}\n </sky-key-info-label>\n </sky-key-info>\n }\n </div>\n </div>\n </sky-box-content>\n </sky-box>\n </sky-column>\n <sky-column [screenMedium]=\"4\" [screenSmall]=\"12\">\n <sky-box headingText=\"Recent activity\">\n <sky-box-content>\n <sky-repeater>\n @for (activity of recentActivity; track activity.date) {\n <sky-repeater-item>\n <sky-repeater-item-content>\n <div class=\"sky-theme-margin-bottom-xs\">\n {{ activity.activity }}\n </div>\n <div class=\"sky-theme-font-body-deemphasized-m\">\n {{ activity.date }}\n </div>\n </sky-repeater-item-content>\n </sky-repeater-item>\n }\n </sky-repeater>\n </sky-box-content>\n </sky-box>\n </sky-column>\n </sky-row>\n</sky-fluid-grid>\n", styles: [".box-2-content{display:flex}.box-2-content div{display:flex;flex-direction:column;flex-grow:1}.box-2-content .box-2-actuals{margin-right:60px}\n"] }]
|
|
13039
13409
|
}] });
|
|
13040
13410
|
|
|
13041
13411
|
/**
|
|
@@ -14917,5 +15287,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
14917
15287
|
* Generated bundle index. Do not edit.
|
|
14918
15288
|
*/
|
|
14919
15289
|
|
|
14920
|
-
export { ActionBarsSummaryActionBarBasicExampleComponent, ActionBarsSummaryActionBarErrorExampleComponent, ActionBarsSummaryActionBarModalExampleComponent, ActionBarsSummaryActionBarTabExampleComponent, AgGridDataEntryGridBasicExampleComponent, AgGridDataEntryGridDataManagerAddedExampleComponent, AgGridDataEntryGridFocusExampleComponent, AgGridDataEntryGridInlineHelpExampleComponent, AgGridDataGridBasicExampleComponent, AgGridDataGridBasicMultiselectExampleComponent, AgGridDataGridDataManagerExampleComponent, AgGridDataGridDataManagerMultiselectExampleComponent, AgGridDataGridInlineHelpExampleComponent, AgGridDataGridPagingExampleComponent, AgGridDataGridTemplateRefColumnExampleComponent, AgGridDataGridTopScrollExampleComponent, AngularTreeComponentAngularTreeBasicExampleComponent, AngularTreeComponentAngularTreeHelpKeyExampleComponent, AngularTreeComponentAngularTreePreselectedNodesExampleComponent, AutonumericCurrencyExampleComponent, AutonumericInternationalFormattingExampleComponent, AutonumericOptionsProviderExampleComponent, AutonumericPresetExampleComponent, AvatarExampleComponent, ColorpickerBasicExampleComponent, ColorpickerHelpKeyExampleComponent, ColorpickerProgrammaticExampleComponent, CoreIdExampleComponent, CoreMediaQueryBasicExampleComponent, CoreMediaQueryResponsiveHostExampleComponent, CoreNumericBasicExampleComponent, DataGridBasicExampleComponent, DataGridLoadingExampleComponent, DataGridPagingExampleComponent, DataGridSortingExampleComponent, DataManagerBasicExampleComponent, DatetimeDatePipeBasicExampleComponent, DatetimeDateRangePickerBasicExampleComponent, DatetimeDateRangePickerCustomCalculatorExampleComponent, DatetimeDateRangePickerHelpKeyExampleComponent, DatetimeDatepickerBasicExampleComponent, DatetimeDatepickerCustomDatesExampleComponent, DatetimeDatepickerFuzzyExampleComponent, DatetimeTimepickerBasicExampleComponent, ErrorsErrorEmbeddedExampleComponent, ErrorsErrorModalExampleComponent, FilterBarLookupExampleComponent, FilterBarModalExampleComponent, FilterBarSelectableExampleComponent, FlyoutBasicExampleComponent, FlyoutCustomHeadersExampleComponent, FormsCharacterCountExampleComponent, FormsCheckboxBasicExampleComponent, FormsCheckboxHelpKeyExampleComponent, FormsCheckboxIconGroupExampleComponent, FormsFieldGroupBasicExampleComponent, FormsFieldGroupHelpKeyExampleComponent, FormsFileAttachmentBasicExampleComponent, FormsFileAttachmentHelpKeyExampleComponent, FormsFileDropBasicExampleComponent, FormsFileDropHelpKeyExampleComponent, FormsInputBoxBasicExampleComponent, FormsInputBoxWithCustomFormErrorsExampleComponent, FormsRadioHelpKeyExampleComponent, FormsRadioIconExampleComponent, FormsRadioStandardExampleComponent, FormsSelectionBoxCheckboxExampleComponent, FormsSelectionBoxRadioExampleComponent, FormsToggleSwitchBasicExampleComponent, FormsToggleSwitchHelpKeyExampleComponent, HelpInlineActionClickExampleComponent, HelpInlineHelpKeyExampleComponent, HelpInlinePopoverExampleComponent, IconBasicExampleComponent, IconIconButtonExampleComponent, IndicatorsAlertBasicExampleComponent, IndicatorsIllustrationBasicExampleComponent, IndicatorsKeyInfoBasicExampleComponent, IndicatorsKeyInfoHelpKeyExampleComponent, IndicatorsLabelBasicExampleComponent, IndicatorsStatusIndicatorBasicExampleComponent, IndicatorsStatusIndicatorHelpKeyExampleComponent, IndicatorsTextHighlightBasicExampleComponent, IndicatorsTokensBasicExampleComponent, IndicatorsTokensCustomExampleComponent, IndicatorsWaitElementExampleComponent, IndicatorsWaitPageExampleComponent, InlineFormBasicExampleComponent, InlineFormCustomButtonsExampleComponent, InlineFormRepeatersExampleComponent, LayoutActionButtonBasicExampleComponent, LayoutActionButtonPermalinkExampleComponent, LayoutBackToTopInfiniteScrollExampleComponent, LayoutBackToTopRepeaterExampleComponent, LayoutBoxBasicExampleComponent, LayoutBoxHelpKeyExampleComponent, LayoutCardBasicExampleComponent, LayoutDefinitionListBasicExampleComponent, LayoutDescriptionListHelpKeyExampleComponent, LayoutDescriptionListHorizontalExampleComponent, LayoutDescriptionListInlineHelpExampleComponent, LayoutDescriptionListLongDescriptionExampleComponent, LayoutDescriptionListVerticalExampleComponent, LayoutFluidGridExampleComponent, LayoutFormatExampleComponent, LayoutInlineDeleteCustomExampleComponent, LayoutInlineDeleteRepeaterExampleComponent, LayoutPageSummaryBasicExampleComponent, LayoutTextExpandInlineExampleComponent, LayoutTextExpandModalExampleComponent, LayoutTextExpandNewlineExampleComponent, LayoutTextExpandRepeaterExampleComponent, LayoutToolbarBasicExampleComponent, LayoutToolbarSectionedExampleComponent, ListsFilterInlineExampleComponent, ListsInfiniteScrollRepeaterExampleComponent, ListsListSummaryBasicExampleComponent, ListsPagingBasicExampleComponent, ListsPagingWithContentExampleComponent, ListsRepeaterAddRemoveExampleComponent, ListsRepeaterBasicExampleComponent, ListsRepeaterInlineFormExampleComponent, ListsSortBasicExampleComponent, LookupAddItemExampleComponent, LookupAutocompleteAdvancedExampleComponent, LookupAutocompleteAnyValueExampleComponent, LookupAutocompleteBasicExampleComponent, LookupAutocompleteCustomSearchExampleComponent, LookupAutocompleteSearchFiltersExampleComponent, LookupCountryFieldBasicExampleComponent, LookupCustomPickerExampleComponent, LookupMultiSelectExampleComponent, LookupResultTemplatesExampleComponent, LookupSearchBasicExampleComponent, LookupSelectionModalAddItemExampleComponent, LookupSelectionModalBasicExampleComponent, LookupSingleSelectExampleComponent, ModalsConfirmBasicWithControllerExampleComponent, ModalsConfirmBasicWithHarnessExampleComponent, ModalsModalBasicWithBannerExampleComponent, ModalsModalBasicWithControllerExampleComponent, ModalsModalBasicWithHarnessExampleComponent, ModalsModalBasicWithHarnessHelpKeyExampleComponent, ModalsModalWithErrorExampleComponent, NavbarExampleComponent, PagesActionHubExampleComponent, PagesPageDataManagerSplitViewFitLayoutExampleComponent, PagesPageHomePageBlocksLayoutExampleComponent, PagesPageListPageListLayoutExampleComponent, PagesPageListPageTabsLayoutExampleComponent, PagesPageRecordPageBlocksLayoutExampleComponent, PagesPageRecordPageTabsLayoutExampleComponent, PagesPageSplitViewPageFitLayoutExampleComponent, PhoneFieldBasicExampleComponent, PopoversDropdownBasicExampleComponent, PopoversPopoverBasicExampleComponent, PopoversPopoverProgrammaticExampleComponent, ProgressIndicatorPassiveIndicatorBasicExampleComponent, ProgressIndicatorWaterfallIndicatorBasicExampleComponent, ProgressIndicatorWizardBasicExampleComponent, RouterHrefBasicExampleComponent, SplitViewBasicExampleComponent, SplitViewPageBoundExampleComponent, TabsDynamicAddCloseExampleComponent, TabsDynamicExampleComponent, TabsSectionedFormModalExampleComponent, TabsStaticAddCloseExampleComponent, TabsStaticExampleComponent, TabsVerticalTabsBasicExampleComponent, TabsVerticalTabsGroupedExampleComponent, TabsVerticalTabsMixedExampleComponent, TabsWizardBasicExampleComponent, TextEditorExampleComponent, TextEditorHelpKeyExampleComponent, TextEditorRichTextDisplayExampleComponent, TilesBasicExampleComponent, ToastBasicExampleComponent, ToastCustomComponentExampleComponent, ValidationEmailValidationControlValidatorExampleComponent, ValidationEmailValidationDirectiveExampleComponent, ValidationUrlValidationControlValidatorExampleComponent, ValidationUrlValidationDirectiveExampleComponent };
|
|
15290
|
+
export { ActionBarsSummaryActionBarBasicExampleComponent, ActionBarsSummaryActionBarErrorExampleComponent, ActionBarsSummaryActionBarModalExampleComponent, ActionBarsSummaryActionBarTabExampleComponent, AgGridDataEntryGridBasicExampleComponent, AgGridDataEntryGridDataManagerAddedExampleComponent, AgGridDataEntryGridFocusExampleComponent, AgGridDataEntryGridInlineHelpExampleComponent, AgGridDataGridBasicExampleComponent, AgGridDataGridBasicMultiselectExampleComponent, AgGridDataGridDataManagerExampleComponent, AgGridDataGridDataManagerMultiselectExampleComponent, AgGridDataGridInlineHelpExampleComponent, AgGridDataGridPagingExampleComponent, AgGridDataGridTemplateRefColumnExampleComponent, AgGridDataGridTopScrollExampleComponent, AngularTreeComponentAngularTreeBasicExampleComponent, AngularTreeComponentAngularTreeHelpKeyExampleComponent, AngularTreeComponentAngularTreePreselectedNodesExampleComponent, AutonumericCurrencyExampleComponent, AutonumericInternationalFormattingExampleComponent, AutonumericOptionsProviderExampleComponent, AutonumericPresetExampleComponent, AvatarExampleComponent, ChartsChartBarAsyncExample, ChartsChartBarBasicExample, ChartsChartBarFloatingExample, ChartsChartBarFloatingMultipleSeriesExample, ChartsChartBarGroupedStackedExample, ChartsChartBarHiddenLabelsExample, ChartsChartBarHorizontalExample, ChartsChartBarLogarithmicExample, ChartsChartBarMultipleSeriesExample, ChartsChartBarStackedExample, ChartsChartBarValueBoundsExample, ChartsChartBarValueFormatExample, ColorpickerBasicExampleComponent, ColorpickerHelpKeyExampleComponent, ColorpickerProgrammaticExampleComponent, CoreIdExampleComponent, CoreMediaQueryBasicExampleComponent, CoreMediaQueryResponsiveHostExampleComponent, CoreNumericBasicExampleComponent, DataGridBasicExampleComponent, DataGridLoadingExampleComponent, DataGridPagingExampleComponent, DataGridSortingExampleComponent, DataManagerBasicExampleComponent, DatetimeDatePipeBasicExampleComponent, DatetimeDateRangePickerBasicExampleComponent, DatetimeDateRangePickerCustomCalculatorExampleComponent, DatetimeDateRangePickerHelpKeyExampleComponent, DatetimeDatepickerBasicExampleComponent, DatetimeDatepickerCustomDatesExampleComponent, DatetimeDatepickerFuzzyExampleComponent, DatetimeTimepickerBasicExampleComponent, ErrorsErrorEmbeddedExampleComponent, ErrorsErrorModalExampleComponent, FilterBarLookupExampleComponent, FilterBarModalExampleComponent, FilterBarSelectableExampleComponent, FlyoutBasicExampleComponent, FlyoutCustomHeadersExampleComponent, FormsCharacterCountExampleComponent, FormsCheckboxBasicExampleComponent, FormsCheckboxHelpKeyExampleComponent, FormsCheckboxIconGroupExampleComponent, FormsFieldGroupBasicExampleComponent, FormsFieldGroupHelpKeyExampleComponent, FormsFileAttachmentBasicExampleComponent, FormsFileAttachmentHelpKeyExampleComponent, FormsFileDropBasicExampleComponent, FormsFileDropHelpKeyExampleComponent, FormsInputBoxBasicExampleComponent, FormsInputBoxWithCustomFormErrorsExampleComponent, FormsRadioHelpKeyExampleComponent, FormsRadioIconExampleComponent, FormsRadioStandardExampleComponent, FormsSelectionBoxCheckboxExampleComponent, FormsSelectionBoxRadioExampleComponent, FormsToggleSwitchBasicExampleComponent, FormsToggleSwitchHelpKeyExampleComponent, HelpInlineActionClickExampleComponent, HelpInlineHelpKeyExampleComponent, HelpInlinePopoverExampleComponent, IconBasicExampleComponent, IconIconButtonExampleComponent, IndicatorsAlertBasicExampleComponent, IndicatorsIllustrationBasicExampleComponent, IndicatorsKeyInfoBasicExampleComponent, IndicatorsKeyInfoHelpKeyExampleComponent, IndicatorsLabelBasicExampleComponent, IndicatorsStatusIndicatorBasicExampleComponent, IndicatorsStatusIndicatorHelpKeyExampleComponent, IndicatorsTextHighlightBasicExampleComponent, IndicatorsTokensBasicExampleComponent, IndicatorsTokensCustomExampleComponent, IndicatorsWaitElementExampleComponent, IndicatorsWaitPageExampleComponent, InlineFormBasicExampleComponent, InlineFormCustomButtonsExampleComponent, InlineFormRepeatersExampleComponent, LayoutActionButtonBasicExampleComponent, LayoutActionButtonPermalinkExampleComponent, LayoutBackToTopInfiniteScrollExampleComponent, LayoutBackToTopRepeaterExampleComponent, LayoutBoxBasicExampleComponent, LayoutBoxHelpKeyExampleComponent, LayoutCardBasicExampleComponent, LayoutDefinitionListBasicExampleComponent, LayoutDescriptionListHelpKeyExampleComponent, LayoutDescriptionListHorizontalExampleComponent, LayoutDescriptionListInlineHelpExampleComponent, LayoutDescriptionListLongDescriptionExampleComponent, LayoutDescriptionListVerticalExampleComponent, LayoutFluidGridExampleComponent, LayoutFormatExampleComponent, LayoutInlineDeleteCustomExampleComponent, LayoutInlineDeleteRepeaterExampleComponent, LayoutPageSummaryBasicExampleComponent, LayoutTextExpandInlineExampleComponent, LayoutTextExpandModalExampleComponent, LayoutTextExpandNewlineExampleComponent, LayoutTextExpandRepeaterExampleComponent, LayoutToolbarBasicExampleComponent, LayoutToolbarSectionedExampleComponent, ListsFilterInlineExampleComponent, ListsInfiniteScrollRepeaterExampleComponent, ListsListSummaryBasicExampleComponent, ListsPagingBasicExampleComponent, ListsPagingWithContentExampleComponent, ListsRepeaterAddRemoveExampleComponent, ListsRepeaterBasicExampleComponent, ListsRepeaterInlineFormExampleComponent, ListsSortBasicExampleComponent, LookupAddItemExampleComponent, LookupAutocompleteAdvancedExampleComponent, LookupAutocompleteAnyValueExampleComponent, LookupAutocompleteBasicExampleComponent, LookupAutocompleteCustomSearchExampleComponent, LookupAutocompleteSearchFiltersExampleComponent, LookupCountryFieldBasicExampleComponent, LookupCustomPickerExampleComponent, LookupMultiSelectExampleComponent, LookupResultTemplatesExampleComponent, LookupSearchBasicExampleComponent, LookupSelectionModalAddItemExampleComponent, LookupSelectionModalBasicExampleComponent, LookupSingleSelectExampleComponent, ModalsConfirmBasicWithControllerExampleComponent, ModalsConfirmBasicWithHarnessExampleComponent, ModalsModalBasicWithBannerExampleComponent, ModalsModalBasicWithControllerExampleComponent, ModalsModalBasicWithHarnessExampleComponent, ModalsModalBasicWithHarnessHelpKeyExampleComponent, ModalsModalWithErrorExampleComponent, NavbarExampleComponent, PagesActionHubExampleComponent, PagesPageDataManagerSplitViewFitLayoutExampleComponent, PagesPageHomePageBlocksLayoutExampleComponent, PagesPageListPageListLayoutExampleComponent, PagesPageListPageTabsLayoutExampleComponent, PagesPageRecordPageBlocksLayoutExampleComponent, PagesPageRecordPageTabsLayoutExampleComponent, PagesPageSplitViewPageFitLayoutExampleComponent, PhoneFieldBasicExampleComponent, PopoversDropdownBasicExampleComponent, PopoversPopoverBasicExampleComponent, PopoversPopoverProgrammaticExampleComponent, ProgressIndicatorPassiveIndicatorBasicExampleComponent, ProgressIndicatorWaterfallIndicatorBasicExampleComponent, ProgressIndicatorWizardBasicExampleComponent, RouterHrefBasicExampleComponent, SplitViewBasicExampleComponent, SplitViewPageBoundExampleComponent, TabsDynamicAddCloseExampleComponent, TabsDynamicExampleComponent, TabsSectionedFormModalExampleComponent, TabsStaticAddCloseExampleComponent, TabsStaticExampleComponent, TabsVerticalTabsBasicExampleComponent, TabsVerticalTabsGroupedExampleComponent, TabsVerticalTabsMixedExampleComponent, TabsWizardBasicExampleComponent, TextEditorExampleComponent, TextEditorHelpKeyExampleComponent, TextEditorRichTextDisplayExampleComponent, TilesBasicExampleComponent, ToastBasicExampleComponent, ToastCustomComponentExampleComponent, ValidationEmailValidationControlValidatorExampleComponent, ValidationEmailValidationDirectiveExampleComponent, ValidationUrlValidationControlValidatorExampleComponent, ValidationUrlValidationDirectiveExampleComponent };
|
|
14921
15291
|
//# sourceMappingURL=skyux-code-examples.mjs.map
|