@syncfusion/ej2-base 19.2.55 → 19.3.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/.eslintrc.json +1 -1
  2. package/CHANGELOG.md +1 -89
  3. package/README.md +1 -1
  4. package/dist/ej2-base.umd.min.js +2 -2
  5. package/dist/ej2-base.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-base.es2015.js +2650 -2401
  7. package/dist/es6/ej2-base.es2015.js.map +1 -1
  8. package/dist/es6/ej2-base.es5.js +3186 -2948
  9. package/dist/es6/ej2-base.es5.js.map +1 -1
  10. package/dist/global/ej2-base.min.js +2 -2
  11. package/dist/global/ej2-base.min.js.map +1 -1
  12. package/dist/global/index.d.ts +1 -1
  13. package/e2e/crypto.js +1 -1
  14. package/e2e/index.d.ts +0 -3
  15. package/e2e/m.protractor.config.js +1 -1
  16. package/e2e/protractor.config.js +1 -1
  17. package/helpers/e2e/base.js +3 -3
  18. package/package.json +7 -64
  19. package/src/ajax.d.ts +24 -10
  20. package/src/ajax.js +14 -6
  21. package/src/animation-model.d.ts +12 -4
  22. package/src/animation.d.ts +37 -12
  23. package/src/animation.js +48 -22
  24. package/src/base.d.ts +31 -11
  25. package/src/base.js +34 -16
  26. package/src/browser.d.ts +63 -25
  27. package/src/browser.js +60 -15
  28. package/src/child-property.d.ts +21 -10
  29. package/src/child-property.js +23 -13
  30. package/src/component-model.d.ts +4 -1
  31. package/src/component.d.ts +42 -5
  32. package/src/component.js +52 -35
  33. package/src/dom.d.ts +76 -25
  34. package/src/dom.js +128 -124
  35. package/src/draggable-model.d.ts +5 -0
  36. package/src/draggable.d.ts +4 -1
  37. package/src/draggable.js +8 -2
  38. package/src/droppable-model.d.ts +7 -4
  39. package/src/droppable.d.ts +7 -3
  40. package/src/droppable.js +1 -0
  41. package/src/event-handler.d.ts +10 -6
  42. package/src/event-handler.js +11 -7
  43. package/src/hijri-parser.d.ts +12 -0
  44. package/src/hijri-parser.js +111 -90
  45. package/src/internationalization.d.ts +54 -21
  46. package/src/internationalization.js +55 -18
  47. package/src/intl/date-formatter.d.ts +19 -8
  48. package/src/intl/date-formatter.js +36 -13
  49. package/src/intl/date-parser.d.ts +30 -23
  50. package/src/intl/date-parser.js +61 -42
  51. package/src/intl/intl-base.d.ts +123 -46
  52. package/src/intl/intl-base.js +451 -377
  53. package/src/intl/number-formatter.d.ts +45 -34
  54. package/src/intl/number-formatter.js +47 -35
  55. package/src/intl/number-parser.d.ts +11 -8
  56. package/src/intl/number-parser.js +14 -11
  57. package/src/intl/parser-base.d.ts +38 -13
  58. package/src/intl/parser-base.js +45 -16
  59. package/src/keyboard-model.d.ts +5 -2
  60. package/src/keyboard.d.ts +26 -8
  61. package/src/keyboard.js +24 -9
  62. package/src/l10n.d.ts +16 -7
  63. package/src/l10n.js +16 -7
  64. package/src/module-loader.d.ts +13 -8
  65. package/src/module-loader.js +13 -9
  66. package/src/notify-property-change.d.ts +19 -7
  67. package/src/notify-property-change.js +140 -24
  68. package/src/observer.d.ts +17 -5
  69. package/src/observer.js +19 -7
  70. package/src/sanitize-helper.d.ts +1 -0
  71. package/src/sanitize-helper.js +1 -1
  72. package/src/template-engine.d.ts +30 -4
  73. package/src/template-engine.js +37 -12
  74. package/src/template.d.ts +8 -3
  75. package/src/template.js +67 -19
  76. package/src/touch-model.d.ts +11 -4
  77. package/src/touch.d.ts +51 -9
  78. package/src/touch.js +45 -13
  79. package/src/util.d.ts +67 -37
  80. package/src/util.js +99 -49
  81. package/styles/_bootstrap-definition.scss +0 -1
  82. package/styles/_bootstrap5-dark-definition.scss +10 -0
  83. package/styles/_bootstrap5-definition.scss +9 -0
  84. package/styles/_fabric-dark-definition.scss +0 -1
  85. package/styles/_highcontrast-light-definition.scss +1 -0
  86. package/styles/_material-definition.scss +1 -0
  87. package/styles/bootstrap-dark.css +2613 -32
  88. package/styles/bootstrap.css +2613 -32
  89. package/styles/bootstrap4.css +2149 -32
  90. package/styles/bootstrap5-dark.css +2157 -0
  91. package/styles/bootstrap5-dark.scss +3 -0
  92. package/styles/bootstrap5.css +2157 -0
  93. package/styles/bootstrap5.scss +3 -0
  94. package/styles/common/_core.scss +28 -63
  95. package/styles/definition/_bootstrap-dark.scss +3 -3
  96. package/styles/definition/_bootstrap.scss +1 -1
  97. package/styles/definition/_bootstrap5-dark.scss +357 -0
  98. package/styles/definition/_bootstrap5.scss +356 -0
  99. package/styles/definition/_material-dark.scss +1 -1
  100. package/styles/definition/_tailwind-dark.scss +18 -1
  101. package/styles/definition/_tailwind.scss +17 -0
  102. package/styles/fabric-dark.css +2589 -32
  103. package/styles/fabric.css +2589 -32
  104. package/styles/highcontrast-light.css +2573 -32
  105. package/styles/highcontrast.css +2573 -32
  106. package/styles/material-dark.css +2549 -32
  107. package/styles/material.css +2549 -32
  108. package/styles/tailwind-dark.css +2221 -32
  109. package/styles/tailwind.css +2221 -32
  110. package/src/virtual-dom.d.ts +0 -32
  111. package/src/virtual-dom.js +0 -449
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 19.2.55
3
+ * version : 19.3.47
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/e2e/crypto.js CHANGED
@@ -14,4 +14,4 @@ global.encrypt_decrypt = {
14
14
  decrypted += decipher.final('utf-8');
15
15
  return decrypted;
16
16
  }
