@singularsystems/neo-core 0.10.50 → 1.0.0-alpha.2

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 (93) hide show
  1. package/README.md +7 -13
  2. package/dist/ApiClient/ReadApiClient.d.ts +1 -1
  3. package/dist/ApiClient/ReadApiClient.js +1 -1
  4. package/dist/ApiClient/UpdateableApiClient.js +4 -4
  5. package/dist/AppServices/Config/ConfigModel.js +1 -1
  6. package/dist/AppServices/Config/ConfigService.js +4 -4
  7. package/dist/AppServices/ServiceIdentifier.js +1 -1
  8. package/dist/Components/AnimationHelper.js +1 -1
  9. package/dist/Components/BootstrapTypes.js +1 -0
  10. package/dist/Components/ButtonOptions.js +1 -0
  11. package/dist/Components/ContextMenu/ContextMenu.js +1 -0
  12. package/dist/Components/DatePicker/DatePicker.js +2 -3
  13. package/dist/Components/ErrorHandler.d.ts +1 -1
  14. package/dist/Components/FileManager/FileManager.js +4 -4
  15. package/dist/Components/FileManager/FileUploadBatch.js +3 -3
  16. package/dist/Components/FileManager/IFileManagerOptions.js +1 -0
  17. package/dist/Components/FormOptions.js +1 -0
  18. package/dist/Components/ICollapsableOptions.js +1 -0
  19. package/dist/Components/Modal/ModalHelper.js +4 -4
  20. package/dist/Components/Modal/ModalOptions.d.ts +2 -0
  21. package/dist/Components/Modal/ModalOptions.js +1 -0
  22. package/dist/Components/Notifications/INotificationHelper.js +1 -0
  23. package/dist/Components/Notifications/NotificationHelper.js +1 -1
  24. package/dist/Components/TaskRunner/ProgressState.js +1 -1
  25. package/dist/Components/TaskRunner/TaskRunner.js +10 -11
  26. package/dist/Components/TooltipOptions.js +1 -0
  27. package/dist/Components/index.js +1 -0
  28. package/dist/ConnectionManager.js +2 -2
  29. package/dist/Data/ApiDataSource.js +2 -2
  30. package/dist/Data/AsyncDataSource.js +1 -1
  31. package/dist/Data/DataCacheEntry.js +3 -3
  32. package/dist/Data/DataView.d.ts +1 -10
  33. package/dist/Data/DataView.js +19 -19
  34. package/dist/Data/Deserialiser.js +4 -5
  35. package/dist/Data/Paging/PageManager.js +9 -9
  36. package/dist/Data/Serialiser.js +21 -11
  37. package/dist/Data/StaticDataSource.js +1 -1
  38. package/dist/Data/WindowedDataView.js +1 -1
  39. package/dist/Dates/DateUtils.js +3 -4
  40. package/dist/Dates/TimeSpan.js +4 -4
  41. package/dist/Extensions.d.ts +1 -5
  42. package/dist/Extensions.js +18 -21
  43. package/dist/Globals.js +5 -5
  44. package/dist/JsonSchema/JsonSchemaTypes.js +1 -0
  45. package/dist/JsonSchema/TypeCache.js +2 -2
  46. package/dist/JsonSchema/TypeMetadata.js +4 -4
  47. package/dist/Localisation/ILocalisationService.js +1 -0
  48. package/dist/Localisation/index.js +1 -0
  49. package/dist/Model/BaseModels/UserEvent.js +1 -1
  50. package/dist/Model/Decorators.d.ts +1 -1
  51. package/dist/Model/Decorators.js +1 -1
  52. package/dist/Model/IAutoRunner.js +1 -0
  53. package/dist/Model/IModelBase.js +1 -0
  54. package/dist/Model/IModelCreatorBase.js +1 -0
  55. package/dist/Model/List.d.ts +1 -1
  56. package/dist/Model/List.js +4 -22
  57. package/dist/Model/ModelBase.js +4 -4
  58. package/dist/Model/ModelCreatorBase.js +1 -1
  59. package/dist/Model/ModelGraphTraverser.js +1 -1
  60. package/dist/Model/NeoTypeInfo.js +9 -10
  61. package/dist/Model/ObservableValue.js +1 -1
  62. package/dist/Model/PropertyInfo.js +8 -8
  63. package/dist/Model/PropertyInstance.js +8 -8
  64. package/dist/Routing/IMenuItemProvider.js +1 -0
  65. package/dist/Routing/IMenuRoute.js +1 -0
  66. package/dist/Routing/INavigationHelper.js +1 -0
  67. package/dist/Routing/IRoute.js +1 -0
  68. package/dist/Routing/IRouteSecurityService.js +1 -0
  69. package/dist/Security/IAuthenticationService.js +1 -0
  70. package/dist/Security/IAuthorisationService.js +1 -0
  71. package/dist/Security/ILoginErrorHandler.js +1 -0
  72. package/dist/Security/ISecurityService.js +1 -0
  73. package/dist/Security/IUser.js +1 -0
  74. package/dist/Security/IUserRole.js +1 -0
  75. package/dist/Security/LoginErrorHandler.js +1 -1
  76. package/dist/Security/Oidc/OidcAuthService.js +8 -3
  77. package/dist/Security/Oidc/OidcTypes.js +1 -0
  78. package/dist/Security/Oidc/OidcUser.js +3 -3
  79. package/dist/Security/SecurityService.js +2 -2
  80. package/dist/Security/User.js +2 -2
  81. package/dist/SignalR/HubBase.js +5 -5
  82. package/dist/StringUtils.js +1 -1
  83. package/dist/Utils.js +8 -8
  84. package/dist/Validation/DisplayHelper.js +2 -2
  85. package/dist/Validation/RuleContext.js +2 -3
  86. package/dist/Validation/ValidationHelpers.js +1 -1
  87. package/dist/Validation/ValidationState.js +2 -2
  88. package/dist/Validation/Validators/IModelValidator.js +1 -0
  89. package/dist/Validation/Validators/ModelValidator.js +2 -2
  90. package/dist/Validation/Validators/PropertyValidator.js +2 -2
  91. package/dist/Validation/Validators/RuleValidator.js +2 -2
  92. package/dist/Views/IViewBase.js +1 -0
  93. package/package.json +18 -13
