@hostlink/nuxt-light 0.0.84 → 0.0.86

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": "0.0.84"
4
+ "version": "0.0.86"
5
5
  }
@@ -1,5 +1,5 @@
1
- <script setup lang="ts">
2
- import { ModelField } from '@hostlink/light';
1
+ <script setup>
2
+
3
3
 
4
4
 
5
5
  const props = defineProps({
@@ -7,7 +7,7 @@ const props = defineProps({
7
7
  type: Object
8
8
  },
9
9
  fields: {
10
- type: Array<ModelField>
10
+ type: Array
11
11
  }
12
12
  })
13
13
 
@@ -16,7 +16,7 @@ const props = defineProps({
16
16
  <q-list bordered separator>
17
17
  <template v-if="fields">
18
18
  <l-item v-for="field in fields" :label="field.getRaw().label">
19
- {{ field.getFormattedValue(props.modelValue as any) }}
19
+ {{ field.getFormattedValue(props.modelValue) }}
20
20
  </l-item>
21
21
 
22
22
  </template>
@@ -0,0 +1,2 @@
1
+ import { getModelField } from "@hostlink/light";
2
+ export default getModelField;
@@ -0,0 +1,2 @@
1
+ import { getModelField } from "@hostlink/light";
2
+ export default getModelField;
@@ -1 +1,2 @@
1
- export declare const getModelFields: (model: string, names: string[]) => any;
1
+ declare const _default: (model: string, names: string[]) => any;
2
+ export default _default;
@@ -1,5 +1,5 @@
1
1
  import { getModelField } from "@hostlink/light";
2
- export const getModelFields = (model, names) => {
2
+ export default (model, names) => {
3
3
  let fields = [];
4
4
  for (let name of names) {
5
5
  const field = getModelField(model, name);
@@ -15,10 +15,10 @@ import listObject from "./listObject";
15
15
  import loadObject from "./loadObject";
16
16
  import isGranted from "./isGranted";
17
17
  import GQLFieldBuilder from "./GQLFieldBuilder";
18
- import { getModelField } from "@hostlink/light";
19
- import { getModelFields } from './getModelFields';
18
+ import getModelField from './getModelField';
19
+ import getModelFields from './getModelFields';
20
20
  import getModelColumns from './getModelColumns';
21
21
  declare const notify: (message: string, color?: string) => void;
22
22
  import getID from "./getID";
23
23
  declare const getApiBase: () => {};
24
- export { addObject, f, getApiUrl, getCurrentUser, getObject, list, listData, m, q, removeObject, t, updateObject, notify, getID, deleteObject, listObject, isGranted, getApiBase, loadObject, GQLFieldBuilder, getModelField, getModelFields, getModelColumns };
24
+ export { addObject, f, getApiUrl, getCurrentUser, getObject, list, listData, m, q, removeObject, t, updateObject, notify, getID, deleteObject, listObject, isGranted, getApiBase, loadObject, GQLFieldBuilder, getModelField, getModelFields, getModelColumns, };
@@ -17,8 +17,8 @@ import listObject from "./listObject.mjs";
17
17
  import loadObject from "./loadObject.mjs";
18
18
  import isGranted from "./isGranted.mjs";
19
19
  import GQLFieldBuilder from "./GQLFieldBuilder.mjs";
20
- import { getModelField } from "@hostlink/light";
21
- import { getModelFields } from "./getModelFields.mjs";
20
+ import getModelField from "./getModelField.mjs";
21
+ import getModelFields from "./getModelFields.mjs";
22
22
  import getModelColumns from "./getModelColumns.mjs";
23
23
  const notify = function(message, color = "green") {
24
24
  Notify.create({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "0.0.84",
3
+ "version": "0.0.86",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": "@hostlink/nuxt-light",
6
6
  "license": "MIT",