@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.
- package/index.d.ts +0 -4
- package/package.json +2 -1
- package/src/components/datatable/MDatatable.vue +2305 -0
- package/src/components/datatable/MDtAvatar.vue +49 -0
- package/src/components/datatable/MDtBtn.vue +153 -0
- package/src/components/datatable/MDtContextmenuItems.vue +54 -0
- package/src/components/datatable/index.ts +6 -0
- package/src/components/form/MAvatarViewer.vue +6 -3
- package/src/components/form/MAxios.vue +7 -4
- package/src/components/form/MCheckbox.vue +33 -9
- package/src/components/form/MDate.vue +4 -1
- package/src/components/form/MEmail.vue +4 -1
- package/src/components/form/MField.vue +4 -1
- package/src/components/form/MFile.vue +5 -2
- package/src/components/form/MForm.vue +4 -1
- package/src/components/form/MHiddenInput.vue +4 -1
- package/src/components/form/MInput.vue +1 -1
- package/src/components/form/MInputLabel.vue +4 -1
- package/src/components/form/MMobile.vue +4 -1
- package/src/components/form/MOptions.vue +255 -0
- package/src/components/form/MOtp.vue +292 -0
- package/src/components/form/MRadio.vue +5 -2
- package/src/components/form/MSelect.vue +4 -1
- package/src/components/form/MTime.vue +4 -1
- package/src/components/form/MToggle.vue +211 -0
- package/src/components/form/MUploader.vue +511 -0
- package/src/components/form/index.ts +9 -1
- package/src/components/grid/MColumn.vue +4 -1
- package/src/components/grid/MHelpRow.vue +5 -1
- package/src/components/index.ts +3 -0
- package/src/components/modal/MDialog.vue +58 -0
- package/src/components/modal/MModalMenu.vue +62 -0
- package/src/components/modal/MTooltip.vue +39 -0
- package/src/components/modal/index.ts +5 -0
- package/src/components/parials/UploaderItem.vue +298 -0
- package/src/components/parials/index.ts +3 -0
- package/src/components/transition/MTransition.vue +4 -1
- package/src/composable/useBindInput.ts +1 -1
- package/src/composable/useMyth.ts +20 -11
- package/src/index.sass +2 -1
- package/src/style/main.sass +104 -0
- package/src/style/print.sass +14 -0
- package/src/style/transition.sass +40 -0
- package/src/types/api-helpers.d.ts +11 -72
- package/src/types/components.d.ts +411 -105
- package/src/types/index.d.ts +5 -139
- package/src/types/install-options.d.ts +19 -0
- package/src/types/m-datatable.d.ts +316 -0
- package/src/types/m-geolocation.d.ts +16 -0
- package/src/types/m-helpers.d.ts +97 -0
- package/src/types/plugin-props-option.d.ts +301 -0
- package/src/utils/myth.ts +15 -1
- package/src/utils/vue-plugin.ts +34 -2
- package/src/types/dt.d.ts +0 -144
|
@@ -6,82 +6,23 @@
|
|
|
6
6
|
* Github: https://github.com/mythpe
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|