@po-ui/ng-sync 5.22.0 → 6.0.0

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 (86) hide show
  1. package/{esm2015/lib/index.js → esm2020/lib/index.mjs} +0 -0
  2. package/{esm2015/lib/models/index.js → esm2020/lib/models/index.mjs} +0 -0
  3. package/{esm2015/lib/models/po-data-message.model.js → esm2020/lib/models/po-data-message.model.mjs} +0 -0
  4. package/{esm2015/lib/models/po-data-transform.model.js → esm2020/lib/models/po-data-transform.model.mjs} +0 -0
  5. package/esm2020/lib/models/po-entity/po-entity.model.mjs +214 -0
  6. package/{esm2015/lib/models/po-event-sourcing-error-response.model.js → esm2020/lib/models/po-event-sourcing-error-response.model.mjs} +0 -0
  7. package/{esm2015/lib/models/po-network-status.model.js → esm2020/lib/models/po-network-status.model.mjs} +0 -0
  8. package/{esm2015/lib/models/po-network-type.enum.js → esm2020/lib/models/po-network-type.enum.mjs} +0 -0
  9. package/esm2020/lib/models/po-query-builder/po-query-builder.model.mjs +238 -0
  10. package/{esm2015/lib/models/po-request-type.enum.js → esm2020/lib/models/po-request-type.enum.mjs} +0 -0
  11. package/esm2020/lib/po-sync.module.mjs +45 -0
  12. package/{esm2015/lib/services/po-event-sourcing/enums/po-event-sourcing-operation.enum.js → esm2020/lib/services/po-event-sourcing/enums/po-event-sourcing-operation.enum.mjs} +0 -0
  13. package/{esm2015/lib/services/po-event-sourcing/index.js → esm2020/lib/services/po-event-sourcing/index.mjs} +0 -0
  14. package/{esm2015/lib/services/po-event-sourcing/interfaces/po-event-sourcing-item.interface.js → esm2020/lib/services/po-event-sourcing/interfaces/po-event-sourcing-item.interface.mjs} +0 -0
  15. package/{esm2015/lib/services/po-event-sourcing/interfaces/po-event-sourcing-summary-item.interface.js → esm2020/lib/services/po-event-sourcing/interfaces/po-event-sourcing-summary-item.interface.mjs} +0 -0
  16. package/esm2020/lib/services/po-event-sourcing/po-event-sourcing.service.mjs +372 -0
  17. package/{esm2015/lib/services/po-http-client/interfaces/po-http-header-option.interface.js → esm2020/lib/services/po-http-client/interfaces/po-http-header-option.interface.mjs} +0 -0
  18. package/{esm2015/lib/services/po-http-client/interfaces/po-http-request-data.interface.js → esm2020/lib/services/po-http-client/interfaces/po-http-request-data.interface.mjs} +0 -0
  19. package/{esm2015/lib/services/po-http-client/interfaces/po-response-api.interface.js → esm2020/lib/services/po-http-client/interfaces/po-response-api.interface.mjs} +0 -0
  20. package/esm2020/lib/services/po-http-client/po-http-client.service.mjs +148 -0
  21. package/{esm2015/lib/services/po-http-client/po-http-request-type.enum.js → esm2020/lib/services/po-http-client/po-http-request-type.enum.mjs} +0 -0
  22. package/esm2020/lib/services/po-network/po-network.service.mjs +58 -0
  23. package/{esm2015/lib/services/po-schema/index.js → esm2020/lib/services/po-schema/index.mjs} +0 -0
  24. package/esm2020/lib/services/po-schema/po-schema-definition/po-schema-definition.service.mjs +77 -0
  25. package/{esm2015/lib/services/po-schema/po-schema-util/po-schema-util.model.js → esm2020/lib/services/po-schema/po-schema-util/po-schema-util.model.mjs} +0 -0
  26. package/esm2020/lib/services/po-schema/po-schema.service.mjs +174 -0
  27. package/{esm2015/lib/services/po-sync/interfaces/po-sync-config.interface.js → esm2020/lib/services/po-sync/interfaces/po-sync-config.interface.mjs} +0 -0
  28. package/{esm2015/lib/services/po-sync/interfaces/po-sync-field-options.interface.js → esm2020/lib/services/po-sync/interfaces/po-sync-field-options.interface.mjs} +0 -0
  29. package/{esm2015/lib/services/po-sync/interfaces/po-sync-response.interface.js → esm2020/lib/services/po-sync/interfaces/po-sync-response.interface.mjs} +0 -0
  30. package/{esm2015/lib/services/po-sync/interfaces/po-sync-schema.interface.js → esm2020/lib/services/po-sync/interfaces/po-sync-schema.interface.mjs} +0 -0
  31. package/esm2020/lib/services/po-sync/po-sync.service.mjs +325 -0
  32. package/{esm2015/lib/utils/utils.js → esm2020/lib/utils/utils.mjs} +0 -0
  33. package/esm2020/po-ui-ng-sync.mjs +5 -0
  34. package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
  35. package/fesm2015/{po-ui-ng-sync.js → po-ui-ng-sync.mjs} +217 -201
  36. package/fesm2015/po-ui-ng-sync.mjs.map +1 -0
  37. package/fesm2020/po-ui-ng-sync.mjs +2018 -0
  38. package/fesm2020/po-ui-ng-sync.mjs.map +1 -0
  39. package/lib/po-sync.module.d.ts +5 -0
  40. package/lib/services/po-event-sourcing/po-event-sourcing.service.d.ts +3 -0
  41. package/lib/services/po-http-client/po-http-client.service.d.ts +3 -0
  42. package/lib/services/po-network/po-network.service.d.ts +3 -0
  43. package/lib/services/po-schema/po-schema-definition/po-schema-definition.service.d.ts +3 -0
  44. package/lib/services/po-schema/po-schema.service.d.ts +3 -0
  45. package/lib/services/po-sync/po-sync.service.d.ts +3 -0
  46. package/package.json +25 -13
  47. package/po-ui-ng-sync-6.0.0.tgz +0 -0
  48. package/po-ui-ng-sync.d.ts +1 -4
  49. package/schematics/migrations.json +5 -0
  50. package/schematics/ng-add/index.js +4 -4
  51. package/schematics/ng-add/index.js.map +1 -1
  52. package/schematics/ng-add/index.spec.js +4 -4
  53. package/schematics/ng-add/index.spec.js.map +1 -1
  54. package/schematics/ng-generate/schema/index.js +2 -2
  55. package/schematics/ng-generate/schema/index.js.map +1 -1
  56. package/schematics/ng-generate/schema/index.spec.js +3 -3
  57. package/schematics/ng-generate/schema/index.spec.js.map +1 -1
  58. package/schematics/ng-update/v2/index.js +6 -6
  59. package/schematics/ng-update/v2/index.js.map +1 -1
  60. package/schematics/ng-update/v3/index.js +1 -1
  61. package/schematics/ng-update/v3/index.js.map +1 -1
  62. package/schematics/ng-update/v4/index.js +1 -1
  63. package/schematics/ng-update/v4/index.js.map +1 -1
  64. package/schematics/ng-update/v5/index.js +1 -1
  65. package/schematics/ng-update/v5/index.js.map +1 -1
  66. package/schematics/ng-update/v6/changes.d.ts +2 -0
  67. package/schematics/ng-update/v6/changes.js +14 -0
  68. package/schematics/ng-update/v6/changes.js.map +1 -0
  69. package/schematics/ng-update/v6/index.d.ts +1 -0
  70. package/schematics/ng-update/v6/index.js +16 -0
  71. package/schematics/ng-update/v6/index.js.map +1 -0
  72. package/bundles/po-ui-ng-sync.umd.js +0 -3002
  73. package/bundles/po-ui-ng-sync.umd.js.map +0 -1
  74. package/esm2015/lib/models/po-entity/po-entity.model.js +0 -229
  75. package/esm2015/lib/models/po-query-builder/po-query-builder.model.js +0 -241
  76. package/esm2015/lib/po-sync.module.js +0 -31
  77. package/esm2015/lib/services/po-event-sourcing/po-event-sourcing.service.js +0 -411
  78. package/esm2015/lib/services/po-http-client/po-http-client.service.js +0 -147
  79. package/esm2015/lib/services/po-network/po-network.service.js +0 -58
  80. package/esm2015/lib/services/po-schema/po-schema-definition/po-schema-definition.service.js +0 -80
  81. package/esm2015/lib/services/po-schema/po-schema.service.js +0 -198
  82. package/esm2015/lib/services/po-sync/po-sync.service.js +0 -336
  83. package/esm2015/po-ui-ng-sync.js +0 -9
  84. package/fesm2015/po-ui-ng-sync.js.map +0 -1
  85. package/po-ui-ng-sync-5.22.0.tgz +0 -0
  86. package/po-ui-ng-sync.metadata.json +0 -1
