@addsign/moje-agenda-shared-lib 0.0.93 → 0.0.95
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/assets/tailwind.css +0 -3
- package/dist/components/datatable/DataTableServer.d.ts +2 -1
- package/dist/components/datatable/DataTableServer.js +3 -2
- package/dist/components/datatable/DataTableServer.js.map +1 -1
- package/dist/components/form/AutocompleteSearchBar.js +3 -1
- package/dist/components/form/AutocompleteSearchBar.js.map +1 -1
- package/dist/main.d.ts +2 -0
- package/dist/main.js +4 -0
- package/dist/main.js.map +1 -1
- package/dist/types.d.ts +28 -1
- package/dist/types.js.map +1 -1
- package/dist/utils/hasRightInModule.d.ts +4 -0
- package/dist/utils/hasRightInModule.js +13 -0
- package/dist/utils/hasRightInModule.js.map +1 -0
- package/dist/utils/hasRole.d.ts +4 -0
- package/dist/utils/hasRole.js +7 -0
- package/dist/utils/hasRole.js.map +1 -0
- package/package.json +1 -1
package/dist/assets/tailwind.css
CHANGED
|
@@ -13,6 +13,7 @@ interface DataTableServerProps<T> {
|
|
|
13
13
|
title?: string;
|
|
14
14
|
subtitle?: string;
|
|
15
15
|
allowSearch?: boolean;
|
|
16
|
+
showHeader?: boolean;
|
|
16
17
|
rowAction?: (item: T) => void;
|
|
17
18
|
bulkActions?: BulkAction<T>[];
|
|
18
19
|
filters?: object;
|
|
@@ -21,5 +22,5 @@ type DataTableInternalItems = {
|
|
|
21
22
|
_isHighlighted?: boolean;
|
|
22
23
|
id: string;
|
|
23
24
|
};
|
|
24
|
-
declare function DataTableServer<T extends DataTableInternalItems>({ id, url, columns, itemsPerPage, title, subtitle, allowSearch, rowAction, bulkActions, filters, }: DataTableServerProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
declare function DataTableServer<T extends DataTableInternalItems>({ id, url, columns, itemsPerPage, title, subtitle, allowSearch, showHeader, rowAction, bulkActions, filters, }: DataTableServerProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
25
26
|
export default DataTableServer;
|
|
@@ -21688,7 +21688,8 @@ function DataTableServer({
|
|
|
21688
21688
|
itemsPerPage = 10,
|
|
21689
21689
|
title,
|
|
21690
21690
|
subtitle,
|
|
21691
|
-
allowSearch =
|
|
21691
|
+
allowSearch = false,
|
|
21692
|
+
showHeader = true,
|
|
21692
21693
|
rowAction,
|
|
21693
21694
|
bulkActions,
|
|
21694
21695
|
filters
|
|
@@ -21976,7 +21977,7 @@ function DataTableServer({
|
|
|
21976
21977
|
className: "shadow-lg border border-gray-200 rounded-xl",
|
|
21977
21978
|
style: { overflowY: "visible" },
|
|
21978
21979
|
children: [
|
|
21979
|
-
|
|
21980
|
+
showHeader && /* @__PURE__ */ jsxs("div", { className: "p-5 leading-9 flex", children: [
|
|
21980
21981
|
/* @__PURE__ */ jsxs("div", { className: "flex-grow", children: [
|
|
21981
21982
|
title && /* @__PURE__ */ jsx("h1", { className: "font-semibold text-xl leading-[42px]", children: title }),
|
|
21982
21983
|
subtitle && /* @__PURE__ */ jsx("p", { className: "font-normal text-gray-600", children: subtitle })
|