@cityway/basic-ui 1.1.0-beta020 → 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/cityway-basic-ui-1.1.0-beta021.tgz +0 -0
- package/docs/components/empty-state.md +2 -1
- package/docs/components/modals.md +326 -324
- package/fesm2022/cityway-basic-ui.mjs +15 -11
- package/fesm2022/cityway-basic-ui.mjs.map +1 -1
- package/index.d.ts +15 -3
- package/lib/assets/i18n/common.en.json +3 -10
- package/package.json +2 -2
- package/cityway-basic-ui-1.1.0-beta020.tgz +0 -0
package/index.d.ts
CHANGED
|
@@ -2426,6 +2426,12 @@ declare class EmptyStateComponent {
|
|
|
2426
2426
|
readonly title: _angular_core.InputSignal<string>;
|
|
2427
2427
|
/** Parametres d'interpolation du titre, transmis au `translate` (ex. `{ instance: 'PFP2' }`). */
|
|
2428
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>;
|
|
2429
2435
|
/** Description (cle i18n). */
|
|
2430
2436
|
readonly description: _angular_core.InputSignal<string | undefined>;
|
|
2431
2437
|
/** Parametres d'interpolation de la description, transmis au `translate`. */
|
|
@@ -2449,7 +2455,7 @@ declare class EmptyStateComponent {
|
|
|
2449
2455
|
/** URL du SVG d'illustration integre. */
|
|
2450
2456
|
protected readonly illustrationSrc: _angular_core.Signal<string>;
|
|
2451
2457
|
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>;
|
|
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>;
|
|
2453
2459
|
}
|
|
2454
2460
|
|
|
2455
2461
|
/**
|
|
@@ -2627,9 +2633,15 @@ declare enum CwThemeKeyEnum {
|
|
|
2627
2633
|
auto = "auto"
|
|
2628
2634
|
}
|
|
2629
2635
|
|
|
2636
|
+
/** Bouton ayant resolu `ModalRef.result` : `'action1'` = primaire, `'action2'` = secondaire. */
|
|
2637
|
+
type ModalAction = 'action1' | 'action2';
|
|
2630
2638
|
interface ModalRef {
|
|
2631
2639
|
componentInstance: ModalsComponent;
|
|
2632
|
-
|
|
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>;
|
|
2633
2645
|
/**
|
|
2634
2646
|
* Met à jour l'état désactivé d'un bouton d'action APRÈS l'ouverture de la modale.
|
|
2635
2647
|
* Typiquement piloté par le consommateur depuis `control.statusChanges`.
|
|
@@ -2783,4 +2795,4 @@ interface DataCustomListGroup {
|
|
|
2783
2795
|
}
|
|
2784
2796
|
|
|
2785
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 };
|
|
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 };
|
|
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
|
|
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
|
-
"
|
|
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-
|
|
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-
|
|
15
|
+
"@cityway/design-tokens": "1.1.0-beta021",
|
|
16
16
|
"intl-tel-input": "^28.0.7"
|
|
17
17
|
},
|
|
18
18
|
"peerDependenciesMeta": {
|
|
Binary file
|