@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,4 +1,4 @@
1
- import "./components-BH_gLkO3.js";
1
+ import "./components-DBVFjVK_.js";
2
2
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { l as t } from "./enums-CM8hOd_m.js";
4
4
  import { t as n } from "./wt-button-TVtG0saz.js";
@@ -1,4 +1,4 @@
1
- import { C as e, i as t } from "./components-BH_gLkO3.js";
1
+ import { C as e, i as t } from "./components-DBVFjVK_.js";
2
2
  import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { o as r } from "./utils-DqYQ_mrQ.js";
4
4
  import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createTextVNode as c, createVNode as l, defineComponent as u, openBlock as d, renderList as f, renderSlot as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./rolldown-runtime-to5KK-CW.js";
2
- import { T as t, n, w as r } from "./components-BH_gLkO3.js";
3
- import { n as i, r as a } from "./clients-D5pO5FKV.js";
2
+ import { T as t, n, w as r } from "./components-DBVFjVK_.js";
3
+ import { n as i, r as a } from "./clients-BLoUCVC8.js";
4
4
  import { t as o } from "./vue-i18n-DNulhn2J.js";
5
5
  import { n as s } from "./useEventBus-B-ZeklLu.js";
6
6
  import { createBlock as c, createTextVNode as l, createVNode as u, defineComponent as d, mergeProps as f, onMounted as p, openBlock as m, ref as h, resolveComponent as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
@@ -0,0 +1,63 @@
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, defineComponent as a, normalizeClass as o, openBlock as s, renderSlot as c, resolveComponent as l, resolveDirective as u, withCtx as d, withDirectives as f } from "vue";
3
+ //#region src/components/wt-table-actions/wt-table-actions.vue?vue&type=script&setup=true&lang.ts
4
+ var p = { class: "wt-table-actions" }, m = /*#__PURE__*/ e(/* @__PURE__ */ a({
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 a = e, m = t(() => a.icons.indexOf("import") !== -1), h = t(() => a.icons.indexOf("export") !== -1), g = t(() => a.icons.indexOf("filter-reset") !== -1), _ = t(() => a.icons.indexOf("column-select") !== -1), v = t(() => a.icons.indexOf("refresh") !== -1), y = t(() => a.icons.indexOf("settings") !== -1);
20
+ return (t, a) => {
21
+ let b = l("wt-icon-btn"), x = l("wt-badge"), S = u("tooltip");
22
+ return s(), i("aside", p, [
23
+ c(t.$slots, "default", {}, void 0, !0),
24
+ m.value ? f((s(), n(b, {
25
+ key: 0,
26
+ icon: "download",
27
+ onClick: a[0] ||= (e) => t.$emit("input", "import")
28
+ }, null, 512)), [[S, t.$t("reusable.import")]]) : r("", !0),
29
+ h.value ? f((s(), n(b, {
30
+ key: 1,
31
+ icon: "upload",
32
+ onClick: a[1] ||= (e) => t.$emit("input", "export")
33
+ }, null, 512)), [[S, t.$t("reusable.export")]]) : r("", !0),
34
+ g.value ? f((s(), n(b, {
35
+ key: 2,
36
+ icon: "clear",
37
+ onClick: a[2] ||= (e) => t.$emit("input", "filterReset")
38
+ }, null, 512)), [[S, t.$t("webitelUI.tableActions.filterReset")]]) : r("", !0),
39
+ _.value ? f((s(), n(b, {
40
+ key: 3,
41
+ icon: "column-select",
42
+ onClick: a[3] ||= (e) => t.$emit("input", "columnSelect")
43
+ }, null, 512)), [[S, t.$t("webitelUI.tableActions.columnSelect")]]) : r("", !0),
44
+ v.value ? f((s(), n(b, {
45
+ key: 4,
46
+ icon: "refresh",
47
+ onClick: a[4] ||= (e) => t.$emit("input", "refresh")
48
+ }, null, 512)), [[S, t.$t("webitelUI.tableActions.refreshTable")]]) : r("", !0),
49
+ e.isSettingsBadge ? (s(), n(x, { key: 5 }, {
50
+ default: d(() => [y.value ? f((s(), n(b, {
51
+ key: 0,
52
+ class: o({ active: e.isSettingsActive }),
53
+ icon: "filter",
54
+ onClick: a[5] ||= (e) => t.$emit("input", "settings")
55
+ }, null, 8, ["class"])), [[S, t.$t("webitelUI.tableActions.expandFilters")]]) : r("", !0)], void 0, !0),
56
+ _: 1
57
+ })) : r("", !0)
58
+ ]);
59
+ };
60
+ }
61
+ }), [["__scopeId", "data-v-af061e66"]]);
62
+ //#endregion
63
+ export { m as default };
@@ -1,5 +1,5 @@
1
- import { a as e, o as t, r as n, s as r } from "./components-BH_gLkO3.js";
2
- import { t as i } from "./clients-D5pO5FKV.js";
1
+ import { a as e, o as t, r as n, s as r } from "./components-DBVFjVK_.js";
2
+ import { t as i } from "./clients-BLoUCVC8.js";
3
3
  import { t as a } from "./enums-CM8hOd_m.js";
4
4
  import { t as o } from "./vue-i18n-DNulhn2J.js";
5
5
  import { computed as s, createBlock as c, createCommentVNode as l, createVNode as u, defineComponent as d, mergeModels as f, mergeProps as p, openBlock as m, renderSlot as h, resolveComponent as g, unref as _, useModel as v } from "vue";
@@ -1,4 +1,4 @@
1
- import { k as e } from "./components-BH_gLkO3.js";
1
+ import { k as e } from "./components-DBVFjVK_.js";
2
2
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { l as n } from "./enums-CM8hOd_m.js";
4
4
  import "./wt-button-TVtG0saz.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.8.69",
3
+ "version": "26.8.70",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -38,7 +38,7 @@
38
38
  />
39
39
 
40
40
  <wt-badge
41
- :hidden="!isSettingsBadge"
41
+ v-if="isSettingsBadge"
42
42
  >
43
43
  <wt-icon-btn
44
44
  v-if="isSettings"