@ironsource/shared-ui 2.1.7-test.2 → 2.1.7-test.4

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 (71) hide show
  1. package/Autocomplete.vue_vue_type_style_index_0_scoped_e361f9fd_lang.css +1 -0
  2. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_0ce71f73_lang.css +1 -0
  3. package/DropdownV4.vue_vue_type_style_index_0_scoped_938772ee_lang.css +1 -0
  4. package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +1 -0
  5. package/IncludeExclude.vue_vue_type_style_index_0_scoped_cc2adbf5_lang.css +1 -0
  6. package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_bd6145ce_lang.css +1 -0
  7. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_1bdca43d_lang.css +1 -0
  8. package/OptionV4.vue_vue_type_style_index_0_scoped_b6a06f00_lang.css +1 -0
  9. package/Popover.vue_vue_type_style_index_0_scoped_c607b770_lang.css +1 -0
  10. package/PopoverV4.vue_vue_type_style_index_0_scoped_c54cd089_lang.css +1 -0
  11. package/PopoverV4.vue_vue_type_style_index_1_lang.css +1 -0
  12. package/TextField.vue_vue_type_style_index_0_scoped_eb472aa3_lang.css +1 -0
  13. package/components/appHeader/AppHeader.vue.d.ts +1 -1
  14. package/components/appHeader/index.d.ts +9 -9
  15. package/components/autocomplete/Autocomplete.vue.d.ts +5 -0
  16. package/components/autocomplete/Autocomplete.vue.js +2 -2
  17. package/components/autocomplete/Autocomplete.vue2.js +57 -45
  18. package/components/autocomplete/index.d.ts +20 -1
  19. package/components/dropdown/v4/DropdownV4.vue.d.ts +10 -0
  20. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  21. package/components/dropdown/v4/DropdownV4.vue2.js +151 -147
  22. package/components/dropdown/v4/OptionV4.vue.d.ts +10 -0
  23. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  24. package/components/dropdown/v4/OptionV4.vue2.js +70 -53
  25. package/components/dropdown/v4/dropdownStoryArgs.d.ts +14 -0
  26. package/components/dropdown/v4/index.d.ts +78 -2
  27. package/components/icon/v4/IconV4.vue.d.ts +5 -0
  28. package/components/icon/v4/IconV4.vue.js +4 -4
  29. package/components/icon/v4/IconV4.vue2.js +29 -26
  30. package/components/icon/v4/index.d.ts +20 -1
  31. package/components/includeExclude/IncludeExclude.vue.js +4 -4
  32. package/components/includeExclude/IncludeExclude.vue2.js +2 -2
  33. package/components/includeExclude/IncludeExcludeDragDrop.vue.js +4 -4
  34. package/components/includeExclude/IncludeExcludeDragDrop.vue2.js +2 -2
  35. package/components/input/v4/TextField.vue.js +3 -3
  36. package/components/input/v4/TextField.vue2.js +70 -66
  37. package/components/popover/common/Popover.common.d.ts +6 -0
  38. package/components/popover/common/Popover.common.js +17 -0
  39. package/components/popover/v3/Popover.vue.js +8 -0
  40. package/components/popover/{Popover.vue2.js → v3/Popover.vue2.js} +1 -1
  41. package/components/popover/v4/PopoverV4.vue.d.ts +73 -0
  42. package/components/popover/v4/PopoverV4.vue.js +7 -0
  43. package/components/popover/v4/PopoverV4.vue2.js +54 -0
  44. package/components/popover/v4/index.d.ts +209 -0
  45. package/components/popover/v4/index.js +6 -0
  46. package/components/table/v4/DataGridRowsCounter.vue.d.ts +5 -0
  47. package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
  48. package/components/table/v4/DataGridRowsCounter.vue2.js +29 -22
  49. package/components/table/v4/MultipleDataGrid.vue.js +3 -3
  50. package/components/table/v4/MultipleDataGrid.vue2.js +49 -44
  51. package/components/table/v4/index.d.ts +9 -0
  52. package/design-foundation.stories/icons/iconsData.d.ts +6 -2
  53. package/index.d.ts +646 -25
  54. package/index.js +70 -70
  55. package/package.json +7 -3
  56. package/testids/index.d.ts +5 -0
  57. package/testids/index.js +24 -23
  58. package/Autocomplete.vue_vue_type_style_index_0_scoped_a7bfd237_lang.css +0 -1
  59. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_06751538_lang.css +0 -1
  60. package/DropdownV4.vue_vue_type_style_index_0_scoped_7af4f288_lang.css +0 -1
  61. package/IconV4.vue_vue_type_style_index_0_scoped_1eea7671_lang.css +0 -1
  62. package/IncludeExclude.vue_vue_type_style_index_0_scoped_fb054d88_lang.css +0 -1
  63. package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_5764fd61_lang.css +0 -1
  64. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_260b9cdc_lang.css +0 -1
  65. package/OptionV4.vue_vue_type_style_index_0_scoped_9db0f796_lang.css +0 -1
  66. package/Popover.vue_vue_type_style_index_0_scoped_25eb53db_lang.css +0 -1
  67. package/TextField.vue_vue_type_style_index_0_scoped_052b1a0c_lang.css +0 -1
  68. package/components/popover/Popover.vue.js +0 -8
  69. /package/components/popover/{Popover.vue.d.ts → v3/Popover.vue.d.ts} +0 -0
  70. /package/components/popover/{index.d.ts → v3/index.d.ts} +0 -0
  71. /package/components/popover/{index.js → v3/index.js} +0 -0
