@webitel/ui-sdk 26.8.69 → 26.8.70

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.
@@ -1,63 +0,0 @@
1
- import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, renderSlot as l, resolveComponent as u, resolveDirective as d, withCtx as f, withDirectives as p } from "vue";
3
- //#region src/components/wt-table-actions/wt-table-actions.vue?vue&type=script&setup=true&lang.ts
4
- var m = { class: "wt-table-actions" }, h = /*#__PURE__*/ e(/* @__PURE__ */ o({
5
- __name: "wt-table-actions",
6
- props: {
7
- icons: { default: () => ["refresh"] },
8
- isSettingsActive: {
9
- type: Boolean,
10
- default: !1
11
- },
12
- isSettingsBadge: {
13
- type: Boolean,
14
- default: !1
15
- }
16
- },
17
- emits: ["input"],
18
- setup(e) {
19
- let o = e, h = t(() => o.icons.indexOf("import") !== -1), g = t(() => o.icons.indexOf("export") !== -1), _ = t(() => o.icons.indexOf("filter-reset") !== -1), v = t(() => o.icons.indexOf("column-select") !== -1), y = t(() => o.icons.indexOf("refresh") !== -1), b = t(() => o.icons.indexOf("settings") !== -1);
20
- return (t, o) => {
21
- let x = u("wt-icon-btn"), S = u("wt-badge"), C = d("tooltip");
22
- return c(), i("aside", m, [
23
- l(t.$slots, "default", {}, void 0, !0),
24
- h.value ? p((c(), n(x, {
25
- key: 0,
26
- icon: "download",
27
- onClick: o[0] ||= (e) => t.$emit("input", "import")
28
- }, null, 512)), [[C, t.$t("reusable.import")]]) : r("", !0),
29
- g.value ? p((c(), n(x, {
30
- key: 1,
31
- icon: "upload",
32
- onClick: o[1] ||= (e) => t.$emit("input", "export")
33
- }, null, 512)), [[C, t.$t("reusable.export")]]) : r("", !0),
34
- _.value ? p((c(), n(x, {
35
- key: 2,
36
- icon: "clear",
37
- onClick: o[2] ||= (e) => t.$emit("input", "filterReset")
38
- }, null, 512)), [[C, t.$t("webitelUI.tableActions.filterReset")]]) : r("", !0),
39
- v.value ? p((c(), n(x, {
40
- key: 3,
41
- icon: "column-select",
42
- onClick: o[3] ||= (e) => t.$emit("input", "columnSelect")
43
- }, null, 512)), [[C, t.$t("webitelUI.tableActions.columnSelect")]]) : r("", !0),
44
- y.value ? p((c(), n(x, {
45
- key: 4,
46
- icon: "refresh",
47
- onClick: o[4] ||= (e) => t.$emit("input", "refresh")
48
- }, null, 512)), [[C, t.$t("webitelUI.tableActions.refreshTable")]]) : r("", !0),
49
- a(S, { hidden: !e.isSettingsBadge }, {
50
- default: f(() => [b.value ? p((c(), n(x, {
51
- key: 0,
52
- class: s({ active: e.isSettingsActive }),
53
- icon: "filter",
54
- onClick: o[5] ||= (e) => t.$emit("input", "settings")
55
- }, null, 8, ["class"])), [[C, t.$t("webitelUI.tableActions.expandFilters")]]) : r("", !0)], void 0, !0),
56
- _: 1
57
- }, 8, ["hidden"])
58
- ]);
59
- };
60
- }
61
- }), [["__scopeId", "data-v-73cf33d9"]]);
62
- //#endregion
63
- export { h as default };