@hostlink/nuxt-light 1.31.3 → 1.32.1

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 (51) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/L/Fieldset.vue.d.ts +3 -1
  3. package/dist/runtime/components/L/ForgetPasswordDialog.vue +6 -5
  4. package/dist/runtime/components/l-alert.vue.d.ts +3 -1
  5. package/dist/runtime/components/l-app-main.vue +6 -6
  6. package/dist/runtime/components/l-app-main.vue.d.ts +2 -84
  7. package/dist/runtime/components/l-app.vue.d.ts +3 -1
  8. package/dist/runtime/components/l-banner.vue.d.ts +2 -16
  9. package/dist/runtime/components/l-bar.vue.d.ts +2 -12
  10. package/dist/runtime/components/l-btn.vue.d.ts +2 -53
  11. package/dist/runtime/components/l-card.vue.d.ts +2 -44
  12. package/dist/runtime/components/l-checkbox.vue.d.ts +2 -4
  13. package/dist/runtime/components/l-col.vue.d.ts +2 -15
  14. package/dist/runtime/components/l-date-picker.vue +1 -1
  15. package/dist/runtime/components/l-date-picker.vue.d.ts +2 -37
  16. package/dist/runtime/components/l-drag-drop-group.vue.d.ts +3 -1
  17. package/dist/runtime/components/l-field.vue.d.ts +2 -14
  18. package/dist/runtime/components/l-file-upload.vue.d.ts +2 -87
  19. package/dist/runtime/components/l-form-dialog.vue.d.ts +3 -1
  20. package/dist/runtime/components/l-form.vue.d.ts +2 -75
  21. package/dist/runtime/components/l-input.vue +1 -1
  22. package/dist/runtime/components/l-input.vue.d.ts +2 -29
  23. package/dist/runtime/components/l-item.vue.d.ts +2 -8
  24. package/dist/runtime/components/l-link.vue.d.ts +3 -1
  25. package/dist/runtime/components/l-list.vue.d.ts +2 -11
  26. package/dist/runtime/components/l-login.vue +11 -10
  27. package/dist/runtime/components/l-page.vue.d.ts +2 -18
  28. package/dist/runtime/components/l-row.vue.d.ts +2 -6
  29. package/dist/runtime/components/l-tab.vue.d.ts +2 -7
  30. package/dist/runtime/components/l-table.vue +4 -0
  31. package/dist/runtime/components/l-table.vue.d.ts +3 -106
  32. package/dist/runtime/components/l-tabs.vue +1 -1
  33. package/dist/runtime/components/l-tabs.vue.d.ts +2 -11
  34. package/dist/runtime/components/l-time-picker.vue +1 -1
  35. package/dist/runtime/components/l-time-picker.vue.d.ts +2 -21
  36. package/dist/runtime/formkit/Checkbox.vue.d.ts +4 -1
  37. package/dist/runtime/formkit/DatePicker.vue.d.ts +4 -1
  38. package/dist/runtime/formkit/Editor.vue.d.ts +3 -1
  39. package/dist/runtime/formkit/File.vue.d.ts +4 -1
  40. package/dist/runtime/formkit/FilePicker.vue.d.ts +4 -1
  41. package/dist/runtime/formkit/FileUpload.vue.d.ts +4 -1
  42. package/dist/runtime/formkit/Form.vue.d.ts +2 -23
  43. package/dist/runtime/formkit/GroupSelect.vue.d.ts +4 -1
  44. package/dist/runtime/formkit/Input.vue.d.ts +2 -24
  45. package/dist/runtime/formkit/InputXlsx.vue.d.ts +3 -1
  46. package/dist/runtime/formkit/Radio.vue.d.ts +3 -1
  47. package/dist/runtime/formkit/Repeater.vue.d.ts +7 -1
  48. package/dist/runtime/formkit/Select.vue.d.ts +4 -1
  49. package/dist/runtime/formkit/TimePicker.vue.d.ts +4 -1
  50. package/dist/runtime/formkit/Toggle.vue.d.ts +2 -11
  51. package/package.json +3 -3
@@ -1,80 +1,7 @@
1
- declare const form: import("vue").Ref<null, null>;
2
- declare const loading: import("vue").Ref<boolean, boolean>;
3
- declare const save: () => Promise<void>;
4
- declare const onSubmit: (e: any) => void;
5
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
6
1
  declare var __VLS_19: {};
