@erpsquad/common 1.9.98 → 1.9.99
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/chunks/{actionCreator-DmP63jZz.esm.js → actionCreator-C-u8gtV-.esm.js} +2 -2
- package/dist/chunks/{actionCreator-DmP63jZz.esm.js.map → actionCreator-C-u8gtV-.esm.js.map} +1 -1
- package/dist/chunks/{actionCreator-DwRQnQNP.js → actionCreator-DSrKE0hh.js} +2 -2
- package/dist/chunks/{actionCreator-DwRQnQNP.js.map → actionCreator-DSrKE0hh.js.map} +1 -1
- package/dist/chunks/{android-12-switch-C3WlgdKQ.esm.js → android-12-switch-DSBIf4t0.esm.js} +39 -33
- package/dist/chunks/android-12-switch-DSBIf4t0.esm.js.map +1 -0
- package/dist/chunks/{android-12-switch-CVH-tc4s.js → android-12-switch-DvCF0gyx.js} +39 -33
- package/dist/chunks/android-12-switch-DvCF0gyx.js.map +1 -0
- package/dist/chunks/{apiHelper-DSbRnRC1.js → apiHelper-5tNsUtSY.js} +12 -9
- package/dist/chunks/apiHelper-5tNsUtSY.js.map +1 -0
- package/dist/chunks/{apiHelper-DOCeCGD-.esm.js → apiHelper-Cv_qWaYo.esm.js} +12 -9
- package/dist/chunks/apiHelper-Cv_qWaYo.esm.js.map +1 -0
- package/dist/chunks/{appbar-CrH_SjSo.esm.js → appbar-DM2iBqb4.esm.js} +4 -4
- package/dist/chunks/{appbar-CrH_SjSo.esm.js.map → appbar-DM2iBqb4.esm.js.map} +1 -1
- package/dist/chunks/{appbar-D6bWAv8x.js → appbar-rfkAYQdQ.js} +4 -4
- package/dist/chunks/{appbar-D6bWAv8x.js.map → appbar-rfkAYQdQ.js.map} +1 -1
- package/dist/chunks/{common-QvMCr1xx.js → common-6VUrYJDq.js} +10 -1
- package/dist/chunks/{common-QvMCr1xx.js.map → common-6VUrYJDq.js.map} +1 -1
- package/dist/chunks/{common-B-nmtH5r.esm.js → common-B6euWODJ.esm.js} +10 -1
- package/dist/chunks/{common-B-nmtH5r.esm.js.map → common-B6euWODJ.esm.js.map} +1 -1
- package/dist/chunks/{custom-editor-BvMlZ1Oc.js → custom-editor-DIQqk_yI.js} +2 -2
- package/dist/chunks/{custom-editor-BvMlZ1Oc.js.map → custom-editor-DIQqk_yI.js.map} +1 -1
- package/dist/chunks/{custom-editor-OrxKsIQY.esm.js → custom-editor-DnfTs5-j.esm.js} +2 -2
- package/dist/chunks/{custom-editor-OrxKsIQY.esm.js.map → custom-editor-DnfTs5-j.esm.js.map} +1 -1
- package/dist/chunks/{default-data-D1f8nbl6.esm.js → default-data-BV_r59U9.esm.js} +12 -12
- package/dist/chunks/{default-data-D1f8nbl6.esm.js.map → default-data-BV_r59U9.esm.js.map} +1 -1
- package/dist/chunks/{default-data-9-BQ_0wq.js → default-data-DQ7VPUoj.js} +12 -12
- package/dist/chunks/{default-data-9-BQ_0wq.js.map → default-data-DQ7VPUoj.js.map} +1 -1
- package/dist/chunks/{form-builder-conversion-Var45CEx.esm.js → form-builder-conversion-BdWASNEo.esm.js} +2 -2
- package/dist/chunks/{form-builder-conversion-Var45CEx.esm.js.map → form-builder-conversion-BdWASNEo.esm.js.map} +1 -1
- package/dist/chunks/{form-builder-conversion-nTpiw7Q2.js → form-builder-conversion-D69EGO5g.js} +2 -2
- package/dist/chunks/{form-builder-conversion-nTpiw7Q2.js.map → form-builder-conversion-D69EGO5g.js.map} +1 -1
- package/dist/chunks/{form-builder-deconversion-BjiEAt-i.esm.js → form-builder-deconversion-CUwBfP4C.esm.js} +3 -3
- package/dist/chunks/{form-builder-deconversion-BjiEAt-i.esm.js.map → form-builder-deconversion-CUwBfP4C.esm.js.map} +1 -1
- package/dist/chunks/{form-builder-deconversion-CFTqjOTb.js → form-builder-deconversion-v5GvXDZ9.js} +3 -3
- package/dist/chunks/{form-builder-deconversion-CFTqjOTb.js.map → form-builder-deconversion-v5GvXDZ9.js.map} +1 -1
- package/dist/chunks/{fullScreen-DSPrY2tY.esm.js → fullScreen-BO0UA3Zr.esm.js} +2 -2
- package/dist/chunks/{fullScreen-DSPrY2tY.esm.js.map → fullScreen-BO0UA3Zr.esm.js.map} +1 -1
- package/dist/chunks/{fullScreen-BtbOZq50.js → fullScreen-Bfrr-bT2.js} +2 -2
- package/dist/chunks/{fullScreen-BtbOZq50.js.map → fullScreen-Bfrr-bT2.js.map} +1 -1
- package/dist/chunks/{languageContext-s_EUKz_A.js → languageContext-BP7EvzMv.js} +3 -3
- package/dist/chunks/{languageContext-s_EUKz_A.js.map → languageContext-BP7EvzMv.js.map} +1 -1
- package/dist/chunks/{languageContext-CbCRCTbP.esm.js → languageContext-DM_LTp53.esm.js} +3 -3
- package/dist/chunks/{languageContext-CbCRCTbP.esm.js.map → languageContext-DM_LTp53.esm.js.map} +1 -1
- package/dist/chunks/{migration-utils-Bn35YUJM.esm.js → migration-utils-D9TSOBR0.esm.js} +2 -2
- package/dist/chunks/{migration-utils-Bn35YUJM.esm.js.map → migration-utils-D9TSOBR0.esm.js.map} +1 -1
- package/dist/chunks/{migration-utils-CmzV1tw3.js → migration-utils-DwLXzWtr.js} +2 -2
- package/dist/chunks/{migration-utils-CmzV1tw3.js.map → migration-utils-DwLXzWtr.js.map} +1 -1
- package/dist/chunks/{page-context-DATjzley.esm.js → page-context-B_wK6kLR.esm.js} +3 -3
- package/dist/chunks/{page-context-DATjzley.esm.js.map → page-context-B_wK6kLR.esm.js.map} +1 -1
- package/dist/chunks/{page-context-BKgBvHxw.js → page-context-h7LEMAG0.js} +3 -3
- package/dist/chunks/{page-context-BKgBvHxw.js.map → page-context-h7LEMAG0.js.map} +1 -1
- package/dist/chunks/{reducer-Gajha1Kz.esm.js → reducer-Bpuo5eq1.esm.js} +2 -2
- package/dist/chunks/{reducer-Gajha1Kz.esm.js.map → reducer-Bpuo5eq1.esm.js.map} +1 -1
- package/dist/chunks/{reducer-DGvVphqy.js → reducer-t-U331ho.js} +2 -2
- package/dist/chunks/{reducer-DGvVphqy.js.map → reducer-t-U331ho.js.map} +1 -1
- package/dist/chunks/{shareSlice-Cn2PGA6m.js → shareSlice-Br9IsR9k.js} +2 -2
- package/dist/chunks/{shareSlice-Cn2PGA6m.js.map → shareSlice-Br9IsR9k.js.map} +1 -1
- package/dist/chunks/{shareSlice-DGme6jBu.esm.js → shareSlice-CbG_VJcW.esm.js} +2 -2
- package/dist/chunks/{shareSlice-DGme6jBu.esm.js.map → shareSlice-CbG_VJcW.esm.js.map} +1 -1
- package/dist/chunks/{sidebar-D2Q9rQrz.js → sidebar-C2zkLZyA.js} +4 -4
- package/dist/chunks/{sidebar-D2Q9rQrz.js.map → sidebar-C2zkLZyA.js.map} +1 -1
- package/dist/chunks/{sidebar-gl6ML9FB.esm.js → sidebar-l49eLo8p.esm.js} +4 -4
- package/dist/chunks/{sidebar-gl6ML9FB.esm.js.map → sidebar-l49eLo8p.esm.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-57BCIH9V.esm.js → sidebarScreen-BQN2N8jx.esm.js} +5 -5
- package/dist/chunks/{sidebarScreen-57BCIH9V.esm.js.map → sidebarScreen-BQN2N8jx.esm.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-CnsblLHN.js → sidebarScreen-PoYXto7E.js} +5 -5
- package/dist/chunks/{sidebarScreen-CnsblLHN.js.map → sidebarScreen-PoYXto7E.js.map} +1 -1
- package/dist/chunks/{store-DEoLcgbp.js → store-BdrUnJ3G.js} +3 -3
- package/dist/chunks/{store-DEoLcgbp.js.map → store-BdrUnJ3G.js.map} +1 -1
- package/dist/chunks/{store-zDGOGRDm.esm.js → store-ksRZPIIc.esm.js} +3 -3
- package/dist/chunks/{store-zDGOGRDm.esm.js.map → store-ksRZPIIc.esm.js.map} +1 -1
- package/dist/chunks/{translations-BVvsrCTo.js → translations-1vp9srMj.js} +2 -2
- package/dist/chunks/{translations-BVvsrCTo.js.map → translations-1vp9srMj.js.map} +1 -1
- package/dist/chunks/{translations-DJFxXzIm.esm.js → translations-B5t-KZNN.esm.js} +2 -2
- package/dist/chunks/{translations-DJFxXzIm.esm.js.map → translations-B5t-KZNN.esm.js.map} +1 -1
- package/dist/chunks/{uom-field-wrapper-CzXOP8fb.esm.js → uom-field-wrapper-Ckop1JTE.esm.js} +13 -13
- package/dist/chunks/{uom-field-wrapper-CzXOP8fb.esm.js.map → uom-field-wrapper-Ckop1JTE.esm.js.map} +1 -1
- package/dist/chunks/{uom-field-wrapper-CjqCwlbR.js → uom-field-wrapper-l8HA79k1.js} +13 -13
- package/dist/chunks/{uom-field-wrapper-CjqCwlbR.js.map → uom-field-wrapper-l8HA79k1.js.map} +1 -1
- package/dist/chunks/{useAccountSetting-nBdUAbgS.esm.js → useAccountSetting-D6Hhq1Pz.esm.js} +3 -3
- package/dist/chunks/{useAccountSetting-nBdUAbgS.esm.js.map → useAccountSetting-D6Hhq1Pz.esm.js.map} +1 -1
- package/dist/chunks/{useAccountSetting-ChWinjqQ.js → useAccountSetting-ngzko7sX.js} +3 -3
- package/dist/chunks/{useAccountSetting-ChWinjqQ.js.map → useAccountSetting-ngzko7sX.js.map} +1 -1
- package/dist/chunks/{useAuth-BhsPEB2T.js → useAuth-HvZ6U960.js} +2 -2
- package/dist/chunks/{useAuth-BhsPEB2T.js.map → useAuth-HvZ6U960.js.map} +1 -1
- package/dist/chunks/{useAuth-C4WcddEE.esm.js → useAuth-Tfx2guEJ.esm.js} +2 -2
- package/dist/chunks/{useAuth-C4WcddEE.esm.js.map → useAuth-Tfx2guEJ.esm.js.map} +1 -1
- package/dist/chunks/{useLangauge-Bie5anLS.esm.js → useLangauge-BU_fP3ZM.esm.js} +2 -2
- package/dist/chunks/{useLangauge-Bie5anLS.esm.js.map → useLangauge-BU_fP3ZM.esm.js.map} +1 -1
- package/dist/chunks/{useLangauge-BtG3kyRv.js → useLangauge-DwsR1jcv.js} +2 -2
- package/dist/chunks/{useLangauge-BtG3kyRv.js.map → useLangauge-DwsR1jcv.js.map} +1 -1
- package/dist/chunks/{useReduxIntegration-D6MZKdkS.js → useReduxIntegration-JMVTp0lq.js} +4 -4
- package/dist/chunks/{useReduxIntegration-D6MZKdkS.js.map → useReduxIntegration-JMVTp0lq.js.map} +1 -1
- package/dist/chunks/{useReduxIntegration--sS2yQ4F.esm.js → useReduxIntegration-VgWJGErE.esm.js} +4 -4
- package/dist/chunks/{useReduxIntegration--sS2yQ4F.esm.js.map → useReduxIntegration-VgWJGErE.esm.js.map} +1 -1
- package/dist/components/index.esm.js +9 -9
- package/dist/components/index.js +9 -9
- package/dist/contexts/index.esm.js +3 -3
- package/dist/contexts/index.js +3 -3
- package/dist/hooks/index.esm.js +5 -5
- package/dist/hooks/index.js +5 -5
- package/dist/index.esm.js +24 -24
- package/dist/index.js +24 -24
- package/dist/layout/index.esm.js +2 -2
- package/dist/layout/index.js +2 -2
- package/dist/redux/index.esm.js +4 -4
- package/dist/redux/index.js +4 -4
- package/dist/src/utils/api.d.ts +10 -0
- package/dist/utils/api.d.ts +10 -0
- package/dist/utils/index.esm.js +7 -7
- package/dist/utils/index.js +6 -6
- package/dist/views/index.esm.js +8 -8
- package/dist/views/index.js +7 -7
- package/package.json +1 -1
- package/dist/chunks/android-12-switch-C3WlgdKQ.esm.js.map +0 -1
- package/dist/chunks/android-12-switch-CVH-tc4s.js.map +0 -1
- package/dist/chunks/apiHelper-DOCeCGD-.esm.js.map +0 -1
- package/dist/chunks/apiHelper-DSbRnRC1.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as postV1Parties, n as getV1WarehouseLocation, o as getV1Currency, q as getV1InventoryItems } from "./api-BAbF3OU7.esm.js";
|
|
2
|
-
import { ar as getToken } from "./common-
|
|
2
|
+
import { ar as getToken } from "./common-B6euWODJ.esm.js";
|
|
3
3
|
import { createAsyncThunk } from "@reduxjs/toolkit";
|
|
4
4
|
import _ from "lodash";
|
|
5
5
|
const createParties = createAsyncThunk(
|
|
@@ -76,4 +76,4 @@ export {
|
|
|
76
76
|
getOptions as d,
|
|
77
77
|
getCurrency as g
|
|
78
78
|
};
|
|
79
|
-
//# sourceMappingURL=actionCreator-
|
|
79
|
+
//# sourceMappingURL=actionCreator-C-u8gtV-.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionCreator-
|
|
1
|
+
{"version":3,"file":"actionCreator-C-u8gtV-.esm.js","sources":["../../src/redux/actionCreator.ts"],"sourcesContent":["import { getV1Currency, postV1Parties } from \"@/api-client/api.accounting/api\";\nimport { getV1InventoryItems, getV1WarehouseLocation } from \"@/api-client/api.inventory/api\";\nimport { LabelKeyFunction } from \"@/types\";\nimport { getToken } from \"@/utils\";\nimport { createAsyncThunk } from \"@reduxjs/toolkit\";\nimport _ from \"lodash\";\n\n// Stub implementation for Redux actions - consuming applications should provide their own implementation\nexport const createParties = createAsyncThunk(\n \"parties/create\",\n async (payload: any) => {\n const response = await postV1Parties({\n ...payload,\n ...getToken(),\n });\n return response;\n }\n);\nexport const getOptions = async (\n apiFunc: any,\n filters: any,\n dataKey: string,\n labelKey: string | LabelKeyFunction,\n valueKey?: any\n) => {\n const response = await apiFunc({\n ...filters,\n ...getToken(),\n });\n\n const options: any[] =\n response?.data?.[dataKey]?.map((d) => ({\n ...d,\n label: labelKey instanceof Function ? labelKey(d) : _.get(d, labelKey),\n value: valueKey ? _.get(d, valueKey, d.id) : d.id,\n })) || [];\n return options;\n};\n\nexport const getLocation = createAsyncThunk(\n \"location/fetch\",\n async (filter: any) => {\n const locationFilter = {\n ...filter,\n };\n const response = await getOptions(\n getV1WarehouseLocation,\n locationFilter,\n \"warehouseLocationList\",\n \"name\"\n );\n return response;\n }\n);\n\nexport const getItems = createAsyncThunk(\"item/fetch\", async (filter: any) => {\n const itemFilter = {\n ...filter,\n order: \"name:1\",\n // select:\"[id,name,type,unit_of_measurement,default_tax_id,vendor_informatio]\"\n };\n const response = await getOptions(\n getV1InventoryItems,\n itemFilter,\n \"inventoryItemsList\",\n \"name\"\n );\n return response;\n});\n\nexport const getCurrency = createAsyncThunk(\n \"currency/fetch\",\n async (filter: any) => {\n const currencyFiter = {\n ...filter,\n };\n const response = await getOptions(\n getV1Currency,\n currencyFiter,\n \"currencies\",\n \"currency_name\"\n );\n return response;\n }\n);"],"names":[],"mappings":";;;;AAQO,MAAM,gBAAgB;AAAA,EAC3B;AAAA,EACA,OAAO,YAAiB;AACtB,UAAM,WAAW,MAAM,cAAc;AAAA,MACnC,GAAG;AAAA,MACH,GAAG,SAAA;AAAA,IAAS,CACb;AACD,WAAO;AAAA,EACT;AACF;AACO,MAAM,aAAa,OACxB,SACA,SACA,SACA,UACA,aACG;;AACH,QAAM,WAAW,MAAM,QAAQ;AAAA,IAC7B,GAAG;AAAA,IACH,GAAG,SAAA;AAAA,EAAS,CACb;AAED,QAAM,YACJ,gDAAU,SAAV,mBAAiB,aAAjB,mBAA2B,IAAI,CAAC,OAAO;AAAA,IACrC,GAAG;AAAA,IACH,OAAO,oBAAoB,WAAW,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,QAAQ;AAAA,IACrE,OAAO,WAAW,EAAE,IAAI,GAAG,UAAU,EAAE,EAAE,IAAI,EAAE;AAAA,EAAA,QAC1C,CAAA;AACT,SAAO;AACT;AAEO,MAAM,cAAc;AAAA,EACzB;AAAA,EACA,OAAO,WAAgB;AACrB,UAAM,iBAAiB;AAAA,MACrB,GAAG;AAAA,IAAA;AAEL,UAAM,WAAW,MAAM;AAAA,MACrB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAEF,WAAO;AAAA,EACT;AACF;AAEO,MAAM,WAAW,iBAAiB,cAAc,OAAO,WAAgB;AAC5E,QAAM,aAAa;AAAA,IACjB,GAAG;AAAA,IACH,OAAO;AAAA;AAAA,EAAA;AAGT,QAAM,WAAW,MAAM;AAAA,IACrB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAEF,SAAO;AACT,CAAC;AAEM,MAAM,cAAc;AAAA,EACzB;AAAA,EACA,OAAO,WAAgB;AACrB,UAAM,gBAAgB;AAAA,MACpB,GAAG;AAAA,IAAA;AAEL,UAAM,WAAW,MAAM;AAAA,MACrB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAEF,WAAO;AAAA,EACT;AACF;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const api = require("./api-DJMpbRRM.js");
|
|
3
|
-
const common = require("./common-
|
|
3
|
+
const common = require("./common-6VUrYJDq.js");
|
|
4
4
|
const toolkit = require("@reduxjs/toolkit");
|
|
5
5
|
const _ = require("lodash");
|
|
6
6
|
const createParties = toolkit.createAsyncThunk(
|
|
@@ -75,4 +75,4 @@ exports.getCurrency = getCurrency;
|
|
|
75
75
|
exports.getItems = getItems;
|
|
76
76
|
exports.getLocation = getLocation;
|
|
77
77
|
exports.getOptions = getOptions;
|
|
78
|
-
//# sourceMappingURL=actionCreator-
|
|
78
|
+
//# sourceMappingURL=actionCreator-DSrKE0hh.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionCreator-
|
|
1
|
+
{"version":3,"file":"actionCreator-DSrKE0hh.js","sources":["../../src/redux/actionCreator.ts"],"sourcesContent":["import { getV1Currency, postV1Parties } from \"@/api-client/api.accounting/api\";\nimport { getV1InventoryItems, getV1WarehouseLocation } from \"@/api-client/api.inventory/api\";\nimport { LabelKeyFunction } from \"@/types\";\nimport { getToken } from \"@/utils\";\nimport { createAsyncThunk } from \"@reduxjs/toolkit\";\nimport _ from \"lodash\";\n\n// Stub implementation for Redux actions - consuming applications should provide their own implementation\nexport const createParties = createAsyncThunk(\n \"parties/create\",\n async (payload: any) => {\n const response = await postV1Parties({\n ...payload,\n ...getToken(),\n });\n return response;\n }\n);\nexport const getOptions = async (\n apiFunc: any,\n filters: any,\n dataKey: string,\n labelKey: string | LabelKeyFunction,\n valueKey?: any\n) => {\n const response = await apiFunc({\n ...filters,\n ...getToken(),\n });\n\n const options: any[] =\n response?.data?.[dataKey]?.map((d) => ({\n ...d,\n label: labelKey instanceof Function ? labelKey(d) : _.get(d, labelKey),\n value: valueKey ? _.get(d, valueKey, d.id) : d.id,\n })) || [];\n return options;\n};\n\nexport const getLocation = createAsyncThunk(\n \"location/fetch\",\n async (filter: any) => {\n const locationFilter = {\n ...filter,\n };\n const response = await getOptions(\n getV1WarehouseLocation,\n locationFilter,\n \"warehouseLocationList\",\n \"name\"\n );\n return response;\n }\n);\n\nexport const getItems = createAsyncThunk(\"item/fetch\", async (filter: any) => {\n const itemFilter = {\n ...filter,\n order: \"name:1\",\n // select:\"[id,name,type,unit_of_measurement,default_tax_id,vendor_informatio]\"\n };\n const response = await getOptions(\n getV1InventoryItems,\n itemFilter,\n \"inventoryItemsList\",\n \"name\"\n );\n return response;\n});\n\nexport const getCurrency = createAsyncThunk(\n \"currency/fetch\",\n async (filter: any) => {\n const currencyFiter = {\n ...filter,\n };\n const response = await getOptions(\n getV1Currency,\n currencyFiter,\n \"currencies\",\n \"currency_name\"\n );\n return response;\n }\n);"],"names":["createAsyncThunk","postV1Parties","getToken","getV1WarehouseLocation","getV1InventoryItems","getV1Currency"],"mappings":";;;;;AAQO,MAAM,gBAAgBA,QAAAA;AAAAA,EAC3B;AAAA,EACA,OAAO,YAAiB;AACtB,UAAM,WAAW,MAAMC,kBAAc;AAAA,MACnC,GAAG;AAAA,MACH,GAAGC,OAAAA,SAAA;AAAA,IAAS,CACb;AACD,WAAO;AAAA,EACT;AACF;AACO,MAAM,aAAa,OACxB,SACA,SACA,SACA,UACA,aACG;;AACH,QAAM,WAAW,MAAM,QAAQ;AAAA,IAC7B,GAAG;AAAA,IACH,GAAGA,OAAAA,SAAA;AAAA,EAAS,CACb;AAED,QAAM,YACJ,gDAAU,SAAV,mBAAiB,aAAjB,mBAA2B,IAAI,CAAC,OAAO;AAAA,IACrC,GAAG;AAAA,IACH,OAAO,oBAAoB,WAAW,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,QAAQ;AAAA,IACrE,OAAO,WAAW,EAAE,IAAI,GAAG,UAAU,EAAE,EAAE,IAAI,EAAE;AAAA,EAAA,QAC1C,CAAA;AACT,SAAO;AACT;AAEO,MAAM,cAAcF,QAAAA;AAAAA,EACzB;AAAA,EACA,OAAO,WAAgB;AACrB,UAAM,iBAAiB;AAAA,MACrB,GAAG;AAAA,IAAA;AAEL,UAAM,WAAW,MAAM;AAAA,MACrBG,IAAAA;AAAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAEF,WAAO;AAAA,EACT;AACF;AAEO,MAAM,WAAWH,QAAAA,iBAAiB,cAAc,OAAO,WAAgB;AAC5E,QAAM,aAAa;AAAA,IACjB,GAAG;AAAA,IACH,OAAO;AAAA;AAAA,EAAA;AAGT,QAAM,WAAW,MAAM;AAAA,IACrBI,IAAAA;AAAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAEF,SAAO;AACT,CAAC;AAEM,MAAM,cAAcJ,QAAAA;AAAAA,EACzB;AAAA,EACA,OAAO,WAAgB;AACrB,UAAM,gBAAgB;AAAA,MACpB,GAAG;AAAA,IAAA;AAEL,UAAM,WAAW,MAAM;AAAA,MACrBK,IAAAA;AAAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAEF,WAAO;AAAA,EACT;AACF;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from "./jsx-runtime-ClFauRgV.esm.js";
|
|
2
2
|
import { k as interopRequireDefaultExports, y as internal_processStyles, e as _objectWithoutPropertiesLoose, v as styled$2, _ as _extends, j as capitalize, b as createTheme, m as isPlainObject, i as internal_serializeStyles, q as styleFunctionSx, z as resolveProps, A as formatMuiErrorMessage, B as clamp, P as PropTypes, D as handleBreakpoints, E as resolveBreakpointValues, F as createUnarySpacing, l as deepmerge, H as mergeBreakpointsInOrder, g as generateUtilityClass, I as getValue, d as defaultTheme$1, T as THEME_ID, u as useDefaultProps, f as alpha_1, w as lighten_1, x as darken_1 } from "./identifier-u4E_J1of.esm.js";
|
|
3
|
-
import { y as default_1$9, B as Button$1, M as Modal, c as Select$1, S as SearchBar, E as Typography$1, _ as _inheritsLoose, W as forceReflow, i as Transition, X as classNamesShape, u as useTheme$4, Y as useSlotProps, Q as IconButton$1, P as Paper, Z as Fade, s as Modal$1, $ as Backdrop, a0 as Portal, V as refType, p as HTMLElementType, o as chainPropTypes, a1 as Grow, a2 as FocusTrap, h as ButtonBase, z as List, v as ListItem, a3 as TransitionGroup, a4 as isHostComponent, k as elementTypeAcceptingRef, N as Menu$1, m as getReactElementRef, I as resolveComponentProps, G as o, q as useRtl, O as MenuItem$1, a5 as MenuList, a6 as Divider$1, T as TextField$1, e as Tooltip$1, F as default_1$b, x as default_1$c, C as ConfirmPopUp, D as DynamicInput, d as Toast, n as elementAcceptingRef, a7 as exactProp, f as Box$1, b as Avatar } from "./appbar-
|
|
4
|
-
import { r as requireCreateSvgIcon, d as useEnhancedEffect, T as Typography, i as default_1$a, t as useId, l as ownerDocument, e as useForkRef, k as useEventCallback, q as useControlled, v as unsupportedProp, o as ownerWindow, h as debounce$1, p as isMuiElement, u as useAuth } from "./useAuth-
|
|
3
|
+
import { y as default_1$9, B as Button$1, M as Modal, c as Select$1, S as SearchBar, E as Typography$1, _ as _inheritsLoose, W as forceReflow, i as Transition, X as classNamesShape, u as useTheme$4, Y as useSlotProps, Q as IconButton$1, P as Paper, Z as Fade, s as Modal$1, $ as Backdrop, a0 as Portal, V as refType, p as HTMLElementType, o as chainPropTypes, a1 as Grow, a2 as FocusTrap, h as ButtonBase, z as List, v as ListItem, a3 as TransitionGroup, a4 as isHostComponent, k as elementTypeAcceptingRef, N as Menu$1, m as getReactElementRef, I as resolveComponentProps, G as o, q as useRtl, O as MenuItem$1, a5 as MenuList, a6 as Divider$1, T as TextField$1, e as Tooltip$1, F as default_1$b, x as default_1$c, C as ConfirmPopUp, D as DynamicInput, d as Toast, n as elementAcceptingRef, a7 as exactProp, f as Box$1, b as Avatar } from "./appbar-DM2iBqb4.esm.js";
|
|
4
|
+
import { r as requireCreateSvgIcon, d as useEnhancedEffect, T as Typography, i as default_1$a, t as useId, l as ownerDocument, e as useForkRef, k as useEventCallback, q as useControlled, v as unsupportedProp, o as ownerWindow, h as debounce$1, p as isMuiElement, u as useAuth } from "./useAuth-Tfx2guEJ.esm.js";
|
|
5
5
|
import { AccordionSummary, AccordionDetails, styled as styled$1, Accordion as Accordion$1, useTheme as useTheme$3, useMediaQuery as useMediaQuery$1, DialogTitle, IconButton, Tabs as Tabs$1, Tab as Tab$1, MenuItem, DialogActions as DialogActions$1, Box, Checkbox as Checkbox$1, Radio as Radio$1, RadioGroup, FormControlLabel, Tooltip, Divider, CircularProgress, OutlinedInput as OutlinedInput$1, InputAdornment as InputAdornment$1, ListItemIcon, ListItemText, Grid, DialogContent as DialogContent$1, Stack as Stack$1, Select as Select$2, Autocomplete, Menu as Menu$3, Alert as Alert$1, FormControl as FormControl$1, FormHelperText as FormHelperText$1, Chip as Chip$2, Dialog as Dialog$1, Grow as Grow$1, Breadcrumbs, TextField as TextField$2, List as List$1, ListItem as ListItem$1, ListItemAvatar, Switch as Switch$1 } from "@mui/material";
|
|
6
6
|
import { useDrag, useDrop } from "react-dnd";
|
|
7
7
|
/* empty css */
|
|
@@ -12,17 +12,17 @@ import { Controller, useWatch, useFormContext, useForm, FormProvider } from "rea
|
|
|
12
12
|
/* empty css */
|
|
13
13
|
import { useTranslation } from "react-i18next";
|
|
14
14
|
import { h as getDisplayName, e as extendSxProp, a as clsx, b as composeClasses, s as styled$3, g as generateUtilityClasses, c as createSvgIcon, i as require$$1, r as rootShouldForwardProp, f as reactIsExports, j as slotShouldForwardProp } from "./notification-Dr_nE2Dc.esm.js";
|
|
15
|
-
import { C as Chip$1, M as Menu$2, t as transformTableColumns, f as formBuilderDeConversion } from "./form-builder-deconversion-
|
|
15
|
+
import { C as Chip$1, M as Menu$2, t as transformTableColumns, f as formBuilderDeConversion } from "./form-builder-deconversion-CUwBfP4C.esm.js";
|
|
16
16
|
import * as Yup from "yup";
|
|
17
17
|
import dayjs from "dayjs";
|
|
18
|
-
import { aU as formatText, A as fetchApi, a8 as getErrorMessage, aO as toFixedWithNumbers, ac as getFileName, M as formatAmount, Q as formatDate, W as formatLabel, S as SECTION_TYPES, aL as skuGenerator, aT as fetchOptions, ar as getToken, aZ as postV1Designation, a_ as postV1DepartmentsTeams, a$ as postV1Departments, a1 as generateFields, a2 as generateQueryString, aE as postImportSheet, ai as getOperatorLabel, a9 as getExcelExportTemplate, am as getPdfExportTemplate, aa as getExcelTemplateGenerateTemplate, a3 as generateRandomId } from "./common-
|
|
18
|
+
import { aU as formatText, A as fetchApi, a8 as getErrorMessage, aO as toFixedWithNumbers, ac as getFileName, M as formatAmount, Q as formatDate, W as formatLabel, S as SECTION_TYPES, aL as skuGenerator, aT as fetchOptions, ar as getToken, aZ as postV1Designation, a_ as postV1DepartmentsTeams, a$ as postV1Departments, a1 as generateFields, a2 as generateQueryString, aE as postImportSheet, ai as getOperatorLabel, a9 as getExcelExportTemplate, am as getPdfExportTemplate, aa as getExcelTemplateGenerateTemplate, a3 as generateRandomId } from "./common-B6euWODJ.esm.js";
|
|
19
19
|
import _, { sortBy, debounce as debounce$2, flatMap } from "lodash";
|
|
20
20
|
import { Add as Add$1, Close, Upload, KeyboardArrowUp, KeyboardArrowDown as KeyboardArrowDown$1, Cancel, Share, Save as Save$1 } from "@mui/icons-material";
|
|
21
|
-
import { f as usePages, b as useDeepMemo, u as useAccountingSetting, d as useLocationFilter } from "./useAccountSetting-
|
|
21
|
+
import { a as useApi, f as usePages, b as useDeepMemo, u as useAccountingSetting, d as useLocationFilter } from "./useAccountSetting-D6Hhq1Pz.esm.js";
|
|
22
22
|
import { v as viewTypes } from "./action-bar-BsXTcYpL.esm.js";
|
|
23
23
|
import { QueryBuilder } from "react-querybuilder";
|
|
24
24
|
import { QueryBuilderMaterial } from "@react-querybuilder/material";
|
|
25
|
-
import { u as useLanguage } from "./useLangauge-
|
|
25
|
+
import { u as useLanguage } from "./useLangauge-BU_fP3ZM.esm.js";
|
|
26
26
|
import { T as Trash, C as CheckBoxIcon, q as RecgtangleIcon, F as FilledCircle, B as BlankCircle, M as MoreIcon, S as Save, e as Close$1, b as ArrowUpDown, E as Edit, j as FolderSave, a as ArrowDownTwo, s as Filter$1, i as FilterRemove, h as Export, D as DocumentDownload, k as Import } from "./trash-jodcm4T5.esm.js";
|
|
27
27
|
import { bh as postV1JournalTypes, bi as postV1SourceTypes, bj as postV1PartiesIndustry, bk as postV1CategoryItems, bl as postV1Brand, bm as postV1InventoryFixedAssetItems, p as postV1Parties, bn as postV1WarehouseLocation, bo as getV1FilterFilterTable, bp as deleteV1FilterId, bq as putV1FilterId, z as getV1FilterResource, br as postV1Filter } from "./api-BAbF3OU7.esm.js";
|
|
28
28
|
import { a as auth } from "./api-config-GOys-syK.esm.js";
|
|
@@ -31,10 +31,10 @@ import { aZ as routeToResourceMap } from "./route-page-map-C4wM0M4A.esm.js";
|
|
|
31
31
|
import { useNavigate, useLocation, Link } from "react-router-dom";
|
|
32
32
|
import { u as useAppDispatch, a as useAppSelector } from "./hooks-Cj9Yhy-E.esm.js";
|
|
33
33
|
import { useDropzone } from "react-dropzone";
|
|
34
|
-
import { i as initialFilter, d as defaultPageState } from "./page-context-
|
|
34
|
+
import { i as initialFilter, d as defaultPageState } from "./page-context-B_wK6kLR.esm.js";
|
|
35
35
|
import { S as Search } from "./tick-CRp4S9uN.esm.js";
|
|
36
36
|
import { useDispatch, useSelector } from "react-redux";
|
|
37
|
-
import { b as setSharedPage, v as getAllUserAndDepartmentDropdown, p as pinToDashboardList, y as sharePage } from "./reducer-
|
|
37
|
+
import { b as setSharedPage, v as getAllUserAndDepartmentDropdown, p as pinToDashboardList, y as sharePage } from "./reducer-Bpuo5eq1.esm.js";
|
|
38
38
|
import ReactPhoneInput from "react-phone-input-2";
|
|
39
39
|
import { useMaterialReactTable, MaterialReactTable } from "material-react-table";
|
|
40
40
|
import { u as useTheme$1, a as useTheme$2, G as GlobalStyles } from "./CssBaseline-qnbPrAjr.esm.js";
|
|
@@ -44,7 +44,7 @@ import { P as PathnameDocument } from "./modules-D5_hDIg9.esm.js";
|
|
|
44
44
|
import { f as PathnameRental, b as PathnameCrm, e as PathnamePurchase, d as PathnameManufacturing, c as PathnameInventory, a as PathnameAccounting } from "./pathname.rental-VYOFVGX6.esm.js";
|
|
45
45
|
import { a as PathnameUsers } from "./pathname.hrms-C5ojsho0.esm.js";
|
|
46
46
|
import parsePhoneNumberFromString from "libphonenumber-js";
|
|
47
|
-
import { c as createParties } from "./actionCreator-
|
|
47
|
+
import { c as createParties } from "./actionCreator-C-u8gtV-.esm.js";
|
|
48
48
|
let cachedType;
|
|
49
49
|
function detectScrollType() {
|
|
50
50
|
if (cachedType) {
|
|
@@ -19590,6 +19590,7 @@ const DynamicSearchSelect = React__default.memo((props) => {
|
|
|
19590
19590
|
control: props.formControl,
|
|
19591
19591
|
name: `${props.fieldArrayName}.${props.name}`
|
|
19592
19592
|
});
|
|
19593
|
+
const { callApi } = useApi();
|
|
19593
19594
|
const formContext = useFormContext();
|
|
19594
19595
|
const { setValue: contextSetValue } = formContext || {};
|
|
19595
19596
|
const mfeFallbackSetValue = useCallback((fieldPath, value) => {
|
|
@@ -19881,31 +19882,36 @@ const DynamicSearchSelect = React__default.memo((props) => {
|
|
|
19881
19882
|
console.error("Add configuration is not properly set");
|
|
19882
19883
|
return;
|
|
19883
19884
|
}
|
|
19884
|
-
|
|
19885
|
-
|
|
19886
|
-
|
|
19887
|
-
|
|
19888
|
-
|
|
19889
|
-
|
|
19890
|
-
|
|
19891
|
-
|
|
19892
|
-
|
|
19893
|
-
|
|
19894
|
-
|
|
19895
|
-
|
|
19896
|
-
|
|
19897
|
-
|
|
19898
|
-
}
|
|
19899
|
-
if (result && result.data) {
|
|
19900
|
-
const newValue = props.is_multiselect ? [...watchedValue || [], result.data.id] : result.data.id;
|
|
19901
|
-
if (setValue) {
|
|
19902
|
-
setValue(`${props.fieldArrayName}.${props.name}`, newValue);
|
|
19885
|
+
callApi({
|
|
19886
|
+
apiFunc: () => addConfig.api(payload),
|
|
19887
|
+
loadingState: setIsAddLoading,
|
|
19888
|
+
onSuccess: async (result) => {
|
|
19889
|
+
setIsModalOpen(false);
|
|
19890
|
+
if (!isInternalOptions) {
|
|
19891
|
+
setPagination({
|
|
19892
|
+
page: 1,
|
|
19893
|
+
hasMore: true,
|
|
19894
|
+
isLoadingMore: false,
|
|
19895
|
+
total: 0
|
|
19896
|
+
});
|
|
19897
|
+
setIsAlreadyLoaded(false);
|
|
19898
|
+
await fetchOptions2("", cf, 1, false);
|
|
19903
19899
|
}
|
|
19900
|
+
if (result && result.data) {
|
|
19901
|
+
const newValue = props.is_multiselect ? [...watchedValue || [], result.data.id] : result.data.id;
|
|
19902
|
+
props.setValue(props.name, newValue);
|
|
19903
|
+
if (getSelectedData) {
|
|
19904
|
+
getSelectedData(result.data, props.name, true);
|
|
19905
|
+
}
|
|
19906
|
+
if (typeof props.onChange === "function") {
|
|
19907
|
+
props.onChange(newValue);
|
|
19908
|
+
}
|
|
19909
|
+
}
|
|
19910
|
+
},
|
|
19911
|
+
onError: () => {
|
|
19912
|
+
setIsAddLoading(false);
|
|
19904
19913
|
}
|
|
19905
|
-
}
|
|
19906
|
-
console.log("error", error);
|
|
19907
|
-
setIsAddLoading(false);
|
|
19908
|
-
}
|
|
19914
|
+
});
|
|
19909
19915
|
}, [addConfig, isInternalOptions, fetchOptions2, cf, props.is_multiselect, props.fieldArrayName, props.name, watchedValue, setValue]);
|
|
19910
19916
|
useEffect(() => {
|
|
19911
19917
|
if (handleOptions) {
|
|
@@ -40718,4 +40724,4 @@ export {
|
|
|
40718
40724
|
DynamicTagsInput as y,
|
|
40719
40725
|
DynamicTime as z
|
|
40720
40726
|
};
|
|
40721
|
-
//# sourceMappingURL=android-12-switch-
|
|
40727
|
+
//# sourceMappingURL=android-12-switch-DSBIf4t0.esm.js.map
|