@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.
Files changed (52) hide show
  1. package/dist/chunks/{ai-summary-D9QajB4_.js → ai-summary-4NVNEHfi.js} +2 -2
  2. package/dist/chunks/{ai-summary-D9QajB4_.js.map → ai-summary-4NVNEHfi.js.map} +1 -1
  3. package/dist/chunks/{ai-summary-FqAUpafL.esm.js → ai-summary-f8clWLbW.esm.js} +65 -44
  4. package/dist/chunks/{ai-summary-FqAUpafL.esm.js.map → ai-summary-f8clWLbW.esm.js.map} +1 -1
  5. package/dist/chunks/{android-12-switch-BVabRCje.esm.js → android-12-switch-BUbQYnRQ.esm.js} +53 -35
  6. package/dist/chunks/{android-12-switch-BVabRCje.esm.js.map → android-12-switch-BUbQYnRQ.esm.js.map} +1 -1
  7. package/dist/chunks/android-12-switch-CphTHRb8.js +2 -0
  8. package/dist/chunks/{android-12-switch-DMaoWQwq.js.map → android-12-switch-CphTHRb8.js.map} +1 -1
  9. package/dist/chunks/{appbar-6Ucw59ku.js → appbar-C6Es9HGk.js} +2 -2
  10. package/dist/chunks/{appbar-6Ucw59ku.js.map → appbar-C6Es9HGk.js.map} +1 -1
  11. package/dist/chunks/{appbar-mDf1LZ0u.esm.js → appbar-CKrHdx9n.esm.js} +2 -2
  12. package/dist/chunks/{appbar-mDf1LZ0u.esm.js.map → appbar-CKrHdx9n.esm.js.map} +1 -1
  13. package/dist/chunks/{default-data-CwLgBvlI.esm.js → default-data-BsZWgQGR.esm.js} +3 -3
  14. package/dist/chunks/{default-data-CwLgBvlI.esm.js.map → default-data-BsZWgQGR.esm.js.map} +1 -1
  15. package/dist/chunks/{default-data-D2cqOmp4.js → default-data-Dsjlvwev.js} +2 -2
  16. package/dist/chunks/{default-data-D2cqOmp4.js.map → default-data-Dsjlvwev.js.map} +1 -1
  17. package/dist/chunks/{fullScreen-VlXxoepU.js → fullScreen-BBpaDn-A.js} +2 -2
  18. package/dist/chunks/{fullScreen-VlXxoepU.js.map → fullScreen-BBpaDn-A.js.map} +1 -1
  19. package/dist/chunks/{fullScreen-B9d2_kak.esm.js → fullScreen-Dn-3Tkwm.esm.js} +2 -2
  20. package/dist/chunks/{fullScreen-B9d2_kak.esm.js.map → fullScreen-Dn-3Tkwm.esm.js.map} +1 -1
  21. package/dist/chunks/index-B9CFxEZ9.js +2 -0
  22. package/dist/chunks/index-B9CFxEZ9.js.map +1 -0
  23. package/dist/chunks/{index-iPYNYnNP.esm.js → index-wf5q5BST.esm.js} +73 -66
  24. package/dist/chunks/{index-iPYNYnNP.esm.js.map → index-wf5q5BST.esm.js.map} +1 -1
  25. package/dist/chunks/{migration-utils-TYitNMC7.js → migration-utils-9IXhe_fj.js} +2 -2
  26. package/dist/chunks/{migration-utils-TYitNMC7.js.map → migration-utils-9IXhe_fj.js.map} +1 -1
  27. package/dist/chunks/{migration-utils-BRjncD-b.esm.js → migration-utils-DGoEzQUj.esm.js} +2 -2
  28. package/dist/chunks/{migration-utils-BRjncD-b.esm.js.map → migration-utils-DGoEzQUj.esm.js.map} +1 -1
  29. package/dist/chunks/{sidebar-DJREtRnK.js → sidebar-B3SExDRU.js} +2 -2
  30. package/dist/chunks/{sidebar-DJREtRnK.js.map → sidebar-B3SExDRU.js.map} +1 -1
  31. package/dist/chunks/{sidebar-D_3INLNa.esm.js → sidebar-n9Y25HU-.esm.js} +2 -2
  32. package/dist/chunks/{sidebar-D_3INLNa.esm.js.map → sidebar-n9Y25HU-.esm.js.map} +1 -1
  33. package/dist/chunks/{sidebarScreen-CUf5Onkp.js → sidebarScreen-Dxb_e58p.js} +2 -2
  34. package/dist/chunks/{sidebarScreen-CUf5Onkp.js.map → sidebarScreen-Dxb_e58p.js.map} +1 -1
  35. package/dist/chunks/{sidebarScreen-CLjYZOzQ.esm.js → sidebarScreen-_Zt2pSOx.esm.js} +3 -3
  36. package/dist/chunks/{sidebarScreen-CLjYZOzQ.esm.js.map → sidebarScreen-_Zt2pSOx.esm.js.map} +1 -1
  37. package/dist/components/index.esm.js +121 -103
  38. package/dist/components/index.js +1 -1
  39. package/dist/index.esm.js +218 -200
  40. package/dist/index.js +1 -1
  41. package/dist/index.js.map +1 -1
  42. package/dist/layout/index.esm.js +2 -2
  43. package/dist/layout/index.js +1 -1
  44. package/dist/src/components/index.d.ts +18 -1
  45. package/dist/utils/index.esm.js +1 -1
  46. package/dist/utils/index.js +1 -1
  47. package/dist/views/index.esm.js +5 -5
  48. package/dist/views/index.js +1 -1
  49. package/package.json +1 -1
  50. package/dist/chunks/android-12-switch-DMaoWQwq.js +0 -2
  51. package/dist/chunks/index-BQ2NBHDS.js +0 -2
  52. 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-iPYNYnNP.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-mDf1LZ0u.esm.js";
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 generateValidationSchema = (columns2) => {
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 = generateValidationSchema(columns);
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 generateValidationSchema = (data2) => {
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(generateValidationSchema(data)),
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
- PageAction as $,
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
- Loader as W,
13241
- LocationSearchSelect as X,
13242
- MaterialTable as Y,
13243
- ModalLoader as Z,
13244
- ModuleTile as _,
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
- PageNavigator as a0,
13247
- Pagination as a1,
13248
- CustomerVendorModal as a2,
13249
- PhoneInput as a3,
13250
- Radio as a4,
13251
- SaveFilterModal as a5,
13252
- SearchableSelect as a6,
13253
- SharePopUp as a7,
13254
- SharedPageModal as a8,
13255
- SharedPageView as a9,
13256
- SourceTypeAddModal as aa,
13257
- TabBar as ab,
13258
- TimePicker as ac,
13259
- TitleDropdownButton as ad,
13260
- Toggle as ae,
13261
- ToggleSwitch as af,
13262
- UploadExcel as ag,
13263
- UploadMedia as ah,
13264
- ViewModal as ai,
13265
- createApiThunk as aj,
13266
- dynamicSelectAdd as ak,
13267
- userRoles as al,
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-BVabRCje.esm.js.map
13312
+ //# sourceMappingURL=android-12-switch-BUbQYnRQ.esm.js.map