origam 2.37.24 → 2.37.26
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/CHANGELOG.md +22 -0
- package/dist/src/components/InfiniteScroll/OrigamInfiniteScrollIntersect.vue +1 -1
- package/dist/src/components/PasswordField/OrigamPasswordField.vue +1 -1
- package/dist/src/components/Select/OrigamSelect.vue +15 -0
- package/dist/src/components/TextField/OrigamTextField.vue +0 -1
- package/dist/src/interfaces/InfiniteScroll/infinite-scroll-intersect.interface.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -18,6 +18,28 @@ This project follows [Semantic Versioning](https://semver.org).
|
|
|
18
18
|
|
|
19
19
|
## [Unreleased]
|
|
20
20
|
|
|
21
|
+
## [2.37.26] - 2026-11-02
|
|
22
|
+
|
|
23
|
+
### Fixed — `OrigamInfiniteScrollIntersect` : `rootRef` est optionnel (#1295)
|
|
24
|
+
|
|
25
|
+
`rootRef` était déclaré requis. Pourtant le composant fonctionne sans lui : son `IntersectionObserver` est alors créé sans `root` et observe le viewport. Un usage légitime déclenchait donc le warn Vue « Missing required prop ».
|
|
26
|
+
|
|
27
|
+
- `rootRef?: HTMLElement` dans l'interface. La doc du composant, qui n'était qu'un stub, a maintenant un tableau des props qui précise le repli sur le viewport. `OrigamInfiniteScroll` passe toujours son `rootRef`.
|
|
28
|
+
- Vérifié : le TU (montage sans `rootRef`, aucun warn, `root` reste `undefined`) est rouge sur le parent et vert après ; TU InfiniteScroll 19/19 (PR #1298).
|
|
29
|
+
|
|
30
|
+
## [2.37.25] - 2026-11-02
|
|
31
|
+
|
|
32
|
+
### Fixed — champs : le `role` n'est plus posé deux fois (wrapper + input) (#1247)
|
|
33
|
+
|
|
34
|
+
`OrigamTextField` posait `:role="role"` sur le wrapper `origam-field` en plus de l'`<input>`. Pour un Select, le wrapper portait donc `role="combobox"` sans `aria-expanded` ni `aria-controls`, ce qu'axe signale par `aria-required-attr`.
|
|
35
|
+
|
|
36
|
+
- Le `role` n'est plus posé que sur l'`<input>`. `OrigamPasswordField`, qui ne le posait que sur le wrapper, le pose désormais sur l'input.
|
|
37
|
+
- `OrigamSelect` neutralise sur le wrapper les attributs ARIA par défaut de son menu (`aria-haspopup`, `aria-expanded`, `aria-owns`). Une fois le rôle retiré du wrapper, axe les signalait (`aria-allowed-attr`) dans DataTable, via son sélecteur « items per page », et dans le playground. L'ARIA combobox reste sur l'input.
|
|
38
|
+
- Vérifié :
|
|
39
|
+
- `select-aria-controls.spec.ts` : zéro violation axe et un seul `combobox`, posé sur l'input. Rouge sur le parent, vert après.
|
|
40
|
+
- Suites a11y composants 228/228, e2e playground 73/73 et TU des champs (273) au vert (PR #1297).
|
|
41
|
+
- Suivi : `OrigamColorPickerField` et `OrigamDatePickerField` posent encore le rôle sur le wrapper (#1308).
|
|
42
|
+
|
|
21
43
|
## [2.37.24] - 2026-11-02
|
|
22
44
|
|
|
23
45
|
### Fixed — opacités d'overlay au survol réglables par jeton (#1244)
|
|
@@ -14,7 +14,7 @@ import { useIntersectionObserver } from "../../composables/Commons/intersectionO
|
|
|
14
14
|
import { useProps } from "../../composables/Commons/props.composable";
|
|
15
15
|
const props = defineProps({
|
|
16
16
|
side: { type: null, required: false },
|
|
17
|
-
rootRef: { type: null, required:
|
|
17
|
+
rootRef: { type: null, required: false },
|
|
18
18
|
margin: { type: String, required: false },
|
|
19
19
|
id: { type: String, required: false },
|
|
20
20
|
class: { type: [String, Array, Object], required: false },
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
:disabled="isDisabled"
|
|
30
30
|
:error="isValid === false"
|
|
31
31
|
:focused="isFocused"
|
|
32
|
-
:role="role"
|
|
33
32
|
v-bind="{...fieldProps}"
|
|
34
33
|
@click="handleControlClick"
|
|
35
34
|
@mousedown="handleControlMousedown"
|
|
@@ -130,6 +129,7 @@
|
|
|
130
129
|
:name="name"
|
|
131
130
|
:placeholder="placeholder"
|
|
132
131
|
:readonly="isReadonly"
|
|
132
|
+
:role="role"
|
|
133
133
|
:size="1"
|
|
134
134
|
:type="currentType"
|
|
135
135
|
:value="model"
|
|
@@ -575,6 +575,21 @@ const menuProps = computed(() => {
|
|
|
575
575
|
const consumerContentProps = consumerProps.contentProps ?? {};
|
|
576
576
|
return {
|
|
577
577
|
...consumerProps,
|
|
578
|
+
/*********************************************************
|
|
579
|
+
* Menu activator ARIA — #1247
|
|
580
|
+
*
|
|
581
|
+
* @description
|
|
582
|
+
* `activator="parent"` is the role-less `.origam-field` wrapper: OrigamMenu's
|
|
583
|
+
* default aria-haspopup/expanded/owns are illegal there (aria-allowed-attr).
|
|
584
|
+
* The combobox ARIA lives on the <input> (`comboboxAriaAttrs`); `undefined`
|
|
585
|
+
* suppresses the defaults.
|
|
586
|
+
********************************************************/
|
|
587
|
+
activatorProps: {
|
|
588
|
+
"aria-haspopup": void 0,
|
|
589
|
+
"aria-expanded": void 0,
|
|
590
|
+
"aria-owns": void 0,
|
|
591
|
+
...consumerProps.activatorProps ?? {}
|
|
592
|
+
},
|
|
578
593
|
contentProps: {
|
|
579
594
|
...consumerContentProps,
|
|
580
595
|
// The consumer's own style is listed last so it still wins —
|
|
@@ -12,7 +12,7 @@ import type { TInfiniteScrollSide } from '../../types/InfiniteScroll/infinite-sc
|
|
|
12
12
|
********************************************************/
|
|
13
13
|
export interface IInfiniteScrollIntersectProps extends ICommonsComponentProps {
|
|
14
14
|
side?: TInfiniteScrollSide;
|
|
15
|
-
rootRef
|
|
15
|
+
rootRef?: HTMLElement;
|
|
16
16
|
margin?: string;
|
|
17
17
|
}
|
|
18
18
|
/** Emits fired by `<OrigamInfiniteScrollIntersect>` — the lower-level
|