@apia/execution 4.0.60 → 4.0.63
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/index.d.ts +5 -2
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -220,6 +220,7 @@ type TApiaFieldCommonProperties = {
|
|
|
220
220
|
tooltip?: string;
|
|
221
221
|
tooltipHelp?: boolean;
|
|
222
222
|
visibilityHidden?: boolean;
|
|
223
|
+
value?: string;
|
|
223
224
|
};
|
|
224
225
|
type TApiaFieldSizableFieldProperties = {
|
|
225
226
|
size?: string;
|
|
@@ -850,7 +851,7 @@ declare class ApiaFunctions implements IApiaFunctions {
|
|
|
850
851
|
showMessage(_text: string): void;
|
|
851
852
|
showConfirm(_text: string, _title: string, _callbackFn: (win: boolean) => unknown): void;
|
|
852
853
|
getFormByType(frmName: string, frmType: TFrmParent): IApiaForm | null;
|
|
853
|
-
admEntity(entName: string, entNum?: number, parameters?: string, width?: number, height?: number): void;
|
|
854
|
+
admEntity(entName: string, entNum?: number, parameters?: Record<string, string>, width?: number, height?: number): void;
|
|
854
855
|
clearMessages(): void;
|
|
855
856
|
clickActionButton(button: number): void;
|
|
856
857
|
disableActionButton(id: number): void;
|
|
@@ -1201,6 +1202,7 @@ declare class TextField extends ApiaField implements ITextField {
|
|
|
1201
1202
|
constructor(execution: Execution, field: Field);
|
|
1202
1203
|
getLabel(): void;
|
|
1203
1204
|
setValue(value: string): void;
|
|
1205
|
+
getValue(): any;
|
|
1204
1206
|
}
|
|
1205
1207
|
|
|
1206
1208
|
declare class GridField extends ApiaField {
|
|
@@ -1828,6 +1830,7 @@ declare class FileUploaderField extends ApiaFieldWithAttribute {
|
|
|
1828
1830
|
onChange(cb: (newValue: unknown) => unknown): void;
|
|
1829
1831
|
setValue(): null;
|
|
1830
1832
|
downloadDocument(): Promise<void>;
|
|
1833
|
+
getValue(): string;
|
|
1831
1834
|
}
|
|
1832
1835
|
|
|
1833
1836
|
declare class PasswordField extends ApiaField {
|
|
@@ -1985,7 +1988,7 @@ type FieldError = {
|
|
|
1985
1988
|
type TAdmEntityEvent = {
|
|
1986
1989
|
entName: string;
|
|
1987
1990
|
entNum?: number;
|
|
1988
|
-
parameters?: string
|
|
1991
|
+
parameters?: Record<string, string>;
|
|
1989
1992
|
width?: number;
|
|
1990
1993
|
height?: number;
|
|
1991
1994
|
};
|
package/dist/index.js
CHANGED
|
@@ -3338,6 +3338,7 @@ class Grid extends Field {
|
|
|
3338
3338
|
}
|
|
3339
3339
|
async init(form) {
|
|
3340
3340
|
await super.init(form);
|
|
3341
|
+
this.state.isMaximized = localStorage.getItem(`${this.definition.id}__isMaximized`) === "true";
|
|
3341
3342
|
const headerRow = new Row("header");
|
|
3342
3343
|
if (this.properties.gridForm || !this.properties.hideDelButton && !this.properties.readonly && !this.properties.inputAsText && !this.getForm().definition.readOnly && !this.getForm().definition.readonly)
|
|
3343
3344
|
headerRow.addCell(
|
|
@@ -3748,6 +3749,10 @@ class Grid extends Field {
|
|
|
3748
3749
|
}
|
|
3749
3750
|
toggleMaximize() {
|
|
3750
3751
|
this.state.isMaximized = !this.state.isMaximized;
|
|
3752
|
+
localStorage.setItem(
|
|
3753
|
+
`${this.definition.id}__isMaximized`,
|
|
3754
|
+
String(this.state.isMaximized)
|
|
3755
|
+
);
|
|
3751
3756
|
}
|
|
3752
3757
|
}
|
|
3753
3758
|
|
|
@@ -5289,6 +5294,9 @@ class TextField extends ApiaField {
|
|
|
5289
5294
|
setValue(value) {
|
|
5290
5295
|
this.setProperty("value", value);
|
|
5291
5296
|
}
|
|
5297
|
+
getValue() {
|
|
5298
|
+
return __privateGet$8(this, _field$4).properties.value;
|
|
5299
|
+
}
|
|
5292
5300
|
}
|
|
5293
5301
|
_field$4 = new WeakMap();
|
|
5294
5302
|
|
|
@@ -5643,6 +5651,9 @@ class FileUploaderField extends ApiaFieldWithAttribute {
|
|
|
5643
5651
|
async downloadDocument() {
|
|
5644
5652
|
await __privateGet$5(this, _field$1).downloadDocument();
|
|
5645
5653
|
}
|
|
5654
|
+
getValue() {
|
|
5655
|
+
return __privateGet$5(this, _field$1).uploader?.filesArray?.[0]?.docName ?? "";
|
|
5656
|
+
}
|
|
5646
5657
|
}
|
|
5647
5658
|
_field$1 = new WeakMap();
|
|
5648
5659
|
|
|
@@ -5989,7 +6000,7 @@ class ApiaFunctions {
|
|
|
5989
6000
|
ActionsController.instance.show(id);
|
|
5990
6001
|
}
|
|
5991
6002
|
viewAdmEntity(entName, entNum) {
|
|
5992
|
-
this.admEntity(entName, entNum);
|
|
6003
|
+
this.admEntity(entName, entNum, { viewMode: "true" });
|
|
5993
6004
|
}
|
|
5994
6005
|
changeTab(index) {
|
|
5995
6006
|
if (window.tabsController)
|