@kksdev/ds-angular 1.11.0 → 1.12.0

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/index.d.ts CHANGED
@@ -7992,6 +7992,84 @@ declare class DsEntityChip {
7992
7992
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<DsEntityChip, "ds-entity-chip", never, { "option": { "alias": "option"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "removed": "removed"; }, never, never, true, never>;
7993
7993
  }
7994
7994
 
7995
+ type InputDateSize = 'sm' | 'md' | 'lg';
7996
+ interface DateParseResult {
7997
+ valid: boolean;
7998
+ date: Date | null;
7999
+ error?: 'invalid_format' | 'invalid_date' | 'out_of_range';
8000
+ }
8001
+ /**
8002
+ * DsInputDate - Composant de saisie de date avec calendrier popup
8003
+ *
8004
+ * @description
8005
+ * Input textuel avec icône calendrier et popup DsDatePicker pour la sélection
8006
+ * de date dans les formulaires. Supporte la saisie manuelle et les contraintes min/max.
8007
+ *
8008
+ * @example
8009
+ * ```html
8010
+ * <ds-input-date
8011
+ * [(ngModel)]="selectedDate"
8012
+ * label="Date de naissance"
8013
+ * placeholder="jj/mm/aaaa">
8014
+ * </ds-input-date>
8015
+ * ```
8016
+ */
8017
+ declare class DsInputDate implements ControlValueAccessor {
8018
+ inputElementRef?: ElementRef<HTMLInputElement>;
8019
+ readonly value: _angular_core.InputSignal<Date | null>;
8020
+ readonly size: _angular_core.InputSignal<InputDateSize>;
8021
+ readonly disabled: _angular_core.InputSignal<boolean>;
8022
+ readonly readonly: _angular_core.InputSignal<boolean>;
8023
+ readonly placeholder: _angular_core.InputSignal<string>;
8024
+ readonly label: _angular_core.InputSignal<string | undefined>;
8025
+ readonly error: _angular_core.InputSignal<string | undefined>;
8026
+ readonly helper: _angular_core.InputSignal<string | undefined>;
8027
+ readonly minDate: _angular_core.InputSignal<Date | null>;
8028
+ readonly maxDate: _angular_core.InputSignal<Date | null>;
8029
+ readonly clearable: _angular_core.InputSignal<boolean>;
8030
+ readonly dateChange: _angular_core.OutputEmitterRef<Date | null>;
8031
+ readonly calendarIcon: _fortawesome_fontawesome_common_types.IconDefinition;
8032
+ readonly clearIcon: _fortawesome_fontawesome_common_types.IconDefinition;
8033
+ readonly errorIcon: _fortawesome_fontawesome_common_types.IconDefinition;
8034
+ readonly overlayPositions: ConnectedPosition[];
8035
+ readonly panelId: string;
8036
+ readonly isOpen: _angular_core.WritableSignal<boolean>;
8037
+ readonly internalValue: _angular_core.WritableSignal<Date | null>;
8038
+ readonly isFocused: _angular_core.WritableSignal<boolean>;
8039
+ readonly inputText: _angular_core.WritableSignal<string>;
8040
+ readonly hasParseError: _angular_core.WritableSignal<boolean>;
8041
+ private onChange;
8042
+ private onTouched;
8043
+ private hasExternalValue;
8044
+ readonly displayValue: _angular_core.Signal<string>;
8045
+ readonly containerClasses: _angular_core.Signal<string>;
8046
+ readonly isDisabled: _angular_core.Signal<boolean>;
8047
+ readonly inputState: _angular_core.Signal<"error" | "default">;
8048
+ readonly showClearButton: _angular_core.Signal<boolean>;
8049
+ readonly effectiveMinDate: _angular_core.Signal<Date | null>;
8050
+ readonly effectiveMaxDate: _angular_core.Signal<Date | null>;
8051
+ constructor();
8052
+ writeValue(value: Date | null): void;
8053
+ registerOnChange(fn: (value: Date | null) => void): void;
8054
+ registerOnTouched(fn: () => void): void;
8055
+ setDisabledState(isDisabled: boolean): void;
8056
+ toggle(): void;
8057
+ open(): void;
8058
+ close(): void;
8059
+ onInputFocus(): void;
8060
+ onInputBlur(): void;
8061
+ onInputChange(event: Event): void;
8062
+ onInputKeydown(event: KeyboardEvent): void;
8063
+ onCalendarIconClick(event: Event): void;
8064
+ onDateSelected(date: Date | null): void;
8065
+ onBackdropClick(): void;
8066
+ onOverlayKeydown(event: KeyboardEvent): void;
8067
+ clearValue(event: Event): void;
8068
+ private updateValue;
8069
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DsInputDate, never>;
8070
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DsInputDate, "ds-input-date", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "helper": { "alias": "helper"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; }, { "dateChange": "dateChange"; }, never, never, true, never>;
8071
+ }
8072
+
7995
8073
  /**
7996
8074
  * Positions standard pour dropdowns (menus déroulants, select, etc.)
7997
8075
  *
@@ -8363,5 +8441,5 @@ declare function generateId(): string;
8363
8441
  */
8364
8442
  declare function generateShortId(prefix?: string): string;
8365
8443
 
8366
- export { AUTOCOMPLETE_POSITIONS, DROPDOWN_POSITIONS, DROPDOWN_POSITIONS_RIGHT, DROPDOWN_POSITIONS_TOP, DsAccordion, DsAccordionItem, DsAlert, DsAvatar, DsBadge, DsBreadcrumb, DsButton, DsCalendar, DsCard, DsCarousel, DsCheckbox, DsCheckboxList, DsChip, DsColorPicker, DsCombobox, DsContainer, DsDatePicker, DsDivider, DsDrawer, DsDropdown, DsEmpty, DsEntityChip, DsEntityPicker, 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 };
8367
- 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, DsEntityOption, DsEntityPickerDisplayMode, DsEntityPickerSize, 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, NavListGroupActionEvent, NavListGroupToggleEvent, NavListHeaderAction, 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 };
8444
+ export { AUTOCOMPLETE_POSITIONS, DROPDOWN_POSITIONS, DROPDOWN_POSITIONS_RIGHT, DROPDOWN_POSITIONS_TOP, DsAccordion, DsAccordionItem, DsAlert, DsAvatar, DsBadge, DsBreadcrumb, DsButton, DsCalendar, DsCard, DsCarousel, DsCheckbox, DsCheckboxList, DsChip, DsColorPicker, DsCombobox, DsContainer, DsDatePicker, DsDivider, DsDrawer, DsDropdown, DsEmpty, DsEntityChip, DsEntityPicker, DsFileUpload, DsI18nService, DsInputDate, 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 };
8445
+ 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, DateParseResult, DatePickerMode, DatePickerSize, DateRange, DividerLabelPosition, DividerOrientation, DividerSize, DividerVariant, DrawerPosition, DrawerSize, DropdownItem, DropdownItemDTO, DropdownPosition, DsComboboxOption, DsComboboxSize, DsEntityOption, DsEntityPickerDisplayMode, DsEntityPickerSize, DsSelectOption, DsSelectSize, DsTableColumn, DsTableSize, DsTableVariant, EmptySize, FileUploadSize, FlattenedSidebarItem, HSLColor, I18nLabels, InputAppearance, InputDateSize, InputNumberControlsPosition, InputNumberSize, InputSize, InputState, InputType, ListDragEvent, ListEmptyConfig, ListGroupToggleEvent, ListGroupVariant, ListItemCheckEvent, ListItemClickEvent, ListItemIndicator, ListItemIndicatorColor, ListItemSize, ListSelectionChangeEvent, ListSize, ListVariant, MenuItem, MenuSize, MenuTrigger, NavListBadgeVariant, NavListGroup, NavListGroupActionEvent, NavListGroupToggleEvent, NavListHeaderAction, 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.11.0",
3
+ "version": "1.12.0",
4
4
  "description": "Angular 20 standalone component library - Design System with 55 components, 7 primitives, 3 themes, i18n support",
