@po-ui/ng-sync 18.23.0 → 19.0.0-next.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.
- package/fesm2022/po-ui-ng-sync.mjs +37 -19
- package/fesm2022/po-ui-ng-sync.mjs.map +1 -1
- package/lib/services/po-http-client/po-http-client.service.d.ts +8 -8
- package/lib/services/po-sync/interfaces/po-sync-response.interface.d.ts +1 -1
- package/package.json +13 -15
- package/po-ui-ng-sync-19.0.0-next.0.tgz +0 -0
- package/schematics/collection.json +5 -0
- package/schematics/migrations.json +6 -1
- package/schematics/ng-add/index.d.ts +1 -5
- package/schematics/ng-add/index.js +3 -37
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/setup-project.d.ts +2 -0
- package/schematics/ng-add/setup-project.js +179 -0
- package/schematics/ng-add/setup-project.js.map +1 -0
- package/schematics/ng-generate/schema/index.js +1 -1
- package/schematics/ng-generate/schema/index.js.map +1 -1
- package/schematics/ng-update/v14/index.js +2 -2
- package/schematics/ng-update/v14/index.js.map +1 -1
- package/schematics/ng-update/v15/index.js +2 -2
- package/schematics/ng-update/v15/index.js.map +1 -1
- package/schematics/ng-update/v16/index.js +2 -2
- package/schematics/ng-update/v16/index.js.map +1 -1
- package/schematics/ng-update/v17/index.js +2 -2
- package/schematics/ng-update/v17/index.js.map +1 -1
- package/schematics/ng-update/v18/index.js +2 -2
- package/schematics/ng-update/v18/index.js.map +1 -1
- package/schematics/ng-update/v19/changes.d.ts +2 -0
- package/schematics/ng-update/v19/changes.js +14 -0
- package/schematics/ng-update/v19/changes.js.map +1 -0
- package/schematics/ng-update/v19/index.d.ts +1 -0
- package/schematics/ng-update/v19/index.js +16 -0
- package/schematics/ng-update/v19/index.js.map +1 -0
- package/schematics/ng-update/v2/index.js +3 -4
- package/schematics/ng-update/v2/index.js.map +1 -1
- package/schematics/ng-update/v3/index.js +2 -3
- package/schematics/ng-update/v3/index.js.map +1 -1
- package/schematics/ng-update/v4/index.js +2 -2
- package/schematics/ng-update/v4/index.js.map +1 -1
- package/schematics/ng-update/v5/index.js +2 -2
- package/schematics/ng-update/v5/index.js.map +1 -1
- package/schematics/ng-update/v6/index.js +2 -2
- package/schematics/ng-update/v6/index.js.map +1 -1
- package/esm2022/lib/index.mjs +0 -15
- package/esm2022/lib/models/index.mjs +0 -6
- package/esm2022/lib/models/po-data-message.model.mjs +0 -57
- package/esm2022/lib/models/po-data-transform.model.mjs +0 -23
- package/esm2022/lib/models/po-entity/po-entity.model.mjs +0 -217
- package/esm2022/lib/models/po-event-sourcing-error-response.model.mjs +0 -21
- package/esm2022/lib/models/po-network-status.model.mjs +0 -45
- package/esm2022/lib/models/po-network-type.enum.mjs +0 -30
- package/esm2022/lib/models/po-query-builder/po-query-builder.model.mjs +0 -246
- package/esm2022/lib/models/po-request-type.enum.mjs +0 -16
- package/esm2022/lib/po-sync.module.mjs +0 -40
- package/esm2022/lib/services/po-event-sourcing/enums/po-event-sourcing-operation.enum.mjs +0 -17
- package/esm2022/lib/services/po-event-sourcing/index.mjs +0 -4
- package/esm2022/lib/services/po-event-sourcing/interfaces/po-event-sourcing-item.interface.mjs +0 -2
- package/esm2022/lib/services/po-event-sourcing/interfaces/po-event-sourcing-summary-item.interface.mjs +0 -2
- package/esm2022/lib/services/po-event-sourcing/po-event-sourcing.service.mjs +0 -379
- package/esm2022/lib/services/po-http-client/interfaces/po-http-header-option.interface.mjs +0 -11
- package/esm2022/lib/services/po-http-client/interfaces/po-http-request-data.interface.mjs +0 -2
- package/esm2022/lib/services/po-http-client/interfaces/po-response-api.interface.mjs +0 -2
- package/esm2022/lib/services/po-http-client/po-http-client.service.mjs +0 -149
- package/esm2022/lib/services/po-http-client/po-http-request-type.enum.mjs +0 -25
- package/esm2022/lib/services/po-network/po-network.service.mjs +0 -59
- package/esm2022/lib/services/po-schema/index.mjs +0 -4
- package/esm2022/lib/services/po-schema/po-schema-definition/po-schema-definition.service.mjs +0 -78
- package/esm2022/lib/services/po-schema/po-schema-util/po-schema-util.model.mjs +0 -124
- package/esm2022/lib/services/po-schema/po-schema.service.mjs +0 -176
- package/esm2022/lib/services/po-sync/interfaces/po-sync-config.interface.mjs +0 -2
- package/esm2022/lib/services/po-sync/interfaces/po-sync-field-options.interface.mjs +0 -2
- package/esm2022/lib/services/po-sync/interfaces/po-sync-response.interface.mjs +0 -2
- package/esm2022/lib/services/po-sync/interfaces/po-sync-schema.interface.mjs +0 -2
- package/esm2022/lib/services/po-sync/po-sync.service.mjs +0 -336
- package/esm2022/lib/utils/utils.mjs +0 -63
- package/esm2022/po-ui-ng-sync.mjs +0 -5
- package/esm2022/public-api.mjs +0 -2
- package/po-ui-ng-sync-18.23.0.tgz +0 -0
|
@@ -364,11 +364,14 @@ class PoSchemaDefinitionService {
|
|
|
364
364
|
schemas = schemas.map(replaceUpdatedSchema);
|
|
365
365
|
return this.saveAll(schemas);
|
|
366
366
|
}
|
|
367
|
-
static ɵfac = function PoSchemaDefinitionService_Factory(
|
|
368
|
-
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoSchemaDefinitionService, factory: PoSchemaDefinitionService.ɵfac });
|
|
367
|
+
static ɵfac = function PoSchemaDefinitionService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoSchemaDefinitionService)(i0.ɵɵinject(i1.PoStorageService)); };
|
|
368
|
+
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoSchemaDefinitionService, factory: PoSchemaDefinitionService.ɵfac, providedIn: 'root' });
|
|
369
369
|
}
|
|
370
370
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoSchemaDefinitionService, [{
|
|
371
|
-
type: Injectable
|
|
371
|
+
type: Injectable,
|
|
372
|
+
args: [{
|
|
373
|
+
providedIn: 'root'
|
|
374
|
+
}]
|
|
372
375
|
}], () => [{ type: i1.PoStorageService }], null); })();
|
|
373
376
|
|
|
374
377
|
/**
|
|
@@ -535,11 +538,14 @@ class PoSchemaService {
|
|
|
535
538
|
await this.remove(schemaName, recordId);
|
|
536
539
|
return Object.assign(record, localRecord);
|
|
537
540
|
}
|
|
538
|
-
static ɵfac = function PoSchemaService_Factory(
|
|
539
|
-
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoSchemaService, factory: PoSchemaService.ɵfac });
|
|
541
|
+
static ɵfac = function PoSchemaService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoSchemaService)(i0.ɵɵinject(PoSchemaDefinitionService), i0.ɵɵinject(i1.PoStorageService)); };
|
|
542
|
+
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoSchemaService, factory: PoSchemaService.ɵfac, providedIn: 'root' });
|
|
540
543
|
}
|
|
541
544
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoSchemaService, [{
|
|
542
|
-
type: Injectable
|
|
545
|
+
type: Injectable,
|
|
546
|
+
args: [{
|
|
547
|
+
providedIn: 'root'
|
|
548
|
+
}]
|
|
543
549
|
}], () => [{ type: PoSchemaDefinitionService }, { type: i1.PoStorageService }], null); })();
|
|
544
550
|
|
|
545
551
|
/**
|
|
@@ -679,11 +685,14 @@ class PoHttpClientService {
|
|
|
679
685
|
}
|
|
680
686
|
return httpHeaders;
|
|
681
687
|
}
|
|
682
|
-
static ɵfac = function PoHttpClientService_Factory(
|
|
683
|
-
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoHttpClientService, factory: PoHttpClientService.ɵfac });
|
|
688
|
+
static ɵfac = function PoHttpClientService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoHttpClientService)(i0.ɵɵinject(i1$1.HttpClient)); };
|
|
689
|
+
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoHttpClientService, factory: PoHttpClientService.ɵfac, providedIn: 'root' });
|
|
684
690
|
}
|
|
685
691
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoHttpClientService, [{
|
|
686
|
-
type: Injectable
|
|
692
|
+
type: Injectable,
|
|
693
|
+
args: [{
|
|
694
|
+
providedIn: 'root'
|
|
695
|
+
}]
|
|
687
696
|
}], () => [{ type: i1$1.HttpClient }], null); })();
|
|
688
697
|
|
|
689
698
|
class PoEventSourcingService {
|
|
@@ -1043,11 +1052,14 @@ class PoEventSourcingService {
|
|
|
1043
1052
|
updateStorageSchemas(schemas) {
|
|
1044
1053
|
return schemas.map((schema) => this.updateStorageBySchema(schema));
|
|
1045
1054
|
}
|
|
1046
|
-
static ɵfac = function PoEventSourcingService_Factory(
|
|
1047
|
-
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoEventSourcingService, factory: PoEventSourcingService.ɵfac });
|
|
1055
|
+
static ɵfac = function PoEventSourcingService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoEventSourcingService)(i0.ɵɵinject(PoSchemaDefinitionService), i0.ɵɵinject(PoSchemaService), i0.ɵɵinject(i1.PoStorageService), i0.ɵɵinject(PoHttpClientService)); };
|
|
1056
|
+
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoEventSourcingService, factory: PoEventSourcingService.ɵfac, providedIn: 'root' });
|
|
1048
1057
|
}
|
|
1049
1058
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoEventSourcingService, [{
|
|
1050
|
-
type: Injectable
|
|
1059
|
+
type: Injectable,
|
|
1060
|
+
args: [{
|
|
1061
|
+
providedIn: 'root'
|
|
1062
|
+
}]
|
|
1051
1063
|
}], () => [{ type: PoSchemaDefinitionService }, { type: PoSchemaService }, { type: i1.PoStorageService }, { type: PoHttpClientService }], null); })();
|
|
1052
1064
|
|
|
1053
1065
|
/**
|
|
@@ -1685,11 +1697,14 @@ class PoNetworkService {
|
|
|
1685
1697
|
this.networkTypeNow.next({ status: status.connected, type: this.networkType });
|
|
1686
1698
|
});
|
|
1687
1699
|
}
|
|
1688
|
-
static ɵfac = function PoNetworkService_Factory(
|
|
1689
|
-
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoNetworkService, factory: PoNetworkService.ɵfac });
|
|
1700
|
+
static ɵfac = function PoNetworkService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoNetworkService)(); };
|
|
1701
|
+
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoNetworkService, factory: PoNetworkService.ɵfac, providedIn: 'root' });
|
|
1690
1702
|
}
|
|
1691
1703
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoNetworkService, [{
|
|
1692
|
-
type: Injectable
|
|
1704
|
+
type: Injectable,
|
|
1705
|
+
args: [{
|
|
1706
|
+
providedIn: 'root'
|
|
1707
|
+
}]
|
|
1693
1708
|
}], () => [], null); })();
|
|
1694
1709
|
|
|
1695
1710
|
/**
|
|
@@ -2008,11 +2023,14 @@ class PoSyncService {
|
|
|
2008
2023
|
syncError() {
|
|
2009
2024
|
this.finishSync();
|
|
2010
2025
|
}
|
|
2011
|
-
static ɵfac = function PoSyncService_Factory(
|
|
2012
|
-
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoSyncService, factory: PoSyncService.ɵfac });
|
|
2026
|
+
static ɵfac = function PoSyncService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoSyncService)(i0.ɵɵinject(PoEventSourcingService), i0.ɵɵinject(PoHttpClientService), i0.ɵɵinject(PoNetworkService), i0.ɵɵinject(PoSchemaDefinitionService), i0.ɵɵinject(PoSchemaService)); };
|
|
2027
|
+
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoSyncService, factory: PoSyncService.ɵfac, providedIn: 'root' });
|
|
2013
2028
|
}
|
|
2014
2029
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoSyncService, [{
|
|
2015
|
-
type: Injectable
|
|
2030
|
+
type: Injectable,
|
|
2031
|
+
args: [{
|
|
2032
|
+
providedIn: 'root'
|
|
2033
|
+
}]
|
|
2016
2034
|
}], () => [{ type: PoEventSourcingService }, { type: PoHttpClientService }, { type: PoNetworkService }, { type: PoSchemaDefinitionService }, { type: PoSchemaService }], null); })();
|
|
2017
2035
|
|
|
2018
2036
|
/**
|
|
@@ -2021,7 +2039,7 @@ class PoSyncService {
|
|
|
2021
2039
|
* Módulo do componente PoSync responsável pela sincronia de dados com backends
|
|
2022
2040
|
*/
|
|
2023
2041
|
class PoSyncModule {
|
|
2024
|
-
static ɵfac = function PoSyncModule_Factory(
|
|
2042
|
+
static ɵfac = function PoSyncModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PoSyncModule)(); };
|
|
2025
2043
|
static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: PoSyncModule });
|
|
2026
2044
|
static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
2027
2045
|
PoEventSourcingService,
|