@hostlink/nuxt-light 1.13.6 → 1.14.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.
Files changed (68) hide show
  1. package/dist/module.json +5 -1
  2. package/dist/runtime/components/l-app-main.vue +14 -11
  3. package/dist/runtime/components/l-bar.vue +21 -0
  4. package/dist/runtime/components/l-btn.vue +2 -2
  5. package/dist/runtime/components/l-card.vue +1 -1
  6. package/dist/runtime/components/l-checkbox.vue +1 -1
  7. package/dist/runtime/components/l-customizer.vue +21 -7
  8. package/dist/runtime/components/l-dialog-database-field-add.vue +61 -0
  9. package/dist/runtime/components/l-editor.vue +1 -1
  10. package/dist/runtime/components/l-form.vue +21 -5
  11. package/dist/runtime/components/l-input.vue +1 -1
  12. package/dist/runtime/components/l-item.vue +1 -1
  13. package/dist/runtime/components/l-list.vue +1 -1
  14. package/dist/runtime/components/l-login.vue +54 -72
  15. package/dist/runtime/components/l-page.vue +16 -2
  16. package/dist/runtime/components/l-select.vue +1 -1
  17. package/dist/runtime/components/l-table.vue +2 -1
  18. package/dist/runtime/components/l-tabs.vue +1 -1
  19. package/dist/runtime/formkit/Form.vue +22 -9
  20. package/dist/runtime/index.d.ts +3 -3
  21. package/dist/runtime/{index.mjs → index.js} +2 -2
  22. package/dist/runtime/lib/{SystemValue.mjs → SystemValue.js} +2 -2
  23. package/dist/runtime/lib/defineLightModel.d.ts +1 -1
  24. package/dist/runtime/lib/{defineLightModel.mjs → defineLightModel.js} +1 -1
  25. package/dist/runtime/lib/{f.mjs → f.js} +1 -1
  26. package/dist/runtime/lib/{getApiUrl.mjs → getApiUrl.js} +1 -1
  27. package/dist/runtime/lib/{getCurrentUser.mjs → getCurrentUser.js} +1 -1
  28. package/dist/runtime/lib/{getGQLFields.mjs → getGQLFields.js} +1 -1
  29. package/dist/runtime/lib/{getID.mjs → getID.js} +1 -1
  30. package/dist/runtime/lib/{getModelColumns.mjs → getModelColumns.js} +1 -1
  31. package/dist/runtime/lib/{getModelField.mjs → getModelField.js} +1 -1
  32. package/dist/runtime/lib/{getModelFields.mjs → getModelFields.js} +1 -1
  33. package/dist/runtime/lib/{getObject.mjs → getObject.js} +2 -2
  34. package/dist/runtime/lib/index.d.ts +23 -23
  35. package/dist/runtime/lib/index.js +35 -0
  36. package/dist/runtime/lib/{list.mjs → list.js} +1 -1
  37. package/dist/runtime/lib/{listObject.mjs → listObject.js} +1 -1
  38. package/dist/runtime/lib/{loadObject.mjs → loadObject.js} +1 -1
  39. package/dist/runtime/lib/{m.mjs → m.js} +1 -1
  40. package/dist/runtime/lib/model.d.ts +2 -2
  41. package/dist/runtime/lib/{model.mjs → model.js} +1 -1
  42. package/dist/runtime/lib/{q.mjs → q.js} +2 -2
  43. package/dist/runtime/lib/{sv.mjs → sv.js} +1 -1
  44. package/dist/runtime/pages/System/database/table.vue +125 -6
  45. package/dist/runtime/pages/System/view_as.vue +12 -8
  46. package/dist/runtime/pages/User/_user_id/edit.vue +3 -3
  47. package/dist/runtime/pages/User/index.vue +2 -0
  48. package/dist/runtime/pages/User/profile.vue +4 -12
  49. package/dist/runtime/pages/User/setting/open_id.vue +6 -10
  50. package/dist/runtime/pages/User/setting.vue +1 -1
  51. package/dist/runtime/plugin.d.ts +2 -2
  52. package/dist/runtime/{plugin.mjs → plugin.js} +8 -8
  53. package/dist/types.d.mts +1 -16
  54. package/dist/types.d.ts +1 -16
  55. package/package.json +59 -60
  56. package/dist/runtime/lib/index.mjs +0 -35
  57. /package/dist/runtime/formkit/{index.mjs → index.js} +0 -0
  58. /package/dist/runtime/lib/{GQLFieldBuilder.mjs → GQLFieldBuilder.js} +0 -0
  59. /package/dist/runtime/lib/{api.mjs → api.js} +0 -0
  60. /package/dist/runtime/lib/{isGranted.mjs → isGranted.js} +0 -0
  61. /package/dist/runtime/lib/{t.mjs → t.js} +0 -0
  62. /package/dist/runtime/lib/{tc2sc.mjs → tc2sc.js} +0 -0
  63. /package/dist/runtime/lib/{toJson.mjs → toJson.js} +0 -0
  64. /package/dist/runtime/types/{EventLog.mjs → EventLog.js} +0 -0
  65. /package/dist/runtime/types/{MailLog.mjs → MailLog.js} +0 -0
  66. /package/dist/runtime/types/{SystemValue.mjs → SystemValue.js} +0 -0
  67. /package/dist/runtime/types/{User.mjs → User.js} +0 -0
  68. /package/dist/runtime/types/{UserLog.mjs → UserLog.js} +0 -0
@@ -24,7 +24,7 @@ const route = useRoute()
24
24
  exact />
25
25
  <q-route-tab name="openid" icon="sym_o_key" :label="$t('Open ID')" to="/User/setting/open_id"
26
26
  exact />
