@sumaris-net/ngx-components 1.22.11-rc14 → 1.22.11-rc15

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.
@@ -31914,118 +31914,8 @@
31914
31914
  },] }
31915
31915
  ];
31916
31916
 
31917
- var UserEvent_1;
31918
- var UserEventTypes = {
31919
- DEBUG_DATA: 'DEBUG_DATA',
31920
- INBOX_MESSAGE: 'INBOX_MESSAGE'
31921
- };
31922
- // @dynamic
31923
- exports.UserEvent = UserEvent_1 = /** @class */ (function (_super) {
31924
- __extends(UserEvent, _super);
31925
- function UserEvent() {
31926
- return _super.call(this, UserEvent_1.TYPENAME) || this;
31927
- }
31928
- UserEvent.prototype.asObject = function (opts) {
31929
- var target = _super.prototype.asObject.call(this, opts);
31930
- target.creationDate = toDateISOString(this.creationDate);
31931
- target.readDate = toDateISOString(this.readDate);
31932
- // Serialize content
31933
- if (typeof target.content === 'object') {
31934
- target.content = JSON.stringify(target.content);
31935
- }
31936
- delete target.avatar;
31937
- delete target.avatarIcon;
31938
- delete target.icon;
31939
- delete target.actions;
31940
- return target;
31941
- };
31942
- UserEvent.prototype.fromObject = function (source) {
31943
- Object.assign(this, source); // Copy all properties
31944
- _super.prototype.fromObject.call(this, source);
31945
- this.creationDate = fromDateISOString(source.creationDate);
31946
- this.readDate = fromDateISOString(source.readDate);
31947
- try {
31948
- // Deserialize content
31949
- if (typeof source.content === 'string' && source.content.startsWith('{')) {
31950
- this.content = JSON.parse(source.content);
31951
- }
31952
- // Deserialize content.context
31953
- if (this.content && typeof this.content.context === 'string' && this.content.context.startsWith('{')) {
31954
- this.content.context = JSON.parse(this.content.context);
31955
- }
31956
- }
31957
- catch (err) {
31958
- console.error('Error during UserEvent deserialization', err);
31959
- }
31960
- };
31961
- return UserEvent;
31962
- }(Entity));
31963
- exports.UserEvent = UserEvent_1 = __decorate([
31964
- EntityClass({ typename: 'UserEventVO' })
31965
- ], exports.UserEvent);
31966
- // @dynamic
31967
- exports.UserEventFilter = /** @class */ (function (_super) {
31968
- __extends(UserEventFilter, _super);
31969
- function UserEventFilter() {
31970
- var _this = _super.apply(this, __spread(arguments)) || this;
31971
- _this.types = [];
31972
- _this.levels = [];
31973
- _this.issuers = [];
31974
- _this.recipients = [];
31975
- _this.startDate = null;
31976
- _this.excludeRead = false;
31977
- return _this;
31978
- }
31979
- UserEventFilter.prototype.fromObject = function (source, opts) {
31980
- _super.prototype.fromObject.call(this, source, opts);
31981
- this.types = source.types || [];
31982
- this.levels = source.levels || [];
31983
- this.issuers = source.issuers || [];
31984
- this.recipients = source.recipients || [];
31985
- this.startDate = fromDateISOString(source.startDate);
31986
- this.excludeRead = source.excludeRead || false;
31987
- };
31988
- UserEventFilter.prototype.buildFilter = function () {
31989
- var _this = this;
31990
- var filterFns = _super.prototype.buildFilter.call(this);
31991
- if (isNotEmptyArray(this.types)) {
31992
- filterFns.push(function (t) { return _this.types.includes(t.type); });
31993
- }
31994
- if (isNotEmptyArray(this.levels)) {
31995
- filterFns.push(function (t) { return _this.levels.includes(t.level); });
31996
- }
31997
- if (isNotEmptyArray(this.issuers)) {
31998
- filterFns.push(function (t) { return _this.issuers.includes(t.issuer); });
31999
- }
32000
- if (isNotEmptyArray(this.recipients)) {
32001
- filterFns.push(function (t) { return _this.recipients.includes(t.recipient); });
32002
- }
32003
- if (isNotNil(this.startDate)) {
32004
- filterFns.push(function (t) { return _this.startDate.isSameOrBefore(t.creationDate); });
32005
- }
32006
- if (this.excludeRead === true) {
32007
- filterFns.push(function (t) { return isNil(t.readSignature); }); // todo or t.signature ?
32008
- }
32009
- return filterFns;
32010
- };
32011
- UserEventFilter.prototype.asObject = function (opts) {
32012
- var target = _super.prototype.asObject.call(this, opts);
32013
- return target;
32014
- };
32015
- return UserEventFilter;
32016
- }(EntityFilter));
32017
- exports.UserEventFilter = __decorate([
32018
- EntityClass({ typename: 'UserEventFilterVO' })
32019
- ], exports.UserEventFilter);
32020
-
32021
- var UserEventFragments = {
32022
- userEvent: core.gql(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["fragment UserEventFragment on UserEventVO {\n id\n issuer\n updateDate\n creationDate\n eventType\n recipient\n content\n hash\n signature\n readSignature\n __typename\n }"], ["fragment UserEventFragment on UserEventVO {\n id\n issuer\n updateDate\n creationDate\n eventType\n recipient\n content\n hash\n signature\n readSignature\n __typename\n }"]))),
32023
- lightUserEvent: core.gql(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["fragment LightUserEventFragment on UserEventVO {\n id\n issuer\n recipient\n updateDate\n creationDate\n eventType\n readSignature\n __typename\n }"], ["fragment LightUserEventFragment on UserEventVO {\n id\n issuer\n recipient\n updateDate\n creationDate\n eventType\n readSignature\n __typename\n }"])))
32024
- };
32025
- var templateObject_1$3, templateObject_2$2;
32026
-
32027
31917
  var Mutations = {
32028
- send: core.gql(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["mutation SendMessage($data: MessageVOInput){\n done: sendMessage(message: $data)\n }"], ["mutation SendMessage($data: MessageVOInput){\n done: sendMessage(message: $data)\n }"])))
31918
+ send: core.gql(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["mutation SendMessage($data: MessageVOInput){\n done: sendMessage(message: $data)\n }"], ["mutation SendMessage($data: MessageVOInput){\n done: sendMessage(message: $data)\n }"])))
32029
31919
  };
