@webitel/ui-sdk 23.12.40 → 23.12.43
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/favicon.ico +0 -0
- package/dist/img/sprite/index.js +147 -1
- package/dist/plyr.svg +70 -0
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.mjs +22672 -0
- package/dist/ui-sdk.umd.js +37 -43322
- package/package.json +33 -41
- package/src/components/on-demand/wt-cc-agent-status-timers/wt-cc-agent-status-timers.vue +3 -3
- package/src/components/transitions/wt-expand-transition.vue +2 -2
- package/src/components/wt-app-header/wt-app-header.vue +2 -2
- package/src/components/wt-app-header/wt-app-navigator.vue +6 -5
- package/src/components/wt-app-header/wt-header-actions.vue +30 -14
- package/src/components/wt-avatar/wt-avatar.vue +2 -2
- package/src/components/wt-badge/wt-badge.vue +3 -3
- package/src/components/wt-button/wt-button.vue +5 -3
- package/src/components/wt-button-select/__tests__/WtButtonSelect.spec.js +4 -4
- package/src/components/wt-button-select/wt-button-select.vue +3 -3
- package/src/components/wt-checkbox/wt-checkbox.vue +12 -7
- package/src/components/wt-chip/wt-chip.vue +6 -3
- package/src/components/wt-context-menu/wt-context-menu.vue +4 -4
- package/src/components/wt-copy-action/wt-copy-action.vue +6 -6
- package/src/components/wt-datepicker/wt-datepicker.vue +14 -12
- package/src/components/wt-divider/wt-divider.vue +1 -1
- package/src/components/wt-dummy/wt-dummy.vue +6 -2
- package/src/components/wt-error-page/wt-error-page.vue +10 -4
- package/src/components/wt-expansion-panel/wt-expansion-panel.vue +4 -4
- package/src/components/wt-filters-panel-wrapper/wt-filters-panel-wrapper.vue +7 -4
- package/src/components/wt-headline/wt-headline.vue +4 -4
- package/src/components/wt-headline-nav/wt-headline-nav.vue +11 -4
- package/src/components/wt-hint/wt-hint.vue +4 -4
- package/src/components/wt-icon/wt-icon.vue +5 -5
- package/src/components/wt-icon-action/_internals/wt-add-icon-action.vue +2 -2
- package/src/components/wt-icon-action/_internals/wt-delete-icon-action.vue +2 -2
- package/src/components/wt-icon-action/_internals/wt-download-icon-action.vue +2 -2
- package/src/components/wt-icon-action/_internals/wt-edit-icon-action.vue +2 -2
- package/src/components/wt-icon-action/_internals/wt-history-icon-action.vue +2 -2
- package/src/components/wt-icon-action/_internals/wt-refresh-icon-action.vue +2 -2
- package/src/components/wt-icon-action/wt-icon-action.vue +1 -1
- package/src/components/wt-icon-btn/wt-icon-btn.vue +1 -1
- package/src/components/wt-indicator/wt-indicator.vue +6 -3
- package/src/components/wt-input/wt-input.vue +189 -198
- package/src/components/wt-input-info/wt-input-info.vue +2 -2
- package/src/components/wt-item-link/wt-item-link.vue +1 -1
- package/src/components/wt-label/_variables.scss +4 -2
- package/src/components/wt-label/wt-label.vue +5 -18
- package/src/components/wt-load-bar/wt-load-bar.vue +5 -2
- package/src/components/wt-loader/_internals/wt-loader--md.vue +11 -2
- package/src/components/wt-loader/_internals/wt-loader--sm.vue +9 -2
- package/src/components/wt-loader/wt-loader.vue +10 -3
- package/src/components/wt-navigation-bar/wt-navigation-bar.vue +16 -8
- package/src/components/wt-notification/wt-notification.vue +3 -3
- package/src/components/wt-notifications-bar/wt-notifications-bar.vue +9 -5
- package/src/components/wt-page-header/wt-page-header.vue +7 -8
- package/src/components/wt-page-wrapper/wt-page-wrapper.vue +8 -5
- package/src/components/wt-pagination/wt-pagination.vue +17 -15
- package/src/components/wt-player/wt-player.vue +16 -16
- package/src/components/wt-popup/wt-popup.vue +13 -7
- package/src/components/wt-progress-bar/wt-progress-bar.vue +11 -7
- package/src/components/wt-radio/wt-radio.vue +15 -7
- package/src/components/wt-rounded-action/wt-rounded-action.vue +2 -2
- package/src/components/wt-search-bar/__tests__/WtSearchBar.spec.js +1 -1
- package/src/components/wt-search-bar/wt-search-bar.vue +6 -5
- package/src/components/wt-select/_multiselect.scss +1 -2
- package/src/components/wt-select/wt-select.vue +33 -19
- package/src/components/wt-slider/wt-slider.vue +5 -5
- package/src/components/wt-status-select/wt-status-select.vue +9 -9
- package/src/components/wt-stepper/wt-stepper.vue +8 -6
- package/src/components/wt-switcher/wt-switcher.vue +12 -7
- package/src/components/wt-table/wt-table.vue +110 -72
- package/src/components/wt-table-actions/wt-table-actions.vue +14 -14
- package/src/components/wt-table-column-select/wt-table-column-select.vue +28 -26
- package/src/components/wt-tabs/wt-tabs.vue +7 -7
- package/src/components/wt-tags-input/wt-tags-input.vue +23 -15
- package/src/components/wt-textarea/wt-textarea.vue +16 -11
- package/src/components/wt-time-input/wt-time-input.vue +8 -5
- package/src/components/wt-timepicker/wt-timepicker.vue +20 -16
- package/src/components/wt-tooltip/_internals/wt-tooltip-floating.vue +2 -2
- package/src/components/wt-tooltip/wt-tooltip.vue +4 -4
- package/src/composables/useCachedInterval/__tests__/useCachedInterval.spec.js +5 -5
- package/src/css/styleguide/colors/_colors.scss +9 -8
- package/src/css/styleguide/colors/reusable/_text-field.scss +20 -0
- package/src/css/styleguide/placeholder/_placeholder.scss +6 -11
- package/src/locale/i18n.js +1 -1
- package/src/locale/kz/kz.js +74 -78
- package/src/mixins/validationMixin/useValidation.js +2 -2
- package/src/modules/AgentStatusSelect/components/__tests__/wt-cc-agent-status-select.spec.js +4 -4
- package/src/modules/AgentStatusSelect/components/_internals/wt-cc-pause-cause-popup.vue +11 -9
- package/src/modules/AgentStatusSelect/components/_internals/wt-cc-status-select-error-popup.vue +6 -5
- package/src/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue +3 -3
- package/src/modules/AuditForm/components/__tests__/audit-form.spec.js +1 -1
- package/src/modules/AuditForm/components/audit-form-question-read-wrapper.vue +10 -6
- package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +8 -8
- package/src/modules/AuditForm/components/audit-form-question.vue +8 -8
- package/src/modules/AuditForm/components/audit-form.vue +6 -5
- package/src/modules/AuditForm/components/questions/options/audit-form-question-options-write-row.vue +4 -4
- package/src/modules/AuditForm/components/questions/options/audit-form-question-options.vue +7 -4
- package/src/modules/AuditForm/components/questions/score/audit-form-question-score.vue +3 -3
- package/src/modules/CSVExport/__tests__/CSVExport.spec.js +5 -2
- package/src/modules/DeleteConfirmationPopup/__tests__/delete-confirmation-popup.spec.js +6 -6
- package/src/modules/DeleteConfirmationPopup/components/delete-confirmation-popup.vue +13 -6
- package/src/modules/FilesExport/__tests__/FilesExport.spec.js +6 -3
- package/src/modules/Filters/components/filter-pagination.vue +1 -1
- package/src/modules/Filters/components/filter-table-fields.vue +1 -1
- package/src/modules/Notifications/store/__tests__/NotificationsStoreModule.actions.spec.js +6 -6
- package/src/modules/QueryFilters/classes/__tests__/ApiFilterSchema.spec.js +1 -1
- package/src/modules/QueryFilters/components/__tests__/abstract-api-filter.spec.js +4 -4
- package/src/modules/QueryFilters/components/__tests__/filter-datetime.spec.js +2 -2
- package/src/modules/QueryFilters/components/__tests__/filter-from-to.spec.js +4 -4
- package/src/modules/QueryFilters/components/__tests__/filter-search.spec.js +2 -2
- package/src/modules/QueryFilters/components/abstract-api-filter.vue +2 -2
- package/src/modules/QueryFilters/components/abstract-enum-filter.vue +2 -2
- package/src/modules/QueryFilters/components/filter-datetime.vue +2 -2
- package/src/modules/QueryFilters/components/filter-from-to.vue +12 -10
- package/src/modules/QueryFilters/components/filter-search.vue +2 -2
- package/src/modules/QueryFilters/components/filter-table-fields.vue +7 -7
- package/src/modules/QueryFilters/mixins/__tests__/apiFilterMixin.spec.js +1 -1
- package/src/modules/QueryFilters/mixins/__tests__/enumFilterMixin.spec.js +2 -2
- package/src/modules/QueryFilters/mixins/__tests__/paginationFilterMixin.spec.js +2 -2
- package/src/modules/QueryFilters/mixins/__tests__/sortFilterMixin.spec.js +1 -1
- package/src/modules/QueryFilters/store/__tests__/QueryFiltersStoreModule.spec.js +2 -2
- package/src/modules/Userinfo/components/__tests__/auth.spec.js +7 -8
- package/src/modules/Userinfo/components/the-auth.vue +7 -4
- package/src/scripts/saveAsJSON.js +3 -1
- package/src/store/BaseStoreModules/__tests__/BaseStoreModule.spec.js +6 -6
- package/dist/demo.html +0 -1
- package/dist/ui-sdk.common.js +0 -43304
- package/dist/ui-sdk.common.js.map +0 -1
- package/dist/ui-sdk.umd.js.map +0 -1
- package/dist/ui-sdk.umd.min.js +0 -35
- package/dist/ui-sdk.umd.min.js.map +0 -1
- package/src/components/wt-button/Readme.md +0 -23
- package/src/components/wt-button-select/Readme.md +0 -13
- package/src/components/wt-headline-nav/Readme.md +0 -9
- package/src/components/wt-icon/Readme.md +0 -327
- package/src/components/wt-icon/docs/cleanup-svg-fill-none.png +0 -0
- package/src/components/wt-icon/docs/cleanup-svg-fill.png +0 -0
- package/src/components/wt-icon/docs/cleanup-svg-viewbox-correct.png +0 -0
- package/src/components/wt-icon/docs/cleanup-svg-viewbox-incorrect.png +0 -0
- package/src/components/wt-icon/docs/cleanup-svg-width-height.png +0 -0
- package/src/components/wt-icon/docs/svg-icon-code-example.png +0 -0
- package/src/components/wt-icon/docs/svg-sprite-in-dom.png +0 -0
- package/src/components/wt-icon-btn/Readme.md +0 -10
- package/src/components/wt-rounded-action/Readme.md +0 -68
- package/src/validators/variableSearchValidator/Readme.md +0 -13
- package/src/validators/websocketValidator/Readme.md +0 -7
|
@@ -17,9 +17,9 @@ and swapping height/width of this component in order to have the correct output.
|
|
|
17
17
|
<template>
|
|
18
18
|
<div
|
|
19
19
|
:class="{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
'wt-slider--disabled': disabled,
|
|
21
|
+
'wt-slider--vertical': vertical,
|
|
22
|
+
}"
|
|
23
23
|
:style="{ height: vertical && verticalHeight }"
|
|
24
24
|
class="wt-slider"
|
|
25
25
|
>
|
|
@@ -38,14 +38,14 @@ and swapping height/width of this component in order to have the correct output.
|
|
|
38
38
|
class="wt-slider__slider"
|
|
39
39
|
type="range"
|
|
40
40
|
@input="inputHandler"
|
|
41
|
-
|
|
41
|
+
>
|
|
42
42
|
</div>
|
|
43
43
|
</div>
|
|
44
44
|
</template>
|
|
45
45
|
|
|
46
46
|
<script>
|
|
47
47
|
export default {
|
|
48
|
-
name: '
|
|
48
|
+
name: 'WtSlider',
|
|
49
49
|
props: {
|
|
50
50
|
value: {
|
|
51
51
|
type: Number,
|
|
@@ -8,17 +8,17 @@
|
|
|
8
8
|
:searchable="false"
|
|
9
9
|
@input="inputHandler"
|
|
10
10
|
>
|
|
11
|
-
<template
|
|
11
|
+
<template #singleLabel="{ option }">
|
|
12
12
|
<wt-indicator
|
|
13
13
|
:color="option.color"
|
|
14
14
|
:text="duration"
|
|
15
|
-
|
|
15
|
+
/>
|
|
16
16
|
</template>
|
|
17
|
-
<template
|
|
17
|
+
<template #option="{ option }">
|
|
18
18
|
<wt-indicator
|
|
19
19
|
:color="option.color"
|
|
20
20
|
:text="option.text"
|
|
21
|
-
|
|
21
|
+
/>
|
|
22
22
|
</template>
|
|
23
23
|
</wt-select>
|
|
24
24
|
</template>
|
|
@@ -29,7 +29,11 @@ import convertDuration from '../../scripts/convertDuration';
|
|
|
29
29
|
import StatusOptions from './_internals/StatusOptions.lookup';
|
|
30
30
|
|
|
31
31
|
export default {
|
|
32
|
-
name: '
|
|
32
|
+
name: 'WtStatusSelect',
|
|
33
|
+
model: {
|
|
34
|
+
prop: 'status',
|
|
35
|
+
event: 'change',
|
|
36
|
+
},
|
|
33
37
|
props: {
|
|
34
38
|
status: {
|
|
35
39
|
type: String,
|
|
@@ -48,10 +52,6 @@ export default {
|
|
|
48
52
|
// options: ['sm', 'md'],
|
|
49
53
|
// },
|
|
50
54
|
},
|
|
51
|
-
model: {
|
|
52
|
-
prop: 'status',
|
|
53
|
-
event: 'change',
|
|
54
|
-
},
|
|
55
55
|
computed: {
|
|
56
56
|
selectedOption() {
|
|
57
57
|
return this.statusOptions.find((option) => option.value === this.status);
|
|
@@ -5,29 +5,31 @@
|
|
|
5
5
|
class="wt-stepper-steps"
|
|
6
6
|
>
|
|
7
7
|
<div
|
|
8
|
-
class="wt-stepper-steps__wrapper"
|
|
9
8
|
v-for="({name, completed}, idx) in stepWithCompleted"
|
|
9
|
+
class="wt-stepper-steps__wrapper"
|
|
10
10
|
>
|
|
11
11
|
<div
|
|
12
12
|
v-if="idx !== 0"
|
|
13
13
|
class="wt-stepper-steps__divider"
|
|
14
14
|
:class="{ 'wt-stepper-steps__divider--completed': completed }"
|
|
15
|
-
|
|
15
|
+
/>
|
|
16
16
|
<wt-chip
|
|
17
17
|
class="wt-stepper-steps__item"
|
|
18
18
|
:color="!completed && 'secondary'"
|
|
19
|
-
>
|
|
19
|
+
>
|
|
20
|
+
{{ name }}
|
|
20
21
|
</wt-chip>
|
|
21
22
|
</div>
|
|
22
23
|
</div>
|
|
23
24
|
</div>
|
|
24
25
|
|
|
25
26
|
<slot name="description">
|
|
26
|
-
<p class="wt-stepper-description">
|
|
27
|
+
<p class="wt-stepper-description">
|
|
28
|
+
{{ description }}
|
|
29
|
+
</p>
|
|
27
30
|
</slot>
|
|
28
31
|
|
|
29
|
-
<slot name="main"
|
|
30
|
-
|
|
32
|
+
<slot name="main" />
|
|
31
33
|
</div>
|
|
32
34
|
</template>
|
|
33
35
|
<script setup>
|
|
@@ -19,13 +19,18 @@
|
|
|
19
19
|
:disabled="disabled"
|
|
20
20
|
@change="inputHandler"
|
|
21
21
|
>
|
|
22
|
-
<span class="wt-switcher__checkmark"
|
|
22
|
+
<span class="wt-switcher__checkmark" />
|
|
23
23
|
<!-- @slot Custom input label -->
|
|
24
24
|
<slot
|
|
25
25
|
v-bind="{ label, value, disabled }"
|
|
26
26
|
name="label"
|
|
27
27
|
>
|
|
28
|
-
<div
|
|
28
|
+
<div
|
|
29
|
+
v-if="label"
|
|
30
|
+
class="wt-switcher__label"
|
|
31
|
+
>
|
|
32
|
+
{{ label }}
|
|
33
|
+
</div>
|
|
29
34
|
</slot>
|
|
30
35
|
</wt-label>
|
|
31
36
|
</div>
|
|
@@ -33,7 +38,11 @@
|
|
|
33
38
|
|
|
34
39
|
<script>
|
|
35
40
|
export default {
|
|
36
|
-
name: '
|
|
41
|
+
name: 'WtSwitcher',
|
|
42
|
+
model: {
|
|
43
|
+
prop: 'value',
|
|
44
|
+
event: 'change',
|
|
45
|
+
},
|
|
37
46
|
props: {
|
|
38
47
|
value: {
|
|
39
48
|
type: Boolean,
|
|
@@ -56,10 +65,6 @@ export default {
|
|
|
56
65
|
description: 'Object with props, passed down to wt-label as props',
|
|
57
66
|
},
|
|
58
67
|
},
|
|
59
|
-
model: {
|
|
60
|
-
prop: 'value',
|
|
61
|
-
event: 'change',
|
|
62
|
-
},
|
|
63
68
|
methods: {
|
|
64
69
|
inputHandler() {
|
|
65
70
|
this.$emit('change', !this.value);
|
|
@@ -2,86 +2,124 @@
|
|
|
2
2
|
<div class="wt-table">
|
|
3
3
|
<table class="wt-table__table">
|
|
4
4
|
<thead class="wt-table__head">
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
:selected="isAllSelected"
|
|
9
|
-
@change="selectAll"
|
|
10
|
-
></wt-checkbox>
|
|
11
|
-
</th>
|
|
12
|
-
<th
|
|
13
|
-
v-for="(col, key) of dataHeaders"
|
|
14
|
-
:key="key"
|
|
15
|
-
:class="[
|
|
16
|
-
{'wt-table__th--sortable': isColSortable(col)},
|
|
17
|
-
`wt-table__th--sort-${col.sort}`,
|
|
18
|
-
]"
|
|
19
|
-
class="wt-table__th"
|
|
20
|
-
@click="sort(col)"
|
|
5
|
+
<tr
|
|
6
|
+
:style="columnsStyle"
|
|
7
|
+
class="wt-table__tr wt-table__tr__head"
|
|
21
8
|
>
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
9
|
+
<th
|
|
10
|
+
v-if="selectable"
|
|
11
|
+
class="wt-table__th wt-table__th--checkbox"
|
|
12
|
+
>
|
|
13
|
+
<wt-checkbox
|
|
14
|
+
:selected="isAllSelected"
|
|
15
|
+
@change="selectAll"
|
|
16
|
+
/>
|
|
17
|
+
</th>
|
|
18
|
+
<th
|
|
19
|
+
v-for="(col, key) of dataHeaders"
|
|
20
|
+
:key="key"
|
|
21
|
+
:class="[
|
|
22
|
+
{'wt-table__th--sortable': isColSortable(col)},
|
|
23
|
+
`wt-table__th--sort-${col.sort}`,
|
|
24
|
+
]"
|
|
25
|
+
class="wt-table__th"
|
|
26
|
+
@click="sort(col)"
|
|
27
|
+
>
|
|
28
|
+
<div class="wt-table__th__text">
|
|
29
|
+
{{ col.text }}
|
|
30
|
+
</div>
|
|
31
|
+
<wt-icon
|
|
32
|
+
v-if="sortable"
|
|
33
|
+
class="wt-table__th__sort-arrow wt-table__th__sort-arrow--asc"
|
|
34
|
+
icon="sort-arrow-up"
|
|
35
|
+
size="sm"
|
|
36
|
+
/>
|
|
37
|
+
<wt-icon
|
|
38
|
+
v-if="sortable"
|
|
39
|
+
class="wt-table__th__sort-arrow wt-table__th__sort-arrow--desc"
|
|
40
|
+
icon="sort-arrow-down"
|
|
41
|
+
size="sm"
|
|
42
|
+
/>
|
|
43
|
+
</th>
|
|
44
|
+
<th
|
|
45
|
+
v-if="gridActions"
|
|
46
|
+
class="wt-table__th__actions"
|
|
47
|
+
>
|
|
48
|
+
<slot name="actions-header" />
|
|
49
|
+
</th>
|
|
50
|
+
</tr>
|
|
40
51
|
</thead>
|
|
41
52
|
|
|
42
53
|
<tbody class="wt-table__body">
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
>
|
|
50
|
-
<td v-if="selectable" class="wt-table__td wt-table__td--checkbox">
|
|
51
|
-
<wt-checkbox
|
|
52
|
-
:selected="row._isSelected"
|
|
53
|
-
@change="row._isSelected = !row._isSelected"
|
|
54
|
-
></wt-checkbox>
|
|
55
|
-
</td>
|
|
56
|
-
|
|
57
|
-
<td
|
|
58
|
-
v-for="(col, headerKey) of dataHeaders"
|
|
59
|
-
:key="headerKey"
|
|
60
|
-
class="wt-table__td"
|
|
54
|
+
<tr
|
|
55
|
+
v-for="(row, dataKey) of data"
|
|
56
|
+
:key="dataKey"
|
|
57
|
+
:class="`wt-table__tr__${row.id || dataKey}`"
|
|
58
|
+
:style="columnsStyle"
|
|
59
|
+
class="wt-table__tr wt-table__tr__body"
|
|
61
60
|
>
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
<td
|
|
62
|
+
v-if="selectable"
|
|
63
|
+
class="wt-table__td wt-table__td--checkbox"
|
|
64
|
+
>
|
|
65
|
+
<wt-checkbox
|
|
66
|
+
:selected="row._isSelected"
|
|
67
|
+
@change="row._isSelected = !row._isSelected"
|
|
68
|
+
/>
|
|
69
|
+
</td>
|
|
66
70
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
+
<td
|
|
72
|
+
v-for="(col, headerKey) of dataHeaders"
|
|
73
|
+
:key="headerKey"
|
|
74
|
+
class="wt-table__td"
|
|
75
|
+
>
|
|
76
|
+
<slot
|
|
77
|
+
:index="dataKey"
|
|
78
|
+
:item="row"
|
|
79
|
+
:name="col.value"
|
|
80
|
+
>
|
|
81
|
+
<div>{{ row[col.value] }}</div>
|
|
82
|
+
</slot>
|
|
83
|
+
</td>
|
|
84
|
+
|
|
85
|
+
<td
|
|
86
|
+
v-if="gridActions"
|
|
87
|
+
class="wt-table__td__actions"
|
|
88
|
+
>
|
|
89
|
+
<slot
|
|
90
|
+
:index="dataKey"
|
|
91
|
+
:item="row"
|
|
92
|
+
name="actions"
|
|
93
|
+
/>
|
|
94
|
+
</td>
|
|
95
|
+
</tr>
|
|
71
96
|
</tbody>
|
|
72
97
|
|
|
73
|
-
<tfoot
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
<
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
class="wt-table__td"
|
|
98
|
+
<tfoot
|
|
99
|
+
v-if="isTableFooter"
|
|
100
|
+
class="wt-table__foot"
|
|
101
|
+
>
|
|
102
|
+
<tr
|
|
103
|
+
:style="columnsStyle"
|
|
104
|
+
class="wt-table__tr wt-table__tr__foot"
|
|
81
105
|
>
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
106
|
+
<!-- empty checkbox column -->
|
|
107
|
+
<th
|
|
108
|
+
v-if="selectable"
|
|
109
|
+
class="wt-table__th__checkbox"
|
|
110
|
+
/>
|
|
111
|
+
<td
|
|
112
|
+
v-for="(col, headerKey) of dataHeaders"
|
|
113
|
+
:key="headerKey"
|
|
114
|
+
class="wt-table__td"
|
|
115
|
+
>
|
|
116
|
+
<slot
|
|
117
|
+
:header="col"
|
|
118
|
+
:index="headerKey"
|
|
119
|
+
:name="`${col.value}-footer`"
|
|
120
|
+
/>
|
|
121
|
+
</td>
|
|
122
|
+
</tr>
|
|
85
123
|
</tfoot>
|
|
86
124
|
</table>
|
|
87
125
|
</div>
|
|
@@ -91,7 +129,7 @@
|
|
|
91
129
|
import getNextSortOrder from './_internals/getSortOrder';
|
|
92
130
|
|
|
93
131
|
export default {
|
|
94
|
-
name: '
|
|
132
|
+
name: 'WtTable',
|
|
95
133
|
props: {
|
|
96
134
|
headers: {
|
|
97
135
|
type: Array,
|
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<aside class="wt-table-actions">
|
|
3
|
-
<slot
|
|
3
|
+
<slot />
|
|
4
4
|
<wt-tooltip v-if="isImport">
|
|
5
|
-
<template
|
|
5
|
+
<template #activator>
|
|
6
6
|
<wt-icon-btn
|
|
7
7
|
icon="download"
|
|
8
8
|
@click="$emit('input', 'import')"
|
|
9
|
-
|
|
9
|
+
/>
|
|
10
10
|
</template>
|
|
11
11
|
{{ $t('reusable.import') }}
|
|
12
12
|
</wt-tooltip>
|
|
13
13
|
<wt-tooltip v-if="isExport">
|
|
14
|
-
<template
|
|
14
|
+
<template #activator>
|
|
15
15
|
<wt-icon-btn
|
|
16
16
|
icon="upload"
|
|
17
17
|
@click="$emit('input', 'export')"
|
|
18
|
-
|
|
18
|
+
/>
|
|
19
19
|
</template>
|
|
20
20
|
{{ $t('reusable.export') }}
|
|
21
21
|
</wt-tooltip>
|
|
22
22
|
<wt-tooltip v-if="isFilterReset">
|
|
23
|
-
<template
|
|
23
|
+
<template #activator>
|
|
24
24
|
<wt-icon-btn
|
|
25
25
|
icon="clear"
|
|
26
26
|
@click="$emit('input', 'filterReset')"
|
|
27
|
-
|
|
27
|
+
/>
|
|
28
28
|
</template>
|
|
29
29
|
{{ $t('webitelUI.tableActions.filterReset') }}
|
|
30
30
|
</wt-tooltip>
|
|
31
31
|
<wt-tooltip v-if="isColumnSelect">
|
|
32
|
-
<template
|
|
32
|
+
<template #activator>
|
|
33
33
|
<wt-icon-btn
|
|
34
34
|
icon="column-select"
|
|
35
35
|
@click="$emit('input', 'columnSelect')"
|
|
36
|
-
|
|
36
|
+
/>
|
|
37
37
|
</template>
|
|
38
38
|
{{ $t('webitelUI.tableActions.columnSelect') }}
|
|
39
39
|
</wt-tooltip>
|
|
40
40
|
<wt-tooltip v-if="isRefresh">
|
|
41
|
-
<template
|
|
41
|
+
<template #activator>
|
|
42
42
|
<wt-icon-btn
|
|
43
43
|
icon="refresh"
|
|
44
44
|
@click="$emit('input', 'refresh')"
|
|
45
|
-
|
|
45
|
+
/>
|
|
46
46
|
</template>
|
|
47
47
|
{{ $t('webitelUI.tableActions.refreshTable') }}
|
|
48
48
|
</wt-tooltip>
|
|
49
49
|
<wt-tooltip v-if="isSettings">
|
|
50
|
-
<template
|
|
50
|
+
<template #activator>
|
|
51
51
|
<wt-icon-btn
|
|
52
52
|
:class="{'active': isSettingsActive}"
|
|
53
53
|
icon="filter"
|
|
54
54
|
@click="$emit('input', 'settings')"
|
|
55
|
-
|
|
55
|
+
/>
|
|
56
56
|
</template>
|
|
57
57
|
{{ $t('webitelUI.tableActions.expandFilters') }}
|
|
58
58
|
</wt-tooltip>
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
|
|
62
62
|
<script>
|
|
63
63
|
export default {
|
|
64
|
-
name: '
|
|
64
|
+
name: 'WtTableActions',
|
|
65
65
|
props: {
|
|
66
66
|
icons: {
|
|
67
67
|
type: Array,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="wt-table-column-select">
|
|
3
3
|
<wt-tooltip>
|
|
4
|
-
<template
|
|
4
|
+
<template #activator>
|
|
5
5
|
<wt-icon-btn
|
|
6
6
|
icon="column-select"
|
|
7
7
|
@click="openPopup"
|
|
8
|
-
|
|
8
|
+
/>
|
|
9
9
|
</template>
|
|
10
10
|
{{ $t('webitelUI.tableColumnSelect.title') }}
|
|
11
11
|
</wt-tooltip>
|
|
@@ -14,18 +14,18 @@
|
|
|
14
14
|
class="wt-table-column-select__popup"
|
|
15
15
|
@close="close"
|
|
16
16
|
>
|
|
17
|
-
<template
|
|
17
|
+
<template #title>
|
|
18
18
|
{{ $t('webitelUI.tableColumnSelect.title') }}
|
|
19
19
|
</template>
|
|
20
|
-
<template
|
|
20
|
+
<template #main>
|
|
21
21
|
<div class="wt-table-column-select__popup-list-wrap">
|
|
22
22
|
<ul
|
|
23
23
|
class="wt-table-column-select__popup-list"
|
|
24
24
|
:class="{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
'wt-table-column-select__popup-list--md':
|
|
26
|
+
changeableDraft.length > 10 && changeableDraft.length <= 20,
|
|
27
|
+
'wt-table-column-select__popup-list--lg':
|
|
28
|
+
changeableDraft.length > 20
|
|
29
29
|
}"
|
|
30
30
|
>
|
|
31
31
|
<li
|
|
@@ -37,20 +37,22 @@
|
|
|
37
37
|
<wt-checkbox
|
|
38
38
|
v-model="column.show"
|
|
39
39
|
:label="shownColLabel(column)"
|
|
40
|
-
|
|
40
|
+
/>
|
|
41
41
|
</li>
|
|
42
42
|
</ul>
|
|
43
43
|
</div>
|
|
44
44
|
</template>
|
|
45
|
-
<template
|
|
45
|
+
<template #actions>
|
|
46
46
|
<wt-button
|
|
47
47
|
@click="setShownColumns"
|
|
48
|
-
>
|
|
48
|
+
>
|
|
49
|
+
{{ $t('reusable.add') }}
|
|
49
50
|
</wt-button>
|
|
50
51
|
<wt-button
|
|
51
52
|
color="secondary"
|
|
52
53
|
@click="close"
|
|
53
|
-
>
|
|
54
|
+
>
|
|
55
|
+
{{ $t('reusable.cancel') }}
|
|
54
56
|
</wt-button>
|
|
55
57
|
</template>
|
|
56
58
|
</wt-popup>
|
|
@@ -61,7 +63,12 @@
|
|
|
61
63
|
import deepCopy from 'deep-copy';
|
|
62
64
|
|
|
63
65
|
export default {
|
|
64
|
-
name: '
|
|
66
|
+
name: 'WtTableColumnSelect',
|
|
67
|
+
|
|
68
|
+
model: {
|
|
69
|
+
prop: 'headers',
|
|
70
|
+
event: 'change',
|
|
71
|
+
},
|
|
65
72
|
props: {
|
|
66
73
|
headers: {
|
|
67
74
|
type: Array,
|
|
@@ -75,23 +82,10 @@ export default {
|
|
|
75
82
|
},
|
|
76
83
|
},
|
|
77
84
|
|
|
78
|
-
model: {
|
|
79
|
-
prop: 'headers',
|
|
80
|
-
event: 'change',
|
|
81
|
-
},
|
|
82
|
-
|
|
83
85
|
data: () => ({
|
|
84
86
|
draft: [], // headers draft
|
|
85
87
|
isColumnSelectPopup: false,
|
|
86
88
|
}),
|
|
87
|
-
|
|
88
|
-
watch: {
|
|
89
|
-
isColumnSelectPopup: {
|
|
90
|
-
handler() {
|
|
91
|
-
this.fillHeadersDraft();
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
89
|
computed: {
|
|
96
90
|
changeableDraft() {
|
|
97
91
|
return this.draft.filter((header) => !this.staticHeaders.includes(header.value)).sort((a, b) => {
|
|
@@ -100,6 +94,14 @@ export default {
|
|
|
100
94
|
});
|
|
101
95
|
},
|
|
102
96
|
},
|
|
97
|
+
|
|
98
|
+
watch: {
|
|
99
|
+
isColumnSelectPopup: {
|
|
100
|
+
handler() {
|
|
101
|
+
this.fillHeadersDraft();
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
},
|
|
103
105
|
methods: {
|
|
104
106
|
shownColLabel({ text, locale }) {
|
|
105
107
|
if (!text && locale) {
|
|
@@ -26,14 +26,19 @@
|
|
|
26
26
|
transform: `translateX(${activeLineOffset}px)`
|
|
27
27
|
}"
|
|
28
28
|
class="wt-tab__underline--highlight"
|
|
29
|
-
|
|
29
|
+
/>
|
|
30
30
|
</div>
|
|
31
31
|
</nav>
|
|
32
32
|
</template>
|
|
33
33
|
|
|
34
34
|
<script>
|
|
35
35
|
export default {
|
|
36
|
-
name: '
|
|
36
|
+
name: 'WtTabs',
|
|
37
|
+
|
|
38
|
+
model: {
|
|
39
|
+
prop: 'current',
|
|
40
|
+
event: 'change',
|
|
41
|
+
},
|
|
37
42
|
props: {
|
|
38
43
|
current: {
|
|
39
44
|
type: Object,
|
|
@@ -45,11 +50,6 @@ export default {
|
|
|
45
50
|
},
|
|
46
51
|
},
|
|
47
52
|
|
|
48
|
-
model: {
|
|
49
|
-
prop: 'current',
|
|
50
|
-
event: 'change',
|
|
51
|
-
},
|
|
52
|
-
|
|
53
53
|
data: () => ({
|
|
54
54
|
activeLineWidth: 0,
|
|
55
55
|
activeLineOffset: 0,
|