@webitel/ui-sdk 25.8.31 → 25.8.33
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.css +1 -1
- package/dist/ui-sdk.js +6982 -7018
- package/dist/ui-sdk.umd.cjs +559 -559
- package/package.json +10 -1
- package/src/components/index.js +3 -0
- package/src/components/on-demand/wt-display-chip-items/wt-display-chip-items.vue +67 -0
- package/src/components/on-demand/wt-selection-popup/wt-selection-popup.vue +7 -10
- package/src/components/wt-app-header/wt-app-navigator.vue +7 -11
- package/src/components/wt-app-header/wt-header-actions.vue +8 -12
- package/src/components/wt-context-menu/wt-context-menu.vue +40 -36
- package/src/components/wt-copy-action/wt-copy-action.vue +7 -11
- package/src/components/wt-icon-action/wt-icon-action.vue +8 -12
- package/src/components/wt-label/wt-label.vue +2 -1
- package/src/components/wt-pagination/wt-pagination.vue +15 -22
- package/src/components/wt-popover/wt-popover.vue +36 -18
- package/src/components/wt-search-bar/wt-search-bar.vue +5 -9
- package/src/components/wt-select/wt-select.vue +16 -15
- package/src/components/wt-table-actions/wt-table-actions.vue +43 -55
- package/src/components/wt-table-column-select/wt-table-column-select.vue +6 -9
- package/src/locale/en/en.js +24 -3
- package/src/locale/es/es.js +23 -6
- package/src/locale/kz/kz.js +324 -294
- package/src/locale/pl/pl.js +23 -6
- package/src/locale/ro/ro.js +23 -6
- package/src/locale/ru/ru.js +28 -4
- package/src/locale/uk/uk.js +28 -4
- package/src/locale/uz/uz.js +23 -6
- package/src/locale/vi/vi.js +23 -6
- package/src/mixins/validationMixin/validationMixin.js +5 -3
- package/src/mixins/validationMixin/vuelidate/useVuelidateValidation.ts +5 -5
- package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +12 -19
- package/src/modules/AuditForm/components/form-questions/options/audit-form-question-options-write-row.vue +7 -10
- package/src/modules/Userinfo/v2/enums/GlobalActions/GlobalActions.ts +1 -0
- package/src/utils/displayText.ts +3 -0
- package/src/utils/index.ts +1 -0
- package/src/validations/config/errors/customZodErrorsHandler.ts +19 -2
- package/types/components/index.d.ts +3 -1
- package/types/components/on-demand/wt-display-chip-items/wt-display-chip-items.vue.d.ts +38 -0
- package/types/components/on-demand/wt-navigation-menu/components/wt-navigation-menu.vue.d.ts +2 -2
- package/types/components/on-demand/wt-selection-popup/wt-selection-popup.vue.d.ts +2 -2
- package/types/components/wt-checkbox/wt-checkbox.vue.d.ts +5 -5
- package/types/components/wt-context-menu/wt-context-menu.vue.d.ts +4 -1
- package/types/components/wt-datepicker/wt-datepicker.vue.d.ts +2 -2
- package/types/components/wt-input/wt-input.vue.d.ts +2 -2
- package/types/components/wt-item-link/wt-item-link.vue.d.ts +2 -2
- package/types/components/wt-player/wt-player.vue.d.ts +2 -2
- package/types/components/wt-popover/wt-popover.vue.d.ts +32 -15
- package/types/components/wt-radio/wt-radio.vue.d.ts +6 -6
- package/types/components/wt-search-bar/wt-search-bar.vue.d.ts +6 -6
- package/types/components/wt-slider/wt-slider.vue.d.ts +2 -2
- package/types/components/wt-textarea/wt-textarea.vue.d.ts +2 -2
- package/types/components/wt-time-input/wt-time-input.vue.d.ts +1 -1
- package/types/components/wt-timepicker/wt-timepicker.vue.d.ts +1 -1
- package/types/components/wt-tooltip/_internals/wt-tooltip-floating.vue.d.ts +1 -1
- package/types/components/wt-tooltip/wt-tooltip.vue.d.ts +2 -2
- package/types/locale/en/en.d.ts +9 -3
- package/types/locale/es/es.d.ts +11 -5
- package/types/locale/i18n.d.ts +102 -36
- package/types/locale/index.d.ts +103 -37
- package/types/locale/kz/kz.d.ts +14 -0
- package/types/locale/pl/pl.d.ts +11 -5
- package/types/locale/ro/ro.d.ts +11 -5
- package/types/locale/ru/ru.d.ts +12 -4
- package/types/locale/uk/uk.d.ts +12 -4
- package/types/locale/uz/uz.d.ts +11 -5
- package/types/locale/vi/vi.d.ts +11 -5
- package/types/modules/Userinfo/v2/enums/GlobalActions/GlobalActions.d.ts +1 -0
- package/types/scripts/sortQueryAdapters.d.ts +1 -1
- package/types/utils/displayText.d.ts +2 -0
- package/types/utils/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "25.8.
|
|
3
|
+
"version": "25.8.33",
|
|
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",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"src/enums/*",
|
|
38
38
|
"src/mixins/*",
|
|
39
39
|
"src/scripts/*",
|
|
40
|
+
"src/utils/*",
|
|
40
41
|
"src/validations/*",
|
|
41
42
|
"src/modules/*",
|
|
42
43
|
"src/plugins/*",
|
|
@@ -196,6 +197,14 @@
|
|
|
196
197
|
"types": "./types/scripts*",
|
|
197
198
|
"import": "./src/scripts*"
|
|
198
199
|
},
|
|
200
|
+
"./utils*": {
|
|
201
|
+
"types": "./types/utils*",
|
|
202
|
+
"import": "./src/utils*"
|
|
203
|
+
},
|
|
204
|
+
"./utils": {
|
|
205
|
+
"types": "./types/utils/index.d.ts",
|
|
206
|
+
"import": "./src/utils/index.ts"
|
|
207
|
+
},
|
|
199
208
|
"./api*": {
|
|
200
209
|
"types": "./types/api*",
|
|
201
210
|
"import": "./src/api*"
|
package/src/components/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import WtDisplayChipItems from './on-demand/wt-display-chip-items/wt-display-chip-items.vue';
|
|
1
2
|
import WtNavigationMenu from './on-demand/wt-navigation-menu/components/wt-navigation-menu.vue';
|
|
2
3
|
import WtSelectionPopup from './on-demand/wt-selection-popup/wt-selection-popup.vue';
|
|
3
4
|
import WtStartPage from './on-demand/wt-start-page/components/wt-start-page.vue';
|
|
@@ -141,6 +142,7 @@ const Components = {
|
|
|
141
142
|
WtNavigationMenu,
|
|
142
143
|
WtStartPage,
|
|
143
144
|
WtSelectionPopup,
|
|
145
|
+
WtDisplayChipItems,
|
|
144
146
|
};
|
|
145
147
|
|
|
146
148
|
export {
|
|
@@ -157,6 +159,7 @@ export {
|
|
|
157
159
|
WtContextMenu,
|
|
158
160
|
WtCopyAction,
|
|
159
161
|
WtDatepicker,
|
|
162
|
+
WtDisplayChipItems,
|
|
160
163
|
WtDivider,
|
|
161
164
|
WtDualPanel,
|
|
162
165
|
WtDummy,
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="wt-display-chip-items">
|
|
3
|
+
<p v-if="props.title">{{ title }}:</p>
|
|
4
|
+
|
|
5
|
+
<slot v-if="!props.hideFirstItem" name="first-item">
|
|
6
|
+
{{ displayText(firstItemName) }}
|
|
7
|
+
</slot>
|
|
8
|
+
|
|
9
|
+
<wt-popover>
|
|
10
|
+
<template #activator="{ toggle }">
|
|
11
|
+
<slot name="activator" :toggle="toggle">
|
|
12
|
+
<div v-if="displayList.length" @click="toggle">
|
|
13
|
+
<wt-chip>
|
|
14
|
+
+{{ displayList.length }}
|
|
15
|
+
</wt-chip>
|
|
16
|
+
</div>
|
|
17
|
+
</slot>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<template #default>
|
|
21
|
+
<slot name="items" :items="displayList">
|
|
22
|
+
<div
|
|
23
|
+
v-for="({ name, id }) of displayList"
|
|
24
|
+
:key="id"
|
|
25
|
+
>
|
|
26
|
+
{{ name }}
|
|
27
|
+
</div>
|
|
28
|
+
</slot>
|
|
29
|
+
</template>
|
|
30
|
+
</wt-popover>
|
|
31
|
+
</div>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<script setup lang="ts">
|
|
35
|
+
import { WtChip,WtPopover } from '@webitel/ui-sdk/components';
|
|
36
|
+
import { computed } from 'vue';
|
|
37
|
+
|
|
38
|
+
import { displayText, EMPTY_SYMBOL } from '../../../utils';
|
|
39
|
+
|
|
40
|
+
interface Props {
|
|
41
|
+
hideFirstItem?: boolean
|
|
42
|
+
useEmptySymbol?: boolean
|
|
43
|
+
title?: string
|
|
44
|
+
items: unknown[]
|
|
45
|
+
}
|
|
46
|
+
const props = defineProps<Props>()
|
|
47
|
+
|
|
48
|
+
const firstItemName = computed(() => {
|
|
49
|
+
if(!props.items?.length) return props.useEmptySymbol ? EMPTY_SYMBOL : '';
|
|
50
|
+
|
|
51
|
+
return props.items[0]?.name
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
const displayList = computed(() => {
|
|
55
|
+
if(!props.items?.length) return [];
|
|
56
|
+
|
|
57
|
+
return !props.hideFirstItem ? props.items.slice(1) : props.items
|
|
58
|
+
})
|
|
59
|
+
</script>
|
|
60
|
+
|
|
61
|
+
<style lang="scss" scoped>
|
|
62
|
+
.wt-display-chip-items {
|
|
63
|
+
display: flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
gap: var(--spacing-xs);
|
|
66
|
+
}
|
|
67
|
+
</style>
|
|
@@ -36,16 +36,13 @@
|
|
|
36
36
|
>
|
|
37
37
|
{{ option.description }}
|
|
38
38
|
</p>
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</template>
|
|
47
|
-
{{ option.description }}
|
|
48
|
-
</wt-tooltip>
|
|
39
|
+
|
|
40
|
+
<wt-icon-btn
|
|
41
|
+
v-if="option.description"
|
|
42
|
+
v-tooltip="option.description"
|
|
43
|
+
color="info"
|
|
44
|
+
icon="rounded-info"
|
|
45
|
+
/>
|
|
49
46
|
</slot>
|
|
50
47
|
</li>
|
|
51
48
|
</ul>
|
|
@@ -3,17 +3,13 @@
|
|
|
3
3
|
v-clickaway="close"
|
|
4
4
|
class="wt-app-navigator"
|
|
5
5
|
>
|
|
6
|
-
<wt-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
/>
|
|
14
|
-
</template>
|
|
15
|
-
{{ $t('webitelUI.appNavigator.title') }}
|
|
16
|
-
</wt-tooltip>
|
|
6
|
+
<wt-icon-btn
|
|
7
|
+
v-tooltip="$t('webitelUI.appNavigator.title')"
|
|
8
|
+
:class="{ active: isOpened }"
|
|
9
|
+
class="wt-app-navigator__btn"
|
|
10
|
+
icon="app-navigator"
|
|
11
|
+
@click="isOpened = !isOpened"
|
|
12
|
+
/>
|
|
17
13
|
|
|
18
14
|
<transition name="fade">
|
|
19
15
|
<nav
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="wt-header-actions">
|
|
3
|
-
<wt-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/>
|
|
12
|
-
</template>
|
|
13
|
-
{{ $t('webitelUI.headerActions.account') }}
|
|
14
|
-
</wt-tooltip>
|
|
3
|
+
<wt-icon-btn
|
|
4
|
+
v-clickaway="close"
|
|
5
|
+
v-tooltip="$t('webitelUI.headerActions.account')"
|
|
6
|
+
:class="{ active: isOpened }"
|
|
7
|
+
class="wt-header-actions__btn"
|
|
8
|
+
icon="account"
|
|
9
|
+
@click="isOpened = !isOpened"
|
|
10
|
+
/>
|
|
15
11
|
|
|
16
12
|
<transition name="fade">
|
|
17
13
|
<section
|
|
@@ -1,43 +1,47 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<wt-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
:key="index"
|
|
22
|
-
class="wt-context-menu__option-wrapper"
|
|
2
|
+
<div class="wt-context-menu">
|
|
3
|
+
<wt-popover
|
|
4
|
+
:visible="visible"
|
|
5
|
+
:disabled="disabled"
|
|
6
|
+
unstyled
|
|
7
|
+
placement="bottom-end"
|
|
8
|
+
class="wt-context-menu__floating-wrapper"
|
|
9
|
+
>
|
|
10
|
+
<template #activator="{ toggle, show }">
|
|
11
|
+
<slot
|
|
12
|
+
name="activator"
|
|
13
|
+
v-bind="{ toggle, show }"
|
|
14
|
+
/>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<template #default="{ hide }">
|
|
18
|
+
<ul
|
|
19
|
+
:style="`width: ${width}; min-width: ${minWidth}; max-width: ${maxWidth};`"
|
|
20
|
+
class="wt-context-menu__menu"
|
|
23
21
|
>
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
@click.prevent="handleOptionClick({ option, index, hide })"
|
|
22
|
+
<li
|
|
23
|
+
v-for="(option, index) of options"
|
|
24
|
+
:key="index"
|
|
25
|
+
class="wt-context-menu__option-wrapper"
|
|
29
26
|
>
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
<a
|
|
28
|
+
:class="[{ 'wt-context-menu__option--disabled': option.disabled }]"
|
|
29
|
+
class="wt-context-menu__option"
|
|
30
|
+
href="#"
|
|
31
|
+
@click.prevent="handleOptionClick({ option, index, hide })"
|
|
33
32
|
>
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
<slot
|
|
34
|
+
name="option"
|
|
35
|
+
v-bind="option"
|
|
36
|
+
>
|
|
37
|
+
{{ option.text || option }}
|
|
38
|
+
</slot>
|
|
39
|
+
</a>
|
|
40
|
+
</li>
|
|
41
|
+
</ul>
|
|
42
|
+
</template>
|
|
43
|
+
</wt-popover>
|
|
44
|
+
</div>
|
|
41
45
|
</template>
|
|
42
46
|
|
|
43
47
|
<script setup>
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<wt-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/>
|
|
10
|
-
</template>
|
|
11
|
-
{{ copied ? copiedTooltip : copyTooltip }}
|
|
12
|
-
</wt-tooltip>
|
|
2
|
+
<wt-icon-btn
|
|
3
|
+
v-tooltip="copied ? copiedTooltip : copyTooltip"
|
|
4
|
+
:icon="copied ? 'done' : 'copy'"
|
|
5
|
+
class="copy-action"
|
|
6
|
+
v-bind="$attrs"
|
|
7
|
+
@click="copy"
|
|
8
|
+
/>
|
|
13
9
|
</template>
|
|
14
10
|
|
|
15
11
|
<script>
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<wt-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/>
|
|
11
|
-
</template>
|
|
12
|
-
{{ t(iconAction.hint) }}
|
|
13
|
-
</wt-tooltip>
|
|
2
|
+
<wt-icon-btn
|
|
3
|
+
v-tooltip="t(iconAction.hint)"
|
|
4
|
+
:disabled="disabled"
|
|
5
|
+
:icon="iconAction.icon"
|
|
6
|
+
:size="size"
|
|
7
|
+
@click="emit('click', $event)"
|
|
8
|
+
@mousedown="emit('mousedown', $event)"
|
|
9
|
+
/>
|
|
14
10
|
</template>
|
|
15
11
|
|
|
16
12
|
<script setup>
|
|
@@ -14,28 +14,21 @@
|
|
|
14
14
|
/>
|
|
15
15
|
</div>
|
|
16
16
|
<div class="wt-pagination__page-controls">
|
|
17
|
-
<wt-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
class="wt-pagination__page-control"
|
|
33
|
-
icon="arrow-right"
|
|
34
|
-
@click="goNext"
|
|
35
|
-
/>
|
|
36
|
-
</template>
|
|
37
|
-
{{ $t('webitelUI.pagination.next') }}
|
|
38
|
-
</wt-tooltip>
|
|
17
|
+
<wt-icon-btn
|
|
18
|
+
v-tooltip="$t('webitelUI.pagination.prev')"
|
|
19
|
+
:disabled="!prev"
|
|
20
|
+
class="wt-pagination__page-control"
|
|
21
|
+
icon="arrow-left"
|
|
22
|
+
@click="goPrev"
|
|
23
|
+
/>
|
|
24
|
+
|
|
25
|
+
<wt-icon-btn
|
|
26
|
+
v-tooltip="$t('webitelUI.pagination.next')"
|
|
27
|
+
:disabled="!next"
|
|
28
|
+
class="wt-pagination__page-control"
|
|
29
|
+
icon="arrow-right"
|
|
30
|
+
@click="goNext"
|
|
31
|
+
/>
|
|
39
32
|
</div>
|
|
40
33
|
</footer>
|
|
41
34
|
</template>
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
<div>
|
|
3
|
+
<slot name="activator" v-bind="{ show, toggle, hide }" />
|
|
4
|
+
|
|
5
|
+
<p-popover
|
|
6
|
+
ref="innerPopover"
|
|
7
|
+
v-bind="attrs"
|
|
8
|
+
:append-to="appendTo"
|
|
9
|
+
:base-z-index="baseZIndex"
|
|
10
|
+
:auto-z-index="autoZIndex"
|
|
11
|
+
:breakpoints="breakpoints"
|
|
12
|
+
:dt="dt"
|
|
13
|
+
:pt="pt"
|
|
14
|
+
:pt-options="ptOptions"
|
|
15
|
+
:close-on-escape="closeOnEscape"
|
|
16
|
+
:unstyled="unstyled"
|
|
17
|
+
v-on="attrs"
|
|
18
|
+
>
|
|
19
|
+
<slot name="default" v-bind="{ hide, toggle }" />
|
|
20
|
+
</p-popover>
|
|
21
|
+
</div>
|
|
17
22
|
</template>
|
|
18
23
|
|
|
19
24
|
<script setup lang="ts">
|
|
@@ -32,13 +37,26 @@ withDefaults(defineProps<PopoverProps>(), {
|
|
|
32
37
|
pt: null,
|
|
33
38
|
ptOptions: null,
|
|
34
39
|
closeOnEscape: true,
|
|
40
|
+
unstyled: false
|
|
35
41
|
});
|
|
36
42
|
defineEmits<PopoverEmitsOptions>();
|
|
37
43
|
|
|
44
|
+
const toggle = (event?: Event) => {
|
|
45
|
+
innerPopover.value?.toggle(event);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const show = (event?: Event) => {
|
|
49
|
+
innerPopover.value?.show(event);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
const hide = (event?: Event) => {
|
|
53
|
+
innerPopover.value?.hide(event);
|
|
54
|
+
};
|
|
55
|
+
|
|
38
56
|
// Expose useful Popover methods
|
|
39
57
|
defineExpose({
|
|
40
|
-
toggle
|
|
41
|
-
show
|
|
42
|
-
hide
|
|
58
|
+
toggle,
|
|
59
|
+
show,
|
|
60
|
+
hide,
|
|
43
61
|
});
|
|
44
62
|
</script>
|
|
@@ -46,15 +46,11 @@
|
|
|
46
46
|
@click="updateSearchMode"
|
|
47
47
|
>
|
|
48
48
|
<template #activator>
|
|
49
|
-
<wt-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
/>
|
|
55
|
-
</template>
|
|
56
|
-
{{ $t('webitelUI.searchBar.settingsHint') }}
|
|
57
|
-
</wt-tooltip>
|
|
49
|
+
<wt-icon-btn
|
|
50
|
+
v-tooltip="$t('webitelUI.searchBar.settingsHint')"
|
|
51
|
+
:color="invalid ? 'error' : 'default'"
|
|
52
|
+
icon="filter"
|
|
53
|
+
/>
|
|
58
54
|
</template>
|
|
59
55
|
<template #option="{ value, text }">
|
|
60
56
|
<wt-radio
|
|
@@ -52,23 +52,24 @@
|
|
|
52
52
|
v-if="!isOpened"
|
|
53
53
|
#limit
|
|
54
54
|
>
|
|
55
|
-
<wt-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
<wt-chip> +{{ value.length - 1 }}</wt-chip>
|
|
55
|
+
<wt-popover class="multiselect__limit">
|
|
56
|
+
<template #activator="{ toggle }">
|
|
57
|
+
<div @click.stop.prevent="toggle">
|
|
58
|
+
<wt-chip> +{{ value.length - 1 }}</wt-chip>
|
|
59
|
+
</div>
|
|
61
60
|
</template>
|
|
62
61
|
|
|
63
|
-
<
|
|
64
|
-
<
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
62
|
+
<template #default>
|
|
63
|
+
<div>
|
|
64
|
+
<p
|
|
65
|
+
v-for="(option, idx) of value.slice(1)"
|
|
66
|
+
:key="idx"
|
|
67
|
+
>
|
|
68
|
+
{{ getOptionLabel({ option, optionLabel }) }}
|
|
69
|
+
</p>
|
|
70
|
+
</div>
|
|
71
|
+
</template>
|
|
72
|
+
</wt-popover>
|
|
72
73
|
</template>
|
|
73
74
|
|
|
74
75
|
<!-- Slot that is used for all selected options (tags)-->
|
|
@@ -1,61 +1,49 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<aside class="wt-table-actions">
|
|
3
3
|
<slot />
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<wt-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
{{ $t('webitelUI.tableActions.refreshTable') }}
|
|
48
|
-
</wt-tooltip>
|
|
49
|
-
<wt-tooltip v-if="isSettings">
|
|
50
|
-
<template #activator>
|
|
51
|
-
<wt-icon-btn
|
|
52
|
-
:class="{ active: isSettingsActive }"
|
|
53
|
-
icon="filter"
|
|
54
|
-
@click="$emit('input', 'settings')"
|
|
55
|
-
/>
|
|
56
|
-
</template>
|
|
57
|
-
{{ $t('webitelUI.tableActions.expandFilters') }}
|
|
58
|
-
</wt-tooltip>
|
|
4
|
+
|
|
5
|
+
<wt-icon-btn
|
|
6
|
+
v-if="isImport"
|
|
7
|
+
v-tooltip="$t('reusable.import')"
|
|
8
|
+
icon="download"
|
|
9
|
+
@click="$emit('input', 'import')"
|
|
10
|
+
/>
|
|
11
|
+
|
|
12
|
+
<wt-icon-btn
|
|
13
|
+
v-if="isExport"
|
|
14
|
+
v-tooltip="$t('reusable.export')"
|
|
15
|
+
icon="upload"
|
|
16
|
+
@click="$emit('input', 'export')"
|
|
17
|
+
/>
|
|
18
|
+
|
|
19
|
+
<wt-icon-btn
|
|
20
|
+
v-if="isFilterReset"
|
|
21
|
+
v-tooltip="$t('webitelUI.tableActions.filterReset')"
|
|
22
|
+
icon="clear"
|
|
23
|
+
@click="$emit('input', 'filterReset')"
|
|
24
|
+
/>
|
|
25
|
+
|
|
26
|
+
<wt-icon-btn
|
|
27
|
+
v-if="isColumnSelect"
|
|
28
|
+
v-tooltip="$t('webitelUI.tableActions.columnSelect')"
|
|
29
|
+
icon="column-select"
|
|
30
|
+
@click="$emit('input', 'columnSelect')"
|
|
31
|
+
/>
|
|
32
|
+
|
|
33
|
+
<wt-icon-btn
|
|
34
|
+
v-if="isRefresh"
|
|
35
|
+
v-tooltip="$t('webitelUI.tableActions.refreshTable')"
|
|
36
|
+
icon="refresh"
|
|
37
|
+
@click="$emit('input', 'refresh')"
|
|
38
|
+
/>
|
|
39
|
+
|
|
40
|
+
<wt-icon-btn
|
|
41
|
+
v-if="isSettings"
|
|
42
|
+
v-tooltip="$t('webitelUI.tableActions.expandFilters')"
|
|
43
|
+
:class="{ active: isSettingsActive }"
|
|
44
|
+
icon="filter"
|
|
45
|
+
@click="$emit('input', 'settings')"
|
|
46
|
+
/>
|
|
59
47
|
</aside>
|
|
60
48
|
</template>
|
|
61
49
|
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="wt-table-column-select">
|
|
3
|
-
<wt-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
</template>
|
|
10
|
-
{{ $t('webitelUI.tableColumnSelect.title') }}
|
|
11
|
-
</wt-tooltip>
|
|
3
|
+
<wt-icon-btn
|
|
4
|
+
v-tooltip="$t('webitelUI.tableColumnSelect.title')"
|
|
5
|
+
icon="column-select"
|
|
6
|
+
@click="openPopup"
|
|
7
|
+
/>
|
|
8
|
+
|
|
12
9
|
<wt-popup
|
|
13
10
|
:shown="isColumnSelectPopup"
|
|
14
11
|
class="wt-table-column-select__popup"
|