Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

Commit 71d4b36

Browse files
v19.2.0.44
1 parent 54b6f5f commit 71d4b36

File tree

29,174 files changed

+6028344
-1
lines changed

Some content is hidden

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

29,174 files changed

+6028344
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,4 @@ Refer the Syncfusion Essential JS 1 for Angular Product Release Notes in [online
113113

114114
* To renew the subscription, click [here](https://www.syncfusion.com/sales/products?utm_source=github&utm_medium=listing) or contact our sales team at <salessupport@syncfusion.com>.
115115

116-
<p>Copyright © 2001-2021 Syncfusion, Inc. Updated on 2021-07-12 at precisely 17:38:27 EST.</p>
116+
<p>Copyright © 2001-2021 Syncfusion, Inc. Updated on 2021-07-12 at precisely 18:03:09 EST.</p>

Web.config

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0"?>
2+
<configuration>
3+
<system.webServer>
4+
<defaultDocument enabled="true"> <!-- this line enables default documents for a directory -->
5+
<files>
6+
<clear/> <!-- removes the existing default document list -->
7+
<add value="index.html"/>
8+
</files>
9+
</defaultDocument>
10+
<staticContent>
11+
<remove fileExtension=".ts" />
12+
<mimeMap fileExtension=".ts" mimeType="application/x-typescript" />
13+
<remove fileExtension=".woff" />
14+
<mimeMap fileExtension=".woff" mimeType="font/woff" />
15+
</staticContent>
16+
</system.webServer>
17+
18+
<system.web>
19+
<compilation debug="true" targetFramework="4.0" />
20+
<urlMappings enabled="true">
21+
<add url="~/" mappedUrl="~/index.html" />
22+
</urlMappings>
23+
</system.web>
24+
25+
</configuration>

app/analytics.ts

+95
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
2+
export class Analytics {
3+
timeEST: any;
4+
timeUTC: any;
5+
estTimeOffset: any;
6+
loadTimeOffset: any;
7+
analyticsLogmodel: any;
8+
constructor() {
9+
let today = new Date();
10+
let uuid = '';
11+
let pageCount = 1;
12+
let url = window.location.href;
13+
14+
// for creating new uuid if the client has no uuid cookies
15+
this.loadTimeOffset = today.getTimezoneOffset() * 60000;
16+
this.estTimeOffset = this.ESTTimeOffset();
17+
this.timeUTC = today.getTime() + this.loadTimeOffset;
18+
this.timeEST = (this.timeUTC + this.estTimeOffset) / 1;
19+
this.timeEST = new Date(this.timeEST);
20+
21+
// check uuid in browser cookie
22+
if (this.getCookie('_uid') != '') {
23+
uuid = this.getCookie('_uid');
24+
} else {
25+
uuid = Math.floor(Math.random() * 1000) + 1 + this.timeEST.toString();
26+
this.createCookie('_uid', uuid);
27+
}
28+
29+
// count and stores the number of pages user is visited
30+
if (this.getCookie('_pageCount') != '') {
31+
pageCount += parseInt(this.getCookie('_pageCount'));
32+
this.createCookie('_pageCount', pageCount);
33+
} else {
34+
this.createCookie('_pageCount', pageCount);
35+
}
36+
37+
// creates the key value pair to be sent for analytics api
38+
this.analyticsLogmodel = {
39+
UUID: uuid,
40+
PageUrl: url,
41+
CurrentTime: today.toLocaleString(),
42+
PageCount: pageCount,
43+
Queue: '',
44+
CustomerIP: (window as any).myip
45+
};
46+
47+
this.postRequest(this.analyticsLogmodel);
48+
49+
}
50+
// used to change the client offset to est offset
51+
ESTTimeOffset() {
52+
let today = new Date();
53+
let jan = new Date(today.getFullYear(), 0, 1);
54+
let jul = new Date(today.getFullYear(), 6, 1);
55+
return (Math.max(jan.getTimezoneOffset(), jul.getTimezoneOffset()) <= today.getTimezoneOffset() ? -4 : -5) * 3600000;
56+
}
57+
58+
// used to create cookie with expiry
59+
createCookie(cookieName, cookieValue) {
60+
let d = new Date();
61+
let expires = '';
62+
if (cookieName != '_pageCount') {
63+
d.setMonth(d.getMonth() + 24);
64+
expires = ';expires=' + d.toUTCString();
65+
}
66+
document.cookie = cookieName + '=' + cookieValue + expires + ';domain=.syncfusion.com;path=/';
67+
}
68+
69+
// used to check the given cookie is available or not
70+
getCookie(cookieName) {
71+
let name = cookieName + '=';
72+
let cookies = document.cookie.split(';');
73+
for (let i = 0; i < cookies.length; i++) {
74+
let cookie = cookies[i];
75+
while (cookie.charAt(0) == ' ') { cookie = cookie.substring(1); }
76+
if (cookie.indexOf(name) == 0) {
77+
return cookie.substring(name.length, cookie.length);
78+
}
79+
}
80+
return '';
81+
}
82+
83+
// post ajax request to be sent to analytics api
84+
postRequest(analyticsLogmodel) {
85+
analyticsLogmodel.Queue = 'EJ1 - Angular';
86+
$.ajax({
87+
type: 'post',
88+
url: '//analytics.syncfusion.com/log/common',
89+
data: analyticsLogmodel,
90+
dataType: 'json',
91+
crossDomain: true
92+
});
93+
console.log('called');
94+
}
95+
}

app/app.component.html

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<div #sample class="sample">
2+
<div id="ej2popup" class="e-ej2popup" *ngIf="!showcaseHref">
3+
<div class="e-popup-close">
4+
<button id="popupclose" class="float-right" ej-button type="button" size="normal" width=20 height=20 cssClass="popupclose"
5+
[showRoundedCorner]="true" contentType="image" prefixIcon="e-icon ej2button-logo" (ejclick)='showEJ2PopUp($event)'></button>
6+
</div>
7+
<table class="e-popup-table">
8+
<tr>
9+
<td class="e-popup-td">
10+
<div class="e-popup-content">
11+
<table class="e-content-table">
12+
<tr>
13+
<td class="e-content-td1">
14+
<div class="e-popup-first">Take a look at our next generation</div>
15+
</td>
16+
<td class="e-content-td2">
17+
<div class="e-popup-second">JavaScript Library</div>
18+
</td>
19+
</tr>
20+
</table>
21+
</div>
22+
</td>
23+
<td class="e-popup-td">
24+
<div class="e-popup-more">
25+
<a href="//ej2.syncfusion.com/home/angular.html?utm_source=ej1&utm_medium=referral&utm_campaign=migrate" class="anchorclass" target="_blank">
26+
<button id="learnmore" class="float-right ejbutton" ej-button title="Essential JS 2" type="button" size="normal" width=100
27+
height=28 cssClass="learnmore" [showRoundedCorner]="true" contentType="text" (ejclick)='showEJ2PopUp($event)' text="LEARN MORE"></button>
28+
</a>
29+
</div>
30+
</td>
31+
</tr>
32+
</table>
33+
</div>
34+
35+
<div class="toolbar" *ngIf="!showcaseHref">
36+
<sd-toolbar></sd-toolbar>
37+
<div class="themegallery" *ngIf="themeswitcher">
38+
<ej-menu #menuelement id="themebutton" title="Theme Switcher" [fields.dataSource]="menuData" width="62px" cssClass='e-custom-theme' [openOnClick]=true (ejclick)='themebtnClick($event)' [isResponsive] =false style="position: absolute;" (window:resize)="resizeMenu($event)" >
39+
</ej-menu>
40+
</div>
41+
</div>
42+
<div>
43+
<div class="ej2option" *ngIf="!showcaseHref">
44+
<a href="//ej2.syncfusion.com/home/angular.html?utm_source=ej1&utm_medium=referral&utm_campaign=migrate" class="anchorclass" target="_blank">
45+
<button id="ej2button" class="float-right ejbutton" ej-button title="Essential JS 2" type="button" size="normal" width=150
46+
height=30 cssClass="ej2button" [showRoundedCorner]="true" prefixIcon="e-icon ej2button-logo" contentType="textandimage"
47+
text="ESSENTIAL JS 2"></button>
48+
</a>
49+
</div>
50+
</div>
51+
<nav-bar [categoryList]="categoryList" *ngIf="!showcaseHref"></nav-bar>
52+
<section class="section" [class.outletSectionclass]='outletSectionVisible'>
53+
<div class="col-md-2 child-list" *ngIf="!showcaseHref && showcaseSubcat">
54+
<ej-listbox id="list" width="100%" height="323" [selectedIndex]="selectedIndex" [enableWordWrap]="false" showRoundedCorner.bind=true
55+
(select)="onChildListSelect($event)" [template]="template" [dataSource]="childRoutes" [fields]="fieldList">
56+
</ej-listbox>
57+
</div>
58+
<div class={{sampleCol}} [class.sampleAreaclass]='classVisible'>
59+
<div class="sample-area" [style.border]="sampleAreaBorder" [style.border-color]="sampleborder" [style.border-radius]="sampleradius">
60+
<div class="sample-name" *ngIf="!showcaseHref" [style.display]="samplenamedisplay" [style.background-color]="dark" [style.color]="darkcolor" [style.border-bottom-color]="sampleborder">
61+
<strong> {{ samplename }}</strong>
62+
</div>
63+
<div class="outlet" [class.outletSectionclass]='outletSectionVisible'>
64+
<router-outlet></router-outlet>
65+
</div>
66+
67+
</div>
68+
<div class="code-area-div" *ngIf="!showcaseHref" [style.display]="codeareaDisplay" [style.border-color]="sampleborder" >
69+
<div class="code-preview" [style.background-color]="dark" [style.color]="darkcolor" [style.border-bottom-color]="sampleborder">
70+
<strong>Code Preview</strong>
71+
</div>
72+
<div class="code-area ">
73+
<source-tab></source-tab>
74+
</div>
75+
</div>
76+
</div>
77+
</section>
78+
79+
80+
81+
82+
</div>

0 commit comments

Comments
 (0)