aq-fe-framework 0.1.83 → 0.1.84

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.
@@ -49,8 +49,14 @@ function utils_date_formatToDateTimeStartEnd(startDate, endDate) {
49
49
 
50
50
  // src/utils/utils_excel.ts
51
51
  import saveAs from "file-saver";
52
+ function isObjectPath(path) {
53
+ return /^[a-zA-Z_$][a-zA-Z0-9_$]*(\.[a-zA-Z_$][a-zA-Z0-9_$]*)+$/.test(path);
54
+ }
52
55
  function getValueByPath(obj, path) {
53
- return path.split(".").reduce((acc, key) => acc == null ? void 0 : acc[key], obj);
56
+ if (isObjectPath(path)) {
57
+ return path.split(".").reduce((acc, key) => acc == null ? void 0 : acc[key], obj);
58
+ }
59
+ return obj == null ? void 0 : obj[path];
54
60
  }
55
61
  async function utils_excel_exportExcel({
56
62
  workbook,
@@ -9,7 +9,7 @@ import {
9
9
  utils_file_fileToAQDocumentType,
10
10
  utils_notification_show,
11
11
  utils_pdf_download
12
- } from "./chunk-BNC4S63Y.mjs";
12
+ } from "./chunk-EEQENBXZ.mjs";
13
13
  import {
14
14
  __objRest,
15
15
  __spreadProps,
@@ -62,9 +62,9 @@ import {
62
62
  useHeaderMegaMenuStore,
63
63
  useS_ButtonImport,
64
64
  utils_layout_getItemsWithoutLinks
65
- } from "../chunk-WITBUG5F.mjs";
65
+ } from "../chunk-MLFJD56W.mjs";
66
66
  import "../chunk-AL73DX37.mjs";
67
- import "../chunk-BNC4S63Y.mjs";
67
+ import "../chunk-EEQENBXZ.mjs";
68
68
  import "../chunk-FWCSY2DS.mjs";
69
69
  export {
70
70
  AQButtonCreateByImportFile,
@@ -57,9 +57,9 @@ import {
57
57
  useS_authenticate,
58
58
  useS_core83092,
59
59
  utils_core83092_mergePage
60
- } from "../chunk-WITBUG5F.mjs";
60
+ } from "../chunk-MLFJD56W.mjs";
61
61
  import "../chunk-AL73DX37.mjs";
62
- import "../chunk-BNC4S63Y.mjs";
62
+ import "../chunk-EEQENBXZ.mjs";
63
63
  import "../chunk-FWCSY2DS.mjs";
64
64
  export {
65
65
  F_authenticate_Login,
@@ -15,7 +15,7 @@ import {
15
15
  utils_pdf_download,
16
16
  utils_time_convertTimeStringToSeconds,
17
17
  utils_time_getCurrentTimeString
18
- } from "../chunk-BNC4S63Y.mjs";
18
+ } from "../chunk-EEQENBXZ.mjs";
19
19
  import "../chunk-FWCSY2DS.mjs";
20
20
  export {
21
21
  U0DateToDDMMYYYString,
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "types": "./dist/modules-features/index.d.mts"
19
19
  }
20
20
  },
21
- "version": "0.1.83",
21
+ "version": "0.1.84",
22
22
  "private": false,
23
23
  "files": [
24
24
  "dist"