@apia/execution 4.0.73 → 4.0.77

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
@@ -1,6 +1,5 @@
1
1
  import { AxiosRequestConfig, AxiosResponse } from 'axios';
2
2
  import { IStringifyOptions } from 'qs';
3
- import { TDispatchedNotification } from '@apia/components';
4
3
  import { TableController, Row, Cell, CellState } from '@apia/table2-controller';
5
4
  import { DeepReadonly, TApiaLoadForm, EventEmitter as EventEmitter$1, Mutex } from '@apia/util';
6
5
  import { UploaderApi as UploaderApi$1, TModalConfig, TUploaderFileInfo, UploaderModalController, TFileUploaded, TSaveDroppedFilesConf } from '@apia/uploader-controller';
@@ -856,11 +855,11 @@ declare global {
856
855
  declare class ApiaFunctions implements IApiaFunctions {
857
856
  #private;
858
857
  constructor(execution: Execution);
859
- toJSNumber(value: string): number | string;
860
- toApiaNumber(value: number): number | string;
861
- openTab(title: string, url: string): void;
862
- showMessage(text: string, title?: string, type?: TDispatchedNotification['type']): void;
863
- showConfirm(text: string, title: string, callbackFn: (win: boolean) => unknown): void;
858
+ toJSNumber(_value: string): number | string;
859
+ toApiaNumber(_value: number): number | string;
860
+ openTab(_title: string, _url: string): void;
861
+ showMessage(_text: string): void;
862
+ showConfirm(_text: string, _title: string, _callbackFn: (win: boolean) => unknown): void;
864
863
  getFormByType(frmName: string, frmType: TFrmParent): IApiaForm | null;
865
864
  admEntity(entName: string, entNum?: number, parameters?: Record<string, string>, width?: number, height?: number): void;
866
865
  clearMessages(): void;
@@ -2292,7 +2291,7 @@ declare class Notifications {
2292
2291
  getById(id: string | number): Notification<NotificationDefinition> | undefined;
2293
2292
  kill(): void;
2294
2293
  remove(notification: string | number | Notification): void;
2295
- on: <K extends "notification" | "closeTab" | "kill">(event: K, cb: Callback<{
2294
+ on: <K extends "closeTab" | "kill" | "notification">(event: K, cb: Callback<{
2296
2295
  closeTab: null;
2297
2296
  kill: null;
2298
2297
  notification: Notification;
@@ -3355,7 +3354,7 @@ declare class Grid extends Field<GridProps, GridDefinition, GridState> {
3355
3354
  get startIndex(): number;
3356
3355
  constructor({ properties, field, ...definition }: TApiaGridDefinition);
3357
3356
  private resolveHeaderWidth;
3358
- protected getGridActionFromEventName(eventName: GridEvents): "add" | "delete" | undefined;
3357
+ protected getGridActionFromEventName(eventName: GridEvents): "delete" | "add" | undefined;
3359
3358
  protected fireServerEvent(eventName: GridEvents, params?: FireEventParameters): Promise<boolean>;
3360
3359
  /**
3361
3360
  * Grid methods
package/dist/index.js CHANGED
@@ -6084,6 +6084,12 @@ class ApiaFunctions {
6084
6084
  tab.open();
6085
6085
  });
6086
6086
  }
6087
+ lockScreen() {
6088
+ __privateGet$2(this, _execution).state.locked = 0;
6089
+ }
6090
+ unlockScreen() {
6091
+ __privateGet$2(this, _execution).state.locked = 1;
6092
+ }
6087
6093
  }
6088
6094
  _execution = new WeakMap();
6089
6095