17
- };
17
+ };
package/e2e/index.d.ts CHANGED
@@ -1,5 +1,3 @@
1
-
2
-
3
1
  import { ProtractorBrowser, promise } from 'protractor';
4
2
 
5
3
  /**
@@ -27,4 +25,3 @@ export declare let browser: ProtractorTypes;
27
25
 
28
26
 
29
27
  export * from "protractor";
30
-
@@ -284,4 +284,4 @@ exports.config = {
284
284
 
285
285
  function createF(path) {
286
286
  shell.mkdir('-p', path);
287
- }
287
+ }
@@ -281,4 +281,4 @@ exports.config.seleniumAddress = config.seleniumAddress || 'http://localhost:444
281
281
 
282
282
  function createF(path) {
283
283
  shell.mkdir('-p', path);
284
- }
284
+ }
@@ -8,13 +8,13 @@ class TestHelper {
8
8
  return (this.wrapperFn ? this.wrapperFn(arg) : arg);
9
9
  }
10
10
  setModel(property, value) {
11
- return Mapper.setModel(this.id, this.selector, property, value);
11
+ return Mapper.setModel(this.id, this.selector.bind(this), property, value);
12
12
  }
13
13
  getModel(property) {
14
- return Mapper.getModel(this.id, this.selector, property);
14
+ return Mapper.getModel(this.id, this.selector.bind(this), property);
15
15
  }
16
16
  invoke(fName, args = []) {
17
- return Mapper.invoke(this.id, this.selector, fName, args);
17
+ return Mapper.invoke(this.id, this.selector.bind(this), fName, args);
18
18
  }
19
19
  eventHandler(eventName, callback) {
20
20
  return this.selector('#' + this.id).then((ele) => {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-base@*",
3
- "_id": "@syncfusion/ej2-base@19.2.49",
3
+ "_id": "@syncfusion/ej2-base@18.39.0",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-PuFSnVcMZlKM1yOHe50SSr0mhsjGbneYcXwTcaNNehRe4a9qErAh0bQFtKyl7J8j6zHOmIS+hIXazn8KZLfxUw==",
5
+ "_integrity": "sha512-/UV6GltImvLoPEwr4RJqjvpkfrR9W7FnXJpGN3Wu3gsmC1Lko4tZJWiyZWaUAK200fmP6B/mNmS9ph0Gk0i2+w==",
6
6
  "_location": "/@syncfusion/ej2-base",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -19,39 +19,20 @@
19
19
  "_requiredBy": [
20
20
  "/",
21
21
  "/@syncfusion/ej2",
22
- "/@syncfusion/ej2-angular-barcode-generator",
23
22
  "/@syncfusion/ej2-angular-base",
24
- "/@syncfusion/ej2-angular-buttons",
25
- "/@syncfusion/ej2-angular-calendars",
26
- "/@syncfusion/ej2-angular-charts",
27
- "/@syncfusion/ej2-angular-circulargauge",
28
23
  "/@syncfusion/ej2-angular-diagrams",
29
24
  "/@syncfusion/ej2-angular-documenteditor",
30
25
  "/@syncfusion/ej2-angular-dropdowns",
31
- "/@syncfusion/ej2-angular-filemanager",
32
26
  "/@syncfusion/ej2-angular-gantt",
33
27
  "/@syncfusion/ej2-angular-grids",
34
- "/@syncfusion/ej2-angular-heatmap",
35
- "/@syncfusion/ej2-angular-inplace-editor",
36
28
  "/@syncfusion/ej2-angular-inputs",
37
- "/@syncfusion/ej2-angular-kanban",
38
- "/@syncfusion/ej2-angular-layouts",
39
- "/@syncfusion/ej2-angular-lineargauge",
40
- "/@syncfusion/ej2-angular-lists",
41
- "/@syncfusion/ej2-angular-maps",
42
- "/@syncfusion/ej2-angular-navigations",
43
- "/@syncfusion/ej2-angular-notifications",
44
29
  "/@syncfusion/ej2-angular-pdfviewer",
45
30
  "/@syncfusion/ej2-angular-pivotview",
46
31
  "/@syncfusion/ej2-angular-popups",
47
- "/@syncfusion/ej2-angular-progressbar",
48
- "/@syncfusion/ej2-angular-querybuilder",
49
32
  "/@syncfusion/ej2-angular-richtexteditor",
50
- "/@syncfusion/ej2-angular-schedule",
51
33
  "/@syncfusion/ej2-angular-splitbuttons",
52
34
  "/@syncfusion/ej2-angular-spreadsheet",
53
35
  "/@syncfusion/ej2-angular-treegrid",
54
- "/@syncfusion/ej2-angular-treemap",
55
36
  "/@syncfusion/ej2-barcode-generator",
56
37
  "/@syncfusion/ej2-buttons",
57
38
  "/@syncfusion/ej2-calendars",
@@ -81,39 +62,20 @@
81
62
  "/@syncfusion/ej2-popups",
82
63
  "/@syncfusion/ej2-progressbar",
83
64
  "/@syncfusion/ej2-querybuilder",
84
- "/@syncfusion/ej2-react-barcode-generator",
85
65
  "/@syncfusion/ej2-react-base",
86
- "/@syncfusion/ej2-react-buttons",
87
- "/@syncfusion/ej2-react-calendars",
88
- "/@syncfusion/ej2-react-charts",
89
- "/@syncfusion/ej2-react-circulargauge",
90
66
  "/@syncfusion/ej2-react-diagrams",
91
67
  "/@syncfusion/ej2-react-documenteditor",
92
68
  "/@syncfusion/ej2-react-dropdowns",
93
- "/@syncfusion/ej2-react-filemanager",
94
69
  "/@syncfusion/ej2-react-gantt",
95
70
  "/@syncfusion/ej2-react-grids",
96
- "/@syncfusion/ej2-react-heatmap",
97
- "/@syncfusion/ej2-react-inplace-editor",
98
71
  "/@syncfusion/ej2-react-inputs",
99
- "/@syncfusion/ej2-react-kanban",
100
- "/@syncfusion/ej2-react-layouts",
101
- "/@syncfusion/ej2-react-lineargauge",
102
- "/@syncfusion/ej2-react-lists",
103
- "/@syncfusion/ej2-react-maps",
104
- "/@syncfusion/ej2-react-navigations",
105
- "/@syncfusion/ej2-react-notifications",
106
72
  "/@syncfusion/ej2-react-pdfviewer",
107
73
  "/@syncfusion/ej2-react-pivotview",
108
74
  "/@syncfusion/ej2-react-popups",
109
- "/@syncfusion/ej2-react-progressbar",
110
- "/@syncfusion/ej2-react-querybuilder",
111
75
  "/@syncfusion/ej2-react-richtexteditor",
112
- "/@syncfusion/ej2-react-schedule",
113
76
  "/@syncfusion/ej2-react-splitbuttons",
114
77
  "/@syncfusion/ej2-react-spreadsheet",
115
78
  "/@syncfusion/ej2-react-treegrid",
116
- "/@syncfusion/ej2-react-treemap",
117
79
  "/@syncfusion/ej2-richtexteditor",
118
80
  "/@syncfusion/ej2-schedule",
119
81
  "/@syncfusion/ej2-splitbuttons",
@@ -121,42 +83,23 @@
121
83
  "/@syncfusion/ej2-svg-base",
122
84
  "/@syncfusion/ej2-treegrid",
123
85
  "/@syncfusion/ej2-treemap",
124
- "/@syncfusion/ej2-vue-barcode-generator",
125
86
  "/@syncfusion/ej2-vue-base",
126
- "/@syncfusion/ej2-vue-buttons",
127
- "/@syncfusion/ej2-vue-calendars",
128
- "/@syncfusion/ej2-vue-charts",
129
- "/@syncfusion/ej2-vue-circulargauge",
130
87
  "/@syncfusion/ej2-vue-diagrams",
131
88
  "/@syncfusion/ej2-vue-documenteditor",
132
89
  "/@syncfusion/ej2-vue-dropdowns",
133
- "/@syncfusion/ej2-vue-filemanager",
134
90
  "/@syncfusion/ej2-vue-gantt",
135
91
  "/@syncfusion/ej2-vue-grids",
136
- "/@syncfusion/ej2-vue-heatmap",
137
- "/@syncfusion/ej2-vue-inplace-editor",
138
92
  "/@syncfusion/ej2-vue-inputs",
139
- "/@syncfusion/ej2-vue-kanban",
140
- "/@syncfusion/ej2-vue-layouts",
141
- "/@syncfusion/ej2-vue-lineargauge",
142
- "/@syncfusion/ej2-vue-lists",
143
- "/@syncfusion/ej2-vue-maps",
144
- "/@syncfusion/ej2-vue-navigations",
145
- "/@syncfusion/ej2-vue-notifications",
146
93
  "/@syncfusion/ej2-vue-pdfviewer",
147
94
  "/@syncfusion/ej2-vue-pivotview",
148
95
  "/@syncfusion/ej2-vue-popups",
149
- "/@syncfusion/ej2-vue-progressbar",
150
- "/@syncfusion/ej2-vue-querybuilder",
151
96
  "/@syncfusion/ej2-vue-richtexteditor",
152
- "/@syncfusion/ej2-vue-schedule",
153
97
  "/@syncfusion/ej2-vue-splitbuttons",
154
98
  "/@syncfusion/ej2-vue-spreadsheet",
155
- "/@syncfusion/ej2-vue-treegrid",
156
- "/@syncfusion/ej2-vue-treemap"
99
+ "/@syncfusion/ej2-vue-treegrid"
157
100
  ],
158
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-base/-/ej2-base-19.2.49.tgz",
159
- "_shasum": "cfcb449bfb856bf4099b411c851c70b90029dffe",
101
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-base/-/ej2-base-18.39.0.tgz",
102
+ "_shasum": "62b15ea4b12b6d78f2d8bb798f08f6b2a92db088",
160
103
  "_spec": "@syncfusion/ej2-base@*",
161
104
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
162
105
  "author": {
@@ -167,7 +110,7 @@
167
110
  },
168
111
  "bundleDependencies": false,
169
112
  "dependencies": {
170
- "@syncfusion/ej2-icons": "~19.2.55"
113
+ "@syncfusion/ej2-icons": "~19.3.43"
171
114
  },
172
115
  "deprecated": false,
173
116
  "description": "A common package of Essential JS 2 base libraries, methods and class definitions",
@@ -208,6 +151,6 @@
208
151
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
209
152
  },
210
153
  "typings": "index.d.ts",
211
- "version": "19.2.55",
154
+ "version": "19.3.47",
212
155
  "sideEffects": true
213
156
  }
package/src/ajax.d.ts CHANGED
@@ -14,31 +14,37 @@
14
14
  export declare class Ajax {
15
15
  /**
16
16
  * Specifies the URL to which request to be sent.
17
+ *
17
18
  * @default null
18
19
  */
