@addsign/moje-agenda-shared-lib 1.0.13 → 1.0.15
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 +14 -0
- package/dist/components/ConfirmationModalDialog.js +11 -2
- package/dist/components/ConfirmationModalDialog.js.map +1 -1
- package/dist/components/form/AutocompleteSearchBar.js +3 -3
- package/dist/components/form/AutocompleteSearchBar.js.map +1 -1
- package/dist/components/form/AutocompleteSearchBarServer.d.ts +20 -0
- package/dist/components/form/AutocompleteSearchBarServer.js +207 -0
- package/dist/components/form/AutocompleteSearchBarServer.js.map +1 -0
- package/dist/components/form/DateField.js +2 -2
- package/dist/components/form/DateField.js.map +1 -1
- package/dist/components/form/DateRangeField.js +19 -2
- package/dist/components/form/DateRangeField.js.map +1 -1
- package/dist/components/form/FileInput.js +17 -3
- package/dist/components/form/FileInput.js.map +1 -1
- package/dist/components/form/FormField.js +25 -4
- package/dist/components/form/FormField.js.map +1 -1
- package/dist/components/form/InputField.d.ts +3 -2
- package/dist/components/form/InputField.js +47 -20
- package/dist/components/form/InputField.js.map +1 -1
- package/dist/components/form/PositionsSelectorSingle.js +1 -1
- package/dist/components/form/SelectField.d.ts +1 -1
- package/dist/components/form/SelectField.js +41 -17
- package/dist/components/form/SelectField.js.map +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.js +32 -30
- package/dist/main.js.map +1 -1
- package/dist/types.d.ts +3 -0
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/assets/tailwind.css
CHANGED
|
@@ -958,6 +958,9 @@ video {
|
|
|
958
958
|
.flex-none {
|
|
959
959
|
flex: none;
|
|
960
960
|
}
|
|
961
|
+
.flex-shrink {
|
|
962
|
+
flex-shrink: 1;
|
|
963
|
+
}
|
|
961
964
|
.shrink {
|
|
962
965
|
flex-shrink: 1;
|
|
963
966
|
}
|
|
@@ -1175,6 +1178,10 @@ video {
|
|
|
1175
1178
|
border-top-right-radius: 9999px;
|
|
1176
1179
|
border-bottom-right-radius: 9999px;
|
|
1177
1180
|
}
|
|
1181
|
+
.rounded-r-lg {
|
|
1182
|
+
border-top-right-radius: 0.5rem;
|
|
1183
|
+
border-bottom-right-radius: 0.5rem;
|
|
1184
|
+
}
|
|
1178
1185
|
.border {
|
|
1179
1186
|
border-width: 1px;
|
|
1180
1187
|
}
|
|
@@ -1716,6 +1723,9 @@ video {
|
|
|
1716
1723
|
.pl-2 {
|
|
1717
1724
|
padding-left: 0.5rem;
|
|
1718
1725
|
}
|
|
1726
|
+
.pl-3 {
|
|
1727
|
+
padding-left: 0.75rem;
|
|
1728
|
+
}
|
|
1719
1729
|
.pl-4 {
|
|
1720
1730
|
padding-left: 1rem;
|
|
1721
1731
|
}
|
|
@@ -3567,6 +3577,10 @@ video {
|
|
|
3567
3577
|
|
|
3568
3578
|
@media (min-width: 1280px) {
|
|
3569
3579
|
|
|
3580
|
+
.xl\:\!min-h-\[32px\] {
|
|
3581
|
+
min-height: 32px !important;
|
|
3582
|
+
}
|
|
3583
|
+
|
|
3570
3584
|
.xl\:min-h-7 {
|
|
3571
3585
|
min-height: 1.75rem;
|
|
3572
3586
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect } from "react";
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
3
|
import { F as FaRegTrashAlt } from "../index-DH-TC1O6.js";
|
|
4
4
|
import { G as GenIcon } from "../iconBase-B8_TsgYI.js";
|
|
5
5
|
import Button from "./Button.js";
|
|
@@ -14,6 +14,7 @@ function ConfirmationModalDialog({
|
|
|
14
14
|
agreeeText,
|
|
15
15
|
cancelText
|
|
16
16
|
}) {
|
|
17
|
+
const [isConfirming, setIsConfirming] = useState(false);
|
|
17
18
|
useEffect(() => {
|
|
18
19
|
const handleKeyDown = (event) => {
|
|
19
20
|
if (event.key === "Escape") {
|
|
@@ -78,6 +79,7 @@ function ConfirmationModalDialog({
|
|
|
78
79
|
/* @__PURE__ */ jsx(
|
|
79
80
|
Button,
|
|
80
81
|
{
|
|
82
|
+
id: "ConfirmationModalDialog:back",
|
|
81
83
|
type: "button",
|
|
82
84
|
variant: "secondary",
|
|
83
85
|
onClick: cancelAction,
|
|
@@ -88,9 +90,16 @@ function ConfirmationModalDialog({
|
|
|
88
90
|
/* @__PURE__ */ jsxs(
|
|
89
91
|
Button,
|
|
90
92
|
{
|
|
93
|
+
id: "ConfirmationModalDialog:agree",
|
|
91
94
|
type: "button",
|
|
92
95
|
variant: "danger",
|
|
93
|
-
onClick:
|
|
96
|
+
onClick: () => {
|
|
97
|
+
if (!isConfirming) {
|
|
98
|
+
setIsConfirming(true);
|
|
99
|
+
confirmAction();
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
disabled: isConfirming,
|
|
94
103
|
className: "flex-1",
|
|
95
104
|
children: [
|
|
96
105
|
agreeeText || "OK",
|