@webitel/ui-sdk 25.8.17 → 25.8.19

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.
Files changed (35) hide show
  1. package/dist/img/sprite/index.js +1 -1
  2. package/dist/ui-sdk.css +1 -1
  3. package/dist/ui-sdk.js +6306 -5693
  4. package/dist/ui-sdk.umd.cjs +104 -104
  5. package/package.json +3 -3
  6. package/src/components/wt-button/wt-button.vue +66 -236
  7. package/src/components/wt-chip/wt-chip.scss +1 -0
  8. package/src/components/wt-navigation-bar/wt-navigation-bar.vue +14 -12
  9. package/src/css/main.scss +0 -8
  10. package/src/enums/ButtonColor/ButtonColor.ts +1 -0
  11. package/src/enums/WebitelApplications/AdminSections.js +1 -0
  12. package/src/modules/AgentStatusSelect/api/pause-cause.js +4 -3
  13. package/src/plugins/primevue/primevue.plugin.js +1 -1
  14. package/src/plugins/primevue/theme/components/button/button.js +4 -98
  15. package/src/plugins/primevue/theme/components/popover/popover.js +4 -7
  16. package/src/plugins/primevue/theme/components/tooltip/tooltip.js +4 -5
  17. package/src/plugins/primevue/theme/webitel-theme.js +1 -1
  18. package/types/components/wt-button/wt-button.vue.d.ts +56 -104
  19. package/types/components/wt-popover/wt-popover.vue.d.ts +4 -4
  20. package/types/components/wt-rounded-action/wt-rounded-action.vue.d.ts +2 -2
  21. package/types/components/wt-slider/wt-slider.vue.d.ts +2 -2
  22. package/types/enums/ButtonColor/ButtonColor.d.ts +1 -0
  23. package/types/plugins/primevue/theme/components/button/button.d.ts +515 -135
  24. package/types/plugins/primevue/theme/components/popover/popover.d.ts +20 -9
  25. package/types/plugins/primevue/theme/components/tooltip/tooltip.d.ts +22 -7
  26. package/src/plugins/primevue/theme/semantic/color-scheme/color-schema.js +0 -16
  27. package/src/plugins/primevue/theme/semantic/color-scheme/dark-color.js +0 -198
  28. package/src/plugins/primevue/theme/semantic/color-scheme/light-color.js +0 -198
  29. package/src/plugins/primevue/theme/semantic/color-scheme/palette.js +0 -516
  30. package/src/plugins/primevue/theme/semantic/semantic.js +0 -7
  31. package/types/plugins/primevue/theme/semantic/color-scheme/color-schema.d.ts +0 -1189
  32. package/types/plugins/primevue/theme/semantic/color-scheme/dark-color.d.ts +0 -162
  33. package/types/plugins/primevue/theme/semantic/color-scheme/light-color.d.ts +0 -162
  34. package/types/plugins/primevue/theme/semantic/color-scheme/palette.d.ts +0 -435
  35. package/types/plugins/primevue/theme/semantic/semantic.d.ts +0 -5
