@mythpe/quasar-ui-qui 0.2.69 → 0.2.71
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 +1 -1
- package/src/components/form/MInput.vue +4 -1
- package/src/components/grid/MInnerLoading.vue +40 -0
- package/src/components/grid/index.ts +2 -1
- package/src/plugin/defineAsyncComponents.ts +1 -0
- package/src/types/api/MInnerLoading.d.ts +17 -0
- package/src/types/components.d.ts +2 -0
- package/src/types/index.d.ts +2 -2
- package/src/types/plugin-props-option.d.ts +5 -0
package/package.json
CHANGED
|
@@ -48,6 +48,7 @@ interface P {
|
|
|
48
48
|
appendIcon?: Props['appendIcon'];
|
|
49
49
|
appendIconProps?: Props['appendIconProps'];
|
|
50
50
|
copy?: Props['copy'];
|
|
51
|
+
type?: Props['type'];
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
const props = withDefaults(defineProps<P>(), {
|
|
@@ -80,7 +81,8 @@ const props = withDefaults(defineProps<P>(), {
|
|
|
80
81
|
prependIconProps: undefined,
|
|
81
82
|
appendIcon: undefined,
|
|
82
83
|
appendIconProps: undefined,
|
|
83
|
-
copy: undefined
|
|
84
|
+
copy: undefined,
|
|
85
|
+
type: undefined
|
|
84
86
|
})
|
|
85
87
|
defineModel<Props['modelValue']>({ required: !1, default: undefined })
|
|
86
88
|
const { __, props: pluginOptions, formatMoney, copyText } = useMyth()
|
|
@@ -184,6 +186,7 @@ defineOptions({
|
|
|
184
186
|
label: hasTopLabel ? undefined : (getLabel || undefined),
|
|
185
187
|
modelValue: value,
|
|
186
188
|
placeholder: getPlaceholder,
|
|
189
|
+
type,
|
|
187
190
|
}"
|
|
188
191
|
v-on="listeners"
|
|
189
192
|
>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
- MyTh Ahmed Faiz Copyright © 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
|
+
<script lang="ts" setup>
|
|
10
|
+
import { useMyth } from '../../composable'
|
|
11
|
+
import type { MInnerLoadingProps } from '../../types'
|
|
12
|
+
|
|
13
|
+
interface Props {
|
|
14
|
+
showing?: MInnerLoadingProps['showing'];
|
|
15
|
+
labelClass?: MInnerLoadingProps['labelClass'];
|
|
16
|
+
labelStyle?: MInnerLoadingProps['labelStyle'];
|
|
17
|
+
color?: MInnerLoadingProps['color'];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
defineProps<Props>()
|
|
21
|
+
|
|
22
|
+
const { __ } = useMyth()
|
|
23
|
+
defineOptions({
|
|
24
|
+
name: 'MInnerLoading',
|
|
25
|
+
inheritAttrs: !1
|
|
26
|
+
})
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<template>
|
|
30
|
+
<q-inner-loading
|
|
31
|
+
:color="color ?? 'brand'"
|
|
32
|
+
:label="__('labels.plz_wait')"
|
|
33
|
+
:label-class="labelClass"
|
|
34
|
+
:label-style="labelStyle ?? 'font-size: 1.1em'"
|
|
35
|
+
:showing="showing"
|
|
36
|
+
v-bind="$attrs"
|
|
37
|
+
>
|
|
38
|
+
<slot />
|
|
39
|
+
</q-inner-loading>
|
|
40
|
+
</template>
|
|
@@ -11,8 +11,9 @@ import MCol from './MCol.vue'
|
|
|
11
11
|
import MColumn from './MColumn.vue'
|
|
12
12
|
import MContainer from './MContainer.vue'
|
|
13
13
|
import MHelpRow from './MHelpRow.vue'
|
|
14
|
+
import MInnerLoading from './MInnerLoading.vue'
|
|
14
15
|
import MRow from './MRow.vue'
|
|
15
16
|
|
|
16
|
-
export { MBlock, MCol, MColumn, MContainer, MHelpRow, MRow }
|
|
17
|
+
export { MBlock, MCol, MColumn, MContainer, MHelpRow, MInnerLoading, MRow }
|
|
17
18
|
|
|
18
19
|
export default {}
|
|
@@ -37,6 +37,7 @@ export const defineAsyncComponents = function (app: App) {
|
|
|
37
37
|
app.component('MColumn', defineAsyncComponent(() => import('../components/grid/MColumn.vue')))
|
|
38
38
|
app.component('MContainer', defineAsyncComponent(() => import('../components/grid/MContainer.vue')))
|
|
39
39
|
app.component('MHelpRow', defineAsyncComponent(() => import('../components/grid/MHelpRow.vue')))
|
|
40
|
+
app.component('MInnerLoading', defineAsyncComponent(() => import('../components/grid/MInnerLoading.vue')))
|
|
40
41
|
app.component('MRow', defineAsyncComponent(() => import('../components/grid/MRow.vue')))
|
|
41
42
|
|
|
42
43
|
// Typography.
|
|
@@ -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 { QInnerLoadingProps } from 'quasar'
|
|
11
|
+
|
|
12
|
+
export type MInnerLoadingProps = QInnerLoadingProps & {
|
|
13
|
+
showing?: boolean | undefined;
|
|
14
|
+
}
|
|
15
|
+
export type MInnerLoadingSlots = {
|
|
16
|
+
default?: () => VNode[];
|
|
17
|
+
}
|
|
@@ -66,6 +66,7 @@ import type { MModalMenuProps, MModalMenuSlots } from './api/MModalMenu'
|
|
|
66
66
|
import type { MTooltipProps, MTooltipSlots } from './api/MTooltip'
|
|
67
67
|
import type { MSarIconProps, MSarIconSlots, MSarStringProps, MSarStringSlots } from './api/MSar'
|
|
68
68
|
import type { MMapProps, MMapSlots } from './api/MMap'
|
|
69
|
+
import type { MInnerLoadingProps, MInnerLoadingSlots } from './api/MInnerLoading'
|
|
69
70
|
|
|
70
71
|
declare module '@vue/runtime-core' {
|
|
71
72
|
interface GlobalComponents {
|
|
@@ -105,6 +106,7 @@ declare module '@vue/runtime-core' {
|
|
|
105
106
|
MColumn: GlobalComponentConstructor<MColumnProps, MColumnSlots>;
|
|
106
107
|
MContainer: GlobalComponentConstructor<MContainerProps, MContainerSlots>;
|
|
107
108
|
MHelpRow: GlobalComponentConstructor<MHelpRowProps, MHelpRowSlots>;
|
|
109
|
+
MInnerLoading: GlobalComponentConstructor<MInnerLoadingProps, MInnerLoadingSlots>;
|
|
108
110
|
MRow: GlobalComponentConstructor<MRowProps, MRowSlots>;
|
|
109
111
|
|
|
110
112
|
// Typography.
|
package/src/types/index.d.ts
CHANGED
|
@@ -60,8 +60,8 @@ export { MColumnSlots } from './api/MColumn'
|
|
|
60
60
|
export { MColumnProps } from './api/MColumn'
|
|
61
61
|
export { MContainerSlots } from './api/MContainer'
|
|
62
62
|
export { MContainerProps } from './api/MContainer'
|
|
63
|
-
export
|
|
64
|
-
export
|
|
63
|
+
export * from './api/MInnerLoading'
|
|
64
|
+
export * from './api/MRow'
|
|
65
65
|
export { MHelpRowSlots } from './api/MHelpRow'
|
|
66
66
|
export { MHelpRowProps } from './api/MHelpRow'
|
|
67
67
|
export { MTypingStringSlots } from './api/MTypingString'
|
|
@@ -43,6 +43,7 @@ import type { MCheckboxProps } from './api/MCheckbox'
|
|
|
43
43
|
import type { MFileProps } from './api/MFile'
|
|
44
44
|
import type { MEditorProps } from './api/MEditor'
|
|
45
45
|
import type { MInputProps } from './api/MInput'
|
|
46
|
+
import type { MInnerLoadingProps } from './api/MInnerLoading'
|
|
46
47
|
|
|
47
48
|
export interface MythComponentsProps {
|
|
48
49
|
// Grid.
|
|
@@ -66,6 +67,10 @@ export interface MythComponentsProps {
|
|
|
66
67
|
* MHelpRow component.
|
|
67
68
|
*/
|
|
68
69
|
helpRow?: Partial<MHelpRowProps>;
|
|
70
|
+
/**
|
|
71
|
+
* MInnerLoading component.
|
|
72
|
+
*/
|
|
73
|
+
innerLoading?: Partial<MInnerLoadingProps>;
|
|
69
74
|
/**
|
|
70
75
|
* MRow component.
|
|
71
76
|
*/
|