@apia/execution 4.0.28 → 4.0.30

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 CHANGED
@@ -626,1888 +626,2712 @@ declare abstract class FieldWithAttribute<FieldProps extends TApiaFieldWithAttri
626
626
  init(form: Form): Promise<void>;
627
627
  }
628
628
 
629
- type TCustomComponentState = {
630
- isLoading: boolean;
631
- attributes: Record<string, any[]>;
632
- properties: Record<string, any>;
633
- additional: any;
634
- component: any;
635
- };
636
- declare class CustomComponent {
637
- #private;
638
- execution: Execution;
639
- readonly definition: TCustomComponentDefinition;
640
- form: Form;
641
- private _state;
642
- constructor(execution: Execution, definition: TCustomComponentDefinition);
643
- get state(): DeepReadonly<TCustomComponentState>;
644
- getAdditional<T>(): DeepReadonly<T>;
645
- init(form: Form): Promise<void>;
646
- private parseStateObject;
647
- processResult<Result extends Record<string, unknown> = Record<string, unknown>>(res?: TCustomComponentDefaultResponse | null): Promise<(Result & {
648
- success: boolean;
649
- }) | undefined>;
650
- protected getScriptEventParams(fncParams: TFncParams[]): unknown[];
651
- protected fireScriptEvents(event: ComponentEvent): Promise<boolean>;
652
- fireEvent(evtName: string): Promise<boolean>;
653
- getProperty(prpName: string): any;
654
- private postMessage;
655
- setStringValue(attName: string, value: string): Promise<boolean>;
656
- getStringValue(attName: string): string;
657
- getValue(attName: string, index?: number): any;
658
- getValues(attName: string): any[];
659
- removeIndex(attName: string, index: number): Promise<boolean>;
660
- setValue(attName: string, value: any, index: number): Promise<boolean>;
661
- setProperty(prpName: string, value: any): Promise<boolean>;
662
- sendMessage<T extends Record<string, unknown> = Record<string, unknown>>(payload: any): Promise<(T & {
663
- success: boolean;
664
- }) | undefined>;
665
- download(attName: string, index: number): Promise<void>;
666
- upload(attName: string, file: File, options?: {
667
- onUploadProgress?: (percent: number) => unknown;
668
- params?: Record<string, any>;
669
- } & Pick<AxiosRequestConfig<any>, 'signal'>): Promise<({
670
- index: number;
671
- fileName: string;
672
- } & {
673
- success: boolean;
674
- }) | undefined>;
675
- setState<K extends keyof TCustomComponentState>(prop: K, value: TCustomComponentState[K]): void;
676
- }
629
+ declare const FieldConstants: Readonly<{
630
+ TYPE_INPUT: "input";
631
+ TYPE_SELECT: "select";
632
+ TYPE_RADIO: "radio";
633
+ TYPE_CHECK: "check";
634
+ TYPE_BUTTON: "button";
635
+ TYPE_AREA: "area";
636
+ TYPE_LABEL: "label";
637
+ TYPE_TITLE: "title";
638
+ TYPE_FILE: "file";
639
+ TYPE_MULTIPLE: "multiple";
640
+ TYPE_HIDDEN: "hidden";
641
+ TYPE_PASSWORD: "password";
642
+ TYPE_GRID: "grid";
643
+ TYPE_IMAGE: "image";
644
+ TYPE_HREF: "href";
645
+ TYPE_EDITOR: "editor";
646
+ TYPE_TREE: "tree";
647
+ TYPE_CAPTCHA: "captcha";
648
+ PROPERTY_NAME: "name";
649
+ PROPERTY_SIZE: "size";
650
+ PROPERTY_READONLY: "readonly";
651
+ PROPERTY_DISABLED: "disabled";
652
+ PROPERTY_MODAL_DISABLED: "modalDisabled";
653
+ PROPERTY_FONT_COLOR: "fontColor";
654
+ PROPERTY_VALUE: "value";
655
+ PROPERTY_REQUIRED: "required";
656
+ PROPERTY_COLSPAN: "colspan";
657
+ PROPERTY_ROWSPAN: "rowspan";
658
+ PROPERTY_MODAL: "modal";
659
+ PROPERTY_ROWS: "thisRows";
660
+ PROPERTY_BOLD: "bold";
661
+ PROPERTY_UNDERLINED: "underlined";
662
+ PROPERTY_ALIGNMENT: "alignment";
663
+ PROPERTY_IMAGE: "imageUrl";
664
+ PROPERTY_COL_WIDTH: "colWidth";
665
+ PROPERTY_GRID_HEIGHT: "gridHeight";
666
+ PROPERTY_HIDE_GRID_BTN: "hideGridButtons";
667
+ PROPERTY_VISIBILITY_HIDDEN: "visibilityHidden";
668
+ PROPERTY_TRANSIENT: "transient";
669
+ PROPERTY_GRID_TITLE: "gridTitle";
670
+ PROPERTY_GRID_FORM: "gridForm";
671
+ PROPERTY_TOOLTIP: "tooltip";
672
+ PROPERTY_VALUE_COLOR: "valueColor";
673
+ PROPERTY_INPUT_AS_TEXT: "inputAsText";
674
+ PROPERTY_NO_DOWNLOAD: "noDownload";
675
+ PROPERTY_NO_ERASE: "noErase";
676
+ PROPERTY_NO_LOCK: "noLock";
677
+ PROPERTY_NO_HISTORY: "noHistory";
678
+ PROPERTY_NO_MODIFY: "noModify";
679
+ PROPERTY_ALLOW_EDITION: "allowEdition";
680
+ PROPERTY_HIDE_SIGN_ICONS: "hideSignButtons";
681
+ PROPERTY_URL: "url";
682
+ PROPERTY_GRID_HIDE_BTN_ORDER: "hideOrderButton";
683
+ PROPERTY_GRID_HIDE_BTN_INCLUDE: "hideIncludeButton";
684
+ PROPERTY_REGEXP_MESSAGE: "regExpMessage";
685
+ PROPERTY_PAGED_GRID: "paged";
686
+ PROPERTY_PAGED_GRID_SIZE: "pagedGridSize";
687
+ PROPERTY_GRID_ALTER_IN_LAST_PAGE: "alterOnlyLastPage";
688
+ PROPERTY_GRID_PRINT_HORIZONTAL: "printHorizontal";
689
+ PROPERTY_STORE_MODAL_QUERY_RESULT: "storeMdlQryResult";
690
+ PROPERTY_INCLUDE_FIRST_ROW: "includeFirstRow";
691
+ PROPERTY_MAX_REG_GRID: "maxRecords";
692
+ PROPERTY_GRID_LABEL: "gridColTitle";
693
+ PROPERTY_GRID_QUERY: "gridQuery";
694
+ PROPERTY_HIDE_DOC_PERMISSIONS: "hideDocPermissions";
695
+ PROPERTY_VERIFY_SIGNATURE_ONLY: "verifySignatureOnly";
696
+ PROPERTY_GRID_HIDE_BTN_ADD: "hideAddButton";
697
+ PROPERTY_GRID_HIDE_BTN_DEL: "hideDelButton";
698
+ PROPERTY_HIDE_DOC_UPLOAD: "hideDocUpload";
699
+ PROPERTY_HIDE_DOC_DOWNLOAD: "hideDocDownload";
700
+ PROPERTY_HIDE_DOC_ERASE: "hideDocErase";
701
+ PROPERTY_HIDE_DOC_LOCK: "hideDocLock";
702
+ PROPERTY_HIDE_DOC_HISTORY: "hideDocHistory";
703
+ PROPERTY_HIDE_DOC_SIGN: "hideSignButtons";
704
+ PROPERTY_DISPLAY_NONE: "displayNone";
705
+ PROPERTY_DONT_BREAK_RADIO: "dontBreakRadio";
706
+ PROPERTY_CHECKED: "checked";
707
+ PROPERTY_FILE_PREVIEW: "filePreview";
708
+ PROPERTY_NOT_PRINT: "noPrint";
709
+ PROPERTY_SELECT_PARENT: "selParent";
710
+ PROPERTY_HEIGHT: "height";
711
+ PROPERTY_MULTISELECT: "multiselect";
712
+ PROPERTY_SEL_PARENT: "selParent";
713
+ PROPERTY_PARENT_ICON: "parentIcon";
714
+ PROPERTY_LEAF_ICON: "leafIcon";
715
+ PROPERTY_CSS_CLASS: "cssClass";
716
+ PROPERTY_DOC_TYPE: "docType";
717
+ PROPERTY_HIDE_DOC_METADATA: "hideDocMetadata";
718
+ PROPERTY_TRANSLATION_REQUIRED: "reqTrad";
719
+ PROPERTY_SIGNATURE_REQUIRED: "reqSign";
720
+ PROPERTY_SHOW_TOOLTIP_AS_HELP: "tooltipHelp";
721
+ PROPERTY_DOCUMENT_MONITOR_DEF: "documentMonitorDef";
722
+ PROPERTY_DOCUMENT_MONITOR_CUS: "documentMonitorCus";
723
+ PROPERTY_DOCUMENT_SHOW_FOLD_TREE_BTN: "fileShwFoldTreeBtn";
724
+ PROPERTY_DOCUMENT_SHOW_FOLD_TREE_STR: "fileShwFoldTreeStr";
725
+ PROPERTY_DOCUMENT_NO_ALLOW_DRAG_DROP: "fileNoAllwDnD";
726
+ PROPERTY_DOCUMENT_NO_SHOW_MODAL: "fileDntShwDocMdlOnDrop";
727
+ PROPERTY_DOCUMENT_SHOW_DESC: "fileShowDesc";
728
+ PROPERTY_DOCUMENT_DEFAULT_FOLDER: "fileDefFolder";
729
+ PROPERTY_DOCUMENT_ROOT_FOLDER: "fileRootFolder";
730
+ PROPERTY_DOCUMENT_EXP_DATE: "fileExpDate";
731
+ PROPERTY_DOCUMENT_DNT_SHW_DOC_MON: "fileNotShowDocMon";
732
+ PROPERTY_DOCUMENT_COLLAPSE_PERM: "fileCollapsePermission";
733
+ PROPERTY_DOCUMENT_COLLAPSE_META: "fileCollapseMetadata";
734
+ PROPERTY_DOCUMENT_COLLAPSE_FLD_STC: "fileCollapseFldStrc";
735
+ WRONG_ATT_TYPE_ERROR: "Component does not support attributes of type <TOK>. Contact system administrator";
736
+ STORE_KEY_FIELD: "field";
737
+ STORE_KEY_FORM: "form";
738
+ PROPERTY_ARIA_DESCRIPTION: "ariaDescription";
739
+ PROPERTY_ARIA_LABEL: "ariaLabel";
740
+ PROPERTY_ALT: "alt";
741
+ PROPERTY_AUTO_COMPLETE: "autoComplete";
742
+ PROPERTY_AUTO_FOCUS: "autoFocus";
743
+ PROPERTY_INPUT_TYPE: "inputType";
744
+ PROPERTY_PLACE_HOLDER: "placeHolder";
745
+ PROPERTY_TITLE: "title";
746
+ }>;
677
747
 
678
- declare class Form extends WithProperties<TApiaFormProperties> {
679
- execution: Execution;
680
- fields: TApiaFieldBaseDefinition<Record<string, any>>[];
681
- state: {
682
- isMarkedToSign: boolean;
683
- };
684
- protected _customComponents: Map<string, CustomComponent>;
685
- protected fieldsById: Map<string, Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
686
- definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
687
- }>>;
688
- protected fieldsByName: Map<string, Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
689
- definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
690
- }>>;
691
- protected fieldsByAttributeId: Map<string | number, FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>>>;
692
- protected fieldsByAttributeName: Map<string, FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>>>;
693
- protected fieldsGroups: Map<string, Grid>;
694
- definition: TApiaForm;
695
- constructor(execution: Execution, definition: TApiaForm);
696
- get allFields(): Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
697
- definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
698
- }>[];
699
- get customComponents(): Map<string, CustomComponent>;
700
- closeForm(): void;
748
+ declare const FormConstants: Readonly<{
749
+ PROPERTY_FORM_HIDDEN: "frmHidden";
750
+ PROPERTY_FORM_HIGHLIGHT: "frmHighlight";
751
+ PROPERTY_FORM_CLOSED: "prpFrmClosed";
752
+ PROPERTY_FORM_TAB: "frmTab";
753
+ PROPERTY_FORM_DONT_FIRE: "frmDontFire";
754
+ PROPERTY_FORM_READONLY: "readOnly";
755
+ }>;
756
+
757
+ interface IIProperty {
758
+ [key: string]: string;
759
+ }
760
+ interface IApiaFunctions {
761
+ getLastModalReturn: () => string[];
762
+ getModalReturn: () => string[];
763
+ getModalValue: () => string;
764
+ getModalShowValue: () => string;
765
+ setLastModalReturn: (value: string[]) => void;
766
+ getModalSelectedRow: () => string[];
767
+ getForm(frmName: string, frmType?: string): IApiaForm | null;
768
+ getAllForms(): IApiaForm[];
769
+ getEntityForm(frmName: string): IApiaForm | null;
770
+ getProcessForm(frmName: string): IApiaForm | null;
771
+ getAttField(attType: 'P' | 'E', attId: string): IApiaField | IApiaField[] | undefined;
772
+ setStepTitle(stepNumber: number, stepTitle: string): void;
773
+ getCurrentStep(): number | null;
774
+ getCurrentTaskName(): string | null;
775
+ getCurrentProcessName(): string | null;
776
+ getRootPath(): string | null;
777
+ getCurrentLanguageCode(): string | null;
778
+ toJSNumber(value: string): number | string;
779
+ toApiaNumber(value: number): number | string;
780
+ disableActionButton(btnIdx: string): void;
781
+ enableActionButton(btnIdx: string): void;
782
+ disableOptionButton(btnIdx: string): void;
783
+ enableOptionButton(btnIdx: string): void;
784
+ hideOptionButton(btnIdx: string): void;
785
+ showOptionButton(btnIdx: string): void;
786
+ openTab(title: string, url: string): void;
787
+ showMessage(text: string): void;
788
+ showConfirm(text: string, title: string, callbackFn: (win: boolean) => unknown): void;
789
+ }
790
+ interface IApiaForm {
791
+ getFrmId(): string | null;
792
+ getFrmParent(): string;
793
+ getFormName(): string;
794
+ getFormTitle(): string;
701
795
  openForm(): void;
702
- getField(field: string, index?: number): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
703
- definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
704
- }> | Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
705
- definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
706
- }> | FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>> | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
707
- definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
708
- }>[] | undefined;
709
- getFieldByAttributeId(attId: string | number, index?: number): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
710
- definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
711
- }> | FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>> | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
712
- definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
713
- }>[] | undefined;
714
- getFieldByAttributeName(attName: string, index?: number): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
715
- definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
716
- }> | FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>> | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
717
- definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
718
- }>[] | undefined;
719
- getFieldById(id: string | number, index?: number): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
720
- definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
721
- }> | Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
722
- definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
723
- }> | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
724
- definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
725
- }>[] | undefined;
726
- getFieldByName(name: string, index?: number): Field | Field[] | undefined;
727
- protected getHiddenFields(): Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
728
- definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
729
- }>[];
730
- markFormToSign(): Promise<void>;
731
- viewSigns(): Promise<TSignaturesData | undefined>;
732
- private cucCmpByAttId;
733
- private cucCmpByFldId;
734
- private cucCmpByAttName;
735
- private mustRenderFields;
736
- getCustomComponentByFldId(fldId: number): CustomComponent | undefined;
737
- getCustomComponentByAttId(attId: number): CustomComponent | undefined;
738
- getCustomComponentByAttName(attName: string): CustomComponent | undefined;
739
- addFieldToRender(fldId: string, fldIndex?: number): void;
740
- markFieldAsRendered(fldId: string, fldIndex?: number): void;
741
- init(): Promise<void>;
742
- protected getScriptEventParams(fncParams: TFncParams[]): Promise<unknown[]>;
743
- fireScriptEvent(eventName: TFormEventName): Promise<boolean>;
744
- validate(): Promise<true | Field>;
796
+ closeForm(): void;
797
+ getProperty<K extends keyof typeof FormConstants>(name: (typeof FormConstants)[K]): unknown;
798
+ setProperty<K extends keyof typeof FormConstants>(name: (typeof FormConstants)[K], value: unknown): void;
799
+ getField(fld: number | string, index?: number): IApiaField | undefined;
800
+ getFieldColumn(fldName: string): IApiaField[];
801
+ getAllFields(): IApiaField[];
802
+ clearForm(clearReadonlyFields: boolean, deleteGridsRows: boolean): void;
745
803
  }
