pxd 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/_internal/mention-editor.d.vue.ts +23 -14
- package/dist/components/_internal/mention-editor.vue +78 -10
- package/dist/components/_internal/tree-node.d.vue.ts +2 -2
- package/dist/components/_internal/tree-node.vue +1 -1
- package/dist/components/active-graph/index.vue +3 -3
- package/dist/components/approval-card/index.d.vue.ts +11 -1
- package/dist/components/approval-card/index.vue +28 -8
- package/dist/components/approval-card/types.d.ts +5 -6
- package/dist/components/avatar/index.vue +1 -1
- package/dist/components/backtop/index.vue +32 -10
- package/dist/components/badge/index.vue +2 -2
- package/dist/components/book/index.vue +1 -1
- package/dist/components/book/types.d.ts +2 -2
- package/dist/components/breadcrumb-item/index.vue +1 -1
- package/dist/components/browser/index.vue +1 -1
- package/dist/components/bubble/index.vue +6 -6
- package/dist/components/bubble/types.d.ts +1 -1
- package/dist/components/bubble-group/index.d.vue.ts +1 -0
- package/dist/components/bubble-group/index.vue +10 -18
- package/dist/components/button/index.vue +2 -2
- package/dist/components/button/types.d.ts +2 -2
- package/dist/components/button-group/types.d.ts +2 -2
- package/dist/components/calendar/index.vue +4 -4
- package/dist/components/carousel/types.d.ts +2 -2
- package/dist/components/checkbox/types.d.ts +2 -2
- package/dist/components/checkerboard/index.vue +1 -1
- package/dist/components/chip/index.vue +1 -1
- package/dist/components/chip/types.d.ts +2 -2
- package/dist/components/choicebox/types.d.ts +2 -2
- package/dist/components/choicebox-item/types.d.ts +2 -2
- package/dist/components/code-block/index.vue +9 -9
- package/dist/components/code-block/types.d.ts +2 -2
- package/dist/components/collapse/index.vue +2 -2
- package/dist/components/collapse/types.d.ts +2 -2
- package/dist/components/collapse-group/index.vue +6 -6
- package/dist/components/command-menu/index.d.vue.ts +1 -1
- package/dist/components/command-menu/index.vue +17 -5
- package/dist/components/command-menu/types.d.ts +8 -1
- package/dist/components/config-provider/index.d.vue.ts +3 -0
- package/dist/components/confirm-popover/index.vue +1 -1
- package/dist/components/confirm-popover/types.d.ts +5 -5
- package/dist/components/context-usage/index.vue +13 -6
- package/dist/components/copy-button/index.d.vue.ts +2 -0
- package/dist/components/copy-button/index.vue +7 -3
- package/dist/components/copy-button/types.d.ts +3 -2
- package/dist/components/countdown/index.d.vue.ts +1 -1
- package/dist/components/countdown/index.vue +1 -1
- package/dist/components/description/types.d.ts +2 -2
- package/dist/components/drawer/index.vue +4 -1
- package/dist/components/drawer/types.d.ts +4 -4
- package/dist/components/effort-slider/index.vue +13 -16
- package/dist/components/ellipsis-text/types.d.ts +3 -3
- package/dist/components/empty-state/index.vue +1 -1
- package/dist/components/empty-state/types.d.ts +2 -2
- package/dist/components/error/index.vue +2 -2
- package/dist/components/error/types.d.ts +2 -2
- package/dist/components/feedback-bar/index.vue +4 -4
- package/dist/components/gauge/index.vue +3 -3
- package/dist/components/hint/index.vue +2 -2
- package/dist/components/hold-button/index.d.vue.ts +2 -4
- package/dist/components/hold-button/index.vue +9 -13
- package/dist/components/hold-button/types.d.ts +2 -4
- package/dist/components/hue-text/types.d.ts +2 -2
- package/dist/components/image-preview/index.vue +6 -6
- package/dist/components/input/index.d.vue.ts +6 -6
- package/dist/components/input/index.vue +5 -5
- package/dist/components/kbd/index.vue +1 -1
- package/dist/components/kbd/types.d.ts +2 -2
- package/dist/components/link-button/types.d.ts +1 -1
- package/dist/components/list/index.d.vue.ts +1 -0
- package/dist/components/list/index.vue +8 -2
- package/dist/components/list/types.d.ts +16 -8
- package/dist/components/list-group/index.vue +1 -7
- package/dist/components/list-group/types.d.ts +1 -1
- package/dist/components/list-item/index.d.vue.ts +2 -2
- package/dist/components/list-item/index.vue +16 -3
- package/dist/components/list-item/types.d.ts +1 -0
- package/dist/components/loading-mask/types.d.ts +1 -1
- package/dist/components/marching-ants/index.vue +2 -2
- package/dist/components/marquee/types.d.ts +2 -2
- package/dist/components/mention/index.d.vue.ts +26 -8
- package/dist/components/mention/index.vue +92 -11
- package/dist/components/mention/types.d.ts +37 -5
- package/dist/components/message/index.d.vue.ts +3 -3
- package/dist/components/message/index.vue +3 -3
- package/dist/components/message-item/index.vue +1 -1
- package/dist/components/modal/index.vue +5 -2
- package/dist/components/modal/types.d.ts +4 -4
- package/dist/components/more-button/types.d.ts +2 -2
- package/dist/components/note/index.vue +3 -3
- package/dist/components/note/types.d.ts +3 -3
- package/dist/components/number-input/index.d.vue.ts +4 -4
- package/dist/components/page-number/index.vue +2 -2
- package/dist/components/pagination/index.vue +2 -2
- package/dist/components/pin-input/index.vue +1 -1
- package/dist/components/popover/index.vue +111 -100
- package/dist/components/popover/types.d.ts +0 -2
- package/dist/components/progress/index.d.vue.ts +1 -1
- package/dist/components/project-banner/index.vue +3 -3
- package/dist/components/project-banner/types.d.ts +2 -2
- package/dist/components/questionnaire/index.d.vue.ts +1 -1
- package/dist/components/questionnaire/index.vue +93 -36
- package/dist/components/questionnaire/types.d.ts +5 -1
- package/dist/components/radio/types.d.ts +2 -2
- package/dist/components/rating/index.d.vue.ts +1 -1
- package/dist/components/rating/index.vue +1 -0
- package/dist/components/rating/types.d.ts +2 -2
- package/dist/components/reasoning/index.vue +4 -4
- package/dist/components/reasoning/types.d.ts +2 -2
- package/dist/components/resizable/index.d.vue.ts +1 -1
- package/dist/components/resizable/index.vue +34 -30
- package/dist/components/reveal/index.vue +2 -2
- package/dist/components/rolling-number/index.d.vue.ts +1 -1
- package/dist/components/rolling-number/index.vue +6 -6
- package/dist/components/rolling-number/types.d.ts +1 -1
- package/dist/components/scroll-text/index.vue +3 -2
- package/dist/components/scroll-text/types.d.ts +2 -2
- package/dist/components/scrollable/index.vue +1 -6
- package/dist/components/scrollable/types.d.ts +0 -2
- package/dist/components/search-input/index.d.vue.ts +14 -14
- package/dist/components/search-input/index.vue +2 -2
- package/dist/components/select/index.vue +16 -6
- package/dist/components/select/types.d.ts +9 -1
- package/dist/components/shimmer-text/index.d.vue.ts +1 -1
- package/dist/components/shimmer-text/index.vue +2 -2
- package/dist/components/shimmer-text/types.d.ts +4 -2
- package/dist/components/slider/index.d.vue.ts +1 -1
- package/dist/components/slider/index.vue +34 -2
- package/dist/components/snippet/index.d.vue.ts +2 -0
- package/dist/components/snippet/index.vue +6 -2
- package/dist/components/snippet/types.d.ts +3 -2
- package/dist/components/split-button/index.d.vue.ts +9 -7
- package/dist/components/split-button/index.vue +21 -6
- package/dist/components/split-button/types.d.ts +3 -1
- package/dist/components/status-dot/types.d.ts +2 -2
- package/dist/components/steps/types.d.ts +3 -3
- package/dist/components/stick-to-bottom/index.vue +9 -12
- package/dist/components/stick-to-bottom/types.d.ts +0 -2
- package/dist/components/switch/index.vue +1 -1
- package/dist/components/switch-item/types.d.ts +2 -2
- package/dist/components/tabs/index.vue +3 -3
- package/dist/components/teleport/index.vue +6 -3
- package/dist/components/text/index.vue +1 -1
- package/dist/components/text/types.d.ts +1 -1
- package/dist/components/textarea/index.d.vue.ts +6 -6
- package/dist/components/textarea/index.vue +1 -1
- package/dist/components/textarea/types.d.ts +2 -2
- package/dist/components/time-picker/index.vue +4 -4
- package/dist/components/toc/index.vue +7 -2
- package/dist/components/toc/types.d.ts +1 -0
- package/dist/components/todo-list/index.d.vue.ts +1 -1
- package/dist/components/todo-list/index.vue +138 -103
- package/dist/components/todo-list/types.d.ts +7 -5
- package/dist/components/toggle/index.vue +1 -1
- package/dist/components/toggle-button/index.vue +11 -9
- package/dist/components/toggle-button/types.d.ts +3 -3
- package/dist/components/toggle-button-group/index.vue +2 -1
- package/dist/components/toggle-button-group/types.d.ts +2 -2
- package/dist/components/tool-call/index.vue +31 -35
- package/dist/components/tool-call/types.d.ts +2 -2
- package/dist/components/tour/index.d.vue.ts +1 -1
- package/dist/components/tour/index.vue +1 -1
- package/dist/components/tour/types.d.ts +4 -4
- package/dist/components/tree/index.vue +5 -4
- package/dist/components/tree/types.d.ts +4 -5
- package/dist/components/virtual-list/types.d.ts +3 -3
- package/dist/composables/_internal/use-details-collapse.js +28 -3
- package/dist/composables/_internal/use-list-search.d.ts +15 -0
- package/dist/composables/_internal/use-list-search.js +50 -0
- package/dist/composables/_internal/use-mention-editor.d.ts +10 -5
- package/dist/composables/_internal/use-mention-editor.js +180 -140
- package/dist/composables/_internal/use-mention-suggest.d.ts +10 -8
- package/dist/composables/_internal/use-mention-suggest.js +39 -25
- package/dist/composables/_internal/use-message-group.js +6 -6
- package/dist/composables/_internal/use-popover-responsive.d.ts +1 -1
- package/dist/composables/_internal/use-popover-responsive.js +1 -1
- package/dist/composables/_internal/use-remote-search.d.ts +17 -0
- package/dist/composables/_internal/use-remote-search.js +58 -0
- package/dist/composables/_internal/use-tree.d.ts +2 -2
- package/dist/composables/_internal/use-tree.js +7 -52
- package/dist/composables/_internal/use-word-limit.d.ts +2 -2
- package/dist/composables/use-backoff-retry.d.ts +2 -35
- package/dist/composables/use-backoff-retry.js +5 -98
- package/dist/composables/use-copy-click.js +14 -13
- package/dist/composables/use-countdown.d.ts +1 -1
- package/dist/composables/use-countdown.js +4 -4
- package/dist/composables/use-delay-destroy.js +8 -6
- package/dist/composables/use-message.d.ts +1 -1
- package/dist/composables/use-message.js +1 -1
- package/dist/composables/use-repeat-action.d.ts +1 -1
- package/dist/composables/use-repeat-action.js +3 -3
- package/dist/composables/use-stick-to-bottom.d.ts +4 -21
- package/dist/composables/use-stick-to-bottom.js +138 -24
- package/dist/composables/use-view-transition.d.ts +23 -9
- package/dist/constants/tooltip-variants.d.ts +1 -1
- package/dist/constants/tooltip-variants.js +1 -1
- package/dist/locales/en-us.d.ts +3 -0
- package/dist/locales/en-us.js +4 -1
- package/dist/locales/zh-cn.d.ts +3 -0
- package/dist/locales/zh-cn.js +4 -1
- package/dist/styles/styles.css +1 -1
- package/dist/styles/tw.css +5 -14
- package/dist/types/shared/props.d.ts +5 -2
- package/dist/utils/_internal/mention-html.d.ts +1 -0
- package/dist/utils/_internal/mention-html.js +6 -4
- package/dist/utils/_internal/observer.js +3 -3
- package/dist/utils/backoff-retry.d.ts +15 -0
- package/dist/utils/backoff-retry.js +94 -0
- package/dist/utils/mention-html.d.ts +14 -0
- package/dist/utils/mention-html.js +71 -0
- package/package.json +2 -9
- package/dist/composables/_internal/use-list-filter.d.ts +0 -15
- package/dist/composables/_internal/use-list-filter.js +0 -48
|
@@ -210,7 +210,10 @@ watch(() => isVisible.value, (visible) => {
|
|
|
210
210
|
</PButton>
|
|
211
211
|
</header>
|
|
212
212
|
|
|
213
|
-
<div
|
|
213
|
+
<div
|
|
214
|
+
class="pxd-drawer--content p-5 empty:py-2.5 h-full flex-1 scrollbar-gutter-stable overflow-auto"
|
|
215
|
+
:class="contentClass"
|
|
216
|
+
>
|
|
214
217
|
<slot />
|
|
215
218
|
</div>
|
|
216
219
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { BasePosition, ComponentClass,
|
|
1
|
+
import type { BasePosition, ComponentClass, ComponentText } from '../../types/shared/props'
|
|
2
2
|
|
|
3
3
|
export interface DrawerProps {
|
|
4
4
|
zIndex?: number
|
|
5
|
-
title?:
|
|
6
|
-
subtitle?:
|
|
5
|
+
title?: ComponentText
|
|
6
|
+
subtitle?: ComponentText
|
|
7
7
|
size?: number | string
|
|
8
8
|
loading?: boolean
|
|
9
9
|
position?: BasePosition
|
|
10
10
|
modelValue?: boolean
|
|
11
|
-
loadingText?:
|
|
11
|
+
loadingText?: ComponentText
|
|
12
12
|
wrapperClass?: ComponentClass
|
|
13
13
|
contentClass?: ComponentClass
|
|
14
14
|
autoFocusElement?: string | boolean
|
|
@@ -85,10 +85,9 @@ let lastClientX = null;
|
|
|
85
85
|
let dragStartValue = null;
|
|
86
86
|
let lastUpdatedValue = null;
|
|
87
87
|
let stopMoveListener = null;
|
|
88
|
-
const PARTICLE_COUNT =
|
|
88
|
+
const PARTICLE_COUNT = 16;
|
|
89
89
|
const PARTICLE_DURATION = 2;
|
|
90
90
|
const trackRef = shallowRef();
|
|
91
|
-
const thumbRef = shallowRef();
|
|
92
91
|
const labelRef = shallowRef();
|
|
93
92
|
const dragging = shallowRef(false);
|
|
94
93
|
const focused = shallowRef(false);
|
|
@@ -128,24 +127,22 @@ function particleSeed(index, salt) {
|
|
|
128
127
|
}
|
|
129
128
|
function updateLabelShift() {
|
|
130
129
|
const label = labelRef.value;
|
|
131
|
-
const thumb = thumbRef.value;
|
|
132
130
|
const track = trackRef.value;
|
|
133
|
-
if (!label || !
|
|
131
|
+
if (!label || !track) {
|
|
134
132
|
return;
|
|
135
133
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
const
|
|
139
|
-
|
|
134
|
+
// Layout pixels: `getBoundingClientRect()` reports the box already scaled by an ancestor
|
|
135
|
+
// zoom or transform, while the shift below is applied in unscaled pixels.
|
|
136
|
+
const trackWidth = track.clientWidth;
|
|
137
|
+
const labelWidth = label.offsetWidth;
|
|
138
|
+
if (!trackWidth || labelWidth > trackWidth) {
|
|
140
139
|
labelShift.value = 0;
|
|
141
140
|
return;
|
|
142
141
|
}
|
|
143
142
|
const center = percentage.value / 100 * trackWidth;
|
|
144
|
-
const
|
|
145
|
-
// The label
|
|
146
|
-
|
|
147
|
-
const upper = trackWidth + thumbWidth / 2 - labelWidth;
|
|
148
|
-
labelShift.value = clamp(left, lower, Math.max(lower, upper)) - left;
|
|
143
|
+
const half = labelWidth / 2;
|
|
144
|
+
// The label stays inside the track, so at the ends it stops at the track edge.
|
|
145
|
+
labelShift.value = clamp(center, half, trackWidth - half) - center;
|
|
149
146
|
}
|
|
150
147
|
const tickList = computed(() => {
|
|
151
148
|
const count = levelCount.value;
|
|
@@ -331,6 +328,7 @@ onBeforeUnmount(() => {
|
|
|
331
328
|
:class="classes"
|
|
332
329
|
:aria-disabled="disabled"
|
|
333
330
|
@pointerdown.prevent="onTrackPointerdown"
|
|
331
|
+
@pointerenter="updateLabelShift"
|
|
334
332
|
>
|
|
335
333
|
<div
|
|
336
334
|
class="pxd-effort-slider--fill inset-0 pointer-events-none absolute overflow-hidden rounded-full motion-safe:transition-[clip-path,background-color]"
|
|
@@ -341,7 +339,7 @@ onBeforeUnmount(() => {
|
|
|
341
339
|
v-for="particle in particleList"
|
|
342
340
|
:key="particle.id"
|
|
343
341
|
aria-hidden="true"
|
|
344
|
-
class="pxd-effort-slider--particle inset-y-0 left-0 absolute w-full
|
|
342
|
+
class="pxd-effort-slider--particle inset-y-0 left-0 absolute w-full"
|
|
345
343
|
:style="particle.style"
|
|
346
344
|
/>
|
|
347
345
|
</div>
|
|
@@ -354,7 +352,6 @@ onBeforeUnmount(() => {
|
|
|
354
352
|
/>
|
|
355
353
|
|
|
356
354
|
<div
|
|
357
|
-
ref="thumbRef"
|
|
358
355
|
role="slider"
|
|
359
356
|
:tabindex="disabled ? -1 : 0"
|
|
360
357
|
:aria-valuemin="0"
|
|
@@ -383,5 +380,5 @@ onBeforeUnmount(() => {
|
|
|
383
380
|
</template>
|
|
384
381
|
|
|
385
382
|
<style>
|
|
386
|
-
.pxd-effort-slider--thumb:
|
|
383
|
+
.pxd-effort-slider--thumb:after,.pxd-effort-slider--thumb:before{border-radius:inherit;content:"";left:50%;position:absolute;top:50%;transform:translate3d(-50%,-50%,0) scale(var(--slider-thumb-scale,1))}.pxd-effort-slider--thumb:before{background-color:#fff;box-shadow:0 0 0 1px var(--color-gray-alpha-500),0 1px 2px var(--color-gray-alpha-100);height:100%;width:100%}.pxd-effort-slider--thumb:after{height:150%;width:150%}.pxd-effort-slider--thumb:active,.pxd-effort-slider--thumb[data-dragging=true]{--slider-thumb-scale:1.3;z-index:1}.pxd-effort-slider--thumb:active:after,.pxd-effort-slider--thumb[data-dragging=true]:after{height:100%;width:100%}.dark .pxd-effort-slider--thumb:before{box-shadow:0 0 0 1px var(--color-background-200)}.pxd-effort-slider--particle{animation:pxd-effort-slider-particle-flow var(--p-duration) linear infinite;animation-delay:var(--p-delay)}.pxd-effort-slider--particle:before{background-color:var(--color-background-100);border-radius:50%;content:"";height:var(--p-size);left:50%;opacity:var(--p-opacity);position:absolute;top:calc(50% + var(--p-y));transform:translate(-50%,-50%);width:var(--p-size)}@keyframes pxd-effort-slider-particle-flow{0%{transform:translateX(50%)}to{transform:translateX(-50%)}}
|
|
387
384
|
</style>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentText } from '../../types/shared/props'
|
|
2
2
|
|
|
3
3
|
export interface EllipsisTextProps {
|
|
4
4
|
text: string
|
|
@@ -6,8 +6,8 @@ export interface EllipsisTextProps {
|
|
|
6
6
|
rows?: number
|
|
7
7
|
action?: boolean
|
|
8
8
|
position?: 'start' | 'middle' | 'end'
|
|
9
|
-
moreText?:
|
|
10
|
-
lessText?:
|
|
9
|
+
moreText?: ComponentText
|
|
10
|
+
lessText?: ComponentText
|
|
11
11
|
moreActionClass?: string
|
|
12
12
|
lessActionClass?: string
|
|
13
13
|
}
|
|
@@ -37,7 +37,7 @@ defineProps({
|
|
|
37
37
|
</slot>
|
|
38
38
|
</p>
|
|
39
39
|
|
|
40
|
-
<p class="pxd-empty-state--description text-
|
|
40
|
+
<p class="pxd-empty-state--description text-[0.8125rem] text-center text-foreground-secondary">
|
|
41
41
|
<slot name="description">
|
|
42
42
|
{{ description }}
|
|
43
43
|
</slot>
|
|
@@ -37,7 +37,7 @@ const { attrs, classes } = useTailwindVariant({
|
|
|
37
37
|
},
|
|
38
38
|
size: {
|
|
39
39
|
xs: "text-xs [--mt:0.125rem]",
|
|
40
|
-
sm: "text-
|
|
40
|
+
sm: "text-[0.8125rem] [--mt:0.125rem]",
|
|
41
41
|
md: "text-sm [--mt:0.125rem]",
|
|
42
42
|
lg: "text-base [--mt:0.25rem]"
|
|
43
43
|
}
|
|
@@ -50,7 +50,7 @@ const { attrs, classes } = useTailwindVariant({
|
|
|
50
50
|
|
|
51
51
|
<template>
|
|
52
52
|
<div data-error :class="classes" :data-variant="variant" v-bind="attrs">
|
|
53
|
-
<StopIcon class="size-
|
|
53
|
+
<StopIcon class="size-em me-2 mbs-(--mt) shrink-0" />
|
|
54
54
|
|
|
55
55
|
<div class="flex-1 shrink-0">
|
|
56
56
|
<b v-if="label || error?.label" class="font-medium whitespace-nowrap"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentText, ComponentSizeWithXs } from '../../types/shared/props'
|
|
2
2
|
|
|
3
3
|
export interface ErrorType {
|
|
4
4
|
link?: string
|
|
@@ -9,7 +9,7 @@ export interface ErrorType {
|
|
|
9
9
|
|
|
10
10
|
export interface ErrorProps {
|
|
11
11
|
size?: ComponentSizeWithXs
|
|
12
|
-
label?:
|
|
12
|
+
label?: ComponentText
|
|
13
13
|
error?: ErrorType
|
|
14
14
|
variant?: 'default' | 'card'
|
|
15
15
|
}
|
|
@@ -36,7 +36,7 @@ function handleThumbDown() {
|
|
|
36
36
|
class="pxd-feedback-bar p-1.5 gap-1 flex w-full max-w-full items-center overflow-hidden rounded-xl border bg-background-100"
|
|
37
37
|
v-bind="$attrs"
|
|
38
38
|
>
|
|
39
|
-
<InformationIcon aria-hidden="true" class="
|
|
39
|
+
<InformationIcon aria-hidden="true" class="ms-2.5 me-1 size-em shrink-0 text-gray-900" />
|
|
40
40
|
|
|
41
41
|
<span class="pxd-feedback-bar--label text-sm flex-1 shrink-0 text-foreground">
|
|
42
42
|
{{ label }}
|
|
@@ -51,7 +51,7 @@ function handleThumbDown() {
|
|
|
51
51
|
:title="configProvider.locale.feedback.thumbUp"
|
|
52
52
|
@click="handleThumbUp"
|
|
53
53
|
>
|
|
54
|
-
<ThumbUpIcon class="size-
|
|
54
|
+
<ThumbUpIcon class="size-em" />
|
|
55
55
|
</PButton>
|
|
56
56
|
|
|
57
57
|
<PButton
|
|
@@ -63,7 +63,7 @@ function handleThumbDown() {
|
|
|
63
63
|
:title="configProvider.locale.feedback.thumbDown"
|
|
64
64
|
@click="handleThumbDown"
|
|
65
65
|
>
|
|
66
|
-
<ThumbDownIcon class="size-
|
|
66
|
+
<ThumbDownIcon class="size-em" />
|
|
67
67
|
</PButton>
|
|
68
68
|
|
|
69
69
|
<PButton
|
|
@@ -75,7 +75,7 @@ function handleThumbDown() {
|
|
|
75
75
|
:title="configProvider.locale.feedback.close"
|
|
76
76
|
@click="handleClose"
|
|
77
77
|
>
|
|
78
|
-
<CrossIcon class="size-
|
|
78
|
+
<CrossIcon class="size-em" />
|
|
79
79
|
</PButton>
|
|
80
80
|
</div>
|
|
81
81
|
</template>
|
|
@@ -56,7 +56,7 @@ const GAP_LENGTH = PROGRESS_BAR_GAP / 100 * CIRCUMFERENCE;
|
|
|
56
56
|
const GAP_OFFSET = GAP_LENGTH / 2;
|
|
57
57
|
// `<circle>` starts at 3 o'clock and dashes don't wrap the seam, so trace the ring from 12 o'clock
|
|
58
58
|
const RING_PATH = `M 50 ${50 - RADIUS} A ${RADIUS} ${RADIUS} 0 1 1 50 ${50 + RADIUS}` + ` A ${RADIUS} ${RADIUS} 0 1 1 50 ${50 - RADIUS}`;
|
|
59
|
-
const DEFAULT_TRACK_COLOR = "var(--color-gray-200)";
|
|
59
|
+
const DEFAULT_TRACK_COLOR = "var(--color-gray-alpha-200)";
|
|
60
60
|
const defaultColors = {
|
|
61
61
|
0: "var(--color-red-800)",
|
|
62
62
|
30: "var(--color-amber-800)",
|
|
@@ -163,7 +163,7 @@ const computedSize = computed(() => getFallbackValue(props.size, SIZES, configPr
|
|
|
163
163
|
v-if="indeterminate"
|
|
164
164
|
aria-hidden="true"
|
|
165
165
|
class="pxd-gauge--indeterminate inset-0 font-medium absolute flex items-center justify-center text-center text-foreground-secondary"
|
|
166
|
-
style="font-size: clamp(
|
|
166
|
+
style="font-size: clamp(0.625rem, calc(var(--gauge-size, 3rem) * 0.38), 3.125rem)"
|
|
167
167
|
>
|
|
168
168
|
<ChartActivityIcon />
|
|
169
169
|
</div>
|
|
@@ -172,7 +172,7 @@ const computedSize = computed(() => getFallbackValue(props.size, SIZES, configPr
|
|
|
172
172
|
v-else-if="showValue && computedSize !== SIZES.xs"
|
|
173
173
|
aria-hidden="true"
|
|
174
174
|
class="pxd-gauge--value inset-0 font-medium absolute flex items-center justify-center text-center"
|
|
175
|
-
style="font-size: calc(var(--gauge-size,
|
|
175
|
+
style="font-size: calc(var(--gauge-size, 3rem) * 0.28)"
|
|
176
176
|
>
|
|
177
177
|
{{ progress }}
|
|
178
178
|
</div>
|
|
@@ -195,7 +195,7 @@ onBeforeUnmount(() => {
|
|
|
195
195
|
|
|
196
196
|
<template #content="{ activeTrigger, activeTriggerIndex }">
|
|
197
197
|
<div
|
|
198
|
-
class="pxd-hint--content gap-2 px-3 py-2 flex items-center"
|
|
198
|
+
class="pxd-hint--content gap-2 px-3 py-2 relative flex items-center overflow-hidden rounded-inherit"
|
|
199
199
|
:data-pause-on-hover="pauseOnHover"
|
|
200
200
|
@pointerenter="pauseCloseTimer"
|
|
201
201
|
@pointerleave="resumeCloseTimer"
|
|
@@ -225,7 +225,7 @@ onBeforeUnmount(() => {
|
|
|
225
225
|
v-if="progressVisible"
|
|
226
226
|
:key="progressKey"
|
|
227
227
|
aria-hidden="true"
|
|
228
|
-
class="pxd-hint--progress-bar pxd-countdown-progress inset-x-0 top-0 h-0.5 absolute bg-
|
|
228
|
+
class="pxd-hint--progress-bar pxd-countdown-progress inset-x-0 top-0 h-0.5 absolute bg-gray-400"
|
|
229
229
|
:style="{ animationDuration: `${progressDuration}ms` }"
|
|
230
230
|
/>
|
|
231
231
|
</div>
|
|
@@ -8,17 +8,15 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
suffix?: (props: typeof __VLS_19) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: import("vue").DefineComponent<HoldButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
-
cancel: () => any;
|
|
12
11
|
pointerdown: (args_0: PointerEvent) => any;
|
|
12
|
+
cancel: (progress: number) => any;
|
|
13
13
|
pointerup: (args_0: PointerEvent) => any;
|
|
14
14
|
confirm: () => any;
|
|
15
|
-
release: (confirmed: boolean) => any;
|
|
16
15
|
}, string, import("vue").PublicProps, Readonly<HoldButtonProps> & Readonly<{
|
|
17
|
-
onCancel?: (() => any) | undefined;
|
|
18
16
|
onPointerdown?: ((args_0: PointerEvent) => any) | undefined;
|
|
17
|
+
onCancel?: ((progress: number) => any) | undefined;
|
|
19
18
|
onPointerup?: ((args_0: PointerEvent) => any) | undefined;
|
|
20
19
|
onConfirm?: (() => any) | undefined;
|
|
21
|
-
onRelease?: ((confirmed: boolean) => any) | undefined;
|
|
22
20
|
}>, {
|
|
23
21
|
vibrate: boolean;
|
|
24
22
|
scalable: boolean;
|
|
@@ -21,12 +21,8 @@ const props = defineProps({
|
|
|
21
21
|
required: false,
|
|
22
22
|
default: true
|
|
23
23
|
},
|
|
24
|
-
|
|
25
|
-
type:
|
|
26
|
-
required: false
|
|
27
|
-
},
|
|
28
|
-
cancelable: {
|
|
29
|
-
type: Boolean,
|
|
24
|
+
duration: {
|
|
25
|
+
type: Number,
|
|
30
26
|
required: false
|
|
31
27
|
},
|
|
32
28
|
progressColor: {
|
|
@@ -37,7 +33,6 @@ const props = defineProps({
|
|
|
37
33
|
const emits = defineEmits([
|
|
38
34
|
"cancel",
|
|
39
35
|
"confirm",
|
|
40
|
-
"release",
|
|
41
36
|
"pointerup",
|
|
42
37
|
"pointerdown"
|
|
43
38
|
]);
|
|
@@ -49,8 +44,7 @@ let lastFrameAt = 0;
|
|
|
49
44
|
const status = shallowRef("idle");
|
|
50
45
|
const progress = shallowRef(0);
|
|
51
46
|
function getDuration() {
|
|
52
|
-
|
|
53
|
-
return Number.isFinite(value) && value > 0 ? value : DEFAULT_DURATION;
|
|
47
|
+
return props.duration && props.duration > 0 ? props.duration : DEFAULT_DURATION;
|
|
54
48
|
}
|
|
55
49
|
function onTriggerVibrate() {
|
|
56
50
|
if (props.vibrate && typeof window.navigator.vibrate === "function") {
|
|
@@ -80,6 +74,7 @@ function updateProgress() {
|
|
|
80
74
|
progress.value = 1;
|
|
81
75
|
status.value = "confirmed";
|
|
82
76
|
emits("confirm");
|
|
77
|
+
onTriggerVibrate();
|
|
83
78
|
return;
|
|
84
79
|
}
|
|
85
80
|
progress.value = held / duration;
|
|
@@ -91,7 +86,6 @@ function pauseHold() {
|
|
|
91
86
|
}
|
|
92
87
|
stopProgress();
|
|
93
88
|
status.value = "canceled";
|
|
94
|
-
emits("cancel");
|
|
95
89
|
}
|
|
96
90
|
function resumeHold() {
|
|
97
91
|
if (status.value !== "canceled") {
|
|
@@ -115,7 +109,7 @@ function onPointerDown(event) {
|
|
|
115
109
|
emits("pointerdown", event);
|
|
116
110
|
}
|
|
117
111
|
function onPointerMove(event) {
|
|
118
|
-
if (event.pointerId !== activePointerId
|
|
112
|
+
if (event.pointerId !== activePointerId) {
|
|
119
113
|
return;
|
|
120
114
|
}
|
|
121
115
|
const rect = event.currentTarget.getBoundingClientRect();
|
|
@@ -130,15 +124,17 @@ function onPointerUp(event) {
|
|
|
130
124
|
if (event.pointerId !== activePointerId) {
|
|
131
125
|
return;
|
|
132
126
|
}
|
|
127
|
+
const heldProgress = progress.value;
|
|
133
128
|
const isConfirmed = status.value === "confirmed";
|
|
134
129
|
activePointerId = null;
|
|
135
130
|
stopProgress();
|
|
136
131
|
held = 0;
|
|
137
132
|
status.value = "idle";
|
|
138
133
|
progress.value = 0;
|
|
139
|
-
|
|
134
|
+
if (!isConfirmed) {
|
|
135
|
+
emits("cancel", heldProgress);
|
|
136
|
+
}
|
|
140
137
|
emits("pointerup", event);
|
|
141
|
-
onTriggerVibrate();
|
|
142
138
|
}
|
|
143
139
|
onBeforeUnmount(stopProgress);
|
|
144
140
|
</script>
|
|
@@ -4,15 +4,13 @@ export interface HoldButtonProps {
|
|
|
4
4
|
vibrate?: boolean
|
|
5
5
|
disabled?: boolean
|
|
6
6
|
scalable?: boolean
|
|
7
|
-
|
|
8
|
-
cancelable?: boolean
|
|
7
|
+
duration?: number
|
|
9
8
|
progressColor?: string
|
|
10
9
|
}
|
|
11
10
|
|
|
12
11
|
export interface HoldButtonEmits {
|
|
13
|
-
cancel: []
|
|
12
|
+
cancel: [progress: number]
|
|
14
13
|
confirm: []
|
|
15
|
-
release: [confirmed: boolean]
|
|
16
14
|
pointerup: [PointerEvent]
|
|
17
15
|
pointerdown: [PointerEvent]
|
|
18
16
|
}
|
|
@@ -317,7 +317,7 @@ defineExpose({
|
|
|
317
317
|
:class="CONTROL_CLASS"
|
|
318
318
|
@click="close"
|
|
319
319
|
>
|
|
320
|
-
<CrossIcon class="size-
|
|
320
|
+
<CrossIcon class="size-em" />
|
|
321
321
|
</button>
|
|
322
322
|
|
|
323
323
|
<button
|
|
@@ -346,7 +346,7 @@ defineExpose({
|
|
|
346
346
|
class="bottom-4 p-1 gap-0.5 bg-black/50 backdrop-blur-sm absolute left-1/2 flex -translate-x-1/2 items-center rounded-lg"
|
|
347
347
|
>
|
|
348
348
|
<button type="button" aria-label="Zoom out" :class="CONTROL_CLASS" @click="zoomOut">
|
|
349
|
-
<MagnifyingGlassMinusIcon class="size-
|
|
349
|
+
<MagnifyingGlassMinusIcon class="size-em" />
|
|
350
350
|
</button>
|
|
351
351
|
|
|
352
352
|
<span data-image-preview-zoom class="min-w-12 text-sm text-center tabular-nums">
|
|
@@ -354,19 +354,19 @@ defineExpose({
|
|
|
354
354
|
</span>
|
|
355
355
|
|
|
356
356
|
<button type="button" aria-label="Zoom in" :class="CONTROL_CLASS" @click="zoomIn">
|
|
357
|
-
<MagnifyingGlassPlusIcon class="size-
|
|
357
|
+
<MagnifyingGlassPlusIcon class="size-em" />
|
|
358
358
|
</button>
|
|
359
359
|
|
|
360
360
|
<button type="button" aria-label="Rotate" :class="CONTROL_CLASS" @click="rotate">
|
|
361
|
-
<RotateClockwiseIcon class="size-
|
|
361
|
+
<RotateClockwiseIcon class="size-em" />
|
|
362
362
|
</button>
|
|
363
363
|
|
|
364
364
|
<button type="button" aria-label="Reset" :class="CONTROL_CLASS" @click="reset">
|
|
365
|
-
<RefreshCounterClockwiseIcon class="size-
|
|
365
|
+
<RefreshCounterClockwiseIcon class="size-em" />
|
|
366
366
|
</button>
|
|
367
367
|
|
|
368
368
|
<button type="button" aria-label="Download" :class="CONTROL_CLASS" @click="download">
|
|
369
|
-
<DownloadIcon class="size-
|
|
369
|
+
<DownloadIcon class="size-em" />
|
|
370
370
|
</button>
|
|
371
371
|
</div>
|
|
372
372
|
</div>
|
|
@@ -18,22 +18,22 @@ declare const __VLS_base: import("vue").DefineComponent<InputProps, {
|
|
|
18
18
|
change: (args_0: string, args_1: Event) => any;
|
|
19
19
|
"update:model-value": (args_0: string) => any;
|
|
20
20
|
click: (args_0: MouseEvent) => any;
|
|
21
|
+
focus: (args_0: FocusEvent) => any;
|
|
21
22
|
blur: (args_0: FocusEvent) => any;
|
|
22
|
-
|
|
23
|
+
keydown: (args_0: KeyboardEvent) => any;
|
|
23
24
|
compositionstart: (args_0: CompositionEvent) => any;
|
|
24
25
|
compositionupdate: (args_0: CompositionEvent) => any;
|
|
25
|
-
|
|
26
|
-
keydown: (args_0: KeyboardEvent) => any;
|
|
26
|
+
compositionend: (args_0: CompositionEvent) => any;
|
|
27
27
|
}, string, import("vue").PublicProps, Readonly<InputProps> & Readonly<{
|
|
28
28
|
onChange?: ((args_0: string, args_1: Event) => any) | undefined;
|
|
29
29
|
"onUpdate:model-value"?: ((args_0: string) => any) | undefined;
|
|
30
30
|
onClick?: ((args_0: MouseEvent) => any) | undefined;
|
|
31
|
+
onFocus?: ((args_0: FocusEvent) => any) | undefined;
|
|
31
32
|
onBlur?: ((args_0: FocusEvent) => any) | undefined;
|
|
32
|
-
|
|
33
|
+
onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
|
|
33
34
|
onCompositionstart?: ((args_0: CompositionEvent) => any) | undefined;
|
|
34
35
|
onCompositionupdate?: ((args_0: CompositionEvent) => any) | undefined;
|
|
35
|
-
|
|
36
|
-
onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
|
|
36
|
+
onCompositionend?: ((args_0: CompositionEvent) => any) | undefined;
|
|
37
37
|
}>, {
|
|
38
38
|
align: "center" | "left" | "right";
|
|
39
39
|
trimOverflow: boolean;
|
|
@@ -169,8 +169,8 @@ const { attrs, classes } = useTailwindVariant({
|
|
|
169
169
|
base: "pxd-input pxd-input--border group relative flex w-full max-w-full items-center bg-background-100 data-[disabled=true]:cursor-not-allowed data-[disabled=true]:bg-gray-100 motion-safe:transition-appearance",
|
|
170
170
|
variants: {
|
|
171
171
|
size: {
|
|
172
|
-
xs: `${BASIC_HEIGHTS.xs} text-
|
|
173
|
-
sm: `${BASIC_HEIGHTS.sm}
|
|
172
|
+
xs: `${BASIC_HEIGHTS.xs} text-xs rounded-sm`,
|
|
173
|
+
sm: `${BASIC_HEIGHTS.sm} rounded-md text-[0.8125rem]`,
|
|
174
174
|
md: `${BASIC_HEIGHTS.md} text-sm rounded-md`,
|
|
175
175
|
lg: `${BASIC_HEIGHTS.lg} text-base rounded-lg`
|
|
176
176
|
},
|
|
@@ -293,9 +293,9 @@ defineExpose({
|
|
|
293
293
|
>
|
|
294
294
|
<div
|
|
295
295
|
v-if="$slots.prefix"
|
|
296
|
-
class="pxd-input--prefix text-sm flex h-full shrink-0 items-center rounded-inherit text-foreground-secondary"
|
|
296
|
+
class="pxd-input--prefix text-sm flex h-full shrink-0 items-center rounded-l-inherit text-foreground-secondary"
|
|
297
297
|
:class="[
|
|
298
|
-
{ 'px-3
|
|
298
|
+
{ 'px-3 border-r border-gray-300 bg-background-200': defaultPrefixStyle },
|
|
299
299
|
prefixClass
|
|
300
300
|
]"
|
|
301
301
|
@pointerdown.prevent="NOOP"
|
|
@@ -372,7 +372,7 @@ defineExpose({
|
|
|
372
372
|
|
|
373
373
|
<div
|
|
374
374
|
v-if="$slots.suffix"
|
|
375
|
-
class="pxd-input--suffix text-sm flex h-full shrink-0 items-center rounded-inherit text-foreground-secondary"
|
|
375
|
+
class="pxd-input--suffix text-sm flex h-full shrink-0 items-center rounded-r-inherit text-foreground-secondary"
|
|
376
376
|
:class="[
|
|
377
377
|
{ 'px-3 rounded-r-inherit border-l border-gray-300 bg-background-200': defaultSuffixStyle },
|
|
378
378
|
suffixClass
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentSize,
|
|
1
|
+
import type { ComponentSize, ComponentText } from '../../types/shared/props'
|
|
2
2
|
|
|
3
3
|
export interface KbdProps {
|
|
4
4
|
alt?: boolean
|
|
@@ -6,6 +6,6 @@ export interface KbdProps {
|
|
|
6
6
|
meta?: boolean
|
|
7
7
|
enter?: boolean
|
|
8
8
|
shift?: boolean
|
|
9
|
-
label?:
|
|
9
|
+
label?: ComponentText
|
|
10
10
|
size?: ComponentSize
|
|
11
11
|
}
|
|
@@ -18,6 +18,7 @@ declare const __VLS_base: import("vue").DefineComponent<ListProps, {
|
|
|
18
18
|
setActiveIndex: (index: number) => void;
|
|
19
19
|
setFirstAsActive: () => void;
|
|
20
20
|
activeIndex: import("vue").ShallowRef<number>;
|
|
21
|
+
activeItemId: import("vue").ComputedRef<string | undefined>;
|
|
21
22
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
23
|
change: (args_0: ListOptionSelected) => any;
|
|
23
24
|
"update:model-value": (args_0: import("./types").ListModelValue) => any;
|
|
@@ -8,6 +8,7 @@ import { useVirtualList } from "../../composables/use-virtual-list.js";
|
|
|
8
8
|
import { provideListContext } from "../../contexts/list.js";
|
|
9
9
|
import { getElement } from "../../utils/dom.js";
|
|
10
10
|
import { toArray } from "../../utils/format.js";
|
|
11
|
+
import { getUniqueId } from "../../utils/helper.js";
|
|
11
12
|
import { isNil } from "../../utils/is.js";
|
|
12
13
|
import PListGroup from "../list-group/index.vue";
|
|
13
14
|
import PListItem from "../list-item/index.vue";
|
|
@@ -78,6 +79,7 @@ const props = defineProps({
|
|
|
78
79
|
}
|
|
79
80
|
});
|
|
80
81
|
const emits = defineEmits(["change", "update:model-value"]);
|
|
82
|
+
const uid = getUniqueId("list-item");
|
|
81
83
|
const containerRef = shallowRef();
|
|
82
84
|
const flattened = computed(() => flattenListOptions(props.options));
|
|
83
85
|
const rows = computed(() => flattened.value.rows);
|
|
@@ -106,6 +108,8 @@ const { activeIndex, dispatch, setActiveIndex, onPointerOver, setFirstAsActive }
|
|
|
106
108
|
onActivateItem,
|
|
107
109
|
scrollToIndex: scrollNavIndexIntoView
|
|
108
110
|
});
|
|
111
|
+
// Stable ids so host comboboxes can point aria-activedescendant at the active row.
|
|
112
|
+
const activeItemId = computed(() => activeIndex.value >= 0 ? `${uid}-${activeIndex.value}` : undefined);
|
|
109
113
|
const { totalSize, virtualItems, scrollToIndex } = useVirtualList(containerRef, virtualOptions);
|
|
110
114
|
const renderEntries = computed(() => {
|
|
111
115
|
if (props.virtual) {
|
|
@@ -155,7 +159,7 @@ function scrollNavIndexIntoView(navIndex) {
|
|
|
155
159
|
});
|
|
156
160
|
}
|
|
157
161
|
function toSelectedOption(option) {
|
|
158
|
-
const { as,
|
|
162
|
+
const { as, icon, ...selectedOption } = option;
|
|
159
163
|
return selectedOption;
|
|
160
164
|
}
|
|
161
165
|
function onItemSelect(value) {
|
|
@@ -277,7 +281,8 @@ defineExpose({
|
|
|
277
281
|
dispatch: dispatchCommand,
|
|
278
282
|
setActiveIndex,
|
|
279
283
|
setFirstAsActive,
|
|
280
|
-
activeIndex
|
|
284
|
+
activeIndex,
|
|
285
|
+
activeItemId
|
|
281
286
|
});
|
|
282
287
|
</script>
|
|
283
288
|
|
|
@@ -313,6 +318,7 @@ defineExpose({
|
|
|
313
318
|
<PListItem
|
|
314
319
|
v-else-if="entry.itemRow"
|
|
315
320
|
v-bind="entry.itemRow.option"
|
|
321
|
+
:id="`${uid}-${entry.itemRow.navIndex}`"
|
|
316
322
|
:index="entry.itemRow.navIndex"
|
|
317
323
|
:class="itemClass"
|
|
318
324
|
>
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
ComponentAs,
|
|
3
3
|
ComponentClass,
|
|
4
|
-
|
|
4
|
+
ComponentText,
|
|
5
5
|
ComponentValue,
|
|
6
6
|
} from '../../types/shared/props'
|
|
7
|
+
import type { Component } from 'vue'
|
|
7
8
|
|
|
8
9
|
export interface ListOption {
|
|
9
10
|
as?: ComponentAs
|
|
10
|
-
label?:
|
|
11
|
+
label?: ComponentText
|
|
11
12
|
value: ComponentValue
|
|
12
13
|
disabled?: boolean
|
|
13
14
|
variant?: 'default' | 'error' | 'warning'
|
|
14
15
|
description?: string
|
|
15
|
-
|
|
16
|
+
icon?: string | Component
|
|
16
17
|
[key: string]: any
|
|
17
18
|
}
|
|
18
19
|
|
|
@@ -24,24 +25,31 @@ export interface ListOptionGroup {
|
|
|
24
25
|
|
|
25
26
|
export type ListOptionEntry = ListOption | ListOptionGroup
|
|
26
27
|
|
|
27
|
-
|
|
28
|
+
/** The option an event carries: the data fields, without the render-only `as` and `icon`. */
|
|
29
|
+
export interface ListOptionSelected {
|
|
30
|
+
label?: ComponentText
|
|
31
|
+
value: ComponentValue
|
|
32
|
+
disabled?: boolean
|
|
33
|
+
variant?: 'default' | 'error' | 'warning'
|
|
34
|
+
description?: string
|
|
35
|
+
}
|
|
36
|
+
|
|
28
37
|
export type ListOptions = ListOptionEntry[]
|
|
29
38
|
export type ListModelValue = ComponentValue | ComponentValue[] | null
|
|
30
39
|
|
|
40
|
+
export type ListFilterMethodFn = (option: ListOption, query: string) => boolean
|
|
41
|
+
export type ListRemoteFilterFn = (query: string) => ListOptions | Promise<ListOptions>
|
|
42
|
+
|
|
31
43
|
export interface ListProps {
|
|
32
44
|
loop?: boolean
|
|
33
45
|
multiple?: boolean
|
|
34
46
|
modelValue?: ListModelValue
|
|
35
47
|
options?: ListOptionEntry[]
|
|
36
|
-
/** Class merged into every internally rendered list item. */
|
|
37
48
|
itemClass?: ComponentClass
|
|
38
49
|
defaultActiveIndex?: number
|
|
39
50
|
loading?: boolean
|
|
40
|
-
/** Enable virtualized rendering for large option sets. */
|
|
41
51
|
virtual?: boolean
|
|
42
|
-
/** Estimated row height in px when `virtual` is enabled. */
|
|
43
52
|
itemSize?: number
|
|
44
|
-
/** Extra rows rendered outside the viewport when `virtual` is enabled. */
|
|
45
53
|
overScan?: number
|
|
46
54
|
}
|
|
47
55
|
|