@mythpe/quasar-ui-qui 0.3.42 → 0.3.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mythpe/quasar-ui-qui",
3
- "version": "0.3.42",
3
+ "version": "0.3.44",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -52,44 +52,10 @@ interface P {
52
52
  ltr?: Props['ltr'];
53
53
  rtl?: Props['rtl'];
54
54
  inputClass?: Props['inputClass'];
55
+ viewModeClass?: Props['viewModeClass'];
55
56
  }
56
57
 
57
- const props = withDefaults(defineProps<P>(), {
58
- name: () => '',
59
- auto: undefined,
60
- col: undefined,
61
- xs: undefined,
62
- sm: undefined,
63
- md: undefined,
64
- lg: undefined,
65
- xl: undefined,
66
- label: undefined,
67
- caption: undefined,
68
- hint: undefined,
69
- placeholder: undefined,
70
- help: undefined,
71
- required: undefined,
72
- rules: undefined,
73
- viewMode: undefined,
74
- viewModeValue: undefined,
75
- autocomplete: undefined,
76
- topLabel: undefined,
77
- fieldOptions: undefined,
78
- clearable: undefined,
79
- mobile: undefined,
80
- email: undefined,
81
- float: undefined,
82
- sar: undefined,
83
- prependIcon: undefined,
84
- prependIconProps: undefined,
85
- appendIcon: undefined,
86
- appendIconProps: undefined,
87
- copy: undefined,
88
- type: undefined,
89
- ltr: undefined,
90
- rtl: undefined,
91
- inputClass: undefined
92
- })
58
+ const props = defineProps<P>()
93
59
  defineModel<Props['modelValue']>({ required: !1, default: undefined })
94
60
  const { __, props: pluginOptions, formatMoney, copyText } = useMyth()
95
61
  const helper = useBindInput<Props>(() => props, 'input')
@@ -189,8 +155,7 @@ defineOptions({
189
155
  <component
190
156
  :is="viewMode ? QField : QInput"
191
157
  ref="input"
192
- :class="{'m-input__sar': sar}"
193
- class="m-input"
158
+ :class="['m-input',{'m-input__sar': sar}]"
194
159
  v-bind="{
195
160
  ...$attrs,
196
161
  ...theme,
@@ -254,7 +219,7 @@ defineOptions({
254
219
  #control
255
220
  >
256
221
  <slot name="control">
257
- <MInputFieldControl>
222
+ <MInputFieldControl :class="viewModeClass">
258
223
  <MSarString
259
224
  v-if="sar"
260
225
  :text="sarValue"
@@ -6,7 +6,7 @@
6
6
  * Github: https://github.com/mythpe
7
7
  */
8
8
 
9
- import type { QFieldSlots, QIconProps, QInputProps, QInputSlots } from 'quasar'
9
+ import type { QFieldSlots, QIconProps, QInputProps, QInputSlots, VueClassProp } from 'quasar'
10
10
  import type { MaybeRefOrGetter, UnwrapNestedRefs, VNode } from 'vue'
11
11
  import type { MColProps } from './MCol'
12
12
  import type { FieldContext, FieldOptions } from 'vee-validate'
@@ -28,6 +28,10 @@ export type ViewModeProps = {
28
28
  * View Mode value for input or modelValue.
29
29
  */
30
30
  viewModeValue?: any | undefined;
31
+ /**
32
+ * View Mode class for input.
33
+ */
34
+ viewModeClass?: VueClassProp | undefined;
31
35
  }
32
36
  export type InputHelpProps = {
33
37
  /**