@erpsquad/common 1.10.8-test → 1.10.9-test
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/{ai-summary-D9QajB4_.js → ai-summary-4NVNEHfi.js} +2 -2
- package/dist/chunks/{ai-summary-D9QajB4_.js.map → ai-summary-4NVNEHfi.js.map} +1 -1
- package/dist/chunks/{ai-summary-FqAUpafL.esm.js → ai-summary-f8clWLbW.esm.js} +65 -44
- package/dist/chunks/{ai-summary-FqAUpafL.esm.js.map → ai-summary-f8clWLbW.esm.js.map} +1 -1
- package/dist/chunks/{android-12-switch-BVabRCje.esm.js → android-12-switch-BUbQYnRQ.esm.js} +53 -35
- package/dist/chunks/{android-12-switch-BVabRCje.esm.js.map → android-12-switch-BUbQYnRQ.esm.js.map} +1 -1
- package/dist/chunks/android-12-switch-CphTHRb8.js +2 -0
- package/dist/chunks/{android-12-switch-DMaoWQwq.js.map → android-12-switch-CphTHRb8.js.map} +1 -1
- package/dist/chunks/{appbar-6Ucw59ku.js → appbar-C6Es9HGk.js} +2 -2
- package/dist/chunks/{appbar-6Ucw59ku.js.map → appbar-C6Es9HGk.js.map} +1 -1
- package/dist/chunks/{appbar-mDf1LZ0u.esm.js → appbar-CKrHdx9n.esm.js} +2 -2
- package/dist/chunks/{appbar-mDf1LZ0u.esm.js.map → appbar-CKrHdx9n.esm.js.map} +1 -1
- package/dist/chunks/{default-data-CwLgBvlI.esm.js → default-data-BsZWgQGR.esm.js} +3 -3
- package/dist/chunks/{default-data-CwLgBvlI.esm.js.map → default-data-BsZWgQGR.esm.js.map} +1 -1
- package/dist/chunks/{default-data-D2cqOmp4.js → default-data-Dsjlvwev.js} +2 -2
- package/dist/chunks/{default-data-D2cqOmp4.js.map → default-data-Dsjlvwev.js.map} +1 -1
- package/dist/chunks/{fullScreen-VlXxoepU.js → fullScreen-BBpaDn-A.js} +2 -2
- package/dist/chunks/{fullScreen-VlXxoepU.js.map → fullScreen-BBpaDn-A.js.map} +1 -1
- package/dist/chunks/{fullScreen-B9d2_kak.esm.js → fullScreen-Dn-3Tkwm.esm.js} +2 -2
- package/dist/chunks/{fullScreen-B9d2_kak.esm.js.map → fullScreen-Dn-3Tkwm.esm.js.map} +1 -1
- package/dist/chunks/index-B9CFxEZ9.js +2 -0
- package/dist/chunks/index-B9CFxEZ9.js.map +1 -0
- package/dist/chunks/{index-iPYNYnNP.esm.js → index-wf5q5BST.esm.js} +73 -66
- package/dist/chunks/{index-iPYNYnNP.esm.js.map → index-wf5q5BST.esm.js.map} +1 -1
- package/dist/chunks/{migration-utils-TYitNMC7.js → migration-utils-9IXhe_fj.js} +2 -2
- package/dist/chunks/{migration-utils-TYitNMC7.js.map → migration-utils-9IXhe_fj.js.map} +1 -1
- package/dist/chunks/{migration-utils-BRjncD-b.esm.js → migration-utils-DGoEzQUj.esm.js} +2 -2
- package/dist/chunks/{migration-utils-BRjncD-b.esm.js.map → migration-utils-DGoEzQUj.esm.js.map} +1 -1
- package/dist/chunks/{sidebar-DJREtRnK.js → sidebar-B3SExDRU.js} +2 -2
- package/dist/chunks/{sidebar-DJREtRnK.js.map → sidebar-B3SExDRU.js.map} +1 -1
- package/dist/chunks/{sidebar-D_3INLNa.esm.js → sidebar-n9Y25HU-.esm.js} +2 -2
- package/dist/chunks/{sidebar-D_3INLNa.esm.js.map → sidebar-n9Y25HU-.esm.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-CUf5Onkp.js → sidebarScreen-Dxb_e58p.js} +2 -2
- package/dist/chunks/{sidebarScreen-CUf5Onkp.js.map → sidebarScreen-Dxb_e58p.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-CLjYZOzQ.esm.js → sidebarScreen-_Zt2pSOx.esm.js} +3 -3
- package/dist/chunks/{sidebarScreen-CLjYZOzQ.esm.js.map → sidebarScreen-_Zt2pSOx.esm.js.map} +1 -1
- package/dist/components/index.esm.js +121 -103
- package/dist/components/index.js +1 -1
- package/dist/index.esm.js +218 -200
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/layout/index.esm.js +2 -2
- package/dist/layout/index.js +1 -1
- package/dist/src/components/index.d.ts +18 -1
- package/dist/utils/index.esm.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/views/index.esm.js +5 -5
- package/dist/views/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/android-12-switch-DMaoWQwq.js +0 -2
- package/dist/chunks/index-BQ2NBHDS.js +0 -2
- package/dist/chunks/index-BQ2NBHDS.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { P as PropTypes } from "./index-
|
|
3
|
-
import { B as Button, M as Modal, c as Select, S as SearchBar, o, T as TextField, e as Tooltip$1, C as ConfirmPopUp, D as DynamicInput, d as Toast, b as Avatar } from "./appbar-
|
|
2
|
+
import { P as PropTypes } from "./index-wf5q5BST.esm.js";
|
|
3
|
+
import { B as Button, M as Modal, c as Select, S as SearchBar, o, T as TextField, e as Tooltip$1, C as ConfirmPopUp, D as DynamicInput, d as Toast, b as Avatar } from "./appbar-CKrHdx9n.esm.js";
|
|
4
4
|
import Close from "@mui/icons-material/Close";
|
|
5
5
|
import { AccordionSummary, AccordionDetails, styled, Accordion as Accordion$1, useTheme, useMediaQuery, DialogTitle, IconButton, Tabs, Tab, MenuItem, DialogActions, Box, Checkbox as Checkbox$1, Radio as Radio$1, RadioGroup, FormControlLabel, Tooltip, Divider, CircularProgress, OutlinedInput, InputAdornment, ListItemIcon, ListItemText, Grid, DialogContent, Stack, Select as Select$1, Autocomplete, Menu as Menu$1, Alert as Alert$1, FormControl, FormHelperText, Chip as Chip$1, Dialog, Grow as Grow$1, Breadcrumbs, TextField as TextField$1, List, ListItem, ListItemAvatar, Switch as Switch$1 } from "@mui/material";
|
|
6
6
|
import { useDrag, useDrop } from "react-dnd";
|
|
@@ -1128,6 +1128,20 @@ const processPartiesPayload = (payload) => {
|
|
|
1128
1128
|
contacts: contactPayload2
|
|
1129
1129
|
};
|
|
1130
1130
|
};
|
|
1131
|
+
const generateValidationSchema = () => {
|
|
1132
|
+
return o(
|
|
1133
|
+
Yup.object().shape({
|
|
1134
|
+
[PARTIES_FORM_ARRAY_NAME]: Yup.object().shape({
|
|
1135
|
+
[PARTIES_FIELDS.FIRST_NAME]: Yup.string().required("First name is required"),
|
|
1136
|
+
[PARTIES_FIELDS.LAST_NAME]: Yup.string().required("Last name is required"),
|
|
1137
|
+
[PARTIES_FIELDS.COMPANY]: Yup.mixed().required("Company is required"),
|
|
1138
|
+
[PARTIES_FIELDS.CURRENCY]: Yup.array().required("Currency is required"),
|
|
1139
|
+
[PARTIES_FIELDS.ADDRESS]: Yup.array().required("Please add atleast one address").min(1, "Please add atleast one address"),
|
|
1140
|
+
[PARTIES_FIELDS.CONTACTS]: Yup.array().required("Please add atleast one Contact").min(1, "Please add atleast one Contact")
|
|
1141
|
+
})
|
|
1142
|
+
})
|
|
1143
|
+
);
|
|
1144
|
+
};
|
|
1131
1145
|
const generateValidationSchema1 = () => {
|
|
1132
1146
|
return o(
|
|
1133
1147
|
Yup.object().shape({
|
|
@@ -3181,7 +3195,7 @@ const MaterialTable = React__default.memo(({
|
|
|
3181
3195
|
}
|
|
3182
3196
|
return vld;
|
|
3183
3197
|
};
|
|
3184
|
-
const
|
|
3198
|
+
const generateValidationSchema2 = (columns2) => {
|
|
3185
3199
|
const schema = {};
|
|
3186
3200
|
columns2.forEach((clm) => {
|
|
3187
3201
|
var _a, _b, _c;
|
|
@@ -3197,7 +3211,7 @@ const MaterialTable = React__default.memo(({
|
|
|
3197
3211
|
};
|
|
3198
3212
|
useEffect(() => {
|
|
3199
3213
|
setTableColumns(columns);
|
|
3200
|
-
const schema =
|
|
3214
|
+
const schema = generateValidationSchema2(columns);
|
|
3201
3215
|
setValidationSchema(Yup.object().shape(schema));
|
|
3202
3216
|
}, [columns]);
|
|
3203
3217
|
useEffect(() => {
|
|
@@ -7319,7 +7333,7 @@ const FormParser = ({
|
|
|
7319
7333
|
}
|
|
7320
7334
|
return schema2;
|
|
7321
7335
|
};
|
|
7322
|
-
const
|
|
7336
|
+
const generateValidationSchema2 = (data2) => {
|
|
7323
7337
|
const yupSchemaObject = {};
|
|
7324
7338
|
let nestedFielvalidations = {}, nestedYupSchemaObj = {};
|
|
7325
7339
|
data2 && (data2 == null ? void 0 : data2.forEach((field) => {
|
|
@@ -7357,7 +7371,7 @@ const FormParser = ({
|
|
|
7357
7371
|
...rest
|
|
7358
7372
|
} = useForm({
|
|
7359
7373
|
...defaultValues2 && typeof defaultValues2 === "object" ? { defaultValues: defaultValues2 } : {},
|
|
7360
|
-
resolver: o(
|
|
7374
|
+
resolver: o(generateValidationSchema2(data)),
|
|
7361
7375
|
mode: "all"
|
|
7362
7376
|
});
|
|
7363
7377
|
const watchedValues = useWatch({
|
|
@@ -13214,7 +13228,7 @@ const Android12Switch = styled(Switch$1)(({ theme }) => ({
|
|
|
13214
13228
|
}
|
|
13215
13229
|
}));
|
|
13216
13230
|
export {
|
|
13217
|
-
|
|
13231
|
+
ModuleTile as $,
|
|
13218
13232
|
Accordion as A,
|
|
13219
13233
|
BreadCrumb as B,
|
|
13220
13234
|
Checkbox as C,
|
|
@@ -13237,34 +13251,38 @@ export {
|
|
|
13237
13251
|
HeaderCard as T,
|
|
13238
13252
|
InfoCard as U,
|
|
13239
13253
|
ValueEditor as V,
|
|
13240
|
-
|
|
13241
|
-
|
|
13242
|
-
|
|
13243
|
-
|
|
13244
|
-
|
|
13254
|
+
JournalTypeAddModal as W,
|
|
13255
|
+
Loader as X,
|
|
13256
|
+
LocationSearchSelect as Y,
|
|
13257
|
+
MaterialTable as Z,
|
|
13258
|
+
ModalLoader as _,
|
|
13245
13259
|
ActionBar as a,
|
|
13246
|
-
|
|
13247
|
-
|
|
13248
|
-
|
|
13249
|
-
|
|
13250
|
-
|
|
13251
|
-
|
|
13252
|
-
|
|
13253
|
-
|
|
13254
|
-
|
|
13255
|
-
|
|
13256
|
-
|
|
13257
|
-
|
|
13258
|
-
|
|
13259
|
-
|
|
13260
|
-
|
|
13261
|
-
|
|
13262
|
-
|
|
13263
|
-
|
|
13264
|
-
|
|
13265
|
-
|
|
13266
|
-
|
|
13267
|
-
|
|
13260
|
+
PageAction as a0,
|
|
13261
|
+
PageNavigator as a1,
|
|
13262
|
+
Pagination as a2,
|
|
13263
|
+
CustomerVendorModal as a3,
|
|
13264
|
+
PhoneInput as a4,
|
|
13265
|
+
Radio as a5,
|
|
13266
|
+
SaveFilterModal as a6,
|
|
13267
|
+
SearchableSelect as a7,
|
|
13268
|
+
SharePopUp as a8,
|
|
13269
|
+
SharedPageModal as a9,
|
|
13270
|
+
SharedPageView as aa,
|
|
13271
|
+
SourceTypeAddModal as ab,
|
|
13272
|
+
TabBar as ac,
|
|
13273
|
+
TeamAddModal as ad,
|
|
13274
|
+
TimePicker as ae,
|
|
13275
|
+
TitleDropdownButton as af,
|
|
13276
|
+
Toggle as ag,
|
|
13277
|
+
ToggleSwitch as ah,
|
|
13278
|
+
UploadExcel as ai,
|
|
13279
|
+
UploadMedia as aj,
|
|
13280
|
+
ViewModal as ak,
|
|
13281
|
+
createApiThunk as al,
|
|
13282
|
+
dynamicSelectAdd as am,
|
|
13283
|
+
generateValidationSchema as an,
|
|
13284
|
+
generateValidationSchema1 as ao,
|
|
13285
|
+
userRoles as ap,
|
|
13268
13286
|
AddPage as b,
|
|
13269
13287
|
AddPageModal as c,
|
|
13270
13288
|
Alert as d,
|
|
@@ -13291,4 +13309,4 @@ export {
|
|
|
13291
13309
|
DynamicTagsInput as y,
|
|
13292
13310
|
DynamicTime as z
|
|
13293
13311
|
};
|
|
13294
|
-
//# sourceMappingURL=android-12-switch-
|
|
13312
|
+
//# sourceMappingURL=android-12-switch-BUbQYnRQ.esm.js.map
|