@solidstarters/solid-core-ui 1.1.121 → 1.1.123

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 (37) hide show
  1. package/dist/components/auth/AuthLayout.js +15 -15
  2. package/dist/components/auth/AuthLayout.js.map +1 -1
  3. package/dist/components/auth/SolidForgotPassword.js +3 -3
  4. package/dist/components/auth/SolidForgotPassword.js.map +1 -1
  5. package/dist/components/auth/SolidInitialLoginOtp.js +3 -3
  6. package/dist/components/auth/SolidInitialLoginOtp.js.map +1 -1
  7. package/dist/components/auth/SolidInitiateRegisterOtp.js +3 -3
  8. package/dist/components/auth/SolidInitiateRegisterOtp.js.map +1 -1
  9. package/dist/components/auth/SolidLogin.js +5 -5
  10. package/dist/components/auth/SolidLogin.js.map +1 -1
  11. package/dist/components/auth/SolidOTPVerify.js +6 -6
  12. package/dist/components/auth/SolidOTPVerify.js.map +1 -1
  13. package/dist/components/auth/SolidRegister.js +5 -5
  14. package/dist/components/auth/SolidRegister.js.map +1 -1
  15. package/dist/components/auth/SolidResetPassword.js +5 -5
  16. package/dist/components/auth/SolidResetPassword.js.map +1 -1
  17. package/dist/components/common/GeneralSettings.d.ts.map +1 -1
  18. package/dist/components/common/GeneralSettings.js +153 -30
  19. package/dist/components/common/GeneralSettings.js.map +1 -1
  20. package/dist/components/core/common/SolidCreateButton.d.ts +1 -1
  21. package/dist/components/core/common/SolidCreateButton.d.ts.map +1 -1
  22. package/dist/components/core/common/SolidCreateButton.js +3 -2
  23. package/dist/components/core/common/SolidCreateButton.js.map +1 -1
  24. package/dist/components/core/form/fields/SolidDateField.d.ts +1 -0
  25. package/dist/components/core/form/fields/SolidDateField.d.ts.map +1 -1
  26. package/dist/components/core/form/fields/SolidDateField.js +11 -1
  27. package/dist/components/core/form/fields/SolidDateField.js.map +1 -1
  28. package/dist/components/core/list/SolidEmptyListViewPlaceholder.js +15 -15
  29. package/dist/components/core/list/SolidEmptyListViewPlaceholder.js.map +1 -1
  30. package/dist/components/core/list/SolidListView.d.ts.map +1 -1
  31. package/dist/components/core/list/SolidListView.js +135 -125
  32. package/dist/components/core/list/SolidListView.js.map +1 -1
  33. package/dist/helpers/registry.js +2 -1
  34. package/dist/helpers/registry.js.map +1 -1
  35. package/dist/resources/globals.css +22 -14
  36. package/package.json +1 -1
  37. package/src/resources/globals.css +22 -14
@@ -5,25 +5,25 @@ import Image from 'next/image';
5
5
  import { Button } from 'primereact/button';
6
6
  import { useHandleListCustomButtonClick } from '../../../components/common/useHandleListCustomButtonClick';
