@bethinkpl/design-system 42.0.0 → 43.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/dist/design-system.css +1 -1
- package/dist/design-system.js +16798 -13006
- package/dist/design-system.js.map +1 -1
- package/dist/lib/js/components/Cards/Card/Card.consts.d.ts +14 -0
- package/dist/lib/js/components/Cards/Card/Card.vue.d.ts +10 -5
- package/dist/lib/js/components/Cards/CardExpandable/CardExpandable.vue.d.ts +33 -15
- package/dist/lib/js/components/Form/InputField/useInputFieldWithinForm.d.ts +1 -1
- package/dist/lib/js/components/Form/SelectField/SelectField.types.d.ts +26 -0
- package/dist/lib/js/components/Form/SelectField/SelectField.utils.d.ts +7 -0
- package/dist/lib/js/components/Form/SelectField/SelectField.vue.d.ts +107 -0
- package/dist/lib/js/components/Form/SelectField/SelectFieldOption.vue.d.ts +19 -0
- package/dist/lib/js/components/Form/SelectField/index.d.ts +4 -0
- package/dist/lib/js/components/Form/SelectField/useSelectFieldWithinForm.d.ts +8 -0
- package/dist/lib/js/components/Pagination/Pagination.vue.d.ts +2 -0
- package/dist/lib/js/components/SelectList/SelectListItem/SelectListItem.vue.d.ts +2 -0
- package/dist/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.vue.d.ts +2 -0
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue.d.ts +33 -15
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue.d.ts +33 -15
- package/dist/lib/js/components/Toast/Toast.vue.d.ts +33 -15
- package/dist/lib/js/composables/useFormFieldWithinForm.d.ts +3 -3
- package/dist/lib/js/index.d.ts +2 -0
- package/lib/js/components/Cards/Card/Card.consts.ts +18 -0
- package/lib/js/components/Cards/Card/Card.spec.ts +159 -33
- package/lib/js/components/Cards/Card/Card.stories.ts +21 -2
- package/lib/js/components/Cards/Card/Card.vue +90 -23
- package/lib/js/components/Dropdown/Dropdown.vue +6 -10
- package/lib/js/components/Form/Form.stories.ts +15 -1
- package/lib/js/components/Form/SelectField/SelectField.spec.ts +495 -0
- package/lib/js/components/Form/SelectField/SelectField.stories.ts +287 -0
- package/lib/js/components/Form/SelectField/SelectField.types.ts +65 -0
- package/lib/js/components/Form/SelectField/SelectField.utils.ts +83 -0
- package/lib/js/components/Form/SelectField/SelectField.vue +342 -0
- package/lib/js/components/Form/SelectField/SelectFieldOption.vue +51 -0
- package/lib/js/components/Form/SelectField/index.ts +5 -0
- package/lib/js/components/Form/SelectField/useSelectFieldWithinForm.ts +27 -0
- package/lib/js/components/SelectList/SelectListItem/SelectListItem.spec.ts +77 -0
- package/lib/js/components/SelectList/SelectListItem/SelectListItem.vue +4 -1
- package/lib/js/composables/useFormFieldWithinForm.ts +4 -4
- package/lib/js/index.ts +2 -0
- package/lib/js/styles/Shadows/Shadows.stories.scss +16 -0
- package/lib/js/styles/Shadows/Shadows.stories.ts +4 -0
- package/lib/styles/mixins/_dropdown-surface.scss +24 -0
- package/lib/styles/settings/_shadows.scss +18 -0
- package/package.json +1 -1
|
@@ -2,14 +2,28 @@ import { Value } from '../../../utils/type.utils';
|
|
|
2
2
|
|
|
3
3
|
export declare const CARD_PADDING_SIZES: {
|
|
4
4
|
readonly SMALL: "small";
|
|
5
|
+
readonly MEDIUM: "medium";
|
|
5
6
|
readonly LARGE: "large";
|
|
6
7
|
};
|
|
7
8
|
export type CardPaddingSize = Value<typeof CARD_PADDING_SIZES>;
|
|
8
9
|
export declare const CARD_BACKGROUND_COLORS: {
|
|
9
10
|
readonly DEFAULT: "default";
|
|
10
11
|
readonly NEUTRAL: "neutral";
|
|
12
|
+
readonly NONE: "none";
|
|
11
13
|
};
|
|
12
14
|
export type CardBackgroundColor = Value<typeof CARD_BACKGROUND_COLORS>;
|
|
15
|
+
export declare const CARD_ELEVATIONS: {
|
|
16
|
+
readonly DEFAULT: "default";
|
|
17
|
+
readonly TOP: "top";
|
|
18
|
+
readonly NONE: "none";
|
|
19
|
+
};
|
|
20
|
+
export type CardElevation = Value<typeof CARD_ELEVATIONS>;
|
|
21
|
+
export declare const CARD_RADIUSES: {
|
|
22
|
+
readonly ALL: "all";
|
|
23
|
+
readonly TOP: "top";
|
|
24
|
+
readonly NONE: "none";
|
|
25
|
+
};
|
|
26
|
+
export type CardRadius = Value<typeof CARD_RADIUSES>;
|
|
13
27
|
export declare const CARD_RIBBON_COLORS: {
|
|
14
28
|
readonly NEUTRAL: "neutral";
|
|
15
29
|
readonly NEUTRAL_HEAVY: "neutral-heavy";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LoadingBarColors } from '../../LoadingBar';
|
|
2
|
-
import {
|
|
2
|
+
import { RemovedProp } from '../../../utils/type.utils';
|
|
3
|
+
import { CardBackgroundColor, CardElevation, CardRadius, CardRibbonColors, CardRibbonPositions, CardRibbonSizes, CardPaddingSize } from './Card.consts';
|
|
3
4
|
|
|
4
5
|
declare function __VLS_template(): Readonly<{
|
|
5
6
|
header?: () => any;
|
|
@@ -19,8 +20,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
19
20
|
paddingSize?: CardPaddingSize;
|
|
20
21
|
dividerUnderHeader?: boolean;
|
|
21
22
|
hasRibbon?: boolean;
|
|
22
|
-
|
|
23
|
+
elevation?: CardElevation;
|
|
24
|
+
radius?: CardRadius;
|
|
23
25
|
backgroundColor?: CardBackgroundColor;
|
|
26
|
+
isFlat?: boolean;
|
|
24
27
|
ribbonPosition?: CardRibbonPositions;
|
|
25
28
|
ribbonSize?: CardRibbonSizes;
|
|
26
29
|
ribbonColor?: CardRibbonColors;
|
|
@@ -28,8 +31,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
28
31
|
hasLoadingBar?: boolean;
|
|
29
32
|
loadingBarColor?: LoadingBarColors;
|
|
30
33
|
loadingBarTime?: string;
|
|
31
|
-
isFlat?: boolean;
|
|
32
34
|
isContentScrollable?: boolean;
|
|
35
|
+
hasRadius?: RemovedProp<"renamed to radius">;
|
|
33
36
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
34
37
|
contentHasPadding?: boolean;
|
|
35
38
|
headerHasPadding?: boolean;
|
|
@@ -37,8 +40,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
37
40
|
paddingSize?: CardPaddingSize;
|
|
38
41
|
dividerUnderHeader?: boolean;
|
|
39
42
|
hasRibbon?: boolean;
|
|
40
|
-
|
|
43
|
+
elevation?: CardElevation;
|
|
44
|
+
radius?: CardRadius;
|
|
41
45
|
backgroundColor?: CardBackgroundColor;
|
|
46
|
+
isFlat?: boolean;
|
|
42
47
|
ribbonPosition?: CardRibbonPositions;
|
|
43
48
|
ribbonSize?: CardRibbonSizes;
|
|
44
49
|
ribbonColor?: CardRibbonColors;
|
|
@@ -46,8 +51,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
46
51
|
hasLoadingBar?: boolean;
|
|
47
52
|
loadingBarColor?: LoadingBarColors;
|
|
48
53
|
loadingBarTime?: string;
|
|
49
|
-
isFlat?: boolean;
|
|
50
54
|
isContentScrollable?: boolean;
|
|
55
|
+
hasRadius?: RemovedProp<"renamed to radius">;
|
|
51
56
|
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
52
57
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
53
58
|
export default _default;
|
|
@@ -385,12 +385,18 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
385
385
|
hasRibbon: {
|
|
386
386
|
type: import('vue').PropType<boolean>;
|
|
387
387
|
};
|
|
388
|
-
|
|
389
|
-
type: import('vue').PropType<
|
|
388
|
+
elevation: {
|
|
389
|
+
type: import('vue').PropType<import('../Card/Card.consts').CardElevation>;
|
|
390
|
+
};
|
|
391
|
+
radius: {
|
|
392
|
+
type: import('vue').PropType<import('../Card/Card.consts').CardRadius>;
|
|
390
393
|
};
|
|
391
394
|
backgroundColor: {
|
|
392
395
|
type: import('vue').PropType<import('../Card/Card.consts').CardBackgroundColor>;
|
|
393
396
|
};
|
|
397
|
+
isFlat: {
|
|
398
|
+
type: import('vue').PropType<boolean>;
|
|
399
|
+
};
|
|
394
400
|
ribbonPosition: {
|
|
395
401
|
type: import('vue').PropType<import('../Card/Card.consts').CardRibbonPositions>;
|
|
396
402
|
};
|
|
@@ -412,12 +418,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
412
418
|
loadingBarTime: {
|
|
413
419
|
type: import('vue').PropType<string>;
|
|
414
420
|
};
|
|
415
|
-
isFlat: {
|
|
416
|
-
type: import('vue').PropType<boolean>;
|
|
417
|
-
};
|
|
418
421
|
isContentScrollable: {
|
|
419
422
|
type: import('vue').PropType<boolean>;
|
|
420
423
|
};
|
|
424
|
+
hasRadius: {
|
|
425
|
+
type: import('vue').PropType<import('../../../utils/type.utils').RemovedProp<"renamed to radius">>;
|
|
426
|
+
};
|
|
421
427
|
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
422
428
|
P: {};
|
|
423
429
|
B: {};
|
|
@@ -444,12 +450,18 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
444
450
|
hasRibbon: {
|
|
445
451
|
type: import('vue').PropType<boolean>;
|
|
446
452
|
};
|
|
447
|
-
|
|
448
|
-
type: import('vue').PropType<
|
|
453
|
+
elevation: {
|
|
454
|
+
type: import('vue').PropType<import('../Card/Card.consts').CardElevation>;
|
|
455
|
+
};
|
|
456
|
+
radius: {
|
|
457
|
+
type: import('vue').PropType<import('../Card/Card.consts').CardRadius>;
|
|
449
458
|
};
|
|
450
459
|
backgroundColor: {
|
|
451
460
|
type: import('vue').PropType<import('../Card/Card.consts').CardBackgroundColor>;
|
|
452
461
|
};
|
|
462
|
+
isFlat: {
|
|
463
|
+
type: import('vue').PropType<boolean>;
|
|
464
|
+
};
|
|
453
465
|
ribbonPosition: {
|
|
454
466
|
type: import('vue').PropType<import('../Card/Card.consts').CardRibbonPositions>;
|
|
455
467
|
};
|
|
@@ -471,12 +483,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
471
483
|
loadingBarTime: {
|
|
472
484
|
type: import('vue').PropType<string>;
|
|
473
485
|
};
|
|
474
|
-
isFlat: {
|
|
475
|
-
type: import('vue').PropType<boolean>;
|
|
476
|
-
};
|
|
477
486
|
isContentScrollable: {
|
|
478
487
|
type: import('vue').PropType<boolean>;
|
|
479
488
|
};
|
|
489
|
+
hasRadius: {
|
|
490
|
+
type: import('vue').PropType<import('../../../utils/type.utils').RemovedProp<"renamed to radius">>;
|
|
491
|
+
};
|
|
480
492
|
}>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
481
493
|
__isFragment?: never;
|
|
482
494
|
__isTeleport?: never;
|
|
@@ -500,12 +512,18 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
500
512
|
hasRibbon: {
|
|
501
513
|
type: import('vue').PropType<boolean>;
|
|
502
514
|
};
|
|
503
|
-
|
|
504
|
-
type: import('vue').PropType<
|
|
515
|
+
elevation: {
|
|
516
|
+
type: import('vue').PropType<import('../Card/Card.consts').CardElevation>;
|
|
517
|
+
};
|
|
518
|
+
radius: {
|
|
519
|
+
type: import('vue').PropType<import('../Card/Card.consts').CardRadius>;
|
|
505
520
|
};
|
|
506
521
|
backgroundColor: {
|
|
507
522
|
type: import('vue').PropType<import('../Card/Card.consts').CardBackgroundColor>;
|
|
508
523
|
};
|
|
524
|
+
isFlat: {
|
|
525
|
+
type: import('vue').PropType<boolean>;
|
|
526
|
+
};
|
|
509
527
|
ribbonPosition: {
|
|
510
528
|
type: import('vue').PropType<import('../Card/Card.consts').CardRibbonPositions>;
|
|
511
529
|
};
|
|
@@ -527,12 +545,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
527
545
|
loadingBarTime: {
|
|
528
546
|
type: import('vue').PropType<string>;
|
|
529
547
|
};
|
|
530
|
-
isFlat: {
|
|
531
|
-
type: import('vue').PropType<boolean>;
|
|
532
|
-
};
|
|
533
548
|
isContentScrollable: {
|
|
534
549
|
type: import('vue').PropType<boolean>;
|
|
535
550
|
};
|
|
551
|
+
hasRadius: {
|
|
552
|
+
type: import('vue').PropType<import('../../../utils/type.utils').RemovedProp<"renamed to radius">>;
|
|
553
|
+
};
|
|
536
554
|
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
537
555
|
$slots: Readonly<{
|
|
538
556
|
header?: () => any;
|
|
@@ -3,6 +3,6 @@ import { MaybeRefOrGetter, Ref } from 'vue';
|
|
|
3
3
|
export declare function useInputFieldWithinForm(name: MaybeRefOrGetter<string | undefined>, modelValue: Ref<string | undefined>): {
|
|
4
4
|
onBlur: (event: Event) => void;
|
|
5
5
|
onInput: () => void;
|
|
6
|
-
value: Ref<string | undefined, string | undefined
|
|
6
|
+
value: Ref<string | undefined, string | undefined>;
|
|
7
7
|
errors: Ref<string[], string[]>;
|
|
8
8
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FormFieldProps, FormFieldSlots } from '../FormField';
|
|
2
|
+
import { IconItem } from '../../Icons/Icon';
|
|
3
|
+
|
|
4
|
+
export type SelectFieldValue = string | number;
|
|
5
|
+
export interface SelectFieldOption {
|
|
6
|
+
value: SelectFieldValue;
|
|
7
|
+
label: string;
|
|
8
|
+
iconLeft?: IconItem | null;
|
|
9
|
+
eyebrowText?: string;
|
|
10
|
+
isDisabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface SelectFieldOptionGroup {
|
|
13
|
+
label?: string;
|
|
14
|
+
options: Array<SelectFieldOption>;
|
|
15
|
+
}
|
|
16
|
+
export interface SelectFieldProps extends FormFieldProps {
|
|
17
|
+
options: Array<SelectFieldOption | SelectFieldOptionGroup>;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
leftIcon?: IconItem | null;
|
|
20
|
+
ariaLabel?: string;
|
|
21
|
+
maxHeight?: string | number;
|
|
22
|
+
name?: string;
|
|
23
|
+
autocomplete?: string;
|
|
24
|
+
isGroupLabelUppercase?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export type SelectFieldSlots = Omit<FormFieldSlots, 'field'>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SelectFieldOption, SelectFieldOptionGroup } from './SelectField.types';
|
|
2
|
+
|
|
3
|
+
export declare function isSelectFieldOptionGroup(option: SelectFieldOption | SelectFieldOptionGroup): option is SelectFieldOptionGroup;
|
|
4
|
+
export declare function normalizeOptions(options: Array<SelectFieldOption | SelectFieldOptionGroup>): Array<SelectFieldOptionGroup>;
|
|
5
|
+
export declare function assertOptionValues(groups: Array<SelectFieldOptionGroup>): void;
|
|
6
|
+
export declare function toCssLength(value: string | number | undefined): string | undefined;
|
|
7
|
+
export declare function getOptionAccessibleName(option: SelectFieldOption): string;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { SelectFieldSlots, SelectFieldValue } from './SelectField.types';
|
|
2
|
+
|
|
3
|
+
declare function __VLS_template(): Readonly<SelectFieldSlots> & SelectFieldSlots;
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
|
+
modelValue: import('vue').PropType<SelectFieldValue>;
|
|
6
|
+
options: {
|
|
7
|
+
type: import('vue').PropType<(import('./SelectField.types').SelectFieldOption | import('./SelectField.types').SelectFieldOptionGroup)[]>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
placeholder: {
|
|
11
|
+
type: import('vue').PropType<string>;
|
|
12
|
+
};
|
|
13
|
+
leftIcon: import('../../Icons/Icon').IconItem | null;
|
|
14
|
+
ariaLabel: {
|
|
15
|
+
type: import('vue').PropType<string>;
|
|
16
|
+
};
|
|
17
|
+
maxHeight: {
|
|
18
|
+
type: import('vue').PropType<string | number>;
|
|
19
|
+
};
|
|
20
|
+
name: {
|
|
21
|
+
type: import('vue').PropType<string>;
|
|
22
|
+
};
|
|
23
|
+
autocomplete: {
|
|
24
|
+
type: import('vue').PropType<string>;
|
|
25
|
+
};
|
|
26
|
+
isGroupLabelUppercase: {
|
|
27
|
+
type: import('vue').PropType<boolean>;
|
|
28
|
+
};
|
|
29
|
+
label: {
|
|
30
|
+
type: import('vue').PropType<string>;
|
|
31
|
+
};
|
|
32
|
+
state: {
|
|
33
|
+
type: import('vue').PropType<"default" | "success" | "error" | "disabled">;
|
|
34
|
+
};
|
|
35
|
+
hasRequiredIndicator: {
|
|
36
|
+
type: import('vue').PropType<boolean>;
|
|
37
|
+
};
|
|
38
|
+
labelInfo: {
|
|
39
|
+
type: import('vue').PropType<string>;
|
|
40
|
+
};
|
|
41
|
+
subLabel: {
|
|
42
|
+
type: import('vue').PropType<string>;
|
|
43
|
+
};
|
|
44
|
+
fieldId: {
|
|
45
|
+
type: import('vue').PropType<string>;
|
|
46
|
+
};
|
|
47
|
+
messageText: {
|
|
48
|
+
type: import('vue').PropType<string>;
|
|
49
|
+
};
|
|
50
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
51
|
+
"open-change": (isOpen: boolean) => void;
|
|
52
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
53
|
+
modelValue: import('vue').PropType<SelectFieldValue>;
|
|
54
|
+
options: {
|
|
55
|
+
type: import('vue').PropType<(import('./SelectField.types').SelectFieldOption | import('./SelectField.types').SelectFieldOptionGroup)[]>;
|
|
56
|
+
required: true;
|
|
57
|
+
};
|
|
58
|
+
placeholder: {
|
|
59
|
+
type: import('vue').PropType<string>;
|
|
60
|
+
};
|
|
61
|
+
leftIcon: import('../../Icons/Icon').IconItem | null;
|
|
62
|
+
ariaLabel: {
|
|
63
|
+
type: import('vue').PropType<string>;
|
|
64
|
+
};
|
|
65
|
+
maxHeight: {
|
|
66
|
+
type: import('vue').PropType<string | number>;
|
|
67
|
+
};
|
|
68
|
+
name: {
|
|
69
|
+
type: import('vue').PropType<string>;
|
|
70
|
+
};
|
|
71
|
+
autocomplete: {
|
|
72
|
+
type: import('vue').PropType<string>;
|
|
73
|
+
};
|
|
74
|
+
isGroupLabelUppercase: {
|
|
75
|
+
type: import('vue').PropType<boolean>;
|
|
76
|
+
};
|
|
77
|
+
label: {
|
|
78
|
+
type: import('vue').PropType<string>;
|
|
79
|
+
};
|
|
80
|
+
state: {
|
|
81
|
+
type: import('vue').PropType<"default" | "success" | "error" | "disabled">;
|
|
82
|
+
};
|
|
83
|
+
hasRequiredIndicator: {
|
|
84
|
+
type: import('vue').PropType<boolean>;
|
|
85
|
+
};
|
|
86
|
+
labelInfo: {
|
|
87
|
+
type: import('vue').PropType<string>;
|
|
88
|
+
};
|
|
89
|
+
subLabel: {
|
|
90
|
+
type: import('vue').PropType<string>;
|
|
91
|
+
};
|
|
92
|
+
fieldId: {
|
|
93
|
+
type: import('vue').PropType<string>;
|
|
94
|
+
};
|
|
95
|
+
messageText: {
|
|
96
|
+
type: import('vue').PropType<string>;
|
|
97
|
+
};
|
|
98
|
+
}>> & Readonly<{
|
|
99
|
+
"onOpen-change"?: ((isOpen: boolean) => any) | undefined;
|
|
100
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
101
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
102
|
+
export default _default;
|
|
103
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
104
|
+
new (): {
|
|
105
|
+
$slots: S;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SelectFieldOption as SelectFieldOptionType } from './SelectField.types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
option: SelectFieldOptionType;
|
|
5
|
+
isSelected?: boolean;
|
|
6
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
option: SelectFieldOptionType;
|
|
8
|
+
isSelected?: boolean;
|
|
9
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MaybeRefOrGetter, Ref } from 'vue';
|
|
2
|
+
import { SelectFieldValue } from './SelectField.types';
|
|
3
|
+
|
|
4
|
+
export declare function useSelectFieldWithinForm(name: MaybeRefOrGetter<string | undefined>, modelValue: Ref<SelectFieldValue | undefined>): {
|
|
5
|
+
value: Ref<SelectFieldValue | undefined, SelectFieldValue | undefined>;
|
|
6
|
+
errors: Ref<string[], string[]>;
|
|
7
|
+
onClose: (event: Event) => void;
|
|
8
|
+
};
|
|
@@ -1210,9 +1210,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1210
1210
|
$slots: Readonly<{
|
|
1211
1211
|
accessory?: () => any;
|
|
1212
1212
|
metadata?: () => any;
|
|
1213
|
+
text?: () => any;
|
|
1213
1214
|
}> & {
|
|
1214
1215
|
accessory?: () => any;
|
|
1215
1216
|
metadata?: () => any;
|
|
1217
|
+
text?: () => any;
|
|
1216
1218
|
};
|
|
1217
1219
|
});
|
|
1218
1220
|
SelectList: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -4,9 +4,11 @@ import { IconItem } from '../../Icons/Icon';
|
|
|
4
4
|
declare function __VLS_template(): Readonly<{
|
|
5
5
|
accessory?: () => any;
|
|
6
6
|
metadata?: () => any;
|
|
7
|
+
text?: () => any;
|
|
7
8
|
}> & {
|
|
8
9
|
accessory?: () => any;
|
|
9
10
|
metadata?: () => any;
|
|
11
|
+
text?: () => any;
|
|
10
12
|
};
|
|
11
13
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
12
14
|
iconLeft?: IconItem | null;
|
package/dist/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.vue.d.ts
CHANGED
|
@@ -176,9 +176,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
176
176
|
$slots: Readonly<{
|
|
177
177
|
accessory?: () => any;
|
|
178
178
|
metadata?: () => any;
|
|
179
|
+
text?: () => any;
|
|
179
180
|
}> & {
|
|
180
181
|
accessory?: () => any;
|
|
181
182
|
metadata?: () => any;
|
|
183
|
+
text?: () => any;
|
|
182
184
|
};
|
|
183
185
|
});
|
|
184
186
|
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -419,12 +419,18 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
419
419
|
hasRibbon: {
|
|
420
420
|
type: import('vue').PropType<boolean>;
|
|
421
421
|
};
|
|
422
|
-
|
|
423
|
-
type: import('vue').PropType<
|
|
422
|
+
elevation: {
|
|
423
|
+
type: import('vue').PropType<import('../../Cards/Card').CardElevation>;
|
|
424
|
+
};
|
|
425
|
+
radius: {
|
|
426
|
+
type: import('vue').PropType<import('../../Cards/Card').CardRadius>;
|
|
424
427
|
};
|
|
425
428
|
backgroundColor: {
|
|
426
429
|
type: import('vue').PropType<import('../../Cards/Card').CardBackgroundColor>;
|
|
427
430
|
};
|
|
431
|
+
isFlat: {
|
|
432
|
+
type: import('vue').PropType<boolean>;
|
|
433
|
+
};
|
|
428
434
|
ribbonPosition: {
|
|
429
435
|
type: import('vue').PropType<import('../../Cards/Card').CardRibbonPositions>;
|
|
430
436
|
};
|
|
@@ -446,12 +452,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
446
452
|
loadingBarTime: {
|
|
447
453
|
type: import('vue').PropType<string>;
|
|
448
454
|
};
|
|
449
|
-
isFlat: {
|
|
450
|
-
type: import('vue').PropType<boolean>;
|
|
451
|
-
};
|
|
452
455
|
isContentScrollable: {
|
|
453
456
|
type: import('vue').PropType<boolean>;
|
|
454
457
|
};
|
|
458
|
+
hasRadius: {
|
|
459
|
+
type: import('vue').PropType<import('../../../utils/type.utils').RemovedProp<"renamed to radius">>;
|
|
460
|
+
};
|
|
455
461
|
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
456
462
|
P: {};
|
|
457
463
|
B: {};
|
|
@@ -478,12 +484,18 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
478
484
|
hasRibbon: {
|
|
479
485
|
type: import('vue').PropType<boolean>;
|
|
480
486
|
};
|
|
481
|
-
|
|
482
|
-
type: import('vue').PropType<
|
|
487
|
+
elevation: {
|
|
488
|
+
type: import('vue').PropType<import('../../Cards/Card').CardElevation>;
|
|
489
|
+
};
|
|
490
|
+
radius: {
|
|
491
|
+
type: import('vue').PropType<import('../../Cards/Card').CardRadius>;
|
|
483
492
|
};
|
|
484
493
|
backgroundColor: {
|
|
485
494
|
type: import('vue').PropType<import('../../Cards/Card').CardBackgroundColor>;
|
|
486
495
|
};
|
|
496
|
+
isFlat: {
|
|
497
|
+
type: import('vue').PropType<boolean>;
|
|
498
|
+
};
|
|
487
499
|
ribbonPosition: {
|
|
488
500
|
type: import('vue').PropType<import('../../Cards/Card').CardRibbonPositions>;
|
|
489
501
|
};
|
|
@@ -505,12 +517,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
505
517
|
loadingBarTime: {
|
|
506
518
|
type: import('vue').PropType<string>;
|
|
507
519
|
};
|
|
508
|
-
isFlat: {
|
|
509
|
-
type: import('vue').PropType<boolean>;
|
|
510
|
-
};
|
|
511
520
|
isContentScrollable: {
|
|
512
521
|
type: import('vue').PropType<boolean>;
|
|
513
522
|
};
|
|
523
|
+
hasRadius: {
|
|
524
|
+
type: import('vue').PropType<import('../../../utils/type.utils').RemovedProp<"renamed to radius">>;
|
|
525
|
+
};
|
|
514
526
|
}>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
515
527
|
__isFragment?: never;
|
|
516
528
|
__isTeleport?: never;
|
|
@@ -534,12 +546,18 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
534
546
|
hasRibbon: {
|
|
535
547
|
type: import('vue').PropType<boolean>;
|
|
536
548
|
};
|
|
537
|
-
|
|
538
|
-
type: import('vue').PropType<
|
|
549
|
+
elevation: {
|
|
550
|
+
type: import('vue').PropType<import('../../Cards/Card').CardElevation>;
|
|
551
|
+
};
|
|
552
|
+
radius: {
|
|
553
|
+
type: import('vue').PropType<import('../../Cards/Card').CardRadius>;
|
|
539
554
|
};
|
|
540
555
|
backgroundColor: {
|
|
541
556
|
type: import('vue').PropType<import('../../Cards/Card').CardBackgroundColor>;
|
|
542
557
|
};
|
|
558
|
+
isFlat: {
|
|
559
|
+
type: import('vue').PropType<boolean>;
|
|
560
|
+
};
|
|
543
561
|
ribbonPosition: {
|
|
544
562
|
type: import('vue').PropType<import('../../Cards/Card').CardRibbonPositions>;
|
|
545
563
|
};
|
|
@@ -561,12 +579,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
561
579
|
loadingBarTime: {
|
|
562
580
|
type: import('vue').PropType<string>;
|
|
563
581
|
};
|
|
564
|
-
isFlat: {
|
|
565
|
-
type: import('vue').PropType<boolean>;
|
|
566
|
-
};
|
|
567
582
|
isContentScrollable: {
|
|
568
583
|
type: import('vue').PropType<boolean>;
|
|
569
584
|
};
|
|
585
|
+
hasRadius: {
|
|
586
|
+
type: import('vue').PropType<import('../../../utils/type.utils').RemovedProp<"renamed to radius">>;
|
|
587
|
+
};
|
|
570
588
|
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
571
589
|
$slots: Readonly<{
|
|
572
590
|
header?: () => any;
|
package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue.d.ts
CHANGED
|
@@ -480,12 +480,18 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
480
480
|
hasRibbon: {
|
|
481
481
|
type: import('vue').PropType<boolean>;
|
|
482
482
|
};
|
|
483
|
-
|
|
484
|
-
type: import('vue').PropType<
|
|
483
|
+
elevation: {
|
|
484
|
+
type: import('vue').PropType<import('../../Cards/Card').CardElevation>;
|
|
485
|
+
};
|
|
486
|
+
radius: {
|
|
487
|
+
type: import('vue').PropType<import('../../Cards/Card').CardRadius>;
|
|
485
488
|
};
|
|
486
489
|
backgroundColor: {
|
|
487
490
|
type: import('vue').PropType<import('../../Cards/Card').CardBackgroundColor>;
|
|
488
491
|
};
|
|
492
|
+
isFlat: {
|
|
493
|
+
type: import('vue').PropType<boolean>;
|
|
494
|
+
};
|
|
489
495
|
ribbonPosition: {
|
|
490
496
|
type: import('vue').PropType<import('../../Cards/Card').CardRibbonPositions>;
|
|
491
497
|
};
|
|
@@ -507,12 +513,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
507
513
|
loadingBarTime: {
|
|
508
514
|
type: import('vue').PropType<string>;
|
|
509
515
|
};
|
|
510
|
-
isFlat: {
|
|
511
|
-
type: import('vue').PropType<boolean>;
|
|
512
|
-
};
|
|
513
516
|
isContentScrollable: {
|
|
514
517
|
type: import('vue').PropType<boolean>;
|
|
515
518
|
};
|
|
519
|
+
hasRadius: {
|
|
520
|
+
type: import('vue').PropType<import('../../../utils/type.utils').RemovedProp<"renamed to radius">>;
|
|
521
|
+
};
|
|
516
522
|
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
517
523
|
P: {};
|
|
518
524
|
B: {};
|
|
@@ -539,12 +545,18 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
539
545
|
hasRibbon: {
|
|
540
546
|
type: import('vue').PropType<boolean>;
|
|
541
547
|
};
|
|
542
|
-
|
|
543
|
-
type: import('vue').PropType<
|
|
548
|
+
elevation: {
|
|
549
|
+
type: import('vue').PropType<import('../../Cards/Card').CardElevation>;
|
|
550
|
+
};
|
|
551
|
+
radius: {
|
|
552
|
+
type: import('vue').PropType<import('../../Cards/Card').CardRadius>;
|
|
544
553
|
};
|
|
545
554
|
backgroundColor: {
|
|
546
555
|
type: import('vue').PropType<import('../../Cards/Card').CardBackgroundColor>;
|
|
547
556
|
};
|
|
557
|
+
isFlat: {
|
|
558
|
+
type: import('vue').PropType<boolean>;
|
|
559
|
+
};
|
|
548
560
|
ribbonPosition: {
|
|
549
561
|
type: import('vue').PropType<import('../../Cards/Card').CardRibbonPositions>;
|
|
550
562
|
};
|
|
@@ -566,12 +578,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
566
578
|
loadingBarTime: {
|
|
567
579
|
type: import('vue').PropType<string>;
|
|
568
580
|
};
|
|
569
|
-
isFlat: {
|
|
570
|
-
type: import('vue').PropType<boolean>;
|
|
571
|
-
};
|
|
572
581
|
isContentScrollable: {
|
|
573
582
|
type: import('vue').PropType<boolean>;
|
|
574
583
|
};
|
|
584
|
+
hasRadius: {
|
|
585
|
+
type: import('vue').PropType<import('../../../utils/type.utils').RemovedProp<"renamed to radius">>;
|
|
586
|
+
};
|
|
575
587
|
}>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
576
588
|
__isFragment?: never;
|
|
577
589
|
__isTeleport?: never;
|
|
@@ -595,12 +607,18 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
595
607
|
hasRibbon: {
|
|
596
608
|
type: import('vue').PropType<boolean>;
|
|
597
609
|
};
|
|
598
|
-
|
|
599
|
-
type: import('vue').PropType<
|
|
610
|
+
elevation: {
|
|
611
|
+
type: import('vue').PropType<import('../../Cards/Card').CardElevation>;
|
|
612
|
+
};
|
|
613
|
+
radius: {
|
|
614
|
+
type: import('vue').PropType<import('../../Cards/Card').CardRadius>;
|
|
600
615
|
};
|
|
601
616
|
backgroundColor: {
|
|
602
617
|
type: import('vue').PropType<import('../../Cards/Card').CardBackgroundColor>;
|
|
603
618
|
};
|
|
619
|
+
isFlat: {
|
|
620
|
+
type: import('vue').PropType<boolean>;
|
|
621
|
+
};
|
|
604
622
|
ribbonPosition: {
|
|
605
623
|
type: import('vue').PropType<import('../../Cards/Card').CardRibbonPositions>;
|
|
606
624
|
};
|
|
@@ -622,12 +640,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
622
640
|
loadingBarTime: {
|
|
623
641
|
type: import('vue').PropType<string>;
|
|
624
642
|
};
|
|
625
|
-
isFlat: {
|
|
626
|
-
type: import('vue').PropType<boolean>;
|
|
627
|
-
};
|
|
628
643
|
isContentScrollable: {
|
|
629
644
|
type: import('vue').PropType<boolean>;
|
|
630
645
|
};
|
|
646
|
+
hasRadius: {
|
|
647
|
+
type: import('vue').PropType<import('../../../utils/type.utils').RemovedProp<"renamed to radius">>;
|
|
648
|
+
};
|
|
631
649
|
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
632
650
|
$slots: Readonly<{
|
|
633
651
|
header?: () => any;
|