@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,26 +1,26 @@
|
|
|
1
|
-
{
|
|
2
|
-
"en": {
|
|
3
|
-
"filter": "Filter",
|
|
4
|
-
"clearFilter": "Clear filter",
|
|
5
|
-
"addRow": "Add",
|
|
6
|
-
"editRow": "Edit",
|
|
7
|
-
"removeRow": "Remove",
|
|
8
|
-
"exportRows": "Export",
|
|
9
|
-
"chooseRow": "Choose",
|
|
10
|
-
"totalRecords": "Total records",
|
|
11
|
-
"pleaseSelectRow": "Please select the row.",
|
|
12
|
-
"removeRowConfirm": "Are you sure to remove the selected row?",
|
|
13
|
-
"removeRowFailed": "Remove row failed.",
|
|
14
|
-
"save": "Save",
|
|
15
|
-
"cancel": "Cancel",
|
|
16
|
-
"expRowCount": "Row count",
|
|
17
|
-
"expExportType": "Export type",
|
|
18
|
-
"expCreateHeaderLine": "Create header line",
|
|
19
|
-
"expCsvSeparator": "Csv separator",
|
|
20
|
-
"expDecimalFormat": "Decimal format",
|
|
21
|
-
"expEncoding": "Encoding",
|
|
22
|
-
"fileUploadSizeToBig": "Upload of file \"{fileName}\" was canceled: file size {fileSize} is more than maximum allowed size {maxFileSize}.",
|
|
23
|
-
"fileUploadFailed": "Upload of file \"{fileName}\" failed.",
|
|
24
|
-
"fileDownloadFailed": "File download failed."
|
|
25
|
-
}
|
|
26
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"en": {
|
|
3
|
+
"filter": "Filter",
|
|
4
|
+
"clearFilter": "Clear filter",
|
|
5
|
+
"addRow": "Add",
|
|
6
|
+
"editRow": "Edit",
|
|
7
|
+
"removeRow": "Remove",
|
|
8
|
+
"exportRows": "Export",
|
|
9
|
+
"chooseRow": "Choose",
|
|
10
|
+
"totalRecords": "Total records",
|
|
11
|
+
"pleaseSelectRow": "Please select the row.",
|
|
12
|
+
"removeRowConfirm": "Are you sure to remove the selected row?",
|
|
13
|
+
"removeRowFailed": "Remove row failed.",
|
|
14
|
+
"save": "Save",
|
|
15
|
+
"cancel": "Cancel",
|
|
16
|
+
"expRowCount": "Row count",
|
|
17
|
+
"expExportType": "Export type",
|
|
18
|
+
"expCreateHeaderLine": "Create header line",
|
|
19
|
+
"expCsvSeparator": "Csv separator",
|
|
20
|
+
"expDecimalFormat": "Decimal format",
|
|
21
|
+
"expEncoding": "Encoding",
|
|
22
|
+
"fileUploadSizeToBig": "Upload of file \"{fileName}\" was canceled: file size {fileSize} is more than maximum allowed size {maxFileSize}.",
|
|
23
|
+
"fileUploadFailed": "Upload of file \"{fileName}\" failed.",
|
|
24
|
+
"fileDownloadFailed": "File download failed."
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { XToken } from "./XToken";
|
|
2
|
-
export default function useXToken(): [XToken | null, (xToken: XToken | null) => void];
|
|
1
|
+
import { XToken } from "./XToken";
|
|
2
|
+
export default function useXToken(): [XToken | null, (xToken: XToken | null) => void];
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
3
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
4
|
-
if (!m) return o;
|
|
5
|
-
var i = m.call(o), r, ar = [], e;
|
|
6
|
-
try {
|
|
7
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
8
|
-
}
|
|
9
|
-
catch (error) { e = { error: error }; }
|
|
10
|
-
finally {
|
|
11
|
-
try {
|
|
12
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
13
|
-
}
|
|
14
|
-
finally { if (e) throw e.error; }
|
|
15
|
-
}
|
|
16
|
-
return ar;
|
|
17
|
-
};
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
var react_1 = require("react");
|
|
20
|
-
var XUtils_1 = require("./XUtils");
|
|
21
|
-
function useXToken() {
|
|
22
|
-
var getXToken = function () {
|
|
23
|
-
var xToken = null;
|
|
24
|
-
var tokenString = sessionStorage.getItem('xToken');
|
|
25
|
-
if (tokenString !== null) {
|
|
26
|
-
xToken = JSON.parse(tokenString);
|
|
27
|
-
}
|
|
28
|
-
return xToken;
|
|
29
|
-
};
|
|
30
|
-
var _a = __read((0, react_1.useState)(getXToken()), 2), xToken = _a[0], setXToken = _a[1];
|
|
31
|
-
XUtils_1.XUtils.setXToken(xToken);
|
|
32
|
-
var saveXToken = function (xToken) {
|
|
33
|
-
if (xToken !== null) {
|
|
34
|
-
sessionStorage.setItem('xToken', JSON.stringify(xToken));
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
sessionStorage.removeItem('xToken');
|
|
38
|
-
}
|
|
39
|
-
XUtils_1.XUtils.setXToken(xToken);
|
|
40
|
-
setXToken(xToken);
|
|
41
|
-
};
|
|
42
|
-
return [xToken, saveXToken];
|
|
43
|
-
}
|
|
44
|
-
exports.default = useXToken;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
3
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
4
|
+
if (!m) return o;
|
|
5
|
+
var i = m.call(o), r, ar = [], e;
|
|
6
|
+
try {
|
|
7
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
8
|
+
}
|
|
9
|
+
catch (error) { e = { error: error }; }
|
|
10
|
+
finally {
|
|
11
|
+
try {
|
|
12
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
13
|
+
}
|
|
14
|
+
finally { if (e) throw e.error; }
|
|
15
|
+
}
|
|
16
|
+
return ar;
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
var react_1 = require("react");
|
|
20
|
+
var XUtils_1 = require("./XUtils");
|
|
21
|
+
function useXToken() {
|
|
22
|
+
var getXToken = function () {
|
|
23
|
+
var xToken = null;
|
|
24
|
+
var tokenString = sessionStorage.getItem('xToken');
|
|
25
|
+
if (tokenString !== null) {
|
|
26
|
+
xToken = JSON.parse(tokenString);
|
|
27
|
+
}
|
|
28
|
+
return xToken;
|
|
29
|
+
};
|
|
30
|
+
var _a = __read((0, react_1.useState)(getXToken()), 2), xToken = _a[0], setXToken = _a[1];
|
|
31
|
+
XUtils_1.XUtils.setXToken(xToken);
|
|
32
|
+
var saveXToken = function (xToken) {
|
|
33
|
+
if (xToken !== null) {
|
|
34
|
+
sessionStorage.setItem('xToken', JSON.stringify(xToken));
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
sessionStorage.removeItem('xToken');
|
|
38
|
+
}
|
|
39
|
+
XUtils_1.XUtils.setXToken(xToken);
|
|
40
|
+
setXToken(xToken);
|
|
41
|
+
};
|
|
42
|
+
return [xToken, saveXToken];
|
|
43
|
+
}
|
|
44
|
+
exports.default = useXToken;
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { DataTableFilterMeta, DataTableSortMeta } from "primereact/datatable";
|
|
2
|
-
import { XCustomFilter } from "./FindParam";
|
|
3
|
-
export declare enum ExportType {
|
|
4
|
-
Csv = "csv",
|
|
5
|
-
Json = "json"
|
|
6
|
-
}
|
|
7
|
-
export interface ExportParam {
|
|
8
|
-
exportType: ExportType;
|
|
9
|
-
csvParam?: CsvParam;
|
|
10
|
-
queryParam: LazyDataTableQueryParam | any;
|
|
11
|
-
}
|
|
12
|
-
export interface LazyDataTableQueryParam {
|
|
13
|
-
filters: DataTableFilterMeta;
|
|
14
|
-
customFilter?: XCustomFilter;
|
|
15
|
-
multiSortMeta?: DataTableSortMeta[];
|
|
16
|
-
entity: string;
|
|
17
|
-
fields: string[];
|
|
18
|
-
}
|
|
19
|
-
export declare enum CsvSeparator {
|
|
20
|
-
Semicolon = ";",
|
|
21
|
-
Comma = ","
|
|
22
|
-
}
|
|
23
|
-
export declare enum CsvDecimalFormat {
|
|
24
|
-
Comma = "123456,78",
|
|
25
|
-
Dot = "123456.78"
|
|
26
|
-
}
|
|
27
|
-
export declare enum CsvEncoding {
|
|
28
|
-
Utf8 = "utf-8",
|
|
29
|
-
Win1250 = "win1250"
|
|
30
|
-
}
|
|
31
|
-
export interface CsvParam {
|
|
32
|
-
useHeaderLine: boolean;
|
|
33
|
-
headers?: string[];
|
|
34
|
-
csvSeparator: CsvSeparator;
|
|
35
|
-
csvDecimalFormat: CsvDecimalFormat;
|
|
36
|
-
csvEncoding: CsvEncoding;
|
|
37
|
-
}
|
|
38
|
-
export declare enum ImportType {
|
|
39
|
-
Csv = "csv",
|
|
40
|
-
Json = "json"
|
|
41
|
-
}
|
|
42
|
-
export interface ImportParam {
|
|
43
|
-
importType: ImportType;
|
|
44
|
-
entity: string;
|
|
45
|
-
csvParam: CsvParam;
|
|
46
|
-
}
|
|
47
|
-
export interface ImportResponse {
|
|
48
|
-
ok: boolean;
|
|
49
|
-
rowsImported?: number;
|
|
50
|
-
error?: string;
|
|
51
|
-
}
|
|
1
|
+
import { DataTableFilterMeta, DataTableSortMeta } from "primereact/datatable";
|
|
2
|
+
import { XCustomFilter } from "./FindParam";
|
|
3
|
+
export declare enum ExportType {
|
|
4
|
+
Csv = "csv",
|
|
5
|
+
Json = "json"
|
|
6
|
+
}
|
|
7
|
+
export interface ExportParam {
|
|
8
|
+
exportType: ExportType;
|
|
9
|
+
csvParam?: CsvParam;
|
|
10
|
+
queryParam: LazyDataTableQueryParam | any;
|
|
11
|
+
}
|
|
12
|
+
export interface LazyDataTableQueryParam {
|
|
13
|
+
filters: DataTableFilterMeta;
|
|
14
|
+
customFilter?: XCustomFilter;
|
|
15
|
+
multiSortMeta?: DataTableSortMeta[];
|
|
16
|
+
entity: string;
|
|
17
|
+
fields: string[];
|
|
18
|
+
}
|
|
19
|
+
export declare enum CsvSeparator {
|
|
20
|
+
Semicolon = ";",
|
|
21
|
+
Comma = ","
|
|
22
|
+
}
|
|
23
|
+
export declare enum CsvDecimalFormat {
|
|
24
|
+
Comma = "123456,78",
|
|
25
|
+
Dot = "123456.78"
|
|
26
|
+
}
|
|
27
|
+
export declare enum CsvEncoding {
|
|
28
|
+
Utf8 = "utf-8",
|
|
29
|
+
Win1250 = "win1250"
|
|
30
|
+
}
|
|
31
|
+
export interface CsvParam {
|
|
32
|
+
useHeaderLine: boolean;
|
|
33
|
+
headers?: string[];
|
|
34
|
+
csvSeparator: CsvSeparator;
|
|
35
|
+
csvDecimalFormat: CsvDecimalFormat;
|
|
36
|
+
csvEncoding: CsvEncoding;
|
|
37
|
+
}
|
|
38
|
+
export declare enum ImportType {
|
|
39
|
+
Csv = "csv",
|
|
40
|
+
Json = "json"
|
|
41
|
+
}
|
|
42
|
+
export interface ImportParam {
|
|
43
|
+
importType: ImportType;
|
|
44
|
+
entity: string;
|
|
45
|
+
csvParam: CsvParam;
|
|
46
|
+
}
|
|
47
|
+
export interface ImportResponse {
|
|
48
|
+
ok: boolean;
|
|
49
|
+
rowsImported?: number;
|
|
50
|
+
error?: string;
|
|
51
|
+
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ImportType = exports.CsvEncoding = exports.CsvDecimalFormat = exports.CsvSeparator = exports.ExportType = void 0;
|
|
4
|
-
var ExportType;
|
|
5
|
-
(function (ExportType) {
|
|
6
|
-
ExportType["Csv"] = "csv";
|
|
7
|
-
ExportType["Json"] = "json";
|
|
8
|
-
})(ExportType = exports.ExportType || (exports.ExportType = {}));
|
|
9
|
-
// vo windowse zavisi od regionalnych nastaveni, default nastavenie je ";" a preto vecsinou aj excel produkuje csv s ";" (menej sa to bije s decimalmi)
|
|
10
|
-
// takze primarne pouzivame ";" a sekundarne "," napr. pri generickom exporte do csv davame uzivatelovi na vyber
|
|
11
|
-
var CsvSeparator;
|
|
12
|
-
(function (CsvSeparator) {
|
|
13
|
-
CsvSeparator["Semicolon"] = ";";
|
|
14
|
-
CsvSeparator["Comma"] = ",";
|
|
15
|
-
})(CsvSeparator = exports.CsvSeparator || (exports.CsvSeparator = {}));
|
|
16
|
-
// decimal format pouzivany pri exporte do csv
|
|
17
|
-
var CsvDecimalFormat;
|
|
18
|
-
(function (CsvDecimalFormat) {
|
|
19
|
-
CsvDecimalFormat["Comma"] = "123456,78";
|
|
20
|
-
CsvDecimalFormat["Dot"] = "123456.78";
|
|
21
|
-
})(CsvDecimalFormat = exports.CsvDecimalFormat || (exports.CsvDecimalFormat = {}));
|
|
22
|
-
// zatial len tieto 2, ak bude treba, tak pridat napr. win1252 (Western Europe)
|
|
23
|
-
// win1250 pouzivame ako default, lebo Excel automaticky predpoklada kodovanie win1250
|
|
24
|
-
// konstanty sa pouzivaju priamo v kniznici iconv-lite
|
|
25
|
-
var CsvEncoding;
|
|
26
|
-
(function (CsvEncoding) {
|
|
27
|
-
CsvEncoding["Utf8"] = "utf-8";
|
|
28
|
-
CsvEncoding["Win1250"] = "win1250";
|
|
29
|
-
})(CsvEncoding = exports.CsvEncoding || (exports.CsvEncoding = {}));
|
|
30
|
-
var ImportType;
|
|
31
|
-
(function (ImportType) {
|
|
32
|
-
ImportType["Csv"] = "csv";
|
|
33
|
-
ImportType["Json"] = "json";
|
|
34
|
-
})(ImportType = exports.ImportType || (exports.ImportType = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImportType = exports.CsvEncoding = exports.CsvDecimalFormat = exports.CsvSeparator = exports.ExportType = void 0;
|
|
4
|
+
var ExportType;
|
|
5
|
+
(function (ExportType) {
|
|
6
|
+
ExportType["Csv"] = "csv";
|
|
7
|
+
ExportType["Json"] = "json";
|
|
8
|
+
})(ExportType = exports.ExportType || (exports.ExportType = {}));
|
|
9
|
+
// vo windowse zavisi od regionalnych nastaveni, default nastavenie je ";" a preto vecsinou aj excel produkuje csv s ";" (menej sa to bije s decimalmi)
|
|
10
|
+
// takze primarne pouzivame ";" a sekundarne "," napr. pri generickom exporte do csv davame uzivatelovi na vyber
|
|
11
|
+
var CsvSeparator;
|
|
12
|
+
(function (CsvSeparator) {
|
|
13
|
+
CsvSeparator["Semicolon"] = ";";
|
|
14
|
+
CsvSeparator["Comma"] = ",";
|
|
15
|
+
})(CsvSeparator = exports.CsvSeparator || (exports.CsvSeparator = {}));
|
|
16
|
+
// decimal format pouzivany pri exporte do csv
|
|
17
|
+
var CsvDecimalFormat;
|
|
18
|
+
(function (CsvDecimalFormat) {
|
|
19
|
+
CsvDecimalFormat["Comma"] = "123456,78";
|
|
20
|
+
CsvDecimalFormat["Dot"] = "123456.78";
|
|
21
|
+
})(CsvDecimalFormat = exports.CsvDecimalFormat || (exports.CsvDecimalFormat = {}));
|
|
22
|
+
// zatial len tieto 2, ak bude treba, tak pridat napr. win1252 (Western Europe)
|
|
23
|
+
// win1250 pouzivame ako default, lebo Excel automaticky predpoklada kodovanie win1250
|
|
24
|
+
// konstanty sa pouzivaju priamo v kniznici iconv-lite
|
|
25
|
+
var CsvEncoding;
|
|
26
|
+
(function (CsvEncoding) {
|
|
27
|
+
CsvEncoding["Utf8"] = "utf-8";
|
|
28
|
+
CsvEncoding["Win1250"] = "win1250";
|
|
29
|
+
})(CsvEncoding = exports.CsvEncoding || (exports.CsvEncoding = {}));
|
|
30
|
+
var ImportType;
|
|
31
|
+
(function (ImportType) {
|
|
32
|
+
ImportType["Csv"] = "csv";
|
|
33
|
+
ImportType["Json"] = "json";
|
|
34
|
+
})(ImportType = exports.ImportType || (exports.ImportType = {}));
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { DataTableFilterMeta, DataTableSortMeta } from "primereact/datatable";
|
|
2
|
-
export declare enum ResultType {
|
|
3
|
-
OnlyRowCount = 0,
|
|
4
|
-
RowCountAndPagedRows = 1,
|
|
5
|
-
AllRows = 2
|
|
6
|
-
}
|
|
7
|
-
export interface XCustomFilterValues {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}
|
|
10
|
-
export interface XCustomFilter {
|
|
11
|
-
filter: string;
|
|
12
|
-
values: XCustomFilterValues;
|
|
13
|
-
}
|
|
14
|
-
export declare enum XAggregateType {
|
|
15
|
-
Min = "MIN",
|
|
16
|
-
Max = "MAX",
|
|
17
|
-
Sum = "SUM",
|
|
18
|
-
Avg = "AVG"
|
|
19
|
-
}
|
|
20
|
-
export interface XAggregateItem {
|
|
21
|
-
field: string;
|
|
22
|
-
aggregateType: XAggregateType;
|
|
23
|
-
}
|
|
24
|
-
export interface FindParam {
|
|
25
|
-
resultType: ResultType;
|
|
26
|
-
first?: number;
|
|
27
|
-
rows?: number;
|
|
28
|
-
filters?: DataTableFilterMeta;
|
|
29
|
-
customFilter?: XCustomFilter;
|
|
30
|
-
multiSortMeta?: DataTableSortMeta[];
|
|
31
|
-
entity: string;
|
|
32
|
-
fields?: string[];
|
|
33
|
-
aggregateItems?: XAggregateItem[];
|
|
34
|
-
}
|
|
1
|
+
import { DataTableFilterMeta, DataTableSortMeta } from "primereact/datatable";
|
|
2
|
+
export declare enum ResultType {
|
|
3
|
+
OnlyRowCount = 0,
|
|
4
|
+
RowCountAndPagedRows = 1,
|
|
5
|
+
AllRows = 2
|
|
6
|
+
}
|
|
7
|
+
export interface XCustomFilterValues {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
export interface XCustomFilter {
|
|
11
|
+
filter: string;
|
|
12
|
+
values: XCustomFilterValues;
|
|
13
|
+
}
|
|
14
|
+
export declare enum XAggregateType {
|
|
15
|
+
Min = "MIN",
|
|
16
|
+
Max = "MAX",
|
|
17
|
+
Sum = "SUM",
|
|
18
|
+
Avg = "AVG"
|
|
19
|
+
}
|
|
20
|
+
export interface XAggregateItem {
|
|
21
|
+
field: string;
|
|
22
|
+
aggregateType: XAggregateType;
|
|
23
|
+
}
|
|
24
|
+
export interface FindParam {
|
|
25
|
+
resultType: ResultType;
|
|
26
|
+
first?: number;
|
|
27
|
+
rows?: number;
|
|
28
|
+
filters?: DataTableFilterMeta;
|
|
29
|
+
customFilter?: XCustomFilter;
|
|
30
|
+
multiSortMeta?: DataTableSortMeta[];
|
|
31
|
+
entity: string;
|
|
32
|
+
fields?: string[];
|
|
33
|
+
aggregateItems?: XAggregateItem[];
|
|
34
|
+
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.XAggregateType = exports.ResultType = void 0;
|
|
4
|
-
// TODO - replaced with DataTableFilterMetaData
|
|
5
|
-
// export interface FilterValue {
|
|
6
|
-
// value : string;
|
|
7
|
-
// matchMode : 'startsWith' | 'equals'; // matchMode ma konstanty napr. startsWith
|
|
8
|
-
// }
|
|
9
|
-
// TODO - replaced with DataTableFilterMeta
|
|
10
|
-
// export interface Filters {
|
|
11
|
-
// [field: string]: FilterValue; // specialny typ pre object (dictionary) ktory ma dynamicky pocet propertiesov
|
|
12
|
-
// }
|
|
13
|
-
// TODO - replace with DataTableSortMeta
|
|
14
|
-
// export interface SortMeta {
|
|
15
|
-
// field : string;
|
|
16
|
-
// order : 1 | -1; // hodnoty 1 alebo -1
|
|
17
|
-
// }
|
|
18
|
-
var ResultType;
|
|
19
|
-
(function (ResultType) {
|
|
20
|
-
ResultType[ResultType["OnlyRowCount"] = 0] = "OnlyRowCount";
|
|
21
|
-
ResultType[ResultType["RowCountAndPagedRows"] = 1] = "RowCountAndPagedRows";
|
|
22
|
-
ResultType[ResultType["AllRows"] = 2] = "AllRows";
|
|
23
|
-
})(ResultType = exports.ResultType || (exports.ResultType = {}));
|
|
24
|
-
var XAggregateType;
|
|
25
|
-
(function (XAggregateType) {
|
|
26
|
-
XAggregateType["Min"] = "MIN";
|
|
27
|
-
XAggregateType["Max"] = "MAX";
|
|
28
|
-
XAggregateType["Sum"] = "SUM";
|
|
29
|
-
XAggregateType["Avg"] = "AVG";
|
|
30
|
-
})(XAggregateType = exports.XAggregateType || (exports.XAggregateType = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.XAggregateType = exports.ResultType = void 0;
|
|
4
|
+
// TODO - replaced with DataTableFilterMetaData
|
|
5
|
+
// export interface FilterValue {
|
|
6
|
+
// value : string;
|
|
7
|
+
// matchMode : 'startsWith' | 'equals'; // matchMode ma konstanty napr. startsWith
|
|
8
|
+
// }
|
|
9
|
+
// TODO - replaced with DataTableFilterMeta
|
|
10
|
+
// export interface Filters {
|
|
11
|
+
// [field: string]: FilterValue; // specialny typ pre object (dictionary) ktory ma dynamicky pocet propertiesov
|
|
12
|
+
// }
|
|
13
|
+
// TODO - replace with DataTableSortMeta
|
|
14
|
+
// export interface SortMeta {
|
|
15
|
+
// field : string;
|
|
16
|
+
// order : 1 | -1; // hodnoty 1 alebo -1
|
|
17
|
+
// }
|
|
18
|
+
var ResultType;
|
|
19
|
+
(function (ResultType) {
|
|
20
|
+
ResultType[ResultType["OnlyRowCount"] = 0] = "OnlyRowCount";
|
|
21
|
+
ResultType[ResultType["RowCountAndPagedRows"] = 1] = "RowCountAndPagedRows";
|
|
22
|
+
ResultType[ResultType["AllRows"] = 2] = "AllRows";
|
|
23
|
+
})(ResultType = exports.ResultType || (exports.ResultType = {}));
|
|
24
|
+
var XAggregateType;
|
|
25
|
+
(function (XAggregateType) {
|
|
26
|
+
XAggregateType["Min"] = "MIN";
|
|
27
|
+
XAggregateType["Max"] = "MAX";
|
|
28
|
+
XAggregateType["Sum"] = "SUM";
|
|
29
|
+
XAggregateType["Avg"] = "AVG";
|
|
30
|
+
})(XAggregateType = exports.XAggregateType || (exports.XAggregateType = {}));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface XAggregateValues {
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
}
|
|
4
|
-
export interface FindResult {
|
|
5
|
-
rowList?: any[];
|
|
6
|
-
totalRecords?: number;
|
|
7
|
-
aggregateValues?: XAggregateValues;
|
|
8
|
-
}
|
|
1
|
+
export interface XAggregateValues {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}
|
|
4
|
+
export interface FindResult {
|
|
5
|
+
rowList?: any[];
|
|
6
|
+
totalRecords?: number;
|
|
7
|
+
aggregateValues?: XAggregateValues;
|
|
8
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export interface XBrowseMetaMap {
|
|
2
|
-
[name: string]: XBrowseMeta;
|
|
3
|
-
}
|
|
4
|
-
export interface XBrowseMeta {
|
|
5
|
-
|
|
6
|
-
entity: string;
|
|
7
|
-
browseId?: string;
|
|
8
|
-
rows?: number;
|
|
9
|
-
columnMetaList: XColumnMeta[];
|
|
10
|
-
}
|
|
11
|
-
export interface XColumnMeta {
|
|
12
|
-
|
|
13
|
-
field: string;
|
|
14
|
-
header?: any;
|
|
15
|
-
align?: "left" | "center" | "right";
|
|
16
|
-
dropdownInFilter: boolean;
|
|
17
|
-
width?: string;
|
|
18
|
-
columnOrder?: number;
|
|
19
|
-
}
|
|
1
|
+
export interface XBrowseMetaMap {
|
|
2
|
+
[name: string]: XBrowseMeta;
|
|
3
|
+
}
|
|
4
|
+
export interface XBrowseMeta {
|
|
5
|
+
id?: number;
|
|
6
|
+
entity: string;
|
|
7
|
+
browseId?: string;
|
|
8
|
+
rows?: number;
|
|
9
|
+
columnMetaList: XColumnMeta[];
|
|
10
|
+
}
|
|
11
|
+
export interface XColumnMeta {
|
|
12
|
+
id?: number;
|
|
13
|
+
field: string;
|
|
14
|
+
header?: any;
|
|
15
|
+
align?: "left" | "center" | "right";
|
|
16
|
+
dropdownInFilter: boolean;
|
|
17
|
+
width?: string;
|
|
18
|
+
columnOrder?: number;
|
|
19
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
export interface XEntityMap {
|
|
2
|
-
[name: string]: XEntity;
|
|
3
|
-
}
|
|
4
|
-
export interface XEntity {
|
|
5
|
-
name: string;
|
|
6
|
-
idField: string;
|
|
7
|
-
fieldMap: XFieldMap;
|
|
8
|
-
assocMap: XAssocMap;
|
|
9
|
-
}
|
|
10
|
-
export interface XFieldMap {
|
|
11
|
-
[name: string]: XField;
|
|
12
|
-
}
|
|
13
|
-
export interface XAssocMap {
|
|
14
|
-
[name: string]: XAssoc;
|
|
15
|
-
}
|
|
16
|
-
export interface XField {
|
|
17
|
-
name: string;
|
|
18
|
-
type: string;
|
|
19
|
-
isNullable: boolean;
|
|
20
|
-
length?: number;
|
|
21
|
-
precision?: number;
|
|
22
|
-
scale?: number;
|
|
23
|
-
width?: number;
|
|
24
|
-
}
|
|
25
|
-
export type XRelationType = "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
|
|
26
|
-
export interface XAssoc {
|
|
27
|
-
relationType: XRelationType;
|
|
28
|
-
name: string;
|
|
29
|
-
entityName: string;
|
|
30
|
-
inverseAssocName?: string;
|
|
31
|
-
isCascadeInsert: boolean;
|
|
32
|
-
isCascadeUpdate: boolean;
|
|
33
|
-
isCascadeRemove: boolean;
|
|
34
|
-
isNullable: boolean;
|
|
35
|
-
}
|
|
1
|
+
export interface XEntityMap {
|
|
2
|
+
[name: string]: XEntity;
|
|
3
|
+
}
|
|
4
|
+
export interface XEntity {
|
|
5
|
+
name: string;
|
|
6
|
+
idField: string;
|
|
7
|
+
fieldMap: XFieldMap;
|
|
8
|
+
assocMap: XAssocMap;
|
|
9
|
+
}
|
|
10
|
+
export interface XFieldMap {
|
|
11
|
+
[name: string]: XField;
|
|
12
|
+
}
|
|
13
|
+
export interface XAssocMap {
|
|
14
|
+
[name: string]: XAssoc;
|
|
15
|
+
}
|
|
16
|
+
export interface XField {
|
|
17
|
+
name: string;
|
|
18
|
+
type: string;
|
|
19
|
+
isNullable: boolean;
|
|
20
|
+
length?: number;
|
|
21
|
+
precision?: number;
|
|
22
|
+
scale?: number;
|
|
23
|
+
width?: number;
|
|
24
|
+
}
|
|
25
|
+
export type XRelationType = "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
|
|
26
|
+
export interface XAssoc {
|
|
27
|
+
relationType: XRelationType;
|
|
28
|
+
name: string;
|
|
29
|
+
entityName: string;
|
|
30
|
+
inverseAssocName?: string;
|
|
31
|
+
isCascadeInsert: boolean;
|
|
32
|
+
isCascadeUpdate: boolean;
|
|
33
|
+
isCascadeRemove: boolean;
|
|
34
|
+
isNullable: boolean;
|
|
35
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/lib/serverApi/XUser.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export interface XUser {
|
|
2
|
-
|
|
3
|
-
username: string;
|
|
4
|
-
password: string;
|
|
5
|
-
name: string;
|
|
6
|
-
enabled: boolean;
|
|
7
|
-
|
|
1
|
+
export interface XUser {
|
|
2
|
+
id: number;
|
|
3
|
+
username: string;
|
|
4
|
+
password: string;
|
|
5
|
+
name: string;
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
admin: boolean;
|
|
8
|
+
}
|
package/lib/serverApi/XUser.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { XUser } from "./XUser";
|
|
2
|
-
export interface XUserAuthenticationRequest {
|
|
3
|
-
username: string;
|
|
4
|
-
password: string;
|
|
5
|
-
}
|
|
6
|
-
export interface XUserAuthenticationResponse {
|
|
7
|
-
authenticationOk: boolean;
|
|
8
|
-
xUser?: XUser;
|
|
9
|
-
}
|
|
1
|
+
import { XUser } from "./XUser";
|
|
2
|
+
export interface XUserAuthenticationRequest {
|
|
3
|
+
username: string;
|
|
4
|
+
password: string;
|
|
5
|
+
}
|
|
6
|
+
export interface XUserAuthenticationResponse {
|
|
7
|
+
authenticationOk: boolean;
|
|
8
|
+
xUser?: XUser;
|
|
9
|
+
}
|