@cityway/basic-ui 1.1.0-beta019 → 1.1.0-beta021

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/index.d.ts CHANGED
@@ -949,6 +949,13 @@ declare class ButtonComponent implements OnInit {
949
949
  * un lien n'est pas un bouton bascule, et le dropdown porte deja `aria-expanded`.
950
950
  */
951
951
  readonly isPressed: _angular_core.InputSignal<boolean | undefined>;
952
+ /**
953
+ * Id(s) d'element(s) qui decrivent le bouton, poses en `aria-describedby` sur l'element
954
+ * natif (`<button>`, `<a>` ou toggle du dropdown) : un texte d'aide ou d'avertissement
955
+ * visible a cote, lu apres le libelle. Plusieurs ids separes par un espace. Cohabite avec
956
+ * le `cwTooltip`, qui n'ajoute / retire que son propre id.
957
+ */
958
+ readonly ariaDescribedBy: _angular_core.InputSignal<string | undefined>;
952
959
  readonly withTooltip: _angular_core.InputSignal<boolean>;
953
960
  readonly tooltipText: _angular_core.InputSignal<string>;
954
961
  readonly tooltipTitle: _angular_core.InputSignal<string>;
@@ -991,15 +998,20 @@ declare class ButtonComponent implements OnInit {
991
998
  private getPlacement;
992
999
  private focusOut;
993
1000
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonComponent, never>;
994
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonComponent, "cw-button", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "link": { "alias": "link"; "required": false; "isSignal": true; }; "isDropdown": { "alias": "isDropdown"; "required": false; "isSignal": true; }; "hideCaret": { "alias": "hideCaret"; "required": false; "isSignal": true; }; "withIcon": { "alias": "withIcon"; "required": false; "isSignal": true; }; "withOnlyIcon": { "alias": "withOnlyIcon"; "required": false; "isSignal": true; }; "iconSize": { "alias": "iconSize"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; "dropdownPosition": { "alias": "dropdownPosition"; "required": false; "isSignal": true; }; "isMinWidth": { "alias": "isMinWidth"; "required": false; "isSignal": true; }; "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "loadingAnnounce": { "alias": "loadingAnnounce"; "required": false; "isSignal": true; }; "cssClass": { "alias": "cssClass"; "required": false; "isSignal": true; }; "dataTest": { "alias": "dataTest"; "required": false; "isSignal": true; }; "skeletonMode": { "alias": "skeletonMode"; "required": false; "isSignal": true; }; "isPressed": { "alias": "isPressed"; "required": false; "isSignal": true; }; "withTooltip": { "alias": "withTooltip"; "required": false; "isSignal": true; }; "tooltipText": { "alias": "tooltipText"; "required": false; "isSignal": true; }; "tooltipTitle": { "alias": "tooltipTitle"; "required": false; "isSignal": true; }; "tooltipTrigger": { "alias": "tooltipTrigger"; "required": false; "isSignal": true; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; "isSignal": true; }; "tooltipType": { "alias": "tooltipType"; "required": false; "isSignal": true; }; }, { "btnAction": "btnAction"; "dropDownClicked": "dropDownClicked"; }, never, ["*"], true, never>;
1001
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonComponent, "cw-button", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "link": { "alias": "link"; "required": false; "isSignal": true; }; "isDropdown": { "alias": "isDropdown"; "required": false; "isSignal": true; }; "hideCaret": { "alias": "hideCaret"; "required": false; "isSignal": true; }; "withIcon": { "alias": "withIcon"; "required": false; "isSignal": true; }; "withOnlyIcon": { "alias": "withOnlyIcon"; "required": false; "isSignal": true; }; "iconSize": { "alias": "iconSize"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; "dropdownPosition": { "alias": "dropdownPosition"; "required": false; "isSignal": true; }; "isMinWidth": { "alias": "isMinWidth"; "required": false; "isSignal": true; }; "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "loadingAnnounce": { "alias": "loadingAnnounce"; "required": false; "isSignal": true; }; "cssClass": { "alias": "cssClass"; "required": false; "isSignal": true; }; "dataTest": { "alias": "dataTest"; "required": false; "isSignal": true; }; "skeletonMode": { "alias": "skeletonMode"; "required": false; "isSignal": true; }; "isPressed": { "alias": "isPressed"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; "isSignal": true; }; "withTooltip": { "alias": "withTooltip"; "required": false; "isSignal": true; }; "tooltipText": { "alias": "tooltipText"; "required": false; "isSignal": true; }; "tooltipTitle": { "alias": "tooltipTitle"; "required": false; "isSignal": true; }; "tooltipTrigger": { "alias": "tooltipTrigger"; "required": false; "isSignal": true; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; "isSignal": true; }; "tooltipType": { "alias": "tooltipType"; "required": false; "isSignal": true; }; }, { "btnAction": "btnAction"; "dropDownClicked": "dropDownClicked"; }, never, ["*"], true, never>;
995
1002
  }
996
1003
 
997
1004
  declare class DropdownComponent implements AfterViewInit {
998
1005
  private renderer;
999
1006
  private destroyRef;
1000
1007
  readonly id: _angular_core.InputSignal<string | undefined>;
1008
+ /**
1009
+ * Nom accessible du bouton par defaut (icone seule) — cle i18n. Sans effet avec
1010
+ * `btnCustom` : le contenu projete `[button]` porte alors son propre libelle.
1011
+ */
1001
1012
  readonly title: _angular_core.InputSignal<string>;
1002
- readonly icon: _angular_core.InputSignal<string>;
1013
+ /** Picto du bouton par defaut. Sans effet avec `btnCustom`. */
1014
+ readonly icon: _angular_core.InputSignal<SpriteIconEnum>;
1003
1015
  readonly btnCustom: _angular_core.InputSignal<boolean>;
1004
1016
  readonly btnCssClass: _angular_core.InputSignal<string>;
1005
1017
  readonly menuClass: _angular_core.InputSignal<string>;
@@ -2412,8 +2424,18 @@ declare class EmptyStateComponent {
2412
2424
  readonly imageAlt: _angular_core.InputSignal<string>;
2413
2425
  /** Titre (cle i18n). */
2414
2426
  readonly title: _angular_core.InputSignal<string>;
2427
+ /** Parametres d'interpolation du titre, transmis au `translate` (ex. `{ instance: 'PFP2' }`). */
2428
+ readonly titleParams: _angular_core.InputSignal<Record<string, unknown> | undefined>;
2429
+ /**
2430
+ * Complement accole au titre, separe par une espace (ex. « pour l'instance PFP2 »).
2431
+ * Texte DEJA traduit : il n'est pas repasse au `translate`. Le titre ne doit donc pas
2432
+ * finir par un point.
2433
+ */
2434
+ readonly titleSuffix: _angular_core.InputSignal<string | undefined>;
2415
2435
  /** Description (cle i18n). */
2416
2436
  readonly description: _angular_core.InputSignal<string | undefined>;
2437
+ /** Parametres d'interpolation de la description, transmis au `translate`. */
2438
+ readonly descriptionParams: _angular_core.InputSignal<Record<string, unknown> | undefined>;
2417
2439
  /** Bouton principal (CTA primaire). */
2418
2440
  readonly primaryButton: _angular_core.InputSignal<EmptyStateButton | undefined>;
2419
2441
  /** Bouton secondaire. */
@@ -2433,7 +2455,7 @@ declare class EmptyStateComponent {
2433
2455
  /** URL du SVG d'illustration integre. */
2434
2456
  protected readonly illustrationSrc: _angular_core.Signal<string>;
2435
2457
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<EmptyStateComponent, never>;
2436
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<EmptyStateComponent, "cw-empty-state", never, { "illustration": { "alias": "illustration"; "required": false; "isSignal": true; }; "illustrationBasePath": { "alias": "illustrationBasePath"; "required": false; "isSignal": true; }; "imageSource": { "alias": "imageSource"; "required": false; "isSignal": true; }; "imageAlt": { "alias": "imageAlt"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "primaryButton": { "alias": "primaryButton"; "required": false; "isSignal": true; }; "secondaryButton": { "alias": "secondaryButton"; "required": false; "isSignal": true; }; "dataTest": { "alias": "dataTest"; "required": false; "isSignal": true; }; }, { "primaryClick": "primaryClick"; "secondaryClick": "secondaryClick"; }, never, never, true, never>;
2458
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<EmptyStateComponent, "cw-empty-state", never, { "illustration": { "alias": "illustration"; "required": false; "isSignal": true; }; "illustrationBasePath": { "alias": "illustrationBasePath"; "required": false; "isSignal": true; }; "imageSource": { "alias": "imageSource"; "required": false; "isSignal": true; }; "imageAlt": { "alias": "imageAlt"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "titleParams": { "alias": "titleParams"; "required": false; "isSignal": true; }; "titleSuffix": { "alias": "titleSuffix"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "descriptionParams": { "alias": "descriptionParams"; "required": false; "isSignal": true; }; "primaryButton": { "alias": "primaryButton"; "required": false; "isSignal": true; }; "secondaryButton": { "alias": "secondaryButton"; "required": false; "isSignal": true; }; "dataTest": { "alias": "dataTest"; "required": false; "isSignal": true; }; }, { "primaryClick": "primaryClick"; "secondaryClick": "secondaryClick"; }, never, ["*"], true, never>;
2437
2459
  }
2438
2460
 
2439
2461
  /**
@@ -2576,6 +2598,12 @@ declare class CwTooltipDirective implements OnDestroy {
2576
2598
  private toggle;
2577
2599
  private show;
2578
2600
  private hide;
2601
+ /**
2602
+ * `aria-describedby` est une LISTE d'ids : l'hote peut deja y referencer un texte
2603
+ * (ex. `cw-button [ariaDescribedBy]`). On n'ajoute / retire que l'id du tooltip, sans
2604
+ * ecraser ni supprimer les autres.
2605
+ */
2606
+ private updateDescribedBy;
2579
2607
  private ensureOverlay;
2580
2608
  /** Position préférée (celle demandée) puis fallbacks pour le flip. */
2581
2609
  private buildPositions;
@@ -2605,9 +2633,15 @@ declare enum CwThemeKeyEnum {
2605
2633
  auto = "auto"
2606
2634
  }
2607
2635
 
2636
+ /** Bouton ayant resolu `ModalRef.result` : `'action1'` = primaire, `'action2'` = secondaire. */
2637
+ type ModalAction = 'action1' | 'action2';
2608
2638
  interface ModalRef {
2609
2639
  componentInstance: ModalsComponent;
2610
- result: Promise<any>;
2640
+ /**
2641
+ * Resolue au PREMIER clic sur un bouton d'action, avec le bouton clique (`ModalAction`).
2642
+ * Rejetee (`Error('closed')`) si la modale est fermee sans action.
2643
+ */
2644
+ result: Promise<ModalAction>;
2611
2645
  /**
2612
2646
  * Met à jour l'état désactivé d'un bouton d'action APRÈS l'ouverture de la modale.
2613
2647
  * Typiquement piloté par le consommateur depuis `control.statusChanges`.
@@ -2761,4 +2795,4 @@ interface DataCustomListGroup {
2761
2795
  }
2762
2796
 
2763
2797
  export { AccordionComponent, AlertComponent, AlertTypeEnum, BadgeComponent, BadgePositionEnum, BadgeTypeEnum, BoButtonTypeEnum, BoTabTypeEnum, BreadcrumbComponent, ButtonComponent, ButtonIconSizeEnum, ButtonPositionEnum, CW_DEFAULT_THEME_OPTIONS, CardComponent, CardTitleRankEnum, CardTypeEnum, ClickOutsideDirective, CollapseDirective, CwThemeKeyEnum, CwTooltipDirective, 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, ThemeSelectorComponent, ThemeService, TitleComponent, TitleContextEnum, TitleTagEnum, ToastComponent, ToastItemComponent, ToastService, TooltipPositionEnum, TriggerTooltipEnum, TypeTooltipEnum, rangeValidator, resolveArrowPos };
2764
- export type { Attachment, CwAutocompleteColumn, CwAutocompleteFetcher, CwAutocompleteItem, CwAutocompleteOptions, CwAutocompleteResolver, CwBadgeOptions, CwBreadcrumbItem, CwExistingFile, CwFileDropItem, CwFileDropRejection, CwRichTextOptions, CwRichTextPreset, CwRichTextToolbar, CwRichTextToolbarControl, CwThemeOption, DataCustomList, DataCustomListGroup, DataLegend, EmptyStateButton, FormFieldOption, FormFieldRangeOption, FormFieldValidationOption, Legend, ModalConfig, ModalRef, ShowToastOptions, SkipLink, ThemeServiceConfig, Toast, ToastAction };
2798
+ export type { Attachment, CwAutocompleteColumn, CwAutocompleteFetcher, CwAutocompleteItem, CwAutocompleteOptions, CwAutocompleteResolver, CwBadgeOptions, CwBreadcrumbItem, CwExistingFile, CwFileDropItem, CwFileDropRejection, CwRichTextOptions, CwRichTextPreset, CwRichTextToolbar, CwRichTextToolbarControl, CwThemeOption, DataCustomList, DataCustomListGroup, DataLegend, EmptyStateButton, FormFieldOption, FormFieldRangeOption, FormFieldValidationOption, Legend, ModalAction, ModalConfig, ModalRef, ShowToastOptions, SkipLink, ThemeServiceConfig, Toast, ToastAction };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "_COMMON": {
3
- "NO_RESULT": "No resultst found",
3
+ "NO_RESULT": "No results found",
4
4
  "NEW_WINDOW": "(new window)",
5
5
  "_UTILS": {
6
6
  "ARTICLE_F": "The ",
@@ -77,14 +77,8 @@
77
77
  "END_DATE": "Ending date",
78
78
  "END_DATE_TIME": "Ending date and time",
79
79
  "END_TIME": "Ending time",
80
- "ERROR_END_DATE": "The end date is required.",
81
- "ERROR_START_DATE": "The start date is required.",
82
- "ERROR_START_END_DATES": "The start date must be earlier than the end date.",
83
- "ERROR_START_END_DATES_TIMES": "The start date and time must be earlier than the end date and time.",
84
- "ERROR_START_END_DATES_TIMES_WITH_DISABLED_START_DATE": "The end date must be greater than the non-editable start date.",
85
- "ERROR_START_END_TIMES": "The start time must be earlier than the end time.",
80
+ "ERROR_START_END_PERIOD": "The start period must be earlier than the end period.",
86
81
  "ERROR_SUSPENSION_PERIOD": "The period of suspension must be within the period of the event.",
87
- "ERROR_TIME": "Hours and minutes are required.",
88
82
  "FROM": "from",
89
83
  "FROM_TO_1": "From",
90
84
  "FROM_TO_2": "to",
@@ -155,7 +149,8 @@
155
149
  "_SHOW_HIDE_PWD": {
156
150
  "SHOW": "Show password",
157
151
  "HIDE": "Hide password"
158
- }
152
+ },
153
+ "ALL_FIELDS_MANDATORY": "All fields are required."
159
154
  },
160
155
  "_FILE_DROP": {
161
156
  "EXPLORE": "Browse files",
@@ -200,12 +195,12 @@
200
195
  "_MENU": {
201
196
  "BTN_MAIN_MENU": "Main menu",
202
197
  "BTN_MAIN_MENU_OPEN": "Open menu",
203
- "BTN_MAIN_MENU_CLOSE": "Close menu"
198
+ "BTN_MAIN_MENU_CLOSE": "Close menu",
199
+ "BTN_DROPDOWN": "Menu"
204
200
  },
205
201
  "_PAGINATION": {
206
202
  "RESULT_S": "{{total}} result",
207
- "RESULT_P": "{{total}} results",
208
- "RESULTS": "{{total}} result(s)"
203
+ "RESULT_P": "{{total}} results"
209
204
  },
210
205
  "_PRO_SENTENCE": {
211
206
  "NO": "No",
@@ -268,6 +263,10 @@
268
263
  "MULTIPLE_TEXT": "You are about to delete the following items:",
269
264
  "IRREVERSIBLE": "This action is <strong>irreversible</strong> and will delete all associated data."
270
265
  },
266
+ "_NUMERICAL_RANGE": {
267
+ "DECREASE": "Decrease {{label}} (currently {{amount}})",
268
+ "INCREASE": "Increase {{label}} (currently {{amount}})"
269
+ },
271
270
  "_VERSION": {
272
271
  "INCLUDED": "Embedded versions"
273
272
  },
@@ -149,7 +149,8 @@
149
149
  "_SHOW_HIDE_PWD": {
150
150
  "SHOW": "Afficher le mot de passe",
151
151
  "HIDE": "Masquer le mot de passe"
152
- }
152
+ },
153
+ "ALL_FIELDS_MANDATORY": "Tous les champs sont obligatoires."
153
154
  },
154
155
  "_FILE_DROP": {
155
156
  "EXPLORE": "Parcourir l'explorateur",
@@ -194,7 +195,8 @@
194
195
  "_MENU": {
195
196
  "BTN_MAIN_MENU": "Menu principal",
196
197
  "BTN_MAIN_MENU_OPEN": "Ouvrir le menu",
197
- "BTN_MAIN_MENU_CLOSE": "Réduire le menu"
198
+ "BTN_MAIN_MENU_CLOSE": "Réduire le menu",
199
+ "BTN_DROPDOWN": "Menu"
198
200
  },
199
201
  "_PAGINATION": {
200
202
  "RESULT_S": "{{total}} résultat",
@@ -261,6 +263,10 @@
261
263
  "MULTIPLE_TEXT": "Vous êtes sur le point de supprimer les éléments suivants&nbsp;:",
262
264
  "IRREVERSIBLE": "Cette action est <strong>irréversible</strong> et supprimera toutes les données associées."
263
265
  },
266
+ "_NUMERICAL_RANGE": {
267
+ "DECREASE": "Diminuer {{label}} (actuellement {{amount}})",
268
+ "INCREASE": "Augmenter {{label}} (actuellement {{amount}})"
269
+ },
264
270
  "_VERSION": {
265
271
  "INCLUDED": "Versions embarquées"
266
272
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityway/basic-ui",
3
- "version": "1.1.0-beta019",
3
+ "version": "1.1.0-beta021",
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-beta019",
15
+ "@cityway/design-tokens": "1.1.0-beta021",
16
16
  "intl-tel-input": "^28.0.7"
17
17
  },
18
18
  "peerDependenciesMeta": {