@pequity/squirrel 8.4.2 → 8.4.4
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/cjs/p-icon.js +3 -2
- package/dist/cjs/usePTableRowVirtualizer.js +8 -5
- package/dist/es/p-icon.js +3 -2
- package/dist/es/usePTableRowVirtualizer.js +9 -6
- package/dist/squirrel/components/p-action-bar/p-action-bar.vue.d.ts +1 -1
- package/dist/squirrel/components/p-alert/p-alert.vue.d.ts +1 -1
- package/dist/squirrel/components/p-avatar/p-avatar.vue.d.ts +1 -1
- package/dist/squirrel/components/p-btn/p-btn.vue.d.ts +3 -3
- package/dist/squirrel/components/p-card/p-card.vue.d.ts +1 -1
- package/dist/squirrel/components/p-checkbox/p-checkbox.vue.d.ts +1 -1
- package/dist/squirrel/components/p-close-btn/p-close-btn.vue.d.ts +1 -1
- package/dist/squirrel/components/p-date-picker/p-date-picker.vue.d.ts +1 -1
- package/dist/squirrel/components/p-drawer/p-drawer.vue.d.ts +3 -3
- package/dist/squirrel/components/p-dropdown-select/p-dropdown-select.vue.d.ts +1 -1
- package/dist/squirrel/components/p-file-upload/p-file-upload.vue.d.ts +1 -1
- package/dist/squirrel/components/p-icon/p-icon.types.d.ts +3 -2
- package/dist/squirrel/components/p-icon/p-icon.vue.d.ts +1 -1
- package/dist/squirrel/components/p-info-icon/p-info-icon.vue.d.ts +1 -1
- package/dist/squirrel/components/p-inline-date-picker/p-inline-date-picker.vue.d.ts +1 -1
- package/dist/squirrel/components/p-input/p-input.vue.d.ts +1 -1
- package/dist/squirrel/components/p-input-percent/p-input-percent.vue.d.ts +1 -1
- package/dist/squirrel/components/p-input-search/p-input-search.vue.d.ts +1 -1
- package/dist/squirrel/components/p-link/p-link.vue.d.ts +1 -1
- package/dist/squirrel/components/p-loading/p-loading.vue.d.ts +1 -1
- package/dist/squirrel/components/p-modal/p-modal.vue.d.ts +1 -1
- package/dist/squirrel/components/p-pagination/p-pagination.vue.d.ts +1 -1
- package/dist/squirrel/components/p-pagination-info/p-pagination-info.vue.d.ts +1 -1
- package/dist/squirrel/components/p-progress-bar/p-progress-bar.vue.d.ts +1 -1
- package/dist/squirrel/components/p-ring-loader/p-ring-loader.vue.d.ts +1 -1
- package/dist/squirrel/components/p-select/p-select.vue.d.ts +1 -1
- package/dist/squirrel/components/p-select-btn/p-select-btn.vue.d.ts +1 -1
- package/dist/squirrel/components/p-select-list/p-select-list.vue.d.ts +1 -1
- package/dist/squirrel/components/p-steps/p-steps.vue.d.ts +1 -1
- package/dist/squirrel/components/p-table/usePTableRowVirtualizer.d.ts +7 -7
- package/dist/squirrel/components/p-table-header-cell/p-table-filter-icon.vue.d.ts +1 -1
- package/dist/squirrel/components/p-table-header-cell/p-table-header-cell.vue.d.ts +3 -3
- package/dist/squirrel/components/p-table-loader/p-table-loader.vue.d.ts +1 -1
- package/dist/squirrel/components/p-table-sort/p-table-sort.vue.d.ts +1 -1
- package/dist/squirrel/components/p-table-td/p-table-td.vue.d.ts +1 -1
- package/dist/squirrel/components/p-tabs/p-tabs.vue.d.ts +1 -1
- package/dist/squirrel/components/p-tabs-pills/p-tabs-pills.vue.d.ts +1 -1
- package/dist/squirrel/components/p-textarea/p-textarea.vue.d.ts +1 -1
- package/dist/squirrel/components/p-toggle/p-toggle.vue.d.ts +1 -1
- package/package.json +17 -18
- package/squirrel/components/p-icon/p-icon.types.ts +3 -2
- package/squirrel/components/p-table/usePTableRowVirtualizer.ts +10 -6
package/dist/cjs/p-icon.js
CHANGED
|
@@ -4,7 +4,7 @@ const P_ICON_ALIASES = {
|
|
|
4
4
|
delete: "octicon:trash-24",
|
|
5
5
|
edit: "simple-line-icons:pencil",
|
|
6
6
|
send: "mingcute:send-plane-fill",
|
|
7
|
-
settings: "heroicons:cog-8-tooth
|
|
7
|
+
settings: "heroicons:cog-8-tooth",
|
|
8
8
|
empty: "ph:empty",
|
|
9
9
|
"chevron-left": "material-symbols:chevron-left-rounded",
|
|
10
10
|
"chevron-right": "material-symbols:chevron-right-rounded",
|
|
@@ -26,7 +26,7 @@ const P_ICON_ALIASES = {
|
|
|
26
26
|
copy: "ph:copy",
|
|
27
27
|
plus: "ic:outline-plus",
|
|
28
28
|
add: "ic:outline-plus",
|
|
29
|
-
more: "
|
|
29
|
+
more: "ep:more-filled",
|
|
30
30
|
filters: "mage:filter",
|
|
31
31
|
"bar-chart": "material-symbols:bar-chart-4-bars-rounded",
|
|
32
32
|
list: "material-symbols:format-list-bulleted",
|
|
@@ -35,6 +35,7 @@ const P_ICON_ALIASES = {
|
|
|
35
35
|
download: "tdesign:download",
|
|
36
36
|
upload: "tdesign:upload",
|
|
37
37
|
info: "streamline:information-circle",
|
|
38
|
+
help: "ph:question",
|
|
38
39
|
search: "streamline:magnifying-glass-solid"
|
|
39
40
|
};
|
|
40
41
|
exports.P_ICON_ALIASES = P_ICON_ALIASES;
|
|
@@ -9,7 +9,7 @@ const usePTableRowVirtualizer = (options) => {
|
|
|
9
9
|
virtualRows: vue.ref([{ key: 0, index: 0 }]),
|
|
10
10
|
paddingTop: vue.ref(0),
|
|
11
11
|
paddingBottom: vue.ref(0),
|
|
12
|
-
measureElement: () =>
|
|
12
|
+
measureElement: () => void 0
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
const virtualizer = vueVirtual.useVirtualizer(options);
|
|
@@ -18,13 +18,16 @@ const usePTableRowVirtualizer = (options) => {
|
|
|
18
18
|
const paddingBottom = vue.computed(
|
|
19
19
|
() => virtualRows.value.length > 0 ? virtualizer?.value.getTotalSize() - virtualRows.value[virtualRows.value.length - 1].end : 0
|
|
20
20
|
);
|
|
21
|
-
const measureElement = (
|
|
22
|
-
|
|
21
|
+
const measureElement = (el) => {
|
|
22
|
+
if (!el) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const element = el instanceof Element ? el : el.$el;
|
|
23
26
|
vue.nextTick(() => {
|
|
24
|
-
if (!
|
|
27
|
+
if (!element || !(element instanceof HTMLElement)) {
|
|
25
28
|
return;
|
|
26
29
|
}
|
|
27
|
-
virtualizer.value.measureElement(
|
|
30
|
+
virtualizer.value.measureElement(element);
|
|
28
31
|
});
|
|
29
32
|
return void 0;
|
|
30
33
|
};
|
package/dist/es/p-icon.js
CHANGED
|
@@ -2,7 +2,7 @@ const P_ICON_ALIASES = {
|
|
|
2
2
|
delete: "octicon:trash-24",
|
|
3
3
|
edit: "simple-line-icons:pencil",
|
|
4
4
|
send: "mingcute:send-plane-fill",
|
|
5
|
-
settings: "heroicons:cog-8-tooth
|
|
5
|
+
settings: "heroicons:cog-8-tooth",
|
|
6
6
|
empty: "ph:empty",
|
|
7
7
|
"chevron-left": "material-symbols:chevron-left-rounded",
|
|
8
8
|
"chevron-right": "material-symbols:chevron-right-rounded",
|
|
@@ -24,7 +24,7 @@ const P_ICON_ALIASES = {
|
|
|
24
24
|
copy: "ph:copy",
|
|
25
25
|
plus: "ic:outline-plus",
|
|
26
26
|
add: "ic:outline-plus",
|
|
27
|
-
more: "
|
|
27
|
+
more: "ep:more-filled",
|
|
28
28
|
filters: "mage:filter",
|
|
29
29
|
"bar-chart": "material-symbols:bar-chart-4-bars-rounded",
|
|
30
30
|
list: "material-symbols:format-list-bulleted",
|
|
@@ -33,6 +33,7 @@ const P_ICON_ALIASES = {
|
|
|
33
33
|
download: "tdesign:download",
|
|
34
34
|
upload: "tdesign:upload",
|
|
35
35
|
info: "streamline:information-circle",
|
|
36
|
+
help: "ph:question",
|
|
36
37
|
search: "streamline:magnifying-glass-solid"
|
|
37
38
|
};
|
|
38
39
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useVirtualizer } from "@tanstack/vue-virtual";
|
|
2
|
-
import { ref, computed,
|
|
2
|
+
import { ref, computed, nextTick } from "vue";
|
|
3
3
|
const usePTableRowVirtualizer = (options) => {
|
|
4
4
|
if (!options.value) {
|
|
5
5
|
return {
|
|
@@ -7,7 +7,7 @@ const usePTableRowVirtualizer = (options) => {
|
|
|
7
7
|
virtualRows: ref([{ key: 0, index: 0 }]),
|
|
8
8
|
paddingTop: ref(0),
|
|
9
9
|
paddingBottom: ref(0),
|
|
10
|
-
measureElement: () =>
|
|
10
|
+
measureElement: () => void 0
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
const virtualizer = useVirtualizer(options);
|
|
@@ -16,13 +16,16 @@ const usePTableRowVirtualizer = (options) => {
|
|
|
16
16
|
const paddingBottom = computed(
|
|
17
17
|
() => virtualRows.value.length > 0 ? virtualizer?.value.getTotalSize() - virtualRows.value[virtualRows.value.length - 1].end : 0
|
|
18
18
|
);
|
|
19
|
-
const measureElement = (
|
|
20
|
-
|
|
19
|
+
const measureElement = (el) => {
|
|
20
|
+
if (!el) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
const element = el instanceof Element ? el : el.$el;
|
|
21
24
|
nextTick(() => {
|
|
22
|
-
if (!
|
|
25
|
+
if (!element || !(element instanceof HTMLElement)) {
|
|
23
26
|
return;
|
|
24
27
|
}
|
|
25
|
-
virtualizer.value.measureElement(
|
|
28
|
+
virtualizer.value.measureElement(element);
|
|
26
29
|
});
|
|
27
30
|
return void 0;
|
|
28
31
|
};
|
|
@@ -4,7 +4,7 @@ type Props = {
|
|
|
4
4
|
label: string;
|
|
5
5
|
actions: PActionBarAction[];
|
|
6
6
|
};
|
|
7
|
-
declare const _default: import("vue").DefineComponent<Props,
|
|
7
|
+
declare const _default: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
8
|
"click:dismiss": () => any;
|
|
9
9
|
"click:action": (args_0: string | undefined) => any;
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
@@ -23,7 +23,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vu
|
|
|
23
23
|
default: string;
|
|
24
24
|
validator(value: keyof typeof ALERT_TYPES): boolean;
|
|
25
25
|
};
|
|
26
|
-
}>,
|
|
26
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
27
|
type: {
|
|
28
28
|
type: PropType<keyof typeof ALERT_TYPES>;
|
|
29
29
|
default: string;
|
|
@@ -23,7 +23,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
23
23
|
type: StringConstructor;
|
|
24
24
|
default: string;
|
|
25
25
|
};
|
|
26
|
-
}>,
|
|
26
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
27
|
shape: {
|
|
28
28
|
type: PropType<Shape>;
|
|
29
29
|
default: string;
|
|
@@ -273,7 +273,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vu
|
|
|
273
273
|
type: PropType<Icon>;
|
|
274
274
|
default: string;
|
|
275
275
|
};
|
|
276
|
-
}>,
|
|
276
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
277
277
|
/**
|
|
278
278
|
* The button style e.g primary, secondary, primary-outline, secondary-outline, error, success, primary-link
|
|
279
279
|
*/
|
|
@@ -332,14 +332,14 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vu
|
|
|
332
332
|
default: string;
|
|
333
333
|
};
|
|
334
334
|
}>> & Readonly<{}>, {
|
|
335
|
-
icon: "delete" | "edit" | "send" | "settings" | "empty" | "chevron-left" | "chevron-right" | "chevron-up" | "chevron-down" | "ok-circle" | "cancel-circle" | "ok" | "cancel" | "ok-bold" | "cancel-bold" | "archive" | "lock" | "drag-horizontal" | "email" | "location" | "calendar" | "save" | "copy" | "plus" | "add" | "more" | "filters" | "bar-chart" | "list" | "formula" | "refresh" | "download" | "upload" | "info" | "search" | (string & {});
|
|
335
|
+
icon: "delete" | "edit" | "send" | "settings" | "empty" | "chevron-left" | "chevron-right" | "chevron-up" | "chevron-down" | "ok-circle" | "cancel-circle" | "ok" | "cancel" | "ok-bold" | "cancel-bold" | "archive" | "lock" | "drag-horizontal" | "email" | "location" | "calendar" | "save" | "copy" | "plus" | "add" | "more" | "filters" | "bar-chart" | "list" | "formula" | "refresh" | "download" | "upload" | "info" | "help" | "search" | (string & {});
|
|
336
336
|
type: ButtonType;
|
|
337
337
|
size: "sm" | "md" | "lg";
|
|
338
338
|
nativeType: "button" | "submit" | "reset";
|
|
339
339
|
loading: boolean;
|
|
340
340
|
selected: boolean;
|
|
341
341
|
to: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric;
|
|
342
|
-
iconRight: "delete" | "edit" | "send" | "settings" | "empty" | "chevron-left" | "chevron-right" | "chevron-up" | "chevron-down" | "ok-circle" | "cancel-circle" | "ok" | "cancel" | "ok-bold" | "cancel-bold" | "archive" | "lock" | "drag-horizontal" | "email" | "location" | "calendar" | "save" | "copy" | "plus" | "add" | "more" | "filters" | "bar-chart" | "list" | "formula" | "refresh" | "download" | "upload" | "info" | "search" | (string & {});
|
|
342
|
+
iconRight: "delete" | "edit" | "send" | "settings" | "empty" | "chevron-left" | "chevron-right" | "chevron-up" | "chevron-down" | "ok-circle" | "cancel-circle" | "ok" | "cancel" | "ok-bold" | "cancel-bold" | "archive" | "lock" | "drag-horizontal" | "email" | "location" | "calendar" | "save" | "copy" | "plus" | "add" | "more" | "filters" | "bar-chart" | "list" | "formula" | "refresh" | "download" | "upload" | "info" | "help" | "search" | (string & {});
|
|
343
343
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
344
344
|
default?: (props: {}) => any;
|
|
345
345
|
}>;
|
|
@@ -11,7 +11,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
11
11
|
type: StringConstructor;
|
|
12
12
|
default: string;
|
|
13
13
|
};
|
|
14
|
-
}>,
|
|
14
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
15
|
title: {
|
|
16
16
|
type: StringConstructor;
|
|
17
17
|
default: string;
|
|
@@ -13,7 +13,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
13
13
|
type: StringConstructor;
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
16
|
-
}>,
|
|
16
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
17
|
"update:modelValue": (...args: any[]) => void;
|
|
18
18
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
19
|
modelValue: {
|
|
@@ -5,7 +5,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
5
5
|
type: PropType<Variant>;
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
|
-
}>,
|
|
8
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
9
|
variant: {
|
|
10
10
|
type: PropType<Variant>;
|
|
11
11
|
default: string;
|
|
@@ -8,7 +8,7 @@ type __VLS_Props = Props;
|
|
|
8
8
|
type __VLS_PublicProps = __VLS_Props & {
|
|
9
9
|
modelValue?: Date | string | null;
|
|
10
10
|
};
|
|
11
|
-
declare const _default: import("vue").DefineComponent<__VLS_PublicProps,
|
|
11
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
12
|
"update:modelValue": (value: string | Date | null) => any;
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
14
|
"onUpdate:modelValue"?: ((value: string | Date | null) => any) | undefined;
|
|
@@ -178,7 +178,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
178
178
|
default: string;
|
|
179
179
|
validator(value: "info" | "error" | "success" | "warning"): boolean;
|
|
180
180
|
};
|
|
181
|
-
}>> & Readonly<{}>,
|
|
181
|
+
}>> & Readonly<{}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
182
182
|
type: "info" | "error" | "success" | "warning";
|
|
183
183
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
184
184
|
P: {};
|
|
@@ -205,7 +205,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
205
205
|
default: string;
|
|
206
206
|
validator(value: "info" | "error" | "success" | "warning"): boolean;
|
|
207
207
|
};
|
|
208
|
-
}>> & Readonly<{}>,
|
|
208
|
+
}>> & Readonly<{}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
209
209
|
type: "info" | "error" | "success" | "warning";
|
|
210
210
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
211
211
|
$slots: {
|
|
@@ -219,7 +219,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
219
219
|
type: import("vue").PropType<"transparent" | "gray" | "dark">;
|
|
220
220
|
default: string;
|
|
221
221
|
};
|
|
222
|
-
}>,
|
|
222
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
223
223
|
variant: {
|
|
224
224
|
type: import("vue").PropType<"transparent" | "gray" | "dark">;
|
|
225
225
|
default: string;
|
|
@@ -155,7 +155,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
155
155
|
type: BooleanConstructor;
|
|
156
156
|
default: boolean;
|
|
157
157
|
};
|
|
158
|
-
}>,
|
|
158
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
159
159
|
select: (...args: any[]) => void;
|
|
160
160
|
"update:modelValue": (...args: any[]) => void;
|
|
161
161
|
create: (...args: any[]) => void;
|
|
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
41
41
|
type: NumberConstructor;
|
|
42
42
|
default: number;
|
|
43
43
|
};
|
|
44
|
-
}>,
|
|
44
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
45
|
"update:modelValue": (...args: any[]) => void;
|
|
46
46
|
"file-removed": (...args: any[]) => void;
|
|
47
47
|
"file-added": (...args: any[]) => void;
|
|
@@ -2,7 +2,7 @@ export declare const P_ICON_ALIASES: {
|
|
|
2
2
|
readonly delete: "octicon:trash-24";
|
|
3
3
|
readonly edit: "simple-line-icons:pencil";
|
|
4
4
|
readonly send: "mingcute:send-plane-fill";
|
|
5
|
-
readonly settings: "heroicons:cog-8-tooth
|
|
5
|
+
readonly settings: "heroicons:cog-8-tooth";
|
|
6
6
|
readonly empty: "ph:empty";
|
|
7
7
|
readonly 'chevron-left': "material-symbols:chevron-left-rounded";
|
|
8
8
|
readonly 'chevron-right': "material-symbols:chevron-right-rounded";
|
|
@@ -24,7 +24,7 @@ export declare const P_ICON_ALIASES: {
|
|
|
24
24
|
readonly copy: "ph:copy";
|
|
25
25
|
readonly plus: "ic:outline-plus";
|
|
26
26
|
readonly add: "ic:outline-plus";
|
|
27
|
-
readonly more: "
|
|
27
|
+
readonly more: "ep:more-filled";
|
|
28
28
|
readonly filters: "mage:filter";
|
|
29
29
|
readonly 'bar-chart': "material-symbols:bar-chart-4-bars-rounded";
|
|
30
30
|
readonly list: "material-symbols:format-list-bulleted";
|
|
@@ -33,6 +33,7 @@ export declare const P_ICON_ALIASES: {
|
|
|
33
33
|
readonly download: "tdesign:download";
|
|
34
34
|
readonly upload: "tdesign:upload";
|
|
35
35
|
readonly info: "streamline:information-circle";
|
|
36
|
+
readonly help: "ph:question";
|
|
36
37
|
readonly search: "streamline:magnifying-glass-solid";
|
|
37
38
|
};
|
|
38
39
|
export type PIconAlias = keyof typeof P_ICON_ALIASES;
|
|
@@ -4,5 +4,5 @@ import { type IconifyIconProperties } from 'iconify-icon';
|
|
|
4
4
|
interface Props extends /* @vue-ignore */ IconifyIconProperties {
|
|
5
5
|
icon: PIconAlias | (string & {});
|
|
6
6
|
}
|
|
7
|
-
declare const _default: import("vue").DefineComponent<Props,
|
|
7
|
+
declare const _default: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
8
|
export default _default;
|
|
@@ -5,7 +5,7 @@ declare var __VLS_12: {};
|
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
6
|
default?: (props: typeof __VLS_12) => any;
|
|
7
7
|
};
|
|
8
|
-
declare const __VLS_component: import("vue").DefineComponent<Props,
|
|
8
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
9
9
|
text: string | null;
|
|
10
10
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -15,7 +15,7 @@ declare var __VLS_1: {
|
|
|
15
15
|
type __VLS_Slots = {} & {
|
|
16
16
|
label?: (props: typeof __VLS_1) => any;
|
|
17
17
|
};
|
|
18
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
|
|
18
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
19
|
"update:modelValue": (value: string | Date | null) => any;
|
|
20
20
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
21
21
|
"onUpdate:modelValue"?: ((value: string | Date | null) => any) | undefined;
|
|
@@ -37,7 +37,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vu
|
|
|
37
37
|
type: BooleanConstructor;
|
|
38
38
|
default: boolean;
|
|
39
39
|
};
|
|
40
|
-
}>,
|
|
40
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
41
41
|
"update:modelValue": (...args: any[]) => void;
|
|
42
42
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
43
|
modelValue: {
|
|
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
9
9
|
type: PropType<Size>;
|
|
10
10
|
default: string;
|
|
11
11
|
};
|
|
12
|
-
}>,
|
|
12
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
13
|
"update:modelValue": (...args: any[]) => void;
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
15
|
modelValue: {
|
|
@@ -14,7 +14,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
14
14
|
type: BooleanConstructor;
|
|
15
15
|
default: boolean;
|
|
16
16
|
};
|
|
17
|
-
}>,
|
|
17
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
18
|
"update:modelValue": (value: string) => any;
|
|
19
19
|
enter: (value: string) => any;
|
|
20
20
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -5,7 +5,7 @@ type __VLS_Slots = {} & {
|
|
|
5
5
|
} & {
|
|
6
6
|
default?: (props: typeof __VLS_9) => any;
|
|
7
7
|
};
|
|
8
|
-
declare const __VLS_component: import("vue").DefineComponent<RouterLinkProps,
|
|
8
|
+
declare const __VLS_component: import("vue").DefineComponent<RouterLinkProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RouterLinkProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
9
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
10
10
|
export default _default;
|
|
11
11
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{},
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -92,7 +92,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
92
92
|
type: StringConstructor;
|
|
93
93
|
default: string;
|
|
94
94
|
};
|
|
95
|
-
}>,
|
|
95
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
96
96
|
"update:modelValue": (args_0: boolean) => any;
|
|
97
97
|
closed: () => any;
|
|
98
98
|
"before-open": () => any;
|
|
@@ -35,7 +35,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
35
35
|
type: BooleanConstructor;
|
|
36
36
|
default: boolean;
|
|
37
37
|
};
|
|
38
|
-
}>,
|
|
38
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
39
39
|
"update:modelValue": (...args: any[]) => void;
|
|
40
40
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
41
41
|
/**
|
|
@@ -31,7 +31,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
31
31
|
type: BooleanConstructor;
|
|
32
32
|
default: boolean;
|
|
33
33
|
};
|
|
34
|
-
}>,
|
|
34
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
35
|
/**
|
|
36
36
|
* The current page.
|
|
37
37
|
*/
|
|
@@ -7,5 +7,5 @@ type Props = {
|
|
|
7
7
|
total: number;
|
|
8
8
|
items: ProgressItem[];
|
|
9
9
|
};
|
|
10
|
-
declare const _default: import("vue").DefineComponent<Props,
|
|
10
|
+
declare const _default: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
export default _default;
|
|
@@ -2,7 +2,7 @@ type Props = {
|
|
|
2
2
|
size?: number;
|
|
3
3
|
color?: string;
|
|
4
4
|
};
|
|
5
|
-
declare const _default: import("vue").DefineComponent<Props,
|
|
5
|
+
declare const _default: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
6
6
|
size: number;
|
|
7
7
|
color: string;
|
|
8
8
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -41,7 +41,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
41
41
|
type: PropType<string | number | boolean | null>;
|
|
42
42
|
default: string;
|
|
43
43
|
};
|
|
44
|
-
}>,
|
|
44
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
45
|
"update:modelValue": (...args: any[]) => void;
|
|
46
46
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
47
47
|
modelValue: {
|
|
@@ -20,7 +20,7 @@ declare var __VLS_9: `btn-${number}`, __VLS_10: {
|
|
|
20
20
|
type __VLS_Slots = {} & {
|
|
21
21
|
[K in NonNullable<typeof __VLS_9>]?: (props: typeof __VLS_10) => any;
|
|
22
22
|
};
|
|
23
|
-
declare const __VLS_component: import("vue").DefineComponent<Props,
|
|
23
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
24
|
"update:modelValue": (...args: any[]) => void;
|
|
25
25
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
26
26
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -133,7 +133,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
133
133
|
type: PropType<string>;
|
|
134
134
|
default: string;
|
|
135
135
|
};
|
|
136
|
-
}>,
|
|
136
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
137
137
|
select: (...args: any[]) => void;
|
|
138
138
|
"update:modelValue": (...args: any[]) => void;
|
|
139
139
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -4,7 +4,7 @@ type Props = {
|
|
|
4
4
|
steps?: readonly StepItem[];
|
|
5
5
|
clickable?: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare const _default: import("vue").DefineComponent<Props,
|
|
7
|
+
declare const _default: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
8
|
"click:step": (step: StepItem, index: number) => any;
|
|
9
9
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
10
10
|
"onClick:step"?: ((step: StepItem, index: number) => any) | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ComponentPublicInstance, type ComputedRef
|
|
1
|
+
import { type ComponentPublicInstance, type ComputedRef } from 'vue';
|
|
2
2
|
type Options = ComputedRef<{
|
|
3
3
|
count: number;
|
|
4
4
|
getScrollElement: () => HTMLElement | null;
|
|
@@ -8,7 +8,7 @@ type Options = ComputedRef<{
|
|
|
8
8
|
}>;
|
|
9
9
|
export declare const usePTableRowVirtualizer: (options: Options) => {
|
|
10
10
|
virtualizer: null;
|
|
11
|
-
virtualRows: Ref<{
|
|
11
|
+
virtualRows: import("vue").Ref<{
|
|
12
12
|
key: number;
|
|
13
13
|
index: number;
|
|
14
14
|
}[], {
|
|
@@ -18,14 +18,14 @@ export declare const usePTableRowVirtualizer: (options: Options) => {
|
|
|
18
18
|
key: number;
|
|
19
19
|
index: number;
|
|
20
20
|
}[]>;
|
|
21
|
-
paddingTop: Ref<number, number>;
|
|
22
|
-
paddingBottom: Ref<number, number>;
|
|
23
|
-
measureElement: () =>
|
|
21
|
+
paddingTop: import("vue").Ref<number, number>;
|
|
22
|
+
paddingBottom: import("vue").Ref<number, number>;
|
|
23
|
+
measureElement: () => undefined;
|
|
24
24
|
} | {
|
|
25
|
-
virtualizer: Ref<import("@tanstack/vue-virtual").Virtualizer<HTMLElement, Element>, import("@tanstack/vue-virtual").Virtualizer<HTMLElement, Element>>;
|
|
25
|
+
virtualizer: import("vue").Ref<import("@tanstack/vue-virtual").Virtualizer<HTMLElement, Element>, import("@tanstack/vue-virtual").Virtualizer<HTMLElement, Element>>;
|
|
26
26
|
virtualRows: ComputedRef<import("@tanstack/vue-virtual").VirtualItem[]>;
|
|
27
27
|
paddingTop: ComputedRef<number>;
|
|
28
28
|
paddingBottom: ComputedRef<number>;
|
|
29
|
-
measureElement: (
|
|
29
|
+
measureElement: (el: Element | ComponentPublicInstance | null) => undefined;
|
|
30
30
|
};
|
|
31
31
|
export {};
|
|
@@ -3,7 +3,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3
3
|
type: BooleanConstructor;
|
|
4
4
|
default: boolean;
|
|
5
5
|
};
|
|
6
|
-
}>,
|
|
6
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
7
|
active: {
|
|
8
8
|
type: BooleanConstructor;
|
|
9
9
|
default: boolean;
|
|
@@ -72,7 +72,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
72
72
|
type: BooleanConstructor;
|
|
73
73
|
default: boolean;
|
|
74
74
|
};
|
|
75
|
-
}>,
|
|
75
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
76
76
|
active: {
|
|
77
77
|
type: BooleanConstructor;
|
|
78
78
|
default: boolean;
|
|
@@ -83,7 +83,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
83
83
|
PInfoIcon: {
|
|
84
84
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
85
85
|
text?: string | null;
|
|
86
|
-
}> & Readonly<{}>,
|
|
86
|
+
}> & Readonly<{}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
87
87
|
text: string | null;
|
|
88
88
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
89
89
|
P: {};
|
|
@@ -102,7 +102,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
102
102
|
__isSuspense?: never;
|
|
103
103
|
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
104
104
|
text?: string | null;
|
|
105
|
-
}> & Readonly<{}>,
|
|
105
|
+
}> & Readonly<{}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
106
106
|
text: string | null;
|
|
107
107
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
108
108
|
$slots: {
|
|
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
19
19
|
type: BooleanConstructor;
|
|
20
20
|
default: boolean;
|
|
21
21
|
};
|
|
22
|
-
}>,
|
|
22
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
23
|
rows: {
|
|
24
24
|
type: (StringConstructor | NumberConstructor)[];
|
|
25
25
|
default: number;
|
|
@@ -6,7 +6,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
6
6
|
default: "noSorting";
|
|
7
7
|
validator(value: SortingType): boolean;
|
|
8
8
|
};
|
|
9
|
-
}>,
|
|
9
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
10
|
"update:modelValue": (...args: any[]) => void;
|
|
11
11
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
12
|
modelValue: {
|
|
@@ -7,7 +7,7 @@ declare var __VLS_1: {};
|
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
8
|
default?: (props: typeof __VLS_1) => any;
|
|
9
9
|
};
|
|
10
|
-
declare const __VLS_component: import("vue").DefineComponent<Props,
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
11
11
|
isSelected: boolean;
|
|
12
12
|
isEditable: boolean;
|
|
13
13
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
19
19
|
type: NumberConstructor;
|
|
20
20
|
default: number;
|
|
21
21
|
};
|
|
22
|
-
}>,
|
|
22
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
23
|
"click:tab": (...args: any[]) => void;
|
|
24
24
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
25
|
tabs: {
|
|
@@ -8,7 +8,7 @@ type Props = {
|
|
|
8
8
|
itemText?: string;
|
|
9
9
|
itemValue?: string;
|
|
10
10
|
};
|
|
11
|
-
declare const _default: import("vue").DefineComponent<Props,
|
|
11
|
+
declare const _default: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
12
|
"update:modelValue": (val: Value) => any;
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
14
14
|
"onUpdate:modelValue"?: ((val: Value) => any) | undefined;
|
|
@@ -29,7 +29,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
29
29
|
default: string;
|
|
30
30
|
validator(value: Size): boolean;
|
|
31
31
|
};
|
|
32
|
-
}>,
|
|
32
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
33
|
"update:modelValue": (...args: any[]) => void;
|
|
34
34
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
35
|
modelValue: {
|
|
@@ -22,7 +22,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vu
|
|
|
22
22
|
default: string;
|
|
23
23
|
validator(value: Size): boolean;
|
|
24
24
|
};
|
|
25
|
-
}>,
|
|
25
|
+
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
26
|
"update:modelValue": (...args: any[]) => void;
|
|
27
27
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
28
|
modelValue: {
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pequity/squirrel",
|
|
3
3
|
"description": "Squirrel component library",
|
|
4
|
-
"version": "8.4.
|
|
5
|
-
"packageManager": "pnpm@10.
|
|
4
|
+
"version": "8.4.4",
|
|
5
|
+
"packageManager": "pnpm@10.13.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"preinstall": "npx only-allow pnpm",
|
|
@@ -50,19 +50,18 @@
|
|
|
50
50
|
"@commitlint/cli": "^19.8.1",
|
|
51
51
|
"@commitlint/config-conventional": "^19.8.1",
|
|
52
52
|
"@pequity/eslint-config": "^2.0.2",
|
|
53
|
-
"@playwright/test": "^1.
|
|
53
|
+
"@playwright/test": "^1.54.1",
|
|
54
54
|
"@semantic-release/changelog": "^6.0.3",
|
|
55
55
|
"@semantic-release/git": "^10.0.1",
|
|
56
|
-
"@storybook/addon-a11y": "^9.0.
|
|
57
|
-
"@storybook/addon-docs": "^9.0.
|
|
58
|
-
"@storybook/addon-links": "^9.0.
|
|
59
|
-
"@storybook/addon-vitest": "^9.0.
|
|
60
|
-
"@storybook/vue3": "^9.0.
|
|
61
|
-
"@storybook/vue3-vite": "^9.0.15",
|
|
56
|
+
"@storybook/addon-a11y": "^9.0.17",
|
|
57
|
+
"@storybook/addon-docs": "^9.0.17",
|
|
58
|
+
"@storybook/addon-links": "^9.0.17",
|
|
59
|
+
"@storybook/addon-vitest": "^9.0.17",
|
|
60
|
+
"@storybook/vue3-vite": "^9.0.17",
|
|
62
61
|
"@tanstack/vue-virtual": "3.13.12",
|
|
63
62
|
"@types/jsdom": "^21.1.7",
|
|
64
63
|
"@types/lodash-es": "^4.17.12",
|
|
65
|
-
"@types/node": "^24.0.
|
|
64
|
+
"@types/node": "^24.0.15",
|
|
66
65
|
"@vitejs/plugin-vue": "^6.0.0",
|
|
67
66
|
"@vitest/browser": "3.2.4",
|
|
68
67
|
"@vitest/coverage-v8": "^3.2.4",
|
|
@@ -70,8 +69,8 @@
|
|
|
70
69
|
"@vue/test-utils": "^2.4.6",
|
|
71
70
|
"@vuepic/vue-datepicker": "11.0.2",
|
|
72
71
|
"autoprefixer": "^10.4.21",
|
|
73
|
-
"eslint": "^9.
|
|
74
|
-
"eslint-plugin-storybook": "^9.0.
|
|
72
|
+
"eslint": "^9.31.0",
|
|
73
|
+
"eslint-plugin-storybook": "^9.0.17",
|
|
75
74
|
"floating-vue": "5.2.2",
|
|
76
75
|
"glob": "^11.0.3",
|
|
77
76
|
"husky": "^9.1.7",
|
|
@@ -80,25 +79,25 @@
|
|
|
80
79
|
"lint-staged": "^16.1.2",
|
|
81
80
|
"lodash-es": "4.17.21",
|
|
82
81
|
"make-coverage-badge": "^1.2.0",
|
|
83
|
-
"playwright": "^1.
|
|
82
|
+
"playwright": "^1.54.1",
|
|
84
83
|
"postcss": "^8.5.6",
|
|
85
84
|
"prettier": "^3.6.2",
|
|
86
|
-
"prettier-plugin-tailwindcss": "^0.6.
|
|
85
|
+
"prettier-plugin-tailwindcss": "^0.6.14",
|
|
87
86
|
"resolve-tspaths": "^0.8.23",
|
|
88
87
|
"rimraf": "^6.0.1",
|
|
89
88
|
"sass": "^1.89.2",
|
|
90
|
-
"semantic-release": "^24.2.
|
|
91
|
-
"storybook": "^9.0.
|
|
89
|
+
"semantic-release": "^24.2.7",
|
|
90
|
+
"storybook": "^9.0.17",
|
|
92
91
|
"svgo": "^4.0.0",
|
|
93
92
|
"tailwindcss": "^3.4.17",
|
|
94
93
|
"typescript": "5.8.3",
|
|
95
|
-
"vite": "^7.0.
|
|
94
|
+
"vite": "^7.0.5",
|
|
96
95
|
"vitest": "^3.2.4",
|
|
97
96
|
"vue": "3.5.17",
|
|
98
97
|
"vue-currency-input": "3.2.1",
|
|
99
98
|
"vue-router": "4.5.1",
|
|
100
99
|
"vue-toastification": "2.0.0-rc.5",
|
|
101
|
-
"vue-tsc": "3.0.
|
|
100
|
+
"vue-tsc": "3.0.3"
|
|
102
101
|
},
|
|
103
102
|
"dependencies": {
|
|
104
103
|
"tailwind-variants": "^1.0.0"
|
|
@@ -2,7 +2,7 @@ export const P_ICON_ALIASES = {
|
|
|
2
2
|
delete: 'octicon:trash-24',
|
|
3
3
|
edit: 'simple-line-icons:pencil',
|
|
4
4
|
send: 'mingcute:send-plane-fill',
|
|
5
|
-
settings: 'heroicons:cog-8-tooth
|
|
5
|
+
settings: 'heroicons:cog-8-tooth',
|
|
6
6
|
empty: 'ph:empty',
|
|
7
7
|
'chevron-left': 'material-symbols:chevron-left-rounded',
|
|
8
8
|
'chevron-right': 'material-symbols:chevron-right-rounded',
|
|
@@ -24,7 +24,7 @@ export const P_ICON_ALIASES = {
|
|
|
24
24
|
copy: 'ph:copy',
|
|
25
25
|
plus: 'ic:outline-plus',
|
|
26
26
|
add: 'ic:outline-plus',
|
|
27
|
-
more: '
|
|
27
|
+
more: 'ep:more-filled',
|
|
28
28
|
filters: 'mage:filter',
|
|
29
29
|
'bar-chart': 'material-symbols:bar-chart-4-bars-rounded',
|
|
30
30
|
list: 'material-symbols:format-list-bulleted',
|
|
@@ -33,6 +33,7 @@ export const P_ICON_ALIASES = {
|
|
|
33
33
|
download: 'tdesign:download',
|
|
34
34
|
upload: 'tdesign:upload',
|
|
35
35
|
info: 'streamline:information-circle',
|
|
36
|
+
help: 'ph:question',
|
|
36
37
|
search: 'streamline:magnifying-glass-solid',
|
|
37
38
|
} as const;
|
|
38
39
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useVirtualizer } from '@tanstack/vue-virtual';
|
|
2
|
-
import { type ComponentPublicInstance, computed, type ComputedRef,
|
|
2
|
+
import { type ComponentPublicInstance, computed, type ComputedRef, nextTick, ref } from 'vue';
|
|
3
3
|
|
|
4
4
|
type Options = ComputedRef<{
|
|
5
5
|
count: number;
|
|
@@ -16,7 +16,7 @@ export const usePTableRowVirtualizer = (options: Options) => {
|
|
|
16
16
|
virtualRows: ref([{ key: 0, index: 0 }]),
|
|
17
17
|
paddingTop: ref(0),
|
|
18
18
|
paddingBottom: ref(0),
|
|
19
|
-
measureElement: () =>
|
|
19
|
+
measureElement: () => undefined,
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -32,15 +32,19 @@ export const usePTableRowVirtualizer = (options: Options) => {
|
|
|
32
32
|
: 0
|
|
33
33
|
);
|
|
34
34
|
|
|
35
|
-
const measureElement = (
|
|
36
|
-
|
|
35
|
+
const measureElement = (el: Element | ComponentPublicInstance | null) => {
|
|
36
|
+
if (!el) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const element = el instanceof Element ? el : el.$el;
|
|
37
41
|
|
|
38
42
|
nextTick(() => {
|
|
39
|
-
if (!
|
|
43
|
+
if (!element || !(element instanceof HTMLElement)) {
|
|
40
44
|
return;
|
|
41
45
|
}
|
|
42
46
|
|
|
43
|
-
virtualizer.value.measureElement(
|
|
47
|
+
virtualizer.value.measureElement(element);
|
|
44
48
|
});
|
|
45
49
|
|
|
46
50
|
return undefined;
|