7
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
2
+ type __VLS_Slots = {} & {
8
3
  default?: (props: typeof __VLS_19) => any;
9
- }>;
10
- declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
11
- modelValue: {
12
- type: ObjectConstructor;
13
- };
14
- bordered: {
15
- type: BooleanConstructor;
16
- default: boolean;
17
- };
18
- gutter: {
19
- type: StringConstructor;
20
- default: string;
21
- };
22
- submitLabel: {
23
- type: StringConstructor;
24
- default: string;
25
- };
26
- submitIcon: {
27
- type: StringConstructor;
28
- default: string;
29
- };
30
- noRedirect: {
31
- type: BooleanConstructor;
32
- default: boolean;
33
- };
34
- }>, {
35
- form: typeof form;
36
- loading: typeof loading;
37
- save: typeof save;
38
- onSubmit: typeof onSubmit;
39
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
40
- submit: (...args: any[]) => void;
41
- save: (...args: any[]) => void;
42
- submitted: (...args: any[]) => void;
43
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
44
- modelValue: {
45
- type: ObjectConstructor;
46
- };
47
- bordered: {
48
- type: BooleanConstructor;
49
- default: boolean;
50
- };
51
- gutter: {
52
- type: StringConstructor;
53
- default: string;
54
- };
55
- submitLabel: {
56
- type: StringConstructor;
57
- default: string;
58
- };
59
- submitIcon: {
60
- type: StringConstructor;
61
- default: string;
62
- };
63
- noRedirect: {
64
- type: BooleanConstructor;
65
- default: boolean;
66
- };
67
- }>> & Readonly<{
68
- onSubmit?: ((...args: any[]) => any) | undefined;
69
- onSave?: ((...args: any[]) => any) | undefined;
70
- onSubmitted?: ((...args: any[]) => any) | undefined;
71
- }>, {
72
- bordered: boolean;
73
- gutter: string;
74
- submitLabel: string;
75
- submitIcon: string;
76
- noRedirect: boolean;
77
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4
+ };
78
5
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
79
6
  modelValue: {
80
7
  type: ObjectConstructor;
@@ -60,7 +60,7 @@ const props = defineProps({
60
60
  onBlur: { type: Function, required: false },
61
61
  onClear: { type: Function, required: false }
62
62
  });
63
- const modelValue = defineModel();
63
+ const modelValue = defineModel({ type: null });
64
64
  const new_rules = Array.isArray(props.rules) ? [...props.rules] : [];
65
65
  if (props.required) {
66
66
  new_rules.push((val) => !!val || t("input_required", [t(props.label ?? "")]));
@@ -5,40 +5,13 @@ export interface LInputProps extends QInputProps {
5
5
  required?: boolean;
6
6
  }
7
7
  type __VLS_Props = LInputProps;
8
- declare const new_rules: import("quasar").ValidationRule[];
9
- declare const isShowPassword: import("vue").Ref<boolean, boolean>;
10
- declare const localType: import("vue").ComputedRef<"number" | "textarea" | "time" | "text" | "search" | "date" | "url" | "email" | "file" | "datetime-local" | "password" | "tel" | undefined>;
11
- declare const localShowPassword: import("vue").ComputedRef<boolean>;
12
- declare const onClickTc2Sc: () => void;
13
8
  type __VLS_PublicProps = __VLS_Props & {
14
9
  modelValue?: any;
15
10
  };
16
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
17
11
  declare var __VLS_31: string | number, __VLS_32: any;
18
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
12
+ type __VLS_Slots = {} & {
19
13
  [K in NonNullable<typeof __VLS_31>]?: (props: typeof __VLS_32) => any;
20
- }>;
21
- declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
22
- new_rules: typeof new_rules;
23
- isShowPassword: typeof isShowPassword;
24
- localType: typeof localType;
25
- localShowPassword: typeof localShowPassword;
26
- onClickTc2Sc: typeof onClickTc2Sc;
27
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
- "update:modelValue": (value: any) => any;
29
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
30
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
31
- }>, {
32
- dense: boolean;
33
- dark: boolean | null;
34
- rounded: boolean;
35
- square: boolean;
36
- hideBottomSpace: boolean;
37
- filled: boolean;
38
- outlined: boolean;
39
- standout: string | boolean;
40
- stackLabel: boolean;
41
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ };
42
15
  declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
43
16
  "update:modelValue": (value: any) => any;
44
17
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
@@ -6,20 +6,14 @@ export interface LItemProps extends QItemProps {
6
6
  labelTop?: boolean;
7
7
  alignItems?: 'flex-start' | 'center' | 'flex-end';
8
8
  }
9
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
10
9
  declare var __VLS_10: {}, __VLS_24: {}, __VLS_30: {};
11
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
10
+ type __VLS_Slots = {} & {
12
11
  avatar?: (props: typeof __VLS_10) => any;
13
12
  } & {
14
13
  default?: (props: typeof __VLS_24) => any;
15
14
  } & {
16
15
  end?: (props: typeof __VLS_30) => any;
17
- }>;
18
- declare const __VLS_self: import("vue").DefineComponent<LItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LItemProps> & Readonly<{}>, {
19
- alignItems: "flex-start" | "center" | "flex-end";
20
- top: boolean;
21
- labelTop: boolean;
22
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ };
23
17
  declare const __VLS_component: import("vue").DefineComponent<LItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LItemProps> & Readonly<{}>, {
24
18
  alignItems: "flex-start" | "center" | "flex-end";
25
19
  top: boolean;
@@ -11,4 +11,6 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
11
11
  readonly to?: string | undefined;
12
12
  };
13
13
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
14
- type __VLS_Slots = any;
14
+ type __VLS_Slots = {
15
+ default?: ((props: {}) => any) | undefined;
16
+ };
@@ -3,19 +3,10 @@ export interface LListProps extends QListProps {
3
3
  fields?: any[];
4
4
  modelValue?: any;
5
5
  }
6
- declare function getTo(field: any): any;
7
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
8
6
  declare var __VLS_10: {};
9
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
7
+ type __VLS_Slots = {} & {
10
8
  default?: (props: typeof __VLS_10) => any;
11
- }>;
12
- declare const __VLS_self: import("vue").DefineComponent<LListProps, {
13
- getTo: typeof getTo;
14
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LListProps> & Readonly<{}>, {
15
- dense: boolean;
16
- bordered: boolean;
17
- separator: boolean;
18
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ };
19
10
  declare const __VLS_component: import("vue").DefineComponent<LListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LListProps> & Readonly<{}>, {
20
11
  dense: boolean;
21
12
  bordered: boolean;
@@ -100,7 +100,7 @@ const submit = async () => {
100
100
  }
101
101
  }
102
102
  };
103
- const resetPassword = (username, code) => {
103
+ const resetPassword = (jwt, code) => {
104
104
  $q.dialog({
105
105
  title: t("Reset password"),
106
106
  message: t("Please enter your new password"),
@@ -115,7 +115,7 @@ const resetPassword = (username, code) => {
115
115
  persistent: true
116
116
  }).onOk(async (password) => {
117
117
  try {
118
- await api.auth.resetPassword(username, password, code);
118
+ await api.auth.resetPassword(jwt, password, code);
119
119
  $q.notify({
120
120
  message: t("Your password has been reset successfully"),
121
121
  color: "positive",
@@ -127,7 +127,7 @@ const resetPassword = (username, code) => {
127
127
  color: "negative",
128
128
  icon: "sym_o_error"
129
129
  });
130
- resetPassword(username, code);
130
+ resetPassword(jwt, code);
131
131
  }
132
132
  });
133
133
  };
@@ -146,8 +146,8 @@ const forgetPassword = async () => {
146
146
  cancel: true,
147
147
  persistent: true
148
148
  }).onOk(async (code) => {
149
- if (await api.auth.verifyCode(data2.username, code)) {
150
- resetPassword(data2.username, code);
149
+ if (await api.auth.verifyCode(data2.jwt, code)) {
150
+ resetPassword(data2.jwt, code);
151
151
  } else {
152
152
  $q.notify({
153
153
  message: t("Your code is invalid or expired"),
@@ -248,15 +248,16 @@ const facebookLogin = (accessToken) => {
248
248
  </div>
249
249
  <q-form ref="form1" v-if="passwordBasedEnabled">
250
250
  <div class="q-gutter-sm">
251
- <l-input color="primary" v-model.trim="data.username" label="Username" :rules="[(v) => !!v || $t('Username is required')]"
252
- clearable :outlined="false" stackLabel autocomplete="username">
251
+ <l-input color="primary" v-model.trim="data.username" label="Username"
252
+ :rules="[(v) => !!v || $t('Username is required')]" clearable :outlined="false" stackLabel
253
+ autocomplete="username">
253
254
  <template v-slot:prepend>
254
255
  <q-icon name="sym_o_person" />
255
256
  </template>
256
257
  </l-input>
257
- <l-input color="primary" v-model="data.password" label="Password" type="password" clearable show-password stackLabel
258
- :rules="[(v) => !!v || $t('Password is required')]" @keydown.enter.prevent="submit" :outlined="false"
259
- autocomplete="off">
258
+ <l-input color="primary" v-model="data.password" label="Password" type="password" clearable show-password
259
+ stackLabel :rules="[(v) => !!v || $t('Password is required')]" @keydown.enter.prevent="submit"
260
+ :outlined="false" autocomplete="off">
260
261
  <template v-slot:prepend>
261
262
  <q-icon name="sym_o_lock" />
262
263
  </template>
@@ -8,28 +8,12 @@ export type LPageProps = QPageProps & {
8
8
  gutter?: "none" | "xs" | "sm" | "md" | "lg" | "xl";
9
9
  padding?: boolean;
10
10
  };
11
- declare const showToolbar: import("vue").ComputedRef<true | undefined>;
12
- declare const title: import("vue").ComputedRef<string>;
13
- declare const onDelete: () => Promise<void>;
14
- declare const localClass: import("vue").ComputedRef<string>;
15
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
16
11
  declare var __VLS_34: {}, __VLS_36: {};
17
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
12
+ type __VLS_Slots = {} & {
18
13
  header?: (props: typeof __VLS_34) => any;
19
14
  } & {
20
15
  default?: (props: typeof __VLS_36) => any;
21
- }>;
22
- declare const __VLS_self: import("vue").DefineComponent<LPageProps, {
23
- showToolbar: typeof showToolbar;
24
- title: typeof title;
25
- onDelete: typeof onDelete;
26
- localClass: typeof localClass;
27
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LPageProps> & Readonly<{}>, {
28
- padding: boolean;
29
- title: string;
30
- gutter: "none" | "xs" | "sm" | "md" | "lg" | "xl";
31
- backBtn: boolean;
32
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ };
33
17
  declare const __VLS_component: import("vue").DefineComponent<LPageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LPageProps> & Readonly<{}>, {
34
18
  padding: boolean;
35
19
  title: string;
@@ -1,14 +1,10 @@
1
1
  export interface LRowProps {
2
2
  gutter?: "xs" | "sm" | "md" | "lg" | "xl" | "none";
3
3
  }
4
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
5
4
  declare var __VLS_1: {};
6
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
5
+ type __VLS_Slots = {} & {
7
6
  default?: (props: typeof __VLS_1) => any;
8
- }>;
9
- declare const __VLS_self: import("vue").DefineComponent<LRowProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LRowProps> & Readonly<{}>, {
10
- gutter: "xs" | "sm" | "md" | "lg" | "xl" | "none";
11
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ };
12
8
  declare const __VLS_component: import("vue").DefineComponent<LRowProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LRowProps> & Readonly<{}>, {
13
9
  gutter: "xs" | "sm" | "md" | "lg" | "xl" | "none";
14
10
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,13 +1,8 @@
1
1
  import type { QTabPanelProps, QTabProps } from 'quasar';
2
- declare const parent_type: string | undefined;
3
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
4
2
  declare var __VLS_5: {};
5
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
3
+ type __VLS_Slots = {} & {
6
4
  default?: (props: typeof __VLS_5) => any;
7
- }>;
8
- declare const __VLS_self: import("vue").DefineComponent<QTabPanelProps | QTabProps, {
9
- parent_type: typeof parent_type;
10
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<QTabPanelProps | QTabProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ };
11
6
  declare const __VLS_component: import("vue").DefineComponent<QTabPanelProps | QTabProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<QTabPanelProps | QTabProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
7
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
13
8
  export default _default;
@@ -59,10 +59,14 @@ const props = defineProps({
59
59
  tableClass: { type: null, required: false },
60
60
  tableHeaderStyle: { type: null, required: false },
61
61
  tableHeaderClass: { type: null, required: false },
62
+ tableRowStyleFn: { type: Function, required: false, skipCheck: true },
63
+ tableRowClassFn: { type: Function, required: false, skipCheck: true },
62
64
  cardContainerStyle: { type: null, required: false },
63
65
  cardContainerClass: { type: null, required: false },
64
66
  cardStyle: { type: null, required: false },
65
67
  cardClass: { type: null, required: false },
68
+ cardStyleFn: { type: Function, required: false, skipCheck: true },
69
+ cardClassFn: { type: Function, required: false, skipCheck: true },
66
70
  titleClass: { type: null, required: false },
67
71
  filter: { type: null, required: false },
68
72
  filterMethod: { type: Function, required: false, skipCheck: true },
@@ -1,4 +1,4 @@
1
- import { QTable, Dialog } from 'quasar';
1
+ import { Dialog } from 'quasar';
2
2
  import type { QTableColumn, QTableProps } from 'quasar';
3
3
  export interface LTableColumn extends QTableColumn {
4
4
  searchable?: boolean;
@@ -9,7 +9,6 @@ export interface LTableColumn extends QTableColumn {
9
9
  backgroundColor?: string | Function;
10
10
  searchMethod?: string;
11
11
  }
12
- declare const errors: import("vue").Ref<any, any>;
13
12
  export type LTableProps = QTableProps & {
14
13
  columns?: Array<LTableColumn>;
15
14
  actions?: Array<string>;
@@ -23,26 +22,6 @@ export type LTableProps = QTableProps & {
23
22
  addComponentProps?: any;
24
23
  rows?: Array<any>;
25
24
  };
26
- declare const isServerSide: boolean;
27
- declare const pagination: import("vue").Ref<{
28
- sortBy?: string | null | undefined;
29
- descending?: boolean | undefined;
30
- page?: number | undefined;
31
- rowsPerPage?: number | undefined;
32
- rowsNumber?: number | undefined;
33
- }, {
34
- sortBy?: string | null;
35
- descending?: boolean;
36
- page?: number;
37
- rowsPerPage?: number;
38
- rowsNumber?: number;
39
- } | {
40
- sortBy?: string | null | undefined;
41
- descending?: boolean | undefined;
42
- page?: number | undefined;
43
- rowsPerPage?: number | undefined;
44
- rowsNumber?: number | undefined;
45
- }>;
46
25
  export interface LTableRequest {
47
26
  sort: string;
48
27
  fields: Array<string>;
@@ -78,33 +57,9 @@ export interface LTableRequest {
78
57
  };
79
58
  }) => void;
80
59
  }
81
- declare const loading: import("vue").Ref<boolean, boolean>;
82
- declare let activeEdit: boolean;
83
- declare let actionView: boolean;
84
- declare let actionDelete: boolean;
85
- declare const hasSearch: import("vue").ComputedRef<boolean | undefined>;
86
- declare const table: import("vue").Ref<QTable | undefined, QTable | undefined>;
87
- declare const filters: any;
88
- declare const rows: import("vue").Ref<any, any>;
89
- declare let primaryKey: import("vue").Ref<string | (((row: any) => any) & string) | undefined, string | (((row: any) => any) & string) | undefined>;
90
- declare const modelName: import("vue").Ref<any, any>;
91
- declare const onLocalRequest: (p: any) => Promise<void>;
92
- declare const onFilters: () => void;
93
- declare const ss: string[];
94
- declare const onDelete: (id: any) => Promise<void>;
95
- declare const attrs: import("vue").ComputedRef<any>;
96
- declare const filter: import("vue").Ref<string, string>;
97
- declare const isDark: import("vue").ComputedRef<boolean>;
98
- declare const hasRowExpand: import("vue").ComputedRef<boolean>;
99
- declare const hasActions: import("vue").ComputedRef<boolean>;
100
- declare const getCellStyle: (col: any, row: any) => any;
101
- declare const getCellClass: (col: any, row: any) => any;
102
- declare const localSelected: import("vue").WritableComputedRef<any[], any[]>;
103
60
  declare function requestServerInteraction(): void;
104
- declare const onAdd: () => void;
105
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
106
61
  declare var __VLS_91: any, __VLS_94: string, __VLS_95: any, __VLS_117: any, __VLS_183: string, __VLS_184: any;
107
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
62
+ type __VLS_Slots = {} & {
108
63
  [K in NonNullable<typeof __VLS_94>]?: (props: typeof __VLS_95) => any;
109
64
  } & {
110
65
  [K in NonNullable<typeof __VLS_183>]?: (props: typeof __VLS_184) => any;
@@ -112,65 +67,7 @@ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$
112
67
  actions?: (props: typeof __VLS_91) => any;
113
68
  } & {
114
69
  'row-expand'?: (props: typeof __VLS_117) => any;
115
- }>;
116
- declare const __VLS_self: import("vue").DefineComponent<LTableProps, {
117
- QTable: typeof QTable;
118
- errors: typeof errors;
119
- isServerSide: typeof isServerSide;
120
- pagination: typeof pagination;
121
- loading: typeof loading;
122
- activeEdit: typeof activeEdit;
123
- actionView: typeof actionView;
124
- actionDelete: typeof actionDelete;
125
- hasSearch: typeof hasSearch;
126
- table: typeof table;
127
- filters: typeof filters;
128
- rows: typeof rows;
129
- primaryKey: typeof primaryKey;
130
- modelName: typeof modelName;
131
- onLocalRequest: typeof onLocalRequest;
132
- onFilters: typeof onFilters;
133
- ss: typeof ss;
134
- onDelete: typeof onDelete;
135
- attrs: typeof attrs;
136
- filter: typeof filter;
137
- isDark: typeof isDark;
138
- hasRowExpand: typeof hasRowExpand;
139
- hasActions: typeof hasActions;
140
- getCellStyle: typeof getCellStyle;
141
- getCellClass: typeof getCellClass;
142
- localSelected: typeof localSelected;
143
- onAdd: typeof onAdd;
144
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
145
- delete: (p: any) => any;
146
- "request-data": (p: LTableRequest) => any;
147
- "update:selected": (p: any[]) => any;
148
- }, string, import("vue").PublicProps, Readonly<LTableProps> & Readonly<{
149
- onDelete?: ((p: any) => any) | undefined;
150
- "onRequest-data"?: ((p: LTableRequest) => any) | undefined;
151
- "onUpdate:selected"?: ((p: any[]) => any) | undefined;
152
- }>, {
153
- flat: boolean;
154
- dense: boolean;
155
- dark: boolean | null;
156
- bordered: boolean;
157
- fullscreen: boolean;
158
- selected: any[];
159
- actions: Array<string>;
160
- pagination: {
161
- sortBy?: string | null;
162
- descending?: boolean;
163
- page?: number;
164
- rowsPerPage?: number;
165
- rowsNumber?: number;
166
- };
167
- selection: "none" | "multiple" | "single";
168
- loadingLabel: string;
169
- noDataLabel: string;
170
- rowsPerPageOptions: readonly any[];
171
- rowsPerPageLabel: string;
172
- searchable: boolean;
173
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
70
+ };
174
71
  declare const __VLS_component: import("vue").DefineComponent<LTableProps, {
175
72
  requestServerInteraction: typeof requestServerInteraction;
176
73
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -24,7 +24,7 @@ defineProps({
24
24
  "onUpdate:modelValue": { type: Function, required: false }
25
25
  });
26
26
  const slots = useSlots();
27
- const modelValue = defineModel();
27
+ const modelValue = defineModel({ type: null });
28
28
  if (modelValue.value === void 0) {
29
29
  modelValue.value = slots.default?.()[0]?.props?.name;
30
30
  }
@@ -2,24 +2,15 @@ import type { QTabsProps } from 'quasar';
2
2
  export interface LTabsProps extends QTabsProps {
3
3
  }
4
4
  type __VLS_Props = LTabsProps;
5
- declare const modelValue: import("vue").ModelRef<any, string, any, any>;
6
5
  type __VLS_PublicProps = __VLS_Props & {
7
6
  modelValue?: any;
8
7
  };
9
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
10
8
  declare var __VLS_10: {}, __VLS_16: {};
11
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
9
+ type __VLS_Slots = {} & {
12
10
  default?: (props: typeof __VLS_10) => any;
13
11
  } & {
14
12
  default?: (props: typeof __VLS_16) => any;
15
- }>;
16
- declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
17
- modelValue: typeof modelValue;
18
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
- "update:modelValue": (value: any) => any;
20
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
21
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
22
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ };
23
14
  declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
15
  "update:modelValue": (value: any) => any;
25
16
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
@@ -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();
7
+ const modelValue = defineModel({ type: null });
8
8
  const props = defineProps({
9
9
  modelValue: { type: null, required: false },
10
10
  required: { type: Boolean, required: false, default: false },
@@ -1,4 +1,3 @@
1
- import type { ValidationRule } from "quasar";
2
1
  export interface LTimePickerProps {
3
2
  modelValue?: any;
4
3
  required?: boolean;
@@ -12,31 +11,13 @@ export interface LTimePickerProps {
12
11
  color?: string;
13
12
  }
14
13
  type __VLS_Props = LTimePickerProps;
15
- declare const popup: import("vue").Ref<null, null>;
16
- declare const localValue: import("vue").WritableComputedRef<any, any>;
17
- declare const rules: ValidationRule[];
18
14
  type __VLS_PublicProps = __VLS_Props & {
19
15
  modelValue?: any;
20
16
  };
21
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
22
17
  declare var __VLS_25: string | number, __VLS_26: any;
23
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
18
+ type __VLS_Slots = {} & {
24
19
  [K in NonNullable<typeof __VLS_25>]?: (props: typeof __VLS_26) => any;
25
- }>;
26
- declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
27
- popup: typeof popup;
28
- localValue: typeof localValue;
29
- rules: typeof rules;
30
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
- "update:modelValue": (value: any) => any;
32
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
33
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
34
- }>, {
35
- mask: string;
36
- required: boolean;
37
- hideBottomSpace: boolean;
38
- format24h: boolean;
39
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ };
40
21
  declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
41
22
  "update:modelValue": (value: any) => any;
42
23
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
@@ -9,4 +9,7 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
9
9
  readonly context?: Record<string, any> | undefined;
10
10
  };
11
11
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
- type __VLS_Slots = any;
12
+ type __VLS_Slots = {
13
+ [x: string]: ((props: any) => any) | undefined;
14
+ [x: number]: ((props: any) => any) | undefined;
15
+ };
@@ -9,4 +9,7 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
9
9
  readonly context?: Record<string, any> | undefined;
10
10
  };
11
11
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
- type __VLS_Slots = any;
12
+ type __VLS_Slots = {
13
+ [x: string]: ((props: any) => any) | undefined;
14
+ [x: number]: ((props: any) => any) | undefined;
15
+ };
@@ -9,4 +9,6 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
9
9
  readonly context?: Record<string, any> | undefined;
10
10
  };
11
11
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
- type __VLS_Slots = any;
12
+ type __VLS_Slots = {
13
+ default?: ((props: {}) => any) | undefined;
14
+ };
@@ -9,4 +9,7 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
9
9
  readonly context?: Record<string, any> | undefined;
10
10
  };
11
11
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
- type __VLS_Slots = any;
12
+ type __VLS_Slots = {
13
+ [x: string]: ((props: any) => any) | undefined;
14
+ [x: number]: ((props: any) => any) | undefined;
15
+ };
@@ -9,4 +9,7 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
9
9
  readonly context?: Record<string, any> | undefined;
10
10
  };
11
11
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
- type __VLS_Slots = any;
12
+ type __VLS_Slots = {
13
+ [x: string]: ((props: any) => any) | undefined;
14
+ [x: number]: ((props: any) => any) | undefined;
15
+ };
@@ -9,4 +9,7 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
9
9
  readonly context?: Record<string, any> | undefined;
10
10
  };
11
11
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
- type __VLS_Slots = any;
12
+ type __VLS_Slots = {
13
+ [x: string]: ((props: any) => any) | undefined;
14
+ [x: number]: ((props: any) => any) | undefined;
15
+ };