yuyeon 0.3.3 → 0.3.4-beta.13
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 +3109 -3082
- package/dist/yuyeon.umd.cjs +3 -3
- package/lib/abstract/items.js.map +1 -1
- package/lib/components/alert/YAlert.js +3 -4
- package/lib/components/alert/YAlert.js.map +1 -1
- package/lib/components/alert/index.js.map +1 -1
- package/lib/components/app/YApp.js +2 -2
- package/lib/components/app/YApp.js.map +1 -1
- package/lib/components/app/index.js.map +1 -1
- package/lib/components/badge/YBadge.js +3 -3
- package/lib/components/badge/YBadge.js.map +1 -1
- package/lib/components/badge/YBadge.scss +3 -2
- package/lib/components/badge/index.js.map +1 -1
- package/lib/components/bench/YBench.js +3 -4
- package/lib/components/bench/YBench.js.map +1 -1
- package/lib/components/bench/index.js.map +1 -1
- package/lib/components/button/YButton.js +1 -2
- package/lib/components/button/YButton.js.map +1 -1
- package/lib/components/button/index.js.map +1 -1
- package/lib/components/card/YCard.js.map +1 -1
- package/lib/components/card/YCard.scss +2 -2
- package/lib/components/card/YCardBody.js.map +1 -1
- package/lib/components/card/YCardFooter.js.map +1 -1
- package/lib/components/card/YCardHeader.js.map +1 -1
- package/lib/components/card/index.js.map +1 -1
- package/lib/components/checkbox/YCheckbox.js +1 -2
- package/lib/components/checkbox/YCheckbox.js.map +1 -1
- package/lib/components/checkbox/YInputCheckbox.js +1 -2
- package/lib/components/checkbox/YInputCheckbox.js.map +1 -1
- package/lib/components/checkbox/index.js.map +1 -1
- package/lib/components/chip/YChip.js +1 -2
- package/lib/components/chip/YChip.js.map +1 -1
- package/lib/components/chip/index.js.map +1 -1
- package/lib/components/date-picker/YDateCalendar.js +55 -53
- package/lib/components/date-picker/YDateCalendar.js.map +1 -1
- package/lib/components/date-picker/YDatePicker.js +24 -25
- package/lib/components/date-picker/YDatePicker.js.map +1 -1
- package/lib/components/date-picker/YDatePickerControl.js +19 -20
- package/lib/components/date-picker/YDatePickerControl.js.map +1 -1
- package/lib/components/date-picker/YMonthPicker.js +10 -11
- package/lib/components/date-picker/YMonthPicker.js.map +1 -1
- package/lib/components/date-picker/YYearPicker.js +11 -13
- package/lib/components/date-picker/YYearPicker.js.map +1 -1
- package/lib/components/date-picker/index.js.map +1 -1
- package/lib/components/default-provider/YDefaultProvider.js.map +1 -1
- package/lib/components/default-provider/index.js.map +1 -1
- package/lib/components/dialog/YDialog.js +32 -32
- package/lib/components/dialog/YDialog.js.map +1 -1
- package/lib/components/dialog/index.js.map +1 -1
- package/lib/components/divider/YDivider.js +5 -5
- package/lib/components/divider/YDivider.js.map +1 -1
- package/lib/components/divider/index.js.map +1 -1
- package/lib/components/draggable/YDraggable.js +10 -11
- package/lib/components/draggable/YDraggable.js.map +1 -1
- package/lib/components/draggable/index.js +2 -0
- package/lib/components/draggable/index.js.map +1 -0
- package/lib/components/dropdown/YDropdown.js +16 -17
- package/lib/components/dropdown/YDropdown.js.map +1 -1
- package/lib/components/dropdown/index.js.map +1 -1
- package/lib/components/field-input/YFieldInput.js +42 -40
- package/lib/components/field-input/YFieldInput.js.map +1 -1
- package/lib/components/field-input/index.js.map +1 -1
- package/lib/components/form/YForm.js +12 -14
- package/lib/components/form/YForm.js.map +1 -1
- package/lib/components/form/index.js.map +1 -1
- package/lib/components/hover/YHover.js +9 -8
- package/lib/components/hover/YHover.js.map +1 -1
- package/lib/components/hover/index.js.map +1 -1
- package/lib/components/icon/YIcon.js +2 -4
- package/lib/components/icon/YIcon.js.map +1 -1
- package/lib/components/icon/index.js.map +1 -1
- package/lib/components/icons/YIconCheckbox.js +7 -6
- package/lib/components/icons/YIconCheckbox.js.map +1 -1
- package/lib/components/icons/YIconClear.js +2 -1
- package/lib/components/icons/YIconClear.js.map +1 -1
- package/lib/components/icons/YIconDropdown.js +2 -1
- package/lib/components/icons/YIconDropdown.js.map +1 -1
- package/lib/components/icons/YIconExpand.js +1 -0
- package/lib/components/icons/YIconExpand.js.map +1 -1
- package/lib/components/icons/YIconPageControl.js +7 -6
- package/lib/components/icons/YIconPageControl.js.map +1 -1
- package/lib/components/icons/YIconSort.js +6 -5
- package/lib/components/icons/YIconSort.js.map +1 -1
- package/lib/components/icons/YIconSort.scss +2 -0
- package/lib/components/icons/index.js.map +1 -1
- package/lib/components/img/YImg.js +30 -31
- package/lib/components/img/YImg.js.map +1 -1
- package/lib/components/img/index.js.map +1 -1
- package/lib/components/index.js.map +1 -1
- package/lib/components/input/YInput.js +1 -2
- package/lib/components/input/YInput.js.map +1 -1
- package/lib/components/input/YInput.scss +10 -9
- package/lib/components/input/index.js.map +1 -1
- package/lib/components/ip-field/YIpv4Field.js +1 -2
- package/lib/components/ip-field/YIpv4Field.js.map +1 -1
- package/lib/components/ip-field/index.js.map +1 -1
- package/lib/components/layer/YLayer.js +4 -3
- package/lib/components/layer/YLayer.js.map +1 -1
- package/lib/components/layer/active-delay.js.map +1 -1
- package/lib/components/layer/active-stack.js.map +1 -1
- package/lib/components/layer/base.js.map +1 -1
- package/lib/components/layer/content.js.map +1 -1
- package/lib/components/layer/index.js.map +1 -1
- package/lib/components/layer/scroll-strategies.js.map +1 -1
- package/lib/components/list/YList.js +1 -2
- package/lib/components/list/YList.js.map +1 -1
- package/lib/components/list/YListItem.js +1 -2
- package/lib/components/list/YListItem.js.map +1 -1
- package/lib/components/list/index.js.map +1 -1
- package/lib/components/loading/YSpinnerRing.js.map +1 -1
- package/lib/components/loading/index.js.map +1 -1
- package/lib/components/menu/YMenu.js +5 -8
- package/lib/components/menu/YMenu.js.map +1 -1
- package/lib/components/menu/YMenu.scss +3 -4
- package/lib/components/menu/index.js.map +1 -1
- package/lib/components/navigation/YNavigation.js +1 -2
- package/lib/components/navigation/YNavigation.js.map +1 -1
- package/lib/components/navigation/index.js.map +1 -1
- package/lib/components/pagination/YPagination.js +1 -2
- package/lib/components/pagination/YPagination.js.map +1 -1
- package/lib/components/pagination/index.js.map +1 -1
- package/lib/components/panel/YDividePanel.js +1 -2
- package/lib/components/panel/YDividePanel.js.map +1 -1
- package/lib/components/panel/YDividePanel.scss +1 -0
- package/lib/components/panel/index.js.map +1 -1
- package/lib/components/plate/YPlate.js +3 -4
- package/lib/components/plate/YPlate.js.map +1 -1
- package/lib/components/plate/index.js.map +1 -1
- package/lib/components/progress-bar/YProgressBar.js +1 -2
- package/lib/components/progress-bar/YProgressBar.js.map +1 -1
- package/lib/components/progress-bar/index.js.map +1 -1
- package/lib/components/progress-ring/YProgressRing.js +3 -4
- package/lib/components/progress-ring/YProgressRing.js.map +1 -1
- package/lib/components/progress-ring/index.js.map +1 -1
- package/lib/components/radio/YRadio.js +58 -0
- package/lib/components/radio/YRadio.js.map +1 -0
- package/lib/components/radio/YRadio.scss +38 -0
- package/lib/components/radio/YRadioIcon.js +33 -0
- package/lib/components/radio/YRadioIcon.js.map +1 -0
- package/lib/components/radio/YRadioIcon.scss +43 -0
- package/lib/components/radio/index.js +3 -0
- package/lib/components/radio/index.js.map +1 -0
- package/lib/components/select/YSelect.js +41 -43
- package/lib/components/select/YSelect.js.map +1 -1
- package/lib/components/select/index.js.map +1 -1
- package/lib/components/slider/YSlider.js.map +1 -1
- package/lib/components/slider/index.js.map +1 -1
- package/lib/components/slider/slider.js.map +1 -1
- package/lib/components/snackbar/YSnackbar.js +6 -6
- package/lib/components/snackbar/YSnackbar.js.map +1 -1
- package/lib/components/snackbar/index.js.map +1 -1
- package/lib/components/switch/YSwitch.js +1 -2
- package/lib/components/switch/YSwitch.js.map +1 -1
- package/lib/components/switch/index.js.map +1 -1
- package/lib/components/tab/YTab.js +2 -3
- package/lib/components/tab/YTab.js.map +1 -1
- package/lib/components/tab/YTab.scss +1 -1
- package/lib/components/tab/YTabs.js +1 -2
- package/lib/components/tab/YTabs.js.map +1 -1
- package/lib/components/tab/index.js.map +1 -1
- package/lib/components/tab/shared.js.map +1 -1
- package/lib/components/tab/types.js.map +1 -1
- package/lib/components/table/YDataTable.js +8 -6
- package/lib/components/table/YDataTable.js.map +1 -1
- package/lib/components/table/YDataTableBody.js +2 -3
- package/lib/components/table/YDataTableBody.js.map +1 -1
- package/lib/components/table/YDataTableCell.js +1 -2
- package/lib/components/table/YDataTableCell.js.map +1 -1
- package/lib/components/table/YDataTableControl.js +8 -6
- package/lib/components/table/YDataTableControl.js.map +1 -1
- package/lib/components/table/YDataTableControl.scss +10 -0
- package/lib/components/table/YDataTableHead.js +1 -1
- package/lib/components/table/YDataTableHead.js.map +1 -1
- package/lib/components/table/YDataTableLayer.js +1 -2
- package/lib/components/table/YDataTableLayer.js.map +1 -1
- package/lib/components/table/YDataTableLayerRow.js +1 -2
- package/lib/components/table/YDataTableLayerRow.js.map +1 -1
- package/lib/components/table/YDataTableLayerRows.js +1 -2
- package/lib/components/table/YDataTableLayerRows.js.map +1 -1
- package/lib/components/table/YDataTableRow.js +1 -2
- package/lib/components/table/YDataTableRow.js.map +1 -1
- package/lib/components/table/YDataTableServer.js +8 -6
- package/lib/components/table/YDataTableServer.js.map +1 -1
- package/lib/components/table/YTable.js +1 -2
- package/lib/components/table/YTable.js.map +1 -1
- package/lib/components/table/composables/expand.js.map +1 -1
- package/lib/components/table/composables/header.js.map +1 -1
- package/lib/components/table/composables/items.js.map +1 -1
- package/lib/components/table/composables/measure.js +1 -1
- package/lib/components/table/composables/measure.js.map +1 -1
- package/lib/components/table/composables/options.js.map +1 -1
- package/lib/components/table/composables/pagination.js.map +1 -1
- package/lib/components/table/composables/provides.js.map +1 -1
- package/lib/components/table/composables/selection.js.map +1 -1
- package/lib/components/table/composables/sorted-items.js.map +1 -1
- package/lib/components/table/composables/sorting.js.map +1 -1
- package/lib/components/table/index.js.map +1 -1
- package/lib/components/table/types/common.js.map +1 -1
- package/lib/components/table/types/header.js.map +1 -1
- package/lib/components/table/types/index.js.map +1 -1
- package/lib/components/table/types/item.js.map +1 -1
- package/lib/components/table/types/row.js.map +1 -1
- package/lib/components/text-ellipsis/YTextEllipsis.js +1 -2
- package/lib/components/text-ellipsis/YTextEllipsis.js.map +1 -1
- package/lib/components/text-ellipsis/index.js.map +1 -1
- package/lib/components/text-highlighter/YTextHighlighter.js +2 -1
- package/lib/components/text-highlighter/YTextHighlighter.js.map +1 -1
- package/lib/components/text-highlighter/index.js.map +1 -1
- package/lib/components/text-interpolation/YTi.js +2 -2
- package/lib/components/text-interpolation/YTi.js.map +1 -1
- package/lib/components/text-interpolation/index.js.map +1 -1
- package/lib/components/textarea/YTextarea.js +1 -2
- package/lib/components/textarea/YTextarea.js.map +1 -1
- package/lib/components/textarea/index.js.map +1 -1
- package/lib/components/toggle-button/YToggleButton.js.map +1 -1
- package/lib/components/toggle-button/index.js.map +1 -1
- package/lib/components/tooltip/YTooltip.js +1 -2
- package/lib/components/tooltip/YTooltip.js.map +1 -1
- package/lib/components/tooltip/index.js.map +1 -1
- package/lib/components/transitions/expand-transition.js.map +1 -1
- package/lib/components/transitions/index.js.map +1 -1
- package/lib/components/tree-view/YTreeView.js +1 -2
- package/lib/components/tree-view/YTreeView.js.map +1 -1
- package/lib/components/tree-view/YTreeViewNode.js +7 -4
- package/lib/components/tree-view/YTreeViewNode.js.map +1 -1
- package/lib/components/tree-view/index.js.map +1 -1
- package/lib/components/tree-view/tree-view.js.map +1 -1
- package/lib/components/tree-view/types.js.map +1 -1
- package/lib/components/tree-view/util.js.map +1 -1
- package/lib/composables/choice-link.js.map +1 -1
- package/lib/composables/choice.js.map +1 -1
- package/lib/composables/communication.js.map +1 -1
- package/lib/composables/component.js.map +1 -1
- package/lib/composables/coordinate/arrangement.js.map +1 -1
- package/lib/composables/coordinate/index.js.map +1 -1
- package/lib/composables/coordinate/levitation.js +2 -2
- package/lib/composables/coordinate/levitation.js.map +1 -1
- package/lib/composables/coordinate/types.js.map +1 -1
- package/lib/composables/coordinate/utils/point.js.map +1 -1
- package/lib/composables/date/factory.js.map +1 -1
- package/lib/composables/date/index.js.map +1 -1
- package/lib/composables/date/setting.js.map +1 -1
- package/lib/composables/date/types.js.map +1 -1
- package/lib/composables/defaults/index.js.map +1 -1
- package/lib/composables/defaults/share.js.map +1 -1
- package/lib/composables/defaults/types.js.map +1 -1
- package/lib/composables/dimension.js.map +1 -1
- package/lib/composables/focus.js.map +1 -1
- package/lib/composables/form.js +5 -5
- package/lib/composables/form.js.map +1 -1
- package/lib/composables/i18n/index.js.map +1 -1
- package/lib/composables/i18n/locale.js.map +1 -1
- package/lib/composables/i18n/rtl.js.map +1 -1
- package/lib/composables/i18n/share.js.map +1 -1
- package/lib/composables/icon.js +1 -2
- package/lib/composables/icon.js.map +1 -1
- package/lib/composables/index.js.map +1 -1
- package/lib/composables/layer-group.js.map +1 -1
- package/lib/composables/layout.js.map +1 -1
- package/lib/composables/list-items.js.map +1 -1
- package/lib/composables/progress.js.map +1 -1
- package/lib/composables/ref.js.map +1 -1
- package/lib/composables/resize-observer.js.map +1 -1
- package/lib/composables/scope.js.map +1 -1
- package/lib/composables/style-color.js +1 -2
- package/lib/composables/style-color.js.map +1 -1
- package/lib/composables/theme/factory.js.map +1 -1
- package/lib/composables/theme/helper.js.map +1 -1
- package/lib/composables/theme/index.js +8 -1
- package/lib/composables/theme/index.js.map +1 -1
- package/lib/composables/theme/setting.js.map +1 -1
- package/lib/composables/theme/types.js.map +1 -1
- package/lib/composables/timing.js.map +1 -1
- package/lib/composables/transition.js.map +1 -1
- package/lib/composables/validation.js +7 -4
- package/lib/composables/validation.js.map +1 -1
- package/lib/composables/vue-router.js.map +1 -1
- package/lib/directives/complement-click/index.js.map +1 -1
- package/lib/directives/index.js +3 -0
- package/lib/directives/index.js.map +1 -0
- package/lib/directives/plate-wave/index.js +2 -2
- package/lib/directives/plate-wave/index.js.map +1 -1
- package/lib/directives/plate-wave/plate-wave.scss +17 -6
- package/lib/directives/theme-class/index.js +24 -0
- package/lib/directives/theme-class/index.js.map +1 -0
- package/lib/etc/index.js.map +1 -1
- package/lib/i18n/built-in.js.map +1 -1
- package/lib/i18n/config.js.map +1 -1
- package/lib/i18n/types.js.map +1 -1
- package/lib/index.js +3 -3
- package/lib/index.js.map +1 -1
- package/lib/locales/en.js.map +1 -1
- package/lib/locales/index.js.map +1 -1
- package/lib/locales/ko.js.map +1 -1
- package/lib/mixins/di.js.map +1 -1
- package/lib/mixins/rebind-attrs.js +0 -2
- package/lib/mixins/rebind-attrs.js.map +1 -1
- package/lib/styles/_elevation.scss +0 -1
- package/lib/styles/base.scss +3 -1
- package/lib/styles/settings/_elevation.scss +12 -12
- package/lib/styles/settings/_provided.scss +23 -23
- package/lib/styles/theme/dark.scss +3 -3
- package/lib/styles/theme/index.scss +0 -1
- package/lib/styles/theme/light.scss +3 -3
- package/lib/styles/util/_mixin.scss +16 -16
- package/lib/types/index.js.map +1 -1
- package/lib/util/anchor.js.map +1 -1
- package/lib/util/array.js.map +1 -1
- package/lib/util/collection.js.map +1 -1
- package/lib/util/color/apca.js +1 -0
- package/lib/util/color/apca.js.map +1 -1
- package/lib/util/color/const.js.map +1 -1
- package/lib/util/color/contrast/contrast.js.map +1 -1
- package/lib/util/color/conversion.js.map +1 -1
- package/lib/util/color/hct/cam16.js.map +1 -1
- package/lib/util/color/hct/hct-solver.js +6 -6
- package/lib/util/color/hct/hct-solver.js.map +1 -1
- package/lib/util/color/hct/hct.js.map +1 -1
- package/lib/util/color/hct/viewing-conditions.js +6 -4
- package/lib/util/color/hct/viewing-conditions.js.map +1 -1
- package/lib/util/color/index.js +13 -13
- package/lib/util/color/index.js.map +1 -1
- package/lib/util/color/palettes/core-palette.js.map +1 -1
- package/lib/util/color/palettes/tonal-palette.js +3 -3
- package/lib/util/color/palettes/tonal-palette.js.map +1 -1
- package/lib/util/color/types.js.map +1 -1
- package/lib/util/color/utils/math-utils.js +62 -62
- package/lib/util/color/utils/math-utils.js.map +1 -1
- package/lib/util/common.js +28 -13
- package/lib/util/common.js.map +1 -1
- package/lib/util/component/component.js.map +1 -1
- package/lib/util/component/index.js.map +1 -1
- package/lib/util/component/inject-self.js.map +1 -1
- package/lib/util/component/props.js.map +1 -1
- package/lib/util/component/types.js.map +1 -1
- package/lib/util/date/adapters/yuyeon-date-adapter.js +3 -3
- package/lib/util/date/adapters/yuyeon-date-adapter.js.map +1 -1
- package/lib/util/date/built-in.js +2 -0
- package/lib/util/date/built-in.js.map +1 -1
- package/lib/util/date/index.js +1 -1
- package/lib/util/date/index.js.map +1 -1
- package/lib/util/date/types.js.map +1 -1
- package/lib/util/debounce.js +1 -1
- package/lib/util/debounce.js.map +1 -1
- package/lib/util/dom.js +10 -1
- package/lib/util/dom.js.map +1 -1
- package/lib/util/environments.js.map +1 -1
- package/lib/util/frame-scheduler.js +3 -3
- package/lib/util/frame-scheduler.js.map +1 -1
- package/lib/util/index.js +11 -11
- package/lib/util/index.js.map +1 -1
- package/lib/util/reactivity.js +3 -3
- package/lib/util/reactivity.js.map +1 -1
- package/lib/util/rect.js.map +1 -1
- package/lib/util/scroll.js.map +1 -1
- package/lib/util/string.js +6 -1
- package/lib/util/string.js.map +1 -1
- package/lib/util/ui.js +8 -7
- package/lib/util/ui.js.map +1 -1
- package/lib/util/validation.js.map +1 -1
- package/package.json +132 -123
- package/types/abstract/items.d.ts +4 -4
- package/types/components/alert/YAlert.d.ts +2 -2
- package/types/components/badge/YBadge.d.ts +0 -3
- package/types/components/button/YButton.d.ts +3 -3
- package/types/components/checkbox/YCheckbox.d.ts +4 -4
- package/types/components/chip/YChip.d.ts +0 -3
- package/types/components/date-picker/YDateCalendar.d.ts +3 -3
- package/types/components/date-picker/YDatePickerControl.d.ts +7 -7
- package/types/components/dialog/YDialog.d.ts +108 -6480
- package/types/components/draggable/YDraggable.d.ts +6 -6
- package/types/components/draggable/index.d.ts +1 -0
- package/types/components/dropdown/YDropdown.d.ts +87 -87
- package/types/components/field-input/YFieldInput.d.ts +20 -14
- package/types/components/form/YForm.d.ts +3 -3
- package/types/components/icon/YIcon.d.ts +4 -4
- package/types/components/icons/YIconPageControl.d.ts +1 -1
- package/types/components/icons/YIconSort.d.ts +1 -1
- package/types/components/icons/index.d.ts +4 -4
- package/types/components/img/YImg.d.ts +26 -26
- package/types/components/input/YInput.d.ts +13 -13
- package/types/components/ip-field/YIpv4Field.d.ts +5 -5
- package/types/components/layer/YLayer.d.ts +55 -3240
- package/types/components/layer/scroll-strategies.d.ts +4 -4
- package/types/components/menu/YMenu.d.ts +74 -6446
- package/types/components/pagination/YPagination.d.ts +3 -3
- package/types/components/radio/YRadio.d.ts +25 -0
- package/types/components/radio/YRadioIcon.d.ts +6 -0
- package/types/components/radio/index.d.ts +2 -0
- package/types/components/select/YSelect.d.ts +178 -496
- package/types/components/slider/YSlider.d.ts +1 -1
- package/types/components/snackbar/YSnackbar.d.ts +55 -55
- package/types/components/tab/YTab.d.ts +3 -3
- package/types/components/tab/YTabs.d.ts +1 -1
- package/types/components/table/YDataTable.d.ts +33 -87
- package/types/components/table/YDataTableBody.d.ts +3 -3
- package/types/components/table/YDataTableCell.d.ts +2 -2
- package/types/components/table/YDataTableControl.d.ts +18 -6
- package/types/components/table/YDataTableLayer.d.ts +2 -2
- package/types/components/table/YDataTableRow.d.ts +1 -1
- package/types/components/table/YDataTableServer.d.ts +54 -99
- package/types/components/table/YTable.d.ts +3 -3
- package/types/components/table/composables/expand.d.ts +4 -4
- package/types/components/table/composables/header.d.ts +16 -48
- package/types/components/table/composables/items.d.ts +2 -2
- package/types/components/table/composables/pagination.d.ts +10 -10
- package/types/components/table/composables/selection.d.ts +6 -6
- package/types/components/table/composables/sorting.d.ts +8 -14
- package/types/components/table/types/item.d.ts +1 -1
- package/types/components/textarea/YTextarea.d.ts +30 -30
- package/types/components/tooltip/YTooltip.d.ts +67 -67
- package/types/components/tree-view/YTreeView.d.ts +7 -7
- package/types/components/tree-view/YTreeViewNode.d.ts +5 -5
- package/types/components/tree-view/tree-view.d.ts +2 -2
- package/types/composables/choice.d.ts +2 -2
- package/types/composables/coordinate/index.d.ts +27 -3205
- package/types/composables/dimension.d.ts +6 -6
- package/types/composables/form.d.ts +17 -27
- package/types/composables/list-items.d.ts +3 -3
- package/types/composables/style-color.d.ts +0 -1
- package/types/composables/theme/index.d.ts +1 -0
- package/types/composables/transition.d.ts +10 -10
- package/types/composables/validation.d.ts +6 -6
- package/types/composables/vue-router.d.ts +3 -3
- package/types/declares.d.ts +1 -0
- package/types/directives/index.d.ts +2 -0
- package/types/directives/plate-wave/index.d.ts +7 -1
- package/types/globals.d.ts +19 -20
- package/types/shims.d.ts +58 -52
- 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
- package/types/types/index.d.ts +3 -0
- package/types/util/anchor.d.ts +1 -1
- package/types/util/common.d.ts +3 -0
- package/types/util/component/component.d.ts +1 -2
- package/types/util/component/props.d.ts +1 -1
- package/types/util/component/types.d.ts +1 -1
- package/types/util/date/index.d.ts +1 -1
- package/types/util/dom.d.ts +2 -0
- package/types/util/index.d.ts +11 -11
- package/types/util/string.d.ts +1 -0
- /package/types/directives/{theme-class.d.ts → theme-class/index.d.ts} +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Hct } from '../hct/hct';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A convenience class for retrieving colors that are constant in hue and
|
|
5
|
+
* chroma, but vary in tone.
|
|
6
|
+
*/
|
|
7
|
+
export declare class TonalPalette {
|
|
8
|
+
readonly hue: number;
|
|
9
|
+
readonly chroma: number;
|
|
10
|
+
readonly keyColor: Hct;
|
|
11
|
+
private readonly cache;
|
|
12
|
+
/**
|
|
13
|
+
* @param argb ARGB representation of a color
|
|
14
|
+
* @return Tones matching that color's hue and chroma.
|
|
15
|
+
*/
|
|
16
|
+
static fromInt(argb: number): TonalPalette;
|
|
17
|
+
/**
|
|
18
|
+
* @param hct Hct
|
|
19
|
+
* @return Tones matching that color's hue and chroma.
|
|
20
|
+
*/
|
|
21
|
+
static fromHct(hct: Hct): TonalPalette;
|
|
22
|
+
/**
|
|
23
|
+
* @param hue HCT hue
|
|
24
|
+
* @param chroma HCT chroma
|
|
25
|
+
* @return Tones matching hue and chroma.
|
|
26
|
+
*/
|
|
27
|
+
static fromHueAndChroma(hue: number, chroma: number): TonalPalette;
|
|
28
|
+
private constructor();
|
|
29
|
+
private static createKeyColor;
|
|
30
|
+
/**
|
|
31
|
+
* @param tone HCT tone, measured from 0 to 100.
|
|
32
|
+
* @return ARGB representation of a color with that tone.
|
|
33
|
+
*/
|
|
34
|
+
tone(tone: number): number;
|
|
35
|
+
/**
|
|
36
|
+
* @param tone HCT tone.
|
|
37
|
+
* @return HCT representation of a color with that tone.
|
|
38
|
+
*/
|
|
39
|
+
getHct(tone: number): Hct;
|
|
40
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RGBA component
|
|
3
|
+
*
|
|
4
|
+
* @param r Red value should be between 0-255
|
|
5
|
+
* @param g Green value should be between 0-255
|
|
6
|
+
* @param b Blue value should be between 0-255
|
|
7
|
+
* @param a Alpha value should be between 0-255
|
|
8
|
+
*/
|
|
9
|
+
export interface Rgba {
|
|
10
|
+
r: number;
|
|
11
|
+
g: number;
|
|
12
|
+
b: number;
|
|
13
|
+
a: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Utility methods for mathematical operations.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* The signum function.
|
|
22
|
+
*
|
|
23
|
+
* @return 1 if num > 0, -1 if num < 0, and 0 if num = 0
|
|
24
|
+
*/
|
|
25
|
+
export declare function signum(num: number): number;
|
|
26
|
+
/**
|
|
27
|
+
* The linear interpolation function.
|
|
28
|
+
*
|
|
29
|
+
* @return start if amount = 0 and stop if amount = 1
|
|
30
|
+
*/
|
|
31
|
+
export declare function lerp(start: number, stop: number, amount: number): number;
|
|
32
|
+
/**
|
|
33
|
+
* Clamps an integer between two integers.
|
|
34
|
+
*
|
|
35
|
+
* @return input when min <= input <= max, and either min or max
|
|
36
|
+
* otherwise.
|
|
37
|
+
*/
|
|
38
|
+
export declare function clampInt(min: number, max: number, input: number): number;
|
|
39
|
+
/**
|
|
40
|
+
* Clamps an integer between two floating-point numbers.
|
|
41
|
+
*
|
|
42
|
+
* @return input when min <= input <= max, and either min or max
|
|
43
|
+
* otherwise.
|
|
44
|
+
*/
|
|
45
|
+
export declare function clampDouble(min: number, max: number, input: number): number;
|
|
46
|
+
/**
|
|
47
|
+
* Sanitizes a degree measure as an integer.
|
|
48
|
+
*
|
|
49
|
+
* @return a degree measure between 0 (inclusive) and 360
|
|
50
|
+
* (exclusive).
|
|
51
|
+
*/
|
|
52
|
+
export declare function sanitizeDegreesInt(degrees: number): number;
|
|
53
|
+
/**
|
|
54
|
+
* Sanitizes a degree measure as a floating-point number.
|
|
55
|
+
*
|
|
56
|
+
* @return a degree measure between 0.0 (inclusive) and 360.0
|
|
57
|
+
* (exclusive).
|
|
58
|
+
*/
|
|
59
|
+
export declare function sanitizeDegreesDouble(degrees: number): number;
|
|
60
|
+
/**
|
|
61
|
+
* Sign of direction change needed to travel from one angle to
|
|
62
|
+
* another.
|
|
63
|
+
*
|
|
64
|
+
* For angles that are 180 degrees apart from each other, both
|
|
65
|
+
* directions have the same travel distance, so either direction is
|
|
66
|
+
* shortest. The value 1.0 is returned in this case.
|
|
67
|
+
*
|
|
68
|
+
* @param from The angle travel starts from, in degrees.
|
|
69
|
+
* @param to The angle travel ends at, in degrees.
|
|
70
|
+
* @return -1 if decreasing from leads to the shortest travel
|
|
71
|
+
* distance, 1 if increasing from leads to the shortest travel
|
|
72
|
+
* distance.
|
|
73
|
+
*/
|
|
74
|
+
export declare function rotationDirection(from: number, to: number): number;
|
|
75
|
+
/**
|
|
76
|
+
* Distance of two points on a circle, represented using degrees.
|
|
77
|
+
*/
|
|
78
|
+
export declare function differenceDegrees(a: number, b: number): number;
|
|
79
|
+
/**
|
|
80
|
+
* Multiplies a 1x3 row vector with a 3x3 matrix.
|
|
81
|
+
*/
|
|
82
|
+
export declare function matrixMultiply(row: number[], matrix: number[][]): number[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** biome-ignore-all lint/suspicious/useIterableCallbackReturn: <explanation> */
|
|
2
|
+
export declare function hasOwnProperty(object: any, property: string): boolean;
|
|
3
|
+
export declare function getNestedValue(obj: any, path: (string | number)[], fallback?: any): any;
|
|
4
|
+
export declare function mergeDeep(source?: Record<string, any>, overwrite?: Record<string, any>, arrayFn?: (source: unknown[], overwrite: unknown[]) => unknown[]): {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
};
|
|
7
|
+
export declare function getObjectValueByPath(obj: any, path: string, fallback?: any): any;
|
|
8
|
+
export type SelectItemKey = boolean | string | (string | number)[] | ((item: Record<string, any>, fallback?: any) => any);
|
|
9
|
+
export declare function getPropertyFromItem(item: any, property: SelectItemKey, fallback?: any): any;
|
|
10
|
+
export declare function clamp(value: number, min?: number, max?: number): number;
|
|
11
|
+
export declare function getRangeArr(length: number, start?: number): number[];
|
|
12
|
+
export declare function deepEqual(a: any, b: any): boolean;
|
|
13
|
+
export declare function isObject(obj: unknown): boolean;
|
|
14
|
+
export declare function isEmpty(target: any): boolean;
|
|
15
|
+
export declare function omit<T extends object, U extends Extract<keyof T, string>>(obj: T, excludes: U[]): Omit<T, U>;
|
|
16
|
+
export declare const noop: () => undefined;
|
|
17
|
+
export declare function makeEventPromiseLike<T extends Event, P = any>(event: T, promise: Promise<P>): T & Promise<P>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Component, ComponentInjectOptions, ComponentOptionsMixin, ComponentProvideOptions, ComputedOptions, DefineComponent, Directive, EmitsOptions, MethodOptions, SlotsType, ComponentObjectPropsOptions, ComponentOptionsWithObjectProps, ComponentOptionsWithoutProps, ExtractDefaultPropTypes } from 'vue';
|
|
2
|
+
|
|
3
|
+
declare function redefineComponent<PropsOptions = {}, RawBindings = {}, E extends EmitsOptions = {}, EE extends string = string, Data = {}, SetupBindings = {}, Computed extends ComputedOptions = {}, Methods extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, InjectOptions extends ComponentInjectOptions = {}, InjectKeys extends string = string, Slots extends SlotsType = {}, LocalComponents extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions>(options: ComponentOptionsWithoutProps<PropsOptions, RawBindings, Data, Computed, Methods, Mixin, Extends, E, EE, InjectOptions, InjectKeys, Slots>): DefineComponent<PropsOptions, RawBindings, Data, Computed, Methods, Mixin, Extends, E, EE>;
|
|
4
|
+
declare function redefineComponent<PropsOptions = ComponentObjectPropsOptions, RawBindings = {}, E extends EmitsOptions = {}, EE extends string = string, Data = {}, SetupBindings = {}, Computed extends ComputedOptions = {}, Methods extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, Defaults = ExtractDefaultPropTypes<PropsOptions>, InjectOptions extends {} = {}, InjectKeys extends string = string, Slots extends SlotsType = {}, LocalComponents extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions>(options: ComponentOptionsWithObjectProps<PropsOptions, RawBindings, Data, Computed, Methods, Mixin, Extends, E, EE, InjectOptions, InjectKeys, Slots>): DefineComponent<PropsOptions, RawBindings, Data, Computed, Methods, Mixin, Extends, E, EE>;
|
|
5
|
+
export { redefineComponent as defineComponent };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentInternalInstance, ComponentPublicInstance, InjectionKey, VNode, VNodeChild } from 'vue';
|
|
2
|
+
import { defineComponent } from './component';
|
|
3
|
+
|
|
4
|
+
export type { EventProp } from './types';
|
|
5
|
+
export * from './props';
|
|
6
|
+
export { defineComponent };
|
|
7
|
+
export declare function getSlot(vm: ComponentPublicInstance | any, name?: string, data?: any | (() => any), optional?: boolean): VNode[] | undefined;
|
|
8
|
+
export declare function getUid(): number | undefined;
|
|
9
|
+
export declare function bindClasses(classes: string | string[] | Record<string, any> | undefined): Record<string, boolean>;
|
|
10
|
+
export declare function getHtmlElement<N extends object | undefined>(node: N): Exclude<N, ComponentPublicInstance> | HTMLElement;
|
|
11
|
+
export declare function findChildrenWithProvide(key: InjectionKey<any> | symbol, vnode?: VNodeChild): ComponentInternalInstance[];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ComponentObjectPropsOptions, ExtractPropTypes, Prop, PropType, VNode } from 'vue';
|
|
2
|
+
import { IfAny } from '@vue/shared';
|
|
3
|
+
|
|
4
|
+
export declare function propsFactory<PropsOptions extends ComponentObjectPropsOptions>(props: PropsOptions, source: string): <Defaults extends PartialKeys<PropsOptions> = {}>(defaults?: Defaults) => OverwrittenPropOptions<PropsOptions, Defaults>;
|
|
5
|
+
export declare function chooseProps<PropsOptions extends ComponentObjectPropsOptions>(props: any, target: PropsOptions): ExtractPropTypes<PropsOptions>;
|
|
6
|
+
export declare function hasEventProp(props: Record<string, any>, type: string): boolean;
|
|
7
|
+
export declare function propIsDefined(vnode: VNode, prop: string): boolean;
|
|
8
|
+
type OverwrittenPropOptions<T extends ComponentObjectPropsOptions, D extends PartialKeys<T>> = {
|
|
9
|
+
[P in keyof T]-?: unknown extends D[P] ? T[P] : T[P] extends Record<string, unknown> ? Omit<T[P], 'type' | 'default'> & {
|
|
10
|
+
type: PropType<MergeDefault<T[P], D[P]>>;
|
|
11
|
+
default: MergeDefault<T[P], D[P]>;
|
|
12
|
+
} : {
|
|
13
|
+
type: PropType<MergeDefault<T[P], D[P]>>;
|
|
14
|
+
default: MergeDefault<T[P], D[P]>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
type MergeDefault<T, D> = unknown extends D ? InferPropType<T> : NonNullable<InferPropType<T>> | D;
|
|
18
|
+
type PartialKeys<T> = {
|
|
19
|
+
[P in keyof T]?: unknown;
|
|
20
|
+
};
|
|
21
|
+
type InferPropType<T> = [T] extends [null] ? any : [T] extends [{
|
|
22
|
+
type: null | true;
|
|
23
|
+
}] ? any : [T] extends [ObjectConstructor | {
|
|
24
|
+
type: ObjectConstructor;
|
|
25
|
+
}] ? Record<string, any> : [T] extends [BooleanConstructor | {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
}] ? boolean : [T] extends [DateConstructor | {
|
|
28
|
+
type: DateConstructor;
|
|
29
|
+
}] ? Date : [T] extends [(infer U)[] | {
|
|
30
|
+
type: (infer U)[];
|
|
31
|
+
}] ? U extends DateConstructor ? Date | InferPropType<U> : InferPropType<U> : [T] extends [Prop<infer V, infer D>] ? unknown extends V ? IfAny<V, V, D> : V : T;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EmitsOptions, ObjectEmitsOptions, PropType } from 'vue';
|
|
2
|
+
|
|
3
|
+
export type EventProp<T extends any[] = any[], F = (...args: T) => any> = F | F[];
|
|
4
|
+
export declare const EventPropOption: <T extends any[] = any[]>() => PropType<EventProp<T>>;
|
|
5
|
+
export type ComponentTypeEmits = ((...args: any[]) => any) | Record<string, any[]>;
|
|
6
|
+
export type EmitsToProps<T extends EmitsOptions | ComponentTypeEmits> = T extends string[] ? {
|
|
7
|
+
[K in `on${Capitalize<T[number]>}`]?: (...args: any[]) => any;
|
|
8
|
+
} : T extends ObjectEmitsOptions ? {
|
|
9
|
+
[K in string & keyof T as `on${Capitalize<K>}`]?: (...args: T[K] extends (...args: infer P) => any ? P : T[K] extends null ? any[] : never) => any;
|
|
10
|
+
} : {};
|
|
11
|
+
export type TypeEmitsToOptions<T extends ComponentTypeEmits> = {
|
|
12
|
+
[K in keyof T & string]: T[K] extends [...args: infer Args] ? (...args: Args) => any : () => any;
|
|
13
|
+
} & (T extends (...args: any[]) => any ? ParametersToFns<OverloadParameters<T>> : {});
|
|
14
|
+
type ParametersToFns<T extends any[]> = {
|
|
15
|
+
[K in T[0]]: K extends `${infer C}` ? (...args: T extends [C, ...infer Args] ? Args : never) => any : never;
|
|
16
|
+
};
|
|
17
|
+
export type OverloadParameters<T extends (...args: any[]) => any> = Parameters<OverloadUnion<T>>;
|
|
18
|
+
type OverloadProps<TOverload> = Pick<TOverload, keyof TOverload>;
|
|
19
|
+
type OverloadUnionRecursive<TOverload, TPartialOverload = unknown> = TOverload extends (...args: infer TArgs) => infer TReturn ? TPartialOverload extends TOverload ? never : OverloadUnionRecursive<TPartialOverload & TOverload, TPartialOverload & ((...args: TArgs) => TReturn) & OverloadProps<TOverload>> | ((...args: TArgs) => TReturn) : never;
|
|
20
|
+
type OverloadUnion<TOverload extends (...args: any[]) => any> = Exclude<OverloadUnionRecursive<(() => never) & TOverload>, TOverload extends () => never ? never : () => never>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { DateAdapter, DateFormatOptions } from '../types';
|
|
2
|
+
|
|
3
|
+
export declare class YuyeonDateAdapter implements DateAdapter<Date> {
|
|
4
|
+
locale: string;
|
|
5
|
+
formats?: Record<string, DateFormatOptions>;
|
|
6
|
+
constructor(options: {
|
|
7
|
+
locale: string;
|
|
8
|
+
formats?: Record<string, DateFormatOptions>;
|
|
9
|
+
});
|
|
10
|
+
getWeekArray(date: Date): Date[][];
|
|
11
|
+
startOfMonth(date: Date): Date;
|
|
12
|
+
endOfMonth(date: Date): Date;
|
|
13
|
+
addDays(date: Date, amount: number): Date;
|
|
14
|
+
addMonths(date: Date, amount: number): Date;
|
|
15
|
+
date(value?: any): Date | null;
|
|
16
|
+
endOfDay(date: Date): Date;
|
|
17
|
+
endOfYear(date: Date): Date;
|
|
18
|
+
format(date: Date, formatString: string): string;
|
|
19
|
+
getDiff(date: Date, comparing: string | Date, unit?: string): number;
|
|
20
|
+
getYear(date: Date): number;
|
|
21
|
+
getMonth(date: Date): number;
|
|
22
|
+
getDay(date: Date): number;
|
|
23
|
+
getNextMonth(date: Date): Date;
|
|
24
|
+
getWeekdays(): string[];
|
|
25
|
+
isAfter(date: Date, comparing: Date): boolean;
|
|
26
|
+
isBefore(date: Date, comparing: Date): boolean;
|
|
27
|
+
isEqual(date: Date, comparing: Date): boolean;
|
|
28
|
+
isSameDay(date: Date, comparing: Date): boolean;
|
|
29
|
+
isSameMonth(date: Date, comparing: Date): boolean;
|
|
30
|
+
isValid(date: any): boolean;
|
|
31
|
+
isWithinRange(date: Date, range: [Date, Date]): boolean;
|
|
32
|
+
parseISO(date: string): Date;
|
|
33
|
+
setMonth(date: Date, month: number): Date;
|
|
34
|
+
setYear(date: Date, year: number): Date;
|
|
35
|
+
startOfDay(date: Date): Date;
|
|
36
|
+
startOfYear(date: Date): Date;
|
|
37
|
+
toISO(date: Date): string;
|
|
38
|
+
toJsDate(date: Date): Date;
|
|
39
|
+
getHour(date: Date): number;
|
|
40
|
+
getMinute(date: Date): number;
|
|
41
|
+
setHour(date: Date, hour: number): Date;
|
|
42
|
+
setMinute(date: Date, minute: number): Date;
|
|
43
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { DateAdapter, DateFormatOptions } from './types';
|
|
2
|
+
|
|
3
|
+
export declare const ONE_DAY: number;
|
|
4
|
+
export declare const YYYY_MM_DD_REGEX: RegExp;
|
|
5
|
+
export declare const FIRST_SUNDAY: Date;
|
|
6
|
+
export declare class DateUtil {
|
|
7
|
+
static date(value?: any): Date | null;
|
|
8
|
+
static format(value: Date, formatString: string, locale: string, formats?: Record<string, DateFormatOptions>): string;
|
|
9
|
+
static parseLocalDate(value: string): Date;
|
|
10
|
+
static parseISO(value: string): Date;
|
|
11
|
+
static toISO(adapter: DateAdapter<any>, value: Date): string;
|
|
12
|
+
static getWeekArray(date: Date, locale: string): Date[][];
|
|
13
|
+
static startOfMonth(date: Date): Date;
|
|
14
|
+
static endOfMonth(date: Date): Date;
|
|
15
|
+
static startOfDay(date: Date): Date;
|
|
16
|
+
static startOfYear(date: Date): Date;
|
|
17
|
+
static endOfDay(date: Date): Date;
|
|
18
|
+
static endOfYear(date: Date): Date;
|
|
19
|
+
static getYear(date: Date): number;
|
|
20
|
+
static getMonth(date: Date): number;
|
|
21
|
+
static getDay(date: Date): number;
|
|
22
|
+
static getNextMonth(date: Date): Date;
|
|
23
|
+
static getWeekdays(locale: string): string[];
|
|
24
|
+
static getMeridians(locale: string): string[];
|
|
25
|
+
static isAfter(date: Date, comparing: Date): boolean;
|
|
26
|
+
static isBefore(date: Date, comparing: Date): boolean;
|
|
27
|
+
static isEqual(date: Date, comparing: Date): boolean;
|
|
28
|
+
static isSameDay(date: Date, comparing: Date): boolean;
|
|
29
|
+
static isSameMonth(date: Date, comparing: Date): boolean;
|
|
30
|
+
static isValid(date: any): boolean;
|
|
31
|
+
static isWithinRange(date: Date, range: [Date, Date]): boolean;
|
|
32
|
+
static addDays(date: Date, amount: number): Date;
|
|
33
|
+
static addMonths(date: Date, amount: number): Date;
|
|
34
|
+
static getDiff(date: Date, comparing: string | Date, unit?: 'month' | string): number;
|
|
35
|
+
static setMonth(date: Date, month: number): Date;
|
|
36
|
+
static setYear(date: Date, year: number): Date;
|
|
37
|
+
static getHour(date: Date): number;
|
|
38
|
+
static setHour(date: Date, hour: number): Date;
|
|
39
|
+
static getMinute(date: Date): number;
|
|
40
|
+
static setMinute(date: Date, minute: number): Date;
|
|
41
|
+
}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
export interface DateAdapter<T = unknown> {
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @param value
|
|
5
|
+
*/
|
|
6
|
+
date(value?: any): T | null;
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @param date
|
|
10
|
+
* @param formatString
|
|
11
|
+
*/
|
|
12
|
+
format(date: T, formatString: string): string;
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @param value
|
|
16
|
+
*/
|
|
17
|
+
toJsDate(value: T): Date;
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @param date
|
|
21
|
+
*/
|
|
22
|
+
parseISO(date: string): T;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @param date
|
|
26
|
+
*/
|
|
27
|
+
toISO(date: T): string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @param date
|
|
31
|
+
*/
|
|
32
|
+
startOfDay(date: T): T;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @param date
|
|
36
|
+
*/
|
|
37
|
+
endOfDay(date: T): T;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @param date
|
|
41
|
+
*/
|
|
42
|
+
startOfMonth(date: T): T;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @param date
|
|
46
|
+
*/
|
|
47
|
+
endOfMonth(date: T): T;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @param date
|
|
51
|
+
*/
|
|
52
|
+
startOfYear(date: T): T;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @param date
|
|
56
|
+
*/
|
|
57
|
+
endOfYear(date: T): T;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @param date
|
|
61
|
+
* @param comparing
|
|
62
|
+
*/
|
|
63
|
+
isBefore(date: T, comparing: T): boolean;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @param date
|
|
67
|
+
* @param comparing
|
|
68
|
+
*/
|
|
69
|
+
isAfter(date: T, comparing: T): boolean;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @param date
|
|
73
|
+
* @param comparing
|
|
74
|
+
*/
|
|
75
|
+
isEqual(date: T, comparing: T): boolean;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @param date
|
|
79
|
+
* @param comparing
|
|
80
|
+
*/
|
|
81
|
+
isSameDay(date: T, comparing: T): boolean;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @param date
|
|
85
|
+
* @param comparing
|
|
86
|
+
*/
|
|
87
|
+
isSameMonth(date: T, comparing: T): boolean;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @param date
|
|
91
|
+
*/
|
|
92
|
+
isValid(date: any): boolean;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @param date
|
|
96
|
+
* @param range
|
|
97
|
+
*/
|
|
98
|
+
isWithinRange(date: T, range: [T, T]): boolean;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @param date
|
|
102
|
+
* @param amount
|
|
103
|
+
*/
|
|
104
|
+
addDays(date: T, amount: number): T;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @param date
|
|
108
|
+
* @param amount
|
|
109
|
+
*/
|
|
110
|
+
addMonths(date: T, amount: number): T;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @param date
|
|
114
|
+
*/
|
|
115
|
+
getYear(date: T): number;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @param date
|
|
119
|
+
* @param year
|
|
120
|
+
*/
|
|
121
|
+
setYear(date: T, year: number): T;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @param date
|
|
125
|
+
* @param comparing
|
|
126
|
+
* @param unit
|
|
127
|
+
*/
|
|
128
|
+
getDiff(date: T, comparing: T | string, unit?: string): number;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
*
|
|
132
|
+
* @param date
|
|
133
|
+
*/
|
|
134
|
+
getWeekArray(date: T): T[][];
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
*/
|
|
138
|
+
getWeekdays(): string[];
|
|
139
|
+
/**
|
|
140
|
+
* 0 ~ 11
|
|
141
|
+
* @param date
|
|
142
|
+
*/
|
|
143
|
+
getMonth(date: T): number;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @param date
|
|
147
|
+
* @param month
|
|
148
|
+
*/
|
|
149
|
+
setMonth(date: T, month: number): T;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* get day (1-31) number
|
|
153
|
+
*
|
|
154
|
+
* @param date
|
|
155
|
+
*/
|
|
156
|
+
getDay(date: T): number;
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* @param date
|
|
160
|
+
*/
|
|
161
|
+
getNextMonth(date: T): T;
|
|
162
|
+
getHour(date: T): number;
|
|
163
|
+
setHour(date: T, hour: number): T;
|
|
164
|
+
getMinute(date: T): number;
|
|
165
|
+
setMinute(date: T, minute: number): T;
|
|
166
|
+
}
|
|
167
|
+
export type DateFormatOptions = Intl.DateTimeFormatOptions | ((date: Date, formatString: string, locale: string) => string);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface DebouncedFn<T extends (...args: any[]) => any> {
|
|
2
|
+
(...args: Parameters<T>): ReturnType<T> | undefined;
|
|
3
|
+
cancel(): void;
|
|
4
|
+
flush(): ReturnType<T> | undefined;
|
|
5
|
+
}
|
|
6
|
+
export declare function debounce<T extends (...args: any[]) => any>(func: T, wait?: number, options?: {
|
|
7
|
+
leading: boolean;
|
|
8
|
+
maxWait?: number;
|
|
9
|
+
trailing: boolean;
|
|
10
|
+
}): DebouncedFn<T>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function documentRoot(domNode: Node): null | HTMLDocument | ShadowRoot;
|
|
2
|
+
export declare function hasElementMouseEvent(mouseEvent: Event, element: HTMLElement, include?: HTMLElement[]): boolean;
|
|
3
|
+
export declare function isOverflow(el: HTMLElement): boolean;
|
|
4
|
+
export declare const focusableSelectors = "input:not([disabled]), textarea:not([disabled]), select:not([disabled]), button:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
5
|
+
export declare function getNextTabElement(currentElement: Element): undefined | Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './anchor';
|
|
2
|
+
export * from './array';
|
|
3
|
+
export * from './collection';
|
|
4
|
+
export * from './color';
|
|
5
|
+
export * from './common';
|
|
6
|
+
export * from './component';
|
|
7
|
+
export * from './date';
|
|
8
|
+
export * from './debounce';
|
|
9
|
+
export * from './dom';
|
|
10
|
+
export * from './frame-scheduler';
|
|
11
|
+
export * from './reactivity';
|
|
12
|
+
export * from './rect';
|
|
13
|
+
export * from './scroll';
|
|
14
|
+
export * from './string';
|
|
15
|
+
export * from './ui';
|
|
16
|
+
export * from './validation';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface Rect {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
get top(): number;
|
|
7
|
+
get bottom(): number;
|
|
8
|
+
get left(): number;
|
|
9
|
+
get right(): number;
|
|
10
|
+
}
|
|
11
|
+
export declare class MutableRect implements Rect {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
constructor({ x, y, width, height, }: {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
});
|
|
22
|
+
get top(): number;
|
|
23
|
+
get bottom(): number;
|
|
24
|
+
get left(): number;
|
|
25
|
+
get right(): number;
|
|
26
|
+
}
|
|
27
|
+
export declare function getOverflow(a: MutableRect, b: MutableRect): {
|
|
28
|
+
x: {
|
|
29
|
+
before: number;
|
|
30
|
+
after: number;
|
|
31
|
+
};
|
|
32
|
+
y: {
|
|
33
|
+
before: number;
|
|
34
|
+
after: number;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare function getScrollParent(el?: HTMLElement, horizontal?: boolean): HTMLElement;
|
|
2
|
+
export declare function getScrollParents(el?: Element | null, stopAt?: Element | null, horizontal?: boolean): HTMLElement[];
|
|
3
|
+
export declare function hasScrollbar(el?: Element | null, horizontal?: boolean): boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function camelToPascal(str: string): string;
|
|
2
|
+
export declare function toKebabCase(str: string, from?: 'camel' | 'pascal'): string;
|
|
3
|
+
export declare function kebabToCamel(str: string): string;
|
|
4
|
+
export declare function randomCharOne(str: string): string;
|
|
5
|
+
export declare function simpleBraceParse(input: string): {
|
|
6
|
+
type: string;
|
|
7
|
+
content: string;
|
|
8
|
+
}[];
|
|
9
|
+
export declare function escapeRegExp(str: string): string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function getBoundingPureRect(el: HTMLElement): DOMRect;
|
|
2
|
+
export declare function pixelRound(val: number): number;
|
|
3
|
+
export declare function pixelCeil(val: number): number;
|
|
4
|
+
export declare function toStyleSizeValue(size: number | string | null | undefined, unit?: string): string | undefined;
|
package/types/types/index.d.ts
CHANGED
package/types/util/anchor.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export type ParsedAnchor = {
|
|
|
15
15
|
};
|
|
16
16
|
/** Parse a raw anchor string into an object */
|
|
17
17
|
export declare function parseAnchor(anchor: Anchor, isRtl: boolean): ParsedAnchor;
|
|
18
|
-
export declare function toPhysical(str: 'center' | Tblock | Tinline, isRtl: boolean): "
|
|
18
|
+
export declare function toPhysical(str: 'center' | Tblock | Tinline, isRtl: boolean): "bottom" | "left" | "right" | "top" | "center";
|
|
19
19
|
export declare function flipSide(anchor: ParsedAnchor): ParsedAnchor;
|
|
20
20
|
export declare function flipAlign(anchor: ParsedAnchor): ParsedAnchor;
|
|
21
21
|
export declare function flipCorner(anchor: ParsedAnchor): ParsedAnchor;
|
package/types/util/common.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** biome-ignore-all lint/suspicious/useIterableCallbackReturn: <explanation> */
|
|
1
2
|
export declare function hasOwnProperty(object: any, property: string): boolean;
|
|
2
3
|
export declare function getNestedValue(obj: any, path: (string | number)[], fallback?: any): any;
|
|
3
4
|
export declare function mergeDeep(source?: Record<string, any>, overwrite?: Record<string, any>, arrayFn?: (source: unknown[], overwrite: unknown[]) => unknown[]): {
|
|
@@ -12,3 +13,5 @@ export declare function deepEqual(a: any, b: any): boolean;
|
|
|
12
13
|
export declare function isObject(obj: unknown): boolean;
|
|
13
14
|
export declare function isEmpty(target: any): boolean;
|
|
14
15
|
export declare function omit<T extends object, U extends Extract<keyof T, string>>(obj: T, excludes: U[]): Omit<T, U>;
|
|
16
|
+
export declare const noop: () => undefined;
|
|
17
|
+
export declare function makeEventPromiseLike<T extends Event, P = any>(event: T, promise: Promise<P>): T & Promise<P>;
|