@coreui/angular 5.7.21 → 5.7.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coreui/angular",
3
- "version": "5.7.21",
3
+ "version": "5.7.23",
4
4
  "description": "CoreUI Components Library for Angular",
5
5
  "copyright": "Copyright 2026 creativeLabs Łukasz Holeczek",
6
6
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  "@angular/core": "^22.1.0",
31
31
  "@angular/router": "^22.1.0",
32
32
  "@coreui/coreui": "^5.9.0",
33
- "@coreui/icons-angular": "~5.7.21",
33
+ "@coreui/icons-angular": "~5.7.23",
34
34
  "rxjs": "^7.8.2"
35
35
  },
36
36
  "repository": {
@@ -33,6 +33,8 @@ type BackgroundColors = Colors | 'body' | 'white' | 'transparent';
33
33
  type Directions = 'down' | 'up' | 'start' | 'end' | '';
34
34
  type TextColors = Colors | 'primary-emphasis' | 'secondary-emphasis' | 'success-emphasis' | 'danger-emphasis' | 'warning-emphasis' | 'info-emphasis' | 'light-emphasis' | 'body' | 'body-emphasis' | 'body-secondary' | 'body-tertiary' | 'black' | 'black-50' | 'white' | 'white-50' | string;
35
35
  type Alignment = 'baseline' | 'top' | 'middle' | 'bottom' | 'text-top' | 'text-bottom';
36
+ type DropdownDirection = 'start' | 'end';
37
+ type DropdownAlignment = DropdownDirection | Partial<Record<BreakpointInfixStrings, DropdownDirection>>;
36
38
  type BadgePositions = 'top-start' | 'top-end' | 'bottom-end' | 'bottom-start' | string | undefined;
37
39
  type Placements = 'auto' | 'auto-start' | 'auto-end' | 'top-end' | 'top' | 'top-start' | 'bottom-end' | 'bottom' | 'bottom-start' | 'right-start' | 'right' | 'right-end' | 'left-start' | 'left' | 'left-end' | undefined;
38
40
  type Shapes = 'rounded' | 'rounded-top' | 'rounded-end' | 'rounded-bottom' | 'rounded-start' | 'rounded-circle' | 'rounded-pill' | 'rounded-0' | 'rounded-1' | 'rounded-2' | 'rounded-3' | string;
@@ -75,6 +77,7 @@ declare class HtmlAttributesDirective {
75
77
  * @returns Record<string, any>
76
78
  */
77
79
  readonly cHtmlAttr: _angular_core.InputSignal<Record<string, any> | undefined>;
80
+ constructor();
78
81
  private setStyle;
79
82
  private addClass;
80
83
  private setAttrib;
@@ -408,7 +411,7 @@ declare class BreadcrumbItemComponent {
408
411
  readonly active: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
409
412
  /**
410
413
  * The `url` prop for the inner `[routerLink]` directive
411
- * @returns string
414
+ * @returns string | any[]
412
415
  */
413
416
  readonly url: _angular_core.InputSignal<string | any[] | undefined>;
414
417
  /**
@@ -502,7 +505,7 @@ declare class ButtonDirective {
502
505
  * Size the component small or large.
503
506
  * @returns 'sm' | 'lg' | ''
504
507
  */
505
- readonly size: InputSignal<string>;
508
+ readonly size: InputSignal<"" | "sm" | "lg">;
506
509
  /**
507
510
  * The tabindex attribute specifies the tab order of an element (when the "tab" button is used for navigating).
508
511
  */
@@ -550,9 +553,9 @@ declare class ButtonModule {
550
553
  declare class ButtonGroupComponent {
551
554
  /**
552
555
  * Size the component small or large.
553
- * @returns '' | 'sm' | 'lg' | string
556
+ * @returns '' | 'sm' | 'lg'
554
557
  */
555
- readonly size: _angular_core.InputSignal<string | undefined>;
558
+ readonly size: _angular_core.InputSignal<"" | "sm" | "lg" | undefined>;
556
559
  /**
557
560
  * Create a set of buttons that appear vertically stacked rather than horizontally. Split button dropdowns are not supported here.
558
561
  * @returns boolean
@@ -655,7 +658,7 @@ declare class CardHeaderActionsComponent {
655
658
  declare class CardImgDirective {
656
659
  /**
657
660
  * Optionally orientate the image to the top, bottom, or make it overlaid across the card.
658
- * @returns {'top | 'bottom'}
661
+ * @returns 'top' | 'bottom' | 'start' | 'end'
659
662
  */
660
663
  readonly orientation: _angular_core.InputSignal<"start" | "end" | "top" | "bottom" | undefined>;
661
664
  readonly hostClasses: _angular_core.Signal<Record<string, boolean>>;
@@ -726,7 +729,7 @@ declare class CarouselComponent implements OnInit, OnDestroy, AfterContentInit {
726
729
  readonly interval: _angular_core.WritableSignal<number>;
727
730
  /**
728
731
  * Sets which event handlers you’d like provided to your pause prop. You can specify one trigger or an array of them.
729
- * @returns 'hover' | 'focus' | 'click'
732
+ * @returns Triggers | Triggers[] | false
730
733
  */
731
734
  readonly pause: _angular_core.InputSignal<false | Triggers | Triggers[]>;
732
735
  /**
@@ -961,9 +964,9 @@ declare class DropdownMenuDirective implements OnInit, AfterContentInit {
961
964
  readonly elementRef: ElementRef;
962
965
  /**
963
966
  * Set alignment of dropdown menu.
964
- * @returns 'start' | 'end'
967
+ * @returns DropdownAlignment
965
968
  */
966
- readonly alignment: _angular_core.InputSignal<string | undefined>;
969
+ readonly alignment: _angular_core.InputSignal<DropdownAlignment | undefined>;
967
970
  /**
968
971
  * Toggle the visibility of dropdown menu component.
969
972
  * @returns boolean
@@ -972,6 +975,7 @@ declare class DropdownMenuDirective implements OnInit, AfterContentInit {
972
975
  readonly visible: _angular_core.WritableSignal<boolean>;
973
976
  readonly hostClasses: _angular_core.Signal<Record<string, boolean>>;
974
977
  readonly hostStyles: _angular_core.Signal<Record<string, any>>;
978
+ readonly dataPopper: _angular_core.Signal<"static" | null>;
975
979
  onKeyDown($event: KeyboardEvent): void;
976
980
  onKeyUp($event: KeyboardEvent): void;
977
981
  readonly dropdownItemsContent: _angular_core.Signal<readonly DropdownItemDirective[]>;
@@ -990,6 +994,8 @@ interface IDropdownState {
990
994
  declare class DropdownService {
991
995
  #private;
992
996
  readonly dropdownState$: rxjs.Observable<any>;
997
+ readonly alignment: _angular_core.WritableSignal<DropdownAlignment | undefined>;
998
+ readonly popper: _angular_core.WritableSignal<boolean>;
993
999
  toggle(state: IDropdownState): void;
994
1000
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownService, never>;
995
1001
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<DropdownService>;
@@ -1039,18 +1045,21 @@ declare class DropdownComponent implements OnDestroy, OnInit {
1039
1045
  constructor();
1040
1046
  /**
1041
1047
  * Set alignment of dropdown menu.
1042
- * @returns {'start' | 'end' | { xs: 'start' | 'end' } | { sm: 'start' | 'end' } | { md: 'start' | 'end' } | { lg: 'start' | 'end' } | { xl: 'start' | 'end'} | { xxl: 'start' | 'end'}}
1048
+ * @returns DropdownAlignment
1043
1049
  */
1044
- readonly alignment: _angular_core.InputSignal<string | undefined>;
1050
+ readonly alignment: _angular_core.InputSignal<DropdownAlignment | undefined>;
1045
1051
  /**
1046
- * Automatically close dropdown when clicking outside the dropdown menu.
1052
+ * Configure the auto close behavior: `true` closes the dropdown on a click inside or
1053
+ * outside the menu, `false` only on the toggle button or an explicit hide/toggle call
1054
+ * and not on the Esc key, `inside` only on a click inside the menu, `outside` only on
1055
+ * a click outside it.
1047
1056
  * @returns boolean | 'inside' | 'outside'
1048
1057
  * @default true
1049
1058
  */
1050
1059
  readonly autoClose: _angular_core.InputSignal<boolean | "inside" | "outside">;
1051
1060
  /**
1052
1061
  * Sets a specified direction and location of the dropdown menu.
1053
- * @returns 'dropup' | 'dropend' | 'dropstart'
1062
+ * @returns 'center' | 'dropup' | 'dropup-center' | 'dropend' | 'dropstart'
1054
1063
  */
1055
1064
  readonly direction: _angular_core.InputSignal<"center" | "dropup" | "dropup-center" | "dropend" | "dropstart" | undefined>;
1056
1065
  /**
@@ -1067,8 +1076,10 @@ declare class DropdownComponent implements OnDestroy, OnInit {
1067
1076
  */
1068
1077
  readonly popper: _angular_core.InputSignalWithTransform<boolean, unknown>;
1069
1078
  /**
1070
- * Optional popper Options object, `placement` prop takes precedence over
1079
+ * Optional Popper.js options object; the `placement` prop takes precedence over the
1080
+ * placement set here. See https://popper.js.org/docs/v2/constructors/#options
1071
1081
  * @returns Partial<Options>
1082
+ * @default {}
1072
1083
  */
1073
1084
  readonly popperOptionsInput: _angular_core.InputSignal<Partial<Options>>;
1074
1085
  set popperOptions(value: Partial<Options>);
@@ -1266,7 +1277,7 @@ declare class FormCheckComponent {
1266
1277
  * Size the component large or extra large. Works only with `[switch]="true"`
1267
1278
  * @default undefined
1268
1279
  */
1269
- readonly sizing: _angular_core.InputSignal<string | undefined>;
1280
+ readonly sizing: _angular_core.InputSignal<"" | "lg" | "xl" | undefined>;
1270
1281
  /**
1271
1282
  * Render a toggle switch on for checkbox.
1272
1283
  * @returns boolean
@@ -1285,7 +1296,7 @@ declare class FormControlDirective implements OnInit {
1285
1296
  * Size the component small or large.
1286
1297
  * @default undefined
1287
1298
  */
1288
- readonly sizing: _angular_core.InputSignal<string | undefined>;
1299
+ readonly sizing: _angular_core.InputSignal<"" | "sm" | "lg" | undefined>;
1289
1300
  /**
1290
1301
  * Set component validation state to valid.
1291
1302
  * @default undefined
@@ -1368,7 +1379,7 @@ declare class FormLabelDirective {
1368
1379
  * Size the label small or large.
1369
1380
  * @default ''
1370
1381
  */
1371
- readonly sizing: _angular_core.InputSignal<string | undefined>;
1382
+ readonly sizing: _angular_core.InputSignal<"" | "sm" | "lg" | undefined>;
1372
1383
  readonly hostClasses: _angular_core.Signal<Record<string, boolean>>;
1373
1384
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormLabelDirective, never>;
1374
1385
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FormLabelDirective, "[cLabel]", never, { "col": { "alias": "cLabel"; "required": false; "isSignal": true; }; "sizing": { "alias": "sizing"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
@@ -1379,7 +1390,7 @@ declare class FormSelectDirective {
1379
1390
  * Size the component small or large.
1380
1391
  * @default undefined
1381
1392
  */
1382
- readonly sizing: _angular_core.InputSignal<string | undefined>;
1393
+ readonly sizing: _angular_core.InputSignal<"" | "sm" | "lg" | undefined>;
1383
1394
  /**
1384
1395
  * Set component validation state to valid.
1385
1396
  * @default undefined
@@ -1399,7 +1410,7 @@ declare class InputGroupComponent {
1399
1410
  /**
1400
1411
  * Size the component small or large.
1401
1412
  */
1402
- readonly sizing: _angular_core.InputSignal<string | undefined>;
1413
+ readonly sizing: _angular_core.InputSignal<"" | "sm" | "lg" | undefined>;
1403
1414
  readonly hostClasses: _angular_core.Signal<Record<string, boolean>>;
1404
1415
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<InputGroupComponent, never>;
1405
1416
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<InputGroupComponent, "c-input-group", never, { "sizing": { "alias": "sizing"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
@@ -1746,7 +1757,7 @@ declare class ListGroupItemDirective {
1746
1757
  readonly active: InputSignalWithTransform<boolean, unknown>;
1747
1758
  /**
1748
1759
  * Sets the color context of the component to one of CoreUI’s themed colors.
1749
- * @returns InputSignal<Colors | undefined>
1760
+ * @returns Colors
1750
1761
  */
1751
1762
  readonly color: InputSignal<string | undefined>;
1752
1763
  /**
@@ -1903,8 +1914,7 @@ declare class NavbarTogglerDirective {
1903
1914
  constructor();
1904
1915
  /**
1905
1916
  * Reference to navbar collapse element (via # template variable)
1906
- * @returns string
1907
- * @default 'button'
1917
+ * @returns CollapseDirective
1908
1918
  */
1909
1919
  readonly collapseRef: _angular_core.InputSignal<CollapseDirective | undefined>;
1910
1920
  /**
@@ -2325,9 +2335,9 @@ declare class PaginationComponent {
2325
2335
  readonly align: _angular_core.InputSignal<"" | "start" | "end" | "center">;
2326
2336
  /**
2327
2337
  * Size the component small or large.
2328
- * @returns '' | 'sm' | 'lg' | string
2338
+ * @returns '' | 'sm' | 'lg'
2329
2339
  */
2330
- readonly size: _angular_core.InputSignal<string | undefined>;
2340
+ readonly size: _angular_core.InputSignal<"" | "sm" | "lg" | undefined>;
2331
2341
  /**
2332
2342
  * Default role for pagination
2333
2343
  * @returns string
@@ -3374,6 +3384,11 @@ declare class TabPaneComponent implements OnDestroy {
3374
3384
  show: boolean;
3375
3385
  active: boolean;
3376
3386
  };
3387
+ /**
3388
+ * Element role.
3389
+ * @returns string
3390
+ * @default 'tabpanel'
3391
+ */
3377
3392
  role: string;
3378
3393
  ngOnDestroy(): void;
3379
3394
  subscribeTabService(subscribe?: boolean): void;
@@ -3459,7 +3474,7 @@ declare class TabsComponent {
3459
3474
  readonly tabsService: TabsService;
3460
3475
  /**
3461
3476
  * The active item key.
3462
- * @returns <string | number | undefined>
3477
+ * @returns number | string
3463
3478
  */
3464
3479
  readonly activeItemKey: _angular_core.ModelSignal<string | number | undefined>;
3465
3480
  /**
@@ -4160,7 +4175,7 @@ declare class WidgetStatFComponent extends CardComponent {
4160
4175
  readonly title: _angular_core.InputSignal<string | undefined>;
4161
4176
  /**
4162
4177
  * Value for your widget to display
4163
- * @returns string
4178
+ * @returns string | number
4164
4179
  */
4165
4180
  readonly value: _angular_core.InputSignal<string | number | undefined>;
4166
4181
  readonly contentTemplates: _angular_core.Signal<readonly TemplateIdDirective[]>;
@@ -4180,4 +4195,4 @@ declare class WidgetModule {
4180
4195
  }
4181
4196
 
4182
4197
  export { AccordionButtonDirective, AccordionComponent, AccordionItemComponent, AccordionModule, AlertComponent, AlertHeadingDirective, AlertLinkDirective, AlertModule, AlignDirective, AvatarComponent, AvatarModule, BackdropService, BadgeComponent, BadgeModule, BgColorDirective, BorderDirective, BreadcrumbComponent, BreadcrumbItemComponent, BreadcrumbModule, BreadcrumbRouterComponent, BreadcrumbRouterService, BreakpointInfix, ButtonCloseDirective, ButtonDirective, ButtonGroupComponent, ButtonGroupModule, ButtonModule, ButtonToolbarComponent, CalloutComponent, CalloutModule, CardBodyComponent, CardComponent, CardFooterComponent, CardGroupComponent, CardHeaderActionsComponent, CardHeaderComponent, CardImgDirective, CardImgOverlayComponent, CardLinkDirective, CardModule, CardSubtitleDirective, CardTextDirective, CardTitleDirective, CarouselCaptionComponent, CarouselComponent, CarouselConfig, CarouselControlComponent, CarouselIndicatorsComponent, CarouselInnerComponent, CarouselItemComponent, CarouselModule, ClassToggleService, ColComponent, ColDirective, CollapseDirective, CollapseModule, ColorModeService, ContainerComponent, DropdownCloseDirective, DropdownComponent, DropdownDividerDirective, DropdownHeaderDirective, DropdownItemDirective, DropdownItemPlainDirective, DropdownMenuDirective, DropdownModule, DropdownService, DropdownToggleDirective, ElementRefDirective, FooterComponent, FooterModule, FormCheckComponent, FormCheckInputDirective, FormCheckLabelDirective, FormControlDirective, FormDirective, FormFeedbackComponent, FormFloatingDirective, FormLabelDirective, FormModule, FormSelectDirective, FormTextDirective, GridModule, GutterDirective, HeaderBrandComponent, HeaderComponent, HeaderDividerComponent, HeaderModule, HeaderNavComponent, HeaderTextComponent, HeaderTogglerDirective, HtmlAttributesDirective, ImgDirective, ImgModule, InMemoryStorageService, InputGroupComponent, InputGroupTextDirective, IntersectionService, ListGroupDirective, ListGroupItemDirective, ListGroupModule, ListenersService, LocalStorageService, ModalBodyComponent, ModalComponent, ModalContentComponent, ModalDialogComponent, ModalFooterComponent, ModalHeaderComponent, ModalModule, ModalService, ModalTitleDirective, ModalToggleDirective, NavComponent, NavItemComponent, NavLinkDirective, NavModule, NavbarBrandDirective, NavbarComponent, NavbarModule, NavbarNavComponent, NavbarTextComponent, NavbarTogglerDirective, OffcanvasBodyComponent, OffcanvasComponent, OffcanvasHeaderComponent, OffcanvasModule, OffcanvasService, OffcanvasTitleDirective, OffcanvasToggleDirective, PageItemComponent, PageItemDirective, PageLinkDirective, PaginationComponent, PaginationModule, PlaceholderAnimationDirective, PlaceholderDirective, PlaceholderModule, PopoverComponent, PopoverDirective, PopoverModule, ProgressBarComponent, ProgressBarDirective, ProgressComponent, ProgressModule, ProgressStackedComponent, RoundedDirective, RowComponent, RowDirective, RtlService, SearchButtonComponent, SearchButtonModule, ShadowOnScrollDirective, SharedModule, SidebarBrandComponent, SidebarComponent, SidebarFooterComponent, SidebarHeaderComponent, SidebarModule, SidebarNavComponent, SidebarNavHelper, SidebarService, SidebarToggleDirective, SidebarTogglerDirective, SpinnerComponent, SpinnerModule, TabContentComponent, TabContentRefDirective, TabDirective, TabPaneComponent, TabPanelComponent, TabService, TableActiveDirective, TableColorDirective, TableDirective, TableModule, Tabs2Module, TabsComponent, TabsContentComponent, TabsListComponent, TabsModule, TabsService, TemplateIdDirective, TextBgColorDirective, TextColorDirective, ThemeDirective, ToastBodyComponent, ToastCloseDirective, ToastComponent, ToastContentComponent, ToastHeaderComponent, ToastModule, ToasterComponent, ToasterHostDirective, ToasterPlacement, ToasterService, TooltipComponent, TooltipDirective, TooltipModule, UIDService, UtilitiesModule, WidgetModule, WidgetStatAComponent, WidgetStatBComponent, WidgetStatCComponent, WidgetStatDComponent, WidgetStatEComponent, WidgetStatFComponent };
4183
- export type { Alignment, BackgroundColors, BadgePositions, BooleanInput, BreakpointInfixStrings, Breakpoints, ButtonType, ColorMode, Colors, Directions, IBreadcrumbItem, IIntersectionObserverInit, IListenersConfig, INavAttributes$1 as INavAttributes, INavData, INavLinkProps$1 as INavLinkProps, IProgress, IProgressBar, IProgressBarStacked, InputType, NgCssClass, NumberInput, Placements, Positions, SearchButtonShortcut, Shapes, Sizes, TToasterPlacement, TextColors, Triggers };
4198
+ export type { Alignment, BackgroundColors, BadgePositions, BooleanInput, BreakpointInfixStrings, Breakpoints, ButtonType, ColorMode, Colors, Directions, DropdownAlignment, DropdownDirection, IBreadcrumbItem, IIntersectionObserverInit, IListenersConfig, INavAttributes$1 as INavAttributes, INavData, INavLinkProps$1 as INavLinkProps, IProgress, IProgressBar, IProgressBarStacked, InputType, NgCssClass, NumberInput, Placements, Positions, SearchButtonShortcut, Shapes, Sizes, TToasterPlacement, TextColors, Triggers };