@knime/kds-components 0.7.0 → 0.9.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/dist/accessories/Avatar/KdsAvatar.vue.d.ts +1 -1
- package/dist/accessories/Avatar/index.d.ts +3 -0
- package/dist/accessories/Avatar/index.d.ts.map +1 -0
- package/dist/accessories/ColorSwatch/enums.d.ts +11 -0
- package/dist/accessories/ColorSwatch/enums.d.ts.map +1 -0
- package/dist/accessories/ColorSwatch/index.d.ts +4 -0
- package/dist/accessories/ColorSwatch/index.d.ts.map +1 -0
- package/dist/accessories/ColorSwatch/types.d.ts +4 -3
- package/dist/accessories/ColorSwatch/types.d.ts.map +1 -1
- package/dist/accessories/Icon/enums.d.ts +19 -0
- package/dist/accessories/Icon/enums.d.ts.map +1 -0
- package/dist/accessories/Icon/index.d.ts +5 -0
- package/dist/accessories/Icon/index.d.ts.map +1 -0
- package/dist/accessories/Icon/types.d.ts +5 -6
- package/dist/accessories/Icon/types.d.ts.map +1 -1
- package/dist/accessories/LiveStatus/KdsLiveStatus.vue.d.ts +9 -0
- package/dist/accessories/LiveStatus/KdsLiveStatus.vue.d.ts.map +1 -0
- package/dist/accessories/LiveStatus/enums.d.ts +14 -0
- package/dist/accessories/LiveStatus/enums.d.ts.map +1 -0
- package/dist/accessories/LiveStatus/index.d.ts +4 -0
- package/dist/accessories/LiveStatus/index.d.ts.map +1 -0
- package/dist/accessories/LiveStatus/types.d.ts +23 -0
- package/dist/accessories/LiveStatus/types.d.ts.map +1 -0
- package/dist/accessories/LoadingSpinner/enums.d.ts +6 -0
- package/dist/accessories/LoadingSpinner/enums.d.ts.map +1 -0
- package/dist/accessories/LoadingSpinner/index.d.ts +4 -0
- package/dist/accessories/LoadingSpinner/index.d.ts.map +1 -0
- package/dist/accessories/LoadingSpinner/types.d.ts +3 -2
- package/dist/accessories/LoadingSpinner/types.d.ts.map +1 -1
- package/dist/accessories/index.d.ts +10 -9
- package/dist/accessories/index.d.ts.map +1 -1
- package/dist/buttons/KdsButton/KdsButton.vue.d.ts.map +1 -0
- package/dist/buttons/KdsButton/index.d.ts +3 -0
- package/dist/buttons/KdsButton/index.d.ts.map +1 -0
- package/dist/buttons/KdsButton/types.d.ts +40 -0
- package/dist/buttons/KdsButton/types.d.ts.map +1 -0
- package/dist/buttons/KdsLinkButton/KdsLinkButton.vue.d.ts.map +1 -0
- package/dist/buttons/KdsLinkButton/index.d.ts +3 -0
- package/dist/buttons/KdsLinkButton/index.d.ts.map +1 -0
- package/dist/buttons/KdsLinkButton/types.d.ts +42 -0
- package/dist/buttons/KdsLinkButton/types.d.ts.map +1 -0
- package/dist/buttons/KdsProgressButton/KdsProgressButton.vue.d.ts.map +1 -0
- package/dist/buttons/KdsProgressButton/enums.d.ts +8 -0
- package/dist/buttons/KdsProgressButton/enums.d.ts.map +1 -0
- package/dist/buttons/KdsProgressButton/index.d.ts +4 -0
- package/dist/buttons/KdsProgressButton/index.d.ts.map +1 -0
- package/dist/buttons/KdsProgressButton/types.d.ts +17 -0
- package/dist/buttons/KdsProgressButton/types.d.ts.map +1 -0
- package/dist/buttons/KdsToggleButton/KdsToggleButton.vue.d.ts.map +1 -0
- package/dist/buttons/KdsToggleButton/enums.d.ts +6 -0
- package/dist/buttons/KdsToggleButton/enums.d.ts.map +1 -0
- package/dist/buttons/KdsToggleButton/index.d.ts +4 -0
- package/dist/buttons/KdsToggleButton/index.d.ts.map +1 -0
- package/dist/buttons/KdsToggleButton/types.d.ts +5 -0
- package/dist/buttons/KdsToggleButton/types.d.ts.map +1 -0
- package/dist/buttons/enums.d.ts +14 -0
- package/dist/buttons/enums.d.ts.map +1 -0
- package/dist/buttons/index.d.ts +10 -7
- package/dist/buttons/index.d.ts.map +1 -1
- package/dist/buttons/types.d.ts +9 -151
- package/dist/buttons/types.d.ts.map +1 -1
- package/dist/forms/Checkbox/enums.d.ts +12 -0
- package/dist/forms/Checkbox/enums.d.ts.map +1 -0
- package/dist/forms/Checkbox/index.d.ts +5 -0
- package/dist/forms/Checkbox/index.d.ts.map +1 -0
- package/dist/forms/Checkbox/types.d.ts +3 -2
- package/dist/forms/Checkbox/types.d.ts.map +1 -1
- package/dist/forms/RadioButton/KdsRadioButtonGroup.vue.d.ts.map +1 -1
- package/dist/forms/RadioButton/KdsValueSwitch.vue.d.ts.map +1 -1
- package/dist/forms/RadioButton/ValueSwitchItem.vue.d.ts.map +1 -1
- package/dist/forms/RadioButton/enums.d.ts +16 -0
- package/dist/forms/RadioButton/enums.d.ts.map +1 -0
- package/dist/forms/RadioButton/index.d.ts +6 -0
- package/dist/forms/RadioButton/index.d.ts.map +1 -0
- package/dist/forms/RadioButton/types.d.ts +4 -3
- package/dist/forms/RadioButton/types.d.ts.map +1 -1
- package/dist/forms/{BaseFormFieldWrapper.vue.d.ts → _helper/BaseFormFieldWrapper.vue.d.ts} +6 -1
- package/dist/forms/_helper/BaseFormFieldWrapper.vue.d.ts.map +1 -0
- package/dist/forms/_helper/InfoPopover/InfoPopover.vue.d.ts +27 -0
- package/dist/forms/_helper/InfoPopover/InfoPopover.vue.d.ts.map +1 -0
- package/dist/forms/_helper/InfoPopover/KdsInfoToggleButton.vue.d.ts +36 -0
- package/dist/forms/_helper/InfoPopover/KdsInfoToggleButton.vue.d.ts.map +1 -0
- package/dist/forms/_helper/InfoPopover/index.d.ts +3 -0
- package/dist/forms/_helper/InfoPopover/index.d.ts.map +1 -0
- package/dist/forms/_helper/InfoPopover/types.d.ts +11 -0
- package/dist/forms/_helper/InfoPopover/types.d.ts.map +1 -0
- package/dist/forms/_helper/KdsLabel.vue.d.ts +9 -0
- package/dist/forms/_helper/KdsLabel.vue.d.ts.map +1 -0
- package/dist/forms/{KdsSubText.vue.d.ts → _helper/KdsSubText.vue.d.ts} +1 -1
- package/dist/forms/_helper/KdsSubText.vue.d.ts.map +1 -0
- package/dist/forms/_helper/VariablePopover/KdsVariableToggleButton.vue.d.ts +39 -0
- package/dist/forms/_helper/VariablePopover/KdsVariableToggleButton.vue.d.ts.map +1 -0
- package/dist/forms/_helper/VariablePopover/VariablePopover.vue.d.ts +27 -0
- package/dist/forms/_helper/VariablePopover/VariablePopover.vue.d.ts.map +1 -0
- package/dist/forms/_helper/VariablePopover/index.d.ts +3 -0
- package/dist/forms/_helper/VariablePopover/index.d.ts.map +1 -0
- package/dist/forms/_helper/VariablePopover/types.d.ts +16 -0
- package/dist/forms/_helper/VariablePopover/types.d.ts.map +1 -0
- package/dist/forms/index.d.ts +13 -14
- package/dist/forms/index.d.ts.map +1 -1
- package/dist/forms/inputs/BaseInput.vue.d.ts +6 -6
- package/dist/forms/inputs/BaseInput.vue.d.ts.map +1 -1
- package/dist/forms/inputs/NumberInput/KdsNumberInput.vue.d.ts.map +1 -1
- package/dist/forms/inputs/NumberInput/index.d.ts +2 -0
- package/dist/forms/inputs/NumberInput/index.d.ts.map +1 -0
- package/dist/forms/inputs/PatternInput/KdsPatternInput.vue.d.ts.map +1 -1
- package/dist/forms/inputs/PatternInput/index.d.ts +2 -0
- package/dist/forms/inputs/PatternInput/index.d.ts.map +1 -0
- package/dist/forms/inputs/SearchInput/KdsSearchInput.vue.d.ts.map +1 -1
- package/dist/forms/inputs/SearchInput/index.d.ts +2 -0
- package/dist/forms/inputs/SearchInput/index.d.ts.map +1 -0
- package/dist/forms/inputs/TextInput/KdsTextInput.vue.d.ts.map +1 -1
- package/dist/forms/inputs/TextInput/index.d.ts +2 -0
- package/dist/forms/inputs/TextInput/index.d.ts.map +1 -0
- package/dist/forms/inputs/Textarea/KdsTextarea.vue.d.ts.map +1 -1
- package/dist/forms/inputs/Textarea/index.d.ts +2 -0
- package/dist/forms/inputs/Textarea/index.d.ts.map +1 -0
- package/dist/forms/inputs/index.d.ts +7 -0
- package/dist/forms/inputs/index.d.ts.map +1 -0
- package/dist/forms/types.d.ts +23 -2
- package/dist/forms/types.d.ts.map +1 -1
- package/dist/index.css +774 -570
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1501 -934
- package/dist/index.js.map +1 -1
- package/dist/overlays/Modal/KdsModal.vue.d.ts +7 -7
- package/dist/overlays/Modal/KdsModalLayout.vue.d.ts +1 -1
- package/dist/overlays/Modal/enums.d.ts +41 -0
- package/dist/overlays/Modal/enums.d.ts.map +1 -0
- package/dist/overlays/Modal/index.d.ts +7 -0
- package/dist/overlays/Modal/index.d.ts.map +1 -0
- package/dist/overlays/Modal/types.d.ts +9 -17
- package/dist/overlays/Modal/types.d.ts.map +1 -1
- package/dist/overlays/Modal/useKdsDynamicModal.d.ts +16 -16
- package/dist/overlays/Popover/KdsPopover.vue.d.ts +2 -0
- package/dist/overlays/Popover/KdsPopover.vue.d.ts.map +1 -1
- package/dist/overlays/Popover/enums.d.ts +14 -0
- package/dist/overlays/Popover/enums.d.ts.map +1 -0
- package/dist/overlays/Popover/index.d.ts +4 -0
- package/dist/overlays/Popover/index.d.ts.map +1 -0
- package/dist/overlays/Popover/types.d.ts +24 -3
- package/dist/overlays/Popover/types.d.ts.map +1 -1
- package/dist/overlays/index.d.ts +4 -7
- package/dist/overlays/index.d.ts.map +1 -1
- package/dist/structures/Card/KdsCard.vue.d.ts +60 -0
- package/dist/structures/Card/KdsCard.vue.d.ts.map +1 -0
- package/dist/structures/Card/enums.d.ts +7 -0
- package/dist/structures/Card/enums.d.ts.map +1 -0
- package/dist/structures/Card/index.d.ts +4 -0
- package/dist/structures/Card/index.d.ts.map +1 -0
- package/dist/structures/Card/types.d.ts +69 -0
- package/dist/structures/Card/types.d.ts.map +1 -0
- package/dist/structures/EmptyState/KdsEmptyState.vue.d.ts +145 -0
- package/dist/structures/EmptyState/KdsEmptyState.vue.d.ts.map +1 -0
- package/dist/structures/EmptyState/types.d.ts +11 -0
- package/dist/structures/EmptyState/types.d.ts.map +1 -0
- package/dist/structures/index.d.ts +5 -0
- package/dist/structures/index.d.ts.map +1 -0
- package/dist/util/enums.d.ts +7 -0
- package/dist/util/enums.d.ts.map +1 -0
- package/dist/util/index.d.ts +1 -0
- package/dist/util/index.d.ts.map +1 -1
- package/dist/util/useKdsDarkMode.d.ts +2 -1
- package/dist/util/useKdsDarkMode.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/EmptyState/KdsEmptyState.vue.d.ts +0 -165
- package/dist/EmptyState/KdsEmptyState.vue.d.ts.map +0 -1
- package/dist/EmptyState/types.d.ts +0 -11
- package/dist/EmptyState/types.d.ts.map +0 -1
- package/dist/accessories/Icon/constants.d.ts +0 -6
- package/dist/accessories/Icon/constants.d.ts.map +0 -1
- package/dist/buttons/KdsButton.vue.d.ts.map +0 -1
- package/dist/buttons/KdsInfoToggleButton.vue.d.ts +0 -15
- package/dist/buttons/KdsInfoToggleButton.vue.d.ts.map +0 -1
- package/dist/buttons/KdsLinkButton.vue.d.ts.map +0 -1
- package/dist/buttons/KdsProgressButton.vue.d.ts.map +0 -1
- package/dist/buttons/KdsToggleButton.vue.d.ts.map +0 -1
- package/dist/buttons/KdsVariableToggleButton.vue.d.ts +0 -18
- package/dist/buttons/KdsVariableToggleButton.vue.d.ts.map +0 -1
- package/dist/buttons/constants.d.ts +0 -3
- package/dist/buttons/constants.d.ts.map +0 -1
- package/dist/constants.d.ts +0 -2
- package/dist/constants.d.ts.map +0 -1
- package/dist/forms/BaseFormFieldWrapper.vue.d.ts.map +0 -1
- package/dist/forms/KdsLabel.vue.d.ts +0 -6
- package/dist/forms/KdsLabel.vue.d.ts.map +0 -1
- package/dist/forms/KdsSubText.vue.d.ts.map +0 -1
- package/dist/overlays/Modal/constants.d.ts +0 -21
- package/dist/overlays/Modal/constants.d.ts.map +0 -1
- package/dist/overlays/Popover/constants.d.ts +0 -2
- package/dist/overlays/Popover/constants.d.ts.map +0 -1
- package/dist/types.d.ts +0 -3
- package/dist/types.d.ts.map +0 -1
- /package/dist/buttons/{KdsButton.vue.d.ts → KdsButton/KdsButton.vue.d.ts} +0 -0
- /package/dist/buttons/{KdsLinkButton.vue.d.ts → KdsLinkButton/KdsLinkButton.vue.d.ts} +0 -0
- /package/dist/buttons/{KdsProgressButton.vue.d.ts → KdsProgressButton/KdsProgressButton.vue.d.ts} +0 -0
- /package/dist/buttons/{KdsToggleButton.vue.d.ts → KdsToggleButton/KdsToggleButton.vue.d.ts} +0 -0
package/dist/buttons/types.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { KdsIconName } from '../accessories/Icon/types';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type KdsButtonVariant = (typeof
|
|
5
|
-
export type KdsToggleButtonVariant = (typeof kdsToggleButtonVariants)[number];
|
|
2
|
+
import { kdsButtonSize, kdsButtonVariant } from './enums';
|
|
3
|
+
export type KdsButtonSize = (typeof kdsButtonSize)[keyof typeof kdsButtonSize];
|
|
4
|
+
export type KdsButtonVariant = (typeof kdsButtonVariant)[keyof typeof kdsButtonVariant];
|
|
6
5
|
/**
|
|
7
6
|
* Properties common to all button components
|
|
8
7
|
*/
|
|
9
|
-
type
|
|
10
|
-
size?:
|
|
8
|
+
export type KdsButtonCommonProps<TVariant extends KdsButtonVariant = KdsButtonVariant> = {
|
|
9
|
+
size?: KdsButtonSize;
|
|
11
10
|
disabled?: boolean;
|
|
12
11
|
title?: string;
|
|
12
|
+
variant?: TVariant;
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
15
|
* Helper types
|
|
@@ -26,14 +26,8 @@ type LeadingIconOnly = {
|
|
|
26
26
|
trailingIcon?: never;
|
|
27
27
|
ariaLabel: string;
|
|
28
28
|
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
32
|
-
type WithVariant<TVariant> = {
|
|
33
|
-
variant: TVariant;
|
|
34
|
-
};
|
|
35
|
-
type WithLabelAndIcons = LabelAndIcons | LeadingIconOnly;
|
|
36
|
-
type WithDestructive = {
|
|
29
|
+
export type WithLabelAndIcons = LabelAndIcons | LeadingIconOnly;
|
|
30
|
+
export type WithDestructive = {
|
|
37
31
|
/**
|
|
38
32
|
* If set to true, the button will prominently warn the user of a destructive action.
|
|
39
33
|
*/
|
|
@@ -51,151 +45,15 @@ type WithError = {
|
|
|
51
45
|
*/
|
|
52
46
|
error?: boolean;
|
|
53
47
|
};
|
|
54
|
-
export type WithRouterNavigation = {
|
|
55
|
-
/**
|
|
56
|
-
* Route Location the link should navigate to when clicked on; passed to RouterLink/NuxtLink component if globally available
|
|
57
|
-
*/
|
|
58
|
-
to: string | Record<string, unknown>;
|
|
59
|
-
};
|
|
60
|
-
export type WithAnchorElementAttributes = {
|
|
61
|
-
/**
|
|
62
|
-
* If set to true, the link will be downloaded instead of navigating to it.
|
|
63
|
-
*/
|
|
64
|
-
download?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Where to display the linked URL, as the name for a browsing context.
|
|
67
|
-
*/
|
|
68
|
-
target?: "_blank" | "_parent" | "_self" | "_top" | string | null;
|
|
69
|
-
/**
|
|
70
|
-
* A rel attribute value to apply on the link. In Nuxt, defaults to "noopener noreferrer" for external links.
|
|
71
|
-
*/
|
|
72
|
-
rel?: "noopener" | "noreferrer" | "nofollow" | "sponsored" | "ugc" | string | null;
|
|
73
|
-
};
|
|
74
48
|
type WithToggled = {
|
|
75
49
|
/**
|
|
76
50
|
* Represents the button's toggled state
|
|
77
51
|
*/
|
|
78
52
|
toggled?: boolean;
|
|
79
53
|
};
|
|
80
|
-
/**
|
|
81
|
-
* Prefixed versions of composable types for use in composite components
|
|
82
|
-
* Pre-computed here to avoid Vue SFC compiler issues with mapped types
|
|
83
|
-
*/
|
|
84
|
-
type PrefixedCommonProps = {
|
|
85
|
-
buttonSize?: CommonProps["size"];
|
|
86
|
-
buttonDisabled?: CommonProps["disabled"];
|
|
87
|
-
buttonTitle?: CommonProps["title"];
|
|
88
|
-
};
|
|
89
|
-
type PrefixedLabelAndIcons = {
|
|
90
|
-
buttonLabel: string;
|
|
91
|
-
buttonLeadingIcon?: LabelAndIcons["leadingIcon"];
|
|
92
|
-
buttonTrailingIcon?: LabelAndIcons["trailingIcon"];
|
|
93
|
-
buttonAriaLabel?: never;
|
|
94
|
-
};
|
|
95
|
-
type PrefixedLeadingIconOnly = {
|
|
96
|
-
buttonLabel?: never;
|
|
97
|
-
buttonLeadingIcon: LeadingIconOnly["leadingIcon"];
|
|
98
|
-
buttonTrailingIcon?: never;
|
|
99
|
-
buttonAriaLabel: string;
|
|
100
|
-
};
|
|
101
|
-
type PrefixedWithLabelAndIcons = PrefixedLabelAndIcons | PrefixedLeadingIconOnly;
|
|
102
|
-
type PrefixedWithVariant = {
|
|
103
|
-
buttonVariant?: KdsButtonVariant;
|
|
104
|
-
};
|
|
105
|
-
type PrefixedWithDestructive = {
|
|
106
|
-
buttonDestructive?: WithDestructive["destructive"];
|
|
107
|
-
};
|
|
108
|
-
type PrefixedWithRouterNavigation = {
|
|
109
|
-
buttonTo: WithRouterNavigation["to"];
|
|
110
|
-
};
|
|
111
|
-
type PrefixedWithAnchorElementAttributes = {
|
|
112
|
-
buttonDownload?: WithAnchorElementAttributes["download"];
|
|
113
|
-
buttonTarget?: WithAnchorElementAttributes["target"];
|
|
114
|
-
buttonRel?: WithAnchorElementAttributes["rel"];
|
|
115
|
-
};
|
|
116
54
|
/**
|
|
117
55
|
* Type for BaseButton component which supports all behaviors
|
|
118
56
|
*/
|
|
119
|
-
export type BaseButtonProps =
|
|
120
|
-
/**
|
|
121
|
-
* Component types
|
|
122
|
-
*/
|
|
123
|
-
export type KdsButtonProps = CommonProps & Partial<WithVariant<KdsButtonVariant>> & WithLabelAndIcons & WithDestructive;
|
|
124
|
-
export type KdsLinkButtonProps = CommonProps & Partial<WithVariant<KdsButtonVariant>> & WithLabelAndIcons & WithDestructive & WithRouterNavigation & WithAnchorElementAttributes;
|
|
125
|
-
export type KdsToggleButtonProps = CommonProps & Partial<WithVariant<KdsToggleButtonVariant>> & WithLabelAndIcons;
|
|
126
|
-
export type KdsVariableToggleButtonProps = KdsInfoToggleButtonProps & {
|
|
127
|
-
/**
|
|
128
|
-
* If set to true, indicates that an input flow variable is configured.
|
|
129
|
-
*/
|
|
130
|
-
inSet?: boolean;
|
|
131
|
-
/**
|
|
132
|
-
* If set to true, indicates that an output flow variable is configured.
|
|
133
|
-
*/
|
|
134
|
-
outSet?: boolean;
|
|
135
|
-
/**
|
|
136
|
-
* If set to true, the button indicates an error state.
|
|
137
|
-
*/
|
|
138
|
-
error?: boolean;
|
|
139
|
-
};
|
|
140
|
-
export type KdsInfoToggleButtonProps = {
|
|
141
|
-
disabled?: boolean;
|
|
142
|
-
/**
|
|
143
|
-
* If set to true, the button is visible even when not focused.
|
|
144
|
-
*/
|
|
145
|
-
hidden?: boolean;
|
|
146
|
-
};
|
|
147
|
-
/**
|
|
148
|
-
* Progress button types
|
|
149
|
-
*/
|
|
150
|
-
export type KdsProgressButtonState = "default" | "progress" | "success" | "error";
|
|
151
|
-
type KdsProgressButtonCommonProps = {
|
|
152
|
-
size?: KdsSize;
|
|
153
|
-
variant?: KdsButtonVariant;
|
|
154
|
-
disabled?: boolean;
|
|
155
|
-
};
|
|
156
|
-
type KdsProgressButtonIconWithLabel = {
|
|
157
|
-
label: string;
|
|
158
|
-
leadingIcon: KdsIconName;
|
|
159
|
-
ariaLabel?: never;
|
|
160
|
-
};
|
|
161
|
-
type KdsProgressButtonIconOnly = {
|
|
162
|
-
label?: never;
|
|
163
|
-
leadingIcon: KdsIconName;
|
|
164
|
-
ariaLabel: string;
|
|
165
|
-
};
|
|
166
|
-
export type KdsProgressButtonProps = KdsProgressButtonCommonProps & (KdsProgressButtonIconWithLabel | KdsProgressButtonIconOnly);
|
|
167
|
-
/**
|
|
168
|
-
* Prefixed component types for use in composite components
|
|
169
|
-
* Pre-computed here to avoid Vue SFC compiler issues with mapped types
|
|
170
|
-
*/
|
|
171
|
-
export type PrefixedKdsButtonProps = PrefixedCommonProps & PrefixedWithVariant & PrefixedWithLabelAndIcons & PrefixedWithDestructive;
|
|
172
|
-
export type PrefixedKdsLinkButtonProps = PrefixedCommonProps & PrefixedWithVariant & PrefixedWithLabelAndIcons & PrefixedWithDestructive & PrefixedWithRouterNavigation & PrefixedWithAnchorElementAttributes;
|
|
173
|
-
/**
|
|
174
|
-
* Helper types for excluding button props in composite components
|
|
175
|
-
* These represent the negation of prefixed button props
|
|
176
|
-
*/
|
|
177
|
-
export type PrefixedButtonPropsAsNever = {
|
|
178
|
-
buttonLabel?: never;
|
|
179
|
-
buttonLeadingIcon?: never;
|
|
180
|
-
buttonTrailingIcon?: never;
|
|
181
|
-
buttonAriaLabel?: never;
|
|
182
|
-
buttonSize?: never;
|
|
183
|
-
buttonDisabled?: never;
|
|
184
|
-
buttonTitle?: never;
|
|
185
|
-
buttonVariant?: never;
|
|
186
|
-
buttonDestructive?: never;
|
|
187
|
-
buttonTo?: never;
|
|
188
|
-
buttonDownload?: never;
|
|
189
|
-
buttonTarget?: never;
|
|
190
|
-
buttonRel?: never;
|
|
191
|
-
};
|
|
192
|
-
export type PrefixedAnchorAttributesAsNever = {
|
|
193
|
-
buttonDownload?: never;
|
|
194
|
-
buttonTarget?: never;
|
|
195
|
-
buttonRel?: never;
|
|
196
|
-
};
|
|
197
|
-
export type PrefixedRouterNavigationAsNever = {
|
|
198
|
-
buttonTo?: never;
|
|
199
|
-
};
|
|
57
|
+
export type BaseButtonProps = KdsButtonCommonProps & WithLabelAndIcons & WithDestructive & WithSuccess & WithError & WithToggled;
|
|
200
58
|
export {};
|
|
201
59
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/buttons/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/buttons/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM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AM,eAAe,GAAG,oBAAoB,GAChD,iBAAiB,GACjB,eAAe,GACf,WAAW,GACX,SAAS,GACT,WAAW,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const kdsCheckboxGroupAlignment: {
|
|
2
|
+
readonly VERTICAL: "vertical";
|
|
3
|
+
readonly HORIZONTAL: "horizontal";
|
|
4
|
+
};
|
|
5
|
+
export declare const kdsCheckboxGroupAlignments: ("vertical" | "horizontal")[];
|
|
6
|
+
export declare const kdsCheckboxValue: {
|
|
7
|
+
readonly CHECKED: true;
|
|
8
|
+
readonly UNCHECKED: false;
|
|
9
|
+
readonly INDETERMINATE: "indeterminate";
|
|
10
|
+
};
|
|
11
|
+
export declare const kdsCheckboxValues: (boolean | "indeterminate")[];
|
|
12
|
+
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/forms/Checkbox/enums.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;;;CAG5B,CAAC;AAEX,eAAO,MAAM,0BAA0B,+BAEtC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AAEX,eAAO,MAAM,iBAAiB,+BAAkC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as KdsCheckbox } from './KdsCheckbox.vue';
|
|
2
|
+
export { default as KdsCheckboxGroup } from './KdsCheckboxGroup.vue';
|
|
3
|
+
export { kdsCheckboxGroupAlignment, kdsCheckboxGroupAlignments, kdsCheckboxValue, kdsCheckboxValues, } from './enums';
|
|
4
|
+
export type * from './types';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/forms/Checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAErE,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC1B,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,SAAS,CAAC;AACjB,mBAAmB,SAAS,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { kdsCheckboxGroupAlignment, kdsCheckboxValue } from './enums';
|
|
2
|
+
export type KdsCheckboxValue = (typeof kdsCheckboxValue)[keyof typeof kdsCheckboxValue];
|
|
2
3
|
type BaseProps = {
|
|
3
4
|
/**
|
|
4
5
|
* Whether the checkbox is disabled
|
|
@@ -44,7 +45,7 @@ export type KdsCheckboxGroupOption = {
|
|
|
44
45
|
helperText?: string;
|
|
45
46
|
error?: boolean;
|
|
46
47
|
};
|
|
47
|
-
export type KdsCheckboxGroupAlignment =
|
|
48
|
+
export type KdsCheckboxGroupAlignment = (typeof kdsCheckboxGroupAlignment)[keyof typeof kdsCheckboxGroupAlignment];
|
|
48
49
|
export type KdsCheckboxGroupProps = {
|
|
49
50
|
id?: string;
|
|
50
51
|
label?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/forms/Checkbox/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/forms/Checkbox/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEtE,MAAM,MAAM,gBAAgB,GAC1B,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAE3D,KAAK,SAAS,GAAG;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;I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S,CAAC;AAGjB,KAAK,WAAW,GAAG,wBAAwB,CAAC;AAuC5C,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"KdsRadioButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/forms/RadioButton/KdsRadioButtonGroup.vue"],"names":[],"mappings":"AA6GA,OAAO,KAAK,EAEV,wBAAwB,EACzB,MAAM,SAAS,CAAC;AAGjB,KAAK,WAAW,GAAG,wBAAwB,CAAC;AAuC5C,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;;;;;;;;;;;AA0IhB,wBAUG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsValueSwitch.vue.d.ts","sourceRoot":"","sources":["../../../src/forms/RadioButton/KdsValueSwitch.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdsValueSwitch.vue.d.ts","sourceRoot":"","sources":["../../../src/forms/RadioButton/KdsValueSwitch.vue"],"names":[],"mappings":"AA6IA,OAAO,KAAK,EAAwB,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAIzE,KAAK,WAAW,GAAG,mBAAmB,CAAC;AA+CvC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;;;;;;;;;;;;;AAqJhB,wBAUG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValueSwitchItem.vue.d.ts","sourceRoot":"","sources":["../../../src/forms/RadioButton/ValueSwitchItem.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ValueSwitchItem.vue.d.ts","sourceRoot":"","sources":["../../../src/forms/RadioButton/ValueSwitchItem.vue"],"names":[],"mappings":";AAqQA,wBASG"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const kdsRadioButtonGroupAlignment: {
|
|
2
|
+
readonly VERTICAL: "vertical";
|
|
3
|
+
readonly HORIZONTAL: "horizontal";
|
|
4
|
+
};
|
|
5
|
+
export declare const kdsRadioButtonGroupAlignments: ("vertical" | "horizontal")[];
|
|
6
|
+
export declare const kdsValueSwitchSize: {
|
|
7
|
+
readonly SMALL: "small";
|
|
8
|
+
readonly MEDIUM: "medium";
|
|
9
|
+
};
|
|
10
|
+
export declare const kdsValueSwitchSizes: ("small" | "medium")[];
|
|
11
|
+
export declare const kdsValueSwitchVariant: {
|
|
12
|
+
readonly DEFAULT: "default";
|
|
13
|
+
readonly MUTED: "muted";
|
|
14
|
+
};
|
|
15
|
+
export declare const kdsValueSwitchVariants: ("default" | "muted")[];
|
|
16
|
+
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/forms/RadioButton/enums.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B;;;CAG/B,CAAC;AAEX,eAAO,MAAM,6BAA6B,+BAEzC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AAEX,eAAO,MAAM,mBAAmB,wBAAoC,CAAC;AAErE,eAAO,MAAM,qBAAqB;;;CAGxB,CAAC;AAEX,eAAO,MAAM,sBAAsB,yBAAuC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as KdsRadioButton } from './KdsRadioButton.vue';
|
|
2
|
+
export { default as KdsRadioButtonGroup } from './KdsRadioButtonGroup.vue';
|
|
3
|
+
export { default as KdsValueSwitch } from './KdsValueSwitch.vue';
|
|
4
|
+
export { kdsRadioButtonGroupAlignment, kdsRadioButtonGroupAlignments, kdsValueSwitchSize, kdsValueSwitchSizes, kdsValueSwitchVariant, kdsValueSwitchVariants, } from './enums';
|
|
5
|
+
export type * from './types';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/forms/RadioButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEjE,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,SAAS,CAAC;AACjB,mBAAmB,SAAS,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { KdsIconName } from '../../accessories/Icon/types';
|
|
2
|
+
import { kdsRadioButtonGroupAlignment, kdsValueSwitchSize, kdsValueSwitchVariant } from './enums';
|
|
2
3
|
export type KdsRadioButtonProps = {
|
|
3
4
|
text: string;
|
|
4
5
|
helperText?: string;
|
|
5
6
|
disabled?: boolean;
|
|
6
7
|
error?: boolean;
|
|
7
8
|
};
|
|
8
|
-
export type KdsRadioButtonGroupAlignment =
|
|
9
|
+
export type KdsRadioButtonGroupAlignment = (typeof kdsRadioButtonGroupAlignment)[keyof typeof kdsRadioButtonGroupAlignment];
|
|
9
10
|
export type KdsRadioButtonGroupOption = {
|
|
10
11
|
text: string;
|
|
11
12
|
id: string;
|
|
@@ -22,8 +23,8 @@ export type KdsRadioButtonGroupProps = {
|
|
|
22
23
|
subText?: string;
|
|
23
24
|
preserveSubTextSpace?: boolean;
|
|
24
25
|
};
|
|
25
|
-
export type KdsValueSwitchSize =
|
|
26
|
-
export type KdsValueSwitchVariant =
|
|
26
|
+
export type KdsValueSwitchSize = (typeof kdsValueSwitchSize)[keyof typeof kdsValueSwitchSize];
|
|
27
|
+
export type KdsValueSwitchVariant = (typeof kdsValueSwitchVariant)[keyof typeof kdsValueSwitchVariant];
|
|
27
28
|
export type KdsValueSwitchItemProps = {
|
|
28
29
|
selected: boolean;
|
|
29
30
|
disabled?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/forms/RadioButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEhE,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,4BAA4B,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/forms/RadioButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EACL,4BAA4B,EAC5B,kBAAkB,EAClB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GACtC,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAC;AAEnF,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,EAAE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MAAM,mBAAmB,GAAG;IAChC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,CAAC,MAAM,GAAG,oBAAoB,CAAC,EAAE,CAAC;IAClD,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KdsSubTextProps } from '
|
|
1
|
+
import { KdsSubTextProps } from '../types';
|
|
2
2
|
type KdsFormFieldProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Input id
|
|
@@ -12,6 +12,11 @@ type KdsFormFieldProps = {
|
|
|
12
12
|
* Aria-label for accessibility when a visible label is not desired
|
|
13
13
|
*/
|
|
14
14
|
ariaLabel?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Optional description displayed in an info popover next to the label.
|
|
17
|
+
* The info toggle button is only visible when hovering the input field.
|
|
18
|
+
*/
|
|
19
|
+
description?: string;
|
|
15
20
|
} & Omit<KdsSubTextProps, "id">;
|
|
16
21
|
declare function __VLS_template(): {
|
|
17
22
|
attrs: Partial<{}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseFormFieldWrapper.vue.d.ts","sourceRoot":"","sources":["../../../src/forms/_helper/BaseFormFieldWrapper.vue"],"names":[],"mappings":"AA+EA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAKhD,KAAK,iBAAiB,GAAG;IACvB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;AAchC,iBAAS,cAAc;WA0ET,OAAO,IAA6B;;;;;;;;YAVrB,GAAG;;;;EAe/B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,yTAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @slot default - Custom content for the popover. When provided, overrides the `content` prop.
|
|
3
|
+
*/
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
/**
|
|
6
|
+
* Content to display inside the info popover. Used when no default slot is provided.
|
|
7
|
+
*/
|
|
8
|
+
content?: string;
|
|
9
|
+
};
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: {
|
|
13
|
+
default?(_: {}): any;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: HTMLDivElement;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=InfoPopover.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InfoPopover.vue.d.ts","sourceRoot":"","sources":["../../../../src/forms/_helper/InfoPopover/InfoPopover.vue"],"names":[],"mappings":"AAiCA;;GAEG;AAEH,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAKF,iBAAS,cAAc;WA4BT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { KdsInfoToggleButtonProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* @slot default - Custom content for the popover. When provided, overrides the `content` prop.
|
|
4
|
+
*/
|
|
5
|
+
type __VLS_Props = KdsInfoToggleButtonProps;
|
|
6
|
+
type __VLS_PublicProps = {
|
|
7
|
+
modelValue?: boolean;
|
|
8
|
+
} & __VLS_Props;
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {
|
|
15
|
+
buttonEl: HTMLButtonElement;
|
|
16
|
+
};
|
|
17
|
+
rootEl: any;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
"update:modelValue": (value: boolean) => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
hidden: boolean;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
27
|
+
buttonEl: HTMLButtonElement;
|
|
28
|
+
}, any>;
|
|
29
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=KdsInfoToggleButton.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdsInfoToggleButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/forms/_helper/InfoPopover/KdsInfoToggleButton.vue"],"names":[],"mappings":"AAkHA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAExD;;GAEG;AAEH,KAAK,WAAW,GAAG,wBAAwB,CAAC;AAmB5C,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA6FT,OAAO,IAA6B;;yBAZpB,GAAG;;;;;;EAiBhC;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;OASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/forms/_helper/InfoPopover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAC3E,mBAAmB,SAAS,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type KdsInfoToggleButtonProps = {
|
|
2
|
+
/**
|
|
3
|
+
* Content to display inside the info popover. Used when no default slot is provided.
|
|
4
|
+
*/
|
|
5
|
+
content?: string;
|
|
6
|
+
/**
|
|
7
|
+
* If set to true, the button is hidden when not focused or hovered.
|
|
8
|
+
*/
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/forms/_helper/InfoPopover/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { KdsLabelProps } from '../types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<KdsLabelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<KdsLabelProps> & Readonly<{}>, {
|
|
3
|
+
description: string;
|
|
4
|
+
showDescriptionButton: boolean;
|
|
5
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
6
|
+
labelEl: HTMLLabelElement;
|
|
7
|
+
}, HTMLDivElement>;
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=KdsLabel.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdsLabel.vue.d.ts","sourceRoot":"","sources":["../../../src/forms/_helper/KdsLabel.vue"],"names":[],"mappings":"AAgEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;;;;;;;AAuF9C,wBASG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KdsSubTextProps } from '
|
|
1
|
+
import { KdsSubTextProps } from '../types';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<KdsSubTextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<KdsSubTextProps> & Readonly<{}>, {
|
|
3
3
|
error: boolean;
|
|
4
4
|
validating: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdsSubText.vue.d.ts","sourceRoot":"","sources":["../../../src/forms/_helper/KdsSubText.vue"],"names":[],"mappings":"AAqDA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;;;;;;AAmGhD,wBAOG"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { KdsVariableToggleButtonProps } from './types.ts';
|
|
2
|
+
/**
|
|
3
|
+
* @slot default - Custom content for the popover. When provided, overrides the `content` prop.
|
|
4
|
+
*/
|
|
5
|
+
type __VLS_Props = KdsVariableToggleButtonProps;
|
|
6
|
+
type __VLS_PublicProps = {
|
|
7
|
+
modelValue?: boolean;
|
|
8
|
+
} & __VLS_Props;
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {
|
|
15
|
+
buttonEl: HTMLButtonElement;
|
|
16
|
+
};
|
|
17
|
+
rootEl: any;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
"update:modelValue": (value: boolean) => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
error: boolean;
|
|
26
|
+
hidden: boolean;
|
|
27
|
+
inSet: boolean;
|
|
28
|
+
outSet: boolean;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
30
|
+
buttonEl: HTMLButtonElement;
|
|
31
|
+
}, any>;
|
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=KdsVariableToggleButton.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdsVariableToggleButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/forms/_helper/VariablePopover/KdsVariableToggleButton.vue"],"names":[],"mappings":"AA+KA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAE/D;;GAEG;AAEH,KAAK,WAAW,GAAG,4BAA4B,CAAC;AA0EhD,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA+FT,OAAO,IAA6B;;yBAZpB,GAAG;;;;;;EAiBhC;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;OASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @slot default - Custom content for the popover. When provided, overrides the built-in placeholder layout and the `content` prop.
|
|
3
|
+
*/
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
/**
|
|
6
|
+
* Content to display inside the info popover. Used when no default slot is provided.
|
|
7
|
+
*/
|
|
8
|
+
content?: string;
|
|
9
|
+
};
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: {
|
|
13
|
+
default?(_: {}): any;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: HTMLDivElement;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=VariablePopover.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VariablePopover.vue.d.ts","sourceRoot":"","sources":["../../../../src/forms/_helper/VariablePopover/VariablePopover.vue"],"names":[],"mappings":"AAiCA;;GAEG;AACH,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAKF,iBAAS,cAAc;WA4BT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/forms/_helper/VariablePopover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACnF,mBAAmB,SAAS,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { KdsInfoToggleButtonProps } from '../InfoPopover';
|
|
2
|
+
export type KdsVariableToggleButtonProps = KdsInfoToggleButtonProps & {
|
|
3
|
+
/**
|
|
4
|
+
* If set to true, indicates that an input flow variable is configured.
|
|
5
|
+
*/
|
|
6
|
+
inSet?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* If set to true, indicates that an output flow variable is configured.
|
|
9
|
+
*/
|
|
10
|
+
outSet?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* If set to true, the button indicates an error state.
|
|
13
|
+
*/
|
|
14
|
+
error?: boolean;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/forms/_helper/VariablePopover/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,MAAM,MAAM,4BAA4B,GAAG,wBAAwB,GAAG;IACpE;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC"}
|