@db-ux/v-core-components 4.0.4 → 4.1.0
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/CHANGELOG.md +18 -0
- package/dist/components/custom-select/custom-select.vue.d.ts +1 -0
- package/dist/components/custom-select/model.d.ts +5 -0
- package/dist/components/radio/model.d.ts +3 -3
- package/dist/components/radio/radio.vue.d.ts +2 -0
- package/dist/components/switch/switch.vue.d.ts +2 -1
- package/dist/db-ux.es.js +1884 -1666
- package/dist/db-ux.umd.js +1 -1
- package/dist/shared/model.d.ts +6 -2
- package/dist/utils/form-components.d.ts +9 -0
- package/package.json +3 -3
package/dist/shared/model.d.ts
CHANGED
|
@@ -364,6 +364,10 @@ export type FormState = {
|
|
|
364
364
|
* This is an internal Fallback
|
|
365
365
|
*/
|
|
366
366
|
_voiceOverFallback?: string;
|
|
367
|
+
/**
|
|
368
|
+
* We use this to remove form event listener
|
|
369
|
+
*/
|
|
370
|
+
abortController?: AbortController;
|
|
367
371
|
};
|
|
368
372
|
export type InitializedState = {
|
|
369
373
|
initialized: boolean;
|
|
@@ -460,7 +464,7 @@ export type InputEventProps<T> = {
|
|
|
460
464
|
onInput?: (event: InputEvent<T>) => void;
|
|
461
465
|
};
|
|
462
466
|
export type InputEventState<T> = {
|
|
463
|
-
handleInput: (event: InputEvent<T> | any) => void;
|
|
467
|
+
handleInput: (event: InputEvent<T> | any, reset?: boolean) => void;
|
|
464
468
|
};
|
|
465
469
|
export type ChangeEvent<T> = Event;
|
|
466
470
|
export type ChangeEventProps<T> = {
|
|
@@ -468,7 +472,7 @@ export type ChangeEventProps<T> = {
|
|
|
468
472
|
onChange?: (event: ChangeEvent<T>) => void;
|
|
469
473
|
};
|
|
470
474
|
export type ChangeEventState<T> = {
|
|
471
|
-
handleChange: (event: ChangeEvent<T> | any) => void;
|
|
475
|
+
handleChange: (event: ChangeEvent<T> | any, reset?: boolean) => void;
|
|
472
476
|
};
|
|
473
477
|
export type InteractionEvent<T> = FocusEvent;
|
|
474
478
|
export type FocusEventProps<T> = {
|
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
export declare const handleFrameworkEventAngular: (component: any, event: any, modelValue?: string) => void;
|
|
2
2
|
export declare const handleFrameworkEventVue: (emit: (event: string, ...args: any[]) => void, event: any, modelValue?: string) => void;
|
|
3
|
+
export declare const addResetEventListener: (element: any, resetFunction: (event: Event) => void, signal: AbortSignal) => void;
|
|
4
|
+
export declare const addCheckedResetEventListener: (element: any, props: {
|
|
5
|
+
checked?: boolean | string;
|
|
6
|
+
defaultChecked?: boolean;
|
|
7
|
+
}, resetFunction: (event: any) => void, signal: AbortSignal) => void;
|
|
8
|
+
export declare const addValueResetEventListener: (element: any, props: {
|
|
9
|
+
value?: string;
|
|
10
|
+
defaultValue?: string;
|
|
11
|
+
}, resetFunction: (event: any) => void, signal: AbortSignal) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@db-ux/v-core-components",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Vue components for @db-ux/core-components",
|
|
6
6
|
"repository": {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"sideEffects": false,
|
|
58
58
|
"source": "src/index.ts",
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@db-ux/core-components": "4.0
|
|
61
|
-
"@db-ux/core-foundations": "4.0
|
|
60
|
+
"@db-ux/core-components": "4.1.0",
|
|
61
|
+
"@db-ux/core-foundations": "4.1.0"
|
|
62
62
|
}
|
|
63
63
|
}
|