@erpsquad/common 1.10.64 → 1.10.65

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 (44) hide show
  1. package/dist/chunks/{android-12-switch-CQqq1bod.js → android-12-switch-BP2CP-ah.js} +43 -7
  2. package/dist/chunks/android-12-switch-BP2CP-ah.js.map +1 -0
  3. package/dist/chunks/{android-12-switch-DMpKRS49.esm.js → android-12-switch-CrpXnQsd.esm.js} +43 -7
  4. package/dist/chunks/android-12-switch-CrpXnQsd.esm.js.map +1 -0
  5. package/dist/chunks/{appbar-GvhMl2LR.js → appbar-Bb4MdbyO.js} +6 -6
  6. package/dist/chunks/{appbar-GvhMl2LR.js.map → appbar-Bb4MdbyO.js.map} +1 -1
  7. package/dist/chunks/{appbar-BPTUcuZH.esm.js → appbar-CHxm7L_f.esm.js} +6 -6
  8. package/dist/chunks/{appbar-BPTUcuZH.esm.js.map → appbar-CHxm7L_f.esm.js.map} +1 -1
  9. package/dist/chunks/{default-data-c7qJW0S-.esm.js → default-data-7fDwUquk.esm.js} +3 -3
  10. package/dist/chunks/{default-data-c7qJW0S-.esm.js.map → default-data-7fDwUquk.esm.js.map} +1 -1
  11. package/dist/chunks/{default-data-C3gd1olF.js → default-data-WODnnwD5.js} +3 -3
  12. package/dist/chunks/{default-data-C3gd1olF.js.map → default-data-WODnnwD5.js.map} +1 -1
  13. package/dist/chunks/{fullScreen-BvWfY0hb.js → fullScreen-BJR97bsP.js} +2 -2
  14. package/dist/chunks/{fullScreen-BvWfY0hb.js.map → fullScreen-BJR97bsP.js.map} +1 -1
  15. package/dist/chunks/{fullScreen-CEK_HZnP.esm.js → fullScreen-uN74Cs7z.esm.js} +2 -2
  16. package/dist/chunks/{fullScreen-CEK_HZnP.esm.js.map → fullScreen-uN74Cs7z.esm.js.map} +1 -1
  17. package/dist/chunks/{sidebar-PQ4JubXM.esm.js → sidebar-C_fhINvI.esm.js} +2 -2
  18. package/dist/chunks/{sidebar-PQ4JubXM.esm.js.map → sidebar-C_fhINvI.esm.js.map} +1 -1
  19. package/dist/chunks/{sidebar-C3G058lH.js → sidebar-Df3O8Xw6.js} +2 -2
  20. package/dist/chunks/{sidebar-C3G058lH.js.map → sidebar-Df3O8Xw6.js.map} +1 -1
  21. package/dist/chunks/{sidebarScreen-fIj--OhC.js → sidebarScreen-BbczvGnM.js} +3 -3
  22. package/dist/chunks/{sidebarScreen-fIj--OhC.js.map → sidebarScreen-BbczvGnM.js.map} +1 -1
  23. package/dist/chunks/{sidebarScreen-DC7R30eg.esm.js → sidebarScreen-Df0FcbCe.esm.js} +3 -3
  24. package/dist/chunks/{sidebarScreen-DC7R30eg.esm.js.map → sidebarScreen-Df0FcbCe.esm.js.map} +1 -1
  25. package/dist/chunks/{uom-field-wrapper-BlJaV_Jd.esm.js → uom-field-wrapper-BN-gHLZh.esm.js} +43 -7
  26. package/dist/chunks/uom-field-wrapper-BN-gHLZh.esm.js.map +1 -0
  27. package/dist/chunks/{uom-field-wrapper-BMejbao3.js → uom-field-wrapper-DQKUL4a5.js} +43 -7
  28. package/dist/chunks/uom-field-wrapper-DQKUL4a5.js.map +1 -0
  29. package/dist/components/index.esm.js +4 -4
  30. package/dist/components/index.js +4 -4
  31. package/dist/components/parties-modal/utils/constant.d.ts +7 -4
  32. package/dist/index.esm.js +7 -7
  33. package/dist/index.js +7 -7
  34. package/dist/layout/index.esm.js +2 -2
  35. package/dist/layout/index.js +2 -2
  36. package/dist/src/components/parties-modal/utils/constant.d.ts +7 -4
  37. package/dist/style.css +11 -1
  38. package/dist/views/index.esm.js +5 -5
  39. package/dist/views/index.js +4 -4
  40. package/package.json +1 -1
  41. package/dist/chunks/android-12-switch-CQqq1bod.js.map +0 -1
  42. package/dist/chunks/android-12-switch-DMpKRS49.esm.js.map +0 -1
  43. package/dist/chunks/uom-field-wrapper-BMejbao3.js.map +0 -1
  44. package/dist/chunks/uom-field-wrapper-BlJaV_Jd.esm.js.map +0 -1
@@ -3,8 +3,8 @@ const jsxRuntime = require("./jsx-runtime-B6vEU3CM.js");
3
3
  const reactHookForm = require("react-hook-form");
4
4
  const identifier = require("./identifier-CaTy7Osd.js");
5
5
  const useAuth = require("./useAuth-Boeqeg4o.js");
