@webitel/ui-sdk 26.6.13 → 26.6.14

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 (135) hide show
  1. package/dist/{contacts-BaxyRLLM.js → contacts-Bn25LSM7.js} +2 -2
  2. package/dist/{index-CigyElUb.js → index-CIA7dKZk.js} +1 -1
  3. package/dist/{index-DApIkp62.js → index-DEyszQsx.js} +1 -1
  4. package/dist/{install-DawOaJvS.js → install-BLruag0s.js} +14002 -12926
  5. package/dist/{isObject-CYCEPn3N.js → isObject-wgGRYtgO.js} +1 -1
  6. package/dist/ui-sdk.css +1 -1
  7. package/dist/ui-sdk.js +1 -1
  8. package/dist/ui-sdk.umd.cjs +565 -279
  9. package/dist/{useVidstackSrc-DyrOa4mk.js → useVidstackSrc-BBi5oq8T.js} +1 -1
  10. package/dist/{vidstack-Bq6c3Bam-CAY97-jZ.js → vidstack-Bq6c3Bam-DXIHaRU6.js} +3 -3
  11. package/dist/{vidstack-D2pY00kU-CueRPheM.js → vidstack-D2pY00kU-BE_AqirM.js} +3 -3
  12. package/dist/{vidstack-DDXt6fpN-BRLi6AkS.js → vidstack-DDXt6fpN-D3xykUxG.js} +2 -2
  13. package/dist/{vidstack-D_-9AA6_-Dc5WN-OL.js → vidstack-D_-9AA6_-BDS42mA3.js} +2 -2
  14. package/dist/{vidstack-DqAw8m9J-D32aS290.js → vidstack-DqAw8m9J-DtFh5mkx.js} +1 -1
  15. package/dist/{vidstack-audio-BbddnRPa.js → vidstack-audio-BwtaRJRZ.js} +2 -2
  16. package/dist/{vidstack-dash-BNYPf-SD.js → vidstack-dash-CT0qNTAI.js} +4 -4
  17. package/dist/{vidstack-google-cast-f5Q76VEc.js → vidstack-google-cast-C4kSroiv.js} +4 -4
  18. package/dist/{vidstack-hls-hJ9GD_pP.js → vidstack-hls-CtCsnt_W.js} +4 -4
  19. package/dist/{vidstack-video-qY9NJ4Rl.js → vidstack-video-Bzwbx0RC.js} +3 -3
  20. package/dist/{vidstack-vimeo-Dcb0hTaj.js → vidstack-vimeo-CjK5ElAg.js} +4 -4
  21. package/dist/{vidstack-youtube-B29lleYJ.js → vidstack-youtube-C9_vpuPD.js} +3 -3
  22. package/dist/{wt-action-bar-ChN3mio6.js → wt-action-bar-Bc_GH6kU.js} +1 -1
  23. package/dist/{wt-button-select-KD0cPK4H.js → wt-button-select-Cc9o-NiI.js} +1 -1
  24. package/dist/{wt-call-media-action-BvM04q4r.js → wt-call-media-action-sWq9pI2N.js} +1 -1
  25. package/dist/wt-chat-emoji-Cl3YsoL-.js +2909 -0
  26. package/dist/{wt-confirm-dialog-DMquYnrJ.js → wt-confirm-dialog-yyIkkLwI.js} +1 -1
  27. package/dist/{wt-context-menu-ToE9-ffe.js → wt-context-menu-6WwSx8qR.js} +1 -1
  28. package/dist/{wt-copy-action-Bylf142B.js → wt-copy-action-Ea6x__OX.js} +1 -1
  29. package/dist/{wt-datepicker-BV7rf6Wk.js → wt-datepicker-Bi8iXDQC.js} +1 -1
  30. package/dist/{wt-display-chip-items-CXv8kX5b.js → wt-display-chip-items-CyshgAI0.js} +11 -11
  31. package/dist/{wt-dual-panel-Jmj4ip6N.js → wt-dual-panel-C3lUe446.js} +1 -1
  32. package/dist/{wt-dummy-BxEArso4.js → wt-dummy-07cnh7OP.js} +1 -1
  33. package/dist/{wt-error-page-rcqO8ZX0.js → wt-error-page-P4gAwDj2.js} +1 -1
  34. package/dist/{wt-expansion-card-By036A5Q.js → wt-expansion-card-DsLok2qe.js} +5 -5
  35. package/dist/{wt-expansion-panel-BFYozFsJ.js → wt-expansion-panel-BLgze326.js} +9 -9
  36. package/dist/{wt-filters-panel-wrapper-C49nxd6Z.js → wt-filters-panel-wrapper-BI7tOtsM.js} +1 -1
  37. package/dist/{wt-galleria-72LEmzfX.js → wt-galleria-DjUSBG29.js} +1 -1
  38. package/dist/{wt-inline-add-panel-CL0aM32a.js → wt-inline-add-panel-Bg32h70I.js} +1 -1
  39. package/dist/{wt-navigation-menu-B87j3Gxu.js → wt-navigation-menu-BhoGF372.js} +1 -1
  40. package/dist/{wt-notifications-bar-DJ7zMmH9.js → wt-notifications-bar-o6ePcWRj.js} +2 -2
  41. package/dist/{wt-pagination-D1kszR59.js → wt-pagination-DXVZMbtn.js} +1 -1
  42. package/dist/{wt-player-1VkST0ny.js → wt-player-Dv6UMcr3.js} +2 -2
  43. package/dist/{wt-screen-recordings-action-Boy3xJvB.js → wt-screen-recordings-action-BjIRc7t6.js} +1 -1
  44. package/dist/{wt-search-bar-D1qU-jDZ.js → wt-search-bar-CiyJ55hK.js} +1 -1
  45. package/dist/{wt-selection-popup-Bwa7CJym.js → wt-selection-popup-DLkerKfA.js} +1 -1
  46. package/dist/{wt-send-message-popup-1NrObXfW.js → wt-send-message-popup-CjfsCxfI.js} +18 -18
  47. package/dist/{wt-start-page-D3XXOoLT.js → wt-start-page-C-3-3fZc.js} +1 -1
  48. package/dist/{wt-status-select-BOPkG0nj.js → wt-status-select-CiKHudco.js} +1 -1
  49. package/dist/{wt-stepper-2TcrBla0.js → wt-stepper-CvqNjYsK.js} +1 -1
  50. package/dist/{wt-table-DpasMSII.js → wt-table-CBRWEe6H.js} +2 -2
  51. package/dist/{wt-table-actions-CQ67TwoU.js → wt-table-actions-ByAbJLsX.js} +1 -1
  52. package/dist/{wt-table-column-select-BZH5aqRk.js → wt-table-column-select-BsRkHmev.js} +2 -2
  53. package/dist/{wt-tabs-DOiZ6vld.js → wt-tabs-CtNBd15N.js} +1 -1
  54. package/dist/{wt-tags-input-DrP4EVai.js → wt-tags-input-DD9rSzuh.js} +2 -2
  55. package/dist/{wt-timepicker-CenAtHJ9.js → wt-timepicker-Cka-r9m0.js} +1 -1
  56. package/dist/{wt-tree-vAsblHJz.js → wt-tree-sZocE-Ui.js} +2 -2
  57. package/dist/{wt-tree-table-Bu35HIvM.js → wt-tree-table-D8JL2d1D.js} +2 -2
  58. package/dist/{wt-type-extension-value-input-B6k7nGgn.js → wt-type-extension-value-input-C1Ez10TA.js} +3 -3
  59. package/dist/{wt-vidstack-player-NmB4VBNR.js → wt-vidstack-player-Bv44QAeW.js} +10 -10
  60. package/package.json +1 -1
  61. package/src/components/_internals/composables/index.ts +7 -0
  62. package/src/components/_internals/composables/useSelect/useSelect.ts +101 -0
  63. package/src/components/_internals/composables/useSelect/useSelectCustomValues.ts +89 -0
  64. package/src/components/_internals/composables/useSelect/useSelectDropdown.ts +93 -0
  65. package/src/components/_internals/composables/useSelect/useSelectOptions.ts +198 -0
  66. package/src/components/_internals/composables/useSelect/useSelectUtils.ts +32 -0
  67. package/src/{composables → components/_internals/composables}/useWtTable/useWtTable.ts +1 -1
  68. package/src/components/index.js +6 -0
  69. package/src/components/wt-chip/wt-chip.vue +11 -2
  70. package/src/components/wt-expansion-card/wt-expansion-card.vue +1 -1
  71. package/src/components/wt-expansion-panel/wt-expansion-panel.vue +1 -1
  72. package/src/components/wt-galleria/wt-galleria.vue +4 -2
  73. package/src/components/wt-input-number/wt-input-number.vue +1 -2
  74. package/src/components/wt-input-text/wt-input-text.vue +3 -2
  75. package/src/components/wt-multi-select/wt-multi-select.vue +254 -0
  76. package/src/components/wt-password/wt-password.vue +1 -2
  77. package/src/components/wt-single-select/wt-single-select.vue +229 -0
  78. package/src/components/wt-table/wt-table.vue +1 -2
  79. package/src/components/wt-tree-table/wt-tree-table.vue +1 -2
  80. package/src/composables/index.ts +0 -6
  81. package/src/locale/en/en.js +3 -0
  82. package/src/locale/es/es.js +3 -0
  83. package/src/locale/kz/kz.js +3 -0
  84. package/src/locale/pl/pl.js +3 -0
  85. package/src/locale/ro/ro.js +3 -0
  86. package/src/locale/ru/ru.js +3 -0
  87. package/src/locale/uk/uk.js +3 -0
  88. package/src/locale/uz/uz.js +3 -0
  89. package/src/locale/vi/vi.js +3 -0
  90. package/src/plugins/primevue/primevue.plugin.js +4 -0
  91. package/src/plugins/primevue/theme/components/checkbox/checkbox.js +1 -1
  92. package/src/plugins/primevue/theme/components/components.js +4 -0
  93. package/src/plugins/primevue/theme/components/multi-select/multi-select.js +32 -0
  94. package/src/plugins/primevue/theme/components/single-select/single-select.js +24 -0
  95. package/types/components/_internals/composables/index.d.ts +7 -0
  96. package/types/components/_internals/composables/useSelect/useSelect.d.ts +29 -0
  97. package/types/components/_internals/composables/useSelect/useSelectCustomValues.d.ts +16 -0
  98. package/types/components/_internals/composables/useSelect/useSelectDropdown.d.ts +20 -0
  99. package/types/components/_internals/composables/useSelect/useSelectOptions.d.ts +20 -0
  100. package/types/components/_internals/composables/useSelect/useSelectUtils.d.ts +3 -0
  101. package/types/{composables → components/_internals/composables}/useWtTable/useWtTable.d.ts +0 -1
  102. package/types/components/wt-chip/wt-chip.vue.d.ts +5 -1
  103. package/types/components/wt-multi-select/wt-multi-select.vue.d.ts +82 -0
  104. package/types/components/wt-select/wt-select.vue.d.ts +1 -1
  105. package/types/components/wt-single-select/wt-single-select.vue.d.ts +83 -0
  106. package/types/components/wt-table/wt-table.vue.d.ts +1 -1
  107. package/types/components/wt-tree-table/wt-tree-table.vue.d.ts +1 -1
  108. package/types/composables/index.d.ts +0 -6
  109. package/types/locale/en/en.d.ts +3 -0
  110. package/types/locale/es/es.d.ts +3 -0
  111. package/types/locale/i18n.d.ts +27 -0
  112. package/types/locale/index.d.ts +27 -0
  113. package/types/locale/kz/kz.d.ts +3 -0
  114. package/types/locale/pl/pl.d.ts +3 -0
  115. package/types/locale/ro/ro.d.ts +3 -0
  116. package/types/locale/ru/ru.d.ts +3 -0
  117. package/types/locale/uk/uk.d.ts +3 -0
  118. package/types/locale/uz/uz.d.ts +3 -0
  119. package/types/locale/vi/vi.d.ts +3 -0
  120. package/types/plugins/primevue/theme/components/components.d.ts +4 -0
  121. package/types/plugins/primevue/theme/components/multi-select/multi-select.d.ts +151 -0
  122. package/types/plugins/primevue/theme/components/single-select/single-select.d.ts +157 -0
  123. package/dist/wt-chat-emoji-0UBEtnmy.js +0 -2429
  124. package/src/components/wt-select/wt-select-v2.vue +0 -244
  125. package/types/components/wt-select/wt-select-v2.vue.d.ts +0 -77
  126. /package/src/{composables → components/_internals/composables}/useExpansion/useExpansion.ts +0 -0
  127. /package/src/{composables → components/_internals/composables}/useGalleriaFullscreen/useGalleriaFullscreen.ts +0 -0
  128. /package/src/{composables → components/_internals/composables}/useGalleriaMaskClick/useGalleriaMaskClick.ts +0 -0
  129. /package/src/{composables → components/_internals/composables}/useInputControl/useInputControl.ts +0 -0
  130. /package/src/{composables → components/_internals/composables}/useTableColumnDrag/useTableColumnDrag.ts +0 -0
  131. /package/types/{composables → components/_internals/composables}/useExpansion/useExpansion.d.ts +0 -0
  132. /package/types/{composables → components/_internals/composables}/useGalleriaFullscreen/useGalleriaFullscreen.d.ts +0 -0
  133. /package/types/{composables → components/_internals/composables}/useGalleriaMaskClick/useGalleriaMaskClick.d.ts +0 -0
  134. /package/types/{composables → components/_internals/composables}/useInputControl/useInputControl.d.ts +0 -0
  135. /package/types/{composables → components/_internals/composables}/useTableColumnDrag/useTableColumnDrag.d.ts +0 -0
