@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
@@ -8,7 +8,6 @@ var defaultNumberingSystem = {
8
8
  }
9
9
  };
10
10
  import { isUndefined, getValue, isBlazor } from '../util';
11
- var latnRegex = /^[0-9]*$/;
12
11
  var defaultNumberSymbols = {
13
12
  'decimal': '.',
14
13
  'group': ',',
@@ -22,6 +21,7 @@ var defaultNumberSymbols = {
22
21
  var latnNumberSystem = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
23
22
  /**
24
23
  * Interface for parser base
24
+ *
25
25
  * @private
26
26
  */
27
27
  var ParserBase = /** @class */ (function () {
@@ -29,9 +29,10 @@ var ParserBase = /** @class */ (function () {
29
29
  }
30
30
  /**
31
31
  * Returns the cldr object for the culture specifies
32
+ *
32
33
  * @param {Object} obj - Specifies the object from which culture object to be acquired.
33
34
  * @param {string} cName - Specifies the culture name.
34
- * @returns {Object}
35
+ * @returns {Object} ?
35
36
  */
36
37
  ParserBase.getMainObject = function (obj, cName) {
37
38
  var value = isBlazor() ? cName : 'main.' + cName;
@@ -39,25 +40,28 @@ var ParserBase = /** @class */ (function () {
39
40
  };
40
41
  /**
41
42
  * Returns the numbering system object from given cldr data.
43
+ *
42
44
  * @param {Object} obj - Specifies the object from which number system is acquired.
43
- * @returns {Object}
45
+ * @returns {Object} ?
44
46
  */
45
47
  ParserBase.getNumberingSystem = function (obj) {
46
48
  return getValue('supplemental.numberingSystems', obj) || this.numberingSystems;
47
49
  };
48
50
  /**
49
51
  * Returns the reverse of given object keys or keys specified.
52
+ *
50
53
  * @param {Object} prop - Specifies the object to be reversed.
51
54
  * @param {number[]} keys - Optional parameter specifies the custom keyList for reversal.
52
- * @returns {Object}
55
+ * @returns {Object} ?
53
56
  */
54
57
  ParserBase.reverseObject = function (prop, keys) {
55
58
  var propKeys = keys || Object.keys(prop);
56
59
  var res = {};
57
60
  for (var _i = 0, propKeys_1 = propKeys; _i < propKeys_1.length; _i++) {
58
61
  var key = propKeys_1[_i];
59
- /* tslint:disable no-any */
62
+ // eslint-disable-next-line
60
63
  if (!res.hasOwnProperty(prop[key])) {
64
+ // eslint-disable-next-line
61
65
  res[prop[key]] = key;
62
66
  }
63
67
  }
@@ -65,28 +69,36 @@ var ParserBase = /** @class */ (function () {
65
69
  };
66
70
  /**
67
71
  * Returns the symbol regex by skipping the escape sequence.
72
+ *
68
73
  * @param {string[]} props - Specifies the array values to be skipped.
69
- * @returns {RegExp}
74
+ * @returns {RegExp} ?
70
75
  */
71
76
  ParserBase.getSymbolRegex = function (props) {
72
77
  var regexStr = props.map(function (str) {
73
- return str.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, '\\$1');
78
+ return str.replace(/([.*+?^=!:${}()|[\]/\\])/g, '\\$1');
74
79
  }).join('|');
75
80
  return new RegExp(regexStr, 'g');
76
81
  };
82
+ /**
83
+ *
84
+ * @param {Object} prop ?
85
+ * @returns {Object} ?
86
+ */
77
87
  ParserBase.getSymbolMatch = function (prop) {
78
88
  var matchKeys = Object.keys(defaultNumberSymbols);
79
89
  var ret = {};
80
90
  for (var _i = 0, matchKeys_1 = matchKeys; _i < matchKeys_1.length; _i++) {
81
91
  var key = matchKeys_1[_i];
92
+ // eslint-disable-next-line
82
93
  ret[prop[key]] = defaultNumberSymbols[key];
83
94
  }
84
95
  return ret;
85
96
  };
86
97
  /**
87
98
  * Returns regex string for provided value
88
- * @param {string} val
89
- * @returns {string}
99
+ *
100
+ * @param {string} val ?
101
+ * @returns {string} ?
90
102
  */
91
103
  ParserBase.constructRegex = function (val) {
92
104
  var len = val.length;
@@ -103,20 +115,23 @@ var ParserBase = /** @class */ (function () {
103
115
  };
104
116
  /**
105
117
  * Returns the replaced value of matching regex and obj mapper.
118
+ *
106
119
  * @param {string} value - Specifies the values to be replaced.
107
120
  * @param {RegExp} regex - Specifies the regex to search.
108
121
  * @param {Object} obj - Specifies the object matcher to be replace value parts.
109
- * @returns {string}
122
+ * @returns {string} ?
110
123
  */
111
124
  ParserBase.convertValueParts = function (value, regex, obj) {
112
125
  return value.replace(regex, function (str) {
126
+ // eslint-disable-next-line
113
127
  return obj[str];
114
128
  });
115
129
  };
116
130
  /**
117
131
  * Returns default numbering system object for formatting from cldr data
118
- * @param {Object} obj
119
- * @returns {NumericObject}
132
+ *
133
+ * @param {Object} obj ?
134
+ * @returns {NumericObject} ?
120
135
  */
121
136
  ParserBase.getDefaultNumberingSystem = function (obj) {
122
137
  var ret = {};
@@ -126,6 +141,12 @@ var ParserBase = /** @class */ (function () {
126
141
  };
127
142
  /**
128
143
  * Returns the replaced value of matching regex and obj mapper.
144
+ *
145
+ * @param {Object} curObj ?
146
+ * @param {Object} numberSystem ?
147
+ * @param {boolean} needSymbols ?
148
+ * @param {boolean} blazorMode ?
149
+ * @returns {Object} ?
129
150
  */
130
151
  ParserBase.getCurrentNumericOptions = function (curObj, numberSystem, needSymbols, blazorMode) {
131
152
  var ret = {};
@@ -148,11 +169,13 @@ var ParserBase = /** @class */ (function () {
148
169
  };
149
170
  /**
150
171
  * Returns number mapper object for the provided cldr data
151
- * @param {Object} curObj
152
- * @param {Object} numberSystem
153
- * @param {boolean} isNumber
154
- * @returns {NumberMapper}
172
+ *
173
+ * @param {Object} curObj ?
174
+ * @param {Object} numberSystem ?
175
+ * @param {boolean} isNumber ?
176
+ * @returns {NumberMapper} ?
155
177
  */
178
+ // eslint-disable-next-line
156
179
  ParserBase.getNumberMapper = function (curObj, numberSystem, isNumber) {
157
180
  var ret = { mapper: {} };
158
181
  var cur = this.getDefaultNumberingSystem(curObj);
@@ -164,6 +187,7 @@ var ParserBase = /** @class */ (function () {
164
187
  if (!isUndefined(digits)) {
165
188
  for (var _i = 0, latnNumberSystem_1 = latnNumberSystem; _i < latnNumberSystem_1.length; _i++) {
166
189
  var i = latnNumberSystem_1[_i];
190
+ // eslint-disable-next-line
167
191
  ret.mapper[i] = digits[i];
168
192
  }
169
193
  }
@@ -335,6 +359,11 @@ var blazorCurrencyData = {
335
359
  'VND': '₫',
336
360
  'TWD': 'NT$'
337
361
  };
362
+ /**
363
+ *
364
+ * @param {string} currencyCode ?
365
+ * @returns {string} ?
366
+ */
338
367
  export function getBlazorCurrencySymbol(currencyCode) {
339
368
  return getValue(currencyCode || '', blazorCurrencyData);
340
369
  }
@@ -8,19 +8,22 @@ export interface KeyboardEventsModel {
8
8
 
9
9
  /**
10
10
  * Specifies key combination and it respective action name.
11
+ *
11
12
  * @default null
12
13
  */
13
14
  keyConfigs?: { [key: string]: string };
14
15
 
15
16
  /**
16
17
  * Specifies on which event keyboardEvents class should listen for key press. For ex., `keyup`, `keydown` or `keypress`
18
+ *
17
19
  * @default keyup
18
20
  */
19
21
  eventName?: string;
20
22
 
21
23
  /**
22
- * Specifies the listener when keyboard actions is performed.
23
- * @event
24
+ * Specifies the listener when keyboard actions is performed.
25
+ *
26
+ * @event keyAction
24
27
  */
25
28
  keyAction?: EmitType<KeyboardEventArgs>;
26
29
 
package/src/keyboard.d.ts CHANGED
@@ -29,6 +29,7 @@ export interface KeyboardEventArgs extends KeyboardEvent {
29
29
  export declare class KeyboardEvents extends Base<HTMLElement> implements INotifyPropertyChanged {
30
30
  /**
31
31
  * Specifies key combination and it respective action name.
32
+ *
32
33
  * @default null
33
34
  */
34
35
  keyConfigs: {
@@ -36,56 +37,73 @@ export declare class KeyboardEvents extends Base<HTMLElement> implements INotify
36
37
  };
37
38
  /**
38
39
  * Specifies on which event keyboardEvents class should listen for key press. For ex., `keyup`, `keydown` or `keypress`
40
+ *
39
41
  * @default keyup
40
42
  */
41
43
  eventName: string;
42
44
  /**
43
45
  * Specifies the listener when keyboard actions is performed.
44
- * @event
46
+ *
47
+ * @event keyAction
45
48
  */
46
49
  keyAction: EmitType<KeyboardEventArgs>;
47
50
  /**
48
51
  * Initializes the KeyboardEvents
49
- * @param {HTMLElement} element
50
- * @param {KeyboardEventsModel} options
52
+ *
53
+ * @param {HTMLElement} element ?
54
+ * @param {KeyboardEventsModel} options ?
51
55
  */
52
56
  constructor(element: HTMLElement, options?: KeyboardEventsModel);
53
57
  /**
54
58
  * Unwire bound events and destroy the instance.
55
- * @return {void}
59
+ *
60
+ * @returns {void} ?
56
61
  */
57
62
  destroy(): void;
58
63
  /**
59
64
  * Function can be used to specify certain action if a property is changed
60
- * @param newProp
61
- * @param oldProp
62
- * @returns {void}
65
+ *
66
+ * @param {KeyboardEventsModel} newProp ?
67
+ * @param {KeyboardEventsModel} oldProp ?
68
+ * @returns {void} ?
63
69
  * @private
64
70
  */
65
71
  onPropertyChanged(newProp: KeyboardEventsModel, oldProp?: KeyboardEventsModel): void;
66
72
  protected bind(): void;
67
73
  /**
68
74
  * To get the module name, returns 'keyboard'.
75
+ *
76
+ * @returns {string} ?
69
77
  * @private
70
78
  */
71
79
  getModuleName(): string;
72
80
  /**
73
81
  * Wiring event handlers to events
82
+ *
83
+ * @returns {void} ?
84
+ * @private
74
85
  */
75
86
  private wireEvents;
76
87
  /**
77
88
  * Unwiring event handlers to events
89
+ *
90
+ * @returns {void} ?
91
+ * @private
78
92
  */
79
93
  private unwireEvents;
80
94
  /**
81
95
  * To handle a key press event returns null
96
+ *
97
+ * @param {KeyboardEventArgs} e ?
98
+ * @returns {void} ?
82
99
  */
83
100
  private keyPressHandler;
84
101
  private static configCache;
85
102
  /**
86
103
  * To get the key configuration data
104
+ *
87
105
  * @param {string} config - configuration data
88
- * returns {KeyData}
106
+ * @returns {KeyData} ?
89
107
  */
90
108
  private static getKeyConfigData;
91
109
  private static getKeyCode;
package/src/keyboard.js CHANGED
@@ -84,13 +84,17 @@ var KeyboardEvents = /** @class */ (function (_super) {
84
84
  __extends(KeyboardEvents, _super);
85
85
  /**
86
86
  * Initializes the KeyboardEvents
87
- * @param {HTMLElement} element
88
- * @param {KeyboardEventsModel} options
87
+ *
88
+ * @param {HTMLElement} element ?
89
+ * @param {KeyboardEventsModel} options ?
89
90
  */
90
91
  function KeyboardEvents(element, options) {
91
92
  var _this = _super.call(this, options, element) || this;
92
93
  /**
93
94
  * To handle a key press event returns null
95
+ *
96
+ * @param {KeyboardEventArgs} e ?
97
+ * @returns {void} ?
94
98
  */
95
99
  _this.keyPressHandler = function (e) {
96
100
  var isAltKey = e.altKey;
@@ -120,7 +124,8 @@ var KeyboardEvents = /** @class */ (function (_super) {
120
124
  KeyboardEvents_1 = KeyboardEvents;
121
125
  /**
122
126
  * Unwire bound events and destroy the instance.
123
- * @return {void}
127
+ *
128
+ * @returns {void} ?
124
129
  */
125
130
  KeyboardEvents.prototype.destroy = function () {
126
131
  this.unwireEvents();
@@ -128,20 +133,23 @@ var KeyboardEvents = /** @class */ (function (_super) {
128
133
  };
129
134
  /**
130
135
  * Function can be used to specify certain action if a property is changed
131
- * @param newProp
132
- * @param oldProp
133
- * @returns {void}
136
+ *
137
+ * @param {KeyboardEventsModel} newProp ?
138
+ * @param {KeyboardEventsModel} oldProp ?
139
+ * @returns {void} ?
134
140
  * @private
135
141
  */
142
+ // eslint-disable-next-line
136
143
  KeyboardEvents.prototype.onPropertyChanged = function (newProp, oldProp) {
137
144
  // No code are needed
138
145
  };
139
- ;
140
146
  KeyboardEvents.prototype.bind = function () {
141
147
  this.wireEvents();
142
148
  };
143
149
  /**
144
150
  * To get the module name, returns 'keyboard'.
151
+ *
152
+ * @returns {string} ?
145
153
  * @private
146
154
  */
147
155
  KeyboardEvents.prototype.getModuleName = function () {
@@ -149,20 +157,27 @@ var KeyboardEvents = /** @class */ (function (_super) {
149
157
  };
150
158
  /**
151
159
  * Wiring event handlers to events
160
+ *
161
+ * @returns {void} ?
162
+ * @private
152
163
  */
153
164
  KeyboardEvents.prototype.wireEvents = function () {
154
165
  this.element.addEventListener(this.eventName, this.keyPressHandler);
155
166
  };
156
167
  /**
157
168
  * Unwiring event handlers to events
169
+ *
170
+ * @returns {void} ?
171
+ * @private
158
172
  */
159
173
  KeyboardEvents.prototype.unwireEvents = function () {
160
174
  this.element.removeEventListener(this.eventName, this.keyPressHandler);
161
175
  };
162
176
  /**
163
177
  * To get the key configuration data
178
+ *
164
179
  * @param {string} config - configuration data
165
- * returns {KeyData}
180
+ * @returns {KeyData} ?
166
181
  */
167
182
  KeyboardEvents.getKeyConfigData = function (config) {
168
183
  if (config in this.configCache) {
@@ -184,7 +199,7 @@ var KeyboardEvents = /** @class */ (function (_super) {
184
199
  KeyboardEvents_1.configCache[config] = keyData;
185
200
  return keyData;
186
201
  };
187
- // Return the keycode value as string
202
+ // Return the keycode value as string
188
203
  KeyboardEvents.getKeyCode = function (keyVal) {
189
204
  return keyCode[keyVal] || keyVal.toUpperCase().charCodeAt(0);
190
205
  };
package/src/l10n.d.ts CHANGED
@@ -28,30 +28,39 @@ export declare class L10n {
28
28
  private currentLocale;
29
29
  /**
30
30
  * Constructor
31
+ *
32
+ * @param {string} controlName ?
33
+ * @param {Object} localeStrings ?
34
+ * @param {string} locale ?
31
35
  */
32
36
  constructor(controlName: string, localeStrings: Object, locale?: string);
33
37
  /**
34
38
  * Sets the locale text
35
- * @param {string} locale
36
- * @returns {void}
39
+ *
40
+ * @param {string} locale ?
41
+ * @returns {void} ?
37
42
  */
38
43
  setLocale(locale: string): void;
39
44
  /**
40
45
  * Sets the global locale for all components.
46
+ *
41
47
  * @param {Object} localeObject - specifies the localeObject to be set as global locale.
48
+ * @returns {void} ?
42
49
  */
43
50
  static load(localeObject: Object): void;
44
51
  /**
45
52
  * Returns current locale text for the property based on the culture name and control name.
46
- * @param {string} propertyName - specifies the property for which localize text to be returned.
47
- * @return string
53
+ *
54
+ * @param {string} prop - specifies the property for which localize text to be returned.
55
+ * @returns {string} ?
48
56
  */
49
57
  getConstant(prop: string): string;
50
58
  /**
51
59
  * Returns the control constant object for current object and the locale specified.
52
- * @param {Object} curObject
53
- * @param {string} locale
54
- * @returns {Object}
60
+ *
61
+ * @param {Object} curObject ?
62
+ * @param {string} locale ?
63
+ * @returns {Object} ?
55
64
  */
56
65
  private intGetControlConstant;
57
66
  }
package/src/l10n.js CHANGED
@@ -26,6 +26,10 @@ import { defaultCulture } from './internationalization';
26
26
  var L10n = /** @class */ (function () {
27
27
  /**
28
28
  * Constructor
29
+ *
30
+ * @param {string} controlName ?
31
+ * @param {Object} localeStrings ?
32
+ * @param {string} locale ?
29
33
  */
30
34
  function L10n(controlName, localeStrings, locale) {
31
35
  this.controlName = controlName;
@@ -34,8 +38,9 @@ var L10n = /** @class */ (function () {
34
38
  }
35
39
  /**
36
40
  * Sets the locale text
37
- * @param {string} locale
38
- * @returns {void}
41
+ *
42
+ * @param {string} locale ?
43
+ * @returns {void} ?
39
44
  */
40
45
  L10n.prototype.setLocale = function (locale) {
41
46
  var intLocale = this.intGetControlConstant(L10n.locale, locale);
@@ -43,15 +48,18 @@ var L10n = /** @class */ (function () {
43
48
  };
44
49
  /**
45
50
  * Sets the global locale for all components.
51
+ *
46
52
  * @param {Object} localeObject - specifies the localeObject to be set as global locale.
53
+ * @returns {void} ?
47
54
  */
48
55
  L10n.load = function (localeObject) {
49
56
  this.locale = extend(this.locale, localeObject, {}, true);
50
57
  };
51
58
  /**
52
59
  * Returns current locale text for the property based on the culture name and control name.
53
- * @param {string} propertyName - specifies the property for which localize text to be returned.
54
- * @return string
60
+ *
61
+ * @param {string} prop - specifies the property for which localize text to be returned.
62
+ * @returns {string} ?
55
63
  */
56
64
  L10n.prototype.getConstant = function (prop) {
57
65
  // Removed conditional operator because this method does not return correct value when passing 0 as value in localization
@@ -64,9 +72,10 @@ var L10n = /** @class */ (function () {
64
72
  };
65
73
  /**
66
74
  * Returns the control constant object for current object and the locale specified.
67
- * @param {Object} curObject
68
- * @param {string} locale
69
- * @returns {Object}
75
+ *
76
+ * @param {Object} curObject ?
77
+ * @param {string} locale ?
78
+ * @returns {Object} ?
70
79
  */
71
80
  L10n.prototype.intGetControlConstant = function (curObject, locale) {
72
81
  if ((curObject)[locale]) {
@@ -24,32 +24,37 @@ export declare class ModuleLoader {
24
24
  constructor(parent: IParent);
25
25
  /**
26
26
  * Inject required modules in component library
27
- * @return {void}
27
+ *
28
+ * @returns {void} ?
28
29
  * @param {ModuleDeclaration[]} requiredModules - Array of modules to be required
29
30
  * @param {Function[]} moduleList - Array of modules to be injected from sample side
30
31
  */
31
32
  inject(requiredModules: ModuleDeclaration[], moduleList: Function[]): void;
32
33
  /**
33
34
  * To remove the created object while destroying the control
34
- * @return {void}
35
+ *
36
+ * @returns {void}
35
37
  */
36
38
  clean(): void;
37
39
  /**
38
40
  * Removes all unused modules
39
- * @param {ModuleDeclaration[]} moduleList
40
- * @returns {void}
41
+ *
42
+ * @param {ModuleDeclaration[]} moduleList ?
43
+ * @returns {void} ?
41
44
  */
42
45
  private clearUnusedModule;
43
46
  /**
44
47
  * To get the name of the member.
45
- * @param {string} name
46
- * @returns {string}
48
+ *
49
+ * @param {string} name ?
50
+ * @returns {string} ?
47
51
  */
48
52
  private getMemberName;
49
53
  /**
50
54
  * Returns boolean based on whether the module specified is loaded or not
51
- * @param {string} modName
52
- * @returns {boolean}
55
+ *
56
+ * @param {string} modName ?
57
+ * @returns {boolean} ?
53
58
  */
54
59
  private isModuleLoaded;
55
60
  }
@@ -8,10 +8,10 @@ var ModuleLoader = /** @class */ (function () {
8
8
  this.loadedModules = [];
9
9
  this.parent = parent;
10
10
  }
11
- ;
12
11
  /**
13
12
  * Inject required modules in component library
14
- * @return {void}
13
+ *
14
+ * @returns {void} ?
15
15
  * @param {ModuleDeclaration[]} requiredModules - Array of modules to be required
16
16
  * @param {Function[]} moduleList - Array of modules to be injected from sample side
17
17
  */
@@ -47,7 +47,8 @@ var ModuleLoader = /** @class */ (function () {
47
47
  };
48
48
  /**
49
49
  * To remove the created object while destroying the control
50
- * @return {void}
50
+ *
51
+ * @returns {void}
51
52
  */
52
53
  ModuleLoader.prototype.clean = function () {
53
54
  for (var _i = 0, _a = this.loadedModules; _i < _a.length; _i++) {
@@ -60,8 +61,9 @@ var ModuleLoader = /** @class */ (function () {
60
61
  };
61
62
  /**
62
63
  * Removes all unused modules
63
- * @param {ModuleDeclaration[]} moduleList
64
- * @returns {void}
64
+ *
65
+ * @param {ModuleDeclaration[]} moduleList ?
66
+ * @returns {void} ?
65
67
  */
66
68
  ModuleLoader.prototype.clearUnusedModule = function (moduleList) {
67
69
  var _this = this;
@@ -80,16 +82,18 @@ var ModuleLoader = /** @class */ (function () {
80
82
  };
81
83
  /**
82
84
  * To get the name of the member.
83
- * @param {string} name
84
- * @returns {string}
85
+ *
86
+ * @param {string} name ?
87
+ * @returns {string} ?
85
88
  */
86
89
  ModuleLoader.prototype.getMemberName = function (name) {
87
90
  return name[0].toLowerCase() + name.substring(1) + MODULE_SUFFIX;
88
91
  };
89
92
  /**
90
93
  * Returns boolean based on whether the module specified is loaded or not
91
- * @param {string} modName
92
- * @returns {boolean}
94
+ *
95
+ * @param {string} modName ?
96
+ * @returns {boolean} ?
93
97
  */
94
98
  ModuleLoader.prototype.isModuleLoaded = function (modName) {
95
99
  for (var _i = 0, _a = this.loadedModules; _i < _a.length; _i++) {
@@ -1,6 +1,8 @@
1
1
  /**
2
2
  * Method used to create property. General syntax below.
3
- * @param {T} defaultValue? - Specifies the default value of property.
3
+ *
4
+ * @param {Object} defaultValue - Specifies the default value of property.
5
+ * @returns {PropertyDecorator} ?
4
6
  * ```
5
7
  * @Property('TypeScript')
6
8
  * propertyName: Type;
@@ -10,8 +12,10 @@
10
12
  export declare function Property<T>(defaultValue?: T | Object): PropertyDecorator;
11
13
  /**
12
14
  * Method used to create complex property. General syntax below.
13
- * @param {T} defaultValue - Specifies the default value of property.
15
+ *
16
+ * @param {any} defaultValue - Specifies the default value of property.
14
17
  * @param {Function} type - Specifies the class type of complex object.
18
+ * @returns {PropertyDecorator} ?
15
19
  * ```
16
20
  * @Complex<Type>({},Type)
17
21
  * propertyName: Type;
@@ -21,8 +25,9 @@ export declare function Property<T>(defaultValue?: T | Object): PropertyDecorato
21
25
  export declare function Complex<T>(defaultValue: T, type: Function): PropertyDecorator;
22
26
  /**
23
27
  * Method used to create complex Factory property. General syntax below.
24
- * @param {Function} defaultType - Specifies the default value of property.
28
+ *
25
29
  * @param {Function} type - Specifies the class factory type of complex object.
30
+ * @returns {PropertyDecorator} ?
26
31
  * ```
27
32
  * @ComplexFactory(defaultType, factoryFunction)
28
33
  * propertyName: Type1 | Type2;
@@ -32,8 +37,10 @@ export declare function Complex<T>(defaultValue: T, type: Function): PropertyDec
32
37
  export declare function ComplexFactory(type: Function): PropertyDecorator;
33
38
  /**
34
39
  * Method used to create complex array property. General syntax below.
35
- * @param {T[]} defaultValue - Specifies the default value of property.
40
+ *
41
+ * @param {any} defaultValue - Specifies the default value of property.
36
42
  * @param {Function} type - Specifies the class type of complex object.
43
+ * @returns {PropertyDecorator} ?
37
44
  * ```
38
45
  * @Collection([], Type);
39
46
  * propertyName: Type;
@@ -43,8 +50,9 @@ export declare function ComplexFactory(type: Function): PropertyDecorator;
43
50
  export declare function Collection<T>(defaultValue: T[], type: Function): PropertyDecorator;
44
51
  /**
45
52
  * Method used to create complex factory array property. General syntax below.
46
- * @param {T[]} defaultType - Specifies the default type of property.
53
+ *
47
54
  * @param {Function} type - Specifies the class type of complex object.
55
+ * @returns {PropertyCollectionInfo} ?
48
56
  * ```
49
57
  * @Collection([], Type);
50
58
  * propertyName: Type;
@@ -54,8 +62,8 @@ export declare function Collection<T>(defaultValue: T[], type: Function): Proper
54
62
  export declare function CollectionFactory(type: Function): PropertyDecorator;
55
63
  /**
56
64
  * Method used to create event property. General syntax below.
57
- * @param {Function} defaultValue? - Specifies the default value of property.
58
- * @param {boolean} isComplex? - Specifies the whether it is complex object.
65
+ *
66
+ * @returns {PropertyDecorator} ?
59
67
  * ```
60
68
  * @Event(()=>{return true;})
61
69
  * ```
@@ -65,6 +73,8 @@ export declare function Event(): PropertyDecorator;
65
73
  /**
66
74
  * NotifyPropertyChanges is triggers the call back when the property has been changed.
67
75
  *
76
+ * @param {Function} classConstructor ?
77
+ * @returns {void} ?
68
78
  * ```
69
79
  * @NotifyPropertyChanges
70
80
  * class DemoClass implements INotifyPropertyChanged {
@@ -92,7 +102,9 @@ export interface INotifyPropertyChanged {
92
102
  }
93
103
  /**
94
104
  * Method used to create builder for the components
105
+ *
95
106
  * @param {any} component -specifies the target component for which builder to be created.
107
+ * @returns {Object} ?
96
108
  * @private
97
109
  */
98
110
  export declare function CreateBuilder<T>(component: T): Object;