@nova-design-system/nova-vue 3.25.0 → 3.27.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.
@@ -1,4 +1,3 @@
1
- /* eslint-disable jsdoc/require-jsdoc */
2
1
  import { defineComponent, computed, h, ref, watch, watchEffect, onUnmounted, } from 'vue';
3
2
  import { useVueTable, getCoreRowModel, getPaginationRowModel, getSortedRowModel, } from '@tanstack/vue-table';
4
3
  import { NvTable, NvTableheader, NvPaginationtable, } from '../generated/components';
@@ -42,6 +42,7 @@ export declare const NvMenuitem: StencilVueComponent<JSX.NvMenuitem>;
42
42
  export declare const NvNotification: StencilVueComponent<JSX.NvNotification, JSX.NvNotification["hidden"]>;
43
43
  export declare const NvNotificationBullet: StencilVueComponent<JSX.NvNotificationBullet>;
44
44
  export declare const NvNotificationcontainer: StencilVueComponent<JSX.NvNotificationcontainer>;
45
+ export declare const NvPaginationNav: StencilVueComponent<JSX.NvPaginationNav, JSX.NvPaginationNav["currentPage"]>;
45
46
  export declare const NvPaginationtable: StencilVueComponent<JSX.NvPaginationtable, JSX.NvPaginationtable["pageIndex"]>;
46
47
  export declare const NvPopover: StencilVueComponent<JSX.NvPopover, JSX.NvPopover["open"]>;
47
48
  export declare const NvRow: StencilVueComponent<JSX.NvRow>;
@@ -587,6 +587,7 @@ export const NvFieldtextarea = /*@__PURE__*/ defineContainer('nv-fieldtextarea',
587
587
  'rows',
588
588
  'resize',
589
589
  'autosize',
590
+ 'maxAutoHeight',
590
591
  'autofocus',
591
592
  'fluid',
592
593
  'valueChanged'
@@ -686,6 +687,21 @@ export const NvNotificationBullet = /*@__PURE__*/ defineContainer('nv-notificati
686
687
  export const NvNotificationcontainer = /*@__PURE__*/ defineContainer('nv-notificationcontainer', undefined, [
687
688
  'position'
688
689
  ]);
690
+ export const NvPaginationNav = /*@__PURE__*/ defineContainer('nv-pagination-nav', undefined, [
691
+ 'previousButtonLabel',
692
+ 'nextButtonLabel',
693
+ 'numStartZoneButtons',
694
+ 'numEndZoneButtons',
695
+ 'numMiddleButtons',
696
+ 'currentPage',
697
+ 'totalCount',
698
+ 'pageSize',
699
+ 'isOnlyIcon',
700
+ 'showMiddleZone',
701
+ 'currentPageChanged'
702
+ ], [
703
+ 'currentPageChanged'
704
+ ], 'currentPage', 'currentPageChanged', undefined);
689
705
  export const NvPaginationtable = /*@__PURE__*/ defineContainer('nv-paginationtable', undefined, [
690
706
  'pageIndex',
691
707
  'pageSize',
package/dist/plugin.js CHANGED
@@ -6,6 +6,7 @@
6
6
  */
7
7
  import { defineCustomElements } from '@nova-design-system/nova-webcomponents/loader';
8
8
  import { NvNotificationService, } from './providers/NotificationService';
9
+ import * as components from './generated/components';
9
10
  /**
10
11
  * This is the Vue plugin that is used to define the custom elements, event
11
12
  * handlers, and includes the notification service.
@@ -14,6 +15,11 @@ export const NovaComponents = {
14
15
  async install(app, options = {}) {
15
16
  // Define custom elements with event handling
16
17
  defineCustomElements();
18
+ // Register all Vue component wrappers globally so that
19
+ // props are passed as JS properties (not HTML attributes)
20
+ Object.entries(components).forEach(([name, component]) => {
21
+ app.component(name, component);
22
+ });
17
23
  // Install notification service
18
24
  NvNotificationService.install(app, options.notifications);
19
25
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nova-design-system/nova-vue",
3
- "version": "3.25.0",
3
+ "version": "3.27.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",
@@ -36,7 +36,7 @@
36
36
  "tsc:watch": "tsc -p . --outDir ./dist --watch",
37
37
  "storybook": "storybook dev -p 6008",
38
38
  "storybook.build": "storybook build -o ../../storybook-static/vue",
39
- "clean": "rimraf dist lib/generated lib/stories/generated lib/stories/components/*-migration.mdx lib/stories/components/*-guide.mdx",
39
+ "clean": "rimraf dist lib/generated lib/stories/generated && shx rm -rf lib/stories/components/*-migration.mdx lib/stories/components/*-guide.mdx",
40
40
  "typecheck": "tsc --emitDeclarationOnly false --noEmit"
41
41
  },
42
42
  "dependencies": {