@hostlink/nuxt-light 1.28.2 → 1.28.4

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 (94) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +78 -90
  3. package/dist/runtime/components/L/CustomField/Add.vue.d.ts +1 -1
  4. package/dist/runtime/components/L/Database/create-table-dialog.vue.d.ts +1 -1
  5. package/dist/runtime/components/l-app-main.vue.d.ts +6 -609
  6. package/dist/runtime/components/l-col.vue.d.ts +2 -2
  7. package/dist/runtime/components/l-customizer.vue.d.ts +6 -6
  8. package/dist/runtime/components/l-date-picker.vue +1 -1
  9. package/dist/runtime/components/l-date-picker.vue.d.ts +17 -21
  10. package/dist/runtime/components/l-dialog-database-field-add.vue.d.ts +1 -1
  11. package/dist/runtime/components/l-editor.vue.d.ts +1 -1
  12. package/dist/runtime/components/l-fav-menu.vue.d.ts +2 -2
  13. package/dist/runtime/components/l-field.vue.d.ts +8 -8
  14. package/dist/runtime/components/l-file-manager.vue.d.ts +4 -4
  15. package/dist/runtime/components/l-file-upload.vue.d.ts +8 -8
  16. package/dist/runtime/components/l-file.vue.d.ts +3 -3
  17. package/dist/runtime/components/l-form-dialog.vue.d.ts +2 -2
  18. package/dist/runtime/components/l-input.vue +1 -1
  19. package/dist/runtime/components/l-input.vue.d.ts +9 -9
  20. package/dist/runtime/components/l-menu.vue.d.ts +2 -2
  21. package/dist/runtime/components/l-page.vue +2 -1
  22. package/dist/runtime/components/l-page.vue.d.ts +2 -2
  23. package/dist/runtime/components/l-select.vue.d.ts +4 -4
  24. package/dist/runtime/components/l-table.vue +13 -11
  25. package/dist/runtime/components/l-table.vue.d.ts +33 -33
  26. package/dist/runtime/components/l-tabs.vue +5 -5
  27. package/dist/runtime/components/l-tabs.vue.d.ts +7 -7
  28. package/dist/runtime/components/l-time-picker.vue +1 -1
  29. package/dist/runtime/components/l-time-picker.vue.d.ts +9 -9
  30. package/dist/runtime/composables/createLight.d.ts +5 -0
  31. package/dist/runtime/composables/createLight.js +11 -0
  32. package/dist/runtime/composables/getApiBase.d.ts +2 -0
  33. package/dist/runtime/composables/getApiBase.js +5 -0
  34. package/dist/runtime/{lib → composables}/getApiUrl.js +1 -1
  35. package/dist/runtime/{lib → composables}/getGQLFields.js +1 -1
  36. package/dist/runtime/{lib → composables}/getID.js +1 -1
  37. package/dist/runtime/composables/index.d.ts +1 -0
  38. package/dist/runtime/composables/index.js +0 -0
  39. package/dist/runtime/composables/notify.d.ts +1 -0
  40. package/dist/runtime/composables/notify.js +8 -0
  41. package/dist/runtime/{lib → composables}/q.js +1 -1
  42. package/dist/runtime/{light.d.ts → composables/useLight.d.ts} +30 -34
  43. package/dist/runtime/{light.js → composables/useLight.js} +4 -12
  44. package/dist/runtime/pages/Permission/add.vue +1 -1
  45. package/dist/runtime/pages/Role/_name/update-child.vue +1 -1
  46. package/dist/runtime/pages/User/_user_id/update-role.vue +1 -1
  47. package/dist/runtime/pages/User/index.vue +1 -2
  48. package/dist/runtime/plugin.js +4 -4
  49. package/package.json +2 -2
  50. package/dist/runtime/index.js +0 -1
  51. package/dist/runtime/lib/index.d.ts +0 -25
  52. package/dist/runtime/lib/index.js +0 -35
  53. /package/dist/runtime/{lib → composables}/GQLFieldBuilder.d.ts +0 -0
  54. /package/dist/runtime/{lib → composables}/GQLFieldBuilder.js +0 -0
  55. /package/dist/runtime/{lib → composables}/SystemValue.d.ts +0 -0
  56. /package/dist/runtime/{lib → composables}/SystemValue.js +0 -0
  57. /package/dist/runtime/{lib → composables}/api.d.ts +0 -0
  58. /package/dist/runtime/{lib → composables}/api.js +0 -0
  59. /package/dist/runtime/{lib → composables}/collect.d.ts +0 -0
  60. /package/dist/runtime/{lib → composables}/collect.js +0 -0
  61. /package/dist/runtime/{lib → composables}/defineLightModel.d.ts +0 -0
  62. /package/dist/runtime/{lib → composables}/defineLightModel.js +0 -0
  63. /package/dist/runtime/{lib → composables}/f.d.ts +0 -0
  64. /package/dist/runtime/{lib → composables}/f.js +0 -0
  65. /package/dist/runtime/{lib → composables}/getApiUrl.d.ts +0 -0
  66. /package/dist/runtime/{lib → composables}/getCurrentUser.d.ts +0 -0
  67. /package/dist/runtime/{lib → composables}/getCurrentUser.js +0 -0
  68. /package/dist/runtime/{lib → composables}/getGQLFields.d.ts +0 -0
  69. /package/dist/runtime/{lib → composables}/getID.d.ts +0 -0
  70. /package/dist/runtime/{lib → composables}/getModelColumns.d.ts +0 -0
  71. /package/dist/runtime/{lib → composables}/getModelColumns.js +0 -0
  72. /package/dist/runtime/{lib → composables}/getModelField.d.ts +0 -0
  73. /package/dist/runtime/{lib → composables}/getModelField.js +0 -0
  74. /package/dist/runtime/{lib → composables}/getModelFields.d.ts +0 -0
  75. /package/dist/runtime/{lib → composables}/getModelFields.js +0 -0
  76. /package/dist/runtime/{lib → composables}/getObject.d.ts +0 -0
  77. /package/dist/runtime/{lib → composables}/getObject.js +0 -0
  78. /package/dist/runtime/{lib → composables}/isGranted.d.ts +0 -0
  79. /package/dist/runtime/{lib → composables}/isGranted.js +0 -0
  80. /package/dist/runtime/{lib → composables}/list.d.ts +0 -0
  81. /package/dist/runtime/{lib → composables}/list.js +0 -0
  82. /package/dist/runtime/{lib → composables}/m.d.ts +0 -0
  83. /package/dist/runtime/{lib → composables}/m.js +0 -0
  84. /package/dist/runtime/{lib → composables}/model.d.ts +0 -0
  85. /package/dist/runtime/{lib → composables}/model.js +0 -0
  86. /package/dist/runtime/{lib → composables}/q.d.ts +0 -0
  87. /package/dist/runtime/{lib → composables}/sv.d.ts +0 -0
  88. /package/dist/runtime/{lib → composables}/sv.js +0 -0
  89. /package/dist/runtime/{lib → composables}/t.d.ts +0 -0
  90. /package/dist/runtime/{lib → composables}/t.js +0 -0
  91. /package/dist/runtime/{lib → composables}/tc2sc.d.ts +0 -0
  92. /package/dist/runtime/{lib → composables}/tc2sc.js +0 -0
  93. /package/dist/runtime/{lib → composables}/toJson.d.ts +0 -0
  94. /package/dist/runtime/{lib → composables}/toJson.js +0 -0
