@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,10 +1,10 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useFieldArray, Controller, useForm, useFormContext } from "react-hook-form";
3
- import { P as PropTypes } from "./index-iPYNYnNP.esm.js";
3
+ import { P as PropTypes } from "./index-wf5q5BST.esm.js";
4
4
  import Close from "@mui/icons-material/Close";
5
5
  import AddIcon from "@mui/icons-material/Add";
6
- import { w as DynamicSelect, i as DateTimePicker, D as DatePicker$1, A as Accordion, C as Checkbox, g as ChipOrPlaceholder$1, j as DropdownButton, ad as TitleDropdownButton, T as HeaderCard, ab as TabBar, a6 as SearchableSelect, Z as ModalLoader, Y as MaterialTable, u as DynamicSearchSelect, n as DynamicDate, z as DynamicTime, f as ChipGenerator, l as DynamicCheckBox, M as Footer, F as Fallback, a as ActionBar, ac as TimePicker, ah as UploadMedia, a3 as PhoneInput } from "./android-12-switch-BVabRCje.esm.js";
7
- import { D as DynamicInput, b as Avatar, o, M as Modal, c as Select, B as Button, C as ConfirmPopUp, d as Toast, S as SearchBar, T as TextField$1, e as Tooltip$1 } from "./appbar-mDf1LZ0u.esm.js";
6
+ import { w as DynamicSelect, i as DateTimePicker, D as DatePicker$1, A as Accordion, C as Checkbox, g as ChipOrPlaceholder$1, j as DropdownButton, af as TitleDropdownButton, T as HeaderCard, ac as TabBar, a7 as SearchableSelect, _ as ModalLoader, Z as MaterialTable, u as DynamicSearchSelect, n as DynamicDate, z as DynamicTime, f as ChipGenerator, l as DynamicCheckBox, M as Footer, F as Fallback, a as ActionBar, ae as TimePicker, aj as UploadMedia, a4 as PhoneInput } from "./android-12-switch-BUbQYnRQ.esm.js";
7
+ import { D as DynamicInput, b as Avatar, o, M as Modal, c as Select, B as Button, C as ConfirmPopUp, d as Toast, S as SearchBar, T as TextField$1, e as Tooltip$1 } from "./appbar-CKrHdx9n.esm.js";
8
8
  import React__default, { useState, lazy, useMemo, useRef, useEffect, useCallback, cloneElement } from "react";
9
9
  import DatePicker from "react-datepicker";
10
10
  import "react-datepicker/dist/react-datepicker.css";
@@ -4433,6 +4433,25 @@ const ProtectedRoute = ({
4433
4433
  }
4434
4434
  return showError ? /* @__PURE__ */ jsx(ErrorComponent, {}) : /* @__PURE__ */ jsx(Navigate, { to: redirectTo, replace: true });
4435
4435
  };
