@webitel/ui-sdk 26.4.16 → 26.4.18
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/displayText-Cbh4IOfM.js +5 -0
- package/dist/{index-CRJrntZh.js → index-B0AYwz58.js} +1 -1
- package/dist/{index-Bi3e-yvC.js → index-Dvhbo446.js} +1 -1
- package/dist/{install-BduuMOLN.js → install-CrJnxpPS.js} +1905 -1893
- package/dist/{isObject-CzE0nrvV.js → isObject-BsWrydYX.js} +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +241 -241
- package/dist/{useVidstackSrc-CLxGvfx7.js → useVidstackSrc-Bmp2wHly.js} +1 -1
- package/dist/{vidstack-Bq6c3Bam-BAJLRjUL.js → vidstack-Bq6c3Bam-N3JOOQyW.js} +3 -3
- package/dist/{vidstack-D2pY00kU-BUwc6A8v.js → vidstack-D2pY00kU-ByaRFZub.js} +3 -3
- package/dist/{vidstack-DDXt6fpN-CLi5zfDH.js → vidstack-DDXt6fpN-H7PZzMEr.js} +2 -2
- package/dist/{vidstack-D_-9AA6_-BV38l14i.js → vidstack-D_-9AA6_-BgRVFwPt.js} +2 -2
- package/dist/{vidstack-DqAw8m9J-jbgzgoAn.js → vidstack-DqAw8m9J-BODJkoui.js} +1 -1
- package/dist/{vidstack-audio-B4T0OD88.js → vidstack-audio-Cnpq73DL.js} +2 -2
- package/dist/{vidstack-dash-C-EzK5NU.js → vidstack-dash-Bzo3Gzfd.js} +4 -4
- package/dist/{vidstack-google-cast-BND83Re6.js → vidstack-google-cast--giiu8Z5.js} +4 -4
- package/dist/{vidstack-hls-xaDBRbO-.js → vidstack-hls-CrDFf1Gs.js} +4 -4
- package/dist/{vidstack-video-BDSTzD3w.js → vidstack-video-h7Tsw5LU.js} +3 -3
- package/dist/{vidstack-vimeo-B4xYeH9Q.js → vidstack-vimeo-CbcdGN2R.js} +4 -4
- package/dist/{vidstack-youtube-rDfIJqG7.js → vidstack-youtube-DKzx3LPK.js} +3 -3
- package/dist/{wt-action-bar-lVU52KrC.js → wt-action-bar-GCDVmO0b.js} +1 -1
- package/dist/{wt-button-select-C7wNgMqI.js → wt-button-select-BBsJj7FV.js} +1 -1
- package/dist/{wt-chat-emoji-D2nEPIDy.js → wt-chat-emoji-MhnNs-SG.js} +2 -2
- package/dist/{wt-confirm-dialog-CAX92f_I.js → wt-confirm-dialog-B4J3ZU2r.js} +1 -1
- package/dist/{wt-context-menu-2CaTxYJx.js → wt-context-menu-Cekc6Rva.js} +1 -1
- package/dist/{wt-copy-action-BrhZR265.js → wt-copy-action-CT_0bHmt.js} +1 -1
- package/dist/{wt-datepicker-2AQYoSOi.js → wt-datepicker-B513Tw-Z.js} +1 -1
- package/dist/wt-display-chip-items-CMB33VOU.js +47 -0
- package/dist/{wt-dual-panel-CGBeh_yX.js → wt-dual-panel-DjHHFx8Y.js} +1 -1
- package/dist/{wt-dummy-CiVhtg3s.js → wt-dummy-BivOEKRK.js} +1 -1
- package/dist/{wt-error-page-CbYKAqR3.js → wt-error-page-krwX0484.js} +1 -1
- package/dist/{wt-expansion-card-zBUn8aGk.js → wt-expansion-card-Mrne6YQJ.js} +1 -1
- package/dist/{wt-expansion-panel-BmkuYFI9.js → wt-expansion-panel-D0SABYA1.js} +1 -1
- package/dist/{wt-filters-panel-wrapper-B_kiQbJU.js → wt-filters-panel-wrapper-Dffe4cS8.js} +1 -1
- package/dist/{wt-galleria-DtV88s0G.js → wt-galleria-CB3UNqGT.js} +1 -1
- package/dist/{wt-navigation-menu-DPrkKcay.js → wt-navigation-menu-CozB-VN3.js} +1 -1
- package/dist/{wt-notifications-bar-B1MdVgU5.js → wt-notifications-bar-CBv9RpW3.js} +2 -2
- package/dist/{wt-pagination-DeNIA-Rj.js → wt-pagination-CrnHm3Ei.js} +37 -26
- package/dist/{wt-player-Z6LVaHke.js → wt-player-Be7Ts4oe.js} +2 -2
- package/dist/wt-screen-recordings-action-VJpYH40a.js +55 -0
- package/dist/{wt-search-bar-JemSkyKl.js → wt-search-bar-BNUpiOyg.js} +1 -1
- package/dist/{wt-selection-popup-DvScmlyg.js → wt-selection-popup-DZG_s5cn.js} +1 -1
- package/dist/{wt-start-page-C--6cL1x.js → wt-start-page-B1Ya211Z.js} +1 -1
- package/dist/{wt-status-select-B97OCBvE.js → wt-status-select-ByEBtG_Z.js} +1 -1
- package/dist/{wt-stepper-B48Se9mZ.js → wt-stepper-Bke8hGIN.js} +1 -1
- package/dist/{wt-table-actions-DYT34nCQ.js → wt-table-actions-D2QF78Jq.js} +1 -1
- package/dist/{wt-table-column-select-BMVbzN0g.js → wt-table-column-select-BtcIByjb.js} +2 -2
- package/dist/{wt-table-CemrI6D7.js → wt-table-rT0puxyU.js} +1 -1
- package/dist/{wt-tabs-A0gMEnTl.js → wt-tabs-BIn8m45h.js} +1 -1
- package/dist/{wt-tags-input-D9BVloW9.js → wt-tags-input-Bz3T5KC7.js} +2 -2
- package/dist/{wt-timepicker-zbgCNBxA.js → wt-timepicker-CuMYCWnA.js} +1 -1
- package/dist/{wt-tree-Di-glh2x.js → wt-tree-DftQx0vm.js} +2 -2
- package/dist/{wt-tree-table-BUDxyApa.js → wt-tree-table-Cqt8iSLj.js} +1 -1
- package/dist/{wt-type-extension-value-input-BZzPpD02.js → wt-type-extension-value-input-rX_qRFjQ.js} +2 -2
- package/dist/{wt-vidstack-player-IX8uh__X.js → wt-vidstack-player-CWmoXIAG.js} +10 -10
- package/package.json +5 -2
- package/src/api/clients/users/__tests__/users.spec.js +1 -1
- package/src/components/index.js +8 -0
- package/src/components/on-demand/wt-screen-recordings-action/wt-screen-recordings-action.vue +72 -0
- package/src/components/wt-button/__tests__/WtButton.spec.js +10 -5
- package/src/components/wt-button-select/__tests__/WtButtonSelect.spec.js +13 -16
- package/src/components/wt-checkbox/__tests__/WtCheckbox.spec.js +6 -2
- package/src/components/wt-chip/__tests__/WtChip.spec.js +3 -3
- package/src/components/wt-filters-panel-wrapper/__tests__/WtFiltersPanelWrapper.spec.js +4 -17
- package/src/components/wt-icon/__tests__/WtIcon.spec.js +19 -2
- package/src/components/wt-pagination/__tests__/WtPagination.spec.js +80 -16
- package/src/components/wt-pagination/wt-pagination.vue +28 -8
- package/src/components/wt-radio/__tests__/WtRadio.spec.js +8 -2
- package/src/components/wt-rounded-action/__tests__/WtRoundedAction.spec.js +98 -0
- package/src/components/wt-rounded-action/wt-rounded-action.vue +21 -8
- package/src/components/wt-switcher/__tests__/WtSwitcher.spec.js +9 -11
- package/src/components/wt-textarea/__tests__/WtTextarea.spec.js +2 -2
- package/src/components/wt-time-input/__tests__/WtTimeInput.spec.js +18 -1
- package/src/components/wt-timepicker/__tests__/WtTimepicker.spec.js +9 -15
- package/src/composables/useRepresentableAgentPauseCause/__tests__/useRepresentableAgentPauseCause.spec.js +60 -80
- package/src/modules/AgentStatusSelect/components/__tests__/wt-cc-agent-status-select.spec.js +6 -47
- package/src/modules/AgentStatusSelect/components/__tests__/wt-cc-pause-cause-popup.spec.js +31 -3
- package/src/modules/Appearance/components/__tests__/wt-dark-mode-switcher.spec.js +16 -10
- package/src/modules/AuditForm/components/form-questions/options/__tests__/audit-form-question-options.spec.js +4 -6
- package/src/modules/AuditForm/components/form-questions/score/__tests__/audit-form-question-score.spec.js +2 -2
- package/src/modules/DeleteConfirmationPopup/__tests__/delete-confirmation-popup.spec.js +7 -51
- package/src/modules/QueryFilters/store/__tests__/QueryFiltersStoreModule.spec.js +12 -8
- package/types/components/on-demand/wt-screen-recordings-action/wt-screen-recordings-action.vue.d.ts +10 -0
- package/dist/wt-display-chip-items-DO2rtX0h.js +0 -46
- package/src/components/wt-copy-action/__tests__/WtCopyAction.spec.js +0 -15
- package/src/components/wt-divider/__tests__/WtDivider.spec.js +0 -10
- package/src/components/wt-slider/__tests__/WtSlider.spec.js +0 -10
- package/src/components/wt-table/__tests__/WtTable.spec.js +0 -140
- package/src/modules/Filters/components/__tests__/filter-pagination.spec.js +0 -109
- package/src/modules/Filters/components/__tests__/filter-table-fields.spec.js +0 -112
- package/types/components/wt-copy-action/__tests__/WtCopyAction.spec.d.ts +0 -1
- package/types/components/wt-divider/__tests__/WtDivider.spec.d.ts +0 -1
- package/types/components/wt-slider/__tests__/WtSlider.spec.d.ts +0 -1
- package/types/components/wt-table/__tests__/WtTable.spec.d.ts +0 -1
- package/types/modules/Filters/components/__tests__/filter-pagination.spec.d.ts +0 -1
- package/types/modules/Filters/components/__tests__/filter-table-fields.spec.d.ts +0 -1
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { mount, shallowMount } from '@vue/test-utils';
|
|
2
|
-
|
|
3
|
-
import WtCheckbox from '../../wt-checkbox/wt-checkbox.vue';
|
|
4
|
-
import WtTable from '../wt-table.vue';
|
|
5
|
-
|
|
6
|
-
const headers = [
|
|
7
|
-
{
|
|
8
|
-
text: 'heading 1',
|
|
9
|
-
value: 'h1',
|
|
10
|
-
sort: null,
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
text: 'heading2',
|
|
14
|
-
value: 'h2',
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
text: 'heading 3',
|
|
18
|
-
value: 'h3',
|
|
19
|
-
},
|
|
20
|
-
];
|
|
21
|
-
const data = [
|
|
22
|
-
{
|
|
23
|
-
h1: 'value 1',
|
|
24
|
-
h2: 'value 2',
|
|
25
|
-
h3: 'value 3',
|
|
26
|
-
_isSelected: false,
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
h1: 'value 1',
|
|
30
|
-
h2: 'value 2',
|
|
31
|
-
h3: 'value 3',
|
|
32
|
-
_isSelected: false,
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
h1: 'value 1',
|
|
36
|
-
h2: 'value 2',
|
|
37
|
-
h3: 'value 3',
|
|
38
|
-
_isSelected: false,
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
h1: 'value 1',
|
|
42
|
-
h2: 'value 2',
|
|
43
|
-
h3: 'value 3',
|
|
44
|
-
_isSelected: false,
|
|
45
|
-
},
|
|
46
|
-
];
|
|
47
|
-
|
|
48
|
-
describe('WtTable', () => {
|
|
49
|
-
it('renders a component', () => {
|
|
50
|
-
const wrapper = shallowMount(WtTable);
|
|
51
|
-
expect(wrapper.classes('wt-table')).toBe(true);
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
it('renders table data rows', () => {
|
|
55
|
-
const wrapper = shallowMount(WtTable, {
|
|
56
|
-
props: {
|
|
57
|
-
headers,
|
|
58
|
-
data,
|
|
59
|
-
},
|
|
60
|
-
});
|
|
61
|
-
expect(wrapper.findAll('.wt-table__tr__body').length).toBe(data.length);
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
it('renders table headers', () => {
|
|
65
|
-
const wrapper = shallowMount(WtTable, {
|
|
66
|
-
props: {
|
|
67
|
-
headers,
|
|
68
|
-
data,
|
|
69
|
-
selectable: false,
|
|
70
|
-
gridActions: false,
|
|
71
|
-
},
|
|
72
|
-
});
|
|
73
|
-
expect(wrapper.findAll('.wt-table__tr__head th').length).toBe(
|
|
74
|
-
headers.length,
|
|
75
|
-
);
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
it('do not renders table footer by default', () => {
|
|
79
|
-
const wrapper = shallowMount(WtTable, {
|
|
80
|
-
props: {
|
|
81
|
-
headers,
|
|
82
|
-
data,
|
|
83
|
-
},
|
|
84
|
-
});
|
|
85
|
-
expect(wrapper.find('.wt-table__foot').exists()).toBe(false);
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
it('renders table footer if footer slot is passed', () => {
|
|
89
|
-
const wrapper = shallowMount(WtTable, {
|
|
90
|
-
props: {
|
|
91
|
-
headers,
|
|
92
|
-
data,
|
|
93
|
-
},
|
|
94
|
-
slots: {
|
|
95
|
-
'data-footer': '',
|
|
96
|
-
},
|
|
97
|
-
});
|
|
98
|
-
expect(wrapper.find('.wt-table__foot').isVisible()).toBe(true);
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
it('emits sort event at header click when sortable is true', () => {
|
|
102
|
-
const wrapper = shallowMount(WtTable, {
|
|
103
|
-
props: {
|
|
104
|
-
headers,
|
|
105
|
-
data,
|
|
106
|
-
sortable: true,
|
|
107
|
-
},
|
|
108
|
-
});
|
|
109
|
-
wrapper.find('.wt-table__th--sortable').trigger('click');
|
|
110
|
-
expect(wrapper.emitted().sort.pop()).toBeTruthy();
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
it('draws sort arrow, if a column is sorted', () => {
|
|
114
|
-
headers[0].sort = 'asc';
|
|
115
|
-
const wrapper = shallowMount(WtTable, {
|
|
116
|
-
props: {
|
|
117
|
-
headers,
|
|
118
|
-
data,
|
|
119
|
-
sortable: true,
|
|
120
|
-
},
|
|
121
|
-
});
|
|
122
|
-
expect(
|
|
123
|
-
wrapper
|
|
124
|
-
.find('.wt-table__th--sortable .wt-table__th__sort-arrow')
|
|
125
|
-
.exists(),
|
|
126
|
-
).toBe(true);
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
it('selects all rows at header checkbox click', async () => {
|
|
130
|
-
const wrapper = mount(WtTable, {
|
|
131
|
-
props: {
|
|
132
|
-
headers,
|
|
133
|
-
data,
|
|
134
|
-
selectable: true,
|
|
135
|
-
},
|
|
136
|
-
});
|
|
137
|
-
wrapper.findComponent(WtCheckbox).vm.$emit('change');
|
|
138
|
-
expect(data.every((item) => item._isSelected)).toBe(true);
|
|
139
|
-
});
|
|
140
|
-
});
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { mount } from '@vue/test-utils';
|
|
2
|
-
import { createStore } from 'vuex';
|
|
3
|
-
|
|
4
|
-
import FiltersStoreModule from '../../store/FiltersStoreModule.js';
|
|
5
|
-
import FilterPagination from '../filter-pagination.vue';
|
|
6
|
-
|
|
7
|
-
const filtersSchema = [
|
|
8
|
-
{
|
|
9
|
-
name: 'page',
|
|
10
|
-
value: 1,
|
|
11
|
-
get: [
|
|
12
|
-
'value',
|
|
13
|
-
],
|
|
14
|
-
set: [
|
|
15
|
-
'value',
|
|
16
|
-
],
|
|
17
|
-
restore: () => {},
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
name: 'size',
|
|
21
|
-
value: 11,
|
|
22
|
-
get: [
|
|
23
|
-
'value',
|
|
24
|
-
],
|
|
25
|
-
set: [
|
|
26
|
-
'value',
|
|
27
|
-
],
|
|
28
|
-
restore: () => {},
|
|
29
|
-
},
|
|
30
|
-
];
|
|
31
|
-
|
|
32
|
-
describe('FilterPagination', () => {
|
|
33
|
-
it('renders a component', () => {
|
|
34
|
-
const store = createStore({
|
|
35
|
-
modules: {
|
|
36
|
-
filters: new FiltersStoreModule().addFilter(filtersSchema).getModule(),
|
|
37
|
-
},
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
const wrapper = mount(FilterPagination, {
|
|
41
|
-
props: {
|
|
42
|
-
namespace: 'filters',
|
|
43
|
-
},
|
|
44
|
-
global: {
|
|
45
|
-
plugins: [
|
|
46
|
-
store,
|
|
47
|
-
],
|
|
48
|
-
},
|
|
49
|
-
});
|
|
50
|
-
expect(wrapper.exists()).toBe(true);
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
it('size change dispatches SET_FILTER action', async () => {
|
|
54
|
-
const store = createStore({
|
|
55
|
-
modules: {
|
|
56
|
-
filters: new FiltersStoreModule().addFilter(filtersSchema).getModule(),
|
|
57
|
-
},
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
const wrapper = mount(FilterPagination, {
|
|
61
|
-
shallow: true,
|
|
62
|
-
props: {
|
|
63
|
-
namespace: 'filters',
|
|
64
|
-
},
|
|
65
|
-
global: {
|
|
66
|
-
plugins: [
|
|
67
|
-
store,
|
|
68
|
-
],
|
|
69
|
-
stubs: {
|
|
70
|
-
WtPagination: false,
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
const pagination = wrapper.findComponent('.wt-pagination');
|
|
76
|
-
pagination.vm.$emit('input', 321);
|
|
77
|
-
pagination.vm.$emit('change');
|
|
78
|
-
await wrapper.vm.$nextTick();
|
|
79
|
-
expect(store.getters['filters/GET_FILTER']('size')).toBe(321);
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
it('page change dispatches SET_FILTER action', async () => {
|
|
83
|
-
const store = createStore({
|
|
84
|
-
modules: {
|
|
85
|
-
filters: new FiltersStoreModule().addFilter(filtersSchema).getModule(),
|
|
86
|
-
},
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
const wrapper = mount(FilterPagination, {
|
|
90
|
-
shallow: true,
|
|
91
|
-
props: {
|
|
92
|
-
namespace: 'filters',
|
|
93
|
-
},
|
|
94
|
-
global: {
|
|
95
|
-
plugins: [
|
|
96
|
-
store,
|
|
97
|
-
],
|
|
98
|
-
stubs: {
|
|
99
|
-
WtPagination: false,
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
const pagination = wrapper.findComponent('.wt-pagination');
|
|
105
|
-
pagination.vm.$emit('next');
|
|
106
|
-
await wrapper.vm.$nextTick();
|
|
107
|
-
expect(store.getters['filters/GET_FILTER']('page')).toBe(2);
|
|
108
|
-
});
|
|
109
|
-
});
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { mount } from '@vue/test-utils';
|
|
2
|
-
import { createStore } from 'vuex';
|
|
3
|
-
|
|
4
|
-
import FiltersStoreModule from '../../store/FiltersStoreModule.js';
|
|
5
|
-
import FilterTableFields from '../filter-table-fields.vue';
|
|
6
|
-
|
|
7
|
-
const filterSchema = {
|
|
8
|
-
name: 'fields',
|
|
9
|
-
value: [
|
|
10
|
-
'field2',
|
|
11
|
-
],
|
|
12
|
-
get: [
|
|
13
|
-
'value',
|
|
14
|
-
],
|
|
15
|
-
set: [
|
|
16
|
-
'value',
|
|
17
|
-
],
|
|
18
|
-
restore: () => {},
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
describe('FilterTableFields', () => {
|
|
22
|
-
it('renders a component', () => {
|
|
23
|
-
const store = createStore({
|
|
24
|
-
modules: {
|
|
25
|
-
filters: new FiltersStoreModule().addFilter(filterSchema).getModule(),
|
|
26
|
-
},
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
const headers = [
|
|
30
|
-
{
|
|
31
|
-
value: 'f1',
|
|
32
|
-
field: 'field1',
|
|
33
|
-
show: false,
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
value: 'f2',
|
|
37
|
-
field: 'field2',
|
|
38
|
-
show: true,
|
|
39
|
-
},
|
|
40
|
-
];
|
|
41
|
-
|
|
42
|
-
const wrapper = mount(FilterTableFields, {
|
|
43
|
-
props: {
|
|
44
|
-
namespace: 'filters',
|
|
45
|
-
headers,
|
|
46
|
-
},
|
|
47
|
-
global: {
|
|
48
|
-
plugins: [
|
|
49
|
-
store,
|
|
50
|
-
],
|
|
51
|
-
},
|
|
52
|
-
});
|
|
53
|
-
expect(wrapper.exists()).toBe(true);
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
it('fields change dispatches SET_FILTER action', async () => {
|
|
57
|
-
const store = createStore({
|
|
58
|
-
modules: {
|
|
59
|
-
filters: new FiltersStoreModule().addFilter(filterSchema).getModule(),
|
|
60
|
-
},
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
const headers = [
|
|
64
|
-
{
|
|
65
|
-
value: 'f1',
|
|
66
|
-
field: 'field1',
|
|
67
|
-
show: false,
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
value: 'f2',
|
|
71
|
-
field: 'field2',
|
|
72
|
-
show: true,
|
|
73
|
-
},
|
|
74
|
-
];
|
|
75
|
-
|
|
76
|
-
const wrapper = mount(FilterTableFields, {
|
|
77
|
-
shallow: true,
|
|
78
|
-
props: {
|
|
79
|
-
namespace: 'filters',
|
|
80
|
-
headers,
|
|
81
|
-
},
|
|
82
|
-
global: {
|
|
83
|
-
plugins: [
|
|
84
|
-
store,
|
|
85
|
-
],
|
|
86
|
-
},
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
wrapper
|
|
90
|
-
.findComponent({
|
|
91
|
-
name: 'WtTableColumnSelect',
|
|
92
|
-
})
|
|
93
|
-
.vm.$emit('change', [
|
|
94
|
-
{
|
|
95
|
-
value: 'f1',
|
|
96
|
-
field: 'field1',
|
|
97
|
-
show: true,
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
value: 'f2',
|
|
101
|
-
field: 'field2',
|
|
102
|
-
show: false,
|
|
103
|
-
},
|
|
104
|
-
]);
|
|
105
|
-
|
|
106
|
-
await wrapper.vm.$nextTick();
|
|
107
|
-
|
|
108
|
-
expect(store.getters['filters/GET_FILTER']('fields')).toEqual([
|
|
109
|
-
'f1',
|
|
110
|
-
]);
|
|
111
|
-
});
|
|
112
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|