@@ -1,10 +1,13 @@
1
1
  import { __awaiter } from 'tslib';
2
+ import * as i0 from '@angular/core';
2
3
  import { Injectable, NgModule } from '@angular/core';
3
4
  import * as HttpStatus from 'http-status-codes';
4
5
  import { Subject, Observable, of, merge, fromEvent, forkJoin, timer } from 'rxjs';
5
6
  import { map, expand, reduce, mapTo, mergeMap } from 'rxjs/operators';
6
- import { PoStorageService } from '@po-ui/ng-storage';
7
- import { HttpHeaders, HttpClient, HttpClientModule } from '@angular/common/http';
7
+ import * as i1 from '@po-ui/ng-storage';
8
+ import * as i1$1 from '@angular/common/http';
9
+ import { HttpHeaders, HttpClientModule } from '@angular/common/http';
10
+ import * as i1$2 from '@ionic-native/network/ngx';
8
11
  import { Network } from '@ionic-native/network/ngx';
9
12
 
10
13
  /**
@@ -151,150 +154,6 @@ var PoHttpRequestType;
151
154
  PoHttpRequestType["PUT"] = "PUT";
152
155
  })(PoHttpRequestType || (PoHttpRequestType = {}));
153
156
 
154
- /**
155
- * @docsPrivate
156
- *
157
- * @description
158
- *
159
- * Serviço para execução de requisições HTTP.
160
- */
161
- class PoHttpClientService {
162
- constructor(httpClient) {
163
- this.httpClient = httpClient;
164
- }
165
- /**
166
- * Constrói uma requisição HTTP personalizada.
167
- *
168
- * @param {PoHttpRequestData} poHttpOperationData Parâmetros para a construção
169
- * da requisição.
170
- */
171
- createRequest(poHttpOperationData) {
172
- const httpHeaders = this.createHttpHeaders(poHttpOperationData.headers);
173
- return this.httpClient.request(poHttpOperationData.method, poHttpOperationData.url, {
174
- observe: 'response',
175
- headers: httpHeaders,
176
- body: poHttpOperationData.body
177
- });
178
- }
179
- /**
180
- * Constrói uma requisição com o método `delete`.
181
- *
182
- * @param {string} url URL da requisição.
183
- * @param {Array<PoHeaderOption>} httpHeaders Cabeçalhos da requisição.
184
- */
185
- delete(url, httpHeaders) {
186
- const requestData = {
187
- url: url,
188
- method: PoHttpRequestType.DELETE,
189
- headers: httpHeaders
190
- };
191
- return this.createRequest(requestData);
192
- }
193
- /**
194
- * Constrói uma requisição com o método `get`.
195
- *
196
- * @param {string} url URL da requisição.
197
- * @param {Array<PoHeaderOption>} httpHeaders Cabeçalhos da requisição.
198
- */
199
- get(url, httpHeaders) {
200
- const requestData = {
201
- url: url,
202
- method: PoHttpRequestType.GET,
203
- headers: httpHeaders
204
- };
205
- return this.createRequest(requestData);
206
- }
207
- /**
208
- * Constrói uma requisição com o método `head`.
209
- *
210
- * @param {string} url URL da requisição.
211
- * @param {Array<PoHeaderOption>} httpHeaders Cabeçalhos da requisição.
212
- */
213
- head(url, httpHeaders) {
214
- const requestData = {
215
- url: url,
216
- method: PoHttpRequestType.HEAD,
217
- headers: httpHeaders
218
- };
219
- return this.createRequest(requestData);
220
- }
221
- /**
222
- * Constrói uma requisição com o método `options`.
223
- *
224
- * @param {string} url URL da requisição.
225
- * @param {Array<PoHeaderOption>} httpHeaders Cabeçalhos da requisição.
226
- */
227
- options(url, httpHeaders) {
228
- const requestData = {
229
- url: url,
230
- method: PoHttpRequestType.OPTIONS,
231
- headers: httpHeaders
232
- };
233
- return this.createRequest(requestData);
234
- }
235
- /**
236
- * Constrói uma requisição com o método `patch`.
237
- *
238
- * @param {string} url URL da requisição.
239
- * @param {any} body Corpo da requisição.
240
- * @param {Array<PoHeaderOption>} httpHeaders Cabeçalhos da requisição.
241
- */
242
- patch(url, body, httpHeaders) {
243
- const requestData = {
244
- url: url,
245
- method: PoHttpRequestType.PATCH,
246
- headers: httpHeaders,
247
- body: body
248
- };
249
- return this.createRequest(requestData);
250
- }
251
- /**
252
- * Constrói uma requisição com o método `post`.
253
- *
254
- * @param {string} url URL da requisição.
255
- * @param {any} body Corpo da requisição.
256
- * @param {Array<PoHeaderOption>} httpHeaders Cabeçalhos da requisição.
257
- */
258
- post(url, body, httpHeaders) {
259
- const requestData = {
260
- url: url,
261
- method: PoHttpRequestType.POST,
262
- headers: httpHeaders,
263
- body: body
264
- };
265
- return this.createRequest(requestData);
266
- }
267
- /**
268
- * Constrói uma requisição com o método `put`.
269
- *
270
- * @param {string} url URL da requisição.
271
- * @param {any} body Corpo da requisição.
272
- * @param {Array<PoHeaderOption>} httpHeaders Cabeçalhos da requisição.
273
- */
274
- put(url, body, httpHeaders) {
275
- const requestData = {
276
- url: url,
277
- method: PoHttpRequestType.PUT,
278
- headers: httpHeaders,
279
- body: body
280
- };
281
- return this.createRequest(requestData);
282
- }
283
- createHttpHeaders(poHttpOperationHeaders) {
284
- let httpHeaders = new HttpHeaders();
285
- if (poHttpOperationHeaders && poHttpOperationHeaders.length > 0) {
286
- poHttpOperationHeaders.forEach(poHttpHeader => (httpHeaders = httpHeaders.append(poHttpHeader.name, poHttpHeader.value)));
287
- }
288
- return httpHeaders;
289
- }
290
- }
291
- PoHttpClientService.decorators = [
292
- { type: Injectable }
293
- ];
294
- PoHttpClientService.ctorParameters = () => [
295
- { type: HttpClient }
296
- ];
297
-
298
157
  /**
299
158
  * @docsPrivate
300
159
  *
@@ -504,12 +363,13 @@ class PoSchemaDefinitionService {
504
363
  });
505
364
  }
506
365
  }
507
- PoSchemaDefinitionService.decorators = [
508
- { type: Injectable }
509
- ];
510
- PoSchemaDefinitionService.ctorParameters = () => [
511
- { type: PoStorageService }
512
- ];
366
+ PoSchemaDefinitionService.ɵfac = function PoSchemaDefinitionService_Factory(t) { return new (t || PoSchemaDefinitionService)(i0.ɵɵinject(i1.PoStorageService)); };
367
+ PoSchemaDefinitionService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoSchemaDefinitionService, factory: PoSchemaDefinitionService.ɵfac });
368
+ (function () {
369
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoSchemaDefinitionService, [{
370
+ type: Injectable
371
+ }], function () { return [{ type: i1.PoStorageService }]; }, null);
372
+ })();
513
373
 
514
374
  /**
515
375
  * @docsPrivate
@@ -696,13 +556,158 @@ class PoSchemaService {
696
556
  });
697
557
  }
698
558
  }
699
- PoSchemaService.decorators = [
700
- { type: Injectable }
701
- ];
702
- PoSchemaService.ctorParameters = () => [
703
- { type: PoSchemaDefinitionService },
704
- { type: PoStorageService }
705
- ];
559
+ PoSchemaService.ɵfac = function PoSchemaService_Factory(t) { return new (t || PoSchemaService)(i0.ɵɵinject(PoSchemaDefinitionService), i0.ɵɵinject(i1.PoStorageService)); };
560
+ PoSchemaService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoSchemaService, factory: PoSchemaService.ɵfac });
561
+ (function () {
562
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoSchemaService, [{
563
+ type: Injectable
564
+ }], function () { return [{ type: PoSchemaDefinitionService }, { type: i1.PoStorageService }]; }, null);
565
+ })();
566
+
567
+ /**
568
+ * @docsPrivate
569
+ *
570
+ * @description
571
+ *
572
+ * Serviço para execução de requisições HTTP.
573
+ */
574
+ class PoHttpClientService {
575
+ constructor(httpClient) {
576
+ this.httpClient = httpClient;
577
+ }
578
+ /**
579
+ * Constrói uma requisição HTTP personalizada.
580
+ *
581
+ * @param {PoHttpRequestData} poHttpOperationData Parâmetros para a construção
582
+ * da requisição.
583
+ */
584
+ createRequest(poHttpOperationData) {
585
+ const httpHeaders = this.createHttpHeaders(poHttpOperationData.headers);
586
+ return this.httpClient.request(poHttpOperationData.method, poHttpOperationData.url, {
587
+ observe: 'response',
588
+ headers: httpHeaders,
589
+ body: poHttpOperationData.body
590
+ });
591
+ }
592
+ /**
593
+ * Constrói uma requisição com o método `delete`.
594
+ *
595
+ * @param {string} url URL da requisição.
596
+ * @param {Array<PoHeaderOption>} httpHeaders Cabeçalhos da requisição.
597
+ */
598
+ delete(url, httpHeaders) {
599
+ const requestData = {
600
+ url: url,
601
+ method: PoHttpRequestType.DELETE,
602
+ headers: httpHeaders
603
+ };
604
+ return this.createRequest(requestData);
605
+ }
606
+ /**
607
+ * Constrói uma requisição com o método `get`.
608
+ *
609
+ * @param {string} url URL da requisição.
610
+ * @param {Array<PoHeaderOption>} httpHeaders Cabeçalhos da requisição.
611
+ */
612
+ get(url, httpHeaders) {
613
+ const requestData = {
614
+ url: url,
615
+ method: PoHttpRequestType.GET,
616
+ headers: httpHeaders
617
+ };
618
+ return this.createRequest(requestData);
619
+ }
620
+ /**
621
+ * Constrói uma requisição com o método `head`.
622
+ *
623
+ * @param {string} url URL da requisição.
624
+ * @param {Array<PoHeaderOption>} httpHeaders Cabeçalhos da requisição.
625
+ */
626
+ head(url, httpHeaders) {
627
+ const requestData = {
628
+ url: url,
629
+ method: PoHttpRequestType.HEAD,
630
+ headers: httpHeaders
631
+ };
632
+ return this.createRequest(requestData);
633
+ }
634
+ /**
635
+ * Constrói uma requisição com o método `options`.
636
+ *
637
+ * @param {string} url URL da requisição.
638
+ * @param {Array<PoHeaderOption>} httpHeaders Cabeçalhos da requisição.
639
+ */
640
+ options(url, httpHeaders) {
641
+ const requestData = {
642
+ url: url,
643
+ method: PoHttpRequestType.OPTIONS,
644
+ headers: httpHeaders
645
+ };
646
+ return this.createRequest(requestData);
647
+ }
648
+ /**
649
+ * Constrói uma requisição com o método `patch`.
650
+ *
651
+ * @param {string} url URL da requisição.
652
+ * @param {any} body Corpo da requisição.
653
+ * @param {Array<PoHeaderOption>} httpHeaders Cabeçalhos da requisição.
654
+ */
655
+ patch(url, body, httpHeaders) {
656
+ const requestData = {
657
+ url: url,
658
+ method: PoHttpRequestType.PATCH,
659
+ headers: httpHeaders,
660
+ body: body
661
+ };
662
+ return this.createRequest(requestData);
663
+ }
664
+ /**
665
+ * Constrói uma requisição com o método `post`.
666
+ *
667
+ * @param {string} url URL da requisição.
668
+ * @param {any} body Corpo da requisição.
669
+ * @param {Array<PoHeaderOption>} httpHeaders Cabeçalhos da requisição.
670
+ */
671
+ post(url, body, httpHeaders) {
672
+ const requestData = {
673
+ url: url,
674
+ method: PoHttpRequestType.POST,
675
+ headers: httpHeaders,
676
+ body: body
677
+ };
678
+ return this.createRequest(requestData);
679
+ }
680
+ /**
681
+ * Constrói uma requisição com o método `put`.
682
+ *
683
+ * @param {string} url URL da requisição.
684
+ * @param {any} body Corpo da requisição.
685
+ * @param {Array<PoHeaderOption>} httpHeaders Cabeçalhos da requisição.
686
+ */
687
+ put(url, body, httpHeaders) {
688
+ const requestData = {
689
+ url: url,
690
+ method: PoHttpRequestType.PUT,
691
+ headers: httpHeaders,
692
+ body: body
693
+ };
694
+ return this.createRequest(requestData);
695
+ }
696
+ createHttpHeaders(poHttpOperationHeaders) {
697
+ let httpHeaders = new HttpHeaders();
698
+ if (poHttpOperationHeaders && poHttpOperationHeaders.length > 0) {
699
+ poHttpOperationHeaders.forEach(poHttpHeader => (httpHeaders = httpHeaders.append(poHttpHeader.name, poHttpHeader.value)));
700
+ }
701
+ return httpHeaders;
702
+ }
703
+ }
704
+ PoHttpClientService.ɵfac = function PoHttpClientService_Factory(t) { return new (t || PoHttpClientService)(i0.ɵɵinject(i1$1.HttpClient)); };
705
+ PoHttpClientService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoHttpClientService, factory: PoHttpClientService.ɵfac });
706
+ (function () {
707
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoHttpClientService, [{
708
+ type: Injectable
709
+ }], function () { return [{ type: i1$1.HttpClient }]; }, null);
710
+ })();
706
711
 