4436
+ const createPermissionConfig = {
4437
+ // Single module
4438
+ single: (module, action) => ({
4439
+ module,
4440
+ action
4441
+ }),
4442
+ // Multiple modules with same action
4443
+ multiModule: (modules, action, operator = "OR") => ({
4444
+ multiModule: { modules, action, operator }
4445
+ }),
4446
+ // Complex permissions
4447
+ complex: (permissions, operator = "AND") => ({
4448
+ complexPermissions: { permissions, operator }
4449
+ }),
4450
+ // Custom function
4451
+ custom: (checkFn) => ({
4452
+ customPermissionCheck: checkFn
4453
+ })
4454
+ };
4436
4455
  const ReportButtons = ({ buttons, dropdownMenuButtonData = null, toggleCallback, className, zIndex = 999 }) => {
4437
4456
  return /* @__PURE__ */ jsxs("div", { className, children: [
4438
4457
  buttons == null ? void 0 : buttons.map((ele) => /* @__PURE__ */ jsx(
@@ -12487,52 +12506,54 @@ function AISummaryPanel(props = {}) {
12487
12506
  ] });
12488
12507
  }
12489
12508
  export {
12490
- ProtectedRoute as $,
12509
+ PageLoader as $,
12491
12510
  AISummaryPanel as A,
12492
12511
  BarChart as B,
12493
12512
  CalculationSummary as C,
12494
12513
  DonutChart$1 as D,
12495
12514
  ElementController as E,
12496
- ExpandableSummaryWrapper as F,
12515
+ EntityViewWrapper as F,
12497
12516
  GridCard as G,
12498
- FormData as H,
12499
- FormLoader as I,
12500
- Forms as J,
12501
- GanttChart as K,
12502
- GridCard$1 as L,
12503
- GridFallback as M,
12504
- GridWrapper as N,
12505
- GroupedBarChart$1 as O,
12506
- HrLine as P,
12507
- InventoryReportsTitleBar as Q,
12508
- ItemResponseDetails as R,
12509
- LabelValue as S,
12510
- LineChart as T,
12511
- List as U,
12512
- ListingComponent as V,
12513
- MaterialEditableTable as W,
12514
- MultiLineChart as X,
12515
- MultiSelect as Y,
12516
- MultiLine as Z,
12517
- PageLoader as _,
12517
+ ExpandableSummaryWrapper as H,
12518
+ FormData as I,
12519
+ FormLoader as J,
12520
+ Forms as K,
12521
+ GanttChart as L,
12522
+ GridCard$1 as M,
12523
+ GridFallback as N,
12524
+ GridWrapper as O,
12525
+ GroupedBarChart$1 as P,
12526
+ HrLine as Q,
12527
+ InventoryReportsTitleBar as R,
12528
+ ItemResponseDetails as S,
12529
+ LabelValue as T,
12530
+ LineChart as U,
12531
+ List as V,
12532
+ ListingComponent as W,
12533
+ MaterialEditableTable as X,
12534
+ MultiLine as Y,
12535
+ MultiLineChart as Z,
12536
+ MultiSelect as _,
12518
12537
  ActivityTag as a,
12519
- QuickApprovalModal as a0,
12520
- ReportButtons as a1,
12521
- ReportTable as a2,
12522
- ReportsTitleBar as a3,
12523
- GeneralScheduleReport as a4,
12524
- ScheduleReportModal as a5,
12525
- Snackbar as a6,
12526
- SubHeaderDoc as a7,
12527
- TabBarUi as a8,
12528
- TextArea as a9,
12529
- TimeRangePicker as aa,
12530
- UomFieldWrapper as ab,
12531
- Upload as ac,
12532
- UserDropdown as ad,
12533
- dynamicFields as ae,
12534
- fields as af,
12535
- validator as ag,
12538
+ ProtectedRoute as a0,
12539
+ QuickApprovalModal as a1,
12540
+ ReportButtons as a2,
12541
+ ReportTable as a3,
12542
+ ReportsTitleBar as a4,
12543
+ GeneralScheduleReport as a5,
12544
+ ScheduleReportModal as a6,
12545
+ Snackbar as a7,
12546
+ SubHeaderDoc as a8,
12547
+ TabBarUi as a9,
12548
+ TextArea as aa,
12549
+ TimeRangePicker as ab,
12550
+ UomFieldWrapper as ac,
12551
+ Upload as ad,
12552
+ UserDropdown as ae,
12553
+ createPermissionConfig as af,
12554
+ dynamicFields as ag,
12555
+ fields as ah,
12556
+ validator as ai,
12536
12557
  ActivityTag$1 as b,
12537
12558
  ApprovalWrapper as c,
12538
12559
  AreaLineChart as d,
@@ -12557,6 +12578,6 @@ export {
12557
12578
  DynamicDateTime as w,
12558
12579
  DynamicLayoutWrapper as x,
12559
12580
  DynamicModal as y,
12560
- EntityViewWrapper as z
12581
+ DynamicRow as z
12561
12582
  };
12562
- //# sourceMappingURL=ai-summary-FqAUpafL.esm.js.map
12583
+ //# sourceMappingURL=ai-summary-f8clWLbW.esm.js.map