origam 2.24.0 → 2.25.0
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 +21 -0
- package/dist/src/assets/css/main.css +1 -1
- package/dist/src/assets/css/tokens/dark.css +0 -12
- package/dist/src/assets/css/tokens/light.css +0 -6
- package/dist/src/assets/scss/tokens/_dark.scss +0 -12
- package/dist/src/assets/scss/tokens/_light.scss +0 -6
- package/dist/src/components/Btn/OrigamBtn.vue +89 -124
- package/dist/src/components/Field/OrigamField.vue +120 -152
- package/dist/src/components/Switch/OrigamSwitch.vue +1 -69
- package/dist/src/interfaces/Btn/btn.interface.d.ts +3 -3
- package/dist/src/interfaces/Commons/loader.interface.d.ts +13 -1
- package/dist/src/interfaces/Field/field.interface.d.ts +2 -2
- package/dist/src/interfaces/Switch/switch.interface.d.ts +2 -2
- package/dist/src/types/Commons/loader.type.d.ts +24 -0
- package/dist/src/types/tokens.type.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -18,6 +18,27 @@ This project follows [Semantic Versioning](https://semver.org).
|
|
|
18
18
|
|
|
19
19
|
## [Unreleased]
|
|
20
20
|
|
|
21
|
+
## [2.25.0] - 2026-10-14
|
|
22
|
+
|
|
23
|
+
### Changed — `OrigamBtn`, `OrigamSwitch` et `OrigamField` n'ont plus de mode skeleton (#1080, lot 2a de #1073)
|
|
24
|
+
|
|
25
|
+
Decision n°2 du proprietaire sous #1073 : un controle qui execute une action n'est pas un placeholder. Avant, `loading: { type: 'skeleton' }` **remplacait** le controle : le bouton perdait son nom accessible (`button "Loading..."`) et imbriquait un `<div>` dans un `<span>` dans un `<button>`, l'interrupteur perdait sa case, le champ demontait son `<input>` et son label. Mesure (Chromium, `origin/develop` @ `3750f0791`, etude #1073).
|
|
26
|
+
|
|
27
|
+
**Ruptures (assumees, pre-1.0) :**
|
|
28
|
+
- `loading` n'accepte plus `{ type: 'skeleton', … }` sur `OrigamBtn`, `OrigamSwitch`, `OrigamField` et leurs derives (`OrigamSelect`, `OrigamTextField`, `OrigamTextareaField`, …) : **erreur de compilation**. Nouveaux types `TControlLoadingValue` / `TControlLoaderConfig` et interface `IControlLoaderProps` (`IBtnProps`, `ISwitchProps` et `IFieldProps` l'etendent a la place de `ILoaderProps`). `TLoadingValue` / `ILoaderProps` / `LOADER_KIND.SKELETON` restent inchanges pour les conteneurs (Card, ExpansionPanel, DataTable). Un appelant non type qui passe quand meme `skeleton` obtient le controle normal avec l'indicateur par defaut, jamais un placeholder.
|
|
29
|
+
- Tokens supprimes (plus lus par personne) : `--origam-switch__skeleton---width`, `---height`, `--origam-switch__skeleton-track---background-color`, `--origam-switch__skeleton-thumb---background-color`, `--origam-btn--loader-skeleton---min-width`, `---min-height`. Le repli `--origam-field__skeleton---min-height` disparait avec la regle `.origam-field__skeleton`.
|
|
30
|
+
- Classes supprimees : `origam-btn--loader-skeleton`, `origam-switch__skeleton*`, `origam-field__skeleton`. `origam-btn--loader-*` ne prend plus que `line` / `circular`.
|
|
31
|
+
- `OrigamBtn` : le slot `loader` remplace desormais l'indicateur (spinner ou bande) quel que soit le type de `loading` ; il n'etait atteignable qu'en mode skeleton.
|
|
32
|
+
|
|
33
|
+
**Comportement pendant une action :**
|
|
34
|
+
- `OrigamBtn` : le libelle reste dans le DOM (nom accessible inchange, largeur stable), l'indicateur se superpose. Le bouton porte `aria-busy="true"` **et** `aria-disabled="true"` — jamais `disabled`, donc il garde le focus — et un clic (souris, Entree, Espace, `@click` du consommateur compris) est avale tant que l'action dure. Le spinner est `aria-hidden` : il ne s'ajoute pas au nom du bouton.
|
|
35
|
+
- `OrigamSwitch` : valeur et label restent ; l'indicateur (pouce ou bande) accompagne la sauvegarde.
|
|
36
|
+
- `OrigamField` : `<input>`, label et valeur restent montes ; la bande `line` (defaut) ou le `circular` s'ajoute.
|
|
37
|
+
|
|
38
|
+
**Corrige (#1076 point 1, cote controles) :** plus de `<div>` dans `<span>`/`<button>` en mode skeleton, `origam-btn--loading` n'est plus emise deux fois, la racine du spinner de `OrigamBtn` est un `<span>`. **Non corrige :** la bande `line` de `OrigamBtn` rend `OrigamProgressLinear`, dont les barres sont des `<div>` (composant partage, hors perimetre).
|
|
39
|
+
|
|
40
|
+
**Stories :** un Variant fixe `Loading` par composant (`Btn`, `Switch`, `Field`, `TextField`, `Select`, `TextareaField`) ; l'option `{ type: skeleton }` des selecteurs `Loading Kind` est retiree (#1076 point 6).
|
|
41
|
+
|
|
21
42
|
## [2.24.0] - 2026-10-14
|
|
22
43
|
|
|
23
44
|
### Changed — refonte d'`OrigamSkeleton` : primitives, pulse par defaut, `OrigamSkeletonGroup` (#1073 lot 1, #1074, #1075, #1076)
|