32030
31920
  var MessageService = /** @class */ (function (_super) {
32031
31921
  __extends(MessageService, _super);
@@ -32109,7 +31999,7 @@
32109
31999
  { type: i1$5.ToastController },
32110
32000
  { type: Environment, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [ENVIRONMENT,] }] }
32111
32001
  ]; };
32112
- var templateObject_1$4;
32002
+ var templateObject_1$3;
32113
32003
 
32114
32004
  var PersonFilter_1;
32115
32005
  // @dynamic
@@ -32168,11 +32058,11 @@
32168
32058
  ], exports.PersonFilter);
32169
32059
 
32170
32060
  var PersonFragments = {
32171
- person: core.gql(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["fragment PersonFragment on PersonVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n username\n usernameExtranet\n department {\n id\n label\n name\n logo\n __typename\n }\n __typename\n }"], ["fragment PersonFragment on PersonVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n username\n usernameExtranet\n department {\n id\n label\n name\n logo\n __typename\n }\n __typename\n }"])))
32061
+ person: core.gql(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["fragment PersonFragment on PersonVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n username\n usernameExtranet\n department {\n id\n label\n name\n logo\n __typename\n }\n __typename\n }"], ["fragment PersonFragment on PersonVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n username\n usernameExtranet\n department {\n id\n label\n name\n logo\n __typename\n }\n __typename\n }"])))
32172
32062
  };
32173
32063
  // Load persons query
