@mythpe/quasar-ui-qui 0.2.27 → 0.2.29

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.27",
3
+ "version": "0.2.29",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -72,6 +72,7 @@ const props = withDefaults(defineProps<P>(), {
72
72
  })
73
73
 
74
74
  type Emits = {
75
+ (e: 'save', value: string | null): void;
75
76
  (e: 'clear'): void;
76
77
  (e: 'undo'): void;
77
78
  }
@@ -113,6 +114,7 @@ const save = (type: 'image/jpeg' | 'image/svg+xml') => {
113
114
  const v = isEmpty ? null : padRef.value?.save(type)
114
115
  handleBlur(undefined, !0)
115
116
  handleChange(v, !0)
117
+ emit('save', v || null)
116
118
  }
117
119
  const clear = () => {
118
120
  padRef.value?.clear()
@@ -114,7 +114,7 @@ export interface MSignaturePadProps extends Omit<MColProps, 'name'>, Pick<BaseIn
114
114
  * Default value for signature url.
115
115
  * Default is: undefined.
116
116
  */
117
- url?: string | undefined;
117
+ url?: string | null | undefined;
118
118
  /**
119
119
  * Hide control buttons.
120
120
  * Default is: false.