@privyid/persona 0.25.0 → 0.25.2
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/avatar/Avatar.vue.d.ts +2 -2
- package/dist/components/badge/Badge.vue.d.ts +1 -1
- package/dist/components/breadcrumbs/Breadcrumb.vue +1 -2
- package/dist/components/breadcrumbs/Breadcrumb.vue.d.ts +2 -2
- package/dist/components/breadcrumbs/BreadcrumbItem.vue +4 -6
- package/dist/components/breadcrumbs/BreadcrumbItem.vue.d.ts +9 -8
- package/dist/components/breadcrumbs/index.d.ts +2 -2
- package/dist/components/button/Button.vue +3 -2
- package/dist/components/carousel/Carousel.vue.d.ts +2 -2
- package/dist/components/cropper/Cropper.vue.d.ts +2 -2
- package/dist/components/dot/Dot.vue.d.ts +1 -1
- package/dist/components/dropdown/Dropdown.vue +3 -1
- package/dist/components/dropdown/DropdownItem.vue +1 -1
- package/dist/components/dropdown/DropdownItem.vue.d.ts +5 -3
- package/dist/components/filterbar/pinned/PinnedSelect.vue.d.ts +2 -2
- package/dist/components/filterbar/pinned/PinnedToggle.vue.d.ts +6 -6
- package/dist/components/input/Input.vue.d.ts +2 -2
- package/dist/components/input-pin/InputPin.vue.d.ts +1 -1
- package/dist/components/label/Label.vue.d.ts +1 -1
- package/dist/components/list-group/ListGroup.vue.d.ts +1 -1
- package/dist/components/meta.json +19 -19
- package/dist/components/modal/Modal.vue.d.ts +10 -10
- package/dist/components/nav/Nav.vue +1 -1
- package/dist/components/nav/Nav.vue.d.ts +5 -4
- package/dist/components/nav/NavItem.vue.d.ts +2 -2
- package/dist/components/nav/NavItemDropdown.vue.d.ts +2 -2
- package/dist/components/pdf-object/PdfObject.vue.d.ts +1 -1
- package/dist/components/pdf-object/PdfObjectDebugger.vue +1 -1
- package/dist/components/pdf-text/PdfText.vue.d.ts +3 -3
- package/dist/components/progressbar/Progressbar.vue.d.ts +1 -1
- package/dist/components/select/adapter/async-adapter.mjs +4 -3
- package/dist/components/sidebar/SidebarBrand.vue +3 -3
- package/dist/components/sidebar/SidebarBrand.vue.d.ts +5 -3
- package/dist/components/sidebar/SidebarNav.vue +3 -1
- package/dist/components/sidebar-menu/SidebarMenu.vue +2 -0
- package/dist/components/sidebar-menu/index.d.ts +4 -3
- package/dist/components/signature-text/SignatureText.vue.d.ts +1 -1
- package/dist/components/steps/Steps.vue.d.ts +2 -2
- package/dist/components/tabs/Tabs.vue +4 -4
- package/dist/components/text/Text.vue +4 -3
- package/dist/components/text/Text.vue.d.ts +5 -4
- package/dist/components/toast/ToastContainer.vue +13 -0
- package/dist/components/toggle/Toggle.vue.d.ts +2 -2
- package/dist/components/tooltip/Tooltip.vue +1 -1
- package/dist/components/tour/Tour.vue +6 -2
- package/dist/components/tour/TourHighlight.vue +1 -1
- package/dist/components/truncate/Truncate.vue +1 -1
- package/dist/core/index.d.ts +3 -1
- package/dist/core/index.mjs +7 -1
- package/dist/module.json +1 -1
- package/package.json +7 -7
|
@@ -22,7 +22,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
22
22
|
default: string;
|
|
23
23
|
};
|
|
24
24
|
imgClass: {
|
|
25
|
-
type: (StringConstructor |
|
|
25
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
26
26
|
default: undefined;
|
|
27
27
|
};
|
|
28
28
|
}, {
|
|
@@ -51,7 +51,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
51
51
|
default: string;
|
|
52
52
|
};
|
|
53
53
|
imgClass: {
|
|
54
|
-
type: (StringConstructor |
|
|
54
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
55
55
|
default: undefined;
|
|
56
56
|
};
|
|
57
57
|
}>> & {
|
|
@@ -15,7 +15,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
15
15
|
of<T_4>(...items: T_4[]): T_4[];
|
|
16
16
|
readonly [Symbol.species]: ArrayConstructor;
|
|
17
17
|
};
|
|
18
|
-
default: () =>
|
|
18
|
+
default: () => never[];
|
|
19
19
|
};
|
|
20
20
|
}, void, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, {}, string, import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
21
21
|
items: {
|
|
@@ -33,7 +33,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
33
33
|
of<T_4>(...items: T_4[]): T_4[];
|
|
34
34
|
readonly [Symbol.species]: ArrayConstructor;
|
|
35
35
|
};
|
|
36
|
-
default: () =>
|
|
36
|
+
default: () => never[];
|
|
37
37
|
};
|
|
38
38
|
}>>, {
|
|
39
39
|
items: BreadcrumbItems[];
|
|
@@ -23,13 +23,14 @@ import {
|
|
|
23
23
|
defineComponent,
|
|
24
24
|
computed,
|
|
25
25
|
inject,
|
|
26
|
-
h
|
|
26
|
+
h,
|
|
27
|
+
resolveComponent
|
|
27
28
|
} from "vue-demi";
|
|
28
29
|
import IconChevron from "@privyid/persona-icon/vue/chevron-right/20.vue";
|
|
29
30
|
export default defineComponent({
|
|
30
31
|
props: {
|
|
31
32
|
href: {
|
|
32
|
-
type: String,
|
|
33
|
+
type: [String, Object],
|
|
33
34
|
default: "#"
|
|
34
35
|
},
|
|
35
36
|
active: {
|
|
@@ -45,10 +46,7 @@ export default defineComponent({
|
|
|
45
46
|
return result;
|
|
46
47
|
});
|
|
47
48
|
const tagName = computed(() => {
|
|
48
|
-
|
|
49
|
-
if (props.active)
|
|
50
|
-
tag = "span";
|
|
51
|
-
return tag;
|
|
49
|
+
return props.active ? "span" : resolveComponent("nuxt-link");
|
|
52
50
|
});
|
|
53
51
|
const permalink = computed(() => {
|
|
54
52
|
if (props.active)
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PropType } from 'vue-demi';
|
|
2
|
+
import type { RouteLocationRaw } from 'vue-router';
|
|
2
3
|
declare const _default: import("vue-demi").DefineComponent<{
|
|
3
4
|
href: {
|
|
4
|
-
type:
|
|
5
|
-
default:
|
|
5
|
+
type: PropType<RouteLocationRaw>;
|
|
6
|
+
default: RouteLocationRaw;
|
|
6
7
|
};
|
|
7
8
|
active: {
|
|
8
9
|
type: BooleanConstructor;
|
|
@@ -10,22 +11,22 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
10
11
|
};
|
|
11
12
|
}, {
|
|
12
13
|
classNames: import("vue-demi").ComputedRef<string[]>;
|
|
13
|
-
tagName: import("vue-demi").ComputedRef<
|
|
14
|
-
permalink: import("vue-demi").ComputedRef<
|
|
14
|
+
tagName: import("vue-demi").ComputedRef<string | import("vue-demi").ConcreteComponent<{}, any, any, import("vue-demi").ComputedOptions, import("vue-demi").MethodOptions>>;
|
|
15
|
+
permalink: import("vue-demi").ComputedRef<RouteLocationRaw | undefined>;
|
|
15
16
|
divider: () => import("vue-demi").VNode<import("vue-demi").RendererNode, import("vue-demi").RendererElement, {
|
|
16
17
|
[key: string]: any;
|
|
17
18
|
}>;
|
|
18
19
|
}, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, {}, string, import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
19
20
|
href: {
|
|
20
|
-
type:
|
|
21
|
-
default:
|
|
21
|
+
type: PropType<RouteLocationRaw>;
|
|
22
|
+
default: RouteLocationRaw;
|
|
22
23
|
};
|
|
23
24
|
active: {
|
|
24
25
|
type: BooleanConstructor;
|
|
25
26
|
default: boolean;
|
|
26
27
|
};
|
|
27
28
|
}>>, {
|
|
28
|
-
href:
|
|
29
|
+
href: RouteLocationRaw;
|
|
29
30
|
active: boolean;
|
|
30
31
|
}, {}>;
|
|
31
32
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import type { RouteLocationRaw } from 'vue-router';
|
|
1
2
|
interface Breadcrumb {
|
|
2
3
|
text: string;
|
|
3
|
-
href?:
|
|
4
|
+
href?: RouteLocationRaw;
|
|
4
5
|
active?: boolean;
|
|
5
6
|
}
|
|
6
7
|
export interface BreadcrumbItems extends Breadcrumb {
|
|
7
8
|
subitem?: Breadcrumb[];
|
|
8
9
|
}
|
|
9
|
-
export type TagVariant = 'a' | 'span';
|
|
10
10
|
export declare function defineNavigation(navigation: BreadcrumbItems[]): BreadcrumbItems[];
|
|
11
11
|
export {};
|
|
@@ -23,6 +23,7 @@ import type {
|
|
|
23
23
|
import {
|
|
24
24
|
computed,
|
|
25
25
|
inject,
|
|
26
|
+
resolveComponent,
|
|
26
27
|
} from 'vue-demi'
|
|
27
28
|
import type { RouteLocationRaw } from 'vue-router'
|
|
28
29
|
import type {
|
|
@@ -57,7 +58,7 @@ const props = defineProps({
|
|
|
57
58
|
default: false,
|
|
58
59
|
},
|
|
59
60
|
href: {
|
|
60
|
-
type : [String, Object] as PropType<
|
|
61
|
+
type : [String, Object] as PropType<RouteLocationRaw>,
|
|
61
62
|
default: undefined,
|
|
62
63
|
},
|
|
63
64
|
type: {
|
|
@@ -110,7 +111,7 @@ const classNames = computed(() => {
|
|
|
110
111
|
|
|
111
112
|
const tagName = computed(() => {
|
|
112
113
|
return props.href
|
|
113
|
-
? 'nuxt-link'
|
|
114
|
+
? resolveComponent('nuxt-link')
|
|
114
115
|
: 'button'
|
|
115
116
|
})
|
|
116
117
|
|
|
@@ -98,11 +98,11 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
98
98
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
99
99
|
}, {
|
|
100
100
|
modelValue: number;
|
|
101
|
+
direction: DirectionVariant;
|
|
101
102
|
align: AlignmentVariant;
|
|
102
103
|
width: string | number;
|
|
103
|
-
loop: boolean;
|
|
104
104
|
height: string | number;
|
|
105
|
-
|
|
105
|
+
loop: boolean;
|
|
106
106
|
autoplay: boolean;
|
|
107
107
|
autoplayInterval: string | number;
|
|
108
108
|
splideOptions: Options;
|
|
@@ -40,7 +40,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
40
40
|
default: number;
|
|
41
41
|
};
|
|
42
42
|
imgClass: {
|
|
43
|
-
type: (StringConstructor |
|
|
43
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
44
44
|
default: undefined;
|
|
45
45
|
};
|
|
46
46
|
rounded: {
|
|
@@ -112,7 +112,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
112
112
|
default: number;
|
|
113
113
|
};
|
|
114
114
|
imgClass: {
|
|
115
|
-
type: (StringConstructor |
|
|
115
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
116
116
|
default: undefined;
|
|
117
117
|
};
|
|
118
118
|
rounded: {
|
|
@@ -326,7 +326,7 @@ watchEffect((onCleanup) => {
|
|
|
326
326
|
isHidden.value = middlewareData.hide.referenceHidden
|
|
327
327
|
}
|
|
328
328
|
})
|
|
329
|
-
})
|
|
329
|
+
}, { animationFrame: true })
|
|
330
330
|
|
|
331
331
|
onCleanup(cleanup)
|
|
332
332
|
}
|
|
@@ -348,6 +348,8 @@ defineExpose({
|
|
|
348
348
|
menuBody,
|
|
349
349
|
menu,
|
|
350
350
|
root,
|
|
351
|
+
open,
|
|
352
|
+
close,
|
|
351
353
|
})
|
|
352
354
|
</script>
|
|
353
355
|
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import type { PropType } from 'vue-demi';
|
|
1
2
|
import type { TagVariant } from '../button';
|
|
3
|
+
import type { RouteLocationRaw } from 'vue-router';
|
|
2
4
|
declare const _default: import("vue-demi").DefineComponent<{
|
|
3
5
|
text: {
|
|
4
6
|
type: StringConstructor;
|
|
5
7
|
default: string;
|
|
6
8
|
};
|
|
7
9
|
href: {
|
|
8
|
-
type:
|
|
10
|
+
type: PropType<RouteLocationRaw>;
|
|
9
11
|
default: undefined;
|
|
10
12
|
};
|
|
11
13
|
active: {
|
|
@@ -26,7 +28,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
26
28
|
default: string;
|
|
27
29
|
};
|
|
28
30
|
href: {
|
|
29
|
-
type:
|
|
31
|
+
type: PropType<RouteLocationRaw>;
|
|
30
32
|
default: undefined;
|
|
31
33
|
};
|
|
32
34
|
active: {
|
|
@@ -40,7 +42,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
40
42
|
}>> & {
|
|
41
43
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
42
44
|
}, {
|
|
43
|
-
href:
|
|
45
|
+
href: RouteLocationRaw;
|
|
44
46
|
active: boolean;
|
|
45
47
|
text: string;
|
|
46
48
|
disabled: boolean;
|
|
@@ -11,7 +11,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
11
11
|
default: () => never[];
|
|
12
12
|
};
|
|
13
13
|
modelValue: {
|
|
14
|
-
type: (NumberConstructor | StringConstructor |
|
|
14
|
+
type: (NumberConstructor | StringConstructor | ArrayConstructor | ObjectConstructor | BooleanConstructor | DateConstructor)[];
|
|
15
15
|
default: undefined;
|
|
16
16
|
};
|
|
17
17
|
}, {
|
|
@@ -30,7 +30,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
30
30
|
default: () => never[];
|
|
31
31
|
};
|
|
32
32
|
modelValue: {
|
|
33
|
-
type: (NumberConstructor | StringConstructor |
|
|
33
|
+
type: (NumberConstructor | StringConstructor | ArrayConstructor | ObjectConstructor | BooleanConstructor | DateConstructor)[];
|
|
34
34
|
default: undefined;
|
|
35
35
|
};
|
|
36
36
|
}>> & {
|
|
@@ -6,15 +6,15 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
6
6
|
required: true;
|
|
7
7
|
};
|
|
8
8
|
modelValue: {
|
|
9
|
-
type: (NumberConstructor | StringConstructor |
|
|
9
|
+
type: (NumberConstructor | StringConstructor | ArrayConstructor | ObjectConstructor | BooleanConstructor | DateConstructor)[];
|
|
10
10
|
default: boolean;
|
|
11
11
|
};
|
|
12
12
|
value: {
|
|
13
|
-
type: (NumberConstructor | StringConstructor |
|
|
13
|
+
type: (NumberConstructor | StringConstructor | ArrayConstructor | ObjectConstructor | BooleanConstructor | DateConstructor)[];
|
|
14
14
|
default: boolean;
|
|
15
15
|
};
|
|
16
16
|
uncheckedValue: {
|
|
17
|
-
type: (NumberConstructor | StringConstructor |
|
|
17
|
+
type: (NumberConstructor | StringConstructor | ArrayConstructor | ObjectConstructor | BooleanConstructor | DateConstructor)[];
|
|
18
18
|
default: boolean;
|
|
19
19
|
};
|
|
20
20
|
checked: {
|
|
@@ -30,15 +30,15 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
30
30
|
required: true;
|
|
31
31
|
};
|
|
32
32
|
modelValue: {
|
|
33
|
-
type: (NumberConstructor | StringConstructor |
|
|
33
|
+
type: (NumberConstructor | StringConstructor | ArrayConstructor | ObjectConstructor | BooleanConstructor | DateConstructor)[];
|
|
34
34
|
default: boolean;
|
|
35
35
|
};
|
|
36
36
|
value: {
|
|
37
|
-
type: (NumberConstructor | StringConstructor |
|
|
37
|
+
type: (NumberConstructor | StringConstructor | ArrayConstructor | ObjectConstructor | BooleanConstructor | DateConstructor)[];
|
|
38
38
|
default: boolean;
|
|
39
39
|
};
|
|
40
40
|
uncheckedValue: {
|
|
41
|
-
type: (NumberConstructor | StringConstructor |
|
|
41
|
+
type: (NumberConstructor | StringConstructor | ArrayConstructor | ObjectConstructor | BooleanConstructor | DateConstructor)[];
|
|
42
42
|
default: boolean;
|
|
43
43
|
};
|
|
44
44
|
checked: {
|
|
@@ -28,7 +28,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
28
28
|
default: boolean;
|
|
29
29
|
};
|
|
30
30
|
containerClass: {
|
|
31
|
-
type: (StringConstructor |
|
|
31
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
32
32
|
default: undefined;
|
|
33
33
|
};
|
|
34
34
|
accept: {
|
|
@@ -67,7 +67,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
67
67
|
default: boolean;
|
|
68
68
|
};
|
|
69
69
|
containerClass: {
|
|
70
|
-
type: (StringConstructor |
|
|
70
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
71
71
|
default: undefined;
|
|
72
72
|
};
|
|
73
73
|
accept: {
|
|
@@ -72,8 +72,8 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
72
72
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
73
73
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
74
74
|
}, {
|
|
75
|
-
length: string | number;
|
|
76
75
|
error: boolean;
|
|
76
|
+
length: string | number;
|
|
77
77
|
size: SizeVariant;
|
|
78
78
|
modelValue: string;
|
|
79
79
|
disabled: boolean;
|
|
@@ -42,9 +42,9 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
42
42
|
}>> & {
|
|
43
43
|
onDismissed?: ((...args: any[]) => any) | undefined;
|
|
44
44
|
}, {
|
|
45
|
-
color: ColorVariant;
|
|
46
45
|
variant: StyleVariant;
|
|
47
46
|
size: SizeVariant;
|
|
47
|
+
color: ColorVariant;
|
|
48
48
|
dismissable: boolean;
|
|
49
49
|
}, {}>;
|
|
50
50
|
export default _default;
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"PBreadcrumb": "components/breadcrumbs/Breadcrumb.vue",
|
|
7
7
|
"PBreadcrumbItem": "components/breadcrumbs/BreadcrumbItem.vue",
|
|
8
8
|
"PBreadcrumbItemDropdown": "components/breadcrumbs/BreadcrumbItemDropdown.vue",
|
|
9
|
-
"PButton": "components/button/Button.vue",
|
|
10
9
|
"PBanner": "components/banner/Banner.vue",
|
|
10
|
+
"PButton": "components/button/Button.vue",
|
|
11
11
|
"PButtonGroup": "components/button-group/ButtonGroup.vue",
|
|
12
12
|
"PCalendar": "components/calendar/Calendar.vue",
|
|
13
|
-
"PCaption": "components/caption/Caption.vue",
|
|
14
13
|
"PCamera": "components/camera/Camera.vue",
|
|
14
|
+
"PCaption": "components/caption/Caption.vue",
|
|
15
15
|
"PCard": "components/card/Card.vue",
|
|
16
16
|
"PCardSection": "components/card/CardSection.vue",
|
|
17
17
|
"PCarousel": "components/carousel/Carousel.vue",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"PChartVal": "components/chart/ChartVal.vue",
|
|
23
23
|
"PCheckbox": "components/checkbox/Checkbox.vue",
|
|
24
24
|
"PCollapse": "components/collapse/Collapse.vue",
|
|
25
|
-
"PDatepicker": "components/datepicker/Datepicker.vue",
|
|
26
|
-
"PCropper": "components/cropper/Cropper.vue",
|
|
27
25
|
"PContextualBar": "components/contextual-bar/ContextualBar.vue",
|
|
26
|
+
"PCropper": "components/cropper/Cropper.vue",
|
|
27
|
+
"PDatepicker": "components/datepicker/Datepicker.vue",
|
|
28
|
+
"PDivider": "components/divider/Divider.vue",
|
|
28
29
|
"PDialog": "components/dialog/Dialog.vue",
|
|
29
30
|
"PDialogFooter": "components/dialog/DialogFooter.vue",
|
|
30
|
-
"PDivider": "components/divider/Divider.vue",
|
|
31
31
|
"PDot": "components/dot/Dot.vue",
|
|
32
32
|
"PDropdown": "components/dropdown/Dropdown.vue",
|
|
33
33
|
"PDropdownHeader": "components/dropdown/DropdownHeader.vue",
|
|
@@ -44,16 +44,11 @@
|
|
|
44
44
|
"PInputPassword": "components/input-password/InputPassword.vue",
|
|
45
45
|
"PInputPin": "components/input-pin/InputPin.vue",
|
|
46
46
|
"PInputRange": "components/input-range/InputRange.vue",
|
|
47
|
+
"PLabel": "components/label/Label.vue",
|
|
47
48
|
"PListGroup": "components/list-group/ListGroup.vue",
|
|
48
49
|
"PListGroupItem": "components/list-group/ListGroupItem.vue",
|
|
49
|
-
"PLabel": "components/label/Label.vue",
|
|
50
50
|
"PMain": "components/main/Main.vue",
|
|
51
51
|
"PModal": "components/modal/Modal.vue",
|
|
52
|
-
"PNavbarNavMenu": "components/navbar-menu/NavbarNavMenu.vue",
|
|
53
|
-
"PNavbar": "components/navbar/Navbar.vue",
|
|
54
|
-
"PNavbarBrand": "components/navbar/NavbarBrand.vue",
|
|
55
|
-
"PNavbarNav": "components/navbar/NavbarNav.vue",
|
|
56
|
-
"PNavbarToggle": "components/navbar/NavbarToggle.vue",
|
|
57
52
|
"PNav": "components/nav/Nav.vue",
|
|
58
53
|
"PNavCollapse": "components/nav/NavCollapse.vue",
|
|
59
54
|
"PNavForm": "components/nav/NavForm.vue",
|
|
@@ -61,28 +56,33 @@
|
|
|
61
56
|
"PNavItemDropdown": "components/nav/NavItemDropdown.vue",
|
|
62
57
|
"PNavSubItem": "components/nav/NavSubItem.vue",
|
|
63
58
|
"PNavText": "components/nav/NavText.vue",
|
|
59
|
+
"PNavbar": "components/navbar/Navbar.vue",
|
|
60
|
+
"PNavbarBrand": "components/navbar/NavbarBrand.vue",
|
|
61
|
+
"PNavbarNav": "components/navbar/NavbarNav.vue",
|
|
62
|
+
"PNavbarToggle": "components/navbar/NavbarToggle.vue",
|
|
63
|
+
"PNavbarNavMenu": "components/navbar-menu/NavbarNavMenu.vue",
|
|
64
64
|
"POverlay": "components/overlay/Overlay.vue",
|
|
65
|
-
"PPagination": "components/pagination/Pagination.vue",
|
|
66
65
|
"PPage": "components/page/Page.vue",
|
|
66
|
+
"PPagination": "components/pagination/Pagination.vue",
|
|
67
67
|
"PPdfHelipad": "components/pdf-helipad/PdfHelipad.vue",
|
|
68
68
|
"PPdfObject": "components/pdf-object/PdfObject.vue",
|
|
69
69
|
"PPdfObjectAddon": "components/pdf-object/PdfObjectAddon.vue",
|
|
70
70
|
"PPdfObjectDebugger": "components/pdf-object/PdfObjectDebugger.vue",
|
|
71
71
|
"PPdfObjects": "components/pdf-object/PdfObjects.vue",
|
|
72
72
|
"PPdfText": "components/pdf-text/PdfText.vue",
|
|
73
|
-
"PProgress": "components/progress/Progress.vue",
|
|
74
|
-
"PProgressItem": "components/progress/ProgressItem.vue",
|
|
75
73
|
"PPdfError": "components/pdf-viewer/PdfError.vue",
|
|
76
74
|
"PPdfLoading": "components/pdf-viewer/PdfLoading.vue",
|
|
77
75
|
"PPdfNavigation": "components/pdf-viewer/PdfNavigation.vue",
|
|
78
76
|
"PPdfViewer": "components/pdf-viewer/PdfViewer.vue",
|
|
77
|
+
"PProgress": "components/progress/Progress.vue",
|
|
78
|
+
"PProgressItem": "components/progress/ProgressItem.vue",
|
|
79
79
|
"PProgressIndicator": "components/progress-indicator/ProgressIndicator.vue",
|
|
80
80
|
"PProgressbar": "components/progressbar/Progressbar.vue",
|
|
81
81
|
"PRadio": "components/radio/Radio.vue",
|
|
82
|
+
"PRingbar": "components/ringbar/Ringbar.vue",
|
|
82
83
|
"PSelect": "components/select/Select.vue",
|
|
83
84
|
"PSelectInput": "components/select/SelectInput.vue",
|
|
84
85
|
"PSelectTags": "components/select/SelectTags.vue",
|
|
85
|
-
"PRingbar": "components/ringbar/Ringbar.vue",
|
|
86
86
|
"PSheet": "components/sheet/Sheet.vue",
|
|
87
87
|
"PSidebar": "components/sidebar/Sidebar.vue",
|
|
88
88
|
"PSidebarBrand": "components/sidebar/SidebarBrand.vue",
|
|
@@ -98,10 +98,10 @@
|
|
|
98
98
|
"PSpinnerRing": "components/spinner/SpinnerRing.vue",
|
|
99
99
|
"PSpinnerRinggo": "components/spinner/SpinnerRinggo.vue",
|
|
100
100
|
"PSpread": "components/spread/Spread.vue",
|
|
101
|
-
"PStrengthbar": "components/strengthbar/Strengthbar.vue",
|
|
102
101
|
"PStep": "components/steps/Step.vue",
|
|
103
102
|
"PStepSlider": "components/steps/StepSlider.vue",
|
|
104
103
|
"PSteps": "components/steps/Steps.vue",
|
|
104
|
+
"PStrengthbar": "components/strengthbar/Strengthbar.vue",
|
|
105
105
|
"PSubheading": "components/subheading/Subheading.vue",
|
|
106
106
|
"PTable": "components/table/Table.vue",
|
|
107
107
|
"PTableFlex": "components/table-flex/TableFlex.vue",
|
|
@@ -110,17 +110,17 @@
|
|
|
110
110
|
"PTab": "components/tabs/Tab.vue",
|
|
111
111
|
"PTabContent": "components/tabs/TabContent.vue",
|
|
112
112
|
"PTabs": "components/tabs/Tabs.vue",
|
|
113
|
-
"PTextarea": "components/textarea/Textarea.vue",
|
|
114
113
|
"PText": "components/text/Text.vue",
|
|
114
|
+
"PTextarea": "components/textarea/Textarea.vue",
|
|
115
115
|
"PToast": "components/toast/Toast.vue",
|
|
116
116
|
"PToastContainer": "components/toast/ToastContainer.vue",
|
|
117
117
|
"PToastRoot": "components/toast/ToastRoot.vue",
|
|
118
118
|
"PToggle": "components/toggle/Toggle.vue",
|
|
119
|
+
"PTooltip": "components/tooltip/Tooltip.vue",
|
|
120
|
+
"PTooltipContainer": "components/tooltip/TooltipContainer.vue",
|
|
119
121
|
"PTour": "components/tour/Tour.vue",
|
|
120
122
|
"PTourDialog": "components/tour/TourDialog.vue",
|
|
121
123
|
"PTourHighlight": "components/tour/TourHighlight.vue",
|
|
122
|
-
"PTooltip": "components/tooltip/Tooltip.vue",
|
|
123
|
-
"PTooltipContainer": "components/tooltip/TooltipContainer.vue",
|
|
124
124
|
"PTruncate": "components/truncate/Truncate.vue",
|
|
125
125
|
"PWizard": "components/wizard/Wizard.vue",
|
|
126
126
|
"PWizardBody": "components/wizard/WizardBody.vue",
|
|
@@ -46,23 +46,23 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
46
46
|
default: boolean;
|
|
47
47
|
};
|
|
48
48
|
headerClass: {
|
|
49
|
-
type: (StringConstructor |
|
|
49
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
50
50
|
default: undefined;
|
|
51
51
|
};
|
|
52
52
|
dialogClass: {
|
|
53
|
-
type: (StringConstructor |
|
|
53
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
54
54
|
default: undefined;
|
|
55
55
|
};
|
|
56
56
|
contentClass: {
|
|
57
|
-
type: (StringConstructor |
|
|
57
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
58
58
|
default: undefined;
|
|
59
59
|
};
|
|
60
60
|
bodyClass: {
|
|
61
|
-
type: (StringConstructor |
|
|
61
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
62
62
|
default: undefined;
|
|
63
63
|
};
|
|
64
64
|
footerClass: {
|
|
65
|
-
type: (StringConstructor |
|
|
65
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
66
66
|
default: undefined;
|
|
67
67
|
};
|
|
68
68
|
}, {
|
|
@@ -116,23 +116,23 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
116
116
|
default: boolean;
|
|
117
117
|
};
|
|
118
118
|
headerClass: {
|
|
119
|
-
type: (StringConstructor |
|
|
119
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
120
120
|
default: undefined;
|
|
121
121
|
};
|
|
122
122
|
dialogClass: {
|
|
123
|
-
type: (StringConstructor |
|
|
123
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
124
124
|
default: undefined;
|
|
125
125
|
};
|
|
126
126
|
contentClass: {
|
|
127
|
-
type: (StringConstructor |
|
|
127
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
128
128
|
default: undefined;
|
|
129
129
|
};
|
|
130
130
|
bodyClass: {
|
|
131
|
-
type: (StringConstructor |
|
|
131
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
132
132
|
default: undefined;
|
|
133
133
|
};
|
|
134
134
|
footerClass: {
|
|
135
|
-
type: (StringConstructor |
|
|
135
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
136
136
|
default: undefined;
|
|
137
137
|
};
|
|
138
138
|
}>> & {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { PropType } from 'vue-demi';
|
|
2
2
|
import type { AlignVariant, StyleVariant } from '.';
|
|
3
|
+
import type { RouteLocationRaw } from 'vue-router';
|
|
3
4
|
declare const _default: import("vue-demi").DefineComponent<{
|
|
4
5
|
fill: {
|
|
5
6
|
type: BooleanConstructor;
|
|
@@ -26,7 +27,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
26
27
|
default: undefined;
|
|
27
28
|
};
|
|
28
29
|
titleActionLabel: {
|
|
29
|
-
type:
|
|
30
|
+
type: PropType<RouteLocationRaw>;
|
|
30
31
|
default: undefined;
|
|
31
32
|
};
|
|
32
33
|
titleActionUrl: {
|
|
@@ -65,7 +66,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
65
66
|
default: undefined;
|
|
66
67
|
};
|
|
67
68
|
titleActionLabel: {
|
|
68
|
-
type:
|
|
69
|
+
type: PropType<RouteLocationRaw>;
|
|
69
70
|
default: undefined;
|
|
70
71
|
};
|
|
71
72
|
titleActionUrl: {
|
|
@@ -80,11 +81,11 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
80
81
|
fill: boolean;
|
|
81
82
|
variant: StyleVariant;
|
|
82
83
|
title: string;
|
|
83
|
-
align: AlignVariant;
|
|
84
84
|
vertical: boolean;
|
|
85
|
+
align: AlignVariant;
|
|
85
86
|
condensed: boolean;
|
|
86
87
|
justified: boolean;
|
|
87
|
-
titleActionLabel:
|
|
88
|
+
titleActionLabel: RouteLocationRaw;
|
|
88
89
|
titleActionUrl: string;
|
|
89
90
|
}, {}>;
|
|
90
91
|
export default _default;
|
|
@@ -18,7 +18,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
18
18
|
default: string;
|
|
19
19
|
};
|
|
20
20
|
linkClass: {
|
|
21
|
-
type: (StringConstructor |
|
|
21
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
22
22
|
default: undefined;
|
|
23
23
|
};
|
|
24
24
|
exact: {
|
|
@@ -47,7 +47,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
47
47
|
default: string;
|
|
48
48
|
};
|
|
49
49
|
linkClass: {
|
|
50
|
-
type: (StringConstructor |
|
|
50
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
51
51
|
default: undefined;
|
|
52
52
|
};
|
|
53
53
|
exact: {
|
|
@@ -32,7 +32,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
32
32
|
default: string;
|
|
33
33
|
};
|
|
34
34
|
menuClass: {
|
|
35
|
-
type: (StringConstructor |
|
|
35
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
36
36
|
default: undefined;
|
|
37
37
|
};
|
|
38
38
|
menuSize: {
|
|
@@ -75,7 +75,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
75
75
|
default: string;
|
|
76
76
|
};
|
|
77
77
|
menuClass: {
|
|
78
|
-
type: (StringConstructor |
|
|
78
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
79
79
|
default: undefined;
|
|
80
80
|
};
|
|
81
81
|
menuSize: {
|
|
@@ -116,9 +116,9 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
116
116
|
"onUpdate:height"?: ((...args: any[]) => any) | undefined;
|
|
117
117
|
}, {
|
|
118
118
|
y: number;
|
|
119
|
-
x: number;
|
|
120
119
|
width: number;
|
|
121
120
|
height: number;
|
|
121
|
+
x: number;
|
|
122
122
|
autofocus: boolean;
|
|
123
123
|
maxHeight: number;
|
|
124
124
|
maxWidth: number;
|
|
@@ -148,17 +148,17 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
148
148
|
default: number;
|
|
149
149
|
};
|
|
150
150
|
}>>, {
|
|
151
|
-
color: string;
|
|
152
151
|
size: number;
|
|
152
|
+
color: string;
|
|
153
153
|
text: string;
|
|
154
154
|
modelValue: string | File;
|
|
155
155
|
label: string;
|
|
156
156
|
modelModifiers: ModelModifier;
|
|
157
|
+
width: number;
|
|
158
|
+
height: number;
|
|
157
159
|
font: string;
|
|
158
160
|
padding: number;
|
|
159
161
|
lineHeight: number;
|
|
160
|
-
width: number;
|
|
161
|
-
height: number;
|
|
162
162
|
labelColor: string;
|
|
163
163
|
minSize: number;
|
|
164
164
|
maxSize: number;
|
|
@@ -16,9 +16,10 @@ export default function defineAsyncAdapter(loadFn, deps, opts) {
|
|
|
16
16
|
isLoading.value = true;
|
|
17
17
|
loadFn(keyword.value, page.value, config.perPage, props.modelValue).then((result) => {
|
|
18
18
|
if (Array.isArray(result) && result.length > 0) {
|
|
19
|
-
options.value.
|
|
20
|
-
page.value
|
|
21
|
-
}
|
|
19
|
+
options.value = [...options.value, ...result];
|
|
20
|
+
page.value = page.value + 1;
|
|
21
|
+
}
|
|
22
|
+
if (!Array.isArray(result) || result.length < config.perPage)
|
|
22
23
|
isFinish.value = true;
|
|
23
24
|
}).catch(console.error).finally(() => {
|
|
24
25
|
isLoading.value = false;
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
:class="classNames"
|
|
5
5
|
data-testid="sidebar-brand"
|
|
6
6
|
class="sidebar__brand">
|
|
7
|
-
<
|
|
7
|
+
<nuxt-link
|
|
8
8
|
v-if="href"
|
|
9
9
|
:href="href"
|
|
10
10
|
data-testid="sidebar-brand-link">
|
|
11
11
|
<slot />
|
|
12
|
-
</
|
|
12
|
+
</nuxt-link>
|
|
13
13
|
<template v-else>
|
|
14
14
|
<slot />
|
|
15
15
|
</template>
|
|
@@ -21,7 +21,7 @@ import { defineComponent, computed } from "vue-demi";
|
|
|
21
21
|
export default defineComponent({
|
|
22
22
|
props: {
|
|
23
23
|
href: {
|
|
24
|
-
type: String,
|
|
24
|
+
type: [String, Object],
|
|
25
25
|
default: void 0
|
|
26
26
|
},
|
|
27
27
|
sticky: {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { PropType } from 'vue-demi';
|
|
2
|
+
import type { RouteLocationRaw } from 'vue-router';
|
|
1
3
|
declare const _default: import("vue-demi").DefineComponent<{
|
|
2
4
|
href: {
|
|
3
|
-
type:
|
|
5
|
+
type: PropType<RouteLocationRaw>;
|
|
4
6
|
default: undefined;
|
|
5
7
|
};
|
|
6
8
|
sticky: {
|
|
@@ -15,7 +17,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
15
17
|
classNames: import("vue-demi").ComputedRef<string[]>;
|
|
16
18
|
}, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, {}, string, import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
17
19
|
href: {
|
|
18
|
-
type:
|
|
20
|
+
type: PropType<RouteLocationRaw>;
|
|
19
21
|
default: undefined;
|
|
20
22
|
};
|
|
21
23
|
sticky: {
|
|
@@ -28,7 +30,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
28
30
|
};
|
|
29
31
|
}>>, {
|
|
30
32
|
fixed: boolean;
|
|
31
|
-
href:
|
|
33
|
+
href: RouteLocationRaw;
|
|
32
34
|
sticky: boolean;
|
|
33
35
|
}, {}>;
|
|
34
36
|
export default _default;
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
</template>
|
|
63
63
|
|
|
64
64
|
<script lang="ts" setup>
|
|
65
|
+
import type { PropType } from 'vue-demi'
|
|
65
66
|
import {
|
|
66
67
|
inject,
|
|
67
68
|
ref,
|
|
@@ -72,6 +73,7 @@ import Text from '../text/Text.vue'
|
|
|
72
73
|
import { SIDEBAR_SETTINGS } from '.'
|
|
73
74
|
import Collapse from '../collapse/Collapse.vue'
|
|
74
75
|
import IconArrow from '@privyid/persona-icon/vue/chevron-down/16.vue'
|
|
76
|
+
import type { RouteLocationRaw } from 'vue-router'
|
|
75
77
|
|
|
76
78
|
defineOptions({
|
|
77
79
|
name : 'SidebarNav',
|
|
@@ -88,7 +90,7 @@ const props = defineProps({
|
|
|
88
90
|
default: undefined,
|
|
89
91
|
},
|
|
90
92
|
titleActionUrl: {
|
|
91
|
-
type : String,
|
|
93
|
+
type : [String, Object] as PropType<RouteLocationRaw>,
|
|
92
94
|
default: undefined,
|
|
93
95
|
},
|
|
94
96
|
bottom: {
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
<template #brand>
|
|
10
10
|
<slot />
|
|
11
11
|
</template>
|
|
12
|
+
<slot name="prepend" />
|
|
12
13
|
<SidebarNav
|
|
13
14
|
v-for="(menu, id) in menus"
|
|
14
15
|
:key="id"
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
</template>
|
|
56
57
|
</template>
|
|
57
58
|
</SidebarNav>
|
|
59
|
+
<slot name="append" />
|
|
58
60
|
<template
|
|
59
61
|
v-if="$slots.bottom"
|
|
60
62
|
#bottom>
|
|
@@ -2,6 +2,7 @@ import type { HTMLAttributes } from 'vue-demi';
|
|
|
2
2
|
import type { Component } from '../global/use-singleton';
|
|
3
3
|
import type { AlignVariant } from '../nav';
|
|
4
4
|
import type { LiteralUnion } from 'type-fest';
|
|
5
|
+
import type { RouteLocationRaw } from 'vue-router';
|
|
5
6
|
type Access = LiteralUnion<'*', string>;
|
|
6
7
|
interface AdditionalAttr extends HTMLAttributes {
|
|
7
8
|
[key: string]: unknown;
|
|
@@ -18,7 +19,7 @@ export interface SubMenu {
|
|
|
18
19
|
/**
|
|
19
20
|
* Menu URL
|
|
20
21
|
*/
|
|
21
|
-
url?:
|
|
22
|
+
url?: RouteLocationRaw;
|
|
22
23
|
/**
|
|
23
24
|
* Access Role
|
|
24
25
|
*/
|
|
@@ -45,7 +46,7 @@ export interface MenuItem {
|
|
|
45
46
|
/**
|
|
46
47
|
* Menu URL
|
|
47
48
|
*/
|
|
48
|
-
url?:
|
|
49
|
+
url?: RouteLocationRaw;
|
|
49
50
|
/**
|
|
50
51
|
* Menu Icon
|
|
51
52
|
*/
|
|
@@ -84,7 +85,7 @@ export interface Menu {
|
|
|
84
85
|
/**
|
|
85
86
|
* Action URL
|
|
86
87
|
*/
|
|
87
|
-
titleActionUrl?:
|
|
88
|
+
titleActionUrl?: RouteLocationRaw;
|
|
88
89
|
/**
|
|
89
90
|
* Enable collapse
|
|
90
91
|
* @default false
|
|
@@ -89,9 +89,9 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
89
89
|
text: string;
|
|
90
90
|
modelValue: string | File;
|
|
91
91
|
modelModifiers: ModelModifier;
|
|
92
|
-
font: string;
|
|
93
92
|
width: number;
|
|
94
93
|
height: number;
|
|
94
|
+
font: string;
|
|
95
95
|
maxlength: string | number;
|
|
96
96
|
maxwords: string | number;
|
|
97
97
|
}, {}>;
|
|
@@ -73,9 +73,9 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
73
73
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
74
74
|
}, {
|
|
75
75
|
modelValue: number;
|
|
76
|
-
animation: AnimationVariant;
|
|
77
|
-
loop: boolean;
|
|
78
76
|
direction: DirectionVariant;
|
|
77
|
+
loop: boolean;
|
|
78
|
+
animation: AnimationVariant;
|
|
79
79
|
onBeforePrev: TravelHook;
|
|
80
80
|
onBeforeNext: TravelHook;
|
|
81
81
|
keepAlive: boolean;
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
:disabled="tab.disabled"
|
|
23
23
|
:active="i === active"
|
|
24
24
|
:class="{
|
|
25
|
-
'nav__item--no-icon' : (!tab.slots
|
|
26
|
-
'nav__item--no-label': (!tab.title && !tab.slots
|
|
25
|
+
'nav__item--no-icon' : (!tab.slots?.icon),
|
|
26
|
+
'nav__item--no-label': (!tab.title && !tab.slots?.title)
|
|
27
27
|
}"
|
|
28
28
|
@click="selectTab(i, tab)">
|
|
29
29
|
<template #icon>
|
|
30
|
-
<template v-if="tab.slots
|
|
30
|
+
<template v-if="tab.slots?.icon">
|
|
31
31
|
<component :is="tab.slots.icon" />
|
|
32
32
|
</template>
|
|
33
33
|
</template>
|
|
34
|
-
<template v-if="tab.slots
|
|
34
|
+
<template v-if="tab.slots?.title">
|
|
35
35
|
<component :is="tab.slots.title" />
|
|
36
36
|
</template>
|
|
37
37
|
<template v-else>
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
<script>
|
|
13
13
|
import {
|
|
14
14
|
defineComponent,
|
|
15
|
-
computed
|
|
15
|
+
computed,
|
|
16
|
+
resolveComponent
|
|
16
17
|
} from "vue-demi";
|
|
17
18
|
export default defineComponent({
|
|
18
19
|
props: {
|
|
@@ -21,7 +22,7 @@ export default defineComponent({
|
|
|
21
22
|
default: "body"
|
|
22
23
|
},
|
|
23
24
|
href: {
|
|
24
|
-
type: String,
|
|
25
|
+
type: [String, Object],
|
|
25
26
|
default: void 0
|
|
26
27
|
},
|
|
27
28
|
weight: {
|
|
@@ -39,7 +40,7 @@ export default defineComponent({
|
|
|
39
40
|
},
|
|
40
41
|
setup(props) {
|
|
41
42
|
const elementNames = computed(() => {
|
|
42
|
-
return props.href ? "
|
|
43
|
+
return props.href ? resolveComponent("nuxt-link") : props.element;
|
|
43
44
|
});
|
|
44
45
|
const classNames = computed(() => {
|
|
45
46
|
const result = [""];
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import type { PropType } from 'vue-demi';
|
|
2
2
|
import type { StyleVariant, ElementVariant } from '.';
|
|
3
3
|
import type { WeightVariant, TransformVariant } from '../heading';
|
|
4
|
+
import type { RouteLocationRaw } from 'vue-router';
|
|
4
5
|
declare const _default: import("vue-demi").DefineComponent<{
|
|
5
6
|
variant: {
|
|
6
7
|
type: PropType<StyleVariant>;
|
|
7
8
|
default: string;
|
|
8
9
|
};
|
|
9
10
|
href: {
|
|
10
|
-
type:
|
|
11
|
+
type: PropType<RouteLocationRaw>;
|
|
11
12
|
default: undefined;
|
|
12
13
|
};
|
|
13
14
|
weight: {
|
|
@@ -24,14 +25,14 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
24
25
|
};
|
|
25
26
|
}, {
|
|
26
27
|
classNames: import("vue-demi").ComputedRef<string[]>;
|
|
27
|
-
elementNames: import("vue-demi").ComputedRef<
|
|
28
|
+
elementNames: import("vue-demi").ComputedRef<string | import("vue-demi").ComponentOptions<{}, any, any, import("vue-demi").ComputedOptions, import("vue-demi").MethodOptions, any, any, any, any> | import("vue-demi").FunctionalComponent<{}, any, any>>;
|
|
28
29
|
}, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, {}, string, import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
29
30
|
variant: {
|
|
30
31
|
type: PropType<StyleVariant>;
|
|
31
32
|
default: string;
|
|
32
33
|
};
|
|
33
34
|
href: {
|
|
34
|
-
type:
|
|
35
|
+
type: PropType<RouteLocationRaw>;
|
|
35
36
|
default: undefined;
|
|
36
37
|
};
|
|
37
38
|
weight: {
|
|
@@ -48,7 +49,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
48
49
|
};
|
|
49
50
|
}>>, {
|
|
50
51
|
variant: StyleVariant;
|
|
51
|
-
href:
|
|
52
|
+
href: RouteLocationRaw;
|
|
52
53
|
element: ElementVariant;
|
|
53
54
|
weight: WeightVariant;
|
|
54
55
|
transform: TransformVariant;
|
|
@@ -78,6 +78,7 @@ export default defineComponent({
|
|
|
78
78
|
<style lang="postcss">
|
|
79
79
|
.toast-container {
|
|
80
80
|
--p-toast-z-index: theme(zIndex.toast);
|
|
81
|
+
|
|
81
82
|
@apply z-[var(--p-toast-z-index)] fixed flex flex-col space-y-2 max-h-screen overflow-visible;
|
|
82
83
|
|
|
83
84
|
&--top-right {
|
|
@@ -145,6 +146,18 @@ export default defineComponent({
|
|
|
145
146
|
}
|
|
146
147
|
}
|
|
147
148
|
}
|
|
149
|
+
|
|
150
|
+
&--top-left,
|
|
151
|
+
&--top-center,
|
|
152
|
+
&--top-right {
|
|
153
|
+
@apply justify-start;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&--bottom-left,
|
|
157
|
+
&--bottom-center,
|
|
158
|
+
&--bottom-right {
|
|
159
|
+
@apply justify-end;
|
|
160
|
+
}
|
|
148
161
|
}
|
|
149
162
|
|
|
150
163
|
.toast {
|
|
@@ -42,7 +42,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
42
42
|
default: boolean;
|
|
43
43
|
};
|
|
44
44
|
switchClass: {
|
|
45
|
-
type: (StringConstructor |
|
|
45
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
46
46
|
default: undefined;
|
|
47
47
|
};
|
|
48
48
|
}, {
|
|
@@ -91,7 +91,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
91
91
|
default: boolean;
|
|
92
92
|
};
|
|
93
93
|
switchClass: {
|
|
94
|
-
type: (StringConstructor |
|
|
94
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
95
95
|
default: undefined;
|
|
96
96
|
};
|
|
97
97
|
}>> & {
|
|
@@ -19,7 +19,8 @@ import {
|
|
|
19
19
|
defineComponent,
|
|
20
20
|
ref,
|
|
21
21
|
shallowRef,
|
|
22
|
-
watchEffect
|
|
22
|
+
watchEffect,
|
|
23
|
+
onBeforeUnmount
|
|
23
24
|
} from "vue-demi";
|
|
24
25
|
import TourDialog from "./TourDialog.vue";
|
|
25
26
|
import TourHighlight from "./TourHighlight.vue";
|
|
@@ -61,7 +62,7 @@ export default defineComponent({
|
|
|
61
62
|
tour.value.style.visibility = middlewareData.hide.referenceHidden ? "hidden" : "visible";
|
|
62
63
|
}
|
|
63
64
|
});
|
|
64
|
-
});
|
|
65
|
+
}, { animationFrame: true });
|
|
65
66
|
onCleanup(cleanup);
|
|
66
67
|
}
|
|
67
68
|
});
|
|
@@ -80,6 +81,9 @@ export default defineComponent({
|
|
|
80
81
|
function hide() {
|
|
81
82
|
isShow.value = false;
|
|
82
83
|
}
|
|
84
|
+
onBeforeUnmount(() => {
|
|
85
|
+
hide();
|
|
86
|
+
});
|
|
83
87
|
return {
|
|
84
88
|
isShow,
|
|
85
89
|
dialog,
|
|
@@ -35,7 +35,7 @@ export default defineComponent({
|
|
|
35
35
|
hightlight.value.style.height = `${bounding.height + padding}px`;
|
|
36
36
|
hightlight.value.style.left = `${bounding.left - padding / 2}px`;
|
|
37
37
|
hightlight.value.style.top = `${bounding.top - padding / 2}px`;
|
|
38
|
-
});
|
|
38
|
+
}, { animationFrame: true });
|
|
39
39
|
onCleanup(cleanup);
|
|
40
40
|
}
|
|
41
41
|
});
|
package/dist/core/index.d.ts
CHANGED
|
@@ -13,7 +13,8 @@ export { toBase64, fromBase64, } from '../components/utils/base64';
|
|
|
13
13
|
export { default as CaptureAdapter, } from '../components/camera/adapter/capture';
|
|
14
14
|
export { default as LivenessAdapter, } from '../components/camera/adapter/liveness';
|
|
15
15
|
export { default as QrCodeAdapter, } from '../components/camera/adapter/qr-code';
|
|
16
|
-
export { defineAdapter, } from '../components/
|
|
16
|
+
export { defineAdapter as defineSelectAdapter, } from '../components/select/adapter/adapter';
|
|
17
|
+
export { defineAdapter as defineCameraAdapter, } from '../components/camera/adapter/adapter';
|
|
17
18
|
export { defineFilter, } from '../components/filterbar';
|
|
18
19
|
export { markdown, } from '../components/markdown';
|
|
19
20
|
export { useStore, initStore, createStore, setStore, setLang, getLang, useLang, type State, } from '../components/global/store';
|
|
@@ -32,3 +33,4 @@ export { default as useLoading, } from '../components/overlay/utils/use-loading'
|
|
|
32
33
|
export { findAllChildren, toBoolean, } from '../components/utils/vnode';
|
|
33
34
|
export { createSpinner, createAlias, createText, } from '../components/avatar/utils/create-image';
|
|
34
35
|
export { useSelector, } from '../components/pdf-object/utils/use-selector';
|
|
36
|
+
export { getDocument, } from '../components/pdf-viewer/utils/pdfjs';
|
package/dist/core/index.mjs
CHANGED
|
@@ -49,7 +49,10 @@ export {
|
|
|
49
49
|
default as QrCodeAdapter
|
|
50
50
|
} from "../components/camera/adapter/qr-code";
|
|
51
51
|
export {
|
|
52
|
-
defineAdapter
|
|
52
|
+
defineAdapter as defineSelectAdapter
|
|
53
|
+
} from "../components/select/adapter/adapter";
|
|
54
|
+
export {
|
|
55
|
+
defineAdapter as defineCameraAdapter
|
|
53
56
|
} from "../components/camera/adapter/adapter";
|
|
54
57
|
export {
|
|
55
58
|
defineFilter
|
|
@@ -113,3 +116,6 @@ export {
|
|
|
113
116
|
export {
|
|
114
117
|
useSelector
|
|
115
118
|
} from "../components/pdf-object/utils/use-selector";
|
|
119
|
+
export {
|
|
120
|
+
getDocument
|
|
121
|
+
} from "../components/pdf-viewer/utils/pdfjs";
|
package/dist/module.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@privyid/persona",
|
|
3
3
|
"description": "Persona core package",
|
|
4
|
-
"version": "0.25.
|
|
4
|
+
"version": "0.25.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"url": "https://github.com/privy-open-source/design-system.git",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"date-fns": "2.30.0",
|
|
74
74
|
"defu": "6.1.3",
|
|
75
75
|
"fast-equals": "^5.0.0",
|
|
76
|
-
"fuse.js": "
|
|
77
|
-
"interactjs": "1.10.
|
|
76
|
+
"fuse.js": "7.0.0",
|
|
77
|
+
"interactjs": "1.10.20",
|
|
78
78
|
"lodash-es": "4.17.21",
|
|
79
79
|
"marked": "5.1.2",
|
|
80
80
|
"nanodelay": "2.0.2",
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"extends @privyid/browserslist-config"
|
|
93
93
|
],
|
|
94
94
|
"peerDependencies": {
|
|
95
|
-
"@privyid/browserslist-config": "^0.25.
|
|
96
|
-
"@privyid/tailwind-preset": "^0.25.
|
|
95
|
+
"@privyid/browserslist-config": "^0.25.2",
|
|
96
|
+
"@privyid/tailwind-preset": "^0.25.2",
|
|
97
97
|
"postcss-custom-properties": "^12.1.11 || ^13.0.0",
|
|
98
98
|
"postcss-hexrgba": "^2.1.0",
|
|
99
99
|
"postcss-lighten-darken": "^0.9.0",
|
|
@@ -104,8 +104,8 @@
|
|
|
104
104
|
"@nuxt/module-builder": "^0.5.0",
|
|
105
105
|
"@nuxt/schema": "3.7.4",
|
|
106
106
|
"@nuxtjs/tailwindcss": "^6.2.0",
|
|
107
|
-
"@privyid/browserslist-config": "^0.25.
|
|
108
|
-
"@privyid/tailwind-preset": "^0.25.
|
|
107
|
+
"@privyid/browserslist-config": "^0.25.2",
|
|
108
|
+
"@privyid/tailwind-preset": "^0.25.2",
|
|
109
109
|
"@types/sanitize-html": "^2",
|
|
110
110
|
"browserslist-to-esbuild": "^1.2.0",
|
|
111
111
|
"nuxt": "3.7.4",
|