@cityway/basic-ui 1.1.0-beta026 → 1.1.0-beta027
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/README.md +77 -74
- package/cityway-basic-ui-1.1.0-beta027.tgz +0 -0
- package/docs/00-overview.md +209 -209
- package/docs/components/badge.md +148 -147
- package/docs/components/card.md +264 -253
- package/docs/components/tab.md +239 -192
- package/fesm2022/cityway-basic-ui.mjs +199 -90
- package/fesm2022/cityway-basic-ui.mjs.map +1 -1
- package/index.d.ts +62 -8
- 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.min.css +1 -1
- package/styles/basic-ui.styles.fo.min.css.map +1 -1
- package/cityway-basic-ui-1.1.0-beta026.tgz +0 -0
package/index.d.ts
CHANGED
|
@@ -851,6 +851,8 @@ declare enum BadgeTypeEnum {
|
|
|
851
851
|
lightWarning = "light-warning",
|
|
852
852
|
lightDanger = "light-danger",
|
|
853
853
|
lightLight = "light-light",
|
|
854
|
+
/** Fond blanc (surface/default) : badge pose sur une surface claire (bande de sous-onglets, card light). */
|
|
855
|
+
lightWhite = "light-white",
|
|
854
856
|
heavyPrimary = "heavy-primary",
|
|
855
857
|
heavyInfo = "heavy-info",
|
|
856
858
|
heavySuccess = "heavy-success",
|
|
@@ -2189,17 +2191,43 @@ interface CwBadgeOptions {
|
|
|
2189
2191
|
dataTest?: string;
|
|
2190
2192
|
}
|
|
2191
2193
|
|
|
2194
|
+
/**
|
|
2195
|
+
* Contenu d'onglet cree a la premiere ouverture de l'onglet (puis conserve) :
|
|
2196
|
+
* `<ng-template cwTabLazy>…</ng-template>` dans un `cw-tab-content`. Sans lui, le contenu est cree
|
|
2197
|
+
* des l'arrivee sur la page et seulement masque (tableaux et appels API de tous les onglets).
|
|
2198
|
+
*/
|
|
2199
|
+
declare class TabLazyDirective {
|
|
2200
|
+
readonly templateRef: TemplateRef<any>;
|
|
2201
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TabLazyDirective, never>;
|
|
2202
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TabLazyDirective, "ng-template[cwTabLazy]", never, {}, {}, never, never, true, never>;
|
|
2203
|
+
}
|
|
2192
2204
|
declare class TabContentComponent {
|
|
2193
2205
|
readonly title: _angular_core.InputSignal<string>;
|
|
2194
2206
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
2195
2207
|
readonly withIcon: _angular_core.InputSignal<SpriteIconEnum | undefined>;
|
|
2196
2208
|
/** Badge affiché après le libellé de l'onglet (compteur, statut). */
|
|
2197
2209
|
readonly badge: _angular_core.InputSignal<CwBadgeOptions | undefined>;
|
|
2210
|
+
/**
|
|
2211
|
+
* Sous-onglets : `cw-tab-content` imbriques directement dans celui-ci. Leur barre est dessinee
|
|
2212
|
+
* par le `cw-tab` parent, sous la barre principale ; leurs panneaux restent dans ce panneau.
|
|
2213
|
+
*/
|
|
2214
|
+
readonly children: _angular_core.Signal<readonly TabContentComponent[]>;
|
|
2215
|
+
/** Contenu differe (`ng-template cwTabLazy`) de CE panneau, pas d'un sous-onglet. */
|
|
2216
|
+
protected readonly lazy: _angular_core.Signal<TabLazyDirective | undefined>;
|
|
2198
2217
|
readonly id: _angular_core.WritableSignal<number>;
|
|
2199
2218
|
readonly active: _angular_core.WritableSignal<boolean>;
|
|
2219
|
+
/** Ids DOM de l'onglet et de son panneau, uniques par `cw-tab` (pose par le parent). */
|
|
2220
|
+
readonly tabId: _angular_core.WritableSignal<string>;
|
|
2221
|
+
readonly panelId: _angular_core.WritableSignal<string>;
|
|
2222
|
+
/** Index du sous-onglet choisi, memorise quand on change d'onglet principal. */
|
|
2223
|
+
readonly selectedChild: _angular_core.WritableSignal<number>;
|
|
2224
|
+
/** Le contenu differe est cree a la 1re activation, puis garde (etat, filtres, scroll). */
|
|
2225
|
+
private readonly opened;
|
|
2226
|
+
protected readonly lazyRendered: _angular_core.Signal<boolean>;
|
|
2227
|
+
constructor();
|
|
2200
2228
|
get fragment(): string;
|
|
2201
2229
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TabContentComponent, never>;
|
|
2202
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TabContentComponent, "cw-tab-content", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "withIcon": { "alias": "withIcon"; "required": false; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; }, {},
|
|
2230
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TabContentComponent, "cw-tab-content", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "withIcon": { "alias": "withIcon"; "required": false; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; }, {}, ["children", "lazy"], ["*"], true, never>;
|
|
2203
2231
|
}
|
|
2204
2232
|
|
|
2205
2233
|
declare enum FoTabTypeEnum {
|
|
@@ -2211,6 +2239,11 @@ declare enum BoTabTypeEnum {
|
|
|
2211
2239
|
card = "card"
|
|
2212
2240
|
}
|
|
2213
2241
|
|
|
2242
|
+
/** Sous-onglet choisi : index de l'onglet principal et du sous-onglet. */
|
|
2243
|
+
interface SubTabChangeEvent {
|
|
2244
|
+
tabIndex: number;
|
|
2245
|
+
subTabIndex: number;
|
|
2246
|
+
}
|
|
2214
2247
|
declare class TabComponent implements AfterContentInit {
|
|
2215
2248
|
private router;
|
|
2216
2249
|
private route;
|
|
@@ -2221,20 +2254,41 @@ declare class TabComponent implements AfterContentInit {
|
|
|
2221
2254
|
readonly title: _angular_core.InputSignal<string | undefined>;
|
|
2222
2255
|
readonly tabContentCssClass: _angular_core.InputSignal<string>;
|
|
2223
2256
|
readonly activeTabIndex: _angular_core.InputSignal<number>;
|
|
2257
|
+
/** Onglets principaux : `cw-tab-content` enfants directs (les sous-onglets sont dans ceux-ci). */
|
|
2224
2258
|
readonly tabs: _angular_core.Signal<readonly TabContentComponent[]>;
|
|
2225
2259
|
readonly tabLinks: _angular_core.Signal<readonly ElementRef<HTMLElement>[]>;
|
|
2226
2260
|
readonly tabChanged: _angular_core.OutputEmitterRef<number>;
|
|
2261
|
+
/** Emis au choix d'un sous-onglet (clic, clavier, fragment d'URL). */
|
|
2262
|
+
readonly subTabChanged: _angular_core.OutputEmitterRef<SubTabChangeEvent>;
|
|
2263
|
+
/**
|
|
2264
|
+
* Prefixe des ids DOM, unique par instance : deux `cw-tab` sur une page (ou une page qui en
|
|
2265
|
+
* contenait un dans un onglet d'un autre) produisaient deux `cw-nav-0`, et `aria-controls` /
|
|
2266
|
+
* `aria-labelledby` pointaient sur le mauvais element.
|
|
2267
|
+
*/
|
|
2268
|
+
protected readonly uid: string;
|
|
2227
2269
|
activeId: number;
|
|
2228
2270
|
iconSize: IconSizeEnum;
|
|
2271
|
+
/** Onglet principal actif : sa liste de sous-onglets alimente la seconde barre. */
|
|
2272
|
+
protected readonly activeTab: _angular_core.WritableSignal<TabContentComponent | undefined>;
|
|
2273
|
+
protected readonly subTabs: _angular_core.Signal<readonly TabContentComponent[]>;
|
|
2274
|
+
constructor();
|
|
2229
2275
|
ngAfterContentInit(): void;
|
|
2230
2276
|
selectTab(tab: TabContentComponent): void;
|
|
2277
|
+
/** Choisit un sous-onglet de l'onglet principal `parent`. */
|
|
2278
|
+
selectSubTab(parent: TabContentComponent, child: TabContentComponent): void;
|
|
2279
|
+
/** Fleches / Debut / Fin dans une barre (principale ou sous-onglets), focus suivant la selection. */
|
|
2280
|
+
onKeydown(event: KeyboardEvent, level?: 'tab' | 'sub'): void;
|
|
2281
|
+
/** Etat `active` de tous les panneaux : onglet actif, et son sous-onglet choisi. */
|
|
2282
|
+
private syncActive;
|
|
2231
2283
|
private activateTabByIndex;
|
|
2232
|
-
|
|
2233
|
-
private
|
|
2234
|
-
private
|
|
2235
|
-
private
|
|
2284
|
+
/** `#onglet` ou `#onglet/sous-onglet` (slugs des titres). Un fragment inconnu est ignore. */
|
|
2285
|
+
private applyFragment;
|
|
2286
|
+
private writeFragment;
|
|
2287
|
+
private firstEnabledIndex;
|
|
2288
|
+
/** Prochain onglet non desactive dans le sens `step`, en bouclant ; `undefined` si aucun. */
|
|
2289
|
+
private nextEnabled;
|
|
2236
2290
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TabComponent, never>;
|
|
2237
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TabComponent, "cw-tab", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "useFragment": { "alias": "useFragment"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "tabContentCssClass": { "alias": "tabContentCssClass"; "required": false; "isSignal": true; }; "activeTabIndex": { "alias": "activeTabIndex"; "required": false; "isSignal": true; }; }, { "tabChanged": "tabChanged"; }, ["tabs"], ["*"], true, never>;
|
|
2291
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TabComponent, "cw-tab", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "useFragment": { "alias": "useFragment"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "tabContentCssClass": { "alias": "tabContentCssClass"; "required": false; "isSignal": true; }; "activeTabIndex": { "alias": "activeTabIndex"; "required": false; "isSignal": true; }; }, { "tabChanged": "tabChanged"; "subTabChanged": "subTabChanged"; }, ["tabs"], ["[tab-header]", "*"], true, never>;
|
|
2238
2292
|
}
|
|
2239
2293
|
|
|
2240
2294
|
declare class StepperComponent {
|
|
@@ -2998,5 +3052,5 @@ interface DataCustomListGroup {
|
|
|
2998
3052
|
fields: DataCustomList[];
|
|
2999
3053
|
}
|
|
3000
3054
|
|
|
3001
|
-
export { AccordionComponent, AlertComponent, AlertLiveEnum, AlertTypeEnum, BadgeComponent, BadgePositionEnum, BadgeTypeEnum, BoButtonTypeEnum, BoTabTypeEnum, BreadcrumbComponent, ButtonComponent, ButtonIconSizeEnum, ButtonPositionEnum, CW_DEFAULT_THEME_OPTIONS, CardComponent, CardTitleRankEnum, CardTypeEnum, ClickOutsideDirective, CollapseDirective, 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, ThemeSelectorComponent, ThemeService, TitleComponent, TitleContextEnum, TitleTagEnum, ToastComponent, ToastItemComponent, ToastService, TooltipPositionEnum, TriggerTooltipEnum, TypeTooltipEnum, rangeValidator, resolveArrowPos };
|
|
3002
|
-
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 };
|
|
3055
|
+
export { AccordionComponent, AlertComponent, AlertLiveEnum, AlertTypeEnum, BadgeComponent, BadgePositionEnum, BadgeTypeEnum, BoButtonTypeEnum, BoTabTypeEnum, BreadcrumbComponent, ButtonComponent, ButtonIconSizeEnum, ButtonPositionEnum, CW_DEFAULT_THEME_OPTIONS, CardComponent, CardTitleRankEnum, CardTypeEnum, ClickOutsideDirective, CollapseDirective, 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, rangeValidator, resolveArrowPos };
|
|
3056
|
+
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, SubTabChangeEvent, ThemeServiceConfig, Toast, ToastAction };
|
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-beta027",
|
|
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-beta027",
|
|
16
16
|
"intl-tel-input": "^28.0.7"
|
|
17
17
|
},
|
|
18
18
|
"peerDependenciesMeta": {
|