ngx-wapp-components 3.4.2 → 3.5.1
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.
|
@@ -790,14 +790,79 @@ declare class DateConversionService {
|
|
|
790
790
|
static ɵprov: i0.ɵɵInjectableDeclaration<DateConversionService>;
|
|
791
791
|
}
|
|
792
792
|
|
|
793
|
+
interface StoredFilterPanelQuery {
|
|
794
|
+
id: string;
|
|
795
|
+
basicQueryValue?: any;
|
|
796
|
+
advancedQueryValue?: any;
|
|
797
|
+
groupedQueryValue?: any;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
interface ComponentsTenantStorage {
|
|
801
|
+
[key: string]: StoredFilterPanelQuery | null;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
interface StoreableTablePagination {
|
|
805
|
+
id: string;
|
|
806
|
+
query: {
|
|
807
|
+
first: number;
|
|
808
|
+
rows: number;
|
|
809
|
+
sortField?: string;
|
|
810
|
+
sortOrder?: number;
|
|
811
|
+
searchInput?: string;
|
|
812
|
+
};
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
interface TenantStoragePagination {
|
|
816
|
+
[key: string]: StoreableTablePagination | null;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
declare class SessionStorageService {
|
|
820
|
+
private businessData;
|
|
821
|
+
constructor();
|
|
822
|
+
setComponentsTenantStorage(tenantId: string, tenantStorage: ComponentsTenantStorage): void;
|
|
823
|
+
getComponentsTenantStorage(tenantId: string): ComponentsTenantStorage;
|
|
824
|
+
setLastFilterPanelQuery(tenantId: string, storedQuery: StoredFilterPanelQuery | null): void;
|
|
825
|
+
setFilterPanelValue(tenantId: string, filterId: string, queryValue: StoredFilterPanelQuery | null): void;
|
|
826
|
+
getAllLastFilterPanelQueries(tenantId: string): ComponentsTenantStorage;
|
|
827
|
+
getLastFilterPanelQuery(tenantId: string, filterId: string): StoredFilterPanelQuery;
|
|
828
|
+
removeLastFilterPanelQuery(tenantId: string, filterId: string): void;
|
|
829
|
+
getBusinessData(): any;
|
|
830
|
+
setTablePaginationQuery(tenantId: string, storeablePagination: StoreableTablePagination | null): void;
|
|
831
|
+
getStoredPagination(tenantId: string, filterId: string): StoreableTablePagination;
|
|
832
|
+
getTenantStoragePaginators(tenantId: string): TenantStoragePagination;
|
|
833
|
+
setTenantPeriodSelectType(tenantId: string, periodSelectName: string, periodSelectType: PeriodSelectEnum): void;
|
|
834
|
+
getTenantPeriodSelectType(tenantId: string, periodSelectName: string): StoreableTablePagination;
|
|
835
|
+
removeTenantPeriodSelectType(tenantId: string, periodSelectName: string): void;
|
|
836
|
+
setTokens(internalApiToken: string, authApiToken: string): void;
|
|
837
|
+
getTokens(): any;
|
|
838
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SessionStorageService, never>;
|
|
839
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SessionStorageService>;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
declare class LocalStorageService {
|
|
843
|
+
private tenant;
|
|
844
|
+
constructor();
|
|
845
|
+
getTenant(): any;
|
|
846
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageService, never>;
|
|
847
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LocalStorageService>;
|
|
848
|
+
}
|
|
849
|
+
|
|
793
850
|
declare class WTableComponent implements OnInit, OnChanges {
|
|
794
851
|
private confirmationService;
|
|
795
852
|
dateConversionService: DateConversionService;
|
|
853
|
+
private sessionStorage;
|
|
854
|
+
private localStorage;
|
|
796
855
|
translations: any;
|
|
797
856
|
translateObjectName: string;
|
|
798
857
|
selectAll: boolean;
|
|
799
858
|
tableMinWidth: number;
|
|
800
859
|
tableSkeletons: any;
|
|
860
|
+
first: number;
|
|
861
|
+
sortField?: string;
|
|
862
|
+
sortOrder: number;
|
|
863
|
+
searchInput: string;
|
|
864
|
+
private restoringSearchFirst?;
|
|
865
|
+
private initialPaginationApplied;
|
|
801
866
|
private _totalRecords;
|
|
802
867
|
set totalRecords(value: number);
|
|
803
868
|
get totalRecords(): number;
|
|
@@ -807,6 +872,8 @@ declare class WTableComponent implements OnInit, OnChanges {
|
|
|
807
872
|
selectedElements: any[];
|
|
808
873
|
wappTableObject: WappTable;
|
|
809
874
|
rowsPerPage: number;
|
|
875
|
+
initialPage: number;
|
|
876
|
+
paginationId?: string;
|
|
810
877
|
originalRowsPerPage: number;
|
|
811
878
|
singleRowSelection: boolean;
|
|
812
879
|
onElementSelect: EventEmitter<any>;
|
|
@@ -821,7 +888,8 @@ declare class WTableComponent implements OnInit, OnChanges {
|
|
|
821
888
|
onSecondaryCheckboxChange: EventEmitter<any>;
|
|
822
889
|
filter: ElementRef;
|
|
823
890
|
dataTable: Table;
|
|
824
|
-
|
|
891
|
+
set tableComponent(table: Table | undefined);
|
|
892
|
+
constructor(confirmationService: ConfirmationService, dateConversionService: DateConversionService, sessionStorage: SessionStorageService, localStorage: LocalStorageService);
|
|
825
893
|
ngOnInit(): void;
|
|
826
894
|
ngOnChanges(changes: SimpleChanges): void;
|
|
827
895
|
create(): void;
|
|
@@ -842,6 +910,7 @@ declare class WTableComponent implements OnInit, OnChanges {
|
|
|
842
910
|
updateSelectedFilteredItems(items: any[]): void;
|
|
843
911
|
onSecondaryCheckboxChanges(element: any): void;
|
|
844
912
|
onGlobalFilter(table: Table, event: Event): void;
|
|
913
|
+
onFilter(table: Table): void;
|
|
845
914
|
clear(table: Table): void;
|
|
846
915
|
get tableColumnFilterTypes(): typeof TableColumnFilterTypes;
|
|
847
916
|
get tableColumnTypes(): typeof TableColumnTypes;
|
|
@@ -852,10 +921,11 @@ declare class WTableComponent implements OnInit, OnChanges {
|
|
|
852
921
|
calculateColspan(): number;
|
|
853
922
|
hasActionButtons(): boolean;
|
|
854
923
|
pageChange(element: any): void;
|
|
924
|
+
savePagination(): void;
|
|
855
925
|
getButtonCustomColorClass(customColor: CustomColor): "" | "darkBlue1" | "darkBlue2" | "darkBlue3" | "purple1" | "purple2" | "purple3" | "pink1" | "pink2" | "pink3" | "green1" | "green2" | "green3" | "error1" | "error2";
|
|
856
926
|
isElementSelected(id: number): boolean;
|
|
857
927
|
static ɵfac: i0.ɵɵFactoryDeclaration<WTableComponent, never>;
|
|
858
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WTableComponent, "w-table", never, { "loading": { "alias": "loading"; "required": false; }; "elements": { "alias": "elements"; "required": false; }; "selectedElements": { "alias": "selectedElements"; "required": false; }; "wappTableObject": { "alias": "wappTableObject"; "required": false; }; "rowsPerPage": { "alias": "rowsPerPage"; "required": false; }; "singleRowSelection": { "alias": "singleRowSelection"; "required": false; }; }, { "onElementSelect": "onElementSelect"; "onViewElementSelect": "onViewElementSelect"; "onCopyElementSelect": "onCopyElementSelect"; "onEditElementSelect": "onEditElementSelect"; "onCustomElementSelect": "onCustomElementSelect"; "onDeleteElementSelect": "onDeleteElementSelect"; "onNewElementSelect": "onNewElementSelect"; "onPageChange": "onPageChange"; "onSelectedElementsChange": "onSelectedElementsChange"; "onSecondaryCheckboxChange": "onSecondaryCheckboxChange"; }, never, [".filter-panel"], false, never>;
|
|
928
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WTableComponent, "w-table", never, { "loading": { "alias": "loading"; "required": false; }; "elements": { "alias": "elements"; "required": false; }; "selectedElements": { "alias": "selectedElements"; "required": false; }; "wappTableObject": { "alias": "wappTableObject"; "required": false; }; "rowsPerPage": { "alias": "rowsPerPage"; "required": false; }; "initialPage": { "alias": "initialPage"; "required": false; }; "paginationId": { "alias": "paginationId"; "required": false; }; "singleRowSelection": { "alias": "singleRowSelection"; "required": false; }; }, { "onElementSelect": "onElementSelect"; "onViewElementSelect": "onViewElementSelect"; "onCopyElementSelect": "onCopyElementSelect"; "onEditElementSelect": "onEditElementSelect"; "onCustomElementSelect": "onCustomElementSelect"; "onDeleteElementSelect": "onDeleteElementSelect"; "onNewElementSelect": "onNewElementSelect"; "onPageChange": "onPageChange"; "onSelectedElementsChange": "onSelectedElementsChange"; "onSecondaryCheckboxChange": "onSecondaryCheckboxChange"; }, never, [".filter-panel"], false, never>;
|
|
859
929
|
}
|
|
860
930
|
|
|
861
931
|
interface Filter {
|
|
@@ -872,76 +942,189 @@ interface LazyElementQueryRequest {
|
|
|
872
942
|
filters: Filter[];
|
|
873
943
|
}
|
|
874
944
|
|
|
875
|
-
interface
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
};
|
|
945
|
+
interface RuleSet$1 {
|
|
946
|
+
condition: string;
|
|
947
|
+
rules: Array<RuleSet$1 | Rule$1 | any>;
|
|
948
|
+
collapsed?: boolean;
|
|
949
|
+
isChild?: boolean;
|
|
881
950
|
}
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
groupedQueryValue?: any;
|
|
951
|
+
interface Rule$1 {
|
|
952
|
+
field: string;
|
|
953
|
+
value?: any;
|
|
954
|
+
operator?: string;
|
|
955
|
+
entity?: string;
|
|
888
956
|
}
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
957
|
+
interface Option$1 {
|
|
958
|
+
name: string;
|
|
959
|
+
value: any;
|
|
892
960
|
}
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
[key: string]: StoreableTablePagination | null;
|
|
961
|
+
interface FieldMap$1 {
|
|
962
|
+
[key: string]: Field$1;
|
|
896
963
|
}
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
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;
|
|
919
1088
|
}
|
|
920
1089
|
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
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
|
|
927
1107
|
}
|
|
928
1108
|
|
|
929
1109
|
declare class WTableLazyComponent implements OnInit {
|
|
930
1110
|
private confirmationService;
|
|
931
1111
|
dateConversionService: DateConversionService;
|
|
932
|
-
private elementRef;
|
|
933
1112
|
private sessionStorage;
|
|
934
1113
|
private localStorage;
|
|
935
|
-
domComponentId: string;
|
|
936
1114
|
translations: any;
|
|
937
1115
|
lastQuery: LazyElementQueryRequest;
|
|
938
1116
|
selectAll: boolean;
|
|
939
1117
|
filterElementsIndex: number;
|
|
1118
|
+
first: number;
|
|
1119
|
+
sortField?: string;
|
|
1120
|
+
sortOrder: number;
|
|
940
1121
|
wappDateFormat: typeof WDatePipeFormatType;
|
|
941
1122
|
loading: boolean;
|
|
942
1123
|
elements: any[];
|
|
943
1124
|
selectedElements: any[];
|
|
944
1125
|
rowsPerPage: number;
|
|
1126
|
+
initialPage: number;
|
|
1127
|
+
paginationId?: string;
|
|
945
1128
|
allElements: any[];
|
|
946
1129
|
totalRecords: number;
|
|
947
1130
|
maxRowsPerPage: number;
|
|
@@ -949,6 +1132,7 @@ declare class WTableLazyComponent implements OnInit {
|
|
|
949
1132
|
private _wappTableLazyLoadingObject;
|
|
950
1133
|
set wappTableLazyLoadingObject(value: WappTableLazyLoading);
|
|
951
1134
|
get wappTableLazyLoadingObject(): WappTableLazyLoading;
|
|
1135
|
+
private get paginationStorageId();
|
|
952
1136
|
queryElements: EventEmitter<LazyElementQueryRequest>;
|
|
953
1137
|
onElementSelect: EventEmitter<any>;
|
|
954
1138
|
onViewElementSelect: EventEmitter<any>;
|
|
@@ -961,7 +1145,7 @@ declare class WTableLazyComponent implements OnInit {
|
|
|
961
1145
|
onSelectedElementsChange: EventEmitter<any>;
|
|
962
1146
|
onSecondaryCheckboxChange: EventEmitter<any>;
|
|
963
1147
|
dataTable: Table;
|
|
964
|
-
constructor(confirmationService: ConfirmationService, dateConversionService: DateConversionService,
|
|
1148
|
+
constructor(confirmationService: ConfirmationService, dateConversionService: DateConversionService, sessionStorage: SessionStorageService, localStorage: LocalStorageService);
|
|
965
1149
|
ngOnInit(): void;
|
|
966
1150
|
syncInitialSelection(): void;
|
|
967
1151
|
loadElements(event: TableLazyLoadEvent): void;
|
|
@@ -991,6 +1175,7 @@ declare class WTableLazyComponent implements OnInit {
|
|
|
991
1175
|
calculateColspan(): number;
|
|
992
1176
|
hasActionButtons(): boolean;
|
|
993
1177
|
refreshPagination(first: number): void;
|
|
1178
|
+
applyFilterQuery(query: QueryResults): LazyElementQueryRequest;
|
|
994
1179
|
refreshPaginationAndRows(first: number, rows: number): void;
|
|
995
1180
|
pageChange(element: any): void;
|
|
996
1181
|
setStoredTablePagination(tenantId: string, storedQuery: StoreableTablePagination): void;
|
|
@@ -999,7 +1184,7 @@ declare class WTableLazyComponent implements OnInit {
|
|
|
999
1184
|
isElementSelected(id: number): boolean;
|
|
1000
1185
|
getActualRowsPerPage(): number;
|
|
1001
1186
|
static ɵfac: i0.ɵɵFactoryDeclaration<WTableLazyComponent, never>;
|
|
1002
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WTableLazyComponent, "w-table-lazy", never, { "loading": { "alias": "loading"; "required": false; }; "elements": { "alias": "elements"; "required": false; }; "selectedElements": { "alias": "selectedElements"; "required": false; }; "rowsPerPage": { "alias": "rowsPerPage"; "required": false; }; "allElements": { "alias": "allElements"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "maxRowsPerPage": { "alias": "maxRowsPerPage"; "required": false; }; "singleRowSelection": { "alias": "singleRowSelection"; "required": false; }; "wappTableLazyLoadingObject": { "alias": "wappTableLazyLoadingObject"; "required": false; }; }, { "queryElements": "queryElements"; "onElementSelect": "onElementSelect"; "onViewElementSelect": "onViewElementSelect"; "onCustomElementSelect": "onCustomElementSelect"; "onCopyElementSelect": "onCopyElementSelect"; "onEditElementSelect": "onEditElementSelect"; "onDeleteElementSelect": "onDeleteElementSelect"; "onAllElementSelect": "onAllElementSelect"; "onPageChange": "onPageChange"; "onSelectedElementsChange": "onSelectedElementsChange"; "onSecondaryCheckboxChange": "onSecondaryCheckboxChange"; }, never, [".filter-panel"], false, never>;
|
|
1187
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WTableLazyComponent, "w-table-lazy", never, { "loading": { "alias": "loading"; "required": false; }; "elements": { "alias": "elements"; "required": false; }; "selectedElements": { "alias": "selectedElements"; "required": false; }; "rowsPerPage": { "alias": "rowsPerPage"; "required": false; }; "initialPage": { "alias": "initialPage"; "required": false; }; "paginationId": { "alias": "paginationId"; "required": false; }; "allElements": { "alias": "allElements"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "maxRowsPerPage": { "alias": "maxRowsPerPage"; "required": false; }; "singleRowSelection": { "alias": "singleRowSelection"; "required": false; }; "wappTableLazyLoadingObject": { "alias": "wappTableLazyLoadingObject"; "required": false; }; }, { "queryElements": "queryElements"; "onElementSelect": "onElementSelect"; "onViewElementSelect": "onViewElementSelect"; "onCustomElementSelect": "onCustomElementSelect"; "onCopyElementSelect": "onCopyElementSelect"; "onEditElementSelect": "onEditElementSelect"; "onDeleteElementSelect": "onDeleteElementSelect"; "onAllElementSelect": "onAllElementSelect"; "onPageChange": "onPageChange"; "onSelectedElementsChange": "onSelectedElementsChange"; "onSecondaryCheckboxChange": "onSecondaryCheckboxChange"; }, never, [".filter-panel"], false, never>;
|
|
1003
1188
|
}
|
|
1004
1189
|
|
|
1005
1190
|
declare class WContainerComponent {
|
|
@@ -1262,14 +1447,14 @@ interface QbPanelFilter {
|
|
|
1262
1447
|
qbpanelToFields: QbPanelToFields[];
|
|
1263
1448
|
}
|
|
1264
1449
|
|
|
1265
|
-
interface Field
|
|
1450
|
+
interface Field {
|
|
1266
1451
|
id: number;
|
|
1267
1452
|
name: string;
|
|
1268
1453
|
field?: string;
|
|
1269
1454
|
value?: string;
|
|
1270
1455
|
type: string;
|
|
1271
1456
|
nullable?: boolean;
|
|
1272
|
-
options?: Option
|
|
1457
|
+
options?: Option[];
|
|
1273
1458
|
operators?: string[];
|
|
1274
1459
|
defaultValue?: any;
|
|
1275
1460
|
defaultOperator?: any;
|
|
@@ -1277,48 +1462,48 @@ interface Field$1 {
|
|
|
1277
1462
|
entity?: string;
|
|
1278
1463
|
translationsOptions?: any;
|
|
1279
1464
|
extraName?: string;
|
|
1280
|
-
validator?: (rule: Rule
|
|
1465
|
+
validator?: (rule: Rule, parent: RuleSet) => any | null;
|
|
1281
1466
|
}
|
|
1282
|
-
interface Option
|
|
1467
|
+
interface Option {
|
|
1283
1468
|
name: string;
|
|
1284
1469
|
value: any;
|
|
1285
1470
|
}
|
|
1286
|
-
interface Rule
|
|
1471
|
+
interface Rule {
|
|
1287
1472
|
field: string;
|
|
1288
1473
|
value?: any;
|
|
1289
1474
|
operator?: string;
|
|
1290
1475
|
entity?: string;
|
|
1291
1476
|
}
|
|
1292
|
-
interface RuleSet
|
|
1477
|
+
interface RuleSet {
|
|
1293
1478
|
condition: string;
|
|
1294
|
-
rules: Array<RuleSet
|
|
1479
|
+
rules: Array<RuleSet | Rule>;
|
|
1295
1480
|
collapsed?: boolean;
|
|
1296
1481
|
isChild?: boolean;
|
|
1297
1482
|
}
|
|
1298
|
-
interface FieldMap
|
|
1299
|
-
[key: string]: Field
|
|
1483
|
+
interface FieldMap {
|
|
1484
|
+
[key: string]: Field;
|
|
1300
1485
|
}
|
|
1301
|
-
interface EntityMap
|
|
1302
|
-
[key: string]: Entity
|
|
1486
|
+
interface EntityMap {
|
|
1487
|
+
[key: string]: Entity;
|
|
1303
1488
|
}
|
|
1304
|
-
interface Entity
|
|
1489
|
+
interface Entity {
|
|
1305
1490
|
name: string;
|
|
1306
1491
|
value?: string;
|
|
1307
1492
|
defaultField?: any;
|
|
1308
1493
|
}
|
|
1309
|
-
interface QueryBuilderConfig
|
|
1310
|
-
fields: FieldMap
|
|
1311
|
-
entities?: EntityMap
|
|
1494
|
+
interface QueryBuilderConfig {
|
|
1495
|
+
fields: FieldMap;
|
|
1496
|
+
entities?: EntityMap;
|
|
1312
1497
|
allowEmptyRulesets?: boolean;
|
|
1313
|
-
getOperators?: (fieldName: string, field: Field
|
|
1498
|
+
getOperators?: (fieldName: string, field: Field) => string[];
|
|
1314
1499
|
getInputType?: (field: string, operator: string) => string;
|
|
1315
|
-
getOptions?: (field: string) => Option
|
|
1316
|
-
addRuleSet?: (parent: RuleSet
|
|
1317
|
-
addRule?: (parent: RuleSet
|
|
1318
|
-
removeRuleSet?: (ruleset: RuleSet
|
|
1319
|
-
removeRule?: (rule: Rule
|
|
1320
|
-
coerceValueForOperator?: (operator: string, value: any, rule: Rule
|
|
1321
|
-
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;
|
|
1322
1507
|
}
|
|
1323
1508
|
|
|
1324
1509
|
interface FilterPanelTranslations {
|
|
@@ -1370,168 +1555,6 @@ interface NullableOption {
|
|
|
1370
1555
|
isNotNullOption: string;
|
|
1371
1556
|
}
|
|
1372
1557
|
|
|
1373
|
-
interface RuleSet {
|
|
1374
|
-
condition: string;
|
|
1375
|
-
rules: Array<RuleSet | Rule | any>;
|
|
1376
|
-
collapsed?: boolean;
|
|
1377
|
-
isChild?: boolean;
|
|
1378
|
-
}
|
|
1379
|
-
interface Rule {
|
|
1380
|
-
field: string;
|
|
1381
|
-
value?: any;
|
|
1382
|
-
operator?: string;
|
|
1383
|
-
entity?: string;
|
|
1384
|
-
}
|
|
1385
|
-
interface Option {
|
|
1386
|
-
name: string;
|
|
1387
|
-
value: any;
|
|
1388
|
-
}
|
|
1389
|
-
interface FieldMap {
|
|
1390
|
-
[key: string]: Field;
|
|
1391
|
-
}
|
|
1392
|
-
interface Field {
|
|
1393
|
-
id?: number;
|
|
1394
|
-
name: string;
|
|
1395
|
-
value?: string;
|
|
1396
|
-
type: string;
|
|
1397
|
-
nullable?: boolean;
|
|
1398
|
-
options?: Option[];
|
|
1399
|
-
operators?: string[];
|
|
1400
|
-
defaultValue?: any;
|
|
1401
|
-
defaultOperator?: any;
|
|
1402
|
-
entity?: string;
|
|
1403
|
-
validator?: (rule: Rule, parent: RuleSet) => any | null;
|
|
1404
|
-
}
|
|
1405
|
-
interface LocalRuleMeta {
|
|
1406
|
-
ruleset: boolean;
|
|
1407
|
-
invalid: boolean;
|
|
1408
|
-
}
|
|
1409
|
-
interface EntityMap {
|
|
1410
|
-
[key: string]: Entity;
|
|
1411
|
-
}
|
|
1412
|
-
interface Entity {
|
|
1413
|
-
name: string;
|
|
1414
|
-
value?: string;
|
|
1415
|
-
defaultField?: any;
|
|
1416
|
-
}
|
|
1417
|
-
interface QueryBuilderClassNames {
|
|
1418
|
-
arrowIconButton?: string;
|
|
1419
|
-
arrowIcon?: string;
|
|
1420
|
-
removeIcon?: string;
|
|
1421
|
-
addIcon?: string;
|
|
1422
|
-
button?: string;
|
|
1423
|
-
buttonGroup?: string;
|
|
1424
|
-
removeButton?: string;
|
|
1425
|
-
removeButtonSize?: string;
|
|
1426
|
-
switchRow?: string;
|
|
1427
|
-
switchGroup?: string;
|
|
1428
|
-
switchLabel?: string;
|
|
1429
|
-
switchRadio?: string;
|
|
1430
|
-
switchControl?: string;
|
|
1431
|
-
rightAlign?: string;
|
|
1432
|
-
transition?: string;
|
|
1433
|
-
collapsed?: string;
|
|
1434
|
-
treeContainer?: string;
|
|
1435
|
-
tree?: string;
|
|
1436
|
-
row?: string;
|
|
1437
|
-
connector?: string;
|
|
1438
|
-
rule?: string;
|
|
1439
|
-
ruleSet?: string;
|
|
1440
|
-
invalidRuleSet?: string;
|
|
1441
|
-
emptyWarning?: string;
|
|
1442
|
-
fieldControl?: string;
|
|
1443
|
-
fieldControlSize?: string;
|
|
1444
|
-
entityControl?: string;
|
|
1445
|
-
entityControlSize?: string;
|
|
1446
|
-
operatorControl?: string;
|
|
1447
|
-
operatorControlSize?: string;
|
|
1448
|
-
inputControl?: string;
|
|
1449
|
-
inputControlSize?: string;
|
|
1450
|
-
}
|
|
1451
|
-
interface QueryBuilderConfig {
|
|
1452
|
-
fields: FieldMap;
|
|
1453
|
-
entities?: EntityMap;
|
|
1454
|
-
allowEmptyRulesets?: boolean;
|
|
1455
|
-
getOperators?: (fieldName: string, field: Field) => string[];
|
|
1456
|
-
getInputType?: (field: string, operator: string) => string;
|
|
1457
|
-
getOptions?: (field: string) => Option[];
|
|
1458
|
-
addRuleSet?: (parent: RuleSet) => void;
|
|
1459
|
-
addRule?: (parent: RuleSet) => void;
|
|
1460
|
-
removeRuleSet?: (ruleset: RuleSet, parent: RuleSet) => void;
|
|
1461
|
-
removeRule?: (rule: Rule, parent: RuleSet) => void;
|
|
1462
|
-
coerceValueForOperator?: (operator: string, value: any, rule: Rule) => any;
|
|
1463
|
-
calculateFieldChangeValue?: (currentField: Field, nextField: Field, currentValue: any) => any;
|
|
1464
|
-
}
|
|
1465
|
-
interface SwitchGroupContext {
|
|
1466
|
-
onChange: (conditionValue: string) => void;
|
|
1467
|
-
getDisabledState: () => boolean;
|
|
1468
|
-
$implicit: RuleSet;
|
|
1469
|
-
}
|
|
1470
|
-
interface EmptyWarningContext {
|
|
1471
|
-
getDisabledState: () => boolean;
|
|
1472
|
-
message: string;
|
|
1473
|
-
$implicit: RuleSet;
|
|
1474
|
-
}
|
|
1475
|
-
interface ArrowIconContext {
|
|
1476
|
-
getDisabledState: () => boolean;
|
|
1477
|
-
$implicit: RuleSet;
|
|
1478
|
-
}
|
|
1479
|
-
interface EntityContext {
|
|
1480
|
-
onChange: (entityValue: string, rule: Rule) => void;
|
|
1481
|
-
getDisabledState: () => boolean;
|
|
1482
|
-
entities: Entity[];
|
|
1483
|
-
$implicit: Rule;
|
|
1484
|
-
}
|
|
1485
|
-
interface FieldContext {
|
|
1486
|
-
onChange: (fieldValue: string, rule: Rule) => void;
|
|
1487
|
-
getFields: (entityName: string) => void;
|
|
1488
|
-
getDisabledState: () => boolean;
|
|
1489
|
-
fields: Field[];
|
|
1490
|
-
$implicit: Rule;
|
|
1491
|
-
}
|
|
1492
|
-
interface OperatorContext {
|
|
1493
|
-
onChange: () => void;
|
|
1494
|
-
getDisabledState: () => boolean;
|
|
1495
|
-
operators: string[];
|
|
1496
|
-
$implicit: Rule;
|
|
1497
|
-
}
|
|
1498
|
-
interface InputContext {
|
|
1499
|
-
onChange: () => void;
|
|
1500
|
-
getDisabledState: () => boolean;
|
|
1501
|
-
options: Option[];
|
|
1502
|
-
field: Field;
|
|
1503
|
-
$implicit: Rule;
|
|
1504
|
-
}
|
|
1505
|
-
interface ButtonGroupContext {
|
|
1506
|
-
addRule: () => void;
|
|
1507
|
-
addRuleSet: () => void;
|
|
1508
|
-
removeRuleSet: () => void;
|
|
1509
|
-
getDisabledState: () => boolean;
|
|
1510
|
-
$implicit: RuleSet;
|
|
1511
|
-
}
|
|
1512
|
-
interface RemoveButtonContext {
|
|
1513
|
-
removeRule: (rule: Rule) => void;
|
|
1514
|
-
getDisabledState: () => boolean;
|
|
1515
|
-
$implicit: Rule;
|
|
1516
|
-
}
|
|
1517
|
-
|
|
1518
|
-
interface QueryResults {
|
|
1519
|
-
type: QueryResultType;
|
|
1520
|
-
basic?: RuleSet | null | undefined;
|
|
1521
|
-
advanced?: RuleSet | null | undefined;
|
|
1522
|
-
grouped: RuleSet | null | undefined;
|
|
1523
|
-
lazyRequest?: LazyElementQueryRequest;
|
|
1524
|
-
options?: {
|
|
1525
|
-
[key: string]: any;
|
|
1526
|
-
};
|
|
1527
|
-
}
|
|
1528
|
-
declare enum QueryResultType {
|
|
1529
|
-
NoFilters = 0,
|
|
1530
|
-
Basic = 1,
|
|
1531
|
-
Advanced = 2,
|
|
1532
|
-
Grouped = 3
|
|
1533
|
-
}
|
|
1534
|
-
|
|
1535
1558
|
interface GMCountry {
|
|
1536
1559
|
gmCountryId: number;
|
|
1537
1560
|
name: string;
|
|
@@ -1730,15 +1753,15 @@ declare const CONTROL_VALUE_ACCESSOR: any;
|
|
|
1730
1753
|
declare const VALIDATOR: any;
|
|
1731
1754
|
declare class QueryBuilderComponent implements OnInit, OnChanges, ControlValueAccessor, Validator {
|
|
1732
1755
|
private changeDetectorRef;
|
|
1733
|
-
fields: Field[];
|
|
1734
|
-
filterFields: Field[];
|
|
1735
|
-
entities: Entity[] | null;
|
|
1756
|
+
fields: Field$1[];
|
|
1757
|
+
filterFields: Field$1[];
|
|
1758
|
+
entities: Entity$1[] | null;
|
|
1736
1759
|
defaultClassNames: QueryBuilderClassNames;
|
|
1737
1760
|
defaultOperatorMap: {
|
|
1738
1761
|
[key: string]: string[];
|
|
1739
1762
|
};
|
|
1740
1763
|
disabled: boolean;
|
|
1741
|
-
data: RuleSet;
|
|
1764
|
+
data: RuleSet$1;
|
|
1742
1765
|
onChangeCallback: () => void;
|
|
1743
1766
|
onTouchedCallback: () => any;
|
|
1744
1767
|
allowRuleset: boolean;
|
|
@@ -1748,8 +1771,8 @@ declare class QueryBuilderComponent implements OnInit, OnChanges, ControlValueAc
|
|
|
1748
1771
|
operatorMap: {
|
|
1749
1772
|
[key: string]: string[];
|
|
1750
1773
|
};
|
|
1751
|
-
parentValue: RuleSet;
|
|
1752
|
-
config: QueryBuilderConfig;
|
|
1774
|
+
parentValue: RuleSet$1;
|
|
1775
|
+
config: QueryBuilderConfig$1;
|
|
1753
1776
|
parentArrowIconTemplate: QueryArrowIconDirective;
|
|
1754
1777
|
parentInputTemplates: QueryList<QueryInputDirective>;
|
|
1755
1778
|
parentOperatorTemplate: QueryOperatorDirective;
|
|
@@ -1786,8 +1809,8 @@ declare class QueryBuilderComponent implements OnInit, OnChanges, ControlValueAc
|
|
|
1786
1809
|
ngOnInit(): void;
|
|
1787
1810
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1788
1811
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
1789
|
-
get value(): RuleSet;
|
|
1790
|
-
set value(value: RuleSet);
|
|
1812
|
+
get value(): RuleSet$1;
|
|
1813
|
+
set value(value: RuleSet$1);
|
|
1791
1814
|
writeValue(obj: any): void;
|
|
1792
1815
|
registerOnChange(fn: any): void;
|
|
1793
1816
|
registerOnTouched(fn: any): void;
|
|
@@ -1796,25 +1819,25 @@ declare class QueryBuilderComponent implements OnInit, OnChanges, ControlValueAc
|
|
|
1796
1819
|
findTemplateForRule(rule: any): any;
|
|
1797
1820
|
findQueryInput(type: string): any;
|
|
1798
1821
|
getOperators(field: string): string[];
|
|
1799
|
-
getFields(entity: string): Field[];
|
|
1822
|
+
getFields(entity: string): Field$1[];
|
|
1800
1823
|
getInputType(field: string, operator: string): string | null;
|
|
1801
|
-
getOptions(field: string): Option[];
|
|
1824
|
+
getOptions(field: string): Option$1[];
|
|
1802
1825
|
getClassNames(...args: any): string | null;
|
|
1803
|
-
getDefaultField(entity: Entity): Field | null;
|
|
1804
|
-
getDefaultOperator(field: Field): string | null;
|
|
1805
|
-
addRule(parent?: RuleSet): void;
|
|
1806
|
-
removeRule(rule: any, parent?: RuleSet): void;
|
|
1807
|
-
addRuleSet(parent?: RuleSet): void;
|
|
1808
|
-
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;
|
|
1809
1832
|
transitionEnd(e: Event): void;
|
|
1810
1833
|
toggleCollapse(): void;
|
|
1811
1834
|
computedTreeContainerHeight(): void;
|
|
1812
1835
|
changeCondition(value: string): void;
|
|
1813
|
-
changeOperator(rule: Rule): void;
|
|
1814
|
-
coerceValueForOperator(operator: string, value: any, rule: Rule): any;
|
|
1836
|
+
changeOperator(rule: Rule$1): void;
|
|
1837
|
+
coerceValueForOperator(operator: string, value: any, rule: Rule$1): any;
|
|
1815
1838
|
changeInput(): void;
|
|
1816
|
-
changeField(fieldValue: string, rule: Rule): void;
|
|
1817
|
-
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;
|
|
1818
1841
|
getDefaultValue(defaultValue: any): any;
|
|
1819
1842
|
getOperatorTemplate(): TemplateRef<any> | null;
|
|
1820
1843
|
getFieldTemplate(): TemplateRef<any> | null;
|
|
@@ -1832,7 +1855,7 @@ declare class QueryBuilderComponent implements OnInit, OnChanges, ControlValueAc
|
|
|
1832
1855
|
getSwitchGroupContext(): SwitchGroupContext;
|
|
1833
1856
|
getArrowIconContext(): ArrowIconContext;
|
|
1834
1857
|
getEmptyWarningContext(): EmptyWarningContext;
|
|
1835
|
-
getOperatorContext(rule: Rule): OperatorContext;
|
|
1858
|
+
getOperatorContext(rule: Rule$1): OperatorContext;
|
|
1836
1859
|
getInputContext(rule: any): InputContext;
|
|
1837
1860
|
private calculateFieldChangeValue;
|
|
1838
1861
|
private checkEmptyRuleInRuleset;
|
|
@@ -1862,7 +1885,7 @@ declare class WFilterPanelComponent implements OnInit {
|
|
|
1862
1885
|
groupedQuery: any;
|
|
1863
1886
|
advancedQuery: any;
|
|
1864
1887
|
filterPanelObject: QbPanelFilter;
|
|
1865
|
-
entityConfigGrouped: QueryBuilderConfig
|
|
1888
|
+
entityConfigGrouped: QueryBuilderConfig;
|
|
1866
1889
|
entities: any[];
|
|
1867
1890
|
defaultValues: any[];
|
|
1868
1891
|
defaultOperators: any[];
|
|
@@ -1913,13 +1936,13 @@ declare class WFilterPanelComponent implements OnInit {
|
|
|
1913
1936
|
private normalizeQueryForEmit;
|
|
1914
1937
|
ngOnInit(): void;
|
|
1915
1938
|
initQueryBuilderControls(): void;
|
|
1916
|
-
nullableSelectPlaceholder(rule: Rule
|
|
1939
|
+
nullableSelectPlaceholder(rule: Rule, options: NullableSelectOption[]): string;
|
|
1917
1940
|
setEmtpyArraysToNull(query: any): void;
|
|
1918
1941
|
updateSearchType(): void;
|
|
1919
1942
|
updateNullableElements(elements: {
|
|
1920
1943
|
[key: string]: any;
|
|
1921
1944
|
}): void;
|
|
1922
|
-
onSearchClicked(source?:
|
|
1945
|
+
onSearchClicked(source?: FilterQuerySource, preBuiltQuery?: QueryResults): void;
|
|
1923
1946
|
setNoFiltersQueryType(queries: any): Promise<unknown>;
|
|
1924
1947
|
onClearClicked(): void;
|
|
1925
1948
|
clearPeriodSelectComponent(): void;
|
|
@@ -1936,9 +1959,9 @@ declare class WFilterPanelComponent implements OnInit {
|
|
|
1936
1959
|
setEntity(queries: QueryResults): void;
|
|
1937
1960
|
getQueryBuilderFilterPanel(): void;
|
|
1938
1961
|
defaultValueAdapter(value: any): any;
|
|
1939
|
-
initQueryBuilder(filterEntities: QbFilterEntity[], isBasic: boolean): QueryBuilderConfig
|
|
1962
|
+
initQueryBuilder(filterEntities: QbFilterEntity[], isBasic: boolean): QueryBuilderConfig;
|
|
1940
1963
|
filterFieldsById(fieldsObj: any, idArray: number[]): any;
|
|
1941
|
-
translateFields(fields: FieldMap
|
|
1964
|
+
translateFields(fields: FieldMap): FieldMap;
|
|
1942
1965
|
moveElementToFirstPlace(array: any[], elementToFirstPlace: string): any[];
|
|
1943
1966
|
formatDefaultValue(value: any, type: QBDataTypeEnum): any;
|
|
1944
1967
|
parseStringToNumberArray(input: string): number[];
|
|
@@ -1946,7 +1969,7 @@ declare class WFilterPanelComponent implements OnInit {
|
|
|
1946
1969
|
deleteFieldsWithoutValue(json: any): any;
|
|
1947
1970
|
initializeOperators(json: any): any;
|
|
1948
1971
|
resetBasicQueryValues(): void;
|
|
1949
|
-
getQueryFieldName(fieldName: string, fields: FieldMap
|
|
1972
|
+
getQueryFieldName(fieldName: string, fields: FieldMap): string;
|
|
1950
1973
|
getNullableSelectOptions(options: NullableSelectOption[]): {
|
|
1951
1974
|
name: string;
|
|
1952
1975
|
value: number;
|
|
@@ -1959,8 +1982,8 @@ declare class WFilterPanelComponent implements OnInit {
|
|
|
1959
1982
|
name: any;
|
|
1960
1983
|
value: number;
|
|
1961
1984
|
}[];
|
|
1962
|
-
fieldIsBoolean(fieldName: string, fields: FieldMap
|
|
1963
|
-
isMultiselect(rule: Rule
|
|
1985
|
+
fieldIsBoolean(fieldName: string, fields: FieldMap): boolean;
|
|
1986
|
+
isMultiselect(rule: Rule): boolean;
|
|
1964
1987
|
isToKeepLocalDate(field: string): boolean;
|
|
1965
1988
|
disableFilterButton(): boolean;
|
|
1966
1989
|
static ɵfac: i0.ɵɵFactoryDeclaration<WFilterPanelComponent, never>;
|
|
@@ -2375,6 +2398,8 @@ interface WTreeTable {
|
|
|
2375
2398
|
declare class WTreeTableComponent implements OnInit, OnChanges {
|
|
2376
2399
|
private confirmationService;
|
|
2377
2400
|
dateConversionService: DateConversionService;
|
|
2401
|
+
private sessionStorage;
|
|
2402
|
+
private localStorage;
|
|
2378
2403
|
loadingElements: boolean;
|
|
2379
2404
|
collapsedElementTree: boolean;
|
|
2380
2405
|
columns: any;
|
|
@@ -2382,6 +2407,12 @@ declare class WTreeTableComponent implements OnInit, OnChanges {
|
|
|
2382
2407
|
elementInfo: any;
|
|
2383
2408
|
tableSkeletons: any;
|
|
2384
2409
|
wappDateFormat: typeof WDatePipeFormatType;
|
|
2410
|
+
first: number;
|
|
2411
|
+
sortField?: string;
|
|
2412
|
+
sortOrder: number;
|
|
2413
|
+
searchInput: string;
|
|
2414
|
+
private restoringSearchFirst?;
|
|
2415
|
+
private initialPaginationApplied;
|
|
2385
2416
|
private _totalRecords;
|
|
2386
2417
|
set totalRecords(value: number);
|
|
2387
2418
|
get totalRecords(): number;
|
|
@@ -2389,6 +2420,8 @@ declare class WTreeTableComponent implements OnInit, OnChanges {
|
|
|
2389
2420
|
set elements(value: any);
|
|
2390
2421
|
get elements(): any;
|
|
2391
2422
|
rowsPerPage: number;
|
|
2423
|
+
initialPage: number;
|
|
2424
|
+
paginationId?: string;
|
|
2392
2425
|
originalRowsPerPage: number;
|
|
2393
2426
|
loading: boolean;
|
|
2394
2427
|
wappTreeTableObject: WTreeTable;
|
|
@@ -2397,15 +2430,19 @@ declare class WTreeTableComponent implements OnInit, OnChanges {
|
|
|
2397
2430
|
onDeleteElementSelect: EventEmitter<any>;
|
|
2398
2431
|
onCantDeleteElementWarn: EventEmitter<boolean>;
|
|
2399
2432
|
treeTable: TreeTable;
|
|
2400
|
-
|
|
2433
|
+
set tableComponent(table: TreeTable | undefined);
|
|
2434
|
+
constructor(confirmationService: ConfirmationService, dateConversionService: DateConversionService, sessionStorage: SessionStorageService, localStorage: LocalStorageService);
|
|
2401
2435
|
ngOnChanges(changes: SimpleChanges): void;
|
|
2402
2436
|
ngOnInit(): void;
|
|
2403
2437
|
initComponent(): void;
|
|
2404
|
-
filterGlobal(table: TreeTable, event:
|
|
2438
|
+
filterGlobal(table: TreeTable, event: Event): void;
|
|
2439
|
+
onFilter(table: TreeTable): void;
|
|
2405
2440
|
actionButtonClicked(id: number, element: any): void;
|
|
2406
2441
|
confirmDeleteSelected(event: any, data: any): void;
|
|
2407
2442
|
deleteNode(node: any): void;
|
|
2408
2443
|
updateShowingTableRows(): void;
|
|
2444
|
+
savePagination(): void;
|
|
2445
|
+
pageChange(): void;
|
|
2409
2446
|
private expandRecursive;
|
|
2410
2447
|
private findTreeNode;
|
|
2411
2448
|
getTableColumnAlignClass(alignment: number): "text-right" | "text-left" | "text-center";
|
|
@@ -2414,7 +2451,7 @@ declare class WTreeTableComponent implements OnInit, OnChanges {
|
|
|
2414
2451
|
readProperty(obj: any, prop: string): any;
|
|
2415
2452
|
getBooleanColumnClass(index: number, valueProperty: boolean): any[];
|
|
2416
2453
|
static ɵfac: i0.ɵɵFactoryDeclaration<WTreeTableComponent, never>;
|
|
2417
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WTreeTableComponent, "w-tree-table", never, { "elements": { "alias": "elements"; "required": false; }; "rowsPerPage": { "alias": "rowsPerPage"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "wappTreeTableObject": { "alias": "wappTreeTableObject"; "required": false; }; "getChildFunction": { "alias": "getChildFunction"; "required": false; }; }, { "onActionButtonClick": "onActionButtonClick"; "onDeleteElementSelect": "onDeleteElementSelect"; "onCantDeleteElementWarn": "onCantDeleteElementWarn"; }, never, never, false, never>;
|
|
2454
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WTreeTableComponent, "w-tree-table", never, { "elements": { "alias": "elements"; "required": false; }; "rowsPerPage": { "alias": "rowsPerPage"; "required": false; }; "initialPage": { "alias": "initialPage"; "required": false; }; "paginationId": { "alias": "paginationId"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "wappTreeTableObject": { "alias": "wappTreeTableObject"; "required": false; }; "getChildFunction": { "alias": "getChildFunction"; "required": false; }; }, { "onActionButtonClick": "onActionButtonClick"; "onDeleteElementSelect": "onDeleteElementSelect"; "onCantDeleteElementWarn": "onCantDeleteElementWarn"; }, never, never, false, never>;
|
|
2418
2455
|
}
|
|
2419
2456
|
|
|
2420
2457
|
declare class WBodyGridComponent {
|
|
@@ -3374,7 +3411,7 @@ declare class WChartBarComponent implements OnInit, OnChanges {
|
|
|
3374
3411
|
getMaxNumber(numbers: number[]): number;
|
|
3375
3412
|
private hasValidExtraData;
|
|
3376
3413
|
private processLabelForDisplay;
|
|
3377
|
-
idealTextColorFor(bgHex: string, textColor?: string, ctx?: any): "#fff" | "#
|
|
3414
|
+
idealTextColorFor(bgHex: string, textColor?: string, ctx?: any): "#fff" | "#e46d3d" | "#ad300d" | "#10485d";
|
|
3378
3415
|
idealTextStrokeColorFor(bgHex: string, textColor?: string): "rgba(146, 199, 234, 0.89)" | "rgba(98, 141, 165, 0.6)" | "rgba(93, 57, 44, 0.6)" | "rgba(26, 26, 26, 0.9)";
|
|
3379
3416
|
getBarLengthPx(ctx: any): number;
|
|
3380
3417
|
getDatalabelText(context: any): string;
|
|
@@ -4455,4 +4492,4 @@ interface WappTableActionButtonResponse {
|
|
|
4455
4492
|
}
|
|
4456
4493
|
|
|
4457
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 };
|
|
4458
|
-
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 };
|