@hostlink/nuxt-light 1.13.5 → 1.13.6
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.d.mts +1 -1
- package/dist/module.d.ts +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +0 -1
- package/dist/runtime/components/l-app.vue +1 -4
- package/dist/runtime/components/l-banner.vue +4 -3
- package/dist/runtime/lib/api.d.ts +2 -0
- package/dist/runtime/lib/api.mjs +2 -0
- package/dist/runtime/lib/defineLightModel.mjs +1 -1
- package/dist/runtime/lib/getGQLFields.d.ts +1 -1
- package/dist/runtime/lib/getGQLFields.mjs +1 -9
- package/dist/runtime/lib/getModelColumns.mjs +1 -1
- package/dist/runtime/lib/getModelField.mjs +1 -1
- package/dist/runtime/lib/getModelFields.mjs +1 -1
- package/dist/runtime/lib/getObject.mjs +1 -1
- package/dist/runtime/lib/index.d.ts +2 -4
- package/dist/runtime/lib/index.mjs +2 -6
- package/dist/runtime/lib/list.mjs +1 -1
- package/dist/runtime/lib/listObject.d.ts +1 -1
- package/dist/runtime/lib/m.mjs +1 -1
- package/dist/runtime/lib/model.d.ts +1 -1
- package/dist/runtime/lib/model.mjs +1 -1
- package/dist/runtime/lib/sv.mjs +1 -1
- package/package.json +1 -1
- package/dist/runtime/lib/updateObject.d.ts +0 -2
- package/dist/runtime/lib/updateObject.mjs +0 -12
package/dist/module.d.mts
CHANGED
|
@@ -2,6 +2,6 @@ import * as _nuxt_schema from '@nuxt/schema';
|
|
|
2
2
|
|
|
3
3
|
interface ModuleOptions {
|
|
4
4
|
}
|
|
5
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
5
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
6
6
|
|
|
7
7
|
export { type ModuleOptions, _default as default };
|
package/dist/module.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import * as _nuxt_schema from '@nuxt/schema';
|
|
|
2
2
|
|
|
3
3
|
interface ModuleOptions {
|
|
4
4
|
}
|
|
5
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
5
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
6
6
|
|
|
7
7
|
export { type ModuleOptions, _default as default };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -282,7 +282,6 @@ const module = defineNuxtModule({
|
|
|
282
282
|
{ name: "q", from },
|
|
283
283
|
{ name: "removeObject", from },
|
|
284
284
|
{ name: "t", from },
|
|
285
|
-
{ name: "updateObject", from },
|
|
286
285
|
{ name: "listObject", from },
|
|
287
286
|
{ name: "useLight", from: index },
|
|
288
287
|
{ name: "isGranted", from },
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { provide, ref } from 'vue'
|
|
3
3
|
import { useLight, watch } from "#imports";
|
|
4
|
-
import { useRuntimeConfig } from 'nuxt/app'
|
|
5
4
|
|
|
6
5
|
import { useQuasar } from 'quasar'
|
|
7
6
|
import { q } from '#imports'
|
|
8
7
|
import { useRoute } from "vue-router";
|
|
9
|
-
|
|
10
|
-
setApiUrl(config?.public?.apiBase ?? '/api/');
|
|
11
|
-
*/
|
|
8
|
+
|
|
12
9
|
const route = useRoute();
|
|
13
10
|
const light = useLight()
|
|
14
11
|
const quasar = useQuasar()
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import {
|
|
2
|
+
import type { QBannerProps } from 'quasar'
|
|
3
3
|
import { computed, useSlots } from 'vue'
|
|
4
4
|
|
|
5
|
-
export
|
|
5
|
+
export type LBannerProps = QBannerProps & {
|
|
6
6
|
icon?: string
|
|
7
7
|
type?: 'primary' | 'secondary' | 'accent' | 'dark' | 'positive' | 'negative' | 'info' | 'warning'
|
|
8
8
|
}
|
|
@@ -31,7 +31,8 @@ const slots = computed(() => useSlots());
|
|
|
31
31
|
</script>
|
|
32
32
|
|
|
33
33
|
<template>
|
|
34
|
-
<q-banner v-bind="props" :class="classes">
|
|
34
|
+
<q-banner v-bind="$props" :class="classes">
|
|
35
|
+
|
|
35
36
|
<template v-slot:avatar v-if="localIcon">
|
|
36
37
|
<q-icon :name="localIcon" />
|
|
37
38
|
</template>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (name: string, fields: string[]) => any;
|
|
1
|
+
declare const _default: (name: string, fields: string[]) => any[];
|
|
2
2
|
export default _default;
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import GQLFieldBuilder from "./GQLFieldBuilder.mjs";
|
|
2
1
|
import { api } from "./index.mjs";
|
|
3
2
|
export default (name, fields) => {
|
|
4
|
-
|
|
5
|
-
fields.forEach((field) => {
|
|
6
|
-
const modelField = api.model(name).field(field);
|
|
7
|
-
if (modelField) {
|
|
8
|
-
builder.add(modelField.getGQLField());
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
return builder.get();
|
|
3
|
+
return api.model(name).gqlFields(fields);
|
|
12
4
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRoute } from "vue-router";
|
|
2
2
|
import loadObject from "./loadObject.mjs";
|
|
3
|
-
import { getModelField } from "./
|
|
3
|
+
import { default as getModelField } from "./getModelField.mjs";
|
|
4
4
|
export default async function(fields = []) {
|
|
5
5
|
let route = useRoute();
|
|
6
6
|
if (!route.name) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export { default as api } from "./api";
|
|
2
2
|
export { default as f } from "./f";
|
|
3
3
|
export { default as getApiUrl } from "./getApiUrl";
|
|
4
4
|
export { default as getCurrentUser } from "./getCurrentUser";
|
|
@@ -7,7 +7,6 @@ export { default as list } from "./list";
|
|
|
7
7
|
export { default as m } from "./m";
|
|
8
8
|
export { default as q } from "./q";
|
|
9
9
|
export { default as t } from "./t";
|
|
10
|
-
export { default as updateObject } from "./updateObject";
|
|
11
10
|
export { default as listObject } from "./listObject";
|
|
12
11
|
export { default as loadObject } from "./loadObject";
|
|
13
12
|
export { default as isGranted } from "./isGranted";
|
|
@@ -23,5 +22,4 @@ export declare const notify: (message: string, color?: string) => void;
|
|
|
23
22
|
export { default as getID } from "./getID";
|
|
24
23
|
export { default as id } from "./getID";
|
|
25
24
|
export declare const getApiBase: () => {};
|
|
26
|
-
export
|
|
27
|
-
export declare const getGQLFields: (name: string, fields: string[]) => any[];
|
|
25
|
+
export { default as getGQLFields } from "./getGQLFields";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRuntimeConfig } from "nuxt/app";
|
|
2
2
|
import { Notify } from "quasar";
|
|
3
|
-
|
|
3
|
+
export { default as api } from "./api.mjs";
|
|
4
4
|
export { default as f } from "./f.mjs";
|
|
5
5
|
export { default as getApiUrl } from "./getApiUrl.mjs";
|
|
6
6
|
export { default as getCurrentUser } from "./getCurrentUser.mjs";
|
|
@@ -9,7 +9,6 @@ export { default as list } from "./list.mjs";
|
|
|
9
9
|
export { default as m } from "./m.mjs";
|
|
10
10
|
export { default as q } from "./q.mjs";
|
|
11
11
|
export { default as t } from "./t.mjs";
|
|
12
|
-
export { default as updateObject } from "./updateObject.mjs";
|
|
13
12
|
export { default as listObject } from "./listObject.mjs";
|
|
14
13
|
export { default as loadObject } from "./loadObject.mjs";
|
|
15
14
|
export { default as isGranted } from "./isGranted.mjs";
|
|
@@ -33,7 +32,4 @@ export const getApiBase = () => {
|
|
|
33
32
|
const config = useRuntimeConfig();
|
|
34
33
|
return config?.public?.apiBase ?? "/api/";
|
|
35
34
|
};
|
|
36
|
-
export
|
|
37
|
-
export const getGQLFields = (name, fields) => {
|
|
38
|
-
return api.model(name).gqlFields(fields);
|
|
39
|
-
};
|
|
35
|
+
export { default as getGQLFields } from "./getGQLFields.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Fields } from "@hostlink/light";
|
|
2
2
|
export default function listObject(name: string, filters: {} | undefined, sort: string, offset: number, limit: number, fields?: Fields): Promise<any>;
|
package/dist/runtime/lib/m.mjs
CHANGED
package/dist/runtime/lib/sv.mjs
CHANGED
package/package.json
CHANGED