@@ -1,244 +0,0 @@
1
- <template>
2
- <p-auto-complete
3
- class="w-full"
4
- :model-value="selectValue"
5
- :suggestions="suggestions"
6
- dropdown
7
- :multiple="multiple"
8
- option-label="name"
9
- complete-on-focus
10
- v-bind="$attrs"
11
- v-on="listeners"
12
- @complete="search"
13
- />
14
- </template>
15
-
16
- <script setup>
17
- import { computed, reactive, ref } from 'vue';
18
-
19
- import isEmpty from '../../scripts/isEmpty.js';
20
-
21
- const props = defineProps({
22
- value: {
23
- // default: (props) => {
24
- // return props.modelValue;
25
- // },
26
- },
27
-
28
- multiple: {
29
- type: Boolean,
30
- default: false,
31
- },
32
-
33
- options: {
34
- type: Array,
35
- default: () => [],
36
- },
37
-
38
- clearable: {
39
- type: Boolean,
40
- default: true,
41
- },
42
- searchMethod: {
43
- type: Function,
44
- },
45
- /*
46
- for taggableMixin functionality
47
- for more info, see WTEL-3181
48
- */
49
- allowCustomValues: {
50
- type: Boolean,
51
- default: false,
52
- description: 'See wt-tags-input "taggable" prop.',
53
- },
54
- // for taggableMixin functionality
55
- handleCustomValuesAdditionManually: {
56
- type: Boolean,
57
- default: false,
58
- description: 'See wt-tags-input "manualTagging" prop.',
59
- },
60
- });
61
-
62
- const emits = defineEmits([
63
- 'reset',
64
- 'search-change',
65
- 'input', // vue 2
66
- 'update:modelValue', // vue 3
67
- 'closed',
68
- 'custom-value', // fires when allowCustomValues and new customValue is added
69
- ]);
70
-
71
- const isOpened = ref(false);
72
- const isLoading = ref(false);
73
- const searchHasNext = ref(true);
74
- const suggestions = ref([]);
75
- const searchParams = reactive({
76
- search: '',
77
- page: 1,
78
- });
79
-
80
- const taggable = computed(() => {
81
- return props.allowCustomValues;
82
- });
83
-
84
- const manualTagging = computed(() => {
85
- return props.handleCustomValuesAdditionManually;
86
- });
87
-
88
- const isApiMode = computed(() => {
89
- return !!props.searchMethod;
90
- });
91
-
92
- const optionsWithCustomValues = computed(() => {
93
- // https://webitel.atlassian.net/browse/WTEL-3181
94
- console.log('props.allowCustomValues', props.allowCustomValues);
95
-
96
- if (!props.allowCustomValues) return selectOptions.value;
97
-
98
- /**
99
- custom values could be restored after refresh, so that they could be not included in options prop,
100
- so that we should add them to options manually (but filter duplicates, which are already in options)
101
-
102
- i assume it's bad decision and it's better to include custom values to options prop,
103
- but current filters logic restores value at filter component, but options value are pre-defined at store state
104
- */
105
-
106
- const customValuesToOptions = Array.isArray(props.value)
107
- ? props.value
108
- : isEmpty(props.value)
109
- ? []
110
- : [
111
- props.value,
112
- ]; //do not add empty values
113
- const optionsWithoutValues = selectOptions.value.filter((opt) => {
114
- const optKey = props.trackBy ? opt[props.trackBy] : opt;
115
- return !customValuesToOptions.some((customValue) => {
116
- const customValueKey = props.trackBy
117
- ? customValue[props.trackBy]
118
- : customValue;
119
- return customValueKey === optKey;
120
- });
121
- });
122
- return [
123
- ...customValuesToOptions,
124
- ...optionsWithoutValues,
125
- ];
126
- });
127
-
128
- const fetchOptions = async ({ search, page }) => {
129
- if (!isApiMode.value) return [];
130
- const { items, next } = await this.searchMethod({
131
- search,
132
- page,
133
- });
134
- searchHasNext.value = next;
135
- return items;
136
- };
137
-
138
- const search = async (event) => {
139
- console.log('event.query', event.query);
140
- console.log('event.query', event);
141
-
142
- if (!isApiMode.value) {
143
- suggestions.value = [
144
- ...props.options,
145
- ];
146
- return suggestions.value;
147
- }
148
-
149
- const fetchedOptions = await fetchOptions({
150
- search: event.query,
151
- page: 1,
152
- });
153
-
154
- suggestions.value = [
155
- ...suggestions.value,
156
- ...fetchedOptions,
157
- ];
158
- };
159
- </script>
160
-
161
- <style scoped>
162
- /* @import './multiselect.css'; */
163
-
164
- .wt-select {
165
- width: 100%;
166
- min-width: 0;
167
- }
168
-
169
- /*
170
- * @author: Oleksandr Palonnyi
171
- *
172
- * [WTEL-6814](https://webitel.atlassian.net/browse/WTEL-6814)
173
- *
174
- * added pointer-events: auto; to have access to multiselect__limit when select is disabled.
175
- */
176
- .multiselect__limit {
177
- pointer-events: auto;
178
- }
179
-
180
- .wt-select :deep(.multiselect__single-label) {
181
- /* text overflow 3 dots */
182
- font-family: 'Montserrat', monospace;
183
- font-size: 14px;
184
- font-weight: 400;
185
- line-height: 24px;
186
- text-transform: none;
187
- display: block;
188
- overflow: hidden;
189
- max-width: 100%;
190
- white-space: nowrap;
191
- text-overflow: ellipsis;
192
- }
193
-
194
- .wt-select :deep(.multiselect--active .multiselect__strong) {
195
- display: none;
196
- }
197
-
198
- /* right padding setup */
199
-
200
- /* default case */
201
- .wt-select :deep(.multiselect) .multiselect__tags {
202
- padding: var(--input-padding) calc(
203
- var(--input-padding) + var(--icon-md-size) +
204
- var(--select-caret-right-pos)
205
- ) var(--input-padding) var(--input-padding);
206
- }
207
-
208
- /* only chip */
209
- .wt-select.wt-select--multiple:not(.wt-select--clearable) :deep(.multiselect) .multiselect__tags {
210
- padding-right: calc(
211
- var(--select-caret-right-pos) + var(--icon-md-size) + var(--input-padding) + 50px + var(--input-padding)
212
- );
213
- }
214
-
215
- .wt-select.wt-select--multiple:not(.wt-select--clearable) .multiselect__limit {
216
- right: calc(var(--select-caret-right-pos) + var(--icon-md-size) + var(--input-padding));
217
- }
218
-
219
- /* only clearable */
220
- .wt-select.wt-select--clearable:not(.wt-select--multiple) :deep(.multiselect) .multiselect__tags {
221
- padding-right: calc(
222
- var(--select-caret-right-pos) + var(--icon-md-size) + var(--input-padding) + var(--icon-md-size) + var(--input-padding)
223
- );
224
- }
225
-
226
- .wt-select.wt-select--clearable:not(.wt-select--multiple) .multiselect__clear {
227
- right: calc(var(--select-caret-right-pos) + var(--icon-md-size) + var(--input-padding));
228
- }
229
-
230
- /* clearable and chip */
231
- .wt-select.wt-select--multiple.wt-select--clearable :deep(.multiselect) .multiselect__tags {
232
- padding-right: calc(
233
- var(--select-caret-right-pos) + var(--icon-md-size) + var(--input-padding) + var(--icon-md-size) + var(--input-padding) + 50px + var(--input-padding)
234
- );
235
- }
236
-
237
- .wt-select.wt-select--multiple.wt-select--clearable .multiselect__clear {
238
- right: calc(var(--select-caret-right-pos) + var(--icon-md-size) + var(--input-padding));
239
- }
240
-
241
- .wt-select.wt-select--multiple.wt-select--clearable .multiselect__limit {
242
- right: calc(var(--select-caret-right-pos) + var(--icon-md-size) + var(--input-padding) + var(--icon-md-size) + var(--input-padding));
243
- }
244
- </style>
@@ -1,77 +0,0 @@
1
- declare const _default: typeof __VLS_export;
2
- export default _default;
3
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
- value: {};
5
- multiple: {
6
- type: BooleanConstructor;
7
- default: boolean;
8
- };
9
- options: {
10
- type: ArrayConstructor;
11
- default: () => any[];
12
- };
13
- clearable: {
14
- type: BooleanConstructor;
15
- default: boolean;
16
- };
17
- searchMethod: {
18
- type: FunctionConstructor;
19
- };
20
- allowCustomValues: {
21
- type: BooleanConstructor;
22
- default: boolean;
23
- description: string;
24
- };
25
- handleCustomValuesAdditionManually: {
26
- type: BooleanConstructor;
27
- default: boolean;
28
- description: string;
29
- };
30
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
- input: (...args: any[]) => void;
32
- reset: (...args: any[]) => void;
33
- closed: (...args: any[]) => void;
34
- "update:modelValue": (...args: any[]) => void;
35
- "search-change": (...args: any[]) => void;
36
- "custom-value": (...args: any[]) => void;
37
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
38
- value: {};
39
- multiple: {
40
- type: BooleanConstructor;
41
- default: boolean;
42
- };
43
- options: {
44
- type: ArrayConstructor;
45
- default: () => any[];
46
- };
47
- clearable: {
48
- type: BooleanConstructor;
49
- default: boolean;
50
- };
51
- searchMethod: {
52
- type: FunctionConstructor;
53
- };
54
- allowCustomValues: {
55
- type: BooleanConstructor;
56
- default: boolean;
57
- description: string;
58
- };
59
- handleCustomValuesAdditionManually: {
60
- type: BooleanConstructor;
61
- default: boolean;
62
- description: string;
63
- };
64
- }>> & Readonly<{
65
- onInput?: (...args: any[]) => any;
66
- onReset?: (...args: any[]) => any;
67
- onClosed?: (...args: any[]) => any;
68
- "onUpdate:modelValue"?: (...args: any[]) => any;
69
- "onSearch-change"?: (...args: any[]) => any;
70
- "onCustom-value"?: (...args: any[]) => any;
71
- }>, {
72
- options: unknown[];
73
- multiple: boolean;
74
- allowCustomValues: boolean;
75
- clearable: boolean;
76
- handleCustomValuesAdditionManually: boolean;
77
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;