@hostlink/nuxt-light 1.25.2 → 1.26.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.
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "1.25.2",
4
+ "version": "1.26.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
@@ -617,7 +617,14 @@ const onAdd = () => {
617
617
  :style="getCellStyle(col, props.row)" :class="getCellClass(col, props.row)"><template
618
618
  v-if="col.to" class="bg-primary">
619
619
  <l-link :to="col.to(props.row)">{{ col.value }}</l-link>
620
- </template><template v-else>{{ col.value }}</template></q-td>
620
+ </template>
621
+ <template v-else-if="col.component">
622
+ <component :is="col.component" v-model="props.row"/>
623
+ </template>
624
+ <template v-else>
625
+ {{ col.value }}
626
+ </template>
627
+ </q-td>
621
628
  </template>
622
629
  </template>
623
630
  </q-tr>
@@ -14,6 +14,7 @@ const columns = model("User").columns({
14
14
  join_date: true,
15
15
  status: true,
16
16
  has2FA: true,
17
+ //test: true,
17
18
  })
18
19
 
19
20
 
@@ -44,14 +44,6 @@ declare const _default: {
44
44
  }[];
45
45
  format: (value: any) => string;
46
46
  };
47
- test: {
48
- label: string;
49
- name: string;
50
- to: (row: any) => string;
51
- gqlField: string[];
52
- field: (row: any) => any;
53
- backgroundColor: (row: any) => "primary" | undefined;
54
- };
55
47
  has2FA: {
56
48
  label: string;
57
49
  searchType: string;
@@ -56,18 +56,6 @@ export default {
56
56
  return ["Active", "Inactive"][value];
57
57
  }
58
58
  },
59
- test: {
60
- label: "Test",
61
- name: "_test",
62
- to: (row) => `/User/${row.user_id}/view`,
63
- gqlField: ["user_id", "first_name"],
64
- field: (row) => row.first_name,
65
- backgroundColor: (row) => {
66
- if (row.username == "admin") {
67
- return "primary";
68
- }
69
- }
70
- },
71
59
  has2FA: {
72
60
  label: "2FA",
73
61
  searchType: "select",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.25.2",
3
+ "version": "1.26.0",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": {
6
6
  "type": "git",