From 2517e888091e8f2888fe34092ce31612d510c130 Mon Sep 17 00:00:00 2001 From: tfsbuild Date: Thu, 12 Dec 2024 20:33:25 +0200 Subject: [PATCH] Adding changes from build igniteui-xplat-examples-output+PRs_2024.12.12.2 --- .../annotations-all/src/app.component.html | 3 +- .../src/app.component.html | 3 +- .../src/app.component.html | 3 +- .../annotations-custom/src/app.component.html | 3 +- .../src/app.component.html | 3 +- .../src/app.component.html | 3 +- .../axis-gridlines/src/app.component.html | 22 ++++ .../axis-gridlines/src/app.component.ts | 4 + .../src/app.component.html | 3 +- .../highlighting-mode/src/app.component.html | 3 +- .../src/app.component.html | 3 +- .../.codesandbox/Dockerfile | 1 + .../.codesandbox/tasks.json | 17 +++ .../color-editor-support/.stackblitzrc | 1 + .../toolbar/color-editor-support/angular.json | 120 ++++++++++++++++++ .../toolbar/color-editor-support/package.json | 45 +++++++ .../src/CountryRenewableElectricity.ts | 106 ++++++++++++++++ .../src/app.component.html | 51 ++++++++ .../src/app.component.scss | 21 +++ .../color-editor-support/src/app.component.ts | 61 +++++++++ .../color-editor-support/src/app.module.ts | 39 ++++++ .../src/environments/environment.prod.ts | 3 + .../src/environments/environment.ts | 16 +++ .../color-editor-support/src/index.html | 23 ++++ .../toolbar/color-editor-support/src/main.ts | 15 +++ .../color-editor-support/src/polyfills.ts | 61 +++++++++ .../color-editor-support/src/styles.scss | 9 ++ .../color-editor-support/src/typings.d.ts | 5 + .../color-editor-support/tsconfig.app.json | 10 ++ .../color-editor-support/tsconfig.json | 27 ++++ .../toolbar/color-editor-support/tslint.json | 31 +++++ .../custom-tool/src/app.component.html | 4 +- .../toolbar/custom-tool/src/app.component.ts | 2 + .../overview/.codesandbox/Dockerfile | 1 + .../overview/.codesandbox/tasks.json | 17 +++ .../color-editor/overview/.stackblitzrc | 1 + .../inputs/color-editor/overview/angular.json | 120 ++++++++++++++++++ .../inputs/color-editor/overview/package.json | 43 +++++++ .../overview/src/app.component.html | 8 ++ .../overview/src/app.component.scss | 3 + .../overview/src/app.component.ts | 26 ++++ .../color-editor/overview/src/app.module.ts | 25 ++++ .../src/environments/environment.prod.ts | 3 + .../overview/src/environments/environment.ts | 16 +++ .../color-editor/overview/src/index.html | 23 ++++ .../inputs/color-editor/overview/src/main.ts | 15 +++ .../color-editor/overview/src/polyfills.ts | 61 +++++++++ .../color-editor/overview/src/styles.scss | 9 ++ .../color-editor/overview/src/typings.d.ts | 5 + .../color-editor/overview/tsconfig.app.json | 10 ++ .../color-editor/overview/tsconfig.json | 27 ++++ .../inputs/color-editor/overview/tslint.json | 31 +++++ 52 files changed, 1155 insertions(+), 10 deletions(-) create mode 100644 samples/charts/toolbar/color-editor-support/.codesandbox/Dockerfile create mode 100644 samples/charts/toolbar/color-editor-support/.codesandbox/tasks.json create mode 100644 samples/charts/toolbar/color-editor-support/.stackblitzrc create mode 100644 samples/charts/toolbar/color-editor-support/angular.json create mode 100644 samples/charts/toolbar/color-editor-support/package.json create mode 100644 samples/charts/toolbar/color-editor-support/src/CountryRenewableElectricity.ts create mode 100644 samples/charts/toolbar/color-editor-support/src/app.component.html create mode 100644 samples/charts/toolbar/color-editor-support/src/app.component.scss create mode 100644 samples/charts/toolbar/color-editor-support/src/app.component.ts create mode 100644 samples/charts/toolbar/color-editor-support/src/app.module.ts create mode 100644 samples/charts/toolbar/color-editor-support/src/environments/environment.prod.ts create mode 100644 samples/charts/toolbar/color-editor-support/src/environments/environment.ts create mode 100644 samples/charts/toolbar/color-editor-support/src/index.html create mode 100644 samples/charts/toolbar/color-editor-support/src/main.ts create mode 100644 samples/charts/toolbar/color-editor-support/src/polyfills.ts create mode 100644 samples/charts/toolbar/color-editor-support/src/styles.scss create mode 100644 samples/charts/toolbar/color-editor-support/src/typings.d.ts create mode 100644 samples/charts/toolbar/color-editor-support/tsconfig.app.json create mode 100644 samples/charts/toolbar/color-editor-support/tsconfig.json create mode 100644 samples/charts/toolbar/color-editor-support/tslint.json create mode 100644 samples/inputs/color-editor/overview/.codesandbox/Dockerfile create mode 100644 samples/inputs/color-editor/overview/.codesandbox/tasks.json create mode 100644 samples/inputs/color-editor/overview/.stackblitzrc create mode 100644 samples/inputs/color-editor/overview/angular.json create mode 100644 samples/inputs/color-editor/overview/package.json create mode 100644 samples/inputs/color-editor/overview/src/app.component.html create mode 100644 samples/inputs/color-editor/overview/src/app.component.scss create mode 100644 samples/inputs/color-editor/overview/src/app.component.ts create mode 100644 samples/inputs/color-editor/overview/src/app.module.ts create mode 100644 samples/inputs/color-editor/overview/src/environments/environment.prod.ts create mode 100644 samples/inputs/color-editor/overview/src/environments/environment.ts create mode 100644 samples/inputs/color-editor/overview/src/index.html create mode 100644 samples/inputs/color-editor/overview/src/main.ts create mode 100644 samples/inputs/color-editor/overview/src/polyfills.ts create mode 100644 samples/inputs/color-editor/overview/src/styles.scss create mode 100644 samples/inputs/color-editor/overview/src/typings.d.ts create mode 100644 samples/inputs/color-editor/overview/tsconfig.app.json create mode 100644 samples/inputs/color-editor/overview/tsconfig.json create mode 100644 samples/inputs/color-editor/overview/tslint.json diff --git a/samples/charts/category-chart/annotations-all/src/app.component.html b/samples/charts/category-chart/annotations-all/src/app.component.html index 200d2841b..4c282415c 100644 --- a/samples/charts/category-chart/annotations-all/src/app.component.html +++ b/samples/charts/category-chart/annotations-all/src/app.component.html @@ -65,7 +65,8 @@ finalValueAnnotationsTextColor="white" finalValueAnnotationsPrecision="0" yAxisMaximumValue="35" - yAxisLabelLocation="OutsideRight"> + yAxisLabelLocation="OutsideRight" + isTransitionInEnabled="false"> diff --git a/samples/charts/category-chart/annotations-callouts/src/app.component.html b/samples/charts/category-chart/annotations-callouts/src/app.component.html index 1bdd6320b..4b4b4d910 100644 --- a/samples/charts/category-chart/annotations-callouts/src/app.component.html +++ b/samples/charts/category-chart/annotations-callouts/src/app.component.html @@ -35,7 +35,8 @@ crosshairsAnnotationYAxisPrecision="0" yAxisMaximumValue="35" yAxisTitle="Degrees Celsius" - yAxisLabelLocation="OutsideRight"> + yAxisLabelLocation="OutsideRight" + isTransitionInEnabled="false"> diff --git a/samples/charts/category-chart/annotations-crosshairs/src/app.component.html b/samples/charts/category-chart/annotations-crosshairs/src/app.component.html index 0ae5b42e0..c3ef97e39 100644 --- a/samples/charts/category-chart/annotations-crosshairs/src/app.component.html +++ b/samples/charts/category-chart/annotations-crosshairs/src/app.component.html @@ -47,7 +47,8 @@ crosshairsLineThickness="2" crosshairsSnapToData="true" yAxisMaximumValue="35" - yAxisLabelLocation="OutsideRight"> + yAxisLabelLocation="OutsideRight" + isTransitionInEnabled="false"> diff --git a/samples/charts/category-chart/annotations-custom/src/app.component.html b/samples/charts/category-chart/annotations-custom/src/app.component.html index 5b578c01e..16c10b1f0 100644 --- a/samples/charts/category-chart/annotations-custom/src/app.component.html +++ b/samples/charts/category-chart/annotations-custom/src/app.component.html @@ -38,7 +38,8 @@ calloutsYMemberPath="temperature" calloutsLabelMemberPath="tempInfo" yAxisMaximumValue="35" - yAxisLabelLocation="OutsideRight"> + yAxisLabelLocation="OutsideRight" + isTransitionInEnabled="false"> diff --git a/samples/charts/category-chart/annotations-final-value/src/app.component.html b/samples/charts/category-chart/annotations-final-value/src/app.component.html index 6c309c70f..d96b7b2b3 100644 --- a/samples/charts/category-chart/annotations-final-value/src/app.component.html +++ b/samples/charts/category-chart/annotations-final-value/src/app.component.html @@ -37,7 +37,8 @@ finalValueAnnotationsPrecision="0" crosshairsAnnotationYAxisPrecision="0" yAxisMaximumValue="35" - yAxisLabelLocation="OutsideRight"> + yAxisLabelLocation="OutsideRight" + isTransitionInEnabled="false"> diff --git a/samples/charts/category-chart/annotations-highlighting/src/app.component.html b/samples/charts/category-chart/annotations-highlighting/src/app.component.html index 34636f649..ad9586992 100644 --- a/samples/charts/category-chart/annotations-highlighting/src/app.component.html +++ b/samples/charts/category-chart/annotations-highlighting/src/app.component.html @@ -40,7 +40,8 @@ highlightingBehavior="NearestItemsAndSeries" yAxisMaximumValue="35" yAxisLabelLocation="OutsideRight" - toolTipType="None"> + toolTipType="None" + isTransitionInEnabled="false"> diff --git a/samples/charts/category-chart/axis-gridlines/src/app.component.html b/samples/charts/category-chart/axis-gridlines/src/app.component.html index 315431877..5e97159e4 100644 --- a/samples/charts/category-chart/axis-gridlines/src/app.component.html +++ b/samples/charts/category-chart/axis-gridlines/src/app.component.html @@ -8,6 +8,28 @@ isWrappingEnabled="true" name="propertyEditorPanel1" #propertyEditorPanel1> + + + + + crosshairsDisplayMode="None" + isTransitionInEnabled="false"> diff --git a/samples/charts/category-chart/highlighting-mode/src/app.component.html b/samples/charts/category-chart/highlighting-mode/src/app.component.html index a0dad92d9..42a210971 100644 --- a/samples/charts/category-chart/highlighting-mode/src/app.component.html +++ b/samples/charts/category-chart/highlighting-mode/src/app.component.html @@ -28,7 +28,8 @@ [dataSource]="temperatureAnnotatedData" highlightingMode="BrightenSpecific" toolTipType="None" - crosshairsDisplayMode="None"> + crosshairsDisplayMode="None" + isTransitionInEnabled="false"> diff --git a/samples/charts/category-chart/legend-highlighting/src/app.component.html b/samples/charts/category-chart/legend-highlighting/src/app.component.html index cffac685e..cd2e8bc5d 100644 --- a/samples/charts/category-chart/legend-highlighting/src/app.component.html +++ b/samples/charts/category-chart/legend-highlighting/src/app.component.html @@ -23,7 +23,8 @@ isHorizontalZoomEnabled="false" isVerticalZoomEnabled="false" highlightingMode="Brighten" - legendHighlightingMode="MatchSeries"> + legendHighlightingMode="MatchSeries" + isTransitionInEnabled="false"> diff --git a/samples/charts/toolbar/color-editor-support/.codesandbox/Dockerfile b/samples/charts/toolbar/color-editor-support/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/toolbar/color-editor-support/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/toolbar/color-editor-support/.codesandbox/tasks.json b/samples/charts/toolbar/color-editor-support/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/toolbar/color-editor-support/.codesandbox/tasks.json @@ -0,0 +1,17 @@ +{ + // These tasks will run in order when initializing your CodeSandbox project. + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + // These tasks can be run from CodeSandbox. Running one will open a log in the app. + "tasks": { + "node node_modules/@angular/cli/bin/ng serve -o --disable-host-check": { + "name": "Start Project", + "command": "node node_modules/@angular/cli/bin/ng serve -o --disable-host-check", + "runAtStart": true + } + } +} \ No newline at end of file diff --git a/samples/charts/toolbar/color-editor-support/.stackblitzrc b/samples/charts/toolbar/color-editor-support/.stackblitzrc new file mode 100644 index 000000000..dd44ea00f --- /dev/null +++ b/samples/charts/toolbar/color-editor-support/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/toolbar/color-editor-support/angular.json b/samples/charts/toolbar/color-editor-support/angular.json new file mode 100644 index 000000000..ff6803cf7 --- /dev/null +++ b/samples/charts/toolbar/color-editor-support/angular.json @@ -0,0 +1,120 @@ +{ + "$schema": "./node_modules/@angular/cli/lib/config/schema.json", + "version": 1, + "newProjectRoot": "projects", + "projects": { + "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, + "root": "", + "sourceRoot": "src", + "prefix": "app", + "projectType": "application", + "architect": { + "build": { + "builder": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "dist/demo", + "index": "src/index.html", + "main": "src/main.ts", + "polyfills": [ + "src/polyfills.ts" + ], + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", + "assets": [ + "src/assets" + ], + "styles": [ + "src/styles.scss" + ], + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } + }, + "configurations": { + "production": { + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.prod.ts" + } + ], + "outputHashing": "all", + "budgets": [ + { + "type": "initial", + "maximumWarning": "500kb", + "maximumError": "1mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "2kb", + "maximumError": "4kb" + } + ] + }, + "development": { + "buildOptimizer": false, + "optimization": false, + "vendorChunk": true, + "extractLicenses": false, + "sourceMap": true, + "namedChunks": true + } + }, + "defaultConfiguration": "production" + }, + "serve": { + "builder": "@angular-devkit/build-angular:dev-server", + "configurations": { + "production": { + "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" + } + }, + "defaultConfiguration": "development" + }, + "extract-i18n": { + "builder": "@angular-devkit/build-angular:extract-i18n", + "options": { + "buildTarget": "demo:build" + } + }, + "test": { + "builder": "@angular-devkit/build-angular:karma", + "options": { + "main": "src/test.ts", + "polyfills": "src/polyfills.ts", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", + "styles": [ + "src/styles.scss" + ], + "scripts": [], + "assets": [ + "src/assets" + ], + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } + } + } + } + } + }, + "defaultProject": "demo", + "cli": { + "analytics": false + } +} diff --git a/samples/charts/toolbar/color-editor-support/package.json b/samples/charts/toolbar/color-editor-support/package.json new file mode 100644 index 000000000..36710857f --- /dev/null +++ b/samples/charts/toolbar/color-editor-support/package.json @@ -0,0 +1,45 @@ +{ + "scripts": { + "ng": "ng", + "update": "ng update", + "start": "node --max_old_space_size=12192 node_modules/@angular/cli/bin/ng serve -o", + "build": "node --max_old_space_size=12192 node_modules/@angular/cli/bin/ng build --configuration production", + "lint": "ng lint" + }, + "dependencies": { + "@angular/animations": "18.2.1", + "@angular/common": "18.2.1", + "@angular/compiler": "18.2.1", + "@angular/core": "18.2.1", + "@angular/forms": "18.2.1", + "@angular/platform-browser": "18.2.1", + "@angular/platform-browser-dynamic": "18.2.1", + "@types/hammerjs": "2.0.40", + "classlist.js": "1.1.20150312", + "hammerjs": "2.0.8", + "igniteui-angular-charts": "18.1.0", + "igniteui-angular-core": "18.1.0", + "igniteui-angular-inputs": "18.1.0", + "igniteui-angular-layouts": "18.1.0", + "intl": "1.2.5", + "jszip": "3.8.0", + "rxjs": "7.8.1", + "tslib": "2.6.1", + "web-animations-js": "2.3.2", + "zone.js": "~0.14.4" + }, + "devDependencies": { + "@angular/cli": "18.2.1", + "@angular/compiler-cli": "18.2.1", + "@angular/language-service": "18.2.1", + "@angular-devkit/build-angular": "18.2.1", + "@types/node": "18.17.0", + "codelyzer": "6.0.2", + "jasmine-core": "5.1.1", + "jasmine-spec-reporter": "~4.2.1", + "sass.js": "0.11.1", + "tslint": "~6.1.3", + "ts-node": "10.9.1", + "typescript": "5.5.4" + } +} diff --git a/samples/charts/toolbar/color-editor-support/src/CountryRenewableElectricity.ts b/samples/charts/toolbar/color-editor-support/src/CountryRenewableElectricity.ts new file mode 100644 index 000000000..b32970c46 --- /dev/null +++ b/samples/charts/toolbar/color-editor-support/src/CountryRenewableElectricity.ts @@ -0,0 +1,106 @@ +export class CountryRenewableElectricityItem { + public constructor(init: Partial) { + Object.assign(this, init); + } + + public year: string; + public europe: number; + public china: number; + public america: number; + +} +export class CountryRenewableElectricity extends Array { + public constructor(items: Array | number = -1) { + if (Array.isArray(items)) { + super(...items); + } else { + const newItems = [ + new CountryRenewableElectricityItem( + { + year: `2009`, + europe: 34, + china: 21, + america: 19 + }), + new CountryRenewableElectricityItem( + { + year: `2010`, + europe: 43, + china: 26, + america: 24 + }), + new CountryRenewableElectricityItem( + { + year: `2011`, + europe: 66, + china: 29, + america: 28 + }), + new CountryRenewableElectricityItem( + { + year: `2012`, + europe: 69, + china: 32, + america: 26 + }), + new CountryRenewableElectricityItem( + { + year: `2013`, + europe: 58, + china: 47, + america: 38 + }), + new CountryRenewableElectricityItem( + { + year: `2014`, + europe: 40, + china: 46, + america: 31 + }), + new CountryRenewableElectricityItem( + { + year: `2015`, + europe: 78, + china: 50, + america: 19 + }), + new CountryRenewableElectricityItem( + { + year: `2016`, + europe: 13, + china: 90, + america: 52 + }), + new CountryRenewableElectricityItem( + { + year: `2017`, + europe: 78, + china: 132, + america: 50 + }), + new CountryRenewableElectricityItem( + { + year: `2018`, + europe: 40, + china: 134, + america: 34 + }), + new CountryRenewableElectricityItem( + { + year: `2018`, + europe: 40, + china: 134, + america: 34 + }), + new CountryRenewableElectricityItem( + { + year: `2019`, + europe: 80, + china: 96, + america: 38 + }), + ]; + super(...newItems.slice(0)); + } + } +} diff --git a/samples/charts/toolbar/color-editor-support/src/app.component.html b/samples/charts/toolbar/color-editor-support/src/app.component.html new file mode 100644 index 000000000..14aca0126 --- /dev/null +++ b/samples/charts/toolbar/color-editor-support/src/app.component.html @@ -0,0 +1,51 @@ +
+
+
+ + + + +
+
+ + +
+
+
+ + + + + + + + +
+
diff --git a/samples/charts/toolbar/color-editor-support/src/app.component.scss b/samples/charts/toolbar/color-editor-support/src/app.component.scss new file mode 100644 index 000000000..7d86d9783 --- /dev/null +++ b/samples/charts/toolbar/color-editor-support/src/app.component.scss @@ -0,0 +1,21 @@ +/* styles are loaded the Shared CSS file located at: +https://static.infragistics.com/xplatform/css/samples/ +*/ +.aboveContentSplit { + display: flex; + flex-direction: row; +} +.aboveContentLeftContainer { + margin-left: 1.25rem; + display: flex; + flex-grow: 1; + justify-content: flex-start; + align-items: flex-end; +} +.aboveContentRightContainer { + margin-right: 1.25rem; + display: flex; + flex-grow: 1; + justify-content: flex-end; + align-items: flex-end; +} diff --git a/samples/charts/toolbar/color-editor-support/src/app.component.ts b/samples/charts/toolbar/color-editor-support/src/app.component.ts new file mode 100644 index 000000000..c65346545 --- /dev/null +++ b/samples/charts/toolbar/color-editor-support/src/app.component.ts @@ -0,0 +1,61 @@ +import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; +import { CountryRenewableElectricityItem, CountryRenewableElectricity } from './CountryRenewableElectricity'; +import { IgxToolCommandEventArgs } from 'igniteui-angular-layouts'; +import { IgxDataChartComponent, IgxSeriesComponent } from 'igniteui-angular-charts'; +import { IgxToolbarComponent, IgxToolActionColorEditorComponent } from 'igniteui-angular-layouts'; +import { IgxCategoryXAxisComponent, IgxNumericYAxisComponent, IgxLineSeriesComponent } from 'igniteui-angular-charts'; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html", + changeDetection: ChangeDetectionStrategy.OnPush +}) + +export class AppComponent implements AfterViewInit +{ + + @ViewChild("toolbar", { static: true } ) + private toolbar: IgxToolbarComponent + @ViewChild("colorEditorTool", { static: true } ) + private colorEditorTool: IgxToolActionColorEditorComponent + @ViewChild("chart", { static: true } ) + private chart: IgxDataChartComponent + @ViewChild("xAxis", { static: true } ) + private xAxis: IgxCategoryXAxisComponent + @ViewChild("yAxis", { static: true } ) + private yAxis: IgxNumericYAxisComponent + @ViewChild("lineSeries1", { static: true } ) + private lineSeries1: IgxLineSeriesComponent + private _countryRenewableElectricity: CountryRenewableElectricity = null; + public get countryRenewableElectricity(): CountryRenewableElectricity { + if (this._countryRenewableElectricity == null) + { + this._countryRenewableElectricity = new CountryRenewableElectricity(); + } + return this._countryRenewableElectricity; + } + + public constructor(private _detector: ChangeDetectorRef) + { + } + + public ngAfterViewInit(): void + { + } + + public colorEditorToggleSeriesBrush({ sender, args }: { sender: any, args: IgxToolCommandEventArgs }): void { + var target = this.chart; + var color = args.command.argumentsList[0].value; + + switch (args.command.commandId) + { + case "ToggleSeriesBrush": + let series = target.contentSeries.first as IgxSeriesComponent; + series.brush = color; + break; + } + } + +} + diff --git a/samples/charts/toolbar/color-editor-support/src/app.module.ts b/samples/charts/toolbar/color-editor-support/src/app.module.ts new file mode 100644 index 000000000..4b6c7b284 --- /dev/null +++ b/samples/charts/toolbar/color-editor-support/src/app.module.ts @@ -0,0 +1,39 @@ +import { NgModule } from "@angular/core"; +import { FormsModule } from "@angular/forms"; +import { CommonModule } from "@angular/common"; +import { BrowserModule } from "@angular/platform-browser"; +import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; +import { AppComponent } from "./app.component"; + +import { IgxXIconModule } from 'igniteui-angular-inputs'; +import { IgxToolbarModule, IgxToolActionComboModule, IgxToolActionColorEditorModule } from 'igniteui-angular-layouts'; +import { IgxDataChartToolbarModule, IgxDataLegendModule, IgxNumberAbbreviatorModule, IgxDataChartCategoryModule, IgxDataChartCoreModule, IgxDataChartAnnotationModule, IgxDataChartInteractivityModule } from 'igniteui-angular-charts'; + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxXIconModule, + IgxToolbarModule, + IgxToolActionComboModule, + IgxToolActionColorEditorModule, + IgxDataChartToolbarModule, + IgxDataLegendModule, + IgxNumberAbbreviatorModule, + IgxDataChartCategoryModule, + IgxDataChartCoreModule, + IgxDataChartCategoryModule, + IgxDataChartAnnotationModule, + IgxDataChartInteractivityModule, + IgxDataChartAnnotationModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/samples/charts/toolbar/color-editor-support/src/environments/environment.prod.ts b/samples/charts/toolbar/color-editor-support/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/samples/charts/toolbar/color-editor-support/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/samples/charts/toolbar/color-editor-support/src/environments/environment.ts b/samples/charts/toolbar/color-editor-support/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/samples/charts/toolbar/color-editor-support/src/environments/environment.ts @@ -0,0 +1,16 @@ +// This file can be replaced during build by using the `fileReplacements` array. +// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. +// The list of file replacements can be found in `angular.json`. + +export const environment = { + production: false +}; + +/* + * For easier debugging in development mode, you can import the following file + * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`. + * + * This import should be commented out in production mode because it will have a negative impact + * on performance if an error is thrown. + */ +// import 'zone.js/dist/zone-error'; // Included with Angular CLI. diff --git a/samples/charts/toolbar/color-editor-support/src/index.html b/samples/charts/toolbar/color-editor-support/src/index.html new file mode 100644 index 000000000..7650dfb64 --- /dev/null +++ b/samples/charts/toolbar/color-editor-support/src/index.html @@ -0,0 +1,23 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + + diff --git a/samples/charts/toolbar/color-editor-support/src/main.ts b/samples/charts/toolbar/color-editor-support/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/samples/charts/toolbar/color-editor-support/src/main.ts @@ -0,0 +1,15 @@ +// tslint:disable:no-string-literal +import "./polyfills"; +import { enableProdMode } from "@angular/core"; +import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; +import { AppModule } from "./app.module"; + +platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { + // ensure Angular destroys itself on hot reloads. + if (window["ngRef"]) { + window["ngRef"].destroy(); + } + window["ngRef"] = ref; + + // otherwise, log the boot error +}).catch(err => console.error(err)); diff --git a/samples/charts/toolbar/color-editor-support/src/polyfills.ts b/samples/charts/toolbar/color-editor-support/src/polyfills.ts new file mode 100644 index 000000000..bea4237c0 --- /dev/null +++ b/samples/charts/toolbar/color-editor-support/src/polyfills.ts @@ -0,0 +1,61 @@ +/** + * This file includes polyfills needed by Angular and is loaded before the app. + * You can add your own extra polyfills to this file. + * + * This file is divided into 2 sections: + * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. + * 2. Application imports. Files imported after ZoneJS that should be loaded before your main + * file. + * + * The current setup is for so-called "evergreen" browsers; the last versions of browsers that + * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), + * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. + * + * Learn more in https://angular.io/guide/browser-support + */ + +/*************************************************************************************************** +* BROWSER POLYFILLS +*/ + +/** IE10 and IE11 requires the following for NgClass support on SVG elements */ +//import "classlist.js"; // run `npm install --save classlist.js`. + +/** IE10 and IE11 requires the following for the Reflect API. */ + +/* Evergreen browsers require these. */ +// used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. + +/* + * Required to support Web Animations `@angular/platform-browser/animations`. + * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation + */ +//import "web-animations-js"; // run `npm install --save web-animations-js`. + +/*************************************************************************************************** + * Zone JS is required by Angular itself. + */ +import "hammerjs/hammer"; +import "zone.js"; // included with Angular CLI. + +/*************************************************************************************************** + * @angular/animations polyfill + */ +// if (!Element.prototype.matches) { +// Element.prototype.matches = (Element.prototype as any).msMatchesSelector; +// } + +/*************************************************************************************************** + * APPLICATION IMPORTS + */ + +/** + * Date, currency, decimal and percent pipes. + * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10 + */ +// import "intl"; // Run `npm install --save intl`. +// import "intl/locale-data/jsonp/de"; +/** + * Need to import at least one locale-data with intl. + */ +// import "intl/locale-data/jsonp/en"; diff --git a/samples/charts/toolbar/color-editor-support/src/styles.scss b/samples/charts/toolbar/color-editor-support/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/samples/charts/toolbar/color-editor-support/src/styles.scss @@ -0,0 +1,9 @@ +/* autoprefixer grid: on */ +html, +body { + height: 100%; + width: 100%; + overflow: hidden; + margin: 0; + box-sizing: border-box; +} diff --git a/samples/charts/toolbar/color-editor-support/src/typings.d.ts b/samples/charts/toolbar/color-editor-support/src/typings.d.ts new file mode 100644 index 000000000..ef5c7bd62 --- /dev/null +++ b/samples/charts/toolbar/color-editor-support/src/typings.d.ts @@ -0,0 +1,5 @@ +/* SystemJS module definition */ +declare var module: NodeModule; +interface NodeModule { + id: string; +} diff --git a/samples/charts/toolbar/color-editor-support/tsconfig.app.json b/samples/charts/toolbar/color-editor-support/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/toolbar/color-editor-support/tsconfig.app.json @@ -0,0 +1,10 @@ +/* To learn more about this file see: https://angular.io/config/tsconfig. */ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./out-tsc/app", + "types": [] + }, + "files": ["src/main.ts", "src/polyfills.ts"], + "include": ["src/**/*.d.ts"] +} diff --git a/samples/charts/toolbar/color-editor-support/tsconfig.json b/samples/charts/toolbar/color-editor-support/tsconfig.json new file mode 100644 index 000000000..22d546ab3 --- /dev/null +++ b/samples/charts/toolbar/color-editor-support/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compileOnSave": false, + "compilerOptions": { + "importHelpers": true, + "module": "esnext", + "baseUrl": "./", + "outDir": "./dist/out-tsc", + "sourceMap": false, + "declaration": false, + "moduleResolution": "node", + "experimentalDecorators": true, + "resolveJsonModule": true, + "esModuleInterop": true, + "downlevelIteration": true, + "target": "es2015", + "typeRoots": [ + "node_modules/@types" + ], + "lib": [ + "es2018", + "dom" + ] + }, + "angularCompilerOptions": { + "enableIvy": true + } +} \ No newline at end of file diff --git a/samples/charts/toolbar/color-editor-support/tslint.json b/samples/charts/toolbar/color-editor-support/tslint.json new file mode 100644 index 000000000..777c777d9 --- /dev/null +++ b/samples/charts/toolbar/color-editor-support/tslint.json @@ -0,0 +1,31 @@ +{ + "extends": "tslint:latest", + "rules": { + "deprecation": { + "severity": "warning" + }, + "arrow-parens": false, + "indent": [true, "spaces"], + "interface-name": [true, "always-prefix"], + "max-classes-per-file": false, + "no-bitwise": false, + "no-console": false, + "no-empty": false, + "no-duplicate-imports": false, + "no-implicit-dependencies": false, + "no-object-literal-type-assertion": false, + "no-submodule-imports": [false], + "no-string-literal": false, + "no-trailing-whitespace": false, + "no-var-keyword": false, + "object-literal-sort-keys": false, + "only-arrow-functions": false, + "prefer-conditional-expression": false, + "prefer-const": false, + "prefer-for-of": false, + "prefer-object-spread": false, + "space-within-parens": false, + "trailing-comma": [true, {"multiline": "never", "singleline": "never"}], + "variable-name": [true, "allow-leading-underscore"] + } +} diff --git a/samples/charts/toolbar/custom-tool/src/app.component.html b/samples/charts/toolbar/custom-tool/src/app.component.html index f69db0b31..f3c0cfb1d 100644 --- a/samples/charts/toolbar/custom-tool/src/app.component.html +++ b/samples/charts/toolbar/custom-tool/src/app.component.html @@ -12,7 +12,9 @@ + iconCollectionName="CustomCollection" + name="CustomIconName" + #customIconName> diff --git a/samples/charts/toolbar/custom-tool/src/app.component.ts b/samples/charts/toolbar/custom-tool/src/app.component.ts index 7f366536d..1f8142d25 100644 --- a/samples/charts/toolbar/custom-tool/src/app.component.ts +++ b/samples/charts/toolbar/custom-tool/src/app.component.ts @@ -17,6 +17,8 @@ export class AppComponent implements AfterViewInit private legend: IgxLegendComponent @ViewChild("toolbar", { static: true } ) private toolbar: IgxToolbarComponent + @ViewChild("customIconName", { static: true } ) + private customIconName: IgxToolActionLabelComponent @ViewChild("chart", { static: true } ) private chart: IgxCategoryChartComponent private _countryRenewableElectricity: CountryRenewableElectricity = null; diff --git a/samples/inputs/color-editor/overview/.codesandbox/Dockerfile b/samples/inputs/color-editor/overview/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/inputs/color-editor/overview/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/inputs/color-editor/overview/.codesandbox/tasks.json b/samples/inputs/color-editor/overview/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/inputs/color-editor/overview/.codesandbox/tasks.json @@ -0,0 +1,17 @@ +{ + // These tasks will run in order when initializing your CodeSandbox project. + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + // These tasks can be run from CodeSandbox. Running one will open a log in the app. + "tasks": { + "node node_modules/@angular/cli/bin/ng serve -o --disable-host-check": { + "name": "Start Project", + "command": "node node_modules/@angular/cli/bin/ng serve -o --disable-host-check", + "runAtStart": true + } + } +} \ No newline at end of file diff --git a/samples/inputs/color-editor/overview/.stackblitzrc b/samples/inputs/color-editor/overview/.stackblitzrc new file mode 100644 index 000000000..dd44ea00f --- /dev/null +++ b/samples/inputs/color-editor/overview/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/inputs/color-editor/overview/angular.json b/samples/inputs/color-editor/overview/angular.json new file mode 100644 index 000000000..ff6803cf7 --- /dev/null +++ b/samples/inputs/color-editor/overview/angular.json @@ -0,0 +1,120 @@ +{ + "$schema": "./node_modules/@angular/cli/lib/config/schema.json", + "version": 1, + "newProjectRoot": "projects", + "projects": { + "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, + "root": "", + "sourceRoot": "src", + "prefix": "app", + "projectType": "application", + "architect": { + "build": { + "builder": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "dist/demo", + "index": "src/index.html", + "main": "src/main.ts", + "polyfills": [ + "src/polyfills.ts" + ], + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", + "assets": [ + "src/assets" + ], + "styles": [ + "src/styles.scss" + ], + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } + }, + "configurations": { + "production": { + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.prod.ts" + } + ], + "outputHashing": "all", + "budgets": [ + { + "type": "initial", + "maximumWarning": "500kb", + "maximumError": "1mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "2kb", + "maximumError": "4kb" + } + ] + }, + "development": { + "buildOptimizer": false, + "optimization": false, + "vendorChunk": true, + "extractLicenses": false, + "sourceMap": true, + "namedChunks": true + } + }, + "defaultConfiguration": "production" + }, + "serve": { + "builder": "@angular-devkit/build-angular:dev-server", + "configurations": { + "production": { + "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" + } + }, + "defaultConfiguration": "development" + }, + "extract-i18n": { + "builder": "@angular-devkit/build-angular:extract-i18n", + "options": { + "buildTarget": "demo:build" + } + }, + "test": { + "builder": "@angular-devkit/build-angular:karma", + "options": { + "main": "src/test.ts", + "polyfills": "src/polyfills.ts", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", + "styles": [ + "src/styles.scss" + ], + "scripts": [], + "assets": [ + "src/assets" + ], + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } + } + } + } + } + }, + "defaultProject": "demo", + "cli": { + "analytics": false + } +} diff --git a/samples/inputs/color-editor/overview/package.json b/samples/inputs/color-editor/overview/package.json new file mode 100644 index 000000000..b70ed6af2 --- /dev/null +++ b/samples/inputs/color-editor/overview/package.json @@ -0,0 +1,43 @@ +{ + "scripts": { + "ng": "ng", + "update": "ng update", + "start": "node --max_old_space_size=12192 node_modules/@angular/cli/bin/ng serve -o", + "build": "node --max_old_space_size=12192 node_modules/@angular/cli/bin/ng build --configuration production", + "lint": "ng lint" + }, + "dependencies": { + "@angular/animations": "18.2.1", + "@angular/common": "18.2.1", + "@angular/compiler": "18.2.1", + "@angular/core": "18.2.1", + "@angular/forms": "18.2.1", + "@angular/platform-browser": "18.2.1", + "@angular/platform-browser-dynamic": "18.2.1", + "@types/hammerjs": "2.0.40", + "classlist.js": "1.1.20150312", + "hammerjs": "2.0.8", + "igniteui-angular-core": "18.1.0", + "igniteui-angular-inputs": "18.1.0", + "intl": "1.2.5", + "jszip": "3.8.0", + "rxjs": "7.8.1", + "tslib": "2.6.1", + "web-animations-js": "2.3.2", + "zone.js": "~0.14.4" + }, + "devDependencies": { + "@angular/cli": "18.2.1", + "@angular/compiler-cli": "18.2.1", + "@angular/language-service": "18.2.1", + "@angular-devkit/build-angular": "18.2.1", + "@types/node": "18.17.0", + "codelyzer": "6.0.2", + "jasmine-core": "5.1.1", + "jasmine-spec-reporter": "~4.2.1", + "sass.js": "0.11.1", + "tslint": "~6.1.3", + "ts-node": "10.9.1", + "typescript": "5.5.4" + } +} diff --git a/samples/inputs/color-editor/overview/src/app.component.html b/samples/inputs/color-editor/overview/src/app.component.html new file mode 100644 index 000000000..b920b5116 --- /dev/null +++ b/samples/inputs/color-editor/overview/src/app.component.html @@ -0,0 +1,8 @@ +
+
+ + +
+
diff --git a/samples/inputs/color-editor/overview/src/app.component.scss b/samples/inputs/color-editor/overview/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/samples/inputs/color-editor/overview/src/app.component.scss @@ -0,0 +1,3 @@ +/* styles are loaded the Shared CSS file located at: +https://static.infragistics.com/xplatform/css/samples/ +*/ diff --git a/samples/inputs/color-editor/overview/src/app.component.ts b/samples/inputs/color-editor/overview/src/app.component.ts new file mode 100644 index 000000000..20ce15216 --- /dev/null +++ b/samples/inputs/color-editor/overview/src/app.component.ts @@ -0,0 +1,26 @@ +import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; +import { IgxColorEditorComponent } from 'igniteui-angular-dashboards'; + +@Component({ + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html", + changeDetection: ChangeDetectionStrategy.OnPush +}) + +export class AppComponent implements AfterViewInit +{ + + @ViewChild("colorEditor", { static: true } ) + private colorEditor: IgxColorEditorComponent + + public constructor(private _detector: ChangeDetectorRef) + { + } + + public ngAfterViewInit(): void + { + } + +} + diff --git a/samples/inputs/color-editor/overview/src/app.module.ts b/samples/inputs/color-editor/overview/src/app.module.ts new file mode 100644 index 000000000..317d05d67 --- /dev/null +++ b/samples/inputs/color-editor/overview/src/app.module.ts @@ -0,0 +1,25 @@ +import { NgModule } from "@angular/core"; +import { FormsModule } from "@angular/forms"; +import { CommonModule } from "@angular/common"; +import { BrowserModule } from "@angular/platform-browser"; +import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; +import { AppComponent } from "./app.component"; + +import { IgxColorEditorModule } from 'igniteui-angular-inputs'; + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxColorEditorModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/samples/inputs/color-editor/overview/src/environments/environment.prod.ts b/samples/inputs/color-editor/overview/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/samples/inputs/color-editor/overview/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/samples/inputs/color-editor/overview/src/environments/environment.ts b/samples/inputs/color-editor/overview/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/samples/inputs/color-editor/overview/src/environments/environment.ts @@ -0,0 +1,16 @@ +// This file can be replaced during build by using the `fileReplacements` array. +// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. +// The list of file replacements can be found in `angular.json`. + +export const environment = { + production: false +}; + +/* + * For easier debugging in development mode, you can import the following file + * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`. + * + * This import should be commented out in production mode because it will have a negative impact + * on performance if an error is thrown. + */ +// import 'zone.js/dist/zone-error'; // Included with Angular CLI. diff --git a/samples/inputs/color-editor/overview/src/index.html b/samples/inputs/color-editor/overview/src/index.html new file mode 100644 index 000000000..7650dfb64 --- /dev/null +++ b/samples/inputs/color-editor/overview/src/index.html @@ -0,0 +1,23 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + + diff --git a/samples/inputs/color-editor/overview/src/main.ts b/samples/inputs/color-editor/overview/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/samples/inputs/color-editor/overview/src/main.ts @@ -0,0 +1,15 @@ +// tslint:disable:no-string-literal +import "./polyfills"; +import { enableProdMode } from "@angular/core"; +import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; +import { AppModule } from "./app.module"; + +platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { + // ensure Angular destroys itself on hot reloads. + if (window["ngRef"]) { + window["ngRef"].destroy(); + } + window["ngRef"] = ref; + + // otherwise, log the boot error +}).catch(err => console.error(err)); diff --git a/samples/inputs/color-editor/overview/src/polyfills.ts b/samples/inputs/color-editor/overview/src/polyfills.ts new file mode 100644 index 000000000..bea4237c0 --- /dev/null +++ b/samples/inputs/color-editor/overview/src/polyfills.ts @@ -0,0 +1,61 @@ +/** + * This file includes polyfills needed by Angular and is loaded before the app. + * You can add your own extra polyfills to this file. + * + * This file is divided into 2 sections: + * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. + * 2. Application imports. Files imported after ZoneJS that should be loaded before your main + * file. + * + * The current setup is for so-called "evergreen" browsers; the last versions of browsers that + * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), + * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. + * + * Learn more in https://angular.io/guide/browser-support + */ + +/*************************************************************************************************** +* BROWSER POLYFILLS +*/ + +/** IE10 and IE11 requires the following for NgClass support on SVG elements */ +//import "classlist.js"; // run `npm install --save classlist.js`. + +/** IE10 and IE11 requires the following for the Reflect API. */ + +/* Evergreen browsers require these. */ +// used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. + +/* + * Required to support Web Animations `@angular/platform-browser/animations`. + * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation + */ +//import "web-animations-js"; // run `npm install --save web-animations-js`. + +/*************************************************************************************************** + * Zone JS is required by Angular itself. + */ +import "hammerjs/hammer"; +import "zone.js"; // included with Angular CLI. + +/*************************************************************************************************** + * @angular/animations polyfill + */ +// if (!Element.prototype.matches) { +// Element.prototype.matches = (Element.prototype as any).msMatchesSelector; +// } + +/*************************************************************************************************** + * APPLICATION IMPORTS + */ + +/** + * Date, currency, decimal and percent pipes. + * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10 + */ +// import "intl"; // Run `npm install --save intl`. +// import "intl/locale-data/jsonp/de"; +/** + * Need to import at least one locale-data with intl. + */ +// import "intl/locale-data/jsonp/en"; diff --git a/samples/inputs/color-editor/overview/src/styles.scss b/samples/inputs/color-editor/overview/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/samples/inputs/color-editor/overview/src/styles.scss @@ -0,0 +1,9 @@ +/* autoprefixer grid: on */ +html, +body { + height: 100%; + width: 100%; + overflow: hidden; + margin: 0; + box-sizing: border-box; +} diff --git a/samples/inputs/color-editor/overview/src/typings.d.ts b/samples/inputs/color-editor/overview/src/typings.d.ts new file mode 100644 index 000000000..ef5c7bd62 --- /dev/null +++ b/samples/inputs/color-editor/overview/src/typings.d.ts @@ -0,0 +1,5 @@ +/* SystemJS module definition */ +declare var module: NodeModule; +interface NodeModule { + id: string; +} diff --git a/samples/inputs/color-editor/overview/tsconfig.app.json b/samples/inputs/color-editor/overview/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/inputs/color-editor/overview/tsconfig.app.json @@ -0,0 +1,10 @@ +/* To learn more about this file see: https://angular.io/config/tsconfig. */ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./out-tsc/app", + "types": [] + }, + "files": ["src/main.ts", "src/polyfills.ts"], + "include": ["src/**/*.d.ts"] +} diff --git a/samples/inputs/color-editor/overview/tsconfig.json b/samples/inputs/color-editor/overview/tsconfig.json new file mode 100644 index 000000000..22d546ab3 --- /dev/null +++ b/samples/inputs/color-editor/overview/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compileOnSave": false, + "compilerOptions": { + "importHelpers": true, + "module": "esnext", + "baseUrl": "./", + "outDir": "./dist/out-tsc", + "sourceMap": false, + "declaration": false, + "moduleResolution": "node", + "experimentalDecorators": true, + "resolveJsonModule": true, + "esModuleInterop": true, + "downlevelIteration": true, + "target": "es2015", + "typeRoots": [ + "node_modules/@types" + ], + "lib": [ + "es2018", + "dom" + ] + }, + "angularCompilerOptions": { + "enableIvy": true + } +} \ No newline at end of file diff --git a/samples/inputs/color-editor/overview/tslint.json b/samples/inputs/color-editor/overview/tslint.json new file mode 100644 index 000000000..777c777d9 --- /dev/null +++ b/samples/inputs/color-editor/overview/tslint.json @@ -0,0 +1,31 @@ +{ + "extends": "tslint:latest", + "rules": { + "deprecation": { + "severity": "warning" + }, + "arrow-parens": false, + "indent": [true, "spaces"], + "interface-name": [true, "always-prefix"], + "max-classes-per-file": false, + "no-bitwise": false, + "no-console": false, + "no-empty": false, + "no-duplicate-imports": false, + "no-implicit-dependencies": false, + "no-object-literal-type-assertion": false, + "no-submodule-imports": [false], + "no-string-literal": false, + "no-trailing-whitespace": false, + "no-var-keyword": false, + "object-literal-sort-keys": false, + "only-arrow-functions": false, + "prefer-conditional-expression": false, + "prefer-const": false, + "prefer-for-of": false, + "prefer-object-spread": false, + "space-within-parens": false, + "trailing-comma": [true, {"multiline": "never", "singleline": "never"}], + "variable-name": [true, "allow-leading-underscore"] + } +}