@vuetify/nightly 3.2.0-dev-20230309.0 → 3.2.0-dev-20230322.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/CHANGELOG.md +2 -2
- package/dist/json/attributes.json +210 -30
- package/dist/json/importMap.json +4 -4
- package/dist/json/tags.json +47 -2
- package/dist/json/web-types.json +529 -63
- package/dist/vuetify-labs.css +1186 -1146
- package/dist/vuetify-labs.d.ts +56928 -14280
- package/dist/vuetify-labs.esm.js +557 -363
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +557 -363
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +204 -179
- package/dist/vuetify.d.ts +55330 -15866
- package/dist/vuetify.esm.js +400 -306
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +400 -306
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +668 -667
- package/dist/vuetify.min.js.map +1 -1
- package/lib/blueprints/index.d.ts +6 -9
- package/lib/blueprints/md1.d.ts +6 -9
- package/lib/blueprints/md2.d.ts +6 -9
- package/lib/blueprints/md3.d.ts +6 -9
- package/lib/blueprints/md3.mjs +6 -0
- package/lib/blueprints/md3.mjs.map +1 -1
- package/lib/components/VAlert/VAlert.mjs +29 -15
- package/lib/components/VAlert/VAlert.mjs.map +1 -1
- package/lib/components/VAlert/index.d.ts +510 -82
- package/lib/components/VApp/VApp.css +1 -0
- package/lib/components/VApp/VApp.sass +1 -0
- package/lib/components/VApp/index.d.ts +158 -20
- package/lib/components/VAppBar/VAppBar.mjs +2 -2
- package/lib/components/VAppBar/VAppBar.mjs.map +1 -1
- package/lib/components/VAppBar/index.d.ts +616 -110
- package/lib/components/VAutocomplete/VAutocomplete.mjs +13 -7
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VAutocomplete/index.d.ts +1656 -130
- package/lib/components/VAvatar/index.d.ts +205 -29
- package/lib/components/VBadge/index.d.ts +284 -42
- package/lib/components/VBanner/VBanner.mjs +19 -12
- package/lib/components/VBanner/VBanner.mjs.map +1 -1
- package/lib/components/VBanner/index.d.ts +478 -84
- package/lib/components/VBottomNavigation/index.d.ts +321 -40
- package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs +11 -7
- package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs.map +1 -1
- package/lib/components/VBreadcrumbs/index.d.ts +325 -45
- package/lib/components/VBtn/VBtn.css +0 -5
- package/lib/components/VBtn/VBtn.mjs +65 -58
- package/lib/components/VBtn/VBtn.mjs.map +1 -1
- package/lib/components/VBtn/VBtn.sass +0 -7
- package/lib/components/VBtn/_variables.scss +0 -2
- package/lib/components/VBtn/index.d.ts +452 -69
- package/lib/components/VBtnGroup/VBtnGroup.mjs +1 -7
- package/lib/components/VBtnGroup/VBtnGroup.mjs.map +1 -1
- package/lib/components/VBtnGroup/index.d.ts +185 -26
- package/lib/components/VBtnToggle/VBtnToggle.mjs +2 -2
- package/lib/components/VBtnToggle/VBtnToggle.mjs.map +1 -1
- package/lib/components/VBtnToggle/index.d.ts +245 -35
- package/lib/components/VCard/VCard.mjs +10 -6
- package/lib/components/VCard/VCard.mjs.map +1 -1
- package/lib/components/VCard/VCardItem.mjs +27 -23
- package/lib/components/VCard/VCardItem.mjs.map +1 -1
- package/lib/components/VCard/index.d.ts +938 -172
- package/lib/components/VCarousel/index.d.ts +561 -123
- package/lib/components/VCheckbox/VCheckbox.mjs +2 -2
- package/lib/components/VCheckbox/VCheckbox.mjs.map +1 -1
- package/lib/components/VCheckbox/VCheckboxBtn.mjs +1 -4
- package/lib/components/VCheckbox/VCheckboxBtn.mjs.map +1 -1
- package/lib/components/VCheckbox/index.d.ts +831 -147
- package/lib/components/VChip/VChip.css +110 -90
- package/lib/components/VChip/VChip.mjs +70 -48
- package/lib/components/VChip/VChip.mjs.map +1 -1
- package/lib/components/VChip/_mixins.scss +27 -23
- package/lib/components/VChip/index.d.ts +474 -76
- package/lib/components/VChipGroup/index.d.ts +227 -32
- package/lib/components/VCode/index.d.ts +109 -16
- package/lib/components/VColorPicker/index.d.ts +284 -20
- package/lib/components/VCombobox/VCombobox.mjs +13 -7
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VCombobox/index.d.ts +1668 -130
- package/lib/components/VCounter/index.d.ts +1894 -87
- package/lib/components/VDefaultsProvider/VDefaultsProvider.mjs +4 -1
- package/lib/components/VDefaultsProvider/VDefaultsProvider.mjs.map +1 -1
- package/lib/components/VDefaultsProvider/index.d.ts +133 -21
- package/lib/components/VDialog/VDialog.css +31 -24
- package/lib/components/VDialog/VDialog.mjs +2 -2
- package/lib/components/VDialog/VDialog.mjs.map +1 -1
- package/lib/components/VDialog/VDialog.sass +19 -12
- package/lib/components/VDialog/index.d.ts +2362 -146
- package/lib/components/VDivider/index.d.ts +130 -23
- package/lib/components/VExpansionPanel/index.d.ts +719 -119
- package/lib/components/VField/index.d.ts +163 -21
- package/lib/components/VFileInput/index.d.ts +1038 -104
- package/lib/components/VFooter/VFooter.css +2 -0
- package/lib/components/VFooter/VFooter.sass +2 -0
- package/lib/components/VFooter/_variables.scss +2 -0
- package/lib/components/VFooter/index.d.ts +203 -28
- package/lib/components/VForm/index.d.ts +204 -23
- package/lib/components/VGrid/VCol.mjs +6 -5
- package/lib/components/VGrid/VCol.mjs.map +1 -1
- package/lib/components/VGrid/VRow.mjs +4 -4
- package/lib/components/VGrid/VRow.mjs.map +1 -1
- package/lib/components/VGrid/index.d.ts +733 -76
- package/lib/components/VHover/index.d.ts +182 -35
- package/lib/components/VIcon/index.d.ts +494 -50
- package/lib/components/VImg/VImg.mjs +2 -2
- package/lib/components/VImg/VImg.mjs.map +1 -1
- package/lib/components/VImg/index.d.ts +275 -46
- package/lib/components/VInput/index.d.ts +315 -53
- package/lib/components/VItemGroup/index.d.ts +308 -52
- package/lib/components/VKbd/VKbd.css +1 -0
- package/lib/components/VKbd/VKbd.sass +1 -0
- package/lib/components/VKbd/_variables.scss +1 -0
- package/lib/components/VKbd/index.d.ts +109 -16
- package/lib/components/VLabel/index.d.ts +113 -20
- package/lib/components/VLayout/index.d.ts +296 -41
- package/lib/components/VLazy/VLazy.mjs +4 -1
- package/lib/components/VLazy/VLazy.mjs.map +1 -1
- package/lib/components/VLazy/index.d.ts +219 -30
- package/lib/components/VList/VListChildren.mjs +2 -2
- package/lib/components/VList/VListChildren.mjs.map +1 -1
- package/lib/components/VList/VListGroup.mjs +1 -4
- package/lib/components/VList/VListGroup.mjs.map +1 -1
- package/lib/components/VList/VListItem.mjs +23 -19
- package/lib/components/VList/VListItem.mjs.map +1 -1
- package/lib/components/VList/index.d.ts +1461 -223
- package/lib/components/VLocaleProvider/index.d.ts +121 -20
- package/lib/components/VMain/index.d.ts +118 -17
- package/lib/components/VMenu/VMenu.css +4 -4
- package/lib/components/VMenu/VMenu.mjs +2 -2
- package/lib/components/VMenu/VMenu.mjs.map +1 -1
- package/lib/components/VMenu/VMenu.sass +1 -1
- package/lib/components/VMenu/index.d.ts +2368 -142
- package/lib/components/VMessages/index.d.ts +1921 -98
- package/lib/components/VNavigationDrawer/index.d.ts +379 -56
- package/lib/components/VOverlay/VOverlay.css +2 -2
- package/lib/components/VOverlay/VOverlay.mjs +1 -4
- package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
- package/lib/components/VOverlay/VOverlay.sass +1 -1
- package/lib/components/VOverlay/_variables.scss +1 -1
- package/lib/components/VOverlay/index.d.ts +519 -85
- package/lib/components/VPagination/index.d.ts +502 -68
- package/lib/components/VParallax/VParallax.mjs +3 -3
- package/lib/components/VParallax/VParallax.mjs.map +1 -1
- package/lib/components/VParallax/index.d.ts +141 -28
- package/lib/components/VProgressCircular/index.d.ts +186 -25
- package/lib/components/VProgressLinear/index.d.ts +319 -48
- package/lib/components/VRadio/index.d.ts +313 -57
- package/lib/components/VRadioGroup/VRadioGroup.mjs +4 -6
- package/lib/components/VRadioGroup/VRadioGroup.mjs.map +1 -1
- package/lib/components/VRadioGroup/index.d.ts +463 -83
- package/lib/components/VRangeSlider/index.d.ts +528 -80
- package/lib/components/VRating/VRating.mjs.map +1 -1
- package/lib/components/VRating/index.d.ts +305 -43
- package/lib/components/VResponsive/index.d.ts +142 -27
- package/lib/components/VSelect/VSelect.mjs +13 -7
- package/lib/components/VSelect/VSelect.mjs.map +1 -1
- package/lib/components/VSelect/index.d.ts +3060 -328
- package/lib/components/VSelectionControl/VSelectionControl.mjs +1 -4
- package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -1
- package/lib/components/VSelectionControl/index.d.ts +76 -4
- package/lib/components/VSelectionControlGroup/index.d.ts +242 -38
- package/lib/components/VSheet/VSheet.mjs +1 -7
- package/lib/components/VSheet/VSheet.mjs.map +1 -1
- package/lib/components/VSheet/index.d.ts +194 -31
- package/lib/components/VSlideGroup/index.d.ts +475 -83
- package/lib/components/VSlider/VSliderTrack.mjs +1 -0
- package/lib/components/VSlider/VSliderTrack.mjs.map +1 -1
- package/lib/components/VSlider/index.d.ts +521 -79
- package/lib/components/VSlider/slider.mjs +5 -6
- package/lib/components/VSlider/slider.mjs.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.css +2 -7
- package/lib/components/VSnackbar/VSnackbar.mjs +4 -3
- package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.sass +3 -8
- package/lib/components/VSnackbar/index.d.ts +1219 -81
- package/lib/components/VSwitch/VSwitch.mjs +2 -2
- package/lib/components/VSwitch/VSwitch.mjs.map +1 -1
- package/lib/components/VSwitch/index.d.ts +498 -92
- package/lib/components/VSystemBar/index.d.ts +184 -27
- package/lib/components/VTable/index.d.ts +190 -35
- package/lib/components/VTabs/VTab.mjs +7 -23
- package/lib/components/VTabs/VTab.mjs.map +1 -1
- package/lib/components/VTabs/index.d.ts +623 -71
- package/lib/components/VTextField/VTextField.mjs +8 -5
- package/lib/components/VTextField/VTextField.mjs.map +1 -1
- package/lib/components/VTextField/index.d.ts +1404 -106
- package/lib/components/VTextarea/VTextarea.mjs +7 -1
- package/lib/components/VTextarea/VTextarea.mjs.map +1 -1
- package/lib/components/VTextarea/index.d.ts +1014 -102
- package/lib/components/VThemeProvider/index.d.ts +124 -19
- package/lib/components/VTimeline/VTimelineDivider.mjs +18 -10
- package/lib/components/VTimeline/VTimelineDivider.mjs.map +1 -1
- package/lib/components/VTimeline/index.d.ts +441 -71
- package/lib/components/VToolbar/VToolbar.mjs +10 -9
- package/lib/components/VToolbar/VToolbar.mjs.map +1 -1
- package/lib/components/VToolbar/index.d.ts +542 -93
- package/lib/components/VTooltip/VTooltip.css +3 -3
- package/lib/components/VTooltip/VTooltip.mjs +2 -2
- package/lib/components/VTooltip/VTooltip.mjs.map +1 -1
- package/lib/components/VTooltip/VTooltip.sass +1 -1
- package/lib/components/VTooltip/index.d.ts +1276 -82
- package/lib/components/VValidation/index.d.ts +201 -30
- package/lib/components/VWindow/index.d.ts +527 -95
- package/lib/components/index.d.ts +55255 -15788
- package/lib/components/transitions/index.d.ts +2097 -308
- package/lib/composables/defaults.mjs +2 -0
- package/lib/composables/defaults.mjs.map +1 -1
- package/lib/composables/display.mjs +2 -0
- package/lib/composables/display.mjs.map +1 -1
- package/lib/composables/form.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.ts +7 -10
- package/lib/labs/VDataTable/VDataTable.css +15 -0
- package/lib/labs/VDataTable/VDataTable.mjs +41 -17
- package/lib/labs/VDataTable/VDataTable.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTable.sass +9 -0
- package/lib/labs/VDataTable/VDataTableFooter.mjs +3 -2
- package/lib/labs/VDataTable/VDataTableFooter.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableRow.mjs +8 -2
- package/lib/labs/VDataTable/VDataTableRow.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableRows.mjs +2 -1
- package/lib/labs/VDataTable/VDataTableRows.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableServer.mjs +39 -17
- package/lib/labs/VDataTable/VDataTableServer.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableVirtual.mjs +23 -12
- package/lib/labs/VDataTable/VDataTableVirtual.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/expand.mjs +1 -1
- package/lib/labs/VDataTable/composables/expand.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/group.mjs +12 -1
- package/lib/labs/VDataTable/composables/group.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/options.mjs +0 -12
- package/lib/labs/VDataTable/composables/options.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/paginate.mjs +25 -4
- package/lib/labs/VDataTable/composables/paginate.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/select.mjs +1 -1
- package/lib/labs/VDataTable/composables/select.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/sort.mjs +19 -3
- package/lib/labs/VDataTable/composables/sort.mjs.map +1 -1
- package/lib/labs/VDataTable/index.d.ts +4179 -1017
- package/lib/labs/VVirtualScroll/index.d.ts +32 -1
- package/lib/labs/components.d.ts +4214 -1026
- package/lib/locale/adapters/vue-i18n.d.ts +1 -1
- package/lib/locale/adapters/vue-i18n.mjs +1 -1
- package/lib/locale/adapters/vue-i18n.mjs.map +1 -1
- package/lib/styles/main.css +4 -0
- package/lib/styles/settings/_utilities.scss +7 -0
- package/lib/util/animation.mjs +8 -1
- package/lib/util/animation.mjs.map +1 -1
- package/lib/util/defineComponent.mjs +15 -7
- package/lib/util/defineComponent.mjs.map +1 -1
- package/lib/util/helpers.mjs +4 -0
- package/lib/util/helpers.mjs.map +1 -1
- package/package.json +5 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VRating.mjs","names":["VBtn","IconValue","makeDensityProps","makeSizeProps","makeTagProps","makeThemeProps","provideTheme","useLocale","useProxiedModel","computed","ref","clamp","createRange","genericComponent","getUid","useRender","VRating","name","props","String","itemAriaLabel","type","default","activeColor","color","clearable","Boolean","disabled","emptyIcon","fullIcon","halfIncrements","hover","length","Number","readonly","modelValue","itemLabels","Array","itemLabelPosition","validator","v","includes","ripple","emits","value","setup","slots","t","themeClasses","rating","normalizedValue","parseFloat","range","increments","flatMap","hoverIndex","itemState","map","isHovering","isFilled","isHovered","isFullIcon","icon","eventState","onMouseenter","onMouseleave","onClick","undefined","VRatingItem","index","showStar","id","replace","btnProps","density","size","variant","item","createLabel","labelProps","label","hasLabels","i"],"sources":["../../../src/components/VRating/VRating.tsx"],"sourcesContent":["// Styles\nimport './VRating.sass'\n\n// Components\nimport { VBtn } from '@/components/VBtn'\n\n// Composables\nimport { IconValue } from '@/composables/icons'\nimport { makeDensityProps } from '@/composables/density'\nimport { makeSizeProps } from '@/composables/size'\nimport { makeTagProps } from '@/composables/tag'\nimport { makeThemeProps, provideTheme } from '@/composables/theme'\nimport { useLocale } from '@/composables/locale'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, ref } from 'vue'\nimport { clamp, createRange, genericComponent, getUid, useRender } from '@/util'\n\n// Types\nimport type { Prop } from 'vue'\nimport type { Variant } from '@/composables/variant'\n\ntype VRatingItemSlot = {\n value: number\n index: number\n isFilled: boolean\n isHovered: boolean\n icon: IconValue\n color?: string\n props: Record<string, unknown>\n rating: number\n}\n\ntype VRatingItemLabelSlot = {\n value: number\n index: number\n label?: string\n}\n\ntype VRatingSlots = {\n item: [VRatingItemSlot]\n 'item-label': [VRatingItemLabelSlot]\n}\n\nexport const VRating = genericComponent<VRatingSlots>()({\n name: 'VRating',\n\n props: {\n name: String,\n itemAriaLabel: {\n type: String,\n default: '$vuetify.rating.ariaLabel.item',\n },\n activeColor: String,\n color: String,\n clearable: Boolean,\n disabled: Boolean,\n emptyIcon: {\n type: IconValue,\n default: '$ratingEmpty',\n },\n fullIcon: {\n type: IconValue,\n default: '$ratingFull',\n },\n halfIncrements: Boolean,\n hover: Boolean,\n length: {\n type: [Number, String],\n default: 5,\n },\n readonly: Boolean,\n modelValue: {\n type: [Number, String],\n default: 0,\n },\n itemLabels: Array as Prop<string[]>,\n itemLabelPosition: {\n type: String,\n default: 'top',\n validator: (v: any) => ['top', 'bottom'].includes(v),\n },\n ripple: Boolean,\n\n ...makeDensityProps(),\n ...makeSizeProps(),\n ...makeTagProps(),\n ...makeThemeProps(),\n },\n\n emits: {\n 'update:modelValue': (value: number | string) => true,\n },\n\n setup (props, { slots }) {\n const { t } = useLocale()\n const { themeClasses } = provideTheme(props)\n const rating = useProxiedModel(props, 'modelValue')\n const normalizedValue = computed(() => clamp(parseFloat(rating.value), 0, +props.length))\n\n const range = computed(() => createRange(Number(props.length), 1))\n const increments = computed(() => range.value.flatMap(v => props.halfIncrements ? [v - 0.5, v] : [v]))\n const hoverIndex = ref(-1)\n\n const itemState = computed(() => increments.value.map(value => {\n const isHovering = props.hover && hoverIndex.value > -1\n const isFilled = normalizedValue.value >= value\n const isHovered = hoverIndex.value >= value\n const isFullIcon = isHovering ? isHovered : isFilled\n const icon = isFullIcon ? props.fullIcon : props.emptyIcon\n const activeColor = props.activeColor ?? props.color\n const color = (isFilled || isHovered) ? activeColor : props.color\n\n return { isFilled, isHovered, icon, color }\n }))\n\n const eventState = computed(() => [0, ...increments.value].map(value => {\n function onMouseenter () {\n hoverIndex.value = value\n }\n\n function onMouseleave () {\n hoverIndex.value = -1\n }\n\n function onClick () {\n if (props.disabled || props.readonly) return\n rating.value = normalizedValue.value === value && props.clearable ? 0 : value\n }\n\n return {\n onMouseenter: props.hover ? onMouseenter : undefined,\n onMouseleave: props.hover ? onMouseleave : undefined,\n onClick,\n }\n }))\n\n const name = computed(() => props.name ?? `v-rating-${getUid()}`)\n\n function VRatingItem ({ value, index, showStar = true }: { value: number, index: number, showStar?: boolean }) {\n const { onMouseenter, onMouseleave, onClick } = eventState.value[index + 1]\n const id = `${name.value}-${String(value).replace('.', '-')}`\n const btnProps = {\n color: itemState.value[index]?.color,\n density: props.density,\n disabled: props.disabled,\n icon: itemState.value[index]?.icon,\n ripple: props.ripple,\n size: props.size,\n variant: 'plain' as Variant,\n }\n\n return (\n <>\n <label\n for={ id }\n class={{\n 'v-rating__item--half': props.halfIncrements && value % 1 > 0,\n 'v-rating__item--full': props.halfIncrements && value % 1 === 0,\n }}\n onMouseenter={ onMouseenter }\n onMouseleave={ onMouseleave }\n onClick={ onClick }\n >\n <span class=\"v-rating__hidden\">{ t(props.itemAriaLabel, value, props.length) }</span>\n {\n !showStar ? undefined\n : slots.item ? slots.item({\n ...itemState.value[index],\n props: btnProps,\n value,\n index,\n rating: normalizedValue.value,\n })\n : (\n <VBtn { ...btnProps } />\n )\n }\n </label>\n\n <input\n class=\"v-rating__hidden\"\n name={ name.value }\n id={ id }\n type=\"radio\"\n value={ value }\n checked={ normalizedValue.value === value }\n tabindex={-1}\n readonly={ props.readonly }\n disabled={ props.disabled }\n />\n </>\n )\n }\n\n function createLabel (labelProps: { value: number, index: number, label?: string }) {\n if (slots['item-label']) return slots['item-label'](labelProps)\n\n if (labelProps.label) return <span>{ labelProps.label }</span>\n\n return <span> </span>\n }\n\n useRender(() => {\n const hasLabels = !!props.itemLabels?.length || slots['item-label']\n\n return (\n <props.tag\n class={[\n 'v-rating',\n {\n 'v-rating--hover': props.hover,\n 'v-rating--readonly': props.readonly,\n },\n themeClasses.value,\n ]}\n >\n <VRatingItem value={ 0 } index={ -1 } showStar={ false } />\n\n { range.value.map((value, i) => (\n <div class=\"v-rating__wrapper\">\n {\n hasLabels && props.itemLabelPosition === 'top'\n ? createLabel({ value, index: i, label: props.itemLabels?.[i] })\n : undefined\n }\n <div class=\"v-rating__item\">\n { props.halfIncrements ? (\n <>\n <VRatingItem value={ value - 0.5 } index={ i * 2 } />\n <VRatingItem value={ value } index={ (i * 2) + 1 } />\n </>\n ) : (\n <VRatingItem value={ value } index={ i } />\n )}\n </div>\n {\n hasLabels && props.itemLabelPosition === 'bottom'\n ? createLabel({ value, index: i, label: props.itemLabels?.[i] })\n : undefined\n }\n </div>\n ))}\n </props.tag>\n )\n })\n\n return {}\n },\n})\n\nexport type VRating = InstanceType<typeof VRating>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,IAAI,6BAEb;AAAA,SACSC,SAAS;AAAA,SACTC,gBAAgB;AAAA,SAChBC,aAAa;AAAA,SACbC,YAAY;AAAA,SACZC,cAAc,EAAEC,YAAY;AAAA,SAC5BC,SAAS;AAAA,SACTC,eAAe,8CAExB;AACA,SAASC,QAAQ,EAAEC,GAAG,QAAQ,KAAK;AAAA,SAC1BC,KAAK,EAAEC,WAAW,EAAEC,gBAAgB,EAAEC,MAAM,EAAEC,SAAS,gCAEhE;AA0BA,OAAO,MAAMC,OAAO,GAAGH,gBAAgB,EAAgB,CAAC;EACtDI,IAAI,EAAE,SAAS;EAEfC,KAAK,EAAE;IACLD,IAAI,EAAEE,MAAM;IACZC,aAAa,EAAE;MACbC,IAAI,EAAEF,MAAM;MACZG,OAAO,EAAE;IACX,CAAC;IACDC,WAAW,EAAEJ,MAAM;IACnBK,KAAK,EAAEL,MAAM;IACbM,SAAS,EAAEC,OAAO;IAClBC,QAAQ,EAAED,OAAO;IACjBE,SAAS,EAAE;MACTP,IAAI,EAAEpB,SAAS;MACfqB,OAAO,EAAE;IACX,CAAC;IACDO,QAAQ,EAAE;MACRR,IAAI,EAAEpB,SAAS;MACfqB,OAAO,EAAE;IACX,CAAC;IACDQ,cAAc,EAAEJ,OAAO;IACvBK,KAAK,EAAEL,OAAO;IACdM,MAAM,EAAE;MACNX,IAAI,EAAE,CAACY,MAAM,EAAEd,MAAM,CAAC;MACtBG,OAAO,EAAE;IACX,CAAC;IACDY,QAAQ,EAAER,OAAO;IACjBS,UAAU,EAAE;MACVd,IAAI,EAAE,CAACY,MAAM,EAAEd,MAAM,CAAC;MACtBG,OAAO,EAAE;IACX,CAAC;IACDc,UAAU,EAAEC,KAAuB;IACnCC,iBAAiB,EAAE;MACjBjB,I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S,IAAI/D,KAAK,CAACoB,iBAAiB,KAAK,KAAK,GAC1CwC,WAAW,CAAC;UAAElC,KAAK;UAAEyB,KAAK,EAAEa,CAAC;UAAEF,KAAK,EAAE9D,KAAK,CAACkB,UAAU,GAAG8C,CAAC;QAAE,CAAC,CAAC,GAC9Df,SAAS;UAAA,SAEJ;QAAgB,IACvBjD,KAAK,CAACY,cAAc;UAAA,SAEGc,KAAK,GAAG,GAAG;UAAA,SAAWsC,CAAC,GAAG;QAAC;UAAA,SAC3BtC,KAAK;UAAA,SAAYsC,CAAC,GAAG,CAAC,GAAI;QAAC;UAAA,SAG7BtC,KAAK;UAAA,SAAWsC;QAAC,QACvC,IAGDD,SAAS,IAAI/D,KAAK,CAACoB,iBAAiB,KAAK,QAAQ,GAC7CwC,WAAW,CAAC;UAAElC,KAAK;UAAEyB,KAAK,EAAEa,CAAC;UAAEF,KAAK,EAAE9D,KAAK,CAACkB,UAAU,GAAG8C,CAAC;QAAE,CAAC,CAAC,GAC9Df,SAAS,EAGlB,CAAC;MAAA;IAGR,CAAC,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"VRating.mjs","names":["VBtn","IconValue","makeDensityProps","makeSizeProps","makeTagProps","makeThemeProps","provideTheme","useLocale","useProxiedModel","computed","ref","clamp","createRange","genericComponent","getUid","useRender","VRating","name","props","String","itemAriaLabel","type","default","activeColor","color","clearable","Boolean","disabled","emptyIcon","fullIcon","halfIncrements","hover","length","Number","readonly","modelValue","itemLabels","Array","itemLabelPosition","validator","v","includes","ripple","emits","value","setup","slots","t","themeClasses","rating","normalizedValue","parseFloat","range","increments","flatMap","hoverIndex","itemState","map","isHovering","isFilled","isHovered","isFullIcon","icon","eventState","onMouseenter","onMouseleave","onClick","undefined","VRatingItem","index","showStar","id","replace","btnProps","density","size","variant","item","createLabel","labelProps","label","hasLabels","i"],"sources":["../../../src/components/VRating/VRating.tsx"],"sourcesContent":["// Styles\nimport './VRating.sass'\n\n// Components\nimport { VBtn } from '@/components/VBtn'\n\n// Composables\nimport { IconValue } from '@/composables/icons'\nimport { makeDensityProps } from '@/composables/density'\nimport { makeSizeProps } from '@/composables/size'\nimport { makeTagProps } from '@/composables/tag'\nimport { makeThemeProps, provideTheme } from '@/composables/theme'\nimport { useLocale } from '@/composables/locale'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, ref } from 'vue'\nimport { clamp, createRange, genericComponent, getUid, useRender } from '@/util'\n\n// Types\nimport type { Prop } from 'vue'\nimport type { Variant } from '@/composables/variant'\n\ntype VRatingItemSlot = {\n value: number\n index: number\n isFilled: boolean\n isHovered: boolean\n icon: IconValue\n color?: string\n props: Record<string, unknown>\n rating: number\n}\n\ntype VRatingItemLabelSlot = {\n value: number\n index: number\n label?: string\n}\n\ntype VRatingSlots = {\n item: [VRatingItemSlot]\n 'item-label': [VRatingItemLabelSlot]\n}\n\nexport const VRating = genericComponent<VRatingSlots>()({\n name: 'VRating',\n\n props: {\n name: String,\n itemAriaLabel: {\n type: String,\n default: '$vuetify.rating.ariaLabel.item',\n },\n activeColor: String,\n color: String,\n clearable: Boolean,\n disabled: Boolean,\n emptyIcon: {\n type: IconValue,\n default: '$ratingEmpty',\n },\n fullIcon: {\n type: IconValue,\n default: '$ratingFull',\n },\n halfIncrements: Boolean,\n hover: Boolean,\n length: {\n type: [Number, String],\n default: 5,\n },\n readonly: Boolean,\n modelValue: {\n type: [Number, String],\n default: 0,\n },\n itemLabels: Array as Prop<string[]>,\n itemLabelPosition: {\n type: String,\n default: 'top',\n validator: (v: any) => ['top', 'bottom'].includes(v),\n },\n ripple: Boolean,\n\n ...makeDensityProps(),\n ...makeSizeProps(),\n ...makeTagProps(),\n ...makeThemeProps(),\n },\n\n emits: {\n 'update:modelValue': (value: number | string) => true,\n },\n\n setup (props, { slots }) {\n const { t } = useLocale()\n const { themeClasses } = provideTheme(props)\n const rating = useProxiedModel(props, 'modelValue')\n const normalizedValue = computed(() => clamp(parseFloat(rating.value), 0, +props.length))\n\n const range = computed(() => createRange(Number(props.length), 1))\n const increments = computed(() => range.value.flatMap(v => props.halfIncrements ? [v - 0.5, v] : [v]))\n const hoverIndex = ref(-1)\n\n const itemState = computed(() => increments.value.map(value => {\n const isHovering = props.hover && hoverIndex.value > -1\n const isFilled = normalizedValue.value >= value\n const isHovered = hoverIndex.value >= value\n const isFullIcon = isHovering ? isHovered : isFilled\n const icon = isFullIcon ? props.fullIcon : props.emptyIcon\n const activeColor = props.activeColor ?? props.color\n const color = (isFilled || isHovered) ? activeColor : props.color\n\n return { isFilled, isHovered, icon, color }\n }))\n\n const eventState = computed(() => [0, ...increments.value].map(value => {\n function onMouseenter () {\n hoverIndex.value = value\n }\n\n function onMouseleave () {\n hoverIndex.value = -1\n }\n\n function onClick () {\n if (props.disabled || props.readonly) return\n rating.value = normalizedValue.value === value && props.clearable ? 0 : value\n }\n\n return {\n onMouseenter: props.hover ? onMouseenter : undefined,\n onMouseleave: props.hover ? onMouseleave : undefined,\n onClick,\n }\n }))\n\n const name = computed(() => props.name ?? `v-rating-${getUid()}`)\n\n function VRatingItem ({ value, index, showStar = true }: { value: number, index: number, showStar?: boolean }) {\n const { onMouseenter, onMouseleave, onClick } = eventState.value[index + 1]\n const id = `${name.value}-${String(value).replace('.', '-')}`\n const btnProps = {\n color: itemState.value[index]?.color,\n density: props.density,\n disabled: props.disabled,\n icon: itemState.value[index]?.icon,\n ripple: props.ripple,\n size: props.size,\n variant: 'plain' as Variant,\n }\n\n return (\n <>\n <label\n for={ id }\n class={{\n 'v-rating__item--half': props.halfIncrements && value % 1 > 0,\n 'v-rating__item--full': props.halfIncrements && value % 1 === 0,\n }}\n onMouseenter={ onMouseenter }\n onMouseleave={ onMouseleave }\n onClick={ onClick }\n >\n <span class=\"v-rating__hidden\">{ t(props.itemAriaLabel, value, props.length) }</span>\n {\n !showStar ? undefined\n : slots.item ? slots.item({\n ...itemState.value[index],\n props: btnProps,\n value,\n index,\n rating: normalizedValue.value,\n })\n : (\n <VBtn { ...btnProps } />\n )\n }\n </label>\n\n <input\n class=\"v-rating__hidden\"\n name={ name.value }\n id={ id }\n type=\"radio\"\n value={ value }\n checked={ normalizedValue.value === value }\n tabindex={ -1 }\n readonly={ props.readonly }\n disabled={ props.disabled }\n />\n </>\n )\n }\n\n function createLabel (labelProps: { value: number, index: number, label?: string }) {\n if (slots['item-label']) return slots['item-label'](labelProps)\n\n if (labelProps.label) return <span>{ labelProps.label }</span>\n\n return <span> </span>\n }\n\n useRender(() => {\n const hasLabels = !!props.itemLabels?.length || slots['item-label']\n\n return (\n <props.tag\n class={[\n 'v-rating',\n {\n 'v-rating--hover': props.hover,\n 'v-rating--readonly': props.readonly,\n },\n themeClasses.value,\n ]}\n >\n <VRatingItem value={ 0 } index={ -1 } showStar={ false } />\n\n { range.value.map((value, i) => (\n <div class=\"v-rating__wrapper\">\n {\n hasLabels && props.itemLabelPosition === 'top'\n ? createLabel({ value, index: i, label: props.itemLabels?.[i] })\n : undefined\n }\n <div class=\"v-rating__item\">\n { props.halfIncrements ? (\n <>\n <VRatingItem value={ value - 0.5 } index={ i * 2 } />\n <VRatingItem value={ value } index={ (i * 2) + 1 } />\n </>\n ) : (\n <VRatingItem value={ value } index={ i } />\n )}\n </div>\n {\n hasLabels && props.itemLabelPosition === 'bottom'\n ? createLabel({ value, index: i, label: props.itemLabels?.[i] })\n : undefined\n }\n </div>\n ))}\n </props.tag>\n )\n })\n\n return {}\n },\n})\n\nexport type VRating = InstanceType<typeof VRating>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,IAAI,6BAEb;AAAA,SACSC,SAAS;AAAA,SACTC,gBAAgB;AAAA,SAChBC,aAAa;AAAA,SACbC,YAAY;AAAA,SACZC,cAAc,EAAEC,YAAY;AAAA,SAC5BC,SAAS;AAAA,SACTC,eAAe,8CAExB;AACA,SAASC,QAAQ,EAAEC,GAAG,QAAQ,KAAK;AAAA,SAC1BC,KAAK,E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BtC,KAAK;UAAA,SAAWsC;QAAC,QACvC,IAGDD,SAAS,IAAI/D,KAAK,CAACoB,iBAAiB,KAAK,QAAQ,GAC7CwC,WAAW,CAAC;UAAElC,KAAK;UAAEyB,KAAK,EAAEa,CAAC;UAAEF,KAAK,EAAE9D,KAAK,CAACkB,UAAU,GAAG8C,CAAC;QAAE,CAAC,CAAC,GAC9Df,SAAS,EAGlB,CAAC;MAAA;IAGR,CAAC,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
-
import { JSXComponent, PropType } from 'vue';
|
|
2
|
+
import { ComponentPropsOptions, ExtractPropTypes, JSXComponent, PropType, Prop } from 'vue';
|
|
3
|
+
|
|
4
|
+
interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
|
|
5
|
+
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): [yes: Partial<Pick<T, U>>, no: Omit<T, U>];
|
|
6
|
+
}
|
|
3
7
|
|
|
4
8
|
type Density = null | 'default' | 'comfortable' | 'compact';
|
|
5
9
|
|
|
@@ -21,7 +25,203 @@ type VRatingItemLabelSlot = {
|
|
|
21
25
|
index: number;
|
|
22
26
|
label?: string;
|
|
23
27
|
};
|
|
24
|
-
declare const VRating:
|
|
28
|
+
declare const VRating: {
|
|
29
|
+
new (...args: any[]): {
|
|
30
|
+
$: vue.ComponentInternalInstance;
|
|
31
|
+
$data: {};
|
|
32
|
+
$props: Partial<{
|
|
33
|
+
length: string | number;
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
size: string | number;
|
|
36
|
+
readonly: boolean;
|
|
37
|
+
tag: string;
|
|
38
|
+
density: Density;
|
|
39
|
+
modelValue: string | number;
|
|
40
|
+
ripple: boolean;
|
|
41
|
+
clearable: boolean;
|
|
42
|
+
hover: boolean;
|
|
43
|
+
halfIncrements: boolean;
|
|
44
|
+
itemAriaLabel: string;
|
|
45
|
+
emptyIcon: IconValue;
|
|
46
|
+
fullIcon: IconValue;
|
|
47
|
+
itemLabelPosition: string;
|
|
48
|
+
}> & Omit<{
|
|
49
|
+
length: string | number;
|
|
50
|
+
disabled: boolean;
|
|
51
|
+
size: string | number;
|
|
52
|
+
readonly: boolean;
|
|
53
|
+
tag: string;
|
|
54
|
+
density: Density;
|
|
55
|
+
modelValue: string | number;
|
|
56
|
+
ripple: boolean;
|
|
57
|
+
clearable: boolean;
|
|
58
|
+
hover: boolean;
|
|
59
|
+
halfIncrements: boolean;
|
|
60
|
+
itemAriaLabel: string;
|
|
61
|
+
emptyIcon: IconValue;
|
|
62
|
+
fullIcon: IconValue;
|
|
63
|
+
itemLabelPosition: string;
|
|
64
|
+
} & {
|
|
65
|
+
name?: string | undefined;
|
|
66
|
+
color?: string | undefined;
|
|
67
|
+
theme?: string | undefined;
|
|
68
|
+
activeColor?: string | undefined;
|
|
69
|
+
itemLabels?: string[] | undefined;
|
|
70
|
+
} & {
|
|
71
|
+
$children?: {} | vue.VNodeChild | {
|
|
72
|
+
item?: ((args_0: VRatingItemSlot) => vue.VNodeChild) | undefined;
|
|
73
|
+
'item-label'?: ((args_0: VRatingItemLabelSlot) => vue.VNodeChild) | undefined;
|
|
74
|
+
};
|
|
75
|
+
$slots?: {
|
|
76
|
+
item?: ((args_0: VRatingItemSlot) => vue.VNodeChild) | undefined;
|
|
77
|
+
'item-label'?: ((args_0: VRatingItemLabelSlot) => vue.VNodeChild) | undefined;
|
|
78
|
+
} | undefined;
|
|
79
|
+
'v-slots'?: {
|
|
80
|
+
item?: false | ((args_0: VRatingItemSlot) => vue.VNodeChild) | undefined;
|
|
81
|
+
'item-label'?: false | ((args_0: VRatingItemLabelSlot) => vue.VNodeChild) | undefined;
|
|
82
|
+
} | undefined;
|
|
83
|
+
} & {
|
|
84
|
+
"v-slot:item"?: false | ((args_0: VRatingItemSlot) => vue.VNodeChild) | undefined;
|
|
85
|
+
"v-slot:item-label"?: false | ((args_0: VRatingItemLabelSlot) => vue.VNodeChild) | undefined;
|
|
86
|
+
} & {
|
|
87
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
88
|
+
} & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, "length" | "disabled" | "size" | "readonly" | "tag" | "density" | "modelValue" | "ripple" | "clearable" | "hover" | "halfIncrements" | "itemAriaLabel" | "emptyIcon" | "fullIcon" | "itemLabelPosition">;
|
|
89
|
+
$attrs: {
|
|
90
|
+
[x: string]: unknown;
|
|
91
|
+
};
|
|
92
|
+
$refs: {
|
|
93
|
+
[x: string]: unknown;
|
|
94
|
+
};
|
|
95
|
+
$slots: Readonly<{
|
|
96
|
+
[name: string]: vue.Slot | undefined;
|
|
97
|
+
}>;
|
|
98
|
+
$root: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
99
|
+
$parent: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
100
|
+
$emit: (event: "update:modelValue", value: string | number) => void;
|
|
101
|
+
$el: any;
|
|
102
|
+
$options: vue.ComponentOptionsBase<{
|
|
103
|
+
length: string | number;
|
|
104
|
+
disabled: boolean;
|
|
105
|
+
size: string | number;
|
|
106
|
+
readonly: boolean;
|
|
107
|
+
tag: string;
|
|
108
|
+
density: Density;
|
|
109
|
+
modelValue: string | number;
|
|
110
|
+
ripple: boolean;
|
|
111
|
+
clearable: boolean;
|
|
112
|
+
hover: boolean;
|
|
113
|
+
halfIncrements: boolean;
|
|
114
|
+
itemAriaLabel: string;
|
|
115
|
+
emptyIcon: IconValue;
|
|
116
|
+
fullIcon: IconValue;
|
|
117
|
+
itemLabelPosition: string;
|
|
118
|
+
} & {
|
|
119
|
+
name?: string | undefined;
|
|
120
|
+
color?: string | undefined;
|
|
121
|
+
theme?: string | undefined;
|
|
122
|
+
activeColor?: string | undefined;
|
|
123
|
+
itemLabels?: string[] | undefined;
|
|
124
|
+
} & {
|
|
125
|
+
$children?: {} | vue.VNodeChild | {
|
|
126
|
+
item?: ((args_0: VRatingItemSlot) => vue.VNodeChild) | undefined;
|
|
127
|
+
'item-label'?: ((args_0: VRatingItemLabelSlot) => vue.VNodeChild) | undefined;
|
|
128
|
+
};
|
|
129
|
+
$slots?: {
|
|
130
|
+
item?: ((args_0: VRatingItemSlot) => vue.VNodeChild) | undefined;
|
|
131
|
+
'item-label'?: ((args_0: VRatingItemLabelSlot) => vue.VNodeChild) | undefined;
|
|
132
|
+
} | undefined;
|
|
133
|
+
'v-slots'?: {
|
|
134
|
+
item?: false | ((args_0: VRatingItemSlot) => vue.VNodeChild) | undefined;
|
|
135
|
+
'item-label'?: false | ((args_0: VRatingItemLabelSlot) => vue.VNodeChild) | undefined;
|
|
136
|
+
} | undefined;
|
|
137
|
+
} & {
|
|
138
|
+
"v-slot:item"?: false | ((args_0: VRatingItemSlot) => vue.VNodeChild) | undefined;
|
|
139
|
+
"v-slot:item-label"?: false | ((args_0: VRatingItemLabelSlot) => vue.VNodeChild) | undefined;
|
|
140
|
+
} & {
|
|
141
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
142
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
143
|
+
'update:modelValue': (value: number | string) => boolean;
|
|
144
|
+
}, string, {
|
|
145
|
+
length: string | number;
|
|
146
|
+
disabled: boolean;
|
|
147
|
+
size: string | number;
|
|
148
|
+
readonly: boolean;
|
|
149
|
+
tag: string;
|
|
150
|
+
density: Density;
|
|
151
|
+
modelValue: string | number;
|
|
152
|
+
ripple: boolean;
|
|
153
|
+
clearable: boolean;
|
|
154
|
+
hover: boolean;
|
|
155
|
+
halfIncrements: boolean;
|
|
156
|
+
itemAriaLabel: string;
|
|
157
|
+
emptyIcon: IconValue;
|
|
158
|
+
fullIcon: IconValue;
|
|
159
|
+
itemLabelPosition: string;
|
|
160
|
+
}, {}, string> & {
|
|
161
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
162
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
163
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
164
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
165
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
166
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
167
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
168
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
169
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
170
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
171
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
172
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
173
|
+
renderTracked?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
|
|
174
|
+
renderTriggered?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
|
|
175
|
+
errorCaptured?: (((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
176
|
+
};
|
|
177
|
+
$forceUpdate: () => void;
|
|
178
|
+
$nextTick: typeof vue.nextTick;
|
|
179
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: vue.WatchOptions<boolean> | undefined): vue.WatchStopHandle;
|
|
180
|
+
} & {
|
|
181
|
+
length: string | number;
|
|
182
|
+
disabled: boolean;
|
|
183
|
+
size: string | number;
|
|
184
|
+
readonly: boolean;
|
|
185
|
+
tag: string;
|
|
186
|
+
density: Density;
|
|
187
|
+
modelValue: string | number;
|
|
188
|
+
ripple: boolean;
|
|
189
|
+
clearable: boolean;
|
|
190
|
+
hover: boolean;
|
|
191
|
+
halfIncrements: boolean;
|
|
192
|
+
itemAriaLabel: string;
|
|
193
|
+
emptyIcon: IconValue;
|
|
194
|
+
fullIcon: IconValue;
|
|
195
|
+
itemLabelPosition: string;
|
|
196
|
+
} & {
|
|
197
|
+
name?: string | undefined;
|
|
198
|
+
color?: string | undefined;
|
|
199
|
+
theme?: string | undefined;
|
|
200
|
+
activeColor?: string | undefined;
|
|
201
|
+
itemLabels?: string[] | undefined;
|
|
202
|
+
} & {
|
|
203
|
+
$children?: {} | vue.VNodeChild | {
|
|
204
|
+
item?: ((args_0: VRatingItemSlot) => vue.VNodeChild) | undefined;
|
|
205
|
+
'item-label'?: ((args_0: VRatingItemLabelSlot) => vue.VNodeChild) | undefined;
|
|
206
|
+
};
|
|
207
|
+
$slots?: {
|
|
208
|
+
item?: ((args_0: VRatingItemSlot) => vue.VNodeChild) | undefined;
|
|
209
|
+
'item-label'?: ((args_0: VRatingItemLabelSlot) => vue.VNodeChild) | undefined;
|
|
210
|
+
} | undefined;
|
|
211
|
+
'v-slots'?: {
|
|
212
|
+
item?: false | ((args_0: VRatingItemSlot) => vue.VNodeChild) | undefined;
|
|
213
|
+
'item-label'?: false | ((args_0: VRatingItemLabelSlot) => vue.VNodeChild) | undefined;
|
|
214
|
+
} | undefined;
|
|
215
|
+
} & {
|
|
216
|
+
"v-slot:item"?: false | ((args_0: VRatingItemSlot) => vue.VNodeChild) | undefined;
|
|
217
|
+
"v-slot:item-label"?: false | ((args_0: VRatingItemLabelSlot) => vue.VNodeChild) | undefined;
|
|
218
|
+
} & {
|
|
219
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
220
|
+
} & vue.ShallowUnwrapRef<{}> & {} & vue.ComponentCustomProperties & {};
|
|
221
|
+
__isFragment?: undefined;
|
|
222
|
+
__isTeleport?: undefined;
|
|
223
|
+
__isSuspense?: undefined;
|
|
224
|
+
} & vue.ComponentOptionsBase<{
|
|
25
225
|
length: string | number;
|
|
26
226
|
disabled: boolean;
|
|
27
227
|
size: string | number;
|
|
@@ -59,9 +259,11 @@ declare const VRating: vue.DefineComponent<{
|
|
|
59
259
|
} & {
|
|
60
260
|
"v-slot:item"?: false | ((args_0: VRatingItemSlot) => vue.VNodeChild) | undefined;
|
|
61
261
|
"v-slot:item-label"?: false | ((args_0: VRatingItemLabelSlot) => vue.VNodeChild) | undefined;
|
|
262
|
+
} & {
|
|
263
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
62
264
|
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
63
265
|
'update:modelValue': (value: number | string) => boolean;
|
|
64
|
-
}, string,
|
|
266
|
+
}, string, {
|
|
65
267
|
length: string | number;
|
|
66
268
|
disabled: boolean;
|
|
67
269
|
size: string | number;
|
|
@@ -77,47 +279,107 @@ declare const VRating: vue.DefineComponent<{
|
|
|
77
279
|
emptyIcon: IconValue;
|
|
78
280
|
fullIcon: IconValue;
|
|
79
281
|
itemLabelPosition: string;
|
|
80
|
-
} & {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
itemLabels?: string[] | undefined;
|
|
86
|
-
} & {
|
|
87
|
-
$children?: {} | vue.VNodeChild | {
|
|
88
|
-
item?: ((args_0: VRatingItemSlot) => vue.VNodeChild) | undefined;
|
|
89
|
-
'item-label'?: ((args_0: VRatingItemLabelSlot) => vue.VNodeChild) | undefined;
|
|
282
|
+
}, {}, string> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
|
283
|
+
theme: StringConstructor;
|
|
284
|
+
tag: {
|
|
285
|
+
type: StringConstructor;
|
|
286
|
+
default: string;
|
|
90
287
|
};
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
288
|
+
size: {
|
|
289
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
290
|
+
default: string;
|
|
291
|
+
};
|
|
292
|
+
density: {
|
|
293
|
+
type: vue.PropType<Density>;
|
|
294
|
+
default: string;
|
|
295
|
+
validator: (v: any) => boolean;
|
|
296
|
+
};
|
|
297
|
+
name: StringConstructor;
|
|
298
|
+
itemAriaLabel: {
|
|
299
|
+
type: StringConstructor;
|
|
300
|
+
default: string;
|
|
301
|
+
};
|
|
302
|
+
activeColor: StringConstructor;
|
|
303
|
+
color: StringConstructor;
|
|
304
|
+
clearable: BooleanConstructor;
|
|
305
|
+
disabled: BooleanConstructor;
|
|
306
|
+
emptyIcon: {
|
|
307
|
+
type: vue.PropType<IconValue>;
|
|
308
|
+
default: string;
|
|
309
|
+
};
|
|
310
|
+
fullIcon: {
|
|
311
|
+
type: vue.PropType<IconValue>;
|
|
312
|
+
default: string;
|
|
313
|
+
};
|
|
314
|
+
halfIncrements: BooleanConstructor;
|
|
315
|
+
hover: BooleanConstructor;
|
|
316
|
+
length: {
|
|
317
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
318
|
+
default: number;
|
|
319
|
+
};
|
|
320
|
+
readonly: BooleanConstructor;
|
|
321
|
+
modelValue: {
|
|
322
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
323
|
+
default: number;
|
|
324
|
+
};
|
|
325
|
+
itemLabels: Prop<string[], string[]>;
|
|
326
|
+
itemLabelPosition: {
|
|
327
|
+
type: StringConstructor;
|
|
328
|
+
default: string;
|
|
329
|
+
validator: (v: any) => boolean;
|
|
330
|
+
};
|
|
331
|
+
ripple: BooleanConstructor;
|
|
332
|
+
}, vue.ExtractPropTypes<{
|
|
333
|
+
theme: StringConstructor;
|
|
334
|
+
tag: {
|
|
335
|
+
type: StringConstructor;
|
|
336
|
+
default: string;
|
|
337
|
+
};
|
|
338
|
+
size: {
|
|
339
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
340
|
+
default: string;
|
|
341
|
+
};
|
|
342
|
+
density: {
|
|
343
|
+
type: vue.PropType<Density>;
|
|
344
|
+
default: string;
|
|
345
|
+
validator: (v: any) => boolean;
|
|
346
|
+
};
|
|
347
|
+
name: StringConstructor;
|
|
348
|
+
itemAriaLabel: {
|
|
349
|
+
type: StringConstructor;
|
|
350
|
+
default: string;
|
|
351
|
+
};
|
|
352
|
+
activeColor: StringConstructor;
|
|
353
|
+
color: StringConstructor;
|
|
354
|
+
clearable: BooleanConstructor;
|
|
355
|
+
disabled: BooleanConstructor;
|
|
356
|
+
emptyIcon: {
|
|
357
|
+
type: vue.PropType<IconValue>;
|
|
358
|
+
default: string;
|
|
359
|
+
};
|
|
360
|
+
fullIcon: {
|
|
361
|
+
type: vue.PropType<IconValue>;
|
|
362
|
+
default: string;
|
|
363
|
+
};
|
|
364
|
+
halfIncrements: BooleanConstructor;
|
|
365
|
+
hover: BooleanConstructor;
|
|
366
|
+
length: {
|
|
367
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
368
|
+
default: number;
|
|
369
|
+
};
|
|
370
|
+
readonly: BooleanConstructor;
|
|
371
|
+
modelValue: {
|
|
372
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
373
|
+
default: number;
|
|
374
|
+
};
|
|
375
|
+
itemLabels: Prop<string[], string[]>;
|
|
376
|
+
itemLabelPosition: {
|
|
377
|
+
type: StringConstructor;
|
|
378
|
+
default: string;
|
|
379
|
+
validator: (v: any) => boolean;
|
|
380
|
+
};
|
|
381
|
+
ripple: BooleanConstructor;
|
|
382
|
+
}>>;
|
|
121
383
|
type VRating = InstanceType<typeof VRating>;
|
|
122
384
|
|
|
123
385
|
export { VRating };
|
|
@@ -1,31 +1,128 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
+
import { ComponentPropsOptions, ExtractPropTypes } from 'vue';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
4
|
+
interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
|
|
5
|
+
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): [yes: Partial<Pick<T, U>>, no: Omit<T, U>];
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
declare const VResponsive: {
|
|
9
|
+
new (...args: any[]): {
|
|
10
|
+
$: vue.ComponentInternalInstance;
|
|
11
|
+
$data: {};
|
|
12
|
+
$props: Partial<{}> & Omit<{} & {
|
|
13
|
+
height?: string | number | undefined;
|
|
14
|
+
width?: string | number | undefined;
|
|
15
|
+
aspectRatio?: string | number | undefined;
|
|
16
|
+
maxHeight?: string | number | undefined;
|
|
17
|
+
maxWidth?: string | number | undefined;
|
|
18
|
+
minHeight?: string | number | undefined;
|
|
19
|
+
minWidth?: string | number | undefined;
|
|
20
|
+
contentClass?: string | undefined;
|
|
21
|
+
} & {
|
|
22
|
+
$children?: {} | vue.VNodeChild | {
|
|
23
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
24
|
+
additional?: (() => vue.VNodeChild) | undefined;
|
|
25
|
+
};
|
|
26
|
+
$slots?: {
|
|
27
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
28
|
+
additional?: (() => vue.VNodeChild) | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
'v-slots'?: {
|
|
31
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
|
32
|
+
additional?: false | (() => vue.VNodeChild) | undefined;
|
|
33
|
+
} | undefined;
|
|
34
|
+
} & {
|
|
35
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
36
|
+
"v-slot:additional"?: false | (() => vue.VNodeChild) | undefined;
|
|
37
|
+
} & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, never>;
|
|
38
|
+
$attrs: {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
};
|
|
41
|
+
$refs: {
|
|
42
|
+
[x: string]: unknown;
|
|
43
|
+
};
|
|
44
|
+
$slots: Readonly<{
|
|
45
|
+
[name: string]: vue.Slot | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
$root: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
48
|
+
$parent: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
49
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
50
|
+
$el: any;
|
|
51
|
+
$options: vue.ComponentOptionsBase<{} & {
|
|
52
|
+
height?: string | number | undefined;
|
|
53
|
+
width?: string | number | undefined;
|
|
54
|
+
aspectRatio?: string | number | undefined;
|
|
55
|
+
maxHeight?: string | number | undefined;
|
|
56
|
+
maxWidth?: string | number | undefined;
|
|
57
|
+
minHeight?: string | number | undefined;
|
|
58
|
+
minWidth?: string | number | undefined;
|
|
59
|
+
contentClass?: string | undefined;
|
|
60
|
+
} & {
|
|
61
|
+
$children?: {} | vue.VNodeChild | {
|
|
62
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
63
|
+
additional?: (() => vue.VNodeChild) | undefined;
|
|
64
|
+
};
|
|
65
|
+
$slots?: {
|
|
66
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
67
|
+
additional?: (() => vue.VNodeChild) | undefined;
|
|
68
|
+
} | undefined;
|
|
69
|
+
'v-slots'?: {
|
|
70
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
|
71
|
+
additional?: false | (() => vue.VNodeChild) | undefined;
|
|
72
|
+
} | undefined;
|
|
73
|
+
} & {
|
|
74
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
75
|
+
"v-slot:additional"?: false | (() => vue.VNodeChild) | undefined;
|
|
76
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {}, {}, string> & {
|
|
77
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
78
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
79
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
80
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
81
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
82
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
83
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
84
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
85
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
86
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
87
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
88
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
89
|
+
renderTracked?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
|
|
90
|
+
renderTriggered?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
|
|
91
|
+
errorCaptured?: (((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
92
|
+
};
|
|
93
|
+
$forceUpdate: () => void;
|
|
94
|
+
$nextTick: typeof vue.nextTick;
|
|
95
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: vue.WatchOptions<boolean> | undefined): vue.WatchStopHandle;
|
|
96
|
+
} & {} & {
|
|
97
|
+
height?: string | number | undefined;
|
|
98
|
+
width?: string | number | undefined;
|
|
99
|
+
aspectRatio?: string | number | undefined;
|
|
100
|
+
maxHeight?: string | number | undefined;
|
|
101
|
+
maxWidth?: string | number | undefined;
|
|
102
|
+
minHeight?: string | number | undefined;
|
|
103
|
+
minWidth?: string | number | undefined;
|
|
104
|
+
contentClass?: string | undefined;
|
|
105
|
+
} & {
|
|
106
|
+
$children?: {} | vue.VNodeChild | {
|
|
107
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
108
|
+
additional?: (() => vue.VNodeChild) | undefined;
|
|
109
|
+
};
|
|
110
|
+
$slots?: {
|
|
111
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
112
|
+
additional?: (() => vue.VNodeChild) | undefined;
|
|
113
|
+
} | undefined;
|
|
114
|
+
'v-slots'?: {
|
|
115
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
|
116
|
+
additional?: false | (() => vue.VNodeChild) | undefined;
|
|
117
|
+
} | undefined;
|
|
118
|
+
} & {
|
|
119
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
120
|
+
"v-slot:additional"?: false | (() => vue.VNodeChild) | undefined;
|
|
121
|
+
} & vue.ShallowUnwrapRef<{}> & {} & vue.ComponentCustomProperties & {};
|
|
122
|
+
__isFragment?: undefined;
|
|
123
|
+
__isTeleport?: undefined;
|
|
124
|
+
__isSuspense?: undefined;
|
|
125
|
+
} & vue.ComponentOptionsBase<{} & {
|
|
29
126
|
height?: string | number | undefined;
|
|
30
127
|
width?: string | number | undefined;
|
|
31
128
|
aspectRatio?: string | number | undefined;
|
|
@@ -50,7 +147,25 @@ declare const VResponsive: vue.DefineComponent<{} & {
|
|
|
50
147
|
} & {
|
|
51
148
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
52
149
|
"v-slot:additional"?: false | (() => vue.VNodeChild) | undefined;
|
|
53
|
-
}, {}
|
|
150
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {}, {}, string> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
|
151
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
152
|
+
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
153
|
+
maxWidth: (StringConstructor | NumberConstructor)[];
|
|
154
|
+
minHeight: (StringConstructor | NumberConstructor)[];
|
|
155
|
+
minWidth: (StringConstructor | NumberConstructor)[];
|
|
156
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
157
|
+
aspectRatio: (StringConstructor | NumberConstructor)[];
|
|
158
|
+
contentClass: StringConstructor;
|
|
159
|
+
}, vue.ExtractPropTypes<{
|
|
160
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
161
|
+
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
162
|
+
maxWidth: (StringConstructor | NumberConstructor)[];
|
|
163
|
+
minHeight: (StringConstructor | NumberConstructor)[];
|
|
164
|
+
minWidth: (StringConstructor | NumberConstructor)[];
|
|
165
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
166
|
+
aspectRatio: (StringConstructor | NumberConstructor)[];
|
|
167
|
+
contentClass: StringConstructor;
|
|
168
|
+
}>>;
|
|
54
169
|
type VResponsive = InstanceType<typeof VResponsive>;
|
|
55
170
|
|
|
56
171
|
export { VResponsive };
|