@webitel/ui-sdk 26.4.43 → 26.4.45
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-DU6yeDGn.js → index-B29QAN88.js} +1 -1
- package/dist/{index-D-hoanpz.js → index-CsMcaz0u.js} +1 -1
- package/dist/{install-BuMO14Rb.js → install-C5xKFRc9.js} +36 -36
- package/dist/{isObject-C9OMxPJa.js → isObject-BhReVvbb.js} +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +192 -192
- package/dist/{useVidstackSrc-CNo2sIR4.js → useVidstackSrc-_rF-gU3O.js} +1 -1
- package/dist/{vidstack-Bq6c3Bam-C1Xh6KV8.js → vidstack-Bq6c3Bam-rX2k9SwP.js} +3 -3
- package/dist/{vidstack-D2pY00kU-CklzKnEA.js → vidstack-D2pY00kU-CkOGeeZp.js} +3 -3
- package/dist/{vidstack-DDXt6fpN-cezVOaCC.js → vidstack-DDXt6fpN-DYGWQceO.js} +2 -2
- package/dist/{vidstack-D_-9AA6_-CUn36I0C.js → vidstack-D_-9AA6_-BY4XbHI-.js} +2 -2
- package/dist/{vidstack-DqAw8m9J-kmvNQesV.js → vidstack-DqAw8m9J-JwBdvziH.js} +1 -1
- package/dist/{vidstack-audio-DaEZB6cH.js → vidstack-audio-Yun2Ft-H.js} +2 -2
- package/dist/{vidstack-dash-Dfp9eITz.js → vidstack-dash-u2mEPhH4.js} +4 -4
- package/dist/{vidstack-google-cast-1ZEtw8UJ.js → vidstack-google-cast-BAtFstog.js} +4 -4
- package/dist/{vidstack-hls-D9snNDIQ.js → vidstack-hls-CIrbdAl1.js} +4 -4
- package/dist/{vidstack-video-CAC4Bc1B.js → vidstack-video-kGR0RM6h.js} +3 -3
- package/dist/{vidstack-vimeo-BQghJZiO.js → vidstack-vimeo-D-twj4RR.js} +4 -4
- package/dist/{vidstack-youtube-DAR2SWff.js → vidstack-youtube-C9ELPiVF.js} +3 -3
- package/dist/{wt-action-bar-Bv_6f27E.js → wt-action-bar-wZTEzUyq.js} +1 -1
- package/dist/{wt-button-select-Dsac5uv0.js → wt-button-select-_Otb__NY.js} +1 -1
- package/dist/{wt-chat-emoji-6IZXyyQv.js → wt-chat-emoji-B_m4NMsW.js} +2 -2
- package/dist/{wt-confirm-dialog-DSHGk9yZ.js → wt-confirm-dialog-BRN2RUS_.js} +1 -1
- package/dist/{wt-context-menu-Cmweiyx7.js → wt-context-menu-H3PULbZ-.js} +1 -1
- package/dist/{wt-copy-action-DkFe3s1N.js → wt-copy-action-jHeKgw7I.js} +1 -1
- package/dist/{wt-datepicker-DnPRLQn6.js → wt-datepicker-BQLbUAwp.js} +1 -1
- package/dist/{wt-display-chip-items-OYNhWs0j.js → wt-display-chip-items-BHzmoLdD.js} +1 -1
- package/dist/{wt-dual-panel-CSFS60LW.js → wt-dual-panel-DkTY0udE.js} +1 -1
- package/dist/{wt-dummy-DeqGCW4M.js → wt-dummy-CSy2l8r-.js} +1 -1
- package/dist/{wt-error-page-Dh0I10zQ.js → wt-error-page-C1EXQCuO.js} +1 -1
- package/dist/{wt-expansion-card-B9vppnAs.js → wt-expansion-card-BLiWEIRE.js} +1 -1
- package/dist/{wt-expansion-panel-q1EKvX60.js → wt-expansion-panel-DxEt8JYl.js} +1 -1
- package/dist/{wt-filters-panel-wrapper-D5HvX_tw.js → wt-filters-panel-wrapper-DBSBv5JQ.js} +1 -1
- package/dist/{wt-galleria-BLFQaNcH.js → wt-galleria-CQVb6FG8.js} +1 -1
- package/dist/{wt-inline-add-panel-C_95BnoB.js → wt-inline-add-panel-DVE2c032.js} +6 -6
- package/dist/{wt-navigation-menu-C_BZoDfW.js → wt-navigation-menu-B7St4Ebu.js} +1 -1
- package/dist/{wt-notifications-bar-Bs7M3NiK.js → wt-notifications-bar-aXlO-3yh.js} +2 -2
- package/dist/{wt-pagination-DGnlfGA5.js → wt-pagination-BvNVluV2.js} +1 -1
- package/dist/{wt-player-WCgu0T_8.js → wt-player-BNRxGbky.js} +2 -2
- package/dist/{wt-screen-recordings-action-DbFth7-X.js → wt-screen-recordings-action-mMmrwxK3.js} +1 -1
- package/dist/{wt-search-bar-Bjkc3yw0.js → wt-search-bar-Crac4P_w.js} +1 -1
- package/dist/{wt-selection-popup-DY-meZwy.js → wt-selection-popup-vt0Q_WxC.js} +1 -1
- package/dist/{wt-start-page-D5RK31s-.js → wt-start-page-Bwv7DQlq.js} +1 -1
- package/dist/{wt-status-select-Dpy8ZfIm.js → wt-status-select-X2Dvl9GY.js} +1 -1
- package/dist/{wt-stepper-BEGLgJBo.js → wt-stepper-BYiw9cJ0.js} +1 -1
- package/dist/{wt-table-Cjz5u3eQ.js → wt-table-C7jfNUe1.js} +1 -1
- package/dist/{wt-table-actions-C4QGzxzB.js → wt-table-actions-BjbyUxeI.js} +1 -1
- package/dist/wt-table-column-select-DOiMYkBj.js +118 -0
- package/dist/{wt-tabs-xbB8lvfR.js → wt-tabs-fp7CE3Ah.js} +1 -1
- package/dist/{wt-tags-input-1ajWfEZG.js → wt-tags-input-rO50fkT_.js} +2 -2
- package/dist/{wt-timepicker-BOM2_VaK.js → wt-timepicker-BfKQ-4J_.js} +1 -1
- package/dist/{wt-tree-Zh_i9ohN.js → wt-tree-K0k8DwO8.js} +2 -2
- package/dist/{wt-tree-table-Bz3NtNR-.js → wt-tree-table-zK1q2bpc.js} +1 -1
- package/dist/{wt-type-extension-value-input-CIaO836W.js → wt-type-extension-value-input-Cu5QLOqu.js} +2 -2
- package/dist/{wt-vidstack-player-DL-84dHQ.js → wt-vidstack-player-CAcoio5I.js} +10 -10
- package/package.json +1 -1
- package/src/components/wt-inline-add-panel/wt-inline-add-panel.vue +1 -1
- package/src/components/wt-table-column-select/_internals/assets/empty-dark.svg +175 -0
- package/src/components/wt-table-column-select/_internals/assets/empty-light.svg +175 -0
- package/src/components/wt-table-column-select/wt-table-column-select.vue +88 -87
- package/types/components/wt-table-column-select/wt-table-column-select.vue.d.ts +17 -46
- package/dist/wt-table-column-select-CwNp9HcZ.js +0 -150
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
</wt-input-text>
|
|
28
28
|
<div class="wt-table-column-select__popup-list-wrap">
|
|
29
29
|
<ul
|
|
30
|
+
v-if="changeableDraft.length"
|
|
30
31
|
:class="{
|
|
31
32
|
'wt-table-column-select__popup-list--md':
|
|
32
33
|
changeableDraft.length > 10 && changeableDraft.length <= 20,
|
|
@@ -48,6 +49,11 @@
|
|
|
48
49
|
/>
|
|
49
50
|
</li>
|
|
50
51
|
</ul>
|
|
52
|
+
<wt-empty
|
|
53
|
+
v-else
|
|
54
|
+
:image="darkMode ? EmptyImageDark : EmptyImageLight"
|
|
55
|
+
:title="$t('webitelUI.empty.text.filters')"
|
|
56
|
+
/>
|
|
51
57
|
</div>
|
|
52
58
|
</template>
|
|
53
59
|
<template #actions>
|
|
@@ -65,98 +71,92 @@
|
|
|
65
71
|
</div>
|
|
66
72
|
</template>
|
|
67
73
|
|
|
68
|
-
<script>
|
|
74
|
+
<script setup lang="ts">
|
|
69
75
|
import deepCopy from 'deep-copy';
|
|
76
|
+
import { computed, inject, ref, watch } from 'vue';
|
|
77
|
+
import { useI18n } from 'vue-i18n';
|
|
70
78
|
|
|
71
|
-
|
|
72
|
-
|
|
79
|
+
import EmptyImageDark from './_internals/assets/empty-dark.svg';
|
|
80
|
+
import EmptyImageLight from './_internals/assets/empty-light.svg';
|
|
73
81
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
*/
|
|
81
|
-
props: {
|
|
82
|
-
/**
|
|
83
|
-
* Each header should have following schema: { value: String, show: Boolean, text: String }
|
|
84
|
-
* @type {Array}
|
|
85
|
-
* @required
|
|
86
|
-
* @model headers
|
|
87
|
-
*/
|
|
88
|
-
headers: {
|
|
89
|
-
type: Array,
|
|
90
|
-
required: true,
|
|
91
|
-
description:
|
|
92
|
-
'Each header should have following schema: { value: String, show: Boolean, text: String }',
|
|
93
|
-
},
|
|
94
|
-
/**
|
|
95
|
-
* Header values to exclude from selection
|
|
96
|
-
* @type {Array}
|
|
97
|
-
* @default []
|
|
98
|
-
*/
|
|
99
|
-
staticHeaders: {
|
|
100
|
-
type: Array,
|
|
101
|
-
default: () => [],
|
|
102
|
-
description: 'Header values to exclude from selection',
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
emits: [
|
|
106
|
-
'change',
|
|
107
|
-
],
|
|
108
|
-
data: () => ({
|
|
109
|
-
draft: [], // headers draft
|
|
110
|
-
search: '',
|
|
111
|
-
isColumnSelectPopup: false,
|
|
112
|
-
}),
|
|
113
|
-
computed: {
|
|
114
|
-
changeableDraft() {
|
|
115
|
-
return this.draft
|
|
116
|
-
.filter(
|
|
117
|
-
(header) =>
|
|
118
|
-
!this.staticHeaders.includes(header.value) &&
|
|
119
|
-
this.shownColLabel(header)
|
|
120
|
-
?.toLowerCase()
|
|
121
|
-
.includes(this.search?.toLowerCase()),
|
|
122
|
-
)
|
|
123
|
-
.sort((a, b) => {
|
|
124
|
-
return this.shownColLabel(a)?.localeCompare(this.shownColLabel(b));
|
|
125
|
-
// sorting headers for alphabet just in popup
|
|
126
|
-
});
|
|
127
|
-
},
|
|
128
|
-
},
|
|
82
|
+
interface Header {
|
|
83
|
+
value: string;
|
|
84
|
+
show: boolean;
|
|
85
|
+
text?: string;
|
|
86
|
+
locale?: string | string[];
|
|
87
|
+
}
|
|
129
88
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
methods: {
|
|
138
|
-
shownColLabel({ text, locale }) {
|
|
139
|
-
if (!text && locale)
|
|
140
|
-
return typeof locale === 'string'
|
|
141
|
-
? this.$t(locale)
|
|
142
|
-
: this.$t(...locale);
|
|
143
|
-
return text;
|
|
144
|
-
},
|
|
145
|
-
openPopup() {
|
|
146
|
-
this.isColumnSelectPopup = true;
|
|
147
|
-
},
|
|
148
|
-
close() {
|
|
149
|
-
this.isColumnSelectPopup = false;
|
|
150
|
-
},
|
|
151
|
-
fillHeadersDraft() {
|
|
152
|
-
this.draft = deepCopy(this.headers);
|
|
153
|
-
},
|
|
154
|
-
setShownColumns() {
|
|
155
|
-
this.$emit('change', this.draft);
|
|
156
|
-
this.close();
|
|
157
|
-
},
|
|
89
|
+
const props = withDefaults(
|
|
90
|
+
defineProps<{
|
|
91
|
+
headers: Header[];
|
|
92
|
+
staticHeaders?: string[];
|
|
93
|
+
}>(),
|
|
94
|
+
{
|
|
95
|
+
staticHeaders: () => [],
|
|
158
96
|
},
|
|
159
|
-
|
|
97
|
+
);
|
|
98
|
+
|
|
99
|
+
const emit = defineEmits<{
|
|
100
|
+
change: [
|
|
101
|
+
headers: Header[],
|
|
102
|
+
];
|
|
103
|
+
}>();
|
|
104
|
+
|
|
105
|
+
const { t } = useI18n();
|
|
106
|
+
|
|
107
|
+
const darkMode = inject('darkMode');
|
|
108
|
+
|
|
109
|
+
const draft = ref<Header[]>([]);
|
|
110
|
+
const search = ref('');
|
|
111
|
+
const isColumnSelectPopup = ref(false);
|
|
112
|
+
|
|
113
|
+
function shownColLabel({ text, locale }: Header): string | undefined {
|
|
114
|
+
if (!text && locale)
|
|
115
|
+
return typeof locale === 'string'
|
|
116
|
+
? t(locale)
|
|
117
|
+
: t(
|
|
118
|
+
...(locale as [
|
|
119
|
+
string,
|
|
120
|
+
...unknown[],
|
|
121
|
+
]),
|
|
122
|
+
);
|
|
123
|
+
return text;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
const changeableDraft = computed(() =>
|
|
127
|
+
draft.value
|
|
128
|
+
.filter(
|
|
129
|
+
(header) =>
|
|
130
|
+
!props.staticHeaders.includes(header.value) &&
|
|
131
|
+
shownColLabel(header)
|
|
132
|
+
?.toLowerCase()
|
|
133
|
+
.includes(search.value?.toLowerCase()),
|
|
134
|
+
)
|
|
135
|
+
.sort(
|
|
136
|
+
(a, b) => shownColLabel(a)?.localeCompare(shownColLabel(b) ?? '') ?? 0,
|
|
137
|
+
),
|
|
138
|
+
);
|
|
139
|
+
|
|
140
|
+
function fillHeadersDraft() {
|
|
141
|
+
draft.value = deepCopy(props.headers);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
function openPopup() {
|
|
145
|
+
isColumnSelectPopup.value = true;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
function close() {
|
|
149
|
+
isColumnSelectPopup.value = false;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
function setShownColumns() {
|
|
153
|
+
emit('change', draft.value);
|
|
154
|
+
close();
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
watch(isColumnSelectPopup, () => {
|
|
158
|
+
fillHeadersDraft();
|
|
159
|
+
});
|
|
160
160
|
</script>
|
|
161
161
|
|
|
162
162
|
<style scoped>
|
|
@@ -171,6 +171,7 @@ export default {
|
|
|
171
171
|
|
|
172
172
|
.wt-table-column-select__popup-list-wrap {
|
|
173
173
|
height: 400px;
|
|
174
|
+
display: flex;
|
|
174
175
|
}
|
|
175
176
|
|
|
176
177
|
.wt-table-column-select__popup-list {
|
|
@@ -1,48 +1,19 @@
|
|
|
1
|
+
interface Header {
|
|
2
|
+
value: string;
|
|
3
|
+
show: boolean;
|
|
4
|
+
text?: string;
|
|
5
|
+
locale?: string | string[];
|
|
6
|
+
}
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
headers: Header[];
|
|
9
|
+
staticHeaders?: string[];
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
change: (headers: Header[]) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onChange?: (headers: Header[]) => any;
|
|
15
|
+
}>, {
|
|
16
|
+
staticHeaders: string[];
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1
18
|
declare const _default: typeof __VLS_export;
|
|
2
19
|
export default _default;
|
|
3
|
-
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
-
/**
|
|
5
|
-
* Each header should have following schema: { value: String, show: Boolean, text: String }
|
|
6
|
-
* @type {Array}
|
|
7
|
-
* @required
|
|
8
|
-
* @model headers
|
|
9
|
-
*/
|
|
10
|
-
headers: any[];
|
|
11
|
-
/**
|
|
12
|
-
* Header values to exclude from selection
|
|
13
|
-
* @type {Array}
|
|
14
|
-
* @default []
|
|
15
|
-
*/
|
|
16
|
-
staticHeaders: any[];
|
|
17
|
-
}>, {}, {
|
|
18
|
-
draft: any[];
|
|
19
|
-
search: string;
|
|
20
|
-
isColumnSelectPopup: boolean;
|
|
21
|
-
}, {
|
|
22
|
-
changeableDraft(): any[];
|
|
23
|
-
}, {
|
|
24
|
-
shownColLabel({ text, locale }: {
|
|
25
|
-
text: any;
|
|
26
|
-
locale: any;
|
|
27
|
-
}): any;
|
|
28
|
-
openPopup(): void;
|
|
29
|
-
close(): void;
|
|
30
|
-
fillHeadersDraft(): void;
|
|
31
|
-
setShownColumns(): void;
|
|
32
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
-
/**
|
|
34
|
-
* Each header should have following schema: { value: String, show: Boolean, text: String }
|
|
35
|
-
* @type {Array}
|
|
36
|
-
* @required
|
|
37
|
-
* @model headers
|
|
38
|
-
*/
|
|
39
|
-
headers: any[];
|
|
40
|
-
/**
|
|
41
|
-
* Header values to exclude from selection
|
|
42
|
-
* @type {Array}
|
|
43
|
-
* @default []
|
|
44
|
-
*/
|
|
45
|
-
staticHeaders: any[];
|
|
46
|
-
}>> & Readonly<{
|
|
47
|
-
onChange?: (...args: any[]) => any;
|
|
48
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { d as v } from "./index-D-hoanpz.js";
|
|
2
|
-
import { resolveComponent as n, resolveDirective as S, createElementBlock as c, openBlock as r, withDirectives as k, createVNode as s, withCtx as a, createTextVNode as i, toDisplayString as p, createElementVNode as h, normalizeClass as D, Fragment as y, renderList as L, withModifiers as P } from "vue";
|
|
3
|
-
import { _ as H } from "./install-BuMO14Rb.js";
|
|
4
|
-
const U = {
|
|
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
|
-
search: "",
|
|
43
|
-
isColumnSelectPopup: !1
|
|
44
|
-
}),
|
|
45
|
-
computed: {
|
|
46
|
-
changeableDraft() {
|
|
47
|
-
return this.draft.filter(
|
|
48
|
-
(e) => !this.staticHeaders.includes(e.value) && this.shownColLabel(e)?.toLowerCase().includes(this.search?.toLowerCase())
|
|
49
|
-
).sort((e, t) => this.shownColLabel(e)?.localeCompare(this.shownColLabel(t)));
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
watch: {
|
|
53
|
-
isColumnSelectPopup: {
|
|
54
|
-
handler() {
|
|
55
|
-
this.fillHeadersDraft();
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
methods: {
|
|
60
|
-
shownColLabel({ text: e, locale: t }) {
|
|
61
|
-
return !e && t ? typeof t == "string" ? this.$t(t) : this.$t(...t) : e;
|
|
62
|
-
},
|
|
63
|
-
openPopup() {
|
|
64
|
-
this.isColumnSelectPopup = !0;
|
|
65
|
-
},
|
|
66
|
-
close() {
|
|
67
|
-
this.isColumnSelectPopup = !1;
|
|
68
|
-
},
|
|
69
|
-
fillHeadersDraft() {
|
|
70
|
-
this.draft = v(this.headers);
|
|
71
|
-
},
|
|
72
|
-
setShownColumns() {
|
|
73
|
-
this.$emit("change", this.draft), this.close();
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}, x = { class: "wt-table-column-select" }, V = { class: "wt-table-column-select__popup-list-wrap" }, B = ["onClickCapture"];
|
|
77
|
-
function E(e, t, I, N, T, l) {
|
|
78
|
-
const m = n("wt-icon-btn"), _ = n("wt-icon"), w = n("wt-input-text"), f = n("wt-checkbox"), u = n("wt-button"), C = n("wt-popup"), b = S("tooltip");
|
|
79
|
-
return r(), c("div", x, [
|
|
80
|
-
k(s(m, {
|
|
81
|
-
icon: "column-select",
|
|
82
|
-
onClick: l.openPopup
|
|
83
|
-
}, null, 8, ["onClick"]), [
|
|
84
|
-
[b, e.$t("webitelUI.tableColumnSelect.title")]
|
|
85
|
-
]),
|
|
86
|
-
s(C, {
|
|
87
|
-
shown: e.isColumnSelectPopup,
|
|
88
|
-
class: "wt-table-column-select__popup",
|
|
89
|
-
onClose: l.close
|
|
90
|
-
}, {
|
|
91
|
-
title: a(() => [
|
|
92
|
-
i(p(e.$t("webitelUI.tableColumnSelect.title")), 1)
|
|
93
|
-
]),
|
|
94
|
-
main: a(() => [
|
|
95
|
-
s(w, {
|
|
96
|
-
class: "wt-table-column-select__popup-search",
|
|
97
|
-
"model-value": e.search,
|
|
98
|
-
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.search = o)
|
|
99
|
-
}, {
|
|
100
|
-
prefix: a(() => [
|
|
101
|
-
s(_, { icon: "search" })
|
|
102
|
-
]),
|
|
103
|
-
_: 1
|
|
104
|
-
}, 8, ["model-value"]),
|
|
105
|
-
h("div", V, [
|
|
106
|
-
h("ul", {
|
|
107
|
-
class: D([{
|
|
108
|
-
"wt-table-column-select__popup-list--md": l.changeableDraft.length > 10 && l.changeableDraft.length <= 20,
|
|
109
|
-
"wt-table-column-select__popup-list--lg": l.changeableDraft.length > 20
|
|
110
|
-
}, "wt-table-column-select__popup-list"])
|
|
111
|
-
}, [
|
|
112
|
-
(r(!0), c(y, null, L(l.changeableDraft, (o, g) => (r(), c("li", {
|
|
113
|
-
key: g,
|
|
114
|
-
class: "wt-table-column-select__popup-item",
|
|
115
|
-
onClickCapture: P((d) => o.show = !o.show, ["prevent"])
|
|
116
|
-
}, [
|
|
117
|
-
s(f, {
|
|
118
|
-
label: l.shownColLabel(o),
|
|
119
|
-
selected: o.show,
|
|
120
|
-
"onUpdate:selected": (d) => o.show = d
|
|
121
|
-
}, null, 8, ["label", "selected", "onUpdate:selected"])
|
|
122
|
-
], 40, B))), 128))
|
|
123
|
-
], 2)
|
|
124
|
-
])
|
|
125
|
-
]),
|
|
126
|
-
actions: a(() => [
|
|
127
|
-
s(u, { onClick: l.setShownColumns }, {
|
|
128
|
-
default: a(() => [
|
|
129
|
-
i(p(e.$t("reusable.add")), 1)
|
|
130
|
-
], void 0, !0),
|
|
131
|
-
_: 1
|
|
132
|
-
}, 8, ["onClick"]),
|
|
133
|
-
s(u, {
|
|
134
|
-
color: "secondary",
|
|
135
|
-
onClick: l.close
|
|
136
|
-
}, {
|
|
137
|
-
default: a(() => [
|
|
138
|
-
i(p(e.$t("reusable.cancel")), 1)
|
|
139
|
-
], void 0, !0),
|
|
140
|
-
_: 1
|
|
141
|
-
}, 8, ["onClick"])
|
|
142
|
-
]),
|
|
143
|
-
_: 1
|
|
144
|
-
}, 8, ["shown", "onClose"])
|
|
145
|
-
]);
|
|
146
|
-
}
|
|
147
|
-
const z = /* @__PURE__ */ H(U, [["render", E], ["__scopeId", "data-v-1a2815ed"]]);
|
|
148
|
-
export {
|
|
149
|
-
z as default
|
|
150
|
-
};
|