@knime/kds-components 6.12.1 → 7.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 +83 -0
- package/dist/index.css +103 -103
- package/dist/index.js +829 -649
- package/dist/index.js.map +1 -1
- package/dist/src/components/accessories/Avatar/KdsAvatar.vue.d.ts +29 -2
- package/dist/src/components/accessories/Avatar/KdsAvatar.vue.d.ts.map +1 -1
- package/dist/src/components/accessories/Avatar/KdsAvatarCounter.vue.d.ts.map +1 -1
- package/dist/src/components/accessories/Avatar/nameInitials.d.ts +9 -0
- package/dist/src/components/accessories/Avatar/nameInitials.d.ts.map +1 -0
- package/dist/src/components/accessories/Avatar/types.d.ts +28 -7
- package/dist/src/components/accessories/Avatar/types.d.ts.map +1 -1
- package/dist/src/components/accessories/Badge/enums.d.ts +1 -1
- package/dist/src/components/accessories/_Accessory/_Accessory.vue.d.ts.map +1 -1
- package/dist/src/components/accessories/_Accessory/types.d.ts +7 -5
- package/dist/src/components/accessories/_Accessory/types.d.ts.map +1 -1
- package/dist/src/components/buttons/BaseButton.vue.d.ts +10 -24
- package/dist/src/components/buttons/BaseButton.vue.d.ts.map +1 -1
- package/dist/src/components/buttons/KdsButton/KdsButton.vue.d.ts +4 -24
- package/dist/src/components/buttons/KdsButton/KdsButton.vue.d.ts.map +1 -1
- package/dist/src/components/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts +12 -72
- package/dist/src/components/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts.map +1 -1
- package/dist/src/components/buttons/KdsMultiSelectButton/KdsMultiSelectButton.vue.d.ts +12 -20
- package/dist/src/components/buttons/KdsMultiSelectButton/KdsMultiSelectButton.vue.d.ts.map +1 -1
- package/dist/src/components/buttons/KdsMultiSelectButton/types.d.ts +30 -2
- package/dist/src/components/buttons/KdsMultiSelectButton/types.d.ts.map +1 -1
- package/dist/src/components/buttons/KdsProgressButton/enums.d.ts +1 -1
- package/dist/src/components/buttons/KdsSelectButton/KdsSelectButton.vue.d.ts +8 -20
- package/dist/src/components/buttons/KdsSelectButton/KdsSelectButton.vue.d.ts.map +1 -1
- package/dist/src/components/buttons/KdsSelectButton/types.d.ts +19 -2
- package/dist/src/components/buttons/KdsSelectButton/types.d.ts.map +1 -1
- package/dist/src/components/buttons/KdsSplitButton/KdsSplitButton.vue.d.ts +4 -24
- package/dist/src/components/buttons/KdsSplitButton/KdsSplitButton.vue.d.ts.map +1 -1
- package/dist/src/components/buttons/KdsToggleButton/KdsToggleButton.vue.d.ts +4 -24
- package/dist/src/components/buttons/KdsToggleButton/KdsToggleButton.vue.d.ts.map +1 -1
- package/dist/src/components/buttons/index.d.ts +1 -1
- package/dist/src/components/buttons/index.d.ts.map +1 -1
- package/dist/src/components/buttons/links/KdsLinkButton/KdsLinkButton.vue.d.ts +4 -24
- package/dist/src/components/buttons/links/KdsLinkButton/KdsLinkButton.vue.d.ts.map +1 -1
- package/dist/src/components/buttons/types.d.ts +8 -3
- package/dist/src/components/buttons/types.d.ts.map +1 -1
- package/dist/src/components/feedback/enums.d.ts +1 -1
- package/dist/src/components/forms/Checkbox/BaseCheckbox.vue.d.ts +4 -0
- package/dist/src/components/forms/Checkbox/BaseCheckbox.vue.d.ts.map +1 -1
- package/dist/src/components/forms/Checkbox/KdsCheckboxGroup.vue.d.ts.map +1 -1
- package/dist/src/components/forms/Checkbox/types.d.ts +5 -0
- package/dist/src/components/forms/Checkbox/types.d.ts.map +1 -1
- package/dist/src/components/forms/Checkbox/useCheckboxRovingFocus.d.ts +15 -0
- package/dist/src/components/forms/Checkbox/useCheckboxRovingFocus.d.ts.map +1 -0
- package/dist/src/components/forms/RadioButton/useRadioSelection.d.ts +2 -8
- package/dist/src/components/forms/RadioButton/useRadioSelection.d.ts.map +1 -1
- package/dist/src/components/forms/_helper/useRovingFocus.d.ts +35 -0
- package/dist/src/components/forms/_helper/useRovingFocus.d.ts.map +1 -0
- package/dist/src/components/forms/selects/Dropdown/MultiSelectDropdownContainer.vue.d.ts.map +1 -1
- package/dist/src/components/forms/selects/Dropdown/types.d.ts +19 -0
- package/dist/src/components/forms/selects/Dropdown/types.d.ts.map +1 -1
- package/dist/src/components/lists/MenuContainer/KdsMenuContainer.vue.d.ts.map +1 -1
- package/dist/src/components/lists/MenuContainer/KdsMenuItem.vue.d.ts.map +1 -1
- package/dist/src/components/lists/MenuContainer/types.d.ts +12 -0
- package/dist/src/components/lists/MenuContainer/types.d.ts.map +1 -1
- package/dist/src/layouts/cards/CardHeader.vue.d.ts.map +1 -1
- package/dist/src/util/useKdsDarkMode.d.ts +5 -0
- package/dist/src/util/useKdsDarkMode.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -9,11 +9,8 @@ declare const __VLS_export: import('vue').DefineComponent<(import('../../..').Wi
|
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
tooltip?: string;
|
|
11
11
|
variant?: import('..').KdsToggleButtonVariant | undefined;
|
|
12
|
-
} & {
|
|
13
|
-
|
|
14
|
-
leadingIcon?: import('../..').KdsIconName;
|
|
15
|
-
trailingIcon?: import('../..').KdsIconName;
|
|
16
|
-
ariaLabel?: never;
|
|
12
|
+
} & import('..').WithLabel & {
|
|
13
|
+
showCount?: boolean;
|
|
17
14
|
} & {
|
|
18
15
|
possibleValues: import('./types').KdsDropdownOption[];
|
|
19
16
|
loading?: boolean;
|
|
@@ -23,11 +20,8 @@ declare const __VLS_export: import('vue').DefineComponent<(import('../../..').Wi
|
|
|
23
20
|
disabled?: boolean;
|
|
24
21
|
tooltip?: string;
|
|
25
22
|
variant?: import('..').KdsToggleButtonVariant | undefined;
|
|
26
|
-
} & {
|
|
27
|
-
|
|
28
|
-
leadingIcon: import('../..').KdsIconName;
|
|
29
|
-
trailingIcon?: never;
|
|
30
|
-
ariaLabel: string;
|
|
23
|
+
} & import('..').WithLeadingIconOnly & {
|
|
24
|
+
showCount?: never;
|
|
31
25
|
} & {
|
|
32
26
|
possibleValues: import('./types').KdsDropdownOption[];
|
|
33
27
|
loading?: boolean;
|
|
@@ -42,11 +36,8 @@ declare const __VLS_export: import('vue').DefineComponent<(import('../../..').Wi
|
|
|
42
36
|
disabled?: boolean;
|
|
43
37
|
tooltip?: string;
|
|
44
38
|
variant?: import('..').KdsToggleButtonVariant | undefined;
|
|
45
|
-
} & {
|
|
46
|
-
|
|
47
|
-
leadingIcon?: import('../..').KdsIconName;
|
|
48
|
-
trailingIcon?: import('../..').KdsIconName;
|
|
49
|
-
ariaLabel?: never;
|
|
39
|
+
} & import('..').WithLabel & {
|
|
40
|
+
showCount?: boolean;
|
|
50
41
|
} & {
|
|
51
42
|
possibleValues: import('./types').KdsDropdownOption[];
|
|
52
43
|
loading?: boolean;
|
|
@@ -56,11 +47,8 @@ declare const __VLS_export: import('vue').DefineComponent<(import('../../..').Wi
|
|
|
56
47
|
disabled?: boolean;
|
|
57
48
|
tooltip?: string;
|
|
58
49
|
variant?: import('..').KdsToggleButtonVariant | undefined;
|
|
59
|
-
} & {
|
|
60
|
-
|
|
61
|
-
leadingIcon: import('../..').KdsIconName;
|
|
62
|
-
trailingIcon?: never;
|
|
63
|
-
ariaLabel: string;
|
|
50
|
+
} & import('..').WithLeadingIconOnly & {
|
|
51
|
+
showCount?: never;
|
|
64
52
|
} & {
|
|
65
53
|
possibleValues: import('./types').KdsDropdownOption[];
|
|
66
54
|
loading?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsSelectButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/KdsSelectButton/KdsSelectButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdsSelectButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/KdsSelectButton/KdsSelectButton.vue"],"names":[],"mappings":"AAgOA,KAAK,gBAAgB,GAAG;IACxB,oCAAoC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,MAAM,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAqJF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;sBAnKE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFAuK9B,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
import { KdsDropdownOption } from '../../forms/selects/Dropdown/types';
|
|
2
2
|
import { KdsToggleButtonVariant } from '../KdsToggleButton';
|
|
3
|
-
import { KdsButtonCommonProps,
|
|
3
|
+
import { KdsButtonCommonProps, WithLabel, WithLeadingIconOnly } from '../types';
|
|
4
4
|
export type { KdsDropdownOption } from '../../forms/selects/Dropdown/types';
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The count badge is trailing content, so — like `trailingIcon` — it needs a
|
|
7
|
+
* visible label to sit next to: `showCount` is only available on the labeled
|
|
8
|
+
* variant and `never` on the icon-only one.
|
|
9
|
+
*/
|
|
10
|
+
type WithCountBadge = (WithLabel & {
|
|
11
|
+
/**
|
|
12
|
+
* Whether to show the trailing badge while a value is selected. Since
|
|
13
|
+
* only one value can be selected, the badge always reads "1"; without a
|
|
14
|
+
* selection it is not rendered at all. The badge takes the place of the
|
|
15
|
+
* trailing icon: while it is shown, a configured `trailingIcon` is not
|
|
16
|
+
* rendered. Defaults to false.
|
|
17
|
+
*/
|
|
18
|
+
showCount?: boolean;
|
|
19
|
+
}) | (WithLeadingIconOnly & {
|
|
20
|
+
showCount?: never;
|
|
21
|
+
});
|
|
22
|
+
export type KdsSelectButtonProps = KdsButtonCommonProps<KdsToggleButtonVariant> & WithCountBadge & {
|
|
6
23
|
/** Values shown in the dropdown list. */
|
|
7
24
|
possibleValues: KdsDropdownOption[];
|
|
8
25
|
/** Whether the dropdown list is in loading state. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/KdsSelectButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/KdsSelectButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,KAAK,EACV,oBAAoB,EACpB,SAAS,EACT,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAElB,YAAY,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAE5E;;;;GAIG;AACH,KAAK,cAAc,GACf,CAAC,SAAS,GAAG;IACX;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC,GACF,CAAC,mBAAmB,GAAG;IAAE,SAAS,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,CAAC;AAElD,MAAM,MAAM,oBAAoB,GAC9B,oBAAoB,CAAC,sBAAsB,CAAC,GAC1C,cAAc,GAAG;IACf,yCAAyC;IACzC,cAAc,EAAE,iBAAiB,EAAE,CAAC;IACpC,qDAAqD;IACrD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC"}
|
|
@@ -3,12 +3,7 @@ declare const __VLS_export: import('vue').DefineComponent<(import('../../..').Wi
|
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
tooltip?: string;
|
|
5
5
|
variant?: import('..').KdsButtonVariant | undefined;
|
|
6
|
-
} & {
|
|
7
|
-
label: string;
|
|
8
|
-
leadingIcon?: import('../..').KdsIconName;
|
|
9
|
-
trailingIcon?: import('../..').KdsIconName;
|
|
10
|
-
ariaLabel?: never;
|
|
11
|
-
} & {
|
|
6
|
+
} & import('..').WithLabel & {
|
|
12
7
|
items: import('..').KdsMenuItem[];
|
|
13
8
|
menuMaxHeight?: string;
|
|
14
9
|
}) | (import('../../..').WithTestId & {
|
|
@@ -16,12 +11,7 @@ declare const __VLS_export: import('vue').DefineComponent<(import('../../..').Wi
|
|
|
16
11
|
disabled?: boolean;
|
|
17
12
|
tooltip?: string;
|
|
18
13
|
variant?: import('..').KdsButtonVariant | undefined;
|
|
19
|
-
} & {
|
|
20
|
-
label?: never;
|
|
21
|
-
leadingIcon: import('../..').KdsIconName;
|
|
22
|
-
trailingIcon?: never;
|
|
23
|
-
ariaLabel: string;
|
|
24
|
-
} & {
|
|
14
|
+
} & import('..').WithLeadingIconOnly & {
|
|
25
15
|
items: import('..').KdsMenuItem[];
|
|
26
16
|
menuMaxHeight?: string;
|
|
27
17
|
}), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -32,12 +22,7 @@ declare const __VLS_export: import('vue').DefineComponent<(import('../../..').Wi
|
|
|
32
22
|
disabled?: boolean;
|
|
33
23
|
tooltip?: string;
|
|
34
24
|
variant?: import('..').KdsButtonVariant | undefined;
|
|
35
|
-
} & {
|
|
36
|
-
label: string;
|
|
37
|
-
leadingIcon?: import('../..').KdsIconName;
|
|
38
|
-
trailingIcon?: import('../..').KdsIconName;
|
|
39
|
-
ariaLabel?: never;
|
|
40
|
-
} & {
|
|
25
|
+
} & import('..').WithLabel & {
|
|
41
26
|
items: import('..').KdsMenuItem[];
|
|
42
27
|
menuMaxHeight?: string;
|
|
43
28
|
}) | (import('../../..').WithTestId & {
|
|
@@ -45,12 +30,7 @@ declare const __VLS_export: import('vue').DefineComponent<(import('../../..').Wi
|
|
|
45
30
|
disabled?: boolean;
|
|
46
31
|
tooltip?: string;
|
|
47
32
|
variant?: import('..').KdsButtonVariant | undefined;
|
|
48
|
-
} & {
|
|
49
|
-
label?: never;
|
|
50
|
-
leadingIcon: import('../..').KdsIconName;
|
|
51
|
-
trailingIcon?: never;
|
|
52
|
-
ariaLabel: string;
|
|
53
|
-
} & {
|
|
33
|
+
} & import('..').WithLeadingIconOnly & {
|
|
54
34
|
items: import('..').KdsMenuItem[];
|
|
55
35
|
menuMaxHeight?: string;
|
|
56
36
|
})> & Readonly<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsSplitButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/KdsSplitButton/KdsSplitButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdsSplitButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/KdsSplitButton/KdsSplitButton.vue"],"names":[],"mappings":"AA4WA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -7,44 +7,24 @@ declare const __VLS_export: import('vue').DefineComponent<(import('../../..').Wi
|
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
tooltip?: string;
|
|
9
9
|
variant?: import('./types').KdsToggleButtonVariant | undefined;
|
|
10
|
-
} & {
|
|
11
|
-
label: string;
|
|
12
|
-
leadingIcon?: import('../..').KdsIconName;
|
|
13
|
-
trailingIcon?: import('../..').KdsIconName;
|
|
14
|
-
ariaLabel?: never;
|
|
15
|
-
} & __VLS_ModelProps) | (import('../../..').WithTestId & {
|
|
10
|
+
} & import('..').WithLabel & __VLS_ModelProps) | (import('../../..').WithTestId & {
|
|
16
11
|
size?: import('..').KdsButtonSize;
|
|
17
12
|
disabled?: boolean;
|
|
18
13
|
tooltip?: string;
|
|
19
14
|
variant?: import('./types').KdsToggleButtonVariant | undefined;
|
|
20
|
-
} & {
|
|
21
|
-
label?: never;
|
|
22
|
-
leadingIcon: import('../..').KdsIconName;
|
|
23
|
-
trailingIcon?: never;
|
|
24
|
-
ariaLabel: string;
|
|
25
|
-
} & __VLS_ModelProps), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
} & import('..').WithLeadingIconOnly & __VLS_ModelProps), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
16
|
"update:modelValue": (value: boolean) => any;
|
|
27
17
|
}, string, import('vue').PublicProps, Readonly<(import('../../..').WithTestId & {
|
|
28
18
|
size?: import('..').KdsButtonSize;
|
|
29
19
|
disabled?: boolean;
|
|
30
20
|
tooltip?: string;
|
|
31
21
|
variant?: import('./types').KdsToggleButtonVariant | undefined;
|
|
32
|
-
} & {
|
|
33
|
-
label: string;
|
|
34
|
-
leadingIcon?: import('../..').KdsIconName;
|
|
35
|
-
trailingIcon?: import('../..').KdsIconName;
|
|
36
|
-
ariaLabel?: never;
|
|
37
|
-
} & __VLS_ModelProps) | (import('../../..').WithTestId & {
|
|
22
|
+
} & import('..').WithLabel & __VLS_ModelProps) | (import('../../..').WithTestId & {
|
|
38
23
|
size?: import('..').KdsButtonSize;
|
|
39
24
|
disabled?: boolean;
|
|
40
25
|
tooltip?: string;
|
|
41
26
|
variant?: import('./types').KdsToggleButtonVariant | undefined;
|
|
42
|
-
} & {
|
|
43
|
-
label?: never;
|
|
44
|
-
leadingIcon: import('../..').KdsIconName;
|
|
45
|
-
trailingIcon?: never;
|
|
46
|
-
ariaLabel: string;
|
|
47
|
-
} & __VLS_ModelProps)> & Readonly<{
|
|
27
|
+
} & import('..').WithLeadingIconOnly & __VLS_ModelProps)> & Readonly<{
|
|
48
28
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
49
29
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
50
30
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsToggleButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/KdsToggleButton/KdsToggleButton.vue"],"names":[],"mappings":"AAsCA,KAAK,gBAAgB,GAAG;IACxB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAuDF,QAAA,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"KdsToggleButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/KdsToggleButton/KdsToggleButton.vue"],"names":[],"mappings":"AAsCA,KAAK,gBAAgB,GAAG;IACxB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAuDF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -23,5 +23,5 @@ export type * from './ResponsiveButtonGroup';
|
|
|
23
23
|
export * from './Breadcrumb';
|
|
24
24
|
export type * from './Breadcrumb';
|
|
25
25
|
export { kdsButtonSize, kdsButtonSizes, kdsButtonVariant, kdsButtonVariants, } from './enums';
|
|
26
|
-
export type { KdsButtonSize, KdsButtonVariant, WithDestructive } from './types';
|
|
26
|
+
export type { KdsButtonSize, KdsButtonVariant, WithDestructive, WithLabel, WithLeadingIconOnly, } from './types';
|
|
27
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,mBAAmB,aAAa,CAAC;AAEjC,cAAc,uBAAuB,CAAC;AACtC,mBAAmB,uBAAuB,CAAC;AAE3C,cAAc,iBAAiB,CAAC;AAChC,mBAAmB,iBAAiB,CAAC;AAErC,cAAc,mBAAmB,CAAC;AAClC,mBAAmB,mBAAmB,CAAC;AAEvC,cAAc,qBAAqB,CAAC;AACpC,mBAAmB,qBAAqB,CAAC;AAEzC,cAAc,iBAAiB,CAAC;AAChC,mBAAmB,iBAAiB,CAAC;AAErC,cAAc,wB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AM,SAAS,CAAC;AAOjB,YAAY,EACV,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,SAAS,EACT,mBAAmB,GACpB,MAAM,SAAS,CAAC"}
|
|
@@ -3,44 +3,24 @@ declare const __VLS_export: import('vue').DefineComponent<(import('../../../..')
|
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
tooltip?: string;
|
|
5
5
|
variant?: import('../..').KdsButtonVariant | undefined;
|
|
6
|
-
} & {
|
|
7
|
-
label: string;
|
|
8
|
-
leadingIcon?: import('../../..').KdsIconName;
|
|
9
|
-
trailingIcon?: import('../../..').KdsIconName;
|
|
10
|
-
ariaLabel?: never;
|
|
11
|
-
} & import('../..').WithDestructive & import('../../../../types/linkTypes').WithLinkNavigation & import('../../../../types/linkTypes').WithAnchorElementAttributes) | (import('../../../..').WithTestId & {
|
|
6
|
+
} & import('../..').WithLabel & import('../..').WithDestructive & import('../../../../types/linkTypes').WithLinkNavigation & import('../../../../types/linkTypes').WithAnchorElementAttributes) | (import('../../../..').WithTestId & {
|
|
12
7
|
size?: import('../..').KdsButtonSize;
|
|
13
8
|
disabled?: boolean;
|
|
14
9
|
tooltip?: string;
|
|
15
10
|
variant?: import('../..').KdsButtonVariant | undefined;
|
|
16
|
-
} & {
|
|
17
|
-
label?: never;
|
|
18
|
-
leadingIcon: import('../../..').KdsIconName;
|
|
19
|
-
trailingIcon?: never;
|
|
20
|
-
ariaLabel: string;
|
|
21
|
-
} & import('../..').WithDestructive & import('../../../../types/linkTypes').WithLinkNavigation & import('../../../../types/linkTypes').WithAnchorElementAttributes), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
} & import('../..').WithLeadingIconOnly & import('../..').WithDestructive & import('../../../../types/linkTypes').WithLinkNavigation & import('../../../../types/linkTypes').WithAnchorElementAttributes), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
12
|
click: (event: MouseEvent) => any;
|
|
23
13
|
}, string, import('vue').PublicProps, Readonly<(import('../../../..').WithTestId & {
|
|
24
14
|
size?: import('../..').KdsButtonSize;
|
|
25
15
|
disabled?: boolean;
|
|
26
16
|
tooltip?: string;
|
|
27
17
|
variant?: import('../..').KdsButtonVariant | undefined;
|
|
28
|
-
} & {
|
|
29
|
-
label: string;
|
|
30
|
-
leadingIcon?: import('../../..').KdsIconName;
|
|
31
|
-
trailingIcon?: import('../../..').KdsIconName;
|
|
32
|
-
ariaLabel?: never;
|
|
33
|
-
} & import('../..').WithDestructive & import('../../../../types/linkTypes').WithLinkNavigation & import('../../../../types/linkTypes').WithAnchorElementAttributes) | (import('../../../..').WithTestId & {
|
|
18
|
+
} & import('../..').WithLabel & import('../..').WithDestructive & import('../../../../types/linkTypes').WithLinkNavigation & import('../../../../types/linkTypes').WithAnchorElementAttributes) | (import('../../../..').WithTestId & {
|
|
34
19
|
size?: import('../..').KdsButtonSize;
|
|
35
20
|
disabled?: boolean;
|
|
36
21
|
tooltip?: string;
|
|
37
22
|
variant?: import('../..').KdsButtonVariant | undefined;
|
|
38
|
-
} & {
|
|
39
|
-
label?: never;
|
|
40
|
-
leadingIcon: import('../../..').KdsIconName;
|
|
41
|
-
trailingIcon?: never;
|
|
42
|
-
ariaLabel: string;
|
|
43
|
-
} & import('../..').WithDestructive & import('../../../../types/linkTypes').WithLinkNavigation & import('../../../../types/linkTypes').WithAnchorElementAttributes)> & Readonly<{
|
|
23
|
+
} & import('../..').WithLeadingIconOnly & import('../..').WithDestructive & import('../../../../types/linkTypes').WithLinkNavigation & import('../../../../types/linkTypes').WithAnchorElementAttributes)> & Readonly<{
|
|
44
24
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
45
25
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
46
26
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsLinkButton.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/buttons/links/KdsLinkButton/KdsLinkButton.vue"],"names":[],"mappings":"AAuJA,QAAA,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"KdsLinkButton.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/buttons/links/KdsLinkButton/KdsLinkButton.vue"],"names":[],"mappings":"AAuJA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -18,8 +18,13 @@ export type KdsButtonCommonProps<TVariant extends KdsButtonVariant = KdsButtonVa
|
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
20
20
|
* Helper types
|
|
21
|
+
*
|
|
22
|
+
* The two content variants are exported so components can attach props per
|
|
23
|
+
* variant: trailing content — `trailingIcon` and anything a component renders
|
|
24
|
+
* next to the label, e.g. a count badge — belongs on `WithLabel` only, since
|
|
25
|
+
* an icon-only button shows its icon alone.
|
|
21
26
|
*/
|
|
22
|
-
type
|
|
27
|
+
export type WithLabel = {
|
|
23
28
|
/** Visible text label of the button. */
|
|
24
29
|
label: string;
|
|
25
30
|
/** Icon displayed before the label. */
|
|
@@ -28,7 +33,7 @@ type LabelAndIcons = {
|
|
|
28
33
|
trailingIcon?: KdsIconName;
|
|
29
34
|
ariaLabel?: never;
|
|
30
35
|
};
|
|
31
|
-
type
|
|
36
|
+
export type WithLeadingIconOnly = {
|
|
32
37
|
label?: never;
|
|
33
38
|
/** Icon displayed as the sole content of the button. */
|
|
34
39
|
leadingIcon: KdsIconName;
|
|
@@ -36,7 +41,7 @@ type LeadingIconOnly = {
|
|
|
36
41
|
/** Accessible label for icon-only buttons (required when no visible label is present). */
|
|
37
42
|
ariaLabel: string;
|
|
38
43
|
};
|
|
39
|
-
export type WithLabelAndIcons =
|
|
44
|
+
export type WithLabelAndIcons = WithLabel | WithLeadingIconOnly;
|
|
40
45
|
export type WithDestructive = {
|
|
41
46
|
/**
|
|
42
47
|
* If set to true, the button will prominently warn the user of a destructive action.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE1D,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAC/E,MAAM,MAAM,gBAAgB,GAC1B,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,oBAAoB,CAC9B,QAAQ,SAAS,gBAAgB,GAAG,gBAAgB,IAClD,UAAU,GAAG;IACf,kCAAkC;IAClC,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mCAAmC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE1D,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAC/E,MAAM,MAAM,gBAAgB,GAC1B,CAAC,OAAO,gBAAgB,CA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AAG;IACjB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACvC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,oBAAoB,GAChD,iBAAiB,GACjB,eAAe,GACf,WAAW,GACX,SAAS,GACT,WAAW,GACX,WAAW,CAAC"}
|
|
@@ -4,5 +4,5 @@ export declare const kdsFeedbackVariant: {
|
|
|
4
4
|
readonly SUCCESS: "success";
|
|
5
5
|
readonly WARNING: "warning";
|
|
6
6
|
};
|
|
7
|
-
export declare const kdsFeedbackVariants: ("error" | "info" | "
|
|
7
|
+
export declare const kdsFeedbackVariants: ("error" | "info" | "success" | "warning")[];
|
|
8
8
|
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -12,6 +12,7 @@ declare const __VLS_export: import('vue').DefineComponent<({
|
|
|
12
12
|
tooltip?: never;
|
|
13
13
|
} & {
|
|
14
14
|
helperText?: string;
|
|
15
|
+
tabIndex?: number;
|
|
15
16
|
} & __VLS_ModelProps) | ({
|
|
16
17
|
disabled?: boolean;
|
|
17
18
|
error?: boolean;
|
|
@@ -22,6 +23,7 @@ declare const __VLS_export: import('vue').DefineComponent<({
|
|
|
22
23
|
tooltip: string;
|
|
23
24
|
} & {
|
|
24
25
|
helperText?: string;
|
|
26
|
+
tabIndex?: number;
|
|
25
27
|
} & __VLS_ModelProps), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
28
|
"update:modelValue": (value: KdsCheckboxValue) => any;
|
|
27
29
|
}, string, import('vue').PublicProps, Readonly<({
|
|
@@ -34,6 +36,7 @@ declare const __VLS_export: import('vue').DefineComponent<({
|
|
|
34
36
|
tooltip?: never;
|
|
35
37
|
} & {
|
|
36
38
|
helperText?: string;
|
|
39
|
+
tabIndex?: number;
|
|
37
40
|
} & __VLS_ModelProps) | ({
|
|
38
41
|
disabled?: boolean;
|
|
39
42
|
error?: boolean;
|
|
@@ -44,6 +47,7 @@ declare const __VLS_export: import('vue').DefineComponent<({
|
|
|
44
47
|
tooltip: string;
|
|
45
48
|
} & {
|
|
46
49
|
helperText?: string;
|
|
50
|
+
tabIndex?: number;
|
|
47
51
|
} & __VLS_ModelProps)> & Readonly<{
|
|
48
52
|
"onUpdate:modelValue"?: ((value: KdsCheckboxValue) => any) | undefined;
|
|
49
53
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/Checkbox/BaseCheckbox.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/Checkbox/BaseCheckbox.vue"],"names":[],"mappings":"AA0NA,OAAO,KAAK,EAAqB,gBAAgB,EAAE,MAAM,SAAS,CAAC;AA4DnE,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC7B,CAAC;AAyIF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsCheckboxGroup.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/Checkbox/KdsCheckboxGroup.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdsCheckboxGroup.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/Checkbox/KdsCheckboxGroup.vue"],"names":[],"mappings":"AAmHA,OAAO,KAAK,EAEV,qBAAqB,EAEtB,MAAM,SAAS,CAAC;AAGjB,KAAK,WAAW,GAAG,qBAAqB,CAAC;AAoDzC,KAAK,gBAAgB,GAAG;IACxB,oCAAoC;IACpC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAgHxD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -36,6 +36,11 @@ export type BaseCheckboxProps = BaseProps & LabelOrTitle & {
|
|
|
36
36
|
* Helper text displayed below the label
|
|
37
37
|
*/
|
|
38
38
|
helperText?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Tabindex for the checkbox button. Used by the group to implement a
|
|
41
|
+
* roving tabindex.
|
|
42
|
+
*/
|
|
43
|
+
tabIndex?: number;
|
|
39
44
|
};
|
|
40
45
|
export type KdsCheckboxProps = BaseProps & LabelOrTitle;
|
|
41
46
|
export type KdsCheckboxGroupOption = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/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;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,KAAK,YAAY,GACb;IACE;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB,GACD;IACE,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEN,MAAM,MAAM,iBAAiB,GAAG,SAAS,GACvC,YAAY,GAAG;IACb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/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;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,KAAK,YAAY,GACb;IACE;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB,GACD;IACE,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEN,MAAM,MAAM,iBAAiB,GAAG,SAAS,GACvC,YAAY,GAAG;IACb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEJ,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,YAAY,CAAC;AAExD,MAAM,MAAM,sBAAsB,GAAG;IACnC,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,2CAA2C;AAC3C,MAAM,MAAM,yBAAyB,GACnC,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AAE7E,MAAM,MAAM,qBAAqB,GAAG;IAClC,mBAAmB;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,cAAc,EAAE,KAAK,CAAC,MAAM,GAAG,sBAAsB,CAAC,CAAC;IACvD,uCAAuC;IACvC,SAAS,CAAC,EAAE,yBAAyB,CAAC;CACvC,GAAG,SAAS,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { RovingFocusOption } from '../_helper/useRovingFocus';
|
|
3
|
+
export declare const useCheckboxRovingFocus: ({ options, selectedIds, globalDisable, globalError, optionContainer, }: {
|
|
4
|
+
options: Ref<readonly RovingFocusOption[]>;
|
|
5
|
+
selectedIds: Ref<readonly string[]>;
|
|
6
|
+
globalDisable?: Ref<boolean>;
|
|
7
|
+
globalError?: Ref<boolean>;
|
|
8
|
+
optionContainer?: Ref<HTMLElement | null>;
|
|
9
|
+
}) => {
|
|
10
|
+
hasError: import('vue').ComputedRef<boolean>;
|
|
11
|
+
tabIndexForOption: (index: number) => 0 | -1 | undefined;
|
|
12
|
+
handleFocus: (index: number) => void;
|
|
13
|
+
handleKeyDown: (event: KeyboardEvent, currentIndex: number) => void;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=useCheckboxRovingFocus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCheckboxRovingFocus.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/Checkbox/useCheckboxRovingFocus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAG/B,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,sBAAsB,GAAI,wEAMpC;IACD,OAAO,EAAE,GAAG,CAAC,SAAS,iBAAiB,EAAE,CAAC,CAAC;IAC3C,WAAW,EAAE,GAAG,CAAC,SAAS,MAAM,EAAE,CAAC,CAAC;IACpC,aAAa,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAC7B,WAAW,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAC3B,eAAe,CAAC,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CAC3C;;;yBA6C6B,MAAM;;CAYnC,CAAC"}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
|
|
3
|
-
id: string;
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
error?: boolean;
|
|
6
|
-
[x: string]: unknown;
|
|
7
|
-
};
|
|
2
|
+
import { RovingFocusOption } from '../_helper/useRovingFocus';
|
|
8
3
|
export declare const useRadioSelection: ({ selectedId, options, globalDisable, globalError, optionContainer, }: {
|
|
9
4
|
selectedId: Ref<string | undefined>;
|
|
10
|
-
options: Ref<readonly
|
|
5
|
+
options: Ref<readonly RovingFocusOption[]>;
|
|
11
6
|
globalDisable?: Ref<boolean>;
|
|
12
7
|
globalError?: Ref<boolean>;
|
|
13
8
|
optionContainer?: Ref<HTMLElement | null>;
|
|
@@ -18,5 +13,4 @@ export declare const useRadioSelection: ({ selectedId, options, globalDisable, g
|
|
|
18
13
|
handleClick: (index: number) => void;
|
|
19
14
|
handleKeyDown: (event: KeyboardEvent, currentIndex: number) => void;
|
|
20
15
|
};
|
|
21
|
-
export {};
|
|
22
16
|
//# sourceMappingURL=useRadioSelection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRadioSelection.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/RadioButton/useRadioSelection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAG/B,
|
|
1
|
+
{"version":3,"file":"useRadioSelection.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/RadioButton/useRadioSelection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAG/B,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,iBAAiB,GAAI,uEAM/B;IACD,UAAU,EAAE,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACpC,OAAO,EAAE,GAAG,CAAC,SAAS,iBAAiB,EAAE,CAAC,CAAC;IAC3C,aAAa,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAC7B,WAAW,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAC3B,eAAe,CAAC,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CAC3C;;;;yBAK6B,MAAM;;CA0BnC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export type RovingFocusOption = {
|
|
3
|
+
id: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
error?: boolean;
|
|
6
|
+
[x: string]: unknown;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Shared roving-tabindex keyboard behaviour for a group of buttons (radio
|
|
10
|
+
* buttons, checkboxes): the group is a single tab stop and
|
|
11
|
+
* the arrow keys / Home / End move focus between the enabled options, skipping
|
|
12
|
+
* disabled ones and wrapping around.
|
|
13
|
+
*
|
|
14
|
+
* Deciding which option is the tab stop or what happens on
|
|
15
|
+
* focus move is handled by each group itself.
|
|
16
|
+
*/
|
|
17
|
+
export declare const useRovingFocus: ({ options, role, preferredIndex, globalDisable, globalError, optionContainer, onNavigate, onActivate, }: {
|
|
18
|
+
options: Ref<readonly RovingFocusOption[]>;
|
|
19
|
+
/** ARIA role of the focusable control, used to locate it in the DOM. */
|
|
20
|
+
role: "radio" | "checkbox";
|
|
21
|
+
/** The option the group wants as its tab stop, or `-1` for "use the default". */
|
|
22
|
+
preferredIndex: Ref<number>;
|
|
23
|
+
globalDisable?: Ref<boolean>;
|
|
24
|
+
globalError?: Ref<boolean>;
|
|
25
|
+
optionContainer?: Ref<HTMLElement | null>;
|
|
26
|
+
/** Called with the destination index whenever focus moves (arrows / Home / End). */
|
|
27
|
+
onNavigate: (index: number) => void;
|
|
28
|
+
/** Optional `Space` / `Enter` handler; omit to leave activation to the native control. */
|
|
29
|
+
onActivate?: (index: number) => void;
|
|
30
|
+
}) => {
|
|
31
|
+
hasError: import('vue').ComputedRef<boolean>;
|
|
32
|
+
tabIndexForOption: (index: number) => 0 | -1 | undefined;
|
|
33
|
+
handleKeyDown: (event: KeyboardEvent, currentIndex: number) => void;
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=useRovingFocus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRovingFocus.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/_helper/useRovingFocus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAG/B,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,GAAI,yGAS5B;IACD,OAAO,EAAE,GAAG,CAAC,SAAS,iBAAiB,EAAE,CAAC,CAAC;IAC3C,wEAAwE;IACxE,IAAI,EAAE,OAAO,GAAG,UAAU,CAAC;IAC3B,iFAAiF;IACjF,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B,aAAa,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAC7B,WAAW,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAC3B,eAAe,CAAC,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC1C,oFAAoF;IACpF,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,0FAA0F;IAC1F,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;;+BAoCmC,MAAM;2BAkCV,aAAa,gBAAgB,MAAM;CAsDlE,CAAC"}
|
package/dist/src/components/forms/selects/Dropdown/MultiSelectDropdownContainer.vue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiSelectDropdownContainer.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/selects/Dropdown/MultiSelectDropdownContainer.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MultiSelectDropdownContainer.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/selects/Dropdown/MultiSelectDropdownContainer.vue"],"names":[],"mappings":"AAqRA,OAAO,KAAK,EAEV,oCAAoC,EACrC,MAAM,SAAS,CAAC;AAIjB,KAAK,WAAW,GAAG,oCAAoC,CAAC;AA2KxD,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAMF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AA8LxD,QAAA,MAAM,YAAY;;;;;;;;;;kFAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -71,6 +71,25 @@ export type DropdownContainerProps = {
|
|
|
71
71
|
export type KdsMultiSelectDropdownContainerProps = DropdownContainerProps & {
|
|
72
72
|
/** When true, allows adding and selecting new values via the search field (combo box behavior). */
|
|
73
73
|
allowNewValues?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* When true, hides the footer "Select all" action. The "Clear all" action is
|
|
76
|
+
* still shown while a selection exists, so it can always be cleared.
|
|
77
|
+
*
|
|
78
|
+
* The footer holds a single action that flips between "Select all" and "Clear
|
|
79
|
+
* all" depending on the selection, so this hides the footer entirely while
|
|
80
|
+
* none of the listed options is selected.
|
|
81
|
+
*/
|
|
82
|
+
hideSelectAll?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* When true, hides the footer "Clear all" action. The "Select all" action is
|
|
85
|
+
* still shown while options remain to be selected.
|
|
86
|
+
*
|
|
87
|
+
* The footer holds a single action that flips between "Select all" and "Clear
|
|
88
|
+
* all" depending on the selection, so this hides the footer entirely while at
|
|
89
|
+
* least one of the listed options is selected; "Select all" reappears once the
|
|
90
|
+
* search narrows the list down to unselected options.
|
|
91
|
+
*/
|
|
92
|
+
hideClearAll?: boolean;
|
|
74
93
|
};
|
|
75
94
|
export type BaseDropdownProps = {
|
|
76
95
|
/** Text displayed on the dropdown trigger button */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/selects/Dropdown/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EACf,WAAW,EACZ,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,sDAAsD;AACtD,KAAK,qBAAqB,GAAG;IAC3B,uCAAuC;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,uEAAuE;IACvE,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,gCAAgC,GAAG,qBAAqB,GAAG;IACrE,4EAA4E;IAC5E,eAA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AAC;AAIF,MAAM,MAAM,sBAAsB,GAAG;IACnC,0EAA0E;IAC1E,SAAS,EAAE,MAAM,CAAC;IAClB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,wCAAwC;IACxC,cAAc,EAAE,iBAAiB,EAAE,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG,sBAAsB,GAAG;IAC1E,mGAAmG;IACnG,cAAc,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/selects/Dropdown/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EACf,WAAW,EACZ,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,sDAAsD;AACtD,KAAK,qBAAqB,GAAG;IAC3B,uCAAuC;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,uEAAuE;IACvE,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,gCAAgC,GAAG,qBAAqB,GAAG;IACrE,4EAA4E;IAC5E,eAAe,EAAE,IAAI,CAAC;IACtB,4DAA4D;IAC5D,mBAAmB,CAAC,EAAE,WAAW,CAAC;IAElC,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,gDAAgD;AAChD,MAAM,MAAM,2BAA2B,GAAG,qBAAqB,GAAG;IAChE,eAAe,CAAC,EAAE,KAAK,CAAC;IACxB,mBAAmB,CAAC,EAAE,KAAK,CAAC;IAE5B,+EAA+E;IAC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EF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,oDAAoD;IACpD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,WAAW,EAAE,MAAM,CAAC;IACpB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gDAAgD;IAChD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iEAAiE;IACjE,SAAS,CAAC,EAAE,YAAY,CAAC;IAEzB,gEAAgE;IAChE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,gDAAgD;IAChD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iDAAiD;IACjD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsMenuContainer.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists/MenuContainer/KdsMenuContainer.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdsMenuContainer.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists/MenuContainer/KdsMenuContainer.vue"],"names":[],"mappings":"AA6hBA,OAAO,KAAK,EAEV,sBAAsB,EACtB,qBAAqB,EAGtB,MAAM,SAAS,CAAC;AAojBjB,QAAA,MAAM,YAAY;;;;kFAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsMenuItem.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists/MenuContainer/KdsMenuItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdsMenuItem.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists/MenuContainer/KdsMenuItem.vue"],"names":[],"mappings":"AAyPA,OAAO,KAAK,EACV,qBAAqB,EACrB,WAAW,EAEX,iBAAiB,EAClB,MAAM,SAAS,CAAC;AAEjB,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;CAC5C,CAAC;AA4FF,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,GAAG,OAAO,CAAC;CACpE,CAAC;AA6SF,QAAA,MAAM,UAAU;;;;;;kFAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -134,6 +134,18 @@ export type KdsMenuContainerProps = {
|
|
|
134
134
|
export type KdsMenuContainerExpose = {
|
|
135
135
|
/** Moves focus to the menu list */
|
|
136
136
|
focus: () => void;
|
|
137
|
+
/**
|
|
138
|
+
* Close the deepest submenu that is rendered as our child, if any is open.
|
|
139
|
+
*
|
|
140
|
+
* @returns true if a submenu was closed; false if none was open
|
|
141
|
+
*/
|
|
142
|
+
closeDeepestSubmenu: () => boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Close our open submenu, including any submenus nested inside it. Needed
|
|
145
|
+
* because submenu popovers are `manual` and are therefore not closed by the
|
|
146
|
+
* browser when an ancestor popover is hidden.
|
|
147
|
+
*/
|
|
148
|
+
closeSubmenus: () => void;
|
|
137
149
|
};
|
|
138
150
|
export type KdsMenuItemExpose = {
|
|
139
151
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists/MenuContainer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EACf,WAAW,EACZ,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAE7E,gDAAgD;AAChD,KAAK,eAAe,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAC;IAEb,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,0FAA0F;IAC1F,SAAS,CAAC,EAAE,YAAY,CAAC;IAEzB,uEAAuE;IACvE,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAEpB;;;OAGG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC;IAE3B;;OAEG;IACH,KAAK,CAAC,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,eAAe,CAAC;KAC3B,CAAC;CACH,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG,eAAe,GAAG;IACzD,4EAA4E;IAC5E,eAAe,EAAE,IAAI,CAAC;IACtB,4DAA4D;IAC5D,mBAAmB,CAAC,EAAE,WAAW,CAAC;IAElC,OAAO,CAAC,EAAE,KAAK,C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KAAK,CAAC;IACZ,OAAO,CAAC,EAAE,KAAK,CAAC;IAEhB,QAAQ,EAAE,WAAW,EAAE,CAAC;CACzB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,WAAW,GACnB,0BAA0B,GAC1B,iBAAiB,GACjB,eAAe,GACf,uBAAuB,CAAC;AAE5B,qCAAqC;AACrC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,6CAA6C;IAC7C,KAAK,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IAC3B,mDAAmD;IACnD,UAAU,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,mEAAmE;IACnE,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,qDAAqD;IACrD,EAAE,EAAE,MAAM,CAAC;IACX,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,8CAA8C;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wDAAwD;IACxD,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,mCAAmC;IACnC,KAAK,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists/MenuContainer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EACf,WAAW,EACZ,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oC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AAC,EAAE,EAAE,MAAM,CAAC,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,qDAAqD;IACrD,EAAE,EAAE,MAAM,CAAC;IACX,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,8CAA8C;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wDAAwD;IACxD,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,mCAAmC;IACnC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,OAAO,CAAC;IACnC;;;;OAIG;IACH,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;;OAIG;IACH,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardHeader.vue.d.ts","sourceRoot":"","sources":["../../../../src/layouts/cards/CardHeader.vue"],"names":[],"mappings":"AAgEA,KAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAKF,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,SAAS,CAAC,IAAI,OAAO,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,IAAI,OAAO,CAAC;CACrB,CAAC;
|
|
1
|
+
{"version":3,"file":"CardHeader.vue.d.ts","sourceRoot":"","sources":["../../../../src/layouts/cards/CardHeader.vue"],"names":[],"mappings":"AAgEA,KAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAKF,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,SAAS,CAAC,IAAI,OAAO,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,IAAI,OAAO,CAAC;CACrB,CAAC;AAsDF,QAAA,MAAM,UAAU,sRAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|