@webitel/ui-sdk 26.4.17 → 26.4.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.
- package/dist/displayText-Cbh4IOfM.js +5 -0
- package/dist/{index-eEFER0lI.js → index-CeADjYK9.js} +1 -1
- package/dist/{index-B_bOPX3o.js → index-DZ_bvNVs.js} +1 -1
- package/dist/{install-C_4PcYy4.js → install-Dofcp90y.js} +1749 -1752
- package/dist/{isObject-Bc_zejYi.js → isObject-B2zd2O3f.js} +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +232 -232
- package/dist/{useVidstackSrc-BjBi-Z6a.js → useVidstackSrc-D9uo15mF.js} +3 -4
- package/dist/{vidstack-Bq6c3Bam-Do_GZqV0.js → vidstack-Bq6c3Bam-Bs73fRdp.js} +3 -3
- package/dist/{vidstack-D2pY00kU-DtEQuJNJ.js → vidstack-D2pY00kU-BVC5bxHL.js} +3 -3
- package/dist/{vidstack-DDXt6fpN-BjUme5OE.js → vidstack-DDXt6fpN-DA-lnlhX.js} +2 -2
- package/dist/{vidstack-D_-9AA6_-BUgV5EDC.js → vidstack-D_-9AA6_-C0QZLaX5.js} +2 -2
- package/dist/{vidstack-DqAw8m9J-D5-emHfz.js → vidstack-DqAw8m9J-DAs7LwX_.js} +1 -1
- package/dist/{vidstack-audio-DmysFuAQ.js → vidstack-audio-BrbZotHa.js} +2 -2
- package/dist/{vidstack-dash-CF4d8BuX.js → vidstack-dash-KNjyvq2R.js} +4 -4
- package/dist/{vidstack-google-cast-CNPyXY9S.js → vidstack-google-cast-DMZQ1jRD.js} +4 -4
- package/dist/{vidstack-hls-BLaXkLiF.js → vidstack-hls-BfOysul0.js} +4 -4
- package/dist/{vidstack-video-v_RKZWR5.js → vidstack-video-PWMSQ3Gk.js} +3 -3
- package/dist/{vidstack-vimeo-BCNYIpmz.js → vidstack-vimeo-C5Khtd48.js} +4 -4
- package/dist/{vidstack-youtube-C1DaWOJU.js → vidstack-youtube-CPcpsir2.js} +3 -3
- package/dist/{wt-action-bar-Ckg4xWY1.js → wt-action-bar-By55sdZf.js} +1 -1
- package/dist/{wt-button-select-DHqtUP4R.js → wt-button-select-C34W0lYV.js} +1 -1
- package/dist/{wt-chat-emoji-BVMxNx8W.js → wt-chat-emoji-DjgWXA_2.js} +2 -2
- package/dist/{wt-confirm-dialog-BNjF-amp.js → wt-confirm-dialog-GNka4gxY.js} +1 -1
- package/dist/{wt-context-menu-DkK9-qLI.js → wt-context-menu-Bjl5aGzG.js} +1 -1
- package/dist/{wt-copy-action-7hL0mEvW.js → wt-copy-action-Xo2DsqJZ.js} +1 -1
- package/dist/{wt-datepicker-Bvde1_4k.js → wt-datepicker-CL3jLy5h.js} +1 -1
- package/dist/wt-display-chip-items-CCNWd5Nt.js +47 -0
- package/dist/{wt-dual-panel-C6E7X3c8.js → wt-dual-panel-CMUeBmf-.js} +1 -1
- package/dist/{wt-dummy-oCvw9ZAO.js → wt-dummy-BOgeleXm.js} +1 -1
- package/dist/{wt-error-page-BWRGUdsV.js → wt-error-page-Ctl0-_Yp.js} +1 -1
- package/dist/{wt-expansion-card-DqdyzBFB.js → wt-expansion-card-BCOBdTuS.js} +1 -1
- package/dist/{wt-expansion-panel-CGYB7-8V.js → wt-expansion-panel-C7W_5dxd.js} +1 -1
- package/dist/{wt-filters-panel-wrapper-BdWYuFBU.js → wt-filters-panel-wrapper-CkLHeV4o.js} +1 -1
- package/dist/{wt-galleria-BBSNSwsR.js → wt-galleria-Bls8Xxh4.js} +2 -2
- package/dist/{wt-navigation-menu-CubDPnaE.js → wt-navigation-menu-CFPMD9o1.js} +1 -1
- package/dist/{wt-notifications-bar-B9gUZbnG.js → wt-notifications-bar-BTDN7hSn.js} +2 -2
- package/dist/{wt-pagination-Dafsnmhz.js → wt-pagination-DtjeKcpO.js} +1 -1
- package/dist/{wt-player-DxvKDEYJ.js → wt-player-Co3Ib7qU.js} +13 -13
- package/dist/wt-screen-recordings-action-CmY7R2B-.js +55 -0
- package/dist/{wt-search-bar-BSTKSDBo.js → wt-search-bar-CmN8Nq-n.js} +1 -1
- package/dist/{wt-selection-popup-D_mDRYjd.js → wt-selection-popup-BNKNa5jy.js} +1 -1
- package/dist/{wt-start-page-BYGMWDsS.js → wt-start-page-BC4r_EPK.js} +1 -1
- package/dist/{wt-status-select-BDFd1JE-.js → wt-status-select-CBq_ihcS.js} +11 -14
- package/dist/{wt-stepper-Db5aEz47.js → wt-stepper-DvmRISSE.js} +1 -1
- package/dist/{wt-table-92BKexHp.js → wt-table-BDnXcyai.js} +14 -14
- package/dist/{wt-table-actions-BTmBjf1Q.js → wt-table-actions-52X557c8.js} +1 -1
- package/dist/{wt-table-column-select-abILUxUr.js → wt-table-column-select-vKGXHla2.js} +2 -2
- package/dist/{wt-tabs-B21sWbPs.js → wt-tabs-zXlsvaeU.js} +16 -17
- package/dist/{wt-tags-input-DNA22dSR.js → wt-tags-input-B8w0KXPv.js} +2 -2
- package/dist/{wt-timepicker-CgowHF74.js → wt-timepicker-Cm4aLsPK.js} +1 -1
- package/dist/{wt-tree-CvHw827i.js → wt-tree-IVOTwA3x.js} +4 -4
- package/dist/{wt-tree-table-DWgEjAUG.js → wt-tree-table-zA7HHvru.js} +3 -3
- package/dist/{wt-type-extension-value-input-BvHowj58.js → wt-type-extension-value-input-DTmneCoP.js} +4 -7
- package/dist/{wt-vidstack-player-BnK8NLH3.js → wt-vidstack-player-DHmGgiDL.js} +13 -13
- package/package.json +7 -3
- package/src/api/clients/agents/agentChats.js +0 -1
- package/src/api/clients/agents/agents.js +1 -1
- package/src/api/clients/caseSources/caseSources.ts +1 -1
- package/src/api/clients/chatGateways/defaults/webChatGateway.js +5 -5
- package/src/api/clients/contactGroups/contactGroups.js +0 -1
- package/src/api/clients/queues/queues.js +16 -22
- package/src/api/clients/users/__tests__/users.spec.js +1 -1
- package/src/api/clients/users/users.js +10 -2
- package/src/api/clients//321/201ontacts/contacts.js +0 -1
- package/src/api/clients//321/201ontacts/index.js +1 -1
- package/src/api/defaults/getDefaultGetListResponse/getDefaultGetListResponse.js +1 -1
- package/src/api/transformers/addQueryParamsToUrl/addQueryParamsToUrl.transformer.js +2 -2
- package/src/api/transformers/sanitize/sanitize.transformer.js +2 -4
- package/src/api/websocket/WebSocketClientController.ts +6 -4
- package/src/components/index.js +10 -2
- package/src/components/on-demand/wt-screen-recordings-action/wt-screen-recordings-action.vue +72 -0
- package/src/components/wt-app-header/wt-app-navigator.vue +8 -11
- 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-galleria/wt-galleria.vue +1 -1
- package/src/components/wt-icon/__tests__/WtIcon.spec.js +19 -2
- package/src/components/wt-intersection-observer/wt-intersection-observer.vue +1 -1
- package/src/components/wt-pagination/__tests__/WtPagination.spec.js +80 -16
- package/src/components/wt-player/src/components/buttons/mute-button.vue +0 -1
- 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/_variables.css +0 -3
- package/src/components/wt-select/mixins/multiselectMixin.js +0 -1
- package/src/components/wt-select/multiselect.css +2 -0
- package/src/components/wt-select/wt-select-v2.vue +3 -2
- package/src/components/wt-status-select/wt-status-select.vue +2 -4
- package/src/components/wt-switcher/__tests__/WtSwitcher.spec.js +9 -11
- package/src/components/wt-switcher/wt-switcher.vue +1 -1
- package/src/components/wt-table/wt-table.vue +1 -1
- package/src/components/wt-tabs/wt-tabs.vue +1 -2
- package/src/components/wt-textarea/__tests__/WtTextarea.spec.js +2 -2
- package/src/components/wt-textarea/wt-textarea.vue +3 -4
- 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/components/wt-tree/__tests__/WtTree.spec.js +1 -1
- package/src/components/wt-tree/wt-tree.vue +92 -60
- package/src/components/wt-tree-line/wt-tree-line.vue +2 -2
- package/src/components/wt-tree-table/wt-tree-table.vue +90 -84
- package/src/components/wt-tree-table-row/wt-tree-table-row.vue +2 -2
- package/src/components/wt-vidstack-player/components/panels/video-display-panel/video-display-panel.vue +2 -2
- package/src/components/wt-vidstack-player/composables/useVidstackSrc.ts +1 -1
- package/src/composables/useCachedInterval/__tests__/useCachedInterval.spec.js +1 -1
- package/src/composables/useCard/useCardComponent.js +1 -1
- package/src/composables/useInputControl/useInputControl.ts +1 -1
- package/src/composables/useRepresentableAgentPauseCause/__tests__/useRepresentableAgentPauseCause.spec.js +60 -80
- package/src/composables/useRepresentableAgentPauseCause/useRepresentableAgentPauseCause.js +1 -1
- package/src/composables/useTableColumnDrag/useTableColumnDrag.ts +1 -1
- package/src/enums/index.ts +0 -1
- package/src/install.ts +1 -1
- package/src/locale/kz/kz.js +2 -4
- package/src/locale/pl/pl.js +2 -4
- package/src/mixins/dataFilterMixins/__tests__/sortFilterMixin.spec.js +1 -1
- package/src/modules/AgentPdfs/components/agent-pdfs-tab.vue +104 -96
- package/src/modules/AgentStatusSelect/api/agent-status.js +9 -13
- 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/audit-form.vue +1 -1
- package/src/modules/AuditForm/components/form-answers/answer-editing-info/audit-form-answer-editing-info.vue +1 -1
- 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/CSVExport/XLSExport.js +5 -7
- package/src/modules/CSVExport/composables/useCSVExport.ts +3 -3
- package/src/modules/CSVExport/mixins/exportCSVMixin.js +1 -5
- package/src/modules/CSVExport/mixins/exportXLSMixin.js +1 -5
- package/src/modules/DeleteConfirmationPopup/__tests__/delete-confirmation-popup.spec.js +7 -51
- package/src/modules/FilesExport/composables/useFilesExport.ts +1 -1
- package/src/modules/FilesExport/types/types.ts +1 -1
- package/src/modules/Filters/store/FiltersStoreModule.js +27 -27
- package/src/modules/Notifications/store/NotificationsStoreModule.js +1 -1
- package/src/modules/ObjectPermissions/_internals/store/helpers/createObjectPermissionsStoreModule.js +0 -4
- package/src/modules/ObjectPermissions/components/permissions-tab.vue +5 -7
- package/src/modules/QueryFilters/mixins/__tests__/apiFilterMixin.spec.js +2 -2
- package/src/modules/QueryFilters/mixins/__tests__/sortFilterMixin.spec.js +1 -1
- package/src/modules/QueryFilters/store/QueryFiltersStoreModule.js +5 -6
- package/src/modules/QueryFilters/store/__tests__/QueryFiltersStoreModule.spec.js +12 -8
- package/src/modules/TableStoreModule/store/TableStoreModule.js +10 -18
- package/src/modules/UploadCsvPopup/scripts/normalizeCSVData.ts +9 -9
- package/src/modules/UploadCsvPopup/scripts/parseCSV.ts +1 -1
- package/src/modules/Userinfo/composables/createUserAccessControl.ts +2 -2
- package/src/modules/Userinfo/composables/types/CreateUserAccessControl.d.ts +2 -4
- package/src/modules/Userinfo/scripts/utils.ts +4 -2
- package/src/scripts/compareSize.ts +7 -6
- package/src/store/new/modules/tableStoreModule/tableStoreModule.js +17 -29
- package/src/validations/vuelidate/validators/decimalValidator.js +2 -1
- package/src/validations/vuelidate/validators/websocketValidator/websocketValidator.js +1 -1
- package/types/api/clients//321/201ontacts/index.d.ts +2 -2
- package/types/api/defaults/getDefaultGetListResponse/getDefaultGetListResponse.d.ts +1 -1
- package/types/components/on-demand/wt-screen-recordings-action/wt-screen-recordings-action.vue.d.ts +10 -0
- package/types/components/wt-switcher/wt-switcher.vue.d.ts +1 -1
- package/types/components/wt-table/wt-table.vue.d.ts +1 -1
- package/types/components/wt-textarea/wt-textarea.vue.d.ts +3 -4
- package/types/components/wt-tree/wt-tree.vue.d.ts +6 -6
- package/types/components/wt-tree-line/wt-tree-line.vue.d.ts +2 -2
- package/types/components/wt-tree-table/wt-tree-table.vue.d.ts +2 -2
- package/types/components/wt-tree-table-row/wt-tree-table-row.vue.d.ts +1 -1
- package/types/install.d.ts +1 -2
- package/types/modules/AgentPdfs/components/agent-pdfs-tab.vue.d.ts +1 -1
- package/types/modules/CSVExport/composables/useCSVExport.d.ts +3 -3
- package/types/modules/FilesExport/composables/useFilesExport.d.ts +1 -1
- package/types/modules/FilesExport/types/types.d.ts +1 -1
- package/types/modules/Filters/store/FiltersStoreModule.d.ts +2 -2
- package/types/modules/Notifications/store/NotificationsStoreModule.d.ts +1 -1
- package/types/modules/TableStoreModule/store/TableStoreModule.d.ts +2 -2
- package/types/modules/Userinfo/composables/createUserAccessControl.d.ts +2 -2
- package/types/modules/Userinfo/scripts/utils.d.ts +1 -1
- package/types/store/new/modules/tableStoreModule/tableStoreModule.d.ts +2 -2
- package/dist/wt-display-chip-items-DPoEtUZ-.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
|
@@ -18,7 +18,7 @@ const getters = {
|
|
|
18
18
|
PARENT_ID: () => null, // override me
|
|
19
19
|
|
|
20
20
|
// FIXME: maybe move to filters module?
|
|
21
|
-
FILTERS: (
|
|
21
|
+
FILTERS: (_, getters) => () => getters['filters/GET_FILTERS'](),
|
|
22
22
|
|
|
23
23
|
REQUIRED_FIELDS: () => [
|
|
24
24
|
'id',
|
|
@@ -26,11 +26,9 @@ const getters = {
|
|
|
26
26
|
|
|
27
27
|
FIELDS: (state, getters) => {
|
|
28
28
|
const fields = state.headers.reduce((fields, { show, field }) => {
|
|
29
|
-
if (show || show === undefined)
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
field,
|
|
33
|
-
];
|
|
29
|
+
if (show || show === undefined) {
|
|
30
|
+
fields.push(field);
|
|
31
|
+
}
|
|
34
32
|
return fields;
|
|
35
33
|
}, []);
|
|
36
34
|
|
|
@@ -42,7 +40,7 @@ const getters = {
|
|
|
42
40
|
];
|
|
43
41
|
},
|
|
44
42
|
|
|
45
|
-
GET_LIST_PARAMS: (
|
|
43
|
+
GET_LIST_PARAMS: (_s, getters) => (overrides) => {
|
|
46
44
|
const filters = getters.FILTERS();
|
|
47
45
|
const fields = getters.FIELDS;
|
|
48
46
|
const parentId = getters.PARENT_ID;
|
|
@@ -257,8 +255,6 @@ const actions = {
|
|
|
257
255
|
}
|
|
258
256
|
try {
|
|
259
257
|
await context.dispatch(action, deleted);
|
|
260
|
-
} catch (err) {
|
|
261
|
-
throw err;
|
|
262
258
|
} finally {
|
|
263
259
|
await context.dispatch('LOAD_DATA_LIST');
|
|
264
260
|
await context.dispatch('SET_SELECTED', []);
|
|
@@ -277,30 +273,22 @@ const actions = {
|
|
|
277
273
|
},
|
|
278
274
|
|
|
279
275
|
DELETE_SINGLE: async (context, { id, etag }) => {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
});
|
|
286
|
-
} catch (err) {
|
|
287
|
-
throw err;
|
|
288
|
-
}
|
|
276
|
+
await context.dispatch('DELETE_ITEM_API', {
|
|
277
|
+
context,
|
|
278
|
+
id,
|
|
279
|
+
etag,
|
|
280
|
+
});
|
|
289
281
|
},
|
|
290
282
|
|
|
291
283
|
DELETE_BULK: async (context, deleted) => {
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
);
|
|
284
|
+
const results = await Promise.allSettled(
|
|
285
|
+
deleted.map((item) => context.dispatch('DELETE_SINGLE', item)),
|
|
286
|
+
);
|
|
296
287
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
}
|
|
302
|
-
} catch (err) {
|
|
303
|
-
throw err;
|
|
288
|
+
// list of rejected requests
|
|
289
|
+
const rejected = results.filter((result) => result.status === 'rejected');
|
|
290
|
+
if (rejected.length) {
|
|
291
|
+
throw rejected;
|
|
304
292
|
}
|
|
305
293
|
},
|
|
306
294
|
|
|
@@ -7,7 +7,8 @@ const decimalValidator = (count) =>
|
|
|
7
7
|
{
|
|
8
8
|
count,
|
|
9
9
|
},
|
|
10
|
-
(value) =>
|
|
10
|
+
(value) =>
|
|
11
|
+
Number(value) % 1 === 0 || value.toString().split('.')[1].length <= count,
|
|
11
12
|
);
|
|
12
13
|
|
|
13
14
|
export default decimalValidator;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import ContactsSearchMode from './enums/ContactsSearchMode.js';
|
|
1
2
|
import contactChatMessagesHistory from './contactChatMessagesHistory.js';
|
|
2
3
|
import contacts from './contacts.js';
|
|
3
|
-
|
|
4
|
-
export { contactChatMessagesHistory, contacts, ContactsSearchMode };
|
|
4
|
+
export { ContactsSearchMode, contactChatMessagesHistory, contacts };
|
package/types/components/on-demand/wt-screen-recordings-action/wt-screen-recordings-action.vue.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
files: unknown[];
|
|
3
|
+
}
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
5
|
+
"set-video": (val: unknown) => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
7
|
+
"onSet-video"?: (val: unknown) => any;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -58,7 +58,7 @@ interface Props extends DataTableProps {
|
|
|
58
58
|
reorderableColumns?: boolean;
|
|
59
59
|
rowExpansionDisabled?: (row: object) => boolean;
|
|
60
60
|
lazy?: boolean;
|
|
61
|
-
onLoading?: (event: VirtualScrollerLazyEvent) => Promise<
|
|
61
|
+
onLoading?: (event: VirtualScrollerLazyEvent) => Promise<unknown>;
|
|
62
62
|
loading?: boolean;
|
|
63
63
|
itemSize?: number | undefined;
|
|
64
64
|
}
|
|
@@ -54,7 +54,7 @@ interface Props extends /* @vue-ignore */ TextareaProps {
|
|
|
54
54
|
* Object with props, passed down to wt-label as props
|
|
55
55
|
* @type {Object}
|
|
56
56
|
*/
|
|
57
|
-
labelProps?: Record<string,
|
|
57
|
+
labelProps?: Record<string, unknown>;
|
|
58
58
|
/**
|
|
59
59
|
* Enables auto-resize. If passed, "Enter" key press emits "enter" event, new line is shift+enter
|
|
60
60
|
* @type {boolean}
|
|
@@ -63,9 +63,8 @@ interface Props extends /* @vue-ignore */ TextareaProps {
|
|
|
63
63
|
autoresize?: boolean;
|
|
64
64
|
/**
|
|
65
65
|
* Validation rules
|
|
66
|
-
* @type {any}
|
|
67
66
|
*/
|
|
68
|
-
v?:
|
|
67
|
+
v?: unknown;
|
|
69
68
|
/**
|
|
70
69
|
* Custom validators array
|
|
71
70
|
* @type {Array<{name: string, text: string}>}
|
|
@@ -115,7 +114,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
115
114
|
text: string;
|
|
116
115
|
}>;
|
|
117
116
|
v: any;
|
|
118
|
-
labelProps: Record<string,
|
|
117
|
+
labelProps: Record<string, unknown>;
|
|
119
118
|
rows: number;
|
|
120
119
|
autoresize: boolean;
|
|
121
120
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -2,11 +2,11 @@ type __VLS_Props = {
|
|
|
2
2
|
/**
|
|
3
3
|
* Selected element, it can be an object or a string, related to itemData props
|
|
4
4
|
*/
|
|
5
|
-
modelValue?: null |
|
|
5
|
+
modelValue?: null | unknown;
|
|
6
6
|
/**
|
|
7
7
|
* You need to pass an array of objects that will be displayed in the tree
|
|
8
8
|
*/
|
|
9
|
-
data:
|
|
9
|
+
data: unknown[];
|
|
10
10
|
/**
|
|
11
11
|
* You can pass the name of the property that will be used as the label of the selected item
|
|
12
12
|
*/
|
|
@@ -32,11 +32,11 @@ type __VLS_Slots = {} & {
|
|
|
32
32
|
'item-prefix'?: (props: typeof __VLS_10) => any;
|
|
33
33
|
};
|
|
34
34
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
35
|
-
select: (data:
|
|
36
|
-
"update:modelValue": (value:
|
|
35
|
+
select: (data: unknown) => any;
|
|
36
|
+
"update:modelValue": (value: unknown) => any;
|
|
37
37
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
38
|
-
onSelect?: (data:
|
|
39
|
-
"onUpdate:modelValue"?: (value:
|
|
38
|
+
onSelect?: (data: unknown) => any;
|
|
39
|
+
"onUpdate:modelValue"?: (value: unknown) => any;
|
|
40
40
|
}>, {
|
|
41
41
|
mode: string;
|
|
42
42
|
childrenProp: string;
|
|
@@ -33,10 +33,10 @@ type __VLS_Slots = {} & {
|
|
|
33
33
|
'item-prefix'?: (props: typeof __VLS_41) => any;
|
|
34
34
|
};
|
|
35
35
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
36
|
-
"update:modelValue": (value:
|
|
36
|
+
"update:modelValue": (value: unknown) => any;
|
|
37
37
|
openParent: () => any;
|
|
38
38
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
39
|
-
"onUpdate:modelValue"?: (value:
|
|
39
|
+
"onUpdate:modelValue"?: (value: unknown) => any;
|
|
40
40
|
onOpenParent?: () => any;
|
|
41
41
|
}>, {
|
|
42
42
|
multiple: boolean;
|
|
@@ -7,7 +7,7 @@ type __VLS_Props = {
|
|
|
7
7
|
/**
|
|
8
8
|
* 'List of data, represented by table. '
|
|
9
9
|
*/
|
|
10
|
-
data: Record<string,
|
|
10
|
+
data: Record<string, unknown>[];
|
|
11
11
|
/**
|
|
12
12
|
* 'If true, draws sorting arrows and sends sorting events at header click. Draws a sorting arrow by "sort": "asc"/"desc" header value. '
|
|
13
13
|
*/
|
|
@@ -16,7 +16,7 @@ type __VLS_Props = {
|
|
|
16
16
|
* 'If true, draws row selection checkboxes. Checkbox toggles data object _isSelected property. It's IMPORTANT to set this property before sending data to table. '
|
|
17
17
|
*/
|
|
18
18
|
selectable?: boolean;
|
|
19
|
-
selected:
|
|
19
|
+
selected: unknown[];
|
|
20
20
|
/**
|
|
21
21
|
* 'If true, reserves space for 3 icon actions in the last column. Accessible by "actions" slot. '
|
|
22
22
|
*/
|
package/types/install.d.ts
CHANGED
|
@@ -6,9 +6,8 @@ import './css/tailwind.css';
|
|
|
6
6
|
import { fillIconsRepository } from './assets/icons';
|
|
7
7
|
export { fillIconsRepository };
|
|
8
8
|
declare const _default: {
|
|
9
|
-
install(app: any, { eventBus,
|
|
9
|
+
install(app: any, { eventBus, globals }: {
|
|
10
10
|
eventBus: any;
|
|
11
|
-
router: any;
|
|
12
11
|
globals?: {};
|
|
13
12
|
}): void;
|
|
14
13
|
generateInstance: ({ interceptors, baseURL, ...rest }?: {}) => import("axios").AxiosInstance;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type WebitelMediaExporterExportRecord } from '@webitel/api-services/gen/models';
|
|
2
2
|
import { CrudAction } from '../../../enums';
|
|
3
3
|
type __VLS_Props = {
|
|
4
|
-
store?:
|
|
4
|
+
store?: unknown;
|
|
5
5
|
entityIdKey?: string;
|
|
6
6
|
entityIdValue?: string | number;
|
|
7
7
|
isCreatedAtFilter: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
2
|
import CSVExport from '../CSVExport';
|
|
3
|
-
export type CSVRow = Record<string,
|
|
4
|
-
export type FetchMethod = (params: Record<string,
|
|
3
|
+
export type CSVRow = Record<string, unknown>;
|
|
4
|
+
export type FetchMethod = (params: Record<string, unknown>) => Promise<{
|
|
5
5
|
items: CSVRow[];
|
|
6
6
|
next: boolean;
|
|
7
7
|
}>;
|
|
@@ -45,6 +45,6 @@ export declare function useCSVExport({ selected }: {
|
|
|
45
45
|
isCSVLoading: import("vue").ComputedRef<boolean>;
|
|
46
46
|
isAnySelected: import("vue").ComputedRef<boolean>;
|
|
47
47
|
initCSVExport: (fetchMethod: FetchMethod, options?: CSVExportOptions) => void;
|
|
48
|
-
exportCSV: (exportParams?: Record<string,
|
|
48
|
+
exportCSV: (exportParams?: Record<string, unknown>) => Promise<void>;
|
|
49
49
|
};
|
|
50
50
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UseFilesExportOptions, UseFilesExportReturn } from '../types/types';
|
|
1
|
+
import type { UseFilesExportOptions, UseFilesExportReturn } from '../types/types';
|
|
2
2
|
export declare const useFilesExportProgress: () => {
|
|
3
3
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
4
4
|
downloadStatus: import("vue").Ref<{
|
|
@@ -3,10 +3,10 @@ export default class FiltersStoreModule extends BaseStoreModule {
|
|
|
3
3
|
_emitter: import("mitt").Emitter<Record<import("mitt").EventType, unknown>>;
|
|
4
4
|
};
|
|
5
5
|
getters: {
|
|
6
|
-
ROUTER: (
|
|
6
|
+
ROUTER: (_s: any, _g: any, rootState: any) => any;
|
|
7
7
|
_STATE_FILTER_NAMES: (state: any) => any;
|
|
8
8
|
GET_FILTER: (state: any, getters: any) => (filterName: any) => any;
|
|
9
|
-
GET_FILTERS: (
|
|
9
|
+
GET_FILTERS: (_state: any, getters: any) => () => any;
|
|
10
10
|
};
|
|
11
11
|
actions: {
|
|
12
12
|
SET_FILTER: (context: any, { name, value, silent, }: {
|
|
@@ -27,7 +27,7 @@ export default class NotificationsStoreModule extends BaseStoreModule {
|
|
|
27
27
|
volume?: number;
|
|
28
28
|
}) => Promise<void>;
|
|
29
29
|
STOP_SOUND: (context: any) => void;
|
|
30
|
-
SEND_NOTIFICATION: (
|
|
30
|
+
SEND_NOTIFICATION: (_: any, { locale, text, icon, interval, }: {
|
|
31
31
|
locale: any;
|
|
32
32
|
text?: string;
|
|
33
33
|
icon?: any;
|
|
@@ -12,9 +12,9 @@ export default class TableStoreModule extends BaseStoreModule {
|
|
|
12
12
|
};
|
|
13
13
|
getters: {
|
|
14
14
|
PARENT_ID: () => any;
|
|
15
|
-
FILTERS: (
|
|
15
|
+
FILTERS: (_: any, getters: any) => any;
|
|
16
16
|
FIELDS: (state: any) => any[];
|
|
17
|
-
GET_LIST_PARAMS: (
|
|
17
|
+
GET_LIST_PARAMS: (_state: any, getters: any) => (overrides: any) => any;
|
|
18
18
|
};
|
|
19
19
|
actions: {
|
|
20
20
|
SET_FILTER: (context: any, payload: any) => any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
2
|
import { type WtObject } from '../../../enums';
|
|
3
|
-
import { createUserAccessStore } from '../stores/accessStore';
|
|
3
|
+
import type { createUserAccessStore } from '../stores/accessStore';
|
|
4
4
|
export type UseUserAccessControlComposableOptions = WtObject | {
|
|
5
5
|
resource?: WtObject;
|
|
6
6
|
useUpdateAccessAsAllMutableChecksSource?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WtObject } from '../../../enums';
|
|
2
2
|
import type { AppVisibilityMap, GlobalAccessApiResponseItem, GlobalActionAccessMap, LicenseAccessMap, ScopeAccessApiResponseItem, ScopeAccessMap, SectionVisibilityMap, UiSection, VisibilityAccess, WebitelLicenseInfo } from '../types/UserAccess.d';
|
|
3
3
|
export declare const makeGlobalAccessMap: (rawGlobalAccess: GlobalAccessApiResponseItem[]) => GlobalActionAccessMap;
|
|
4
4
|
export declare const makeScopeAccessMap: (rawScope: ScopeAccessApiResponseItem[]) => ScopeAccessMap;
|
|
@@ -10,10 +10,10 @@ declare function _default(): {
|
|
|
10
10
|
};
|
|
11
11
|
getters: {
|
|
12
12
|
PARENT_ID: () => any;
|
|
13
|
-
FILTERS: (
|
|
13
|
+
FILTERS: (_: any, getters: any) => () => any;
|
|
14
14
|
REQUIRED_FIELDS: () => string[];
|
|
15
15
|
FIELDS: (state: any, getters: any) => any[];
|
|
16
|
-
GET_LIST_PARAMS: (
|
|
16
|
+
GET_LIST_PARAMS: (_s: any, getters: any) => (overrides: any) => any;
|
|
17
17
|
};
|
|
18
18
|
actions: {
|
|
19
19
|
SET_FILTER: (context: any, payload: any) => any;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { defineComponent as v, computed as p, createElementBlock as t, openBlock as s, createCommentVNode as a, renderSlot as m, createVNode as d, toDisplayString as n, createTextVNode as h, unref as u, withCtx as c, Fragment as k, renderList as C } from "vue";
|
|
2
|
-
import { ae as I, af as B, _ as S } from "./install-C_4PcYy4.js";
|
|
3
|
-
const y = "-", b = (i) => i || y, g = { class: "wt-display-chip-items" }, w = { key: 0 }, E = ["onClick"], F = /* @__PURE__ */ v({
|
|
4
|
-
__name: "wt-display-chip-items",
|
|
5
|
-
props: {
|
|
6
|
-
hideFirstItem: { type: Boolean },
|
|
7
|
-
useEmptySymbol: { type: Boolean },
|
|
8
|
-
title: {},
|
|
9
|
-
items: {}
|
|
10
|
-
},
|
|
11
|
-
setup(i) {
|
|
12
|
-
const e = i, f = p(() => e.items?.length ? e.items[0]?.name : e.useEmptySymbol ? y : ""), o = p(() => e.items?.length ? e.hideFirstItem ? e.items : e.items.slice(1) : []);
|
|
13
|
-
return (l, N) => (s(), t("div", g, [
|
|
14
|
-
e.title ? (s(), t("p", w, n(i.title) + ":", 1)) : a("", !0),
|
|
15
|
-
e.hideFirstItem ? a("", !0) : m(l.$slots, "first-item", { key: 1 }, () => [
|
|
16
|
-
h(n(u(b)(f.value)), 1)
|
|
17
|
-
], !0),
|
|
18
|
-
d(u(I), null, {
|
|
19
|
-
activator: c(({ toggle: r }) => [
|
|
20
|
-
m(l.$slots, "activator", { toggle: r }, () => [
|
|
21
|
-
o.value.length ? (s(), t("div", {
|
|
22
|
-
key: 0,
|
|
23
|
-
onClick: r
|
|
24
|
-
}, [
|
|
25
|
-
d(u(B), null, {
|
|
26
|
-
default: c(() => [
|
|
27
|
-
h(" +" + n(o.value.length), 1)
|
|
28
|
-
], void 0, !0),
|
|
29
|
-
_: 1
|
|
30
|
-
})
|
|
31
|
-
], 8, E)) : a("", !0)
|
|
32
|
-
], !0)
|
|
33
|
-
]),
|
|
34
|
-
default: c(() => [
|
|
35
|
-
m(l.$slots, "items", { items: o.value }, () => [
|
|
36
|
-
(s(!0), t(k, null, C(o.value, ({ name: r, id: _ }) => (s(), t("div", { key: _ }, n(r), 1))), 128))
|
|
37
|
-
], !0)
|
|
38
|
-
]),
|
|
39
|
-
_: 3
|
|
40
|
-
})
|
|
41
|
-
]));
|
|
42
|
-
}
|
|
43
|
-
}), T = /* @__PURE__ */ S(F, [["__scopeId", "data-v-4c67fbb7"]]);
|
|
44
|
-
export {
|
|
45
|
-
T as default
|
|
46
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { shallowMount } from '@vue/test-utils';
|
|
2
|
-
|
|
3
|
-
import WtIconBtn from '../../wt-icon-btn/wt-icon-btn.vue';
|
|
4
|
-
import WtCopyAction from '../wt-copy-action.vue';
|
|
5
|
-
|
|
6
|
-
describe('WtCopyAction', () => {
|
|
7
|
-
it('renders a component', () => {
|
|
8
|
-
const wrapper = shallowMount(WtCopyAction, {
|
|
9
|
-
stubs: {
|
|
10
|
-
WtIconBtn,
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
|
-
expect(wrapper.classes('wt-copy-action')).toBe(true);
|
|
14
|
-
});
|
|
15
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { shallowMount } from '@vue/test-utils';
|
|
2
|
-
|
|
3
|
-
import WtDivider from '../wt-divider.vue';
|
|
4
|
-
|
|
5
|
-
describe('WtDivider', () => {
|
|
6
|
-
it('renders a component', () => {
|
|
7
|
-
const wrapper = shallowMount(WtDivider);
|
|
8
|
-
expect(wrapper.classes('wt-divider')).toBe(true);
|
|
9
|
-
});
|
|
10
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { shallowMount } from '@vue/test-utils';
|
|
2
|
-
|
|
3
|
-
import WtSlider from '../wt-slider.vue';
|
|
4
|
-
|
|
5
|
-
describe('WtSlider', () => {
|
|
6
|
-
it('renders a component', () => {
|
|
7
|
-
const wrapper = shallowMount(WtSlider, {});
|
|
8
|
-
expect(wrapper.classes('wt-slider')).toBe(true);
|
|
9
|
-
});
|
|
10
|
-
});
|
|
@@ -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
|
-
});
|