@mythpe/quasar-ui-qui 0.2.61 → 0.2.62

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.61",
3
+ "version": "0.2.62",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -52,6 +52,8 @@ interface P {
52
52
  noDefaultLocale?: boolean;
53
53
  prependIcon?: Props['prependIcon'];
54
54
  prependIconProps?: Props['prependIconProps'];
55
+ clearable?: Props['clearable'];
56
+ clearIcon?: Props['clearIcon'];
55
57
  }
56
58
 
57
59
  type ModelType = Props['modelValue']
@@ -86,7 +88,9 @@ const props = withDefaults(defineProps<P>(), {
86
88
  locale: undefined,
87
89
  noDefaultLocale: !1,
88
90
  prependIcon: undefined,
89
- prependIconProps: undefined
91
+ prependIconProps: undefined,
92
+ clearable: undefined,
93
+ clearIcon: undefined
90
94
  })
91
95
 
92
96
  defineModel<ModelType>({ required: !1, default: undefined })
@@ -222,7 +226,8 @@ defineOptions({
222
226
  label: hasTopLabel ? undefined : ( getLabel || undefined),
223
227
  autocomplete: getAutocompleteAttribute || undefined,
224
228
  stackLabel: !0,
225
- clearable: viewMode ? !1 : getProp('clearable')
229
+ clearable: viewMode ? !1 : getProp('clearable'),
230
+ clearIcon: getProp('clearIcon'),
226
231
  }"
227
232
  >
228
233
  <template #control>
@@ -36,6 +36,14 @@ export interface MPickerProps extends BaseInputsProps, Omit<QDateProps, 'modelVa
36
36
  noDefaultLocale?: boolean;
37
37
  prependIcon?: string;
38
38
  prependIconProps?: Partial<QIconProps>;
39
+ /**
40
+ * Appends clearable icon when a value (not undefined or null) is set; When clicked, model becomes null
41
+ */
42
+ clearable?: boolean | undefined;
43
+ /**
44
+ * Custom icon to use for the clear button when using along with 'clearable' prop
45
+ */
46
+ clearIcon?: string | undefined;
39
47
  }
40
48
 
41
49
  export type MPickerSlots = MInputSlots