7
7
  export var SolidEmptyListViewPlaceholder = function (_a) {
8
- var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8;
8
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5;
9
9
  var createButtonUrl = _a.createButtonUrl, actionsAllowed = _a.actionsAllowed, params = _a.params, solidListViewMetaData = _a.solidListViewMetaData;
10
10
  var noDataText = (_f = (_e = (_d = (_c = (_b = solidListViewMetaData === null || solidListViewMetaData === void 0 ? void 0 : solidListViewMetaData.data) === null || _b === void 0 ? void 0 : _b.solidView) === null || _c === void 0 ? void 0 : _c.layout) === null || _d === void 0 ? void 0 : _d.attrs) === null || _e === void 0 ? void 0 : _e.listViewNoDataHelperText) !== null && _f !== void 0 ? _f : (process.env.NEXT_PUBLIC_DEFAULT_LIST_VIEW_NODATA_HELPER_TEXT && ((_h = (_g = solidListViewMetaData === null || solidListViewMetaData === void 0 ? void 0 : solidListViewMetaData.data) === null || _g === void 0 ? void 0 : _g.solidView) === null || _h === void 0 ? void 0 : _h.displayName)
11
11
  ? "".concat(process.env.NEXT_PUBLIC_DEFAULT_LIST_VIEW_NODATA_HELPER_TEXT, " ").concat(solidListViewMetaData.data.solidView.displayName)
12
12
  : null);
13
13
  var handleCustomButtonClick = useHandleListCustomButtonClick();
14
- return (_jsxs("div", { className: "page-parent-wrapper", children: [_jsx("div", { className: "page-header", children: _jsx("p", { className: "m-0 view-title", children: (_l = (_k = (_j = solidListViewMetaData === null || solidListViewMetaData === void 0 ? void 0 : solidListViewMetaData.data) === null || _j === void 0 ? void 0 : _j.solidView) === null || _k === void 0 ? void 0 : _k.layout) === null || _l === void 0 ? void 0 : _l.displayName }) }), _jsxs("div", { className: 'solid-empty-listview-placeholder-container', children: [process.env.NEXT_PUBLIC_DEFAULT_LIST_VIEW_NODATA_IMAGE &&
15
- _jsx(Image, { alt: (_o = (_m = solidListViewMetaData === null || solidListViewMetaData === void 0 ? void 0 : solidListViewMetaData.data) === null || _m === void 0 ? void 0 : _m.solidView) === null || _o === void 0 ? void 0 : _o.displayName, src: process.env.NEXT_PUBLIC_DEFAULT_LIST_VIEW_NODATA_IMAGE, className: 'relative', height: 385, width: 617 }), _jsx("div", { className: 'text-base font-bold', children: "No Data Available." }), noDataText &&
16
- _jsx("div", { className: 'text-sm mt-1', children: noDataText }), actionsAllowed.includes("".concat(createPermission(params.modelName))) && ((_s = (_r = (_q = (_p = solidListViewMetaData === null || solidListViewMetaData === void 0 ? void 0 : solidListViewMetaData.data) === null || _p === void 0 ? void 0 : _p.solidView) === null || _q === void 0 ? void 0 : _q.layout) === null || _r === void 0 ? void 0 : _r.attrs) === null || _s === void 0 ? void 0 : _s.create) !== false && params.embeded !== true && ((_v = (_u = (_t = solidListViewMetaData === null || solidListViewMetaData === void 0 ? void 0 : solidListViewMetaData.data) === null || _t === void 0 ? void 0 : _t.solidView) === null || _u === void 0 ? void 0 : _u.layout) === null || _v === void 0 ? void 0 : _v.attrs.showDefaultAddButton) !== false &&
17
- _jsx("div", { className: 'mt-2', children: _jsx(SolidCreateButton, { url: createButtonUrl, title: (_x = (_w = solidListViewMetaData === null || solidListViewMetaData === void 0 ? void 0 : solidListViewMetaData.data) === null || _w === void 0 ? void 0 : _w.solidView) === null || _x === void 0 ? void 0 : _x.displayName }) }), _jsx("div", { children: ((_0 = (_z = (_y = solidListViewMetaData === null || solidListViewMetaData === void 0 ? void 0 : solidListViewMetaData.data) === null || _y === void 0 ? void 0 : _y.solidView) === null || _z === void 0 ? void 0 : _z.layout) === null || _0 === void 0 ? void 0 : _0.attrs.showDefaultAddButton) === false && ((_4 = (_3 = (_2 = (_1 = solidListViewMetaData === null || solidListViewMetaData === void 0 ? void 0 : solidListViewMetaData.data) === null || _1 === void 0 ? void 0 : _1.solidView) === null || _2 === void 0 ? void 0 : _2.layout) === null || _3 === void 0 ? void 0 : _3.attrs) === null || _4 === void 0 ? void 0 : _4.headerButtons) &&
18
- ((_8 = (_7 = (_6 = (_5 = solidListViewMetaData === null || solidListViewMetaData === void 0 ? void 0 : solidListViewMetaData.data) === null || _5 === void 0 ? void 0 : _5.solidView) === null || _6 === void 0 ? void 0 : _6.layout) === null || _7 === void 0 ? void 0 : _7.attrs) === null || _8 === void 0 ? void 0 : _8.headerButtons.map(function (button) {
19
- var _a, _b;
20
- return (_jsx(Button, { text: true, type: "button", className: "w-full text-left gap-2", label: button.attrs.label, size: "small", iconPos: "left", icon: ((_a = button === null || button === void 0 ? void 0 : button.attrs) === null || _a === void 0 ? void 0 : _a.className) ? (_b = button === null || button === void 0 ? void 0 : button.attrs) === null || _b === void 0 ? void 0 : _b.className : "pi pi-pencil", onClick: function () {
21
- var event = {
22
- params: params,
23
- solidListViewMetaData: solidListViewMetaData.data
24
- };
25
- handleCustomButtonClick(button.attrs, event);
26
- } }));
27
- })) })] })] }));
14
+ return (_jsx("div", { className: "page-parent-wrapper", children: _jsxs("div", { className: 'solid-empty-listview-placeholder-container', children: [process.env.NEXT_PUBLIC_DEFAULT_LIST_VIEW_NODATA_IMAGE &&
15
+ _jsx(Image, { alt: (_k = (_j = solidListViewMetaData === null || solidListViewMetaData === void 0 ? void 0 : solidListViewMetaData.data) === null || _j === void 0 ? void 0 : _j.solidView) === null || _k === void 0 ? void 0 : _k.displayName, src: process.env.NEXT_PUBLIC_DEFAULT_LIST_VIEW_NODATA_IMAGE, className: 'relative', height: 385, width: 617 }), _jsx("div", { className: 'text-base font-bold', children: "No Data Available." }), noDataText &&
16
+ _jsx("div", { className: 'text-sm mt-1', children: noDataText }), actionsAllowed.includes("".concat(createPermission(params.modelName))) && ((_p = (_o = (_m = (_l = solidListViewMetaData === null || solidListViewMetaData === void 0 ? void 0 : solidListViewMetaData.data) === null || _l === void 0 ? void 0 : _l.solidView) === null || _m === void 0 ? void 0 : _m.layout) === null || _o === void 0 ? void 0 : _o.attrs) === null || _p === void 0 ? void 0 : _p.create) !== false && params.embeded !== true && ((_s = (_r = (_q = solidListViewMetaData === null || solidListViewMetaData === void 0 ? void 0 : solidListViewMetaData.data) === null || _q === void 0 ? void 0 : _q.solidView) === null || _r === void 0 ? void 0 : _r.layout) === null || _s === void 0 ? void 0 : _s.attrs.showDefaultAddButton) !== false &&
17
+ _jsx("div", { className: 'mt-2', children: _jsx(SolidCreateButton, { url: createButtonUrl, title: (_u = (_t = solidListViewMetaData === null || solidListViewMetaData === void 0 ? void 0 : solidListViewMetaData.data) === null || _t === void 0 ? void 0 : _t.solidView) === null || _u === void 0 ? void 0 : _u.displayName }) }), _jsx("div", { children: ((_x = (_w = (_v = solidListViewMetaData === null || solidListViewMetaData === void 0 ? void 0 : solidListViewMetaData.data) === null || _v === void 0 ? void 0 : _v.solidView) === null || _w === void 0 ? void 0 : _w.layout) === null || _x === void 0 ? void 0 : _x.attrs.showDefaultAddButton) === false && ((_1 = (_0 = (_z = (_y = solidListViewMetaData === null || solidListViewMetaData === void 0 ? void 0 : solidListViewMetaData.data) === null || _y === void 0 ? void 0 : _y.solidView) === null || _z === void 0 ? void 0 : _z.layout) === null || _0 === void 0 ? void 0 : _0.attrs) === null || _1 === void 0 ? void 0 : _1.headerButtons) &&
18
+ ((_5 = (_4 = (_3 = (_2 = solidListViewMetaData === null || solidListViewMetaData === void 0 ? void 0 : solidListViewMetaData.data) === null || _2 === void 0 ? void 0 : _2.solidView) === null || _3 === void 0 ? void 0 : _3.layout) === null || _4 === void 0 ? void 0 : _4.attrs) === null || _5 === void 0 ? void 0 : _5.headerButtons.map(function (button) {
19
+ var _a, _b;
20
+ return (_jsx(Button, { text: true, type: "button", className: "w-full text-left gap-2", label: button.attrs.label, size: "small", iconPos: "left", icon: ((_a = button === null || button === void 0 ? void 0 : button.attrs) === null || _a === void 0 ? void 0 : _a.className) ? (_b = button === null || button === void 0 ? void 0 : button.attrs) === null || _b === void 0 ? void 0 : _b.className : "pi pi-pencil", onClick: function () {
21
+ var event = {
22
+ params: params,
23
+ solidListViewMetaData: solidListViewMetaData.data
24
+ };
25
+ handleCustomButtonClick(button.attrs, event);
26
+ } }));
27
+ })) })] }) }));
28
28
  };
29
29
  //# sourceMappingURL=SolidEmptyListViewPlaceholder.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SolidEmptyListViewPlaceholder.js","sourceRoot":"","sources":["../../../../src/components/core/list/SolidEmptyListViewPlaceholder.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAC/D,OAAO,KAAK,MAAM,YAAY,CAAA;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAA;AAEnG,MAAM,CAAC,IAAM,6BAA6B,GAAG,UAAC,EAAuE;;QAArE,eAAe,qBAAA,EAAE,cAAc,oBAAA,EAAE,MAAM,YAAA,EAAE,qBAAqB,2BAAA;IAC1G,IAAM,UAAU,GAAG,MAAA,MAAA,MAAA,MAAA,MAAA,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,IAAI,0CAAE,SAAS,0CAAE,MAAM,0CAAE,KAAK,0CAAE,wBAAwB,mCAC3F,CAAC,OAAO,C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,KAAK,GAAG;4CACV,MAAM,QAAA;4CACN,qBAAqB,EAAE,qBAAqB,CAAC,IAAI;yCACpD,CAAA;wCACD,uBAAuB,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;oCAChD,CAAC,GACH,CACL,CAAC;4BACN,CAAC,CAAC,CAAA,GAEJ,IACJ,IACJ,CACT,CAAA;AACL,CAAC,CAAA"}
