@hostlink/nuxt-light 1.13.6 → 1.13.7
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 +5 -1
- package/dist/runtime/components/l-btn.vue +1 -1
- package/dist/runtime/index.d.ts +3 -3
- package/dist/runtime/{index.mjs → index.js} +2 -2
- package/dist/runtime/lib/{SystemValue.mjs → SystemValue.js} +2 -2
- package/dist/runtime/lib/defineLightModel.d.ts +1 -1
- package/dist/runtime/lib/{defineLightModel.mjs → defineLightModel.js} +1 -1
- package/dist/runtime/lib/{f.mjs → f.js} +1 -1
- package/dist/runtime/lib/{getApiUrl.mjs → getApiUrl.js} +1 -1
- package/dist/runtime/lib/{getCurrentUser.mjs → getCurrentUser.js} +1 -1
- package/dist/runtime/lib/{getGQLFields.mjs → getGQLFields.js} +1 -1
- package/dist/runtime/lib/{getID.mjs → getID.js} +1 -1
- package/dist/runtime/lib/{getModelColumns.mjs → getModelColumns.js} +1 -1
- package/dist/runtime/lib/{getModelField.mjs → getModelField.js} +1 -1
- package/dist/runtime/lib/{getModelFields.mjs → getModelFields.js} +1 -1
- package/dist/runtime/lib/{getObject.mjs → getObject.js} +2 -2
- package/dist/runtime/lib/index.d.ts +23 -23
- package/dist/runtime/lib/index.js +35 -0
- package/dist/runtime/lib/{list.mjs → list.js} +1 -1
- package/dist/runtime/lib/{listObject.mjs → listObject.js} +1 -1
- package/dist/runtime/lib/{loadObject.mjs → loadObject.js} +1 -1
- package/dist/runtime/lib/{m.mjs → m.js} +1 -1
- package/dist/runtime/lib/model.d.ts +2 -2
- package/dist/runtime/lib/{model.mjs → model.js} +1 -1
- package/dist/runtime/lib/{q.mjs → q.js} +2 -2
- package/dist/runtime/lib/{sv.mjs → sv.js} +1 -1
- package/dist/runtime/plugin.d.ts +2 -2
- package/dist/runtime/{plugin.mjs → plugin.js} +8 -8
- package/dist/types.d.mts +1 -16
- package/dist/types.d.ts +1 -16
- package/package.json +9 -10
- package/dist/runtime/lib/index.mjs +0 -35
- /package/dist/runtime/formkit/{index.mjs → index.js} +0 -0
- /package/dist/runtime/lib/{GQLFieldBuilder.mjs → GQLFieldBuilder.js} +0 -0
- /package/dist/runtime/lib/{api.mjs → api.js} +0 -0
- /package/dist/runtime/lib/{isGranted.mjs → isGranted.js} +0 -0
- /package/dist/runtime/lib/{t.mjs → t.js} +0 -0
- /package/dist/runtime/lib/{tc2sc.mjs → tc2sc.js} +0 -0
- /package/dist/runtime/lib/{toJson.mjs → toJson.js} +0 -0
- /package/dist/runtime/types/{EventLog.mjs → EventLog.js} +0 -0
- /package/dist/runtime/types/{MailLog.mjs → MailLog.js} +0 -0
- /package/dist/runtime/types/{SystemValue.mjs → SystemValue.js} +0 -0
- /package/dist/runtime/types/{User.mjs → User.js} +0 -0
- /package/dist/runtime/types/{UserLog.mjs → UserLog.js} +0 -0
package/dist/module.json
CHANGED
package/dist/runtime/index.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ declare const app: {
|
|
|
33
33
|
getCompany: () => string;
|
|
34
34
|
setCompanyLogo: (logo: string) => void;
|
|
35
35
|
getCompanyLogo: () => string;
|
|
36
|
-
getVersion: () =>
|
|
36
|
+
getVersion: () => string;
|
|
37
37
|
addError: (error: String) => void;
|
|
38
38
|
getErrors: () => String[];
|
|
39
39
|
removeError: (error: String) => void;
|
|
@@ -82,7 +82,7 @@ export declare const useLight: (options?: {
|
|
|
82
82
|
getCompany: () => string;
|
|
83
83
|
setCompanyLogo: (logo: string) => void;
|
|
84
84
|
getCompanyLogo: () => string;
|
|
85
|
-
getVersion: () =>
|
|
85
|
+
getVersion: () => string;
|
|
86
86
|
addError: (error: String) => void;
|
|
87
87
|
getErrors: () => String[];
|
|
88
88
|
removeError: (error: String) => void;
|
|
@@ -98,4 +98,4 @@ export declare const useLight: (options?: {
|
|
|
98
98
|
isGranted: (right?: string) => boolean;
|
|
99
99
|
setPermissions: (permissions: Array<string>) => void;
|
|
100
100
|
};
|
|
101
|
-
export * from "./lib";
|
|
101
|
+
export * from "./lib.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import packageJson from "../../package.json";
|
|
2
2
|
import { watch, reactive, toRaw } from "vue";
|
|
3
|
-
import { m, q } from "./lib/index.
|
|
3
|
+
import { m, q } from "./lib/index.js";
|
|
4
4
|
const errors = [];
|
|
5
5
|
let styles = {};
|
|
6
6
|
const COLOR_CODE = {
|
|
@@ -207,4 +207,4 @@ export const useLight = (options = {}) => {
|
|
|
207
207
|
}
|
|
208
208
|
return app;
|
|
209
209
|
};
|
|
210
|
-
export * from "./lib/index.
|
|
210
|
+
export * from "./lib/index.js";
|
|
@@ -19,5 +19,5 @@ export interface LightModel {
|
|
|
19
19
|
name: string;
|
|
20
20
|
fields: LightModelFields;
|
|
21
21
|
}
|
|
22
|
-
declare const _default: (model: LightModel) =>
|
|
22
|
+
declare const _default: (model: LightModel) => import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
|
|
23
23
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRoute } from "vue-router";
|
|
2
|
-
import loadObject from "./loadObject.
|
|
3
|
-
import { default as getModelField } from "./getModelField.
|
|
2
|
+
import loadObject from "./loadObject.js";
|
|
3
|
+
import { default as getModelField } from "./getModelField.js";
|
|
4
4
|
export default async function(fields = []) {
|
|
5
5
|
let route = useRoute();
|
|
6
6
|
if (!route.name) {
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export { default as api } from "./api";
|
|
2
|
-
export { default as f } from "./f";
|
|
3
|
-
export { default as getApiUrl } from "./getApiUrl";
|
|
4
|
-
export { default as getCurrentUser } from "./getCurrentUser";
|
|
5
|
-
export { default as getObject } from "./getObject";
|
|
6
|
-
export { default as list } from "./list";
|
|
7
|
-
export { default as m } from "./m";
|
|
8
|
-
export { default as q } from "./q";
|
|
9
|
-
export { default as t } from "./t";
|
|
10
|
-
export { default as listObject } from "./listObject";
|
|
11
|
-
export { default as loadObject } from "./loadObject";
|
|
12
|
-
export { default as isGranted } from "./isGranted";
|
|
13
|
-
export { default as GQLFieldBuilder } from "./GQLFieldBuilder";
|
|
14
|
-
export { default as getModelField } from "./getModelField";
|
|
15
|
-
export { default as getModelFields } from "./getModelFields";
|
|
16
|
-
export { default as getModelColumns } from "./getModelColumns";
|
|
17
|
-
export { default as sv } from "./sv";
|
|
18
|
-
export { default as model } from "./model";
|
|
19
|
-
export { default as defineLightModel } from "./defineLightModel";
|
|
20
|
-
export { type LightModelField, type LightModel } from "./defineLightModel";
|
|
1
|
+
export { default as api } from "./api.js";
|
|
2
|
+
export { default as f } from "./f.js";
|
|
3
|
+
export { default as getApiUrl } from "./getApiUrl.js";
|
|
4
|
+
export { default as getCurrentUser } from "./getCurrentUser.js";
|
|
5
|
+
export { default as getObject } from "./getObject.js";
|
|
6
|
+
export { default as list } from "./list.js";
|
|
7
|
+
export { default as m } from "./m.js";
|
|
8
|
+
export { default as q } from "./q.js";
|
|
9
|
+
export { default as t } from "./t.js";
|
|
10
|
+
export { default as listObject } from "./listObject.js";
|
|
11
|
+
export { default as loadObject } from "./loadObject.js";
|
|
12
|
+
export { default as isGranted } from "./isGranted.js";
|
|
13
|
+
export { default as GQLFieldBuilder } from "./GQLFieldBuilder.js";
|
|
14
|
+
export { default as getModelField } from "./getModelField.js";
|
|
15
|
+
export { default as getModelFields } from "./getModelFields.js";
|
|
16
|
+
export { default as getModelColumns } from "./getModelColumns.js";
|
|
17
|
+
export { default as sv } from "./sv.js";
|
|
18
|
+
export { default as model } from "./model.js";
|
|
19
|
+
export { default as defineLightModel } from "./defineLightModel.js";
|
|
20
|
+
export { type LightModelField, type LightModel } from "./defineLightModel.js";
|
|
21
21
|
export declare const notify: (message: string, color?: string) => void;
|
|
22
|
-
export { default as getID } from "./getID";
|
|
23
|
-
export { default as id } from "./getID";
|
|
22
|
+
export { default as getID } from "./getID.js";
|
|
23
|
+
export { default as id } from "./getID.js";
|
|
24
24
|
export declare const getApiBase: () => {};
|
|
25
|
-
export { default as getGQLFields } from "./getGQLFields";
|
|
25
|
+
export { default as getGQLFields } from "./getGQLFields.js";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { useRuntimeConfig } from "nuxt/app";
|
|
2
|
+
import { Notify } from "quasar";
|
|
3
|
+
export { default as api } from "./api.js";
|
|
4
|
+
export { default as f } from "./f.js";
|
|
5
|
+
export { default as getApiUrl } from "./getApiUrl.js";
|
|
6
|
+
export { default as getCurrentUser } from "./getCurrentUser.js";
|
|
7
|
+
export { default as getObject } from "./getObject.js";
|
|
8
|
+
export { default as list } from "./list.js";
|
|
9
|
+
export { default as m } from "./m.js";
|
|
10
|
+
export { default as q } from "./q.js";
|
|
11
|
+
export { default as t } from "./t.js";
|
|
12
|
+
export { default as listObject } from "./listObject.js";
|
|
13
|
+
export { default as loadObject } from "./loadObject.js";
|
|
14
|
+
export { default as isGranted } from "./isGranted.js";
|
|
15
|
+
export { default as GQLFieldBuilder } from "./GQLFieldBuilder.js";
|
|
16
|
+
export { default as getModelField } from "./getModelField.js";
|
|
17
|
+
export { default as getModelFields } from "./getModelFields.js";
|
|
18
|
+
export { default as getModelColumns } from "./getModelColumns.js";
|
|
19
|
+
export { default as sv } from "./sv.js";
|
|
20
|
+
export { default as model } from "./model.js";
|
|
21
|
+
export { default as defineLightModel } from "./defineLightModel.js";
|
|
22
|
+
export const notify = function(message, color = "positive") {
|
|
23
|
+
Notify.create({
|
|
24
|
+
message,
|
|
25
|
+
color,
|
|
26
|
+
position: "top"
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
export { default as getID } from "./getID.js";
|
|
30
|
+
export { default as id } from "./getID.js";
|
|
31
|
+
export const getApiBase = () => {
|
|
32
|
+
const config = useRuntimeConfig();
|
|
33
|
+
return config?.public?.apiBase ?? "/api/";
|
|
34
|
+
};
|
|
35
|
+
export { default as getGQLFields } from "./getGQLFields.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as api } from "./api";
|
|
2
|
-
import type { LTableColumn } from "../components/l-table.vue";
|
|
1
|
+
import { default as api } from "./api.js";
|
|
2
|
+
import type { LTableColumn } from "../components/l-table.vue.js";
|
|
3
3
|
interface LModel extends ReturnType<typeof api.model> {
|
|
4
4
|
columns(fields: string[]): Array<LTableColumn>;
|
|
5
5
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import f from "./f.
|
|
1
|
+
import f from "./f.js";
|
|
2
2
|
import { jsonToGraphQLQuery } from "json-to-graphql-query";
|
|
3
3
|
import { toQuery } from "@hostlink/light";
|
|
4
|
-
import { api } from "./index.
|
|
4
|
+
import { api } from "./index.js";
|
|
5
5
|
export default async function(operation, args = null, fields = []) {
|
|
6
6
|
let query;
|
|
7
7
|
if (operation instanceof Object) {
|
package/dist/runtime/plugin.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./assets/main.css";
|
|
2
|
-
declare const _default:
|
|
1
|
+
import "./assets/main.css.js";
|
|
2
|
+
declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
|
|
3
3
|
export default _default;
|
|
@@ -4,17 +4,17 @@ import { defineNuxtPlugin } from "#app";
|
|
|
4
4
|
import "./assets/main.css";
|
|
5
5
|
import message_en from "./locales/en.json";
|
|
6
6
|
import message_zh from "./locales/zh-hk.json";
|
|
7
|
-
import { api } from "./lib/index.
|
|
7
|
+
import { api } from "./lib/index.js";
|
|
8
8
|
localStorage.getItem("locale") || localStorage.setItem("locale", "en");
|
|
9
9
|
import { createQuasarPlugin } from "formkit-quasar";
|
|
10
|
-
import { createLightPlugin } from "./formkit/index.
|
|
10
|
+
import { createLightPlugin } from "./formkit/index.js";
|
|
11
11
|
import { plugin, defaultConfig } from "@formkit/vue";
|
|
12
|
-
import { getApiBase, useLight } from "./index.
|
|
13
|
-
import TypeUser from "./types/User.
|
|
14
|
-
import TypeUserLog from "./types/UserLog.
|
|
15
|
-
import TypeSystemValue from "./types/SystemValue.
|
|
16
|
-
import TypeMailLog from "./types/MailLog.
|
|
17
|
-
import TypeEventLog from "./types/EventLog.
|
|
12
|
+
import { getApiBase, useLight } from "./index.js";
|
|
13
|
+
import TypeUser from "./types/User.js";
|
|
14
|
+
import TypeUserLog from "./types/UserLog.js";
|
|
15
|
+
import TypeSystemValue from "./types/SystemValue.js";
|
|
16
|
+
import TypeMailLog from "./types/MailLog.js";
|
|
17
|
+
import TypeEventLog from "./types/EventLog.js";
|
|
18
18
|
import { zhTW } from "@formkit/i18n";
|
|
19
19
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
20
20
|
api.axios.defaults.baseURL = getApiBase();
|
package/dist/types.d.mts
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ModuleOptions } from './module.js'
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare module '@nuxt/schema' {
|
|
6
|
-
interface NuxtConfig { ['light']?: Partial<ModuleOptions> }
|
|
7
|
-
interface NuxtOptions { ['light']?: ModuleOptions }
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
declare module 'nuxt/schema' {
|
|
11
|
-
interface NuxtConfig { ['light']?: Partial<ModuleOptions> }
|
|
12
|
-
interface NuxtOptions { ['light']?: ModuleOptions }
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export type { ModuleOptions, default } from './module.js'
|
|
1
|
+
export { type ModuleOptions, default } from './module.js'
|
package/dist/types.d.ts
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ModuleOptions } from './module'
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare module '@nuxt/schema' {
|
|
6
|
-
interface NuxtConfig { ['light']?: Partial<ModuleOptions> }
|
|
7
|
-
interface NuxtOptions { ['light']?: ModuleOptions }
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
declare module 'nuxt/schema' {
|
|
11
|
-
interface NuxtConfig { ['light']?: Partial<ModuleOptions> }
|
|
12
|
-
interface NuxtOptions { ['light']?: ModuleOptions }
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export type { ModuleOptions, default } from './module'
|
|
1
|
+
export { type ModuleOptions, default } from './module'
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hostlink/nuxt-light",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.7",
|
|
4
4
|
"description": "HostLink Nuxt Light Framework",
|
|
5
|
-
"repository":
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "@hostlink/nuxt-light"
|
|
8
|
+
},
|
|
6
9
|
"license": "MIT",
|
|
7
10
|
"type": "module",
|
|
8
11
|
"exports": {
|
|
@@ -10,10 +13,6 @@
|
|
|
10
13
|
"types": "./dist/types.d.ts",
|
|
11
14
|
"import": "./dist/module.mjs",
|
|
12
15
|
"require": "./dist/module.cjs"
|
|
13
|
-
},
|
|
14
|
-
"./dist": {
|
|
15
|
-
"types": "./dist/runtime/index.d.ts",
|
|
16
|
-
"import": "./dist/runtime/index.mjs"
|
|
17
16
|
}
|
|
18
17
|
},
|
|
19
18
|
"main": "./dist/module.cjs",
|
|
@@ -25,7 +24,7 @@
|
|
|
25
24
|
"prepack": "nuxt-module-build build",
|
|
26
25
|
"dev": "nuxi dev playground --host",
|
|
27
26
|
"dev:build": "nuxi build playground",
|
|
28
|
-
"dev:prepare": "nuxt-module-build build --stub && nuxi prepare playground",
|
|
27
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
29
28
|
"release:org": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
|
|
30
29
|
"release": "npm run prepack && changelogen --release && npm publish --access=public && git push --follow-tags",
|
|
31
30
|
"lint": "eslint .",
|
|
@@ -33,10 +32,10 @@
|
|
|
33
32
|
"test:watch": "vitest watch"
|
|
34
33
|
},
|
|
35
34
|
"dependencies": {
|
|
36
|
-
"@formkit/drag-and-drop": "^0.
|
|
35
|
+
"@formkit/drag-and-drop": "^0.1.6",
|
|
37
36
|
"@hostlink/light": "^2.0.1",
|
|
38
37
|
"@nuxt/kit": "^3.7.4",
|
|
39
|
-
"@nuxt/module-builder": "^0.
|
|
38
|
+
"@nuxt/module-builder": "^0.8.3",
|
|
40
39
|
"@quasar/extras": "^1.16.11",
|
|
41
40
|
"@quasar/vite-plugin": "^1.7.0",
|
|
42
41
|
"axios": "^1.5.0",
|
|
@@ -52,7 +51,7 @@
|
|
|
52
51
|
"@nuxt/eslint-config": "^0.2.0",
|
|
53
52
|
"@nuxt/schema": "^3.7.4",
|
|
54
53
|
"@nuxt/test-utils": "^3.7.0",
|
|
55
|
-
"@types/node": "^
|
|
54
|
+
"@types/node": "^22.5.0",
|
|
56
55
|
"changelogen": "^0.5.4",
|
|
57
56
|
"eslint": "^8.46.0",
|
|
58
57
|
"nuxt": "^3.7.0"
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { useRuntimeConfig } from "nuxt/app";
|
|
2
|
-
import { Notify } from "quasar";
|
|
3
|
-
export { default as api } from "./api.mjs";
|
|
4
|
-
export { default as f } from "./f.mjs";
|
|
5
|
-
export { default as getApiUrl } from "./getApiUrl.mjs";
|
|
6
|
-
export { default as getCurrentUser } from "./getCurrentUser.mjs";
|
|
7
|
-
export { default as getObject } from "./getObject.mjs";
|
|
8
|
-
export { default as list } from "./list.mjs";
|
|
9
|
-
export { default as m } from "./m.mjs";
|
|
10
|
-
export { default as q } from "./q.mjs";
|
|
11
|
-
export { default as t } from "./t.mjs";
|
|
12
|
-
export { default as listObject } from "./listObject.mjs";
|
|
13
|
-
export { default as loadObject } from "./loadObject.mjs";
|
|
14
|
-
export { default as isGranted } from "./isGranted.mjs";
|
|
15
|
-
export { default as GQLFieldBuilder } from "./GQLFieldBuilder.mjs";
|
|
16
|
-
export { default as getModelField } from "./getModelField.mjs";
|
|
17
|
-
export { default as getModelFields } from "./getModelFields.mjs";
|
|
18
|
-
export { default as getModelColumns } from "./getModelColumns.mjs";
|
|
19
|
-
export { default as sv } from "./sv.mjs";
|
|
20
|
-
export { default as model } from "./model.mjs";
|
|
21
|
-
export { default as defineLightModel } from "./defineLightModel.mjs";
|
|
22
|
-
export const notify = function(message, color = "positive") {
|
|
23
|
-
Notify.create({
|
|
24
|
-
message,
|
|
25
|
-
color,
|
|
26
|
-
position: "top"
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
export { default as getID } from "./getID.mjs";
|
|
30
|
-
export { default as id } from "./getID.mjs";
|
|
31
|
-
export const getApiBase = () => {
|
|
32
|
-
const config = useRuntimeConfig();
|
|
33
|
-
return config?.public?.apiBase ?? "/api/";
|
|
34
|
-
};
|
|
35
|
-
export { default as getGQLFields } from "./getGQLFields.mjs";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|