5
5
  "keywords": [
6
6
  "angular",
@@ -802,5 +802,21 @@
802
802
  --sidebar-trigger-shadow: var(--shadow-2);
803
803
  --sidebar-scrollbar-thumb: var(--custom-border);
804
804
  --sidebar-scrollbar-thumb-hover: var(--custom-text-muted);
805
+
806
+ /* ==========================================================================
807
+ * SÉMANTIQUES DS INPUT DATE
808
+ * ======================================================================== */
809
+ --ds-input-date-bg: var(--input-bg);
810
+ --ds-input-date-border: var(--input-border);
811
+ --ds-input-date-border-focus: var(--input-focus-border);
812
+ --ds-input-date-border-error: var(--input-error-border);
813
+ --ds-input-date-text: var(--input-text);
814
+ --ds-input-date-placeholder: var(--input-placeholder);
815
+ --ds-input-date-icon: var(--input-icon);
816
+ --ds-input-date-icon-hover: var(--custom-accent-primary);
817
+ --ds-input-date-popup-bg: var(--custom-bg);
818
+ --ds-input-date-popup-shadow: var(--shadow-3);
819
+ --ds-input-date-popup-border: var(--custom-border);
820
+ --ds-input-date-icon-zone-width: 72px;
805
821
  }
806
822
 
