Skip to content

Commit f91d88f

Browse files
committed
update demos
1 parent c71ba8e commit f91d88f

File tree

134 files changed

+13572
-87
lines changed

Some content is hidden

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

134 files changed

+13572
-87
lines changed

demos/button/button-data-target/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
"@types/node": "^14.14.31",
1919
"core-js": "3.9.1",
2020
"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",
21+
"@smart-webcomponents-angular/button": "13.1.70",
22+
"@smart-webcomponents-angular/dropdownlist": "13.1.70",
23+
"@smart-webcomponents-angular/toast": "13.1.70",
24+
"@smart-webcomponents-angular/tooltip": "13.1.70",
25+
"@smart-webcomponents-angular/window": "13.1.70",
2626
"rxjs": "^6.6.6",
2727
"zone.js": "^0.11.4"
2828
},
Lines changed: 132 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,138 @@
11
<div>
2-
<h3>Collapse</h3>
2+
<h3>Collapse</h3>
33

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>
4+
<smart-button data-toggle="collapse" data-target="#collapseExample" aria-expanded="false"
5+
aria-controls="collapseExample">
6+
Button with data-target
7+
</smart-button>
8+
<br />
9+
<div class="collapse" id="collapseExample">
10+
<div class="card card-body">
11+
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim
12+
keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.
13+
</div>
14+
</div>
15+
<h3>Dropdown</h3>
1416

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>
17+
<smart-button id="dropdownMenuButton" data-target=".dropdown-menu" data-toggle="dropdown" aria-haspopup="true"
18+
aria-expanded="false">
19+
Dropdown button
20+
</smart-button><br /><br />
21+
<smart-drop-down-list selected-indexes="[0]" class="dropdown-menu">
22+
<smart-list-item>Action</smart-list-item>
23+
<smart-list-item>Another action</smart-list-item>
24+
<smart-list-item>Something else</smart-list-item>
25+
</smart-drop-down-list>
26+
<h3>Modal</h3>
27+
<!-- Button trigger modal -->
28+
<smart-button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">
29+
Launch demo modal
30+
</smart-button>
2831

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.
32+
<!-- Modal -->
33+
<smart-window header="Title" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
34+
aria-hidden="true">
35+
<div>
36+
<div id="article">
37+
<section>
38+
<h3>What is Lorem Ipsum?</h3>
39+
<p>
40+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the
41+
industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and
42+
scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into
43+
electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release
44+
of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like
45+
Aldus PageMaker including versions of Lorem Ipsum.
46+
</p>
47+
</section>
48+
<section>
49+
<h3>Where does it come from?</h3>
50+
<p>
51+
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical
52+
Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at
53+
Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a
54+
Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the
55+
undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum"
56+
(The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of
57+
ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..",
58+
comes from a line in section 1.10.32.
4359

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>
60+
The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections
61+
1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact
62+
original form, accompanied by English versions from the 1914 translation by H. Rackham.
63+
</p>
64+
</section>
65+
</div>
66+
<div class="modal-footer">
67+
<smart-button type="button" class="btn btn-secondary" data-dismiss="modal">Close</smart-button>
68+
</div>
69+
</div>
70+
</smart-window>
71+
<h3>Tooltip</h3>
72+
<smart-button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="top"
73+
data-title="Tooltip on top">
74+
Tooltip on top
75+
</smart-button>
76+
<smart-button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="bottom"
77+
data-title="Tooltip on bottom">
78+
Tooltip on bottom
79+
</smart-button>
80+
<h3>Toast</h3>
81+
<smart-button type="button" data-target="#toast" data-toggle="toggle">
82+
Toggle Toast
83+
</smart-button>
84+
<smart-toast id="toast" position="top-left" show-close-button type="mail" class="blink">You have 2 new messages.
85+
<button data-dismiss="toast">Close</button>
86+
</smart-toast>
6787

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>
88+
<h3>List</h3>
89+
<ul class="nav nav-tabs" id="myTab" role="tablist">
90+
<li class="nav-item" role="presentation">
91+
<smart-button class="nav-link active" id="home-tab" data-toggle="tab" data-target="#home" type="button"
92+
role="tab" aria-controls="home" aria-selected="true">Home</smart-button>
93+
</li>
94+
<li class="nav-item" role="presentation">
95+
<smart-button class="nav-link" id="profile-tab" data-toggle="tab" data-target="#profile" type="button" role="tab"
96+
aria-controls="profile" aria-selected="false">Profile</smart-button>
97+
</li>
98+
<li class="nav-item" role="presentation">
99+
<smart-button class="nav-link" id="contact-tab" data-toggle="tab" data-target="#contact" type="button" role="tab"
100+
aria-controls="contact" aria-selected="false">Contact</smart-button>
101+
</li>
102+
</ul>
103+
<div class="tab-content" id="myTabContent">
104+
<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">Content 1</div>
105+
<div class="tab-pane fade smart-hidden" id="profile" role="tabpanel" aria-labelledby="profile-tab">Content 2</div>
106+
<div class="tab-pane fade smart-hidden" id="contact" role="tabpanel" aria-labelledby="contact-tab">Content 3</div>
107+
</div>
108+
<h3>Radio Button Group</h3>
109+
<div>
110+
Value is stored in a hidden field below the radio buttons.<br />
111+
<smart-radio-button checked name="Cappucino" data-target="#radioGroup">Cappucino
112+
</smart-radio-button>
113+
<smart-radio-button name="Espresso" data-target="#radioGroup">Espresso</smart-radio-button>
114+
<smart-radio-button name="Americano" data-target="#radioGroup">Americano</smart-radio-button>
115+
<input onchange="window.log.innerHTML = this.value" id="radioGroup" type="hidden">
116+
<div id="log"></div>
117+
</div>
118+
<h3>Radio Button Group 2</h3>
119+
<div>
120+
Value is stored in a visible input field below the radio buttons.
121+
<br />
122+
<smart-radio-button checked name="Volvo" data-target="#radioGroup2">Volvo
123+
</smart-radio-button><br />
124+
<smart-radio-button name="Mercedes" data-target="#radioGroup2">Mercedes</smart-radio-button><br />
125+
<smart-radio-button name="Renault" data-target="#radioGroup2">Renault</smart-radio-button><br />
126+
<input id="radioGroup2" readonly>
127+
</div>
128+
<h3>Checkboxes Group</h3>
129+
<div>
130+
Value is stored in a visible input field below the radio buttons.
131+
<br />
132+
<smart-check-box [checked]="true" name="Volvo" data-target="#checkGroup">Volvo
133+
</smart-check-box><br />
134+
<smart-check-box name="Mercedes" data-target="#checkGroup">Mercedes</smart-check-box><br />
135+
<smart-check-box name="Renault" data-target="#checkGroup">Renault</smart-check-box><br />
136+
<input id="checkGroup" readonly>
137+
</div>
138+
</div>
Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
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/input/styles/smart.input.css",
28+
"./node_modules/@smart-webcomponents-angular/radiobutton/styles/smart.radiobutton.css",
29+
"./node_modules/@smart-webcomponents-angular/button/styles/smart.common.css",
30+
"src/assets/fonts.css",
31+
"src/assets/styles.css"
32+
],
33+
"scripts": []
34+
},
35+
"configurations": {
36+
"production": {
37+
"fileReplacements": [
38+
{
39+
"replace": "src/environments/environment.ts",
40+
"with": "src/environments/environment.prod.ts"
41+
}
42+
],
43+
"optimization": false,
44+
"outputHashing": "all",
45+
"sourceMap": false,
46+
"extractCss": true,
47+
"namedChunks": false,
48+
"aot": true,
49+
"extractLicenses": true,
50+
"vendorChunk": false,
51+
"buildOptimizer": false
52+
}
53+
}
54+
},
55+
"serve": {
56+
"builder": "@angular-devkit/build-angular:dev-server",
57+
"options": {
58+
"browserTarget": "demo:build"
59+
},
60+
"configurations": {
61+
"production": {
62+
"browserTarget": "demo:build:production"
63+
}
64+
}
65+
},
66+
"extract-i18n": {
67+
"builder": "@angular-devkit/build-angular:extract-i18n",
68+
"options": {
69+
"browserTarget": "demo:build"
70+
}
71+
},
72+
"test": {
73+
"builder": "@angular-devkit/build-angular:karma",
74+
"options": {
75+
"main": "src/test.ts",
76+
"polyfills": "src/polyfills.ts",
77+
"tsConfig": "src/tsconfig.spec.json",
78+
"karmaConfig": "src/karma.conf.js",
79+
"styles": [
80+
"styles.css"
81+
],
82+
"scripts": [],
83+
"assets": [
84+
"src/favicon.ico",
85+
"src/assets"
86+
]
87+
}
88+
},
89+
"lint": {
90+
"builder": "@angular-devkit/build-angular:tslint",
91+
"options": {
92+
"tsConfig": [
93+
"src/tsconfig.app.json",
94+
"src/tsconfig.spec.json"
95+
],
96+
"exclude": [
97+
"**/node_modules/**"
98+
]
99+
}
100+
}
101+
}
102+
},
103+
"demo-e2e": {
104+
"root": "e2e/",
105+
"projectType": "application",
106+
"architect": {
107+
"e2e": {
108+
"builder": "@angular-devkit/build-angular:protractor",
109+
"options": {
110+
"protractorConfig": "e2e/protractor.conf.js",
111+
"devServerTarget": "demo:serve"
112+
}
113+
},
114+
"lint": {
115+
"builder": "@angular-devkit/build-angular:tslint",
116+
"options": {
117+
"tsConfig": "e2e/tsconfig.e2e.json",
118+
"exclude": [
119+
"**/node_modules/**"
120+
]
121+
}
122+
}
123+
}
124+
}
125+
},
126+
"defaultProject": "demo"
127+
}
128+

0 commit comments

Comments
 (0)