@fctc/interface-logic 3.0.2 → 3.0.3

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/provider.mjs CHANGED
@@ -2849,74 +2849,6 @@ var updateTokenParamInOriginalRequest = (originalRequest, newAccessToken) => {
2849
2849
  return originalRequest.data;
2850
2850
  };
2851
2851
 
2852
- // src/utils/storage/local-storage.ts
2853
- var localStorageUtils = () => {
2854
- const setToken = async (access_token) => {
2855
- localStorage.setItem("accessToken", access_token);
2856
- };
2857
- const setRefreshToken = async (refresh_token) => {
2858
- localStorage.setItem("refreshToken", refresh_token);
2859
- };
2860
- const getAccessToken = async () => {
2861
- return localStorage.getItem("accessToken");
2862
- };
2863
- const getRefreshToken = async () => {
2864
- return localStorage.getItem("refreshToken");
2865
- };
2866
- const clearToken = async () => {
2867
- localStorage.removeItem("accessToken");
2868
- localStorage.removeItem("refreshToken");
2869
- };
2870
- return {
2871
- setToken,
2872
- setRefreshToken,
2873
- getAccessToken,
2874
- getRefreshToken,
2875
- clearToken
2876
- };
2877
- };
2878
-
2879
- // src/utils/storage/session-storage.ts
2880
- var sessionStorageUtils = /* @__PURE__ */ (() => {
2881
- const getMenuFocus = () => {
2882
- const menuFocus = sessionStorage.getItem("menuFocus");
2883
- return menuFocus ? JSON.parse(menuFocus) : {
2884
- id: void 0,
2885
- service: ""
2886
- };
2887
- };
2888
- const setMenuFocus2 = (menuTree) => {
2889
- sessionStorage.setItem("menuFocus", JSON.stringify({ ...menuTree }));
2890
- };
2891
- const getActionData = () => {
2892
- const actionData = sessionStorage.getItem("actionData");
2893
- return actionData ? JSON.parse(actionData) : {};
2894
- };
2895
- const setActionData = (actData) => {
2896
- sessionStorage.setItem("actionData", JSON.stringify(actData));
2897
- };
2898
- const getViewData = () => {
2899
- const viewData = sessionStorage.getItem("viewData");
2900
- return viewData ? JSON.parse(viewData) : {};
2901
- };
2902
- const getBrowserSession = () => {
2903
- const actionData = sessionStorage.getItem("browserSession");
2904
- return actionData ? JSON.parse(actionData) : null;
2905
- };
2906
- const setViewData = (viewData) => {
2907
- sessionStorage.setItem("viewData", JSON.stringify(viewData));
2908
- };
2909
- return {
2910
- getMenuFocus,
2911
- setMenuFocus: setMenuFocus2,
2912
- setActionData,
2913
- getActionData,
2914
- getViewData,
2915
- setViewData,
2916
- getBrowserSession
2917
- };
2918
- })();
2919
-
2920
2852
  // src/services/action-service/index.ts
2921
2853
  function useActionService() {
2922
2854
  const { env } = useEnv();
@@ -5169,6 +5101,61 @@ function useViewService() {
5169
5101
  },
5170
5102
  [env]
5171
5103
  );
5104
+ const getDataCloseSession = useCallback9(
5105
+ ({
5106
+ model,
5107
+ ids,
5108
+ xNode,
5109
+ service
5110
+ }) => {
5111
+ const jsonData = {
5112
+ model,
5113
+ ids,
5114
+ method: "get_closing_control_data" /* GET_CLOSING_CONTROL_DATA */
5115
+ };
5116
+ return env?.requests.post(
5117
+ "/call" /* CALL_PATH */,
5118
+ jsonData,
5119
+ {
5120
+ headers: {
5121
+ "Content-Type": "application/json",
5122
+ ...xNode ? { "X-Node": xNode } : {}
5123
+ }
5124
+ },
5125
+ service
5126
+ );
5127
+ },
5128
+ [env]
5129
+ );
5130
+ const getDetailEntity = useCallback9(
5131
+ ({
5132
+ model,
5133
+ ids,
5134
+ method,
5135
+ xNode,
5136
+ service,
5137
+ kwargs
5138
+ }) => {
5139
+ const jsonData = {
5140
+ model,
5141
+ ids,
5142
+ method,
5143
+ kwargs
5144
+ };
5145
+ return env?.requests.post(
5146
+ "/call" /* CALL_PATH */,
5147
+ jsonData,
5148
+ {
5149
+ headers: {
5150
+ "Content-Type": "application/json",
5151
+ ...xNode ? { "X-Node": xNode } : {}
5152
+ }
5153
+ },
5154
+ service
5155
+ );
5156
+ },
5157
+ [env]
5158
+ );
5172
5159
  return {
5173
5160
  getView,
5174
5161
  getMenu,
@@ -5200,7 +5187,9 @@ function useViewService() {
5200
5187
  getOrderLine,
5201
5188
  getProductImage,
5202
5189
  addEntity,
5203
- checkPayment
5190
+ checkPayment,
5191
+ getDataCloseSession,
5192
+ getDetailEntity
5204
5193
  };
5205
5194
  }
