@mythpe/quasar-ui-qui 0.2.5 → 0.2.7

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.2.5",
3
+ "version": "0.2.7",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -41,7 +41,11 @@ interface P {
41
41
  mobile?: Props['mobile'];
42
42
  email?: Props['email'];
43
43
  float?: Props['float'];
44
- sar?: boolean;
44
+ sar?: Props['sar'];
45
+ prependIcon?: Props['prependIcon'];
46
+ prependIconProps?: Props['prependIconProps'];
47
+ appendIcon?: Props['appendIcon'];
48
+ appendIconProps?: Props['appendIconProps'];
45
49
  }
46
50
 
47
51
  const props = withDefaults(defineProps<P>(), {
@@ -69,7 +73,11 @@ const props = withDefaults(defineProps<P>(), {
69
73
  mobile: undefined,
70
74
  email: undefined,
71
75
  float: undefined,
72
- sar: !1
76
+ sar: !1,
77
+ prependIcon: undefined,
78
+ prependIconProps: undefined,
79
+ appendIcon: undefined,
80
+ appendIconProps: undefined
73
81
  })
74
82
  defineModel<Props['modelValue']>({ required: !1, default: undefined })
75
83
  const { __, props: pluginOptions } = useMyth()
@@ -151,6 +159,30 @@ defineOptions({
151
159
  }"
152
160
  v-on="listeners"
153
161
  >
162
+ <template
163
+ v-if="!!prependIcon"
164
+ #prepend
165
+ >
166
+ <q-icon
167
+ :name="prependIcon"
168
+ v-bind="prependIconProps"
169
+ />
170
+ </template>
171
+ <template
172
+ v-if="!!appendIcon"
173
+ #append
174
+ >
175
+ <q-icon
176
+ :name="appendIcon"
177
+ v-bind="appendIconProps"
178
+ />
179
+ </template>
180
+ <template
181
+ v-else-if="sar && !viewMode"
182
+ #append
183
+ >
184
+ <MSarCol />
185
+ </template>
154
186
  <template
155
187
  v-if="viewMode"
156
188
  #control
@@ -166,12 +198,7 @@ defineOptions({
166
198
  </MInputFieldControl>
167
199
  </slot>
168
200
  </template>
169
- <template
170
- v-if="sar && !viewMode"
171
- #append
172
- >
173
- <MSarCol />
174
- </template>
201
+
175
202
  <template
176
203
  v-for="(_,slot) in $slots as Readonly<QInputSlots>"
177
204
  :key="slot"
@@ -17,7 +17,7 @@ import type {
17
17
  QEditorSlots,
18
18
  QFieldSlots,
19
19
  QFileProps,
20
- QFileSlots,
20
+ QFileSlots, QIconProps,
21
21
  QInputProps,
22
22
  QInputSlots,
23
23
  QItemProps,
@@ -44,6 +44,7 @@ import type { MTransitionProps, MTransitionsSlots } from './api/MTransition'
44
44
  import type { MAxiosProps, MAxiosSlots } from './api/MAxios'
45
45
  import type { MSelectProps, MSelectSlots } from './api/MSelect'
46
46
  import type { MSignaturePadProps, MSignaturePadSlots } from './api/MSignaturePad'
47
+ import Parials from '../components/parials'
47
48
 
48
49
  export type MBtnProps = QBtnProps & {
49
50
  ariaLabel?: boolean | string | null | undefined;
@@ -344,6 +345,10 @@ export type BaseInputsSlots = InputHelpSlots & {
344
345
 
345
346
  export interface MInputProps extends Omit<QInputProps, 'rules' | 'name' | 'modelValue' | 'label' | 'hint'>, BaseInputsProps {
346
347
  sar?: boolean;
348
+ prependIcon?: string;
349
+ prependIconProps?: Partial<QIconProps>;
350
+ appendIcon?: string;
351
+ appendIconProps?: Partial<QIconProps>;
347
352
  }
348
353
 
349
354
  export type MInputSlots = QInputSlots & QFieldSlots & BaseInputsSlots