@ironsource/shared-ui 2.2.0-test.2 → 2.2.0-test.20

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 (129) hide show
  1. package/AppHeader.vue_vue_type_style_index_0_scoped_18bc6c0d_lang.css +1 -0
  2. package/ButtonV4.vue_vue_type_style_index_0_scoped_a59af1ad_lang.css +1 -0
  3. package/CalendarMonth.vue_vue_type_style_index_0_scoped_a44769fd_lang.css +1 -0
  4. package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_6eae923a_lang.css +1 -0
  5. package/Chart.vue_vue_type_style_index_0_scoped_3ed9f4bc_lang.css +1 -0
  6. package/ChartHeader.vue_vue_type_style_index_0_scoped_3a061c08_lang.css +1 -0
  7. package/ChartPlane.vue_vue_type_style_index_0_scoped_6de5cddb_lang.css +1 -0
  8. package/ColumnPicker.vue_vue_type_style_index_0_scoped_d59af062_lang.css +1 -0
  9. package/DataGrid.vue_vue_type_style_index_0_scoped_0967498f_lang.css +1 -0
  10. package/DateRange.vue_vue_type_style_index_0_scoped_25d03907_lang.css +1 -0
  11. package/DateRangeV4.vue_vue_type_style_index_0_scoped_f8826716_lang.css +1 -0
  12. package/IconV4.vue_vue_type_style_index_0_scoped_6683c5b5_lang.css +1 -0
  13. package/InlineCopy.vue_vue_type_style_index_0_scoped_9fa1921a_lang.css +1 -0
  14. package/SectionDropdown.vue_vue_type_style_index_0_scoped_65877e48_lang.css +1 -0
  15. package/SnackbarV4.vue_vue_type_style_index_0_scoped_35c79635_lang.css +1 -0
  16. package/SwitchV4.vue_vue_type_style_index_0_scoped_b71a806e_lang.css +1 -0
  17. package/Tag.vue_vue_type_style_index_0_scoped_78f19cb0_lang.css +1 -0
  18. package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
  19. package/TooltipV4.vue_vue_type_style_index_0_scoped_a8aebfee_lang.css +1 -0
  20. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  21. package/components/appHeader/AppHeader.vue.js +3 -3
  22. package/components/appHeader/AppHeader.vue2.js +43 -44
  23. package/components/button/v3/Button.vue.d.ts +6 -6
  24. package/components/button/v3/index.d.ts +14 -14
  25. package/components/button/v4/ButtonV4.vue.js +3 -3
  26. package/components/button/v4/ButtonV4.vue2.js +1 -1
  27. package/components/chart/Chart.vue.d.ts +5 -0
  28. package/components/chart/Chart.vue.js +3 -3
  29. package/components/chart/Chart.vue2.js +14 -12
  30. package/components/chart/ChartHeader.vue.d.ts +5 -0
  31. package/components/chart/ChartHeader.vue.js +3 -3
  32. package/components/chart/ChartHeader.vue2.js +73 -49
  33. package/components/chart/ChartPlane.vue.d.ts +5 -0
  34. package/components/chart/ChartPlane.vue.js +3 -3
  35. package/components/chart/ChartPlane.vue2.js +33 -31
  36. package/components/chart/ChartStoryArgs.d.ts +6 -0
  37. package/components/chart/index.d.ts +20 -1
  38. package/components/columnConfigurator/SectionDropdown.vue.js +3 -3
  39. package/components/columnConfigurator/SectionDropdown.vue2.js +6 -7
  40. package/components/columnPicker/ColumnPicker.vue.d.ts +2 -0
  41. package/components/columnPicker/ColumnPicker.vue.js +3 -3
  42. package/components/columnPicker/ColumnPicker.vue2.js +173 -153
  43. package/components/columnPicker/index.d.ts +7 -1
  44. package/components/dateRange/common/CalendarMonth.common.js +46 -41
  45. package/components/dateRange/common/DateRange.common.d.ts +1 -0
  46. package/components/dateRange/common/DateRange.common.js +39 -38
  47. package/components/dateRange/common/consts.common.d.ts +5 -0
  48. package/components/dateRange/common/consts.common.js +9 -0
  49. package/components/dateRange/v3/CalendarMonth.vue.d.ts +5 -0
  50. package/components/dateRange/v3/CalendarMonth.vue.js +3 -3
  51. package/components/dateRange/v3/CalendarMonth.vue2.js +6 -5
  52. package/components/dateRange/v3/DateRange.vue.d.ts +8 -3
  53. package/components/dateRange/v3/DateRange.vue.js +2 -2
  54. package/components/dateRange/v3/DateRange.vue2.js +2 -1
  55. package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
  56. package/components/dateRange/v3/index.d.ts +27 -8
  57. package/components/dateRange/v4/CalendarMonthV4.vue.d.ts +5 -0
  58. package/components/dateRange/v4/CalendarMonthV4.vue.js +4 -4
  59. package/components/dateRange/v4/CalendarMonthV4.vue2.js +12 -11
  60. package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
  61. package/components/dateRange/v4/DateRangeV4.vue.d.ts +8 -3
  62. package/components/dateRange/v4/DateRangeV4.vue.js +3 -3
  63. package/components/dateRange/v4/DateRangeV4.vue2.js +104 -101
  64. package/components/dateRange/v4/index.d.ts +27 -8
  65. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -1
  66. package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
  67. package/components/emptyState/v3/index.d.ts +7 -7
  68. package/components/icon/v4/IconV4.vue.d.ts +5 -0
  69. package/components/icon/v4/IconV4.vue.js +2 -2
  70. package/components/icon/v4/IconV4.vue2.js +27 -26
  71. package/components/icon/v4/index.d.ts +20 -1
  72. package/components/includeExclude/index.d.ts +16 -16
  73. package/components/inlineCopy/InlineCopy.vue.d.ts +15 -0
  74. package/components/inlineCopy/InlineCopy.vue.js +2 -2
  75. package/components/inlineCopy/InlineCopy.vue2.js +80 -51
  76. package/components/inlineCopy/index.d.ts +27 -0
  77. package/components/snackbar/common/notify.js +25 -25
  78. package/components/snackbar/common/snackbar.common.js +19 -19
  79. package/components/snackbar/common/snackbar.types.d.ts +2 -1
  80. package/components/snackbar/v4/SnackbarV4.vue.d.ts +8 -1
  81. package/components/snackbar/v4/SnackbarV4.vue.js +2 -2
  82. package/components/snackbar/v4/SnackbarV4.vue2.js +85 -64
  83. package/components/switch/v4/SwitchV4.vue.d.ts +5 -0
  84. package/components/switch/v4/SwitchV4.vue.js +4 -4
  85. package/components/switch/v4/SwitchV4.vue2.js +14 -13
  86. package/components/switch/v4/index.d.ts +9 -0
  87. package/components/table/v4/DataGrid.vue.d.ts +2 -0
  88. package/components/table/v4/DataGrid.vue.js +4 -4
  89. package/components/table/v4/DataGrid.vue2.js +82 -80
  90. package/components/table/v4/index.d.ts +7 -1
  91. package/components/table-cells/v3/Editable.vue.d.ts +1 -1
  92. package/components/table-cells/v3/index.d.ts +20 -20
  93. package/components/table-cells/v4/EditableV4.vue.d.ts +1 -1
  94. package/components/table-cells/v4/index.d.ts +20 -20
  95. package/components/tag/Tag.vue.d.ts +112 -0
  96. package/components/tag/Tag.vue.js +7 -0
  97. package/components/tag/Tag.vue2.js +221 -0
  98. package/components/tag/index.d.ts +161 -0
  99. package/components/tag/index.js +6 -0
  100. package/components/tagsField/index.d.ts +42 -3
  101. package/components/tagsField/index.js +6 -4
  102. package/components/tooltip/v4/TooltipV4.vue.d.ts +5 -0
  103. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  104. package/components/tooltip/v4/TooltipV4.vue2.js +76 -36
  105. package/components/tooltip/v4/index.d.ts +20 -1
  106. package/design-foundation.stories/colors/ColorsData.d.ts +1 -0
  107. package/index.d.ts +281 -82
  108. package/index.js +84 -78
  109. package/package.json +2 -7
  110. package/style/v4/colors.scss +1 -1
  111. package/style/v4/grid.css +1 -1
  112. package/style/v4/grid.css.map +1 -1
  113. package/AppHeader.vue_vue_type_style_index_0_scoped_9202b5db_lang.css +0 -1
  114. package/ButtonV4.vue_vue_type_style_index_0_scoped_afe44a65_lang.css +0 -1
  115. package/CalendarMonth.vue_vue_type_style_index_0_scoped_acd3440c_lang.css +0 -1
  116. package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_b0d3ea50_lang.css +0 -1
  117. package/Chart.vue_vue_type_style_index_0_scoped_060d02be_lang.css +0 -1
  118. package/ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css +0 -1
  119. package/ChartPlane.vue_vue_type_style_index_0_scoped_3c887f7e_lang.css +0 -1
  120. package/ColumnPicker.vue_vue_type_style_index_0_scoped_01c4e08f_lang.css +0 -1
  121. package/DataGrid.vue_vue_type_style_index_0_scoped_cd41c5ca_lang.css +0 -1
  122. package/DateRange.vue_vue_type_style_index_0_scoped_70e316e9_lang.css +0 -1
  123. package/DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_lang.css +0 -1
  124. package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +0 -1
  125. package/InlineCopy.vue_vue_type_style_index_0_scoped_ad48b61e_lang.css +0 -1
  126. package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +0 -1
  127. package/SnackbarV4.vue_vue_type_style_index_0_scoped_1b650c39_lang.css +0 -1
  128. package/SwitchV4.vue_vue_type_style_index_0_scoped_0a80c49f_lang.css +0 -1
  129. package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +0 -1
