@singularsystems/neo-core 0.10.51 → 1.0.0-alpha.1
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/README.md +7 -13
- package/dist/ApiClient/ReadApiClient.d.ts +1 -1
- package/dist/ApiClient/ReadApiClient.js +1 -1
- package/dist/ApiClient/UpdateableApiClient.js +4 -4
- package/dist/AppServices/Config/ConfigModel.js +1 -1
- package/dist/AppServices/Config/ConfigService.js +4 -4
- package/dist/AppServices/ServiceIdentifier.js +1 -1
- package/dist/Components/AnimationHelper.js +1 -1
- package/dist/Components/BootstrapTypes.js +1 -0
- package/dist/Components/ButtonOptions.js +1 -0
- package/dist/Components/ContextMenu/ContextMenu.js +1 -0
- package/dist/Components/DatePicker/DatePicker.js +2 -3
- package/dist/Components/ErrorHandler.d.ts +1 -1
- package/dist/Components/FileManager/FileManager.js +4 -4
- package/dist/Components/FileManager/FileUploadBatch.js +3 -3
- package/dist/Components/FileManager/IFileManagerOptions.js +1 -0
- package/dist/Components/FormOptions.js +1 -0
- package/dist/Components/ICollapsableOptions.js +1 -0
- package/dist/Components/Modal/ModalHelper.js +4 -4
- package/dist/Components/Modal/ModalOptions.d.ts +2 -0
- package/dist/Components/Modal/ModalOptions.js +1 -0
- package/dist/Components/Notifications/INotificationHelper.js +1 -0
- package/dist/Components/Notifications/NotificationHelper.js +1 -1
- package/dist/Components/TaskRunner/ProgressState.js +1 -1
- package/dist/Components/TaskRunner/TaskRunner.js +10 -11
- package/dist/Components/TooltipOptions.js +1 -0
- package/dist/Components/index.js +1 -0
- package/dist/ConnectionManager.js +2 -2
- package/dist/Data/ApiDataSource.js +2 -2
- package/dist/Data/AsyncDataSource.js +1 -1
- package/dist/Data/DataCacheEntry.js +3 -3
- package/dist/Data/DataView.js +7 -7
- package/dist/Data/Deserialiser.js +4 -5
- package/dist/Data/Paging/PageManager.js +9 -9
- package/dist/Data/Serialiser.js +1 -1
- package/dist/Data/StaticDataSource.js +1 -1
- package/dist/Data/WindowedDataView.js +1 -1
- package/dist/Dates/DateUtils.js +3 -4
- package/dist/Dates/TimeSpan.js +4 -4
- package/dist/Extensions.d.ts +1 -5
- package/dist/Extensions.js +18 -21
- package/dist/Globals.js +5 -5
- package/dist/JsonSchema/JsonSchemaTypes.js +1 -0
- package/dist/JsonSchema/TypeCache.js +2 -2
- package/dist/JsonSchema/TypeMetadata.js +4 -4
- package/dist/Localisation/ILocalisationService.js +1 -0
- package/dist/Localisation/index.js +1 -0
- package/dist/Model/BaseModels/UserEvent.js +1 -1
- package/dist/Model/Decorators.d.ts +1 -1
- package/dist/Model/Decorators.js +1 -1
- package/dist/Model/IAutoRunner.js +1 -0
- package/dist/Model/IModelBase.js +1 -0
- package/dist/Model/IModelCreatorBase.js +1 -0
- package/dist/Model/List.js +4 -4
- package/dist/Model/ModelBase.js +4 -4
- package/dist/Model/ModelCreatorBase.js +1 -1
- package/dist/Model/ModelGraphTraverser.js +1 -1
- package/dist/Model/NeoTypeInfo.js +9 -10
- package/dist/Model/ObservableValue.js +1 -1
- package/dist/Model/PropertyInfo.js +8 -8
- package/dist/Model/PropertyInstance.js +8 -8
- package/dist/Routing/IMenuItemProvider.js +1 -0
- package/dist/Routing/IMenuRoute.js +1 -0
- package/dist/Routing/INavigationHelper.js +1 -0
- package/dist/Routing/IRoute.js +1 -0
- package/dist/Routing/IRouteSecurityService.js +1 -0
- package/dist/Security/IAuthenticationService.js +1 -0
- package/dist/Security/IAuthorisationService.js +1 -0
- package/dist/Security/ILoginErrorHandler.js +1 -0
- package/dist/Security/ISecurityService.js +1 -0
- package/dist/Security/IUser.js +1 -0
- package/dist/Security/IUserRole.js +1 -0
- package/dist/Security/LoginErrorHandler.js +1 -1
- package/dist/Security/Oidc/OidcAuthService.js +8 -3
- package/dist/Security/Oidc/OidcTypes.js +1 -0
- package/dist/Security/Oidc/OidcUser.js +3 -3
- package/dist/Security/SecurityService.js +2 -2
- package/dist/Security/User.js +2 -2
- package/dist/SignalR/HubBase.js +5 -5
- package/dist/StringUtils.js +1 -1
- package/dist/Utils.js +8 -8
- package/dist/Validation/DisplayHelper.js +2 -2
- package/dist/Validation/RuleContext.js +2 -3
- package/dist/Validation/ValidationHelpers.js +1 -1
- package/dist/Validation/ValidationState.js +2 -2
- package/dist/Validation/Validators/IModelValidator.js +1 -0
- package/dist/Validation/Validators/ModelValidator.js +2 -2
- package/dist/Validation/Validators/PropertyValidator.js +2 -2
- package/dist/Validation/Validators/RuleValidator.js +2 -2
- package/dist/Views/IViewBase.js +1 -0
- package/package.json +18 -13
|
@@ -20,14 +20,14 @@ var PropertyInstance = /** @class */ (function () {
|
|
|
20
20
|
set: function (newVal) {
|
|
21
21
|
this.attachedTo[this.propertyName] = newVal;
|
|
22
22
|
},
|
|
23
|
-
enumerable:
|
|
23
|
+
enumerable: false,
|
|
24
24
|
configurable: true
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(PropertyInstance.prototype, "uniqueID", {
|
|
27
27
|
get: function () {
|
|
28
28
|
return (this.attachedTo ? (this.attachedTo.entityIdentifier + "!") : "") + this.propertyName;
|
|
29
29
|
},
|
|
30
|
-
enumerable:
|
|
30
|
+
enumerable: false,
|
|
31
31
|
configurable: true
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(PropertyInstance.prototype, "peek", {
|
|
@@ -40,7 +40,7 @@ var PropertyInstance = /** @class */ (function () {
|
|
|
40
40
|
return this.value;
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
enumerable:
|
|
43
|
+
enumerable: false,
|
|
44
44
|
configurable: true
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(PropertyInstance.prototype, "validator", {
|
|
@@ -55,7 +55,7 @@ var PropertyInstance = /** @class */ (function () {
|
|
|
55
55
|
}
|
|
56
56
|
return this._validator;
|
|
57
57
|
},
|
|
58
|
-
enumerable:
|
|
58
|
+
enumerable: false,
|
|
59
59
|
configurable: true
|
|
60
60
|
});
|
|
61
61
|
return PropertyInstance;
|
|
@@ -75,14 +75,14 @@ var PropertyAccessor = /** @class */ (function () {
|
|
|
75
75
|
get: function () {
|
|
76
76
|
return this.attachedTo[uniqueIdSymbol] + "!" + this.propertyName;
|
|
77
77
|
},
|
|
78
|
-
enumerable:
|
|
78
|
+
enumerable: false,
|
|
79
79
|
configurable: true
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(PropertyAccessor.prototype, "validator", {
|
|
82
82
|
get: function () {
|
|
83
83
|
return EmptyValidator;
|
|
84
84
|
},
|
|
85
|
-
enumerable:
|
|
85
|
+
enumerable: false,
|
|
86
86
|
configurable: true
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(PropertyAccessor.prototype, "value", {
|
|
@@ -92,14 +92,14 @@ var PropertyAccessor = /** @class */ (function () {
|
|
|
92
92
|
set: function (newVal) {
|
|
93
93
|
this.attachedTo[this.propertyName] = newVal;
|
|
94
94
|
},
|
|
95
|
-
enumerable:
|
|
95
|
+
enumerable: false,
|
|
96
96
|
configurable: true
|
|
97
97
|
});
|
|
98
98
|
Object.defineProperty(PropertyAccessor.prototype, "peek", {
|
|
99
99
|
get: function () {
|
|
100
100
|
return this.attachedTo[this.propertyName];
|
|
101
101
|
},
|
|
102
|
-
enumerable:
|
|
102
|
+
enumerable: false,
|
|
103
103
|
configurable: true
|
|
104
104
|
});
|
|
105
105
|
PropertyAccessor.create = function (model, property) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/Routing/IRoute.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/Security/IUser.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -34,7 +34,7 @@ var NeoLoginErrorHandler = /** @class */ (function () {
|
|
|
34
34
|
NeoLoginErrorHandler.prototype.onAlreadyLoggedIn = function () {
|
|
35
35
|
var _this = this;
|
|
36
36
|
var userName = this.authenticationService.user.displayName;
|
|
37
|
-
var displayHtml = Utils.suppressHtmlEncode("<p>You are attempting to login, but are already logged in as "
|
|
37
|
+
var displayHtml = Utils.suppressHtmlEncode("<p>You are attempting to login, but are already logged in as ".concat(userName, ".</p><p>Do you want to continue as ").concat(userName, ", or logout?</p>"));
|
|
38
38
|
ModalUtils.showModal("Login", displayHtml, {
|
|
39
39
|
acceptButton: { text: "Continue", icon: "arrow-right", onClick: function () { return _this.redirectToHome(); } },
|
|
40
40
|
closeButton: { text: "Logout", icon: "sign-out-alt", onClick: function () { _this.authenticationService.beginSignOut(); } },
|
|
@@ -127,7 +127,12 @@ var OidcAuthService = /** @class */ (function () {
|
|
|
127
127
|
this.setUser(null);
|
|
128
128
|
};
|
|
129
129
|
OidcAuthService.prototype.setUser = function (user) {
|
|
130
|
-
|
|
130
|
+
if (user) {
|
|
131
|
+
this.axios.defaults.headers.common['Authorization'] = user.authKey;
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
delete this.axios.defaults.headers.common['Authorization'];
|
|
135
|
+
}
|
|
131
136
|
this._user = user;
|
|
132
137
|
};
|
|
133
138
|
OidcAuthService.prototype.signinSilent = function () {
|
|
@@ -152,14 +157,14 @@ var OidcAuthService = /** @class */ (function () {
|
|
|
152
157
|
get: function () {
|
|
153
158
|
return this._user;
|
|
154
159
|
},
|
|
155
|
-
enumerable:
|
|
160
|
+
enumerable: false,
|
|
156
161
|
configurable: true
|
|
157
162
|
});
|
|
158
163
|
Object.defineProperty(OidcAuthService.prototype, "isAuthenticated", {
|
|
159
164
|
get: function () {
|
|
160
165
|
return this.user !== null && !this.user.hasExpired;
|
|
161
166
|
},
|
|
162
|
-
enumerable:
|
|
167
|
+
enumerable: false,
|
|
163
168
|
configurable: true
|
|
164
169
|
});
|
|
165
170
|
OidcAuthService.createIdentityServerMetadata = function (identityServerUrl) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -11,21 +11,21 @@ var OidcUser = /** @class */ (function (_super) {
|
|
|
11
11
|
get: function () {
|
|
12
12
|
return this.userData.expired;
|
|
13
13
|
},
|
|
14
|
-
enumerable:
|
|
14
|
+
enumerable: false,
|
|
15
15
|
configurable: true
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(OidcUser.prototype, "authKey", {
|
|
18
18
|
get: function () {
|
|
19
19
|
return this.userData.token_type + " " + this.userData.access_token;
|
|
20
20
|
},
|
|
21
|
-
enumerable:
|
|
21
|
+
enumerable: false,
|
|
22
22
|
configurable: true
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(OidcUser.prototype, "accessToken", {
|
|
25
25
|
get: function () {
|
|
26
26
|
return this.userData.access_token;
|
|
27
27
|
},
|
|
28
|
-
enumerable:
|
|
28
|
+
enumerable: false,
|
|
29
29
|
configurable: true
|
|
30
30
|
});
|
|
31
31
|
return OidcUser;
|
|
@@ -10,14 +10,14 @@ var SecurityService = /** @class */ (function () {
|
|
|
10
10
|
get: function () {
|
|
11
11
|
return this.authentication.isAuthenticated;
|
|
12
12
|
},
|
|
13
|
-
enumerable:
|
|
13
|
+
enumerable: false,
|
|
14
14
|
configurable: true
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(SecurityService.prototype, "user", {
|
|
17
17
|
get: function () {
|
|
18
18
|
return this.authentication.user;
|
|
19
19
|
},
|
|
20
|
-
enumerable:
|
|
20
|
+
enumerable: false,
|
|
21
21
|
configurable: true
|
|
22
22
|
});
|
|
23
23
|
SecurityService.prototype.hasRole = function (roleName) {
|
package/dist/Security/User.js
CHANGED
|
@@ -9,14 +9,14 @@ var User = /** @class */ (function () {
|
|
|
9
9
|
get: function () {
|
|
10
10
|
return this.preferredUserName || this.name;
|
|
11
11
|
},
|
|
12
|
-
enumerable:
|
|
12
|
+
enumerable: false,
|
|
13
13
|
configurable: true
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(User.prototype, "displayName", {
|
|
16
16
|
get: function () {
|
|
17
17
|
return this.givenName;
|
|
18
18
|
},
|
|
19
|
-
enumerable:
|
|
19
|
+
enumerable: false,
|
|
20
20
|
configurable: true
|
|
21
21
|
});
|
|
22
22
|
return User;
|
package/dist/SignalR/HubBase.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __awaiter, __generator,
|
|
1
|
+
import { __awaiter, __generator, __spreadArray } from "tslib";
|
|
2
2
|
import * as signalR from '@microsoft/signalr';
|
|
3
3
|
import HubReceiver from "./HubReceiver";
|
|
4
4
|
import { AppServices, Misc, TaskRunner } from '../';
|
|
@@ -13,9 +13,9 @@ var HubBase = /** @class */ (function () {
|
|
|
13
13
|
* @param authenticationService Optional auth service if you don't want it to get from DI.
|
|
14
14
|
*/
|
|
15
15
|
function HubBase(url, options, configModel, authenticationService) {
|
|
16
|
-
var _this = this;
|
|
17
16
|
if (configModel === void 0) { configModel = Misc.Globals.appService.get(AppServices.NeoTypes.Config.ConfigModel); }
|
|
18
17
|
if (authenticationService === void 0) { authenticationService = Misc.Globals.appService.get(AppServices.NeoTypes.Security.AuthenticationService); }
|
|
18
|
+
var _this = this;
|
|
19
19
|
this.url = url;
|
|
20
20
|
this.authenticationService = authenticationService;
|
|
21
21
|
this.receivers = new Map();
|
|
@@ -58,7 +58,7 @@ var HubBase = /** @class */ (function () {
|
|
|
58
58
|
get: function () {
|
|
59
59
|
return this._connectionState.value;
|
|
60
60
|
},
|
|
61
|
-
enumerable:
|
|
61
|
+
enumerable: false,
|
|
62
62
|
configurable: true
|
|
63
63
|
});
|
|
64
64
|
HubBase.prototype.connect = function () {
|
|
@@ -130,7 +130,7 @@ var HubBase = /** @class */ (function () {
|
|
|
130
130
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
131
131
|
args[_i - 1] = arguments[_i];
|
|
132
132
|
}
|
|
133
|
-
return (_a = this.connection).invoke.apply(_a,
|
|
133
|
+
return (_a = this.connection).invoke.apply(_a, __spreadArray([methodName], args, false));
|
|
134
134
|
};
|
|
135
135
|
/**
|
|
136
136
|
* Invokes a method on the server hub, returning a promise.
|
|
@@ -144,7 +144,7 @@ var HubBase = /** @class */ (function () {
|
|
|
144
144
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
145
145
|
args[_i - 1] = arguments[_i];
|
|
146
146
|
}
|
|
147
|
-
return (_a = this.connection).send.apply(_a,
|
|
147
|
+
return (_a = this.connection).send.apply(_a, __spreadArray([methodName], args, false));
|
|
148
148
|
};
|
|
149
149
|
HubBase.prototype.registerReceiver = function (methodName) {
|
|
150
150
|
var _this = this;
|
package/dist/StringUtils.js
CHANGED
|
@@ -15,7 +15,7 @@ var StringUtils = /** @class */ (function () {
|
|
|
15
15
|
case 1: return words[0];
|
|
16
16
|
default:
|
|
17
17
|
var last2Words = words.slice(words.length - 2);
|
|
18
|
-
var joinWords = words.slice(0, words.length - 2).concat([last2Words[0]
|
|
18
|
+
var joinWords = words.slice(0, words.length - 2).concat(["".concat(last2Words[0], " and ").concat(last2Words[1])]);
|
|
19
19
|
return joinWords.join(", ");
|
|
20
20
|
}
|
|
21
21
|
};
|
package/dist/Utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __spreadArray } from "tslib";
|
|
2
2
|
import { DebounceHelper } from './DebounceHelper';
|
|
3
3
|
var lut = [];
|
|
4
4
|
for (var i = 0; i < 256; i++) {
|
|
@@ -77,10 +77,10 @@ var Utils = /** @class */ (function () {
|
|
|
77
77
|
args[_i - 1] = arguments[_i];
|
|
78
78
|
}
|
|
79
79
|
if (type.prototype.constructor.neo) {
|
|
80
|
-
return new ((_a = (type.prototype.constructor.neo.getOverrideConstructor())).bind.apply(_a,
|
|
80
|
+
return new ((_a = (type.prototype.constructor.neo.getOverrideConstructor())).bind.apply(_a, __spreadArray([void 0], args, false)))();
|
|
81
81
|
}
|
|
82
82
|
else {
|
|
83
|
-
throw "Cannot instantiate '"
|
|
83
|
+
throw "Cannot instantiate '".concat(type.name, "' because it does not have an @NeoModel attribute.");
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
/**
|
|
@@ -174,7 +174,7 @@ var Utils = /** @class */ (function () {
|
|
|
174
174
|
var propertyKey = propertyNames_1[_a];
|
|
175
175
|
var value = plainObject[propertyKey];
|
|
176
176
|
if (value !== undefined && value !== null && value !== "") {
|
|
177
|
-
var name_1 = prefix ? prefix
|
|
177
|
+
var name_1 = prefix ? "".concat(prefix, ".").concat(propertyKey) : propertyKey;
|
|
178
178
|
var append = "";
|
|
179
179
|
if (value instanceof Date) {
|
|
180
180
|
value = value.toISOString();
|
|
@@ -182,19 +182,19 @@ var Utils = /** @class */ (function () {
|
|
|
182
182
|
else if (value instanceof Array && value.length) {
|
|
183
183
|
if (value[0] instanceof Date) {
|
|
184
184
|
for (var i_1 = 0; i_1 < value.length; i_1++) {
|
|
185
|
-
append += (i_1 === 0 ? "" : "&") + (name_1
|
|
185
|
+
append += (i_1 === 0 ? "" : "&") + "".concat(name_1, "=").concat(value[i_1].toISOString());
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
else if (value[0] instanceof Object) {
|
|
189
189
|
// Object arrays are in the form: sortColumns[0].columnName=Prop1&sortColumns[1].columnName=Prop4
|
|
190
190
|
for (var i_2 = 0; i_2 < value.length; i_2++) {
|
|
191
|
-
append += (i_2 === 0 ? "" : "&") + buildQueryString(value[i_2], name_1
|
|
191
|
+
append += (i_2 === 0 ? "" : "&") + buildQueryString(value[i_2], "".concat(name_1, "[").concat(i_2, "]"));
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
else {
|
|
195
195
|
// Plain arrays are in the form: values=1&values=2
|
|
196
196
|
for (var i_3 = 0; i_3 < value.length; i_3++) {
|
|
197
|
-
append += (i_3 === 0 ? "" : "&") + (name_1
|
|
197
|
+
append += (i_3 === 0 ? "" : "&") + "".concat(name_1, "=").concat(encodeURIComponent(value[i_3]));
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
}
|
|
@@ -211,7 +211,7 @@ var Utils = /** @class */ (function () {
|
|
|
211
211
|
}
|
|
212
212
|
return queryString;
|
|
213
213
|
}
|
|
214
|
-
return buildQueryString.apply(void 0,
|
|
214
|
+
return buildQueryString.apply(void 0, __spreadArray([plainObject, ""], properties, false));
|
|
215
215
|
};
|
|
216
216
|
return Utils;
|
|
217
217
|
}());
|
|
@@ -21,7 +21,7 @@ var ValidationDisplayInfo = /** @class */ (function () {
|
|
|
21
21
|
}
|
|
22
22
|
return "";
|
|
23
23
|
},
|
|
24
|
-
enumerable:
|
|
24
|
+
enumerable: false,
|
|
25
25
|
configurable: true
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(ValidationDisplayInfo.prototype, "editorClassName", {
|
|
@@ -31,7 +31,7 @@ var ValidationDisplayInfo = /** @class */ (function () {
|
|
|
31
31
|
}
|
|
32
32
|
return "";
|
|
33
33
|
},
|
|
34
|
-
enumerable:
|
|
34
|
+
enumerable: false,
|
|
35
35
|
configurable: true
|
|
36
36
|
});
|
|
37
37
|
ValidationDisplayInfo.prototype.applyToDom = function (elementProps, addTooltip) {
|
|
@@ -56,7 +56,7 @@ var RuleContextBase = /** @class */ (function (_super) {
|
|
|
56
56
|
get: function () {
|
|
57
57
|
return this.messages.length > 0 || this.warnings.length > 0 || this.errors.length > 0 || this.asyncBusyText.length > 0;
|
|
58
58
|
},
|
|
59
|
-
enumerable:
|
|
59
|
+
enumerable: false,
|
|
60
60
|
configurable: true
|
|
61
61
|
});
|
|
62
62
|
return RuleContextBase;
|
|
@@ -77,7 +77,6 @@ var RuleContext = /** @class */ (function (_super) {
|
|
|
77
77
|
*/
|
|
78
78
|
RuleContext.prototype.beginAsync = function (loadingText, onReady, options) {
|
|
79
79
|
var _this = this;
|
|
80
|
-
var _a;
|
|
81
80
|
var model = this.ruleValidator.propertyInstance.attachedTo;
|
|
82
81
|
if (!model.isSuspended && ((options && options.checkWhenClean) || model.meta.isSelfDirty.peek) && this.ruleValidator.asyncStage !== AsyncStage.Completing) {
|
|
83
82
|
this.asyncBusyText = loadingText;
|
|
@@ -99,7 +98,7 @@ var RuleContext = /** @class */ (function (_super) {
|
|
|
99
98
|
asyncContext.endAsync();
|
|
100
99
|
});
|
|
101
100
|
}
|
|
102
|
-
}, ((
|
|
101
|
+
}, ((options === null || options === void 0 ? void 0 : options.delayMs) !== undefined ? options.delayMs : 500));
|
|
103
102
|
}
|
|
104
103
|
};
|
|
105
104
|
return RuleContext;
|
|
@@ -53,5 +53,5 @@ export function getValidationSummary(model, displayMode) {
|
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
return isArray ? root.childLists : (_a = root.childLists[0]
|
|
56
|
+
return isArray ? root.childLists : ((_a = root.childLists[0]) !== null && _a !== void 0 ? _a : null);
|
|
57
57
|
}
|
|
@@ -19,7 +19,7 @@ var ValidationState = /** @class */ (function () {
|
|
|
19
19
|
get: function () {
|
|
20
20
|
return this.severity < RuleSeverity.AsyncBusy;
|
|
21
21
|
},
|
|
22
|
-
enumerable:
|
|
22
|
+
enumerable: false,
|
|
23
23
|
configurable: true
|
|
24
24
|
});
|
|
25
25
|
/**
|
|
@@ -43,7 +43,7 @@ var ContainerValidationState = /** @class */ (function (_super) {
|
|
|
43
43
|
get: function () {
|
|
44
44
|
return this.brokenRules.length > 0;
|
|
45
45
|
},
|
|
46
|
-
enumerable:
|
|
46
|
+
enumerable: false,
|
|
47
47
|
configurable: true
|
|
48
48
|
});
|
|
49
49
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -52,14 +52,14 @@ var ModelValidator = /** @class */ (function () {
|
|
|
52
52
|
this.checkRules();
|
|
53
53
|
return this._ruleState;
|
|
54
54
|
},
|
|
55
|
-
enumerable:
|
|
55
|
+
enumerable: false,
|
|
56
56
|
configurable: true
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(ModelValidator.prototype, "isValid", {
|
|
59
59
|
get: function () {
|
|
60
60
|
return this.ruleState.isValid;
|
|
61
61
|
},
|
|
62
|
-
enumerable:
|
|
62
|
+
enumerable: false,
|
|
63
63
|
configurable: true
|
|
64
64
|
});
|
|
65
65
|
ModelValidator.prototype.checkRules = function () {
|
|
@@ -16,14 +16,14 @@ var PropertyValidator = /** @class */ (function () {
|
|
|
16
16
|
this.checkRules();
|
|
17
17
|
return this._ruleState;
|
|
18
18
|
},
|
|
19
|
-
enumerable:
|
|
19
|
+
enumerable: false,
|
|
20
20
|
configurable: true
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(PropertyValidator.prototype, "isValid", {
|
|
23
23
|
get: function () {
|
|
24
24
|
return this.ruleState.isValid;
|
|
25
25
|
},
|
|
26
|
-
enumerable:
|
|
26
|
+
enumerable: false,
|
|
27
27
|
configurable: true
|
|
28
28
|
});
|
|
29
29
|
PropertyValidator.prototype.checkRules = function () {
|
|
@@ -18,7 +18,7 @@ var RuleValidator = /** @class */ (function () {
|
|
|
18
18
|
get: function () {
|
|
19
19
|
return this.rule.ruleId;
|
|
20
20
|
},
|
|
21
|
-
enumerable:
|
|
21
|
+
enumerable: false,
|
|
22
22
|
configurable: true
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(RuleValidator.prototype, "ruleContext", {
|
|
@@ -34,7 +34,7 @@ var RuleValidator = /** @class */ (function () {
|
|
|
34
34
|
}
|
|
35
35
|
return ruleContext;
|
|
36
36
|
},
|
|
37
|
-
enumerable:
|
|
37
|
+
enumerable: false,
|
|
38
38
|
configurable: true
|
|
39
39
|
});
|
|
40
40
|
__decorate([
|
package/dist/Views/IViewBase.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@singularsystems/neo-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-alpha.1",
|
|
4
4
|
"description": "Core functionality for the Neo client library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,23 +9,28 @@
|
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "tsc",
|
|
12
|
-
"test": "jest"
|
|
12
|
+
"test": "jest --runInBand"
|
|
13
13
|
},
|
|
14
14
|
"author": "Singular Systems",
|
|
15
15
|
"license": "ISC",
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@types/jest": "^
|
|
18
|
-
"@types/node": "
|
|
19
|
-
"jest": "
|
|
20
|
-
"ts-jest": "
|
|
21
|
-
"typescript": "
|
|
17
|
+
"@types/jest": "^28.1.1",
|
|
18
|
+
"@types/node": "17.0.13",
|
|
19
|
+
"jest": "^28.1.1",
|
|
20
|
+
"ts-jest": "28.0.4",
|
|
21
|
+
"typescript": "4.7.3"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@microsoft/signalr": "^
|
|
25
|
-
"axios": "^0.
|
|
26
|
-
"decimal.js-light": "2.5.1",
|
|
27
|
-
"inversify": "
|
|
24
|
+
"@microsoft/signalr": "^6.0.1",
|
|
25
|
+
"axios": "^0.27.2",
|
|
26
|
+
"decimal.js-light": "^2.5.1",
|
|
27
|
+
"inversify": "^6.0.1",
|
|
28
28
|
"reflect-metadata": "0.1.13",
|
|
29
|
-
"tslib": "2.
|
|
30
|
-
}
|
|
29
|
+
"tslib": "2.4.0"
|
|
30
|
+
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"axios": ">=0.21.1",
|
|
33
|
+
"inversify": ">=5.0.1"
|
|
34
|
+
},
|
|
35
|
+
"packageManager": "yarn@3.2.1"
|
|
31
36
|
}
|