@nova-design-system/nova-angular-19 3.29.0 → 3.30.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.
@@ -1475,15 +1475,16 @@ let NvSidebar = class NvSidebar {
1475
1475
  constructor(c, r, z) {
1476
1476
  this.z = z;
1477
1477
  this.openChanged = new EventEmitter();
1478
+ this.widthChanged = new EventEmitter();
1478
1479
  c.detach();
1479
1480
  this.el = r.nativeElement;
1480
1481
  }
1481
1482
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: NvSidebar, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
1482
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: NvSidebar, isStandalone: false, selector: "nv-sidebar", inputs: { activePath: "activePath", notificationEmphasis: "notificationEmphasis", notificationIntention: "notificationIntention", open: "open", type: "type" }, outputs: { openChanged: "openChanged" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1483
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: NvSidebar, isStandalone: false, selector: "nv-sidebar", inputs: { activePath: "activePath", maxWidth: "maxWidth", minWidth: "minWidth", notificationEmphasis: "notificationEmphasis", notificationIntention: "notificationIntention", open: "open", resizable: "resizable", type: "type", width: "width" }, outputs: { openChanged: "openChanged", widthChanged: "widthChanged" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1483
1484
  };
1484
1485
  NvSidebar = __decorate([
1485
1486
  ProxyCmp({
1486
- inputs: ['activePath', 'notificationEmphasis', 'notificationIntention', 'open', 'type']
1487
+ inputs: ['activePath', 'maxWidth', 'minWidth', 'notificationEmphasis', 'notificationIntention', 'open', 'resizable', 'type', 'width']
1487
1488
  })
1488
1489
  ], NvSidebar);
1489
1490
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: NvSidebar, decorators: [{
@@ -1493,12 +1494,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
1493
1494
  changeDetection: ChangeDetectionStrategy.OnPush,
1494
1495
  template: '<ng-content></ng-content>',
1495
1496
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1496
- inputs: ['activePath', 'notificationEmphasis', 'notificationIntention', 'open', 'type'],
1497
- outputs: ['openChanged'],
1497
+ inputs: ['activePath', 'maxWidth', 'minWidth', 'notificationEmphasis', 'notificationIntention', 'open', 'resizable', 'type', 'width'],
1498
+ outputs: ['openChanged', 'widthChanged'],
1498
1499
  standalone: false
1499
1500
  }]
1500
1501
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { openChanged: [{
1501
1502
  type: Output
1503
+ }], widthChanged: [{
1504
+ type: Output
1502
1505
  }] } });
1503
1506
  let NvSidebarcontent = class NvSidebarcontent {
1504
1507
  constructor(c, r, z) {
@@ -1747,6 +1750,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
1747
1750
  standalone: false
1748
1751
  }]