@@ -10,7 +10,7 @@ var ObservableValue = /** @class */ (function () {
10
10
  get: function () {
11
11
  return Utils.peek(this, "value");
12
12
  },
13
- enumerable: true,
13
+ enumerable: false,
14
14
  configurable: true
15
15
  });
16
16
  __decorate([
@@ -1,4 +1,4 @@
1
- import { __spreadArrays } from "tslib";
1
+ import { __spreadArray } from "tslib";
2
2
  import { SerialiseType, RelationType, DataType } from './Misc';
3
3
  import Globals from '../Globals';
4
4
  var PropertyInfo = /** @class */ (function () {
@@ -46,7 +46,7 @@ var PropertyInfo = /** @class */ (function () {
46
46
  }
47
47
  return this._readableName;
48
48
  },
49
- enumerable: true,
49
+ enumerable: false,
50
50
  configurable: true
51
51
  });
52
52
  Object.defineProperty(PropertyInfo.prototype, "parent", {
@@ -56,7 +56,7 @@ var PropertyInfo = /** @class */ (function () {
56
56
  get: function () {
57
57
  return this._parent;
58
58
  },
59
- enumerable: true,
59
+ enumerable: false,
60
60
  configurable: true
61
61
  });
62
62
  PropertyInfo.prototype.addAttributeRule = function (rule) {
@@ -70,7 +70,7 @@ var PropertyInfo = /** @class */ (function () {
70
70
  var propertyKey = _b[_i];
71
71
  clone[propertyKey] = this[propertyKey];
72
72
  }
73
- (_a = clone.rules).splice.apply(_a, __spreadArrays([0, clone.rules.length], clone.attributeRules));
73
+ (_a = clone.rules).splice.apply(_a, __spreadArray([0, clone.rules.length], clone.attributeRules, false));
74
74
  clone._parent = this;
75
75
  return clone;
76
76
  };
@@ -98,7 +98,7 @@ var PropertyInfo = /** @class */ (function () {
98
98
  return null;
99
99
  }
100
100
  },
101
- enumerable: true,
101
+ enumerable: false,
102
102
  configurable: true
103
103
  });
104
104
  Object.defineProperty(PropertyInfo.prototype, "typeWithAssert", {
@@ -109,11 +109,11 @@ var PropertyInfo = /** @class */ (function () {
109
109
  get: function () {
110
110
  var type = this.type;
111
111
  if (!type) {
112
- throw this.propertyName + " has no property type defined. Make sure it is decorated with @Attributes.ChildObject.";
112
+ throw "".concat(this.propertyName, " has no property type defined. Make sure it is decorated with @Attributes.ChildObject.");
113
113
  }
114
114
  return type;
115
115
  },
116
- enumerable: true,
116
+ enumerable: false,
117
117
  configurable: true
118
118
  });
119
119
  PropertyInfo.prototype.createValueInstance = function () {
@@ -121,7 +121,7 @@ var PropertyInfo = /** @class */ (function () {
121
121
  return new this.typeWithAssert();
122
122
  }
123
123
  catch (error) {
124
- throw "Cannot create instance of property " + this.propertyName + ": " + error;
124
+ throw "Cannot create instance of property ".concat(this.propertyName, ": ").concat(error);
125
125
  }
126
126
  };
127
127
  PropertyInfo.prototype.setupFromInstance = function (instance) {
@@ -20,14 +20,14 @@ var PropertyInstance = /** @class */ (function () {
20
20
  set: function (newVal) {
21
21
  this.attachedTo[this.propertyName] = newVal;
22
22
  },
23
- enumerable: true,
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: true,
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: true,
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: true,
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: true,
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: true,
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: true,
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: true,
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 {};
@@ -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 {};
@@ -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 " + userName + ".</p><p>Do you want to continue as " + userName + ", or logout?</p>");
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
- this.axios.defaults.headers.common['Authorization'] = user ? user.authKey : undefined;
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: true,
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: true,
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: true,
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: true,
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: true,
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: true,
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: true,
20
+ enumerable: false,
21
21
  configurable: true
22
22
  });
23
23
  SecurityService.prototype.hasRole = function (roleName) {
@@ -9,14 +9,14 @@ var User = /** @class */ (function () {
9
9
  get: function () {
10
10
  return this.preferredUserName || this.name;
11
11
  },
12
- enumerable: true,
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: true,
19
+ enumerable: false,
20
20
  configurable: true
21
21
  });
22
22
  return User;
@@ -1,4 +1,4 @@
1
- import { __awaiter, __generator, __spreadArrays } from "tslib";
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: true,
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, __spreadArrays([methodName], args));
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, __spreadArrays([methodName], args));
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;
@@ -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] + " and " + last2Words[1]]);
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 { __spreadArrays } from "tslib";
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, __spreadArrays([void 0], args)))();
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 '" + type.name + "' because it does not have an @NeoModel attribute.";
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 + "." + propertyKey : propertyKey;
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 + "=" + value[i_1].toISOString());
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 + "[" + i_2 + "]");
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 + "=" + encodeURIComponent(value[i_3]));
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, __spreadArrays([plainObject, ""], properties));
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: true,
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: true,
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: true,
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
- }, (((_a = options) === null || _a === void 0 ? void 0 : _a.delayMs) !== undefined ? options.delayMs : 500));
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], (_a !== null && _a !== void 0 ? _a : null));
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: true,
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: true,
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: true,
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: true,
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: true,
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: true,
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: true,
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: true,
37
+ enumerable: false,
38
38
  configurable: true
39
39
  });
40
40
  __decorate([
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singularsystems/neo-core",
3
- "version": "0.10.50",
3
+ "version": "1.0.0-alpha.2",
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": "^24.0.15",
18
- "@types/node": "12.0.8",
19
- "jest": "24.8.0",
20
- "ts-jest": "24.0.2",
21
- "typescript": "3.7.5"
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": "^3.0.1",
25
- "axios": "^0.21.1",
26
- "decimal.js-light": "2.5.1",
27
- "inversify": "5.0.1",
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.3.1"
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
  }