707
712
  class PoEventSourcingService {
708
713
  constructor(poSchemaDefinition, poSchemaService, poStorage, poHttpClient) {
@@ -1090,15 +1095,13 @@ PoEventSourcingService.VALID_HTTP_STATUS_CODES = [
1090
1095
  HttpStatus.PARTIAL_CONTENT,
1091
1096
  HttpStatus.MULTI_STATUS // 207
1092
1097
  ];
1093
- PoEventSourcingService.decorators = [
1094
- { type: Injectable }
1095
- ];
1096
- PoEventSourcingService.ctorParameters = () => [
1097
- { type: PoSchemaDefinitionService },
1098
- { type: PoSchemaService },
1099
- { type: PoStorageService },
1100
- { type: PoHttpClientService }
1101
- ];
1098
+ PoEventSourcingService.ɵfac = function PoEventSourcingService_Factory(t) { return new (t || PoEventSourcingService)(i0.ɵɵinject(PoSchemaDefinitionService), i0.ɵɵinject(PoSchemaService), i0.ɵɵinject(i1.PoStorageService), i0.ɵɵinject(PoHttpClientService)); };
1099
+ PoEventSourcingService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoEventSourcingService, factory: PoEventSourcingService.ɵfac });
1100
+ (function () {
1101
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoEventSourcingService, [{
1102
+ type: Injectable
1103
+ }], function () { return [{ type: PoSchemaDefinitionService }, { type: PoSchemaService }, { type: i1.PoStorageService }, { type: PoHttpClientService }]; }, null);
1104
+ })();
1102
1105
 