@@ -1,18 +1,22 @@
1
- import "../../../SnackbarV4.vue_vue_type_style_index_0_scoped_1b650c39_lang.css"; import { defineComponent as $, computed as A, openBlock as n, createBlock as d, Transition as O, withCtx as f, withDirectives as I, createElementVNode as a, mergeProps as l, unref as t, createVNode as z, createTextVNode as T, toDisplayString as h, createCommentVNode as u, renderSlot as B, vShow as N, createElementBlock as S, Fragment as V, renderList as x, withModifiers as U } from "vue";
2
- import D from "../../icon/v4/IconV4.vue.js";
1
+ import "../../../SnackbarV4.vue_vue_type_style_index_0_scoped_35c79635_lang.css"; import { defineComponent as $, computed as O, onMounted as x, nextTick as z, openBlock as s, createBlock as l, Transition as V, withCtx as y, withDirectives as I, createElementVNode as r, mergeProps as c, unref as e, createElementBlock as g, createVNode as U, createTextVNode as b, toDisplayString as B, createCommentVNode as u, renderSlot as N, vShow as S, Fragment as D, renderList as H, withModifiers as q } from "vue";
2
+ import F from "../../icon/v4/IconV4.vue.js";
3
3
  import "../../icon/v4/IconFlag.vue.js";