746
-
747
- type TTranslationState = {
748
- id: string;
804
+ interface IApiaField<Props extends typeof FieldConstants = typeof FieldConstants> {
805
+ get fldType(): TApiaFieldType;
806
+ get fldId(): string;
807
+ /**
808
+ * Assigns a new value to the property whoose name's correspond to that determined by the name paremeter.
809
+ */
810
+ setProperty<K extends keyof Props>(name: Props[K], value: unknown): void;
811
+ /**
812
+ * Returns the current value of the property determined by the name in the paremeter.
813
+ */
814
+ getProperty<K extends keyof Props>(name: Props[K]): unknown;
815
+ /**
816
+ * Sets the focus on the field if possible.
817
+ */
818
+ setFocus(): void;
819
+ /**
820
+ * Returns true if the field is part of a grid.
821
+ */
822
+ isInGrid(): boolean;
823
+ }
824
+ interface IButton {
825
+ disabled: boolean;
826
+ hidden: boolean;
749
827
  label: string;
750
- hasChanged: boolean;
751
- isTranslated: boolean;
752
- remoteValue?: string;
753
- tempValue: string;
828
+ isLoading: boolean;
829
+ title: string;
830
+ variant?: string;
831
+ action: Promise<() => unknown> | string;
832
+ id: TActionButtons;
833
+ }
834
+ type TActionButtons = 'sbtEjeDoc' | 'btnClose' | 'lblExeDelegar' | 'btnCon' | 'btnSig' | 'btnStaPri' | 'btnAnt' | 'btnEjeLib' | 'btnGua' | 'SIGN' | 'lblShareMsg';
835
+ type TApiaFieldType = 'area' | 'button' | 'captcha' | 'check' | 'editor' | 'file' | 'grid' | 'hidden' | 'href' | 'image' | 'input' | 'label' | 'multiple' | 'password' | 'radio' | 'select' | 'title' | 'tree' | 'form';
836
+ type PossibleValue = {
837
+ value: string | number;
838
+ label: string;
839
+ selected?: boolean;
754
840
  };
755
841
 
756
- declare class Translation {
757
- execution: Execution;
758
- state: TTranslationState;
759
- constructor(execution: Execution, state: Pick<TTranslationState, 'id' | 'label' | 'isTranslated'>);
760
- cancelTranslation(): void;
761
- readTranslations(url: string): Promise<void>;
762
- reset(): void;
763
- deleteTranslation(): void;
764
- setTempValue(str: string): void;
765
- submitTranslation(value: string, url: string): void;
766
- get langId(): string;
767
- get value(): string;
842
+ declare class ButtonsAction {
843
+ private button;
844
+ constructor(button: IButton);
845
+ private update;
846
+ get action(): this;
847
+ get disabled(): boolean;
848
+ get props(): {
849
+ disabled: boolean;
850
+ hidden: boolean;
851
+ loading: boolean;
852
+ };
853
+ get label(): string;
854
+ get title(): string;
855
+ get variant(): string;
856
+ set title(title: string);
857
+ set variant(variant: string);
858
+ disable(): void;
859
+ enable(): void;
860
+ hide(): void;
861
+ show(): void;
768
862
  }
769
863
 
770
- interface InitialTradMap {
771
- [key: string]: boolean;
864
+ declare global {
865
+ interface Window {
866
+ lastModalReturn: string[];
867
+ }
772
868
  }
773
- declare abstract class TranslatableField<FieldProps extends TApiaTranslatableFieldProperties = TApiaTranslatableFieldProperties, ValueType = any, FieldDefinition extends TApiaFieldWithAttributeBaseProps<FieldProps> = TApiaFieldWithAttributeBaseProps<FieldProps>> extends FieldWithAttribute<FieldProps, ValueType, FieldDefinition> {
774
- translations: Map<string, Translation>;
775
- selectedLanguageId: string;
776
- isTradLoading: boolean;
777
- definitionTradParsed: InitialTradMap;
778
- constructor(props: TApiaFieldWithAttributeBaseProps<FieldProps>);
779
- private extractTrad;
780
- private getLanguages;
781
- init(form: Form): Promise<void>;
782
- cancelTranslations(): void;
783
- deleteTranslations(): void;
784
- changeLanguage(langId: string): Promise<void>;
785
- getTranslation(id: string): Translation | undefined;
786
- getCurrentTranslation(): Translation | undefined;
787
- getTranslations(): Map<string, Translation>;
788
- submitTranslations(): void;
789
- syncTranslation(): Promise<void>;
790
- validate(): Promise<boolean>;
791
- setValue(newValue: ValueType, options?: Partial<{
792
- comparator: Comparator$1<any>;
793
- format: 'd/m/Y' | 'apia';
794
- markAsDirty: boolean;
795
- synchronize: boolean;
796
- }> | undefined): Promise<boolean>;
869
+ declare class ApiaFunctions implements IApiaFunctions {
870
+ execution: Execution;
871
+ constructor(execution: Execution);
872
+ toJSNumber(_value: string): number | string;
873
+ toApiaNumber(_value: number): number | string;
874
+ openTab(_title: string, _url: string): void;
875
+ showMessage(_text: string): void;
876
+ showConfirm(_text: string, _title: string, _callbackFn: (win: boolean) => unknown): void;
877
+ getFormByType(frmName: string, frmType: TFrmParent): IApiaForm | null;
878
+ actionButton(id: string | number): ButtonsAction | undefined;
879
+ admEntity(entName: string, entNum?: number, parameters?: string, width?: number, height?: number): void;
880
+ clearMessages(): void;
881
+ clickActionButton(button: number): void;
882
+ disableActionButton(id: string | number): void;
883
+ disableOptionButton(id: string | number): void;
884
+ enableActionButton(id: string | number): void;
885
+ enableOptionButton(id: string | number): void;
886
+ getAllForms(): IApiaForm[];
887
+ getAllFormsByType(type: 'P' | 'E'): IApiaForm[];
888
+ getAttField(attType: 'P' | 'E', attId: string): IApiaField | IApiaField[] | undefined;
889
+ getButtonAction(id: number | string): "sbtEjeDoc" | "btnClose" | "lblExeDelegar" | "btnCon" | "btnSig" | "btnStaPri" | "btnAnt" | "btnEjeLib" | "btnGua" | "lblShareMsg";
890
+ getCurrentLanguageCode(): string | null;
891
+ getCurrentProcessName(): string | null;
892
+ getCurrentStep(): number | null;
893
+ getCurrentTaskName(): string | null;
894
+ getEntityForm(frmName: string): IApiaForm | null;
895
+ getForm(frmName: string, frmType?: string): IApiaForm | null;
896
+ getLastModalReturn(): string[];
897
+ getModalReturn(): string[];
898
+ getModalSelectedRow(): string[];
899
+ getModalShowValue(): string;
900
+ getModalValue(): string;
901
+ getProcessForm(frmName: string): IApiaForm | null;
902
+ getRootPath(): string | null;
903
+ hideActionButton(id: string | number): void;
904
+ hideOptionButton(id: string | number): void;
905
+ saveTask(): void;
906
+ setLastModalReturn(value: string[]): void;
907
+ setStepTitle(stepNumber: number, stepTitle: string): void;
908
+ showActionButton(id: string | number): void;
909
+ showOptionButton(id: string | number): void;
910
+ viewAdmEntity(entName: string, entNum?: number): void;
797
911
  }
798
912
 
799
- type FieldConstructor = new (definition: any) => Field<any, any, any> | FieldWithAttribute<any, any, any> | TranslatableField<any, any, any>;
800
- type FieldsMapping = Record<string, (definition: any) => FieldConstructor>;
913
+ declare class ActionsController {
914
+ static CONFIRM: number;
915
+ static NEXT: number;
916
+ static PREVIOUS: number;
917
+ static SIGN: number;
918
+ static SAVE: number;
919
+ static RELEASE: number;
920
+ static DELEGATE: number;
921
+ static SHARE: number;
922
+ static PRINT: number;
923
+ static VIEW_DOCS: number;
924
+ static CLOSE: number;
925
+ private static _instance;
926
+ static get instance(): ActionsController;
927
+ private buttons;
928
+ addButton(button: IButton): void;
929
+ getButton(id: TActionButtons): ButtonsAction | undefined;
930
+ }
801
931
 
802
- type NotificationIcon = string;
803
- type NotificationType = 'info' | 'error' | 'success' | 'warning';
804
- type NotificationDefinition = {
805
- icon?: NotificationIcon;
806
- id?: string | number;
807
- isOpen?: boolean;
808
- message: string;
809
- stackTrace?: string;
810
- title?: string;
811
- type?: NotificationType;
812
- };
813
- declare abstract class Notification<State extends NotificationDefinition = NotificationDefinition> {
814
- readonly props: State;
815
- protected state: State;
816
- constructor(props: State);
817
- get icon(): string | undefined;
818
- get id(): string | number | undefined;
819
- get isOpen(): boolean | undefined;
820
- get message(): string;
821
- get stackTrace(): string | undefined;
822
- get title(): string | undefined;
823
- get type(): NotificationType | undefined;
932
+ declare class ApiaForm implements IApiaForm {
933
+ #private;
934
+ constructor(execution: Execution, form: Form);
935
+ getFrmParent(): string;
936
+ getFrmId(): string | null;
937
+ getFormName(): string;
938
+ getFormTitle(): string;
939
+ openForm(): void;
940
+ closeForm(): void;
941
+ getProperty<K extends keyof typeof FormConstants>(name: (typeof FormConstants)[K]): unknown;
942
+ setProperty<K extends keyof typeof FormConstants>(name: (typeof FormConstants)[K], value: unknown): void;
943
+ getCustomComponent(attName: string): CustomComponent | undefined;
944
+ getField(fld: string | number, index?: number): IApiaField | undefined;
945
+ getFieldById(fldId: string): IApiaField<Readonly<{
946
+ TYPE_INPUT: "input";
947
+ TYPE_SELECT: "select";
948
+ TYPE_RADIO: "radio";
949
+ TYPE_CHECK: "check";
950
+ TYPE_BUTTON: "button";
951
+ TYPE_AREA: "area";
952
+ TYPE_LABEL: "label";
953
+ TYPE_TITLE: "title";
954
+ TYPE_FILE: "file";
955
+ TYPE_MULTIPLE: "multiple";
956
+ TYPE_HIDDEN: "hidden";
957
+ TYPE_PASSWORD: "password";
958
+ TYPE_GRID: "grid";
959
+ TYPE_IMAGE: "image";
960
+ TYPE_HREF: "href";
961
+ TYPE_EDITOR: "editor";
962
+ TYPE_TREE: "tree";
963
+ TYPE_CAPTCHA: "captcha";
964
+ PROPERTY_NAME: "name";
965
+ PROPERTY_SIZE: "size";
966
+ PROPERTY_READONLY: "readonly";
967
+ PROPERTY_DISABLED: "disabled";
968
+ PROPERTY_MODAL_DISABLED: "modalDisabled";
969
+ PROPERTY_FONT_COLOR: "fontColor";
970
+ PROPERTY_VALUE: "value";
971
+ PROPERTY_REQUIRED: "required";
972
+ PROPERTY_COLSPAN: "colspan";
973
+ PROPERTY_ROWSPAN: "rowspan";
974
+ PROPERTY_MODAL: "modal";
975
+ PROPERTY_ROWS: "thisRows";
976
+ PROPERTY_BOLD: "bold";
977
+ PROPERTY_UNDERLINED: "underlined";
978
+ PROPERTY_ALIGNMENT: "alignment";
979
+ PROPERTY_IMAGE: "imageUrl";
980
+ PROPERTY_COL_WIDTH: "colWidth";
981
+ PROPERTY_GRID_HEIGHT: "gridHeight";
982
+ PROPERTY_HIDE_GRID_BTN: "hideGridButtons";
983
+ PROPERTY_VISIBILITY_HIDDEN: "visibilityHidden";
984
+ PROPERTY_TRANSIENT: "transient";
985
+ PROPERTY_GRID_TITLE: "gridTitle";
986
+ PROPERTY_GRID_FORM: "gridForm";
987
+ PROPERTY_TOOLTIP: "tooltip";
988
+ PROPERTY_VALUE_COLOR: "valueColor";
989
+ PROPERTY_INPUT_AS_TEXT: "inputAsText";
990
+ PROPERTY_NO_DOWNLOAD: "noDownload";
991
+ PROPERTY_NO_ERASE: "noErase";
992
+ PROPERTY_NO_LOCK: "noLock";
993
+ PROPERTY_NO_HISTORY: "noHistory";
994
+ PROPERTY_NO_MODIFY: "noModify";
995
+ PROPERTY_ALLOW_EDITION: "allowEdition";
996
+ PROPERTY_HIDE_SIGN_ICONS: "hideSignButtons";
997
+ PROPERTY_URL: "url";
998
+ PROPERTY_GRID_HIDE_BTN_ORDER: "hideOrderButton";
999
+ PROPERTY_GRID_HIDE_BTN_INCLUDE: "hideIncludeButton";
1000
+ PROPERTY_REGEXP_MESSAGE: "regExpMessage";
1001
+ PROPERTY_PAGED_GRID: "paged";
1002
+ PROPERTY_PAGED_GRID_SIZE: "pagedGridSize";
1003
+ PROPERTY_GRID_ALTER_IN_LAST_PAGE: "alterOnlyLastPage";
1004
+ PROPERTY_GRID_PRINT_HORIZONTAL: "printHorizontal";
1005
+ PROPERTY_STORE_MODAL_QUERY_RESULT: "storeMdlQryResult";
1006
+ PROPERTY_INCLUDE_FIRST_ROW: "includeFirstRow";
1007
+ PROPERTY_MAX_REG_GRID: "maxRecords";
1008
+ PROPERTY_GRID_LABEL: "gridColTitle";
1009
+ PROPERTY_GRID_QUERY: "gridQuery";
1010
+ PROPERTY_HIDE_DOC_PERMISSIONS: "hideDocPermissions";
1011
+ PROPERTY_VERIFY_SIGNATURE_ONLY: "verifySignatureOnly";
1012
+ PROPERTY_GRID_HIDE_BTN_ADD: "hideAddButton";
1013
+ PROPERTY_GRID_HIDE_BTN_DEL: "hideDelButton";
1014
+ PROPERTY_HIDE_DOC_UPLOAD: "hideDocUpload";
1015
+ PROPERTY_HIDE_DOC_DOWNLOAD: "hideDocDownload";
1016
+ PROPERTY_HIDE_DOC_ERASE: "hideDocErase";
1017
+ PROPERTY_HIDE_DOC_LOCK: "hideDocLock";
1018
+ PROPERTY_HIDE_DOC_HISTORY: "hideDocHistory";
1019
+ PROPERTY_HIDE_DOC_SIGN: "hideSignButtons";
1020
+ PROPERTY_DISPLAY_NONE: "displayNone";
1021
+ PROPERTY_DONT_BREAK_RADIO: "dontBreakRadio";
1022
+ PROPERTY_CHECKED: "checked";
1023
+ PROPERTY_FILE_PREVIEW: "filePreview";
1024
+ PROPERTY_NOT_PRINT: "noPrint";
1025
+ PROPERTY_SELECT_PARENT: "selParent";
1026
+ PROPERTY_HEIGHT: "height";
1027
+ PROPERTY_MULTISELECT: "multiselect";
1028
+ PROPERTY_SEL_PARENT: "selParent";
1029
+ PROPERTY_PARENT_ICON: "parentIcon";
1030
+ PROPERTY_LEAF_ICON: "leafIcon";
1031
+ PROPERTY_CSS_CLASS: "cssClass";
1032
+ PROPERTY_DOC_TYPE: "docType";
1033
+ PROPERTY_HIDE_DOC_METADATA: "hideDocMetadata";
1034
+ PROPERTY_TRANSLATION_REQUIRED: "reqTrad";
1035
+ PROPERTY_SIGNATURE_REQUIRED: "reqSign";
1036
+ PROPERTY_SHOW_TOOLTIP_AS_HELP: "tooltipHelp";
1037
+ PROPERTY_DOCUMENT_MONITOR_DEF: "documentMonitorDef";
1038
+ PROPERTY_DOCUMENT_MONITOR_CUS: "documentMonitorCus";
1039
+ PROPERTY_DOCUMENT_SHOW_FOLD_TREE_BTN: "fileShwFoldTreeBtn";
1040
+ PROPERTY_DOCUMENT_SHOW_FOLD_TREE_STR: "fileShwFoldTreeStr";
1041
+ PROPERTY_DOCUMENT_NO_ALLOW_DRAG_DROP: "fileNoAllwDnD";
1042
+ PROPERTY_DOCUMENT_NO_SHOW_MODAL: "fileDntShwDocMdlOnDrop";
1043
+ PROPERTY_DOCUMENT_SHOW_DESC: "fileShowDesc";
1044
+ PROPERTY_DOCUMENT_DEFAULT_FOLDER: "fileDefFolder";
1045
+ PROPERTY_DOCUMENT_ROOT_FOLDER: "fileRootFolder";
1046
+ PROPERTY_DOCUMENT_EXP_DATE: "fileExpDate";
1047
+ PROPERTY_DOCUMENT_DNT_SHW_DOC_MON: "fileNotShowDocMon";
1048
+ PROPERTY_DOCUMENT_COLLAPSE_PERM: "fileCollapsePermission";
1049
+ PROPERTY_DOCUMENT_COLLAPSE_META: "fileCollapseMetadata";
1050
+ PROPERTY_DOCUMENT_COLLAPSE_FLD_STC: "fileCollapseFldStrc";
1051
+ WRONG_ATT_TYPE_ERROR: "Component does not support attributes of type <TOK>. Contact system administrator";
1052
+ STORE_KEY_FIELD: "field";
1053
+ STORE_KEY_FORM: "form";
1054
+ PROPERTY_ARIA_DESCRIPTION: "ariaDescription";
1055
+ PROPERTY_ARIA_LABEL: "ariaLabel";
1056
+ PROPERTY_ALT: "alt";
1057
+ PROPERTY_AUTO_COMPLETE: "autoComplete";
1058
+ PROPERTY_AUTO_FOCUS: "autoFocus";
1059
+ PROPERTY_INPUT_TYPE: "inputType";
1060
+ PROPERTY_PLACE_HOLDER: "placeHolder";
1061
+ PROPERTY_TITLE: "title";
1062
+ }>> | null | undefined;
1063
+ getFieldColumn(name: string): IApiaField[];
1064
+ getAllFields(): IApiaField[];
1065
+ clearForm(clearReadonlyFields: boolean, deleteGridsRows: boolean): void;
824
1066
  }
825
1067
 
826
- declare class Notifications {
827
- execution: Execution;
828
- private emitter;
829
- constructor(execution: Execution);
830
- protected notifications: Notification[];
831
- add(notification: Notification): void;
832
- closeTab(): void;
833
- getAll(): Notification<NotificationDefinition>[];
834
- getById(id: string | number): Notification<NotificationDefinition> | undefined;
835
- kill(): void;
836
- remove(notification: string | number | Notification): void;
837
- on: <K extends "closeTab" | "kill" | "notification">(event: K, cb: Callback<{
838
- closeTab: null;
839
- kill: null;
840
- notification: Notification;
841
- }, K>) => UnSubscriber;
1068
+ declare abstract class ApiaField<Props extends typeof FieldConstants = typeof FieldConstants> implements IApiaField<Props> {
1069
+ #private;
1070
+ constructor(execution: Execution, field: Field<any>);
1071
+ get fldType(): "button" | "check" | "file" | "hidden" | "image" | "input" | "href" | "multiple" | "radio" | "select" | "label" | "area" | "title" | "editor" | "grid" | "password" | "captcha" | "tree";
1072
+ get fldId(): string;
1073
+ get form(): ApiaForm;
1074
+ get index(): number;
1075
+ setProperty<K extends keyof Props>(name: Props[K], value: unknown): void;
1076
+ getProperty<K extends keyof Props>(name: Props[K]): unknown;
1077
+ setFocus(): IApiaField | null;
1078
+ isInGrid(): boolean;
842
1079
  }
843
1080
 
844
- type TProcess = {
845
- calendar: {
846
- fixed: boolean;
847
- label: string;
848
- name: string;
849
- options: {
850
- label: string;
851
- value: string;
852
- selected: boolean;
853
- }[];
854
- toolTip: string;
855
- value: string;
856
- viewButton: {
857
- label: string;
858
- toolTip: string;
859
- };
860
- };
861
- comments: {
862
- currentComment: string;
863
- addMarker: boolean;
864
- markAll: boolean;
865
- deleteMarker: boolean;
866
- history: {
867
- comment: string;
868
- marked: boolean;
869
- date: string;
870
- user: string;
871
- }[];
872
- };
873
- identifier: {
874
- body: {
875
- name: string;
876
- required: boolean;
877
- toolTip: string;
878
- type: 'fixed' | 'custom';
879
- value: string;
880
- };
881
- label: string;
882
- prefix: {
883
- label: string;
884
- name: string;
885
- toolTip: string;
886
- type: 'fixed' | 'custom' | 'none';
887
- value: string;
888
- };
889
- required: boolean;
890
- suffix: {
891
- label: string;
892
- name: string;
893
- toolTip: string;
894
- type: 'fixed' | 'custom' | 'none';
895
- value: string;
896
- };
897
- toolTip: string;
898
- value: string;
899
- };
900
- priority: {
901
- disabled: boolean;
902
- isMonitor: boolean;
903
- label: string;
904
- name: string;
905
- options: {
906
- label: string;
907
- value: string;
908
- selected: boolean;
909
- }[];
910
- toolTip: string;
911
- value: string;
912
- };
913
- process: {
914
- label: string;
915
- toolTip: string;
916
- value: string;
917
- };
918
- processAction: {
919
- label: string;
920
- toolTip: string;
921
- value: string;
922
- };
923
- separator: string;
924
- status?: {
925
- label: string;
926
- toolTip: string;
927
- value: string;
928
- };
929
- title: string;
930
- user: {
931
- label: string;
932
- toolTIp: string;
933
- value: string;
934
- };
935
- };
1081
+ interface IButtonField extends IApiaField {
1082
+ fireClickEvent(): void;
1083
+ getValue(): string | null;
1084
+ }
1085
+ declare class ButtonField extends ApiaField implements IButtonField {
1086
+ #private;
1087
+ constructor(execution: Execution, field: Button);
1088
+ fireClickEvent(): void;
1089
+ getValue(): string | null;
1090
+ clearValue(): void;
1091
+ setValue(value: string): void;
1092
+ }
936
1093
 
937
- /**
938
- * El comportamiento de esta función se explica por su
939
- * nombre.
940
- */
941
- declare function returnExactlyTheSame(defaultParameters: Record<string, unknown>): Record<string, unknown>;
942
- declare function isOneClickUploadEnabled(oneClickUploadProp?: boolean): string | boolean;
943
- declare const parseFileDefinition: (execution: Execution, fileDefinition: TFileUploaded | TUploaderFileInfo, isSignRequired: boolean) => TUploaderFileInfo;
944
- type TOnUploadProgress = (progress: number) => void;
945
- declare class UploaderApi extends EventEmitter$1<{
946
- fileUploaded: null;
947
- }> {
948
- execution: Execution;
949
- id: string;
950
- type: 'E' | 'P';
951
- modalConfig: TModalConfig;
952
- maxFiles: number;
953
- modalController: UploaderModalController | null;
954
- allowTranslations: boolean;
955
- langs: Record<number, string> | undefined;
956
- currentConfiguration: TUploaderLoadCurrentFunctionMessages | undefined;
957
- docTypePermittedObjId: string | undefined;
958
- state: UploaderState;
959
- get filesArray(): TUploaderFileInfo[];
960
- constructor(execution: Execution, id: string, type: 'E' | 'P', modalConfig: TModalConfig);
961
- init(): Promise<void>;
962
- onStartUpload(files?: File[]): Promise<void>;
963
- onTranslateUpload(conf: {
964
- langId: number;
965
- translatingFile: TUploaderFileInfo;
966
- }, files?: File[]): Promise<void>;
967
- onVersionUpload(file: TUploaderFileInfo, conf?: {
968
- newFiles?: File[];
969
- langId?: number;
970
- translatingFile?: TUploaderFileInfo;
971
- }): Promise<void>;
972
- autoLock(): Promise<boolean>;
973
- notify(notification: NotificationDefinition): void;
974
- protected getAjaxUrl(): string;
975
- getDocTypes(): TDocType[];
976
- getCurrentDocTypeId(): string;
977
- getCurrentDocType(): TDocType | undefined;
978
- getInProgressFiles(): File[];
979
- getHiddenFiles(): File[];
980
- getExistingFiles(): Record<string, TUploaderFileInfo>;
981
- getProgress(): number;
982
- getHasAllDocTypes(): boolean | undefined;
983
- getDocumentInfo({ docId: apiId, downloadDocId: docId, }: TRequireOnlyOne<{
984
- docId: string;
985
- downloadDocId: string;
986
- }>, newElem?: boolean): Promise<({
987
- canClose: boolean;
988
- type: string;
989
- } & {
990
- function: {
991
- name: string;
992
- } & {
993
- data: {
994
- onClose: string;
995
- general: TApiaDocumentDefinition;
996
- permissions: {
997
- pool: TDocumentPermission | TDocumentPermission[];
998
- user: TDocumentPermission | TDocumentPermission[];
999
- };
1000
- versions: {
1001
- version: TDocumentVersion | TDocumentVersion[];
1002
- };
1003
- };
1004
- currentUsrPems: {
1005
- usrCanModify: boolean;
1006
- };
1007
- metadatas: {
1008
- metadata: TDocumentMetadata | TDocumentMetadata[];
1009
- };
1010
- docDownHistory: {
1011
- docHistory: TDocumentDownloadHistory | TDocumentDownloadHistory[];
1012
- };
1013
- };
1014
- } & ResponseSysMessages) | null>;
1015
- /**
1016
- * This method searches for the provided id in several places:
1017
- *
1018
- * If it's found in the current files, returns it.
1019
- * If not, it searches the provided docId in the translations map of each uploaded file.
1020
- */
1021
- getDocument(docId: string): TUploaderFileInfo | undefined;
1022
- protected updateDocument(docId: string, newValue: TUploaderFileInfo): void;
1023
- protected deleteDocument(docId: string): void;
1024
- clearFile(name: string): void;
1025
- clearFiles(): void;
1026
- clearState(): void;
1027
- checkLockDocument(id: string, shouldNotifyUnlocked?: boolean): Promise<string | boolean>;
1028
- setCurrentDocTypeId(docTypeId: string): void;
1029
- ajaxUploadStart(newFiles?: File[]): Promise<boolean | undefined>;
1030
- reloadMetadata(props?: Partial<{
1031
- docId: string;
1032
- docTypeId: number | string;
1033
- }>, additionalProps?: Record<string, unknown>): Promise<void>;
1034
- saveDroppedFiles(unprocessedFiles: File[], conf?: TSaveDroppedFilesConf): Promise<boolean>;
1035
- checkWebDavLock(docId: string): Promise<unknown>;
1036
- checkSignature(file: TUploaderFileInfo): Promise<TApiaApiAxiosResponse<({
1037
- markedToSign: boolean;
1038
- } & ResponseSysMessages) | null> | null>;
1039
- editDocument(id: string): Promise<void>;
1040
- downloadDocument(id: string, version?: string): Promise<void>;
1041
- ajaxDeleteDocument(id: string, langId?: number): Promise<void>;
1042
- version(file: TUploaderFileInfo, conf?: {
1043
- newFiles?: File[];
1044
- langId?: number;
1045
- translatingFile?: TUploaderFileInfo;
1046
- }): Promise<void>;
1047
- versionFileInfo(file: TUploaderFileInfo): Promise<void>;
1048
- pickFileById(id: string): Promise<void>;
1049
- markFileToSign(id: string, langId?: string): Promise<void>;
1050
- /**
1051
- * Por el momento realiza la descarga de todos los archivos
1052
- * que estén subidos.
1053
- */
1054
- downloadMultipleDocuments(): void;
1055
- confirmDropModal(conf?: {
1056
- langId?: number;
1057
- translatingFile?: TUploaderFileInfo;
1058
- }): Promise<boolean>;
1059
- loadCurrentDocuments(): Promise<void>;
1060
- lockDocument(id: string): Promise<void>;
1061
- protected evaluateDeleteDocumentResult(result: unknown): boolean;
1062
- setTranslationFile(file: TUploaderFileInfo, docId: string, langId: number): void;
1063
- protected getAjaxUploadFileStatusParameters: typeof returnExactlyTheSame;
1064
- protected getAjaxUploadStartParameters: typeof returnExactlyTheSame;
1065
- protected getConfirmDropModalParameters: typeof returnExactlyTheSame;
1066
- protected getCheckLockDocumentParameters: typeof returnExactlyTheSame;
1067
- protected getCheckWebDavLockParameters: typeof returnExactlyTheSame;
1068
- protected getConfirmDropModalPostdata: typeof returnExactlyTheSame;
1069
- protected getConfirmDropModalMetadataString: ({ metadata, }: {
1070
- metadata: TDocumentMetadata[];
1071
- }) => string;
1072
- protected getConfirmDropModalPermissionsString: ({ poolsPermissions, usersPermissions, }: {
1073
- poolsPermissions: IPoolsPermissions[];
1074
- usersPermissions: IUsersPermissions[];
1075
- }) => string;
1076
- protected getConfirmDropModalAdditionalMetadataString: (additionalMetadata: TDocumentMetadata[] | []) => string;
1077
- protected getDeleteDocumentParameters: typeof returnExactlyTheSame;
1078
- protected getClearTempFilesParameters: typeof returnExactlyTheSame;
1079
- protected getDocumentInfoParameters: typeof returnExactlyTheSame;
1080
- protected getDownloadMultipleDocumentsParameters: typeof returnExactlyTheSame;
1081
- protected getEditDocumentParameters: typeof returnExactlyTheSame;
1082
- protected getLockDocumentParameters: typeof returnExactlyTheSame;
1083
- protected getMarkFileToSignParameters: typeof returnExactlyTheSame;
1084
- protected getProcessDroppedFilesParameters: typeof returnExactlyTheSame;
1085
- protected getProcessDroppedFilesPostdata: typeof returnExactlyTheSame;
1086
- protected getReloadMetadataParameters: typeof returnExactlyTheSame;
1087
- protected getSaveDroppedFilesParameters: typeof returnExactlyTheSame;
1088
- protected filterAlreadyUploadedFiles(files: File[], conf?: TSaveDroppedFilesConf): File[];
1089
- protected filterByFilesAmountLimit(files: File[]): File[];
1090
- protected filterAcceptedFiles(files: File[], shouldNotify?: boolean, docTypeId?: string | TDocType): File[];
1091
- protected filterExistingFiles(files: File[], conf?: TSaveDroppedFilesConf): File[];
1092
- protected filterVersioningFiles(files: File[], conf?: {
1093
- langId?: number;
1094
- strictMode?: boolean;
1095
- translatingFile?: TUploaderFileInfo;
1096
- shouldReset?: boolean;
1097
- }): File[];
1098
- parseFileDefinition: (file: TFileUploaded) => TUploaderFileInfo;
1099
- getLoadFileSystemStructureTree: () => Record<string, unknown>;
1094
+ declare class ApiaAttribute {
1095
+ #private;
1096
+ constructor(attribute: Attribute);
1097
+ get attLabel(): string;
1098
+ get name(): string;
1099
+ get id(): string;
1100
+ get valueType(): TApiaFieldValueType;
1101
+ }
1102
+ declare class ApiaFieldWithAttribute<T = string | boolean> extends ApiaField {
1103
+ #private;
1104
+ constructor(execution: Execution, field: FieldWithAttribute);
1105
+ get attribute(): ApiaAttribute;
1106
+ clearValue(): void;
1107
+ getValue(): any;
1108
+ setValue(v: T): void;
1109
+ getLabel(): string | null | void;
1110
+ getProperty<K extends keyof TApiaFieldWithAttributeProperties>(name: TApiaFieldWithAttributeProperties[K]): unknown;
1100
1111
  }
1101
1112
 
1102
- declare class UploaderModalController {
1103
- api: UploaderApi;
1104
- modalConfig: TModalConfig;
1105
- conf?: {
1106
- langId?: number;
1107
- translatingFile?: TUploaderFileInfo;
1108
- versionFile?: TUploaderFileInfo;
1109
- } | undefined;
1110
- state: UploaderModalState;
1111
- constructor(api: UploaderApi, modalConfig: TModalConfig, conf?: {
1112
- langId?: number;
1113
- translatingFile?: TUploaderFileInfo;
1114
- versionFile?: TUploaderFileInfo;
1115
- } | undefined);
1116
- get allMetadata(): TDocumentMetadata[];
1117
- get allowAllType(): "" | "M" | "R";
1118
- get description(): string;
1119
- get docFolder(): number | undefined;
1120
- get docExpDate(): string | undefined;
1121
- get docTypes(): TDocType[];
1122
- get freeMetadata(): TDocumentMetadata[];
1123
- get exitingFiles(): Record<string, TUploaderFileInfo>;
1124
- get inProgressFiles(): File[];
1125
- get hiddenFiles(): File[];
1126
- get progress(): number;
1127
- get metadata(): TDocumentMetadata[];
1128
- get selectedDocTypeId(): string;
1129
- get selectedDocType(): TDocType | undefined;
1130
- addMetadata(): void;
1131
- addFiles(files: File[]): void;
1132
- addDirectoryFile(file: TApiaDocumentDefinition): void;
1133
- changeDocType(docTypeId: string): Promise<void>;
1134
- clearDirectoryFile(): void;
1135
- clearFile(name: string): void;
1136
- clearFiles(): void;
1137
- clearState(): void;
1138
- onCloseModal(): void;
1139
- confirm(): Promise<boolean>;
1140
- deleteMetadata(indices: number[]): void;
1141
- deletePermission(item: IPoolsPermissions | IUsersPermissions): void;
1142
- protected onChangeExtension(): void;
1143
- openModal(): Promise<void>;
1144
- setDescription(desc: string): void;
1145
- protected resetMetadata(): Promise<void>;
1146
- validate(): boolean;
1113
+ declare class EditorField extends ApiaFieldWithAttribute {
1147
1114
  }
1148
1115
 
1149
- type TUploadModalOpener = (controller: UploaderModalController) => void;
1150
- type UploaderModalState = {
1151
- fileReqError: boolean;
1152
- metadata: {
1153
- metadataArray: TDocumentMetadata[];
1154
- isFreeMetadata: boolean;
1155
- freeMetadataArray: TDocumentMetadata[];
1156
- };
1157
- fromDirectoryFile: TApiaDocumentDefinition | null;
1158
- docFolder?: number;
1159
- docExpDate?: string;
1160
- description: string;
1161
- isReadonly?: boolean;
1162
- permissions: {
1163
- allowAllType: 'M' | 'R' | '';
1164
- users: IUsersPermissions[];
1165
- pools: IPoolsPermissions[];
1166
- };
1167
- };
1168
- type UploaderState = {
1169
- progress: number;
1170
- allowedTypes: TDocType[];
1171
- selectedDocTypeId: string;
1172
- versioningFile: TUploaderFileInfo | null;
1173
- inProgressFiles: File[];
1174
- hiddenFiles: File[];
1175
- files: Record<string, TUploaderFileInfo>;
1176
- translatedFiles: Map<string, Map<number, TUploaderFileInfo>>;
1177
- hasAllDocTypes?: boolean;
1178
- selectedFiles: string[];
1179
- };
1180
- interface IUsersPermissions {
1181
- userId: string;
1182
- userLogin: string;
1183
- canUpdate: boolean;
1116
+ type TOptionsMap$2 = Map<string, PossibleValue>;
1117
+ type TOptionsAsArray = PossibleValue[];
1118
+ declare class SelectField extends ApiaFieldWithAttribute<string | number | (string | number)[]> {
1119
+ #private;
1120
+ constructor(execution: Execution, field: Select);
1121
+ getOptions(asObject: boolean): TOptionsMap$2 | TOptionsAsArray | null;
1122
+ addOption(optionValue: string | number, showValue: string, allowRepeatedValue: boolean): void;
1123
+ setOptions(optionsArray: PossibleValue[]): void;
1124
+ removeOption(optionValue: string | number): void;
1125
+ getSelectedOption(asObject: boolean): TOptionsMap$2 | PossibleValue[] | null;
1126
+ getSelectedText(): string | null;
1127
+ clearOptions(): void;
1184
1128
  }
1185
- interface IPoolsPermissions {
1186
- poolId: string;
1187
- poolName: string;
1188
- canUpdate: boolean;
1129
+
1130
+ declare class InputField extends ApiaFieldWithAttribute {
1131
+ #private;
1132
+ constructor(execution: Execution, field: Input);
1133
+ getObjectValue(): number | string | boolean | null;
1134
+ setValue(v: string): void;
1189
1135
  }
1190
- type TUploaderFileInfo = Omit<TFileUploaded, 'locked' | 'lock' | 'userLocking' | 'lockedBy'> & {
1191
- canEdit?: boolean;
1192
- canRead?: boolean;
1193
- isLocked: boolean;
1194
- isLockedByMe: boolean;
1195
- isVirtual: boolean;
1196
- lockingUser: string;
1197
- };
1198
- type TFileUploaded = {
1199
- canEdit?: boolean;
1200
- canWrite?: boolean;
1201
- canRead?: boolean;
1202
- description?: string;
1203
- docDescription?: string;
1204
- docId: string;
1205
- docLang?: string;
1206
- docLangGroup?: string;
1207
- docName?: string;
1208
- docSize?: string;
1209
- docTypeFreeMetadata?: boolean;
1210
- docTypeId?: string;
1211
- docTypeLabel?: string;
1212
- docTypeTitle: string;
1213
- downloadDocId: string;
1214
- isMarkedToSign: boolean;
1215
- markedToSign: boolean;
1216
- lock?: string | boolean;
1217
- isLocked?: string | boolean;
1218
- lockedBy?: string;
1219
- name?: string;
1220
- onlyInformation: boolean;
1221
- prefix: string;
1222
- preview: string;
1223
- sign?: string | boolean;
1224
- size?: string;
1225
- userLocking: string;
1226
- virtualDoc?: boolean;
1227
- };
1228
- type TAjaxUploadStart = TApiaLoad<TApiaFunction<{
1229
- general: {
1230
- isDocTypeDisabled: boolean;
1231
- useDocTypePermitted: boolean;
1232
- createMode: boolean;
1233
- allowAllTypes: string;
1234
- allDocTypes: boolean;
1235
- };
1236
- docTypes: {
1237
- docType: TDocType | TDocType[];
1238
- };
1239
- metadatas: {
1240
- metadata: TDocumentMetadata | TDocumentMetadata[];
1241
- };
1242
- }, false>>;
1243
- type TDocType = {
1244
- docExts: string;
1245
- maxSize: number;
1246
- id: string;
1247
- title: string;
1248
- free: boolean;
1249
- selected: boolean;
1250
- };
1251
- type TDocumentMetadata = {
1252
- free: string;
1253
- id: string;
1254
- name: string;
1255
- required: 'Y' | 'N';
1256
- title: string;
1257
- type: 'S' | 'N' | 'D';
1258
- value: string;
1259
- errorMessage: string;
1260
- labelErrorMessage: string;
1261
- };
1262
- type TModalConfig = {
1263
- allowDocumentsMonitor: boolean;
1264
- allowPickFromDirectories: boolean;
1265
- collapsePermissions: boolean;
1266
- collapseDirectories: boolean;
1267
- collapseMetadata: boolean;
1268
- defaultDirectory?: number;
1269
- monitorId?: number;
1270
- oneClickUpload: boolean;
1271
- rootFolder?: string;
1272
- showDirectoriesStructure: boolean;
1273
- showExpDate: boolean;
1274
- showPermissions: boolean;
1275
- showMetadata: boolean;
1276
- translationId?: string;
1277
- };
1278
- type TUploaderLoadCurrentFunctionMessages = {
1279
- allowSign: boolean;
1280
- allowLock: boolean;
1281
- allowMultiple: boolean;
1282
- readOnly: boolean;
1283
- };
1284
- type TSaveDroppedFilesConf = {
1285
- langId?: number;
1286
- strictMode?: boolean;
1287
- translatingFile?: TUploaderFileInfo;
1288
- shouldReset?: boolean;
1289
- };
1290
- type TAjaxUploadFileStatus = TApiaLoad<TApiaFunction<{
1291
- message: {
1292
- label: string;
1293
- name: string;
1294
- }[];
1295
- }>>;
1296
- type TProcessDroppedFiles = TApiaLoad<TApiaFunction<{
1297
- principal: {
1298
- docInfo: TDocInfo | TDocInfo[];
1299
- docTypes: {
1300
- 'data-free': boolean;
1301
- docTypeExtensions: string;
1302
- docTypeId: string;
1303
- docTypeMaxSize: number;
1304
- docTypeName: string;
1305
- };
1306
- elemInfo: {
1307
- elemId: string;
1308
- elemType: string;
1309
- };
1310
- };
1311
- }, false>>;
1312
- type TDocInfo = {
1313
- docInfoName: string;
1314
- docInfoSize: string;
1315
- docInfoTmpId: string;
1316
- docInfoType: string;
1317
- };
1318
- type TConfirmDropModal = TApiaLoad<TApiaFunction<{
1319
- general: TFileUploaded | TFileUploaded[];
1320
- fromForm: {
1321
- fromForm: {
1322
- fromForm: boolean;
1323
- }[];
1324
- };
1325
- }, false>>;
1326
- type TApiaDocumentDefinition = {
1327
- docDesc: string;
1328
- docTypeLabel: string;
1329
- docId: string;
1330
- prefix: string;
1331
- docSize: string;
1332
- docDate: string;
1333
- docDwnExternal: string;
1334
- docExpDate: string;
1335
- docFolder: string;
1336
- docFolderPath: string;
1337
- docUsu: string;
1338
- docAllPoolPerm: 'M' | 'R' | '';
1339
- docName: string;
1340
- docTypeId: string;
1341
- locked: boolean;
1342
- downloadDocId: string;
1343
- };
1344
- type TUploaderLoadCurrentFunction = {
1345
- general?: TFileUploaded | TFileUploaded[];
1346
- messages: {
1347
- message: {
1348
- name: keyof TUploaderLoadCurrentFunctionMessages;
1349
- label: boolean;
1350
- } | {
1351
- name: keyof TUploaderLoadCurrentFunctionMessages;
1352
- label: boolean;
1353
- }[];
1354
- };
1355
- };
1356
- type TDocumentInformation = TApiaLoad<TApiaFunction<{
1357
- data: {
1358
- onClose: string;
1359
- general: TApiaDocumentDefinition;
1360
- permissions: {
1361
- pool: TDocumentPermission | TDocumentPermission[];
1362
- user: TDocumentPermission | TDocumentPermission[];
1363
- };
1364
- versions: {
1365
- version: TDocumentVersion | TDocumentVersion[];
1366
- };
1367
- };
1368
- currentUsrPems: {
1369
- usrCanModify: boolean;
1370
- };
1371
- metadatas: {
1372
- metadata: TDocumentMetadata | TDocumentMetadata[];
1373
- };
1374
- docDownHistory: {
1375
- docHistory: TDocumentDownloadHistory | TDocumentDownloadHistory[];
1376
- };
1377
- }, false>>;
1378
- type TDocumentPermission = {
1379
- id: string;
1380
- name: string;
1381
- permType: 'R' | 'M';
1382
- };
1383
- type TDocumentDownloadHistory = {
1384
- hisDwn: string;
1385
- hisUsr: string;
1386
- hisVer: string;
1387
- };
1388
- type TDocumentVersion = {
1389
- verUser: string;
1390
- verNumber: string;
1391
- verDate: string;
1392
- };
1393
- type TRequireOnlyOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
1394
- [K in Keys]-?: Required<Pick<T, K>> & Partial<Record<Exclude<Keys, K>, undefined>>;
1395
- }[Keys];
1396
1136
 
1397
- declare class FormsUploader extends UploaderApi {
1398
- execution: Execution;
1399
- type: 'E' | 'P';
1400
- modalConfig: TModalConfig;
1401
- field: File$1;
1402
- constructor(execution: Execution, type: 'E' | 'P', modalConfig: TModalConfig, field: File$1);
1403
- isEditionMode: boolean | undefined;
1404
- index(): number;
1405
- elemId(): string;
1406
- protected filterByFilesAmountLimit(files: File[]): File[];
1407
- protected getFormParameters(): {
1408
- frmId: string;
1409
- frmParent: TFrmParent;
1410
- attId: string;
1411
- index: number;
1412
- editionMode: boolean | undefined;
1413
- prefix: TFrmParent;
1414
- };
1415
- evaluateDeleteDocumentResult(result: undefined | {
1416
- success: boolean;
1417
- }): boolean;
1418
- getAjaxUrl(): string;
1419
- getAllowedTypesData(): {
1420
- postData: {
1421
- docTypeId: string | undefined;
1422
- forDropElem: boolean;
1423
- };
1424
- queryData: {
1425
- frmId: string;
1426
- frmParent: TFrmParent;
1427
- attId: string;
1428
- index: number;
1429
- editionMode: boolean | undefined;
1430
- prefix: TFrmParent;
1431
- elemType: string;
1432
- fromFormElem: boolean;
1433
- docTypeId: string | undefined;
1434
- frmOut: boolean;
1435
- };
1436
- };
1437
- getAjaxUploadFileStatusParameters: (defaultParameters: Record<string, unknown>) => Record<string, unknown>;
1438
- getAjaxUploadStartParameters: ({ useDocTypePermitted, docTypePermittedObjType, docTypePermittedObjId, ...defaultParameters }: Record<string, unknown>) => Record<string, unknown>;
1439
- getCheckLockDocumentParameters: ({ prefix, ...parameters }: Record<string, unknown>) => {
1440
- frmId: string;
1441
- frmParent: TFrmParent;
1442
- attId: string;
1443
- index: number;
1444
- editionMode: boolean | undefined;
1445
- prefix: TFrmParent;
1446
- };
1447
- getCheckSignatureParameters: (parameters: Record<string, unknown>) => {
1448
- frmId: string;
1449
- frmParent: TFrmParent;
1450
- };
1451
- getClearTempFilesParameters: ({ elemType, ...rest }: Record<string, unknown>) => {
1452
- frmParent: TFrmParent;
1453
- frmId: string;
1454
- attId: string;
1455
- index: number;
1456
- };
1457
- getConfirmDropModalParameters: (defaultParameters: Record<string, unknown>) => Record<string, unknown>;
1458
- getConfirmDropModalPostdata: ({ pe, ...parameters }: Record<string, unknown>) => Record<string, unknown>;
1459
- getDeleteDocumentParameters: ({ prefix, isAjax, ...currentParameters }: Record<string, unknown>) => {
1460
- frmId: string;
1461
- frmParent: TFrmParent;
1462
- attId: string;
1463
- index: number;
1464
- editionMode: boolean | undefined;
1465
- };
1466
- getDocumentInfoParameters: (parameters: Record<string, unknown>) => {
1467
- ajaxUrl: string;
1468
- };
1469
- getEditDocumentParameters: ({ action, docId }: Record<string, unknown>) => {
1470
- docId: unknown;
1471
- ajaxUrl: string;
1472
- frmId: string;
1473
- frmParent: TFrmParent;
1474
- attId: string;
1475
- index: number;
1476
- action: unknown;
1477
- };
1478
- getLoadFilesForFolderParameters: () => Record<string, unknown>;
1479
- getLoadFileSystemStructureTree: () => {
1480
- useDocTypePermitted: boolean;
1481
- docTypeForcedId: string | undefined;
1482
- };
1483
- getLockDocumentParameters: ({ prefix, isAjax, ...currentParameters }: Record<string, unknown>) => {
1484
- frmId: string;
1485
- frmParent: TFrmParent;
1486
- attId: string;
1487
- index: number;
1488
- editionMode: boolean | undefined;
1489
- };
1490
- getMarkFileToSignParameters: ({ docId, prefix, ...defaultParameters }: Record<string, unknown>) => {
1491
- frmId: string;
1492
- frmParent: TFrmParent;
1493
- attId: string;
1494
- index: number;
1495
- editionMode: boolean | undefined;
1496
- prefix: TFrmParent;
1497
- action: string;
1498
- fldId: string;
1499
- };
1500
- getProcessDroppedFilesParameters: (defaultParameters: Record<string, unknown>) => Record<string, unknown>;
1501
- getProcessDroppedFilesPostdata: ({ useDocTypePermitted, docTypePermittedObjId, docTypePermittedObjType, ...parameters }: Record<string, unknown>) => Record<string, unknown>;
1502
- getReloadMetadataParameters: (defaultParameters: Record<string, unknown>) => Record<string, unknown>;
1503
- getSaveDroppedFilesParameters: (defaultParameters: Record<string, unknown>) => Record<string, unknown>;
1504
- downloadDocument(fileId: string): Promise<void>;
1505
- loadCurrentDocuments(): Promise<void>;
1506
- parseFileDefinition: (file: TFileUploaded) => TUploaderFileInfo;
1507
- saveDroppedFiles(unprocessedFiles: File[], conf?: TSaveDroppedFilesConf | undefined): Promise<boolean>;
1137
+ declare class TreeField extends ApiaFieldWithAttribute<string | number | (string | number)[]> {
1138
+ #private;
1139
+ constructor(execution: Execution, field: Tree);
1140
+ setValue(v: string | number | (string | number)[]): void;
1508
1141
  }
1509
1142
 
1510
- declare class Process {
1511
- execution: Execution;
1512
- state: TProcess | null;
1513
- uploader: UploaderApi;
1514
- constructor(execution: Execution);
1515
- get name(): string | undefined;
1516
- private hasInited;
1517
- init(): Promise<void>;
1518
- getConfirmParams(): {
1519
- cmbProPri: string | undefined;
1520
- selCal: string | undefined;
1521
- };
1522
- setPriority(newPriority: string): void;
1143
+ declare class CheckField extends ApiaFieldWithAttribute {
1144
+ clearValue(): void;
1145
+ setValue(value: string | boolean | number): void;
1146
+ }
1147
+
1148
+ type TOptionsMap$1 = Map<string, PossibleValue>;
1149
+ declare class RadioField extends ApiaFieldWithAttribute {
1150
+ #private;
1151
+ constructor(execution: Execution, field: Radio);
1152
+ getOptions(asObject: boolean): TOptionsMap$1 | PossibleValue[] | null;
1153
+ clearOptions(): void | null;
1154
+ addOption(radioValue: string | number, showValue: string, allowRepeatedValue: boolean): void;
1155
+ setOptions(options: PossibleValue[]): void;
1156
+ removeOption(radioValue: string | number): void;
1157
+ getSelectedOption(asObject: boolean): TOptionsMap$1 | PossibleValue | null;
1158
+ getSelectedText(): string | undefined | null;
1159
+ }
1160
+
1161
+ type TOptionsMap = Map<string, PossibleValue>;
1162
+ declare class MultipleField extends ApiaFieldWithAttribute<string[]> {
1163
+ #private;
1164
+ constructor(execution: Execution, field: Multiple);
1165
+ addOption(optionValue: string | number, showValue: string, allowRepeatedValue: boolean): void;
1166
+ setValue(value: string[]): void;
1167
+ clearOptions(): void;
1168
+ getSelectedOption(asObject: boolean): TOptionsMap | PossibleValue[] | null;
1169
+ getOptions(asObject: boolean): TOptionsMap | PossibleValue[] | null;
1170
+ setOptions(optionsArray: PossibleValue[]): void;
1171
+ removeOption(optionValue: string | number): void;
1172
+ }
1173
+
1174
+ declare class HiddenField extends ApiaField {
1175
+ }
1176
+
1177
+ declare class AreaField extends ApiaFieldWithAttribute {
1178
+ }
1179
+
1180
+ interface IImageField extends IApiaField {
1181
+ getValue(): null;
1182
+ setValue(): null;
1183
+ getLabel(): void;
1184
+ clearValue(): null;
1185
+ }
1186
+ declare class ImageField extends ApiaField implements IImageField {
1187
+ #private;
1188
+ constructor(execution: Execution, field: Image);
1189
+ clearValue(): null;
1190
+ getLabel(): void;
1191
+ getValue(): null;
1192
+ setValue(): null;
1193
+ }
1194
+
1195
+ interface ILinkField extends IApiaField {
1196
+ getLabel(): void;
1197
+ }
1198
+ declare class LinkField extends ApiaField implements ILinkField {
1199
+ #private;
1200
+ constructor(execution: Execution, field: Link);
1201
+ getLabel(): void;
1202
+ }
1203
+
1204
+ interface ITextField extends IApiaField {
1205
+ getLabel(): void;
1206
+ }
1207
+ declare class TextField extends ApiaField implements ITextField {
1208
+ #private;
1209
+ constructor(execution: Execution, field: Field);
1210
+ getLabel(): void;
1211
+ setValue(value: string): void;
1212
+ }
1213
+
1214
+ declare class GridField extends ApiaField {
1215
+ #private;
1216
+ constructor(execution: Execution, field: Grid);
1217
+ addRow(): Promise<IApiaField[]>;
1218
+ clearGrid(): void;
1219
+ clearPage(): void;
1220
+ clearRow(index: number): Promise<void>;
1221
+ closeForm(): GridField;
1222
+ deleteAllRows(): Promise<void>;
1223
+ deleteGrid(): Promise<void>;
1224
+ deletePage(): void;
1225
+ deleteRow(index: number): Promise<void>;
1226
+ editRow(index: number): void;
1227
+ getAllColumns(): (IApiaField<Readonly<{
1228
+ TYPE_INPUT: "input";
1229
+ TYPE_SELECT: "select";
1230
+ TYPE_RADIO: "radio";
1231
+ TYPE_CHECK: "check";
1232
+ TYPE_BUTTON: "button";
1233
+ TYPE_AREA: "area";
1234
+ TYPE_LABEL: "label";
1235
+ TYPE_TITLE: "title";
1236
+ TYPE_FILE: "file";
1237
+ TYPE_MULTIPLE: "multiple";
1238
+ TYPE_HIDDEN: "hidden";
1239
+ TYPE_PASSWORD: "password";
1240
+ TYPE_GRID: "grid";
1241
+ TYPE_IMAGE: "image";
1242
+ TYPE_HREF: "href";
1243
+ TYPE_EDITOR: "editor";
1244
+ TYPE_TREE: "tree";
1245
+ TYPE_CAPTCHA: "captcha";
1246
+ PROPERTY_NAME: "name";
1247
+ PROPERTY_SIZE: "size";
1248
+ PROPERTY_READONLY: "readonly";
1249
+ PROPERTY_DISABLED: "disabled";
1250
+ PROPERTY_MODAL_DISABLED: "modalDisabled";
1251
+ PROPERTY_FONT_COLOR: "fontColor";
1252
+ PROPERTY_VALUE: "value";
1253
+ PROPERTY_REQUIRED: "required";
1254
+ PROPERTY_COLSPAN: "colspan";
1255
+ PROPERTY_ROWSPAN: "rowspan";
1256
+ PROPERTY_MODAL: "modal";
1257
+ PROPERTY_ROWS: "thisRows";
1258
+ PROPERTY_BOLD: "bold";
1259
+ PROPERTY_UNDERLINED: "underlined";
1260
+ PROPERTY_ALIGNMENT: "alignment";
1261
+ PROPERTY_IMAGE: "imageUrl";
1262
+ PROPERTY_COL_WIDTH: "colWidth";
1263
+ PROPERTY_GRID_HEIGHT: "gridHeight";
1264
+ PROPERTY_HIDE_GRID_BTN: "hideGridButtons";
1265
+ PROPERTY_VISIBILITY_HIDDEN: "visibilityHidden";
1266
+ PROPERTY_TRANSIENT: "transient";
1267
+ PROPERTY_GRID_TITLE: "gridTitle";
1268
+ PROPERTY_GRID_FORM: "gridForm";
1269
+ PROPERTY_TOOLTIP: "tooltip";
1270
+ PROPERTY_VALUE_COLOR: "valueColor";
1271
+ PROPERTY_INPUT_AS_TEXT: "inputAsText";
1272
+ PROPERTY_NO_DOWNLOAD: "noDownload";
1273
+ PROPERTY_NO_ERASE: "noErase";
1274
+ PROPERTY_NO_LOCK: "noLock";
1275
+ PROPERTY_NO_HISTORY: "noHistory";
1276
+ PROPERTY_NO_MODIFY: "noModify";
1277
+ PROPERTY_ALLOW_EDITION: "allowEdition";
1278
+ PROPERTY_HIDE_SIGN_ICONS: "hideSignButtons";
1279
+ PROPERTY_URL: "url";
1280
+ PROPERTY_GRID_HIDE_BTN_ORDER: "hideOrderButton";
1281
+ PROPERTY_GRID_HIDE_BTN_INCLUDE: "hideIncludeButton";
1282
+ PROPERTY_REGEXP_MESSAGE: "regExpMessage";
1283
+ PROPERTY_PAGED_GRID: "paged";
1284
+ PROPERTY_PAGED_GRID_SIZE: "pagedGridSize";
1285
+ PROPERTY_GRID_ALTER_IN_LAST_PAGE: "alterOnlyLastPage";
1286
+ PROPERTY_GRID_PRINT_HORIZONTAL: "printHorizontal";
1287
+ PROPERTY_STORE_MODAL_QUERY_RESULT: "storeMdlQryResult";
1288
+ PROPERTY_INCLUDE_FIRST_ROW: "includeFirstRow";
1289
+ PROPERTY_MAX_REG_GRID: "maxRecords";
1290
+ PROPERTY_GRID_LABEL: "gridColTitle";
1291
+ PROPERTY_GRID_QUERY: "gridQuery";
1292
+ PROPERTY_HIDE_DOC_PERMISSIONS: "hideDocPermissions";
1293
+ PROPERTY_VERIFY_SIGNATURE_ONLY: "verifySignatureOnly";
1294
+ PROPERTY_GRID_HIDE_BTN_ADD: "hideAddButton";
1295
+ PROPERTY_GRID_HIDE_BTN_DEL: "hideDelButton";
1296
+ PROPERTY_HIDE_DOC_UPLOAD: "hideDocUpload";
1297
+ PROPERTY_HIDE_DOC_DOWNLOAD: "hideDocDownload";
1298
+ PROPERTY_HIDE_DOC_ERASE: "hideDocErase";
1299
+ PROPERTY_HIDE_DOC_LOCK: "hideDocLock";
1300
+ PROPERTY_HIDE_DOC_HISTORY: "hideDocHistory";
1301
+ PROPERTY_HIDE_DOC_SIGN: "hideSignButtons";
1302
+ PROPERTY_DISPLAY_NONE: "displayNone";
1303
+ PROPERTY_DONT_BREAK_RADIO: "dontBreakRadio";
1304
+ PROPERTY_CHECKED: "checked";
1305
+ PROPERTY_FILE_PREVIEW: "filePreview";
1306
+ PROPERTY_NOT_PRINT: "noPrint";
1307
+ PROPERTY_SELECT_PARENT: "selParent";
1308
+ PROPERTY_HEIGHT: "height";
1309
+ PROPERTY_MULTISELECT: "multiselect";
1310
+ PROPERTY_SEL_PARENT: "selParent";
1311
+ PROPERTY_PARENT_ICON: "parentIcon";
1312
+ PROPERTY_LEAF_ICON: "leafIcon";
1313
+ PROPERTY_CSS_CLASS: "cssClass";
1314
+ PROPERTY_DOC_TYPE: "docType";
1315
+ PROPERTY_HIDE_DOC_METADATA: "hideDocMetadata";
1316
+ PROPERTY_TRANSLATION_REQUIRED: "reqTrad";
1317
+ PROPERTY_SIGNATURE_REQUIRED: "reqSign";
1318
+ PROPERTY_SHOW_TOOLTIP_AS_HELP: "tooltipHelp";
1319
+ PROPERTY_DOCUMENT_MONITOR_DEF: "documentMonitorDef";
1320
+ PROPERTY_DOCUMENT_MONITOR_CUS: "documentMonitorCus";
1321
+ PROPERTY_DOCUMENT_SHOW_FOLD_TREE_BTN: "fileShwFoldTreeBtn";
1322
+ PROPERTY_DOCUMENT_SHOW_FOLD_TREE_STR: "fileShwFoldTreeStr";
1323
+ PROPERTY_DOCUMENT_NO_ALLOW_DRAG_DROP: "fileNoAllwDnD";
1324
+ PROPERTY_DOCUMENT_NO_SHOW_MODAL: "fileDntShwDocMdlOnDrop";
1325
+ PROPERTY_DOCUMENT_SHOW_DESC: "fileShowDesc";
1326
+ PROPERTY_DOCUMENT_DEFAULT_FOLDER: "fileDefFolder";
1327
+ PROPERTY_DOCUMENT_ROOT_FOLDER: "fileRootFolder";
1328
+ PROPERTY_DOCUMENT_EXP_DATE: "fileExpDate";
1329
+ PROPERTY_DOCUMENT_DNT_SHW_DOC_MON: "fileNotShowDocMon";
1330
+ PROPERTY_DOCUMENT_COLLAPSE_PERM: "fileCollapsePermission";
1331
+ PROPERTY_DOCUMENT_COLLAPSE_META: "fileCollapseMetadata";
1332
+ PROPERTY_DOCUMENT_COLLAPSE_FLD_STC: "fileCollapseFldStrc";
1333
+ WRONG_ATT_TYPE_ERROR: "Component does not support attributes of type <TOK>. Contact system administrator";
1334
+ STORE_KEY_FIELD: "field";
1335
+ STORE_KEY_FORM: "form";
1336
+ PROPERTY_ARIA_DESCRIPTION: "ariaDescription";
1337
+ PROPERTY_ARIA_LABEL: "ariaLabel";
1338
+ PROPERTY_ALT: "alt";
1339
+ PROPERTY_AUTO_COMPLETE: "autoComplete";
1340
+ PROPERTY_AUTO_FOCUS: "autoFocus";
1341
+ PROPERTY_INPUT_TYPE: "inputType";
1342
+ PROPERTY_PLACE_HOLDER: "placeHolder";
1343
+ PROPERTY_TITLE: "title";
1344
+ }>> | null)[][];
1345
+ getColumn(fieldName: string): (IApiaField<Readonly<{
1346
+ TYPE_INPUT: "input";
1347
+ TYPE_SELECT: "select";
1348
+ TYPE_RADIO: "radio";
1349
+ TYPE_CHECK: "check";
1350
+ TYPE_BUTTON: "button";
1351
+ TYPE_AREA: "area";
1352
+ TYPE_LABEL: "label";
1353
+ TYPE_TITLE: "title";
1354
+ TYPE_FILE: "file";
1355
+ TYPE_MULTIPLE: "multiple";
1356
+ TYPE_HIDDEN: "hidden";
1357
+ TYPE_PASSWORD: "password";
1358
+ TYPE_GRID: "grid";
1359
+ TYPE_IMAGE: "image";
1360
+ TYPE_HREF: "href";
1361
+ TYPE_EDITOR: "editor";
1362
+ TYPE_TREE: "tree";
1363
+ TYPE_CAPTCHA: "captcha";
1364
+ PROPERTY_NAME: "name";
1365
+ PROPERTY_SIZE: "size";
1366
+ PROPERTY_READONLY: "readonly";
1367
+ PROPERTY_DISABLED: "disabled";
1368
+ PROPERTY_MODAL_DISABLED: "modalDisabled";
1369
+ PROPERTY_FONT_COLOR: "fontColor";
1370
+ PROPERTY_VALUE: "value";
1371
+ PROPERTY_REQUIRED: "required";
1372
+ PROPERTY_COLSPAN: "colspan";
1373
+ PROPERTY_ROWSPAN: "rowspan";
1374
+ PROPERTY_MODAL: "modal";
1375
+ PROPERTY_ROWS: "thisRows";
1376
+ PROPERTY_BOLD: "bold";
1377
+ PROPERTY_UNDERLINED: "underlined";
1378
+ PROPERTY_ALIGNMENT: "alignment";
1379
+ PROPERTY_IMAGE: "imageUrl";
1380
+ PROPERTY_COL_WIDTH: "colWidth";
1381
+ PROPERTY_GRID_HEIGHT: "gridHeight";
1382
+ PROPERTY_HIDE_GRID_BTN: "hideGridButtons";
1383
+ PROPERTY_VISIBILITY_HIDDEN: "visibilityHidden";
1384
+ PROPERTY_TRANSIENT: "transient";
1385
+ PROPERTY_GRID_TITLE: "gridTitle";
1386
+ PROPERTY_GRID_FORM: "gridForm";
1387
+ PROPERTY_TOOLTIP: "tooltip";
1388
+ PROPERTY_VALUE_COLOR: "valueColor";
1389
+ PROPERTY_INPUT_AS_TEXT: "inputAsText";
1390
+ PROPERTY_NO_DOWNLOAD: "noDownload";
1391
+ PROPERTY_NO_ERASE: "noErase";
1392
+ PROPERTY_NO_LOCK: "noLock";
1393
+ PROPERTY_NO_HISTORY: "noHistory";
1394
+ PROPERTY_NO_MODIFY: "noModify";
1395
+ PROPERTY_ALLOW_EDITION: "allowEdition";
1396
+ PROPERTY_HIDE_SIGN_ICONS: "hideSignButtons";
1397
+ PROPERTY_URL: "url";
1398
+ PROPERTY_GRID_HIDE_BTN_ORDER: "hideOrderButton";
1399
+ PROPERTY_GRID_HIDE_BTN_INCLUDE: "hideIncludeButton";
1400
+ PROPERTY_REGEXP_MESSAGE: "regExpMessage";
1401
+ PROPERTY_PAGED_GRID: "paged";
1402
+ PROPERTY_PAGED_GRID_SIZE: "pagedGridSize";
1403
+ PROPERTY_GRID_ALTER_IN_LAST_PAGE: "alterOnlyLastPage";
1404
+ PROPERTY_GRID_PRINT_HORIZONTAL: "printHorizontal";
1405
+ PROPERTY_STORE_MODAL_QUERY_RESULT: "storeMdlQryResult";
1406
+ PROPERTY_INCLUDE_FIRST_ROW: "includeFirstRow";
1407
+ PROPERTY_MAX_REG_GRID: "maxRecords";
1408
+ PROPERTY_GRID_LABEL: "gridColTitle";
1409
+ PROPERTY_GRID_QUERY: "gridQuery";
1410
+ PROPERTY_HIDE_DOC_PERMISSIONS: "hideDocPermissions";
1411
+ PROPERTY_VERIFY_SIGNATURE_ONLY: "verifySignatureOnly";
1412
+ PROPERTY_GRID_HIDE_BTN_ADD: "hideAddButton";
1413
+ PROPERTY_GRID_HIDE_BTN_DEL: "hideDelButton";
1414
+ PROPERTY_HIDE_DOC_UPLOAD: "hideDocUpload";
1415
+ PROPERTY_HIDE_DOC_DOWNLOAD: "hideDocDownload";
1416
+ PROPERTY_HIDE_DOC_ERASE: "hideDocErase";
1417
+ PROPERTY_HIDE_DOC_LOCK: "hideDocLock";
1418
+ PROPERTY_HIDE_DOC_HISTORY: "hideDocHistory";
1419
+ PROPERTY_HIDE_DOC_SIGN: "hideSignButtons";
1420
+ PROPERTY_DISPLAY_NONE: "displayNone";
1421
+ PROPERTY_DONT_BREAK_RADIO: "dontBreakRadio";
1422
+ PROPERTY_CHECKED: "checked";
1423
+ PROPERTY_FILE_PREVIEW: "filePreview";
1424
+ PROPERTY_NOT_PRINT: "noPrint";
1425
+ PROPERTY_SELECT_PARENT: "selParent";
1426
+ PROPERTY_HEIGHT: "height";
1427
+ PROPERTY_MULTISELECT: "multiselect";
1428
+ PROPERTY_SEL_PARENT: "selParent";
1429
+ PROPERTY_PARENT_ICON: "parentIcon";
1430
+ PROPERTY_LEAF_ICON: "leafIcon";
1431
+ PROPERTY_CSS_CLASS: "cssClass";
1432
+ PROPERTY_DOC_TYPE: "docType";
1433
+ PROPERTY_HIDE_DOC_METADATA: "hideDocMetadata";
1434
+ PROPERTY_TRANSLATION_REQUIRED: "reqTrad";
1435
+ PROPERTY_SIGNATURE_REQUIRED: "reqSign";
1436
+ PROPERTY_SHOW_TOOLTIP_AS_HELP: "tooltipHelp";
1437
+ PROPERTY_DOCUMENT_MONITOR_DEF: "documentMonitorDef";
1438
+ PROPERTY_DOCUMENT_MONITOR_CUS: "documentMonitorCus";
1439
+ PROPERTY_DOCUMENT_SHOW_FOLD_TREE_BTN: "fileShwFoldTreeBtn";
1440
+ PROPERTY_DOCUMENT_SHOW_FOLD_TREE_STR: "fileShwFoldTreeStr";
1441
+ PROPERTY_DOCUMENT_NO_ALLOW_DRAG_DROP: "fileNoAllwDnD";
1442
+ PROPERTY_DOCUMENT_NO_SHOW_MODAL: "fileDntShwDocMdlOnDrop";
1443
+ PROPERTY_DOCUMENT_SHOW_DESC: "fileShowDesc";
1444
+ PROPERTY_DOCUMENT_DEFAULT_FOLDER: "fileDefFolder";
1445
+ PROPERTY_DOCUMENT_ROOT_FOLDER: "fileRootFolder";
1446
+ PROPERTY_DOCUMENT_EXP_DATE: "fileExpDate";
1447
+ PROPERTY_DOCUMENT_DNT_SHW_DOC_MON: "fileNotShowDocMon";
1448
+ PROPERTY_DOCUMENT_COLLAPSE_PERM: "fileCollapsePermission";
1449
+ PROPERTY_DOCUMENT_COLLAPSE_META: "fileCollapseMetadata";
1450
+ PROPERTY_DOCUMENT_COLLAPSE_FLD_STC: "fileCollapseFldStrc";
1451
+ WRONG_ATT_TYPE_ERROR: "Component does not support attributes of type <TOK>. Contact system administrator";
1452
+ STORE_KEY_FIELD: "field";
1453
+ STORE_KEY_FORM: "form";
1454
+ PROPERTY_ARIA_DESCRIPTION: "ariaDescription";
1455
+ PROPERTY_ARIA_LABEL: "ariaLabel";
1456
+ PROPERTY_ALT: "alt";
1457
+ PROPERTY_AUTO_COMPLETE: "autoComplete";
1458
+ PROPERTY_AUTO_FOCUS: "autoFocus";
1459
+ PROPERTY_INPUT_TYPE: "inputType";
1460
+ PROPERTY_PLACE_HOLDER: "placeHolder";
1461
+ PROPERTY_TITLE: "title";
1462
+ }>> | null)[];
1463
+ getCurrentPage(): number;
1464
+ getField(fieldName: string, fieldIndex?: number): IApiaField<Readonly<{
1465
+ TYPE_INPUT: "input";
1466
+ TYPE_SELECT: "select";
1467
+ TYPE_RADIO: "radio";
1468
+ TYPE_CHECK: "check";
1469
+ TYPE_BUTTON: "button";
1470
+ TYPE_AREA: "area";
1471
+ TYPE_LABEL: "label";
1472
+ TYPE_TITLE: "title";
1473
+ TYPE_FILE: "file";
1474
+ TYPE_MULTIPLE: "multiple";
1475
+ TYPE_HIDDEN: "hidden";
1476
+ TYPE_PASSWORD: "password";
1477
+ TYPE_GRID: "grid";
1478
+ TYPE_IMAGE: "image";
1479
+ TYPE_HREF: "href";
1480
+ TYPE_EDITOR: "editor";
1481
+ TYPE_TREE: "tree";
1482
+ TYPE_CAPTCHA: "captcha";
1483
+ PROPERTY_NAME: "name";
1484
+ PROPERTY_SIZE: "size";
1485
+ PROPERTY_READONLY: "readonly";
1486
+ PROPERTY_DISABLED: "disabled";
1487
+ PROPERTY_MODAL_DISABLED: "modalDisabled";
1488
+ PROPERTY_FONT_COLOR: "fontColor";
1489
+ PROPERTY_VALUE: "value";
1490
+ PROPERTY_REQUIRED: "required";
1491
+ PROPERTY_COLSPAN: "colspan";
1492
+ PROPERTY_ROWSPAN: "rowspan";
1493
+ PROPERTY_MODAL: "modal";
1494
+ PROPERTY_ROWS: "thisRows";
1495
+ PROPERTY_BOLD: "bold";
1496
+ PROPERTY_UNDERLINED: "underlined";
1497
+ PROPERTY_ALIGNMENT: "alignment";
1498
+ PROPERTY_IMAGE: "imageUrl";
1499
+ PROPERTY_COL_WIDTH: "colWidth";
1500
+ PROPERTY_GRID_HEIGHT: "gridHeight";
1501
+ PROPERTY_HIDE_GRID_BTN: "hideGridButtons";
1502
+ PROPERTY_VISIBILITY_HIDDEN: "visibilityHidden";
1503
+ PROPERTY_TRANSIENT: "transient";
1504
+ PROPERTY_GRID_TITLE: "gridTitle";
1505
+ PROPERTY_GRID_FORM: "gridForm";
1506
+ PROPERTY_TOOLTIP: "tooltip";
1507
+ PROPERTY_VALUE_COLOR: "valueColor";
1508
+ PROPERTY_INPUT_AS_TEXT: "inputAsText";
1509
+ PROPERTY_NO_DOWNLOAD: "noDownload";
1510
+ PROPERTY_NO_ERASE: "noErase";
1511
+ PROPERTY_NO_LOCK: "noLock";
1512
+ PROPERTY_NO_HISTORY: "noHistory";
1513
+ PROPERTY_NO_MODIFY: "noModify";
1514
+ PROPERTY_ALLOW_EDITION: "allowEdition";
1515
+ PROPERTY_HIDE_SIGN_ICONS: "hideSignButtons";
1516
+ PROPERTY_URL: "url";
1517
+ PROPERTY_GRID_HIDE_BTN_ORDER: "hideOrderButton";
1518
+ PROPERTY_GRID_HIDE_BTN_INCLUDE: "hideIncludeButton";
1519
+ PROPERTY_REGEXP_MESSAGE: "regExpMessage";
1520
+ PROPERTY_PAGED_GRID: "paged";
1521
+ PROPERTY_PAGED_GRID_SIZE: "pagedGridSize";
1522
+ PROPERTY_GRID_ALTER_IN_LAST_PAGE: "alterOnlyLastPage";
1523
+ PROPERTY_GRID_PRINT_HORIZONTAL: "printHorizontal";
1524
+ PROPERTY_STORE_MODAL_QUERY_RESULT: "storeMdlQryResult";
1525
+ PROPERTY_INCLUDE_FIRST_ROW: "includeFirstRow";
1526
+ PROPERTY_MAX_REG_GRID: "maxRecords";
1527
+ PROPERTY_GRID_LABEL: "gridColTitle";
1528
+ PROPERTY_GRID_QUERY: "gridQuery";
1529
+ PROPERTY_HIDE_DOC_PERMISSIONS: "hideDocPermissions";
1530
+ PROPERTY_VERIFY_SIGNATURE_ONLY: "verifySignatureOnly";
1531
+ PROPERTY_GRID_HIDE_BTN_ADD: "hideAddButton";
1532
+ PROPERTY_GRID_HIDE_BTN_DEL: "hideDelButton";
1533
+ PROPERTY_HIDE_DOC_UPLOAD: "hideDocUpload";
1534
+ PROPERTY_HIDE_DOC_DOWNLOAD: "hideDocDownload";
1535
+ PROPERTY_HIDE_DOC_ERASE: "hideDocErase";
1536
+ PROPERTY_HIDE_DOC_LOCK: "hideDocLock";
1537
+ PROPERTY_HIDE_DOC_HISTORY: "hideDocHistory";
1538
+ PROPERTY_HIDE_DOC_SIGN: "hideSignButtons";
1539
+ PROPERTY_DISPLAY_NONE: "displayNone";
1540
+ PROPERTY_DONT_BREAK_RADIO: "dontBreakRadio";
1541
+ PROPERTY_CHECKED: "checked";
1542
+ PROPERTY_FILE_PREVIEW: "filePreview";
1543
+ PROPERTY_NOT_PRINT: "noPrint";
1544
+ PROPERTY_SELECT_PARENT: "selParent";
1545
+ PROPERTY_HEIGHT: "height";
1546
+ PROPERTY_MULTISELECT: "multiselect";
1547
+ PROPERTY_SEL_PARENT: "selParent";
1548
+ PROPERTY_PARENT_ICON: "parentIcon";
1549
+ PROPERTY_LEAF_ICON: "leafIcon";
1550
+ PROPERTY_CSS_CLASS: "cssClass";
1551
+ PROPERTY_DOC_TYPE: "docType";
1552
+ PROPERTY_HIDE_DOC_METADATA: "hideDocMetadata";
1553
+ PROPERTY_TRANSLATION_REQUIRED: "reqTrad";
1554
+ PROPERTY_SIGNATURE_REQUIRED: "reqSign";
1555
+ PROPERTY_SHOW_TOOLTIP_AS_HELP: "tooltipHelp";
1556
+ PROPERTY_DOCUMENT_MONITOR_DEF: "documentMonitorDef";
1557
+ PROPERTY_DOCUMENT_MONITOR_CUS: "documentMonitorCus";
1558
+ PROPERTY_DOCUMENT_SHOW_FOLD_TREE_BTN: "fileShwFoldTreeBtn";
1559
+ PROPERTY_DOCUMENT_SHOW_FOLD_TREE_STR: "fileShwFoldTreeStr";
1560
+ PROPERTY_DOCUMENT_NO_ALLOW_DRAG_DROP: "fileNoAllwDnD";
1561
+ PROPERTY_DOCUMENT_NO_SHOW_MODAL: "fileDntShwDocMdlOnDrop";
1562
+ PROPERTY_DOCUMENT_SHOW_DESC: "fileShowDesc";
1563
+ PROPERTY_DOCUMENT_DEFAULT_FOLDER: "fileDefFolder";
1564
+ PROPERTY_DOCUMENT_ROOT_FOLDER: "fileRootFolder";
1565
+ PROPERTY_DOCUMENT_EXP_DATE: "fileExpDate";
1566
+ PROPERTY_DOCUMENT_DNT_SHW_DOC_MON: "fileNotShowDocMon";
1567
+ PROPERTY_DOCUMENT_COLLAPSE_PERM: "fileCollapsePermission";
1568
+ PROPERTY_DOCUMENT_COLLAPSE_META: "fileCollapseMetadata";
1569
+ PROPERTY_DOCUMENT_COLLAPSE_FLD_STC: "fileCollapseFldStrc";
1570
+ WRONG_ATT_TYPE_ERROR: "Component does not support attributes of type <TOK>. Contact system administrator";
1571
+ STORE_KEY_FIELD: "field";
1572
+ STORE_KEY_FORM: "form";
1573
+ PROPERTY_ARIA_DESCRIPTION: "ariaDescription";
1574
+ PROPERTY_ARIA_LABEL: "ariaLabel";
1575
+ PROPERTY_ALT: "alt";
1576
+ PROPERTY_AUTO_COMPLETE: "autoComplete";
1577
+ PROPERTY_AUTO_FOCUS: "autoFocus";
1578
+ PROPERTY_INPUT_TYPE: "inputType";
1579
+ PROPERTY_PLACE_HOLDER: "placeHolder";
1580
+ PROPERTY_TITLE: "title";
1581
+ }>> | IApiaField<Readonly<{
1582
+ TYPE_INPUT: "input";
1583
+ TYPE_SELECT: "select";
1584
+ TYPE_RADIO: "radio";
1585
+ TYPE_CHECK: "check";
1586
+ TYPE_BUTTON: "button";
1587
+ TYPE_AREA: "area";
1588
+ TYPE_LABEL: "label";
1589
+ TYPE_TITLE: "title";
1590
+ TYPE_FILE: "file";
1591
+ TYPE_MULTIPLE: "multiple";
1592
+ TYPE_HIDDEN: "hidden";
1593
+ TYPE_PASSWORD: "password";
1594
+ TYPE_GRID: "grid";
1595
+ TYPE_IMAGE: "image";
1596
+ TYPE_HREF: "href";
1597
+ TYPE_EDITOR: "editor";
1598
+ TYPE_TREE: "tree";
1599
+ TYPE_CAPTCHA: "captcha";
1600
+ PROPERTY_NAME: "name";
1601
+ PROPERTY_SIZE: "size";
1602
+ PROPERTY_READONLY: "readonly";
1603
+ PROPERTY_DISABLED: "disabled";
1604
+ PROPERTY_MODAL_DISABLED: "modalDisabled";
1605
+ PROPERTY_FONT_COLOR: "fontColor";
1606
+ PROPERTY_VALUE: "value";
1607
+ PROPERTY_REQUIRED: "required";
1608
+ PROPERTY_COLSPAN: "colspan";
1609
+ PROPERTY_ROWSPAN: "rowspan";
1610
+ PROPERTY_MODAL: "modal";
1611
+ PROPERTY_ROWS: "thisRows";
1612
+ PROPERTY_BOLD: "bold";
1613
+ PROPERTY_UNDERLINED: "underlined";
1614
+ PROPERTY_ALIGNMENT: "alignment";
1615
+ PROPERTY_IMAGE: "imageUrl";
1616
+ PROPERTY_COL_WIDTH: "colWidth";
1617
+ PROPERTY_GRID_HEIGHT: "gridHeight";
1618
+ PROPERTY_HIDE_GRID_BTN: "hideGridButtons";
1619
+ PROPERTY_VISIBILITY_HIDDEN: "visibilityHidden";
1620
+ PROPERTY_TRANSIENT: "transient";
1621
+ PROPERTY_GRID_TITLE: "gridTitle";
1622
+ PROPERTY_GRID_FORM: "gridForm";
1623
+ PROPERTY_TOOLTIP: "tooltip";
1624
+ PROPERTY_VALUE_COLOR: "valueColor";
1625
+ PROPERTY_INPUT_AS_TEXT: "inputAsText";
1626
+ PROPERTY_NO_DOWNLOAD: "noDownload";
1627
+ PROPERTY_NO_ERASE: "noErase";
1628
+ PROPERTY_NO_LOCK: "noLock";
1629
+ PROPERTY_NO_HISTORY: "noHistory";
1630
+ PROPERTY_NO_MODIFY: "noModify";
1631
+ PROPERTY_ALLOW_EDITION: "allowEdition";
1632
+ PROPERTY_HIDE_SIGN_ICONS: "hideSignButtons";
1633
+ PROPERTY_URL: "url";
1634
+ PROPERTY_GRID_HIDE_BTN_ORDER: "hideOrderButton";
1635
+ PROPERTY_GRID_HIDE_BTN_INCLUDE: "hideIncludeButton";
1636
+ PROPERTY_REGEXP_MESSAGE: "regExpMessage";
1637
+ PROPERTY_PAGED_GRID: "paged";
1638
+ PROPERTY_PAGED_GRID_SIZE: "pagedGridSize";
1639
+ PROPERTY_GRID_ALTER_IN_LAST_PAGE: "alterOnlyLastPage";
1640
+ PROPERTY_GRID_PRINT_HORIZONTAL: "printHorizontal";
1641
+ PROPERTY_STORE_MODAL_QUERY_RESULT: "storeMdlQryResult";
1642
+ PROPERTY_INCLUDE_FIRST_ROW: "includeFirstRow";
1643
+ PROPERTY_MAX_REG_GRID: "maxRecords";
1644
+ PROPERTY_GRID_LABEL: "gridColTitle";
1645
+ PROPERTY_GRID_QUERY: "gridQuery";
1646
+ PROPERTY_HIDE_DOC_PERMISSIONS: "hideDocPermissions";
1647
+ PROPERTY_VERIFY_SIGNATURE_ONLY: "verifySignatureOnly";
1648
+ PROPERTY_GRID_HIDE_BTN_ADD: "hideAddButton";
1649
+ PROPERTY_GRID_HIDE_BTN_DEL: "hideDelButton";
1650
+ PROPERTY_HIDE_DOC_UPLOAD: "hideDocUpload";
1651
+ PROPERTY_HIDE_DOC_DOWNLOAD: "hideDocDownload";
1652
+ PROPERTY_HIDE_DOC_ERASE: "hideDocErase";
1653
+ PROPERTY_HIDE_DOC_LOCK: "hideDocLock";
1654
+ PROPERTY_HIDE_DOC_HISTORY: "hideDocHistory";
1655
+ PROPERTY_HIDE_DOC_SIGN: "hideSignButtons";
1656
+ PROPERTY_DISPLAY_NONE: "displayNone";
1657
+ PROPERTY_DONT_BREAK_RADIO: "dontBreakRadio";
1658
+ PROPERTY_CHECKED: "checked";
1659
+ PROPERTY_FILE_PREVIEW: "filePreview";
1660
+ PROPERTY_NOT_PRINT: "noPrint";
1661
+ PROPERTY_SELECT_PARENT: "selParent";
1662
+ PROPERTY_HEIGHT: "height";
1663
+ PROPERTY_MULTISELECT: "multiselect";
1664
+ PROPERTY_SEL_PARENT: "selParent";
1665
+ PROPERTY_PARENT_ICON: "parentIcon";
1666
+ PROPERTY_LEAF_ICON: "leafIcon";
1667
+ PROPERTY_CSS_CLASS: "cssClass";
1668
+ PROPERTY_DOC_TYPE: "docType";
1669
+ PROPERTY_HIDE_DOC_METADATA: "hideDocMetadata";
1670
+ PROPERTY_TRANSLATION_REQUIRED: "reqTrad";
1671
+ PROPERTY_SIGNATURE_REQUIRED: "reqSign";
1672
+ PROPERTY_SHOW_TOOLTIP_AS_HELP: "tooltipHelp";
1673
+ PROPERTY_DOCUMENT_MONITOR_DEF: "documentMonitorDef";
1674
+ PROPERTY_DOCUMENT_MONITOR_CUS: "documentMonitorCus";
1675
+ PROPERTY_DOCUMENT_SHOW_FOLD_TREE_BTN: "fileShwFoldTreeBtn";
1676
+ PROPERTY_DOCUMENT_SHOW_FOLD_TREE_STR: "fileShwFoldTreeStr";
1677
+ PROPERTY_DOCUMENT_NO_ALLOW_DRAG_DROP: "fileNoAllwDnD";
1678
+ PROPERTY_DOCUMENT_NO_SHOW_MODAL: "fileDntShwDocMdlOnDrop";
1679
+ PROPERTY_DOCUMENT_SHOW_DESC: "fileShowDesc";
1680
+ PROPERTY_DOCUMENT_DEFAULT_FOLDER: "fileDefFolder";
1681
+ PROPERTY_DOCUMENT_ROOT_FOLDER: "fileRootFolder";
1682
+ PROPERTY_DOCUMENT_EXP_DATE: "fileExpDate";
1683
+ PROPERTY_DOCUMENT_DNT_SHW_DOC_MON: "fileNotShowDocMon";
1684
+ PROPERTY_DOCUMENT_COLLAPSE_PERM: "fileCollapsePermission";
1685
+ PROPERTY_DOCUMENT_COLLAPSE_META: "fileCollapseMetadata";
1686
+ PROPERTY_DOCUMENT_COLLAPSE_FLD_STC: "fileCollapseFldStrc";
1687
+ WRONG_ATT_TYPE_ERROR: "Component does not support attributes of type <TOK>. Contact system administrator";
1688
+ STORE_KEY_FIELD: "field";
1689
+ STORE_KEY_FORM: "form";
1690
+ PROPERTY_ARIA_DESCRIPTION: "ariaDescription";
1691
+ PROPERTY_ARIA_LABEL: "ariaLabel";
1692
+ PROPERTY_ALT: "alt";
1693
+ PROPERTY_AUTO_COMPLETE: "autoComplete";
1694
+ PROPERTY_AUTO_FOCUS: "autoFocus";
1695
+ PROPERTY_INPUT_TYPE: "inputType";
1696
+ PROPERTY_PLACE_HOLDER: "placeHolder";
1697
+ PROPERTY_TITLE: "title";
1698
+ }>>[] | null;
1699
+ getPageCount(): number;
1700
+ getPageSize(): number;
1701
+ getRow(index: number): IApiaField<Readonly<{
1702
+ TYPE_INPUT: "input";
1703
+ TYPE_SELECT: "select";
1704
+ TYPE_RADIO: "radio";
1705
+ TYPE_CHECK: "check";
1706
+ TYPE_BUTTON: "button";
1707
+ TYPE_AREA: "area";
1708
+ TYPE_LABEL: "label";
1709
+ TYPE_TITLE: "title";
1710
+ TYPE_FILE: "file";
1711
+ TYPE_MULTIPLE: "multiple";
1712
+ TYPE_HIDDEN: "hidden";
1713
+ TYPE_PASSWORD: "password";
1714
+ TYPE_GRID: "grid";
1715
+ TYPE_IMAGE: "image";
1716
+ TYPE_HREF: "href";
1717
+ TYPE_EDITOR: "editor";
1718
+ TYPE_TREE: "tree";
1719
+ TYPE_CAPTCHA: "captcha";
1720
+ PROPERTY_NAME: "name";
1721
+ PROPERTY_SIZE: "size";
1722
+ PROPERTY_READONLY: "readonly";
1723
+ PROPERTY_DISABLED: "disabled";
1724
+ PROPERTY_MODAL_DISABLED: "modalDisabled";
1725
+ PROPERTY_FONT_COLOR: "fontColor";
1726
+ PROPERTY_VALUE: "value";
1727
+ PROPERTY_REQUIRED: "required";
1728
+ PROPERTY_COLSPAN: "colspan";
1729
+ PROPERTY_ROWSPAN: "rowspan";
1730
+ PROPERTY_MODAL: "modal";
1731
+ PROPERTY_ROWS: "thisRows";
1732
+ PROPERTY_BOLD: "bold";
1733
+ PROPERTY_UNDERLINED: "underlined";
1734
+ PROPERTY_ALIGNMENT: "alignment";
1735
+ PROPERTY_IMAGE: "imageUrl";
1736
+ PROPERTY_COL_WIDTH: "colWidth";
1737
+ PROPERTY_GRID_HEIGHT: "gridHeight";
1738
+ PROPERTY_HIDE_GRID_BTN: "hideGridButtons";
1739
+ PROPERTY_VISIBILITY_HIDDEN: "visibilityHidden";
1740
+ PROPERTY_TRANSIENT: "transient";
1741
+ PROPERTY_GRID_TITLE: "gridTitle";
1742
+ PROPERTY_GRID_FORM: "gridForm";
1743
+ PROPERTY_TOOLTIP: "tooltip";
1744
+ PROPERTY_VALUE_COLOR: "valueColor";
1745
+ PROPERTY_INPUT_AS_TEXT: "inputAsText";
1746
+ PROPERTY_NO_DOWNLOAD: "noDownload";
1747
+ PROPERTY_NO_ERASE: "noErase";
1748
+ PROPERTY_NO_LOCK: "noLock";
1749
+ PROPERTY_NO_HISTORY: "noHistory";
1750
+ PROPERTY_NO_MODIFY: "noModify";
1751
+ PROPERTY_ALLOW_EDITION: "allowEdition";
1752
+ PROPERTY_HIDE_SIGN_ICONS: "hideSignButtons";
1753
+ PROPERTY_URL: "url";
1754
+ PROPERTY_GRID_HIDE_BTN_ORDER: "hideOrderButton";
1755
+ PROPERTY_GRID_HIDE_BTN_INCLUDE: "hideIncludeButton";
1756
+ PROPERTY_REGEXP_MESSAGE: "regExpMessage";
1757
+ PROPERTY_PAGED_GRID: "paged";
1758
+ PROPERTY_PAGED_GRID_SIZE: "pagedGridSize";
1759
+ PROPERTY_GRID_ALTER_IN_LAST_PAGE: "alterOnlyLastPage";
1760
+ PROPERTY_GRID_PRINT_HORIZONTAL: "printHorizontal";
1761
+ PROPERTY_STORE_MODAL_QUERY_RESULT: "storeMdlQryResult";
1762
+ PROPERTY_INCLUDE_FIRST_ROW: "includeFirstRow";
1763
+ PROPERTY_MAX_REG_GRID: "maxRecords";
1764
+ PROPERTY_GRID_LABEL: "gridColTitle";
1765
+ PROPERTY_GRID_QUERY: "gridQuery";
1766
+ PROPERTY_HIDE_DOC_PERMISSIONS: "hideDocPermissions";
1767
+ PROPERTY_VERIFY_SIGNATURE_ONLY: "verifySignatureOnly";
1768
+ PROPERTY_GRID_HIDE_BTN_ADD: "hideAddButton";
1769
+ PROPERTY_GRID_HIDE_BTN_DEL: "hideDelButton";
1770
+ PROPERTY_HIDE_DOC_UPLOAD: "hideDocUpload";
1771
+ PROPERTY_HIDE_DOC_DOWNLOAD: "hideDocDownload";
1772
+ PROPERTY_HIDE_DOC_ERASE: "hideDocErase";
1773
+ PROPERTY_HIDE_DOC_LOCK: "hideDocLock";
1774
+ PROPERTY_HIDE_DOC_HISTORY: "hideDocHistory";
1775
+ PROPERTY_HIDE_DOC_SIGN: "hideSignButtons";
1776
+ PROPERTY_DISPLAY_NONE: "displayNone";
1777
+ PROPERTY_DONT_BREAK_RADIO: "dontBreakRadio";
1778
+ PROPERTY_CHECKED: "checked";
1779
+ PROPERTY_FILE_PREVIEW: "filePreview";
1780
+ PROPERTY_NOT_PRINT: "noPrint";
1781
+ PROPERTY_SELECT_PARENT: "selParent";
1782
+ PROPERTY_HEIGHT: "height";
1783
+ PROPERTY_MULTISELECT: "multiselect";
1784
+ PROPERTY_SEL_PARENT: "selParent";
1785
+ PROPERTY_PARENT_ICON: "parentIcon";
1786
+ PROPERTY_LEAF_ICON: "leafIcon";
1787
+ PROPERTY_CSS_CLASS: "cssClass";
1788
+ PROPERTY_DOC_TYPE: "docType";
1789
+ PROPERTY_HIDE_DOC_METADATA: "hideDocMetadata";
1790
+ PROPERTY_TRANSLATION_REQUIRED: "reqTrad";
1791
+ PROPERTY_SIGNATURE_REQUIRED: "reqSign";
1792
+ PROPERTY_SHOW_TOOLTIP_AS_HELP: "tooltipHelp";
1793
+ PROPERTY_DOCUMENT_MONITOR_DEF: "documentMonitorDef";
1794
+ PROPERTY_DOCUMENT_MONITOR_CUS: "documentMonitorCus";
1795
+ PROPERTY_DOCUMENT_SHOW_FOLD_TREE_BTN: "fileShwFoldTreeBtn";
1796
+ PROPERTY_DOCUMENT_SHOW_FOLD_TREE_STR: "fileShwFoldTreeStr";
1797
+ PROPERTY_DOCUMENT_NO_ALLOW_DRAG_DROP: "fileNoAllwDnD";
1798
+ PROPERTY_DOCUMENT_NO_SHOW_MODAL: "fileDntShwDocMdlOnDrop";
1799
+ PROPERTY_DOCUMENT_SHOW_DESC: "fileShowDesc";
1800
+ PROPERTY_DOCUMENT_DEFAULT_FOLDER: "fileDefFolder";
1801
+ PROPERTY_DOCUMENT_ROOT_FOLDER: "fileRootFolder";
1802
+ PROPERTY_DOCUMENT_EXP_DATE: "fileExpDate";
1803
+ PROPERTY_DOCUMENT_DNT_SHW_DOC_MON: "fileNotShowDocMon";
1804
+ PROPERTY_DOCUMENT_COLLAPSE_PERM: "fileCollapsePermission";
1805
+ PROPERTY_DOCUMENT_COLLAPSE_META: "fileCollapseMetadata";
1806
+ PROPERTY_DOCUMENT_COLLAPSE_FLD_STC: "fileCollapseFldStrc";
1807
+ WRONG_ATT_TYPE_ERROR: "Component does not support attributes of type <TOK>. Contact system administrator";
1808
+ STORE_KEY_FIELD: "field";
1809
+ STORE_KEY_FORM: "form";
1810
+ PROPERTY_ARIA_DESCRIPTION: "ariaDescription";
1811
+ PROPERTY_ARIA_LABEL: "ariaLabel";
1812
+ PROPERTY_ALT: "alt";
1813
+ PROPERTY_AUTO_COMPLETE: "autoComplete";
1814
+ PROPERTY_AUTO_FOCUS: "autoFocus";
1815
+ PROPERTY_INPUT_TYPE: "inputType";
1816
+ PROPERTY_PLACE_HOLDER: "placeHolder";
1817
+ PROPERTY_TITLE: "title";
1818
+ }>>[] | undefined;
1819
+ getSelection(): IApiaField[][];
1820
+ get id(): string;
1821
+ isPaged(): boolean;
1822
+ get rowsCount(): number;
1823
+ toggleColumnVisibility(fieldName: string, isShown?: boolean): void;
1824
+ toggleDeleteButton(index: number, isShown?: boolean): void;
1825
+ toggleEditFormButton(rowIndex: number, isShown?: boolean): void;
1523
1826
  }
1524
1827
 
1525
- declare class Task {
1828
+ type TCaptchaField = IApiaField;
1829
+ declare class CaptchaField extends ApiaField implements TCaptchaField {
1830
+ }
1831
+
1832
+ declare class FileUploaderField extends ApiaFieldWithAttribute {
1526
1833
  #private;
1527
- constructor(task: any);
1528
- setPriority(newPriority: string): void;
1529
- get name(): string;
1834
+ constructor(execution: Execution, field: File$1);
1835
+ onChange(cb: (newValue: unknown) => unknown): void;
1836
+ setValue(): null;
1530
1837
  }
1531
1838
 
1532
- type TEntity = {
1533
- title: string;
1534
- readOnly: boolean;
1535
- separator: string;
1536
- associations: Associations[];
1537
- date: {
1538
- label: string;
1539
- toolTip: string;
1540
- value: string;
1541
- };
1542
- entityType: {
1543
- label: string;
1544
- toolTip: string;
1545
- value: string;
1546
- };
1547
- identifier: {
1548
- label: string;
1549
- toolTip: string;
1550
- value?: string;
1551
- prefix?: {
1552
- name: string;
1553
- type: 'custom' | 'fixed' | 'none';
1554
- label?: string;
1555
- toolTip?: string;
1556
- value?: string;
1557
- };
1558
- body: {
1559
- type: 'autogenerated' | 'sameAsProcess';
1560
- label: string;
1561
- name?: string;
1562
- toolTip?: string;
1563
- value?: string;
1564
- required?: false;
1565
- } | {
1566
- label: string;
1567
- toolTip?: string;
1568
- value?: string;
1569
- type: 'custom';
1570
- required: boolean;
1571
- name: string;
1572
- };
1573
- suffix?: {
1574
- name: string;
1575
- type: 'custom' | 'fixed' | 'none';
1576
- toolTip?: string;
1577
- label?: string;
1578
- value?: string;
1579
- };
1580
- };
1581
- image: {
1582
- label: string;
1583
- toolTip: string;
1584
- file: File | null;
1585
- };
1586
- status: {
1587
- name: string;
1588
- label: string;
1589
- toolTip: string;
1590
- type: 'fixex' | 'select' | 'none';
1591
- value?: string;
1592
- disabled?: boolean;
1593
- options: {
1594
- label: string;
1595
- value: string;
1596
- selected: boolean;
1597
- }[];
1598
- };
1599
- user: {
1600
- label: string;
1601
- name: string;
1602
- toolTip: string;
1603
- };
1604
- categories: TCategory[] | [];
1605
- visibilities: PoolId[];
1606
- };
1607
- type TCategory = {
1608
- checked: boolean;
1609
- envId: string;
1610
- id: string;
1611
- idFather: string;
1612
- name: string;
1613
- };
1614
- type PoolId = {
1615
- poolId: string;
1616
- poolName: string;
1617
- canUpdate: boolean;
1618
- };
1619
- type Associations = {
1620
- asocName: string;
1621
- asocId: string;
1622
- asocRelName: string;
1623
- };
1839
+ declare class PasswordField extends ApiaField {
1840
+ }
1624
1841
 
1625
- declare class Entity {
1626
- execution: Execution;
1627
- state: TEntity | null;
1628
- uploader: UploaderApi;
1629
- controller: TableController;
1630
- constructor(execution: Execution);
1631
- get name(): string | undefined;
1632
- private hasInited;
1633
- init(): Promise<void>;
1634
- getConfirmParams(): any;
1635
- loadCategories: () => Promise<void>;
1636
- loadPools: () => Promise<void>;
1637
- loadAssociations: () => Promise<void>;
1638
- private parseRows;
1639
- deleteRow(): void;
1640
- addRow(): void;
1842
+ declare class ModalInputField extends ApiaFieldWithAttribute {
1843
+ #private;
1844
+ constructor(execution: Execution, field: ModalInput);
1845
+ getObjectValue(): any | null;
1846
+ setValue(v: any): void;
1847
+ setValueFromInputWrite(value: string): Promise<void>;
1641
1848
  }
1642
1849
 
1643
- type TObservations = {
1644
- observations: TObservation[] | [];
1645
- newObservation: {
1646
- commentValue: string;
1647
- chkAddAlert?: boolean;
1648
- chkAddAllAlert?: boolean;
1649
- chkRemAlert?: boolean;
1650
- } | null;
1651
- };
1652
- type TObservation = {
1653
- name: string;
1654
- date: string;
1655
- userTitle: string;
1656
- groupTitle: string;
1657
- taskTitle: string;
1658
- userLabel: string;
1659
- groupLabel: string;
1660
- taskLabel: string;
1661
- checked?: boolean;
1662
- disabled?: boolean;
1663
- marked?: boolean;
1664
- comment: string;
1850
+ type TCreateNewField = (execution: Execution, field: Field | FieldWithAttribute | CustomComponent) => IApiaField | null;
1851
+
1852
+ declare const createNewField: TCreateNewField;
1853
+
1854
+ type TCustomComponentState = {
1855
+ isLoading: boolean;
1856
+ attributes: Record<string, any[]>;
1857
+ properties: Record<string, any>;
1858
+ additional: any;
1859
+ component: any;
1665
1860
  };
1861
+ declare class CustomComponent {
1862
+ #private;
1863
+ execution: Execution;
1864
+ readonly definition: TCustomComponentDefinition;
1865
+ private form;
1866
+ private _state;
1867
+ constructor(execution: Execution, definition: TCustomComponentDefinition);
1868
+ get state(): DeepReadonly<TCustomComponentState>;
1869
+ getAdditional<T>(): DeepReadonly<T>;
1870
+ getCurrentForm(): ApiaForm;
1871
+ init(form: Form): Promise<void>;
1872
+ private parseStateObject;
1873
+ processResult<Result extends Record<string, unknown> = Record<string, unknown>>(res?: TCustomComponentDefaultResponse | null): Promise<(Result & {
1874
+ success: boolean;
1875
+ }) | undefined>;
1876
+ protected getScriptEventParams(fncParams: TFncParams[]): unknown[];
1877
+ protected fireScriptEvents(event: ComponentEvent): Promise<boolean>;
1878
+ fireEvent(evtName: string): Promise<boolean>;
1879
+ getProperty(prpName: string): any;
1880
+ private postMessage;
1881
+ setStringValue(attName: string, value: string): Promise<boolean>;
1882
+ getStringValue(attName: string): string;
1883
+ getValue(attName: string, index?: number): any;
1884
+ getValues(attName: string): any[];
1885
+ removeIndex(attName: string, index: number): Promise<boolean>;
1886
+ setValue(attName: string, value: any, index: number): Promise<boolean>;
1887
+ setProperty(prpName: string, value: any): Promise<boolean>;
1888
+ sendMessage<T extends Record<string, unknown> = Record<string, unknown>>(payload: any): Promise<(T & {
1889
+ success: boolean;
1890
+ }) | undefined>;
1891
+ download(attName: string, index: number): Promise<void>;
1892
+ upload(attName: string, file: File, options?: {
1893
+ onUploadProgress?: (percent: number) => unknown;
1894
+ params?: Record<string, any>;
1895
+ } & Pick<AxiosRequestConfig<any>, 'signal'>): Promise<({
1896
+ index: number;
1897
+ fileName: string;
1898
+ } & {
1899
+ success: boolean;
1900
+ }) | undefined>;
1901
+ setState<K extends keyof TCustomComponentState>(prop: K, value: TCustomComponentState[K]): void;
1902
+ }
1666
1903
 
1667
- declare class Observations {
1904
+ declare class Form extends WithProperties<TApiaFormProperties> {
1668
1905
  execution: Execution;
1669
- state: TObservations;
1670
- constructor(execution: Execution);
1671
- private hasInited;
1906
+ fields: TApiaFieldBaseDefinition<Record<string, any>>[];
1907
+ state: {
1908
+ isMarkedToSign: boolean;
1909
+ };
1910
+ protected _customComponents: Map<string, CustomComponent>;
1911
+ protected fieldsById: Map<string, Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
1912
+ definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
1913
+ }>>;
1914
+ protected fieldsByName: Map<string, Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
1915
+ definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
1916
+ }>>;
1917
+ protected fieldsByAttributeId: Map<string | number, FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>>>;
1918
+ protected fieldsByAttributeName: Map<string, FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>>>;
1919
+ protected fieldsGroups: Map<string, Grid>;
1920
+ definition: TApiaForm;
1921
+ constructor(execution: Execution, definition: TApiaForm);
1922
+ get allFields(): Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
1923
+ definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
1924
+ }>[];
1925
+ get customComponents(): Map<string, CustomComponent>;
1926
+ closeForm(): void;
1927
+ openForm(): void;
1928
+ getField(field: string, index?: number): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
1929
+ definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
1930
+ }> | Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
1931
+ definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
1932
+ }> | FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>> | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
1933
+ definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
1934
+ }>[] | undefined;
1935
+ getFieldByAttributeId(attId: string | number, index?: number): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
1936
+ definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
1937
+ }> | FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>> | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
1938
+ definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
1939
+ }>[] | undefined;
1940
+ getFieldByAttributeName(attName: string, index?: number): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
1941
+ definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
1942
+ }> | FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>> | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
1943
+ definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
1944
+ }>[] | undefined;
1945
+ getFieldById(id: string | number, index?: number): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
1946
+ definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
1947
+ }> | Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
1948
+ definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
1949
+ }> | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
1950
+ definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
1951
+ }>[] | undefined;
1952
+ getFieldByName(name: string, index?: number): Field | Field[] | undefined;
1953
+ protected getHiddenFields(): Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
1954
+ definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
1955
+ }>[];
1956
+ markFormToSign(): Promise<void>;
1957
+ viewSigns(): Promise<TSignaturesData | undefined>;
1958
+ private cucCmpByAttId;
1959
+ private cucCmpByFldId;
1960
+ private cucCmpByAttName;
1961
+ private mustRenderFields;
1962
+ getCustomComponentByFldId(fldId: number): CustomComponent | undefined;
1963
+ getCustomComponentByAttId(attId: number): CustomComponent | undefined;
1964
+ getCustomComponentByAttName(attName: string): CustomComponent | undefined;
1965
+ addFieldToRender(fldId: string, fldIndex?: number): void;
1966
+ markFieldAsRendered(fldId: string, fldIndex?: number): void;
1672
1967
  init(): Promise<void>;
1673
- getConfirmParams(): {
1674
- txtComment: string | undefined;
1675
- chkAddAlert: string | undefined;
1676
- chkAddAllAlert: string | undefined;
1677
- chkRemAlert: string | undefined;
1678
- };
1679
- setPriority(newPriority: string): void;
1680
- }
1681
-
1682
- type ConfirmStep = 'CHECK_LOCK' | 'CONFIRM' | 'CHECK_SIGN' | 'CHECK_WIZARD' | 'SIGN';
1683
- type Status = {
1684
- step?: ConfirmStep;
1685
- error?: string;
1686
- finishedWithError?: boolean;
1687
- };
1688
- declare abstract class FlowModal<T extends {
1689
- confirmed?: boolean;
1690
- }> {
1691
- abstract confirm(result: T): Promise<Status | FlowModal<any>>;
1692
- }
1693
-
1694
- declare enum ExecutionState {
1695
- RUNNING = 0,
1696
- LOADING = 1,
1697
- FINISHED = 2,
1698
- RENDERING = 3,
1699
- CONFIRMING = 4,
1700
- FINISHED_WITH_ERROR = 5
1968
+ protected getScriptEventParams(fncParams: TFncParams[]): Promise<unknown[]>;
1969
+ fireScriptEvent(eventName: TFormEventName): Promise<boolean>;
1970
+ validate(): Promise<true | Field>;
1971
+ getProperty<K extends keyof TApiaFormProperties>(propName: K | 'readOnly'): TApiaFormProperties[K];
1701
1972
  }
1702
- type TOnClose = 'clearEvalPath' | 'confirmOkOnClose' | 'confirmOkOnCloseSplash' | 'confirmOkOnSaveSplash' | 'releaseOkOnClose' | null;
1703
- type TErrMessage = {
1704
- message: {
1705
- text: string;
1706
- label?: string;
1707
- };
1708
- };
1709
- type TFetchTaskActionResponse = {
1710
- onClose?: TOnClose;
1711
- sysMessages?: TErrMessage;
1712
- sysExceptions?: TErrMessage;
1713
- type?: string;
1714
- actions?: {
1715
- action: {
1716
- param: string[];
1717
- toDo: string;
1718
- };
1719
- };
1720
- load?: {
1721
- canClose: boolean;
1722
- type: string;
1723
- text: {
1724
- label: string;
1725
- closeAll: boolean;
1726
- addClass?: string;
1727
- title?: string;
1728
- };
1729
- };
1730
- text?: {
1731
- title?: string;
1732
- label?: string;
1733
- };
1734
- };
1735
1973
 
1736
- type TCheckWizardResponse = {
1737
- url: string;
1738
- };
1739
- type TFetchConfirmPathResponse = {
1740
- onClose?: string;
1741
- sysMessages?: {
1742
- message?: {
1743
- text: string;
1744
- };
1745
- };
1746
- pathSelection?: boolean | null;
1747
- groupSelection?: boolean | null;
1748
- load?: TApiaLoadForm & {
1749
- type: 'form' | 'text' | 'table' | 'function';
1750
- canClose: boolean;
1751
- text?: {
1752
- closeAll: string;
1753
- title: string;
1754
- addClass: string;
1755
- label: string;
1756
- content?: string;
1757
- };
1758
- };
1759
- actions?: {
1760
- action: {
1761
- toDo: 'functionTimedCall';
1762
- param: [number, string];
1763
- };
1764
- };
1765
- };
1766
- type TItemTreeObj = {
1974
+ type TTranslationState = {
1767
1975
  id: string;
1768
- name: string;
1769
- level: number;
1770
- value: boolean;
1771
- type: TPathType;
1772
- isOn: boolean;
1976
+ label: string;
1977
+ hasChanged: boolean;
1978
+ isTranslated: boolean;
1979
+ remoteValue?: string;
1980
+ tempValue: string;
1773
1981
  };
1774
- type TPathType = 'OR' | 'XOR' | 'AND';
1775
1982
 
1776
- declare class ShowPathSelection extends FlowModal<{
1777
- confirmed: boolean;
1778
- path: string;
1779
- }> {
1780
- fetchResult: TApiaLoadForm['form'];
1781
- confirm: (result: {
1782
- confirmed: boolean;
1783
- path: string;
1784
- }) => Promise<Status | FlowModal<any>>;
1785
- state: {
1786
- disabledParents: TItemTreeObj | TItemTreeObj[] | null;
1787
- groupSelectionObj: TFetchConfirmPathResponse | null;
1788
- };
1789
- constructor(fetchResult: TApiaLoadForm['form'], confirm: (result: {
1790
- confirmed: boolean;
1791
- path: string;
1792
- }) => Promise<Status | FlowModal<any>>);
1793
- setDisabledParent(treeItem: TItemTreeObj): void;
1794
- clearPaths(): void;
1795
- showGroupsSelection(fetchConfirmPathResponse: TFetchConfirmPathResponse): void;
1796
- updateDisabledList(itemObj: TItemTreeObj, itemArr: TItemTreeObj[]): TItemTreeObj[];
1983
+ declare class Translation {
1984
+ execution: Execution;
1985
+ state: TTranslationState;
1986
+ constructor(execution: Execution, state: Pick<TTranslationState, 'id' | 'label' | 'isTranslated'>);
1987
+ cancelTranslation(): void;
1988
+ readTranslations(url: string): Promise<void>;
1989
+ reset(): void;
1990
+ deleteTranslation(): void;
1991
+ setTempValue(str: string): void;
1992
+ submitTranslation(value: string, url: string): void;
1993
+ get langId(): string;
1994
+ get value(): string;
1797
1995
  }
1798
1996
 
1799
- declare class ShowPoolSelection extends FlowModal<{
1800
- confirmed: boolean;
1801
- group: string;
1802
- }> {
1803
- fetchResult: TApiaLoadForm['form'];
1804
- confirm: (result: {
1805
- confirmed: boolean;
1806
- group: string;
1807
- }) => Promise<Status>;
1808
- constructor(fetchResult: TApiaLoadForm['form'], confirm: (result: {
1809
- confirmed: boolean;
1810
- group: string;
1811
- }) => Promise<Status>);
1997
+ interface InitialTradMap {
1998
+ [key: string]: boolean;
1812
1999
  }
1813
-
1814
- declare class ShowSignSelection extends FlowModal<{
1815
- confirmed: boolean;
1816
- signed: boolean;
1817
- }> {
1818
- fetchResult: any;
1819
- confirm: (result: {
1820
- confirmed: boolean;
1821
- signed: boolean;
1822
- }) => Promise<Status>;
1823
- constructor(fetchResult: any, confirm: (result: {
1824
- confirmed: boolean;
1825
- signed: boolean;
1826
- }) => Promise<Status>);
2000
+ declare abstract class TranslatableField<FieldProps extends TApiaTranslatableFieldProperties = TApiaTranslatableFieldProperties, ValueType = any, FieldDefinition extends TApiaFieldWithAttributeBaseProps<FieldProps> = TApiaFieldWithAttributeBaseProps<FieldProps>> extends FieldWithAttribute<FieldProps, ValueType, FieldDefinition> {
2001
+ translations: Map<string, Translation>;
2002
+ selectedLanguageId: string;
2003
+ isTradLoading: boolean;
2004
+ definitionTradParsed: InitialTradMap;
2005
+ constructor(props: TApiaFieldWithAttributeBaseProps<FieldProps>);
2006
+ private extractTrad;
2007
+ private getLanguages;
2008
+ init(form: Form): Promise<void>;
2009
+ cancelTranslations(): void;
2010
+ deleteTranslations(): void;
2011
+ changeLanguage(langId: string): Promise<void>;
2012
+ getTranslation(id: string): Translation | undefined;
2013
+ getCurrentTranslation(): Translation | undefined;
2014
+ getTranslations(): Map<string, Translation>;
2015
+ submitTranslations(): void;
2016
+ syncTranslation(): Promise<void>;
2017
+ validate(): Promise<boolean>;
2018
+ setValue(newValue: ValueType, options?: Partial<{
2019
+ comparator: Comparator$1<any>;
2020
+ format: 'd/m/Y' | 'apia';
2021
+ markAsDirty: boolean;
2022
+ synchronize: boolean;
2023
+ }> | undefined): Promise<boolean>;
1827
2024
  }
1828
2025
 
1829
- declare class ShowConfirmMessage extends FlowModal<{
1830
- confirmed: boolean;
1831
- }> {
1832
- fetchResult: any;
1833
- confirm: (result: {
1834
- confirmed: boolean;
1835
- }) => Promise<Status>;
1836
- constructor(fetchResult: any, confirm: (result: {
1837
- confirmed: boolean;
1838
- }) => Promise<Status>);
2026
+ type FieldConstructor = new (definition: any) => Field<any, any, any> | FieldWithAttribute<any, any, any> | TranslatableField<any, any, any>;
2027
+ type FieldsMapping = Record<string, (definition: any) => FieldConstructor>;
2028
+
2029
+ type NotificationIcon = string;
2030
+ type NotificationType = 'info' | 'error' | 'success' | 'warning';
2031
+ type NotificationDefinition = {
2032
+ icon?: NotificationIcon;
2033
+ id?: string | number;
2034
+ isOpen?: boolean;
2035
+ message: string;
2036
+ stackTrace?: string;
2037
+ title?: string;
2038
+ type?: NotificationType;
2039
+ };
2040
+ declare abstract class Notification<State extends NotificationDefinition = NotificationDefinition> {
2041
+ readonly props: State;
2042
+ protected state: State;
2043
+ constructor(props: State);
2044
+ get icon(): string | undefined;
2045
+ get id(): string | number | undefined;
2046
+ get isOpen(): boolean | undefined;
2047
+ get message(): string;
2048
+ get stackTrace(): string | undefined;
2049
+ get title(): string | undefined;
2050
+ get type(): NotificationType | undefined;
1839
2051
  }
1840
2052
 
1841
- declare class ShowSign extends FlowModal<{
1842
- confirmed: boolean;
1843
- }> {
1844
- fetchResult: any;
1845
- confirm: (result: {
1846
- confirmed: boolean;
1847
- }) => Promise<Status>;
1848
- constructor(fetchResult: any, confirm: (result: {
1849
- confirmed: boolean;
1850
- }) => Promise<Status>);
2053
+ declare class Notifications {
2054
+ execution: Execution;
2055
+ private emitter;
2056
+ constructor(execution: Execution);
2057
+ protected notifications: Notification[];
2058
+ add(notification: Notification): void;
2059
+ closeTab(): void;
2060
+ getAll(): Notification<NotificationDefinition>[];
2061
+ getById(id: string | number): Notification<NotificationDefinition> | undefined;
2062
+ kill(): void;
2063
+ remove(notification: string | number | Notification): void;
2064
+ on: <K extends "closeTab" | "kill" | "notification">(event: K, cb: Callback<{
2065
+ closeTab: null;
2066
+ kill: null;
2067
+ notification: Notification;
2068
+ }, K>) => UnSubscriber;
1851
2069
  }
1852
2070
 
1853
- type TExecutionConfig = {
1854
- canConfirm: boolean;
1855
- canGoBack: boolean;
1856
- canGoForward: boolean;
1857
- canSave: boolean;
1858
- canFree: boolean;
1859
- canDelegate: boolean;
1860
- canClose: boolean;
1861
- canShare: boolean;
1862
- isEntity?: boolean;
1863
- };
1864
- type TExecutionEnvironment = {
1865
- fieldsMapping?: FieldsMapping;
1866
- window: Window;
1867
- document: Document;
1868
- headers: any;
1869
- properties?: {
1870
- taskName: string;
1871
- processName: string;
2071
+ type TProcess = {
2072
+ calendar: {
2073
+ fixed: boolean;
2074
+ label: string;
2075
+ name: string;
2076
+ options: {
2077
+ label: string;
2078
+ value: string;
2079
+ selected: boolean;
2080
+ }[];
2081
+ toolTip: string;
2082
+ value: string;
2083
+ viewButton: {
2084
+ label: string;
2085
+ toolTip: string;
2086
+ };
1872
2087
  };
1873
- };
1874
- declare class Execution extends EventEmitter$1<{
1875
- confirm: null;
1876
- next: null;
1877
- sendToDesktop: null;
1878
- }> {
1879
- environment: TExecutionEnvironment;
1880
- fieldsMapping: FieldsMapping;
1881
- private entity;
1882
- private process;
1883
- private observations;
1884
- executionConfig: TExecutionConfig | null;
1885
- private _steps;
1886
- private _currentStep;
1887
- private _stepCount;
1888
- readonly notifications: Notifications;
1889
- private lastModalReturn;
1890
- constructor(environment: TExecutionEnvironment);
1891
- protected formsById: {
1892
- E: Map<string, Form>;
1893
- P: Map<string, Form>;
2088
+ comments: {
2089
+ currentComment: string;
2090
+ addMarker: boolean;
2091
+ markAll: boolean;
2092
+ deleteMarker: boolean;
2093
+ history: {
2094
+ comment: string;
2095
+ marked: boolean;
2096
+ date: string;
2097
+ user: string;
2098
+ }[];
1894
2099
  };
1895
- protected forms: {
1896
- E: Map<string, Form>;
1897
- P: Map<string, Form>;
2100
+ identifier: {
2101
+ body: {
2102
+ name: string;
2103
+ required: boolean;
2104
+ toolTip: string;
2105
+ type: 'fixed' | 'custom';
2106
+ value: string;
2107
+ };
2108
+ label: string;
2109
+ prefix: {
2110
+ label: string;
2111
+ name: string;
2112
+ toolTip: string;
2113
+ type: 'fixed' | 'custom' | 'none';
2114
+ value: string;
2115
+ };
2116
+ required: boolean;
2117
+ suffix: {
2118
+ label: string;
2119
+ name: string;
2120
+ toolTip: string;
2121
+ type: 'fixed' | 'custom' | 'none';
2122
+ value: string;
2123
+ };
2124
+ toolTip: string;
2125
+ value: string;
1898
2126
  };
1899
- state: {
1900
- formsReady: ReturnType<Execution['getAllForms']>;
1901
- executionState: ExecutionState;
1902
- locked: boolean;
1903
- hasChangedAnything: boolean;
2127
+ priority: {
2128
+ disabled: boolean;
2129
+ isMonitor: boolean;
2130
+ label: string;
2131
+ name: string;
2132
+ options: {
2133
+ label: string;
2134
+ value: string;
2135
+ selected: boolean;
2136
+ }[];
2137
+ toolTip: string;
2138
+ value: string;
1904
2139
  };
1905
- getAllForms(): Form[];
1906
- private hasInitializedFormsTabs;
1907
- initializeFormsTabs(frmParent: TFrmParent, cb: () => unknown): void;
1908
- getFormsByType(type: TFrmParent): Form[];
1909
- getFormByName(formName: string, frmParent?: TFrmParent): Form | undefined;
1910
- getFormById(formId: string | number, frmParent?: TFrmParent): Form | undefined;
1911
- get currentStep(): number;
1912
- get steps(): {
1913
- title: string;
1914
- stepNumber: number;
1915
- status: "completed" | "pending" | "current";
1916
- }[];
1917
- getEntity(): Entity;
1918
- getProcess(): Process;
1919
- getObservations(): Observations;
1920
- getCurrentTask(): Task;
1921
- private mustRenderForms;
1922
- run(executionConfig: TExecutionConfig): Promise<void>;
1923
- protected getHiddenForms(): Form[];
1924
- markFormAsRendered(frmParent: string, frmName: string): void;
1925
- delegate(): Promise<void>;
1926
- shareSocial(): Promise<void>;
1927
- confirm(): void;
1928
- next(): void;
1929
- sendToDesktop(): void;
1930
- doBack(): Promise<false | undefined>;
1931
- doConfirm(status?: Status): Promise<boolean | FlowModal<any> | Field>;
1932
- doFree(): Promise<TApiaApiAxiosResponse<(TFetchTaskActionResponse & ResponseSysMessages) | null> | null>;
1933
- doNext(result?: {
1934
- confirmed: boolean;
1935
- signed: boolean;
1936
- }): Promise<boolean | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
1937
- definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
1938
- }> | ShowSignSelection | undefined>;
1939
- doPrint(): Promise<void>;
1940
- doSave(): Promise<TApiaApiAxiosResponse<(TFetchTaskActionResponse & ResponseSysMessages) | null> | undefined>;
1941
- getStepTitle(step: number): {
1942
- title: string;
1943
- stepNumber: number;
1944
- status: "completed" | "pending" | "current";
1945
- } | undefined;
2140
+ process: {
2141
+ label: string;
2142
+ toolTip: string;
2143
+ value: string;
2144
+ };
2145
+ processAction: {
2146
+ label: string;
2147
+ toolTip: string;
2148
+ value: string;
2149
+ };
2150
+ separator: string;
2151
+ status?: {
2152
+ label: string;
2153
+ toolTip: string;
2154
+ value: string;
2155
+ };
2156
+ title: string;
2157
+ user: {
2158
+ label: string;
2159
+ toolTIp: string;
2160
+ value: string;
2161
+ };
2162
+ };
2163
+
2164
+ /**
2165
+ * El comportamiento de esta función se explica por su
2166
+ * nombre.
2167
+ */
2168
+ declare function returnExactlyTheSame(defaultParameters: Record<string, unknown>): Record<string, unknown>;
2169
+ declare function isOneClickUploadEnabled(oneClickUploadProp?: boolean): string | boolean;
2170
+ declare const parseFileDefinition: (execution: Execution, fileDefinition: TFileUploaded | TUploaderFileInfo, isSignRequired: boolean) => TUploaderFileInfo;
2171
+ type TOnUploadProgress = (progress: number) => void;
2172
+ declare class UploaderApi extends EventEmitter$1<{
2173
+ fileUploaded: null;
2174
+ }> {
2175
+ execution: Execution;
2176
+ id: string;
2177
+ type: 'E' | 'P';
2178
+ modalConfig: TModalConfig;
2179
+ maxFiles: number;
2180
+ modalController: UploaderModalController | null;
2181
+ allowTranslations: boolean;
2182
+ langs: Record<number, string> | undefined;
2183
+ currentConfiguration: TUploaderLoadCurrentFunctionMessages | undefined;
2184
+ docTypePermittedObjId: string | undefined;
2185
+ state: UploaderState;
2186
+ get filesArray(): TUploaderFileInfo[];
2187
+ constructor(execution: Execution, id: string, type: 'E' | 'P', modalConfig: TModalConfig);
2188
+ init(): Promise<void>;
2189
+ onStartUpload(files?: File[]): Promise<void>;
2190
+ onTranslateUpload(conf: {
2191
+ langId: number;
2192
+ translatingFile: TUploaderFileInfo;
2193
+ }, files?: File[]): Promise<void>;
2194
+ onVersionUpload(file: TUploaderFileInfo, conf?: {
2195
+ newFiles?: File[];
2196
+ langId?: number;
2197
+ translatingFile?: TUploaderFileInfo;
2198
+ }): Promise<void>;
2199
+ autoLock(): Promise<boolean>;
2200
+ notify(notification: NotificationDefinition): void;
2201
+ protected getAjaxUrl(): string;
2202
+ getDocTypes(): TDocType[];
2203
+ getCurrentDocTypeId(): string;
2204
+ getCurrentDocType(): TDocType | undefined;
2205
+ getInProgressFiles(): File[];
2206
+ getHiddenFiles(): File[];
2207
+ getExistingFiles(): Record<string, TUploaderFileInfo>;
2208
+ getProgress(): number;
2209
+ getHasAllDocTypes(): boolean | undefined;
2210
+ getDocumentInfo({ docId: apiId, downloadDocId: docId, }: TRequireOnlyOne<{
2211
+ docId: string;
2212
+ downloadDocId: string;
2213
+ }>, newElem?: boolean): Promise<({
2214
+ canClose: boolean;
2215
+ type: string;
2216
+ } & {
2217
+ function: {
2218
+ name: string;
2219
+ } & {
2220
+ data: {
2221
+ onClose: string;
2222
+ general: TApiaDocumentDefinition;
2223
+ permissions: {
2224
+ pool: TDocumentPermission | TDocumentPermission[];
2225
+ user: TDocumentPermission | TDocumentPermission[];
2226
+ };
2227
+ versions: {
2228
+ version: TDocumentVersion | TDocumentVersion[];
2229
+ };
2230
+ };
2231
+ currentUsrPems: {
2232
+ usrCanModify: boolean;
2233
+ };
2234
+ metadatas: {
2235
+ metadata: TDocumentMetadata | TDocumentMetadata[];
2236
+ };
2237
+ docDownHistory: {
2238
+ docHistory: TDocumentDownloadHistory | TDocumentDownloadHistory[];
2239
+ };
2240
+ };
2241
+ } & ResponseSysMessages) | null>;
1946
2242
  /**
1947
- * Ends the current session
2243
+ * This method searches for the provided id in several places:
2244
+ *
2245
+ * If it's found in the current files, returns it.
2246
+ * If not, it searches the provided docId in the translations map of each uploaded file.
1948
2247
  */
1949
- kill(): void;
1950
- viewDocs(): Promise<(Record<string, unknown> & ResponseSysMessages) | undefined>;
1951
- setStepTitle(stepNumber: number, stepTitle: string): void;
1952
- validate(): Promise<true | Field>;
1953
- setLastModalReturn(value: string[]): void;
1954
- getLastModalReturn(): string[];
1955
- private fireEvents;
2248
+ getDocument(docId: string): TUploaderFileInfo | undefined;
2249
+ protected updateDocument(docId: string, newValue: TUploaderFileInfo): void;
2250
+ protected deleteDocument(docId: string): void;
2251
+ clearFile(name: string): void;
2252
+ clearFiles(): void;
2253
+ clearState(): void;
2254
+ checkLockDocument(id: string, shouldNotifyUnlocked?: boolean): Promise<string | boolean>;
2255
+ setCurrentDocTypeId(docTypeId: string): void;
2256
+ ajaxUploadStart(newFiles?: File[]): Promise<boolean | undefined>;
2257
+ reloadMetadata(props?: Partial<{
2258
+ docId: string;
2259
+ docTypeId: number | string;
2260
+ }>, additionalProps?: Record<string, unknown>): Promise<void>;
2261
+ saveDroppedFiles(unprocessedFiles: File[], conf?: TSaveDroppedFilesConf): Promise<boolean>;
2262
+ checkWebDavLock(docId: string): Promise<unknown>;
2263
+ checkSignature(file: TUploaderFileInfo): Promise<TApiaApiAxiosResponse<({
2264
+ markedToSign: boolean;
2265
+ } & ResponseSysMessages) | null> | null>;
2266
+ editDocument(id: string): Promise<void>;
2267
+ downloadDocument(id: string, version?: string): Promise<void>;
2268
+ ajaxDeleteDocument(id: string, langId?: number): Promise<void>;
2269
+ version(file: TUploaderFileInfo, conf?: {
2270
+ newFiles?: File[];
2271
+ langId?: number;
2272
+ translatingFile?: TUploaderFileInfo;
2273
+ }): Promise<void>;
2274
+ versionFileInfo(file: TUploaderFileInfo): Promise<void>;
2275
+ pickFileById(id: string): Promise<void>;
2276
+ markFileToSign(id: string, langId?: string): Promise<void>;
2277
+ /**
2278
+ * Por el momento realiza la descarga de todos los archivos
2279
+ * que estén subidos.
2280
+ */
2281
+ downloadMultipleDocuments(): void;
2282
+ confirmDropModal(conf?: {
2283
+ langId?: number;
2284
+ translatingFile?: TUploaderFileInfo;
2285
+ }): Promise<boolean>;
2286
+ loadCurrentDocuments(): Promise<void>;
2287
+ lockDocument(id: string): Promise<void>;
2288
+ protected evaluateDeleteDocumentResult(result: unknown): boolean;
2289
+ setTranslationFile(file: TUploaderFileInfo, docId: string, langId: number): void;
2290
+ protected getAjaxUploadFileStatusParameters: typeof returnExactlyTheSame;
2291
+ protected getAjaxUploadStartParameters: typeof returnExactlyTheSame;
2292
+ protected getConfirmDropModalParameters: typeof returnExactlyTheSame;
2293
+ protected getCheckLockDocumentParameters: typeof returnExactlyTheSame;
2294
+ protected getCheckWebDavLockParameters: typeof returnExactlyTheSame;
2295
+ protected getConfirmDropModalPostdata: typeof returnExactlyTheSame;
2296
+ protected getConfirmDropModalMetadataString: ({ metadata, }: {
2297
+ metadata: TDocumentMetadata[];
2298
+ }) => string;
2299
+ protected getConfirmDropModalPermissionsString: ({ poolsPermissions, usersPermissions, }: {
2300
+ poolsPermissions: IPoolsPermissions[];
2301
+ usersPermissions: IUsersPermissions[];
2302
+ }) => string;
2303
+ protected getConfirmDropModalAdditionalMetadataString: (additionalMetadata: TDocumentMetadata[] | []) => string;
2304
+ protected getDeleteDocumentParameters: typeof returnExactlyTheSame;
2305
+ protected getClearTempFilesParameters: typeof returnExactlyTheSame;
2306
+ protected getDocumentInfoParameters: typeof returnExactlyTheSame;
2307
+ protected getDownloadMultipleDocumentsParameters: typeof returnExactlyTheSame;
2308
+ protected getEditDocumentParameters: typeof returnExactlyTheSame;
2309
+ protected getLockDocumentParameters: typeof returnExactlyTheSame;
2310
+ protected getMarkFileToSignParameters: typeof returnExactlyTheSame;
2311
+ protected getProcessDroppedFilesParameters: typeof returnExactlyTheSame;
2312
+ protected getProcessDroppedFilesPostdata: typeof returnExactlyTheSame;
2313
+ protected getReloadMetadataParameters: typeof returnExactlyTheSame;
2314
+ protected getSaveDroppedFilesParameters: typeof returnExactlyTheSame;
2315
+ protected filterAlreadyUploadedFiles(files: File[], conf?: TSaveDroppedFilesConf): File[];
2316
+ protected filterByFilesAmountLimit(files: File[]): File[];
2317
+ protected filterAcceptedFiles(files: File[], shouldNotify?: boolean, docTypeId?: string | TDocType): File[];
2318
+ protected filterExistingFiles(files: File[], conf?: TSaveDroppedFilesConf): File[];
2319
+ protected filterVersioningFiles(files: File[], conf?: {
2320
+ langId?: number;
2321
+ strictMode?: boolean;
2322
+ translatingFile?: TUploaderFileInfo;
2323
+ shouldReset?: boolean;
2324
+ }): File[];
2325
+ parseFileDefinition: (file: TFileUploaded) => TUploaderFileInfo;
2326
+ getLoadFileSystemStructureTree: () => Record<string, unknown>;
1956
2327
  }
1957
2328
 
1958
- declare global {
1959
- interface Window {
1960
- [key: string]: string;
1961
- }
1962
- interface Document {
1963
- headers: any;
1964
- }
1965
- }
1966
- declare function isJsonResponse(response: AxiosResponse<unknown>): RegExpMatchArray | null;
1967
- declare function isXmlResponse(response: AxiosResponse<unknown>): RegExpMatchArray | null;
1968
- declare function isHtmlResponse(response: AxiosResponse<unknown>): RegExpMatchArray | null;
1969
- declare class InvalidSessionException extends Error {
1970
- }
1971
- declare const parseSuccessfulResponse: <LoadType extends Record<string, unknown>, DataType = unknown>(execution: Execution, response: AxiosResponse<string>, behaveConfig?: IApiaApiPostConfig<DataType>) => Promise<(ResponseSysMessages & LoadType & {
1972
- onClose?: string;
1973
- code?: unknown;
1974
- load?: LoadType | undefined;
1975
- }) | ({
1976
- actions: unknown;
1977
- onClose: string | undefined;
1978
- exceptions: {
1979
- exception: TApiaMessage | TApiaMessage[];
1980
- } | undefined;
1981
- sysExceptions: {
1982
- exception: TApiaMessage | TApiaMessage[];
1983
- } | undefined;
1984
- sysMessages: {
1985
- message: TApiaMessage | TApiaMessage[];
2329
+ declare class UploaderModalController {
2330
+ api: UploaderApi;
2331
+ modalConfig: TModalConfig;
2332
+ conf?: {
2333
+ langId?: number;
2334
+ translatingFile?: TUploaderFileInfo;
2335
+ versionFile?: TUploaderFileInfo;
1986
2336
  } | undefined;
1987
- } & LoadType) | null>;
1988
- /**
1989
- * IMPORTANT!! The ApiaApi is programmed under the slogan that
1990
- * **should never throw an exception**. **Errors** coming from
1991
- * connectivity or exceptions on the server **will be handled
1992
- * automatically** by ApiaApi, using the notification system
1993
- * of the application. It is possible to determine in what context they should
1994
- * be thrown those exceptions (global, main, modal) using the
1995
- * alertsCategory configuration properties **(see errorsHandling.md)**.
1996
- *
1997
- * @param url String, the url you want to call
1998
- * @param config interface IApiaApiRequestConfig<DataType>;
1999
- *
2000
- * @throws Nothing
2001
- *
2002
- * @example
2003
- *
2004
- * ApiaApi.post<ResponseType>('url...', {
2005
- axiosConfig?: AxiosRequestConfig;
2006
-
2007
- // Configuración de postData
2008
- postData? unknown;
2009
- postDataTreatement?: 'stringify' | undefined;
2010
-
2011
- // Configuración de queryString
2012
- queryData?: string | Record<string, unknown>;
2013
- stringifyOptions?: QueryString.IStringifyOptions;
2014
-
2015
- // Response validator,
2016
- // If it returns true, everything continues correctly
2017
- // If it returns false, the ApiaApi throws a standard error.
2018
- // If it returns string, ApiaApi throws the error returned in the string.
2019
- validateResponse?: (
2020
- response: AxiosResponse<DataType | null>,
2021
- ) => boolean | string;
2022
-
2023
- // Configuración de alertas
2024
- alertsImportance?: TAlertImportance;
2025
-
2026
- // Configuración de ApiaApiHandler, falta documentar
2027
- handleLoad?: boolean;
2028
- eventsHandler?: IEventsHandler;
2029
-
2030
- // other configuration
2031
- colors?: TColors;
2032
- debug?: boolean;
2033
- }
2034
- * @returns The type of the return value depends on the type passed when calling the function. If there was an error it returns null.
2035
- */
2036
- declare function post<LoadType extends Record<string, unknown> = Record<string, unknown>, DataType = unknown, T = unknown>(execution: Execution, actualUrl: string, behaveConfig?: IApiaApiPostConfig<DataType>): TApiaApiResult<LoadType>;
2037
- /**
2038
- * IMPORTANTE!! El ApiaApi está programado bajo la consigna de que
2039
- * **no debe tirar núnca una excepción**. **Los errores** provenientes
2040
- * de la conectividad o de excepciones en el servidor **serán manejados
2041
- * automáticamente** por el ApiaApi utilizando el sistema de notificaciones
2042
- * de la aplicación. Es posible determinar en qué contexto deben
2043
- * ser lanzadas esas excepciones (global, main, modal) utilizando las
2044
- * propiedades de configuración alertsCategory **(ver errorsHandling.md)**.
2045
- *
2046
- * @param url String, el url al que se desea llamar
2047
- * @param config interface IApiaApiRequestConfig<DataType>;
2048
- *
2049
- * @throws Nothing
2050
- *
2051
- * @example
2052
- *
2053
- * ApiaApi.get<TipoDeRespuesta>('url...', {
2054
- axiosConfig?: AxiosRequestConfig;
2055
-
2056
- // Configuración de queryString
2057
- queryData?: string | Record<string, unknown>;
2058
- stringifyOptions?: QueryString.IStringifyOptions;
2059
-
2060
- // Validador de respuesta,
2061
- // Si devuelve true, todo sigue correctamente
2062
- // Si devuelve false, el ApiaApi tira un error estándar.
2063
- // Si devuelve string, el ApiaApi tira el error devuelto en el string.
2064
- validateResponse?: (
2065
- response: AxiosResponse<DataType | null>,
2066
- ) => boolean | string;
2067
-
2068
- // Configuración de alertas
2069
- alertsImportance?: TAlertImportance;
2070
-
2071
- // Configuración de ApiaApiHandler, falta documentar
2072
- handleLoad?: boolean;
2073
- eventsHandler?: IEventsHandler;
2337
+ state: UploaderModalState;
2338
+ constructor(api: UploaderApi, modalConfig: TModalConfig, conf?: {
2339
+ langId?: number;
2340
+ translatingFile?: TUploaderFileInfo;
2341
+ versionFile?: TUploaderFileInfo;
2342
+ } | undefined);
2343
+ get allMetadata(): TDocumentMetadata[];
2344
+ get allowAllType(): "" | "M" | "R";
2345
+ get description(): string;
2346
+ get docFolder(): number | undefined;
2347
+ get docExpDate(): string | undefined;
2348
+ get docTypes(): TDocType[];
2349
+ get freeMetadata(): TDocumentMetadata[];
2350
+ get exitingFiles(): Record<string, TUploaderFileInfo>;
2351
+ get inProgressFiles(): File[];
2352
+ get hiddenFiles(): File[];
2353
+ get progress(): number;
2354
+ get metadata(): TDocumentMetadata[];
2355
+ get selectedDocTypeId(): string;
2356
+ get selectedDocType(): TDocType | undefined;
2357
+ addMetadata(): void;
2358
+ addFiles(files: File[]): void;
2359
+ addDirectoryFile(file: TApiaDocumentDefinition): void;
2360
+ changeDocType(docTypeId: string): Promise<void>;
2361
+ clearDirectoryFile(): void;
2362
+ clearFile(name: string): void;
2363
+ clearFiles(): void;
2364
+ clearState(): void;
2365
+ onCloseModal(): void;
2366
+ confirm(): Promise<boolean>;
2367
+ deleteMetadata(indices: number[]): void;
2368
+ deletePermission(item: IPoolsPermissions | IUsersPermissions): void;
2369
+ protected onChangeExtension(): void;
2370
+ openModal(): Promise<void>;
2371
+ setDescription(desc: string): void;
2372
+ protected resetMetadata(): Promise<void>;
2373
+ validate(): boolean;
2374
+ }
2074
2375
 
2075
- // Otra configuración
2076
- colors?: TColors;
2077
- debug?: boolean;
2078
- }
2079
- * @returns El tipo del valor devuelto depende del tipo pasado al llamar a la función. Si hubo un error devuelve null
2080
- */
2081
- declare function get<LoadType extends Record<string, unknown> = Record<string, unknown>, T = unknown, D = unknown>(execution: Execution, actualUrl: string, behaveConfig?: IApiaApiRequestConfig): TApiaApiResult<LoadType>;
2082
- type MakeApiaUrlProps = {
2083
- action?: string;
2084
- ajaxUrl?: string;
2085
- queryString?: string;
2086
- stringifyOptions?: IStringifyOptions;
2087
- tabId?: string | number;
2088
- preventAsXmlParameter?: boolean;
2089
- avoidTabId?: boolean;
2090
- [key: string]: unknown;
2376
+ type TUploadModalOpener = (controller: UploaderModalController) => void;
2377
+ type UploaderModalState = {
2378
+ fileReqError: boolean;
2379
+ metadata: {
2380
+ metadataArray: TDocumentMetadata[];
2381
+ isFreeMetadata: boolean;
2382
+ freeMetadataArray: TDocumentMetadata[];
2383
+ };
2384
+ fromDirectoryFile: TApiaDocumentDefinition | null;
2385
+ docFolder?: number;
2386
+ docExpDate?: string;
2387
+ description: string;
2388
+ isReadonly?: boolean;
2389
+ permissions: {
2390
+ allowAllType: 'M' | 'R' | '';
2391
+ users: IUsersPermissions[];
2392
+ pools: IPoolsPermissions[];
2393
+ };
2091
2394
  };
2092
- /**
2093
- * Creates an url based on the general requirements of Apia.
2094
- * If the ajaxUrl property is not passed, it will use the
2095
- * getWindow(execution).URL_REQUEST_AJAX. Its use is very simple, just pass the objects you
2096
- * want to appear in the query string.
2097
- *
2098
- * @example makeApiaUrl({
2099
- * ajaxUrl: 'the.endpoint.you.want',
2100
- * queryString: 'an=existent&query=string',
2101
- * action: 'theAction',
2102
- * anotherProp: 15
2103
- * })
2104
- *
2105
- * @returns the well formed url, in the example, the response url is:
2106
- * /context/the.endpoint.you.want?an=existent&query=string&anotherProp=15&tabId=...&tokenId=...&action=theAction
2107
- */
2108
- declare function makeApiaUrl(execution: Execution, props?: MakeApiaUrlProps): string;
2109
-
2110
- interface IIProperty {
2111
- [key: string]: string;
2112
- }
2113
- interface IApiaFunctions {
2114
- getLastModalReturn: () => string[];
2115
- getModalReturn: () => string[];
2116
- getModalValue: () => string;
2117
- getModalShowValue: () => string;
2118
- setLastModalReturn: (value: string[]) => void;
2119
- getModalSelectedRow: () => string[];
2120
- getForm(frmName: string, frmType?: string): IApiaForm | null;
2121
- getAllForms(): IApiaForm[];
2122
- getEntityForm(frmName: string): IApiaForm | null;
2123
- getProcessForm(frmName: string): IApiaForm | null;
2124
- getAttField(attType: 'P' | 'E', attId: string): IApiaField | IApiaField[] | undefined;
2125
- setStepTitle(stepNumber: number, stepTitle: string): void;
2126
- getCurrentStep(): number | null;
2127
- getCurrentTaskName(): string | null;
2128
- getCurrentProcessName(): string | null;
2129
- getRootPath(): string | null;
2130
- getCurrentLanguageCode(): string | null;
2131
- toJSNumber(value: string): number | string;
2132
- toApiaNumber(value: number): number | string;
2133
- disableActionButton(btnIdx: string): void;
2134
- enableActionButton(btnIdx: string): void;
2135
- disableOptionButton(btnIdx: string): void;
2136
- enableOptionButton(btnIdx: string): void;
2137
- hideOptionButton(btnIdx: string): void;
2138
- showOptionButton(btnIdx: string): void;
2139
- openTab(title: string, url: string): void;
2140
- showMessage(text: string): void;
2141
- showConfirm(text: string, title: string, callbackFn: (win: boolean) => unknown): void;
2142
- }
2143
- interface IApiaForm {
2144
- getFrmId(): string | null;
2145
- getFrmParent(): string;
2146
- getFormName(): string;
2147
- getFormTitle(): string;
2148
- openForm(): void;
2149
- closeForm(): void;
2150
- getProperty<K extends keyof TApiaFormProperties>(name: K): TApiaFormProperties[K];
2151
- setProperty<K extends keyof TApiaFormProperties>(name: K, value: TApiaFormProperties[K]): void;
2152
- getField(fld: number | string, index?: number): IApiaField | undefined;
2153
- getFieldColumn(fldName: string): IApiaField[];
2154
- getAllFields(): IApiaField[];
2155
- clearForm(clearReadonlyFields: boolean, deleteGridsRows: boolean): void;
2395
+ type UploaderState = {
2396
+ progress: number;
2397
+ allowedTypes: TDocType[];
2398
+ selectedDocTypeId: string;
2399
+ versioningFile: TUploaderFileInfo | null;
2400
+ inProgressFiles: File[];
2401
+ hiddenFiles: File[];
2402
+ files: Record<string, TUploaderFileInfo>;
2403
+ translatedFiles: Map<string, Map<number, TUploaderFileInfo>>;
2404
+ hasAllDocTypes?: boolean;
2405
+ selectedFiles: string[];
2406
+ };
2407
+ interface IUsersPermissions {
2408
+ userId: string;
2409
+ userLogin: string;
2410
+ canUpdate: boolean;
2156
2411
  }
2157
- interface IApiaField<Props extends TApiaFieldCommonProperties = TApiaFieldCommonProperties> {
2158
- get fldType(): TApiaFieldType;
2159
- get fldId(): string;
2160
- /**
2161
- * Assigns a new value to the property whoose name's correspond to that determined by the name paremeter.
2162
- */
2163
- setProperty<K extends keyof Props>(name: K, value: Props[K]): void;
2164
- /**
2165
- * Returns the current value of the property determined by the name in the paremeter.
2166
- */
2167
- getProperty<K extends keyof Props>(name: K): Props[K];
2168
- /**
2169
- * Sets the focus on the field if possible.
2170
- */
2171
- setFocus(): void;
2172
- /**
2173
- * Returns true if the field is part of a grid.
2174
- */
2175
- isInGrid(): boolean;
2412
+ interface IPoolsPermissions {
2413
+ poolId: string;
2414
+ poolName: string;
2415
+ canUpdate: boolean;
2176
2416
  }
2177
- interface IButton {
2178
- disabled: boolean;
2179
- hidden: boolean;
2180
- label: string;
2181
- isLoading: boolean;
2417
+ type TUploaderFileInfo = Omit<TFileUploaded, 'locked' | 'lock' | 'userLocking' | 'lockedBy'> & {
2418
+ canEdit?: boolean;
2419
+ canRead?: boolean;
2420
+ isLocked: boolean;
2421
+ isLockedByMe: boolean;
2422
+ isVirtual: boolean;
2423
+ lockingUser: string;
2424
+ };
2425
+ type TFileUploaded = {
2426
+ canEdit?: boolean;
2427
+ canWrite?: boolean;
2428
+ canRead?: boolean;
2429
+ description?: string;
2430
+ docDescription?: string;
2431
+ docId: string;
2432
+ docLang?: string;
2433
+ docLangGroup?: string;
2434
+ docName?: string;
2435
+ docSize?: string;
2436
+ docTypeFreeMetadata?: boolean;
2437
+ docTypeId?: string;
2438
+ docTypeLabel?: string;
2439
+ docTypeTitle: string;
2440
+ downloadDocId: string;
2441
+ isMarkedToSign: boolean;
2442
+ markedToSign: boolean;
2443
+ lock?: string | boolean;
2444
+ isLocked?: string | boolean;
2445
+ lockedBy?: string;
2446
+ name?: string;
2447
+ onlyInformation: boolean;
2448
+ prefix: string;
2449
+ preview: string;
2450
+ sign?: string | boolean;
2451
+ size?: string;
2452
+ userLocking: string;
2453
+ virtualDoc?: boolean;
2454
+ };
2455
+ type TAjaxUploadStart = TApiaLoad<TApiaFunction<{
2456
+ general: {
2457
+ isDocTypeDisabled: boolean;
2458
+ useDocTypePermitted: boolean;
2459
+ createMode: boolean;
2460
+ allowAllTypes: string;
2461
+ allDocTypes: boolean;
2462
+ };
2463
+ docTypes: {
2464
+ docType: TDocType | TDocType[];
2465
+ };
2466
+ metadatas: {
2467
+ metadata: TDocumentMetadata | TDocumentMetadata[];
2468
+ };
2469
+ }, false>>;
2470
+ type TDocType = {
2471
+ docExts: string;
2472
+ maxSize: number;
2473
+ id: string;
2182
2474
  title: string;
2183
- variant?: string;
2184
- action: Promise<() => unknown> | string;
2185
- id: TActionButtons;
2186
- }
2187
- type TActionButtons = 'sbtEjeDoc' | 'btnClose' | 'lblExeDelegar' | 'btnCon' | 'btnSig' | 'btnStaPri' | 'btnAnt' | 'btnEjeLib' | 'btnGua' | 'SIGN' | 'lblShareMsg';
2188
- type TApiaFieldType = 'area' | 'button' | 'captcha' | 'check' | 'editor' | 'file' | 'grid' | 'hidden' | 'href' | 'image' | 'input' | 'label' | 'multiple' | 'password' | 'radio' | 'select' | 'title' | 'tree' | 'form';
2189
- type PossibleValue = {
2190
- value: string | number;
2191
- label: string;
2192
- selected?: boolean;
2475
+ free: boolean;
2476
+ selected: boolean;
2477
+ };
2478
+ type TDocumentMetadata = {
2479
+ free: string;
2480
+ id: string;
2481
+ name: string;
2482
+ required: 'Y' | 'N';
2483
+ title: string;
2484
+ type: 'S' | 'N' | 'D';
2485
+ value: string;
2486
+ errorMessage: string;
2487
+ labelErrorMessage: string;
2488
+ };
2489
+ type TModalConfig = {
2490
+ allowDocumentsMonitor: boolean;
2491
+ allowPickFromDirectories: boolean;
2492
+ collapsePermissions: boolean;
2493
+ collapseDirectories: boolean;
2494
+ collapseMetadata: boolean;
2495
+ defaultDirectory?: number;
2496
+ monitorId?: number;
2497
+ oneClickUpload: boolean;
2498
+ rootFolder?: string;
2499
+ showDirectoriesStructure: boolean;
2500
+ showExpDate: boolean;
2501
+ showPermissions: boolean;
2502
+ showMetadata: boolean;
2503
+ translationId?: string;
2504
+ };
2505
+ type TUploaderLoadCurrentFunctionMessages = {
2506
+ allowSign: boolean;
2507
+ allowLock: boolean;
2508
+ allowMultiple: boolean;
2509
+ readOnly: boolean;
2510
+ };
2511
+ type TSaveDroppedFilesConf = {
2512
+ langId?: number;
2513
+ strictMode?: boolean;
2514
+ translatingFile?: TUploaderFileInfo;
2515
+ shouldReset?: boolean;
2516
+ };
2517
+ type TAjaxUploadFileStatus = TApiaLoad<TApiaFunction<{
2518
+ message: {
2519
+ label: string;
2520
+ name: string;
2521
+ }[];
2522
+ }>>;
2523
+ type TProcessDroppedFiles = TApiaLoad<TApiaFunction<{
2524
+ principal: {
2525
+ docInfo: TDocInfo | TDocInfo[];
2526
+ docTypes: {
2527
+ 'data-free': boolean;
2528
+ docTypeExtensions: string;
2529
+ docTypeId: string;
2530
+ docTypeMaxSize: number;
2531
+ docTypeName: string;
2532
+ };
2533
+ elemInfo: {
2534
+ elemId: string;
2535
+ elemType: string;
2536
+ };
2537
+ };
2538
+ }, false>>;
2539
+ type TDocInfo = {
2540
+ docInfoName: string;
2541
+ docInfoSize: string;
2542
+ docInfoTmpId: string;
2543
+ docInfoType: string;
2193
2544
  };
2194
-
2195
- declare class ButtonsAction {
2196
- private button;
2197
- constructor(button: IButton);
2198
- private update;
2199
- get action(): this;
2200
- get disabled(): boolean;
2201
- get props(): {
2202
- disabled: boolean;
2203
- hidden: boolean;
2204
- loading: boolean;
2545
+ type TConfirmDropModal = TApiaLoad<TApiaFunction<{
2546
+ general: TFileUploaded | TFileUploaded[];
2547
+ fromForm: {
2548
+ fromForm: {
2549
+ fromForm: boolean;
2550
+ }[];
2205
2551
  };
2206
- get label(): string;
2207
- get title(): string;
2208
- get variant(): string;
2209
- set title(title: string);
2210
- set variant(variant: string);
2211
- disable(): void;
2212
- enable(): void;
2213
- hide(): void;
2214
- show(): void;
2215
- }
2552
+ }, false>>;
2553
+ type TApiaDocumentDefinition = {
2554
+ docDesc: string;
2555
+ docTypeLabel: string;
2556
+ docId: string;
2557
+ prefix: string;
2558
+ docSize: string;
2559
+ docDate: string;
2560
+ docDwnExternal: string;
2561
+ docExpDate: string;
2562
+ docFolder: string;
2563
+ docFolderPath: string;
2564
+ docUsu: string;
2565
+ docAllPoolPerm: 'M' | 'R' | '';
2566
+ docName: string;
2567
+ docTypeId: string;
2568
+ locked: boolean;
2569
+ downloadDocId: string;
2570
+ };
2571
+ type TUploaderLoadCurrentFunction = {
2572
+ general?: TFileUploaded | TFileUploaded[];
2573
+ messages: {
2574
+ message: {
2575
+ name: keyof TUploaderLoadCurrentFunctionMessages;
2576
+ label: boolean;
2577
+ } | {
2578
+ name: keyof TUploaderLoadCurrentFunctionMessages;
2579
+ label: boolean;
2580
+ }[];
2581
+ };
2582
+ };
2583
+ type TDocumentInformation = TApiaLoad<TApiaFunction<{
2584
+ data: {
2585
+ onClose: string;
2586
+ general: TApiaDocumentDefinition;
2587
+ permissions: {
2588
+ pool: TDocumentPermission | TDocumentPermission[];
2589
+ user: TDocumentPermission | TDocumentPermission[];
2590
+ };
2591
+ versions: {
2592
+ version: TDocumentVersion | TDocumentVersion[];
2593
+ };
2594
+ };
2595
+ currentUsrPems: {
2596
+ usrCanModify: boolean;
2597
+ };
2598
+ metadatas: {
2599
+ metadata: TDocumentMetadata | TDocumentMetadata[];
2600
+ };
2601
+ docDownHistory: {
2602
+ docHistory: TDocumentDownloadHistory | TDocumentDownloadHistory[];
2603
+ };
2604
+ }, false>>;
2605
+ type TDocumentPermission = {
2606
+ id: string;
2607
+ name: string;
2608
+ permType: 'R' | 'M';
2609
+ };
2610
+ type TDocumentDownloadHistory = {
2611
+ hisDwn: string;
2612
+ hisUsr: string;
2613
+ hisVer: string;
2614
+ };
2615
+ type TDocumentVersion = {
2616
+ verUser: string;
2617
+ verNumber: string;
2618
+ verDate: string;
2619
+ };
2620
+ type TRequireOnlyOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
2621
+ [K in Keys]-?: Required<Pick<T, K>> & Partial<Record<Exclude<Keys, K>, undefined>>;
2622
+ }[Keys];
2216
2623
 
2217
- declare global {
2218
- interface Window {
2219
- lastModalReturn: string[];
2220
- }
2221
- }
2222
- declare class ApiaFunctions implements IApiaFunctions {
2624
+ declare class FormsUploader extends UploaderApi {
2223
2625
  execution: Execution;
2224
- constructor(execution: Execution);
2225
- toJSNumber(_value: string): number | string;
2226
- toApiaNumber(_value: number): number | string;
2227
- openTab(_title: string, _url: string): void;
2228
- showMessage(_text: string): void;
2229
- showConfirm(_text: string, _title: string, _callbackFn: (win: boolean) => unknown): void;
2230
- getFormByType(frmName: string, frmType: TFrmParent): IApiaForm | null;
2231
- actionButton(id: string | number): ButtonsAction | undefined;
2232
- admEntity(entName: string, entNum?: number, parameters?: string, width?: number, height?: number): void;
2233
- clearMessages(): void;
2234
- clickActionButton(button: number): void;
2235
- disableActionButton(id: string | number): void;
2236
- disableOptionButton(id: string | number): void;
2237
- enableActionButton(id: string | number): void;
2238
- enableOptionButton(id: string | number): void;
2239
- getAllForms(): IApiaForm[];
2240
- getAllFormsByType(type: 'P' | 'E'): IApiaForm[];
2241
- getAttField(attType: 'P' | 'E', attId: string): IApiaField | IApiaField[] | undefined;
2242
- getButtonAction(id: number | string): "sbtEjeDoc" | "btnClose" | "lblExeDelegar" | "btnCon" | "btnSig" | "btnStaPri" | "btnAnt" | "btnEjeLib" | "btnGua" | "lblShareMsg";
2243
- getCurrentLanguageCode(): string | null;
2244
- getCurrentProcessName(): string | null;
2245
- getCurrentStep(): number | null;
2246
- getCurrentTaskName(): string | null;
2247
- getEntityForm(frmName: string): IApiaForm | null;
2248
- getForm(frmName: string, frmType?: string): IApiaForm | null;
2249
- getLastModalReturn(): string[];
2250
- getModalReturn(): string[];
2251
- getModalSelectedRow(): string[];
2252
- getModalShowValue(): string;
2253
- getModalValue(): string;
2254
- getProcessForm(frmName: string): IApiaForm | null;
2255
- getRootPath(): string | null;
2256
- hideActionButton(id: string | number): void;
2257
- hideOptionButton(id: string | number): void;
2258
- saveTask(): void;
2259
- setLastModalReturn(value: string[]): void;
2260
- setStepTitle(stepNumber: number, stepTitle: string): void;
2261
- showActionButton(id: string | number): void;
2262
- showOptionButton(id: string | number): void;
2263
- viewAdmEntity(entName: string, entNum?: number): void;
2626
+ type: 'E' | 'P';
2627
+ modalConfig: TModalConfig;
2628
+ field: File$1;
2629
+ constructor(execution: Execution, type: 'E' | 'P', modalConfig: TModalConfig, field: File$1);
2630
+ isEditionMode: boolean | undefined;
2631
+ index(): number;
2632
+ elemId(): string;
2633
+ protected filterByFilesAmountLimit(files: File[]): File[];
2634
+ protected getFormParameters(): {
2635
+ frmId: string;
2636
+ frmParent: TFrmParent;
2637
+ attId: string;
2638
+ index: number;
2639
+ editionMode: boolean | undefined;
2640
+ prefix: TFrmParent;
2641
+ };
2642
+ evaluateDeleteDocumentResult(result: undefined | {
2643
+ success: boolean;
2644
+ }): boolean;
2645
+ getAjaxUrl(): string;
2646
+ getAllowedTypesData(): {
2647
+ postData: {
2648
+ docTypeId: string | undefined;
2649
+ forDropElem: boolean;
2650
+ };
2651
+ queryData: {
2652
+ frmId: string;
2653
+ frmParent: TFrmParent;
2654
+ attId: string;
2655
+ index: number;
2656
+ editionMode: boolean | undefined;
2657
+ prefix: TFrmParent;
2658
+ elemType: string;
2659
+ fromFormElem: boolean;
2660
+ docTypeId: string | undefined;
2661
+ frmOut: boolean;
2662
+ };
2663
+ };
2664
+ getAjaxUploadFileStatusParameters: (defaultParameters: Record<string, unknown>) => Record<string, unknown>;
2665
+ getAjaxUploadStartParameters: ({ useDocTypePermitted, docTypePermittedObjType, docTypePermittedObjId, ...defaultParameters }: Record<string, unknown>) => Record<string, unknown>;
2666
+ getCheckLockDocumentParameters: ({ prefix, ...parameters }: Record<string, unknown>) => {
2667
+ frmId: string;
2668
+ frmParent: TFrmParent;
2669
+ attId: string;
2670
+ index: number;
2671
+ editionMode: boolean | undefined;
2672
+ prefix: TFrmParent;
2673
+ };
2674
+ getCheckSignatureParameters: (parameters: Record<string, unknown>) => {
2675
+ frmId: string;
2676
+ frmParent: TFrmParent;
2677
+ };
2678
+ getClearTempFilesParameters: ({ elemType, ...rest }: Record<string, unknown>) => {
2679
+ frmParent: TFrmParent;
2680
+ frmId: string;
2681
+ attId: string;
2682
+ index: number;
2683
+ };
2684
+ getConfirmDropModalParameters: (defaultParameters: Record<string, unknown>) => Record<string, unknown>;
2685
+ getConfirmDropModalPostdata: ({ pe, ...parameters }: Record<string, unknown>) => Record<string, unknown>;
2686
+ getDeleteDocumentParameters: ({ prefix, isAjax, ...currentParameters }: Record<string, unknown>) => {
2687
+ frmId: string;
2688
+ frmParent: TFrmParent;
2689
+ attId: string;
2690
+ index: number;
2691
+ editionMode: boolean | undefined;
2692
+ };
2693
+ getDocumentInfoParameters: (parameters: Record<string, unknown>) => {
2694
+ ajaxUrl: string;
2695
+ };
2696
+ getEditDocumentParameters: ({ action, docId }: Record<string, unknown>) => {
2697
+ docId: unknown;
2698
+ ajaxUrl: string;
2699
+ frmId: string;
2700
+ frmParent: TFrmParent;
2701
+ attId: string;
2702
+ index: number;
2703
+ action: unknown;
2704
+ };
2705
+ getLoadFilesForFolderParameters: () => Record<string, unknown>;
2706
+ getLoadFileSystemStructureTree: () => {
2707
+ useDocTypePermitted: boolean;
2708
+ docTypeForcedId: string | undefined;
2709
+ };
2710
+ getLockDocumentParameters: ({ prefix, isAjax, ...currentParameters }: Record<string, unknown>) => {
2711
+ frmId: string;
2712
+ frmParent: TFrmParent;
2713
+ attId: string;
2714
+ index: number;
2715
+ editionMode: boolean | undefined;
2716
+ };
2717
+ getMarkFileToSignParameters: ({ docId, prefix, ...defaultParameters }: Record<string, unknown>) => {
2718
+ frmId: string;
2719
+ frmParent: TFrmParent;
2720
+ attId: string;
2721
+ index: number;
2722
+ editionMode: boolean | undefined;
2723
+ prefix: TFrmParent;
2724
+ action: string;
2725
+ fldId: string;
2726
+ };
2727
+ getProcessDroppedFilesParameters: (defaultParameters: Record<string, unknown>) => Record<string, unknown>;
2728
+ getProcessDroppedFilesPostdata: ({ useDocTypePermitted, docTypePermittedObjId, docTypePermittedObjType, ...parameters }: Record<string, unknown>) => Record<string, unknown>;
2729
+ getReloadMetadataParameters: (defaultParameters: Record<string, unknown>) => Record<string, unknown>;
2730
+ getSaveDroppedFilesParameters: (defaultParameters: Record<string, unknown>) => Record<string, unknown>;
2731
+ downloadDocument(fileId: string): Promise<void>;
2732
+ loadCurrentDocuments(): Promise<void>;
2733
+ parseFileDefinition: (file: TFileUploaded) => TUploaderFileInfo;
2734
+ saveDroppedFiles(unprocessedFiles: File[], conf?: TSaveDroppedFilesConf | undefined): Promise<boolean>;
2264
2735
  }
2265
2736
 
2266
- declare class ActionsController {
2267
- static CONFIRM: number;
2268
- static NEXT: number;
2269
- static PREVIOUS: number;
2270
- static SIGN: number;
2271
- static SAVE: number;
2272
- static RELEASE: number;
2273
- static DELEGATE: number;
2274
- static SHARE: number;
2275
- static PRINT: number;
2276
- static VIEW_DOCS: number;
2277
- static CLOSE: number;
2278
- private static _instance;
2279
- static get instance(): ActionsController;
2280
- private buttons;
2281
- addButton(button: IButton): void;
2282
- getButton(id: TActionButtons): ButtonsAction | undefined;
2737
+ declare class Process {
2738
+ execution: Execution;
2739
+ state: TProcess | null;
2740
+ uploader: UploaderApi;
2741
+ constructor(execution: Execution);
2742
+ get name(): string | undefined;
2743
+ private hasInited;
2744
+ init(): Promise<void>;
2745
+ getConfirmParams(): {
2746
+ cmbProPri: string | undefined;
2747
+ selCal: string | undefined;
2748
+ };
2749
+ setPriority(newPriority: string): void;
2283
2750
  }
2284
2751
 
2285
- declare class ApiaForm implements IApiaForm {
2752
+ declare class Task {
2286
2753
  #private;
2287
- private execution;
2288
- constructor(execution: Execution, form: Form);
2289
- getFrmParent(): string;
2290
- getFrmId(): string | null;
2291
- getFormName(): string;
2292
- getFormTitle(): string;
2293
- openForm(): void;
2294
- closeForm(): void;
2295
- getProperty<K extends keyof TApiaFormProperties>(name: K): TApiaFormProperties[K];
2296
- setProperty<K extends keyof TApiaFormProperties>(name: K, value: TApiaFormProperties[K]): void;
2297
- getCustomComponent(attName: string): CustomComponent | undefined;
2298
- getField(fld: string | number, index?: number): IApiaField | undefined;
2299
- getFieldById(fldId: string): IApiaField<TApiaFieldCommonProperties> | null | undefined;
2300
- getFieldColumn(name: string): IApiaField[];
2301
- getAllFields(): IApiaField[];
2302
- clearForm(clearReadonlyFields: boolean, deleteGridsRows: boolean): void;
2754
+ constructor(task: any);
2755
+ setPriority(newPriority: string): void;
2756
+ get name(): string;
2303
2757
  }
2304
2758
 
2305
- declare abstract class ApiaField<Props extends TApiaFieldCommonProperties = TApiaFieldCommonProperties> implements IApiaField<Props> {
2306
- #private;
2759
+ type TEntity = {
2760
+ title: string;
2761
+ readOnly: boolean;
2762
+ separator: string;
2763
+ associations: Associations[];
2764
+ date: {
2765
+ label: string;
2766
+ toolTip: string;
2767
+ value: string;
2768
+ };
2769
+ entityType: {
2770
+ label: string;
2771
+ toolTip: string;
2772
+ value: string;
2773
+ };
2774
+ identifier: {
2775
+ label: string;
2776
+ toolTip: string;
2777
+ value?: string;
2778
+ prefix?: {
2779
+ name: string;
2780
+ type: 'custom' | 'fixed' | 'none';
2781
+ label?: string;
2782
+ toolTip?: string;
2783
+ value?: string;
2784
+ };
2785
+ body: {
2786
+ type: 'autogenerated' | 'sameAsProcess';
2787
+ label: string;
2788
+ name?: string;
2789
+ toolTip?: string;
2790
+ value?: string;
2791
+ required?: false;
2792
+ } | {
2793
+ label: string;
2794
+ toolTip?: string;
2795
+ value?: string;
2796
+ type: 'custom';
2797
+ required: boolean;
2798
+ name: string;
2799
+ };
2800
+ suffix?: {
2801
+ name: string;
2802
+ type: 'custom' | 'fixed' | 'none';
2803
+ toolTip?: string;
2804
+ label?: string;
2805
+ value?: string;
2806
+ };
2807
+ };
2808
+ image: {
2809
+ label: string;
2810
+ toolTip: string;
2811
+ file: File | null;
2812
+ };
2813
+ status: {
2814
+ name: string;
2815
+ label: string;
2816
+ toolTip: string;
2817
+ type: 'fixex' | 'select' | 'none';
2818
+ value?: string;
2819
+ disabled?: boolean;
2820
+ options: {
2821
+ label: string;
2822
+ value: string;
2823
+ selected: boolean;
2824
+ }[];
2825
+ };
2826
+ user: {
2827
+ label: string;
2828
+ name: string;
2829
+ toolTip: string;
2830
+ };
2831
+ categories: TCategory[] | [];
2832
+ visibilities: PoolId[];
2833
+ };
2834
+ type TCategory = {
2835
+ checked: boolean;
2836
+ envId: string;
2837
+ id: string;
2838
+ idFather: string;
2839
+ name: string;
2840
+ };
2841
+ type PoolId = {
2842
+ poolId: string;
2843
+ poolName: string;
2844
+ canUpdate: boolean;
2845
+ };
2846
+ type Associations = {
2847
+ asocName: string;
2848
+ asocId: string;
2849
+ asocRelName: string;
2850
+ };
2851
+
2852
+ declare class Entity {
2307
2853
  execution: Execution;
2308
- constructor(execution: Execution, field: Field<Props>);
2309
- get fldType(): "button" | "check" | "file" | "hidden" | "image" | "input" | "href" | "multiple" | "radio" | "select" | "label" | "area" | "title" | "editor" | "grid" | "password" | "captcha" | "tree";
2310
- get fldId(): string;
2311
- get form(): ApiaForm;
2312
- get index(): number;
2313
- setProperty<K extends keyof Props>(name: K, value: Props[K]): void;
2314
- getProperty<K extends keyof Props>(name: K): Props[K];
2315
- setFocus(): IApiaField | null;
2316
- isInGrid(): boolean;
2854
+ state: TEntity | null;
2855
+ uploader: UploaderApi;
2856
+ controller: TableController;
2857
+ constructor(execution: Execution);
2858
+ get name(): string | undefined;
2859
+ private hasInited;
2860
+ init(): Promise<void>;
2861
+ getConfirmParams(): any;
2862
+ loadCategories: () => Promise<void>;
2863
+ loadPools: () => Promise<void>;
2864
+ loadAssociations: () => Promise<void>;
2865
+ private parseRows;
2866
+ deleteRow(): void;
2867
+ addRow(): void;
2317
2868
  }
2318
2869
 
2319
- interface TTextFieldProperties extends TApiaFieldCommonProperties {
2320
- value?: string;
2321
- }
2322
- interface IButtonField extends IApiaField {
2323
- fireClickEvent(): void;
2324
- getValue(): string | null;
2325
- }
2326
- declare class ButtonField extends ApiaField<TTextFieldProperties> implements IButtonField {
2327
- #private;
2328
- constructor(execution: Execution, field: Button);
2329
- fireClickEvent(): void;
2330
- getValue(): string | null;
2331
- clearValue(): void;
2332
- setValue(value: string): void;
2870
+ type TObservations = {
2871
+ observations: TObservation[] | [];
2872
+ newObservation: {
2873
+ commentValue: string;
2874
+ chkAddAlert?: boolean;
2875
+ chkAddAllAlert?: boolean;
2876
+ chkRemAlert?: boolean;
2877
+ } | null;
2878
+ };
2879
+ type TObservation = {
2880
+ name: string;
2881
+ date: string;
2882
+ userTitle: string;
2883
+ groupTitle: string;
2884
+ taskTitle: string;
2885
+ userLabel: string;
2886
+ groupLabel: string;
2887
+ taskLabel: string;
2888
+ checked?: boolean;
2889
+ disabled?: boolean;
2890
+ marked?: boolean;
2891
+ comment: string;
2892
+ };
2893
+
2894
+ declare class Observations {
2895
+ execution: Execution;
2896
+ state: TObservations;
2897
+ constructor(execution: Execution);
2898
+ private hasInited;
2899
+ init(): Promise<void>;
2900
+ getConfirmParams(): {
2901
+ txtComment: string | undefined;
2902
+ chkAddAlert: string | undefined;
2903
+ chkAddAllAlert: string | undefined;
2904
+ chkRemAlert: string | undefined;
2905
+ };
2906
+ setPriority(newPriority: string): void;
2333
2907
  }
2334
2908
 
2335
- declare class ApiaAttribute {
2336
- #private;
2337
- constructor(attribute: Attribute);
2338
- get attLabel(): string;
2339
- get name(): string;
2340
- get id(): string;
2341
- get valueType(): TApiaFieldValueType;
2909
+ type ConfirmStep = 'CHECK_LOCK' | 'CONFIRM' | 'CHECK_SIGN' | 'CHECK_WIZARD' | 'SIGN';
2910
+ type Status = {
2911
+ step?: ConfirmStep;
2912
+ error?: string;
2913
+ finishedWithError?: boolean;
2914
+ };
2915
+ declare abstract class FlowModal<T extends {
2916
+ confirmed?: boolean;
2917
+ }> {
2918
+ abstract confirm(result: T): Promise<Status | FlowModal<any>>;
2342
2919
  }
2343
- declare class ApiaFieldWithAttribute<T = string | boolean> extends ApiaField {
2344
- #private;
2345
- execution: Execution;
2346
- constructor(execution: Execution, field: FieldWithAttribute);
2347
- get attribute(): ApiaAttribute;
2348
- clearValue(): void;
2349
- getValue(): any;
2350
- setValue(v: T): void;
2351
- getLabel(): string | null | void;
2352
- getProperty<K extends keyof TApiaFieldWithAttributeProperties>(name: K): TApiaFieldWithAttributeProperties[K];
2920
+
2921
+ declare enum ExecutionState {
2922
+ RUNNING = 0,
2923
+ LOADING = 1,
2924
+ FINISHED = 2,
2925
+ RENDERING = 3,
2926
+ CONFIRMING = 4,
2927
+ FINISHED_WITH_ERROR = 5
2353
2928
  }
2929
+ type TOnClose = 'clearEvalPath' | 'confirmOkOnClose' | 'confirmOkOnCloseSplash' | 'confirmOkOnSaveSplash' | 'releaseOkOnClose' | null;
2930
+ type TErrMessage = {
2931
+ message: {
2932
+ text: string;
2933
+ label?: string;
2934
+ };
2935
+ };
2936
+ type TFetchTaskActionResponse = {
2937
+ onClose?: TOnClose;
2938
+ sysMessages?: TErrMessage;
2939
+ sysExceptions?: TErrMessage;
2940
+ type?: string;
2941
+ actions?: {
2942
+ action: {
2943
+ param: string[];
2944
+ toDo: string;
2945
+ };
2946
+ };
2947
+ load?: {
2948
+ canClose: boolean;
2949
+ type: string;
2950
+ text: {
2951
+ label: string;
2952
+ closeAll: boolean;
2953
+ addClass?: string;
2954
+ title?: string;
2955
+ };
2956
+ };
2957
+ text?: {
2958
+ title?: string;
2959
+ label?: string;
2960
+ };
2961
+ };
2962
+
2963
+ type TCheckWizardResponse = {
2964
+ url: string;
2965
+ };
2966
+ type TFetchConfirmPathResponse = {
2967
+ onClose?: string;
2968
+ sysMessages?: {
2969
+ message?: {
2970
+ text: string;
2971
+ };
2972
+ };
2973
+ pathSelection?: boolean | null;
2974
+ groupSelection?: boolean | null;
2975
+ load?: TApiaLoadForm & {
2976
+ type: 'form' | 'text' | 'table' | 'function';
2977
+ canClose: boolean;
2978
+ text?: {
2979
+ closeAll: string;
2980
+ title: string;
2981
+ addClass: string;
2982
+ label: string;
2983
+ content?: string;
2984
+ };
2985
+ };
2986
+ actions?: {
2987
+ action: {
2988
+ toDo: 'functionTimedCall';
2989
+ param: [number, string];
2990
+ };
2991
+ };
2992
+ };
2993
+ type TItemTreeObj = {
2994
+ id: string;
2995
+ name: string;
2996
+ level: number;
2997
+ value: boolean;
2998
+ type: TPathType;
2999
+ isOn: boolean;
3000
+ };
3001
+ type TPathType = 'OR' | 'XOR' | 'AND';
2354
3002
 
2355
- type TEditorField = IApiaField;
2356
- declare class EditorField extends ApiaFieldWithAttribute implements TEditorField {
3003
+ declare class ShowPathSelection extends FlowModal<{
3004
+ confirmed: boolean;
3005
+ path: string;
3006
+ }> {
3007
+ fetchResult: TApiaLoadForm['form'];
3008
+ confirm: (result: {
3009
+ confirmed: boolean;
3010
+ path: string;
3011
+ }) => Promise<Status | FlowModal<any>>;
3012
+ state: {
3013
+ disabledParents: TItemTreeObj | TItemTreeObj[] | null;
3014
+ groupSelectionObj: TFetchConfirmPathResponse | null;
3015
+ };
3016
+ constructor(fetchResult: TApiaLoadForm['form'], confirm: (result: {
3017
+ confirmed: boolean;
3018
+ path: string;
3019
+ }) => Promise<Status | FlowModal<any>>);
3020
+ setDisabledParent(treeItem: TItemTreeObj): void;
3021
+ clearPaths(): void;
3022
+ showGroupsSelection(fetchConfirmPathResponse: TFetchConfirmPathResponse): void;
3023
+ updateDisabledList(itemObj: TItemTreeObj, itemArr: TItemTreeObj[]): TItemTreeObj[];
2357
3024
  }
2358
3025
 
2359
- type TOptionsMap$2 = Map<string, PossibleValue>;
2360
- type TOptionsAsArray = PossibleValue[];
2361
- declare class SelectField extends ApiaFieldWithAttribute<string | number | (string | number)[]> {
2362
- #private;
2363
- constructor(execution: Execution, field: Select);
2364
- getOptions(asObject: boolean): TOptionsMap$2 | TOptionsAsArray | null;
2365
- addOption(optionValue: string | number, showValue: string, allowRepeatedValue: boolean): void;
2366
- setOptions(optionsArray: PossibleValue[]): void;
2367
- removeOption(optionValue: string | number): void;
2368
- getSelectedOption(asObject: boolean): TOptionsMap$2 | PossibleValue[] | null;
2369
- getSelectedText(): string | null;
2370
- clearOptions(): void;
3026
+ declare class ShowPoolSelection extends FlowModal<{
3027
+ confirmed: boolean;
3028
+ group: string;
3029
+ }> {
3030
+ fetchResult: TApiaLoadForm['form'];
3031
+ confirm: (result: {
3032
+ confirmed: boolean;
3033
+ group: string;
3034
+ }) => Promise<Status>;
3035
+ constructor(fetchResult: TApiaLoadForm['form'], confirm: (result: {
3036
+ confirmed: boolean;
3037
+ group: string;
3038
+ }) => Promise<Status>);
2371
3039
  }
2372
3040
 
2373
- declare class InputField extends ApiaFieldWithAttribute {
2374
- #private;
2375
- constructor(execution: Execution, field: Input);
2376
- getObjectValue(): number | string | boolean | null;
2377
- setValue(v: string): void;
3041
+ declare class ShowSignSelection extends FlowModal<{
3042
+ confirmed: boolean;
3043
+ signed: boolean;
3044
+ }> {
3045
+ fetchResult: any;
3046
+ confirm: (result: {
3047
+ confirmed: boolean;
3048
+ signed: boolean;
3049
+ }) => Promise<Status>;
3050
+ constructor(fetchResult: any, confirm: (result: {
3051
+ confirmed: boolean;
3052
+ signed: boolean;
3053
+ }) => Promise<Status>);
2378
3054
  }
2379
3055
 
2380
- declare class TreeField extends ApiaFieldWithAttribute<string | number | (string | number)[]> {
2381
- #private;
2382
- constructor(execution: Execution, field: Tree);
2383
- setValue(v: string | number | (string | number)[]): void;
3056
+ declare class ShowConfirmMessage extends FlowModal<{
3057
+ confirmed: boolean;
3058
+ }> {
3059
+ fetchResult: any;
3060
+ confirm: (result: {
3061
+ confirmed: boolean;
3062
+ }) => Promise<Status>;
3063
+ constructor(fetchResult: any, confirm: (result: {
3064
+ confirmed: boolean;
3065
+ }) => Promise<Status>);
2384
3066
  }
2385
3067
 
2386
- declare class CheckField extends ApiaFieldWithAttribute {
2387
- clearValue(): void;
2388
- setValue(value: string | boolean | number): void;
3068
+ declare class ShowSign extends FlowModal<{
3069
+ confirmed: boolean;
3070
+ }> {
3071
+ fetchResult: any;
3072
+ confirm: (result: {
3073
+ confirmed: boolean;
3074
+ }) => Promise<Status>;
3075
+ constructor(fetchResult: any, confirm: (result: {
3076
+ confirmed: boolean;
3077
+ }) => Promise<Status>);
2389
3078
  }
2390
3079
 
2391
- type TOptionsMap$1 = Map<string, PossibleValue>;
2392
- declare class RadioField extends ApiaFieldWithAttribute {
2393
- #private;
2394
- constructor(execution: Execution, field: Radio);
2395
- getOptions(asObject: boolean): TOptionsMap$1 | PossibleValue[] | null;
2396
- clearOptions(): void | null;
2397
- addOption(radioValue: string | number, showValue: string, allowRepeatedValue: boolean): void;
2398
- setOptions(options: PossibleValue[]): void;
2399
- removeOption(radioValue: string | number): void;
2400
- getSelectedOption(asObject: boolean): TOptionsMap$1 | PossibleValue | null;
2401
- getSelectedText(): string | undefined | null;
3080
+ type TExecutionConfig = {
3081
+ canConfirm: boolean;
3082
+ canGoBack: boolean;
3083
+ canGoForward: boolean;
3084
+ canSave: boolean;
3085
+ canFree: boolean;
3086
+ canDelegate: boolean;
3087
+ canClose: boolean;
3088
+ canShare: boolean;
3089
+ isEntity?: boolean;
3090
+ };
3091
+ type TExecutionEnvironment = {
3092
+ fieldsMapping?: FieldsMapping;
3093
+ window: Window;
3094
+ document: Document;
3095
+ headers: any;
3096
+ properties?: {
3097
+ taskName: string;
3098
+ processName: string;
3099
+ };
3100
+ };
3101
+ declare class Execution extends EventEmitter$1<{
3102
+ confirm: null;
3103
+ next: null;
3104
+ sendToDesktop: null;
3105
+ }> {
3106
+ environment: TExecutionEnvironment;
3107
+ fieldsMapping: FieldsMapping;
3108
+ private entity;
3109
+ private process;
3110
+ private observations;
3111
+ executionConfig: TExecutionConfig | null;
3112
+ private _steps;
3113
+ private _currentStep;
3114
+ private _stepCount;
3115
+ readonly notifications: Notifications;
3116
+ private lastModalReturn;
3117
+ constructor(environment: TExecutionEnvironment);
3118
+ protected formsById: {
3119
+ E: Map<string, Form>;
3120
+ P: Map<string, Form>;
3121
+ };
3122
+ protected forms: {
3123
+ E: Map<string, Form>;
3124
+ P: Map<string, Form>;
3125
+ };
3126
+ state: {
3127
+ executionState: ExecutionState;
3128
+ locked: boolean;
3129
+ hasChangedAnything: boolean;
3130
+ };
3131
+ getAllForms(): Form[];
3132
+ private hasInitializedFormsTabs;
3133
+ initializeFormsTabs(frmParent: TFrmParent, cb: () => unknown): void;
3134
+ getFormsByType(type: TFrmParent): Form[];
3135
+ getFormByName(formName: string, frmParent?: TFrmParent): Form | undefined;
3136
+ getFormById(formId: string | number, frmParent?: TFrmParent): Form | undefined;
3137
+ get currentStep(): number;
3138
+ get steps(): {
3139
+ title: string;
3140
+ stepNumber: number;
3141
+ status: "completed" | "pending" | "current";
3142
+ }[];
3143
+ getEntity(): Entity;
3144
+ getProcess(): Process;
3145
+ getObservations(): Observations;
3146
+ getCurrentTask(): Task;
3147
+ private mustRenderForms;
3148
+ run(executionConfig: TExecutionConfig): Promise<void>;
3149
+ protected getHiddenForms(): Form[];
3150
+ markFormAsRendered(frmParent: string, frmName: string): void;
3151
+ delegate(): Promise<void>;
3152
+ shareSocial(): Promise<void>;
3153
+ confirm(): void;
3154
+ next(): void;
3155
+ sendToDesktop(): void;
3156
+ doBack(): Promise<false | undefined>;
3157
+ doConfirm(status?: Status): Promise<boolean | FlowModal<any> | Field>;
3158
+ doFree(): Promise<TApiaApiAxiosResponse<(TFetchTaskActionResponse & ResponseSysMessages) | null> | null>;
3159
+ doNext(result?: {
3160
+ confirmed: boolean;
3161
+ signed: boolean;
3162
+ }): Promise<boolean | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
3163
+ definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
3164
+ }> | ShowSignSelection | undefined>;
3165
+ doPrint(): Promise<void>;
3166
+ doSave(): Promise<TApiaApiAxiosResponse<(TFetchTaskActionResponse & ResponseSysMessages) | null> | undefined>;
3167
+ getStepTitle(step: number): {
3168
+ title: string;
3169
+ stepNumber: number;
3170
+ status: "completed" | "pending" | "current";
3171
+ } | undefined;
3172
+ /**
3173
+ * Ends the current session
3174
+ */
3175
+ kill(): void;
3176
+ viewDocs(): Promise<(Record<string, unknown> & ResponseSysMessages) | undefined>;
3177
+ setStepTitle(stepNumber: number, stepTitle: string): void;
3178
+ validate(): Promise<true | Field>;
3179
+ setLastModalReturn(value: string[]): void;
3180
+ getLastModalReturn(): string[];
3181
+ private fireEvents;
2402
3182
  }
2403
3183
 
2404
- type TOptionsMap = Map<string, PossibleValue>;
2405
- declare class MultipleField extends ApiaFieldWithAttribute<string[]> {
2406
- #private;
2407
- constructor(execution: Execution, field: Multiple);
2408
- addOption(optionValue: string | number, showValue: string, allowRepeatedValue: boolean): void;
2409
- setValue(value: string[]): void;
2410
- clearOptions(): void;
2411
- getSelectedOption(asObject: boolean): TOptionsMap | PossibleValue[] | null;
2412
- getOptions(asObject: boolean): TOptionsMap | PossibleValue[] | null;
2413
- setOptions(optionsArray: PossibleValue[]): void;
2414
- removeOption(optionValue: string | number): void;
3184
+ declare global {
3185
+ interface Window {
3186
+ [key: string]: string;
3187
+ }
3188
+ interface Document {
3189
+ headers: any;
3190
+ }
2415
3191
  }
2416
-
2417
- declare class HiddenField extends ApiaField {
3192
+ declare function isJsonResponse(response: AxiosResponse<unknown>): RegExpMatchArray | null;
3193
+ declare function isXmlResponse(response: AxiosResponse<unknown>): RegExpMatchArray | null;
3194
+ declare function isHtmlResponse(response: AxiosResponse<unknown>): RegExpMatchArray | null;
3195
+ declare class InvalidSessionException extends Error {
2418
3196
  }
3197
+ declare const parseSuccessfulResponse: <LoadType extends Record<string, unknown>, DataType = unknown>(execution: Execution, response: AxiosResponse<string>, behaveConfig?: IApiaApiPostConfig<DataType>) => Promise<(ResponseSysMessages & LoadType & {
3198
+ onClose?: string;
3199
+ code?: unknown;
3200
+ load?: LoadType | undefined;
3201
+ }) | ({
3202
+ actions: unknown;
3203
+ onClose: string | undefined;
3204
+ exceptions: {
3205
+ exception: TApiaMessage | TApiaMessage[];
3206
+ } | undefined;
3207
+ sysExceptions: {
3208
+ exception: TApiaMessage | TApiaMessage[];
3209
+ } | undefined;
3210
+ sysMessages: {
3211
+ message: TApiaMessage | TApiaMessage[];
3212
+ } | undefined;
3213
+ } & LoadType) | null>;
3214
+ /**
3215
+ * IMPORTANT!! The ApiaApi is programmed under the slogan that
3216
+ * **should never throw an exception**. **Errors** coming from
3217
+ * connectivity or exceptions on the server **will be handled
3218
+ * automatically** by ApiaApi, using the notification system
3219
+ * of the application. It is possible to determine in what context they should
3220
+ * be thrown those exceptions (global, main, modal) using the
3221
+ * alertsCategory configuration properties **(see errorsHandling.md)**.
3222
+ *
3223
+ * @param url String, the url you want to call
3224
+ * @param config interface IApiaApiRequestConfig<DataType>;
3225
+ *
3226
+ * @throws Nothing
3227
+ *
3228
+ * @example
3229
+ *
3230
+ * ApiaApi.post<ResponseType>('url...', {
3231
+ axiosConfig?: AxiosRequestConfig;
2419
3232
 
2420
- declare class AreaField extends ApiaFieldWithAttribute {
2421
- }
3233
+ // Configuración de postData
3234
+ postData? unknown;
3235
+ postDataTreatement?: 'stringify' | undefined;
2422
3236
 
2423
- interface IImageField extends IApiaField {
2424
- getValue(): null;
2425
- setValue(): null;
2426
- getLabel(): void;
2427
- clearValue(): null;
2428
- }
2429
- declare class ImageField extends ApiaField implements IImageField {
2430
- #private;
2431
- constructor(execution: Execution, field: Image);
2432
- clearValue(): null;
2433
- getLabel(): void;
2434
- getValue(): null;
2435
- setValue(): null;
2436
- }
3237
+ // Configuración de queryString
3238
+ queryData?: string | Record<string, unknown>;
3239
+ stringifyOptions?: QueryString.IStringifyOptions;
2437
3240
 
2438
- interface ILinkField extends IApiaField {
2439
- getLabel(): void;
2440
- }
2441
- declare class LinkField extends ApiaField implements ILinkField {
2442
- #private;
2443
- constructor(execution: Execution, field: Link);
2444
- getLabel(): void;
2445
- }
3241
+ // Response validator,
3242
+ // If it returns true, everything continues correctly
3243
+ // If it returns false, the ApiaApi throws a standard error.
3244
+ // If it returns string, ApiaApi throws the error returned in the string.
3245
+ validateResponse?: (
3246
+ response: AxiosResponse<DataType | null>,
3247
+ ) => boolean | string;
2446
3248
 
2447
- interface ITextField extends IApiaField {
2448
- getLabel(): void;
2449
- }
2450
- declare class TextField extends ApiaField<TTextFieldProperties> implements ITextField {
2451
- #private;
2452
- constructor(execution: Execution, field: Field);
2453
- getLabel(): void;
2454
- setValue(value: string): void;
2455
- }
3249
+ // Configuración de alertas
3250
+ alertsImportance?: TAlertImportance;
2456
3251
 
2457
- declare class GridField extends ApiaField<TApiaGridProperties> {
2458
- #private;
2459
- constructor(execution: Execution, field: Grid);
2460
- addRow(): Promise<IApiaField[]>;
2461
- clearGrid(): void;
2462
- clearPage(): void;
2463
- clearRow(index: number): Promise<void>;
2464
- closeForm(): GridField;
2465
- deleteAllRows(): Promise<void>;
2466
- deleteGrid(): Promise<void>;
2467
- deletePage(): void;
2468
- deleteRow(index: number): Promise<void>;
2469
- editRow(index: number): void;
2470
- getAllColumns(): (IApiaField<TApiaFieldCommonProperties> | null)[][];
2471
- getColumn(fieldName: string): (IApiaField<TApiaFieldCommonProperties> | null)[];
2472
- getCurrentPage(): number;
2473
- getField(fieldName: string, fieldIndex?: number): IApiaField<TApiaFieldCommonProperties> | IApiaField<TApiaFieldCommonProperties>[] | null;
2474
- getPageCount(): number;
2475
- getPageSize(): number;
2476
- getRow(index: number): IApiaField<TApiaFieldCommonProperties>[] | undefined;
2477
- getSelection(): IApiaField[][];
2478
- get id(): string;
2479
- isPaged(): boolean;
2480
- get rowsCount(): number;
2481
- toggleColumnVisibility(fieldName: string, isShown?: boolean): void;
2482
- toggleDeleteButton(index: number, isShown?: boolean): void;
2483
- toggleEditFormButton(rowIndex: number, isShown?: boolean): void;
2484
- }
3252
+ // Configuración de ApiaApiHandler, falta documentar
3253
+ handleLoad?: boolean;
3254
+ eventsHandler?: IEventsHandler;
2485
3255
 
2486
- type TCaptchaField = IApiaField;
2487
- declare class CaptchaField extends ApiaField implements TCaptchaField {
2488
- }
3256
+ // other configuration
3257
+ colors?: TColors;
3258
+ debug?: boolean;
3259
+ }
3260
+ * @returns The type of the return value depends on the type passed when calling the function. If there was an error it returns null.
3261
+ */
3262
+ declare function post<LoadType extends Record<string, unknown> = Record<string, unknown>, DataType = unknown, T = unknown>(execution: Execution, actualUrl: string, behaveConfig?: IApiaApiPostConfig<DataType>): TApiaApiResult<LoadType>;
3263
+ /**
3264
+ * IMPORTANTE!! El ApiaApi está programado bajo la consigna de que
3265
+ * **no debe tirar núnca una excepción**. **Los errores** provenientes
3266
+ * de la conectividad o de excepciones en el servidor **serán manejados
3267
+ * automáticamente** por el ApiaApi utilizando el sistema de notificaciones
3268
+ * de la aplicación. Es posible determinar en qué contexto deben
3269
+ * ser lanzadas esas excepciones (global, main, modal) utilizando las
3270
+ * propiedades de configuración alertsCategory **(ver errorsHandling.md)**.
3271
+ *
3272
+ * @param url String, el url al que se desea llamar
3273
+ * @param config interface IApiaApiRequestConfig<DataType>;
3274
+ *
3275
+ * @throws Nothing
3276
+ *
3277
+ * @example
3278
+ *
3279
+ * ApiaApi.get<TipoDeRespuesta>('url...', {
3280
+ axiosConfig?: AxiosRequestConfig;
2489
3281
 
2490
- declare class FileUploaderField extends ApiaFieldWithAttribute {
2491
- #private;
2492
- constructor(execution: Execution, field: File$1);
2493
- onChange(cb: (newValue: unknown) => unknown): void;
2494
- setValue(): null;
2495
- }
3282
+ // Configuración de queryString
3283
+ queryData?: string | Record<string, unknown>;
3284
+ stringifyOptions?: QueryString.IStringifyOptions;
2496
3285
 
2497
- declare class PasswordField extends ApiaField {
2498
- }
3286
+ // Validador de respuesta,
3287
+ // Si devuelve true, todo sigue correctamente
3288
+ // Si devuelve false, el ApiaApi tira un error estándar.
3289
+ // Si devuelve string, el ApiaApi tira el error devuelto en el string.
3290
+ validateResponse?: (
3291
+ response: AxiosResponse<DataType | null>,
3292
+ ) => boolean | string;
2499
3293
 
2500
- declare class ModalInputField extends ApiaFieldWithAttribute {
2501
- #private;
2502
- constructor(execution: Execution, field: ModalInput);
2503
- getObjectValue(): any | null;
2504
- setValue(v: any): void;
2505
- setValueFromInputWrite(value: string): Promise<void>;
2506
- }
3294
+ // Configuración de alertas
3295
+ alertsImportance?: TAlertImportance;
2507
3296
 
2508
- type TCreateNewField = (execution: Execution, field: Field | FieldWithAttribute | CustomComponent) => IApiaField | null;
3297
+ // Configuración de ApiaApiHandler, falta documentar
3298
+ handleLoad?: boolean;
3299
+ eventsHandler?: IEventsHandler;
2509
3300
 
2510
- declare const createNewField: TCreateNewField;
3301
+ // Otra configuración
3302
+ colors?: TColors;
3303
+ debug?: boolean;
3304
+ }
3305
+ * @returns El tipo del valor devuelto depende del tipo pasado al llamar a la función. Si hubo un error devuelve null
3306
+ */
3307
+ declare function get<LoadType extends Record<string, unknown> = Record<string, unknown>, T = unknown, D = unknown>(execution: Execution, actualUrl: string, behaveConfig?: IApiaApiRequestConfig): TApiaApiResult<LoadType>;
3308
+ type MakeApiaUrlProps = {
3309
+ action?: string;
3310
+ ajaxUrl?: string;
3311
+ queryString?: string;
3312
+ stringifyOptions?: IStringifyOptions;
3313
+ tabId?: string | number;
3314
+ preventAsXmlParameter?: boolean;
3315
+ avoidTabId?: boolean;
3316
+ [key: string]: unknown;
3317
+ };
3318
+ /**
3319
+ * Creates an url based on the general requirements of Apia.
3320
+ * If the ajaxUrl property is not passed, it will use the
3321
+ * getWindow(execution).URL_REQUEST_AJAX. Its use is very simple, just pass the objects you
3322
+ * want to appear in the query string.
3323
+ *
3324
+ * @example makeApiaUrl({
3325
+ * ajaxUrl: 'the.endpoint.you.want',
3326
+ * queryString: 'an=existent&query=string',
3327
+ * action: 'theAction',
3328
+ * anotherProp: 15
3329
+ * })
3330
+ *
3331
+ * @returns the well formed url, in the example, the response url is:
3332
+ * /context/the.endpoint.you.want?an=existent&query=string&anotherProp=15&tabId=...&tokenId=...&action=theAction
3333
+ */
3334
+ declare function makeApiaUrl(execution: Execution, props?: MakeApiaUrlProps): string;
2511
3335
 
2512
3336
  type TFncParams = {
2513
3337
  type: 'V' | 'P' | 'E';
@@ -2950,19 +3774,12 @@ declare class SchedulerField extends Field<TApiaSchedulerProperties> {
2950
3774
  }
2951
3775
 
2952
3776
  declare const IProperty: {
2953
- readonly FUNC_LOAD: "onload";
2954
- readonly FUNC_RELOAD: "onreload";
2955
- readonly PROPERTY_FORM_INVISIBLE: "frmInvisible";
2956
3777
  readonly PROPERTY_FORM_HIDDEN: "frmHidden";
3778
+ readonly PROPERTY_FORM_HIGHLIGHT: "frmHighlight";
2957
3779
  readonly PROPERTY_FORM_CLOSED: "prpFrmClosed";
2958
3780
  readonly PROPERTY_FORM_TAB: "frmTab";
2959
- readonly PROPERTY_FORM_HIGHLIGHT: "frmHighlight";
2960
3781
  readonly PROPERTY_FORM_DONT_FIRE: "frmDontFire";
2961
3782
  readonly PROPERTY_FORM_READONLY: "readOnly";
2962
- readonly SIGNABLE_FORM: "signableForm";
2963
- readonly MARKED_TO_SIGN: "markedToSign";
2964
- readonly REQUIRED_SIGN: "requiredSignableForm";
2965
- readonly LANGUAGES: "langs";
2966
3783
  readonly TYPE_INPUT: "input";
2967
3784
  readonly TYPE_SELECT: "select";
2968
3785
  readonly TYPE_RADIO: "radio";
@@ -2981,14 +3798,6 @@ declare const IProperty: {
2981
3798
  readonly TYPE_EDITOR: "editor";
2982
3799
  readonly TYPE_TREE: "tree";
2983
3800
  readonly TYPE_CAPTCHA: "captcha";
2984
- readonly FUNC_CLICK: "onclick";
2985
- readonly FUNC_CHANGE: "onchange";
2986
- readonly FUNC_MODAL_RETURN: "onmodalreturn";
2987
- readonly FUNC_ROW_ADD: "onrowadd";
2988
- readonly FUNC_ROW_DELETE: "onrowdelete";
2989
- readonly FUNC_ROW_SORT: "onrowsort";
2990
- readonly FUNC_COL_SELECT: "oncolselect";
2991
- readonly FIELD_PROPERTIES: "properties";
2992
3801
  readonly PROPERTY_NAME: "name";
2993
3802
  readonly PROPERTY_SIZE: "size";
2994
3803
  readonly PROPERTY_READONLY: "readonly";