-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,118 changed files
with
38,031 additions
and
331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
{ | ||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", | ||
"version": 1, | ||
"newProjectRoot": "projects", | ||
"projects": { | ||
"demo": { | ||
"root": "", | ||
"sourceRoot": "src", | ||
"projectType": "application", | ||
"prefix": "app", | ||
"schematics": {}, | ||
"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": "src/tsconfig.app.json", | ||
"assets": [ | ||
"src/assets" | ||
], | ||
"styles": [ | ||
"./node_modules/@smart-webcomponents-angular/colorpicker/styles/smart.base.css", | ||
"./node_modules/@smart-webcomponents-angular/colorpicker/styles/smart.colorpicker.css", | ||
"./node_modules/@smart-webcomponents-angular/colorpicker/styles/smart.common.css", | ||
"src/assets/fonts.css", | ||
"src/assets/styles.css" | ||
], | ||
"scripts": [] | ||
}, | ||
"configurations": { | ||
"production": { | ||
"fileReplacements": [ | ||
{ | ||
"replace": "src/environments/environment.ts", | ||
"with": "src/environments/environment.prod.ts" | ||
} | ||
], | ||
"optimization": false, | ||
"outputHashing": "all", | ||
"sourceMap": false, | ||
"extractCss": true, | ||
"namedChunks": false, | ||
"aot": true, | ||
"extractLicenses": true, | ||
"vendorChunk": false, | ||
"buildOptimizer": false | ||
} | ||
} | ||
}, | ||
"serve": { | ||
"builder": "@angular-devkit/build-angular:dev-server", | ||
"options": { | ||
"browserTarget": "demo:build" | ||
}, | ||
"configurations": { | ||
"production": { | ||
"browserTarget": "demo:build:production" | ||
} | ||
} | ||
}, | ||
"extract-i18n": { | ||
"builder": "@angular-devkit/build-angular:extract-i18n", | ||
"options": { | ||
"browserTarget": "demo:build" | ||
} | ||
}, | ||
"test": { | ||
"builder": "@angular-devkit/build-angular:karma", | ||
"options": { | ||
"main": "src/test.ts", | ||
"polyfills": "src/polyfills.ts", | ||
"tsConfig": "src/tsconfig.spec.json", | ||
"karmaConfig": "src/karma.conf.js", | ||
"styles": [ | ||
"styles.css" | ||
], | ||
"scripts": [], | ||
"assets": [ | ||
"src/favicon.ico", | ||
"src/assets" | ||
] | ||
} | ||
}, | ||
"lint": { | ||
"builder": "@angular-devkit/build-angular:tslint", | ||
"options": { | ||
"tsConfig": [ | ||
"src/tsconfig.app.json", | ||
"src/tsconfig.spec.json" | ||
], | ||
"exclude": [ | ||
"**/node_modules/**" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"demo-e2e": { | ||
"root": "e2e/", | ||
"projectType": "application", | ||
"architect": { | ||
"e2e": { | ||
"builder": "@angular-devkit/build-angular:protractor", | ||
"options": { | ||
"protractorConfig": "e2e/protractor.conf.js", | ||
"devServerTarget": "demo:serve" | ||
} | ||
}, | ||
"lint": { | ||
"builder": "@angular-devkit/build-angular:tslint", | ||
"options": { | ||
"tsConfig": "e2e/tsconfig.e2e.json", | ||
"exclude": [ | ||
"**/node_modules/**" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"defaultProject": "demo" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"name": "angular-colorpicker-color-editing", | ||
"description": "Angular colorpicker color-editing example. This example demonstrates commercial components by jQWidgets(https://www.jqwidgets.com/license/)", | ||
"version": "1.0.1", | ||
"homepage": "https://www.htmlelements.com/", | ||
"dependencies": { | ||
"@angular/animations": "^11.2.3", | ||
"@angular/elements": "^11.2.3", | ||
"@angular/common": "^11.2.3", | ||
"@angular/compiler": "^11.2.3", | ||
"@angular/core": "^11.2.3", | ||
"@angular/forms": "^11.2.3", | ||
"@angular/platform-browser": "^11.2.3", | ||
"@angular/platform-browser-dynamic": "^11.2.3", | ||
"@angular/router": "^11.2.3", | ||
"@types/jasmine": "^3.6.6", | ||
"@types/jasminewd2": "^2.0.8", | ||
"@types/node": "^14.14.31", | ||
"core-js": "3.9.1", | ||
"moment": "^2.29.1", | ||
"@smart-webcomponents-angular/colorpicker": "9.2.22", | ||
"rxjs": "^6.6.6", | ||
"zone.js": "^0.11.4" | ||
}, | ||
"scripts": { | ||
"ng": "ng", | ||
"start": "ng serve", | ||
"build": "ng build", | ||
"test": "ng test", | ||
"lint": "ng lint", | ||
"e2e": "ng e2e" | ||
}, | ||
"devDependencies": { | ||
"@angular-devkit/build-angular": "~0.901.1", | ||
"@angular/cli": "~11.2.3", | ||
"@angular/compiler-cli": "~11.2.3", | ||
"@angular/language-service": "~11.2.3", | ||
"@types/node": "^14.14.35", | ||
"codelyzer": "^5.1.2", | ||
"jasmine-core": "~3.5.0", | ||
"jasmine-spec-reporter": "~4.2.1", | ||
"karma": "~4.4.1", | ||
"karma-chrome-launcher": "~3.1.0", | ||
"karma-coverage-istanbul-reporter": "~2.1.0", | ||
"karma-jasmine": "~3.0.1", | ||
"karma-jasmine-html-reporter": "^1.4.2", | ||
"protractor": "~5.4.3", | ||
"ts-node": "~8.3.0", | ||
"tslint": "~6.1.0", | ||
"typescript": "~4.1.5" | ||
} | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<smart-color-picker #colorpicker [editable]="true"></smart-color-picker> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { Component, ViewChild, OnInit, AfterViewInit } from '@angular/core'; | ||
|
||
import { ColorPickerComponent } from '@smart-webcomponents-angular/colorpicker'; | ||
|
||
|
||
@Component({ | ||
selector: 'app-root', | ||
templateUrl: './app.component.html', | ||
styleUrls: ['./app.component.css'] | ||
}) | ||
|
||
export class AppComponent implements AfterViewInit, OnInit { | ||
@ViewChild('colorpicker', { read: ColorPickerComponent, static: false }) colorpicker: ColorPickerComponent; | ||
|
||
|
||
ngOnInit(): void { | ||
// onInit code. | ||
} | ||
|
||
ngAfterViewInit(): void { | ||
// afterViewInit code. | ||
this.init(); | ||
} | ||
|
||
init(): void { | ||
// init code. | ||
|
||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { BrowserModule } from '@angular/platform-browser'; | ||
|
||
import { ColorPickerModule } from '@smart-webcomponents-angular/colorpicker'; | ||
|
||
import { AppComponent } from './app.component'; | ||
|
||
@NgModule({ | ||
declarations: [ AppComponent ], | ||
imports: [ BrowserModule, ColorPickerModule ], | ||
bootstrap: [ AppComponent ], | ||
entryComponents: [ AppComponent ] | ||
}) | ||
|
||
export class AppModule { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | ||
import { enableProdMode } from '@angular/core'; | ||
import { AppModule } from './app.module'; | ||
|
||
enableProdMode(); | ||
platformBrowserDynamic().bootstrapModule(AppModule); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@font-face { | ||
font-family: "smart-icons"; | ||
src: url("https://raw.githubusercontent.com/HTMLElements/smart-webcomponents-angular/master/source/styles/font/smart-icons.eot"); | ||
src: | ||
url("https://raw.githubusercontent.com/HTMLElements/smart-webcomponents-angular/master/source/styles/font/smart-icons.woff2") | ||
format("woff2"), | ||
url("https://raw.githubusercontent.com/HTMLElements/smart-webcomponents-angular/master/source/styles/font/smart-icons.woff") | ||
format("woff"), | ||
url("https://raw.githubusercontent.com/HTMLElements/smart-webcomponents-angular/master/source/styles/font/smart-icons.ttf") | ||
format("truetype"); | ||
font-weight: normal; | ||
font-style: normal; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
body, html { | ||
width: 100%; | ||
height: 100%; | ||
padding: 0px; | ||
margin: 0px; | ||
min-height: 1000px; | ||
} | ||
app-root { | ||
display: block; | ||
width: 100%; | ||
height: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Angular Colorpicker Color-editing</title> | ||
<base href="/"> | ||
<link rel="stylesheet" href="https://raw.githubusercontent.com/HTMLElements/smart-webcomponents-angular/master/source/styles/smart.default.css"/> | ||
<style> | ||
@font-face { | ||
font-family: "smart-icons"; | ||
src: url("https://raw.githubusercontent.com/HTMLElements/smart-webcomponents-angular/master/source/styles/font/smart-icons.eot"); | ||
src: | ||
url("https://raw.githubusercontent.com/HTMLElements/smart-webcomponents-angular/master/source/styles/font/smart-icons.woff2") | ||
format("woff2"), | ||
url("https://raw.githubusercontent.com/HTMLElements/smart-webcomponents-angular/master/source/styles/font/smart-icons.woff") | ||
format("woff"), | ||
url("https://raw.githubusercontent.com/HTMLElements/smart-webcomponents-angular/master/source/styles/font/smart-icons.ttf") | ||
format("truetype"); | ||
font-weight: normal; | ||
font-style: normal; | ||
} | ||
</style> | ||
<script> | ||
console.log('****************************************************************************************************************'); | ||
console.log('*This is an EVALUATION only Version, it is NOT Licensed for software projects intended for PRODUCTION.'); | ||
console.log('*For COMMERCIAL & PRODUCTION usage, please visit: https://www.jqwidgets.com/license/.'); | ||
console.log('****************************************************************************************************************'); | ||
</script> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</head> | ||
<body> | ||
<app-root>Loading...</app-root> | ||
<div style="position: fixed; bottom: 5px; right: 5px;"> | ||
<a href="https://www.jqwidgets.com/" alt="https://www.jqwidgets.com/"><img alt="https://www.jqwidgets.com/" title="https://www.jqwidgets.com/" src="https://www.jqwidgets.com/wp-content/design/i/logo-jqwidgets.png"/></a> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import './polyfills'; | ||
|
||
import { enableProdMode } from '@angular/core'; | ||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | ||
|
||
import { AppModule } from './app/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)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
/** | ||
* 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/docs/ts/latest/guide/browser-support.html | ||
*/ | ||
|
||
/*************************************************************************************************** | ||
* BROWSER POLYFILLS | ||
*/ | ||
|
||
/** IE9, IE10 and IE11 requires all of the following polyfills. **/ | ||
// import 'core-js/es6/symbol'; | ||
// import 'core-js/es6/object'; | ||
// import 'core-js/es6/function'; | ||
// import 'core-js/es6/parse-int'; | ||
// import 'core-js/es6/parse-float'; | ||
// import 'core-js/es6/number'; | ||
// import 'core-js/es6/math'; | ||
// import 'core-js/es6/string'; | ||
// import 'core-js/es6/date'; | ||
// import 'core-js/es6/array'; | ||
// import 'core-js/es6/regexp'; | ||
// import 'core-js/es6/map'; | ||
// import 'core-js/es6/weak-map'; | ||
// import 'core-js/es6/set'; | ||
|
||
/** IE10 and IE11 requires the following for NgClass support on SVG elements */ | ||
// import 'classlist.js'; // Run `npm install --save classlist.js`. | ||
|
||
/** Evergreen browsers require these. **/ | ||
//import 'core-js/es6/reflect'; | ||
//import 'core-js/es7/reflect'; | ||
|
||
import 'core-js/es/reflect'; | ||
|
||
/** | ||
* Required to support Web Animations `@angular/animation`. | ||
* 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 'zone.js/dist/zone'; // Included with Angular CLI. | ||
|
||
|
||
|
||
/*************************************************************************************************** | ||
* 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`. | ||
/** | ||
* Need to import at least one locale-data with intl. | ||
*/ | ||
// import 'intl/locale-data/jsonp/en'; |
Oops, something went wrong.