@michalrakus/x-react-web-lib 1.34.0 → 1.35.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.
- package/XDocTemplateButton.d.ts +3 -0
- package/XDocTemplateButton.js +5 -0
- package/gulpfile.js +3 -0
- package/lib/administration/x-enum-enum.d.ts +12 -0
- package/lib/administration/x-enum-enum.js +2 -0
- package/lib/administration/x-enum.d.ts +10 -0
- package/lib/administration/x-enum.js +2 -0
- package/lib/components/XAutoComplete.d.ts +1 -0
- package/lib/components/XAutoComplete.js +1 -1
- package/lib/components/XAutoCompleteBase.d.ts +4 -4
- package/lib/components/XAutoCompleteBase.js +17 -24
- package/lib/components/XAutoCompleteDT.d.ts +1 -0
- package/lib/components/XAutoCompleteDT.js +1 -1
- package/lib/components/XFormDialog.d.ts +12 -0
- package/lib/components/XFormDialog.js +20 -0
- package/lib/components/XFormFooter.d.ts +4 -0
- package/lib/components/XFormFooter.js +20 -1
- package/lib/components/XInputFileList.js +6 -27
- package/lib/components/XLazyDataTable/XExportRowsDialog.js +37 -59
- package/lib/components/XLazyDataTable/XLazyDataTable.d.ts +33 -36
- package/lib/components/XLazyDataTable/XLazyDataTable.js +206 -144
- package/lib/components/XUtils.d.ts +1 -0
- package/lib/components/XUtils.js +21 -8
- package/lib/modules/docTemplates/XDocTemplateButton.d.ts +7 -0
- package/lib/modules/docTemplates/XDocTemplateButton.js +150 -0
- package/lib/modules/docTemplates/xt-doc-template-field-to-join.d.ts +6 -0
- package/lib/modules/docTemplates/xt-doc-template-field-to-join.js +2 -0
- package/lib/modules/docTemplates/xt-doc-template.d.ts +18 -0
- package/lib/modules/docTemplates/xt-doc-template.js +2 -0
- package/lib/modules/files/x-file.d.ts +8 -0
- package/lib/modules/files/x-file.js +2 -0
- package/lib/serverApi/FindParam.d.ts +2 -1
- package/lib/serverApi/FindParam.js +1 -0
- package/lib/serverApi/x-lib-api.d.ts +6 -0
- package/lib/serverApi/x-lib-api.js +0 -1
- package/package.json +1 -1
- package/xt-doc-template.d.ts +3 -0
- package/xt-doc-template.js +5 -0
|
@@ -7,6 +7,7 @@ import { XAggregateFunction, XCustomFilter } from "../../serverApi/FindParam";
|
|
|
7
7
|
import { XOnSaveOrCancelProp } from "../XFormBase";
|
|
8
8
|
import { IconType } from "primereact/utils";
|
|
9
9
|
import { ButtonProps } from "primereact/button";
|
|
10
|
+
import { XtDocTemplate } from "../../modules/docTemplates/xt-doc-template";
|
|
10
11
|
export type XBetweenFilterProp = "row" | "column" | undefined;
|
|
11
12
|
export type XMultilineRenderType = "singleLine" | "fewLines" | "allLines";
|
|
12
13
|
export interface XAppButtonForRow {
|
|
@@ -46,6 +47,10 @@ export declare enum XStateKeySuffix {
|
|
|
46
47
|
selectedRow = "selected-row",
|
|
47
48
|
multilineSwitchValue = "multiline-switch-value"
|
|
48
49
|
}
|
|
50
|
+
export interface XLazyDataTableRef {
|
|
51
|
+
reread: () => void;
|
|
52
|
+
setupExpandedRows: () => void;
|
|
53
|
+
}
|
|
49
54
|
export interface XLazyDataTableProps {
|
|
50
55
|
entity: string;
|
|
51
56
|
stateKey?: string;
|
|
@@ -54,36 +59,38 @@ export interface XLazyDataTableProps {
|
|
|
54
59
|
dataKey?: string;
|
|
55
60
|
rowExpansionTemplate?: (row: any, options: DataTableRowExpansionTemplate) => React.ReactNode;
|
|
56
61
|
showExpandedRow?: (row: any, multilineSwitchValue: XMultilineRenderType) => boolean;
|
|
57
|
-
paginator
|
|
58
|
-
rows
|
|
59
|
-
filterDisplay
|
|
62
|
+
paginator?: boolean;
|
|
63
|
+
rows?: number;
|
|
64
|
+
filterDisplay?: "menu" | "row";
|
|
60
65
|
betweenFilter?: XBetweenFilterProp;
|
|
61
|
-
autoFilter
|
|
62
|
-
showFilterButtons
|
|
66
|
+
autoFilter?: boolean;
|
|
67
|
+
showFilterButtons?: boolean;
|
|
63
68
|
showExportRows?: boolean;
|
|
64
|
-
scrollable
|
|
65
|
-
scrollWidth
|
|
66
|
-
scrollHeight
|
|
69
|
+
scrollable?: boolean;
|
|
70
|
+
scrollWidth?: string;
|
|
71
|
+
scrollHeight?: string;
|
|
67
72
|
formFooterHeight?: string;
|
|
68
|
-
shrinkWidth
|
|
73
|
+
shrinkWidth?: boolean;
|
|
69
74
|
onResetTable?: () => void;
|
|
70
|
-
|
|
71
|
-
|
|
75
|
+
editForm?: JSX.Element;
|
|
76
|
+
onAddRow?: ((filters: DataTableFilterMeta) => void) | false;
|
|
77
|
+
onEdit?: ((selectedRow: any) => void) | false;
|
|
72
78
|
removeRow?: ((selectedRow: any) => Promise<boolean>) | boolean;
|
|
73
79
|
onRemoveRow?: XOnSaveOrCancelProp;
|
|
80
|
+
docTemplates?: true | ((entity: string) => Promise<XtDocTemplate[]>);
|
|
74
81
|
appButtonsForRow?: XAppButtonForRow[];
|
|
75
82
|
appButtons?: any;
|
|
76
83
|
filters?: DataTableFilterMeta;
|
|
77
84
|
customFilter?: XCustomFilter;
|
|
78
85
|
optionalCustomFilters?: XOptionalCustomFilter[];
|
|
79
86
|
sortField?: string | DataTableSortMeta[];
|
|
80
|
-
fullTextSearch
|
|
87
|
+
fullTextSearch?: boolean | string[];
|
|
81
88
|
fields?: string[];
|
|
82
|
-
multilineSwitch
|
|
83
|
-
multilineSwitchInitValue
|
|
84
|
-
multilineSwitchFewLinesCount
|
|
89
|
+
multilineSwitch?: boolean;
|
|
90
|
+
multilineSwitchInitValue?: XMultilineRenderType;
|
|
91
|
+
multilineSwitchFewLinesCount?: number;
|
|
85
92
|
multilineSwitchValue?: [XMultilineRenderType, React.Dispatch<React.SetStateAction<XMultilineRenderType>>];
|
|
86
|
-
|
|
93
|
+
headerBodyRight?: React.ReactNode;
|
|
87
94
|
searchBrowseParams?: XSearchBrowseParams;
|
|
88
95
|
width?: string;
|
|
89
96
|
rowClassName?: (data: any) => object | string | undefined;
|
|
@@ -94,38 +101,28 @@ export interface XLazyDataTableProps {
|
|
|
94
101
|
displayed?: boolean;
|
|
95
102
|
children: ReactChild[];
|
|
96
103
|
}
|
|
97
|
-
export declare const XLazyDataTable:
|
|
98
|
-
(props: XLazyDataTableProps): React.JSX.Element;
|
|
99
|
-
defaultProps: {
|
|
100
|
-
paginator: boolean;
|
|
101
|
-
rows: number;
|
|
102
|
-
filterDisplay: string;
|
|
103
|
-
autoFilter: boolean;
|
|
104
|
-
showFilterButtons: boolean;
|
|
105
|
-
fullTextSearch: boolean;
|
|
106
|
-
multilineSwitch: boolean;
|
|
107
|
-
multilineSwitchInitValue: string;
|
|
108
|
-
multilineSwitchFewLinesCount: number;
|
|
109
|
-
scrollable: boolean;
|
|
110
|
-
scrollWidth: string;
|
|
111
|
-
scrollHeight: string;
|
|
112
|
-
shrinkWidth: boolean;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
104
|
+
export declare const XLazyDataTable: React.ForwardRefExoticComponent<XLazyDataTableProps & React.RefAttributes<XLazyDataTableRef>>;
|
|
115
105
|
export type XGetFilterItem = (field: string) => DataTableFilterMetaData | DataTableOperatorFilterMetaData;
|
|
116
|
-
export type XSetFilterItem = (field: string, filterItem: DataTableFilterMetaData | DataTableOperatorFilterMetaData) => void;
|
|
106
|
+
export type XSetFilterItem = (field: string, filterItem: DataTableFilterMetaData | DataTableOperatorFilterMetaData, autoFilter: boolean) => void;
|
|
117
107
|
export type XFilterElementParams = {
|
|
118
108
|
getFilterItem: XGetFilterItem;
|
|
119
109
|
setFilterItem: XSetFilterItem;
|
|
120
110
|
options: ColumnFilterElementTemplateOptions;
|
|
111
|
+
autoFilter: boolean;
|
|
112
|
+
};
|
|
113
|
+
export type XFilterElementProp = {
|
|
114
|
+
element: (params: XFilterElementParams) => React.ReactNode;
|
|
115
|
+
matchModeLabel?: string;
|
|
121
116
|
};
|
|
122
|
-
export type XFilterElementProp = (params: XFilterElementParams) => React.ReactNode;
|
|
123
117
|
export type XAutoCompleteInFilterProps = {
|
|
124
118
|
assocField?: string;
|
|
125
119
|
filter?: XCustomFilter;
|
|
126
120
|
sortField?: string | DataTableSortMeta[];
|
|
121
|
+
fields?: string[];
|
|
127
122
|
lazyLoadMaxRows?: number;
|
|
128
123
|
field?: string | string[];
|
|
124
|
+
itemTemplate?: (suggestion: any, index: number, createStringValue: boolean, defaultValue: (suggestion: any) => string) => React.ReactNode;
|
|
125
|
+
inputClassName?: string;
|
|
129
126
|
searchBrowse?: JSX.Element;
|
|
130
127
|
valueForm?: JSX.Element;
|
|
131
128
|
minLength?: number;
|