arengibook 2.5.4 → 2.5.501
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/index.js +24 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -42656,6 +42656,8 @@ styleInject(css_248z);
|
|
|
42656
42656
|
var Toast = function Toast(_ref) {
|
|
42657
42657
|
var icon = _ref.icon,
|
|
42658
42658
|
message = _ref.message,
|
|
42659
|
+
_ref$enableHtmlConten = _ref.enableHtmlContent,
|
|
42660
|
+
enableHtmlContent = _ref$enableHtmlConten === void 0 ? false : _ref$enableHtmlConten,
|
|
42659
42661
|
_ref$type = _ref.type,
|
|
42660
42662
|
type = _ref$type === void 0 ? "info" : _ref$type,
|
|
42661
42663
|
_ref$size = _ref.size,
|
|
@@ -42764,7 +42766,8 @@ var Toast = function Toast(_ref) {
|
|
|
42764
42766
|
className: "toast-title"
|
|
42765
42767
|
}, title), /*#__PURE__*/React__default.createElement("div", {
|
|
42766
42768
|
className: "toast-message"
|
|
42767
|
-
},
|
|
42769
|
+
}, enableHtmlContent ? /*#__PURE__*/React__default.createElement("div", {
|
|
42770
|
+
className: "toast-html-content",
|
|
42768
42771
|
dangerouslySetInnerHTML: {
|
|
42769
42772
|
__html: message
|
|
42770
42773
|
}
|
|
@@ -42861,10 +42864,15 @@ var showToast = function showToast(props) {
|
|
|
42861
42864
|
toastRef.show({
|
|
42862
42865
|
severity: props.type || 'info',
|
|
42863
42866
|
summary: props.title || '',
|
|
42864
|
-
detail: props.message,
|
|
42865
|
-
life: props.duration || 3000,
|
|
42866
42867
|
sticky: props.sticky,
|
|
42867
|
-
closable: props.closable !== false
|
|
42868
|
+
closable: props.closable !== false,
|
|
42869
|
+
life: props.duration || 3000,
|
|
42870
|
+
content: props.enableHtmlContent ? function () {
|
|
42871
|
+
return /*#__PURE__*/React__default.createElement(Toast, _extends$G({}, props, {
|
|
42872
|
+
autoShow: false
|
|
42873
|
+
}));
|
|
42874
|
+
} : undefined,
|
|
42875
|
+
detail: !props.enableHtmlContent ? props.message : undefined
|
|
42868
42876
|
});
|
|
42869
42877
|
}
|
|
42870
42878
|
}, 0);
|
|
@@ -43008,6 +43016,7 @@ var ToastPresets = {
|
|
|
43008
43016
|
type: "processing",
|
|
43009
43017
|
size: "L",
|
|
43010
43018
|
title: "Tâche en cours",
|
|
43019
|
+
enableHtmlContent: true,
|
|
43011
43020
|
datetimecreation: "12.01.2026 à 11h18",
|
|
43012
43021
|
message: "Le programme a commencé le <strong>{{datetimecreation}}</strong>.\n\n" + "Vous serez averti par mail de la fin de son exécution.\n\n" + "Vous pouvez également suivre son exécution en cliquant sur ce lien.",
|
|
43013
43022
|
closable: true,
|
|
@@ -43054,6 +43063,17 @@ var ToastPresets = {
|
|
|
43054
43063
|
reShowOnPropsChange: true,
|
|
43055
43064
|
sizeSModulable: true,
|
|
43056
43065
|
enablePercentage: true
|
|
43066
|
+
},
|
|
43067
|
+
BackendHtmlContent: {
|
|
43068
|
+
type: "success",
|
|
43069
|
+
size: "L",
|
|
43070
|
+
title: "Résultat du traitement",
|
|
43071
|
+
enableHtmlContent: true,
|
|
43072
|
+
message: "\n <div style=\"display:flex; flex-direction:column; gap:0.75rem;\">\n <strong style=\"color:#16a34a;\">\n \u2714 Traitement termin\xE9 avec succ\xE8s\n </strong>\n\n <p>\n Le fichier a \xE9t\xE9 g\xE9n\xE9r\xE9 par le backend Symfony.\n </p>\n\n <a\n href=\"https://example.com/result\"\n target=\"_blank\"\n style=\"color:#2563eb; text-decoration:underline;\"\n >\n Voir le r\xE9sultat\n </a>\n\n <button\n style=\"\n margin-top:0.5rem;\n padding:0.4rem 0.75rem;\n background:#2563eb;\n color:white;\n border:none;\n border-radius:4px;\n cursor:pointer;\n \"\n onclick=\"alert('T\xE9l\xE9chargement d\xE9clench\xE9')\"\n >\n T\xE9l\xE9charger\n </button>\n </div>\n ",
|
|
43073
|
+
sticky: true,
|
|
43074
|
+
closable: true,
|
|
43075
|
+
autoShow: true,
|
|
43076
|
+
reShowOnPropsChange: true
|
|
43057
43077
|
}
|
|
43058
43078
|
};
|
|
43059
43079
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arengibook",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.5.
|
|
4
|
+
"version": "2.5.501",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
],
|
|
14
14
|
"scripts": {
|
|
15
15
|
"dev": "vite",
|
|
16
|
-
"build": "rollup -
|
|
16
|
+
"build": "rollup -c",
|
|
17
17
|
"lint": "eslint .",
|
|
18
18
|
"preview": "vite preview",
|
|
19
19
|
"storybook": "storybook dev -p 6006",
|