@nova-design-system/nova-angular 3.22.0 → 3.24.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.
@@ -11,6 +11,12 @@ export declare class NvDatatable<T> implements AfterViewInit, OnDestroy {
11
11
  columns: import("@angular/core").InputSignal<NvDatatableColumn<T, keyof T, T[keyof T]>[]>;
12
12
  /** Row data */
13
13
  rows: import("@angular/core").InputSignal<T[]>;
14
+ /**
15
+ * Data handling mode for sorting and filtering operations.
16
+ * - 'client': All operations handled in browser (default)
17
+ * - 'server': Operations trigger callbacks for server-side handling
18
+ */
19
+ mode: import("@angular/core").InputSignal<"client" | "server">;
14
20
  /** Optional pagination configuration */
15
21
  pagination: import("@angular/core").InputSignal<NvDatatablePaginationConfig | undefined>;
16
22
  /** Optional sorting configuration */
@@ -60,7 +66,7 @@ export declare class NvDatatable<T> implements AfterViewInit, OnDestroy {
60
66
  ngAfterViewInit(): void;
61
67
  ngOnDestroy(): void;
62
68
  static ɵfac: i0.ɵɵFactoryDeclaration<NvDatatable<any>, never>;
63
- static ɵcmp: i0.ɵɵComponentDeclaration<NvDatatable<any>, "nv-datatable", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": false; "isSignal": true; }; "sorting": { "alias": "sorting"; "required": false; "isSignal": true; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; }, {}, ["paginationTemplate", "cellTemplates"], never, true, never>;
69
+ static ɵcmp: i0.ɵɵComponentDeclaration<NvDatatable<any>, "nv-datatable", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": false; "isSignal": true; }; "sorting": { "alias": "sorting"; "required": false; "isSignal": true; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; }, {}, ["paginationTemplate", "cellTemplates"], never, true, never>;
64
70
  }
65
71
  /********************************* UTILS **************************************/
66
72
  /**
@@ -147,11 +153,15 @@ export interface NvTableValueFormatterParams<Row, Value, Field> {
147
153
  }
148
154
  /**
149
155
  * Pagination configuration for NvDatatable.
150
- * Supports three modes: client-side, server-side with buttons, and infinite scroll.
156
+ * The pagination behavior (client vs server) is derived from the top-level `mode` prop.
151
157
  */
152
158
  export interface NvDatatablePaginationConfig {
153
- /** Pagination mode */
154
- mode: 'client' | 'server' | 'infinite';
159
+ /**
160
+ * Enable infinite scroll mode.
161
+ * When true, requires the component's top-level `mode` to be set to 'server'.
162
+ * Data is loaded incrementally as the user scrolls.
163
+ */
164
+ infinite?: boolean;
155
165
  /** Initial page size (default: 10) */
156
166
  initialPageSize?: number;
157
167
  /** Available page size options (default: [10, 20, 50, 100]) */
@@ -211,11 +221,9 @@ export interface NvDatatableRenderPaginationAPI {
211
221
  }
212
222
  /**
213
223
  * Sorting configuration for NvDatatable.
214
- * Supports both client-side and server-side sorting.
224
+ * The sorting mode (client vs server) is derived from the component's top-level `mode` prop.
215
225
  */
216
226
  export interface NvDatatableSortingConfig {
217
- /** Sorting mode */
218
- mode: 'client' | 'server';
219
227
  /** Enable multi-column sorting with Shift+Click */
220
228
  enableMultiSort?: boolean;
221
229
  /** Allow cycling through to "no sort" state */
@@ -12,12 +12,12 @@ import * as i4 from "./providers/notification-service.component";
12
12
  export declare function provideNovaComponents(): Provider;
13
13
  export declare class NovaComponentsModule {
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<NovaComponentsModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<NovaComponentsModule, [typeof i1.NvAccordion, typeof i1.NvAccordionItem, typeof i1.NvAlert, typeof i1.NvAvatar, typeof i1.NvBadge, typeof i1.NvBreadcrumb, typeof i1.NvBreadcrumbs, typeof i1.NvButton, typeof i1.NvButtongroup, typeof i1.NvCalendar, typeof i1.NvCol, typeof i1.NvDatagrid, typeof i1.NvDatagridcolumn, typeof i1.NvDialog, typeof i1.NvDialogfooter, typeof i1.NvDialogheader, typeof i1.NvFieldcheckbox, typeof i1.NvFielddate, typeof i1.NvFielddaterange, typeof i1.NvFielddropdown, typeof i1.NvFielddropdownitem, typeof i1.NvFielddropdownitemcheck, typeof i1.NvFieldmultiselect, typeof i1.NvFieldnumber, typeof i1.NvFieldpassword, typeof i1.NvFieldradio, typeof i1.NvFieldselect, typeof i1.NvFieldslider, typeof i1.NvFieldtext, typeof i1.NvFieldtextarea, typeof i1.NvFieldtime, typeof i1.NvIcon, typeof i1.NvIconbutton, typeof i1.NvLoader, typeof i1.NvMenu, typeof i1.NvMenuitem, typeof i1.NvNotification, typeof i1.NvNotificationcontainer, typeof i1.NvPopover, typeof i1.NvRow, typeof i1.NvSplit, typeof i1.NvStack, typeof i1.NvTable, typeof i1.NvTableheader, typeof i1.NvToggle, typeof i1.NvTogglebutton, typeof i1.NvTogglebuttongroup, typeof i1.NvTooltip], [typeof i2.NvDatatable], [typeof i1.NvAccordion, typeof i1.NvAccordionItem, typeof i1.NvAlert, typeof i1.NvAvatar, typeof i1.NvBadge, typeof i1.NvBreadcrumb, typeof i1.NvBreadcrumbs, typeof i1.NvButton, typeof i1.NvButtongroup, typeof i1.NvCalendar, typeof i1.NvCol, typeof i1.NvDatagrid, typeof i1.NvDatagridcolumn, typeof i1.NvDialog, typeof i1.NvDialogfooter, typeof i1.NvDialogheader, typeof i1.NvFieldcheckbox, typeof i1.NvFielddate, typeof i1.NvFielddaterange, typeof i1.NvFielddropdown, typeof i1.NvFielddropdownitem, typeof i1.NvFielddropdownitemcheck, typeof i1.NvFieldmultiselect, typeof i1.NvFieldnumber, typeof i1.NvFieldpassword, typeof i1.NvFieldradio, typeof i1.NvFieldselect, typeof i1.NvFieldslider, typeof i1.NvFieldtext, typeof i1.NvFieldtextarea, typeof i1.NvFieldtime, typeof i1.NvIcon, typeof i1.NvIconbutton, typeof i1.NvLoader, typeof i1.NvMenu, typeof i1.NvMenuitem, typeof i1.NvNotification, typeof i1.NvNotificationcontainer, typeof i1.NvPopover, typeof i1.NvRow, typeof i1.NvSplit, typeof i1.NvStack, typeof i1.NvTable, typeof i1.NvTableheader, typeof i1.NvToggle, typeof i1.NvTogglebutton, typeof i1.NvTogglebuttongroup, typeof i1.NvTooltip, typeof i2.NvDatatable]>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NovaComponentsModule, [typeof i1.NvAccordion, typeof i1.NvAccordionItem, typeof i1.NvAlert, typeof i1.NvAvatar, typeof i1.NvBadge, typeof i1.NvBreadcrumb, typeof i1.NvBreadcrumbs, typeof i1.NvButton, typeof i1.NvButtongroup, typeof i1.NvCalendar, typeof i1.NvCol, typeof i1.NvDatagrid, typeof i1.NvDatagridcolumn, typeof i1.NvDialog, typeof i1.NvDialogfooter, typeof i1.NvDialogheader, typeof i1.NvDrawer, typeof i1.NvDrawerfooter, typeof i1.NvDrawerheader, typeof i1.NvFieldcheckbox, typeof i1.NvFielddate, typeof i1.NvFielddaterange, typeof i1.NvFielddropdown, typeof i1.NvFielddropdownitem, typeof i1.NvFielddropdownitemcheck, typeof i1.NvFieldmultiselect, typeof i1.NvFieldnumber, typeof i1.NvFieldpassword, typeof i1.NvFieldradio, typeof i1.NvFieldselect, typeof i1.NvFieldslider, typeof i1.NvFieldtext, typeof i1.NvFieldtextarea, typeof i1.NvFieldtime, typeof i1.NvIcon, typeof i1.NvIconbutton, typeof i1.NvLoader, typeof i1.NvMenu, typeof i1.NvMenuitem, typeof i1.NvNotification, typeof i1.NvNotificationBullet, typeof i1.NvNotificationcontainer, typeof i1.NvPopover, typeof i1.NvRow, typeof i1.NvSidebar, typeof i1.NvSidebarcontent, typeof i1.NvSidebardivider, typeof i1.NvSidebarfooter, typeof i1.NvSidebargroup, typeof i1.NvSidebarheader, typeof i1.NvSidebarlogo, typeof i1.NvSidebarnavitem, typeof i1.NvSidebarnavsubitem, typeof i1.NvSplit, typeof i1.NvStack, typeof i1.NvTable, typeof i1.NvTableheader, typeof i1.NvToggle, typeof i1.NvTogglebutton, typeof i1.NvTogglebuttongroup, typeof i1.NvTooltip], [typeof i2.NvDatatable], [typeof i1.NvAccordion, typeof i1.NvAccordionItem, typeof i1.NvAlert, typeof i1.NvAvatar, typeof i1.NvBadge, typeof i1.NvBreadcrumb, typeof i1.NvBreadcrumbs, typeof i1.NvButton, typeof i1.NvButtongroup, typeof i1.NvCalendar, typeof i1.NvCol, typeof i1.NvDatagrid, typeof i1.NvDatagridcolumn, typeof i1.NvDialog, typeof i1.NvDialogfooter, typeof i1.NvDialogheader, typeof i1.NvDrawer, typeof i1.NvDrawerfooter, typeof i1.NvDrawerheader, typeof i1.NvFieldcheckbox, typeof i1.NvFielddate, typeof i1.NvFielddaterange, typeof i1.NvFielddropdown, typeof i1.NvFielddropdownitem, typeof i1.NvFielddropdownitemcheck, typeof i1.NvFieldmultiselect, typeof i1.NvFieldnumber, typeof i1.NvFieldpassword, typeof i1.NvFieldradio, typeof i1.NvFieldselect, typeof i1.NvFieldslider, typeof i1.NvFieldtext, typeof i1.NvFieldtextarea, typeof i1.NvFieldtime, typeof i1.NvIcon, typeof i1.NvIconbutton, typeof i1.NvLoader, typeof i1.NvMenu, typeof i1.NvMenuitem, typeof i1.NvNotification, typeof i1.NvNotificationBullet, typeof i1.NvNotificationcontainer, typeof i1.NvPopover, typeof i1.NvRow, typeof i1.NvSidebar, typeof i1.NvSidebarcontent, typeof i1.NvSidebardivider, typeof i1.NvSidebarfooter, typeof i1.NvSidebargroup, typeof i1.NvSidebarheader, typeof i1.NvSidebarlogo, typeof i1.NvSidebarnavitem, typeof i1.NvSidebarnavsubitem, typeof i1.NvSplit, typeof i1.NvStack, typeof i1.NvTable, typeof i1.NvTableheader, typeof i1.NvToggle, typeof i1.NvTogglebutton, typeof i1.NvTogglebuttongroup, typeof i1.NvTooltip, typeof i2.NvDatatable]>;
16
16
  static ɵinj: i0.ɵɵInjectorDeclaration<NovaComponentsModule>;
17
17
  }
18
18
  export declare class NovaComponentsValueAccessorModule {
19
19
  static ɵfac: i0.ɵɵFactoryDeclaration<NovaComponentsValueAccessorModule, never>;
20
- static ɵmod: i0.ɵɵNgModuleDeclaration<NovaComponentsValueAccessorModule, [typeof i3.NvAccordionValueAccessor, typeof i3.NvAlertValueAccessor, typeof i3.NvCalendarValueAccessor, typeof i3.NvDatagridValueAccessor, typeof i3.NvDialogValueAccessor, typeof i3.NvFieldcheckboxValueAccessor, typeof i3.NvFielddateValueAccessor, typeof i3.NvFielddaterangeValueAccessor, typeof i3.NvFielddropdownValueAccessor, typeof i3.NvFieldmultiselectValueAccessor, typeof i3.NvFieldnumberValueAccessor, typeof i3.NvFieldpasswordValueAccessor, typeof i3.NvFieldradioValueAccessor, typeof i3.NvFieldselectValueAccessor, typeof i3.NvFieldsliderValueAccessor, typeof i3.NvFieldtextValueAccessor, typeof i3.NvFieldtextareaValueAccessor, typeof i3.NvFieldtimeValueAccessor, typeof i3.NvNotificationValueAccessor, typeof i3.NvPopoverValueAccessor, typeof i3.NvSplitValueAccessor, typeof i3.NvToggleValueAccessor, typeof i3.NvTogglebuttongroupValueAccessor], never, [typeof i3.NvAccordionValueAccessor, typeof i3.NvAlertValueAccessor, typeof i3.NvCalendarValueAccessor, typeof i3.NvDatagridValueAccessor, typeof i3.NvDialogValueAccessor, typeof i3.NvFieldcheckboxValueAccessor, typeof i3.NvFielddateValueAccessor, typeof i3.NvFielddaterangeValueAccessor, typeof i3.NvFielddropdownValueAccessor, typeof i3.NvFieldmultiselectValueAccessor, typeof i3.NvFieldnumberValueAccessor, typeof i3.NvFieldpasswordValueAccessor, typeof i3.NvFieldradioValueAccessor, typeof i3.NvFieldselectValueAccessor, typeof i3.NvFieldsliderValueAccessor, typeof i3.NvFieldtextValueAccessor, typeof i3.NvFieldtextareaValueAccessor, typeof i3.NvFieldtimeValueAccessor, typeof i3.NvNotificationValueAccessor, typeof i3.NvPopoverValueAccessor, typeof i3.NvSplitValueAccessor, typeof i3.NvToggleValueAccessor, typeof i3.NvTogglebuttongroupValueAccessor]>;
20
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NovaComponentsValueAccessorModule, [typeof i3.NvAccordionValueAccessor, typeof i3.NvAlertValueAccessor, typeof i3.NvCalendarValueAccessor, typeof i3.NvDatagridValueAccessor, typeof i3.NvDialogValueAccessor, typeof i3.NvDrawerValueAccessor, typeof i3.NvFieldcheckboxValueAccessor, typeof i3.NvFielddateValueAccessor, typeof i3.NvFielddaterangeValueAccessor, typeof i3.NvFielddropdownValueAccessor, typeof i3.NvFieldmultiselectValueAccessor, typeof i3.NvFieldnumberValueAccessor, typeof i3.NvFieldpasswordValueAccessor, typeof i3.NvFieldradioValueAccessor, typeof i3.NvFieldselectValueAccessor, typeof i3.NvFieldsliderValueAccessor, typeof i3.NvFieldtextValueAccessor, typeof i3.NvFieldtextareaValueAccessor, typeof i3.NvFieldtimeValueAccessor, typeof i3.NvNotificationValueAccessor, typeof i3.NvPopoverValueAccessor, typeof i3.NvSidebarValueAccessor, typeof i3.NvSplitValueAccessor, typeof i3.NvToggleValueAccessor, typeof i3.NvTogglebuttongroupValueAccessor], never, [typeof i3.NvAccordionValueAccessor, typeof i3.NvAlertValueAccessor, typeof i3.NvCalendarValueAccessor, typeof i3.NvDatagridValueAccessor, typeof i3.NvDialogValueAccessor, typeof i3.NvDrawerValueAccessor, typeof i3.NvFieldcheckboxValueAccessor, typeof i3.NvFielddateValueAccessor, typeof i3.NvFielddaterangeValueAccessor, typeof i3.NvFielddropdownValueAccessor, typeof i3.NvFieldmultiselectValueAccessor, typeof i3.NvFieldnumberValueAccessor, typeof i3.NvFieldpasswordValueAccessor, typeof i3.NvFieldradioValueAccessor, typeof i3.NvFieldselectValueAccessor, typeof i3.NvFieldsliderValueAccessor, typeof i3.NvFieldtextValueAccessor, typeof i3.NvFieldtextareaValueAccessor, typeof i3.NvFieldtimeValueAccessor, typeof i3.NvNotificationValueAccessor, typeof i3.NvPopoverValueAccessor, typeof i3.NvSidebarValueAccessor, typeof i3.NvSplitValueAccessor, typeof i3.NvToggleValueAccessor, typeof i3.NvTogglebuttongroupValueAccessor]>;
21
21
  static ɵinj: i0.ɵɵInjectorDeclaration<NovaComponentsValueAccessorModule>;
22
22
  }
23
23
  export declare class NovaComponentsProvidersModule {
@@ -36,6 +36,13 @@ export declare class NvDialogValueAccessor extends ValueAccessor {
36
36
  static ɵfac: i0.ɵɵFactoryDeclaration<NvDialogValueAccessor, never>;
37
37
  static ɵdir: i0.ɵɵDirectiveDeclaration<NvDialogValueAccessor, "nv-dialog", never, {}, {}, never, never, false, never>;
38
38
  }
39
+ export declare class NvDrawerValueAccessor extends ValueAccessor {
40
+ constructor(el: ElementRef);
41
+ handleOpenChanged(event: any): void;
42
+ writeValue(value: any): void;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<NvDrawerValueAccessor, never>;
44
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NvDrawerValueAccessor, "nv-drawer", never, {}, {}, never, never, false, never>;
45
+ }
39
46
  export declare class NvFieldcheckboxValueAccessor extends ValueAccessor {
40
47
  constructor(el: ElementRef);
41
48
  handleCheckedChanged(event: any): void;
@@ -141,6 +148,13 @@ export declare class NvPopoverValueAccessor extends ValueAccessor {
141
148
  static ɵfac: i0.ɵɵFactoryDeclaration<NvPopoverValueAccessor, never>;
142
149
  static ɵdir: i0.ɵɵDirectiveDeclaration<NvPopoverValueAccessor, "nv-popover", never, {}, {}, never, never, false, never>;
143
150
  }
151
+ export declare class NvSidebarValueAccessor extends ValueAccessor {
152
+ constructor(el: ElementRef);
153
+ handleOpenChanged(event: any): void;
154
+ writeValue(value: any): void;
155
+ static ɵfac: i0.ɵɵFactoryDeclaration<NvSidebarValueAccessor, never>;
156
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NvSidebarValueAccessor, "nv-sidebar", never, {}, {}, never, never, false, never>;
157
+ }
144
158
  export declare class NvSplitValueAccessor extends ValueAccessor {
145
159
  constructor(el: ElementRef);
146
160
  handleSizesChanged(event: any): void;