@ironsource/shared-ui 2.1.1 → 2.1.2-rc.0

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.
Files changed (60) hide show
  1. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_5d9c6052_lang.css +1 -0
  2. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_c859928d_lang.css +1 -0
  3. package/DataGrid.vue_vue_type_style_index_0_scoped_d5635f1b_lang.css +1 -0
  4. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_5fa01c78_lang.css +1 -0
  5. package/DropdownV4.vue_vue_type_style_index_0_scoped_258b9f7e_lang.css +1 -0
  6. package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
  7. package/MultiBar.vue_vue_type_style_index_0_scoped_b473b35e_lang.css +1 -0
  8. package/MultiBarMenu.vue_vue_type_style_index_0_scoped_e40e5dda_lang.css +1 -0
  9. package/StatusDot.vue_vue_type_style_index_0_scoped_0c8a38e5_lang.css +1 -0
  10. package/ToggleV4.vue_vue_type_style_index_0_scoped_ad231e8c_lang.css +1 -0
  11. package/components/dropdown/common/Dropdown.common.js +18 -18
  12. package/components/dropdown/v4/AppDropdownTrigger.vue.js +2 -2
  13. package/components/dropdown/v4/AppDropdownTrigger.vue2.js +37 -37
  14. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
  15. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +1 -1
  16. package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +5 -0
  17. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +3 -3
  18. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +48 -40
  19. package/components/dropdown/v4/DropdownV4.vue.d.ts +11 -3
  20. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  21. package/components/dropdown/v4/DropdownV4.vue2.js +107 -102
  22. package/components/dropdown/v4/dropdownStoryArgs.d.ts +283 -0
  23. package/components/dropdown/v4/index.d.ts +54 -9
  24. package/components/icon/v3/Icon.vue2.js +1 -1
  25. package/components/icon/v3/icons/FiltersSearch.vue.js +41 -0
  26. package/components/multibar/MultiBar.types.d.ts +1 -0
  27. package/components/multibar/MultiBar.vue.d.ts +10 -0
  28. package/components/multibar/MultiBar.vue.js +3 -3
  29. package/components/multibar/MultiBar.vue2.js +58 -51
  30. package/components/multibar/MultiBarMenu.vue.d.ts +5 -0
  31. package/components/multibar/MultiBarMenu.vue.js +3 -3
  32. package/components/multibar/MultiBarMenu.vue2.js +23 -18
  33. package/components/multibar/index.d.ts +18 -0
  34. package/components/statusDot/StatusDot.vue.d.ts +30 -0
  35. package/components/statusDot/StatusDot.vue.js +7 -0
  36. package/components/statusDot/StatusDot.vue2.js +15 -0
  37. package/components/statusDot/index.d.ts +17 -0
  38. package/components/statusDot/index.js +6 -0
  39. package/components/statusDot/types.d.ts +2 -0
  40. package/components/table/common/Table.common.js +31 -31
  41. package/components/table/v4/DataGrid.vue.d.ts +8 -3
  42. package/components/table/v4/DataGrid.vue.js +2 -2
  43. package/components/table/v4/DataGrid.vue2.js +76 -75
  44. package/components/table/v4/index.d.ts +27 -8
  45. package/components/toggle/v4/ToggleV4.vue.js +5 -5
  46. package/components/toggle/v4/ToggleV4.vue2.js +1 -1
  47. package/index.d.ts +192 -34
  48. package/index.js +104 -102
  49. package/package.json +6 -2
  50. package/testids/index.d.ts +6 -0
  51. package/testids/index.js +15 -14
  52. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_a64a46d0_lang.css +0 -1
  53. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_c38e97df_lang.css +0 -1
  54. package/DataGrid.vue_vue_type_style_index_0_scoped_09d33c49_lang.css +0 -1
  55. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_06dcfe6d_lang.css +0 -1
  56. package/DropdownV4.vue_vue_type_style_index_0_scoped_19f8fedd_lang.css +0 -1
  57. package/MultiBar.vue_vue_type_style_index_0_scoped_f5061530_lang.css +0 -1
  58. package/MultiBarMenu.vue_vue_type_style_index_0_scoped_ae2bbc6c_lang.css +0 -1
  59. package/ToggleV4.vue_vue_type_style_index_0_scoped_ef31fecc_lang.css +0 -1
  60. /package/components/icon/{icons → v3/icons}/FiltersSearch.vue.d.ts +0 -0
