yuyeon 0.3.4-beta.15 → 0.3.4-beta.17

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.
Files changed (269) hide show
  1. package/dist/yuyeon.js +336 -336
  2. package/dist/yuyeon.umd.cjs +1 -1
  3. package/lib/components/img/YImg.js +6 -6
  4. package/lib/components/img/YImg.js.map +1 -1
  5. package/lib/directives/plate-wave/index.js.map +1 -1
  6. package/package.json +1 -1
  7. package/types/components/dialog/YDialog.d.ts +4 -4
  8. package/types/components/img/YImg.d.ts +4 -1
  9. package/types/components/img/index.d.ts +1 -0
  10. package/types/components/index.d.ts +1 -0
  11. package/types/components/layer/YLayer.d.ts +2 -2
  12. package/types/components/menu/YMenu.d.ts +4 -4
  13. package/types/composables/coordinate/types.d.ts +1 -0
  14. package/types/directives/plate-wave/index.d.ts +1 -1
  15. package/types/shims.d.ts +5 -4
  16. package/types/components/table/composibles/header.d.ts +0 -207
  17. package/types/components/table/composibles/items.d.ts +0 -55
  18. package/types/components/table/composibles/measure.d.ts +0 -8
  19. package/types/components/table/composibles/options.d.ts +0 -11
  20. package/types/components/table/composibles/pagination.d.ts +0 -81
  21. package/types/components/table/composibles/selection.d.ts +0 -82
  22. package/types/components/table/composibles/sorted-items.d.ts +0 -7
  23. package/types/components/table/composibles/sorting.d.ts +0 -62
  24. package/types/src/abstract/items.d.ts +0 -49
  25. package/types/src/components/alert/YAlert.d.ts +0 -13
  26. package/types/src/components/alert/index.d.ts +0 -1
  27. package/types/src/components/app/YApp.d.ts +0 -8
  28. package/types/src/components/app/index.d.ts +0 -1
  29. package/types/src/components/badge/YBadge.d.ts +0 -126
  30. package/types/src/components/badge/index.d.ts +0 -1
  31. package/types/src/components/bench/YBench.d.ts +0 -4
  32. package/types/src/components/bench/index.d.ts +0 -1
  33. package/types/src/components/button/YButton.d.ts +0 -189
  34. package/types/src/components/button/index.d.ts +0 -1
  35. package/types/src/components/card/YCard.d.ts +0 -9
  36. package/types/src/components/card/YCardBody.d.ts +0 -2
  37. package/types/src/components/card/YCardFooter.d.ts +0 -2
  38. package/types/src/components/card/YCardHeader.d.ts +0 -2
  39. package/types/src/components/card/index.d.ts +0 -4
  40. package/types/src/components/checkbox/YCheckbox.d.ts +0 -23
  41. package/types/src/components/checkbox/YInputCheckbox.d.ts +0 -31
  42. package/types/src/components/checkbox/index.d.ts +0 -4
  43. package/types/src/components/chip/YChip.d.ts +0 -37
  44. package/types/src/components/chip/index.d.ts +0 -1
  45. package/types/src/components/date-picker/YDateCalendar.d.ts +0 -115
  46. package/types/src/components/date-picker/YDatePicker.d.ts +0 -94
  47. package/types/src/components/date-picker/YDatePickerControl.d.ts +0 -97
  48. package/types/src/components/date-picker/YMonthPicker.d.ts +0 -25
  49. package/types/src/components/date-picker/YYearPicker.d.ts +0 -38
  50. package/types/src/components/date-picker/index.d.ts +0 -3
  51. package/types/src/components/default-provider/YDefaultProvider.d.ts +0 -0
  52. package/types/src/components/default-provider/index.d.ts +0 -0
  53. package/types/src/components/dialog/YDialog.d.ts +0 -715
  54. package/types/src/components/dialog/index.d.ts +0 -1
  55. package/types/src/components/divider/YDivider.d.ts +0 -14
  56. package/types/src/components/divider/index.d.ts +0 -1
  57. package/types/src/components/draggable/YDraggable.d.ts +0 -36
  58. package/types/src/components/draggable/index.d.ts +0 -1
  59. package/types/src/components/dropdown/YDropdown.d.ts +0 -574
  60. package/types/src/components/dropdown/index.d.ts +0 -1
  61. package/types/src/components/field-input/YFieldInput.d.ts +0 -322
  62. package/types/src/components/field-input/index.d.ts +0 -1
  63. package/types/src/components/form/YForm.d.ts +0 -20
  64. package/types/src/components/form/index.d.ts +0 -1
  65. package/types/src/components/hover/YHover.d.ts +0 -57
  66. package/types/src/components/hover/index.d.ts +0 -1
  67. package/types/src/components/icon/YIcon.d.ts +0 -67
  68. package/types/src/components/icon/index.d.ts +0 -1
  69. package/types/src/components/icons/YIconCheckbox.d.ts +0 -6
  70. package/types/src/components/icons/YIconClear.d.ts +0 -1
  71. package/types/src/components/icons/YIconDropdown.d.ts +0 -1
  72. package/types/src/components/icons/YIconExpand.d.ts +0 -1
  73. package/types/src/components/icons/YIconPageControl.d.ts +0 -14
  74. package/types/src/components/icons/YIconSort.d.ts +0 -10
  75. package/types/src/components/icons/index.d.ts +0 -51
  76. package/types/src/components/img/YImg.d.ts +0 -136
  77. package/types/src/components/img/index.d.ts +0 -1
  78. package/types/src/components/index.d.ts +0 -39
  79. package/types/src/components/input/YInput.d.ts +0 -249
  80. package/types/src/components/input/index.d.ts +0 -1
  81. package/types/src/components/ip-field/YIpv4Field.d.ts +0 -65
  82. package/types/src/components/ip-field/index.d.ts +0 -1
  83. package/types/src/components/layer/YLayer.d.ts +0 -436
  84. package/types/src/components/layer/active-delay.d.ts +0 -4
  85. package/types/src/components/layer/active-stack.d.ts +0 -16
  86. package/types/src/components/layer/base.d.ts +0 -28
  87. package/types/src/components/layer/content.d.ts +0 -21
  88. package/types/src/components/layer/index.d.ts +0 -1
  89. package/types/src/components/layer/scroll-strategies.d.ts +0 -41
  90. package/types/src/components/list/YList.d.ts +0 -19
  91. package/types/src/components/list/YListItem.d.ts +0 -42
  92. package/types/src/components/list/index.d.ts +0 -2
  93. package/types/src/components/loading/YSpinnerRing.d.ts +0 -3
  94. package/types/src/components/loading/index.d.ts +0 -1
  95. package/types/src/components/menu/YMenu.d.ts +0 -517
  96. package/types/src/components/menu/index.d.ts +0 -1
  97. package/types/src/components/navigation/YNavigation.d.ts +0 -1
  98. package/types/src/components/navigation/index.d.ts +0 -1
  99. package/types/src/components/pagination/YPagination.d.ts +0 -137
  100. package/types/src/components/pagination/index.d.ts +0 -1
  101. package/types/src/components/panel/YDividePanel.d.ts +0 -5
  102. package/types/src/components/panel/index.d.ts +0 -1
  103. package/types/src/components/plate/YPlate.d.ts +0 -9
  104. package/types/src/components/plate/index.d.ts +0 -1
  105. package/types/src/components/progress-bar/YProgressBar.d.ts +0 -38
  106. package/types/src/components/progress-bar/index.d.ts +0 -1
  107. package/types/src/components/progress-ring/YProgressRing.d.ts +0 -34
  108. package/types/src/components/progress-ring/index.d.ts +0 -1
  109. package/types/src/components/radio/YRadio.d.ts +0 -25
  110. package/types/src/components/radio/YRadioIcon.d.ts +0 -6
  111. package/types/src/components/radio/index.d.ts +0 -2
  112. package/types/src/components/select/YSelect.d.ts +0 -1221
  113. package/types/src/components/select/index.d.ts +0 -1
  114. package/types/src/components/slider/YSlider.d.ts +0 -16
  115. package/types/src/components/slider/index.d.ts +0 -1
  116. package/types/src/components/slider/slider.d.ts +0 -0
  117. package/types/src/components/snackbar/YSnackbar.d.ts +0 -452
  118. package/types/src/components/snackbar/index.d.ts +0 -1
  119. package/types/src/components/switch/YSwitch.d.ts +0 -137
  120. package/types/src/components/switch/index.d.ts +0 -1
  121. package/types/src/components/tab/YTab.d.ts +0 -218
  122. package/types/src/components/tab/YTabs.d.ts +0 -98
  123. package/types/src/components/tab/index.d.ts +0 -3
  124. package/types/src/components/tab/shared.d.ts +0 -4
  125. package/types/src/components/tab/types.d.ts +0 -5
  126. package/types/src/components/table/YDataTable.d.ts +0 -459
  127. package/types/src/components/table/YDataTableBody.d.ts +0 -99
  128. package/types/src/components/table/YDataTableCell.d.ts +0 -32
  129. package/types/src/components/table/YDataTableControl.d.ts +0 -68
  130. package/types/src/components/table/YDataTableHead.d.ts +0 -54
  131. package/types/src/components/table/YDataTableLayer.d.ts +0 -13
  132. package/types/src/components/table/YDataTableLayerRow.d.ts +0 -22
  133. package/types/src/components/table/YDataTableLayerRows.d.ts +0 -9
  134. package/types/src/components/table/YDataTableRow.d.ts +0 -53
  135. package/types/src/components/table/YDataTableServer.d.ts +0 -502
  136. package/types/src/components/table/YTable.d.ts +0 -65
  137. package/types/src/components/table/composables/expand.d.ts +0 -42
  138. package/types/src/components/table/composables/header.d.ts +0 -175
  139. package/types/src/components/table/composables/items.d.ts +0 -55
  140. package/types/src/components/table/composables/measure.d.ts +0 -8
  141. package/types/src/components/table/composables/options.d.ts +0 -11
  142. package/types/src/components/table/composables/pagination.d.ts +0 -81
  143. package/types/src/components/table/composables/provides.d.ts +0 -15
  144. package/types/src/components/table/composables/selection.d.ts +0 -82
  145. package/types/src/components/table/composables/sorted-items.d.ts +0 -7
  146. package/types/src/components/table/composables/sorting.d.ts +0 -56
  147. package/types/src/components/table/index.d.ts +0 -10
  148. package/types/src/components/table/types/common.d.ts +0 -2
  149. package/types/src/components/table/types/header.d.ts +0 -25
  150. package/types/src/components/table/types/index.d.ts +0 -59
  151. package/types/src/components/table/types/item.d.ts +0 -23
  152. package/types/src/components/table/types/row.d.ts +0 -4
  153. package/types/src/components/text-ellipsis/YTextEllipsis.d.ts +0 -11
  154. package/types/src/components/text-ellipsis/index.d.ts +0 -1
  155. package/types/src/components/text-highlighter/YTextHighlighter.d.ts +0 -26
  156. package/types/src/components/text-highlighter/index.d.ts +0 -1
  157. package/types/src/components/text-interpolation/YTi.d.ts +0 -11
  158. package/types/src/components/text-interpolation/index.d.ts +0 -1
  159. package/types/src/components/textarea/YTextarea.d.ts +0 -583
  160. package/types/src/components/textarea/index.d.ts +0 -1
  161. package/types/src/components/toggle-button/YToggleButton.d.ts +0 -4
  162. package/types/src/components/toggle-button/index.d.ts +0 -1
  163. package/types/src/components/tooltip/YTooltip.d.ts +0 -502
  164. package/types/src/components/tooltip/index.d.ts +0 -1
  165. package/types/src/components/transitions/expand-transition.d.ts +0 -20
  166. package/types/src/components/transitions/index.d.ts +0 -38
  167. package/types/src/components/tree-view/YTreeView.d.ts +0 -172
  168. package/types/src/components/tree-view/YTreeViewNode.d.ts +0 -176
  169. package/types/src/components/tree-view/index.d.ts +0 -2
  170. package/types/src/components/tree-view/tree-view.d.ts +0 -51
  171. package/types/src/components/tree-view/types.d.ts +0 -17
  172. package/types/src/components/tree-view/util.d.ts +0 -6
  173. package/types/src/composables/choice-link.d.ts +0 -3
  174. package/types/src/composables/choice.d.ts +0 -113
  175. package/types/src/composables/communication.d.ts +0 -8
  176. package/types/src/composables/component.d.ts +0 -3
  177. package/types/src/composables/coordinate/arrangement.d.ts +0 -7
  178. package/types/src/composables/coordinate/index.d.ts +0 -87
  179. package/types/src/composables/coordinate/levitation.d.ts +0 -7
  180. package/types/src/composables/coordinate/types.d.ts +0 -8
  181. package/types/src/composables/coordinate/utils/point.d.ts +0 -22
  182. package/types/src/composables/date/factory.d.ts +0 -3
  183. package/types/src/composables/date/index.d.ts +0 -12
  184. package/types/src/composables/date/setting.d.ts +0 -5
  185. package/types/src/composables/date/types.d.ts +0 -13
  186. package/types/src/composables/defaults/index.d.ts +0 -11
  187. package/types/src/composables/defaults/share.d.ts +0 -4
  188. package/types/src/composables/defaults/types.d.ts +0 -12
  189. package/types/src/composables/dimension.d.ts +0 -54
  190. package/types/src/composables/focus.d.ts +0 -30
  191. package/types/src/composables/form.d.ts +0 -132
  192. package/types/src/composables/i18n/index.d.ts +0 -9
  193. package/types/src/composables/i18n/locale.d.ts +0 -3
  194. package/types/src/composables/i18n/rtl.d.ts +0 -21
  195. package/types/src/composables/i18n/share.d.ts +0 -1
  196. package/types/src/composables/icon.d.ts +0 -79
  197. package/types/src/composables/index.d.ts +0 -10
  198. package/types/src/composables/layer-group.d.ts +0 -10
  199. package/types/src/composables/layout.d.ts +0 -10
  200. package/types/src/composables/list-items.d.ts +0 -113
  201. package/types/src/composables/progress.d.ts +0 -4
  202. package/types/src/composables/ref.d.ts +0 -6
  203. package/types/src/composables/resize-observer.d.ts +0 -24
  204. package/types/src/composables/scope.d.ts +0 -3
  205. package/types/src/composables/style-color.d.ts +0 -14
  206. package/types/src/composables/theme/factory.d.ts +0 -4
  207. package/types/src/composables/theme/helper.d.ts +0 -3
  208. package/types/src/composables/theme/index.d.ts +0 -57
  209. package/types/src/composables/theme/setting.d.ts +0 -11
  210. package/types/src/composables/theme/types.d.ts +0 -29
  211. package/types/src/composables/timing.d.ts +0 -20
  212. package/types/src/composables/transition.d.ts +0 -40
  213. package/types/src/composables/validation.d.ts +0 -82
  214. package/types/src/composables/vue-router.d.ts +0 -43
  215. package/types/src/declares.d.ts +0 -1
  216. package/types/src/directives/complement-click/index.d.ts +0 -26
  217. package/types/src/directives/index.d.ts +0 -2
  218. package/types/src/directives/plate-wave/index.d.ts +0 -20
  219. package/types/src/directives/theme-class/index.d.ts +0 -4
  220. package/types/src/etc/index.d.ts +0 -1
  221. package/types/src/globals.d.ts +0 -20
  222. package/types/src/i18n/built-in.d.ts +0 -3
  223. package/types/src/i18n/config.d.ts +0 -81
  224. package/types/src/i18n/types.d.ts +0 -20
  225. package/types/src/index.d.ts +0 -13
  226. package/types/src/locales/en.d.ts +0 -6
  227. package/types/src/locales/index.d.ts +0 -2
  228. package/types/src/locales/ko.d.ts +0 -6
  229. package/types/src/mixins/di.d.ts +0 -2
  230. package/types/src/mixins/rebind-attrs.d.ts +0 -5
  231. package/types/src/shims.d.ts +0 -65
  232. package/types/src/types/index.d.ts +0 -9
  233. package/types/src/util/anchor.d.ts +0 -23
  234. package/types/src/util/array.d.ts +0 -2
  235. package/types/src/util/collection.d.ts +0 -1
  236. package/types/src/util/color/apca.d.ts +0 -29
  237. package/types/src/util/color/const.d.ts +0 -5
  238. package/types/src/util/color/contrast/contrast.d.ts +0 -74
  239. package/types/src/util/color/conversion.d.ts +0 -131
  240. package/types/src/util/color/hct/cam16.d.ts +0 -116
  241. package/types/src/util/color/hct/hct-solver.d.ts +0 -131
  242. package/types/src/util/color/hct/hct.d.ts +0 -71
  243. package/types/src/util/color/hct/viewing-conditions.d.ts +0 -58
  244. package/types/src/util/color/index.d.ts +0 -5
  245. package/types/src/util/color/palettes/core-palette.d.ts +0 -44
  246. package/types/src/util/color/palettes/tonal-palette.d.ts +0 -40
  247. package/types/src/util/color/types.d.ts +0 -14
  248. package/types/src/util/color/utils/math-utils.d.ts +0 -82
  249. package/types/src/util/common.d.ts +0 -17
  250. package/types/src/util/component/component.d.ts +0 -5
  251. package/types/src/util/component/index.d.ts +0 -11
  252. package/types/src/util/component/inject-self.d.ts +0 -3
  253. package/types/src/util/component/props.d.ts +0 -32
  254. package/types/src/util/component/types.d.ts +0 -21
  255. package/types/src/util/date/adapters/yuyeon-date-adapter.d.ts +0 -43
  256. package/types/src/util/date/built-in.d.ts +0 -41
  257. package/types/src/util/date/index.d.ts +0 -3
  258. package/types/src/util/date/types.d.ts +0 -167
  259. package/types/src/util/debounce.d.ts +0 -11
  260. package/types/src/util/dom.d.ts +0 -5
  261. package/types/src/util/environments.d.ts +0 -6
  262. package/types/src/util/frame-scheduler.d.ts +0 -7
  263. package/types/src/util/index.d.ts +0 -16
  264. package/types/src/util/reactivity.d.ts +0 -7
  265. package/types/src/util/rect.d.ts +0 -36
  266. package/types/src/util/scroll.d.ts +0 -3
  267. package/types/src/util/string.d.ts +0 -9
  268. package/types/src/util/ui.d.ts +0 -4
  269. package/types/src/util/validation.d.ts +0 -3
