@webitel/ui-sdk 26.4.18 → 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/{index-Dvhbo446.js → index-CeADjYK9.js} +1 -1
- package/dist/{index-B0AYwz58.js → index-DZ_bvNVs.js} +1 -1
- package/dist/{install-CrJnxpPS.js → install-Dofcp90y.js} +55 -61
- package/dist/{isObject-BsWrydYX.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 +204 -204
- package/dist/{useVidstackSrc-Bmp2wHly.js → useVidstackSrc-D9uo15mF.js} +3 -4
- package/dist/{vidstack-Bq6c3Bam-N3JOOQyW.js → vidstack-Bq6c3Bam-Bs73fRdp.js} +3 -3
- package/dist/{vidstack-D2pY00kU-ByaRFZub.js → vidstack-D2pY00kU-BVC5bxHL.js} +3 -3
- package/dist/{vidstack-DDXt6fpN-H7PZzMEr.js → vidstack-DDXt6fpN-DA-lnlhX.js} +2 -2
- package/dist/{vidstack-D_-9AA6_-BgRVFwPt.js → vidstack-D_-9AA6_-C0QZLaX5.js} +2 -2
- package/dist/{vidstack-DqAw8m9J-BODJkoui.js → vidstack-DqAw8m9J-DAs7LwX_.js} +1 -1
- package/dist/{vidstack-audio-Cnpq73DL.js → vidstack-audio-BrbZotHa.js} +2 -2
- package/dist/{vidstack-dash-Bzo3Gzfd.js → vidstack-dash-KNjyvq2R.js} +4 -4
- package/dist/{vidstack-google-cast--giiu8Z5.js → vidstack-google-cast-DMZQ1jRD.js} +4 -4
- package/dist/{vidstack-hls-CrDFf1Gs.js → vidstack-hls-BfOysul0.js} +4 -4
- package/dist/{vidstack-video-h7Tsw5LU.js → vidstack-video-PWMSQ3Gk.js} +3 -3
- package/dist/{vidstack-vimeo-CbcdGN2R.js → vidstack-vimeo-C5Khtd48.js} +4 -4
- package/dist/{vidstack-youtube-DKzx3LPK.js → vidstack-youtube-CPcpsir2.js} +3 -3
- package/dist/{wt-action-bar-GCDVmO0b.js → wt-action-bar-By55sdZf.js} +1 -1
- package/dist/{wt-button-select-BBsJj7FV.js → wt-button-select-C34W0lYV.js} +1 -1
- package/dist/{wt-chat-emoji-MhnNs-SG.js → wt-chat-emoji-DjgWXA_2.js} +2 -2
- package/dist/{wt-confirm-dialog-B4J3ZU2r.js → wt-confirm-dialog-GNka4gxY.js} +1 -1
- package/dist/{wt-context-menu-Cekc6Rva.js → wt-context-menu-Bjl5aGzG.js} +1 -1
- package/dist/{wt-copy-action-CT_0bHmt.js → wt-copy-action-Xo2DsqJZ.js} +1 -1
- package/dist/{wt-datepicker-B513Tw-Z.js → wt-datepicker-CL3jLy5h.js} +1 -1
- package/dist/{wt-display-chip-items-CMB33VOU.js → wt-display-chip-items-CCNWd5Nt.js} +1 -1
- package/dist/{wt-dual-panel-DjHHFx8Y.js → wt-dual-panel-CMUeBmf-.js} +1 -1
- package/dist/{wt-dummy-BivOEKRK.js → wt-dummy-BOgeleXm.js} +1 -1
- package/dist/{wt-error-page-krwX0484.js → wt-error-page-Ctl0-_Yp.js} +1 -1
- package/dist/{wt-expansion-card-Mrne6YQJ.js → wt-expansion-card-BCOBdTuS.js} +1 -1
- package/dist/{wt-expansion-panel-D0SABYA1.js → wt-expansion-panel-C7W_5dxd.js} +1 -1
- package/dist/{wt-filters-panel-wrapper-Dffe4cS8.js → wt-filters-panel-wrapper-CkLHeV4o.js} +1 -1
- package/dist/{wt-galleria-CB3UNqGT.js → wt-galleria-Bls8Xxh4.js} +2 -2
- package/dist/{wt-navigation-menu-CozB-VN3.js → wt-navigation-menu-CFPMD9o1.js} +1 -1
- package/dist/{wt-notifications-bar-CBv9RpW3.js → wt-notifications-bar-BTDN7hSn.js} +2 -2
- package/dist/{wt-pagination-CrnHm3Ei.js → wt-pagination-DtjeKcpO.js} +1 -1
- package/dist/{wt-player-Be7Ts4oe.js → wt-player-Co3Ib7qU.js} +13 -13
- package/dist/{wt-screen-recordings-action-VJpYH40a.js → wt-screen-recordings-action-CmY7R2B-.js} +1 -1
- package/dist/{wt-search-bar-BNUpiOyg.js → wt-search-bar-CmN8Nq-n.js} +1 -1
- package/dist/{wt-selection-popup-DZG_s5cn.js → wt-selection-popup-BNKNa5jy.js} +1 -1
- package/dist/{wt-start-page-B1Ya211Z.js → wt-start-page-BC4r_EPK.js} +1 -1
- package/dist/{wt-status-select-ByEBtG_Z.js → wt-status-select-CBq_ihcS.js} +11 -14
- package/dist/{wt-stepper-Bke8hGIN.js → wt-stepper-DvmRISSE.js} +1 -1
- package/dist/{wt-table-rT0puxyU.js → wt-table-BDnXcyai.js} +14 -14
- package/dist/{wt-table-actions-D2QF78Jq.js → wt-table-actions-52X557c8.js} +1 -1
- package/dist/{wt-table-column-select-BtcIByjb.js → wt-table-column-select-vKGXHla2.js} +2 -2
- package/dist/{wt-tabs-BIn8m45h.js → wt-tabs-zXlsvaeU.js} +16 -17
- package/dist/{wt-tags-input-Bz3T5KC7.js → wt-tags-input-B8w0KXPv.js} +2 -2
- package/dist/{wt-timepicker-CuMYCWnA.js → wt-timepicker-Cm4aLsPK.js} +1 -1
- package/dist/{wt-tree-DftQx0vm.js → wt-tree-IVOTwA3x.js} +4 -4
- package/dist/{wt-tree-table-Cqt8iSLj.js → wt-tree-table-zA7HHvru.js} +3 -3
- package/dist/{wt-type-extension-value-input-rX_qRFjQ.js → wt-type-extension-value-input-DTmneCoP.js} +4 -7
- package/dist/{wt-vidstack-player-CWmoXIAG.js → wt-vidstack-player-DHmGgiDL.js} +13 -13
- package/package.json +3 -2
- 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/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 +3 -3
- package/src/components/wt-app-header/wt-app-navigator.vue +8 -11
- package/src/components/wt-galleria/wt-galleria.vue +1 -1
- package/src/components/wt-intersection-observer/wt-intersection-observer.vue +1 -1
- package/src/components/wt-player/src/components/buttons/mute-button.vue +0 -1
- 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/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/wt-textarea.vue +3 -4
- 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/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/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/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/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/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/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
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import type { WtObject } from '../../../../enums';
|
|
4
|
-
import type { createUserAccessStore } from '../../../../modules/Userinfo/v2/stores/accessStore';
|
|
1
|
+
/** Ambient declarations for create-user-access-control can be added here. */
|
|
2
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CrudAction, WtObject } from '../../../enums';
|
|
2
2
|
import { _wtUiLog as wtlog } from '../../../scripts/logger';
|
|
3
3
|
import {
|
|
4
4
|
mapGlobalActionToCrudAction,
|
|
@@ -92,7 +92,9 @@ export const makeSectionVisibilityMap = (
|
|
|
92
92
|
|
|
93
93
|
Object.entries(rawVisibility).forEach(([app, appSectionsVisibility]) => {
|
|
94
94
|
Object.entries(appSectionsVisibility).forEach(([section, visibility]) => {
|
|
95
|
-
if (section.startsWith('_'))
|
|
95
|
+
if (section.startsWith('_')) {
|
|
96
|
+
return; // skip private fields
|
|
97
|
+
}
|
|
96
98
|
map.set(
|
|
97
99
|
`${app}/${section}`,
|
|
98
100
|
(
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ComponentSize } from '../enums/ComponentSize/ComponentSize';
|
|
2
2
|
|
|
3
|
-
const numerics = Object.values(ComponentSize).reduce(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
},
|
|
3
|
+
const numerics = Object.values(ComponentSize).reduce(
|
|
4
|
+
(nums, size, index) => {
|
|
5
|
+
nums[size] = index;
|
|
6
|
+
return nums;
|
|
7
|
+
},
|
|
8
|
+
{} as Record<ComponentSize, number>,
|
|
9
|
+
);
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Compare two sizes, returning a number indicating the difference between them.
|
|
@@ -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 };
|
|
@@ -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;
|