@feugene/granularity 0.42.0 → 0.43.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/README.md +3 -3
- package/dist/chunks/config-BXRmsn3t.js +172 -0
- package/dist/chunks/config-BXRmsn3t.js.map +1 -0
- package/dist/chunks/config-Dg0bSoGw.js +81 -0
- package/dist/chunks/config-Dg0bSoGw.js.map +1 -0
- package/dist/chunks/config-DmED6aJV.js +237 -0
- package/dist/chunks/config-DmED6aJV.js.map +1 -0
- package/dist/chunks/{config-DWL81-aM.js → config-hnoZvcIM.js} +2 -20
- package/dist/chunks/config-hnoZvcIM.js.map +1 -0
- package/dist/chunks/dragSortGeometry-CY-llfrQ.js +87 -0
- package/dist/chunks/dragSortGeometry-CY-llfrQ.js.map +1 -0
- package/dist/chunks/{en-B9E3jO6m.js → en-C_QkUTRL.js} +32 -1
- package/dist/chunks/en-C_QkUTRL.js.map +1 -0
- package/dist/chunks/{es-DCkqHTlU.js → es-B4t_3Wnh.js} +3 -3
- package/dist/chunks/{es-DCkqHTlU.js.map → es-B4t_3Wnh.js.map} +1 -1
- package/dist/chunks/{es-QpzdIEut.js → es-DemSEhZE.js} +32 -1
- package/dist/chunks/es-DemSEhZE.js.map +1 -0
- package/dist/chunks/{generated-B95IBXs6.js → generated-VcxJTo_q.js} +210 -0
- package/dist/chunks/generated-VcxJTo_q.js.map +1 -0
- package/dist/chunks/{granular-provider-BG_2XqkS.js → granular-provider-BohXQcNt.js} +7 -1
- package/dist/chunks/granular-provider-BohXQcNt.js.map +1 -0
- package/dist/chunks/{ru-D_1Ya489.js → ru-CLUErjhY.js} +32 -1
- package/dist/chunks/ru-CLUErjhY.js.map +1 -0
- package/dist/chunks/scrollOverflow-B_kEdcol.js +31 -0
- package/dist/chunks/scrollOverflow-B_kEdcol.js.map +1 -0
- package/dist/chunks/tones-CRJAaYyg.js +21 -0
- package/dist/chunks/tones-CRJAaYyg.js.map +1 -0
- package/dist/components/GrAffix/chunks/GrAffix-CWtC7yi8.js +272 -0
- package/dist/components/GrAffix/chunks/GrAffix-CWtC7yi8.js.map +1 -0
- package/dist/components/GrAffix/index.js +3 -0
- package/dist/components/GrCarousel/chunks/GrCarousel-ByuughtI.js +761 -0
- package/dist/components/GrCarousel/chunks/GrCarousel-ByuughtI.js.map +1 -0
- package/dist/components/GrCarousel/index.js +3 -0
- package/dist/components/GrCarousel/styles.css +1 -0
- package/dist/components/GrColorPicker/chunks/{GrColorPicker-BwzRLs-i.js → GrColorPicker-9mTR-YZ_.js} +1 -1
- package/dist/components/GrColorPicker/chunks/{GrColorPicker-BwzRLs-i.js.map → GrColorPicker-9mTR-YZ_.js.map} +1 -1
- package/dist/components/GrColorPicker/index.js +1 -1
- package/dist/components/GrDataTable/chunks/{GrDataTable-BBe7-uUe.js → GrDataTable-xNSmO_I-.js} +4 -3
- package/dist/components/GrDataTable/chunks/{GrDataTable-BBe7-uUe.js.map → GrDataTable-xNSmO_I-.js.map} +1 -1
- package/dist/components/GrDataTable/index.js +1 -1
- package/dist/components/GrImageViewer/chunks/{GrImageViewer-Dd2gJ-j_.js.map → GrImageViewer-DK-iVHHC.js.map} +1 -1
- package/dist/components/GrImageViewer/index.js +1 -1
- package/dist/components/GrInputTag/chunks/{GrInputTag-BKzm1PKw.js.map → GrInputTag-Ci8AO1ze.js.map} +1 -1
- package/dist/components/GrInputTag/index.js +1 -1
- package/dist/components/GrJsonViewer/chunks/{GrJsonViewer-BLCEWlwg.js → GrJsonViewer-CwCBMh4h.js} +2 -2
- package/dist/components/GrJsonViewer/chunks/{GrJsonViewer-BLCEWlwg.js.map → GrJsonViewer-CwCBMh4h.js.map} +1 -1
- package/dist/components/GrJsonViewer/index.js +1 -1
- package/dist/components/GrNumberInput/chunks/{GrNumberInput-Bm-V59TG.js.map → GrNumberInput-CL5QhOmx.js.map} +1 -1
- package/dist/components/GrNumberInput/index.js +1 -1
- package/dist/components/GrProgressBar/index.js +1 -1
- package/dist/components/GrSlider/chunks/{GrSlider-Db-jACXz.js.map → GrSlider-CO8N9SF6.js.map} +1 -1
- package/dist/components/GrSlider/index.js +1 -1
- package/dist/components/GrSortableList/chunks/{GrSortableList-ce1psLL0.js → GrSortableList-NKriuGm_.js} +2 -1
- package/dist/components/GrSortableList/chunks/{GrSortableList-ce1psLL0.js.map → GrSortableList-NKriuGm_.js.map} +1 -1
- package/dist/components/GrSortableList/index.js +1 -1
- package/dist/components/GrTabs/chunks/{GrTabs-BArefUFv.js → GrTabs-s9RzC1WX.js} +2 -31
- package/dist/components/GrTabs/chunks/GrTabs-s9RzC1WX.js.map +1 -0
- package/dist/components/GrTabs/index.js +1 -1
- package/dist/components/GrTransfer/chunks/GrTransfer-8FA78ny6.js +1368 -0
- package/dist/components/GrTransfer/chunks/GrTransfer-8FA78ny6.js.map +1 -0
- package/dist/components/GrTransfer/index.js +3 -0
- package/dist/components/GrTransfer/styles.css +1 -0
- package/dist/components/GrTree/chunks/{GrTree-BFWFc0Bm.js → GrTree-CkHzgYg1.js} +3 -3
- package/dist/components/GrTree/chunks/{GrTree-BFWFc0Bm.js.map → GrTree-CkHzgYg1.js.map} +1 -1
- package/dist/components/GrTree/index.js +1 -1
- package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-DJa2lYGe.js → GrTreeSelect-DUsv3_mF.js} +1 -1
- package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-DJa2lYGe.js.map → GrTreeSelect-DUsv3_mF.js.map} +1 -1
- package/dist/components/GrTreeSelect/index.js +1 -1
- package/dist/composables/useDragSort.js +179 -1
- package/dist/composables/useDragSort.js.map +1 -0
- package/dist/granular-provider-node.js +1 -1
- package/dist/granular-provider.js +1 -1
- package/dist/i18n/all.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/index.js +23 -19
- package/dist/theme.js +1 -1
- package/dist/tokens.js +1 -1
- package/dist/types/components/GrAffix/GrAffix.vue.d.ts +91 -0
- package/dist/types/components/GrAffix/affixState.d.ts +81 -0
- package/dist/types/components/GrAffix/config.d.ts +1 -0
- package/dist/types/components/GrAffix/grAffixStyles.d.ts +46 -0
- package/dist/types/components/GrAffix/index.d.ts +9 -0
- package/dist/types/components/GrAffix/safelist.d.ts +1 -0
- package/dist/types/components/GrAlert/GrAlert.vue.d.ts +1 -1
- package/dist/types/components/GrBadgeWrap/GrBadgeWrap.vue.d.ts +2 -2
- package/dist/types/components/GrButton/GrButton.vue.d.ts +2 -2
- package/dist/types/components/GrCard/GrCard.vue.d.ts +1 -1
- package/dist/types/components/GrCarousel/GrCarousel.vue.d.ts +151 -0
- package/dist/types/components/GrCarousel/GrCarouselSlide.vue.d.ts +53 -0
- package/dist/types/components/GrCarousel/carouselNavigation.d.ts +57 -0
- package/dist/types/components/GrCarousel/composables/useCarouselAutoplay.d.ts +33 -0
- package/dist/types/components/GrCarousel/composables/useCarouselSwipe.d.ts +20 -0
- package/dist/types/components/GrCarousel/config.d.ts +7 -0
- package/dist/types/components/GrCarousel/defaults.d.ts +13 -0
- package/dist/types/components/GrCarousel/grCarouselContext.d.ts +46 -0
- package/dist/types/components/GrCarousel/grCarouselStyles.d.ts +80 -0
- package/dist/types/components/GrCarousel/index.d.ts +12 -0
- package/dist/types/components/GrCarousel/safelist.d.ts +1 -0
- package/dist/types/components/GrCheckbox/GrCheckbox.vue.d.ts +3 -3
- package/dist/types/components/GrCheckboxGroup/GrCheckboxGroup.vue.d.ts +2 -2
- package/dist/types/components/GrChip/GrChip.vue.d.ts +2 -2
- package/dist/types/components/GrChipGroup/GrChipGroup.vue.d.ts +2 -2
- package/dist/types/components/GrCollapse/GrCollapse.vue.d.ts +1 -1
- package/dist/types/components/GrCollapse/GrCollapseItem.vue.d.ts +1 -1
- package/dist/types/components/GrColorPicker/GrColorPicker.vue.d.ts +3 -3
- package/dist/types/components/GrCommandPalette/GrCommandPalette.vue.d.ts +1 -1
- package/dist/types/components/GrConfirmDialog/GrConfirmDialog.vue.d.ts +1 -1
- package/dist/types/components/GrContextMenu/GrContextMenu.vue.d.ts +2 -2
- package/dist/types/components/GrDialog/GrDialog.vue.d.ts +1 -1
- package/dist/types/components/GrDivider/GrDivider.vue.d.ts +2 -2
- package/dist/types/components/GrDrawer/GrDrawer.vue.d.ts +1 -1
- package/dist/types/components/GrDropdown/GrDropdown.vue.d.ts +3 -3
- package/dist/types/components/GrDropdownMenu/GrDropdownMenu.vue.d.ts +3 -3
- package/dist/types/components/GrDropdownMenu/GrDropdownMenuItem.vue.d.ts +1 -1
- package/dist/types/components/GrEmptyState/GrEmptyState.vue.d.ts +1 -1
- package/dist/types/components/GrFileUpload/GrFileUpload.vue.d.ts +1 -1
- package/dist/types/components/GrFormField/GrFormField.vue.d.ts +3 -3
- package/dist/types/components/GrFormFile/GrFormFile.vue.d.ts +2 -2
- package/dist/types/components/GrFormSection/GrFormSection.vue.d.ts +1 -1
- package/dist/types/components/GrIcon/GrIcon.vue.d.ts +1 -1
- package/dist/types/components/GrImageViewer/GrImageViewer.vue.d.ts +3 -3
- package/dist/types/components/GrInput/GrInput.vue.d.ts +4 -4
- package/dist/types/components/GrInputTag/GrInputTag.vue.d.ts +3 -3
- package/dist/types/components/GrKbd/GrKbd.vue.d.ts +1 -1
- package/dist/types/components/GrLink/GrLink.vue.d.ts +1 -1
- package/dist/types/components/GrList/GrListItem.vue.d.ts +2 -2
- package/dist/types/components/GrNavbar/GrNavbar.vue.d.ts +2 -2
- package/dist/types/components/GrNumberInput/GrNumberInput.vue.d.ts +3 -3
- package/dist/types/components/GrPagination/GrPagination.vue.d.ts +1 -1
- package/dist/types/components/GrPopover/GrPopover.vue.d.ts +3 -3
- package/dist/types/components/GrPromptDialog/GrPromptDialog.vue.d.ts +3 -3
- package/dist/types/components/GrRadio/GrRadio.vue.d.ts +2 -2
- package/dist/types/components/GrRadioGroup/GrRadioGroup.vue.d.ts +2 -2
- package/dist/types/components/GrRating/GrRating.vue.d.ts +2 -2
- package/dist/types/components/GrSegmented/GrSegmented.vue.d.ts +2 -2
- package/dist/types/components/GrSidebar/GrSidebarItem.vue.d.ts +1 -1
- package/dist/types/components/GrSkeleton/GrSkeleton.vue.d.ts +1 -1
- package/dist/types/components/GrSlider/GrSlider.vue.d.ts +3 -3
- package/dist/types/components/GrSplitter/GrSplitter.vue.d.ts +1 -1
- package/dist/types/components/GrStatistic/GrStatistic.vue.d.ts +2 -2
- package/dist/types/components/GrSwitch/GrSwitch.vue.d.ts +3 -3
- package/dist/types/components/GrTable/GrTable.vue.d.ts +1 -1
- package/dist/types/components/GrTabs/GrTabs.vue.d.ts +1 -1
- package/dist/types/components/GrTextarea/GrTextarea.vue.d.ts +2 -2
- package/dist/types/components/GrTimeline/GrTimelineItem.vue.d.ts +2 -2
- package/dist/types/components/GrToaster/GrToaster.vue.d.ts +1 -1
- package/dist/types/components/GrTooltip/GrTooltip.vue.d.ts +3 -3
- package/dist/types/components/GrTransfer/GrTransfer.vue.d.ts +103 -0
- package/dist/types/components/GrTransfer/config.d.ts +1 -0
- package/dist/types/components/GrTransfer/defaults.d.ts +15 -0
- package/dist/types/components/GrTransfer/grTransferStyles.d.ts +127 -0
- package/dist/types/components/GrTransfer/index.d.ts +11 -0
- package/dist/types/components/GrTransfer/safelist.d.ts +1 -0
- package/dist/types/components/GrTransfer/transferGeometry.d.ts +44 -0
- package/dist/types/components/GrTransfer/transferModel.d.ts +68 -0
- package/dist/types/components/GrTransfer/transferSelection.d.ts +36 -0
- package/dist/types/components/GrTransfer/useTransferDrag.d.ts +48 -0
- package/dist/types/granular-provider/shared.d.ts +3 -0
- package/dist/types/i18n/messages/en.d.ts +58 -0
- package/dist/types/i18n/messages/es.d.ts +58 -0
- package/dist/types/i18n/messages/ru.d.ts +58 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/web-types.json +718 -288
- package/package.json +17 -1
- package/dist/chunks/config-DWL81-aM.js.map +0 -1
- package/dist/chunks/en-B9E3jO6m.js.map +0 -1
- package/dist/chunks/es-QpzdIEut.js.map +0 -1
- package/dist/chunks/generated-B95IBXs6.js.map +0 -1
- package/dist/chunks/granular-provider-BG_2XqkS.js.map +0 -1
- package/dist/chunks/ru-D_1Ya489.js.map +0 -1
- package/dist/chunks/useDragSort-0l47h4yb.js +0 -265
- package/dist/chunks/useDragSort-0l47h4yb.js.map +0 -1
- package/dist/components/GrTabs/chunks/GrTabs-BArefUFv.js.map +0 -1
- package/dist/components/GrImageViewer/chunks/{GrImageViewer-Dd2gJ-j_.js → GrImageViewer-DK-iVHHC.js} +3 -3
- package/dist/components/GrInputTag/chunks/{GrInputTag-BKzm1PKw.js → GrInputTag-Ci8AO1ze.js} +1 -1
- package/dist/components/GrNumberInput/chunks/{GrNumberInput-Bm-V59TG.js → GrNumberInput-CL5QhOmx.js} +1 -1
- package/dist/components/GrSlider/chunks/{GrSlider-Db-jACXz.js → GrSlider-CO8N9SF6.js} +1 -1
|
@@ -115,12 +115,12 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
115
115
|
"onUpdate:modelValue"?: ((value: File | File[] | null) => any) | undefined;
|
|
116
116
|
"onUpdate:errors"?: ((errors: FileValidationIssue[]) => any) | undefined;
|
|
117
117
|
}>, {
|
|
118
|
-
|
|
118
|
+
disabled: boolean;
|
|
119
119
|
readonly: boolean;
|
|
120
|
+
size: GrFormFileSize;
|
|
120
121
|
invalid: boolean;
|
|
121
122
|
accept: string;
|
|
122
123
|
multiple: boolean;
|
|
123
|
-
disabled: boolean;
|
|
124
124
|
ariaLabel: string;
|
|
125
125
|
required: boolean;
|
|
126
126
|
placeholder: string;
|
|
@@ -41,8 +41,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
41
41
|
headingLevel: undefined;
|
|
42
42
|
landmark: boolean;
|
|
43
43
|
}>>> & Readonly<{}>, {
|
|
44
|
-
headingLevel: GrFormSectionHeadingLevel;
|
|
45
44
|
title: string;
|
|
45
|
+
headingLevel: GrFormSectionHeadingLevel;
|
|
46
46
|
description: string;
|
|
47
47
|
landmark: boolean;
|
|
48
48
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -28,9 +28,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
28
28
|
tone: string;
|
|
29
29
|
spin: boolean;
|
|
30
30
|
}>>> & Readonly<{}>, {
|
|
31
|
+
label: string;
|
|
31
32
|
tone: GrIconTone;
|
|
32
33
|
size: GrIconSize | number;
|
|
33
|
-
label: string;
|
|
34
34
|
spin: boolean;
|
|
35
35
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
36
36
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -200,8 +200,11 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
200
200
|
}) => any) | undefined;
|
|
201
201
|
}>, {
|
|
202
202
|
emptyText: string;
|
|
203
|
+
draggable: boolean;
|
|
203
204
|
zIndexVar: string;
|
|
204
205
|
ariaLabel: string;
|
|
206
|
+
prevLabel: string;
|
|
207
|
+
nextLabel: string;
|
|
205
208
|
closeLabel: string;
|
|
206
209
|
showProgress: boolean;
|
|
207
210
|
initialIndex: number;
|
|
@@ -212,9 +215,6 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
212
215
|
closeOnPressEscape: boolean;
|
|
213
216
|
showZoomValue: boolean;
|
|
214
217
|
wheelZoom: boolean;
|
|
215
|
-
draggable: boolean;
|
|
216
|
-
prevLabel: string;
|
|
217
|
-
nextLabel: string;
|
|
218
218
|
zoomInLabel: string;
|
|
219
219
|
zoomOutLabel: string;
|
|
220
220
|
resetZoomLabel: string;
|
|
@@ -172,16 +172,16 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
172
172
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
173
173
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
174
174
|
}>, {
|
|
175
|
+
disabled: boolean;
|
|
176
|
+
readonly: boolean;
|
|
177
|
+
type: "text" | "email" | "password" | "number" | "search" | "tel" | "url";
|
|
175
178
|
size: GrInputSize;
|
|
176
179
|
clearable: boolean;
|
|
177
180
|
loading: boolean;
|
|
178
|
-
readonly: boolean;
|
|
179
|
-
type: "text" | "email" | "password" | "number" | "search" | "tel" | "url";
|
|
180
181
|
name: string;
|
|
181
182
|
invalid: boolean;
|
|
182
183
|
id: string;
|
|
183
184
|
textAlign: GrInputTextAlign;
|
|
184
|
-
disabled: boolean;
|
|
185
185
|
ariaLabel: string;
|
|
186
186
|
modelValue: string;
|
|
187
187
|
required: boolean;
|
|
@@ -195,7 +195,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
195
195
|
suffixFixed: boolean;
|
|
196
196
|
autocomplete: string;
|
|
197
197
|
showCount: boolean;
|
|
198
|
-
inputmode: "
|
|
198
|
+
inputmode: "search" | "text" | "none" | "email" | "tel" | "url" | "numeric" | "decimal";
|
|
199
199
|
state: "default" | "success" | "warning" | "danger";
|
|
200
200
|
maxlength: number;
|
|
201
201
|
passwordToggle: boolean;
|
|
@@ -162,15 +162,15 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
162
162
|
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
163
163
|
onReject?: ((value: string) => any) | undefined;
|
|
164
164
|
}>, {
|
|
165
|
+
disabled: boolean;
|
|
166
|
+
trim: boolean;
|
|
167
|
+
readonly: boolean;
|
|
165
168
|
size: GrInputTagSize;
|
|
166
169
|
clearable: boolean;
|
|
167
170
|
loading: boolean;
|
|
168
|
-
trim: boolean;
|
|
169
|
-
readonly: boolean;
|
|
170
171
|
name: string;
|
|
171
172
|
invalid: boolean;
|
|
172
173
|
max: number;
|
|
173
|
-
disabled: boolean;
|
|
174
174
|
ariaLabel: string;
|
|
175
175
|
tagTone: GrBadgeTone;
|
|
176
176
|
tagDark: boolean;
|
|
@@ -48,10 +48,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
48
48
|
separator: undefined;
|
|
49
49
|
platform: string;
|
|
50
50
|
}>>> & Readonly<{}>, {
|
|
51
|
+
keys: string | string[];
|
|
51
52
|
variant: GrKbdVariant;
|
|
52
53
|
size: GrKbdSize;
|
|
53
54
|
separator: string;
|
|
54
|
-
keys: string | string[];
|
|
55
55
|
platform: GrKbdPlatform;
|
|
56
56
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
57
57
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -77,13 +77,13 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
77
77
|
externalIcon: undefined;
|
|
78
78
|
newTabLabel: undefined;
|
|
79
79
|
}>>> & Readonly<{}>, {
|
|
80
|
+
disabled: boolean;
|
|
80
81
|
tone: GrLinkTone;
|
|
81
82
|
variant: GrLinkVariant;
|
|
82
83
|
size: GrLinkSize;
|
|
83
84
|
underline: GrLinkUnderline;
|
|
84
85
|
target: string;
|
|
85
86
|
href: string;
|
|
86
|
-
disabled: boolean;
|
|
87
87
|
ariaLabel: string;
|
|
88
88
|
as: string | Component;
|
|
89
89
|
external: boolean;
|
|
@@ -54,12 +54,12 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
54
54
|
}>>> & Readonly<{
|
|
55
55
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
56
56
|
}>, {
|
|
57
|
+
disabled: boolean;
|
|
58
|
+
title: string;
|
|
57
59
|
density: GrListItemDensity;
|
|
58
60
|
clickable: boolean;
|
|
59
|
-
title: string;
|
|
60
61
|
description: string;
|
|
61
62
|
href: string;
|
|
62
|
-
disabled: boolean;
|
|
63
63
|
as: string | Component;
|
|
64
64
|
hoverable: boolean;
|
|
65
65
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -59,9 +59,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
59
59
|
}>>> & Readonly<{
|
|
60
60
|
onMenu?: (() => any) | undefined;
|
|
61
61
|
}>, {
|
|
62
|
-
size: GrComponentSize;
|
|
63
|
-
title: string;
|
|
64
62
|
sticky: boolean;
|
|
63
|
+
title: string;
|
|
64
|
+
size: GrComponentSize;
|
|
65
65
|
showMenuButton: boolean;
|
|
66
66
|
menuButtonClass: string;
|
|
67
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -162,16 +162,16 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
162
162
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
163
163
|
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
164
164
|
}>, {
|
|
165
|
+
disabled: boolean;
|
|
166
|
+
readonly: boolean;
|
|
165
167
|
size: GrNumberInputSize;
|
|
166
168
|
clearable: boolean;
|
|
167
|
-
readonly: boolean;
|
|
168
169
|
name: string;
|
|
169
170
|
invalid: boolean;
|
|
170
171
|
id: string;
|
|
171
172
|
max: number;
|
|
172
173
|
min: number;
|
|
173
174
|
textAlign: GrNumberInputTextAlign;
|
|
174
|
-
disabled: boolean;
|
|
175
175
|
ariaLabel: string;
|
|
176
176
|
required: boolean;
|
|
177
177
|
placeholder: string;
|
|
@@ -184,7 +184,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
184
184
|
suffixFixed: boolean;
|
|
185
185
|
autocomplete: string;
|
|
186
186
|
step: number;
|
|
187
|
-
inputmode: "
|
|
187
|
+
inputmode: "search" | "text" | "none" | "email" | "tel" | "url" | "numeric" | "decimal";
|
|
188
188
|
state: GrNumberInputState;
|
|
189
189
|
locale: string;
|
|
190
190
|
precision: number;
|
|
@@ -81,9 +81,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
81
81
|
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
82
82
|
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
83
83
|
}>, {
|
|
84
|
+
disabled: boolean;
|
|
84
85
|
size: GrPaginationSize;
|
|
85
86
|
compact: boolean;
|
|
86
|
-
disabled: boolean;
|
|
87
87
|
ariaLabel: string;
|
|
88
88
|
pageSizes: number[];
|
|
89
89
|
siblingCount: number;
|
|
@@ -178,15 +178,15 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
178
178
|
}>>> & Readonly<{
|
|
179
179
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
180
180
|
}>, {
|
|
181
|
+
placement: UseFloatingPlacement;
|
|
182
|
+
disabled: boolean;
|
|
183
|
+
anchor: GrFloatingAnchorRect | null;
|
|
181
184
|
size: GrPopoverSize;
|
|
182
185
|
padding: GrPopoverPadding;
|
|
183
|
-
anchor: GrFloatingAnchorRect | null;
|
|
184
186
|
role: GrPopoverRole;
|
|
185
187
|
modal: boolean;
|
|
186
|
-
placement: UseFloatingPlacement;
|
|
187
188
|
block: boolean;
|
|
188
189
|
open: boolean;
|
|
189
|
-
disabled: boolean;
|
|
190
190
|
ariaLabel: string;
|
|
191
191
|
matchWidth: boolean | "min";
|
|
192
192
|
labelledBy: string;
|
|
@@ -178,16 +178,16 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
178
178
|
onConfirm?: ((value: string) => any) | undefined;
|
|
179
179
|
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
180
180
|
}>, {
|
|
181
|
-
size: GrDialogSize;
|
|
182
|
-
title: string;
|
|
183
181
|
label: string;
|
|
182
|
+
title: string;
|
|
183
|
+
size: GrDialogSize;
|
|
184
184
|
description: string;
|
|
185
185
|
multiline: boolean;
|
|
186
186
|
error: ResponseErrorInfo | null;
|
|
187
187
|
required: boolean;
|
|
188
188
|
placeholder: string;
|
|
189
189
|
showCount: boolean;
|
|
190
|
-
inputmode: "
|
|
190
|
+
inputmode: "search" | "text" | "none" | "email" | "tel" | "url" | "numeric" | "decimal";
|
|
191
191
|
maxlength: number;
|
|
192
192
|
closeOnEsc: boolean;
|
|
193
193
|
closeOnBackdrop: boolean;
|
|
@@ -80,13 +80,13 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
80
80
|
}>>> & Readonly<{
|
|
81
81
|
"onUpdate:modelValue"?: ((value: GrRadioValue) => any) | undefined;
|
|
82
82
|
}>, {
|
|
83
|
+
disabled: boolean;
|
|
84
|
+
form: string;
|
|
83
85
|
variant: GrRadioVariant;
|
|
84
86
|
size: GrButtonSize;
|
|
85
|
-
form: string;
|
|
86
87
|
name: string;
|
|
87
88
|
invalid: boolean;
|
|
88
89
|
id: string;
|
|
89
|
-
disabled: boolean;
|
|
90
90
|
ariaLabel: string;
|
|
91
91
|
modelValue: GrRadioValue;
|
|
92
92
|
required: boolean;
|
|
@@ -84,14 +84,14 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
84
84
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
85
85
|
"onUpdate:modelValue"?: ((value: GrRadioValue) => any) | undefined;
|
|
86
86
|
}>, {
|
|
87
|
+
disabled: boolean;
|
|
88
|
+
readonly: boolean;
|
|
87
89
|
variant: GrRadioGroupVariant;
|
|
88
90
|
size: GrButtonSize;
|
|
89
91
|
orientation: GrRadioGroupOrientation;
|
|
90
|
-
readonly: boolean;
|
|
91
92
|
name: string;
|
|
92
93
|
invalid: boolean;
|
|
93
94
|
options: GrRadioGroupOption[];
|
|
94
|
-
disabled: boolean;
|
|
95
95
|
ariaLabel: string;
|
|
96
96
|
required: boolean;
|
|
97
97
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -133,16 +133,16 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
133
133
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
134
134
|
onHoverChange?: ((value: number | null) => any) | undefined;
|
|
135
135
|
}>, {
|
|
136
|
+
disabled: boolean;
|
|
137
|
+
readonly: boolean;
|
|
136
138
|
tone: GrRatingTone;
|
|
137
139
|
size: GrRatingSize;
|
|
138
140
|
clearable: boolean;
|
|
139
141
|
compact: boolean;
|
|
140
142
|
icon: string | Component;
|
|
141
|
-
readonly: boolean;
|
|
142
143
|
name: string;
|
|
143
144
|
invalid: boolean;
|
|
144
145
|
max: number;
|
|
145
|
-
disabled: boolean;
|
|
146
146
|
ariaLabel: string;
|
|
147
147
|
required: boolean;
|
|
148
148
|
texts: string[];
|
|
@@ -82,14 +82,14 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
82
82
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
83
83
|
"onUpdate:modelValue"?: ((value: GrSegmentedValue) => any) | undefined;
|
|
84
84
|
}>, {
|
|
85
|
+
disabled: boolean;
|
|
86
|
+
readonly: boolean;
|
|
85
87
|
variant: GrSegmentedVariant;
|
|
86
88
|
size: GrSegmentedSize;
|
|
87
89
|
orientation: GrSegmentedOrientation;
|
|
88
|
-
readonly: boolean;
|
|
89
90
|
name: string;
|
|
90
91
|
invalid: boolean;
|
|
91
92
|
block: boolean;
|
|
92
|
-
disabled: boolean;
|
|
93
93
|
ariaLabel: string;
|
|
94
94
|
required: boolean;
|
|
95
95
|
indicatorDuration: number;
|
|
@@ -35,10 +35,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
35
35
|
disabled: boolean;
|
|
36
36
|
badge: undefined;
|
|
37
37
|
}>>> & Readonly<{}>, {
|
|
38
|
+
disabled: boolean;
|
|
38
39
|
icon: string | Component;
|
|
39
40
|
href: string;
|
|
40
41
|
active: boolean;
|
|
41
|
-
disabled: boolean;
|
|
42
42
|
as: string | Component;
|
|
43
43
|
badge: string | number;
|
|
44
44
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -33,9 +33,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
33
33
|
count: number;
|
|
34
34
|
}>>> & Readonly<{}>, {
|
|
35
35
|
variant: GrSkeletonVariant;
|
|
36
|
+
count: number;
|
|
36
37
|
height: string;
|
|
37
38
|
width: string;
|
|
38
|
-
count: number;
|
|
39
39
|
rounded: string;
|
|
40
40
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
41
41
|
declare const _default: typeof __VLS_export;
|
|
@@ -99,22 +99,22 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
99
99
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
100
100
|
"onUpdate:modelValue"?: ((value: GrSliderModelValue) => any) | undefined;
|
|
101
101
|
}>, {
|
|
102
|
+
disabled: boolean;
|
|
103
|
+
readonly: boolean;
|
|
102
104
|
size: GrSliderSize;
|
|
103
105
|
orientation: GrSliderOrientation;
|
|
104
|
-
readonly: boolean;
|
|
105
106
|
name: string;
|
|
106
107
|
invalid: boolean;
|
|
107
108
|
max: number;
|
|
108
109
|
min: number;
|
|
109
110
|
range: boolean;
|
|
110
|
-
disabled: boolean;
|
|
111
111
|
ariaLabel: string;
|
|
112
112
|
required: boolean;
|
|
113
113
|
step: number;
|
|
114
|
+
lazy: boolean;
|
|
114
115
|
marks: GrSliderMarks;
|
|
115
116
|
showTooltip: boolean | "always" | "hover";
|
|
116
117
|
formatTooltip: (value: number) => string;
|
|
117
|
-
lazy: boolean;
|
|
118
118
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
119
119
|
declare const _default: typeof __VLS_export;
|
|
120
120
|
export default _default;
|
|
@@ -80,11 +80,11 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
80
80
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
81
81
|
"onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
|
|
82
82
|
}>, {
|
|
83
|
+
disabled: boolean;
|
|
83
84
|
orientation: GrSplitterOrientation;
|
|
84
85
|
collapsible: boolean;
|
|
85
86
|
max: number;
|
|
86
87
|
min: number;
|
|
87
|
-
disabled: boolean;
|
|
88
88
|
ariaLabel: string;
|
|
89
89
|
modelValue: number;
|
|
90
90
|
step: number;
|
|
@@ -130,14 +130,14 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
130
130
|
}>>> & Readonly<{
|
|
131
131
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
132
132
|
}>, {
|
|
133
|
+
title: string;
|
|
134
|
+
animate: boolean;
|
|
133
135
|
tone: GrStatisticTone;
|
|
134
136
|
size: GrStatisticSize;
|
|
135
137
|
polarity: GrDeltaPolarity;
|
|
136
138
|
loading: boolean;
|
|
137
139
|
clickable: boolean;
|
|
138
|
-
title: string;
|
|
139
140
|
icon: string | Component;
|
|
140
|
-
animate: boolean;
|
|
141
141
|
href: string;
|
|
142
142
|
prefix: string;
|
|
143
143
|
suffix: string;
|
|
@@ -94,15 +94,15 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
94
94
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
95
95
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
96
96
|
}>, {
|
|
97
|
+
disabled: boolean;
|
|
98
|
+
readonly: boolean;
|
|
99
|
+
form: string;
|
|
97
100
|
size: GrSwitchSize;
|
|
98
101
|
labelPosition: GrSwitchLabelPosition;
|
|
99
102
|
loading: boolean;
|
|
100
103
|
value: string;
|
|
101
|
-
readonly: boolean;
|
|
102
|
-
form: string;
|
|
103
104
|
name: string;
|
|
104
105
|
invalid: boolean;
|
|
105
|
-
disabled: boolean;
|
|
106
106
|
ariaLabel: string;
|
|
107
107
|
modelValue: boolean;
|
|
108
108
|
required: boolean;
|
|
@@ -131,10 +131,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
131
131
|
fixedLayout: boolean;
|
|
132
132
|
tableMinWidth: undefined;
|
|
133
133
|
}>>> & Readonly<{}>, {
|
|
134
|
+
caption: string;
|
|
134
135
|
size: GrTableSize;
|
|
135
136
|
emptyText: string;
|
|
136
137
|
loading: boolean;
|
|
137
|
-
caption: string;
|
|
138
138
|
columnCount: number;
|
|
139
139
|
maxHeight: string | number;
|
|
140
140
|
ariaLabel: string;
|
|
@@ -88,10 +88,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
88
88
|
variant: GrTabsVariant;
|
|
89
89
|
closable: boolean;
|
|
90
90
|
size: GrTabsSize;
|
|
91
|
+
activationMode: GrTabsActivationMode;
|
|
91
92
|
emptyText: string;
|
|
92
93
|
orientation: GrTabsOrientation;
|
|
93
94
|
idBase: string;
|
|
94
|
-
activationMode: GrTabsActivationMode;
|
|
95
95
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
96
96
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
97
97
|
declare const _default: typeof __VLS_export;
|
|
@@ -104,14 +104,14 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
104
104
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
105
105
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
106
106
|
}>, {
|
|
107
|
+
disabled: boolean;
|
|
108
|
+
readonly: boolean;
|
|
107
109
|
size: GrTextareaSize;
|
|
108
110
|
clearable: boolean;
|
|
109
|
-
readonly: boolean;
|
|
110
111
|
name: string;
|
|
111
112
|
invalid: boolean;
|
|
112
113
|
resize: GrTextareaResize;
|
|
113
114
|
id: string;
|
|
114
|
-
disabled: boolean;
|
|
115
115
|
ariaLabel: string;
|
|
116
116
|
required: boolean;
|
|
117
117
|
placeholder: string;
|
|
@@ -48,10 +48,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
48
48
|
variant: string;
|
|
49
49
|
pending: boolean;
|
|
50
50
|
}>>> & Readonly<{}>, {
|
|
51
|
-
tone: GrTimelineTone;
|
|
52
|
-
variant: GrTimelineMarkerVariant;
|
|
53
51
|
time: string;
|
|
54
52
|
title: string;
|
|
53
|
+
tone: GrTimelineTone;
|
|
54
|
+
variant: GrTimelineMarkerVariant;
|
|
55
55
|
description: string;
|
|
56
56
|
pending: boolean;
|
|
57
57
|
datetime: string;
|
|
@@ -61,8 +61,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
61
61
|
focusHotkey: string;
|
|
62
62
|
swipeDismiss: boolean;
|
|
63
63
|
}>>> & Readonly<{}>, {
|
|
64
|
-
width: string | number;
|
|
65
64
|
placement: GrToasterPlacement;
|
|
65
|
+
width: string | number;
|
|
66
66
|
dismissLabel: string;
|
|
67
67
|
regionLabel: string;
|
|
68
68
|
maxVisible: number;
|
|
@@ -55,11 +55,11 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
55
55
|
}>>> & Readonly<{
|
|
56
56
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
57
57
|
}>, {
|
|
58
|
-
size: GrTooltipSize;
|
|
59
|
-
text: string;
|
|
60
58
|
placement: GrTooltipPlacement;
|
|
61
|
-
open: boolean;
|
|
62
59
|
disabled: boolean;
|
|
60
|
+
text: string;
|
|
61
|
+
size: GrTooltipSize;
|
|
62
|
+
open: boolean;
|
|
63
63
|
offsetPx: number;
|
|
64
64
|
openDelay: number;
|
|
65
65
|
closeDelay: number;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { GrComponentSize } from '../shared/sizes';
|
|
2
|
+
import type { GrTransferDirection, GrTransferKey, GrTransferSide } from './transferModel';
|
|
3
|
+
export type GrTransferItemKey<T> = string | ((item: T) => GrTransferKey);
|
|
4
|
+
export type GrTransferItemLabel<T> = string | ((item: T) => string);
|
|
5
|
+
export type GrTransferItemFlag<T> = string | ((item: T) => boolean);
|
|
6
|
+
export interface GrTransferProps<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
7
|
+
/** Каталог целиком: обе панели — одна его раскладка. */
|
|
8
|
+
items: T[];
|
|
9
|
+
/** Ключи правой панели **в её порядке**: порядок и есть значение. */
|
|
10
|
+
modelValue: GrTransferKey[];
|
|
11
|
+
itemKey?: GrTransferItemKey<T>;
|
|
12
|
+
itemLabel?: GrTransferItemLabel<T>;
|
|
13
|
+
itemDisabled?: GrTransferItemFlag<T>;
|
|
14
|
+
/** Имя левой панели. Это доступное имя её `listbox`, а не украшение. */
|
|
15
|
+
sourceTitle?: string;
|
|
16
|
+
/** Имя правой панели. */
|
|
17
|
+
targetTitle?: string;
|
|
18
|
+
/** Поле поиска в каждой панели. */
|
|
19
|
+
searchable?: boolean;
|
|
20
|
+
/** Свой матчер: встроенный ищет по `itemLabel`, а строка может показывать больше. */
|
|
21
|
+
filter?: (item: T, query: string) => boolean;
|
|
22
|
+
/** Правую панель можно переставлять. */
|
|
23
|
+
sortable?: boolean;
|
|
24
|
+
/** Перетаскивание строк указателем. Усиление поверх кнопок, а не контракт. */
|
|
25
|
+
draggable?: boolean;
|
|
26
|
+
/** Высота панелей: обе одинаковы и прокручиваются внутри себя. */
|
|
27
|
+
maxHeight?: number | string;
|
|
28
|
+
size?: GrComponentSize;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
readonly?: boolean;
|
|
31
|
+
invalid?: boolean;
|
|
32
|
+
required?: boolean;
|
|
33
|
+
ariaLabel?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface GrTransferEmits {
|
|
36
|
+
(e: 'update:modelValue', value: GrTransferKey[]): void;
|
|
37
|
+
(e: 'change', value: GrTransferKey[]): void;
|
|
38
|
+
(e: 'transfer', keys: GrTransferKey[], direction: GrTransferDirection): void;
|
|
39
|
+
(e: 'search', query: string, side: GrTransferSide): void;
|
|
40
|
+
(e: 'focus', event: FocusEvent): void;
|
|
41
|
+
(e: 'blur', event: FocusEvent): void;
|
|
42
|
+
}
|
|
43
|
+
declare const __VLS_export: <TItem extends Record<string, unknown> = Record<string, unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
44
|
+
props: import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & __VLS_PrettifyLocal<GrTransferProps<TItem> & {
|
|
45
|
+
onSearch?: ((query: string, side: GrTransferSide) => any) | undefined;
|
|
46
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
47
|
+
onChange?: ((value: GrTransferKey[]) => any) | undefined;
|
|
48
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
49
|
+
"onUpdate:modelValue"?: ((value: GrTransferKey[]) => any) | undefined;
|
|
50
|
+
onTransfer?: ((keys: GrTransferKey[], direction: GrTransferDirection) => any) | undefined;
|
|
51
|
+
}> & (typeof globalThis extends {
|
|
52
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
53
|
+
} ? P : {});
|
|
54
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
55
|
+
focus: () => void;
|
|
56
|
+
blur: () => void;
|
|
57
|
+
focusSide: (side: GrTransferSide) => void;
|
|
58
|
+
transfer: (keys: GrTransferKey[], direction: GrTransferDirection) => undefined;
|
|
59
|
+
selectAll: (side: GrTransferSide) => void;
|
|
60
|
+
clearSelection: (side?: GrTransferSide) => void;
|
|
61
|
+
}>) => void;
|
|
62
|
+
attrs: any;
|
|
63
|
+
slots: {
|
|
64
|
+
/** Своя строка. Слот доменный: у соседей `item` — строка списка, здесь тоже. */
|
|
65
|
+
item?: (props: {
|
|
66
|
+
item: TItem;
|
|
67
|
+
side: GrTransferSide;
|
|
68
|
+
index: number;
|
|
69
|
+
selected: boolean;
|
|
70
|
+
disabled: boolean;
|
|
71
|
+
}) => unknown;
|
|
72
|
+
/** Своя шапка панели: имя, счётчик, отметка «выбрать всё». */
|
|
73
|
+
header?: (props: {
|
|
74
|
+
side: GrTransferSide;
|
|
75
|
+
title: string;
|
|
76
|
+
selected: number;
|
|
77
|
+
total: number;
|
|
78
|
+
shown: number;
|
|
79
|
+
}) => unknown;
|
|
80
|
+
/** Своя колонка кнопок между панелями. */
|
|
81
|
+
actions?: (props: {
|
|
82
|
+
toTarget: () => void;
|
|
83
|
+
toSource: () => void;
|
|
84
|
+
canToTarget: boolean;
|
|
85
|
+
canToSource: boolean;
|
|
86
|
+
}) => unknown;
|
|
87
|
+
/** Пустая панель. `filtered` — пусто из-за поиска, а не по сути. */
|
|
88
|
+
empty?: (props: {
|
|
89
|
+
side: GrTransferSide;
|
|
90
|
+
filtered: boolean;
|
|
91
|
+
}) => unknown;
|
|
92
|
+
};
|
|
93
|
+
emit: GrTransferEmits;
|
|
94
|
+
}>) => import("vue").VNode & {
|
|
95
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
96
|
+
};
|
|
97
|
+
declare const _default: typeof __VLS_export;
|
|
98
|
+
export default _default;
|
|
99
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
100
|
+
[K in keyof T]: T[K];
|
|
101
|
+
} : {
|
|
102
|
+
[K in keyof T as K]: T[K];
|
|
103
|
+
}) & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const grTransferConfig: import("@feugene/unocss-preset-granular/contract").GranularComponentDescriptor<"GrTransfer">;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { GrComponentSize } from '../GrConfigProvider/context';
|
|
2
|
+
/** Пропы `GrTransfer`, настраиваемые глобально через `componentDefaults`. */
|
|
3
|
+
export interface GrTransferConfigurableProps {
|
|
4
|
+
size: GrComponentSize;
|
|
5
|
+
/**
|
|
6
|
+
* Перетаскивание — усиление поверх кнопок, а не контракт: приложение вправе
|
|
7
|
+
* выключить его на всё поддерево, и клавиатурный путь от этого не пострадает.
|
|
8
|
+
*/
|
|
9
|
+
draggable: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
12
|
+
interface GrComponentDefaultsRegistry {
|
|
13
|
+
GrTransfer: GrTransferConfigurableProps;
|
|
14
|
+
}
|
|
15
|
+
}
|