@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.
- package/.eslintrc.json +1 -1
- package/CHANGELOG.md +2 -90
- package/{ReadMe.md → README.md} +1 -1
- package/dist/ej2-base.umd.min.js +10 -1
- 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 +10 -1
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +9 -0
- 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 +212 -212
- 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 +126 -121
- 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 +13 -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 +2161 -0
- package/styles/bootstrap5-dark.scss +3 -0
- package/styles/bootstrap5.css +2161 -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/keyboard-model.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
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
|
-
*
|
|
46
|
+
*
|
|
47
|
+
* @event keyAction
|
|
45
48
|
*/
|
|
46
49
|
keyAction: EmitType<KeyboardEventArgs>;
|
|
47
50
|
/**
|
|
48
51
|
* Initializes the KeyboardEvents
|
|
49
|
-
*
|
|
50
|
-
* @param {
|
|
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
|
-
*
|
|
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
|
-
*
|
|
61
|
-
* @param
|
|
62
|
-
* @
|
|
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
|
-
*
|
|
88
|
-
* @param {
|
|
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
|
-
*
|
|
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
|
-
*
|
|
132
|
-
* @param
|
|
133
|
-
* @
|
|
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
|
-
*
|
|
36
|
-
* @
|
|
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
|
-
*
|
|
47
|
-
* @
|
|
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
|
-
*
|
|
53
|
-
* @param {
|
|
54
|
-
* @
|
|
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
|
-
*
|
|
38
|
-
* @
|
|
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
|
-
*
|
|
54
|
-
* @
|
|
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
|
-
*
|
|
68
|
-
* @param {
|
|
69
|
-
* @
|
|
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]) {
|
package/src/module-loader.d.ts
CHANGED
|
@@ -24,32 +24,37 @@ export declare class ModuleLoader {
|
|
|
24
24
|
constructor(parent: IParent);
|
|
25
25
|
/**
|
|
26
26
|
* Inject required modules in component library
|
|
27
|
-
*
|
|
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
|
-
*
|
|
35
|
+
*
|
|
36
|
+
* @returns {void}
|
|
35
37
|
*/
|
|
36
38
|
clean(): void;
|
|
37
39
|
/**
|
|
38
40
|
* Removes all unused modules
|
|
39
|
-
*
|
|
40
|
-
* @
|
|
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
|
-
*
|
|
46
|
-
* @
|
|
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
|
-
*
|
|
52
|
-
* @
|
|
55
|
+
*
|
|
56
|
+
* @param {string} modName ?
|
|
57
|
+
* @returns {boolean} ?
|
|
53
58
|
*/
|
|
54
59
|
private isModuleLoaded;
|
|
55
60
|
}
|
package/src/module-loader.js
CHANGED
|
@@ -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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
64
|
-
* @
|
|
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
|
-
*
|
|
84
|
-
* @
|
|
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
|
-
*
|
|
92
|
-
* @
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
58
|
-
* @
|
|
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;
|