arengibook 3.4.4-main → 3.4.6-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.
Files changed (2) hide show
  1. package/dist/index.js +370 -81
  2. 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 _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
48362
- _ref5$type = _ref5.type,
48363
- type = _ref5$type === void 0 ? DEFAULTS.type : _ref5$type,
48364
- _ref5$duration = _ref5.duration,
48365
- duration = _ref5$duration === void 0 ? DEFAULTS.duration : _ref5$duration,
48366
- _ref5$closable = _ref5.closable,
48367
- closable = _ref5$closable === void 0 ? DEFAULTS.closable : _ref5$closable,
48368
- sticky = _ref5.sticky,
48369
- title = _ref5.title,
48370
- message = _ref5.message,
48371
- closeOnLinkClick = _ref5.closeOnLinkClick,
48372
- icon = _ref5.icon,
48373
- _ref5$enableHtmlConte = _ref5.enableHtmlContent,
48374
- enableHtmlContent = _ref5$enableHtmlConte === void 0 ? false : _ref5$enableHtmlConte,
48375
- size = _ref5.size,
48376
- _ref5$sizeModulable = _ref5.sizeModulable,
48377
- sizeModulable = _ref5$sizeModulable === void 0 ? false : _ref5$sizeModulable,
48378
- link = _ref5.link,
48379
- links = _ref5.links,
48380
- attachedFiles = _ref5.attachedFiles,
48381
- _ref5$enablePercentag = _ref5.enablePercentage,
48382
- enablePercentage = _ref5$enablePercentag === void 0 ? false : _ref5$enablePercentag,
48383
- _ref5$percentage = _ref5.percentage,
48384
- percentage = _ref5$percentage === void 0 ? 0 : _ref5$percentage,
48385
- pauseOnHover = _ref5.pauseOnHover;
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 _toastRef2;
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 _toastRef;
48400
- (_toastRef = toastRef) === null || _toastRef === void 0 || _toastRef.clear();
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
- (_toastRef2 = toastRef) === null || _toastRef2 === void 0 || _toastRef2.show({
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
 
@@ -56496,6 +56741,12 @@ var colMinWidthPx = function colMinWidthPx(col) {
56496
56741
  };
56497
56742
  var cellEditorSeq = 0;
56498
56743
 
56744
+ // Ordre de tri fige de chaque tableau, par `tableId` (RNGBK-156, MEP-1064). Garde au
56745
+ // niveau du module, il survit au remontage du composant (l'application remonte le
56746
+ // tableau, ex. a l'ouverture d'une fiche) mais pas au rechargement de la page : au
56747
+ // rafraichissement, les lignes ajoutees rejoignent leur place triee.
56748
+ var ordresTriFiges = new Map();
56749
+
56499
56750
  // ─── Éditeurs de cellule : surfaces portées hors du <td> ──────────────────────
56500
56751
  // Un overlay porté (portail React, `appendTo={body}`) vit hors du <td> : un mousedown
56501
56752
  // dedans n'est PAS un clic extérieur. LISTE UNIQUE — tout nouvel overlay s'ajoute ici.
@@ -58522,6 +58773,7 @@ var Table$1 = function Table(_ref18) {
58522
58773
  var selectionFilterMode = selectionFilterControle ? selectionFilterModeProp : selectionFilterModeInterne;
58523
58774
  var setSelectionFilterMode = useCallback(function (mode) {
58524
58775
  if (!MODES_SELECTION_FILTER.includes(mode)) return;
58776
+ oublierOrdreFige();
58525
58777
  setSelectionFilterModeInterne(mode);
58526
58778
  try {
58527
58779
  if (mode === 'all') localStorage.removeItem(SELECTION_FILTER_KEY);else localStorage.setItem(SELECTION_FILTER_KEY, mode);
@@ -60347,6 +60599,7 @@ var Table$1 = function Table(_ref18) {
60347
60599
  value: null
60348
60600
  });
60349
60601
  });
60602
+ oublierOrdreFige();
60350
60603
  setFilters(vides);
60351
60604
  persistFilters(vides);
60352
60605
  if (lazy) {
@@ -60438,11 +60691,29 @@ var Table$1 = function Table(_ref18) {
60438
60691
  //
60439
60692
  // `ordreTriRef` retient le rang de chaque ligne (par id) pour le tri courant.
60440
60693
  // Il est remis a nul a chaque tri demande (`appliquerTri`, « Réappliquer le
60441
- // tri ») et recalcule au rendu suivant. Le tri reste affiche comme actif.
60442
- var ordreTriRef = useRef(null); // { field, order, rangs: Map<id, rang> }
60694
+ // tri ») et a chaque changement de filtre par l'utilisateur (filtres de colonne,
60695
+ // « Effacer les filtres », recherche globale, filtre de selection), puis
60696
+ // recalcule au rendu suivant. Le tri reste affiche comme actif.
60697
+ // Avec un `tableId`, l'ordre est aussi memorise dans `ordresTriFiges` : un
60698
+ // remontage du tableau le retrouve au lieu de retrier (MEP-1064).
60699
+ var ordreTriRef = useRef(tableId ? ordresTriFiges.get(tableId) || null : null); // { field, order, rangs: Map<id, rang> }
60443
60700
  var _useState95 = useState(0),
60444
60701
  _useState96 = _slicedToArray$b(_useState95, 2),
60445
60702
  setTriVersion = _useState96[1];
60703
+ var memoriserOrdreFige = function memoriserOrdreFige(ordre) {
60704
+ ordreTriRef.current = ordre;
60705
+ if (!tableId) return;
60706
+ if (ordre) ordresTriFiges.set(tableId, ordre);else ordresTriFiges["delete"](tableId);
60707
+ };
60708
+ // Oublie l'ordre fige : le prochain rendu retrie a frais (tri ou filtre demande).
60709
+ // Appele aussi depuis des callbacks declares plus haut (filtres) : ils ne
60710
+ // l'executent qu'apres le rendu, une fois la fonction definie.
60711
+ var oublierOrdreFige = function oublierOrdreFige() {
60712
+ memoriserOrdreFige(null);
60713
+ setTriVersion(function (v) {
60714
+ return v + 1;
60715
+ });
60716
+ };
60446
60717
 
60447
60718
  // Le tri tel que PrimeReact le fait par defaut (meme comparateur, vides en bas).
60448
60719
  var trierFrais = function trierFrais(rows, field, order) {
@@ -60469,13 +60740,13 @@ var Table$1 = function Table(_ref18) {
60469
60740
  });
60470
60741
  if (!valide) {
60471
60742
  var triees = trierFrais(rows, field, order);
60472
- ordreTriRef.current = {
60743
+ memoriserOrdreFige({
60473
60744
  field: field,
60474
60745
  order: order,
60475
60746
  rangs: new Map(triees.map(function (r, i) {
60476
60747
  return [r.id, i];
60477
60748
  }))
60478
- };
60749
+ });
60479
60750
  return triees;
60480
60751
  }
60481
60752
  var connues = rows.filter(function (r) {
@@ -60514,13 +60785,13 @@ var Table$1 = function Table(_ref18) {
60514
60785
  // PrimeReact trie toujours les donnees lui-meme hors lazy (il lit alors
60515
60786
  // `sortField`/`sortOrder` dans les props).
60516
60787
  var appliquerTri = function appliquerTri(field, order) {
60788
+ var _ref34 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
60789
+ _ref34$garderOrdreFig = _ref34.garderOrdreFige,
60790
+ garderOrdreFige = _ref34$garderOrdreFig === void 0 ? false : _ref34$garderOrdreFig;
60517
60791
  var sortField = field || null;
60518
60792
  var sortOrder = sortField ? order : null;
60519
60793
  // Tout tri demande — meme identique au courant — repart d'un ordre frais.
60520
- ordreTriRef.current = null;
60521
- setTriVersion(function (v) {
60522
- return v + 1;
60523
- });
60794
+ if (!garderOrdreFige) oublierOrdreFige();
60524
60795
  if (lazy) {
60525
60796
  setLazySort({
60526
60797
  sortField: sortField,
@@ -60666,10 +60937,10 @@ var Table$1 = function Table(_ref18) {
60666
60937
  locale: lang,
60667
60938
  placeholder: translate('arengibook.table.filter.dateRange', labels),
60668
60939
  onChange: function onChange(e) {
60669
- var _ref34 = Array.isArray(e.value) ? e.value : [],
60670
- _ref35 = _slicedToArray$b(_ref34, 2),
60671
- f = _ref35[0],
60672
- t = _ref35[1];
60940
+ var _ref35 = Array.isArray(e.value) ? e.value : [],
60941
+ _ref36 = _slicedToArray$b(_ref35, 2),
60942
+ f = _ref36[0],
60943
+ t = _ref36[1];
60673
60944
  // En vue mois/année, le calendrier rend le 1er du mois/de l'année choisi :
60674
60945
  // la borne de fin est portée au DERNIER jour, sinon « mars → mai »
60675
60946
  // exclurait le 15 mai.
@@ -60871,10 +61142,10 @@ var Table$1 = function Table(_ref18) {
60871
61142
 
60872
61143
  var linkTemplate = useCallback(function (col) {
60873
61144
  return function (rowData) {
60874
- var _ref37, _col$href2;
61145
+ var _ref38, _col$href2;
60875
61146
  var label = rowData[col.field];
60876
61147
  if (col.type === 'titleLink') {
60877
- var _ref36, _col$href;
61148
+ var _ref37, _col$href;
60878
61149
  // ─────────────────────────────────────────────────────────────────
60879
61150
  // Le titre est un LIEN quand une cible existe.
60880
61151
  //
@@ -60886,7 +61157,7 @@ var Table$1 = function Table(_ref18) {
60886
61157
  // Sans cible, on garde un <span> : un titre en couleur de lien qui ne
60887
61158
  // mene nulle part est un mensonge.
60888
61159
  // ─────────────────────────────────────────────────────────────────
60889
- var cible = typeof col.href === 'function' ? col.href(rowData) : (_ref36 = (_col$href = col.href) !== null && _col$href !== void 0 ? _col$href : rowData[col.field + 'Url']) !== null && _ref36 !== void 0 ? _ref36 : null;
61160
+ var cible = typeof col.href === 'function' ? col.href(rowData) : (_ref37 = (_col$href = col.href) !== null && _col$href !== void 0 ? _col$href : rowData[col.field + 'Url']) !== null && _ref37 !== void 0 ? _ref37 : null;
60890
61161
  return /*#__PURE__*/React__default.createElement("div", {
60891
61162
  className: "ab-titre-box",
60892
61163
  style: {
@@ -60901,7 +61172,7 @@ var Table$1 = function Table(_ref18) {
60901
61172
  className: "table-item-title cell-text"
60902
61173
  }, label));
60903
61174
  }
60904
- var href = typeof col.href === 'function' ? col.href(rowData) : (_ref37 = (_col$href2 = col.href) !== null && _col$href2 !== void 0 ? _col$href2 : rowData[col.field + 'Url']) !== null && _ref37 !== void 0 ? _ref37 : '#';
61175
+ var href = typeof col.href === 'function' ? col.href(rowData) : (_ref38 = (_col$href2 = col.href) !== null && _col$href2 !== void 0 ? _col$href2 : rowData[col.field + 'Url']) !== null && _ref38 !== void 0 ? _ref38 : '#';
60905
61176
  return /*#__PURE__*/React__default.createElement("div", {
60906
61177
  className: "ab-titre-box",
60907
61178
  style: {
@@ -60993,13 +61264,13 @@ var Table$1 = function Table(_ref18) {
60993
61264
  }, []);
60994
61265
  var lienFormulaireTemplate = useCallback(function (col) {
60995
61266
  return function (rowData) {
60996
- var _col$options5, _ref38, _opt$label, _ref39, _col$href3;
61267
+ var _col$options5, _ref39, _opt$label, _ref40, _col$href3;
60997
61268
  var val = rowData[col.field];
60998
61269
  var opt = (_col$options5 = col.options) === null || _col$options5 === void 0 ? void 0 : _col$options5.find(function (o) {
60999
61270
  return o.value === val;
61000
61271
  });
61001
- var label = (_ref38 = (_opt$label = opt === null || opt === void 0 ? void 0 : opt.label) !== null && _opt$label !== void 0 ? _opt$label : val) !== null && _ref38 !== void 0 ? _ref38 : '';
61002
- var href = typeof col.href === 'function' ? col.href(rowData) : (_ref39 = (_col$href3 = col.href) !== null && _col$href3 !== void 0 ? _col$href3 : opt === null || opt === void 0 ? void 0 : opt.href) !== null && _ref39 !== void 0 ? _ref39 : null;
61272
+ var label = (_ref39 = (_opt$label = opt === null || opt === void 0 ? void 0 : opt.label) !== null && _opt$label !== void 0 ? _opt$label : val) !== null && _ref39 !== void 0 ? _ref39 : '';
61273
+ var href = typeof col.href === 'function' ? col.href(rowData) : (_ref40 = (_col$href3 = col.href) !== null && _col$href3 !== void 0 ? _col$href3 : opt === null || opt === void 0 ? void 0 : opt.href) !== null && _ref40 !== void 0 ? _ref40 : null;
61003
61274
  if (!label) return '';
61004
61275
  return /*#__PURE__*/React__default.createElement("div", {
61005
61276
  style: {
@@ -61549,10 +61820,10 @@ var Table$1 = function Table(_ref18) {
61549
61820
  });
61550
61821
  if (option) {
61551
61822
  var extra = {};
61552
- Object.entries(col.updates).forEach(function (_ref40) {
61553
- var _ref41 = _slicedToArray$b(_ref40, 2),
61554
- targetField = _ref41[0],
61555
- optionProp = _ref41[1];
61823
+ Object.entries(col.updates).forEach(function (_ref41) {
61824
+ var _ref42 = _slicedToArray$b(_ref41, 2),
61825
+ targetField = _ref42[0],
61826
+ optionProp = _ref42[1];
61556
61827
  if (option[optionProp] !== undefined) extra[targetField] = option[optionProp];
61557
61828
  });
61558
61829
  enrichedRow = _objectSpread2(_objectSpread2({}, newRowData), extra);
@@ -61712,10 +61983,10 @@ var Table$1 = function Table(_ref18) {
61712
61983
  return opt.value === v;
61713
61984
  });
61714
61985
  if (option) {
61715
- Object.entries(col.updates).forEach(function (_ref42) {
61716
- var _ref43 = _slicedToArray$b(_ref42, 2),
61717
- tf = _ref43[0],
61718
- op = _ref43[1];
61986
+ Object.entries(col.updates).forEach(function (_ref43) {
61987
+ var _ref44 = _slicedToArray$b(_ref43, 2),
61988
+ tf = _ref44[0],
61989
+ op = _ref44[1];
61719
61990
  if (option[op] !== undefined) enrichedFields[tf] = option[op];
61720
61991
  });
61721
61992
  }
@@ -62130,13 +62401,15 @@ var Table$1 = function Table(_ref18) {
62130
62401
  }), /*#__PURE__*/React__default.createElement(InputText, {
62131
62402
  value: globalFilter,
62132
62403
  onChange: function onChange(e) {
62133
- return setGlobalFilter(e.target.value);
62404
+ oublierOrdreFige();
62405
+ setGlobalFilter(e.target.value);
62134
62406
  },
62135
62407
  placeholder: translate('arengibook.table.toolbar.search', labels)
62136
62408
  }), globalFilter && /*#__PURE__*/React__default.createElement("i", {
62137
62409
  className: "pi pi-times",
62138
62410
  onClick: function onClick() {
62139
- return setGlobalFilter('');
62411
+ oublierOrdreFige();
62412
+ setGlobalFilter('');
62140
62413
  }
62141
62414
  })), /*#__PURE__*/React__default.createElement("button", {
62142
62415
  type: "button",
@@ -62221,14 +62494,14 @@ var Table$1 = function Table(_ref18) {
62221
62494
  className: "ab-menu__filet"
62222
62495
  })), actionsSecondaires.length > 0 && /*#__PURE__*/React__default.createElement("div", {
62223
62496
  className: "ab-menu__titre"
62224
- }, translate('arengibook.table.selection.onTable', labels)), actionsSecondaires.map(function (_ref44) {
62225
- var key = _ref44.key,
62226
- icon = _ref44.icon,
62227
- label = _ref44.label,
62228
- title = _ref44.title,
62229
- disabled = _ref44.disabled,
62230
- danger = _ref44.danger,
62231
- action = _ref44.action;
62497
+ }, translate('arengibook.table.selection.onTable', labels)), actionsSecondaires.map(function (_ref45) {
62498
+ var key = _ref45.key,
62499
+ icon = _ref45.icon,
62500
+ label = _ref45.label,
62501
+ title = _ref45.title,
62502
+ disabled = _ref45.disabled,
62503
+ danger = _ref45.danger,
62504
+ action = _ref45.action;
62232
62505
  return /*#__PURE__*/React__default.createElement("button", {
62233
62506
  key: key,
62234
62507
  type: "button",
@@ -62396,9 +62669,9 @@ var Table$1 = function Table(_ref18) {
62396
62669
  }, {
62397
62670
  key: 'fit',
62398
62671
  label: translate('arengibook.table.settings.rowHeightFit', labels)
62399
- }].map(function (_ref45) {
62400
- var key = _ref45.key,
62401
- label = _ref45.label;
62672
+ }].map(function (_ref46) {
62673
+ var key = _ref46.key,
62674
+ label = _ref46.label;
62402
62675
  return /*#__PURE__*/React__default.createElement("button", {
62403
62676
  key: key,
62404
62677
  type: "button",
@@ -62437,9 +62710,9 @@ var Table$1 = function Table(_ref18) {
62437
62710
  }, {
62438
62711
  key: 'fit',
62439
62712
  label: translate('arengibook.table.settings.rowHeightFit', labels)
62440
- }].map(function (_ref46) {
62441
- var key = _ref46.key,
62442
- label = _ref46.label;
62713
+ }].map(function (_ref47) {
62714
+ var key = _ref47.key,
62715
+ label = _ref47.label;
62443
62716
  return /*#__PURE__*/React__default.createElement("button", {
62444
62717
  key: key,
62445
62718
  type: "button",
@@ -62470,9 +62743,9 @@ var Table$1 = function Table(_ref18) {
62470
62743
  }, {
62471
62744
  key: 'center',
62472
62745
  label: translate('arengibook.table.settings.alignCenter', labels)
62473
- }].map(function (_ref47) {
62474
- var key = _ref47.key,
62475
- label = _ref47.label;
62746
+ }].map(function (_ref48) {
62747
+ var key = _ref48.key,
62748
+ label = _ref48.label;
62476
62749
  return /*#__PURE__*/React__default.createElement("button", {
62477
62750
  key: key,
62478
62751
  type: "button",
@@ -62586,9 +62859,24 @@ var Table$1 = function Table(_ref18) {
62586
62859
  lazy: lazy,
62587
62860
  totalRecords: lazy ? totalRecords : undefined,
62588
62861
  sortField: lazy ? lazySort.sortField : activeSort ? activeSort.field : undefined,
62589
- sortOrder: lazy ? lazySort.sortOrder : activeSort ? activeSort.order : undefined,
62862
+ sortOrder: lazy ? lazySort.sortOrder : activeSort ? activeSort.order : undefined
62863
+ // PrimeReact rappelle `onSort` de lui-meme quand il restaure son etat
62864
+ // (stateStorage), a chaque montage : ce n'est pas une demande de
62865
+ // l'utilisateur. Cet echo redemande le tri DEJA actif, ce qu'un clic
62866
+ // d'en-tete ne fait jamais (il change l'ordre) ; « Réappliquer le
62867
+ // tri » appelle `appliquerTri` directement. On garde alors l'ordre
62868
+ // fige, sinon un remontage du tableau retriait la ligne en saisie
62869
+ // (MEP-1064).
62870
+ ,
62590
62871
  onSort: function onSort(e) {
62591
- return appliquerTri(e.sortField, e.sortOrder);
62872
+ var triCourant = lazy ? lazySort : activeSort ? {
62873
+ sortField: activeSort.field,
62874
+ sortOrder: activeSort.order
62875
+ } : {};
62876
+ var echo = !!e.sortField && e.sortField === triCourant.sortField && e.sortOrder === triCourant.sortOrder;
62877
+ appliquerTri(e.sortField, e.sortOrder, {
62878
+ garderOrdreFige: echo
62879
+ });
62592
62880
  },
62593
62881
  loading: loading,
62594
62882
  emptyMessage: translate('arengibook.table.empty', labels),
@@ -62604,6 +62892,7 @@ var Table$1 = function Table(_ref18) {
62604
62892
  filters: filterVisible ? filters : undefined,
62605
62893
  filterDisplay: filterVisible ? 'row' : undefined,
62606
62894
  onFilter: filterVisible ? function (e) {
62895
+ oublierOrdreFige();
62607
62896
  setFilters(e.filters);
62608
62897
  persistFilters(e.filters);
62609
62898
  if (lazy) {
@@ -62981,7 +63270,7 @@ var Table$1 = function Table(_ref18) {
62981
63270
  columnKey: "__row_actions__",
62982
63271
  header: inline ? actionsCol.actionsHeader || '' : '',
62983
63272
  body: function body(rowData) {
62984
- var _ref48, _linkCol$href;
63273
+ var _ref49, _linkCol$href;
62985
63274
  var rowActions = rowData[actionsCol.actionsField] || [];
62986
63275
  if (inline) {
62987
63276
  return /*#__PURE__*/React__default.createElement(RowActionsInlineCell, {
@@ -62995,7 +63284,7 @@ var Table$1 = function Table(_ref18) {
62995
63284
  var linkCol = columns.find(function (c) {
62996
63285
  return c.type === 'titleLink' || c.type === 'link';
62997
63286
  });
62998
- var linkHref = linkCol ? typeof linkCol.href === 'function' ? linkCol.href(rowData) : (_ref48 = (_linkCol$href = linkCol.href) !== null && _linkCol$href !== void 0 ? _linkCol$href : rowData[linkCol.field + 'Url']) !== null && _ref48 !== void 0 ? _ref48 : null : null;
63287
+ var linkHref = linkCol ? typeof linkCol.href === 'function' ? linkCol.href(rowData) : (_ref49 = (_linkCol$href = linkCol.href) !== null && _linkCol$href !== void 0 ? _linkCol$href : rowData[linkCol.field + 'Url']) !== null && _ref49 !== void 0 ? _ref49 : null : null;
62999
63288
  return /*#__PURE__*/React__default.createElement(RowActionsCell, {
63000
63289
  actions: rowActions,
63001
63290
  rowData: rowData,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "arengibook",
3
3
  "private": false,
4
- "version": "3.4.4-main",
4
+ "version": "3.4.6-main",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "exports": {