@@ -1,6 +1,6 @@
1
1
  import type { ValidationRule } from "quasar";
2
2
  export interface LTimePickerProps {
3
- modelValue?: string | null | undefined;
3
+ modelValue?: any;
4
4
  required?: boolean;
5
5
  label?: string;
6
6
  hint?: string;
@@ -13,10 +13,10 @@ export interface LTimePickerProps {
13
13
  }
14
14
  type __VLS_Props = LTimePickerProps;
15
15
  declare const popup: import("vue").Ref<null, null>;
16
- declare const localValue: import("vue").WritableComputedRef<string | null | undefined, string | null | undefined>;
16
+ declare const localValue: import("vue").WritableComputedRef<any, any>;
17
17
  declare const rules: ValidationRule[];
18
18
  type __VLS_PublicProps = __VLS_Props & {
19
- modelValue?: string | null | undefined;
19
+ modelValue?: any;
20
20
  };
21
21
  declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
22
22
  declare var __VLS_25: string | number, __VLS_26: any;
@@ -28,22 +28,22 @@ declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
28
28
  localValue: typeof localValue;
29
29
  rules: typeof rules;
30
30
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
- "update:modelValue": (value: string | null | undefined) => any;
31
+ "update:modelValue": (value: any) => any;
32
32
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
33
- "onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
33
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
34
34
  }>, {
35
- required: boolean;
36
35
  mask: string;
36
+ required: boolean;
37
37
  hideBottomSpace: boolean;
38
38
  format24h: boolean;
39
39
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
40
40
  declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
41
- "update:modelValue": (value: string | null | undefined) => any;
41
+ "update:modelValue": (value: any) => any;
42
42
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
43
- "onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
43
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
44
44
  }>, {
45
- required: boolean;
46
45
  mask: string;
46
+ required: boolean;
47
47
  hideBottomSpace: boolean;
48
48
  format24h: boolean;
49
49
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,5 @@
1
+ import type { App } from "vue";
2
+ declare const _default: (opts: any) => {
3
+ install: (app: App) => void;
4
+ };
5
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import useLight from "./useLight.js";
2
+ export default (opts) => {
3
+ return {
4
+ install: (app) => {
5
+ const light = useLight();
6
+ app.config.globalProperties.$light = light;
7
+ light.$i18n = opts.i18n;
8
+ light.$t = opts.i18n.global.t;
9
+ }
10
+ };
11
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: () => string;
2
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { useRuntimeConfig } from "nuxt/app";
2
+ export default () => {
3
+ const config = useRuntimeConfig();
4
+ return config?.public?.apiBase ?? "/api/";
5
+ };
@@ -1,4 +1,4 @@
1
- import { getApiBase } from "./index.js";
1
+ import getApiBase from "./getApiBase.js";
2
2
  export default function getApiUrl(url, params) {
3
3
  const urlParams = new URLSearchParams(params).toString();
4
4
  return getApiBase() + `${url}?${urlParams}`;
@@ -1,4 +1,4 @@
1
- import { api } from "./index.js";
1
+ import { default as api } from "./api.js";
2
2
  export default (name, fields) => {
3
3
  return api.model(name).gqlFields(fields);
4
4
  };
@@ -1,4 +1,4 @@
1
- import { useLight } from "../light.js";
1
+ import useLight from "./useLight.js";
2
2
  export default () => {
3
3
  return useLight().getID();
4
4
  };
@@ -0,0 +1 @@
1
+ export { type LightModelField, type LightModel } from "./defineLightModel.js";
File without changes
@@ -0,0 +1 @@
1
+ export declare const notify: (message: string, color?: string) => void;
@@ -0,0 +1,8 @@
1
+ import { Notify } from "quasar";
2
+ export const notify = function(message, color = "positive") {
3
+ Notify.create({
4
+ message,
5
+ color,
6
+ position: "top"
7
+ });
8
+ };
@@ -1,7 +1,7 @@
1
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.js";
4
+ import { default as api } from "./api.js";
5
5
  export default async function(operation, args = null, fields = []) {
6
6
  let query;
7
7
  if (operation instanceof Object) {
@@ -1,5 +1,4 @@
1
1
  import type { QDialogOptions, QNotifyCreateOptions, QNotifyUpdateOptions } from 'quasar';
2
- import type { App } from "vue";
3
2
  declare module 'vue' {
4
3
  interface ComponentCustomProperties {
5
4
  $light: typeof light;
@@ -231,12 +230,12 @@ declare const light: {
231
230
  select: string;
232
231
  filter: string;
233
232
  clear: string;
234
- search: string;
235
233
  set: string;
236
- remove: string;
234
+ search: string;
237
235
  ok: string;
238
- update: string;
239
236
  create: string;
237
+ remove: string;
238
+ update: string;
240
239
  refresh: string;
241
240
  expand: (label?: string | undefined) => string;
242
241
  collapse: (label?: string | undefined) => string;
@@ -256,8 +255,8 @@ declare const light: {
256
255
  }) => string) | undefined;
257
256
  };
258
257
  table: {
259
- columns: string;
260
258
  loading: string;
259
+ columns: string;
261
260
  noData: string;
262
261
  noResults: string;
263
262
  recordsPerPage: string;
@@ -267,13 +266,13 @@ declare const light: {
267
266
  };
268
267
  editor: {
269
268
  align: string;
270
- fontSize: string;
269
+ code: string;
270
+ hr: string;
271
271
  left: string;
272
272
  right: string;
273
273
  bold: string;
274
274
  center: string;
275
- code: string;
276
- hr: string;
275
+ fontSize: string;
277
276
  url: string;
278
277
  italic: string;
279
278
  strikethrough: string;
@@ -336,9 +335,9 @@ declare const light: {
336
335
  right: string;
337
336
  };
338
337
  colorPicker: {
338
+ palette: string;
339
339
  spectrum: string;
340
340
  tune: string;
341
- palette: string;
342
341
  };
343
342
  pullToRefresh: {
344
343
  icon: string;
@@ -361,16 +360,16 @@ declare const light: {
361
360
  today: string;
362
361
  };
363
362
  editor: {
363
+ size: string;
364
364
  align: string;
365
- font: string;
366
- fontSize: string;
365
+ code: string;
366
+ hr: string;
367
367
  left: string;
368
368
  right: string;
369
369
  bold: string;
370
- size: string;
371
370
  center: string;
372
- code: string;
373
- hr: string;
371
+ font: string;
372
+ fontSize: string;
374
373
  italic: string;
375
374
  strikethrough: string;
376
375
  underline: string;
@@ -580,7 +579,7 @@ declare const light: {
580
579
  getChoiceIndex: (choice: import("vue-i18n").Choice, choicesLength: number) => number;
581
580
  };
582
581
  readonly allowComposition: boolean;
583
- install: (app: App, ...options: unknown[]) => void;
582
+ install: (app: import("vue").App, ...options: unknown[]) => void;
584
583
  dispose: () => void;
585
584
  } | null;
586
585
  company: string;
@@ -618,10 +617,7 @@ declare const light: {
618
617
  getInputProps: (props: any) => any;
619
618
  getButtonProps: (props: any) => any;
620
619
  };
621
- export declare const createLight: (opts: any) => {
622
- install: (app: App) => void;
623
- };
624
- export declare const useLight: () => {
620
+ declare const _default: () => {
625
621
  devMode: boolean;
626
622
  styles: any;
627
623
  version: string;
@@ -838,12 +834,12 @@ export declare const useLight: () => {
838
834
  select: string;
839
835
  filter: string;
840
836
  clear: string;
841
- search: string;
842
837
  set: string;
843
- remove: string;
838
+ search: string;
844
839
  ok: string;
845
- update: string;
846
840
  create: string;
841
+ remove: string;
842
+ update: string;
847
843
  refresh: string;
848
844
  expand: (label?: string | undefined) => string;
849
845
  collapse: (label?: string | undefined) => string;
@@ -863,8 +859,8 @@ export declare const useLight: () => {
863
859
  }) => string) | undefined;
864
860
  };
865
861
  table: {
866
- columns: string;
867
862
  loading: string;
863
+ columns: string;
868
864
  noData: string;
869
865
  noResults: string;
870
866
  recordsPerPage: string;
@@ -874,13 +870,13 @@ export declare const useLight: () => {
874
870
  };
875
871
  editor: {
876
872
  align: string;
877
- fontSize: string;
873
+ code: string;
874
+ hr: string;
878
875
  left: string;
879
876
  right: string;
880
877
  bold: string;
881
878
  center: string;
882
- code: string;
883
- hr: string;
879
+ fontSize: string;
884
880
  url: string;
885
881
  italic: string;
886
882
  strikethrough: string;
@@ -943,9 +939,9 @@ export declare const useLight: () => {
943
939
  right: string;
944
940
  };
945
941
  colorPicker: {
942
+ palette: string;
946
943
  spectrum: string;
947
944
  tune: string;
948
- palette: string;
949
945
  };
950
946
  pullToRefresh: {
951
947
  icon: string;
@@ -968,16 +964,16 @@ export declare const useLight: () => {
968
964
  today: string;
969
965
  };
970
966
  editor: {
967
+ size: string;
971
968
  align: string;
972
- font: string;
973
- fontSize: string;
969
+ code: string;
970
+ hr: string;
974
971
  left: string;
975
972
  right: string;
976
973
  bold: string;
977
- size: string;
978
974
  center: string;
979
- code: string;
980
- hr: string;
975
+ font: string;
976
+ fontSize: string;
981
977
  italic: string;
982
978
  strikethrough: string;
983
979
  underline: string;
@@ -1187,7 +1183,7 @@ export declare const useLight: () => {
1187
1183
  getChoiceIndex: (choice: import("vue-i18n").Choice, choicesLength: number) => number;
1188
1184
  };
1189
1185
  readonly allowComposition: boolean;
1190
- install: (app: App, ...options: unknown[]) => void;
1186
+ install: (app: import("vue").App, ...options: unknown[]) => void;
1191
1187
  dispose: () => void;
1192
1188
  } | null;
1193
1189
  company: string;
@@ -1225,4 +1221,4 @@ export declare const useLight: () => {
1225
1221
  getInputProps: (props: any) => any;
1226
1222
  getButtonProps: (props: any) => any;
1227
1223
  };
1228
- export {};
1224
+ export default _default;
@@ -1,7 +1,8 @@
1
1
  import { useQuasar } from "quasar";
2
- import packageJson from "../../package.json";
2
+ import packageJson from "../../../package.json";
3
3
  import { watch, reactive, getCurrentInstance } from "vue";
4
- import { m, q } from "./lib/index.js";
4
+ import m from "./m.js";
5
+ import q from "./q.js";
5
6
  const COLOR_CODE = {
6
7
  red: "#f44336",
7
8
  pink: "#e91e63",
@@ -264,17 +265,8 @@ const light = reactive({
264
265
  return attr;
265
266
  }
266
267
  });
267
- export const createLight = (opts) => {
268
- return {
269
- install: (app) => {
270
- app.config.globalProperties.$light = light;
271
- light.$i18n = opts.i18n;
272
- light.$t = opts.i18n.global.t;
273
- }
274
- };
275
- };
276
268
  let currentRoute = null;
277
- export const useLight = () => {
269
+ export default () => {
278
270
  if (getCurrentInstance()) {
279
271
  light.$q = useQuasar();
280
272
  }
@@ -1,6 +1,6 @@
1
1
  <script setup>
2
2
  import { reactive } from "vue";
3
- import { q, m } from "../../";
3
+ import { q, m } from "#imports";
4
4
  import { useRouter } from "vue-router";
5
5
  const obj = reactive({
6
6
  roles: []
@@ -1,6 +1,6 @@
1
1
  <script setup>
2
2
  import { useRoute } from "vue-router";
3
- import { q } from "../../../";
3
+ import { q } from "#imports";
4
4
  const route = useRoute();
5
5
  const name = route.params.name;
6
6
  const role = await q("getRole", {
@@ -2,7 +2,7 @@
2
2
  import { reactive } from "vue";
3
3
  import { useQuasar } from "quasar";
4
4
  import { useRouter } from "vue-router";
5
- import { getObject, q, m } from "../../../";
5
+ import { getObject, q, m } from "#imports";
6
6
  const quasar = useQuasar();
7
7
  const router = useRouter();
8
8
  const obj = reactive(await getObject(["user_id", "roles"]));
@@ -1,6 +1,6 @@
1
1
  <script setup>
2
2
  import { ref } from "vue";
3
- import { model, resolveComponent } from "#imports";
3
+ import { model } from "#imports";
4
4
  const onRequest = async (request) => {
5
5
  request.loadObjects("User", { status: status.value });
6
6
  };
@@ -16,7 +16,6 @@ const columns = model("User").columns({
16
16
  //_test: true,
17
17
  });
18
18
  const status = ref("0");
19
- const testDialog = null;
20
19
  </script>
21
20
 
22
21
  <template>
@@ -1,17 +1,17 @@
1
1
  import { Quasar, Dialog, Notify, Loading, AppFullscreen } from "quasar";
2
2
  import { createI18n } from "vue-i18n";
3
- import { createLight } from "./light.js";
3
+ import createLight from "./composables/createLight.js";
4
4
  import { defineNuxtPlugin } from "#app";
5
5
  import "./assets/main.css";
6
6
  import message_en from "./locales/en.json";
7
7
  import message_zh from "./locales/zh-hk.json";
8
- import { api } from "./lib/index.js";
8
+ import { default as api } from "./composables/api.js";
9
9
  localStorage.getItem("locale") || localStorage.setItem("locale", "en");
10
10
  import { createQuasarPlugin } from "formkit-quasar";
11
11
  import { createLightPlugin } from "./formkit/index.js";
12
12
  import { plugin, defaultConfig } from "@formkit/vue";
13
- import { getApiBase } from "./index.js";
14
- import { useLight } from "./light.js";
13
+ import getApiBase from "./composables/getApiBase.js";
14
+ import useLight from "./composables/useLight.js";
15
15
  import TypeUser from "./types/User.js";
16
16
  import TypeUserLog from "./types/UserLog.js";
17
17
  import TypeSystemValue from "./types/SystemValue.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.28.2",
3
+ "version": "1.28.4",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,7 +33,6 @@
33
33
  "@azure/msal-browser": "^3.26.1",
34
34
  "@formkit/drag-and-drop": "^0.2.6",
35
35
  "@hostlink/light": "^2.5.2",
36
- "@nuxt/kit": "^3.16.2",
37
36
  "@nuxt/module-builder": "^1.0.1",
38
37
  "@quasar/extras": "^1.16.11",
39
38
  "axios": "^1.5.0",
@@ -48,6 +47,7 @@
48
47
  "devDependencies": {
49
48
  "@nuxt/devtools": "latest",
50
49
  "@nuxt/eslint-config": "^0.2.0",
50
+ "@nuxt/kit": "^3.16.2",
51
51
  "@nuxt/schema": "^3.16.2",
52
52
  "@nuxt/test-utils": "^3.17.2",
53
53
  "@types/node": "^22.5.0",
@@ -1 +0,0 @@
1
- export * from "./lib/index.js";
@@ -1,25 +0,0 @@
1
- export { default as api } from "./api.js";
2
- export { default as collect } from "./collect.js";
3
- export { default as f } from "./f.js";
4
- export { default as getApiUrl } from "./getApiUrl.js";
5
- export { default as getCurrentUser } from "./getCurrentUser.js";
6
- export { default as getObject } from "./getObject.js";
7
- export { default as list } from "./list.js";
8
- export { default as m } from "./m.js";
9
- export { default as q } from "./q.js";
10
- export { default as t } from "./t.js";
11
- export { default as isGranted } from "./isGranted.js";
12
- export { default as GQLFieldBuilder } from "./GQLFieldBuilder.js";
13
- export { default as getModelField } from "./getModelField.js";
14
- export { default as getModelFields } from "./getModelFields.js";
15
- export { default as getModelColumns } from "./getModelColumns.js";
16
- export { default as sv } from "./sv.js";
17
- export { default as model } from "./model.js";
18
- export { default as defineLightModel } from "./defineLightModel.js";
19
- export { type LightModelField, type LightModel } from "./defineLightModel.js";
20
- export declare const notify: (message: string, color?: string) => void;
21
- export { default as getID } from "./getID.js";
22
- export { default as id } from "./getID.js";
23
- export declare const getApiBase: () => string;
24
- export { useLight } from "../light.js";
25
- export { default as getGQLFields } from "./getGQLFields.js";
@@ -1,35 +0,0 @@
1
- import { useRuntimeConfig } from "nuxt/app";
2
- import { Notify } from "quasar";
3
- export { default as api } from "./api.js";
4
- export { default as collect } from "./collect.js";
5
- export { default as f } from "./f.js";
6
- export { default as getApiUrl } from "./getApiUrl.js";
7
- export { default as getCurrentUser } from "./getCurrentUser.js";
8
- export { default as getObject } from "./getObject.js";
9
- export { default as list } from "./list.js";
10
- export { default as m } from "./m.js";
11
- export { default as q } from "./q.js";
12
- export { default as t } from "./t.js";
13
- export { default as isGranted } from "./isGranted.js";
14
- export { default as GQLFieldBuilder } from "./GQLFieldBuilder.js";
15
- export { default as getModelField } from "./getModelField.js";
16
- export { default as getModelFields } from "./getModelFields.js";
17
- export { default as getModelColumns } from "./getModelColumns.js";
18
- export { default as sv } from "./sv.js";
19
- export { default as model } from "./model.js";
20
- export { default as defineLightModel } from "./defineLightModel.js";
21
- export const notify = function(message, color = "positive") {
22
- Notify.create({
23
- message,
24
- color,
25
- position: "top"
26
- });
27
- };
28
- export { default as getID } from "./getID.js";
29
- export { default as id } from "./getID.js";
30
- export const getApiBase = () => {
31
- const config = useRuntimeConfig();
32
- return config?.public?.apiBase ?? "/api/";
33
- };
34
- export { useLight } from "../light.js";
35
- export { default as getGQLFields } from "./getGQLFields.js";
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
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