@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";
|
|
@@ -468,6 +516,12 @@ class ɵArithmeticExpression extends ɵBaseExpression {
|
|
|
468
516
|
clone() {
|
|
469
517
|
return new ɵArithmeticExpression(this);
|
|
470
518
|
}
|
|
519
|
+
/**
|
|
520
|
+
* @internal
|
|
521
|
+
*/
|
|
522
|
+
_getUsedColumns() {
|
|
523
|
+
return [...this.leftArithmeticOperand._getUsedColumns(), ...this.rightArithmeticOperand._getUsedColumns()];
|
|
524
|
+
}
|
|
471
525
|
}
|
|
472
526
|
/**
|
|
473
527
|
* @internal
|
|
@@ -499,6 +553,16 @@ class ɵColumnExpression extends ɵBaseExpression {
|
|
|
499
553
|
clone() {
|
|
500
554
|
return new ɵColumnExpression(this);
|
|
501
555
|
}
|
|
556
|
+
/**
|
|
557
|
+
* @internal
|
|
558
|
+
*/
|
|
559
|
+
_getUsedColumns() {
|
|
560
|
+
return [
|
|
561
|
+
{
|
|
562
|
+
path: this.columnPath,
|
|
563
|
+
},
|
|
564
|
+
];
|
|
565
|
+
}
|
|
502
566
|
}
|
|
503
567
|
/**
|
|
504
568
|
* @internal
|
|
@@ -554,6 +618,12 @@ class ɵArgumentFunctionExpression extends ɵFunctionExpression {
|
|
|
554
618
|
}
|
|
555
619
|
return result;
|
|
556
620
|
}
|
|
621
|
+
/**
|
|
622
|
+
* @internal
|
|
623
|
+
*/
|
|
624
|
+
_getUsedColumns() {
|
|
625
|
+
return this.functionArgument?._getUsedColumns() ?? [];
|
|
626
|
+
}
|
|
557
627
|
}
|
|
558
628
|
/**
|
|
559
629
|
* @internal
|
|
@@ -689,6 +759,12 @@ class ɵMacrosFunctionExpression extends ɵFunctionExpression {
|
|
|
689
759
|
clone() {
|
|
690
760
|
return new ɵMacrosFunctionExpression(this);
|
|
691
761
|
}
|
|
762
|
+
/**
|
|
763
|
+
* @internal
|
|
764
|
+
*/
|
|
765
|
+
_getUsedColumns() {
|
|
766
|
+
return this.functionArgument?._getUsedColumns() ?? [];
|
|
767
|
+
}
|
|
692
768
|
}
|
|
693
769
|
/**
|
|
694
770
|
* @internal
|
|
@@ -805,6 +881,12 @@ class ɵParameterExpression extends ɵBaseExpression {
|
|
|
805
881
|
clone() {
|
|
806
882
|
return new ɵParameterExpression(this);
|
|
807
883
|
}
|
|
884
|
+
/**
|
|
885
|
+
* @internal
|
|
886
|
+
*/
|
|
887
|
+
_getUsedColumns() {
|
|
888
|
+
return [];
|
|
889
|
+
}
|
|
808
890
|
}
|
|
809
891
|
/**
|
|
810
892
|
* @internal
|
|
@@ -820,165 +902,6 @@ __decorate([
|
|
|
820
902
|
__metadata("design:type", Number)
|
|
821
903
|
], ɵParameterExpression.prototype, "dataValueType", void 0);
|
|
822
904
|
|
|
823
|
-
class ɵSubQueryExpression extends ɵBaseExpression {
|
|
824
|
-
/**
|
|
825
|
-
* @internal
|
|
826
|
-
* @dontChange
|
|
827
|
-
*/
|
|
828
|
-
static get _instanceOfKeys() {
|
|
829
|
-
return [...ɵBaseExpression._instanceOfKeys, this._instanceOfKey];
|
|
830
|
-
}
|
|
831
|
-
constructor(config) {
|
|
832
|
-
super(config);
|
|
833
|
-
this.expressionType = ɵExpressionType.SubQuery;
|
|
834
|
-
this.columnPath = config?.columnPath;
|
|
835
|
-
const subFilter = config?.subFilters;
|
|
836
|
-
this.subFilters = typeof subFilter?.clone === 'function' ? subFilter.clone() : subFilter;
|
|
837
|
-
this.subOrderDirection = config.subOrderDirection;
|
|
838
|
-
this.subOrderColumn = config.subOrderColumn;
|
|
839
|
-
}
|
|
840
|
-
/**
|
|
841
|
-
* Parses expression from json.
|
|
842
|
-
* @public
|
|
843
|
-
*/
|
|
844
|
-
static fromJson(dto, filterParser) {
|
|
845
|
-
const expression = new ɵSubQueryExpression({
|
|
846
|
-
columnPath: dto['columnPath'],
|
|
847
|
-
subFilters: filterParser.fromJson(dto['subFilters']),
|
|
848
|
-
subOrderDirection: dto['subOrderDirection'],
|
|
849
|
-
subOrderColumn: dto['subOrderColumn'],
|
|
850
|
-
});
|
|
851
|
-
return expression;
|
|
852
|
-
}
|
|
853
|
-
clone() {
|
|
854
|
-
return new ɵSubQueryExpression(this);
|
|
855
|
-
}
|
|
856
|
-
toJson() {
|
|
857
|
-
const result = super.toJson();
|
|
858
|
-
if (this.subFilters) {
|
|
859
|
-
result['subFilters'] = this.serializeItem(this.subFilters);
|
|
860
|
-
}
|
|
861
|
-
return result;
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
/**
|
|
865
|
-
* @internal
|
|
866
|
-
* @dontChange
|
|
867
|
-
*/
|
|
868
|
-
ɵSubQueryExpression._instanceOfKey = 'devkit_SubQueryExpression';
|
|
869
|
-
|
|
870
|
-
class ɵAggregationSubQueryExpression extends ɵSubQueryExpression {
|
|
871
|
-
/**
|
|
872
|
-
* @internal
|
|
873
|
-
* @dontChange
|
|
874
|
-
*/
|
|
875
|
-
static get _instanceOfKeys() {
|
|
876
|
-
return [...ɵSubQueryExpression._instanceOfKeys, this._instanceOfKey];
|
|
877
|
-
}
|
|
878
|
-
constructor(config) {
|
|
879
|
-
super(config);
|
|
880
|
-
this.aggregationType = config?.aggregationType;
|
|
881
|
-
this.functionType = config?.functionType;
|
|
882
|
-
}
|
|
883
|
-
/**
|
|
884
|
-
* Parses expression from json.
|
|
885
|
-
* @public
|
|
886
|
-
*/
|
|
887
|
-
static fromJson(dto, filterParser) {
|
|
888
|
-
const subQueryExpression = super.fromJson(dto, filterParser);
|
|
889
|
-
const expression = new ɵAggregationSubQueryExpression({
|
|
890
|
-
aggregationType: dto['aggregationType'],
|
|
891
|
-
functionType: dto['functionType'],
|
|
892
|
-
...subQueryExpression,
|
|
893
|
-
});
|
|
894
|
-
return expression;
|
|
895
|
-
}
|
|
896
|
-
clone() {
|
|
897
|
-
return new ɵAggregationSubQueryExpression(this);
|
|
898
|
-
}
|
|
899
|
-
}
|
|
900
|
-
/**
|
|
901
|
-
* @internal
|
|
902
|
-
* @dontChange
|
|
903
|
-
*/
|
|
904
|
-
ɵAggregationSubQueryExpression._instanceOfKey = 'devkit_AggregationSubQueryExpression';
|
|
905
|
-
|
|
906
|
-
/**
|
|
907
|
-
* Function expression resolver.
|
|
908
|
-
* @public
|
|
909
|
-
*/
|
|
910
|
-
class FunctionExpressionResolver {
|
|
911
|
-
static resolve(dto) {
|
|
912
|
-
const expressionClass = {
|
|
913
|
-
[ɵFunctionType.Macros]: ɵMacrosFunctionExpression,
|
|
914
|
-
[ɵFunctionType.Length]: ɵLengthFunctionExpression,
|
|
915
|
-
[ɵFunctionType.Window]: ɵWindowFunctionExpression,
|
|
916
|
-
[ɵFunctionType.DatePart]: ɵDatePartFunctionExpression,
|
|
917
|
-
[ɵFunctionType.DateAdd]: ɵDatePartFunctionExpression,
|
|
918
|
-
[ɵFunctionType.DateDiff]: ɵDatePartFunctionExpression,
|
|
919
|
-
};
|
|
920
|
-
return expressionClass[dto['functionType']];
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
/**
|
|
924
|
-
* Expression resolver.
|
|
925
|
-
* @public
|
|
926
|
-
*/
|
|
927
|
-
class ɵExpressionResolver {
|
|
928
|
-
static resolve(expressionType, dto) {
|
|
929
|
-
const expressionClass = {
|
|
930
|
-
[ɵExpressionType.SchemaColumn]: ɵColumnExpression,
|
|
931
|
-
[ɵExpressionType.Parameter]: ɵParameterExpression,
|
|
932
|
-
[ɵExpressionType.SubQuery]: ɵAggregationSubQueryExpression,
|
|
933
|
-
[ɵExpressionType.ArithmeticOperation]: ɵArithmeticExpression,
|
|
934
|
-
[ɵExpressionType.Function]: FunctionExpressionResolver.resolve(dto),
|
|
935
|
-
};
|
|
936
|
-
return expressionClass[expressionType];
|
|
937
|
-
}
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
/**
|
|
941
|
-
* Expression parser.
|
|
942
|
-
* @public
|
|
943
|
-
*/
|
|
944
|
-
class ɵExpressionParser extends ɵBaseExpressionParser {
|
|
945
|
-
/**
|
|
946
|
-
* Parses expression from json.
|
|
947
|
-
* @public
|
|
948
|
-
*/
|
|
949
|
-
static fromJson(dto, filterParser) {
|
|
950
|
-
const expressionType = dto['expressionType'];
|
|
951
|
-
return ɵExpressionResolver.resolve(expressionType, dto).fromJson(dto, filterParser, ɵExpressionParser);
|
|
952
|
-
}
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
const ɵEXPRESSION_TYPE_MOCK = -1;
|
|
956
|
-
class ɵExpressionMock extends ɵBaseExpression {
|
|
957
|
-
/**
|
|
958
|
-
* @internal
|
|
959
|
-
* @dontChange
|
|
960
|
-
*/
|
|
961
|
-
static get _instanceOfKeys() {
|
|
962
|
-
return [...ɵBaseExpression._instanceOfKeys, this._instanceOfKey];
|
|
963
|
-
}
|
|
964
|
-
constructor(config) {
|
|
965
|
-
super(config || {});
|
|
966
|
-
this.expressionType = ɵEXPRESSION_TYPE_MOCK;
|
|
967
|
-
}
|
|
968
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
969
|
-
get plainObject() {
|
|
970
|
-
return classToPlain(this, { exposeUnsetFields: false, excludePrefixes: ['_'] });
|
|
971
|
-
}
|
|
972
|
-
clone() {
|
|
973
|
-
return new ɵExpressionMock(this);
|
|
974
|
-
}
|
|
975
|
-
}
|
|
976
|
-
/**
|
|
977
|
-
* @internal
|
|
978
|
-
* @dontChange
|
|
979
|
-
*/
|
|
980
|
-
ɵExpressionMock._instanceOfKey = 'devkit_ExpressionMock';
|
|
981
|
-
|
|
982
905
|
class ɵBaseFilter {
|
|
983
906
|
/**
|
|
984
907
|
* @internal
|
|
@@ -1028,39 +951,6 @@ class ɵBaseFilter {
|
|
|
1028
951
|
*/
|
|
1029
952
|
ɵBaseFilter._instanceOfKey = 'devkit_BaseFilter';
|
|
1030
953
|
|
|
1031
|
-
class ɵFilterMock extends ɵBaseFilter {
|
|
1032
|
-
/**
|
|
1033
|
-
* @internal
|
|
1034
|
-
* @dontChange
|
|
1035
|
-
*/
|
|
1036
|
-
static get _instanceOfKeys() {
|
|
1037
|
-
return [...ɵBaseFilter._instanceOfKeys, this._instanceOfKey];
|
|
1038
|
-
}
|
|
1039
|
-
constructor(filterType = ɵFilterType.None) {
|
|
1040
|
-
super(filterType);
|
|
1041
|
-
}
|
|
1042
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
1043
|
-
get plainObject() {
|
|
1044
|
-
return classToPlain(this, { exposeUnsetFields: false, excludePrefixes: ['_'] });
|
|
1045
|
-
}
|
|
1046
|
-
clone() {
|
|
1047
|
-
return new ɵFilterMock(this.filterType);
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
/**
|
|
1051
|
-
* @internal
|
|
1052
|
-
* @dontChange
|
|
1053
|
-
*/
|
|
1054
|
-
ɵFilterMock._instanceOfKey = 'devkit_FilterMock';
|
|
1055
|
-
|
|
1056
|
-
const ɵparserMock = {
|
|
1057
|
-
fromJson: (data) => ({
|
|
1058
|
-
...data,
|
|
1059
|
-
clone: () => data,
|
|
1060
|
-
}),
|
|
1061
|
-
clone: () => this,
|
|
1062
|
-
};
|
|
1063
|
-
|
|
1064
954
|
class ɵSingleFilter extends ɵBaseFilter {
|
|
1065
955
|
/**
|
|
1066
956
|
* @internal
|
|
@@ -1080,6 +970,12 @@ class ɵSingleFilter extends ɵBaseFilter {
|
|
|
1080
970
|
leftExpression: this.serializeItem(this.leftExpression),
|
|
1081
971
|
};
|
|
1082
972
|
}
|
|
973
|
+
/**
|
|
974
|
+
* @internal
|
|
975
|
+
*/
|
|
976
|
+
_getUsedColumns() {
|
|
977
|
+
return this.leftExpression._getUsedColumns();
|
|
978
|
+
}
|
|
1083
979
|
}
|
|
1084
980
|
/**
|
|
1085
981
|
* @internal
|
|
@@ -1087,7 +983,7 @@ class ɵSingleFilter extends ɵBaseFilter {
|
|
|
1087
983
|
*/
|
|
1088
984
|
ɵSingleFilter._instanceOfKey = 'devkit_SingleFilter';
|
|
1089
985
|
|
|
1090
|
-
class
|
|
986
|
+
class ɵBetweenFilter extends ɵSingleFilter {
|
|
1091
987
|
/**
|
|
1092
988
|
* @internal
|
|
1093
989
|
* @dontChange
|
|
@@ -1095,20 +991,21 @@ class ɵCompareFilter extends ɵSingleFilter {
|
|
|
1095
991
|
static get _instanceOfKeys() {
|
|
1096
992
|
return [...ɵSingleFilter._instanceOfKeys, this._instanceOfKey];
|
|
1097
993
|
}
|
|
1098
|
-
constructor(
|
|
1099
|
-
super(ɵFilterType.
|
|
1100
|
-
this.
|
|
994
|
+
constructor(leftExpression, rightLessExpression, rightGreaterExpression) {
|
|
995
|
+
super(ɵFilterType.Between, ɵComparisonType.Between, leftExpression);
|
|
996
|
+
this.rightLessExpression = rightLessExpression.clone();
|
|
997
|
+
this.rightGreaterExpression = rightGreaterExpression.clone();
|
|
1101
998
|
}
|
|
1102
999
|
/**
|
|
1103
1000
|
* Parses filter from json.
|
|
1104
1001
|
* @public
|
|
1105
1002
|
*/
|
|
1106
1003
|
static fromJson(dto, filterParser, expressionParser) {
|
|
1107
|
-
const filter = new
|
|
1004
|
+
const filter = new ɵBetweenFilter(expressionParser.fromJson(dto['leftExpression'], filterParser), expressionParser.fromJson(dto['rightLessExpression'], filterParser), expressionParser.fromJson(dto['rightGreaterExpression'], filterParser));
|
|
1108
1005
|
return filter;
|
|
1109
1006
|
}
|
|
1110
1007
|
clone() {
|
|
1111
|
-
const filter = new
|
|
1008
|
+
const filter = new ɵBetweenFilter(this.leftExpression, this.rightLessExpression, this.rightGreaterExpression);
|
|
1112
1009
|
filter.isEnabled = this.isEnabled;
|
|
1113
1010
|
filter.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1114
1011
|
return filter;
|
|
@@ -1116,17 +1013,28 @@ class ɵCompareFilter extends ɵSingleFilter {
|
|
|
1116
1013
|
toJson() {
|
|
1117
1014
|
return {
|
|
1118
1015
|
...super.toJson(),
|
|
1119
|
-
|
|
1016
|
+
rightLessExpression: this.serializeItem(this.rightLessExpression),
|
|
1017
|
+
rightGreaterExpression: this.serializeItem(this.rightGreaterExpression),
|
|
1120
1018
|
};
|
|
1121
1019
|
}
|
|
1020
|
+
/**
|
|
1021
|
+
* @internal
|
|
1022
|
+
*/
|
|
1023
|
+
_getUsedColumns() {
|
|
1024
|
+
return [
|
|
1025
|
+
...super._getUsedColumns(),
|
|
1026
|
+
...this.rightLessExpression._getUsedColumns(),
|
|
1027
|
+
...this.rightGreaterExpression._getUsedColumns(),
|
|
1028
|
+
];
|
|
1029
|
+
}
|
|
1122
1030
|
}
|
|
1123
1031
|
/**
|
|
1124
1032
|
* @internal
|
|
1125
1033
|
* @dontChange
|
|
1126
1034
|
*/
|
|
1127
|
-
|
|
1035
|
+
ɵBetweenFilter._instanceOfKey = 'devkit_BetweenFilter';
|
|
1128
1036
|
|
|
1129
|
-
class
|
|
1037
|
+
class ɵCompareFilter extends ɵSingleFilter {
|
|
1130
1038
|
/**
|
|
1131
1039
|
* @internal
|
|
1132
1040
|
* @dontChange
|
|
@@ -1134,21 +1042,20 @@ class ɵBetweenFilter extends ɵSingleFilter {
|
|
|
1134
1042
|
static get _instanceOfKeys() {
|
|
1135
1043
|
return [...ɵSingleFilter._instanceOfKeys, this._instanceOfKey];
|
|
1136
1044
|
}
|
|
1137
|
-
constructor(
|
|
1138
|
-
super(ɵFilterType.
|
|
1139
|
-
this.
|
|
1140
|
-
this.rightGreaterExpression = rightGreaterExpression.clone();
|
|
1045
|
+
constructor(comparisonType, leftExpression, rightExpression) {
|
|
1046
|
+
super(ɵFilterType.Compare, comparisonType, leftExpression);
|
|
1047
|
+
this.rightExpression = rightExpression.clone();
|
|
1141
1048
|
}
|
|
1142
1049
|
/**
|
|
1143
1050
|
* Parses filter from json.
|
|
1144
1051
|
* @public
|
|
1145
1052
|
*/
|
|
1146
1053
|
static fromJson(dto, filterParser, expressionParser) {
|
|
1147
|
-
const filter = new
|
|
1054
|
+
const filter = new ɵCompareFilter(dto['comparisonType'], expressionParser.fromJson(dto['leftExpression'], filterParser), expressionParser.fromJson(dto['rightExpression'], filterParser));
|
|
1148
1055
|
return filter;
|
|
1149
1056
|
}
|
|
1150
1057
|
clone() {
|
|
1151
|
-
const filter = new
|
|
1058
|
+
const filter = new ɵCompareFilter(this.comparisonType, this.leftExpression, this.rightExpression);
|
|
1152
1059
|
filter.isEnabled = this.isEnabled;
|
|
1153
1060
|
filter.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1154
1061
|
return filter;
|
|
@@ -1156,16 +1063,21 @@ class ɵBetweenFilter extends ɵSingleFilter {
|
|
|
1156
1063
|
toJson() {
|
|
1157
1064
|
return {
|
|
1158
1065
|
...super.toJson(),
|
|
1159
|
-
|
|
1160
|
-
rightGreaterExpression: this.serializeItem(this.rightGreaterExpression),
|
|
1066
|
+
rightExpression: this.serializeItem(this.rightExpression),
|
|
1161
1067
|
};
|
|
1162
1068
|
}
|
|
1069
|
+
/**
|
|
1070
|
+
* @internal
|
|
1071
|
+
*/
|
|
1072
|
+
_getUsedColumns() {
|
|
1073
|
+
return [...super._getUsedColumns(), ...this.rightExpression._getUsedColumns()];
|
|
1074
|
+
}
|
|
1163
1075
|
}
|
|
1164
1076
|
/**
|
|
1165
1077
|
* @internal
|
|
1166
1078
|
* @dontChange
|
|
1167
1079
|
*/
|
|
1168
|
-
|
|
1080
|
+
ɵCompareFilter._instanceOfKey = 'devkit_CompareFilter';
|
|
1169
1081
|
|
|
1170
1082
|
class ɵExistsFilter extends ɵSingleFilter {
|
|
1171
1083
|
/**
|
|
@@ -1202,6 +1114,12 @@ class ɵExistsFilter extends ɵSingleFilter {
|
|
|
1202
1114
|
}
|
|
1203
1115
|
return result;
|
|
1204
1116
|
}
|
|
1117
|
+
/**
|
|
1118
|
+
* @internal
|
|
1119
|
+
*/
|
|
1120
|
+
_getUsedColumns() {
|
|
1121
|
+
return [...super._getUsedColumns(), ...(this.subFilters?._getUsedColumns() ?? [])];
|
|
1122
|
+
}
|
|
1205
1123
|
}
|
|
1206
1124
|
/**
|
|
1207
1125
|
* @internal
|
|
@@ -1241,6 +1159,15 @@ class ɵInFilter extends ɵSingleFilter {
|
|
|
1241
1159
|
rightExpressions: this.rightExpressions.map((expression) => this.serializeItem(expression)),
|
|
1242
1160
|
};
|
|
1243
1161
|
}
|
|
1162
|
+
/**
|
|
1163
|
+
* @internal
|
|
1164
|
+
*/
|
|
1165
|
+
_getUsedColumns() {
|
|
1166
|
+
const rightExpressionsUsedColumns = this.rightExpressions
|
|
1167
|
+
.map((expression) => expression._getUsedColumns())
|
|
1168
|
+
.flat();
|
|
1169
|
+
return [...super._getUsedColumns(), ...rightExpressionsUsedColumns];
|
|
1170
|
+
}
|
|
1244
1171
|
}
|
|
1245
1172
|
/**
|
|
1246
1173
|
* @internal
|
|
@@ -1433,6 +1360,22 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1433
1360
|
});
|
|
1434
1361
|
return group;
|
|
1435
1362
|
}
|
|
1363
|
+
/**
|
|
1364
|
+
* Converts instance to json object.
|
|
1365
|
+
* @public
|
|
1366
|
+
*/
|
|
1367
|
+
toJson() {
|
|
1368
|
+
const result = {};
|
|
1369
|
+
result['filterType'] = this.filterType;
|
|
1370
|
+
result['isEnabled'] = this.isEnabled;
|
|
1371
|
+
result['logicalOperation'] = this.logicalOperation;
|
|
1372
|
+
result['trimDateTimeParameterToDate'] = this.trimDateTimeParameterToDate;
|
|
1373
|
+
result['items'] = this.items;
|
|
1374
|
+
if (this.rootSchemaName) {
|
|
1375
|
+
result['rootSchemaName'] = this.rootSchemaName;
|
|
1376
|
+
}
|
|
1377
|
+
return result;
|
|
1378
|
+
}
|
|
1436
1379
|
_createParameterValueExpressions(values) {
|
|
1437
1380
|
return values.map((value) => new ɵParameterExpression({
|
|
1438
1381
|
value: value,
|
|
@@ -1536,6 +1479,21 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1536
1479
|
filterGroup.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1537
1480
|
return filterGroup;
|
|
1538
1481
|
}
|
|
1482
|
+
/**
|
|
1483
|
+
* @internal
|
|
1484
|
+
*/
|
|
1485
|
+
_getUsedColumns() {
|
|
1486
|
+
const result = [];
|
|
1487
|
+
this.filters.forEach((filter) => {
|
|
1488
|
+
let filterUsedColumns = filter._getUsedColumns ? filter._getUsedColumns() : [];
|
|
1489
|
+
filterUsedColumns = filterUsedColumns.map((usedColumn) => ({
|
|
1490
|
+
path: usedColumn.path,
|
|
1491
|
+
schemaName: usedColumn.schemaName ?? this.rootSchemaName,
|
|
1492
|
+
}));
|
|
1493
|
+
result.push(...filterUsedColumns);
|
|
1494
|
+
});
|
|
1495
|
+
return result;
|
|
1496
|
+
}
|
|
1539
1497
|
}
|
|
1540
1498
|
/**
|
|
1541
1499
|
* @internal
|
|
@@ -1552,6 +1510,232 @@ __decorate([
|
|
|
1552
1510
|
__metadata("design:paramtypes", [])
|
|
1553
1511
|
], ɵFilterGroup.prototype, "items", null);
|
|
1554
1512
|
|
|
1513
|
+
class ɵSubQueryExpression extends ɵBaseExpression {
|
|
1514
|
+
/**
|
|
1515
|
+
* @internal
|
|
1516
|
+
* @dontChange
|
|
1517
|
+
*/
|
|
1518
|
+
static get _instanceOfKeys() {
|
|
1519
|
+
return [...ɵBaseExpression._instanceOfKeys, this._instanceOfKey];
|
|
1520
|
+
}
|
|
1521
|
+
constructor(config) {
|
|
1522
|
+
super(config);
|
|
1523
|
+
this.expressionType = ɵExpressionType.SubQuery;
|
|
1524
|
+
this.columnPath = config?.columnPath;
|
|
1525
|
+
const subFilters = config?.subFilters;
|
|
1526
|
+
if (typeof subFilters?.clone === 'function') {
|
|
1527
|
+
this.subFilters = subFilters.clone();
|
|
1528
|
+
}
|
|
1529
|
+
else if (subFilters) {
|
|
1530
|
+
this.subFilters = new ɵFilterGroup(subFilters.logicalOperation, subFilters.rootSchemaName);
|
|
1531
|
+
Object.entries(subFilters.items).forEach(([key, filter]) => {
|
|
1532
|
+
this.subFilters.add(filter, key);
|
|
1533
|
+
});
|
|
1534
|
+
}
|
|
1535
|
+
else {
|
|
1536
|
+
this.subFilters = subFilters;
|
|
1537
|
+
}
|
|
1538
|
+
this.subOrderDirection = config.subOrderDirection;
|
|
1539
|
+
this.subOrderColumn = config.subOrderColumn;
|
|
1540
|
+
}
|
|
1541
|
+
/**
|
|
1542
|
+
* Parses expression from json.
|
|
1543
|
+
* @public
|
|
1544
|
+
*/
|
|
1545
|
+
static fromJson(dto, filterParser) {
|
|
1546
|
+
const expression = new ɵSubQueryExpression({
|
|
1547
|
+
columnPath: dto['columnPath'],
|
|
1548
|
+
subFilters: filterParser.fromJson(dto['subFilters']),
|
|
1549
|
+
subOrderDirection: dto['subOrderDirection'],
|
|
1550
|
+
subOrderColumn: dto['subOrderColumn'],
|
|
1551
|
+
});
|
|
1552
|
+
return expression;
|
|
1553
|
+
}
|
|
1554
|
+
clone() {
|
|
1555
|
+
return new ɵSubQueryExpression(this);
|
|
1556
|
+
}
|
|
1557
|
+
toJson() {
|
|
1558
|
+
const result = super.toJson();
|
|
1559
|
+
if (this.subFilters) {
|
|
1560
|
+
result['subFilters'] = this.serializeItem(this.subFilters);
|
|
1561
|
+
}
|
|
1562
|
+
return result;
|
|
1563
|
+
}
|
|
1564
|
+
/**
|
|
1565
|
+
* @internal
|
|
1566
|
+
*/
|
|
1567
|
+
_getUsedColumns() {
|
|
1568
|
+
return [
|
|
1569
|
+
{
|
|
1570
|
+
path: this.columnPath,
|
|
1571
|
+
},
|
|
1572
|
+
...(this.subFilters?._getUsedColumns() ?? []),
|
|
1573
|
+
];
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
/**
|
|
1577
|
+
* @internal
|
|
1578
|
+
* @dontChange
|
|
1579
|
+
*/
|
|
1580
|
+
ɵSubQueryExpression._instanceOfKey = 'devkit_SubQueryExpression';
|
|
1581
|
+
|
|
1582
|
+
class ɵAggregationSubQueryExpression extends ɵSubQueryExpression {
|
|
1583
|
+
/**
|
|
1584
|
+
* @internal
|
|
1585
|
+
* @dontChange
|
|
1586
|
+
*/
|
|
1587
|
+
static get _instanceOfKeys() {
|
|
1588
|
+
return [...ɵSubQueryExpression._instanceOfKeys, this._instanceOfKey];
|
|
1589
|
+
}
|
|
1590
|
+
constructor(config) {
|
|
1591
|
+
super(config);
|
|
1592
|
+
this.aggregationType = config?.aggregationType;
|
|
1593
|
+
this.functionType = config?.functionType;
|
|
1594
|
+
}
|
|
1595
|
+
/**
|
|
1596
|
+
* Parses expression from json.
|
|
1597
|
+
* @public
|
|
1598
|
+
*/
|
|
1599
|
+
static fromJson(dto, filterParser) {
|
|
1600
|
+
const subQueryExpression = super.fromJson(dto, filterParser);
|
|
1601
|
+
const expression = new ɵAggregationSubQueryExpression({
|
|
1602
|
+
aggregationType: dto['aggregationType'],
|
|
1603
|
+
functionType: dto['functionType'],
|
|
1604
|
+
...subQueryExpression,
|
|
1605
|
+
});
|
|
1606
|
+
return expression;
|
|
1607
|
+
}
|
|
1608
|
+
clone() {
|
|
1609
|
+
return new ɵAggregationSubQueryExpression(this);
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
/**
|
|
1613
|
+
* @internal
|
|
1614
|
+
* @dontChange
|
|
1615
|
+
*/
|
|
1616
|
+
ɵAggregationSubQueryExpression._instanceOfKey = 'devkit_AggregationSubQueryExpression';
|
|
1617
|
+
|
|
1618
|
+
/**
|
|
1619
|
+
* Function expression resolver.
|
|
1620
|
+
* @public
|
|
1621
|
+
*/
|
|
1622
|
+
class FunctionExpressionResolver {
|
|
1623
|
+
static resolve(dto) {
|
|
1624
|
+
const expressionClass = {
|
|
1625
|
+
[ɵFunctionType.Macros]: ɵMacrosFunctionExpression,
|
|
1626
|
+
[ɵFunctionType.Length]: ɵLengthFunctionExpression,
|
|
1627
|
+
[ɵFunctionType.Window]: ɵWindowFunctionExpression,
|
|
1628
|
+
[ɵFunctionType.DatePart]: ɵDatePartFunctionExpression,
|
|
1629
|
+
[ɵFunctionType.DateAdd]: ɵDatePartFunctionExpression,
|
|
1630
|
+
[ɵFunctionType.DateDiff]: ɵDatePartFunctionExpression,
|
|
1631
|
+
};
|
|
1632
|
+
return expressionClass[dto['functionType']];
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
/**
|
|
1636
|
+
* Expression resolver.
|
|
1637
|
+
* @public
|
|
1638
|
+
*/
|
|
1639
|
+
class ɵExpressionResolver {
|
|
1640
|
+
static resolve(expressionType, dto) {
|
|
1641
|
+
const expressionClass = {
|
|
1642
|
+
[ɵExpressionType.SchemaColumn]: ɵColumnExpression,
|
|
1643
|
+
[ɵExpressionType.Parameter]: ɵParameterExpression,
|
|
1644
|
+
[ɵExpressionType.SubQuery]: ɵAggregationSubQueryExpression,
|
|
1645
|
+
[ɵExpressionType.ArithmeticOperation]: ɵArithmeticExpression,
|
|
1646
|
+
[ɵExpressionType.Function]: FunctionExpressionResolver.resolve(dto),
|
|
1647
|
+
};
|
|
1648
|
+
return expressionClass[expressionType];
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
/**
|
|
1653
|
+
* Expression parser.
|
|
1654
|
+
* @public
|
|
1655
|
+
*/
|
|
1656
|
+
class ɵExpressionParser extends ɵBaseExpressionParser {
|
|
1657
|
+
/**
|
|
1658
|
+
* Parses expression from json.
|
|
1659
|
+
* @public
|
|
1660
|
+
*/
|
|
1661
|
+
static fromJson(dto, filterParser) {
|
|
1662
|
+
const expressionType = dto['expressionType'];
|
|
1663
|
+
return ɵExpressionResolver.resolve(expressionType, dto).fromJson(dto, filterParser, ɵExpressionParser);
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
const ɵEXPRESSION_TYPE_MOCK = -1;
|
|
1668
|
+
class ɵExpressionMock extends ɵBaseExpression {
|
|
1669
|
+
/**
|
|
1670
|
+
* @internal
|
|
1671
|
+
* @dontChange
|
|
1672
|
+
*/
|
|
1673
|
+
static get _instanceOfKeys() {
|
|
1674
|
+
return [...ɵBaseExpression._instanceOfKeys, this._instanceOfKey];
|
|
1675
|
+
}
|
|
1676
|
+
constructor(config) {
|
|
1677
|
+
super(config || {});
|
|
1678
|
+
this.expressionType = ɵEXPRESSION_TYPE_MOCK;
|
|
1679
|
+
}
|
|
1680
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
1681
|
+
get plainObject() {
|
|
1682
|
+
return classToPlain(this, { exposeUnsetFields: false, excludePrefixes: ['_'] });
|
|
1683
|
+
}
|
|
1684
|
+
clone() {
|
|
1685
|
+
return new ɵExpressionMock(this);
|
|
1686
|
+
}
|
|
1687
|
+
/**
|
|
1688
|
+
* @internal
|
|
1689
|
+
*/
|
|
1690
|
+
_getUsedColumns() {
|
|
1691
|
+
return [];
|
|
1692
|
+
}
|
|
1693
|
+
}
|
|
1694
|
+
/**
|
|
1695
|
+
* @internal
|
|
1696
|
+
* @dontChange
|
|
1697
|
+
*/
|
|
1698
|
+
ɵExpressionMock._instanceOfKey = 'devkit_ExpressionMock';
|
|
1699
|
+
|
|
1700
|
+
class ɵFilterMock extends ɵBaseFilter {
|
|
1701
|
+
/**
|
|
1702
|
+
* @internal
|
|
1703
|
+
* @dontChange
|
|
1704
|
+
*/
|
|
1705
|
+
static get _instanceOfKeys() {
|
|
1706
|
+
return [...ɵBaseFilter._instanceOfKeys, this._instanceOfKey];
|
|
1707
|
+
}
|
|
1708
|
+
constructor(filterType = ɵFilterType.None) {
|
|
1709
|
+
super(filterType);
|
|
1710
|
+
}
|
|
1711
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
1712
|
+
get plainObject() {
|
|
1713
|
+
return classToPlain(this, { exposeUnsetFields: false, excludePrefixes: ['_'] });
|
|
1714
|
+
}
|
|
1715
|
+
clone() {
|
|
1716
|
+
return new ɵFilterMock(this.filterType);
|
|
1717
|
+
}
|
|
1718
|
+
/**
|
|
1719
|
+
* @internal
|
|
1720
|
+
*/
|
|
1721
|
+
_getUsedColumns() {
|
|
1722
|
+
return [];
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
/**
|
|
1726
|
+
* @internal
|
|
1727
|
+
* @dontChange
|
|
1728
|
+
*/
|
|
1729
|
+
ɵFilterMock._instanceOfKey = 'devkit_FilterMock';
|
|
1730
|
+
|
|
1731
|
+
const ɵparserMock = {
|
|
1732
|
+
fromJson: (data) => ({
|
|
1733
|
+
...data,
|
|
1734
|
+
clone: () => data,
|
|
1735
|
+
}),
|
|
1736
|
+
clone: () => this,
|
|
1737
|
+
};
|
|
1738
|
+
|
|
1555
1739
|
/**
|
|
1556
1740
|
* Filter parser interface
|
|
1557
1741
|
* @public
|
|
@@ -1648,6 +1832,12 @@ class ɵBaseQueryColumn {
|
|
|
1648
1832
|
this.caption = caption;
|
|
1649
1833
|
return this;
|
|
1650
1834
|
}
|
|
1835
|
+
/**
|
|
1836
|
+
* @internal
|
|
1837
|
+
*/
|
|
1838
|
+
_getUsedColumns() {
|
|
1839
|
+
return this.expression._getUsedColumns();
|
|
1840
|
+
}
|
|
1651
1841
|
}
|
|
1652
1842
|
|
|
1653
1843
|
class ɵArithmeticQueryColumn extends ɵBaseQueryColumn {
|
|
@@ -1785,7 +1975,23 @@ class ɵBaseFilterableQuery extends ɵBaseQuery {
|
|
|
1785
1975
|
filters: this.filters.toJson(),
|
|
1786
1976
|
};
|
|
1787
1977
|
}
|
|
1978
|
+
/**
|
|
1979
|
+
* @internal
|
|
1980
|
+
*/
|
|
1981
|
+
_getUsedColumns() {
|
|
1982
|
+
const usedColumns = this.filters._getUsedColumns();
|
|
1983
|
+
usedColumns.forEach((usedColumn) => {
|
|
1984
|
+
if (!usedColumn.schemaName) {
|
|
1985
|
+
usedColumn.schemaName = this.rootSchemaName;
|
|
1986
|
+
}
|
|
1987
|
+
});
|
|
1988
|
+
return usedColumns;
|
|
1989
|
+
}
|
|
1788
1990
|
}
|
|
1991
|
+
__decorate([
|
|
1992
|
+
Exclude(),
|
|
1993
|
+
__metadata("design:type", Object)
|
|
1994
|
+
], ɵBaseFilterableQuery.prototype, "filters", void 0);
|
|
1789
1995
|
|
|
1790
1996
|
/**
|
|
1791
1997
|
* @public
|
|
@@ -1870,6 +2076,7 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
1870
2076
|
ignoreDisplayValues: false,
|
|
1871
2077
|
rowCount: this.rowCount,
|
|
1872
2078
|
rowsOffset: this.rowsOffset,
|
|
2079
|
+
adminUnitRoleSources: this.adminUnitRoleSources,
|
|
1873
2080
|
isPageable: this._getIsPageable(),
|
|
1874
2081
|
conditionalValues: this.conditionalValues ? this.conditionalValues : null,
|
|
1875
2082
|
isHierarchical: false,
|
|
@@ -2008,6 +2215,21 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2008
2215
|
this._internalAddColumn(columnAlias, column);
|
|
2009
2216
|
return column;
|
|
2010
2217
|
}
|
|
2218
|
+
/**
|
|
2219
|
+
* @internal
|
|
2220
|
+
*/
|
|
2221
|
+
_getUsedColumns() {
|
|
2222
|
+
const usedColumns = [];
|
|
2223
|
+
this._columns.forEach((column) => {
|
|
2224
|
+
usedColumns.push(...column._getUsedColumns());
|
|
2225
|
+
});
|
|
2226
|
+
usedColumns.forEach((usedColumn) => {
|
|
2227
|
+
if (!usedColumn.schemaName) {
|
|
2228
|
+
usedColumn.schemaName = this.rootSchemaName;
|
|
2229
|
+
}
|
|
2230
|
+
});
|
|
2231
|
+
return [...usedColumns, ...super._getUsedColumns()];
|
|
2232
|
+
}
|
|
2011
2233
|
}
|
|
2012
2234
|
|
|
2013
2235
|
/**
|
|
@@ -2101,15 +2323,39 @@ class ɵBaseRequest {
|
|
|
2101
2323
|
var ɵModelParameterType;
|
|
2102
2324
|
(function (ɵModelParameterType) {
|
|
2103
2325
|
ɵModelParameterType["PrimaryColumnValue"] = "primaryColumnValue";
|
|
2326
|
+
ɵModelParameterType["ColumnValue"] = "columnValue";
|
|
2104
2327
|
ɵModelParameterType["Filter"] = "filter";
|
|
2105
2328
|
ɵModelParameterType["PrimaryDisplayValueFilter"] = "primaryDisplayValueFilter";
|
|
2106
2329
|
ɵModelParameterType["Empty"] = "empty";
|
|
2107
2330
|
ɵModelParameterType["Never"] = "never";
|
|
2108
2331
|
})(ɵModelParameterType || (ɵModelParameterType = {}));
|
|
2109
2332
|
|
|
2333
|
+
/**
|
|
2334
|
+
* @public
|
|
2335
|
+
* @description Actions of mask request.
|
|
2336
|
+
*/
|
|
2337
|
+
var ɵSchemaViewMaskRequestAction;
|
|
2338
|
+
(function (ɵSchemaViewMaskRequestAction) {
|
|
2339
|
+
ɵSchemaViewMaskRequestAction["AddTask"] = "addTask";
|
|
2340
|
+
ɵSchemaViewMaskRequestAction["RemoveTask"] = "removeTask";
|
|
2341
|
+
})(ɵSchemaViewMaskRequestAction || (ɵSchemaViewMaskRequestAction = {}));
|
|
2342
|
+
/**
|
|
2343
|
+
* @public
|
|
2344
|
+
* @description Request to show mask.
|
|
2345
|
+
*/
|
|
2346
|
+
class ɵSchemaViewMaskRequest extends ɵBaseRequest {
|
|
2347
|
+
constructor(action, taskName, $context) {
|
|
2348
|
+
super();
|
|
2349
|
+
this.action = action;
|
|
2350
|
+
this.taskName = taskName;
|
|
2351
|
+
this.$context = $context;
|
|
2352
|
+
this.type = 'crt.SchemaViewMaskRequest';
|
|
2353
|
+
}
|
|
2354
|
+
}
|
|
2355
|
+
|
|
2110
2356
|
/**
|
|
2111
2357
|
* Generated bundle index. Do not edit.
|
|
2112
2358
|
*/
|
|
2113
2359
|
|
|
2114
|
-
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 };
|
|
2360
|
+
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 };
|
|
2115
2361
|
//# sourceMappingURL=creatio-base.mjs.map
|