@ironsource/shared-ui 2.0.0 → 2.0.1-test.2
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/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_c48dc06e_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_cca772e9_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e5202bb9_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_4e432056_lang.css +1 -0
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_92d83650_lang.css +1 -0
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_11c1bb3f_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c6156fa0_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_7422cf08_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_19f8fedd_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_fb054d88_lang.css +1 -0
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_5764fd61_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_2a214b95_lang.css +1 -0
- package/{Skeleton.vue_vue_type_style_index_0_scoped_9837f0ce_lang.css → Skeleton.vue_vue_type_style_index_0_scoped_5ed40068_lang.css} +1 -1
- package/SkeletonV4.vue_vue_type_style_index_0_scoped_2f3b3470_lang.css +1 -0
- package/Table.vue_vue_type_style_index_0_scoped_76fef9bd_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_473bab9b_lang.css +1 -0
- package/components/button/v4/ButtonV4.vue.js +4 -4
- package/components/button/v4/ButtonV4.vue2.js +1 -1
- package/components/dialog/v4/DialogV4.vue.d.ts +34 -0
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +87 -56
- package/components/dialog/v4/index.d.ts +128 -2
- package/components/dropdown/common/Dropdown.common.js +29 -29
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +136 -0
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +7 -0
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +147 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +8 -8
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +39 -11
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +77 -47
- package/components/dropdown/v4/Dropdown.types.d.ts +1 -1
- package/components/dropdown/v4/Dropdown.types.js +2 -1
- package/components/dropdown/v4/DropdownV4.vue.d.ts +42 -7
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +193 -163
- package/components/dropdown/v4/OptionV4.vue.d.ts +20 -0
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +54 -37
- package/components/dropdown/v4/index.d.ts +824 -70
- package/components/dropdown/v4/index.js +11 -8
- package/components/includeExclude/IncludeExclude.vue.js +3 -3
- package/components/includeExclude/IncludeExclude.vue2.js +2 -2
- package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeDragDrop.vue.js +3 -3
- package/components/includeExclude/IncludeExcludeDragDrop.vue2.js +2 -2
- package/components/includeExclude/index.d.ts +20 -20
- package/components/input/v4/TextField.vue.d.ts +1 -1
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +9 -10
- package/components/input/v4/index.d.ts +20 -20
- package/components/layout/FormCard.vue.d.ts +1 -1
- package/components/layout/index.d.ts +12 -12
- package/components/multibar/MultiBarMenu.vue2.js +7 -6
- package/components/skeleton/v3/Skeleton.vue.js +7 -0
- package/components/skeleton/{Skeleton.vue2.js → v3/Skeleton.vue2.js} +1 -1
- package/components/skeleton/v4/SkeletonV4.vue.d.ts +41 -0
- package/components/skeleton/v4/SkeletonV4.vue.js +7 -0
- package/components/skeleton/v4/SkeletonV4.vue2.js +23 -0
- package/components/skeleton/v4/index.d.ts +94 -0
- package/components/skeleton/v4/index.js +6 -0
- package/components/table/v3/Table.vue.js +5 -5
- package/components/table/v3/Table.vue2.js +3 -3
- package/components/table/v4/DataGrid.vue.d.ts +7 -2
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +175 -169
- package/components/table/v4/DataGridMenu.vue.d.ts +5 -0
- package/components/table/v4/DataGridMenu.vue.js +3 -3
- package/components/table/v4/DataGridMenu.vue2.js +49 -38
- package/components/table/v4/DataGridRowsCounter.vue.d.ts +34 -0
- package/components/table/v4/DataGridRowsCounter.vue.js +7 -0
- package/components/table/v4/DataGridRowsCounter.vue2.js +36 -0
- package/components/table/v4/index.d.ts +56 -6
- package/components/table/v4/index.js +6 -4
- package/components/table/v4/storyUtils.d.ts +1 -0
- package/components/toggle/v4/ToggleV4.vue.d.ts +1 -1
- package/components/toggle/v4/index.d.ts +20 -20
- package/index.d.ts +2401 -360
- package/index.js +119 -119
- package/mocks/apps.d.ts +7 -0
- package/package.json +6 -2
- package/testids/index.d.ts +3 -1
- package/testids/index.js +10 -10
- package/utils/array.js +1 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_31e553e8_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_14dcdae5_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_7a670808_lang.css +0 -1
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_99f1dcca_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c218ef1f_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_c0c12287_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_571b7c2f_lang.css +0 -1
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_2a01a791_lang.css +0 -1
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_85bff8f4_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_92add735_lang.css +0 -1
- package/Table.vue_vue_type_style_index_0_scoped_6b769df2_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_d4dc4582_lang.css +0 -1
- package/components/skeleton/Skeleton.vue.js +0 -7
- /package/components/skeleton/{Skeleton.vue.d.ts → v3/Skeleton.vue.d.ts} +0 -0
- /package/components/skeleton/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/skeleton/{index.js → v3/index.js} +0 -0
|
@@ -1,38 +1,40 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
2
|
-
import
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_19f8fedd_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as ae, computed as P, openBlock as i, createElementBlock as n, mergeProps as s, unref as e, renderSlot as C, createElementVNode as p, createVNode as a, withCtx as u, Transition as de, normalizeClass as z, normalizeStyle as re, isRef as se, createCommentVNode as d, createTextVNode as g, toDisplayString as ue, withModifiers as V, Fragment as ce, renderList as fe, toRaw as T, createBlock as me, resolveDynamicComponent as pe } from "vue";
|
|
2
|
+
import A from "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
4
|
import "./DropdownV4.vue.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
|
|
5
|
+
import ye from "./DefaultDropdownTrigger.vue.js";
|
|
6
|
+
import ge from "./IconButtonDropdownTrigger.vue.js";
|
|
7
|
+
import he from "./ChipDropdownTrigger.vue.js";
|
|
8
|
+
import ke from "./AppDropdownTrigger.vue.js";
|
|
9
|
+
import x from "./OptionV4.vue.js";
|
|
10
|
+
import Te from "../../search/v4/SearchV4.vue.js";
|
|
11
|
+
import F from "../../typography/v4/Typography.vue.js";
|
|
12
|
+
import { Dropdown as ve } from "floating-vue";
|
|
13
|
+
import { DropdownTestIdModifiers as c } from "../../../testids/index.js";
|
|
14
|
+
import { dropdownCommon as be } from "../common/Dropdown.common.js";
|
|
15
|
+
import Ce from "../../loader/v4/Loader.vue.js";
|
|
16
|
+
import { useTestIdAttrs as we } from "../../../utils/testIds.js";
|
|
17
|
+
import { TRIGGERS as y } from "./Dropdown.types.js";
|
|
18
|
+
import { useElementSize as Ie } from "@vueuse/core";
|
|
19
|
+
const Se = ["tabindex"], Ae = { style: { display: "flex", width: "100%" } }, Le = { key: 0 }, Be = { key: 1 }, Ne = { key: 2 }, Oe = {
|
|
18
20
|
key: 0,
|
|
19
21
|
class: "inline-search-wrapper"
|
|
20
|
-
},
|
|
22
|
+
}, Ee = {
|
|
21
23
|
key: 0,
|
|
22
24
|
class: "no-result-container"
|
|
23
|
-
},
|
|
25
|
+
}, Ke = {
|
|
24
26
|
key: 1,
|
|
25
27
|
class: "loader"
|
|
26
|
-
},
|
|
28
|
+
}, Re = { key: 2 }, De = ["aria-selected", "aria-disabled", "onClick"], Pe = {
|
|
27
29
|
key: 1,
|
|
28
30
|
class: "actions-wrapper"
|
|
29
|
-
},
|
|
31
|
+
}, ze = { class: "actions-clear-all" }, Ve = { class: "actions-apply-cancel" }, ot = /* @__PURE__ */ ae({
|
|
30
32
|
__name: "DropdownV4",
|
|
31
33
|
props: {
|
|
32
34
|
modelValue: { default: null },
|
|
33
35
|
selected: { default: null },
|
|
34
36
|
multi: { type: Boolean, default: !1 },
|
|
35
|
-
placeholder: { default: "" },
|
|
37
|
+
placeholder: { default: "Select" },
|
|
36
38
|
disabled: { type: Boolean, default: !1 },
|
|
37
39
|
popperClass: { default: "" },
|
|
38
40
|
loading: { type: Boolean },
|
|
@@ -56,70 +58,78 @@ const ge = ["tabindex"], he = { style: { display: "flex", width: "100%" } }, be
|
|
|
56
58
|
triggerFeedbackVariant: { default: null },
|
|
57
59
|
size: { default: "lg" },
|
|
58
60
|
mandatory: { type: Boolean, default: !1 },
|
|
59
|
-
predefinedTrigger: { default:
|
|
61
|
+
predefinedTrigger: { default: y.DEFAULT },
|
|
60
62
|
inlineSearch: { type: Boolean, default: !1 },
|
|
61
63
|
inlineSearchPlaceholder: { default: "Search" },
|
|
62
|
-
onSearch: { type: Function, default:
|
|
64
|
+
onSearch: { type: Function, default: null },
|
|
63
65
|
noResultsText: { default: "No results found" },
|
|
64
66
|
searchAutoFocus: { type: Boolean, default: !0 },
|
|
65
67
|
onClear: { type: Function, default: () => !0 },
|
|
66
68
|
displayValue: null,
|
|
67
|
-
|
|
69
|
+
optionNameKey: { default: "" },
|
|
70
|
+
optionIconKey: { default: "" },
|
|
71
|
+
optionImageKey: { default: "" },
|
|
72
|
+
optionIconType: { default: null },
|
|
73
|
+
valueToCopy: { default: null },
|
|
74
|
+
theme: { default: "light-theme-v4" },
|
|
75
|
+
fullWidth: { type: Boolean, default: !0 },
|
|
76
|
+
optionsListWidth: { default: null }
|
|
68
77
|
},
|
|
69
78
|
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply"],
|
|
70
|
-
setup(t, { expose:
|
|
71
|
-
const
|
|
79
|
+
setup(t, { expose: $, emit: U }) {
|
|
80
|
+
const r = t, H = {
|
|
72
81
|
MULTILINE_LIST_HEIGHT: 48,
|
|
73
82
|
LIST_HEIGHT: 32 + 4,
|
|
74
83
|
MAX_NUMBER_OF_OPTIONS: 7,
|
|
75
84
|
PADDING_PX: -4
|
|
76
85
|
}, {
|
|
77
|
-
onKeydown:
|
|
78
|
-
open:
|
|
79
|
-
toggleMenu:
|
|
80
|
-
onButtonKeydown:
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
filteredOptions: U,
|
|
86
|
+
onKeydown: h,
|
|
87
|
+
open: f,
|
|
88
|
+
toggleMenu: w,
|
|
89
|
+
onButtonKeydown: G,
|
|
90
|
+
query: I,
|
|
91
|
+
containerProps: W,
|
|
92
|
+
calculateTableHeight: M,
|
|
93
|
+
wrapperProps: L,
|
|
94
|
+
filteredOptions: X,
|
|
87
95
|
allSelected: B,
|
|
88
|
-
isIndeterminate:
|
|
89
|
-
onSelectAll:
|
|
90
|
-
virtualOptions:
|
|
91
|
-
isSelected:
|
|
92
|
-
selectedOption:
|
|
93
|
-
onSelect:
|
|
94
|
-
activeIndex:
|
|
95
|
-
onCancel:
|
|
96
|
-
onApply:
|
|
97
|
-
scrollTo:
|
|
98
|
-
listRef:
|
|
99
|
-
buttonRef:
|
|
100
|
-
apply:
|
|
101
|
-
cancel:
|
|
102
|
-
el:
|
|
103
|
-
onClearAllSelections:
|
|
104
|
-
clearAll:
|
|
105
|
-
} =
|
|
106
|
-
|
|
107
|
-
selectItem:
|
|
108
|
-
scrollTo:
|
|
96
|
+
isIndeterminate: q,
|
|
97
|
+
onSelectAll: Y,
|
|
98
|
+
virtualOptions: N,
|
|
99
|
+
isSelected: S,
|
|
100
|
+
selectedOption: k,
|
|
101
|
+
onSelect: O,
|
|
102
|
+
activeIndex: E,
|
|
103
|
+
onCancel: j,
|
|
104
|
+
onApply: J,
|
|
105
|
+
scrollTo: Q,
|
|
106
|
+
listRef: Z,
|
|
107
|
+
buttonRef: K,
|
|
108
|
+
apply: _,
|
|
109
|
+
cancel: ee,
|
|
110
|
+
el: te,
|
|
111
|
+
onClearAllSelections: R,
|
|
112
|
+
clearAll: le
|
|
113
|
+
} = be(r, U, H);
|
|
114
|
+
$({
|
|
115
|
+
selectItem: O,
|
|
116
|
+
scrollTo: Q
|
|
109
117
|
});
|
|
110
|
-
const
|
|
111
|
-
|
|
118
|
+
const m = we(r.testId, c), D = P(() => !r.predefinedTrigger || r.predefinedTrigger === y.DEFAULT ? ye : r.predefinedTrigger === y.APP ? ke : null), { width: oe } = Ie(K), ie = P(() => r.optionsListWidth ? r.optionsListWidth : !r.predefinedTrigger || r.predefinedTrigger === y.DEFAULT || r.predefinedTrigger === y.APP ? `${oe.value - 2}px` : "auto"), ne = () => {
|
|
119
|
+
w();
|
|
120
|
+
};
|
|
121
|
+
return (v, o) => (i(), n("div", s({
|
|
112
122
|
ref_key: "el",
|
|
113
|
-
ref:
|
|
114
|
-
class: ["dropdown", { "dropdown--disabled": t.disabled }],
|
|
123
|
+
ref: te,
|
|
124
|
+
class: ["dropdown dropdown--main-wrapper", { "dropdown--disabled": t.disabled, "full-width": t.fullWidth }],
|
|
115
125
|
tabindex: t.disabled ? -1 : 0
|
|
116
|
-
}, e(
|
|
117
|
-
onKeydown:
|
|
118
|
-
(...
|
|
126
|
+
}, e(m)[e(c).WRAPPER], {
|
|
127
|
+
onKeydown: o[6] || (o[6] = //@ts-ignore
|
|
128
|
+
(...l) => e(h) && e(h)(...l))
|
|
119
129
|
}), [
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
130
|
+
C(v.$slots, "label", {}, void 0, !0),
|
|
131
|
+
p("div", Ae, [
|
|
132
|
+
a(e(ve), s({
|
|
123
133
|
theme: t.theme,
|
|
124
134
|
"popper-class": [
|
|
125
135
|
t.popperClass,
|
|
@@ -132,34 +142,35 @@ const ge = ["tabindex"], he = { style: { display: "flex", width: "100%" } }, be
|
|
|
132
142
|
distance: t.distance,
|
|
133
143
|
flip: t.flip,
|
|
134
144
|
triggers: [],
|
|
135
|
-
shown: !!e(
|
|
145
|
+
shown: !!e(f),
|
|
136
146
|
"auto-hide": !1,
|
|
137
147
|
container: t.container,
|
|
138
148
|
"auto-size": t.autoSize
|
|
139
|
-
}, e(
|
|
140
|
-
popper:
|
|
141
|
-
|
|
142
|
-
default:
|
|
143
|
-
e(
|
|
149
|
+
}, e(m)[e(c).TRIGGER]), {
|
|
150
|
+
popper: u(() => [
|
|
151
|
+
a(de, null, {
|
|
152
|
+
default: u(() => [
|
|
153
|
+
e(f) ? (i(), n("div", {
|
|
144
154
|
key: 0,
|
|
145
155
|
ref_key: "listRef",
|
|
146
|
-
ref:
|
|
147
|
-
class:
|
|
156
|
+
ref: Z,
|
|
157
|
+
class: z(["light-theme-v4", {
|
|
148
158
|
"dropdown--disabled": t.disabled,
|
|
149
159
|
"inline-search": t.inlineSearch
|
|
150
|
-
}])
|
|
160
|
+
}]),
|
|
161
|
+
style: re({ width: e(ie) })
|
|
151
162
|
}, [
|
|
152
|
-
e(
|
|
163
|
+
e(f) ? (i(), n("div", {
|
|
153
164
|
key: 0,
|
|
154
|
-
class: "dropdown",
|
|
155
|
-
onKeydown:
|
|
156
|
-
(...
|
|
165
|
+
class: "dropdown-list-wrapper",
|
|
166
|
+
onKeydown: o[5] || (o[5] = //@ts-ignore
|
|
167
|
+
(...l) => e(h) && e(h)(...l))
|
|
157
168
|
}, [
|
|
158
|
-
e(
|
|
159
|
-
|
|
160
|
-
modelValue: e(
|
|
169
|
+
e(f) && t.inlineSearch ? (i(), n("div", Oe, [
|
|
170
|
+
a(e(Te), {
|
|
171
|
+
modelValue: e(I),
|
|
161
172
|
"onUpdate:modelValue": [
|
|
162
|
-
|
|
173
|
+
o[3] || (o[3] = (l) => se(I) ? I.value = l : null),
|
|
163
174
|
t.onClear
|
|
164
175
|
],
|
|
165
176
|
placeholder: t.inlineSearchPlaceholder,
|
|
@@ -167,174 +178,193 @@ const ge = ["tabindex"], he = { style: { display: "flex", width: "100%" } }, be
|
|
|
167
178
|
size: "md",
|
|
168
179
|
"auto-focus": t.searchAutoFocus,
|
|
169
180
|
"test-id": t.testId,
|
|
170
|
-
onKeydown: e(
|
|
181
|
+
onKeydown: e(h)
|
|
171
182
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
|
|
172
183
|
])) : d("", !0),
|
|
173
|
-
|
|
174
|
-
|
|
184
|
+
C(v.$slots, "input-list", { open: e(f) }, void 0, !0),
|
|
185
|
+
p("div", s({
|
|
175
186
|
class: ["list-container", { "list-container--multi": t.multi }],
|
|
176
|
-
style: { height: `${e(
|
|
187
|
+
style: { height: `${e(M)}rem` }
|
|
177
188
|
}, {
|
|
178
|
-
...e(
|
|
179
|
-
...e(
|
|
189
|
+
...e(W),
|
|
190
|
+
...e(m)[e(c).LIST_CONTAINER]
|
|
180
191
|
}), [
|
|
181
|
-
|
|
192
|
+
p("ul", s(e(L), {
|
|
182
193
|
style: {
|
|
183
|
-
height: Number(e(
|
|
194
|
+
height: Number(e(L).style.height) - 4
|
|
184
195
|
},
|
|
185
196
|
role: "listbox",
|
|
186
197
|
class: ["list", { "list--multi": t.multi }]
|
|
187
198
|
}), [
|
|
188
|
-
!e(
|
|
189
|
-
|
|
190
|
-
default:
|
|
191
|
-
|
|
199
|
+
!e(X).length && !t.loading ? (i(), n("li", Ee, [
|
|
200
|
+
a(e(F), s({ variant: "body2" }, e(m)[e(c).NO_RESULT]), {
|
|
201
|
+
default: u(() => [
|
|
202
|
+
g(ue(t.noResultsText), 1)
|
|
192
203
|
]),
|
|
193
204
|
_: 1
|
|
194
205
|
}, 16)
|
|
195
206
|
])) : d("", !0),
|
|
196
|
-
t.loading ? (
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
default:
|
|
200
|
-
|
|
207
|
+
t.loading ? (i(), n("li", Ke, [
|
|
208
|
+
a(e(Ce)),
|
|
209
|
+
a(e(F), null, {
|
|
210
|
+
default: u(() => [
|
|
211
|
+
g("Loading...")
|
|
201
212
|
]),
|
|
202
213
|
_: 1
|
|
203
214
|
})
|
|
204
215
|
])) : d("", !0),
|
|
205
|
-
t.showSelectAll ? (
|
|
206
|
-
|
|
216
|
+
t.showSelectAll ? (i(), n("li", Re, [
|
|
217
|
+
a(e(x), s(
|
|
207
218
|
{
|
|
208
219
|
"aria-selected": e(B),
|
|
209
220
|
"aria-disabled": !!t.disabled,
|
|
210
221
|
"selected-prop": e(B),
|
|
211
|
-
"is-indeterminate": e(
|
|
222
|
+
"is-indeterminate": e(q),
|
|
212
223
|
"select-all-option": ""
|
|
213
224
|
},
|
|
214
|
-
e(
|
|
225
|
+
e(m)[e(c).SELECT_ALL],
|
|
215
226
|
{
|
|
216
|
-
onClick:
|
|
227
|
+
onClick: o[4] || (o[4] = V((l) => e(Y)(), ["stop"]))
|
|
217
228
|
}
|
|
218
229
|
), {
|
|
219
|
-
default:
|
|
220
|
-
|
|
230
|
+
default: u(() => [
|
|
231
|
+
g("Select all ")
|
|
221
232
|
]),
|
|
222
233
|
_: 1
|
|
223
234
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
|
|
224
235
|
])) : d("", !0),
|
|
225
|
-
e(
|
|
226
|
-
key:
|
|
227
|
-
"aria-selected": e(
|
|
236
|
+
e(N).length && !t.loading ? (i(!0), n(ce, { key: 3 }, fe(e(N), ({ data: l, index: b }) => (i(), n("li", {
|
|
237
|
+
key: b,
|
|
238
|
+
"aria-selected": e(S)(T(e(k)), l),
|
|
228
239
|
"aria-disabled": !!t.disabled,
|
|
229
|
-
onClick: V(() => e(
|
|
240
|
+
onClick: V(() => e(O)(l, b), ["stop"])
|
|
230
241
|
}, [
|
|
231
|
-
|
|
232
|
-
option:
|
|
233
|
-
selected: e(
|
|
234
|
-
active:
|
|
235
|
-
},
|
|
236
|
-
|
|
242
|
+
C(v.$slots, "default", {
|
|
243
|
+
option: l,
|
|
244
|
+
selected: e(S)(T(e(k)), l),
|
|
245
|
+
active: T(e(E)) === b
|
|
246
|
+
}, () => [
|
|
247
|
+
a(e(x), {
|
|
248
|
+
option: l,
|
|
249
|
+
selected: e(S)(T(e(k)), l),
|
|
250
|
+
active: T(e(E)) === b,
|
|
251
|
+
"name-key": t.optionNameKey,
|
|
252
|
+
"image-key": t.optionImageKey,
|
|
253
|
+
"icon-key": t.optionIconKey,
|
|
254
|
+
"icon-type": t.optionIconType
|
|
255
|
+
}, null, 8, ["option", "selected", "active", "name-key", "image-key", "icon-key", "icon-type"])
|
|
256
|
+
], !0)
|
|
257
|
+
], 8, De))), 128)) : d("", !0)
|
|
237
258
|
], 16)
|
|
238
259
|
], 16),
|
|
239
|
-
t.multi ? (
|
|
240
|
-
|
|
241
|
-
|
|
260
|
+
t.multi ? (i(), n("div", Pe, [
|
|
261
|
+
p("div", ze, [
|
|
262
|
+
a(e(A), s(
|
|
242
263
|
{
|
|
243
264
|
ref_key: "clearAll",
|
|
244
|
-
ref:
|
|
265
|
+
ref: le,
|
|
245
266
|
size: "small",
|
|
246
267
|
variant: "text",
|
|
247
268
|
color: "primary"
|
|
248
269
|
},
|
|
249
|
-
e(
|
|
250
|
-
{ onClick: e(
|
|
270
|
+
e(m)[e(c).ACTION_CLEAR_ALL],
|
|
271
|
+
{ onClick: e(R) }
|
|
251
272
|
), {
|
|
252
|
-
default:
|
|
253
|
-
|
|
273
|
+
default: u(() => [
|
|
274
|
+
g(" Clear all ")
|
|
254
275
|
]),
|
|
255
276
|
_: 1
|
|
256
277
|
}, 16, ["onClick"])
|
|
257
278
|
]),
|
|
258
|
-
|
|
259
|
-
|
|
279
|
+
p("div", Ve, [
|
|
280
|
+
a(e(A), s(
|
|
260
281
|
{
|
|
261
282
|
ref_key: "cancel",
|
|
262
|
-
ref:
|
|
283
|
+
ref: ee,
|
|
263
284
|
size: "small",
|
|
264
285
|
variant: "outlined",
|
|
265
286
|
color: "primary"
|
|
266
287
|
},
|
|
267
|
-
e(
|
|
268
|
-
{ onClick: e(
|
|
288
|
+
e(m)[e(c).ACTION_CANCEL],
|
|
289
|
+
{ onClick: e(j) }
|
|
269
290
|
), {
|
|
270
|
-
default:
|
|
271
|
-
|
|
291
|
+
default: u(() => [
|
|
292
|
+
g(" Cancel ")
|
|
272
293
|
]),
|
|
273
294
|
_: 1
|
|
274
295
|
}, 16, ["onClick"]),
|
|
275
|
-
|
|
296
|
+
a(e(A), s({
|
|
276
297
|
ref_key: "apply",
|
|
277
|
-
ref:
|
|
298
|
+
ref: _,
|
|
278
299
|
"data-testid": "mutli-apply",
|
|
279
300
|
size: "small",
|
|
280
301
|
class: "apply-button"
|
|
281
|
-
}, e(
|
|
282
|
-
default:
|
|
283
|
-
|
|
302
|
+
}, e(m)[e(c).ACTION_APPLY], { onClick: e(J) }), {
|
|
303
|
+
default: u(() => [
|
|
304
|
+
g("Apply ")
|
|
284
305
|
]),
|
|
285
306
|
_: 1
|
|
286
307
|
}, 16, ["onClick"])
|
|
287
308
|
])
|
|
288
309
|
])) : d("", !0)
|
|
289
310
|
], 32)) : d("", !0)
|
|
290
|
-
],
|
|
311
|
+
], 6)) : d("", !0)
|
|
291
312
|
]),
|
|
292
313
|
_: 3
|
|
293
314
|
})
|
|
294
315
|
]),
|
|
295
|
-
default:
|
|
296
|
-
|
|
297
|
-
class:
|
|
298
|
-
"button__container--open": !!e(
|
|
316
|
+
default: u(() => [
|
|
317
|
+
p("div", {
|
|
318
|
+
class: z(["button__container", {
|
|
319
|
+
"button__container--open": !!e(f),
|
|
299
320
|
[`button__container--${t.size}`]: !0,
|
|
300
321
|
"button__container--disabled": t.disabled
|
|
301
322
|
}])
|
|
302
323
|
}, [
|
|
303
|
-
|
|
304
|
-
|
|
324
|
+
C(v.$slots, "dropdown-trigger", {}, () => [
|
|
325
|
+
p("div", {
|
|
305
326
|
ref_key: "buttonRef",
|
|
306
|
-
ref:
|
|
327
|
+
ref: K
|
|
307
328
|
}, [
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
placeholder:
|
|
311
|
-
open: e(
|
|
329
|
+
e(D) ? (i(), n("div", Le, [
|
|
330
|
+
(i(), me(pe(e(D)), {
|
|
331
|
+
placeholder: t.placeholder,
|
|
332
|
+
open: e(f),
|
|
312
333
|
label: t.triggerLabel,
|
|
313
334
|
"hover-help-text": t.triggerHelperText,
|
|
314
335
|
"feedback-text": t.triggerFeedbackText,
|
|
315
336
|
"feedback-variant": t.triggerFeedbackVariant,
|
|
316
337
|
mandatory: t.mandatory,
|
|
317
338
|
"test-id": t.testId,
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
339
|
+
multi: t.multi,
|
|
340
|
+
"selected-option": e(k),
|
|
341
|
+
"display-value": t.displayValue,
|
|
342
|
+
options: t.options,
|
|
343
|
+
"option-name-key": t.optionNameKey,
|
|
344
|
+
"option-image-key": t.optionImageKey,
|
|
345
|
+
"option-icon-key": t.optionIconKey,
|
|
346
|
+
"option-icon-type": t.optionIconType,
|
|
347
|
+
"value-to-copy": t.valueToCopy,
|
|
348
|
+
onKeydown: e(G),
|
|
349
|
+
onClick: ne
|
|
350
|
+
}, null, 40, ["placeholder", "open", "label", "hover-help-text", "feedback-text", "feedback-variant", "mandatory", "test-id", "multi", "selected-option", "display-value", "options", "option-name-key", "option-image-key", "option-icon-key", "option-icon-type", "value-to-copy", "onKeydown"]))
|
|
321
351
|
])) : d("", !0),
|
|
322
|
-
t.predefinedTrigger === e(
|
|
323
|
-
|
|
324
|
-
onClick:
|
|
352
|
+
t.predefinedTrigger === e(y).ICON_BUTTON ? (i(), n("div", Be, [
|
|
353
|
+
a(e(ge), {
|
|
354
|
+
onClick: o[0] || (o[0] = (l) => e(w)())
|
|
325
355
|
})
|
|
326
356
|
])) : d("", !0),
|
|
327
|
-
t.predefinedTrigger === e(
|
|
328
|
-
|
|
329
|
-
open: e(
|
|
357
|
+
t.predefinedTrigger === e(y).CHIP ? (i(), n("div", Ne, [
|
|
358
|
+
a(e(he), {
|
|
359
|
+
open: e(f),
|
|
330
360
|
label: t.placeholder,
|
|
331
361
|
"test-id": t.testId,
|
|
332
362
|
options: t.options,
|
|
333
|
-
"selected-option": e(
|
|
363
|
+
"selected-option": e(k),
|
|
334
364
|
"display-value": t.displayValue,
|
|
335
365
|
multi: t.multi,
|
|
336
|
-
onClick:
|
|
337
|
-
onClear:
|
|
366
|
+
onClick: o[1] || (o[1] = (l) => e(w)()),
|
|
367
|
+
onClear: o[2] || (o[2] = (l) => e(R)())
|
|
338
368
|
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi"])
|
|
339
369
|
])) : d("", !0)
|
|
340
370
|
], 512)
|
|
@@ -344,9 +374,9 @@ const ge = ["tabindex"], he = { style: { display: "flex", width: "100%" } }, be
|
|
|
344
374
|
_: 3
|
|
345
375
|
}, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"])
|
|
346
376
|
])
|
|
347
|
-
], 16,
|
|
377
|
+
], 16, Se));
|
|
348
378
|
}
|
|
349
379
|
});
|
|
350
380
|
export {
|
|
351
|
-
|
|
381
|
+
ot as default
|
|
352
382
|
};
|
|
@@ -6,6 +6,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
6
6
|
isIndeterminate?: boolean;
|
|
7
7
|
selectAllOption?: boolean;
|
|
8
8
|
active?: boolean;
|
|
9
|
+
nameKey?: string;
|
|
10
|
+
imageKey?: string;
|
|
11
|
+
iconKey?: string;
|
|
12
|
+
iconType?: "fill" | "bold" | "ab-test" | "regular" | "branded" | "ad-unit";
|
|
9
13
|
}>, {
|
|
10
14
|
subtitle: string;
|
|
11
15
|
disabled: boolean;
|
|
@@ -13,6 +17,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
13
17
|
isIndeterminate: boolean;
|
|
14
18
|
selectAllOption: boolean;
|
|
15
19
|
active: any;
|
|
20
|
+
nameKey: any;
|
|
21
|
+
imageKey: any;
|
|
22
|
+
iconKey: any;
|
|
23
|
+
iconType: any;
|
|
16
24
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
17
25
|
option?: unknown;
|
|
18
26
|
subtitle?: string;
|
|
@@ -21,6 +29,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
21
29
|
isIndeterminate?: boolean;
|
|
22
30
|
selectAllOption?: boolean;
|
|
23
31
|
active?: boolean;
|
|
32
|
+
nameKey?: string;
|
|
33
|
+
imageKey?: string;
|
|
34
|
+
iconKey?: string;
|
|
35
|
+
iconType?: "fill" | "bold" | "ab-test" | "regular" | "branded" | "ad-unit";
|
|
24
36
|
}>, {
|
|
25
37
|
subtitle: string;
|
|
26
38
|
disabled: boolean;
|
|
@@ -28,6 +40,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
28
40
|
isIndeterminate: boolean;
|
|
29
41
|
selectAllOption: boolean;
|
|
30
42
|
active: any;
|
|
43
|
+
nameKey: any;
|
|
44
|
+
imageKey: any;
|
|
45
|
+
iconKey: any;
|
|
46
|
+
iconType: any;
|
|
31
47
|
}>>>, {
|
|
32
48
|
option: any;
|
|
33
49
|
disabled: boolean;
|
|
@@ -35,6 +51,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
35
51
|
subtitle: string;
|
|
36
52
|
selectAllOption: boolean;
|
|
37
53
|
active: boolean;
|
|
54
|
+
nameKey: string;
|
|
55
|
+
imageKey: string;
|
|
56
|
+
iconKey: string;
|
|
57
|
+
iconType: "fill" | "bold" | "ab-test" | "regular" | "branded" | "ad-unit";
|
|
38
58
|
}>, {
|
|
39
59
|
image?(_: {}): any;
|
|
40
60
|
"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_2a214b95_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-2a214b95"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|