19
20
  url: string;
20
21
  /**
21
22
  * Specifies which HTTP request method to be used. For ex., GET, POST
23
+ *
22
24
  * @default GET
23
25
  */
24
26
  type: string;
25
27
  /**
26
28
  * Specifies the data to be sent.
29
+ *
27
30
  * @default null
28
31
  */
29
32
  data: string | Object;
30
33
  /**
31
34
  * A boolean value indicating whether the request should be sent asynchronous or not.
35
+ *
32
36
  * @default true
33
37
  */
34
38
  mode: boolean;
35
39
  /**
36
40
  * Specifies the callback for creating the XMLHttpRequest object.
41
+ *
37
42
  * @default null
38
43
  */
39
44
  httpRequest: XMLHttpRequest;
40
45
  /**
41
46
  * A boolean value indicating whether to ignore the promise reject.
47
+ *
42
48
  * @private
43
49
  * @default true
44
50
  */
@@ -53,33 +59,39 @@ export declare class Ajax {
53
59
  private dataType;
54
60
  /**
55
61
  * Constructor for Ajax class
56
- * @param {string|Object} options?
57
- * @param {string} type?
58
- * @param {boolean} async?
59
- * @returns defaultType
62
+ *
63
+ * @param {string|Object} options ?
64
+ * @param {string} type ?
65
+ * @param {boolean} async ?
66
+ * @returns defaultType any
60
67
  */
61
68
  constructor(options?: string | Object, type?: string, async?: boolean, contentType?: string);
62
69
  /**
70
+ *
63
71
  * Send the request to server.
72
+ *
64
73
  * @param {any} data - To send the user data
65
- * @return {Promise}
74
+ * @return {Promise} ?
66
75
  */
67
76
  send(data?: string | Object): Promise<Ajax>;
68
77
  /**
69
78
  * Specifies the callback function to be triggered before sending request to sever.
70
79
  * This can be used to modify the XMLHttpRequest object before it is sent.
71
- * @event
80
+ *
81
+ * @event beforeSend
72
82
  */
73
83
  beforeSend: Function;
74
84
  /**
75
85
  * Specifies callback function to be triggered after XmlHttpRequest is succeeded.
76
86
  * The callback will contain server response as the parameter.
77
- * @event
87
+ *
88
+ * @event onSuccess
78
89
  */
79
90
  onSuccess: Function;
80
91
  /**
81
92
  * Triggers when XmlHttpRequest is failed.
82
- * @event
93
+ *
94
+ * @event onFailure
83
95
  */
84
96
  onFailure: Function;
85
97
  private successHandler;
@@ -87,8 +99,9 @@ export declare class Ajax {
87
99
  private stateChange;
88
100
  /**
89
101
  * To get the response header from XMLHttpRequest
102
+ *
90
103
  * @param {string} key Key to search in the response header
91
- * @returns {string}
104
+ * @returns {string} ?
92
105
  */
93
106
  getResponseHeader(key: string): string;
94
107
  }
@@ -100,7 +113,8 @@ export interface HeaderOptions {
100
113
  }
101
114
  /**
102
115
  * Specifies the ajax beforeSend event arguments
103
- * @event
116
+ *
117
+ * @event BeforeSendEventArgs
104
118
  */
105
119
  export interface BeforeSendEventArgs {
106
120
  /** To cancel the ajax request in beforeSend */
package/src/ajax.js CHANGED
@@ -17,19 +17,22 @@ var defaultType = 'GET';
17
17
  var Ajax = /** @class */ (function () {
18
18
  /**
19
19
  * Constructor for Ajax class
20
- * @param {string|Object} options?
21
- * @param {string} type?
22
- * @param {boolean} async?
23
- * @returns defaultType
20
+ *
21
+ * @param {string|Object} options ?
22
+ * @param {string} type ?
23
+ * @param {boolean} async ?
24
+ * @returns defaultType any
24
25
  */
25
26
  function Ajax(options, type, async, contentType) {
26
27
  /**
27
28
  * A boolean value indicating whether the request should be sent asynchronous or not.
29
+ *
28
30
  * @default true
29
31
  */
30
32
  this.mode = true;
31
33
  /**
32
34
  * A boolean value indicating whether to ignore the promise reject.
35
+ *
33
36
  * @private
34
37
  * @default true
35
38
  */
@@ -48,9 +51,11 @@ var Ajax = /** @class */ (function () {
48
51
  this.contentType = (this.contentType !== undefined) ? this.contentType : contentType;
49
52
  }
50
53
  /**
54
+ *
51
55
  * Send the request to server.
56
+ *
52
57
  * @param {any} data - To send the user data
53
- * @return {Promise}
58
+ * @return {Promise} ?
54
59
  */
55
60
  Ajax.prototype.send = function (data) {
56
61
  var _this = this;
@@ -140,18 +145,21 @@ var Ajax = /** @class */ (function () {
140
145
  };
141
146
  /**
142
147
  * To get the response header from XMLHttpRequest
148
+ *
143
149
  * @param {string} key Key to search in the response header
144
- * @returns {string}
150
+ * @returns {string} ?
145
151
  */
146
152
  Ajax.prototype.getResponseHeader = function (key) {
147
153
  var responseHeaders;
148
154
  var header;
155
+ // eslint-disable-next-line
149
156
  responseHeaders = {};
150
157
  var headers = headerRegex.exec(this.httpRequest.getAllResponseHeaders());
151
158
  while (headers) {
152
159
  responseHeaders[headers[1].toLowerCase()] = headers[2];
153
160
  headers = headerRegex.exec(this.httpRequest.getAllResponseHeaders());
154
161
  }
162
+ // eslint-disable-next-line
155
163
  header = responseHeaders[key.toLowerCase()];
156
164
  return isNullOrUndefined(header) ? null : header;
157
165
  };
@@ -8,49 +8,57 @@ export interface AnimationModel {
8
8
 
9
9
  /**
10
10
  * Specify the type of animation
11
+ *
11
12
  * @default : 'FadeIn';
12
13
  */
13
14
  name?: Effect;
14
15
 
15
16
  /**
16
17
  * Specify the duration to animate
18
+ *
17
19
  * @default : 400;
18
20
  */
19
21
  duration?: number;
20
22
 
21
23
  /**
22
24
  * Specify the animation timing function
25
+ *
23
26
  * @default : 'ease';
24
27
  */
25
28
  timingFunction?: string;
26
29
 
27
30
  /**
28
31
  * Specify the delay to start animation
32
+ *
29
33
  * @default : 0;
30
34
  */
31
35
  delay?: number;
32
36
 
33
37
  /**
34
38
  * Triggers when animation is in-progress
35
- * @event
39
+ *
40
+ * @event progress
36
41
  */
37
42
  progress?: EmitType<AnimationOptions>;
38
43
 
39
44
  /**
40
45
  * Triggers when the animation is started
41
- * @event
46
+ *
47
+ * @event begin
42
48
  */
43
49
  begin?: EmitType<AnimationOptions>;
44
50
 
45
51
  /**
46
52
  * Triggers when animation is completed
47
- * @event
53
+ *
54
+ * @event end
48
55
  */
49
56
  end?: EmitType<AnimationOptions>;
50
57
 
51
58
  /**
52
59
  * Triggers when animation is failed due to any scripts
53
- * @event
60
+ *
61
+ * @event fail
54
62
  */
55
63
  fail?: EmitType<AnimationOptions>;
56
64
 
@@ -19,42 +19,50 @@ export declare type Effect = 'FadeIn' | 'FadeOut' | 'FadeZoomIn' | 'FadeZoomOut'
19
19
  export declare class Animation extends Base<HTMLElement> implements INotifyPropertyChanged {
20
20
  /**
21
21
  * Specify the type of animation
22
+ *
22
23
  * @default : 'FadeIn';
23
24
  */
24
25
  name: Effect;
25
26
  /**
26
27
  * Specify the duration to animate
28
+ *
27
29
  * @default : 400;
28
30
  */
29
31
  duration: number;
30
32
  /**
31
33
  * Specify the animation timing function
34
+ *
32
35
  * @default : 'ease';
33
36
  */
34
37
  timingFunction: string;
35
38
  /**
36
39
  * Specify the delay to start animation
40
+ *
37
41
  * @default : 0;
38
42
  */
39
43
  delay: number;
40
44
  /**
41
45
  * Triggers when animation is in-progress
42
- * @event
46
+ *
47
+ * @event progress
43
48
  */
44
49
  progress: EmitType<AnimationOptions>;
45
50
  /**
46
51
  * Triggers when the animation is started
47
- * @event
52
+ *
53
+ * @event begin
48
54
  */
49
55
  begin: EmitType<AnimationOptions>;
50
56
  /**
51
57
  * Triggers when animation is completed
52
- * @event
58
+ *
59
+ * @event end
53
60
  */
54
61
  end: EmitType<AnimationOptions>;
55
62
  /**
56
63
  * Triggers when animation is failed due to any scripts
57
- * @event
64
+ *
65
+ * @event fail
58
66
  */
59
67
  fail: EmitType<AnimationOptions>;
60
68
  /**
@@ -66,13 +74,15 @@ export declare class Animation extends Base<HTMLElement> implements INotifyPrope
66
74
  constructor(options: AnimationModel);
67
75
  /**
68
76
  * Applies animation to the current element.
77
+ *
69
78
  * @param {string | HTMLElement} element - Element which needs to be animated.
70
79
  * @param {AnimationModel} options - Overriding default animation settings.
71
- * @return {void}
80
+ * @returns {void} ?
72
81
  */
73
82
  animate(element: string | HTMLElement, options?: AnimationModel): void;
74
83
  /**
75
84
  * Stop the animation effect on animated element.
85
+ *
76
86
  * @param {HTMLElement} element - Element which needs to be stop the animation.
77
87
  * @param {AnimationOptions} model - Handling the animation model at stop function.
78
88
  * @return {void}
@@ -80,33 +90,43 @@ export declare class Animation extends Base<HTMLElement> implements INotifyPrope
80
90
  static stop(element: HTMLElement, model?: AnimationOptions): void;
81
91
  /**
82
92
  * Set delay to animation element
83
- * @param {AnimationModel} model
93
+ *
94
+ * @param {AnimationModel} model ?
84
95
  * @returns {void}
85
96
  */
86
97
  private static delayAnimation;
87
98
  /**
88
99
  * Triggers animation
89
- * @param {AnimationModel} model
100
+ *
101
+ * @param {AnimationModel} model ?
90
102
  * @returns {void}
91
103
  */
92
104
  private static applyAnimation;
93
105
  /**
94
106
  * Returns Animation Model
95
- * @param {AnimationModel} options
96
- * @returns {AnimationModel}
107
+ *
108
+ * @param {AnimationModel} options ?
109
+ * @returns {AnimationModel} ?
97
110
  */
98
111
  private getModel;
99
112
  /**
100
113
  * @private
114
+ * @param {AnimationModel} newProp ?
115
+ * @param {AnimationModel} oldProp ?
116
+ * @returns {void} ?
101
117
  */
102
118
  onPropertyChanged(newProp: AnimationModel, oldProp: AnimationModel): void;
103
119
  /**
104
120
  * Returns module name as animation
121
+ *
105
122
  * @private
123
+ * @returns {void} ?
106
124
  */
107
125
  getModuleName(): string;
108
126
  /**
127
+ *
109
128
  * @private
129
+ * @returns {void} ?
110
130
  */
111
131
  destroy(): void;
112
132
  }
@@ -131,13 +151,17 @@ export interface AnimationOptions extends AnimationModel {
131
151
  * rippleEffect(document.getElementById('ripple'));
132
152
  * </script>
133
153
  * ```
154
+ *
134
155
  * @private
135
- * @param HTMLElement element - Target element
136
- * @param RippleOptions rippleOptions - Ripple options .
156
+ * @param {HTMLElement} element - Target element
157
+ * @param {RippleOptions} rippleOptions - Ripple options .
158
+ * @param {Function} done .
159
+ * @returns {void} .
137
160
  */
138
161
  export declare function rippleEffect(element: HTMLElement, rippleOptions?: RippleOptions, done?: Function): () => void;
139
162
  /**
140
163
  * Ripple method arguments to handle ripple effect
164
+ *
141
165
  * @private
142
166
  */
143
167
  export interface RippleOptions {
@@ -165,7 +189,8 @@ export interface RippleOptions {
165
189
  export declare let isRippleEnabled: boolean;
166
190
  /**
167
191
  * Animation Module provides support to enable ripple effect functionality to Essential JS 2 components.
192
+ *
168
193
  * @param {boolean} isRipple Specifies the boolean value to enable or disable ripple effect.
169
- * @returns {boolean}
194
+ * @returns {boolean} ?
170
195
  */
171
196
  export declare function enableRipple(isRipple: boolean): boolean;