@@ -0,0 +1,41 @@
1
+ import { openBlock as l, createElementBlock as o, createElementVNode as e } from "vue";
2
+ import t from "../../../../_virtual/_plugin-vue_export-helper.js";
3
+ const r = {}, c = {
4
+ viewBox: "0 0 37 37",
5
+ fill: "currentColor"
6
+ }, n = /* @__PURE__ */ e("path", {
7
+ "fill-rule": "evenodd",
8
+ "clip-rule": "evenodd",
9
+ d: "M36.9688 20.2016C36.9688 21.9305 35.5672 23.332 33.8383 23.332L3.16005 23.332C1.43116 23.332 0.0296174 21.9305 0.0296176 20.2016C0.0296177 18.4727 1.43116 17.0712 3.16005 17.0712L33.8383 17.0712C35.5672 17.0712 36.9688 18.4727 36.9688 20.2016Z",
10
+ fill: "#DDDFE1"
11
+ }, null, -1), i = /* @__PURE__ */ e("path", {
12
+ "fill-rule": "evenodd",
13
+ "clip-rule": "evenodd",
14
+ d: "M0.0312495 6.42731C0.0312498 4.69842 1.43279 3.29688 3.16168 3.29688L33.8399 3.29688C35.5688 3.29688 36.9704 4.69842 36.9704 6.42732C36.9704 8.15621 35.5688 9.55775 33.8399 9.55775L3.16168 9.55774C1.43279 9.55774 0.0312492 8.1562 0.0312495 6.42731Z",
15
+ fill: "#DDDFE1"
16
+ }, null, -1), s = /* @__PURE__ */ e("ellipse", {
17
+ cx: "26.3251",
18
+ cy: "20.2001",
19
+ rx: "6.26087",
20
+ ry: "6.26087",
21
+ transform: "rotate(-180 26.3251 20.2001)",
22
+ fill: "#53575B"
23
+ }, null, -1), d = /* @__PURE__ */ e("ellipse", {
24
+ cx: "10.6749",
25
+ cy: "6.42689",
26
+ rx: "6.26087",
27
+ ry: "6.26087",
28
+ fill: "#53575B"
29
+ }, null, -1), _ = [
30
+ n,
31
+ i,
32
+ s,
33
+ d
34
+ ];
35
+ function f(u, a) {
36
+ return l(), o("svg", c, _);
37
+ }
38
+ const C = /* @__PURE__ */ t(r, [["render", f]]);
39
+ export {
40
+ C as default
41
+ };
@@ -3,4 +3,5 @@ export type MultiBarAction = {
3
3
  id: string;
4
4
  title: string;
5
5
  icon?: IconName;
6
+ disabled?: boolean;
6
7
  };
@@ -7,6 +7,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
7
7
  visibleActionsCount?: number;
8
8
  size?: 'small' | 'medium';
9
9
  position?: 'center' | 'left';
