@webitel/ui-sdk 26.8.70 → 26.8.72
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/{clients-BLoUCVC8.js → clients-DcFH7zci.js} +474 -34
- package/dist/{components-DBVFjVK_.js → components-CLJ1Ov7C.js} +1335 -5166
- package/dist/{composables-DbGvukRz.js → composables-BtWSAI5D.js} +3 -3
- package/dist/{debounce-CCzQDuk5.js → debounce-Bp3jy7S5.js} +2 -2
- package/dist/{deep-copy-CjYHLk2X.js → deep-copy-CTgLtgMO.js} +1 -1
- package/dist/{dist-C_fngTiN.js → dist-CAOIU8xq.js} +1 -1
- package/dist/{dist-CugChoYz.js → dist-Crpfx4FA.js} +1 -1
- package/dist/{enums-CM8hOd_m.js → enums-Exe9rV90.js} +13 -13
- package/dist/genClient-HHiOUj56.js +2891 -0
- package/dist/{rolldown-runtime-to5KK-CW.js → rolldown-runtime-BEcgMyyN.js} +2 -5
- package/dist/ui-sdk.js +42 -42
- package/dist/ui-sdk.umd.cjs +621 -606
- package/dist/{useValidation-CDgb424A.js → useValidation-B6tRRqwE.js} +2 -2
- package/dist/{useWtTable-BbNT2rXz.js → useWtTable-DLWucXPx.js} +1 -1
- package/dist/{utils-DqYQ_mrQ.js → utils-DUAvIlAU.js} +1 -1
- package/dist/{vue-i18n-DNulhn2J.js → vue-i18n-Db_oYfO8.js} +2 -2
- package/dist/{vue-router-B9nAVQtl.js → vue-router-Dwey8MMv.js} +1 -1
- package/dist/{wt-action-bar-Dx2j2yCn.js → wt-action-bar-p7vln7iJ.js} +2 -2
- package/dist/{wt-button-TVtG0saz.js → wt-button-DcsMRFys.js} +2 -2
- package/dist/{wt-chat-emoji-CveWfqBS.js → wt-chat-emoji-Dj49JD3R.js} +4 -4
- package/dist/{wt-datepicker-Dcg6mx6P.js → wt-datepicker-Dy2x6EuG.js} +3 -3
- package/dist/{wt-display-chip-items-BmRyOpv7.js → wt-display-chip-items-CwGaaILG.js} +2 -2
- package/dist/{wt-dual-panel-sCqa1h4_.js → wt-dual-panel-Bpwt5tFI.js} +1 -1
- package/dist/{wt-expansion-card-DKEhPBa9.js → wt-expansion-card-CUy15r4n.js} +2 -2
- package/dist/{wt-expansion-panel-BnQ9Ow8D.js → wt-expansion-panel-CeSBv30M.js} +1 -1
- package/dist/{wt-galleria-CNwBmLcX.js → wt-galleria-DMCgiiju.js} +2 -2
- package/dist/{wt-icon-md5nPR1T.js → wt-icon-CQPF4JgL.js} +1 -1
- package/dist/{wt-icon-action-DX9R-hzG.js → wt-icon-action-CJv1qkoB.js} +2 -2
- package/dist/{wt-icon-btn-B_hS2f_v.js → wt-icon-btn-UeB3Mo-P.js} +1 -1
- package/dist/{wt-notifications-bar-k3Osz6gY.js → wt-notifications-bar-DGhAEm27.js} +2 -2
- package/dist/{wt-pagination-DNjYIHjv.js → wt-pagination-G2ZGU4Pi.js} +1 -1
- package/dist/{wt-player-R3rAiIxl.js → wt-player-DaqzOn77.js} +5 -5
- package/dist/{wt-popover-B0SIrVz6.js → wt-popover-BCYPu5NC.js} +1 -1
- package/dist/{wt-screen-recordings-action-DCdRUBbd.js → wt-screen-recordings-action-X2XVdxF6.js} +1 -1
- package/dist/{wt-search-bar-DlNX3Sr8.js → wt-search-bar-CG_YE-_0.js} +2 -2
- package/dist/{wt-selection-popup-C74__W9Z.js → wt-selection-popup-CjYw4ppb.js} +1 -1
- package/dist/{wt-send-message-popup-Ci3b-7uX.js → wt-send-message-popup-CLaDqvAt.js} +22 -22
- package/dist/{wt-slider-4xCDNWv-.js → wt-slider-BPzRTeYU.js} +1 -1
- package/dist/{wt-start-page-BUjRx6RA.js → wt-start-page-BFQExFUj.js} +1 -1
- package/dist/{wt-status-select-C2-LFbrZ.js → wt-status-select-BaLKq7BJ.js} +2 -2
- package/dist/{wt-table-BzGCTKMW.js → wt-table-BI2cptEK.js} +2 -2
- package/dist/{wt-table-column-select-CuQbrCkx.js → wt-table-column-select-D4c56HPB.js} +3 -3
- package/dist/{wt-timepicker-BltIOjh9.js → wt-timepicker-DAik2EyZ.js} +3 -3
- package/dist/{wt-toast-DsIX8ZW_.js → wt-toast-D4WUFGQd.js} +2 -2
- package/dist/{wt-tree-CfvNlw7N.js → wt-tree-BYk31Ees.js} +3 -3
- package/dist/{wt-tree-table-R02DpJ7M.js → wt-tree-table-vdfMB9Wk.js} +2 -2
- package/dist/{wt-type-extension-value-input-BGb_JCgp.js → wt-type-extension-value-input-lmFueBjI.js} +18 -18
- package/dist/{wt-vidstack-player-luoZqZ5-.js → wt-vidstack-player-vuSKb7KF.js} +5 -5
- package/package.json +10 -4
- package/src/enums/ExportFormat/ExportFormat.enum.ts +6 -0
- package/src/enums/TypesExportedSettings/TypesExportedSettings.enum.ts +9 -0
- package/src/enums/index.ts +37 -82
- package/src/scripts/{downloadFile → file/downloadFile}/downloadFile.ts +1 -3
- package/src/scripts/{downloadFile → file/downloadFile}/types/downloadFile.types.ts +2 -2
- package/src/scripts/file/index.ts +14 -0
- package/src/scripts/index.js +15 -29
- package/types/.tsbuildinfo +1 -1
- package/types/enums/ExportFormat/ExportFormat.enum.d.ts +5 -0
- package/types/enums/TypesExportedSettings/TypesExportedSettings.enum.d.ts +5 -5
- package/types/enums/index.d.ts +37 -38
- package/types/scripts/file/downloadFile/downloadFile.d.ts +2 -0
- package/types/scripts/{downloadFile → file/downloadFile}/types/downloadFile.types.d.ts +2 -2
- package/types/scripts/file/index.d.ts +10 -0
- package/types/scripts/index.d.ts +30 -37
- package/dist/genClient-BqTmfnDx.js +0 -2088
- package/src/enums/TypesExportedSettings/TypesExportedSettings.enum.js +0 -4
- package/src/scripts/downloadFile/types/fileFormat.types.ts +0 -4
- package/types/scripts/downloadFile/downloadFile.d.ts +0 -3
- package/types/scripts/downloadFile/types/fileFormat.types.d.ts +0 -4
- /package/src/scripts/{storageFile → file/storageFile}/downloadFilesAsZip.ts +0 -0
- /package/src/scripts/{storageFile → file/storageFile}/downloadStorageFile.ts +0 -0
- /package/src/scripts/{storageFile → file/storageFile}/getFileTypeIcon.ts +0 -0
- /package/src/scripts/{storageFile → file/storageFile}/getStorageFileUrl.ts +0 -0
- /package/src/scripts/{storageFile → file/storageFile}/openStorageFileInNewTab.ts +0 -0
- /package/types/scripts/{storageFile → file/storageFile}/downloadFilesAsZip.d.ts +0 -0
- /package/types/scripts/{storageFile → file/storageFile}/downloadStorageFile.d.ts +0 -0
- /package/types/scripts/{storageFile → file/storageFile}/getFileTypeIcon.d.ts +0 -0
- /package/types/scripts/{storageFile → file/storageFile}/getStorageFileUrl.d.ts +0 -0
- /package/types/scripts/{storageFile → file/storageFile}/openStorageFileInNewTab.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n, t as r } from "./dist-
|
|
3
|
-
import { n as i, t as a } from "./dist-
|
|
1
|
+
import { a as e, t } from "./rolldown-runtime-BEcgMyyN.js";
|
|
2
|
+
import { n, t as r } from "./dist-CAOIU8xq.js";
|
|
3
|
+
import { n as i, t as a } from "./dist-Crpfx4FA.js";
|
|
4
4
|
import { t as o } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
5
5
|
import { t as s } from "./wt-expand-transition-C2p9bR4j.js";
|
|
6
6
|
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as m, createVNode as h, defineComponent as g, guardReactiveProps as _, normalizeClass as v, normalizeProps as y, onMounted as b, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveComponent as T, toDisplayString as E, unref as D, vShow as O, watch as k, withCtx as A, withDirectives as j } from "vue";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
2
|
import { n as t } from "./sortQueryAdapters-CyYXvnDN.js";
|
|
3
|
-
import { n, t as r } from "./wt-icon-btn-
|
|
4
|
-
import { t as i } from "./useWtTable-
|
|
3
|
+
import { n, t as r } from "./wt-icon-btn-UeB3Mo-P.js";
|
|
4
|
+
import { t as i } from "./useWtTable-DLWucXPx.js";
|
|
5
5
|
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createSlots as d, createTextVNode as f, createVNode as p, defineComponent as m, normalizeClass as h, normalizeStyle as g, onMounted as _, openBlock as v, ref as y, renderList as b, renderSlot as x, resolveComponent as S, toDisplayString as C, toRef as w, unref as T, withCtx as E, withModifiers as D } from "vue";
|
|
6
6
|
//#region src/components/wt-tree-table-row/wt-tree-table-row.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var O = { class: "wt-tree-table-td__content" }, k = {
|
package/dist/{wt-type-extension-value-input-BGb_JCgp.js → wt-type-extension-value-input-lmFueBjI.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as i } from "./
|
|
3
|
-
import { t as a } from "./enums-
|
|
4
|
-
import { t as o } from "./vue-i18n-
|
|
1
|
+
import { t as e } from "./clients-DcFH7zci.js";
|
|
2
|
+
import { a as t, o as n, r, s as i } from "./components-CLJ1Ov7C.js";
|
|
3
|
+
import { t as a } from "./enums-Exe9rV90.js";
|
|
4
|
+
import { t as o } from "./vue-i18n-Db_oYfO8.js";
|
|
5
5
|
import { computed as s, createBlock as c, createCommentVNode as l, createVNode as u, defineComponent as d, mergeModels as f, mergeProps as p, openBlock as m, renderSlot as h, resolveComponent as g, unref as _, useModel as v } from "vue";
|
|
6
6
|
//#endregion
|
|
7
7
|
//#region src/components/on-demand/wt-type-extension-value-input/wt-type-extension-value-input.vue
|
|
@@ -34,11 +34,11 @@ var y = /* @__PURE__ */ d({
|
|
|
34
34
|
searchMethod: O(y.field.lookup)
|
|
35
35
|
})), E = s(() => ({ ...T.value })), D = (e) => {
|
|
36
36
|
f.value = e;
|
|
37
|
-
}, O = ({ path:
|
|
38
|
-
...
|
|
39
|
-
path:
|
|
40
|
-
display:
|
|
41
|
-
primary:
|
|
37
|
+
}, O = ({ path: t = "", display: n = "", primary: r = "" } = {}) => (i) => e.getLookup({
|
|
38
|
+
...i,
|
|
39
|
+
path: t,
|
|
40
|
+
display: n,
|
|
41
|
+
primary: r
|
|
42
42
|
}), k = (e) => {
|
|
43
43
|
let t = e ?? {};
|
|
44
44
|
if (Object.values(t).length === 0) return D(null);
|
|
@@ -52,7 +52,7 @@ var y = /* @__PURE__ */ d({
|
|
|
52
52
|
name: e.name
|
|
53
53
|
})));
|
|
54
54
|
};
|
|
55
|
-
return (
|
|
55
|
+
return (e, o) => {
|
|
56
56
|
let s = g("wt-input-text"), f = g("wt-input-number");
|
|
57
57
|
return d.field.kind === _(a).Text ? (m(), c(s, p({ key: 0 }, w.value, {
|
|
58
58
|
"model-value": C.value,
|
|
@@ -60,44 +60,44 @@ var y = /* @__PURE__ */ d({
|
|
|
60
60
|
}), null, 16, ["model-value"])) : d.field.kind === _(a).Number ? (m(), c(f, p({ key: 1 }, w.value, {
|
|
61
61
|
"model-value": C.value,
|
|
62
62
|
"onUpdate:modelValue": D
|
|
63
|
-
}), null, 16, ["model-value"])) : d.field.kind === _(a).Boolean ? h(
|
|
63
|
+
}), null, 16, ["model-value"])) : d.field.kind === _(a).Boolean ? h(e.$slots, _(a).Boolean, {
|
|
64
64
|
key: 2,
|
|
65
65
|
defaultProps: { ...w.value }
|
|
66
|
-
}, () => [u(_(
|
|
66
|
+
}, () => [u(_(t), p(w.value, {
|
|
67
67
|
"model-value": C.value,
|
|
68
68
|
"onUpdate:modelValue": D
|
|
69
|
-
}), null, 16, ["model-value"])]) : d.field.kind === _(a).Select ? h(
|
|
69
|
+
}), null, 16, ["model-value"])]) : d.field.kind === _(a).Select ? h(e.$slots, _(a).Select, {
|
|
70
70
|
key: 3,
|
|
71
71
|
defaultProps: {
|
|
72
72
|
...w.value,
|
|
73
73
|
...T.value,
|
|
74
74
|
value: C.value
|
|
75
75
|
}
|
|
76
|
-
}, () => [u(_(
|
|
76
|
+
}, () => [u(_(n), p(w.value, {
|
|
77
77
|
"model-value": C.value,
|
|
78
78
|
"search-method": O(d.field.lookup),
|
|
79
79
|
"data-key": "id",
|
|
80
80
|
"onUpdate:modelValue": k
|
|
81
|
-
}), null, 16, ["model-value", "search-method"])]) : d.field.kind === _(a).Multiselect ? h(
|
|
81
|
+
}), null, 16, ["model-value", "search-method"])]) : d.field.kind === _(a).Multiselect ? h(e.$slots, _(a).Multiselect, {
|
|
82
82
|
key: 4,
|
|
83
83
|
defaultProps: {
|
|
84
84
|
...w.value,
|
|
85
85
|
...E.value,
|
|
86
86
|
value: C.value
|
|
87
87
|
}
|
|
88
|
-
}, () => [u(_(
|
|
88
|
+
}, () => [u(_(i), p({
|
|
89
89
|
...w.value,
|
|
90
90
|
...E.value
|
|
91
91
|
}, {
|
|
92
92
|
"model-value": C.value,
|
|
93
93
|
"onUpdate:modelValue": A
|
|
94
|
-
}), null, 16, ["model-value"])]) : d.field.kind === _(a).Calendar ? h(
|
|
94
|
+
}), null, 16, ["model-value"])]) : d.field.kind === _(a).Calendar ? h(e.$slots, _(a).Calendar, {
|
|
95
95
|
key: 5,
|
|
96
96
|
defaultProps: {
|
|
97
97
|
...w.value,
|
|
98
98
|
value: C.value
|
|
99
99
|
}
|
|
100
|
-
}, () => [u(_(
|
|
100
|
+
}, () => [u(_(r), p(w.value, {
|
|
101
101
|
"model-value": C.value,
|
|
102
102
|
"show-time": "",
|
|
103
103
|
"onUpdate:modelValue": D
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { k as e } from "./components-
|
|
1
|
+
import { k as e } from "./components-CLJ1Ov7C.js";
|
|
2
2
|
import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
-
import { l as n } from "./enums-
|
|
4
|
-
import "./wt-button-
|
|
5
|
-
import { t as r } from "./wt-icon-btn-
|
|
3
|
+
import { l as n } from "./enums-Exe9rV90.js";
|
|
4
|
+
import "./wt-button-DcsMRFys.js";
|
|
5
|
+
import { t as r } from "./wt-icon-btn-UeB3Mo-P.js";
|
|
6
6
|
import { $ as i, C as a, D as o, F as s, G as c, H as l, I as u, J as d, K as f, L as p, M as m, N as h, O as ee, P as te, Q as g, R as ne, S as _, U as re, V as v, W as y, X as b, Y as ie, Z as x, _ as S, a as ae, b as oe, c as se, d as ce, et as le, f as ue, g as de, h as fe, i as C, it as pe, j as me, k as he, l as w, m as ge, n as T, nt as E, o as D, ot as _e, p as O, q as k, r as A, rt as ve, t as ye, tt as be, u as xe, v as j, w as Se, y as Ce, z as we } from "./vidstack-D9mvYVIz-DesuYgKV.js";
|
|
7
7
|
import { _ as M, a as Te, c as Ee, d as De, f as Oe, g as ke, h as Ae, i as je, l as Me, m as Ne, n as Pe, o as Fe, p as Ie, r as Le, s as Re, t as N, u as ze } from "./vidstack-CgfrU1hS-CNTJkyzm.js";
|
|
8
8
|
import { _ as Be, a as Ve, c as He, f as Ue, g as We, h as Ge, i as Ke, l as qe, n as Je, r as Ye, s as Xe, t as Ze, u as Qe, v as $e, x as et, y as tt } from "./useVidstackSrc-aQcqC_v0.js";
|
|
@@ -13,7 +13,7 @@ import { a as ot, i as st, n as I, o as ct, r as L, t as lt } from "./vidstack-D
|
|
|
13
13
|
import { t as R } from "./vidstack-_E7LrUjK-DaCLs8ge.js";
|
|
14
14
|
import { n as ut, t as dt } from "./vidstack-CDOoBnJL-BCwLE1fB.js";
|
|
15
15
|
import { i as ft, n as pt, r as mt, t as ht } from "./vidstack-CdfyZegh-Bn47J4h6.js";
|
|
16
|
-
import { t as gt } from "./wt-slider-
|
|
16
|
+
import { t as gt } from "./wt-slider-BPzRTeYU.js";
|
|
17
17
|
import { computed as _t, createBlock as vt, createCommentVNode as yt, createElementBlock as bt, createElementVNode as z, createSlots as xt, createVNode as B, defineComponent as St, inject as Ct, normalizeClass as wt, onBeforeUnmount as Tt, onMounted as Et, openBlock as V, provide as Dt, ref as Ot, renderSlot as H, resolveComponent as kt, toDisplayString as At, toRefs as jt, unref as U, useTemplateRef as Mt, withCtx as Nt } from "vue";
|
|
18
18
|
//#region node_modules/vidstack/prod/chunks/vidstack-CYE89tBD.js
|
|
19
19
|
var Pt = ge();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "26.8.
|
|
3
|
+
"version": "26.8.72",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "npm run docs:dev",
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
"docs:build": "vitepress build docs",
|
|
17
17
|
"lint:fix-staged": "npx lint-staged",
|
|
18
18
|
"lint:package": "publint",
|
|
19
|
+
"check:release-train": "node scripts/check-release-train.mjs",
|
|
20
|
+
"utils:bump-release-train": "node scripts/bump-release-train.mjs",
|
|
19
21
|
"lint:types": "npx --yes @arethetypeswrong/cli --pack . --ignore-rules false-cjs cjs-resolves-to-esm",
|
|
20
22
|
"utils:link": "npm link",
|
|
21
23
|
"utils:update-node": "nvm install --lts && nvm alias default node",
|
|
@@ -83,8 +85,8 @@
|
|
|
83
85
|
"peerDependencies": {
|
|
84
86
|
"@vuelidate/core": "^2.0.3",
|
|
85
87
|
"@vuelidate/validators": "^2.0.4",
|
|
86
|
-
"@webitel/api-services": "
|
|
87
|
-
"@webitel/styleguide": "~26.
|
|
88
|
+
"@webitel/api-services": "~26.8",
|
|
89
|
+
"@webitel/styleguide": "~26.8",
|
|
88
90
|
"axios": "^1.18.1",
|
|
89
91
|
"date-fns": "^4.1.0",
|
|
90
92
|
"deep-copy": "^1.4.2",
|
|
@@ -138,7 +140,7 @@
|
|
|
138
140
|
"@vue/tsconfig": "^0.8.1",
|
|
139
141
|
"@vuelidate/core": "^2.0.3",
|
|
140
142
|
"@vuelidate/validators": "^2.0.4",
|
|
141
|
-
"@webitel/styleguide": "~26.
|
|
143
|
+
"@webitel/styleguide": "~26.8",
|
|
142
144
|
"clipboard-copy": "^4.x",
|
|
143
145
|
"globals": "^16.0.0",
|
|
144
146
|
"globby": "^16.x",
|
|
@@ -241,6 +243,10 @@
|
|
|
241
243
|
"types": "./types/scripts/index.d.ts",
|
|
242
244
|
"import": "./src/scripts/index.js"
|
|
243
245
|
},
|
|
246
|
+
"./scripts/file": {
|
|
247
|
+
"types": "./types/scripts/file/index.d.ts",
|
|
248
|
+
"import": "./src/scripts/file/index.ts"
|
|
249
|
+
},
|
|
244
250
|
"./scripts*": {
|
|
245
251
|
"types": "./types/scripts*",
|
|
246
252
|
"import": "./src/scripts*"
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ExportFormat } from '../ExportFormat/ExportFormat.enum';
|
|
2
|
+
|
|
3
|
+
export const TypesExportedSettings = {
|
|
4
|
+
CSV: ExportFormat.CSV,
|
|
5
|
+
XLSX: ExportFormat.XLSX,
|
|
6
|
+
} as const;
|
|
7
|
+
|
|
8
|
+
export type TypesExportedSettings =
|
|
9
|
+
(typeof TypesExportedSettings)[keyof typeof TypesExportedSettings];
|
package/src/enums/index.ts
CHANGED
|
@@ -1,89 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export { default as AbstractUserStatus } from './AbstractUserStatus/AbstractUserStatus.enum.js';
|
|
2
|
+
export { default as AgentStatus } from './AgentStatus/AgentStatus.enum.js';
|
|
3
|
+
export { BroadcastChannelName } from './BroadcastChannelName/BroadcastChannelName';
|
|
4
|
+
export type {
|
|
5
5
|
UserSettingsBroadcastMessage,
|
|
6
6
|
WebphoneBroadcastMessage,
|
|
7
7
|
WebphoneBroadcastPayload,
|
|
8
8
|
} from './BroadcastChannelName/UserSettingsBroadcastMessage';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
export { ButtonColor } from './ButtonColor/ButtonColor';
|
|
10
|
+
export { ButtonVariant } from './ButtonVariant/ButtonVariant';
|
|
11
|
+
export { default as ChatGatewayProvider } from './ChatGatewayProvider/ChatGatewayProvider.enum.js';
|
|
12
|
+
export { default as ProviderIconType } from './ChatGatewayProvider/ProviderIconType.enum';
|
|
13
|
+
export { ChipColor } from './ChipColor/ChipColor';
|
|
14
|
+
export { ComponentSize } from './ComponentSize/ComponentSize';
|
|
15
|
+
export {
|
|
16
16
|
ConnectionQualityLevels,
|
|
17
17
|
type ConnectionQualityLevelsType,
|
|
18
18
|
} from './ConnectionQualityLevel/ConnectionQualityLevel.enum';
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
export type {
|
|
46
|
-
ConnectionQualityLevelsType,
|
|
47
|
-
UserSettingsBroadcastMessage,
|
|
48
|
-
WebphoneBroadcastMessage,
|
|
49
|
-
WebphoneBroadcastPayload,
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export {
|
|
53
|
-
AbstractUserStatus,
|
|
54
|
-
AdminSections,
|
|
55
|
-
AgentStatus,
|
|
56
|
-
AuditorSections,
|
|
57
|
-
BroadcastChannelName,
|
|
58
|
-
ButtonColor,
|
|
59
|
-
ButtonVariant,
|
|
60
|
-
ChatGatewayProvider,
|
|
61
|
-
ChipColor,
|
|
62
|
-
ComponentSize,
|
|
63
|
-
ConnectionQualityLevels,
|
|
64
|
-
CrmSections,
|
|
65
|
-
CrudAction,
|
|
66
|
-
DefaultWorkspaceTabSettings,
|
|
67
|
-
EmptyCause,
|
|
68
|
-
FormatDateMode,
|
|
69
|
-
IconAction,
|
|
70
|
-
IconColor,
|
|
71
|
-
LoginOptions,
|
|
72
|
-
MessageColor,
|
|
73
|
-
MessageVariant,
|
|
74
|
-
MimeTypes,
|
|
75
|
-
ProcessingTableColumnType,
|
|
76
|
-
ProviderIconType,
|
|
77
|
-
QueueType,
|
|
78
|
-
QueueTypeName,
|
|
79
|
-
RelativeDatetimeValue,
|
|
80
|
-
RingtoneType,
|
|
81
|
-
SingleSignOnProvider,
|
|
82
|
-
SingleSignOnProviderIconMappings,
|
|
83
|
-
SupervisorSections,
|
|
84
|
-
TypesExportedSettings,
|
|
85
|
-
WfmSections,
|
|
86
|
-
WtApplication,
|
|
87
|
-
WtObject,
|
|
88
|
-
WtTypeExtensionFieldKind,
|
|
89
|
-
};
|
|
19
|
+
export { CrudAction } from './CrudAction/CrudAction';
|
|
20
|
+
export { DefaultWorkspaceTabSettings } from './DefaultWorkspaceTabSettings/DefaultWorkspaceTabSettings';
|
|
21
|
+
export { EmptyCause } from './EmptyCause/EmptyCause';
|
|
22
|
+
export { ExportFormat } from './ExportFormat/ExportFormat.enum';
|
|
23
|
+
export { FormatDateMode } from './FormatDateMode/FormatDateMode';
|
|
24
|
+
export { default as IconAction } from './IconAction/IconAction.enum.js';
|
|
25
|
+
export { IconColor } from './IconColor/IconColor';
|
|
26
|
+
export { LoginOptions } from './LoginOptions/LoginOptions';
|
|
27
|
+
export { MessageColor } from './MessageColor/MessageColor';
|
|
28
|
+
export { MessageVariant } from './MessageVariant/MessageVariant';
|
|
29
|
+
export { MimeTypes } from './MimeTypes/MimeTypes.enum';
|
|
30
|
+
export { ProcessingTableColumnType } from './ProcessingTableColumnType/ProcessingTableColumnType';
|
|
31
|
+
export { QueueType, QueueTypeName } from './QueueType/QueueType.enum';
|
|
32
|
+
export { RelativeDatetimeValue } from './RelativeDatetimeValue/RelativeDatetimeValue';
|
|
33
|
+
export { RingtoneType } from './RingtoneType/RingtoneType.js';
|
|
34
|
+
export { SingleSignOnProvider } from './SingleSignOnProvider/SingleSignOnProvider';
|
|
35
|
+
export { SingleSignOnProviderIconMappings } from './SingleSignOnProviderIconMappings/SingleSignOnProviderIconMappings';
|
|
36
|
+
export { TypesExportedSettings } from './TypesExportedSettings/TypesExportedSettings.enum';
|
|
37
|
+
export { AdminSections } from './WebitelApplications/AdminSections';
|
|
38
|
+
export { AuditorSections } from './WebitelApplications/AuditorSections';
|
|
39
|
+
export { CrmSections } from './WebitelApplications/CrmSections';
|
|
40
|
+
export { SupervisorSections } from './WebitelApplications/SupervisorSections';
|
|
41
|
+
export { WfmSections } from './WebitelApplications/WfmSections';
|
|
42
|
+
export { WtApplication } from './WebitelApplications/WtApplication';
|
|
43
|
+
export { WtObject } from './WtObject/WtObject';
|
|
44
|
+
export { WtTypeExtensionFieldKind } from './WtTypeExtensionFieldKind/WtTypeExtensionFieldKind';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DownloadFileOptions } from './types/downloadFile.types';
|
|
2
2
|
|
|
3
|
-
const downloadFile = ({
|
|
3
|
+
export const downloadFile = ({
|
|
4
4
|
response,
|
|
5
5
|
fileFormat,
|
|
6
6
|
filename,
|
|
@@ -32,5 +32,3 @@ const downloadFile = ({
|
|
|
32
32
|
|
|
33
33
|
window.URL.revokeObjectURL(url);
|
|
34
34
|
};
|
|
35
|
-
|
|
36
|
-
export default downloadFile;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ExportFormat } from '../../../../enums';
|
|
2
2
|
|
|
3
3
|
/** Minimal shape of the (axios-style) HTTP response consumed by `downloadFile`. */
|
|
4
4
|
export interface DownloadFileResponse {
|
|
@@ -8,7 +8,7 @@ export interface DownloadFileResponse {
|
|
|
8
8
|
|
|
9
9
|
export interface DownloadFileOptions {
|
|
10
10
|
response: DownloadFileResponse;
|
|
11
|
-
fileFormat:
|
|
11
|
+
fileFormat: ExportFormat;
|
|
12
12
|
filename?: string;
|
|
13
13
|
mimetype?: string;
|
|
14
14
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* separate re-export barrel file for file-related scripts coz they have jszip opt dep
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export { downloadFile } from './downloadFile/downloadFile';
|
|
6
|
+
export type {
|
|
7
|
+
DownloadFileOptions,
|
|
8
|
+
DownloadFileResponse,
|
|
9
|
+
} from './downloadFile/types/downloadFile.types';
|
|
10
|
+
export { downloadFilesAsZip } from './storageFile/downloadFilesAsZip';
|
|
11
|
+
export { downloadStorageFile } from './storageFile/downloadStorageFile';
|
|
12
|
+
export { getFileTypeIcon } from './storageFile/getFileTypeIcon';
|
|
13
|
+
export { getStorageFileUrl } from './storageFile/getStorageFileUrl';
|
|
14
|
+
export { openStorageFileInNewTab } from './storageFile/openStorageFileInNewTab';
|
package/src/scripts/index.js
CHANGED
|
@@ -8,45 +8,37 @@ import {
|
|
|
8
8
|
objSnakeToCamel,
|
|
9
9
|
snakeToCamel,
|
|
10
10
|
snakeToKebab,
|
|
11
|
-
} from './caseConverters
|
|
11
|
+
} from './caseConverters';
|
|
12
12
|
import {
|
|
13
13
|
compareSize,
|
|
14
14
|
greaterOrEqual as sizeGreaterOrEqual,
|
|
15
15
|
greaterThen as sizeGreaterThen,
|
|
16
16
|
smallerOrEqual as sizeSmallerOrEqual,
|
|
17
17
|
smallerThen as sizeSmallerThen,
|
|
18
|
-
} from './compareSize
|
|
19
|
-
import convertDuration from './convertDuration
|
|
18
|
+
} from './compareSize';
|
|
19
|
+
import convertDuration from './convertDuration';
|
|
20
20
|
import { convertDurationWithDays } from './convertDurationWithDays';
|
|
21
|
-
import debounce from './debounce
|
|
22
|
-
import downloadFile from './downloadFile/downloadFile';
|
|
21
|
+
import debounce from './debounce';
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
import
|
|
27
|
-
import { getConnectionQuality } from './getConnectionQuality.ts';
|
|
28
|
-
import { getEndOfDay, getStartOfDay } from './getDefaultFilterDate.js';
|
|
23
|
+
import eventBus from './eventBus';
|
|
24
|
+
import { getConnectionQuality } from './getConnectionQuality';
|
|
25
|
+
import { getEndOfDay, getStartOfDay } from './getDefaultFilterDate';
|
|
29
26
|
import isEmpty from './isEmpty';
|
|
30
|
-
import { wtlog } from './logger
|
|
27
|
+
import { wtlog } from './logger';
|
|
31
28
|
import {
|
|
32
29
|
isRelativeDatetimeValue,
|
|
33
30
|
normalizeToTimestamp,
|
|
34
31
|
} from './normalizeDatetime';
|
|
35
|
-
import prettifyFileSize from './prettifyFileSize
|
|
36
|
-
import prettifyTime from './prettifyTime
|
|
37
|
-
import preventHiddenPageCallsDecorator from './preventHiddenPageCallsDecorator
|
|
38
|
-
import saveAsJSON from './saveAsJSON
|
|
32
|
+
import prettifyFileSize from './prettifyFileSize';
|
|
33
|
+
import prettifyTime from './prettifyTime';
|
|
34
|
+
import preventHiddenPageCallsDecorator from './preventHiddenPageCallsDecorator';
|
|
35
|
+
import saveAsJSON from './saveAsJSON';
|
|
39
36
|
import {
|
|
40
37
|
getNextSortOrder,
|
|
41
38
|
queryToSortAdapter,
|
|
42
39
|
sortToQueryAdapter,
|
|
43
|
-
} from './sortQueryAdapters
|
|
44
|
-
import
|
|
45
|
-
import { downloadStorageFile } from './storageFile/downloadStorageFile';
|
|
46
|
-
import { getFileTypeIcon } from './storageFile/getFileTypeIcon';
|
|
47
|
-
import { getStorageFileUrl } from './storageFile/getStorageFileUrl';
|
|
48
|
-
import { openStorageFileInNewTab } from './storageFile/openStorageFileInNewTab';
|
|
49
|
-
import updateObject from './updateObject.js';
|
|
40
|
+
} from './sortQueryAdapters';
|
|
41
|
+
import updateObject from './updateObject';
|
|
50
42
|
|
|
51
43
|
export {
|
|
52
44
|
camelToKebab,
|
|
@@ -55,16 +47,11 @@ export {
|
|
|
55
47
|
convertDuration,
|
|
56
48
|
convertDurationWithDays,
|
|
57
49
|
debounce,
|
|
58
|
-
downloadFile,
|
|
59
|
-
downloadFilesAsZip,
|
|
60
|
-
downloadStorageFile,
|
|
61
50
|
eventBus,
|
|
62
51
|
getConnectionQuality,
|
|
63
52
|
getEndOfDay,
|
|
64
|
-
getFileTypeIcon,
|
|
65
53
|
getNextSortOrder,
|
|
66
54
|
getStartOfDay,
|
|
67
|
-
getStorageFileUrl,
|
|
68
55
|
isEmpty,
|
|
69
56
|
isRelativeDatetimeValue,
|
|
70
57
|
kebabToCamel,
|
|
@@ -73,7 +60,6 @@ export {
|
|
|
73
60
|
objCamelToKebab,
|
|
74
61
|
objCamelToSnake,
|
|
75
62
|
objSnakeToCamel,
|
|
76
|
-
openStorageFileInNewTab,
|
|
77
63
|
prettifyFileSize,
|
|
78
64
|
prettifyTime,
|
|
79
65
|
preventHiddenPageCallsDecorator,
|
|
@@ -85,7 +71,7 @@ export {
|
|
|
85
71
|
sizeSmallerThen,
|
|
86
72
|
snakeToCamel,
|
|
87
73
|
snakeToKebab,
|
|
88
|
-
// sortQueryAdapters
|
|
74
|
+
// sortQueryAdapters
|
|
89
75
|
sortToQueryAdapter,
|
|
90
76
|
updateObject,
|
|
91
77
|
wtlog,
|