@apia/execution 4.0.69 → 4.0.73
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/dist/JSONAccordion.js +88 -0
- package/dist/JSONAccordion.js.map +1 -0
- package/dist/LazyEditor.js +15 -0
- package/dist/LazyEditor.js.map +1 -0
- package/dist/index.d.ts +150 -134
- package/dist/index.js +87 -12
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Box, spacing } from '@apia/theme';
|
|
4
|
+
import { CollapsiblePanel } from '@apia/components';
|
|
5
|
+
import { toJS } from 'mobx';
|
|
6
|
+
|
|
7
|
+
const JSONAccordion = ({ obj }) => {
|
|
8
|
+
const elements = React.useMemo(
|
|
9
|
+
() => obj ? Object.entries(obj).filter(([, v]) => v !== void 0).map(([key, value]) => {
|
|
10
|
+
const actualValue = toJS(value);
|
|
11
|
+
return {
|
|
12
|
+
key,
|
|
13
|
+
value: actualValue,
|
|
14
|
+
isObject: typeof actualValue === "object" && value !== null
|
|
15
|
+
};
|
|
16
|
+
}) : [],
|
|
17
|
+
[obj]
|
|
18
|
+
);
|
|
19
|
+
return /* @__PURE__ */ jsx(
|
|
20
|
+
Box,
|
|
21
|
+
{
|
|
22
|
+
sx: {
|
|
23
|
+
p: spacing(4),
|
|
24
|
+
border: "1px solid",
|
|
25
|
+
borderColor: "palette.border.section",
|
|
26
|
+
bg: "palette.background.paper"
|
|
27
|
+
},
|
|
28
|
+
children: elements.map((element) => {
|
|
29
|
+
const isString = typeof element?.value === "string";
|
|
30
|
+
const isNumber = typeof element?.value === "number";
|
|
31
|
+
const isBoolean = typeof element?.value === "boolean";
|
|
32
|
+
const isUndefined = typeof element?.value === "undefined";
|
|
33
|
+
const color = ["#b00", "#0b0", "#00b", "#555"][[isString, isNumber, isBoolean, isUndefined].findIndex((el) => el)] ?? "black";
|
|
34
|
+
return /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
35
|
+
element.isObject && !Array.isArray(element.value) && element && /* @__PURE__ */ jsx(CollapsiblePanel, { collapsed: true, label: element.key, children: /* @__PURE__ */ jsx(Box, { as: "pre", sx: { my: 0, ml: spacing(8) }, children: /* @__PURE__ */ jsx(
|
|
36
|
+
JSONAccordion,
|
|
37
|
+
{
|
|
38
|
+
obj: element.value
|
|
39
|
+
}
|
|
40
|
+
) }) }),
|
|
41
|
+
Array.isArray(element.value) && element.value.map((ind, key) => /* @__PURE__ */ jsx(
|
|
42
|
+
CollapsiblePanel,
|
|
43
|
+
{
|
|
44
|
+
collapsed: true,
|
|
45
|
+
id: element.key,
|
|
46
|
+
label: `${element.key} ${key}`,
|
|
47
|
+
children: /* @__PURE__ */ jsx(Box, { as: "pre", sx: { my: 0, ml: spacing(8) }, children: /* @__PURE__ */ jsx(JSONAccordion, { obj: ind }) })
|
|
48
|
+
},
|
|
49
|
+
key
|
|
50
|
+
)),
|
|
51
|
+
(!element.isObject || !element) && /* @__PURE__ */ jsxs(
|
|
52
|
+
Box,
|
|
53
|
+
{
|
|
54
|
+
sx: {
|
|
55
|
+
display: "flex",
|
|
56
|
+
flexWrap: "wrap",
|
|
57
|
+
"*": { wordBreak: "break-all", whiteSpace: "normal" },
|
|
58
|
+
"&:hover": { bg: "rgba(0, 0, 0, 0.1)" }
|
|
59
|
+
},
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ jsx(Box, { as: "strong", children: element?.key }),
|
|
62
|
+
/* @__PURE__ */ jsxs(
|
|
63
|
+
Box,
|
|
64
|
+
{
|
|
65
|
+
as: "pre",
|
|
66
|
+
sx: {
|
|
67
|
+
m: spacing(0),
|
|
68
|
+
ml: spacing(2),
|
|
69
|
+
color
|
|
70
|
+
},
|
|
71
|
+
children: [
|
|
72
|
+
isString ? '"' : "",
|
|
73
|
+
String(element?.value),
|
|
74
|
+
isString ? '"' : ""
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
] }, element.key);
|
|
82
|
+
})
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export { JSONAccordion as default };
|
|
88
|
+
//# sourceMappingURL=JSONAccordion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JSONAccordion.js","sources":["../../../app/execution/src/static/util/components/JSONAccordion.tsx"],"sourcesContent":["import React from 'react';\r\nimport { Box, spacing } from '@apia/theme';\r\nimport { CollapsiblePanel } from '@apia/components';\r\nimport { toJS } from 'mobx';\r\n\r\nconst JSONAccordion = ({ obj }: { obj?: unknown }) => {\r\n const elements = React.useMemo(\r\n () =>\r\n obj\r\n ? Object.entries(obj as Record<string, unknown>)\r\n .filter(([, v]) => v !== undefined)\r\n .map(([key, value]) => {\r\n const actualValue = toJS(value) as object;\r\n return {\r\n key,\r\n value: actualValue,\r\n isObject: typeof actualValue === 'object' && value !== null,\r\n };\r\n })\r\n : [],\r\n [obj],\r\n );\r\n return (\r\n <Box\r\n sx={{\r\n p: spacing(4),\r\n border: '1px solid',\r\n borderColor: 'palette.border.section',\r\n bg: 'palette.background.paper',\r\n }}\r\n >\r\n {elements.map((element) => {\r\n const isString = typeof element?.value === 'string';\r\n const isNumber = typeof element?.value === 'number';\r\n const isBoolean = typeof element?.value === 'boolean';\r\n const isUndefined = typeof element?.value === 'undefined';\r\n const color =\r\n ['#b00', '#0b0', '#00b', '#555'][\r\n [isString, isNumber, isBoolean, isUndefined].findIndex((el) => el)\r\n ] ?? 'black';\r\n return (\r\n <React.Fragment key={element.key}>\r\n {element.isObject && !Array.isArray(element.value) && element && (\r\n <CollapsiblePanel collapsed label={element.key}>\r\n <Box as=\"pre\" sx={{ my: 0, ml: spacing(8) }}>\r\n <JSONAccordion\r\n obj={element.value as Record<string, unknown>}\r\n />\r\n </Box>\r\n </CollapsiblePanel>\r\n )}\r\n {Array.isArray(element.value) &&\r\n element.value.map((ind, key) => (\r\n <CollapsiblePanel\r\n collapsed\r\n id={element.key}\r\n label={`${element.key} ${key}`}\r\n key={key}\r\n >\r\n <Box as=\"pre\" sx={{ my: 0, ml: spacing(8) }}>\r\n <JSONAccordion obj={ind as Record<string, unknown>} />\r\n </Box>\r\n </CollapsiblePanel>\r\n ))}\r\n {(!element.isObject || !element) && (\r\n <Box\r\n sx={{\r\n display: 'flex',\r\n flexWrap: 'wrap',\r\n '*': { wordBreak: 'break-all', whiteSpace: 'normal' },\r\n '&:hover': { bg: 'rgba(0, 0, 0, 0.1)' },\r\n }}\r\n >\r\n <Box as=\"strong\">{element?.key}</Box>\r\n <Box\r\n as=\"pre\"\r\n sx={{\r\n m: spacing(0),\r\n ml: spacing(2),\r\n color,\r\n }}\r\n >\r\n {isString ? '\"' : ''}\r\n {String(element?.value)}\r\n {isString ? '\"' : ''}\r\n </Box>\r\n </Box>\r\n )}\r\n </React.Fragment>\r\n );\r\n })}\r\n </Box>\r\n );\r\n};\r\n\r\nexport default JSONAccordion;\r\n"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Editor } from '@tinymce/tinymce-react';
|
|
3
|
+
|
|
4
|
+
const LazyEditor = (props) => {
|
|
5
|
+
return /* @__PURE__ */ jsx(
|
|
6
|
+
Editor,
|
|
7
|
+
{
|
|
8
|
+
...props,
|
|
9
|
+
init: { plugins: ["anchor", "code", "fullscreen"], ...props.init }
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { LazyEditor as default };
|
|
15
|
+
//# sourceMappingURL=LazyEditor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LazyEditor.js","sources":["../../../app/execution/src/static/fields/defaults/Editor/LazyEditor.tsx"],"sourcesContent":["import { Editor } from '@tinymce/tinymce-react';\r\n\r\nimport 'tinymce/tinymce';\r\n/* Default icons are required for TinyMCE 5.3 or above */\r\nimport 'tinymce/icons/default';\r\n/* A theme is also required */\r\nimport 'tinymce/themes/silver';\r\n/* Import the skin */\r\nimport 'tinymce/skins/ui/oxide-dark/skin.min.css';\r\nimport 'tinymce/skins/ui/oxide/skin.min.css';\r\n\r\n/* Import plugins */\r\nimport 'tinymce/plugins/advlist';\r\nimport 'tinymce/plugins/anchor';\r\nimport 'tinymce/plugins/autolink';\r\nimport 'tinymce/plugins/charmap';\r\nimport 'tinymce/plugins/code';\r\nimport 'tinymce/plugins/fullscreen';\r\nimport 'tinymce/plugins/help';\r\nimport 'tinymce/plugins/image';\r\nimport 'tinymce/plugins/insertdatetime/plugin';\r\nimport 'tinymce/plugins/link';\r\nimport 'tinymce/plugins/lists';\r\nimport 'tinymce/plugins/media';\r\nimport 'tinymce/plugins/paste';\r\nimport 'tinymce/plugins/preview';\r\nimport 'tinymce/plugins/print';\r\nimport 'tinymce/plugins/searchreplace';\r\nimport 'tinymce/plugins/table';\r\nimport 'tinymce/plugins/visualblocks';\r\nimport 'tinymce/plugins/wordcount';\r\nimport React from 'react';\r\n\r\nconst LazyEditor = (props: React.ComponentProps<typeof Editor>) => {\r\n return (\r\n <Editor\r\n {...props}\r\n init={{ plugins: ['anchor', 'code', 'fullscreen'], ...props.init }}\r\n />\r\n );\r\n};\r\n\r\nexport default LazyEditor;\r\n"],"names":[],"mappings":";;;AAiCA,MAAM,UAAA,GAAa,CAAC,KAAA,KAA+C;AACjE,EAAA,uBACE,GAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AAAA,MACE,GAAG,KAAA;AAAA,MACJ,IAAA,EAAM,EAAE,OAAA,EAAS,CAAC,QAAA,EAAU,QAAQ,YAAY,CAAA,EAAG,GAAG,KAAA,CAAM,IAAA;AAAK;AAAA,GACnE;AAEJ;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
2
|
import { IStringifyOptions } from 'qs';
|
|
3
|
+
import { TDispatchedNotification } from '@apia/components';
|
|
3
4
|
import { TableController, Row, Cell, CellState } from '@apia/table2-controller';
|
|
4
5
|
import { DeepReadonly, TApiaLoadForm, EventEmitter as EventEmitter$1, Mutex } from '@apia/util';
|
|
5
6
|
import { UploaderApi as UploaderApi$1, TModalConfig, TUploaderFileInfo, UploaderModalController, TFileUploaded, TSaveDroppedFilesConf } from '@apia/uploader-controller';
|
|
@@ -441,6 +442,9 @@ type TApiaFormProperties = {
|
|
|
441
442
|
frmInvisible?: boolean;
|
|
442
443
|
frmTab?: boolean;
|
|
443
444
|
frmDontFire?: boolean;
|
|
445
|
+
signableForm?: boolean;
|
|
446
|
+
markToSign?: boolean;
|
|
447
|
+
requiredSign?: boolean;
|
|
444
448
|
};
|
|
445
449
|
type ComponentProperties = {
|
|
446
450
|
colspan: string;
|
|
@@ -640,6 +644,8 @@ declare abstract class FieldWithAttribute<FieldProps extends TApiaFieldWithAttri
|
|
|
640
644
|
init(form: Form): Promise<void>;
|
|
641
645
|
}
|
|
642
646
|
|
|
647
|
+
declare const BoolProps: string[];
|
|
648
|
+
|
|
643
649
|
declare const FieldConstants: Readonly<{
|
|
644
650
|
TYPE_INPUT: "input";
|
|
645
651
|
TYPE_SELECT: "select";
|
|
@@ -767,8 +773,13 @@ declare const FormConstants: Readonly<{
|
|
|
767
773
|
PROPERTY_FORM_DONT_FIRE: "frmDontFire";
|
|
768
774
|
PROPERTY_FORM_READONLY: "readOnly";
|
|
769
775
|
PROPERTY_FORM_INVISIBLE: "frmInvisible";
|
|
776
|
+
SIGNABLE_FORM: "signableForm";
|
|
777
|
+
MARKED_TO_SIGN: "markToSign";
|
|
778
|
+
REQUIRED_SIGN: "requiredSign";
|
|
770
779
|
}>;
|
|
771
780
|
|
|
781
|
+
declare const NumProps: string[];
|
|
782
|
+
|
|
772
783
|
interface IIProperty {
|
|
773
784
|
[key: string]: string;
|
|
774
785
|
}
|
|
@@ -845,11 +856,11 @@ declare global {
|
|
|
845
856
|
declare class ApiaFunctions implements IApiaFunctions {
|
|
846
857
|
#private;
|
|
847
858
|
constructor(execution: Execution);
|
|
848
|
-
toJSNumber(
|
|
849
|
-
toApiaNumber(
|
|
850
|
-
openTab(
|
|
851
|
-
showMessage(
|
|
852
|
-
showConfirm(
|
|
859
|
+
toJSNumber(value: string): number | string;
|
|
860
|
+
toApiaNumber(value: number): number | string;
|
|
861
|
+
openTab(title: string, url: string): void;
|
|
862
|
+
showMessage(text: string, title?: string, type?: TDispatchedNotification['type']): void;
|
|
863
|
+
showConfirm(text: string, title: string, callbackFn: (win: boolean) => unknown): void;
|
|
853
864
|
getFormByType(frmName: string, frmType: TFrmParent): IApiaForm | null;
|
|
854
865
|
admEntity(entName: string, entNum?: number, parameters?: Record<string, string>, width?: number, height?: number): void;
|
|
855
866
|
clearMessages(): void;
|
|
@@ -881,6 +892,8 @@ declare class ApiaFunctions implements IApiaFunctions {
|
|
|
881
892
|
showActionButton(id: number): void;
|
|
882
893
|
viewAdmEntity(entName: string, entNum?: number): void;
|
|
883
894
|
changeTab(index: number[]): void;
|
|
895
|
+
lockScreen(): void;
|
|
896
|
+
unlockScreen(): void;
|
|
884
897
|
}
|
|
885
898
|
|
|
886
899
|
declare class ActionsController {
|
|
@@ -1848,6 +1861,135 @@ type TCreateNewField = (execution: Execution, field: Field | FieldWithAttribute
|
|
|
1848
1861
|
|
|
1849
1862
|
declare const createNewField: TCreateNewField;
|
|
1850
1863
|
|
|
1864
|
+
declare const IProperty: {
|
|
1865
|
+
readonly PROPERTY_FORM_HIDDEN: "frmHidden";
|
|
1866
|
+
readonly PROPERTY_FORM_HIGHLIGHT: "frmHighlight";
|
|
1867
|
+
readonly PROPERTY_FORM_CLOSED: "prpFrmClosed";
|
|
1868
|
+
readonly PROPERTY_FORM_TAB: "frmTab";
|
|
1869
|
+
readonly PROPERTY_FORM_DONT_FIRE: "frmDontFire";
|
|
1870
|
+
readonly PROPERTY_FORM_READONLY: "readOnly";
|
|
1871
|
+
readonly PROPERTY_FORM_INVISIBLE: "frmInvisible";
|
|
1872
|
+
readonly SIGNABLE_FORM: "signableForm";
|
|
1873
|
+
readonly MARKED_TO_SIGN: "markToSign";
|
|
1874
|
+
readonly REQUIRED_SIGN: "requiredSign";
|
|
1875
|
+
readonly TYPE_INPUT: "input";
|
|
1876
|
+
readonly TYPE_SELECT: "select";
|
|
1877
|
+
readonly TYPE_RADIO: "radio";
|
|
1878
|
+
readonly TYPE_CHECK: "check";
|
|
1879
|
+
readonly TYPE_BUTTON: "button";
|
|
1880
|
+
readonly TYPE_AREA: "area";
|
|
1881
|
+
readonly TYPE_LABEL: "label";
|
|
1882
|
+
readonly TYPE_TITLE: "title";
|
|
1883
|
+
readonly TYPE_FILE: "file";
|
|
1884
|
+
readonly TYPE_MULTIPLE: "multiple";
|
|
1885
|
+
readonly TYPE_HIDDEN: "hidden";
|
|
1886
|
+
readonly TYPE_PASSWORD: "password";
|
|
1887
|
+
readonly TYPE_GRID: "grid";
|
|
1888
|
+
readonly TYPE_IMAGE: "image";
|
|
1889
|
+
readonly TYPE_HREF: "href";
|
|
1890
|
+
readonly TYPE_EDITOR: "editor";
|
|
1891
|
+
readonly TYPE_TREE: "tree";
|
|
1892
|
+
readonly TYPE_CAPTCHA: "captcha";
|
|
1893
|
+
readonly PROPERTY_NAME: "name";
|
|
1894
|
+
readonly PROPERTY_SIZE: "size";
|
|
1895
|
+
readonly PROPERTY_READONLY: "readonly";
|
|
1896
|
+
readonly PROPERTY_DISABLED: "disabled";
|
|
1897
|
+
readonly PROPERTY_MODAL_DISABLED: "modalDisabled";
|
|
1898
|
+
readonly PROPERTY_FONT_COLOR: "fontColor";
|
|
1899
|
+
readonly PROPERTY_VALUE: "value";
|
|
1900
|
+
readonly PROPERTY_REQUIRED: "required";
|
|
1901
|
+
readonly PROPERTY_COLSPAN: "colspan";
|
|
1902
|
+
readonly PROPERTY_ROWSPAN: "rowspan";
|
|
1903
|
+
readonly PROPERTY_MODAL: "modal";
|
|
1904
|
+
readonly PROPERTY_ROWS: "thisRows";
|
|
1905
|
+
readonly PROPERTY_BOLD: "bold";
|
|
1906
|
+
readonly PROPERTY_UNDERLINED: "underlined";
|
|
1907
|
+
readonly PROPERTY_ALIGNMENT: "alignment";
|
|
1908
|
+
readonly PROPERTY_IMAGE: "imageUrl";
|
|
1909
|
+
readonly PROPERTY_COL_WIDTH: "colWidth";
|
|
1910
|
+
readonly PROPERTY_GRID_HEIGHT: "gridHeight";
|
|
1911
|
+
readonly PROPERTY_HIDE_GRID_BTN: "hideGridButtons";
|
|
1912
|
+
readonly PROPERTY_VISIBILITY_HIDDEN: "visibilityHidden";
|
|
1913
|
+
readonly PROPERTY_TRANSIENT: "transient";
|
|
1914
|
+
readonly PROPERTY_GRID_TITLE: "gridTitle";
|
|
1915
|
+
readonly PROPERTY_GRID_FORM: "gridForm";
|
|
1916
|
+
readonly PROPERTY_TOOLTIP: "tooltip";
|
|
1917
|
+
readonly PROPERTY_VALUE_COLOR: "valueColor";
|
|
1918
|
+
readonly PROPERTY_INPUT_AS_TEXT: "inputAsText";
|
|
1919
|
+
readonly PROPERTY_NO_DOWNLOAD: "noDownload";
|
|
1920
|
+
readonly PROPERTY_NO_ERASE: "noErase";
|
|
1921
|
+
readonly PROPERTY_NO_LOCK: "noLock";
|
|
1922
|
+
readonly PROPERTY_NO_HISTORY: "noHistory";
|
|
1923
|
+
readonly PROPERTY_NO_MODIFY: "noModify";
|
|
1924
|
+
readonly PROPERTY_ALLOW_EDITION: "allowEdition";
|
|
1925
|
+
readonly PROPERTY_HIDE_SIGN_ICONS: "hideSignButtons";
|
|
1926
|
+
readonly PROPERTY_URL: "url";
|
|
1927
|
+
readonly PROPERTY_GRID_HIDE_BTN_ORDER: "hideOrderButton";
|
|
1928
|
+
readonly PROPERTY_GRID_HIDE_BTN_INCLUDE: "hideIncludeButton";
|
|
1929
|
+
readonly PROPERTY_REGEXP_MESSAGE: "regExpMessage";
|
|
1930
|
+
readonly PROPERTY_PAGED_GRID: "paged";
|
|
1931
|
+
readonly PROPERTY_PAGED_GRID_SIZE: "pagedGridSize";
|
|
1932
|
+
readonly PROPERTY_GRID_ALTER_IN_LAST_PAGE: "alterOnlyLastPage";
|
|
1933
|
+
readonly PROPERTY_GRID_PRINT_HORIZONTAL: "printHorizontal";
|
|
1934
|
+
readonly PROPERTY_STORE_MODAL_QUERY_RESULT: "storeMdlQryResult";
|
|
1935
|
+
readonly PROPERTY_INCLUDE_FIRST_ROW: "includeFirstRow";
|
|
1936
|
+
readonly PROPERTY_MAX_REG_GRID: "maxRecords";
|
|
1937
|
+
readonly PROPERTY_GRID_LABEL: "gridColTitle";
|
|
1938
|
+
readonly PROPERTY_GRID_QUERY: "gridQuery";
|
|
1939
|
+
readonly PROPERTY_HIDE_DOC_PERMISSIONS: "hideDocPermissions";
|
|
1940
|
+
readonly PROPERTY_VERIFY_SIGNATURE_ONLY: "verifySignatureOnly";
|
|
1941
|
+
readonly PROPERTY_GRID_HIDE_BTN_ADD: "hideAddButton";
|
|
1942
|
+
readonly PROPERTY_GRID_HIDE_BTN_DEL: "hideDelButton";
|
|
1943
|
+
readonly PROPERTY_HIDE_DOC_UPLOAD: "hideDocUpload";
|
|
1944
|
+
readonly PROPERTY_HIDE_DOC_DOWNLOAD: "hideDocDownload";
|
|
1945
|
+
readonly PROPERTY_HIDE_DOC_ERASE: "hideDocErase";
|
|
1946
|
+
readonly PROPERTY_HIDE_DOC_LOCK: "hideDocLock";
|
|
1947
|
+
readonly PROPERTY_HIDE_DOC_HISTORY: "hideDocHistory";
|
|
1948
|
+
readonly PROPERTY_HIDE_DOC_SIGN: "hideSignButtons";
|
|
1949
|
+
readonly PROPERTY_DISPLAY_NONE: "displayNone";
|
|
1950
|
+
readonly PROPERTY_DONT_BREAK_RADIO: "dontBreakRadio";
|
|
1951
|
+
readonly PROPERTY_CHECKED: "checked";
|
|
1952
|
+
readonly PROPERTY_FILE_PREVIEW: "filePreview";
|
|
1953
|
+
readonly PROPERTY_NOT_PRINT: "noPrint";
|
|
1954
|
+
readonly PROPERTY_SELECT_PARENT: "selParent";
|
|
1955
|
+
readonly PROPERTY_HEIGHT: "height";
|
|
1956
|
+
readonly PROPERTY_MULTISELECT: "multiselect";
|
|
1957
|
+
readonly PROPERTY_SEL_PARENT: "selParent";
|
|
1958
|
+
readonly PROPERTY_PARENT_ICON: "parentIcon";
|
|
1959
|
+
readonly PROPERTY_LEAF_ICON: "leafIcon";
|
|
1960
|
+
readonly PROPERTY_CSS_CLASS: "cssClass";
|
|
1961
|
+
readonly PROPERTY_DOC_TYPE: "docType";
|
|
1962
|
+
readonly PROPERTY_HIDE_DOC_METADATA: "hideDocMetadata";
|
|
1963
|
+
readonly PROPERTY_TRANSLATION_REQUIRED: "reqTrad";
|
|
1964
|
+
readonly PROPERTY_SIGNATURE_REQUIRED: "reqSign";
|
|
1965
|
+
readonly PROPERTY_SHOW_TOOLTIP_AS_HELP: "tooltipHelp";
|
|
1966
|
+
readonly PROPERTY_DOCUMENT_MONITOR_DEF: "documentMonitorDef";
|
|
1967
|
+
readonly PROPERTY_DOCUMENT_MONITOR_CUS: "documentMonitorCus";
|
|
1968
|
+
readonly PROPERTY_DOCUMENT_SHOW_FOLD_TREE_BTN: "fileShwFoldTreeBtn";
|
|
1969
|
+
readonly PROPERTY_DOCUMENT_SHOW_FOLD_TREE_STR: "fileShwFoldTreeStr";
|
|
1970
|
+
readonly PROPERTY_DOCUMENT_NO_ALLOW_DRAG_DROP: "fileNoAllwDnD";
|
|
1971
|
+
readonly PROPERTY_DOCUMENT_NO_SHOW_MODAL: "fileDntShwDocMdlOnDrop";
|
|
1972
|
+
readonly PROPERTY_DOCUMENT_SHOW_DESC: "fileShowDesc";
|
|
1973
|
+
readonly PROPERTY_DOCUMENT_DEFAULT_FOLDER: "fileDefFolder";
|
|
1974
|
+
readonly PROPERTY_DOCUMENT_ROOT_FOLDER: "fileRootFolder";
|
|
1975
|
+
readonly PROPERTY_DOCUMENT_EXP_DATE: "fileExpDate";
|
|
1976
|
+
readonly PROPERTY_DOCUMENT_DNT_SHW_DOC_MON: "fileNotShowDocMon";
|
|
1977
|
+
readonly PROPERTY_DOCUMENT_COLLAPSE_PERM: "fileCollapsePermission";
|
|
1978
|
+
readonly PROPERTY_DOCUMENT_COLLAPSE_META: "fileCollapseMetadata";
|
|
1979
|
+
readonly PROPERTY_DOCUMENT_COLLAPSE_FLD_STC: "fileCollapseFldStrc";
|
|
1980
|
+
readonly WRONG_ATT_TYPE_ERROR: "Component does not support attributes of type <TOK>. Contact system administrator";
|
|
1981
|
+
readonly STORE_KEY_FIELD: "field";
|
|
1982
|
+
readonly STORE_KEY_FORM: "form";
|
|
1983
|
+
readonly PROPERTY_ARIA_DESCRIPTION: "ariaDescription";
|
|
1984
|
+
readonly PROPERTY_ARIA_LABEL: "ariaLabel";
|
|
1985
|
+
readonly PROPERTY_ALT: "alt";
|
|
1986
|
+
readonly PROPERTY_AUTO_COMPLETE: "autoComplete";
|
|
1987
|
+
readonly PROPERTY_AUTO_FOCUS: "autoFocus";
|
|
1988
|
+
readonly PROPERTY_INPUT_TYPE: "inputType";
|
|
1989
|
+
readonly PROPERTY_PLACE_HOLDER: "placeHolder";
|
|
1990
|
+
readonly PROPERTY_TITLE: "title";
|
|
1991
|
+
};
|
|
1992
|
+
|
|
1851
1993
|
type TCustomComponentState = {
|
|
1852
1994
|
isLoading: boolean;
|
|
1853
1995
|
attributes: Record<string, any[]>;
|
|
@@ -2150,7 +2292,7 @@ declare class Notifications {
|
|
|
2150
2292
|
getById(id: string | number): Notification<NotificationDefinition> | undefined;
|
|
2151
2293
|
kill(): void;
|
|
2152
2294
|
remove(notification: string | number | Notification): void;
|
|
2153
|
-
on: <K extends "
|
|
2295
|
+
on: <K extends "notification" | "closeTab" | "kill">(event: K, cb: Callback<{
|
|
2154
2296
|
closeTab: null;
|
|
2155
2297
|
kill: null;
|
|
2156
2298
|
notification: Notification;
|
|
@@ -3213,7 +3355,7 @@ declare class Grid extends Field<GridProps, GridDefinition, GridState> {
|
|
|
3213
3355
|
get startIndex(): number;
|
|
3214
3356
|
constructor({ properties, field, ...definition }: TApiaGridDefinition);
|
|
3215
3357
|
private resolveHeaderWidth;
|
|
3216
|
-
protected getGridActionFromEventName(eventName: GridEvents): "
|
|
3358
|
+
protected getGridActionFromEventName(eventName: GridEvents): "add" | "delete" | undefined;
|
|
3217
3359
|
protected fireServerEvent(eventName: GridEvents, params?: FireEventParameters): Promise<boolean>;
|
|
3218
3360
|
/**
|
|
3219
3361
|
* Grid methods
|
|
@@ -3460,132 +3602,6 @@ declare class SchedulerField extends Field<TApiaSchedulerProperties> {
|
|
|
3460
3602
|
get schedController(): Scheduler | undefined;
|
|
3461
3603
|
}
|
|
3462
3604
|
|
|
3463
|
-
declare const IProperty: {
|
|
3464
|
-
readonly PROPERTY_FORM_HIDDEN: "frmHidden";
|
|
3465
|
-
readonly PROPERTY_FORM_HIGHLIGHT: "frmHighlight";
|
|
3466
|
-
readonly PROPERTY_FORM_CLOSED: "prpFrmClosed";
|
|
3467
|
-
readonly PROPERTY_FORM_TAB: "frmTab";
|
|
3468
|
-
readonly PROPERTY_FORM_DONT_FIRE: "frmDontFire";
|
|
3469
|
-
readonly PROPERTY_FORM_READONLY: "readOnly";
|
|
3470
|
-
readonly PROPERTY_FORM_INVISIBLE: "frmInvisible";
|
|
3471
|
-
readonly TYPE_INPUT: "input";
|
|
3472
|
-
readonly TYPE_SELECT: "select";
|
|
3473
|
-
readonly TYPE_RADIO: "radio";
|
|
3474
|
-
readonly TYPE_CHECK: "check";
|
|
3475
|
-
readonly TYPE_BUTTON: "button";
|
|
3476
|
-
readonly TYPE_AREA: "area";
|
|
3477
|
-
readonly TYPE_LABEL: "label";
|
|
3478
|
-
readonly TYPE_TITLE: "title";
|
|
3479
|
-
readonly TYPE_FILE: "file";
|
|
3480
|
-
readonly TYPE_MULTIPLE: "multiple";
|
|
3481
|
-
readonly TYPE_HIDDEN: "hidden";
|
|
3482
|
-
readonly TYPE_PASSWORD: "password";
|
|
3483
|
-
readonly TYPE_GRID: "grid";
|
|
3484
|
-
readonly TYPE_IMAGE: "image";
|
|
3485
|
-
readonly TYPE_HREF: "href";
|
|
3486
|
-
readonly TYPE_EDITOR: "editor";
|
|
3487
|
-
readonly TYPE_TREE: "tree";
|
|
3488
|
-
readonly TYPE_CAPTCHA: "captcha";
|
|
3489
|
-
readonly PROPERTY_NAME: "name";
|
|
3490
|
-
readonly PROPERTY_SIZE: "size";
|
|
3491
|
-
readonly PROPERTY_READONLY: "readonly";
|
|
3492
|
-
readonly PROPERTY_DISABLED: "disabled";
|
|
3493
|
-
readonly PROPERTY_MODAL_DISABLED: "modalDisabled";
|
|
3494
|
-
readonly PROPERTY_FONT_COLOR: "fontColor";
|
|
3495
|
-
readonly PROPERTY_VALUE: "value";
|
|
3496
|
-
readonly PROPERTY_REQUIRED: "required";
|
|
3497
|
-
readonly PROPERTY_COLSPAN: "colspan";
|
|
3498
|
-
readonly PROPERTY_ROWSPAN: "rowspan";
|
|
3499
|
-
readonly PROPERTY_MODAL: "modal";
|
|
3500
|
-
readonly PROPERTY_ROWS: "thisRows";
|
|
3501
|
-
readonly PROPERTY_BOLD: "bold";
|
|
3502
|
-
readonly PROPERTY_UNDERLINED: "underlined";
|
|
3503
|
-
readonly PROPERTY_ALIGNMENT: "alignment";
|
|
3504
|
-
readonly PROPERTY_IMAGE: "imageUrl";
|
|
3505
|
-
readonly PROPERTY_COL_WIDTH: "colWidth";
|
|
3506
|
-
readonly PROPERTY_GRID_HEIGHT: "gridHeight";
|
|
3507
|
-
readonly PROPERTY_HIDE_GRID_BTN: "hideGridButtons";
|
|
3508
|
-
readonly PROPERTY_VISIBILITY_HIDDEN: "visibilityHidden";
|
|
3509
|
-
readonly PROPERTY_TRANSIENT: "transient";
|
|
3510
|
-
readonly PROPERTY_GRID_TITLE: "gridTitle";
|
|
3511
|
-
readonly PROPERTY_GRID_FORM: "gridForm";
|
|
3512
|
-
readonly PROPERTY_TOOLTIP: "tooltip";
|
|
3513
|
-
readonly PROPERTY_VALUE_COLOR: "valueColor";
|
|
3514
|
-
readonly PROPERTY_INPUT_AS_TEXT: "inputAsText";
|
|
3515
|
-
readonly PROPERTY_NO_DOWNLOAD: "noDownload";
|
|
3516
|
-
readonly PROPERTY_NO_ERASE: "noErase";
|
|
3517
|
-
readonly PROPERTY_NO_LOCK: "noLock";
|
|
3518
|
-
readonly PROPERTY_NO_HISTORY: "noHistory";
|
|
3519
|
-
readonly PROPERTY_NO_MODIFY: "noModify";
|
|
3520
|
-
readonly PROPERTY_ALLOW_EDITION: "allowEdition";
|
|
3521
|
-
readonly PROPERTY_HIDE_SIGN_ICONS: "hideSignButtons";
|
|
3522
|
-
readonly PROPERTY_URL: "url";
|
|
3523
|
-
readonly PROPERTY_GRID_HIDE_BTN_ORDER: "hideOrderButton";
|
|
3524
|
-
readonly PROPERTY_GRID_HIDE_BTN_INCLUDE: "hideIncludeButton";
|
|
3525
|
-
readonly PROPERTY_REGEXP_MESSAGE: "regExpMessage";
|
|
3526
|
-
readonly PROPERTY_PAGED_GRID: "paged";
|
|
3527
|
-
readonly PROPERTY_PAGED_GRID_SIZE: "pagedGridSize";
|
|
3528
|
-
readonly PROPERTY_GRID_ALTER_IN_LAST_PAGE: "alterOnlyLastPage";
|
|
3529
|
-
readonly PROPERTY_GRID_PRINT_HORIZONTAL: "printHorizontal";
|
|
3530
|
-
readonly PROPERTY_STORE_MODAL_QUERY_RESULT: "storeMdlQryResult";
|
|
3531
|
-
readonly PROPERTY_INCLUDE_FIRST_ROW: "includeFirstRow";
|
|
3532
|
-
readonly PROPERTY_MAX_REG_GRID: "maxRecords";
|
|
3533
|
-
readonly PROPERTY_GRID_LABEL: "gridColTitle";
|
|
3534
|
-
readonly PROPERTY_GRID_QUERY: "gridQuery";
|
|
3535
|
-
readonly PROPERTY_HIDE_DOC_PERMISSIONS: "hideDocPermissions";
|
|
3536
|
-
readonly PROPERTY_VERIFY_SIGNATURE_ONLY: "verifySignatureOnly";
|
|
3537
|
-
readonly PROPERTY_GRID_HIDE_BTN_ADD: "hideAddButton";
|
|
3538
|
-
readonly PROPERTY_GRID_HIDE_BTN_DEL: "hideDelButton";
|
|
3539
|
-
readonly PROPERTY_HIDE_DOC_UPLOAD: "hideDocUpload";
|
|
3540
|
-
readonly PROPERTY_HIDE_DOC_DOWNLOAD: "hideDocDownload";
|
|
3541
|
-
readonly PROPERTY_HIDE_DOC_ERASE: "hideDocErase";
|
|
3542
|
-
readonly PROPERTY_HIDE_DOC_LOCK: "hideDocLock";
|
|
3543
|
-
readonly PROPERTY_HIDE_DOC_HISTORY: "hideDocHistory";
|
|
3544
|
-
readonly PROPERTY_HIDE_DOC_SIGN: "hideSignButtons";
|
|
3545
|
-
readonly PROPERTY_DISPLAY_NONE: "displayNone";
|
|
3546
|
-
readonly PROPERTY_DONT_BREAK_RADIO: "dontBreakRadio";
|
|
3547
|
-
readonly PROPERTY_CHECKED: "checked";
|
|
3548
|
-
readonly PROPERTY_FILE_PREVIEW: "filePreview";
|
|
3549
|
-
readonly PROPERTY_NOT_PRINT: "noPrint";
|
|
3550
|
-
readonly PROPERTY_SELECT_PARENT: "selParent";
|
|
3551
|
-
readonly PROPERTY_HEIGHT: "height";
|
|
3552
|
-
readonly PROPERTY_MULTISELECT: "multiselect";
|
|
3553
|
-
readonly PROPERTY_SEL_PARENT: "selParent";
|
|
3554
|
-
readonly PROPERTY_PARENT_ICON: "parentIcon";
|
|
3555
|
-
readonly PROPERTY_LEAF_ICON: "leafIcon";
|
|
3556
|
-
readonly PROPERTY_CSS_CLASS: "cssClass";
|
|
3557
|
-
readonly PROPERTY_DOC_TYPE: "docType";
|
|
3558
|
-
readonly PROPERTY_HIDE_DOC_METADATA: "hideDocMetadata";
|
|
3559
|
-
readonly PROPERTY_TRANSLATION_REQUIRED: "reqTrad";
|
|
3560
|
-
readonly PROPERTY_SIGNATURE_REQUIRED: "reqSign";
|
|
3561
|
-
readonly PROPERTY_SHOW_TOOLTIP_AS_HELP: "tooltipHelp";
|
|
3562
|
-
readonly PROPERTY_DOCUMENT_MONITOR_DEF: "documentMonitorDef";
|
|
3563
|
-
readonly PROPERTY_DOCUMENT_MONITOR_CUS: "documentMonitorCus";
|
|
3564
|
-
readonly PROPERTY_DOCUMENT_SHOW_FOLD_TREE_BTN: "fileShwFoldTreeBtn";
|
|
3565
|
-
readonly PROPERTY_DOCUMENT_SHOW_FOLD_TREE_STR: "fileShwFoldTreeStr";
|
|
3566
|
-
readonly PROPERTY_DOCUMENT_NO_ALLOW_DRAG_DROP: "fileNoAllwDnD";
|
|
3567
|
-
readonly PROPERTY_DOCUMENT_NO_SHOW_MODAL: "fileDntShwDocMdlOnDrop";
|
|
3568
|
-
readonly PROPERTY_DOCUMENT_SHOW_DESC: "fileShowDesc";
|
|
3569
|
-
readonly PROPERTY_DOCUMENT_DEFAULT_FOLDER: "fileDefFolder";
|
|
3570
|
-
readonly PROPERTY_DOCUMENT_ROOT_FOLDER: "fileRootFolder";
|
|
3571
|
-
readonly PROPERTY_DOCUMENT_EXP_DATE: "fileExpDate";
|
|
3572
|
-
readonly PROPERTY_DOCUMENT_DNT_SHW_DOC_MON: "fileNotShowDocMon";
|
|
3573
|
-
readonly PROPERTY_DOCUMENT_COLLAPSE_PERM: "fileCollapsePermission";
|
|
3574
|
-
readonly PROPERTY_DOCUMENT_COLLAPSE_META: "fileCollapseMetadata";
|
|
3575
|
-
readonly PROPERTY_DOCUMENT_COLLAPSE_FLD_STC: "fileCollapseFldStrc";
|
|
3576
|
-
readonly WRONG_ATT_TYPE_ERROR: "Component does not support attributes of type <TOK>. Contact system administrator";
|
|
3577
|
-
readonly STORE_KEY_FIELD: "field";
|
|
3578
|
-
readonly STORE_KEY_FORM: "form";
|
|
3579
|
-
readonly PROPERTY_ARIA_DESCRIPTION: "ariaDescription";
|
|
3580
|
-
readonly PROPERTY_ARIA_LABEL: "ariaLabel";
|
|
3581
|
-
readonly PROPERTY_ALT: "alt";
|
|
3582
|
-
readonly PROPERTY_AUTO_COMPLETE: "autoComplete";
|
|
3583
|
-
readonly PROPERTY_AUTO_FOCUS: "autoFocus";
|
|
3584
|
-
readonly PROPERTY_INPUT_TYPE: "inputType";
|
|
3585
|
-
readonly PROPERTY_PLACE_HOLDER: "placeHolder";
|
|
3586
|
-
readonly PROPERTY_TITLE: "title";
|
|
3587
|
-
};
|
|
3588
|
-
|
|
3589
3605
|
declare class MessageNotification extends Notification {
|
|
3590
3606
|
close(): void;
|
|
3591
3607
|
}
|
|
@@ -3752,5 +3768,5 @@ declare function parseFakeJSON<T extends Record<string, unknown>>(str: string):
|
|
|
3752
3768
|
|
|
3753
3769
|
declare function getFocusIdentifier(field: Field): string;
|
|
3754
3770
|
|
|
3755
|
-
export { ActionsController, AdditionalCell, ApiaAttribute, ApiaField, ApiaFieldWithAttribute, ApiaForm, ApiaFunctions, BouncingEmitter, Button, ButtonField, Captcha, CaptchaField, CheckField, Checkbox, type ComponentEvent, CustomComponent, GridField as DataGridField, Editor, EditorField, EventEmitter, Execution, ExecutionState, Field, type FieldError, FieldWithAttribute, type FieldWithAttributeState, type FieldsMapping, File$1 as File, FileUploaderField, FlowModal, Form, FormsUploader, Grid, GridCell, GridField, GridPaginated, HeaderCell, Hidden, HiddenField, type IApiaField, type IApiaForm, type IApiaFunctions, type IIProperty, IProperty, type ISignatureData, Image, ImageField, Input, InputField, InvalidSessionException, Label, Link, LinkField, MessageNotification, ModalInput, ModalInputField, Multiple, MultipleField, Notifications, Password, PasswordField, type PossibleValue, Radio, RadioField, type RadioPossibleValue, SchedulerField, Select, SelectField, type SelectPossibleValue, ShowConfirmMessage, ShowPathSelection, ShowPoolSelection, ShowSign, ShowSignSelection, StatefulEmitter, type Status, StatusNotification, type TAdmEntityEvent, type TApiaButtonProperties, type TApiaCaptchaProperties, type TApiaCheckboxProperties, type TApiaEditorProperties, type TApiaFieldBaseDefinition, type TApiaFieldCommonProperties, type TApiaFieldDefinition, type TApiaFieldPossibleValue, type TApiaFieldSizableFieldProperties, type TApiaFieldType, type TApiaFieldValueType, type TApiaFieldWithAttributeBaseProps, type TApiaFieldWithAttributeProperties, type TApiaFileProperties, type TApiaForm, type TApiaFormProperties, type TApiaGridProperties, type TApiaGroupableFieldProperties, type TApiaHiddenProperties, type TApiaImageProperties, type TApiaInputProperties, type TApiaLabelProperties, type TApiaLinkProperties, type TApiaMultipleProperties, type TApiaPasswordProperties, type TApiaRadioProperties, type TApiaSchedulerProperties, type TApiaSelectProperties, type TApiaTextareaProperties, type TApiaTitleProperties, type TApiaTranslatableFieldProperties, type TApiaTreePossibleValue, type TApiaTreeProperties, type TApiaValuatedFieldProperties, type TCheckWizardResponse, type TConfirmEntityResponse, type TConfirmResponse, type TCusCmpStateRequest, type TCustomComponentDefaultResponse, type TCustomComponentDefinition, type TErrMessage, type TExecutionConfig, type TFetchConfirmPathResponse, type TFetchTaskActionResponse, type TFieldEvent, type TFieldScriptEvent, type TFieldScriptEventParameters, type TFieldScriptEvents, type TFieldServerEvent, type TFieldServerEvents, type TFormEventName, type TFormScriptEvent, type TFormScriptEventParameters, type TFormScriptEvents, type TFrmParent, type TItemTreeObj, type TObservation, type TObservations, type TOnClose, type TPathType, type TSignaturesData, AreaField as TextAreaField, TextField, Textarea, Title, TranslatableField, Translation, Tree, TreeField, UploaderApi, createNewField, deepEqual, get, getFocusIdentifier, getLabel, isHtmlResponse, isJsonResponse, isXmlResponse, makeApiaUrl, parseFakeJSON, parseSuccessfulResponse, parseXml, post, shallowEqual };
|
|
3771
|
+
export { ActionsController, AdditionalCell, ApiaAttribute, ApiaField, ApiaFieldWithAttribute, ApiaForm, ApiaFunctions, BoolProps, BouncingEmitter, Button, ButtonField, Captcha, CaptchaField, CheckField, Checkbox, type ComponentEvent, CustomComponent, GridField as DataGridField, Editor, EditorField, EventEmitter, Execution, ExecutionState, Field, FieldConstants, type FieldError, FieldWithAttribute, type FieldWithAttributeState, type FieldsMapping, File$1 as File, FileUploaderField, FlowModal, Form, FormConstants, FormsUploader, Grid, GridCell, GridField, GridPaginated, HeaderCell, Hidden, HiddenField, type IApiaField, type IApiaForm, type IApiaFunctions, type IIProperty, IProperty, type ISignatureData, Image, ImageField, Input, InputField, InvalidSessionException, Label, Link, LinkField, MessageNotification, ModalInput, ModalInputField, Multiple, MultipleField, Notifications, NumProps, Password, PasswordField, type PossibleValue, Radio, RadioField, type RadioPossibleValue, SchedulerField, Select, SelectField, type SelectPossibleValue, ShowConfirmMessage, ShowPathSelection, ShowPoolSelection, ShowSign, ShowSignSelection, StatefulEmitter, type Status, StatusNotification, type TAdmEntityEvent, type TApiaButtonProperties, type TApiaCaptchaProperties, type TApiaCheckboxProperties, type TApiaEditorProperties, type TApiaFieldBaseDefinition, type TApiaFieldCommonProperties, type TApiaFieldDefinition, type TApiaFieldPossibleValue, type TApiaFieldSizableFieldProperties, type TApiaFieldType, type TApiaFieldValueType, type TApiaFieldWithAttributeBaseProps, type TApiaFieldWithAttributeProperties, type TApiaFileProperties, type TApiaForm, type TApiaFormProperties, type TApiaGridProperties, type TApiaGroupableFieldProperties, type TApiaHiddenProperties, type TApiaImageProperties, type TApiaInputProperties, type TApiaLabelProperties, type TApiaLinkProperties, type TApiaMultipleProperties, type TApiaPasswordProperties, type TApiaRadioProperties, type TApiaSchedulerProperties, type TApiaSelectProperties, type TApiaTextareaProperties, type TApiaTitleProperties, type TApiaTranslatableFieldProperties, type TApiaTreePossibleValue, type TApiaTreeProperties, type TApiaValuatedFieldProperties, type TCheckWizardResponse, type TConfirmEntityResponse, type TConfirmResponse, type TCusCmpStateRequest, type TCustomComponentDefaultResponse, type TCustomComponentDefinition, type TErrMessage, type TExecutionConfig, type TFetchConfirmPathResponse, type TFetchTaskActionResponse, type TFieldEvent, type TFieldScriptEvent, type TFieldScriptEventParameters, type TFieldScriptEvents, type TFieldServerEvent, type TFieldServerEvents, type TFormEventName, type TFormScriptEvent, type TFormScriptEventParameters, type TFormScriptEvents, type TFrmParent, type TItemTreeObj, type TObservation, type TObservations, type TOnClose, type TPathType, type TSignaturesData, AreaField as TextAreaField, TextField, Textarea, Title, TranslatableField, Translation, Tree, TreeField, UploaderApi, createNewField, deepEqual, get, getFocusIdentifier, getLabel, isHtmlResponse, isJsonResponse, isXmlResponse, makeApiaUrl, parseFakeJSON, parseSuccessfulResponse, parseXml, post, shallowEqual };
|
|
3756
3772
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -228,7 +228,7 @@ const formProps = {
|
|
|
228
228
|
LANGUAGES: "langs"
|
|
229
229
|
};
|
|
230
230
|
|
|
231
|
-
const FormBoolProps = [
|
|
231
|
+
const FormBoolProps$1 = [
|
|
232
232
|
formProps.PROPERTY_FORM_INVISIBLE,
|
|
233
233
|
formProps.PROPERTY_FORM_HIDDEN,
|
|
234
234
|
formProps.PROPERTY_FORM_CLOSED,
|
|
@@ -240,7 +240,7 @@ const FormBoolProps = [
|
|
|
240
240
|
formProps.MARKED_TO_SIGN,
|
|
241
241
|
formProps.REQUIRED_SIGN
|
|
242
242
|
];
|
|
243
|
-
const FieldBoolProps = [
|
|
243
|
+
const FieldBoolProps$1 = [
|
|
244
244
|
fieldProps.PROPERTY_ALLOW_EDITION,
|
|
245
245
|
fieldProps.PROPERTY_CHECKED,
|
|
246
246
|
fieldProps.PROPERTY_DISABLED,
|
|
@@ -288,9 +288,9 @@ const FieldBoolProps = [
|
|
|
288
288
|
fieldProps.PROPERTY_TRANSLATION_REQUIRED,
|
|
289
289
|
fieldProps.PROPERTY_VISIBILITY_HIDDEN
|
|
290
290
|
];
|
|
291
|
-
const BoolProps = [...FieldBoolProps, ...FormBoolProps];
|
|
291
|
+
const BoolProps$1 = [...FieldBoolProps$1, ...FormBoolProps$1];
|
|
292
292
|
|
|
293
|
-
const NumProps = [
|
|
293
|
+
const NumProps$1 = [
|
|
294
294
|
fieldProps.PROPERTY_SIZE,
|
|
295
295
|
fieldProps.PROPERTY_ROWS,
|
|
296
296
|
fieldProps.PROPERTY_COLSPAN,
|
|
@@ -321,13 +321,13 @@ const parseFieldPropertiesObj = (props) => {
|
|
|
321
321
|
const objVal = Object.values(props);
|
|
322
322
|
for (let i = 0; i < objKeys.length; i += 1) {
|
|
323
323
|
const key = objKeys[i];
|
|
324
|
-
if (BoolProps.indexOf(key) === -1 && NumProps.indexOf(key) === -1) {
|
|
324
|
+
if (BoolProps$1.indexOf(key) === -1 && NumProps$1.indexOf(key) === -1) {
|
|
325
325
|
response[key] = objVal[i] || "";
|
|
326
326
|
} else if (typeof objVal[i] === "number") {
|
|
327
327
|
response[key] = objVal[i];
|
|
328
|
-
} else if (BoolProps.indexOf(key) !== -1) {
|
|
328
|
+
} else if (BoolProps$1.indexOf(key) !== -1) {
|
|
329
329
|
response[key] = parseBool(objVal[i]);
|
|
330
|
-
} else if (NumProps.indexOf(key) !== -1) {
|
|
330
|
+
} else if (NumProps$1.indexOf(key) !== -1) {
|
|
331
331
|
response[key] = parseInt(objVal[i] || "", 10);
|
|
332
332
|
}
|
|
333
333
|
}
|
|
@@ -953,13 +953,13 @@ const parseBoolean = (val) => {
|
|
|
953
953
|
|
|
954
954
|
const valueParsers = [
|
|
955
955
|
(key, value, next) => {
|
|
956
|
-
if (BoolProps.indexOf(key) === -1 && NumProps.indexOf(key) === -1) {
|
|
956
|
+
if (BoolProps$1.indexOf(key) === -1 && NumProps$1.indexOf(key) === -1) {
|
|
957
957
|
return next();
|
|
958
958
|
} else if (typeof value === "number") {
|
|
959
959
|
return next();
|
|
960
|
-
} else if (BoolProps.indexOf(key) !== -1) {
|
|
960
|
+
} else if (BoolProps$1.indexOf(key) !== -1) {
|
|
961
961
|
return { key, value: parseBoolean(value) };
|
|
962
|
-
} else if (NumProps.indexOf(key) !== -1) {
|
|
962
|
+
} else if (NumProps$1.indexOf(key) !== -1) {
|
|
963
963
|
return { key, value: parseInt(value || "", 10) };
|
|
964
964
|
}
|
|
965
965
|
next();
|
|
@@ -4559,7 +4559,10 @@ const FormConstants = Object.freeze({
|
|
|
4559
4559
|
PROPERTY_FORM_TAB: "frmTab",
|
|
4560
4560
|
PROPERTY_FORM_DONT_FIRE: "frmDontFire",
|
|
4561
4561
|
PROPERTY_FORM_READONLY: "readOnly",
|
|
4562
|
-
PROPERTY_FORM_INVISIBLE: "frmInvisible"
|
|
4562
|
+
PROPERTY_FORM_INVISIBLE: "frmInvisible",
|
|
4563
|
+
SIGNABLE_FORM: "signableForm",
|
|
4564
|
+
MARKED_TO_SIGN: "markToSign",
|
|
4565
|
+
REQUIRED_SIGN: "requiredSign"
|
|
4563
4566
|
});
|
|
4564
4567
|
|
|
4565
4568
|
const IProperty = {
|
|
@@ -4567,6 +4570,78 @@ const IProperty = {
|
|
|
4567
4570
|
...FormConstants
|
|
4568
4571
|
};
|
|
4569
4572
|
|
|
4573
|
+
const FormBoolProps = [
|
|
4574
|
+
FormConstants.PROPERTY_FORM_INVISIBLE,
|
|
4575
|
+
FormConstants.PROPERTY_FORM_HIDDEN,
|
|
4576
|
+
FormConstants.PROPERTY_FORM_CLOSED,
|
|
4577
|
+
FormConstants.PROPERTY_FORM_TAB,
|
|
4578
|
+
FormConstants.PROPERTY_FORM_HIGHLIGHT,
|
|
4579
|
+
FormConstants.PROPERTY_FORM_DONT_FIRE,
|
|
4580
|
+
FormConstants.PROPERTY_FORM_READONLY,
|
|
4581
|
+
FormConstants.SIGNABLE_FORM,
|
|
4582
|
+
FormConstants.MARKED_TO_SIGN,
|
|
4583
|
+
FormConstants.REQUIRED_SIGN
|
|
4584
|
+
];
|
|
4585
|
+
const FieldBoolProps = [
|
|
4586
|
+
FieldConstants.PROPERTY_ALLOW_EDITION,
|
|
4587
|
+
FieldConstants.PROPERTY_CHECKED,
|
|
4588
|
+
FieldConstants.PROPERTY_DISABLED,
|
|
4589
|
+
FieldConstants.PROPERTY_DOCUMENT_COLLAPSE_FLD_STC,
|
|
4590
|
+
FieldConstants.PROPERTY_DOCUMENT_COLLAPSE_META,
|
|
4591
|
+
FieldConstants.PROPERTY_DOCUMENT_COLLAPSE_PERM,
|
|
4592
|
+
FieldConstants.PROPERTY_DOCUMENT_DNT_SHW_DOC_MON,
|
|
4593
|
+
FieldConstants.PROPERTY_DOCUMENT_EXP_DATE,
|
|
4594
|
+
FieldConstants.PROPERTY_DOCUMENT_NO_ALLOW_DRAG_DROP,
|
|
4595
|
+
FieldConstants.PROPERTY_DOCUMENT_NO_SHOW_MODAL,
|
|
4596
|
+
FieldConstants.PROPERTY_DOCUMENT_SHOW_DESC,
|
|
4597
|
+
FieldConstants.PROPERTY_DOCUMENT_SHOW_FOLD_TREE_BTN,
|
|
4598
|
+
FieldConstants.PROPERTY_DOCUMENT_SHOW_FOLD_TREE_STR,
|
|
4599
|
+
FieldConstants.PROPERTY_FILE_PREVIEW,
|
|
4600
|
+
FieldConstants.PROPERTY_GRID_ALTER_IN_LAST_PAGE,
|
|
4601
|
+
FieldConstants.PROPERTY_GRID_HIDE_BTN_ADD,
|
|
4602
|
+
FieldConstants.PROPERTY_GRID_HIDE_BTN_DEL,
|
|
4603
|
+
FieldConstants.PROPERTY_GRID_HIDE_BTN_INCLUDE,
|
|
4604
|
+
FieldConstants.PROPERTY_GRID_HIDE_BTN_ORDER,
|
|
4605
|
+
FieldConstants.PROPERTY_HIDE_DOC_DOWNLOAD,
|
|
4606
|
+
FieldConstants.PROPERTY_HIDE_DOC_ERASE,
|
|
4607
|
+
FieldConstants.PROPERTY_HIDE_DOC_LOCK,
|
|
4608
|
+
FieldConstants.PROPERTY_HIDE_DOC_METADATA,
|
|
4609
|
+
FieldConstants.PROPERTY_HIDE_DOC_PERMISSIONS,
|
|
4610
|
+
FieldConstants.PROPERTY_HIDE_DOC_SIGN,
|
|
4611
|
+
FieldConstants.PROPERTY_HIDE_DOC_UPLOAD,
|
|
4612
|
+
FieldConstants.PROPERTY_HIDE_GRID_BTN,
|
|
4613
|
+
FieldConstants.PROPERTY_INCLUDE_FIRST_ROW,
|
|
4614
|
+
FieldConstants.PROPERTY_INPUT_AS_TEXT,
|
|
4615
|
+
FieldConstants.PROPERTY_MODAL_DISABLED,
|
|
4616
|
+
FieldConstants.PROPERTY_MULTISELECT,
|
|
4617
|
+
FieldConstants.PROPERTY_NO_DOWNLOAD,
|
|
4618
|
+
FieldConstants.PROPERTY_NO_ERASE,
|
|
4619
|
+
FieldConstants.PROPERTY_NO_LOCK,
|
|
4620
|
+
FieldConstants.PROPERTY_NO_MODIFY,
|
|
4621
|
+
FieldConstants.PROPERTY_NOT_PRINT,
|
|
4622
|
+
FieldConstants.PROPERTY_PAGED_GRID,
|
|
4623
|
+
FieldConstants.PROPERTY_READONLY,
|
|
4624
|
+
FieldConstants.PROPERTY_REQUIRED,
|
|
4625
|
+
FieldConstants.PROPERTY_SEL_PARENT,
|
|
4626
|
+
FieldConstants.PROPERTY_SHOW_TOOLTIP_AS_HELP,
|
|
4627
|
+
FieldConstants.PROPERTY_SIGNATURE_REQUIRED,
|
|
4628
|
+
FieldConstants.PROPERTY_STORE_MODAL_QUERY_RESULT,
|
|
4629
|
+
FieldConstants.PROPERTY_TRANSIENT,
|
|
4630
|
+
FieldConstants.PROPERTY_TRANSLATION_REQUIRED,
|
|
4631
|
+
FieldConstants.PROPERTY_VISIBILITY_HIDDEN
|
|
4632
|
+
];
|
|
4633
|
+
const BoolProps = [...FieldBoolProps, ...FormBoolProps];
|
|
4634
|
+
|
|
4635
|
+
const NumProps = [
|
|
4636
|
+
FieldConstants.PROPERTY_SIZE,
|
|
4637
|
+
FieldConstants.PROPERTY_ROWS,
|
|
4638
|
+
FieldConstants.PROPERTY_COLSPAN,
|
|
4639
|
+
FieldConstants.PROPERTY_ROWSPAN,
|
|
4640
|
+
FieldConstants.PROPERTY_PAGED_GRID_SIZE,
|
|
4641
|
+
FieldConstants.PROPERTY_GRID_HEIGHT,
|
|
4642
|
+
FieldConstants.PROPERTY_MAX_REG_GRID
|
|
4643
|
+
];
|
|
4644
|
+
|
|
4570
4645
|
var __defProp$8 = Object.defineProperty;
|
|
4571
4646
|
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4572
4647
|
var __publicField$8 = (obj, key, value) => {
|
|
@@ -8512,5 +8587,5 @@ class Execution extends EventEmitter$1 {
|
|
|
8512
8587
|
}
|
|
8513
8588
|
}
|
|
8514
8589
|
|
|
8515
|
-
export { ActionsController, AdditionalCell, ApiaAttribute, ApiaField, ApiaFieldWithAttribute, ApiaForm, ApiaFunctions, BouncingEmitter, Button, ButtonField, Captcha, CaptchaField, CheckField, Checkbox, CustomComponent, GridField as DataGridField, Editor, EditorField, EventEmitter, Execution, ExecutionState, Field, FieldWithAttribute, File, FileUploaderField, FlowModal, Form, FormsUploader, Grid, GridCell, GridField, GridPaginated, HeaderCell, Hidden, HiddenField, IProperty, Image, ImageField, Input, InputField, InvalidSessionException, Label, Link, LinkField, MessageNotification, ModalInput, ModalInputField, Multiple, MultipleField, Notifications, Password, PasswordField, Radio, RadioField, SchedulerField, Select, SelectField, ShowConfirmMessage, ShowPathSelection, ShowPoolSelection, ShowSign, ShowSignSelection, StatefulEmitter, StatusNotification, AreaField as TextAreaField, TextField, Textarea, Title, TranslatableField, Translation, Tree, TreeField, UploaderApi, createNewField, deepEqual, get, getFocusIdentifier, getLabel, isHtmlResponse, isJsonResponse, isXmlResponse, makeApiaUrl, parseFakeJSON$1 as parseFakeJSON, parseSuccessfulResponse, parseXml, post, shallowEqual };
|
|
8590
|
+
export { ActionsController, AdditionalCell, ApiaAttribute, ApiaField, ApiaFieldWithAttribute, ApiaForm, ApiaFunctions, BoolProps, BouncingEmitter, Button, ButtonField, Captcha, CaptchaField, CheckField, Checkbox, CustomComponent, GridField as DataGridField, Editor, EditorField, EventEmitter, Execution, ExecutionState, Field, FieldConstants, FieldWithAttribute, File, FileUploaderField, FlowModal, Form, FormConstants, FormsUploader, Grid, GridCell, GridField, GridPaginated, HeaderCell, Hidden, HiddenField, IProperty, Image, ImageField, Input, InputField, InvalidSessionException, Label, Link, LinkField, MessageNotification, ModalInput, ModalInputField, Multiple, MultipleField, Notifications, NumProps, Password, PasswordField, Radio, RadioField, SchedulerField, Select, SelectField, ShowConfirmMessage, ShowPathSelection, ShowPoolSelection, ShowSign, ShowSignSelection, StatefulEmitter, StatusNotification, AreaField as TextAreaField, TextField, Textarea, Title, TranslatableField, Translation, Tree, TreeField, UploaderApi, createNewField, deepEqual, get, getFocusIdentifier, getLabel, isHtmlResponse, isJsonResponse, isXmlResponse, makeApiaUrl, parseFakeJSON$1 as parseFakeJSON, parseSuccessfulResponse, parseXml, post, shallowEqual };
|
|
8516
8591
|
//# sourceMappingURL=index.js.map
|