10
+ testId?: string;
11
+ zIndex?: number;
10
12
  }>, {
11
13
  selectedCount: number;
12
14
  appendToBody: boolean;
@@ -14,6 +16,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
14
16
  visibleActionsCount: number;
15
17
  size: string;
16
18
  position: string;
19
+ testId: string;
20
+ zIndex: number;
17
21
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
22
  "update:modelValue": (value: unknown) => void;
19
23
  close: () => void;
@@ -26,6 +30,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
26
30
  visibleActionsCount?: number;
27
31
  size?: 'small' | 'medium';
28
32
  position?: 'center' | 'left';
33
+ testId?: string;
34
+ zIndex?: number;
29
35
  }>, {
30
36
  selectedCount: number;
31
37
  appendToBody: boolean;
@@ -33,6 +39,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
33
39
  visibleActionsCount: number;
34
40
  size: string;
35
41
  position: string;
42
+ testId: string;
43
+ zIndex: number;
36
44
  }>>> & {
37
45
  onClose?: () => any;
38
46
  "onUpdate:modelValue"?: (value: unknown) => any;
@@ -40,6 +48,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
40
48
  }, {
41
49
  size: 'small' | 'medium';
42
50
  position: 'center' | 'left';
51
+ zIndex: number;
52
+ testId: string;
43
53
  actions: MultiBarAction[];
44
54
  appendToBody: boolean;
45
55
  selectedCount: number;
@@ -1,7 +1,7 @@
1
1
  import o from "./MultiBar.vue2.js";
2
- /* empty css */import _ from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../MultiBar.vue_vue_type_style_index_0_scoped_f5061530_lang.css"; //*');
4
- const p = /* @__PURE__ */ _(o, [["__scopeId", "data-v-f5061530"]]);
2
+ /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../MultiBar.vue_vue_type_style_index_0_scoped_b473b35e_lang.css"; //*');
4
+ const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-b473b35e"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,16 +1,18 @@
1
- import "../../MultiBar.vue_vue_type_style_index_0_scoped_f5061530_lang.css"; import { defineComponent as k, computed as y, openBlock as n, createBlock as s, Teleport as g, createVNode as c, Transition as A, withCtx as u, unref as o, createElementBlock as r, mergeProps as T, createElementVNode as V, createTextVNode as C, toDisplayString as v, createCommentVNode as d, Fragment as x, renderList as z, normalizeClass as M } from "vue";
2
- import { useVModel as N } from "@vueuse/core";
3
- import S from "../typography/v4/Typography.vue.js";
4
- import w from "../button/v4/ButtonV4.vue.js";
5
- import E from "../button/v4/IconButtonV4.vue.js";
6
- import $ from "./MultiBarMenu.vue.js";
7
- const D = { class: "multi-bar-panel" }, F = {
1
+ import "../../MultiBar.vue_vue_type_style_index_0_scoped_b473b35e_lang.css"; import { defineComponent as k, computed as v, openBlock as l, createBlock as d, Teleport as x, createVNode as c, Transition as g, withCtx as u, unref as t, createElementBlock as r, mergeProps as B, createElementVNode as V, createTextVNode as h, toDisplayString as A, createCommentVNode as m, Fragment as z, renderList as M, normalizeClass as N } from "vue";
2
+ import { useVModel as $ } from "@vueuse/core";
3
+ import E from "../typography/v4/Typography.vue.js";
4
+ import S from "../button/v4/ButtonV4.vue.js";
5
+ import P from "../button/v4/IconButtonV4.vue.js";
6
+ import w from "./MultiBarMenu.vue.js";
7
+ import { useTestIdAttrs as L } from "../../utils/testIds.js";
8
+ import { MultiBarTestIdModifiers as n } from "../../testids/index.js";
9
+ const O = { class: "multi-bar-panel" }, R = {
8
10
  key: 0,
9
11
  class: "count-text"
10
- }, I = {
12
+ }, D = {
11
13
  inheritAttrs: !1
12
- }, O = /* @__PURE__ */ k({
13
- ...I,
14
+ }, X = /* @__PURE__ */ k({
15
+ ...D,
14
16
  __name: "MultiBar",
15
17
  props: {
16
18
  modelValue: { type: Boolean },
@@ -19,72 +21,77 @@ const D = { class: "multi-bar-panel" }, F = {
19
21
  actions: { default: () => [] },
20
22
  visibleActionsCount: { default: 4 },
21
23
  size: { default: "medium" },
22
- position: { default: "center" }
24
+ position: { default: "center" },
25
+ testId: { default: "" },
26
+ zIndex: { default: 1e3 }
23
27
  },
24
28
  emits: ["update:modelValue", "close", "action"],
25
- setup(t, { emit: l }) {
26
- const e = t, m = N(e, "modelValue", l), h = () => {
27
- m.value = !1, l("close");
28
- }, f = (a) => {
29
- l("action", a);
30
- }, b = y(
29
+ setup(o, { emit: s }) {
30
+ const e = o, f = $(e, "modelValue", s), I = () => {
31
+ f.value = !1, s("close");
32
+ }, b = (a) => {
33
+ s("action", a);
34
+ }, p = v(
31
35
  () => e.actions.length > e.visibleActionsCount ? e.actions.slice(0, e.visibleActionsCount) : e.actions
32
- ), p = y(
36
+ ), C = v(
33
37
  () => e.actions.length > e.visibleActionsCount ? e.actions.slice(e.visibleActionsCount) : []
34
- );
35
- return (a, L) => (n(), s(g, {
38
+ ), y = L(e.testId, n);
39
+ return (a, F) => (l(), d(x, {
36
40
  to: "body",
37
- disabled: !t.appendToBody
41
+ disabled: !o.appendToBody
38
42
  }, [
39
- c(A, { name: "multi-bar" }, {
43
+ c(g, { name: "multi-bar" }, {
40
44
  default: u(() => [
41
- o(m) ? (n(), r("div", T({
45
+ t(f) ? (l(), r("div", B({
42
46
  key: 0,
43
47
  class: ["multi-bar", {
44
48
  "light-theme-v4": !0,
45
- "multi-bar--fixed": t.appendToBody,
46
- "multi-bar--sticky": !t.appendToBody,
47
- "multi-bar--small": t.size === "small",
48
- "multi-bar--medium": t.size === "medium",
49
- "multi-bar--left": t.position === "left"
50
- }]
51
- }, a.$attrs), [
52
- V("div", D, [
53
- c(o(E), {
49
+ "multi-bar--fixed": o.appendToBody,
50
+ "multi-bar--sticky": !o.appendToBody,
51
+ "multi-bar--small": o.size === "small",
52
+ "multi-bar--medium": o.size === "medium",
53
+ "multi-bar--left": o.position === "left"
54
+ }],
55
+ style: { zIndex: o.zIndex }
56
+ }, { ...a.$attrs, ...t(y)[t(n).WRAPPER] }), [
57
+ V("div", O, [
58
+ c(t(P), B({
54
59
  "icon-name": "x",
55
- class: "close-icon",
56
- onClick: h
57
- }),
58
- t.selectedCount ? (n(), r("div", F, [
59
- c(o(S), { variant: "body1" }, {
60
+ class: "close-icon"
61
+ }, t(y)[t(n).CLOSE_BTN], { onClick: I }), null, 16),
62
+ o.selectedCount ? (l(), r("div", R, [
63
+ c(t(E), { variant: "body1" }, {
60
64
  default: u(() => [
61
- C(v(t.selectedCount) + " selected ", 1)
65
+ h(A(o.selectedCount) + " selected ", 1)
62
66
  ]),
63
67
  _: 1
64
68
  })
65
- ])) : d("", !0),
66
- (n(!0), r(x, null, z(o(b), (i, B) => (n(), s(o(w), {
69
+ ])) : m("", !0),
70
+ (l(!0), r(z, null, M(t(p), (i, T) => (l(), d(t(S), {
67
71
  key: i.id,
68
- class: M(["action-button", {
69
- "action-button--last": B === o(b).length - 1
72
+ class: N(["action-button", {
73
+ "action-button--last": T === t(p).length - 1
70
74
  }]),
71
75
  variant: "text",
72
76
  color: "default",
73
77
  "start-icon-name": i.icon,
74
- onClick: (P) => f(i)
78
+ "data-testid": `${e.testId}-${t(n).ACTION}-${i.id}`,
79
+ disabled: i.disabled,
80
+ onClick: (U) => b(i)
75
81
  }, {
76
82
  default: u(() => [
77
- C(v(i.title), 1)
83
+ h(A(i.title), 1)
78
84
  ]),
79
85
  _: 2
80
- }, 1032, ["class", "start-icon-name", "onClick"]))), 128)),
81
- o(p).length ? (n(), s($, {
86
+ }, 1032, ["class", "start-icon-name", "data-testid", "disabled", "onClick"]))), 128)),
87
+ t(C).length ? (l(), d(w, {
82
88
  key: 1,
83
- "menu-items": o(p),
84
- onSelected: f
85
- }, null, 8, ["menu-items"])) : d("", !0)
89
+ "menu-items": t(C),
90
+ "test-id": `${e.testId}-${t(n).MENU}`,
91
+ onSelected: b
92
+ }, null, 8, ["menu-items", "test-id"])) : m("", !0)
86
93
  ])
87
- ], 16)) : d("", !0)
94
+ ], 16)) : m("", !0)
88
95
  ]),
89
96
  _: 1
90
97
  })
@@ -92,5 +99,5 @@ const D = { class: "multi-bar-panel" }, F = {
92
99
  }
93
100
  });
94
101
  export {
95
- O as default
102
+ X as default
96
103
  };
@@ -1,17 +1,22 @@
1
1
  import { MultiBarAction } from '@/components/multibar/MultiBar.types';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  menuItems: MultiBarAction[];
4
+ testId?: string;
4
5
  }>, {
5
6
  menuItems: () => any[];
7
+ testId: string;
6
8
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
9
  selected: (item: unknown) => void;
8
10
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
11
  menuItems: MultiBarAction[];
12
+ testId?: string;
10
13
  }>, {
11
14
  menuItems: () => any[];
15
+ testId: string;
12
16
  }>>> & {
13
17
  onSelected?: (item: unknown) => any;
14
18
  }, {
19
+ testId: string;
15
20
  menuItems: MultiBarAction[];
16
21
  }>;
17
22
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import e from "./MultiBarMenu.vue2.js";
2
2
  /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../MultiBarMenu.vue_vue_type_style_index_0_scoped_ae2bbc6c_lang.css"; //*');
4
- const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-ae2bbc6c"]]);
3
+ // import "../../MultiBarMenu.vue_vue_type_style_index_0_scoped_e40e5dda_lang.css"; //*');
4
+ const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-e40e5dda"]]);
5
5
  export {
6
- s as default
6
+ a as default
7
7
  };
@@ -1,49 +1,54 @@
1
- import "../../MultiBarMenu.vue_vue_type_style_index_0_scoped_ae2bbc6c_lang.css"; import { defineComponent as s, openBlock as l, createBlock as d, unref as t, withCtx as o, createVNode as m, createSlots as c, createTextVNode as u, toDisplayString as f } from "vue";
2
- import _ from "../dropdown/v4/DropdownV4.vue.js";
1
+ import "../../MultiBarMenu.vue_vue_type_style_index_0_scoped_e40e5dda_lang.css"; import { defineComponent as l, openBlock as m, createBlock as p, unref as t, withCtx as i, createVNode as s, createSlots as u, createTextVNode as c, toDisplayString as f } from "vue";
2
+ import b from "../dropdown/v4/DropdownV4.vue.js";
3
3
  import "../dropdown/v4/DefaultDropdownTrigger.vue.js";
4
4
  import "../dropdown/v4/IconButtonDropdownTrigger.vue.js";
5
5
  import "../dropdown/v4/ChipDropdownTrigger.vue.js";
6
6
  import "../dropdown/v4/AppDropdownTrigger.vue.js";
7
7
  import g from "../dropdown/v4/OptionV4.vue.js";
8
8
  import x from "../icon/v4/IconV4.vue.js";
9
- const C = /* @__PURE__ */ s({
9
+ const C = /* @__PURE__ */ l({
10
10
  __name: "MultiBarMenu",
11
11
  props: {
12
- menuItems: { default: () => [] }
12
+ menuItems: { default: () => [] },
13
+ testId: { default: "" }
13
14
  },
14
15
  emits: ["selected"],
15
- setup(a, { emit: p }) {
16
- const n = (r) => r.title;
17
- return (r, i) => (l(), d(t(_), {
16
+ setup(n, { emit: a }) {
17
+ const o = (d) => d.title;
18
+ return (d, r) => (m(), p(t(b), {
18
19
  class: "multi-bar-menu",
19
- options: a.menuItems,
20
- "display-value": n,
20
+ options: n.menuItems,
21
+ "display-value": o,
21
22
  "predefined-trigger": "icon-button",
22
23
  placement: "right-end",
23
24
  skidding: -20,
24
- "onUpdate:selected": i[0] || (i[0] = (e) => p("selected", e))
25
+ "test-id": n.testId,
26
+ "onUpdate:selected": r[0] || (r[0] = (e) => a("selected", e))
25
27
  }, {
26
- default: o(({ option: e }) => [
27
- m(t(g), { option: e }, c({
28
- default: o(() => [
29
- u(" " + f(n(e)), 1)
28
+ default: i(({ option: e }) => [
29
+ s(t(g), {
30
+ option: e,
31
+ disabled: e.disabled
32
+ }, u({
33
+ default: i(() => [
34
+ c(" " + f(o(e)), 1)
30
35
  ]),
31
36
  _: 2
32
37
  }, [
33
38
  e.icon ? {
34
39
  name: "icon-start",
35
- fn: o(() => [
36
- m(t(x), {
40
+ fn: i(() => [
41
+ s(t(x), {
37
42
  name: e.icon,
38
43
  size: "20px"
39
44
  }, null, 8, ["name"])
40
45
  ]),
41
46
  key: "0"
42
47
  } : void 0
43
- ]), 1032, ["option"])
48
+ ]), 1032, ["option", "disabled"])
44
49
  ]),
45
50
  _: 1
46
- }, 8, ["options"]));
51
+ }, 8, ["options", "test-id"]));
47
52
  }
48
53
  });
49
54
  export {
@@ -8,6 +8,14 @@ declare const MultiBarTypes: () => import("vue").DefineComponent<{
8
8
  type: import("vue").PropType<"center" | "left">;
9
9
  default: string;
10
10
  };
11
+ zIndex: {
12
+ type: import("vue").PropType<number>;
13
+ default: number;
14
+ };
15
+ testId: {
16
+ type: import("vue").PropType<string>;
17
+ default: string;
18
+ };
11
19
  actions: {
12
20
  type: import("vue").PropType<import("./MultiBar.types").MultiBarAction[]>;
13
21
  default: () => any[];
@@ -41,6 +49,14 @@ declare const MultiBarTypes: () => import("vue").DefineComponent<{
41
49
  type: import("vue").PropType<"center" | "left">;
42
50
  default: string;
43
51
  };
52
+ zIndex: {
53
+ type: import("vue").PropType<number>;
54
+ default: number;
55
+ };
56
+ testId: {
57
+ type: import("vue").PropType<string>;
58
+ default: string;
59
+ };
44
60
  actions: {
45
61
  type: import("vue").PropType<import("./MultiBar.types").MultiBarAction[]>;
46
62
  default: () => any[];
@@ -68,6 +84,8 @@ declare const MultiBarTypes: () => import("vue").DefineComponent<{
68
84
  }, {
69
85
  size: "small" | "medium";
70
86
  position: "center" | "left";
87
+ zIndex: number;
88
+ testId: string;
71
89
  actions: import("./MultiBar.types").MultiBarAction[];
72
90
  appendToBody: boolean;
73
91
  selectedCount: number;
@@ -0,0 +1,30 @@
1
+ import { StatusDotTypes } from './types';
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ type: StatusDotTypes;
4
+ }>, {
5
+ type: string;
6
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
7
+ type: StatusDotTypes;
8
+ }>, {
9
+ type: string;
10
+ }>>>, {
11
+ type: StatusDotTypes;
12
+ }>;
13
+ export default _default;
14
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
+ type __VLS_TypePropsToRuntimeProps<T> = {
16
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
17
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
+ } : {
19
+ type: import('vue').PropType<T[K]>;
20
+ required: true;
21
+ };
22
+ };
23
+ type __VLS_WithDefaults<P, D> = {
24
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
25
+ default: D[K];
26
+ }> : P[K];
27
+ };
28
+ type __VLS_Prettify<T> = {
29
+ [K in keyof T]: T[K];
30
+ } & {};
@@ -0,0 +1,7 @@
1
+ import o from "./StatusDot.vue2.js";
2
+ /* empty css */import t from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../StatusDot.vue_vue_type_style_index_0_scoped_0c8a38e5_lang.css"; //*');
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0c8a38e5"]]);
5
+ export {
6
+ a as default
7
+ };
@@ -0,0 +1,15 @@
1
+ import "../../StatusDot.vue_vue_type_style_index_0_scoped_0c8a38e5_lang.css"; import { defineComponent as t, openBlock as s, createElementBlock as o, normalizeClass as a } from "vue";
2
+ const r = /* @__PURE__ */ t({
3
+ __name: "StatusDot",
4
+ props: {
5
+ type: { default: "success" }
6
+ },
7
+ setup(e) {
8
+ return (n, c) => (s(), o("div", {
9
+ class: a([e.type, "status-dot"])
10
+ }, null, 2));
11
+ }
12
+ });
13
+ export {
14
+ r as default
15
+ };
@@ -0,0 +1,17 @@
1
+ import StatusDot from './StatusDot.vue';
2
+ declare const StatusDotTypes: () => import("vue").DefineComponent<{
3
+ type: {
4
+ type: import("vue").PropType<"default" | "disabled" | "success" | "warning" | "error" | "archive">;
5
+ required: true;
6
+ default: string;
7
+ };
8
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
+ type: {
10
+ type: import("vue").PropType<"default" | "disabled" | "success" | "warning" | "error" | "archive">;
11
+ required: true;
12
+ default: string;
13
+ };
14
+ }>>, {
15
+ type: "default" | "disabled" | "success" | "warning" | "error" | "archive";
16
+ }>[];
17
+ export { StatusDot, StatusDotTypes };
@@ -0,0 +1,6 @@
1
+ import t from "./StatusDot.vue.js";
2
+ const s = () => [t];
3
+ export {
4
+ t as StatusDot,
5
+ s as StatusDotTypes
6
+ };
@@ -0,0 +1,2 @@
1
+ export declare const STATUS_DOT_TYPES: readonly ["disabled", "default", "success", "warning", "archive", "error"];
2
+ export type StatusDotTypes = (typeof STATUS_DOT_TYPES)[number];
@@ -1,9 +1,9 @@
1
- import { ref as a, provide as z, computed as i, useSlots as G, onMounted as K, nextTick as N } from "vue";
1
+ import { useSlots as z, ref as a, provide as G, computed as s, onMounted as K, nextTick as N } from "vue";
2
2
  import { useVirtualList as V, useInfiniteScroll as j } from "@vueuse/core";
3
3
  import { TableContext as q } from "./TableContext.js";
4
4
  const F = 46, J = 46, Z = (o, u) => {
5
- const c = a([]);
6
- z(q, {
5
+ const v = z(), c = a([]);
6
+ G(q, {
7
7
  onClose({ rowIndex: t, cellIndex: e, value: n } = {}) {
8
8
  n && (c.value = [...c.value, t], u("saveRow", {
9
9
  rowIndex: t,
@@ -11,37 +11,37 @@ const F = 46, J = 46, Z = (o, u) => {
11
11
  value: n,
12
12
  confirm: () => {
13
13
  c.value = c.value.filter(
14
- (s) => s !== t
14
+ (i) => i !== t
15
15
  );
16
16
  }
17
17
  }));
18
18
  }
19
19
  });
20
- const m = i(() => !!o.selection), T = i(() => {
21
- const t = (m.value ? `${J}px ` : "") + (C.value ? `${F}px ` : "");
20
+ const x = s(() => !!o.selection), T = s(() => {
21
+ const t = (x.value ? `${J}px ` : "") + (g.value ? `${F}px ` : "");
22
22
  return o.columns.reduce((e, n) => {
23
- const s = n.width ? `${n.width}px` : `${n.colSpan || 1}fr`;
24
- return `${e} ${s}`;
23
+ const i = n.width ? `${n.width}px` : `${n.colSpan || 1}fr`;
24
+ return `${e} ${i}`;
25
25
  }, t);
26
- }), R = a(null), y = i(() => Array(o.loadingRowCount).fill(
26
+ }), g = s(() => !!v.expanded), R = a(null), y = s(() => Array(o.loadingRowCount).fill(
27
27
  Array(o.columns.length).fill("")
28
- )), $ = i(() => o.isLoading ? [...o.rows, ...y.value] : o.rows), { list: v, containerProps: l, wrapperProps: b } = V($, {
29
- itemHeight: (t) => h[t] ?? o.rowHeight
30
- }), H = a(null), g = a(0), x = G(), k = i(() => !!x.search), B = (t) => {
31
- l.onScroll(), g.value = t.target.scrollLeft + t.target.getBoundingClientRect().width, u("onScroll", t.target.scrollTop);
28
+ )), H = s(() => o.isLoading ? [...o.rows, ...y.value] : o.rows), { list: C, containerProps: l, wrapperProps: $ } = V(H, {
29
+ itemHeight: g.value ? (t) => w[t] ?? o.rowHeight : o.rowHeight
30
+ }), b = a(null), h = a(0), k = s(() => !!v.search), B = (t) => {
31
+ l.onScroll(), h.value = t.target.scrollLeft + t.target.getBoundingClientRect().width, u("onScroll", t.target.scrollTop);
32
32
  };
33
33
  K(() => {
34
- g.value = l.ref.value?.getBoundingClientRect().width, o.defaultScrollPosition && setTimeout(() => {
34
+ h.value = l.ref.value?.getBoundingClientRect().width, o.defaultScrollPosition && setTimeout(() => {
35
35
  l.ref.value?.scrollTo({
36
36
  top: o.defaultScrollPosition,
37
37
  behavior: "smooth"
38
38
  });
39
39
  }, 300);
40
40
  });
41
- const I = i(() => {
42
- const [t] = v.value;
41
+ const I = s(() => {
42
+ const [t] = C.value;
43
43
  return t && t.index > 0;
44
- }), O = i(() => l.style), P = i(() => o.columns.reduce((t, e) => (e.isSticky && (t[e.id] = A(e)), t), {}));
44
+ }), O = s(() => l.style), P = s(() => o.columns.reduce((t, e) => (e.isSticky && (t[e.id] = A(e)), t), {}));
45
45
  j(
46
46
  l.ref,
47
47
  () => {
@@ -61,37 +61,37 @@ const F = 46, J = 46, Z = (o, u) => {
61
61
  const e = o.sort.sortBy === t.id;
62
62
  if (!(t.isSortable || t.isSortable === void 0))
63
63
  return;
64
- let s = o.sort.sortOrder, f = o.sort.sortBy;
65
- e ? s = o.sort.sortOrder === "asc" ? "desc" : "asc" : f = t.id, u("update:sort", { sortBy: f, sortOrder: s });
64
+ let i = o.sort.sortOrder, f = o.sort.sortBy;
65
+ e ? i = o.sort.sortOrder === "asc" ? "desc" : "asc" : f = t.id, u("update:sort", { sortBy: f, sortOrder: i });
66
66
  }
67
67
  function A(t) {
68
68
  const { isSticky: e, width: n } = t;
69
69
  if (!e || !n)
70
70
  return null;
71
- const s = o.columns.findIndex((r) => r.id === t.id), f = o.columns.reduce((r, S, w) => w < s ? r + S.width : r, 0), X = o.columns.reduce((r, S, w) => w > s ? r + S.width : r, 0);
71
+ const i = o.columns.findIndex((r) => r.id === t.id), f = o.columns.reduce((r, S, m) => m < i ? r + S.width : r, 0), X = o.columns.reduce((r, S, m) => m > i ? r + S.width : r, 0);
72
72
  return {
73
73
  ...t.isStickyRight ? { right: `${X}px` } : { left: `${f}px` },
74
74
  zIndex: 1
75
75
  };
76
76
  }
77
- const d = a([]), h = {}, _ = (t) => d.value.includes(t), D = async (t, e) => {
77
+ const d = a([]), w = {}, _ = (t) => d.value.includes(t), D = async (t, e) => {
78
78
  const n = d.value.indexOf(t);
79
79
  if (n === -1) {
80
80
  d.value.push(t);
81
- const s = e.target.closest("tr");
82
- await N(), s && (h[t] = s.offsetHeight);
81
+ const i = e.target.closest("tr");
82
+ await N(), i && (w[t] = i.offsetHeight);
83
83
  } else
84
- d.value.splice(n, 1), delete h[t];
85
- }, C = i(() => !!x.expanded), M = i(() => `${o.rowHeight}px`), W = i(
84
+ d.value.splice(n, 1), delete w[t];
85
+ }, M = s(() => `${o.rowHeight}px`), W = s(
86
86
  () => `1 / span ${o.columns.length + 1}`
87
87
  );
88
88
  return {
89
- list: v,
89
+ list: C,
90
90
  containerProps: l,
91
- wrapperProps: b,
91
+ wrapperProps: $,
92
92
  activeRow: R,
93
93
  gridColumnTemplate: T,
94
- floatingActionRef: H,
94
+ floatingActionRef: b,
95
95
  scrollToTop: E,
96
96
  toggleSortOrder: L,
97
97
  columnsStickyPositions: P,
@@ -100,9 +100,9 @@ const F = 46, J = 46, Z = (o, u) => {
100
100
  containerStyle: O,
101
101
  onScroll: B,
102
102
  savingRows: c,
103
- floatingActionPosition: g,
104
- hasExpandSlot: C,
105
- hasCheckboxes: m,
103
+ floatingActionPosition: h,
104
+ hasExpandSlot: g,
105
+ hasCheckboxes: x,
106
106
  toggleExpandRow: D,
107
107
  isRowExpanded: _,
108
108
  cssRowHeight: M,