@apia/execution 4.0.50 → 4.0.60

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/LICENSE.md ADDED
@@ -0,0 +1,6 @@
1
+ All Rights Reserved.
2
+
3
+ Copyright (c) 2026 Statum
4
+
5
+ This software and associated documentation files are proprietary and confidential.
6
+ Unauthorized copying, distribution, modification, or use is strictly prohibited.
package/dist/index.d.ts CHANGED
@@ -311,6 +311,7 @@ type TApiaImageProperties = TApiaFieldCommonProperties & TApiaGroupableFieldProp
311
311
  url?: string;
312
312
  };
313
313
  type TApiaInputProperties = TApiaFieldCommonProperties & TApiaTranslatableFieldProperties & TApiaGroupableFieldProperties & TApiaFieldWithAttributeProperties & TApiaFieldSizableFieldProperties & {
314
+ autoComplete?: string;
314
315
  regExpMessage?: string;
315
316
  placeHolder?: string;
316
317
  autoFocus?: string;
@@ -359,6 +360,7 @@ type TApiaSelectProperties = TApiaFieldCommonProperties & TApiaGroupableFieldPro
359
360
  title?: string;
360
361
  };
361
362
  type TApiaTextareaProperties = TApiaFieldCommonProperties & TApiaTranslatableFieldProperties & TApiaFieldWithAttributeProperties & TApiaFieldSizableFieldProperties & {
363
+ autoComplete?: string;
362
364
  autoFocus?: string;
363
365
  placeHolder?: string;
364
366
  title?: string;
@@ -1050,6 +1052,7 @@ declare class ApiaForm implements IApiaForm {
1050
1052
  clearForm(clearReadonlyFields: boolean, deleteGridsRows: boolean): void;
1051
1053
  hideModal(): void;
1052
1054
  showAsModal(size?: TModalSize): void;
1055
+ renderComponent(componentName: string, el: HTMLElement): void;
1053
1056
  }
1054
1057
 
1055
1058
  declare abstract class ApiaField<Props extends typeof FieldConstants = typeof FieldConstants> implements IApiaField<Props> {
@@ -1102,11 +1105,10 @@ declare class EditorField extends ApiaFieldWithAttribute {
1102
1105
  }
1103
1106
 
1104
1107
  type TOptionsMap$2 = Map<string, PossibleValue>;
1105
- type TOptionsAsArray = PossibleValue[];
1106
1108
  declare class SelectField extends ApiaFieldWithAttribute<string | number | (string | number)[]> {
1107
1109
  #private;
1108
1110
  constructor(execution: Execution, field: Select);
1109
- getOptions(asObject: boolean): TOptionsMap$2 | TOptionsAsArray | null;
1111
+ getOptions(): SelectPossibleValue[];
1110
1112
  getTextValue(value: string): any;
1111
1113
  addOption(optionValue: string | number, showValue: string, allowRepeatedValue: boolean): void;
1112
1114
  setOptions(optionsArray: PossibleValue[]): void;
@@ -1138,7 +1140,7 @@ type TOptionsMap$1 = Map<string, PossibleValue>;
1138
1140
  declare class RadioField extends ApiaFieldWithAttribute {
1139
1141
  #private;
1140
1142
  constructor(execution: Execution, field: Radio);
1141
- getOptions(asObject: boolean): TOptionsMap$1 | PossibleValue[] | null;
1143
+ getOptions(): RadioPossibleValue[];
1142
1144
  clearOptions(): void | null;
1143
1145
  getTextValue(value: string): any;
1144
1146
  addOption(radioValue: string | number, showValue: string, allowRepeatedValue: boolean): void;
@@ -1156,12 +1158,12 @@ declare class MultipleField extends ApiaFieldWithAttribute<string[]> {
1156
1158
  setValue(value: string[]): void;
1157
1159
  clearOptions(): void;
1158
1160
  getSelectedOption(asObject: boolean): TOptionsMap | PossibleValue[] | null;
1159
- getOptions(asObject: boolean): TOptionsMap | PossibleValue[] | null;
1161
+ getOptions(): SelectPossibleValue[];
1160
1162
  setOptions(optionsArray: PossibleValue[]): void;
1161
1163
  removeOption(optionValue: string | number): void;
1162
1164
  }
1163
1165
 
1164
- declare class HiddenField extends ApiaField {
1166
+ declare class HiddenField extends ApiaFieldWithAttribute {
1165
1167
  }
1166
1168
 
1167
1169
  declare class AreaField extends ApiaFieldWithAttribute {
@@ -1893,6 +1895,101 @@ declare class CustomComponent {
1893
1895
  setState<K extends keyof TCustomComponentState>(prop: K, value: TCustomComponentState[K]): void;
1894
1896
  }
1895
1897
 
1898
+ declare enum ExecutionState {
1899
+ RUNNING = 0,
1900
+ LOADING = 1,
1901
+ FINISHED = 2,
1902
+ RENDERING = 3,
1903
+ CONFIRMING = 4,
1904
+ FINISHED_WITH_ERROR = 5
1905
+ }
1906
+ type TOnClose = 'clearEvalPath' | 'confirmOkOnClose' | 'confirmOkOnCloseSplash' | 'confirmOkOnSaveSplash' | 'releaseOkOnClose' | null;
1907
+ type TErrMessage = {
1908
+ message: {
1909
+ text: string;
1910
+ label?: string;
1911
+ };
1912
+ };
1913
+ type TFetchTaskActionResponse = {
1914
+ onClose?: TOnClose;
1915
+ sysMessages?: TErrMessage;
1916
+ sysExceptions?: TErrMessage;
1917
+ type?: string;
1918
+ actions?: {
1919
+ action: {
1920
+ param: string[];
1921
+ toDo: string;
1922
+ };
1923
+ };
1924
+ load?: {
1925
+ canClose: boolean;
1926
+ type: string;
1927
+ text: {
1928
+ label: string;
1929
+ closeAll: boolean;
1930
+ addClass?: string;
1931
+ title?: string;
1932
+ };
1933
+ };
1934
+ text?: {
1935
+ title?: string;
1936
+ label?: string;
1937
+ };
1938
+ };
1939
+ type TConfirmResponse = {
1940
+ onClose: string;
1941
+ pathSelection?: boolean | null;
1942
+ groupSelection?: boolean | null;
1943
+ load?: TApiaLoadForm & {
1944
+ type: 'form' | 'text' | 'table' | 'function';
1945
+ canClose: boolean;
1946
+ text?: {
1947
+ closeAll: string;
1948
+ title: string;
1949
+ addClass: string;
1950
+ label: string;
1951
+ };
1952
+ };
1953
+ actions?: {
1954
+ action: {
1955
+ toDo: 'functionTimedCall';
1956
+ param: [number, string];
1957
+ };
1958
+ };
1959
+ };
1960
+ type TConfirmEntityResponse = {
1961
+ onClose: string;
1962
+ load?: TApiaLoadForm & {
1963
+ type: 'form' | 'text' | 'table' | 'function';
1964
+ canClose: boolean;
1965
+ text?: {
1966
+ closeAll: string;
1967
+ title: string;
1968
+ addClass: string;
1969
+ label?: string;
1970
+ };
1971
+ };
1972
+ actions?: {
1973
+ action: {
1974
+ toDo: 'functionTimedCall';
1975
+ param: string[];
1976
+ };
1977
+ };
1978
+ };
1979
+ type FieldError = {
1980
+ id: string;
1981
+ errorMessage: string;
1982
+ title: string;
1983
+ focus: string;
1984
+ };
1985
+ type TAdmEntityEvent = {
1986
+ entName: string;
1987
+ entNum?: number;
1988
+ parameters?: string;
1989
+ width?: number;
1990
+ height?: number;
1991
+ };
1992
+
1896
1993
  declare class Form extends WithProperties<TApiaFormProperties> {
1897
1994
  execution: Execution;
1898
1995
  fields: TApiaFieldBaseDefinition<Record<string, any>>[];
@@ -1957,6 +2054,7 @@ declare class Form extends WithProperties<TApiaFormProperties> {
1957
2054
  fireScriptEvent(eventName: TFormEventName): Promise<boolean>;
1958
2055
  validate(): Promise<true | Field>;
1959
2056
  getProperty<K extends keyof TApiaFormProperties>(propName: K | 'readOnly'): TApiaFormProperties[K];
2057
+ getErrorsList(): FieldError[];
1960
2058
  }
1961
2059
 
1962
2060
  type TTranslationState = {
@@ -2502,48 +2600,6 @@ declare abstract class FlowModal<T extends {
2502
2600
  abstract confirm(result: T): Promise<Status | FlowModal<any>>;
2503
2601
  }
2504
2602
 
2505
- declare enum ExecutionState {
2506
- RUNNING = 0,
2507
- LOADING = 1,
2508
- FINISHED = 2,
2509
- RENDERING = 3,
2510
- CONFIRMING = 4,
2511
- FINISHED_WITH_ERROR = 5
2512
- }
2513
- type TOnClose = 'clearEvalPath' | 'confirmOkOnClose' | 'confirmOkOnCloseSplash' | 'confirmOkOnSaveSplash' | 'releaseOkOnClose' | null;
2514
- type TErrMessage = {
2515
- message: {
2516
- text: string;
2517
- label?: string;
2518
- };
2519
- };
2520
- type TFetchTaskActionResponse = {
2521
- onClose?: TOnClose;
2522
- sysMessages?: TErrMessage;
2523
- sysExceptions?: TErrMessage;
2524
- type?: string;
2525
- actions?: {
2526
- action: {
2527
- param: string[];
2528
- toDo: string;
2529
- };
2530
- };
2531
- load?: {
2532
- canClose: boolean;
2533
- type: string;
2534
- text: {
2535
- label: string;
2536
- closeAll: boolean;
2537
- addClass?: string;
2538
- title?: string;
2539
- };
2540
- };
2541
- text?: {
2542
- title?: string;
2543
- label?: string;
2544
- };
2545
- };
2546
-
2547
2603
  type TCheckWizardResponse = {
2548
2604
  url: string;
2549
2605
  };
@@ -2692,6 +2748,12 @@ declare class Execution extends EventEmitter$1<{
2692
2748
  form: Form;
2693
2749
  size?: TModalSize;
2694
2750
  };
2751
+ renderComponent: {
2752
+ form: Form;
2753
+ componentName: string;
2754
+ el: HTMLElement;
2755
+ };
2756
+ adminEntity: TAdmEntityEvent;
2695
2757
  }> {
2696
2758
  environment: TExecutionEnvironment;
2697
2759
  renderers?: TModalConfig['renderers'];
@@ -2723,6 +2785,7 @@ declare class Execution extends EventEmitter$1<{
2723
2785
  hasChangedAnything: boolean;
2724
2786
  };
2725
2787
  addPendingPromise(promise: Promise<boolean>): void;
2788
+ getErrorsList(): FieldError[];
2726
2789
  getAllForms(): Form[];
2727
2790
  private hasInitializedFormsTabs;
2728
2791
  initializeFormsTabs(frmParent: TFrmParent, cb: () => unknown): void;
@@ -3686,5 +3749,5 @@ declare function parseFakeJSON<T extends Record<string, unknown>>(str: string):
3686
3749
 
3687
3750
  declare function getFocusIdentifier(field: Field): string;
3688
3751
 
3689
- 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, 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 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 TCusCmpStateRequest, type TCustomComponentDefaultResponse, type TCustomComponentDefinition, type TExecutionConfig, type TFetchConfirmPathResponse, 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 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 };
3752
+ 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 };
3690
3753
  //# sourceMappingURL=index.d.ts.map