1
+ {"version":3,"file":"SolidEmptyListViewPlaceholder.js","sourceRoot":"","sources":["../../../../src/components/core/list/SolidEmptyListViewPlaceholder.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAC/D,OAAO,KAAK,MAAM,YAAY,CAAA;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAA;AAEnG,MAAM,CAAC,IAAM,6BAA6B,GAAG,UAAC,EAAuE;;QAArE,eAAe,qBAAA,EAAE,cAAc,oBAAA,EAAE,MAAM,YAAA,EAAE,qBAAqB,2BAAA;IAC1G,IAAM,UAAU,GAAG,MAAA,MAAA,MAAA,MAAA,MAAA,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,IAAI,0CAAE,SAAS,0CAAE,MAAM,0CAAE,KAAK,0CAAE,wBAAwB,mCAC3F,CAAC,OAAO,CAAC,GAAG,CAAC,gDAAgD,KAAI,MAAA,MAAA,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,IAAI,0CAAE,SAAS,0CAAE,WAAW,CAAA;QACnH,CAAC,CAAC,UAAG,OAAO,CAAC,GAAG,CAAC,gDAAgD,cAAI,qBAAqB,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAE;QACvH,CAAC,CAAC,IAAI,CAAC,CAAA;IAEf,IAAM,uBAAuB,GAAG,8BAA8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,MAAM,wBAAwB,gBAAiB,MAAM,kBAS3D,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,YAAY,CAAC,EAAE,GAAG,CAAA;CACnB,CAAC;AAEF,eAAO,MAAM,aAAa,WAAY,mBAAmB,4CA8hCxD,CAAC"}
1
+ {"version":3,"file":"SolidListView.d.ts","sourceRoot":"","sources":["../../../../src/components/core/list/SolidListView.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,MAAM,IAAI,CAAC;AA6BpB,OAAO,uCAAuC,CAAC;AAC/C,OAAO,gDAAgD,CAAC;AAcxD,eAAO,MAAM,wBAAwB,+BAcpC,CAAC;AAEF,eAAO,MAAM,wBAAwB,gBAAiB,MAAM,kBAS3D,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,YAAY,CAAC,EAAE,GAAG,CAAA;CACnB,CAAC;AAEF,eAAO,MAAM,aAAa,WAAY,mBAAmB,4CAuiCxD,CAAC"}
@@ -124,18 +124,18 @@ export var queryObjectToQueryString = function (queryObject) {
124
124
  return null;
125
125
  };
126
126
  export var SolidListView = function (params) {
127
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
127
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
128
128
  var user = useSelector(function (state) { return state.auth; }).user;
129
129
  var solidGlobalSearchElementRef = useRef();
130
130
  var router = useRouter();
131
131
  var searchParams = useSearchParams(); // Converts the query params to a string
132
132
  // TODO: The initial filter state will be created based on the fields which are present on this list view.
133
- var _x = useState(params.customFilter || null), filters = _x[0], setFilters = _x[1];
133
+ var _4 = useState(params.customFilter || null), filters = _4[0], setFilters = _4[1];
134
134
  // const [customFilter, setCustomFilter] = useState<FilterRule[]>(initialState);
135
135
  // const [showGlobalSearchElement, setShowGlobalSearchElement] = useState<boolean>(false);
136
- var _y = useState([]), toPopulate = _y[0], setToPopulate = _y[1];
137
- var _z = useState([]), toPopulateMedia = _z[0], setToPopulateMedia = _z[1];
138
- var _0 = useState([]), actionsAllowed = _0[0], setActionsAllowed = _0[1];
136
+ var _5 = useState([]), toPopulate = _5[0], setToPopulate = _5[1];
137
+ var _6 = useState([]), toPopulateMedia = _6[0], setToPopulateMedia = _6[1];
138
+ var _7 = useState([]), actionsAllowed = _7[0], setActionsAllowed = _7[1];
139
139
  var triggerCheckIfPermissionExists = useLazyCheckIfPermissionExistsQuery()[0];
140
140
  var handleCustomButtonClick = useHandleListCustomButtonClick();
141
141
  useEffect(function () {
@@ -178,9 +178,9 @@ export var SolidListView = function (params) {
178
178
  var listViewMetaDataQs = qs.stringify({ modelName: params.modelName, moduleName: params.moduleName, viewType: 'list' }, {
179
179
  encodeValuesOnly: true,
180
180
  });
181
- var _1 = useState({}), listViewMetaData = _1[0], setListViewMetaData = _1[1];
182
- var _2 = useState({}), solidListViewLayout = _2[0], setSolidListViewLayout = _2[1];
183
- var _3 = useGetSolidViewLayoutQuery(listViewMetaDataQs), solidListViewMetaData = _3.data, solidListViewMetaDataError = _3.error, solidListViewMetaDataIsLoading = _3.isLoading, solidListViewMetaDataIsError = _3.isError, refetch = _3.refetch;
181
+ var _8 = useState({}), listViewMetaData = _8[0], setListViewMetaData = _8[1];
182
+ var _9 = useState({}), solidListViewLayout = _9[0], setSolidListViewLayout = _9[1];
183
+ var _10 = useGetSolidViewLayoutQuery(listViewMetaDataQs), solidListViewMetaData = _10.data, solidListViewMetaDataError = _10.error, solidListViewMetaDataIsLoading = _10.isLoading, solidListViewMetaDataIsError = _10.isError, refetch = _10.refetch;
184
184
  var initialFilterMethod = function () {
185
185
  var _a, _b, _c, _d;
186
186
  var solidView = (_a = solidListViewMetaData === null || solidListViewMetaData === void 0 ? void 0 : solidListViewMetaData.data) === null || _a === void 0 ? void 0 : _a.solidView;
@@ -273,23 +273,23 @@ export var SolidListView = function (params) {
273
273
  }
274
274
  }, [solidListViewMetaData]);
275
275
  // All list view state.
276
- var _4 = useState([]), listViewData = _4[0], setListViewData = _4[1];
277
- var _5 = useState(0), first = _5[0], setFirst = _5[1];
278
- var _6 = useState(25), rows = _6[0], setRows = _6[1];
279
- var _7 = useState(0), totalRecords = _7[0], setTotalRecords = _7[1];
280
- var _8 = useState(""), sortField = _8[0], setSortField = _8[1];
281
- var _9 = useState(0), sortOrder = _9[0], setSortOrder = _9[1];
282
- var _10 = useState([]), selectedRecords = _10[0], setSelectedRecords = _10[1];
283
- var _11 = useState([]), selectedRecoverRecords = _11[0], setSelectedRecoverRecords = _11[1];
284
- var _12 = useState(true), loading = _12[0], setLoading = _12[1];
285
- var _13 = useState(false), isDialogVisible = _13[0], setDialogVisible = _13[1];
286
- var _14 = useState(false), isRecoverDialogVisible = _14[0], setRecoverDialogVisible = _14[1];
287
- var _15 = useState(), createButtonUrl = _15[0], setCreateButtonUrl = _15[1];
288
- var _16 = useState(), editButtonUrl = _16[0], setEditButtonUrl = _16[1];
289
- var _17 = useState(false), showArchived = _17[0], setShowArchived = _17[1];
290
- var _18 = useState(false), queryDataLoaded = _18[0], setQueryDataLoaded = _18[1];
291
- var _19 = useState(null), customFilter = _19[0], setCustomFilter = _19[1];
292
- var _20 = useState(false), showSaveFilterPopup = _20[0], setShowSaveFilterPopup = _20[1];
276
+ var _11 = useState([]), listViewData = _11[0], setListViewData = _11[1];
277
+ var _12 = useState(0), first = _12[0], setFirst = _12[1];
278
+ var _13 = useState(25), rows = _13[0], setRows = _13[1];
279
+ var _14 = useState(0), totalRecords = _14[0], setTotalRecords = _14[1];
280
+ var _15 = useState(""), sortField = _15[0], setSortField = _15[1];
281
+ var _16 = useState(0), sortOrder = _16[0], setSortOrder = _16[1];
282
+ var _17 = useState([]), selectedRecords = _17[0], setSelectedRecords = _17[1];
283
+ var _18 = useState([]), selectedRecoverRecords = _18[0], setSelectedRecoverRecords = _18[1];
284
+ var _19 = useState(true), loading = _19[0], setLoading = _19[1];
285
+ var _20 = useState(false), isDialogVisible = _20[0], setDialogVisible = _20[1];
286
+ var _21 = useState(false), isRecoverDialogVisible = _21[0], setRecoverDialogVisible = _21[1];
287
+ var _22 = useState(), createButtonUrl = _22[0], setCreateButtonUrl = _22[1];
288
+ var _23 = useState(), editButtonUrl = _23[0], setEditButtonUrl = _23[1];
289
+ var _24 = useState(false), showArchived = _24[0], setShowArchived = _24[1];
290
+ var _25 = useState(false), queryDataLoaded = _25[0], setQueryDataLoaded = _25[1];
291
+ var _26 = useState(null), customFilter = _26[0], setCustomFilter = _26[1];
292
+ var _27 = useState(false), showSaveFilterPopup = _27[0], setShowSaveFilterPopup = _27[1];
293
293
  var sizeOptions = [
294
294
  { label: 'Compact', value: 'small', image: CompactImage },
295
295
  { label: 'Cozy', value: 'normal', image: CozyImage },
@@ -299,16 +299,16 @@ export var SolidListView = function (params) {
299
299
  // { label: 'List ', value: 'list', image: ListImage },
300
300
  // { label: 'Kanban', value: 'kanban', image: KanbanImage },
301
301
  // ]
302
- var _21 = useState(sizeOptions[1].value), size = _21[0], setSize = _21[1];
303
- var _22 = useState([]), viewModes = _22[0], setViewModes = _22[1];
302
+ var _28 = useState(sizeOptions[1].value), size = _28[0], setSize = _28[1];
303
+ var _29 = useState([]), viewModes = _29[0], setViewModes = _29[1];
304
304
  // Custom Row Action
305
- var _23 = useState(false), listViewRowActionPopupState = _23[0], setListViewRowActionPopupState = _23[1];
306
- var _24 = useState(), listViewRowActionData = _24[0], setListRowActionData = _24[1];
305
+ var _30 = useState(false), listViewRowActionPopupState = _30[0], setListViewRowActionPopupState = _30[1];
306
+ var _31 = useState(), listViewRowActionData = _31[0], setListRowActionData = _31[1];
307
307
  var toast = useRef(null);
308
308
  // Get the list view data.
309
- var _25 = useLazyGetSolidEntitiesQuery(), triggerGetSolidEntities = _25[0], _26 = _25[1], solidEntityListViewData = _26.data, isLoading = _26.isLoading, error = _26.error;
310
- var _27 = useLazyRecoverSolidEntityByIdQuery(), triggerRecoverSolidEntitiesById = _27[0], _28 = _27[1], recoverByIdData = _28.data, recoverByIdIsLoading = _28.isLoading, recoverByIdError = _28.error, recoverByIdIsError = _28.isError, recoverByIdIsSuccess = _28.isSuccess;
311
- var _29 = useRecoverSolidEntityMutation(), triggerRecoverSolidEntities = _29[0], _30 = _29[1], recoverByData = _30.data, recoverByIsLoading = _30.isLoading, recoverError = _30.error, recoverIsError = _30.isError, recoverByIsSuccess = _30.isSuccess;
309
+ var _32 = useLazyGetSolidEntitiesQuery(), triggerGetSolidEntities = _32[0], _33 = _32[1], solidEntityListViewData = _33.data, isLoading = _33.isLoading, error = _33.error;
310
+ var _34 = useLazyRecoverSolidEntityByIdQuery(), triggerRecoverSolidEntitiesById = _34[0], _35 = _34[1], recoverByIdData = _35.data, recoverByIdIsLoading = _35.isLoading, recoverByIdError = _35.error, recoverByIdIsError = _35.isError, recoverByIdIsSuccess = _35.isSuccess;
311
+ var _36 = useRecoverSolidEntityMutation(), triggerRecoverSolidEntities = _36[0], _37 = _36[1], recoverByData = _37.data, recoverByIsLoading = _37.isLoading, recoverError = _37.error, recoverIsError = _37.isError, recoverByIsSuccess = _37.isSuccess;
312
312
  // After data is fetched populate the list view state so as to be able to render the data.
313
313
  useEffect(function () {
314
314
  console.log('useEffect: [solidListViewMetaData] line no 310');
@@ -340,9 +340,9 @@ export var SolidListView = function (params) {
340
340
  setLoading(false);
341
341
  }
342
342
  }, [solidEntityListViewData]);
343
- var _31 = useDeleteSolidEntityMutation(), deleteSolidSingleEntiry = _31[0], isDeleteSolidSingleEntitySuccess = _31[1].isSuccess;
343
+ var _38 = useDeleteSolidEntityMutation(), deleteSolidSingleEntiry = _38[0], isDeleteSolidSingleEntitySuccess = _38[1].isSuccess;
344
344
  // Delete mutation
345
- var _32 = useDeleteMultipleSolidEntitiesMutation(), deleteManySolidEntities = _32[0], _33 = _32[1], isSolidEntitiesDeleted = _33.isLoading, isDeleteSolidEntitiesSucess = _33.isSuccess, isSolidEntitiesDeleteError = _33.isError, SolidEntitiesDeleteError = _33.error, DeletedSolidEntities = _33.data;
345
+ var _39 = useDeleteMultipleSolidEntitiesMutation(), deleteManySolidEntities = _39[0], _40 = _39[1], isSolidEntitiesDeleted = _40.isLoading, isDeleteSolidEntitiesSucess = _40.isSuccess, isSolidEntitiesDeleteError = _40.isError, SolidEntitiesDeleteError = _40.error, DeletedSolidEntities = _40.data;
346
346
  // Fetch data after toPopulate has been populated...
347
347
  useEffect(function () {
348
348
  var _a, _b, _c;
@@ -544,9 +544,9 @@ export var SolidListView = function (params) {
544
544
  setFilters(null);
545
545
  solidGlobalSearchElementRef.current.clearFilter();
546
546
  };
547
- var _34 = useState(), selectedSolidViewData = _34[0], setSelectedSolidViewData = _34[1];
547
+ var _41 = useState(), selectedSolidViewData = _41[0], setSelectedSolidViewData = _41[1];
548
548
  var op = useRef(null);
549
- var _35 = useState(false), deleteEntity = _35[0], setDeleteEntity = _35[1];
549
+ var _42 = useState(false), deleteEntity = _42[0], setDeleteEntity = _42[1];
550
550
  // clickable link allowing one to open the detail / form view.
551
551
  var detailsBodyTemplate = function (solidViewData) {
552
552
  return (_jsx("div", { children: _jsx(Button, { type: "button", text: true, size: "small", className: "", onClick: function (e) {
@@ -632,8 +632,8 @@ export var SolidListView = function (params) {
632
632
  setSelectedRecords([]);
633
633
  setSelectedRecoverRecords([]);
634
634
  };
635
- var _36 = useState(false), openLightbox = _36[0], setOpenLightbox = _36[1];
636
- var _37 = useState({}), lightboxUrls = _37[0], setLightboxUrls = _37[1];
635
+ var _43 = useState(false), openLightbox = _43[0], setOpenLightbox = _43[1];
636
+ var _44 = useState({}), lightboxUrls = _44[0], setLightboxUrls = _44[1];
637
637
  // Render columns dynamically based on metadata
638
638
  var renderColumnsDynamically = function (solidListViewMetaData) {
639
639
  var _a;
@@ -681,97 +681,107 @@ export var SolidListView = function (params) {
681
681
  return _jsx(SolidListViewShimmerLoading, {});
682
682
  }
683
683
  var isListViewEmptyWithoutFilters = !loading && (!filters || Object.keys(filters).length === 0) && listViewData.length === 0;
684
- if (isListViewEmptyWithoutFilters) {
685
- return (_jsx(SolidEmptyListViewPlaceholder, { createButtonUrl: createButtonUrl, actionsAllowed: actionsAllowed, params: params, solidListViewMetaData: solidListViewMetaData }));
686
- }
687
- return (_jsxs("div", { className: "page-parent-wrapper", children: [_jsxs("div", { className: "page-header", children: [_jsx(Toast, { ref: toast }), _jsx("div", { className: "flex gap-3 align-items-center", children: ((_a = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _a === void 0 ? void 0 : _a.enableGlobalSearch) === true && params.embeded === false &&
688
- _jsx(SolidGlobalSearchElement, { showSaveFilterPopup: showSaveFilterPopup, setShowSaveFilterPopup: setShowSaveFilterPopup, filters: filters, clearFilter: clearFilter, ref: solidGlobalSearchElementRef, viewData: solidListViewMetaData, handleApplyCustomFilter: handleApplyCustomFilter }) }), _jsxs("div", { className: "flex align-items-center gap-3", children: [(_d = (_c = (_b = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _b === void 0 ? void 0 : _b.headerButtons) === null || _c === void 0 ? void 0 : _c.filter(function (rb) { return rb.attrs.actionInContextMenu != true; })) === null || _d === void 0 ? void 0 : _d.map(function (button, index) { return (_jsx(SolidListViewHeaderButton, { button: button, params: params, solidListViewMetaData: solidListViewMetaData, handleCustomButtonClick: handleCustomButtonClick }, index)); }), actionsAllowed.includes("".concat(createPermission(params.modelName))) && ((_e = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _e === void 0 ? void 0 : _e.create) !== false && params.embeded !== true && ((_h = (_g = (_f = solidListViewMetaData === null || solidListViewMetaData === void 0 ? void 0 : solidListViewMetaData.data) === null || _f === void 0 ? void 0 : _f.solidView) === null || _g === void 0 ? void 0 : _g.layout) === null || _h === void 0 ? void 0 : _h.attrs.showDefaultAddButton) !== false &&
689
- _jsx(SolidCreateButton, { url: createButtonUrl }), actionsAllowed.includes("".concat(createPermission(params.modelName))) && ((_j = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _j === void 0 ? void 0 : _j.create) !== false && params.embeded == true && params.inlineCreate == true && searchParams.get('viewMode') !== "view" &&
684
+ // if (isListViewEmptyWithoutFilters) {
685
+ // return (
686
+ // <SolidEmptyListViewPlaceholder
687
+ // createButtonUrl={createButtonUrl}
688
+ // actionsAllowed={actionsAllowed}
689
+ // params={params}
690
+ // solidListViewMetaData={solidListViewMetaData}
691
+ // />
692
+ // );
693
+ // }
694
+ return (_jsxs("div", { className: "page-parent-wrapper", children: [_jsxs("div", { className: "page-header", children: [_jsx(Toast, { ref: toast }), _jsxs("div", { className: "flex gap-3 align-items-center", children: [_jsx("p", { className: "m-0 view-title", children: (_b = (_a = solidListViewMetaData === null || solidListViewMetaData === void 0 ? void 0 : solidListViewMetaData.data) === null || _a === void 0 ? void 0 : _a.solidView) === null || _b === void 0 ? void 0 : _b.displayName }), ((_c = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _c === void 0 ? void 0 : _c.enableGlobalSearch) === true && params.embeded === false &&
695
+ _jsx(SolidGlobalSearchElement, { showSaveFilterPopup: showSaveFilterPopup, setShowSaveFilterPopup: setShowSaveFilterPopup, filters: filters, clearFilter: clearFilter, ref: solidGlobalSearchElementRef, viewData: solidListViewMetaData, handleApplyCustomFilter: handleApplyCustomFilter })] }), _jsxs("div", { className: "flex align-items-center gap-3", children: [(_f = (_e = (_d = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _d === void 0 ? void 0 : _d.headerButtons) === null || _e === void 0 ? void 0 : _e.filter(function (rb) { return rb.attrs.actionInContextMenu != true; })) === null || _f === void 0 ? void 0 : _f.map(function (button, index) { return (_jsx(SolidListViewHeaderButton, { button: button, params: params, solidListViewMetaData: solidListViewMetaData, handleCustomButtonClick: handleCustomButtonClick }, index)); }), actionsAllowed.includes("".concat(createPermission(params.modelName))) && ((_g = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _g === void 0 ? void 0 : _g.create) !== false && params.embeded !== true && ((_k = (_j = (_h = solidListViewMetaData === null || solidListViewMetaData === void 0 ? void 0 : solidListViewMetaData.data) === null || _h === void 0 ? void 0 : _h.solidView) === null || _j === void 0 ? void 0 : _j.layout) === null || _k === void 0 ? void 0 : _k.attrs.showDefaultAddButton) !== false &&
696
+ _jsx(SolidCreateButton, { url: createButtonUrl, solidListViewLayout: solidListViewLayout }), actionsAllowed.includes("".concat(createPermission(params.modelName))) && ((_l = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _l === void 0 ? void 0 : _l.create) !== false && params.embeded == true && params.inlineCreate == true && searchParams.get('viewMode') !== "view" &&
690
697
  // < SolidCreateButton url={createButtonUrl} />
691
- _jsx(Button, { type: "button", icon: "pi pi-plus", label: "Add", size: 'small', onClick: function () { return params.handlePopUpOpen("new"); } }), params.embeded !== true &&
698
+ _jsx(Button, { type: "button", icon: ((_m = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _m === void 0 ? void 0 : _m.addButtonIcon) ? (_o = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _o === void 0 ? void 0 : _o.addButtonIcon : "pi pi-plus", label: ((_p = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _p === void 0 ? void 0 : _p.addButtonTitle) ? (_q = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _q === void 0 ? void 0 : _q.addButtonTitle : "Add", className: "".concat((_r = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _r === void 0 ? void 0 : _r.addButtonClassName), size: 'small', onClick: function () { return params.handlePopUpOpen("new"); } }), params.embeded !== true &&
692
699
  _jsx(Button, { type: "button", size: "small", icon: "pi pi-refresh", severity: "secondary", outlined: true, onClick: function () {
693
700
  setQueryString(first, rows, sortField, sortOrder, filters, showArchived);
694
- } }), showArchived && _jsx(Button, { type: "button", icon: "pi pi-refresh", label: "Recover", size: 'small', severity: "secondary", onClick: function () { return setRecoverDialogVisible(true); } }), params.embeded === false && (((_k = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _k === void 0 ? void 0 : _k.configureView) !== false) &&
695
- _jsx(SolidListViewConfigure, { listViewMetaData: listViewMetaData, solidListViewLayout: solidListViewLayout, setShowArchived: setShowArchived, showArchived: showArchived, viewData: solidListViewMetaData, sizeOptions: sizeOptions, setSize: setSize, size: size, viewModes: viewModes, params: params, actionsAllowed: actionsAllowed, selectedRecords: selectedRecords, setDialogVisible: setDialogVisible, setShowSaveFilterPopup: setShowSaveFilterPopup, filters: filters })] })] }), _jsx("style", { children: ".p-datatable .p-datatable-loading-overlay {background-color: rgba(0, 0, 0, 0.0);} .greyed-out-row { background-color: #f5f5f5 !important; color: #a0a0a0 !important; opacity: 0.6;}" }), _jsx("div", { className: "solid-datatable-wrapper", children: _jsxs(DataTable, { value: listViewData, rowClassName: function (rowData) {
696
- return rowData.deletedAt ? "greyed-out-row" : "";
697
- }, showGridlines: false, lazy: true, scrollable: true,
698
- // scrollHeight="90vh"
699
- size: size, resizableColumns: true, paginator: true, rows: rows, rowsPerPageOptions: (_l = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _l === void 0 ? void 0 : _l.pageSizeOptions, dataKey: "id", emptyMessage: ((_p = (_o = (_m = solidListViewMetaData === null || solidListViewMetaData === void 0 ? void 0 : solidListViewMetaData.data) === null || _m === void 0 ? void 0 : _m.solidView) === null || _o === void 0 ? void 0 : _o.model) === null || _p === void 0 ? void 0 : _p.description) || 'No Entities found.', filterDisplay: "menu", totalRecords: totalRecords, first: first, onPage: onPageChange, onSort: function (e) { return onSort(e); }, sortField: sortField, sortOrder: sortOrder === 1 || sortOrder === -1 ? sortOrder : 0, loading: false,
700
- // loading={loading || isLoading}
701
- // loadingIcon="pi pi-spinner"
702
- selection: __spreadArray(__spreadArray([], selectedRecords, true), selectedRecoverRecords, true), onSelectionChange: onSelectionChange, selectionMode: "checkbox", removableSort: true, filterIcon: _jsx(FilterIcon, {}), tableClassName: "solid-data-table", paginatorClassName: "solid-paginator", paginatorTemplate: "RowsPerPageDropdown CurrentPageReport PrevPageLink NextPageLink", currentPageReportTemplate: "{first} - {last} of {totalRecords}", onRowClick: function (e) {
703
- var _a;
704
- var rowData = e.data;
705
- if ((solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs.disableRowClick) === true)
706
- return;
707
- var hasFindPermission = actionsAllowed.includes(findPermission(params.modelName));
708
- var hasUpdatePermission = actionsAllowed.includes(updatePermission(params.modelName)) &&
709
- ((_a = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _a === void 0 ? void 0 : _a.edit) !== false;
710
- if (!(hasFindPermission || hasUpdatePermission))
711
- return;
712
- if (params.embeded === true) {
713
- params.handlePopUpOpen(rowData === null || rowData === void 0 ? void 0 : rowData.id);
714
- }
715
- else {
716
- if (typeof window !== "undefined") {
717
- sessionStorage.setItem("fromView", "list");
718
- }
719
- router.push("".concat(editButtonUrl, "/").concat(rowData === null || rowData === void 0 ? void 0 : rowData.id, "?viewMode=view"));
720
- }
721
- }, children: [_jsx(Column, { selectionMode: "multiple", headerStyle: { width: "3em" } }), renderColumnsDynamically(listViewMetaData), ((_q = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _q === void 0 ? void 0 : _q.rowButtons) &&
722
- ((_r = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _r === void 0 ? void 0 : _r.rowButtons.filter(function (rb) {
723
- var _a, _b;
724
- var roles = ((_a = rb === null || rb === void 0 ? void 0 : rb.attrs) === null || _a === void 0 ? void 0 : _a.roles) || [];
725
- var isInContextMenu = rb.attrs.actionInContextMenu === true;
726
- // Only check hasAnyRole if roles are provided
727
- var isAllowed = roles.length === 0 || hasAnyRole((_b = user === null || user === void 0 ? void 0 : user.user) === null || _b === void 0 ? void 0 : _b.roles, roles);
728
- return !isInContextMenu && isAllowed;
729
- }).map(function (button, index) {
730
- // const hasRole = button.attrs.roles && button.attrs.roles.length > 0 ? useHasAnyRole(button.attrs.roles) : true;
731
- // if (!hasRole) return null;
732
- return (_jsx(Column, { header: button.attrs.label, body: function (rowData) {
701
+ } }), showArchived && _jsx(Button, { type: "button", icon: "pi pi-refresh", label: "Recover", size: 'small', severity: "secondary", onClick: function () { return setRecoverDialogVisible(true); } }), params.embeded === false && (((_s = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _s === void 0 ? void 0 : _s.configureView) !== false) &&
702
+ _jsx(SolidListViewConfigure, { listViewMetaData: listViewMetaData, solidListViewLayout: solidListViewLayout, setShowArchived: setShowArchived, showArchived: showArchived, viewData: solidListViewMetaData, sizeOptions: sizeOptions, setSize: setSize, size: size, viewModes: viewModes, params: params, actionsAllowed: actionsAllowed, selectedRecords: selectedRecords, setDialogVisible: setDialogVisible, setShowSaveFilterPopup: setShowSaveFilterPopup, filters: filters })] })] }), _jsx("style", { children: ".p-datatable .p-datatable-loading-overlay {background-color: rgba(0, 0, 0, 0.0);} .greyed-out-row { background-color: #f5f5f5 !important; color: #a0a0a0 !important; opacity: 0.6;}" }), _jsx("div", { className: "solid-datatable-wrapper", children: isListViewEmptyWithoutFilters ?
703
+ _jsx(SolidEmptyListViewPlaceholder, { createButtonUrl: createButtonUrl, actionsAllowed: actionsAllowed, params: params, solidListViewMetaData: solidListViewMetaData })
704
+ :
705
+ _jsxs(DataTable, { value: listViewData, rowClassName: function (rowData) {
706
+ return rowData.deletedAt ? "greyed-out-row" : "";
707
+ }, showGridlines: false, lazy: true, scrollable: true,
708
+ // scrollHeight="90vh"
709
+ size: size, resizableColumns: true, paginator: true, rows: rows, rowsPerPageOptions: (_t = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _t === void 0 ? void 0 : _t.pageSizeOptions, dataKey: "id", emptyMessage: ((_w = (_v = (_u = solidListViewMetaData === null || solidListViewMetaData === void 0 ? void 0 : solidListViewMetaData.data) === null || _u === void 0 ? void 0 : _u.solidView) === null || _v === void 0 ? void 0 : _v.model) === null || _w === void 0 ? void 0 : _w.description) || 'No Entities found.', filterDisplay: "menu", totalRecords: totalRecords, first: first, onPage: onPageChange, onSort: function (e) { return onSort(e); }, sortField: sortField, sortOrder: sortOrder === 1 || sortOrder === -1 ? sortOrder : 0, loading: false,
710
+ // loading={loading || isLoading}
711
+ // loadingIcon="pi pi-spinner"
712
+ selection: __spreadArray(__spreadArray([], selectedRecords, true), selectedRecoverRecords, true), onSelectionChange: onSelectionChange, selectionMode: "checkbox", removableSort: true, filterIcon: _jsx(FilterIcon, {}), tableClassName: "solid-data-table", paginatorClassName: "solid-paginator", paginatorTemplate: "RowsPerPageDropdown CurrentPageReport PrevPageLink NextPageLink", currentPageReportTemplate: "{first} - {last} of {totalRecords}", onRowClick: function (e) {
713
+ var _a;
714
+ var rowData = e.data;
715
+ if ((solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs.disableRowClick) === true)
716
+ return;
717
+ var hasFindPermission = actionsAllowed.includes(findPermission(params.modelName));
718
+ var hasUpdatePermission = actionsAllowed.includes(updatePermission(params.modelName)) &&
719
+ ((_a = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _a === void 0 ? void 0 : _a.edit) !== false;
720
+ if (!(hasFindPermission || hasUpdatePermission))
721
+ return;
722
+ if (params.embeded === true) {
723
+ params.handlePopUpOpen(rowData === null || rowData === void 0 ? void 0 : rowData.id);
724
+ }
725
+ else {
726
+ if (typeof window !== "undefined") {
727
+ sessionStorage.setItem("fromView", "list");
728
+ }
729
+ router.push("".concat(editButtonUrl, "/").concat(rowData === null || rowData === void 0 ? void 0 : rowData.id, "?viewMode=view"));
730
+ }
731
+ }, children: [_jsx(Column, { selectionMode: "multiple", headerStyle: { width: "3em" } }), renderColumnsDynamically(listViewMetaData), ((_x = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _x === void 0 ? void 0 : _x.rowButtons) &&
732
+ ((_y = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _y === void 0 ? void 0 : _y.rowButtons.filter(function (rb) {
733
733
  var _a, _b;
734
- return (_jsx(Button, { text: true, type: "button", className: "", label: button.attrs.showLabel !== false ? button.attrs.label : '', size: "small", iconPos: "left", icon: ((_a = button === null || button === void 0 ? void 0 : button.attrs) === null || _a === void 0 ? void 0 : _a.className) ? (_b = button === null || button === void 0 ? void 0 : button.attrs) === null || _b === void 0 ? void 0 : _b.className : "pi pi-pencil", onClick: function () {
735
- var event = {
736
- params: params,
737
- rowData: rowData,
738
- solidListViewMetaData: solidListViewMetaData.data
739
- };
740
- handleCustomButtonClick(button.attrs, event);
741
- } }));
742
- } }, index));
743
- })), actionsAllowed.includes("".concat(updatePermission(params.modelName))) && ((_s = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _s === void 0 ? void 0 : _s.edit) !== false && ((_t = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _t === void 0 ? void 0 : _t.showRowEditInContextMenu) === false &&
744
- _jsx(Column, { header: "Edit", body: function (rowData) {
745
- return (_jsx(Button, { text: true, type: "button", severity: "secondary", className: "", label: "", size: "small", iconPos: "left", icon: "pi pi-pencil", onClick: function () {
746
- if (params.embeded == true) {
747
- params.handlePopUpOpen(rowData === null || rowData === void 0 ? void 0 : rowData.id);
748
- }
749
- else {
750
- router.push("".concat(editButtonUrl, "/").concat(rowData === null || rowData === void 0 ? void 0 : rowData.id, "?viewMode=edit"));
751
- }
752
- } }));
753
- } }), actionsAllowed.includes("".concat(deletePermission(params.modelName))) && ((_u = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _u === void 0 ? void 0 : _u.delete) !== false && ((_v = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _v === void 0 ? void 0 : _v.showRowDeleteInContextMenu) === false &&
754
- _jsx(Column, { header: "Delete", body: function (rowData) {
755
- return (_jsx(Button, { text: true, type: "button", className: "", size: "small", iconPos: "left", severity: "danger", icon: 'pi pi-trash', onClick: function () {
756
- setSelectedSolidViewData(rowData);
757
- setDeleteEntity(true);
758
- } }));
759
- } }), actionsAllowed.includes("".concat(updatePermission(params.modelName))) && ((_w = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _w === void 0 ? void 0 : _w.edit) !== false &&
760
- _jsx(Column, { frozen: true, alignFrozen: "right", body: function (rowData) {
761
- var _a, _b, _c, _d;
762
- return ((rowData === null || rowData === void 0 ? void 0 : rowData.deletedAt) ? (_jsx("a", { onClick: function (event) { event.stopPropagation(); recoverById(rowData.id); }, className: "retrieve-button", children: _jsx("i", { className: "pi pi-refresh", style: { fontSize: "1rem" } }) })) :
763
- _jsx(_Fragment, { children: ((_a = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _a === void 0 ? void 0 : _a.showRowContextMenu) !== false &&
764
- _jsxs(_Fragment, { children: [detailsBodyTemplate(rowData), _jsx(OverlayPanel, { ref: op, className: "solid-custom-overlay", style: { top: 10, minWidth: 120 }, children: _jsxs("div", { className: "flex flex-column gap-1 p-1", children: [(solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs.showDefaultEditButton) !== false && (solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs.showRowEditInContextMenu) !== false &&
765
- _jsx(Button, { type: "button", className: "w-full text-left gap-1", label: "Edit", size: "small", iconPos: "left", icon: "pi pi-pencil", onClick: function () {
766
- if (params.embeded == true) {
767
- params.handlePopUpOpen(selectedSolidViewData === null || selectedSolidViewData === void 0 ? void 0 : selectedSolidViewData.id);
768
- }
769
- else {
770
- router.push("".concat(editButtonUrl, "/").concat(selectedSolidViewData === null || selectedSolidViewData === void 0 ? void 0 : selectedSolidViewData.id, "?viewMode=edit"));
771
- }
772
- } }), actionsAllowed.includes("".concat(deletePermission(params.modelName))) && ((_b = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _b === void 0 ? void 0 : _b.delete) !== false && (solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs.showRowDeleteInContextMenu) !== false &&
773
- _jsx(Button, { text: true, type: "button", className: "w-full text-left gap-1", label: "Delete", size: "small", iconPos: "left", severity: "danger", icon: 'pi pi-trash', onClick: function () { return setDeleteEntity(true); } }), (_d = (_c = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _c === void 0 ? void 0 : _c.rowButtons) === null || _d === void 0 ? void 0 : _d.filter(function (rb) { return rb.attrs.actionInContextMenu === true; }).map(function (button, index) { return (_jsx(SolidListViewRowButtonContextMenu, { button: button, params: params, selectedSolidViewData: selectedSolidViewData, solidListViewMetaData: solidListViewMetaData, handleCustomButtonClick: handleCustomButtonClick }, index)); })] }) })] }) }));
774
- } })] }) }), _jsx(Dialog, { visible: isDialogVisible, header: "Confirm Delete", modal: true, footer: function () { return (_jsxs("div", { className: "flex justify-content-center", children: [_jsx(Button, { label: "Yes", icon: "pi pi-check", severity: "danger", autoFocus: true, onClick: deleteBulk }), _jsx(Button, { label: "No", icon: "pi pi-times", onClick: onDeleteClose })] })); }, onHide: function () { return setDialogVisible(false); }, children: _jsx("p", { children: "Are you sure you want to delete the selected records?" }) }), _jsx(Dialog, { visible: isRecoverDialogVisible, header: "Confirm Recover", modal: true, footer: function () { return (_jsxs("div", { className: "flex justify-content-center", children: [_jsx(Button, { label: "Yes", icon: "pi pi-check", severity: "danger", autoFocus: true, onClick: recoverAll }), _jsx(Button, { label: "No", icon: "pi pi-times", onClick: function () { return setRecoverDialogVisible(false); } })] })); }, onHide: function () { return setRecoverDialogVisible(false); }, children: _jsx("p", { children: "Are you sure you want to recover all records?" }) }), listViewRowActionData &&
734
+ var roles = ((_a = rb === null || rb === void 0 ? void 0 : rb.attrs) === null || _a === void 0 ? void 0 : _a.roles) || [];
735
+ var isInContextMenu = rb.attrs.actionInContextMenu === true;
736
+ // Only check hasAnyRole if roles are provided
737
+ var isAllowed = roles.length === 0 || hasAnyRole((_b = user === null || user === void 0 ? void 0 : user.user) === null || _b === void 0 ? void 0 : _b.roles, roles);
738
+ return !isInContextMenu && isAllowed;
739
+ }).map(function (button, index) {
740
+ // const hasRole = button.attrs.roles && button.attrs.roles.length > 0 ? useHasAnyRole(button.attrs.roles) : true;
741
+ // if (!hasRole) return null;
742
+ return (_jsx(Column, { header: button.attrs.label, body: function (rowData) {
743
+ var _a, _b;
744
+ return (_jsx(Button, { text: true, type: "button", className: "", label: button.attrs.showLabel !== false ? button.attrs.label : '', size: "small", iconPos: "left", icon: ((_a = button === null || button === void 0 ? void 0 : button.attrs) === null || _a === void 0 ? void 0 : _a.className) ? (_b = button === null || button === void 0 ? void 0 : button.attrs) === null || _b === void 0 ? void 0 : _b.className : "pi pi-pencil", onClick: function () {
745
+ var event = {
746
+ params: params,
747
+ rowData: rowData,
748
+ solidListViewMetaData: solidListViewMetaData.data
749
+ };
750
+ handleCustomButtonClick(button.attrs, event);
751
+ } }));
752
+ } }, index));
753
+ })), actionsAllowed.includes("".concat(updatePermission(params.modelName))) && ((_z = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _z === void 0 ? void 0 : _z.edit) !== false && ((_0 = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _0 === void 0 ? void 0 : _0.showRowEditInContextMenu) === false &&
754
+ _jsx(Column, { header: "Edit", body: function (rowData) {
755
+ return (_jsx(Button, { text: true, type: "button", severity: "secondary", className: "", label: "", size: "small", iconPos: "left", icon: "pi pi-pencil", onClick: function () {
756
+ if (params.embeded == true) {
757
+ params.handlePopUpOpen(rowData === null || rowData === void 0 ? void 0 : rowData.id);
758
+ }
759
+ else {
760
+ router.push("".concat(editButtonUrl, "/").concat(rowData === null || rowData === void 0 ? void 0 : rowData.id, "?viewMode=edit"));
761
+ }
762
+ } }));
763
+ } }), actionsAllowed.includes("".concat(deletePermission(params.modelName))) && ((_1 = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _1 === void 0 ? void 0 : _1.delete) !== false && ((_2 = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _2 === void 0 ? void 0 : _2.showRowDeleteInContextMenu) === false &&
764
+ _jsx(Column, { header: "Delete", body: function (rowData) {
765
+ return (_jsx(Button, { text: true, type: "button", className: "", size: "small", iconPos: "left", severity: "danger", icon: 'pi pi-trash', onClick: function () {
766
+ setSelectedSolidViewData(rowData);
767
+ setDeleteEntity(true);
768
+ } }));
769
+ } }), actionsAllowed.includes("".concat(updatePermission(params.modelName))) && ((_3 = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _3 === void 0 ? void 0 : _3.edit) !== false &&
770
+ _jsx(Column, { frozen: true, alignFrozen: "right", body: function (rowData) {
771
+ var _a, _b, _c, _d;
772
+ return ((rowData === null || rowData === void 0 ? void 0 : rowData.deletedAt) ? (_jsx("a", { onClick: function (event) { event.stopPropagation(); recoverById(rowData.id); }, className: "retrieve-button", children: _jsx("i", { className: "pi pi-refresh", style: { fontSize: "1rem" } }) })) :
773
+ _jsx(_Fragment, { children: ((_a = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _a === void 0 ? void 0 : _a.showRowContextMenu) !== false &&
774
+ _jsxs(_Fragment, { children: [detailsBodyTemplate(rowData), _jsx(OverlayPanel, { ref: op, className: "solid-custom-overlay", style: { top: 10, minWidth: 120 }, children: _jsxs("div", { className: "flex flex-column gap-1 p-1", children: [(solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs.showDefaultEditButton) !== false && (solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs.showRowEditInContextMenu) !== false &&
775
+ _jsx(Button, { type: "button", className: "w-full text-left gap-1", label: "Edit", size: "small", iconPos: "left", icon: "pi pi-pencil", onClick: function () {
776
+ if (params.embeded == true) {
777
+ params.handlePopUpOpen(selectedSolidViewData === null || selectedSolidViewData === void 0 ? void 0 : selectedSolidViewData.id);
778
+ }
779
+ else {
780
+ router.push("".concat(editButtonUrl, "/").concat(selectedSolidViewData === null || selectedSolidViewData === void 0 ? void 0 : selectedSolidViewData.id, "?viewMode=edit"));
781
+ }
782
+ } }), actionsAllowed.includes("".concat(deletePermission(params.modelName))) && ((_b = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _b === void 0 ? void 0 : _b.delete) !== false && (solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs.showRowDeleteInContextMenu) !== false &&
783
+ _jsx(Button, { text: true, type: "button", className: "w-full text-left gap-1", label: "Delete", size: "small", iconPos: "left", severity: "danger", icon: 'pi pi-trash', onClick: function () { return setDeleteEntity(true); } }), (_d = (_c = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _c === void 0 ? void 0 : _c.rowButtons) === null || _d === void 0 ? void 0 : _d.filter(function (rb) { return rb.attrs.actionInContextMenu === true; }).map(function (button, index) { return (_jsx(SolidListViewRowButtonContextMenu, { button: button, params: params, selectedSolidViewData: selectedSolidViewData, solidListViewMetaData: solidListViewMetaData, handleCustomButtonClick: handleCustomButtonClick }, index)); })] }) })] }) }));
784
+ } })] }) }), _jsx(Dialog, { visible: isDialogVisible, header: "Confirm Delete", modal: true, footer: function () { return (_jsxs("div", { className: "flex justify-content-center", children: [_jsx(Button, { label: "Yes", icon: "pi pi-check", severity: "danger", autoFocus: true, onClick: deleteBulk }), _jsx(Button, { label: "No", icon: "pi pi-times", onClick: onDeleteClose })] })); }, onHide: function () { return setDialogVisible(false); }, children: _jsx("p", { children: "Are you sure you want to delete the selected records?" }) }), _jsx(Dialog, { visible: isRecoverDialogVisible, header: "Confirm Recover", modal: true, footer: function () { return (_jsxs("div", { className: "flex justify-content-center", children: [_jsx(Button, { label: "Yes", icon: "pi pi-check", severity: "danger", autoFocus: true, onClick: recoverAll }), _jsx(Button, { label: "No", icon: "pi pi-times", onClick: function () { return setRecoverDialogVisible(false); } })] })); }, onHide: function () { return setRecoverDialogVisible(false); }, children: _jsx("p", { children: "Are you sure you want to recover all records?" }) }), listViewRowActionData &&
775
785
  _jsx(Dialog, { visible: listViewRowActionPopupState, modal: true, onHide: closeListViewRowActionPopup, children: _jsx(ListViewRowActionPopup, { context: listViewRowActionData }) }), _jsxs(Dialog, { header: "Delete ".concat(params === null || params === void 0 ? void 0 : params.modelName), headerClassName: "py-2", contentClassName: "px-0 pb-0", visible: deleteEntity, style: { width: '20vw' }, onHide: function () { if (!deleteEntity)
776
786
  return; setDeleteEntity(false); }, children: [_jsx(Divider, { className: "m-0" }), _jsxs("div", { className: "p-4", children: [_jsx("p", { className: "m-0 solid-primary-title", style: { fontSize: 16 }, children: "Are you sure you want to delete this ".concat(params === null || params === void 0 ? void 0 : params.modelName, "?") }), _jsxs("div", { className: "flex align-items-center gap-2 mt-3", children: [_jsx(Button, { label: "Delete", size: "small", onClick: function () { deleteSolidSingleEntiry(selectedSolidViewData === null || selectedSolidViewData === void 0 ? void 0 : selectedSolidViewData.id); setDeleteEntity(false); } }), _jsx(Button, { label: "Cancel", size: "small", onClick: function () { return setDeleteEntity(false); }, outlined: true, className: 'bg-primary-reverse' })] })] })] }), openLightbox &&
777
787
  _jsx(Lightbox, { open: openLightbox, plugins: [Counter, Download], close: function () { return setOpenLightbox(false); }, slides: lightboxUrls })] }));