@mythpe/quasar-ui-qui 0.2.42 → 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/form/MOtp.vue +2 -1
- package/src/components/form/MSelect.vue +7 -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/components/modal/MDialog.vue +2 -0
- package/src/components/sar/MSarString.vue +2 -1
- 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,26 @@
|
|
|
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 { QInputProps } from 'quasar'
|
|
11
|
+
|
|
12
|
+
import type { BaseInputFormProps } from './MInput'
|
|
13
|
+
|
|
14
|
+
export type MHiddenInputSlots = {
|
|
15
|
+
[key: string]: () => VNode[]
|
|
16
|
+
}
|
|
17
|
+
export type MHiddenInputProps = Pick<BaseInputFormProps, 'rules' | 'required'> & Pick<QInputProps, 'type'> & {
|
|
18
|
+
/**
|
|
19
|
+
* Input name.
|
|
20
|
+
*/
|
|
21
|
+
name: string
|
|
22
|
+
/**
|
|
23
|
+
* Input model value.
|
|
24
|
+
*/
|
|
25
|
+
modelValue?: any
|
|
26
|
+
}
|
|
@@ -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'>
|