@abyss-project/commons-front-core 9.4.0 → 9.4.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 CHANGED
@@ -99,6 +99,16 @@ Tickets du programme Abyss Founders (carte #285, livraison D). Détail dans [`sr
99
99
  - **`SupportCategorySelect`, `SupportSidebar`** : `FUNDING_PROGRAMME` n'est proposée ni dans le champ catégorie du formulaire de création ni dans la recatégorisation admin ; un ticket de cette catégorie garde sa catégorie (chip sans champ). Le filtre multiple la propose toujours.
100
100
  - **Traductions** : `support.category.FUNDING_PROGRAMME`, `support.system.*` (dont `REQUEST_WITHDRAWN` et `ENVELOPE_EXPIRED`), FR et EN.
101
101
 
102
+ ### 9.3.1 à 9.3.3
103
+
104
+ Correctifs de la zone 4a (carte #286), relevés par son e2e responsive et sa revue finale.
105
+
106
+ - **9.3.1, `CopyField`** : sous 768 px, le bouton d'affichage fait 44×44 px et le bouton de copie 44 px de haut.
107
+ - **9.3.2, `DropZone`** : la limite s'écrit nombre, espace insécable, unité (« 2,00 Go »).
108
+ - **9.3.3, `FormField`** : le libellé est un `FormLabel` statique au-dessus du champ, quel que soit le thème MUI chargé
109
+ (la surcharge legacy de `MuiInputLabel-outlined` le plaçait dans le cadre).
110
+ - **9.3.3, `KeyValueList`** : `stackOnMobile` empile libellé et valeur sous 768 px.
111
+
102
112
  ### 9.3.0
103
113
 
104
114
  Pages des outils du front principal sur le design system (carte #286, zone 4a). Pièces nouvelles et évolutions,
@@ -0,0 +1,38 @@
1
+ /** Approximate tick count of a value axis, handed to d3. */
2
+ export declare const VALUE_TICKS = 5;
3
+ export declare enum ValueStacking {
4
+ /** Each value stands on its own: series side by side, or lines. */
5
+ None = "none",
6
+ /** Stacked bars: at a category the positive values pile up from zero, the negative ones down. */
7
+ Diverging = "diverging",
8
+ /** Stacked areas: each series piles on the running total of the series before it, in order. */
9
+ Cumulative = "cumulative"
10
+ }
11
+ export interface ValueAxisOptions {
12
+ stacking: ValueStacking;
13
+ /** The values are drawn from a zero baseline (bars, areas): zero lies inside the axis. */
14
+ fromZero: boolean;
15
+ }
16
+ export interface ValueAxisScale {
17
+ /** Bottom of the value scale, before nivo's `nice` if the chart asks for it. */
18
+ min: number;
19
+ /** Top of the value scale, before nivo's `nice` if the chart asks for it. */
20
+ max: number;
21
+ /**
22
+ * The `tickValues` of the value axis: `VALUE_TICKS` for d3 to choose, or every integer of the
23
+ * scale when d3 would step by less than one through values that are all integers.
24
+ */
25
+ tickValues: number | number[];
26
+ }
27
+ /**
28
+ * The value scale and ticks of a chart whose values are `columns`, one array per category or x
29
+ * (the value of each series there). The scale spans the values, or stacked, the totals of the
30
+ * piles, and zero with `fromZero`; without any value it is zero alone.
31
+ *
32
+ * d3 steps by 1, 2 or 5 times a power of ten: over a span shorter than `VALUE_TICKS` it steps by
33
+ * less than one (0, 0.2, 0.4… for a span of one). When every value is an integer (a count), the
34
+ * scale ends on integers and the ticks are then its integers, a subset of d3's: never more ticks,
35
+ * none beyond the scale, no two that a formatter rounds to the same text. A span of `VALUE_TICKS`
36
+ * or more already gets integer steps from d3; decimal values keep d3's ticks.
37
+ */
38
+ export declare function valueAxisScale(columns: number[][], { stacking, fromZero }: ValueAxisOptions): ValueAxisScale;
@@ -0,0 +1 @@
1
+ export {};