@webitel/ui-sdk 26.4.59 → 26.4.60
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-4AObAMrT.js → index-2RuzTRCZ.js} +1 -1
- package/dist/{index-B2ahqrSa.js → index-FB11lRZm.js} +1 -1
- package/dist/{install-B0iOKX0v.js → install-BTw4h6La.js} +37 -37
- package/dist/{isObject-CaHCOTs0.js → isObject-BFrSZfip.js} +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +42 -42
- package/dist/{useVidstackSrc-BVksdC1Q.js → useVidstackSrc-DggVBhQy.js} +1 -1
- package/dist/{vidstack-Bq6c3Bam-DJ77rwW2.js → vidstack-Bq6c3Bam-Brto8BVf.js} +3 -3
- package/dist/{vidstack-D2pY00kU-DSXpPJAP.js → vidstack-D2pY00kU-Cpy-wek9.js} +3 -3
- package/dist/{vidstack-DDXt6fpN-DTaedTya.js → vidstack-DDXt6fpN-BqFmvH0M.js} +2 -2
- package/dist/{vidstack-D_-9AA6_-SN2-peBz.js → vidstack-D_-9AA6_-DJIX4G2R.js} +2 -2
- package/dist/{vidstack-DqAw8m9J-CGZ2CyEH.js → vidstack-DqAw8m9J-DBBU_lk_.js} +1 -1
- package/dist/{vidstack-audio-o-VP4-ih.js → vidstack-audio-C4CyIInn.js} +2 -2
- package/dist/{vidstack-dash-CfHfzOta.js → vidstack-dash-uK2dDz8T.js} +4 -4
- package/dist/{vidstack-google-cast-CYTuybDG.js → vidstack-google-cast-C1HYF_2j.js} +4 -4
- package/dist/{vidstack-hls-XpsWuYAn.js → vidstack-hls-Bn3hnf9h.js} +4 -4
- package/dist/{vidstack-video-BL25jcm9.js → vidstack-video-Boo7uoZI.js} +3 -3
- package/dist/{vidstack-vimeo-GP7sxbnF.js → vidstack-vimeo-PNsaLSEO.js} +4 -4
- package/dist/{vidstack-youtube-nWpRszo5.js → vidstack-youtube-CtY98HNF.js} +3 -3
- package/dist/{wt-action-bar-Bh4_05bu.js → wt-action-bar-DQqNd2mj.js} +1 -1
- package/dist/{wt-button-select-X-ShYhT7.js → wt-button-select-CzWp6E7X.js} +1 -1
- package/dist/{wt-call-media-action-gHRi2wLG.js → wt-call-media-action-BMKcEg3T.js} +1 -1
- package/dist/{wt-chat-emoji-zXNZdzpq.js → wt-chat-emoji-CPpRiG3z.js} +2 -2
- package/dist/{wt-confirm-dialog-CDh-yMD8.js → wt-confirm-dialog-BQ_tHChS.js} +1 -1
- package/dist/{wt-context-menu-CcFkkEjZ.js → wt-context-menu-D9A52yob.js} +1 -1
- package/dist/{wt-copy-action-Ii6iRvn5.js → wt-copy-action-SgnK45r-.js} +1 -1
- package/dist/{wt-datepicker-BmpoXoG1.js → wt-datepicker-Cpmte3rg.js} +1 -1
- package/dist/{wt-display-chip-items-B_-jNxBL.js → wt-display-chip-items-DL5Q6Obr.js} +1 -1
- package/dist/{wt-dual-panel-B3YFzVyX.js → wt-dual-panel-Cbp3-6Fz.js} +1 -1
- package/dist/{wt-dummy-BCaleMs_.js → wt-dummy-CQoomGSQ.js} +1 -1
- package/dist/{wt-error-page-BklEfHeX.js → wt-error-page-ND0BquL3.js} +1 -1
- package/dist/{wt-expansion-card-DKZ9wZFl.js → wt-expansion-card-HYWe9uzx.js} +1 -1
- package/dist/{wt-expansion-panel-XpKYa9a5.js → wt-expansion-panel-CDn9iF8y.js} +1 -1
- package/dist/{wt-filters-panel-wrapper-CsS1gC7U.js → wt-filters-panel-wrapper-DRzlDKj3.js} +1 -1
- package/dist/{wt-galleria-tQj633qr.js → wt-galleria-B_9-n0Iv.js} +1 -1
- package/dist/{wt-inline-add-panel-DkO0Rpwn.js → wt-inline-add-panel-D4vbb7DT.js} +1 -1
- package/dist/{wt-navigation-menu-CUqZUgHl.js → wt-navigation-menu-CoABCwJg.js} +1 -1
- package/dist/{wt-notifications-bar-Do3j7V_z.js → wt-notifications-bar-BHwh2Uhl.js} +2 -2
- package/dist/{wt-pagination-ckWVcP9K.js → wt-pagination-CaBK5kAI.js} +1 -1
- package/dist/{wt-player-Vog1SmVh.js → wt-player-CFAv3Bth.js} +2 -2
- package/dist/{wt-screen-recordings-action-BfkNm9Xz.js → wt-screen-recordings-action-Bkn5QjBL.js} +1 -1
- package/dist/{wt-search-bar-DUwcrW9O.js → wt-search-bar-86T7O7I2.js} +1 -1
- package/dist/{wt-selection-popup-DA-3syzZ.js → wt-selection-popup-ZJ0J-VDP.js} +1 -1
- package/dist/{wt-start-page-B25F20pv.js → wt-start-page-CbQDXOdl.js} +1 -1
- package/dist/{wt-status-select-DHlo8nJg.js → wt-status-select-DwWcH1x9.js} +1 -1
- package/dist/{wt-stepper-tAlH7GDw.js → wt-stepper-fv8Im1Gl.js} +1 -1
- package/dist/{wt-table-DKfEuw12.js → wt-table-Clbp4lq3.js} +87 -84
- package/dist/{wt-table-actions-CebP5mD2.js → wt-table-actions-DiyOBZhY.js} +1 -1
- package/dist/{wt-table-column-select-ClA_A3dE.js → wt-table-column-select-D3oCCDNW.js} +2 -2
- package/dist/{wt-tabs-DIovQBiL.js → wt-tabs-B8eLeduC.js} +1 -1
- package/dist/{wt-tags-input-Dd94IUJV.js → wt-tags-input-CbaLK4J8.js} +2 -2
- package/dist/{wt-timepicker-CTnvn5Da.js → wt-timepicker-Dwf0Hdhv.js} +1 -1
- package/dist/{wt-tree-DVAY3hsy.js → wt-tree-CwK_7_2I.js} +2 -2
- package/dist/{wt-tree-table-BPB9NyIW.js → wt-tree-table-DxhPCn7z.js} +1 -1
- package/dist/{wt-type-extension-value-input-CenH0oDA.js → wt-type-extension-value-input-BcH58urY.js} +2 -2
- package/dist/{wt-vidstack-player-6aMihcK5.js → wt-vidstack-player-BpmqdjlG.js} +10 -10
- package/package.json +1 -1
- package/src/components/wt-table/wt-table.vue +14 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent as r, createElementBlock as l, openBlock as o, normalizeClass as i, createElementVNode as s, renderSlot as c, createVNode as p } from "vue";
|
|
2
|
-
import { _ as d } from "./install-
|
|
2
|
+
import { _ as d } from "./install-BTw4h6La.js";
|
|
3
3
|
const f = {
|
|
4
4
|
name: "FiltersPanelWrapper",
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as k, onMounted as P, onUnmounted as D, useAttrs as Z, computed as $, resolveComponent as w, createBlock as A, openBlock as y, mergeProps as j, unref as i, withCtx as s, createVNode as a, createTextVNode as x, toDisplayString as g, createElementVNode as m, renderSlot as J, defineComponent as K, mergeModels as B, useModel as S, watch as F, nextTick as Q, createElementBlock as L, Fragment as W, createCommentVNode as q, normalizeClass as M, withDirectives as X, vShow as Y } from "vue";
|
|
2
|
-
import { _ as ee, B as te } from "./install-
|
|
2
|
+
import { _ as ee, B as te } from "./install-BTw4h6La.js";
|
|
3
3
|
const le = () => {
|
|
4
4
|
const e = k(!1), c = () => {
|
|
5
5
|
e.value ? l() : v();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as a, resolveComponent as r, createElementBlock as m, openBlock as p, withModifiers as u, normalizeClass as _, renderSlot as f, createElementVNode as b, createVNode as i } from "vue";
|
|
2
|
-
import { _ as w } from "./install-
|
|
2
|
+
import { _ as w } from "./install-BTw4h6La.js";
|
|
3
3
|
const k = { class: "wt-inline-add-panel__actions" }, v = /* @__PURE__ */ a({
|
|
4
4
|
__name: "wt-inline-add-panel",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent as h, createElementBlock as l, openBlock as c, Fragment as w, renderList as b, createElementVNode as p, withDirectives as N, normalizeClass as C, createVNode as _, createTextVNode as k, toDisplayString as $, renderSlot as S, vShow as E, withCtx as A, ref as L, computed as v } from "vue";
|
|
2
|
-
import { _ as g } from "./install-
|
|
2
|
+
import { _ as g } from "./install-BTw4h6La.js";
|
|
3
3
|
const V = { class: "nav-menu__category nav-menu-lvl-1" }, B = ["onClick"], D = {
|
|
4
4
|
__name: "nav-menu-lvl-1",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as p, e as _ } from "./isObject-
|
|
1
|
+
import { i as p, e as _ } from "./isObject-BFrSZfip.js";
|
|
2
2
|
import { resolveComponent as v, createElementBlock as d, openBlock as c, createVNode as B, TransitionGroup as $, withCtx as w, Fragment as g, renderList as x, createBlock as N, createTextVNode as b, toDisplayString as y } from "vue";
|
|
3
|
-
import { _ as k } from "./install-
|
|
3
|
+
import { _ as k } from "./install-BTw4h6La.js";
|
|
4
4
|
const C = (t) => p(t) && (t.entity || t.module), i = (t) => (o) => (...n) => {
|
|
5
5
|
if (C(n[0])) {
|
|
6
6
|
const u = n[0], { app: f = t, entity: s = "", module: r = "" } = u, e = /* @__PURE__ */ new Date(), a = window?.location?.href || "non-browser env";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as u, D as h } from "./install-
|
|
1
|
+
import { _ as u, D as h } from "./install-BTw4h6La.js";
|
|
2
2
|
import { resolveComponent as r, resolveDirective as g, createElementBlock as m, openBlock as z, createElementVNode as o, createVNode as a, toDisplayString as b, withDirectives as d } from "vue";
|
|
3
3
|
const t = 10, f = {
|
|
4
4
|
name: "WtPagination",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveComponent as w, createElementBlock as l, openBlock as t, createVNode as o, defineComponent as p, toRefs as k, unref as z, normalizeClass as C, createElementVNode as _, createBlock as y, createCommentVNode as u } from "vue";
|
|
2
|
-
import { u as E, T as x } from "./useVidstackSrc-
|
|
3
|
-
import { _ as i, E as f } from "./install-
|
|
2
|
+
import { u as E, T as x } from "./useVidstackSrc-DggVBhQy.js";
|
|
3
|
+
import { _ as i, E as f } from "./install-BTw4h6La.js";
|
|
4
4
|
import { _ as b } from "./wt-slider.vue_vue_type_script_setup_true_lang-DlaRDHxo.js";
|
|
5
5
|
const S = {}, V = { class: "mute-button" };
|
|
6
6
|
function M(n, d) {
|
package/dist/{wt-screen-recordings-action-BfkNm9Xz.js → wt-screen-recordings-action-Bkn5QjBL.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as x, computed as h, resolveComponent as i, createElementBlock as C, openBlock as r, createVNode as a, createElementVNode as p, withCtx as l, createTextVNode as k, toDisplayString as _, createBlock as y, createCommentVNode as E, unref as S } from "vue";
|
|
2
2
|
import { E as m } from "./engineCallFileType-yaadA7-2.js";
|
|
3
3
|
import { E as T } from "./displayText-Cbh4IOfM.js";
|
|
4
|
-
import { _ as B } from "./install-
|
|
4
|
+
import { _ as B } from "./install-BTw4h6La.js";
|
|
5
5
|
const N = { class: "wt-screen-recordings-action" }, V = { class: "wt-screen-recordings-action__option" }, F = /* @__PURE__ */ x({
|
|
6
6
|
__name: "wt-screen-recordings-action",
|
|
7
7
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as O, toRefs as $, computed as _, resolveComponent as o, resolveDirective as A, createBlock as s, openBlock as d, unref as a, normalizeClass as E, createSlots as U, withCtx as n, createVNode as p, createElementVNode as j, createCommentVNode as m, renderSlot as z, createTextVNode as K, toDisplayString as W, withDirectives as H } from "vue";
|
|
2
|
-
import { z as P, D as R, _ as T } from "./install-
|
|
2
|
+
import { z as P, D as R, _ as T } from "./install-BTw4h6La.js";
|
|
3
3
|
const q = { class: "wt-search-bar__icon-controls" }, F = /* @__PURE__ */ O({
|
|
4
4
|
__name: "wt-search-bar",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent as i, resolveDirective as $, createBlock as r, openBlock as t, mergeProps as x, withCtx as c, createVNode as f, createTextVNode as a, toDisplayString as s, unref as w, createElementVNode as h, renderSlot as k, createElementBlock as d, Fragment as z, renderList as D, normalizeClass as E, createCommentVNode as p, withDirectives as I } from "vue";
|
|
2
|
-
import { _ as O, B as P } from "./install-
|
|
2
|
+
import { _ as O, B as P } from "./install-BTw4h6La.js";
|
|
3
3
|
const j = { class: "wt-selection-popup__options" }, A = ["onClick"], F = { class: "wt-selection-popup__item-header typo-subtitle-2" }, L = {
|
|
4
4
|
key: 1,
|
|
5
5
|
class: "popup-options__item-text"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject as y, resolveComponent as _, createElementBlock as d, openBlock as a, createElementVNode as o, createBlock as u, createCommentVNode as v, createTextVNode as g, toDisplayString as l, createVNode as N, withCtx as f, defineComponent as k, provide as w, computed as m, Fragment as E, renderList as S } from "vue";
|
|
2
|
-
import { N as n, _ as p } from "./install-
|
|
2
|
+
import { N as n, _ as p } from "./install-BTw4h6La.js";
|
|
3
3
|
n.env.NODE_ENV;
|
|
4
4
|
n.env.NODE_ENV;
|
|
5
5
|
n.env.NODE_ENV;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent as u, createBlock as d, openBlock as f, withCtx as c, createVNode as i } from "vue";
|
|
2
|
-
import { _ as h } from "./install-
|
|
2
|
+
import { _ as h } from "./install-BTw4h6La.js";
|
|
3
3
|
const s = Object.freeze({
|
|
4
4
|
ONLINE: "online",
|
|
5
5
|
PAUSE: "pause",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as i, resolveComponent as w, createElementBlock as s, openBlock as p, createElementVNode as r, renderSlot as n, Fragment as h, renderList as f, createCommentVNode as y, createVNode as S, normalizeClass as C, withCtx as N, createTextVNode as V, toDisplayString as d } from "vue";
|
|
2
|
-
import { _ as k } from "./install-
|
|
2
|
+
import { _ as k } from "./install-BTw4h6La.js";
|
|
3
3
|
const x = { class: "wt-stepper" }, b = { class: "wt-stepper-header" }, g = { class: "wt-stepper-steps" }, B = { class: "wt-stepper-steps__wrapper" }, E = { class: "wt-stepper-description" }, $ = {
|
|
4
4
|
__name: "wt-stepper",
|
|
5
5
|
props: {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { B as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as oe, useSlots as le, useTemplateRef as ae, ref as H, computed as h, onMounted as re, onUnmounted as ne, resolveComponent as L, resolveDirective as se, createBlock as m, openBlock as c, createSlots as U, withCtx as i, createCommentVNode as b, createElementBlock as W, createVNode as V, withModifiers as de, Fragment as ie, renderList as ce, createElementVNode as $, normalizeStyle as ue, renderSlot as S, createTextVNode as q, toDisplayString as K, withDirectives as pe, nextTick as fe } from "vue";
|
|
2
|
+
import { B as me, S as G, F as ye, _ as be } from "./install-BTw4h6La.js";
|
|
3
|
+
const we = (r, C) => {
|
|
4
4
|
let o = null, p = null, w = null, d = !1;
|
|
5
5
|
const v = () => {
|
|
6
6
|
if (!p || !d || w === null) return;
|
|
7
|
-
const l = p.getBoundingClientRect(), s = 150,
|
|
8
|
-
let
|
|
9
|
-
if (
|
|
10
|
-
const
|
|
11
|
-
p.scrollLeft += A *
|
|
7
|
+
const l = p.getBoundingClientRect(), s = 150, E = 1, I = 25, F = w - l.left, T = l.right - w, R = (f) => f < 0.5 ? 4 * f * f * f : 1 - (-2 * f + 2) ** 3 / 2;
|
|
8
|
+
let x = 0, B = 0;
|
|
9
|
+
if (F < s && p.scrollLeft > 0 ? (x = -1, B = F) : T < s && (x = 1, B = T), x !== 0) {
|
|
10
|
+
const f = 1 - B / s, O = R(f), A = E + (I - E) * O;
|
|
11
|
+
p.scrollLeft += A * x, o = requestAnimationFrame(v);
|
|
12
12
|
} else
|
|
13
13
|
o = null;
|
|
14
|
-
},
|
|
14
|
+
}, _ = (l) => {
|
|
15
15
|
l.dataTransfer.effectAllowed = "move";
|
|
16
16
|
const s = l.target.cloneNode(!0);
|
|
17
17
|
s.style.position = "absolute", s.style.top = "-9999px", s.style.background = "var(--p-datatable-header-cell-drag-background)", s.style.width = `${l.target.offsetWidth}px`, document.body.appendChild(s), l.dataTransfer.setDragImage(s, l.offsetX, l.offsetY), setTimeout(() => {
|
|
@@ -19,24 +19,24 @@ const ye = (r, E) => {
|
|
|
19
19
|
}, 0), d = !0, p || (p = r.value?.$el?.querySelector(
|
|
20
20
|
".p-datatable-table-container"
|
|
21
21
|
));
|
|
22
|
-
},
|
|
22
|
+
}, y = (l) => {
|
|
23
23
|
w = l.clientX, !o && d && (o = requestAnimationFrame(v));
|
|
24
|
-
},
|
|
24
|
+
}, k = () => {
|
|
25
25
|
o && (cancelAnimationFrame(o), o = null), d = !1, w = null, p = null;
|
|
26
26
|
};
|
|
27
27
|
return {
|
|
28
28
|
addTableDragListener: () => {
|
|
29
|
-
if (!
|
|
29
|
+
if (!C) return;
|
|
30
30
|
const l = r.value?.$el;
|
|
31
|
-
l?.addEventListener("dragstart",
|
|
31
|
+
l?.addEventListener("dragstart", _), l?.addEventListener("dragover", y), l?.addEventListener("dragend", k);
|
|
32
32
|
},
|
|
33
33
|
removeTableDragListener: () => {
|
|
34
|
-
if (!
|
|
34
|
+
if (!C) return;
|
|
35
35
|
const l = r.value?.$el;
|
|
36
|
-
l?.removeEventListener("dragstart",
|
|
36
|
+
l?.removeEventListener("dragstart", _), l?.removeEventListener("dragover", y), l?.removeEventListener("dragend", k);
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
-
},
|
|
39
|
+
}, ve = { class: "wt-table__th__content typo-body-1-bold" }, ge = { class: "wt-table__td__actions" }, he = 10, Se = 40, xe = /* @__PURE__ */ oe({
|
|
40
40
|
__name: "wt-table",
|
|
41
41
|
props: {
|
|
42
42
|
headers: { default: () => [] },
|
|
@@ -59,7 +59,7 @@ const ye = (r, E) => {
|
|
|
59
59
|
lazy: { type: Boolean, default: !1 },
|
|
60
60
|
onLoading: {},
|
|
61
61
|
loading: { type: Boolean },
|
|
62
|
-
itemSize: { default:
|
|
62
|
+
itemSize: { default: Se },
|
|
63
63
|
value: {},
|
|
64
64
|
rows: {},
|
|
65
65
|
first: {},
|
|
@@ -134,8 +134,8 @@ const ye = (r, E) => {
|
|
|
134
134
|
"column-resize",
|
|
135
135
|
"column-reorder"
|
|
136
136
|
],
|
|
137
|
-
setup(r, { emit:
|
|
138
|
-
const o = r, { t: p } =
|
|
137
|
+
setup(r, { emit: C }) {
|
|
138
|
+
const o = r, { t: p } = me(), w = le(), d = C, v = ae("table"), _ = H(0), y = H([]), { addTableDragListener: k, removeTableDragListener: P } = we(
|
|
139
139
|
v,
|
|
140
140
|
o.reorderableColumns
|
|
141
141
|
), N = [
|
|
@@ -143,30 +143,32 @@ const ye = (r, E) => {
|
|
|
143
143
|
"row-reorder",
|
|
144
144
|
"row-actions",
|
|
145
145
|
"row-expander"
|
|
146
|
-
], l =
|
|
146
|
+
], l = h(() => o.selectable ? o.selected || o.data.filter((e) => e._isSelected) : []), s = h(() => o.headers.map((e) => !e.text && e.locale ? {
|
|
147
147
|
...e,
|
|
148
148
|
text: typeof e.locale == "string" ? p(e.locale) : p(...e.locale)
|
|
149
|
-
} : e)),
|
|
149
|
+
} : e)), E = (e) => e.show === !1, I = (e) => {
|
|
150
150
|
const n = e.width || "140px";
|
|
151
151
|
return o.lazy ? {
|
|
152
152
|
width: n
|
|
153
153
|
} : {
|
|
154
154
|
minWidth: n
|
|
155
155
|
};
|
|
156
|
-
},
|
|
156
|
+
}, F = h(() => Object.keys(w).some((e) => e.includes("-footer"))), T = h(() => Object.keys(w).some((e) => e === "footer")), R = h(() => l.value.length === o.data.length && o.data.length > 0), x = h(() => o.headers.find(
|
|
157
|
+
(a) => a.sort === G.ASC || a.sort === G.DESC
|
|
158
|
+
)?.field ?? null), B = ({ sortField: e }) => {
|
|
157
159
|
const a = s.value.find((u) => u.field === e);
|
|
158
|
-
if (!
|
|
159
|
-
const n =
|
|
160
|
+
if (!f(a)) return;
|
|
161
|
+
const n = ye(a.sort);
|
|
160
162
|
d("sort", a, n);
|
|
161
|
-
},
|
|
162
|
-
o.selected ?
|
|
163
|
+
}, f = ({ sort: e }) => o.sortable && e !== void 0, O = () => {
|
|
164
|
+
o.selected ? R.value ? d("update:selected", []) : d("update:selected", [
|
|
163
165
|
...o.data
|
|
164
|
-
]) :
|
|
166
|
+
]) : R.value ? o.data.forEach((e) => {
|
|
165
167
|
e._isSelected = !1;
|
|
166
168
|
}) : o.data.forEach((e) => {
|
|
167
169
|
e._isSelected = !0;
|
|
168
170
|
});
|
|
169
|
-
},
|
|
171
|
+
}, A = (e, a) => {
|
|
170
172
|
o.selected ? a ? d("update:selected", [
|
|
171
173
|
...l.value,
|
|
172
174
|
e
|
|
@@ -174,32 +176,32 @@ const ye = (r, E) => {
|
|
|
174
176
|
"update:selected",
|
|
175
177
|
l.value.filter((n) => n !== e)
|
|
176
178
|
) : e._isSelected = !e._isSelected;
|
|
177
|
-
},
|
|
179
|
+
}, X = ({ element: e }) => {
|
|
178
180
|
const a = e.getAttribute("data-column-field"), n = getComputedStyle(e), u = Number.parseFloat(n.paddingLeft), z = Number.parseFloat(n.paddingRight), D = e.offsetWidth - u - z;
|
|
179
181
|
d("column-resize", {
|
|
180
182
|
columnName: a,
|
|
181
183
|
columnWidth: `${D}px`
|
|
182
184
|
});
|
|
183
|
-
},
|
|
185
|
+
}, j = () => {
|
|
184
186
|
const a = v.value.$el.querySelector(
|
|
185
187
|
".p-datatable-table-container"
|
|
186
188
|
).scrollLeft, n = v.value.d_columnOrder.filter(
|
|
187
189
|
(u) => !N.includes(u)
|
|
188
190
|
);
|
|
189
|
-
|
|
190
|
-
|
|
191
|
+
_.value += 1, d("column-reorder", n), fe(() => {
|
|
192
|
+
k(), v.value.$el.querySelector(".p-datatable-table-container").scrollLeft = a;
|
|
191
193
|
});
|
|
192
|
-
},
|
|
193
|
-
const a =
|
|
194
|
-
a !== -1 ?
|
|
195
|
-
},
|
|
194
|
+
}, Z = (e) => y.value.some((a) => a?.id === e?.id), Y = (e) => {
|
|
195
|
+
const a = y.value.findIndex((n) => n.id === e.id);
|
|
196
|
+
a !== -1 ? y.value.splice(a, 1) : y.value.push(e);
|
|
197
|
+
}, J = h(() => {
|
|
196
198
|
if (o.lazy)
|
|
197
199
|
return {
|
|
198
200
|
lazy: o.lazy,
|
|
199
201
|
onLazyLoad: o.onLoading,
|
|
200
202
|
itemSize: o.itemSize,
|
|
201
203
|
// The height/width of item according to orientation
|
|
202
|
-
numToleratedItems:
|
|
204
|
+
numToleratedItems: he,
|
|
203
205
|
// Number of items to pre-render outside visible area
|
|
204
206
|
totalRecords: o.data.length,
|
|
205
207
|
autoSize: !0,
|
|
@@ -208,46 +210,47 @@ const ye = (r, E) => {
|
|
|
208
210
|
// Prevent scroll position jumps
|
|
209
211
|
};
|
|
210
212
|
});
|
|
211
|
-
return
|
|
212
|
-
|
|
213
|
-
}),
|
|
213
|
+
return re(() => {
|
|
214
|
+
k();
|
|
215
|
+
}), ne(() => {
|
|
214
216
|
P();
|
|
215
217
|
}), (e, a) => {
|
|
216
|
-
const n = L("wt-icon-btn"), u = L("p-column"), z = L("wt-icon"), D = L("wt-checkbox"),
|
|
217
|
-
return c(),
|
|
218
|
-
key:
|
|
218
|
+
const n = L("wt-icon-btn"), u = L("p-column"), z = L("wt-icon"), D = L("wt-checkbox"), Q = L("p-table"), ee = se("tooltip");
|
|
219
|
+
return c(), m(Q, {
|
|
220
|
+
key: _.value,
|
|
219
221
|
ref_key: "table",
|
|
220
222
|
ref: v,
|
|
221
|
-
"expanded-rows":
|
|
223
|
+
"expanded-rows": y.value,
|
|
222
224
|
"reorderable-columns": r.reorderableColumns,
|
|
223
225
|
"resizable-columns": r.resizableColumns,
|
|
224
226
|
"row-class": r.rowClass,
|
|
225
227
|
"row-style": r.rowStyle,
|
|
226
228
|
"show-headers": !r.headless,
|
|
227
229
|
value: r.data,
|
|
230
|
+
"sort-field": x.value,
|
|
228
231
|
"data-key": o.dataKey,
|
|
229
232
|
class: "wt-table",
|
|
230
233
|
"column-resize-mode": "expand",
|
|
231
234
|
lazy: "",
|
|
232
235
|
"scroll-height": "flex",
|
|
233
236
|
scrollable: "",
|
|
234
|
-
"virtual-scroller-options":
|
|
237
|
+
"virtual-scroller-options": J.value,
|
|
235
238
|
pt: {
|
|
236
239
|
tableContainer: "wt-scrollbar"
|
|
237
240
|
},
|
|
238
|
-
onSort:
|
|
239
|
-
"onUpdate:expandedRows": a[0] || (a[0] = (t) =>
|
|
240
|
-
onColumnResizeEnd:
|
|
241
|
-
onColumnReorder:
|
|
241
|
+
onSort: B,
|
|
242
|
+
"onUpdate:expandedRows": a[0] || (a[0] = (t) => y.value = t),
|
|
243
|
+
onColumnResizeEnd: X,
|
|
244
|
+
onColumnReorder: j,
|
|
242
245
|
onRowReorder: a[1] || (a[1] = ({ dragIndex: t, dropIndex: g }) => d("reorder:row", { oldIndex: t, newIndex: g }))
|
|
243
246
|
}, U({
|
|
244
247
|
expansion: i(({ data: t }) => [
|
|
245
248
|
$("div", null, [
|
|
246
|
-
|
|
249
|
+
S(e.$slots, "expansion", { item: t }, void 0, !0)
|
|
247
250
|
])
|
|
248
251
|
]),
|
|
249
252
|
default: i(() => [
|
|
250
|
-
r.rowExpansion ? (c(),
|
|
253
|
+
r.rowExpansion ? (c(), m(u, {
|
|
251
254
|
key: 0,
|
|
252
255
|
pt: {
|
|
253
256
|
columnresizer: {
|
|
@@ -263,13 +266,13 @@ const ye = (r, E) => {
|
|
|
263
266
|
body: i(({ data: t }) => [
|
|
264
267
|
V(n, {
|
|
265
268
|
disabled: o.rowExpansionDisabled(t),
|
|
266
|
-
icon:
|
|
267
|
-
onClick:
|
|
269
|
+
icon: Z(t) ? "arrow-down" : "arrow-right",
|
|
270
|
+
onClick: de((g) => Y(t), ["stop"])
|
|
268
271
|
}, null, 8, ["disabled", "icon", "onClick"])
|
|
269
272
|
]),
|
|
270
273
|
_: 1
|
|
271
274
|
})) : b("", !0),
|
|
272
|
-
r.rowReorder ? (c(),
|
|
275
|
+
r.rowReorder ? (c(), m(u, {
|
|
273
276
|
key: 1,
|
|
274
277
|
pt: {
|
|
275
278
|
columnresizer: {
|
|
@@ -285,7 +288,7 @@ const ye = (r, E) => {
|
|
|
285
288
|
"row-reorder": ""
|
|
286
289
|
}, {
|
|
287
290
|
body: i(({ data: t }) => [
|
|
288
|
-
r.isRowReorderDisabled(t) ? b("", !0) : (c(),
|
|
291
|
+
r.isRowReorderDisabled(t) ? b("", !0) : (c(), m(z, {
|
|
289
292
|
key: 0,
|
|
290
293
|
"data-pc-section": "reorderablerowhandle",
|
|
291
294
|
icon: "move"
|
|
@@ -293,7 +296,7 @@ const ye = (r, E) => {
|
|
|
293
296
|
]),
|
|
294
297
|
_: 1
|
|
295
298
|
})) : b("", !0),
|
|
296
|
-
r.selectable ? (c(),
|
|
299
|
+
r.selectable ? (c(), m(u, {
|
|
297
300
|
key: 2,
|
|
298
301
|
pt: {
|
|
299
302
|
columnresizer: {
|
|
@@ -309,49 +312,49 @@ const ye = (r, E) => {
|
|
|
309
312
|
}, {
|
|
310
313
|
header: i(() => [
|
|
311
314
|
V(D, {
|
|
312
|
-
selected:
|
|
313
|
-
"onUpdate:selected":
|
|
315
|
+
selected: R.value,
|
|
316
|
+
"onUpdate:selected": O
|
|
314
317
|
}, null, 8, ["selected"])
|
|
315
318
|
]),
|
|
316
319
|
body: i(({ data: t }) => [
|
|
317
|
-
t ? (c(),
|
|
320
|
+
t ? (c(), m(D, {
|
|
318
321
|
key: 0,
|
|
319
322
|
selected: l.value.includes(t),
|
|
320
|
-
"onUpdate:selected": (g) =>
|
|
323
|
+
"onUpdate:selected": (g) => A(t, g)
|
|
321
324
|
}, null, 8, ["selected", "onUpdate:selected"])) : b("", !0)
|
|
322
325
|
]),
|
|
323
326
|
_: 1
|
|
324
327
|
})) : b("", !0),
|
|
325
|
-
(c(!0), W(
|
|
328
|
+
(c(!0), W(ie, null, ce(s.value, (t, g) => (c(), m(u, {
|
|
326
329
|
key: t.value,
|
|
327
330
|
"column-key": t.field,
|
|
328
331
|
field: t.field,
|
|
329
|
-
hidden:
|
|
332
|
+
hidden: E(t),
|
|
330
333
|
pt: {
|
|
331
334
|
root: {
|
|
332
335
|
"data-column-field": t.field
|
|
333
336
|
// required for column-resizer to get column field
|
|
334
337
|
}
|
|
335
338
|
},
|
|
336
|
-
sortable:
|
|
339
|
+
sortable: f(t)
|
|
337
340
|
}, U({
|
|
338
341
|
header: i(() => [
|
|
339
|
-
|
|
342
|
+
S(e.$slots, `header-${t.value}`, {
|
|
340
343
|
index: g,
|
|
341
344
|
header: t
|
|
342
345
|
}, () => [
|
|
343
|
-
$("div",
|
|
344
|
-
|
|
346
|
+
$("div", ve, [
|
|
347
|
+
pe((c(), W("span", null, [
|
|
345
348
|
q(K(t.text), 1)
|
|
346
349
|
])), [
|
|
347
|
-
[
|
|
350
|
+
[ee, t.text]
|
|
348
351
|
]),
|
|
349
|
-
t.sort === "asc" ? (c(),
|
|
352
|
+
t.sort === "asc" ? (c(), m(z, {
|
|
350
353
|
key: 0,
|
|
351
354
|
class: "wt-table__th__sort-arrow wt-table__th__sort-arrow--asc",
|
|
352
355
|
icon: "sort-arrow-up",
|
|
353
356
|
size: "sm"
|
|
354
|
-
})) : t.sort === "desc" ? (c(),
|
|
357
|
+
})) : t.sort === "desc" ? (c(), m(z, {
|
|
355
358
|
key: 1,
|
|
356
359
|
class: "wt-table__th__sort-arrow wt-table__th__sort-arrow--desc",
|
|
357
360
|
icon: "sort-arrow-down",
|
|
@@ -360,14 +363,14 @@ const ye = (r, E) => {
|
|
|
360
363
|
])
|
|
361
364
|
], !0)
|
|
362
365
|
]),
|
|
363
|
-
body: i(({ data: M, index:
|
|
366
|
+
body: i(({ data: M, index: te }) => [
|
|
364
367
|
$("div", {
|
|
365
|
-
style:
|
|
368
|
+
style: ue(I(t)),
|
|
366
369
|
class: "wt-table__td__content typo-body-1"
|
|
367
370
|
}, [
|
|
368
|
-
M ?
|
|
371
|
+
M ? S(e.$slots, t.value, {
|
|
369
372
|
key: 0,
|
|
370
|
-
index:
|
|
373
|
+
index: te,
|
|
371
374
|
item: M
|
|
372
375
|
}, () => [
|
|
373
376
|
q(K(M[t.value]), 1)
|
|
@@ -377,15 +380,15 @@ const ye = (r, E) => {
|
|
|
377
380
|
sorticon: i(() => []),
|
|
378
381
|
_: 2
|
|
379
382
|
}, [
|
|
380
|
-
|
|
383
|
+
F.value ? {
|
|
381
384
|
name: "footer",
|
|
382
385
|
fn: i(() => [
|
|
383
|
-
|
|
386
|
+
S(e.$slots, `${t.value}-footer`, {}, void 0, !0)
|
|
384
387
|
]),
|
|
385
388
|
key: "0"
|
|
386
389
|
} : void 0
|
|
387
390
|
]), 1032, ["column-key", "field", "hidden", "pt", "sortable"]))), 128)),
|
|
388
|
-
r.gridActions ? (c(),
|
|
391
|
+
r.gridActions ? (c(), m(u, {
|
|
389
392
|
key: 3,
|
|
390
393
|
frozen: r.fixedActions,
|
|
391
394
|
"align-frozen": "right",
|
|
@@ -393,11 +396,11 @@ const ye = (r, E) => {
|
|
|
393
396
|
style: { width: "112px" }
|
|
394
397
|
}, {
|
|
395
398
|
header: i(() => [
|
|
396
|
-
|
|
399
|
+
S(e.$slots, "actions-header", {}, void 0, !0)
|
|
397
400
|
]),
|
|
398
401
|
body: i(({ data: t, index: g }) => [
|
|
399
|
-
$("div",
|
|
400
|
-
t ?
|
|
402
|
+
$("div", ge, [
|
|
403
|
+
t ? S(e.$slots, "actions", {
|
|
401
404
|
key: 0,
|
|
402
405
|
index: g,
|
|
403
406
|
item: t
|
|
@@ -409,17 +412,17 @@ const ye = (r, E) => {
|
|
|
409
412
|
], void 0, !0),
|
|
410
413
|
_: 2
|
|
411
414
|
}, [
|
|
412
|
-
|
|
415
|
+
T.value ? {
|
|
413
416
|
name: "footer",
|
|
414
417
|
fn: i(() => [
|
|
415
|
-
|
|
418
|
+
S(e.$slots, "footer", {}, void 0, !0)
|
|
416
419
|
]),
|
|
417
420
|
key: "0"
|
|
418
421
|
} : void 0
|
|
419
|
-
]), 1032, ["expanded-rows", "reorderable-columns", "resizable-columns", "row-class", "row-style", "show-headers", "value", "data-key", "virtual-scroller-options"]);
|
|
422
|
+
]), 1032, ["expanded-rows", "reorderable-columns", "resizable-columns", "row-class", "row-style", "show-headers", "value", "sort-field", "data-key", "virtual-scroller-options"]);
|
|
420
423
|
};
|
|
421
424
|
}
|
|
422
|
-
}),
|
|
425
|
+
}), Re = /* @__PURE__ */ be(xe, [["__scopeId", "data-v-7cd9cee7"]]);
|
|
423
426
|
export {
|
|
424
|
-
|
|
427
|
+
Re as default
|
|
425
428
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as C, computed as l, resolveComponent as p, resolveDirective as g, createElementBlock as S, openBlock as n, renderSlot as y, withDirectives as r, createCommentVNode as u, createVNode as A, createBlock as a, withCtx as B, normalizeClass as I } from "vue";
|
|
2
|
-
import { _ as O } from "./install-
|
|
2
|
+
import { _ as O } from "./install-BTw4h6La.js";
|
|
3
3
|
const R = { class: "wt-table-actions" }, U = /* @__PURE__ */ C({
|
|
4
4
|
__name: "wt-table-actions",
|
|
5
5
|
props: {
|