ngx-wapp-components 3.5.0 → 3.5.2
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/package.json
CHANGED
|
@@ -808,6 +808,7 @@ interface StoreableTablePagination {
|
|
|
808
808
|
rows: number;
|
|
809
809
|
sortField?: string;
|
|
810
810
|
sortOrder?: number;
|
|
811
|
+
searchInput?: string;
|
|
811
812
|
};
|
|
812
813
|
}
|
|
813
814
|
|
|
@@ -859,6 +860,8 @@ declare class WTableComponent implements OnInit, OnChanges {
|
|
|
859
860
|
first: number;
|
|
860
861
|
sortField?: string;
|
|
861
862
|
sortOrder: number;
|
|
863
|
+
searchInput: string;
|
|
864
|
+
private restoringSearchFirst?;
|
|
862
865
|
private initialPaginationApplied;
|
|
863
866
|
private _totalRecords;
|
|
864
867
|
set totalRecords(value: number);
|
|
@@ -885,6 +888,7 @@ declare class WTableComponent implements OnInit, OnChanges {
|
|
|
885
888
|
onSecondaryCheckboxChange: EventEmitter<any>;
|
|
886
889
|
filter: ElementRef;
|
|
887
890
|
dataTable: Table;
|
|
891
|
+
set tableComponent(table: Table | undefined);
|
|
888
892
|
constructor(confirmationService: ConfirmationService, dateConversionService: DateConversionService, sessionStorage: SessionStorageService, localStorage: LocalStorageService);
|
|
889
893
|
ngOnInit(): void;
|
|
890
894
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -906,6 +910,7 @@ declare class WTableComponent implements OnInit, OnChanges {
|
|
|
906
910
|
updateSelectedFilteredItems(items: any[]): void;
|
|
907
911
|
onSecondaryCheckboxChanges(element: any): void;
|
|
908
912
|
onGlobalFilter(table: Table, event: Event): void;
|
|
913
|
+
onFilter(table: Table): void;
|
|
909
914
|
clear(table: Table): void;
|
|
910
915
|
get tableColumnFilterTypes(): typeof TableColumnFilterTypes;
|
|
911
916
|
get tableColumnTypes(): typeof TableColumnTypes;
|
|
@@ -937,6 +942,170 @@ interface LazyElementQueryRequest {
|
|
|
937
942
|
filters: Filter[];
|
|
938
943
|
}
|
|
939
944
|
|
|
945
|
+
interface RuleSet$1 {
|
|
946
|
+
condition: string;
|
|
947
|
+
rules: Array<RuleSet$1 | Rule$1 | any>;
|
|
948
|
+
collapsed?: boolean;
|
|
949
|
+
isChild?: boolean;
|
|
950
|
+
}
|
|
951
|
+
interface Rule$1 {
|
|
952
|
+
field: string;
|
|
953
|
+
value?: any;
|
|
954
|
+
operator?: string;
|
|
955
|
+
entity?: string;
|
|
956
|
+
}
|
|
957
|
+
interface Option$1 {
|
|
958
|
+
name: string;
|
|
959
|
+
value: any;
|
|
960
|
+
}
|
|
961
|
+
interface FieldMap$1 {
|
|
962
|
+
[key: string]: Field$1;
|
|
963
|
+
}
|
|
964
|
+
interface Field$1 {
|
|
965
|
+
id?: number;
|
|
966
|
+
name: string;
|
|
967
|
+
value?: string;
|
|
968
|
+
type: string;
|
|
969
|
+
nullable?: boolean;
|
|
970
|
+
options?: Option$1[];
|
|
971
|
+
operators?: string[];
|
|
972
|
+
defaultValue?: any;
|
|
973
|
+
defaultOperator?: any;
|
|
974
|
+
entity?: string;
|
|
975
|
+
validator?: (rule: Rule$1, parent: RuleSet$1) => any | null;
|
|
976
|
+
}
|
|
977
|
+
interface LocalRuleMeta {
|
|
978
|
+
ruleset: boolean;
|
|
979
|
+
invalid: boolean;
|
|
980
|
+
}
|
|
981
|
+
interface EntityMap$1 {
|
|
982
|
+
[key: string]: Entity$1;
|
|
983
|
+
}
|
|
984
|
+
interface Entity$1 {
|
|
985
|
+
name: string;
|
|
986
|
+
value?: string;
|
|
987
|
+
defaultField?: any;
|
|
988
|
+
}
|
|
989
|
+
interface QueryBuilderClassNames {
|
|
990
|
+
arrowIconButton?: string;
|
|
991
|
+
arrowIcon?: string;
|
|
992
|
+
removeIcon?: string;
|
|
993
|
+
addIcon?: string;
|
|
994
|
+
button?: string;
|
|
995
|
+
buttonGroup?: string;
|
|
996
|
+
removeButton?: string;
|
|
997
|
+
removeButtonSize?: string;
|
|
998
|
+
switchRow?: string;
|
|
999
|
+
switchGroup?: string;
|
|
1000
|
+
switchLabel?: string;
|
|
1001
|
+
switchRadio?: string;
|
|
1002
|
+
switchControl?: string;
|
|
1003
|
+
rightAlign?: string;
|
|
1004
|
+
transition?: string;
|
|
1005
|
+
collapsed?: string;
|
|
1006
|
+
treeContainer?: string;
|
|
1007
|
+
tree?: string;
|
|
1008
|
+
row?: string;
|
|
1009
|
+
connector?: string;
|
|
1010
|
+
rule?: string;
|
|
1011
|
+
ruleSet?: string;
|
|
1012
|
+
invalidRuleSet?: string;
|
|
1013
|
+
emptyWarning?: string;
|
|
1014
|
+
fieldControl?: string;
|
|
1015
|
+
fieldControlSize?: string;
|
|
1016
|
+
entityControl?: string;
|
|
1017
|
+
entityControlSize?: string;
|
|
1018
|
+
operatorControl?: string;
|
|
1019
|
+
operatorControlSize?: string;
|
|
1020
|
+
inputControl?: string;
|
|
1021
|
+
inputControlSize?: string;
|
|
1022
|
+
}
|
|
1023
|
+
interface QueryBuilderConfig$1 {
|
|
1024
|
+
fields: FieldMap$1;
|
|
1025
|
+
entities?: EntityMap$1;
|
|
1026
|
+
allowEmptyRulesets?: boolean;
|
|
1027
|
+
getOperators?: (fieldName: string, field: Field$1) => string[];
|
|
1028
|
+
getInputType?: (field: string, operator: string) => string;
|
|
1029
|
+
getOptions?: (field: string) => Option$1[];
|
|
1030
|
+
addRuleSet?: (parent: RuleSet$1) => void;
|
|
1031
|
+
addRule?: (parent: RuleSet$1) => void;
|
|
1032
|
+
removeRuleSet?: (ruleset: RuleSet$1, parent: RuleSet$1) => void;
|
|
1033
|
+
removeRule?: (rule: Rule$1, parent: RuleSet$1) => void;
|
|
1034
|
+
coerceValueForOperator?: (operator: string, value: any, rule: Rule$1) => any;
|
|
1035
|
+
calculateFieldChangeValue?: (currentField: Field$1, nextField: Field$1, currentValue: any) => any;
|
|
1036
|
+
}
|
|
1037
|
+
interface SwitchGroupContext {
|
|
1038
|
+
onChange: (conditionValue: string) => void;
|
|
1039
|
+
getDisabledState: () => boolean;
|
|
1040
|
+
$implicit: RuleSet$1;
|
|
1041
|
+
}
|
|
1042
|
+
interface EmptyWarningContext {
|
|
1043
|
+
getDisabledState: () => boolean;
|
|
1044
|
+
message: string;
|
|
1045
|
+
$implicit: RuleSet$1;
|
|
1046
|
+
}
|
|
1047
|
+
interface ArrowIconContext {
|
|
1048
|
+
getDisabledState: () => boolean;
|
|
1049
|
+
$implicit: RuleSet$1;
|
|
1050
|
+
}
|
|
1051
|
+
interface EntityContext {
|
|
1052
|
+
onChange: (entityValue: string, rule: Rule$1) => void;
|
|
1053
|
+
getDisabledState: () => boolean;
|
|
1054
|
+
entities: Entity$1[];
|
|
1055
|
+
$implicit: Rule$1;
|
|
1056
|
+
}
|
|
1057
|
+
interface FieldContext {
|
|
1058
|
+
onChange: (fieldValue: string, rule: Rule$1) => void;
|
|
1059
|
+
getFields: (entityName: string) => void;
|
|
1060
|
+
getDisabledState: () => boolean;
|
|
1061
|
+
fields: Field$1[];
|
|
1062
|
+
$implicit: Rule$1;
|
|
1063
|
+
}
|
|
1064
|
+
interface OperatorContext {
|
|
1065
|
+
onChange: () => void;
|
|
1066
|
+
getDisabledState: () => boolean;
|
|
1067
|
+
operators: string[];
|
|
1068
|
+
$implicit: Rule$1;
|
|
1069
|
+
}
|
|
1070
|
+
interface InputContext {
|
|
1071
|
+
onChange: () => void;
|
|
1072
|
+
getDisabledState: () => boolean;
|
|
1073
|
+
options: Option$1[];
|
|
1074
|
+
field: Field$1;
|
|
1075
|
+
$implicit: Rule$1;
|
|
1076
|
+
}
|
|
1077
|
+
interface ButtonGroupContext {
|
|
1078
|
+
addRule: () => void;
|
|
1079
|
+
addRuleSet: () => void;
|
|
1080
|
+
removeRuleSet: () => void;
|
|
1081
|
+
getDisabledState: () => boolean;
|
|
1082
|
+
$implicit: RuleSet$1;
|
|
1083
|
+
}
|
|
1084
|
+
interface RemoveButtonContext {
|
|
1085
|
+
removeRule: (rule: Rule$1) => void;
|
|
1086
|
+
getDisabledState: () => boolean;
|
|
1087
|
+
$implicit: Rule$1;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
type FilterQuerySource = 'init-storage' | 'init-default' | 'user-click';
|
|
1091
|
+
interface QueryResults {
|
|
1092
|
+
type: QueryResultType;
|
|
1093
|
+
basic?: RuleSet$1 | null | undefined;
|
|
1094
|
+
advanced?: RuleSet$1 | null | undefined;
|
|
1095
|
+
grouped: RuleSet$1 | null | undefined;
|
|
1096
|
+
lazyRequest?: LazyElementQueryRequest;
|
|
1097
|
+
options?: {
|
|
1098
|
+
source?: FilterQuerySource;
|
|
1099
|
+
[key: string]: any;
|
|
1100
|
+
};
|
|
1101
|
+
}
|
|
1102
|
+
declare enum QueryResultType {
|
|
1103
|
+
NoFilters = 0,
|
|
1104
|
+
Basic = 1,
|
|
1105
|
+
Advanced = 2,
|
|
1106
|
+
Grouped = 3
|
|
1107
|
+
}
|
|
1108
|
+
|
|
940
1109
|
declare class WTableLazyComponent implements OnInit {
|
|
941
1110
|
private confirmationService;
|
|
942
1111
|
dateConversionService: DateConversionService;
|
|
@@ -1006,6 +1175,7 @@ declare class WTableLazyComponent implements OnInit {
|
|
|
1006
1175
|
calculateColspan(): number;
|
|
1007
1176
|
hasActionButtons(): boolean;
|
|
1008
1177
|
refreshPagination(first: number): void;
|
|
1178
|
+
applyFilterQuery(query: QueryResults): LazyElementQueryRequest;
|
|
1009
1179
|
refreshPaginationAndRows(first: number, rows: number): void;
|
|
1010
1180
|
pageChange(element: any): void;
|
|
1011
1181
|
setStoredTablePagination(tenantId: string, storedQuery: StoreableTablePagination): void;
|
|
@@ -1277,14 +1447,14 @@ interface QbPanelFilter {
|
|
|
1277
1447
|
qbpanelToFields: QbPanelToFields[];
|
|
1278
1448
|
}
|
|
1279
1449
|
|
|
1280
|
-
interface Field
|
|
1450
|
+
interface Field {
|
|
1281
1451
|
id: number;
|
|
1282
1452
|
name: string;
|
|
1283
1453
|
field?: string;
|
|
1284
1454
|
value?: string;
|
|
1285
1455
|
type: string;
|
|
1286
1456
|
nullable?: boolean;
|
|
1287
|
-
options?: Option
|
|
1457
|
+
options?: Option[];
|
|
1288
1458
|
operators?: string[];
|
|
1289
1459
|
defaultValue?: any;
|
|
1290
1460
|
defaultOperator?: any;
|
|
@@ -1292,48 +1462,48 @@ interface Field$1 {
|
|
|
1292
1462
|
entity?: string;
|
|
1293
1463
|
translationsOptions?: any;
|
|
1294
1464
|
extraName?: string;
|
|
1295
|
-
validator?: (rule: Rule
|
|
1465
|
+
validator?: (rule: Rule, parent: RuleSet) => any | null;
|
|
1296
1466
|
}
|
|
1297
|
-
interface Option
|
|
1467
|
+
interface Option {
|
|
1298
1468
|
name: string;
|
|
1299
1469
|
value: any;
|
|
1300
1470
|
}
|
|
1301
|
-
interface Rule
|
|
1471
|
+
interface Rule {
|
|
1302
1472
|
field: string;
|
|
1303
1473
|
value?: any;
|
|
1304
1474
|
operator?: string;
|
|
1305
1475
|
entity?: string;
|
|
1306
1476
|
}
|
|
1307
|
-
interface RuleSet
|
|
1477
|
+
interface RuleSet {
|
|
1308
1478
|
condition: string;
|
|
1309
|
-
rules: Array<RuleSet
|
|
1479
|
+
rules: Array<RuleSet | Rule>;
|
|
1310
1480
|
collapsed?: boolean;
|
|
1311
1481
|
isChild?: boolean;
|
|
1312
1482
|
}
|
|
1313
|
-
interface FieldMap
|
|
1314
|
-
[key: string]: Field
|
|
1483
|
+
interface FieldMap {
|
|
1484
|
+
[key: string]: Field;
|
|
1315
1485
|
}
|
|
1316
|
-
interface EntityMap
|
|
1317
|
-
[key: string]: Entity
|
|
1486
|
+
interface EntityMap {
|
|
1487
|
+
[key: string]: Entity;
|
|
1318
1488
|
}
|
|
1319
|
-
interface Entity
|
|
1489
|
+
interface Entity {
|
|
1320
1490
|
name: string;
|
|
1321
1491
|
value?: string;
|
|
1322
1492
|
defaultField?: any;
|
|
1323
1493
|
}
|
|
1324
|
-
interface QueryBuilderConfig
|
|
1325
|
-
fields: FieldMap
|
|
1326
|
-
entities?: EntityMap
|
|
1494
|
+
interface QueryBuilderConfig {
|
|
1495
|
+
fields: FieldMap;
|
|
1496
|
+
entities?: EntityMap;
|
|
1327
1497
|
allowEmptyRulesets?: boolean;
|
|
1328
|
-
getOperators?: (fieldName: string, field: Field
|
|
1498
|
+
getOperators?: (fieldName: string, field: Field) => string[];
|
|
1329
1499
|
getInputType?: (field: string, operator: string) => string;
|
|
1330
|
-
getOptions?: (field: string) => Option
|
|
1331
|
-
addRuleSet?: (parent: RuleSet
|
|
1332
|
-
addRule?: (parent: RuleSet
|
|
1333
|
-
removeRuleSet?: (ruleset: RuleSet
|
|
1334
|
-
removeRule?: (rule: Rule
|
|
1335
|
-
coerceValueForOperator?: (operator: string, value: any, rule: Rule
|
|
1336
|
-
calculateFieldChangeValue?: (currentField: Field
|
|
1500
|
+
getOptions?: (field: string) => Option[];
|
|
1501
|
+
addRuleSet?: (parent: RuleSet) => void;
|
|
1502
|
+
addRule?: (parent: RuleSet) => void;
|
|
1503
|
+
removeRuleSet?: (ruleset: RuleSet, parent: RuleSet) => void;
|
|
1504
|
+
removeRule?: (rule: Rule, parent: RuleSet) => void;
|
|
1505
|
+
coerceValueForOperator?: (operator: string, value: any, rule: Rule) => any;
|
|
1506
|
+
calculateFieldChangeValue?: (currentField: Field, nextField: Field, currentValue: any) => any;
|
|
1337
1507
|
}
|
|
1338
1508
|
|
|
1339
1509
|
interface FilterPanelTranslations {
|
|
@@ -1385,168 +1555,6 @@ interface NullableOption {
|
|
|
1385
1555
|
isNotNullOption: string;
|
|
1386
1556
|
}
|
|
1387
1557
|
|
|
1388
|
-
interface RuleSet {
|
|
1389
|
-
condition: string;
|
|
1390
|
-
rules: Array<RuleSet | Rule | any>;
|
|
1391
|
-
collapsed?: boolean;
|
|
1392
|
-
isChild?: boolean;
|
|
1393
|
-
}
|
|
1394
|
-
interface Rule {
|
|
1395
|
-
field: string;
|
|
1396
|
-
value?: any;
|
|
1397
|
-
operator?: string;
|
|
1398
|
-
entity?: string;
|
|
1399
|
-
}
|
|
1400
|
-
interface Option {
|
|
1401
|
-
name: string;
|
|
1402
|
-
value: any;
|
|
1403
|
-
}
|
|
1404
|
-
interface FieldMap {
|
|
1405
|
-
[key: string]: Field;
|
|
1406
|
-
}
|
|
1407
|
-
interface Field {
|
|
1408
|
-
id?: number;
|
|
1409
|
-
name: string;
|
|
1410
|
-
value?: string;
|
|
1411
|
-
type: string;
|
|
1412
|
-
nullable?: boolean;
|
|
1413
|
-
options?: Option[];
|
|
1414
|
-
operators?: string[];
|
|
1415
|
-
defaultValue?: any;
|
|
1416
|
-
defaultOperator?: any;
|
|
1417
|
-
entity?: string;
|
|
1418
|
-
validator?: (rule: Rule, parent: RuleSet) => any | null;
|
|
1419
|
-
}
|
|
1420
|
-
interface LocalRuleMeta {
|
|
1421
|
-
ruleset: boolean;
|
|
1422
|
-
invalid: boolean;
|
|
1423
|
-
}
|
|
1424
|
-
interface EntityMap {
|
|
1425
|
-
[key: string]: Entity;
|
|
1426
|
-
}
|
|
1427
|
-
interface Entity {
|
|
1428
|
-
name: string;
|
|
1429
|
-
value?: string;
|
|
1430
|
-
defaultField?: any;
|
|
1431
|
-
}
|
|
1432
|
-
interface QueryBuilderClassNames {
|
|
1433
|
-
arrowIconButton?: string;
|
|
1434
|
-
arrowIcon?: string;
|
|
1435
|
-
removeIcon?: string;
|
|
1436
|
-
addIcon?: string;
|
|
1437
|
-
button?: string;
|
|
1438
|
-
buttonGroup?: string;
|
|
1439
|
-
removeButton?: string;
|
|
1440
|
-
removeButtonSize?: string;
|
|
1441
|
-
switchRow?: string;
|
|
1442
|
-
switchGroup?: string;
|
|
1443
|
-
switchLabel?: string;
|
|
1444
|
-
switchRadio?: string;
|
|
1445
|
-
switchControl?: string;
|
|
1446
|
-
rightAlign?: string;
|
|
1447
|
-
transition?: string;
|
|
1448
|
-
collapsed?: string;
|
|
1449
|
-
treeContainer?: string;
|
|
1450
|
-
tree?: string;
|
|
1451
|
-
row?: string;
|
|
1452
|
-
connector?: string;
|
|
1453
|
-
rule?: string;
|
|
1454
|
-
ruleSet?: string;
|
|
1455
|
-
invalidRuleSet?: string;
|
|
1456
|
-
emptyWarning?: string;
|
|
1457
|
-
fieldControl?: string;
|
|
1458
|
-
fieldControlSize?: string;
|
|
1459
|
-
entityControl?: string;
|
|
1460
|
-
entityControlSize?: string;
|
|
1461
|
-
operatorControl?: string;
|
|
1462
|
-
operatorControlSize?: string;
|
|
1463
|
-
inputControl?: string;
|
|
1464
|
-
inputControlSize?: string;
|
|
1465
|
-
}
|
|
1466
|
-
interface QueryBuilderConfig {
|
|
1467
|
-
fields: FieldMap;
|
|
1468
|
-
entities?: EntityMap;
|
|
1469
|
-
allowEmptyRulesets?: boolean;
|
|
1470
|
-
getOperators?: (fieldName: string, field: Field) => string[];
|
|
1471
|
-
getInputType?: (field: string, operator: string) => string;
|
|
1472
|
-
getOptions?: (field: string) => Option[];
|
|
1473
|
-
addRuleSet?: (parent: RuleSet) => void;
|
|
1474
|
-
addRule?: (parent: RuleSet) => void;
|
|
1475
|
-
removeRuleSet?: (ruleset: RuleSet, parent: RuleSet) => void;
|
|
1476
|
-
removeRule?: (rule: Rule, parent: RuleSet) => void;
|
|
1477
|
-
coerceValueForOperator?: (operator: string, value: any, rule: Rule) => any;
|
|
1478
|
-
calculateFieldChangeValue?: (currentField: Field, nextField: Field, currentValue: any) => any;
|
|
1479
|
-
}
|
|
1480
|
-
interface SwitchGroupContext {
|
|
1481
|
-
onChange: (conditionValue: string) => void;
|
|
1482
|
-
getDisabledState: () => boolean;
|
|
1483
|
-
$implicit: RuleSet;
|
|
1484
|
-
}
|
|
1485
|
-
interface EmptyWarningContext {
|
|
1486
|
-
getDisabledState: () => boolean;
|
|
1487
|
-
message: string;
|
|
1488
|
-
$implicit: RuleSet;
|
|
1489
|
-
}
|
|
1490
|
-
interface ArrowIconContext {
|
|
1491
|
-
getDisabledState: () => boolean;
|
|
1492
|
-
$implicit: RuleSet;
|
|
1493
|
-
}
|
|
1494
|
-
interface EntityContext {
|
|
1495
|
-
onChange: (entityValue: string, rule: Rule) => void;
|
|
1496
|
-
getDisabledState: () => boolean;
|
|
1497
|
-
entities: Entity[];
|
|
1498
|
-
$implicit: Rule;
|
|
1499
|
-
}
|
|
1500
|
-
interface FieldContext {
|
|
1501
|
-
onChange: (fieldValue: string, rule: Rule) => void;
|
|
1502
|
-
getFields: (entityName: string) => void;
|
|
1503
|
-
getDisabledState: () => boolean;
|
|
1504
|
-
fields: Field[];
|
|
1505
|
-
$implicit: Rule;
|
|
1506
|
-
}
|
|
1507
|
-
interface OperatorContext {
|
|
1508
|
-
onChange: () => void;
|
|
1509
|
-
getDisabledState: () => boolean;
|
|
1510
|
-
operators: string[];
|
|
1511
|
-
$implicit: Rule;
|
|
1512
|
-
}
|
|
1513
|
-
interface InputContext {
|
|
1514
|
-
onChange: () => void;
|
|
1515
|
-
getDisabledState: () => boolean;
|
|
1516
|
-
options: Option[];
|
|
1517
|
-
field: Field;
|
|
1518
|
-
$implicit: Rule;
|
|
1519
|
-
}
|
|
1520
|
-
interface ButtonGroupContext {
|
|
1521
|
-
addRule: () => void;
|
|
1522
|
-
addRuleSet: () => void;
|
|
1523
|
-
removeRuleSet: () => void;
|
|
1524
|
-
getDisabledState: () => boolean;
|
|
1525
|
-
$implicit: RuleSet;
|
|
1526
|
-
}
|
|
1527
|
-
interface RemoveButtonContext {
|
|
1528
|
-
removeRule: (rule: Rule) => void;
|
|
1529
|
-
getDisabledState: () => boolean;
|
|
1530
|
-
$implicit: Rule;
|
|
1531
|
-
}
|
|
1532
|
-
|
|
1533
|
-
interface QueryResults {
|
|
1534
|
-
type: QueryResultType;
|
|
1535
|
-
basic?: RuleSet | null | undefined;
|
|
1536
|
-
advanced?: RuleSet | null | undefined;
|
|
1537
|
-
grouped: RuleSet | null | undefined;
|
|
1538
|
-
lazyRequest?: LazyElementQueryRequest;
|
|
1539
|
-
options?: {
|
|
1540
|
-
[key: string]: any;
|
|
1541
|
-
};
|
|
1542
|
-
}
|
|
1543
|
-
declare enum QueryResultType {
|
|
1544
|
-
NoFilters = 0,
|
|
1545
|
-
Basic = 1,
|
|
1546
|
-
Advanced = 2,
|
|
1547
|
-
Grouped = 3
|
|
1548
|
-
}
|
|
1549
|
-
|
|
1550
1558
|
interface GMCountry {
|
|
1551
1559
|
gmCountryId: number;
|
|
1552
1560
|
name: string;
|
|
@@ -1745,15 +1753,15 @@ declare const CONTROL_VALUE_ACCESSOR: any;
|
|
|
1745
1753
|
declare const VALIDATOR: any;
|
|
1746
1754
|
declare class QueryBuilderComponent implements OnInit, OnChanges, ControlValueAccessor, Validator {
|
|
1747
1755
|
private changeDetectorRef;
|
|
1748
|
-
fields: Field[];
|
|
1749
|
-
filterFields: Field[];
|
|
1750
|
-
entities: Entity[] | null;
|
|
1756
|
+
fields: Field$1[];
|
|
1757
|
+
filterFields: Field$1[];
|
|
1758
|
+
entities: Entity$1[] | null;
|
|
1751
1759
|
defaultClassNames: QueryBuilderClassNames;
|
|
1752
1760
|
defaultOperatorMap: {
|
|
1753
1761
|
[key: string]: string[];
|
|
1754
1762
|
};
|
|
1755
1763
|
disabled: boolean;
|
|
1756
|
-
data: RuleSet;
|
|
1764
|
+
data: RuleSet$1;
|
|
1757
1765
|
onChangeCallback: () => void;
|
|
1758
1766
|
onTouchedCallback: () => any;
|
|
1759
1767
|
allowRuleset: boolean;
|
|
@@ -1763,8 +1771,8 @@ declare class QueryBuilderComponent implements OnInit, OnChanges, ControlValueAc
|
|
|
1763
1771
|
operatorMap: {
|
|
1764
1772
|
[key: string]: string[];
|
|
1765
1773
|
};
|
|
1766
|
-
parentValue: RuleSet;
|
|
1767
|
-
config: QueryBuilderConfig;
|
|
1774
|
+
parentValue: RuleSet$1;
|
|
1775
|
+
config: QueryBuilderConfig$1;
|
|
1768
1776
|
parentArrowIconTemplate: QueryArrowIconDirective;
|
|
1769
1777
|
parentInputTemplates: QueryList<QueryInputDirective>;
|
|
1770
1778
|
parentOperatorTemplate: QueryOperatorDirective;
|
|
@@ -1801,8 +1809,8 @@ declare class QueryBuilderComponent implements OnInit, OnChanges, ControlValueAc
|
|
|
1801
1809
|
ngOnInit(): void;
|
|
1802
1810
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1803
1811
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
1804
|
-
get value(): RuleSet;
|
|
1805
|
-
set value(value: RuleSet);
|
|
1812
|
+
get value(): RuleSet$1;
|
|
1813
|
+
set value(value: RuleSet$1);
|
|
1806
1814
|
writeValue(obj: any): void;
|
|
1807
1815
|
registerOnChange(fn: any): void;
|
|
1808
1816
|
registerOnTouched(fn: any): void;
|
|
@@ -1811,25 +1819,25 @@ declare class QueryBuilderComponent implements OnInit, OnChanges, ControlValueAc
|
|
|
1811
1819
|
findTemplateForRule(rule: any): any;
|
|
1812
1820
|
findQueryInput(type: string): any;
|
|
1813
1821
|
getOperators(field: string): string[];
|
|
1814
|
-
getFields(entity: string): Field[];
|
|
1822
|
+
getFields(entity: string): Field$1[];
|
|
1815
1823
|
getInputType(field: string, operator: string): string | null;
|
|
1816
|
-
getOptions(field: string): Option[];
|
|
1824
|
+
getOptions(field: string): Option$1[];
|
|
1817
1825
|
getClassNames(...args: any): string | null;
|
|
1818
|
-
getDefaultField(entity: Entity): Field | null;
|
|
1819
|
-
getDefaultOperator(field: Field): string | null;
|
|
1820
|
-
addRule(parent?: RuleSet): void;
|
|
1821
|
-
removeRule(rule: any, parent?: RuleSet): void;
|
|
1822
|
-
addRuleSet(parent?: RuleSet): void;
|
|
1823
|
-
removeRuleSet(ruleset?: RuleSet, parent?: RuleSet): void;
|
|
1826
|
+
getDefaultField(entity: Entity$1): Field$1 | null;
|
|
1827
|
+
getDefaultOperator(field: Field$1): string | null;
|
|
1828
|
+
addRule(parent?: RuleSet$1): void;
|
|
1829
|
+
removeRule(rule: any, parent?: RuleSet$1): void;
|
|
1830
|
+
addRuleSet(parent?: RuleSet$1): void;
|
|
1831
|
+
removeRuleSet(ruleset?: RuleSet$1, parent?: RuleSet$1): void;
|
|
1824
1832
|
transitionEnd(e: Event): void;
|
|
1825
1833
|
toggleCollapse(): void;
|
|
1826
1834
|
computedTreeContainerHeight(): void;
|
|
1827
1835
|
changeCondition(value: string): void;
|
|
1828
|
-
changeOperator(rule: Rule): void;
|
|
1829
|
-
coerceValueForOperator(operator: string, value: any, rule: Rule): any;
|
|
1836
|
+
changeOperator(rule: Rule$1): void;
|
|
1837
|
+
coerceValueForOperator(operator: string, value: any, rule: Rule$1): any;
|
|
1830
1838
|
changeInput(): void;
|
|
1831
|
-
changeField(fieldValue: string, rule: Rule): void;
|
|
1832
|
-
changeEntity(entityValue: string, rule: Rule, index: number, data: RuleSet): void;
|
|
1839
|
+
changeField(fieldValue: string, rule: Rule$1): void;
|
|
1840
|
+
changeEntity(entityValue: string, rule: Rule$1, index: number, data: RuleSet$1): void;
|
|
1833
1841
|
getDefaultValue(defaultValue: any): any;
|
|
1834
1842
|
getOperatorTemplate(): TemplateRef<any> | null;
|
|
1835
1843
|
getFieldTemplate(): TemplateRef<any> | null;
|
|
@@ -1847,7 +1855,7 @@ declare class QueryBuilderComponent implements OnInit, OnChanges, ControlValueAc
|
|
|
1847
1855
|
getSwitchGroupContext(): SwitchGroupContext;
|
|
1848
1856
|
getArrowIconContext(): ArrowIconContext;
|
|
1849
1857
|
getEmptyWarningContext(): EmptyWarningContext;
|
|
1850
|
-
getOperatorContext(rule: Rule): OperatorContext;
|
|
1858
|
+
getOperatorContext(rule: Rule$1): OperatorContext;
|
|
1851
1859
|
getInputContext(rule: any): InputContext;
|
|
1852
1860
|
private calculateFieldChangeValue;
|
|
1853
1861
|
private checkEmptyRuleInRuleset;
|
|
@@ -1877,7 +1885,7 @@ declare class WFilterPanelComponent implements OnInit {
|
|
|
1877
1885
|
groupedQuery: any;
|
|
1878
1886
|
advancedQuery: any;
|
|
1879
1887
|
filterPanelObject: QbPanelFilter;
|
|
1880
|
-
entityConfigGrouped: QueryBuilderConfig
|
|
1888
|
+
entityConfigGrouped: QueryBuilderConfig;
|
|
1881
1889
|
entities: any[];
|
|
1882
1890
|
defaultValues: any[];
|
|
1883
1891
|
defaultOperators: any[];
|
|
@@ -1928,13 +1936,13 @@ declare class WFilterPanelComponent implements OnInit {
|
|
|
1928
1936
|
private normalizeQueryForEmit;
|
|
1929
1937
|
ngOnInit(): void;
|
|
1930
1938
|
initQueryBuilderControls(): void;
|
|
1931
|
-
nullableSelectPlaceholder(rule: Rule
|
|
1939
|
+
nullableSelectPlaceholder(rule: Rule, options: NullableSelectOption[]): string;
|
|
1932
1940
|
setEmtpyArraysToNull(query: any): void;
|
|
1933
1941
|
updateSearchType(): void;
|
|
1934
1942
|
updateNullableElements(elements: {
|
|
1935
1943
|
[key: string]: any;
|
|
1936
1944
|
}): void;
|
|
1937
|
-
onSearchClicked(source?:
|
|
1945
|
+
onSearchClicked(source?: FilterQuerySource, preBuiltQuery?: QueryResults): void;
|
|
1938
1946
|
setNoFiltersQueryType(queries: any): Promise<unknown>;
|
|
1939
1947
|
onClearClicked(): void;
|
|
1940
1948
|
clearPeriodSelectComponent(): void;
|
|
@@ -1951,9 +1959,9 @@ declare class WFilterPanelComponent implements OnInit {
|
|
|
1951
1959
|
setEntity(queries: QueryResults): void;
|
|
1952
1960
|
getQueryBuilderFilterPanel(): void;
|
|
1953
1961
|
defaultValueAdapter(value: any): any;
|
|
1954
|
-
initQueryBuilder(filterEntities: QbFilterEntity[], isBasic: boolean): QueryBuilderConfig
|
|
1962
|
+
initQueryBuilder(filterEntities: QbFilterEntity[], isBasic: boolean): QueryBuilderConfig;
|
|
1955
1963
|
filterFieldsById(fieldsObj: any, idArray: number[]): any;
|
|
1956
|
-
translateFields(fields: FieldMap
|
|
1964
|
+
translateFields(fields: FieldMap): FieldMap;
|
|
1957
1965
|
moveElementToFirstPlace(array: any[], elementToFirstPlace: string): any[];
|
|
1958
1966
|
formatDefaultValue(value: any, type: QBDataTypeEnum): any;
|
|
1959
1967
|
parseStringToNumberArray(input: string): number[];
|
|
@@ -1961,7 +1969,7 @@ declare class WFilterPanelComponent implements OnInit {
|
|
|
1961
1969
|
deleteFieldsWithoutValue(json: any): any;
|
|
1962
1970
|
initializeOperators(json: any): any;
|
|
1963
1971
|
resetBasicQueryValues(): void;
|
|
1964
|
-
getQueryFieldName(fieldName: string, fields: FieldMap
|
|
1972
|
+
getQueryFieldName(fieldName: string, fields: FieldMap): string;
|
|
1965
1973
|
getNullableSelectOptions(options: NullableSelectOption[]): {
|
|
1966
1974
|
name: string;
|
|
1967
1975
|
value: number;
|
|
@@ -1974,8 +1982,8 @@ declare class WFilterPanelComponent implements OnInit {
|
|
|
1974
1982
|
name: any;
|
|
1975
1983
|
value: number;
|
|
1976
1984
|
}[];
|
|
1977
|
-
fieldIsBoolean(fieldName: string, fields: FieldMap
|
|
1978
|
-
isMultiselect(rule: Rule
|
|
1985
|
+
fieldIsBoolean(fieldName: string, fields: FieldMap): boolean;
|
|
1986
|
+
isMultiselect(rule: Rule): boolean;
|
|
1979
1987
|
isToKeepLocalDate(field: string): boolean;
|
|
1980
1988
|
disableFilterButton(): boolean;
|
|
1981
1989
|
static ɵfac: i0.ɵɵFactoryDeclaration<WFilterPanelComponent, never>;
|
|
@@ -2402,6 +2410,8 @@ declare class WTreeTableComponent implements OnInit, OnChanges {
|
|
|
2402
2410
|
first: number;
|
|
2403
2411
|
sortField?: string;
|
|
2404
2412
|
sortOrder: number;
|
|
2413
|
+
searchInput: string;
|
|
2414
|
+
private restoringSearchFirst?;
|
|
2405
2415
|
private initialPaginationApplied;
|
|
2406
2416
|
private _totalRecords;
|
|
2407
2417
|
set totalRecords(value: number);
|
|
@@ -2420,11 +2430,13 @@ declare class WTreeTableComponent implements OnInit, OnChanges {
|
|
|
2420
2430
|
onDeleteElementSelect: EventEmitter<any>;
|
|
2421
2431
|
onCantDeleteElementWarn: EventEmitter<boolean>;
|
|
2422
2432
|
treeTable: TreeTable;
|
|
2433
|
+
set tableComponent(table: TreeTable | undefined);
|
|
2423
2434
|
constructor(confirmationService: ConfirmationService, dateConversionService: DateConversionService, sessionStorage: SessionStorageService, localStorage: LocalStorageService);
|
|
2424
2435
|
ngOnChanges(changes: SimpleChanges): void;
|
|
2425
2436
|
ngOnInit(): void;
|
|
2426
2437
|
initComponent(): void;
|
|
2427
|
-
filterGlobal(table: TreeTable, event:
|
|
2438
|
+
filterGlobal(table: TreeTable, event: Event): void;
|
|
2439
|
+
onFilter(table: TreeTable): void;
|
|
2428
2440
|
actionButtonClicked(id: number, element: any): void;
|
|
2429
2441
|
confirmDeleteSelected(event: any, data: any): void;
|
|
2430
2442
|
deleteNode(node: any): void;
|
|
@@ -4480,4 +4492,4 @@ interface WappTableActionButtonResponse {
|
|
|
4480
4492
|
}
|
|
4481
4493
|
|
|
4482
4494
|
export { AddressEnum, CONTROL_VALUE_ACCESSOR, CardStatus, CarouselComponent, ClipboardService, ColorService, ColorTextPipe, CronCharactersType, CronFieldType, CronPeriodicityType, CustomColor, DataTypeEnum, DateConversionService, FileService, FormControlService, MainTitleComponent, ModalService, NotificationsEventEnum, NumberConversionService, OperatorEnum, PeriodSelectEnum, QBDataTypeEnum, QueryArrowIconDirective, QueryBuilderComponent, QueryButtonGroupDirective, QueryEmptyWarningDirective, QueryEntityDirective, QueryFieldDirective, QueryInputDirective, QueryOperatorDirective, QueryRemoveButtonDirective, QueryResultType, QuerySwitchGroupDirective, SendingStatus, SessionStorageService, TableColumnFilterTypes, TableColumnTypes, TreeService, TypeMedia, VALIDATOR, WAddressFieldComponent, WAnimationComponent, WAutocompleteSearchComponent, WBadgeComponent, WBodyComponent, WBodyContainerComponent, WBodyGridComponent, WButtonComponent, WButtonTabviewComponent, WButtonWeekComponent, WButtonsFooterComponent, WCardComponent, WChartBarComponent, WChipComponent, WClipboardComponent, WCodeBlockComponent, WContainerComponent, WCronExpressionsComponent, WCurrencyPipe, WDataviewComponent, WDatePipe, WDatePipeFormatType, WDatePipeReturnType, WEditCalendarComponent, WEditCalendarMonthComponent, WEditCheckboxComponent, WEditInputColorpickerComponent, WEditInputNumberComponent, WEditInputTextComponent, WEditInputTextareaComponent, WEditInputgroupComponent, WEditMultiselectComponent, WEditSelectComponent, WEditToggleComponent, WEditTreeselectComponent, WFileGeneratorComponent, WFileUploaderComponent, WFilterPanelComponent, WFooterComponent, WHeaderPanelComponent, WIconsComponent, WImageCropperComponent, WImageFileUploaderComponent, WInputLabelComponent, WInputSearchComponent, WInputVerticalGapDividerComponent, WLogosComponent, WMapsComponent, WMaterialServiceCardComponent, WMaterialServiceViewComponent, WNavbarComponent, WNotificationsEventFieldComponent, WPanelComponent, WPanelGridComponent, WPanelSectionGapDividerComponent, WPanelSubtitleComponent, WPanelTitleComponent, WParameterSelectorComponent, WPasswordComponent, WPercentagePipe, WPeriodSelectFieldComponent, WPowerbiReportComponent, WPreviewImageComponent, WRadioButtonComponent, WSelectButtonComponent, WSidebarComponent, WSkeletonEditComponent, WSkeletonEditProductComponent, WSkeletonFormComponent, WSkeletonGenericComponent, WSkeletonIframeComponent, WSkeletonInputGenericComponent, WSkeletonListComponent, WSkeletonPowerbiReportComponent, WSkeletonProfileSidebarComponent, WSkeletonQueryBuilderComponent, WSkeletonSidebarComponent, WSkeletonTimelineComponent, WSkeletonTreeComponent, WSkeletonUserProfileInfoSidebarComponent, WStampBookletComponent, WSummaryPipe, WTableComponent, WTableLazyComponent, WTabviewComponent, WTimelineComponent, WToggleButtonComponent, WTreeComponent, WTreeFieldComponent, WTreeTableComponent, WViewBadgeComponent, WViewBooleanComponent, WViewTextComponent, WWizardComponent, WappComponentsComponent, WappComponentsModule, WappComponentsService, WappMaterialServiceCardComponent, WappMaterialServiceViewComponent, WappModalCloseButtonComponent, WappModalTitleComponent, WappServiceDescriptionComponent, WappTableColumnAlignTypes, WappingServiceAppViewType, WappingServiceSubtype, WappingServiceType };
|
|
4483
|
-
export type { ActionButton$1 as ActionButton, ActionButtonResponse$1 as ActionButtonResponse, ArrowIconContext, ButtonGroupContext, ChartConfig, CronComponentTranslations, DirectLotteryParticipationsDto, EmbedConfig, EmptyWarningContext, Entity, EntityContext, EntityMap, Field, FieldContext, FieldMap, Filter, FilterPanelTranslations, ImageB64, InputContext, LazyElementQueryRequest, LocalRuleMeta, LotteryEventNextDrawDto, LotteryEventPreviousDrawsDto, ModalSize$1 as ModalSize, NullableOption, OperatorContext, Option, ParameterSelector, PlatformEventsGroups, QueryBuilderClassNames, QueryBuilderConfig, QueryResults, RemoveButtonContext, Rule, RuleSet, StampBookletConfig, SwitchGroupContext, TableColoredBadge, TableEnumIcon, WAddress, WAddressMaps, WFileAttachment, WFileB64, WFileUploaderConfig, WFileUploaderDataSheetResponse, WImageCropperData, WImageFileUploaderConfig, WSelectButtonState, WTreeTable, WTreeTableColumn, WalletLotteryParticipationsResponse, WappTable, WappTableActionButtonResponse, WappTableLazyLoading, WappTableLazyTooltips, WappTableTooltips, WappingService, WappingServiceItemView };
|
|
4495
|
+
export type { ActionButton$1 as ActionButton, ActionButtonResponse$1 as ActionButtonResponse, ArrowIconContext, ButtonGroupContext, ChartConfig, CronComponentTranslations, DirectLotteryParticipationsDto, EmbedConfig, EmptyWarningContext, Entity$1 as Entity, EntityContext, EntityMap$1 as EntityMap, Field$1 as Field, FieldContext, FieldMap$1 as FieldMap, Filter, FilterPanelTranslations, FilterQuerySource, ImageB64, InputContext, LazyElementQueryRequest, LocalRuleMeta, LotteryEventNextDrawDto, LotteryEventPreviousDrawsDto, ModalSize$1 as ModalSize, NullableOption, OperatorContext, Option$1 as Option, ParameterSelector, PlatformEventsGroups, QueryBuilderClassNames, QueryBuilderConfig$1 as QueryBuilderConfig, QueryResults, RemoveButtonContext, Rule$1 as Rule, RuleSet$1 as RuleSet, StampBookletConfig, SwitchGroupContext, TableColoredBadge, TableEnumIcon, WAddress, WAddressMaps, WFileAttachment, WFileB64, WFileUploaderConfig, WFileUploaderDataSheetResponse, WImageCropperData, WImageFileUploaderConfig, WSelectButtonState, WTreeTable, WTreeTableColumn, WalletLotteryParticipationsResponse, WappTable, WappTableActionButtonResponse, WappTableLazyLoading, WappTableLazyTooltips, WappTableTooltips, WappingService, WappingServiceItemView };
|