@cityway/basic-ui 1.1.0-beta031 → 1.1.0-beta032
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/cityway-basic-ui-1.1.0-beta032.tgz +0 -0
- package/docs/MIGRATION.md +11 -0
- package/docs/components/breadcrumb.md +10 -0
- package/docs/components/button.md +1 -0
- package/docs/components/card.md +13 -2
- package/docs/components/language-selector.md +1 -0
- package/fesm2022/cityway-basic-ui.mjs +35 -10
- package/fesm2022/cityway-basic-ui.mjs.map +1 -1
- package/index.d.ts +27 -5
- package/lib/styles/scss/components/_breadcrumb.scss +41 -0
- package/lib/styles/scss/components/_card.scss +13 -0
- package/lib/styles/scss/fo/_page-head.scss +116 -119
- package/lib/styles/scss/fo/_site-header.scss +2 -13
- package/package.json +2 -2
- package/styles/basic-ui.styles.bo.min.css +1 -1
- package/styles/basic-ui.styles.bo.min.css.map +1 -1
- package/styles/basic-ui.styles.fo-patterns.min.css +1 -1
- package/styles/basic-ui.styles.fo-patterns.min.css.map +1 -1
- package/styles/basic-ui.styles.fo.min.css +1 -1
- package/styles/basic-ui.styles.fo.min.css.map +1 -1
- package/cityway-basic-ui-1.1.0-beta031.tgz +0 -0
package/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { BehaviorSubject, Observable } from 'rxjs';
|
|
|
4
4
|
import { Options } from '@angular-slider/ngx-slider';
|
|
5
5
|
export { Options } from '@angular-slider/ngx-slider';
|
|
6
6
|
import { FormControl, AbstractControl, FormGroup, ValidationErrors, ControlValueAccessor } from '@angular/forms';
|
|
7
|
+
import { Params } from '@angular/router';
|
|
7
8
|
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
8
9
|
|
|
9
10
|
declare class CollapseDirective implements OnInit {
|
|
@@ -24,7 +25,8 @@ declare class CollapseDirective implements OnInit {
|
|
|
24
25
|
|
|
25
26
|
declare enum CardTypeEnum {
|
|
26
27
|
default = "default",
|
|
27
|
-
light = "light"
|
|
28
|
+
light = "light",
|
|
29
|
+
danger = "danger"
|
|
28
30
|
}
|
|
29
31
|
declare enum CardTitleRankEnum {
|
|
30
32
|
h2 = "h2",
|
|
@@ -955,6 +957,7 @@ declare enum TooltipPositionEnum {
|
|
|
955
957
|
|
|
956
958
|
declare class ResponsiveService {
|
|
957
959
|
private destroyRef;
|
|
960
|
+
private isBrowser;
|
|
958
961
|
checkIsMobileResolution$: BehaviorSubject<boolean>;
|
|
959
962
|
constructor();
|
|
960
963
|
private checkIsMobileResolution;
|
|
@@ -1037,7 +1040,7 @@ declare class ButtonComponent implements OnInit {
|
|
|
1037
1040
|
readonly tooltipText: _angular_core.InputSignal<string>;
|
|
1038
1041
|
readonly tooltipTitle: _angular_core.InputSignal<string>;
|
|
1039
1042
|
readonly tooltipTrigger: _angular_core.InputSignal<TriggerTooltipEnum>;
|
|
1040
|
-
readonly tooltipPosition: _angular_core.InputSignal<
|
|
1043
|
+
readonly tooltipPosition: _angular_core.InputSignal<DropdownPositionEnum | TooltipPositionEnum>;
|
|
1041
1044
|
readonly tooltipType: _angular_core.InputSignal<TypeTooltipEnum>;
|
|
1042
1045
|
readonly btnAction: _angular_core.OutputEmitterRef<void>;
|
|
1043
1046
|
readonly dropDownClicked: _angular_core.OutputEmitterRef<boolean>;
|
|
@@ -2529,11 +2532,15 @@ declare class RequiredInfoComponent {
|
|
|
2529
2532
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RequiredInfoComponent, "cw-required-info", never, { "allFieldsRequired": { "alias": "allFieldsRequired"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2530
2533
|
}
|
|
2531
2534
|
|
|
2535
|
+
/** Repli des niveaux intermediaires : jamais, toujours, ou sous un point de rupture FO (`sm` < 720 px, `md` < 1000 px). */
|
|
2536
|
+
type CwBreadcrumbCollapse = 'none' | 'always' | 'sm' | 'md';
|
|
2532
2537
|
interface CwBreadcrumbItem {
|
|
2533
2538
|
/** Clé i18n OU chaîne brute. La lib applique `| translate` en interne. */
|
|
2534
2539
|
label: string;
|
|
2535
2540
|
/** Cible RouterLink. Si `undefined` ou si `isCurrent === true`, l'item est rendu en <span> non cliquable. */
|
|
2536
2541
|
link?: string;
|
|
2542
|
+
/** Parametres de requete du lien (ex. `{ context: 'CardsList' }`). Ignores si l'item n'est pas cliquable. */
|
|
2543
|
+
queryParams?: Params;
|
|
2537
2544
|
/** Marque le segment courant. Rendu en <span> avec `aria-current="page"`, même si `link` est défini. */
|
|
2538
2545
|
isCurrent?: boolean;
|
|
2539
2546
|
}
|
|
@@ -2541,12 +2548,22 @@ interface CwBreadcrumbItem {
|
|
|
2541
2548
|
declare class BreadcrumbComponent {
|
|
2542
2549
|
readonly items: _angular_core.InputSignal<CwBreadcrumbItem[]>;
|
|
2543
2550
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
2551
|
+
/**
|
|
2552
|
+
* Replie les niveaux intermediaires (entre le premier et le dernier item) derriere un « … » :
|
|
2553
|
+
* `always`, ou sous un point de rupture (`sm` < 720 px, `md` < 1000 px). Defaut `none`.
|
|
2554
|
+
* Sans effet s'il n'y a pas de niveau intermediaire.
|
|
2555
|
+
*/
|
|
2556
|
+
readonly collapseIntermediate: _angular_core.InputSignal<CwBreadcrumbCollapse>;
|
|
2557
|
+
/** Classe de repli posee sur le `<nav>` (vide si rien a replier). */
|
|
2558
|
+
protected readonly collapseClass: _angular_core.Signal<string | null>;
|
|
2544
2559
|
readonly separatorIcon = SpriteIconEnum.navRight;
|
|
2545
2560
|
readonly iconSizeEnum: typeof IconSizeEnum;
|
|
2546
2561
|
readonly iconType: typeof IconTypeEnum;
|
|
2562
|
+
/** Niveau intermediaire : ni le premier ni le dernier item. */
|
|
2563
|
+
isIntermediate(index: number): boolean;
|
|
2547
2564
|
isClickable(item: CwBreadcrumbItem): boolean;
|
|
2548
2565
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BreadcrumbComponent, never>;
|
|
2549
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BreadcrumbComponent, "cw-breadcrumb", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2566
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BreadcrumbComponent, "cw-breadcrumb", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "collapseIntermediate": { "alias": "collapseIntermediate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2550
2567
|
}
|
|
2551
2568
|
|
|
2552
2569
|
/** Presentation de la dropzone. */
|
|
@@ -2848,6 +2865,11 @@ declare class LanguageSelectorComponent {
|
|
|
2848
2865
|
readonly currentLang: _angular_core.InputSignal<string>;
|
|
2849
2866
|
/** Affiche/masque la ligne d'avertissement « recharge la page ». Défaut: true. */
|
|
2850
2867
|
readonly showReloadHint: _angular_core.InputSignal<boolean>;
|
|
2868
|
+
/**
|
|
2869
|
+
* Position du panneau, relayée au `cw-button` interne : `right` (défaut, menu déroulant aligné à droite), `left`,
|
|
2870
|
+
* ou `static` (liste dans le flux, sans surcouche : menu mobile d'un site).
|
|
2871
|
+
*/
|
|
2872
|
+
readonly dropdownPosition: _angular_core.InputSignal<DropdownPositionEnum>;
|
|
2851
2873
|
/** Émis au clic sur une langue différente de l'active. Émet le CODE (ex. 'en'). */
|
|
2852
2874
|
readonly languageChange: _angular_core.OutputEmitterRef<string>;
|
|
2853
2875
|
protected readonly trigger: _angular_core.Signal<ButtonComponent | undefined>;
|
|
@@ -2874,7 +2896,7 @@ declare class LanguageSelectorComponent {
|
|
|
2874
2896
|
protected hasName(code: string): boolean;
|
|
2875
2897
|
protected onSelect(code: string): void;
|
|
2876
2898
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LanguageSelectorComponent, never>;
|
|
2877
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LanguageSelectorComponent, "cw-language-selector", never, { "languages": { "alias": "languages"; "required": false; "isSignal": true; }; "currentLang": { "alias": "currentLang"; "required": true; "isSignal": true; }; "showReloadHint": { "alias": "showReloadHint"; "required": false; "isSignal": true; }; }, { "languageChange": "languageChange"; }, never, never, true, never>;
|
|
2899
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LanguageSelectorComponent, "cw-language-selector", never, { "languages": { "alias": "languages"; "required": false; "isSignal": true; }; "currentLang": { "alias": "currentLang"; "required": true; "isSignal": true; }; "showReloadHint": { "alias": "showReloadHint"; "required": false; "isSignal": true; }; "dropdownPosition": { "alias": "dropdownPosition"; "required": false; "isSignal": true; }; }, { "languageChange": "languageChange"; }, never, never, true, never>;
|
|
2878
2900
|
}
|
|
2879
2901
|
|
|
2880
2902
|
/**
|
|
@@ -3200,4 +3222,4 @@ interface DataCustomListGroup {
|
|
|
3200
3222
|
}
|
|
3201
3223
|
|
|
3202
3224
|
export { AccordionComponent, AlertComponent, AlertLiveEnum, AlertTypeEnum, BadgeComponent, BadgePositionEnum, BadgeTypeEnum, BoButtonTypeEnum, BoTabTypeEnum, BreadcrumbComponent, ButtonComponent, ButtonIconSizeEnum, ButtonPositionEnum, CW_DEFAULT_THEME_OPTIONS, CardComponent, CardTitleRankEnum, CardTypeEnum, ClickOutsideDirective, CollapseDirective, CwAutocompleteOptionDirective, CwHighlightPipe, CwThemeKeyEnum, CwTooltipDirective, DividerComponent, DropdownComponent, DropdownItemDirective, DropdownPositionEnum, EmptyStateComponent, EmptyStateIllustrationEnum, FileDropComponent, FileDropFileStatusEnum, FileDropModeEnum, FileDropRejectReasonEnum, FilePreviewComponent, FileToDownloadComponent, FoButtonTypeEnum, FoTabTypeEnum, FocusTrackerService, FormFieldComponent, FormFieldTypeEnum, IconComponent, IconNotifSizeEnum, IconNotifTypeEnum, IconNotificationComponent, IconSizeEnum, IconTypeEnum, IconUiTypeEnum, ImageComponent, LanguageSelectorComponent, LegendColorEnum, LegendComponent, LegendTypeEnum, LoaderComponent, LoaderSizeEnum, ModalsComponent, ModalsService, ModalsSize, ModalsState, ModalsTextType, ModalsType, NumericalRangeComponent, NumericalRangeLabelPositionEnum, NumericalRangeTypeEnum, PlacementEnum, RequiredInfoComponent, ResponsiveService, SkipLinksComponent, SpriteIconEnum, StepperComponent, TOAST_AUTOHIDE_DELAY_MS, TabComponent, TabContentComponent, TabLazyDirective, ThemeSelectorComponent, ThemeService, TitleComponent, TitleContextEnum, TitleTagEnum, ToastComponent, ToastItemComponent, ToastService, TooltipPositionEnum, TriggerTooltipEnum, TypeTooltipEnum, highlightTerm, rangeValidator, resolveArrowPos };
|
|
3203
|
-
export type { Attachment, CwAutocompleteColumn, CwAutocompleteFetcher, CwAutocompleteItem, CwAutocompleteOptionContext, CwAutocompleteOptions, CwAutocompleteResolver, CwBadgeOptions, CwBreadcrumbItem, CwExistingFile, CwFileDropItem, CwFileDropRejection, CwRichTextOptions, CwRichTextPreset, CwRichTextToolbar, CwRichTextToolbarControl, CwThemeOption, DataCustomList, DataCustomListGroup, DataLegend, EmptyStateButton, FormFieldOption, FormFieldPeriodShortcut, FormFieldRangeOption, FormFieldValidationOption, Legend, ModalAction, ModalConfig, ModalRef, ShowToastOptions, SkipLink, SubTabChangeEvent, ThemeServiceConfig, Toast, ToastAction };
|
|
3225
|
+
export type { Attachment, CwAutocompleteColumn, CwAutocompleteFetcher, CwAutocompleteItem, CwAutocompleteOptionContext, CwAutocompleteOptions, CwAutocompleteResolver, CwBadgeOptions, CwBreadcrumbCollapse, CwBreadcrumbItem, CwExistingFile, CwFileDropItem, CwFileDropRejection, CwRichTextOptions, CwRichTextPreset, CwRichTextToolbar, CwRichTextToolbarControl, CwThemeOption, DataCustomList, DataCustomListGroup, DataLegend, EmptyStateButton, FormFieldOption, FormFieldPeriodShortcut, FormFieldRangeOption, FormFieldValidationOption, Legend, ModalAction, ModalConfig, ModalRef, ShowToastOptions, SkipLink, SubTabChangeEvent, ThemeServiceConfig, Toast, ToastAction };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use "@cityway/design-tokens/primitives" as p;
|
|
2
2
|
@use "@cityway/design-tokens/functions" as *;
|
|
3
|
+
@use "../fo/breakpoints" as bp;
|
|
3
4
|
|
|
4
5
|
.breadcrumb {
|
|
5
6
|
--#{p.$prefix}-breadcrumb-gap: #{size(2xs)};
|
|
@@ -55,4 +56,44 @@
|
|
|
55
56
|
&-text {
|
|
56
57
|
color: inherit;
|
|
57
58
|
}
|
|
59
|
+
|
|
60
|
+
// Repli des niveaux intermediaires (input `collapseIntermediate`) : le « … » n'apparait que lorsque
|
|
61
|
+
// les niveaux sont masques. `always` : toujours ; `sm` / `md` : sous 720 / 1000 px (points de rupture FO).
|
|
62
|
+
&-item-ellipsis {
|
|
63
|
+
display: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&-collapse-always {
|
|
67
|
+
.breadcrumb-item-intermediate {
|
|
68
|
+
display: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.breadcrumb-item-ellipsis {
|
|
72
|
+
display: inline-flex;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&-collapse-sm {
|
|
77
|
+
@include bp.down(sm) {
|
|
78
|
+
.breadcrumb-item-intermediate {
|
|
79
|
+
display: none;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.breadcrumb-item-ellipsis {
|
|
83
|
+
display: inline-flex;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&-collapse-md {
|
|
89
|
+
@include bp.down(md) {
|
|
90
|
+
.breadcrumb-item-intermediate {
|
|
91
|
+
display: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.breadcrumb-item-ellipsis {
|
|
95
|
+
display: inline-flex;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
58
99
|
}
|
|
@@ -187,6 +187,19 @@ $card-list-border: 1px solid var(--#{p.$prefix}-card-list-border-color);
|
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
+
// Variante danger (panneau de confirmation d'une action destructive) : meme principe que `light`
|
|
191
|
+
// (fond de surface, sans ombre), teinte par le fond `status/danger/surface-light` (clair, FO et BO).
|
|
192
|
+
// Le separateur des listes reste celui de la carte.
|
|
193
|
+
&-danger {
|
|
194
|
+
--#{p.$prefix}-card-bg: var(--#{p.$prefix}-status-danger-surface-light);
|
|
195
|
+
--#{p.$prefix}-card-bs: none;
|
|
196
|
+
|
|
197
|
+
// Badge `lightDanger` : meme teinte que le fond -> on lui rend le fond des surfaces par defaut.
|
|
198
|
+
.badge-light-danger {
|
|
199
|
+
--#{p.$prefix}-badge-bg-color: var(--#{p.$prefix}-surface-default);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
190
203
|
// Panneau collapsible desactive : titre + fleche grises (on ne change QUE les couleurs).
|
|
191
204
|
&-disabled {
|
|
192
205
|
.card-header {
|
|
@@ -1,119 +1,116 @@
|
|
|
1
|
-
// Bandeau de page (pages applicatives : compte, profil…) : fil d'Ariane, titre, actions ; le
|
|
2
|
-
// contenu qui suit (`.page-content`) remonte dessus.
|
|
3
|
-
// <main class="flex-1">
|
|
4
|
-
// <div class="page-head [page-head-dark]">
|
|
5
|
-
// <div class="container page-head-content d-flex-v gap-md">
|
|
6
|
-
// <nav class="breadcrumb">…</nav>
|
|
7
|
-
// <div class="d-flex-h flex-wrap justify-between items-end row-gap-md column-gap-xl">
|
|
8
|
-
// <div><h1 class="page-title">…</h1><p class="d-flex-h flex-wrap items-center row-gap-4xs column-gap-sm mt-2xs">…</p></div>
|
|
9
|
-
// <div class="d-flex-h flex-wrap items-center gap-lg"><a class="page-head-link" href="…">…</a></div>
|
|
10
|
-
// </div>
|
|
11
|
-
// </div>
|
|
12
|
-
// </div>
|
|
13
|
-
// <div class="container page-content">…</div>
|
|
14
|
-
// </main>
|
|
15
|
-
// Clair (défaut) : teinte douce de la charte. Foncé (`.page-head-dark`) : fond du bandeau
|
|
16
|
-
// d'authentification, voile mini 0,72 pour que le texte blanc tienne 4,5:1 sur toute la largeur.
|
|
17
|
-
@use "motifs";
|
|
18
|
-
|
|
19
|
-
.page-head {
|
|
20
|
-
padding-bottom: 80px;
|
|
21
|
-
background: var(--cw-surface-accent-soft);
|
|
22
|
-
|
|
23
|
-
.breadcrumb {
|
|
24
|
-
--cw-breadcrumb-link-color: currentColor;
|
|
25
|
-
--cw-breadcrumb-separator-color: currentColor;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
//
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
//
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
font-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
margin-top: -64px;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
1
|
+
// Bandeau de page (pages applicatives : compte, profil…) : fil d'Ariane, titre, actions ; le
|
|
2
|
+
// contenu qui suit (`.page-content`) remonte dessus.
|
|
3
|
+
// <main class="flex-1">
|
|
4
|
+
// <div class="page-head [page-head-dark]">
|
|
5
|
+
// <div class="container page-head-content d-flex-v gap-md">
|
|
6
|
+
// <nav class="breadcrumb">…</nav>
|
|
7
|
+
// <div class="d-flex-h flex-wrap justify-between items-end row-gap-md column-gap-xl">
|
|
8
|
+
// <div><h1 class="page-title">…</h1><p class="d-flex-h flex-wrap items-center row-gap-4xs column-gap-sm mt-2xs">…</p></div>
|
|
9
|
+
// <div class="d-flex-h flex-wrap items-center gap-lg"><a class="page-head-link" href="…">…</a></div>
|
|
10
|
+
// </div>
|
|
11
|
+
// </div>
|
|
12
|
+
// </div>
|
|
13
|
+
// <div class="container page-content">…</div>
|
|
14
|
+
// </main>
|
|
15
|
+
// Clair (défaut) : teinte douce de la charte. Foncé (`.page-head-dark`) : fond du bandeau
|
|
16
|
+
// d'authentification, voile mini 0,72 pour que le texte blanc tienne 4,5:1 sur toute la largeur.
|
|
17
|
+
@use "motifs";
|
|
18
|
+
|
|
19
|
+
.page-head {
|
|
20
|
+
padding-bottom: 80px;
|
|
21
|
+
background: var(--cw-surface-accent-soft);
|
|
22
|
+
|
|
23
|
+
.breadcrumb {
|
|
24
|
+
--cw-breadcrumb-link-color: currentColor;
|
|
25
|
+
--cw-breadcrumb-separator-color: currentColor;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Haut du bandeau : même réserve avec un header flottant (posé par-dessus) ou classique (dans le flux, au-dessus
|
|
30
|
+
// du bandeau) : le header classique n'entame pas la hauteur du bandeau, comme le `iam-auth-hero`.
|
|
31
|
+
.page-head-content {
|
|
32
|
+
position: relative;
|
|
33
|
+
padding-top: 136px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// Titre de page : bandeau de page et carte d'authentification (même rendu). Taille par le rôle
|
|
37
|
+
// `page-title` du contexte (`data-cw-context`) : 2 rem / 800 / 1,15 en `app` (écrans applicatifs :
|
|
38
|
+
// Mon compte, IAM), fluide de 2 à 4 rem en `editorial`. Poser `data-cw-context="app"` sur les
|
|
39
|
+
// pages applicatives.
|
|
40
|
+
.page-title {
|
|
41
|
+
margin: 0;
|
|
42
|
+
font-family: var(--cw-font-title);
|
|
43
|
+
font-size: var(--cw-type-page-title-size);
|
|
44
|
+
line-height: var(--cw-type-page-title-line-height);
|
|
45
|
+
letter-spacing: var(--cw-type-page-title-letter-spacing);
|
|
46
|
+
font-weight: var(--cw-type-page-title-weight);
|
|
47
|
+
color: var(--cw-text-primary);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Action secondaire du bandeau (Se déconnecter…)
|
|
51
|
+
.page-head-link {
|
|
52
|
+
font-weight: 700;
|
|
53
|
+
color: var(--cw-text-on-accent-soft);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.page-head-dark {
|
|
57
|
+
position: relative;
|
|
58
|
+
background: var(--cw-layout-hero-surface);
|
|
59
|
+
color: var(--cw-text-invert);
|
|
60
|
+
|
|
61
|
+
&::before {
|
|
62
|
+
content: "";
|
|
63
|
+
position: absolute;
|
|
64
|
+
inset: 0;
|
|
65
|
+
background: linear-gradient(90deg, rgba(10, 14, 26, 0.86) 0%, rgba(10, 14, 26, 0.82) 42%, rgba(10, 14, 26, 0.72) 100%);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.breadcrumb,
|
|
69
|
+
.page-title,
|
|
70
|
+
.page-head-link {
|
|
71
|
+
--cw-breadcrumb-color: var(--cw-text-invert);
|
|
72
|
+
--cw-breadcrumb-active-color: var(--cw-text-invert);
|
|
73
|
+
color: var(--cw-text-invert);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:focus-visible {
|
|
77
|
+
outline-color: var(--cw-text-invert);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// Contenu de page : remonte sur le bandeau
|
|
82
|
+
.page-content {
|
|
83
|
+
position: relative;
|
|
84
|
+
margin-top: -48px;
|
|
85
|
+
padding-bottom: 96px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// Premium : bandeau d'affichage ; foncé = fond signature et arc d'accent, clair = papier
|
|
89
|
+
:root[data-cw-style="premium"] {
|
|
90
|
+
.page-head {
|
|
91
|
+
padding-bottom: 104px;
|
|
92
|
+
|
|
93
|
+
.page-title {
|
|
94
|
+
font-size: clamp(2.5rem, 4.4vw, 4rem);
|
|
95
|
+
font-weight: 700;
|
|
96
|
+
line-height: 1;
|
|
97
|
+
letter-spacing: -0.045em;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.page-head:not(.page-head-dark) {
|
|
102
|
+
background: var(--cw-surface-main);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.page-head-dark {
|
|
106
|
+
@include motifs.signature-arc(98% 170%, 16vw);
|
|
107
|
+
|
|
108
|
+
&::before {
|
|
109
|
+
display: none;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.page-content {
|
|
114
|
+
margin-top: -64px;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -98,25 +98,14 @@
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
// Premium : blocs
|
|
101
|
+
// Premium : blocs opaques (le verre laissait voir le bandeau dessous), ombre portée plus marquée
|
|
102
102
|
:root[data-cw-style="premium"] {
|
|
103
103
|
.site-header:not(.site-header-classic) {
|
|
104
104
|
.site-header-bar,
|
|
105
105
|
.site-header-tools {
|
|
106
|
-
background:
|
|
107
|
-
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
|
108
|
-
backdrop-filter: blur(20px) saturate(180%);
|
|
106
|
+
background: var(--header-bg, var(--cw-surface-default));
|
|
109
107
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.24), 0 12px 40px -12px rgba(6, 7, 11, 0.4);
|
|
110
108
|
}
|
|
111
|
-
|
|
112
|
-
@media (prefers-reduced-transparency: reduce) {
|
|
113
|
-
.site-header-bar,
|
|
114
|
-
.site-header-tools {
|
|
115
|
-
background: var(--cw-surface-default);
|
|
116
|
-
-webkit-backdrop-filter: none;
|
|
117
|
-
backdrop-filter: none;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
109
|
}
|
|
121
110
|
|
|
122
111
|
.site-header-logo {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cityway/basic-ui",
|
|
3
|
-
"version": "1.1.0-
|
|
3
|
+
"version": "1.1.0-beta032",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^20.3.0",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"@angular/router": "^20.3.0",
|
|
13
13
|
"@ngx-translate/core": "^16.0.0 || ^17.0.0",
|
|
14
14
|
"rxjs": "^7.8.0",
|
|
15
|
-
"@cityway/design-tokens": "1.1.0-
|
|
15
|
+
"@cityway/design-tokens": "1.1.0-beta032",
|
|
16
16
|
"intl-tel-input": "^28.0.7"
|
|
17
17
|
},
|
|
18
18
|
"peerDependenciesMeta": {
|