@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,303 @@
|
|
|
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
|
+
/**
|
|
6
|
+
* Label for the control.
|
|
7
|
+
*/
|
|
8
|
+
label: {
|
|
9
|
+
type: PropType<string | false | null>;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Error text to show below the control.
|
|
13
|
+
*/
|
|
14
|
+
error: {
|
|
15
|
+
type: PropType<string | false | null>;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Help text to show below the control.
|
|
19
|
+
*/
|
|
20
|
+
helpText: {
|
|
21
|
+
type: PropType<string | false | null>;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Renders help text as raw HTML. Use with caution.
|
|
25
|
+
*/
|
|
26
|
+
helpTextHtml: {
|
|
27
|
+
type: PropType<string | false | null>;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Renders a help icon next to the label which links to an external page.
|
|
31
|
+
*/
|
|
32
|
+
helpLink: {
|
|
33
|
+
type: PropType<string | false | null>;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Disables the control and prevents all interaction.
|
|
37
|
+
*/
|
|
38
|
+
disabled: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Prevents the control value from being edited.
|
|
44
|
+
*/
|
|
45
|
+
readonly: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* The value of the control.
|
|
51
|
+
*/
|
|
52
|
+
modelValue: {
|
|
53
|
+
type: NumberConstructor;
|
|
54
|
+
default: number;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* The minimum value allowed.
|
|
58
|
+
*/
|
|
59
|
+
min: {
|
|
60
|
+
type: NumberConstructor;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* The maximum value allowed.
|
|
64
|
+
*/
|
|
65
|
+
max: {
|
|
66
|
+
type: NumberConstructor;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Passes this value to the step attribute of the input element.
|
|
70
|
+
*
|
|
71
|
+
* If it's a float number the tooltip will show decimal values.
|
|
72
|
+
*/
|
|
73
|
+
step: {
|
|
74
|
+
type: NumberConstructor;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Shows a text input field next to the slider for direct value entry.
|
|
78
|
+
*/
|
|
79
|
+
showInput: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
}>, {}, {
|
|
84
|
+
localValue: number;
|
|
85
|
+
}, {
|
|
86
|
+
cssVars(): {
|
|
87
|
+
'--factor': string;
|
|
88
|
+
'--progress': string;
|
|
89
|
+
};
|
|
90
|
+
}, {
|
|
91
|
+
changeValue(value: any): void;
|
|
92
|
+
onInput(event: any): void;
|
|
93
|
+
onChange(event: any): void;
|
|
94
|
+
onTextInput(value: any, event: Event): void;
|
|
95
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
96
|
+
/**
|
|
97
|
+
* Label for the control.
|
|
98
|
+
*/
|
|
99
|
+
label: {
|
|
100
|
+
type: PropType<string | false | null>;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Error text to show below the control.
|
|
104
|
+
*/
|
|
105
|
+
error: {
|
|
106
|
+
type: PropType<string | false | null>;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Help text to show below the control.
|
|
110
|
+
*/
|
|
111
|
+
helpText: {
|
|
112
|
+
type: PropType<string | false | null>;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Renders help text as raw HTML. Use with caution.
|
|
116
|
+
*/
|
|
117
|
+
helpTextHtml: {
|
|
118
|
+
type: PropType<string | false | null>;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Renders a help icon next to the label which links to an external page.
|
|
122
|
+
*/
|
|
123
|
+
helpLink: {
|
|
124
|
+
type: PropType<string | false | null>;
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Disables the control and prevents all interaction.
|
|
128
|
+
*/
|
|
129
|
+
disabled: {
|
|
130
|
+
type: BooleanConstructor;
|
|
131
|
+
default: boolean;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Prevents the control value from being edited.
|
|
135
|
+
*/
|
|
136
|
+
readonly: {
|
|
137
|
+
type: BooleanConstructor;
|
|
138
|
+
default: boolean;
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* The value of the control.
|
|
142
|
+
*/
|
|
143
|
+
modelValue: {
|
|
144
|
+
type: NumberConstructor;
|
|
145
|
+
default: number;
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* The minimum value allowed.
|
|
149
|
+
*/
|
|
150
|
+
min: {
|
|
151
|
+
type: NumberConstructor;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* The maximum value allowed.
|
|
155
|
+
*/
|
|
156
|
+
max: {
|
|
157
|
+
type: NumberConstructor;
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* Passes this value to the step attribute of the input element.
|
|
161
|
+
*
|
|
162
|
+
* If it's a float number the tooltip will show decimal values.
|
|
163
|
+
*/
|
|
164
|
+
step: {
|
|
165
|
+
type: NumberConstructor;
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* Shows a text input field next to the slider for direct value entry.
|
|
169
|
+
*/
|
|
170
|
+
showInput: {
|
|
171
|
+
type: BooleanConstructor;
|
|
172
|
+
default: boolean;
|
|
173
|
+
};
|
|
174
|
+
}>> & Readonly<{}>, {
|
|
175
|
+
disabled: boolean;
|
|
176
|
+
modelValue: number;
|
|
177
|
+
readonly: boolean;
|
|
178
|
+
showInput: boolean;
|
|
179
|
+
}, {}, {
|
|
180
|
+
Labelled: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
181
|
+
label: {
|
|
182
|
+
type: PropType<string | false | null>;
|
|
183
|
+
required: false;
|
|
184
|
+
};
|
|
185
|
+
error: {
|
|
186
|
+
type: PropType<string | false | null>;
|
|
187
|
+
required: false;
|
|
188
|
+
};
|
|
189
|
+
helpText: {
|
|
190
|
+
type: PropType<string | false | null>;
|
|
191
|
+
required: false;
|
|
192
|
+
};
|
|
193
|
+
helpTextHtml: {
|
|
194
|
+
type: PropType<string | false | null>;
|
|
195
|
+
required: false;
|
|
196
|
+
};
|
|
197
|
+
helpLink: {
|
|
198
|
+
type: PropType<string | false | null>;
|
|
199
|
+
required: false;
|
|
200
|
+
};
|
|
201
|
+
required: {
|
|
202
|
+
type: BooleanConstructor;
|
|
203
|
+
required: false;
|
|
204
|
+
};
|
|
205
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
206
|
+
[key: string]: any;
|
|
207
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
208
|
+
label: {
|
|
209
|
+
type: PropType<string | false | null>;
|
|
210
|
+
required: false;
|
|
211
|
+
};
|
|
212
|
+
error: {
|
|
213
|
+
type: PropType<string | false | null>;
|
|
214
|
+
required: false;
|
|
215
|
+
};
|
|
216
|
+
helpText: {
|
|
217
|
+
type: PropType<string | false | null>;
|
|
218
|
+
required: false;
|
|
219
|
+
};
|
|
220
|
+
helpTextHtml: {
|
|
221
|
+
type: PropType<string | false | null>;
|
|
222
|
+
required: false;
|
|
223
|
+
};
|
|
224
|
+
helpLink: {
|
|
225
|
+
type: PropType<string | false | null>;
|
|
226
|
+
required: false;
|
|
227
|
+
};
|
|
228
|
+
required: {
|
|
229
|
+
type: BooleanConstructor;
|
|
230
|
+
required: false;
|
|
231
|
+
};
|
|
232
|
+
}>> & Readonly<{}>, {
|
|
233
|
+
required: boolean;
|
|
234
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
235
|
+
TextField: {
|
|
236
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../TextField').TextFieldProps> & Readonly<{
|
|
237
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
238
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
239
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
240
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
241
|
+
"onUpdate:modelValue"?: ((value: string | number | null, event?: Event | undefined) => any) | undefined;
|
|
242
|
+
}>, {
|
|
243
|
+
focus: () => void;
|
|
244
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
245
|
+
click: (event: MouseEvent) => any;
|
|
246
|
+
blur: (event: FocusEvent) => any;
|
|
247
|
+
focus: (event: FocusEvent) => any;
|
|
248
|
+
keydown: (event: KeyboardEvent) => any;
|
|
249
|
+
"update:modelValue": (value: string | number | null, event?: Event | undefined) => any;
|
|
250
|
+
}, import('vue').PublicProps, {
|
|
251
|
+
type: "email" | "number" | "password" | "text" | "tel";
|
|
252
|
+
emptyValue: string | number | null;
|
|
253
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
254
|
+
P: {};
|
|
255
|
+
B: {};
|
|
256
|
+
D: {};
|
|
257
|
+
C: {};
|
|
258
|
+
M: {};
|
|
259
|
+
Defaults: {};
|
|
260
|
+
}, Readonly<import('../TextField').TextFieldProps> & Readonly<{
|
|
261
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
262
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
263
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
264
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
265
|
+
"onUpdate:modelValue"?: ((value: string | number | null, event?: Event | undefined) => any) | undefined;
|
|
266
|
+
}>, {
|
|
267
|
+
focus: () => void;
|
|
268
|
+
}, {}, {}, {}, {
|
|
269
|
+
type: "email" | "number" | "password" | "text" | "tel";
|
|
270
|
+
emptyValue: string | number | null;
|
|
271
|
+
}>;
|
|
272
|
+
__isFragment?: never;
|
|
273
|
+
__isTeleport?: never;
|
|
274
|
+
__isSuspense?: never;
|
|
275
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('../TextField').TextFieldProps> & Readonly<{
|
|
276
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
277
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
278
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
279
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
280
|
+
"onUpdate:modelValue"?: ((value: string | number | null, event?: Event | undefined) => any) | undefined;
|
|
281
|
+
}>, {
|
|
282
|
+
focus: () => void;
|
|
283
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
284
|
+
click: (event: MouseEvent) => any;
|
|
285
|
+
blur: (event: FocusEvent) => any;
|
|
286
|
+
focus: (event: FocusEvent) => any;
|
|
287
|
+
keydown: (event: KeyboardEvent) => any;
|
|
288
|
+
"update:modelValue": (value: string | number | null, event?: Event | undefined) => any;
|
|
289
|
+
}, string, {
|
|
290
|
+
type: "email" | "number" | "password" | "text" | "tel";
|
|
291
|
+
emptyValue: string | number | null;
|
|
292
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
293
|
+
$slots: {
|
|
294
|
+
left?: (props: {}) => any;
|
|
295
|
+
} & {
|
|
296
|
+
prefix?: (props: {}) => any;
|
|
297
|
+
} & {
|
|
298
|
+
suffix?: (props: {}) => any;
|
|
299
|
+
} & {
|
|
300
|
+
right?: (props: {}) => any;
|
|
301
|
+
};
|
|
302
|
+
});
|
|
303
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as RangeSlider } from './RangeSlider.vue';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RatingProps } from './types';
|
|
2
|
+
declare function focus(): void;
|
|
3
|
+
declare const __VLS_export: import('vue').DefineComponent<RatingProps, {
|
|
4
|
+
focus: typeof focus;
|
|
5
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
+
change: (value: number) => any;
|
|
7
|
+
"update:modelValue": (value: number) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<RatingProps> & Readonly<{
|
|
9
|
+
onChange?: ((value: number) => any) | undefined;
|
|
10
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
11
|
+
}>, {
|
|
12
|
+
size: number;
|
|
13
|
+
emptyColor: string;
|
|
14
|
+
stars: number;
|
|
15
|
+
emptyIcon: string;
|
|
16
|
+
fullIcon: string;
|
|
17
|
+
fullColor: string;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export interface RatingProps {
|
|
2
|
+
/**
|
|
3
|
+
* Label to display above the control.
|
|
4
|
+
*/
|
|
5
|
+
label?: string | false;
|
|
6
|
+
/**
|
|
7
|
+
* Error text to show below the control.
|
|
8
|
+
*/
|
|
9
|
+
error?: string | false | null;
|
|
10
|
+
/**
|
|
11
|
+
* Help text to show below the control.
|
|
12
|
+
*/
|
|
13
|
+
helpText?: string | false;
|
|
14
|
+
/**
|
|
15
|
+
* Renders help text as raw HTML. Use with caution.
|
|
16
|
+
*/
|
|
17
|
+
helpTextHtml?: string | false;
|
|
18
|
+
/**
|
|
19
|
+
* Renders a help icon next to the label which links to an external page.
|
|
20
|
+
*/
|
|
21
|
+
helpLink?: string | false;
|
|
22
|
+
/**
|
|
23
|
+
* The current rating value. `null` or `0` means unrated.
|
|
24
|
+
*/
|
|
25
|
+
modelValue?: number | null;
|
|
26
|
+
/**
|
|
27
|
+
* Number of icons to render.
|
|
28
|
+
*/
|
|
29
|
+
stars?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Allow half-step selection, e.g. `2.5`. Fractional values are always
|
|
32
|
+
* displayed regardless of this setting (useful for read-only averages);
|
|
33
|
+
* this only controls click/hover/keyboard granularity.
|
|
34
|
+
*/
|
|
35
|
+
allowHalf?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Display only — disables interaction but keeps full opacity.
|
|
38
|
+
*/
|
|
39
|
+
readonly?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Disable the control (dimmed, non-interactive).
|
|
42
|
+
*/
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Clicking the icon matching the current value resets it to `0`.
|
|
46
|
+
*/
|
|
47
|
+
clearable?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Icon name for the empty (unfilled) icon.
|
|
50
|
+
*/
|
|
51
|
+
emptyIcon?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Icon name for the full (filled) icon.
|
|
54
|
+
*/
|
|
55
|
+
fullIcon?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Colour of empty icons.
|
|
58
|
+
*/
|
|
59
|
+
emptyColor?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Colour of filled icons.
|
|
62
|
+
*/
|
|
63
|
+
fullColor?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Colour of filled icons while hovering. Defaults to `fullColor`.
|
|
66
|
+
*/
|
|
67
|
+
hoverColor?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Icon size in pixels.
|
|
70
|
+
*/
|
|
71
|
+
size?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Show a tooltip with the rating value on hover. When interactive it shows
|
|
74
|
+
* the value under the pointer (what clicking would select); when `disabled`
|
|
75
|
+
* or `readonly` it shows the current value.
|
|
76
|
+
*/
|
|
77
|
+
tooltip?: boolean;
|
|
78
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
+
click: () => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
8
|
+
onClick?: (() => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ResourceListProps, ResourceListColumnType } from './types';
|
|
2
|
+
declare var __VLS_1: {
|
|
3
|
+
item: Record<string, any>;
|
|
4
|
+
};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
item?: (props: typeof __VLS_1) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import('vue').DefineComponent<ResourceListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ResourceListProps> & Readonly<{}>, {
|
|
9
|
+
items: Record<string, any>[];
|
|
10
|
+
columns: ResourceListColumnType[];
|
|
11
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface ResourceListColumnType {
|
|
2
|
+
key: string;
|
|
3
|
+
label: string;
|
|
4
|
+
/**
|
|
5
|
+
* Name of a formatter from `format()` — `currency`, `integer`, `percent`,
|
|
6
|
+
* `dateShort` and so on. Numeric formats also right-align the column.
|
|
7
|
+
*/
|
|
8
|
+
format?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ResourceListProps {
|
|
11
|
+
/**
|
|
12
|
+
* Column definitions for the list.
|
|
13
|
+
*/
|
|
14
|
+
columns?: ResourceListColumnType[];
|
|
15
|
+
/**
|
|
16
|
+
* Array of item objects to display. Each item should have an `id` property.
|
|
17
|
+
*/
|
|
18
|
+
items?: Record<string, any>[];
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SaveBarProps } from './types';
|
|
2
|
+
declare const __VLS_export: import('vue').DefineComponent<SaveBarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
+
save: () => any;
|
|
4
|
+
discard: () => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<SaveBarProps> & Readonly<{
|
|
6
|
+
onSave?: (() => any) | undefined;
|
|
7
|
+
onDiscard?: (() => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
state: import('./types').SaveBarStateType;
|
|
10
|
+
layoutMode: "default" | "alternate";
|
|
11
|
+
translations: import('./types').SaveBarTranslationsType;
|
|
12
|
+
confirmDiscard: boolean;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { SaveBarStateType } from './types';
|
|
2
|
+
export declare const saveBarState: Readonly<import('vue').Ref<SaveBarStateType, SaveBarStateType>>;
|
|
3
|
+
/**
|
|
4
|
+
* The save bar's state and actions, also exposed as `$ui.saveBar`.
|
|
5
|
+
*
|
|
6
|
+
* The app owns the state: `setState('changed')` shows the bar, and after a
|
|
7
|
+
* save lands, `setState('unchanged')` hides it — `save()` only announces the
|
|
8
|
+
* click. Subscribe with `onSave`/`onDiscard`, or `useSaveBar()` inside a
|
|
9
|
+
* component, which unsubscribes itself on unmount.
|
|
10
|
+
*/
|
|
11
|
+
export declare const saveBar: {
|
|
12
|
+
/** The current state. Reactive — a getter into the shared store. */
|
|
13
|
+
readonly state: SaveBarStateType;
|
|
14
|
+
setState(value: SaveBarStateType): void;
|
|
15
|
+
/** Announce a save click to every `onSave` subscriber. The bar's Save
|
|
16
|
+
* button calls this; call it yourself to trigger the same flow. */
|
|
17
|
+
save(): void;
|
|
18
|
+
/** Announce a discard click to every `onDiscard` subscriber. */
|
|
19
|
+
discard(): void;
|
|
20
|
+
/** Returns an unsubscribe function. */
|
|
21
|
+
onSave(handler: () => void): () => void;
|
|
22
|
+
/** Returns an unsubscribe function. */
|
|
23
|
+
onDiscard(handler: () => void): () => void;
|
|
24
|
+
};
|
|
25
|
+
export interface UseSaveBarOptionsType {
|
|
26
|
+
/** Called when the user clicks Save. */
|
|
27
|
+
onSave?: () => void;
|
|
28
|
+
/** Called when the user confirms a discard. */
|
|
29
|
+
onDiscard?: () => void;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Composable form of `$ui.saveBar`, with the state as a ref so destructuring
|
|
33
|
+
* keeps it reactive. Handlers passed here are unsubscribed automatically when
|
|
34
|
+
* the calling component unmounts.
|
|
35
|
+
*
|
|
36
|
+
* ```ts
|
|
37
|
+
* const { setState } = useSaveBar({
|
|
38
|
+
* onSave: async () => {
|
|
39
|
+
* setState('saving')
|
|
40
|
+
* await save()
|
|
41
|
+
* setState('unchanged')
|
|
42
|
+
* },
|
|
43
|
+
* onDiscard: () => reset()
|
|
44
|
+
* })
|
|
45
|
+
* watch(dirty, (d) => setState(d ? 'changed' : 'unchanged'))
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
export declare function useSaveBar(options?: UseSaveBarOptionsType): {
|
|
49
|
+
/** The current state. */
|
|
50
|
+
state: import('vue').ComputedRef<SaveBarStateType>;
|
|
51
|
+
setState: (value: SaveBarStateType) => void;
|
|
52
|
+
save: () => void;
|
|
53
|
+
discard: () => void;
|
|
54
|
+
onSave: (handler: () => void) => () => void;
|
|
55
|
+
onDiscard: (handler: () => void) => () => void;
|
|
56
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where the save-bar flow stands.
|
|
3
|
+
*
|
|
4
|
+
* - `unchanged` — nothing to save; the bar is hidden.
|
|
5
|
+
* - `changed` — there are unsaved edits; the bar shows Save and Discard.
|
|
6
|
+
* - `saving` — a save is in flight; the buttons disable and Save spins.
|
|
7
|
+
*/
|
|
8
|
+
export type SaveBarStateType = 'unchanged' | 'changed' | 'saving';
|
|
9
|
+
export interface SaveBarTranslationsType {
|
|
10
|
+
save?: string;
|
|
11
|
+
discard?: string;
|
|
12
|
+
unsavedChanges?: string;
|
|
13
|
+
discardModal?: {
|
|
14
|
+
title?: string;
|
|
15
|
+
content?: string;
|
|
16
|
+
primaryActionLabel?: string;
|
|
17
|
+
secondaryActionLabel?: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export interface SaveBarProps {
|
|
21
|
+
/**
|
|
22
|
+
* Show the bar for this state instead of following `$ui.saveBar`. Leave it
|
|
23
|
+
* unset — the global state is what keeps one bar, one truth, no matter who
|
|
24
|
+
* set it.
|
|
25
|
+
*/
|
|
26
|
+
state?: SaveBarStateType;
|
|
27
|
+
/**
|
|
28
|
+
* Matches `GlobalNav`'s `layoutMode`, so the bar's content aligns with the
|
|
29
|
+
* page when the sidebar owns the full height of the window.
|
|
30
|
+
*/
|
|
31
|
+
layoutMode?: 'default' | 'alternate';
|
|
32
|
+
/** Overrides for the bar's built-in strings. */
|
|
33
|
+
translations?: SaveBarTranslationsType;
|
|
34
|
+
/**
|
|
35
|
+
* Ask "Discard all unsaved changes?" before announcing a discard. Turn it
|
|
36
|
+
* off when the edits at stake are trivial enough that the modal is more
|
|
37
|
+
* friction than the loss — the discard then announces immediately.
|
|
38
|
+
*
|
|
39
|
+
* @default true
|
|
40
|
+
*/
|
|
41
|
+
confirmDiscard?: boolean;
|
|
42
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { SaveBarStateType } from '../SaveBar';
|
|
2
|
+
/**
|
|
3
|
+
* Renderless bridge to the global save bar, from before `useSaveBar()`
|
|
4
|
+
* existed.
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Use the `useSaveBar()` composable instead — same events as
|
|
7
|
+
* callbacks, plus direct access to the state, without a component in the
|
|
8
|
+
* template.
|
|
9
|
+
*/
|
|
10
|
+
type __VLS_Props = {
|
|
11
|
+
/**
|
|
12
|
+
* Mirrors this value into the global state. Left unset, mounting the
|
|
13
|
+
* controller shows the bar (`changed`) and unmounting hides it — which is
|
|
14
|
+
* what `v-if="dirty"` usage relies on.
|
|
15
|
+
*/
|
|
16
|
+
state?: SaveBarStateType;
|
|
17
|
+
};
|
|
18
|
+
declare var __VLS_1: {};
|
|
19
|
+
type __VLS_Slots = {} & {
|
|
20
|
+
default?: (props: typeof __VLS_1) => any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
23
|
+
save: () => any;
|
|
24
|
+
discard: () => any;
|
|
25
|
+
update: (v: boolean) => any;
|
|
26
|
+
"update:state": (state: SaveBarStateType) => any;
|
|
27
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
|
+
onSave?: (() => any) | undefined;
|
|
29
|
+
onDiscard?: (() => any) | undefined;
|
|
30
|
+
onUpdate?: ((v: boolean) => any) | undefined;
|
|
31
|
+
"onUpdate:state"?: ((state: SaveBarStateType) => any) | undefined;
|
|
32
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
34
|
+
declare const _default: typeof __VLS_export;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SaveBarController } from './SaveBarController.vue';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ScrollPaneProps } from './types';
|
|
2
|
+
declare function updateImmediate(): void;
|
|
3
|
+
declare function scrollTo(x: number, y: number): void;
|
|
4
|
+
declare var __VLS_1: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import('vue').DefineComponent<ScrollPaneProps, {
|
|
9
|
+
scrollTo: typeof scrollTo;
|
|
10
|
+
update: typeof updateImmediate;
|
|
11
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ScrollPaneProps> & Readonly<{}>, {
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
contain: boolean;
|
|
14
|
+
direction: import('./types').ScrollPaneDirectionType;
|
|
15
|
+
indicators: boolean;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|