@webitel/ui-sdk 25.8.74 → 25.8.75
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/ui-sdk.js +26 -25
- package/dist/ui-sdk.umd.cjs +1 -1
- package/package.json +2 -2
- package/src/components/wt-popover/wt-popover.vue +10 -3
- package/types/components/wt-action-bar/wt-action-bar.vue.d.ts +2 -2
- package/types/components/wt-button/wt-button.vue.d.ts +2 -2
- package/types/components/wt-datepicker/wt-datepicker.vue.d.ts +2 -2
- package/types/components/wt-icon/wt-icon.vue.d.ts +1 -1
- package/types/components/wt-icon-action/wt-icon-action.vue.d.ts +2 -2
- package/types/components/wt-item-link/wt-item-link.vue.d.ts +2 -2
- package/types/components/wt-popover/wt-popover.vue.d.ts +9 -4
- package/types/components/wt-popup/wt-popup.vue.d.ts +1 -1
- package/types/components/wt-rounded-action/wt-rounded-action.vue.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "25.8.
|
|
3
|
+
"version": "25.8.75",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"make-all": "npm version patch --git-tag-version false && npm run build && (npm run build:types || true) && (npm run lint:fix || true) && npm run publish-lib",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@vuelidate/validators": "^2.0.4",
|
|
56
56
|
"@vuepic/vue-datepicker": "^4.5.1",
|
|
57
57
|
"@vueuse/components": "^13.0.0",
|
|
58
|
-
"@webitel/api-services": "^0.0.
|
|
58
|
+
"@webitel/api-services": "^0.0.42",
|
|
59
59
|
"@webitel/styleguide": "^24.12.59",
|
|
60
60
|
"autosize": "^6.0.1",
|
|
61
61
|
"axios": "^1.8.3",
|
|
@@ -25,10 +25,13 @@
|
|
|
25
25
|
import { PopoverEmitsOptions, PopoverProps } from 'primevue';
|
|
26
26
|
import { defineExpose, useAttrs, useTemplateRef } from 'vue';
|
|
27
27
|
|
|
28
|
+
interface Props extends PopoverProps {
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
}
|
|
31
|
+
|
|
28
32
|
const attrs = useAttrs();
|
|
29
33
|
const innerPopover = useTemplateRef('innerPopover');
|
|
30
|
-
|
|
31
|
-
withDefaults(defineProps<PopoverProps>(), {
|
|
34
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
32
35
|
appendTo: 'body',
|
|
33
36
|
baseZIndex: 0,
|
|
34
37
|
autoZIndex: true,
|
|
@@ -37,15 +40,19 @@ withDefaults(defineProps<PopoverProps>(), {
|
|
|
37
40
|
pt: null,
|
|
38
41
|
ptOptions: null,
|
|
39
42
|
closeOnEscape: true,
|
|
40
|
-
unstyled: false
|
|
43
|
+
unstyled: false,
|
|
44
|
+
disabled: false
|
|
41
45
|
});
|
|
42
46
|
defineEmits<PopoverEmitsOptions>();
|
|
43
47
|
|
|
44
48
|
const toggle = (event?: Event, target?: HTMLElement | null | undefined) => {
|
|
49
|
+
if (props.disabled) return;
|
|
50
|
+
|
|
45
51
|
innerPopover.value?.toggle(event, target ?? undefined);
|
|
46
52
|
};
|
|
47
53
|
|
|
48
54
|
const show = (event?: Event, target?: HTMLElement | null | undefined) => {
|
|
55
|
+
if (props.disabled) return;
|
|
49
56
|
// Opens the popover.
|
|
50
57
|
// `target` is the element the popover will be positioned relative to.
|
|
51
58
|
// If not provided, the popover will be positioned relative to the `activator` slot element by default.
|
|
@@ -5,14 +5,14 @@ type __VLS_WithSlots<T, S> = T & (new () => {
|
|
|
5
5
|
});
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
7
7
|
$emit: (event: string, ...args: any[]) => void;
|
|
8
|
-
mode: string;
|
|
9
8
|
disabled: boolean;
|
|
9
|
+
mode: string;
|
|
10
10
|
include: unknown[];
|
|
11
11
|
exclude: unknown[];
|
|
12
12
|
size?: string;
|
|
13
13
|
$props: {
|
|
14
|
-
readonly mode?: string;
|
|
15
14
|
readonly disabled?: boolean;
|
|
15
|
+
readonly mode?: string;
|
|
16
16
|
readonly include?: unknown[];
|
|
17
17
|
readonly exclude?: unknown[];
|
|
18
18
|
readonly size?: string;
|
|
@@ -36,8 +36,8 @@ declare const __VLS_self: import("vue").DefineComponent<WtButtonProps, {
|
|
|
36
36
|
onClick?: (...args: any[]) => any;
|
|
37
37
|
}>, {
|
|
38
38
|
color: ButtonColor;
|
|
39
|
-
size: ComponentSize;
|
|
40
39
|
disabled: boolean;
|
|
40
|
+
size: ComponentSize;
|
|
41
41
|
wide: boolean;
|
|
42
42
|
loading: boolean;
|
|
43
43
|
widthByContent: boolean;
|
|
@@ -49,8 +49,8 @@ declare const __VLS_component: import("vue").DefineComponent<WtButtonProps, {},
|
|
|
49
49
|
onClick?: (...args: any[]) => any;
|
|
50
50
|
}>, {
|
|
51
51
|
color: ButtonColor;
|
|
52
|
-
size: ComponentSize;
|
|
53
52
|
disabled: boolean;
|
|
53
|
+
size: ComponentSize;
|
|
54
54
|
wide: boolean;
|
|
55
55
|
loading: boolean;
|
|
56
56
|
widthByContent: boolean;
|
|
@@ -8,8 +8,8 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
|
8
8
|
value: string | number;
|
|
9
9
|
label: string;
|
|
10
10
|
required: boolean;
|
|
11
|
-
mode: string;
|
|
12
11
|
disabled: boolean;
|
|
12
|
+
mode: string;
|
|
13
13
|
clearable: boolean;
|
|
14
14
|
placeholder: string;
|
|
15
15
|
lang: string;
|
|
@@ -20,8 +20,8 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
|
20
20
|
readonly value?: string | number;
|
|
21
21
|
readonly label?: string;
|
|
22
22
|
readonly required?: boolean;
|
|
23
|
-
readonly mode?: string;
|
|
24
23
|
readonly disabled?: boolean;
|
|
24
|
+
readonly mode?: string;
|
|
25
25
|
readonly clearable?: boolean;
|
|
26
26
|
readonly placeholder?: string;
|
|
27
27
|
readonly lang?: string;
|
|
@@ -16,8 +16,8 @@ interface Props {
|
|
|
16
16
|
}
|
|
17
17
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
18
18
|
color: IconColor;
|
|
19
|
-
size: ComponentSize;
|
|
20
19
|
disabled: boolean;
|
|
20
|
+
size: ComponentSize;
|
|
21
21
|
iconPrefix: string;
|
|
22
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
2
|
$emit: (event: "click" | "mousedown", ...args: any[]) => void;
|
|
3
|
-
size: string;
|
|
4
3
|
disabled: boolean;
|
|
4
|
+
size: string;
|
|
5
5
|
action: string;
|
|
6
6
|
$props: {
|
|
7
|
-
readonly size?: string;
|
|
8
7
|
readonly disabled?: boolean;
|
|
8
|
+
readonly size?: string;
|
|
9
9
|
readonly action?: string;
|
|
10
10
|
};
|
|
11
11
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -5,16 +5,16 @@ type __VLS_WithSlots<T, S> = T & (new () => {
|
|
|
5
5
|
});
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
7
7
|
link: string | Record<string, any>;
|
|
8
|
+
disabled: boolean;
|
|
8
9
|
target: string;
|
|
9
10
|
id: string | number;
|
|
10
|
-
disabled: boolean;
|
|
11
11
|
routeName: string;
|
|
12
12
|
invisible: boolean;
|
|
13
13
|
$props: {
|
|
14
14
|
readonly link?: string | Record<string, any>;
|
|
15
|
+
readonly disabled?: boolean;
|
|
15
16
|
readonly target?: string;
|
|
16
17
|
readonly id?: string | number;
|
|
17
|
-
readonly disabled?: boolean;
|
|
18
18
|
readonly routeName?: string;
|
|
19
19
|
readonly invisible?: boolean;
|
|
20
20
|
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { PopoverProps } from 'primevue';
|
|
2
|
+
interface Props extends PopoverProps {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
}
|
|
2
5
|
declare const attrs: {
|
|
3
6
|
[x: string]: unknown;
|
|
4
7
|
};
|
|
@@ -19,7 +22,7 @@ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$
|
|
|
19
22
|
} & {
|
|
20
23
|
default?: (props: typeof __VLS_9) => any;
|
|
21
24
|
}>;
|
|
22
|
-
declare const __VLS_self: import("vue").DefineComponent<
|
|
25
|
+
declare const __VLS_self: import("vue").DefineComponent<Props, {
|
|
23
26
|
attrs: typeof attrs;
|
|
24
27
|
toggle: typeof toggle;
|
|
25
28
|
show: typeof show;
|
|
@@ -27,7 +30,7 @@ declare const __VLS_self: import("vue").DefineComponent<PopoverProps, {
|
|
|
27
30
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
31
|
show: () => any;
|
|
29
32
|
hide: () => any;
|
|
30
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
33
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
31
34
|
onShow?: () => any;
|
|
32
35
|
onHide?: () => any;
|
|
33
36
|
}>, {
|
|
@@ -40,15 +43,16 @@ declare const __VLS_self: import("vue").DefineComponent<PopoverProps, {
|
|
|
40
43
|
autoZIndex: boolean;
|
|
41
44
|
breakpoints: import("primevue").PopoverBreakpoints;
|
|
42
45
|
closeOnEscape: boolean | undefined;
|
|
46
|
+
disabled: boolean;
|
|
43
47
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
44
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
48
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
45
49
|
toggle: (event?: Event, target?: HTMLElement | null | undefined) => void;
|
|
46
50
|
show: (event?: Event, target?: HTMLElement | null | undefined) => void;
|
|
47
51
|
hide: (event?: Event) => void;
|
|
48
52
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
49
53
|
show: () => any;
|
|
50
54
|
hide: () => any;
|
|
51
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
55
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
52
56
|
onShow?: () => any;
|
|
53
57
|
onHide?: () => any;
|
|
54
58
|
}>, {
|
|
@@ -61,6 +65,7 @@ declare const __VLS_component: import("vue").DefineComponent<PopoverProps, {
|
|
|
61
65
|
autoZIndex: boolean;
|
|
62
66
|
breakpoints: import("primevue").PopoverBreakpoints;
|
|
63
67
|
closeOnEscape: boolean | undefined;
|
|
68
|
+
disabled: boolean;
|
|
64
69
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
65
70
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
66
71
|
export default _default;
|
|
@@ -38,9 +38,9 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
|
|
|
38
38
|
"onPopup:opened"?: () => any;
|
|
39
39
|
"onPopup:closed"?: () => any;
|
|
40
40
|
}>, {
|
|
41
|
+
disabled: boolean;
|
|
41
42
|
overflow: boolean;
|
|
42
43
|
size: ComponentSize;
|
|
43
|
-
disabled: boolean;
|
|
44
44
|
shown: boolean;
|
|
45
45
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
46
46
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -2,9 +2,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
2
2
|
$emit: (event: "click", ...args: any[]) => void;
|
|
3
3
|
color: string;
|
|
4
4
|
icon: string;
|
|
5
|
+
disabled: boolean;
|
|
5
6
|
size: string;
|
|
6
7
|
active: boolean;
|
|
7
|
-
disabled: boolean;
|
|
8
8
|
wide: boolean;
|
|
9
9
|
loading: boolean;
|
|
10
10
|
rounded: boolean;
|
|
@@ -12,9 +12,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
12
12
|
$props: {
|
|
13
13
|
readonly color?: string;
|
|
14
14
|
readonly icon?: string;
|
|
15
|
+
readonly disabled?: boolean;
|
|
15
16
|
readonly size?: string;
|
|
16
17
|
readonly active?: boolean;
|
|
17
|
-
readonly disabled?: boolean;
|
|
18
18
|
readonly wide?: boolean;
|
|
19
19
|
readonly loading?: boolean;
|
|
20
20
|
readonly rounded?: boolean;
|