@ironsource/shared-ui 2.1.7-test.7 → 2.1.7-test.9
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/DataGrid.vue_vue_type_style_index_0_scoped_706b324e_lang.css +1 -0
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_0ce71f73_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_98819e5a_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_00ccab6b_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_77509f61_lang.css +1 -0
- package/README.md +1 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_5efe563d_lang.css +1 -0
- package/components/dropdown/common/Dropdown.common.js +89 -89
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +1 -0
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +32 -29
- package/components/dropdown/v4/DropdownV4.vue.d.ts +29 -0
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +186 -158
- package/components/dropdown/v4/OptionV4.vue.d.ts +26 -2
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +94 -71
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +21 -16
- package/components/dropdown/v4/TreeDropdown.vue.js +4 -4
- package/components/dropdown/v4/TreeDropdown.vue2.js +162 -74
- package/components/dropdown/v4/index.d.ts +451 -82
- package/components/table/common/Table.common.js +68 -71
- package/components/table/v4/DataGrid.vue.d.ts +4 -10
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +134 -128
- package/components/table/v4/DataGridRowsCounter.vue.js +2 -2
- package/components/table/v4/DataGridRowsCounter.vue2.js +13 -14
- package/components/table/v4/MultipleDataGrid.vue.d.ts +2 -2
- package/components/table/v4/index.d.ts +7 -41
- package/components/table/v4/storyUtils.d.ts +0 -4
- package/index.d.ts +1203 -533
- package/mocks/options.d.ts +12 -0
- package/package.json +1 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_5273976b_lang.css +0 -1
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_938772ee_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_b6a06f00_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_142eab98_lang.css +0 -1
- package/utils/formatNumbers.d.ts +0 -4
- package/utils/formatNumbers.js +0 -11
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_00ccab6b_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as se, computed as H, openBlock as i, createElementBlock as n, mergeProps as u, unref as t, renderSlot as I, createElementVNode as m, createVNode as a, withCtx as c, Transition as ue, normalizeClass as K, normalizeStyle as ce, isRef as ye, createCommentVNode as r, createTextVNode as T, toDisplayString as fe, withModifiers as U, Fragment as me, renderList as pe, toRaw as w, createBlock as W, resolveDynamicComponent as ge } from "vue";
|
|
2
2
|
import L from "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
4
|
import "./DropdownV4.vue.js";
|
|
5
5
|
import Te from "./DefaultDropdownTrigger.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import be from "./IconButtonDropdownTrigger.vue.js";
|
|
7
|
+
import ke from "./ChipDropdownTrigger.vue.js";
|
|
8
8
|
import he from "./AppDropdownTrigger.vue.js";
|
|
9
9
|
import "./ButtonDropdownTrigger.vue.js";
|
|
10
10
|
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
11
11
|
import "./TreeDropdown.vue.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { Dropdown as
|
|
16
|
-
import { DropdownTestIdModifiers as
|
|
17
|
-
import { dropdownCommon as
|
|
12
|
+
import M from "./OptionV4.vue.js";
|
|
13
|
+
import Ie from "../../search/v4/SearchV4.vue.js";
|
|
14
|
+
import G from "../../typography/v4/Typography.vue.js";
|
|
15
|
+
import { Dropdown as we } from "floating-vue";
|
|
16
|
+
import { DropdownTestIdModifiers as y } from "../../../testids/index.js";
|
|
17
|
+
import { dropdownCommon as ve } from "../common/Dropdown.common.js";
|
|
18
18
|
import Ce from "../../loader/v4/Loader.vue.js";
|
|
19
19
|
import { useTestIdAttrs as Se } from "../../../utils/testIds.js";
|
|
20
|
-
import { TRIGGERS as
|
|
20
|
+
import { TRIGGERS as p } from "./Dropdown.types.js";
|
|
21
21
|
import { useElementSize as Ae } from "@vueuse/core";
|
|
22
|
-
import
|
|
23
|
-
const
|
|
22
|
+
import Ke from "../../shared/FieldHelpText.vue.js";
|
|
23
|
+
const Le = ["tabindex"], Ee = { style: { width: "100%" } }, Oe = { key: 0 }, Be = { key: 1 }, Ne = { key: 2 }, Ve = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "inline-search-wrapper"
|
|
26
|
-
},
|
|
26
|
+
}, Fe = {
|
|
27
27
|
key: 0,
|
|
28
28
|
class: "no-result-container"
|
|
29
|
-
},
|
|
29
|
+
}, De = {
|
|
30
30
|
key: 1,
|
|
31
31
|
class: "loader"
|
|
32
|
-
},
|
|
32
|
+
}, Pe = { key: 2 }, Re = ["aria-selected", "aria-disabled", "onClick"], ze = {
|
|
33
33
|
key: 1,
|
|
34
34
|
class: "actions-wrapper"
|
|
35
35
|
}, xe = { class: "actions-clear-all" }, $e = { class: "actions-apply-cancel" }, ut = /* @__PURE__ */ se({
|
|
@@ -64,7 +64,7 @@ const Oe = ["tabindex"], Ee = { style: { width: "100%" } }, Be = { key: 0 }, Ke
|
|
|
64
64
|
triggerShowAllSelectedText: { type: Boolean, default: !0 },
|
|
65
65
|
size: { default: "medium" },
|
|
66
66
|
mandatory: { type: Boolean, default: !1 },
|
|
67
|
-
predefinedTrigger: { default:
|
|
67
|
+
predefinedTrigger: { default: p.DEFAULT },
|
|
68
68
|
inlineSearch: { type: Boolean, default: !1 },
|
|
69
69
|
inlineSearchPlaceholder: { default: "Search" },
|
|
70
70
|
onSearch: { type: Function, default: null },
|
|
@@ -89,9 +89,9 @@ const Oe = ["tabindex"], Ee = { style: { width: "100%" } }, Be = { key: 0 }, Ke
|
|
|
89
89
|
disableVirtualScroll: { type: Boolean, default: !1 },
|
|
90
90
|
overrideOptionCountCalculation: { type: Function, default: null }
|
|
91
91
|
},
|
|
92
|
-
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard"],
|
|
93
|
-
setup(e, { expose:
|
|
94
|
-
const d = e,
|
|
92
|
+
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard", "onsearch"],
|
|
93
|
+
setup(e, { expose: X, emit: E }) {
|
|
94
|
+
const d = e, O = {
|
|
95
95
|
MULTILINE_LIST_HEIGHT: 48,
|
|
96
96
|
LIST_HEIGHT: 32 + 4,
|
|
97
97
|
MAX_NUMBER_OF_OPTIONS: 7.5,
|
|
@@ -99,53 +99,53 @@ const Oe = ["tabindex"], Ee = { style: { width: "100%" } }, Be = { key: 0 }, Ke
|
|
|
99
99
|
DROPLIST_MIN_WIDTH: 240,
|
|
100
100
|
VERSION: 4
|
|
101
101
|
}, {
|
|
102
|
-
onKeydown:
|
|
102
|
+
onKeydown: b,
|
|
103
103
|
open: s,
|
|
104
|
-
toggleMenu:
|
|
105
|
-
onButtonKeydown:
|
|
104
|
+
toggleMenu: v,
|
|
105
|
+
onButtonKeydown: B,
|
|
106
106
|
query: C,
|
|
107
|
-
containerProps:
|
|
108
|
-
calculateTableHeight:
|
|
109
|
-
wrapperProps:
|
|
110
|
-
filteredOptions:
|
|
111
|
-
allSelected:
|
|
112
|
-
isIndeterminate:
|
|
113
|
-
onSelectAll:
|
|
114
|
-
virtualOptions:
|
|
107
|
+
containerProps: q,
|
|
108
|
+
calculateTableHeight: Y,
|
|
109
|
+
wrapperProps: j,
|
|
110
|
+
filteredOptions: J,
|
|
111
|
+
allSelected: N,
|
|
112
|
+
isIndeterminate: Q,
|
|
113
|
+
onSelectAll: Z,
|
|
114
|
+
virtualOptions: V,
|
|
115
115
|
isSelected: S,
|
|
116
|
-
selectedOption:
|
|
117
|
-
selectedOptionPrevious:
|
|
118
|
-
selectedValue:
|
|
119
|
-
onSelect:
|
|
120
|
-
activeIndex:
|
|
121
|
-
onCancel:
|
|
122
|
-
onApply:
|
|
123
|
-
scrollTo:
|
|
116
|
+
selectedOption: g,
|
|
117
|
+
selectedOptionPrevious: A,
|
|
118
|
+
selectedValue: _,
|
|
119
|
+
onSelect: F,
|
|
120
|
+
activeIndex: D,
|
|
121
|
+
onCancel: ee,
|
|
122
|
+
onApply: te,
|
|
123
|
+
scrollTo: oe,
|
|
124
124
|
listRef: le,
|
|
125
|
-
buttonRef:
|
|
126
|
-
apply:
|
|
127
|
-
cancel:
|
|
128
|
-
el:
|
|
129
|
-
onClearAllSelections:
|
|
130
|
-
clearAll:
|
|
131
|
-
} =
|
|
132
|
-
|
|
125
|
+
buttonRef: P,
|
|
126
|
+
apply: ie,
|
|
127
|
+
cancel: ne,
|
|
128
|
+
el: ae,
|
|
129
|
+
onClearAllSelections: R,
|
|
130
|
+
clearAll: de
|
|
131
|
+
} = ve(d, E, O), f = Se(d.testId, y), z = H(() => !d.predefinedTrigger || d.predefinedTrigger === p.DEFAULT ? Te : d.predefinedTrigger === p.APP ? he : null), { width: x } = Ae(P), re = H(() => d.optionsListWidth ? d.optionsListWidth : !d.predefinedTrigger || d.predefinedTrigger === p.DEFAULT || d.predefinedTrigger === p.APP ? x.value - 2 > 240 ? `${x.value - 2}px` : `${O.DROPLIST_MIN_WIDTH}px` : "auto"), $ = () => {
|
|
132
|
+
v();
|
|
133
133
|
};
|
|
134
|
-
return
|
|
135
|
-
selectItem:
|
|
136
|
-
scrollTo:
|
|
137
|
-
}), (
|
|
134
|
+
return X({
|
|
135
|
+
selectItem: F,
|
|
136
|
+
scrollTo: oe
|
|
137
|
+
}), (k, l) => (i(), n("div", u({
|
|
138
138
|
ref_key: "el",
|
|
139
|
-
ref:
|
|
139
|
+
ref: ae,
|
|
140
140
|
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
|
|
141
141
|
tabindex: e.disabled ? -1 : 0
|
|
142
|
-
}, t(
|
|
143
|
-
onKeydown:
|
|
144
|
-
(...
|
|
142
|
+
}, t(f)[t(y).WRAPPER], {
|
|
143
|
+
onKeydown: l[8] || (l[8] = //@ts-ignore
|
|
144
|
+
(...o) => t(b) && t(b)(...o))
|
|
145
145
|
}), [
|
|
146
|
-
I(
|
|
147
|
-
|
|
148
|
-
a(t(
|
|
146
|
+
I(k.$slots, "label", {}, void 0, !0),
|
|
147
|
+
m("div", Ee, [
|
|
148
|
+
a(t(we), u({
|
|
149
149
|
theme: e.theme,
|
|
150
150
|
"popper-class": [
|
|
151
151
|
e.popperClass,
|
|
@@ -162,7 +162,7 @@ const Oe = ["tabindex"], Ee = { style: { width: "100%" } }, Be = { key: 0 }, Ke
|
|
|
162
162
|
"auto-hide": !1,
|
|
163
163
|
container: e.container,
|
|
164
164
|
"auto-size": e.autoSize
|
|
165
|
-
}, t(
|
|
165
|
+
}, t(f)[t(y).TRIGGER]), {
|
|
166
166
|
popper: c(() => [
|
|
167
167
|
a(ue, null, {
|
|
168
168
|
default: c(() => [
|
|
@@ -170,100 +170,102 @@ const Oe = ["tabindex"], Ee = { style: { width: "100%" } }, Be = { key: 0 }, Ke
|
|
|
170
170
|
key: 0,
|
|
171
171
|
ref_key: "listRef",
|
|
172
172
|
ref: le,
|
|
173
|
-
class:
|
|
173
|
+
class: K(["light-theme-v4", {
|
|
174
174
|
"dropdown--disabled": e.disabled,
|
|
175
175
|
"inline-search": e.inlineSearch
|
|
176
176
|
}]),
|
|
177
|
-
style: ce({ width: t(
|
|
177
|
+
style: ce({ width: t(re) })
|
|
178
178
|
}, [
|
|
179
179
|
t(s) ? (i(), n("div", {
|
|
180
180
|
key: 0,
|
|
181
|
-
class:
|
|
182
|
-
onKeydown:
|
|
183
|
-
(...
|
|
181
|
+
class: K(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi": e.multi }]),
|
|
182
|
+
onKeydown: l[7] || (l[7] = //@ts-ignore
|
|
183
|
+
(...o) => t(b) && t(b)(...o))
|
|
184
184
|
}, [
|
|
185
|
-
t(s) && e.inlineSearch ? (i(), n("div",
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
185
|
+
t(s) && e.inlineSearch ? (i(), n("div", Ve, [
|
|
186
|
+
I(k.$slots, "inline-search", {}, () => [
|
|
187
|
+
a(t(Ie), {
|
|
188
|
+
modelValue: t(C),
|
|
189
|
+
"onUpdate:modelValue": [
|
|
190
|
+
l[4] || (l[4] = (o) => ye(C) ? C.value = o : null),
|
|
191
|
+
e.onClear
|
|
192
|
+
],
|
|
193
|
+
placeholder: e.inlineSearchPlaceholder,
|
|
194
|
+
variant: "transparent",
|
|
195
|
+
size: "md",
|
|
196
|
+
"auto-focus": e.searchAutoFocus,
|
|
197
|
+
"test-id": e.testId,
|
|
198
|
+
onKeydown: t(b)
|
|
199
|
+
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
|
|
200
|
+
], !0)
|
|
199
201
|
])) : r("", !0),
|
|
200
|
-
I(
|
|
201
|
-
|
|
202
|
+
I(k.$slots, "input-list", { open: t(s) }, void 0, !0),
|
|
203
|
+
m("div", u({
|
|
202
204
|
class: ["list-container", { "list-container--multi": e.multi }],
|
|
203
|
-
style: { height: `${t(
|
|
205
|
+
style: { height: `${t(Y)}rem` }
|
|
204
206
|
}, {
|
|
205
|
-
...t(
|
|
206
|
-
...t(
|
|
207
|
+
...t(q),
|
|
208
|
+
...t(f)[t(y).LIST_CONTAINER]
|
|
207
209
|
}), [
|
|
208
|
-
|
|
210
|
+
m("ul", u(t(j), {
|
|
209
211
|
role: "listbox",
|
|
210
212
|
class: ["list", { "list--multi": e.multi }]
|
|
211
213
|
}), [
|
|
212
|
-
!t(
|
|
213
|
-
a(t(
|
|
214
|
+
!t(J).length && !e.loading ? (i(), n("li", Fe, [
|
|
215
|
+
a(t(G), u({ variant: "body2" }, t(f)[t(y).NO_RESULT]), {
|
|
214
216
|
default: c(() => [
|
|
215
|
-
|
|
217
|
+
T(fe(e.noResultsText), 1)
|
|
216
218
|
]),
|
|
217
219
|
_: 1
|
|
218
220
|
}, 16)
|
|
219
221
|
])) : r("", !0),
|
|
220
|
-
e.loading ? (i(), n("li",
|
|
222
|
+
e.loading ? (i(), n("li", De, [
|
|
221
223
|
a(t(Ce)),
|
|
222
|
-
a(t(
|
|
224
|
+
a(t(G), null, {
|
|
223
225
|
default: c(() => [
|
|
224
|
-
|
|
226
|
+
T("Loading...")
|
|
225
227
|
]),
|
|
226
228
|
_: 1
|
|
227
229
|
})
|
|
228
230
|
])) : r("", !0),
|
|
229
|
-
e.showSelectAll !== !1 && e.multi ? (i(), n("li",
|
|
230
|
-
a(t(
|
|
231
|
+
e.showSelectAll !== !1 && e.multi ? (i(), n("li", Pe, [
|
|
232
|
+
a(t(M), u(
|
|
231
233
|
{
|
|
232
|
-
"aria-selected": t(
|
|
234
|
+
"aria-selected": t(N),
|
|
233
235
|
"aria-disabled": !!e.disabled,
|
|
234
|
-
"selected-prop": t(
|
|
235
|
-
"is-indeterminate": t(
|
|
236
|
+
"selected-prop": t(N),
|
|
237
|
+
"is-indeterminate": t(Q),
|
|
236
238
|
"select-all-option": ""
|
|
237
239
|
},
|
|
238
|
-
t(
|
|
240
|
+
t(f)[t(y).SELECT_ALL],
|
|
239
241
|
{
|
|
240
|
-
onClick:
|
|
242
|
+
onClick: l[5] || (l[5] = U((o) => t(Z)(), ["stop"]))
|
|
241
243
|
}
|
|
242
244
|
), {
|
|
243
245
|
default: c(() => [
|
|
244
|
-
|
|
246
|
+
T("Select all ")
|
|
245
247
|
]),
|
|
246
248
|
_: 1
|
|
247
249
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
|
|
248
250
|
])) : r("", !0),
|
|
249
|
-
t(
|
|
250
|
-
key:
|
|
251
|
-
"aria-selected": t(S)(
|
|
251
|
+
t(V).length && !e.loading ? (i(!0), n(me, { key: 3 }, pe(t(V), ({ data: o, index: h }) => (i(), n("li", {
|
|
252
|
+
key: h,
|
|
253
|
+
"aria-selected": t(S)(w(t(g)), o),
|
|
252
254
|
"aria-disabled": !!e.disabled,
|
|
253
|
-
onClick:
|
|
255
|
+
onClick: U(() => t(F)(o, h), ["stop"])
|
|
254
256
|
}, [
|
|
255
|
-
I(
|
|
256
|
-
option:
|
|
257
|
-
index:
|
|
258
|
-
selected: t(S)(
|
|
259
|
-
active:
|
|
260
|
-
disabled:
|
|
257
|
+
I(k.$slots, "default", {
|
|
258
|
+
option: o,
|
|
259
|
+
index: h,
|
|
260
|
+
selected: t(S)(w(t(g)), o),
|
|
261
|
+
active: w(t(D)) === h,
|
|
262
|
+
disabled: o[d.disabledOptionKey]
|
|
261
263
|
}, () => [
|
|
262
|
-
a(t(
|
|
263
|
-
option:
|
|
264
|
-
"selected-prop": t(S)(
|
|
265
|
-
active:
|
|
266
|
-
disabled:
|
|
264
|
+
a(t(M), {
|
|
265
|
+
option: o,
|
|
266
|
+
"selected-prop": t(S)(w(t(g)), o),
|
|
267
|
+
active: w(t(D)) === h,
|
|
268
|
+
disabled: o[d.disabledOptionKey],
|
|
267
269
|
"name-key": e.optionNameKey,
|
|
268
270
|
"image-key": e.optionImageKey,
|
|
269
271
|
"icon-key": e.optionIconKey,
|
|
@@ -274,56 +276,56 @@ const Oe = ["tabindex"], Ee = { style: { width: "100%" } }, Be = { key: 0 }, Ke
|
|
|
274
276
|
"option-two-lines-key": e.optionTwoLinesKey
|
|
275
277
|
}, 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"])
|
|
276
278
|
], !0)
|
|
277
|
-
], 8,
|
|
279
|
+
], 8, Re))), 128)) : r("", !0)
|
|
278
280
|
], 16)
|
|
279
281
|
], 16),
|
|
280
282
|
e.multi ? (i(), n("div", ze, [
|
|
281
|
-
|
|
283
|
+
m("div", xe, [
|
|
282
284
|
a(t(L), u(
|
|
283
285
|
{
|
|
284
286
|
ref_key: "clearAll",
|
|
285
|
-
ref:
|
|
287
|
+
ref: de,
|
|
286
288
|
size: "small",
|
|
287
289
|
variant: "text",
|
|
288
290
|
color: "primary"
|
|
289
291
|
},
|
|
290
|
-
t(
|
|
292
|
+
t(f)[t(y).ACTION_CLEAR_ALL],
|
|
291
293
|
{
|
|
292
|
-
onClick:
|
|
294
|
+
onClick: l[6] || (l[6] = () => t(R)(!1))
|
|
293
295
|
}
|
|
294
296
|
), {
|
|
295
297
|
default: c(() => [
|
|
296
|
-
|
|
298
|
+
T(" Clear all ")
|
|
297
299
|
]),
|
|
298
300
|
_: 1
|
|
299
301
|
}, 16)
|
|
300
302
|
]),
|
|
301
|
-
|
|
303
|
+
m("div", $e, [
|
|
302
304
|
a(t(L), u(
|
|
303
305
|
{
|
|
304
306
|
ref_key: "cancel",
|
|
305
|
-
ref:
|
|
307
|
+
ref: ne,
|
|
306
308
|
size: "small",
|
|
307
309
|
variant: "outlined",
|
|
308
310
|
color: "primary"
|
|
309
311
|
},
|
|
310
|
-
t(
|
|
311
|
-
{ onClick: t(
|
|
312
|
+
t(f)[t(y).ACTION_CANCEL],
|
|
313
|
+
{ onClick: t(ee) }
|
|
312
314
|
), {
|
|
313
315
|
default: c(() => [
|
|
314
|
-
|
|
316
|
+
T(" Cancel ")
|
|
315
317
|
]),
|
|
316
318
|
_: 1
|
|
317
319
|
}, 16, ["onClick"]),
|
|
318
320
|
a(t(L), u({
|
|
319
321
|
ref_key: "apply",
|
|
320
|
-
ref:
|
|
322
|
+
ref: ie,
|
|
321
323
|
"data-testid": "mutli-apply",
|
|
322
324
|
size: "small",
|
|
323
325
|
class: "apply-button"
|
|
324
|
-
}, t(
|
|
326
|
+
}, t(f)[t(y).ACTION_APPLY], { onClick: t(te) }), {
|
|
325
327
|
default: c(() => [
|
|
326
|
-
|
|
328
|
+
T("Apply ")
|
|
327
329
|
]),
|
|
328
330
|
_: 1
|
|
329
331
|
}, 16, ["onClick"])
|
|
@@ -336,27 +338,53 @@ const Oe = ["tabindex"], Ee = { style: { width: "100%" } }, Be = { key: 0 }, Ke
|
|
|
336
338
|
})
|
|
337
339
|
]),
|
|
338
340
|
default: c(() => [
|
|
339
|
-
|
|
340
|
-
class:
|
|
341
|
+
m("div", {
|
|
342
|
+
class: K(["button__container", {
|
|
341
343
|
"button__container--open": !!t(s),
|
|
342
344
|
[`button__container--${e.size}`]: !0,
|
|
343
345
|
"button__container--disabled": e.disabled
|
|
344
346
|
}])
|
|
345
347
|
}, [
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
348
|
+
m("div", {
|
|
349
|
+
ref_key: "buttonRef",
|
|
350
|
+
ref: P
|
|
351
|
+
}, [
|
|
352
|
+
I(k.$slots, "dropdown-trigger", {
|
|
353
|
+
buttonTriggerProps: {
|
|
354
|
+
open: t(s),
|
|
355
|
+
disabled: e.disabled,
|
|
356
|
+
label: t(_) || e.placeholder,
|
|
357
|
+
onClick: () => t(v)()
|
|
358
|
+
},
|
|
359
|
+
defaultTriggerProps: {
|
|
360
|
+
placeholder: e.placeholder,
|
|
361
|
+
open: t(s),
|
|
362
|
+
label: e.triggerLabel,
|
|
363
|
+
showFeedbackIcon: e.triggerFeedbackShowIcon,
|
|
364
|
+
mandatory: e.mandatory,
|
|
365
|
+
testId: e.testId,
|
|
366
|
+
multi: e.multi,
|
|
367
|
+
disabled: e.disabled,
|
|
368
|
+
selectedOption: e.multi ? t(A) : t(g),
|
|
369
|
+
displayValue: e.displayValue,
|
|
370
|
+
options: e.options,
|
|
371
|
+
optionNameKey: e.optionNameKey,
|
|
372
|
+
optionImageKey: e.optionImageKey,
|
|
373
|
+
optionIconKey: e.optionIconKey,
|
|
374
|
+
optionIconType: e.optionIconType,
|
|
375
|
+
optionAndIconKey: e.optionEndIconKey,
|
|
376
|
+
optionEndIconType: e.optionEndIconType,
|
|
377
|
+
feedbackVariant: e.triggerFeedbackVariant,
|
|
378
|
+
valueToCopy: e.valueToCopy,
|
|
379
|
+
statusDotType: e.statusType,
|
|
380
|
+
size: e.size,
|
|
381
|
+
showAllSelectedText: e.triggerShowAllSelectedText,
|
|
382
|
+
onKeydown: t(B),
|
|
383
|
+
onClick: $
|
|
384
|
+
}
|
|
385
|
+
}, () => [
|
|
386
|
+
t(z) ? (i(), n("div", Oe, [
|
|
387
|
+
(i(), W(ge(t(z)), {
|
|
360
388
|
placeholder: e.placeholder,
|
|
361
389
|
open: t(s),
|
|
362
390
|
label: e.triggerLabel,
|
|
@@ -365,7 +393,7 @@ const Oe = ["tabindex"], Ee = { style: { width: "100%" } }, Be = { key: 0 }, Ke
|
|
|
365
393
|
"test-id": e.testId,
|
|
366
394
|
multi: e.multi,
|
|
367
395
|
disabled: e.disabled,
|
|
368
|
-
"selected-option": e.multi ? t(
|
|
396
|
+
"selected-option": e.multi ? t(A) : t(g),
|
|
369
397
|
"display-value": e.displayValue,
|
|
370
398
|
options: e.options,
|
|
371
399
|
"option-name-key": e.optionNameKey,
|
|
@@ -379,36 +407,36 @@ const Oe = ["tabindex"], Ee = { style: { width: "100%" } }, Be = { key: 0 }, Ke
|
|
|
379
407
|
"status-dot-type": e.statusType,
|
|
380
408
|
size: e.size,
|
|
381
409
|
"show-all-selected-text": e.triggerShowAllSelectedText,
|
|
382
|
-
onKeydown: t(
|
|
383
|
-
onClick:
|
|
384
|
-
onCopyToClipboard:
|
|
410
|
+
onKeydown: t(B),
|
|
411
|
+
onClick: $,
|
|
412
|
+
onCopyToClipboard: l[0] || (l[0] = (o) => E("copyToClipboard"))
|
|
385
413
|
}, 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"]))
|
|
386
414
|
])) : r("", !0),
|
|
387
|
-
e.predefinedTrigger === t(
|
|
388
|
-
a(t(
|
|
389
|
-
onClick:
|
|
415
|
+
e.predefinedTrigger === t(p).ICON_BUTTON ? (i(), n("div", Be, [
|
|
416
|
+
a(t(be), {
|
|
417
|
+
onClick: l[1] || (l[1] = (o) => t(v)())
|
|
390
418
|
})
|
|
391
419
|
])) : r("", !0),
|
|
392
|
-
e.predefinedTrigger === t(
|
|
393
|
-
a(t(
|
|
420
|
+
e.predefinedTrigger === t(p).CHIP ? (i(), n("div", Ne, [
|
|
421
|
+
a(t(ke), {
|
|
394
422
|
open: t(s),
|
|
395
423
|
label: e.placeholder,
|
|
396
424
|
"test-id": e.testId,
|
|
397
425
|
options: e.options,
|
|
398
|
-
"selected-option": e.multi ? t(
|
|
426
|
+
"selected-option": e.multi ? t(A) : t(g),
|
|
399
427
|
"display-value": e.displayValue,
|
|
400
428
|
multi: e.multi,
|
|
401
|
-
onClick:
|
|
402
|
-
onClear:
|
|
429
|
+
onClick: l[2] || (l[2] = (o) => t(v)()),
|
|
430
|
+
onClear: l[3] || (l[3] = (o) => t(R)())
|
|
403
431
|
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi"])
|
|
404
432
|
])) : r("", !0)
|
|
405
|
-
],
|
|
406
|
-
],
|
|
433
|
+
], !0)
|
|
434
|
+
], 512)
|
|
407
435
|
], 2)
|
|
408
436
|
]),
|
|
409
437
|
_: 3
|
|
410
438
|
}, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
|
|
411
|
-
e.triggerFeedbackText ? (i(),
|
|
439
|
+
e.triggerFeedbackText ? (i(), W(Ke, {
|
|
412
440
|
key: 0,
|
|
413
441
|
text: e.triggerFeedbackText,
|
|
414
442
|
variant: e.triggerFeedbackVariant,
|
|
@@ -417,7 +445,7 @@ const Oe = ["tabindex"], Ee = { style: { width: "100%" } }, Be = { key: 0 }, Ke
|
|
|
417
445
|
class: "dropdown-field-help-text"
|
|
418
446
|
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : r("", !0)
|
|
419
447
|
])
|
|
420
|
-
], 16,
|
|
448
|
+
], 16, Le));
|
|
421
449
|
}
|
|
422
450
|
});
|
|
423
451
|
export {
|
|
@@ -13,8 +13,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
13
13
|
endIconKey?: string;
|
|
14
14
|
endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
15
15
|
toolTipPlacement?: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
16
|
+
treeMainOption?: boolean;
|
|
17
|
+
treeMainOptionExpanded?: boolean;
|
|
18
|
+
stopOptionClickEventPropagation?: boolean;
|
|
16
19
|
optionTwoLinesVariant?: "horizontal" | "vertical";
|
|
17
20
|
optionTwoLinesKey?: string;
|
|
21
|
+
treeChildShown?: boolean;
|
|
18
22
|
}>, {
|
|
19
23
|
subtitle: string;
|
|
20
24
|
disabled: boolean;
|
|
@@ -29,9 +33,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
29
33
|
endIconKey: any;
|
|
30
34
|
endIconType: string;
|
|
31
35
|
toolTipPlacement: string;
|
|
36
|
+
treeMainOption: boolean;
|
|
37
|
+
treeMainOptionExpanded: boolean;
|
|
38
|
+
stopOptionClickEventPropagation: boolean;
|
|
32
39
|
optionTwoLinesVariant: any;
|
|
33
40
|
optionTwoLinesKey: any;
|
|
34
|
-
|
|
41
|
+
treeChildShown: boolean;
|
|
42
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
|
+
toggleTreeCollapse: (option: unknown) => void;
|
|
44
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
35
45
|
option?: unknown;
|
|
36
46
|
subtitle?: string;
|
|
37
47
|
disabled?: boolean;
|
|
@@ -46,8 +56,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
46
56
|
endIconKey?: string;
|
|
47
57
|
endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
48
58
|
toolTipPlacement?: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
59
|
+
treeMainOption?: boolean;
|
|
60
|
+
treeMainOptionExpanded?: boolean;
|
|
61
|
+
stopOptionClickEventPropagation?: boolean;
|
|
49
62
|
optionTwoLinesVariant?: "horizontal" | "vertical";
|
|
50
63
|
optionTwoLinesKey?: string;
|
|
64
|
+
treeChildShown?: boolean;
|
|
51
65
|
}>, {
|
|
52
66
|
subtitle: string;
|
|
53
67
|
disabled: boolean;
|
|
@@ -62,9 +76,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
62
76
|
endIconKey: any;
|
|
63
77
|
endIconType: string;
|
|
64
78
|
toolTipPlacement: string;
|
|
79
|
+
treeMainOption: boolean;
|
|
80
|
+
treeMainOptionExpanded: boolean;
|
|
81
|
+
stopOptionClickEventPropagation: boolean;
|
|
65
82
|
optionTwoLinesVariant: any;
|
|
66
83
|
optionTwoLinesKey: any;
|
|
67
|
-
|
|
84
|
+
treeChildShown: boolean;
|
|
85
|
+
}>>> & {
|
|
86
|
+
onToggleTreeCollapse?: (option: unknown) => any;
|
|
87
|
+
}, {
|
|
68
88
|
option: any;
|
|
69
89
|
disabled: boolean;
|
|
70
90
|
active: boolean;
|
|
@@ -80,6 +100,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
80
100
|
iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
81
101
|
endIconKey: string;
|
|
82
102
|
toolTipPlacement: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
103
|
+
treeMainOption: boolean;
|
|
104
|
+
treeMainOptionExpanded: boolean;
|
|
105
|
+
stopOptionClickEventPropagation: boolean;
|
|
106
|
+
treeChildShown: boolean;
|
|
83
107
|
}>, {
|
|
84
108
|
image?(_: {}): any;
|
|
85
109
|
"icon-start"?(_: {}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./OptionV4.vue2.js";
|
|
2
2
|
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../OptionV4.
|
|
4
|
-
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../OptionV4.vue_vue_type_style_index_0_scoped_77509f61_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-77509f61"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|