@mythpe/quasar-ui-qui 0.0.26-dev → 0.0.27-dev

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 (54) hide show
  1. package/index.d.ts +0 -4
  2. package/package.json +2 -1
  3. package/src/components/datatable/MDatatable.vue +2305 -0
  4. package/src/components/datatable/MDtAvatar.vue +49 -0
  5. package/src/components/datatable/MDtBtn.vue +153 -0
  6. package/src/components/datatable/MDtContextmenuItems.vue +54 -0
  7. package/src/components/datatable/index.ts +6 -0
  8. package/src/components/form/MAvatarViewer.vue +6 -3
  9. package/src/components/form/MAxios.vue +7 -4
  10. package/src/components/form/MCheckbox.vue +33 -9
  11. package/src/components/form/MDate.vue +4 -1
  12. package/src/components/form/MEmail.vue +4 -1
  13. package/src/components/form/MField.vue +4 -1
  14. package/src/components/form/MFile.vue +5 -2
  15. package/src/components/form/MForm.vue +4 -1
  16. package/src/components/form/MHiddenInput.vue +4 -1
  17. package/src/components/form/MInput.vue +1 -1
  18. package/src/components/form/MInputLabel.vue +4 -1
  19. package/src/components/form/MMobile.vue +4 -1
  20. package/src/components/form/MOptions.vue +255 -0
  21. package/src/components/form/MOtp.vue +292 -0
  22. package/src/components/form/MRadio.vue +5 -2
  23. package/src/components/form/MSelect.vue +4 -1
  24. package/src/components/form/MTime.vue +4 -1
  25. package/src/components/form/MToggle.vue +211 -0
  26. package/src/components/form/MUploader.vue +511 -0
  27. package/src/components/form/index.ts +9 -1
  28. package/src/components/grid/MColumn.vue +4 -1
  29. package/src/components/grid/MHelpRow.vue +5 -1
  30. package/src/components/index.ts +3 -0
  31. package/src/components/modal/MDialog.vue +58 -0
  32. package/src/components/modal/MModalMenu.vue +62 -0
  33. package/src/components/modal/MTooltip.vue +39 -0
  34. package/src/components/modal/index.ts +5 -0
  35. package/src/components/parials/UploaderItem.vue +298 -0
  36. package/src/components/parials/index.ts +3 -0
  37. package/src/components/transition/MTransition.vue +4 -1
  38. package/src/composable/useBindInput.ts +1 -1
  39. package/src/composable/useMyth.ts +20 -11
  40. package/src/index.sass +2 -1
  41. package/src/style/main.sass +104 -0
  42. package/src/style/print.sass +14 -0
  43. package/src/style/transition.sass +40 -0
  44. package/src/types/api-helpers.d.ts +11 -72
  45. package/src/types/components.d.ts +411 -105
  46. package/src/types/index.d.ts +5 -139
  47. package/src/types/install-options.d.ts +19 -0
  48. package/src/types/m-datatable.d.ts +316 -0
  49. package/src/types/m-geolocation.d.ts +16 -0
  50. package/src/types/m-helpers.d.ts +97 -0
  51. package/src/types/plugin-props-option.d.ts +301 -0
  52. package/src/utils/myth.ts +15 -1
  53. package/src/utils/vue-plugin.ts +34 -2
  54. package/src/types/dt.d.ts +0 -144
@@ -6,82 +6,23 @@
6
6
  * Github: https://github.com/mythpe
7
7
  */
8
8
 
9
- import type { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios'
10
- import { ApiServiceParams } from './dt'
11
-
12
- // Axios
13
- type Generic = Record<any, any>;
14
-
15
- export type ApiMetaInterface = {
16
- // server current page
17
- current_page: number | null;
18
- // server last page
19
- last_page: number | null;
20
- // server total items
21
- total: number | null;
22
- [K: any]: any;
23
- };
24
- export type ApiErrorInterface = Record<string, string[]>;
25
- export type ApiErrorsInterface = ApiErrorInterface[];
26
-
27
- export type ApiModel<T extends Generic = Generic> = {
28
- id: string | number;
29
- value: string | number;
30
- label?: string;
31
- [K: keyof T]: any;
32
- [s: string]: any;
33
- };
34
-
35
- type ResponseAsMain = Generic & {
36
- success: boolean;
37
- errors: ApiErrorsInterface;
38
- message: string;
39
- }
40
-
41
- type ResponseAsModel<T extends Generic = Generic> = ResponseAsMain & {
42
- data: ApiModel<T>
43
- }
44
- type ResponseAsList<T extends Generic = Generic> = ResponseAsMain & {
45
- data: ResponseAsModel<T>[];
46
- links: {
47
- first: string;
48
- last: string;
49
- prev: string | null;
50
- next: string | null;
51
- }
52
- meta: ApiMetaInterface;
53
- }
54
- type ResponseDataType = ResponseAsList | ResponseAsModel | Generic;
55
- export type ApiFulfilledResponse = AxiosResponse<ResponseDataType>
56
- export type ApiErrorResponse = AxiosError<ResponseDataType>;
57
-
58
- export type ApiInterface = ApiFulfilledResponse & {
59
- _data: ResponseDataType;
60
- _message: ResponseAsMain['message'];
61
- _meta: ResponseAsList['meta'];
62
- _success: ResponseAsMain['success'];
63
- _errors: ResponseAsMain['errors'];
64
- }
65
-
66
- // Axios
67
-
68
- export type DownloadFromResponse = {
69
- status: boolean;
70
- response: AxiosResponse;
71
- }
72
-
73
- export type DownloadFromResponseCode = 'no_response' | 'no_file_name' | 'no_file_url' | 'unknown' | string
74
- export type DownloadFromResponseError = {
75
- code: DownloadFromResponseCode
76
- status: boolean;
77
- }
9
+ /*
10
+ * MyTh Ahmed Faiz Copyright © 2016-2024 All rights reserved.
11
+ * Email: mythpe@gmail.com
12
+ * Mobile: +966590470092
13
+ * Website: https://www.4myth.com
14
+ * Github: https://github.com/mythpe
15
+ */
16
+
17
+ import type { AxiosRequestConfig } from 'axios'
18
+ import type { ApiInterface, Generic } from './m-helpers'
19
+ import type { ApiServiceParams } from './m-datatable'
78
20
 
79
21
  export type UrlType = string | number | any;
80
22
  export type ParamsType = Record<string, any> | FormData | object
81
23
  export type ConfigType = AxiosRequestConfig<ApiInterface> & Partial<{
82
24
  params: Partial<ApiServiceParams> & Generic
83
25
  }>
84
-
85
26
  export type HelpersStubSchema = {
86
27
  index (config?: ConfigType): Promise<ApiInterface>;
87
28
 
@@ -110,12 +51,10 @@ export type HelpersStubSchema = {
110
51
  updateAttachment (id: UrlType, fileId: string | number, data: Record<string, any>, config?: AxiosRequestConfig): Promise<ApiInterface>;
111
52
 
112
53
  } | (HelpersStubSchema & Record<string, HelpersStubSchema | ((...args: any) => Promise<ApiInterface>)>)
113
-
114
54
  export type StubSchemaContext = HelpersStubSchema
115
55
  & Record<string, ((...args: any) => Promise<ApiInterface>)>
116
56
  & Record<string, Record<string, ((...args: any) => Promise<ApiInterface>)>>
117
57
  & Record<string, Record<string, Record<string, ((...args: any) => Promise<ApiInterface>)>>>
118
-
119
58
  export type StubSchema = StubSchemaContext
120
59
  & ((...args: any) => Promise<ApiInterface>)
121
60
  & string