@creatio/base 0.812.0 → 0.814.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/CHANGELOG.md +4 -0
- package/esm2020/lib/internal/enums/index.mjs +2 -1
- package/esm2020/lib/internal/enums/platform-apis.enum.mjs +11 -0
- package/esm2020/lib/public/enums/data-schema-type.enum.mjs +2 -1
- package/esm2020/lib/public/esq/data-model/columns/base-query-column.mjs +7 -1
- package/esm2020/lib/public/esq/data-model/enums/admin-unit-role-sources.enum.mjs +36 -0
- package/esm2020/lib/public/esq/data-model/enums/index.mjs +2 -2
- package/esm2020/lib/public/esq/data-model/expressions/arithmetic/arithmetic-expression.mjs +7 -1
- package/esm2020/lib/public/esq/data-model/expressions/base-expression.mjs +1 -1
- package/esm2020/lib/public/esq/data-model/expressions/columns/column-expression.mjs +11 -1
- package/esm2020/lib/public/esq/data-model/expressions/functions/argument-function-expression.mjs +7 -1
- package/esm2020/lib/public/esq/data-model/expressions/functions/macros-function-expression.mjs +7 -1
- package/esm2020/lib/public/esq/data-model/expressions/mocks/expression.mock.mjs +7 -1
- package/esm2020/lib/public/esq/data-model/expressions/parameters/parameter-expression.mjs +7 -1
- package/esm2020/lib/public/esq/data-model/expressions/sub-queries/sub-query-expression.mjs +31 -8
- package/esm2020/lib/public/esq/data-model/filters/base-filter.mjs +1 -1
- package/esm2020/lib/public/esq/data-model/filters/between-filter.mjs +11 -1
- package/esm2020/lib/public/esq/data-model/filters/compare-filter.mjs +7 -1
- package/esm2020/lib/public/esq/data-model/filters/exists-filter.mjs +7 -1
- package/esm2020/lib/public/esq/data-model/filters/filter-group.mjs +32 -1
- package/esm2020/lib/public/esq/data-model/filters/in-filter.mjs +10 -1
- package/esm2020/lib/public/esq/data-model/filters/mocks/filter.mock.mjs +7 -1
- package/esm2020/lib/public/esq/data-model/filters/single-filter.mjs +7 -1
- package/esm2020/lib/public/esq/data-model/index.mjs +2 -1
- package/esm2020/lib/public/esq/data-model/queries/base-filterable-query.mjs +19 -1
- package/esm2020/lib/public/esq/data-model/queries/entity-schema-query.mjs +19 -3
- package/esm2020/lib/public/esq/data-model/used-column.mjs +2 -0
- package/esm2020/lib/public/models/index.mjs +3 -1
- package/esm2020/lib/public/models/item-creation-config.mjs +2 -0
- package/esm2020/lib/public/models/request/index.mjs +2 -1
- package/esm2020/lib/public/models/request/request-registration-config.model.mjs +2 -0
- package/esm2020/lib/public/models/view-model-collection.mjs +2 -0
- package/esm2020/lib/public/services/index.mjs +2 -1
- package/esm2020/lib/public/services/mask-service/base-mask.service.mjs +2 -0
- package/esm2020/lib/public/services/mask-service/index.mjs +3 -0
- package/esm2020/lib/public/services/mask-service/schema-view-mask.request.mjs +24 -0
- package/esm2020/lib/public/services/model/data-source-aggregation-config.mjs +1 -1
- package/esm2020/lib/public/services/model/data-source-parameter.mjs +2 -1
- package/fesm2015/creatio-base.mjs +461 -209
- package/fesm2015/creatio-base.mjs.map +1 -1
- package/fesm2020/creatio-base.mjs +462 -216
- package/fesm2020/creatio-base.mjs.map +1 -1
- package/index.d.ts +189 -1
- package/package.json +1 -1
|
@@ -82,6 +82,17 @@ var LookupMode;
|
|
|
82
82
|
LookupMode["SelectionWindow"] = "SelectionWindow";
|
|
83
83
|
})(LookupMode || (LookupMode = {}));
|
|
84
84
|
|
|
85
|
+
/**
|
|
86
|
+
* Available platform APIs
|
|
87
|
+
*/
|
|
88
|
+
var ɵPlatformAPIs;
|
|
89
|
+
(function (ɵPlatformAPIs) {
|
|
90
|
+
/**
|
|
91
|
+
* Selection metadata API.
|
|
92
|
+
*/
|
|
93
|
+
ɵPlatformAPIs["Selection"] = "selection";
|
|
94
|
+
})(ɵPlatformAPIs || (ɵPlatformAPIs = {}));
|
|
95
|
+
|
|
85
96
|
var ɵDataValueType;
|
|
86
97
|
(function (ɵDataValueType) {
|
|
87
98
|
ɵDataValueType[ɵDataValueType["Guid"] = 0] = "Guid";
|
|
@@ -173,6 +184,7 @@ var ɵDataSchemaType;
|
|
|
173
184
|
(function (ɵDataSchemaType) {
|
|
174
185
|
ɵDataSchemaType["Entity"] = "Entity";
|
|
175
186
|
ɵDataSchemaType["ClientUnit"] = "ClientUnit";
|
|
187
|
+
ɵDataSchemaType["Intent"] = "Intent";
|
|
176
188
|
})(ɵDataSchemaType || (ɵDataSchemaType = {}));
|
|
177
189
|
|
|
178
190
|
/**
|
|
@@ -195,11 +207,41 @@ var ɵModelInPageAction;
|
|
|
195
207
|
ɵModelInPageAction["Copy"] = "copy";
|
|
196
208
|
})(ɵModelInPageAction || (ɵModelInPageAction = {}));
|
|
197
209
|
|
|
198
|
-
var
|
|
199
|
-
(function (
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
210
|
+
var eAdminUnitRoleSources;
|
|
211
|
+
(function (eAdminUnitRoleSources) {
|
|
212
|
+
/**
|
|
213
|
+
* Empty value.
|
|
214
|
+
*/
|
|
215
|
+
eAdminUnitRoleSources[eAdminUnitRoleSources["None"] = 0] = "None";
|
|
216
|
+
/**
|
|
217
|
+
* Self.
|
|
218
|
+
*/
|
|
219
|
+
eAdminUnitRoleSources[eAdminUnitRoleSources["Self"] = 1] = "Self";
|
|
220
|
+
/**
|
|
221
|
+
* Explicit entry into role.
|
|
222
|
+
*/
|
|
223
|
+
eAdminUnitRoleSources[eAdminUnitRoleSources["ExplicitEntry"] = 2] = "ExplicitEntry";
|
|
224
|
+
/**
|
|
225
|
+
* Delegated role.
|
|
226
|
+
*/
|
|
227
|
+
eAdminUnitRoleSources[eAdminUnitRoleSources["Delegated"] = 4] = "Delegated";
|
|
228
|
+
/**
|
|
229
|
+
* Gets functional role from organizational role.
|
|
230
|
+
*/
|
|
231
|
+
eAdminUnitRoleSources[eAdminUnitRoleSources["FuncRoleFromOrgRole"] = 8] = "FuncRoleFromOrgRole";
|
|
232
|
+
/**
|
|
233
|
+
* Gets role up hierarchy from role.
|
|
234
|
+
*/
|
|
235
|
+
eAdminUnitRoleSources[eAdminUnitRoleSources["UpHierarchy"] = 16] = "UpHierarchy";
|
|
236
|
+
/**
|
|
237
|
+
* Gets role as a manager.
|
|
238
|
+
*/
|
|
239
|
+
eAdminUnitRoleSources[eAdminUnitRoleSources["AsManager"] = 32] = "AsManager";
|
|
240
|
+
/**
|
|
241
|
+
* Gets all roles.
|
|
242
|
+
*/
|
|
243
|
+
eAdminUnitRoleSources[eAdminUnitRoleSources["All"] = 63] = "All";
|
|
244
|
+
})(eAdminUnitRoleSources || (eAdminUnitRoleSources = {}));
|
|
203
245
|
|
|
204
246
|
var ɵAggregationEvalType;
|
|
205
247
|
(function (ɵAggregationEvalType) {
|
|
@@ -304,6 +346,12 @@ var ɵFunctionType;
|
|
|
304
346
|
ɵFunctionType[ɵFunctionType["DateDiff"] = 7] = "DateDiff";
|
|
305
347
|
})(ɵFunctionType || (ɵFunctionType = {}));
|
|
306
348
|
|
|
349
|
+
var ɵLogicalOperatorType;
|
|
350
|
+
(function (ɵLogicalOperatorType) {
|
|
351
|
+
ɵLogicalOperatorType[ɵLogicalOperatorType["And"] = 0] = "And";
|
|
352
|
+
ɵLogicalOperatorType[ɵLogicalOperatorType["Or"] = 1] = "Or";
|
|
353
|
+
})(ɵLogicalOperatorType || (ɵLogicalOperatorType = {}));
|
|
354
|
+
|
|
307
355
|
var ɵOrderDirection;
|
|
308
356
|
(function (ɵOrderDirection) {
|
|
309
357
|
ɵOrderDirection[ɵOrderDirection["None"] = 0] = "None";
|
|
@@ -469,6 +517,12 @@ class ɵArithmeticExpression extends ɵBaseExpression {
|
|
|
469
517
|
clone() {
|
|
470
518
|
return new ɵArithmeticExpression(this);
|
|
471
519
|
}
|
|
520
|
+
/**
|
|
521
|
+
* @internal
|
|
522
|
+
*/
|
|
523
|
+
_getUsedColumns() {
|
|
524
|
+
return [...this.leftArithmeticOperand._getUsedColumns(), ...this.rightArithmeticOperand._getUsedColumns()];
|
|
525
|
+
}
|
|
472
526
|
}
|
|
473
527
|
/**
|
|
474
528
|
* @internal
|
|
@@ -500,6 +554,16 @@ class ɵColumnExpression extends ɵBaseExpression {
|
|
|
500
554
|
clone() {
|
|
501
555
|
return new ɵColumnExpression(this);
|
|
502
556
|
}
|
|
557
|
+
/**
|
|
558
|
+
* @internal
|
|
559
|
+
*/
|
|
560
|
+
_getUsedColumns() {
|
|
561
|
+
return [
|
|
562
|
+
{
|
|
563
|
+
path: this.columnPath,
|
|
564
|
+
},
|
|
565
|
+
];
|
|
566
|
+
}
|
|
503
567
|
}
|
|
504
568
|
/**
|
|
505
569
|
* @internal
|
|
@@ -555,6 +619,13 @@ class ɵArgumentFunctionExpression extends ɵFunctionExpression {
|
|
|
555
619
|
}
|
|
556
620
|
return result;
|
|
557
621
|
}
|
|
622
|
+
/**
|
|
623
|
+
* @internal
|
|
624
|
+
*/
|
|
625
|
+
_getUsedColumns() {
|
|
626
|
+
var _a, _b;
|
|
627
|
+
return (_b = (_a = this.functionArgument) === null || _a === void 0 ? void 0 : _a._getUsedColumns()) !== null && _b !== void 0 ? _b : [];
|
|
628
|
+
}
|
|
558
629
|
}
|
|
559
630
|
/**
|
|
560
631
|
* @internal
|
|
@@ -690,6 +761,13 @@ class ɵMacrosFunctionExpression extends ɵFunctionExpression {
|
|
|
690
761
|
clone() {
|
|
691
762
|
return new ɵMacrosFunctionExpression(this);
|
|
692
763
|
}
|
|
764
|
+
/**
|
|
765
|
+
* @internal
|
|
766
|
+
*/
|
|
767
|
+
_getUsedColumns() {
|
|
768
|
+
var _a, _b;
|
|
769
|
+
return (_b = (_a = this.functionArgument) === null || _a === void 0 ? void 0 : _a._getUsedColumns()) !== null && _b !== void 0 ? _b : [];
|
|
770
|
+
}
|
|
693
771
|
}
|
|
694
772
|
/**
|
|
695
773
|
* @internal
|
|
@@ -804,6 +882,12 @@ class ɵParameterExpression extends ɵBaseExpression {
|
|
|
804
882
|
clone() {
|
|
805
883
|
return new ɵParameterExpression(this);
|
|
806
884
|
}
|
|
885
|
+
/**
|
|
886
|
+
* @internal
|
|
887
|
+
*/
|
|
888
|
+
_getUsedColumns() {
|
|
889
|
+
return [];
|
|
890
|
+
}
|
|
807
891
|
}
|
|
808
892
|
/**
|
|
809
893
|
* @internal
|
|
@@ -819,161 +903,6 @@ __decorate([
|
|
|
819
903
|
__metadata("design:type", Number)
|
|
820
904
|
], ɵParameterExpression.prototype, "dataValueType", void 0);
|
|
821
905
|
|
|
822
|
-
class ɵSubQueryExpression extends ɵBaseExpression {
|
|
823
|
-
/**
|
|
824
|
-
* @internal
|
|
825
|
-
* @dontChange
|
|
826
|
-
*/
|
|
827
|
-
static get _instanceOfKeys() {
|
|
828
|
-
return [...ɵBaseExpression._instanceOfKeys, this._instanceOfKey];
|
|
829
|
-
}
|
|
830
|
-
constructor(config) {
|
|
831
|
-
super(config);
|
|
832
|
-
this.expressionType = ɵExpressionType.SubQuery;
|
|
833
|
-
this.columnPath = config === null || config === void 0 ? void 0 : config.columnPath;
|
|
834
|
-
const subFilter = config === null || config === void 0 ? void 0 : config.subFilters;
|
|
835
|
-
this.subFilters = typeof (subFilter === null || subFilter === void 0 ? void 0 : subFilter.clone) === 'function' ? subFilter.clone() : subFilter;
|
|
836
|
-
this.subOrderDirection = config.subOrderDirection;
|
|
837
|
-
this.subOrderColumn = config.subOrderColumn;
|
|
838
|
-
}
|
|
839
|
-
/**
|
|
840
|
-
* Parses expression from json.
|
|
841
|
-
* @public
|
|
842
|
-
*/
|
|
843
|
-
static fromJson(dto, filterParser) {
|
|
844
|
-
const expression = new ɵSubQueryExpression({
|
|
845
|
-
columnPath: dto['columnPath'],
|
|
846
|
-
subFilters: filterParser.fromJson(dto['subFilters']),
|
|
847
|
-
subOrderDirection: dto['subOrderDirection'],
|
|
848
|
-
subOrderColumn: dto['subOrderColumn'],
|
|
849
|
-
});
|
|
850
|
-
return expression;
|
|
851
|
-
}
|
|
852
|
-
clone() {
|
|
853
|
-
return new ɵSubQueryExpression(this);
|
|
854
|
-
}
|
|
855
|
-
toJson() {
|
|
856
|
-
const result = super.toJson();
|
|
857
|
-
if (this.subFilters) {
|
|
858
|
-
result['subFilters'] = this.serializeItem(this.subFilters);
|
|
859
|
-
}
|
|
860
|
-
return result;
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
/**
|
|
864
|
-
* @internal
|
|
865
|
-
* @dontChange
|
|
866
|
-
*/
|
|
867
|
-
ɵSubQueryExpression._instanceOfKey = 'devkit_SubQueryExpression';
|
|
868
|
-
|
|
869
|
-
class ɵAggregationSubQueryExpression extends ɵSubQueryExpression {
|
|
870
|
-
/**
|
|
871
|
-
* @internal
|
|
872
|
-
* @dontChange
|
|
873
|
-
*/
|
|
874
|
-
static get _instanceOfKeys() {
|
|
875
|
-
return [...ɵSubQueryExpression._instanceOfKeys, this._instanceOfKey];
|
|
876
|
-
}
|
|
877
|
-
constructor(config) {
|
|
878
|
-
super(config);
|
|
879
|
-
this.aggregationType = config === null || config === void 0 ? void 0 : config.aggregationType;
|
|
880
|
-
this.functionType = config === null || config === void 0 ? void 0 : config.functionType;
|
|
881
|
-
}
|
|
882
|
-
/**
|
|
883
|
-
* Parses expression from json.
|
|
884
|
-
* @public
|
|
885
|
-
*/
|
|
886
|
-
static fromJson(dto, filterParser) {
|
|
887
|
-
const subQueryExpression = super.fromJson(dto, filterParser);
|
|
888
|
-
const expression = new ɵAggregationSubQueryExpression(Object.assign({ aggregationType: dto['aggregationType'], functionType: dto['functionType'] }, subQueryExpression));
|
|
889
|
-
return expression;
|
|
890
|
-
}
|
|
891
|
-
clone() {
|
|
892
|
-
return new ɵAggregationSubQueryExpression(this);
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
/**
|
|
896
|
-
* @internal
|
|
897
|
-
* @dontChange
|
|
898
|
-
*/
|
|
899
|
-
ɵAggregationSubQueryExpression._instanceOfKey = 'devkit_AggregationSubQueryExpression';
|
|
900
|
-
|
|
901
|
-
/**
|
|
902
|
-
* Function expression resolver.
|
|
903
|
-
* @public
|
|
904
|
-
*/
|
|
905
|
-
class FunctionExpressionResolver {
|
|
906
|
-
static resolve(dto) {
|
|
907
|
-
const expressionClass = {
|
|
908
|
-
[ɵFunctionType.Macros]: ɵMacrosFunctionExpression,
|
|
909
|
-
[ɵFunctionType.Length]: ɵLengthFunctionExpression,
|
|
910
|
-
[ɵFunctionType.Window]: ɵWindowFunctionExpression,
|
|
911
|
-
[ɵFunctionType.DatePart]: ɵDatePartFunctionExpression,
|
|
912
|
-
[ɵFunctionType.DateAdd]: ɵDatePartFunctionExpression,
|
|
913
|
-
[ɵFunctionType.DateDiff]: ɵDatePartFunctionExpression,
|
|
914
|
-
};
|
|
915
|
-
return expressionClass[dto['functionType']];
|
|
916
|
-
}
|
|
917
|
-
}
|
|
918
|
-
/**
|
|
919
|
-
* Expression resolver.
|
|
920
|
-
* @public
|
|
921
|
-
*/
|
|
922
|
-
class ɵExpressionResolver {
|
|
923
|
-
static resolve(expressionType, dto) {
|
|
924
|
-
const expressionClass = {
|
|
925
|
-
[ɵExpressionType.SchemaColumn]: ɵColumnExpression,
|
|
926
|
-
[ɵExpressionType.Parameter]: ɵParameterExpression,
|
|
927
|
-
[ɵExpressionType.SubQuery]: ɵAggregationSubQueryExpression,
|
|
928
|
-
[ɵExpressionType.ArithmeticOperation]: ɵArithmeticExpression,
|
|
929
|
-
[ɵExpressionType.Function]: FunctionExpressionResolver.resolve(dto),
|
|
930
|
-
};
|
|
931
|
-
return expressionClass[expressionType];
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
/**
|
|
936
|
-
* Expression parser.
|
|
937
|
-
* @public
|
|
938
|
-
*/
|
|
939
|
-
class ɵExpressionParser extends ɵBaseExpressionParser {
|
|
940
|
-
/**
|
|
941
|
-
* Parses expression from json.
|
|
942
|
-
* @public
|
|
943
|
-
*/
|
|
944
|
-
static fromJson(dto, filterParser) {
|
|
945
|
-
const expressionType = dto['expressionType'];
|
|
946
|
-
return ɵExpressionResolver.resolve(expressionType, dto).fromJson(dto, filterParser, ɵExpressionParser);
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
const ɵEXPRESSION_TYPE_MOCK = -1;
|
|
951
|
-
class ɵExpressionMock extends ɵBaseExpression {
|
|
952
|
-
/**
|
|
953
|
-
* @internal
|
|
954
|
-
* @dontChange
|
|
955
|
-
*/
|
|
956
|
-
static get _instanceOfKeys() {
|
|
957
|
-
return [...ɵBaseExpression._instanceOfKeys, this._instanceOfKey];
|
|
958
|
-
}
|
|
959
|
-
constructor(config) {
|
|
960
|
-
super(config || {});
|
|
961
|
-
this.expressionType = ɵEXPRESSION_TYPE_MOCK;
|
|
962
|
-
}
|
|
963
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
964
|
-
get plainObject() {
|
|
965
|
-
return classToPlain(this, { exposeUnsetFields: false, excludePrefixes: ['_'] });
|
|
966
|
-
}
|
|
967
|
-
clone() {
|
|
968
|
-
return new ɵExpressionMock(this);
|
|
969
|
-
}
|
|
970
|
-
}
|
|
971
|
-
/**
|
|
972
|
-
* @internal
|
|
973
|
-
* @dontChange
|
|
974
|
-
*/
|
|
975
|
-
ɵExpressionMock._instanceOfKey = 'devkit_ExpressionMock';
|
|
976
|
-
|
|
977
906
|
class ɵBaseFilter {
|
|
978
907
|
/**
|
|
979
908
|
* @internal
|
|
@@ -1024,36 +953,6 @@ class ɵBaseFilter {
|
|
|
1024
953
|
*/
|
|
1025
954
|
ɵBaseFilter._instanceOfKey = 'devkit_BaseFilter';
|
|
1026
955
|
|
|
1027
|
-
class ɵFilterMock extends ɵBaseFilter {
|
|
1028
|
-
/**
|
|
1029
|
-
* @internal
|
|
1030
|
-
* @dontChange
|
|
1031
|
-
*/
|
|
1032
|
-
static get _instanceOfKeys() {
|
|
1033
|
-
return [...ɵBaseFilter._instanceOfKeys, this._instanceOfKey];
|
|
1034
|
-
}
|
|
1035
|
-
constructor(filterType = ɵFilterType.None) {
|
|
1036
|
-
super(filterType);
|
|
1037
|
-
}
|
|
1038
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
1039
|
-
get plainObject() {
|
|
1040
|
-
return classToPlain(this, { exposeUnsetFields: false, excludePrefixes: ['_'] });
|
|
1041
|
-
}
|
|
1042
|
-
clone() {
|
|
1043
|
-
return new ɵFilterMock(this.filterType);
|
|
1044
|
-
}
|
|
1045
|
-
}
|
|
1046
|
-
/**
|
|
1047
|
-
* @internal
|
|
1048
|
-
* @dontChange
|
|
1049
|
-
*/
|
|
1050
|
-
ɵFilterMock._instanceOfKey = 'devkit_FilterMock';
|
|
1051
|
-
|
|
1052
|
-
const ɵparserMock = {
|
|
1053
|
-
fromJson: (data) => (Object.assign(Object.assign({}, data), { clone: () => data })),
|
|
1054
|
-
clone: () => this,
|
|
1055
|
-
};
|
|
1056
|
-
|
|
1057
956
|
class ɵSingleFilter extends ɵBaseFilter {
|
|
1058
957
|
/**
|
|
1059
958
|
* @internal
|
|
@@ -1070,6 +969,12 @@ class ɵSingleFilter extends ɵBaseFilter {
|
|
|
1070
969
|
toJson() {
|
|
1071
970
|
return Object.assign(Object.assign({}, super.toJson()), { leftExpression: this.serializeItem(this.leftExpression) });
|
|
1072
971
|
}
|
|
972
|
+
/**
|
|
973
|
+
* @internal
|
|
974
|
+
*/
|
|
975
|
+
_getUsedColumns() {
|
|
976
|
+
return this.leftExpression._getUsedColumns();
|
|
977
|
+
}
|
|
1073
978
|
}
|
|
1074
979
|
/**
|
|
1075
980
|
* @internal
|
|
@@ -1077,7 +982,7 @@ class ɵSingleFilter extends ɵBaseFilter {
|
|
|
1077
982
|
*/
|
|
1078
983
|
ɵSingleFilter._instanceOfKey = 'devkit_SingleFilter';
|
|
1079
984
|
|
|
1080
|
-
class
|
|
985
|
+
class ɵBetweenFilter extends ɵSingleFilter {
|
|
1081
986
|
/**
|
|
1082
987
|
* @internal
|
|
1083
988
|
* @dontChange
|
|
@@ -1085,35 +990,46 @@ class ɵCompareFilter extends ɵSingleFilter {
|
|
|
1085
990
|
static get _instanceOfKeys() {
|
|
1086
991
|
return [...ɵSingleFilter._instanceOfKeys, this._instanceOfKey];
|
|
1087
992
|
}
|
|
1088
|
-
constructor(
|
|
1089
|
-
super(ɵFilterType.
|
|
1090
|
-
this.
|
|
993
|
+
constructor(leftExpression, rightLessExpression, rightGreaterExpression) {
|
|
994
|
+
super(ɵFilterType.Between, ɵComparisonType.Between, leftExpression);
|
|
995
|
+
this.rightLessExpression = rightLessExpression.clone();
|
|
996
|
+
this.rightGreaterExpression = rightGreaterExpression.clone();
|
|
1091
997
|
}
|
|
1092
998
|
/**
|
|
1093
999
|
* Parses filter from json.
|
|
1094
1000
|
* @public
|
|
1095
1001
|
*/
|
|
1096
1002
|
static fromJson(dto, filterParser, expressionParser) {
|
|
1097
|
-
const filter = new
|
|
1003
|
+
const filter = new ɵBetweenFilter(expressionParser.fromJson(dto['leftExpression'], filterParser), expressionParser.fromJson(dto['rightLessExpression'], filterParser), expressionParser.fromJson(dto['rightGreaterExpression'], filterParser));
|
|
1098
1004
|
return filter;
|
|
1099
1005
|
}
|
|
1100
1006
|
clone() {
|
|
1101
|
-
const filter = new
|
|
1007
|
+
const filter = new ɵBetweenFilter(this.leftExpression, this.rightLessExpression, this.rightGreaterExpression);
|
|
1102
1008
|
filter.isEnabled = this.isEnabled;
|
|
1103
1009
|
filter.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1104
1010
|
return filter;
|
|
1105
1011
|
}
|
|
1106
1012
|
toJson() {
|
|
1107
|
-
return Object.assign(Object.assign({}, super.toJson()), {
|
|
1013
|
+
return Object.assign(Object.assign({}, super.toJson()), { rightLessExpression: this.serializeItem(this.rightLessExpression), rightGreaterExpression: this.serializeItem(this.rightGreaterExpression) });
|
|
1014
|
+
}
|
|
1015
|
+
/**
|
|
1016
|
+
* @internal
|
|
1017
|
+
*/
|
|
1018
|
+
_getUsedColumns() {
|
|
1019
|
+
return [
|
|
1020
|
+
...super._getUsedColumns(),
|
|
1021
|
+
...this.rightLessExpression._getUsedColumns(),
|
|
1022
|
+
...this.rightGreaterExpression._getUsedColumns(),
|
|
1023
|
+
];
|
|
1108
1024
|
}
|
|
1109
1025
|
}
|
|
1110
1026
|
/**
|
|
1111
1027
|
* @internal
|
|
1112
1028
|
* @dontChange
|
|
1113
1029
|
*/
|
|
1114
|
-
|
|
1030
|
+
ɵBetweenFilter._instanceOfKey = 'devkit_BetweenFilter';
|
|
1115
1031
|
|
|
1116
|
-
class
|
|
1032
|
+
class ɵCompareFilter extends ɵSingleFilter {
|
|
1117
1033
|
/**
|
|
1118
1034
|
* @internal
|
|
1119
1035
|
* @dontChange
|
|
@@ -1121,34 +1037,39 @@ class ɵBetweenFilter extends ɵSingleFilter {
|
|
|
1121
1037
|
static get _instanceOfKeys() {
|
|
1122
1038
|
return [...ɵSingleFilter._instanceOfKeys, this._instanceOfKey];
|
|
1123
1039
|
}
|
|
1124
|
-
constructor(
|
|
1125
|
-
super(ɵFilterType.
|
|
1126
|
-
this.
|
|
1127
|
-
this.rightGreaterExpression = rightGreaterExpression.clone();
|
|
1040
|
+
constructor(comparisonType, leftExpression, rightExpression) {
|
|
1041
|
+
super(ɵFilterType.Compare, comparisonType, leftExpression);
|
|
1042
|
+
this.rightExpression = rightExpression.clone();
|
|
1128
1043
|
}
|
|
1129
1044
|
/**
|
|
1130
1045
|
* Parses filter from json.
|
|
1131
1046
|
* @public
|
|
1132
1047
|
*/
|
|
1133
1048
|
static fromJson(dto, filterParser, expressionParser) {
|
|
1134
|
-
const filter = new
|
|
1049
|
+
const filter = new ɵCompareFilter(dto['comparisonType'], expressionParser.fromJson(dto['leftExpression'], filterParser), expressionParser.fromJson(dto['rightExpression'], filterParser));
|
|
1135
1050
|
return filter;
|
|
1136
1051
|
}
|
|
1137
1052
|
clone() {
|
|
1138
|
-
const filter = new
|
|
1053
|
+
const filter = new ɵCompareFilter(this.comparisonType, this.leftExpression, this.rightExpression);
|
|
1139
1054
|
filter.isEnabled = this.isEnabled;
|
|
1140
1055
|
filter.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1141
1056
|
return filter;
|
|
1142
1057
|
}
|
|
1143
1058
|
toJson() {
|
|
1144
|
-
return Object.assign(Object.assign({}, super.toJson()), {
|
|
1059
|
+
return Object.assign(Object.assign({}, super.toJson()), { rightExpression: this.serializeItem(this.rightExpression) });
|
|
1060
|
+
}
|
|
1061
|
+
/**
|
|
1062
|
+
* @internal
|
|
1063
|
+
*/
|
|
1064
|
+
_getUsedColumns() {
|
|
1065
|
+
return [...super._getUsedColumns(), ...this.rightExpression._getUsedColumns()];
|
|
1145
1066
|
}
|
|
1146
1067
|
}
|
|
1147
1068
|
/**
|
|
1148
1069
|
* @internal
|
|
1149
1070
|
* @dontChange
|
|
1150
1071
|
*/
|
|
1151
|
-
|
|
1072
|
+
ɵCompareFilter._instanceOfKey = 'devkit_CompareFilter';
|
|
1152
1073
|
|
|
1153
1074
|
class ɵExistsFilter extends ɵSingleFilter {
|
|
1154
1075
|
/**
|
|
@@ -1185,6 +1106,13 @@ class ɵExistsFilter extends ɵSingleFilter {
|
|
|
1185
1106
|
}
|
|
1186
1107
|
return result;
|
|
1187
1108
|
}
|
|
1109
|
+
/**
|
|
1110
|
+
* @internal
|
|
1111
|
+
*/
|
|
1112
|
+
_getUsedColumns() {
|
|
1113
|
+
var _a, _b;
|
|
1114
|
+
return [...super._getUsedColumns(), ...((_b = (_a = this.subFilters) === null || _a === void 0 ? void 0 : _a._getUsedColumns()) !== null && _b !== void 0 ? _b : [])];
|
|
1115
|
+
}
|
|
1188
1116
|
}
|
|
1189
1117
|
/**
|
|
1190
1118
|
* @internal
|
|
@@ -1222,6 +1150,15 @@ class ɵInFilter extends ɵSingleFilter {
|
|
|
1222
1150
|
toJson() {
|
|
1223
1151
|
return Object.assign(Object.assign({}, super.toJson()), { rightExpressions: this.rightExpressions.map((expression) => this.serializeItem(expression)) });
|
|
1224
1152
|
}
|
|
1153
|
+
/**
|
|
1154
|
+
* @internal
|
|
1155
|
+
*/
|
|
1156
|
+
_getUsedColumns() {
|
|
1157
|
+
const rightExpressionsUsedColumns = this.rightExpressions
|
|
1158
|
+
.map((expression) => expression._getUsedColumns())
|
|
1159
|
+
.flat();
|
|
1160
|
+
return [...super._getUsedColumns(), ...rightExpressionsUsedColumns];
|
|
1161
|
+
}
|
|
1225
1162
|
}
|
|
1226
1163
|
/**
|
|
1227
1164
|
* @internal
|
|
@@ -1414,6 +1351,22 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1414
1351
|
});
|
|
1415
1352
|
return group;
|
|
1416
1353
|
}
|
|
1354
|
+
/**
|
|
1355
|
+
* Converts instance to json object.
|
|
1356
|
+
* @public
|
|
1357
|
+
*/
|
|
1358
|
+
toJson() {
|
|
1359
|
+
const result = {};
|
|
1360
|
+
result['filterType'] = this.filterType;
|
|
1361
|
+
result['isEnabled'] = this.isEnabled;
|
|
1362
|
+
result['logicalOperation'] = this.logicalOperation;
|
|
1363
|
+
result['trimDateTimeParameterToDate'] = this.trimDateTimeParameterToDate;
|
|
1364
|
+
result['items'] = this.items;
|
|
1365
|
+
if (this.rootSchemaName) {
|
|
1366
|
+
result['rootSchemaName'] = this.rootSchemaName;
|
|
1367
|
+
}
|
|
1368
|
+
return result;
|
|
1369
|
+
}
|
|
1417
1370
|
_createParameterValueExpressions(values) {
|
|
1418
1371
|
return values.map((value) => new ɵParameterExpression({
|
|
1419
1372
|
value: value,
|
|
@@ -1517,6 +1470,24 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1517
1470
|
filterGroup.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1518
1471
|
return filterGroup;
|
|
1519
1472
|
}
|
|
1473
|
+
/**
|
|
1474
|
+
* @internal
|
|
1475
|
+
*/
|
|
1476
|
+
_getUsedColumns() {
|
|
1477
|
+
const result = [];
|
|
1478
|
+
this.filters.forEach((filter) => {
|
|
1479
|
+
let filterUsedColumns = filter._getUsedColumns ? filter._getUsedColumns() : [];
|
|
1480
|
+
filterUsedColumns = filterUsedColumns.map((usedColumn) => {
|
|
1481
|
+
var _a;
|
|
1482
|
+
return ({
|
|
1483
|
+
path: usedColumn.path,
|
|
1484
|
+
schemaName: (_a = usedColumn.schemaName) !== null && _a !== void 0 ? _a : this.rootSchemaName,
|
|
1485
|
+
});
|
|
1486
|
+
});
|
|
1487
|
+
result.push(...filterUsedColumns);
|
|
1488
|
+
});
|
|
1489
|
+
return result;
|
|
1490
|
+
}
|
|
1520
1491
|
}
|
|
1521
1492
|
/**
|
|
1522
1493
|
* @internal
|
|
@@ -1533,6 +1504,226 @@ __decorate([
|
|
|
1533
1504
|
__metadata("design:paramtypes", [])
|
|
1534
1505
|
], ɵFilterGroup.prototype, "items", null);
|
|
1535
1506
|
|
|
1507
|
+
class ɵSubQueryExpression extends ɵBaseExpression {
|
|
1508
|
+
/**
|
|
1509
|
+
* @internal
|
|
1510
|
+
* @dontChange
|
|
1511
|
+
*/
|
|
1512
|
+
static get _instanceOfKeys() {
|
|
1513
|
+
return [...ɵBaseExpression._instanceOfKeys, this._instanceOfKey];
|
|
1514
|
+
}
|
|
1515
|
+
constructor(config) {
|
|
1516
|
+
super(config);
|
|
1517
|
+
this.expressionType = ɵExpressionType.SubQuery;
|
|
1518
|
+
this.columnPath = config === null || config === void 0 ? void 0 : config.columnPath;
|
|
1519
|
+
const subFilters = config === null || config === void 0 ? void 0 : config.subFilters;
|
|
1520
|
+
if (typeof (subFilters === null || subFilters === void 0 ? void 0 : subFilters.clone) === 'function') {
|
|
1521
|
+
this.subFilters = subFilters.clone();
|
|
1522
|
+
}
|
|
1523
|
+
else if (subFilters) {
|
|
1524
|
+
this.subFilters = new ɵFilterGroup(subFilters.logicalOperation, subFilters.rootSchemaName);
|
|
1525
|
+
Object.entries(subFilters.items).forEach(([key, filter]) => {
|
|
1526
|
+
this.subFilters.add(filter, key);
|
|
1527
|
+
});
|
|
1528
|
+
}
|
|
1529
|
+
else {
|
|
1530
|
+
this.subFilters = subFilters;
|
|
1531
|
+
}
|
|
1532
|
+
this.subOrderDirection = config.subOrderDirection;
|
|
1533
|
+
this.subOrderColumn = config.subOrderColumn;
|
|
1534
|
+
}
|
|
1535
|
+
/**
|
|
1536
|
+
* Parses expression from json.
|
|
1537
|
+
* @public
|
|
1538
|
+
*/
|
|
1539
|
+
static fromJson(dto, filterParser) {
|
|
1540
|
+
const expression = new ɵSubQueryExpression({
|
|
1541
|
+
columnPath: dto['columnPath'],
|
|
1542
|
+
subFilters: filterParser.fromJson(dto['subFilters']),
|
|
1543
|
+
subOrderDirection: dto['subOrderDirection'],
|
|
1544
|
+
subOrderColumn: dto['subOrderColumn'],
|
|
1545
|
+
});
|
|
1546
|
+
return expression;
|
|
1547
|
+
}
|
|
1548
|
+
clone() {
|
|
1549
|
+
return new ɵSubQueryExpression(this);
|
|
1550
|
+
}
|
|
1551
|
+
toJson() {
|
|
1552
|
+
const result = super.toJson();
|
|
1553
|
+
if (this.subFilters) {
|
|
1554
|
+
result['subFilters'] = this.serializeItem(this.subFilters);
|
|
1555
|
+
}
|
|
1556
|
+
return result;
|
|
1557
|
+
}
|
|
1558
|
+
/**
|
|
1559
|
+
* @internal
|
|
1560
|
+
*/
|
|
1561
|
+
_getUsedColumns() {
|
|
1562
|
+
var _a, _b;
|
|
1563
|
+
return [
|
|
1564
|
+
{
|
|
1565
|
+
path: this.columnPath,
|
|
1566
|
+
},
|
|
1567
|
+
...((_b = (_a = this.subFilters) === null || _a === void 0 ? void 0 : _a._getUsedColumns()) !== null && _b !== void 0 ? _b : []),
|
|
1568
|
+
];
|
|
1569
|
+
}
|
|
1570
|
+
}
|
|
1571
|
+
/**
|
|
1572
|
+
* @internal
|
|
1573
|
+
* @dontChange
|
|
1574
|
+
*/
|
|
1575
|
+
ɵSubQueryExpression._instanceOfKey = 'devkit_SubQueryExpression';
|
|
1576
|
+
|
|
1577
|
+
class ɵAggregationSubQueryExpression extends ɵSubQueryExpression {
|
|
1578
|
+
/**
|
|
1579
|
+
* @internal
|
|
1580
|
+
* @dontChange
|
|
1581
|
+
*/
|
|
1582
|
+
static get _instanceOfKeys() {
|
|
1583
|
+
return [...ɵSubQueryExpression._instanceOfKeys, this._instanceOfKey];
|
|
1584
|
+
}
|
|
1585
|
+
constructor(config) {
|
|
1586
|
+
super(config);
|
|
1587
|
+
this.aggregationType = config === null || config === void 0 ? void 0 : config.aggregationType;
|
|
1588
|
+
this.functionType = config === null || config === void 0 ? void 0 : config.functionType;
|
|
1589
|
+
}
|
|
1590
|
+
/**
|
|
1591
|
+
* Parses expression from json.
|
|
1592
|
+
* @public
|
|
1593
|
+
*/
|
|
1594
|
+
static fromJson(dto, filterParser) {
|
|
1595
|
+
const subQueryExpression = super.fromJson(dto, filterParser);
|
|
1596
|
+
const expression = new ɵAggregationSubQueryExpression(Object.assign({ aggregationType: dto['aggregationType'], functionType: dto['functionType'] }, subQueryExpression));
|
|
1597
|
+
return expression;
|
|
1598
|
+
}
|
|
1599
|
+
clone() {
|
|
1600
|
+
return new ɵAggregationSubQueryExpression(this);
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
/**
|
|
1604
|
+
* @internal
|
|
1605
|
+
* @dontChange
|
|
1606
|
+
*/
|
|
1607
|
+
ɵAggregationSubQueryExpression._instanceOfKey = 'devkit_AggregationSubQueryExpression';
|
|
1608
|
+
|
|
1609
|
+
/**
|
|
1610
|
+
* Function expression resolver.
|
|
1611
|
+
* @public
|
|
1612
|
+
*/
|
|
1613
|
+
class FunctionExpressionResolver {
|
|
1614
|
+
static resolve(dto) {
|
|
1615
|
+
const expressionClass = {
|
|
1616
|
+
[ɵFunctionType.Macros]: ɵMacrosFunctionExpression,
|
|
1617
|
+
[ɵFunctionType.Length]: ɵLengthFunctionExpression,
|
|
1618
|
+
[ɵFunctionType.Window]: ɵWindowFunctionExpression,
|
|
1619
|
+
[ɵFunctionType.DatePart]: ɵDatePartFunctionExpression,
|
|
1620
|
+
[ɵFunctionType.DateAdd]: ɵDatePartFunctionExpression,
|
|
1621
|
+
[ɵFunctionType.DateDiff]: ɵDatePartFunctionExpression,
|
|
1622
|
+
};
|
|
1623
|
+
return expressionClass[dto['functionType']];
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
/**
|
|
1627
|
+
* Expression resolver.
|
|
1628
|
+
* @public
|
|
1629
|
+
*/
|
|
1630
|
+
class ɵExpressionResolver {
|
|
1631
|
+
static resolve(expressionType, dto) {
|
|
1632
|
+
const expressionClass = {
|
|
1633
|
+
[ɵExpressionType.SchemaColumn]: ɵColumnExpression,
|
|
1634
|
+
[ɵExpressionType.Parameter]: ɵParameterExpression,
|
|
1635
|
+
[ɵExpressionType.SubQuery]: ɵAggregationSubQueryExpression,
|
|
1636
|
+
[ɵExpressionType.ArithmeticOperation]: ɵArithmeticExpression,
|
|
1637
|
+
[ɵExpressionType.Function]: FunctionExpressionResolver.resolve(dto),
|
|
1638
|
+
};
|
|
1639
|
+
return expressionClass[expressionType];
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1643
|
+
/**
|
|
1644
|
+
* Expression parser.
|
|
1645
|
+
* @public
|
|
1646
|
+
*/
|
|
1647
|
+
class ɵExpressionParser extends ɵBaseExpressionParser {
|
|
1648
|
+
/**
|
|
1649
|
+
* Parses expression from json.
|
|
1650
|
+
* @public
|
|
1651
|
+
*/
|
|
1652
|
+
static fromJson(dto, filterParser) {
|
|
1653
|
+
const expressionType = dto['expressionType'];
|
|
1654
|
+
return ɵExpressionResolver.resolve(expressionType, dto).fromJson(dto, filterParser, ɵExpressionParser);
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
const ɵEXPRESSION_TYPE_MOCK = -1;
|
|
1659
|
+
class ɵExpressionMock extends ɵBaseExpression {
|
|
1660
|
+
/**
|
|
1661
|
+
* @internal
|
|
1662
|
+
* @dontChange
|
|
1663
|
+
*/
|
|
1664
|
+
static get _instanceOfKeys() {
|
|
1665
|
+
return [...ɵBaseExpression._instanceOfKeys, this._instanceOfKey];
|
|
1666
|
+
}
|
|
1667
|
+
constructor(config) {
|
|
1668
|
+
super(config || {});
|
|
1669
|
+
this.expressionType = ɵEXPRESSION_TYPE_MOCK;
|
|
1670
|
+
}
|
|
1671
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
1672
|
+
get plainObject() {
|
|
1673
|
+
return classToPlain(this, { exposeUnsetFields: false, excludePrefixes: ['_'] });
|
|
1674
|
+
}
|
|
1675
|
+
clone() {
|
|
1676
|
+
return new ɵExpressionMock(this);
|
|
1677
|
+
}
|
|
1678
|
+
/**
|
|
1679
|
+
* @internal
|
|
1680
|
+
*/
|
|
1681
|
+
_getUsedColumns() {
|
|
1682
|
+
return [];
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
/**
|
|
1686
|
+
* @internal
|
|
1687
|
+
* @dontChange
|
|
1688
|
+
*/
|
|
1689
|
+
ɵExpressionMock._instanceOfKey = 'devkit_ExpressionMock';
|
|
1690
|
+
|
|
1691
|
+
class ɵFilterMock extends ɵBaseFilter {
|
|
1692
|
+
/**
|
|
1693
|
+
* @internal
|
|
1694
|
+
* @dontChange
|
|
1695
|
+
*/
|
|
1696
|
+
static get _instanceOfKeys() {
|
|
1697
|
+
return [...ɵBaseFilter._instanceOfKeys, this._instanceOfKey];
|
|
1698
|
+
}
|
|
1699
|
+
constructor(filterType = ɵFilterType.None) {
|
|
1700
|
+
super(filterType);
|
|
1701
|
+
}
|
|
1702
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
1703
|
+
get plainObject() {
|
|
1704
|
+
return classToPlain(this, { exposeUnsetFields: false, excludePrefixes: ['_'] });
|
|
1705
|
+
}
|
|
1706
|
+
clone() {
|
|
1707
|
+
return new ɵFilterMock(this.filterType);
|
|
1708
|
+
}
|
|
1709
|
+
/**
|
|
1710
|
+
* @internal
|
|
1711
|
+
*/
|
|
1712
|
+
_getUsedColumns() {
|
|
1713
|
+
return [];
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
/**
|
|
1717
|
+
* @internal
|
|
1718
|
+
* @dontChange
|
|
1719
|
+
*/
|
|
1720
|
+
ɵFilterMock._instanceOfKey = 'devkit_FilterMock';
|
|
1721
|
+
|
|
1722
|
+
const ɵparserMock = {
|
|
1723
|
+
fromJson: (data) => (Object.assign(Object.assign({}, data), { clone: () => data })),
|
|
1724
|
+
clone: () => this,
|
|
1725
|
+
};
|
|
1726
|
+
|
|
1536
1727
|
/**
|
|
1537
1728
|
* Filter parser interface
|
|
1538
1729
|
* @public
|
|
@@ -1627,6 +1818,12 @@ class ɵBaseQueryColumn {
|
|
|
1627
1818
|
this.caption = caption;
|
|
1628
1819
|
return this;
|
|
1629
1820
|
}
|
|
1821
|
+
/**
|
|
1822
|
+
* @internal
|
|
1823
|
+
*/
|
|
1824
|
+
_getUsedColumns() {
|
|
1825
|
+
return this.expression._getUsedColumns();
|
|
1826
|
+
}
|
|
1630
1827
|
}
|
|
1631
1828
|
|
|
1632
1829
|
class ɵArithmeticQueryColumn extends ɵBaseQueryColumn {
|
|
@@ -1759,7 +1956,23 @@ class ɵBaseFilterableQuery extends ɵBaseQuery {
|
|
|
1759
1956
|
getMetadata() {
|
|
1760
1957
|
return Object.assign(Object.assign({}, super.getMetadata()), { filters: this.filters.toJson() });
|
|
1761
1958
|
}
|
|
1959
|
+
/**
|
|
1960
|
+
* @internal
|
|
1961
|
+
*/
|
|
1962
|
+
_getUsedColumns() {
|
|
1963
|
+
const usedColumns = this.filters._getUsedColumns();
|
|
1964
|
+
usedColumns.forEach((usedColumn) => {
|
|
1965
|
+
if (!usedColumn.schemaName) {
|
|
1966
|
+
usedColumn.schemaName = this.rootSchemaName;
|
|
1967
|
+
}
|
|
1968
|
+
});
|
|
1969
|
+
return usedColumns;
|
|
1970
|
+
}
|
|
1762
1971
|
}
|
|
1972
|
+
__decorate([
|
|
1973
|
+
Exclude(),
|
|
1974
|
+
__metadata("design:type", Object)
|
|
1975
|
+
], ɵBaseFilterableQuery.prototype, "filters", void 0);
|
|
1763
1976
|
|
|
1764
1977
|
/**
|
|
1765
1978
|
* @public
|
|
@@ -1836,7 +2049,7 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
1836
2049
|
getMetadata() {
|
|
1837
2050
|
return Object.assign(Object.assign({}, super.getMetadata()), { columns: {
|
|
1838
2051
|
items: classToPlain(this._columns, { exposeUnsetFields: false, excludePrefixes: ['_'] }),
|
|
1839
|
-
}, allColumns: false, isDistinct: this.isDistinct, ignoreDisplayValues: false, rowCount: this.rowCount, rowsOffset: this.rowsOffset, isPageable: this._getIsPageable(), conditionalValues: this.conditionalValues ? this.conditionalValues : null, isHierarchical: false, hierarchicalMaxDepth: 0, hierarchicalColumnName: null, hierarchicalColumnValue: null, useLocalization: this.useLocalization, useRecordDeactivation: this.useRecordDeactivation });
|
|
2052
|
+
}, allColumns: false, isDistinct: this.isDistinct, ignoreDisplayValues: false, rowCount: this.rowCount, rowsOffset: this.rowsOffset, adminUnitRoleSources: this.adminUnitRoleSources, isPageable: this._getIsPageable(), conditionalValues: this.conditionalValues ? this.conditionalValues : null, isHierarchical: false, hierarchicalMaxDepth: 0, hierarchicalColumnName: null, hierarchicalColumnValue: null, useLocalization: this.useLocalization, useRecordDeactivation: this.useRecordDeactivation });
|
|
1840
2053
|
}
|
|
1841
2054
|
/**
|
|
1842
2055
|
* Add column.
|
|
@@ -1966,6 +2179,21 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
1966
2179
|
this._internalAddColumn(columnAlias, column);
|
|
1967
2180
|
return column;
|
|
1968
2181
|
}
|
|
2182
|
+
/**
|
|
2183
|
+
* @internal
|
|
2184
|
+
*/
|
|
2185
|
+
_getUsedColumns() {
|
|
2186
|
+
const usedColumns = [];
|
|
2187
|
+
this._columns.forEach((column) => {
|
|
2188
|
+
usedColumns.push(...column._getUsedColumns());
|
|
2189
|
+
});
|
|
2190
|
+
usedColumns.forEach((usedColumn) => {
|
|
2191
|
+
if (!usedColumn.schemaName) {
|
|
2192
|
+
usedColumn.schemaName = this.rootSchemaName;
|
|
2193
|
+
}
|
|
2194
|
+
});
|
|
2195
|
+
return [...usedColumns, ...super._getUsedColumns()];
|
|
2196
|
+
}
|
|
1969
2197
|
}
|
|
1970
2198
|
|
|
1971
2199
|
/**
|
|
@@ -2057,15 +2285,39 @@ class ɵBaseRequest {
|
|
|
2057
2285
|
var ɵModelParameterType;
|
|
2058
2286
|
(function (ɵModelParameterType) {
|
|
2059
2287
|
ɵModelParameterType["PrimaryColumnValue"] = "primaryColumnValue";
|
|
2288
|
+
ɵModelParameterType["ColumnValue"] = "columnValue";
|
|
2060
2289
|
ɵModelParameterType["Filter"] = "filter";
|
|
2061
2290
|
ɵModelParameterType["PrimaryDisplayValueFilter"] = "primaryDisplayValueFilter";
|
|
2062
2291
|
ɵModelParameterType["Empty"] = "empty";
|
|
2063
2292
|
ɵModelParameterType["Never"] = "never";
|
|
2064
2293
|
})(ɵModelParameterType || (ɵModelParameterType = {}));
|
|
2065
2294
|
|
|
2295
|
+
/**
|
|
2296
|
+
* @public
|
|
2297
|
+
* @description Actions of mask request.
|
|
2298
|
+
*/
|
|
2299
|
+
var ɵSchemaViewMaskRequestAction;
|
|
2300
|
+
(function (ɵSchemaViewMaskRequestAction) {
|
|
2301
|
+
ɵSchemaViewMaskRequestAction["AddTask"] = "addTask";
|
|
2302
|
+
ɵSchemaViewMaskRequestAction["RemoveTask"] = "removeTask";
|
|
2303
|
+
})(ɵSchemaViewMaskRequestAction || (ɵSchemaViewMaskRequestAction = {}));
|
|
2304
|
+
/**
|
|
2305
|
+
* @public
|
|
2306
|
+
* @description Request to show mask.
|
|
2307
|
+
*/
|
|
2308
|
+
class ɵSchemaViewMaskRequest extends ɵBaseRequest {
|
|
2309
|
+
constructor(action, taskName, $context) {
|
|
2310
|
+
super();
|
|
2311
|
+
this.action = action;
|
|
2312
|
+
this.taskName = taskName;
|
|
2313
|
+
this.$context = $context;
|
|
2314
|
+
this.type = 'crt.SchemaViewMaskRequest';
|
|
2315
|
+
}
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2066
2318
|
/**
|
|
2067
2319
|
* Generated bundle index. Do not edit.
|
|
2068
2320
|
*/
|
|
2069
2321
|
|
|
2070
|
-
export { LookupMode, ɵAggregationEvalType, ɵAggregationFunction, ɵAggregationFunctionColumn, ɵAggregationFunctionExpression, ɵAggregationSubQueryColumn, ɵAggregationSubQueryExpression, ɵAggregationType, ɵArgumentEmptyException, ɵArgumentFunctionExpression, ɵArgumentOutOfRangeException, ɵArithmeticExpression, ɵArithmeticOperation, ɵArithmeticQueryColumn, ɵBaseExpression, ɵBaseExpressionParser, ɵBaseFilter, ɵBaseFilterParser, ɵBaseFilterableQuery, ɵBaseQuery, ɵBaseQueryColumn, ɵBaseRequest, ɵBetweenFilter, ɵColumnExpression, ɵCompareFilter, ɵComparisonType, ɵDEFAULT_COLUMN_PLAIN_OBJ, ɵDEFAULT_FILTER_PLAIN_OBJ, ɵDataSchemaAttributeType, ɵDataSchemaAttributeUsageType, ɵDataSchemaType, ɵDataSourceScope, ɵDataValueType, ɵDatePartFunctionColumn, ɵDatePartFunctionExpression, ɵDatePartType, ɵDefaultValueSource, ɵDeleteQuery, ɵEMPTY_GUID, ɵEXPRESSION_TYPE_MOCK, ɵEntityQueryColumn, ɵEntitySchemaQuery, ɵExistsFilter, ɵExpressionMock, ɵExpressionParser, ɵExpressionResolver, ɵExpressionType, ɵFilterGroup, ɵFilterMock, ɵFilterParser, ɵFilterResolver, ɵFilterType, ɵFunctionExpression, ɵFunctionType, ɵInFilter, ɵInsertQuery, ɵIsNullFilter, ɵItemNotFoundException, ɵLengthFunctionColumn, ɵLengthFunctionExpression, ɵLogicalOperatorType, ɵMacrosFunctionColumn, ɵMacrosFunctionExpression, ɵModelInPageAction, ɵModelParameterType, ɵNextHandlerAlreadySpecifiedException, ɵOrderDirection, ɵParameterExpression, ɵParameterQueryColumn, ɵQueryMacrosType, ɵQueryOperationType, ɵSelectLocalizationQuery, ɵSingleFilter, ɵSubQueryColumn, ɵSubQueryExpression, ɵUpdateQuery, ɵValidationUtilities, ɵWindowFunctionColumn, ɵWindowFunctionExpression, ɵencodeDate, ɵgenerateGuid, ɵgetColumnPlainObj, ɵgetFilterPlainObj, ɵisEmptyGuid, ɵisGuid, ɵparserMock, ɵtoLocalISOString };
|
|
2322
|
+
export { LookupMode, eAdminUnitRoleSources, ɵAggregationEvalType, ɵAggregationFunction, ɵAggregationFunctionColumn, ɵAggregationFunctionExpression, ɵAggregationSubQueryColumn, ɵAggregationSubQueryExpression, ɵAggregationType, ɵArgumentEmptyException, ɵArgumentFunctionExpression, ɵArgumentOutOfRangeException, ɵArithmeticExpression, ɵArithmeticOperation, ɵArithmeticQueryColumn, ɵBaseExpression, ɵBaseExpressionParser, ɵBaseFilter, ɵBaseFilterParser, ɵBaseFilterableQuery, ɵBaseQuery, ɵBaseQueryColumn, ɵBaseRequest, ɵBetweenFilter, ɵColumnExpression, ɵCompareFilter, ɵComparisonType, ɵDEFAULT_COLUMN_PLAIN_OBJ, ɵDEFAULT_FILTER_PLAIN_OBJ, ɵDataSchemaAttributeType, ɵDataSchemaAttributeUsageType, ɵDataSchemaType, ɵDataSourceScope, ɵDataValueType, ɵDatePartFunctionColumn, ɵDatePartFunctionExpression, ɵDatePartType, ɵDefaultValueSource, ɵDeleteQuery, ɵEMPTY_GUID, ɵEXPRESSION_TYPE_MOCK, ɵEntityQueryColumn, ɵEntitySchemaQuery, ɵExistsFilter, ɵExpressionMock, ɵExpressionParser, ɵExpressionResolver, ɵExpressionType, ɵFilterGroup, ɵFilterMock, ɵFilterParser, ɵFilterResolver, ɵFilterType, ɵFunctionExpression, ɵFunctionType, ɵInFilter, ɵInsertQuery, ɵIsNullFilter, ɵItemNotFoundException, ɵLengthFunctionColumn, ɵLengthFunctionExpression, ɵLogicalOperatorType, ɵMacrosFunctionColumn, ɵMacrosFunctionExpression, ɵModelInPageAction, ɵModelParameterType, ɵNextHandlerAlreadySpecifiedException, ɵOrderDirection, ɵParameterExpression, ɵParameterQueryColumn, ɵPlatformAPIs, ɵQueryMacrosType, ɵQueryOperationType, ɵSchemaViewMaskRequest, ɵSchemaViewMaskRequestAction, ɵSelectLocalizationQuery, ɵSingleFilter, ɵSubQueryColumn, ɵSubQueryExpression, ɵUpdateQuery, ɵValidationUtilities, ɵWindowFunctionColumn, ɵWindowFunctionExpression, ɵencodeDate, ɵgenerateGuid, ɵgetColumnPlainObj, ɵgetFilterPlainObj, ɵisEmptyGuid, ɵisGuid, ɵparserMock, ɵtoLocalISOString };
|
|
2071
2323
|
//# sourceMappingURL=creatio-base.mjs.map
|