@@ -1,5 +1,5 @@
1
- import "../../IncludeExclude.vue_vue_type_style_index_0_scoped_fb054d88_lang.css"; import { defineComponent as Te, computed as v, ref as u, watch as j, provide as Oe, openBlock as d, createBlock as I, unref as t, withCtx as g, createElementVNode as a, renderSlot as C, createTextVNode as w, toDisplayString as J, createCommentVNode as h, createVNode as f, Transition as $e, createElementBlock as o, normalizeClass as Q, mergeProps as O, Fragment as $, renderList as R, toRaw as T, nextTick as Re } from "vue";
2
- import Ae from "../popover/Popover.vue.js";
1
+ import "../../IncludeExclude.vue_vue_type_style_index_0_scoped_cc2adbf5_lang.css"; import { defineComponent as Te, computed as v, ref as u, watch as j, provide as Oe, openBlock as d, createBlock as I, unref as t, withCtx as g, createElementVNode as a, renderSlot as C, createTextVNode as w, toDisplayString as J, createCommentVNode as h, createVNode as f, Transition as $e, createElementBlock as o, normalizeClass as Q, mergeProps as O, Fragment as $, renderList as R, toRaw as T, nextTick as Re } from "vue";
2
+ import Ae from "../popover/v3/Popover.vue.js";
3
3
  import N from "../button/v3/Button.vue.js";
4
4
  import "../button/v3/IconButton.vue.js";
5
5
  import "../button/v3/ScrollButton.vue.js";
@@ -1,7 +1,7 @@
1
- import o from "./IncludeExcludeDragDrop.vue2.js";
2
- /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_5764fd61_lang.css"; //*');
4
- const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-5764fd61"]]);
1
+ import e from "./IncludeExcludeDragDrop.vue2.js";
2
+ /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_bd6145ce_lang.css"; //*');
4
+ const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-bd6145ce"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,5 +1,5 @@
1
- import "../../IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_5764fd61_lang.css"; import { defineComponent as Re, computed as p, ref as c, watch as H, provide as Ae, openBlock as i, createBlock as O, unref as l, withCtx as h, createElementVNode as s, renderSlot as v, normalizeClass as N, createTextVNode as C, toDisplayString as le, createCommentVNode as f, createVNode as g, Transition as Pe, createElementBlock as u, mergeProps as w, Fragment as U, renderList as W, toRaw as S, isRef as Ee, nextTick as Fe } from "vue";
2
- import $e from "../popover/Popover.vue.js";
1
+ import "../../IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_bd6145ce_lang.css"; import { defineComponent as Re, computed as p, ref as c, watch as H, provide as Ae, openBlock as i, createBlock as O, unref as l, withCtx as h, createElementVNode as s, renderSlot as v, normalizeClass as N, createTextVNode as C, toDisplayString as le, createCommentVNode as f, createVNode as g, Transition as Pe, createElementBlock as u, mergeProps as w, Fragment as U, renderList as W, toRaw as S, isRef as Ee, nextTick as Fe } from "vue";
2
+ import $e from "../popover/v3/Popover.vue.js";
3
3
  import G from "../button/v3/Button.vue.js";
