wulf.js 2.0.1 → 2.1.1
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/README.md +240 -4
- package/changelog.md +37 -0
- package/dist/focus-trap.esm.js +110 -37
- package/dist/focus-trap.esm.js.map +2 -2
- package/dist/focus-trap.global.js +110 -37
- package/dist/focus-trap.global.js.map +2 -2
- package/dist/focus-trap.global.min.js +2 -2
- package/dist/focus-trap.global.min.js.map +3 -3
- package/dist/index.esm.js +3370 -337
- package/dist/index.esm.js.map +4 -4
- package/dist/index.global.js +3370 -337
- package/dist/index.global.js.map +4 -4
- package/dist/index.global.min.js +2 -2
- package/dist/index.global.min.js.map +4 -4
- package/dist/mask.css +1 -1
- package/dist/mask.css.map +2 -2
- package/dist/mask.esm.js +2826 -171
- package/dist/mask.esm.js.map +4 -4
- package/dist/mask.global.js +2816 -161
- package/dist/mask.global.js.map +4 -4
- package/dist/mask.global.min.js +2 -2
- package/dist/mask.global.min.js.map +4 -4
- package/dist/mask.layered.css +1 -1
- package/dist/mask.layered.css.map +2 -2
- package/dist/masonry.esm.js +175 -69
- package/dist/masonry.esm.js.map +2 -2
- package/dist/masonry.global.js +175 -69
- package/dist/masonry.global.js.map +2 -2
- package/dist/masonry.global.min.js +3 -3
- package/dist/masonry.global.min.js.map +3 -3
- package/dist/scroll.css +1 -1
- package/dist/scroll.css.map +2 -2
- package/dist/scroll.esm.js +132 -40
- package/dist/scroll.esm.js.map +2 -2
- package/dist/scroll.global.js +132 -40
- package/dist/scroll.global.js.map +2 -2
- package/dist/scroll.global.min.js +2 -2
- package/dist/scroll.global.min.js.map +3 -3
- package/dist/scroll.layered.css +1 -1
- package/dist/scroll.layered.css.map +2 -2
- package/dist/shortcut.esm.js +182 -22
- package/dist/shortcut.esm.js.map +3 -3
- package/dist/shortcut.global.js +182 -22
- package/dist/shortcut.global.js.map +3 -3
- package/dist/shortcut.global.min.js +4 -1
- package/dist/shortcut.global.min.js.map +4 -4
- package/dist/toast.css +1 -1
- package/dist/toast.css.map +2 -2
- package/dist/toast.esm.js +116 -19
- package/dist/toast.esm.js.map +2 -2
- package/dist/toast.global.js +116 -19
- package/dist/toast.global.js.map +2 -2
- package/dist/toast.global.min.js +3 -3
- package/dist/toast.global.min.js.map +3 -3
- package/dist/toast.layered.css +1 -1
- package/dist/toast.layered.css.map +2 -2
- package/dist/types/common/AuditableComponent.d.ts +3 -3
- package/dist/types/common/dom.d.ts +5 -0
- package/dist/types/focus-trap/FocusTrap.d.ts +5 -2
- package/dist/types/mask/AmountEngine.d.ts +8 -0
- package/dist/types/mask/BaseInputMask.d.ts +18 -0
- package/dist/types/mask/DateUTCEngine.d.ts +187 -0
- package/dist/types/mask/InputAmountMask.d.ts +5 -0
- package/dist/types/mask/InputDateUTCMask.d.ts +110 -0
- package/dist/types/mask/InputEmailMask.d.ts +7 -0
- package/dist/types/mask/InputMask.d.ts +7 -5
- package/dist/types/mask/MaskEngine.d.ts +39 -7
- package/dist/types/mask/index.d.ts +12 -6
- package/dist/types/mask/paste.d.ts +15 -0
- package/dist/types/mask/types.d.ts +27 -2
- package/dist/types/masonry/Masonry.d.ts +2 -0
- package/dist/types/scroll/ScrollBlock.d.ts +2 -0
- package/dist/types/shortcut/ShortcutManager.d.ts +14 -3
- package/dist/types/toast/ToastManager.d.ts +2 -0
- package/package.json +1 -1
package/dist/mask.layered.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer wulf{:root{--mask-padding-y: .625rem;--mask-padding-x: .875rem;--mask-border-radius: inherit;--mask-bg-color: transparent;--mask-text-color: inherit;--mask-placeholder-color-light: #64748b;--mask-placeholder-color-dark: #94a3b8;--mask-placeholder-color: var(--mask-placeholder-color-light);--mask-selection-bg: rgba(59, 130, 246, .25);--mask-focus-outline: 2px solid currentColor;--mask-focus-outline-offset: 2px;--mask-autofill-ring-color: #2563eb}@supports (color: light-dark(white,black)){:root{--mask-placeholder-color: light-dark(var(--mask-placeholder-color-light), var(--mask-placeholder-color-dark));--mask-autofill-ring-color: light-dark(#2563eb, #60a5fa)}}@media(prefers-contrast:more){:root{--mask-placeholder-color-light: #334155;--mask-placeholder-color-dark: #e2e8f0;--mask-placeholder-color: var(--mask-placeholder-color-light);--mask-focus-outline: 3px solid currentColor}@supports (color: light-dark(white,black)){:root{--mask-placeholder-color: light-dark(var(--mask-placeholder-color-light), var(--mask-placeholder-color-dark))}}}.wulf-mask-wrapper{display:inline-grid;grid-template-columns:1fr;grid-template-rows:1fr;vertical-align:middle;box-sizing:border-box;position:relative;background:var(--mask-bg-color);border-radius:var(--mask-border-radius)}.wulf-mask-wrapper>input,.wulf-mask-wrapper .mask-ghost,.wulf-mask-wrapper:after{grid-area:1 / 1 / 2 / 2;box-sizing:border-box;margin:0;min-width:0;padding-block:var(--mask-padding-y);padding-inline:var(--mask-padding-x);font-family:inherit;font-size:inherit;font-weight:inherit;font-style:inherit;line-height:inherit;letter-spacing:inherit;font-kerning:none;font-variant-numeric:tabular-nums;border-radius:inherit}.wulf-mask-wrapper>input{position:relative;color:var(--mask-text-color)
|
|
1
|
+
@layer wulf{:root{--mask-padding-y: .625rem;--mask-padding-x: .875rem;--mask-border-radius: inherit;--mask-bg-color: transparent;--mask-text-color: inherit;--mask-placeholder-color-light: #64748b;--mask-placeholder-color-dark: #94a3b8;--mask-placeholder-color: var(--mask-placeholder-color-light);--mask-selection-bg: rgba(59, 130, 246, .25);--mask-focus-outline: 2px solid currentColor;--mask-focus-outline-offset: 2px;--mask-autofill-ring-color: #2563eb;--mask-input-border: none}@supports (color: light-dark(white,black)){:root{--mask-placeholder-color: light-dark(var(--mask-placeholder-color-light), var(--mask-placeholder-color-dark));--mask-autofill-ring-color: light-dark(#2563eb, #60a5fa)}}@media(prefers-contrast:more){:root{--mask-placeholder-color-light: #334155;--mask-placeholder-color-dark: #e2e8f0;--mask-placeholder-color: var(--mask-placeholder-color-light);--mask-focus-outline: 3px solid currentColor}@supports (color: light-dark(white,black)){:root{--mask-placeholder-color: light-dark(var(--mask-placeholder-color-light), var(--mask-placeholder-color-dark))}}}.wulf-mask-wrapper{display:inline-grid;grid-template-columns:1fr;grid-template-rows:1fr;vertical-align:middle;box-sizing:border-box;position:relative;background:var(--mask-bg-color);border-radius:var(--mask-border-radius)}.wulf-mask-wrapper>input,.wulf-mask-wrapper .mask-ghost,.wulf-mask-wrapper:after{grid-area:1 / 1 / 2 / 2;box-sizing:border-box;margin:0;min-width:0;padding-block:var(--mask-padding-y);padding-inline:var(--mask-padding-x);font-family:inherit;font-size:inherit;font-weight:inherit;font-style:inherit;line-height:inherit;letter-spacing:inherit;font-kerning:none;font-variant-numeric:tabular-nums;border-radius:inherit}.wulf-mask-wrapper>input{position:relative;color:var(--mask-text-color)}.wulf-mask-wrapper>input:focus-visible{outline:var(--mask-focus-outline);outline-offset:var(--mask-focus-outline-offset)}.wulf-mask-wrapper>input::selection{background:var(--mask-selection-bg);color:inherit}.wulf-mask-wrapper>input:is(:autofill,:-webkit-autofill){box-shadow:inset 0 0 0 2px var(--mask-autofill-ring-color)}.wulf-mask-wrapper>input:is(:autofill,:-webkit-autofill):focus-visible{outline:var(--mask-focus-outline);outline-offset:var(--mask-focus-outline-offset)}.wulf-mask-wrapper.has-visible-ghost:not([data-disabled])>input::placeholder,.wulf-mask-wrapper:not(.has-ghost)[data-mask]:not([data-mask=""]):not([data-disabled]):focus-within>input::placeholder{color:transparent;opacity:0}.wulf-mask-wrapper:has(>input:is(:autofill,:-webkit-autofill)) .mask-ghost-remaining,.wulf-mask-wrapper:has(>input:is(:autofill,:-webkit-autofill)):not(.has-ghost):after{color:transparent}.wulf-mask-wrapper .mask-ghost{position:relative;z-index:1;display:flex;align-items:center;background:transparent;pointer-events:none;-webkit-user-select:none;user-select:none;white-space:pre;overflow:hidden;border:0 solid transparent}.wulf-mask-wrapper .mask-ghost .mask-ghost-typed{visibility:hidden;color:transparent;flex-shrink:0}.wulf-mask-wrapper .mask-ghost .mask-ghost-remaining{color:var(--mask-placeholder-color);flex-shrink:0}.wulf-mask-wrapper .wulf-mask-sr-status{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;pointer-events:none}.wulf-mask-wrapper.has-ghost:after,.wulf-mask-wrapper:has(.mask-ghost):after{content:none!important;display:none!important}.wulf-mask-wrapper:not(.has-ghost):after{content:attr(data-mask);content:attr(data-mask) / "";position:relative;z-index:1;display:flex;align-items:center;background:transparent;color:var(--mask-placeholder-color);pointer-events:none;-webkit-user-select:none;user-select:none;white-space:pre;border:none}.wulf-mask-wrapper[data-disabled] .mask-ghost,.wulf-mask-wrapper[data-disabled]:after{content:none!important;display:none!important}.wulf-mask-wrapper[data-disabled]>input{color:var(--mask-text-color)!important;caret-color:auto}.wulf-mask-wrapper.mask-focus-only:not(:focus-within):not([data-disabled]) .mask-ghost-remaining,.wulf-mask-wrapper.mask-focus-only:not(:focus-within):not([data-disabled]):after{color:transparent}.wulf-mask-wrapper.has-selection:not([data-disabled]) .mask-ghost-remaining,.wulf-mask-wrapper.has-selection:not([data-disabled]):not(.has-ghost):after{color:transparent!important;transition:none!important}@media(prefers-reduced-motion:no-preference){.wulf-mask-wrapper .mask-ghost .mask-ghost-remaining,.wulf-mask-wrapper:not(.has-ghost):after{transition:color .15s ease}}@media(forced-colors:active){.wulf-mask-wrapper .mask-ghost .mask-ghost-typed{visibility:hidden!important;color:transparent!important}.wulf-mask-wrapper .mask-ghost .mask-ghost-remaining{color:GrayText!important}.wulf-mask-wrapper:not(.has-ghost):after{color:GrayText!important}.wulf-mask-wrapper.wulf-mask-wrapper--auto>input{border:1px solid ButtonBorder}.wulf-mask-wrapper>input:is(:autofill,:-webkit-autofill){outline:2px dashed Highlight;outline-offset:2px}.wulf-mask-wrapper>input:focus-visible,.wulf-mask-wrapper>input:is(:autofill,:-webkit-autofill):focus-visible{outline:2px solid Highlight;outline-offset:2px}}.wulf-mask-wrapper.align-right>input,.wulf-mask-wrapper[data-align=right]>input,.wulf-mask-wrapper[data-mask-align=right]>input{text-align:right}.wulf-mask-wrapper.align-right .mask-ghost,.wulf-mask-wrapper[data-align=right] .mask-ghost,.wulf-mask-wrapper[data-mask-align=right] .mask-ghost{justify-content:right;text-align:right}.wulf-mask-wrapper.align-right:not(.has-ghost):after,.wulf-mask-wrapper[data-align=right]:not(.has-ghost):after,.wulf-mask-wrapper[data-mask-align=right]:not(.has-ghost):after{justify-content:right;text-align:right}.wulf-mask-wrapper.align-center>input,.wulf-mask-wrapper[data-align=center]>input,.wulf-mask-wrapper[data-mask-align=center]>input{text-align:center}.wulf-mask-wrapper.align-center .mask-ghost,.wulf-mask-wrapper[data-align=center] .mask-ghost,.wulf-mask-wrapper[data-mask-align=center] .mask-ghost{justify-content:center;text-align:center}.wulf-mask-wrapper.align-center:not(.has-ghost):after,.wulf-mask-wrapper[data-align=center]:not(.has-ghost):after,.wulf-mask-wrapper[data-mask-align=center]:not(.has-ghost):after{justify-content:center;text-align:center}.wulf-mask-wrapper.align-left>input,.wulf-mask-wrapper[data-align=left]>input,.wulf-mask-wrapper[data-mask-align=left]>input{text-align:left}.wulf-mask-wrapper.align-left .mask-ghost,.wulf-mask-wrapper[data-align=left] .mask-ghost,.wulf-mask-wrapper[data-mask-align=left] .mask-ghost{justify-content:left;text-align:left}.wulf-mask-wrapper.align-left:not(.has-ghost):after,.wulf-mask-wrapper[data-align=left]:not(.has-ghost):after,.wulf-mask-wrapper[data-mask-align=left]:not(.has-ghost):after{justify-content:left;text-align:left}:where(.wulf-mask-wrapper:not(.wulf-mask-wrapper--auto)>input){border:var(--mask-input-border)}@media(pointer:coarse){.wulf-mask-wrapper>input{min-block-size:44px}}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["<stdin>"],
|
|
4
|
-
"sourcesContent": ["@layer wulf {\n/* ==========================================================================\n InputMask LESS - Architecture CSS Grid & ::after\n Namespace : .wulf-mask-wrapper\n Compatible polices proportionnelles (non-monospace) et monospaces.\n Z\u00E9ro d\u00E9calage de s\u00E9lection, gestion du mode d\u00E9sactiv\u00E9 et focus-only.\n ========================================================================== */\n:root {\n --mask-padding-y: 0.625rem;\n --mask-padding-x: 0.875rem;\n --mask-border-radius: inherit;\n --mask-bg-color: transparent;\n --mask-text-color: inherit;\n --mask-placeholder-color-light: #64748b;\n --mask-placeholder-color-dark: #94a3b8;\n /* Slate-500 : Contraste >= 4.5:1 sur fond blanc (WCAG 1.4.3 AA) */\n --mask-placeholder-color: var(--mask-placeholder-color-light);\n --mask-selection-bg: rgba(59, 130, 246, 0.25);\n --mask-focus-outline: 2px solid currentColor;\n --mask-focus-outline-offset: 2px;\n --mask-autofill-ring-color: #2563eb;\n}\n@supports (color: light-dark(white, black)) {\n :root {\n --mask-placeholder-color: light-dark(var(--mask-placeholder-color-light), var(--mask-placeholder-color-dark));\n --mask-autofill-ring-color: light-dark(#2563eb, #60a5fa);\n }\n}\n@media (prefers-contrast: more) {\n :root {\n --mask-placeholder-color-light: #334155;\n --mask-placeholder-color-dark: #e2e8f0;\n --mask-placeholder-color: var(--mask-placeholder-color-light);\n --mask-focus-outline: 3px solid currentColor;\n }\n @supports (color: light-dark(white, black)) {\n :root {\n --mask-placeholder-color: light-dark(var(--mask-placeholder-color-light), var(--mask-placeholder-color-dark));\n }\n }\n}\n/* ==========================================================================\n Conteneur principal isol\u00E9 sous namespace .wulf-mask-wrapper\n ========================================================================== */\n.wulf-mask-wrapper {\n display: inline-grid;\n grid-template-columns: 1fr;\n grid-template-rows: 1fr;\n vertical-align: middle;\n box-sizing: border-box;\n position: relative;\n background: var(--mask-bg-color);\n border-radius: var(--mask-border-radius);\n /* Superposition parfaite de l'input, du ghost et du pseudo-\u00E9l\u00E9ment ::after */\n /* Input dans le flux */\n /* Masque le placeholder natif uniquement lorsqu'un ghost ou gabarit actif est visible */\n /* Masque le texte fant\u00F4me si le navigateur vient de remplir via autofill */\n /* Conteneur fant\u00F4me */\n /* Statut masqu\u00E9 visuellement pour annonce AT des compl\u00E9tions inline */\n /* Fallback ::after pour usage pur CSS sans instance JS .mask-ghost */\n /* Mode d\u00E9sactiv\u00E9 */\n /* Option focus-only */\n /* Masquage instantan\u00E9 du fant\u00F4me lors d'une s\u00E9lection active pour \u00E9viter toute surbrillance doubl\u00E9e */\n /* ==========================================================================\n Alignements textuels (gauche, droite, centre)\n ========================================================================== */\n}\n.wulf-mask-wrapper > input,\n.wulf-mask-wrapper .mask-ghost,\n.wulf-mask-wrapper::after {\n grid-area: 1 / 1 / 2 / 2;\n box-sizing: border-box;\n margin: 0;\n min-width: 0;\n padding-block: var(--mask-padding-y);\n padding-inline: var(--mask-padding-x);\n font-family: inherit;\n font-size: inherit;\n font-weight: inherit;\n font-style: inherit;\n line-height: inherit;\n letter-spacing: inherit;\n font-kerning: none;\n font-variant-numeric: tabular-nums;\n border-radius: inherit;\n}\n.wulf-mask-wrapper > input {\n position: relative;\n color: var(--mask-text-color);\n border: none;\n}\n.wulf-mask-wrapper > input:focus-visible {\n outline: var(--mask-focus-outline);\n outline-offset: var(--mask-focus-outline-offset);\n}\n.wulf-mask-wrapper > input::selection {\n background: var(--mask-selection-bg);\n color: inherit;\n}\n.wulf-mask-wrapper > input:is(:autofill, :-webkit-autofill) {\n box-shadow: inset 0 0 0 2px var(--mask-autofill-ring-color);\n}\n.wulf-mask-wrapper > input:is(:autofill, :-webkit-autofill):focus-visible {\n outline: var(--mask-focus-outline);\n outline-offset: var(--mask-focus-outline-offset);\n}\n.wulf-mask-wrapper.has-visible-ghost:not([data-disabled]) > input::placeholder,\n.wulf-mask-wrapper:not(.has-ghost)[data-mask]:not([data-mask=\"\"]):not([data-disabled]):focus-within > input::placeholder {\n color: transparent;\n opacity: 0;\n}\n.wulf-mask-wrapper:has( > input:is(:autofill, :-webkit-autofill)) .mask-ghost-remaining,\n.wulf-mask-wrapper:has( > input:is(:autofill, :-webkit-autofill)):not(.has-ghost)::after {\n color: transparent;\n}\n.wulf-mask-wrapper .mask-ghost {\n position: relative;\n z-index: 1;\n display: flex;\n align-items: center;\n background: transparent;\n pointer-events: none;\n -webkit-user-select: none;\n user-select: none;\n white-space: pre;\n overflow: hidden;\n border: 0 solid transparent;\n}\n.wulf-mask-wrapper .mask-ghost .mask-ghost-typed {\n visibility: hidden;\n color: transparent;\n flex-shrink: 0;\n}\n.wulf-mask-wrapper .mask-ghost .mask-ghost-remaining {\n color: var(--mask-placeholder-color);\n flex-shrink: 0;\n}\n.wulf-mask-wrapper .wulf-mask-sr-status {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n pointer-events: none;\n}\n.wulf-mask-wrapper.has-ghost::after,\n.wulf-mask-wrapper:has(.mask-ghost)::after {\n content: none !important;\n display: none !important;\n}\n.wulf-mask-wrapper:not(.has-ghost)::after {\n content: attr(data-mask);\n content: attr(data-mask) / \"\";\n position: relative;\n z-index: 1;\n display: flex;\n align-items: center;\n background: transparent;\n color: var(--mask-placeholder-color);\n pointer-events: none;\n -webkit-user-select: none;\n user-select: none;\n white-space: pre;\n border: none;\n}\n.wulf-mask-wrapper[data-disabled] .mask-ghost,\n.wulf-mask-wrapper[data-disabled]::after {\n content: none !important;\n display: none !important;\n}\n.wulf-mask-wrapper[data-disabled] > input {\n color: var(--mask-text-color) !important;\n caret-color: auto;\n}\n.wulf-mask-wrapper.mask-focus-only:not(:focus-within):not([data-disabled]) .mask-ghost-remaining,\n.wulf-mask-wrapper.mask-focus-only:not(:focus-within):not([data-disabled])::after {\n color: transparent;\n}\n.wulf-mask-wrapper.has-selection:not([data-disabled]) .mask-ghost-remaining,\n.wulf-mask-wrapper.has-selection:not([data-disabled]):not(.has-ghost)::after {\n color: transparent !important;\n transition: none !important;\n}\n@media (prefers-reduced-motion: no-preference) {\n .wulf-mask-wrapper .mask-ghost .mask-ghost-remaining,\n .wulf-mask-wrapper:not(.has-ghost)::after {\n transition: color 0.15s ease;\n }\n}\n@media (forced-colors: active) {\n .wulf-mask-wrapper .mask-ghost .mask-ghost-typed {\n visibility: hidden !important;\n color: transparent !important;\n }\n .wulf-mask-wrapper .mask-ghost .mask-ghost-remaining {\n color: GrayText !important;\n }\n .wulf-mask-wrapper:not(.has-ghost)::after {\n color: GrayText !important;\n }\n .wulf-mask-wrapper > input:is(:autofill, :-webkit-autofill) {\n outline: 2px solid Highlight;\n }\n .wulf-mask-wrapper > input:focus-visible,\n .wulf-mask-wrapper > input:is(:autofill, :-webkit-autofill):focus-visible {\n outline: 2px solid Highlight;\n }\n}\n.wulf-mask-wrapper.align-right > input,\n.wulf-mask-wrapper[data-align=\"right\"] > input,\n.wulf-mask-wrapper[data-mask-align=\"right\"] > input {\n text-align: right;\n}\n.wulf-mask-wrapper.align-right .mask-ghost,\n.wulf-mask-wrapper[data-align=\"right\"] .mask-ghost,\n.wulf-mask-wrapper[data-mask-align=\"right\"] .mask-ghost {\n justify-content: right;\n text-align: right;\n}\n.wulf-mask-wrapper.align-right:not(.has-ghost)::after,\n.wulf-mask-wrapper[data-align=\"right\"]:not(.has-ghost)::after,\n.wulf-mask-wrapper[data-mask-align=\"right\"]:not(.has-ghost)::after {\n justify-content: right;\n text-align: right;\n}\n.wulf-mask-wrapper.align-center > input,\n.wulf-mask-wrapper[data-align=\"center\"] > input,\n.wulf-mask-wrapper[data-mask-align=\"center\"] > input {\n text-align: center;\n}\n.wulf-mask-wrapper.align-center .mask-ghost,\n.wulf-mask-wrapper[data-align=\"center\"] .mask-ghost,\n.wulf-mask-wrapper[data-mask-align=\"center\"] .mask-ghost {\n justify-content: center;\n text-align: center;\n}\n.wulf-mask-wrapper.align-center:not(.has-ghost)::after,\n.wulf-mask-wrapper[data-align=\"center\"]:not(.has-ghost)::after,\n.wulf-mask-wrapper[data-mask-align=\"center\"]:not(.has-ghost)::after {\n justify-content: center;\n text-align: center;\n}\n.wulf-mask-wrapper.align-left > input,\n.wulf-mask-wrapper[data-align=\"left\"] > input,\n.wulf-mask-wrapper[data-mask-align=\"left\"] > input {\n text-align: left;\n}\n.wulf-mask-wrapper.align-left .mask-ghost,\n.wulf-mask-wrapper[data-align=\"left\"] .mask-ghost,\n.wulf-mask-wrapper[data-mask-align=\"left\"] .mask-ghost {\n justify-content: left;\n text-align: left;\n}\n.wulf-mask-wrapper.align-left:not(.has-ghost)::after,\n.wulf-mask-wrapper[data-align=\"left\"]:not(.has-ghost)::after,\n.wulf-mask-wrapper[data-mask-align=\"left\"]:not(.has-ghost)::after {\n justify-content: left;\n text-align: left;\n}\n\n}"],
|
|
5
|
-
"mappings": "AAAA,YAOA,MACE,kBAAkB,QAClB,kBAAkB,QAClB,sBAAsB,QACtB,iBAAiB,YACjB,mBAAmB,QACnB,gCAAgC,QAChC,+BAA+B,QAE/B,0BAA0B,IAAI,gCAC9B,qBAAqB,KAAK,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,KACxC,sBAAsB,IAAI,MAAM,aAChC,6BAA6B,IAC7B,4BAA4B,
|
|
4
|
+
"sourcesContent": ["@layer wulf {\n/* ==========================================================================\n InputMask LESS - Architecture CSS Grid & ::after\n Namespace : .wulf-mask-wrapper\n Compatible polices proportionnelles (non-monospace) et monospaces.\n Z\u00E9ro d\u00E9calage de s\u00E9lection, gestion du mode d\u00E9sactiv\u00E9 et focus-only.\n ========================================================================== */\n:root {\n --mask-padding-y: 0.625rem;\n --mask-padding-x: 0.875rem;\n --mask-border-radius: inherit;\n --mask-bg-color: transparent;\n --mask-text-color: inherit;\n --mask-placeholder-color-light: #64748b;\n --mask-placeholder-color-dark: #94a3b8;\n /* Slate-500 : Contraste >= 4.5:1 sur fond blanc (WCAG 1.4.3 AA) */\n --mask-placeholder-color: var(--mask-placeholder-color-light);\n --mask-selection-bg: rgba(59, 130, 246, 0.25);\n --mask-focus-outline: 2px solid currentColor;\n --mask-focus-outline-offset: 2px;\n --mask-autofill-ring-color: #2563eb;\n --mask-input-border: none;\n}\n@supports (color: light-dark(white, black)) {\n :root {\n --mask-placeholder-color: light-dark(var(--mask-placeholder-color-light), var(--mask-placeholder-color-dark));\n --mask-autofill-ring-color: light-dark(#2563eb, #60a5fa);\n }\n}\n@media (prefers-contrast: more) {\n :root {\n --mask-placeholder-color-light: #334155;\n --mask-placeholder-color-dark: #e2e8f0;\n --mask-placeholder-color: var(--mask-placeholder-color-light);\n --mask-focus-outline: 3px solid currentColor;\n }\n @supports (color: light-dark(white, black)) {\n :root {\n --mask-placeholder-color: light-dark(var(--mask-placeholder-color-light), var(--mask-placeholder-color-dark));\n }\n }\n}\n/* ==========================================================================\n Conteneur principal isol\u00E9 sous namespace .wulf-mask-wrapper\n ========================================================================== */\n.wulf-mask-wrapper {\n display: inline-grid;\n grid-template-columns: 1fr;\n grid-template-rows: 1fr;\n vertical-align: middle;\n box-sizing: border-box;\n position: relative;\n background: var(--mask-bg-color);\n border-radius: var(--mask-border-radius);\n /* Superposition parfaite de l'input, du ghost et du pseudo-\u00E9l\u00E9ment ::after */\n /* Input dans le flux */\n /* Masque le placeholder natif uniquement lorsqu'un ghost ou gabarit actif est visible */\n /* Masque le texte fant\u00F4me si le navigateur vient de remplir via autofill */\n /* Conteneur fant\u00F4me */\n /* Statut masqu\u00E9 visuellement pour annonce AT des compl\u00E9tions inline */\n /* Fallback ::after pour usage pur CSS sans instance JS .mask-ghost */\n /* Mode d\u00E9sactiv\u00E9 */\n /* Option focus-only */\n /* Masquage instantan\u00E9 du fant\u00F4me lors d'une s\u00E9lection active pour \u00E9viter toute surbrillance doubl\u00E9e */\n /* ==========================================================================\n Alignements textuels (gauche, droite, centre)\n ========================================================================== */\n}\n.wulf-mask-wrapper > input,\n.wulf-mask-wrapper .mask-ghost,\n.wulf-mask-wrapper::after {\n grid-area: 1 / 1 / 2 / 2;\n box-sizing: border-box;\n margin: 0;\n min-width: 0;\n padding-block: var(--mask-padding-y);\n padding-inline: var(--mask-padding-x);\n font-family: inherit;\n font-size: inherit;\n font-weight: inherit;\n font-style: inherit;\n line-height: inherit;\n letter-spacing: inherit;\n font-kerning: none;\n font-variant-numeric: tabular-nums;\n border-radius: inherit;\n}\n.wulf-mask-wrapper > input {\n position: relative;\n color: var(--mask-text-color);\n}\n.wulf-mask-wrapper > input:focus-visible {\n outline: var(--mask-focus-outline);\n outline-offset: var(--mask-focus-outline-offset);\n}\n.wulf-mask-wrapper > input::selection {\n background: var(--mask-selection-bg);\n color: inherit;\n}\n.wulf-mask-wrapper > input:is(:autofill, :-webkit-autofill) {\n box-shadow: inset 0 0 0 2px var(--mask-autofill-ring-color);\n}\n.wulf-mask-wrapper > input:is(:autofill, :-webkit-autofill):focus-visible {\n outline: var(--mask-focus-outline);\n outline-offset: var(--mask-focus-outline-offset);\n}\n.wulf-mask-wrapper.has-visible-ghost:not([data-disabled]) > input::placeholder,\n.wulf-mask-wrapper:not(.has-ghost)[data-mask]:not([data-mask=\"\"]):not([data-disabled]):focus-within > input::placeholder {\n color: transparent;\n opacity: 0;\n}\n.wulf-mask-wrapper:has( > input:is(:autofill, :-webkit-autofill)) .mask-ghost-remaining,\n.wulf-mask-wrapper:has( > input:is(:autofill, :-webkit-autofill)):not(.has-ghost)::after {\n color: transparent;\n}\n.wulf-mask-wrapper .mask-ghost {\n position: relative;\n z-index: 1;\n display: flex;\n align-items: center;\n background: transparent;\n pointer-events: none;\n -webkit-user-select: none;\n user-select: none;\n white-space: pre;\n overflow: hidden;\n border: 0 solid transparent;\n}\n.wulf-mask-wrapper .mask-ghost .mask-ghost-typed {\n visibility: hidden;\n color: transparent;\n flex-shrink: 0;\n}\n.wulf-mask-wrapper .mask-ghost .mask-ghost-remaining {\n color: var(--mask-placeholder-color);\n flex-shrink: 0;\n}\n.wulf-mask-wrapper .wulf-mask-sr-status {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n pointer-events: none;\n}\n.wulf-mask-wrapper.has-ghost::after,\n.wulf-mask-wrapper:has(.mask-ghost)::after {\n content: none !important;\n display: none !important;\n}\n.wulf-mask-wrapper:not(.has-ghost)::after {\n content: attr(data-mask);\n content: attr(data-mask) / \"\";\n position: relative;\n z-index: 1;\n display: flex;\n align-items: center;\n background: transparent;\n color: var(--mask-placeholder-color);\n pointer-events: none;\n -webkit-user-select: none;\n user-select: none;\n white-space: pre;\n border: none;\n}\n.wulf-mask-wrapper[data-disabled] .mask-ghost,\n.wulf-mask-wrapper[data-disabled]::after {\n content: none !important;\n display: none !important;\n}\n.wulf-mask-wrapper[data-disabled] > input {\n color: var(--mask-text-color) !important;\n caret-color: auto;\n}\n.wulf-mask-wrapper.mask-focus-only:not(:focus-within):not([data-disabled]) .mask-ghost-remaining,\n.wulf-mask-wrapper.mask-focus-only:not(:focus-within):not([data-disabled])::after {\n color: transparent;\n}\n.wulf-mask-wrapper.has-selection:not([data-disabled]) .mask-ghost-remaining,\n.wulf-mask-wrapper.has-selection:not([data-disabled]):not(.has-ghost)::after {\n color: transparent !important;\n transition: none !important;\n}\n@media (prefers-reduced-motion: no-preference) {\n .wulf-mask-wrapper .mask-ghost .mask-ghost-remaining,\n .wulf-mask-wrapper:not(.has-ghost)::after {\n transition: color 0.15s ease;\n }\n}\n@media (forced-colors: active) {\n .wulf-mask-wrapper .mask-ghost .mask-ghost-typed {\n visibility: hidden !important;\n color: transparent !important;\n }\n .wulf-mask-wrapper .mask-ghost .mask-ghost-remaining {\n color: GrayText !important;\n }\n .wulf-mask-wrapper:not(.has-ghost)::after {\n color: GrayText !important;\n }\n .wulf-mask-wrapper.wulf-mask-wrapper--auto > input {\n border: 1px solid ButtonBorder;\n }\n .wulf-mask-wrapper > input:is(:autofill, :-webkit-autofill) {\n outline: 2px dashed Highlight;\n outline-offset: 2px;\n }\n .wulf-mask-wrapper > input:focus-visible,\n .wulf-mask-wrapper > input:is(:autofill, :-webkit-autofill):focus-visible {\n outline: 2px solid Highlight;\n outline-offset: 2px;\n }\n}\n.wulf-mask-wrapper.align-right > input,\n.wulf-mask-wrapper[data-align=\"right\"] > input,\n.wulf-mask-wrapper[data-mask-align=\"right\"] > input {\n text-align: right;\n}\n.wulf-mask-wrapper.align-right .mask-ghost,\n.wulf-mask-wrapper[data-align=\"right\"] .mask-ghost,\n.wulf-mask-wrapper[data-mask-align=\"right\"] .mask-ghost {\n justify-content: right;\n text-align: right;\n}\n.wulf-mask-wrapper.align-right:not(.has-ghost)::after,\n.wulf-mask-wrapper[data-align=\"right\"]:not(.has-ghost)::after,\n.wulf-mask-wrapper[data-mask-align=\"right\"]:not(.has-ghost)::after {\n justify-content: right;\n text-align: right;\n}\n.wulf-mask-wrapper.align-center > input,\n.wulf-mask-wrapper[data-align=\"center\"] > input,\n.wulf-mask-wrapper[data-mask-align=\"center\"] > input {\n text-align: center;\n}\n.wulf-mask-wrapper.align-center .mask-ghost,\n.wulf-mask-wrapper[data-align=\"center\"] .mask-ghost,\n.wulf-mask-wrapper[data-mask-align=\"center\"] .mask-ghost {\n justify-content: center;\n text-align: center;\n}\n.wulf-mask-wrapper.align-center:not(.has-ghost)::after,\n.wulf-mask-wrapper[data-align=\"center\"]:not(.has-ghost)::after,\n.wulf-mask-wrapper[data-mask-align=\"center\"]:not(.has-ghost)::after {\n justify-content: center;\n text-align: center;\n}\n.wulf-mask-wrapper.align-left > input,\n.wulf-mask-wrapper[data-align=\"left\"] > input,\n.wulf-mask-wrapper[data-mask-align=\"left\"] > input {\n text-align: left;\n}\n.wulf-mask-wrapper.align-left .mask-ghost,\n.wulf-mask-wrapper[data-align=\"left\"] .mask-ghost,\n.wulf-mask-wrapper[data-mask-align=\"left\"] .mask-ghost {\n justify-content: left;\n text-align: left;\n}\n.wulf-mask-wrapper.align-left:not(.has-ghost)::after,\n.wulf-mask-wrapper[data-align=\"left\"]:not(.has-ghost)::after,\n.wulf-mask-wrapper[data-mask-align=\"left\"]:not(.has-ghost)::after {\n justify-content: left;\n text-align: left;\n}\n/* Pr\u00E9serve la bordure native sur les wrappers auto-cr\u00E9\u00E9s (createWrapper: true) tout en maintenant\n la compatibilit\u00E9 \u00E0 sp\u00E9cificit\u00E9 nulle pour les wrappers explicitement styl\u00E9s par l'h\u00F4te */\n:where(.wulf-mask-wrapper:not(.wulf-mask-wrapper--auto) > input) {\n border: var(--mask-input-border);\n}\n@media (pointer: coarse) {\n .wulf-mask-wrapper > input {\n min-block-size: 44px;\n }\n}\n\n}"],
|
|
5
|
+
"mappings": "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",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/masonry.esm.js
CHANGED
|
@@ -10,6 +10,14 @@ function getSafeWulfNamespace() {
|
|
|
10
10
|
}
|
|
11
11
|
return existing;
|
|
12
12
|
}
|
|
13
|
+
function getDeepActiveElement(root) {
|
|
14
|
+
if (typeof document === "undefined") return null;
|
|
15
|
+
let active = (root ?? document).activeElement;
|
|
16
|
+
while (active && active.shadowRoot && active.shadowRoot.activeElement) {
|
|
17
|
+
active = active.shadowRoot.activeElement;
|
|
18
|
+
}
|
|
19
|
+
return active && typeof active.focus === "function" ? active : null;
|
|
20
|
+
}
|
|
13
21
|
function parseCssDurationMs(duration, fallbackMs = 300, maxMs = 6e4) {
|
|
14
22
|
const safeFallback = Number.isFinite(fallbackMs) && fallbackMs >= 0 ? Math.min(fallbackMs, maxMs) : 300;
|
|
15
23
|
if (typeof duration === "number") {
|
|
@@ -195,9 +203,10 @@ var LayoutEngine = class {
|
|
|
195
203
|
const colHeights = new Array(cols).fill(0);
|
|
196
204
|
const positions = [];
|
|
197
205
|
const itemHeights = items.map((item) => {
|
|
198
|
-
const h = item.getBoundingClientRect().height;
|
|
206
|
+
const h = item.classList.contains("wulf-masonry-item--hidden") && item.offsetHeight > 0 ? item.offsetHeight : item.getBoundingClientRect().height;
|
|
199
207
|
return h > 0 ? h : 50;
|
|
200
208
|
});
|
|
209
|
+
const isRtl = typeof window !== "undefined" && typeof window.getComputedStyle === "function" && window.getComputedStyle(container).direction === "rtl";
|
|
201
210
|
let currentHCol = 0;
|
|
202
211
|
for (let i = 0; i < items.length; i++) {
|
|
203
212
|
const item = items[i];
|
|
@@ -248,7 +257,6 @@ var LayoutEngine = class {
|
|
|
248
257
|
}
|
|
249
258
|
}
|
|
250
259
|
const itemW = span * colWidth + (span - 1) * gutterX;
|
|
251
|
-
const isRtl = typeof window !== "undefined" && typeof window.getComputedStyle === "function" && window.getComputedStyle(container).direction === "rtl";
|
|
252
260
|
const effectiveWidth = fittedWidth !== void 0 ? fittedWidth : containerWidth;
|
|
253
261
|
const rawX = targetCol * (colWidth + gutterX);
|
|
254
262
|
const targetX = isRtl ? Math.max(0, effectiveWidth - rawX - itemW) : rawX;
|
|
@@ -311,24 +319,39 @@ var AuditableComponent = class {
|
|
|
311
319
|
return warnings;
|
|
312
320
|
}
|
|
313
321
|
/**
|
|
314
|
-
* Vérifie si un attribut de référence d'IDs ARIA (ex: aria-labelledby, aria-describedby)
|
|
315
|
-
* pointe vers des éléments réellement présents dans le document.
|
|
322
|
+
* Vérifie si un attribut de référence d'IDs ARIA (ex: aria-labelledby, aria-describedby, aria-errormessage)
|
|
323
|
+
* pointe vers des éléments réellement présents dans le document (et optionnellement non vides).
|
|
316
324
|
*/
|
|
317
|
-
checkAriaIdReferences(element, attrName, warnings) {
|
|
325
|
+
checkAriaIdReferences(element, attrName, warnings, requireNonEmptyText = false) {
|
|
318
326
|
const rawValue = element.getAttribute(attrName)?.trim();
|
|
319
327
|
if (!rawValue) return false;
|
|
320
328
|
const doc = element.ownerDocument || document;
|
|
321
329
|
const root = typeof element.getRootNode === "function" ? element.getRootNode() : doc;
|
|
322
330
|
const ids = rawValue.split(/\s+/).filter(Boolean);
|
|
323
|
-
const
|
|
324
|
-
(id) =>
|
|
331
|
+
const targets = ids.map(
|
|
332
|
+
(id) => typeof ShadowRoot !== "undefined" && root instanceof ShadowRoot ? root.getElementById(id) : doc.getElementById(id)
|
|
325
333
|
);
|
|
326
|
-
|
|
334
|
+
const allFound = ids.length > 0 && targets.every((el) => Boolean(el));
|
|
335
|
+
if (!allFound) {
|
|
327
336
|
warnings.push(
|
|
328
337
|
`Attribut ${attrName}="${rawValue}" invalide : l'\xE9l\xE9ment cible est introuvable dans le DOM.`
|
|
329
338
|
);
|
|
339
|
+
return false;
|
|
330
340
|
}
|
|
331
|
-
|
|
341
|
+
if (requireNonEmptyText) {
|
|
342
|
+
const hasNonEmptyText = targets.some((el) => {
|
|
343
|
+
if (!el) return false;
|
|
344
|
+
const text = el.textContent?.trim() || el.getAttribute("aria-label")?.trim() || "";
|
|
345
|
+
return text.length > 0;
|
|
346
|
+
});
|
|
347
|
+
if (!hasNonEmptyText) {
|
|
348
|
+
warnings.push(
|
|
349
|
+
`Attribut ${attrName}="${rawValue}" invalide : l'\xE9l\xE9ment cible ne contient aucun texte accessible.`
|
|
350
|
+
);
|
|
351
|
+
return false;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
return true;
|
|
332
355
|
}
|
|
333
356
|
};
|
|
334
357
|
|
|
@@ -537,6 +560,7 @@ var masonryI18n = createI18nManager("fr", {
|
|
|
537
560
|
});
|
|
538
561
|
|
|
539
562
|
// src/masonry/Masonry.ts
|
|
563
|
+
var NATIVE_STRUCTURAL_TAGS = /* @__PURE__ */ new Set(["UL", "OL", "MAIN", "NAV", "ASIDE", "ARTICLE", "SECTION"]);
|
|
540
564
|
var Masonry = class extends LocalizedComponent {
|
|
541
565
|
static _i18n = masonryI18n;
|
|
542
566
|
static i18n = masonryI18n;
|
|
@@ -548,9 +572,11 @@ var Masonry = class extends LocalizedComponent {
|
|
|
548
572
|
itemResizeObserver = null;
|
|
549
573
|
observedItems = /* @__PURE__ */ new Set();
|
|
550
574
|
observedItemHeights = /* @__PURE__ */ new WeakMap();
|
|
551
|
-
removingItems = /* @__PURE__ */ new
|
|
575
|
+
removingItems = /* @__PURE__ */ new Set();
|
|
552
576
|
layoutRafId = null;
|
|
577
|
+
lastObservedWidth = 0;
|
|
553
578
|
isDestroyed = false;
|
|
579
|
+
hasExplicitAriaRole = false;
|
|
554
580
|
wasRoleInferred = false;
|
|
555
581
|
wasAriaLabelInferred = false;
|
|
556
582
|
hasExplicitAriaLabel = false;
|
|
@@ -580,6 +606,7 @@ var Masonry = class extends LocalizedComponent {
|
|
|
580
606
|
height: this.root.style.height,
|
|
581
607
|
width: this.root.style.width
|
|
582
608
|
};
|
|
609
|
+
this.hasExplicitAriaRole = Boolean(options.ariaRole);
|
|
583
610
|
this.hasExplicitAriaLabel = Boolean(options.ariaLabel || options.i18n?.gallery);
|
|
584
611
|
this.options = {
|
|
585
612
|
itemSelector: options.itemSelector || "> *",
|
|
@@ -625,7 +652,7 @@ var Masonry = class extends LocalizedComponent {
|
|
|
625
652
|
* Initialise les attributs WAI-ARIA du conteneur.
|
|
626
653
|
*/
|
|
627
654
|
initAccessibility() {
|
|
628
|
-
if (this.options.ariaRole && !this.root.hasAttribute("role")) {
|
|
655
|
+
if (this.options.ariaRole && !this.root.hasAttribute("role") && (this.hasExplicitAriaRole || !NATIVE_STRUCTURAL_TAGS.has(this.root.tagName))) {
|
|
629
656
|
this.root.setAttribute("role", this.options.ariaRole);
|
|
630
657
|
this.wasRoleInferred = true;
|
|
631
658
|
}
|
|
@@ -657,9 +684,10 @@ var Masonry = class extends LocalizedComponent {
|
|
|
657
684
|
const dur = this.options.transitionDuration;
|
|
658
685
|
let durValue = "300ms";
|
|
659
686
|
if (typeof dur === "number" && Number.isFinite(dur) && dur >= 0) {
|
|
660
|
-
durValue = `${dur}ms`;
|
|
687
|
+
durValue = `${Math.min(dur, 6e4)}ms`;
|
|
661
688
|
} else if (typeof dur === "string" && /^\s*(?:\d+(?:\.\d+)?|\.\d+)(ms|s)\s*$/i.test(dur)) {
|
|
662
|
-
|
|
689
|
+
const parsedMs = parseCssDurationMs(dur, 300, 6e4);
|
|
690
|
+
durValue = parsedMs >= 6e4 ? "60000ms" : dur.trim();
|
|
663
691
|
}
|
|
664
692
|
this.root.style.setProperty("--wulf-masonry-duration", durValue);
|
|
665
693
|
}
|
|
@@ -710,12 +738,12 @@ var Masonry = class extends LocalizedComponent {
|
|
|
710
738
|
*/
|
|
711
739
|
initObservers() {
|
|
712
740
|
if (!this.options.resize || typeof ResizeObserver === "undefined") return;
|
|
713
|
-
|
|
741
|
+
this.lastObservedWidth = this.root.getBoundingClientRect().width;
|
|
714
742
|
this.resizeObserver = new ResizeObserver((entries) => {
|
|
715
743
|
for (const entry of entries) {
|
|
716
744
|
const currentWidth = entry.contentRect.width;
|
|
717
|
-
if (Math.abs(currentWidth -
|
|
718
|
-
|
|
745
|
+
if (Math.abs(currentWidth - this.lastObservedWidth) >= 1) {
|
|
746
|
+
this.lastObservedWidth = currentWidth;
|
|
719
747
|
this.scheduleLayout();
|
|
720
748
|
}
|
|
721
749
|
}
|
|
@@ -757,15 +785,23 @@ var Masonry = class extends LocalizedComponent {
|
|
|
757
785
|
this.root.style.setProperty("--wulf-masonry-col-min", `${w}px`);
|
|
758
786
|
}
|
|
759
787
|
} else if (typeof this.options.columnWidth === "string" && this.options.columnWidth.trim()) {
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
788
|
+
const trimmed = this.options.columnWidth.trim();
|
|
789
|
+
if (/^\d+(\.\d+)?(px|%)?$/i.test(trimmed)) {
|
|
790
|
+
const w = LayoutEngine.resolveColumnWidth(this.root, null, trimmed);
|
|
791
|
+
if (w > 0) {
|
|
792
|
+
this.root.style.setProperty("--wulf-masonry-col-min", `${w}px`);
|
|
793
|
+
}
|
|
794
|
+
} else {
|
|
795
|
+
try {
|
|
796
|
+
const el = this.root.querySelector(trimmed);
|
|
797
|
+
if (el) {
|
|
798
|
+
const w = el.getBoundingClientRect().width;
|
|
799
|
+
if (w > 0) {
|
|
800
|
+
this.root.style.setProperty("--wulf-masonry-col-min", `${w}px`);
|
|
801
|
+
}
|
|
766
802
|
}
|
|
803
|
+
} catch {
|
|
767
804
|
}
|
|
768
|
-
} catch {
|
|
769
805
|
}
|
|
770
806
|
}
|
|
771
807
|
}
|
|
@@ -819,60 +855,80 @@ var Masonry = class extends LocalizedComponent {
|
|
|
819
855
|
for (const el of this._items) {
|
|
820
856
|
el.classList.remove("wulf-masonry-item--hidden");
|
|
821
857
|
}
|
|
822
|
-
|
|
858
|
+
try {
|
|
859
|
+
this.options.onLayout([]);
|
|
860
|
+
} catch (err) {
|
|
861
|
+
console.error("[Wulf.Masonry] Erreur dans onLayout:", err);
|
|
862
|
+
}
|
|
823
863
|
return;
|
|
824
864
|
}
|
|
825
865
|
this.root.setAttribute("aria-busy", "true");
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
this.root.
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
const validStagger = typeof stagger === "number" && Number.isFinite(stagger) && stagger > 0;
|
|
839
|
-
if (validStagger) {
|
|
840
|
-
this.root.style.setProperty("--wulf-masonry-stagger", `${stagger}ms`);
|
|
841
|
-
} else {
|
|
842
|
-
this.root.style.removeProperty("--wulf-masonry-stagger");
|
|
843
|
-
}
|
|
844
|
-
const hasIgnoredChildren = this._items.length !== this.root.children.length;
|
|
845
|
-
const supportsSiblingIndex = !hasIgnoredChildren && typeof CSS !== "undefined" && typeof CSS.supports === "function" && CSS.supports("transition-delay", "calc(sibling-index() * 1ms)");
|
|
846
|
-
const usePercent = this.options.percentPosition && result.containerWidth > 0;
|
|
847
|
-
for (let i = 0; i < result.positions.length; i++) {
|
|
848
|
-
const pos = result.positions[i];
|
|
849
|
-
const item = pos.element;
|
|
850
|
-
if (usePercent) {
|
|
851
|
-
const wPct = Number((pos.width / result.containerWidth * 100).toFixed(4));
|
|
852
|
-
item.style.setProperty("--wulf-masonry-w", `${wPct}%`);
|
|
866
|
+
let positionsResult = [];
|
|
867
|
+
try {
|
|
868
|
+
if (this.options.fitWidth && this.root.classList.contains("wulf-masonry--fit-width")) {
|
|
869
|
+
this.root.style.width = "";
|
|
870
|
+
}
|
|
871
|
+
const result = LayoutEngine.calculate(this.root, this._items, this.options);
|
|
872
|
+
positionsResult = result.positions;
|
|
873
|
+
this.root.style.height = `${result.containerHeight}px`;
|
|
874
|
+
if (this.options.fitWidth && result.fittedWidth !== void 0) {
|
|
875
|
+
this.root.style.width = `${result.fittedWidth}px`;
|
|
876
|
+
this.lastObservedWidth = result.fittedWidth;
|
|
877
|
+
this.root.classList.add("wulf-masonry--fit-width");
|
|
853
878
|
} else {
|
|
854
|
-
|
|
879
|
+
this.root.classList.remove("wulf-masonry--fit-width");
|
|
855
880
|
}
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
if (validStagger
|
|
859
|
-
|
|
881
|
+
const stagger = this.options.stagger;
|
|
882
|
+
const validStagger = typeof stagger === "number" && Number.isFinite(stagger) && stagger > 0;
|
|
883
|
+
if (validStagger) {
|
|
884
|
+
this.root.style.setProperty("--wulf-masonry-stagger", `${stagger}ms`);
|
|
860
885
|
} else {
|
|
861
|
-
|
|
886
|
+
this.root.style.removeProperty("--wulf-masonry-stagger");
|
|
862
887
|
}
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
this.options.
|
|
888
|
+
const hasIgnoredChildren = this._items.length !== this.root.children.length;
|
|
889
|
+
const supportsSiblingIndex = !hasIgnoredChildren && typeof CSS !== "undefined" && typeof CSS.supports === "function" && CSS.supports("transition-delay", "calc(sibling-index() * 1ms)");
|
|
890
|
+
const usePercent = this.options.percentPosition && result.containerWidth > 0;
|
|
891
|
+
for (let i = 0; i < result.positions.length; i++) {
|
|
892
|
+
const pos = result.positions[i];
|
|
893
|
+
const item = pos.element;
|
|
894
|
+
if (usePercent) {
|
|
895
|
+
const wPct = Number((pos.width / result.containerWidth * 100).toFixed(4));
|
|
896
|
+
item.style.setProperty("--wulf-masonry-w", `${wPct}%`);
|
|
897
|
+
} else {
|
|
898
|
+
item.style.setProperty("--wulf-masonry-w", `${pos.width}px`);
|
|
899
|
+
}
|
|
900
|
+
item.style.setProperty("--wulf-masonry-x", `${pos.x}px`);
|
|
901
|
+
item.style.setProperty("--wulf-masonry-y", `${pos.y}px`);
|
|
902
|
+
if (validStagger && !supportsSiblingIndex) {
|
|
903
|
+
item.style.setProperty("--wulf-masonry-index", String(i));
|
|
904
|
+
} else {
|
|
905
|
+
item.style.removeProperty("--wulf-masonry-index");
|
|
906
|
+
}
|
|
907
|
+
item.classList.remove("wulf-masonry-item--hidden");
|
|
908
|
+
this.observedItemHeights.set(item, pos.height);
|
|
909
|
+
try {
|
|
910
|
+
this.options.onItemPlaced(item, pos);
|
|
911
|
+
} catch (err) {
|
|
912
|
+
console.error("[Wulf.Masonry] Erreur dans onItemPlaced:", err);
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
} finally {
|
|
916
|
+
this.root.setAttribute("aria-busy", "false");
|
|
917
|
+
}
|
|
918
|
+
try {
|
|
919
|
+
this.options.onLayout(positionsResult);
|
|
920
|
+
} catch (err) {
|
|
921
|
+
console.error("[Wulf.Masonry] Erreur dans onLayout:", err);
|
|
866
922
|
}
|
|
867
|
-
this.root.setAttribute("aria-busy", "false");
|
|
868
|
-
this.options.onLayout(result.positions);
|
|
869
923
|
}
|
|
870
924
|
/**
|
|
871
925
|
* Ajoute de nouveaux éléments à la fin du conteneur.
|
|
872
926
|
*/
|
|
873
927
|
append(elements) {
|
|
874
928
|
if (this.isDestroyed) return;
|
|
875
|
-
const list = Array.isArray(elements) ? elements : [elements]
|
|
929
|
+
const list = (Array.isArray(elements) ? elements : [elements]).filter(
|
|
930
|
+
(el) => el instanceof HTMLElement && !el.contains(this.root)
|
|
931
|
+
);
|
|
876
932
|
if (list.length === 0) return;
|
|
877
933
|
const frag = document.createDocumentFragment();
|
|
878
934
|
for (const el of list) {
|
|
@@ -893,7 +949,9 @@ var Masonry = class extends LocalizedComponent {
|
|
|
893
949
|
*/
|
|
894
950
|
prepend(elements) {
|
|
895
951
|
if (this.isDestroyed) return;
|
|
896
|
-
const list = Array.isArray(elements) ? elements : [elements]
|
|
952
|
+
const list = (Array.isArray(elements) ? elements : [elements]).filter(
|
|
953
|
+
(el) => el instanceof HTMLElement && !el.contains(this.root)
|
|
954
|
+
);
|
|
897
955
|
if (list.length === 0) return;
|
|
898
956
|
const first = this.root.firstChild;
|
|
899
957
|
const frag = document.createDocumentFragment();
|
|
@@ -915,7 +973,9 @@ var Masonry = class extends LocalizedComponent {
|
|
|
915
973
|
*/
|
|
916
974
|
remove(elements) {
|
|
917
975
|
if (this.isDestroyed) return;
|
|
918
|
-
const list = Array.isArray(elements) ? elements : [elements]
|
|
976
|
+
const list = (Array.isArray(elements) ? elements : [elements]).filter(
|
|
977
|
+
(el) => el instanceof HTMLElement
|
|
978
|
+
);
|
|
919
979
|
if (list.length === 0) return;
|
|
920
980
|
const finalizeRemoval = () => {
|
|
921
981
|
if (this.isDestroyed) return;
|
|
@@ -933,11 +993,34 @@ var Masonry = class extends LocalizedComponent {
|
|
|
933
993
|
this.reloadItems();
|
|
934
994
|
this.layout();
|
|
935
995
|
};
|
|
996
|
+
const activeEl = getDeepActiveElement();
|
|
997
|
+
if (activeEl && list.some((el) => el.contains(activeEl))) {
|
|
998
|
+
const removeSet = new Set(list);
|
|
999
|
+
const firstRemovedIdx = this._items.findIndex((item) => removeSet.has(item));
|
|
1000
|
+
const survivorsAfter = firstRemovedIdx >= 0 ? this._items.slice(firstRemovedIdx + 1).filter((item) => !removeSet.has(item)) : [];
|
|
1001
|
+
const survivorsBefore = firstRemovedIdx > 0 ? this._items.slice(0, firstRemovedIdx).filter((item) => !removeSet.has(item)).reverse() : [];
|
|
1002
|
+
const candidateItem = survivorsAfter[0] || survivorsBefore[0] || null;
|
|
1003
|
+
let handoffDone = false;
|
|
1004
|
+
if (candidateItem) {
|
|
1005
|
+
const focusableChild = candidateItem.querySelector(
|
|
1006
|
+
'a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'
|
|
1007
|
+
);
|
|
1008
|
+
const focusTarget = focusableChild || (candidateItem.tabIndex >= 0 ? candidateItem : null);
|
|
1009
|
+
if (focusTarget) {
|
|
1010
|
+
try {
|
|
1011
|
+
focusTarget.focus({ preventScroll: true });
|
|
1012
|
+
handoffDone = true;
|
|
1013
|
+
} catch {
|
|
1014
|
+
handoffDone = false;
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
if (!handoffDone) {
|
|
1019
|
+
activeEl.blur?.();
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
936
1022
|
for (const el of list) {
|
|
937
1023
|
this.removingItems.add(el);
|
|
938
|
-
if (typeof document !== "undefined" && document.activeElement && el.contains(document.activeElement)) {
|
|
939
|
-
document.activeElement.blur?.();
|
|
940
|
-
}
|
|
941
1024
|
el.setAttribute("inert", "");
|
|
942
1025
|
el.style.transitionDelay = "0ms";
|
|
943
1026
|
el.classList.add("wulf-masonry-item--hidden");
|
|
@@ -963,7 +1046,7 @@ var Masonry = class extends LocalizedComponent {
|
|
|
963
1046
|
*/
|
|
964
1047
|
audit() {
|
|
965
1048
|
const warnings = [];
|
|
966
|
-
const hasValidLabelledby = this.checkAriaIdReferences(this.root, "aria-labelledby", warnings);
|
|
1049
|
+
const hasValidLabelledby = this.checkAriaIdReferences(this.root, "aria-labelledby", warnings, true);
|
|
967
1050
|
const hasCustomRootAriaLabel = !this.wasAriaLabelInferred && Boolean(this.root.getAttribute("aria-label")?.trim());
|
|
968
1051
|
if (!this.hasExplicitAriaLabel && !hasCustomRootAriaLabel && !hasValidLabelledby) {
|
|
969
1052
|
warnings.push(
|
|
@@ -978,6 +1061,19 @@ var Masonry = class extends LocalizedComponent {
|
|
|
978
1061
|
`${imagesWithoutAlt.length} image(s) <img> d\xE9pourvue(s) d'attribut alt : renseignez alt="description" (ou alt="" si d\xE9corative) (WCAG 1.1.1).`
|
|
979
1062
|
);
|
|
980
1063
|
}
|
|
1064
|
+
const positiveTabIndexEls = Array.from(this.root.querySelectorAll("[tabindex]")).filter(
|
|
1065
|
+
(el) => el.tabIndex > 0
|
|
1066
|
+
);
|
|
1067
|
+
if (positiveTabIndexEls.length > 0) {
|
|
1068
|
+
warnings.push(
|
|
1069
|
+
`${positiveTabIndexEls.length} \xE9l\xE9ment(s) avec tabindex > 0 d\xE9tect\xE9(s) : utilisez uniquement tabindex="0" ou "-1" (WCAG 2.4.3).`
|
|
1070
|
+
);
|
|
1071
|
+
}
|
|
1072
|
+
if (!this.options.horizontalOrder && this.root.querySelector('a[href], button, input, select, textarea, [tabindex="0"]') !== null) {
|
|
1073
|
+
warnings.push(
|
|
1074
|
+
"Grille interactive avec horizontalOrder: false : l'ordre visuel peut diverger de l'ordre de tabulation ; envisagez horizontalOrder: true (WCAG 1.3.2 / 2.4.3)."
|
|
1075
|
+
);
|
|
1076
|
+
}
|
|
981
1077
|
return warnings;
|
|
982
1078
|
}
|
|
983
1079
|
getAuditPrefix() {
|
|
@@ -1028,6 +1124,16 @@ var Masonry = class extends LocalizedComponent {
|
|
|
1028
1124
|
} else {
|
|
1029
1125
|
this.root.style.removeProperty("width");
|
|
1030
1126
|
}
|
|
1127
|
+
for (const item of this.removingItems) {
|
|
1128
|
+
item.removeAttribute("inert");
|
|
1129
|
+
item.style.removeProperty("transition-delay");
|
|
1130
|
+
item.classList.remove("wulf-masonry-item", "wulf-masonry-item--hidden");
|
|
1131
|
+
item.style.removeProperty("--wulf-masonry-w");
|
|
1132
|
+
item.style.removeProperty("--wulf-masonry-x");
|
|
1133
|
+
item.style.removeProperty("--wulf-masonry-y");
|
|
1134
|
+
item.style.removeProperty("--wulf-masonry-index");
|
|
1135
|
+
}
|
|
1136
|
+
this.removingItems.clear();
|
|
1031
1137
|
for (const item of this._items) {
|
|
1032
1138
|
item.classList.remove("wulf-masonry-item", "wulf-masonry-item--hidden");
|
|
1033
1139
|
item.style.removeProperty("--wulf-masonry-w");
|