@@ -1,7 +0,0 @@
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
- };
@@ -1,8 +0,0 @@
1
- import { Ref } from 'vue';
2
-
3
- export interface CoordinateState {
4
- contentEl: Ref<HTMLElement | undefined>;
5
- base: Ref<HTMLElement | [x: number, y: number] | undefined>;
6
- active: Ref<boolean>;
7
- placement?: Ref<any>;
8
- }
@@ -1,22 +0,0 @@
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 {};
@@ -1,3 +0,0 @@
1
- import { LocaleModule } from '../../i18n/types';
2
-
3
- export declare function constructAdapter(options: any, locale: LocaleModule): any;
@@ -1,12 +0,0 @@
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;
@@ -1,5 +0,0 @@
1
- import { DateOptions } from './types';
2
-
3
- export declare function configureOptions(options?: DateOptions): {
4
- [x: string]: any;
5
- };
@@ -1,13 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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>;
@@ -1,4 +0,0 @@
1
- import { InjectionKey, Ref } from 'vue';
2
- import { DefaultsModuleInstance } from './types';
3
-
4
- export declare const YUYEON_DEFAULTS_KEY: InjectionKey<Ref<DefaultsModuleInstance>>;
@@ -1,12 +0,0 @@
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
- };
@@ -1,54 +0,0 @@
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 {};
@@ -1,30 +0,0 @@
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 {};
@@ -1,132 +0,0 @@
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;
@@ -1,9 +0,0 @@
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;
@@ -1,3 +0,0 @@
1
- import { LocaleOptions } from '../../i18n/types';
2
-
3
- export declare function createLocaleModule(options?: LocaleOptions): import('../../i18n/types').LocaleModule;
@@ -1,21 +0,0 @@
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
- };
@@ -1 +0,0 @@
1
- export declare const YUYEON_I18N_KEY: unique symbol;
@@ -1,79 +0,0 @@
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 {};
@@ -1,10 +0,0 @@
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';
@@ -1,10 +0,0 @@
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
- };
@@ -1,10 +0,0 @@
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 {};
@@ -1,113 +0,0 @@
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 {};
@@ -1,4 +0,0 @@
1
- export declare function useProgress(props: any): {
2
- numValue: import('vue').ComputedRef<number>;
3
- delta: import('vue').ShallowRef<number, number>;
4
- };
@@ -1,6 +0,0 @@
1
- import { Ref } from 'vue';
2
-
3
- export declare function useRefs<T extends {}>(): {
4
- refs: Ref<(T | undefined)[], (T | undefined)[]>;
5
- updateRef: (e: any, i: number) => void;
6
- };
@@ -1,24 +0,0 @@
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
- };
@@ -1,3 +0,0 @@
1
- import { WatchSource } from 'vue';
2
-
3
- export declare function useToggleScope(source: WatchSource<boolean>, fn: (reset: () => void) => void): void;