@@ -1,113 +1,65 @@
1
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- /**
3
- * @values 'primary', 'secondary', 'success', 'error', 'transfer', 'job', 'info'
4
- * @example <wt-button color="success"></wt-button>
5
- */
6
- color: {
7
- type: StringConstructor;
8
- default: string;
9
- };
10
- disabled: {
11
- type: BooleanConstructor;
12
- default: boolean;
13
- };
14
- loading: {
15
- type: BooleanConstructor;
16
- default: boolean;
17
- };
18
- /**
19
- * @values 'sm', 'md'
20
- * @example <wt-button size="sm"></wt-button>
21
- */
22
- size: {
23
- type: StringConstructor;
24
- default: string;
25
- options: string[];
26
- };
27
- /**
28
- * Stretches button to all available width
29
- */
30
- wide: {
31
- type: BooleanConstructor;
32
- default: boolean;
33
- };
34
- /**
35
- * Shrinks button to content width
36
- */
37
- widthByContent: {
38
- type: BooleanConstructor;
39
- default: boolean;
40
- };
41
- /**
42
- * sets wt-button line-height to 0 to prevent height changing: [stack overflow](https://stackoverflow.com/a/11126701)
43
- */
44
- containsIcon: {
45
- type: BooleanConstructor;
46
- default: boolean;
47
- description: string;
48
- };
49
- }>, {}, {
50
- showLoader: boolean;
51
- }, {
52
- colorClass(): string;
53
- loaderColor(): "on-dark";
54
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
55
- /**
56
- * @values 'primary', 'secondary', 'success', 'error', 'transfer', 'job', 'info'
57
- * @example <wt-button color="success"></wt-button>
58
- */
59
- color: {
60
- type: StringConstructor;
61
- default: string;
62
- };
63
- disabled: {
64
- type: BooleanConstructor;
65
- default: boolean;
66
- };
67
- loading: {
68
- type: BooleanConstructor;
69
- default: boolean;
70
- };
71
- /**
72
- * @values 'sm', 'md'
73
- * @example <wt-button size="sm"></wt-button>
74
- */
75
- size: {
76
- type: StringConstructor;
77
- default: string;
78
- options: string[];
79
- };
80
- /**
81
- * Stretches button to all available width
82
- */
83
- wide: {
84
- type: BooleanConstructor;
85
- default: boolean;
86
- };
87
- /**
88
- * Shrinks button to content width
89
- */
90
- widthByContent: {
91
- type: BooleanConstructor;
92
- default: boolean;
93
- };
94
- /**
95
- * sets wt-button line-height to 0 to prevent height changing: [stack overflow](https://stackoverflow.com/a/11126701)
96
- */
97
- containsIcon: {
98
- type: BooleanConstructor;
99
- default: boolean;
100
- description: string;
101
- };
102
- }>> & Readonly<{
1
+ import type { ButtonProps } from 'primevue';
2
+ import { ButtonColor, ComponentSize } from '../../enums';
3
+ declare const primevueSizeMap: {
4
+ sm: string;
5
+ md: string;
6
+ };
7
+ interface WtButtonProps extends /* @vue-ignore */ ButtonProps {
8
+ color?: ButtonColor;
9
+ disabled?: boolean;
10
+ loading?: boolean;
11
+ size?: ComponentSize;
12
+ wide?: boolean;
13
+ widthByContent?: boolean;
14
+ containsIcon?: boolean;
15
+ }
16
+ declare const emit: (event: "click", ...args: any[]) => void;
17
+ declare const attrs: {
18
+ [x: string]: unknown;
19
+ };
20
+ declare const showLoader: import("vue").Ref<boolean, boolean>;
21
+ declare const loaderColor: import("vue").ComputedRef<string>;
22
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
23
+ declare var __VLS_14: {};
24
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
25
+ default?: (props: typeof __VLS_14) => any;
26
+ }>;
27
+ declare const __VLS_self: import("vue").DefineComponent<WtButtonProps, {
28
+ primevueSizeMap: typeof primevueSizeMap;
29
+ emit: typeof emit;
30
+ attrs: typeof attrs;
31
+ showLoader: typeof showLoader;
32
+ loaderColor: typeof loaderColor;
33
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
34
+ click: (...args: any[]) => void;
35
+ }, string, import("vue").PublicProps, Readonly<WtButtonProps> & Readonly<{
103
36
  onClick?: (...args: any[]) => any;
104
37
  }>, {
105
- color: string;
106
- size: string;
38
+ color: ButtonColor;
39
+ size: ComponentSize;
107
40
  disabled: boolean;
108
41
  wide: boolean;
109
42
  loading: boolean;
110
43
  widthByContent: boolean;
111
44
  containsIcon: boolean;
112
45
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
46
+ declare const __VLS_component: import("vue").DefineComponent<WtButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
47
+ click: (...args: any[]) => void;
48
+ }, string, import("vue").PublicProps, Readonly<WtButtonProps> & Readonly<{
49
+ onClick?: (...args: any[]) => any;
50
+ }>, {
51
+ color: ButtonColor;
52
+ size: ComponentSize;
53
+ disabled: boolean;
54
+ wide: boolean;
55
+ loading: boolean;
56
+ widthByContent: boolean;
57
+ containsIcon: boolean;
58
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
59
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
113
60
  export default _default;
61
+ type __VLS_WithSlots<T, S> = T & {
62
+ new (): {
63
+ $slots: S;
64
+ };
65
+ };
@@ -19,12 +19,12 @@ declare const __VLS_self: import("vue").DefineComponent<PopoverProps, {
19
19
  onShow?: () => any;
20
20
  }>, {
21
21
  dt: import("@primevue/core").DesignToken<any>;
22
+ pt: any;
23
+ ptOptions: import("primevue/passthrough").PassThroughOptions;
22
24
  appendTo: import("@primevue/core").HintedString<"body" | "self"> | undefined | HTMLElement;
23
25
  baseZIndex: number;
24
26
  autoZIndex: boolean;
25
27
  breakpoints: import("primevue").PopoverBreakpoints;
26
- pt: any;
27
- ptOptions: import("primevue/passthrough").PassThroughOptions;
28
28
  closeOnEscape: boolean | undefined;
29
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
30
30
  declare const __VLS_component: import("vue").DefineComponent<PopoverProps, {
@@ -39,12 +39,12 @@ declare const __VLS_component: import("vue").DefineComponent<PopoverProps, {
39
39
  onShow?: () => any;
40
40
  }>, {
41
41
  dt: import("@primevue/core").DesignToken<any>;
42
+ pt: any;
43
+ ptOptions: import("primevue/passthrough").PassThroughOptions;
42
44
  appendTo: import("@primevue/core").HintedString<"body" | "self"> | undefined | HTMLElement;
43
45
  baseZIndex: number;
44
46
  autoZIndex: boolean;
45
47
  breakpoints: import("primevue").PopoverBreakpoints;
46
- pt: any;
47
- ptOptions: import("primevue/passthrough").PassThroughOptions;
48
48
  closeOnEscape: boolean | undefined;
49
49
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
50
50
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -7,8 +7,8 @@ declare const _default: import("vue").DefineComponent<{}, {
7
7
  disabled: boolean;
8
8
  wide: boolean;
9
9
  loading: boolean;
10
- iconPrefix: string;
11
10
  rounded: boolean;
11
+ iconPrefix: string;
12
12
  $props: {
13
13
  readonly color?: string;
14
14
  readonly icon?: string;
@@ -17,8 +17,8 @@ declare const _default: import("vue").DefineComponent<{}, {
17
17
  readonly disabled?: boolean;
18
18
  readonly wide?: boolean;
19
19
  readonly loading?: boolean;
20
- readonly iconPrefix?: string;
21
20
  readonly rounded?: boolean;
21
+ readonly iconPrefix?: string;
22
22
  };
23
23
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
24
24
  export default _default;
@@ -66,10 +66,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
66
66
  }>, {
67
67
  value: number;
68
68
  disabled: boolean;
69
+ step: number;
70
+ vertical: boolean;
69
71
  height: number;
70
72
  max: number;
71
73
  min: number;
72
- vertical: boolean;
73
- step: number;
74
74
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
75
75
  export default _default;
@@ -2,6 +2,7 @@ export declare const ButtonColor: {
2
2
  readonly PRIMARY: "primary";
3
3
  readonly SECONDARY: "secondary";
4
4
  readonly SUCCESS: "success";
5
+ readonly WARN: "warn";
5
6
  readonly ERROR: "error";
6
7
  readonly TRANSFER: "transfer";
7
8
  readonly JOB: "job";