arengibook 3.4.4-main → 3.4.5-main
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 +276 -31
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47840,7 +47840,7 @@ var Toast$1 = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (in
|
|
|
47840
47840
|
}));
|
|
47841
47841
|
Toast$1.displayName = 'Toast';
|
|
47842
47842
|
|
|
47843
|
-
var css_248z$4 = "@keyframes fadeIn {\n from {\n opacity: 0;\n transform: scale(0.85);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n@keyframes toastSlideIn {\n from {\n opacity: 0;\n transform: translateX(40px);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n}\n@keyframes toastIconPop {\n 0% {\n transform: scale(0);\n opacity: 0;\n }\n 60% {\n transform: scale(1.2);\n opacity: 1;\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes toastTextSlide {\n from {\n opacity: 0;\n transform: translateY(6px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n.p-toast.p-toast-top-right,\n.p-toast.p-toast-top-left,\n.p-toast.p-toast-top-center {\n top: 58px !important;\n}\n\n.p-toast.p-toast-top-right,\n.p-toast.p-toast-bottom-right {\n right: 0 !important;\n}\n\n.p-toast.p-toast-top-left,\n.p-toast.p-toast-bottom-left {\n left: 0 !important;\n}\n\n.p-toast .p-toast-message {\n margin-bottom: 8px;\n}\n\n.p-toast-message {\n font-family: \"Roboto\", sans-serif;\n position: relative;\n height: auto;\n border: none;\n border-radius: 4px;\n background: #151f26 !important;\n color: #eef4f6;\n overflow: hidden;\n isolation: isolate;\n box-shadow: 0 4px 14px rgba(0, 0, 0, 0.38), 0 0 22px -12px var(--toast-accent), inset 0 1px 0 rgba(255, 255, 255, 0.06);\n animation: toastSlideIn 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;\n transition: background-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);\n}\n.p-toast-message::before {\n content: \"\";\n position: absolute;\n inset: 0;\n z-index: -1;\n border-radius: inherit;\n pointer-events: none;\n background: radial-gradient(126px 46px at 20px 50%, color-mix(in srgb, var(--toast-accent) 9%, transparent), transparent 72%);\n}\n.p-toast-message::after {\n content: \"\";\n position: absolute;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 2px;\n z-index: 1;\n pointer-events: none;\n transform-origin: left center;\n background: var(--toast-accent);\n box-shadow: 0 0 5px var(--toast-accent);\n animation: toastTimerBar var(--toast-life, 3s) linear forwards;\n transition: box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);\n}\n.p-toast-message:hover:not(.toast--no-hover-pause) {\n background: color-mix(in srgb, var(--toast-accent) 15%, #151f26) !important;\n box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42), 0 0 28px -8px var(--toast-accent), inset 0 1px 0 rgba(255, 255, 255, 0.1);\n}\n.p-toast-message:hover:not(.toast--no-hover-pause)::after {\n animation-play-state: paused;\n box-shadow: 0 0 9px var(--toast-accent);\n}\n\n.p-toast.p-toast-top-right .p-toast-message,\n.p-toast.p-toast-bottom-right .p-toast-message {\n border-radius: 4px 0 0 4px;\n}\n\n.p-toast.p-toast-top-left .p-toast-message,\n.p-toast.p-toast-bottom-left .p-toast-message {\n border-radius: 0 4px 4px 0;\n}\n\n.p-toast.p-toast-top-right .p-toast-message,\n.p-toast.p-toast-bottom-right .p-toast-message {\n margin-left: auto;\n margin-right: 0;\n}\n\n.p-toast.p-toast-top-left .p-toast-message,\n.p-toast.p-toast-bottom-left .p-toast-message {\n margin-right: auto;\n margin-left: 0;\n}\n\n@keyframes toastTimerBar {\n from {\n transform: scaleX(1);\n }\n to {\n transform: scaleX(0);\n }\n}\n.p-toast-message.toast-timer-restart::after {\n animation: none;\n animation: toastTimerBar var(--toast-life, 3s) linear forwards;\n}\n\n.p-toast-message.toast-type--processing::after {\n animation: none;\n opacity: 0;\n}\n\n@keyframes toastSlideIn {\n from {\n opacity: 0;\n transform: translateX(14px);\n }\n to {\n opacity: 1;\n transform: none;\n }\n}\n.p-toast-message {\n display: grid;\n grid-template-rows: 1fr;\n}\n\n.p-toast-message > * {\n min-height: 0;\n}\n\n.p-toast .p-toast-message.p-toast-message-exit-active {\n grid-template-rows: 0fr;\n margin-bottom: 0 !important;\n opacity: 0;\n transform: translateX(16px);\n animation: none !important;\n transition: opacity 0.16s ease-out, transform 0.2s ease-out, grid-template-rows 0.18s cubic-bezier(0.4, 0, 0.2, 1) 0.1s, margin-bottom 0.18s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;\n}\n\n@keyframes toastTextSlide {\n from {\n opacity: 0;\n transform: translateX(-5px);\n }\n to {\n opacity: 1;\n transform: none;\n }\n}\n@keyframes toastIconPop {\n from {\n opacity: 0;\n transform: scale(0.7);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n.p-toast-message-success {\n --toast-accent: #4ec33d;\n}\n\n.p-toast-message-error {\n --toast-accent: #ff6b5e;\n}\n\n.p-toast-message-warn {\n --toast-accent: #f5b447;\n}\n\n.p-toast-message-info {\n --toast-accent: #56b6e4;\n}\n\n.p-toast-message.toast-type--warning {\n --toast-accent: #f5b447;\n}\n\n.p-toast-message.toast-type--processing {\n --toast-accent: #b8b5ff;\n}\n\n.p-toast-message-error {\n box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 30px -8px var(--toast-accent), inset 0 1px 0 rgba(255, 255, 255, 0.09);\n}\n.p-toast-message-error::before {\n background: radial-gradient(126px 46px at 20px 50%, color-mix(in srgb, var(--toast-accent) 17%, transparent), transparent 72%);\n}\n\n.p-toast-message.toast-type--processing .toast-icon-wrapper {\n animation: toastIconPop 0.34s cubic-bezier(0.4, 0, 0.2, 1) 0.12s both, toastBreathe 2.8s ease-in-out 0.6s infinite;\n}\n.p-toast-message.toast-type--processing .toast-icon-wrapper i {\n animation: toastSlowSpin 2.6s linear infinite;\n}\n\n@keyframes toastSlowSpin {\n to {\n transform: rotate(360deg);\n }\n}\n@keyframes toastBreathe {\n 0%, 100% {\n filter: drop-shadow(0 0 3px var(--toast-accent));\n }\n 50% {\n filter: drop-shadow(0 0 7px var(--toast-accent));\n }\n}\n@media (prefers-reduced-motion: reduce) {\n .p-toast-message,\n .p-toast-message.toast-type--processing .toast-icon-wrapper,\n .p-toast-message.toast-type--processing .toast-icon-wrapper i {\n animation: none !important;\n }\n .p-toast-message::after {\n animation: none;\n transform: scaleX(0.5);\n }\n}\n.p-toast-message-content {\n position: relative;\n z-index: 1;\n padding: 7px 10px;\n border-radius: inherit;\n background: transparent;\n}\n\n.toast-root {\n display: flex;\n align-items: flex-start;\n width: 100%;\n gap: 9px;\n}\n\n.toast-left {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n}\n.toast-left .p-toast-icon-close {\n order: 3;\n}\n\n.toast-icon-wrapper {\n position: relative;\n width: 16px;\n height: 16px;\n min-width: 16px;\n min-height: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: none;\n border-radius: 0;\n overflow: visible;\n animation: toastIconPop 0.34s cubic-bezier(0.4, 0, 0.2, 1) 0.12s both;\n filter: drop-shadow(0 0 4px var(--toast-accent));\n}\n.toast-icon-wrapper i {\n color: var(--toast-accent);\n font-size: 16px;\n line-height: 1;\n z-index: 1;\n}\n\n.toast-body {\n flex: 1;\n min-width: 0;\n line-height: 1.4;\n font-size: 12.5px;\n color: #eef4f6;\n animation: toastTextSlide 0.28s cubic-bezier(0.4, 0, 0.2, 1) 0.16s both;\n}\n\n.toast-body > *:first-child {\n padding-right: 26px;\n}\n\n.p-toast-message:has(.toast-actions-top) .toast-body > *:first-child {\n padding-right: 48px;\n}\n\n.toast-title {\n font-weight: 600;\n font-size: 12.5px;\n line-height: 1.4;\n color: #eef4f6;\n margin-bottom: 0;\n}\n\n.toast-title + .toast-message {\n margin-top: 2px;\n font-size: 11.5px;\n line-height: 1.45;\n color: #a4b7bf;\n}\n\n.toast-message {\n padding-right: 0;\n font-size: 12.5px;\n color: #eef4f6;\n}\n\n.toast-toggle-btn, .p-toast-message .p-toast-icon-close {\n width: 18px;\n height: 18px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n border-radius: 4px;\n background-color: rgba(255, 255, 255, 0.09);\n color: #a4b7bf;\n cursor: pointer;\n transition: color 180ms cubic-bezier(0.4, 0, 0.2, 1), background-color 180ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n.toast-toggle-btn:hover, .p-toast-message .p-toast-icon-close:hover, .toast-toggle-btn:focus-visible, .p-toast-message .p-toast-icon-close:focus-visible {\n color: #eef4f6;\n background-color: rgba(255, 255, 255, 0.2);\n}\n.toast-toggle-btn:focus-visible, .p-toast-message .p-toast-icon-close:focus-visible {\n outline: 1px solid var(--toast-accent);\n outline-offset: 1px;\n}\n\n.p-toast-message .p-toast-icon-close {\n position: absolute;\n top: 7px;\n right: 8px;\n z-index: 2;\n}\n.p-toast-message .p-toast-icon-close svg, .p-toast-message .p-toast-icon-close .p-icon {\n width: 11px;\n height: 11px;\n}\n\n.toast-actions-top {\n position: absolute;\n top: 7px;\n right: 30px;\n display: flex;\n align-items: center;\n z-index: 2;\n}\n\n.toast-toggle-icon {\n width: 10px;\n height: 10px;\n min-width: 10px;\n min-height: 10px;\n transform: rotate(45deg);\n}\n\n.p-toast-message .maximize-button-container {\n margin-left: auto;\n display: flex;\n align-items: center;\n}\n\n.p-toast-message.toast_s--compact {\n width: fit-content;\n min-width: 0;\n max-width: 400px;\n margin-left: auto;\n}\n.p-toast-message.toast_s--compact .p-toast-message-content {\n display: flex;\n align-items: center;\n padding: 7px 10px;\n gap: 9px;\n}\n.p-toast-message.toast_s--compact .toast-actions-top {\n position: static;\n display: flex;\n align-items: center;\n gap: 4px;\n}\n.p-toast-message.toast_s--compact .p-toast-icon-close {\n position: static;\n flex-shrink: 0;\n}\n.p-toast-message.toast_s--compact .toast-body {\n padding-right: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.p-toast-message.toast_s--large {\n width: auto;\n min-width: auto;\n}\n.p-toast-message.toast_s--large .p-toast-message-content {\n padding: 11px 13px 12px 10px;\n}\n.p-toast-message.toast_s--large .toast-root {\n align-items: flex-start;\n}\n.p-toast-message.toast_s--large .toast-icon-wrapper {\n margin-top: 1px;\n}\n\n.toast-percentage {\n margin-top: 9px;\n width: 100%;\n}\n\n.toast-percentage-label {\n font-size: 11px;\n color: #7d919b;\n margin-bottom: 4px;\n text-align: right;\n width: 100%;\n}\n\n.toast-percentage-bar {\n height: 3px;\n background-color: rgba(255, 255, 255, 0.12);\n border-radius: 999px;\n overflow: hidden;\n width: 100%;\n}\n\n.toast-percentage-bar-fill {\n height: 100%;\n background-color: var(--toast-accent);\n box-shadow: 0 0 6px var(--toast-accent);\n border-radius: 999px;\n transition: width 180ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.toast-link {\n margin-top: 8px;\n}\n\n.toast-link a {\n font-size: 11.5px;\n font-weight: 500;\n color: var(--toast-accent);\n text-decoration: none;\n border-bottom: 1px solid currentColor;\n padding-bottom: 1px;\n transition: opacity 180ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n.toast-link a:hover {\n opacity: 0.75;\n}\n\n.toast-links {\n margin-top: 8px;\n padding-left: 14px;\n}\n\n.toast-links li {\n margin-bottom: 4px;\n}\n\n.toast-links a {\n font-size: 11.5px;\n color: var(--toast-accent);\n text-decoration: none;\n border-bottom: 1px solid currentColor;\n transition: opacity 180ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n.toast-links a:hover {\n opacity: 0.75;\n}\n\n.toast-attached-files {\n margin-top: 9px;\n}\n\n.toast-attached-files-title {\n font-size: 10.5px;\n font-weight: 600;\n letter-spacing: 0.04em;\n color: #7d919b;\n margin-bottom: 4px;\n}\n\n.toast-attached-files-list {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n\n.toast-attached-files-list li {\n margin-bottom: 4px;\n}\n\n.toast-attached-files-list a {\n display: inline-flex;\n align-items: center;\n gap: 5px;\n font-size: 11.5px;\n color: #a4b7bf;\n text-decoration: none;\n border-bottom: 1px solid transparent;\n transition: color 180ms cubic-bezier(0.4, 0, 0.2, 1), border-color 180ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n.toast-attached-files-list a .pi-paperclip {\n font-size: 11px;\n color: #7d919b;\n flex-shrink: 0;\n}\n.toast-attached-files-list a:hover {\n color: #eef4f6;\n border-bottom-color: currentColor;\n}";
|
|
47843
|
+
var css_248z$4 = "@keyframes fadeIn {\n from {\n opacity: 0;\n transform: scale(0.85);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n@keyframes toastSlideIn {\n from {\n opacity: 0;\n transform: translateX(40px);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n}\n@keyframes toastIconPop {\n 0% {\n transform: scale(0);\n opacity: 0;\n }\n 60% {\n transform: scale(1.2);\n opacity: 1;\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes toastTextSlide {\n from {\n opacity: 0;\n transform: translateY(6px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n.p-toast.p-toast-top-right,\n.p-toast.p-toast-top-left,\n.p-toast.p-toast-top-center {\n top: 58px !important;\n}\n\n.p-toast.p-toast-top-right,\n.p-toast.p-toast-bottom-right {\n right: 0 !important;\n}\n\n.p-toast.p-toast-top-left,\n.p-toast.p-toast-bottom-left {\n left: 0 !important;\n}\n\n.p-toast .p-toast-message {\n margin-bottom: 8px;\n}\n\n.p-toast-message {\n font-family: \"Roboto\", sans-serif;\n position: relative;\n height: auto;\n border: none;\n border-radius: 4px;\n background: #151f26 !important;\n color: #eef4f6;\n overflow: hidden;\n isolation: isolate;\n box-shadow: 0 4px 14px rgba(0, 0, 0, 0.38), 0 0 22px -12px var(--toast-accent), inset 0 1px 0 rgba(255, 255, 255, 0.06);\n animation: toastSlideIn 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;\n transition: background-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);\n}\n.p-toast-message::before {\n content: \"\";\n position: absolute;\n inset: 0;\n z-index: -1;\n border-radius: inherit;\n pointer-events: none;\n background: radial-gradient(126px 46px at 20px 50%, color-mix(in srgb, var(--toast-accent) 9%, transparent), transparent 72%);\n}\n.p-toast-message::after {\n content: \"\";\n position: absolute;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 2px;\n z-index: 1;\n pointer-events: none;\n transform-origin: left center;\n background: var(--toast-accent);\n box-shadow: 0 0 5px var(--toast-accent);\n animation: toastTimerBar var(--toast-life, 3s) linear forwards;\n transition: box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);\n}\n.p-toast-message:hover:not(.toast--no-hover-pause) {\n background: color-mix(in srgb, var(--toast-accent) 15%, #151f26) !important;\n box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42), 0 0 28px -8px var(--toast-accent), inset 0 1px 0 rgba(255, 255, 255, 0.1);\n}\n.p-toast-message:hover:not(.toast--no-hover-pause)::after {\n animation-play-state: paused;\n box-shadow: 0 0 9px var(--toast-accent);\n}\n\n.p-toast.p-toast-top-right .p-toast-message,\n.p-toast.p-toast-bottom-right .p-toast-message {\n border-radius: 4px 0 0 4px;\n}\n\n.p-toast.p-toast-top-left .p-toast-message,\n.p-toast.p-toast-bottom-left .p-toast-message {\n border-radius: 0 4px 4px 0;\n}\n\n.p-toast.p-toast-top-right .p-toast-message,\n.p-toast.p-toast-bottom-right .p-toast-message {\n margin-left: auto;\n margin-right: 0;\n}\n\n.p-toast.p-toast-top-left .p-toast-message,\n.p-toast.p-toast-bottom-left .p-toast-message {\n margin-right: auto;\n margin-left: 0;\n}\n\n@keyframes toastTimerBar {\n from {\n transform: scaleX(1);\n }\n to {\n transform: scaleX(0);\n }\n}\n.p-toast-message.toast-timer-restart::after {\n animation: none;\n animation: toastTimerBar var(--toast-life, 3s) linear forwards;\n}\n\n.p-toast-message.toast-type--processing::after {\n animation: none;\n opacity: 0;\n}\n\n@property --toast-accent {\n syntax: \"<color>\";\n inherits: true;\n initial-value: #56b6e4;\n}\n.p-toast .p-toast-message.toast--suivi {\n transition: --toast-accent 0.45s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);\n}\n\n.toast-suivi {\n display: contents;\n}\n\n.p-toast-message.toast--sticky::after {\n animation: none;\n opacity: 0;\n}\n\n@keyframes toastSlideIn {\n from {\n opacity: 0;\n transform: translateX(14px);\n }\n to {\n opacity: 1;\n transform: none;\n }\n}\n.p-toast-message {\n display: grid;\n grid-template-rows: 1fr;\n}\n\n.p-toast-message > * {\n min-height: 0;\n}\n\n.p-toast .p-toast-message.p-toast-message-exit-active {\n grid-template-rows: 0fr;\n margin-bottom: 0 !important;\n opacity: 0;\n transform: translateX(16px);\n animation: none !important;\n transition: opacity 0.16s ease-out, transform 0.2s ease-out, grid-template-rows 0.18s cubic-bezier(0.4, 0, 0.2, 1) 0.1s, margin-bottom 0.18s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;\n}\n\n@keyframes toastTextSlide {\n from {\n opacity: 0;\n transform: translateX(-5px);\n }\n to {\n opacity: 1;\n transform: none;\n }\n}\n@keyframes toastIconPop {\n from {\n opacity: 0;\n transform: scale(0.7);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n.p-toast-message-success {\n --toast-accent: #4ec33d;\n}\n\n.p-toast-message-error {\n --toast-accent: #ff6b5e;\n}\n\n.p-toast-message-warn {\n --toast-accent: #f5b447;\n}\n\n.p-toast-message-info {\n --toast-accent: #56b6e4;\n}\n\n.p-toast-message.toast-type--warning {\n --toast-accent: #f5b447;\n}\n\n.p-toast-message.toast-type--processing {\n --toast-accent: #b8b5ff;\n}\n\n.p-toast-message-error {\n box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 30px -8px var(--toast-accent), inset 0 1px 0 rgba(255, 255, 255, 0.09);\n}\n.p-toast-message-error::before {\n background: radial-gradient(126px 46px at 20px 50%, color-mix(in srgb, var(--toast-accent) 17%, transparent), transparent 72%);\n}\n\n.p-toast-message.toast-type--processing .toast-icon-wrapper {\n animation: toastIconPop 0.34s cubic-bezier(0.4, 0, 0.2, 1) 0.12s both, toastBreathe 2.8s ease-in-out 0.6s infinite;\n}\n.p-toast-message.toast-type--processing .toast-icon-wrapper i {\n animation: toastSlowSpin 2.6s linear infinite;\n}\n\n@keyframes toastSlowSpin {\n to {\n transform: rotate(360deg);\n }\n}\n@keyframes toastBreathe {\n 0%, 100% {\n filter: drop-shadow(0 0 3px var(--toast-accent));\n }\n 50% {\n filter: drop-shadow(0 0 7px var(--toast-accent));\n }\n}\n@media (prefers-reduced-motion: reduce) {\n .p-toast-message,\n .p-toast-message.toast-type--processing .toast-icon-wrapper,\n .p-toast-message.toast-type--processing .toast-icon-wrapper i {\n animation: none !important;\n }\n .p-toast-message::after {\n animation: none;\n transform: scaleX(0.5);\n }\n}\n.p-toast-message-content {\n position: relative;\n z-index: 1;\n padding: 7px 10px;\n border-radius: inherit;\n background: transparent;\n}\n\n.toast-root {\n display: flex;\n align-items: flex-start;\n width: 100%;\n gap: 9px;\n}\n\n.toast-left {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n}\n.toast-left .p-toast-icon-close {\n order: 3;\n}\n\n.toast-icon-wrapper {\n position: relative;\n width: 16px;\n height: 16px;\n min-width: 16px;\n min-height: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: none;\n border-radius: 0;\n overflow: visible;\n animation: toastIconPop 0.34s cubic-bezier(0.4, 0, 0.2, 1) 0.12s both;\n filter: drop-shadow(0 0 4px var(--toast-accent));\n}\n.toast-icon-wrapper i {\n color: var(--toast-accent);\n font-size: 16px;\n line-height: 1;\n z-index: 1;\n}\n\n.toast-body {\n flex: 1;\n min-width: 0;\n line-height: 1.4;\n font-size: 12.5px;\n color: #eef4f6;\n animation: toastTextSlide 0.28s cubic-bezier(0.4, 0, 0.2, 1) 0.16s both;\n}\n\n.toast-body > *:first-child {\n padding-right: 26px;\n}\n\n.p-toast-message:has(.toast-actions-top) .toast-body > *:first-child {\n padding-right: 48px;\n}\n\n.toast-title {\n font-weight: 600;\n font-size: 12.5px;\n line-height: 1.4;\n color: #eef4f6;\n margin-bottom: 0;\n}\n\n.toast-title + .toast-message {\n margin-top: 2px;\n font-size: 11.5px;\n line-height: 1.45;\n color: #a4b7bf;\n}\n\n.toast-message {\n padding-right: 0;\n font-size: 12.5px;\n color: #eef4f6;\n}\n\n.toast-toggle-btn, .p-toast-message .p-toast-icon-close {\n width: 18px;\n height: 18px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n border-radius: 4px;\n background-color: rgba(255, 255, 255, 0.09);\n color: #a4b7bf;\n cursor: pointer;\n transition: color 180ms cubic-bezier(0.4, 0, 0.2, 1), background-color 180ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n.toast-toggle-btn:hover, .p-toast-message .p-toast-icon-close:hover, .toast-toggle-btn:focus-visible, .p-toast-message .p-toast-icon-close:focus-visible {\n color: #eef4f6;\n background-color: rgba(255, 255, 255, 0.2);\n}\n.toast-toggle-btn:focus-visible, .p-toast-message .p-toast-icon-close:focus-visible {\n outline: 1px solid var(--toast-accent);\n outline-offset: 1px;\n}\n\n.p-toast-message .p-toast-icon-close {\n position: absolute;\n top: 7px;\n right: 8px;\n z-index: 2;\n}\n.p-toast-message .p-toast-icon-close svg, .p-toast-message .p-toast-icon-close .p-icon {\n width: 11px;\n height: 11px;\n}\n\n.toast-actions-top {\n position: absolute;\n top: 7px;\n right: 30px;\n display: flex;\n align-items: center;\n z-index: 2;\n}\n\n.toast-toggle-icon {\n width: 10px;\n height: 10px;\n min-width: 10px;\n min-height: 10px;\n transform: rotate(45deg);\n}\n\n.p-toast-message .maximize-button-container {\n margin-left: auto;\n display: flex;\n align-items: center;\n}\n\n.p-toast-message.toast_s--compact {\n width: fit-content;\n min-width: 0;\n max-width: 400px;\n margin-left: auto;\n}\n.p-toast-message.toast_s--compact .p-toast-message-content {\n display: flex;\n align-items: center;\n padding: 7px 10px;\n gap: 9px;\n}\n.p-toast-message.toast_s--compact .toast-actions-top {\n position: static;\n display: flex;\n align-items: center;\n gap: 4px;\n}\n.p-toast-message.toast_s--compact .p-toast-icon-close {\n position: static;\n flex-shrink: 0;\n}\n.p-toast-message.toast_s--compact .toast-body {\n padding-right: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.p-toast-message.toast_s--large {\n width: auto;\n min-width: auto;\n}\n.p-toast-message.toast_s--large .p-toast-message-content {\n padding: 11px 13px 12px 10px;\n}\n.p-toast-message.toast_s--large .toast-root {\n align-items: flex-start;\n}\n.p-toast-message.toast_s--large .toast-icon-wrapper {\n margin-top: 1px;\n}\n\n.toast-percentage {\n margin-top: 9px;\n width: 100%;\n}\n\n.toast-percentage-label {\n font-size: 11px;\n color: #7d919b;\n margin-bottom: 4px;\n text-align: right;\n width: 100%;\n}\n\n.toast-percentage-bar {\n height: 3px;\n background-color: rgba(255, 255, 255, 0.12);\n border-radius: 999px;\n overflow: hidden;\n width: 100%;\n}\n\n.toast-percentage-bar-fill {\n height: 100%;\n background-color: var(--toast-accent);\n box-shadow: 0 0 6px var(--toast-accent);\n border-radius: 999px;\n transition: width 180ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.toast-link {\n margin-top: 8px;\n}\n\n.toast-link a {\n font-size: 11.5px;\n font-weight: 500;\n color: var(--toast-accent);\n text-decoration: none;\n border-bottom: 1px solid currentColor;\n padding-bottom: 1px;\n transition: opacity 180ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n.toast-link a:hover {\n opacity: 0.75;\n}\n\n.toast-links {\n margin-top: 8px;\n padding-left: 14px;\n}\n\n.toast-links li {\n margin-bottom: 4px;\n}\n\n.toast-links a {\n font-size: 11.5px;\n color: var(--toast-accent);\n text-decoration: none;\n border-bottom: 1px solid currentColor;\n transition: opacity 180ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n.toast-links a:hover {\n opacity: 0.75;\n}\n\n.toast-attached-files {\n margin-top: 9px;\n}\n\n.toast-attached-files-title {\n font-size: 10.5px;\n font-weight: 600;\n letter-spacing: 0.04em;\n color: #7d919b;\n margin-bottom: 4px;\n}\n\n.toast-attached-files-list {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n\n.toast-attached-files-list li {\n margin-bottom: 4px;\n}\n\n.toast-attached-files-list a {\n display: inline-flex;\n align-items: center;\n gap: 5px;\n font-size: 11.5px;\n color: #a4b7bf;\n text-decoration: none;\n border-bottom: 1px solid transparent;\n transition: color 180ms cubic-bezier(0.4, 0, 0.2, 1), border-color 180ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n.toast-attached-files-list a .pi-paperclip {\n font-size: 11px;\n color: #7d919b;\n flex-shrink: 0;\n}\n.toast-attached-files-list a:hover {\n color: #eef4f6;\n border-bottom-color: currentColor;\n}";
|
|
47844
47844
|
styleInject(css_248z$4);
|
|
47845
47845
|
|
|
47846
47846
|
var ToastPresets = {
|
|
@@ -48345,6 +48345,211 @@ var Toast = function Toast(_ref4) {
|
|
|
48345
48345
|
// Singleton pour l'empilement des toasts
|
|
48346
48346
|
var toastRef = null;
|
|
48347
48347
|
var container = null;
|
|
48348
|
+
|
|
48349
|
+
// ────────────────────────────────────────────────────────
|
|
48350
|
+
// Toasts suivis (option `id`) : UNE carte qui évolue.
|
|
48351
|
+
//
|
|
48352
|
+
// Ex. suivi d'une tâche : en attente → en cours → terminée. Plutôt que
|
|
48353
|
+
// retirer la carte et en afficher une nouvelle (sortie + entrée, qui se
|
|
48354
|
+
// chevauchent sur une tâche rapide), on garde la carte PrimeReact et on
|
|
48355
|
+
// fait évoluer son contenu : l'accent glisse vers la nouvelle couleur
|
|
48356
|
+
// (`@property --toast-accent`, toast.scss), le pictogramme et le texte
|
|
48357
|
+
// rejouent leur entrée. Chaque étape reste lisible au moins
|
|
48358
|
+
// DUREE_MIN_ETAPE ; les étapes arrivées entre-temps sont sautées, seule
|
|
48359
|
+
// la plus récente s'affiche.
|
|
48360
|
+
//
|
|
48361
|
+
// Le décompte est géré ici et non par PrimeReact : son `life` est armé une
|
|
48362
|
+
// fois pour toutes au montage, or une étape collante (« en cours ») peut
|
|
48363
|
+
// devenir une étape qui expire (« terminée »), et inversement.
|
|
48364
|
+
// ────────────────────────────────────────────────────────
|
|
48365
|
+
var DUREE_MIN_ETAPE = 700;
|
|
48366
|
+
|
|
48367
|
+
// id → { props, abonnes, message, afficheA, prochain, minuteurEtape, fin, el }
|
|
48368
|
+
var toastsSuivis = new Map();
|
|
48369
|
+
var severityDe = function severityDe(type) {
|
|
48370
|
+
return type === 'processing' ? 'info' : type;
|
|
48371
|
+
};
|
|
48372
|
+
var CLASSES_TYPE = /^(toast-type--.+|p-toast-message-(info|success|error|warn|warning|processing|settingError))$/;
|
|
48373
|
+
var appliquerApparence = function appliquerApparence(el, props) {
|
|
48374
|
+
_toConsumableArray$8(el.classList).filter(function (c) {
|
|
48375
|
+
return CLASSES_TYPE.test(c);
|
|
48376
|
+
}).forEach(function (c) {
|
|
48377
|
+
return el.classList.remove(c);
|
|
48378
|
+
});
|
|
48379
|
+
el.classList.add("toast-type--".concat(props.type), "p-toast-message-".concat(severityDe(props.type)));
|
|
48380
|
+
el.classList.toggle('toast--sticky', !props.duration || Boolean(props.sticky));
|
|
48381
|
+
el.classList.toggle(NO_HOVER_PAUSE_CLASS, hoverPauseClass(props) !== '');
|
|
48382
|
+
};
|
|
48383
|
+
var arreterFin = function arreterFin(suivi) {
|
|
48384
|
+
if (suivi.fin) clearTimeout(suivi.fin.minuteur);
|
|
48385
|
+
suivi.fin = null;
|
|
48386
|
+
};
|
|
48387
|
+
var oublierSuivi = function oublierSuivi(id, suivi) {
|
|
48388
|
+
arreterFin(suivi);
|
|
48389
|
+
clearTimeout(suivi.minuteurEtape);
|
|
48390
|
+
if (toastsSuivis.get(id) === suivi) toastsSuivis["delete"](id);
|
|
48391
|
+
};
|
|
48392
|
+
var retirerSuivi = function retirerSuivi(id, suivi) {
|
|
48393
|
+
var _toastRef;
|
|
48394
|
+
oublierSuivi(id, suivi);
|
|
48395
|
+
if (suivi.message) (_toastRef = toastRef) === null || _toastRef === void 0 || _toastRef.remove(suivi.message);
|
|
48396
|
+
};
|
|
48397
|
+
|
|
48398
|
+
// Décompte de l'étape affichée (rien pour une étape collante), et filet de temps relancé
|
|
48399
|
+
var armerFin = function armerFin(id, suivi) {
|
|
48400
|
+
arreterFin(suivi);
|
|
48401
|
+
var _suivi$props = suivi.props,
|
|
48402
|
+
duration = _suivi$props.duration,
|
|
48403
|
+
sticky = _suivi$props.sticky;
|
|
48404
|
+
if (!duration || sticky) return;
|
|
48405
|
+
suivi.fin = {
|
|
48406
|
+
reste: duration,
|
|
48407
|
+
debut: Date.now(),
|
|
48408
|
+
minuteur: setTimeout(function () {
|
|
48409
|
+
return retirerSuivi(id, suivi);
|
|
48410
|
+
}, duration)
|
|
48411
|
+
};
|
|
48412
|
+
var el = suivi.el;
|
|
48413
|
+
if (el) {
|
|
48414
|
+
el.style.setProperty('--toast-life', duration + 'ms');
|
|
48415
|
+
el.classList.remove('toast-timer-restart');
|
|
48416
|
+
void el.offsetHeight;
|
|
48417
|
+
el.classList.add('toast-timer-restart');
|
|
48418
|
+
}
|
|
48419
|
+
};
|
|
48420
|
+
|
|
48421
|
+
// Pause au survol, comme PrimeReact le fait pour les toasts ordinaires (le filet s'arrête en CSS)
|
|
48422
|
+
var brancherPauseSurvol = function brancherPauseSurvol(id, suivi, el) {
|
|
48423
|
+
el.addEventListener('mouseenter', function () {
|
|
48424
|
+
if (!suivi.fin || el.classList.contains(NO_HOVER_PAUSE_CLASS)) return;
|
|
48425
|
+
clearTimeout(suivi.fin.minuteur);
|
|
48426
|
+
suivi.fin.reste -= Date.now() - suivi.fin.debut;
|
|
48427
|
+
});
|
|
48428
|
+
el.addEventListener('mouseleave', function () {
|
|
48429
|
+
if (!suivi.fin || el.classList.contains(NO_HOVER_PAUSE_CLASS)) return;
|
|
48430
|
+
suivi.fin.debut = Date.now();
|
|
48431
|
+
suivi.fin.minuteur = setTimeout(function () {
|
|
48432
|
+
return retirerSuivi(id, suivi);
|
|
48433
|
+
}, Math.max(0, suivi.fin.reste));
|
|
48434
|
+
});
|
|
48435
|
+
};
|
|
48436
|
+
var ToastSuiviContent = function ToastSuiviContent(_ref5) {
|
|
48437
|
+
var id = _ref5.id,
|
|
48438
|
+
suivi = _ref5.suivi;
|
|
48439
|
+
var _useState = useState({
|
|
48440
|
+
props: suivi.props,
|
|
48441
|
+
version: 0
|
|
48442
|
+
}),
|
|
48443
|
+
_useState2 = _slicedToArray$b(_useState, 2),
|
|
48444
|
+
etat = _useState2[0],
|
|
48445
|
+
setEtat = _useState2[1];
|
|
48446
|
+
var ref = useRef(null);
|
|
48447
|
+
useEffect(function () {
|
|
48448
|
+
var abonne = function abonne(props) {
|
|
48449
|
+
return setEtat(function (e) {
|
|
48450
|
+
return {
|
|
48451
|
+
props: props,
|
|
48452
|
+
version: e.version + 1
|
|
48453
|
+
};
|
|
48454
|
+
});
|
|
48455
|
+
};
|
|
48456
|
+
suivi.abonnes.add(abonne);
|
|
48457
|
+
return function () {
|
|
48458
|
+
return suivi.abonnes["delete"](abonne);
|
|
48459
|
+
};
|
|
48460
|
+
}, [suivi]);
|
|
48461
|
+
useLayoutEffect(function () {
|
|
48462
|
+
var _ref$current;
|
|
48463
|
+
var el = (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.closest('.p-toast-message');
|
|
48464
|
+
if (!el) return;
|
|
48465
|
+
if (suivi.el !== el) {
|
|
48466
|
+
suivi.el = el;
|
|
48467
|
+
brancherPauseSurvol(id, suivi, el);
|
|
48468
|
+
}
|
|
48469
|
+
appliquerApparence(el, etat.props);
|
|
48470
|
+
armerFin(id, suivi);
|
|
48471
|
+
}, [etat]);
|
|
48472
|
+
var props = etat.props;
|
|
48473
|
+
// `key` : à chaque étape le contenu est remonté, pictogramme et texte rejouent leur entrée
|
|
48474
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
48475
|
+
ref: ref,
|
|
48476
|
+
className: "toast-suivi"
|
|
48477
|
+
}, /*#__PURE__*/React__default.createElement(ToastContent, {
|
|
48478
|
+
key: etat.version,
|
|
48479
|
+
type: props.type,
|
|
48480
|
+
icon: props.icon,
|
|
48481
|
+
enableHtmlContent: props.enableHtmlContent,
|
|
48482
|
+
title: props.title,
|
|
48483
|
+
message: props.message,
|
|
48484
|
+
closeOnLinkClick: props.closeOnLinkClick,
|
|
48485
|
+
size: props.size,
|
|
48486
|
+
sizeModulable: false,
|
|
48487
|
+
isExpanded: props.size === 'L',
|
|
48488
|
+
link: props.link,
|
|
48489
|
+
links: props.links,
|
|
48490
|
+
attachedFiles: props.attachedFiles,
|
|
48491
|
+
enablePercentage: props.enablePercentage,
|
|
48492
|
+
percentage: props.percentage
|
|
48493
|
+
}));
|
|
48494
|
+
};
|
|
48495
|
+
var afficherSuivi = function afficherSuivi(id, props) {
|
|
48496
|
+
var existant = toastsSuivis.get(id);
|
|
48497
|
+
if (existant) {
|
|
48498
|
+
// Mise à jour en place, pas avant que l'étape affichée ait été lisible
|
|
48499
|
+
existant.prochain = props;
|
|
48500
|
+
if (existant.minuteurEtape) return;
|
|
48501
|
+
var attente = existant.afficheA ? Math.max(0, existant.afficheA + DUREE_MIN_ETAPE - Date.now()) : DUREE_MIN_ETAPE;
|
|
48502
|
+
existant.minuteurEtape = setTimeout(function () {
|
|
48503
|
+
existant.minuteurEtape = null;
|
|
48504
|
+
if (toastsSuivis.get(id) !== existant) return;
|
|
48505
|
+
existant.props = existant.prochain;
|
|
48506
|
+
existant.prochain = null;
|
|
48507
|
+
existant.afficheA = Date.now();
|
|
48508
|
+
existant.abonnes.forEach(function (abonne) {
|
|
48509
|
+
return abonne(existant.props);
|
|
48510
|
+
});
|
|
48511
|
+
}, attente);
|
|
48512
|
+
return;
|
|
48513
|
+
}
|
|
48514
|
+
var suivi = {
|
|
48515
|
+
props: props,
|
|
48516
|
+
abonnes: new Set(),
|
|
48517
|
+
message: null,
|
|
48518
|
+
afficheA: null,
|
|
48519
|
+
prochain: null,
|
|
48520
|
+
minuteurEtape: null,
|
|
48521
|
+
fin: null,
|
|
48522
|
+
el: null
|
|
48523
|
+
};
|
|
48524
|
+
toastsSuivis.set(id, suivi);
|
|
48525
|
+
setTimeout(function () {
|
|
48526
|
+
var _toastRef2;
|
|
48527
|
+
if (toastsSuivis.get(id) !== suivi) return;
|
|
48528
|
+
var sizeClass = props.size === "S" ? "toast_s--compact" : "";
|
|
48529
|
+
suivi.message = {
|
|
48530
|
+
severity: severityDe(props.type),
|
|
48531
|
+
// Jamais d'expiration côté PrimeReact : voir armerFin
|
|
48532
|
+
sticky: true,
|
|
48533
|
+
className: "".concat(sizeClass, " toast--suivi toast-type--").concat(props.type).concat(hoverPauseClass(props)),
|
|
48534
|
+
closable: props.closable,
|
|
48535
|
+
content: function content() {
|
|
48536
|
+
return /*#__PURE__*/React__default.createElement(ToastSuiviContent, {
|
|
48537
|
+
id: id,
|
|
48538
|
+
suivi: suivi
|
|
48539
|
+
});
|
|
48540
|
+
}
|
|
48541
|
+
};
|
|
48542
|
+
suivi.afficheA = Date.now();
|
|
48543
|
+
(_toastRef2 = toastRef) === null || _toastRef2 === void 0 || _toastRef2.show(suivi.message);
|
|
48544
|
+
}, 0);
|
|
48545
|
+
};
|
|
48546
|
+
|
|
48547
|
+
// Toast fermé (croix, durée écoulée, clic sur un lien) : son id redevient libre
|
|
48548
|
+
var oublierMessage = function oublierMessage(message) {
|
|
48549
|
+
toastsSuivis.forEach(function (suivi, id) {
|
|
48550
|
+
if (suivi.message === message) oublierSuivi(id, suivi);
|
|
48551
|
+
});
|
|
48552
|
+
};
|
|
48348
48553
|
var ToastContainer = function ToastContainer() {
|
|
48349
48554
|
var ref = useRef(null);
|
|
48350
48555
|
useEffect(function () {
|
|
@@ -48354,54 +48559,93 @@ var ToastContainer = function ToastContainer() {
|
|
|
48354
48559
|
ref: ref,
|
|
48355
48560
|
position: DEFAULTS.position,
|
|
48356
48561
|
onMouseEnter: preventHoverPause,
|
|
48357
|
-
onMouseLeave: preventHoverPause
|
|
48562
|
+
onMouseLeave: preventHoverPause,
|
|
48563
|
+
onRemove: oublierMessage
|
|
48358
48564
|
});
|
|
48359
48565
|
};
|
|
48566
|
+
|
|
48567
|
+
/**
|
|
48568
|
+
* Retire le toast affiché sous cet `id` (voir l'option `id` de showToast).
|
|
48569
|
+
* Sans effet si aucun toast ne porte cet id.
|
|
48570
|
+
*/
|
|
48571
|
+
var removeToast = function removeToast(id) {
|
|
48572
|
+
var suivi = toastsSuivis.get(id);
|
|
48573
|
+
if (suivi) retirerSuivi(id, suivi);
|
|
48574
|
+
};
|
|
48575
|
+
|
|
48576
|
+
/**
|
|
48577
|
+
* Affiche un toast empilé sous les précédents.
|
|
48578
|
+
* `id` (optionnel) : un toast portant déjà cet id n'est pas doublé, il évolue en place vers le
|
|
48579
|
+
* nouveau contenu (ex. suivi d'une tâche : en attente → en cours → terminée). Voir removeToast(id).
|
|
48580
|
+
* Un toast suivi ne propose pas le bouton de taille (`sizeModulable`).
|
|
48581
|
+
*/
|
|
48360
48582
|
var showToast = function showToast() {
|
|
48361
|
-
var
|
|
48362
|
-
|
|
48363
|
-
type =
|
|
48364
|
-
|
|
48365
|
-
duration =
|
|
48366
|
-
|
|
48367
|
-
closable =
|
|
48368
|
-
|
|
48369
|
-
|
|
48370
|
-
|
|
48371
|
-
|
|
48372
|
-
|
|
48373
|
-
|
|
48374
|
-
|
|
48375
|
-
|
|
48376
|
-
|
|
48377
|
-
sizeModulable =
|
|
48378
|
-
|
|
48379
|
-
|
|
48380
|
-
|
|
48381
|
-
|
|
48382
|
-
|
|
48383
|
-
|
|
48384
|
-
percentage =
|
|
48385
|
-
|
|
48583
|
+
var _ref6 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
48584
|
+
id = _ref6.id,
|
|
48585
|
+
_ref6$type = _ref6.type,
|
|
48586
|
+
type = _ref6$type === void 0 ? DEFAULTS.type : _ref6$type,
|
|
48587
|
+
_ref6$duration = _ref6.duration,
|
|
48588
|
+
duration = _ref6$duration === void 0 ? DEFAULTS.duration : _ref6$duration,
|
|
48589
|
+
_ref6$closable = _ref6.closable,
|
|
48590
|
+
closable = _ref6$closable === void 0 ? DEFAULTS.closable : _ref6$closable,
|
|
48591
|
+
sticky = _ref6.sticky,
|
|
48592
|
+
title = _ref6.title,
|
|
48593
|
+
message = _ref6.message,
|
|
48594
|
+
closeOnLinkClick = _ref6.closeOnLinkClick,
|
|
48595
|
+
icon = _ref6.icon,
|
|
48596
|
+
_ref6$enableHtmlConte = _ref6.enableHtmlContent,
|
|
48597
|
+
enableHtmlContent = _ref6$enableHtmlConte === void 0 ? false : _ref6$enableHtmlConte,
|
|
48598
|
+
size = _ref6.size,
|
|
48599
|
+
_ref6$sizeModulable = _ref6.sizeModulable,
|
|
48600
|
+
sizeModulable = _ref6$sizeModulable === void 0 ? false : _ref6$sizeModulable,
|
|
48601
|
+
link = _ref6.link,
|
|
48602
|
+
links = _ref6.links,
|
|
48603
|
+
attachedFiles = _ref6.attachedFiles,
|
|
48604
|
+
_ref6$enablePercentag = _ref6.enablePercentage,
|
|
48605
|
+
enablePercentage = _ref6$enablePercentag === void 0 ? false : _ref6$enablePercentag,
|
|
48606
|
+
_ref6$percentage = _ref6.percentage,
|
|
48607
|
+
percentage = _ref6$percentage === void 0 ? 0 : _ref6$percentage,
|
|
48608
|
+
pauseOnHover = _ref6.pauseOnHover;
|
|
48386
48609
|
if (!container) {
|
|
48387
48610
|
container = document.createElement('div');
|
|
48388
48611
|
document.body.appendChild(container);
|
|
48389
48612
|
ReactDOM.render(/*#__PURE__*/React__default.createElement(ToastContainer, null), container);
|
|
48390
48613
|
}
|
|
48614
|
+
if (id !== undefined && id !== null) {
|
|
48615
|
+
afficherSuivi(id, {
|
|
48616
|
+
type: type,
|
|
48617
|
+
duration: duration,
|
|
48618
|
+
closable: closable,
|
|
48619
|
+
sticky: sticky,
|
|
48620
|
+
title: title,
|
|
48621
|
+
message: message,
|
|
48622
|
+
closeOnLinkClick: closeOnLinkClick,
|
|
48623
|
+
icon: icon,
|
|
48624
|
+
enableHtmlContent: enableHtmlContent,
|
|
48625
|
+
size: size,
|
|
48626
|
+
link: link,
|
|
48627
|
+
links: links,
|
|
48628
|
+
attachedFiles: attachedFiles,
|
|
48629
|
+
enablePercentage: enablePercentage,
|
|
48630
|
+
percentage: percentage,
|
|
48631
|
+
pauseOnHover: pauseOnHover
|
|
48632
|
+
});
|
|
48633
|
+
return;
|
|
48634
|
+
}
|
|
48391
48635
|
|
|
48392
48636
|
// État local de taille pour ce toast
|
|
48393
48637
|
var currentSize = size;
|
|
48394
48638
|
var _showWithSize = function showWithSize(sz) {
|
|
48395
|
-
var
|
|
48639
|
+
var _toastRef4;
|
|
48396
48640
|
var sizeClass = sz === "S" ? "toast_s--compact" : sizeModulable && sz === "L" ? "toast_s--large" : "";
|
|
48397
48641
|
var expanded = sz === "L";
|
|
48398
48642
|
var handleToggleSize = function handleToggleSize() {
|
|
48399
|
-
var
|
|
48400
|
-
(
|
|
48643
|
+
var _toastRef3;
|
|
48644
|
+
(_toastRef3 = toastRef) === null || _toastRef3 === void 0 || _toastRef3.clear();
|
|
48401
48645
|
currentSize = currentSize === "S" ? "L" : "S";
|
|
48402
48646
|
_showWithSize(currentSize);
|
|
48403
48647
|
};
|
|
48404
|
-
(
|
|
48648
|
+
(_toastRef4 = toastRef) === null || _toastRef4 === void 0 || _toastRef4.show({
|
|
48405
48649
|
severity: type === 'processing' ? 'info' : type,
|
|
48406
48650
|
life: duration,
|
|
48407
48651
|
sticky: sticky,
|
|
@@ -48452,6 +48696,7 @@ var showToast = function showToast() {
|
|
|
48452
48696
|
};
|
|
48453
48697
|
if (typeof window !== 'undefined') {
|
|
48454
48698
|
window.showArengibookToast = showToast;
|
|
48699
|
+
window.removeArengibookToast = removeToast;
|
|
48455
48700
|
window.ArengibookToastPresets = ToastPresets;
|
|
48456
48701
|
}
|
|
48457
48702
|
|