Skip to content

Commit 1ad1681

Browse files
author
pipeline
committed
v19.1.63 is released
1 parent ecf4a3c commit 1ad1681

File tree

8 files changed

+89
-20
lines changed

8 files changed

+89
-20
lines changed

README.md

Lines changed: 76 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ Add your sample order in the `src/common/sampleOrder.json` with corresponding ca
88

99
**Note:** Do not use whitespace at any cause in the folder’s name. Use “-” instead of space.
1010

11-
1211
### Configure the folder and sample
1312

1413
Create the “sample.json” file inside of your control folder. Create your sample html and js file in same folder also the html and js files should have the same names.
1514

1615
**Note:** Do not use whitespace at any cause in the file’s name. Use “-” instead of space.
1716

18-
1917
### Configure Sample JSON
2018

2119
Configure your sample json file as like below code snippet.
@@ -75,18 +73,91 @@ https://gitlab.syncfusion.com/essential-studio/ej2-javascript-samples/blob/19761
7573

7674
**Note:** Each component should include one datasource file only.
7775

78-
## Run the sample browser
76+
# Using the samples
77+
78+
## Installing
79+
80+
Before installation check `@syncfusion:registry=http://nexus.syncfusion.com/repository/ej2-production/` is available in npmrc file. Then use the below command to install all dependent packages.
81+
82+
```
83+
npm install
84+
```
85+
## Testing
86+
87+
Use `npm run test` command to compile the source files. It calls the following tasks synchronously,
88+
89+
1. Build
90+
2. Styles ship
91+
3. Site-map generate.
92+
93+
### Build
94+
95+
Use the below command to generate scripts, styles, locale and sample lists.
96+
97+
```
98+
gulp build
99+
```
100+
It runs the following tasks synchronously,
101+
102+
1. Scripts
103+
2. Styles
104+
105+
#### **Scripts**
106+
107+
It compiles the Typescript files and use the below command to run this task.
108+
109+
```
110+
gulp scripts
111+
```
112+
113+
#### **Styles**
114+
115+
The command `gulp styles` is used to compile default themes. It calls the following two tasks synchronously.
116+
117+
1. Default theme
118+
2. Compile styles
119+
120+
#### Default theme
121+
122+
Use the below command to generate default theme files.
123+
124+
```
125+
gulp default-theme
126+
```
127+
128+
#### Compile Styles
129+
It compiles the scss file to css file. To run this task use the below command,
130+
131+
```
132+
gulp compile-styles
133+
```
134+
135+
### Styles Shipping
136+
137+
It copies css files for themes from node_modules. Use the below command to run it individual.
138+
139+
```
140+
gulp styles-shipping
141+
```
142+
143+
### Site map generation
144+
The below command combines sample of all components and store it in sitemap-demos.xml file to index our components, samples, documents in search engine.
145+
146+
```
147+
gulp sitemap-generate
148+
```
149+
150+
## Run your sample browser
79151

80152
We can run the sample browser with two commands
81153

82154
1. **gulp _serve_** – run the sample browser alone.
83-
2. **gulp _watch_** – run the sample browser and monitor typescript as well. This will help at development time. If any changes detect means it will automatically compile and browser will reloaded.
155+
2. **gulp _watch_** – run the sample browser and monitor javascript as well. This will help at development time. If any changes detect means it will automatically compile and browser will reloaded.
84156

85157
```
86158
gulp serve
87159
```
88160

89-
90161
**Access URLs:**
91162

92163
Local URL is works only in your machine.

config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
"validation",
102102
"editing",
103103
"timeline",
104-
"progressbar"
104+
"progressbar",
105+
null
105106
]
106107
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-javascript-samples",
3-
"version": "19.1.54",
3+
"version": "19.1.63",
44
"description": "Examples of JavaScript (ES5) UI Controls",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

