allaw-ui 4.9.3 → 4.9.5
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.
|
@@ -69,6 +69,12 @@ var SingleFilter = function (_a) {
|
|
|
69
69
|
setFilter(selectedValue);
|
|
70
70
|
}
|
|
71
71
|
}, [selectedValue, setFilter, multiSelect]);
|
|
72
|
+
// Sync with external defaultSelectedValue changes
|
|
73
|
+
useEffect(function () {
|
|
74
|
+
if (defaultSelectedValue !== undefined) {
|
|
75
|
+
setSelectedValue(defaultSelectedValue);
|
|
76
|
+
}
|
|
77
|
+
}, [defaultSelectedValue]);
|
|
72
78
|
useEffect(function () {
|
|
73
79
|
var handleClickOutside = function (event) {
|
|
74
80
|
if (filterRef.current &&
|
|
@@ -165,3 +165,26 @@
|
|
|
165
165
|
.document-card.with-shadow {
|
|
166
166
|
box-shadow: 0px 1px 9px 0px rgba(15, 133, 168, 0.08);
|
|
167
167
|
}
|
|
168
|
+
|
|
169
|
+
/* Asked state with dashed borders */
|
|
170
|
+
.document-card.asked {
|
|
171
|
+
border: 2px dashed rgba(37, 190, 235, 0.4);
|
|
172
|
+
background: rgba(37, 190, 235, 0.02);
|
|
173
|
+
position: relative;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.document-card.asked::before {
|
|
177
|
+
border: none;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.document-card.asked:hover {
|
|
181
|
+
border: 2px dashed var(--bleu-allaw, #25beeb);
|
|
182
|
+
background: rgba(37, 190, 235, 0.05);
|
|
183
|
+
box-shadow: 0 6px 18px 0 rgba(37, 190, 235, 0.15), 0 2px 8px 0 rgba(37, 190, 235, 0.1);
|
|
184
|
+
transform: scale(1.01) translateY(-2px);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.document-card.asked:active {
|
|
188
|
+
background: rgba(37, 190, 235, 0.08);
|
|
189
|
+
border: 2px dashed var(--bleu-allaw, #25beeb);
|
|
190
|
+
}
|
|
@@ -4,7 +4,7 @@ export interface DocumentCardProps {
|
|
|
4
4
|
type: "document" | "note" | "invoice" | "waiting" | "payment" | undefined;
|
|
5
5
|
title: string;
|
|
6
6
|
date: Date | undefined;
|
|
7
|
-
status: "sent" | "received" | "refunded" | "partialyRefunded" | "internal" | "notRequired" | "waiting" | "expired" | "canceled" | "failed" | "processing" | "maxAttemptsReached" | "clea";
|
|
7
|
+
status: "sent" | "received" | "refunded" | "partialyRefunded" | "internal" | "notRequired" | "waiting" | "expired" | "canceled" | "failed" | "processing" | "maxAttemptsReached" | "clea" | "asked";
|
|
8
8
|
documents?: {
|
|
9
9
|
[key: string]: boolean;
|
|
10
10
|
};
|
|
@@ -48,6 +48,8 @@ var DocumentCard = function (_a) {
|
|
|
48
48
|
return "ÉCHOUÉ";
|
|
49
49
|
case "clea":
|
|
50
50
|
return "REÇU DE CLÉA";
|
|
51
|
+
case "asked":
|
|
52
|
+
return "DEMANDÉ";
|
|
51
53
|
default:
|
|
52
54
|
return "INTERNE";
|
|
53
55
|
}
|
|
@@ -84,6 +86,7 @@ var DocumentCard = function (_a) {
|
|
|
84
86
|
case "notRequired":
|
|
85
87
|
case "waiting":
|
|
86
88
|
case "clea":
|
|
89
|
+
case "asked":
|
|
87
90
|
return "blue";
|
|
88
91
|
case "processing":
|
|
89
92
|
return "orange";
|
|
@@ -111,7 +114,7 @@ var DocumentCard = function (_a) {
|
|
|
111
114
|
React.createElement(IconButton, { style: "smallFilled", iconName: "allaw-icon-document" }),
|
|
112
115
|
React.createElement("span", { className: "document-count" }, documentCount))));
|
|
113
116
|
}
|
|
114
|
-
return (React.createElement("div", { className: "document-card".concat(shadow ? " with-shadow" : ""), onClick: function () { return onCardClick && onCardClick(); }, style: { cursor: onCardClick ? "pointer" : "default" } },
|
|
117
|
+
return (React.createElement("div", { className: "document-card".concat(shadow ? " with-shadow" : "").concat(status === "asked" ? " asked" : ""), onClick: function () { return onCardClick && onCardClick(); }, style: { cursor: onCardClick ? "pointer" : "default" } },
|
|
115
118
|
React.createElement("div", { className: "document-card-left" },
|
|
116
119
|
React.createElement(IconButton, { style: "largeFilled", iconName: getIconName(), color: type == "payment" ? "#25BEEB" : "inherit" }),
|
|
117
120
|
React.createElement("div", { className: "document-card-info" },
|