@kksdev/ds-angular 1.7.0 → 1.7.1
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 +434 -106
- package/fesm2022/kksdev-ds-angular.mjs.map +1 -1
- package/index.d.ts +108 -52
- package/package.json +2 -2
- 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';
|
|
@@ -6450,6 +6449,12 @@ type SidebarSize = 'sm' | 'md' | 'lg';
|
|
|
6450
6449
|
* Position de la sidebar.
|
|
6451
6450
|
*/
|
|
6452
6451
|
type SidebarPosition = 'left' | 'right';
|
|
6452
|
+
/**
|
|
6453
|
+
* Trigger pour ouvrir le popover en mode collapsed.
|
|
6454
|
+
* - `hover` : Ouvre au survol de la souris
|
|
6455
|
+
* - `click` : Ouvre au clic
|
|
6456
|
+
*/
|
|
6457
|
+
type SidebarCollapsedTrigger = 'hover' | 'click';
|
|
6453
6458
|
/**
|
|
6454
6459
|
* Variante de couleur pour les badges.
|
|
6455
6460
|
*/
|
|
@@ -6534,6 +6539,8 @@ declare class DsSidebarItemComponent {
|
|
|
6534
6539
|
readonly showTooltip: _angular_core.InputSignal<boolean>;
|
|
6535
6540
|
readonly expandedItemIds: _angular_core.InputSignal<Set<string | number>>;
|
|
6536
6541
|
readonly activeItemId: _angular_core.InputSignal<string | number | null>;
|
|
6542
|
+
readonly sidebarPosition: _angular_core.InputSignal<SidebarPosition>;
|
|
6543
|
+
readonly collapsedTrigger: _angular_core.InputSignal<SidebarCollapsedTrigger>;
|
|
6537
6544
|
readonly itemClick: _angular_core.OutputEmitterRef<SidebarItemClickEvent>;
|
|
6538
6545
|
readonly itemToggle: _angular_core.OutputEmitterRef<SidebarItem>;
|
|
6539
6546
|
readonly itemKeydown: _angular_core.OutputEmitterRef<KeyboardEvent>;
|
|
@@ -6542,10 +6549,17 @@ declare class DsSidebarItemComponent {
|
|
|
6542
6549
|
readonly externalLinkIcon: _fortawesome_fontawesome_common_types.IconDefinition;
|
|
6543
6550
|
private readonly elementRef;
|
|
6544
6551
|
private readonly router;
|
|
6552
|
+
private readonly popoverOpen;
|
|
6553
|
+
readonly isPopoverOpen: _angular_core.Signal<boolean>;
|
|
6554
|
+
private readonly activeChildIndex;
|
|
6555
|
+
isHoveringPopover: boolean;
|
|
6556
|
+
private hideTimeout;
|
|
6545
6557
|
readonly hasChildren: _angular_core.Signal<boolean>;
|
|
6546
6558
|
readonly isExpanded: _angular_core.Signal<boolean>;
|
|
6547
6559
|
readonly isActive: _angular_core.Signal<boolean>;
|
|
6548
6560
|
readonly indentPadding: _angular_core.Signal<number>;
|
|
6561
|
+
/** Positions du popover selon la position de la sidebar */
|
|
6562
|
+
readonly popoverPositions: _angular_core.Signal<ConnectedPosition[]>;
|
|
6549
6563
|
/**
|
|
6550
6564
|
* Gère le clic sur l'item.
|
|
6551
6565
|
*/
|
|
@@ -6566,8 +6580,68 @@ declare class DsSidebarItemComponent {
|
|
|
6566
6580
|
* Donne le focus à cet élément.
|
|
6567
6581
|
*/
|
|
6568
6582
|
focus(): void;
|
|
6583
|
+
/**
|
|
6584
|
+
* Ouvre le popover (mode collapsed + hasChildren).
|
|
6585
|
+
*/
|
|
6586
|
+
openPopover(): void;
|
|
6587
|
+
/**
|
|
6588
|
+
* Ferme le popover.
|
|
6589
|
+
*/
|
|
6590
|
+
closePopover(): void;
|
|
6591
|
+
/**
|
|
6592
|
+
* Ferme le popover avec un délai.
|
|
6593
|
+
*/
|
|
6594
|
+
closePopoverWithDelay(): void;
|
|
6595
|
+
/**
|
|
6596
|
+
* Annule le timeout de fermeture.
|
|
6597
|
+
*/
|
|
6598
|
+
private clearHideTimeout;
|
|
6599
|
+
/**
|
|
6600
|
+
* Gestion du mouseenter sur l'item (ouvre le popover en mode collapsed + trigger hover).
|
|
6601
|
+
*/
|
|
6602
|
+
handleMouseEnter(): void;
|
|
6603
|
+
/**
|
|
6604
|
+
* Gestion du mouseleave sur l'item.
|
|
6605
|
+
*/
|
|
6606
|
+
handleMouseLeave(): void;
|
|
6607
|
+
/**
|
|
6608
|
+
* Toggle le popover (pour le mode click).
|
|
6609
|
+
*/
|
|
6610
|
+
togglePopover(): void;
|
|
6611
|
+
/**
|
|
6612
|
+
* Gestion du mouseenter sur le popover.
|
|
6613
|
+
*/
|
|
6614
|
+
handlePopoverMouseEnter(): void;
|
|
6615
|
+
/**
|
|
6616
|
+
* Gestion du mouseleave sur le popover.
|
|
6617
|
+
*/
|
|
6618
|
+
handlePopoverMouseLeave(): void;
|
|
6619
|
+
/**
|
|
6620
|
+
* Navigation clavier dans le popover.
|
|
6621
|
+
*/
|
|
6622
|
+
handlePopoverKeydown(event: KeyboardEvent): void;
|
|
6623
|
+
/**
|
|
6624
|
+
* Déplace l'index actif dans le popover.
|
|
6625
|
+
*/
|
|
6626
|
+
private moveChildIndex;
|
|
6627
|
+
/**
|
|
6628
|
+
* Sélectionne l'enfant actif dans le popover.
|
|
6629
|
+
*/
|
|
6630
|
+
private selectActiveChild;
|
|
6631
|
+
/**
|
|
6632
|
+
* Gère le clic sur un enfant dans le popover.
|
|
6633
|
+
*/
|
|
6634
|
+
handleChildClick(child: SidebarItem, event: MouseEvent): void;
|
|
6635
|
+
/**
|
|
6636
|
+
* Met à jour l'index actif au hover.
|
|
6637
|
+
*/
|
|
6638
|
+
setActiveChildIndex(index: number): void;
|
|
6639
|
+
/**
|
|
6640
|
+
* Retourne l'index actif du popover.
|
|
6641
|
+
*/
|
|
6642
|
+
getActiveChildIndex(): number;
|
|
6569
6643
|
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>;
|
|
6644
|
+
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
6645
|
}
|
|
6572
6646
|
|
|
6573
6647
|
/**
|
|
@@ -6628,6 +6702,8 @@ declare class DsSidebar implements OnInit, AfterViewInit, OnDestroy {
|
|
|
6628
6702
|
readonly autoCollapseOnMobile: _angular_core.InputSignal<boolean>;
|
|
6629
6703
|
/** Affiche les tooltips en mode collapsed (désactivable) */
|
|
6630
6704
|
readonly showTooltips: _angular_core.InputSignal<boolean>;
|
|
6705
|
+
/** Trigger pour ouvrir le popover des sous-menus en mode collapsed */
|
|
6706
|
+
readonly collapsedTrigger: _angular_core.InputSignal<SidebarCollapsedTrigger>;
|
|
6631
6707
|
/** ID de l'item actif (contrôlé depuis l'extérieur) */
|
|
6632
6708
|
readonly initialActiveItemId: _angular_core.InputSignal<string | number | null>;
|
|
6633
6709
|
/** Émis lors du clic sur un item */
|
|
@@ -6770,7 +6846,18 @@ declare class DsSidebar implements OnInit, AfterViewInit, OnDestroy {
|
|
|
6770
6846
|
*/
|
|
6771
6847
|
private cleanupListeners;
|
|
6772
6848
|
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>;
|
|
6849
|
+
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>;
|
|
6850
|
+
}
|
|
6851
|
+
|
|
6852
|
+
declare class DsSidebarFooterItemComponent {
|
|
6853
|
+
readonly icon: _angular_core.InputSignal<IconDefinition$2>;
|
|
6854
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
6855
|
+
readonly mode: _angular_core.InputSignal<SidebarMode>;
|
|
6856
|
+
readonly variant: _angular_core.InputSignal<"default" | "danger">;
|
|
6857
|
+
readonly clicked: _angular_core.OutputEmitterRef<void>;
|
|
6858
|
+
readonly isCollapsed: _angular_core.Signal<boolean>;
|
|
6859
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DsSidebarFooterItemComponent, never>;
|
|
6860
|
+
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
6861
|
}
|
|
6775
6862
|
|
|
6776
6863
|
/**
|
|
@@ -7611,53 +7698,22 @@ declare const POPOVER_POSITIONS: ConnectedPosition[];
|
|
|
7611
7698
|
* 2. Fallback : aligné à gauche, pleine largeur, au-dessus
|
|
7612
7699
|
*/
|
|
7613
7700
|
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
|
-
};
|
|
7701
|
+
/**
|
|
7702
|
+
* Positions pour popover sidebar (sidebar à gauche → popover à droite)
|
|
7703
|
+
*
|
|
7704
|
+
* Utilise DROPDOWN_POSITIONS_RIGHT existant.
|
|
7705
|
+
* Alias exporté pour clarté sémantique.
|
|
7706
|
+
*/
|
|
7707
|
+
declare const SIDEBAR_POPOVER_POSITIONS_RIGHT: ConnectedPosition[];
|
|
7708
|
+
/**
|
|
7709
|
+
* Positions pour popover sidebar (sidebar à droite → popover à gauche)
|
|
7710
|
+
*
|
|
7711
|
+
* Stratégie :
|
|
7712
|
+
* 1. Position préférée : à gauche, aligné en haut
|
|
7713
|
+
* 2. Fallback : à gauche, aligné au centre
|
|
7714
|
+
* 3. Fallback : à droite si pas d'espace à gauche
|
|
7715
|
+
*/
|
|
7716
|
+
declare const SIDEBAR_POPOVER_POSITIONS_LEFT: ConnectedPosition[];
|
|
7661
7717
|
|
|
7662
7718
|
/**
|
|
7663
7719
|
* Service centralisé pour l'enregistrement des icônes FontAwesome.
|
|
@@ -7954,5 +8010,5 @@ declare function generateId(): string;
|
|
|
7954
8010
|
*/
|
|
7955
8011
|
declare function generateShortId(prefix?: string): string;
|
|
7956
8012
|
|
|
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 };
|
|
8013
|
+
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 };
|
|
8014
|
+
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kksdev/ds-angular",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "Angular 20 standalone component library - Design System with 50 components, 7 primitives, 3 themes, i18n support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -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
|
-
}
|