src/common/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ function loadTheme(theme) {
820820
themeList.querySelector('.active').classList.remove('active');
821821
themeList.querySelector('#' + theme).classList.add('active');
822822
var doc = document.getElementById('themelink');
823-
doc.setAttribute('href','./dist/' + theme + '.css');
823+
doc.setAttribute('href','./dist/' + theme + '.css')
824824
var ajax = new ej.base.Ajax('./dist/' + theme + '.css', 'GET', true);
825825
ajax.send().then(function(result) {
826826
selectedTheme = theme;

src/file-manager/locale.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
"Filter-Empty": "No results found",
8181
"Filter-Key": "Try with different filter",
8282
"Sub-Folder-Error": "The destination folder is the subfolder of the source folder.",
83+
"Same-Folder-Error": "The destination folder is the same as the source folder.",
8384
"Access-Denied": "Access Denied",
8485
"Access-Details": "You don't have permission to access this folder.",
8586
"Header-Retry": "File Already Exists",
@@ -175,6 +176,7 @@
175176
"Filter-Empty": "keine Ergebnisse gefunden",
176177
"Filter-Key": "Versuchen Sie es mit einem anderen Filter",
177178
"Sub-Folder-Error": "Der Zielordner ist der Unterordner des Quellordners.",
179+
"Same-Folder-Error": "Der Zielordner ist derselbe wie der Quellordner.",
178180
"Access-Denied": "Zugriff verweigert",
179181
"Access-Details": "Sie haben keine Berechtigung, auf diesen Ordner zuzugreifen.",
180182
"Header-Retry": "Die Datei existiert bereits",
@@ -270,6 +272,7 @@
270272
"Filter-Empty": "Aucun résultat trouvé",
271273
"Filter-Key": "Essayez avec un filtre différent",
272274
"Sub-Folder-Error": "Le dossier de destination est le sous-dossier du dossier source.",
275+
"Same-Folder-Error": "Le dossier de destination est le même que le dossier source.",
273276
"Access-Denied": "Accès refusé",
274277
"Access-Details": "Vous n'avez pas la permission d'accéder à ce dossier.",
275278
"Header-Retry": "Le fichier existe déjà",
@@ -365,6 +368,7 @@
365368
"Filter-Empty": "لم يتم العثور على نتائج",
366369
"Filter-Key": "حاول مع مرشح مختلف",
367370
"Sub-Folder-Error": "المجلد الوجهة هو المجلد الفرعي للمجلد المصدر.",
371+
"Same-Folder-Error": "المجلد الوجهة هو نفس المجلد المصدر.",
368372
"Access-Denied": "تم الرفض",
369373
"Access-Details": "ليس لديك إذن للوصول إلى هذا المجلد.",
370374
"Header-Retry": "الملف موجود بالفعل",
@@ -460,6 +464,7 @@
460464
"Filter-Empty": "未找到結果",
461465
"Filter-Key": "嘗試使用其他過濾器",
462466
"Sub-Folder-Error": "目标文件夹是源文件夹的子文件夹。",
467+
"Same-Folder-Error": "目标文件夹与源文件夹相同。",
463468
"Access-Denied": "拒绝访问",
464469
"Access-Details": "您无权访问此文件夹。",
465470
"Header-Retry": "文件已存在",

src/sparkline/axis-types.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
this.default = function () {
2-
// custom code start
32
var sparkload = function(args) {
43
var defaulttheme = location.hash.split('/')[1];
54
defaulttheme = defaulttheme ? defaulttheme : 'Material';
65
args.sparkline.theme = (defaulttheme.charAt(0).toUpperCase() + defaulttheme.slice(1));
76
};
8-
// custom code end
97
var model = {
108
load: sparkload,
119
height: '100px',

src/tab/drag-and-drop-stack.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/tab/drag-and-drop.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ function renderComponents() {
8484
var dropElement = args.target.closest('#draggableTab .e-toolbar-item');
8585
if (dropElement != null) {
8686
var tabElement = document.querySelector('#draggableTab');
87-
var itemPosition = (args.event.clientX < dropElement.getBoundingClientRect().left +
88-
dropElement.offsetWidth / 2) ? 0 : 1;
87+
var itemPosition = (((args.event.type.indexOf('touch') > -1) ? args.event.changedTouches[0].clientX
88+
: args.event.clientX) < dropElement.getBoundingClientRect().left + dropElement.offsetWidth / 2) ? 0 : 1;
8989
var dropItemIndex = [].slice.call(tabElement.querySelectorAll('.e-toolbar-item')).indexOf(dropElement) + itemPosition;
9090
var content = '';
9191
switch (args.draggedNodeData.text) {
@@ -152,14 +152,8 @@ function renderComponents() {
152152
var newTabItem = [{ header: { 'text': args.draggedNodeData.text.toString() }, content: document.querySelector('.' + content) }];
153153
tabObj.addTab(newTabItem, dropItemIndex);
154154
treeViewObj.removeNodes([args.draggedNode]);
155-
args.cancel = true;
156-
}
157-
else {
158-
var dropNode = args.target.closest('#ListView .e-list-item ');
159-
if (!ej.base.isNullOrUndefined(dropNode) && args.dropIndicator === 'e-drop-in') {
160-
args.cancel = true;
161-
}
162155
}
156+
args.cancel = true;
163157
}
164158
function onNodeDrag(args) {
165159
if (!ej.base.isNullOrUndefined(args.target.closest('.tab-content'))) {

0 commit comments

Comments
 (0)