@soybeanjs/headless 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/alert/alert-compact.vue.d.ts +2 -2
- package/dist/components/anchor/anchor-root.vue.d.ts +1 -1
- package/dist/components/autocomplete/autocomplete-root.js +1 -1
- package/dist/components/autocomplete/autocomplete-root.vue.d.ts +1 -1
- package/dist/components/backtop/backtop.vue.d.ts +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-compact.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-root-nested.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-root-nested.vue.d.ts +2 -2
- package/dist/components/bottom-sheet/bottom-sheet-root.js +1 -1
- package/dist/components/calendar/calendar-compact.js +1 -1
- package/dist/components/calendar-range/calendar-range-root.vue.d.ts +2 -2
- package/dist/components/card/card-root.vue.d.ts +1 -1
- package/dist/components/card/types.d.ts +2 -2
- package/dist/components/checkbox/checkbox-root.vue.d.ts +1 -1
- package/dist/components/clipboard/clipboard.vue.d.ts +5 -5
- package/dist/components/collapsible/collapsible-root.vue.d.ts +1 -1
- package/dist/components/color-area/color-area-compact.vue.d.ts +2 -2
- package/dist/components/color-area/color-area-root.vue.d.ts +2 -2
- package/dist/components/color-field/color-field-root.vue.d.ts +1 -1
- package/dist/components/color-picker/color-picker-compact.vue.d.ts +4 -4
- package/dist/components/color-picker/color-picker-root.vue.d.ts +2 -2
- package/dist/components/color-slider/color-slider-compact.vue.d.ts +2 -2
- package/dist/components/color-slider/color-slider-root.vue.d.ts +2 -2
- package/dist/components/color-swatch-picker/color-swatch-picker-root.js +1 -1
- package/dist/components/color-swatch-picker/types.d.ts +2 -2
- package/dist/components/combobox/combobox-compact.vue.d.ts +3 -3
- package/dist/components/combobox/combobox-content-impl.js +1 -1
- package/dist/components/combobox/combobox-root.js +1 -1
- package/dist/components/config-provider/config-provider.js +14 -2
- package/dist/components/context-menu/context-menu-checkbox-compact.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-content.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu-wrapper-compact.vue.d.ts +2 -2
- package/dist/components/date-field/date-field-root.vue.d.ts +2 -2
- package/dist/components/date-picker/date-picker-compact.vue.d.ts +7 -7
- package/dist/components/date-range-field/date-range-field-root.vue.d.ts +2 -2
- package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +7 -7
- package/dist/components/dialog/dialog-compact.js +1 -1
- package/dist/components/dialog/dialog-compact.vue.d.ts +6 -6
- package/dist/components/dialog/dialog-popup-impl.js +1 -1
- package/dist/components/dialog/dialog-root.js +1 -1
- package/dist/components/dialog/state.js +1 -1
- package/dist/components/dialog/types.d.ts +5 -1
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +3 -3
- package/dist/components/dropdown-menu/dropdown-menu-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +3 -3
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.vue.d.ts +2 -2
- package/dist/components/editable/editable-compact.vue.d.ts +2 -2
- package/dist/components/editable/editable-root.vue.d.ts +2 -2
- package/dist/components/editable/types.d.ts +2 -2
- package/dist/components/hover-card/hover-card-compact.js +1 -1
- package/dist/components/hover-card/hover-card-compact.vue.d.ts +0 -1
- package/dist/components/hover-card/hover-card-root.vue.d.ts +1 -1
- package/dist/components/hover-card/types.d.ts +2 -2
- package/dist/components/input-otp/input-otp-compact.vue.d.ts +2 -2
- package/dist/components/input-otp/input-otp-root.vue.d.ts +2 -2
- package/dist/components/layout/layout-classic-compact.vue.d.ts +1 -1
- package/dist/components/layout/layout-compact.vue.d.ts +1 -1
- package/dist/components/layout/layout-root.vue.d.ts +1 -1
- package/dist/components/listbox/listbox-root.js +1 -1
- package/dist/components/menu/menu-content.vue.d.ts +2 -2
- package/dist/components/menu/menu-option-compact.vue.d.ts +2 -2
- package/dist/components/menu/menu-options-compact.vue.d.ts +2 -2
- package/dist/components/menu/menu-sub-content.vue.d.ts +2 -2
- package/dist/components/menubar/menubar-compact.vue.d.ts +3 -3
- package/dist/components/menubar/menubar-content.vue.d.ts +2 -2
- package/dist/components/menubar/menubar-root.js +1 -1
- package/dist/components/menubar/menubar-sub-content.vue.d.ts +2 -2
- package/dist/components/navigation-menu/context.js +1 -1
- package/dist/components/navigation-menu/index.d.ts +3 -3
- package/dist/components/navigation-menu/index.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-compact.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-compact.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-indicator.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-item-slot-compact.js +1 -0
- package/dist/components/navigation-menu/navigation-menu-list.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-option-compact.js +1 -0
- package/dist/components/navigation-menu/navigation-menu-root.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +1 -2
- package/dist/components/navigation-menu/navigation-menu-sub-option-compact.js +1 -0
- package/dist/components/navigation-menu/navigation-menu-viewport.js +1 -1
- package/dist/components/navigation-menu/shared.js +1 -1
- package/dist/components/navigation-menu/types.d.ts +93 -54
- package/dist/components/page-tabs/page-tabs-compact.vue.d.ts +2 -2
- package/dist/components/page-tabs/page-tabs-item.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-first.js +1 -1
- package/dist/components/pagination/pagination-last.js +1 -1
- package/dist/components/pagination/pagination-next.js +1 -1
- package/dist/components/pagination/pagination-prev.js +1 -1
- package/dist/components/pagination/pagination-root.vue.d.ts +2 -2
- package/dist/components/pagination/types.d.ts +10 -10
- package/dist/components/popconfirm/popconfirm-compact.vue.d.ts +5 -5
- package/dist/components/popover/popover-compact.vue.d.ts +1 -1
- package/dist/components/popper/popper-positioner.vue.d.ts +1 -1
- package/dist/components/progress/state.js +1 -1
- package/dist/components/progress/types.d.ts +4 -4
- package/dist/components/radio-group/context.d.ts +3 -2
- package/dist/components/radio-group/context.js +1 -1
- package/dist/components/radio-group/index.d.ts +10 -9
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radio-group/radio-group-card-compact.js +1 -0
- package/dist/components/radio-group/radio-group-card-compact.vue.d.ts +21 -0
- package/dist/components/radio-group/radio-group-compact.js +1 -1
- package/dist/components/radio-group/radio-group-compact.vue.d.ts +4 -5
- package/dist/components/radio-group/radio-group-root.vue.d.ts +5 -5
- package/dist/components/radio-group/types.d.ts +67 -13
- package/dist/components/scroll-area/types.d.ts +2 -2
- package/dist/components/select/select-compact.vue.d.ts +2 -2
- package/dist/components/separator/types.d.ts +2 -2
- package/dist/components/slider/types.d.ts +2 -2
- package/dist/components/splitter/splitter-group.vue.d.ts +1 -1
- package/dist/components/splitter/splitter-panel.vue.d.ts +2 -2
- package/dist/components/stepper/types.d.ts +2 -2
- package/dist/components/switch/switch-compact.js +1 -1
- package/dist/components/switch/switch-root.js +1 -1
- package/dist/components/switch/types.d.ts +3 -1
- package/dist/components/tabs/tabs-indicator.js +1 -1
- package/dist/components/tabs/tabs-root.vue.d.ts +1 -1
- package/dist/components/tags-input/tags-input-compact.vue.d.ts +2 -2
- package/dist/components/tags-input/tags-input-root.vue.d.ts +2 -2
- package/dist/components/time-field/time-field-root.vue.d.ts +1 -1
- package/dist/components/time-range-field/time-range-field-root.vue.d.ts +2 -2
- package/dist/components/toast/state.js +1 -1
- package/dist/components/toast/toaster.vue.d.ts +1 -1
- package/dist/components/toolbar/toolbar-link.js +1 -1
- package/dist/components/toolbar/toolbar-link.vue.d.ts +1 -2
- package/dist/components/toolbar/toolbar-root.js +1 -1
- package/dist/components/toolbar/toolbar-separator.js +1 -1
- package/dist/components/toolbar/toolbar-toggle-group.js +1 -1
- package/dist/components/toolbar/types.d.ts +7 -2
- package/dist/components/tooltip/tooltip-compact.vue.d.ts +1 -1
- package/dist/components/tooltip/tooltip-root.vue.d.ts +1 -1
- package/dist/components/tooltip/types.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +1 -1
- package/dist/constants/components.js +1 -1
- package/dist/index.d.ts +132 -131
- package/dist/index.js +1 -1
- package/dist/namespaced/index.d.ts +268 -266
- package/dist/namespaced/index.js +1 -1
- package/dist/types/common.d.ts +2 -1
- package/dist/types/index.d.ts +2 -2
- package/package.json +5 -5
- /package/dist/_virtual/{_@oxc-project_runtime@0.127.0 → _@oxc-project_runtime@0.129.0}/helpers/defineProperty.js +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.127.0 → _@oxc-project_runtime@0.129.0}/helpers/toPrimitive.js +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.127.0 → _@oxc-project_runtime@0.129.0}/helpers/toPropertyKey.js +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.127.0 → _@oxc-project_runtime@0.129.0}/helpers/typeof.js +0 -0
|
@@ -2,6 +2,7 @@ import { Align, DataOrientation, Direction, UiClass } from "../../types/common.j
|
|
|
2
2
|
import { DismissableLayerEmits, DismissableLayerProps, ForceMountProps } from "../../types/component.js";
|
|
3
3
|
import { BaseProps } from "../../types/vue.js";
|
|
4
4
|
import { PrimitiveWithBaseProps } from "../primitive/types.js";
|
|
5
|
+
import { IconValue } from "../_icon/types.js";
|
|
5
6
|
import { LinkBaseProps, LinkProps } from "../link/types.js";
|
|
6
7
|
import { ShallowRef } from "vue";
|
|
7
8
|
|
|
@@ -165,86 +166,124 @@ type NavigationMenuSubEmits = NavigationMenuRootEmits;
|
|
|
165
166
|
/**
|
|
166
167
|
* Available UI slots for the NavigationMenu component.
|
|
167
168
|
*/
|
|
168
|
-
type NavigationMenuUiSlot = 'root' | 'trigger' | 'content' | 'list' | 'indicator' | 'viewport' | 'item' | 'link' | 'subList' | 'subItem' | 'subLink';
|
|
169
|
+
type NavigationMenuUiSlot = 'root' | 'trigger' | 'content' | 'list' | 'indicator' | 'viewport' | 'item' | 'itemIcon' | 'link' | 'subList' | 'subItem' | 'subLink' | 'triggerIcon' | 'linkIcon' | 'arrow' | 'subItemContent' | 'subLinkContent' | 'subLinkLabel' | 'subLinkDescription';
|
|
169
170
|
/**
|
|
170
171
|
* UI class overrides for the NavigationMenu component.
|
|
171
172
|
*/
|
|
172
173
|
type NavigationMenuUi = UiClass<NavigationMenuUiSlot>;
|
|
173
174
|
/**
|
|
174
|
-
*
|
|
175
|
+
* Option data for the NavigationMenu component.
|
|
175
176
|
*/
|
|
176
|
-
interface
|
|
177
|
-
/** The value of the
|
|
177
|
+
interface NavigationMenuOptionData extends LinkBaseProps {
|
|
178
|
+
/** The value of the option. */
|
|
178
179
|
value: string;
|
|
179
|
-
/** The label to display in the
|
|
180
|
+
/** The label to display in the option. */
|
|
180
181
|
label: string;
|
|
181
|
-
/** The description of the
|
|
182
|
+
/** The description of the option. */
|
|
182
183
|
description?: string;
|
|
183
|
-
/**
|
|
184
|
+
/**
|
|
185
|
+
* The icon of the option.
|
|
186
|
+
*
|
|
187
|
+
* if it is a string, it will be used as the icon name of the iconify.
|
|
188
|
+
*/
|
|
189
|
+
icon?: IconValue;
|
|
190
|
+
/** Whether the option is disabled. */
|
|
184
191
|
disabled?: boolean;
|
|
185
|
-
/** The children of the
|
|
186
|
-
children?:
|
|
192
|
+
/** The children of the option. */
|
|
193
|
+
children?: NavigationMenuOptionData[];
|
|
187
194
|
}
|
|
195
|
+
/**
|
|
196
|
+
* Slots for the NavigationMenuSubOptionCompact component.
|
|
197
|
+
*/
|
|
198
|
+
type NavigationMenuSubOptionCompactSlots = {
|
|
199
|
+
item: (props: {
|
|
200
|
+
item: NavigationMenuOptionData;
|
|
201
|
+
isTrigger?: boolean;
|
|
202
|
+
}) => any;
|
|
203
|
+
'item-leading': (props: {
|
|
204
|
+
item: NavigationMenuOptionData;
|
|
205
|
+
}) => any;
|
|
206
|
+
'item-trailing': (props: {
|
|
207
|
+
item: NavigationMenuOptionData;
|
|
208
|
+
}) => any;
|
|
209
|
+
'item-link-icon': (props: {
|
|
210
|
+
item: NavigationMenuOptionData;
|
|
211
|
+
}) => any;
|
|
212
|
+
'item-children': (props: {
|
|
213
|
+
item: NavigationMenuOptionData;
|
|
214
|
+
}) => any;
|
|
215
|
+
};
|
|
188
216
|
/**
|
|
189
217
|
* Properties for the NavigationMenuCompact component.
|
|
190
218
|
*/
|
|
191
|
-
interface
|
|
192
|
-
/**
|
|
193
|
-
|
|
194
|
-
|
|
219
|
+
interface NavigationMenuOptionCompactProps {
|
|
220
|
+
/**
|
|
221
|
+
* Current item data.
|
|
222
|
+
*/
|
|
223
|
+
item: NavigationMenuOptionData;
|
|
224
|
+
/**
|
|
225
|
+
* Properties forwarded to the item element.
|
|
226
|
+
*/
|
|
195
227
|
itemProps?: NavigationMenuItemProps;
|
|
196
|
-
/**
|
|
228
|
+
/**
|
|
229
|
+
* Properties forwarded to the link element.
|
|
230
|
+
*/
|
|
197
231
|
linkProps?: NavigationMenuLinkProps;
|
|
198
|
-
/**
|
|
232
|
+
/**
|
|
233
|
+
* Properties forwarded to the trigger element.
|
|
234
|
+
*/
|
|
199
235
|
triggerProps?: NavigationMenuTriggerProps;
|
|
200
|
-
/**
|
|
236
|
+
/**
|
|
237
|
+
* Properties forwarded to the content element.
|
|
238
|
+
*/
|
|
201
239
|
contentProps?: NavigationMenuContentProps;
|
|
202
|
-
/**
|
|
240
|
+
/**
|
|
241
|
+
* Properties forwarded to the viewport element.
|
|
242
|
+
*/
|
|
243
|
+
viewportProps?: NavigationMenuViewportProps;
|
|
244
|
+
/**
|
|
245
|
+
* Properties forwarded to the indicator element.
|
|
246
|
+
*/
|
|
247
|
+
indicatorProps?: NavigationMenuIndicatorProps;
|
|
248
|
+
/**
|
|
249
|
+
* Properties forwarded to the list element.
|
|
250
|
+
*/
|
|
203
251
|
listProps?: NavigationMenuListProps;
|
|
204
|
-
/**
|
|
252
|
+
/**
|
|
253
|
+
* Properties forwarded to the sub list element.
|
|
254
|
+
*/
|
|
205
255
|
subListProps?: NavigationMenuListProps;
|
|
206
|
-
/**
|
|
256
|
+
/**
|
|
257
|
+
* Properties forwarded to the sub item element.
|
|
258
|
+
*/
|
|
207
259
|
subItemProps?: NavigationMenuItemProps;
|
|
208
|
-
/** Properties for NavigationMenuViewport. */
|
|
209
|
-
viewportProps?: NavigationMenuViewportProps;
|
|
210
|
-
/** Properties for NavigationMenuIndicator. */
|
|
211
|
-
indicatorProps?: NavigationMenuIndicatorProps;
|
|
212
260
|
}
|
|
213
261
|
/**
|
|
214
|
-
* Events for the
|
|
262
|
+
* Events for the NavigationMenuOptionCompact component.
|
|
215
263
|
*/
|
|
216
|
-
type
|
|
264
|
+
type NavigationMenuOptionCompactEmits = NavigationMenuSubEmits & NavigationMenuContentEmits & NavigationMenuLinkEmits;
|
|
217
265
|
/**
|
|
218
|
-
* Slots for the
|
|
266
|
+
* Slots for the NavigationMenuOptionCompact component.
|
|
219
267
|
*/
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
item: NavigationMenuItemData;
|
|
224
|
-
isTrigger?: boolean;
|
|
225
|
-
}) => any;
|
|
226
|
-
/** Slot for rendering leading content of an item. */
|
|
227
|
-
'item-leading'?: (props: {
|
|
228
|
-
item: NavigationMenuItemData;
|
|
229
|
-
}) => any;
|
|
230
|
-
/** Slot for rendering trailing content of an item. */
|
|
231
|
-
'item-trailing'?: (props: {
|
|
232
|
-
item: NavigationMenuItemData;
|
|
268
|
+
type NavigationMenuOptionCompactSlots = NavigationMenuSubOptionCompactSlots & {
|
|
269
|
+
'item-trigger-icon': (props: {
|
|
270
|
+
item: NavigationMenuOptionData;
|
|
233
271
|
}) => any;
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
}) => any;
|
|
242
|
-
/** Slot for rendering custom children content. */
|
|
243
|
-
'item-children'?: (props: {
|
|
244
|
-
item: NavigationMenuItemData;
|
|
245
|
-
}) => any;
|
|
246
|
-
/** Slot for rendering indicator arrow. */
|
|
247
|
-
indicator?: () => any;
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* Properties for the NavigationMenuCompact component.
|
|
275
|
+
*/
|
|
276
|
+
interface NavigationMenuCompactProps extends NavigationMenuRootProps, Omit<NavigationMenuOptionCompactProps, 'item'> {
|
|
277
|
+
/** The items to render in the navigation menu. */
|
|
278
|
+
items: NavigationMenuOptionData[];
|
|
248
279
|
}
|
|
280
|
+
/**
|
|
281
|
+
* Events for the NavigationMenuCompact component.
|
|
282
|
+
*/
|
|
283
|
+
type NavigationMenuCompactEmits = NavigationMenuRootEmits & NavigationMenuOptionCompactEmits;
|
|
284
|
+
/**
|
|
285
|
+
* Slots for the NavigationMenuCompact component.
|
|
286
|
+
*/
|
|
287
|
+
type NavigationMenuCompactSlots = NavigationMenuOptionCompactSlots;
|
|
249
288
|
//#endregion
|
|
250
|
-
export { NavigationMenuCompactEmits, NavigationMenuCompactProps, NavigationMenuCompactSlots, NavigationMenuContentEmits, NavigationMenuContentProps, NavigationMenuIndicatorProps,
|
|
289
|
+
export { NavigationMenuCompactEmits, NavigationMenuCompactProps, NavigationMenuCompactSlots, NavigationMenuContentEmits, NavigationMenuContentProps, NavigationMenuIndicatorProps, NavigationMenuItemProps, NavigationMenuLinkEmits, NavigationMenuLinkProps, NavigationMenuListProps, NavigationMenuOptionData, NavigationMenuRootEmits, NavigationMenuRootProps, NavigationMenuSubEmits, NavigationMenuSubListProps, NavigationMenuSubProps, NavigationMenuTriggerProps, NavigationMenuUi, NavigationMenuUiSlot, NavigationMenuViewportProps };
|
|
@@ -5,11 +5,11 @@ import * as _$vue from "vue";
|
|
|
5
5
|
declare const __VLS_export: <T extends PageTabsOptionData = PageTabsOptionData>(__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<{
|
|
6
6
|
props: _$vue.PublicProps & __VLS_PrettifyLocal<PageTabsCompactProps<T> & {
|
|
7
7
|
onContextmenu?: ((tab: T) => any) | undefined;
|
|
8
|
-
onClick?: ((tab: T) => any) | undefined;
|
|
9
8
|
onClose?: ((tab: T) => any) | undefined;
|
|
9
|
+
onClick?: ((tab: T) => any) | undefined;
|
|
10
10
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
|
-
"onUpdate:items"?: ((items: T[]) => any) | undefined;
|
|
12
11
|
onPin?: ((tab: T) => any) | undefined;
|
|
12
|
+
"onUpdate:items"?: ((items: T[]) => any) | undefined;
|
|
13
13
|
onSelectContextMenu?: ((menu: PageTabsContextMenuOptionData, tab: T) => any) | undefined;
|
|
14
14
|
}> & (typeof globalThis extends {
|
|
15
15
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -7,12 +7,12 @@ type __VLS_Slots = {} & {
|
|
|
7
7
|
default?: (props: typeof __VLS_13) => any;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_base: _$vue.DefineComponent<PageTabsItemProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
10
|
-
click: () => any;
|
|
11
10
|
close: () => any;
|
|
11
|
+
click: () => any;
|
|
12
12
|
pin: (pinned: boolean) => any;
|
|
13
13
|
}, string, _$vue.PublicProps, Readonly<PageTabsItemProps> & Readonly<{
|
|
14
|
-
onClick?: (() => any) | undefined;
|
|
15
14
|
onClose?: (() => any) | undefined;
|
|
15
|
+
onClick?: (() => any) | undefined;
|
|
16
16
|
onPin?: ((pinned: boolean) => any) | undefined;
|
|
17
17
|
}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useLocaleMessages as e}from"../../locale/hooks.js";import"../../locale/index.js";import t from"../button/button.js";import{usePaginationRootContext as n,usePaginationUi as r}from"./context.js";import{computed as i,createBlock as a,createTextVNode as o,defineComponent as s,mergeProps as c,openBlock as l,renderSlot as u,toDisplayString as d,unref as f,withCtx as p}from"vue";const m=s({name:`PaginationFirst`,__name:`pagination-first`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(s){let m=s,{page:h,onPageChange:g,disabled:_}=n(`PaginationFirst`),v=r(`first`),y=e(),b=i(()=>_.value||h.value===1),x=()=>{g(1)};return(e,n)=>(l(),a(t,c(m,{"data-soybean-pagination-first":``,class:f(v),disabled:b.value,"aria-label":f(y).pagination.firstPage,onClick:x}),{default:p(()=>[u(e.$slots,`default`,{},()=>[o(d(f(y).pagination.firstPage),1)])]),_:3},16,[`class`,`disabled`,`aria-label`]))}});export{m as default};
|
|
1
|
+
import{useLocaleMessages as e}from"../../locale/hooks.js";import"../../locale/index.js";import t from"../button/button.js";import{usePaginationRootContext as n,usePaginationUi as r}from"./context.js";import{computed as i,createBlock as a,createTextVNode as o,defineComponent as s,mergeProps as c,openBlock as l,renderSlot as u,toDisplayString as d,unref as f,withCtx as p}from"vue";const m=s({name:`PaginationFirst`,__name:`pagination-first`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(s){let m=s,{page:h,onPageChange:g,disabled:_}=n(`PaginationFirst`),v=r(`first`),y=e(),b=i(()=>_.value||h.value===1),x=()=>{g(1)};return(e,n)=>(l(),a(t,c(m,{"data-soybean-pagination-first":``,"data-soybean-pagination-action":``,class:f(v),disabled:b.value,"aria-label":f(y).pagination.firstPage,onClick:x}),{default:p(()=>[u(e.$slots,`default`,{},()=>[o(d(f(y).pagination.firstPage),1)])]),_:3},16,[`class`,`disabled`,`aria-label`]))}});export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useLocaleMessages as e}from"../../locale/hooks.js";import"../../locale/index.js";import t from"../button/button.js";import{usePaginationRootContext as n,usePaginationUi as r}from"./context.js";import{computed as i,createBlock as a,createTextVNode as o,defineComponent as s,mergeProps as c,openBlock as l,renderSlot as u,toDisplayString as d,unref as f,withCtx as p}from"vue";const m=s({name:`PaginationLast`,__name:`pagination-last`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(s){let m=s,{page:h,onPageChange:g,pageCount:_,disabled:v}=n(`PaginationLast`),y=r(`last`),b=e(),x=i(()=>v.value||h.value===_.value),S=()=>{g(_.value)};return(e,n)=>(l(),a(t,c(m,{"data-soybean-pagination-last":``,class:f(y),disabled:x.value,"aria-label":f(b).pagination.lastPage,onClick:S}),{default:p(()=>[u(e.$slots,`default`,{},()=>[o(d(f(b).pagination.lastPage),1)])]),_:3},16,[`class`,`disabled`,`aria-label`]))}});export{m as default};
|
|
1
|
+
import{useLocaleMessages as e}from"../../locale/hooks.js";import"../../locale/index.js";import t from"../button/button.js";import{usePaginationRootContext as n,usePaginationUi as r}from"./context.js";import{computed as i,createBlock as a,createTextVNode as o,defineComponent as s,mergeProps as c,openBlock as l,renderSlot as u,toDisplayString as d,unref as f,withCtx as p}from"vue";const m=s({name:`PaginationLast`,__name:`pagination-last`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(s){let m=s,{page:h,onPageChange:g,pageCount:_,disabled:v}=n(`PaginationLast`),y=r(`last`),b=e(),x=i(()=>v.value||h.value===_.value),S=()=>{g(_.value)};return(e,n)=>(l(),a(t,c(m,{"data-soybean-pagination-last":``,"data-soybean-pagination-action":``,class:f(y),disabled:x.value,"aria-label":f(b).pagination.lastPage,onClick:S}),{default:p(()=>[u(e.$slots,`default`,{},()=>[o(d(f(b).pagination.lastPage),1)])]),_:3},16,[`class`,`disabled`,`aria-label`]))}});export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useLocaleMessages as e}from"../../locale/hooks.js";import"../../locale/index.js";import t from"../button/button.js";import{usePaginationRootContext as n,usePaginationUi as r}from"./context.js";import{computed as i,createBlock as a,createTextVNode as o,defineComponent as s,mergeProps as c,openBlock as l,renderSlot as u,toDisplayString as d,unref as f,withCtx as p}from"vue";const m=s({name:`PaginationNext`,__name:`pagination-next`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(s){let m=s,{page:h,onPageChange:g,pageCount:_,disabled:v}=n(`PaginationNext`),y=r(`next`),b=e(),x=i(()=>v.value||h.value===_.value),S=()=>{g(h.value+1)};return(e,n)=>(l(),a(t,c(m,{"data-soybean-pagination-next":``,class:f(y),disabled:x.value,"aria-label":f(b).pagination.nextPage,onClick:S}),{default:p(()=>[u(e.$slots,`default`,{},()=>[o(d(f(b).pagination.nextPage),1)])]),_:3},16,[`class`,`disabled`,`aria-label`]))}});export{m as default};
|
|
1
|
+
import{useLocaleMessages as e}from"../../locale/hooks.js";import"../../locale/index.js";import t from"../button/button.js";import{usePaginationRootContext as n,usePaginationUi as r}from"./context.js";import{computed as i,createBlock as a,createTextVNode as o,defineComponent as s,mergeProps as c,openBlock as l,renderSlot as u,toDisplayString as d,unref as f,withCtx as p}from"vue";const m=s({name:`PaginationNext`,__name:`pagination-next`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(s){let m=s,{page:h,onPageChange:g,pageCount:_,disabled:v}=n(`PaginationNext`),y=r(`next`),b=e(),x=i(()=>v.value||h.value===_.value),S=()=>{g(h.value+1)};return(e,n)=>(l(),a(t,c(m,{"data-soybean-pagination-next":``,"data-soybean-pagination-action":``,class:f(y),disabled:x.value,"aria-label":f(b).pagination.nextPage,onClick:S}),{default:p(()=>[u(e.$slots,`default`,{},()=>[o(d(f(b).pagination.nextPage),1)])]),_:3},16,[`class`,`disabled`,`aria-label`]))}});export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useLocaleMessages as e}from"../../locale/hooks.js";import"../../locale/index.js";import t from"../button/button.js";import{usePaginationRootContext as n,usePaginationUi as r}from"./context.js";import{computed as i,createBlock as a,createTextVNode as o,defineComponent as s,mergeProps as c,openBlock as l,renderSlot as u,toDisplayString as d,unref as f,withCtx as p}from"vue";const m=s({name:`PaginationPrev`,__name:`pagination-prev`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(s){let m=s,{page:h,onPageChange:g,disabled:_}=n(`PaginationPrev`),v=r(`prev`),y=e(),b=i(()=>_.value||h.value===1),x=()=>{g(h.value-1)};return(e,n)=>(l(),a(t,c(m,{"data-soybean-pagination-prev":``,class:f(v),disabled:b.value,"aria-label":f(y).pagination.prevPage,onClick:x}),{default:p(()=>[u(e.$slots,`default`,{},()=>[o(d(f(y).pagination.prevPage),1)])]),_:3},16,[`class`,`disabled`,`aria-label`]))}});export{m as default};
|
|
1
|
+
import{useLocaleMessages as e}from"../../locale/hooks.js";import"../../locale/index.js";import t from"../button/button.js";import{usePaginationRootContext as n,usePaginationUi as r}from"./context.js";import{computed as i,createBlock as a,createTextVNode as o,defineComponent as s,mergeProps as c,openBlock as l,renderSlot as u,toDisplayString as d,unref as f,withCtx as p}from"vue";const m=s({name:`PaginationPrev`,__name:`pagination-prev`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(s){let m=s,{page:h,onPageChange:g,disabled:_}=n(`PaginationPrev`),v=r(`prev`),y=e(),b=i(()=>_.value||h.value===1),x=()=>{g(h.value-1)};return(e,n)=>(l(),a(t,c(m,{"data-soybean-pagination-prev":``,"data-soybean-pagination-action":``,class:f(v),disabled:b.value,"aria-label":f(y).pagination.prevPage,onClick:x}),{default:p(()=>[u(e.$slots,`default`,{},()=>[o(d(f(y).pagination.prevPage),1)])]),_:3},16,[`class`,`disabled`,`aria-label`]))}});export{m as default};
|
|
@@ -16,11 +16,11 @@ declare const __VLS_base: _$vue.DefineComponent<PaginationRootProps, {}, {}, {},
|
|
|
16
16
|
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
17
17
|
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
18
18
|
}>, {
|
|
19
|
-
defaultPage: number;
|
|
20
|
-
defaultPageSize: number;
|
|
21
19
|
total: number;
|
|
22
20
|
siblingCount: number;
|
|
23
21
|
showEdges: boolean;
|
|
22
|
+
defaultPage: number;
|
|
23
|
+
defaultPageSize: number;
|
|
24
24
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
26
|
declare const _default: typeof __VLS_export;
|
|
@@ -58,14 +58,6 @@ interface PaginationEllipsisProps extends BaseProps {}
|
|
|
58
58
|
* Properties for the PaginationButton component.
|
|
59
59
|
*/
|
|
60
60
|
interface PaginationButtonProps extends ButtonProps {}
|
|
61
|
-
/**
|
|
62
|
-
* Available UI slots for the Pagination component.
|
|
63
|
-
*/
|
|
64
|
-
type PaginationUiSlot = 'root' | 'list' | 'listItem' | 'ellipsis' | 'first' | 'prev' | 'next' | 'last';
|
|
65
|
-
/**
|
|
66
|
-
* UI class overrides for the Pagination component.
|
|
67
|
-
*/
|
|
68
|
-
type PaginationUi = UiClass<PaginationUiSlot>;
|
|
69
61
|
/**
|
|
70
62
|
* Type information for PageEllipsis.
|
|
71
63
|
*/
|
|
@@ -136,7 +128,7 @@ type PaginationCompactEmits = PaginationRootEmits;
|
|
|
136
128
|
/**
|
|
137
129
|
* Slots for the PaginationCompact component.
|
|
138
130
|
*/
|
|
139
|
-
|
|
131
|
+
type PaginationCompactSlots = {
|
|
140
132
|
/**
|
|
141
133
|
* Custom content for the leading slot.
|
|
142
134
|
*/
|
|
@@ -165,6 +157,14 @@ interface PaginationCompactSlots {
|
|
|
165
157
|
* Custom content for the ellipsis slot.
|
|
166
158
|
*/
|
|
167
159
|
ellipsis?: () => any;
|
|
168
|
-
}
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* Available UI slots for the Pagination component.
|
|
163
|
+
*/
|
|
164
|
+
type PaginationUiSlot = 'root' | 'list' | 'listItem' | 'ellipsis' | 'first' | 'prev' | 'next' | 'last';
|
|
165
|
+
/**
|
|
166
|
+
* UI class overrides for the Pagination component.
|
|
167
|
+
*/
|
|
168
|
+
type PaginationUi = UiClass<PaginationUiSlot>;
|
|
169
169
|
//#endregion
|
|
170
170
|
export { Pages, PaginationButtonProps, PaginationCompactEmits, PaginationCompactProps, PaginationCompactSlots, PaginationEllipsisProps, PaginationListItemProps, PaginationListProps, PaginationRootEmits, PaginationRootProps, PaginationUi, PaginationUiSlot };
|
|
@@ -6,7 +6,6 @@ import * as _$vue from "vue";
|
|
|
6
6
|
type __VLS_Slots = PopconfirmCompactSlots;
|
|
7
7
|
declare const __VLS_base: _$vue.DefineComponent<PopconfirmCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
8
8
|
"update:open": (value: boolean) => any;
|
|
9
|
-
cancel: (event: PointerEvent) => any;
|
|
10
9
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
11
10
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
12
11
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
@@ -14,9 +13,9 @@ declare const __VLS_base: _$vue.DefineComponent<PopconfirmCompactProps, {}, {},
|
|
|
14
13
|
openAutoFocus: (event: Event) => any;
|
|
15
14
|
closeAutoFocus: (event: Event) => any;
|
|
16
15
|
confirm: (event: PointerEvent) => any;
|
|
16
|
+
cancel: (event: PointerEvent) => any;
|
|
17
17
|
}, string, _$vue.PublicProps, Readonly<PopconfirmCompactProps> & Readonly<{
|
|
18
18
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
19
|
-
onCancel?: ((event: PointerEvent) => any) | undefined;
|
|
20
19
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
21
20
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
22
21
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -24,12 +23,13 @@ declare const __VLS_base: _$vue.DefineComponent<PopconfirmCompactProps, {}, {},
|
|
|
24
23
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
25
24
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
26
25
|
onConfirm?: ((event: PointerEvent) => any) | undefined;
|
|
26
|
+
onCancel?: ((event: PointerEvent) => any) | undefined;
|
|
27
27
|
}>, {
|
|
28
|
-
|
|
28
|
+
showCancel: "onlyWarning" | boolean;
|
|
29
29
|
open: boolean;
|
|
30
|
-
|
|
30
|
+
defaultOpen: boolean;
|
|
31
31
|
modal: boolean;
|
|
32
|
-
|
|
32
|
+
showArrow: boolean;
|
|
33
33
|
showIcon: boolean;
|
|
34
34
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
35
35
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -21,8 +21,8 @@ declare const __VLS_base: _$vue.DefineComponent<PopoverCompactProps, {}, {}, {},
|
|
|
21
21
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
22
22
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
23
23
|
}>, {
|
|
24
|
-
defaultOpen: boolean;
|
|
25
24
|
open: boolean;
|
|
25
|
+
defaultOpen: boolean;
|
|
26
26
|
showArrow: boolean;
|
|
27
27
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -204,7 +204,6 @@ declare const __VLS_base: _$vue.DefineComponent<PopperPositionerProps, {}, {}, {
|
|
|
204
204
|
'aria-valuenow': string | number;
|
|
205
205
|
'aria-valuetext': string;
|
|
206
206
|
placement: Placement$1;
|
|
207
|
-
reference: _$_floating_ui_dom0.ReferenceElement;
|
|
208
207
|
side: _$_floating_ui_utils0.Side;
|
|
209
208
|
sideOffset: number;
|
|
210
209
|
sideFlip: boolean;
|
|
@@ -222,6 +221,7 @@ declare const __VLS_base: _$vue.DefineComponent<PopperPositionerProps, {}, {}, {
|
|
|
222
221
|
updatePositionStrategy: "optimized" | "always";
|
|
223
222
|
disableUpdateOnLayoutShift: boolean;
|
|
224
223
|
prioritizePosition: boolean;
|
|
224
|
+
reference: _$_floating_ui_dom0.ReferenceElement;
|
|
225
225
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
226
226
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
227
227
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{clamp as e}from"../../shared/value.js";import{isClient as t}from"../../shared/env.js";import"../../shared/index.js";import{_defineProperty as n}from"../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import{clamp as e}from"../../shared/value.js";import{isClient as t}from"../../shared/env.js";import"../../shared/index.js";import{_defineProperty as n}from"../../_virtual/_@oxc-project_runtime@0.129.0/helpers/defineProperty.js";import{defu as r}from"defu";const i={direction:`ltr`,minimum:.08,maximum:1,easing:`linear`,speed:200,trickle:!0,trickleSpeed:200};var a=class{static reset(){return this.status=null,this.isPaused=!1,this.pending=[],this.options=i,this.clearTrickleTimer(),this}static configure(e){return this.options=r({...e},this.options),this}static isStarted(){return typeof this.status==`number`}static isRendered(){return t?document.querySelector(`[data-soybean-progress-provider]`)!==null:!1}static set(n){if(!t||this.isPaused)return this;let r=this.isStarted();n=e(n,this.options.minimum,this.options.maximum),this.status=n===this.options.maximum?null:n,this.status===null&&this.clearTrickleTimer();let i=this.render(!r),a=this.options.speed,o=this.options.easing;return i.forEach(e=>e.offsetWidth),this.queue(e=>{i.forEach(e=>{c(e.querySelector(`[data-soybean-progress-bar]`),this.barPositionCSS({n,speed:a,ease:o}))}),n===this.options.maximum?(i.forEach(e=>{c(e,{transition:`none`,opacity:`1`}),e.offsetWidth}),setTimeout(()=>{i.forEach(e=>{c(e,{transition:`all ${a}ms ${o}`,opacity:`0`})}),setTimeout(()=>{i.forEach(e=>{this.remove(e),c(e,{transition:`none`,opacity:`1`})}),e()},a)},a)):setTimeout(e,a)}),this}static start(){return t?(this.status||this.set(0),this.options.trickle&&this.startTrickling(),this):this}static done(e){return!t||!e&&!this.status?this:this.inc(.3+.5*Math.random()).set(1)}static inc(t){if(this.isPaused)return this;let n=this.status;return n?n>1?this:(typeof t!=`number`&&(t=n>=0&&n<.2?.1:n>=.2&&n<.5?.04:n>=.5&&n<.8?.02:n>=.8&&n<.99?.005:0),n=e(n+t,0,.994),this.set(n)):this.start()}static dec(t){if(this.isPaused)return this;let n=this.status;return typeof n==`number`?(typeof t!=`number`&&(t=n>.8?.1:n>.5?.05:n>.2?.02:.01),n=e(n-t,0,.994),this.set(n)):this}static trickle(){return this.isPaused?this:this.inc()}static promise(e){let t=typeof e==`function`?e():e;if(!t)return this;if(typeof t.then==`function`)return this.start(),Promise.resolve(t).then(()=>{this.done()},()=>{this.done(!0)}),this;if(typeof t.state!=`function`||typeof t.always!=`function`||t.state()===`resolved`)return this;let n=0,r=0;return this.start(),n++,r++,t.always(()=>{r--,r===0?(n=0,this.done()):this.set((n-r)/n)}),this}static render(e=!1){if(!t)return[];let n=Array.from(document.querySelectorAll(`[data-soybean-progress-provider]`));return n.forEach(t=>{t.style.display=``;let n=t.querySelector(`[data-soybean-progress-bar]`),r=s(e?0:this.status||0,this.options.direction);c(n,this.barPositionCSS({n:this.status||0,speed:this.options.speed,ease:this.options.easing,percent:r})),typeof this.status==`number`?t.setAttribute(`aria-valuenow`,`${this.status}`):t.removeAttribute(`aria-valuenow`)}),n}static remove(e){t&&(this.clearTrickleTimer(),e?e.style.display=`none`:document.querySelectorAll(`[data-soybean-progress-provider]`).forEach(e=>{let t=e;t.style.display=`none`}))}static pause(){return this.isStarted()?(this.isPaused=!0,this.clearTrickleTimer(),this):this}static resume(){return this.isStarted()?(this.isPaused=!1,this.options.trickle&&this.startTrickling(),this):this}static queue(e){this.pending.push(e),this.pending.length===1&&this.next()}static next(){let e=this.pending.shift();e&&e(this.next.bind(this))}static clearTrickleTimer(){this.trickleTimer&&(clearTimeout(this.trickleTimer),this.trickleTimer=void 0)}static startTrickling(){if(this.trickleTimer||this.isPaused||!this.isStarted())return;let e=()=>{this.trickleTimer=void 0,!(this.isPaused||!this.isStarted())&&(this.trickle(),!this.isPaused&&this.isStarted()&&(this.trickleTimer=setTimeout(e,this.options.trickleSpeed)))};this.trickleTimer=setTimeout(e,this.options.trickleSpeed)}static barPositionCSS({n:e,speed:t,ease:n,percent:r}){return{transform:`translate3d(${r??s(e,this.options.direction)}%,0,0)`,transition:`all ${t}ms ${n}`}}};n(a,`options`,i),n(a,`status`,null),n(a,`pending`,[]),n(a,`isPaused`,!1),n(a,`trickleTimer`,void 0);const o=a;function s(e,t){return t===`rtl`?(1-e)*100:(-1+e)*100}function c(e,t,n){if(typeof t==`string`)n!==void 0&&(e.style[t]=n);else for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];r!==void 0&&(e.style[n]=r)}}export{o as progress};
|
|
@@ -88,12 +88,12 @@ type ProgressCompactEmits = ProgressRootEmits;
|
|
|
88
88
|
/**
|
|
89
89
|
* Slots for the ProgressCompact component.
|
|
90
90
|
*/
|
|
91
|
-
|
|
91
|
+
type ProgressCompactSlots = {
|
|
92
92
|
/**
|
|
93
93
|
* Custom content for the default slot.
|
|
94
94
|
*/
|
|
95
95
|
default?: (props: ProgressSlotProps) => any;
|
|
96
|
-
}
|
|
96
|
+
};
|
|
97
97
|
/**
|
|
98
98
|
* Properties for the ProgressCircleCompact component.
|
|
99
99
|
*/
|
|
@@ -114,12 +114,12 @@ type ProgressCircleCompactEmits = ProgressRootEmits;
|
|
|
114
114
|
/**
|
|
115
115
|
* Slots for the ProgressCircleCompact component.
|
|
116
116
|
*/
|
|
117
|
-
|
|
117
|
+
type ProgressCircleCompactSlots = {
|
|
118
118
|
/**
|
|
119
119
|
* Custom content for the default slot.
|
|
120
120
|
*/
|
|
121
121
|
default?: (props: ProgressSlotProps) => any;
|
|
122
|
-
}
|
|
122
|
+
};
|
|
123
123
|
/**
|
|
124
124
|
* Properties for the ProgressProvider component.
|
|
125
125
|
*/
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { UiClass } from "../../types/common.js";
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
|
-
import { RadioGroupUiSlot } from "./types.js";
|
|
3
|
+
import { RadioGroupCardUiSlot, RadioGroupUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/radio-group/context.d.ts
|
|
7
7
|
declare const provideRadioGroupUi: (ui: _$vue.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>, useRadioGroupUi: UseUiConsumer<RadioGroupUiSlot>;
|
|
8
|
+
declare const provideRadioGroupCardUi: (ui: _$vue.ComputedRef<Partial<UiClass<RadioGroupCardUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<RadioGroupCardUiSlot>>>, useRadioGroupCardUi: UseUiConsumer<RadioGroupCardUiSlot>;
|
|
8
9
|
//#endregion
|
|
9
|
-
export { provideRadioGroupUi };
|
|
10
|
+
export { provideRadioGroupCardUi, provideRadioGroupUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getCheckedState as e}from"../../shared/value.js";import{useContext as t}from"../../composables/use-context.js";import"../../shared/index.js";import{useUiContext as n}from"../../composables/use-ui-context.js";import"../../composables/index.js";import{computed as r,shallowRef as i}from"vue";const[a,o]=t(`RadioGroupRoot`),[s,c]=t(`RadioGroupItem`,t=>{let n=r(()=>e(t.checked.value)),a=i(``),o=e=>{a.value=e};return{...t,dataState:n,controlId:a,initControlId:o}}),[l,u]=n(`RadioGroupUi`);export{s as provideRadioGroupItemContext,a as provideRadioGroupRootContext,l as provideRadioGroupUi,c as useRadioGroupItemContext,o as useRadioGroupRootContext,u as useRadioGroupUi};
|
|
1
|
+
import{getCheckedState as e}from"../../shared/value.js";import{useContext as t}from"../../composables/use-context.js";import"../../shared/index.js";import{useUiContext as n}from"../../composables/use-ui-context.js";import"../../composables/index.js";import{computed as r,shallowRef as i}from"vue";const[a,o]=t(`RadioGroupRoot`),[s,c]=t(`RadioGroupItem`,t=>{let n=r(()=>e(t.checked.value)),a=i(``),o=e=>{a.value=e};return{...t,dataState:n,controlId:a,initControlId:o}}),[l,u]=n(`RadioGroupUi`),[d,f]=n(`RadioGroupCardUi`,e=>(l(e),e));export{d as provideRadioGroupCardUi,s as provideRadioGroupItemContext,a as provideRadioGroupRootContext,l as provideRadioGroupUi,f as useRadioGroupCardUi,c as useRadioGroupItemContext,o as useRadioGroupRootContext,u as useRadioGroupUi};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { LabelProps } from "../label/types.js";
|
|
2
|
-
import { RadioGroupCompactEmits, RadioGroupCompactProps, RadioGroupControlProps, RadioGroupIndicatorProps, RadioGroupItemEmits, RadioGroupItemProps, RadioGroupOptionData, RadioGroupRootEmits, RadioGroupRootProps, RadioGroupUi, RadioGroupUiSlot, RadioSelectEvent } from "./types.js";
|
|
3
|
-
import { _default as _default$
|
|
4
|
-
import { _default } from "./radio-group-compact.vue.js";
|
|
5
|
-
import { _default as _default$
|
|
6
|
-
import { _default as _default$
|
|
7
|
-
import { _default as _default$2 } from "./radio-group-
|
|
8
|
-
import { _default as _default$
|
|
9
|
-
import {
|
|
10
|
-
|
|
2
|
+
import { RadioGroupCardCompactEmits, RadioGroupCardCompactProps, RadioGroupCardCompactSlots, RadioGroupCardOptionData, RadioGroupCardUi, RadioGroupCardUiSlot, RadioGroupCompactEmits, RadioGroupCompactProps, RadioGroupControlProps, RadioGroupIndicatorProps, RadioGroupItemEmits, RadioGroupItemProps, RadioGroupOptionData, RadioGroupRootEmits, RadioGroupRootProps, RadioGroupUi, RadioGroupUiSlot, RadioSelectEvent } from "./types.js";
|
|
3
|
+
import { _default as _default$1 } from "./radio-group-compact.vue.js";
|
|
4
|
+
import { _default } from "./radio-group-card-compact.vue.js";
|
|
5
|
+
import { _default as _default$6 } from "./radio-group-root.vue.js";
|
|
6
|
+
import { _default as _default$4 } from "./radio-group-item.vue.js";
|
|
7
|
+
import { _default as _default$2 } from "./radio-group-control.vue.js";
|
|
8
|
+
import { _default as _default$3 } from "./radio-group-indicator.vue.js";
|
|
9
|
+
import { _default as _default$5 } from "./radio-group-label.vue.js";
|
|
10
|
+
import { provideRadioGroupCardUi, provideRadioGroupUi } from "./context.js";
|
|
11
|
+
export { _default as RadioGroupCardCompact, type RadioGroupCardCompactEmits, type RadioGroupCardCompactProps, type RadioGroupCardCompactSlots, type RadioGroupCardOptionData, type RadioGroupCardUi, type RadioGroupCardUiSlot, _default$1 as RadioGroupCompact, type RadioGroupCompactEmits, type RadioGroupCompactProps, _default$2 as RadioGroupControl, type RadioGroupControlProps, _default$3 as RadioGroupIndicator, type RadioGroupIndicatorProps, _default$4 as RadioGroupItem, type RadioGroupItemEmits, type RadioGroupItemProps, _default$5 as RadioGroupLabel, type LabelProps as RadioGroupLabelProps, type RadioGroupOptionData, _default$6 as RadioGroupRoot, type RadioGroupRootEmits, type RadioGroupRootProps, type RadioGroupUi, type RadioGroupUiSlot, type RadioSelectEvent, provideRadioGroupCardUi, provideRadioGroupUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{provideRadioGroupUi as
|
|
1
|
+
import{provideRadioGroupCardUi as e,provideRadioGroupUi as t}from"./context.js";import n from"./radio-group-control.js";import r from"./radio-group-indicator.js";import i from"./radio-group-item.js";import a from"./radio-group-label.js";import o from"./radio-group-root.js";import s from"./radio-group-compact.js";import c from"./radio-group-card-compact.js";export{c as RadioGroupCardCompact,s as RadioGroupCompact,n as RadioGroupControl,r as RadioGroupIndicator,i as RadioGroupItem,a as RadioGroupLabel,o as RadioGroupRoot,e as provideRadioGroupCardUi,t as provideRadioGroupUi};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"../_icon/icon.js";import{useRadioGroupCardUi as n}from"./context.js";import r from"./radio-group-control.js";import i from"./radio-group-indicator.js";import a from"./radio-group-item.js";import o from"./radio-group-label.js";import s from"./radio-group-root.js";import{Fragment as c,Transition as l,createBlock as u,createCommentVNode as d,createElementBlock as f,createElementVNode as p,createTextVNode as m,createVNode as h,defineComponent as g,mergeProps as _,normalizeClass as v,openBlock as y,renderList as b,renderSlot as x,toDisplayString as S,unref as C,useId as w,useSlots as T,withCtx as E}from"vue";const D=g({name:`RadioGroupCardCompact`,__name:`radio-group-card-compact`,props:{contentProps:{},textContentProps:{},descriptionProps:{},items:{},itemProps:{},controlProps:{},indicatorProps:{},labelProps:{},modelValue:{},defaultValue:{},disabled:{type:Boolean},orientation:{},dir:{},loop:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(g,{emit:D}){let O=g,k=D,A=T(),j=e(O,[`items`,`itemProps`,`controlProps`,`indicatorProps`,`labelProps`]),M=n(),N=w(),P=e=>String(e.value),F=e=>`${O.itemProps?.id||`radio-${N}`}-${e}`;return(e,n)=>(y(),u(s,_(C(j),{"onUpdate:modelValue":n[0]||(n[0]=e=>k(`update:modelValue`,e))}),{default:E(()=>[(y(!0),f(c,null,b(g.items,(n,s)=>(y(),u(a,_({key:P(n)},{ref_for:!0},g.itemProps,{value:n.value,disabled:g.disabled||n.disabled}),{default:E(()=>[p(`div`,_({ref_for:!0},g.contentProps,{class:C(M).content}),[h(t,{icon:n.icon,class:v(C(M).icon)},null,8,[`icon`,`class`]),p(`div`,_({ref_for:!0},g.textContentProps,{class:C(M).textContent}),[h(o,_({ref_for:!0},g.labelProps),{default:E(()=>[m(S(n.label),1)]),_:2},1040),A.description||n.description?(y(),f(`p`,_({key:0,ref_for:!0},g.descriptionProps,{class:C(M).description}),[x(e.$slots,`description`,{item:n},()=>[m(S(n.description),1)])],16)):d(`v-if`,!0)],16)],16),h(r,_({ref_for:!0},g.controlProps,{id:F(s)}),{default:E(()=>[h(l,{"enter-active-class":`soybean-headless-transition-all-150`,"enter-from-class":`soybean-headless-opacity-0 soybean-headless-scale-0`},{default:E(()=>[h(i,_({ref_for:!0},g.indicatorProps),null,16)]),_:1})]),_:1},16,[`id`])]),_:2},1040,[`value`,`disabled`]))),128))]),_:3},16))}});export{D as default};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RadioGroupCardCompactProps, RadioGroupCardCompactSlots, RadioGroupCardOptionData } from "./types.js";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/radio-group/radio-group-card-compact.vue.d.ts
|
|
5
|
+
declare const __VLS_export: <T extends RadioGroupCardOptionData>(__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<{
|
|
6
|
+
props: _$vue.PublicProps & __VLS_PrettifyLocal<RadioGroupCardCompactProps<T> & {
|
|
7
|
+
"onUpdate:modelValue"?: ((payload: T["value"] | null) => any) | undefined;
|
|
8
|
+
}> & (typeof globalThis extends {
|
|
9
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
10
|
+
} ? P : {});
|
|
11
|
+
expose: (exposed: {}) => void;
|
|
12
|
+
attrs: any;
|
|
13
|
+
slots: RadioGroupCardCompactSlots<T>;
|
|
14
|
+
emit: (evt: "update:modelValue", payload: T["value"] | null) => void;
|
|
15
|
+
}>) => _$vue.VNode & {
|
|
16
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
17
|
+
};
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { _default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"./radio-group-
|
|
1
|
+
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"./radio-group-control.js";import n from"./radio-group-indicator.js";import r from"./radio-group-item.js";import i from"./radio-group-label.js";import a from"./radio-group-root.js";import{Fragment as o,Transition as s,createBlock as c,createElementBlock as l,createTextVNode as u,createVNode as d,defineComponent as f,mergeProps as p,openBlock as m,renderList as h,toDisplayString as g,unref as _,useId as v,withCtx as y}from"vue";const b=f({name:`RadioGroupCompact`,__name:`radio-group-compact`,props:{items:{},itemProps:{},controlProps:{},indicatorProps:{},labelProps:{},modelValue:{},defaultValue:{},disabled:{type:Boolean},orientation:{},dir:{},loop:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(f,{emit:b}){let x=f,S=b,C=e(x,[`items`,`itemProps`,`controlProps`,`indicatorProps`,`labelProps`]),w=v(),T=e=>String(e.value),E=e=>`${x.itemProps?.id||`radio-${w}`}-${e}`;return(e,v)=>(m(),c(a,p(_(C),{"onUpdate:modelValue":v[0]||(v[0]=e=>S(`update:modelValue`,e))}),{default:y(()=>[(m(!0),l(o,null,h(f.items,(e,a)=>(m(),c(r,p({key:T(e)},{ref_for:!0},f.itemProps,{value:e.value,disabled:f.disabled||e.disabled}),{default:y(()=>[d(t,p({ref_for:!0},f.controlProps,{id:E(a)}),{default:y(()=>[d(s,{"enter-active-class":`soybean-headless-transition-all-150`,"enter-from-class":`soybean-headless-opacity-0 soybean-headless-scale-0`},{default:y(()=>[d(n,p({ref_for:!0},f.indicatorProps),null,16)]),_:1})]),_:1},16,[`id`]),d(i,p({ref_for:!0},f.labelProps),{default:y(()=>[u(g(e.label),1)]),_:2},1040)]),_:2},1040,[`value`,`disabled`]))),128))]),_:1},16))}});export{b as default};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { AcceptableBooleanValue } from "../../types/common.js";
|
|
2
1
|
import { RadioGroupCompactProps, RadioGroupOptionData } from "./types.js";
|
|
3
2
|
import * as _$vue from "vue";
|
|
4
3
|
|
|
5
4
|
//#region src/components/radio-group/radio-group-compact.vue.d.ts
|
|
6
|
-
declare const __VLS_export: <T extends
|
|
7
|
-
props: _$vue.PublicProps & __VLS_PrettifyLocal<RadioGroupCompactProps<T
|
|
8
|
-
"onUpdate:modelValue"?: ((payload:
|
|
5
|
+
declare const __VLS_export: <T extends RadioGroupOptionData>(__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<{
|
|
6
|
+
props: _$vue.PublicProps & __VLS_PrettifyLocal<RadioGroupCompactProps<T> & {
|
|
7
|
+
"onUpdate:modelValue"?: ((payload: T["value"] | null) => any) | undefined;
|
|
9
8
|
}> & (typeof globalThis extends {
|
|
10
9
|
__VLS_PROPS_FALLBACK: infer P;
|
|
11
10
|
} ? P : {});
|
|
12
11
|
expose: (exposed: {}) => void;
|
|
13
12
|
attrs: any;
|
|
14
13
|
slots: {};
|
|
15
|
-
emit: (evt: "update:modelValue", payload:
|
|
14
|
+
emit: (evt: "update:modelValue", payload: T["value"] | null) => void;
|
|
16
15
|
}>) => _$vue.VNode & {
|
|
17
16
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
18
17
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DefinedWithBooleanValue } from "../../types/common.js";
|
|
2
2
|
import { RadioGroupRootProps } from "./types.js";
|
|
3
3
|
import * as _$vue from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/radio-group/radio-group-root.vue.d.ts
|
|
6
|
-
declare const __VLS_export: <T extends
|
|
6
|
+
declare const __VLS_export: <T extends DefinedWithBooleanValue>(__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<{
|
|
7
7
|
props: _$vue.PublicProps & __VLS_PrettifyLocal<RadioGroupRootProps<T> & {
|
|
8
|
-
"onUpdate:modelValue"?: ((payload:
|
|
8
|
+
"onUpdate:modelValue"?: ((payload: T | null) => any) | undefined;
|
|
9
9
|
}> & (typeof globalThis extends {
|
|
10
10
|
__VLS_PROPS_FALLBACK: infer P;
|
|
11
11
|
} ? P : {});
|
|
@@ -13,10 +13,10 @@ declare const __VLS_export: <T extends AcceptableBooleanValue>(__VLS_props: NonN
|
|
|
13
13
|
attrs: any;
|
|
14
14
|
slots: {
|
|
15
15
|
default?: (props: {
|
|
16
|
-
modelValue: (T | undefined) & Exclude<T, undefined
|
|
16
|
+
modelValue: ((T | undefined) & Exclude<T, undefined>) | null;
|
|
17
17
|
}) => any;
|
|
18
18
|
};
|
|
19
|
-
emit: (evt: "update:modelValue", payload:
|
|
19
|
+
emit: (evt: "update:modelValue", payload: T | null) => void;
|
|
20
20
|
}>) => _$vue.VNode & {
|
|
21
21
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
22
22
|
};
|