1749
1752
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
1753
+ let NvStatusindicator = class NvStatusindicator {
1754
+ constructor(c, r, z) {
1755
+ this.z = z;
1756
+ c.detach();
1757
+ this.el = r.nativeElement;
1758
+ }
1759
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: NvStatusindicator, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
1760
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: NvStatusindicator, isStandalone: false, selector: "nv-statusindicator", inputs: { emphasis: "emphasis", label: "label", status: "status" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1761
+ };
1762
+ NvStatusindicator = __decorate([
1763
+ ProxyCmp({
1764
+ inputs: ['emphasis', 'label', 'status']
1765
+ })
1766
+ ], NvStatusindicator);
1767
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: NvStatusindicator, decorators: [{
1768
+ type: Component,
1769
+ args: [{
1770
+ selector: 'nv-statusindicator',
1771
+ changeDetection: ChangeDetectionStrategy.OnPush,
1772
+ template: '<ng-content></ng-content>',
1773
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1774
+ inputs: ['emphasis', 'label', 'status'],
1775
+ standalone: false
1776
+ }]
1777
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
1750
1778
  let NvTable = class NvTable {
1751
1779
  constructor(c, r, z) {
1752
1780
  this.z = z;
@@ -1799,6 +1827,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
1799
1827
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { sortDirectionChanged: [{
1800
1828
  type: Output
1801
1829
  }] } });
1830
+ let NvTag = class NvTag {
1831
+ constructor(c, r, z) {
1832
+ this.z = z;
1833
+ this.dismissed = new EventEmitter();
1834
+ c.detach();
1835
+ this.el = r.nativeElement;
1836
+ }
1837
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: NvTag, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
1838
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: NvTag, isStandalone: false, selector: "nv-tag", inputs: { color: "color", disabled: "disabled", dismissible: "dismissible", href: "href", label: "label", rel: "rel", target: "target" }, outputs: { dismissed: "dismissed" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1839
+ };
1840
+ NvTag = __decorate([
1841
+ ProxyCmp({
1842
+ inputs: ['color', 'disabled', 'dismissible', 'href', 'label', 'rel', 'target']
1843
+ })
1844
+ ], NvTag);
1845
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: NvTag, decorators: [{
1846
+ type: Component,
1847
+ args: [{
1848
+ selector: 'nv-tag',
1849
+ changeDetection: ChangeDetectionStrategy.OnPush,
1850
+ template: '<ng-content></ng-content>',
1851
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1852
+ inputs: ['color', 'disabled', 'dismissible', 'href', 'label', 'rel', 'target'],
1853
+ outputs: ['dismissed'],
1854
+ standalone: false
1855
+ }]
1856
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { dismissed: [{
1857
+ type: Output
1858
+ }] } });
1802
1859
  let NvTimetest = class NvTimetest {
1803
1860
  constructor(c, r, z) {
1804
1861
  this.z = z;
@@ -2014,8 +2071,10 @@ const DIRECTIVES = [
2014
2071
  NvSidebarnavsubitem,
2015
2072
  NvSplit,
2016
2073
  NvStack,
2074
+ NvStatusindicator,
2017
2075
  NvTable,
2018
2076
  NvTableheader,
2077
+ NvTag,
2019
2078
  NvTimetest,
2020
2079
  NvToggle,
2021
2080
  NvTogglebutton,
@@ -2857,8 +2916,12 @@ class NvDatatable {
2857
2916
  pageIndex: 0,
2858
2917
  pageSize: this.pagination()?.initialPageSize || 10,
2859
2918
  });
2860
- /** Sorting state for controlled sorting (server mode) */
2861
- this.sortingState = signal(this.sorting()?.sortState || []);
2919
+ /**
2920
+ * Sorting state. When sorting.sortState is provided the component is controlled;
2921
+ * initialSortState only seeds the uncontrolled state (seeded from the constructor
2922
+ * effect below — field initializers run before inputs are bound).
2923
+ */
2924
+ this.sortingState = signal([]);
2862
2925
  /** Reference to table rows for infinite scroll observer */
2863
2926
  this.tableRows = viewChild('tableRow');
2864
2927
  /** Intersection observer for infinite scroll */
@@ -3056,6 +3119,22 @@ class NvDatatable {
3056
3119
  hasMore: isInfinite ? paginationConfig.hasMore : undefined,
3057
3120
  };
3058
3121
  });
3122
+ // Seed sortingState from sortState / initialSortState once the sorting input
3123
+ // is bound. Field initializers run before inputs are set, so we can't do this
3124
+ // inline in the signal definition.
3125
+ let sortingSeeded = false;
3126
+ effect(() => {
3127
+ if (sortingSeeded)
3128
+ return;
3129
+ const sorting = this.sorting();
3130
+ if (sorting === undefined)
3131
+ return;
3132
+ sortingSeeded = true;
3133
+ const seed = sorting.sortState ?? sorting.initialSortState;
3134
+ if (seed && seed.length > 0) {
3135
+ this.sortingState.set(seed);
3136
+ }
3137
+ }, { allowSignalWrites: true });
3059
3138
  // Validate infinite scroll requires server mode
3060
3139
  effect(() => {
3061
3140
  const paginationConfig = this.pagination();
@@ -4479,7 +4558,7 @@ const VALUE_ACCESSORS = [
4479
4558
 
4480
4559
  class NovaComponentsModule {
4481
4560
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: NovaComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
4482
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.5", ngImport: i0, type: NovaComponentsModule, declarations: [NvAccordion, NvAccordionItem, NvAlert, NvAvatar, NvBadge, NvBreadcrumb, NvBreadcrumbs, NvButton, NvButtongroup, NvCalendar, NvCol, NvDatagrid, NvDatagridcolumn, NvDatetest, NvDatetimetest, NvDialog, NvDialogfooter, NvDialogheader, NvDrawer, NvDrawerfooter, NvDrawerheader, NvFieldcheckbox, NvFielddate, NvFielddaterange, NvFielddropdown, NvFielddropdownitem, NvFielddropdownitemcheck, NvFieldmultiselect, NvFieldnumber, NvFieldpassword, NvFieldradio, NvFieldselect, NvFieldslider, NvFieldtext, NvFieldtextarea, NvFieldtime, NvIcon, NvIconbutton, NvLoader, NvMenu, NvMenuitem, NvNotification, NvNotificationBullet, NvNotificationcontainer, NvPaginationNav, NvPaginationtable, NvPopover, NvRow, NvSidebar, NvSidebarcontent, NvSidebardivider, NvSidebarfooter, NvSidebargroup, NvSidebarheader, NvSidebarlogo, NvSidebarnavitem, NvSidebarnavsubitem, NvSplit, NvStack, NvTable, NvTableheader, NvTimetest, NvToggle, NvTogglebutton, NvTogglebuttongroup, NvTooltip], imports: [NvDatatable], exports: [NvAccordion, NvAccordionItem, NvAlert, NvAvatar, NvBadge, NvBreadcrumb, NvBreadcrumbs, NvButton, NvButtongroup, NvCalendar, NvCol, NvDatagrid, NvDatagridcolumn, NvDatetest, NvDatetimetest, NvDialog, NvDialogfooter, NvDialogheader, NvDrawer, NvDrawerfooter, NvDrawerheader, NvFieldcheckbox, NvFielddate, NvFielddaterange, NvFielddropdown, NvFielddropdownitem, NvFielddropdownitemcheck, NvFieldmultiselect, NvFieldnumber, NvFieldpassword, NvFieldradio, NvFieldselect, NvFieldslider, NvFieldtext, NvFieldtextarea, NvFieldtime, NvIcon, NvIconbutton, NvLoader, NvMenu, NvMenuitem, NvNotification, NvNotificationBullet, NvNotificationcontainer, NvPaginationNav, NvPaginationtable, NvPopover, NvRow, NvSidebar, NvSidebarcontent, NvSidebardivider, NvSidebarfooter, NvSidebargroup, NvSidebarheader, NvSidebarlogo, NvSidebarnavitem, NvSidebarnavsubitem, NvSplit, NvStack, NvTable, NvTableheader, NvTimetest, NvToggle, NvTogglebutton, NvTogglebuttongroup, NvTooltip, NvDatatable] }); }
4561
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.5", ngImport: i0, type: NovaComponentsModule, declarations: [NvAccordion, NvAccordionItem, NvAlert, NvAvatar, NvBadge, NvBreadcrumb, NvBreadcrumbs, NvButton, NvButtongroup, NvCalendar, NvCol, NvDatagrid, NvDatagridcolumn, NvDatetest, NvDatetimetest, NvDialog, NvDialogfooter, NvDialogheader, NvDrawer, NvDrawerfooter, NvDrawerheader, NvFieldcheckbox, NvFielddate, NvFielddaterange, NvFielddropdown, NvFielddropdownitem, NvFielddropdownitemcheck, NvFieldmultiselect, NvFieldnumber, NvFieldpassword, NvFieldradio, NvFieldselect, NvFieldslider, NvFieldtext, NvFieldtextarea, NvFieldtime, NvIcon, NvIconbutton, NvLoader, NvMenu, NvMenuitem, NvNotification, NvNotificationBullet, NvNotificationcontainer, NvPaginationNav, NvPaginationtable, NvPopover, NvRow, NvSidebar, NvSidebarcontent, NvSidebardivider, NvSidebarfooter, NvSidebargroup, NvSidebarheader, NvSidebarlogo, NvSidebarnavitem, NvSidebarnavsubitem, NvSplit, NvStack, NvStatusindicator, NvTable, NvTableheader, NvTag, NvTimetest, NvToggle, NvTogglebutton, NvTogglebuttongroup, NvTooltip], imports: [NvDatatable], exports: [NvAccordion, NvAccordionItem, NvAlert, NvAvatar, NvBadge, NvBreadcrumb, NvBreadcrumbs, NvButton, NvButtongroup, NvCalendar, NvCol, NvDatagrid, NvDatagridcolumn, NvDatetest, NvDatetimetest, NvDialog, NvDialogfooter, NvDialogheader, NvDrawer, NvDrawerfooter, NvDrawerheader, NvFieldcheckbox, NvFielddate, NvFielddaterange, NvFielddropdown, NvFielddropdownitem, NvFielddropdownitemcheck, NvFieldmultiselect, NvFieldnumber, NvFieldpassword, NvFieldradio, NvFieldselect, NvFieldslider, NvFieldtext, NvFieldtextarea, NvFieldtime, NvIcon, NvIconbutton, NvLoader, NvMenu, NvMenuitem, NvNotification, NvNotificationBullet, NvNotificationcontainer, NvPaginationNav, NvPaginationtable, NvPopover, NvRow, NvSidebar, NvSidebarcontent, NvSidebardivider, NvSidebarfooter, NvSidebargroup, NvSidebarheader, NvSidebarlogo, NvSidebarnavitem, NvSidebarnavsubitem, NvSplit, NvStack, NvStatusindicator, NvTable, NvTableheader, NvTag, NvTimetest, NvToggle, NvTogglebutton, NvTogglebuttongroup, NvTooltip, NvDatatable] }); }
4483
4562
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: NovaComponentsModule, imports: [NvDatatable] }); }
4484
4563
  }
4485
4564
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: NovaComponentsModule, decorators: [{
@@ -4852,5 +4931,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
4852
4931
  * Generated bundle index. Do not edit.
4853
4932
  */
4854
4933
 
4855
- export { NotificationService, NotificationServiceComponent, NovaComponentsModule, NovaComponentsValueAccessorModule, NvAccordion, NvAccordionItem, NvAccordionValueAccessor, NvAlert, NvAlertValueAccessor, NvAvatar, NvBadge, NvBreadcrumb, NvBreadcrumbs, NvButton, NvButtongroup, NvCalendar, NvCalendarValueAccessor, NvCol, NvDatagrid, NvDatagridValueAccessor, NvDatagridcolumn, NvDatatable, NvDatatableCellDirective, NvDatetest, NvDatetestValueAccessor, NvDatetimetest, NvDatetimetestValueAccessor, NvDialog, NvDialogValueAccessor, NvDialogfooter, NvDialogheader, NvDrawer, NvDrawerValueAccessor, NvDrawerfooter, NvDrawerheader, NvFieldcheckbox, NvFieldcheckboxValueAccessor, NvFielddate, NvFielddateValueAccessor, NvFielddaterange, NvFielddaterangeValueAccessor, NvFielddropdown, NvFielddropdownValueAccessor, NvFielddropdownitem, NvFielddropdownitemcheck, NvFieldmultiselect, NvFieldmultiselectValueAccessor, NvFieldnumber, NvFieldnumberValueAccessor, NvFieldpassword, NvFieldpasswordValueAccessor, NvFieldradio, NvFieldradioValueAccessor, NvFieldselect, NvFieldselectValueAccessor, NvFieldslider, NvFieldsliderValueAccessor, NvFieldtext, NvFieldtextValueAccessor, NvFieldtextarea, NvFieldtextareaValueAccessor, NvFieldtime, NvFieldtimeValueAccessor, NvIcon, NvIconbutton, NvLoader, NvMenu, NvMenuitem, NvNotification, NvNotificationBullet, NvNotificationValueAccessor, NvNotificationcontainer, NvPaginationNav, NvPaginationNavValueAccessor, NvPaginationtable, NvPaginationtableValueAccessor, NvPopover, NvPopoverValueAccessor, NvRow, NvSidebar, NvSidebarValueAccessor, NvSidebarcontent, NvSidebardivider, NvSidebarfooter, NvSidebargroup, NvSidebarheader, NvSidebarlogo, NvSidebarnavitem, NvSidebarnavsubitem, NvSplit, NvSplitValueAccessor, NvStack, NvTable, NvTableheader, NvTimetest, NvTimetestValueAccessor, NvToggle, NvToggleValueAccessor, NvTogglebutton, NvTogglebuttongroup, NvTogglebuttongroupValueAccessor, NvTooltip, VALUE_ACCESSORS, makeColumn, flexRenderComponent as nvDatatableRenderComponent };
4934
+ export { NotificationService, NotificationServiceComponent, NovaComponentsModule, NovaComponentsValueAccessorModule, NvAccordion, NvAccordionItem, NvAccordionValueAccessor, NvAlert, NvAlertValueAccessor, NvAvatar, NvBadge, NvBreadcrumb, NvBreadcrumbs, NvButton, NvButtongroup, NvCalendar, NvCalendarValueAccessor, NvCol, NvDatagrid, NvDatagridValueAccessor, NvDatagridcolumn, NvDatatable, NvDatatableCellDirective, NvDatetest, NvDatetestValueAccessor, NvDatetimetest, NvDatetimetestValueAccessor, NvDialog, NvDialogValueAccessor, NvDialogfooter, NvDialogheader, NvDrawer, NvDrawerValueAccessor, NvDrawerfooter, NvDrawerheader, NvFieldcheckbox, NvFieldcheckboxValueAccessor, NvFielddate, NvFielddateValueAccessor, NvFielddaterange, NvFielddaterangeValueAccessor, NvFielddropdown, NvFielddropdownValueAccessor, NvFielddropdownitem, NvFielddropdownitemcheck, NvFieldmultiselect, NvFieldmultiselectValueAccessor, NvFieldnumber, NvFieldnumberValueAccessor, NvFieldpassword, NvFieldpasswordValueAccessor, NvFieldradio, NvFieldradioValueAccessor, NvFieldselect, NvFieldselectValueAccessor, NvFieldslider, NvFieldsliderValueAccessor, NvFieldtext, NvFieldtextValueAccessor, NvFieldtextarea, NvFieldtextareaValueAccessor, NvFieldtime, NvFieldtimeValueAccessor, NvIcon, NvIconbutton, NvLoader, NvMenu, NvMenuitem, NvNotification, NvNotificationBullet, NvNotificationValueAccessor, NvNotificationcontainer, NvPaginationNav, NvPaginationNavValueAccessor, NvPaginationtable, NvPaginationtableValueAccessor, NvPopover, NvPopoverValueAccessor, NvRow, NvSidebar, NvSidebarValueAccessor, NvSidebarcontent, NvSidebardivider, NvSidebarfooter, NvSidebargroup, NvSidebarheader, NvSidebarlogo, NvSidebarnavitem, NvSidebarnavsubitem, NvSplit, NvSplitValueAccessor, NvStack, NvStatusindicator, NvTable, NvTableheader, NvTag, NvTimetest, NvTimetestValueAccessor, NvToggle, NvToggleValueAccessor, NvTogglebutton, NvTogglebuttongroup, NvTogglebuttongroupValueAccessor, NvTooltip, VALUE_ACCESSORS, makeColumn, flexRenderComponent as nvDatatableRenderComponent };
4856
4935
  //# sourceMappingURL=nova-components.mjs.map