1103
1106
  /**
1104
1107
  * @description
@@ -1738,12 +1741,13 @@ class PoNetworkService {
1738
1741
  }
1739
1742
  }
1740
1743
  }
1741
- PoNetworkService.decorators = [
1742
- { type: Injectable }
1743
- ];
1744
- PoNetworkService.ctorParameters = () => [
1745
- { type: Network }
1746
- ];
1744
+ PoNetworkService.ɵfac = function PoNetworkService_Factory(t) { return new (t || PoNetworkService)(i0.ɵɵinject(i1$2.Network)); };
1745
+ PoNetworkService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoNetworkService, factory: PoNetworkService.ɵfac });
1746
+ (function () {
1747
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoNetworkService, [{
1748
+ type: Injectable
1749
+ }], function () { return [{ type: i1$2.Network }]; }, null);
1750
+ })();
1747
1751
 
1748
1752
  /**
1749
1753
  * @description
@@ -1986,7 +1990,7 @@ class PoSyncService {
1986
1990
  }
1987
1991
  finishSync() {
1988
1992
  this.syncing = false;
1989
- this.finishSyncSubject.next();
1993
+ this.finishSyncSubject.next(null);
1990
1994
  }
1991
1995
  getOnePage(schema, page = 1) {
1992
1996
  const params = [];
@@ -2057,16 +2061,13 @@ class PoSyncService {
2057
2061
  this.finishSync();
2058
2062
  }
2059
2063
  }
2060
- PoSyncService.decorators = [
2061
- { type: Injectable }
2062
- ];
2063
- PoSyncService.ctorParameters = () => [
2064
- { type: PoEventSourcingService },
2065
- { type: PoHttpClientService },
2066
- { type: PoNetworkService },
2067
- { type: PoSchemaDefinitionService },
2068
- { type: PoSchemaService }
2069
- ];
2064
+ PoSyncService.ɵfac = function PoSyncService_Factory(t) { return new (t || PoSyncService)(i0.ɵɵinject(PoEventSourcingService), i0.ɵɵinject(PoHttpClientService), i0.ɵɵinject(PoNetworkService), i0.ɵɵinject(PoSchemaDefinitionService), i0.ɵɵinject(PoSchemaService)); };
2065
+ PoSyncService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoSyncService, factory: PoSyncService.ɵfac });
2066
+ (function () {
2067
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoSyncService, [{
2068
+ type: Injectable
2069
+ }], function () { return [{ type: PoEventSourcingService }, { type: PoHttpClientService }, { type: PoNetworkService }, { type: PoSchemaDefinitionService }, { type: PoSchemaService }]; }, null);
2070
+ })();
2070
2071
 
2071
2072
  /**
2072
2073
  * @description
@@ -2075,24 +2076,39 @@ PoSyncService.ctorParameters = () => [
2075
2076
  */
