@ironsource/shared-ui 2.1.12-rc.14 → 2.1.12-rc.15
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/DropdownV4.vue_vue_type_style_index_0_scoped_4de6dfb8_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_8ba7e191_lang.css +1 -0
- package/components/dropdown/v4/DropdownV4.vue.d.ts +3 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +93 -88
- package/components/dropdown/v4/OptionV4.vue.d.ts +3 -0
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +38 -35
- package/components/dropdown/v4/index.d.ts +6 -0
- package/index.d.ts +12 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_d154c5da_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_1e8837dc_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.v-enter-active[data-v-4de6dfb8],.v-leave-active[data-v-4de6dfb8]{transition:opacity .25s ease}ol[data-v-4de6dfb8],ul[data-v-4de6dfb8],menu[data-v-4de6dfb8]{list-style:none;margin:0;padding:0}.dropdown.full-width[data-v-4de6dfb8],.dropdown.full-width .button__container[data-v-4de6dfb8]{width:100%}.dropdown-list-wrapper[data-v-4de6dfb8]{display:flex;flex-direction:column;padding:.5rem .5rem .25rem}.dropdown-list-wrapper--multi[data-v-4de6dfb8]{padding:.5rem}.list-container--multi[data-v-4de6dfb8]{margin-bottom:0}.inline-search .inline-search-wrapper[data-v-4de6dfb8]{display:flex;gap:4px;padding-bottom:.25rem}.inline-search .inline-search-wrapper .search-container[data-v-4de6dfb8]{width:100%}.inline-search .list-container[data-v-4de6dfb8]{padding-top:0}.no-result-container[data-v-4de6dfb8]{height:100%;display:flex;align-items:center;padding:.375rem .5rem;color:var(--text-disabled)}.no-result[data-v-4de6dfb8]{color:var(--text-disabled);padding-left:.5rem}.list[data-v-4de6dfb8]{outline:none;display:flex;flex-direction:column;width:100%;min-height:2rem}.list--multi[data-v-4de6dfb8]{margin-bottom:.5rem;border-bottom-left-radius:0;border-bottom-right-radius:0}.list--with-conditions[data-v-4de6dfb8]{min-height:0;margin-bottom:0}.image-slot[data-v-4de6dfb8]{margin-right:.5rem}.actions-wrapper[data-v-4de6dfb8]{display:flex;width:100%;padding:.5rem .5rem .5rem .125rem;padding-bottom:0;border-top:1px solid var(--common-divider);justify-content:space-between;margin-top:.25rem}.apply-button[data-v-4de6dfb8]{margin-left:.5rem}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.label[data-v-8ba7e191]{color:#41454d}.item-container[data-v-8ba7e191]{width:100%;display:flex;align-items:center;cursor:pointer;border-radius:var(--border-radius-lg);margin-bottom:.25rem;color:var(--text-primary);padding:6px 8px}.item-container--disabled[data-v-8ba7e191]{cursor:initial;color:var(--text-disabled)}.item-container[data-v-8ba7e191]:hover:not(.item-container--disabled){background-color:var(--action-hover)}.item-container--active[data-v-8ba7e191],.item-container[data-v-8ba7e191]:active{background-color:var(--action-selected)}.item-container:not(.item-container--multi).item-container--selected[data-v-8ba7e191]{background-color:var(--action-selected)}.subtitle[data-v-8ba7e191]{color:#7b838c;line-height:1rem}.clear-button[data-v-8ba7e191]{display:flex;padding:0 4px;color:#7b838c;align-items:center;height:auto;background-image:none;min-width:auto;border:none;background-color:transparent}.clear-button[data-v-8ba7e191]:hover{color:#3083ff}.item[data-v-8ba7e191]{width:100%;display:flex;gap:.5rem;align-items:center}.item--with-icon[data-v-8ba7e191],.item--multi[data-v-8ba7e191]{display:flex;flex-direction:row;align-items:center;justify-content:start}.item .image[data-v-8ba7e191]{width:20px;height:20px;flex:none}.item .image img[data-v-8ba7e191]{width:20px;height:20px;border-radius:4px}.item .flag[data-v-8ba7e191]{width:16px;height:16px}.item .flag img[data-v-8ba7e191]{width:16px;height:16px;border-radius:50%}.item .start-icon[data-v-8ba7e191],.item .end-icon[data-v-8ba7e191]{display:flex;color:var(--action-active)}.item .end-text-icon[data-v-8ba7e191]{display:inline-flex}.item .option-text[data-v-8ba7e191]{line-height:1.1875rem}.text-container[data-v-8ba7e191]{width:100%;text-overflow:ellipsis;overflow:hidden}.v4-tooltip.tooltip-option[data-v-8ba7e191]{display:block}.tooltip-option[data-v-8ba7e191] .container{width:100%}.app-trigger--icon[data-v-8ba7e191]{color:var(--action-active);transform:rotate(-90deg);transition:transform .2s}.app-trigger--icon.expanded[data-v-8ba7e191]{transform:rotate(0)}.option-content[data-v-8ba7e191]{display:flex}.option-content[data-v-8ba7e191]:not(.option-content-vertical){gap:.5rem;align-items:center}.option-content-horizontal[data-v-8ba7e191]{justify-content:space-between;gap:.5rem}.option-content-vertical[data-v-8ba7e191]{flex-direction:column}.option-text .main-text[data-v-8ba7e191]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left}.option-text .main-text .conditional-option-label[data-v-8ba7e191]{color:var(--text-secondary);display:inline-flex}.option-text .main-text .conditional-option-value[data-v-8ba7e191]{margin-left:4px;display:inline-flex;color:var(--primary-main)}.option-text .caption-text[data-v-8ba7e191]{color:var(--text-secondary)}.multiline-tooltip[data-v-8ba7e191]{display:flex;flex-direction:column}
|
|
@@ -384,6 +384,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
384
384
|
active: boolean;
|
|
385
385
|
disabled: any;
|
|
386
386
|
}): any;
|
|
387
|
+
"option-end"?(_: {
|
|
388
|
+
option: any;
|
|
389
|
+
}): any;
|
|
387
390
|
}>;
|
|
388
391
|
export default _default;
|
|
389
392
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./DropdownV4.vue2.js";
|
|
2
|
-
/* empty css *//* empty css */import
|
|
3
|
-
// import "../../../DropdownV4.
|
|
2
|
+
/* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_4de6dfb8_lang.css"; //*');
|
|
4
4
|
// import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
-
const d = /* @__PURE__ */
|
|
5
|
+
const d = /* @__PURE__ */ e(o, [["__scopeId", "data-v-4de6dfb8"]]);
|
|
6
6
|
export {
|
|
7
7
|
d as default
|
|
8
8
|
};
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_4de6dfb8_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as me, computed as H, watch as pe, openBlock as a, createElementBlock as s, mergeProps as f, unref as t, renderSlot as y, createElementVNode as m, createVNode as i, withCtx as r, Transition as ge, normalizeClass as E, normalizeStyle as Te, createTextVNode as T, createCommentVNode as d, isRef as ke, toDisplayString as U, withModifiers as G, Fragment as he, renderList as be, toRaw as C, createBlock as X, resolveDynamicComponent as we } from "vue";
|
|
2
2
|
import O from "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
4
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
5
5
|
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
6
6
|
import "./DropdownV4.vue.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
7
|
+
import Ie from "./DefaultDropdownTrigger.vue.js";
|
|
8
|
+
import ve from "./IconButtonDropdownTrigger.vue.js";
|
|
9
|
+
import Ce from "./ChipDropdownTrigger.vue.js";
|
|
10
|
+
import Se from "./AppDropdownTrigger.vue.js";
|
|
11
11
|
import "./ButtonDropdownTrigger.vue.js";
|
|
12
12
|
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
13
13
|
import "./TreeDropdown.vue.js";
|
|
14
14
|
import q from "./OptionV4.vue.js";
|
|
15
15
|
import "./ConditionalDropdown.vue.js";
|
|
16
|
-
import
|
|
16
|
+
import Ke from "../../search/v4/SearchV4.vue.js";
|
|
17
17
|
import Y from "../../typography/v4/Typography.vue.js";
|
|
18
|
-
import { Dropdown as
|
|
18
|
+
import { Dropdown as Ae } from "floating-vue";
|
|
19
19
|
import { DropdownTestIdModifiers as p } from "../../../testids/index.js";
|
|
20
|
-
import { dropdownCommon as
|
|
20
|
+
import { dropdownCommon as Le } from "../common/Dropdown.common.js";
|
|
21
21
|
import S from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
22
|
-
import { useTestIdAttrs as
|
|
22
|
+
import { useTestIdAttrs as Ee } from "../../../utils/testIds.js";
|
|
23
23
|
import { TRIGGERS as k } from "./Dropdown.types.js";
|
|
24
|
-
import { useElementSize as
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
const
|
|
24
|
+
import { useElementSize as Oe } from "@vueuse/core";
|
|
25
|
+
import Be from "../../shared/FieldHelpText.vue.js";
|
|
26
|
+
import Fe from "./GroupOption.vue.js";
|
|
27
|
+
const Ne = ["tabindex"], Ve = { style: { width: "100%" } }, De = { key: 0 }, Pe = { key: 1 }, xe = { key: 2 }, Re = {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: "inline-search-wrapper"
|
|
30
|
-
},
|
|
30
|
+
}, ze = { class: "dropdown-conditions" }, $e = {
|
|
31
31
|
key: 0,
|
|
32
32
|
class: "no-result-container"
|
|
33
|
-
},
|
|
33
|
+
}, Me = ["aria-selected", "aria-disabled", "onClick"], We = {
|
|
34
34
|
key: 3,
|
|
35
35
|
class: "loader"
|
|
36
|
-
},
|
|
36
|
+
}, He = {
|
|
37
37
|
key: 1,
|
|
38
38
|
class: "actions-wrapper"
|
|
39
|
-
},
|
|
39
|
+
}, Ue = { class: "actions-clear-all" }, Ge = { class: "actions-apply-cancel" }, ht = /* @__PURE__ */ me({
|
|
40
40
|
__name: "DropdownV4",
|
|
41
41
|
props: {
|
|
42
42
|
modelValue: { default: null },
|
|
@@ -113,7 +113,7 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
113
113
|
VERSION: 4
|
|
114
114
|
}, {
|
|
115
115
|
onKeydown: b,
|
|
116
|
-
open:
|
|
116
|
+
open: u,
|
|
117
117
|
toggleMenu: I,
|
|
118
118
|
onButtonKeydown: N,
|
|
119
119
|
query: v,
|
|
@@ -125,13 +125,13 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
125
125
|
allSelectedApplied: K,
|
|
126
126
|
isIndeterminate: ee,
|
|
127
127
|
onSelectAll: te,
|
|
128
|
-
virtualOptions:
|
|
128
|
+
virtualOptions: D,
|
|
129
129
|
isSelected: A,
|
|
130
130
|
selectedOption: h,
|
|
131
131
|
selectedOptionPrevious: L,
|
|
132
132
|
selectedValue: oe,
|
|
133
|
-
onSelect:
|
|
134
|
-
activeIndex:
|
|
133
|
+
onSelect: P,
|
|
134
|
+
activeIndex: x,
|
|
135
135
|
onCancel: le,
|
|
136
136
|
onApply: ie,
|
|
137
137
|
scrollTo: ne,
|
|
@@ -143,8 +143,8 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
143
143
|
onClearAllSelections: z,
|
|
144
144
|
clearAll: ue,
|
|
145
145
|
isGroup: ce
|
|
146
|
-
} =
|
|
147
|
-
|
|
146
|
+
} = Le(n, B, F), g = Ee(n.testId, p), $ = H(() => !n.predefinedTrigger || n.predefinedTrigger === k.DEFAULT ? Ie : n.predefinedTrigger === k.APP ? Se : null), { width: M } = Oe(R), ye = H(() => n.optionsListWidth ? n.optionsListWidth : !n.predefinedTrigger || n.predefinedTrigger === k.DEFAULT || n.predefinedTrigger === k.APP ? M.value - 2 > 240 ? `${M.value - 2}px` : `${F.DROPLIST_MIN_WIDTH}px` : "auto");
|
|
147
|
+
pe(
|
|
148
148
|
() => n.optionsListWidth,
|
|
149
149
|
() => {
|
|
150
150
|
n.optionsListWidth && document.documentElement.style.setProperty(
|
|
@@ -157,9 +157,9 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
157
157
|
I();
|
|
158
158
|
};
|
|
159
159
|
return j({
|
|
160
|
-
selectItem:
|
|
160
|
+
selectItem: P,
|
|
161
161
|
scrollTo: ne
|
|
162
|
-
}), (c, l) => (a(), s("div",
|
|
162
|
+
}), (c, l) => (a(), s("div", f({
|
|
163
163
|
ref_key: "el",
|
|
164
164
|
ref: re,
|
|
165
165
|
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
|
|
@@ -168,9 +168,9 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
168
168
|
onKeydown: l[8] || (l[8] = //@ts-ignore
|
|
169
169
|
(...o) => t(b) && t(b)(...o))
|
|
170
170
|
}), [
|
|
171
|
-
|
|
172
|
-
m("div",
|
|
173
|
-
i(t(
|
|
171
|
+
y(c.$slots, "label", {}, void 0, !0),
|
|
172
|
+
m("div", Ve, [
|
|
173
|
+
i(t(Ae), f({
|
|
174
174
|
theme: e.theme,
|
|
175
175
|
"popper-class": [
|
|
176
176
|
e.popperClass,
|
|
@@ -183,15 +183,15 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
183
183
|
distance: e.distance,
|
|
184
184
|
flip: e.flip,
|
|
185
185
|
triggers: [],
|
|
186
|
-
shown: !!t(
|
|
186
|
+
shown: !!t(u),
|
|
187
187
|
"auto-hide": !1,
|
|
188
188
|
container: e.container,
|
|
189
189
|
"auto-size": e.autoSize
|
|
190
190
|
}, t(g)[t(p).TRIGGER]), {
|
|
191
|
-
popper:
|
|
192
|
-
i(
|
|
193
|
-
default:
|
|
194
|
-
t(
|
|
191
|
+
popper: r(() => [
|
|
192
|
+
i(ge, null, {
|
|
193
|
+
default: r(() => [
|
|
194
|
+
t(u) ? (a(), s("div", {
|
|
195
195
|
key: 0,
|
|
196
196
|
ref_key: "listRef",
|
|
197
197
|
ref: ae,
|
|
@@ -199,30 +199,30 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
199
199
|
"dropdown--disabled": e.disabled,
|
|
200
200
|
"inline-search": e.inlineSearch
|
|
201
201
|
}]),
|
|
202
|
-
style:
|
|
202
|
+
style: Te({ width: t(ye) })
|
|
203
203
|
}, [
|
|
204
|
-
t(
|
|
204
|
+
t(u) ? (a(), s("div", {
|
|
205
205
|
key: 0,
|
|
206
206
|
class: E(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi": e.multi }]),
|
|
207
207
|
onKeydown: l[7] || (l[7] = //@ts-ignore
|
|
208
208
|
(...o) => t(b) && t(b)(...o))
|
|
209
209
|
}, [
|
|
210
|
-
t(
|
|
211
|
-
e.withConditions ?
|
|
212
|
-
m("div",
|
|
210
|
+
t(u) && e.inlineSearch ? (a(), s("div", Re, [
|
|
211
|
+
e.withConditions ? y(c.$slots, "dropdown-conditions", { key: 0 }, () => [
|
|
212
|
+
m("div", ze, [
|
|
213
213
|
i(t(Y), { variant: "body2" }, {
|
|
214
|
-
default:
|
|
214
|
+
default: r(() => [
|
|
215
215
|
T("Conditions")
|
|
216
216
|
]),
|
|
217
217
|
_: 1
|
|
218
218
|
})
|
|
219
219
|
])
|
|
220
220
|
], !0) : d("", !0),
|
|
221
|
-
|
|
222
|
-
i(t(
|
|
221
|
+
y(c.$slots, "inline-search", {}, () => [
|
|
222
|
+
i(t(Ke), {
|
|
223
223
|
modelValue: t(v),
|
|
224
224
|
"onUpdate:modelValue": [
|
|
225
|
-
l[4] || (l[4] = (o) =>
|
|
225
|
+
l[4] || (l[4] = (o) => ke(v) ? v.value = o : null),
|
|
226
226
|
e.onClearSearch
|
|
227
227
|
],
|
|
228
228
|
placeholder: e.inlineSearchPlaceholder,
|
|
@@ -234,33 +234,33 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
234
234
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
|
|
235
235
|
], !0)
|
|
236
236
|
])) : d("", !0),
|
|
237
|
-
|
|
238
|
-
m("div",
|
|
237
|
+
y(c.$slots, "input-list", { open: t(u) }, void 0, !0),
|
|
238
|
+
m("div", f({
|
|
239
239
|
class: ["list-container", { "list-container--multi": e.multi }],
|
|
240
240
|
style: { height: `${t(Q)}rem` }
|
|
241
241
|
}, {
|
|
242
242
|
...t(J),
|
|
243
243
|
...t(g)[t(p).LIST_CONTAINER]
|
|
244
244
|
}), [
|
|
245
|
-
|
|
246
|
-
m("ul",
|
|
245
|
+
y(c.$slots, "custom-list-area", {}, void 0, !0),
|
|
246
|
+
m("ul", f(t(Z), {
|
|
247
247
|
role: "listbox",
|
|
248
248
|
class: ["list", {
|
|
249
249
|
"list--multi": e.multi,
|
|
250
250
|
"list--with-conditions": e.withConditions
|
|
251
251
|
}]
|
|
252
252
|
}), [
|
|
253
|
-
!t(_).length && !e.loading && !e.withConditions ? (a(), s("li",
|
|
254
|
-
i(t(Y),
|
|
255
|
-
default:
|
|
253
|
+
!t(_).length && !e.loading && !e.withConditions ? (a(), s("li", $e, [
|
|
254
|
+
i(t(Y), f({ variant: "body2" }, t(g)[t(p).NO_RESULT]), {
|
|
255
|
+
default: r(() => [
|
|
256
256
|
T(U(e.noResultsText), 1)
|
|
257
257
|
]),
|
|
258
258
|
_: 1
|
|
259
259
|
}, 16)
|
|
260
260
|
])) : d("", !0),
|
|
261
|
-
e.showSelectAll !== !1 && e.multi && !t(v) && !e.loading && e.options.length ?
|
|
261
|
+
e.showSelectAll !== !1 && e.multi && !t(v) && !e.loading && e.options.length ? y(c.$slots, "select-all", { key: 1 }, () => [
|
|
262
262
|
m("li", null, [
|
|
263
|
-
i(t(q),
|
|
263
|
+
i(t(q), f(
|
|
264
264
|
{
|
|
265
265
|
"aria-selected": t(V),
|
|
266
266
|
"aria-disabled": !!e.disabled,
|
|
@@ -274,38 +274,38 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
274
274
|
onClick: l[5] || (l[5] = G((o) => t(te)(), ["stop"]))
|
|
275
275
|
}
|
|
276
276
|
), {
|
|
277
|
-
default:
|
|
277
|
+
default: r(() => [
|
|
278
278
|
T(" Select all ")
|
|
279
279
|
]),
|
|
280
280
|
_: 1
|
|
281
281
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate", "is-multi"])
|
|
282
282
|
])
|
|
283
283
|
], !0) : d("", !0),
|
|
284
|
-
t(
|
|
284
|
+
t(D).length && !e.loading ? (a(!0), s(he, { key: 2 }, be(t(D), ({ data: o, index: w }) => (a(), s("li", {
|
|
285
285
|
key: w,
|
|
286
286
|
"aria-selected": t(A)(C(t(h)), o),
|
|
287
287
|
"aria-disabled": !!e.disabled,
|
|
288
|
-
onClick: G(() => t(
|
|
288
|
+
onClick: G(() => t(P)(o, w), ["stop"])
|
|
289
289
|
}, [
|
|
290
|
-
e.groupedOptions && t(ce)(o) ?
|
|
291
|
-
i(
|
|
292
|
-
default:
|
|
290
|
+
e.groupedOptions && t(ce)(o) ? y(c.$slots, "group-option", { key: 0 }, () => [
|
|
291
|
+
i(Fe, null, {
|
|
292
|
+
default: r(() => [
|
|
293
293
|
T(U(e.displayValue(o) || o[e.optionNameKey]), 1)
|
|
294
294
|
]),
|
|
295
295
|
_: 2
|
|
296
296
|
}, 1024)
|
|
297
|
-
], !0) :
|
|
297
|
+
], !0) : y(c.$slots, "default", {
|
|
298
298
|
key: 1,
|
|
299
299
|
option: o,
|
|
300
300
|
index: w,
|
|
301
301
|
selected: t(A)(C(t(h)), o),
|
|
302
|
-
active: C(t(
|
|
302
|
+
active: C(t(x)) === w,
|
|
303
303
|
disabled: o[n.disabledOptionKey]
|
|
304
304
|
}, () => [
|
|
305
305
|
i(t(q), {
|
|
306
306
|
option: o,
|
|
307
307
|
"selected-prop": t(A)(t(h), o),
|
|
308
|
-
active: C(t(
|
|
308
|
+
active: C(t(x)) === w,
|
|
309
309
|
disabled: o[n.disabledOptionKey],
|
|
310
310
|
"name-key": e.optionNameKey,
|
|
311
311
|
"image-key": e.optionImageKey,
|
|
@@ -318,10 +318,15 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
318
318
|
"option-two-lines-variant": e.optionTwoLinesVariant,
|
|
319
319
|
"option-two-lines-key": e.optionTwoLinesKey,
|
|
320
320
|
"is-multi": e.multi
|
|
321
|
-
},
|
|
321
|
+
}, {
|
|
322
|
+
"option-end": r(({ option: fe }) => [
|
|
323
|
+
y(c.$slots, "option-end", { option: fe }, void 0, !0)
|
|
324
|
+
]),
|
|
325
|
+
_: 2
|
|
326
|
+
}, 1032, ["option", "selected-prop", "active", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "end-text-icon-key", "option-flag-key", "option-two-lines-variant", "option-two-lines-key", "is-multi"])
|
|
322
327
|
], !0)
|
|
323
|
-
], 8,
|
|
324
|
-
e.loading || e.loadMoreLoading ? (a(), s("li",
|
|
328
|
+
], 8, Me))), 128)) : d("", !0),
|
|
329
|
+
e.loading || e.loadMoreLoading ? (a(), s("li", We, [
|
|
325
330
|
i(t(S), { round: "" }),
|
|
326
331
|
i(t(S), { round: "" }),
|
|
327
332
|
i(t(S), { round: "" }),
|
|
@@ -329,9 +334,9 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
329
334
|
])) : d("", !0)
|
|
330
335
|
], 16)
|
|
331
336
|
], 16),
|
|
332
|
-
e.multi ? (a(), s("div",
|
|
333
|
-
m("div",
|
|
334
|
-
i(t(O),
|
|
337
|
+
e.multi ? (a(), s("div", He, [
|
|
338
|
+
m("div", Ue, [
|
|
339
|
+
i(t(O), f(
|
|
335
340
|
{
|
|
336
341
|
ref_key: "clearAll",
|
|
337
342
|
ref: ue,
|
|
@@ -344,14 +349,14 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
344
349
|
onClick: l[6] || (l[6] = () => t(z)(!1))
|
|
345
350
|
}
|
|
346
351
|
), {
|
|
347
|
-
default:
|
|
352
|
+
default: r(() => [
|
|
348
353
|
T(" Clear all ")
|
|
349
354
|
]),
|
|
350
355
|
_: 1
|
|
351
356
|
}, 16)
|
|
352
357
|
]),
|
|
353
|
-
m("div",
|
|
354
|
-
i(t(O),
|
|
358
|
+
m("div", Ge, [
|
|
359
|
+
i(t(O), f(
|
|
355
360
|
{
|
|
356
361
|
ref_key: "cancel",
|
|
357
362
|
ref: se,
|
|
@@ -362,19 +367,19 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
362
367
|
t(g)[t(p).ACTION_CANCEL],
|
|
363
368
|
{ onClick: t(le) }
|
|
364
369
|
), {
|
|
365
|
-
default:
|
|
370
|
+
default: r(() => [
|
|
366
371
|
T(" Cancel ")
|
|
367
372
|
]),
|
|
368
373
|
_: 1
|
|
369
374
|
}, 16, ["onClick"]),
|
|
370
|
-
i(t(O),
|
|
375
|
+
i(t(O), f({
|
|
371
376
|
ref_key: "apply",
|
|
372
377
|
ref: de,
|
|
373
378
|
"data-testid": "mutli-apply",
|
|
374
379
|
size: "small",
|
|
375
380
|
class: "apply-button"
|
|
376
381
|
}, t(g)[t(p).ACTION_APPLY], { onClick: t(ie) }), {
|
|
377
|
-
default:
|
|
382
|
+
default: r(() => [
|
|
378
383
|
T(" Apply ")
|
|
379
384
|
]),
|
|
380
385
|
_: 1
|
|
@@ -387,10 +392,10 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
387
392
|
_: 3
|
|
388
393
|
})
|
|
389
394
|
]),
|
|
390
|
-
default:
|
|
395
|
+
default: r(() => [
|
|
391
396
|
m("div", {
|
|
392
397
|
class: E(["button__container", {
|
|
393
|
-
"button__container--open": !!t(
|
|
398
|
+
"button__container--open": !!t(u),
|
|
394
399
|
[`button__container--${e.size}`]: !0,
|
|
395
400
|
"button__container--disabled": e.disabled
|
|
396
401
|
}])
|
|
@@ -399,16 +404,16 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
399
404
|
ref_key: "buttonRef",
|
|
400
405
|
ref: R
|
|
401
406
|
}, [
|
|
402
|
-
|
|
407
|
+
y(c.$slots, "dropdown-trigger", {
|
|
403
408
|
buttonTriggerProps: {
|
|
404
|
-
open: t(
|
|
409
|
+
open: t(u),
|
|
405
410
|
disabled: e.disabled,
|
|
406
411
|
label: t(oe) || e.placeholder,
|
|
407
412
|
onClick: () => t(I)()
|
|
408
413
|
},
|
|
409
414
|
defaultTriggerProps: {
|
|
410
415
|
placeholder: e.placeholder,
|
|
411
|
-
open: t(
|
|
416
|
+
open: t(u),
|
|
412
417
|
label: e.triggerLabel,
|
|
413
418
|
showFeedbackIcon: e.triggerFeedbackShowIcon,
|
|
414
419
|
mandatory: e.mandatory,
|
|
@@ -436,10 +441,10 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
436
441
|
onClick: W
|
|
437
442
|
}
|
|
438
443
|
}, () => [
|
|
439
|
-
t($) ? (a(), s("div",
|
|
440
|
-
(a(), X(
|
|
444
|
+
t($) ? (a(), s("div", De, [
|
|
445
|
+
(a(), X(we(t($)), {
|
|
441
446
|
placeholder: e.placeholder,
|
|
442
|
-
open: t(
|
|
447
|
+
open: t(u),
|
|
443
448
|
label: e.triggerLabel,
|
|
444
449
|
"show-feedback-icon": e.triggerFeedbackShowIcon,
|
|
445
450
|
mandatory: e.mandatory,
|
|
@@ -468,14 +473,14 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
468
473
|
onCopyToClipboard: l[0] || (l[0] = (o) => B("copyToClipboard"))
|
|
469
474
|
}, 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", "options-end-text-icon-key", "option-flag-key", "feedback-variant", "value-to-copy", "status-dot-type", "size", "show-all-selected-text", "all-selected", "onKeydown"]))
|
|
470
475
|
])) : d("", !0),
|
|
471
|
-
e.predefinedTrigger === t(k).ICON_BUTTON ? (a(), s("div",
|
|
472
|
-
i(t(
|
|
476
|
+
e.predefinedTrigger === t(k).ICON_BUTTON ? (a(), s("div", Pe, [
|
|
477
|
+
i(t(ve), {
|
|
473
478
|
onClick: l[1] || (l[1] = (o) => t(I)())
|
|
474
479
|
})
|
|
475
480
|
])) : d("", !0),
|
|
476
|
-
e.predefinedTrigger === t(k).CHIP ? (a(), s("div",
|
|
477
|
-
i(t(
|
|
478
|
-
open: t(
|
|
481
|
+
e.predefinedTrigger === t(k).CHIP ? (a(), s("div", xe, [
|
|
482
|
+
i(t(Ce), {
|
|
483
|
+
open: t(u),
|
|
479
484
|
label: e.placeholder,
|
|
480
485
|
"test-id": e.testId,
|
|
481
486
|
options: e.options,
|
|
@@ -493,7 +498,7 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
493
498
|
]),
|
|
494
499
|
_: 3
|
|
495
500
|
}, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
|
|
496
|
-
e.triggerFeedbackText ? (a(), X(
|
|
501
|
+
e.triggerFeedbackText ? (a(), X(Be, {
|
|
497
502
|
key: 0,
|
|
498
503
|
text: e.triggerFeedbackText,
|
|
499
504
|
variant: e.triggerFeedbackVariant,
|
|
@@ -502,9 +507,9 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
502
507
|
class: "dropdown-field-help-text"
|
|
503
508
|
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : d("", !0)
|
|
504
509
|
])
|
|
505
|
-
], 16,
|
|
510
|
+
], 16, Ne));
|
|
506
511
|
}
|
|
507
512
|
});
|
|
508
513
|
export {
|
|
509
|
-
|
|
514
|
+
ht as default
|
|
510
515
|
};
|
|
@@ -125,6 +125,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
125
125
|
"icon-start"?(_: {}): any;
|
|
126
126
|
default?(_: {}): any;
|
|
127
127
|
"icon-end"?(_: {}): any;
|
|
128
|
+
"option-end"?(_: {
|
|
129
|
+
option: any;
|
|
130
|
+
}): any;
|
|
128
131
|
}>;
|
|
129
132
|
export default _default;
|
|
130
133
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./OptionV4.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../OptionV4.
|
|
4
|
-
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../OptionV4.vue_vue_type_style_index_0_scoped_8ba7e191_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-8ba7e191"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../OptionV4.
|
|
1
|
+
import "../../../OptionV4.vue_vue_type_style_index_0_scoped_8ba7e191_lang.css"; import { defineComponent as P, ref as C, watch as S, computed as V, openBlock as o, createBlock as y, unref as n, createSlots as A, withCtx as s, createElementVNode as c, normalizeClass as k, createCommentVNode as i, createElementBlock as l, renderSlot as u, createVNode as a, toDisplayString as r, createTextVNode as f, withModifiers as I, Fragment as F, renderList as L } from "vue";
|
|
2
2
|
import "../../typography/Heading.vue.js";
|
|
3
3
|
import N from "../../typography/Text.vue.js";
|
|
4
4
|
import j from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
@@ -34,7 +34,7 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
34
34
|
}, ne = {
|
|
35
35
|
key: 4,
|
|
36
36
|
class: "end-icon"
|
|
37
|
-
}, oe = ["onClick"],
|
|
37
|
+
}, oe = { key: 5 }, ie = ["onClick"], le = { key: 0 }, ve = /* @__PURE__ */ P({
|
|
38
38
|
__name: "OptionV4",
|
|
39
39
|
props: {
|
|
40
40
|
option: { default: null },
|
|
@@ -63,17 +63,17 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
63
63
|
},
|
|
64
64
|
emits: ["toggleTreeCollapse"],
|
|
65
65
|
setup(e, { emit: O }) {
|
|
66
|
-
const d = e, { selected: h, id:
|
|
67
|
-
d.stopOptionClickEventPropagation && t.stopPropagation(), d.disabled ? D() :
|
|
66
|
+
const d = e, { selected: h, id: $, onClick: w, api: x } = q(d), B = (t) => {
|
|
67
|
+
d.stopOptionClickEventPropagation && t.stopPropagation(), d.disabled ? D() : w(t);
|
|
68
68
|
}, p = C(null), b = C(!1);
|
|
69
69
|
S([() => d.treeChildShown, p], async () => {
|
|
70
70
|
await J(100), b.value = p.value && H(p.value);
|
|
71
71
|
});
|
|
72
|
-
const M = (t) => t && typeof t == "object" && "optionTooltipText" in t ? (Array.isArray(t.optionTooltipText), t.optionTooltipText) : b.value ? t[d.nameKey] : "",
|
|
72
|
+
const M = (t) => t && typeof t == "object" && "optionTooltipText" in t ? (Array.isArray(t.optionTooltipText), t.optionTooltipText) : b.value ? t[d.nameKey] : "", K = V(() => M(d.option)), z = (t) => t && typeof t == "object" && "optionTooltipTestId" in t ? t.optionTooltipTestId : null, E = () => {
|
|
73
73
|
O("toggleTreeCollapse", d.option);
|
|
74
74
|
};
|
|
75
|
-
return (t,
|
|
76
|
-
text: n(
|
|
75
|
+
return (t, v) => (o(), y(n(G), {
|
|
76
|
+
text: n(K),
|
|
77
77
|
"test-id": z(e.option),
|
|
78
78
|
placement: e.toolTipPlacement,
|
|
79
79
|
class: "tooltip-option"
|
|
@@ -81,7 +81,7 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
81
81
|
default: s(() => [
|
|
82
82
|
c("div", {
|
|
83
83
|
ref: "el",
|
|
84
|
-
class:
|
|
84
|
+
class: k(["item-container", {
|
|
85
85
|
"item-container--disabled": e.disabled,
|
|
86
86
|
"item-container--active": e.nameKey ? !1 : e.active,
|
|
87
87
|
"item-container--selected": n(h),
|
|
@@ -89,22 +89,22 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
89
89
|
}])
|
|
90
90
|
}, [
|
|
91
91
|
c("div", {
|
|
92
|
-
class:
|
|
92
|
+
class: k(["item", {
|
|
93
93
|
"item--multi": e.isMulti,
|
|
94
94
|
"item--with-icon": t.$slots["icon-start"] || t.$slots.image
|
|
95
95
|
}])
|
|
96
96
|
}, [
|
|
97
|
-
e.isMulti || e.selectAllOption ? (o(),
|
|
97
|
+
e.isMulti || e.selectAllOption ? (o(), y(n(j), {
|
|
98
98
|
key: 0,
|
|
99
|
-
id: n(
|
|
99
|
+
id: n($).toString(),
|
|
100
100
|
tabindex: "-1",
|
|
101
101
|
class: "checkbox",
|
|
102
102
|
"is-checked": n(h),
|
|
103
103
|
"is-indeterminate": e.isIndeterminate,
|
|
104
|
-
onClick:
|
|
104
|
+
onClick: v[0] || (v[0] = (m) => B(m))
|
|
105
105
|
}, null, 8, ["id", "is-checked", "is-indeterminate"])) : i("", !0),
|
|
106
106
|
!e.option?.conditionalOptions && (t.$slots.image || e.imageKey) ? (o(), l("div", U, [
|
|
107
|
-
|
|
107
|
+
u(t.$slots, "image", {}, () => [
|
|
108
108
|
e.imageKey ? (o(), l("img", {
|
|
109
109
|
key: 0,
|
|
110
110
|
src: e.option[e.imageKey]
|
|
@@ -112,15 +112,15 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
112
112
|
], !0)
|
|
113
113
|
])) : i("", !0),
|
|
114
114
|
!e.option?.conditionalOptions && (t.$slots.flag || e.optionFlagKey) ? (o(), l("div", X, [
|
|
115
|
-
|
|
116
|
-
e.optionFlagKey ? (o(),
|
|
115
|
+
u(t.$slots, "flag", {}, () => [
|
|
116
|
+
e.optionFlagKey ? (o(), y(n(R), {
|
|
117
117
|
key: 0,
|
|
118
118
|
"country-code": e.option[e.optionFlagKey]
|
|
119
119
|
}, null, 8, ["country-code"])) : i("", !0)
|
|
120
120
|
], !0)
|
|
121
121
|
])) : i("", !0),
|
|
122
122
|
!e.option?.conditionalOptions && (t.$slots["icon-start"] || e.iconKey) ? (o(), l("div", Y, [
|
|
123
|
-
|
|
123
|
+
u(t.$slots, "icon-start", {}, () => [
|
|
124
124
|
a(n(T), {
|
|
125
125
|
type: e.iconType,
|
|
126
126
|
name: e.option[e.iconKey],
|
|
@@ -138,9 +138,9 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
138
138
|
variant: "body2"
|
|
139
139
|
}, {
|
|
140
140
|
default: s(() => [
|
|
141
|
-
|
|
141
|
+
u(t.$slots, "default", {}, () => [
|
|
142
142
|
c("div", {
|
|
143
|
-
class:
|
|
143
|
+
class: k(`option-content-${e.optionTwoLinesVariant} option-content`)
|
|
144
144
|
}, [
|
|
145
145
|
e.option?.conditionalOptions ? (o(), l("div", _, [
|
|
146
146
|
a(n(g), {
|
|
@@ -148,7 +148,7 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
148
148
|
class: "conditional-option-label"
|
|
149
149
|
}, {
|
|
150
150
|
default: s(() => [
|
|
151
|
-
f(
|
|
151
|
+
f(r(e.option.conditionalName) + ": ", 1)
|
|
152
152
|
]),
|
|
153
153
|
_: 1
|
|
154
154
|
}),
|
|
@@ -157,11 +157,11 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
157
157
|
class: "conditional-option-value"
|
|
158
158
|
}, {
|
|
159
159
|
default: s(() => [
|
|
160
|
-
f('"' +
|
|
160
|
+
f('"' + r(e.option[e.nameKey]) + '"', 1)
|
|
161
161
|
]),
|
|
162
162
|
_: 1
|
|
163
163
|
})
|
|
164
|
-
])) : (o(), l("div", Z,
|
|
164
|
+
])) : (o(), l("div", Z, r(e.option[e.nameKey]), 1)),
|
|
165
165
|
e.endTextIconKey && e.option[e.endTextIconKey] ? (o(), l("span", ee, [
|
|
166
166
|
a(n(T), {
|
|
167
167
|
type: "regular",
|
|
@@ -172,7 +172,7 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
172
172
|
e.optionTwoLinesKey ? (o(), l("div", te, [
|
|
173
173
|
a(n(g), { variant: "caption" }, {
|
|
174
174
|
default: s(() => [
|
|
175
|
-
f(
|
|
175
|
+
f(r(e.option[e.optionTwoLinesKey]), 1)
|
|
176
176
|
]),
|
|
177
177
|
_: 1
|
|
178
178
|
})
|
|
@@ -182,19 +182,19 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
182
182
|
]),
|
|
183
183
|
_: 3
|
|
184
184
|
}),
|
|
185
|
-
e.subtitle ? (o(),
|
|
185
|
+
e.subtitle ? (o(), y(n(N), {
|
|
186
186
|
key: 0,
|
|
187
187
|
class: "subtitle",
|
|
188
188
|
size: "xs"
|
|
189
189
|
}, {
|
|
190
190
|
default: s(() => [
|
|
191
|
-
f(
|
|
191
|
+
f(r(e.subtitle), 1)
|
|
192
192
|
]),
|
|
193
193
|
_: 1
|
|
194
194
|
})) : i("", !0)
|
|
195
195
|
], 512),
|
|
196
196
|
t.$slots["icon-end"] || e.endIconKey && e.option[e.endIconKey] ? (o(), l("div", ne, [
|
|
197
|
-
|
|
197
|
+
u(t.$slots, "icon-end", {}, () => [
|
|
198
198
|
a(n(T), {
|
|
199
199
|
type: e.endIconType || "regular",
|
|
200
200
|
name: e.option[e.endIconKey],
|
|
@@ -202,22 +202,25 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
202
202
|
}, null, 8, ["type", "name", "size"])
|
|
203
203
|
], !0)
|
|
204
204
|
])) : i("", !0),
|
|
205
|
+
t.$slots["option-end"] ? (o(), l("div", oe, [
|
|
206
|
+
u(t.$slots, "option-end", { option: e.option }, void 0, !0)
|
|
207
|
+
])) : i("", !0),
|
|
205
208
|
e.treeMainOption ? (o(), l("div", {
|
|
206
|
-
key:
|
|
209
|
+
key: 6,
|
|
207
210
|
class: "tree-main-arrow-wrapper",
|
|
208
211
|
onClick: I(E, ["stop"])
|
|
209
212
|
}, [
|
|
210
213
|
a(n(T), {
|
|
211
214
|
name: "caret-down",
|
|
212
215
|
size: "16px",
|
|
213
|
-
class:
|
|
216
|
+
class: k(`app-trigger--icon ${e.treeMainOptionExpanded && "expanded"}`)
|
|
214
217
|
}, null, 8, ["class"])
|
|
215
|
-
], 8,
|
|
218
|
+
], 8, ie)) : i("", !0)
|
|
216
219
|
], 2),
|
|
217
|
-
n(
|
|
220
|
+
n(x).clearable && n(h) ? (o(), l("div", le, [
|
|
218
221
|
c("button", {
|
|
219
222
|
class: "clear-button",
|
|
220
|
-
onClick:
|
|
223
|
+
onClick: v[1] || (v[1] = I((m) => n(x).clearSelection(), ["prevent", "stop"]))
|
|
221
224
|
}, [
|
|
222
225
|
a(n(T), {
|
|
223
226
|
name: "close",
|
|
@@ -230,16 +233,16 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
230
233
|
]),
|
|
231
234
|
_: 2
|
|
232
235
|
}, [
|
|
233
|
-
Array.isArray(n(
|
|
236
|
+
Array.isArray(n(K)) ? {
|
|
234
237
|
name: "tooltip",
|
|
235
238
|
fn: s(() => [
|
|
236
239
|
c("div", Q, [
|
|
237
|
-
(o(!0), l(F, null, L(n(
|
|
238
|
-
key:
|
|
240
|
+
(o(!0), l(F, null, L(n(K), (m) => (o(), y(n(g), {
|
|
241
|
+
key: m,
|
|
239
242
|
variant: "body2"
|
|
240
243
|
}, {
|
|
241
244
|
default: s(() => [
|
|
242
|
-
f(
|
|
245
|
+
f(r(m), 1)
|
|
243
246
|
]),
|
|
244
247
|
_: 2
|
|
245
248
|
}, 1024))), 128))
|
|
@@ -251,5 +254,5 @@ const Q = { class: "multiline-tooltip" }, U = {
|
|
|
251
254
|
}
|
|
252
255
|
});
|
|
253
256
|
export {
|
|
254
|
-
|
|
257
|
+
ve as default
|
|
255
258
|
};
|
|
@@ -1570,6 +1570,9 @@ declare const DropdownTypes: () => (({
|
|
|
1570
1570
|
"icon-start"?(_: {}): any;
|
|
1571
1571
|
default?(_: {}): any;
|
|
1572
1572
|
"icon-end"?(_: {}): any;
|
|
1573
|
+
"option-end"?(_: {
|
|
1574
|
+
option: any;
|
|
1575
|
+
}): any;
|
|
1573
1576
|
};
|
|
1574
1577
|
})) | import("vue").DefineComponent<{
|
|
1575
1578
|
testId: {
|
|
@@ -3069,6 +3072,9 @@ declare const DropdownTypes: () => (({
|
|
|
3069
3072
|
active: boolean;
|
|
3070
3073
|
disabled: any;
|
|
3071
3074
|
}): any;
|
|
3075
|
+
"option-end"?(_: {
|
|
3076
|
+
option: any;
|
|
3077
|
+
}): any;
|
|
3072
3078
|
};
|
|
3073
3079
|
})) | import("vue").DefineComponent<{
|
|
3074
3080
|
label: {
|
package/index.d.ts
CHANGED
|
@@ -17621,6 +17621,9 @@ declare const _default: {
|
|
|
17621
17621
|
active: boolean;
|
|
17622
17622
|
disabled: any;
|
|
17623
17623
|
}): any;
|
|
17624
|
+
"option-end"?(_: {
|
|
17625
|
+
option: any;
|
|
17626
|
+
}): any;
|
|
17624
17627
|
};
|
|
17625
17628
|
});
|
|
17626
17629
|
DefaultDropdownTrigger: {
|
|
@@ -20779,6 +20782,9 @@ declare const _default: {
|
|
|
20779
20782
|
"icon-start"?(_: {}): any;
|
|
20780
20783
|
default?(_: {}): any;
|
|
20781
20784
|
"icon-end"?(_: {}): any;
|
|
20785
|
+
"option-end"?(_: {
|
|
20786
|
+
option: any;
|
|
20787
|
+
}): any;
|
|
20782
20788
|
};
|
|
20783
20789
|
})) | import("vue").DefineComponent<{
|
|
20784
20790
|
testId: {
|
|
@@ -22278,6 +22284,9 @@ declare const _default: {
|
|
|
22278
22284
|
active: boolean;
|
|
22279
22285
|
disabled: any;
|
|
22280
22286
|
}): any;
|
|
22287
|
+
"option-end"?(_: {
|
|
22288
|
+
option: any;
|
|
22289
|
+
}): any;
|
|
22281
22290
|
};
|
|
22282
22291
|
})) | import("vue").DefineComponent<{
|
|
22283
22292
|
label: {
|
|
@@ -23532,6 +23541,9 @@ declare const _default: {
|
|
|
23532
23541
|
"icon-start"?(_: {}): any;
|
|
23533
23542
|
default?(_: {}): any;
|
|
23534
23543
|
"icon-end"?(_: {}): any;
|
|
23544
|
+
"option-end"?(_: {
|
|
23545
|
+
option: any;
|
|
23546
|
+
}): any;
|
|
23535
23547
|
};
|
|
23536
23548
|
});
|
|
23537
23549
|
TreeDropdown: {
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_bd6145ce_lang.css';
|
|
2
2
|
import { AppTriggerTypes as eo } from "./components/appTrigger/index.js";
|
|
3
3
|
import { AutocompleteDropdownTypes as to } from "./components/autocompleteDropdown/index.js";
|
|
4
4
|
import { MenuItemTypes as ao } from "./components/menuItem/index.js";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.v-enter-active[data-v-d154c5da],.v-leave-active[data-v-d154c5da]{transition:opacity .25s ease}ol[data-v-d154c5da],ul[data-v-d154c5da],menu[data-v-d154c5da]{list-style:none;margin:0;padding:0}.dropdown.full-width[data-v-d154c5da],.dropdown.full-width .button__container[data-v-d154c5da]{width:100%}.dropdown-list-wrapper[data-v-d154c5da]{display:flex;flex-direction:column;padding:.5rem .5rem .25rem}.dropdown-list-wrapper--multi[data-v-d154c5da]{padding:.5rem}.list-container--multi[data-v-d154c5da]{margin-bottom:0}.inline-search .inline-search-wrapper[data-v-d154c5da]{display:flex;gap:4px;padding-bottom:.25rem}.inline-search .inline-search-wrapper .search-container[data-v-d154c5da]{width:100%}.inline-search .list-container[data-v-d154c5da]{padding-top:0}.no-result-container[data-v-d154c5da]{height:100%;display:flex;align-items:center;padding:.375rem .5rem;color:var(--text-disabled)}.no-result[data-v-d154c5da]{color:var(--text-disabled);padding-left:.5rem}.list[data-v-d154c5da]{outline:none;display:flex;flex-direction:column;width:100%;min-height:2rem}.list--multi[data-v-d154c5da]{margin-bottom:.5rem;border-bottom-left-radius:0;border-bottom-right-radius:0}.list--with-conditions[data-v-d154c5da]{min-height:0;margin-bottom:0}.image-slot[data-v-d154c5da]{margin-right:.5rem}.actions-wrapper[data-v-d154c5da]{display:flex;width:100%;padding:.5rem .5rem .5rem .125rem;padding-bottom:0;border-top:1px solid var(--common-divider);justify-content:space-between;margin-top:.25rem}.apply-button[data-v-d154c5da]{margin-left:.5rem}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.label[data-v-1e8837dc]{color:#41454d}.item-container[data-v-1e8837dc]{width:100%;display:flex;align-items:center;cursor:pointer;border-radius:var(--border-radius-lg);margin-bottom:.25rem;color:var(--text-primary);padding:6px 8px}.item-container--disabled[data-v-1e8837dc]{cursor:initial;color:var(--text-disabled)}.item-container[data-v-1e8837dc]:hover:not(.item-container--disabled){background-color:var(--action-hover)}.item-container--active[data-v-1e8837dc],.item-container[data-v-1e8837dc]:active{background-color:var(--action-selected)}.item-container:not(.item-container--multi).item-container--selected[data-v-1e8837dc]{background-color:var(--action-selected)}.subtitle[data-v-1e8837dc]{color:#7b838c;line-height:1rem}.clear-button[data-v-1e8837dc]{display:flex;padding:0 4px;color:#7b838c;align-items:center;height:auto;background-image:none;min-width:auto;border:none;background-color:transparent}.clear-button[data-v-1e8837dc]:hover{color:#3083ff}.item[data-v-1e8837dc]{width:100%;display:flex;gap:.5rem;align-items:center}.item--with-icon[data-v-1e8837dc],.item--multi[data-v-1e8837dc]{display:flex;flex-direction:row;align-items:center;justify-content:start}.item .image[data-v-1e8837dc]{width:20px;height:20px;flex:none}.item .image img[data-v-1e8837dc]{width:20px;height:20px;border-radius:4px}.item .flag[data-v-1e8837dc]{width:16px;height:16px}.item .flag img[data-v-1e8837dc]{width:16px;height:16px;border-radius:50%}.item .start-icon[data-v-1e8837dc],.item .end-icon[data-v-1e8837dc]{display:flex;color:var(--action-active)}.item .end-text-icon[data-v-1e8837dc]{display:inline-flex}.item .option-text[data-v-1e8837dc]{line-height:1.1875rem}.text-container[data-v-1e8837dc]{width:100%;text-overflow:ellipsis;overflow:hidden}.v4-tooltip.tooltip-option[data-v-1e8837dc]{display:block}.tooltip-option[data-v-1e8837dc] .container{width:100%}.app-trigger--icon[data-v-1e8837dc]{color:var(--action-active);transform:rotate(-90deg);transition:transform .2s}.app-trigger--icon.expanded[data-v-1e8837dc]{transform:rotate(0)}.option-content[data-v-1e8837dc]{display:flex}.option-content[data-v-1e8837dc]:not(.option-content-vertical){gap:.5rem;align-items:center}.option-content-horizontal[data-v-1e8837dc]{justify-content:space-between;gap:.5rem}.option-content-vertical[data-v-1e8837dc]{flex-direction:column}.option-text .main-text[data-v-1e8837dc]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left}.option-text .main-text .conditional-option-label[data-v-1e8837dc]{color:var(--text-secondary);display:inline-flex}.option-text .main-text .conditional-option-value[data-v-1e8837dc]{margin-left:4px;display:inline-flex;color:var(--primary-main)}.option-text .caption-text[data-v-1e8837dc]{color:var(--text-secondary)}.multiline-tooltip[data-v-1e8837dc]{display:flex;flex-direction:column}
|