6
- const android12Switch = require("./android-12-switch-CQqq1bod.js");
7
- const appbar = require("./appbar-GvhMl2LR.js");
6
+ const android12Switch = require("./android-12-switch-BP2CP-ah.js");
7
+ const appbar = require("./appbar-Bb4MdbyO.js");
8
8
  const React = require("react");
9
9
  const DatePicker = require("react-datepicker");
10
10
  ;/* empty css */
@@ -51,7 +51,7 @@ const actionBar = require("./action-bar-DMv6sqDP.js");
51
51
  const DataEditor = require("@glideapps/glide-data-grid");
52
52
  const glideDataGridCells = require("@glideapps/glide-data-grid-cells");
53
53
  const ReactDOM = require("react-dom");
54
- const sidebar = require("./sidebar-C3G058lH.js");
54
+ const sidebar = require("./sidebar-Df3O8Xw6.js");
55
55
  const materialReactTable = require("material-react-table");
56
56
  const trash = require("./trash-C63VDmtW.js");
57
57
  const _$1 = require("lodash");
@@ -4032,10 +4032,13 @@ const AddressModal = ({
4032
4032
  "addresses.street_1",
4033
4033
  "addresses.street_2",
4034
4034
  "addresses.street_3",
4035
+ "addresses.street_name",
4035
4036
  "addresses.building_no",
4036
4037
  "addresses.additional_no",
4038
+ "addresses.national_address",
4037
4039
  "addresses.zip_code",
4038
4040
  "addresses.city",
4041
+ "addresses.district_name",
4039
4042
  "addresses.state",
4040
4043
  "addresses.country"
4041
4044
  ]
@@ -4147,15 +4150,15 @@ const AddressModal = ({
4147
4150
  const summaryVal = watchedValues.reduce((ele, ele2, index) => {
4148
4151
  if (!ele2) return ele;
4149
4152
  if (!ele) return ele2;
4150
- if (index === 8) {
4153
+ if (index === 11) {
4151
4154
  ele2 = state_data;
4152
4155
  }
4153
- if (index === 9) {
4156
+ if (index === 12) {
4154
4157
  ele2 = country_data;
4155
4158
  }
4156
4159
  ele = (ele == null ? void 0 : ele.name) || ele;
4157
4160
  ele2 = (ele2 == null ? void 0 : ele2.name) || ele2;
4158
- if ([2, 3, 4, 5].includes(index)) {
4161
+ if ([2, 3, 4, 5, 6, 7].includes(index)) {
4159
4162
  return ele + " " + ele2;
4160
4163
  }
4161
4164
  return ele + ", \n" + ele2;
@@ -4280,7 +4283,29 @@ const AddressModal = ({
4280
4283
  placeholder: t(`accounting.${translationKey}.addressModal.address3_placeholder`)
4281
4284
  }
4282
4285
  ) }),
4286
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(material.Grid, { item: true, sm: 6, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
4287
+ appbar.DynamicInput,
4288
+ {
4289
+ type: "text",
4290
+ formControl: control,
4291
+ label: t(`accounting.${translationKey}.addressModal.streetName_label`),
4292
+ name: "street_name",
4293
+ fieldArrayName: "addresses",
4294
+ placeholder: t(`accounting.${translationKey}.addressModal.streetName_placeholder`)
4295
+ }
4296
+ ) }),
4283
4297
  isKSA,
4298
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(material.Grid, { item: true, sm: 6, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
4299
+ appbar.DynamicInput,
4300
+ {
4301
+ type: "text",
4302
+ formControl: control,
4303
+ label: t(`accounting.${translationKey}.addressModal.nationalAddress_label`),
4304
+ name: "national_address",
4305
+ fieldArrayName: "addresses",
4306
+ placeholder: t(`accounting.${translationKey}.addressModal.nationalAddress_placeholder`)
4307
+ }
4308
+ ) }),
4284
4309
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(material.Grid, { item: true, sm: 6, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
4285
4310
  appbar.DynamicInput,
4286
4311
  {
@@ -4330,6 +4355,17 @@ const AddressModal = ({
4330
4355
  formControl: control
4331
4356
  }
4332
4357
  ) }),
4358
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(material.Grid, { item: true, sm: 6, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
4359
+ appbar.DynamicInput,
4360
+ {
4361
+ type: "text",
4362
+ formControl: control,
4363
+ label: t(`accounting.${translationKey}.addressModal.districtName_label`),
4364
+ name: "district_name",
4365
+ fieldArrayName: "addresses",
4366
+ placeholder: t(`accounting.${translationKey}.addressModal.districtName_placeholder`)
4367
+ }
4368
+ ) }),
4333
4369
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(material.Grid, { item: true, sm: 6, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
4334
4370
  appbar.DynamicInput,
4335
4371
  {
@@ -16832,4 +16868,4 @@ exports.dynamicFields = dynamicFields;
16832
16868
  exports.fields = fields;
16833
16869
  exports.useDynamicLayout = useDynamicLayout;
16834
16870
  exports.validator = validator;
16835
- //# sourceMappingURL=uom-field-wrapper-BMejbao3.js.map
16871
+ //# sourceMappingURL=uom-field-wrapper-DQKUL4a5.js.map