@webitel/ui-sdk 26.4.34 → 26.4.36
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-xIzFQNd0.js → index-BZKts8yS.js} +1 -1
- package/dist/{index-7wsN-YZu.js → index-BrEE-qd-.js} +1 -1
- package/dist/{install-D_goYtnz.js → install-DUod_8Ku.js} +36 -36
- package/dist/{isObject-Gt5Jm-Ug.js → isObject-uQaUYKJW.js} +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +112 -112
- package/dist/{useVidstackSrc-CTzsUo62.js → useVidstackSrc-C6fu6SvZ.js} +1 -1
- package/dist/{vidstack-Bq6c3Bam-BhMf-ZTn.js → vidstack-Bq6c3Bam-Dd52QiPX.js} +3 -3
- package/dist/{vidstack-D2pY00kU-gmAgDRVT.js → vidstack-D2pY00kU-_LBWFhUE.js} +3 -3
- package/dist/{vidstack-DDXt6fpN-CmHiuC9m.js → vidstack-DDXt6fpN-DhMYnOMt.js} +2 -2
- package/dist/{vidstack-D_-9AA6_-BGfLCdlb.js → vidstack-D_-9AA6_-D2a5xJKO.js} +2 -2
- package/dist/{vidstack-DqAw8m9J-DO1SEzrd.js → vidstack-DqAw8m9J-BdizNAWr.js} +1 -1
- package/dist/{vidstack-audio-Bk1wmJYd.js → vidstack-audio-chLugnlj.js} +2 -2
- package/dist/{vidstack-dash-fN-vPQlr.js → vidstack-dash-Cdbb2MOE.js} +4 -4
- package/dist/{vidstack-google-cast-DzXyoIrl.js → vidstack-google-cast-mDtJg_vY.js} +4 -4
- package/dist/{vidstack-hls-BvsDlNoZ.js → vidstack-hls-CiQFMqwR.js} +4 -4
- package/dist/{vidstack-video-DVWLXMbZ.js → vidstack-video-Bl4rfgP9.js} +3 -3
- package/dist/{vidstack-vimeo-C43vDg2R.js → vidstack-vimeo-BcSiQ_9q.js} +4 -4
- package/dist/{vidstack-youtube-BqjBo21Z.js → vidstack-youtube-DApcJDQI.js} +3 -3
- package/dist/{wt-action-bar-C3ZOub4E.js → wt-action-bar-BF5D6Vv_.js} +1 -1
- package/dist/{wt-button-select-cHYjfQdz.js → wt-button-select-BTY-iaNj.js} +1 -1
- package/dist/{wt-chat-emoji-CI3V_BeW.js → wt-chat-emoji-BXPjqZI0.js} +2 -2
- package/dist/{wt-confirm-dialog-cSeWX-p6.js → wt-confirm-dialog-DqQDYTZq.js} +1 -1
- package/dist/{wt-context-menu-DLz_SzEn.js → wt-context-menu-BktQof7n.js} +1 -1
- package/dist/{wt-copy-action-B8UQn0Ex.js → wt-copy-action-Ejnxisfl.js} +1 -1
- package/dist/{wt-datepicker-BghFL7dG.js → wt-datepicker-CwFS-fxt.js} +1 -1
- package/dist/{wt-display-chip-items-BuPaJqOp.js → wt-display-chip-items-B8TYLutp.js} +1 -1
- package/dist/{wt-dual-panel-DSg_9Lq6.js → wt-dual-panel-BOs_XQXg.js} +1 -1
- package/dist/{wt-dummy-DztLsixT.js → wt-dummy-4X6y_x3K.js} +1 -1
- package/dist/{wt-error-page-DdMotrHk.js → wt-error-page-BhgTuky5.js} +1 -1
- package/dist/{wt-expansion-card-DY8qL9Al.js → wt-expansion-card-D5tyFYOh.js} +1 -1
- package/dist/{wt-expansion-panel-CTTDEN7q.js → wt-expansion-panel-CY4YOczp.js} +1 -1
- package/dist/{wt-filters-panel-wrapper-DdcIsO1N.js → wt-filters-panel-wrapper-B2r7LBDA.js} +1 -1
- package/dist/{wt-galleria-CSbm0shh.js → wt-galleria-QMvyOiCu.js} +1 -1
- package/dist/{wt-inline-add-panel-C_UyCvRw.js → wt-inline-add-panel-BxRUjfud.js} +1 -1
- package/dist/{wt-navigation-menu-CfWKguu2.js → wt-navigation-menu-CijYDqmj.js} +1 -1
- package/dist/{wt-notifications-bar-Cgu2wc9v.js → wt-notifications-bar-B-WHYUn8.js} +2 -2
- package/dist/{wt-pagination-DN335p2t.js → wt-pagination-Ct7KqZia.js} +1 -1
- package/dist/{wt-player-CnJGUlag.js → wt-player-C9yxYqJg.js} +2 -2
- package/dist/{wt-screen-recordings-action-BcEdGu6w.js → wt-screen-recordings-action-CCjbaNv0.js} +1 -1
- package/dist/{wt-search-bar-u8SuElvI.js → wt-search-bar-D6bjH-vv.js} +1 -1
- package/dist/{wt-selection-popup-BB7pO3iT.js → wt-selection-popup-DeUe96aS.js} +1 -1
- package/dist/{wt-start-page-DdRpXVdV.js → wt-start-page-B6Vgs_a3.js} +1 -1
- package/dist/{wt-status-select-GO0gtD2B.js → wt-status-select-DA5jiZrX.js} +1 -1
- package/dist/{wt-stepper-DbaiOlK9.js → wt-stepper-DswMICsZ.js} +1 -1
- package/dist/{wt-table-CAVQW_vc.js → wt-table-OHnwif0t.js} +1 -1
- package/dist/{wt-table-actions-DrT2ZxPE.js → wt-table-actions-BtS9meDS.js} +1 -1
- package/dist/wt-table-column-select-Db1EZl6_.js +150 -0
- package/dist/{wt-tabs-B7kjsIG-.js → wt-tabs-BdKnAJWa.js} +1 -1
- package/dist/{wt-tags-input-C7PwjLAR.js → wt-tags-input-060JQiZm.js} +2 -2
- package/dist/{wt-timepicker-CjBjH-wE.js → wt-timepicker-CwB-pqSe.js} +1 -1
- package/dist/{wt-tree-X0IBoelv.js → wt-tree-3ghuBLTn.js} +2 -2
- package/dist/{wt-tree-table-DQkfKejv.js → wt-tree-table-Dl1edw4Q.js} +1 -1
- package/dist/{wt-type-extension-value-input-D6qSoXP6.js → wt-type-extension-value-input-CJOhDnXg.js} +2 -2
- package/dist/{wt-vidstack-player-DJVlp2Go.js → wt-vidstack-player-BCpnqFue.js} +287 -297
- package/package.json +1 -1
- package/src/components/wt-table-column-select/wt-table-column-select.vue +21 -2
- package/src/components/wt-vidstack-player/components/panels/video-display-panel/video-display-panel.vue +6 -2
- package/src/components/wt-vidstack-player/components/toggle-button.vue +6 -27
- package/types/components/wt-table-column-select/wt-table-column-select.vue.d.ts +1 -0
- package/types/components/wt-vidstack-player/components/toggle-button.vue.d.ts +3 -4
- package/dist/wt-table-column-select-HH02vVeu.js +0 -137
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "26.4.
|
|
3
|
+
"version": "26.4.36",
|
|
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 biome:format:all || true) && npm run publish-lib",
|
|
@@ -15,6 +15,16 @@
|
|
|
15
15
|
{{ $t('webitelUI.tableColumnSelect.title') }}
|
|
16
16
|
</template>
|
|
17
17
|
<template #main>
|
|
18
|
+
<wt-input-text
|
|
19
|
+
class="wt-table-column-select__popup-search"
|
|
20
|
+
v-model:model-value="search"
|
|
21
|
+
>
|
|
22
|
+
<template #prefix>
|
|
23
|
+
<wt-icon
|
|
24
|
+
icon="search"
|
|
25
|
+
/>
|
|
26
|
+
</template>
|
|
27
|
+
</wt-input-text>
|
|
18
28
|
<div class="wt-table-column-select__popup-list-wrap">
|
|
19
29
|
<ul
|
|
20
30
|
:class="{
|
|
@@ -97,12 +107,17 @@ export default {
|
|
|
97
107
|
],
|
|
98
108
|
data: () => ({
|
|
99
109
|
draft: [], // headers draft
|
|
110
|
+
search: '',
|
|
100
111
|
isColumnSelectPopup: false,
|
|
101
112
|
}),
|
|
102
113
|
computed: {
|
|
103
114
|
changeableDraft() {
|
|
104
115
|
return this.draft
|
|
105
|
-
.filter(
|
|
116
|
+
.filter(
|
|
117
|
+
(header) =>
|
|
118
|
+
!this.staticHeaders.includes(header.value) &&
|
|
119
|
+
this.shownColLabel(header)?.toLowerCase().includes(this.search),
|
|
120
|
+
)
|
|
106
121
|
.sort((a, b) => {
|
|
107
122
|
return this.shownColLabel(a)?.localeCompare(this.shownColLabel(b));
|
|
108
123
|
// sorting headers for alphabet just in popup
|
|
@@ -148,6 +163,10 @@ export default {
|
|
|
148
163
|
text-align: center;
|
|
149
164
|
}
|
|
150
165
|
|
|
166
|
+
.wt-table-column-select__popup-search {
|
|
167
|
+
margin-bottom: var(--spacing-xs);
|
|
168
|
+
}
|
|
169
|
+
|
|
151
170
|
.wt-table-column-select__popup-list-wrap {
|
|
152
171
|
max-height: 400px;
|
|
153
172
|
}
|
|
@@ -182,6 +201,6 @@ export default {
|
|
|
182
201
|
display: flex;
|
|
183
202
|
align-items: center;
|
|
184
203
|
margin-right: var(--spacing-sm);
|
|
185
|
-
margin-bottom: var(--spacing-
|
|
204
|
+
margin-bottom: var(--spacing-xs);
|
|
186
205
|
}
|
|
187
206
|
</style>
|
|
@@ -24,8 +24,7 @@
|
|
|
24
24
|
/>
|
|
25
25
|
<toggle-button
|
|
26
26
|
v-if="!props.hideExpand"
|
|
27
|
-
|
|
28
|
-
secondary-icon="collapse"
|
|
27
|
+
:icon="toggleIcon"
|
|
29
28
|
color="on-dark"
|
|
30
29
|
@toggle="handlePlayerSize"
|
|
31
30
|
/>
|
|
@@ -41,6 +40,7 @@
|
|
|
41
40
|
|
|
42
41
|
<script setup lang="ts">
|
|
43
42
|
import {
|
|
43
|
+
computed,
|
|
44
44
|
defineEmits,
|
|
45
45
|
defineProps,
|
|
46
46
|
inject,
|
|
@@ -58,6 +58,10 @@ import ToggleButton from '../../toggle-button.vue';
|
|
|
58
58
|
const { size, fullscreen, changeSize } =
|
|
59
59
|
inject<WtVidstackPlayerSizeProvider>('size');
|
|
60
60
|
|
|
61
|
+
const toggleIcon = computed(() =>
|
|
62
|
+
size.value === ComponentSize.SM ? 'expand' : 'collapse',
|
|
63
|
+
);
|
|
64
|
+
|
|
61
65
|
const props = defineProps<{
|
|
62
66
|
title?: string;
|
|
63
67
|
username?: string;
|
|
@@ -1,52 +1,31 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
ref="toggleButton"
|
|
2
|
+
<div
|
|
4
3
|
class="toggle-button"
|
|
5
|
-
:disabled="props.disabled"
|
|
6
4
|
@click="setToggleState"
|
|
7
5
|
>
|
|
8
6
|
<wt-icon-btn
|
|
9
|
-
:icon="props.
|
|
7
|
+
:icon="props.icon"
|
|
10
8
|
:color="props.color"
|
|
11
9
|
:disabled="props.disabled"
|
|
12
|
-
class="toggle-button__primary"
|
|
13
10
|
/>
|
|
14
|
-
|
|
15
|
-
:icon="props.secondaryIcon"
|
|
16
|
-
:color="props.color"
|
|
17
|
-
:disabled="props.disabled"
|
|
18
|
-
class="toggle-button__secondary"
|
|
19
|
-
/>
|
|
20
|
-
</media-toggle-button>
|
|
11
|
+
</div>
|
|
21
12
|
</template>
|
|
22
13
|
|
|
23
14
|
<script setup lang="ts">
|
|
24
|
-
import { defineEmits, defineProps, type Ref, useTemplateRef } from 'vue';
|
|
25
|
-
|
|
26
15
|
import WtIconBtn from '../../wt-icon-btn/wt-icon-btn.vue';
|
|
27
16
|
|
|
28
17
|
const props = defineProps<{
|
|
29
|
-
|
|
30
|
-
secondaryIcon: string;
|
|
18
|
+
icon: string;
|
|
31
19
|
color?: string;
|
|
32
20
|
disabled?: boolean;
|
|
33
21
|
}>();
|
|
34
22
|
|
|
35
|
-
const toggleButton = useTemplateRef('toggleButton') as Ref<HTMLElement>;
|
|
36
|
-
|
|
37
23
|
const emit = defineEmits<{
|
|
38
|
-
toggle: [
|
|
39
|
-
value: boolean,
|
|
40
|
-
];
|
|
24
|
+
toggle: [];
|
|
41
25
|
}>();
|
|
42
26
|
|
|
43
27
|
const setToggleState = () => {
|
|
44
28
|
if (props.disabled) return;
|
|
45
|
-
emit('toggle'
|
|
29
|
+
emit('toggle');
|
|
46
30
|
};
|
|
47
31
|
</script>
|
|
48
|
-
|
|
49
|
-
<style scoped>.toggle-button[data-pressed] .toggle-button__primary,
|
|
50
|
-
.toggle-button:not([data-pressed]) .toggle-button__secondary {
|
|
51
|
-
display: none;
|
|
52
|
-
}</style>
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
-
|
|
3
|
-
secondaryIcon: string;
|
|
2
|
+
icon: string;
|
|
4
3
|
color?: string;
|
|
5
4
|
disabled?: boolean;
|
|
6
5
|
};
|
|
7
6
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
-
toggle: (
|
|
7
|
+
toggle: () => any;
|
|
9
8
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
-
onToggle?: (
|
|
9
|
+
onToggle?: () => any;
|
|
11
10
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
11
|
declare const _default: typeof __VLS_export;
|
|
13
12
|
export default _default;
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { d as C } from "./index-7wsN-YZu.js";
|
|
2
|
-
import { resolveComponent as a, resolveDirective as g, createElementBlock as c, openBlock as r, withDirectives as v, createVNode as s, withCtx as n, createTextVNode as i, toDisplayString as p, createElementVNode as h, normalizeClass as S, Fragment as k, renderList as D, withModifiers as y } from "vue";
|
|
3
|
-
import { _ as P } from "./install-D_goYtnz.js";
|
|
4
|
-
const H = {
|
|
5
|
-
name: "WtTableColumnSelect",
|
|
6
|
-
model: {
|
|
7
|
-
prop: "headers",
|
|
8
|
-
event: "change"
|
|
9
|
-
},
|
|
10
|
-
/**
|
|
11
|
-
* @emits {Array} change - Fires when headers are changed. Emits mutated headers
|
|
12
|
-
*/
|
|
13
|
-
props: {
|
|
14
|
-
/**
|
|
15
|
-
* Each header should have following schema: { value: String, show: Boolean, text: String }
|
|
16
|
-
* @type {Array}
|
|
17
|
-
* @required
|
|
18
|
-
* @model headers
|
|
19
|
-
*/
|
|
20
|
-
headers: {
|
|
21
|
-
type: Array,
|
|
22
|
-
required: !0,
|
|
23
|
-
description: "Each header should have following schema: { value: String, show: Boolean, text: String }"
|
|
24
|
-
},
|
|
25
|
-
/**
|
|
26
|
-
* Header values to exclude from selection
|
|
27
|
-
* @type {Array}
|
|
28
|
-
* @default []
|
|
29
|
-
*/
|
|
30
|
-
staticHeaders: {
|
|
31
|
-
type: Array,
|
|
32
|
-
default: () => [],
|
|
33
|
-
description: "Header values to exclude from selection"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
emits: [
|
|
37
|
-
"change"
|
|
38
|
-
],
|
|
39
|
-
data: () => ({
|
|
40
|
-
draft: [],
|
|
41
|
-
// headers draft
|
|
42
|
-
isColumnSelectPopup: !1
|
|
43
|
-
}),
|
|
44
|
-
computed: {
|
|
45
|
-
changeableDraft() {
|
|
46
|
-
return this.draft.filter((e) => !this.staticHeaders.includes(e.value)).sort((e, l) => this.shownColLabel(e)?.localeCompare(this.shownColLabel(l)));
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
watch: {
|
|
50
|
-
isColumnSelectPopup: {
|
|
51
|
-
handler() {
|
|
52
|
-
this.fillHeadersDraft();
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
methods: {
|
|
57
|
-
shownColLabel({ text: e, locale: l }) {
|
|
58
|
-
return !e && l ? typeof l == "string" ? this.$t(l) : this.$t(...l) : e;
|
|
59
|
-
},
|
|
60
|
-
openPopup() {
|
|
61
|
-
this.isColumnSelectPopup = !0;
|
|
62
|
-
},
|
|
63
|
-
close() {
|
|
64
|
-
this.isColumnSelectPopup = !1;
|
|
65
|
-
},
|
|
66
|
-
fillHeadersDraft() {
|
|
67
|
-
this.draft = C(this.headers);
|
|
68
|
-
},
|
|
69
|
-
setShownColumns() {
|
|
70
|
-
this.$emit("change", this.draft), this.close();
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}, L = { class: "wt-table-column-select" }, U = { class: "wt-table-column-select__popup-list-wrap" }, x = ["onClickCapture"];
|
|
74
|
-
function B(e, l, E, I, N, t) {
|
|
75
|
-
const m = a("wt-icon-btn"), _ = a("wt-checkbox"), u = a("wt-button"), w = a("wt-popup"), f = g("tooltip");
|
|
76
|
-
return r(), c("div", L, [
|
|
77
|
-
v(s(m, {
|
|
78
|
-
icon: "column-select",
|
|
79
|
-
onClick: t.openPopup
|
|
80
|
-
}, null, 8, ["onClick"]), [
|
|
81
|
-
[f, e.$t("webitelUI.tableColumnSelect.title")]
|
|
82
|
-
]),
|
|
83
|
-
s(w, {
|
|
84
|
-
shown: e.isColumnSelectPopup,
|
|
85
|
-
class: "wt-table-column-select__popup",
|
|
86
|
-
onClose: t.close
|
|
87
|
-
}, {
|
|
88
|
-
title: n(() => [
|
|
89
|
-
i(p(e.$t("webitelUI.tableColumnSelect.title")), 1)
|
|
90
|
-
]),
|
|
91
|
-
main: n(() => [
|
|
92
|
-
h("div", U, [
|
|
93
|
-
h("ul", {
|
|
94
|
-
class: S([{
|
|
95
|
-
"wt-table-column-select__popup-list--md": t.changeableDraft.length > 10 && t.changeableDraft.length <= 20,
|
|
96
|
-
"wt-table-column-select__popup-list--lg": t.changeableDraft.length > 20
|
|
97
|
-
}, "wt-table-column-select__popup-list"])
|
|
98
|
-
}, [
|
|
99
|
-
(r(!0), c(k, null, D(t.changeableDraft, (o, b) => (r(), c("li", {
|
|
100
|
-
key: b,
|
|
101
|
-
class: "wt-table-column-select__popup-item",
|
|
102
|
-
onClickCapture: y((d) => o.show = !o.show, ["prevent"])
|
|
103
|
-
}, [
|
|
104
|
-
s(_, {
|
|
105
|
-
label: t.shownColLabel(o),
|
|
106
|
-
selected: o.show,
|
|
107
|
-
"onUpdate:selected": (d) => o.show = d
|
|
108
|
-
}, null, 8, ["label", "selected", "onUpdate:selected"])
|
|
109
|
-
], 40, x))), 128))
|
|
110
|
-
], 2)
|
|
111
|
-
])
|
|
112
|
-
]),
|
|
113
|
-
actions: n(() => [
|
|
114
|
-
s(u, { onClick: t.setShownColumns }, {
|
|
115
|
-
default: n(() => [
|
|
116
|
-
i(p(e.$t("reusable.add")), 1)
|
|
117
|
-
], void 0, !0),
|
|
118
|
-
_: 1
|
|
119
|
-
}, 8, ["onClick"]),
|
|
120
|
-
s(u, {
|
|
121
|
-
color: "secondary",
|
|
122
|
-
onClick: t.close
|
|
123
|
-
}, {
|
|
124
|
-
default: n(() => [
|
|
125
|
-
i(p(e.$t("reusable.cancel")), 1)
|
|
126
|
-
], void 0, !0),
|
|
127
|
-
_: 1
|
|
128
|
-
}, 8, ["onClick"])
|
|
129
|
-
]),
|
|
130
|
-
_: 1
|
|
131
|
-
}, 8, ["shown", "onClose"])
|
|
132
|
-
]);
|
|
133
|
-
}
|
|
134
|
-
const A = /* @__PURE__ */ P(H, [["render", B], ["__scopeId", "data-v-405c9158"]]);
|
|
135
|
-
export {
|
|
136
|
-
A as default
|
|
137
|
-
};
|