27
- <q-route-tab name="myfav" icon="sym_o_star" :label="$t('My favorite')"
27
+ <q-route-tab name="myfav" icon="sym_o_favorite" :label="$t('My favorite')"
28
28
  to="/User/setting/my_favorite" exact />
29
29
 
30
30
  </q-tabs>
@@ -1,3 +1,3 @@
1
- import "./assets/main.css";
2
- declare const _default: any;
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.mjs";
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.mjs";
10
+ import { createLightPlugin } from "./formkit/index.js";
11
11
  import { plugin, defaultConfig } from "@formkit/vue";
12
- import { getApiBase, useLight } from "./index.mjs";
13
- import TypeUser from "./types/User.mjs";
14
- import TypeUserLog from "./types/UserLog.mjs";
15
- import TypeSystemValue from "./types/SystemValue.mjs";
16
- import TypeMailLog from "./types/MailLog.mjs";
17
- import TypeEventLog from "./types/EventLog.mjs";
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,60 +1,59 @@
1
- {
2
- "name": "@hostlink/nuxt-light",
3
- "version": "1.13.6",
4
- "description": "HostLink Nuxt Light Framework",
5
- "repository": "@hostlink/nuxt-light",
6
- "license": "MIT",
7
- "type": "module",
8
- "exports": {
9
- ".": {
10
- "types": "./dist/types.d.ts",
11
- "import": "./dist/module.mjs",
12
- "require": "./dist/module.cjs"
13
- },
14
- "./dist": {
15
- "types": "./dist/runtime/index.d.ts",
16
- "import": "./dist/runtime/index.mjs"
17
- }
18
- },
19
- "main": "./dist/module.cjs",
20
- "types": "./dist/types.d.ts",
21
- "files": [
22
- "dist"
23
- ],
24
- "scripts": {
25
- "prepack": "nuxt-module-build build",
26
- "dev": "nuxi dev playground --host",
27
- "dev:build": "nuxi build playground",
28
- "dev:prepare": "nuxt-module-build build --stub && nuxi prepare playground",
29
- "release:org": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
30
- "release": "npm run prepack && changelogen --release && npm publish --access=public && git push --follow-tags",
31
- "lint": "eslint .",
32
- "test": "vitest run",
33
- "test:watch": "vitest watch"
34
- },
35
- "dependencies": {
36
- "@formkit/drag-and-drop": "^0.0.36",
37
- "@hostlink/light": "^2.0.1",
38
- "@nuxt/kit": "^3.7.4",
39
- "@nuxt/module-builder": "^0.5.2",
40
- "@quasar/extras": "^1.16.11",
41
- "@quasar/vite-plugin": "^1.7.0",
42
- "axios": "^1.5.0",
43
- "diff2html": "^3.4.47",
44
- "formkit-quasar": "^0.0.15",
45
- "json-to-graphql-query": "^2.2.5",
46
- "quasar": "^2.15.4",
47
- "vue-i18n": "^9.2.2",
48
- "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz"
49
- },
50
- "devDependencies": {
51
- "@nuxt/devtools": "latest",
52
- "@nuxt/eslint-config": "^0.2.0",
53
- "@nuxt/schema": "^3.7.4",
54
- "@nuxt/test-utils": "^3.7.0",
55
- "@types/node": "^18.17.3",
56
- "changelogen": "^0.5.4",
57
- "eslint": "^8.46.0",
58
- "nuxt": "^3.7.0"
59
- }
60
- }
1
+ {
2
+ "name": "@hostlink/nuxt-light",
3
+ "version": "1.14.0",
4
+ "description": "HostLink Nuxt Light Framework",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "@hostlink/nuxt-light"
8
+ },
9
+ "license": "MIT",
10
+ "type": "module",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/types.d.ts",
14
+ "import": "./dist/module.mjs",
15
+ "require": "./dist/module.cjs"
16
+ }
17
+ },
18
+ "main": "./dist/module.cjs",
19
+ "types": "./dist/types.d.ts",
20
+ "files": [
21
+ "dist"
22
+ ],
23
+ "scripts": {
24
+ "prepack": "nuxt-module-build build",
25
+ "dev": "nuxi dev playground --host",
26
+ "dev:build": "nuxi build playground",
27
+ "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
28
+ "release:org": "npm run lint && npm run test && npm run prepack && npm publish && git push --follow-tags",
29
+ "release": "npm run prepack && npm publish --access=public && git push --follow-tags",
30
+ "lint": "eslint .",
31
+ "test": "vitest run",
32
+ "test:watch": "vitest watch"
33
+ },
34
+ "dependencies": {
35
+ "@formkit/drag-and-drop": "^0.1.6",
36
+ "@hostlink/light": "^2.0.1",
37
+ "@nuxt/kit": "^3.7.4",
38
+ "@nuxt/module-builder": "^0.8.3",
39
+ "@quasar/extras": "^1.16.11",
40
+ "@quasar/vite-plugin": "^1.7.0",
41
+ "axios": "^1.5.0",
42
+ "diff2html": "^3.4.47",
43
+ "formkit-quasar": "^0.0.15",
44
+ "json-to-graphql-query": "^2.2.5",
45
+ "quasar": "^2.15.4",
46
+ "vue-i18n": "^9.2.2",
47
+ "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz"
48
+ },
49
+ "devDependencies": {
50
+ "@nuxt/devtools": "latest",
51
+ "@nuxt/eslint-config": "^0.2.0",
52
+ "@nuxt/schema": "^3.7.4",
53
+ "@nuxt/test-utils": "^3.7.0",
54
+ "@types/node": "^22.5.0",
55
+ "changelogen": "^0.5.4",
56
+ "eslint": "^8.46.0",
57
+ "nuxt": "^3.7.0"
58
+ }
59
+ }
@@ -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