@nova-design-system/nova-vue 3.29.0 → 3.31.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.
@@ -336,6 +336,11 @@ export interface NvDatatableSortingConfig {
336
336
  maxMultiSortColCount?: number;
337
337
  /** Start with descending sort as first toggle state */
338
338
  sortDescFirst?: boolean;
339
+ /**
340
+ * Initial sort state (uncontrolled). Applied on first render only; the user can then
341
+ * freely change sorting via header clicks. Ignored when `sortState` is also provided.
342
+ */
343
+ initialSortState?: SortingState;
339
344
  /** Controlled sort state (for server-side sorting) */
340
345
  sortState?: SortingState;
341
346
  /** Callback when sorting changes (for server-side sorting) */
@@ -63,8 +63,9 @@ export function createNvDatatable() {
63
63
  pageIndex: 0,
64
64
  pageSize: props.pagination?.initialPageSize || 10,
65
65
  });
66
- // Sorting state (controlled or uncontrolled)
67
- const sortingState = ref(props.sorting?.sortState || []);
66
+ // Sorting state (controlled or uncontrolled). When sortState is provided the
67
+ // component is controlled; initialSortState only seeds the uncontrolled state.
68
+ const sortingState = ref(props.sorting?.sortState ?? props.sorting?.initialSortState ?? []);
68
69
  // Ref for observing last row (infinite scroll)
69
70
  const lastRowRef = ref(null);
70
71
  const tableColumns = computed(() => props.columns
@@ -59,8 +59,10 @@ export declare const NvSidebarnavitem: StencilVueComponent<JSX.NvSidebarnavitem>
59
59
  export declare const NvSidebarnavsubitem: StencilVueComponent<JSX.NvSidebarnavsubitem>;
60
60
  export declare const NvSplit: StencilVueComponent<JSX.NvSplit, JSX.NvSplit["sizes"]>;
61
61
  export declare const NvStack: StencilVueComponent<JSX.NvStack>;
62
+ export declare const NvStatusindicator: StencilVueComponent<JSX.NvStatusindicator>;
62
63
  export declare const NvTable: StencilVueComponent<JSX.NvTable>;
63
64
  export declare const NvTableheader: StencilVueComponent<JSX.NvTableheader>;
65
+ export declare const NvTag: StencilVueComponent<JSX.NvTag>;
64
66
  export declare const NvTimetest: StencilVueComponent<JSX.NvTimetest, JSX.NvTimetest["value"]>;
65
67
  export declare const NvToggle: StencilVueComponent<JSX.NvToggle, JSX.NvToggle["checked"]>;
66
68
  export declare const NvTogglebutton: StencilVueComponent<JSX.NvTogglebutton>;
@@ -355,6 +355,7 @@ export const NvFielddropdown = /*@__PURE__*/ defineContainer('nv-fielddropdown',
355
355
  'maxHeight',
356
356
  'emptyResult',
357
357
  'filterable',
358
+ 'clearable',
358
359
  'openOnSelect',
359
360
  'controlledFilter',
360
361
  'options',
@@ -370,11 +371,13 @@ export const NvFielddropdown = /*@__PURE__*/ defineContainer('nv-fielddropdown',
370
371
  'fuzzyThreshold',
371
372
  'valueChanged',
372
373
  'filterTextChanged',
374
+ 'cleared',
373
375
  'openChanged',
374
376
  'dropdownItemSelected'
375
377
  ], [
376
378
  'valueChanged',
377
379
  'filterTextChanged',
380
+ 'cleared',
378
381
  'openChanged',
379
382
  'dropdownItemSelected'
380
383
  ], 'value', 'valueChanged', undefined);
@@ -525,13 +528,16 @@ export const NvFieldselect = /*@__PURE__*/ defineContainer('nv-fieldselect', und
525
528
  'errorDescription',
526
529
  'success',
527
530
  'multiple',
531
+ 'clearable',
528
532
  'value',
529
533
  'displayValue',
530
534
  'autofocus',
531
535
  'fluid',
532
- 'valueChanged'
536
+ 'valueChanged',
537
+ 'cleared'
533
538
  ], [
534
- 'valueChanged'
539
+ 'valueChanged',
540
+ 'cleared'
535
541
  ], 'value', 'valueChanged', undefined);
536
542
  export const NvFieldslider = /*@__PURE__*/ defineContainer('nv-fieldslider', undefined, [
537
543
  'startInputId',
@@ -769,9 +775,15 @@ export const NvSidebar = /*@__PURE__*/ defineContainer('nv-sidebar', undefined,
769
775
  'activePath',
770
776
  'notificationIntention',
771
777
  'notificationEmphasis',
772
- 'openChanged'
778
+ 'resizable',
779
+ 'minWidth',
780
+ 'maxWidth',
781
+ 'width',
782
+ 'openChanged',
783
+ 'widthChanged'
773
784
  ], [
774
- 'openChanged'
785
+ 'openChanged',
786
+ 'widthChanged'
775
787
  ], 'open', 'openChanged', undefined);
776
788
  export const NvSidebarcontent = /*@__PURE__*/ defineContainer('nv-sidebarcontent', undefined);
777
789
  export const NvSidebardivider = /*@__PURE__*/ defineContainer('nv-sidebardivider', undefined);
@@ -811,6 +823,11 @@ export const NvStack = /*@__PURE__*/ defineContainer('nv-stack', undefined, [
811
823
  'full',
812
824
  'vertical'
813
825
  ]);
826
+ export const NvStatusindicator = /*@__PURE__*/ defineContainer('nv-statusindicator', undefined, [
827
+ 'status',
828
+ 'emphasis',
829
+ 'label'
830
+ ]);
814
831
  export const NvTable = /*@__PURE__*/ defineContainer('nv-table', undefined);
815
832
  export const NvTableheader = /*@__PURE__*/ defineContainer('nv-tableheader', undefined, [
816
833
  'sortable',
@@ -819,6 +836,18 @@ export const NvTableheader = /*@__PURE__*/ defineContainer('nv-tableheader', und
819
836
  ], [
820
837
  'sortDirectionChanged'
821
838
  ]);
839
+ export const NvTag = /*@__PURE__*/ defineContainer('nv-tag', undefined, [
840
+ 'color',
841
+ 'label',
842
+ 'dismissible',
843
+ 'href',
844
+ 'target',
845
+ 'rel',
846
+ 'disabled',
847
+ 'dismissed'
848
+ ], [
849
+ 'dismissed'
850
+ ]);
822
851
  export const NvTimetest = /*@__PURE__*/ defineContainer('nv-timetest', undefined, [
823
852
  'value',
824
853
  'history',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nova-design-system/nova-vue",
3
- "version": "3.29.0",
3
+ "version": "3.31.0",
4
4
  "description": "Nova is a design system created by Elia Group to empower creators to efficiently build solutions that people love to use.",
5
5
  "author": "Elia Group",
6
6
  "homepage": "https://nova.eliagroup.io",