@webitel/ui-sdk 25.12.17 → 25.12.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 (48) hide show
  1. package/dist/img/sprite/attention--filled.svg +3 -0
  2. package/dist/img/sprite/dislike.svg +3 -0
  3. package/dist/img/sprite/done--filled.svg +3 -0
  4. package/dist/img/sprite/index.js +8 -0
  5. package/dist/img/sprite/like.svg +3 -0
  6. package/dist/{install-Cofa5LGE.js → install-Cc5v28sQ.js} +11698 -11484
  7. package/dist/ui-sdk.css +1 -1
  8. package/dist/ui-sdk.js +1 -1
  9. package/dist/ui-sdk.umd.cjs +289 -202
  10. package/dist/{vidstack-Bq6c3Bam-Q5nXtJz2.js → vidstack-Bq6c3Bam-DsrzVnIy.js} +2 -2
  11. package/dist/{vidstack-D2pY00kU-D40uCWAe.js → vidstack-D2pY00kU-CfifXGPD.js} +2 -2
  12. package/dist/{vidstack-DDXt6fpN-FvFDbAsa.js → vidstack-DDXt6fpN-DLvflmce.js} +1 -1
  13. package/dist/{vidstack-D_-9AA6_-C-Htwec0.js → vidstack-D_-9AA6_-GJSNStr6.js} +1 -1
  14. package/dist/{vidstack-DqAw8m9J-BRlVVRQk.js → vidstack-DqAw8m9J-PZilPgEJ.js} +1 -1
  15. package/dist/{vidstack-audio-7C38pp1_.js → vidstack-audio-DAQFDjfz.js} +2 -2
  16. package/dist/{vidstack-dash-CxSwyU7C.js → vidstack-dash-Baa-mmY0.js} +3 -3
  17. package/dist/{vidstack-google-cast-CZozQtbi.js → vidstack-google-cast-BHt8nVcL.js} +3 -3
  18. package/dist/{vidstack-hls-CQlW-xbx.js → vidstack-hls-Vlmn3t6k.js} +3 -3
  19. package/dist/{vidstack-video-B0Lpleo1.js → vidstack-video-UBob8Q-T.js} +2 -2
  20. package/dist/{vidstack-vimeo-C6sbp9kx.js → vidstack-vimeo-DOSdlknH.js} +3 -3
  21. package/dist/{vidstack-youtube-eXJkySAi.js → vidstack-youtube-BYufexS8.js} +2 -2
  22. package/package.json +2 -2
  23. package/src/assets/icons/sprite/attention--filled.svg +3 -0
  24. package/src/assets/icons/sprite/dislike.svg +3 -0
  25. package/src/assets/icons/sprite/done--filled.svg +3 -0
  26. package/src/assets/icons/sprite/index.js +8 -0
  27. package/src/assets/icons/sprite/like.svg +3 -0
  28. package/src/components/wt-table/wt-table.vue +23 -18
  29. package/src/components/wt-textarea/wt-textarea.vue +109 -198
  30. package/src/modules/AgentStatusSelect/components/_internals/wt-cc-pause-cause-popup.vue +1 -2
  31. package/src/modules/AuditForm/components/audit-form.vue +2 -2
  32. package/src/modules/Userinfo/v2/api/UserSettingsAPI.ts +38 -0
  33. package/src/modules/Userinfo/v2/api/UserinfoAPI.ts +6 -1
  34. package/src/modules/Userinfo/v2/constants/UserSettingsConstants.ts +1 -0
  35. package/src/modules/Userinfo/v2/stores/settingsStore.ts +33 -0
  36. package/src/modules/Userinfo/v2/stores/userinfoStore.ts +8 -0
  37. package/src/plugins/primevue/primevue.plugin.js +3 -1
  38. package/src/plugins/primevue/theme/components/components.js +2 -0
  39. package/src/plugins/primevue/theme/components/textarea/textarea.js +14 -0
  40. package/types/components/wt-table/wt-table.vue.d.ts +14 -9
  41. package/types/components/wt-textarea/wt-textarea.vue.d.ts +96 -185
  42. package/types/modules/Userinfo/v2/api/UserSettingsAPI.d.ts +7 -0
  43. package/types/modules/Userinfo/v2/api/UserinfoAPI.d.ts +1 -1
  44. package/types/modules/Userinfo/v2/constants/UserSettingsConstants.d.ts +1 -0
  45. package/types/modules/Userinfo/v2/stores/settingsStore.d.ts +12 -0
  46. package/types/modules/Userinfo/v2/stores/userinfoStore.d.ts +3 -0
  47. package/types/plugins/primevue/theme/components/components.d.ts +2 -0
  48. package/types/plugins/primevue/theme/components/textarea/textarea.d.ts +74 -0
