@db-ux/v-core-components 3.1.20 → 4.0.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 +11 -0
- package/dist/components/custom-select/custom-select.vue.d.ts +1 -1
- package/dist/components/custom-select/model.d.ts +1 -1
- package/dist/components/input/model.d.ts +0 -1
- package/dist/components/switch/model.d.ts +7 -3
- package/dist/components/switch/switch.vue.d.ts +6 -1
- package/dist/db-ux.es.js +1979 -1894
- package/dist/db-ux.umd.js +1 -1
- package/dist/shared/model.d.ts +2 -0
- package/dist/utils/index.d.ts +10 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @db-ux/v-core-components
|
|
2
2
|
|
|
3
|
+
## 4.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- feat: Switch stable rework - [see commit cb2deb0](https://github.com/db-ux-design-system/core-web/commit/cb2deb0f1c54900d1967483aea05d81279c02f59):
|
|
8
|
+
- **BREAKING CHANGE**: remove `emphasis` property
|
|
9
|
+
- introduce validation (invalid and valid)
|
|
10
|
+
- configurable label position
|
|
11
|
+
|
|
12
|
+
- **BREAKING CHANGE**: refactor(Custom Select): renamed `ariaListLabel` property to `listLabel` - [see commit 966d5ad](https://github.com/db-ux-design-system/core-web/commit/966d5ad01f00d0ca1707cc316a63e2d431fff1e9)
|
|
13
|
+
|
|
3
14
|
## 3.1.20
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -35,7 +35,7 @@ declare const __VLS_base: import("vue").DefineComponent<DBCustomSelectProps, {},
|
|
|
35
35
|
messageIcon: import("@db-ux/core-foundations").IconTypes;
|
|
36
36
|
showMessage: boolean | string;
|
|
37
37
|
amountText: string;
|
|
38
|
-
|
|
38
|
+
listLabel: string;
|
|
39
39
|
clearSelectionText: string;
|
|
40
40
|
dropdownWidth: import("../..").CustomSelectDropdownWidthType | string;
|
|
41
41
|
formFieldWidth: import("../../shared/model").WidthType | string;
|
|
@@ -59,6 +59,5 @@ export type DBInputProps = DBInputDefaultProps & GlobalProps & FormTextProps & I
|
|
|
59
59
|
export type DBInputDefaultState = {
|
|
60
60
|
_dataListId?: string;
|
|
61
61
|
getDataList: () => ValueLabelType[];
|
|
62
|
-
isIOSSafari: () => boolean;
|
|
63
62
|
};
|
|
64
63
|
export type DBInputState = DBInputDefaultState & GlobalState & InputEventState<HTMLInputElement> & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState & FromValidState;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { ChangeEventProps, ChangeEventState,
|
|
1
|
+
import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormCheckProps, FormMessageProps, FormProps, FormState, FromValidState, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, LabelVariantHorizontalType, SizeProps } from '../../shared/model';
|
|
2
2
|
export type DBSwitchDefaultProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Add additional icons to indicate active/inactive state.
|
|
5
5
|
*/
|
|
6
6
|
visualAid?: boolean | string;
|
|
7
|
+
/**
|
|
8
|
+
* Change the variant of the label to `trailing` or `leading`. Defaults to `trailing`
|
|
9
|
+
*/
|
|
10
|
+
variant?: LabelVariantHorizontalType;
|
|
7
11
|
};
|
|
8
|
-
export type DBSwitchProps =
|
|
12
|
+
export type DBSwitchProps = GlobalProps & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & FormCheckProps & FormMessageProps & SizeProps & IconProps & IconTrailingProps & IconLeadingProps & DBSwitchDefaultProps;
|
|
9
13
|
export type DBSwitchDefaultState = {};
|
|
10
|
-
export type DBSwitchState = DBSwitchDefaultState & GlobalState & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState;
|
|
14
|
+
export type DBSwitchState = DBSwitchDefaultState & GlobalState & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState & FromValidState;
|
|
@@ -18,8 +18,8 @@ declare const __VLS_base: import("vue").DefineComponent<DBSwitchProps, {}, {}, {
|
|
|
18
18
|
id: string;
|
|
19
19
|
onFocus: (event: InteractionEvent<HTMLInputElement>) => void;
|
|
20
20
|
onBlur: (event: InteractionEvent<HTMLInputElement>) => void;
|
|
21
|
+
variant: never;
|
|
21
22
|
size: import("../../shared/model").SizeType;
|
|
22
|
-
emphasis: import("../../shared/model").EmphasisType;
|
|
23
23
|
icon: import("@db-ux/core-foundations").IconTypes;
|
|
24
24
|
iconLeading: import("@db-ux/core-foundations").IconTypes;
|
|
25
25
|
iconTrailing: import("@db-ux/core-foundations").IconTypes;
|
|
@@ -28,6 +28,11 @@ declare const __VLS_base: import("vue").DefineComponent<DBSwitchProps, {}, {}, {
|
|
|
28
28
|
showRequiredAsterisk: boolean | string;
|
|
29
29
|
showLabel: boolean | string;
|
|
30
30
|
checked: boolean | string;
|
|
31
|
+
message: string;
|
|
32
|
+
validMessage: string;
|
|
33
|
+
invalidMessage: string;
|
|
34
|
+
messageIcon: import("@db-ux/core-foundations").IconTypes;
|
|
35
|
+
showMessage: boolean | string;
|
|
31
36
|
visualAid: boolean | string;
|
|
32
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
38
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|