@cityway/basic-ui 1.0.2-beta025 → 1.0.2-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/cityway-basic-ui-1.0.2-beta027.tgz +0 -0
- package/fesm2022/cityway-basic-ui.mjs +302 -39
- package/fesm2022/cityway-basic-ui.mjs.map +1 -1
- package/index.d.ts +77 -10
- package/lib/assets/i18n/common.en.json +2 -1
- package/lib/assets/i18n/common.fr.json +2 -1
- 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.0.2-beta025.tgz +0 -0
package/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { Options } from '@angular-slider/ngx-slider';
|
|
|
5
5
|
export { Options } from '@angular-slider/ngx-slider';
|
|
6
6
|
import { FormControl, AbstractControl, FormGroup, ValidationErrors } from '@angular/forms';
|
|
7
7
|
import { TranslateService } from '@ngx-translate/core';
|
|
8
|
+
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
8
9
|
|
|
9
10
|
declare class CollapseDirective {
|
|
10
11
|
private elementRef;
|
|
@@ -585,8 +586,16 @@ declare class CardComponent implements OnInit, AfterViewInit {
|
|
|
585
586
|
readonly subtitle: _angular_core.InputSignal<string>;
|
|
586
587
|
readonly type: _angular_core.InputSignal<CardTypeEnum>;
|
|
587
588
|
readonly titleRank: _angular_core.InputSignal<CardTitleRankEnum>;
|
|
589
|
+
readonly cssClass: _angular_core.InputSignal<string>;
|
|
588
590
|
readonly collapsible: _angular_core.ModelSignal<boolean>;
|
|
589
591
|
readonly collapsed: _angular_core.InputSignal<boolean>;
|
|
592
|
+
/**
|
|
593
|
+
* Applique `stretched-link` sur le bouton de collapse (clic sur tout l'en-tête).
|
|
594
|
+
* À passer à `false` quand l'en-tête contient des éléments interactifs (poignée de
|
|
595
|
+
* drag, boutons d'action via `header-start`/`header-custom-area`) pour ne pas que
|
|
596
|
+
* l'overlay capture leurs clics.
|
|
597
|
+
*/
|
|
598
|
+
readonly collapseStretched: _angular_core.InputSignal<boolean>;
|
|
590
599
|
readonly collapseId: _angular_core.InputSignal<string>;
|
|
591
600
|
readonly destroyOnHide: _angular_core.ModelSignal<boolean>;
|
|
592
601
|
readonly collapseClicked: _angular_core.OutputEmitterRef<boolean>;
|
|
@@ -607,7 +616,7 @@ declare class CardComponent implements OnInit, AfterViewInit {
|
|
|
607
616
|
private updateCollapseState;
|
|
608
617
|
get collapsed_state(): boolean;
|
|
609
618
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CardComponent, never>;
|
|
610
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CardComponent, "cw-card", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "titleRank": { "alias": "titleRank"; "required": false; "isSignal": true; }; "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "collapseId": { "alias": "collapseId"; "required": false; "isSignal": true; }; "destroyOnHide": { "alias": "destroyOnHide"; "required": false; "isSignal": true; }; }, { "collapsible": "collapsibleChange"; "destroyOnHide": "destroyOnHideChange"; "collapseClicked": "collapseClicked"; }, never, ["[header-custom-area]", "*", "[card-footer]"], true, never>;
|
|
619
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CardComponent, "cw-card", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "titleRank": { "alias": "titleRank"; "required": false; "isSignal": true; }; "cssClass": { "alias": "cssClass"; "required": false; "isSignal": true; }; "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "collapseStretched": { "alias": "collapseStretched"; "required": false; "isSignal": true; }; "collapseId": { "alias": "collapseId"; "required": false; "isSignal": true; }; "destroyOnHide": { "alias": "destroyOnHide"; "required": false; "isSignal": true; }; }, { "collapsible": "collapsibleChange"; "destroyOnHide": "destroyOnHideChange"; "collapseClicked": "collapseClicked"; }, never, ["[header-start]", "[header-custom-area]", "*", "[card-footer]"], true, never>;
|
|
611
620
|
}
|
|
612
621
|
|
|
613
622
|
declare class AccordionComponent implements AfterContentInit {
|
|
@@ -834,6 +843,17 @@ declare enum TriggerTooltipEnum {
|
|
|
834
843
|
hover = "hover"
|
|
835
844
|
}
|
|
836
845
|
|
|
846
|
+
/**
|
|
847
|
+
* Position du tooltip/popover par rapport à son élément hôte.
|
|
848
|
+
* Distinct de `DropdownPositionEnum` (qui inclut `static` et sert au placement du menu dropdown).
|
|
849
|
+
*/
|
|
850
|
+
declare enum TooltipPositionEnum {
|
|
851
|
+
top = "top",
|
|
852
|
+
bottom = "bottom",
|
|
853
|
+
left = "left",
|
|
854
|
+
right = "right"
|
|
855
|
+
}
|
|
856
|
+
|
|
837
857
|
declare class ResponsiveService {
|
|
838
858
|
checkIsMobileResolution$: BehaviorSubject<boolean>;
|
|
839
859
|
constructor();
|
|
@@ -877,7 +897,7 @@ declare class ButtonComponent implements OnInit {
|
|
|
877
897
|
tooltipText?: string;
|
|
878
898
|
tooltipTitle?: string;
|
|
879
899
|
tooltipTrigger?: TriggerTooltipEnum;
|
|
880
|
-
tooltipPosition?: DropdownPositionEnum;
|
|
900
|
+
tooltipPosition?: DropdownPositionEnum | TooltipPositionEnum;
|
|
881
901
|
tooltipType?: TypeTooltipEnum;
|
|
882
902
|
btnAction: EventEmitter<string>;
|
|
883
903
|
dropDownClicked: EventEmitter<boolean>;
|
|
@@ -891,10 +911,9 @@ declare class ButtonComponent implements OnInit {
|
|
|
891
911
|
readonly spriteIcon: typeof SpriteIconEnum;
|
|
892
912
|
placementCss: string;
|
|
893
913
|
isOpen: boolean;
|
|
894
|
-
tooltipRandomId: number;
|
|
895
|
-
isTooltipOpened: boolean;
|
|
896
|
-
typeTooltipEnum: typeof TypeTooltipEnum;
|
|
897
914
|
private focusOutInitialized;
|
|
915
|
+
/** Mappe `tooltipPosition` (qui peut valoir `static`) vers une position de tooltip exploitable. */
|
|
916
|
+
get tooltipPositionResolved(): TooltipPositionEnum;
|
|
898
917
|
get hostClasses(): string;
|
|
899
918
|
constructor();
|
|
900
919
|
ngOnInit(): void;
|
|
@@ -916,10 +935,6 @@ declare class ButtonComponent implements OnInit {
|
|
|
916
935
|
private setAriaExpanded;
|
|
917
936
|
private getPlacement;
|
|
918
937
|
private focusOut;
|
|
919
|
-
showTooltip(): void;
|
|
920
|
-
hideTooltip(): void;
|
|
921
|
-
onTooltipClickOutside(): void;
|
|
922
|
-
private getRandomId;
|
|
923
938
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
924
939
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonComponent, "cw-button", never, { "type": { "alias": "type"; "required": false; }; "label": { "alias": "label"; "required": false; }; "id": { "alias": "id"; "required": false; }; "link": { "alias": "link"; "required": false; }; "isDropdown": { "alias": "isDropdown"; "required": false; }; "hideCaret": { "alias": "hideCaret"; "required": false; }; "withIcon": { "alias": "withIcon"; "required": false; }; "withOnlyIcon": { "alias": "withOnlyIcon"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "dropdownPosition": { "alias": "dropdownPosition"; "required": false; }; "isMinWidth": { "alias": "isMinWidth"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; "dataTest": { "alias": "dataTest"; "required": false; }; "skeletonMode": { "alias": "skeletonMode"; "required": false; }; "withTooltip": { "alias": "withTooltip"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; "tooltipTitle": { "alias": "tooltipTitle"; "required": false; }; "tooltipTrigger": { "alias": "tooltipTrigger"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; "tooltipType": { "alias": "tooltipType"; "required": false; }; }, { "btnAction": "btnAction"; "dropDownClicked": "dropDownClicked"; }, never, ["*"], true, never>;
|
|
925
940
|
}
|
|
@@ -1417,6 +1432,13 @@ declare class FormFieldComponent implements OnInit, OnChanges, AfterViewInit, On
|
|
|
1417
1432
|
* par `[formControl]` (file, phone) dont l'attribut DOM est posé via le template.
|
|
1418
1433
|
*/
|
|
1419
1434
|
get isEffectivelyDisabled(): boolean;
|
|
1435
|
+
/**
|
|
1436
|
+
* `true` si le champ est désactivé OU en lecture seule. Sert à poser une classe d'état
|
|
1437
|
+
* sur le wrapper `.field-group` (même rendu visuel pour les deux états, comme demandé),
|
|
1438
|
+
* pour englober les addons dans le style désactivé/lecture-seule — exactement comme
|
|
1439
|
+
* `isInvalid` le fait avec `.field-group-invalid`.
|
|
1440
|
+
*/
|
|
1441
|
+
get isDisabledOrReadonly(): boolean;
|
|
1420
1442
|
/**
|
|
1421
1443
|
* Synchronise l'état `disabled` du control lié avec l'input `isDisabled`.
|
|
1422
1444
|
*
|
|
@@ -1937,6 +1959,51 @@ declare class ClickOutsideDirective {
|
|
|
1937
1959
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ClickOutsideDirective, "[clickOutside]", never, {}, { "clickOutside": "clickOutside"; }, never, never, true, never>;
|
|
1938
1960
|
}
|
|
1939
1961
|
|
|
1962
|
+
/**
|
|
1963
|
+
* Tooltip/popover porté à la racine du DOM via CDK Overlay et positionné dynamiquement.
|
|
1964
|
+
* Résout les bugs de z-index/clipping liés au rendu inline (overflow + stacking context des ancêtres).
|
|
1965
|
+
*
|
|
1966
|
+
* @example <button cwTooltip="_KEY.TXT" cwTooltipTitle="_KEY.TITLE" cwTooltipPosition="top">…</button>
|
|
1967
|
+
*/
|
|
1968
|
+
declare class CwTooltipDirective implements OnDestroy {
|
|
1969
|
+
private readonly overlay;
|
|
1970
|
+
private readonly positionBuilder;
|
|
1971
|
+
private readonly elementRef;
|
|
1972
|
+
private readonly renderer;
|
|
1973
|
+
private readonly viewContainerRef;
|
|
1974
|
+
private readonly destroyRef;
|
|
1975
|
+
/** Texte (clé i18n) du tooltip. Alias principal : `[cwTooltip]="key"`. */
|
|
1976
|
+
text: string;
|
|
1977
|
+
cwTooltipTitle: string;
|
|
1978
|
+
cwTooltipType: TypeTooltipEnum;
|
|
1979
|
+
cwTooltipTrigger: TriggerTooltipEnum;
|
|
1980
|
+
cwTooltipPosition: TooltipPositionEnum;
|
|
1981
|
+
/** Désactive le tooltip sans retirer la directive (pass-through de `withTooltip`). */
|
|
1982
|
+
cwTooltipDisabled: boolean;
|
|
1983
|
+
private overlayRef?;
|
|
1984
|
+
private contentRef?;
|
|
1985
|
+
private readonly tooltipId;
|
|
1986
|
+
private get isHover();
|
|
1987
|
+
onEnter(): void;
|
|
1988
|
+
onLeave(): void;
|
|
1989
|
+
onClick(): void;
|
|
1990
|
+
onEscape(): void;
|
|
1991
|
+
ngOnDestroy(): void;
|
|
1992
|
+
private toggle;
|
|
1993
|
+
private show;
|
|
1994
|
+
private hide;
|
|
1995
|
+
private ensureOverlay;
|
|
1996
|
+
/** Position préférée (celle demandée) puis fallbacks pour le flip. */
|
|
1997
|
+
private buildPositions;
|
|
1998
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CwTooltipDirective, never>;
|
|
1999
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CwTooltipDirective, "[cwTooltip]", never, { "text": { "alias": "cwTooltip"; "required": false; }; "cwTooltipTitle": { "alias": "cwTooltipTitle"; "required": false; }; "cwTooltipType": { "alias": "cwTooltipType"; "required": false; }; "cwTooltipTrigger": { "alias": "cwTooltipTrigger"; "required": false; }; "cwTooltipPosition": { "alias": "cwTooltipPosition"; "required": false; }; "cwTooltipDisabled": { "alias": "cwTooltipDisabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
2000
|
+
}
|
|
2001
|
+
/**
|
|
2002
|
+
* Déduit la classe de flèche (= côté du tooltip par rapport à l'hôte) depuis la
|
|
2003
|
+
* position effective renvoyée par le CDK. Fonction pure, testable isolément.
|
|
2004
|
+
*/
|
|
2005
|
+
declare function resolveArrowPos(pair: ConnectedPosition): TooltipPositionEnum;
|
|
2006
|
+
|
|
1940
2007
|
declare enum PlacementEnum {
|
|
1941
2008
|
Left = "left",
|
|
1942
2009
|
Right = "right"
|
|
@@ -2011,5 +2078,5 @@ interface DataCustomListGroup {
|
|
|
2011
2078
|
fields: DataCustomList[];
|
|
2012
2079
|
}
|
|
2013
2080
|
|
|
2014
|
-
export { AccordionComponent, AlertComponent, AlertTypeEnum, BadgeComponent, BadgePositionEnum, BadgeTypeEnum, BoButtonTypeEnum, BoTabTypeEnum, BreadcrumbComponent, ButtonComponent, ButtonIconSizeEnum, ButtonPositionEnum, CardComponent, CardTitleRankEnum, CardTypeEnum, ClickOutsideDirective, CollapseDirective, DropdownComponent, DropdownItemDirective, DropdownPositionEnum, FileToDownloadComponent, FoButtonTypeEnum, FoTabTypeEnum, FocusTrackerService, FormFieldComponent, FormFieldTypeEnum, IconComponent, IconNotifSizeEnum, IconNotifTypeEnum, IconNotificationComponent, IconSizeEnum, IconTypeEnum, IconUiTypeEnum, ImageComponent, LanguageSelectorComponent, LegendComponent, LegendTypeEnum, LoaderComponent, ModalsComponent, ModalsService, ModalsSize, ModalsType, NumericalRangeComponent, NumericalRangeLabelPositionEnum, NumericalRangeTypeEnum, PlacementEnum, RequiredInfoComponent, ResponsiveService, SkipLinksComponent, SpriteIconEnum, StepperComponent, TOAST_AUTOHIDE_DELAY_MS, TabComponent, TabContentComponent, TitleComponent, TitleContextEnum, TitleTagEnum, ToastComponent, ToastItemComponent, ToastService, TriggerTooltipEnum, TypeTooltipEnum, WizardStepComponent, WizardStepperComponent, rangeValidator };
|
|
2081
|
+
export { AccordionComponent, AlertComponent, AlertTypeEnum, BadgeComponent, BadgePositionEnum, BadgeTypeEnum, BoButtonTypeEnum, BoTabTypeEnum, BreadcrumbComponent, ButtonComponent, ButtonIconSizeEnum, ButtonPositionEnum, CardComponent, CardTitleRankEnum, CardTypeEnum, ClickOutsideDirective, CollapseDirective, CwTooltipDirective, DropdownComponent, DropdownItemDirective, DropdownPositionEnum, FileToDownloadComponent, FoButtonTypeEnum, FoTabTypeEnum, FocusTrackerService, FormFieldComponent, FormFieldTypeEnum, IconComponent, IconNotifSizeEnum, IconNotifTypeEnum, IconNotificationComponent, IconSizeEnum, IconTypeEnum, IconUiTypeEnum, ImageComponent, LanguageSelectorComponent, LegendComponent, LegendTypeEnum, LoaderComponent, ModalsComponent, ModalsService, ModalsSize, ModalsType, NumericalRangeComponent, NumericalRangeLabelPositionEnum, NumericalRangeTypeEnum, PlacementEnum, RequiredInfoComponent, ResponsiveService, SkipLinksComponent, SpriteIconEnum, StepperComponent, TOAST_AUTOHIDE_DELAY_MS, TabComponent, TabContentComponent, TitleComponent, TitleContextEnum, TitleTagEnum, ToastComponent, ToastItemComponent, ToastService, TooltipPositionEnum, TriggerTooltipEnum, TypeTooltipEnum, WizardStepComponent, WizardStepperComponent, rangeValidator, resolveArrowPos };
|
|
2015
2082
|
export type { Attachment, CwAutocompleteColumn, CwAutocompleteFetcher, CwAutocompleteItem, CwAutocompleteOptions, CwAutocompleteResolver, CwBreadcrumbItem, DataCustomList, DataCustomListGroup, DataLegend, FormFieldOption, FormFieldRangeOption, FormFieldValidationOption, Legend, ModalConfig, ModalRef, ShowToastOptions, SkipLink, Toast, ToastAction };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cityway/basic-ui",
|
|
3
|
-
"version": "1.0.2-
|
|
3
|
+
"version": "1.0.2-beta027",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^20.3.0",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"@angular/animations": "^20.3.0",
|
|
10
10
|
"@angular/cdk": "^20.2.2",
|
|
11
11
|
"@angular/platform-browser": "^20.3.0",
|
|
12
|
-
"@cityway/design-tokens": "1.0.1-
|
|
12
|
+
"@cityway/design-tokens": "1.0.1-beta010",
|
|
13
13
|
"intl-tel-input": "^28.0.7"
|
|
14
14
|
},
|
|
15
15
|
"peerDependenciesMeta": {
|