@@ -1,213 +1,124 @@
1
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- /**
3
- * Current textarea value (`v-model`)
4
- */
5
- value: {
6
- type: StringConstructor;
7
- default: string;
8
- };
1
+ import type { TextareaProps } from 'primevue/textarea';
2
+ interface Props extends /* @vue-ignore */ TextareaProps {
9
3
  /**
10
4
  * textarea label
11
5
  */
12
- label: {
13
- type: StringConstructor;
14
- default: string;
15
- };
6
+ label?: string;
16
7
  /**
17
8
  * textarea placeholder
18
9
  */
19
- placeholder: {
20
- type: StringConstructor;
21
- };
10
+ placeholder?: string;
22
11
  /**
23
- * Native textarea disabled attribute
12
+ * Native textarea readonly attribute
24
13
  */
25
- readonly: {
26
- type: BooleanConstructor;
27
- default: boolean;
28
- description: string;
29
- };
14
+ readonly?: boolean;
30
15
  /**
31
16
  * Native textarea disabled attribute
32
17
  */
33
- disabled: {
34
- type: BooleanConstructor;
35
- default: boolean;
36
- description: string;
37
- };
38
- required: {
39
- type: BooleanConstructor;
40
- default: boolean;
41
- };
18
+ disabled?: boolean;
19
+ required?: boolean;
42
20
  /**
43
21
  * textarea name
44
22
  */
45
- name: {
46
- type: StringConstructor;
47
- default: string;
48
- };
23
+ name?: string;
49
24
  /**
50
25
  * Number of rows in textarea
51
26
  */
52
- rows: {
53
- type: NumberConstructor;
54
- default: number;
55
- description: string;
56
- };
57
- labelProps: {
58
- type: ObjectConstructor;
59
- description: string;
60
- };
61
- autoresize: {
62
- type: BooleanConstructor;
63
- default: boolean;
64
- description: string;
65
- };
66
- }>, {}, {}, {
67
- listeners(): {
68
- input: (event: any) => void;
69
- keypress: (event: any) => void;
70
- apply(this: Function, thisArg: any, argArray?: any): any;
71
- call(this: Function, thisArg: any, ...argArray: any[]): any;
72
- bind(this: Function, thisArg: any, ...argArray: any[]): any;
73
- toString(): string;
74
- prototype: any;
75
- length: number;
76
- arguments: any;
77
- caller: Function;
27
+ rows?: number;
28
+ labelProps?: Record<string, any>;
29
+ autoresize?: boolean;
30
+ v?: any;
31
+ customValidators?: Array<{
78
32
  name: string;
79
- [Symbol.hasInstance](value: any): boolean;
80
- [Symbol.metadata]: DecoratorMetadata | null;
81
- };
82
- }, {
83
- handleKeypress(event: any): void;
84
- autoGrow(): void;
85
- resetGrow(): void;
86
- updateInputPaddings(): void;
87
- }, {
88
- props: {
89
- v: {
90
- type: ObjectConstructor;
91
- };
92
- customValidators: {
93
- type: ArrayConstructor;
94
- default: () => any[];
95
- };
96
- };
97
- computed: {
98
- isValidation(): boolean;
99
- invalid(): any;
100
- validationText(): string;
101
- };
102
- }, import("vue").ComponentOptionsMixin, ("input" | "enter")[], "input" | "enter", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
103
- /**
104
- * Current textarea value (`v-model`)
105
- */
106
- value: {
107
- type: StringConstructor;
108
- default: string;
109
- };
110
- /**
111
- * textarea label
112
- */
113
- label: {
114
- type: StringConstructor;
115
- default: string;
116
- };
117
- /**
118
- * textarea placeholder
119
- */
120
- placeholder: {
121
- type: StringConstructor;
122
- };
123
- /**
124
- * Native textarea disabled attribute
125
- */
126
- readonly: {
127
- type: BooleanConstructor;
128
- default: boolean;
129
- description: string;
130
- };
131
- /**
132
- * Native textarea disabled attribute
133
- */
134
- disabled: {
135
- type: BooleanConstructor;
136
- default: boolean;
137
- description: string;
138
- };
139
- required: {
140
- type: BooleanConstructor;
141
- default: boolean;
142
- };
143
- /**
144
- * textarea name
145
- */
146
- name: {
147
- type: StringConstructor;
148
- default: string;
149
- };
150
- /**
151
- * Number of rows in textarea
152
- */
153
- rows: {
154
- type: NumberConstructor;
155
- default: number;
156
- description: string;
157
- };
158
- labelProps: {
159
- type: ObjectConstructor;
160
- description: string;
161
- };
162
- autoresize: {
163
- type: BooleanConstructor;
164
- default: boolean;
165
- description: string;
166
- };
167
- }>> & Readonly<{
168
- onInput?: (...args: any[]) => any;
33
+ text: string;
34
+ }>;
35
+ }
36
+ type __VLS_Props = Props;
37
+ declare const model: import("vue").ModelRef<string, string, string, string>;
38
+ declare const emit: (event: "enter" | "blur" | "keydown" | "paste", ...args: any[]) => void;
39
+ declare const isScrollHidden: import("vue").Ref<boolean, boolean>;
40
+ declare const isValidation: import("vue").ComputedRef<boolean>, invalid: import("vue").ComputedRef<boolean>, validationText: import("vue").ComputedRef<string>;
41
+ declare const handleKeypress: (event: KeyboardEvent) => void;
42
+ declare const handleInput: () => void;
43
+ type __VLS_PublicProps = __VLS_Props & {
44
+ modelValue?: string;
45
+ };
46
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
47
+ declare var __VLS_5: {
48
+ label: string;
49
+ };
50
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
51
+ label?: (props: typeof __VLS_5) => any;
52
+ }>;
53
+ declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
54
+ model: typeof model;
55
+ emit: typeof emit;
56
+ isScrollHidden: typeof isScrollHidden;
57
+ isValidation: typeof isValidation;
58
+ invalid: typeof invalid;
59
+ validationText: typeof validationText;
60
+ handleKeypress: typeof handleKeypress;
61
+ handleInput: typeof handleInput;
62
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
63
+ enter: (...args: any[]) => void;
64
+ blur: (...args: any[]) => void;
65
+ keydown: (...args: any[]) => void;
66
+ paste: (...args: any[]) => void;
67
+ "update:modelValue": (value: string) => void;
68
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
69
+ "onUpdate:modelValue"?: (value: string) => any;
70
+ onEnter?: (...args: any[]) => any;
71
+ onBlur?: (...args: any[]) => any;
72
+ onKeydown?: (...args: any[]) => any;
73
+ onPaste?: (...args: any[]) => any;
74
+ }>, {
75
+ disabled: boolean;
76
+ required: boolean;
77
+ name: string;
78
+ label: string;
79
+ v: any;
80
+ placeholder: string;
81
+ labelProps: Record<string, any>;
82
+ customValidators: Array<{
83
+ name: string;
84
+ text: string;
85
+ }>;
86
+ readonly: boolean;
87
+ rows: number;
88
+ autoresize: boolean;
89
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
90
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
91
+ enter: (...args: any[]) => void;
92
+ blur: (...args: any[]) => void;
93
+ keydown: (...args: any[]) => void;
94
+ paste: (...args: any[]) => void;
95
+ "update:modelValue": (value: string) => void;
96
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
97
+ "onUpdate:modelValue"?: (value: string) => any;
169
98
  onEnter?: (...args: any[]) => any;
99
+ onBlur?: (...args: any[]) => any;
100
+ onKeydown?: (...args: any[]) => any;
101
+ onPaste?: (...args: any[]) => any;
170
102
  }>, {
171
103
  disabled: boolean;
172
- value: string;
173
104
  required: boolean;
174
105
  name: string;
175
106
  label: string;
107
+ v: any;
108
+ placeholder: string;
109
+ labelProps: Record<string, any>;
110
+ customValidators: Array<{
111
+ name: string;
112
+ text: string;
113
+ }>;
176
114
  readonly: boolean;
177
115
  rows: number;
178
116
  autoresize: boolean;
179
- }, {}, {
180
- WtLabel: {
181
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
182
- disabled?: boolean;
183
- invalid?: boolean;
184
- required?: boolean;
185
- hint?: string;
186
- }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
187
- P: {};
188
- B: {};
189
- D: {};
190
- C: {};
191
- M: {};
192
- Defaults: {};
193
- }, Readonly<{
194
- disabled?: boolean;
195
- invalid?: boolean;
196
- required?: boolean;
197
- hint?: string;
198
- }> & Readonly<{}>, {}, {}, {}, {}, {}>;
199
- __isFragment?: never;
200
- __isTeleport?: never;
201
- __isSuspense?: never;
202
- } & import("vue").ComponentOptionsBase<Readonly<{
203
- disabled?: boolean;
204
- invalid?: boolean;
205
- required?: boolean;
206
- hint?: string;
207
- }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
208
- $slots: {
209
- default?: (props: {}) => any;
210
- };
211
- });
212
- }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
117
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
118
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
213
119
  export default _default;