4
4
  import "../button/v3/IconButton.vue.js";
5
5
  import "../button/v3/ScrollButton.vue.js";
@@ -1,7 +1,7 @@
1
1
  import e from "./TextField.vue2.js";
2
2
  /* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../TextField.vue_vue_type_style_index_0_scoped_052b1a0c_lang.css"; //*');
4
- const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-052b1a0c"]]);
3
+ // import "../../../TextField.vue_vue_type_style_index_0_scoped_eb472aa3_lang.css"; //*');
4
+ const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-eb472aa3"]]);
5
5
  export {
6
- c as default
6
+ a as default
7
7
  };
@@ -1,27 +1,27 @@
1
- import "../../../TextField.vue_vue_type_style_index_0_scoped_052b1a0c_lang.css"; import { defineComponent as j, computed as x, ref as q, openBlock as l, createElementBlock as s, mergeProps as f, unref as t, createBlock as o, createCommentVNode as n, createElementVNode as A, normalizeClass as C, renderSlot as E, withCtx as b, createTextVNode as V, toDisplayString as F, withKeys as J, withModifiers as $, normalizeProps as z, createVNode as p } from "vue";
1
+ import "../../../TextField.vue_vue_type_style_index_0_scoped_eb472aa3_lang.css"; import { defineComponent as J, computed as f, ref as Q, openBlock as l, createElementBlock as d, mergeProps as c, unref as t, createBlock as r, createCommentVNode as n, createElementVNode as A, normalizeClass as E, renderSlot as F, withCtx as b, createTextVNode as V, toDisplayString as $, withKeys as U, withModifiers as z, normalizeProps as O, createVNode as p } from "vue";
2
2
  import v from "../../icon/v4/IconV4.vue.js";
3
3
  import "../../icon/v4/IconFlag.vue.js";
4
- import Q from "../../tooltip/v4/TooltipV4.vue.js";
5
- import O from "../../typography/v4/Typography.vue.js";
4
+ import X from "../../tooltip/v4/TooltipV4.vue.js";
5
+ import D from "../../typography/v4/Typography.vue.js";
6
6
  import { InputTestIdModifiers as m } from "../../../testids/index.js";
7
- import { inputCommon as U } from "../common/Input.common.js";
8
- import X from "../../shared/FieldLabel.vue.js";
9
- import Y from "../../shared/FieldHelpText.vue.js";
10
- import D from "../../shared/FieldMaxLength.vue.js";
11
- import { useTestIdAttrs as Z } from "../../../utils/testIds.js";
12
- const _ = {
7
+ import { inputCommon as Y } from "../common/Input.common.js";
8
+ import Z from "../../shared/FieldLabel.vue.js";
9
+ import _ from "../../shared/FieldHelpText.vue.js";
10
+ import N from "../../shared/FieldMaxLength.vue.js";
11
+ import { useTestIdAttrs as ee } from "../../../utils/testIds.js";
12
+ const te = {
13
13
  key: 0,
14
14
  class: "icon-container icon-before"
15
- }, ee = ["maxlength", "value", "placeholder", "disabled", "type", "step"], te = ["onClick"], le = {
15
+ }, le = ["maxlength", "value", "placeholder", "disabled", "type", "step"], ae = ["onClick"], ne = {
16
16
  key: 4,
17
17
  class: "inline-error"
18
- }, ae = {
18
+ }, oe = {
19
19
  key: 7,
20
20
  class: "icon-container icon-after"
21
- }, ne = {
21
+ }, ie = {
22
22
  inheritAttrs: !1
23
- }, ve = /* @__PURE__ */ j({
24
- ...ne,
23
+ }, be = /* @__PURE__ */ J({
24
+ ...ie,
25
25
  __name: "TextField",
26
26
  props: {
27
27
  modelValue: { default: "" },
@@ -54,34 +54,38 @@ const _ = {
54
54
  inlineErrorTextPlacement: { default: "top" }
55
55
  },
56
56
  emits: ["update:modelValue", "apply"],
57
- setup(e, { expose: N, emit: k }) {
58
- const r = e, c = Z(r.testId, m), S = () => {
59
- r.showApply ? k("apply") : d?.confirmable && R();
60
- }, H = () => g.value.focus(), {
61
- onConfirm: R,
57
+ setup(e, { expose: S, emit: k }) {
58
+ const o = e, y = ee(o.testId, m), H = () => {
59
+ o.showApply ? k("apply") : s?.confirmable && K();
60
+ }, R = () => g.value.focus(), {
61
+ onConfirm: K,
62
62
  onEnter: T,
63
63
  inputRef: g,
64
64
  isFocused: h,
65
65
  showLabelInside: w,
66
- api: d,
67
- labelText: K,
68
- sizeClass: M,
66
+ api: s,
67
+ labelText: M,
68
+ sizeClass: G,
69
69
  handleInput: L,
70
70
  handleKeypress: I
71
- } = U(r, k), P = x(() => d.value?.value ?? r.modelValue), G = x(() => (P.value || "").length), B = x(() => ({
72
- currentLength: G.value,
73
- maxLength: r.maxLength
74
- })), y = q(!1), W = x(() => y.value && r.type === "password" ? "text" : r.type);
75
- return N({
76
- manualFocus: H
77
- }), (u, a) => (l(), s("div", f({
71
+ } = Y(o, k), P = f(() => s.value?.value ?? o.modelValue), W = f(() => (P.value || "").length), B = f(() => ({
72
+ currentLength: W.value,
73
+ maxLength: o.maxLength
74
+ })), C = f(
75
+ () => o.maxLength && o.maxLengthCounterPosition === "outside"
76
+ ), j = f(
77
+ () => o.feedbackText || C.value
78
+ ), x = Q(!1), q = f(() => x.value && o.type === "password" ? "text" : o.type);
79
+ return S({
80
+ manualFocus: R
81
+ }), (u, a) => (l(), d("div", c({
78
82
  class: {
79
83
  "input-with-label-container": !0,
80
84
  disabled: e.disabled,
81
85
  [`variant-${e.feedbackVariant}`]: !0
82
86
  }
83
- }, t(c)[t(m).WRAPPER]), [
84
- e.label && e.labelDirection !== "inside" ? (l(), o(X, {
87
+ }, t(y)[t(m).WRAPPER]), [
88
+ e.label && e.labelDirection !== "inside" ? (l(), r(Z, {
85
89
  key: 0,
86
90
  label: e.label,
87
91
  mandatory: e.mandatory,
@@ -91,36 +95,36 @@ const _ = {
91
95
  "test-id": e.testId
92
96
  }, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : n("", !0),
93
97
  A("div", {
94
- class: C({
98
+ class: E({
95
99
  "input-container": !0,
96
100
  "label-inside": t(w),
97
101
  focused: t(h)
98
102
  })
99
103
  }, [
100
- u.$slots.iconBefore ? (l(), s("div", _, [
101
- E(u.$slots, "iconBefore", {}, void 0, !0)
104
+ u.$slots.iconBefore ? (l(), d("div", te, [
105
+ F(u.$slots, "iconBefore", {}, void 0, !0)
102
106
  ])) : n("", !0),
103
- e.prefix ? (l(), o(t(O), {
107
+ e.prefix ? (l(), r(t(D), {
104
108
  key: 1,
105
109
  class: "prefix-text",
106
110
  variant: "body1"
107
111
  }, {
108
112
  default: b(() => [
109
- V(F(e.prefix), 1)
113
+ V($(e.prefix), 1)
110
114
  ]),
111
115
  _: 1
112
116
  })) : n("", !0),
113
- A("input", f({
117
+ A("input", c({
114
118
  ref_key: "inputRef",
115
119
  ref: g,
116
120
  maxlength: e.maxLength
117
- }, { ...u.$attrs, ...t(c)[t(m).FIELD] }, {
121
+ }, { ...u.$attrs, ...t(y)[t(m).FIELD] }, {
118
122
  value: t(P),
119
- placeholder: t(K),
123
+ placeholder: t(M),
120
124
  disabled: e.disabled || e.viewOnly,
121
- type: t(W),
125
+ type: t(q),
122
126
  class: ["input", {
123
- [t(M)]: !0,
127
+ [t(G)]: !0,
124
128
  "view-only": e.viewOnly,
125
129
  "label-inside": t(w),
126
130
  "hide-arrows": e.hideNumberArrows,
@@ -131,32 +135,32 @@ const _ = {
131
135
  (...i) => t(L) && t(L)(...i)),
132
136
  onFocus: a[1] || (a[1] = (i) => h.value = !0),
133
137
  onBlur: a[2] || (a[2] = (i) => h.value = !1),
134
- onKeyup: a[3] || (a[3] = J($(
138
+ onKeyup: a[3] || (a[3] = U(z(
135
139
  //@ts-ignore
136
140
  (...i) => t(T) && t(T)(...i),
137
141
  ["prevent"]
138
142
  ), ["enter"])),
139
143
  onKeypress: a[4] || (a[4] = //@ts-ignore
140
144
  (...i) => t(I) && t(I)(...i))
141
- }), null, 16, ee),
142
- e.maxLength && e.maxLengthCounterPosition === "inside" ? (l(), o(D, z(f({ key: 2 }, t(B))), null, 16)) : n("", !0),
143
- e.showApply || t(d)?.confirmable && !t(d)?.error?.value ? (l(), s("div", {
145
+ }), null, 16, le),
146
+ e.maxLength && e.maxLengthCounterPosition === "inside" ? (l(), r(N, O(c({ key: 2 }, t(B))), null, 16)) : n("", !0),
147
+ e.showApply || t(s)?.confirmable && !t(s)?.error?.value ? (l(), d("div", {
144
148
  key: 3,
145
149
  class: "apply-button",
146
- onClick: $(S, ["stop", "prevent"])
150
+ onClick: z(H, ["stop", "prevent"])
147
151
  }, [
148
152
  p(t(v), {
149
153
  name: "check",
150
154
  size: "20px"
151
155
  })
152
- ], 8, te)) : n("", !0),
153
- e.inlineError || t(d)?.error?.value ? (l(), s("div", le, [
154
- p(t(Q), f({
155
- disabled: !e.inlineErrorText && !t(d)?.error?.value,
156
- text: e.inlineErrorText || t(d)?.error?.value,
156
+ ], 8, ae)) : n("", !0),
157
+ e.inlineError || t(s)?.error?.value ? (l(), d("div", ne, [
158
+ p(t(X), c({
159
+ disabled: !e.inlineErrorText && !t(s)?.error?.value,
160
+ text: e.inlineErrorText || t(s)?.error?.value,
157
161
  "test-id": e.testId,
158
162
  placement: e.inlineErrorTextPlacement
159
- }, t(c)[t(m).TOOLTIP]), {
163
+ }, t(y)[t(m).TOOLTIP]), {
160
164
  default: b(() => [
161
165
  p(t(v), {
162
166
  name: "warning-circle",
@@ -166,52 +170,52 @@ const _ = {
166
170
  _: 1
167
171
  }, 16, ["disabled", "text", "test-id", "placement"])
168
172
  ])) : n("", !0),
169
- e.suffix ? (l(), o(t(O), {
173
+ e.suffix ? (l(), r(t(D), {
170
174
  key: 5,
171
175
  class: "suffix-text",
172
176
  variant: "body1"
173
177
  }, {
174
178
  default: b(() => [
175
- V(F(e.suffix), 1)
179
+ V($(e.suffix), 1)
176
180
  ]),
177
181
  _: 1
178
182
  })) : n("", !0),
179
- e.type === "password" ? (l(), s("div", f({
183
+ e.type === "password" ? (l(), d("div", c({
180
184
  key: 6,
181
185
  class: "password-visibility-toggle"
182
- }, t(c)[t(m).TOGGLE_PASSWORD], {
183
- onClick: a[5] || (a[5] = (i) => y.value = !y.value)
186
+ }, t(y)[t(m).TOGGLE_PASSWORD], {
187
+ onClick: a[5] || (a[5] = (i) => x.value = !x.value)
184
188
  }), [
185
- y.value ? (l(), o(t(v), {
189
+ x.value ? (l(), r(t(v), {
186
190
  key: 0,
187
191
  name: "eye",
188
192
  size: "16px"
189
- })) : (l(), o(t(v), {
193
+ })) : (l(), r(t(v), {
190
194
  key: 1,
191
195
  name: "eye-slash",
192
196
  size: "16px"
193
197
  }))
194
198
  ], 16)) : n("", !0),
195
- u.$slots.iconAfter ? (l(), s("div", ae, [
196
- E(u.$slots, "iconAfter", {}, void 0, !0)
199
+ u.$slots.iconAfter ? (l(), d("div", oe, [
200
+ F(u.$slots, "iconAfter", {}, void 0, !0)
197
201
  ])) : n("", !0)
198
202
  ], 2),
199
- e.feedbackText || e.maxLength ? (l(), s("div", {
203
+ t(j) ? (l(), d("div", {
200
204
  key: 1,
201
- class: C(["footer", e.feedbackPositionAbsolute && "footer-absolute"])
205
+ class: E(["footer", e.feedbackPositionAbsolute && "footer-absolute"])
202
206
  }, [
203
- e.feedbackText ? (l(), o(Y, {
207
+ e.feedbackText ? (l(), r(_, {
204
208
  key: 0,
205
209
  text: e.feedbackText,
206
210
  variant: e.feedbackVariant,
207
211
  "show-icon": e.showFeedbackTextIcon,
208
212
  "test-id": e.testId
209
213
  }, null, 8, ["text", "variant", "show-icon", "test-id"])) : n("", !0),
210
- e.maxLength && e.maxLengthCounterPosition === "outside" ? (l(), o(D, z(f({ key: 1 }, t(B))), null, 16)) : n("", !0)
214
+ t(C) ? (l(), r(N, O(c({ key: 1 }, t(B))), null, 16)) : n("", !0)
211
215
  ], 2)) : n("", !0)
212
216
  ], 16));
213
217
  }
214
218
  });
215
219
  export {
216
- ve as default
220
+ be as default
217
221
  };
@@ -0,0 +1,6 @@
1
+ export declare const popoverCommon: () => {
2
+ popup: import("vue").Ref<HTMLDivElement>;
3
+ open: import("vue").Ref<boolean>;
4
+ toggle: (value?: boolean) => boolean;
5
+ triggerRef: import("vue").Ref<HTMLDivElement>;
6
+ };
@@ -0,0 +1,17 @@
1
+ import { useToggle as p, onClickOutside as g } from "@vueuse/core";
2
+ import { ref as n } from "vue";
3
+ const f = () => {
4
+ const [o, e] = p(!1), r = n(), t = n();
5
+ return g(
6
+ r,
7
+ () => {
8
+ o.value && e();
9
+ },
10
+ {
11
+ ignore: [t]
12
+ }
13
+ ), { popup: r, open: o, toggle: e, triggerRef: t };
14
+ };
15
+ export {
16
+ f as popoverCommon
17
+ };
@@ -0,0 +1,8 @@
1
+ import o from "./Popover.vue2.js";
2
+ /* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../Popover.vue_vue_type_style_index_0_scoped_c607b770_lang.css"; //*');
4
+ // import "../../../Popover.vue_vue_type_style_index_1_lang.css"; //');
5
+ const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-c607b770"]]);
6
+ export {
7
+ r as default
8
+ };
@@ -1,4 +1,4 @@
1
- import "../../Popover.vue_vue_type_style_index_0_scoped_25eb53db_lang.css"; import "../../Popover.vue_vue_type_style_index_1_lang.css"; import { defineComponent as n, openBlock as i, createBlock as r, unref as l, withCtx as a, renderSlot as d } from "vue";
1
+ import "../../../Popover.vue_vue_type_style_index_0_scoped_c607b770_lang.css"; import "../../../Popover.vue_vue_type_style_index_1_lang.css"; import { defineComponent as n, openBlock as i, createBlock as r, unref as l, withCtx as a, renderSlot as d } from "vue";
2
2
  import { Dropdown as s } from "floating-vue";
3
3
  const f = /* @__PURE__ */ n({
4
4
  __name: "Popover",
@@ -0,0 +1,73 @@
1
+ import { Placement } from 'floating-vue';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ autoHide?: boolean;
4
+ trigger?: "touch" | "click" | "focus" | "hover" | "managed";
5
+ disabled?: boolean;
6
+ placement?: Placement;
7
+ distance?: number;
8
+ skidding?: number;
9
+ testId?: string;
10
+ popperClass?: string;
11
+ }>, {
12
+ trigger: string;
13
+ autoHide: boolean;
14
+ disabled: boolean;
15
+ placement: string;
16
+ distance: number;
17
+ skidding: number;
18
+ testId: string;
19
+ popperClass: string;
20
+ }>, {}, 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<{
21
+ autoHide?: boolean;
22
+ trigger?: "touch" | "click" | "focus" | "hover" | "managed";
23
+ disabled?: boolean;
24
+ placement?: Placement;
25
+ distance?: number;
26
+ skidding?: number;
27
+ testId?: string;
28
+ popperClass?: string;
29
+ }>, {
30
+ trigger: string;
31
+ autoHide: boolean;
32
+ disabled: boolean;
33
+ placement: string;
34
+ distance: number;
35
+ skidding: number;
36
+ testId: string;
37
+ popperClass: string;
38
+ }>>>, {
39
+ disabled: boolean;
40
+ testId: string;
41
+ placement: Placement;
42
+ distance: number;
43
+ popperClass: string;
44
+ autoHide: boolean;
45
+ skidding: number;
46
+ trigger: "touch" | "click" | "focus" | "hover" | "managed";
47
+ }>, {
48
+ trigger?(_: {}): any;
49
+ content?(_: {}): any;
50
+ }>;
51
+ export default _default;
52
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
53
+ type __VLS_TypePropsToRuntimeProps<T> = {
54
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
55
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
56
+ } : {
57
+ type: import('vue').PropType<T[K]>;
58
+ required: true;
59
+ };
60
+ };
61
+ type __VLS_WithDefaults<P, D> = {
62
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
63
+ default: D[K];
64
+ }> : P[K];
65
+ };
66
+ type __VLS_Prettify<T> = {
67
+ [K in keyof T]: T[K];
68
+ } & {};
69
+ type __VLS_WithTemplateSlots<T, S> = T & {
70
+ new (): {
71
+ $slots: S;
72
+ };
73
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./PopoverV4.vue2.js";
2
+ /* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../PopoverV4.vue_vue_type_style_index_0_scoped_c54cd089_lang.css"; //*');
4
+ const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-c54cd089"]]);
5
+ export {
6
+ r as default
7
+ };
@@ -0,0 +1,54 @@
1
+ import "../../../PopoverV4.vue_vue_type_style_index_0_scoped_c54cd089_lang.css"; import { defineComponent as u, openBlock as d, createBlock as m, unref as t, withCtx as i, createElementBlock as f, renderSlot as n, createCommentVNode as g, createElementVNode as c } from "vue";
2
+ import { Dropdown as k } from "floating-vue";
3
+ import { popoverCommon as v } from "../common/Popover.common.js";
4
+ const w = /* @__PURE__ */ u({
5
+ __name: "PopoverV4",
6
+ props: {
7
+ autoHide: { type: Boolean, default: !1 },
8
+ trigger: { default: "click" },
9
+ disabled: { type: Boolean, default: !1 },
10
+ placement: { default: "bottom-start" },
11
+ distance: { default: 0 },
12
+ skidding: { default: 0 },
13
+ testId: { default: "" },
14
+ popperClass: { default: "" }
15
+ },
16
+ setup(e) {
17
+ const { popup: p, open: o, toggle: l, triggerRef: s } = v();
18
+ return (r, a) => (d(), m(t(k), {
19
+ theme: "custom-popover",
20
+ placement: e.placement,
21
+ shown: !!t(o),
22
+ triggers: e.trigger === "managed" ? [] : [e.trigger],
23
+ "auto-hide": e.autoHide,
24
+ distance: e.distance,
25
+ skidding: e.skidding,
26
+ "data-testid": e.testId,
27
+ "popper-class": [e.popperClass, "v4-popover__popper light-theme-v4"]
28
+ }, {
29
+ popper: i(() => [
30
+ t(o) ? (d(), f("div", {
31
+ key: 0,
32
+ ref_key: "popup",
33
+ ref: p,
34
+ class: "menu-popup"
35
+ }, [
36
+ n(r.$slots, "content", {}, void 0, !0)
37
+ ], 512)) : g("", !0)
38
+ ]),
39
+ default: i(() => [
40
+ c("div", {
41
+ ref_key: "triggerRef",
42
+ ref: s,
43
+ onClick: a[0] || (a[0] = (h) => t(l)(!t(o)))
44
+ }, [
45
+ n(r.$slots, "trigger", {}, void 0, !0)
46
+ ], 512)
47
+ ]),
48
+ _: 3
49
+ }, 8, ["placement", "shown", "triggers", "auto-hide", "distance", "skidding", "data-testid", "popper-class"]));
50
+ }
51
+ });
52
+ export {
53
+ w as default
54
+ };