@cityway/basic-ui 1.1.0-beta020 → 1.1.0-beta022

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
@@ -1890,6 +1890,10 @@ declare class ModalsComponent implements OnInit, AfterViewInit {
1890
1890
  protected readonly titleId: string;
1891
1891
  readonly size: _angular_core.InputSignal<ModalsSize>;
1892
1892
  readonly customClass: _angular_core.InputSignal<string>;
1893
+ /**
1894
+ * Hauteur bornee au viewport, header et footer fixes, seul le body defile.
1895
+ * `false` : la modale entiere defile dans la page (cf. `ModalConfig.scrollable`).
1896
+ */
1893
1897
  readonly scrollable: _angular_core.InputSignal<boolean>;
1894
1898
  readonly isAutcompModal: _angular_core.InputSignal<boolean>;
1895
1899
  readonly type: _angular_core.InputSignal<ModalsType>;
@@ -2426,6 +2430,12 @@ declare class EmptyStateComponent {
2426
2430
  readonly title: _angular_core.InputSignal<string>;
2427
2431
  /** Parametres d'interpolation du titre, transmis au `translate` (ex. `{ instance: 'PFP2' }`). */
2428
2432
  readonly titleParams: _angular_core.InputSignal<Record<string, unknown> | undefined>;
2433
+ /**
2434
+ * Complement accole au titre, separe par une espace (ex. « pour l'instance PFP2 »).
2435
+ * Texte DEJA traduit : il n'est pas repasse au `translate`. Le titre ne doit donc pas
2436
+ * finir par un point.
2437
+ */
2438
+ readonly titleSuffix: _angular_core.InputSignal<string | undefined>;
2429
2439
  /** Description (cle i18n). */
2430
2440
  readonly description: _angular_core.InputSignal<string | undefined>;
2431
2441
  /** Parametres d'interpolation de la description, transmis au `translate`. */
@@ -2449,7 +2459,7 @@ declare class EmptyStateComponent {
2449
2459
  /** URL du SVG d'illustration integre. */
2450
2460
  protected readonly illustrationSrc: _angular_core.Signal<string>;
2451
2461
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<EmptyStateComponent, never>;
2452
- 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; }; "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>;
2462
+ 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>;
2453
2463
  }
2454
2464
 
2455
2465
  /**
@@ -2627,9 +2637,15 @@ declare enum CwThemeKeyEnum {
2627
2637
  auto = "auto"
2628
2638
  }
2629
2639
 
2640
+ /** Bouton ayant resolu `ModalRef.result` : `'action1'` = primaire, `'action2'` = secondaire. */
2641
+ type ModalAction = 'action1' | 'action2';
2630
2642
  interface ModalRef {
2631
2643
  componentInstance: ModalsComponent;
2632
- result: Promise<any>;
2644
+ /**
2645
+ * Resolue au PREMIER clic sur un bouton d'action, avec le bouton clique (`ModalAction`).
2646
+ * Rejetee (`Error('closed')`) si la modale est fermee sans action.
2647
+ */
2648
+ result: Promise<ModalAction>;
2633
2649
  /**
2634
2650
  * Met à jour l'état désactivé d'un bouton d'action APRÈS l'ouverture de la modale.
2635
2651
  * Typiquement piloté par le consommateur depuis `control.statusChanges`.
@@ -2664,6 +2680,13 @@ interface ModalConfig {
2664
2680
  customBodyTemplate?: TemplateRef<any>;
2665
2681
  customBodyContext?: any;
2666
2682
  isAutcompModal?: boolean;
2683
+ /**
2684
+ * Defaut `true` : hauteur bornee au viewport, header et footer toujours visibles,
2685
+ * seul le body defile. `false` : la modale entiere defile dans la page — a reserver
2686
+ * aux contenus avec menu deroulant (autocomplete, dropdown), que le body scrollable
2687
+ * rognerait. Ignore pour le sidepanel, toujours scrollable.
2688
+ */
2689
+ scrollable?: boolean;
2667
2690
  /**
2668
2691
  * Verrouille des l'ouverture tous les chemins de fermeture utilisateur.
2669
2692
  * Omis / `undefined` = defaut par type : `ModalsType.loader` est verrouille, tous les
@@ -2783,4 +2806,4 @@ interface DataCustomListGroup {
2783
2806
  }
2784
2807
 
2785
2808
  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 };
2786
- 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 };
2809
+ 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",
@@ -206,8 +200,7 @@
206
200
  },
207
201
  "_PAGINATION": {
208
202
  "RESULT_S": "{{total}} result",
209
- "RESULT_P": "{{total}} results",
210
- "RESULTS": "{{total}} result(s)"
203
+ "RESULT_P": "{{total}} results"
211
204
  },
212
205
  "_PRO_SENTENCE": {
213
206
  "NO": "No",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityway/basic-ui",
3
- "version": "1.1.0-beta020",
3
+ "version": "1.1.0-beta022",
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-beta020",
15
+ "@cityway/design-tokens": "1.1.0-beta022",
16
16
  "intl-tel-input": "^28.0.7"
17
17
  },
18
18
  "peerDependenciesMeta": {