@kksdev/ds-angular 1.7.0 → 1.7.2
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/fesm2022/kksdev-ds-angular.mjs +444 -114
- package/fesm2022/kksdev-ds-angular.mjs.map +1 -1
- package/index.d.ts +111 -54
- package/package.json +3 -3
- package/src/styles/storybook.scss +0 -58
package/index.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ import { ConnectedPosition, Overlay } from '@angular/cdk/overlay';
|
|
|
9
9
|
import * as _fortawesome_fontawesome_common_types from '@fortawesome/fontawesome-common-types';
|
|
10
10
|
import * as _kksdev_ds_angular from '@kksdev/ds-angular';
|
|
11
11
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
12
|
-
import { ArgTypes, Args } from '@storybook/angular';
|
|
13
12
|
|
|
14
13
|
type BadgeType = 'status' | 'count' | 'label';
|
|
15
14
|
type BadgeVariant = 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info' | 'neutral' | 'default' | 'accent';
|
|
@@ -5432,7 +5431,8 @@ interface TreeNode {
|
|
|
5432
5431
|
id: string | number;
|
|
5433
5432
|
label: string;
|
|
5434
5433
|
children?: TreeNode[];
|
|
5435
|
-
icon?:
|
|
5434
|
+
icon?: IconDefinition;
|
|
5435
|
+
expandedIcon?: IconDefinition;
|
|
5436
5436
|
disabled?: boolean;
|
|
5437
5437
|
expanded?: boolean;
|
|
5438
5438
|
checked?: boolean;
|
|
@@ -6450,6 +6450,12 @@ type SidebarSize = 'sm' | 'md' | 'lg';
|
|
|
6450
6450
|
* Position de la sidebar.
|
|
6451
6451
|
*/
|
|
6452
6452
|
type SidebarPosition = 'left' | 'right';
|
|
6453
|
+
/**
|
|
6454
|
+
* Trigger pour ouvrir le popover en mode collapsed.
|
|
6455
|
+
* - `hover` : Ouvre au survol de la souris
|
|
6456
|
+
* - `click` : Ouvre au clic
|
|
6457
|
+
*/
|
|
6458
|
+
type SidebarCollapsedTrigger = 'hover' | 'click';
|
|
6453
6459
|
/**
|
|
6454
6460
|
* Variante de couleur pour les badges.
|
|
6455
6461
|
*/
|
|
@@ -6534,6 +6540,8 @@ declare class DsSidebarItemComponent {
|
|
|
6534
6540
|
readonly showTooltip: _angular_core.InputSignal<boolean>;
|
|
6535
6541
|
readonly expandedItemIds: _angular_core.InputSignal<Set<string | number>>;
|
|
6536
6542
|
readonly activeItemId: _angular_core.InputSignal<string | number | null>;
|
|
6543
|
+
readonly sidebarPosition: _angular_core.InputSignal<SidebarPosition>;
|
|
6544
|
+
readonly collapsedTrigger: _angular_core.InputSignal<SidebarCollapsedTrigger>;
|
|
6537
6545
|
readonly itemClick: _angular_core.OutputEmitterRef<SidebarItemClickEvent>;
|
|
6538
6546
|
readonly itemToggle: _angular_core.OutputEmitterRef<SidebarItem>;
|
|
6539
6547
|
readonly itemKeydown: _angular_core.OutputEmitterRef<KeyboardEvent>;
|
|
@@ -6542,10 +6550,17 @@ declare class DsSidebarItemComponent {
|
|
|
6542
6550
|
readonly externalLinkIcon: _fortawesome_fontawesome_common_types.IconDefinition;
|
|
6543
6551
|
private readonly elementRef;
|
|
6544
6552
|
private readonly router;
|
|
6553
|
+
private readonly popoverOpen;
|
|
6554
|
+
readonly isPopoverOpen: _angular_core.Signal<boolean>;
|
|
6555
|
+
private readonly activeChildIndex;
|
|
6556
|
+
isHoveringPopover: boolean;
|
|
6557
|
+
private hideTimeout;
|
|
6545
6558
|
readonly hasChildren: _angular_core.Signal<boolean>;
|
|
6546
6559
|
readonly isExpanded: _angular_core.Signal<boolean>;
|
|
6547
6560
|
readonly isActive: _angular_core.Signal<boolean>;
|
|
6548
6561
|
readonly indentPadding: _angular_core.Signal<number>;
|
|
6562
|
+
/** Positions du popover selon la position de la sidebar */
|
|
6563
|
+
readonly popoverPositions: _angular_core.Signal<ConnectedPosition[]>;
|
|
6549
6564
|
/**
|
|
6550
6565
|
* Gère le clic sur l'item.
|
|
6551
6566
|
*/
|
|
@@ -6566,8 +6581,68 @@ declare class DsSidebarItemComponent {
|
|
|
6566
6581
|
* Donne le focus à cet élément.
|
|
6567
6582
|
*/
|
|
6568
6583
|
focus(): void;
|
|
6584
|
+
/**
|
|
6585
|
+
* Ouvre le popover (mode collapsed + hasChildren).
|
|
6586
|
+
*/
|
|
6587
|
+
openPopover(): void;
|
|
6588
|
+
/**
|
|
6589
|
+
* Ferme le popover.
|
|
6590
|
+
*/
|
|
6591
|
+
closePopover(): void;
|
|
6592
|
+
/**
|
|
6593
|
+
* Ferme le popover avec un délai.
|
|
6594
|
+
*/
|
|
6595
|
+
closePopoverWithDelay(): void;
|
|
6596
|
+
/**
|
|
6597
|
+
* Annule le timeout de fermeture.
|
|
6598
|
+
*/
|
|
6599
|
+
private clearHideTimeout;
|
|
6600
|
+
/**
|
|
6601
|
+
* Gestion du mouseenter sur l'item (ouvre le popover en mode collapsed + trigger hover).
|
|
6602
|
+
*/
|
|
6603
|
+
handleMouseEnter(): void;
|
|
6604
|
+
/**
|
|
6605
|
+
* Gestion du mouseleave sur l'item.
|
|
6606
|
+
*/
|
|
6607
|
+
handleMouseLeave(): void;
|
|
6608
|
+
/**
|
|
6609
|
+
* Toggle le popover (pour le mode click).
|
|
6610
|
+
*/
|
|
6611
|
+
togglePopover(): void;
|
|
6612
|
+
/**
|
|
6613
|
+
* Gestion du mouseenter sur le popover.
|
|
6614
|
+
*/
|
|
6615
|
+
handlePopoverMouseEnter(): void;
|
|
6616
|
+
/**
|
|
6617
|
+
* Gestion du mouseleave sur le popover.
|
|
6618
|
+
*/
|
|
6619
|
+
handlePopoverMouseLeave(): void;
|
|
6620
|
+
/**
|
|
6621
|
+
* Navigation clavier dans le popover.
|
|
6622
|
+
*/
|
|
6623
|
+
handlePopoverKeydown(event: KeyboardEvent): void;
|
|
6624
|
+
/**
|
|
6625
|
+
* Déplace l'index actif dans le popover.
|
|
6626
|
+
*/
|
|
6627
|
+
private moveChildIndex;
|
|
6628
|
+
/**
|
|
6629
|
+
* Sélectionne l'enfant actif dans le popover.
|
|
6630
|
+
*/
|
|
6631
|
+
private selectActiveChild;
|
|
6632
|
+
/**
|
|
6633
|
+
* Gère le clic sur un enfant dans le popover.
|
|
6634
|
+
*/
|
|
6635
|
+
handleChildClick(child: SidebarItem, event: MouseEvent): void;
|
|
6636
|
+
/**
|
|
6637
|
+
* Met à jour l'index actif au hover.
|
|
6638
|
+
*/
|
|
6639
|
+
setActiveChildIndex(index: number): void;
|
|
6640
|
+
/**
|
|
6641
|
+
* Retourne l'index actif du popover.
|
|
6642
|
+
*/
|
|
6643
|
+
getActiveChildIndex(): number;
|
|
6569
6644
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DsSidebarItemComponent, never>;
|
|
6570
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DsSidebarItemComponent, "ds-sidebar-item", never, { "item": { "alias": "item"; "required": true; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "showTooltip": { "alias": "showTooltip"; "required": false; "isSignal": true; }; "expandedItemIds": { "alias": "expandedItemIds"; "required": false; "isSignal": true; }; "activeItemId": { "alias": "activeItemId"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; "itemToggle": "itemToggle"; "itemKeydown": "itemKeydown"; }, never, never, true, never>;
|
|
6645
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DsSidebarItemComponent, "ds-sidebar-item", never, { "item": { "alias": "item"; "required": true; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "showTooltip": { "alias": "showTooltip"; "required": false; "isSignal": true; }; "expandedItemIds": { "alias": "expandedItemIds"; "required": false; "isSignal": true; }; "activeItemId": { "alias": "activeItemId"; "required": false; "isSignal": true; }; "sidebarPosition": { "alias": "sidebarPosition"; "required": false; "isSignal": true; }; "collapsedTrigger": { "alias": "collapsedTrigger"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; "itemToggle": "itemToggle"; "itemKeydown": "itemKeydown"; }, never, never, true, never>;
|
|
6571
6646
|
}
|
|
6572
6647
|
|
|
6573
6648
|
/**
|
|
@@ -6628,6 +6703,8 @@ declare class DsSidebar implements OnInit, AfterViewInit, OnDestroy {
|
|
|
6628
6703
|
readonly autoCollapseOnMobile: _angular_core.InputSignal<boolean>;
|
|
6629
6704
|
/** Affiche les tooltips en mode collapsed (désactivable) */
|
|
6630
6705
|
readonly showTooltips: _angular_core.InputSignal<boolean>;
|
|
6706
|
+
/** Trigger pour ouvrir le popover des sous-menus en mode collapsed */
|
|
6707
|
+
readonly collapsedTrigger: _angular_core.InputSignal<SidebarCollapsedTrigger>;
|
|
6631
6708
|
/** ID de l'item actif (contrôlé depuis l'extérieur) */
|
|
6632
6709
|
readonly initialActiveItemId: _angular_core.InputSignal<string | number | null>;
|
|
6633
6710
|
/** Émis lors du clic sur un item */
|
|
@@ -6770,7 +6847,18 @@ declare class DsSidebar implements OnInit, AfterViewInit, OnDestroy {
|
|
|
6770
6847
|
*/
|
|
6771
6848
|
private cleanupListeners;
|
|
6772
6849
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DsSidebar, never>;
|
|
6773
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DsSidebar, "ds-sidebar", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "responsiveBreakpoint": { "alias": "responsiveBreakpoint"; "required": false; "isSignal": true; }; "autoCollapseOnMobile": { "alias": "autoCollapseOnMobile"; "required": false; "isSignal": true; }; "showTooltips": { "alias": "showTooltips"; "required": false; "isSignal": true; }; "initialActiveItemId": { "alias": "initialActiveItemId"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; "itemExpand": "itemExpand"; "modeChange": "modeChange"; "overlayOpened": "overlayOpened"; "overlayClosed": "overlayClosed"; }, never, ["[sidebar-header]", "[sidebar-footer]"], true, never>;
|
|
6850
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DsSidebar, "ds-sidebar", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "responsiveBreakpoint": { "alias": "responsiveBreakpoint"; "required": false; "isSignal": true; }; "autoCollapseOnMobile": { "alias": "autoCollapseOnMobile"; "required": false; "isSignal": true; }; "showTooltips": { "alias": "showTooltips"; "required": false; "isSignal": true; }; "collapsedTrigger": { "alias": "collapsedTrigger"; "required": false; "isSignal": true; }; "initialActiveItemId": { "alias": "initialActiveItemId"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; "itemExpand": "itemExpand"; "modeChange": "modeChange"; "overlayOpened": "overlayOpened"; "overlayClosed": "overlayClosed"; }, never, ["[sidebar-header]", "[sidebar-footer]"], true, never>;
|
|
6851
|
+
}
|
|
6852
|
+
|
|
6853
|
+
declare class DsSidebarFooterItemComponent {
|
|
6854
|
+
readonly icon: _angular_core.InputSignal<IconDefinition$2>;
|
|
6855
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
6856
|
+
readonly mode: _angular_core.InputSignal<SidebarMode>;
|
|
6857
|
+
readonly variant: _angular_core.InputSignal<"default" | "danger">;
|
|
6858
|
+
readonly clicked: _angular_core.OutputEmitterRef<void>;
|
|
6859
|
+
readonly isCollapsed: _angular_core.Signal<boolean>;
|
|
6860
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DsSidebarFooterItemComponent, never>;
|
|
6861
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DsSidebarFooterItemComponent, "ds-sidebar-footer-item", never, { "icon": { "alias": "icon"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, never, true, never>;
|
|
6774
6862
|
}
|
|
6775
6863
|
|
|
6776
6864
|
/**
|
|
@@ -7226,7 +7314,7 @@ declare class DsListItem {
|
|
|
7226
7314
|
*/
|
|
7227
7315
|
handleKeyDown(event: KeyboardEvent): void;
|
|
7228
7316
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DsListItem, never>;
|
|
7229
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DsListItem, "ds-list-item", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "indicator": { "alias": "indicator"; "required": false; "isSignal": true; }; "indicatorColor": { "alias": "indicatorColor"; "required": false; "isSignal": true; }; "checkable": { "alias": "checkable"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "completed": { "alias": "completed"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "clickable": { "alias": "clickable"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "checkedChange": "checkedChange"; "clicked": "clicked"; }, never, ["[inline]", "[meta]", "[actions]"], true, never>;
|
|
7317
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DsListItem, "ds-list-item", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "indicator": { "alias": "indicator"; "required": false; "isSignal": true; }; "indicatorColor": { "alias": "indicatorColor"; "required": false; "isSignal": true; }; "checkable": { "alias": "checkable"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "completed": { "alias": "completed"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "clickable": { "alias": "clickable"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "checkedChange": "checkedChange"; "clicked": "clicked"; }, never, ["[inline]", "[meta]", "[actions]", "[secondary]"], true, never>;
|
|
7230
7318
|
}
|
|
7231
7319
|
|
|
7232
7320
|
/**
|
|
@@ -7611,53 +7699,22 @@ declare const POPOVER_POSITIONS: ConnectedPosition[];
|
|
|
7611
7699
|
* 2. Fallback : aligné à gauche, pleine largeur, au-dessus
|
|
7612
7700
|
*/
|
|
7613
7701
|
declare const AUTOCOMPLETE_POSITIONS: ConnectedPosition[];
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
|
|
7622
|
-
|
|
7623
|
-
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
|
|
7629
|
-
|
|
7630
|
-
includeLoading?: boolean;
|
|
7631
|
-
includeBlock?: boolean;
|
|
7632
|
-
}
|
|
7633
|
-
declare const buildButtonArgs: ({ includeLoading, includeBlock }?: ArgOptions) => {
|
|
7634
|
-
block?: boolean | undefined;
|
|
7635
|
-
loading?: boolean | undefined;
|
|
7636
|
-
variant: ButtonVariant;
|
|
7637
|
-
appearance: ButtonAppearance;
|
|
7638
|
-
size: ButtonSize;
|
|
7639
|
-
disabled: boolean;
|
|
7640
|
-
};
|
|
7641
|
-
interface ButtonBindings {
|
|
7642
|
-
variant: string;
|
|
7643
|
-
appearance?: string;
|
|
7644
|
-
size: string;
|
|
7645
|
-
disabled?: string;
|
|
7646
|
-
loading?: string;
|
|
7647
|
-
block?: string;
|
|
7648
|
-
}
|
|
7649
|
-
declare const createVariantRender: (tagName: string, bindings: ButtonBindings, extraAttributes?: string) => (args: Args) => {
|
|
7650
|
-
props: {
|
|
7651
|
-
variants: readonly ["primary", "secondary", "ghost", "success", "warning", "error", "info"];
|
|
7652
|
-
};
|
|
7653
|
-
template: string;
|
|
7654
|
-
};
|
|
7655
|
-
declare const createSizeRender: (tagName: string, bindings: ButtonBindings, extraAttributes?: string) => (args: Args) => {
|
|
7656
|
-
props: {
|
|
7657
|
-
sizes: readonly ["sm", "md", "lg"];
|
|
7658
|
-
};
|
|
7659
|
-
template: string;
|
|
7660
|
-
};
|
|
7702
|
+
/**
|
|
7703
|
+
* Positions pour popover sidebar (sidebar à gauche → popover à droite)
|
|
7704
|
+
*
|
|
7705
|
+
* Utilise DROPDOWN_POSITIONS_RIGHT existant.
|
|
7706
|
+
* Alias exporté pour clarté sémantique.
|
|
7707
|
+
*/
|
|
7708
|
+
declare const SIDEBAR_POPOVER_POSITIONS_RIGHT: ConnectedPosition[];
|
|
7709
|
+
/**
|
|
7710
|
+
* Positions pour popover sidebar (sidebar à droite → popover à gauche)
|
|
7711
|
+
*
|
|
7712
|
+
* Stratégie :
|
|
7713
|
+
* 1. Position préférée : à gauche, aligné en haut
|
|
7714
|
+
* 2. Fallback : à gauche, aligné au centre
|
|
7715
|
+
* 3. Fallback : à droite si pas d'espace à gauche
|
|
7716
|
+
*/
|
|
7717
|
+
declare const SIDEBAR_POPOVER_POSITIONS_LEFT: ConnectedPosition[];
|
|
7661
7718
|
|
|
7662
7719
|
/**
|
|
7663
7720
|
* Service centralisé pour l'enregistrement des icônes FontAwesome.
|
|
@@ -7954,5 +8011,5 @@ declare function generateId(): string;
|
|
|
7954
8011
|
*/
|
|
7955
8012
|
declare function generateShortId(prefix?: string): string;
|
|
7956
8013
|
|
|
7957
|
-
export { AUTOCOMPLETE_POSITIONS,
|
|
7958
|
-
export type { AccordionChangeEvent, AccordionItem, AccordionSize, AccordionVariant, AlertSize, AlertType, AvatarShape, AvatarSize, BadgeAppearance, BadgeShape, BadgeSize, BadgeType, BadgeVariant, BreadcrumbItem, ButtonAppearance, ButtonSize, ButtonType, ButtonVariant, CalendarEvent, CalendarMode, CalendarSize, CardSize, CardVariant, CarouselDotsPosition, CarouselEffect, CarouselSlide, CheckboxListChangeEvent, CheckboxListItem, CheckboxListItemChangeEvent, CheckboxListSize, CheckboxSize, CheckboxState, ChipColor, ChipSize, ChipVariant, ColorFormat, ColorPickerSize, ContainerGutter, ContainerMaxWidth, DatePickerMode, DatePickerSize, DateRange, DividerLabelPosition, DividerOrientation, DividerSize, DividerVariant, DrawerPosition, DrawerSize, DropdownItem, DropdownItemDTO, DropdownPosition, DsComboboxOption, DsComboboxSize, DsSelectOption, DsSelectSize, DsTableColumn, DsTableSize, DsTableVariant, EmptySize, FileUploadSize, FlattenedSidebarItem, HSLColor, I18nLabels, InputAppearance, InputNumberControlsPosition, InputNumberSize, InputSize, InputState, InputType, ListDragEvent, ListEmptyConfig, ListGroupToggleEvent, ListGroupVariant, ListItemCheckEvent, ListItemClickEvent, ListItemIndicator, ListItemIndicatorColor, ListItemSize, ListSelectionChangeEvent, ListSize, ListVariant, MenuItem, MenuSize, MenuTrigger, NavListBadgeVariant, NavListGroup, NavListGroupToggleEvent, NavListItem, NavListItemClickEvent, NavListSize, NotificationAction, NotificationConfig, NotificationItem, NotificationPlacement, PageChangeEvent, PageSizeOption, PaginationSize, PasswordCriterion, PasswordStrength, PasswordStrengthSize, PopoverTrigger, ProgressBarMode, ProgressBarSize, ProgressBarVariant, RGBColor, RadioGroupLayout, RadioOption, RadioSize, RatingSize, SearchInputSize, SegmentOption, SegmentedControlColor, SegmentedControlOrientation, SegmentedControlSize, SidebarBadgeVariant, SidebarItem, SidebarItemClickEvent, SidebarItemExpandEvent, SidebarMode, SidebarPosition, SidebarSize, SkeletonSize, SkeletonVariant, SliderOrientation, SliderSize, SliderValue, SortDirection, SortEvent, Step, StepChangeEvent, StepState, StepperOrientation, StepperSize, SupportedLocale, TabItem, TableState, TextareaAppearance, TextareaResize, TextareaSize, TextareaState, TimeFormat, TimePickerSize, TimeValue, TimelineColor, TimelineItem, TimelineItemClickEvent, TimelineMode, TimelineSize, ToastInstance, ToastOptions, ToastPosition, ToastType, ToggleSize, TransferChangeEvent, TransferDirection, TransferItem, TransferSize, TreeNode, TreeNodeCheckEvent, TreeNodeExpandEvent, TreeNodeSelectEvent, TreeSize, UploadFile };
|
|
8014
|
+
export { AUTOCOMPLETE_POSITIONS, DROPDOWN_POSITIONS, DROPDOWN_POSITIONS_RIGHT, DROPDOWN_POSITIONS_TOP, DsAccordion, DsAlert, DsAvatar, DsBadge, DsBreadcrumb, DsButton, DsCalendar, DsCard, DsCarousel, DsCheckbox, DsCheckboxList, DsChip, DsColorPicker, DsCombobox, DsContainer, DsDatePicker, DsDivider, DsDrawer, DsDropdown, DsEmpty, DsFileUpload, DsI18nService, DsInputField, DsInputNumber, DsInputTextarea, DsList, DsListGroup, DsListItem, DsMenu, DsModalComponent, DsNavList, DsNotificationContainerComponent, DsNotificationItemComponent, DsNotificationService, DsPagination, DsPasswordStrength, DsPopover, DsPopoverComponent, DsProgressBar, DsRadioGroup, DsRating, DsSearchInput, DsSegmentedControl, DsSelect, DsSidebar, DsSidebarFooterItemComponent, DsSidebarItemComponent, DsSkeleton, DsSlider, DsStepper, DsTable, DsTabs, DsTimePicker, DsTimeline, DsToastComponent, DsToastContainerComponent, DsToastService, DsToggle, DsTooltip, DsTooltipComponent, DsTransfer, DsTree, IconRegistryService, POPOVER_POSITIONS, PrimitiveBadge, PrimitiveButton, PrimitiveCheckbox, PrimitiveInput, PrimitiveRadio, PrimitiveTextarea, PrimitiveToggle, SIDEBAR_POPOVER_POSITIONS_LEFT, SIDEBAR_POPOVER_POSITIONS_RIGHT, TOOLTIP_POSITIONS, generateId, generateShortId };
|
|
8015
|
+
export type { AccordionChangeEvent, AccordionItem, AccordionSize, AccordionVariant, AlertSize, AlertType, AvatarShape, AvatarSize, BadgeAppearance, BadgeShape, BadgeSize, BadgeType, BadgeVariant, BreadcrumbItem, ButtonAppearance, ButtonSize, ButtonType, ButtonVariant, CalendarEvent, CalendarMode, CalendarSize, CardSize, CardVariant, CarouselDotsPosition, CarouselEffect, CarouselSlide, CheckboxListChangeEvent, CheckboxListItem, CheckboxListItemChangeEvent, CheckboxListSize, CheckboxSize, CheckboxState, ChipColor, ChipSize, ChipVariant, ColorFormat, ColorPickerSize, ContainerGutter, ContainerMaxWidth, DatePickerMode, DatePickerSize, DateRange, DividerLabelPosition, DividerOrientation, DividerSize, DividerVariant, DrawerPosition, DrawerSize, DropdownItem, DropdownItemDTO, DropdownPosition, DsComboboxOption, DsComboboxSize, DsSelectOption, DsSelectSize, DsTableColumn, DsTableSize, DsTableVariant, EmptySize, FileUploadSize, FlattenedSidebarItem, HSLColor, I18nLabels, InputAppearance, InputNumberControlsPosition, InputNumberSize, InputSize, InputState, InputType, ListDragEvent, ListEmptyConfig, ListGroupToggleEvent, ListGroupVariant, ListItemCheckEvent, ListItemClickEvent, ListItemIndicator, ListItemIndicatorColor, ListItemSize, ListSelectionChangeEvent, ListSize, ListVariant, MenuItem, MenuSize, MenuTrigger, NavListBadgeVariant, NavListGroup, NavListGroupToggleEvent, NavListItem, NavListItemClickEvent, NavListSize, NotificationAction, NotificationConfig, NotificationItem, NotificationPlacement, PageChangeEvent, PageSizeOption, PaginationSize, PasswordCriterion, PasswordStrength, PasswordStrengthSize, PopoverTrigger, ProgressBarMode, ProgressBarSize, ProgressBarVariant, RGBColor, RadioGroupLayout, RadioOption, RadioSize, RatingSize, SearchInputSize, SegmentOption, SegmentedControlColor, SegmentedControlOrientation, SegmentedControlSize, SidebarBadgeVariant, SidebarCollapsedTrigger, SidebarItem, SidebarItemClickEvent, SidebarItemExpandEvent, SidebarMode, SidebarPosition, SidebarSize, SkeletonSize, SkeletonVariant, SliderOrientation, SliderSize, SliderValue, SortDirection, SortEvent, Step, StepChangeEvent, StepState, StepperOrientation, StepperSize, SupportedLocale, TabItem, TableState, TextareaAppearance, TextareaResize, TextareaSize, TextareaState, TimeFormat, TimePickerSize, TimeValue, TimelineColor, TimelineItem, TimelineItemClickEvent, TimelineMode, TimelineSize, ToastInstance, ToastOptions, ToastPosition, ToastType, ToggleSize, TransferChangeEvent, TransferDirection, TransferItem, TransferSize, TreeNode, TreeNodeCheckEvent, TreeNodeExpandEvent, TreeNodeSelectEvent, TreeSize, UploadFile };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kksdev/ds-angular",
|
|
3
|
-
"version": "1.7.
|
|
4
|
-
"description": "Angular 20 standalone component library - Design System with
|
|
3
|
+
"version": "1.7.2",
|
|
4
|
+
"description": "Angular 20 standalone component library - Design System with 53 components, 7 primitives, 3 themes, i18n support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
7
7
|
"angular20",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"signals",
|
|
13
13
|
"accessibility",
|
|
14
14
|
"wcag",
|
|
15
|
-
"
|
|
15
|
+
"showcase"
|
|
16
16
|
],
|
|
17
17
|
"author": "KKSDEV Team",
|
|
18
18
|
"license": "MIT",
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
// ============================================================================
|
|
2
|
-
// DS-ANGULAR — Storybook Global Styles
|
|
3
|
-
// ============================================================================
|
|
4
|
-
//
|
|
5
|
-
// Ce fichier importe tous les styles nécessaires pour Storybook.
|
|
6
|
-
// Il est référencé dans angular.json pour les targets storybook.
|
|
7
|
-
//
|
|
8
|
-
// ============================================================================
|
|
9
|
-
|
|
10
|
-
// Import des tokens (variables CSS sur :root)
|
|
11
|
-
// Note: @use doit toujours être en premier en SCSS
|
|
12
|
-
@use './tokens/tokens';
|
|
13
|
-
|
|
14
|
-
// Import des thèmes (variables sur :root.theme-light et :root.theme-dark)
|
|
15
|
-
@use './themes/light';
|
|
16
|
-
@use './themes/dark';
|
|
17
|
-
@use './themes/custom';
|
|
18
|
-
|
|
19
|
-
// Import des styles CDK Overlay (nécessaire pour modal, dropdown, tooltip, etc.)
|
|
20
|
-
@import '@angular/cdk/overlay-prebuilt.css';
|
|
21
|
-
|
|
22
|
-
:root,
|
|
23
|
-
body {
|
|
24
|
-
font-size: var(--font-size-m, 1rem);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
:root[data-typography='small'],
|
|
28
|
-
body[data-typography='small'] {
|
|
29
|
-
font-size: var(--font-size-s, 0.875rem);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
:root[data-typography='large'],
|
|
33
|
-
body[data-typography='large'] {
|
|
34
|
-
font-size: var(--font-size-l, 1.5rem);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
:root[data-density='compact'],
|
|
38
|
-
body[data-density='compact'] {
|
|
39
|
-
--btn-height-md: var(--btn-height-sm);
|
|
40
|
-
--input-height-md: var(--input-height-sm);
|
|
41
|
-
--space-4: var(--space-3);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
:root[data-density='comfortable'],
|
|
45
|
-
body[data-density='comfortable'] {
|
|
46
|
-
--btn-height-md: var(--btn-height-lg);
|
|
47
|
-
--input-height-md: var(--input-height-lg);
|
|
48
|
-
--space-4: var(--space-6);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// ============================================================================
|
|
52
|
-
// CDK Overlay Panel Classes
|
|
53
|
-
// ============================================================================
|
|
54
|
-
// Ces styles sont globaux car les overlays CDK sont rendus au niveau du document
|
|
55
|
-
|
|
56
|
-
.ds-time-picker-panel-overlay {
|
|
57
|
-
z-index: 1000;
|
|
58
|
-
}
|