@mythpe/quasar-ui-qui 0.2.43 → 0.2.44
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/package.json +3 -1
- package/src/boot/register.ts +1 -2
- package/src/components/index.ts +2 -1
- package/src/components/map/MMap.vue +69 -0
- package/src/components/map/index.ts +12 -0
- package/src/global.d.ts +16 -0
- package/src/plugin/defineAsyncComponents.ts +2 -0
- package/src/types/api/MAvatarViewer.d.ts +2 -1
- package/src/types/api/MBlock.d.ts +29 -0
- package/src/types/api/MBtn.d.ts +25 -0
- package/src/types/api/MCheckbox.d.ts +33 -0
- package/src/types/api/MCkeditor.d.ts +40 -0
- package/src/types/api/MCol.d.ts +55 -0
- package/src/types/api/MColumn.d.ts +16 -0
- package/src/types/api/MContainer.d.ts +19 -0
- package/src/types/api/MDate.d.ts +15 -0
- package/src/types/api/MDialog.d.ts +18 -0
- package/src/types/api/MEditor.d.ts +13 -0
- package/src/types/api/MField.d.ts +12 -0
- package/src/types/api/MFile.d.ts +21 -0
- package/src/types/api/MForm.d.ts +55 -0
- package/src/types/api/MHelpRow.d.ts +19 -0
- package/src/types/api/MHidden.d.ts +20 -0
- package/src/types/api/MHiddenInput.d.ts +26 -0
- package/src/types/api/MInput.d.ts +159 -0
- package/src/types/api/MInputFieldControl.d.ts +16 -0
- package/src/types/api/MInputLabel.d.ts +17 -0
- package/src/types/api/MMap.d.ts +24 -0
- package/src/types/api/MModalMenu.d.ts +17 -0
- package/src/types/api/MOptions.d.ts +62 -0
- package/src/types/api/MOtp.d.ts +52 -0
- package/src/types/api/MPassword.d.ts +20 -0
- package/src/types/api/MPicker.d.ts +41 -0
- package/src/types/api/MRadio.d.ts +13 -0
- package/src/types/api/MRow.d.ts +24 -0
- package/src/types/api/MSar.d.ts +25 -0
- package/src/types/api/MSelect.d.ts +1 -1
- package/src/types/api/MSignaturePad.d.ts +2 -1
- package/src/types/api/MTime.d.ts +12 -0
- package/src/types/api/MToggle.d.ts +39 -0
- package/src/types/api/MTooltip.d.ts +136 -0
- package/src/types/api/MTypingString.d.ts +24 -0
- package/src/types/api/MUploader.d.ts +163 -0
- package/src/types/components.d.ts +38 -984
- package/src/types/google.d.ts +19 -0
- package/src/types/index.d.ts +86 -2
- package/src/types/m-datatable.d.ts +3 -1
- package/src/types/{myth-api.ts → myth-api.d.ts} +9 -2
- package/src/types/plugin-props-option.d.ts +24 -26
- package/src/types/theme.d.ts +3 -1
- package/src/utils/createMyth.ts +13 -15
- package/src/utils/vue-plugin.ts +5 -3
- package/tsconfig.json +5 -1
- package/src/types/install-options.d.ts +0 -14
- package/src/types/m-geolocation.d.ts +0 -16
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* MyTh Ahmed Faiz Copyright © 2016-2025 All rights reserved.
|
|
3
|
+
* Email: mythpe@gmail.com
|
|
4
|
+
* Mobile: +966590470092
|
|
5
|
+
* Website: https://www.4myth.com
|
|
6
|
+
* Github: https://github.com/mythpe
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type { QFieldSlots, QIconProps, QInputProps, QInputSlots } from 'quasar'
|
|
10
|
+
import type { MaybeRefOrGetter, UnwrapNestedRefs, VNode } from 'vue'
|
|
11
|
+
import type { MColProps } from './MCol'
|
|
12
|
+
import type { FieldContext, FieldOptions } from 'vee-validate'
|
|
13
|
+
|
|
14
|
+
export type BaseInputFieldPropContext = FieldContext<any>
|
|
15
|
+
export type BaseInputFieldProps = {
|
|
16
|
+
/**
|
|
17
|
+
* Context of field input.
|
|
18
|
+
*/
|
|
19
|
+
field: UnwrapNestedRefs<BaseInputFieldPropContext>;
|
|
20
|
+
label?: string | undefined;
|
|
21
|
+
}
|
|
22
|
+
export type ViewModeProps = {
|
|
23
|
+
/**
|
|
24
|
+
* Set input to vie mode use q-field
|
|
25
|
+
*/
|
|
26
|
+
viewMode?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* View Mode value for input or modelValue.
|
|
29
|
+
*/
|
|
30
|
+
viewModeValue?: any | undefined;
|
|
31
|
+
}
|
|
32
|
+
export type InputHelpProps = {
|
|
33
|
+
/**
|
|
34
|
+
* Information text with Icon.
|
|
35
|
+
*/
|
|
36
|
+
help?: string;
|
|
37
|
+
}
|
|
38
|
+
export type InputHelpSlots = {
|
|
39
|
+
/**
|
|
40
|
+
* VNode bottom of input & before 'bottom-input slot'.
|
|
41
|
+
*/
|
|
42
|
+
help: () => VNode[];
|
|
43
|
+
}
|
|
44
|
+
export type InputRulesContext = string | string[] | Record<string, any> | undefined;
|
|
45
|
+
export type InputErrorsContext = string[];
|
|
46
|
+
export type InputFormErrorsContext = Record<string, InputErrorsContext> | undefined;
|
|
47
|
+
export type BaseInputFormProps = {
|
|
48
|
+
/**
|
|
49
|
+
* Input name.
|
|
50
|
+
*/
|
|
51
|
+
name: string;
|
|
52
|
+
/**
|
|
53
|
+
* Input model value.
|
|
54
|
+
* can be used instead of initialValue.
|
|
55
|
+
*/
|
|
56
|
+
modelValue?: any;
|
|
57
|
+
/**
|
|
58
|
+
* Input Label.
|
|
59
|
+
*/
|
|
60
|
+
label?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* Caption under label.
|
|
63
|
+
*/
|
|
64
|
+
caption?: string | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Input Hint.
|
|
67
|
+
*/
|
|
68
|
+
hint?: string | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Input Placeholder.
|
|
71
|
+
*/
|
|
72
|
+
placeholder?: string | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Input Required validation.
|
|
75
|
+
*/
|
|
76
|
+
required?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Input Validation Rules.
|
|
79
|
+
*/
|
|
80
|
+
rules?: InputRulesContext;
|
|
81
|
+
/**
|
|
82
|
+
* Input Error Messages.
|
|
83
|
+
*/
|
|
84
|
+
// errors?: InputErrorsContext;
|
|
85
|
+
/**
|
|
86
|
+
* Form Error Messages.
|
|
87
|
+
*/
|
|
88
|
+
// formErrors?: InputFormErrorsContext;
|
|
89
|
+
/**
|
|
90
|
+
* Input autocomplete attribute.
|
|
91
|
+
* if true, will set from input name.
|
|
92
|
+
* if false, will set 'off'.
|
|
93
|
+
* else, will set the attribute value.
|
|
94
|
+
* Default: undefined.
|
|
95
|
+
*/
|
|
96
|
+
autocomplete?: boolean | string | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* Inputs Top Label.
|
|
99
|
+
*/
|
|
100
|
+
topLabel?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Mobile Rule.
|
|
103
|
+
*/
|
|
104
|
+
mobile?: boolean | string | number | ((value: unknown) => number | undefined) | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* Email Rule.
|
|
107
|
+
*/
|
|
108
|
+
email?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Number Rule.
|
|
111
|
+
*/
|
|
112
|
+
float?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* vee-validate Field Options.
|
|
115
|
+
*/
|
|
116
|
+
fieldOptions?: Partial<FieldOptions> | MaybeRefOrGetter<Partial<FieldOptions>>;
|
|
117
|
+
/**
|
|
118
|
+
* choice key of auto placeholder.
|
|
119
|
+
*/
|
|
120
|
+
useChoice?: boolean | string;
|
|
121
|
+
prependIcon?: string;
|
|
122
|
+
prependIconProps?: Partial<QIconProps>;
|
|
123
|
+
appendIcon?: string;
|
|
124
|
+
appendIconProps?: Partial<QIconProps>;
|
|
125
|
+
}
|
|
126
|
+
export type BaseInputsProps = ViewModeProps & InputHelpProps & Omit<MColProps, 'name'> & BaseInputFormProps
|
|
127
|
+
export type BaseInputsSlots = InputHelpSlots & {
|
|
128
|
+
/**
|
|
129
|
+
* VNode top of input & top of 'top label slot'.
|
|
130
|
+
*/
|
|
131
|
+
'top-input': () => VNode[];
|
|
132
|
+
/**
|
|
133
|
+
* The label top on input
|
|
134
|
+
*/
|
|
135
|
+
'top-label': () => VNode[];
|
|
136
|
+
/**
|
|
137
|
+
* VNode top of input & after top label.
|
|
138
|
+
*/
|
|
139
|
+
caption: () => VNode[];
|
|
140
|
+
/**
|
|
141
|
+
* Field main content
|
|
142
|
+
*/
|
|
143
|
+
default: () => VNode[];
|
|
144
|
+
/**
|
|
145
|
+
* VNode bottom of input.
|
|
146
|
+
*/
|
|
147
|
+
'bottom-input': () => VNode[];
|
|
148
|
+
}
|
|
149
|
+
export declare type GenericFormValues = Record<any, any>;
|
|
150
|
+
|
|
151
|
+
export interface MInputProps extends Omit<QInputProps, 'rules' | 'name' | 'modelValue' | 'label' | 'hint'>, BaseInputsProps {
|
|
152
|
+
sar?: boolean;
|
|
153
|
+
prependIcon?: string;
|
|
154
|
+
prependIconProps?: Partial<QIconProps>;
|
|
155
|
+
appendIcon?: string;
|
|
156
|
+
appendIconProps?: Partial<QIconProps>;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export type MInputSlots = QInputSlots & QFieldSlots & BaseInputsSlots
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* MyTh Ahmed Faiz Copyright © 2016-2025 All rights reserved.
|
|
3
|
+
* Email: mythpe@gmail.com
|
|
4
|
+
* Mobile: +966590470092
|
|
5
|
+
* Website: https://www.4myth.com
|
|
6
|
+
* Github: https://github.com/mythpe
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type { VNode } from 'vue'
|
|
10
|
+
|
|
11
|
+
export type MInputFieldControlProps = {
|
|
12
|
+
[k: string]: any;
|
|
13
|
+
}
|
|
14
|
+
export type MInputFieldControlSlots = {
|
|
15
|
+
default: () => VNode[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* MyTh Ahmed Faiz Copyright © 2016-2025 All rights reserved.
|
|
3
|
+
* Email: mythpe@gmail.com
|
|
4
|
+
* Mobile: +966590470092
|
|
5
|
+
* Website: https://www.4myth.com
|
|
6
|
+
* Github: https://github.com/mythpe
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type { VNode } from 'vue'
|
|
10
|
+
|
|
11
|
+
import type { BaseInputFieldProps } from './MInput'
|
|
12
|
+
|
|
13
|
+
export type MInputLabelProps = BaseInputFieldProps
|
|
14
|
+
export type MInputLabelSlots = {
|
|
15
|
+
before?: () => VNode[];
|
|
16
|
+
default?: () => VNode[];
|
|
17
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* MyTh Ahmed Faiz Copyright © 2016-2025 All rights reserved.
|
|
3
|
+
* Email: mythpe@gmail.com
|
|
4
|
+
* Mobile: +966590470092
|
|
5
|
+
* Website: https://www.4myth.com
|
|
6
|
+
* Github: https://github.com/mythpe
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type { VNode } from 'vue'
|
|
10
|
+
|
|
11
|
+
export interface MMapProps {
|
|
12
|
+
language?: 'ar' | 'en';
|
|
13
|
+
width?: string | number;
|
|
14
|
+
height?: string | number;
|
|
15
|
+
zoom?: string | number;
|
|
16
|
+
// mapProps?:
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface MMapSlots {
|
|
20
|
+
/**
|
|
21
|
+
* Default main content
|
|
22
|
+
*/
|
|
23
|
+
default: () => VNode[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* MyTh Ahmed Faiz Copyright © 2016-2025 All rights reserved.
|
|
3
|
+
* Email: mythpe@gmail.com
|
|
4
|
+
* Mobile: +966590470092
|
|
5
|
+
* Website: https://www.4myth.com
|
|
6
|
+
* Github: https://github.com/mythpe
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type { VNode } from 'vue'
|
|
10
|
+
import type { QDialogProps, QMenuProps, QPopupProxyProps } from 'quasar'
|
|
11
|
+
|
|
12
|
+
export type MModalMenuProps = Partial<QDialogProps> & Partial<QMenuProps> & Partial<QPopupProxyProps> & {
|
|
13
|
+
noCloseBtn?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export type MModalMenuSlots = {
|
|
16
|
+
default: () => VNode[];
|
|
17
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* MyTh Ahmed Faiz Copyright © 2016-2025 All rights reserved.
|
|
3
|
+
* Email: mythpe@gmail.com
|
|
4
|
+
* Mobile: +966590470092
|
|
5
|
+
* Website: https://www.4myth.com
|
|
6
|
+
* Github: https://github.com/mythpe
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type { QCheckboxProps, QFieldSlots, QOptionGroupProps, QOptionGroupSlots, QRadioProps, QToggleProps } from 'quasar'
|
|
10
|
+
import type { ApiInterface } from '../api-helpers'
|
|
11
|
+
import type { BaseInputsProps, BaseInputsSlots } from './MInput'
|
|
12
|
+
|
|
13
|
+
export interface MOptionsOptionContext extends Omit<QToggleProps, 'modelValue'>, Omit<QRadioProps, 'modelValue'>, Omit<QCheckboxProps, 'modelValue'> {
|
|
14
|
+
/**
|
|
15
|
+
* Label to display along the component
|
|
16
|
+
*/
|
|
17
|
+
label: string;
|
|
18
|
+
/**
|
|
19
|
+
* Value of the option that will be used by the component model
|
|
20
|
+
*/
|
|
21
|
+
value: any;
|
|
22
|
+
/**
|
|
23
|
+
* If true, the option will be disabled
|
|
24
|
+
*/
|
|
25
|
+
disable?: boolean;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Any other props from QToggle & QCheckbox, or QRadio
|
|
29
|
+
*/
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type MOptionsProps = Omit<QOptionGroupProps, 'name' | 'modelValue' | 'options'> &
|
|
34
|
+
Omit<BaseInputsProps, 'autocomplete' | 'modelValue'> & {
|
|
35
|
+
modelValue?: any;
|
|
36
|
+
/**
|
|
37
|
+
* Array of objects with value, label, and disable (optional) props. The binary components will be created according to this array; Props from QToggle & QCheckbox or QRadio can also be added as key/value pairs to control the components singularly
|
|
38
|
+
*/
|
|
39
|
+
options?: MOptionsOptionContext[];
|
|
40
|
+
/**
|
|
41
|
+
* Used auto static index myth api helpers.
|
|
42
|
+
*/
|
|
43
|
+
guest?: boolean | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Get options by function. any send the current value to this function to get options.
|
|
46
|
+
*/
|
|
47
|
+
service?: ((value?: any) => Promise<ApiInterface>) | string;
|
|
48
|
+
/**
|
|
49
|
+
* Service loading.
|
|
50
|
+
*/
|
|
51
|
+
loading?: boolean | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Set content to be full width.
|
|
54
|
+
*/
|
|
55
|
+
fullWidth?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Set the width of content to be equal.
|
|
58
|
+
* Default is: 33.33333333%
|
|
59
|
+
*/
|
|
60
|
+
fitWidth?: boolean;
|
|
61
|
+
}
|
|
62
|
+
export type MOptionsSlots = QOptionGroupSlots & QFieldSlots & BaseInputsSlots
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* MyTh Ahmed Faiz Copyright © 2016-2025 All rights reserved.
|
|
3
|
+
* Email: mythpe@gmail.com
|
|
4
|
+
* Mobile: +966590470092
|
|
5
|
+
* Website: https://www.4myth.com
|
|
6
|
+
* Github: https://github.com/mythpe
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type { QInputProps, QInputSlots } from 'quasar'
|
|
10
|
+
import type { VNode } from 'vue'
|
|
11
|
+
|
|
12
|
+
export type MOtpProps = Omit<QInputProps, 'modelValue'> & {
|
|
13
|
+
/**
|
|
14
|
+
* Value of input after typing all inputs.
|
|
15
|
+
*/
|
|
16
|
+
modelValue?: any;
|
|
17
|
+
/**
|
|
18
|
+
* Length of inputs.
|
|
19
|
+
*/
|
|
20
|
+
inputLength?: string | number;
|
|
21
|
+
/**
|
|
22
|
+
* Values is string not number.
|
|
23
|
+
*/
|
|
24
|
+
string?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Resend time countdown in seconds.
|
|
27
|
+
*/
|
|
28
|
+
time?: string | number;
|
|
29
|
+
/**
|
|
30
|
+
* Don't use timing to resend code.
|
|
31
|
+
*/
|
|
32
|
+
noTiming?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Don't use send again button.
|
|
35
|
+
*/
|
|
36
|
+
noSendAgain?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Top input label.
|
|
39
|
+
*/
|
|
40
|
+
topLabel?: string | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Top input props.
|
|
43
|
+
*/
|
|
44
|
+
topLabelProps?: any | undefined;
|
|
45
|
+
errors?: string[];
|
|
46
|
+
}
|
|
47
|
+
export type MOtpSlots = QInputSlots & {
|
|
48
|
+
default: () => VNode[];
|
|
49
|
+
'before-all': () => VNode[];
|
|
50
|
+
'after-all': () => VNode[];
|
|
51
|
+
'after-input': () => VNode[];
|
|
52
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* MyTh Ahmed Faiz Copyright © 2016-2025 All rights reserved.
|
|
3
|
+
* Email: mythpe@gmail.com
|
|
4
|
+
* Mobile: +966590470092
|
|
5
|
+
* Website: https://www.4myth.com
|
|
6
|
+
* Github: https://github.com/mythpe
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type { MInputProps } from './MInput'
|
|
10
|
+
|
|
11
|
+
export type MPasswordProps = MInputProps & {
|
|
12
|
+
/**
|
|
13
|
+
* icon prepend it to password input.
|
|
14
|
+
*/
|
|
15
|
+
icon?: boolean | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* toggle password append icon.
|
|
18
|
+
*/
|
|
19
|
+
noToggle?: boolean | undefined;
|
|
20
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* MyTh Ahmed Faiz Copyright © 2016-2025 All rights reserved.
|
|
3
|
+
* Email: mythpe@gmail.com
|
|
4
|
+
* Mobile: +966590470092
|
|
5
|
+
* Website: https://www.4myth.com
|
|
6
|
+
* Github: https://github.com/mythpe
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type { QBtnProps, QDateProps, QIconProps, QTimeProps } from 'quasar'
|
|
10
|
+
import type { BaseInputsProps, MInputSlots } from './MInput'
|
|
11
|
+
|
|
12
|
+
export interface MPickerProps extends BaseInputsProps, Omit<QDateProps, 'modelValue' | 'options'>, Omit<QTimeProps, 'modelValue'> {
|
|
13
|
+
/**
|
|
14
|
+
* Initial value of the picker.
|
|
15
|
+
* Default is: null.
|
|
16
|
+
*/
|
|
17
|
+
modelValue?: string | any[] | any | null | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Type of picker. 'date' or 'time'.
|
|
20
|
+
* Default is: 'date'.
|
|
21
|
+
*/
|
|
22
|
+
type?: 'date' | 'time';
|
|
23
|
+
/**
|
|
24
|
+
* QBtn props for append button.
|
|
25
|
+
*/
|
|
26
|
+
btnProps?: QBtnProps;
|
|
27
|
+
/**
|
|
28
|
+
* Value of separator for range picker.
|
|
29
|
+
* Default is: ' - '.
|
|
30
|
+
*/
|
|
31
|
+
rangeSeparator?: string;
|
|
32
|
+
/**
|
|
33
|
+
* User long days & months names.
|
|
34
|
+
* Only work for 'date' type.
|
|
35
|
+
*/
|
|
36
|
+
noDefaultLocale?: boolean;
|
|
37
|
+
prependIcon?: string;
|
|
38
|
+
prependIconProps?: Partial<QIconProps>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type MPickerSlots = MInputSlots
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* MyTh Ahmed Faiz Copyright © 2016-2025 All rights reserved.
|
|
3
|
+
* Email: mythpe@gmail.com
|
|
4
|
+
* Mobile: +966590470092
|
|
5
|
+
* Website: https://www.4myth.com
|
|
6
|
+
* Github: https://github.com/mythpe
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type { QRadioProps } from 'quasar'
|
|
10
|
+
import type { BaseCheckboxProps, MCheckboxSlots } from './MCheckbox'
|
|
11
|
+
|
|
12
|
+
export type MRadioProps = Omit<QRadioProps, 'name' | 'modelValue' | 'label'> & BaseCheckboxProps
|
|
13
|
+
export type MRadioSlots = MCheckboxSlots
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* MyTh Ahmed Faiz Copyright © 2016-2025 All rights reserved.
|
|
3
|
+
* Email: mythpe@gmail.com
|
|
4
|
+
* Mobile: +966590470092
|
|
5
|
+
* Website: https://www.4myth.com
|
|
6
|
+
* Github: https://github.com/mythpe
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type { ThemeSize } from '../theme'
|
|
10
|
+
import type { VNode } from 'vue'
|
|
11
|
+
|
|
12
|
+
export type MRowProps = {
|
|
13
|
+
/**
|
|
14
|
+
* Default: false.
|
|
15
|
+
*/
|
|
16
|
+
gutter?: boolean | ThemeSize | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Default: false.
|
|
19
|
+
*/
|
|
20
|
+
col?: boolean | ThemeSize | undefined;
|
|
21
|
+
}
|
|
22
|
+
export type MRowSlots = {
|
|
23
|
+
default?: () => VNode[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* MyTh Ahmed Faiz Copyright © 2016-2025 All rights reserved.
|
|
3
|
+
* Email: mythpe@gmail.com
|
|
4
|
+
* Mobile: +966590470092
|
|
5
|
+
* Website: https://www.4myth.com
|
|
6
|
+
* Github: https://github.com/mythpe
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type { VNode } from 'vue'
|
|
10
|
+
import type { QIconProps } from 'quasar'
|
|
11
|
+
|
|
12
|
+
export type MSarIconProps = Omit<QIconProps, 'name'> & Record<string, any>;
|
|
13
|
+
|
|
14
|
+
export interface MSarIconSlots {
|
|
15
|
+
default: () => VNode[]
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type MSarStringProps = {
|
|
19
|
+
text?: any;
|
|
20
|
+
string?: boolean;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface MSarStringSlots {
|
|
24
|
+
default: () => VNode[]
|
|
25
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { QFieldSlots, QSelectProps, QSelectSlots } from 'quasar'
|
|
2
|
-
import type { BaseInputsProps, BaseInputsSlots } from '../components'
|
|
3
2
|
import type { VNode } from 'vue'
|
|
3
|
+
import type { BaseInputsProps, BaseInputsSlots } from './MInput'
|
|
4
4
|
|
|
5
5
|
export interface MSelectModelEmit {
|
|
6
6
|
value: any | null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* MyTh Ahmed Faiz Copyright © 2016-2025 All rights reserved.
|
|
3
|
+
* Email: mythpe@gmail.com
|
|
4
|
+
* Mobile: +966590470092
|
|
5
|
+
* Website: https://www.4myth.com
|
|
6
|
+
* Github: https://github.com/mythpe
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type { MPickerProps, MPickerSlots } from './MPicker'
|
|
10
|
+
|
|
11
|
+
export type MTimeProps = Omit<MPickerProps, 'type'>
|
|
12
|
+
export type MTimeSlots = MPickerSlots
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* MyTh Ahmed Faiz Copyright © 2016-2025 All rights reserved.
|
|
3
|
+
* Email: mythpe@gmail.com
|
|
4
|
+
* Mobile: +966590470092
|
|
5
|
+
* Website: https://www.4myth.com
|
|
6
|
+
* Github: https://github.com/mythpe
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type { QToggleProps } from 'quasar'
|
|
10
|
+
import type { MCheckboxSlots } from './MCheckbox'
|
|
11
|
+
import type { BaseInputsProps } from './MInput'
|
|
12
|
+
|
|
13
|
+
export type MToggleProps = Omit<BaseInputsProps, 'placeholder' | 'topLabel' | 'autocomplete' | 'modelValue'> &
|
|
14
|
+
Omit<QToggleProps, 'modelValue' | 'label' | 'name'> & {
|
|
15
|
+
modelValue?: any;
|
|
16
|
+
/**
|
|
17
|
+
* Customize the label when the toggle is true.
|
|
18
|
+
* Default is: Yes.
|
|
19
|
+
*/
|
|
20
|
+
activeLabel?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Customize the label when the toggle is false.
|
|
23
|
+
* Default is: No.
|
|
24
|
+
*/
|
|
25
|
+
inactiveLabel?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Set labels of toggle to status, Active & Inactive.
|
|
28
|
+
*/
|
|
29
|
+
status?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Input row props.
|
|
32
|
+
*/
|
|
33
|
+
rowProps?: Record<string, any>;
|
|
34
|
+
/**
|
|
35
|
+
* Input column props.
|
|
36
|
+
*/
|
|
37
|
+
colProps?: Record<string, any>;
|
|
38
|
+
}
|
|
39
|
+
export type MToggleSlots = MCheckboxSlots & Pick<BaseInputsProps, 'topLabel'>
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* MyTh Ahmed Faiz Copyright © 2016-2025 All rights reserved.
|
|
3
|
+
* Email: mythpe@gmail.com
|
|
4
|
+
* Mobile: +966590470092
|
|
5
|
+
* Website: https://www.4myth.com
|
|
6
|
+
* Github: https://github.com/mythpe
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type { QTooltipProps } from 'quasar'
|
|
10
|
+
import type { VNode } from 'vue'
|
|
11
|
+
|
|
12
|
+
export type MTooltipProps = Partial<QTooltipProps> & {
|
|
13
|
+
/**
|
|
14
|
+
* One of Quasar's embedded transitions
|
|
15
|
+
* Default value: jump-down
|
|
16
|
+
*/
|
|
17
|
+
transitionShow?: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* One of Quasar's embedded transitions
|
|
20
|
+
* Default value: jump-up
|
|
21
|
+
*/
|
|
22
|
+
transitionHide?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Transition duration (in milliseconds, without unit)
|
|
25
|
+
* Default value: 300
|
|
26
|
+
*/
|
|
27
|
+
transitionDuration?: string | number | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Model of the component defining shown/hidden state; Either use this property (along with a listener for 'update:model-value' event) OR use v-model directive
|
|
30
|
+
*/
|
|
31
|
+
modelValue?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The maximum height of the Tooltip; Size in CSS units, including unit name
|
|
34
|
+
*/
|
|
35
|
+
maxHeight?: string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* The maximum width of the Tooltip; Size in CSS units, including unit name
|
|
38
|
+
*/
|
|
39
|
+
maxWidth?: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Two values setting the starting position or anchor point of the Tooltip relative to its target
|
|
42
|
+
* Default value: bottom middle
|
|
43
|
+
*/
|
|
44
|
+
anchor?:
|
|
45
|
+
| 'top left'
|
|
46
|
+
| 'top middle'
|
|
47
|
+
| 'top right'
|
|
48
|
+
| 'top start'
|
|
49
|
+
| 'top end'
|
|
50
|
+
| 'center left'
|
|
51
|
+
| 'center middle'
|
|
52
|
+
| 'center right'
|
|
53
|
+
| 'center start'
|
|
54
|
+
| 'center end'
|
|
55
|
+
| 'bottom left'
|
|
56
|
+
| 'bottom middle'
|
|
57
|
+
| 'bottom right'
|
|
58
|
+
| 'bottom start'
|
|
59
|
+
| 'bottom end'
|
|
60
|
+
| undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Two values setting the Tooltip's own position relative to its target
|
|
63
|
+
* Default value: top middle
|
|
64
|
+
*/
|
|
65
|
+
self?:
|
|
66
|
+
| 'top left'
|
|
67
|
+
| 'top middle'
|
|
68
|
+
| 'top right'
|
|
69
|
+
| 'top start'
|
|
70
|
+
| 'top end'
|
|
71
|
+
| 'center left'
|
|
72
|
+
| 'center middle'
|
|
73
|
+
| 'center right'
|
|
74
|
+
| 'center start'
|
|
75
|
+
| 'center end'
|
|
76
|
+
| 'bottom left'
|
|
77
|
+
| 'bottom middle'
|
|
78
|
+
| 'bottom right'
|
|
79
|
+
| 'bottom start'
|
|
80
|
+
| 'bottom end'
|
|
81
|
+
| undefined;
|
|
82
|
+
/**
|
|
83
|
+
* An array of two numbers to offset the Tooltip horizontally and vertically in pixels
|
|
84
|
+
* Default value: [14, 14]
|
|
85
|
+
*/
|
|
86
|
+
offset?: readonly any[] | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* CSS selector or DOM element to be used as a custom scroll container instead of the auto detected one
|
|
89
|
+
*/
|
|
90
|
+
scrollTarget?: Element | string | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Configure a target element to trigger Tooltip toggle; 'true' means it enables the parent DOM element, 'false' means it disables attaching events to any DOM elements; By using a String (CSS selector) it attaches the events to the specified DOM element (if it exists)
|
|
93
|
+
* Default value: true
|
|
94
|
+
*/
|
|
95
|
+
target?: boolean | string | undefined;
|
|
96
|
+
/**
|
|
97
|
+
* Skips attaching events to the target DOM element (that trigger the element to get shown)
|
|
98
|
+
*/
|
|
99
|
+
noParentEvent?: boolean | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* Configure Tooltip to appear with delay
|
|
102
|
+
*/
|
|
103
|
+
delay?: number | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* Configure Tooltip to disappear with delay
|
|
106
|
+
*/
|
|
107
|
+
hideDelay?: number | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* Emitted when showing/hidden state changes; Is also used by v-model
|
|
110
|
+
* @param value New state (showing/hidden)
|
|
111
|
+
*/
|
|
112
|
+
'onUpdate:modelValue'?: (value: boolean) => void;
|
|
113
|
+
/**
|
|
114
|
+
* Emitted after component has triggered show()
|
|
115
|
+
* @param evt JS event object
|
|
116
|
+
*/
|
|
117
|
+
onShow?: (evt: Event) => void;
|
|
118
|
+
/**
|
|
119
|
+
* Emitted when component triggers show() but before it finishes doing it
|
|
120
|
+
* @param evt JS event object
|
|
121
|
+
*/
|
|
122
|
+
onBeforeShow?: (evt: Event) => void;
|
|
123
|
+
/**
|
|
124
|
+
* Emitted after component has triggered hide()
|
|
125
|
+
* @param evt JS event object
|
|
126
|
+
*/
|
|
127
|
+
onHide?: (evt: Event) => void;
|
|
128
|
+
/**
|
|
129
|
+
* Emitted when component triggers hide() but before it finishes doing it
|
|
130
|
+
* @param evt JS event object
|
|
131
|
+
*/
|
|
132
|
+
onBeforeHide?: (evt: Event) => void;
|
|
133
|
+
}
|
|
134
|
+
export type MTooltipSlots = {
|
|
135
|
+
default: () => VNode[];
|
|
136
|
+
}
|