@ironsource/shared-ui 2.1.8 → 2.1.9-test.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.
- package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_119e4bc3_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +1 -0
- package/Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css +1 -0
- package/components/chart/Chart.vue.d.ts +5 -0
- package/components/chart/Chart.vue.js +4 -4
- package/components/chart/Chart.vue2.js +51 -49
- package/components/chart/ChartHeader.vue.d.ts +5 -0
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +35 -22
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +35 -28
- package/components/chart/SettingsHeader.vue.js +3 -3
- package/components/chart/SettingsHeader.vue2.js +33 -26
- package/components/chart/index.d.ts +20 -1
- package/components/dropdown/v4/DropdownV4.vue.d.ts +6 -0
- package/components/dropdown/v4/DropdownV4.vue.js +2 -2
- package/components/dropdown/v4/DropdownV4.vue2.js +118 -107
- package/components/dropdown/v4/index.d.ts +25 -1
- package/components/typography/v4/Typography.vue.js +2 -2
- package/components/typography/v4/Typography.vue2.js +1 -1
- package/index.d.ts +50 -2
- package/index.js +1 -1
- package/package.json +1 -1
- package/Chart.vue_vue_type_style_index_0_scoped_df85e0af_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_2e3de9c5_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_efc608f9_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_62a620ee_lang.css +0 -1
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_1791e4fe_lang.css +0 -1
- package/Typography.vue_vue_type_style_index_0_scoped_b00956b7_lang.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_119e4bc3_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as ce, computed as G, openBlock as i, createElementBlock as a, mergeProps as c, unref as t, renderSlot as T, createElementVNode as m, createVNode as n, withCtx as s, Transition as ye, normalizeClass as K, normalizeStyle as fe, createTextVNode as p, createCommentVNode as d, isRef as me, toDisplayString as U, withModifiers as W, Fragment as pe, renderList as ge, toRaw as I, createBlock as M, resolveDynamicComponent as Te } from "vue";
|
|
2
2
|
import L from "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
4
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
@@ -6,35 +6,35 @@ import "./DropdownV4.vue.js";
|
|
|
6
6
|
import ke from "./DefaultDropdownTrigger.vue.js";
|
|
7
7
|
import be from "./IconButtonDropdownTrigger.vue.js";
|
|
8
8
|
import he from "./ChipDropdownTrigger.vue.js";
|
|
9
|
-
import
|
|
9
|
+
import we from "./AppDropdownTrigger.vue.js";
|
|
10
10
|
import "./ButtonDropdownTrigger.vue.js";
|
|
11
11
|
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
12
12
|
import "./TreeDropdown.vue.js";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
13
|
+
import X from "./OptionV4.vue.js";
|
|
14
|
+
import Ie from "../../search/v4/SearchV4.vue.js";
|
|
15
|
+
import O from "../../typography/v4/Typography.vue.js";
|
|
16
16
|
import { Dropdown as ve } from "floating-vue";
|
|
17
17
|
import { DropdownTestIdModifiers as y } from "../../../testids/index.js";
|
|
18
18
|
import { dropdownCommon as Ce } from "../common/Dropdown.common.js";
|
|
19
19
|
import Se from "../../loader/v4/Loader.vue.js";
|
|
20
20
|
import { useTestIdAttrs as Ae } from "../../../utils/testIds.js";
|
|
21
|
-
import { TRIGGERS as
|
|
21
|
+
import { TRIGGERS as k } from "./Dropdown.types.js";
|
|
22
22
|
import { useElementSize as Ke } from "@vueuse/core";
|
|
23
23
|
import Le from "../../shared/FieldHelpText.vue.js";
|
|
24
24
|
import Oe from "./GroupOption.vue.js";
|
|
25
25
|
const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve = { key: 1 }, Fe = { key: 2 }, De = {
|
|
26
26
|
key: 0,
|
|
27
27
|
class: "inline-search-wrapper"
|
|
28
|
-
}, Pe = {
|
|
28
|
+
}, Pe = { class: "dropdown-conditions" }, Re = {
|
|
29
29
|
key: 0,
|
|
30
30
|
class: "no-result-container"
|
|
31
|
-
},
|
|
31
|
+
}, ze = {
|
|
32
32
|
key: 1,
|
|
33
33
|
class: "loader"
|
|
34
|
-
},
|
|
34
|
+
}, xe = { key: 2 }, $e = ["aria-selected", "aria-disabled", "onClick"], He = {
|
|
35
35
|
key: 1,
|
|
36
36
|
class: "actions-wrapper"
|
|
37
|
-
},
|
|
37
|
+
}, Ge = { class: "actions-clear-all" }, Ue = { class: "actions-apply-cancel" }, pt = /* @__PURE__ */ ce({
|
|
38
38
|
__name: "DropdownV4",
|
|
39
39
|
props: {
|
|
40
40
|
modelValue: { default: null },
|
|
@@ -66,7 +66,7 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
66
66
|
triggerShowAllSelectedText: { type: Boolean, default: !0 },
|
|
67
67
|
size: { default: "medium" },
|
|
68
68
|
mandatory: { type: Boolean, default: !1 },
|
|
69
|
-
predefinedTrigger: { default:
|
|
69
|
+
predefinedTrigger: { default: k.DEFAULT },
|
|
70
70
|
inlineSearch: { type: Boolean, default: !1 },
|
|
71
71
|
inlineSearchPlaceholder: { default: "Search" },
|
|
72
72
|
onSearch: { type: Function, default: null },
|
|
@@ -90,11 +90,12 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
90
90
|
optionsListWidth: { default: null },
|
|
91
91
|
statusType: { default: null },
|
|
92
92
|
disableVirtualScroll: { type: Boolean, default: !1 },
|
|
93
|
-
overrideOptionCountCalculation: { type: Function, default: null }
|
|
93
|
+
overrideOptionCountCalculation: { type: Function, default: null },
|
|
94
|
+
withConditions: { type: Boolean, default: !1 }
|
|
94
95
|
},
|
|
95
96
|
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard", "onsearch"],
|
|
96
|
-
setup(e, { expose: q, emit:
|
|
97
|
-
const
|
|
97
|
+
setup(e, { expose: q, emit: E }) {
|
|
98
|
+
const r = e, B = {
|
|
98
99
|
MULTILINE_LIST_HEIGHT: 48,
|
|
99
100
|
LIST_HEIGHT: 32 + 4,
|
|
100
101
|
MAX_NUMBER_OF_OPTIONS: 7.5,
|
|
@@ -103,42 +104,42 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
103
104
|
VERSION: 4
|
|
104
105
|
}, {
|
|
105
106
|
onKeydown: h,
|
|
106
|
-
open:
|
|
107
|
+
open: u,
|
|
107
108
|
toggleMenu: v,
|
|
108
|
-
onButtonKeydown:
|
|
109
|
+
onButtonKeydown: N,
|
|
109
110
|
query: C,
|
|
110
111
|
containerProps: Y,
|
|
111
112
|
calculateTableHeight: j,
|
|
112
113
|
wrapperProps: J,
|
|
113
114
|
filteredOptions: Q,
|
|
114
|
-
allSelected:
|
|
115
|
+
allSelected: V,
|
|
115
116
|
isIndeterminate: Z,
|
|
116
117
|
onSelectAll: _,
|
|
117
|
-
virtualOptions:
|
|
118
|
+
virtualOptions: F,
|
|
118
119
|
isSelected: S,
|
|
119
|
-
selectedOption:
|
|
120
|
+
selectedOption: b,
|
|
120
121
|
selectedOptionPrevious: A,
|
|
121
122
|
selectedValue: ee,
|
|
122
|
-
onSelect:
|
|
123
|
-
activeIndex:
|
|
123
|
+
onSelect: D,
|
|
124
|
+
activeIndex: P,
|
|
124
125
|
onCancel: te,
|
|
125
126
|
onApply: oe,
|
|
126
127
|
scrollTo: le,
|
|
127
128
|
listRef: ie,
|
|
128
|
-
buttonRef:
|
|
129
|
+
buttonRef: R,
|
|
129
130
|
apply: ne,
|
|
130
131
|
cancel: ae,
|
|
131
132
|
el: de,
|
|
132
|
-
onClearAllSelections:
|
|
133
|
+
onClearAllSelections: z,
|
|
133
134
|
clearAll: re,
|
|
134
135
|
isGroup: se
|
|
135
|
-
} = Ce(
|
|
136
|
+
} = Ce(r, E, B), f = Ae(r.testId, y), x = G(() => !r.predefinedTrigger || r.predefinedTrigger === k.DEFAULT ? ke : r.predefinedTrigger === k.APP ? we : null), { width: $ } = Ke(R), ue = G(() => r.optionsListWidth ? r.optionsListWidth : !r.predefinedTrigger || r.predefinedTrigger === k.DEFAULT || r.predefinedTrigger === k.APP ? $.value - 2 > 240 ? `${$.value - 2}px` : `${B.DROPLIST_MIN_WIDTH}px` : "auto"), H = () => {
|
|
136
137
|
v();
|
|
137
138
|
};
|
|
138
139
|
return q({
|
|
139
|
-
selectItem:
|
|
140
|
+
selectItem: D,
|
|
140
141
|
scrollTo: le
|
|
141
|
-
}), (
|
|
142
|
+
}), (g, l) => (i(), a("div", c({
|
|
142
143
|
ref_key: "el",
|
|
143
144
|
ref: de,
|
|
144
145
|
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
|
|
@@ -147,7 +148,7 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
147
148
|
onKeydown: l[8] || (l[8] = //@ts-ignore
|
|
148
149
|
(...o) => t(h) && t(h)(...o))
|
|
149
150
|
}), [
|
|
150
|
-
|
|
151
|
+
T(g.$slots, "label", {}, void 0, !0),
|
|
151
152
|
m("div", Be, [
|
|
152
153
|
n(t(ve), c({
|
|
153
154
|
theme: e.theme,
|
|
@@ -162,15 +163,15 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
162
163
|
distance: e.distance,
|
|
163
164
|
flip: e.flip,
|
|
164
165
|
triggers: [],
|
|
165
|
-
shown: !!t(
|
|
166
|
+
shown: !!t(u),
|
|
166
167
|
"auto-hide": !1,
|
|
167
168
|
container: e.container,
|
|
168
169
|
"auto-size": e.autoSize
|
|
169
170
|
}, t(f)[t(y).TRIGGER]), {
|
|
170
|
-
popper:
|
|
171
|
+
popper: s(() => [
|
|
171
172
|
n(ye, null, {
|
|
172
|
-
default:
|
|
173
|
-
t(
|
|
173
|
+
default: s(() => [
|
|
174
|
+
t(u) ? (i(), a("div", {
|
|
174
175
|
key: 0,
|
|
175
176
|
ref_key: "listRef",
|
|
176
177
|
ref: ie,
|
|
@@ -180,15 +181,25 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
180
181
|
}]),
|
|
181
182
|
style: fe({ width: t(ue) })
|
|
182
183
|
}, [
|
|
183
|
-
t(
|
|
184
|
+
t(u) ? (i(), a("div", {
|
|
184
185
|
key: 0,
|
|
185
186
|
class: K(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi": e.multi }]),
|
|
186
187
|
onKeydown: l[7] || (l[7] = //@ts-ignore
|
|
187
188
|
(...o) => t(h) && t(h)(...o))
|
|
188
189
|
}, [
|
|
189
|
-
t(
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
t(u) && (e.inlineSearch || e.withConditions) ? (i(), a("div", De, [
|
|
191
|
+
e.withConditions ? T(g.$slots, "dropdown-conditions", { key: 0 }, () => [
|
|
192
|
+
m("div", Pe, [
|
|
193
|
+
n(t(O), { variant: "body2" }, {
|
|
194
|
+
default: s(() => [
|
|
195
|
+
p("Conditions")
|
|
196
|
+
]),
|
|
197
|
+
_: 1
|
|
198
|
+
})
|
|
199
|
+
])
|
|
200
|
+
], !0) : d("", !0),
|
|
201
|
+
T(g.$slots, "inline-search", {}, () => [
|
|
202
|
+
n(t(Ie), {
|
|
192
203
|
modelValue: t(C),
|
|
193
204
|
"onUpdate:modelValue": [
|
|
194
205
|
l[4] || (l[4] = (o) => me(C) ? C.value = o : null),
|
|
@@ -202,8 +213,8 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
202
213
|
onKeydown: t(h)
|
|
203
214
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
|
|
204
215
|
], !0)
|
|
205
|
-
])) :
|
|
206
|
-
|
|
216
|
+
])) : d("", !0),
|
|
217
|
+
T(g.$slots, "input-list", { open: t(u) }, void 0, !0),
|
|
207
218
|
m("div", c({
|
|
208
219
|
class: ["list-container", { "list-container--multi": e.multi }],
|
|
209
220
|
style: { height: `${t(j)}rem` }
|
|
@@ -215,69 +226,69 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
215
226
|
role: "listbox",
|
|
216
227
|
class: ["list", { "list--multi": e.multi }]
|
|
217
228
|
}), [
|
|
218
|
-
!t(Q).length && !e.loading ? (i(), a("li",
|
|
219
|
-
n(t(
|
|
220
|
-
default:
|
|
221
|
-
p(
|
|
229
|
+
!t(Q).length && !e.loading ? (i(), a("li", Re, [
|
|
230
|
+
n(t(O), c({ variant: "body2" }, t(f)[t(y).NO_RESULT]), {
|
|
231
|
+
default: s(() => [
|
|
232
|
+
p(U(e.noResultsText), 1)
|
|
222
233
|
]),
|
|
223
234
|
_: 1
|
|
224
235
|
}, 16)
|
|
225
|
-
])) :
|
|
226
|
-
e.loading ? (i(), a("li",
|
|
236
|
+
])) : d("", !0),
|
|
237
|
+
e.loading ? (i(), a("li", ze, [
|
|
227
238
|
n(t(Se)),
|
|
228
|
-
n(t(
|
|
229
|
-
default:
|
|
239
|
+
n(t(O), null, {
|
|
240
|
+
default: s(() => [
|
|
230
241
|
p("Loading...")
|
|
231
242
|
]),
|
|
232
243
|
_: 1
|
|
233
244
|
})
|
|
234
|
-
])) :
|
|
235
|
-
e.showSelectAll !== !1 && e.multi && !t(C) ? (i(), a("li",
|
|
236
|
-
n(t(
|
|
245
|
+
])) : d("", !0),
|
|
246
|
+
e.showSelectAll !== !1 && e.multi && !t(C) ? (i(), a("li", xe, [
|
|
247
|
+
n(t(X), c(
|
|
237
248
|
{
|
|
238
|
-
"aria-selected": t(
|
|
249
|
+
"aria-selected": t(V),
|
|
239
250
|
"aria-disabled": !!e.disabled,
|
|
240
|
-
"selected-prop": t(
|
|
251
|
+
"selected-prop": t(V),
|
|
241
252
|
"is-indeterminate": t(Z),
|
|
242
253
|
"select-all-option": ""
|
|
243
254
|
},
|
|
244
255
|
t(f)[t(y).SELECT_ALL],
|
|
245
256
|
{
|
|
246
|
-
onClick: l[5] || (l[5] =
|
|
257
|
+
onClick: l[5] || (l[5] = W((o) => t(_)(), ["stop"]))
|
|
247
258
|
}
|
|
248
259
|
), {
|
|
249
|
-
default:
|
|
260
|
+
default: s(() => [
|
|
250
261
|
p("Select all ")
|
|
251
262
|
]),
|
|
252
263
|
_: 1
|
|
253
264
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
|
|
254
|
-
])) :
|
|
255
|
-
t(
|
|
256
|
-
key:
|
|
257
|
-
"aria-selected": t(S)(
|
|
265
|
+
])) : d("", !0),
|
|
266
|
+
t(F).length && !e.loading ? (i(!0), a(pe, { key: 3 }, ge(t(F), ({ data: o, index: w }) => (i(), a("li", {
|
|
267
|
+
key: w,
|
|
268
|
+
"aria-selected": t(S)(I(t(b)), o),
|
|
258
269
|
"aria-disabled": !!e.disabled,
|
|
259
|
-
onClick:
|
|
270
|
+
onClick: W(() => t(D)(o, w), ["stop"])
|
|
260
271
|
}, [
|
|
261
|
-
e.groupedOptions && t(se)(o) ?
|
|
272
|
+
e.groupedOptions && t(se)(o) ? T(g.$slots, "group-option", { key: 0 }, () => [
|
|
262
273
|
n(Oe, null, {
|
|
263
|
-
default:
|
|
264
|
-
p(
|
|
274
|
+
default: s(() => [
|
|
275
|
+
p(U(e.displayValue(o) || o[e.optionNameKey]), 1)
|
|
265
276
|
]),
|
|
266
277
|
_: 2
|
|
267
278
|
}, 1024)
|
|
268
|
-
], !0) :
|
|
279
|
+
], !0) : T(g.$slots, "default", {
|
|
269
280
|
key: 1,
|
|
270
281
|
option: o,
|
|
271
|
-
index:
|
|
272
|
-
selected: t(S)(
|
|
273
|
-
active:
|
|
274
|
-
disabled: o[
|
|
282
|
+
index: w,
|
|
283
|
+
selected: t(S)(I(t(b)), o),
|
|
284
|
+
active: I(t(P)) === w,
|
|
285
|
+
disabled: o[r.disabledOptionKey]
|
|
275
286
|
}, () => [
|
|
276
|
-
n(t(
|
|
287
|
+
n(t(X), {
|
|
277
288
|
option: o,
|
|
278
|
-
"selected-prop": t(S)(
|
|
279
|
-
active:
|
|
280
|
-
disabled: o[
|
|
289
|
+
"selected-prop": t(S)(I(t(b)), o),
|
|
290
|
+
active: I(t(P)) === w,
|
|
291
|
+
disabled: o[r.disabledOptionKey],
|
|
281
292
|
"name-key": e.optionNameKey,
|
|
282
293
|
"image-key": e.optionImageKey,
|
|
283
294
|
"icon-key": e.optionIconKey,
|
|
@@ -288,11 +299,11 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
288
299
|
"option-two-lines-key": e.optionTwoLinesKey
|
|
289
300
|
}, null, 8, ["option", "selected-prop", "active", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "option-two-lines-variant", "option-two-lines-key"])
|
|
290
301
|
], !0)
|
|
291
|
-
], 8,
|
|
302
|
+
], 8, $e))), 128)) : d("", !0)
|
|
292
303
|
], 16)
|
|
293
304
|
], 16),
|
|
294
|
-
e.multi ? (i(), a("div",
|
|
295
|
-
m("div",
|
|
305
|
+
e.multi ? (i(), a("div", He, [
|
|
306
|
+
m("div", Ge, [
|
|
296
307
|
n(t(L), c(
|
|
297
308
|
{
|
|
298
309
|
ref_key: "clearAll",
|
|
@@ -303,16 +314,16 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
303
314
|
},
|
|
304
315
|
t(f)[t(y).ACTION_CLEAR_ALL],
|
|
305
316
|
{
|
|
306
|
-
onClick: l[6] || (l[6] = () => t(
|
|
317
|
+
onClick: l[6] || (l[6] = () => t(z)(!1))
|
|
307
318
|
}
|
|
308
319
|
), {
|
|
309
|
-
default:
|
|
320
|
+
default: s(() => [
|
|
310
321
|
p(" Clear all ")
|
|
311
322
|
]),
|
|
312
323
|
_: 1
|
|
313
324
|
}, 16)
|
|
314
325
|
]),
|
|
315
|
-
m("div",
|
|
326
|
+
m("div", Ue, [
|
|
316
327
|
n(t(L), c(
|
|
317
328
|
{
|
|
318
329
|
ref_key: "cancel",
|
|
@@ -324,7 +335,7 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
324
335
|
t(f)[t(y).ACTION_CANCEL],
|
|
325
336
|
{ onClick: t(te) }
|
|
326
337
|
), {
|
|
327
|
-
default:
|
|
338
|
+
default: s(() => [
|
|
328
339
|
p(" Cancel ")
|
|
329
340
|
]),
|
|
330
341
|
_: 1
|
|
@@ -336,48 +347,48 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
336
347
|
size: "small",
|
|
337
348
|
class: "apply-button"
|
|
338
349
|
}, t(f)[t(y).ACTION_APPLY], { onClick: t(oe) }), {
|
|
339
|
-
default:
|
|
350
|
+
default: s(() => [
|
|
340
351
|
p("Apply ")
|
|
341
352
|
]),
|
|
342
353
|
_: 1
|
|
343
354
|
}, 16, ["onClick"])
|
|
344
355
|
])
|
|
345
|
-
])) :
|
|
346
|
-
], 34)) :
|
|
347
|
-
], 6)) :
|
|
356
|
+
])) : d("", !0)
|
|
357
|
+
], 34)) : d("", !0)
|
|
358
|
+
], 6)) : d("", !0)
|
|
348
359
|
]),
|
|
349
360
|
_: 3
|
|
350
361
|
})
|
|
351
362
|
]),
|
|
352
|
-
default:
|
|
363
|
+
default: s(() => [
|
|
353
364
|
m("div", {
|
|
354
365
|
class: K(["button__container", {
|
|
355
|
-
"button__container--open": !!t(
|
|
366
|
+
"button__container--open": !!t(u),
|
|
356
367
|
[`button__container--${e.size}`]: !0,
|
|
357
368
|
"button__container--disabled": e.disabled
|
|
358
369
|
}])
|
|
359
370
|
}, [
|
|
360
371
|
m("div", {
|
|
361
372
|
ref_key: "buttonRef",
|
|
362
|
-
ref:
|
|
373
|
+
ref: R
|
|
363
374
|
}, [
|
|
364
|
-
|
|
375
|
+
T(g.$slots, "dropdown-trigger", {
|
|
365
376
|
buttonTriggerProps: {
|
|
366
|
-
open: t(
|
|
377
|
+
open: t(u),
|
|
367
378
|
disabled: e.disabled,
|
|
368
379
|
label: t(ee) || e.placeholder,
|
|
369
380
|
onClick: () => t(v)()
|
|
370
381
|
},
|
|
371
382
|
defaultTriggerProps: {
|
|
372
383
|
placeholder: e.placeholder,
|
|
373
|
-
open: t(
|
|
384
|
+
open: t(u),
|
|
374
385
|
label: e.triggerLabel,
|
|
375
386
|
showFeedbackIcon: e.triggerFeedbackShowIcon,
|
|
376
387
|
mandatory: e.mandatory,
|
|
377
388
|
testId: e.testId,
|
|
378
389
|
multi: e.multi,
|
|
379
390
|
disabled: e.disabled,
|
|
380
|
-
selectedOption: e.multi ? t(A) : t(
|
|
391
|
+
selectedOption: e.multi ? t(A) : t(b),
|
|
381
392
|
displayValue: e.displayValue,
|
|
382
393
|
options: e.options,
|
|
383
394
|
optionNameKey: e.optionNameKey,
|
|
@@ -391,21 +402,21 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
391
402
|
statusDotType: e.statusType,
|
|
392
403
|
size: e.size,
|
|
393
404
|
showAllSelectedText: e.triggerShowAllSelectedText,
|
|
394
|
-
onKeydown: t(
|
|
395
|
-
onClick:
|
|
405
|
+
onKeydown: t(N),
|
|
406
|
+
onClick: H
|
|
396
407
|
}
|
|
397
408
|
}, () => [
|
|
398
|
-
t(
|
|
399
|
-
(i(),
|
|
409
|
+
t(x) ? (i(), a("div", Ne, [
|
|
410
|
+
(i(), M(Te(t(x)), {
|
|
400
411
|
placeholder: e.placeholder,
|
|
401
|
-
open: t(
|
|
412
|
+
open: t(u),
|
|
402
413
|
label: e.triggerLabel,
|
|
403
414
|
"show-feedback-icon": e.triggerFeedbackShowIcon,
|
|
404
415
|
mandatory: e.mandatory,
|
|
405
416
|
"test-id": e.testId,
|
|
406
417
|
multi: e.multi,
|
|
407
418
|
disabled: e.disabled,
|
|
408
|
-
"selected-option": e.multi ? t(A) : t(
|
|
419
|
+
"selected-option": e.multi ? t(A) : t(b),
|
|
409
420
|
"display-value": e.displayValue,
|
|
410
421
|
options: e.options,
|
|
411
422
|
"option-name-key": e.optionNameKey,
|
|
@@ -419,47 +430,47 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
419
430
|
"status-dot-type": e.statusType,
|
|
420
431
|
size: e.size,
|
|
421
432
|
"show-all-selected-text": e.triggerShowAllSelectedText,
|
|
422
|
-
onKeydown: t(
|
|
423
|
-
onClick:
|
|
424
|
-
onCopyToClipboard: l[0] || (l[0] = (o) =>
|
|
433
|
+
onKeydown: t(N),
|
|
434
|
+
onClick: H,
|
|
435
|
+
onCopyToClipboard: l[0] || (l[0] = (o) => E("copyToClipboard"))
|
|
425
436
|
}, null, 40, ["placeholder", "open", "label", "show-feedback-icon", "mandatory", "test-id", "multi", "disabled", "selected-option", "display-value", "options", "option-name-key", "option-image-key", "option-icon-key", "option-icon-type", "option-end-icon-key", "option-end-icon-type", "feedback-variant", "value-to-copy", "status-dot-type", "size", "show-all-selected-text", "onKeydown"]))
|
|
426
|
-
])) :
|
|
427
|
-
e.predefinedTrigger === t(
|
|
437
|
+
])) : d("", !0),
|
|
438
|
+
e.predefinedTrigger === t(k).ICON_BUTTON ? (i(), a("div", Ve, [
|
|
428
439
|
n(t(be), {
|
|
429
440
|
onClick: l[1] || (l[1] = (o) => t(v)())
|
|
430
441
|
})
|
|
431
|
-
])) :
|
|
432
|
-
e.predefinedTrigger === t(
|
|
442
|
+
])) : d("", !0),
|
|
443
|
+
e.predefinedTrigger === t(k).CHIP ? (i(), a("div", Fe, [
|
|
433
444
|
n(t(he), {
|
|
434
|
-
open: t(
|
|
445
|
+
open: t(u),
|
|
435
446
|
label: e.placeholder,
|
|
436
447
|
"test-id": e.testId,
|
|
437
448
|
options: e.options,
|
|
438
|
-
"selected-option": e.multi ? t(A) : t(
|
|
449
|
+
"selected-option": e.multi ? t(A) : t(b),
|
|
439
450
|
"display-value": e.displayValue,
|
|
440
451
|
multi: e.multi,
|
|
441
452
|
onClick: l[2] || (l[2] = (o) => t(v)()),
|
|
442
|
-
onClear: l[3] || (l[3] = (o) => t(
|
|
453
|
+
onClear: l[3] || (l[3] = (o) => t(z)())
|
|
443
454
|
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi"])
|
|
444
|
-
])) :
|
|
455
|
+
])) : d("", !0)
|
|
445
456
|
], !0)
|
|
446
457
|
], 512)
|
|
447
458
|
], 2)
|
|
448
459
|
]),
|
|
449
460
|
_: 3
|
|
450
461
|
}, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
|
|
451
|
-
e.triggerFeedbackText ? (i(),
|
|
462
|
+
e.triggerFeedbackText ? (i(), M(Le, {
|
|
452
463
|
key: 0,
|
|
453
464
|
text: e.triggerFeedbackText,
|
|
454
465
|
variant: e.triggerFeedbackVariant,
|
|
455
466
|
"show-icon": e.triggerFeedbackShowIcon,
|
|
456
467
|
"test-id": e.testId,
|
|
457
468
|
class: "dropdown-field-help-text"
|
|
458
|
-
}, null, 8, ["text", "variant", "show-icon", "test-id"])) :
|
|
469
|
+
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : d("", !0)
|
|
459
470
|
])
|
|
460
471
|
], 16, Ee));
|
|
461
472
|
}
|
|
462
473
|
});
|
|
463
474
|
export {
|
|
464
|
-
|
|
475
|
+
pt as default
|
|
465
476
|
};
|
|
@@ -1639,6 +1639,7 @@ declare const DropdownTypes: () => (({
|
|
|
1639
1639
|
statusType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
1640
1640
|
disableVirtualScroll: boolean;
|
|
1641
1641
|
overrideOptionCountCalculation: (option: unknown) => number;
|
|
1642
|
+
withConditions: boolean;
|
|
1642
1643
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
1643
1644
|
theme: {
|
|
1644
1645
|
type: import("vue").PropType<string>;
|
|
@@ -1854,6 +1855,11 @@ declare const DropdownTypes: () => (({
|
|
|
1854
1855
|
type: import("vue").PropType<(option: unknown) => number>;
|
|
1855
1856
|
default: any;
|
|
1856
1857
|
};
|
|
1858
|
+
withConditions: {
|
|
1859
|
+
type: import("vue").PropType<boolean>;
|
|
1860
|
+
required: true;
|
|
1861
|
+
default: boolean;
|
|
1862
|
+
};
|
|
1857
1863
|
}>> & {
|
|
1858
1864
|
onCopyToClipboard?: () => any;
|
|
1859
1865
|
onClear?: () => any;
|
|
@@ -1864,7 +1870,7 @@ declare const DropdownTypes: () => (({
|
|
|
1864
1870
|
onOnsearch?: (value: string) => any;
|
|
1865
1871
|
onOpened?: () => any;
|
|
1866
1872
|
onClosed?: () => any;
|
|
1867
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "selected" | "onClear" | "modelValue" | "placeholder" | "multi" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "skidding" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "valueToCopy" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation">;
|
|
1873
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "selected" | "onClear" | "modelValue" | "placeholder" | "multi" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "skidding" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "valueToCopy" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
|
|
1868
1874
|
$attrs: {
|
|
1869
1875
|
[x: string]: unknown;
|
|
1870
1876
|
};
|
|
@@ -2093,6 +2099,11 @@ declare const DropdownTypes: () => (({
|
|
|
2093
2099
|
type: import("vue").PropType<(option: unknown) => number>;
|
|
2094
2100
|
default: any;
|
|
2095
2101
|
};
|
|
2102
|
+
withConditions: {
|
|
2103
|
+
type: import("vue").PropType<boolean>;
|
|
2104
|
+
required: true;
|
|
2105
|
+
default: boolean;
|
|
2106
|
+
};
|
|
2096
2107
|
}>> & {
|
|
2097
2108
|
onCopyToClipboard?: () => any;
|
|
2098
2109
|
onClear?: () => any;
|
|
@@ -2167,6 +2178,7 @@ declare const DropdownTypes: () => (({
|
|
|
2167
2178
|
statusType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
2168
2179
|
disableVirtualScroll: boolean;
|
|
2169
2180
|
overrideOptionCountCalculation: (option: unknown) => number;
|
|
2181
|
+
withConditions: boolean;
|
|
2170
2182
|
}, {}, string> & {
|
|
2171
2183
|
beforeCreate?: (() => void) | (() => void)[];
|
|
2172
2184
|
created?: (() => void) | (() => void)[];
|
|
@@ -2402,6 +2414,11 @@ declare const DropdownTypes: () => (({
|
|
|
2402
2414
|
type: import("vue").PropType<(option: unknown) => number>;
|
|
2403
2415
|
default: any;
|
|
2404
2416
|
};
|
|
2417
|
+
withConditions: {
|
|
2418
|
+
type: import("vue").PropType<boolean>;
|
|
2419
|
+
required: true;
|
|
2420
|
+
default: boolean;
|
|
2421
|
+
};
|
|
2405
2422
|
}>> & {
|
|
2406
2423
|
onCopyToClipboard?: () => any;
|
|
2407
2424
|
onClear?: () => any;
|
|
@@ -2634,6 +2651,11 @@ declare const DropdownTypes: () => (({
|
|
|
2634
2651
|
type: import("vue").PropType<(option: unknown) => number>;
|
|
2635
2652
|
default: any;
|
|
2636
2653
|
};
|
|
2654
|
+
withConditions: {
|
|
2655
|
+
type: import("vue").PropType<boolean>;
|
|
2656
|
+
required: true;
|
|
2657
|
+
default: boolean;
|
|
2658
|
+
};
|
|
2637
2659
|
}>> & {
|
|
2638
2660
|
onCopyToClipboard?: () => any;
|
|
2639
2661
|
onClear?: () => any;
|
|
@@ -2708,6 +2730,7 @@ declare const DropdownTypes: () => (({
|
|
|
2708
2730
|
statusType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
2709
2731
|
disableVirtualScroll: boolean;
|
|
2710
2732
|
overrideOptionCountCalculation: (option: unknown) => number;
|
|
2733
|
+
withConditions: boolean;
|
|
2711
2734
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
2712
2735
|
$slots: {
|
|
2713
2736
|
label?(_: {}): any;
|
|
@@ -2745,6 +2768,7 @@ declare const DropdownTypes: () => (({
|
|
|
2745
2768
|
onClick: () => void;
|
|
2746
2769
|
};
|
|
2747
2770
|
}): any;
|
|
2771
|
+
"dropdown-conditions"?(_: {}): any;
|
|
2748
2772
|
"inline-search"?(_: {}): any;
|
|
2749
2773
|
"input-list"?(_: {
|
|
2750
2774
|
open: true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Typography.vue2.js";
|
|
2
2
|
/* empty css */import p from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../Typography.
|
|
4
|
-
const t = /* @__PURE__ */ p(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ p(o, [["__scopeId", "data-v-992962bc"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../Typography.
|
|
1
|
+
import "../../../Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css"; import { defineComponent as m, ref as y, computed as l, openBlock as o, createBlock as i, unref as e, withCtx as s, resolveDynamicComponent as d, normalizeClass as f, renderSlot as h } from "vue";
|
|
2
2
|
import T from "../../tooltip/v4/TooltipV4.vue.js";
|
|
3
3
|
const C = /* @__PURE__ */ m({
|
|
4
4
|
__name: "Typography",
|