@michalrakus/x-react-web-lib 1.7.3 → 1.9.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/README.md +3 -3
- package/gulpfile.js +82 -82
- package/lib/administration/XBrowseMetaBrowse.d.ts +2 -2
- package/lib/administration/XBrowseMetaBrowse.js +21 -21
- package/lib/administration/XBrowseMetaForm.d.ts +5 -5
- package/lib/administration/XBrowseMetaForm.js +63 -63
- package/lib/administration/XUserBrowse.d.ts +2 -2
- package/lib/administration/XUserBrowse.js +88 -87
- package/lib/administration/XUserForm.d.ts +9 -9
- package/lib/administration/XUserForm.js +195 -194
- package/lib/components/SearchTableParams.d.ts +11 -11
- package/lib/components/SearchTableParams.js +2 -2
- package/lib/components/SourceCodeLinkEntity.d.ts +4 -4
- package/lib/components/SourceCodeLinkEntity.js +14 -14
- package/lib/components/XAutoComplete.d.ts +36 -36
- package/lib/components/XAutoComplete.js +155 -155
- package/lib/components/XAutoCompleteBase.d.ts +45 -45
- package/lib/components/XAutoCompleteBase.js +371 -371
- package/lib/components/XAutoCompleteDT.d.ts +33 -33
- package/lib/components/XAutoCompleteDT.js +140 -140
- package/lib/components/XBrowse.d.ts +33 -33
- package/lib/components/XBrowse.js +360 -360
- package/lib/components/XButton.d.ts +9 -9
- package/lib/components/XButton.js +13 -13
- package/lib/components/XButtonIconMedium.d.ts +9 -9
- package/lib/components/XButtonIconMedium.js +13 -13
- package/lib/components/XButtonIconNarrow.d.ts +10 -10
- package/lib/components/XButtonIconNarrow.js +25 -25
- package/lib/components/XButtonIconSmall.d.ts +9 -9
- package/lib/components/XButtonIconSmall.js +13 -13
- package/lib/components/XCalendar.d.ts +8 -8
- package/lib/components/XCalendar.js +27 -27
- package/lib/components/XChangePasswordForm.d.ts +5 -5
- package/lib/components/XChangePasswordForm.js +160 -160
- package/lib/components/XCheckbox.d.ts +8 -8
- package/lib/components/XCheckbox.js +57 -57
- package/lib/components/XCheckboxDT.d.ts +10 -10
- package/lib/components/XCheckboxDT.js +46 -46
- package/lib/components/XDataTable.d.ts +11 -11
- package/lib/components/XDataTable.js +197 -197
- package/lib/components/XDropdown.d.ts +18 -18
- package/lib/components/XDropdown.js +57 -57
- package/lib/components/XDropdownDT.d.ts +13 -13
- package/lib/components/XDropdownDT.js +128 -128
- package/lib/components/XDropdownDTFilter.d.ts +7 -7
- package/lib/components/XDropdownDTFilter.js +121 -121
- package/lib/components/XDropdownForEntity.d.ts +25 -25
- package/lib/components/XDropdownForEntity.js +149 -149
- package/lib/components/XDropdownFormDTFilter.d.ts +7 -7
- package/lib/components/XDropdownFormDTFilter.js +121 -121
- package/lib/components/XEditColumnDialog.d.ts +13 -13
- package/lib/components/XEditColumnDialog.js +112 -112
- package/lib/components/XEnvVars.d.ts +15 -12
- package/lib/components/XEnvVars.js +23 -20
- package/lib/components/XErrors.d.ts +12 -12
- package/lib/components/XErrors.js +2 -2
- package/lib/components/XExportRowsDialog.d.ts +15 -15
- package/lib/components/XExportRowsDialog.js +184 -184
- package/lib/components/XFieldChangeEvent.d.ts +11 -11
- package/lib/components/XFieldChangeEvent.js +2 -2
- package/lib/components/XFieldSelector.d.ts +7 -7
- package/lib/components/XFieldSelector.js +113 -113
- package/lib/components/XFormBase.d.ts +59 -59
- package/lib/components/XFormBase.js +526 -526
- package/lib/components/XFormBaseModif.d.ts +5 -5
- package/lib/components/XFormBaseModif.js +33 -33
- package/lib/components/XFormBaseT.d.ts +4 -4
- package/lib/components/XFormBaseT.js +31 -31
- package/lib/components/XFormComponent.d.ts +40 -40
- package/lib/components/XFormComponent.js +177 -177
- package/lib/components/XFormComponentDT.d.ts +30 -30
- package/lib/components/XFormComponentDT.js +145 -145
- package/lib/components/XFormDataTable2.d.ts +143 -143
- package/lib/components/XFormDataTable2.js +686 -686
- package/lib/components/XFormFooter.d.ts +6 -6
- package/lib/components/XFormFooter.js +19 -19
- package/lib/components/XFormNavigator3.d.ts +12 -12
- package/lib/components/XFormNavigator3.js +130 -130
- package/lib/components/XHolders.d.ts +7 -7
- package/lib/components/XHolders.js +15 -15
- package/lib/components/XInput.d.ts +13 -13
- package/lib/components/XInput.js +38 -38
- package/lib/components/XInputDT.d.ts +11 -11
- package/lib/components/XInputDT.js +37 -37
- package/lib/components/XInputDate.d.ts +13 -13
- package/lib/components/XInputDate.js +63 -63
- package/lib/components/XInputDateDT.d.ts +10 -10
- package/lib/components/XInputDateDT.js +55 -55
- package/lib/components/XInputDecimal.d.ts +15 -15
- package/lib/components/XInputDecimal.js +78 -78
- package/lib/components/XInputDecimalBase.d.ts +12 -12
- package/lib/components/XInputDecimalBase.js +18 -18
- package/lib/components/XInputDecimalDT.d.ts +11 -11
- package/lib/components/XInputDecimalDT.js +74 -74
- package/lib/components/XInputFileList.d.ts +36 -36
- package/lib/components/XInputFileList.js +251 -244
- package/lib/components/XInputText.d.ts +12 -12
- package/lib/components/XInputText.js +69 -69
- package/lib/components/XInputTextDT.d.ts +9 -9
- package/lib/components/XInputTextDT.js +42 -42
- package/lib/components/XInputTextarea.d.ts +18 -18
- package/lib/components/XInputTextarea.js +85 -85
- package/lib/components/XLazyDataTable.d.ts +78 -78
- package/lib/components/XLazyDataTable.js +885 -885
- package/lib/components/XLocale.d.ts +26 -26
- package/lib/components/XLocale.js +59 -59
- package/lib/components/XLoginDialog.d.ts +8 -8
- package/lib/components/XLoginDialog.js +21 -21
- package/lib/components/XLoginForm.d.ts +7 -7
- package/lib/components/XLoginForm.js +128 -128
- package/lib/components/XObject.d.ts +3 -3
- package/lib/components/XObject.js +2 -2
- package/lib/components/XResponseError.d.ts +11 -11
- package/lib/components/XResponseError.js +32 -32
- package/lib/components/XSearchButton.d.ts +26 -26
- package/lib/components/XSearchButton.js +225 -225
- package/lib/components/XSearchButtonDT.d.ts +12 -12
- package/lib/components/XSearchButtonDT.js +188 -188
- package/lib/components/XSearchButtonOld.d.ts +13 -13
- package/lib/components/XSearchButtonOld.js +212 -212
- package/lib/components/XToOneAssocButton.d.ts +8 -8
- package/lib/components/XToOneAssocButton.js +30 -30
- package/lib/components/XToken.d.ts +6 -6
- package/lib/components/XToken.js +2 -2
- package/lib/components/XUtils.d.ts +74 -74
- package/lib/components/XUtils.js +627 -627
- package/lib/components/XUtilsConversions.d.ts +12 -12
- package/lib/components/XUtilsConversions.js +125 -125
- package/lib/components/XUtilsMetadata.d.ts +39 -39
- package/lib/components/XUtilsMetadata.js +452 -452
- package/lib/components/locale/x-en.json +26 -26
- package/lib/components/useXToken.d.ts +2 -2
- package/lib/components/useXToken.js +44 -44
- package/lib/serverApi/ExportImportParam.d.ts +51 -51
- package/lib/serverApi/ExportImportParam.js +34 -34
- package/lib/serverApi/FindParam.d.ts +34 -34
- package/lib/serverApi/FindParam.js +30 -30
- package/lib/serverApi/FindResult.d.ts +8 -8
- package/lib/serverApi/FindResult.js +2 -2
- package/lib/serverApi/XBrowseMetadata.d.ts +19 -19
- package/lib/serverApi/XBrowseMetadata.js +2 -2
- package/lib/serverApi/XEntityMetadata.d.ts +35 -35
- package/lib/serverApi/XEntityMetadata.js +2 -2
- package/lib/serverApi/XFileJsonField.d.ts +6 -0
- package/lib/serverApi/XFileJsonField.js +2 -0
- package/lib/serverApi/XUser.d.ts +8 -7
- package/lib/serverApi/XUser.js +2 -2
- package/lib/serverApi/XUserAuthenticationIfc.d.ts +9 -9
- package/lib/serverApi/XUserAuthenticationIfc.js +2 -2
- package/lib/serverApi/XUtilsCommon.d.ts +13 -13
- package/lib/serverApi/XUtilsCommon.js +110 -110
- package/package.json +1 -1
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
import { XToken } from "./XToken";
|
|
2
|
-
import { CsvDecimalFormat, CsvEncoding, CsvSeparator, ExportType } from "../serverApi/ExportImportParam";
|
|
3
|
-
import React from "react";
|
|
4
|
-
import { XEnvVar } from "./XEnvVars";
|
|
5
|
-
import { XError, XErrorMap } from "./XErrors";
|
|
6
|
-
import { XCustomFilter } from "../serverApi/FindParam";
|
|
7
|
-
export declare enum OperationType {
|
|
8
|
-
None = 0,
|
|
9
|
-
Insert = 1,
|
|
10
|
-
Update = 2,
|
|
11
|
-
Remove = 3
|
|
12
|
-
}
|
|
13
|
-
export declare class XUtils {
|
|
14
|
-
static dropdownEmptyOptionValue: string;
|
|
15
|
-
static xBackendUrl: string | undefined;
|
|
16
|
-
static xToken: XToken | null;
|
|
17
|
-
static xTokenPublic: XToken;
|
|
18
|
-
private static appFormMap;
|
|
19
|
-
static exportTypeOptions: ExportType[];
|
|
20
|
-
static csvSeparatorOptions: CsvSeparator[];
|
|
21
|
-
static decimalFormatOptions: CsvDecimalFormat[];
|
|
22
|
-
static csvEncodingOptions: CsvEncoding[];
|
|
23
|
-
static remSize: number | null;
|
|
24
|
-
static FIELD_LABEL_WIDTH: string;
|
|
25
|
-
static demo(): boolean;
|
|
26
|
-
static isMobile(): boolean;
|
|
27
|
-
static mobileCssSuffix(): string;
|
|
28
|
-
static toPX(size: string | undefined): number | undefined;
|
|
29
|
-
static toPX0(size: string | undefined): number;
|
|
30
|
-
static getRemSize(): number;
|
|
31
|
-
static processGridBreakpoints(breakpointExp: string): string | undefined;
|
|
32
|
-
static processPropWidth(widthProp: string | undefined): string | undefined;
|
|
33
|
-
static addCssPropIfNotExists(cssProps: React.CSSProperties, newCssProps: React.CSSProperties): void;
|
|
34
|
-
static registerAppBrowse(elem: any, entity: string, formId?: string): void;
|
|
35
|
-
static registerAppForm(elem: any, entity: string, formId?: string): void;
|
|
36
|
-
static getAppForm(entity: string, formId?: string): any;
|
|
37
|
-
static fetchMany(path: string, value: any, usePublicToken?: boolean | XToken): Promise<any[]>;
|
|
38
|
-
static fetchRows(entity: string, customFilter?: XCustomFilter | undefined, sortField?: string, fields?: string[]): Promise<any[]>;
|
|
39
|
-
static fetchOne(path: string, value: any, usePublicToken?: boolean | XToken): Promise<any>;
|
|
40
|
-
static fetchString(path: string, value: any): Promise<string>;
|
|
41
|
-
static fetch(path: string, value: any, usePublicToken?: boolean | XToken): Promise<any>;
|
|
42
|
-
static post(path: string, value: any): Promise<Response>;
|
|
43
|
-
static fetchBasicJson(path: string, value: any, usePublicToken?: boolean | XToken): Promise<Response>;
|
|
44
|
-
static fetchFile(path: string, jsonFieldValue: any, fileToPost: any): Promise<any>;
|
|
45
|
-
static fetchBasicAuthBasic(path: string, headers: any, body: any, usePublicToken?: boolean | XToken): Promise<Response>;
|
|
46
|
-
static fetchBasic(path: string, headers: any, body: any, usePublicToken?: boolean | XToken): Promise<Response>;
|
|
47
|
-
static fetchById(entity: string, fields: string[], id: number): Promise<any>;
|
|
48
|
-
static setXToken(xToken: XToken | null): void;
|
|
49
|
-
static getXToken(): XToken | null;
|
|
50
|
-
static getUsername(): string | undefined;
|
|
51
|
-
static getXBackendUrl(): string;
|
|
52
|
-
static setXBackendUrl(xBackendUrl: string | undefined): void;
|
|
53
|
-
/**
|
|
54
|
-
* returns value of environment variable from configuration file .env
|
|
55
|
-
* @param envVar
|
|
56
|
-
*/
|
|
57
|
-
static getEnvVarValue(envVarEnum: XEnvVar): string;
|
|
58
|
-
static removeRow(entity: string, row: any): Promise<void>;
|
|
59
|
-
static arrayMoveElement(array: any[], position: number, offset: number): void;
|
|
60
|
-
static arraySort(array: any[], fieldOrStringFunction: string | ((item: any) => string)): any[];
|
|
61
|
-
static isReadOnly(path: string, readOnlyInit?: boolean): boolean;
|
|
62
|
-
static markNotNull(label: string): string;
|
|
63
|
-
static showErrorMessage(message: string, e: unknown): void;
|
|
64
|
-
static createErrorProps(error: string | undefined): {};
|
|
65
|
-
static addClassName(props: {
|
|
66
|
-
[key: string]: any;
|
|
67
|
-
}, className: string): {
|
|
68
|
-
[key: string]: any;
|
|
69
|
-
};
|
|
70
|
-
static getErrorMessages(xErrorMap: XErrorMap): string;
|
|
71
|
-
static getErrorMessage(xError: XError): string | undefined;
|
|
72
|
-
static normalizeString(value: string): string;
|
|
73
|
-
static filterAnd(filter1: XCustomFilter | undefined, filter2: XCustomFilter | undefined): XCustomFilter | undefined;
|
|
74
|
-
}
|
|
1
|
+
import { XToken } from "./XToken";
|
|
2
|
+
import { CsvDecimalFormat, CsvEncoding, CsvSeparator, ExportType } from "../serverApi/ExportImportParam";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { XEnvVar } from "./XEnvVars";
|
|
5
|
+
import { XError, XErrorMap } from "./XErrors";
|
|
6
|
+
import { XCustomFilter } from "../serverApi/FindParam";
|
|
7
|
+
export declare enum OperationType {
|
|
8
|
+
None = 0,
|
|
9
|
+
Insert = 1,
|
|
10
|
+
Update = 2,
|
|
11
|
+
Remove = 3
|
|
12
|
+
}
|
|
13
|
+
export declare class XUtils {
|
|
14
|
+
static dropdownEmptyOptionValue: string;
|
|
15
|
+
static xBackendUrl: string | undefined;
|
|
16
|
+
static xToken: XToken | null;
|
|
17
|
+
static xTokenPublic: XToken;
|
|
18
|
+
private static appFormMap;
|
|
19
|
+
static exportTypeOptions: ExportType[];
|
|
20
|
+
static csvSeparatorOptions: CsvSeparator[];
|
|
21
|
+
static decimalFormatOptions: CsvDecimalFormat[];
|
|
22
|
+
static csvEncodingOptions: CsvEncoding[];
|
|
23
|
+
static remSize: number | null;
|
|
24
|
+
static FIELD_LABEL_WIDTH: string;
|
|
25
|
+
static demo(): boolean;
|
|
26
|
+
static isMobile(): boolean;
|
|
27
|
+
static mobileCssSuffix(): string;
|
|
28
|
+
static toPX(size: string | undefined): number | undefined;
|
|
29
|
+
static toPX0(size: string | undefined): number;
|
|
30
|
+
static getRemSize(): number;
|
|
31
|
+
static processGridBreakpoints(breakpointExp: string): string | undefined;
|
|
32
|
+
static processPropWidth(widthProp: string | undefined): string | undefined;
|
|
33
|
+
static addCssPropIfNotExists(cssProps: React.CSSProperties, newCssProps: React.CSSProperties): void;
|
|
34
|
+
static registerAppBrowse(elem: any, entity: string, formId?: string): void;
|
|
35
|
+
static registerAppForm(elem: any, entity: string, formId?: string): void;
|
|
36
|
+
static getAppForm(entity: string, formId?: string): any;
|
|
37
|
+
static fetchMany(path: string, value: any, usePublicToken?: boolean | XToken): Promise<any[]>;
|
|
38
|
+
static fetchRows(entity: string, customFilter?: XCustomFilter | undefined, sortField?: string, fields?: string[]): Promise<any[]>;
|
|
39
|
+
static fetchOne(path: string, value: any, usePublicToken?: boolean | XToken): Promise<any>;
|
|
40
|
+
static fetchString(path: string, value: any): Promise<string>;
|
|
41
|
+
static fetch(path: string, value: any, usePublicToken?: boolean | XToken): Promise<any>;
|
|
42
|
+
static post(path: string, value: any): Promise<Response>;
|
|
43
|
+
static fetchBasicJson(path: string, value: any, usePublicToken?: boolean | XToken): Promise<Response>;
|
|
44
|
+
static fetchFile(path: string, jsonFieldValue: any, fileToPost: any): Promise<any>;
|
|
45
|
+
static fetchBasicAuthBasic(path: string, headers: any, body: any, usePublicToken?: boolean | XToken): Promise<Response>;
|
|
46
|
+
static fetchBasic(path: string, headers: any, body: any, usePublicToken?: boolean | XToken): Promise<Response>;
|
|
47
|
+
static fetchById(entity: string, fields: string[], id: number): Promise<any>;
|
|
48
|
+
static setXToken(xToken: XToken | null): void;
|
|
49
|
+
static getXToken(): XToken | null;
|
|
50
|
+
static getUsername(): string | undefined;
|
|
51
|
+
static getXBackendUrl(): string;
|
|
52
|
+
static setXBackendUrl(xBackendUrl: string | undefined): void;
|
|
53
|
+
/**
|
|
54
|
+
* returns value of environment variable from configuration file .env
|
|
55
|
+
* @param envVar
|
|
56
|
+
*/
|
|
57
|
+
static getEnvVarValue(envVarEnum: XEnvVar): string;
|
|
58
|
+
static removeRow(entity: string, row: any): Promise<void>;
|
|
59
|
+
static arrayMoveElement(array: any[], position: number, offset: number): void;
|
|
60
|
+
static arraySort(array: any[], fieldOrStringFunction: string | ((item: any) => string)): any[];
|
|
61
|
+
static isReadOnly(path: string, readOnlyInit?: boolean): boolean;
|
|
62
|
+
static markNotNull(label: string): string;
|
|
63
|
+
static showErrorMessage(message: string, e: unknown): void;
|
|
64
|
+
static createErrorProps(error: string | undefined): {};
|
|
65
|
+
static addClassName(props: {
|
|
66
|
+
[key: string]: any;
|
|
67
|
+
}, className: string): {
|
|
68
|
+
[key: string]: any;
|
|
69
|
+
};
|
|
70
|
+
static getErrorMessages(xErrorMap: XErrorMap): string;
|
|
71
|
+
static getErrorMessage(xError: XError): string | undefined;
|
|
72
|
+
static normalizeString(value: string): string;
|
|
73
|
+
static filterAnd(filter1: XCustomFilter | undefined, filter2: XCustomFilter | undefined): XCustomFilter | undefined;
|
|
74
|
+
}
|