Skip to content

Commit 489b07b

Browse files
author
pipeline
committed
v17.1.50 is released
1 parent 3360b60 commit 489b07b

File tree

436 files changed

+4312
-1842
lines changed

Some content is hidden

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

436 files changed

+4312
-1842
lines changed

controls/base/dist/ej2-base.umd.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/base/dist/es6/ej2-base.es2015.js

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/base/dist/es6/ej2-base.es2015.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/base/dist/es6/ej2-base.es5.js

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/base/dist/es6/ej2-base.es5.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/base/dist/global/ej2-base.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/base/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-base",
3-
"version": "17.1.48",
3+
"version": "17.1.49",
44
"description": "A common package of Essential JS 2 base libraries, methods and class definitions",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

controls/base/src/touch-model.d.ts

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {TapEventArgs,SwipeEventArgs,ScrollEventArgs} from "./touch";
33

44
/**
55
* Interface for a class SwipeSettings
6-
* @private
76
*/
87
export interface SwipeSettingsModel {
98

controls/base/src/touch.ts

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { TouchModel, SwipeSettingsModel } from './touch-model';
88

99
/**
1010
* SwipeSettings is a framework module that provides support to handle swipe event like swipe up, swipe right, etc..,
11-
* @private
1211
*/
1312
export class SwipeSettings extends ChildProperty<SwipeSettings> {
1413
/**

controls/buttons/dist/ej2-buttons.umd.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/buttons/dist/ej2-buttons.umd.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/buttons/dist/es6/ej2-buttons.es2015.js

+64
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/buttons/dist/es6/ej2-buttons.es2015.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/buttons/dist/es6/ej2-buttons.es5.js

+64
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/buttons/dist/es6/ej2-buttons.es5.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/buttons/dist/global/ej2-buttons.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/buttons/dist/global/ej2-buttons.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/buttons/spec/button.spec.ts

+6
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,12 @@ describe('Button', () => {
339339
expect(button.getPersistData()).toEqual('{}');
340340
Button.Inject();
341341
});
342+
it('Native methods - Click and Focus ', () => {
343+
button = new Button();
344+
button.appendTo('#button');
345+
button.click();
346+
button.focusIn();
347+
});
342348
});
343349

344350
it('memory leak', () => {

controls/buttons/spec/check-box.spec.ts

+6
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,12 @@ describe('CheckBox', () => {
368368
expect(checkbox.element.id).toContain('e-checkbox');
369369
expect(checkbox.element.type).toEqual('checkbox');
370370
});
371+
it('Native methods - Click and Focus ', () => {
372+
document.body.appendChild(createElement('EJS-CHECKBOX', { id: 'ngcheckbox', attrs: { label: 'Checkbox' } }));
373+
checkbox = new CheckBox({}, '#ngcheckbox');
374+
checkbox.click();
375+
checkbox.focusIn();
376+
});
371377
});
372378

373379
describe('creation by util function', () => {

controls/buttons/spec/radio-button.spec.ts

+7
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,13 @@ describe('RadioButton', () => {
285285
expect(radio.getSelectedValue()).toEqual('2');
286286
radio2.destroy();
287287
});
288+
it('Native methods - Click and Focus ', () => {
289+
document.body.appendChild(createElement('input', { id: 'group1', attrs: { 'type': 'radio' } }));
290+
document.body.appendChild(createElement('input', { id: 'group2', attrs: { 'type': 'radio' } }));
291+
radio = new RadioButton({ name: 'group', value: '1' }, '#group1');
292+
radio.click();
293+
radio.focusIn();
294+
});
288295
});
289296

290297
describe('RadioButton in HTML5 forms', () => {

controls/buttons/spec/switch.spec.ts

+5
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,11 @@ describe('Switch', () => {
340340
specSwitch.toggle();
341341
expect(specSwitch.checked).toEqual(false);
342342
})
343+
it('Native methods - Click and Focus ', () => {
344+
specSwitch = new Switch({}, '#specSwitch');
345+
specSwitch.click();
346+
specSwitch.focusIn();
347+
});
343348
});
344349

345350
describe('Switch in HTML5 forms', () => {

controls/buttons/src/button/button.ts

+18
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,24 @@ export class Button extends Component<HTMLButtonElement> implements INotifyPrope
324324
}
325325
}
326326
}
327+
328+
/**
329+
* Click the button element
330+
* its native method
331+
* @public
332+
*/
333+
public click(): void {
334+
this.element.click();
335+
}
336+
337+
/**
338+
* Sets the focus to Button
339+
* its native method
340+
* @public
341+
*/
342+
public focusIn(): void {
343+
this.element.focus();
344+
}
327345
}
328346

329347
interface CssClassNameT {

controls/buttons/src/check-box/check-box.ts

+18
Original file line numberDiff line numberDiff line change
@@ -469,4 +469,22 @@ export class CheckBox extends Component<HTMLInputElement> implements INotifyProp
469469
EventHandler.add(this.element, 'change', this.changeHandler, this);
470470
}
471471
}
472+
473+
/**
474+
* Click the CheckBox element
475+
* its native method
476+
* @public
477+
*/
478+
public click(): void {
479+
this.element.click();
480+
}
481+
482+
/**
483+
* Sets the focus to CheckBox
484+
* its native method
485+
* @public
486+
*/
487+
public focusIn(): void {
488+
this.element.focus();
489+
}
472490
}

controls/buttons/src/radio-button/radio-button.ts

+18
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,24 @@ export class RadioButton extends Component<HTMLInputElement> implements INotifyP
414414
EventHandler.add(this.formElement, 'reset', this.formResetHandler, this);
415415
}
416416
}
417+
418+
/**
419+
* Click the RadioButton element
420+
* its native method
421+
* @public
422+
*/
423+
public click(): void {
424+
this.element.click();
425+
}
426+
427+
/**
428+
* Sets the focus to RadioButton
429+
* its native method
430+
* @public
431+
*/
432+
public focusIn(): void {
433+
this.element.focus();
434+
}
417435
}
418436

419437
export interface ChangeArgs extends BaseEventArgs {

controls/buttons/src/switch/switch.ts

+18
Original file line numberDiff line numberDiff line change
@@ -394,5 +394,23 @@ export class Switch extends Component<HTMLInputElement> implements INotifyProper
394394
EventHandler.remove(this.formElement, 'reset', this.formResetHandler);
395395
}
396396
}
397+
398+
/**
399+
* Click the switch element
400+
* its native method
401+
* @public
402+
*/
403+
public click(): void {
404+
this.element.click();
405+
}
406+
407+
/**
408+
* Sets the focus to Switch
409+
* its native method
410+
* @public
411+
*/
412+
public focusIn(): void {
413+
this.element.focus();
414+
}
397415
}
398416

controls/calendars/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-calendars",
3-
"version": "17.1.48",
3+
"version": "17.1.49",
44
"description": "A complete package of date or time components with built-in features such as date formatting, inline editing, multiple (range) selection, range restriction, month and year selection, strict mode, and globalization.",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

controls/calendars/src/calendar/calendar.ts

+13
Original file line numberDiff line numberDiff line change
@@ -2339,3 +2339,16 @@ export interface IslamicObject {
23392339
month: number;
23402340
}
23412341

2342+
/**
2343+
* Defines the argument for the focus event.
2344+
*/
2345+
export interface FocusEventArgs {
2346+
model?: Object;
2347+
}
2348+
2349+
/**
2350+
* Defines the argument for the blur event.
2351+
*/
2352+
export interface BlurEventArgs {
2353+
model?: Object;
2354+
}

0 commit comments

Comments
 (0)