@trudb/tru-common-lib 0.0.181 → 0.0.183
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/esm2020/lib/services/tru-breeze-context-factory.mjs +7 -5
- package/esm2020/lib/services/tru-breeze-metadata-provider.mjs +22 -0
- package/esm2020/lib/services/tru-entity-accessor.mjs +8 -5
- package/esm2020/lib/services/tru-predicate-map.mjs +5 -5
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/trudb-tru-common-lib.mjs +34 -11
- package/fesm2015/trudb-tru-common-lib.mjs.map +1 -1
- package/fesm2020/trudb-tru-common-lib.mjs +34 -11
- package/fesm2020/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/services/tru-breeze-context-factory.d.ts +4 -2
- package/lib/services/tru-breeze-metadata-provider.d.ts +9 -0
- package/lib/services/tru-entity-accessor.d.ts +3 -1
- package/lib/services/tru-predicate-map.d.ts +3 -3
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -628,8 +628,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImpor
|
|
|
628
628
|
type: Input
|
|
629
629
|
}] } });
|
|
630
630
|
|
|
631
|
-
class
|
|
631
|
+
class TruBreezeMetadataProvider {
|
|
632
632
|
constructor() {
|
|
633
|
+
this._metadata = {};
|
|
634
|
+
}
|
|
635
|
+
get metadata() {
|
|
636
|
+
return this._metadata;
|
|
637
|
+
}
|
|
638
|
+
set metadata(json) {
|
|
639
|
+
this._metadata = json;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
TruBreezeMetadataProvider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TruBreezeMetadataProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
643
|
+
TruBreezeMetadataProvider.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TruBreezeMetadataProvider, providedIn: 'root' });
|
|
644
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TruBreezeMetadataProvider, decorators: [{
|
|
645
|
+
type: Injectable,
|
|
646
|
+
args: [{
|
|
647
|
+
providedIn: 'root',
|
|
648
|
+
}]
|
|
649
|
+
}], ctorParameters: function () { return []; } });
|
|
650
|
+
|
|
651
|
+
class TruBreezeContextFactory {
|
|
652
|
+
constructor(breezeMetadataProvider) {
|
|
653
|
+
this.breezeMetadataProvider = breezeMetadataProvider;
|
|
633
654
|
/**
|
|
634
655
|
* Maximum number of records to return from a query.
|
|
635
656
|
* @return {number}
|
|
@@ -673,14 +694,14 @@ class TruBreezeContextFactory {
|
|
|
673
694
|
};
|
|
674
695
|
}
|
|
675
696
|
}
|
|
676
|
-
TruBreezeContextFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TruBreezeContextFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
697
|
+
TruBreezeContextFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TruBreezeContextFactory, deps: [{ token: TruBreezeMetadataProvider }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
677
698
|
TruBreezeContextFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TruBreezeContextFactory, providedIn: 'root' });
|
|
678
699
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TruBreezeContextFactory, decorators: [{
|
|
679
700
|
type: Injectable,
|
|
680
701
|
args: [{
|
|
681
702
|
providedIn: 'root',
|
|
682
703
|
}]
|
|
683
|
-
}], ctorParameters: function () { return []; } });
|
|
704
|
+
}], ctorParameters: function () { return [{ type: TruBreezeMetadataProvider }]; } });
|
|
684
705
|
class TruBreezeContext {
|
|
685
706
|
constructor(manager) {
|
|
686
707
|
this.manager = manager;
|
|
@@ -904,8 +925,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImpor
|
|
|
904
925
|
}], ctorParameters: function () { return [{ type: i1$2.ToastrService }, { type: i1.MatDialog }]; } });
|
|
905
926
|
|
|
906
927
|
class TruEntityAccessor {
|
|
907
|
-
constructor(http, uiNotification) {
|
|
928
|
+
constructor(http, appEnvironment, uiNotification) {
|
|
908
929
|
this.http = http;
|
|
930
|
+
this.appEnvironment = appEnvironment;
|
|
909
931
|
this.uiNotification = uiNotification;
|
|
910
932
|
this._maxRecordCount = 0;
|
|
911
933
|
this.getQueryServiceName = (entity) => {
|
|
@@ -1069,6 +1091,7 @@ class TruEntityAccessor {
|
|
|
1069
1091
|
filename = filename.replace(/"/g, '');
|
|
1070
1092
|
return filename;
|
|
1071
1093
|
};
|
|
1094
|
+
this._maxRecordCount = this.appEnvironment.maxRecordCount;
|
|
1072
1095
|
}
|
|
1073
1096
|
set context(dataContext) {
|
|
1074
1097
|
this._breezeContext = dataContext.breezeContext;
|
|
@@ -1078,11 +1101,11 @@ class TruEntityAccessor {
|
|
|
1078
1101
|
this.maxRecordCount = maxRecordCount;
|
|
1079
1102
|
}
|
|
1080
1103
|
}
|
|
1081
|
-
TruEntityAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TruEntityAccessor, deps: [{ token: i1$3.HttpClient }, { token: TruUiNotification }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1104
|
+
TruEntityAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TruEntityAccessor, deps: [{ token: i1$3.HttpClient }, { token: TruAppEnvironment }, { token: TruUiNotification }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1082
1105
|
TruEntityAccessor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TruEntityAccessor });
|
|
1083
1106
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TruEntityAccessor, decorators: [{
|
|
1084
1107
|
type: Injectable
|
|
1085
|
-
}], ctorParameters: function () { return [{ type: i1$3.HttpClient }, { type: TruUiNotification }]; } });
|
|
1108
|
+
}], ctorParameters: function () { return [{ type: i1$3.HttpClient }, { type: TruAppEnvironment }, { type: TruUiNotification }]; } });
|
|
1086
1109
|
|
|
1087
1110
|
class TruDataContext {
|
|
1088
1111
|
constructor(breezeContextFactory, appEnvironment, entityAccessor, uiNotification) {
|
|
@@ -3223,12 +3246,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImpor
|
|
|
3223
3246
|
}]
|
|
3224
3247
|
}] });
|
|
3225
3248
|
|
|
3226
|
-
class
|
|
3249
|
+
class TruPredicateMap {
|
|
3227
3250
|
constructor() { }
|
|
3228
3251
|
}
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type:
|
|
3252
|
+
TruPredicateMap.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TruPredicateMap, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3253
|
+
TruPredicateMap.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TruPredicateMap });
|
|
3254
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TruPredicateMap, decorators: [{
|
|
3232
3255
|
type: Injectable
|
|
3233
3256
|
}], ctorParameters: function () { return []; } });
|
|
3234
3257
|
|
|
@@ -3543,5 +3566,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImpor
|
|
|
3543
3566
|
* Generated bundle index. Do not edit.
|
|
3544
3567
|
*/
|
|
3545
3568
|
|
|
3546
|
-
export {
|
|
3569
|
+
export { TruAppEnvironment, TruBreezeContext, TruBreezeContextFactory, TruBreezeMetadataProvider, TruCommonModule, TruComponentLookup, TruConfirmDialog, TruConfirmDialogConfig, TruConfirmDialogModule, TruDataContext, TruDesktop, TruDesktopModule, TruEntityAccessor, TruEntityBase, TruExportDialog, TruExportDialogConfig, TruExportDialogModule, TruPredicate, TruPredicateMap, TruPropertyConfigBase, TruQueryPredicateManager, TruSearchComponentBase, TruSearchComponentConfigBase, TruSearchGroupEventHandler, TruSearchIconModule, TruTextManager, TruToolbar, TruToolbarButton, TruToolbarButtonModule, TruToolbarContextFilter, TruToolbarContextFilterModule, TruToolbarDropdown, TruToolbarDropdownModule, TruToolbarMenu, TruToolbarMenuModule, TruToolbarModule, TruToolbarSeparator, TruToolbarSeparatorModule, TruToolbarText, TruToolbarTextModule, TruUiNotification, TruUser, TruWindowActionEventHandler, TruWindowAddViewEvent, TruWindowEvent, TruWindowEventHandler };
|
|
3547
3570
|
//# sourceMappingURL=trudb-tru-common-lib.mjs.map
|