@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
@@ -4,7 +4,7 @@ import { useLight } from "#imports";
4
4
  import { date } from "quasar";
5
5
  import { useI18n } from "vue-i18n";
6
6
  const { t } = useI18n();
7
- const modelValue = defineModel({ type: [String, Object, null, Unknown] });
7
+ const modelValue = defineModel();
8
8
  const props = defineProps({
9
9
  label: { type: String, required: false },
10
10
  required: { type: Boolean, required: false },
@@ -1,7 +1,3 @@
1
- interface DateRange {
2
- from: string;
3
- to: string;
4
- }
5
1
  export interface LDatePickerProps {
6
2
  label?: string;
7
3
  required?: boolean;
@@ -21,8 +17,8 @@ export interface LDatePickerProps {
21
17
  }
22
18
  type __VLS_Props = LDatePickerProps;
23
19
  declare const popup: import("vue").Ref<any, any>;
24
- declare const localValue: import("vue").WritableComputedRef<string | null | undefined, string | Object>;
25
- declare const dateValue: import("vue").WritableComputedRef<import("vue").ModelRef<string | DateRange | null | undefined, string, string | DateRange | null | undefined, string | DateRange | null | undefined>, string>;
20
+ declare const localValue: import("vue").WritableComputedRef<any, string | Object>;
21
+ declare const dateValue: import("vue").WritableComputedRef<import("vue").ModelRef<any, string, any, any>, string>;
26
22
  declare const input_attrs: import("vue").ComputedRef<any>;
27
23
  declare const date_attrs: import("vue").ComputedRef<{
28
24
  required: boolean;
@@ -32,7 +28,7 @@ declare const date_attrs: import("vue").ComputedRef<{
32
28
  disable: boolean;
33
29
  }>;
34
30
  type __VLS_PublicProps = __VLS_Props & {
35
- modelValue?: string | DateRange | null | undefined;
31
+ modelValue?: any;
36
32
  };
37
33
  declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
38
34
  declare var __VLS_25: string | number, __VLS_26: any;
@@ -46,37 +42,37 @@ declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
46
42
  input_attrs: typeof input_attrs;
47
43
  date_attrs: typeof date_attrs;
48
44
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
49
- "update:modelValue": (value: string | DateRange | null | undefined) => any;
45
+ "update:modelValue": (value: any) => any;
50
46
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
51
- "onUpdate:modelValue"?: ((value: string | DateRange | null | undefined) => any) | undefined;
47
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
52
48
  }>, {
53
49
  dense: boolean;
54
- square: boolean;
55
- mask: string;
56
50
  rounded: boolean;
51
+ square: boolean;
57
52
  disable: boolean;
58
- outlined: boolean;
53
+ mask: string;
54
+ hideBottomSpace: boolean;
59
55
  filled: boolean;
60
- stackLabel: boolean;
56
+ outlined: boolean;
61
57
  standout: boolean;
62
- hideBottomSpace: boolean;
58
+ stackLabel: boolean;
63
59
  range: boolean;
64
60
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
65
61
  declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
66
- "update:modelValue": (value: string | DateRange | null | undefined) => any;
62
+ "update:modelValue": (value: any) => any;
67
63
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
68
- "onUpdate:modelValue"?: ((value: string | DateRange | null | undefined) => any) | undefined;
64
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
69
65
  }>, {
70
66
  dense: boolean;
71
- square: boolean;
72
- mask: string;
73
67
  rounded: boolean;
68
+ square: boolean;
74
69
  disable: boolean;
75
- outlined: boolean;
70
+ mask: string;
71
+ hideBottomSpace: boolean;
76
72
  filled: boolean;
77
- stackLabel: boolean;
73
+ outlined: boolean;
78
74
  standout: boolean;
79
- hideBottomSpace: boolean;
75
+ stackLabel: boolean;
80
76
  range: boolean;
81
77
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
82
78
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -1,5 +1,5 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
- $emit: (event: "hide" | "ok", ...args: any[]) => void;
2
+ $emit: (event: "ok" | "hide", ...args: any[]) => void;
3
3
  $props: {};
4
4
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
5
5
  export default _default;
@@ -8,8 +8,8 @@ declare const _default: import("vue").DefineComponent<LEditorProps, {}, {}, {},
8
8
  }>, {
9
9
  dense: boolean;
10
10
  modelValue: string;
11
- placeholder: string;
12
11
  fonts: any | undefined;
13
12
  toolbar: readonly any[];
13
+ placeholder: string;
14
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
15
  export default _default;
@@ -1,9 +1,9 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
- value?: any;
3
2
  dense?: any;
3
+ value?: any;
4
4
  $props: {
5
- readonly value?: any;
6
5
  readonly dense?: any;
6
+ readonly value?: any;
7
7
  };
8
8
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
9
9
  export default _default;
@@ -7,24 +7,24 @@ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$
7
7
  declare const __VLS_self: import("vue").DefineComponent<QFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<QFieldProps> & Readonly<{}>, {
8
8
  dense: boolean;
9
9
  dark: boolean | null;
10
- square: boolean;
11
10
  rounded: boolean;
12
- outlined: boolean;
11
+ square: boolean;
12
+ hideBottomSpace: boolean;
13
13
  filled: boolean;
14
- stackLabel: boolean;
14
+ outlined: boolean;
15
15
  standout: string | boolean;
16
- hideBottomSpace: boolean;
16
+ stackLabel: boolean;
17
17
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
18
  declare const __VLS_component: import("vue").DefineComponent<QFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<QFieldProps> & Readonly<{}>, {
19
19
  dense: boolean;
20
20
  dark: boolean | null;
21
- square: boolean;
22
21
  rounded: boolean;
23
- outlined: boolean;
22
+ square: boolean;
23
+ hideBottomSpace: boolean;
24
24
  filled: boolean;
25
- stackLabel: boolean;
25
+ outlined: boolean;
26
26
  standout: string | boolean;
27
- hideBottomSpace: boolean;
27
+ stackLabel: boolean;
28
28
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
29
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
30
30
  export default _default;
@@ -1,16 +1,16 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
2
  $emit: (event: "close" | "input", ...args: any[]) => void;
3
- height: string;
4
- multiple: boolean;
5
3
  base: string;
6
4
  closeable: boolean;
5
+ height: string;
7
6
  defaultAction: string;
7
+ multiple: boolean;
8
8
  $props: {
9
- readonly height?: string | undefined;
10
- readonly multiple?: boolean | undefined;
11
9
  readonly base?: string | undefined;
12
10
  readonly closeable?: boolean | undefined;
11
+ readonly height?: string | undefined;
13
12
  readonly defaultAction?: string | undefined;
13
+ readonly multiple?: boolean | undefined;
14
14
  };
15
15
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
16
16
  export default _default;
@@ -96,14 +96,14 @@ declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
96
96
  }>, {
97
97
  path: string;
98
98
  dense: boolean;
99
- square: boolean;
100
99
  rounded: boolean;
101
- outlined: boolean;
100
+ square: boolean;
102
101
  filled: boolean;
103
- stackLabel: boolean;
102
+ outlined: boolean;
104
103
  standout: boolean;
105
- accept: string;
104
+ stackLabel: boolean;
106
105
  driveIndex: number;
106
+ accept: string;
107
107
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
108
108
  declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
109
109
  "update:modelValue": (value: any) => any;
@@ -112,14 +112,14 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
112
112
  }>, {
113
113
  path: string;
114
114
  dense: boolean;
115
- square: boolean;
116
115
  rounded: boolean;
117
- outlined: boolean;
116
+ square: boolean;
118
117
  filled: boolean;
119
- stackLabel: boolean;
118
+ outlined: boolean;
120
119
  standout: boolean;
121
- accept: string;
120
+ stackLabel: boolean;
122
121
  driveIndex: number;
122
+ accept: string;
123
123
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
124
124
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
125
125
  export default _default;
@@ -15,11 +15,11 @@ declare const _default: import("vue").DefineComponent<LFileProps, {}, {}, {}, {}
15
15
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
16
16
  }>, {
17
17
  dense: boolean;
18
- square: boolean;
19
18
  rounded: boolean;
20
- outlined: boolean;
19
+ square: boolean;
21
20
  filled: boolean;
22
- stackLabel: boolean;
21
+ outlined: boolean;
23
22
  standout: boolean;
23
+ stackLabel: boolean;
24
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
25
  export default _default;
@@ -6,16 +6,16 @@ type __VLS_WithSlots<T, S> = T & (new () => {
6
6
  declare const __VLS_component: import("vue").DefineComponent<{}, {
7
7
  $emit: (event: "submit", ...args: any[]) => void;
8
8
  cancel: Function;
9
- value: Record<string, any>;
10
9
  title: string;
11
10
  width: string;
11
+ value: Record<string, any>;
12
12
  save: Function;
13
13
  showNotification: boolean;
14
14
  $props: {
15
15
  readonly cancel?: Function | undefined;
16
- readonly value?: Record<string, any> | undefined;
17
16
  readonly title?: string | undefined;
18
17
  readonly width?: string | undefined;
18
+ readonly value?: Record<string, any> | undefined;
19
19
  readonly save?: Function | undefined;
20
20
  readonly showNotification?: boolean | undefined;
21
21
  };
@@ -1,7 +1,7 @@
1
1
  <script setup>
2
2
  import { computed, ref } from "vue";
3
3
  import { useI18n } from "vue-i18n";
4
- import tc2sc from "../lib/tc2sc";
4
+ import tc2sc from "../composables/tc2sc";
5
5
  const { t } = useI18n();
6
6
  const props = defineProps({
7
7
  showPassword: { type: Boolean, required: false },
@@ -6,7 +6,7 @@ export interface LInputProps extends QInputProps {
6
6
  }
7
7
  declare const new_rules: import("quasar").ValidationRule[];
8
8
  declare const isShowPassword: import("vue").Ref<boolean, boolean>;
9
- declare const localType: import("vue").ComputedRef<"number" | "search" | "textarea" | "time" | "text" | "date" | "url" | "email" | "file" | "datetime-local" | "password" | "tel" | undefined>;
9
+ declare const localType: import("vue").ComputedRef<"number" | "textarea" | "time" | "text" | "search" | "date" | "url" | "email" | "file" | "datetime-local" | "password" | "tel" | undefined>;
10
10
  declare const localShowPassword: import("vue").ComputedRef<boolean>;
11
11
  declare const onClickTc2Sc: () => void;
12
12
  declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
@@ -23,24 +23,24 @@ declare const __VLS_self: import("vue").DefineComponent<LInputProps, {
23
23
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LInputProps> & Readonly<{}>, {
24
24
  dense: boolean;
25
25
  dark: boolean | null;
26
- square: boolean;
27
26
  rounded: boolean;
28
- outlined: boolean;
27
+ square: boolean;
28
+ hideBottomSpace: boolean;
29
29
  filled: boolean;
30
- stackLabel: boolean;
30
+ outlined: boolean;
31
31
  standout: string | boolean;
32
- hideBottomSpace: boolean;
32
+ stackLabel: boolean;
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
34
  declare const __VLS_component: import("vue").DefineComponent<LInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LInputProps> & Readonly<{}>, {
35
35
  dense: boolean;
36
36
  dark: boolean | null;
37
- square: boolean;
38
37
  rounded: boolean;
39
- outlined: boolean;
38
+ square: boolean;
39
+ hideBottomSpace: boolean;
40
40
  filled: boolean;
41
- stackLabel: boolean;
41
+ outlined: boolean;
42
42
  standout: string | boolean;
43
- hideBottomSpace: boolean;
43
+ stackLabel: boolean;
44
44
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
45
45
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
46
46
  export default _default;
@@ -1,9 +1,9 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
- value?: any;
3
2
  dense?: any;
3
+ value?: any;
4
4
  $props: {
5
- readonly value?: any;
6
5
  readonly dense?: any;
6
+ readonly value?: any;
7
7
  };
8
8
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
9
9
  export default _default;
@@ -1,7 +1,8 @@
1
1
  <script setup>
2
2
  import { useHead, useLight } from "#imports";
3
3
  import { useRouter, useRoute } from "vue-router";
4
- import { model, getID } from "../";
4
+ import model from "../composables/model";
5
+ import getID from "../composables/getID";
5
6
  import { computed } from "vue";
6
7
  const router = useRouter();
7
8
  const route = useRoute();
@@ -25,14 +25,14 @@ declare const __VLS_self: import("vue").DefineComponent<LPageProps, {
25
25
  onDelete: typeof onDelete;
26
26
  localClass: typeof localClass;
27
27
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LPageProps> & Readonly<{}>, {
28
- title: string;
29
28
  padding: boolean;
29
+ title: string;
30
30
  gutter: "none" | "xs" | "sm" | "md" | "lg" | "xl";
31
31
  backBtn: boolean;
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
33
  declare const __VLS_component: import("vue").DefineComponent<LPageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LPageProps> & Readonly<{}>, {
34
- title: string;
35
34
  padding: boolean;
35
+ title: string;
36
36
  gutter: "none" | "xs" | "sm" | "md" | "lg" | "xl";
37
37
  backBtn: boolean;
38
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,13 +1,13 @@
1
1
  import type { QSelectProps } from "quasar";
2
2
  declare const _default: import("vue").DefineComponent<QSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<QSelectProps> & Readonly<{}>, {
3
3
  dense: boolean;
4
- square: boolean;
5
4
  rounded: boolean;
6
- outlined: boolean;
5
+ square: boolean;
6
+ hideBottomSpace: boolean;
7
7
  filled: boolean;
8
- stackLabel: boolean;
8
+ outlined: boolean;
9
9
  standout: string | boolean;
10
- hideBottomSpace: boolean;
10
+ stackLabel: boolean;
11
11
  emitValue: boolean;
12
12
  mapOptions: boolean;
13
13
  optionValue: string | ((option: string | any) => any);
@@ -1,7 +1,9 @@
1
1
  <script setup>
2
2
  import { useQuasar, QTable, Dialog } from "quasar";
3
- import { ref, computed, onMounted, useSlots, watch } from "vue";
4
- import { useLight, GQLFieldBuilder, model } from "../";
3
+ import { ref, computed, onMounted, useSlots, watch, reactive } from "vue";
4
+ import useLight from "../composables/useLight";
5
+ import GQLFieldBuilder from "../composables/GQLFieldBuilder";
6
+ import model from "../composables/model";
5
7
  import { toQuery } from "@hostlink/light";
6
8
  import { collect } from "#imports";
7
9
  import { useI18n } from "vue-i18n";
@@ -93,7 +95,7 @@ const props = defineProps({
93
95
  actions: { type: Array, required: false, default: () => [] },
94
96
  sortBy: { type: null, required: false },
95
97
  modelName: { type: null, required: false },
96
- searchable: { type: [Boolean, null], required: false, skipCheck: true, default: false },
98
+ searchable: { type: null, required: false, default: false },
97
99
  maximizable: { type: Boolean, required: false, default: false },
98
100
  minimizable: { type: Boolean, required: false, default: false },
99
101
  onRequestData: { type: Function, required: false },
@@ -146,7 +148,7 @@ const hasSearch = computed(() => {
146
148
  });
147
149
  });
148
150
  const table = ref();
149
- const filters = ref({});
151
+ const filters = reactive({});
150
152
  const rows = ref(props.rows);
151
153
  if (rows.value == void 0) {
152
154
  rows.value = [];
@@ -303,23 +305,23 @@ const getFilterValue = () => {
303
305
  let f = {};
304
306
  props.columns?.forEach((col) => {
305
307
  if (col.searchable) {
306
- if (filters.value[col.name] !== null && filters.value[col.name] !== "" && filters.value[col.name] !== void 0) {
308
+ if (filters[col.name] !== null && filters[col.name] !== "" && filters[col.name] !== void 0) {
307
309
  if (col.searchType == "number") {
308
- f[col.name] = filters.value[col.name];
310
+ f[col.name] = filters[col.name];
309
311
  } else if (col.searchType == "date") {
310
- if (filters.value[col.name].from) {
312
+ if (filters[col.name].from) {
311
313
  f[col.name] = {
312
- between: [filters.value[col.name].from, filters.value[col.name].to]
314
+ between: [filters[col.name].from, filters[col.name].to]
313
315
  };
314
316
  }
315
317
  } else if (col.searchType == "select") {
316
- f[col.name] = filters.value[col.name];
318
+ f[col.name] = filters[col.name];
317
319
  } else {
318
320
  if (col.searchMethod == "equals") {
319
- f[col.name] = filters.value[col.name];
321
+ f[col.name] = filters[col.name];
320
322
  } else {
321
323
  f[col.name] = {
322
- contains: filters.value[col.name]
324
+ contains: filters[col.name]
323
325
  };
324
326
  }
325
327
  }
@@ -15,10 +15,10 @@ declare const errors: import("vue").Ref<any, any>;
15
15
  export type LTableProps = QTableProps & {
16
16
  columns?: Array<LTableColumn>;
17
17
  actions?: Array<string>;
18
- sortBy?: string | null | undefined;
18
+ sortBy?: any;
19
19
  rowKey?: string;
20
- modelName?: string | null | undefined;
21
- searchable?: boolean | null | undefined;
20
+ modelName?: any;
21
+ searchable?: any;
22
22
  selected?: Array<any>;
23
23
  maximizable?: boolean;
24
24
  minimizable?: boolean;
@@ -89,10 +89,10 @@ declare let actionView: boolean;
89
89
  declare let actionDelete: boolean;
90
90
  declare const hasSearch: import("vue").ComputedRef<boolean | undefined>;
91
91
  declare const table: import("vue").Ref<QTable | undefined, QTable | undefined>;
92
- declare const filters: import("vue").Ref<any, any>;
92
+ declare const filters: any;
93
93
  declare const rows: import("vue").Ref<any, any>;
94
94
  declare let primaryKey: import("vue").Ref<string | (((row: any) => any) & string) | undefined, string | (((row: any) => any) & string) | undefined>;
95
- declare const modelName: import("vue").Ref<string | null | undefined, string | null | undefined>;
95
+ declare const modelName: import("vue").Ref<any, any>;
96
96
  declare const onLocalRequest: (p: any) => Promise<void>;
97
97
  declare const onFilters: () => void;
98
98
  declare const ss: string[];
@@ -154,25 +154,26 @@ declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
154
154
  onAdd: typeof onAdd;
155
155
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
156
156
  delete: (p: any) => any;
157
- "request-data": (p: LTableRequest) => any;
158
- "update:selected": (p: any[]) => any;
159
157
  "update:minimized": (value: boolean) => any;
160
158
  "update:maximized": (value: boolean) => any;
159
+ "request-data": (p: LTableRequest) => any;
160
+ "update:selected": (p: any[]) => any;
161
161
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
162
162
  onDelete?: ((p: any) => any) | undefined;
163
- "onRequest-data"?: ((p: LTableRequest) => any) | undefined;
164
- "onUpdate:selected"?: ((p: any[]) => any) | undefined;
165
163
  "onUpdate:minimized"?: ((value: boolean) => any) | undefined;
166
164
  "onUpdate:maximized"?: ((value: boolean) => any) | undefined;
165
+ "onRequest-data"?: ((p: LTableRequest) => any) | undefined;
166
+ "onUpdate:selected"?: ((p: any[]) => any) | undefined;
167
167
  }>, {
168
168
  flat: boolean;
169
- fullscreen: boolean;
170
169
  dense: boolean;
171
170
  dark: boolean | null;
172
171
  bordered: boolean;
173
- noDataLabel: string;
174
- loadingLabel: string;
175
- rowsPerPageLabel: string;
172
+ fullscreen: boolean;
173
+ minimizable: boolean;
174
+ maximizable: boolean;
175
+ selected: any[];
176
+ actions: Array<string>;
176
177
  pagination: {
177
178
  sortBy?: string | null;
178
179
  descending?: boolean;
@@ -180,37 +181,37 @@ declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
180
181
  rowsPerPage?: number;
181
182
  rowsNumber?: number;
182
183
  };
184
+ selection: "none" | "multiple" | "single";
185
+ loadingLabel: string;
186
+ noDataLabel: string;
187
+ rowsPerPageLabel: string;
183
188
  rowsPerPageOptions: readonly any[];
184
- selection: "none" | "single" | "multiple";
185
- selected: any[];
186
- actions: Array<string>;
187
- searchable: boolean | null;
188
- maximizable: boolean;
189
- minimizable: boolean;
189
+ searchable: any;
190
190
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
191
191
  declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
192
192
  requestServerInteraction: typeof requestServerInteraction;
193
193
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
194
194
  delete: (p: any) => any;
195
- "request-data": (p: LTableRequest) => any;
196
- "update:selected": (p: any[]) => any;
197
195
  "update:minimized": (value: boolean) => any;
198
196
  "update:maximized": (value: boolean) => any;
197
+ "request-data": (p: LTableRequest) => any;
198
+ "update:selected": (p: any[]) => any;
199
199
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
200
200
  onDelete?: ((p: any) => any) | undefined;
201
- "onRequest-data"?: ((p: LTableRequest) => any) | undefined;
202
- "onUpdate:selected"?: ((p: any[]) => any) | undefined;
203
201
  "onUpdate:minimized"?: ((value: boolean) => any) | undefined;
204
202
  "onUpdate:maximized"?: ((value: boolean) => any) | undefined;
203
+ "onRequest-data"?: ((p: LTableRequest) => any) | undefined;
204
+ "onUpdate:selected"?: ((p: any[]) => any) | undefined;
205
205
  }>, {
206
206
  flat: boolean;
207
- fullscreen: boolean;
208
207
  dense: boolean;
209
208
  dark: boolean | null;
210
209
  bordered: boolean;
211
- noDataLabel: string;
212
- loadingLabel: string;
213
- rowsPerPageLabel: string;
210
+ fullscreen: boolean;
211
+ minimizable: boolean;
212
+ maximizable: boolean;
213
+ selected: any[];
214
+ actions: Array<string>;
214
215
  pagination: {
215
216
  sortBy?: string | null;
216
217
  descending?: boolean;
@@ -218,13 +219,12 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
218
219
  rowsPerPage?: number;
219
220
  rowsNumber?: number;
220
221
  };
222
+ selection: "none" | "multiple" | "single";
223
+ loadingLabel: string;
224
+ noDataLabel: string;
225
+ rowsPerPageLabel: string;
221
226
  rowsPerPageOptions: readonly any[];
222
- selection: "none" | "single" | "multiple";
223
- selected: any[];
224
- actions: Array<string>;
225
- searchable: boolean | null;
226
- maximizable: boolean;
227
- minimizable: boolean;
227
+ searchable: any;
228
228
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
229
229
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
230
230
  export default _default;
@@ -1,6 +1,5 @@
1
1
  <script setup>
2
2
  import { useSlots } from "#imports";
3
- const model = defineModel({ type: [String, Number, null, Unknown] });
4
3
  defineProps({
5
4
  modelValue: { type: null, required: false },
6
5
  vertical: { type: Boolean, required: false, skipCheck: true },
@@ -25,18 +24,19 @@ defineProps({
25
24
  "onUpdate:modelValue": { type: Function, required: false }
26
25
  });
27
26
  const slots = useSlots();
28
- if (model.value === void 0) {
29
- model.value = slots.default?.()[0]?.props?.name;
27
+ const modelValue = defineModel();
28
+ if (modelValue.value === void 0) {
29
+ modelValue.value = slots.default?.()[0]?.props?.name;
30
30
  }
31
31
  </script>
32
32
 
33
33
  <template>
34
34
  <l-card>
35
35
  <q-tabs class="text-grey" :active-color="$light.color" :indicator-color="$light.color" align="justify"
36
- v-model="model">
36
+ v-model="modelValue">
37
37
  <slot></slot>
38
38
  </q-tabs>
39
- <q-tab-panels v-model="model">
39
+ <q-tab-panels v-model="modelValue">
40
40
  <slot></slot>
41
41
  </q-tab-panels>
42
42
  </l-card>
@@ -1,10 +1,10 @@
1
1
  import type { QTabsProps } from 'quasar';
2
- declare const model: import("vue").ModelRef<string | number | null | undefined, string, string | number | null | undefined, string | number | null | undefined>;
3
2
  export interface LTabsProps extends QTabsProps {
4
3
  }
5
4
  type __VLS_Props = LTabsProps;
5
+ declare const modelValue: import("vue").ModelRef<any, string, any, any>;
6
6
  type __VLS_PublicProps = __VLS_Props & {
7
- modelValue?: string | number | null | undefined;
7
+ modelValue?: any;
8
8
  };
9
9
  declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
10
10
  declare var __VLS_10: {}, __VLS_16: {};
@@ -14,16 +14,16 @@ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$
14
14
  default?: (props: typeof __VLS_16) => any;
15
15
  }>;
16
16
  declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
17
- model: typeof model;
17
+ modelValue: typeof modelValue;
18
18
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
- "update:modelValue": (value: string | number | null | undefined) => any;
19
+ "update:modelValue": (value: any) => any;
20
20
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
21
- "onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
21
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
22
22
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
23
  declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
- "update:modelValue": (value: string | number | null | undefined) => any;
24
+ "update:modelValue": (value: any) => any;
25
25
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
26
- "onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
26
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
27
27
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
28
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
29
29
  export default _default;
@@ -4,7 +4,7 @@ import { useLight } from "#imports";
4
4
  import { useI18n } from "vue-i18n";
5
5
  const light = useLight();
6
6
  const { t } = useI18n();
7
- const modelValue = defineModel({ type: [String, null, Unknown] });
7
+ const modelValue = defineModel();
8
8
  const props = defineProps({
9
9
  modelValue: { type: null, required: false },
10
10
  required: { type: Boolean, required: false, default: false },