@cityway/basic-ui 1.1.0-beta031 → 1.1.0-beta033
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-beta033.tgz +0 -0
- package/docs/00-overview.md +2 -0
- package/docs/MIGRATION.md +25 -1
- 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 +2 -0
- package/fesm2022/cityway-basic-ui.mjs +41 -10
- package/fesm2022/cityway-basic-ui.mjs.map +1 -1
- package/index.d.ts +33 -5
- package/lib/styles/scss/_reboot.scss +1 -1
- package/lib/styles/scss/_root-fo.scss +0 -2
- package/lib/styles/scss/components/_breadcrumb.scss +41 -0
- package/lib/styles/scss/components/_card.scss +13 -0
- package/lib/styles/scss/components/_dropdown.scss +14 -1
- package/lib/styles/scss/components/_modal.scss +3 -2
- package/lib/styles/scss/components/_overlay-cdk.scss +3 -2
- package/lib/styles/scss/components/_toast.scss +1 -1
- package/lib/styles/scss/fo/_layout-sidenav.scss +3 -7
- package/lib/styles/scss/fo/_page-head.scss +116 -119
- package/lib/styles/scss/fo/_page.scss +1 -1
- package/lib/styles/scss/fo/_site-header.scss +3 -14
- package/package.json +2 -2
- package/styles/basic-ui.styles.bo.min.css +2 -2
- 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,17 @@ 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>;
|
|
2873
|
+
/**
|
|
2874
|
+
* Liste affichée directement, sans bouton déclencheur ni surcouche : le panneau (mention, titre, langues) est
|
|
2875
|
+
* visible dans le flux, pour un menu mobile ou une page de réglages. Les langues y sont des boutons radio
|
|
2876
|
+
* (`role="radiogroup"`). Défaut : `false` (bouton + menu déroulant). Lu au premier rendu.
|
|
2877
|
+
*/
|
|
2878
|
+
readonly inline: _angular_core.InputSignal<boolean>;
|
|
2851
2879
|
/** Émis au clic sur une langue différente de l'active. Émet le CODE (ex. 'en'). */
|
|
2852
2880
|
readonly languageChange: _angular_core.OutputEmitterRef<string>;
|
|
2853
2881
|
protected readonly trigger: _angular_core.Signal<ButtonComponent | undefined>;
|
|
@@ -2874,7 +2902,7 @@ declare class LanguageSelectorComponent {
|
|
|
2874
2902
|
protected hasName(code: string): boolean;
|
|
2875
2903
|
protected onSelect(code: string): void;
|
|
2876
2904
|
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>;
|
|
2905
|
+
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; }; "inline": { "alias": "inline"; "required": false; "isSignal": true; }; }, { "languageChange": "languageChange"; }, never, never, true, never>;
|
|
2878
2906
|
}
|
|
2879
2907
|
|
|
2880
2908
|
/**
|
|
@@ -3200,4 +3228,4 @@ interface DataCustomListGroup {
|
|
|
3200
3228
|
}
|
|
3201
3229
|
|
|
3202
3230
|
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 };
|
|
3231
|
+
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 };
|
|
@@ -246,8 +246,6 @@
|
|
|
246
246
|
.breadcrumb {
|
|
247
247
|
--#{p.$prefix}-breadcrumb-color: var(--#{p.$prefix}-text-default);
|
|
248
248
|
--#{p.$prefix}-breadcrumb-active-color: var(--#{p.$prefix}-text-default);
|
|
249
|
-
// Séparateur resserré pour tenir sur une ligne en mobile
|
|
250
|
-
--#{p.$prefix}-breadcrumb-item-gap: 0.25rem;
|
|
251
249
|
}
|
|
252
250
|
|
|
253
251
|
// Menu (langue, compte) : panneau flottant, rayon de panneau, sans liseré
|
|
@@ -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 {
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
--#{p.$prefix}-dp-menu-min-width: 12.5rem;
|
|
19
19
|
--#{p.$prefix}-dp-menu-margin-top: #{size(2xs)};
|
|
20
20
|
--#{p.$prefix}-dp-menu-padding: 0; // DS : les items remplissent le menu (pas de padding vertical)
|
|
21
|
-
|
|
21
|
+
// Empilement : jeton `--cw-z-dropdown` (design-tokens, FO), repli = valeur d'origine (BO inchangé)
|
|
22
|
+
--#{p.$prefix}-dp-menu-zindex: var(--#{p.$prefix}-z-dropdown, 1050);
|
|
22
23
|
|
|
23
24
|
// DS "Dropdown / Default" : item = 36px de haut, 10px horizontal, gap icône/label 8px,
|
|
24
25
|
// pas de séparateur (la séparation se fait au hover).
|
|
@@ -112,6 +113,18 @@
|
|
|
112
113
|
}
|
|
113
114
|
}
|
|
114
115
|
}
|
|
116
|
+
|
|
117
|
+
// Panneau affiché dans le flux (ex. `cw-language-selector [inline]`) : mêmes styles d'items, sans surcouche
|
|
118
|
+
&.dropdown-menu-inline {
|
|
119
|
+
position: static;
|
|
120
|
+
min-width: 0;
|
|
121
|
+
margin: 0;
|
|
122
|
+
border: 0;
|
|
123
|
+
border-radius: 0;
|
|
124
|
+
box-shadow: none;
|
|
125
|
+
background-color: transparent;
|
|
126
|
+
overflow: visible;
|
|
127
|
+
}
|
|
115
128
|
}
|
|
116
129
|
}
|
|
117
130
|
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.modal {
|
|
14
|
-
|
|
14
|
+
// Empilement : jetons `--cw-z-modal` / `--cw-z-modal-backdrop` (design-tokens, FO), repli = valeurs d'origine (BO inchangé)
|
|
15
|
+
--#{p.$prefix}-modal-zindex: var(--#{p.$prefix}-z-modal, 1055);
|
|
15
16
|
--#{p.$prefix}-modal-width: 500px;
|
|
16
17
|
--#{p.$prefix}-modal-padding: #{size(md)};
|
|
17
18
|
--#{p.$prefix}-modal-margin: 0.5rem;
|
|
@@ -228,7 +229,7 @@
|
|
|
228
229
|
}
|
|
229
230
|
|
|
230
231
|
&-backdrop {
|
|
231
|
-
--#{p.$prefix}-backdrop-zindex: 1050;
|
|
232
|
+
--#{p.$prefix}-backdrop-zindex: var(--#{p.$prefix}-z-modal-backdrop, 1050);
|
|
232
233
|
--#{p.$prefix}-backdrop-bg: #000;
|
|
233
234
|
--#{p.$prefix}-backdrop-opacity: 0.5;
|
|
234
235
|
// Le backdrop est un FRERE de .modal dans le template : il n'herite pas des
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// Styles structurels du CDK Overlay (conteneur/pane/backdrop), requis pour que
|
|
2
2
|
// les overlays portés à la racine (ex. CwTooltipDirective) se positionnent.
|
|
3
|
-
// z-index relevé au-dessus des modales (1055) et toasts (2000
|
|
4
|
-
// tooltip reste visible dans ces contextes.
|
|
3
|
+
// z-index relevé au-dessus des modales (1055 en BO, `--cw-z-modal` 1150 en FO) et des toasts (2000 en BO,
|
|
4
|
+
// `--cw-z-toast` 1600 en FO) pour que le tooltip reste visible dans ces contextes. Valeur fixe : le paramètre du
|
|
5
|
+
// CDK est une constante Sass, pas une variable CSS.
|
|
5
6
|
@use "@angular/cdk/overlay" as cdk-overlay with ($overlay-container-z-index: 2100);
|
|
6
7
|
|
|
7
8
|
@include cdk-overlay.overlay();
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
position: fixed;
|
|
7
7
|
left: #{size(md)};
|
|
8
8
|
right: #{size(md)};
|
|
9
|
-
z-index: 2000; //
|
|
9
|
+
z-index: var(--#{p.$prefix}-z-toast, 2000); // jeton design-tokens (FO), repli = valeur d'origine (BO inchangé)
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
gap: #{size(md)};
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
// Navigation de rubriques (espace compte, menu des pages de contenu) : titre + sous-texte + chevron ;
|
|
23
|
-
// en cours = trait + titre primaire
|
|
23
|
+
// en cours = trait + titre primaire (la graisse ne change pas : la largeur du texte reste stable)
|
|
24
24
|
.sidenav {
|
|
25
25
|
position: sticky;
|
|
26
26
|
top: var(--cw-gap-md);
|
|
@@ -68,11 +68,11 @@
|
|
|
68
68
|
color: var(--cw-text-secondary);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
// En cours : page (rubrique, sous-page) ou position dans la page (sommaire, ancre à l'écran)
|
|
71
|
+
// En cours : page (rubrique, sous-page) ou position dans la page (sommaire, ancre à l'écran). Couleur et trait
|
|
72
|
+
// seulement, sans changement de graisse.
|
|
72
73
|
&[aria-current="page"],
|
|
73
74
|
&[aria-current="location"] {
|
|
74
75
|
color: var(--cw-text-primary);
|
|
75
|
-
font-weight: 800;
|
|
76
76
|
box-shadow: inset 5px 0 0 var(--cw-surface-primary);
|
|
77
77
|
|
|
78
78
|
svg {
|
|
@@ -92,9 +92,5 @@
|
|
|
92
92
|
padding-inline-start: calc(var(--cw-layout-card-px) + var(--cw-padding-md));
|
|
93
93
|
font-size: 0.9375rem;
|
|
94
94
|
font-weight: 500;
|
|
95
|
-
|
|
96
|
-
&[aria-current] {
|
|
97
|
-
font-weight: 700;
|
|
98
|
-
}
|
|
99
95
|
}
|
|
100
96
|
}
|
|
@@ -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
|
+
}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
top: 6px; // sous le filet de marque
|
|
23
23
|
left: 0;
|
|
24
24
|
right: 0;
|
|
25
|
-
z-index: 5;
|
|
25
|
+
z-index: var(--cw-z-header, 5);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.site-header-content {
|
|
@@ -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-beta033",
|
|
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-beta033",
|
|
16
16
|
"intl-tel-input": "^28.0.7"
|
|
17
17
|
},
|
|
18
18
|
"peerDependenciesMeta": {
|