120
+ type __VLS_WithSlots<T, S> = T & {
121
+ new (): {
122
+ $slots: S;
123
+ };
124
+ };
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ getUserTimezone: () => Promise<{
3
+ timezone: string;
4
+ }>;
5
+ setUserTimezone: (timezone: string) => Promise<any>;
6
+ };
7
+ export default _default;
@@ -8,4 +8,4 @@ declare const getSession: () => Promise<{
8
8
  }>;
9
9
  declare const getUiVisibilityAccess: () => Promise<VisibilityAccess>;
10
10
  declare const logout: () => Promise<import("axios").AxiosResponse<any, any>>;
11
- export { getSession, getUiVisibilityAccess, logout, setInstance };
11
+ export { getSession, getUiVisibilityAccess, logout, setInstance, };
@@ -0,0 +1 @@
1
+ export declare const TIMEZONE_STORAGE_KEY = "user-timezone-setting";
@@ -0,0 +1,12 @@
1
+ export declare const createSettingsStore: ({ namespace }?: {
2
+ namespace?: string;
3
+ }) => import("pinia").StoreDefinition<`${string}/settings`, Pick<{
4
+ timezone: import("vue").Ref<string, string>;
5
+ initialize: () => Promise<void>;
6
+ }, "timezone">, Pick<{
7
+ timezone: import("vue").Ref<string, string>;
8
+ initialize: () => Promise<void>;
9
+ }, never>, Pick<{
10
+ timezone: import("vue").Ref<string, string>;
11
+ initialize: () => Promise<void>;
12
+ }, "initialize">>;
@@ -1,6 +1,7 @@
1
1
  export declare const createUserinfoStore: () => import("pinia").StoreDefinition<"userinfo", Pick<{
2
2
  userId: import("vue").Ref<any, any>;
3
3
  userInfo: import("vue").Ref<any, any>;
4
+ timezone: string;
4
5
  initialize: () => Promise<void>;
5
6
  hasReadAccess: (object?: import("../../../../enums").WtObject) => boolean;
6
7
  hasCreateAccess: (object?: import("../../../../enums").WtObject) => boolean;
@@ -14,6 +15,7 @@ export declare const createUserinfoStore: () => import("pinia").StoreDefinition<
14
15
  }, any>, Pick<{
15
16
  userId: import("vue").Ref<any, any>;
16
17
  userInfo: import("vue").Ref<any, any>;
18
+ timezone: string;
17
19
  initialize: () => Promise<void>;
18
20
  hasReadAccess: (object?: import("../../../../enums").WtObject) => boolean;
19
21
  hasCreateAccess: (object?: import("../../../../enums").WtObject) => boolean;
@@ -27,6 +29,7 @@ export declare const createUserinfoStore: () => import("pinia").StoreDefinition<
27
29
  }, any>, Pick<{
28
30
  userId: import("vue").Ref<any, any>;
29
31
  userInfo: import("vue").Ref<any, any>;
32
+ timezone: string;
30
33
  initialize: () => Promise<void>;
31
34
  hasReadAccess: (object?: import("../../../../enums").WtObject) => boolean;
32
35
  hasCreateAccess: (object?: import("../../../../enums").WtObject) => boolean;
@@ -6,6 +6,7 @@ declare namespace components {
6
6
  export { button };
7
7
  export { chip };
8
8
  export { checkbox };
9
+ export { textarea };
9
10
  export { switcher as toggleswitch };
10
11
  export { divider };
11
12
  export { image };
@@ -24,6 +25,7 @@ import breadcrumb from './breadcrumb/breadcrumb.js';
24
25
  import button from './button/button.js';
25
26
  import chip from './chip/chip.js';
26
27
  import checkbox from './checkbox/checkbox.js';
28
+ import textarea from './textarea/textarea.js';
27
29
  import switcher from './switcher/switcher.js';
28
30
  import divider from './divider/divider.js';
29
31
  import image from './image/image.js';
@@ -0,0 +1,74 @@
1
+ export default textarea;
2
+ declare const textarea: {
3
+ colorScheme: {
4
+ light: {
5
+ root: {
6
+ background: string;
7
+ disabledBackground: string;
8
+ filledBackground: string;
9
+ filledHoverBackground: string;
10
+ filledFocusBackground: string;
11
+ borderColor: string;
12
+ hoverBorderColor: string;
13
+ focusBorderColor: string;
14
+ invalidBorderColor: string;
15
+ color: string;
16
+ disabledColor: string;
17
+ placeholderColor: string;
18
+ invalidPlaceholderColor: string;
19
+ shadow: string;
20
+ focusRing: {
21
+ color: string;
22
+ shadow: string;
23
+ };
24
+ };
25
+ };
26
+ dark: {
27
+ root: {
28
+ background: string;
29
+ disabledBackground: string;
30
+ filledBackground: string;
31
+ filledHoverBackground: string;
32
+ filledFocusBackground: string;
33
+ borderColor: string;
34
+ hoverBorderColor: string;
35
+ focusBorderColor: string;
36
+ invalidBorderColor: string;
37
+ color: string;
38
+ disabledColor: string;
39
+ placeholderColor: string;
40
+ invalidPlaceholderColor: string;
41
+ shadow: string;
42
+ focusRing: {
43
+ color: string;
44
+ shadow: string;
45
+ };
46
+ };
47
+ };
48
+ };
49
+ css: ({ dt }: {
50
+ dt: any;
51
+ }) => string;
52
+ root: {
53
+ paddingX: string;
54
+ paddingY: string;
55
+ borderRadius: string;
56
+ minHeight: string;
57
+ focusRing: {
58
+ width: string;
59
+ style: string;
60
+ offset: string;
61
+ };
62
+ transitionDuration: string;
63
+ sm: {
64
+ fontSize: string;
65
+ paddingX: string;
66
+ paddingY: string;
67
+ };
68
+ lg: {
69
+ fontSize: string;
70
+ paddingX: string;
71
+ paddingY: string;
72
+ };
73
+ };
74
+ };