pxd 0.1.6 → 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.d.vue.ts +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.d.vue.ts +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 +11 -3
- package/dist/components/bubble-group/index.vue +31 -19
- package/dist/components/bubble-group/types.d.ts +1 -0
- 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/index.vue +1 -1
- 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/index.vue +1 -1
- package/dist/components/choicebox-item/types.d.ts +2 -2
- package/dist/components/code-block/index.vue +12 -12
- package/dist/components/code-block/types.d.ts +2 -2
- package/dist/components/collapse/index.vue +6 -6
- 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/date-picker/index.d.vue.ts +11 -1
- package/dist/components/date-picker/index.vue +4 -2
- 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/index.d.vue.ts +1 -1
- package/dist/components/link-button/types.d.ts +1 -1
- package/dist/components/list/index.d.vue.ts +2 -1
- 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.d.vue.ts +1 -1
- package/dist/components/marching-ants/index.vue +2 -2
- package/dist/components/marquee/index.d.vue.ts +3 -3
- package/dist/components/marquee/types.d.ts +2 -2
- package/dist/components/mention/index.d.vue.ts +27 -7
- package/dist/components/mention/index.vue +96 -11
- package/dist/components/mention/types.d.ts +37 -5
- package/dist/components/menu/index.d.vue.ts +3 -1
- package/dist/components/menu/index.vue +4 -0
- package/dist/components/message/index.d.vue.ts +4 -4
- 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.d.vue.ts +1 -1
- 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 +110 -46
- package/dist/components/questionnaire/types.d.ts +5 -1
- package/dist/components/radio/index.vue +1 -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.d.vue.ts +1 -1
- 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.d.vue.ts +8 -4
- package/dist/components/select/index.vue +29 -12
- package/dist/components/select/types.d.ts +9 -1
- package/dist/components/shimmer-text/index.d.vue.ts +2 -2
- 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 +10 -6
- package/dist/components/split-button/index.vue +25 -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.d.vue.ts +11 -1
- package/dist/components/time-picker/index.vue +8 -6
- package/dist/components/toc/index.d.vue.ts +4 -1
- package/dist/components/toc/index.vue +72 -10
- package/dist/components/toc/types.d.ts +11 -1
- 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/tooltip/index.d.vue.ts +1 -1
- package/dist/components/tour/index.d.vue.ts +3 -3
- package/dist/components/tour/index.vue +1 -1
- package/dist/components/tour/types.d.ts +4 -4
- package/dist/components/tree/index.d.vue.ts +1 -1
- package/dist/components/tree/index.vue +5 -4
- package/dist/components/tree/types.d.ts +4 -5
- package/dist/components/virtual-list/index.d.vue.ts +1 -0
- package/dist/components/virtual-list/index.vue +2 -1
- 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/composables/use-virtual-list.d.ts +20 -0
- package/dist/composables/use-virtual-list.js +30 -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
|
@@ -52,7 +52,7 @@ const viewItems = computed(() => items.value.map((item, index) => {
|
|
|
52
52
|
}));
|
|
53
53
|
const configProvider = useConfigProvider();
|
|
54
54
|
const { classes, attrs } = useTailwindVariant({
|
|
55
|
-
base: "pxd-context-usage--track flex w-full overflow-hidden rounded-full
|
|
55
|
+
base: "pxd-context-usage--track flex w-full overflow-hidden rounded-full",
|
|
56
56
|
variants: { size: {
|
|
57
57
|
sm: "h-1.5",
|
|
58
58
|
md: "h-2",
|
|
@@ -93,16 +93,16 @@ function onItemLeave() {
|
|
|
93
93
|
@pointerleave="onItemLeave()"
|
|
94
94
|
/>
|
|
95
95
|
<div
|
|
96
|
-
class="pxd-context-usage--free basis-0 pointer-events-none"
|
|
96
|
+
class="pxd-context-usage--free basis-0 pointer-events-none bg-gray-alpha-200"
|
|
97
97
|
:style="{ flexGrow: freeTokens }"
|
|
98
98
|
/>
|
|
99
99
|
</div>
|
|
100
100
|
|
|
101
|
-
<ul v-if="legend" class="pxd-context-usage--legend
|
|
101
|
+
<ul v-if="legend" class="pxd-context-usage--legend flex flex-col">
|
|
102
102
|
<li
|
|
103
103
|
v-for="(item, index) in viewItems"
|
|
104
104
|
:key="index"
|
|
105
|
-
class="min-w-0 gap-2 text-sm m-0! flex cursor-default items-center motion-safe:transition-opacity"
|
|
105
|
+
class="min-w-0 gap-2 sibling:pt-1 text-sm m-0! flex cursor-default items-center motion-safe:transition-opacity"
|
|
106
106
|
:style="{ opacity: item.opacity }"
|
|
107
107
|
@pointerenter="onItemEnter(index)"
|
|
108
108
|
@pointerleave="onItemLeave()"
|
|
@@ -112,8 +112,15 @@ function onItemLeave() {
|
|
|
112
112
|
class="pxd-context-usage--dot size-2 shrink-0 rounded-full bg-(--context-usage-color)"
|
|
113
113
|
:style="{ '--context-usage-color': item.color }"
|
|
114
114
|
/>
|
|
115
|
-
|
|
116
|
-
<span class="text-
|
|
115
|
+
|
|
116
|
+
<span class="min-w-0 flex-1 shrink-0 truncate text-foreground-secondary">{{
|
|
117
|
+
item.name
|
|
118
|
+
}}</span>
|
|
119
|
+
<span class="text-xs text-foreground-secondary tabular-nums">{{ item.tokens }}</span>
|
|
120
|
+
<span
|
|
121
|
+
class="text-xs min-w-10 inline-flex justify-end text-foreground-secondary tabular-nums"
|
|
122
|
+
>{{ item.percentage.toFixed(1) }}%</span
|
|
123
|
+
>
|
|
117
124
|
</li>
|
|
118
125
|
</ul>
|
|
119
126
|
</div>
|
|
@@ -6,8 +6,10 @@ type __VLS_Slots = {} & {
|
|
|
6
6
|
default?: (props: typeof __VLS_9) => any;
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_base: import("vue").DefineComponent<CopyButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
error: (args_0: unknown, args_1: PointerEvent) => any;
|
|
9
10
|
copy: (args_0: string, args_1: PointerEvent) => any;
|
|
10
11
|
}, string, import("vue").PublicProps, Readonly<CopyButtonProps> & Readonly<{
|
|
12
|
+
onError?: ((args_0: unknown, args_1: PointerEvent) => any) | undefined;
|
|
11
13
|
onCopy?: ((args_0: string, args_1: PointerEvent) => any) | undefined;
|
|
12
14
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
15
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -17,12 +17,16 @@ const props = defineProps({ text: {
|
|
|
17
17
|
required: false,
|
|
18
18
|
skipCheck: true
|
|
19
19
|
} });
|
|
20
|
-
const emits = defineEmits(["copy"]);
|
|
20
|
+
const emits = defineEmits(["copy", "error"]);
|
|
21
21
|
const { isCopied, copyText } = useCopyClick();
|
|
22
22
|
async function onCopyClick(ev) {
|
|
23
23
|
const text = `${(typeof props.text === "function" ? props.text(ev) : props.text) ?? ""}`;
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
try {
|
|
25
|
+
await copyText(text);
|
|
26
|
+
emits("copy", text, ev);
|
|
27
|
+
} catch (error) {
|
|
28
|
+
emits("error", error, ev);
|
|
29
|
+
}
|
|
26
30
|
}
|
|
27
31
|
</script>
|
|
28
32
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentText } from '../../types/shared/props'
|
|
2
2
|
|
|
3
3
|
export interface CopyButtonProps {
|
|
4
|
-
text?:
|
|
4
|
+
text?: ComponentText | ((ev: PointerEvent) => ComponentText)
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
export interface CopyButtonEmits {
|
|
8
8
|
copy: [string, PointerEvent]
|
|
9
|
+
error: [unknown, PointerEvent]
|
|
9
10
|
}
|
|
@@ -30,11 +30,11 @@ declare const __VLS_base: import("vue").DefineComponent<CountdownProps, {
|
|
|
30
30
|
onReset?: (() => any) | undefined;
|
|
31
31
|
onFinish?: (() => any) | undefined;
|
|
32
32
|
}>, {
|
|
33
|
+
duration: number;
|
|
33
34
|
format: string;
|
|
34
35
|
millisecond: boolean;
|
|
35
36
|
active: boolean;
|
|
36
37
|
endTime: number;
|
|
37
|
-
durations: number;
|
|
38
38
|
autoReset: boolean;
|
|
39
39
|
precision: number;
|
|
40
40
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { ComponentDateTimeValue } from '../../types/shared/props';
|
|
2
2
|
import type { DatePickerProps } from './types';
|
|
3
|
-
declare
|
|
3
|
+
declare var __VLS_20: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
suffix?: (props: typeof __VLS_20) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<DatePickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
8
|
change: (args_0: ComponentDateTimeValue) => any;
|
|
5
9
|
"update:model-value": (args_0: ComponentDateTimeValue) => any;
|
|
6
10
|
}, string, import("vue").PublicProps, Readonly<DatePickerProps> & Readonly<{
|
|
@@ -12,5 +16,11 @@ declare const __VLS_export: import("vue").DefineComponent<DatePickerProps, {}, {
|
|
|
12
16
|
suffixIcon: boolean;
|
|
13
17
|
labelFormat: string;
|
|
14
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
20
|
declare const _default: typeof __VLS_export;
|
|
16
21
|
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -276,8 +276,10 @@ watch(() => props.modelValue, updateDayjsDateTime, { immediate: true });
|
|
|
276
276
|
@clear="onInputValueChange"
|
|
277
277
|
@change="onInputValueChange"
|
|
278
278
|
>
|
|
279
|
-
<template
|
|
280
|
-
<
|
|
279
|
+
<template #suffix>
|
|
280
|
+
<slot name="suffix">
|
|
281
|
+
<CalendarIcon v-if="suffixIcon" class="me-3" />
|
|
282
|
+
</slot>
|
|
281
283
|
</template>
|
|
282
284
|
</PInput>
|
|
283
285
|
|
|
@@ -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;
|