@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.
- package/.eslintrc.json +1 -1
- package/CHANGELOG.md +1 -89
- package/README.md +1 -1
- package/dist/ej2-base.umd.min.js +2 -2
- package/dist/ej2-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-base.es2015.js +2650 -2401
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +3186 -2948
- package/dist/es6/ej2-base.es5.js.map +1 -1
- package/dist/global/ej2-base.min.js +2 -2
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/e2e/crypto.js +1 -1
- package/e2e/index.d.ts +0 -3
- package/e2e/m.protractor.config.js +1 -1
- package/e2e/protractor.config.js +1 -1
- package/helpers/e2e/base.js +3 -3
- package/package.json +7 -64
- package/src/ajax.d.ts +24 -10
- package/src/ajax.js +14 -6
- package/src/animation-model.d.ts +12 -4
- package/src/animation.d.ts +37 -12
- package/src/animation.js +48 -22
- package/src/base.d.ts +31 -11
- package/src/base.js +34 -16
- package/src/browser.d.ts +63 -25
- package/src/browser.js +60 -15
- package/src/child-property.d.ts +21 -10
- package/src/child-property.js +23 -13
- package/src/component-model.d.ts +4 -1
- package/src/component.d.ts +42 -5
- package/src/component.js +52 -35
- package/src/dom.d.ts +76 -25
- package/src/dom.js +128 -124
- package/src/draggable-model.d.ts +5 -0
- package/src/draggable.d.ts +4 -1
- package/src/draggable.js +8 -2
- package/src/droppable-model.d.ts +7 -4
- package/src/droppable.d.ts +7 -3
- package/src/droppable.js +1 -0
- package/src/event-handler.d.ts +10 -6
- package/src/event-handler.js +11 -7
- package/src/hijri-parser.d.ts +12 -0
- package/src/hijri-parser.js +111 -90
- package/src/internationalization.d.ts +54 -21
- package/src/internationalization.js +55 -18
- package/src/intl/date-formatter.d.ts +19 -8
- package/src/intl/date-formatter.js +36 -13
- package/src/intl/date-parser.d.ts +30 -23
- package/src/intl/date-parser.js +61 -42
- package/src/intl/intl-base.d.ts +123 -46
- package/src/intl/intl-base.js +451 -377
- package/src/intl/number-formatter.d.ts +45 -34
- package/src/intl/number-formatter.js +47 -35
- package/src/intl/number-parser.d.ts +11 -8
- package/src/intl/number-parser.js +14 -11
- package/src/intl/parser-base.d.ts +38 -13
- package/src/intl/parser-base.js +45 -16
- package/src/keyboard-model.d.ts +5 -2
- package/src/keyboard.d.ts +26 -8
- package/src/keyboard.js +24 -9
- package/src/l10n.d.ts +16 -7
- package/src/l10n.js +16 -7
- package/src/module-loader.d.ts +13 -8
- package/src/module-loader.js +13 -9
- package/src/notify-property-change.d.ts +19 -7
- package/src/notify-property-change.js +140 -24
- package/src/observer.d.ts +17 -5
- package/src/observer.js +19 -7
- package/src/sanitize-helper.d.ts +1 -0
- package/src/sanitize-helper.js +1 -1
- package/src/template-engine.d.ts +30 -4
- package/src/template-engine.js +37 -12
- package/src/template.d.ts +8 -3
- package/src/template.js +67 -19
- package/src/touch-model.d.ts +11 -4
- package/src/touch.d.ts +51 -9
- package/src/touch.js +45 -13
- package/src/util.d.ts +67 -37
- package/src/util.js +99 -49
- package/styles/_bootstrap-definition.scss +0 -1
- package/styles/_bootstrap5-dark-definition.scss +10 -0
- package/styles/_bootstrap5-definition.scss +9 -0
- package/styles/_fabric-dark-definition.scss +0 -1
- package/styles/_highcontrast-light-definition.scss +1 -0
- package/styles/_material-definition.scss +1 -0
- package/styles/bootstrap-dark.css +2613 -32
- package/styles/bootstrap.css +2613 -32
- package/styles/bootstrap4.css +2149 -32
- package/styles/bootstrap5-dark.css +2157 -0
- package/styles/bootstrap5-dark.scss +3 -0
- package/styles/bootstrap5.css +2157 -0
- package/styles/bootstrap5.scss +3 -0
- package/styles/common/_core.scss +28 -63
- package/styles/definition/_bootstrap-dark.scss +3 -3
- package/styles/definition/_bootstrap.scss +1 -1
- package/styles/definition/_bootstrap5-dark.scss +357 -0
- package/styles/definition/_bootstrap5.scss +356 -0
- package/styles/definition/_material-dark.scss +1 -1
- package/styles/definition/_tailwind-dark.scss +18 -1
- package/styles/definition/_tailwind.scss +17 -0
- package/styles/fabric-dark.css +2589 -32
- package/styles/fabric.css +2589 -32
- package/styles/highcontrast-light.css +2573 -32
- package/styles/highcontrast.css +2573 -32
- package/styles/material-dark.css +2549 -32
- package/styles/material.css +2549 -32
- package/styles/tailwind-dark.css +2221 -32
- package/styles/tailwind.css +2221 -32
- package/src/virtual-dom.d.ts +0 -32
- package/src/virtual-dom.js +0 -449
package/src/event-handler.js
CHANGED
|
@@ -2,7 +2,6 @@ import { debounce, extend } from './util';
|
|
|
2
2
|
import { Browser } from './browser';
|
|
3
3
|
/**
|
|
4
4
|
* EventHandler class provides option to add, remove, clear and trigger events to a HTML DOM element
|
|
5
|
-
* @private
|
|
6
5
|
* ```html
|
|
7
6
|
* <div id="Eventdiv"> </div>
|
|
8
7
|
* <script>
|
|
@@ -35,12 +34,13 @@ var EventHandler = /** @class */ (function () {
|
|
|
35
34
|
};
|
|
36
35
|
/**
|
|
37
36
|
* Add an event to the specified DOM element.
|
|
37
|
+
*
|
|
38
38
|
* @param {any} element - Target HTML DOM element
|
|
39
39
|
* @param {string} eventName - A string that specifies the name of the event
|
|
40
40
|
* @param {Function} listener - Specifies the function to run when the event occurs
|
|
41
41
|
* @param {Object} bindTo - A object that binds 'this' variable in the event handler
|
|
42
|
-
* @param {number}
|
|
43
|
-
* @
|
|
42
|
+
* @param {number} intDebounce - Specifies at what interval given event listener should be triggered.
|
|
43
|
+
* @returns {Function} ?
|
|
44
44
|
*/
|
|
45
45
|
EventHandler.add = function (element, eventName, listener, bindTo, intDebounce) {
|
|
46
46
|
var eventData = EventHandler.addOrGetEventData(element);
|
|
@@ -72,10 +72,11 @@ var EventHandler = /** @class */ (function () {
|
|
|
72
72
|
};
|
|
73
73
|
/**
|
|
74
74
|
* Remove an event listener that has been attached before.
|
|
75
|
+
*
|
|
75
76
|
* @param {any} element - Specifies the target html element to remove the event
|
|
76
77
|
* @param {string} eventName - A string that specifies the name of the event to remove
|
|
77
78
|
* @param {Function} listener - Specifies the function to remove
|
|
78
|
-
* @
|
|
79
|
+
* @returns {void} ?
|
|
79
80
|
*/
|
|
80
81
|
EventHandler.remove = function (element, eventName, listener) {
|
|
81
82
|
var eventData = EventHandler.addOrGetEventData(element);
|
|
@@ -102,13 +103,16 @@ var EventHandler = /** @class */ (function () {
|
|
|
102
103
|
};
|
|
103
104
|
/**
|
|
104
105
|
* Clear all the event listeners that has been previously attached to the element.
|
|
106
|
+
*
|
|
105
107
|
* @param {any} element - Specifies the target html element to clear the events
|
|
106
|
-
* @
|
|
108
|
+
* @returns {void} ?
|
|
107
109
|
*/
|
|
108
110
|
EventHandler.clearEvents = function (element) {
|
|
109
111
|
var eventData;
|
|
110
112
|
var copyData;
|
|
113
|
+
// eslint-disable-next-line
|
|
111
114
|
eventData = EventHandler.addOrGetEventData(element);
|
|
115
|
+
// eslint-disable-next-line
|
|
112
116
|
copyData = extend([], copyData, eventData);
|
|
113
117
|
for (var i = 0; i < copyData.length; i++) {
|
|
114
118
|
element.removeEventListener(copyData[i].name, copyData[i].debounce);
|
|
@@ -117,15 +121,15 @@ var EventHandler = /** @class */ (function () {
|
|
|
117
121
|
};
|
|
118
122
|
/**
|
|
119
123
|
* Trigger particular event of the element.
|
|
124
|
+
*
|
|
120
125
|
* @param {any} element - Specifies the target html element to trigger the events
|
|
121
126
|
* @param {string} eventName - Specifies the event to trigger for the specified element.
|
|
122
127
|
* Can be a custom event, or any of the standard events.
|
|
123
128
|
* @param {any} eventProp - Additional parameters to pass on to the event properties
|
|
124
|
-
* @
|
|
129
|
+
* @returns {void} ?
|
|
125
130
|
*/
|
|
126
131
|
EventHandler.trigger = function (element, eventName, eventProp) {
|
|
127
132
|
var eventData = EventHandler.addOrGetEventData(element);
|
|
128
|
-
var fn = null;
|
|
129
133
|
for (var _i = 0, eventData_1 = eventData; _i < eventData_1.length; _i++) {
|
|
130
134
|
var event_1 = eventData_1[_i];
|
|
131
135
|
if (event_1.name === eventName) {
|
package/src/hijri-parser.d.ts
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
* Hijri parser
|
|
3
3
|
*/
|
|
4
4
|
export declare namespace HijriParser {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @param {Date} gDate ?
|
|
8
|
+
* @returns {Object} ?
|
|
9
|
+
*/
|
|
5
10
|
function getHijriDate(gDate: Date): Object;
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @param {number} year ?
|
|
14
|
+
* @param {number} month ?
|
|
15
|
+
* @param {number} day ?
|
|
16
|
+
* @returns {Date} ?
|
|
17
|
+
*/
|
|
6
18
|
function toGregorian(year: number, month: number, day: number): Date;
|
|
7
19
|
}
|
package/src/hijri-parser.js
CHANGED
|
@@ -1,98 +1,112 @@
|
|
|
1
1
|
/***
|
|
2
2
|
* Hijri parser
|
|
3
3
|
*/
|
|
4
|
+
// eslint-disable-next-line
|
|
4
5
|
export var HijriParser;
|
|
5
6
|
(function (HijriParser) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
32740, 32770, 32799, 32829, 32858, 32888, 32917, 32947, 32976, 33006, 33035, 33065, 33094, 33124, 33153, 33183, 33213, 33243,
|
|
15
|
-
33331, 33361, 33390, 33420, 33450, 33479, 33509, 33539, 33568, 33598, 33627, 33657, 33686, 33716, 33745, 33775,
|
|
16
|
-
33922, 33952, 33981, 34011, 34040, 34069, 34099, 34128, 34158, 34187, 34217, 34247, 34277, 34306,
|
|
17
|
-
34512, 34542, 34571, 34601, 34631, 34660, 34690, 34719, 34749, 34778, 34808, 34837,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
7
|
+
var dateCorrection = [28607, 28636, 28665, 28695, 28724, 28754, 28783, 28813, 28843, 28872, 28901, 28931, 28960, 28990,
|
|
8
|
+
29019, 29049, 29078, 29108, 29137, 29167, 29196, 29226, 29255, 29285, 29315, 29345, 29375, 29404, 29434, 29463, 29492, 29522,
|
|
9
|
+
29551, 29580, 29610, 29640, 29669, 29699, 29729, 29759, 29788, 29818, 29847, 29876, 29906, 29935, 29964, 29994, 30023, 30053,
|
|
10
|
+
30082, 30112, 30141, 30171, 30200, 30230, 30259, 30289, 30318, 30348, 30378, 30408, 30437, 30467, 30496, 30526, 30555, 30585,
|
|
11
|
+
30614, 30644, 30673, 30703, 30732, 30762, 30791, 30821, 30850, 30880, 30909, 30939, 30968, 30998, 31027, 31057, 31086, 31116,
|
|
12
|
+
31145, 31175, 31204, 31234, 31263, 31293, 31322, 31352, 31381, 31411, 31441, 31471, 31500, 31530, 31559, 31589, 31618, 31648,
|
|
13
|
+
31676, 31706, 31736, 31766, 31795, 31825, 31854, 31884, 31913, 31943, 31972, 32002, 32031, 32061, 32090, 32120, 32150, 32180,
|
|
14
|
+
32209, 32239, 32268, 32298, 32327, 32357, 32386, 32416, 32445, 32475, 32504, 32534, 32563, 32593, 32622, 32652, 32681, 32711,
|
|
15
|
+
32740, 32770, 32799, 32829, 32858, 32888, 32917, 32947, 32976, 33006, 33035, 33065, 33094, 33124, 33153, 33183, 33213, 33243,
|
|
16
|
+
33272, 33302, 33331, 33361, 33390, 33420, 33450, 33479, 33509, 33539, 33568, 33598, 33627, 33657, 33686, 33716, 33745, 33775,
|
|
17
|
+
33804, 33834, 33863, 33893, 33922, 33952, 33981, 34011, 34040, 34069, 34099, 34128, 34158, 34187, 34217, 34247, 34277, 34306,
|
|
18
|
+
34336, 34365, 34395, 34424, 34454, 34483, 34512, 34542, 34571, 34601, 34631, 34660, 34690, 34719, 34749, 34778, 34808, 34837,
|
|
19
|
+
34867, 34896, 34926, 34955, 34985, 35015, 35044, 35074, 35103, 35133, 35162, 35192, 35222, 35251, 35280, 35310, 35340, 35370,
|
|
20
|
+
35399, 35429, 35458, 35488, 35517, 35547, 35576, 35605, 35635, 35665, 35694, 35723, 35753, 35782, 35811, 35841, 35871, 35901,
|
|
21
|
+
35930, 35960, 35989, 36019, 36048, 36078, 36107, 36136, 36166, 36195, 36225, 36254, 36284, 36314, 36343, 36373, 36403, 36433,
|
|
22
|
+
36462, 36492, 36521, 36551, 36580, 36610, 36639, 36669, 36698, 36728, 36757, 36786, 36816, 36845, 36875, 36904, 36934, 36963,
|
|
23
|
+
36993, 37022, 37052, 37081, 37111, 37141, 37170, 37200, 37229, 37259, 37288, 37318, 37347, 37377, 37406, 37436, 37465, 37495,
|
|
24
|
+
37524, 37554, 37584, 37613, 37643, 37672, 37701, 37731, 37760, 37790, 37819, 37849, 37878, 37908, 37938, 37967, 37997, 38027,
|
|
25
|
+
38056, 38085, 38115, 38144, 38174, 38203, 38233, 38262, 38292, 38322, 38351, 38381, 38410, 38440, 38469, 38499, 38528, 38558,
|
|
26
|
+
38587, 38617, 38646, 38676, 38705, 38735, 38764, 38794, 38823, 38853, 38882, 38912, 38941, 38971, 39001, 39030, 39059, 39089,
|
|
27
|
+
39118, 39148, 39178, 39208, 39237, 39267, 39297, 39326, 39355, 39385, 39414, 39444, 39473, 39503, 39532, 39562, 39592, 39621,
|
|
28
|
+
39650, 39680, 39709, 39739, 39768, 39798, 39827, 39857, 39886, 39916, 39946, 39975, 40005, 40035, 40064, 40094, 40123, 40153,
|
|
29
|
+
40182, 40212, 40241, 40271, 40300, 40330, 40359, 40389, 40418, 40448, 40477, 40507, 40536, 40566, 40595, 40625, 40655, 40685,
|
|
30
|
+
40714, 40744, 40773, 40803, 40832, 40862, 40892, 40921, 40951, 40980, 41009, 41039, 41068, 41098, 41127, 41157, 41186, 41216,
|
|
31
|
+
41245, 41275, 41304, 41334, 41364, 41393, 41422, 41452, 41481, 41511, 41540, 41570, 41599, 41629, 41658, 41688, 41718, 41748,
|
|
32
|
+
41777, 41807, 41836, 41865, 41894, 41924, 41953, 41983, 42012, 42042, 42072, 42102, 42131, 42161, 42190, 42220, 42249, 42279,
|
|
33
|
+
42308, 42337, 42367, 42397, 42426, 42456, 42485, 42515, 42545, 42574, 42604, 42633, 42662, 42692, 42721, 42751, 42780, 42810,
|
|
34
|
+
42839, 42869, 42899, 42929, 42958, 42988, 43017, 43046, 43076, 43105, 43135, 43164, 43194, 43223, 43253, 43283, 43312, 43342,
|
|
35
|
+
43371, 43401, 43430, 43460, 43489, 43519, 43548, 43578, 43607, 43637, 43666, 43696, 43726, 43755, 43785, 43814, 43844, 43873,
|
|
36
|
+
43903, 43932, 43962, 43991, 44021, 44050, 44080, 44109, 44139, 44169, 44198, 44228, 44258, 44287, 44317, 44346, 44375, 44405,
|
|
37
|
+
44434, 44464, 44493, 44523, 44553, 44582, 44612, 44641, 44671, 44700, 44730, 44759, 44788, 44818, 44847, 44877, 44906, 44936,
|
|
38
|
+
44966, 44996, 45025, 45055, 45084, 45114, 45143, 45172, 45202, 45231, 45261, 45290, 45320, 45350, 45380, 45409, 45439, 45468,
|
|
39
|
+
45498, 45527, 45556, 45586, 45615, 45644, 45674, 45704, 45733, 45763, 45793, 45823, 45852, 45882, 45911, 45940, 45970, 45999,
|
|
40
|
+
46028, 46058, 46088, 46117, 46147, 46177, 46206, 46236, 46265, 46295, 46324, 46354, 46383, 46413, 46442, 46472, 46501, 46531,
|
|
41
|
+
46560, 46590, 46620, 46649, 46679, 46708, 46738, 46767, 46797, 46826, 46856, 46885, 46915, 46944, 46974, 47003, 47033, 47063,
|
|
42
|
+
47092, 47122, 47151, 47181, 47210, 47240, 47269, 47298, 47328, 47357, 47387, 47417, 47446, 47476, 47506, 47535, 47565, 47594,
|
|
43
|
+
47624, 47653, 47682, 47712, 47741, 47771, 47800, 47830, 47860, 47890, 47919, 47949, 47978, 48008, 48037, 48066, 48096, 48125,
|
|
44
|
+
48155, 48184, 48214, 48244, 48273, 48303, 48333, 48362, 48392, 48421, 48450, 48480, 48509, 48538, 48568, 48598, 48627, 48657,
|
|
45
|
+
48687, 48717, 48746, 48776, 48805, 48834, 48864, 48893, 48922, 48952, 48982, 49011, 49041, 49071, 49100, 49130, 49160, 49189,
|
|
46
|
+
49218, 49248, 49277, 49306, 49336, 49365, 49395, 49425, 49455, 49484, 49514, 49543, 49573, 49602, 49632, 49661, 49690, 49720,
|
|
47
|
+
49749, 49779, 49809, 49838, 49868, 49898, 49927, 49957, 49986, 50016, 50045, 50075, 50104, 50133, 50163, 50192, 50222, 50252,
|
|
48
|
+
50281, 50311, 50340, 50370, 50400, 50429, 50459, 50488, 50518, 50547, 50576, 50606, 50635, 50665, 50694, 50724, 50754, 50784,
|
|
49
|
+
50813, 50843, 50872, 50902, 50931, 50960, 50990, 51019, 51049, 51078, 51108, 51138, 51167, 51197, 51227, 51256, 51286, 51315,
|
|
50
|
+
51345, 51374, 51403, 51433, 51462, 51492, 51522, 51552, 51582, 51611, 51641, 51670, 51699, 51729, 51758, 51787, 51816, 51846,
|
|
51
|
+
51876, 51906, 51936, 51965, 51995, 52025, 52054, 52083, 52113, 52142, 52171, 52200, 52230, 52260, 52290, 52319, 52349, 52379,
|
|
52
|
+
52408, 52438, 52467, 52497, 52526, 52555, 52585, 52614, 52644, 52673, 52703, 52733, 52762, 52792, 52822, 52851, 52881, 52910,
|
|
53
|
+
52939, 52969, 52998, 53028, 53057, 53087, 53116, 53146, 53176, 53205, 53235, 53264, 53294, 53324, 53353, 53383, 53412, 53441,
|
|
54
|
+
53471, 53500, 53530, 53559, 53589, 53619, 53648, 53678, 53708, 53737, 53767, 53796, 53825, 53855, 53884, 53913, 53943, 53973,
|
|
55
|
+
54003, 54032, 54062, 54092, 54121, 54151, 54180, 54209, 54239, 54268, 54297, 54327, 54357, 54387, 54416, 54446, 54476, 54505,
|
|
56
|
+
54535, 54564, 54593, 54623, 54652, 54681, 54711, 54741, 54770, 54800, 54830, 54859, 54889, 54919, 54948, 54977, 55007, 55036,
|
|
57
|
+
55066, 55095, 55125, 55154, 55184, 55213, 55243, 55273, 55302, 55332, 55361, 55391, 55420, 55450, 55479, 55508, 55538, 55567,
|
|
58
|
+
55597, 55627, 55657, 55686, 55716, 55745, 55775, 55804, 55834, 55863, 55892, 55922, 55951, 55981, 56011, 56040, 56070, 56100,
|
|
59
|
+
56129, 56159, 56188, 56218, 56247, 56276, 56306, 56335, 56365, 56394, 56424, 56454, 56483, 56513, 56543, 56572, 56601, 56631,
|
|
60
|
+
56660, 56690, 56719, 56749, 56778, 56808, 56837, 56867, 56897, 56926, 56956, 56985, 57015, 57044, 57074, 57103, 57133, 57162,
|
|
61
|
+
57192, 57221, 57251, 57280, 57310, 57340, 57369, 57399, 57429, 57458, 57487, 57517, 57546, 57576, 57605, 57634, 57664, 57694,
|
|
62
|
+
57723, 57753, 57783, 57813, 57842, 57871, 57901, 57930, 57959, 57989, 58018, 58048, 58077, 58107, 58137, 58167, 58196, 58226,
|
|
63
|
+
58255, 58285, 58314, 58343, 58373, 58402, 58432, 58461, 58491, 58521, 58551, 58580, 58610, 58639, 58669, 58698, 58727, 58757,
|
|
64
|
+
58786, 58816, 58845, 58875, 58905, 58934, 58964, 58994, 59023, 59053, 59082, 59111, 59141, 59170, 59200, 59229, 59259, 59288,
|
|
65
|
+
59318, 59348, 59377, 59407, 59436, 59466, 59495, 59525, 59554, 59584, 59613, 59643, 59672, 59702, 59731, 59761, 59791, 59820,
|
|
66
|
+
59850, 59879, 59909, 59939, 59968, 59997, 60027, 60056, 60086, 60115, 60145, 60174, 60204, 60234, 60264, 60293, 60323, 60352,
|
|
67
|
+
60381, 60411, 60440, 60469, 60499, 60528, 60558, 60588, 60618, 60648, 60677, 60707, 60736, 60765, 60795, 60824, 60853, 60883,
|
|
68
|
+
60912, 60942, 60972, 61002, 61031, 61061, 61090, 61120, 61149, 61179, 61208, 61237, 61267, 61296, 61326, 61356, 61385, 61415,
|
|
69
|
+
61445, 61474, 61504, 61533, 61563, 61592, 61621, 61651, 61680, 61710, 61739, 61769, 61799, 61828, 61858, 61888, 61917, 61947,
|
|
70
|
+
61976, 62006, 62035, 62064, 62094, 62123, 62153, 62182, 62212, 62242, 62271, 62301, 62331, 62360, 62390, 62419, 62448, 62478,
|
|
71
|
+
62507, 62537, 62566, 62596, 62625, 62655, 62685, 62715, 62744, 62774, 62803, 62832, 62862, 62891, 62921, 62950, 62980, 63009,
|
|
72
|
+
63039, 63069, 63099, 63128, 63157, 63187, 63216, 63246, 63275, 63305, 63334, 63363, 63393, 63423, 63453, 63482, 63512, 63541,
|
|
73
|
+
63571, 63600, 63630, 63659, 63689, 63718, 63747, 63777, 63807, 63836, 63866, 63895, 63925, 63955, 63984, 64014, 64043, 64073,
|
|
74
|
+
64102, 64131, 64161, 64190, 64220, 64249, 64279, 64309, 64339, 64368, 64398, 64427, 64457, 64486, 64515, 64545, 64574, 64603,
|
|
75
|
+
64633, 64663, 64692, 64722, 64752, 64782, 64811, 64841, 64870, 64899, 64929, 64958, 64987, 65017, 65047, 65076, 65106, 65136,
|
|
76
|
+
65166, 65195, 65225, 65254, 65283, 65313, 65342, 65371, 65401, 65431, 65460, 65490, 65520, 65549, 65579, 65608, 65638, 65667,
|
|
77
|
+
65697, 65726, 65755, 65785, 65815, 65844, 65874, 65903, 65933, 65963, 65992, 66022, 66051, 66081, 66110, 66140, 66169, 66199,
|
|
78
|
+
66228, 66258, 66287, 66317, 66346, 66376, 66405, 66435, 66465, 66494, 66524, 66553, 66583, 66612, 66641, 66671, 66700, 66730,
|
|
79
|
+
66760, 66789, 66819, 66849, 66878, 66908, 66937, 66967, 66996, 67025, 67055, 67084, 67114, 67143, 67173, 67203, 67233, 67262,
|
|
80
|
+
67292, 67321, 67351, 67380, 67409, 67439, 67468, 67497, 67527, 67557, 67587, 67617, 67646, 67676, 67705, 67735, 67764, 67793,
|
|
81
|
+
67823, 67852, 67882, 67911, 67941, 67971, 68000, 68030, 68060, 68089, 68119, 68148, 68177, 68207, 68236, 68266, 68295, 68325,
|
|
82
|
+
68354, 68384, 68414, 68443, 68473, 68502, 68532, 68561, 68591, 68620, 68650, 68679, 68708, 68738, 68768, 68797, 68827, 68857,
|
|
83
|
+
68886, 68916, 68946, 68975, 69004, 69034, 69063, 69092, 69122, 69152, 69181, 69211, 69240, 69270, 69300, 69330, 69359, 69388,
|
|
84
|
+
69418, 69447, 69476, 69506, 69535, 69565, 69595, 69624, 69654, 69684, 69713, 69743, 69772, 69802, 69831, 69861, 69890, 69919,
|
|
85
|
+
69949, 69978, 70008, 70038, 70067, 70097, 70126, 70156, 70186, 70215, 70245, 70274, 70303, 70333, 70362, 70392, 70421, 70451,
|
|
86
|
+
70481, 70510, 70540, 70570, 70599, 70629, 70658, 70687, 70717, 70746, 70776, 70805, 70835, 70864, 70894, 70924, 70954, 70983,
|
|
87
|
+
71013, 71042, 71071, 71101, 71130, 71159, 71189, 71218, 71248, 71278, 71308, 71337, 71367, 71397, 71426, 71455, 71485, 71514,
|
|
88
|
+
71543, 71573, 71602, 71632, 71662, 71691, 71721, 71751, 71781, 71810, 71839, 71869, 71898, 71927, 71957, 71986, 72016, 72046,
|
|
89
|
+
72075, 72105, 72135, 72164, 72194, 72223, 72253, 72282, 72311, 72341, 72370, 72400, 72429, 72459, 72489, 72518, 72548, 72577,
|
|
90
|
+
72607, 72637, 72666, 72695, 72725, 72754, 72784, 72813, 72843, 72872, 72902, 72931, 72961, 72991, 73020, 73050, 73080, 73109,
|
|
91
|
+
73139, 73168, 73197, 73227, 73256, 73286, 73315, 73345, 73375, 73404, 73434, 73464, 73493, 73523, 73552, 73581, 73611, 73640,
|
|
92
|
+
73669, 73699, 73729, 73758, 73788, 73818, 73848, 73877, 73907, 73936, 73965, 73995, 74024, 74053, 74083, 74113, 74142, 74172,
|
|
93
|
+
74202, 74231, 74261, 74291, 74320, 74349, 74379, 74408, 74437, 74467, 74497, 74526, 74556, 74586, 74615, 74645, 74675, 74704,
|
|
94
|
+
74733, 74763, 74792, 74822, 74851, 74881, 74910, 74940, 74969, 74999, 75029, 75058, 75088, 75117, 75147, 75176, 75206, 75235,
|
|
95
|
+
75264, 75294, 75323, 75353, 75383, 75412, 75442, 75472, 75501, 75531, 75560, 75590, 75619, 75648, 75678, 75707, 75737, 75766,
|
|
96
|
+
75796, 75826, 75856, 75885, 75915, 75944, 75974, 76003, 76032, 76062, 76091, 76121, 76150, 76180, 76210, 76239, 76269, 76299,
|
|
97
|
+
76328, 76358, 76387, 76416, 76446, 76475, 76505, 76534, 76564, 76593, 76623, 76653, 76682, 76712, 76741, 76771, 76801, 76830,
|
|
98
|
+
76859, 76889, 76918, 76948, 76977, 77007, 77036, 77066, 77096, 77125, 77155, 77185, 77214, 77243, 77273, 77302, 77332, 77361,
|
|
99
|
+
77390, 77420, 77450, 77479, 77509, 77539, 77569, 77598, 77627, 77657, 77686, 77715, 77745, 77774, 77804, 77833, 77863, 77893,
|
|
100
|
+
77923, 77952, 77982, 78011, 78041, 78070, 78099, 78129, 78158, 78188, 78217, 78247, 78277, 78307, 78336, 78366, 78395, 78425,
|
|
101
|
+
78454, 78483, 78513, 78542, 78572, 78601, 78631, 78661, 78690, 78720, 78750, 78779, 78808, 78838, 78867, 78897, 78926, 78956,
|
|
102
|
+
78985, 79015, 79044, 79074, 79104, 79133, 79163, 79192, 79222, 79251, 79281, 79310, 79340, 79369, 79399, 79428, 79458, 79487,
|
|
103
|
+
79517, 79546, 79576, 79606, 79635, 79665, 79695, 79724, 79753, 79783, 79812, 79841, 79871, 79900, 79930, 79960, 79990
|
|
104
|
+
];
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @param {Date} gDate ?
|
|
108
|
+
* @returns {Object} ?
|
|
109
|
+
*/
|
|
96
110
|
function getHijriDate(gDate) {
|
|
97
111
|
var day = gDate.getDate();
|
|
98
112
|
var month = gDate.getMonth();
|
|
@@ -154,6 +168,13 @@ export var HijriParser;
|
|
|
154
168
|
return { year: hYear, month: hmonth, date: hDate };
|
|
155
169
|
}
|
|
156
170
|
HijriParser.getHijriDate = getHijriDate;
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
* @param {number} year ?
|
|
174
|
+
* @param {number} month ?
|
|
175
|
+
* @param {number} day ?
|
|
176
|
+
* @returns {Date} ?
|
|
177
|
+
*/
|
|
157
178
|
function toGregorian(year, month, day) {
|
|
158
179
|
var iy = year;
|
|
159
180
|
var im = month;
|
|
@@ -2,7 +2,7 @@ import { Observer } from './observer';
|
|
|
2
2
|
/**
|
|
3
3
|
* Specifies the observer used for external change detection.
|
|
4
4
|
*/
|
|
5
|
-
export declare
|
|
5
|
+
export declare const onIntlChange: Observer;
|
|
6
6
|
/**
|
|
7
7
|
* Specifies the default rtl status for EJ2 components.
|
|
8
8
|
*/
|
|
@@ -81,16 +81,19 @@ export interface NumberFormatOptions {
|
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
83
|
* Specifies the CLDR data loaded for internationalization functionalities.
|
|
84
|
+
*
|
|
84
85
|
* @private
|
|
85
86
|
*/
|
|
86
|
-
export declare
|
|
87
|
+
export declare const cldrData: Object;
|
|
87
88
|
/**
|
|
88
89
|
* Specifies the default culture value to be considered.
|
|
90
|
+
*
|
|
89
91
|
* @private
|
|
90
92
|
*/
|
|
91
93
|
export declare let defaultCulture: string;
|
|
92
94
|
/**
|
|
93
95
|
* Specifies default currency code to be considered
|
|
96
|
+
*
|
|
94
97
|
* @private
|
|
95
98
|
*/
|
|
96
99
|
export declare let defaultCurrencyCode: string;
|
|
@@ -134,118 +137,148 @@ export declare class Internationalization {
|
|
|
134
137
|
constructor(cultureName?: string);
|
|
135
138
|
/**
|
|
136
139
|
* Returns the format function for given options.
|
|
140
|
+
*
|
|
137
141
|
* @param {DateFormatOptions} options - Specifies the format options in which the format function will return.
|
|
138
|
-
* @returns {Function}
|
|
142
|
+
* @returns {Function} ?
|
|
139
143
|
*/
|
|
140
144
|
getDateFormat(options?: DateFormatOptions): Function;
|
|
141
145
|
/**
|
|
142
146
|
* Returns the format function for given options.
|
|
147
|
+
*
|
|
143
148
|
* @param {NumberFormatOptions} options - Specifies the format options in which the format function will return.
|
|
144
|
-
* @returns {Function}
|
|
149
|
+
* @returns {Function} ?
|
|
145
150
|
*/
|
|
146
151
|
getNumberFormat(options?: NumberFormatOptions): Function;
|
|
147
152
|
/**
|
|
148
153
|
* Returns the parser function for given options.
|
|
154
|
+
*
|
|
149
155
|
* @param {DateFormatOptions} options - Specifies the format options in which the parser function will return.
|
|
150
|
-
* @returns {Function}
|
|
156
|
+
* @returns {Function} ?
|
|
151
157
|
*/
|
|
152
158
|
getDateParser(options?: DateFormatOptions): Function;
|
|
153
159
|
/**
|
|
154
160
|
* Returns the parser function for given options.
|
|
161
|
+
*
|
|
155
162
|
* @param {NumberFormatOptions} options - Specifies the format options in which the parser function will return.
|
|
156
|
-
* @returns {Function}
|
|
163
|
+
* @returns {Function} ?
|
|
157
164
|
*/
|
|
158
165
|
getNumberParser(options?: NumberFormatOptions): Function;
|
|
159
166
|
/**
|
|
160
167
|
* Returns the formatted string based on format options.
|
|
161
|
-
*
|
|
168
|
+
*
|
|
169
|
+
* @param {number} value - Specifies the number to format.
|
|
162
170
|
* @param {NumberFormatOptions} option - Specifies the format options in which the number will be formatted.
|
|
163
|
-
* @returns {string}
|
|
171
|
+
* @returns {string} ?
|
|
164
172
|
*/
|
|
165
|
-
formatNumber(value:
|
|
173
|
+
formatNumber(value: number, option?: NumberFormatOptions): string;
|
|
166
174
|
/**
|
|
167
175
|
* Returns the formatted date string based on format options.
|
|
168
|
-
*
|
|
176
|
+
*
|
|
177
|
+
* @param {Date} value - Specifies the number to format.
|
|
169
178
|
* @param {DateFormatOptions} option - Specifies the format options in which the number will be formatted.
|
|
170
|
-
* @returns {string}
|
|
179
|
+
* @returns {string} ?
|
|
171
180
|
*/
|
|
172
181
|
formatDate(value: Date, option?: DateFormatOptions): string;
|
|
173
182
|
/**
|
|
174
183
|
* Returns the date object for given date string and options.
|
|
184
|
+
*
|
|
175
185
|
* @param {string} value - Specifies the string to parse.
|
|
176
186
|
* @param {DateFormatOptions} option - Specifies the parse options in which the date string will be parsed.
|
|
177
|
-
* @returns {Date}
|
|
187
|
+
* @returns {Date} ?
|
|
178
188
|
*/
|
|
179
189
|
parseDate(value: string, option?: DateFormatOptions): Date;
|
|
180
190
|
/**
|
|
181
191
|
* Returns the number object from the given string value and options.
|
|
192
|
+
*
|
|
182
193
|
* @param {string} value - Specifies the string to parse.
|
|
183
194
|
* @param {NumberFormatOptions} option - Specifies the parse options in which the string number will be parsed.
|
|
184
|
-
* @returns {number}
|
|
195
|
+
* @returns {number} ?
|
|
185
196
|
*/
|
|
186
197
|
parseNumber(value: string, option?: NumberFormatOptions): number;
|
|
187
198
|
/**
|
|
188
199
|
* Returns Native Date Time Pattern
|
|
200
|
+
*
|
|
189
201
|
* @param {DateFormatOptions} option - Specifies the parse options for resultant date time pattern.
|
|
190
202
|
* @param {boolean} isExcelFormat - Specifies format value to be converted to excel pattern.
|
|
191
|
-
* @returns {string}
|
|
203
|
+
* @returns {string} ?
|
|
192
204
|
* @private
|
|
193
205
|
*/
|
|
194
206
|
getDatePattern(option: DateFormatOptions, isExcelFormat?: boolean): string;
|
|
195
207
|
/**
|
|
196
208
|
* Returns Native Number Pattern
|
|
209
|
+
*
|
|
197
210
|
* @param {NumberFormatOptions} option - Specifies the parse options for resultant number pattern.
|
|
198
|
-
* @
|
|
211
|
+
* @param {boolean} isExcel ?
|
|
212
|
+
* @returns {string} ?
|
|
199
213
|
* @private
|
|
200
214
|
*/
|
|
201
|
-
getNumberPattern(option: NumberFormatOptions, isExcel?:
|
|
215
|
+
getNumberPattern(option: NumberFormatOptions, isExcel?: boolean): string;
|
|
202
216
|
/**
|
|
203
217
|
* Returns the First Day of the Week
|
|
204
|
-
*
|
|
218
|
+
*
|
|
219
|
+
* @returns {number} ?
|
|
205
220
|
*/
|
|
206
221
|
getFirstDayOfWeek(): number;
|
|
222
|
+
/**
|
|
223
|
+
* Returns the culture
|
|
224
|
+
*
|
|
225
|
+
* @returns {string} ?
|
|
226
|
+
*/
|
|
207
227
|
private getCulture;
|
|
208
228
|
}
|
|
209
229
|
/**
|
|
210
230
|
* Set the default culture to all EJ2 components
|
|
231
|
+
*
|
|
211
232
|
* @param {string} cultureName - Specifies the culture name to be set as default culture.
|
|
233
|
+
* @returns {void} ?
|
|
212
234
|
*/
|
|
213
235
|
export declare function setCulture(cultureName: string): void;
|
|
214
236
|
/**
|
|
215
237
|
* Set the default currency code to all EJ2 components
|
|
238
|
+
*
|
|
216
239
|
* @param {string} currencyCode Specifies the culture name to be set as default culture.
|
|
217
|
-
* @returns {void}
|
|
240
|
+
* @returns {void} ?
|
|
218
241
|
*/
|
|
219
242
|
export declare function setCurrencyCode(currencyCode: string): void;
|
|
220
243
|
/**
|
|
221
244
|
* Load the CLDR data into context
|
|
222
|
-
*
|
|
223
|
-
* @
|
|
245
|
+
*
|
|
246
|
+
* @param {Object[]} data Specifies the CLDR data's to be used for formatting and parser.
|
|
247
|
+
* @returns {void} ?
|
|
224
248
|
*/
|
|
225
249
|
export declare function loadCldr(...data: Object[]): void;
|
|
226
250
|
/**
|
|
227
251
|
* To enable or disable RTL functionality for all components globally.
|
|
252
|
+
*
|
|
228
253
|
* @param {boolean} status - Optional argument Specifies the status value to enable or disable rtl option.
|
|
229
|
-
* @returns {void}
|
|
254
|
+
* @returns {void} ?
|
|
230
255
|
*/
|
|
231
256
|
export declare function enableRtl(status?: boolean): void;
|
|
232
257
|
/**
|
|
233
258
|
* To get the numeric CLDR object for given culture
|
|
259
|
+
*
|
|
234
260
|
* @param {string} locale - Specifies the locale for which numericObject to be returned.
|
|
261
|
+
* @param {string} type ?
|
|
262
|
+
* @returns {Object} ?
|
|
235
263
|
* @ignore
|
|
236
264
|
* @private
|
|
237
265
|
*/
|
|
238
266
|
export declare function getNumericObject(locale: string, type?: string): Object;
|
|
239
267
|
/**
|
|
240
268
|
* To get the numeric CLDR number base object for given culture
|
|
269
|
+
*
|
|
241
270
|
* @param {string} locale - Specifies the locale for which numericObject to be returned.
|
|
242
271
|
* @param {string} currency - Specifies the currency for which numericObject to be returned.
|
|
272
|
+
* @returns {string} ?
|
|
243
273
|
* @ignore
|
|
244
274
|
* @private
|
|
245
275
|
*/
|
|
246
276
|
export declare function getNumberDependable(locale: string, currency: string): string;
|
|
247
277
|
/**
|
|
248
278
|
* To get the default date CLDR object.
|
|
279
|
+
*
|
|
280
|
+
* @param {string} mode ?
|
|
281
|
+
* @returns {Object} ?
|
|
249
282
|
* @ignore
|
|
250
283
|
* @private
|
|
251
284
|
*/
|