@addsign/moje-agenda-shared-lib 0.0.95 → 0.0.97
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 +6 -3
- package/dist/components/Calendar.js +1 -1
- package/dist/components/ConfirmationModalDialog.js +1 -1
- package/dist/components/Modal.d.ts +8 -0
- package/dist/components/Modal.js +72 -0
- package/dist/components/Modal.js.map +1 -0
- package/dist/components/datatable/DataTableServer.js +3 -3
- package/dist/components/datatable/DataTableServer.js.map +1 -1
- package/dist/components/form/AutocompleteSearchBar.js +0 -5
- package/dist/components/form/AutocompleteSearchBar.js.map +1 -1
- package/dist/components/form/FormField.js +1 -0
- package/dist/components/form/FormField.js.map +1 -1
- package/dist/{index-DUTU8Jwr.js → index-DaPOQQEd.js} +4 -4
- package/dist/{index-DUTU8Jwr.js.map → index-DaPOQQEd.js.map} +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.js +2 -0
- package/dist/main.js.map +1 -1
- package/dist/utils/hasRightInModule.js +4 -1
- package/dist/utils/hasRightInModule.js.map +1 -1
- package/package.json +1 -1
package/dist/assets/tailwind.css
CHANGED
|
@@ -828,6 +828,9 @@ video {
|
|
|
828
828
|
.h-80 {
|
|
829
829
|
height: 20rem;
|
|
830
830
|
}
|
|
831
|
+
.h-\[300px\] {
|
|
832
|
+
height: 300px;
|
|
833
|
+
}
|
|
831
834
|
.h-\[400px\] {
|
|
832
835
|
height: 400px;
|
|
833
836
|
}
|
|
@@ -909,6 +912,9 @@ video {
|
|
|
909
912
|
.w-\[20px\] {
|
|
910
913
|
width: 20px;
|
|
911
914
|
}
|
|
915
|
+
.w-\[500px\] {
|
|
916
|
+
width: 500px;
|
|
917
|
+
}
|
|
912
918
|
.w-\[calc\(100\%-40px\)\] {
|
|
913
919
|
width: calc(100% - 40px);
|
|
914
920
|
}
|
|
@@ -1667,9 +1673,6 @@ video {
|
|
|
1667
1673
|
.pl-2 {
|
|
1668
1674
|
padding-left: 0.5rem;
|
|
1669
1675
|
}
|
|
1670
|
-
.pl-3 {
|
|
1671
|
-
padding-left: 0.75rem;
|
|
1672
|
-
}
|
|
1673
1676
|
.pl-4 {
|
|
1674
1677
|
padding-left: 1rem;
|
|
1675
1678
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { useState, useEffect, useCallback } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { a as FaChevronLeft, b as FaChevronRight } from "../index-DaPOQQEd.js";
|
|
4
4
|
const Calendar = ({
|
|
5
5
|
items,
|
|
6
6
|
startingDate,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { F as FaRegTrashAlt } from "../index-DaPOQQEd.js";
|
|
4
4
|
import { G as GenIcon } from "../iconBase-B8_TsgYI.js";
|
|
5
5
|
import Button from "./Button.js";
|
|
6
6
|
function IoCloseOutline(props) {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface IConfirmationModalDialogProps {
|
|
2
|
+
title: string;
|
|
3
|
+
confirmAction: () => void;
|
|
4
|
+
description?: string;
|
|
5
|
+
agreeeText?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function Modal({ title, confirmAction, description, agreeeText, }: IConfirmationModalDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default Modal;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { F as FaRegTrashAlt } from "../index-DaPOQQEd.js";
|
|
3
|
+
import Button from "./Button.js";
|
|
4
|
+
function Modal({
|
|
5
|
+
title,
|
|
6
|
+
confirmAction,
|
|
7
|
+
description,
|
|
8
|
+
agreeeText = "OK"
|
|
9
|
+
}) {
|
|
10
|
+
return /* @__PURE__ */ jsx(
|
|
11
|
+
"div",
|
|
12
|
+
{
|
|
13
|
+
className: "fixed inset-0 bg-black bg-opacity-25 flex items-center justify-center p-4",
|
|
14
|
+
style: { zIndex: 50 },
|
|
15
|
+
children: /* @__PURE__ */ jsxs("div", { className: "w-[500px] h-[300px] bg-white rounded-xl shadow flex-col justify-start items-center inline-flex relative overflow-hidden", children: [
|
|
16
|
+
/* @__PURE__ */ jsx(
|
|
17
|
+
"div",
|
|
18
|
+
{
|
|
19
|
+
id: "graphics",
|
|
20
|
+
className: "w-80 h-80 left-[-120px] top-[-120px] absolute ",
|
|
21
|
+
children: /* @__PURE__ */ jsxs("div", { className: "w-80 h-80 left-0 top-0 absolute", children: [
|
|
22
|
+
/* @__PURE__ */ jsx("div", { className: "w-24 h-24 left-[120px] top-[120px] absolute rounded-full border border-gray-150" }),
|
|
23
|
+
/* @__PURE__ */ jsx("div", { className: "w-36 h-36 left-[96px] top-[96px] absolute rounded-full border border-gray-100 " }),
|
|
24
|
+
/* @__PURE__ */ jsx("div", { className: "w-48 h-48 left-[72px] top-[72px] absolute rounded-full border border-gray-100 " }),
|
|
25
|
+
/* @__PURE__ */ jsx("div", { className: "w-60 h-60 left-[48px] top-[48px] absolute rounded-full border border-gray-50 " }),
|
|
26
|
+
/* @__PURE__ */ jsx("div", { className: "w-72 h-72 left-[24px] top-[24px] absolute rounded-full border border-gray-50" })
|
|
27
|
+
] })
|
|
28
|
+
}
|
|
29
|
+
),
|
|
30
|
+
/* @__PURE__ */ jsx(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
id: "header",
|
|
34
|
+
className: "self-stretch h-40 flex-col justify-start items-center flex z-40",
|
|
35
|
+
children: /* @__PURE__ */ jsxs("div", { className: "self-stretch h-40 px-6 pt-6 flex-col justify-start items-start gap-4 flex", children: [
|
|
36
|
+
/* @__PURE__ */ jsx("div", { className: "w-12 h-12 relative bg-red-100 rounded-full", children: /* @__PURE__ */ jsx(FaRegTrashAlt, { className: "w-6 h-6 left-[12px] top-[12px] absolute" }) }),
|
|
37
|
+
/* @__PURE__ */ jsxs("div", { className: "self-stretch h-16 flex-col justify-start items-start gap-1 flex", children: [
|
|
38
|
+
/* @__PURE__ */ jsx("div", { className: "self-stretch text-gray-900 text-lg font-semibold font-['Inter'] leading-7", children: title }),
|
|
39
|
+
/* @__PURE__ */ jsx("div", { className: "self-stretch text-slate-600 text-sm font-normal font-['Open Sans'] leading-tight", children: description })
|
|
40
|
+
] })
|
|
41
|
+
] })
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
/* @__PURE__ */ jsx(
|
|
45
|
+
"div",
|
|
46
|
+
{
|
|
47
|
+
id: "actions",
|
|
48
|
+
className: "self-stretch h-24 pt-8 flex-col justify-start items-start flex z-40",
|
|
49
|
+
children: /* @__PURE__ */ jsx("div", { className: "self-stretch px-6 pb-6 justify-start items-start gap-3 flex", children: /* @__PURE__ */ jsxs(
|
|
50
|
+
Button,
|
|
51
|
+
{
|
|
52
|
+
type: "button",
|
|
53
|
+
variant: "primary",
|
|
54
|
+
onClick: confirmAction,
|
|
55
|
+
className: "flex-1",
|
|
56
|
+
children: [
|
|
57
|
+
agreeeText || "OK",
|
|
58
|
+
" "
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
) })
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
] })
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
Modal,
|
|
70
|
+
Modal as default
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=Modal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Modal.js","sources":["../../lib/components/Modal.tsx"],"sourcesContent":["import { FaRegTrashAlt } from \"react-icons/fa\";\nimport Button from \"./Button\";\n\nexport interface IConfirmationModalDialogProps {\n title: string;\n confirmAction: () => void;\n description?: string;\n agreeeText?: string;\n}\n\nexport function Modal({\n title,\n confirmAction,\n description,\n agreeeText = \"OK\",\n}: IConfirmationModalDialogProps) {\n return (\n <div\n className=\"fixed inset-0 bg-black bg-opacity-25 flex items-center justify-center p-4\"\n style={{ zIndex: 50 }}\n >\n <div className=\"w-[500px] h-[300px] bg-white rounded-xl shadow flex-col justify-start items-center inline-flex relative overflow-hidden\">\n <div\n id=\"graphics\"\n className=\"w-80 h-80 left-[-120px] top-[-120px] absolute \"\n >\n <div className=\"w-80 h-80 left-0 top-0 absolute\">\n <div className=\"w-24 h-24 left-[120px] top-[120px] absolute rounded-full border border-gray-150\" />\n <div className=\"w-36 h-36 left-[96px] top-[96px] absolute rounded-full border border-gray-100 \" />\n <div className=\"w-48 h-48 left-[72px] top-[72px] absolute rounded-full border border-gray-100 \" />\n <div className=\"w-60 h-60 left-[48px] top-[48px] absolute rounded-full border border-gray-50 \" />\n <div className=\"w-72 h-72 left-[24px] top-[24px] absolute rounded-full border border-gray-50\" />\n </div>\n </div>\n <div\n id=\"header\"\n className=\"self-stretch h-40 flex-col justify-start items-center flex z-40\"\n >\n <div className=\"self-stretch h-40 px-6 pt-6 flex-col justify-start items-start gap-4 flex\">\n <div className=\"w-12 h-12 relative bg-red-100 rounded-full\">\n <FaRegTrashAlt className=\"w-6 h-6 left-[12px] top-[12px] absolute\" />\n </div>\n <div className=\"self-stretch h-16 flex-col justify-start items-start gap-1 flex\">\n <div className=\"self-stretch text-gray-900 text-lg font-semibold font-['Inter'] leading-7\">\n {title}\n </div>\n <div className=\"self-stretch text-slate-600 text-sm font-normal font-['Open Sans'] leading-tight\">\n {description}\n </div>\n </div>\n </div>\n </div>\n <div\n id=\"actions\"\n className=\"self-stretch h-24 pt-8 flex-col justify-start items-start flex z-40\"\n >\n <div className=\"self-stretch px-6 pb-6 justify-start items-start gap-3 flex\">\n <Button\n type=\"button\"\n variant=\"primary\"\n onClick={confirmAction}\n className=\"flex-1\"\n >\n {agreeeText || \"OK\"}{\" \"}\n </Button>\n </div>\n </div>\n </div>\n </div>\n );\n}\n\nexport default Mod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C;AAAA,cAAA;AAAA,gBACC,MAAK;AAAA,gBACL,SAAQ;AAAA,gBACR,SAAS;AAAA,gBACT,WAAU;AAAA,gBAET,UAAA;AAAA,kBAAc,cAAA;AAAA,kBAAM;AAAA,gBAAA;AAAA,cAAA;AAAA,YAAA,GAEzB;AAAA,UAAA;AAAA,QACF;AAAA,MAAA,GACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -22062,7 +22062,7 @@ function DataTableServer({
|
|
|
22062
22062
|
options: filterOptions[String(filterParam)] || [],
|
|
22063
22063
|
value: (columnFilters == null ? void 0 : columnFilters[String(filterParam)]) || "",
|
|
22064
22064
|
clearable: true,
|
|
22065
|
-
className: "
|
|
22065
|
+
className: "px-1"
|
|
22066
22066
|
}
|
|
22067
22067
|
),
|
|
22068
22068
|
filterType && filterType !== "select" && /* @__PURE__ */ jsx(
|
|
@@ -22077,7 +22077,7 @@ function DataTableServer({
|
|
|
22077
22077
|
type: filterType,
|
|
22078
22078
|
value: (columnFilters == null ? void 0 : columnFilters[String(filterParam)]) || "",
|
|
22079
22079
|
clearable: true,
|
|
22080
|
-
className: "max-w-[300px] min-w-[100px]
|
|
22080
|
+
className: "max-w-[300px] min-w-[100px] px-1"
|
|
22081
22081
|
}
|
|
22082
22082
|
)
|
|
22083
22083
|
]
|
|
@@ -22152,7 +22152,7 @@ function DataTableServer({
|
|
|
22152
22152
|
"td",
|
|
22153
22153
|
{
|
|
22154
22154
|
onClick: rowAction ? () => rowAction(item) : void 0,
|
|
22155
|
-
className: `px-3 py-2 cursor-pointer ${colIndex === 0 ? "font-medium text-gray-900" : "text-gray-700"} ${classes || ""}`,
|
|
22155
|
+
className: `px-3 py-2 ${rowAction ? "cursor-pointer" : ""} ${colIndex === 0 ? "font-medium text-gray-900" : "text-gray-700"} ${classes || ""}`,
|
|
22156
22156
|
children: [
|
|
22157
22157
|
render ? render(item) : "",
|
|
22158
22158
|
actions && actions.filter((it) => {
|