@destyler/composition
Advanced tools
Comparing version 0.0.1-beta.22 to 0.0.1
@@ -5,2 +5,3 @@ import * as vue from 'vue'; | ||
import { MaybeRefOrGetter, Type, Direction, MaybeElementRef, AnyFn, Stoppable, MaybeComputedElementRef, FunctionArgs, DebounceFilterOptions, PromisifyFn, Fn, Pausable } from '@destyler/shared'; | ||
import { DateValue } from '@internationalized/date'; | ||
@@ -146,3 +147,3 @@ declare function useForwardRef(): (ref: any) => void; | ||
* | ||
* @defaultValue "data-radix-vue-collection-item" | ||
* @defaultValue "data-destyler-collection-item" | ||
*/ | ||
@@ -387,2 +388,67 @@ attributeName?: string; | ||
export { type CloneFn, type ConfigurableWindow, type ImageLoadingStatus, type ResizeObserverCallback, type ResizeObserverEntry, type ResizeObserverSize, type UseClonedOptions, type UseClonedReturn, type UseMutationObserverOptions, type UseMutationObserverReturn, type UseRafFnCallbackArguments, type UseRafFnOptions, type UseResizeObserverOptions, type UseResizeObserverReturn, type UseTimeoutFnOptions, type UseTimeoutOptions, type UseVModelOptions, cloneFnJSON, defaultWindow, getNextMatch, useArrowNavigation, useBodyScrollLock, useCloned, useCollection, useControllable, useCustomElement, useDebounceFn, useDirection, useEmitAsProps, useFocusGuards, useFormControl, useForwardExpose, useForwardProps, useForwardPropsEmits, useForwardRef, useHideOthers, useId, useImageLoadingStatus, useMounted, useMutationObserver, usePresence, usePrevious, useRafFn, useResizeObserver, useSingleOrMultipleValue, useSize, useStateMachine, useSupported, useTimeout, useTimeoutFn, useTypeahead, useVModel }; | ||
interface Formatter { | ||
getLocale: () => string; | ||
setLocale: (newLocale: string) => void; | ||
custom: (date: Date, options: Intl.DateTimeFormatOptions) => string; | ||
selectedDate: (date: DateValue, includeTime?: boolean) => string; | ||
dayOfWeek: (date: Date, length?: Intl.DateTimeFormatOptions['weekday']) => string; | ||
fullMonthAndYear: (date: Date) => string; | ||
fullMonth: (date: Date) => string; | ||
fullYear: (date: Date) => string; | ||
dayPeriod: (date: Date) => string; | ||
part: (dateObj: DateValue, type: Intl.DateTimeFormatPartTypes, options?: Intl.DateTimeFormatOptions) => string; | ||
toParts: (date: DateValue, options?: Intl.DateTimeFormatOptions) => Intl.DateTimeFormatPart[]; | ||
getMonths: () => { | ||
label: string; | ||
value: number; | ||
}[]; | ||
} | ||
/** | ||
* Creates a wrapper around the `DateFormatter`, which is | ||
* an improved version of the {@link Intl.DateTimeFormat} API, | ||
* that is used internally by the various date builders to | ||
* easily format dates in a consistent way. | ||
* | ||
* @see [DateFormatter](https://react-spectrum.adobe.com/internationalized/date/DateFormatter.html) | ||
*/ | ||
declare function useDateFormatter(initialLocale: string): Formatter; | ||
declare function useKbd(): { | ||
ALT: string; | ||
ARROW_DOWN: string; | ||
ARROW_LEFT: string; | ||
ARROW_RIGHT: string; | ||
ARROW_UP: string; | ||
BACKSPACE: string; | ||
CAPS_LOCK: string; | ||
CONTROL: string; | ||
DELETE: string; | ||
END: string; | ||
ENTER: string; | ||
ESCAPE: string; | ||
F1: string; | ||
F10: string; | ||
F11: string; | ||
F12: string; | ||
F2: string; | ||
F3: string; | ||
F4: string; | ||
F5: string; | ||
F6: string; | ||
F7: string; | ||
F8: string; | ||
F9: string; | ||
HOME: string; | ||
META: string; | ||
PAGE_DOWN: string; | ||
PAGE_UP: string; | ||
SHIFT: string; | ||
SPACE: string; | ||
TAB: string; | ||
CTRL: string; | ||
ASTERISK: string; | ||
SPACE_CODE: string; | ||
}; | ||
type KbdKeys = keyof ReturnType<typeof useKbd>; | ||
export { type CloneFn, type ConfigurableWindow, type Formatter, type ImageLoadingStatus, type KbdKeys, type ResizeObserverCallback, type ResizeObserverEntry, type ResizeObserverSize, type UseClonedOptions, type UseClonedReturn, type UseMutationObserverOptions, type UseMutationObserverReturn, type UseRafFnCallbackArguments, type UseRafFnOptions, type UseResizeObserverOptions, type UseResizeObserverReturn, type UseTimeoutFnOptions, type UseTimeoutOptions, type UseVModelOptions, cloneFnJSON, defaultWindow, getNextMatch, useArrowNavigation, useBodyScrollLock, useCloned, useCollection, useControllable, useCustomElement, useDateFormatter, useDebounceFn, useDirection, useEmitAsProps, useFocusGuards, useFormControl, useForwardExpose, useForwardProps, useForwardPropsEmits, useForwardRef, useHideOthers, useId, useImageLoadingStatus, useKbd, useMounted, useMutationObserver, usePresence, usePrevious, useRafFn, useResizeObserver, useSingleOrMultipleValue, useSize, useStateMachine, useSupported, useTimeout, useTimeoutFn, useTypeahead, useVModel }; |
{ | ||
"name": "@destyler/composition", | ||
"version": "0.0.1-beta.22", | ||
"version": "0.0.1", | ||
"description": "", | ||
@@ -26,4 +26,8 @@ "author": "Elone Hoo <elonehoo@gmail.com>", | ||
"dependencies": { | ||
"@internationalized/date": "^3.5.2", | ||
"@vueuse/core": "^10.7.2", | ||
"@vueuse/shared": "^10.7.2", | ||
"aria-hidden": "^1.2.3", | ||
"@destyler/shared": "0.0.1-beta.22" | ||
"defu": "^6.1.4", | ||
"@destyler/shared": "0.0.1" | ||
}, | ||
@@ -30,0 +34,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
119005
2642
7
+ Added@vueuse/core@^10.7.2
+ Added@vueuse/shared@^10.7.2
+ Addeddefu@^6.1.4
+ Added@destyler/shared@0.0.1(transitive)
+ Added@internationalized/date@3.6.0(transitive)
+ Added@swc/helpers@0.5.15(transitive)
+ Added@types/web-bluetooth@0.0.20(transitive)
+ Added@vueuse/core@10.11.1(transitive)
+ Added@vueuse/metadata@10.11.1(transitive)
+ Added@vueuse/shared@10.11.1(transitive)
+ Addeddefu@6.1.4(transitive)
+ Addedvue-demi@0.14.10(transitive)
- Removed@destyler/shared@0.0.1-beta.22(transitive)
Updated@destyler/shared@0.0.1