origam 2.37.15 → 2.37.17
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 +20 -0
- package/dist/src/components/ColorPickerField/OrigamColorPickerField.vue +2 -8
- package/dist/src/components/DataTable/OrigamDataTable.vue +0 -1
- package/dist/src/components/DatePickerField/OrigamDatePickerField.vue +2 -8
- package/dist/src/components/Select/OrigamSelect.vue +2 -8
- package/dist/src/interfaces/DataTable/data-table.interface.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -18,6 +18,26 @@ This project follows [Semantic Versioning](https://semver.org).
|
|
|
18
18
|
|
|
19
19
|
## [Unreleased]
|
|
20
20
|
|
|
21
|
+
## [2.37.17] - 2026-10-28
|
|
22
|
+
|
|
23
|
+
### Fixed — `OrigamDataTable` n'hérite plus d'une prop `item` requise (#1246, #1154)
|
|
24
|
+
|
|
25
|
+
`IDataTableProps` étendait `IDataTableRowProps`, qui déclare `item` comme prop requise. Résultat : la table elle-même réclamait une prop `item` qu'elle n'utilise pas, et Vue avertissait `Missing required prop: "item"` à chaque rendu.
|
|
26
|
+
|
|
27
|
+
- `IDataTableProps` étend maintenant `Omit<IDataTableRowProps, 'item'>`. `OrigamDataTableRow` garde son `item` requis, et `cellProps` reste typé sur la table.
|
|
28
|
+
- Le catalogue du playground perd la prop `item` sur `OrigamDataTable`.
|
|
29
|
+
- Vérifié : le TU `data-table-no-required-item-prop.spec.ts` échoue sur le parent (2 sur 2) et passe après le correctif ; TU DataTable et Table : 92/92 ; type-check exit 0 (PR #1269).
|
|
30
|
+
|
|
31
|
+
## [2.37.16] - 2026-10-28
|
|
32
|
+
|
|
33
|
+
### Fixed — `OrigamSelect`, `OrigamColorPickerField`, `OrigamDatePickerField` : plus de nom « Ouvrir » qui écrase un `<label for>` externe (#1251)
|
|
34
|
+
|
|
35
|
+
Sans prop `label`, ces trois champs posaient `aria-label` et `title` au libellé de leur bouton d'ouverture (« Ouvrir ») sur l'`<input>`. Or un `aria-label` passe avant un `<label for>` dans le calcul du nom accessible : un champ nommé par un libellé externe était donc annoncé « Ouvrir ».
|
|
36
|
+
|
|
37
|
+
- Sans `label`, plus aucun `aria-label` ni `title` n'est posé sur l'input. Avec `label`, rien ne change.
|
|
38
|
+
- Rupture assumée, arbitrée par le propriétaire : un champ qui n'a ni `label` ni `<label for>` n'a plus de nom accessible. axe le signale, ce qui alerte quand le libellé a été oublié. Les tests #622/#665/#666, qui figeaient l'ancien repli, ont été réécrits.
|
|
39
|
+
- Vérifié : le TU `select-external-label.spec.ts` couvre les 3 composants. Il contrôle le nom accessible calculé (« Pays ») et passe axe (`label`, `aria-input-field-name`) ; il est rouge sur le parent (3/6) et vert après (6/6) (PR #1270).
|
|
40
|
+
|
|
21
41
|
## [2.37.15] - 2026-10-22
|
|
22
42
|
|
|
23
43
|
### Added — slot de police `display` (#1212)
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
:id="id"
|
|
4
4
|
ref="origamTextFieldRef"
|
|
5
5
|
v-model:focused="isFocused"
|
|
6
|
-
:aria-label="t(
|
|
6
|
+
:aria-label="label ? t(label) : undefined"
|
|
7
7
|
:class="colorPickerFieldClasses"
|
|
8
8
|
:counter-value="counterValue"
|
|
9
9
|
:dirty="isDirty"
|
|
10
10
|
:placeholder="placeholder"
|
|
11
11
|
:style="colorPickerFieldStyles"
|
|
12
|
-
:title="t(
|
|
12
|
+
:title="label ? t(label) : undefined"
|
|
13
13
|
:validation-value="effectiveValidationValue"
|
|
14
14
|
|
|
15
15
|
v-bind="{ ...textFieldProps }"
|
|
@@ -439,12 +439,6 @@ const isDirty = computed(() => {
|
|
|
439
439
|
const placeholder = computed(() => {
|
|
440
440
|
return isDirty.value || !isFocused.value && props.label && !props.persistentPlaceholder ? void 0 : props.placeholder;
|
|
441
441
|
});
|
|
442
|
-
const toggleLabel = computed(() => {
|
|
443
|
-
return menu.value ? props.closeText : props.openText;
|
|
444
|
-
});
|
|
445
|
-
const accessibleLabel = computed(() => {
|
|
446
|
-
return props.label || toggleLabel.value;
|
|
447
|
-
});
|
|
448
442
|
watch(selectedValue, () => {
|
|
449
443
|
isFocused.value = hasSelectedValue.value;
|
|
450
444
|
}, {
|
|
@@ -245,7 +245,6 @@ const props = defineProps({
|
|
|
245
245
|
tag: { type: String, required: false, default: "div" },
|
|
246
246
|
fontSize: { type: null, required: false },
|
|
247
247
|
fontWeight: { type: null, required: false },
|
|
248
|
-
item: { type: Object, required: true },
|
|
249
248
|
cellProps: { type: [Object, Function], required: false },
|
|
250
249
|
mobileBreakpoint: { type: null, required: false, default: "xs" },
|
|
251
250
|
expandOnClick: { type: Boolean, required: false },
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
:id="id"
|
|
4
4
|
ref="origamTextFieldRef"
|
|
5
5
|
v-model:focused="isFocused"
|
|
6
|
-
:aria-label="t(
|
|
6
|
+
:aria-label="label ? t(label) : undefined"
|
|
7
7
|
:class="datePickerFieldClasses"
|
|
8
8
|
:counter-value="counterValue"
|
|
9
9
|
:dirty="isDirty"
|
|
10
10
|
:placeholder="placeholder"
|
|
11
11
|
:style="datePickerFieldStyles"
|
|
12
|
-
:title="t(
|
|
12
|
+
:title="label ? t(label) : undefined"
|
|
13
13
|
:validation-value="effectiveValidationValue"
|
|
14
14
|
|
|
15
15
|
v-bind="{ ...textFieldProps }"
|
|
@@ -545,12 +545,6 @@ const isDirty = computed(() => {
|
|
|
545
545
|
const placeholder = computed(() => {
|
|
546
546
|
return isDirty.value || !isFocused.value && props.label && !props.persistentPlaceholder ? void 0 : props.placeholder;
|
|
547
547
|
});
|
|
548
|
-
const toggleLabel = computed(() => {
|
|
549
|
-
return menu.value ? props.closeText : props.openText;
|
|
550
|
-
});
|
|
551
|
-
const accessibleLabel = computed(() => {
|
|
552
|
-
return props.label || toggleLabel.value;
|
|
553
|
-
});
|
|
554
548
|
const closeOnSelect = computed(() => {
|
|
555
549
|
return props.closeOnSelect && !(props.multiple || props.range);
|
|
556
550
|
});
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
ref="origamTextFieldRef"
|
|
5
5
|
v-model:focused="isFocused"
|
|
6
6
|
v-model:model-value="search"
|
|
7
|
-
:aria-label="t(
|
|
7
|
+
:aria-label="label ? t(label) : undefined"
|
|
8
8
|
:class="selectClasses"
|
|
9
9
|
:counter-value="counterValue"
|
|
10
10
|
:dirty="isDirty"
|
|
11
11
|
:placeholder="placeholder"
|
|
12
12
|
:style="selectStyles"
|
|
13
|
-
:title="t(
|
|
13
|
+
:title="label ? t(label) : undefined"
|
|
14
14
|
:validation-value="effectiveValidationValue"
|
|
15
15
|
v-bind="{ ...textFieldProps, ...comboboxAriaAttrs }"
|
|
16
16
|
@blur="handleBlur"
|
|
@@ -956,12 +956,6 @@ const isDirty = computed(() => {
|
|
|
956
956
|
const placeholder = computed(() => {
|
|
957
957
|
return isDirty.value || !isFocused.value && props.label && !props.persistentPlaceholder ? void 0 : props.placeholder;
|
|
958
958
|
});
|
|
959
|
-
const toggleLabel = computed(() => {
|
|
960
|
-
return menu.value ? props.closeText : props.openText;
|
|
961
|
-
});
|
|
962
|
-
const accessibleLabel = computed(() => {
|
|
963
|
-
return props.label || toggleLabel.value;
|
|
964
|
-
});
|
|
965
959
|
const selectStyles = computed(() => {
|
|
966
960
|
return [
|
|
967
961
|
props.style
|
|
@@ -12,7 +12,7 @@ import type { IDataTableProvideSort, IDataTableSortItem, IDataTableSortProps } f
|
|
|
12
12
|
import type { IDataTableRowProps } from './data-table-row.interface';
|
|
13
13
|
import type { IFiltersProps } from '../Commons/filters.interface';
|
|
14
14
|
import type { ITableProps } from '../Table/table.interface';
|
|
15
|
-
export interface IDataTableProps extends ITableProps, IDataTableRowProps, IDataTableExpandProps, IDataTableGroupProps, IDataTableHeaderProps, IDataTableItemsProps, IDataTableSelectProps, IDataTableSortProps, IDataTableHeadersProps, IDataTablePaginationProps, IFiltersProps, IDataTableFooterProps {
|
|
15
|
+
export interface IDataTableProps extends ITableProps, Omit<IDataTableRowProps, 'item'>, IDataTableExpandProps, IDataTableGroupProps, IDataTableHeaderProps, IDataTableItemsProps, IDataTableSelectProps, IDataTableSortProps, IDataTableHeadersProps, IDataTablePaginationProps, IFiltersProps, IDataTableFooterProps {
|
|
16
16
|
hideDefaultBody?: boolean;
|
|
17
17
|
hideDefaultFooter?: boolean;
|
|
18
18
|
hideDefaultHeader?: boolean;
|