@webitel/ui-sdk 26.6.103 → 26.6.105
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/{components-D8JOGMR0.js → components--jBlnDLD.js} +4 -4
- package/dist/{composables-CeAM_2lo.js → composables-n0Hlq9R_.js} +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +1 -1
- package/dist/{useWtTable-D_PxqVHO.js → useWtTable-DLWucXPx.js} +10 -4
- package/dist/{wt-chat-emoji-Dp6FMc5b.js → wt-chat-emoji-RGvDu3oK.js} +1 -1
- package/dist/{wt-display-chip-items-BXBiBRHv.js → wt-display-chip-items-DOkxyvI3.js} +1 -1
- package/dist/{wt-expansion-card-DET-o0Jq.js → wt-expansion-card-D0jAWADy.js} +1 -1
- package/dist/{wt-galleria-B6kMr_xS.js → wt-galleria-PpW2KRKz.js} +1 -1
- package/dist/{wt-send-message-popup-Bb1kLJAB.js → wt-send-message-popup-iyn0Eh2e.js} +1 -1
- package/dist/{wt-table-DK024qBI.js → wt-table-CpFXHzxy.js} +1 -1
- package/dist/{wt-tree-table-Dr1gwykM.js → wt-tree-table-BRokvhkB.js} +1 -1
- package/dist/{wt-type-extension-value-input-PBQg_6By.js → wt-type-extension-value-input-Q2qwunaW.js} +1 -1
- package/dist/{wt-vidstack-player-BnjIQSJE.js → wt-vidstack-player-CnVeTmnM.js} +1 -1
- package/package.json +1 -1
- package/src/api/transformers/camelToSnake/camelToSnake.transformer.js +3 -0
- package/src/api/transformers/snakeToCamel/snakeToCamel.transformer.js +3 -0
- package/src/components/_internals/composables/useWtTable/useWtTable.ts +6 -2
- package/src/components/wt-table/types/WtTable.ts +8 -6
- package/src/modules/CSVExport/composables/useCSVExport.ts +5 -1
- package/types/.tsbuildinfo +1 -1
- package/types/api/transformers/camelToSnake/camelToSnake.transformer.d.ts +4 -1
- package/types/api/transformers/snakeToCamel/snakeToCamel.transformer.d.ts +4 -1
- package/types/components/wt-table/types/WtTable.d.ts +8 -4
- package/types/modules/CSVExport/composables/useCSVExport.d.ts +2 -2
|
@@ -3,10 +3,16 @@ import { computed as t, unref as n } from "vue";
|
|
|
3
3
|
//#region src/components/_internals/composables/useWtTable/useWtTable.ts
|
|
4
4
|
var r = ({ headers: r }) => {
|
|
5
5
|
let { t: i } = e();
|
|
6
|
-
return { tableHeaders: t(() => (n(r) ?? []).filter((e) => e.show === void 0 || e.show).map((e) =>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
return { tableHeaders: t(() => (n(r) ?? []).filter((e) => e.show === void 0 || e.show).map((e) => {
|
|
7
|
+
if (!e.text && e.locale) {
|
|
8
|
+
let t = i;
|
|
9
|
+
return {
|
|
10
|
+
...e,
|
|
11
|
+
text: typeof e.locale == "string" ? t(e.locale) : t(String(e.locale[0]), ...e.locale.slice(1))
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
return e;
|
|
15
|
+
})) };
|
|
10
16
|
};
|
|
11
17
|
//#endregion
|
|
12
18
|
export { r as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as e, i as t } from "./components
|
|
1
|
+
import { C as e, i as t } from "./components--jBlnDLD.js";
|
|
2
2
|
import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
3
|
import { t as r } from "./displayText-CtaxzaBz.js";
|
|
4
4
|
import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createTextVNode as c, createVNode as l, defineComponent as u, openBlock as d, renderList as f, renderSlot as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
2
|
import { l as t } from "./enums-De8CDKZ1.js";
|
|
3
3
|
import { t as n } from "./useExpansion-DVdIpoOn.js";
|
|
4
|
-
import "./composables-
|
|
4
|
+
import "./composables-n0Hlq9R_.js";
|
|
5
5
|
import { t as r } from "./wt-expand-transition-C2p9bR4j.js";
|
|
6
6
|
import { createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, guardReactiveProps as c, normalizeClass as l, normalizeProps as u, openBlock as d, renderSlot as f, resolveComponent as p, toRef as m, unref as h, vShow as g, withCtx as _, withDirectives as v, withKeys as y } from "vue";
|
|
7
7
|
//#region src/components/wt-expansion-card/wt-expansion-card.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
2
|
import { t } from "./vue-i18n-Db_oYfO8.js";
|
|
3
|
-
import { a as n, o as r } from "./composables-
|
|
3
|
+
import { a as n, o as r } from "./composables-n0Hlq9R_.js";
|
|
4
4
|
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, mergeModels as p, mergeProps as m, nextTick as h, normalizeClass as g, onMounted as _, onUnmounted as v, openBlock as y, ref as b, renderSlot as x, resolveComponent as S, toDisplayString as C, unref as w, useAttrs as T, useModel as E, vShow as D, watch as O, withCtx as k, withDirectives as A } from "vue";
|
|
5
5
|
//#region src/modules/DeleteConfirmationPopup/composables/useDeleteConfirmationPopup.js
|
|
6
6
|
var j = () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e, r as t } from "./clients-DqzkR0RW.js";
|
|
2
|
-
import { n } from "./components
|
|
2
|
+
import { n } from "./components--jBlnDLD.js";
|
|
3
3
|
import { t as r } from "./vue-i18n-Db_oYfO8.js";
|
|
4
4
|
import { createBlock as i, createTextVNode as a, createVNode as o, defineComponent as s, inject as c, mergeProps as l, onMounted as u, openBlock as d, ref as f, resolveComponent as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
5
5
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
2
|
import { t } from "./vue-i18n-Db_oYfO8.js";
|
|
3
3
|
import { n, t as r } from "./sortQueryAdapters-CyYXvnDN.js";
|
|
4
|
-
import { t as i } from "./composables-
|
|
4
|
+
import { t as i } from "./composables-n0Hlq9R_.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, nextTick as h, normalizeStyle as g, onMounted as _, onUnmounted as v, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveComponent as C, resolveDirective as w, toDisplayString as T, useSlots as E, useTemplateRef as D, withCtx as O, withDirectives as k, withModifiers as A } from "vue";
|
|
6
6
|
//#region src/components/wt-table/wt-table.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var j = { class: "wt-table__th__content typo-body-1-bold" }, M = { class: "wt-table__td__actions" }, N = 10, P = /*#__PURE__*/ e(/* @__PURE__ */ m({
|
|
@@ -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
3
|
import { n, t as r } from "./wt-icon-btn-DYjjSl-C.js";
|
|
4
|
-
import { t as i } from "./useWtTable-
|
|
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-PBQg_6By.js → wt-type-extension-value-input-Q2qwunaW.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./clients-DqzkR0RW.js";
|
|
2
|
-
import { a as t, o as n, r, s as i } from "./components
|
|
2
|
+
import { a as t, o as n, r, s as i } from "./components--jBlnDLD.js";
|
|
3
3
|
import { t as a } from "./enums-De8CDKZ1.js";
|
|
4
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";
|
package/package.json
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { objCamelToSnake } from '../../../scripts/caseConverters.js';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @param {string[]=} [skipKeys] keys to leave in camelCase
|
|
5
|
+
*/
|
|
3
6
|
const camelToSnakeTransformer = (skipKeys) => (obj) =>
|
|
4
7
|
objCamelToSnake(obj, skipKeys);
|
|
5
8
|
export default camelToSnakeTransformer;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { objSnakeToCamel } from '../../../scripts/caseConverters.js';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @param {string[]=} [skipKeys] keys to leave in snake_case
|
|
5
|
+
*/
|
|
3
6
|
const snakeToCamelTransformer = (skipKeys) => (obj) =>
|
|
4
7
|
objSnakeToCamel(obj, skipKeys);
|
|
5
8
|
export default snakeToCamelTransformer;
|
|
@@ -13,12 +13,16 @@ export const useWtTable = ({ headers }) => {
|
|
|
13
13
|
)
|
|
14
14
|
.map((header: WtTableHeader) => {
|
|
15
15
|
if (!header.text && header.locale) {
|
|
16
|
+
const translate = t as (key: string, ...args: unknown[]) => string;
|
|
16
17
|
return {
|
|
17
18
|
...header,
|
|
18
19
|
text:
|
|
19
20
|
typeof header.locale === 'string'
|
|
20
|
-
?
|
|
21
|
-
:
|
|
21
|
+
? translate(header.locale)
|
|
22
|
+
: translate(
|
|
23
|
+
String(header.locale[0]),
|
|
24
|
+
...header.locale.slice(1),
|
|
25
|
+
),
|
|
22
26
|
};
|
|
23
27
|
}
|
|
24
28
|
return header;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export type WtTableHeader = {
|
|
2
2
|
value: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
/**
|
|
4
|
+
* i18n key, or args for `t(key, ...params)` (plural count, named params, …).
|
|
5
|
+
* Plain arrays are allowed — header defs often don't use `as const` tuples.
|
|
6
|
+
*/
|
|
7
|
+
locale?: string | (string | number | Record<string, unknown>)[];
|
|
8
8
|
text?: string;
|
|
9
9
|
width?: string;
|
|
10
|
-
|
|
10
|
+
/** API/query field name when it differs from `value` */
|
|
11
|
+
field?: string;
|
|
12
|
+
sort?: boolean | null;
|
|
11
13
|
show?: boolean;
|
|
12
14
|
};
|
|
@@ -18,7 +18,11 @@ interface CSVExportOptions {
|
|
|
18
18
|
|
|
19
19
|
const CSV_EXPORT_BATCH_SIZE = 5000;
|
|
20
20
|
|
|
21
|
-
export function useCSVExport({
|
|
21
|
+
export function useCSVExport({
|
|
22
|
+
selected,
|
|
23
|
+
}: {
|
|
24
|
+
selected: Ref<Array<string | number>>;
|
|
25
|
+
}) {
|
|
22
26
|
const CSVExportInstance = ref<null | InstanceType<typeof CSVExport>>(null);
|
|
23
27
|
const route = useRoute();
|
|
24
28
|
|