4
- import H from "../../button/v4/ButtonV4.vue.js";
5
- import F from "../../button/v4/IconButtonV4.vue.js";
4
+ import G from "../../button/v4/ButtonV4.vue.js";
5
+ import P from "../../button/v4/IconButtonV4.vue.js";
6
6
  import "../../button/v4/ButtonGroup.vue.js";
7
7
  import "../../button/v4/ToggleButtonGroupAB.vue.js";
8
- import b from "../../typography/v4/Typography.vue.js";
9
- import { snackbarCommon as G } from "../common/snackbar.common.js";
10
- import { useTestIdAttrs as P } from "../../../utils/testIds.js";
8
+ import p from "../../typography/v4/Typography.vue.js";
9
+ import { snackbarCommon as R } from "../common/snackbar.common.js";
10
+ import { useTestIdAttrs as j } from "../../../utils/testIds.js";
11
11
  import { SnackbarTestIdModifiers as i } from "../../../testids/index.js";
12
- const R = ["id"], j = { class: "container" }, q = { class: "texts" }, J = { class: "message" }, K = { class: "action-wrapper" }, Q = {
12
+ import J from "../../loader/v4/Loader.vue.js";
13
+ const K = ["id"], Q = { class: "container" }, W = { class: "texts" }, X = {
14
+ key: 0,
15
+ class: "snackbar-icon-loading"
16
+ }, Y = { class: "message" }, Z = { class: "action-wrapper" }, _ = {
13
17
  key: 0,
14
18
  class: "actions"
15
- }, W = { class: "close-button-wrapper" }, lt = /* @__PURE__ */ $({
19
+ }, ee = { class: "close-button-wrapper" }, fe = /* @__PURE__ */ $({
16
20
  __name: "SnackbarV4",
17
21
  props: {
18
22
  customClass: null,
@@ -29,18 +33,19 @@ const R = ["id"], j = { class: "container" }, q = { class: "texts" }, J = { clas
29
33
  title: { default: "" },
30
34
  zIndex: { default: 0 },
31
35
  actionButtons: null,
32
- testId: { default: "" }
36
+ testId: { default: "" },
37
+ isLoading: { type: Boolean, default: !1 }
33
38
  },
34
39
  emits: ["destroy"],
35
- setup(e) {
36
- const m = e, {
37
- visible: p,
38
- horizontalClass: w,
39
- positionStyle: L,
40
- clearTimer: k,
41
- startTimer: C,
42
- close: y
43
- } = G(m), E = {
40
+ setup(t, { expose: w }) {
41
+ const m = t, {
42
+ visible: L,
43
+ horizontalClass: A,
44
+ positionStyle: E,
45
+ clearTimer: C,
46
+ startTimer: v,
47
+ close: f
48
+ } = R(m), h = {
44
49
  info: {
45
50
  iconName: "info",
46
51
  class: "snackbar-icon-info"
@@ -52,86 +57,102 @@ const R = ["id"], j = { class: "container" }, q = { class: "texts" }, J = { clas
52
57
  success: {
53
58
  iconName: "check-circle",
54
59
  class: "snackbar-icon-success"
60
+ },
61
+ loading: {
62
+ iconName: "circle-notch"
55
63
  }
56
- }, v = A(() => E[m.type]), r = P(m.testId, i), M = ({ closeOnClick: c, onClick: o }) => () => {
57
- c && y(), o && o();
64
+ }, k = O(() => h[m.type]), d = j(m.testId, i);
65
+ x(() => {
66
+ z(() => {
67
+ document.querySelectorAll(".snackbar-icon-loading circle").forEach((o) => {
68
+ o.setAttribute("r", "45%");
69
+ });
70
+ });
71
+ });
72
+ const M = ({ closeOnClick: a, onClick: o }) => () => {
73
+ a && f(), o && o();
58
74
  };
59
- return (c, o) => (n(), d(O, {
75
+ return w({
76
+ close: f
77
+ }), (a, o) => (s(), l(V, {
60
78
  name: "snackbar",
61
- onBeforeLeave: e.onClose,
62
- onAfterLeave: o[3] || (o[3] = (s) => c.$emit("destroy"))
79
+ onBeforeLeave: t.onClose,
80
+ onAfterLeave: o[3] || (o[3] = (n) => a.$emit("destroy"))
63
81
  }, {
64
- default: f(() => [
65
- I(a("div", l({
66
- id: e.id,
67
- class: ["snackbar light-theme-v4", [e.customClass, t(w)]],
68
- style: t(L),
82
+ default: y(() => [
83
+ I(r("div", c({
84
+ id: t.id,
85
+ class: ["snackbar light-theme-v4", [t.customClass, e(A)]],
86
+ style: e(E),
69
87
  role: "alert"
70
- }, t(r)[t(i).CONTAINER], {
88
+ }, e(d)[e(i).CONTAINER], {
71
89
  onMouseenter: o[0] || (o[0] = //@ts-ignore
72
- (...s) => t(k) && t(k)(...s)),
90
+ (...n) => e(C) && e(C)(...n)),
73
91
  onMouseleave: o[1] || (o[1] = //@ts-ignore
74
- (...s) => t(C) && t(C)(...s)),
92
+ (...n) => e(v) && e(v)(...n)),
75
93
  onClick: o[2] || (o[2] = //@ts-ignore
76
- (...s) => e.onClick && e.onClick(...s))
94
+ (...n) => t.onClick && t.onClick(...n))
77
95
  }), [
78
- a("div", j, [
79
- a("div", q, [
80
- e.title ? (n(), d(t(b), l({
96
+ r("div", Q, [
97
+ r("div", W, [
98
+ t.title ? (s(), l(e(p), c({
81
99
  key: 0,
82
100
  variant: "h4",
83
101
  class: "title"
84
- }, t(r)[t(i).TITLE]), {
85
- default: f(() => [
86
- z(t(D), l({
87
- name: t(v).iconName,
102
+ }, e(d)[e(i).TITLE]), {
103
+ default: y(() => [
104
+ e(k) === h.loading ? (s(), g("div", X, [
105
+ U(J, { "stroke-width": 1 })
106
+ ])) : (s(), l(e(F), c({
107
+ key: 1,
108
+ name: e(k).iconName,
88
109
  type: "fill",
89
110
  size: "20px",
90
- class: [t(v).class, "icon-container"]
91
- }, t(r)[t(i).ICON]), null, 16, ["name", "class"]),
92
- T(" " + h(e.title), 1)
111
+ class: [e(k).class, "icon-container"]
112
+ }, e(d)[e(i).ICON]), null, 16, ["name", "class"])),
113
+ b(" " + B(t.title), 1)
93
114
  ]),
94
115
  _: 1
95
116
  }, 16)) : u("", !0),
96
- I(a("div", J, [
97
- B(c.$slots, "default", {}, () => [
98
- e.dangerouslyUseHTMLString ? u("", !0) : (n(), d(t(b), l({
117
+ I(r("div", Y, [
118
+ N(a.$slots, "default", {}, () => [
119
+ t.dangerouslyUseHTMLString ? u("", !0) : (s(), l(e(p), c({
99
120
  key: 0,
100
121
  variant: "body2"
101
- }, t(r)[t(i).MESSAGE]), {
102
- default: f(() => [
103
- T(h(e.message), 1)
122
+ }, e(d)[e(i).MESSAGE]), {
123
+ default: y(() => [
124
+ b(B(t.message), 1)
104
125
  ]),
105
126
  _: 1
106
127
  }, 16))
107
128
  ], !0)
108
129
  ], 512), [
109
- [N, e.message]
130
+ [S, t.message]
110
131
  ]),
111
- a("div", K, [
112
- B(c.$slots, "actions", {}, () => [
113
- e.actionButtons ? (n(), S("div", Q, [
114
- (n(!0), S(V, null, x(e.actionButtons, (s, g) => (n(), d(t(H), l({
115
- key: g,
116
- "data-testid": e.testId ? `${e.testId}-${t(i).ACTION_BUTTON}-${g}` : "",
132
+ r("div", Z, [
133
+ N(a.$slots, "actions", {}, () => [
134
+ t.actionButtons ? (s(), g("div", _, [
135
+ (s(!0), g(D, null, H(t.actionButtons, (n, T) => (s(), l(e(G), c({
136
+ key: T,
137
+ "data-testid": t.testId ? `${t.testId}-${e(i).ACTION_BUTTON}-${T}` : "",
117
138
  size: "small"
118
- }, { ...s, onClick: M(s) }), null, 16, ["data-testid"]))), 128))
139
+ }, { ...n, onClick: M(n) }), null, 16, ["data-testid"]))), 128))
119
140
  ])) : u("", !0)
120
141
  ], !0)
121
142
  ])
122
143
  ]),
123
- a("div", W, [
124
- e.showClose ? (n(), d(t(F), l({
144
+ r("div", ee, [
145
+ t.showClose ? (s(), l(e(P), c({
125
146
  key: 0,
126
147
  "icon-name": "x",
127
148
  size: "small"
128
- }, t(r)[t(i).CLOSE], {
129
- onClick: U(t(y), ["stop"])
149
+ }, e(d)[e(i).CLOSE], {
150
+ onClick: q(e(f), ["stop"])
130
151
  }), null, 16, ["onClick"])) : u("", !0)
131
152
  ])
132
153
  ])
133
- ], 16, R), [
134
- [N, t(p)]
154
+ ], 16, K), [
155
+ [S, e(L)]
135
156
  ])
136
157
  ]),
137
158
  _: 3
@@ -139,5 +160,5 @@ const R = ["id"], j = { class: "container" }, q = { class: "texts" }, J = { clas
139
160
  }
140
161
  });
141
162
  export {
142
- lt as default
163
+ fe as default
143
164
  };
@@ -7,12 +7,14 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
7
7
  iconKey?: string;
8
8
  tooltipTextKey?: string;
9
9
  tooltipPlacement?: TooltipPositions;
10
+ iconSize?: 'extraSmall' | 'small' | 'medium' | 'large' | 'extraLarge';
10
11
  }>, {
11
12
  testId: string;
12
13
  variant: string;
13
14
  iconKey: string;
14
15
  tooltipTextKey: string;
15
16
  tooltipPlacement: string;
17
+ iconSize: string;
16
18
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
19
  "update:modelValue": (...args: any[]) => void;
18
20
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -23,18 +25,21 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
23
25
  iconKey?: string;
24
26
  tooltipTextKey?: string;
25
27
  tooltipPlacement?: TooltipPositions;
28
+ iconSize?: 'extraSmall' | 'small' | 'medium' | 'large' | 'extraLarge';
26
29
  }>, {
27
30
  testId: string;
28
31
  variant: string;
29
32
  iconKey: string;
30
33
  tooltipTextKey: string;
31
34
  tooltipPlacement: string;
35
+ iconSize: string;
32
36
  }>>> & {
33
37
  "onUpdate:modelValue"?: (...args: any[]) => any;
34
38
  }, {
35
39
  testId: string;
36
40
  variant: 'primary' | 'default';
37
41
  tooltipPlacement: TooltipPositions;
42
+ iconSize: 'extraSmall' | 'small' | 'medium' | 'large' | 'extraLarge';
38
43
  iconKey: string;
39
44
  tooltipTextKey: string;
40
45
  }>;
@@ -1,7 +1,7 @@
1
1
  import o from "./SwitchV4.vue2.js";
2
- /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_0a80c49f_lang.css"; //*');
4
- const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-0a80c49f"]]);
2
+ /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_b71a806e_lang.css"; //*');
4
+ const c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-b71a806e"]]);
5
5
  export {
6
- s as default
6
+ c as default
7
7
  };
@@ -1,12 +1,12 @@
1
- import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_0a80c49f_lang.css"; import { defineComponent as T, ref as h, onMounted as k, openBlock as c, createElementBlock as r, normalizeClass as m, unref as a, Fragment as x, renderList as V, createBlock as w, withCtx as y, createVNode as C } from "vue";
1
+ import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_b71a806e_lang.css"; import { defineComponent as T, ref as h, onMounted as k, openBlock as c, createElementBlock as u, normalizeClass as m, unref as a, Fragment as x, renderList as V, createBlock as w, withCtx as y, createVNode as C } from "vue";
2
2
  import { useVModel as I } from "@vueuse/core";
3
- import { SwitchTestIdModifiers as u } from "../../../testids/index.js";
3
+ import { SwitchTestIdModifiers as r } from "../../../testids/index.js";
4
4
  import "../../button/v4/ButtonV4.vue.js";
5
5
  import $ from "../../button/v4/IconButtonV4.vue.js";
6
6
  import "../../button/v4/ButtonGroup.vue.js";
7
7
  import "../../button/v4/ToggleButtonGroupAB.vue.js";
8
- import B from "../../tooltip/v4/TooltipV4.vue.js";
9
- const K = ["data-testid"], A = /* @__PURE__ */ T({
8
+ import z from "../../tooltip/v4/TooltipV4.vue.js";
9
+ const B = ["data-testid"], A = /* @__PURE__ */ T({
10
10
  __name: "SwitchV4",
11
11
  props: {
12
12
  options: null,
@@ -15,7 +15,8 @@ const K = ["data-testid"], A = /* @__PURE__ */ T({
15
15
  testId: { default: "" },
16
16
  iconKey: { default: "icon" },
17
17
  tooltipTextKey: { default: "tooltipText" },
18
- tooltipPlacement: { default: "top" }
18
+ tooltipPlacement: { default: "top" },
19
+ iconSize: { default: "small" }
19
20
  },
20
21
  emits: ["update:modelValue"],
21
22
  setup(t, { emit: f }) {
@@ -28,11 +29,11 @@ const K = ["data-testid"], A = /* @__PURE__ */ T({
28
29
  const v = (e, s) => {
29
30
  n.value = s, p.value = e;
30
31
  };
31
- return (e, s) => (c(), r("div", {
32
+ return (e, s) => (c(), u("div", {
32
33
  class: m(["switch", [`switch--variant-${t.variant}`]]),
33
- "data-testid": `${t.testId}-${a(u).WRAPPER}`
34
+ "data-testid": `${t.testId}-${a(r).WRAPPER}`
34
35
  }, [
35
- (c(!0), r(x, null, V(t.options, (o, l) => (c(), w(a(B), {
36
+ (c(!0), u(x, null, V(t.options, (o, l) => (c(), w(a(z), {
36
37
  key: l,
37
38
  text: o[t.tooltipTextKey],
38
39
  disabled: !o[t.tooltipTextKey],
@@ -43,15 +44,15 @@ const K = ["data-testid"], A = /* @__PURE__ */ T({
43
44
  C(a($), {
44
45
  class: m(["option", { "option--selected": d(l) }]),
45
46
  "icon-name": o[t.iconKey],
46
- size: "small",
47
+ size: t.iconSize,
47
48
  color: d(l) ? t.variant : "default",
48
- "data-testid": `${t.testId}-${a(u).BUTTON}`,
49
- onClick: (P) => v(o, l)
50
- }, null, 8, ["class", "icon-name", "color", "data-testid", "onClick"])
49
+ "data-testid": `${t.testId}-${a(r).BUTTON}`,
50
+ onClick: (K) => v(o, l)
51
+ }, null, 8, ["class", "icon-name", "size", "color", "data-testid", "onClick"])
51
52
  ]),
52
53
  _: 2
53
54
  }, 1032, ["text", "disabled", "placement"]))), 128))
54
- ], 10, K));
55
+ ], 10, B));
55
56
  }
56
57
  });
57
58
  export {
@@ -16,6 +16,10 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
16
16
  type: import("vue").PropType<unknown>;
17
17
  required: true;
18
18
  };
19
+ iconSize: {
20
+ type: import("vue").PropType<"small" | "medium" | "large" | "extraLarge" | "extraSmall">;
21
+ default: string;
22
+ };
19
23
  options: {
20
24
  type: import("vue").PropType<unknown[]>;
21
25
  required: true;
@@ -48,6 +52,10 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
48
52
  type: import("vue").PropType<unknown>;
49
53
  required: true;
50
54
  };
55
+ iconSize: {
56
+ type: import("vue").PropType<"small" | "medium" | "large" | "extraLarge" | "extraSmall">;
57
+ default: string;
58
+ };
51
59
  options: {
52
60
  type: import("vue").PropType<unknown[]>;
53
61
  required: true;
@@ -66,6 +74,7 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
66
74
  testId: string;
67
75
  variant: "default" | "primary";
68
76
  tooltipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
77
+ iconSize: "small" | "medium" | "large" | "extraLarge" | "extraSmall";
69
78
  iconKey: string;
70
79
  tooltipTextKey: string;
71
80
  }>[];
@@ -77,6 +77,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
77
77
  selectAll: (value: boolean) => void;
78
78
  selectRow: (value: boolean) => void;
79
79
  clickRow: (rowIndex: number) => void;
80
+ columnHover: (column: Column) => void;
80
81
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
81
82
  title?: string;
82
83
  columns: Column[];
@@ -153,6 +154,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
153
154
  onOnClearSearch?: () => any;
154
155
  onClickRow?: (rowIndex: number) => any;
155
156
  onSelectRow?: (value: boolean) => any;
157
+ onColumnHover?: (column: Column) => any;
156
158
  }, {
157
159
  sort: Sort;
158
160
  title: string;
@@ -1,7 +1,7 @@
1
1
  import o from "./DataGrid.vue2.js";
2
- /* empty css */import c from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_cd41c5ca_lang.css"; //*');
4
- const e = /* @__PURE__ */ c(o, [["__scopeId", "data-v-cd41c5ca"]]);
2
+ /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_0967498f_lang.css"; //*');
4
+ const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-0967498f"]]);
5
5
  export {
6
- e as default
6
+ a as default
7
7
  };