@starterlib/ui 0.10.13 → 0.11.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/LICENCES-TIERCES.md +9 -3
- package/README.md +167 -32
- package/assets/icones/catalogue.json +199 -4
- package/assets/icones/sprite.svg +14 -0
- package/assets/logos/starter-bank-clair.svg +1 -0
- package/assets/logos/starter-bank-monochrome.svg +1 -0
- package/assets/logos/starter-bank-sombre.svg +1 -0
- package/fesm2022/starterlib-ui-arbre.mjs +25 -25
- package/fesm2022/starterlib-ui-arbre.mjs.map +1 -1
- package/fesm2022/starterlib-ui-donnees.mjs +760 -274
- package/fesm2022/starterlib-ui-donnees.mjs.map +1 -1
- package/fesm2022/starterlib-ui-etats.mjs +82 -82
- package/fesm2022/starterlib-ui-etats.mjs.map +1 -1
- package/fesm2022/starterlib-ui-force.mjs +18 -0
- package/fesm2022/starterlib-ui-force.mjs.map +1 -0
- package/fesm2022/starterlib-ui-formulaires.mjs +580 -198
- package/fesm2022/starterlib-ui-formulaires.mjs.map +1 -1
- package/fesm2022/starterlib-ui-graphiques.mjs +934 -0
- package/fesm2022/starterlib-ui-graphiques.mjs.map +1 -0
- package/fesm2022/starterlib-ui-indicateurs.mjs +59 -59
- package/fesm2022/starterlib-ui-indicateurs.mjs.map +1 -1
- package/fesm2022/starterlib-ui-libelles-en.mjs +11 -0
- package/fesm2022/starterlib-ui-libelles-en.mjs.map +1 -1
- package/fesm2022/starterlib-ui-listes.mjs +727 -315
- package/fesm2022/starterlib-ui-listes.mjs.map +1 -1
- package/fesm2022/starterlib-ui-messagerie.mjs +45 -45
- package/fesm2022/starterlib-ui-messagerie.mjs.map +1 -1
- package/fesm2022/starterlib-ui-mise-en-page.mjs +46 -46
- package/fesm2022/starterlib-ui-mise-en-page.mjs.map +1 -1
- package/fesm2022/starterlib-ui-navigation.mjs +200 -42
- package/fesm2022/starterlib-ui-navigation.mjs.map +1 -1
- package/fesm2022/starterlib-ui-onglets.mjs +20 -20
- package/fesm2022/starterlib-ui-onglets.mjs.map +1 -1
- package/fesm2022/starterlib-ui-parcours.mjs +631 -168
- package/fesm2022/starterlib-ui-parcours.mjs.map +1 -1
- package/fesm2022/starterlib-ui-qr.mjs +11 -11
- package/fesm2022/starterlib-ui-qr.mjs.map +1 -1
- package/fesm2022/starterlib-ui-saisie.mjs +617 -511
- package/fesm2022/starterlib-ui-saisie.mjs.map +1 -1
- package/fesm2022/starterlib-ui-selection.mjs +64 -64
- package/fesm2022/starterlib-ui-selection.mjs.map +1 -1
- package/fesm2022/starterlib-ui-sens.mjs +3 -3
- package/fesm2022/starterlib-ui-surfaces.mjs +246 -242
- package/fesm2022/starterlib-ui-surfaces.mjs.map +1 -1
- package/fesm2022/starterlib-ui-virtuel.mjs +272 -0
- package/fesm2022/starterlib-ui-virtuel.mjs.map +1 -0
- package/fesm2022/starterlib-ui.mjs +1142 -898
- package/fesm2022/starterlib-ui.mjs.map +1 -1
- package/package.json +31 -3
- package/types/starterlib-ui-donnees.d.ts +231 -5
- package/types/starterlib-ui-force.d.ts +19 -0
- package/types/starterlib-ui-formulaires.d.ts +132 -1
- package/types/starterlib-ui-graphiques.d.ts +421 -0
- package/types/starterlib-ui-indicateurs.d.ts +11 -4
- package/types/starterlib-ui-listes.d.ts +230 -13
- package/types/starterlib-ui-navigation.d.ts +82 -1
- package/types/starterlib-ui-parcours.d.ts +265 -5
- package/types/starterlib-ui-saisie.d.ts +91 -10
- package/types/starterlib-ui-selection.d.ts +1 -1
- package/types/starterlib-ui-surfaces.d.ts +10 -9
- package/types/starterlib-ui-virtuel.d.ts +103 -0
- package/types/starterlib-ui.d.ts +175 -24
- package/virtuel/README.md +46 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DOCUMENT, Location, NgTemplateOutlet } from "@angular/common";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, afterNextRender, booleanAttribute, computed, effect, inject, input, isDevMode, linkedSignal, numberAttribute, output, signal, untracked } from "@angular/core";
|
|
3
|
+
import { ChangeDetectionStrategy, Component, DOCUMENT as DOCUMENT$1, DestroyRef, ElementRef, InjectionToken, afterNextRender, booleanAttribute, computed, effect, inject, input, isDevMode, linkedSignal, numberAttribute, output, signal, untracked, viewChild } from "@angular/core";
|
|
4
4
|
import { formaterIban, masquerCarte, masquerIban, masquerTelephone, partiesDuMontant, quatreDerniers } from "@starterlib/util/valeurs";
|
|
5
5
|
import { tenue } from "@starterlib/tokens";
|
|
6
|
-
import { AnnonceLocale, FUSEAU_PAR_DEFAUT, ST_LIBELLES, ST_LOCALE, ST_MONTANTS_MASQUES, StAvatar, StIcon, StIconButton, StIdentifiants, StInlineMessage, StLink, StTimer, copierDansLePressePapiers, partagerLaValeur, pressePapiersDisponible } from "@starterlib/ui";
|
|
6
|
+
import { AnnonceLocale, FUSEAU_PAR_DEFAUT, ST_LIBELLES, ST_LOCALE, ST_MONTANTS_MASQUES, StAvatar, StIcon, StIconButton, StIdentifiants, StInlineMessage, StLink, StTimer, catalogueDuPointDEntree, copierDansLePressePapiers, partagerLaValeur, pressePapiersDisponible } from "@starterlib/ui";
|
|
7
7
|
import { ecartRelatif, lireInstant, sansCommandesDeDirection } from "@starterlib/util";
|
|
8
8
|
import { Router, RouterLink } from "@angular/router";
|
|
9
9
|
const POINT$1 = "•";
|
|
@@ -12,25 +12,25 @@ const DUREE_MAX = 120;
|
|
|
12
12
|
var StMasked = class StMasked {
|
|
13
13
|
libelles = inject(ST_LIBELLES);
|
|
14
14
|
document = inject(DOCUMENT);
|
|
15
|
-
valeur = input.required(...ngDevMode ? [{ debugName: "valeur" }] :
|
|
16
|
-
type = input("iban", ...ngDevMode ? [{ debugName: "type" }] :
|
|
17
|
-
charger = input(null, ...ngDevMode ? [{ debugName: "charger" }] :
|
|
15
|
+
valeur = input.required(...ngDevMode ? [{ debugName: "valeur" }] : /* istanbul ignore next */ []);
|
|
16
|
+
type = input("iban", ...ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []);
|
|
17
|
+
charger = input(null, ...ngDevMode ? [{ debugName: "charger" }] : /* istanbul ignore next */ []);
|
|
18
18
|
dureeDeRevelationEnSecondes = input(tenue.revelation / 1e3, {
|
|
19
|
-
...ngDevMode ? { debugName: "dureeDeRevelationEnSecondes" } :
|
|
19
|
+
...ngDevMode ? { debugName: "dureeDeRevelationEnSecondes" } : /* istanbul ignore next */ {},
|
|
20
20
|
transform: (valeur) => {
|
|
21
21
|
const nombre = Number(valeur);
|
|
22
22
|
if (!Number.isFinite(nombre)) return tenue.revelation / 1e3;
|
|
23
23
|
return Math.min(DUREE_MAX, Math.max(DUREE_MIN, nombre));
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
libelle = input(null, ...ngDevMode ? [{ debugName: "libelle" }] :
|
|
27
|
-
variante = input("ligne", ...ngDevMode ? [{ debugName: "variante" }] :
|
|
28
|
-
taille = input("sm", ...ngDevMode ? [{ debugName: "taille" }] :
|
|
26
|
+
libelle = input(null, ...ngDevMode ? [{ debugName: "libelle" }] : /* istanbul ignore next */ []);
|
|
27
|
+
variante = input("ligne", ...ngDevMode ? [{ debugName: "variante" }] : /* istanbul ignore next */ []);
|
|
28
|
+
taille = input("sm", ...ngDevMode ? [{ debugName: "taille" }] : /* istanbul ignore next */ []);
|
|
29
29
|
afficherLeDecompte = input(false, {
|
|
30
|
-
...ngDevMode ? { debugName: "afficherLeDecompte" } :
|
|
30
|
+
...ngDevMode ? { debugName: "afficherLeDecompte" } : /* istanbul ignore next */ {},
|
|
31
31
|
transform: booleanAttribute
|
|
32
32
|
});
|
|
33
|
-
libelleAfficher = input(null, ...ngDevMode ? [{ debugName: "libelleAfficher" }] :
|
|
33
|
+
libelleAfficher = input(null, ...ngDevMode ? [{ debugName: "libelleAfficher" }] : /* istanbul ignore next */ []);
|
|
34
34
|
revelation = output();
|
|
35
35
|
reveleChange = output();
|
|
36
36
|
annonce = new AnnonceLocale(inject(DestroyRef));
|
|
@@ -39,26 +39,26 @@ var StMasked = class StMasked {
|
|
|
39
39
|
charger: this.charger(),
|
|
40
40
|
type: this.type()
|
|
41
41
|
}), {
|
|
42
|
-
...ngDevMode ? { debugName: "enregistrement" } :
|
|
42
|
+
...ngDevMode ? { debugName: "enregistrement" } : /* istanbul ignore next */ {},
|
|
43
43
|
equal: (a, b) => a.valeur === b.valeur && a.charger === b.charger && a.type === b.type
|
|
44
44
|
});
|
|
45
45
|
etat = linkedSignal({
|
|
46
|
-
...ngDevMode ? { debugName: "etat" } :
|
|
46
|
+
...ngDevMode ? { debugName: "etat" } : /* istanbul ignore next */ {},
|
|
47
47
|
source: this.enregistrement,
|
|
48
48
|
computation: () => "masque"
|
|
49
49
|
});
|
|
50
50
|
valeurComplete = linkedSignal({
|
|
51
|
-
...ngDevMode ? { debugName: "valeurComplete" } :
|
|
51
|
+
...ngDevMode ? { debugName: "valeurComplete" } : /* istanbul ignore next */ {},
|
|
52
52
|
source: this.enregistrement,
|
|
53
53
|
computation: () => null
|
|
54
54
|
});
|
|
55
55
|
minuterie = null;
|
|
56
56
|
demande = 0;
|
|
57
57
|
reveleSignale = false;
|
|
58
|
-
revele = computed(() => this.etat() === "revele", ...ngDevMode ? [{ debugName: "revele" }] :
|
|
59
|
-
enChargement = computed(() => this.etat() === "chargement", ...ngDevMode ? [{ debugName: "enChargement" }] :
|
|
60
|
-
dejaMasquee = computed(() => this.valeur().includes(POINT$1), ...ngDevMode ? [{ debugName: "dejaMasquee" }] :
|
|
61
|
-
revelationPossible = computed(() => this.charger() !== null, ...ngDevMode ? [{ debugName: "revelationPossible" }] :
|
|
58
|
+
revele = computed(() => this.etat() === "revele", ...ngDevMode ? [{ debugName: "revele" }] : /* istanbul ignore next */ []);
|
|
59
|
+
enChargement = computed(() => this.etat() === "chargement", ...ngDevMode ? [{ debugName: "enChargement" }] : /* istanbul ignore next */ []);
|
|
60
|
+
dejaMasquee = computed(() => this.valeur().includes(POINT$1), ...ngDevMode ? [{ debugName: "dejaMasquee" }] : /* istanbul ignore next */ []);
|
|
61
|
+
revelationPossible = computed(() => this.charger() !== null, ...ngDevMode ? [{ debugName: "revelationPossible" }] : /* istanbul ignore next */ []);
|
|
62
62
|
constructor() {
|
|
63
63
|
const destruction = inject(DestroyRef);
|
|
64
64
|
destruction.onDestroy(() => {
|
|
@@ -98,13 +98,13 @@ var StMasked = class StMasked {
|
|
|
98
98
|
case "reference": return masquerReference(valeur);
|
|
99
99
|
default: return masquerIban(valeur);
|
|
100
100
|
}
|
|
101
|
-
}, ...ngDevMode ? [{ debugName: "valeurMasquee" }] :
|
|
101
|
+
}, ...ngDevMode ? [{ debugName: "valeurMasquee" }] : /* istanbul ignore next */ []);
|
|
102
102
|
valeurLisible = computed(() => {
|
|
103
103
|
const complete = this.valeurComplete();
|
|
104
104
|
if (complete === null) return null;
|
|
105
105
|
return this.type() === "iban" ? formaterIban(complete) : complete;
|
|
106
|
-
}, ...ngDevMode ? [{ debugName: "valeurLisible" }] :
|
|
107
|
-
valeurAffichee = computed(() => this.revele() ? this.valeurLisible() ?? this.valeurMasquee() : this.valeurMasquee(), ...ngDevMode ? [{ debugName: "valeurAffichee" }] :
|
|
106
|
+
}, ...ngDevMode ? [{ debugName: "valeurLisible" }] : /* istanbul ignore next */ []);
|
|
107
|
+
valeurAffichee = computed(() => this.revele() ? this.valeurLisible() ?? this.valeurMasquee() : this.valeurMasquee(), ...ngDevMode ? [{ debugName: "valeurAffichee" }] : /* istanbul ignore next */ []);
|
|
108
108
|
groupes = computed(() => {
|
|
109
109
|
const morceaux = this.valeurAffichee().split(/\s+/).filter(Boolean);
|
|
110
110
|
if (this.type() === "telephone" && morceaux[0]?.startsWith("+") && morceaux.length > 2) morceaux.splice(0, 2, `${morceaux[0]}\u00a0${morceaux[1] ?? ""}`);
|
|
@@ -114,8 +114,8 @@ var StMasked = class StMasked {
|
|
|
114
114
|
points: texte.includes(POINT$1),
|
|
115
115
|
extremite: revele && (rang === 0 || rang === morceaux.length - 1)
|
|
116
116
|
}));
|
|
117
|
-
}, ...ngDevMode ? [{ debugName: "groupes" }] :
|
|
118
|
-
finLisible = computed(() => quatreDerniers(this.valeurMasquee()), ...ngDevMode ? [{ debugName: "finLisible" }] :
|
|
117
|
+
}, ...ngDevMode ? [{ debugName: "groupes" }] : /* istanbul ignore next */ []);
|
|
118
|
+
finLisible = computed(() => quatreDerniers(this.valeurMasquee()), ...ngDevMode ? [{ debugName: "finLisible" }] : /* istanbul ignore next */ []);
|
|
119
119
|
nature = computed(() => {
|
|
120
120
|
const libelles = this.libelles();
|
|
121
121
|
return {
|
|
@@ -124,13 +124,13 @@ var StMasked = class StMasked {
|
|
|
124
124
|
telephone: libelles.natureTelephone,
|
|
125
125
|
reference: libelles.natureReference
|
|
126
126
|
}[this.type()];
|
|
127
|
-
}, ...ngDevMode ? [{ debugName: "nature" }] :
|
|
127
|
+
}, ...ngDevMode ? [{ debugName: "nature" }] : /* istanbul ignore next */ []);
|
|
128
128
|
nomAccessible = computed(() => {
|
|
129
129
|
const lisible = this.revele() ? this.valeurLisible() : null;
|
|
130
130
|
if (lisible !== null) return `${this.nature()} ${lisible}`;
|
|
131
131
|
return this.libelles().seTerminantPar(this.nature(), this.finLisible());
|
|
132
|
-
}, ...ngDevMode ? [{ debugName: "nomAccessible" }] :
|
|
133
|
-
libelleDuBouton = computed(() => this.libelleAfficher() ?? this.libelles().afficherLaValeur(this.type()), ...ngDevMode ? [{ debugName: "libelleDuBouton" }] :
|
|
132
|
+
}, ...ngDevMode ? [{ debugName: "nomAccessible" }] : /* istanbul ignore next */ []);
|
|
133
|
+
libelleDuBouton = computed(() => this.libelleAfficher() ?? this.libelles().afficherLaValeur(this.type()), ...ngDevMode ? [{ debugName: "libelleDuBouton" }] : /* istanbul ignore next */ []);
|
|
134
134
|
basculer() {
|
|
135
135
|
if (this.etat() === "revele") {
|
|
136
136
|
this.masquer();
|
|
@@ -191,7 +191,7 @@ var StMasked = class StMasked {
|
|
|
191
191
|
}
|
|
192
192
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
193
193
|
minVersion: "12.0.0",
|
|
194
|
-
version: "22.2.
|
|
194
|
+
version: "22.2.1",
|
|
195
195
|
ngImport: i0,
|
|
196
196
|
type: StMasked,
|
|
197
197
|
deps: [],
|
|
@@ -199,7 +199,7 @@ var StMasked = class StMasked {
|
|
|
199
199
|
});
|
|
200
200
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
201
201
|
minVersion: "17.0.0",
|
|
202
|
-
version: "22.2.
|
|
202
|
+
version: "22.2.1",
|
|
203
203
|
type: StMasked,
|
|
204
204
|
isStandalone: true,
|
|
205
205
|
selector: "st-masked",
|
|
@@ -318,7 +318,7 @@ var StMasked = class StMasked {
|
|
|
318
318
|
};
|
|
319
319
|
i0.ɵɵngDeclareClassMetadata({
|
|
320
320
|
minVersion: "12.0.0",
|
|
321
|
-
version: "22.2.
|
|
321
|
+
version: "22.2.1",
|
|
322
322
|
ngImport: i0,
|
|
323
323
|
type: StMasked,
|
|
324
324
|
decorators: [{
|
|
@@ -431,44 +431,44 @@ var StMoney = class StMoney {
|
|
|
431
431
|
locale = inject(ST_LOCALE);
|
|
432
432
|
libelles = inject(ST_LIBELLES);
|
|
433
433
|
montantsMasques = inject(ST_MONTANTS_MASQUES);
|
|
434
|
-
valeur = input.required(...ngDevMode ? [{ debugName: "valeur" }] :
|
|
434
|
+
valeur = input.required(...ngDevMode ? [{ debugName: "valeur" }] : /* istanbul ignore next */ []);
|
|
435
435
|
signeExplicite = input(false, {
|
|
436
|
-
...ngDevMode ? { debugName: "signeExplicite" } :
|
|
436
|
+
...ngDevMode ? { debugName: "signeExplicite" } : /* istanbul ignore next */ {},
|
|
437
437
|
transform: booleanAttribute
|
|
438
438
|
});
|
|
439
439
|
sansDevise = input(false, {
|
|
440
|
-
...ngDevMode ? { debugName: "sansDevise" } :
|
|
440
|
+
...ngDevMode ? { debugName: "sansDevise" } : /* istanbul ignore next */ {},
|
|
441
441
|
transform: booleanAttribute
|
|
442
442
|
});
|
|
443
|
-
taille = input(null, ...ngDevMode ? [{ debugName: "taille" }] :
|
|
443
|
+
taille = input(null, ...ngDevMode ? [{ debugName: "taille" }] : /* istanbul ignore next */ []);
|
|
444
444
|
variation = input(false, {
|
|
445
|
-
...ngDevMode ? { debugName: "variation" } :
|
|
445
|
+
...ngDevMode ? { debugName: "variation" } : /* istanbul ignore next */ {},
|
|
446
446
|
transform: booleanAttribute
|
|
447
447
|
});
|
|
448
|
-
ton = input(null, ...ngDevMode ? [{ debugName: "ton" }] :
|
|
449
|
-
police = input("base", ...ngDevMode ? [{ debugName: "police" }] :
|
|
450
|
-
alignement = input(null, ...ngDevMode ? [{ debugName: "alignement" }] :
|
|
448
|
+
ton = input(null, ...ngDevMode ? [{ debugName: "ton" }] : /* istanbul ignore next */ []);
|
|
449
|
+
police = input("base", ...ngDevMode ? [{ debugName: "police" }] : /* istanbul ignore next */ []);
|
|
450
|
+
alignement = input(null, ...ngDevMode ? [{ debugName: "alignement" }] : /* istanbul ignore next */ []);
|
|
451
451
|
masque = input(false, {
|
|
452
|
-
...ngDevMode ? { debugName: "masque" } :
|
|
452
|
+
...ngDevMode ? { debugName: "masque" } : /* istanbul ignore next */ {},
|
|
453
453
|
transform: booleanAttribute
|
|
454
454
|
});
|
|
455
|
-
masqueLu = computed(() => this.masque() || this.montantsMasques(), ...ngDevMode ? [{ debugName: "masqueLu" }] :
|
|
455
|
+
masqueLu = computed(() => this.masque() || this.montantsMasques(), ...ngDevMode ? [{ debugName: "masqueLu" }] : /* istanbul ignore next */ []);
|
|
456
456
|
signe = computed(() => {
|
|
457
457
|
const unites = this.valeur().unitesMineures;
|
|
458
458
|
if (unites < 0n) return "negatif";
|
|
459
459
|
if (unites > 0n) return "positif";
|
|
460
460
|
return "nul";
|
|
461
|
-
}, ...ngDevMode ? [{ debugName: "signe" }] :
|
|
461
|
+
}, ...ngDevMode ? [{ debugName: "signe" }] : /* istanbul ignore next */ []);
|
|
462
462
|
options = computed(() => ({
|
|
463
463
|
locale: this.locale(),
|
|
464
464
|
signeExplicite: this.signeExplicite(),
|
|
465
465
|
sansDevise: this.sansDevise()
|
|
466
|
-
}), ...ngDevMode ? [{ debugName: "options" }] :
|
|
467
|
-
texte = computed(() => partiesDuMontant(this.valeur(), this.options()).map((partie) => partie.value).join(""), ...ngDevMode ? [{ debugName: "texte" }] :
|
|
466
|
+
}), ...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
|
|
467
|
+
texte = computed(() => partiesDuMontant(this.valeur(), this.options()).map((partie) => partie.value).join(""), ...ngDevMode ? [{ debugName: "texte" }] : /* istanbul ignore next */ []);
|
|
468
468
|
valeurMachine = computed(() => {
|
|
469
469
|
const { unitesMineures, devise } = this.valeur();
|
|
470
470
|
return `${unitesMineures.toString()} ${devise}`;
|
|
471
|
-
}, ...ngDevMode ? [{ debugName: "valeurMachine" }] :
|
|
471
|
+
}, ...ngDevMode ? [{ debugName: "valeurMachine" }] : /* istanbul ignore next */ []);
|
|
472
472
|
texteLu = computed(() => {
|
|
473
473
|
const { unitesMineures, devise } = this.valeur();
|
|
474
474
|
const absolu = partiesDuMontant({
|
|
@@ -479,7 +479,7 @@ var StMoney = class StMoney {
|
|
|
479
479
|
signeExplicite: false
|
|
480
480
|
}).map((partie) => partie.value).join("");
|
|
481
481
|
return this.libelles().montantNegatif(absolu);
|
|
482
|
-
}, ...ngDevMode ? [{ debugName: "texteLu" }] :
|
|
482
|
+
}, ...ngDevMode ? [{ debugName: "texteLu" }] : /* istanbul ignore next */ []);
|
|
483
483
|
texteMasque = computed(() => {
|
|
484
484
|
let entierRendu = false;
|
|
485
485
|
return partiesDuMontant(this.valeur(), {
|
|
@@ -492,11 +492,11 @@ var StMoney = class StMoney {
|
|
|
492
492
|
entierRendu = true;
|
|
493
493
|
return POINT.repeat(4);
|
|
494
494
|
}).join("");
|
|
495
|
-
}, ...ngDevMode ? [{ debugName: "texteMasque" }] :
|
|
496
|
-
libelleMasque = computed(() => this.libelles().montantMasque, ...ngDevMode ? [{ debugName: "libelleMasque" }] :
|
|
495
|
+
}, ...ngDevMode ? [{ debugName: "texteMasque" }] : /* istanbul ignore next */ []);
|
|
496
|
+
libelleMasque = computed(() => this.libelles().montantMasque, ...ngDevMode ? [{ debugName: "libelleMasque" }] : /* istanbul ignore next */ []);
|
|
497
497
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
498
498
|
minVersion: "12.0.0",
|
|
499
|
-
version: "22.2.
|
|
499
|
+
version: "22.2.1",
|
|
500
500
|
ngImport: i0,
|
|
501
501
|
type: StMoney,
|
|
502
502
|
deps: [],
|
|
@@ -504,7 +504,7 @@ var StMoney = class StMoney {
|
|
|
504
504
|
});
|
|
505
505
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
506
506
|
minVersion: "17.0.0",
|
|
507
|
-
version: "22.2.
|
|
507
|
+
version: "22.2.1",
|
|
508
508
|
type: StMoney,
|
|
509
509
|
isStandalone: true,
|
|
510
510
|
selector: "st-money",
|
|
@@ -587,13 +587,13 @@ var StMoney = class StMoney {
|
|
|
587
587
|
},
|
|
588
588
|
ngImport: i0,
|
|
589
589
|
template: "@if (masqueLu()) {\n <span class=\"st-money__valeur\" aria-hidden=\"true\">{{ texteMasque() }}</span>\n <span class=\"st-vh\">{{ libelleMasque() }}</span>\n} @else if (signe() === 'negatif') {\n <!-- Le signe moins U+2212 n'est pas lu partout : le texte visible se tait, le mot se dit. -->\n <data class=\"st-money__valeur\" [attr.value]=\"valeurMachine()\" aria-hidden=\"true\">{{\n texte()\n }}</data>\n <span class=\"st-vh\">{{ texteLu() }}</span>\n} @else {\n <data class=\"st-money__valeur\" [attr.value]=\"valeurMachine()\">{{ texte() }}</data>\n}\n",
|
|
590
|
-
styles: [".st-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host([hidden]){display:none!important}:host{color:var(--st-couleur-texte);unicode-bidi:isolate;white-space:nowrap}:host(:not([data-masque])){font-variant-numeric:var(--st-chiffres-alignes)}:host([data-alignement=fin]){text-align:end}:host([data-alignement=debut]){text-align:start}:host([data-taille=sm]){font-size:var(--st-taille-sm);font-weight:var(--st-graisse-moyenne);line-height:var(--st-interligne-sm)}:host([data-taille=md]){font-weight:var(--st-graisse-moyenne)}:host([data-taille=lg]){font-size:var(--st-taille-lg);line-height:var(--st-interligne-md);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-lg)}:host([data-taille=xl]){font-size:var(--st-taille-xl);line-height:var(--st-interligne-xl);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-xl)}:host([data-taille=\"2xl\"]){font-size:var(--st-taille-2xl);line-height:var(--st-interligne-2xl);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-2xl)}:host([data-taille=hero]){display:block;font-size:var(--st-taille-xl);line-height:var(--st-interligne-xl);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-xl)}@media(min-width:30rem){:host([data-taille=hero]){font-size:var(--st-taille-4xl);line-height:var(--st-interligne-4xl);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-4xl);font-variant-numeric:var(--st-chiffres-alignes)}}:host([data-police=mono]){font-family:var(--st-police-mono);letter-spacing:var(--st-interlettrage-normal)}:host([data-variation][data-signe=positif]:not([data-ton])){color:var(--st-couleur-positif)}:host([data-variation][data-signe=negatif]:not([data-ton])){color:var(--st-couleur-negatif)}:host([data-masque]){color:var(--st-couleur-texte)}:host([data-ton=neutre]){color:var(--st-couleur-texte)}:host([data-ton=discret]){color:var(--st-couleur-texte-discret)}:host([data-ton=primaire]){color:var(--st-couleur-texte-primaire)}:host([data-ton=succes]){color:var(--st-couleur-succes)}:host([data-ton=danger]){color:var(--st-couleur-danger)}:host([data-masque]){font-family:var(--st-police-mono);letter-spacing:var(--st-interlettrage-surtitre)}\n"],
|
|
590
|
+
styles: [".st-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host([hidden]){display:none!important}:host{color:var(--st-couleur-texte);unicode-bidi:isolate;white-space:nowrap}:host(:not([data-masque])){font-variant-numeric:var(--st-chiffres-alignes)}:host([data-alignement=fin]){text-align:end}:host([data-alignement=debut]){text-align:start}:host([data-taille=sm]){font-size:var(--st-taille-sm);font-weight:var(--st-graisse-moyenne);line-height:var(--st-interligne-sm)}:host([data-taille=md]){font-weight:var(--st-graisse-moyenne)}:host([data-taille=lg]){font-family:var(--st-police-titre, var(--st-police-base));font-size:var(--st-taille-lg);line-height:var(--st-interligne-md);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-lg)}:host([data-taille=xl]){font-family:var(--st-police-titre, var(--st-police-base));font-size:var(--st-taille-xl);line-height:var(--st-interligne-xl);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-xl)}:host([data-taille=\"2xl\"]){font-family:var(--st-police-titre, var(--st-police-base));font-size:var(--st-taille-2xl);line-height:var(--st-interligne-2xl);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-2xl)}:host([data-taille=hero]){display:block;font-family:var(--st-police-titre, var(--st-police-base));font-size:var(--st-taille-xl);line-height:var(--st-interligne-xl);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-xl)}@media(min-width:30rem){:host([data-taille=hero]){font-size:var(--st-taille-4xl);line-height:var(--st-interligne-4xl);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-4xl);font-variant-numeric:var(--st-chiffres-alignes)}}:host([data-police=mono]){font-family:var(--st-police-mono);letter-spacing:var(--st-interlettrage-normal)}:host([data-variation][data-signe=positif]:not([data-ton])){color:var(--st-couleur-positif)}:host([data-variation][data-signe=negatif]:not([data-ton])){color:var(--st-couleur-negatif)}:host([data-masque]){color:var(--st-couleur-texte)}:host([data-ton=neutre]){color:var(--st-couleur-texte)}:host([data-ton=discret]){color:var(--st-couleur-texte-discret)}:host([data-ton=primaire]){color:var(--st-couleur-texte-primaire)}:host([data-ton=succes]){color:var(--st-couleur-succes)}:host([data-ton=erreur]){color:var(--st-couleur-erreur)}:host([data-ton=danger]){color:var(--st-couleur-danger)}:host([data-masque]){font-family:var(--st-police-mono);letter-spacing:var(--st-interlettrage-surtitre)}\n"],
|
|
591
591
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
592
592
|
});
|
|
593
593
|
};
|
|
594
594
|
i0.ɵɵngDeclareClassMetadata({
|
|
595
595
|
minVersion: "12.0.0",
|
|
596
|
-
version: "22.2.
|
|
596
|
+
version: "22.2.1",
|
|
597
597
|
ngImport: i0,
|
|
598
598
|
type: StMoney,
|
|
599
599
|
decorators: [{
|
|
@@ -612,7 +612,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
612
612
|
"[attr.data-masque]": "masqueLu() ? \"\" : null"
|
|
613
613
|
},
|
|
614
614
|
template: "@if (masqueLu()) {\n <span class=\"st-money__valeur\" aria-hidden=\"true\">{{ texteMasque() }}</span>\n <span class=\"st-vh\">{{ libelleMasque() }}</span>\n} @else if (signe() === 'negatif') {\n <!-- Le signe moins U+2212 n'est pas lu partout : le texte visible se tait, le mot se dit. -->\n <data class=\"st-money__valeur\" [attr.value]=\"valeurMachine()\" aria-hidden=\"true\">{{\n texte()\n }}</data>\n <span class=\"st-vh\">{{ texteLu() }}</span>\n} @else {\n <data class=\"st-money__valeur\" [attr.value]=\"valeurMachine()\">{{ texte() }}</data>\n}\n",
|
|
615
|
-
styles: [".st-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host([hidden]){display:none!important}:host{color:var(--st-couleur-texte);unicode-bidi:isolate;white-space:nowrap}:host(:not([data-masque])){font-variant-numeric:var(--st-chiffres-alignes)}:host([data-alignement=fin]){text-align:end}:host([data-alignement=debut]){text-align:start}:host([data-taille=sm]){font-size:var(--st-taille-sm);font-weight:var(--st-graisse-moyenne);line-height:var(--st-interligne-sm)}:host([data-taille=md]){font-weight:var(--st-graisse-moyenne)}:host([data-taille=lg]){font-size:var(--st-taille-lg);line-height:var(--st-interligne-md);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-lg)}:host([data-taille=xl]){font-size:var(--st-taille-xl);line-height:var(--st-interligne-xl);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-xl)}:host([data-taille=\"2xl\"]){font-size:var(--st-taille-2xl);line-height:var(--st-interligne-2xl);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-2xl)}:host([data-taille=hero]){display:block;font-size:var(--st-taille-xl);line-height:var(--st-interligne-xl);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-xl)}@media(min-width:30rem){:host([data-taille=hero]){font-size:var(--st-taille-4xl);line-height:var(--st-interligne-4xl);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-4xl);font-variant-numeric:var(--st-chiffres-alignes)}}:host([data-police=mono]){font-family:var(--st-police-mono);letter-spacing:var(--st-interlettrage-normal)}:host([data-variation][data-signe=positif]:not([data-ton])){color:var(--st-couleur-positif)}:host([data-variation][data-signe=negatif]:not([data-ton])){color:var(--st-couleur-negatif)}:host([data-masque]){color:var(--st-couleur-texte)}:host([data-ton=neutre]){color:var(--st-couleur-texte)}:host([data-ton=discret]){color:var(--st-couleur-texte-discret)}:host([data-ton=primaire]){color:var(--st-couleur-texte-primaire)}:host([data-ton=succes]){color:var(--st-couleur-succes)}:host([data-ton=danger]){color:var(--st-couleur-danger)}:host([data-masque]){font-family:var(--st-police-mono);letter-spacing:var(--st-interlettrage-surtitre)}\n"]
|
|
615
|
+
styles: [".st-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host([hidden]){display:none!important}:host{color:var(--st-couleur-texte);unicode-bidi:isolate;white-space:nowrap}:host(:not([data-masque])){font-variant-numeric:var(--st-chiffres-alignes)}:host([data-alignement=fin]){text-align:end}:host([data-alignement=debut]){text-align:start}:host([data-taille=sm]){font-size:var(--st-taille-sm);font-weight:var(--st-graisse-moyenne);line-height:var(--st-interligne-sm)}:host([data-taille=md]){font-weight:var(--st-graisse-moyenne)}:host([data-taille=lg]){font-family:var(--st-police-titre, var(--st-police-base));font-size:var(--st-taille-lg);line-height:var(--st-interligne-md);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-lg)}:host([data-taille=xl]){font-family:var(--st-police-titre, var(--st-police-base));font-size:var(--st-taille-xl);line-height:var(--st-interligne-xl);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-xl)}:host([data-taille=\"2xl\"]){font-family:var(--st-police-titre, var(--st-police-base));font-size:var(--st-taille-2xl);line-height:var(--st-interligne-2xl);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-2xl)}:host([data-taille=hero]){display:block;font-family:var(--st-police-titre, var(--st-police-base));font-size:var(--st-taille-xl);line-height:var(--st-interligne-xl);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-xl)}@media(min-width:30rem){:host([data-taille=hero]){font-size:var(--st-taille-4xl);line-height:var(--st-interligne-4xl);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-4xl);font-variant-numeric:var(--st-chiffres-alignes)}}:host([data-police=mono]){font-family:var(--st-police-mono);letter-spacing:var(--st-interlettrage-normal)}:host([data-variation][data-signe=positif]:not([data-ton])){color:var(--st-couleur-positif)}:host([data-variation][data-signe=negatif]:not([data-ton])){color:var(--st-couleur-negatif)}:host([data-masque]){color:var(--st-couleur-texte)}:host([data-ton=neutre]){color:var(--st-couleur-texte)}:host([data-ton=discret]){color:var(--st-couleur-texte-discret)}:host([data-ton=primaire]){color:var(--st-couleur-texte-primaire)}:host([data-ton=succes]){color:var(--st-couleur-succes)}:host([data-ton=erreur]){color:var(--st-couleur-erreur)}:host([data-ton=danger]){color:var(--st-couleur-danger)}:host([data-masque]){font-family:var(--st-police-mono);letter-spacing:var(--st-interlettrage-surtitre)}\n"]
|
|
616
616
|
}]
|
|
617
617
|
}],
|
|
618
618
|
propDecorators: {
|
|
@@ -727,27 +727,27 @@ var StDate = class StDate {
|
|
|
727
727
|
locale = inject(ST_LOCALE);
|
|
728
728
|
libelles = inject(ST_LIBELLES);
|
|
729
729
|
fuseauParDefaut = inject(FUSEAU_PAR_DEFAUT);
|
|
730
|
-
valeur = input.required(...ngDevMode ? [{ debugName: "valeur" }] :
|
|
731
|
-
format = input("court", ...ngDevMode ? [{ debugName: "format" }] :
|
|
732
|
-
fuseau = input(null, ...ngDevMode ? [{ debugName: "fuseau" }] :
|
|
730
|
+
valeur = input.required(...ngDevMode ? [{ debugName: "valeur" }] : /* istanbul ignore next */ []);
|
|
731
|
+
format = input("court", ...ngDevMode ? [{ debugName: "format" }] : /* istanbul ignore next */ []);
|
|
732
|
+
fuseau = input(null, ...ngDevMode ? [{ debugName: "fuseau" }] : /* istanbul ignore next */ []);
|
|
733
733
|
afficherLeFuseau = input(false, {
|
|
734
|
-
...ngDevMode ? { debugName: "afficherLeFuseau" } :
|
|
734
|
+
...ngDevMode ? { debugName: "afficherLeFuseau" } : /* istanbul ignore next */ {},
|
|
735
735
|
transform: booleanAttribute
|
|
736
736
|
});
|
|
737
|
-
variante = input("valeur", ...ngDevMode ? [{ debugName: "variante" }] :
|
|
737
|
+
variante = input("valeur", ...ngDevMode ? [{ debugName: "variante" }] : /* istanbul ignore next */ []);
|
|
738
738
|
estDateDeCalendrier = computed(() => {
|
|
739
739
|
const valeur = this.valeur();
|
|
740
740
|
return typeof valeur === "string" && DATE_DE_CALENDRIER.test(valeur);
|
|
741
|
-
}, ...ngDevMode ? [{ debugName: "estDateDeCalendrier" }] :
|
|
742
|
-
fuseauDeRendu = computed(() => this.estDateDeCalendrier() ? "UTC" : this.fuseau() ?? this.fuseauParDefaut, ...ngDevMode ? [{ debugName: "fuseauDeRendu" }] :
|
|
741
|
+
}, ...ngDevMode ? [{ debugName: "estDateDeCalendrier" }] : /* istanbul ignore next */ []);
|
|
742
|
+
fuseauDeRendu = computed(() => this.estDateDeCalendrier() ? "UTC" : this.fuseau() ?? this.fuseauParDefaut, ...ngDevMode ? [{ debugName: "fuseauDeRendu" }] : /* istanbul ignore next */ []);
|
|
743
743
|
date = computed(() => {
|
|
744
744
|
const valeur = this.valeur();
|
|
745
745
|
if (valeur === null || valeur === "") return null;
|
|
746
746
|
if (valeur instanceof Date) return Number.isNaN(valeur.getTime()) ? null : valeur;
|
|
747
747
|
const instant = lireInstant(valeur, this.fuseauDeRendu());
|
|
748
748
|
return instant === null ? null : new Date(instant);
|
|
749
|
-
}, ...ngDevMode ? [{ debugName: "date" }] :
|
|
750
|
-
estValide = computed(() => this.date() !== null, ...ngDevMode ? [{ debugName: "estValide" }] :
|
|
749
|
+
}, ...ngDevMode ? [{ debugName: "date" }] : /* istanbul ignore next */ []);
|
|
750
|
+
estValide = computed(() => this.date() !== null, ...ngDevMode ? [{ debugName: "estValide" }] : /* istanbul ignore next */ []);
|
|
751
751
|
constructor() {
|
|
752
752
|
effect(() => {
|
|
753
753
|
const valeur = this.valeur();
|
|
@@ -763,7 +763,7 @@ var StDate = class StDate {
|
|
|
763
763
|
if (date === null) return null;
|
|
764
764
|
if (this.estDateDeCalendrier()) return date.toISOString().slice(0, 10);
|
|
765
765
|
return date.toISOString();
|
|
766
|
-
}, ...ngDevMode ? [{ debugName: "iso" }] :
|
|
766
|
+
}, ...ngDevMode ? [{ debugName: "iso" }] : /* istanbul ignore next */ []);
|
|
767
767
|
optionsDeFormat = computed(() => {
|
|
768
768
|
const format = this.format();
|
|
769
769
|
if (!this.estDateDeCalendrier()) return OPTIONS[format];
|
|
@@ -773,7 +773,7 @@ var StDate = class StDate {
|
|
|
773
773
|
delete sansHeure.hour;
|
|
774
774
|
delete sansHeure.minute;
|
|
775
775
|
return sansHeure;
|
|
776
|
-
}, ...ngDevMode ? [{ debugName: "optionsDeFormat" }] :
|
|
776
|
+
}, ...ngDevMode ? [{ debugName: "optionsDeFormat" }] : /* istanbul ignore next */ []);
|
|
777
777
|
texte = computed(() => {
|
|
778
778
|
const date = this.date();
|
|
779
779
|
if (date === null) return "";
|
|
@@ -781,8 +781,8 @@ var StDate = class StDate {
|
|
|
781
781
|
...this.optionsDeFormat(),
|
|
782
782
|
timeZone: this.fuseauDeRendu()
|
|
783
783
|
}).format(date);
|
|
784
|
-
}, ...ngDevMode ? [{ debugName: "texte" }] :
|
|
785
|
-
fuseauAffiche = computed(() => this.afficherLeFuseau() && AVEC_HEURE.has(this.format()) && !this.estDateDeCalendrier() ? this.fuseauDeRendu() : null, ...ngDevMode ? [{ debugName: "fuseauAffiche" }] :
|
|
784
|
+
}, ...ngDevMode ? [{ debugName: "texte" }] : /* istanbul ignore next */ []);
|
|
785
|
+
fuseauAffiche = computed(() => this.afficherLeFuseau() && AVEC_HEURE.has(this.format()) && !this.estDateDeCalendrier() ? this.fuseauDeRendu() : null, ...ngDevMode ? [{ debugName: "fuseauAffiche" }] : /* istanbul ignore next */ []);
|
|
786
786
|
texteAccessible = computed(() => {
|
|
787
787
|
const date = this.date();
|
|
788
788
|
if (date === null || this.format() !== "court") return null;
|
|
@@ -790,11 +790,11 @@ var StDate = class StDate {
|
|
|
790
790
|
...OPTIONS.long,
|
|
791
791
|
timeZone: this.fuseauDeRendu()
|
|
792
792
|
}).format(date);
|
|
793
|
-
}, ...ngDevMode ? [{ debugName: "texteAccessible" }] :
|
|
794
|
-
dateInconnue = computed(() => this.libelles().dateInconnue, ...ngDevMode ? [{ debugName: "dateInconnue" }] :
|
|
793
|
+
}, ...ngDevMode ? [{ debugName: "texteAccessible" }] : /* istanbul ignore next */ []);
|
|
794
|
+
dateInconnue = computed(() => this.libelles().dateInconnue, ...ngDevMode ? [{ debugName: "dateInconnue" }] : /* istanbul ignore next */ []);
|
|
795
795
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
796
796
|
minVersion: "12.0.0",
|
|
797
|
-
version: "22.2.
|
|
797
|
+
version: "22.2.1",
|
|
798
798
|
ngImport: i0,
|
|
799
799
|
type: StDate,
|
|
800
800
|
deps: [],
|
|
@@ -802,7 +802,7 @@ var StDate = class StDate {
|
|
|
802
802
|
});
|
|
803
803
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
804
804
|
minVersion: "17.0.0",
|
|
805
|
-
version: "22.2.
|
|
805
|
+
version: "22.2.1",
|
|
806
806
|
type: StDate,
|
|
807
807
|
isStandalone: true,
|
|
808
808
|
selector: "st-date",
|
|
@@ -859,7 +859,7 @@ var StDate = class StDate {
|
|
|
859
859
|
};
|
|
860
860
|
i0.ɵɵngDeclareClassMetadata({
|
|
861
861
|
minVersion: "12.0.0",
|
|
862
|
-
version: "22.2.
|
|
862
|
+
version: "22.2.1",
|
|
863
863
|
ngImport: i0,
|
|
864
864
|
type: StDate,
|
|
865
865
|
decorators: [{
|
|
@@ -932,22 +932,22 @@ var StRelativeTime = class StRelativeTime {
|
|
|
932
932
|
libelles = inject(ST_LIBELLES);
|
|
933
933
|
fuseau = inject(FUSEAU_PAR_DEFAUT);
|
|
934
934
|
document = inject(DOCUMENT);
|
|
935
|
-
valeur = input.required(...ngDevMode ? [{ debugName: "valeur" }] :
|
|
935
|
+
valeur = input.required(...ngDevMode ? [{ debugName: "valeur" }] : /* istanbul ignore next */ []);
|
|
936
936
|
rafraichir = input(true, {
|
|
937
|
-
...ngDevMode ? { debugName: "rafraichir" } :
|
|
937
|
+
...ngDevMode ? { debugName: "rafraichir" } : /* istanbul ignore next */ {},
|
|
938
938
|
transform: booleanAttribute
|
|
939
939
|
});
|
|
940
|
-
ton = input("neutre", ...ngDevMode ? [{ debugName: "ton" }] :
|
|
940
|
+
ton = input("neutre", ...ngDevMode ? [{ debugName: "ton" }] : /* istanbul ignore next */ []);
|
|
941
941
|
avecAbsolu = input(false, {
|
|
942
|
-
...ngDevMode ? { debugName: "avecAbsolu" } :
|
|
942
|
+
...ngDevMode ? { debugName: "avecAbsolu" } : /* istanbul ignore next */ {},
|
|
943
943
|
transform: booleanAttribute
|
|
944
944
|
});
|
|
945
945
|
seuilAbsoluEnJours = input(7, {
|
|
946
|
-
...ngDevMode ? { debugName: "seuilAbsoluEnJours" } :
|
|
946
|
+
...ngDevMode ? { debugName: "seuilAbsoluEnJours" } : /* istanbul ignore next */ {},
|
|
947
947
|
transform: numberAttribute
|
|
948
948
|
});
|
|
949
949
|
destruction = inject(DestroyRef);
|
|
950
|
-
maintenant = signal(Date.now(), ...ngDevMode ? [{ debugName: "maintenant" }] :
|
|
950
|
+
maintenant = signal(Date.now(), ...ngDevMode ? [{ debugName: "maintenant" }] : /* istanbul ignore next */ []);
|
|
951
951
|
constructor() {
|
|
952
952
|
afterNextRender(() => {
|
|
953
953
|
if (!this.rafraichir()) return;
|
|
@@ -986,11 +986,11 @@ var StRelativeTime = class StRelativeTime {
|
|
|
986
986
|
if (valeur instanceof Date) return valeur.getTime();
|
|
987
987
|
return lireInstant(valeur, this.fuseau) ?? NaN;
|
|
988
988
|
}
|
|
989
|
-
estValide = computed(() => !Number.isNaN(this.dateEnMillisecondes()), ...ngDevMode ? [{ debugName: "estValide" }] :
|
|
990
|
-
iso = computed(() => this.estValide() ? new Date(this.dateEnMillisecondes()).toISOString() : null, ...ngDevMode ? [{ debugName: "iso" }] :
|
|
989
|
+
estValide = computed(() => !Number.isNaN(this.dateEnMillisecondes()), ...ngDevMode ? [{ debugName: "estValide" }] : /* istanbul ignore next */ []);
|
|
990
|
+
iso = computed(() => this.estValide() ? new Date(this.dateEnMillisecondes()).toISOString() : null, ...ngDevMode ? [{ debugName: "iso" }] : /* istanbul ignore next */ []);
|
|
991
991
|
depasseLeSeuil = computed(() => {
|
|
992
992
|
return Math.abs(this.maintenant() - this.dateEnMillisecondes()) > this.seuilAbsoluEnJours() * JOUR;
|
|
993
|
-
}, ...ngDevMode ? [{ debugName: "depasseLeSeuil" }] :
|
|
993
|
+
}, ...ngDevMode ? [{ debugName: "depasseLeSeuil" }] : /* istanbul ignore next */ []);
|
|
994
994
|
texte = computed(() => {
|
|
995
995
|
if (!this.estValide()) return "";
|
|
996
996
|
const cible = this.dateEnMillisecondes();
|
|
@@ -1003,14 +1003,14 @@ var StRelativeTime = class StRelativeTime {
|
|
|
1003
1003
|
if (Math.abs(cible - this.maintenant()) < 1e4) return this.libelles().aLInstant;
|
|
1004
1004
|
const style = this.avecAbsolu() ? "short" : "long";
|
|
1005
1005
|
return ecartRelatif(cible, this.maintenant(), this.locale(), style);
|
|
1006
|
-
}, ...ngDevMode ? [{ debugName: "texte" }] :
|
|
1006
|
+
}, ...ngDevMode ? [{ debugName: "texte" }] : /* istanbul ignore next */ []);
|
|
1007
1007
|
absoluVisible = computed(() => {
|
|
1008
1008
|
if (!this.avecAbsolu() || !this.estValide() || this.depasseLeSeuil()) return null;
|
|
1009
1009
|
return new Intl.DateTimeFormat(this.locale(), {
|
|
1010
1010
|
...ABSOLU_VISIBLE,
|
|
1011
1011
|
timeZone: this.fuseau
|
|
1012
1012
|
}).format(new Date(this.dateEnMillisecondes()));
|
|
1013
|
-
}, ...ngDevMode ? [{ debugName: "absoluVisible" }] :
|
|
1013
|
+
}, ...ngDevMode ? [{ debugName: "absoluVisible" }] : /* istanbul ignore next */ []);
|
|
1014
1014
|
texteAccessible = computed(() => {
|
|
1015
1015
|
if (!this.estValide() || this.avecAbsolu()) return null;
|
|
1016
1016
|
return new Intl.DateTimeFormat(this.locale(), {
|
|
@@ -1021,10 +1021,10 @@ var StRelativeTime = class StRelativeTime {
|
|
|
1021
1021
|
minute: "2-digit",
|
|
1022
1022
|
timeZone: this.fuseau
|
|
1023
1023
|
}).format(new Date(this.dateEnMillisecondes()));
|
|
1024
|
-
}, ...ngDevMode ? [{ debugName: "texteAccessible" }] :
|
|
1024
|
+
}, ...ngDevMode ? [{ debugName: "texteAccessible" }] : /* istanbul ignore next */ []);
|
|
1025
1025
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1026
1026
|
minVersion: "12.0.0",
|
|
1027
|
-
version: "22.2.
|
|
1027
|
+
version: "22.2.1",
|
|
1028
1028
|
ngImport: i0,
|
|
1029
1029
|
type: StRelativeTime,
|
|
1030
1030
|
deps: [],
|
|
@@ -1032,7 +1032,7 @@ var StRelativeTime = class StRelativeTime {
|
|
|
1032
1032
|
});
|
|
1033
1033
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1034
1034
|
minVersion: "17.0.0",
|
|
1035
|
-
version: "22.2.
|
|
1035
|
+
version: "22.2.1",
|
|
1036
1036
|
type: StRelativeTime,
|
|
1037
1037
|
isStandalone: true,
|
|
1038
1038
|
selector: "st-relative-time",
|
|
@@ -1085,7 +1085,7 @@ var StRelativeTime = class StRelativeTime {
|
|
|
1085
1085
|
};
|
|
1086
1086
|
i0.ɵɵngDeclareClassMetadata({
|
|
1087
1087
|
minVersion: "12.0.0",
|
|
1088
|
-
version: "22.2.
|
|
1088
|
+
version: "22.2.1",
|
|
1089
1089
|
ngImport: i0,
|
|
1090
1090
|
type: StRelativeTime,
|
|
1091
1091
|
decorators: [{
|
|
@@ -1152,21 +1152,21 @@ function seuilDAbreviation(valeur) {
|
|
|
1152
1152
|
}
|
|
1153
1153
|
var StCount = class StCount {
|
|
1154
1154
|
locale = inject(ST_LOCALE);
|
|
1155
|
-
valeur = input.required(...ngDevMode ? [{ debugName: "valeur" }] :
|
|
1156
|
-
ton = input("neutre", ...ngDevMode ? [{ debugName: "ton" }] :
|
|
1157
|
-
unite = input(null, ...ngDevMode ? [{ debugName: "unite" }] :
|
|
1155
|
+
valeur = input.required(...ngDevMode ? [{ debugName: "valeur" }] : /* istanbul ignore next */ []);
|
|
1156
|
+
ton = input("neutre", ...ngDevMode ? [{ debugName: "ton" }] : /* istanbul ignore next */ []);
|
|
1157
|
+
unite = input(null, ...ngDevMode ? [{ debugName: "unite" }] : /* istanbul ignore next */ []);
|
|
1158
1158
|
abregerAuDela = input(1e3, {
|
|
1159
|
-
...ngDevMode ? { debugName: "abregerAuDela" } :
|
|
1159
|
+
...ngDevMode ? { debugName: "abregerAuDela" } : /* istanbul ignore next */ {},
|
|
1160
1160
|
transform: seuilDAbreviation
|
|
1161
1161
|
});
|
|
1162
1162
|
absolu = computed(() => {
|
|
1163
1163
|
const valeur = this.valeur();
|
|
1164
1164
|
return typeof valeur === "bigint" ? valeur < 0n ? -valeur : valeur : Math.abs(valeur);
|
|
1165
|
-
}, ...ngDevMode ? [{ debugName: "absolu" }] :
|
|
1165
|
+
}, ...ngDevMode ? [{ debugName: "absolu" }] : /* istanbul ignore next */ []);
|
|
1166
1166
|
estAbrege = computed(() => {
|
|
1167
1167
|
const seuil = this.abregerAuDela();
|
|
1168
1168
|
return seuil !== null && this.absolu() >= seuil;
|
|
1169
|
-
}, ...ngDevMode ? [{ debugName: "estAbrege" }] :
|
|
1169
|
+
}, ...ngDevMode ? [{ debugName: "estAbrege" }] : /* istanbul ignore next */ []);
|
|
1170
1170
|
optionsDUnite = computed(() => {
|
|
1171
1171
|
const unite = this.unite();
|
|
1172
1172
|
return unite === null ? {} : {
|
|
@@ -1174,8 +1174,8 @@ var StCount = class StCount {
|
|
|
1174
1174
|
unit: unite,
|
|
1175
1175
|
unitDisplay: "short"
|
|
1176
1176
|
};
|
|
1177
|
-
}, ...ngDevMode ? [{ debugName: "optionsDUnite" }] :
|
|
1178
|
-
texteComplet = computed(() => new Intl.NumberFormat(this.locale(), this.optionsDUnite()).format(this.valeur()), ...ngDevMode ? [{ debugName: "texteComplet" }] :
|
|
1177
|
+
}, ...ngDevMode ? [{ debugName: "optionsDUnite" }] : /* istanbul ignore next */ []);
|
|
1178
|
+
texteComplet = computed(() => new Intl.NumberFormat(this.locale(), this.optionsDUnite()).format(this.valeur()), ...ngDevMode ? [{ debugName: "texteComplet" }] : /* istanbul ignore next */ []);
|
|
1179
1179
|
texte = computed(() => {
|
|
1180
1180
|
if (!this.estAbrege()) return this.texteComplet();
|
|
1181
1181
|
return new Intl.NumberFormat(this.locale(), {
|
|
@@ -1183,10 +1183,10 @@ var StCount = class StCount {
|
|
|
1183
1183
|
notation: "compact",
|
|
1184
1184
|
maximumFractionDigits: 1
|
|
1185
1185
|
}).format(this.valeur());
|
|
1186
|
-
}, ...ngDevMode ? [{ debugName: "texte" }] :
|
|
1186
|
+
}, ...ngDevMode ? [{ debugName: "texte" }] : /* istanbul ignore next */ []);
|
|
1187
1187
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1188
1188
|
minVersion: "12.0.0",
|
|
1189
|
-
version: "22.2.
|
|
1189
|
+
version: "22.2.1",
|
|
1190
1190
|
ngImport: i0,
|
|
1191
1191
|
type: StCount,
|
|
1192
1192
|
deps: [],
|
|
@@ -1194,7 +1194,7 @@ var StCount = class StCount {
|
|
|
1194
1194
|
});
|
|
1195
1195
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1196
1196
|
minVersion: "17.0.0",
|
|
1197
|
-
version: "22.2.
|
|
1197
|
+
version: "22.2.1",
|
|
1198
1198
|
type: StCount,
|
|
1199
1199
|
isStandalone: true,
|
|
1200
1200
|
selector: "st-count",
|
|
@@ -1240,7 +1240,7 @@ var StCount = class StCount {
|
|
|
1240
1240
|
};
|
|
1241
1241
|
i0.ɵɵngDeclareClassMetadata({
|
|
1242
1242
|
minVersion: "12.0.0",
|
|
1243
|
-
version: "22.2.
|
|
1243
|
+
version: "22.2.1",
|
|
1244
1244
|
ngImport: i0,
|
|
1245
1245
|
type: StCount,
|
|
1246
1246
|
decorators: [{
|
|
@@ -1295,31 +1295,31 @@ const SIGNE_MOINS = "−";
|
|
|
1295
1295
|
var StNumber = class StNumber {
|
|
1296
1296
|
locale = inject(ST_LOCALE);
|
|
1297
1297
|
libelles = inject(ST_LIBELLES);
|
|
1298
|
-
valeur = input.required(...ngDevMode ? [{ debugName: "valeur" }] :
|
|
1299
|
-
format = input("decimal", ...ngDevMode ? [{ debugName: "format" }] :
|
|
1298
|
+
valeur = input.required(...ngDevMode ? [{ debugName: "valeur" }] : /* istanbul ignore next */ []);
|
|
1299
|
+
format = input("decimal", ...ngDevMode ? [{ debugName: "format" }] : /* istanbul ignore next */ []);
|
|
1300
1300
|
decimales = input({
|
|
1301
1301
|
min: 0,
|
|
1302
1302
|
max: 2
|
|
1303
|
-
}, ...ngDevMode ? [{ debugName: "decimales" }] :
|
|
1304
|
-
unite = input(null, ...ngDevMode ? [{ debugName: "unite" }] :
|
|
1303
|
+
}, ...ngDevMode ? [{ debugName: "decimales" }] : /* istanbul ignore next */ []);
|
|
1304
|
+
unite = input(null, ...ngDevMode ? [{ debugName: "unite" }] : /* istanbul ignore next */ []);
|
|
1305
1305
|
signeExplicite = input(false, {
|
|
1306
|
-
...ngDevMode ? { debugName: "signeExplicite" } :
|
|
1306
|
+
...ngDevMode ? { debugName: "signeExplicite" } : /* istanbul ignore next */ {},
|
|
1307
1307
|
transform: booleanAttribute
|
|
1308
1308
|
});
|
|
1309
1309
|
variation = input(false, {
|
|
1310
|
-
...ngDevMode ? { debugName: "variation" } :
|
|
1310
|
+
...ngDevMode ? { debugName: "variation" } : /* istanbul ignore next */ {},
|
|
1311
1311
|
transform: booleanAttribute
|
|
1312
1312
|
});
|
|
1313
|
-
ton = input(null, ...ngDevMode ? [{ debugName: "ton" }] :
|
|
1313
|
+
ton = input(null, ...ngDevMode ? [{ debugName: "ton" }] : /* istanbul ignore next */ []);
|
|
1314
1314
|
lue = computed(() => {
|
|
1315
1315
|
const valeur = this.valeur();
|
|
1316
1316
|
return valeur === 0 ? 0 : valeur;
|
|
1317
|
-
}, ...ngDevMode ? [{ debugName: "lue" }] :
|
|
1317
|
+
}, ...ngDevMode ? [{ debugName: "lue" }] : /* istanbul ignore next */ []);
|
|
1318
1318
|
signe = computed(() => {
|
|
1319
1319
|
const valeur = this.lue();
|
|
1320
1320
|
if (valeur < 0) return "negatif";
|
|
1321
1321
|
return valeur > 0 ? "positif" : "nul";
|
|
1322
|
-
}, ...ngDevMode ? [{ debugName: "signe" }] :
|
|
1322
|
+
}, ...ngDevMode ? [{ debugName: "signe" }] : /* istanbul ignore next */ []);
|
|
1323
1323
|
options = computed(() => {
|
|
1324
1324
|
const decimales = this.decimales();
|
|
1325
1325
|
const min = borner(typeof decimales === "number" ? decimales : decimales.min);
|
|
@@ -1342,8 +1342,8 @@ var StNumber = class StNumber {
|
|
|
1342
1342
|
unitDisplay: "short"
|
|
1343
1343
|
};
|
|
1344
1344
|
return base;
|
|
1345
|
-
}, ...ngDevMode ? [{ debugName: "options" }] :
|
|
1346
|
-
texte = computed(() => this.formater(this.lue(), this.options()), ...ngDevMode ? [{ debugName: "texte" }] :
|
|
1345
|
+
}, ...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
|
|
1346
|
+
texte = computed(() => this.formater(this.lue(), this.options()), ...ngDevMode ? [{ debugName: "texte" }] : /* istanbul ignore next */ []);
|
|
1347
1347
|
texteLu = computed(() => {
|
|
1348
1348
|
const options = this.options();
|
|
1349
1349
|
const abrege = options.unitDisplay === "short";
|
|
@@ -1358,14 +1358,14 @@ var StNumber = class StNumber {
|
|
|
1358
1358
|
});
|
|
1359
1359
|
if (negatif) return this.libelles().montantNegatif(lu);
|
|
1360
1360
|
return lu === this.texte() ? null : lu;
|
|
1361
|
-
}, ...ngDevMode ? [{ debugName: "texteLu" }] :
|
|
1362
|
-
valeurMachine = computed(() => String(this.lue()), ...ngDevMode ? [{ debugName: "valeurMachine" }] :
|
|
1361
|
+
}, ...ngDevMode ? [{ debugName: "texteLu" }] : /* istanbul ignore next */ []);
|
|
1362
|
+
valeurMachine = computed(() => String(this.lue()), ...ngDevMode ? [{ debugName: "valeurMachine" }] : /* istanbul ignore next */ []);
|
|
1363
1363
|
formater(valeur, options) {
|
|
1364
1364
|
return new Intl.NumberFormat(this.locale(), options).formatToParts(valeur).map((partie) => partie.type === "minusSign" ? SIGNE_MOINS : partie.value).join("");
|
|
1365
1365
|
}
|
|
1366
1366
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1367
1367
|
minVersion: "12.0.0",
|
|
1368
|
-
version: "22.2.
|
|
1368
|
+
version: "22.2.1",
|
|
1369
1369
|
ngImport: i0,
|
|
1370
1370
|
type: StNumber,
|
|
1371
1371
|
deps: [],
|
|
@@ -1373,7 +1373,7 @@ var StNumber = class StNumber {
|
|
|
1373
1373
|
});
|
|
1374
1374
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1375
1375
|
minVersion: "17.0.0",
|
|
1376
|
-
version: "22.2.
|
|
1376
|
+
version: "22.2.1",
|
|
1377
1377
|
type: StNumber,
|
|
1378
1378
|
isStandalone: true,
|
|
1379
1379
|
selector: "st-number",
|
|
@@ -1439,13 +1439,13 @@ var StNumber = class StNumber {
|
|
|
1439
1439
|
},
|
|
1440
1440
|
ngImport: i0,
|
|
1441
1441
|
template: "@if (texteLu(); as lu) {\n <!-- « 250 ko » a l'ecran, « 250 kilooctets » a l'oral : l'abreviation ne se prononce pas. -->\n <data class=\"st-number__valeur\" [attr.value]=\"valeurMachine()\" aria-hidden=\"true\">{{\n texte()\n }}</data>\n <span class=\"st-vh\">{{ lu }}</span>\n} @else {\n <data class=\"st-number__valeur\" [attr.value]=\"valeurMachine()\">{{ texte() }}</data>\n}\n",
|
|
1442
|
-
styles: [".st-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host([hidden]){display:none!important}:host{font-variant-numeric:var(--st-chiffres-alignes);color:var(--st-couleur-texte);white-space:nowrap;unicode-bidi:isolate}:host([data-variation][data-signe=positif]:not([data-ton])){color:var(--st-couleur-positif)}:host([data-variation][data-signe=negatif]:not([data-ton])){color:var(--st-couleur-negatif)}:host([data-ton=discret]){color:var(--st-couleur-texte-discret)}:host([data-ton=primaire]){color:var(--st-couleur-texte-primaire)}:host([data-ton=succes]){color:var(--st-couleur-succes)}:host([data-ton=danger]){color:var(--st-couleur-danger)}\n"],
|
|
1442
|
+
styles: [".st-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host([hidden]){display:none!important}:host{font-variant-numeric:var(--st-chiffres-alignes);color:var(--st-couleur-texte);white-space:nowrap;unicode-bidi:isolate}:host([data-variation][data-signe=positif]:not([data-ton])){color:var(--st-couleur-positif)}:host([data-variation][data-signe=negatif]:not([data-ton])){color:var(--st-couleur-negatif)}:host([data-ton=discret]){color:var(--st-couleur-texte-discret)}:host([data-ton=primaire]){color:var(--st-couleur-texte-primaire)}:host([data-ton=succes]){color:var(--st-couleur-succes)}:host([data-ton=erreur]){color:var(--st-couleur-erreur)}:host([data-ton=danger]){color:var(--st-couleur-danger)}\n"],
|
|
1443
1443
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1444
1444
|
});
|
|
1445
1445
|
};
|
|
1446
1446
|
i0.ɵɵngDeclareClassMetadata({
|
|
1447
1447
|
minVersion: "12.0.0",
|
|
1448
|
-
version: "22.2.
|
|
1448
|
+
version: "22.2.1",
|
|
1449
1449
|
ngImport: i0,
|
|
1450
1450
|
type: StNumber,
|
|
1451
1451
|
decorators: [{
|
|
@@ -1461,7 +1461,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1461
1461
|
"[attr.data-variation]": "variation() ? \"\" : null"
|
|
1462
1462
|
},
|
|
1463
1463
|
template: "@if (texteLu(); as lu) {\n <!-- « 250 ko » a l'ecran, « 250 kilooctets » a l'oral : l'abreviation ne se prononce pas. -->\n <data class=\"st-number__valeur\" [attr.value]=\"valeurMachine()\" aria-hidden=\"true\">{{\n texte()\n }}</data>\n <span class=\"st-vh\">{{ lu }}</span>\n} @else {\n <data class=\"st-number__valeur\" [attr.value]=\"valeurMachine()\">{{ texte() }}</data>\n}\n",
|
|
1464
|
-
styles: [".st-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host([hidden]){display:none!important}:host{font-variant-numeric:var(--st-chiffres-alignes);color:var(--st-couleur-texte);white-space:nowrap;unicode-bidi:isolate}:host([data-variation][data-signe=positif]:not([data-ton])){color:var(--st-couleur-positif)}:host([data-variation][data-signe=negatif]:not([data-ton])){color:var(--st-couleur-negatif)}:host([data-ton=discret]){color:var(--st-couleur-texte-discret)}:host([data-ton=primaire]){color:var(--st-couleur-texte-primaire)}:host([data-ton=succes]){color:var(--st-couleur-succes)}:host([data-ton=danger]){color:var(--st-couleur-danger)}\n"]
|
|
1464
|
+
styles: [".st-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host([hidden]){display:none!important}:host{font-variant-numeric:var(--st-chiffres-alignes);color:var(--st-couleur-texte);white-space:nowrap;unicode-bidi:isolate}:host([data-variation][data-signe=positif]:not([data-ton])){color:var(--st-couleur-positif)}:host([data-variation][data-signe=negatif]:not([data-ton])){color:var(--st-couleur-negatif)}:host([data-ton=discret]){color:var(--st-couleur-texte-discret)}:host([data-ton=primaire]){color:var(--st-couleur-texte-primaire)}:host([data-ton=succes]){color:var(--st-couleur-succes)}:host([data-ton=erreur]){color:var(--st-couleur-erreur)}:host([data-ton=danger]){color:var(--st-couleur-danger)}\n"]
|
|
1465
1465
|
}]
|
|
1466
1466
|
}],
|
|
1467
1467
|
propDecorators: {
|
|
@@ -1565,13 +1565,13 @@ const PARTIES = [
|
|
|
1565
1565
|
];
|
|
1566
1566
|
var StDuration = class StDuration {
|
|
1567
1567
|
locale = inject(ST_LOCALE);
|
|
1568
|
-
secondes = input(null, ...ngDevMode ? [{ debugName: "secondes" }] :
|
|
1569
|
-
parties = input(null, ...ngDevMode ? [{ debugName: "parties" }] :
|
|
1570
|
-
format = input("court", ...ngDevMode ? [{ debugName: "format" }] :
|
|
1568
|
+
secondes = input(null, ...ngDevMode ? [{ debugName: "secondes" }] : /* istanbul ignore next */ []);
|
|
1569
|
+
parties = input(null, ...ngDevMode ? [{ debugName: "parties" }] : /* istanbul ignore next */ []);
|
|
1570
|
+
format = input("court", ...ngDevMode ? [{ debugName: "format" }] : /* istanbul ignore next */ []);
|
|
1571
1571
|
totalEnSecondes = computed(() => {
|
|
1572
1572
|
const secondes = this.secondes();
|
|
1573
1573
|
return secondes === null || !Number.isFinite(secondes) ? null : Math.max(0, Math.round(secondes));
|
|
1574
|
-
}, ...ngDevMode ? [{ debugName: "totalEnSecondes" }] :
|
|
1574
|
+
}, ...ngDevMode ? [{ debugName: "totalEnSecondes" }] : /* istanbul ignore next */ []);
|
|
1575
1575
|
partiesLues = computed(() => {
|
|
1576
1576
|
const total = this.totalEnSecondes();
|
|
1577
1577
|
if (total === null) return this.parties() ?? {};
|
|
@@ -1581,20 +1581,20 @@ var StDuration = class StDuration {
|
|
|
1581
1581
|
minutes: Math.floor(total % 3600 / 60),
|
|
1582
1582
|
secondes: total % 60
|
|
1583
1583
|
};
|
|
1584
|
-
}, ...ngDevMode ? [{ debugName: "partiesLues" }] :
|
|
1585
|
-
texte = computed(() => formater(this.partiesLues(), this.locale(), this.format() === "long" ? "long" : "short"), ...ngDevMode ? [{ debugName: "texte" }] :
|
|
1584
|
+
}, ...ngDevMode ? [{ debugName: "partiesLues" }] : /* istanbul ignore next */ []);
|
|
1585
|
+
texte = computed(() => formater(this.partiesLues(), this.locale(), this.format() === "long" ? "long" : "short"), ...ngDevMode ? [{ debugName: "texte" }] : /* istanbul ignore next */ []);
|
|
1586
1586
|
texteLu = computed(() => {
|
|
1587
1587
|
if (this.format() === "long") return null;
|
|
1588
1588
|
const long = formater(this.partiesLues(), this.locale(), "long");
|
|
1589
1589
|
return long === this.texte() ? null : long;
|
|
1590
|
-
}, ...ngDevMode ? [{ debugName: "texteLu" }] :
|
|
1590
|
+
}, ...ngDevMode ? [{ debugName: "texteLu" }] : /* istanbul ignore next */ []);
|
|
1591
1591
|
valeurMachine = computed(() => {
|
|
1592
1592
|
const total = this.totalEnSecondes();
|
|
1593
1593
|
return total === null ? null : `PT${String(total)}S`;
|
|
1594
|
-
}, ...ngDevMode ? [{ debugName: "valeurMachine" }] :
|
|
1594
|
+
}, ...ngDevMode ? [{ debugName: "valeurMachine" }] : /* istanbul ignore next */ []);
|
|
1595
1595
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1596
1596
|
minVersion: "12.0.0",
|
|
1597
|
-
version: "22.2.
|
|
1597
|
+
version: "22.2.1",
|
|
1598
1598
|
ngImport: i0,
|
|
1599
1599
|
type: StDuration,
|
|
1600
1600
|
deps: [],
|
|
@@ -1602,7 +1602,7 @@ var StDuration = class StDuration {
|
|
|
1602
1602
|
});
|
|
1603
1603
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1604
1604
|
minVersion: "17.0.0",
|
|
1605
|
-
version: "22.2.
|
|
1605
|
+
version: "22.2.1",
|
|
1606
1606
|
type: StDuration,
|
|
1607
1607
|
isStandalone: true,
|
|
1608
1608
|
selector: "st-duration",
|
|
@@ -1641,7 +1641,7 @@ var StDuration = class StDuration {
|
|
|
1641
1641
|
};
|
|
1642
1642
|
i0.ɵɵngDeclareClassMetadata({
|
|
1643
1643
|
minVersion: "12.0.0",
|
|
1644
|
-
version: "22.2.
|
|
1644
|
+
version: "22.2.1",
|
|
1645
1645
|
ngImport: i0,
|
|
1646
1646
|
type: StDuration,
|
|
1647
1647
|
decorators: [{
|
|
@@ -1717,10 +1717,10 @@ const ICONE_DE_TENDANCE = {
|
|
|
1717
1717
|
var StStat = class StStat {
|
|
1718
1718
|
libelles = inject(ST_LIBELLES);
|
|
1719
1719
|
element = inject(ElementRef).nativeElement;
|
|
1720
|
-
libelle = input.required(...ngDevMode ? [{ debugName: "libelle" }] :
|
|
1721
|
-
icone = input(null, ...ngDevMode ? [{ debugName: "icone" }] :
|
|
1722
|
-
tendance = input(null, ...ngDevMode ? [{ debugName: "tendance" }] :
|
|
1723
|
-
precision = input(null, ...ngDevMode ? [{ debugName: "precision" }] :
|
|
1720
|
+
libelle = input.required(...ngDevMode ? [{ debugName: "libelle" }] : /* istanbul ignore next */ []);
|
|
1721
|
+
icone = input(null, ...ngDevMode ? [{ debugName: "icone" }] : /* istanbul ignore next */ []);
|
|
1722
|
+
tendance = input(null, ...ngDevMode ? [{ debugName: "tendance" }] : /* istanbul ignore next */ []);
|
|
1723
|
+
precision = input(null, ...ngDevMode ? [{ debugName: "precision" }] : /* istanbul ignore next */ []);
|
|
1724
1724
|
identifiantDuLibelle = inject(StIdentifiants).prochain("st-stat-libelle");
|
|
1725
1725
|
role = partagerLaValeur(this.element, "role", () => this.role.deLAppelant() === null ? "group" : null);
|
|
1726
1726
|
nommePar = partagerLaValeur(this.element, "aria-labelledby", () => this.nommePar.deLAppelant() === null ? this.identifiantDuLibelle : null);
|
|
@@ -1733,12 +1733,12 @@ var StStat = class StStat {
|
|
|
1733
1733
|
const tendance = this.tendance();
|
|
1734
1734
|
if (tendance === null) return null;
|
|
1735
1735
|
return tendance.icone ?? (tendance.sens === void 0 ? null : ICONE_DE_TENDANCE[tendance.sens]);
|
|
1736
|
-
}, ...ngDevMode ? [{ debugName: "iconeDeTendance" }] :
|
|
1736
|
+
}, ...ngDevMode ? [{ debugName: "iconeDeTendance" }] : /* istanbul ignore next */ []);
|
|
1737
1737
|
tailleDeLIcone = computed(() => {
|
|
1738
1738
|
const tendance = this.tendance();
|
|
1739
1739
|
return tendance?.icone === void 0 && (tendance?.sens === "hausse" || tendance?.sens === "baisse") ? "16" : "14";
|
|
1740
|
-
}, ...ngDevMode ? [{ debugName: "tailleDeLIcone" }] :
|
|
1741
|
-
tonDeTendance = computed(() => this.tendance()?.ton ?? "neutre", ...ngDevMode ? [{ debugName: "tonDeTendance" }] :
|
|
1740
|
+
}, ...ngDevMode ? [{ debugName: "tailleDeLIcone" }] : /* istanbul ignore next */ []);
|
|
1741
|
+
tonDeTendance = computed(() => this.tendance()?.ton ?? "neutre", ...ngDevMode ? [{ debugName: "tonDeTendance" }] : /* istanbul ignore next */ []);
|
|
1742
1742
|
sensLu = computed(() => {
|
|
1743
1743
|
const sens = this.tendance()?.sens;
|
|
1744
1744
|
if (sens === void 0) return null;
|
|
@@ -1746,10 +1746,10 @@ var StStat = class StStat {
|
|
|
1746
1746
|
if (sens === "hausse") return libelles.tendanceEnHausse;
|
|
1747
1747
|
if (sens === "baisse") return libelles.tendanceEnBaisse;
|
|
1748
1748
|
return libelles.tendanceStable;
|
|
1749
|
-
}, ...ngDevMode ? [{ debugName: "sensLu" }] :
|
|
1749
|
+
}, ...ngDevMode ? [{ debugName: "sensLu" }] : /* istanbul ignore next */ []);
|
|
1750
1750
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1751
1751
|
minVersion: "12.0.0",
|
|
1752
|
-
version: "22.2.
|
|
1752
|
+
version: "22.2.1",
|
|
1753
1753
|
ngImport: i0,
|
|
1754
1754
|
type: StStat,
|
|
1755
1755
|
deps: [],
|
|
@@ -1757,7 +1757,7 @@ var StStat = class StStat {
|
|
|
1757
1757
|
});
|
|
1758
1758
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1759
1759
|
minVersion: "17.0.0",
|
|
1760
|
-
version: "22.2.
|
|
1760
|
+
version: "22.2.1",
|
|
1761
1761
|
type: StStat,
|
|
1762
1762
|
isStandalone: true,
|
|
1763
1763
|
selector: "st-stat",
|
|
@@ -1794,7 +1794,7 @@ var StStat = class StStat {
|
|
|
1794
1794
|
host: { classAttribute: "st-stat" },
|
|
1795
1795
|
ngImport: i0,
|
|
1796
1796
|
template: "<div class=\"st-stat__entete\">\n <span class=\"st-stat__libelle\" [id]=\"identifiantDuLibelle\">{{ libelle() }}</span>\n <ng-content select=\"[aide]\" />\n @if (icone(); as nom) {\n <st-icon class=\"st-stat__icone\" [icone]=\"nom\" taille=\"18\" />\n }\n</div>\n<div class=\"st-stat__valeur\"><ng-content /></div>\n@if (tendance() !== null || precision() !== null) {\n <div class=\"st-stat__pied\">\n @if (tendance(); as tendance) {\n <div class=\"st-stat__tendance\">\n <span\n class=\"st-stat__pastille\"\n [attr.data-ton]=\"tonDeTendance()\"\n [attr.data-icone]=\"tailleDeLIcone()\"\n >\n @if (iconeDeTendance(); as icone) {\n <st-icon [icone]=\"icone\" [taille]=\"tailleDeLIcone()\" />\n }\n @if (sensLu(); as sens) {\n <span class=\"st-vh\">{{ sens }}, </span>\n }\n @if (tendance.montant; as montant) {\n <st-money [valeur]=\"montant\" signeExplicite />\n } @else {\n <!-- `dir=\"auto\"` : le texte de l'appelant garde son sens (« +2,4 % »), en ecriture\n inverse aussi, comme la part de st-repartition (audit UI du 2026-09-27, D-2). -->\n <span dir=\"auto\">{{ tendance.texte }}</span>\n }\n </span>\n @if (tendance.contexte; as contexte) {\n <span class=\"st-stat__contexte\">{{ contexte }}</span>\n }\n </div>\n }\n @if (precision(); as texte) {\n <div class=\"st-stat__precision\">{{ texte }}</div>\n }\n </div>\n}\n",
|
|
1797
|
-
styles: [".st-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host([hidden]){display:none!important}:host{display:flex;flex-direction:column;block-size:100%;min-inline-size:0}.st-stat__entete{display:flex;gap:var(--st-espacement-2);align-items:center;justify-content:space-between}.st-stat__libelle{font-size:var(--st-taille-2xs);line-height:var(--st-interligne-2xs);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-interlettrage-capitales);text-transform:uppercase;color:var(--st-couleur-texte-discret)}.st-stat__icone{color:var(--st-couleur-texte-attenue)}.st-stat__valeur{margin-block-start:var(--st-espacement-2);font-size:var(--st-taille-3xl);line-height:var(--st-interligne-3xl);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-3xl);font-variant-numeric:var(--st-chiffres-alignes);letter-spacing:var(--st-approche-4xl);color:var(--st-couleur-texte);overflow-wrap:anywhere}.st-stat__pied{display:flex;flex-direction:column;gap:var(--st-espacement-1-5);margin-block-start:auto;padding-block-start:var(--st-espacement-6)}.st-stat__tendance{display:flex;flex-wrap:wrap;gap:var(--st-espacement-2);align-items:center}.st-stat__pastille{display:inline-flex;gap:var(--st-espacement-1);align-items:center;padding:var(--st-espacement-demi) var(--st-espacement-2);font-size:var(--st-taille-xs);font-weight:var(--st-graisse-semi);line-height:var(--st-interligne-xs);letter-spacing:var(--st-interlettrage-capitales);white-space:nowrap;border-radius:var(--st-rayon-pleine);outline:var(--st-epaisseur-fine) solid transparent}.st-stat__pastille[data-icone=\"16\"]{gap:var(--st-espacement-demi)}.st-stat__pastille[data-ton=neutre]{color:var(--st-couleur-texte-discret);background:var(--st-couleur-surface-enfoncee)}.st-stat__pastille[data-ton=primaire]{color:var(--st-couleur-texte-primaire);background:var(--st-couleur-surface-conteneur-bas)}.st-stat__pastille[data-ton=information]{color:var(--st-couleur-sur-information-discret);background:var(--st-couleur-information-discret)}.st-stat__pastille[data-ton=succes]{color:var(--st-couleur-succes);background:var(--st-couleur-succes-discret)}.st-stat__pastille[data-ton=avertissement]{color:var(--st-couleur-sur-avertissement-discret);background:var(--st-couleur-avertissement-discret)}.st-stat__pastille[data-ton=danger]{color:var(--st-couleur-sur-danger-discret);background:var(--st-couleur-danger-discret)}.st-stat__pastille[data-ton=danger] st-icon{color:var(--st-couleur-danger)}.st-stat__contexte{font-size:var(--st-taille-sm);line-height:var(--st-interligne-sm);color:var(--st-couleur-texte-discret)}.st-stat__precision{font-size:var(--st-taille-xs);font-weight:var(--st-graisse-semi);line-height:var(--st-interligne-xs);letter-spacing:var(--st-interlettrage-capitales);color:var(--st-couleur-texte-attenue)}\n"],
|
|
1797
|
+
styles: [".st-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host([hidden]){display:none!important}:host{display:flex;flex-direction:column;block-size:100%;min-inline-size:0}.st-stat__entete{display:flex;gap:var(--st-espacement-2);align-items:center;justify-content:space-between}.st-stat__libelle{font-size:var(--st-taille-2xs);line-height:var(--st-interligne-2xs);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-interlettrage-capitales);text-transform:uppercase;color:var(--st-couleur-texte-discret)}.st-stat__icone{color:var(--st-couleur-texte-attenue)}.st-stat__valeur{margin-block-start:var(--st-espacement-2);font-size:var(--st-taille-3xl);line-height:var(--st-interligne-3xl);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-3xl);font-variant-numeric:var(--st-chiffres-alignes);letter-spacing:var(--st-approche-4xl);color:var(--st-couleur-texte);overflow-wrap:anywhere}.st-stat__pied{display:flex;flex-direction:column;gap:var(--st-espacement-1-5);margin-block-start:auto;padding-block-start:var(--st-espacement-6)}.st-stat__tendance{display:flex;flex-wrap:wrap;gap:var(--st-espacement-2);align-items:center}.st-stat__pastille{display:inline-flex;gap:var(--st-espacement-1);align-items:center;padding:var(--st-espacement-demi) var(--st-espacement-2);font-size:var(--st-taille-xs);font-weight:var(--st-graisse-semi);line-height:var(--st-interligne-xs);letter-spacing:var(--st-interlettrage-capitales);white-space:nowrap;border-radius:var(--st-rayon-pleine);outline:var(--st-epaisseur-fine) solid transparent}.st-stat__pastille[data-icone=\"16\"]{gap:var(--st-espacement-demi)}.st-stat__pastille[data-ton=neutre]{color:var(--st-couleur-texte-discret);background:var(--st-couleur-surface-enfoncee)}.st-stat__pastille[data-ton=primaire]{color:var(--st-couleur-texte-primaire);background:var(--st-couleur-surface-conteneur-bas)}.st-stat__pastille[data-ton=information]{color:var(--st-couleur-sur-information-discret);background:var(--st-couleur-information-discret)}.st-stat__pastille[data-ton=succes]{color:var(--st-couleur-succes);background:var(--st-couleur-succes-discret)}.st-stat__pastille[data-ton=avertissement]{color:var(--st-couleur-sur-avertissement-discret);background:var(--st-couleur-avertissement-discret)}.st-stat__pastille[data-ton=erreur]{color:var(--st-couleur-sur-erreur-discret);background:var(--st-couleur-erreur-discret)}.st-stat__pastille[data-ton=erreur] st-icon{color:var(--st-couleur-erreur)}.st-stat__pastille[data-ton=danger]{color:var(--st-couleur-sur-danger-discret);background:var(--st-couleur-danger-discret)}.st-stat__pastille[data-ton=danger] st-icon{color:var(--st-couleur-danger)}.st-stat__contexte{font-size:var(--st-taille-sm);line-height:var(--st-interligne-sm);color:var(--st-couleur-texte-discret)}.st-stat__precision{font-size:var(--st-taille-xs);font-weight:var(--st-graisse-semi);line-height:var(--st-interligne-xs);letter-spacing:var(--st-interlettrage-capitales);color:var(--st-couleur-texte-attenue)}\n"],
|
|
1798
1798
|
dependencies: [{
|
|
1799
1799
|
kind: "component",
|
|
1800
1800
|
type: StIcon,
|
|
@@ -1831,7 +1831,7 @@ var StStat = class StStat {
|
|
|
1831
1831
|
};
|
|
1832
1832
|
i0.ɵɵngDeclareClassMetadata({
|
|
1833
1833
|
minVersion: "12.0.0",
|
|
1834
|
-
version: "22.2.
|
|
1834
|
+
version: "22.2.1",
|
|
1835
1835
|
ngImport: i0,
|
|
1836
1836
|
type: StStat,
|
|
1837
1837
|
decorators: [{
|
|
@@ -1842,7 +1842,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1842
1842
|
imports: [StIcon, StMoney],
|
|
1843
1843
|
host: { class: "st-stat" },
|
|
1844
1844
|
template: "<div class=\"st-stat__entete\">\n <span class=\"st-stat__libelle\" [id]=\"identifiantDuLibelle\">{{ libelle() }}</span>\n <ng-content select=\"[aide]\" />\n @if (icone(); as nom) {\n <st-icon class=\"st-stat__icone\" [icone]=\"nom\" taille=\"18\" />\n }\n</div>\n<div class=\"st-stat__valeur\"><ng-content /></div>\n@if (tendance() !== null || precision() !== null) {\n <div class=\"st-stat__pied\">\n @if (tendance(); as tendance) {\n <div class=\"st-stat__tendance\">\n <span\n class=\"st-stat__pastille\"\n [attr.data-ton]=\"tonDeTendance()\"\n [attr.data-icone]=\"tailleDeLIcone()\"\n >\n @if (iconeDeTendance(); as icone) {\n <st-icon [icone]=\"icone\" [taille]=\"tailleDeLIcone()\" />\n }\n @if (sensLu(); as sens) {\n <span class=\"st-vh\">{{ sens }}, </span>\n }\n @if (tendance.montant; as montant) {\n <st-money [valeur]=\"montant\" signeExplicite />\n } @else {\n <!-- `dir=\"auto\"` : le texte de l'appelant garde son sens (« +2,4 % »), en ecriture\n inverse aussi, comme la part de st-repartition (audit UI du 2026-09-27, D-2). -->\n <span dir=\"auto\">{{ tendance.texte }}</span>\n }\n </span>\n @if (tendance.contexte; as contexte) {\n <span class=\"st-stat__contexte\">{{ contexte }}</span>\n }\n </div>\n }\n @if (precision(); as texte) {\n <div class=\"st-stat__precision\">{{ texte }}</div>\n }\n </div>\n}\n",
|
|
1845
|
-
styles: [".st-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host([hidden]){display:none!important}:host{display:flex;flex-direction:column;block-size:100%;min-inline-size:0}.st-stat__entete{display:flex;gap:var(--st-espacement-2);align-items:center;justify-content:space-between}.st-stat__libelle{font-size:var(--st-taille-2xs);line-height:var(--st-interligne-2xs);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-interlettrage-capitales);text-transform:uppercase;color:var(--st-couleur-texte-discret)}.st-stat__icone{color:var(--st-couleur-texte-attenue)}.st-stat__valeur{margin-block-start:var(--st-espacement-2);font-size:var(--st-taille-3xl);line-height:var(--st-interligne-3xl);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-3xl);font-variant-numeric:var(--st-chiffres-alignes);letter-spacing:var(--st-approche-4xl);color:var(--st-couleur-texte);overflow-wrap:anywhere}.st-stat__pied{display:flex;flex-direction:column;gap:var(--st-espacement-1-5);margin-block-start:auto;padding-block-start:var(--st-espacement-6)}.st-stat__tendance{display:flex;flex-wrap:wrap;gap:var(--st-espacement-2);align-items:center}.st-stat__pastille{display:inline-flex;gap:var(--st-espacement-1);align-items:center;padding:var(--st-espacement-demi) var(--st-espacement-2);font-size:var(--st-taille-xs);font-weight:var(--st-graisse-semi);line-height:var(--st-interligne-xs);letter-spacing:var(--st-interlettrage-capitales);white-space:nowrap;border-radius:var(--st-rayon-pleine);outline:var(--st-epaisseur-fine) solid transparent}.st-stat__pastille[data-icone=\"16\"]{gap:var(--st-espacement-demi)}.st-stat__pastille[data-ton=neutre]{color:var(--st-couleur-texte-discret);background:var(--st-couleur-surface-enfoncee)}.st-stat__pastille[data-ton=primaire]{color:var(--st-couleur-texte-primaire);background:var(--st-couleur-surface-conteneur-bas)}.st-stat__pastille[data-ton=information]{color:var(--st-couleur-sur-information-discret);background:var(--st-couleur-information-discret)}.st-stat__pastille[data-ton=succes]{color:var(--st-couleur-succes);background:var(--st-couleur-succes-discret)}.st-stat__pastille[data-ton=avertissement]{color:var(--st-couleur-sur-avertissement-discret);background:var(--st-couleur-avertissement-discret)}.st-stat__pastille[data-ton=danger]{color:var(--st-couleur-sur-danger-discret);background:var(--st-couleur-danger-discret)}.st-stat__pastille[data-ton=danger] st-icon{color:var(--st-couleur-danger)}.st-stat__contexte{font-size:var(--st-taille-sm);line-height:var(--st-interligne-sm);color:var(--st-couleur-texte-discret)}.st-stat__precision{font-size:var(--st-taille-xs);font-weight:var(--st-graisse-semi);line-height:var(--st-interligne-xs);letter-spacing:var(--st-interlettrage-capitales);color:var(--st-couleur-texte-attenue)}\n"]
|
|
1845
|
+
styles: [".st-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host([hidden]){display:none!important}:host{display:flex;flex-direction:column;block-size:100%;min-inline-size:0}.st-stat__entete{display:flex;gap:var(--st-espacement-2);align-items:center;justify-content:space-between}.st-stat__libelle{font-size:var(--st-taille-2xs);line-height:var(--st-interligne-2xs);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-interlettrage-capitales);text-transform:uppercase;color:var(--st-couleur-texte-discret)}.st-stat__icone{color:var(--st-couleur-texte-attenue)}.st-stat__valeur{margin-block-start:var(--st-espacement-2);font-size:var(--st-taille-3xl);line-height:var(--st-interligne-3xl);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-3xl);font-variant-numeric:var(--st-chiffres-alignes);letter-spacing:var(--st-approche-4xl);color:var(--st-couleur-texte);overflow-wrap:anywhere}.st-stat__pied{display:flex;flex-direction:column;gap:var(--st-espacement-1-5);margin-block-start:auto;padding-block-start:var(--st-espacement-6)}.st-stat__tendance{display:flex;flex-wrap:wrap;gap:var(--st-espacement-2);align-items:center}.st-stat__pastille{display:inline-flex;gap:var(--st-espacement-1);align-items:center;padding:var(--st-espacement-demi) var(--st-espacement-2);font-size:var(--st-taille-xs);font-weight:var(--st-graisse-semi);line-height:var(--st-interligne-xs);letter-spacing:var(--st-interlettrage-capitales);white-space:nowrap;border-radius:var(--st-rayon-pleine);outline:var(--st-epaisseur-fine) solid transparent}.st-stat__pastille[data-icone=\"16\"]{gap:var(--st-espacement-demi)}.st-stat__pastille[data-ton=neutre]{color:var(--st-couleur-texte-discret);background:var(--st-couleur-surface-enfoncee)}.st-stat__pastille[data-ton=primaire]{color:var(--st-couleur-texte-primaire);background:var(--st-couleur-surface-conteneur-bas)}.st-stat__pastille[data-ton=information]{color:var(--st-couleur-sur-information-discret);background:var(--st-couleur-information-discret)}.st-stat__pastille[data-ton=succes]{color:var(--st-couleur-succes);background:var(--st-couleur-succes-discret)}.st-stat__pastille[data-ton=avertissement]{color:var(--st-couleur-sur-avertissement-discret);background:var(--st-couleur-avertissement-discret)}.st-stat__pastille[data-ton=erreur]{color:var(--st-couleur-sur-erreur-discret);background:var(--st-couleur-erreur-discret)}.st-stat__pastille[data-ton=erreur] st-icon{color:var(--st-couleur-erreur)}.st-stat__pastille[data-ton=danger]{color:var(--st-couleur-sur-danger-discret);background:var(--st-couleur-danger-discret)}.st-stat__pastille[data-ton=danger] st-icon{color:var(--st-couleur-danger)}.st-stat__contexte{font-size:var(--st-taille-sm);line-height:var(--st-interligne-sm);color:var(--st-couleur-texte-discret)}.st-stat__precision{font-size:var(--st-taille-xs);font-weight:var(--st-graisse-semi);line-height:var(--st-interligne-xs);letter-spacing:var(--st-interlettrage-capitales);color:var(--st-couleur-texte-attenue)}\n"]
|
|
1846
1846
|
}]
|
|
1847
1847
|
}],
|
|
1848
1848
|
ctorParameters: () => [],
|
|
@@ -1882,14 +1882,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1882
1882
|
}
|
|
1883
1883
|
});
|
|
1884
1884
|
var StAmountSummary = class StAmountSummary {
|
|
1885
|
-
legende = input.required(...ngDevMode ? [{ debugName: "legende" }] :
|
|
1885
|
+
legende = input.required(...ngDevMode ? [{ debugName: "legende" }] : /* istanbul ignore next */ []);
|
|
1886
1886
|
legendeMasquee = input(false, {
|
|
1887
|
-
...ngDevMode ? { debugName: "legendeMasquee" } :
|
|
1887
|
+
...ngDevMode ? { debugName: "legendeMasquee" } : /* istanbul ignore next */ {},
|
|
1888
1888
|
transform: booleanAttribute
|
|
1889
1889
|
});
|
|
1890
|
-
lignes = input.required(...ngDevMode ? [{ debugName: "lignes" }] :
|
|
1890
|
+
lignes = input.required(...ngDevMode ? [{ debugName: "lignes" }] : /* istanbul ignore next */ []);
|
|
1891
1891
|
sansDevise = input(false, {
|
|
1892
|
-
...ngDevMode ? { debugName: "sansDevise" } :
|
|
1892
|
+
...ngDevMode ? { debugName: "sansDevise" } : /* istanbul ignore next */ {},
|
|
1893
1893
|
transform: booleanAttribute
|
|
1894
1894
|
});
|
|
1895
1895
|
lignesLues = computed(() => this.lignes().map((ligne) => {
|
|
@@ -1906,12 +1906,12 @@ var StAmountSummary = class StAmountSummary {
|
|
|
1906
1906
|
montantLu: retranche,
|
|
1907
1907
|
ton
|
|
1908
1908
|
};
|
|
1909
|
-
}), ...ngDevMode ? [{ debugName: "lignesLues" }] :
|
|
1910
|
-
corps = computed(() => this.lignesLues().filter((ligne) => ligne.type !== "total" && ligne.type !== "solde"), ...ngDevMode ? [{ debugName: "corps" }] :
|
|
1911
|
-
pied = computed(() => this.lignesLues().filter((ligne) => ligne.type === "total" || ligne.type === "solde"), ...ngDevMode ? [{ debugName: "pied" }] :
|
|
1909
|
+
}), ...ngDevMode ? [{ debugName: "lignesLues" }] : /* istanbul ignore next */ []);
|
|
1910
|
+
corps = computed(() => this.lignesLues().filter((ligne) => ligne.type !== "total" && ligne.type !== "solde"), ...ngDevMode ? [{ debugName: "corps" }] : /* istanbul ignore next */ []);
|
|
1911
|
+
pied = computed(() => this.lignesLues().filter((ligne) => ligne.type === "total" || ligne.type === "solde"), ...ngDevMode ? [{ debugName: "pied" }] : /* istanbul ignore next */ []);
|
|
1912
1912
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1913
1913
|
minVersion: "12.0.0",
|
|
1914
|
-
version: "22.2.
|
|
1914
|
+
version: "22.2.1",
|
|
1915
1915
|
ngImport: i0,
|
|
1916
1916
|
type: StAmountSummary,
|
|
1917
1917
|
deps: [],
|
|
@@ -1919,7 +1919,7 @@ var StAmountSummary = class StAmountSummary {
|
|
|
1919
1919
|
});
|
|
1920
1920
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1921
1921
|
minVersion: "17.0.0",
|
|
1922
|
-
version: "22.2.
|
|
1922
|
+
version: "22.2.1",
|
|
1923
1923
|
type: StAmountSummary,
|
|
1924
1924
|
isStandalone: true,
|
|
1925
1925
|
selector: "st-amount-summary",
|
|
@@ -1987,7 +1987,7 @@ var StAmountSummary = class StAmountSummary {
|
|
|
1987
1987
|
};
|
|
1988
1988
|
i0.ɵɵngDeclareClassMetadata({
|
|
1989
1989
|
minVersion: "12.0.0",
|
|
1990
|
-
version: "22.2.
|
|
1990
|
+
version: "22.2.1",
|
|
1991
1991
|
ngImport: i0,
|
|
1992
1992
|
type: StAmountSummary,
|
|
1993
1993
|
decorators: [{
|
|
@@ -2037,10 +2037,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2037
2037
|
}
|
|
2038
2038
|
});
|
|
2039
2039
|
var StKbd = class StKbd {
|
|
2040
|
-
touches = input.required(...ngDevMode ? [{ debugName: "touches" }] :
|
|
2040
|
+
touches = input.required(...ngDevMode ? [{ debugName: "touches" }] : /* istanbul ignore next */ []);
|
|
2041
2041
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2042
2042
|
minVersion: "12.0.0",
|
|
2043
|
-
version: "22.2.
|
|
2043
|
+
version: "22.2.1",
|
|
2044
2044
|
ngImport: i0,
|
|
2045
2045
|
type: StKbd,
|
|
2046
2046
|
deps: [],
|
|
@@ -2048,7 +2048,7 @@ var StKbd = class StKbd {
|
|
|
2048
2048
|
});
|
|
2049
2049
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2050
2050
|
minVersion: "17.0.0",
|
|
2051
|
-
version: "22.2.
|
|
2051
|
+
version: "22.2.1",
|
|
2052
2052
|
type: StKbd,
|
|
2053
2053
|
isStandalone: true,
|
|
2054
2054
|
selector: "st-kbd",
|
|
@@ -2068,7 +2068,7 @@ var StKbd = class StKbd {
|
|
|
2068
2068
|
};
|
|
2069
2069
|
i0.ɵɵngDeclareClassMetadata({
|
|
2070
2070
|
minVersion: "12.0.0",
|
|
2071
|
-
version: "22.2.
|
|
2071
|
+
version: "22.2.1",
|
|
2072
2072
|
ngImport: i0,
|
|
2073
2073
|
type: StKbd,
|
|
2074
2074
|
decorators: [{
|
|
@@ -2150,21 +2150,21 @@ var StMeter = class StMeter {
|
|
|
2150
2150
|
identifiants = inject(StIdentifiants);
|
|
2151
2151
|
idDuLibelle = this.identifiants.prochain("st-jauge");
|
|
2152
2152
|
idDeLaValeur = this.identifiants.prochain("st-jauge-valeur");
|
|
2153
|
-
libelle = input.required(...ngDevMode ? [{ debugName: "libelle" }] :
|
|
2154
|
-
valeur = input.required(...ngDevMode ? [{ debugName: "valeur" }] :
|
|
2155
|
-
max = input.required(...ngDevMode ? [{ debugName: "max" }] :
|
|
2156
|
-
min = input(0, ...ngDevMode ? [{ debugName: "min" }] :
|
|
2157
|
-
bas = input(null, ...ngDevMode ? [{ debugName: "bas" }] :
|
|
2158
|
-
haut = input(null, ...ngDevMode ? [{ debugName: "haut" }] :
|
|
2159
|
-
optimum = input(null, ...ngDevMode ? [{ debugName: "optimum" }] :
|
|
2160
|
-
seuil = input(null, ...ngDevMode ? [{ debugName: "seuil" }] :
|
|
2161
|
-
devise = input(null, ...ngDevMode ? [{ debugName: "devise" }] :
|
|
2162
|
-
affichage = input("consomme", ...ngDevMode ? [{ debugName: "affichage" }] :
|
|
2163
|
-
precision = input(null, ...ngDevMode ? [{ debugName: "precision" }] :
|
|
2164
|
-
variante = input("barre", ...ngDevMode ? [{ debugName: "variante" }] :
|
|
2165
|
-
ton = input(null, ...ngDevMode ? [{ debugName: "ton" }] :
|
|
2153
|
+
libelle = input.required(...ngDevMode ? [{ debugName: "libelle" }] : /* istanbul ignore next */ []);
|
|
2154
|
+
valeur = input.required(...ngDevMode ? [{ debugName: "valeur" }] : /* istanbul ignore next */ []);
|
|
2155
|
+
max = input.required(...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
|
|
2156
|
+
min = input(0, ...ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []);
|
|
2157
|
+
bas = input(null, ...ngDevMode ? [{ debugName: "bas" }] : /* istanbul ignore next */ []);
|
|
2158
|
+
haut = input(null, ...ngDevMode ? [{ debugName: "haut" }] : /* istanbul ignore next */ []);
|
|
2159
|
+
optimum = input(null, ...ngDevMode ? [{ debugName: "optimum" }] : /* istanbul ignore next */ []);
|
|
2160
|
+
seuil = input(null, ...ngDevMode ? [{ debugName: "seuil" }] : /* istanbul ignore next */ []);
|
|
2161
|
+
devise = input(null, ...ngDevMode ? [{ debugName: "devise" }] : /* istanbul ignore next */ []);
|
|
2162
|
+
affichage = input("consomme", ...ngDevMode ? [{ debugName: "affichage" }] : /* istanbul ignore next */ []);
|
|
2163
|
+
precision = input(null, ...ngDevMode ? [{ debugName: "precision" }] : /* istanbul ignore next */ []);
|
|
2164
|
+
variante = input("barre", ...ngDevMode ? [{ debugName: "variante" }] : /* istanbul ignore next */ []);
|
|
2165
|
+
ton = input(null, ...ngDevMode ? [{ debugName: "ton" }] : /* istanbul ignore next */ []);
|
|
2166
2166
|
partVisible = input(false, {
|
|
2167
|
-
...ngDevMode ? { debugName: "partVisible" } :
|
|
2167
|
+
...ngDevMode ? { debugName: "partVisible" } : /* istanbul ignore next */ {},
|
|
2168
2168
|
transform: booleanAttribute
|
|
2169
2169
|
});
|
|
2170
2170
|
nombres = computed(() => {
|
|
@@ -2176,34 +2176,34 @@ var StMeter = class StMeter {
|
|
|
2176
2176
|
max,
|
|
2177
2177
|
valeur: Math.min(Math.max(valeur, min), max)
|
|
2178
2178
|
};
|
|
2179
|
-
}, ...ngDevMode ? [{ debugName: "nombres" }] :
|
|
2179
|
+
}, ...ngDevMode ? [{ debugName: "nombres" }] : /* istanbul ignore next */ []);
|
|
2180
2180
|
part = computed(() => {
|
|
2181
2181
|
const { min, max, valeur } = this.nombres();
|
|
2182
2182
|
return max > min ? (valeur - min) / (max - min) : 0;
|
|
2183
|
-
}, ...ngDevMode ? [{ debugName: "part" }] :
|
|
2183
|
+
}, ...ngDevMode ? [{ debugName: "part" }] : /* istanbul ignore next */ []);
|
|
2184
2184
|
zones = computed(() => {
|
|
2185
2185
|
const { min, max } = this.nombres();
|
|
2186
2186
|
return zonesDeJauge(min, max, enNombre(this.bas()), enNombre(this.haut()), enNombre(this.optimum()));
|
|
2187
|
-
}, ...ngDevMode ? [{ debugName: "zones" }] :
|
|
2187
|
+
}, ...ngDevMode ? [{ debugName: "zones" }] : /* istanbul ignore next */ []);
|
|
2188
2188
|
tonLu = computed(() => {
|
|
2189
2189
|
const impose = this.ton();
|
|
2190
2190
|
if (impose !== null) return impose;
|
|
2191
2191
|
const part = this.part();
|
|
2192
2192
|
const zone = this.zones().find((candidate) => part >= candidate.debut && part <= candidate.fin);
|
|
2193
2193
|
return zone === void 0 ? "primaire" : TON_DE_QUALITE[zone.qualite];
|
|
2194
|
-
}, ...ngDevMode ? [{ debugName: "tonLu" }] :
|
|
2194
|
+
}, ...ngDevMode ? [{ debugName: "tonLu" }] : /* istanbul ignore next */ []);
|
|
2195
2195
|
partDuSeuil = computed(() => {
|
|
2196
2196
|
const seuil = enNombre(this.seuil());
|
|
2197
2197
|
const { min, max } = this.nombres();
|
|
2198
2198
|
if (seuil === null || max <= min) return null;
|
|
2199
2199
|
return (Math.min(Math.max(seuil, min), max) - min) / (max - min);
|
|
2200
|
-
}, ...ngDevMode ? [{ debugName: "partDuSeuil" }] :
|
|
2200
|
+
}, ...ngDevMode ? [{ debugName: "partDuSeuil" }] : /* istanbul ignore next */ []);
|
|
2201
2201
|
pourcentage = computed(() => new Intl.NumberFormat(this.locale(), {
|
|
2202
2202
|
style: "percent",
|
|
2203
2203
|
maximumFractionDigits: 1
|
|
2204
|
-
}).format(this.part()), ...ngDevMode ? [{ debugName: "pourcentage" }] :
|
|
2205
|
-
montant = computed(() => this.enMontant(this.valeur()), ...ngDevMode ? [{ debugName: "montant" }] :
|
|
2206
|
-
total = computed(() => this.enMontant(this.max()), ...ngDevMode ? [{ debugName: "total" }] :
|
|
2204
|
+
}).format(this.part()), ...ngDevMode ? [{ debugName: "pourcentage" }] : /* istanbul ignore next */ []);
|
|
2205
|
+
montant = computed(() => this.enMontant(this.valeur()), ...ngDevMode ? [{ debugName: "montant" }] : /* istanbul ignore next */ []);
|
|
2206
|
+
total = computed(() => this.enMontant(this.max()), ...ngDevMode ? [{ debugName: "total" }] : /* istanbul ignore next */ []);
|
|
2207
2207
|
reste = computed(() => {
|
|
2208
2208
|
const devise = this.devise();
|
|
2209
2209
|
if (devise === null) return null;
|
|
@@ -2211,11 +2211,11 @@ var StMeter = class StMeter {
|
|
|
2211
2211
|
unitesMineures: enEntier(this.max()) - enEntier(this.valeur()),
|
|
2212
2212
|
devise
|
|
2213
2213
|
};
|
|
2214
|
-
}, ...ngDevMode ? [{ debugName: "reste" }] :
|
|
2215
|
-
nombreDuReste = computed(() => this.nombres().max - this.nombres().valeur, ...ngDevMode ? [{ debugName: "nombreDuReste" }] :
|
|
2216
|
-
texteMasque = computed(() => this.devise() !== null && this.masques() ? this.libelles().montantMasque : null, ...ngDevMode ? [{ debugName: "texteMasque" }] :
|
|
2217
|
-
morceauxDuConsomme = computed(() => morceauxDe(this.libelles().valeurSurTotal(TROU_VALEUR, TROU_TOTAL)), ...ngDevMode ? [{ debugName: "morceauxDuConsomme" }] :
|
|
2218
|
-
morceauxDuReste = computed(() => morceauxDe(this.libelles().resteDisponible(TROU_VALEUR)), ...ngDevMode ? [{ debugName: "morceauxDuReste" }] :
|
|
2214
|
+
}, ...ngDevMode ? [{ debugName: "reste" }] : /* istanbul ignore next */ []);
|
|
2215
|
+
nombreDuReste = computed(() => this.nombres().max - this.nombres().valeur, ...ngDevMode ? [{ debugName: "nombreDuReste" }] : /* istanbul ignore next */ []);
|
|
2216
|
+
texteMasque = computed(() => this.devise() !== null && this.masques() ? this.libelles().montantMasque : null, ...ngDevMode ? [{ debugName: "texteMasque" }] : /* istanbul ignore next */ []);
|
|
2217
|
+
morceauxDuConsomme = computed(() => morceauxDe(this.libelles().valeurSurTotal(TROU_VALEUR, TROU_TOTAL)), ...ngDevMode ? [{ debugName: "morceauxDuConsomme" }] : /* istanbul ignore next */ []);
|
|
2218
|
+
morceauxDuReste = computed(() => morceauxDe(this.libelles().resteDisponible(TROU_VALEUR)), ...ngDevMode ? [{ debugName: "morceauxDuReste" }] : /* istanbul ignore next */ []);
|
|
2219
2219
|
enMontant(valeur) {
|
|
2220
2220
|
const devise = this.devise();
|
|
2221
2221
|
return devise === null ? null : {
|
|
@@ -2225,7 +2225,7 @@ var StMeter = class StMeter {
|
|
|
2225
2225
|
}
|
|
2226
2226
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2227
2227
|
minVersion: "12.0.0",
|
|
2228
|
-
version: "22.2.
|
|
2228
|
+
version: "22.2.1",
|
|
2229
2229
|
ngImport: i0,
|
|
2230
2230
|
type: StMeter,
|
|
2231
2231
|
deps: [],
|
|
@@ -2233,7 +2233,7 @@ var StMeter = class StMeter {
|
|
|
2233
2233
|
});
|
|
2234
2234
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2235
2235
|
minVersion: "17.0.0",
|
|
2236
|
-
version: "22.2.
|
|
2236
|
+
version: "22.2.1",
|
|
2237
2237
|
type: StMeter,
|
|
2238
2238
|
isStandalone: true,
|
|
2239
2239
|
selector: "st-meter",
|
|
@@ -2381,7 +2381,7 @@ var StMeter = class StMeter {
|
|
|
2381
2381
|
};
|
|
2382
2382
|
i0.ɵɵngDeclareClassMetadata({
|
|
2383
2383
|
minVersion: "12.0.0",
|
|
2384
|
-
version: "22.2.
|
|
2384
|
+
version: "22.2.1",
|
|
2385
2385
|
ngImport: i0,
|
|
2386
2386
|
type: StMeter,
|
|
2387
2387
|
decorators: [{
|
|
@@ -2524,30 +2524,30 @@ var StDeadline = class StDeadline {
|
|
|
2524
2524
|
document = inject(DOCUMENT);
|
|
2525
2525
|
fuseau = inject(FUSEAU_PAR_DEFAUT);
|
|
2526
2526
|
libelles = inject(ST_LIBELLES);
|
|
2527
|
-
echeance = input.required(...ngDevMode ? [{ debugName: "echeance" }] :
|
|
2528
|
-
libelle = input(null, ...ngDevMode ? [{ debugName: "libelle" }] :
|
|
2527
|
+
echeance = input.required(...ngDevMode ? [{ debugName: "echeance" }] : /* istanbul ignore next */ []);
|
|
2528
|
+
libelle = input(null, ...ngDevMode ? [{ debugName: "libelle" }] : /* istanbul ignore next */ []);
|
|
2529
2529
|
seuilUrgentEnMinutes = input(null, {
|
|
2530
|
-
...ngDevMode ? { debugName: "seuilUrgentEnMinutes" } :
|
|
2530
|
+
...ngDevMode ? { debugName: "seuilUrgentEnMinutes" } : /* istanbul ignore next */ {},
|
|
2531
2531
|
transform: (valeur) => valeur === null || valeur === void 0 ? null : numberAttribute(valeur)
|
|
2532
2532
|
});
|
|
2533
2533
|
absoluVisible = input(false, {
|
|
2534
|
-
...ngDevMode ? { debugName: "absoluVisible" } :
|
|
2534
|
+
...ngDevMode ? { debugName: "absoluVisible" } : /* istanbul ignore next */ {},
|
|
2535
2535
|
transform: booleanAttribute
|
|
2536
2536
|
});
|
|
2537
2537
|
depassee = output();
|
|
2538
|
-
maintenant = signal(Date.now(), ...ngDevMode ? [{ debugName: "maintenant" }] :
|
|
2538
|
+
maintenant = signal(Date.now(), ...ngDevMode ? [{ debugName: "maintenant" }] : /* istanbul ignore next */ []);
|
|
2539
2539
|
instant = computed(() => {
|
|
2540
2540
|
const valeur = this.echeance();
|
|
2541
2541
|
return valeur instanceof Date ? valeur.getTime() : lireInstant(valeur, this.fuseau) ?? NaN;
|
|
2542
|
-
}, ...ngDevMode ? [{ debugName: "instant" }] :
|
|
2543
|
-
dateDeLEcheance = computed(() => new Date(this.instant()), ...ngDevMode ? [{ debugName: "dateDeLEcheance" }] :
|
|
2542
|
+
}, ...ngDevMode ? [{ debugName: "instant" }] : /* istanbul ignore next */ []);
|
|
2543
|
+
dateDeLEcheance = computed(() => new Date(this.instant()), ...ngDevMode ? [{ debugName: "dateDeLEcheance" }] : /* istanbul ignore next */ []);
|
|
2544
2544
|
etat = computed(() => {
|
|
2545
2545
|
const reste = this.instant() - this.maintenant();
|
|
2546
2546
|
if (reste <= 0) return "depassee";
|
|
2547
2547
|
const seuil = this.seuilUrgentEnMinutes();
|
|
2548
2548
|
return seuil !== null && reste <= seuil * MINUTE ? "urgente" : "a-temps";
|
|
2549
|
-
}, ...ngDevMode ? [{ debugName: "etat" }] :
|
|
2550
|
-
icone = computed(() => ICONE_D_ECHEANCE[this.etat()], ...ngDevMode ? [{ debugName: "icone" }] :
|
|
2549
|
+
}, ...ngDevMode ? [{ debugName: "etat" }] : /* istanbul ignore next */ []);
|
|
2550
|
+
icone = computed(() => ICONE_D_ECHEANCE[this.etat()], ...ngDevMode ? [{ debugName: "icone" }] : /* istanbul ignore next */ []);
|
|
2551
2551
|
mot = computed(() => {
|
|
2552
2552
|
const libelles = this.libelles();
|
|
2553
2553
|
switch (this.etat()) {
|
|
@@ -2555,7 +2555,7 @@ var StDeadline = class StDeadline {
|
|
|
2555
2555
|
case "urgente": return libelles.echeanceUrgente;
|
|
2556
2556
|
default: return libelles.echeanceATemps;
|
|
2557
2557
|
}
|
|
2558
|
-
}, ...ngDevMode ? [{ debugName: "mot" }] :
|
|
2558
|
+
}, ...ngDevMode ? [{ debugName: "mot" }] : /* istanbul ignore next */ []);
|
|
2559
2559
|
constructor() {
|
|
2560
2560
|
const vue = this.document.defaultView;
|
|
2561
2561
|
let minuterie = null;
|
|
@@ -2597,7 +2597,7 @@ var StDeadline = class StDeadline {
|
|
|
2597
2597
|
}
|
|
2598
2598
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2599
2599
|
minVersion: "12.0.0",
|
|
2600
|
-
version: "22.2.
|
|
2600
|
+
version: "22.2.1",
|
|
2601
2601
|
ngImport: i0,
|
|
2602
2602
|
type: StDeadline,
|
|
2603
2603
|
deps: [],
|
|
@@ -2605,7 +2605,7 @@ var StDeadline = class StDeadline {
|
|
|
2605
2605
|
});
|
|
2606
2606
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2607
2607
|
minVersion: "17.0.0",
|
|
2608
|
-
version: "22.2.
|
|
2608
|
+
version: "22.2.1",
|
|
2609
2609
|
type: StDeadline,
|
|
2610
2610
|
isStandalone: true,
|
|
2611
2611
|
selector: "st-deadline",
|
|
@@ -2679,7 +2679,7 @@ var StDeadline = class StDeadline {
|
|
|
2679
2679
|
};
|
|
2680
2680
|
i0.ɵɵngDeclareClassMetadata({
|
|
2681
2681
|
minVersion: "12.0.0",
|
|
2682
|
-
version: "22.2.
|
|
2682
|
+
version: "22.2.1",
|
|
2683
2683
|
ngImport: i0,
|
|
2684
2684
|
type: StDeadline,
|
|
2685
2685
|
decorators: [{
|
|
@@ -2738,26 +2738,26 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2738
2738
|
});
|
|
2739
2739
|
var StPerson = class StPerson {
|
|
2740
2740
|
libelles = inject(ST_LIBELLES);
|
|
2741
|
-
nom = input.required(...ngDevMode ? [{ debugName: "nom" }] :
|
|
2742
|
-
precision = input(null, ...ngDevMode ? [{ debugName: "precision" }] :
|
|
2743
|
-
nomAffiche = computed(() => sansCommandesDeDirection(this.nom()), ...ngDevMode ? [{ debugName: "nomAffiche" }] :
|
|
2741
|
+
nom = input.required(...ngDevMode ? [{ debugName: "nom" }] : /* istanbul ignore next */ []);
|
|
2742
|
+
precision = input(null, ...ngDevMode ? [{ debugName: "precision" }] : /* istanbul ignore next */ []);
|
|
2743
|
+
nomAffiche = computed(() => sansCommandesDeDirection(this.nom()), ...ngDevMode ? [{ debugName: "nomAffiche" }] : /* istanbul ignore next */ []);
|
|
2744
2744
|
precisionAffichee = computed(() => {
|
|
2745
2745
|
const precision = this.precision();
|
|
2746
2746
|
return precision === null ? null : sansCommandesDeDirection(precision);
|
|
2747
|
-
}, ...ngDevMode ? [{ debugName: "precisionAffichee" }] :
|
|
2748
|
-
sourceImage = input(null, ...ngDevMode ? [{ debugName: "sourceImage" }] :
|
|
2749
|
-
lien = input(null, ...ngDevMode ? [{ debugName: "lien" }] :
|
|
2750
|
-
taille = input("md", ...ngDevMode ? [{ debugName: "taille" }] :
|
|
2751
|
-
disposition = input("ligne", ...ngDevMode ? [{ debugName: "disposition" }] :
|
|
2752
|
-
ton = input("primaire", ...ngDevMode ? [{ debugName: "ton" }] :
|
|
2747
|
+
}, ...ngDevMode ? [{ debugName: "precisionAffichee" }] : /* istanbul ignore next */ []);
|
|
2748
|
+
sourceImage = input(null, ...ngDevMode ? [{ debugName: "sourceImage" }] : /* istanbul ignore next */ []);
|
|
2749
|
+
lien = input(null, ...ngDevMode ? [{ debugName: "lien" }] : /* istanbul ignore next */ []);
|
|
2750
|
+
taille = input("md", ...ngDevMode ? [{ debugName: "taille" }] : /* istanbul ignore next */ []);
|
|
2751
|
+
disposition = input("ligne", ...ngDevMode ? [{ debugName: "disposition" }] : /* istanbul ignore next */ []);
|
|
2752
|
+
ton = input("primaire", ...ngDevMode ? [{ debugName: "ton" }] : /* istanbul ignore next */ []);
|
|
2753
2753
|
soi = input(false, {
|
|
2754
|
-
...ngDevMode ? { debugName: "soi" } :
|
|
2754
|
+
...ngDevMode ? { debugName: "soi" } : /* istanbul ignore next */ {},
|
|
2755
2755
|
transform: booleanAttribute
|
|
2756
2756
|
});
|
|
2757
|
-
tailleDeLAvatar = computed(() => this.taille() === "sm" ? "xs" : "sm", ...ngDevMode ? [{ debugName: "tailleDeLAvatar" }] :
|
|
2757
|
+
tailleDeLAvatar = computed(() => this.taille() === "sm" ? "xs" : "sm", ...ngDevMode ? [{ debugName: "tailleDeLAvatar" }] : /* istanbul ignore next */ []);
|
|
2758
2758
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2759
2759
|
minVersion: "12.0.0",
|
|
2760
|
-
version: "22.2.
|
|
2760
|
+
version: "22.2.1",
|
|
2761
2761
|
ngImport: i0,
|
|
2762
2762
|
type: StPerson,
|
|
2763
2763
|
deps: [],
|
|
@@ -2765,7 +2765,7 @@ var StPerson = class StPerson {
|
|
|
2765
2765
|
});
|
|
2766
2766
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2767
2767
|
minVersion: "17.0.0",
|
|
2768
|
-
version: "22.2.
|
|
2768
|
+
version: "22.2.1",
|
|
2769
2769
|
type: StPerson,
|
|
2770
2770
|
isStandalone: true,
|
|
2771
2771
|
selector: "st-person",
|
|
@@ -2889,7 +2889,7 @@ var StPerson = class StPerson {
|
|
|
2889
2889
|
};
|
|
2890
2890
|
i0.ɵɵngDeclareClassMetadata({
|
|
2891
2891
|
minVersion: "12.0.0",
|
|
2892
|
-
version: "22.2.
|
|
2892
|
+
version: "22.2.1",
|
|
2893
2893
|
ngImport: i0,
|
|
2894
2894
|
type: StPerson,
|
|
2895
2895
|
decorators: [{
|
|
@@ -2981,24 +2981,24 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2981
2981
|
var StAvatarGroup = class StAvatarGroup {
|
|
2982
2982
|
libelles = inject(ST_LIBELLES);
|
|
2983
2983
|
locale = inject(ST_LOCALE);
|
|
2984
|
-
personnes = input.required(...ngDevMode ? [{ debugName: "personnes" }] :
|
|
2985
|
-
etiquette = input.required(...ngDevMode ? [{ debugName: "etiquette" }] :
|
|
2984
|
+
personnes = input.required(...ngDevMode ? [{ debugName: "personnes" }] : /* istanbul ignore next */ []);
|
|
2985
|
+
etiquette = input.required(...ngDevMode ? [{ debugName: "etiquette" }] : /* istanbul ignore next */ []);
|
|
2986
2986
|
max = input(4, {
|
|
2987
|
-
...ngDevMode ? { debugName: "max" } :
|
|
2987
|
+
...ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {},
|
|
2988
2988
|
transform: numberAttribute
|
|
2989
2989
|
});
|
|
2990
|
-
taille = input("sm", ...ngDevMode ? [{ debugName: "taille" }] :
|
|
2990
|
+
taille = input("sm", ...ngDevMode ? [{ debugName: "taille" }] : /* istanbul ignore next */ []);
|
|
2991
2991
|
reste = output();
|
|
2992
2992
|
montrees = computed(() => {
|
|
2993
2993
|
const personnes = this.personnes();
|
|
2994
2994
|
const max = Math.max(1, this.max());
|
|
2995
2995
|
return personnes.length <= max ? personnes : personnes.slice(0, max - 1);
|
|
2996
|
-
}, ...ngDevMode ? [{ debugName: "montrees" }] :
|
|
2997
|
-
surplus = computed(() => this.personnes().length - this.montrees().length, ...ngDevMode ? [{ debugName: "surplus" }] :
|
|
2998
|
-
surplusAffiche = computed(() => new Intl.NumberFormat(this.locale(), { signDisplay: "always" }).format(this.surplus()), ...ngDevMode ? [{ debugName: "surplusAffiche" }] :
|
|
2996
|
+
}, ...ngDevMode ? [{ debugName: "montrees" }] : /* istanbul ignore next */ []);
|
|
2997
|
+
surplus = computed(() => this.personnes().length - this.montrees().length, ...ngDevMode ? [{ debugName: "surplus" }] : /* istanbul ignore next */ []);
|
|
2998
|
+
surplusAffiche = computed(() => new Intl.NumberFormat(this.locale(), { signDisplay: "always" }).format(this.surplus()), ...ngDevMode ? [{ debugName: "surplusAffiche" }] : /* istanbul ignore next */ []);
|
|
2999
2999
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3000
3000
|
minVersion: "12.0.0",
|
|
3001
|
-
version: "22.2.
|
|
3001
|
+
version: "22.2.1",
|
|
3002
3002
|
ngImport: i0,
|
|
3003
3003
|
type: StAvatarGroup,
|
|
3004
3004
|
deps: [],
|
|
@@ -3006,7 +3006,7 @@ var StAvatarGroup = class StAvatarGroup {
|
|
|
3006
3006
|
});
|
|
3007
3007
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
3008
3008
|
minVersion: "17.0.0",
|
|
3009
|
-
version: "22.2.
|
|
3009
|
+
version: "22.2.1",
|
|
3010
3010
|
type: StAvatarGroup,
|
|
3011
3011
|
isStandalone: true,
|
|
3012
3012
|
selector: "st-avatar-group",
|
|
@@ -3067,7 +3067,7 @@ var StAvatarGroup = class StAvatarGroup {
|
|
|
3067
3067
|
};
|
|
3068
3068
|
i0.ɵɵngDeclareClassMetadata({
|
|
3069
3069
|
minVersion: "12.0.0",
|
|
3070
|
-
version: "22.2.
|
|
3070
|
+
version: "22.2.1",
|
|
3071
3071
|
ngImport: i0,
|
|
3072
3072
|
type: StAvatarGroup,
|
|
3073
3073
|
decorators: [{
|
|
@@ -3124,11 +3124,11 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3124
3124
|
}
|
|
3125
3125
|
});
|
|
3126
3126
|
var StStatGroup = class StStatGroup {
|
|
3127
|
-
etiquette = input.required(...ngDevMode ? [{ debugName: "etiquette" }] :
|
|
3128
|
-
colonnes = input("auto", ...ngDevMode ? [{ debugName: "colonnes" }] :
|
|
3127
|
+
etiquette = input.required(...ngDevMode ? [{ debugName: "etiquette" }] : /* istanbul ignore next */ []);
|
|
3128
|
+
colonnes = input("auto", ...ngDevMode ? [{ debugName: "colonnes" }] : /* istanbul ignore next */ []);
|
|
3129
3129
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3130
3130
|
minVersion: "12.0.0",
|
|
3131
|
-
version: "22.2.
|
|
3131
|
+
version: "22.2.1",
|
|
3132
3132
|
ngImport: i0,
|
|
3133
3133
|
type: StStatGroup,
|
|
3134
3134
|
deps: [],
|
|
@@ -3136,7 +3136,7 @@ var StStatGroup = class StStatGroup {
|
|
|
3136
3136
|
});
|
|
3137
3137
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
3138
3138
|
minVersion: "17.1.0",
|
|
3139
|
-
version: "22.2.
|
|
3139
|
+
version: "22.2.1",
|
|
3140
3140
|
type: StStatGroup,
|
|
3141
3141
|
isStandalone: true,
|
|
3142
3142
|
selector: "st-stat-group",
|
|
@@ -3168,7 +3168,7 @@ var StStatGroup = class StStatGroup {
|
|
|
3168
3168
|
};
|
|
3169
3169
|
i0.ɵɵngDeclareClassMetadata({
|
|
3170
3170
|
minVersion: "12.0.0",
|
|
3171
|
-
version: "22.2.
|
|
3171
|
+
version: "22.2.1",
|
|
3172
3172
|
ngImport: i0,
|
|
3173
3173
|
type: StStatGroup,
|
|
3174
3174
|
decorators: [{
|
|
@@ -3211,15 +3211,15 @@ function somme(lignes) {
|
|
|
3211
3211
|
var StBarList = class StBarList {
|
|
3212
3212
|
libelles = inject(ST_LIBELLES);
|
|
3213
3213
|
locale = inject(ST_LOCALE);
|
|
3214
|
-
lignes = input.required(...ngDevMode ? [{ debugName: "lignes" }] :
|
|
3215
|
-
legende = input.required(...ngDevMode ? [{ debugName: "legende" }] :
|
|
3214
|
+
lignes = input.required(...ngDevMode ? [{ debugName: "lignes" }] : /* istanbul ignore next */ []);
|
|
3215
|
+
legende = input.required(...ngDevMode ? [{ debugName: "legende" }] : /* istanbul ignore next */ []);
|
|
3216
3216
|
legendeMasquee = input(false, {
|
|
3217
|
-
...ngDevMode ? { debugName: "legendeMasquee" } :
|
|
3217
|
+
...ngDevMode ? { debugName: "legendeMasquee" } : /* istanbul ignore next */ {},
|
|
3218
3218
|
transform: booleanAttribute
|
|
3219
3219
|
});
|
|
3220
|
-
devise = input(null, ...ngDevMode ? [{ debugName: "devise" }] :
|
|
3221
|
-
affichage = input("les-deux", ...ngDevMode ? [{ debugName: "affichage" }] :
|
|
3222
|
-
limite = input(null, ...ngDevMode ? [{ debugName: "limite" }] :
|
|
3220
|
+
devise = input(null, ...ngDevMode ? [{ debugName: "devise" }] : /* istanbul ignore next */ []);
|
|
3221
|
+
affichage = input("les-deux", ...ngDevMode ? [{ debugName: "affichage" }] : /* istanbul ignore next */ []);
|
|
3222
|
+
limite = input(null, ...ngDevMode ? [{ debugName: "limite" }] : /* istanbul ignore next */ []);
|
|
3223
3223
|
lues = computed(() => {
|
|
3224
3224
|
const limite = this.limite();
|
|
3225
3225
|
const comptees = this.lignes().map((ligne) => ({
|
|
@@ -3255,12 +3255,12 @@ var StBarList = class StBarList {
|
|
|
3255
3255
|
part: pourcentage.format(total > 0 ? ligne.nombre / total : 0),
|
|
3256
3256
|
longueur: plusGrande > 0 ? Math.max(0, ligne.nombre) / plusGrande : 0
|
|
3257
3257
|
}));
|
|
3258
|
-
}, ...ngDevMode ? [{ debugName: "lues" }] :
|
|
3259
|
-
avecValeur = computed(() => this.affichage() !== "part", ...ngDevMode ? [{ debugName: "avecValeur" }] :
|
|
3260
|
-
avecPart = computed(() => this.affichage() !== "valeur", ...ngDevMode ? [{ debugName: "avecPart" }] :
|
|
3258
|
+
}, ...ngDevMode ? [{ debugName: "lues" }] : /* istanbul ignore next */ []);
|
|
3259
|
+
avecValeur = computed(() => this.affichage() !== "part", ...ngDevMode ? [{ debugName: "avecValeur" }] : /* istanbul ignore next */ []);
|
|
3260
|
+
avecPart = computed(() => this.affichage() !== "valeur", ...ngDevMode ? [{ debugName: "avecPart" }] : /* istanbul ignore next */ []);
|
|
3261
3261
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3262
3262
|
minVersion: "12.0.0",
|
|
3263
|
-
version: "22.2.
|
|
3263
|
+
version: "22.2.1",
|
|
3264
3264
|
ngImport: i0,
|
|
3265
3265
|
type: StBarList,
|
|
3266
3266
|
deps: [],
|
|
@@ -3268,7 +3268,7 @@ var StBarList = class StBarList {
|
|
|
3268
3268
|
});
|
|
3269
3269
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
3270
3270
|
minVersion: "17.0.0",
|
|
3271
|
-
version: "22.2.
|
|
3271
|
+
version: "22.2.1",
|
|
3272
3272
|
type: StBarList,
|
|
3273
3273
|
isStandalone: true,
|
|
3274
3274
|
selector: "st-bar-list",
|
|
@@ -3357,7 +3357,7 @@ var StBarList = class StBarList {
|
|
|
3357
3357
|
};
|
|
3358
3358
|
i0.ɵɵngDeclareClassMetadata({
|
|
3359
3359
|
minVersion: "12.0.0",
|
|
3360
|
-
version: "22.2.
|
|
3360
|
+
version: "22.2.1",
|
|
3361
3361
|
ngImport: i0,
|
|
3362
3362
|
type: StBarList,
|
|
3363
3363
|
decorators: [{
|
|
@@ -3425,14 +3425,13 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3425
3425
|
}]
|
|
3426
3426
|
}
|
|
3427
3427
|
});
|
|
3428
|
-
const SERIES = 6;
|
|
3429
3428
|
var StRepartition = class StRepartition {
|
|
3430
3429
|
locale = inject(ST_LOCALE);
|
|
3431
|
-
parts = input.required(...ngDevMode ? [{ debugName: "parts" }] :
|
|
3432
|
-
etiquette = input.required(...ngDevMode ? [{ debugName: "etiquette" }] :
|
|
3433
|
-
devise = input(null, ...ngDevMode ? [{ debugName: "devise" }] :
|
|
3434
|
-
legende = input("sous", ...ngDevMode ? [{ debugName: "legende" }] :
|
|
3435
|
-
epaisseur = input("fine", ...ngDevMode ? [{ debugName: "epaisseur" }] :
|
|
3430
|
+
parts = input.required(...ngDevMode ? [{ debugName: "parts" }] : /* istanbul ignore next */ []);
|
|
3431
|
+
etiquette = input.required(...ngDevMode ? [{ debugName: "etiquette" }] : /* istanbul ignore next */ []);
|
|
3432
|
+
devise = input(null, ...ngDevMode ? [{ debugName: "devise" }] : /* istanbul ignore next */ []);
|
|
3433
|
+
legende = input("sous", ...ngDevMode ? [{ debugName: "legende" }] : /* istanbul ignore next */ []);
|
|
3434
|
+
epaisseur = input("fine", ...ngDevMode ? [{ debugName: "epaisseur" }] : /* istanbul ignore next */ []);
|
|
3436
3435
|
lues = computed(() => {
|
|
3437
3436
|
const parts = this.parts();
|
|
3438
3437
|
const nombres = parts.map((part) => Math.max(0, Number(part.valeur)));
|
|
@@ -3455,13 +3454,13 @@ var StRepartition = class StRepartition {
|
|
|
3455
3454
|
},
|
|
3456
3455
|
proportion,
|
|
3457
3456
|
part: pourcentage.format(proportion),
|
|
3458
|
-
serie: Math.min(rang,
|
|
3457
|
+
serie: Math.min(rang, 5) + 1
|
|
3459
3458
|
};
|
|
3460
3459
|
});
|
|
3461
|
-
}, ...ngDevMode ? [{ debugName: "lues" }] :
|
|
3460
|
+
}, ...ngDevMode ? [{ debugName: "lues" }] : /* istanbul ignore next */ []);
|
|
3462
3461
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3463
3462
|
minVersion: "12.0.0",
|
|
3464
|
-
version: "22.2.
|
|
3463
|
+
version: "22.2.1",
|
|
3465
3464
|
ngImport: i0,
|
|
3466
3465
|
type: StRepartition,
|
|
3467
3466
|
deps: [],
|
|
@@ -3469,7 +3468,7 @@ var StRepartition = class StRepartition {
|
|
|
3469
3468
|
});
|
|
3470
3469
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
3471
3470
|
minVersion: "17.0.0",
|
|
3472
|
-
version: "22.2.
|
|
3471
|
+
version: "22.2.1",
|
|
3473
3472
|
type: StRepartition,
|
|
3474
3473
|
isStandalone: true,
|
|
3475
3474
|
selector: "st-repartition",
|
|
@@ -3551,7 +3550,7 @@ var StRepartition = class StRepartition {
|
|
|
3551
3550
|
};
|
|
3552
3551
|
i0.ɵɵngDeclareClassMetadata({
|
|
3553
3552
|
minVersion: "12.0.0",
|
|
3554
|
-
version: "22.2.
|
|
3553
|
+
version: "22.2.1",
|
|
3555
3554
|
ngImport: i0,
|
|
3556
3555
|
type: StRepartition,
|
|
3557
3556
|
decorators: [{
|
|
@@ -3614,30 +3613,30 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3614
3613
|
var StCode = class StCode {
|
|
3615
3614
|
document = inject(DOCUMENT);
|
|
3616
3615
|
libelles = inject(ST_LIBELLES);
|
|
3617
|
-
valeur = input.required(...ngDevMode ? [{ debugName: "valeur" }] :
|
|
3616
|
+
valeur = input.required(...ngDevMode ? [{ debugName: "valeur" }] : /* istanbul ignore next */ []);
|
|
3618
3617
|
copiable = input(true, {
|
|
3619
|
-
...ngDevMode ? { debugName: "copiable" } :
|
|
3618
|
+
...ngDevMode ? { debugName: "copiable" } : /* istanbul ignore next */ {},
|
|
3620
3619
|
transform: booleanAttribute
|
|
3621
3620
|
});
|
|
3622
|
-
etiquette = input(null, ...ngDevMode ? [{ debugName: "etiquette" }] :
|
|
3623
|
-
libelleCopier = input(null, ...ngDevMode ? [{ debugName: "libelleCopier" }] :
|
|
3624
|
-
messageDeConfirmation = input(null, ...ngDevMode ? [{ debugName: "messageDeConfirmation" }] :
|
|
3625
|
-
valeurAffichee = computed(() => sansCommandesDeDirection(this.valeur()), ...ngDevMode ? [{ debugName: "valeurAffichee" }] :
|
|
3626
|
-
etiquetteLue = computed(() => this.etiquette() ?? this.libelles().codeTechnique, ...ngDevMode ? [{ debugName: "etiquetteLue" }] :
|
|
3627
|
-
libelleCopierLu = computed(() => this.libelleCopier() ?? this.libelles().copierLaValeur(this.etiquetteLue()), ...ngDevMode ? [{ debugName: "libelleCopierLu" }] :
|
|
3621
|
+
etiquette = input(null, ...ngDevMode ? [{ debugName: "etiquette" }] : /* istanbul ignore next */ []);
|
|
3622
|
+
libelleCopier = input(null, ...ngDevMode ? [{ debugName: "libelleCopier" }] : /* istanbul ignore next */ []);
|
|
3623
|
+
messageDeConfirmation = input(null, ...ngDevMode ? [{ debugName: "messageDeConfirmation" }] : /* istanbul ignore next */ []);
|
|
3624
|
+
valeurAffichee = computed(() => sansCommandesDeDirection(this.valeur()), ...ngDevMode ? [{ debugName: "valeurAffichee" }] : /* istanbul ignore next */ []);
|
|
3625
|
+
etiquetteLue = computed(() => this.etiquette() ?? this.libelles().codeTechnique, ...ngDevMode ? [{ debugName: "etiquetteLue" }] : /* istanbul ignore next */ []);
|
|
3626
|
+
libelleCopierLu = computed(() => this.libelleCopier() ?? this.libelles().copierLaValeur(this.etiquetteLue()), ...ngDevMode ? [{ debugName: "libelleCopierLu" }] : /* istanbul ignore next */ []);
|
|
3628
3627
|
copie = output();
|
|
3629
3628
|
annonce = new AnnonceLocale(inject(DestroyRef));
|
|
3630
|
-
copieConfirmee = signal(false, ...ngDevMode ? [{ debugName: "copieConfirmee" }] :
|
|
3631
|
-
copieRefusee = signal(false, ...ngDevMode ? [{ debugName: "copieRefusee" }] :
|
|
3632
|
-
iconeDeCopie = computed(() => this.copieConfirmee() ? "presse-papiers-coche" : "copie", ...ngDevMode ? [{ debugName: "iconeDeCopie" }] :
|
|
3633
|
-
messageDeRefus = computed(() => this.libelles().copieImpossible, ...ngDevMode ? [{ debugName: "messageDeRefus" }] :
|
|
3629
|
+
copieConfirmee = signal(false, ...ngDevMode ? [{ debugName: "copieConfirmee" }] : /* istanbul ignore next */ []);
|
|
3630
|
+
copieRefusee = signal(false, ...ngDevMode ? [{ debugName: "copieRefusee" }] : /* istanbul ignore next */ []);
|
|
3631
|
+
iconeDeCopie = computed(() => this.copieConfirmee() ? "presse-papiers-coche" : "copie", ...ngDevMode ? [{ debugName: "iconeDeCopie" }] : /* istanbul ignore next */ []);
|
|
3632
|
+
messageDeRefus = computed(() => this.libelles().copieImpossible, ...ngDevMode ? [{ debugName: "messageDeRefus" }] : /* istanbul ignore next */ []);
|
|
3634
3633
|
minuterieDeConfirmation;
|
|
3635
3634
|
constructor() {
|
|
3636
3635
|
inject(DestroyRef).onDestroy(() => {
|
|
3637
3636
|
clearTimeout(this.minuterieDeConfirmation);
|
|
3638
3637
|
});
|
|
3639
3638
|
}
|
|
3640
|
-
copiePossible = computed(() => this.copiable() && pressePapiersDisponible(this.document), ...ngDevMode ? [{ debugName: "copiePossible" }] :
|
|
3639
|
+
copiePossible = computed(() => this.copiable() && pressePapiersDisponible(this.document), ...ngDevMode ? [{ debugName: "copiePossible" }] : /* istanbul ignore next */ []);
|
|
3641
3640
|
async auClicDeCopie() {
|
|
3642
3641
|
const issue = await copierDansLePressePapiers(this.document, this.valeurAffichee());
|
|
3643
3642
|
if (issue === "copie") {
|
|
@@ -3658,7 +3657,7 @@ var StCode = class StCode {
|
|
|
3658
3657
|
}
|
|
3659
3658
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3660
3659
|
minVersion: "12.0.0",
|
|
3661
|
-
version: "22.2.
|
|
3660
|
+
version: "22.2.1",
|
|
3662
3661
|
ngImport: i0,
|
|
3663
3662
|
type: StCode,
|
|
3664
3663
|
deps: [],
|
|
@@ -3666,7 +3665,7 @@ var StCode = class StCode {
|
|
|
3666
3665
|
});
|
|
3667
3666
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
3668
3667
|
minVersion: "17.0.0",
|
|
3669
|
-
version: "22.2.
|
|
3668
|
+
version: "22.2.1",
|
|
3670
3669
|
type: StCode,
|
|
3671
3670
|
isStandalone: true,
|
|
3672
3671
|
selector: "st-code",
|
|
@@ -3710,7 +3709,7 @@ var StCode = class StCode {
|
|
|
3710
3709
|
outputs: { copie: "copie" },
|
|
3711
3710
|
host: { classAttribute: "st-code" },
|
|
3712
3711
|
ngImport: i0,
|
|
3713
|
-
template: "<!-- L'etiquette precede la valeur a l'oral seulement ; la valeur, elle, est lue et\n selectionnable par tout le monde. -->\n<span class=\"st-vh\">{{ etiquetteLue() }} : </span>\n<code translate=\"no\">{{ valeurAffichee() }}</code>\n\n@if (copiePossible()) {\n <button\n stIconButton\n class=\"st-code__copie\"\n type=\"button\"\n [icone]=\"iconeDeCopie()\"\n taille=\"xs\"\n [etiquette]=\"libelleCopierLu()\"\n [class.st-code__copie--faite]=\"copieConfirmee()\"\n [attr.data-copie]=\"copieConfirmee() ? '' : null\"\n (click)=\"auClicDeCopie()\"\n ></button>\n}\n\n@if (copieRefusee()) {\n <st-inline-message class=\"st-code__refus\" ton=\"
|
|
3712
|
+
template: "<!-- L'etiquette precede la valeur a l'oral seulement ; la valeur, elle, est lue et\n selectionnable par tout le monde. -->\n<span class=\"st-vh\">{{ etiquetteLue() }} : </span>\n<code translate=\"no\">{{ valeurAffichee() }}</code>\n\n@if (copiePossible()) {\n <button\n stIconButton\n class=\"st-code__copie\"\n type=\"button\"\n [icone]=\"iconeDeCopie()\"\n taille=\"xs\"\n [etiquette]=\"libelleCopierLu()\"\n [class.st-code__copie--faite]=\"copieConfirmee()\"\n [attr.data-copie]=\"copieConfirmee() ? '' : null\"\n (click)=\"auClicDeCopie()\"\n ></button>\n}\n\n@if (copieRefusee()) {\n <st-inline-message class=\"st-code__refus\" ton=\"erreur\">{{ messageDeRefus() }}</st-inline-message>\n}\n\n<span class=\"st-vh\" aria-live=\"polite\">{{ annonce.texte() }}</span>\n",
|
|
3714
3713
|
styles: [".st-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host([hidden]){display:none!important}:host{display:inline-flex;flex-wrap:wrap;gap:var(--st-espacement-1);align-items:center}.st-code__copie--faite ::ng-deep .st-icon{color:var(--st-couleur-succes)}.st-code__refus{flex-basis:100%}code{padding-block:var(--st-espacement-1);padding-inline:var(--st-espacement-2);font-family:var(--st-police-mono);font-size:var(--st-taille-sm);line-height:var(--st-interligne-sm);font-weight:var(--st-graisse-normale);letter-spacing:var(--st-interlettrage-normal);font-variant-numeric:var(--st-chiffres-references);color:var(--st-couleur-texte);background:var(--st-couleur-surface-enfoncee);border:var(--st-epaisseur-fine) solid var(--st-couleur-bordure);border-radius:var(--st-rayon-sm);direction:ltr;unicode-bidi:isolate;overflow-wrap:anywhere;-webkit-user-select:all;user-select:all}@media print{.st-code__copie{display:none}}\n"],
|
|
3715
3714
|
dependencies: [{
|
|
3716
3715
|
kind: "component",
|
|
@@ -3745,7 +3744,7 @@ var StCode = class StCode {
|
|
|
3745
3744
|
};
|
|
3746
3745
|
i0.ɵɵngDeclareClassMetadata({
|
|
3747
3746
|
minVersion: "12.0.0",
|
|
3748
|
-
version: "22.2.
|
|
3747
|
+
version: "22.2.1",
|
|
3749
3748
|
ngImport: i0,
|
|
3750
3749
|
type: StCode,
|
|
3751
3750
|
decorators: [{
|
|
@@ -3755,7 +3754,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3755
3754
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3756
3755
|
imports: [StIconButton, StInlineMessage],
|
|
3757
3756
|
host: { class: "st-code" },
|
|
3758
|
-
template: "<!-- L'etiquette precede la valeur a l'oral seulement ; la valeur, elle, est lue et\n selectionnable par tout le monde. -->\n<span class=\"st-vh\">{{ etiquetteLue() }} : </span>\n<code translate=\"no\">{{ valeurAffichee() }}</code>\n\n@if (copiePossible()) {\n <button\n stIconButton\n class=\"st-code__copie\"\n type=\"button\"\n [icone]=\"iconeDeCopie()\"\n taille=\"xs\"\n [etiquette]=\"libelleCopierLu()\"\n [class.st-code__copie--faite]=\"copieConfirmee()\"\n [attr.data-copie]=\"copieConfirmee() ? '' : null\"\n (click)=\"auClicDeCopie()\"\n ></button>\n}\n\n@if (copieRefusee()) {\n <st-inline-message class=\"st-code__refus\" ton=\"
|
|
3757
|
+
template: "<!-- L'etiquette precede la valeur a l'oral seulement ; la valeur, elle, est lue et\n selectionnable par tout le monde. -->\n<span class=\"st-vh\">{{ etiquetteLue() }} : </span>\n<code translate=\"no\">{{ valeurAffichee() }}</code>\n\n@if (copiePossible()) {\n <button\n stIconButton\n class=\"st-code__copie\"\n type=\"button\"\n [icone]=\"iconeDeCopie()\"\n taille=\"xs\"\n [etiquette]=\"libelleCopierLu()\"\n [class.st-code__copie--faite]=\"copieConfirmee()\"\n [attr.data-copie]=\"copieConfirmee() ? '' : null\"\n (click)=\"auClicDeCopie()\"\n ></button>\n}\n\n@if (copieRefusee()) {\n <st-inline-message class=\"st-code__refus\" ton=\"erreur\">{{ messageDeRefus() }}</st-inline-message>\n}\n\n<span class=\"st-vh\" aria-live=\"polite\">{{ annonce.texte() }}</span>\n",
|
|
3759
3758
|
styles: [".st-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host([hidden]){display:none!important}:host{display:inline-flex;flex-wrap:wrap;gap:var(--st-espacement-1);align-items:center}.st-code__copie--faite ::ng-deep .st-icon{color:var(--st-couleur-succes)}.st-code__refus{flex-basis:100%}code{padding-block:var(--st-espacement-1);padding-inline:var(--st-espacement-2);font-family:var(--st-police-mono);font-size:var(--st-taille-sm);line-height:var(--st-interligne-sm);font-weight:var(--st-graisse-normale);letter-spacing:var(--st-interlettrage-normal);font-variant-numeric:var(--st-chiffres-references);color:var(--st-couleur-texte);background:var(--st-couleur-surface-enfoncee);border:var(--st-epaisseur-fine) solid var(--st-couleur-bordure);border-radius:var(--st-rayon-sm);direction:ltr;unicode-bidi:isolate;overflow-wrap:anywhere;-webkit-user-select:all;user-select:all}@media print{.st-code__copie{display:none}}\n"]
|
|
3760
3759
|
}]
|
|
3761
3760
|
}],
|
|
@@ -3808,9 +3807,9 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3808
3807
|
}
|
|
3809
3808
|
});
|
|
3810
3809
|
var StDocument = class StDocument {
|
|
3811
|
-
document = input.required(...ngDevMode ? [{ debugName: "document" }] :
|
|
3812
|
-
niveauDeDepart = input(2, ...ngDevMode ? [{ debugName: "niveauDeDepart" }] :
|
|
3813
|
-
decalage = computed(() => this.niveauDeDepart() - 2, ...ngDevMode ? [{ debugName: "decalage" }] :
|
|
3810
|
+
document = input.required(...ngDevMode ? [{ debugName: "document" }] : /* istanbul ignore next */ []);
|
|
3811
|
+
niveauDeDepart = input(2, ...ngDevMode ? [{ debugName: "niveauDeDepart" }] : /* istanbul ignore next */ []);
|
|
3812
|
+
decalage = computed(() => this.niveauDeDepart() - 2, ...ngDevMode ? [{ debugName: "decalage" }] : /* istanbul ignore next */ []);
|
|
3814
3813
|
routeur = inject(Router);
|
|
3815
3814
|
emplacement = inject(Location);
|
|
3816
3815
|
adresse(chemin) {
|
|
@@ -3835,7 +3834,7 @@ var StDocument = class StDocument {
|
|
|
3835
3834
|
}
|
|
3836
3835
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3837
3836
|
minVersion: "12.0.0",
|
|
3838
|
-
version: "22.2.
|
|
3837
|
+
version: "22.2.1",
|
|
3839
3838
|
ngImport: i0,
|
|
3840
3839
|
type: StDocument,
|
|
3841
3840
|
deps: [],
|
|
@@ -3843,7 +3842,7 @@ var StDocument = class StDocument {
|
|
|
3843
3842
|
});
|
|
3844
3843
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
3845
3844
|
minVersion: "17.0.0",
|
|
3846
|
-
version: "22.2.
|
|
3845
|
+
version: "22.2.1",
|
|
3847
3846
|
type: StDocument,
|
|
3848
3847
|
isStandalone: true,
|
|
3849
3848
|
selector: "st-document",
|
|
@@ -3869,7 +3868,7 @@ var StDocument = class StDocument {
|
|
|
3869
3868
|
},
|
|
3870
3869
|
ngImport: i0,
|
|
3871
3870
|
template: "@for (bloc of document().blocs; track $index) {\n @switch (bloc.type) {\n @case ('titre') {\n @switch (niveau(bloc)) {\n @case (2) {\n <h2 class=\"st-document__titre\">{{ bloc.texte }}</h2>\n }\n @case (3) {\n <h3 class=\"st-document__titre\">{{ bloc.texte }}</h3>\n }\n @case (4) {\n <h4 class=\"st-document__titre\">{{ bloc.texte }}</h4>\n }\n @default {\n <h5 class=\"st-document__titre\">{{ bloc.texte }}</h5>\n }\n }\n }\n @case ('paragraphe') {\n <p class=\"st-document__paragraphe\">\n <ng-container\n [ngTemplateOutlet]=\"enLigne\"\n [ngTemplateOutletContext]=\"{ $implicit: bloc.contenu }\"\n />\n </p>\n }\n @case ('liste') {\n @if (bloc.numerotee) {\n <ol class=\"st-document__liste\">\n @for (element of bloc.elements; track $index) {\n <li>\n <ng-container\n [ngTemplateOutlet]=\"enLigne\"\n [ngTemplateOutletContext]=\"{ $implicit: element }\"\n />\n </li>\n }\n </ol>\n } @else {\n <ul class=\"st-document__liste\">\n @for (element of bloc.elements; track $index) {\n <li>\n <ng-container\n [ngTemplateOutlet]=\"enLigne\"\n [ngTemplateOutletContext]=\"{ $implicit: element }\"\n />\n </li>\n }\n </ul>\n }\n }\n }\n}\n\n<ng-template #enLigne let-contenu>\n @for (morceau of contenu; track $index) {\n @if (estLien(morceau)) {\n <a\n class=\"st-document__lien\"\n [href]=\"adresse(morceau.lien)\"\n [attr.data-chemin]=\"morceau.lien\"\n >{{ morceau.texte }}</a\n >\n } @else if (estEmphase(morceau)) {\n @if (morceau.emphase === 'forte') {\n <strong>{{ morceau.texte }}</strong>\n } @else {\n <em>{{ morceau.texte }}</em>\n }\n } @else {\n <!-- Le texte SANS blanc autour : un blanc du gabarit deviendrait une espace avant la\n virgule qui suit une emphase (« telephone , du lundi », mesure du lot 280). -->\n <ng-container>{{ morceau }}</ng-container>\n }\n }\n</ng-template>\n",
|
|
3872
|
-
styles: [".st-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host([hidden]){display:none!important}:host{font-size:var(--st-taille-md);line-height:var(--st-interligne-md);font-weight:var(--st-graisse-normale);letter-spacing:var(--st-interlettrage-normal);display:block;max-inline-size:70ch;color:var(--st-couleur-texte)}.st-document__titre{margin-block:var(--st-espacement-6) var(--st-espacement-2)}h2.st-document__titre{font-size:var(--st-taille-xl);line-height:var(--st-interligne-xl);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-xl)}h3.st-document__titre{font-size:var(--st-taille-lg);line-height:var(--st-interligne-md);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-lg)}h4.st-document__titre,h5.st-document__titre{font-size:var(--st-taille-md);line-height:var(--st-interligne-md);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-interlettrage-normal)}.st-document__titre:first-child{margin-block-start:0}.st-document__paragraphe,.st-document__liste{margin-block:0 var(--st-espacement-4)}.st-document__liste{padding-inline-start:var(--st-espacement-6)}.st-document__liste>li+li{margin-block-start:var(--st-espacement-1)}.st-document__lien:focus-visible{outline:var(--st-focus-epaisseur) solid var(--st-couleur-anneau-focus);outline-offset:var(--st-focus-decalage);box-shadow:0 0 0 var(--st-focus-lisere) var(--st-couleur-lisere-focus)}.st-document__lien{color:var(--st-couleur-texte-primaire);text-decoration:underline;text-decoration-thickness:var(--st-epaisseur-fine);text-decoration-skip-ink:auto;text-underline-offset:var(--st-espacement-demi);border-radius:var(--st-rayon-xs);transition:color var(--st-duree-rapide) var(--st-courbe-standard)}@media(hover:hover){.st-document__lien:hover{color:var(--st-couleur-primaire-survol);text-decoration-thickness:var(--st-epaisseur-moyenne)}}.st-document__lien:active{color:var(--st-couleur-primaire-actif)}\n"],
|
|
3871
|
+
styles: [".st-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host([hidden]){display:none!important}:host{font-size:var(--st-taille-md);line-height:var(--st-interligne-md);font-weight:var(--st-graisse-normale);letter-spacing:var(--st-interlettrage-normal);display:block;max-inline-size:70ch;color:var(--st-couleur-texte)}.st-document__titre{margin-block:var(--st-espacement-6) var(--st-espacement-2)}h2.st-document__titre{font-family:var(--st-police-titre, var(--st-police-base));font-size:var(--st-taille-xl);line-height:var(--st-interligne-xl);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-xl)}h3.st-document__titre{font-family:var(--st-police-titre, var(--st-police-base));font-size:var(--st-taille-lg);line-height:var(--st-interligne-md);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-lg)}h4.st-document__titre,h5.st-document__titre{font-size:var(--st-taille-md);line-height:var(--st-interligne-md);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-interlettrage-normal)}.st-document__titre:first-child{margin-block-start:0}.st-document__paragraphe,.st-document__liste{margin-block:0 var(--st-espacement-4)}.st-document__liste{padding-inline-start:var(--st-espacement-6)}.st-document__liste>li+li{margin-block-start:var(--st-espacement-1)}.st-document__lien:focus-visible{outline:var(--st-focus-epaisseur) solid var(--st-couleur-anneau-focus);outline-offset:var(--st-focus-decalage);box-shadow:0 0 0 var(--st-focus-lisere) var(--st-couleur-lisere-focus)}.st-document__lien{color:var(--st-couleur-texte-primaire);text-decoration:underline;text-decoration-thickness:var(--st-epaisseur-fine);text-decoration-skip-ink:auto;text-underline-offset:var(--st-espacement-demi);border-radius:var(--st-rayon-xs);transition:color var(--st-duree-rapide) var(--st-courbe-standard)}@media(hover:hover){.st-document__lien:hover{color:var(--st-couleur-primaire-survol);text-decoration-thickness:var(--st-epaisseur-moyenne)}}.st-document__lien:active{color:var(--st-couleur-primaire-actif)}\n"],
|
|
3873
3872
|
dependencies: [{
|
|
3874
3873
|
kind: "directive",
|
|
3875
3874
|
type: NgTemplateOutlet,
|
|
@@ -3885,7 +3884,7 @@ var StDocument = class StDocument {
|
|
|
3885
3884
|
};
|
|
3886
3885
|
i0.ɵɵngDeclareClassMetadata({
|
|
3887
3886
|
minVersion: "12.0.0",
|
|
3888
|
-
version: "22.2.
|
|
3887
|
+
version: "22.2.1",
|
|
3889
3888
|
ngImport: i0,
|
|
3890
3889
|
type: StDocument,
|
|
3891
3890
|
decorators: [{
|
|
@@ -3899,7 +3898,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3899
3898
|
"(click)": "suivre($event)"
|
|
3900
3899
|
},
|
|
3901
3900
|
template: "@for (bloc of document().blocs; track $index) {\n @switch (bloc.type) {\n @case ('titre') {\n @switch (niveau(bloc)) {\n @case (2) {\n <h2 class=\"st-document__titre\">{{ bloc.texte }}</h2>\n }\n @case (3) {\n <h3 class=\"st-document__titre\">{{ bloc.texte }}</h3>\n }\n @case (4) {\n <h4 class=\"st-document__titre\">{{ bloc.texte }}</h4>\n }\n @default {\n <h5 class=\"st-document__titre\">{{ bloc.texte }}</h5>\n }\n }\n }\n @case ('paragraphe') {\n <p class=\"st-document__paragraphe\">\n <ng-container\n [ngTemplateOutlet]=\"enLigne\"\n [ngTemplateOutletContext]=\"{ $implicit: bloc.contenu }\"\n />\n </p>\n }\n @case ('liste') {\n @if (bloc.numerotee) {\n <ol class=\"st-document__liste\">\n @for (element of bloc.elements; track $index) {\n <li>\n <ng-container\n [ngTemplateOutlet]=\"enLigne\"\n [ngTemplateOutletContext]=\"{ $implicit: element }\"\n />\n </li>\n }\n </ol>\n } @else {\n <ul class=\"st-document__liste\">\n @for (element of bloc.elements; track $index) {\n <li>\n <ng-container\n [ngTemplateOutlet]=\"enLigne\"\n [ngTemplateOutletContext]=\"{ $implicit: element }\"\n />\n </li>\n }\n </ul>\n }\n }\n }\n}\n\n<ng-template #enLigne let-contenu>\n @for (morceau of contenu; track $index) {\n @if (estLien(morceau)) {\n <a\n class=\"st-document__lien\"\n [href]=\"adresse(morceau.lien)\"\n [attr.data-chemin]=\"morceau.lien\"\n >{{ morceau.texte }}</a\n >\n } @else if (estEmphase(morceau)) {\n @if (morceau.emphase === 'forte') {\n <strong>{{ morceau.texte }}</strong>\n } @else {\n <em>{{ morceau.texte }}</em>\n }\n } @else {\n <!-- Le texte SANS blanc autour : un blanc du gabarit deviendrait une espace avant la\n virgule qui suit une emphase (« telephone , du lundi », mesure du lot 280). -->\n <ng-container>{{ morceau }}</ng-container>\n }\n }\n</ng-template>\n",
|
|
3902
|
-
styles: [".st-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host([hidden]){display:none!important}:host{font-size:var(--st-taille-md);line-height:var(--st-interligne-md);font-weight:var(--st-graisse-normale);letter-spacing:var(--st-interlettrage-normal);display:block;max-inline-size:70ch;color:var(--st-couleur-texte)}.st-document__titre{margin-block:var(--st-espacement-6) var(--st-espacement-2)}h2.st-document__titre{font-size:var(--st-taille-xl);line-height:var(--st-interligne-xl);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-xl)}h3.st-document__titre{font-size:var(--st-taille-lg);line-height:var(--st-interligne-md);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-lg)}h4.st-document__titre,h5.st-document__titre{font-size:var(--st-taille-md);line-height:var(--st-interligne-md);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-interlettrage-normal)}.st-document__titre:first-child{margin-block-start:0}.st-document__paragraphe,.st-document__liste{margin-block:0 var(--st-espacement-4)}.st-document__liste{padding-inline-start:var(--st-espacement-6)}.st-document__liste>li+li{margin-block-start:var(--st-espacement-1)}.st-document__lien:focus-visible{outline:var(--st-focus-epaisseur) solid var(--st-couleur-anneau-focus);outline-offset:var(--st-focus-decalage);box-shadow:0 0 0 var(--st-focus-lisere) var(--st-couleur-lisere-focus)}.st-document__lien{color:var(--st-couleur-texte-primaire);text-decoration:underline;text-decoration-thickness:var(--st-epaisseur-fine);text-decoration-skip-ink:auto;text-underline-offset:var(--st-espacement-demi);border-radius:var(--st-rayon-xs);transition:color var(--st-duree-rapide) var(--st-courbe-standard)}@media(hover:hover){.st-document__lien:hover{color:var(--st-couleur-primaire-survol);text-decoration-thickness:var(--st-epaisseur-moyenne)}}.st-document__lien:active{color:var(--st-couleur-primaire-actif)}\n"]
|
|
3901
|
+
styles: [".st-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host([hidden]){display:none!important}:host{font-size:var(--st-taille-md);line-height:var(--st-interligne-md);font-weight:var(--st-graisse-normale);letter-spacing:var(--st-interlettrage-normal);display:block;max-inline-size:70ch;color:var(--st-couleur-texte)}.st-document__titre{margin-block:var(--st-espacement-6) var(--st-espacement-2)}h2.st-document__titre{font-family:var(--st-police-titre, var(--st-police-base));font-size:var(--st-taille-xl);line-height:var(--st-interligne-xl);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-xl)}h3.st-document__titre{font-family:var(--st-police-titre, var(--st-police-base));font-size:var(--st-taille-lg);line-height:var(--st-interligne-md);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-approche-lg)}h4.st-document__titre,h5.st-document__titre{font-size:var(--st-taille-md);line-height:var(--st-interligne-md);font-weight:var(--st-graisse-semi);letter-spacing:var(--st-interlettrage-normal)}.st-document__titre:first-child{margin-block-start:0}.st-document__paragraphe,.st-document__liste{margin-block:0 var(--st-espacement-4)}.st-document__liste{padding-inline-start:var(--st-espacement-6)}.st-document__liste>li+li{margin-block-start:var(--st-espacement-1)}.st-document__lien:focus-visible{outline:var(--st-focus-epaisseur) solid var(--st-couleur-anneau-focus);outline-offset:var(--st-focus-decalage);box-shadow:0 0 0 var(--st-focus-lisere) var(--st-couleur-lisere-focus)}.st-document__lien{color:var(--st-couleur-texte-primaire);text-decoration:underline;text-decoration-thickness:var(--st-epaisseur-fine);text-decoration-skip-ink:auto;text-underline-offset:var(--st-espacement-demi);border-radius:var(--st-rayon-xs);transition:color var(--st-duree-rapide) var(--st-courbe-standard)}@media(hover:hover){.st-document__lien:hover{color:var(--st-couleur-primaire-survol);text-decoration-thickness:var(--st-epaisseur-moyenne)}}.st-document__lien:active{color:var(--st-couleur-primaire-actif)}\n"]
|
|
3903
3902
|
}]
|
|
3904
3903
|
}],
|
|
3905
3904
|
propDecorators: {
|
|
@@ -3921,6 +3920,493 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3921
3920
|
}]
|
|
3922
3921
|
}
|
|
3923
3922
|
});
|
|
3924
|
-
|
|
3923
|
+
const OPACITE_DE_FILIGRANE = {
|
|
3924
|
+
min: .04,
|
|
3925
|
+
defaut: .08,
|
|
3926
|
+
max: .2
|
|
3927
|
+
};
|
|
3928
|
+
const ENTITES = {
|
|
3929
|
+
"&": "&",
|
|
3930
|
+
"<": "<",
|
|
3931
|
+
">": ">",
|
|
3932
|
+
"\"": """,
|
|
3933
|
+
"'": "'"
|
|
3934
|
+
};
|
|
3935
|
+
function motifDeFiligrane(texte) {
|
|
3936
|
+
const echappe = texte.replace(/[&<>"']/g, (caractere) => ENTITES[caractere] ?? caractere);
|
|
3937
|
+
const largeur = Math.max(240, Array.from(texte).length * 9 + 96);
|
|
3938
|
+
const hauteur = 160;
|
|
3939
|
+
const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${largeur.toString()}" height="${hauteur.toString()}"><text x="50%" y="50%" text-anchor="middle" dominant-baseline="middle" transform="rotate(-30 ${(largeur / 2).toString()} ${(hauteur / 2).toString()})" font-family="system-ui, sans-serif" font-size="16" font-weight="600">${echappe}</text></svg>`;
|
|
3940
|
+
return `url("data:image/svg+xml,${encodeURIComponent(svg)}")`;
|
|
3941
|
+
}
|
|
3942
|
+
var StWatermark = class StWatermark {
|
|
3943
|
+
texte = input.required(...ngDevMode ? [{ debugName: "texte" }] : /* istanbul ignore next */ []);
|
|
3944
|
+
imprime = input(true, {
|
|
3945
|
+
...ngDevMode ? { debugName: "imprime" } : /* istanbul ignore next */ {},
|
|
3946
|
+
transform: booleanAttribute
|
|
3947
|
+
});
|
|
3948
|
+
opacite = input(OPACITE_DE_FILIGRANE.defaut, {
|
|
3949
|
+
...ngDevMode ? { debugName: "opacite" } : /* istanbul ignore next */ {},
|
|
3950
|
+
transform: (valeur) => numberAttribute(valeur, OPACITE_DE_FILIGRANE.defaut)
|
|
3951
|
+
});
|
|
3952
|
+
motif = computed(() => motifDeFiligrane(this.texte()), ...ngDevMode ? [{ debugName: "motif" }] : /* istanbul ignore next */ []);
|
|
3953
|
+
opaciteLue = computed(() => Math.min(OPACITE_DE_FILIGRANE.max, Math.max(OPACITE_DE_FILIGRANE.min, this.opacite())), ...ngDevMode ? [{ debugName: "opaciteLue" }] : /* istanbul ignore next */ []);
|
|
3954
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3955
|
+
minVersion: "12.0.0",
|
|
3956
|
+
version: "22.2.1",
|
|
3957
|
+
ngImport: i0,
|
|
3958
|
+
type: StWatermark,
|
|
3959
|
+
deps: [],
|
|
3960
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
3961
|
+
});
|
|
3962
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
3963
|
+
minVersion: "17.1.0",
|
|
3964
|
+
version: "22.2.1",
|
|
3965
|
+
type: StWatermark,
|
|
3966
|
+
isStandalone: true,
|
|
3967
|
+
selector: "st-watermark",
|
|
3968
|
+
inputs: {
|
|
3969
|
+
texte: {
|
|
3970
|
+
classPropertyName: "texte",
|
|
3971
|
+
publicName: "texte",
|
|
3972
|
+
isSignal: true,
|
|
3973
|
+
isRequired: true,
|
|
3974
|
+
transformFunction: null
|
|
3975
|
+
},
|
|
3976
|
+
imprime: {
|
|
3977
|
+
classPropertyName: "imprime",
|
|
3978
|
+
publicName: "imprime",
|
|
3979
|
+
isSignal: true,
|
|
3980
|
+
isRequired: false,
|
|
3981
|
+
transformFunction: null
|
|
3982
|
+
},
|
|
3983
|
+
opacite: {
|
|
3984
|
+
classPropertyName: "opacite",
|
|
3985
|
+
publicName: "opacite",
|
|
3986
|
+
isSignal: true,
|
|
3987
|
+
isRequired: false,
|
|
3988
|
+
transformFunction: null
|
|
3989
|
+
}
|
|
3990
|
+
},
|
|
3991
|
+
host: {
|
|
3992
|
+
attributes: { "aria-hidden": "true" },
|
|
3993
|
+
properties: {
|
|
3994
|
+
"attr.data-hors-impression": "imprime() ? null : \"\"",
|
|
3995
|
+
"style.mask-image": "motif()",
|
|
3996
|
+
"style.opacity": "opaciteLue()"
|
|
3997
|
+
},
|
|
3998
|
+
classAttribute: "st-watermark"
|
|
3999
|
+
},
|
|
4000
|
+
ngImport: i0,
|
|
4001
|
+
template: "<!-- Le filigrane est le masque CSS de l'hote : aucun noeud, rien a lire (aria-hidden). -->\n",
|
|
4002
|
+
styles: [".st-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host([hidden]){display:none!important}:host{position:absolute;inset:0;z-index:var(--st-plan-contenu-eleve);pointer-events:none;background-color:var(--st-couleur-texte);-webkit-mask-repeat:repeat;mask-repeat:repeat;-webkit-mask-position:0 0;mask-position:0 0;-webkit-print-color-adjust:exact;print-color-adjust:exact}@media(forced-colors:active){:host{forced-color-adjust:none;background-color:CanvasText}}@media print{:host([data-hors-impression]){display:none}}\n"],
|
|
4003
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
4004
|
+
});
|
|
4005
|
+
};
|
|
4006
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
4007
|
+
minVersion: "12.0.0",
|
|
4008
|
+
version: "22.2.1",
|
|
4009
|
+
ngImport: i0,
|
|
4010
|
+
type: StWatermark,
|
|
4011
|
+
decorators: [{
|
|
4012
|
+
type: Component,
|
|
4013
|
+
args: [{
|
|
4014
|
+
selector: "st-watermark",
|
|
4015
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4016
|
+
host: {
|
|
4017
|
+
class: "st-watermark",
|
|
4018
|
+
"aria-hidden": "true",
|
|
4019
|
+
"[attr.data-hors-impression]": "imprime() ? null : \"\"",
|
|
4020
|
+
"[style.mask-image]": "motif()",
|
|
4021
|
+
"[style.opacity]": "opaciteLue()"
|
|
4022
|
+
},
|
|
4023
|
+
template: "<!-- Le filigrane est le masque CSS de l'hote : aucun noeud, rien a lire (aria-hidden). -->\n",
|
|
4024
|
+
styles: [".st-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host([hidden]){display:none!important}:host{position:absolute;inset:0;z-index:var(--st-plan-contenu-eleve);pointer-events:none;background-color:var(--st-couleur-texte);-webkit-mask-repeat:repeat;mask-repeat:repeat;-webkit-mask-position:0 0;mask-position:0 0;-webkit-print-color-adjust:exact;print-color-adjust:exact}@media(forced-colors:active){:host{forced-color-adjust:none;background-color:CanvasText}}@media print{:host([data-hors-impression]){display:none}}\n"]
|
|
4025
|
+
}]
|
|
4026
|
+
}],
|
|
4027
|
+
propDecorators: {
|
|
4028
|
+
texte: [{
|
|
4029
|
+
type: i0.Input,
|
|
4030
|
+
args: [{
|
|
4031
|
+
isSignal: true,
|
|
4032
|
+
alias: "texte",
|
|
4033
|
+
required: true
|
|
4034
|
+
}]
|
|
4035
|
+
}],
|
|
4036
|
+
imprime: [{
|
|
4037
|
+
type: i0.Input,
|
|
4038
|
+
args: [{
|
|
4039
|
+
isSignal: true,
|
|
4040
|
+
alias: "imprime",
|
|
4041
|
+
required: false
|
|
4042
|
+
}]
|
|
4043
|
+
}],
|
|
4044
|
+
opacite: [{
|
|
4045
|
+
type: i0.Input,
|
|
4046
|
+
args: [{
|
|
4047
|
+
isSignal: true,
|
|
4048
|
+
alias: "opacite",
|
|
4049
|
+
required: false
|
|
4050
|
+
}]
|
|
4051
|
+
}]
|
|
4052
|
+
}
|
|
4053
|
+
});
|
|
4054
|
+
const LIBELLES_DONNEES_FR = {
|
|
4055
|
+
finDuDocument: "Fin du document",
|
|
4056
|
+
aJour: (age) => `\u00c0 jour, ${age}`,
|
|
4057
|
+
perimeeDepuis: (duree) => `P\u00e9rim\u00e9e depuis ${duree}`,
|
|
4058
|
+
libelleDeLaDonnee: (libelle) => `${libelle}\u00a0: `
|
|
4059
|
+
};
|
|
4060
|
+
const LIBELLES_DONNEES_EN = {
|
|
4061
|
+
finDuDocument: "End of document",
|
|
4062
|
+
aJour: (age) => `Up to date, ${age}`,
|
|
4063
|
+
perimeeDepuis: (duree) => `Stale for ${duree}`,
|
|
4064
|
+
libelleDeLaDonnee: (libelle) => `${libelle}: `
|
|
4065
|
+
};
|
|
4066
|
+
const ST_LIBELLES_DONNEES = new InjectionToken("ST_LIBELLES_DONNEES", {
|
|
4067
|
+
providedIn: "root",
|
|
4068
|
+
factory: () => ({
|
|
4069
|
+
fr: LIBELLES_DONNEES_FR,
|
|
4070
|
+
en: LIBELLES_DONNEES_EN
|
|
4071
|
+
})
|
|
4072
|
+
});
|
|
4073
|
+
function fournirLibellesDonnees(catalogues) {
|
|
4074
|
+
return {
|
|
4075
|
+
provide: ST_LIBELLES_DONNEES,
|
|
4076
|
+
useValue: {
|
|
4077
|
+
fr: LIBELLES_DONNEES_FR,
|
|
4078
|
+
en: LIBELLES_DONNEES_EN,
|
|
4079
|
+
...catalogues
|
|
4080
|
+
}
|
|
4081
|
+
};
|
|
4082
|
+
}
|
|
4083
|
+
function libellesDesDonnees() {
|
|
4084
|
+
const catalogue = catalogueDesDonnees();
|
|
4085
|
+
return computed(() => catalogue().libelles);
|
|
4086
|
+
}
|
|
4087
|
+
function catalogueDesDonnees() {
|
|
4088
|
+
return catalogueDuPointDEntree("@starterlib/ui/donnees", inject(ST_LIBELLES_DONNEES), LIBELLES_DONNEES_FR, "fournirLibellesDonnees");
|
|
4089
|
+
}
|
|
4090
|
+
const RECOUVREMENTS = ["--st-hauteur-pied", "--st-hauteur-action"];
|
|
4091
|
+
const PART_VISIBLE = .9;
|
|
4092
|
+
var StLuJusquAuBout = class StLuJusquAuBout {
|
|
4093
|
+
document = inject(DOCUMENT);
|
|
4094
|
+
catalogue = catalogueDesDonnees();
|
|
4095
|
+
libelleDeFin = input(null, ...ngDevMode ? [{ debugName: "libelleDeFin" }] : /* istanbul ignore next */ []);
|
|
4096
|
+
atteint = output();
|
|
4097
|
+
etat = signal(false, ...ngDevMode ? [{ debugName: "etat" }] : /* istanbul ignore next */ []);
|
|
4098
|
+
lu = this.etat.asReadonly();
|
|
4099
|
+
libelleLu = computed(() => this.libelleDeFin() ?? this.catalogue().libelles.finDuDocument, ...ngDevMode ? [{ debugName: "libelleLu" }] : /* istanbul ignore next */ []);
|
|
4100
|
+
langueLue = computed(() => this.libelleDeFin() === null ? this.catalogue().langueDeRepli : null, ...ngDevMode ? [{ debugName: "langueLue" }] : /* istanbul ignore next */ []);
|
|
4101
|
+
sentinelle = viewChild.required("sentinelle", ...ngDevMode ? [{ debugName: "sentinelle" }] : /* istanbul ignore next */ []);
|
|
4102
|
+
observateur = null;
|
|
4103
|
+
surveillant = null;
|
|
4104
|
+
constructor() {
|
|
4105
|
+
afterNextRender(() => {
|
|
4106
|
+
this.observer();
|
|
4107
|
+
});
|
|
4108
|
+
inject(DestroyRef).onDestroy(() => {
|
|
4109
|
+
this.arreter();
|
|
4110
|
+
});
|
|
4111
|
+
}
|
|
4112
|
+
atteindre() {
|
|
4113
|
+
if (this.etat()) return;
|
|
4114
|
+
this.etat.set(true);
|
|
4115
|
+
this.arreter();
|
|
4116
|
+
this.atteint.emit();
|
|
4117
|
+
}
|
|
4118
|
+
observer() {
|
|
4119
|
+
const fenetre = this.document.defaultView;
|
|
4120
|
+
const Observateur = fenetre?.IntersectionObserver;
|
|
4121
|
+
if (fenetre === null || Observateur === void 0 || this.etat()) return;
|
|
4122
|
+
const racine = this.document.documentElement;
|
|
4123
|
+
const armer = () => {
|
|
4124
|
+
this.observateur?.disconnect();
|
|
4125
|
+
const recouvert = Math.max(0, ...RECOUVREMENTS.map((propriete) => parseFloat(racine.style.getPropertyValue(propriete)) || 0));
|
|
4126
|
+
this.observateur = new Observateur((entrees) => {
|
|
4127
|
+
if (entrees.some((entree) => entree.intersectionRatio >= PART_VISIBLE)) this.atteindre();
|
|
4128
|
+
}, {
|
|
4129
|
+
rootMargin: `0px 0px -${Math.ceil(recouvert).toString()}px 0px`,
|
|
4130
|
+
threshold: PART_VISIBLE
|
|
4131
|
+
});
|
|
4132
|
+
this.observateur.observe(this.sentinelle().nativeElement);
|
|
4133
|
+
};
|
|
4134
|
+
armer();
|
|
4135
|
+
this.surveillant = new fenetre.MutationObserver(armer);
|
|
4136
|
+
this.surveillant.observe(racine, {
|
|
4137
|
+
attributes: true,
|
|
4138
|
+
attributeFilter: ["style"]
|
|
4139
|
+
});
|
|
4140
|
+
}
|
|
4141
|
+
arreter() {
|
|
4142
|
+
this.observateur?.disconnect();
|
|
4143
|
+
this.observateur = null;
|
|
4144
|
+
this.surveillant?.disconnect();
|
|
4145
|
+
this.surveillant = null;
|
|
4146
|
+
}
|
|
4147
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
4148
|
+
minVersion: "12.0.0",
|
|
4149
|
+
version: "22.2.1",
|
|
4150
|
+
ngImport: i0,
|
|
4151
|
+
type: StLuJusquAuBout,
|
|
4152
|
+
deps: [],
|
|
4153
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
4154
|
+
});
|
|
4155
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
4156
|
+
minVersion: "17.2.0",
|
|
4157
|
+
version: "22.2.1",
|
|
4158
|
+
type: StLuJusquAuBout,
|
|
4159
|
+
isStandalone: true,
|
|
4160
|
+
selector: "[stLuJusquAuBout]",
|
|
4161
|
+
inputs: { libelleDeFin: {
|
|
4162
|
+
classPropertyName: "libelleDeFin",
|
|
4163
|
+
publicName: "libelleDeFin",
|
|
4164
|
+
isSignal: true,
|
|
4165
|
+
isRequired: false,
|
|
4166
|
+
transformFunction: null
|
|
4167
|
+
} },
|
|
4168
|
+
outputs: { atteint: "atteint" },
|
|
4169
|
+
host: { classAttribute: "st-lu-jusqu-au-bout" },
|
|
4170
|
+
viewQueries: [{
|
|
4171
|
+
propertyName: "sentinelle",
|
|
4172
|
+
first: true,
|
|
4173
|
+
predicate: ["sentinelle"],
|
|
4174
|
+
descendants: true,
|
|
4175
|
+
isSignal: true
|
|
4176
|
+
}],
|
|
4177
|
+
exportAs: ["stLuJusquAuBout"],
|
|
4178
|
+
ngImport: i0,
|
|
4179
|
+
template: "<ng-content />\n<!-- La sentinelle (P08-08) : focalisable, apres le contenu. L'atteindre au defilement, a la\n tabulation ou au curseur du lecteur d'ecran marque la fin du document. -->\n<p\n #sentinelle\n class=\"st-lu-jusqu-au-bout__fin\"\n tabindex=\"0\"\n [attr.lang]=\"langueLue()\"\n (focus)=\"atteindre()\"\n>\n {{ libelleLu() }}\n</p>\n",
|
|
4180
|
+
styles: [".st-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host([hidden]){display:none!important}:host{display:block}.st-lu-jusqu-au-bout__fin{font-size:var(--st-taille-xs);line-height:var(--st-interligne-xs);font-weight:var(--st-graisse-moyenne);letter-spacing:var(--st-interlettrage-large)}.st-lu-jusqu-au-bout__fin:focus-visible{outline:var(--st-focus-epaisseur) solid var(--st-couleur-anneau-focus);outline-offset:var(--st-focus-decalage);box-shadow:0 0 0 var(--st-focus-lisere) var(--st-couleur-lisere-focus)}.st-lu-jusqu-au-bout__fin{display:flex;gap:var(--st-espacement-3);align-items:center;min-block-size:var(--st-cible-min);margin:var(--st-espacement-6) 0 0;color:var(--st-couleur-texte-discret);border-radius:var(--st-rayon-xs)}.st-lu-jusqu-au-bout__fin:before,.st-lu-jusqu-au-bout__fin:after{flex:1 1 0;content:\"\";border-block-start:var(--st-epaisseur-fine) solid var(--st-couleur-bordure)}\n"],
|
|
4181
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
4182
|
+
});
|
|
4183
|
+
};
|
|
4184
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
4185
|
+
minVersion: "12.0.0",
|
|
4186
|
+
version: "22.2.1",
|
|
4187
|
+
ngImport: i0,
|
|
4188
|
+
type: StLuJusquAuBout,
|
|
4189
|
+
decorators: [{
|
|
4190
|
+
type: Component,
|
|
4191
|
+
args: [{
|
|
4192
|
+
selector: "[stLuJusquAuBout]",
|
|
4193
|
+
exportAs: "stLuJusquAuBout",
|
|
4194
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4195
|
+
host: { class: "st-lu-jusqu-au-bout" },
|
|
4196
|
+
template: "<ng-content />\n<!-- La sentinelle (P08-08) : focalisable, apres le contenu. L'atteindre au defilement, a la\n tabulation ou au curseur du lecteur d'ecran marque la fin du document. -->\n<p\n #sentinelle\n class=\"st-lu-jusqu-au-bout__fin\"\n tabindex=\"0\"\n [attr.lang]=\"langueLue()\"\n (focus)=\"atteindre()\"\n>\n {{ libelleLu() }}\n</p>\n",
|
|
4197
|
+
styles: [".st-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host([hidden]){display:none!important}:host{display:block}.st-lu-jusqu-au-bout__fin{font-size:var(--st-taille-xs);line-height:var(--st-interligne-xs);font-weight:var(--st-graisse-moyenne);letter-spacing:var(--st-interlettrage-large)}.st-lu-jusqu-au-bout__fin:focus-visible{outline:var(--st-focus-epaisseur) solid var(--st-couleur-anneau-focus);outline-offset:var(--st-focus-decalage);box-shadow:0 0 0 var(--st-focus-lisere) var(--st-couleur-lisere-focus)}.st-lu-jusqu-au-bout__fin{display:flex;gap:var(--st-espacement-3);align-items:center;min-block-size:var(--st-cible-min);margin:var(--st-espacement-6) 0 0;color:var(--st-couleur-texte-discret);border-radius:var(--st-rayon-xs)}.st-lu-jusqu-au-bout__fin:before,.st-lu-jusqu-au-bout__fin:after{flex:1 1 0;content:\"\";border-block-start:var(--st-epaisseur-fine) solid var(--st-couleur-bordure)}\n"]
|
|
4198
|
+
}]
|
|
4199
|
+
}],
|
|
4200
|
+
ctorParameters: () => [],
|
|
4201
|
+
propDecorators: {
|
|
4202
|
+
libelleDeFin: [{
|
|
4203
|
+
type: i0.Input,
|
|
4204
|
+
args: [{
|
|
4205
|
+
isSignal: true,
|
|
4206
|
+
alias: "libelleDeFin",
|
|
4207
|
+
required: false
|
|
4208
|
+
}]
|
|
4209
|
+
}],
|
|
4210
|
+
atteint: [{
|
|
4211
|
+
type: i0.Output,
|
|
4212
|
+
args: ["atteint"]
|
|
4213
|
+
}],
|
|
4214
|
+
sentinelle: [{
|
|
4215
|
+
type: i0.ViewChild,
|
|
4216
|
+
args: ["sentinelle", { isSignal: true }]
|
|
4217
|
+
}]
|
|
4218
|
+
}
|
|
4219
|
+
});
|
|
4220
|
+
const SECONDE = 1e3;
|
|
4221
|
+
function dureeLisible(totalEnSecondes, locale) {
|
|
4222
|
+
const total = Math.max(0, Math.round(totalEnSecondes));
|
|
4223
|
+
const unite = (valeur, nom, deuxChiffres = false) => new Intl.NumberFormat(locale, {
|
|
4224
|
+
style: "unit",
|
|
4225
|
+
unit: nom,
|
|
4226
|
+
unitDisplay: "short",
|
|
4227
|
+
minimumIntegerDigits: deuxChiffres ? 2 : 1
|
|
4228
|
+
}).format(valeur);
|
|
4229
|
+
if (total < 60) return unite(total, "second");
|
|
4230
|
+
if (total < 3600) return `${unite(Math.floor(total / 60), "minute")} ${unite(total % 60, "second", true)}`;
|
|
4231
|
+
return `${unite(Math.floor(total / 3600), "hour")} ${unite(Math.floor(total % 3600 / 60), "minute", true)}`;
|
|
4232
|
+
}
|
|
4233
|
+
var StFreshness = class StFreshness {
|
|
4234
|
+
document = inject(DOCUMENT$1);
|
|
4235
|
+
locale = inject(ST_LOCALE);
|
|
4236
|
+
fuseau = inject(FUSEAU_PAR_DEFAUT);
|
|
4237
|
+
catalogue = catalogueDesDonnees();
|
|
4238
|
+
instant = input.required(...ngDevMode ? [{ debugName: "instant" }] : /* istanbul ignore next */ []);
|
|
4239
|
+
seuil = input.required({
|
|
4240
|
+
...ngDevMode ? { debugName: "seuil" } : /* istanbul ignore next */ {},
|
|
4241
|
+
transform: numberAttribute
|
|
4242
|
+
});
|
|
4243
|
+
libelle = input(null, ...ngDevMode ? [{ debugName: "libelle" }] : /* istanbul ignore next */ []);
|
|
4244
|
+
perimee = output();
|
|
4245
|
+
maintenant = signal(Date.now(), ...ngDevMode ? [{ debugName: "maintenant" }] : /* istanbul ignore next */ []);
|
|
4246
|
+
enMillisecondes = computed(() => {
|
|
4247
|
+
const instant = this.instant();
|
|
4248
|
+
if (instant instanceof Date) return instant.getTime();
|
|
4249
|
+
if (typeof instant === "number") return instant;
|
|
4250
|
+
return lireInstant(instant, this.fuseau) ?? NaN;
|
|
4251
|
+
}, ...ngDevMode ? [{ debugName: "enMillisecondes" }] : /* istanbul ignore next */ []);
|
|
4252
|
+
estValide = computed(() => Number.isFinite(this.enMillisecondes()), ...ngDevMode ? [{ debugName: "estValide" }] : /* istanbul ignore next */ []);
|
|
4253
|
+
age = computed(() => Math.max(0, (this.maintenant() - this.enMillisecondes()) / SECONDE), ...ngDevMode ? [{ debugName: "age" }] : /* istanbul ignore next */ []);
|
|
4254
|
+
estPerimee = computed(() => this.estValide() && this.age() > this.seuil(), ...ngDevMode ? [{ debugName: "estPerimee" }] : /* istanbul ignore next */ []);
|
|
4255
|
+
icone = computed(() => this.estPerimee() ? "triangle-alerte" : "cercle-coche", ...ngDevMode ? [{ debugName: "icone" }] : /* istanbul ignore next */ []);
|
|
4256
|
+
texte = computed(() => {
|
|
4257
|
+
if (!this.estValide()) return "";
|
|
4258
|
+
const libelles = this.catalogue().libelles;
|
|
4259
|
+
return this.estPerimee() ? libelles.perimeeDepuis(dureeLisible(this.age() - this.seuil(), this.locale())) : libelles.aJour(ecartRelatif(this.enMillisecondes(), this.maintenant(), this.locale(), "short"));
|
|
4260
|
+
}, ...ngDevMode ? [{ debugName: "texte" }] : /* istanbul ignore next */ []);
|
|
4261
|
+
iso = computed(() => this.estValide() ? new Date(this.enMillisecondes()).toISOString() : null, ...ngDevMode ? [{ debugName: "iso" }] : /* istanbul ignore next */ []);
|
|
4262
|
+
constructor() {
|
|
4263
|
+
const destruction = inject(DestroyRef);
|
|
4264
|
+
afterNextRender(() => {
|
|
4265
|
+
let minuterie = null;
|
|
4266
|
+
const arreter = () => {
|
|
4267
|
+
if (minuterie !== null) clearTimeout(minuterie);
|
|
4268
|
+
minuterie = null;
|
|
4269
|
+
};
|
|
4270
|
+
const battre = () => {
|
|
4271
|
+
arreter();
|
|
4272
|
+
if (this.document.hidden) return;
|
|
4273
|
+
this.maintenant.set(Date.now());
|
|
4274
|
+
minuterie = setTimeout(battre, SECONDE);
|
|
4275
|
+
};
|
|
4276
|
+
const auChangementDeVisibilite = () => {
|
|
4277
|
+
battre();
|
|
4278
|
+
};
|
|
4279
|
+
this.document.addEventListener("visibilitychange", auChangementDeVisibilite);
|
|
4280
|
+
battre();
|
|
4281
|
+
destruction.onDestroy(() => {
|
|
4282
|
+
arreter();
|
|
4283
|
+
this.document.removeEventListener("visibilitychange", auChangementDeVisibilite);
|
|
4284
|
+
});
|
|
4285
|
+
});
|
|
4286
|
+
let precedente = false;
|
|
4287
|
+
effect(() => {
|
|
4288
|
+
const perimee = this.estPerimee();
|
|
4289
|
+
if (perimee && !precedente) untracked(() => {
|
|
4290
|
+
this.perimee.emit();
|
|
4291
|
+
});
|
|
4292
|
+
precedente = perimee;
|
|
4293
|
+
});
|
|
4294
|
+
}
|
|
4295
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
4296
|
+
minVersion: "12.0.0",
|
|
4297
|
+
version: "22.2.1",
|
|
4298
|
+
ngImport: i0,
|
|
4299
|
+
type: StFreshness,
|
|
4300
|
+
deps: [],
|
|
4301
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
4302
|
+
});
|
|
4303
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
4304
|
+
minVersion: "17.0.0",
|
|
4305
|
+
version: "22.2.1",
|
|
4306
|
+
type: StFreshness,
|
|
4307
|
+
isStandalone: true,
|
|
4308
|
+
selector: "st-freshness",
|
|
4309
|
+
inputs: {
|
|
4310
|
+
instant: {
|
|
4311
|
+
classPropertyName: "instant",
|
|
4312
|
+
publicName: "instant",
|
|
4313
|
+
isSignal: true,
|
|
4314
|
+
isRequired: true,
|
|
4315
|
+
transformFunction: null
|
|
4316
|
+
},
|
|
4317
|
+
seuil: {
|
|
4318
|
+
classPropertyName: "seuil",
|
|
4319
|
+
publicName: "seuil",
|
|
4320
|
+
isSignal: true,
|
|
4321
|
+
isRequired: true,
|
|
4322
|
+
transformFunction: null
|
|
4323
|
+
},
|
|
4324
|
+
libelle: {
|
|
4325
|
+
classPropertyName: "libelle",
|
|
4326
|
+
publicName: "libelle",
|
|
4327
|
+
isSignal: true,
|
|
4328
|
+
isRequired: false,
|
|
4329
|
+
transformFunction: null
|
|
4330
|
+
}
|
|
4331
|
+
},
|
|
4332
|
+
outputs: { perimee: "perimee" },
|
|
4333
|
+
host: {
|
|
4334
|
+
properties: { "attr.data-perimee": "estPerimee() ? \"\" : null" },
|
|
4335
|
+
classAttribute: "st-freshness"
|
|
4336
|
+
},
|
|
4337
|
+
ngImport: i0,
|
|
4338
|
+
template: "@if (estValide()) {\n <st-icon\n [nom]=\"icone()\"\n variante=\"plein\"\n taille=\"16\"\n [ton]=\"estPerimee() ? 'avertissement' : 'succes'\"\n />\n <!-- Aucune region vivante : ce texte se reecrit chaque seconde (P08-12). -->\n <span class=\"st-freshness__texte\">\n @if (libelle(); as nom) {\n <span class=\"st-freshness__libelle\">{{ catalogue().libelles.libelleDeLaDonnee(nom) }}</span>\n }\n <time [attr.datetime]=\"iso()\" [attr.lang]=\"catalogue().langueDeRepli\">{{ texte() }}</time>\n </span>\n}\n",
|
|
4339
|
+
styles: [".st-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host([hidden]){display:none!important}:host{font-size:var(--st-taille-xs);line-height:var(--st-interligne-xs);font-weight:var(--st-graisse-moyenne);letter-spacing:var(--st-interlettrage-large);display:inline-flex;gap:var(--st-espacement-1);align-items:center;color:var(--st-couleur-texte-discret)}:host([data-perimee]){color:var(--st-couleur-texte)}.st-freshness__libelle{color:var(--st-couleur-texte)}\n"],
|
|
4340
|
+
dependencies: [{
|
|
4341
|
+
kind: "component",
|
|
4342
|
+
type: StIcon,
|
|
4343
|
+
selector: "st-icon",
|
|
4344
|
+
inputs: [
|
|
4345
|
+
"icone",
|
|
4346
|
+
"nom",
|
|
4347
|
+
"variante",
|
|
4348
|
+
"sprite",
|
|
4349
|
+
"nomMetier",
|
|
4350
|
+
"taille",
|
|
4351
|
+
"ton",
|
|
4352
|
+
"etiquette",
|
|
4353
|
+
"miroir"
|
|
4354
|
+
]
|
|
4355
|
+
}],
|
|
4356
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
4357
|
+
});
|
|
4358
|
+
};
|
|
4359
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
4360
|
+
minVersion: "12.0.0",
|
|
4361
|
+
version: "22.2.1",
|
|
4362
|
+
ngImport: i0,
|
|
4363
|
+
type: StFreshness,
|
|
4364
|
+
decorators: [{
|
|
4365
|
+
type: Component,
|
|
4366
|
+
args: [{
|
|
4367
|
+
selector: "st-freshness",
|
|
4368
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4369
|
+
imports: [StIcon],
|
|
4370
|
+
host: {
|
|
4371
|
+
class: "st-freshness",
|
|
4372
|
+
"[attr.data-perimee]": "estPerimee() ? \"\" : null"
|
|
4373
|
+
},
|
|
4374
|
+
template: "@if (estValide()) {\n <st-icon\n [nom]=\"icone()\"\n variante=\"plein\"\n taille=\"16\"\n [ton]=\"estPerimee() ? 'avertissement' : 'succes'\"\n />\n <!-- Aucune region vivante : ce texte se reecrit chaque seconde (P08-12). -->\n <span class=\"st-freshness__texte\">\n @if (libelle(); as nom) {\n <span class=\"st-freshness__libelle\">{{ catalogue().libelles.libelleDeLaDonnee(nom) }}</span>\n }\n <time [attr.datetime]=\"iso()\" [attr.lang]=\"catalogue().langueDeRepli\">{{ texte() }}</time>\n </span>\n}\n",
|
|
4375
|
+
styles: [".st-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host([hidden]){display:none!important}:host{font-size:var(--st-taille-xs);line-height:var(--st-interligne-xs);font-weight:var(--st-graisse-moyenne);letter-spacing:var(--st-interlettrage-large);display:inline-flex;gap:var(--st-espacement-1);align-items:center;color:var(--st-couleur-texte-discret)}:host([data-perimee]){color:var(--st-couleur-texte)}.st-freshness__libelle{color:var(--st-couleur-texte)}\n"]
|
|
4376
|
+
}]
|
|
4377
|
+
}],
|
|
4378
|
+
ctorParameters: () => [],
|
|
4379
|
+
propDecorators: {
|
|
4380
|
+
instant: [{
|
|
4381
|
+
type: i0.Input,
|
|
4382
|
+
args: [{
|
|
4383
|
+
isSignal: true,
|
|
4384
|
+
alias: "instant",
|
|
4385
|
+
required: true
|
|
4386
|
+
}]
|
|
4387
|
+
}],
|
|
4388
|
+
seuil: [{
|
|
4389
|
+
type: i0.Input,
|
|
4390
|
+
args: [{
|
|
4391
|
+
isSignal: true,
|
|
4392
|
+
alias: "seuil",
|
|
4393
|
+
required: true
|
|
4394
|
+
}]
|
|
4395
|
+
}],
|
|
4396
|
+
libelle: [{
|
|
4397
|
+
type: i0.Input,
|
|
4398
|
+
args: [{
|
|
4399
|
+
isSignal: true,
|
|
4400
|
+
alias: "libelle",
|
|
4401
|
+
required: false
|
|
4402
|
+
}]
|
|
4403
|
+
}],
|
|
4404
|
+
perimee: [{
|
|
4405
|
+
type: i0.Output,
|
|
4406
|
+
args: ["perimee"]
|
|
4407
|
+
}]
|
|
4408
|
+
}
|
|
4409
|
+
});
|
|
4410
|
+
export { LIBELLES_DONNEES_EN, LIBELLES_DONNEES_FR, OPACITE_DE_FILIGRANE, ST_LIBELLES_DONNEES, StAmountSummary, StAvatarGroup, StBarList, StCode, StCount, StDate, StDeadline, StDocument, StDuration, StFreshness, StKbd, StLuJusquAuBout, StMasked, StMeter, StMoney, StNumber, StPerson, StRelativeTime, StRepartition, StStat, StStatGroup, StWatermark, catalogueDesDonnees, fournirLibellesDonnees, libellesDesDonnees, motifDeFiligrane, zonesDeJauge };
|
|
3925
4411
|
|
|
3926
4412
|
//# sourceMappingURL=starterlib-ui-donnees.mjs.map
|