@webitel/ui-sdk 25.10.13 → 25.10.14
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/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +18 -19
- package/dist/ui-sdk.umd.cjs +2 -1
- package/package.json +1 -1
- package/src/components/wt-table/wt-table.vue +23 -13
- package/src/locale/en/en.js +2 -2
- package/src/plugins/primevue/theme/components/table/table.js +1 -0
- package/types/components/wt-table/wt-table.vue.d.ts +2 -2
- package/types/locale/en/en.d.ts +740 -1
- package/types/locale/i18n.d.ts +729 -1
- package/types/locale/index.d.ts +729 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "25.10.
|
|
3
|
+
"version": "25.10.14",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"make-all": "npm version patch --git-tag-version false && npm run build && (npm run build:types || true) && (npm run lint:fix || true) && npm run publish-lib",
|
|
@@ -56,8 +56,20 @@
|
|
|
56
56
|
:hidden="isColumnHidden(col)"
|
|
57
57
|
>
|
|
58
58
|
<template #header>
|
|
59
|
-
<div
|
|
59
|
+
<div class="wt-table__th__content">
|
|
60
60
|
{{ col.text }}
|
|
61
|
+
<wt-icon
|
|
62
|
+
v-if="col.sort === 'asc'"
|
|
63
|
+
class="wt-table__th__sort-arrow wt-table__th__sort-arrow--asc"
|
|
64
|
+
icon="sort-arrow-up"
|
|
65
|
+
size="sm"
|
|
66
|
+
/>
|
|
67
|
+
<wt-icon
|
|
68
|
+
v-else-if="col.sort === 'desc'"
|
|
69
|
+
class="wt-table__th__sort-arrow wt-table__th__sort-arrow--desc"
|
|
70
|
+
icon="sort-arrow-down"
|
|
71
|
+
size="sm"
|
|
72
|
+
/>
|
|
61
73
|
</div>
|
|
62
74
|
</template>
|
|
63
75
|
|
|
@@ -80,19 +92,8 @@
|
|
|
80
92
|
>{{ row[col.value] }}</slot>
|
|
81
93
|
</div>
|
|
82
94
|
</template>
|
|
95
|
+
<!-- empty sorticon slot for hiding default sort icon, custom icon is rendered in header -->
|
|
83
96
|
<template #sorticon>
|
|
84
|
-
<wt-icon
|
|
85
|
-
v-if="col.sort === 'asc'"
|
|
86
|
-
class="wt-table__th__sort-arrow wt-table__th__sort-arrow--asc"
|
|
87
|
-
icon="sort-arrow-up"
|
|
88
|
-
size="sm"
|
|
89
|
-
/>
|
|
90
|
-
<wt-icon
|
|
91
|
-
v-else-if="col.sort === 'desc'"
|
|
92
|
-
class="wt-table__th__sort-arrow wt-table__th__sort-arrow--desc"
|
|
93
|
-
icon="sort-arrow-down"
|
|
94
|
-
size="sm"
|
|
95
|
-
/>
|
|
96
97
|
</template>
|
|
97
98
|
<template
|
|
98
99
|
v-if="isTableColumnFooters"
|
|
@@ -335,10 +336,13 @@ const handleSelection = (row, select) => {
|
|
|
335
336
|
.wt-table__th__content {
|
|
336
337
|
@extend %typo-body-1-bold;
|
|
337
338
|
white-space: nowrap;
|
|
339
|
+
width: 0;
|
|
338
340
|
}
|
|
339
341
|
|
|
340
342
|
.wt-table__td__content {
|
|
341
343
|
@extend %typo-body-1;
|
|
344
|
+
display: flex;
|
|
345
|
+
align-items: center;
|
|
342
346
|
}
|
|
343
347
|
|
|
344
348
|
.wt-table__td__actions {
|
|
@@ -347,4 +351,10 @@ const handleSelection = (row, select) => {
|
|
|
347
351
|
align-items: flex-start;
|
|
348
352
|
gap: var(--spacing-xs);
|
|
349
353
|
}
|
|
354
|
+
|
|
355
|
+
.wt-table__th__sort-arrow {
|
|
356
|
+
position: absolute;
|
|
357
|
+
transform: translateY(-50%);
|
|
358
|
+
top: 50%;
|
|
359
|
+
}
|
|
350
360
|
</style>
|
package/src/locale/en/en.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import deepmerge from 'deepmerge';
|
|
2
2
|
import {
|
|
3
3
|
AgentStatus,
|
|
4
4
|
CallDirection,
|
|
@@ -23,7 +23,7 @@ import { AccessMode } from '../../modules/ObjectPermissions/_internals/enums/Acc
|
|
|
23
23
|
import { snakeToCamel } from '../../scripts';
|
|
24
24
|
import notTranslatable from './notTranslatable.en';
|
|
25
25
|
|
|
26
|
-
export default
|
|
26
|
+
export default deepmerge(notTranslatable, {
|
|
27
27
|
// describes reusable buttons, actions, default titles, and other ui elements
|
|
28
28
|
reusable: {
|
|
29
29
|
comment: 'Comment',
|
|
@@ -62,7 +62,7 @@ declare const isColSortable: ({ sort }: {
|
|
|
62
62
|
declare const selectAll: () => void;
|
|
63
63
|
declare const handleSelection: (row: any, select: any) => void;
|
|
64
64
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
65
|
-
declare var
|
|
65
|
+
declare var __VLS_53: string, __VLS_54: {
|
|
66
66
|
index: any;
|
|
67
67
|
item: any;
|
|
68
68
|
}, __VLS_57: `${string}-footer`, __VLS_58: {}, __VLS_64: {}, __VLS_66: {
|
|
@@ -70,7 +70,7 @@ declare var __VLS_45: string, __VLS_46: {
|
|
|
70
70
|
item: any;
|
|
71
71
|
}, __VLS_68: {};
|
|
72
72
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
73
|
-
[K in NonNullable<typeof
|
|
73
|
+
[K in NonNullable<typeof __VLS_53>]?: (props: typeof __VLS_54) => any;
|
|
74
74
|
} & {
|
|
75
75
|
[K in NonNullable<typeof __VLS_57>]?: (props: typeof __VLS_58) => any;
|
|
76
76
|
} & {
|