@@ -965,4 +965,20 @@
965
965
  --sidebar-trigger-shadow: var(--shadow-2);
966
966
  --sidebar-scrollbar-thumb: var(--gray-600);
967
967
  --sidebar-scrollbar-thumb-hover: var(--gray-500);
968
+
969
+ /* ==========================================================================
970
+ * SÉMANTIQUES DS INPUT DATE
971
+ * ======================================================================== */
972
+ --ds-input-date-bg: var(--input-bg);
973
+ --ds-input-date-border: var(--input-border);
974
+ --ds-input-date-border-focus: var(--input-focus-border);
975
+ --ds-input-date-border-error: var(--input-error-border);
976
+ --ds-input-date-text: var(--input-text);
977
+ --ds-input-date-placeholder: var(--input-placeholder);
978
+ --ds-input-date-icon: var(--input-icon);
979
+ --ds-input-date-icon-hover: var(--color-primary);
980
+ --ds-input-date-popup-bg: var(--gray-800);
981
+ --ds-input-date-popup-shadow: var(--shadow-3);
982
+ --ds-input-date-popup-border: var(--gray-700);
983
+ --ds-input-date-icon-zone-width: 72px;
968
984
  }
@@ -955,4 +955,20 @@
955
955
  --sidebar-trigger-shadow: var(--shadow-2);
956
956
  --sidebar-scrollbar-thumb: var(--gray-300);
957
957
  --sidebar-scrollbar-thumb-hover: var(--gray-400);
958
+
959
+ /* ==========================================================================
960
+ * SÉMANTIQUES DS INPUT DATE
961
+ * ======================================================================== */
962
+ --ds-input-date-bg: var(--input-bg);
963
+ --ds-input-date-border: var(--input-border);
964
+ --ds-input-date-border-focus: var(--input-focus-border);
965
+ --ds-input-date-border-error: var(--input-error-border);
966
+ --ds-input-date-text: var(--input-text);
967
+ --ds-input-date-placeholder: var(--input-placeholder);
968
+ --ds-input-date-icon: var(--input-icon);
969
+ --ds-input-date-icon-hover: var(--color-primary);
970
+ --ds-input-date-popup-bg: var(--surface-default);
971
+ --ds-input-date-popup-shadow: var(--shadow-3);
972
+ --ds-input-date-popup-border: var(--border-color);
973
+ --ds-input-date-icon-zone-width: 72px;
958
974
  }