2076
2077
  class PoSyncModule {
2077
2078
  }
2078
- PoSyncModule.decorators = [
2079
- { type: NgModule, args: [{
2080
- providers: [
2081
- PoEventSourcingService,
2082
- PoNetworkService,
2083
- PoSchemaDefinitionService,
2084
- PoSchemaService,
2085
- PoSyncService,
2086
- PoHttpClientService,
2087
- Network
2088
- ],
2089
- imports: [HttpClientModule]
2090
- },] }
2091
- ];
2079
+ PoSyncModule.ɵfac = function PoSyncModule_Factory(t) { return new (t || PoSyncModule)(); };
2080
+ PoSyncModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: PoSyncModule });
2081
+ PoSyncModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
2082
+ PoEventSourcingService,
2083
+ PoNetworkService,
2084
+ PoSchemaDefinitionService,
2085
+ PoSchemaService,
2086
+ PoSyncService,
2087
+ PoHttpClientService,
2088
+ Network
2089
+ ], imports: [[HttpClientModule]] });
2090
+ (function () {
2091
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoSyncModule, [{
2092
+ type: NgModule,
2093
+ args: [{
2094
+ providers: [
2095
+ PoEventSourcingService,
2096
+ PoNetworkService,
2097
+ PoSchemaDefinitionService,
2098
+ PoSchemaService,
2099
+ PoSyncService,
2100
+ PoHttpClientService,
2101
+ Network
2102
+ ],
2103
+ imports: [HttpClientModule]
2104
+ }]
2105
+ }], null, null);
2106
+ })();
2107
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoSyncModule, { imports: [HttpClientModule] }); })();
2092
2108
 
2093
2109
  /**
2094
2110
  * Generated bundle index. Do not edit.
2095
2111
  */
2096
2112
 
2097
- export { PoDataTransform, PoEntity, PoEventSourcingErrorResponse, PoEventSourcingService, PoHttpClientService, PoHttpRequestType, PoNetworkService, PoNetworkType, PoSyncModule, PoSyncService, PoEventSourcingService as ɵa, PoSchemaService as ɵb, PoSchemaDefinitionService as ɵc, PoSchemaService as ɵd };
2098
- //# sourceMappingURL=po-ui-ng-sync.js.map
2113
+ export { PoDataTransform, PoEntity, PoEventSourcingErrorResponse, PoEventSourcingService, PoHttpClientService, PoHttpRequestType, PoNetworkService, PoNetworkType, PoSyncModule, PoSyncService };
2114
+ //# sourceMappingURL=po-ui-ng-sync.mjs.map