5206
5195
 
@@ -5245,15 +5234,53 @@ import { createContext, useContext, useState as useState3, useCallback as useCal
5245
5234
 
5246
5235
  // src/configs/axios-client.ts
5247
5236
  import axios from "axios";
5237
+
5238
+ // src/utils/storage/local-storage.ts
5239
+ var localStorageUtils = () => {
5240
+ const setToken = async (access_token) => {
5241
+ localStorage.setItem("accessToken", access_token);
5242
+ };
5243
+ const setRefreshToken = async (refresh_token) => {
5244
+ localStorage.setItem("refreshToken", refresh_token);
5245
+ };
5246
+ const getAccessToken = async () => {
5247
+ return localStorage.getItem("accessToken");
5248
+ };
5249
+ const getRefreshToken = async () => {
5250
+ return localStorage.getItem("refreshToken");
5251
+ };
5252
+ const clearToken = async () => {
5253
+ localStorage.removeItem("accessToken");
5254
+ localStorage.removeItem("refreshToken");
5255
+ };
5256
+ return {
5257
+ setToken,
5258
+ setRefreshToken,
5259
+ getAccessToken,
5260
+ getRefreshToken,
5261
+ clearToken
5262
+ };
5263
+ };
5264
+
5265
+ // src/utils/storage/session-storage.ts
5266
+ var sessionStorageUtils = () => {
5267
+ const getBrowserSession = async () => {
5268
+ return sessionStorage.getItem("browserSession");
5269
+ };
5270
+ return {
5271
+ getBrowserSession
5272
+ };
5273
+ };
5274
+
5275
+ // src/configs/axios-client.ts
5248
5276
  var axiosClient = {
5249
5277
  init(config) {
5250
5278
  const localStorage2 = config?.localStorageUtils ?? localStorageUtils();
5251
- const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils;
5279
+ const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils();
5252
5280
  const db = config?.db;
5253
5281
  const database = config?.config?.database;
5254
5282
  let isRefreshing = false;
5255
5283
  let failedQueue = [];
5256
- const xNode = config?.xNode;
5257
5284
  const processQueue = (error, token = null) => {
5258
5285
  failedQueue?.forEach((prom) => {
5259
5286
  if (error) {
@@ -5408,48 +5435,46 @@ var axiosClient = {
5408
5435
  function formatUrl(url, db2) {
5409
5436
  return url + (db2 ? "?db=" + db2 : "");
5410
5437
  }
5411
- const getBaseUrl = (baseUrl) => {
5412
- return config?.default_service === "" ? `${baseUrl.replace(/\/$/, "")}/api/v2` : `${baseUrl.replace(/\/$/, "")}/${sessionStorage2.getMenuFocus().service || config?.default_service}/api/v2`;
5413
- };
5414
- const getHeaders = (header) => {
5415
- const headers = {
5416
- ...header,
5417
- ...xNode ? { "X-Node": xNode } : {}
5418
- };
5419
- return headers;
5438
+ const getBaseUrl = (baseUrl, serviceName) => {
5439
+ const service = serviceName || config?.default_service;
5440
+ return config?.default_service === "" ? `${baseUrl.replace(/\/$/, "")}/api/v2` : `${baseUrl.replace(/\/$/, "")}/${service}/api/v2`;
5420
5441
  };
5421
5442
  const responseBody = (response) => response;
5422
5443
  const requests = {
5423
- get: (url, headers) => instance.get(
5424
- formatUrl(getBaseUrl(config?.baseUrl) + url, db),
5425
- getHeaders(headers)
5444
+ get: (url, headers, serviceName) => instance.get(
5445
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
5446
+ headers
5426
5447
  ).then(responseBody),
5427
- post: async (url, body, headers) => instance.post(
5428
- formatUrl(getBaseUrl(config?.baseUrl) + url, db),
5448
+ post: async (url, body, headers, serviceName) => instance.post(
5449
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
5429
5450
  body,
5430
- getHeaders(headers)
5451
+ headers
5431
5452
  ).then(responseBody),
5432
- post_excel: (url, body, headers) => instance.post(formatUrl(getBaseUrl(config?.baseUrl) + url, db), body, {
5433
- responseType: "arraybuffer",
5434
- headers: {
5435
- "Content-Type": typeof window !== "undefined" ? "application/json" : "application/javascript",
5436
- Accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
5437
- ...headers
5453
+ post_excel: (url, body, headers, serviceName) => instance.post(
5454
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
5455
+ body,
5456
+ {
5457
+ responseType: "arraybuffer",
5458
+ headers: {
5459
+ "Content-Type": typeof window !== "undefined" ? "application/json" : "application/javascript",
5460
+ Accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
5461
+ ...headers
5462
+ }
5438
5463
  }
5439
- }).then(responseBody),
5440
- put: (url, body, headers) => instance.put(
5441
- formatUrl(getBaseUrl(config?.baseUrl) + url, db),
5464
+ ).then(responseBody),
5465
+ put: (url, body, headers, serviceName) => instance.put(
5466
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
5442
5467
  body,
5443
- getHeaders(headers)
5468
+ headers
5444
5469
  ).then(responseBody),
5445
- patch: (url, body, headers) => instance.patch(
5446
- formatUrl(getBaseUrl(config?.baseUrl) + url, db),
5470
+ patch: (url, body, headers, serviceName) => instance.patch(
5471
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
5447
5472
  body,
5448
- getHeaders(headers)
5473
+ headers
5449
5474
  ).then(responseBody),
5450
- delete: (url, headers) => instance.delete(
5451
- formatUrl(getBaseUrl(config?.baseUrl) + url, db),
5452
- getHeaders(headers)
5475
+ delete: (url, headers, serviceName) => instance.delete(
5476
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
5477
+ headers
5453
5478
  ).then(responseBody)
5454
5479
  };
5455
5480
  return requests;
@@ -5483,7 +5508,7 @@ var EnvContext = createContext(null);
5483
5508
  function EnvProvider({
5484
5509
  children,
5485
5510
  localStorageUtils: localStorageUtil = localStorageUtils(),
5486
- sessionStorageUtils: sessionStorageUtil = sessionStorageUtils
5511
+ sessionStorageUtils: sessionStorageUtil = sessionStorageUtils()
5487
5512
  }) {
5488
5513
  const [env, setEnvState] = useState3({
5489
5514
  ...initialEnvState,
@@ -7359,6 +7384,54 @@ var useCheckPayment = () => {
7359
7384
  };
7360
7385
  var use_check_payment_default = useCheckPayment;
7361
7386
 
7387
+ // src/hooks/view/use-get-data-close-session.ts
7388
+ import { useMutation as useMutation65 } from "@tanstack/react-query";
7389
+ var useGetDataCloseSession = () => {
7390
+ const { getDataCloseSession } = useViewService();
7391
+ return useMutation65({
7392
+ mutationFn: ({
7393
+ model,
7394
+ ids,
7395
+ xNode,
7396
+ service
7397
+ }) => {
7398
+ return getDataCloseSession({
7399
+ model,
7400
+ ids,
7401
+ xNode,
7402
+ service
7403
+ });
7404
+ }
7405
+ });
7406
+ };
7407
+ var use_get_data_close_session_default = useGetDataCloseSession;
7408
+
7409
+ // src/hooks/view/use-get-detail-entity.ts
7410
+ import { useMutation as useMutation66 } from "@tanstack/react-query";
7411
+ var useGetDetailEntity = () => {
7412
+ const { getDetailEntity } = useViewService();
7413
+ return useMutation66({
7414
+ mutationFn: ({
7415
+ model,
7416
+ ids,
7417
+ method,
7418
+ xNode,
7419
+ service,
7420
+ kwargs
7421
+ }) => {
7422
+ return getDetailEntity({
7423
+ model,
7424
+ ids,
7425
+ method,
7426
+ xNode,
7427
+ service,
7428
+ kwargs
7429
+ });
7430
+ }
7431
+ });
7432
+ };
7433
+ var use_get_detail_entity_default = useGetDetailEntity;
7434
+
7362
7435
  // src/provider/service-provider.tsx
7363
7436
  import { jsx as jsx6 } from "react/jsx-runtime";
7364
7437
  var ServiceContext = createContext2(null);
@@ -7451,7 +7524,9 @@ var ServiceProvider = ({
7451
7524
  useGetOrderLine: use_get_order_line_default,
7452
7525
  useGetProductImage: use_get_product_image_default,
7453
7526
  useAddEntity: use_add_entity_default,
7454
- useCheckPayment: use_check_payment_default
7527
+ useCheckPayment: use_check_payment_default,
7528
+ useGetDataCloseSession: use_get_data_close_session_default,
7529
+ useGetDetailEntity: use_get_detail_entity_default
7455
7530
  };
7456
7531
  return /* @__PURE__ */ jsx6(ServiceContext.Provider, { value: services, children });
7457
7532
  };
@@ -408,6 +408,20 @@ declare function useViewService(): {
408
408
  service: string;
409
409
  xNode: string;
410
410
  }) => any;
411
+ getDataCloseSession: ({ model, ids, xNode, service, }: {
412
+ model: string;
413
+ ids: any;
414
+ service: string;
415
+ xNode: string;
416
+ }) => any;
417
+ getDetailEntity: ({ model, ids, method, xNode, service, kwargs, }: {
418
+ model: string;
419
+ ids: any;
420
+ method: string;
421
+ service: string;
422
+ xNode: string;
423
+ kwargs: any;
424
+ }) => any;
411
425
  };
412
426
 
413
427
  export { useActionService, useAuthService, useCompanyService, useExcelService, useFormService, useKanbanService, useModelService, useUserService, useViewService };
@@ -408,6 +408,20 @@ declare function useViewService(): {
408
408
  service: string;
409
409
  xNode: string;
410
410
  }) => any;
411
+ getDataCloseSession: ({ model, ids, xNode, service, }: {
412
+ model: string;
413
+ ids: any;
414
+ service: string;
415
+ xNode: string;
416
+ }) => any;
417
+ getDetailEntity: ({ model, ids, method, xNode, service, kwargs, }: {
418
+ model: string;
419
+ ids: any;
420
+ method: string;
421
+ service: string;
422
+ xNode: string;
423
+ kwargs: any;
424
+ }) => any;
411
425
  };
412
426
 
413
427
  export { useActionService, useAuthService, useCompanyService, useExcelService, useFormService, useKanbanService, useModelService, useUserService, useViewService };
package/dist/services.js CHANGED
@@ -3105,6 +3105,12 @@ var import_react_query85 = require("@tanstack/react-query");
3105
3105
  // src/hooks/view/use-check-payment.ts
3106
3106
  var import_react_query86 = require("@tanstack/react-query");
3107
3107
 
3108
+ // src/hooks/view/use-get-data-close-session.ts
3109
+ var import_react_query87 = require("@tanstack/react-query");
3110
+
3111
+ // src/hooks/view/use-get-detail-entity.ts
3112
+ var import_react_query88 = require("@tanstack/react-query");
3113
+
3108
3114
  // src/provider/service-provider.tsx
3109
3115
  var import_jsx_runtime6 = require("react/jsx-runtime");
3110
3116
  var ServiceContext = (0, import_react4.createContext)(null);
@@ -5365,6 +5371,61 @@ function useViewService() {
5365
5371
  },
5366
5372
  [env]
5367
5373
  );
5374
+ const getDataCloseSession = (0, import_react14.useCallback)(
5375
+ ({
5376
+ model,
5377
+ ids,
5378
+ xNode,
5379
+ service
5380
+ }) => {
5381
+ const jsonData = {
5382
+ model,
5383
+ ids,
5384
+ method: "get_closing_control_data" /* GET_CLOSING_CONTROL_DATA */
5385
+ };
5386
+ return env?.requests.post(
5387
+ "/call" /* CALL_PATH */,
5388
+ jsonData,
5389
+ {
5390
+ headers: {
5391
+ "Content-Type": "application/json",
5392
+ ...xNode ? { "X-Node": xNode } : {}
5393
+ }
5394
+ },
5395
+ service
5396
+ );
5397
+ },
5398
+ [env]
5399
+ );
5400
+ const getDetailEntity = (0, import_react14.useCallback)(
5401
+ ({
5402
+ model,
5403
+ ids,
5404
+ method,
5405
+ xNode,
5406
+ service,
5407
+ kwargs
5408
+ }) => {
5409
+ const jsonData = {
5410
+ model,
5411
+ ids,
5412
+ method,
5413
+ kwargs
5414
+ };
5415
+ return env?.requests.post(
5416
+ "/call" /* CALL_PATH */,
5417
+ jsonData,
5418
+ {
5419
+ headers: {
5420
+ "Content-Type": "application/json",
5421
+ ...xNode ? { "X-Node": xNode } : {}
5422
+ }
5423
+ },
5424
+ service
5425
+ );
5426
+ },
5427
+ [env]
5428
+ );
5368
5429
  return {
5369
5430
  getView,
5370
5431
  getMenu,
@@ -5396,7 +5457,9 @@ function useViewService() {
5396
5457
  getOrderLine,
5397
5458
  getProductImage,
5398
5459
  addEntity,
5399
- checkPayment
5460
+ checkPayment,
5461
+ getDataCloseSession,
5462
+ getDetailEntity
5400
5463
  };
5401
5464
  }
5402
5465
  // Annotate the CommonJS export names for ESM import in node:
package/dist/services.mjs CHANGED
@@ -3061,6 +3061,12 @@ import { useMutation as useMutation63 } from "@tanstack/react-query";
3061
3061
  // src/hooks/view/use-check-payment.ts
3062
3062
  import { useMutation as useMutation64 } from "@tanstack/react-query";
3063
3063
 
3064
+ // src/hooks/view/use-get-data-close-session.ts
3065
+ import { useMutation as useMutation65 } from "@tanstack/react-query";
3066
+
3067
+ // src/hooks/view/use-get-detail-entity.ts
3068
+ import { useMutation as useMutation66 } from "@tanstack/react-query";
3069
+
3064
3070
  // src/provider/service-provider.tsx
3065
3071
  import { jsx as jsx6 } from "react/jsx-runtime";
3066
3072
  var ServiceContext = createContext2(null);
@@ -5321,6 +5327,61 @@ function useViewService() {
5321
5327
  },
5322
5328
  [env]
5323
5329
  );
5330
+ const getDataCloseSession = useCallback10(
5331
+ ({
5332
+ model,
5333
+ ids,
5334
+ xNode,
5335
+ service
5336
+ }) => {
5337
+ const jsonData = {
5338
+ model,
5339
+ ids,
5340
+ method: "get_closing_control_data" /* GET_CLOSING_CONTROL_DATA */
5341
+ };
5342
+ return env?.requests.post(
5343
+ "/call" /* CALL_PATH */,
5344
+ jsonData,
5345
+ {
5346
+ headers: {
5347
+ "Content-Type": "application/json",
5348
+ ...xNode ? { "X-Node": xNode } : {}
5349
+ }
5350
+ },
5351
+ service
5352
+ );
5353
+ },
5354
+ [env]
5355
+ );
5356
+ const getDetailEntity = useCallback10(
5357
+ ({
5358
+ model,
5359
+ ids,
5360
+ method,
5361
+ xNode,
5362
+ service,
5363
+ kwargs
5364
+ }) => {
5365
+ const jsonData = {
5366
+ model,
5367
+ ids,
5368
+ method,
5369
+ kwargs
5370
+ };
5371
+ return env?.requests.post(
5372
+ "/call" /* CALL_PATH */,
5373
+ jsonData,
5374
+ {
5375
+ headers: {
5376
+ "Content-Type": "application/json",
5377
+ ...xNode ? { "X-Node": xNode } : {}
5378
+ }
5379
+ },
5380
+ service
5381
+ );
5382
+ },
5383
+ [env]
5384
+ );
5324
5385
  return {
5325
5386
  getView,
5326
5387
  getMenu,
@@ -5352,7 +5413,9 @@ function useViewService() {
5352
5413
  getOrderLine,
5353
5414
  getProductImage,
5354
5415
  addEntity,
5355
- checkPayment
5416
+ checkPayment,
5417
+ getDataCloseSession,
5418
+ getDetailEntity
5356
5419
  };
5357
5420
  }
5358
5421
  export {
@@ -7,4 +7,9 @@ declare const localStorageUtils: () => {
7
7
  };
8
8
  type LocalStorageUtilsType = ReturnType<typeof localStorageUtils>;
9
9
 
10
- export type { LocalStorageUtilsType as L };
10
+ declare const sessionStorageUtils: () => {
11
+ getBrowserSession: () => Promise<string | null>;
12
+ };
13
+ type SessionStorageUtilsType = ReturnType<typeof sessionStorageUtils>;
14
+
15
+ export type { LocalStorageUtilsType as L, SessionStorageUtilsType as S };
@@ -7,4 +7,9 @@ declare const localStorageUtils: () => {
7
7
  };
8
8
  type LocalStorageUtilsType = ReturnType<typeof localStorageUtils>;
9
9
 
10
- export type { LocalStorageUtilsType as L };
10
+ declare const sessionStorageUtils: () => {
11
+ getBrowserSession: () => Promise<string | null>;
12
+ };
13
+ type SessionStorageUtilsType = ReturnType<typeof sessionStorageUtils>;
14
+
15
+ export type { LocalStorageUtilsType as L, SessionStorageUtilsType as S };
package/dist/utils.d.mts CHANGED
@@ -1,17 +1,3 @@
1
- declare const sessionStorageUtils: {
2
- getMenuFocus: () => IMenu;
3
- setMenuFocus: (menuTree: IMenu) => void;
4
- setActionData: (actData: any) => void;
5
- getActionData: () => any | null;
6
- getViewData: () => any | null;
7
- setViewData: (viewData: any) => void;
8
- getBrowserSession: () => string | null;
9
- };
10
- interface IMenu {
11
- id: number | undefined;
12
- service: string;
13
- }
14
-
15
1
  declare class WesapError extends Error {
16
2
  code: number;
17
3
  constructor(message: string, code: number);
@@ -105,4 +91,4 @@ declare const useField: (props: any) => {
105
91
  nameField: string | null;
106
92
  };
107
93
 
108
- export { WesapError, checkIsImageLink, convertFloatToTime, convertTimeToFloat, copyTextToClipboard, domainHelper, evalJSONContext, evalJSONDomain, filterFieldDirty, formatCurrency, formatDate, formatFileSize, formatSortingString, formatUrlPath, getFieldsOnChange, getOffSet, getSubdomain, handleError, isBase64File, isBase64Image, isObjectEmpty, mergeObjects, removeUndefinedFields, resequence, sessionStorageUtils, stringToColor, toQueryString, updateTokenParamInOriginalRequest, useField, useTabModel, validateAndParseDate };
94
+ export { WesapError, checkIsImageLink, convertFloatToTime, convertTimeToFloat, copyTextToClipboard, domainHelper, evalJSONContext, evalJSONDomain, filterFieldDirty, formatCurrency, formatDate, formatFileSize, formatSortingString, formatUrlPath, getFieldsOnChange, getOffSet, getSubdomain, handleError, isBase64File, isBase64Image, isObjectEmpty, mergeObjects, removeUndefinedFields, resequence, stringToColor, toQueryString, updateTokenParamInOriginalRequest, useField, useTabModel, validateAndParseDate };
package/dist/utils.d.ts CHANGED
@@ -1,17 +1,3 @@
1
- declare const sessionStorageUtils: {
2
- getMenuFocus: () => IMenu;
3
- setMenuFocus: (menuTree: IMenu) => void;
4
- setActionData: (actData: any) => void;
5
- getActionData: () => any | null;
6
- getViewData: () => any | null;
7
- setViewData: (viewData: any) => void;
8
- getBrowserSession: () => string | null;
9
- };
10
- interface IMenu {
11
- id: number | undefined;
12
- service: string;
13
- }
14
-
15
1
  declare class WesapError extends Error {
16
2
  code: number;
17
3
  constructor(message: string, code: number);
@@ -105,4 +91,4 @@ declare const useField: (props: any) => {
105
91
  nameField: string | null;
106
92
  };
107
93
 
108
- export { WesapError, checkIsImageLink, convertFloatToTime, convertTimeToFloat, copyTextToClipboard, domainHelper, evalJSONContext, evalJSONDomain, filterFieldDirty, formatCurrency, formatDate, formatFileSize, formatSortingString, formatUrlPath, getFieldsOnChange, getOffSet, getSubdomain, handleError, isBase64File, isBase64Image, isObjectEmpty, mergeObjects, removeUndefinedFields, resequence, sessionStorageUtils, stringToColor, toQueryString, updateTokenParamInOriginalRequest, useField, useTabModel, validateAndParseDate };
94
+ export { WesapError, checkIsImageLink, convertFloatToTime, convertTimeToFloat, copyTextToClipboard, domainHelper, evalJSONContext, evalJSONDomain, filterFieldDirty, formatCurrency, formatDate, formatFileSize, formatSortingString, formatUrlPath, getFieldsOnChange, getOffSet, getSubdomain, handleError, isBase64File, isBase64Image, isObjectEmpty, mergeObjects, removeUndefinedFields, resequence, stringToColor, toQueryString, updateTokenParamInOriginalRequest, useField, useTabModel, validateAndParseDate };