Skip to content

Commit 91f4fc4

Browse files
committed
updates
1 parent 4d072e4 commit 91f4fc4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+2845
-0
lines changed
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"demo": {
7+
"root": "",
8+
"sourceRoot": "src",
9+
"projectType": "application",
10+
"prefix": "app",
11+
"schematics": {},
12+
"architect": {
13+
"build": {
14+
"builder": "@angular-devkit/build-angular:browser",
15+
"options": {
16+
"outputPath": "dist/demo",
17+
"index": "src/index.html",
18+
"main": "src/main.ts",
19+
"polyfills": "src/polyfills.ts",
20+
"tsConfig": "src/tsconfig.app.json",
21+
"assets": [
22+
"src/assets"
23+
],
24+
"styles": [
25+
"./node_modules/@smart-webcomponents-angular/button/styles/smart.base.css",
26+
"./node_modules/@smart-webcomponents-angular/button/styles/smart.button.css",
27+
"./node_modules/@smart-webcomponents-angular/dropdownlist/styles/smart.dropdownlist.css",
28+
"./node_modules/@smart-webcomponents-angular/toast/styles/smart.toast.css",
29+
"./node_modules/@smart-webcomponents-angular/tooltip/styles/smart.tooltip.css",
30+
"./node_modules/@smart-webcomponents-angular/window/styles/smart.window.css",
31+
"./node_modules/@smart-webcomponents-angular/button/styles/smart.common.css",
32+
"src/assets/fonts.css",
33+
"src/assets/styles.css"
34+
],
35+
"scripts": []
36+
},
37+
"configurations": {
38+
"production": {
39+
"fileReplacements": [
40+
{
41+
"replace": "src/environments/environment.ts",
42+
"with": "src/environments/environment.prod.ts"
43+
}
44+
],
45+
"optimization": false,
46+
"outputHashing": "all",
47+
"sourceMap": false,
48+
"extractCss": true,
49+
"namedChunks": false,
50+
"aot": true,
51+
"extractLicenses": true,
52+
"vendorChunk": false,
53+
"buildOptimizer": false
54+
}
55+
}
56+
},
57+
"serve": {
58+
"builder": "@angular-devkit/build-angular:dev-server",
59+
"options": {
60+
"browserTarget": "demo:build"
61+
},
62+
"configurations": {
63+
"production": {
64+
"browserTarget": "demo:build:production"
65+
}
66+
}
67+
},
68+
"extract-i18n": {
69+
"builder": "@angular-devkit/build-angular:extract-i18n",
70+
"options": {
71+
"browserTarget": "demo:build"
72+
}
73+
},
74+
"test": {
75+
"builder": "@angular-devkit/build-angular:karma",
76+
"options": {
77+
"main": "src/test.ts",
78+
"polyfills": "src/polyfills.ts",
79+
"tsConfig": "src/tsconfig.spec.json",
80+
"karmaConfig": "src/karma.conf.js",
81+
"styles": [
82+
"styles.css"
83+
],
84+
"scripts": [],
85+
"assets": [
86+
"src/favicon.ico",
87+
"src/assets"
88+
]
89+
}
90+
},
91+
"lint": {
92+
"builder": "@angular-devkit/build-angular:tslint",
93+
"options": {
94+
"tsConfig": [
95+
"src/tsconfig.app.json",
96+
"src/tsconfig.spec.json"
97+
],
98+
"exclude": [
99+
"**/node_modules/**"
100+
]
101+
}
102+
}
103+
}
104+
},
105+
"demo-e2e": {
106+
"root": "e2e/",
107+
"projectType": "application",
108+
"architect": {
109+
"e2e": {
110+
"builder": "@angular-devkit/build-angular:protractor",
111+
"options": {
112+
"protractorConfig": "e2e/protractor.conf.js",
113+
"devServerTarget": "demo:serve"
114+
}
115+
},
116+
"lint": {
117+
"builder": "@angular-devkit/build-angular:tslint",
118+
"options": {
119+
"tsConfig": "e2e/tsconfig.e2e.json",
120+
"exclude": [
121+
"**/node_modules/**"
122+
]
123+
}
124+
}
125+
}
126+
}
127+
},
128+
"defaultProject": "demo"
129+
}
130+
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"name": "angular-button-button-data-target",
3+
"description": "Angular button button-data-target example. This example demonstrates commercial components by jQWidgets(https://www.jqwidgets.com/license/)",
4+
"version": "1.0.1",
5+
"homepage": "https://www.htmlelements.com/",
6+
"dependencies": {
7+
"@angular/animations": "^11.2.3",
8+
"@angular/elements": "^11.2.3",
9+
"@angular/common": "^11.2.3",
10+
"@angular/compiler": "^11.2.3",
11+
"@angular/core": "^11.2.3",
12+
"@angular/forms": "^11.2.3",
13+
"@angular/platform-browser": "^11.2.3",
14+
"@angular/platform-browser-dynamic": "^11.2.3",
15+
"@angular/router": "^11.2.3",
16+
"@types/jasmine": "^3.6.6",
17+
"@types/jasminewd2": "^2.0.8",
18+
"@types/node": "^14.14.31",
19+
"core-js": "3.9.1",
20+
"moment": "^2.29.1",
21+
"@smart-webcomponents-angular/button": "11.0.0",
22+
"@smart-webcomponents-angular/dropdownlist": "11.0.0",
23+
"@smart-webcomponents-angular/toast": "11.0.0",
24+
"@smart-webcomponents-angular/tooltip": "11.0.0",
25+
"@smart-webcomponents-angular/window": "11.0.0",
26+
"rxjs": "^6.6.6",
27+
"zone.js": "^0.11.4"
28+
},
29+
"scripts": {
30+
"ng": "ng",
31+
"start": "ng serve",
32+
"build": "ng build",
33+
"test": "ng test",
34+
"lint": "ng lint",
35+
"e2e": "ng e2e"
36+
},
37+
"devDependencies": {
38+
"@angular-devkit/build-angular": "~0.901.1",
39+
"@angular/cli": "~11.2.3",
40+
"@angular/compiler-cli": "~11.2.3",
41+
"@angular/language-service": "~11.2.3",
42+
"@types/node": "^14.14.35",
43+
"codelyzer": "^5.1.2",
44+
"jasmine-core": "~3.5.0",
45+
"jasmine-spec-reporter": "~4.2.1",
46+
"karma": "~4.4.1",
47+
"karma-chrome-launcher": "~3.1.0",
48+
"karma-coverage-istanbul-reporter": "~2.1.0",
49+
"karma-jasmine": "~3.0.1",
50+
"karma-jasmine-html-reporter": "^1.4.2",
51+
"protractor": "~5.4.3",
52+
"ts-node": "~8.3.0",
53+
"tslint": "~6.1.0",
54+
"typescript": "~4.1.5"
55+
}
56+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
.demo-horizontal-layout {
2+
display: flex;
3+
flex-direction: column;
4+
}
5+
.dark-mode .demo-icon {
6+
background-image: none;
7+
}
8+
label {
9+
font-size: 14px;
10+
}
11+
.demo-buttons-group {
12+
margin: 8px;
13+
}
14+
.demo-buttons-group smart-button {
15+
margin:8px;
16+
}
17+
.button-demo-icon {
18+
position:relative;
19+
left: -5px;
20+
}
21+
/* fallback */
22+
@font-face {
23+
font-family: 'Material Icons';
24+
font-style: normal;
25+
font-weight: 400;
26+
src: url(https://fonts.gstatic.com/s/materialicons/v31/2fcrYFNaTjcS6g4U3t-Y5ZjZjT5FdEJ140U2DJYC3mY.woff2) format('woff2');
27+
}
28+
29+
.material-icons {
30+
font-family: 'Material Icons';
31+
font-weight: normal;
32+
font-style: normal;
33+
font-size: inherit;
34+
line-height: 1;
35+
letter-spacing: normal;
36+
text-transform: none;
37+
display: inline-block;
38+
white-space: nowrap;
39+
word-wrap: normal;
40+
direction: ltr;
41+
-webkit-font-feature-settings: 'liga';
42+
-webkit-font-smoothing: antialiased;
43+
}
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
<div>
2+
<h3>Collapse</h3>
3+
4+
<smart-button data-toggle="collapse" data-target="#collapseExample" aria-expanded="false" aria-controls="collapseExample">
5+
Button with data-target
6+
</smart-button>
7+
<br/>
8+
<div class="collapse" id="collapseExample">
9+
<div class="card card-body">
10+
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.
11+
</div>
12+
</div>
13+
<h3>Dropdown</h3>
14+
15+
<smart-button id="dropdownMenuButton" data-target=".dropdown-menu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
16+
Dropdown button
17+
</smart-button><br/><br/>
18+
<smart-drop-down-list selected-indexes="[0]" class="dropdown-menu">
19+
<smart-list-item>Action</smart-list-item>
20+
<smart-list-item>Another action</smart-list-item>
21+
<smart-list-item>Something else</smart-list-item>
22+
</smart-drop-down-list>
23+
<h3>Modal</h3>
24+
<!-- Button trigger modal -->
25+
<smart-button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">
26+
Launch demo modal
27+
</smart-button>
28+
29+
<!-- Modal -->
30+
<smart-window header="Title" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
31+
<div>
32+
<div id="article">
33+
<section>
34+
<h3>What is Lorem Ipsum?</h3>
35+
<p>
36+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
37+
</p>
38+
</section>
39+
<section>
40+
<h3>Where does it come from?</h3>
41+
<p>
42+
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
43+
44+
The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.
45+
</p>
46+
</section>
47+
</div>
48+
<div class="modal-footer">
49+
<smart-button type="button" class="btn btn-secondary" data-dismiss="modal">Close</smart-button>
50+
</div>
51+
</div>
52+
</smart-window>
53+
<h3>Tooltip</h3>
54+
<smart-button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="top" data-title="Tooltip on top">
55+
Tooltip on top
56+
</smart-button>
57+
<smart-button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="bottom" data-title="Tooltip on bottom">
58+
Tooltip on bottom
59+
</smart-button>
60+
<h3>Toast</h3>
61+
<smart-button type="button" data-target="#toast" data-toggle="toggle">
62+
Toggle Toast
63+
</smart-button>
64+
<smart-toast id="toast" position="top-left" show-close-button type="mail" class="blink">You have 2 new messages.
65+
<button data-dismiss="toast">Close</button>
66+
</smart-toast>
67+
68+
<h3>List</h3>
69+
<ul class="nav nav-tabs" id="myTab" role="tablist">
70+
<li class="nav-item" role="presentation">
71+
<smart-button class="nav-link active" id="home-tab" data-toggle="tab" data-target="#home" type="button"
72+
role="tab" aria-controls="home" aria-selected="true">Home</smart-button>
73+
</li>
74+
<li class="nav-item" role="presentation">
75+
<smart-button class="nav-link" id="profile-tab" data-toggle="tab" data-target="#profile" type="button"
76+
role="tab" aria-controls="profile" aria-selected="false">Profile</smart-button>
77+
</li>
78+
<li class="nav-item" role="presentation">
79+
<smart-button class="nav-link" id="contact-tab" data-toggle="tab" data-target="#contact" type="button"
80+
role="tab" aria-controls="contact" aria-selected="false">Contact</smart-button>
81+
</li>
82+
</ul>
83+
<div class="tab-content" id="myTabContent">
84+
<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">Content 1</div>
85+
<div class="tab-pane fade smart-hidden" id="profile" role="tabpanel" aria-labelledby="profile-tab">Content 2</div>
86+
<div class="tab-pane fade smart-hidden" id="contact" role="tabpanel" aria-labelledby="contact-tab">Content 3</div>
87+
</div>
88+
</div>
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import { Component, ViewChild, OnInit, AfterViewInit } from '@angular/core';
2+
import { ButtonComponent } from '@smart-webcomponents-angular/button';
3+
4+
5+
@Component({
6+
selector: 'app-root',
7+
templateUrl: './app.component.html',
8+
styleUrls: ['./app.component.css']
9+
})
10+
11+
export class AppComponent implements AfterViewInit, OnInit {
12+
13+
14+
15+
ngOnInit(): void {
16+
// onInit code.
17+
}
18+
19+
ngAfterViewInit(): void {
20+
// afterViewInit code.
21+
this.init();
22+
}
23+
24+
init(): void {
25+
// init code.
26+
27+
28+
}
29+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { NgModule } from '@angular/core';
2+
import { BrowserModule } from '@angular/platform-browser';
3+
4+
import { ButtonModule } from '@smart-webcomponents-angular/button';
5+
import { ToastModule } from '@smart-webcomponents-angular/toast';
6+
import { WindowModule } from '@smart-webcomponents-angular/window';
7+
import { TooltipModule } from '@smart-webcomponents-angular/tooltip';
8+
import { DropDownListModule } from '@smart-webcomponents-angular/dropdownlist';
9+
10+
import { AppComponent } from './app.component';
11+
12+
@NgModule({
13+
declarations: [ AppComponent ],
14+
imports: [ BrowserModule, ToastModule, WindowModule, TooltipModule, DropDownListModule, ButtonModule ],
15+
bootstrap: [ AppComponent ],
16+
entryComponents: [ AppComponent ]
17+
})
18+
19+
export class AppModule { }
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
2+
import { enableProdMode } from '@angular/core';
3+
import { AppModule } from './app.module';
4+
5+
enableProdMode();
6+
platformBrowserDynamic().bootstrapModule(AppModule);
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@font-face {
2+
font-family: "smart-icons";
3+
src: url("https://raw.githubusercontent.com/HTMLElements/smart-webcomponents-angular/master/source/styles/font/smart-icons.eot");
4+
src:
5+
url("https://raw.githubusercontent.com/HTMLElements/smart-webcomponents-angular/master/source/styles/font/smart-icons.woff2")
6+
format("woff2"),
7+
url("https://raw.githubusercontent.com/HTMLElements/smart-webcomponents-angular/master/source/styles/font/smart-icons.woff")
8+
format("woff"),
9+
url("https://raw.githubusercontent.com/HTMLElements/smart-webcomponents-angular/master/source/styles/font/smart-icons.ttf")
10+
format("truetype");
11+
font-weight: normal;
12+
font-style: normal;
13+
}

0 commit comments

Comments
 (0)