@hostlink/nuxt-light 1.10.0 → 1.10.1

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/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "1.10.0"
4
+ "version": "1.10.1"
5
5
  }
@@ -1,9 +1,16 @@
1
+ export interface LightModelGqlField {
2
+ [key: string]: string | LightModelGqlField | boolean;
3
+ }
1
4
  export interface LightModelField {
2
5
  label: string;
3
6
  sortable?: boolean;
4
7
  searchable?: boolean;
5
8
  autoWidth?: boolean;
6
9
  searchType?: string;
10
+ name?: string;
11
+ gqlField?: LightModelGqlField;
12
+ to?: (row: any) => string;
13
+ field?: (row: any) => string;
7
14
  }
8
15
  export interface LightModelFields {
9
16
  [key: string]: LightModelField;
@@ -1,7 +1,7 @@
1
1
  import { defineNuxtPlugin } from "#app";
2
2
  import { defineModel } from "@hostlink/light";
3
3
  export default (model) => {
4
- return defineNuxtPlugin((nuxtApp) => {
4
+ return defineNuxtPlugin(() => {
5
5
  defineModel(model.name, model.fields);
6
6
  });
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.10.0",
3
+ "version": "1.10.1",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": "@hostlink/nuxt-light",
6
6
  "license": "MIT",