hys-ui 0.5.0 → 0.6.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/CHANGELOG.md +7 -0
- package/dist/components/HysDrawer/HysDrawer.vue.js +1 -1
- package/dist/components/HysDrawer/HysDrawer2.vue.js +2 -2
- package/dist/components/HysModal/HysModal.vue.js +2 -2
- package/dist/components/HysModal/HysModal2.vue.js +38 -38
- package/dist/components/HysSearch/HysSearch.vue.js +2 -2
- package/dist/components/HysSortableList/HysSortableList.vue.js +2 -2
- package/dist/components/HysSortableList/HysSortableList2.vue.js +498 -129
- package/dist/components/HysSortableList/SortableGhost/SortableGhost.vue.js +7 -0
- package/dist/components/HysSortableList/SortableGhost/SortableGhost2.vue.js +43 -0
- package/dist/components/HysSortableList/SortableGhost/useSortGhost.js +54 -0
- package/dist/components/HysSortableList/geometry.js +230 -0
- package/dist/components/HysSortableList/model.js +254 -0
- package/dist/components/HysSortableList/transactions.js +281 -0
- package/dist/components/HysSortableList/useSortDrag.js +270 -0
- package/dist/components/HysSortableList/useSortKeyboard.js +72 -0
- package/dist/components/HysSortableList/useSortWindow.js +144 -0
- package/dist/components/HysToast/HysToast.vue.js +3 -3
- package/dist/components/HysToast/HysToast2.vue.js +379 -107
- package/dist/components/HysToast/ToastViewport/ToastViewport.vue.js +7 -0
- package/dist/components/HysToast/ToastViewport/ToastViewport2.vue.js +211 -0
- package/dist/components/HysToast/ToastViewport/useToastStackDisclosure.js +71 -0
- package/dist/components/HysToast/toastPresentation.js +98 -0
- package/dist/components/HysToast/useToastActions.js +62 -0
- package/dist/components/HysToast/useToastSwipe.js +48 -0
- package/dist/components/HysToast/useToastTimer.js +90 -0
- package/dist/composables/popupReferenceBinding.js +41 -0
- package/dist/composables/toastEscape.js +18 -10
- package/dist/composables/toastQueue.js +276 -0
- package/dist/composables/toastQueueModel.js +86 -0
- package/dist/composables/toastTasks.js +58 -0
- package/dist/composables/useHysToast.js +117 -135
- package/dist/composables/usePopupSurface.js +190 -356
- package/dist/composables/usePopupSurfaceInteractions.js +172 -0
- package/dist/index.js +59 -57
- package/dist/style.css +1 -1
- package/dist/types/components/HysGantt/HysGantt.vue.d.ts +1 -1
- package/dist/types/components/HysModal/HysModal.vue.d.ts +1 -1
- package/dist/types/components/HysSortableList/HysSortableList.vue.d.ts +48 -25
- package/dist/types/components/HysSortableList/SortableGhost/SortableGhost.vue.d.ts +31 -0
- package/dist/types/components/HysSortableList/SortableGhost/useSortGhost.d.ts +23 -0
- package/dist/types/components/HysSortableList/geometry.d.ts +35 -0
- package/dist/types/components/HysSortableList/model.d.ts +61 -0
- package/dist/types/components/HysSortableList/sortableList.d.ts +151 -0
- package/dist/types/components/HysSortableList/transactions.d.ts +10 -0
- package/dist/types/components/HysSortableList/useSortDrag.d.ts +25 -0
- package/dist/types/components/HysSortableList/useSortKeyboard.d.ts +17 -0
- package/dist/types/components/HysSortableList/useSortWindow.d.ts +16 -0
- package/dist/types/components/HysToast/HysToast.vue.d.ts +44 -46
- package/dist/types/components/HysToast/ToastViewport/ToastViewport.vue.d.ts +25 -0
- package/dist/types/components/HysToast/ToastViewport/useToastStackDisclosure.d.ts +16 -0
- package/dist/types/components/HysToast/toastPresentation.d.ts +8 -0
- package/dist/types/components/HysToast/toastTypes.d.ts +212 -0
- package/dist/types/components/HysToast/useToastActions.d.ts +18 -0
- package/dist/types/components/HysToast/useToastSwipe.d.ts +11 -0
- package/dist/types/components/HysToast/useToastTimer.d.ts +22 -0
- package/dist/types/composables/popupReferenceBinding.d.ts +9 -0
- package/dist/types/composables/toastEscape.d.ts +1 -1
- package/dist/types/composables/toastQueue.d.ts +121 -0
- package/dist/types/composables/toastQueueModel.d.ts +116 -0
- package/dist/types/composables/toastTasks.d.ts +2 -0
- package/dist/types/composables/useHysToast.d.ts +4 -48
- package/dist/types/composables/usePopupSurface.d.ts +20 -20
- package/dist/types/composables/usePopupSurfaceInteractions.d.ts +33 -0
- package/dist/types/index.d.ts +3 -4
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type Ref } from "vue";
|
|
2
|
+
import type { HysPopupSurfaceProps } from "./popupSurface";
|
|
3
|
+
import type { FloatingAnchor, useFloating } from "./useFloating";
|
|
4
|
+
export declare const popupFocusControls = "button,a[href],input,select,textarea,[tabindex]:not([tabindex=\"-1\"]),[contenteditable=\"true\"]";
|
|
5
|
+
export declare function usePopupSurfaceInteractions(props: HysPopupSurfaceProps, kind: "tooltip" | "popover", { available, anchor, actualReference, panel, floating, restoreReferenceFocus, request, }: {
|
|
6
|
+
available: Readonly<Ref<boolean>>;
|
|
7
|
+
anchor: Readonly<Ref<FloatingAnchor | undefined>>;
|
|
8
|
+
actualReference: Readonly<Ref<HTMLElement | undefined>>;
|
|
9
|
+
panel: Readonly<Ref<HTMLElement | undefined>>;
|
|
10
|
+
floating: Pick<ReturnType<typeof useFloating>, "open" | "isTop" | "restoringFocus">;
|
|
11
|
+
restoreReferenceFocus: () => void;
|
|
12
|
+
request: (open: boolean) => Promise<boolean>;
|
|
13
|
+
}): {
|
|
14
|
+
clearDelays: () => void;
|
|
15
|
+
clearAuto: () => void;
|
|
16
|
+
resetReasons: () => void;
|
|
17
|
+
reset: () => void;
|
|
18
|
+
startAuto: () => void;
|
|
19
|
+
tab: (event: KeyboardEvent) => Promise<void>;
|
|
20
|
+
handlers: {
|
|
21
|
+
pointerEnter: () => void;
|
|
22
|
+
pointerLeave: () => void;
|
|
23
|
+
panelEnter: () => void;
|
|
24
|
+
panelLeave: () => void;
|
|
25
|
+
focusIn: (event: FocusEvent) => void;
|
|
26
|
+
focusOut: (event: FocusEvent) => void;
|
|
27
|
+
panelFocusIn: () => void;
|
|
28
|
+
panelFocusOut: (event: FocusEvent) => void;
|
|
29
|
+
click: (event: MouseEvent) => void;
|
|
30
|
+
contextmenu: (event: MouseEvent) => void;
|
|
31
|
+
key: (event: KeyboardEvent) => void;
|
|
32
|
+
};
|
|
33
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -109,8 +109,6 @@ export { default as HysTagInput } from './components/HysTagInput/HysTagInput.vue
|
|
|
109
109
|
export { default as HysTextarea } from './components/HysTextarea/HysTextarea.vue';
|
|
110
110
|
export { default as HysTimeline } from './components/HysTimeline/HysTimeline.vue';
|
|
111
111
|
export { default as HysToast } from './components/HysToast/HysToast.vue';
|
|
112
|
-
export type { HysToastType } from './components/HysToast/HysToast.vue';
|
|
113
|
-
export type { HysToastPosition } from './components/HysToast/HysToast.vue';
|
|
114
112
|
export { default as HysTooltip } from './components/HysTooltip/HysTooltip.vue';
|
|
115
113
|
export { default as HysTour } from './components/HysTour/HysTour.vue';
|
|
116
114
|
export { default as HysTransfer } from './components/HysTransfer/HysTransfer.vue';
|
|
@@ -127,10 +125,11 @@ export type { HysFormCol, HysFormColSize, HysFormGridValue, HysFormBreakpoint }
|
|
|
127
125
|
export type { HysSelectValue, HysSelectModelValue, HysSelectOption, HysSelectGroup, HysSelectDataOption, HysSelectFieldNames, HysSelectSearchContext, HysSelectInstance } from './composables/selectOptions';
|
|
128
126
|
export type { HysNumberInputValue, HysNumberInputFormatInfo, HysNumberInputStepInfo, HysNumberInputInvalidInfo, HysNumberInputInstance } from './composables/numberInput';
|
|
129
127
|
export type { HysInputProps, HysTextareaProps, HysInputFormatInfo, HysInputCountInfo, HysInputCountStrategy, HysInputInstance, HysTextareaInstance } from './composables/textInput';
|
|
130
|
-
export { useHysToast, createHysToast } from './composables/useHysToast';
|
|
131
|
-
export type { HysToastApi, HysToastOptions, HysToastConfig, HysToastHandle, HysToastServiceConfig, HysToastService } from './composables/useHysToast';
|
|
128
|
+
export { useHysToast, createHysToast, hysToast, configureHysToast } from './composables/useHysToast';
|
|
129
|
+
export type { HysToastApi, HysToastOptions, HysToastConfig, HysToastHandle, HysToastServiceConfig, HysToastService, HysToastType, HysToastPosition, HysToastProps, HysToastPresentation, HysToastCloseReason, HysToastCloseContext, HysToastContext, HysToastAction, HysToastActionContext, HysToastActionEvent, HysToastAnimation, HysToastDirection, HysToastMotionPreset, HysToastLocale, HysToastCoordinates, HysToastProgress, HysToastStatus, HysToastSnapshot, HysToastFilter, HysToastPatch, HysToastRender, HysToastFeedback, HysToastTaskContext, HysToastPromiseOptions, HysToastTask } from './composables/useHysToast';
|
|
132
130
|
export type { HysSliderValue, HysSliderStep, HysSliderMarks, HysSliderDragInfo, HysSliderInstance } from './composables/slider';
|
|
133
131
|
export type { HysInputSize, HysInputModelModifiers, HysTextareaStyle } from './composables/textInput';
|
|
132
|
+
export type { HysSortKey, HysSortItem, HysSortLayout, HysSortMode, HysSortOperation, HysSortPosition, HysSortSource, HysSortFixed, HysSortDecision, HysSortReason, HysSortListInfo, HysSortDrag, HysSortProposal, HysSortListChange, HysSortPreview, HysSortChange, HysSortFeedback, HysSortGroup, HysSortScroll, HysSortVirtual, HysSortRow, HysSortableListProps, HysSortMoveOptions, HysSortableListInstance } from './components/HysSortableList/sortableList';
|
|
134
133
|
export type { HysSelectLabeledValue } from './composables/selectOptions';
|
|
135
134
|
export type { HysAvatarProps, HysAvatarSize, HysAvatarBreakpoint, HysAvatarFit, HysAvatarLoadInfo, HysAvatarOption, HysAvatarInstance, HysAvatarGroupProps, HysAvatarGroupInstance } from './composables/avatar';
|
|
136
135
|
export type { HysAutocompleteProps, HysAutocompleteRow, HysAutocompleteOption, HysAutocompleteItem, HysAutocompleteGroup, HysAutocompleteDataOption, HysAutocompleteContext, HysAutocompleteCallback, HysAutocompleteFetch, HysAutocompleteInstance } from './composables/autocomplete';
|