yuyeon 0.3.4-beta.12 → 0.3.4-beta.14
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/style.css +1 -1
- package/dist/yuyeon.js +131 -131
- package/dist/yuyeon.umd.cjs +1 -1
- package/lib/components/table/YDataTableBody.js +1 -1
- package/lib/components/table/YDataTableBody.js.map +1 -1
- package/lib/components/table/YDataTableLayerRows.js +3 -3
- package/lib/components/table/YDataTableLayerRows.js.map +1 -1
- package/lib/directives/plate-wave/plate-wave.scss +17 -6
- package/lib/util/ui.js +8 -7
- package/lib/util/ui.js.map +1 -1
- package/package.json +1 -1
- package/types/src/abstract/items.d.ts +49 -0
- package/types/src/components/alert/YAlert.d.ts +13 -0
- package/types/src/components/alert/index.d.ts +1 -0
- package/types/src/components/app/YApp.d.ts +8 -0
- package/types/src/components/app/index.d.ts +1 -0
- package/types/src/components/badge/YBadge.d.ts +126 -0
- package/types/src/components/badge/index.d.ts +1 -0
- package/types/src/components/bench/YBench.d.ts +4 -0
- package/types/src/components/bench/index.d.ts +1 -0
- package/types/src/components/button/YButton.d.ts +189 -0
- package/types/src/components/button/index.d.ts +1 -0
- package/types/src/components/card/YCard.d.ts +9 -0
- package/types/src/components/card/YCardBody.d.ts +2 -0
- package/types/src/components/card/YCardFooter.d.ts +2 -0
- package/types/src/components/card/YCardHeader.d.ts +2 -0
- package/types/src/components/card/index.d.ts +4 -0
- package/types/src/components/checkbox/YCheckbox.d.ts +23 -0
- package/types/src/components/checkbox/YInputCheckbox.d.ts +31 -0
- package/types/src/components/checkbox/index.d.ts +4 -0
- package/types/src/components/chip/YChip.d.ts +37 -0
- package/types/src/components/chip/index.d.ts +1 -0
- package/types/src/components/date-picker/YDateCalendar.d.ts +115 -0
- package/types/src/components/date-picker/YDatePicker.d.ts +94 -0
- package/types/src/components/date-picker/YDatePickerControl.d.ts +97 -0
- package/types/src/components/date-picker/YMonthPicker.d.ts +25 -0
- package/types/src/components/date-picker/YYearPicker.d.ts +38 -0
- package/types/src/components/date-picker/index.d.ts +3 -0
- package/types/src/components/default-provider/YDefaultProvider.d.ts +0 -0
- package/types/src/components/default-provider/index.d.ts +0 -0
- package/types/src/components/dialog/YDialog.d.ts +715 -0
- package/types/src/components/dialog/index.d.ts +1 -0
- package/types/src/components/divider/YDivider.d.ts +14 -0
- package/types/src/components/divider/index.d.ts +1 -0
- package/types/src/components/draggable/YDraggable.d.ts +36 -0
- package/types/src/components/draggable/index.d.ts +1 -0
- package/types/src/components/dropdown/YDropdown.d.ts +574 -0
- package/types/src/components/dropdown/index.d.ts +1 -0
- package/types/src/components/field-input/YFieldInput.d.ts +322 -0
- package/types/src/components/field-input/index.d.ts +1 -0
- package/types/src/components/form/YForm.d.ts +20 -0
- package/types/src/components/form/index.d.ts +1 -0
- package/types/src/components/hover/YHover.d.ts +57 -0
- package/types/src/components/hover/index.d.ts +1 -0
- package/types/src/components/icon/YIcon.d.ts +67 -0
- package/types/src/components/icon/index.d.ts +1 -0
- package/types/src/components/icons/YIconCheckbox.d.ts +6 -0
- package/types/src/components/icons/YIconClear.d.ts +1 -0
- package/types/src/components/icons/YIconDropdown.d.ts +1 -0
- package/types/src/components/icons/YIconExpand.d.ts +1 -0
- package/types/src/components/icons/YIconPageControl.d.ts +14 -0
- package/types/src/components/icons/YIconSort.d.ts +10 -0
- package/types/src/components/icons/index.d.ts +51 -0
- package/types/src/components/img/YImg.d.ts +133 -0
- package/types/src/components/img/index.d.ts +0 -0
- package/types/src/components/index.d.ts +38 -0
- package/types/src/components/input/YInput.d.ts +249 -0
- package/types/src/components/input/index.d.ts +1 -0
- package/types/src/components/ip-field/YIpv4Field.d.ts +65 -0
- package/types/src/components/ip-field/index.d.ts +1 -0
- package/types/src/components/layer/YLayer.d.ts +436 -0
- package/types/src/components/layer/active-delay.d.ts +4 -0
- package/types/src/components/layer/active-stack.d.ts +16 -0
- package/types/src/components/layer/base.d.ts +28 -0
- package/types/src/components/layer/content.d.ts +21 -0
- package/types/src/components/layer/index.d.ts +1 -0
- package/types/src/components/layer/scroll-strategies.d.ts +41 -0
- package/types/src/components/list/YList.d.ts +19 -0
- package/types/src/components/list/YListItem.d.ts +42 -0
- package/types/src/components/list/index.d.ts +2 -0
- package/types/src/components/loading/YSpinnerRing.d.ts +3 -0
- package/types/src/components/loading/index.d.ts +1 -0
- package/types/src/components/menu/YMenu.d.ts +517 -0
- package/types/src/components/menu/index.d.ts +1 -0
- package/types/src/components/navigation/YNavigation.d.ts +1 -0
- package/types/src/components/navigation/index.d.ts +1 -0
- package/types/src/components/pagination/YPagination.d.ts +137 -0
- package/types/src/components/pagination/index.d.ts +1 -0
- package/types/src/components/panel/YDividePanel.d.ts +5 -0
- package/types/src/components/panel/index.d.ts +1 -0
- package/types/src/components/plate/YPlate.d.ts +9 -0
- package/types/src/components/plate/index.d.ts +1 -0
- package/types/src/components/progress-bar/YProgressBar.d.ts +38 -0
- package/types/src/components/progress-bar/index.d.ts +1 -0
- package/types/src/components/progress-ring/YProgressRing.d.ts +34 -0
- package/types/src/components/progress-ring/index.d.ts +1 -0
- package/types/src/components/radio/YRadio.d.ts +25 -0
- package/types/src/components/radio/YRadioIcon.d.ts +6 -0
- package/types/src/components/radio/index.d.ts +2 -0
- package/types/src/components/select/YSelect.d.ts +1221 -0
- package/types/src/components/select/index.d.ts +1 -0
- package/types/src/components/slider/YSlider.d.ts +16 -0
- package/types/src/components/slider/index.d.ts +1 -0
- package/types/src/components/slider/slider.d.ts +0 -0
- package/types/src/components/snackbar/YSnackbar.d.ts +452 -0
- package/types/src/components/snackbar/index.d.ts +1 -0
- package/types/src/components/switch/YSwitch.d.ts +137 -0
- package/types/src/components/switch/index.d.ts +1 -0
- package/types/src/components/tab/YTab.d.ts +218 -0
- package/types/src/components/tab/YTabs.d.ts +98 -0
- package/types/src/components/tab/index.d.ts +3 -0
- package/types/src/components/tab/shared.d.ts +4 -0
- package/types/src/components/tab/types.d.ts +5 -0
- package/types/src/components/table/YDataTable.d.ts +459 -0
- package/types/src/components/table/YDataTableBody.d.ts +99 -0
- package/types/src/components/table/YDataTableCell.d.ts +32 -0
- package/types/src/components/table/YDataTableControl.d.ts +68 -0
- package/types/src/components/table/YDataTableHead.d.ts +54 -0
- package/types/src/components/table/YDataTableLayer.d.ts +13 -0
- package/types/src/components/table/YDataTableLayerRow.d.ts +22 -0
- package/types/src/components/table/YDataTableLayerRows.d.ts +9 -0
- package/types/src/components/table/YDataTableRow.d.ts +53 -0
- package/types/src/components/table/YDataTableServer.d.ts +502 -0
- package/types/src/components/table/YTable.d.ts +65 -0
- package/types/src/components/table/composables/expand.d.ts +42 -0
- package/types/src/components/table/composables/header.d.ts +175 -0
- package/types/src/components/table/composables/items.d.ts +55 -0
- package/types/src/components/table/composables/measure.d.ts +8 -0
- package/types/src/components/table/composables/options.d.ts +11 -0
- package/types/src/components/table/composables/pagination.d.ts +81 -0
- package/types/src/components/table/composables/provides.d.ts +15 -0
- package/types/src/components/table/composables/selection.d.ts +82 -0
- package/types/src/components/table/composables/sorted-items.d.ts +7 -0
- package/types/src/components/table/composables/sorting.d.ts +56 -0
- package/types/src/components/table/index.d.ts +10 -0
- package/types/src/components/table/types/common.d.ts +2 -0
- package/types/src/components/table/types/header.d.ts +25 -0
- package/types/src/components/table/types/index.d.ts +59 -0
- package/types/src/components/table/types/item.d.ts +23 -0
- package/types/src/components/table/types/row.d.ts +4 -0
- package/types/src/components/text-ellipsis/YTextEllipsis.d.ts +11 -0
- package/types/src/components/text-ellipsis/index.d.ts +1 -0
- package/types/src/components/text-highlighter/YTextHighlighter.d.ts +26 -0
- package/types/src/components/text-highlighter/index.d.ts +1 -0
- package/types/src/components/text-interpolation/YTi.d.ts +11 -0
- package/types/src/components/text-interpolation/index.d.ts +1 -0
- package/types/src/components/textarea/YTextarea.d.ts +583 -0
- package/types/src/components/textarea/index.d.ts +1 -0
- package/types/src/components/toggle-button/YToggleButton.d.ts +4 -0
- package/types/src/components/toggle-button/index.d.ts +1 -0
- package/types/src/components/tooltip/YTooltip.d.ts +502 -0
- package/types/src/components/tooltip/index.d.ts +1 -0
- package/types/src/components/transitions/expand-transition.d.ts +20 -0
- package/types/src/components/transitions/index.d.ts +38 -0
- package/types/src/components/tree-view/YTreeView.d.ts +172 -0
- package/types/src/components/tree-view/YTreeViewNode.d.ts +176 -0
- package/types/src/components/tree-view/index.d.ts +2 -0
- package/types/src/components/tree-view/tree-view.d.ts +51 -0
- package/types/src/components/tree-view/types.d.ts +17 -0
- package/types/src/components/tree-view/util.d.ts +6 -0
- package/types/src/composables/choice-link.d.ts +3 -0
- package/types/src/composables/choice.d.ts +113 -0
- package/types/src/composables/communication.d.ts +8 -0
- package/types/src/composables/component.d.ts +3 -0
- package/types/src/composables/coordinate/arrangement.d.ts +7 -0
- package/types/src/composables/coordinate/index.d.ts +87 -0
- package/types/src/composables/coordinate/levitation.d.ts +7 -0
- package/types/src/composables/coordinate/types.d.ts +7 -0
- package/types/src/composables/coordinate/utils/point.d.ts +22 -0
- package/types/src/composables/date/factory.d.ts +3 -0
- package/types/src/composables/date/index.d.ts +12 -0
- package/types/src/composables/date/setting.d.ts +5 -0
- package/types/src/composables/date/types.d.ts +13 -0
- package/types/src/composables/defaults/index.d.ts +11 -0
- package/types/src/composables/defaults/share.d.ts +4 -0
- package/types/src/composables/defaults/types.d.ts +12 -0
- package/types/src/composables/dimension.d.ts +54 -0
- package/types/src/composables/focus.d.ts +30 -0
- package/types/src/composables/form.d.ts +132 -0
- package/types/src/composables/i18n/index.d.ts +9 -0
- package/types/src/composables/i18n/locale.d.ts +3 -0
- package/types/src/composables/i18n/rtl.d.ts +21 -0
- package/types/src/composables/i18n/share.d.ts +1 -0
- package/types/src/composables/icon.d.ts +79 -0
- package/types/src/composables/index.d.ts +10 -0
- package/types/src/composables/layer-group.d.ts +10 -0
- package/types/src/composables/layout.d.ts +10 -0
- package/types/src/composables/list-items.d.ts +113 -0
- package/types/src/composables/progress.d.ts +4 -0
- package/types/src/composables/ref.d.ts +6 -0
- package/types/src/composables/resize-observer.d.ts +24 -0
- package/types/src/composables/scope.d.ts +3 -0
- package/types/src/composables/style-color.d.ts +14 -0
- package/types/src/composables/theme/factory.d.ts +4 -0
- package/types/src/composables/theme/helper.d.ts +3 -0
- package/types/src/composables/theme/index.d.ts +57 -0
- package/types/src/composables/theme/setting.d.ts +11 -0
- package/types/src/composables/theme/types.d.ts +29 -0
- package/types/src/composables/timing.d.ts +20 -0
- package/types/src/composables/transition.d.ts +40 -0
- package/types/src/composables/validation.d.ts +82 -0
- package/types/src/composables/vue-router.d.ts +43 -0
- package/types/src/declares.d.ts +1 -0
- package/types/src/directives/complement-click/index.d.ts +26 -0
- package/types/src/directives/index.d.ts +2 -0
- package/types/src/directives/plate-wave/index.d.ts +20 -0
- package/types/src/directives/theme-class/index.d.ts +4 -0
- package/types/src/etc/index.d.ts +1 -0
- package/types/src/globals.d.ts +20 -0
- package/types/src/i18n/built-in.d.ts +3 -0
- package/types/src/i18n/config.d.ts +81 -0
- package/types/src/i18n/types.d.ts +20 -0
- package/types/src/index.d.ts +13 -0
- package/types/src/locales/en.d.ts +6 -0
- package/types/src/locales/index.d.ts +2 -0
- package/types/src/locales/ko.d.ts +6 -0
- package/types/src/mixins/di.d.ts +2 -0
- package/types/src/mixins/rebind-attrs.d.ts +5 -0
- package/types/src/shims.d.ts +64 -0
- package/types/src/types/index.d.ts +9 -0
- package/types/src/util/anchor.d.ts +23 -0
- package/types/src/util/array.d.ts +2 -0
- package/types/src/util/collection.d.ts +1 -0
- package/types/src/util/color/apca.d.ts +29 -0
- package/types/src/util/color/const.d.ts +5 -0
- package/types/src/util/color/contrast/contrast.d.ts +74 -0
- package/types/src/util/color/conversion.d.ts +131 -0
- package/types/src/util/color/hct/cam16.d.ts +116 -0
- package/types/src/util/color/hct/hct-solver.d.ts +131 -0
- package/types/src/util/color/hct/hct.d.ts +71 -0
- package/types/src/util/color/hct/viewing-conditions.d.ts +58 -0
- package/types/src/util/color/index.d.ts +5 -0
- package/types/src/util/color/palettes/core-palette.d.ts +44 -0
- package/types/src/util/color/palettes/tonal-palette.d.ts +40 -0
- package/types/src/util/color/types.d.ts +14 -0
- package/types/src/util/color/utils/math-utils.d.ts +82 -0
- package/types/src/util/common.d.ts +17 -0
- package/types/src/util/component/component.d.ts +5 -0
- package/types/src/util/component/index.d.ts +11 -0
- package/types/src/util/component/inject-self.d.ts +3 -0
- package/types/src/util/component/props.d.ts +32 -0
- package/types/src/util/component/types.d.ts +21 -0
- package/types/src/util/date/adapters/yuyeon-date-adapter.d.ts +43 -0
- package/types/src/util/date/built-in.d.ts +41 -0
- package/types/src/util/date/index.d.ts +3 -0
- package/types/src/util/date/types.d.ts +167 -0
- package/types/src/util/debounce.d.ts +11 -0
- package/types/src/util/dom.d.ts +5 -0
- package/types/src/util/environments.d.ts +6 -0
- package/types/src/util/frame-scheduler.d.ts +7 -0
- package/types/src/util/index.d.ts +16 -0
- package/types/src/util/reactivity.d.ts +7 -0
- package/types/src/util/rect.d.ts +36 -0
- package/types/src/util/scroll.d.ts +3 -0
- package/types/src/util/string.d.ts +9 -0
- package/types/src/util/ui.d.ts +4 -0
- package/types/src/util/validation.d.ts +3 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CSSProperties, Ref } from 'vue';
|
|
2
|
+
import { Rect } from '../../util/rect';
|
|
3
|
+
import { CoordinateState } from './types';
|
|
4
|
+
|
|
5
|
+
export declare function applyLevitation(props: any, state: CoordinateState, coordinate: Ref<Rect | undefined>, coordinateStyles: Ref<CSSProperties>): {
|
|
6
|
+
updateCoordinate: () => any;
|
|
7
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ParsedAnchor } from '../../../util/anchor';
|
|
2
|
+
import { MutableRect } from '../../../util/rect';
|
|
3
|
+
|
|
4
|
+
type Point = {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
};
|
|
8
|
+
declare class As<T extends string> {
|
|
9
|
+
private as;
|
|
10
|
+
}
|
|
11
|
+
type ElementPoint = Point & As<'element'>;
|
|
12
|
+
type ViewportPoint = Point & As<'viewport'>;
|
|
13
|
+
type Offset = Point & As<'offset'>;
|
|
14
|
+
/** Convert a point in local space to viewport space */
|
|
15
|
+
export declare function elementToViewport(point: ElementPoint, offset: Offset | MutableRect): ViewportPoint;
|
|
16
|
+
/** Convert a point in viewport space to local space */
|
|
17
|
+
export declare function viewportToElement(point: ViewportPoint, offset: Offset | MutableRect): ElementPoint;
|
|
18
|
+
/** Get the difference between two points */
|
|
19
|
+
export declare function getOffset<T extends Point>(a: T, b: T): Offset;
|
|
20
|
+
/** Convert an anchor object to a point in local space */
|
|
21
|
+
export declare function anchorToPoint(anchor: ParsedAnchor, box: MutableRect): ViewportPoint;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LocaleModule } from '../../i18n/types';
|
|
2
|
+
import { DateInstance, DateOptions } from './types';
|
|
3
|
+
|
|
4
|
+
export declare const YUYEON_DATE_KEY: unique symbol;
|
|
5
|
+
export declare const YUYEON_DATE_OPTIONS_KEY: unique symbol;
|
|
6
|
+
export declare function createDateModule(options: DateOptions, locale: LocaleModule): {
|
|
7
|
+
options: {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
};
|
|
10
|
+
instance: any;
|
|
11
|
+
};
|
|
12
|
+
export declare function useDate(): DateInstance;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DateAdapter } from '../../util/date/types';
|
|
2
|
+
|
|
3
|
+
export interface DateOptions {
|
|
4
|
+
adapter: any;
|
|
5
|
+
locale: Record<string, any>;
|
|
6
|
+
formats?: Record<string, any>;
|
|
7
|
+
}
|
|
8
|
+
export interface DateInstanceType {
|
|
9
|
+
instanceType: unknown;
|
|
10
|
+
}
|
|
11
|
+
export interface DateInstance<T = DateInstanceType['instanceType']> extends DateAdapter<T> {
|
|
12
|
+
locale?: any;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MaybeRef } from 'vue';
|
|
2
|
+
import { DefaultsModuleInstance, ProvideDefaultsOptions } from './types';
|
|
3
|
+
|
|
4
|
+
export declare function createDefaultsModule(options?: DefaultsModuleInstance): import('vue').Ref<DefaultsModuleInstance, DefaultsModuleInstance>;
|
|
5
|
+
export declare function useDefaultsModule(): import('vue').Ref<DefaultsModuleInstance, DefaultsModuleInstance>;
|
|
6
|
+
export declare function provideDefaults(defaults?: MaybeRef<DefaultsModuleInstance | undefined>, options?: ProvideDefaultsOptions): import('vue').ComputedRef<DefaultsModuleInstance>;
|
|
7
|
+
export declare function useSuperDefaults(props?: Record<string, any>, name?: string, defaults?: import('vue').Ref<DefaultsModuleInstance, DefaultsModuleInstance>): {
|
|
8
|
+
props: Record<string, any>;
|
|
9
|
+
provideSubDefaults: () => void;
|
|
10
|
+
};
|
|
11
|
+
export declare function useDefaults(props: undefined, name: string): Record<string, any>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MaybeRef } from 'vue';
|
|
2
|
+
|
|
3
|
+
export type DefaultsModuleInstance = undefined | {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
};
|
|
6
|
+
export type DefaultsOptions = Partial<DefaultsModuleInstance>;
|
|
7
|
+
export type ProvideDefaultsOptions = {
|
|
8
|
+
disabled?: MaybeRef<boolean | undefined>;
|
|
9
|
+
reset?: MaybeRef<number | string | undefined>;
|
|
10
|
+
root?: MaybeRef<boolean | string | undefined>;
|
|
11
|
+
scoped?: MaybeRef<boolean | undefined>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const dimensionPropsOptions: {
|
|
4
|
+
minWidth: PropType<number | string>;
|
|
5
|
+
width: PropType<number | string>;
|
|
6
|
+
maxWidth: PropType<number | string>;
|
|
7
|
+
minHeight: PropType<number | string>;
|
|
8
|
+
height: PropType<number | string>;
|
|
9
|
+
maxHeight: PropType<number | string>;
|
|
10
|
+
};
|
|
11
|
+
export declare const pressDimensionPropsOptions: <Defaults extends {
|
|
12
|
+
minWidth?: unknown;
|
|
13
|
+
width?: unknown;
|
|
14
|
+
maxWidth?: unknown;
|
|
15
|
+
minHeight?: unknown;
|
|
16
|
+
height?: unknown;
|
|
17
|
+
maxHeight?: unknown;
|
|
18
|
+
} = {}>(defaults?: Defaults | undefined) => {
|
|
19
|
+
minWidth: unknown extends Defaults["minWidth"] ? PropType<string | number> : {
|
|
20
|
+
type: PropType<unknown extends Defaults["minWidth"] ? string | number : NonNullable<string | number> | Defaults["minWidth"]>;
|
|
21
|
+
default: unknown extends Defaults["minWidth"] ? string | number : NonNullable<string | number> | Defaults["minWidth"];
|
|
22
|
+
};
|
|
23
|
+
width: unknown extends Defaults["width"] ? PropType<string | number> : {
|
|
24
|
+
type: PropType<unknown extends Defaults["width"] ? string | number : NonNullable<string | number> | Defaults["width"]>;
|
|
25
|
+
default: unknown extends Defaults["width"] ? string | number : NonNullable<string | number> | Defaults["width"];
|
|
26
|
+
};
|
|
27
|
+
maxWidth: unknown extends Defaults["maxWidth"] ? PropType<string | number> : {
|
|
28
|
+
type: PropType<unknown extends Defaults["maxWidth"] ? string | number : NonNullable<string | number> | Defaults["maxWidth"]>;
|
|
29
|
+
default: unknown extends Defaults["maxWidth"] ? string | number : NonNullable<string | number> | Defaults["maxWidth"];
|
|
30
|
+
};
|
|
31
|
+
minHeight: unknown extends Defaults["minHeight"] ? PropType<string | number> : {
|
|
32
|
+
type: PropType<unknown extends Defaults["minHeight"] ? string | number : NonNullable<string | number> | Defaults["minHeight"]>;
|
|
33
|
+
default: unknown extends Defaults["minHeight"] ? string | number : NonNullable<string | number> | Defaults["minHeight"];
|
|
34
|
+
};
|
|
35
|
+
height: unknown extends Defaults["height"] ? PropType<string | number> : {
|
|
36
|
+
type: PropType<unknown extends Defaults["height"] ? string | number : NonNullable<string | number> | Defaults["height"]>;
|
|
37
|
+
default: unknown extends Defaults["height"] ? string | number : NonNullable<string | number> | Defaults["height"];
|
|
38
|
+
};
|
|
39
|
+
maxHeight: unknown extends Defaults["maxHeight"] ? PropType<string | number> : {
|
|
40
|
+
type: PropType<unknown extends Defaults["maxHeight"] ? string | number : NonNullable<string | number> | Defaults["maxHeight"]>;
|
|
41
|
+
default: unknown extends Defaults["maxHeight"] ? string | number : NonNullable<string | number> | Defaults["maxHeight"];
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export declare function useDimension(props: ExtractPropTypes<typeof dimensionPropsOptions>): {
|
|
45
|
+
dimensionStyles: import('vue').ComputedRef<{
|
|
46
|
+
minWidth: string | undefined;
|
|
47
|
+
width: string | undefined;
|
|
48
|
+
maxWidth: string | undefined;
|
|
49
|
+
minHeight: string | undefined;
|
|
50
|
+
height: string | undefined;
|
|
51
|
+
maxHeight: string | undefined;
|
|
52
|
+
}>;
|
|
53
|
+
};
|
|
54
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const focusPropsOptions: {
|
|
4
|
+
focused: BooleanConstructor;
|
|
5
|
+
'onUpdate:focused': PropType<(v: boolean) => void>;
|
|
6
|
+
};
|
|
7
|
+
export declare const pressFocusPropsOptions: <Defaults extends {
|
|
8
|
+
focused?: unknown;
|
|
9
|
+
'onUpdate:focused'?: unknown;
|
|
10
|
+
} = {}>(defaults?: Defaults | undefined) => {
|
|
11
|
+
focused: unknown extends Defaults["focused"] ? BooleanConstructor : {
|
|
12
|
+
type: PropType<unknown extends Defaults["focused"] ? boolean : boolean | Defaults["focused"]>;
|
|
13
|
+
default: unknown extends Defaults["focused"] ? boolean : boolean | Defaults["focused"];
|
|
14
|
+
};
|
|
15
|
+
'onUpdate:focused': unknown extends Defaults["onUpdate:focused"] ? PropType<(v: boolean) => void> : {
|
|
16
|
+
type: PropType<unknown extends Defaults["onUpdate:focused"] ? (v: boolean) => void : ((v: boolean) => void) | Defaults["onUpdate:focused"]>;
|
|
17
|
+
default: unknown extends Defaults["onUpdate:focused"] ? (v: boolean) => void : ((v: boolean) => void) | Defaults["onUpdate:focused"];
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare function useFocus(props: ExtractPropTypes<typeof focusPropsOptions>, className: string): {
|
|
21
|
+
focused: import('vue').Ref<any, any> & {
|
|
22
|
+
readonly rxValue: any;
|
|
23
|
+
};
|
|
24
|
+
whenFocus: () => void;
|
|
25
|
+
whenBlur: () => void;
|
|
26
|
+
focusedClasses: import('vue').ComputedRef<{
|
|
27
|
+
[x: string]: any;
|
|
28
|
+
}>;
|
|
29
|
+
};
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { ComputedRef, InjectionKey, PropType, Ref, VNode } from 'vue';
|
|
2
|
+
import { EventProp } from '../util/component';
|
|
3
|
+
import { ValidationProps } from './validation';
|
|
4
|
+
|
|
5
|
+
export interface FormInput {
|
|
6
|
+
id: number | string;
|
|
7
|
+
vnode: VNode;
|
|
8
|
+
validate: () => Promise<any[]>;
|
|
9
|
+
isError: boolean | undefined | null;
|
|
10
|
+
errors: any[];
|
|
11
|
+
}
|
|
12
|
+
export interface InputValidationResult {
|
|
13
|
+
id: number | string;
|
|
14
|
+
vnode: VNode;
|
|
15
|
+
exposed: any;
|
|
16
|
+
errors: any[];
|
|
17
|
+
}
|
|
18
|
+
export interface FormValidationResult {
|
|
19
|
+
valid: boolean;
|
|
20
|
+
errors: InputValidationResult[];
|
|
21
|
+
}
|
|
22
|
+
export interface SubmitEventPromise extends SubmitEvent, Promise<FormValidationResult> {
|
|
23
|
+
}
|
|
24
|
+
export interface FormInstance {
|
|
25
|
+
register: (input: {
|
|
26
|
+
id: number | string;
|
|
27
|
+
vnode: VNode;
|
|
28
|
+
validate: () => Promise<any[]>;
|
|
29
|
+
resetValidation: () => Promise<void>;
|
|
30
|
+
}) => void;
|
|
31
|
+
unregister: (id: number | string) => void;
|
|
32
|
+
update: (id: number | string, isError: boolean | undefined | null, errors: any[]) => void;
|
|
33
|
+
inputs: Ref<FormInput[]>;
|
|
34
|
+
isDisabled: ComputedRef<boolean>;
|
|
35
|
+
isReadonly: ComputedRef<boolean>;
|
|
36
|
+
isLoading: ComputedRef<boolean>;
|
|
37
|
+
isValidating: Ref<boolean>;
|
|
38
|
+
isValid: Ref<boolean | null>;
|
|
39
|
+
validateOn: Ref<FormProps["validateOn"]>;
|
|
40
|
+
}
|
|
41
|
+
export declare const YUYEON_FORM_KEY: InjectionKey<FormInstance>;
|
|
42
|
+
export interface FormProps {
|
|
43
|
+
readonly: boolean;
|
|
44
|
+
disabled: boolean;
|
|
45
|
+
loading: boolean;
|
|
46
|
+
modelValue: boolean | null;
|
|
47
|
+
"onUpdate:modelValue": EventProp<[boolean | null]> | undefined;
|
|
48
|
+
validateOn: ValidationProps["validateOn"];
|
|
49
|
+
}
|
|
50
|
+
export declare const pressFormPropsOptions: <Defaults extends {
|
|
51
|
+
readonly?: unknown;
|
|
52
|
+
disabled?: unknown;
|
|
53
|
+
loading?: unknown;
|
|
54
|
+
modelValue?: unknown;
|
|
55
|
+
validateOn?: unknown;
|
|
56
|
+
} = {}>(defaults?: Defaults | undefined) => {
|
|
57
|
+
readonly: unknown extends Defaults["readonly"] ? BooleanConstructor : {
|
|
58
|
+
type: PropType<unknown extends Defaults["readonly"] ? boolean : boolean | Defaults["readonly"]>;
|
|
59
|
+
default: unknown extends Defaults["readonly"] ? boolean : boolean | Defaults["readonly"];
|
|
60
|
+
};
|
|
61
|
+
disabled: unknown extends Defaults["disabled"] ? BooleanConstructor : {
|
|
62
|
+
type: PropType<unknown extends Defaults["disabled"] ? boolean : boolean | Defaults["disabled"]>;
|
|
63
|
+
default: unknown extends Defaults["disabled"] ? boolean : boolean | Defaults["disabled"];
|
|
64
|
+
};
|
|
65
|
+
loading: unknown extends Defaults["loading"] ? BooleanConstructor : {
|
|
66
|
+
type: PropType<unknown extends Defaults["loading"] ? boolean : boolean | Defaults["loading"]>;
|
|
67
|
+
default: unknown extends Defaults["loading"] ? boolean : boolean | Defaults["loading"];
|
|
68
|
+
};
|
|
69
|
+
modelValue: unknown extends Defaults["modelValue"] ? {
|
|
70
|
+
type: PropType<boolean | null>;
|
|
71
|
+
default: null;
|
|
72
|
+
} : Omit<{
|
|
73
|
+
type: PropType<boolean | null>;
|
|
74
|
+
default: null;
|
|
75
|
+
}, "type" | "default"> & {
|
|
76
|
+
type: PropType<unknown extends Defaults["modelValue"] ? boolean | null : Defaults["modelValue"] | NonNullable<boolean | null>>;
|
|
77
|
+
default: unknown extends Defaults["modelValue"] ? boolean | null : Defaults["modelValue"] | NonNullable<boolean | null>;
|
|
78
|
+
};
|
|
79
|
+
validateOn: unknown extends Defaults["validateOn"] ? {
|
|
80
|
+
type: PropType<ValidationProps["validateOn"]>;
|
|
81
|
+
default: string;
|
|
82
|
+
} : Omit<{
|
|
83
|
+
type: PropType<ValidationProps["validateOn"]>;
|
|
84
|
+
default: string;
|
|
85
|
+
}, "type" | "default"> & {
|
|
86
|
+
type: PropType<unknown extends Defaults["validateOn"] ? string : string | Defaults["validateOn"]>;
|
|
87
|
+
default: unknown extends Defaults["validateOn"] ? string : string | Defaults["validateOn"];
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
export declare function createForm(props: FormProps): {
|
|
91
|
+
inputs: Ref<{
|
|
92
|
+
id: number | string;
|
|
93
|
+
vnode: VNode;
|
|
94
|
+
validate: () => Promise<any[]>;
|
|
95
|
+
isError: boolean | undefined | null;
|
|
96
|
+
errors: any[];
|
|
97
|
+
}[], FormInput[] | {
|
|
98
|
+
id: number | string;
|
|
99
|
+
vnode: VNode;
|
|
100
|
+
validate: () => Promise<any[]>;
|
|
101
|
+
isError: boolean | undefined | null;
|
|
102
|
+
errors: any[];
|
|
103
|
+
}[]>;
|
|
104
|
+
errors: Ref<{
|
|
105
|
+
id: number | string;
|
|
106
|
+
vnode: VNode;
|
|
107
|
+
exposed: any;
|
|
108
|
+
errors: any[];
|
|
109
|
+
}[], InputValidationResult[] | {
|
|
110
|
+
id: number | string;
|
|
111
|
+
vnode: VNode;
|
|
112
|
+
exposed: any;
|
|
113
|
+
errors: any[];
|
|
114
|
+
}[]>;
|
|
115
|
+
isValid: Ref<any, any> & {
|
|
116
|
+
readonly rxValue: any;
|
|
117
|
+
};
|
|
118
|
+
isDisabled: ComputedRef<boolean>;
|
|
119
|
+
isReadonly: ComputedRef<boolean>;
|
|
120
|
+
isLoading: ComputedRef<boolean>;
|
|
121
|
+
isValidating: import('vue').ShallowRef<boolean, boolean>;
|
|
122
|
+
validate: () => Promise<{
|
|
123
|
+
valid: boolean;
|
|
124
|
+
errors: {
|
|
125
|
+
id: number | string;
|
|
126
|
+
vnode: VNode;
|
|
127
|
+
exposed: any;
|
|
128
|
+
errors: any[];
|
|
129
|
+
}[];
|
|
130
|
+
}>;
|
|
131
|
+
};
|
|
132
|
+
export declare function useForm(): FormInstance | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LocaleModule, LocaleOptions } from '../../i18n/types';
|
|
2
|
+
import { RtlModule, RtlOptions, RtlProps } from './rtl';
|
|
3
|
+
|
|
4
|
+
export declare function createI18nModule(options?: LocaleOptions & RtlOptions): {
|
|
5
|
+
localeModule: LocaleModule;
|
|
6
|
+
rtlModule: RtlModule;
|
|
7
|
+
};
|
|
8
|
+
export declare function useI18n(): LocaleModule & RtlModule;
|
|
9
|
+
export declare function provideI18n(props: LocaleOptions & RtlProps): any;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { LocaleModule } from '../../i18n/types';
|
|
3
|
+
|
|
4
|
+
export declare const YUYEON_RTL_KEY: unique symbol;
|
|
5
|
+
export interface RtlOptions {
|
|
6
|
+
rtlOptions: Record<string, boolean>;
|
|
7
|
+
}
|
|
8
|
+
export interface RtlProps {
|
|
9
|
+
rtl?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface RtlModule {
|
|
12
|
+
rtl: Ref<boolean>;
|
|
13
|
+
rtlOptions: Ref<Record<string, boolean>>;
|
|
14
|
+
rtlClasses: Ref<string>;
|
|
15
|
+
}
|
|
16
|
+
export declare function createRtlModule(localeModule: LocaleModule, options?: RtlOptions): RtlModule;
|
|
17
|
+
export declare function createRtlProvideValue(localeModule: LocaleModule, rtlOptions: RtlModule['rtlOptions'], props: RtlProps): RtlModule;
|
|
18
|
+
export declare function useRtl(): {
|
|
19
|
+
rtl: any;
|
|
20
|
+
rtlClasses: any;
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const YUYEON_I18N_KEY: unique symbol;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { HTMLAttributes, InjectionKey, PropType, Ref, SVGAttributes } from 'vue';
|
|
2
|
+
import { JSXComponent } from '../types';
|
|
3
|
+
|
|
4
|
+
type IconComponent = JSXComponent<IconProps> | JSXComponent<SVGAttributes | HTMLAttributes>;
|
|
5
|
+
export type IconValue = string | (string | [path: string, opacity: number])[] | IconComponent | {
|
|
6
|
+
component: JSXComponent;
|
|
7
|
+
props?: any;
|
|
8
|
+
} | {
|
|
9
|
+
alias: string;
|
|
10
|
+
iconProps?: any;
|
|
11
|
+
};
|
|
12
|
+
export declare const IconPropOption: PropType<IconValue>;
|
|
13
|
+
type IconProps = {
|
|
14
|
+
tag: string;
|
|
15
|
+
icon?: IconValue;
|
|
16
|
+
disabled?: Boolean;
|
|
17
|
+
};
|
|
18
|
+
export interface IconSet {
|
|
19
|
+
component: IconComponent;
|
|
20
|
+
}
|
|
21
|
+
export declare const IconValue: PropType<IconValue>;
|
|
22
|
+
export type IconModuleOptions = {
|
|
23
|
+
defaultSet?: string;
|
|
24
|
+
sets?: Record<string, IconSet>;
|
|
25
|
+
aliases?: Partial<Record<string, any>>;
|
|
26
|
+
};
|
|
27
|
+
export declare const pressIconPropsOptions: <Defaults extends {
|
|
28
|
+
icon?: unknown;
|
|
29
|
+
tag?: unknown;
|
|
30
|
+
} = {}>(defaults?: Defaults | undefined) => {
|
|
31
|
+
icon: unknown extends Defaults["icon"] ? {
|
|
32
|
+
type: PropType<IconValue>;
|
|
33
|
+
} : Omit<{
|
|
34
|
+
type: PropType<IconValue>;
|
|
35
|
+
}, "type" | "default"> & {
|
|
36
|
+
type: PropType<unknown extends Defaults["icon"] ? IconValue : Defaults["icon"] | NonNullable<IconValue>>;
|
|
37
|
+
default: unknown extends Defaults["icon"] ? IconValue : Defaults["icon"] | NonNullable<IconValue>;
|
|
38
|
+
};
|
|
39
|
+
tag: unknown extends Defaults["tag"] ? {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
required: true;
|
|
42
|
+
} : Omit<{
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
required: true;
|
|
45
|
+
}, "type" | "default"> & {
|
|
46
|
+
type: PropType<unknown extends Defaults["tag"] ? string : string | Defaults["tag"]>;
|
|
47
|
+
default: unknown extends Defaults["tag"] ? string : string | Defaults["tag"];
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export declare const YComponentIcon: import('vue').DefineComponent<{
|
|
51
|
+
icon: {
|
|
52
|
+
type: PropType<IconValue>;
|
|
53
|
+
};
|
|
54
|
+
tag: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
required: true;
|
|
57
|
+
};
|
|
58
|
+
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string>;
|
|
59
|
+
export type YComponentIcon = InstanceType<typeof YComponentIcon>;
|
|
60
|
+
export declare const YSvgIcon: import('vue').DefineComponent<{
|
|
61
|
+
icon: {
|
|
62
|
+
type: PropType<IconValue>;
|
|
63
|
+
};
|
|
64
|
+
tag: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
required: true;
|
|
67
|
+
};
|
|
68
|
+
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string>;
|
|
69
|
+
export type YSvgIcon = InstanceType<typeof YSvgIcon>;
|
|
70
|
+
export declare const YUYEON_ICON_KEY: InjectionKey<Required<IconModuleOptions>>;
|
|
71
|
+
export declare function createIconModule(options?: IconModuleOptions): Required<IconModuleOptions>;
|
|
72
|
+
type IconInstance = {
|
|
73
|
+
component: IconComponent;
|
|
74
|
+
icon?: IconValue;
|
|
75
|
+
};
|
|
76
|
+
export declare function useIcon(iconProp: Ref<IconValue | undefined>): {
|
|
77
|
+
iconData: import('vue').ComputedRef<IconInstance>;
|
|
78
|
+
};
|
|
79
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './communication';
|
|
2
|
+
export * from './date';
|
|
3
|
+
export * from './resize-observer';
|
|
4
|
+
export * from './component';
|
|
5
|
+
export * from './focus';
|
|
6
|
+
export * from './scope';
|
|
7
|
+
export * from './timing';
|
|
8
|
+
export * from './transition';
|
|
9
|
+
export * from './vue-router';
|
|
10
|
+
export * from './theme';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MaybeRef, ComponentInternalInstance } from 'vue';
|
|
2
|
+
|
|
3
|
+
export declare const Y_LAYER_GROUP_CLASS_NAME = "y-layer-group";
|
|
4
|
+
export declare function useLayerGroup(props: {
|
|
5
|
+
layerGroup?: MaybeRef<string | Element | undefined>;
|
|
6
|
+
}): {
|
|
7
|
+
layerGroup: import('vue').ComputedRef<HTMLElement>;
|
|
8
|
+
layerGroupState: WeakMap<HTMLElement, Set<any>>;
|
|
9
|
+
getActiveLayers: () => ComponentInternalInstance[];
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InjectionKey } from 'vue';
|
|
2
|
+
|
|
3
|
+
declare function register(): void;
|
|
4
|
+
interface LayoutProvide {
|
|
5
|
+
register: typeof register;
|
|
6
|
+
unregister: (id: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const YUYEON_LAYOUT_KEY: InjectionKey<LayoutProvide>;
|
|
9
|
+
export declare function initLayoutSystem(): void;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
|
|
3
|
+
export interface ListItem<T = any> {
|
|
4
|
+
value: any;
|
|
5
|
+
text: string;
|
|
6
|
+
hide: boolean;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
props: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
value: any;
|
|
11
|
+
text: string;
|
|
12
|
+
};
|
|
13
|
+
children?: ListItem<T>[];
|
|
14
|
+
raw: T;
|
|
15
|
+
}
|
|
16
|
+
declare const listItemsPropsOptions: {
|
|
17
|
+
returnItem: BooleanConstructor;
|
|
18
|
+
items: {
|
|
19
|
+
type: import('vue').PropType<any[]>;
|
|
20
|
+
default: () => never[];
|
|
21
|
+
};
|
|
22
|
+
itemKey: Omit<{
|
|
23
|
+
type: import('vue').PropType<string>;
|
|
24
|
+
default: string;
|
|
25
|
+
}, "type" | "default"> & {
|
|
26
|
+
type: import('vue').PropType<string>;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
itemText: {
|
|
30
|
+
type: import('vue').PropType<string>;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
itemChildren: Omit<{
|
|
34
|
+
type: import('vue').PropType<boolean | string>;
|
|
35
|
+
default: string;
|
|
36
|
+
}, "type" | "default"> & {
|
|
37
|
+
type: import('vue').PropType<NonNullable<string | boolean>>;
|
|
38
|
+
default: NonNullable<string | boolean>;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
type ListItemProps = ExtractPropTypes<typeof listItemsPropsOptions>;
|
|
42
|
+
export declare const pressListItemsPropsOptions: <Defaults extends {
|
|
43
|
+
returnItem?: unknown;
|
|
44
|
+
items?: unknown;
|
|
45
|
+
itemKey?: unknown;
|
|
46
|
+
itemText?: unknown;
|
|
47
|
+
itemChildren?: unknown;
|
|
48
|
+
} = {}>(defaults?: Defaults | undefined) => {
|
|
49
|
+
returnItem: unknown extends Defaults["returnItem"] ? BooleanConstructor : {
|
|
50
|
+
type: import('vue').PropType<unknown extends Defaults["returnItem"] ? boolean : boolean | Defaults["returnItem"]>;
|
|
51
|
+
default: unknown extends Defaults["returnItem"] ? boolean : boolean | Defaults["returnItem"];
|
|
52
|
+
};
|
|
53
|
+
items: unknown extends Defaults["items"] ? {
|
|
54
|
+
type: import('vue').PropType<any[]>;
|
|
55
|
+
default: () => never[];
|
|
56
|
+
} : Omit<{
|
|
57
|
+
type: import('vue').PropType<any[]>;
|
|
58
|
+
default: () => never[];
|
|
59
|
+
}, "type" | "default"> & {
|
|
60
|
+
type: import('vue').PropType<unknown extends Defaults["items"] ? any[] : any[] | Defaults["items"]>;
|
|
61
|
+
default: unknown extends Defaults["items"] ? any[] : any[] | Defaults["items"];
|
|
62
|
+
};
|
|
63
|
+
itemKey: unknown extends Defaults["itemKey"] ? Omit<{
|
|
64
|
+
type: import('vue').PropType<string>;
|
|
65
|
+
default: string;
|
|
66
|
+
}, "type" | "default"> & {
|
|
67
|
+
type: import('vue').PropType<string>;
|
|
68
|
+
default: string;
|
|
69
|
+
} : Omit<Omit<{
|
|
70
|
+
type: import('vue').PropType<string>;
|
|
71
|
+
default: string;
|
|
72
|
+
}, "type" | "default"> & {
|
|
73
|
+
type: import('vue').PropType<string>;
|
|
74
|
+
default: string;
|
|
75
|
+
}, "type" | "default"> & {
|
|
76
|
+
type: import('vue').PropType<unknown extends Defaults["itemKey"] ? string : string | Defaults["itemKey"]>;
|
|
77
|
+
default: unknown extends Defaults["itemKey"] ? string : string | Defaults["itemKey"];
|
|
78
|
+
};
|
|
79
|
+
itemText: unknown extends Defaults["itemText"] ? {
|
|
80
|
+
type: import('vue').PropType<string>;
|
|
81
|
+
default: string;
|
|
82
|
+
} : Omit<{
|
|
83
|
+
type: import('vue').PropType<string>;
|
|
84
|
+
default: string;
|
|
85
|
+
}, "type" | "default"> & {
|
|
86
|
+
type: import('vue').PropType<unknown extends Defaults["itemText"] ? string : string | Defaults["itemText"]>;
|
|
87
|
+
default: unknown extends Defaults["itemText"] ? string : string | Defaults["itemText"];
|
|
88
|
+
};
|
|
89
|
+
itemChildren: unknown extends Defaults["itemChildren"] ? Omit<{
|
|
90
|
+
type: import('vue').PropType<boolean | string>;
|
|
91
|
+
default: string;
|
|
92
|
+
}, "type" | "default"> & {
|
|
93
|
+
type: import('vue').PropType<NonNullable<string | boolean>>;
|
|
94
|
+
default: NonNullable<string | boolean>;
|
|
95
|
+
} : Omit<Omit<{
|
|
96
|
+
type: import('vue').PropType<boolean | string>;
|
|
97
|
+
default: string;
|
|
98
|
+
}, "type" | "default"> & {
|
|
99
|
+
type: import('vue').PropType<NonNullable<string | boolean>>;
|
|
100
|
+
default: NonNullable<string | boolean>;
|
|
101
|
+
}, "type" | "default"> & {
|
|
102
|
+
type: import('vue').PropType<unknown extends Defaults["itemChildren"] ? NonNullable<string | boolean> : Defaults["itemChildren"] | NonNullable<NonNullable<string | boolean>>>;
|
|
103
|
+
default: unknown extends Defaults["itemChildren"] ? NonNullable<string | boolean> : Defaults["itemChildren"] | NonNullable<NonNullable<string | boolean>>;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
export declare function refineListItems(props: Omit<ListItemProps, 'items'>, items: any[]): ListItem<any>[];
|
|
107
|
+
export declare function refineListItem(props: Omit<ListItemProps, 'items'>, item: any): ListItem;
|
|
108
|
+
export declare function useItems(props: ListItemProps): {
|
|
109
|
+
items: import('vue').ComputedRef<ListItem<any>[]>;
|
|
110
|
+
toEmitItems: (items: any[]) => any[];
|
|
111
|
+
toRefineItems: (values: any[]) => ListItem<any>[];
|
|
112
|
+
};
|
|
113
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare function useResizeObserver(callback?: ResizeObserverCallback): {
|
|
2
|
+
resizeObservedRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
3
|
+
contentRect: Readonly<import('vue').Ref<{
|
|
4
|
+
readonly bottom: number;
|
|
5
|
+
readonly height: number;
|
|
6
|
+
readonly left: number;
|
|
7
|
+
readonly right: number;
|
|
8
|
+
readonly top: number;
|
|
9
|
+
readonly width: number;
|
|
10
|
+
readonly x: number;
|
|
11
|
+
readonly y: number;
|
|
12
|
+
readonly toJSON: () => any;
|
|
13
|
+
} | undefined, {
|
|
14
|
+
readonly bottom: number;
|
|
15
|
+
readonly height: number;
|
|
16
|
+
readonly left: number;
|
|
17
|
+
readonly right: number;
|
|
18
|
+
readonly top: number;
|
|
19
|
+
readonly width: number;
|
|
20
|
+
readonly x: number;
|
|
21
|
+
readonly y: number;
|
|
22
|
+
readonly toJSON: () => any;
|
|
23
|
+
} | undefined>>;
|
|
24
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
|
|
3
|
+
export declare const styleColorPropsOptions: {
|
|
4
|
+
color: StringConstructor;
|
|
5
|
+
background: StringConstructor;
|
|
6
|
+
backgroundOpacity: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare function useStyleColor(props: ExtractPropTypes<typeof styleColorPropsOptions>, name: string): {
|
|
11
|
+
colorVars: import('vue').ComputedRef<{
|
|
12
|
+
[x: string]: string | undefined;
|
|
13
|
+
}>;
|
|
14
|
+
};
|