@bridge-ui/vue 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Actions/BridgeUIHosts.js +5 -0
- package/dist/Actions/BridgeUIHosts.vue.d.ts +18 -0
- package/dist/Actions/BridgeUIHosts.vue_vue_type_script_setup_true_lang.js +27 -0
- package/dist/Actions/Dialog/BridgeDialogAction.js +5 -0
- package/dist/Actions/Dialog/BridgeDialogAction.vue.d.ts +8 -0
- package/dist/Actions/Dialog/BridgeDialogAction.vue_vue_type_script_setup_true_lang.js +62 -0
- package/dist/Actions/Dialog/BridgeDialogHost.js +5 -0
- package/dist/Actions/Dialog/BridgeDialogHost.vue.d.ts +14 -0
- package/dist/Actions/Dialog/BridgeDialogHost.vue_vue_type_script_setup_true_lang.js +26 -0
- package/dist/Actions/Dialog/BridgeDialogItem.js +5 -0
- package/dist/Actions/Dialog/BridgeDialogItem.vue.d.ts +4 -0
- package/dist/Actions/Dialog/BridgeDialogItem.vue_vue_type_script_setup_true_lang.js +47 -0
- package/dist/Actions/Dialog/ResolveBridgeDialogFooter.js +5 -0
- package/dist/Actions/Dialog/ResolveBridgeDialogFooter.vue.d.ts +4 -0
- package/dist/Actions/Dialog/ResolveBridgeDialogFooter.vue_vue_type_script_setup_true_lang.js +35 -0
- package/dist/Actions/Dialog/bridgeDialog.types.d.ts +128 -0
- package/dist/Actions/Dialog/bridgeDialogInjectionKey.d.ts +3 -0
- package/dist/Actions/Dialog/bridgeDialogInjectionKey.js +4 -0
- package/dist/Actions/Dialog/createBridgeDialogApi.d.ts +2 -0
- package/dist/Actions/Dialog/createBridgeDialogApi.js +49 -0
- package/dist/Actions/Dialog/index.d.ts +3 -0
- package/dist/Actions/Dialog/index.js +3 -0
- package/dist/Actions/Dialog/useDialogAction.d.ts +5 -0
- package/dist/Actions/Dialog/useDialogAction.js +26 -0
- package/dist/Actions/Modal/BridgeModalHost.js +5 -0
- package/dist/Actions/Modal/BridgeModalHost.vue.d.ts +14 -0
- package/dist/Actions/Modal/BridgeModalHost.vue_vue_type_script_setup_true_lang.js +35 -0
- package/dist/Actions/Modal/bridgeModal.types.d.ts +44 -0
- package/dist/Actions/Modal/bridgeModalInjectionKey.d.ts +3 -0
- package/dist/Actions/Modal/bridgeModalInjectionKey.js +4 -0
- package/dist/Actions/Modal/createBridgeModalApi.d.ts +2 -0
- package/dist/Actions/Modal/createBridgeModalApi.js +49 -0
- package/dist/Actions/Modal/index.d.ts +3 -0
- package/dist/Actions/Modal/index.js +3 -0
- package/dist/Actions/Modal/useModalAction.d.ts +5 -0
- package/dist/Actions/Modal/useModalAction.js +26 -0
- package/dist/Actions/Snackbar/BridgeSnackbarAction.js +5 -0
- package/dist/Actions/Snackbar/BridgeSnackbarAction.vue.d.ts +8 -0
- package/dist/Actions/Snackbar/BridgeSnackbarAction.vue_vue_type_script_setup_true_lang.js +86 -0
- package/dist/Actions/Snackbar/BridgeSnackbarHost.js +5 -0
- package/dist/Actions/Snackbar/BridgeSnackbarHost.vue.d.ts +16 -0
- package/dist/Actions/Snackbar/BridgeSnackbarHost.vue_vue_type_script_setup_true_lang.js +55 -0
- package/dist/Actions/Snackbar/BridgeSnackbarItem.js +5 -0
- package/dist/Actions/Snackbar/BridgeSnackbarItem.vue.d.ts +4 -0
- package/dist/Actions/Snackbar/BridgeSnackbarItem.vue_vue_type_script_setup_true_lang.js +117 -0
- package/dist/Actions/Snackbar/bridgeSnackbar.types.d.ts +127 -0
- package/dist/Actions/Snackbar/bridgeSnackbarInjectionKey.d.ts +3 -0
- package/dist/Actions/Snackbar/bridgeSnackbarInjectionKey.js +4 -0
- package/dist/Actions/Snackbar/createBridgeSnackbarApi.d.ts +14 -0
- package/dist/Actions/Snackbar/createBridgeSnackbarApi.js +59 -0
- package/dist/Actions/Snackbar/index.d.ts +3 -0
- package/dist/Actions/Snackbar/index.js +3 -0
- package/dist/Actions/Snackbar/useSnackbarAction.d.ts +5 -0
- package/dist/Actions/Snackbar/useSnackbarAction.js +27 -0
- package/dist/Actions/bridgeUIHosts.types.d.ts +17 -0
- package/dist/Actions/index.d.ts +8 -0
- package/dist/Actions/index.js +8 -0
- package/dist/Components/Alert/Alert.js +5 -0
- package/dist/Components/Alert/Alert.vue.d.ts +11 -0
- package/dist/Components/Alert/Alert.vue_vue_type_script_setup_true_lang.js +43 -0
- package/dist/Components/Alert/alert.types.d.ts +134 -0
- package/dist/Components/Alert/alertDefaultIcons.d.ts +4 -0
- package/dist/Components/Alert/alertDefaultIcons.js +13 -0
- package/dist/Components/Alert/composables/useAlert.d.ts +18 -0
- package/dist/Components/Alert/composables/useAlert.js +71 -0
- package/dist/Components/Alert/index.d.ts +3 -0
- package/dist/Components/Alert/index.js +3 -0
- package/dist/Components/Avatar/Avatar.js +5 -0
- package/dist/Components/Avatar/Avatar.vue.d.ts +11 -0
- package/dist/Components/Avatar/Avatar.vue_vue_type_script_setup_true_lang.js +32 -0
- package/dist/Components/Avatar/avatar.types.d.ts +81 -0
- package/dist/Components/Avatar/composables/useAvatar.d.ts +23 -0
- package/dist/Components/Avatar/composables/useAvatar.js +73 -0
- package/dist/Components/Avatar/index.d.ts +3 -0
- package/dist/Components/Avatar/index.js +3 -0
- package/dist/Components/Badge/Badge.js +5 -0
- package/dist/Components/Badge/Badge.vue.d.ts +4 -0
- package/dist/Components/Badge/Badge.vue_vue_type_script_setup_true_lang.js +29 -0
- package/dist/Components/Badge/badge.types.d.ts +64 -0
- package/dist/Components/Badge/composables/useBadge.d.ts +9 -0
- package/dist/Components/Badge/composables/useBadge.js +47 -0
- package/dist/Components/Badge/index.d.ts +3 -0
- package/dist/Components/Badge/index.js +3 -0
- package/dist/Components/Button/Button.js +5 -0
- package/dist/Components/Button/Button.vue.d.ts +11 -0
- package/dist/Components/Button/Button.vue_vue_type_script_setup_true_lang.js +74 -0
- package/dist/Components/Button/button.types.d.ts +181 -0
- package/dist/Components/Button/composables/useButton.d.ts +22 -0
- package/dist/Components/Button/composables/useButton.js +91 -0
- package/dist/Components/Button/index.d.ts +3 -0
- package/dist/Components/Button/index.js +3 -0
- package/dist/Components/Card/Card.js +5 -0
- package/dist/Components/Card/Card.vue.d.ts +11 -0
- package/dist/Components/Card/Card.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/Components/Card/card.types.d.ts +124 -0
- package/dist/Components/Card/composables/useCard.d.ts +18 -0
- package/dist/Components/Card/composables/useCard.js +80 -0
- package/dist/Components/Card/index.d.ts +3 -0
- package/dist/Components/Card/index.js +3 -0
- package/dist/Components/Checkbox/Checkbox.js +5 -0
- package/dist/Components/Checkbox/Checkbox.vue.d.ts +20 -0
- package/dist/Components/Checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js +70 -0
- package/dist/Components/Checkbox/checkbox.types.d.ts +98 -0
- package/dist/Components/Checkbox/composables/useCheckbox.d.ts +279 -0
- package/dist/Components/Checkbox/composables/useCheckbox.js +76 -0
- package/dist/Components/Checkbox/index.d.ts +3 -0
- package/dist/Components/Checkbox/index.js +3 -0
- package/dist/Components/FormControl/FormControl.js +5 -0
- package/dist/Components/FormControl/FormControl.vue.d.ts +17 -0
- package/dist/Components/FormControl/FormControl.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/Components/FormControl/composables/useFormControl.d.ts +45 -0
- package/dist/Components/FormControl/composables/useFormControl.js +110 -0
- package/dist/Components/FormControl/formControl.types.d.ts +198 -0
- package/dist/Components/FormControl/index.d.ts +4 -0
- package/dist/Components/FormControl/index.js +3 -0
- package/dist/Components/FormField/FilledFormField.js +5 -0
- package/dist/Components/FormField/FilledFormField.vue.d.ts +17 -0
- package/dist/Components/FormField/FilledFormField.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/Components/FormField/FormField.js +5 -0
- package/dist/Components/FormField/FormField.vue.d.ts +15 -0
- package/dist/Components/FormField/FormField.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/Components/FormField/NotchedFormField.js +5 -0
- package/dist/Components/FormField/NotchedFormField.vue.d.ts +17 -0
- package/dist/Components/FormField/NotchedFormField.vue_vue_type_script_setup_true_lang.js +38 -0
- package/dist/Components/FormField/OutlinedFormField.js +5 -0
- package/dist/Components/FormField/OutlinedFormField.vue.d.ts +17 -0
- package/dist/Components/FormField/OutlinedFormField.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/Components/FormField/StackedFormField.js +5 -0
- package/dist/Components/FormField/StackedFormField.vue.d.ts +17 -0
- package/dist/Components/FormField/StackedFormField.vue_vue_type_script_setup_true_lang.js +42 -0
- package/dist/Components/FormField/UnderlinedFormField.js +5 -0
- package/dist/Components/FormField/UnderlinedFormField.vue.d.ts +17 -0
- package/dist/Components/FormField/UnderlinedFormField.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/Components/FormField/composables/useFormField.d.ts +474 -0
- package/dist/Components/FormField/composables/useFormField.js +219 -0
- package/dist/Components/FormField/formField.types.d.ts +294 -0
- package/dist/Components/FormField/index.d.ts +4 -0
- package/dist/Components/FormField/index.js +3 -0
- package/dist/Components/Icon/Icon.js +5 -0
- package/dist/Components/Icon/Icon.vue.d.ts +4 -0
- package/dist/Components/Icon/Icon.vue_vue_type_script_setup_true_lang.js +17 -0
- package/dist/Components/Icon/composables/useIcon.d.ts +9 -0
- package/dist/Components/Icon/composables/useIcon.js +26 -0
- package/dist/Components/Icon/icon.types.d.ts +17 -0
- package/dist/Components/Icon/index.d.ts +3 -0
- package/dist/Components/Icon/index.js +3 -0
- package/dist/Components/Label/Label.js +5 -0
- package/dist/Components/Label/Label.vue.d.ts +4 -0
- package/dist/Components/Label/Label.vue_vue_type_script_setup_true_lang.js +21 -0
- package/dist/Components/Label/composables/useLabel.d.ts +10 -0
- package/dist/Components/Label/composables/useLabel.js +44 -0
- package/dist/Components/Label/index.d.ts +3 -0
- package/dist/Components/Label/index.js +3 -0
- package/dist/Components/Label/label.types.d.ts +52 -0
- package/dist/Components/Link/Link.js +5 -0
- package/dist/Components/Link/Link.vue.d.ts +11 -0
- package/dist/Components/Link/Link.vue_vue_type_script_setup_true_lang.js +52 -0
- package/dist/Components/Link/composables/useLink.d.ts +18 -0
- package/dist/Components/Link/composables/useLink.js +66 -0
- package/dist/Components/Link/index.d.ts +3 -0
- package/dist/Components/Link/index.js +3 -0
- package/dist/Components/Link/link.types.d.ts +113 -0
- package/dist/Components/List/List.js +5 -0
- package/dist/Components/List/List.vue.d.ts +9 -0
- package/dist/Components/List/List.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/Components/List/composables/useList.d.ts +11 -0
- package/dist/Components/List/composables/useList.js +44 -0
- package/dist/Components/List/index.d.ts +5 -0
- package/dist/Components/List/index.js +4 -0
- package/dist/Components/List/list.types.d.ts +57 -0
- package/dist/Components/List/listInjectionKey.d.ts +5 -0
- package/dist/Components/List/listInjectionKey.js +4 -0
- package/dist/Components/ListItem/ListItem.js +5 -0
- package/dist/Components/ListItem/ListItem.vue.d.ts +19 -0
- package/dist/Components/ListItem/ListItem.vue_vue_type_script_setup_true_lang.js +57 -0
- package/dist/Components/ListItem/composables/useListItem.d.ts +40 -0
- package/dist/Components/ListItem/composables/useListItem.js +104 -0
- package/dist/Components/ListItem/index.d.ts +3 -0
- package/dist/Components/ListItem/index.js +3 -0
- package/dist/Components/ListItem/listItem.types.d.ts +164 -0
- package/dist/Components/ListSection/ListSection.js +5 -0
- package/dist/Components/ListSection/ListSection.vue.d.ts +15 -0
- package/dist/Components/ListSection/ListSection.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/Components/ListSection/composables/useListSection.d.ts +13 -0
- package/dist/Components/ListSection/composables/useListSection.js +51 -0
- package/dist/Components/ListSection/index.d.ts +3 -0
- package/dist/Components/ListSection/index.js +3 -0
- package/dist/Components/ListSection/listSection.types.d.ts +71 -0
- package/dist/Components/Listbox/Listbox.js +5 -0
- package/dist/Components/Listbox/Listbox.vue.d.ts +34 -0
- package/dist/Components/Listbox/Listbox.vue_vue_type_script_setup_true_lang.js +157 -0
- package/dist/Components/Listbox/composables/useListbox.d.ts +13 -0
- package/dist/Components/Listbox/composables/useListbox.js +47 -0
- package/dist/Components/Listbox/composables/useListboxNavigation.d.ts +16 -0
- package/dist/Components/Listbox/composables/useListboxNavigation.js +62 -0
- package/dist/Components/Listbox/index.d.ts +4 -0
- package/dist/Components/Listbox/index.js +4 -0
- package/dist/Components/Listbox/listbox.types.d.ts +170 -0
- package/dist/Components/Menu/Menu.js +5 -0
- package/dist/Components/Menu/Menu.vue.d.ts +36 -0
- package/dist/Components/Menu/Menu.vue_vue_type_script_setup_true_lang.js +80 -0
- package/dist/Components/Menu/composables/useMenu.d.ts +54 -0
- package/dist/Components/Menu/composables/useMenu.js +217 -0
- package/dist/Components/Menu/index.d.ts +4 -0
- package/dist/Components/Menu/index.js +3 -0
- package/dist/Components/Menu/menu.types.d.ts +172 -0
- package/dist/Components/Modal/Modal.js +5 -0
- package/dist/Components/Modal/Modal.vue.d.ts +38 -0
- package/dist/Components/Modal/Modal.vue_vue_type_script_setup_true_lang.js +94 -0
- package/dist/Components/Modal/composables/useModal.d.ts +61 -0
- package/dist/Components/Modal/composables/useModal.js +191 -0
- package/dist/Components/Modal/index.d.ts +4 -0
- package/dist/Components/Modal/index.js +3 -0
- package/dist/Components/Modal/modal.types.d.ts +177 -0
- package/dist/Components/NumberField/NumberField.js +5 -0
- package/dist/Components/NumberField/NumberField.vue.d.ts +24 -0
- package/dist/Components/NumberField/NumberField.vue_vue_type_script_setup_true_lang.js +83 -0
- package/dist/Components/NumberField/composables/useNumberField.d.ts +696 -0
- package/dist/Components/NumberField/composables/useNumberField.js +64 -0
- package/dist/Components/NumberField/index.d.ts +4 -0
- package/dist/Components/NumberField/index.js +3 -0
- package/dist/Components/NumberField/numberField.types.d.ts +52 -0
- package/dist/Components/PasswordField/PasswordField.js +5 -0
- package/dist/Components/PasswordField/PasswordField.vue.d.ts +24 -0
- package/dist/Components/PasswordField/PasswordField.vue_vue_type_script_setup_true_lang.js +67 -0
- package/dist/Components/PasswordField/composables/usePasswordField.d.ts +691 -0
- package/dist/Components/PasswordField/composables/usePasswordField.js +40 -0
- package/dist/Components/PasswordField/index.d.ts +4 -0
- package/dist/Components/PasswordField/index.js +3 -0
- package/dist/Components/PasswordField/passwordField.types.d.ts +34 -0
- package/dist/Components/Radio/Radio.js +5 -0
- package/dist/Components/Radio/Radio.vue.d.ts +20 -0
- package/dist/Components/Radio/Radio.vue_vue_type_script_setup_true_lang.js +57 -0
- package/dist/Components/Radio/composables/useRadio.d.ts +278 -0
- package/dist/Components/Radio/composables/useRadio.js +78 -0
- package/dist/Components/Radio/index.d.ts +3 -0
- package/dist/Components/Radio/index.js +3 -0
- package/dist/Components/Radio/radio.types.d.ts +104 -0
- package/dist/Components/Select/Select.js +5 -0
- package/dist/Components/Select/Select.vue.d.ts +40 -0
- package/dist/Components/Select/Select.vue_vue_type_script_setup_true_lang.js +191 -0
- package/dist/Components/Select/SelectOption.js +5 -0
- package/dist/Components/Select/SelectOption.vue.d.ts +4 -0
- package/dist/Components/Select/SelectOption.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/Components/Select/composables/useSelect.d.ts +733 -0
- package/dist/Components/Select/composables/useSelect.js +305 -0
- package/dist/Components/Select/index.d.ts +4 -0
- package/dist/Components/Select/index.js +4 -0
- package/dist/Components/Select/select.types.d.ts +231 -0
- package/dist/Components/Select/selectInjectionKey.d.ts +7 -0
- package/dist/Components/Select/selectInjectionKey.js +4 -0
- package/dist/Components/Snackbar/Snackbar.js +5 -0
- package/dist/Components/Snackbar/Snackbar.vue.d.ts +32 -0
- package/dist/Components/Snackbar/Snackbar.vue_vue_type_script_setup_true_lang.js +156 -0
- package/dist/Components/Snackbar/composables/useSnackbar.d.ts +248 -0
- package/dist/Components/Snackbar/composables/useSnackbar.js +210 -0
- package/dist/Components/Snackbar/index.d.ts +4 -0
- package/dist/Components/Snackbar/index.js +3 -0
- package/dist/Components/Snackbar/snackbar.types.d.ts +214 -0
- package/dist/Components/Snackbar/snackbarDefaultIcons.d.ts +4 -0
- package/dist/Components/Snackbar/snackbarDefaultIcons.js +13 -0
- package/dist/Components/Switch/Switch.js +5 -0
- package/dist/Components/Switch/Switch.vue.d.ts +20 -0
- package/dist/Components/Switch/Switch.vue_vue_type_script_setup_true_lang.js +61 -0
- package/dist/Components/Switch/composables/useSwitch.d.ts +278 -0
- package/dist/Components/Switch/composables/useSwitch.js +73 -0
- package/dist/Components/Switch/index.d.ts +3 -0
- package/dist/Components/Switch/index.js +3 -0
- package/dist/Components/Switch/switch.types.d.ts +92 -0
- package/dist/Components/TextField/TextField.js +5 -0
- package/dist/Components/TextField/TextField.vue.d.ts +22 -0
- package/dist/Components/TextField/TextField.vue_vue_type_script_setup_true_lang.js +49 -0
- package/dist/Components/TextField/composables/useTextField.d.ts +680 -0
- package/dist/Components/TextField/composables/useTextField.js +21 -0
- package/dist/Components/TextField/index.d.ts +3 -0
- package/dist/Components/TextField/index.js +3 -0
- package/dist/Components/TextField/textField.types.d.ts +15 -0
- package/dist/Components/Textarea/Textarea.js +5 -0
- package/dist/Components/Textarea/Textarea.vue.d.ts +22 -0
- package/dist/Components/Textarea/Textarea.vue_vue_type_script_setup_true_lang.js +57 -0
- package/dist/Components/Textarea/composables/useTextarea.d.ts +685 -0
- package/dist/Components/Textarea/composables/useTextarea.js +72 -0
- package/dist/Components/Textarea/index.d.ts +3 -0
- package/dist/Components/Textarea/index.js +3 -0
- package/dist/Components/Textarea/textarea.types.d.ts +34 -0
- package/dist/Provider/BridgeUIProvider.js +5 -0
- package/dist/Provider/BridgeUIProvider.vue.d.ts +18 -0
- package/dist/Provider/BridgeUIProvider.vue_vue_type_script_setup_true_lang.js +20 -0
- package/dist/Provider/bridgeUITypes.d.ts +8 -0
- package/dist/Provider/createBridgeUI.d.ts +3 -0
- package/dist/Provider/createBridgeUI.js +15 -0
- package/dist/Provider/createBridgeUIApi.d.ts +7 -0
- package/dist/Provider/createBridgeUIApi.js +36 -0
- package/dist/Provider/index.d.ts +5 -0
- package/dist/Provider/index.js +4 -0
- package/dist/Provider/injectionKey.d.ts +3 -0
- package/dist/Provider/injectionKey.js +4 -0
- package/dist/Provider/useBridgeUI.d.ts +2 -0
- package/dist/Provider/useBridgeUI.js +8 -0
- package/dist/Utils/index.d.ts +47 -0
- package/dist/Utils/index.js +55 -0
- package/dist/Utils/slotOrProp.d.ts +28 -0
- package/dist/Utils/slotOrProp.js +23 -0
- package/dist/Utils/useHoldRepeat.d.ts +13 -0
- package/dist/Utils/useHoldRepeat.js +38 -0
- package/dist/augments.d.ts +113 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.js +53 -0
- package/dist/theme.css +205 -0
- package/package.json +90 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { mergePartBind as e, resolveVnodeRefElement as t, useBridgeUIComponent as ee, useBridgeUIMergedRegistryClasses as te } from "../../../Utils/index.js";
|
|
2
|
+
import { computed as n, nextTick as r, onBeforeUnmount as ne, ref as i, toValue as re, useAttrs as a, watch as o } from "vue";
|
|
3
|
+
import { get as s } from "es-toolkit/compat";
|
|
4
|
+
import { LAYER_STACK_BASE_Z_INDEX as c, acquireLayerStackOrder as ie, cn as l, countModalTransitionLayers as u, createFocusTrap as d, getLayerStackEntry as f, getModalOverlayTransitionClass as p, getModalPanelTransitionClass as m, hasModalTransition as h, mergeBridgeUILayeredClasses as g, pushLayerStack as ae, resolveEffectiveModalTransition as _, splitComponentProps as oe, subscribeLayerStack as se } from "@bridge-ui/core";
|
|
5
|
+
import { isModalBackdropClick as ce } from "@bridge-ui/core/Utils";
|
|
6
|
+
import { alignProps as v, blurProps as y, sizeProps as b } from "@bridge-ui/core/Components/Modal";
|
|
7
|
+
//#region src/Components/Modal/composables/useModal.ts
|
|
8
|
+
var le = [
|
|
9
|
+
"blur",
|
|
10
|
+
"size",
|
|
11
|
+
"align",
|
|
12
|
+
"scroll",
|
|
13
|
+
"classes",
|
|
14
|
+
"stackId",
|
|
15
|
+
"autoFocus",
|
|
16
|
+
"persistent",
|
|
17
|
+
"teleportTo",
|
|
18
|
+
"transition",
|
|
19
|
+
"customProps",
|
|
20
|
+
"keepMounted",
|
|
21
|
+
"hideBackdrop",
|
|
22
|
+
"closeOnEscape",
|
|
23
|
+
"closeOnOverlay",
|
|
24
|
+
"disableScrollLock",
|
|
25
|
+
"disableEnforceFocus",
|
|
26
|
+
"disableRestoreFocus"
|
|
27
|
+
];
|
|
28
|
+
function x(x, ue, S = {}) {
|
|
29
|
+
let de = a(), C = i(!1), w = i(!1), T = i(""), E = i(null), D = 0, O = null, k = null, A = null, j = null, M = i(c), N = i("closed"), P = n(() => re(S.show ?? !1));
|
|
30
|
+
function F(e) {
|
|
31
|
+
e || S.onClose?.(), S.show && (S.show.value = e), S.onShowChange?.(e);
|
|
32
|
+
}
|
|
33
|
+
let I = n(() => oe({
|
|
34
|
+
bridgeKeys: le,
|
|
35
|
+
props: {
|
|
36
|
+
...de,
|
|
37
|
+
...x
|
|
38
|
+
}
|
|
39
|
+
})), { merged: L, entry: R } = ee({
|
|
40
|
+
libDefaults: ue,
|
|
41
|
+
componentName: "Modal",
|
|
42
|
+
props: () => I.value.componentProps
|
|
43
|
+
}), z = n(() => L.value.customProps), B = te({
|
|
44
|
+
entry: R,
|
|
45
|
+
props: () => I.value.componentProps
|
|
46
|
+
}), V = n(() => _(L.value.transition ?? "none")), H = n(() => h(V.value)), U = n(() => L.value.scroll ?? "body"), W = n(() => L.value.keepMounted && !w.value), fe = n(() => s(g(v, R.value?.customProps?.align), L.value.align)), pe = n(() => s(g(y, R.value?.customProps?.blur), L.value.blur)), me = n(() => s(g(b, R.value?.customProps?.size), L.value.size)), he = n(() => p(V.value)), ge = n(() => m(V.value)), G = n(() => !L.value.persistent), _e = n(() => I.value.inheritedAttrs), ve = n(() => e(z.value?.root, _e.value, {
|
|
47
|
+
onTransitionend: we,
|
|
48
|
+
style: { zIndex: M.value },
|
|
49
|
+
"aria-hidden": W.value ? !0 : void 0,
|
|
50
|
+
class: l({
|
|
51
|
+
"fixed inset-0": !0,
|
|
52
|
+
"overflow-y-auto": U.value === "body",
|
|
53
|
+
"overflow-hidden": U.value === "paper",
|
|
54
|
+
"invisible pointer-events-none": W.value,
|
|
55
|
+
[s(B.value, "root") ?? ""]: !0
|
|
56
|
+
})
|
|
57
|
+
})), ye = n(() => e(z.value?.overlay, { onClick: Z }, {
|
|
58
|
+
"data-modal-part": "overlay",
|
|
59
|
+
"data-state": N.value,
|
|
60
|
+
class: l({
|
|
61
|
+
"fixed inset-0 bg-black/50": !0,
|
|
62
|
+
[pe.value ?? ""]: !0,
|
|
63
|
+
[he.value]: H.value,
|
|
64
|
+
[s(B.value, "overlay") ?? ""]: !0
|
|
65
|
+
})
|
|
66
|
+
})), be = n(() => e(z.value?.wrapper, { onClick: Q }, l({
|
|
67
|
+
"flex min-h-full w-full transform p-4": !0,
|
|
68
|
+
"items-end justify-center": !0,
|
|
69
|
+
[fe.value ?? ""]: !0,
|
|
70
|
+
[s(B.value, "wrapper") ?? ""]: !0
|
|
71
|
+
}))), xe = n(() => e(z.value?.panel, {
|
|
72
|
+
role: "dialog",
|
|
73
|
+
"aria-modal": !0
|
|
74
|
+
}, {
|
|
75
|
+
"data-modal-part": "panel",
|
|
76
|
+
"data-state": N.value,
|
|
77
|
+
class: l({
|
|
78
|
+
"relative w-full": !0,
|
|
79
|
+
[me.value ?? ""]: !0,
|
|
80
|
+
"max-h-[calc(100dvh-2rem)] overflow-y-auto": U.value === "paper",
|
|
81
|
+
[ge.value]: H.value,
|
|
82
|
+
[s(B.value, "panel") ?? ""]: !0
|
|
83
|
+
})
|
|
84
|
+
}));
|
|
85
|
+
function K() {
|
|
86
|
+
k?.release(), k = null;
|
|
87
|
+
}
|
|
88
|
+
function q() {
|
|
89
|
+
if (!w.value || N.value !== "open" || !E.value) {
|
|
90
|
+
K();
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
K(), k = d({
|
|
94
|
+
container: E.value,
|
|
95
|
+
disableAutoFocus: !L.value.autoFocus,
|
|
96
|
+
disableEnforceFocus: L.value.disableEnforceFocus,
|
|
97
|
+
disableRestoreFocus: L.value.disableRestoreFocus
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
function Se(e) {
|
|
101
|
+
E.value = t(e), q();
|
|
102
|
+
}
|
|
103
|
+
function J() {
|
|
104
|
+
D = 0, w.value = !1, K(), P.value ? F(!1) : S.onShowChange?.(!1), N.value = "closed", L.value.keepMounted || (C.value = !1);
|
|
105
|
+
}
|
|
106
|
+
function Y() {
|
|
107
|
+
if (A?.releaseScrollLock(), !H.value) {
|
|
108
|
+
J();
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
N.value = "closed", D = u(V.value, { hideBackdrop: L.value.hideBackdrop }), D === 0 && J();
|
|
112
|
+
}
|
|
113
|
+
function Ce() {
|
|
114
|
+
if (!H.value) {
|
|
115
|
+
N.value = "open";
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
N.value = "closed", r(() => {
|
|
119
|
+
requestAnimationFrame(() => {
|
|
120
|
+
N.value = "open";
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
function we(e) {
|
|
125
|
+
if (!C.value || N.value !== "closed") return;
|
|
126
|
+
let t = e.target;
|
|
127
|
+
t?.dataset.modalPart !== "overlay" && t?.dataset.modalPart !== "panel" || e.propertyName === "none" || e.elapsedTime === 0 || (--D, D <= 0 && J());
|
|
128
|
+
}
|
|
129
|
+
function X() {
|
|
130
|
+
if (G.value) {
|
|
131
|
+
if (!H.value) {
|
|
132
|
+
F(!1);
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
C.value && Y();
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
function Z() {
|
|
139
|
+
L.value.closeOnOverlay === !1 || !G.value || X();
|
|
140
|
+
}
|
|
141
|
+
function Q(e) {
|
|
142
|
+
ce(e) && Z();
|
|
143
|
+
}
|
|
144
|
+
function Te() {
|
|
145
|
+
!P.value || L.value.closeOnEscape === !1 || !G.value || X();
|
|
146
|
+
}
|
|
147
|
+
o(P, (e) => {
|
|
148
|
+
if (e) {
|
|
149
|
+
C.value = !0, w.value = !0, Ce();
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
C.value && Y();
|
|
153
|
+
}, { immediate: !0 }), o([
|
|
154
|
+
w,
|
|
155
|
+
N,
|
|
156
|
+
() => L.value.autoFocus,
|
|
157
|
+
() => L.value.disableEnforceFocus,
|
|
158
|
+
() => L.value.disableRestoreFocus
|
|
159
|
+
], () => {
|
|
160
|
+
r(() => {
|
|
161
|
+
q();
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
function $() {
|
|
165
|
+
let e = f(T.value);
|
|
166
|
+
e && (M.value = e.zIndex);
|
|
167
|
+
}
|
|
168
|
+
return o(w, (e) => {
|
|
169
|
+
e ? (O = ie(), A = ae({
|
|
170
|
+
order: O,
|
|
171
|
+
id: S.stackId,
|
|
172
|
+
onEscape: Te,
|
|
173
|
+
lockScroll: L.value.disableScrollLock !== !0
|
|
174
|
+
}), T.value = A.id, M.value = A.zIndex, $(), j = se($)) : (j?.(), j = null, A?.release(), A = null, O = null, T.value = "", M.value = c);
|
|
175
|
+
}, { immediate: !0 }), ne(() => {
|
|
176
|
+
j?.(), j = null, K(), A?.release(), A = null;
|
|
177
|
+
}), {
|
|
178
|
+
merged: L,
|
|
179
|
+
mounted: C,
|
|
180
|
+
rootBind: ve,
|
|
181
|
+
panelBind: xe,
|
|
182
|
+
overlayBind: ye,
|
|
183
|
+
wrapperBind: be,
|
|
184
|
+
setPanelRef: Se,
|
|
185
|
+
layerStackId: T,
|
|
186
|
+
handleOverlayClick: Z,
|
|
187
|
+
handleWrapperClick: Q
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
//#endregion
|
|
191
|
+
export { x as useModal };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { useModal } from './composables/useModal';
|
|
2
|
+
export type { ModalOptions } from './composables/useModal';
|
|
3
|
+
export type { ModalAlignOverrides, ModalBlurOverrides, ModalClasses, ModalCustomProps, ModalEmits, ModalOwnProps, ModalProps, ModalSizeOverrides, ModalSlots, } from './modal.types';
|
|
4
|
+
export { default as Modal } from './Modal.vue';
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { HTMLAttributes, Slot } from 'vue';
|
|
2
|
+
import { MergeHtmlProps, MergeProps, ModalAlign, ModalBlur, ModalScroll, ModalSize, ModalTransition } from '@bridge-ui/core';
|
|
3
|
+
export interface ModalBlurOverrides {}
|
|
4
|
+
export interface ModalSizeOverrides {}
|
|
5
|
+
export interface ModalAlignOverrides {}
|
|
6
|
+
export interface ModalScrollOverrides {}
|
|
7
|
+
export interface ModalTransitionOverrides {}
|
|
8
|
+
export interface ModalClasses {
|
|
9
|
+
/**
|
|
10
|
+
* The classes to apply to the overlay.
|
|
11
|
+
*/
|
|
12
|
+
overlay?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The classes to apply to the dialog panel.
|
|
15
|
+
*/
|
|
16
|
+
panel?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The classes to apply to the root portal container.
|
|
19
|
+
*/
|
|
20
|
+
root?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The classes to apply to the centering wrapper.
|
|
23
|
+
*/
|
|
24
|
+
wrapper?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ModalCustomProps {
|
|
27
|
+
/**
|
|
28
|
+
* Props forwarded to the overlay.
|
|
29
|
+
*/
|
|
30
|
+
overlay?: HTMLAttributes;
|
|
31
|
+
/**
|
|
32
|
+
* Props forwarded to the dialog panel.
|
|
33
|
+
*/
|
|
34
|
+
panel?: HTMLAttributes;
|
|
35
|
+
/**
|
|
36
|
+
* Props forwarded to the root portal container.
|
|
37
|
+
*/
|
|
38
|
+
root?: HTMLAttributes;
|
|
39
|
+
/**
|
|
40
|
+
* Props forwarded to the centering wrapper.
|
|
41
|
+
*/
|
|
42
|
+
wrapper?: HTMLAttributes;
|
|
43
|
+
}
|
|
44
|
+
export interface ModalEmits {
|
|
45
|
+
/**
|
|
46
|
+
* Emitted when the user dismisses the modal (overlay or Escape).
|
|
47
|
+
* Not emitted when the parent sets `v-model` to `false` directly.
|
|
48
|
+
*/
|
|
49
|
+
close: [];
|
|
50
|
+
/**
|
|
51
|
+
* Emitted when `show` should change (controlled state).
|
|
52
|
+
* Listen with `@show-change` / `v-on:show-change`.
|
|
53
|
+
*/
|
|
54
|
+
"show-change": [show: boolean];
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Modal shell (overlay, portal, backdrop). Put `Card` or any content in the default slot.
|
|
58
|
+
* Visibility is controlled with `v-model` (not listed here — `defineModel` handles it).
|
|
59
|
+
*/
|
|
60
|
+
export interface ModalOwnProps {
|
|
61
|
+
/**
|
|
62
|
+
* Panel position from the `sm` breakpoint up (`{row}-{column}` grid).
|
|
63
|
+
* Mobile always uses bottom sheet (`bottom-center`).
|
|
64
|
+
*
|
|
65
|
+
* @default "middle-center"
|
|
66
|
+
*/
|
|
67
|
+
align?: MergeProps<ModalAlign, ModalAlignOverrides>;
|
|
68
|
+
/**
|
|
69
|
+
* When true, focuses the first focusable element inside the dialog on open.
|
|
70
|
+
*
|
|
71
|
+
* @default false
|
|
72
|
+
*/
|
|
73
|
+
autoFocus?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Backdrop blur on the overlay.
|
|
76
|
+
*
|
|
77
|
+
* @default "none"
|
|
78
|
+
*/
|
|
79
|
+
blur?: MergeProps<ModalBlur, ModalBlurOverrides>;
|
|
80
|
+
/**
|
|
81
|
+
* The classes to apply to the modal.
|
|
82
|
+
*
|
|
83
|
+
* @default undefined
|
|
84
|
+
*/
|
|
85
|
+
classes?: ModalClasses;
|
|
86
|
+
/**
|
|
87
|
+
* Whether the modal closes on escape key press.
|
|
88
|
+
*
|
|
89
|
+
* @default true
|
|
90
|
+
*/
|
|
91
|
+
closeOnEscape?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Whether the modal closes on overlay click.
|
|
94
|
+
*
|
|
95
|
+
* @default true
|
|
96
|
+
*/
|
|
97
|
+
closeOnOverlay?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Props forwarded to each modal part.
|
|
100
|
+
*
|
|
101
|
+
* @default undefined
|
|
102
|
+
*/
|
|
103
|
+
customProps?: ModalCustomProps;
|
|
104
|
+
/**
|
|
105
|
+
* When true, focus is not trapped inside the modal while open.
|
|
106
|
+
*
|
|
107
|
+
* @default false
|
|
108
|
+
*/
|
|
109
|
+
disableEnforceFocus?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* When true, focus is not restored to the previously focused element on close.
|
|
112
|
+
*
|
|
113
|
+
* @default false
|
|
114
|
+
*/
|
|
115
|
+
disableRestoreFocus?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* When true, body scroll is not locked while the modal is open.
|
|
118
|
+
*
|
|
119
|
+
* @default false
|
|
120
|
+
*/
|
|
121
|
+
disableScrollLock?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* When true, the backdrop overlay is not rendered.
|
|
124
|
+
*
|
|
125
|
+
* @default false
|
|
126
|
+
*/
|
|
127
|
+
hideBackdrop?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* When true, the modal stays mounted in the DOM after closing (hidden).
|
|
130
|
+
*
|
|
131
|
+
* @default false
|
|
132
|
+
*/
|
|
133
|
+
keepMounted?: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* When true, escape and overlay clicks do not close the modal.
|
|
136
|
+
*
|
|
137
|
+
* @default false
|
|
138
|
+
*/
|
|
139
|
+
persistent?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Where scroll happens: the page (`body`) or the dialog panel (`paper`).
|
|
142
|
+
*
|
|
143
|
+
* @default "body"
|
|
144
|
+
*/
|
|
145
|
+
scroll?: MergeProps<ModalScroll, ModalScrollOverrides>;
|
|
146
|
+
/**
|
|
147
|
+
* Max width of the dialog from the `sm` breakpoint up (`sm:max-w-*`).
|
|
148
|
+
*
|
|
149
|
+
* @default "md"
|
|
150
|
+
*/
|
|
151
|
+
size?: MergeProps<ModalSize, ModalSizeOverrides>;
|
|
152
|
+
/**
|
|
153
|
+
* Stack id assigned when the modal opens. Set by BridgeModalHost; do not set in app code.
|
|
154
|
+
*
|
|
155
|
+
* @internal
|
|
156
|
+
*/
|
|
157
|
+
stackId?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Where to teleport the modal. Pass `false` to render in place.
|
|
160
|
+
*
|
|
161
|
+
* @default "body"
|
|
162
|
+
*/
|
|
163
|
+
teleportTo?: false | string;
|
|
164
|
+
/**
|
|
165
|
+
* Enter/leave animation for overlay and panel.
|
|
166
|
+
*
|
|
167
|
+
* @default "fade"
|
|
168
|
+
*/
|
|
169
|
+
transition?: MergeProps<ModalTransition, ModalTransitionOverrides>;
|
|
170
|
+
}
|
|
171
|
+
export interface ModalSlots {
|
|
172
|
+
/**
|
|
173
|
+
* Modal content (e.g. a `Card` component).
|
|
174
|
+
*/
|
|
175
|
+
default?: Slot<undefined>;
|
|
176
|
+
}
|
|
177
|
+
export type ModalProps = MergeHtmlProps<ModalOwnProps, HTMLAttributes>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { NumberFieldOwnProps, NumberFieldSlots } from './numberField.types';
|
|
2
|
+
type __VLS_Slots = NumberFieldSlots;
|
|
3
|
+
type __VLS_Props = NumberFieldOwnProps;
|
|
4
|
+
type __VLS_ModelProps = {
|
|
5
|
+
modelValue?: null | number | undefined;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (...args: unknown[]) => any;
|
|
10
|
+
change: (value: number) => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
|
+
"onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
|
|
13
|
+
onChange?: ((value: number) => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
step: number;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { useHoldRepeat as e } from "../../Utils/useHoldRepeat.js";
|
|
2
|
+
import { resolveFieldAdornmentIconSize as t } from "../../Utils/index.js";
|
|
3
|
+
import n from "../Icon/Icon.js";
|
|
4
|
+
import r from "../FormField/FormField.js";
|
|
5
|
+
import { useNumberField as i } from "./composables/useNumberField.js";
|
|
6
|
+
import { computed as a, createBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, isRef as u, mergeModels as d, mergeProps as f, normalizeClass as p, openBlock as m, unref as h, useModel as g, vModelDynamic as _, withCtx as v, withDirectives as y } from "vue";
|
|
7
|
+
import { cn as b } from "@bridge-ui/core";
|
|
8
|
+
import { ChevronDown as x, ChevronUp as S } from "lucide-vue-next";
|
|
9
|
+
//#region src/Components/NumberField/NumberField.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var C = { class: "bridge-end-adornment flex h-full min-w-9 flex-col gap-px overflow-hidden" }, w = ["disabled"], T = ["disabled"], E = /* @__PURE__ */ l({
|
|
11
|
+
inheritAttrs: !1,
|
|
12
|
+
__name: "NumberField",
|
|
13
|
+
props: /* @__PURE__ */ d({
|
|
14
|
+
classes: {},
|
|
15
|
+
max: {},
|
|
16
|
+
min: {},
|
|
17
|
+
step: { default: 1 },
|
|
18
|
+
color: {},
|
|
19
|
+
controlId: {},
|
|
20
|
+
corner: {},
|
|
21
|
+
customProps: {},
|
|
22
|
+
description: {},
|
|
23
|
+
disabled: { type: Boolean },
|
|
24
|
+
end: {},
|
|
25
|
+
error: { type: Boolean },
|
|
26
|
+
errorIcon: {},
|
|
27
|
+
errorMessage: {},
|
|
28
|
+
label: {},
|
|
29
|
+
readonly: { type: Boolean },
|
|
30
|
+
required: { type: Boolean },
|
|
31
|
+
rounded: {},
|
|
32
|
+
size: {},
|
|
33
|
+
slots: {},
|
|
34
|
+
start: {},
|
|
35
|
+
variant: {},
|
|
36
|
+
withErrorIcon: { type: Boolean },
|
|
37
|
+
withoutErrorMessage: { type: Boolean }
|
|
38
|
+
}, {
|
|
39
|
+
modelValue: {},
|
|
40
|
+
modelModifiers: {}
|
|
41
|
+
}),
|
|
42
|
+
emits: /* @__PURE__ */ d(["change", "update:modelValue"], ["update:modelValue"]),
|
|
43
|
+
setup(l, { emit: d }) {
|
|
44
|
+
let E = d, D = g(l, "modelValue"), O = l, { decrement: k, formField: A, increment: j, inputBind: M, stringModel: N, mergedClasses: P } = i(O, D, { onChange: (e) => E("change", e) }), F = e(() => j(), () => ({ disabled: O.disabled })), I = e(() => k(), () => ({ disabled: O.disabled })), L = a(() => t(O.size));
|
|
45
|
+
return (e, t) => (m(), o(h(r), { field: h(A) }, {
|
|
46
|
+
end: v(() => [s("div", C, [s("button", {
|
|
47
|
+
type: "button",
|
|
48
|
+
disabled: O.disabled,
|
|
49
|
+
"aria-label": "Increment value",
|
|
50
|
+
onClick: t[1] ||= (...e) => h(F).onPressClick && h(F).onPressClick(...e),
|
|
51
|
+
onPointerup: t[2] ||= (...e) => h(F).onPressPointerUp && h(F).onPressPointerUp(...e),
|
|
52
|
+
onPointerdown: t[3] ||= (...e) => h(F).onPressPointerDown && h(F).onPressPointerDown(...e),
|
|
53
|
+
onLostpointercapture: t[4] ||= (...e) => h(F).onPressLostPointerCapture && h(F).onPressLostPointerCapture(...e),
|
|
54
|
+
class: p(h(b)({
|
|
55
|
+
"bridge-field-adornment-button inline-flex min-h-0 min-w-8 flex-1 items-center justify-center": !0,
|
|
56
|
+
[h(P).increment ?? ""]: !0
|
|
57
|
+
}))
|
|
58
|
+
}, [c(h(n), {
|
|
59
|
+
icon: h(S),
|
|
60
|
+
size: L.value
|
|
61
|
+
}, null, 8, ["icon", "size"])], 42, w), s("button", {
|
|
62
|
+
type: "button",
|
|
63
|
+
disabled: O.disabled,
|
|
64
|
+
"aria-label": "Decrement value",
|
|
65
|
+
onClick: t[5] ||= (...e) => h(I).onPressClick && h(I).onPressClick(...e),
|
|
66
|
+
onPointerup: t[6] ||= (...e) => h(I).onPressPointerUp && h(I).onPressPointerUp(...e),
|
|
67
|
+
onPointerdown: t[7] ||= (...e) => h(I).onPressPointerDown && h(I).onPressPointerDown(...e),
|
|
68
|
+
onLostpointercapture: t[8] ||= (...e) => h(I).onPressLostPointerCapture && h(I).onPressLostPointerCapture(...e),
|
|
69
|
+
class: p(h(b)({
|
|
70
|
+
"bridge-field-adornment-button inline-flex min-h-0 min-w-8 flex-1 items-center justify-center": !0,
|
|
71
|
+
[h(P).decrement ?? ""]: !0
|
|
72
|
+
}))
|
|
73
|
+
}, [c(h(n), {
|
|
74
|
+
icon: h(x),
|
|
75
|
+
size: L.value
|
|
76
|
+
}, null, 8, ["icon", "size"])], 42, T)])]),
|
|
77
|
+
default: v(() => [y(s("input", f({ "onUpdate:modelValue": t[0] ||= (e) => u(N) ? N.value = e : null }, h(M)), null, 16), [[_, h(N)]])]),
|
|
78
|
+
_: 1
|
|
79
|
+
}, 8, ["field"]));
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
//#endregion
|
|
83
|
+
export { E as default };
|