32174
32064
  var PersonQueries = {
32175
- loadAll: core.gql(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n query Persons($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n }\n ", ""], ["\n query Persons($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n }\n ", ""])), PersonFragments.person),
32065
+ loadAll: core.gql(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n query Persons($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n }\n ", ""], ["\n query Persons($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n }\n ", ""])), PersonFragments.person),
32176
32066
  loadAllWithTotal: core.gql(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n query PersonsWithTotal($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n total: personsCount(filter: $filter)\n }\n ", ""], ["\n query PersonsWithTotal($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n total: personsCount(filter: $filter)\n }\n ", ""])), PersonFragments.person)
32177
32067
  };
32178
32068
  var PersonMutations = {
@@ -32308,7 +32198,7 @@
32308
32198
  { type: NetworkService },
32309
32199
  { type: EntitiesStorage }
32310
32200
  ]; };
32311
- var templateObject_1$5, templateObject_2$3, templateObject_3$2, templateObject_4$2, templateObject_5$2;
32201
+ var templateObject_1$4, templateObject_2$2, templateObject_3$2, templateObject_4$2, templateObject_5$2;
32312
32202
 
32313
32203
  var PersonValidatorService = /** @class */ (function () {
32314
32204
  function PersonValidatorService(formBuilder, accountValidatorService) {
@@ -34246,6 +34136,106 @@
34246
34136
  },] }
34247
34137
  ];
34248
34138
 
34139
+ var UserEventTest_1;
34140
+ // @dynamic
34141
+ var UserEventTest = UserEventTest_1 = /** @class */ (function (_super) {
34142
+ __extends(UserEventTest, _super);
34143
+ function UserEventTest() {
34144
+ return _super.call(this, UserEventTest_1.TYPENAME) || this;
34145
+ }
34146
+ UserEventTest.prototype.asObject = function (opts) {
34147
+ var target = _super.prototype.asObject.call(this, opts);
34148
+ target.creationDate = toDateISOString(this.creationDate);
34149
+ target.readDate = toDateISOString(this.readDate);
34150
+ // Serialize content
34151
+ if (typeof target.content === 'object') {
34152
+ target.content = JSON.stringify(target.content);
34153
+ }
34154
+ delete target.avatar;
34155
+ delete target.avatarIcon;
34156
+ delete target.icon;
34157
+ delete target.actions;
34158
+ return target;
34159
+ };
34160
+ UserEventTest.prototype.fromObject = function (source) {
34161
+ Object.assign(this, source); // Copy all properties
34162
+ _super.prototype.fromObject.call(this, source);
34163
+ this.creationDate = fromDateISOString(source.creationDate);
34164
+ this.readDate = fromDateISOString(source.readDate);
34165
+ try {
34166
+ // Deserialize content
34167
+ if (typeof source.content === 'string' && source.content.startsWith('{')) {
34168
+ this.content = JSON.parse(source.content);
34169
+ }
34170
+ // Deserialize content.context
34171
+ if (this.content && typeof this.content.context === 'string' && this.content.context.startsWith('{')) {
34172
+ this.content.context = JSON.parse(this.content.context);
34173
+ }
34174
+ }
34175
+ catch (err) {
34176
+ console.error('Error during UserEvent deserialization', err);
34177
+ }
34178
+ };
34179
+ return UserEventTest;
34180
+ }(Entity));
34181
+ UserEventTest = UserEventTest_1 = __decorate([
34182
+ EntityClass({ typename: 'UserEventTestVO' })
34183
+ ], UserEventTest);
34184
+ // @dynamic
34185
+ var UserEventTestFilter = /** @class */ (function (_super) {
34186
+ __extends(UserEventTestFilter, _super);
34187
+ function UserEventTestFilter() {
34188
+ var _this = _super.apply(this, __spread(arguments)) || this;
34189
+ _this.types = [];
34190
+ _this.levels = [];
34191
+ _this.issuers = [];
34192
+ _this.recipients = [];
34193
+ _this.startDate = null;
34194
+ _this.excludeRead = false;
34195
+ return _this;
34196
+ }
34197
+ UserEventTestFilter.prototype.fromObject = function (source, opts) {
34198
+ _super.prototype.fromObject.call(this, source, opts);
34199
+ this.types = source.types || [];
34200
+ this.levels = source.levels || [];
34201
+ this.issuers = source.issuers || [];
34202
+ this.recipients = source.recipients || [];
34203
+ this.startDate = fromDateISOString(source.startDate);
34204
+ this.excludeRead = source.excludeRead || false;
34205
+ };
34206
+ UserEventTestFilter.prototype.buildFilter = function () {
34207
+ var _this = this;
34208
+ var filterFns = _super.prototype.buildFilter.call(this);
34209
+ if (isNotEmptyArray(this.types)) {
34210
+ filterFns.push(function (t) { return _this.types.includes(t.type); });
34211
+ }
34212
+ if (isNotEmptyArray(this.levels)) {
34213
+ filterFns.push(function (t) { return _this.levels.includes(t.level); });
34214
+ }
34215
+ if (isNotEmptyArray(this.issuers)) {
34216
+ filterFns.push(function (t) { return _this.issuers.includes(t.issuer); });
34217
+ }
34218
+ if (isNotEmptyArray(this.recipients)) {
34219
+ filterFns.push(function (t) { return _this.recipients.includes(t.recipient); });
34220
+ }
34221
+ if (isNotNil(this.startDate)) {
34222
+ filterFns.push(function (t) { return _this.startDate.isSameOrBefore(t.creationDate); });
34223
+ }
34224
+ if (this.excludeRead === true) {
34225
+ filterFns.push(function (t) { return isNil(t.readSignature); }); // todo or t.signature ?
34226
+ }
34227
+ return filterFns;
34228
+ };
34229
+ UserEventTestFilter.prototype.asObject = function (opts) {
34230
+ var target = _super.prototype.asObject.call(this, opts);
34231
+ return target;
34232
+ };
34233
+ return UserEventTestFilter;
34234
+ }(EntityFilter));
34235
+ UserEventTestFilter = __decorate([
34236
+ EntityClass({ typename: 'UserEventTestFilterVO' })
34237
+ ], UserEventTestFilter);
34238
+
34249
34239
  var UserEventTestService = /** @class */ (function (_super) {
34250
34240
  __extends(UserEventTestService, _super);
34251
34241
  function UserEventTestService(graphql, accountService, network, translate, environment) {
@@ -34266,7 +34256,7 @@
34266
34256
  return _this;
34267
34257
  }
34268
34258
  UserEventTestService.prototype.fromObject = function (source) {
34269
- return exports.UserEvent.fromObject(source);
34259
+ return UserEventTest.fromObject(source);
34270
34260
  };
34271
34261
  UserEventTestService.prototype.add = function (entity) {
34272
34262
  var _a;
@@ -34450,7 +34440,7 @@
34450
34440
  }
34451
34441
  };
34452
34442
  UserEventTestingPage.prototype.addNotification = function () {
34453
- this.userEventService.add(exports.UserEvent.fromObject({
34443
+ this.userEventService.add(UserEventTest.fromObject({
34454
34444
  issuer: 'system',
34455
34445
  recipient: 'me',
34456
34446
  type: 'message',
@@ -34460,7 +34450,7 @@
34460
34450
  }));
34461
34451
  };
34462
34452
  UserEventTestingPage.prototype.addError = function () {
34463
- this.userEventService.add(exports.UserEvent.fromObject({
34453
+ this.userEventService.add(UserEventTest.fromObject({
34464
34454
  issuer: 'system',
34465
34455
  recipient: 'me',
34466
34456
  type: 'upload',
@@ -34470,7 +34460,7 @@
34470
34460
  }));
34471
34461
  };
34472
34462
  UserEventTestingPage.prototype.addWarning = function () {
34473
- this.userEventService.add(exports.UserEvent.fromObject({
34463
+ this.userEventService.add(UserEventTest.fromObject({
34474
34464
  issuer: 'system',
34475
34465
  recipient: 'me',
34476
34466
  type: 'download',
@@ -34480,7 +34470,7 @@
34480
34470
  }));
34481
34471
  };
34482
34472
  UserEventTestingPage.prototype.addDebug = function () {
34483
- this.userEventService.add(exports.UserEvent.fromObject({
34473
+ this.userEventService.add(UserEventTest.fromObject({
34484
34474
  issuer: 'system',
34485
34475
  recipient: 'me',
34486
34476
  type: 'debug',
@@ -34491,7 +34481,7 @@
34491
34481
  };
34492
34482
  UserEventTestingPage.prototype.addNotificationWithLink = function () {
34493
34483
  var _this = this;
34494
- this.userEventService.add(exports.UserEvent.fromObject({
34484
+ this.userEventService.add(UserEventTest.fromObject({
34495
34485
  issuer: 'system',
34496
34486
  recipient: 'me',
34497
34487
  type: 'message',
@@ -34509,7 +34499,7 @@
34509
34499
  };
34510
34500
  UserEventTestingPage.prototype.addNotificationWithAction = function () {
34511
34501
  var _this = this;
34512
- this.userEventService.add(exports.UserEvent.fromObject({
34502
+ this.userEventService.add(UserEventTest.fromObject({
34513
34503
  issuer: 'system',
34514
34504
  recipient: 'me',
34515
34505
  type: 'message',
@@ -34583,7 +34573,7 @@
34583
34573
  };
34584
34574
  UserEventTestingPage.prototype.addNotificationWithDefaultAction = function () {
34585
34575
  var _this = this;
34586
- this.userEventService.add(exports.UserEvent.fromObject({
34576
+ this.userEventService.add(UserEventTest.fromObject({
34587
34577
  issuer: 'system',
34588
34578
  recipient: 'me',
34589
34579
  type: 'message',
@@ -34971,12 +34961,10 @@
34971
34961
  exports.UploadFileTestingModule = UploadFileTestingModule;
34972
34962
  exports.UploadFileTestingPage = UploadFileTestingPage;
34973
34963
  exports.UriUtils = UriUtils;
34974
- exports.UserEventFragments = UserEventFragments;
34975
34964
  exports.UserEventModule = UserEventModule;
34976
34965
  exports.UserEventTestService = UserEventTestService;
34977
34966
  exports.UserEventTestingModule = UserEventTestingModule;
34978
34967
  exports.UserEventTestingPage = UserEventTestingPage;
34979
- exports.UserEventTypes = UserEventTypes;
34980
34968
  exports.UsersPage = UsersPage;
34981
34969
  exports.accountToString = accountToString;
34982
34970
  exports.adaptValueToControl = adaptValueToControl;