pxd 0.1.4 → 0.1.7
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/dismiss-container.d.vue.ts +2 -2
- package/dist/components/_internal/dismiss-container.vue +1 -1
- package/dist/components/_internal/mention-editor.d.vue.ts +3 -4
- package/dist/components/_internal/mention-editor.vue +7 -5
- package/dist/components/_internal/tree-node.d.vue.ts +10 -1
- package/dist/components/_internal/tree-node.vue +32 -12
- package/dist/components/active-graph/index.d.vue.ts +1 -1
- package/dist/components/active-graph/index.vue +4 -18
- package/dist/components/active-graph/types.d.ts +1 -1
- package/dist/components/approval-card/index.d.vue.ts +2 -2
- package/dist/components/approval-card/index.vue +8 -4
- package/dist/components/approval-card/types.d.ts +1 -1
- package/dist/components/avatar/index.d.vue.ts +2 -2
- package/dist/components/avatar/index.vue +1 -1
- package/dist/components/backtop/index.d.vue.ts +1 -1
- package/dist/components/badge/index.vue +4 -2
- package/dist/components/badge/types.d.ts +7 -2
- package/dist/components/browser/index.vue +1 -1
- package/dist/components/bubble/index.d.vue.ts +1 -1
- package/dist/components/bubble/index.vue +35 -14
- package/dist/components/bubble/types.d.ts +2 -1
- package/dist/components/bubble-group/index.d.vue.ts +10 -3
- package/dist/components/bubble-group/index.vue +41 -8
- package/dist/components/bubble-group/types.d.ts +5 -4
- package/dist/components/button/index.d.vue.ts +1 -1
- package/dist/components/button/index.vue +4 -4
- package/dist/components/calendar/index.d.vue.ts +2 -2
- package/dist/components/calendar/index.vue +3 -3
- package/dist/components/calendar/types.d.ts +1 -1
- package/dist/components/checkbox/index.d.vue.ts +2 -2
- package/dist/components/checkbox/index.vue +3 -3
- package/dist/components/checkbox/types.d.ts +1 -1
- package/dist/components/checkbox-group/index.d.vue.ts +2 -2
- package/dist/components/checkbox-group/index.vue +2 -2
- package/dist/components/checkbox-group/types.d.ts +1 -1
- package/dist/components/checkerboard/index.d.vue.ts +3 -1
- package/dist/components/checkerboard/index.vue +13 -2
- package/dist/components/checkerboard/types.d.ts +1 -0
- package/dist/components/choicebox/index.d.vue.ts +2 -2
- package/dist/components/choicebox/index.vue +2 -2
- package/dist/components/choicebox/types.d.ts +1 -1
- package/dist/components/choicebox-item/index.vue +1 -1
- package/dist/components/code-block/index.d.vue.ts +7 -3
- package/dist/components/code-block/index.vue +268 -72
- package/dist/components/code-block/types.d.ts +33 -14
- package/dist/components/collapse/index.d.vue.ts +3 -1
- package/dist/components/collapse/index.vue +37 -41
- package/dist/components/collapse/types.d.ts +3 -1
- package/dist/components/collapse-group/index.vue +3 -3
- package/dist/components/color-selector/index.d.vue.ts +2 -2
- package/dist/components/color-selector/index.vue +2 -2
- package/dist/components/color-selector/types.d.ts +1 -1
- package/dist/components/command-menu/index.d.vue.ts +3 -3
- package/dist/components/command-menu/index.vue +2 -2
- package/dist/components/command-menu/types.d.ts +1 -1
- package/dist/components/confirm-popover/index.d.vue.ts +2 -2
- package/dist/components/confirm-popover/index.vue +10 -15
- package/dist/components/confirm-popover/types.d.ts +6 -7
- package/dist/components/context-usage/index.d.vue.ts +6 -0
- package/dist/components/context-usage/index.vue +120 -0
- package/dist/components/context-usage/types.d.ts +13 -0
- package/dist/components/copy-button/index.vue +17 -9
- package/dist/components/copy-button/types.d.ts +3 -1
- package/dist/components/countdown/index.vue +1 -1
- package/dist/components/date-picker/index.d.vue.ts +13 -3
- package/dist/components/date-picker/index.vue +6 -4
- package/dist/components/date-picker/types.d.ts +1 -1
- package/dist/components/description/index.vue +1 -1
- package/dist/components/description/types.d.ts +3 -1
- package/dist/components/drawer/index.d.vue.ts +5 -5
- package/dist/components/drawer/index.vue +13 -13
- package/dist/components/drawer/types.d.ts +2 -2
- package/dist/components/effort-slider/index.d.vue.ts +2 -2
- package/dist/components/effort-slider/index.vue +63 -17
- package/dist/components/effort-slider/types.d.ts +3 -1
- package/dist/components/ellipsis-text/index.d.vue.ts +3 -3
- package/dist/components/ellipsis-text/index.vue +5 -5
- package/dist/components/ellipsis-text/types.d.ts +4 -2
- package/dist/components/empty-state/index.vue +1 -1
- package/dist/components/empty-state/types.d.ts +3 -1
- package/dist/components/feedback-bar/index.d.vue.ts +4 -4
- package/dist/components/feedback-bar/index.vue +4 -4
- package/dist/components/feedback-bar/types.d.ts +2 -2
- package/dist/components/gauge/index.vue +75 -79
- package/dist/components/gauge/types.d.ts +2 -0
- package/dist/components/hint/index.vue +2 -3
- package/dist/components/hold-button/index.d.vue.ts +4 -4
- package/dist/components/hold-button/index.vue +86 -75
- package/dist/components/hue-text/index.vue +2 -2
- package/dist/components/hue-text/types.d.ts +3 -1
- package/dist/components/image-preview/index.d.vue.ts +2 -0
- package/dist/components/image-preview/index.vue +156 -131
- package/dist/components/image-preview/types.d.ts +18 -18
- package/dist/components/index.d.ts +132 -0
- package/dist/components/index.js +3 -0
- package/dist/components/input/index.d.vue.ts +2 -2
- package/dist/components/input/index.vue +2 -2
- package/dist/components/input/types.d.ts +1 -1
- package/dist/components/kbd/index.vue +1 -1
- package/dist/components/link-button/index.d.vue.ts +1 -1
- package/dist/components/link-button/index.vue +1 -1
- package/dist/components/link-button/types.d.ts +1 -1
- package/dist/components/list/index.d.vue.ts +3 -3
- package/dist/components/list/index.vue +4 -4
- package/dist/components/list/types.d.ts +1 -1
- package/dist/components/list-group/index.vue +1 -1
- package/dist/components/{_internal/loading-mask.d.vue.ts → loading-mask/index.d.vue.ts} +2 -4
- package/dist/components/{_internal/loading-mask.vue → loading-mask/index.vue} +1 -1
- package/dist/components/loading-mask/types.d.ts +3 -0
- package/dist/components/marching-ants/index.d.vue.ts +1 -1
- package/dist/components/marquee/index.d.vue.ts +3 -3
- package/dist/components/marquee/index.vue +1 -1
- package/dist/components/marquee/types.d.ts +2 -2
- package/dist/components/mention/index.d.vue.ts +6 -4
- package/dist/components/mention/index.vue +6 -2
- package/dist/components/mention/types.d.ts +1 -1
- package/dist/components/menu/index.d.vue.ts +5 -3
- package/dist/components/menu/index.vue +6 -2
- package/dist/components/menu/types.d.ts +1 -1
- package/dist/components/message/index.d.vue.ts +1 -1
- package/dist/components/modal/index.d.vue.ts +4 -4
- package/dist/components/modal/index.vue +13 -13
- package/dist/components/modal/types.d.ts +2 -2
- package/dist/components/more-button/index.d.vue.ts +4 -4
- package/dist/components/more-button/index.vue +4 -4
- package/dist/components/more-button/types.d.ts +3 -3
- package/dist/components/note/index.vue +1 -1
- package/dist/components/note/types.d.ts +1 -1
- package/dist/components/number-input/index.d.vue.ts +2 -2
- package/dist/components/number-input/index.vue +2 -2
- package/dist/components/number-input/types.d.ts +1 -1
- package/dist/components/overlay/index.d.vue.ts +2 -2
- package/dist/components/overlay/index.vue +4 -4
- package/dist/components/overlay/types.d.ts +1 -1
- package/dist/components/page-number/index.d.vue.ts +3 -3
- package/dist/components/page-number/index.vue +3 -3
- package/dist/components/page-number/types.d.ts +1 -1
- package/dist/components/pagination/index.vue +2 -2
- package/dist/components/pin-input/index.d.vue.ts +4 -4
- package/dist/components/pin-input/index.vue +3 -3
- package/dist/components/pin-input/types.d.ts +1 -1
- package/dist/components/placeholder/index.vue +3 -3
- package/dist/components/placeholder/types.d.ts +1 -1
- package/dist/components/popover/index.vue +73 -36
- package/dist/components/popover/types.d.ts +1 -2
- package/dist/components/questionnaire/index.d.vue.ts +1 -0
- package/dist/components/questionnaire/index.vue +92 -87
- package/dist/components/questionnaire/types.d.ts +1 -3
- package/dist/components/radio/index.d.vue.ts +2 -2
- package/dist/components/radio/index.vue +3 -3
- package/dist/components/radio/types.d.ts +1 -1
- package/dist/components/radio-group/index.d.vue.ts +2 -2
- package/dist/components/radio-group/index.vue +2 -2
- package/dist/components/radio-group/types.d.ts +1 -1
- package/dist/components/rating/index.d.vue.ts +3 -3
- package/dist/components/rating/index.vue +2 -2
- package/dist/components/rating/types.d.ts +1 -1
- package/dist/components/reactions/index.d.vue.ts +34 -0
- package/dist/components/reactions/index.vue +143 -0
- package/dist/components/reactions/types.d.ts +23 -0
- package/dist/components/reasoning/index.d.vue.ts +2 -0
- package/dist/components/reasoning/index.vue +49 -30
- package/dist/components/reasoning/types.d.ts +9 -0
- package/dist/components/resizable/index.d.vue.ts +2 -2
- package/dist/components/resizable/index.vue +3 -3
- package/dist/components/resizable/types.d.ts +1 -1
- package/dist/components/reveal/index.d.vue.ts +1 -1
- package/dist/components/rolling-number/index.vue +1 -1
- package/dist/components/scroll-text/index.d.vue.ts +1 -1
- package/dist/components/scroll-text/index.vue +2 -2
- package/dist/components/scroll-text/types.d.ts +2 -2
- package/dist/components/scrollable/index.d.vue.ts +3 -2
- package/dist/components/scrollable/types.d.ts +0 -15
- package/dist/components/search-input/index.d.vue.ts +5 -5
- package/dist/components/search-input/index.vue +1 -1
- package/dist/components/select/index.d.vue.ts +10 -6
- package/dist/components/select/index.vue +15 -8
- package/dist/components/select/types.d.ts +1 -1
- package/dist/components/shimmer-text/index.d.vue.ts +1 -1
- package/dist/components/shimmer-text/index.vue +1 -1
- package/dist/components/shimmer-text/types.d.ts +1 -1
- package/dist/components/skeleton/index.d.vue.ts +1 -1
- package/dist/components/slider/index.d.vue.ts +2 -3
- package/dist/components/slider/index.vue +17 -6
- package/dist/components/slider/types.d.ts +2 -1
- package/dist/components/snippet/index.vue +1 -5
- package/dist/components/snippet/types.d.ts +6 -2
- package/dist/components/spinner-dots/types.d.ts +1 -1
- package/dist/components/split-button/index.d.vue.ts +5 -3
- package/dist/components/split-button/index.vue +6 -2
- package/dist/components/split-button/types.d.ts +1 -1
- package/dist/components/steps/index.d.vue.ts +2 -2
- package/dist/components/steps/index.vue +2 -2
- package/dist/components/steps/types.d.ts +1 -1
- package/dist/components/stick-to-bottom/index.vue +3 -6
- package/dist/components/swipe-cell/index.d.vue.ts +2 -2
- package/dist/components/swipe-cell/index.vue +3 -3
- package/dist/components/swipe-cell/types.d.ts +1 -1
- package/dist/components/switch/index.d.vue.ts +2 -2
- package/dist/components/switch/index.vue +2 -2
- package/dist/components/switch/types.d.ts +1 -1
- package/dist/components/switch-item/index.vue +2 -2
- package/dist/components/tabs/index.d.vue.ts +2 -2
- package/dist/components/tabs/index.vue +3 -3
- package/dist/components/tabs/types.d.ts +1 -1
- 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 +2 -2
- package/dist/components/textarea/index.vue +2 -2
- package/dist/components/textarea/types.d.ts +1 -1
- package/dist/components/theme-switcher/index.d.vue.ts +2 -3
- package/dist/components/theme-switcher/index.vue +7 -7
- package/dist/components/time-picker/index.d.vue.ts +13 -3
- package/dist/components/time-picker/index.vue +10 -8
- package/dist/components/time-picker/types.d.ts +1 -1
- package/dist/components/timeline-item/index.d.vue.ts +0 -1
- package/dist/components/timeline-item/index.vue +20 -4
- package/dist/components/timeline-item/types.d.ts +2 -2
- package/dist/components/toc/index.d.vue.ts +4 -1
- package/dist/components/toc/index.vue +65 -8
- package/dist/components/toc/types.d.ts +10 -1
- package/dist/components/todo-list/index.d.vue.ts +4 -13
- package/dist/components/todo-list/index.vue +122 -133
- package/dist/components/todo-list/types.d.ts +5 -4
- package/dist/components/toggle/index.d.vue.ts +4 -4
- package/dist/components/toggle/index.vue +4 -4
- package/dist/components/toggle/types.d.ts +6 -6
- package/dist/components/toggle-button/index.d.vue.ts +2 -2
- package/dist/components/toggle-button/index.vue +2 -2
- package/dist/components/toggle-button/types.d.ts +1 -1
- package/dist/components/toggle-button-group/index.d.vue.ts +2 -2
- package/dist/components/toggle-button-group/index.vue +2 -2
- package/dist/components/toggle-button-group/types.d.ts +1 -1
- package/dist/components/tool-call/index.d.vue.ts +2 -0
- package/dist/components/tool-call/index.vue +139 -133
- package/dist/components/tool-call/types.d.ts +6 -1
- package/dist/components/tooltip/index.d.vue.ts +1 -1
- package/dist/components/tooltip/index.vue +1 -0
- package/dist/components/tour/index.d.vue.ts +4 -4
- package/dist/components/tour/index.vue +4 -4
- package/dist/components/tour/types.d.ts +5 -5
- package/dist/components/tree/index.d.vue.ts +27 -18
- package/dist/components/tree/index.vue +95 -27
- package/dist/components/tree/types.d.ts +18 -17
- package/dist/components/virtual-list/index.d.vue.ts +5 -4
- package/dist/components/virtual-list/index.vue +5 -4
- package/dist/components/virtual-list/types.d.ts +10 -8
- package/dist/composables/_internal/use-code-highlight.js +3 -1
- package/dist/composables/_internal/use-details-collapse.d.ts +7 -0
- package/dist/composables/_internal/use-details-collapse.js +68 -0
- package/dist/composables/_internal/use-list-selection.d.ts +1 -1
- package/dist/composables/_internal/use-list-selection.js +2 -2
- package/dist/composables/_internal/use-model-value.d.ts +1 -1
- package/dist/composables/_internal/use-model-value.js +1 -1
- package/dist/composables/_internal/use-tailwind-variant.js +1 -1
- package/dist/composables/_internal/use-tree.d.ts +32 -6
- package/dist/composables/_internal/use-tree.js +89 -54
- package/dist/composables/use-color-scheme.d.ts +1 -1
- package/dist/composables/use-color-scheme.js +7 -3
- package/dist/composables/use-countdown.d.ts +1 -1
- package/dist/composables/use-countdown.js +9 -9
- package/dist/composables/use-loading-bar.js +4 -0
- package/dist/composables/use-stick-to-bottom.d.ts +5 -0
- package/dist/composables/use-stick-to-bottom.js +45 -31
- package/dist/composables/use-virtual-list.d.ts +21 -1
- package/dist/composables/use-virtual-list.js +30 -9
- package/dist/constants/tooltip-variants.d.ts +2 -2
- package/dist/constants/tooltip-variants.js +3 -3
- package/dist/contexts/collapse.d.ts +1 -1
- package/dist/styles/styles.css +1 -1
- package/dist/styles/tw.css +12 -7
- package/package.json +10 -11
- package/volar.d.ts +3 -0
- package/dist/components/bubble-group/types.js +0 -0
- package/dist/components/virtual-list/types.js +0 -0
- package/dist/composables/_internal/use-collapse-motion.d.ts +0 -6
- package/dist/composables/_internal/use-collapse-motion.js +0 -85
- package/dist/utils/_internal/cn-tables.d.ts +0 -27
- package/dist/utils/_internal/cn-tables.js +0 -131
- package/dist/utils/cn.d.ts +0 -1
- package/dist/utils/cn.js +0 -3
|
@@ -10,13 +10,9 @@ defineOptions({
|
|
|
10
10
|
inheritAttrs: false,
|
|
11
11
|
model: {
|
|
12
12
|
prop: "modelValue",
|
|
13
|
-
event: "update:
|
|
13
|
+
event: "update:model-value"
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
const PRIMARY_COLOR = "var(--color-primary)";
|
|
17
|
-
function clamp(value, lower, upper) {
|
|
18
|
-
return Math.min(Math.max(value, lower), upper);
|
|
19
|
-
}
|
|
20
16
|
const props = defineProps({
|
|
21
17
|
options: {
|
|
22
18
|
type: Array,
|
|
@@ -30,6 +26,10 @@ const props = defineProps({
|
|
|
30
26
|
type: Boolean,
|
|
31
27
|
required: false
|
|
32
28
|
},
|
|
29
|
+
particles: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
required: false
|
|
32
|
+
},
|
|
33
33
|
size: {
|
|
34
34
|
type: String,
|
|
35
35
|
required: false
|
|
@@ -41,9 +41,17 @@ const props = defineProps({
|
|
|
41
41
|
null
|
|
42
42
|
],
|
|
43
43
|
required: false
|
|
44
|
+
},
|
|
45
|
+
defaultValue: {
|
|
46
|
+
type: [
|
|
47
|
+
String,
|
|
48
|
+
Number,
|
|
49
|
+
null
|
|
50
|
+
],
|
|
51
|
+
required: false
|
|
44
52
|
}
|
|
45
53
|
});
|
|
46
|
-
const emits = defineEmits(["change", "update:
|
|
54
|
+
const emits = defineEmits(["change", "update:model-value"]);
|
|
47
55
|
const configProvider = useConfigProvider();
|
|
48
56
|
const modelValue = useModelValue(props, emits, { withChange: false });
|
|
49
57
|
const { attrs, classes } = useTailwindVariant({
|
|
@@ -77,6 +85,8 @@ let lastClientX = null;
|
|
|
77
85
|
let dragStartValue = null;
|
|
78
86
|
let lastUpdatedValue = null;
|
|
79
87
|
let stopMoveListener = null;
|
|
88
|
+
const PARTICLE_COUNT = 10;
|
|
89
|
+
const PARTICLE_DURATION = 2;
|
|
80
90
|
const trackRef = shallowRef();
|
|
81
91
|
const thumbRef = shallowRef();
|
|
82
92
|
const labelRef = shallowRef();
|
|
@@ -84,6 +94,8 @@ const dragging = shallowRef(false);
|
|
|
84
94
|
const focused = shallowRef(false);
|
|
85
95
|
const dragPosition = shallowRef(null);
|
|
86
96
|
const labelShift = shallowRef(0);
|
|
97
|
+
const innerValue = shallowRef(props.defaultValue);
|
|
98
|
+
const activeValue = computed(() => props.modelValue ?? innerValue.value);
|
|
87
99
|
const optionList = computed(() => props.options.map((option, index) => typeof option === "string" ? {
|
|
88
100
|
label: option,
|
|
89
101
|
value: option
|
|
@@ -93,7 +105,7 @@ const optionList = computed(() => props.options.map((option, index) => typeof op
|
|
|
93
105
|
}));
|
|
94
106
|
const levelCount = computed(() => optionList.value.length);
|
|
95
107
|
const currentIndex = computed(() => {
|
|
96
|
-
const index = optionList.value.findIndex((option) => option.value ===
|
|
108
|
+
const index = optionList.value.findIndex((option) => option.value === activeValue.value);
|
|
97
109
|
return index === -1 ? 0 : index;
|
|
98
110
|
});
|
|
99
111
|
const currentOptionLabel = computed(() => optionList.value[currentIndex.value]?.label);
|
|
@@ -107,8 +119,13 @@ const percentage = computed(() => {
|
|
|
107
119
|
return count > 1 ? currentIndex.value / (count - 1) * 100 : 100;
|
|
108
120
|
});
|
|
109
121
|
const labelVisible = computed(() => dragging.value || focused.value);
|
|
110
|
-
|
|
111
|
-
|
|
122
|
+
function clamp(value, lower, upper) {
|
|
123
|
+
return Math.min(Math.max(value, lower), upper);
|
|
124
|
+
}
|
|
125
|
+
function particleSeed(index, salt) {
|
|
126
|
+
const value = Math.sin(index * 127.1 + salt * 311.7) * 43758.5453;
|
|
127
|
+
return value - Math.floor(value);
|
|
128
|
+
}
|
|
112
129
|
function updateLabelShift() {
|
|
113
130
|
const label = labelRef.value;
|
|
114
131
|
const thumb = thumbRef.value;
|
|
@@ -141,19 +158,39 @@ const tickList = computed(() => {
|
|
|
141
158
|
});
|
|
142
159
|
});
|
|
143
160
|
const fillColor = computed(() => getColorByThreshold(currentIndex.value, {
|
|
144
|
-
0:
|
|
161
|
+
0: "var(--color-primary)",
|
|
145
162
|
...props.colors
|
|
146
163
|
}));
|
|
147
164
|
const fillStyle = computed(() => ({
|
|
148
|
-
|
|
165
|
+
background: fillColor.value,
|
|
149
166
|
clipPath: `inset(0 ${100 - percentage.value}% 0 0)`
|
|
150
167
|
}));
|
|
168
|
+
const particleList = computed(() => {
|
|
169
|
+
if (!props.particles) {
|
|
170
|
+
return [];
|
|
171
|
+
}
|
|
172
|
+
return Array.from({ length: PARTICLE_COUNT }, (_, index) => {
|
|
173
|
+
const duration = PARTICLE_DURATION + particleSeed(index, 5) * 2;
|
|
174
|
+
const position = (index + .5 + (particleSeed(index, 1) - .5) * .9) / PARTICLE_COUNT;
|
|
175
|
+
return {
|
|
176
|
+
id: index,
|
|
177
|
+
style: {
|
|
178
|
+
"--p-duration": `${duration.toFixed(2)}s`,
|
|
179
|
+
"--p-delay": `${(-(position * duration)).toFixed(2)}s`,
|
|
180
|
+
"--p-size": `${(1.5 + particleSeed(index, 2) * 3).toFixed(2)}px`,
|
|
181
|
+
"--p-y": `${(particleSeed(index, 3) * 50 - 25).toFixed(1)}%`,
|
|
182
|
+
"--p-opacity": (.35 + particleSeed(index, 4) * .55).toFixed(2)
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
});
|
|
186
|
+
});
|
|
151
187
|
function setValue(index) {
|
|
152
188
|
const option = optionList.value[index];
|
|
153
189
|
if (!option) {
|
|
154
190
|
return null;
|
|
155
191
|
}
|
|
156
|
-
if (option.value !==
|
|
192
|
+
if (option.value !== activeValue.value) {
|
|
193
|
+
innerValue.value = option.value;
|
|
157
194
|
modelValue.value = option.value;
|
|
158
195
|
}
|
|
159
196
|
return option.value;
|
|
@@ -194,7 +231,7 @@ function onTrackPointerdown(ev) {
|
|
|
194
231
|
return;
|
|
195
232
|
}
|
|
196
233
|
trackRect = trackRef.value?.getBoundingClientRect() ?? null;
|
|
197
|
-
dragStartValue =
|
|
234
|
+
dragStartValue = activeValue.value ?? null;
|
|
198
235
|
lastUpdatedValue = null;
|
|
199
236
|
lastClientX = ev.clientX;
|
|
200
237
|
dragging.value = true;
|
|
@@ -267,8 +304,9 @@ function initModelValue() {
|
|
|
267
304
|
if (!option) {
|
|
268
305
|
return;
|
|
269
306
|
}
|
|
270
|
-
const isValid = optionList.value.some((item) => item.value ===
|
|
307
|
+
const isValid = optionList.value.some((item) => item.value === activeValue.value);
|
|
271
308
|
if (!isValid) {
|
|
309
|
+
innerValue.value = option.value;
|
|
272
310
|
modelValue.value = option.value;
|
|
273
311
|
}
|
|
274
312
|
}
|
|
@@ -295,10 +333,18 @@ onBeforeUnmount(() => {
|
|
|
295
333
|
@pointerdown.prevent="onTrackPointerdown"
|
|
296
334
|
>
|
|
297
335
|
<div
|
|
298
|
-
class="pxd-effort-slider--fill inset-0 pointer-events-none absolute rounded-full motion-safe:transition-[clip-path,background-color]"
|
|
336
|
+
class="pxd-effort-slider--fill inset-0 pointer-events-none absolute overflow-hidden rounded-full motion-safe:transition-[clip-path,background-color]"
|
|
299
337
|
:class="{ 'motion-safe:transition-colors': dragging || focused }"
|
|
300
338
|
:style="fillStyle"
|
|
301
|
-
|
|
339
|
+
>
|
|
340
|
+
<span
|
|
341
|
+
v-for="particle in particleList"
|
|
342
|
+
:key="particle.id"
|
|
343
|
+
aria-hidden="true"
|
|
344
|
+
class="pxd-effort-slider--particle inset-y-0 left-0 absolute w-full motion-reduce:animate-none!"
|
|
345
|
+
:style="particle.style"
|
|
346
|
+
/>
|
|
347
|
+
</div>
|
|
302
348
|
|
|
303
349
|
<span
|
|
304
350
|
v-for="tick in tickList"
|
|
@@ -337,5 +383,5 @@ onBeforeUnmount(() => {
|
|
|
337
383
|
</template>
|
|
338
384
|
|
|
339
385
|
<style>
|
|
340
|
-
.pxd-effort-slider--thumb:active,.pxd-effort-slider--thumb[data-dragging=true]{--slider-thumb-scale:1.3;z-index:1}.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:200%;width:200%}.dark .pxd-effort-slider--thumb:before{box-shadow:0 0 0 1px var(--color-background-200)}
|
|
386
|
+
.pxd-effort-slider--thumb:active,.pxd-effort-slider--thumb[data-dragging=true]{--slider-thumb-scale:1.3;z-index:1}.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:200%;width:200%}.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-gray-500);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%)}}
|
|
341
387
|
</style>
|
|
@@ -4,11 +4,13 @@ export interface EffortSliderProps {
|
|
|
4
4
|
options: Array<ComponentOption | string>
|
|
5
5
|
colors?: Record<string, string>
|
|
6
6
|
disabled?: boolean
|
|
7
|
+
particles?: boolean
|
|
7
8
|
size?: ComponentSize
|
|
8
9
|
modelValue?: string | number | null
|
|
10
|
+
defaultValue?: string | number | null
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
export interface EffortSliderEmits {
|
|
12
14
|
change: [string | number]
|
|
13
|
-
'update:
|
|
15
|
+
'update:model-value': [string | number]
|
|
14
16
|
}
|
|
@@ -7,11 +7,11 @@ declare const __VLS_export: import("vue").DefineComponent<EllipsisTextProps, {
|
|
|
7
7
|
}, string, import("vue").PublicProps, Readonly<EllipsisTextProps> & Readonly<{
|
|
8
8
|
onToggle?: ((expanded: boolean) => any) | undefined;
|
|
9
9
|
}>, {
|
|
10
|
-
position: "start" | "end" | "middle";
|
|
11
10
|
dots: string;
|
|
11
|
+
position: "start" | "end" | "middle";
|
|
12
12
|
rows: number;
|
|
13
|
-
moreText: string;
|
|
14
|
-
lessText: string;
|
|
13
|
+
moreText: string | number | null;
|
|
14
|
+
lessText: string | number | null;
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const _default: typeof __VLS_export;
|
|
17
17
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { prepareWithSegments, layoutWithLines } from "@chenglou/pretext";
|
|
3
3
|
import { prepareRichInline, measureRichInlineStats } from "@chenglou/pretext/rich-inline";
|
|
4
|
+
import { cn } from "cn";
|
|
4
5
|
import { shallowRef, computed, nextTick, watch, onBeforeUnmount } from "vue";
|
|
5
6
|
import { useResizeObserver } from "../../composables/use-resize-observer.js";
|
|
6
|
-
import { cn } from "../../utils/cn.js";
|
|
7
7
|
import { getStyle } from "../../utils/dom.js";
|
|
8
8
|
import { scheduleByRaf } from "../../utils/event.js";
|
|
9
9
|
import { isServer } from "../../utils/is.js";
|
|
@@ -36,12 +36,12 @@ const props = defineProps({
|
|
|
36
36
|
default: "end"
|
|
37
37
|
},
|
|
38
38
|
moreText: {
|
|
39
|
-
type:
|
|
39
|
+
type: null,
|
|
40
40
|
required: false,
|
|
41
41
|
default: "Expand"
|
|
42
42
|
},
|
|
43
43
|
lessText: {
|
|
44
|
-
type:
|
|
44
|
+
type: null,
|
|
45
45
|
required: false,
|
|
46
46
|
default: "Collapse"
|
|
47
47
|
},
|
|
@@ -113,7 +113,7 @@ const updateEllipsis = scheduleByRaf(async () => {
|
|
|
113
113
|
while (low <= high) {
|
|
114
114
|
const mid = Math.floor((low + high) / 2);
|
|
115
115
|
const candidate = `${joinChars(baseChars, 0, mid)}${dots}`;
|
|
116
|
-
if (measureLineCount(candidate, textFont, availableWidth, actionText, actionFont) <= maxRows.value) {
|
|
116
|
+
if (measureLineCount(candidate, textFont, availableWidth, String(actionText ?? ""), actionFont) <= maxRows.value) {
|
|
117
117
|
best = candidate;
|
|
118
118
|
low = mid + 1;
|
|
119
119
|
} else {
|
|
@@ -130,7 +130,7 @@ const updateEllipsis = scheduleByRaf(async () => {
|
|
|
130
130
|
while (low <= high) {
|
|
131
131
|
const mid = Math.floor((low + high) / 2);
|
|
132
132
|
const candidate = buildCandidate(chars, mid, dots, props.position);
|
|
133
|
-
if (measureLineCount(candidate, textFont, availableWidth, actionText, actionFont) <= maxRows.value) {
|
|
133
|
+
if (measureLineCount(candidate, textFont, availableWidth, String(actionText ?? ""), actionFont) <= maxRows.value) {
|
|
134
134
|
best = candidate;
|
|
135
135
|
low = mid + 1;
|
|
136
136
|
} else {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import type { ComponentLabel } from '../../types/shared/props'
|
|
2
|
+
|
|
1
3
|
export interface EllipsisTextProps {
|
|
2
4
|
text: string
|
|
3
5
|
dots?: string
|
|
4
6
|
rows?: number
|
|
5
7
|
action?: boolean
|
|
6
8
|
position?: 'start' | 'middle' | 'end'
|
|
7
|
-
moreText?:
|
|
8
|
-
lessText?:
|
|
9
|
+
moreText?: ComponentLabel
|
|
10
|
+
lessText?: ComponentLabel
|
|
9
11
|
moreActionClass?: string
|
|
10
12
|
lessActionClass?: string
|
|
11
13
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { FeedbackBarProps } from './types';
|
|
2
2
|
declare const __VLS_export: import("vue").DefineComponent<FeedbackBarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
3
|
close: () => any;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
"thumb-up": () => any;
|
|
5
|
+
"thumb-down": () => any;
|
|
6
6
|
}, string, import("vue").PublicProps, Readonly<FeedbackBarProps> & Readonly<{
|
|
7
7
|
onClose?: (() => any) | undefined;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
"onThumb-up"?: (() => any) | undefined;
|
|
9
|
+
"onThumb-down"?: (() => any) | undefined;
|
|
10
10
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
export default _default;
|
|
@@ -15,18 +15,18 @@ const props = defineProps({ label: {
|
|
|
15
15
|
} });
|
|
16
16
|
const emits = defineEmits([
|
|
17
17
|
"close",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
18
|
+
"thumb-up",
|
|
19
|
+
"thumb-down"
|
|
20
20
|
]);
|
|
21
21
|
const configProvider = useConfigProvider();
|
|
22
22
|
function handleClose() {
|
|
23
23
|
emits("close");
|
|
24
24
|
}
|
|
25
25
|
function handleThumbUp() {
|
|
26
|
-
emits("
|
|
26
|
+
emits("thumb-up");
|
|
27
27
|
}
|
|
28
28
|
function handleThumbDown() {
|
|
29
|
-
emits("
|
|
29
|
+
emits("thumb-down");
|
|
30
30
|
}
|
|
31
31
|
</script>
|
|
32
32
|
|
|
@@ -8,7 +8,7 @@ defineOptions({
|
|
|
8
8
|
inheritAttrs: false,
|
|
9
9
|
model: {
|
|
10
10
|
prop: "modelValue",
|
|
11
|
-
event: "update:
|
|
11
|
+
event: "update:model-value"
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
const props = defineProps({
|
|
@@ -33,20 +33,30 @@ const props = defineProps({
|
|
|
33
33
|
colors: {
|
|
34
34
|
type: Object,
|
|
35
35
|
required: false
|
|
36
|
+
},
|
|
37
|
+
primaryColor: {
|
|
38
|
+
type: String,
|
|
39
|
+
required: false
|
|
40
|
+
},
|
|
41
|
+
secondaryColor: {
|
|
42
|
+
type: String,
|
|
43
|
+
required: false
|
|
36
44
|
}
|
|
37
45
|
});
|
|
38
46
|
const SIZES = {
|
|
39
|
-
xs: "
|
|
47
|
+
xs: "16",
|
|
40
48
|
sm: "32",
|
|
41
49
|
md: "64",
|
|
42
50
|
lg: "128"
|
|
43
51
|
};
|
|
44
52
|
const PROGRESS_BAR_GAP = 5;
|
|
45
|
-
const MIN_VISIBLE_TRACK = PROGRESS_BAR_GAP * 2;
|
|
46
53
|
const RADIUS = 42;
|
|
47
|
-
const STROKE_WIDTH = 10;
|
|
48
54
|
const CIRCUMFERENCE = 2 * Math.PI * RADIUS;
|
|
49
55
|
const GAP_LENGTH = PROGRESS_BAR_GAP / 100 * CIRCUMFERENCE;
|
|
56
|
+
const GAP_OFFSET = GAP_LENGTH / 2;
|
|
57
|
+
// `<circle>` starts at 3 o'clock and dashes don't wrap the seam, so trace the ring from 12 o'clock
|
|
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)";
|
|
50
60
|
const defaultColors = {
|
|
51
61
|
0: "var(--color-red-800)",
|
|
52
62
|
30: "var(--color-amber-800)",
|
|
@@ -58,61 +68,48 @@ const progress = computed(() => {
|
|
|
58
68
|
}
|
|
59
69
|
return Math.min(Math.max(props.modelValue || 0, 0), 100);
|
|
60
70
|
});
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
|
|
71
|
+
const isComplete = computed(() => progress.value >= 100);
|
|
72
|
+
const hasProgress = computed(() => progress.value > 0);
|
|
73
|
+
const strokeWidth = computed(() => props.size === "xs" ? 16 : 10);
|
|
74
|
+
const bar = computed(() => {
|
|
75
|
+
const arc = progress.value / 100 * CIRCUMFERENCE;
|
|
76
|
+
if (arc === 0 || arc === CIRCUMFERENCE) {
|
|
77
|
+
return {
|
|
78
|
+
arc,
|
|
79
|
+
offset: 0
|
|
80
|
+
};
|
|
66
81
|
}
|
|
67
|
-
const baseArc = progress.value / 100 * CIRCUMFERENCE;
|
|
68
|
-
const roundCapTrim = STROKE_WIDTH;
|
|
69
|
-
return Math.max(0, baseArc - roundCapTrim);
|
|
70
|
-
});
|
|
71
|
-
const progressStatus = computed(() => {
|
|
72
|
-
const _progress = progress.value;
|
|
73
82
|
return {
|
|
74
|
-
|
|
75
|
-
|
|
83
|
+
arc: Math.max(strokeWidth.value / 2, arc - strokeWidth.value),
|
|
84
|
+
offset: -GAP_OFFSET
|
|
76
85
|
};
|
|
77
86
|
});
|
|
78
|
-
const
|
|
79
|
-
if (
|
|
80
|
-
return
|
|
81
|
-
}
|
|
82
|
-
if (!progressStatus.value.hasProgress) {
|
|
83
|
-
return true;
|
|
84
|
-
}
|
|
85
|
-
const remainingPercent = 100 - progress.value;
|
|
86
|
-
return remainingPercent >= MIN_VISIBLE_TRACK;
|
|
87
|
-
});
|
|
88
|
-
const trackArc = computed(() => {
|
|
89
|
-
if (!shouldShowTrack.value) {
|
|
90
|
-
return 0;
|
|
91
|
-
}
|
|
92
|
-
if (!progressStatus.value.hasProgress) {
|
|
93
|
-
return CIRCUMFERENCE;
|
|
87
|
+
const track = computed(() => {
|
|
88
|
+
if (isComplete.value || 100 - progress.value < PROGRESS_BAR_GAP * 2) {
|
|
89
|
+
return undefined;
|
|
94
90
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
91
|
+
if (!hasProgress.value) {
|
|
92
|
+
return {
|
|
93
|
+
arc: CIRCUMFERENCE,
|
|
94
|
+
offset: 0
|
|
95
|
+
};
|
|
100
96
|
}
|
|
101
|
-
|
|
97
|
+
const { arc } = bar.value;
|
|
98
|
+
return {
|
|
99
|
+
arc: CIRCUMFERENCE - arc - GAP_LENGTH * 2,
|
|
100
|
+
offset: -arc - GAP_LENGTH - GAP_OFFSET
|
|
101
|
+
};
|
|
102
102
|
});
|
|
103
103
|
const progressColors = computed(() => {
|
|
104
|
-
const colors = props.colors || defaultColors;
|
|
105
|
-
let primaryColor = colors.primary;
|
|
106
|
-
let secondaryColor = colors.secondary || "hsl(var(--color-gray-200-value))";
|
|
107
104
|
if (props.indeterminate) {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
105
|
+
return {
|
|
106
|
+
primary: DEFAULT_TRACK_COLOR,
|
|
107
|
+
secondary: DEFAULT_TRACK_COLOR
|
|
108
|
+
};
|
|
112
109
|
}
|
|
113
110
|
return {
|
|
114
|
-
primary: primaryColor,
|
|
115
|
-
secondary: secondaryColor
|
|
111
|
+
primary: props.primaryColor || getColorByThreshold(progress.value, props.colors || defaultColors),
|
|
112
|
+
secondary: props.secondaryColor || DEFAULT_TRACK_COLOR
|
|
116
113
|
};
|
|
117
114
|
});
|
|
118
115
|
const configProvider = useConfigProvider();
|
|
@@ -122,8 +119,13 @@ const computedSize = computed(() => getFallbackValue(props.size, SIZES, configPr
|
|
|
122
119
|
<template>
|
|
123
120
|
<div
|
|
124
121
|
data-gauge
|
|
122
|
+
role="progressbar"
|
|
125
123
|
class="pxd-gauge relative size-max"
|
|
126
124
|
:style="`--gauge-size: ${computedSize}px`"
|
|
125
|
+
:aria-valuemin="0"
|
|
126
|
+
:aria-valuemax="100"
|
|
127
|
+
:aria-valuenow="indeterminate ? void 0 : progress"
|
|
128
|
+
:aria-valuetext="indeterminate ? void 0 : `${progress}%`"
|
|
127
129
|
v-bind="$attrs"
|
|
128
130
|
>
|
|
129
131
|
<svg
|
|
@@ -132,41 +134,34 @@ const computedSize = computed(() => getFallbackValue(props.size, SIZES, configPr
|
|
|
132
134
|
fill="none"
|
|
133
135
|
viewBox="0 0 100 100"
|
|
134
136
|
>
|
|
135
|
-
<
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
class="pxd-gauge--track motion-safe:transition-[stroke,stroke-dasharray,stroke-dashoffset]"
|
|
147
|
-
:stroke-dasharray="
|
|
148
|
-
progressStatus.hasProgress ? `${trackArc} ${CIRCUMFERENCE}` : void 0
|
|
149
|
-
"
|
|
150
|
-
/>
|
|
137
|
+
<path
|
|
138
|
+
v-if="track"
|
|
139
|
+
:d="RING_PATH"
|
|
140
|
+
fill="none"
|
|
141
|
+
:stroke-width="strokeWidth"
|
|
142
|
+
stroke-linecap="round"
|
|
143
|
+
:stroke-dashoffset="track.offset"
|
|
144
|
+
:stroke="progressColors.secondary"
|
|
145
|
+
class="pxd-gauge--track motion-safe:transition-[stroke,stroke-dasharray,stroke-dashoffset]"
|
|
146
|
+
:stroke-dasharray="hasProgress ? `${track.arc} ${CIRCUMFERENCE}` : void 0"
|
|
147
|
+
/>
|
|
151
148
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
:stroke-dasharray="`${progressArc} ${CIRCUMFERENCE}`"
|
|
164
|
-
/>
|
|
165
|
-
</g>
|
|
149
|
+
<path
|
|
150
|
+
v-if="hasProgress || isComplete"
|
|
151
|
+
:d="RING_PATH"
|
|
152
|
+
fill="none"
|
|
153
|
+
:stroke-width="strokeWidth"
|
|
154
|
+
:stroke-dashoffset="bar.offset"
|
|
155
|
+
stroke-linecap="round"
|
|
156
|
+
:stroke="progressColors.primary"
|
|
157
|
+
class="pxd-gauge--bar motion-safe:transition-[stroke,stroke-dasharray,stroke-dashoffset]"
|
|
158
|
+
:stroke-dasharray="`${bar.arc} ${CIRCUMFERENCE}`"
|
|
159
|
+
/>
|
|
166
160
|
</svg>
|
|
167
161
|
|
|
168
162
|
<div
|
|
169
163
|
v-if="indeterminate"
|
|
164
|
+
aria-hidden="true"
|
|
170
165
|
class="pxd-gauge--indeterminate inset-0 font-medium absolute flex items-center justify-center text-center text-foreground-secondary"
|
|
171
166
|
style="font-size: clamp(10px, calc(var(--gauge-size, 48px) * 0.38), 50px)"
|
|
172
167
|
>
|
|
@@ -174,7 +169,8 @@ const computedSize = computed(() => getFallbackValue(props.size, SIZES, configPr
|
|
|
174
169
|
</div>
|
|
175
170
|
|
|
176
171
|
<div
|
|
177
|
-
v-else-if="showValue &&
|
|
172
|
+
v-else-if="showValue && computedSize !== SIZES.xs"
|
|
173
|
+
aria-hidden="true"
|
|
178
174
|
class="pxd-gauge--value inset-0 font-medium absolute flex items-center justify-center text-center"
|
|
179
175
|
style="font-size: calc(var(--gauge-size, 48px) * 0.28)"
|
|
180
176
|
>
|
|
@@ -61,7 +61,6 @@ const progressVisible = computed(() => visible.value && progressDuration.value >
|
|
|
61
61
|
const statusVariant = computed(() => status.value === "success" || status.value === "error" ? status.value : "default");
|
|
62
62
|
const computedVariant = computed(() => TOOLTIP_VARIANTS[statusVariant.value]);
|
|
63
63
|
const contentClassComputed = computed(() => [
|
|
64
|
-
"relative",
|
|
65
64
|
TOOLTIP_CONTENT_CLASS,
|
|
66
65
|
computedVariant.value.base,
|
|
67
66
|
props.contentClass
|
|
@@ -196,8 +195,8 @@ onBeforeUnmount(() => {
|
|
|
196
195
|
|
|
197
196
|
<template #content="{ activeTrigger, activeTriggerIndex }">
|
|
198
197
|
<div
|
|
199
|
-
class="pxd-hint--content gap-
|
|
200
|
-
:data-pause-on-hover="pauseOnHover
|
|
198
|
+
class="pxd-hint--content gap-2 px-3 py-2 flex items-center"
|
|
199
|
+
:data-pause-on-hover="pauseOnHover"
|
|
201
200
|
@pointerenter="pauseCloseTimer"
|
|
202
201
|
@pointerleave="resumeCloseTimer"
|
|
203
202
|
>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { HoldButtonProps } from './types';
|
|
2
|
-
declare var
|
|
2
|
+
declare var __VLS_14: {}, __VLS_16: {}, __VLS_19: {};
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
|
-
prefix?: (props: typeof
|
|
4
|
+
prefix?: (props: typeof __VLS_14) => any;
|
|
5
5
|
} & {
|
|
6
|
-
default?: (props: typeof
|
|
6
|
+
default?: (props: typeof __VLS_16) => any;
|
|
7
7
|
} & {
|
|
8
|
-
suffix?: (props: typeof
|
|
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
11
|
cancel: () => any;
|