@syncfusion/ej2-base 19.2.57 → 19.3.53

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 +2 -90
  3. package/{ReadMe.md → README.md} +1 -1
  4. package/dist/ej2-base.umd.min.js +10 -1
  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 +10 -1
  11. package/dist/global/ej2-base.min.js.map +1 -1
  12. package/dist/global/index.d.ts +9 -0
  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 +212 -212
  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 +126 -121
  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 +13 -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 +2161 -0
  91. package/styles/bootstrap5-dark.scss +3 -0
  92. package/styles/bootstrap5.css +2161 -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
package/src/dom.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { VirtualObject } from './virtual-dom';
2
1
  export interface ElementProperties {
3
2
  id?: string;
4
3
  className?: string;
@@ -10,66 +9,86 @@ export interface ElementProperties {
10
9
  }
11
10
  /**
12
11
  * Function to create Html element.
13
- * @param tagName - Name of the tag, id and class names.
14
- * @param properties - Object to set properties in the element.
15
- * @param properties.id - To set the id to the created element.
16
- * @param properties.className - To add classes to the element.
17
- * @param properties.innerHTML - To set the innerHTML to element.
18
- * @param properties.styles - To set the some custom styles to element.
19
- * @param properties.attrs - To set the attributes to element.
12
+ *
13
+ * @param {string} tagName - Name of the tag, id and class names.
14
+ * @param {ElementProperties} properties - Object to set properties in the element.
15
+ * @param {ElementProperties} properties.id - To set the id to the created element.
16
+ * @param {ElementProperties} properties.className - To add classes to the element.
17
+ * @param {ElementProperties} properties.innerHTML - To set the innerHTML to element.
18
+ * @param {ElementProperties} properties.styles - To set the some custom styles to element.
19
+ * @param {ElementProperties} properties.attrs - To set the attributes to element.
20
+ * @returns {any} ?
20
21
  * @private
21
22
  */
22
23
  export declare function createElement(tagName: string, properties?: ElementProperties): HTMLElement;
23
24
  /**
24
25
  * The function used to add the classes to array of elements
26
+ *
25
27
  * @param {Element[]|NodeList} elements - An array of elements that need to add a list of classes
26
28
  * @param {string|string[]} classes - String or array of string that need to add an individual element as a class
29
+ * @returns {any} .
27
30
  * @private
28
31
  */
29
32
  export declare function addClass(elements: Element[] | NodeList, classes: string | string[]): Element[] | NodeList;
30
33
  /**
31
34
  * The function used to add the classes to array of elements
35
+ *
32
36
  * @param {Element[]|NodeList} elements - An array of elements that need to remove a list of classes
33
37
  * @param {string|string[]} classes - String or array of string that need to add an individual element as a class
38
+ * @returns {any} .
34
39
  * @private
35
40
  */
36
41
  export declare function removeClass(elements: Element[] | NodeList, classes: string | string[]): Element[] | NodeList;
37
42
  /**
38
43
  * The function used to check element is visible or not.
44
+ *
39
45
  * @param {Element|Node} element - An element the need to check visibility
46
+ * @returns {boolean} ?
40
47
  * @private
41
48
  */
42
- export declare function isVisible(element: Element | Node): Boolean;
49
+ export declare function isVisible(element: Element | Node): boolean;
43
50
  /**
44
51
  * The function used to insert an array of elements into a first of the element.
52
+ *
45
53
  * @param {Element[]|NodeList} fromElements - An array of elements that need to prepend.
46
54
  * @param {Element} toElement - An element that is going to prepend.
55
+ * @param {boolean} isEval - ?
56
+ * @returns {Element[] | NodeList} ?
47
57
  * @private
48
58
  */
49
- export declare function prepend(fromElements: Element[] | NodeList, toElement: Element, isEval?: Boolean): Element[] | NodeList;
59
+ export declare function prepend(fromElements: Element[] | NodeList, toElement: Element, isEval?: boolean): Element[] | NodeList;
50
60
  /**
51
61
  * The function used to insert an array of elements into last of the element.
62
+ *
52
63
  * @param {Element[]|NodeList} fromElements - An array of elements that need to append.
53
64
  * @param {Element} toElement - An element that is going to prepend.
65
+ * @param {boolean} isEval - ?
66
+ * @returns {Element[] | NodeList} ?
54
67
  * @private
55
68
  */
56
- export declare function append(fromElements: Element[] | NodeList, toElement: Element, isEval?: Boolean): Element[] | NodeList;
69
+ export declare function append(fromElements: Element[] | NodeList, toElement: Element, isEval?: boolean): Element[] | NodeList;
57
70
  /**
58
- * The function used to remove the element from the
71
+ * The function used to remove the element from parentnode
72
+ *
59
73
  * @param {Element|Node|HTMLElement} element - An element that is going to detach from the Dom
74
+ * @returns {any} ?
60
75
  * @private
61
76
  */
62
77
  export declare function detach(element: Element | Node | HTMLElement): any;
63
78
  /**
64
79
  * The function used to remove the element from Dom also clear the bounded events
80
+ *
65
81
  * @param {Element|Node|HTMLElement} element - An element remove from the Dom
82
+ * @returns {void} ?
66
83
  * @private
67
84
  */
68
85
  export declare function remove(element: Element | Node | HTMLElement): void;
69
86
  /**
70
87
  * The function helps to set multiple attributes to an element
88
+ *
71
89
  * @param {Element|Node} element - An element that need to set attributes.
72
- * @param {{[key:string]:string}} attributes - JSON Object that is going to as attributes.
90
+ * @param {string} attributes - JSON Object that is going to as attributes.
91
+ * @returns {Element} ?
73
92
  * @private
74
93
  */
75
94
  export declare function attributes(element: Element | Node | any, attributes: {
@@ -77,44 +96,57 @@ export declare function attributes(element: Element | Node | any, attributes: {
77
96
  }): Element;
78
97
  /**
79
98
  * The function selects the element from giving context.
80
- * @param {string} selector - Selector string need fetch element from the
81
- * @param {Document|Element=document} context - It is an optional type, That specifies a Dom context.
99
+ *
100
+ * @param {string} selector - Selector string need fetch element
101
+ * @param {Document|Element} context - It is an optional type, That specifies a Dom context.
102
+ * @param {boolean} needsVDOM ?
103
+ * @returns {any} ?
82
104
  * @private
83
105
  */
84
106
  export declare function select(selector: string, context?: Document | Element, needsVDOM?: boolean): any;
85
107
  /**
86
108
  * The function selects an array of element from the given context.
87
- * @param {string} selector - Selector string need fetch element from the
88
- * @param {Document|Element=document} context - It is an optional type, That specifies a Dom context.
109
+ *
110
+ * @param {string} selector - Selector string need fetch element
111
+ * @param {Document|Element} context - It is an optional type, That specifies a Dom context.
112
+ * @param {boolean} needsVDOM ?
113
+ * @returns {HTMLElement[]} ?
89
114
  * @private
90
115
  */
91
116
  export declare function selectAll(selector: string, context?: Document | Element, needsVDOM?: boolean): HTMLElement[];
92
117
  /**
93
118
  * Returns single closest parent element based on class selector.
119
+ *
94
120
  * @param {Element} element - An element that need to find the closest element.
95
121
  * @param {string} selector - A classSelector of closest element.
122
+ * @returns {Element} ?
96
123
  * @private
97
124
  */
98
125
  export declare function closest(element: Element | Node, selector: string): Element;
99
126
  /**
100
127
  * Returns all sibling elements of the given element.
128
+ *
101
129
  * @param {Element|Node} element - An element that need to get siblings.
130
+ * @returns {Element[]} ?
102
131
  * @private
103
132
  */
104
133
  export declare function siblings(element: Element | Node): Element[];
105
134
  /**
106
135
  * set the value if not exist. Otherwise set the existing value
136
+ *
107
137
  * @param {HTMLElement} element - An element to which we need to set value.
108
138
  * @param {string} property - Property need to get or set.
109
139
  * @param {string} value - value need to set.
140
+ * @returns {string} ?
110
141
  * @private
111
142
  */
112
143
  export declare function getAttributeOrDefault(element: HTMLElement, property: string, value: string): string;
113
144
  /**
114
145
  * Set the style attributes to Html element.
146
+ *
115
147
  * @param {HTMLElement} element - Element which we want to set attributes
116
148
  * @param {any} attrs - Set the given attributes to element
117
- * @return {void}
149
+ * @returns {void} ?
118
150
  * @private
119
151
  */
120
152
  export declare function setStyleAttribute(element: HTMLElement, attrs: {
@@ -122,28 +154,47 @@ export declare function setStyleAttribute(element: HTMLElement, attrs: {
122
154
  }): void;
123
155
  /**
124
156
  * Method for add and remove classes to a dom element.
157
+ *
125
158
  * @param {Element} element - Element for add and remove classes
126
159
  * @param {string[]} addClasses - List of classes need to be add to the element
127
160
  * @param {string[]} removeClasses - List of classes need to be remove from the element
128
- * @return {void}
161
+ * @returns {void} ?
129
162
  * @private
130
163
  */
131
164
  export declare function classList(element: Element, addClasses: string[], removeClasses: string[]): void;
132
165
  /**
133
166
  * Method to check whether the element matches the given selector.
167
+ *
134
168
  * @param {Element} element - Element to compare with the selector.
135
169
  * @param {string} selector - String selector which element will satisfy.
136
- * @return {void}
170
+ * @returns {void} ?
137
171
  * @private
138
172
  */
139
173
  export declare function matches(element: Element, selector: string): boolean;
140
- export declare function includeInnerHTML(ele: HTMLElement & VirtualObject, innerHTML: string): void;
141
- export declare function containsClass(ele: HTMLElement & VirtualObject, className: string): any;
174
+ /**
175
+ * Method to get the html text from DOM.
176
+ *
177
+ * @param {HTMLElement} ele - Element to compare with the selector.
178
+ * @param {string} innerHTML - String selector which element will satisfy.
179
+ * @returns {void} ?
180
+ * @private
181
+ */
182
+ export declare function includeInnerHTML(ele: HTMLElement, innerHTML: string): void;
183
+ /**
184
+ * Method to get the containsclass.
185
+ *
186
+ * @param {HTMLElement} ele - Element to compare with the selector.
187
+ * @param {string} className - String selector which element will satisfy.
188
+ * @returns {any} ?
189
+ * @private
190
+ */
191
+ export declare function containsClass(ele: HTMLElement, className: string): any;
142
192
  /**
143
193
  * Method to check whether the element matches the given selector.
144
- * @param {} element - Element to compare with the selector.
145
- * @param {string} selector - String selector which element will satisfy.
146
- * @return {Element | VirtualObject}
194
+ *
195
+ * @param {Object} element - Element to compare with the selector.
196
+ * @param {boolean} deep ?
197
+ * @returns {any} ?
147
198
  * @private
148
199
  */
149
200
  export declare function cloneNode(element: Object, deep?: boolean): any;