@evance/evance-ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/dist/components/EvAvatar/EvAvatar.d.ts +83 -0
- package/dist/components/EvAvatar/EvAvatar.vue.d.ts +69 -0
- package/dist/components/EvAvatar/index.d.ts +2 -0
- package/dist/components/EvBadge/EvBadge.d.ts +135 -0
- package/dist/components/EvBadge/EvBadge.vue.d.ts +104 -0
- package/dist/components/EvBadge/index.d.ts +2 -0
- package/dist/components/EvButton/EvButton.d.ts +178 -0
- package/dist/components/EvButton/EvButton.vue.d.ts +111 -0
- package/dist/components/EvButton/index.d.ts +2 -0
- package/dist/components/EvButtonGroup/EvButtonGroup.d.ts +66 -0
- package/dist/components/EvButtonGroup/EvButtonGroup.vue.d.ts +56 -0
- package/dist/components/EvButtonGroup/index.d.ts +2 -0
- package/dist/components/EvButtonToggle/EvButtonToggle.d.ts +133 -0
- package/dist/components/EvButtonToggle/EvButtonToggle.vue.d.ts +102 -0
- package/dist/components/EvButtonToggle/index.d.ts +2 -0
- package/dist/components/EvCheckbox/EvCheckbox.d.ts +123 -0
- package/dist/components/EvCheckbox/EvCheckbox.vue.d.ts +84 -0
- package/dist/components/EvCheckbox/index.d.ts +2 -0
- package/dist/components/EvDateField/EvDateField.d.ts +237 -0
- package/dist/components/EvDateField/EvDateField.vue.d.ts +158 -0
- package/dist/components/EvDateField/index.d.ts +2 -0
- package/dist/components/EvDatePicker/EvDatePicker.d.ts +68 -0
- package/dist/components/EvDatePicker/EvDatePicker.vue.d.ts +55 -0
- package/dist/components/EvDatePicker/EvDatePickerMonth/EvDatePickerMonth.d.ts +81 -0
- package/dist/components/EvDatePicker/EvDatePickerMonth/EvDatePickerMonth.vue.d.ts +44 -0
- package/dist/components/EvDatePicker/EvDatePickerMonth/index.d.ts +2 -0
- package/dist/components/EvDatePicker/EvDatePickerMonths/EvDatePickerMonths.d.ts +8 -0
- package/dist/components/EvDatePicker/EvDatePickerMonths/EvDatePickerMonths.vue.d.ts +11 -0
- package/dist/components/EvDatePicker/EvDatePickerMonths/index.d.ts +2 -0
- package/dist/components/EvDatePicker/EvDatePickerYears/EvDatePickerYears.d.ts +20 -0
- package/dist/components/EvDatePicker/EvDatePickerYears/EvDatePickerYears.vue.d.ts +15 -0
- package/dist/components/EvDatePicker/EvDatePickerYears/index.d.ts +2 -0
- package/dist/components/EvDatePicker/index.d.ts +2 -0
- package/dist/components/EvDefaultsProvider/EvDefaultsProvider.d.ts +37 -0
- package/dist/components/EvDefaultsProvider/EvDefaultsProvider.vue.d.ts +24 -0
- package/dist/components/EvDefaultsProvider/index.d.ts +2 -0
- package/dist/components/EvDialog/EvDialog.d.ts +362 -0
- package/dist/components/EvDialog/EvDialog.vue.d.ts +266 -0
- package/dist/components/EvDialog/EvDialogBody.vue.d.ts +9 -0
- package/dist/components/EvDialog/EvDialogFooter.vue.d.ts +9 -0
- package/dist/components/EvDialog/EvDialogHeader.vue.d.ts +23 -0
- package/dist/components/EvDialog/EvDialogInstance.d.ts +12 -0
- package/dist/components/EvDialog/EvDialogRenderer.d.ts +61 -0
- package/dist/components/EvDialog/EvDialogServiceOpener.d.ts +36 -0
- package/dist/components/EvDialog/EvDialogTransition.vue.d.ts +27 -0
- package/dist/components/EvDialog/index.d.ts +2 -0
- package/dist/components/EvDivider/EvDivider.vue.d.ts +60 -0
- package/dist/components/EvDivider/index.d.ts +1 -0
- package/dist/components/EvDrawer/EvDrawer.d.ts +317 -0
- package/dist/components/EvDrawer/EvDrawer.vue.d.ts +227 -0
- package/dist/components/EvDrawer/EvDrawerInstance.d.ts +12 -0
- package/dist/components/EvDrawer/EvDrawerRenderer.d.ts +61 -0
- package/dist/components/EvDrawer/EvDrawerServiceOpener.d.ts +22 -0
- package/dist/components/EvDrawer/index.d.ts +2 -0
- package/dist/components/EvErrors/EvErrors.d.ts +37 -0
- package/dist/components/EvErrors/EvErrors.vue.d.ts +29 -0
- package/dist/components/EvErrors/index.d.ts +2 -0
- package/dist/components/EvForm/EvForm.d.ts +51 -0
- package/dist/components/EvForm/EvForm.vue.d.ts +60 -0
- package/dist/components/EvForm/index.d.ts +2 -0
- package/dist/components/EvGrid/EvBlock/EvBlock.d.ts +101 -0
- package/dist/components/EvGrid/EvBlock/EvBlock.vue.d.ts +50 -0
- package/dist/components/EvGrid/EvBlock/index.d.ts +2 -0
- package/dist/components/EvGrid/EvContainer/EvContainer.d.ts +67 -0
- package/dist/components/EvGrid/EvContainer/EvContainer.vue.d.ts +51 -0
- package/dist/components/EvGrid/EvContainer/index.d.ts +2 -0
- package/dist/components/EvGrid/EvLayout/EvLayout.d.ts +105 -0
- package/dist/components/EvGrid/EvLayout/EvLayout.vue.d.ts +53 -0
- package/dist/components/EvGrid/EvLayout/index.d.ts +2 -0
- package/dist/components/EvGrid/EvSpacer/EvSpacer.d.ts +22 -0
- package/dist/components/EvGrid/EvSpacer/EvSpacer.vue.d.ts +24 -0
- package/dist/components/EvGrid/EvSpacer/index.d.ts +2 -0
- package/dist/components/EvGrid/index.d.ts +4 -0
- package/dist/components/EvIcon/EvIcon.d.ts +47 -0
- package/dist/components/EvIcon/EvIcon.vue.d.ts +29 -0
- package/dist/components/EvIcon/index.d.ts +2 -0
- package/dist/components/EvImg/EvImg.d.ts +180 -0
- package/dist/components/EvImg/EvImg.vue.d.ts +121 -0
- package/dist/components/EvImg/index.d.ts +2 -0
- package/dist/components/EvKbd/EvKbd.d.ts +32 -0
- package/dist/components/EvKbd/EvKbd.vue.d.ts +28 -0
- package/dist/components/EvKbd/index.d.ts +2 -0
- package/dist/components/EvLabel/EvLabel.d.ts +29 -0
- package/dist/components/EvLabel/EvLabel.vue.d.ts +29 -0
- package/dist/components/EvLabel/index.d.ts +2 -0
- package/dist/components/EvList/EvList.d.ts +211 -0
- package/dist/components/EvList/EvList.vue.d.ts +147 -0
- package/dist/components/EvList/EvListChildren.vue.d.ts +21 -0
- package/dist/components/EvList/index.d.ts +2 -0
- package/dist/components/EvListItem/EvListItem.d.ts +108 -0
- package/dist/components/EvListItem/EvListItem.vue.d.ts +87 -0
- package/dist/components/EvListItem/index.d.ts +2 -0
- package/dist/components/EvLozenge/EvLozenge.vue.d.ts +48 -0
- package/dist/components/EvLozenge/index.d.ts +1 -0
- package/dist/components/EvMenu/EvMenu.d.ts +336 -0
- package/dist/components/EvMenu/EvMenu.vue.d.ts +256 -0
- package/dist/components/EvMenu/EvMenuTransition.vue.d.ts +15 -0
- package/dist/components/EvMenu/index.d.ts +3 -0
- package/dist/components/EvMenu/shared.d.ts +9 -0
- package/dist/components/EvMessage/EvMessage.d.ts +147 -0
- package/dist/components/EvMessage/EvMessage.vue.d.ts +107 -0
- package/dist/components/EvMessage/index.d.ts +2 -0
- package/dist/components/EvNotification/EvNotification.d.ts +169 -0
- package/dist/components/EvNotification/EvNotification.vue.d.ts +138 -0
- package/dist/components/EvNotification/index.d.ts +2 -0
- package/dist/components/EvNotifications/EvNotifications.d.ts +14 -0
- package/dist/components/EvNotifications/EvNotifications.vue.d.ts +3 -0
- package/dist/components/EvNotifications/EvNotificationsManager.d.ts +92 -0
- package/dist/components/EvNotifications/index.d.ts +3 -0
- package/dist/components/EvNumberField/EvNumberField.d.ts +389 -0
- package/dist/components/EvNumberField/EvNumberField.vue.d.ts +177 -0
- package/dist/components/EvNumberField/index.d.ts +2 -0
- package/dist/components/EvOverlay/EvOverlay.d.ts +264 -0
- package/dist/components/EvOverlay/EvOverlay.vue.d.ts +196 -0
- package/dist/components/EvOverlay/activator.d.ts +227 -0
- package/dist/components/EvOverlay/index.d.ts +5 -0
- package/dist/components/EvOverlay/position-strategy/connected-position.d.ts +15 -0
- package/dist/components/EvOverlay/position-strategy/index.d.ts +2 -0
- package/dist/components/EvOverlay/position-strategy/static-position.d.ts +10 -0
- package/dist/components/EvOverlay/position.d.ts +81 -0
- package/dist/components/EvOverlay/scroll-strategy/block-scroll.d.ts +8 -0
- package/dist/components/EvOverlay/scroll-strategy/close-scroll.d.ts +7 -0
- package/dist/components/EvOverlay/scroll-strategy/index.d.ts +3 -0
- package/dist/components/EvOverlay/scroll-strategy/reposition-scroll.d.ts +10 -0
- package/dist/components/EvOverlay/scroll.d.ts +47 -0
- package/dist/components/EvProgress/EvProgress.vue.d.ts +42 -0
- package/dist/components/EvProgress/index.d.ts +1 -0
- package/dist/components/EvProgressCircular/EvProgressCircular.vue.d.ts +58 -0
- package/dist/components/EvProgressCircular/index.d.ts +1 -0
- package/dist/components/EvQuickfind/EvQuickfind.vue.d.ts +35 -0
- package/dist/components/EvQuickfind/index.d.ts +1 -0
- package/dist/components/EvRadio/EvRadio.d.ts +90 -0
- package/dist/components/EvRadio/EvRadio.vue.d.ts +74 -0
- package/dist/components/EvRadio/index.d.ts +2 -0
- package/dist/components/EvRadioGroup/EvRadioGroup.d.ts +91 -0
- package/dist/components/EvRadioGroup/EvRadioGroup.vue.d.ts +65 -0
- package/dist/components/EvRadioGroup/index.d.ts +2 -0
- package/dist/components/EvResponsive/EvResponsive.d.ts +85 -0
- package/dist/components/EvResponsive/EvResponsive.vue.d.ts +44 -0
- package/dist/components/EvResponsive/index.d.ts +2 -0
- package/dist/components/EvSelect/EvSelect.d.ts +378 -0
- package/dist/components/EvSelect/EvSelect.vue.d.ts +288 -0
- package/dist/components/EvSelect/index.d.ts +2 -0
- package/dist/components/EvSelect/useScrolling.d.ts +14 -0
- package/dist/components/EvSlideGroup/EvSlideGroup.d.ts +151 -0
- package/dist/components/EvSlideGroup/EvSlideGroup.vue.d.ts +100 -0
- package/dist/components/EvSlideGroup/EvSlideGroupItem.vue.d.ts +36 -0
- package/dist/components/EvSlideGroup/helpers.d.ts +40 -0
- package/dist/components/EvSlideGroup/index.d.ts +3 -0
- package/dist/components/EvSurface/EvSurface.d.ts +84 -0
- package/dist/components/EvSurface/EvSurface.vue.d.ts +52 -0
- package/dist/components/EvSurface/index.d.ts +2 -0
- package/dist/components/EvSwitch/EvSwitch.d.ts +106 -0
- package/dist/components/EvSwitch/EvSwitch.vue.d.ts +84 -0
- package/dist/components/EvSwitch/index.d.ts +2 -0
- package/dist/components/EvTabs/EvTab/EvTab.d.ts +166 -0
- package/dist/components/EvTabs/EvTab/EvTab.vue.d.ts +118 -0
- package/dist/components/EvTabs/EvTab/index.d.ts +2 -0
- package/dist/components/EvTabs/EvTabs.d.ts +179 -0
- package/dist/components/EvTabs/EvTabs.vue.d.ts +132 -0
- package/dist/components/EvTabs/index.d.ts +3 -0
- package/dist/components/EvTag/EvTag.d.ts +199 -0
- package/dist/components/EvTag/EvTag.vue.d.ts +138 -0
- package/dist/components/EvTag/index.d.ts +2 -0
- package/dist/components/EvTagGroup/EvTagGroup.d.ts +184 -0
- package/dist/components/EvTagGroup/EvTagGroup.vue.d.ts +129 -0
- package/dist/components/EvTagGroup/index.d.ts +2 -0
- package/dist/components/EvTextarea/EvTextarea.d.ts +132 -0
- package/dist/components/EvTextarea/EvTextarea.vue.d.ts +110 -0
- package/dist/components/EvTextarea/index.d.ts +2 -0
- package/dist/components/EvTextfield/EvTextfield.d.ts +187 -0
- package/dist/components/EvTextfield/EvTextfield.vue.d.ts +147 -0
- package/dist/components/EvTextfield/index.d.ts +2 -0
- package/dist/components/EvTooltip/EvTooltip.d.ts +336 -0
- package/dist/components/EvTooltip/EvTooltip.vue.d.ts +261 -0
- package/dist/components/EvTooltip/index.d.ts +2 -0
- package/dist/components/EvTransition/EvTransition.d.ts +50 -0
- package/dist/components/EvTransition/index.d.ts +1 -0
- package/dist/components/EvTransition/transitions/createTransition.d.ts +11 -0
- package/dist/components/EvTransition/transitions/expandTransition.d.ts +47 -0
- package/dist/components/EvTransition/transitions/index.d.ts +6 -0
- package/dist/components/EvVirtualScroll/EvVirtualScroll.d.ts +112 -0
- package/dist/components/EvVirtualScroll/EvVirtualScroll.vue.d.ts +64 -0
- package/dist/components/EvVirtualScroll/EvVirtualScrollItem.vue.d.ts +34 -0
- package/dist/components/EvVirtualScroll/index.d.ts +2 -0
- package/dist/components/EvWindow/EvWindow.d.ts +146 -0
- package/dist/components/EvWindow/EvWindow.vue.d.ts +125 -0
- package/dist/components/EvWindow/EvWindowItem/EvWindowItem.d.ts +71 -0
- package/dist/components/EvWindow/EvWindowItem/EvWindowItem.vue.d.ts +55 -0
- package/dist/components/EvWindow/EvWindowItem/index.d.ts +2 -0
- package/dist/components/EvWindow/index.d.ts +3 -0
- package/dist/components/index.d.ts +47 -0
- package/dist/composables/component.d.ts +26 -0
- package/dist/composables/date/DateAdapter.d.ts +33 -0
- package/dist/composables/date/DefaultDateAdapter.d.ts +194 -0
- package/dist/composables/date/date.d.ts +68 -0
- package/dist/composables/date/index.d.ts +3 -0
- package/dist/composables/defaults.d.ts +46 -0
- package/dist/composables/delay.d.ts +28 -0
- package/dist/composables/dialog.d.ts +21 -0
- package/dist/composables/dimensions.d.ts +59 -0
- package/dist/composables/display.d.ts +157 -0
- package/dist/composables/drawer.d.ts +21 -0
- package/dist/composables/filter.d.ts +105 -0
- package/dist/composables/focus.d.ts +46 -0
- package/dist/composables/form.d.ts +78 -0
- package/dist/composables/group.d.ts +99 -0
- package/dist/composables/groupItem.d.ts +70 -0
- package/dist/composables/hasSlotWithContent.d.ts +13 -0
- package/dist/composables/icons.d.ts +12 -0
- package/dist/composables/index.d.ts +7 -0
- package/dist/composables/lazy.d.ts +23 -0
- package/dist/composables/lists/index.d.ts +6 -0
- package/dist/composables/lists/list-items.d.ts +159 -0
- package/dist/composables/lists/list.d.ts +26 -0
- package/dist/composables/lists/move-strategies.d.ts +0 -0
- package/dist/composables/lists/nested.d.ts +134 -0
- package/dist/composables/lists/open-strategies.d.ts +72 -0
- package/dist/composables/lists/open-strategy/index.d.ts +3 -0
- package/dist/composables/lists/open-strategy/list.d.ts +6 -0
- package/dist/composables/lists/open-strategy/multiple.d.ts +6 -0
- package/dist/composables/lists/open-strategy/single.d.ts +6 -0
- package/dist/composables/lists/select-strategies.d.ts +83 -0
- package/dist/composables/lists/select-strategy/cascade-leaf.d.ts +14 -0
- package/dist/composables/lists/select-strategy/index.d.ts +5 -0
- package/dist/composables/lists/select-strategy/multi-any.d.ts +10 -0
- package/dist/composables/lists/select-strategy/multi-leaf.d.ts +10 -0
- package/dist/composables/lists/select-strategy/single-any.d.ts +10 -0
- package/dist/composables/lists/select-strategy/single-leaf.d.ts +10 -0
- package/dist/composables/lists/sequenced.d.ts +11 -0
- package/dist/composables/locale.d.ts +31 -0
- package/dist/composables/modelProxy.d.ts +11 -0
- package/dist/composables/notification.d.ts +19 -0
- package/dist/composables/position.d.ts +19 -0
- package/dist/composables/resizeObserver.d.ts +13 -0
- package/dist/composables/rounded.d.ts +26 -0
- package/dist/composables/router.d.ts +75 -0
- package/dist/composables/scopeId.d.ts +5 -0
- package/dist/composables/selectLink.d.ts +9 -0
- package/dist/composables/size.d.ts +30 -0
- package/dist/composables/ssrBoot.d.ts +9 -0
- package/dist/composables/stack.d.ts +19 -0
- package/dist/composables/tag.d.ts +17 -0
- package/dist/composables/teleport.d.ts +13 -0
- package/dist/composables/toggleScope.d.ts +3 -0
- package/dist/composables/validation.d.ts +107 -0
- package/dist/composables/virtual.d.ts +43 -0
- package/dist/directives/click-outside.d.ts +50 -0
- package/dist/directives/index.d.ts +4 -0
- package/dist/directives/intersect.d.ts +32 -0
- package/dist/directives/slots.d.ts +7 -0
- package/dist/directives/touch.d.ts +52 -0
- package/dist/entry-bundler.d.ts +11 -0
- package/dist/evance-ui.cjs.js +5 -0
- package/dist/evance-ui.css +1 -0
- package/dist/evance-ui.es.d.ts +1 -0
- package/dist/evance-ui.es.js +10460 -0
- package/dist/evance-ui.umd.js +5 -0
- package/dist/framework.d.ts +27 -0
- package/dist/icons/brand/index.d.ts +20 -0
- package/dist/icons/editor/index.d.ts +105 -0
- package/dist/icons/index.d.ts +244 -0
- package/dist/locale/en.d.ts +25 -0
- package/dist/modules/Form/Form.d.ts +67 -0
- package/dist/modules/Form/FormField.d.ts +96 -0
- package/dist/modules/Locale/LocaleCode.d.ts +18 -0
- package/dist/modules/Locale/LocaleManager.d.ts +28 -0
- package/dist/modules/Locale/Localized.d.ts +40 -0
- package/dist/modules/NumberFormatter.d.ts +9 -0
- package/dist/modules/Translation/LanguagePack.d.ts +26 -0
- package/dist/modules/Translation/Pluralization.d.ts +30 -0
- package/dist/modules/Translation/Translatable.d.ts +21 -0
- package/dist/modules/Translation/TranslationCode.d.ts +28 -0
- package/dist/modules/Translation/Translator.d.ts +77 -0
- package/dist/services/dialog.d.ts +9 -0
- package/dist/services/drawer.d.ts +9 -0
- package/dist/services/index.d.ts +3 -0
- package/dist/services/notification.d.ts +9 -0
- package/dist/util/anchor.d.ts +62 -0
- package/dist/util/animate.d.ts +38 -0
- package/dist/util/appearance.d.ts +148 -0
- package/dist/util/array.d.ts +11 -0
- package/dist/util/bindProps.d.ts +12 -0
- package/dist/util/browser.d.ts +13 -0
- package/dist/util/children.d.ts +24 -0
- package/dist/util/components.d.ts +10 -0
- package/dist/util/console.d.ts +10 -0
- package/dist/util/dimensions.d.ts +92 -0
- package/dist/util/events.d.ts +68 -0
- package/dist/util/helpers.d.ts +161 -0
- package/dist/util/index.d.ts +23 -0
- package/dist/util/injectSelf.d.ts +3 -0
- package/dist/util/is-functions.d.ts +100 -0
- package/dist/util/isFixedPosition.d.ts +1 -0
- package/dist/util/keyboard.d.ts +24 -0
- package/dist/util/modifiers.d.ts +27 -0
- package/dist/util/numbers.d.ts +9 -0
- package/dist/util/props.d.ts +62 -0
- package/dist/util/scroll.d.ts +51 -0
- package/dist/util/strings.d.ts +91 -0
- package/dist/util/style.d.ts +7 -0
- package/dist/util/units.d.ts +24 -0
- package/package.json +77 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Ref } from 'vue/dist/vue';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* # Localized
|
|
5
|
+
*/
|
|
6
|
+
export declare class Localized {
|
|
7
|
+
readonly defaultLocale: Ref<string>;
|
|
8
|
+
readonly currentLocale: Ref<string>;
|
|
9
|
+
/**
|
|
10
|
+
* @param defaultLocale
|
|
11
|
+
* @param currentLocale
|
|
12
|
+
*/
|
|
13
|
+
constructor(defaultLocale: Ref<string>, currentLocale: Ref<string>);
|
|
14
|
+
/**
|
|
15
|
+
* ## Get Translation Codes
|
|
16
|
+
*
|
|
17
|
+
* Returns all the translation codes for the Locale we should use when getting a translatable.
|
|
18
|
+
* This includes a fallback to our default TranslationCode.
|
|
19
|
+
*
|
|
20
|
+
* @param locale
|
|
21
|
+
*/
|
|
22
|
+
getTranslationCodes(locale: string): string[];
|
|
23
|
+
/**
|
|
24
|
+
* ## Set Current Locale
|
|
25
|
+
*
|
|
26
|
+
* Set the current locale so that we don't have to use it in each translate call,
|
|
27
|
+
* unless we want to.
|
|
28
|
+
*
|
|
29
|
+
* @param locale
|
|
30
|
+
*/
|
|
31
|
+
setCurrentLocale(locale: string): void;
|
|
32
|
+
/**
|
|
33
|
+
* ## Set Default Locale
|
|
34
|
+
*
|
|
35
|
+
* The default locale to use if translations are unavailable for the current locale.
|
|
36
|
+
*
|
|
37
|
+
* @param locale
|
|
38
|
+
*/
|
|
39
|
+
setDefaultLocale(locale: string): void;
|
|
40
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Localized } from './Locale/Localized.ts';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* # Number Formatter
|
|
5
|
+
*/
|
|
6
|
+
export declare class NumberFormatter extends Localized {
|
|
7
|
+
format(value: number, options?: Intl.NumberFormatOptions, locale?: string): string;
|
|
8
|
+
formatter(options?: Intl.NumberFormatOptions, locale?: string): Intl.NumberFormat;
|
|
9
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PluralizationRules } from './Pluralization.ts';
|
|
2
|
+
import { Translatable } from './Translatable.ts';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* # Language Pack
|
|
6
|
+
*/
|
|
7
|
+
export declare class LanguagePack {
|
|
8
|
+
translationCode: string;
|
|
9
|
+
data: LanguagePackData;
|
|
10
|
+
/**
|
|
11
|
+
* @param translationCode
|
|
12
|
+
* @param data
|
|
13
|
+
*/
|
|
14
|
+
constructor(translationCode: string, data?: LanguagePackData);
|
|
15
|
+
/**
|
|
16
|
+
* ## Get Translatable
|
|
17
|
+
* @param reference
|
|
18
|
+
*/
|
|
19
|
+
getTranslatable(reference: string): Translatable | null;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* # Language Pack Data
|
|
23
|
+
*/
|
|
24
|
+
export interface LanguagePackData {
|
|
25
|
+
[key: string]: LanguagePackData | PluralizationRules | string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* # Pluralization
|
|
3
|
+
*
|
|
4
|
+
* Pluralization supports cardinal and ordinal values.
|
|
5
|
+
*
|
|
6
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/PluralRules
|
|
7
|
+
*/
|
|
8
|
+
export declare const pluralizationRuleKeys: readonly ["zero", "one", "two", "few", "many", "other"];
|
|
9
|
+
export type PluralizationRuleKey = typeof pluralizationRuleKeys[number];
|
|
10
|
+
export type PluralizationRules = {
|
|
11
|
+
[K in PluralizationRuleKey]?: string;
|
|
12
|
+
} & {
|
|
13
|
+
ordinal?: boolean;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* ## Is Pluralization Key
|
|
17
|
+
*
|
|
18
|
+
* Determines whether the value supplied represents a valid pluralization rule key.
|
|
19
|
+
*
|
|
20
|
+
* @param key
|
|
21
|
+
*/
|
|
22
|
+
export declare function isPluralizationKey(key: any): key is PluralizationRuleKey;
|
|
23
|
+
/**
|
|
24
|
+
* # Is Pluralization Rules
|
|
25
|
+
*
|
|
26
|
+
* Determines whether a value contains an object with pluralization rules within it.
|
|
27
|
+
*
|
|
28
|
+
* @param value
|
|
29
|
+
*/
|
|
30
|
+
export declare function isPluralizationRules(value: any): value is PluralizationRules;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TranslationVariables } from './Translator.ts';
|
|
2
|
+
import { PluralizationRuleKey, PluralizationRules } from './Pluralization.ts';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* # Translatable
|
|
6
|
+
*/
|
|
7
|
+
export declare class Translatable {
|
|
8
|
+
translationCode: string;
|
|
9
|
+
reference: string;
|
|
10
|
+
data: string | PluralizationRules;
|
|
11
|
+
constructor(translationCode: string, reference: string, data: string | PluralizationRules);
|
|
12
|
+
get defaultText(): string;
|
|
13
|
+
get isString(): boolean;
|
|
14
|
+
get isPluralization(): boolean;
|
|
15
|
+
getText(rule: PluralizationRuleKey): string | null;
|
|
16
|
+
/**
|
|
17
|
+
* ## Translate
|
|
18
|
+
* @param variables
|
|
19
|
+
*/
|
|
20
|
+
translate(variables?: TranslationVariables): string | undefined;
|
|
21
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* # Translation Code
|
|
3
|
+
*
|
|
4
|
+
* Language Code: ISO 639-1 codes (required)
|
|
5
|
+
* Country Code: ISO 3166-1 Alpha-2 country code (optional)
|
|
6
|
+
*/
|
|
7
|
+
export declare class TranslationCode {
|
|
8
|
+
languageCode: string;
|
|
9
|
+
countryCode: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* @param languageCode
|
|
12
|
+
* @param countryCode
|
|
13
|
+
*/
|
|
14
|
+
constructor(languageCode: string, countryCode?: string | null);
|
|
15
|
+
get isRegional(): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* ## From String
|
|
18
|
+
*
|
|
19
|
+
* Accepts an Evance Locale Code string e.g. 'en-gb'.
|
|
20
|
+
* But will also accept 'en_GB'.
|
|
21
|
+
* @param code
|
|
22
|
+
*/
|
|
23
|
+
static fromString(code: string): TranslationCode;
|
|
24
|
+
/**
|
|
25
|
+
* ## To String
|
|
26
|
+
*/
|
|
27
|
+
toString(): string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Localized } from '../Locale/Localized.ts';
|
|
2
|
+
import { LanguagePack, LanguagePackData } from './LanguagePack.ts';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* # Translation Options
|
|
6
|
+
*
|
|
7
|
+
* When requesting a translation you may supply an object with keys matching
|
|
8
|
+
* the variable names of the string template within a Language Pack.
|
|
9
|
+
*
|
|
10
|
+
* The only reserved key term is `ordinal`, which is reserved for telling the
|
|
11
|
+
* translator that we should expect an ordinal, not a cardinal translation
|
|
12
|
+
* from a pluralization rule set.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
export type TranslationVariables = {
|
|
16
|
+
[key: string]: string | number | boolean;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* # Translator
|
|
20
|
+
*/
|
|
21
|
+
export declare class Translator extends Localized {
|
|
22
|
+
private languagePacks;
|
|
23
|
+
private translatables;
|
|
24
|
+
/**
|
|
25
|
+
* ## Add Language Pack
|
|
26
|
+
*
|
|
27
|
+
* The new language pack is added to the beginning of the array of available language packs.
|
|
28
|
+
* This makes it possible for subsequent language packs to override references.
|
|
29
|
+
*
|
|
30
|
+
* @param locale
|
|
31
|
+
* @param messages
|
|
32
|
+
*/
|
|
33
|
+
addLanguagePack(locale: string, messages: LanguagePackData): void;
|
|
34
|
+
/**
|
|
35
|
+
* ## Get Closest Translatable
|
|
36
|
+
*
|
|
37
|
+
* Returns the closest available translatable object matching the reference supplied across all
|
|
38
|
+
* language packs matching translation codes from the locale, or the default.
|
|
39
|
+
*
|
|
40
|
+
* For example if a locale was supplied of "de-de", and our default translations were in "en",
|
|
41
|
+
* then we would search for language packs "de-de", "de" and "en" in sequence.
|
|
42
|
+
*
|
|
43
|
+
* @param locale
|
|
44
|
+
* @param reference
|
|
45
|
+
*/
|
|
46
|
+
private getClosestTranslatable;
|
|
47
|
+
/**
|
|
48
|
+
* ## Get Language Packs
|
|
49
|
+
*/
|
|
50
|
+
getLanguagePacks(): LanguagePack[];
|
|
51
|
+
/**
|
|
52
|
+
* # Get Language Packs for TranslationCode
|
|
53
|
+
*
|
|
54
|
+
* Returns the all available language pack matching the translation code.
|
|
55
|
+
*
|
|
56
|
+
* @param translationCode
|
|
57
|
+
*/
|
|
58
|
+
private getLanguagePacksForTranslationCode;
|
|
59
|
+
/**
|
|
60
|
+
* ## Get Translatable
|
|
61
|
+
*
|
|
62
|
+
* Returns a translatable item from a language pack matching the supplied translation code.
|
|
63
|
+
* Returns `null` if either the language pack is unavailable, or if the
|
|
64
|
+
*
|
|
65
|
+
* @param translationCode
|
|
66
|
+
* @param reference
|
|
67
|
+
*/
|
|
68
|
+
private getTranslatable;
|
|
69
|
+
/**
|
|
70
|
+
* ## Translate
|
|
71
|
+
*
|
|
72
|
+
* @param locale
|
|
73
|
+
* @param reference
|
|
74
|
+
* @param variables
|
|
75
|
+
*/
|
|
76
|
+
translate(reference: string, variables?: TranslationVariables, locale?: string | undefined): string | undefined;
|
|
77
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Axis } from './dimensions.ts';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* # Anchors
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
type VerticalSide = "top" | "bottom";
|
|
8
|
+
type EdgeAlignment = "start" | "end" | "center";
|
|
9
|
+
type HorizontalSide = "left" | "right";
|
|
10
|
+
type SelectorSeparator = " " | "-";
|
|
11
|
+
export type AnchorSelector = VerticalSide | HorizontalSide | `${VerticalSide}${SelectorSeparator}${EdgeAlignment}` | `${HorizontalSide}${SelectorSeparator}${EdgeAlignment}` | 'auto' | `auto${SelectorSeparator}${EdgeAlignment | 'auto'}` | 'center' | `center${SelectorSeparator}center`;
|
|
12
|
+
export type AnchorSide = VerticalSide | HorizontalSide | 'auto' | 'center';
|
|
13
|
+
export type AnchorAlignment = EdgeAlignment | 'auto';
|
|
14
|
+
export type PhysicalAlignment = 'left' | 'right' | 'center';
|
|
15
|
+
export type PhysicalSide = HorizontalSide | VerticalSide;
|
|
16
|
+
/**
|
|
17
|
+
* # Anchor
|
|
18
|
+
*
|
|
19
|
+
* - `alignment`: 'start', 'end', 'center', 'auto'
|
|
20
|
+
* - `side`: 'top', 'bottom', 'left', 'right', 'center', 'auto'
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export declare class Anchor {
|
|
24
|
+
side: AnchorSide;
|
|
25
|
+
alignment: AnchorAlignment;
|
|
26
|
+
constructor(side: AnchorSide, alignment: AnchorAlignment);
|
|
27
|
+
/**
|
|
28
|
+
* ## Get Axis
|
|
29
|
+
* Returns either x or y axis.
|
|
30
|
+
*/
|
|
31
|
+
get axis(): Axis;
|
|
32
|
+
/**
|
|
33
|
+
* ## Physical Alignment
|
|
34
|
+
*/
|
|
35
|
+
get physicalAlignment(): PhysicalAlignment;
|
|
36
|
+
/**
|
|
37
|
+
* ## Center Align
|
|
38
|
+
*/
|
|
39
|
+
centerAlign(): Anchor;
|
|
40
|
+
/**
|
|
41
|
+
* ## Flip Alignment
|
|
42
|
+
*/
|
|
43
|
+
flipAlignment(): Anchor;
|
|
44
|
+
/**
|
|
45
|
+
* ## Flip Corner
|
|
46
|
+
*/
|
|
47
|
+
flipCorner(): Anchor;
|
|
48
|
+
/**
|
|
49
|
+
* ## Flip Side
|
|
50
|
+
*/
|
|
51
|
+
flipSide(): Anchor;
|
|
52
|
+
/**
|
|
53
|
+
* ## Parse Selector
|
|
54
|
+
* @param selector
|
|
55
|
+
* @param isRtl
|
|
56
|
+
* @private
|
|
57
|
+
*/
|
|
58
|
+
static fromSelector(selector: AnchorSelector, isRtl?: boolean): Anchor;
|
|
59
|
+
toCssValue(): string;
|
|
60
|
+
toString(): string;
|
|
61
|
+
}
|
|
62
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* # Animate
|
|
3
|
+
*
|
|
4
|
+
* We take advantage of the Element interface's animate() method.
|
|
5
|
+
*
|
|
6
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/animate
|
|
7
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API/Keyframe_Formats
|
|
8
|
+
*
|
|
9
|
+
* @param el The element we wish to animate
|
|
10
|
+
* @param keyframes The keyframes to use during animation (see the Keyframes format)
|
|
11
|
+
* @param options An integer duration (in milliseconds), OR an Object containing timing properties
|
|
12
|
+
*/
|
|
13
|
+
export declare function animate(el: Element, keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): {
|
|
14
|
+
readonly finished: Promise<void>;
|
|
15
|
+
} | Animation;
|
|
16
|
+
/**
|
|
17
|
+
* ## Animate Finished
|
|
18
|
+
*
|
|
19
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Animation/finished
|
|
20
|
+
*/
|
|
21
|
+
export declare const animateFinished: {
|
|
22
|
+
readonly finished: Promise<void>;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* # Click Blocked Animation
|
|
26
|
+
* @param el
|
|
27
|
+
*/
|
|
28
|
+
export declare function clickBlockedAnimation(el: HTMLElement | null | undefined): {
|
|
29
|
+
readonly finished: Promise<void>;
|
|
30
|
+
} | Animation | null;
|
|
31
|
+
/**
|
|
32
|
+
* Schedule a task to run in an animation frame on its own
|
|
33
|
+
* This is useful for heavy tasks that may cause jank if all ran together
|
|
34
|
+
*/
|
|
35
|
+
export declare function requestNewFrame(callback: () => void): void;
|
|
36
|
+
export declare const easingStandard = "cubic-bezier(0.4, 0, 0.2, 1)";
|
|
37
|
+
export declare const easingDecelerate = "cubic-bezier(0.0, 0, 0.2, 1)";
|
|
38
|
+
export declare const easingAccelerate = "cubic-bezier(0.4, 0, 1, 1)";
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { GroupItemProvide } from '../composables/groupItem.ts';
|
|
2
|
+
import { MaybeRef, PropType, Ref } from 'vue';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* # Appearance
|
|
6
|
+
*
|
|
7
|
+
* Default appearance keys for
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export declare enum Appearance {
|
|
11
|
+
default = "default",
|
|
12
|
+
danger = "danger",
|
|
13
|
+
information = "information",
|
|
14
|
+
notice = "notice",
|
|
15
|
+
primary = "primary",
|
|
16
|
+
success = "success",
|
|
17
|
+
warning = "warning"
|
|
18
|
+
}
|
|
19
|
+
export type AppearanceProp = keyof typeof Appearance;
|
|
20
|
+
export declare enum Variant {
|
|
21
|
+
default = "default",
|
|
22
|
+
bold = "bold",
|
|
23
|
+
outlined = "outlined",
|
|
24
|
+
subtle = "subtle",
|
|
25
|
+
tonal = "tonal"
|
|
26
|
+
}
|
|
27
|
+
export type VariantProp = keyof typeof Variant;
|
|
28
|
+
export interface AppearanceProps {
|
|
29
|
+
appearance: AppearanceProp;
|
|
30
|
+
variant: VariantProp;
|
|
31
|
+
}
|
|
32
|
+
export declare const makeAppearanceProps: <Defaults extends {
|
|
33
|
+
appearance?: unknown;
|
|
34
|
+
variant?: unknown;
|
|
35
|
+
} = {}>(defaults?: Defaults | undefined) => {
|
|
36
|
+
appearance: unknown extends Defaults["appearance"] ? {
|
|
37
|
+
type: PropType<"default" | "danger" | "information" | "notice" | "primary" | "success" | "warning">;
|
|
38
|
+
default: Appearance;
|
|
39
|
+
} : Omit<{
|
|
40
|
+
type: PropType<"default" | "danger" | "information" | "notice" | "primary" | "success" | "warning">;
|
|
41
|
+
default: Appearance;
|
|
42
|
+
}, "type" | "default"> & {
|
|
43
|
+
type: PropType<unknown extends Defaults["appearance"] ? "default" | "danger" | "information" | "notice" | "primary" | "success" | "warning" : Defaults["appearance"] | NonNullable<"default" | "danger" | "information" | "notice" | "primary" | "success" | "warning">>;
|
|
44
|
+
default: unknown extends Defaults["appearance"] ? "default" | "danger" | "information" | "notice" | "primary" | "success" | "warning" : Defaults["appearance"] | NonNullable<"default" | "danger" | "information" | "notice" | "primary" | "success" | "warning">;
|
|
45
|
+
};
|
|
46
|
+
variant: unknown extends Defaults["variant"] ? {
|
|
47
|
+
type: PropType<"default" | "bold" | "outlined" | "subtle" | "tonal">;
|
|
48
|
+
default: Variant;
|
|
49
|
+
} : Omit<{
|
|
50
|
+
type: PropType<"default" | "bold" | "outlined" | "subtle" | "tonal">;
|
|
51
|
+
default: Variant;
|
|
52
|
+
}, "type" | "default"> & {
|
|
53
|
+
type: PropType<unknown extends Defaults["variant"] ? "default" | "bold" | "outlined" | "subtle" | "tonal" : NonNullable<"default" | "bold" | "outlined" | "subtle" | "tonal"> | Defaults["variant"]>;
|
|
54
|
+
default: unknown extends Defaults["variant"] ? "default" | "bold" | "outlined" | "subtle" | "tonal" : NonNullable<"default" | "bold" | "outlined" | "subtle" | "tonal"> | Defaults["variant"];
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* # useAppearance
|
|
59
|
+
*
|
|
60
|
+
* @param props
|
|
61
|
+
* @param group
|
|
62
|
+
* @param isActive
|
|
63
|
+
* @param defaultVariant
|
|
64
|
+
*/
|
|
65
|
+
export declare function useAppearance(props: MaybeRef<Partial<AppearanceProps>>, group?: GroupItemProvide | null, isActive?: Ref<boolean | undefined> | null, defaultVariant?: string): {
|
|
66
|
+
appearance: import('vue').ComputedRef<string>;
|
|
67
|
+
appearanceClass: import('vue').ComputedRef<string | undefined>;
|
|
68
|
+
variant: import('vue').ComputedRef<string>;
|
|
69
|
+
variantClass: import('vue').ComputedRef<string | undefined>;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* # Input Appearance
|
|
73
|
+
*/
|
|
74
|
+
export declare enum InputAppearance {
|
|
75
|
+
default = "default",
|
|
76
|
+
button = "button",
|
|
77
|
+
none = "none",
|
|
78
|
+
subtle = "subtle"
|
|
79
|
+
}
|
|
80
|
+
export type InputAppearanceKey = keyof typeof InputAppearance;
|
|
81
|
+
export type InputAppearanceProp = typeof InputAppearance[InputAppearanceKey];
|
|
82
|
+
export declare const makeInputAppearanceProps: <Defaults extends {
|
|
83
|
+
appearance?: unknown;
|
|
84
|
+
} = {}>(defaults?: Defaults | undefined) => {
|
|
85
|
+
appearance: unknown extends Defaults["appearance"] ? {
|
|
86
|
+
type: PropType<InputAppearanceProp>;
|
|
87
|
+
default: InputAppearance;
|
|
88
|
+
} : Omit<{
|
|
89
|
+
type: PropType<InputAppearanceProp>;
|
|
90
|
+
default: InputAppearance;
|
|
91
|
+
}, "type" | "default"> & {
|
|
92
|
+
type: PropType<unknown extends Defaults["appearance"] ? InputAppearanceProp : Defaults["appearance"] | NonNullable<InputAppearanceProp>>;
|
|
93
|
+
default: unknown extends Defaults["appearance"] ? InputAppearanceProp : Defaults["appearance"] | NonNullable<InputAppearanceProp>;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* # Input Sizes
|
|
98
|
+
*/
|
|
99
|
+
export declare enum InputSize {
|
|
100
|
+
default = "medium",
|
|
101
|
+
xSmall = "x-small",
|
|
102
|
+
small = "small",
|
|
103
|
+
medium = "medium",
|
|
104
|
+
large = "large",
|
|
105
|
+
xLarge = "x-large"
|
|
106
|
+
}
|
|
107
|
+
export type InputSizeCamel = keyof typeof InputSize;
|
|
108
|
+
export type InputSizeKebab = 'x-small' | 'x-large';
|
|
109
|
+
export type InputSizeProp = InputSizeCamel | InputSizeKebab;
|
|
110
|
+
export declare const makeInputSizeProps: <Defaults extends {
|
|
111
|
+
size?: unknown;
|
|
112
|
+
} = {}>(defaults?: Defaults | undefined) => {
|
|
113
|
+
size: unknown extends Defaults["size"] ? {
|
|
114
|
+
type: PropType<InputSizeProp>;
|
|
115
|
+
default: InputSize;
|
|
116
|
+
} : Omit<{
|
|
117
|
+
type: PropType<InputSizeProp>;
|
|
118
|
+
default: InputSize;
|
|
119
|
+
}, "type" | "default"> & {
|
|
120
|
+
type: PropType<unknown extends Defaults["size"] ? InputSizeProp : Defaults["size"] | NonNullable<InputSizeProp>>;
|
|
121
|
+
default: unknown extends Defaults["size"] ? InputSizeProp : Defaults["size"] | NonNullable<InputSizeProp>;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* # Text Align
|
|
126
|
+
*/
|
|
127
|
+
export declare enum TextAlign {
|
|
128
|
+
default = "left",
|
|
129
|
+
left = "left",
|
|
130
|
+
center = "center",
|
|
131
|
+
right = "right"
|
|
132
|
+
}
|
|
133
|
+
export type TextAlignKey = keyof typeof TextAlign;
|
|
134
|
+
export type TextAlignProp = typeof TextAlign[TextAlignKey];
|
|
135
|
+
export declare const makeTextAlignProps: <Defaults extends {
|
|
136
|
+
align?: unknown;
|
|
137
|
+
} = {}>(defaults?: Defaults | undefined) => {
|
|
138
|
+
align: unknown extends Defaults["align"] ? {
|
|
139
|
+
type: PropType<TextAlignProp>;
|
|
140
|
+
default: TextAlign;
|
|
141
|
+
} : Omit<{
|
|
142
|
+
type: PropType<TextAlignProp>;
|
|
143
|
+
default: TextAlign;
|
|
144
|
+
}, "type" | "default"> & {
|
|
145
|
+
type: PropType<unknown extends Defaults["align"] ? TextAlignProp : Defaults["align"] | NonNullable<TextAlignProp>>;
|
|
146
|
+
default: unknown extends Defaults["align"] ? TextAlignProp : Defaults["align"] | NonNullable<TextAlignProp>;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* # randomArrayItem
|
|
3
|
+
*
|
|
4
|
+
* Returns a random element from any array, or `undefined` if the array is empty.
|
|
5
|
+
*
|
|
6
|
+
* You can change the value returned if the array is empty by supplying the `emptyValue`.
|
|
7
|
+
*
|
|
8
|
+
* @param array
|
|
9
|
+
* @param emptyValue
|
|
10
|
+
*/
|
|
11
|
+
export declare function randomArrayItem(array: any[], emptyValue?: any): any;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* # Bind Props
|
|
3
|
+
* @param el
|
|
4
|
+
* @param props
|
|
5
|
+
*/
|
|
6
|
+
export declare function bindProps(el: HTMLElement, props: Record<string, any>): void;
|
|
7
|
+
/**
|
|
8
|
+
* # Unbind Props
|
|
9
|
+
* @param el
|
|
10
|
+
* @param props
|
|
11
|
+
*/
|
|
12
|
+
export declare function unbindProps(el: HTMLElement, props: Record<string, any>): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* # Browser
|
|
3
|
+
*/
|
|
4
|
+
export declare class Browser {
|
|
5
|
+
static readonly hasWindow: boolean;
|
|
6
|
+
static readonly supportsIntersection: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* ## Supports Touch
|
|
9
|
+
* Added into a static getter method to avoid issues during development when switching between emulators.
|
|
10
|
+
*/
|
|
11
|
+
static get supportsTouch(): boolean;
|
|
12
|
+
static readonly supportsFocusVisible: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentInternalInstance, InjectionKey, VNodeChild } from 'vue';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* # findChildren
|
|
5
|
+
*
|
|
6
|
+
* @param vnode
|
|
7
|
+
*/
|
|
8
|
+
export declare function findChildren(vnode?: VNodeChild): ComponentInternalInstance[];
|
|
9
|
+
/**
|
|
10
|
+
* # findChildrenWithProvide
|
|
11
|
+
*
|
|
12
|
+
* @param key
|
|
13
|
+
* @param vnode
|
|
14
|
+
*/
|
|
15
|
+
export declare function findChildrenWithProvide(key: InjectionKey<any> | symbol, vnode?: VNodeChild): ComponentInternalInstance[];
|
|
16
|
+
/**
|
|
17
|
+
* # focusableChildren
|
|
18
|
+
*
|
|
19
|
+
* Find children within the supplied `el` we focus to.
|
|
20
|
+
*
|
|
21
|
+
* @param el
|
|
22
|
+
* @param filterByTabIndex
|
|
23
|
+
*/
|
|
24
|
+
export declare function focusableChildren(el: Element, filterByTabIndex?: boolean): HTMLElement[];
|