@octans/ui 1.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/LICENSE +21 -0
- package/README.md +226 -0
- package/bin/octans-icons.mjs +208 -0
- package/dist/components/ActionList/ActionList.vue.d.ts +77 -0
- package/dist/components/ActionList/ActionListButton.vue.d.ts +85 -0
- package/dist/components/ActionList/ActionListMenu.vue.d.ts +18 -0
- package/dist/components/ActionList/index.d.ts +1 -0
- package/dist/components/AppFrame/AppFrame.vue.d.ts +26 -0
- package/dist/components/AppFrame/context.d.ts +40 -0
- package/dist/components/AppFrame/index.d.ts +3 -0
- package/dist/components/AppFrame/types.d.ts +52 -0
- package/dist/components/Badge/Badge.vue.d.ts +125 -0
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/Banner/Banner.vue.d.ts +239 -0
- package/dist/components/Banner/index.d.ts +1 -0
- package/dist/components/Button/Button.vue.d.ts +284 -0
- package/dist/components/Button/ButtonGroup.vue.d.ts +44 -0
- package/dist/components/Button/ButtonGroupItem.vue.d.ts +5 -0
- package/dist/components/Button/index.d.ts +3 -0
- package/dist/components/Calendar/Calendar.vue.d.ts +15 -0
- package/dist/components/Calendar/index.d.ts +2 -0
- package/dist/components/Calendar/types.d.ts +39 -0
- package/dist/components/CalendarHeatmap/CalendarHeatmap.vue.d.ts +21 -0
- package/dist/components/CalendarHeatmap/index.d.ts +2 -0
- package/dist/components/CalendarHeatmap/types.d.ts +168 -0
- package/dist/components/Caption/Caption.vue.d.ts +5 -0
- package/dist/components/Caption/index.d.ts +1 -0
- package/dist/components/Card/Card.vue.d.ts +82 -0
- package/dist/components/Card/CardSection.vue.d.ts +89 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Card/utils.d.ts +4 -0
- package/dist/components/Checkbox/Checkbox.vue.d.ts +171 -0
- package/dist/components/Checkbox/CheckboxControl.vue.d.ts +59 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Choice/Choice.vue.d.ts +102 -0
- package/dist/components/Choice/index.d.ts +1 -0
- package/dist/components/ChoiceList/ChoiceList.vue.d.ts +199 -0
- package/dist/components/ChoiceList/index.d.ts +2 -0
- package/dist/components/ChoiceList/types.d.ts +31 -0
- package/dist/components/ColorPicker/ColorPicker.vue.d.ts +18 -0
- package/dist/components/ColorPicker/index.d.ts +2 -0
- package/dist/components/ColorPicker/types.d.ts +62 -0
- package/dist/components/ColorSelector/ColorSelector.vue.d.ts +34 -0
- package/dist/components/ColorSelector/index.d.ts +2 -0
- package/dist/components/ColorSelector/types.d.ts +143 -0
- package/dist/components/DataTable/BulkActions.vue.d.ts +282 -0
- package/dist/components/DataTable/DataTable.vue.d.ts +40 -0
- package/dist/components/DataTable/DataTableFooter.vue.d.ts +22 -0
- package/dist/components/DataTable/index.d.ts +2 -0
- package/dist/components/DataTable/types.d.ts +249 -0
- package/dist/components/DatePicker/DatePicker.vue.d.ts +17 -0
- package/dist/components/DatePicker/index.d.ts +4 -0
- package/dist/components/DatePicker/types.d.ts +57 -0
- package/dist/components/Divider/Divider.vue.d.ts +20 -0
- package/dist/components/Divider/index.d.ts +2 -0
- package/dist/components/Divider/types.d.ts +76 -0
- package/dist/components/EventDelegator/EventDelegator.vue.d.ts +18 -0
- package/dist/components/EventDelegator/index.d.ts +1 -0
- package/dist/components/EventDelegator/utils.d.ts +25 -0
- package/dist/components/FileInput/DropZone.vue.d.ts +67 -0
- package/dist/components/FileInput/FileInput.vue.d.ts +422 -0
- package/dist/components/FileInput/ItemList.vue.d.ts +109 -0
- package/dist/components/FileInput/index.d.ts +1 -0
- package/dist/components/FileInput/utils.d.ts +15 -0
- package/dist/components/Filters/FilterActions.vue.d.ts +236 -0
- package/dist/components/Filters/FilterItem.vue.d.ts +813 -0
- package/dist/components/Filters/Filters.vue.d.ts +1627 -0
- package/dist/components/Filters/index.d.ts +1 -0
- package/dist/components/Filters/utils.d.ts +1 -0
- package/dist/components/FooterHelp/FooterHelp.vue.d.ts +16 -0
- package/dist/components/FooterHelp/index.d.ts +1 -0
- package/dist/components/FormLayout/FormLayout.vue.d.ts +5 -0
- package/dist/components/FormLayout/FormLayoutGroup.vue.d.ts +17 -0
- package/dist/components/FormLayout/index.d.ts +2 -0
- package/dist/components/Formatter/Formatter.vue.d.ts +42 -0
- package/dist/components/Formatter/index.d.ts +1 -0
- package/dist/components/GlobalNav/GlobalNav.vue.d.ts +33 -0
- package/dist/components/GlobalNav/index.d.ts +2 -0
- package/dist/components/GlobalNav/types.d.ts +64 -0
- package/dist/components/GradientPicker/GradientPicker.vue.d.ts +20 -0
- package/dist/components/GradientPicker/index.d.ts +2 -0
- package/dist/components/GradientPicker/types.d.ts +74 -0
- package/dist/components/Heading/Heading.vue.d.ts +18 -0
- package/dist/components/Heading/index.d.ts +1 -0
- package/dist/components/Icon/Icon.vue.d.ts +112 -0
- package/dist/components/Icon/iconBundle.d.ts +1 -0
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/InlineError/InlineError.vue.d.ts +6 -0
- package/dist/components/InlineError/index.d.ts +1 -0
- package/dist/components/Labelled/Labelled.vue.d.ts +110 -0
- package/dist/components/Labelled/index.d.ts +1 -0
- package/dist/components/Layout/Layout.vue.d.ts +13 -0
- package/dist/components/Layout/LayoutSection.vue.d.ts +16 -0
- package/dist/components/Layout/LayoutSectionAnnotated.vue.d.ts +34 -0
- package/dist/components/Layout/index.d.ts +3 -0
- package/dist/components/LineClamper/LineClamper.vue.d.ts +16 -0
- package/dist/components/LineClamper/index.d.ts +2 -0
- package/dist/components/LineClamper/types.d.ts +7 -0
- package/dist/components/Link/Link.vue.d.ts +19 -0
- package/dist/components/Link/index.d.ts +1 -0
- package/dist/components/List/List.vue.d.ts +15 -0
- package/dist/components/List/ListItem.vue.d.ts +16 -0
- package/dist/components/List/index.d.ts +3 -0
- package/dist/components/List/types.d.ts +51 -0
- package/dist/components/LoaderOverlay/LoaderOverlay.vue.d.ts +18 -0
- package/dist/components/LoaderOverlay/host.d.ts +6 -0
- package/dist/components/LoaderOverlay/index.d.ts +26 -0
- package/dist/components/LoaderOverlay/store.d.ts +7 -0
- package/dist/components/LoaderOverlay/types.d.ts +24 -0
- package/dist/components/LoadingBar/LoadingBar.vue.d.ts +7 -0
- package/dist/components/LoadingBar/host.d.ts +6 -0
- package/dist/components/LoadingBar/index.d.ts +28 -0
- package/dist/components/LoadingBar/store.d.ts +6 -0
- package/dist/components/LoadingBar/types.d.ts +16 -0
- package/dist/components/MaybeMountingPortal/MaybeMountingPortal.vue.d.ts +53 -0
- package/dist/components/MaybeMountingPortal/index.d.ts +1 -0
- package/dist/components/MaybeRouterLink/MaybeRouterLink.vue.d.ts +34 -0
- package/dist/components/MaybeRouterLink/index.d.ts +2 -0
- package/dist/components/MaybeRouterLink/types.d.ts +49 -0
- package/dist/components/Modal/Modal.vue.d.ts +28 -0
- package/dist/components/Modal/ModalBackdrop.vue.d.ts +12 -0
- package/dist/components/Modal/ModalHost.vue.d.ts +3 -0
- package/dist/components/Modal/ModalStackItem.vue.d.ts +14 -0
- package/dist/components/Modal/api/AlertModal.vue.d.ts +10 -0
- package/dist/components/Modal/api/Base.d.ts +12 -0
- package/dist/components/Modal/api/ConfirmModal.vue.d.ts +10 -0
- package/dist/components/Modal/api/GenericModal.vue.d.ts +10 -0
- package/dist/components/Modal/api/PromptModal.vue.d.ts +10 -0
- package/dist/components/Modal/api/types.d.ts +110 -0
- package/dist/components/Modal/host.d.ts +2 -0
- package/dist/components/Modal/index.d.ts +10 -0
- package/dist/components/Modal/manager.d.ts +80 -0
- package/dist/components/Modal/types.d.ts +49 -0
- package/dist/components/NavField/NavField.vue.d.ts +223 -0
- package/dist/components/NavField/index.d.ts +1 -0
- package/dist/components/Navigation/Navigation.vue.d.ts +47 -0
- package/dist/components/Navigation/components/Item.vue.d.ts +10 -0
- package/dist/components/Navigation/components/Section.vue.d.ts +13 -0
- package/dist/components/Navigation/index.d.ts +2 -0
- package/dist/components/Navigation/types.d.ts +117 -0
- package/dist/components/OtpInput/OtpInput.vue.d.ts +21 -0
- package/dist/components/OtpInput/index.d.ts +2 -0
- package/dist/components/OtpInput/types.d.ts +87 -0
- package/dist/components/Page/Page.vue.d.ts +34 -0
- package/dist/components/Page/index.d.ts +2 -0
- package/dist/components/Page/types.d.ts +75 -0
- package/dist/components/PageActions/PageActions.vue.d.ts +6 -0
- package/dist/components/PageActions/index.d.ts +2 -0
- package/dist/components/PageActions/types.d.ts +17 -0
- package/dist/components/Pagination/Pagination.vue.d.ts +22 -0
- package/dist/components/Pagination/index.d.ts +1 -0
- package/dist/components/Popper/Popper.vue.d.ts +45 -0
- package/dist/components/Popper/index.d.ts +2 -0
- package/dist/components/Popper/types.d.ts +29 -0
- package/dist/components/PreventAutoComplete/PreventAutoComplete.vue.d.ts +24 -0
- package/dist/components/PreventAutoComplete/index.d.ts +1 -0
- package/dist/components/ProgressBar/ProgressBar.vue.d.ts +48 -0
- package/dist/components/ProgressBar/index.d.ts +2 -0
- package/dist/components/RadioButton/RadioButton.vue.d.ts +143 -0
- package/dist/components/RadioButton/RadioButtonControl.vue.d.ts +50 -0
- package/dist/components/RadioButton/index.d.ts +2 -0
- package/dist/components/RangeSlider/RangeSlider.vue.d.ts +303 -0
- package/dist/components/RangeSlider/index.d.ts +1 -0
- package/dist/components/Rating/Rating.vue.d.ts +20 -0
- package/dist/components/Rating/index.d.ts +2 -0
- package/dist/components/Rating/types.d.ts +78 -0
- package/dist/components/ResourceList/ResourceItem.vue.d.ts +17 -0
- package/dist/components/ResourceList/ResourceList.vue.d.ts +19 -0
- package/dist/components/ResourceList/index.d.ts +3 -0
- package/dist/components/ResourceList/types.d.ts +19 -0
- package/dist/components/SaveBar/SaveBar.vue.d.ts +15 -0
- package/dist/components/SaveBar/index.d.ts +4 -0
- package/dist/components/SaveBar/store.d.ts +56 -0
- package/dist/components/SaveBar/types.d.ts +42 -0
- package/dist/components/SaveBarController/SaveBarController.vue.d.ts +40 -0
- package/dist/components/SaveBarController/index.d.ts +1 -0
- package/dist/components/ScrollPane/ScrollPane.vue.d.ts +24 -0
- package/dist/components/ScrollPane/index.d.ts +2 -0
- package/dist/components/ScrollPane/types.d.ts +64 -0
- package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts +39 -0
- package/dist/components/SegmentedControl/index.d.ts +2 -0
- package/dist/components/SegmentedControl/types.d.ts +119 -0
- package/dist/components/Select/Select.vue.d.ts +901 -0
- package/dist/components/Select/index.d.ts +3 -0
- package/dist/components/Sheet/Sheet.vue.d.ts +41 -0
- package/dist/components/Sheet/index.d.ts +2 -0
- package/dist/components/Sheet/manager.d.ts +34 -0
- package/dist/components/Sheet/types.d.ts +92 -0
- package/dist/components/SkeletonBodyText/SkeletonBodyText.vue.d.ts +17 -0
- package/dist/components/SkeletonBodyText/index.d.ts +1 -0
- package/dist/components/SkeletonCard/SkeletonCard.vue.d.ts +34 -0
- package/dist/components/SkeletonCard/index.d.ts +1 -0
- package/dist/components/SkeletonDisplayText/SkeletonDisplayText.vue.d.ts +17 -0
- package/dist/components/SkeletonDisplayText/index.d.ts +1 -0
- package/dist/components/Spinner/Spinner.vue.d.ts +52 -0
- package/dist/components/Spinner/index.d.ts +1 -0
- package/dist/components/Splitter/Splitter.vue.d.ts +60 -0
- package/dist/components/Splitter/index.d.ts +2 -0
- package/dist/components/Splitter/types.d.ts +177 -0
- package/dist/components/Stack/Stack.vue.d.ts +130 -0
- package/dist/components/Stack/StackItem.vue.d.ts +23 -0
- package/dist/components/Stack/index.d.ts +2 -0
- package/dist/components/StatGroup/Stat.vue.d.ts +16 -0
- package/dist/components/StatGroup/StatGroup.vue.d.ts +17 -0
- package/dist/components/StatGroup/index.d.ts +3 -0
- package/dist/components/StatGroup/types.d.ts +42 -0
- package/dist/components/Sticky/Sticky.vue.d.ts +27 -0
- package/dist/components/Sticky/index.d.ts +2 -0
- package/dist/components/Sticky/types.d.ts +24 -0
- package/dist/components/SyntaxHighlighter/SyntaxHighlighter.vue.d.ts +12 -0
- package/dist/components/SyntaxHighlighter/index.d.ts +2 -0
- package/dist/components/SyntaxHighlighter/types.d.ts +10 -0
- package/dist/components/Tabs/Tabs.vue.d.ts +23 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/types.d.ts +19 -0
- package/dist/components/Tag/Tag.vue.d.ts +29 -0
- package/dist/components/Tag/index.d.ts +1 -0
- package/dist/components/TextContainer/TextContainer.vue.d.ts +13 -0
- package/dist/components/TextContainer/index.d.ts +1 -0
- package/dist/components/TextField/TextField.vue.d.ts +38 -0
- package/dist/components/TextField/index.d.ts +2 -0
- package/dist/components/TextField/types.d.ts +130 -0
- package/dist/components/TextStyle/TextStyle.vue.d.ts +15 -0
- package/dist/components/TextStyle/index.d.ts +1 -0
- package/dist/components/Thumbnail/Thumbnail.vue.d.ts +17 -0
- package/dist/components/Thumbnail/index.d.ts +2 -0
- package/dist/components/Thumbnail/types.d.ts +32 -0
- package/dist/components/TimePicker/TimePicker.vue.d.ts +25 -0
- package/dist/components/TimePicker/index.d.ts +2 -0
- package/dist/components/TimePicker/types.d.ts +90 -0
- package/dist/components/TimezonePicker/TimezonePicker.vue.d.ts +15 -0
- package/dist/components/TimezonePicker/index.d.ts +2 -0
- package/dist/components/TimezonePicker/types.d.ts +50 -0
- package/dist/components/TimezonePicker/zoneCountries.d.ts +2 -0
- package/dist/components/ToastManager/ProgressBar.vue.d.ts +8 -0
- package/dist/components/ToastManager/Toast.vue.d.ts +14 -0
- package/dist/components/ToastManager/ToastManager.vue.d.ts +19 -0
- package/dist/components/ToastManager/host.d.ts +14 -0
- package/dist/components/ToastManager/index.d.ts +24 -0
- package/dist/components/ToastManager/manager.d.ts +45 -0
- package/dist/components/ToastManager/types.d.ts +44 -0
- package/dist/components/ToggleSwitch/ToggleSwitch.vue.d.ts +35 -0
- package/dist/components/ToggleSwitch/index.d.ts +2 -0
- package/dist/components/ToggleSwitch/types.d.ts +84 -0
- package/dist/components/Tooltip/Tooltip.vue.d.ts +20 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/UiProvider/UiProvider.vue.d.ts +16 -0
- package/dist/components/UiProvider/index.d.ts +2 -0
- package/dist/components/UiProvider/types.d.ts +2 -0
- package/dist/components/UiProvider/utils.d.ts +5 -0
- package/dist/components/UnstyledLink/UnstyledLink.vue.d.ts +5 -0
- package/dist/components/UnstyledLink/index.d.ts +1 -0
- package/dist/components/all.d.ts +92 -0
- package/dist/components/types.d.ts +74 -0
- package/dist/globalExtensions.d.ts +7 -0
- package/dist/i18n/en.json.d.ts +60 -0
- package/dist/lib.d.ts +67 -0
- package/dist/lib.umd.d.ts +1 -0
- package/dist/style.css +2 -0
- package/dist/test/setup.d.ts +1 -0
- package/dist/ui.js +20051 -0
- package/dist/ui.umd.js +10 -0
- package/dist/utils/autoHost.d.ts +27 -0
- package/dist/utils/color.d.ts +112 -0
- package/dist/utils/colorRamp.d.ts +51 -0
- package/dist/utils/createTheme.d.ts +52 -0
- package/dist/utils/customTheme.d.ts +73 -0
- package/dist/utils/date.d.ts +4 -0
- package/dist/utils/debounce.d.ts +3 -0
- package/dist/utils/deferredPromise.d.ts +6 -0
- package/dist/utils/format.d.ts +9 -0
- package/dist/utils/fuzzy.d.ts +33 -0
- package/dist/utils/gradient.d.ts +83 -0
- package/dist/utils/index.d.ts +31 -0
- package/dist/utils/loader.d.ts +1 -0
- package/dist/utils/positionPanel.d.ts +32 -0
- package/dist/utils/radix.d.ts +6 -0
- package/dist/utils/theme.d.ts +42 -0
- package/dist/utils/timezone.d.ts +66 -0
- package/dist/utils/tokens.d.ts +62 -0
- package/dist/utils/translate.d.ts +27 -0
- package/dist/zoneCountries-CWZGMHyp.js +353 -0
- package/package.json +120 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
/**
|
|
5
|
+
* The title heading of the section.
|
|
6
|
+
*/
|
|
7
|
+
title: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Renders the section with a subtle background color.
|
|
12
|
+
*/
|
|
13
|
+
subdued: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* An array of action objects:
|
|
18
|
+
*
|
|
19
|
+
* ```ts
|
|
20
|
+
* interface Action {
|
|
21
|
+
* label: string
|
|
22
|
+
* icon: string
|
|
23
|
+
* disabled: boolean
|
|
24
|
+
* url: string
|
|
25
|
+
* external: boolean
|
|
26
|
+
* onAction(): void
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
actions: {
|
|
31
|
+
type: ArrayConstructor;
|
|
32
|
+
};
|
|
33
|
+
collapseActions: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* By default padding is included in the section. Use this to disable it.
|
|
38
|
+
*/
|
|
39
|
+
padded: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
46
|
+
/**
|
|
47
|
+
* The title heading of the section.
|
|
48
|
+
*/
|
|
49
|
+
title: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Renders the section with a subtle background color.
|
|
54
|
+
*/
|
|
55
|
+
subdued: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* An array of action objects:
|
|
60
|
+
*
|
|
61
|
+
* ```ts
|
|
62
|
+
* interface Action {
|
|
63
|
+
* label: string
|
|
64
|
+
* icon: string
|
|
65
|
+
* disabled: boolean
|
|
66
|
+
* url: string
|
|
67
|
+
* external: boolean
|
|
68
|
+
* onAction(): void
|
|
69
|
+
* }
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
actions: {
|
|
73
|
+
type: ArrayConstructor;
|
|
74
|
+
};
|
|
75
|
+
collapseActions: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* By default padding is included in the section. Use this to disable it.
|
|
80
|
+
*/
|
|
81
|
+
padded: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
}>> & Readonly<{}>, {
|
|
86
|
+
subdued: boolean;
|
|
87
|
+
collapseActions: boolean;
|
|
88
|
+
padded: boolean;
|
|
89
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
|
+
label: {
|
|
6
|
+
type: PropType<string | false | null>;
|
|
7
|
+
};
|
|
8
|
+
error: {
|
|
9
|
+
type: PropType<string | false | null>;
|
|
10
|
+
};
|
|
11
|
+
helpText: {
|
|
12
|
+
type: PropType<string | false | null>;
|
|
13
|
+
required: false;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Renders a help icon next to the label which links to an external page.
|
|
17
|
+
*/
|
|
18
|
+
helpLink: {
|
|
19
|
+
type: PropType<string | false | null>;
|
|
20
|
+
required: false;
|
|
21
|
+
};
|
|
22
|
+
name: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* The bound value / v-model.
|
|
27
|
+
*/
|
|
28
|
+
modelValue: {
|
|
29
|
+
type: null;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* The model value to use when checked.
|
|
33
|
+
*/
|
|
34
|
+
trueValue: {
|
|
35
|
+
type: null;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* The model value to use when not checked.
|
|
40
|
+
*/
|
|
41
|
+
falseValue: {
|
|
42
|
+
type: null;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* When `true` the checkbox will be checked. This is an alternative
|
|
47
|
+
* to assigning `value` to be `trueValue`.
|
|
48
|
+
*/
|
|
49
|
+
checked: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Renders the checkbox in the indeterminate state.
|
|
55
|
+
*/
|
|
56
|
+
indeterminate: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
disabled: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
readonly: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Tooltip to show when hovering the button.
|
|
70
|
+
*/
|
|
71
|
+
tooltip: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Tooltip position, "top", "bottom", "right" or "left".
|
|
76
|
+
*/
|
|
77
|
+
tooltipPosition: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
82
|
+
[key: string]: any;
|
|
83
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
84
|
+
label: {
|
|
85
|
+
type: PropType<string | false | null>;
|
|
86
|
+
};
|
|
87
|
+
error: {
|
|
88
|
+
type: PropType<string | false | null>;
|
|
89
|
+
};
|
|
90
|
+
helpText: {
|
|
91
|
+
type: PropType<string | false | null>;
|
|
92
|
+
required: false;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Renders a help icon next to the label which links to an external page.
|
|
96
|
+
*/
|
|
97
|
+
helpLink: {
|
|
98
|
+
type: PropType<string | false | null>;
|
|
99
|
+
required: false;
|
|
100
|
+
};
|
|
101
|
+
name: {
|
|
102
|
+
type: StringConstructor;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* The bound value / v-model.
|
|
106
|
+
*/
|
|
107
|
+
modelValue: {
|
|
108
|
+
type: null;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* The model value to use when checked.
|
|
112
|
+
*/
|
|
113
|
+
trueValue: {
|
|
114
|
+
type: null;
|
|
115
|
+
default: boolean;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* The model value to use when not checked.
|
|
119
|
+
*/
|
|
120
|
+
falseValue: {
|
|
121
|
+
type: null;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* When `true` the checkbox will be checked. This is an alternative
|
|
126
|
+
* to assigning `value` to be `trueValue`.
|
|
127
|
+
*/
|
|
128
|
+
checked: {
|
|
129
|
+
type: BooleanConstructor;
|
|
130
|
+
default: boolean;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* Renders the checkbox in the indeterminate state.
|
|
134
|
+
*/
|
|
135
|
+
indeterminate: {
|
|
136
|
+
type: BooleanConstructor;
|
|
137
|
+
default: boolean;
|
|
138
|
+
};
|
|
139
|
+
disabled: {
|
|
140
|
+
type: BooleanConstructor;
|
|
141
|
+
default: boolean;
|
|
142
|
+
};
|
|
143
|
+
readonly: {
|
|
144
|
+
type: BooleanConstructor;
|
|
145
|
+
default: boolean;
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* Tooltip to show when hovering the button.
|
|
149
|
+
*/
|
|
150
|
+
tooltip: {
|
|
151
|
+
type: StringConstructor;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* Tooltip position, "top", "bottom", "right" or "left".
|
|
155
|
+
*/
|
|
156
|
+
tooltipPosition: {
|
|
157
|
+
type: StringConstructor;
|
|
158
|
+
default: string;
|
|
159
|
+
};
|
|
160
|
+
}>> & Readonly<{
|
|
161
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
162
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
163
|
+
}>, {
|
|
164
|
+
disabled: boolean;
|
|
165
|
+
tooltipPosition: string;
|
|
166
|
+
readonly: boolean;
|
|
167
|
+
checked: boolean;
|
|
168
|
+
indeterminate: boolean;
|
|
169
|
+
trueValue: any;
|
|
170
|
+
falseValue: any;
|
|
171
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
name: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
};
|
|
7
|
+
checked: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
disabled: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
readonly: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
error: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
indeterminate: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
30
|
+
name: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
};
|
|
33
|
+
checked: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
disabled: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
readonly: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
error: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
indeterminate: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
}>> & Readonly<{}>, {
|
|
54
|
+
disabled: boolean;
|
|
55
|
+
error: boolean;
|
|
56
|
+
readonly: boolean;
|
|
57
|
+
checked: boolean;
|
|
58
|
+
indeterminate: boolean;
|
|
59
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
|
+
label: {
|
|
6
|
+
type: PropType<string | false | null>;
|
|
7
|
+
};
|
|
8
|
+
helpText: {
|
|
9
|
+
type: PropType<string | false | null>;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Renders a help icon next to the label which links to an external page.
|
|
13
|
+
*/
|
|
14
|
+
helpLink: {
|
|
15
|
+
type: PropType<string | false | null>;
|
|
16
|
+
};
|
|
17
|
+
error: {
|
|
18
|
+
type: PropType<string | false | null>;
|
|
19
|
+
};
|
|
20
|
+
type: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
disabled: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
readonly: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
value: {
|
|
33
|
+
type: null;
|
|
34
|
+
default: undefined;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Tooltip to show when hovering the button.
|
|
38
|
+
*/
|
|
39
|
+
tooltip: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Tooltip position, "top", "bottom", "right" or "left".
|
|
44
|
+
*/
|
|
45
|
+
tooltipPosition: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
52
|
+
label: {
|
|
53
|
+
type: PropType<string | false | null>;
|
|
54
|
+
};
|
|
55
|
+
helpText: {
|
|
56
|
+
type: PropType<string | false | null>;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Renders a help icon next to the label which links to an external page.
|
|
60
|
+
*/
|
|
61
|
+
helpLink: {
|
|
62
|
+
type: PropType<string | false | null>;
|
|
63
|
+
};
|
|
64
|
+
error: {
|
|
65
|
+
type: PropType<string | false | null>;
|
|
66
|
+
};
|
|
67
|
+
type: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
disabled: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
readonly: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
value: {
|
|
80
|
+
type: null;
|
|
81
|
+
default: undefined;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Tooltip to show when hovering the button.
|
|
85
|
+
*/
|
|
86
|
+
tooltip: {
|
|
87
|
+
type: StringConstructor;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Tooltip position, "top", "bottom", "right" or "left".
|
|
91
|
+
*/
|
|
92
|
+
tooltipPosition: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
}>> & Readonly<{}>, {
|
|
97
|
+
disabled: boolean;
|
|
98
|
+
type: string;
|
|
99
|
+
tooltipPosition: string;
|
|
100
|
+
value: any;
|
|
101
|
+
readonly: boolean;
|
|
102
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Choice } from './Choice.vue';
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ChoiceListAppearanceType, ChoiceListOptionType } from './types';
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
6
|
+
label: {
|
|
7
|
+
type: PropType<string | false | null>;
|
|
8
|
+
};
|
|
9
|
+
error: {
|
|
10
|
+
type: PropType<string | false | null>;
|
|
11
|
+
};
|
|
12
|
+
helpText: {
|
|
13
|
+
type: PropType<string | false | null>;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Renders a help icon next to the label which links to an external page.
|
|
17
|
+
*/
|
|
18
|
+
helpLink: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* The choices to render. See `ChoiceListOptionType`, which is exported.
|
|
23
|
+
*
|
|
24
|
+
* ```ts
|
|
25
|
+
* interface ChoiceListOptionType {
|
|
26
|
+
* label: string
|
|
27
|
+
* value: any
|
|
28
|
+
* helpText?: string
|
|
29
|
+
* helpLink?: string
|
|
30
|
+
* disabled?: boolean
|
|
31
|
+
* readonly?: boolean
|
|
32
|
+
* // shown only while this choice is selected
|
|
33
|
+
* revealedContent?: string | VNode
|
|
34
|
+
* }
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
options: {
|
|
38
|
+
type: PropType<ChoiceListOptionType[]>;
|
|
39
|
+
default: () => never[];
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* How the choices are drawn.
|
|
43
|
+
*
|
|
44
|
+
* - `list` — one control per line, which is what most questions want.
|
|
45
|
+
* - `segmented` — a joined row of segments, for two to five short labels
|
|
46
|
+
* where showing them all at once is worth the width.
|
|
47
|
+
*
|
|
48
|
+
* `segmented` is the same radio group underneath, so the model and the
|
|
49
|
+
* events are unchanged. It has no room for `helpLink` or per-choice
|
|
50
|
+
* `readonly`, and per-choice `helpText` becomes a tooltip. For icons in
|
|
51
|
+
* the segments, reach for `SegmentedControl` directly.
|
|
52
|
+
*/
|
|
53
|
+
appearance: {
|
|
54
|
+
type: PropType<ChoiceListAppearanceType>;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* If `true`, renders using a list of checkboxes and expects `value` to
|
|
59
|
+
* be an array.
|
|
60
|
+
*
|
|
61
|
+
* Ignored by `appearance="segmented"`, which is a radio group and can only
|
|
62
|
+
* hold one answer — it falls back to the list and warns.
|
|
63
|
+
*/
|
|
64
|
+
multiple: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* The `name` shared by the radios this renders, so they behave as one
|
|
70
|
+
* group. Generated when unset; only worth setting to submit the value with
|
|
71
|
+
* a plain HTML form. Unused by `multiple`, whose checkboxes are unrelated
|
|
72
|
+
* to each other.
|
|
73
|
+
*/
|
|
74
|
+
name: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Disable all the options.
|
|
79
|
+
*/
|
|
80
|
+
disabled: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Makes all options readonly.
|
|
86
|
+
*/
|
|
87
|
+
readonly: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* An array if using `multiple`, otherwise any value.
|
|
93
|
+
*/
|
|
94
|
+
modelValue: {
|
|
95
|
+
type: null;
|
|
96
|
+
};
|
|
97
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
98
|
+
[key: string]: any;
|
|
99
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
100
|
+
label: {
|
|
101
|
+
type: PropType<string | false | null>;
|
|
102
|
+
};
|
|
103
|
+
error: {
|
|
104
|
+
type: PropType<string | false | null>;
|
|
105
|
+
};
|
|
106
|
+
helpText: {
|
|
107
|
+
type: PropType<string | false | null>;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Renders a help icon next to the label which links to an external page.
|
|
111
|
+
*/
|
|
112
|
+
helpLink: {
|
|
113
|
+
type: StringConstructor;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* The choices to render. See `ChoiceListOptionType`, which is exported.
|
|
117
|
+
*
|
|
118
|
+
* ```ts
|
|
119
|
+
* interface ChoiceListOptionType {
|
|
120
|
+
* label: string
|
|
121
|
+
* value: any
|
|
122
|
+
* helpText?: string
|
|
123
|
+
* helpLink?: string
|
|
124
|
+
* disabled?: boolean
|
|
125
|
+
* readonly?: boolean
|
|
126
|
+
* // shown only while this choice is selected
|
|
127
|
+
* revealedContent?: string | VNode
|
|
128
|
+
* }
|
|
129
|
+
* ```
|
|
130
|
+
*/
|
|
131
|
+
options: {
|
|
132
|
+
type: PropType<ChoiceListOptionType[]>;
|
|
133
|
+
default: () => never[];
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* How the choices are drawn.
|
|
137
|
+
*
|
|
138
|
+
* - `list` — one control per line, which is what most questions want.
|
|
139
|
+
* - `segmented` — a joined row of segments, for two to five short labels
|
|
140
|
+
* where showing them all at once is worth the width.
|
|
141
|
+
*
|
|
142
|
+
* `segmented` is the same radio group underneath, so the model and the
|
|
143
|
+
* events are unchanged. It has no room for `helpLink` or per-choice
|
|
144
|
+
* `readonly`, and per-choice `helpText` becomes a tooltip. For icons in
|
|
145
|
+
* the segments, reach for `SegmentedControl` directly.
|
|
146
|
+
*/
|
|
147
|
+
appearance: {
|
|
148
|
+
type: PropType<ChoiceListAppearanceType>;
|
|
149
|
+
default: string;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* If `true`, renders using a list of checkboxes and expects `value` to
|
|
153
|
+
* be an array.
|
|
154
|
+
*
|
|
155
|
+
* Ignored by `appearance="segmented"`, which is a radio group and can only
|
|
156
|
+
* hold one answer — it falls back to the list and warns.
|
|
157
|
+
*/
|
|
158
|
+
multiple: {
|
|
159
|
+
type: BooleanConstructor;
|
|
160
|
+
default: boolean;
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* The `name` shared by the radios this renders, so they behave as one
|
|
164
|
+
* group. Generated when unset; only worth setting to submit the value with
|
|
165
|
+
* a plain HTML form. Unused by `multiple`, whose checkboxes are unrelated
|
|
166
|
+
* to each other.
|
|
167
|
+
*/
|
|
168
|
+
name: {
|
|
169
|
+
type: StringConstructor;
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* Disable all the options.
|
|
173
|
+
*/
|
|
174
|
+
disabled: {
|
|
175
|
+
type: BooleanConstructor;
|
|
176
|
+
default: boolean;
|
|
177
|
+
};
|
|
178
|
+
/**
|
|
179
|
+
* Makes all options readonly.
|
|
180
|
+
*/
|
|
181
|
+
readonly: {
|
|
182
|
+
type: BooleanConstructor;
|
|
183
|
+
default: boolean;
|
|
184
|
+
};
|
|
185
|
+
/**
|
|
186
|
+
* An array if using `multiple`, otherwise any value.
|
|
187
|
+
*/
|
|
188
|
+
modelValue: {
|
|
189
|
+
type: null;
|
|
190
|
+
};
|
|
191
|
+
}>> & Readonly<{
|
|
192
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
193
|
+
}>, {
|
|
194
|
+
disabled: boolean;
|
|
195
|
+
readonly: boolean;
|
|
196
|
+
multiple: boolean;
|
|
197
|
+
options: ChoiceListOptionType[];
|
|
198
|
+
appearance: ChoiceListAppearanceType;
|
|
199
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* How a `ChoiceList` draws its choices — one per line, or joined into a row of
|
|
4
|
+
* segments. Both are the same radio group underneath.
|
|
5
|
+
*/
|
|
6
|
+
export type ChoiceListAppearanceType = 'list' | 'segmented';
|
|
7
|
+
/**
|
|
8
|
+
* One choice in a `ChoiceList`.
|
|
9
|
+
*/
|
|
10
|
+
export interface ChoiceListOptionType {
|
|
11
|
+
label: string;
|
|
12
|
+
value: any;
|
|
13
|
+
/**
|
|
14
|
+
* Secondary text shown beneath the label, always visible.
|
|
15
|
+
*/
|
|
16
|
+
helpText?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Renders a help icon next to the label which links to an external page.
|
|
19
|
+
*/
|
|
20
|
+
helpLink?: string;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
readonly?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Extra content revealed beneath this choice **only while it is selected** —
|
|
25
|
+
* the follow-up question a choice opens up ("Other: ___", a date range once
|
|
26
|
+
* "Scheduled" is picked). Not a description; that is `helpText`.
|
|
27
|
+
*
|
|
28
|
+
* A string, or a VNode for anything richer.
|
|
29
|
+
*/
|
|
30
|
+
revealedContent?: string | VNode;
|
|
31
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ColorPickerProps } from './types';
|
|
2
|
+
declare function commit(): void;
|
|
3
|
+
declare const __VLS_export: import('vue').DefineComponent<ColorPickerProps, {
|
|
4
|
+
commit: typeof commit;
|
|
5
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
+
"update:modelValue": (value: string) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<ColorPickerProps> & Readonly<{
|
|
8
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
alpha: boolean;
|
|
12
|
+
swatchShape: import('./types').ColorSwatchShape;
|
|
13
|
+
eyedropper: boolean;
|
|
14
|
+
systemPicker: boolean;
|
|
15
|
+
hideInput: boolean;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|