@ironsource/shared-ui 2.1.8 → 2.1.9-test.1
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/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_49bd7193_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_9fa84b26_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_360883b1_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_058de532_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_74bbce13_lang.css +1 -0
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_05c7bca2_lang.css +1 -0
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +1 -0
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_9d9e51c0_lang.css +1 -0
- package/Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css +1 -0
- package/components/alert/Alert.vue2.js +3 -2
- package/components/autocomplete/Autocomplete.vue.d.ts +1 -1
- package/components/autocomplete/index.d.ts +20 -20
- package/components/button/v4/ToggleButtonGroupAB.vue.d.ts +65 -0
- package/components/button/v4/ToggleButtonGroupAB.vue.js +7 -0
- package/components/button/v4/ToggleButtonGroupAB.vue2.js +95 -0
- package/components/button/v4/index.d.ts +170 -1
- package/components/button/v4/index.js +10 -3
- package/components/chart/Chart.vue.d.ts +5 -0
- package/components/chart/Chart.vue.js +4 -4
- package/components/chart/Chart.vue2.js +51 -49
- package/components/chart/ChartHeader.vue.d.ts +5 -0
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +35 -22
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +35 -28
- package/components/chart/SettingsHeader.vue.js +3 -3
- package/components/chart/SettingsHeader.vue2.js +33 -26
- package/components/chart/index.d.ts +20 -1
- package/components/dateRange/v4/CalendarMonthV4.vue2.js +9 -8
- package/components/dateRange/v4/DateRangeV4.vue2.js +21 -20
- package/components/dialog/v3/Dialog.vue.d.ts +1 -1
- package/components/dialog/v3/index.d.ts +5 -5
- package/components/dialog/v4/DialogV4.vue.d.ts +1 -1
- package/components/dialog/v4/DialogV4.vue2.js +6 -5
- package/components/dialog/v4/index.d.ts +5 -5
- package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
- package/components/dropdown/v3/index.d.ts +51 -51
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +17 -11
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +17 -9
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +5 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +23 -22
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +11 -0
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +59 -45
- package/components/dropdown/v4/DropdownV4.vue.d.ts +8 -2
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +121 -109
- package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +4 -3
- package/components/dropdown/v4/OptionV4.vue.d.ts +6 -0
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +83 -70
- package/components/dropdown/v4/index.d.ts +157 -65
- package/components/emptyState/v4/EmptyStateV4.vue2.js +13 -12
- package/components/forms/FormCard.vue2.js +13 -12
- package/components/includeExclude/index.d.ts +56 -56
- package/components/input/v3/Input.vue.d.ts +1 -1
- package/components/input/v3/index.d.ts +32 -32
- package/components/input/v4/TextField.vue.d.ts +1 -1
- package/components/input/v4/index.d.ts +20 -20
- package/components/menu/Menu.vue.d.ts +1 -1
- package/components/menu/index.d.ts +20 -20
- package/components/multibar/MultiBar.vue.d.ts +1 -1
- package/components/multibar/MultiBar.vue2.js +3 -2
- package/components/multibar/index.d.ts +9 -9
- package/components/popover/v3/Popover.vue.d.ts +1 -1
- package/components/popover/v3/index.d.ts +20 -20
- package/components/popover/v4/PopoverV4.vue.d.ts +7 -3
- package/components/popover/v4/PopoverV4.vue.js +3 -3
- package/components/popover/v4/PopoverV4.vue2.js +23 -20
- package/components/popover/v4/index.d.ts +36 -24
- package/components/radioButton/v3/RadioButton.vue.d.ts +1 -1
- package/components/radioButton/v3/RadioGroup.vue.d.ts +1 -1
- package/components/radioButton/v3/index.d.ts +6 -6
- package/components/radioButton/v4/RadioButtonV4.vue.d.ts +6 -1
- package/components/radioButton/v4/RadioButtonV4.vue.js +2 -2
- package/components/radioButton/v4/RadioButtonV4.vue2.js +59 -46
- package/components/radioButton/v4/RadioGroupV4.vue.d.ts +1 -1
- package/components/radioButton/v4/index.d.ts +26 -7
- package/components/snackbar/v4/SnackbarV4.vue2.js +7 -6
- package/components/sortableList/SortableItem.vue.d.ts +1 -1
- package/components/switch/v3/index.d.ts +16 -16
- package/components/switch/v4/SwitchV4.vue2.js +6 -5
- package/components/switch/v4/index.d.ts +8 -8
- package/components/table/v4/DataGrid.vue.d.ts +5 -0
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +45 -44
- package/components/table/v4/ExpandRowToggle.vue2.js +6 -5
- package/components/table/v4/MultipleDataGrid.vue.d.ts +23 -2
- package/components/table/v4/MultipleDataGrid.vue.js +5 -5
- package/components/table/v4/MultipleDataGrid.vue2.js +82 -73
- package/components/table/v4/index.d.ts +98 -2
- package/components/textArea/v4/TextAreaV4.vue.d.ts +1 -1
- package/components/textArea/v4/index.d.ts +9 -9
- package/components/toggle/v3/index.d.ts +8 -8
- package/components/toggle/v4/index.d.ts +16 -16
- package/components/typography/v4/Typography.vue.js +2 -2
- package/components/typography/v4/Typography.vue2.js +1 -1
- package/consts/configs.d.ts +1 -0
- package/consts/configs.js +4 -0
- package/index.d.ts +1392 -471
- package/index.js +1 -1
- package/mocks/options.d.ts +4 -0
- package/package.json +2 -2
- package/testids/index.d.ts +8 -1
- package/testids/index.js +14 -13
- package/utils/testIds.d.ts +1 -1
- package/utils/testIds.js +6 -6
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_23e22560_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_df85e0af_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_2e3de9c5_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_efc608f9_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_a8fdae89_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_d27e1304_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_fd7a490e_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_62a620ee_lang.css +0 -1
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_cfedf78b_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_77509f61_lang.css +0 -1
- package/PopoverV4.vue_vue_type_style_index_0_scoped_c54cd089_lang.css +0 -1
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_cb3a12c6_lang.css +0 -1
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_1791e4fe_lang.css +0 -1
- package/Typography.vue_vue_type_style_index_0_scoped_b00956b7_lang.css +0 -1
|
@@ -1,40 +1,41 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_360883b1_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as ce, computed as G, openBlock as i, createElementBlock as a, mergeProps as c, unref as t, renderSlot as T, createElementVNode as m, createVNode as n, withCtx as s, Transition as ye, normalizeClass as K, normalizeStyle as fe, createTextVNode as p, createCommentVNode as d, isRef as me, toDisplayString as U, withModifiers as W, Fragment as pe, renderList as ge, toRaw as I, createBlock as M, resolveDynamicComponent as Te } from "vue";
|
|
2
2
|
import L from "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
4
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
5
|
+
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
5
6
|
import "./DropdownV4.vue.js";
|
|
6
7
|
import ke from "./DefaultDropdownTrigger.vue.js";
|
|
7
8
|
import be from "./IconButtonDropdownTrigger.vue.js";
|
|
8
9
|
import he from "./ChipDropdownTrigger.vue.js";
|
|
9
|
-
import
|
|
10
|
+
import we from "./AppDropdownTrigger.vue.js";
|
|
10
11
|
import "./ButtonDropdownTrigger.vue.js";
|
|
11
12
|
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
12
13
|
import "./TreeDropdown.vue.js";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
14
|
+
import X from "./OptionV4.vue.js";
|
|
15
|
+
import Ie from "../../search/v4/SearchV4.vue.js";
|
|
16
|
+
import O from "../../typography/v4/Typography.vue.js";
|
|
16
17
|
import { Dropdown as ve } from "floating-vue";
|
|
17
18
|
import { DropdownTestIdModifiers as y } from "../../../testids/index.js";
|
|
18
19
|
import { dropdownCommon as Ce } from "../common/Dropdown.common.js";
|
|
19
20
|
import Se from "../../loader/v4/Loader.vue.js";
|
|
20
21
|
import { useTestIdAttrs as Ae } from "../../../utils/testIds.js";
|
|
21
|
-
import { TRIGGERS as
|
|
22
|
+
import { TRIGGERS as k } from "./Dropdown.types.js";
|
|
22
23
|
import { useElementSize as Ke } from "@vueuse/core";
|
|
23
24
|
import Le from "../../shared/FieldHelpText.vue.js";
|
|
24
25
|
import Oe from "./GroupOption.vue.js";
|
|
25
26
|
const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve = { key: 1 }, Fe = { key: 2 }, De = {
|
|
26
27
|
key: 0,
|
|
27
28
|
class: "inline-search-wrapper"
|
|
28
|
-
}, Pe = {
|
|
29
|
+
}, Pe = { class: "dropdown-conditions" }, Re = {
|
|
29
30
|
key: 0,
|
|
30
31
|
class: "no-result-container"
|
|
31
|
-
},
|
|
32
|
+
}, ze = {
|
|
32
33
|
key: 1,
|
|
33
34
|
class: "loader"
|
|
34
|
-
},
|
|
35
|
+
}, xe = { key: 2 }, $e = ["aria-selected", "aria-disabled", "onClick"], He = {
|
|
35
36
|
key: 1,
|
|
36
37
|
class: "actions-wrapper"
|
|
37
|
-
},
|
|
38
|
+
}, Ge = { class: "actions-clear-all" }, Ue = { class: "actions-apply-cancel" }, gt = /* @__PURE__ */ ce({
|
|
38
39
|
__name: "DropdownV4",
|
|
39
40
|
props: {
|
|
40
41
|
modelValue: { default: null },
|
|
@@ -66,7 +67,7 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
66
67
|
triggerShowAllSelectedText: { type: Boolean, default: !0 },
|
|
67
68
|
size: { default: "medium" },
|
|
68
69
|
mandatory: { type: Boolean, default: !1 },
|
|
69
|
-
predefinedTrigger: { default:
|
|
70
|
+
predefinedTrigger: { default: k.DEFAULT },
|
|
70
71
|
inlineSearch: { type: Boolean, default: !1 },
|
|
71
72
|
inlineSearchPlaceholder: { default: "Search" },
|
|
72
73
|
onSearch: { type: Function, default: null },
|
|
@@ -90,11 +91,12 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
90
91
|
optionsListWidth: { default: null },
|
|
91
92
|
statusType: { default: null },
|
|
92
93
|
disableVirtualScroll: { type: Boolean, default: !1 },
|
|
93
|
-
overrideOptionCountCalculation: { type: Function, default: null }
|
|
94
|
+
overrideOptionCountCalculation: { type: Function, default: null },
|
|
95
|
+
withConditions: { type: Boolean, default: !1 }
|
|
94
96
|
},
|
|
95
97
|
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard", "onsearch"],
|
|
96
|
-
setup(e, { expose: q, emit:
|
|
97
|
-
const
|
|
98
|
+
setup(e, { expose: q, emit: E }) {
|
|
99
|
+
const r = e, B = {
|
|
98
100
|
MULTILINE_LIST_HEIGHT: 48,
|
|
99
101
|
LIST_HEIGHT: 32 + 4,
|
|
100
102
|
MAX_NUMBER_OF_OPTIONS: 7.5,
|
|
@@ -103,42 +105,42 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
103
105
|
VERSION: 4
|
|
104
106
|
}, {
|
|
105
107
|
onKeydown: h,
|
|
106
|
-
open:
|
|
108
|
+
open: u,
|
|
107
109
|
toggleMenu: v,
|
|
108
|
-
onButtonKeydown:
|
|
110
|
+
onButtonKeydown: N,
|
|
109
111
|
query: C,
|
|
110
112
|
containerProps: Y,
|
|
111
113
|
calculateTableHeight: j,
|
|
112
114
|
wrapperProps: J,
|
|
113
115
|
filteredOptions: Q,
|
|
114
|
-
allSelected:
|
|
116
|
+
allSelected: V,
|
|
115
117
|
isIndeterminate: Z,
|
|
116
118
|
onSelectAll: _,
|
|
117
|
-
virtualOptions:
|
|
119
|
+
virtualOptions: F,
|
|
118
120
|
isSelected: S,
|
|
119
|
-
selectedOption:
|
|
121
|
+
selectedOption: b,
|
|
120
122
|
selectedOptionPrevious: A,
|
|
121
123
|
selectedValue: ee,
|
|
122
|
-
onSelect:
|
|
123
|
-
activeIndex:
|
|
124
|
+
onSelect: D,
|
|
125
|
+
activeIndex: P,
|
|
124
126
|
onCancel: te,
|
|
125
127
|
onApply: oe,
|
|
126
128
|
scrollTo: le,
|
|
127
129
|
listRef: ie,
|
|
128
|
-
buttonRef:
|
|
130
|
+
buttonRef: R,
|
|
129
131
|
apply: ne,
|
|
130
132
|
cancel: ae,
|
|
131
133
|
el: de,
|
|
132
|
-
onClearAllSelections:
|
|
134
|
+
onClearAllSelections: z,
|
|
133
135
|
clearAll: re,
|
|
134
136
|
isGroup: se
|
|
135
|
-
} = Ce(
|
|
137
|
+
} = Ce(r, E, B), f = Ae(r.testId, y), x = G(() => !r.predefinedTrigger || r.predefinedTrigger === k.DEFAULT ? ke : r.predefinedTrigger === k.APP ? we : null), { width: $ } = Ke(R), ue = G(() => r.optionsListWidth ? r.optionsListWidth : !r.predefinedTrigger || r.predefinedTrigger === k.DEFAULT || r.predefinedTrigger === k.APP ? $.value - 2 > 240 ? `${$.value - 2}px` : `${B.DROPLIST_MIN_WIDTH}px` : "auto"), H = () => {
|
|
136
138
|
v();
|
|
137
139
|
};
|
|
138
140
|
return q({
|
|
139
|
-
selectItem:
|
|
141
|
+
selectItem: D,
|
|
140
142
|
scrollTo: le
|
|
141
|
-
}), (
|
|
143
|
+
}), (g, l) => (i(), a("div", c({
|
|
142
144
|
ref_key: "el",
|
|
143
145
|
ref: de,
|
|
144
146
|
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
|
|
@@ -147,7 +149,7 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
147
149
|
onKeydown: l[8] || (l[8] = //@ts-ignore
|
|
148
150
|
(...o) => t(h) && t(h)(...o))
|
|
149
151
|
}), [
|
|
150
|
-
|
|
152
|
+
T(g.$slots, "label", {}, void 0, !0),
|
|
151
153
|
m("div", Be, [
|
|
152
154
|
n(t(ve), c({
|
|
153
155
|
theme: e.theme,
|
|
@@ -162,15 +164,15 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
162
164
|
distance: e.distance,
|
|
163
165
|
flip: e.flip,
|
|
164
166
|
triggers: [],
|
|
165
|
-
shown: !!t(
|
|
167
|
+
shown: !!t(u),
|
|
166
168
|
"auto-hide": !1,
|
|
167
169
|
container: e.container,
|
|
168
170
|
"auto-size": e.autoSize
|
|
169
171
|
}, t(f)[t(y).TRIGGER]), {
|
|
170
|
-
popper:
|
|
172
|
+
popper: s(() => [
|
|
171
173
|
n(ye, null, {
|
|
172
|
-
default:
|
|
173
|
-
t(
|
|
174
|
+
default: s(() => [
|
|
175
|
+
t(u) ? (i(), a("div", {
|
|
174
176
|
key: 0,
|
|
175
177
|
ref_key: "listRef",
|
|
176
178
|
ref: ie,
|
|
@@ -180,15 +182,25 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
180
182
|
}]),
|
|
181
183
|
style: fe({ width: t(ue) })
|
|
182
184
|
}, [
|
|
183
|
-
t(
|
|
185
|
+
t(u) ? (i(), a("div", {
|
|
184
186
|
key: 0,
|
|
185
187
|
class: K(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi": e.multi }]),
|
|
186
188
|
onKeydown: l[7] || (l[7] = //@ts-ignore
|
|
187
189
|
(...o) => t(h) && t(h)(...o))
|
|
188
190
|
}, [
|
|
189
|
-
t(
|
|
190
|
-
|
|
191
|
-
|
|
191
|
+
t(u) && (e.inlineSearch || e.withConditions) ? (i(), a("div", De, [
|
|
192
|
+
e.withConditions ? T(g.$slots, "dropdown-conditions", { key: 0 }, () => [
|
|
193
|
+
m("div", Pe, [
|
|
194
|
+
n(t(O), { variant: "body2" }, {
|
|
195
|
+
default: s(() => [
|
|
196
|
+
p("Conditions")
|
|
197
|
+
]),
|
|
198
|
+
_: 1
|
|
199
|
+
})
|
|
200
|
+
])
|
|
201
|
+
], !0) : d("", !0),
|
|
202
|
+
T(g.$slots, "inline-search", {}, () => [
|
|
203
|
+
n(t(Ie), {
|
|
192
204
|
modelValue: t(C),
|
|
193
205
|
"onUpdate:modelValue": [
|
|
194
206
|
l[4] || (l[4] = (o) => me(C) ? C.value = o : null),
|
|
@@ -202,8 +214,8 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
202
214
|
onKeydown: t(h)
|
|
203
215
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
|
|
204
216
|
], !0)
|
|
205
|
-
])) :
|
|
206
|
-
|
|
217
|
+
])) : d("", !0),
|
|
218
|
+
T(g.$slots, "input-list", { open: t(u) }, void 0, !0),
|
|
207
219
|
m("div", c({
|
|
208
220
|
class: ["list-container", { "list-container--multi": e.multi }],
|
|
209
221
|
style: { height: `${t(j)}rem` }
|
|
@@ -215,69 +227,69 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
215
227
|
role: "listbox",
|
|
216
228
|
class: ["list", { "list--multi": e.multi }]
|
|
217
229
|
}), [
|
|
218
|
-
!t(Q).length && !e.loading ? (i(), a("li",
|
|
219
|
-
n(t(
|
|
220
|
-
default:
|
|
221
|
-
p(
|
|
230
|
+
!t(Q).length && !e.loading ? (i(), a("li", Re, [
|
|
231
|
+
n(t(O), c({ variant: "body2" }, t(f)[t(y).NO_RESULT]), {
|
|
232
|
+
default: s(() => [
|
|
233
|
+
p(U(e.noResultsText), 1)
|
|
222
234
|
]),
|
|
223
235
|
_: 1
|
|
224
236
|
}, 16)
|
|
225
|
-
])) :
|
|
226
|
-
e.loading ? (i(), a("li",
|
|
237
|
+
])) : d("", !0),
|
|
238
|
+
e.loading ? (i(), a("li", ze, [
|
|
227
239
|
n(t(Se)),
|
|
228
|
-
n(t(
|
|
229
|
-
default:
|
|
240
|
+
n(t(O), null, {
|
|
241
|
+
default: s(() => [
|
|
230
242
|
p("Loading...")
|
|
231
243
|
]),
|
|
232
244
|
_: 1
|
|
233
245
|
})
|
|
234
|
-
])) :
|
|
235
|
-
e.showSelectAll !== !1 && e.multi && !t(C) ? (i(), a("li",
|
|
236
|
-
n(t(
|
|
246
|
+
])) : d("", !0),
|
|
247
|
+
e.showSelectAll !== !1 && e.multi && !t(C) ? (i(), a("li", xe, [
|
|
248
|
+
n(t(X), c(
|
|
237
249
|
{
|
|
238
|
-
"aria-selected": t(
|
|
250
|
+
"aria-selected": t(V),
|
|
239
251
|
"aria-disabled": !!e.disabled,
|
|
240
|
-
"selected-prop": t(
|
|
252
|
+
"selected-prop": t(V),
|
|
241
253
|
"is-indeterminate": t(Z),
|
|
242
254
|
"select-all-option": ""
|
|
243
255
|
},
|
|
244
256
|
t(f)[t(y).SELECT_ALL],
|
|
245
257
|
{
|
|
246
|
-
onClick: l[5] || (l[5] =
|
|
258
|
+
onClick: l[5] || (l[5] = W((o) => t(_)(), ["stop"]))
|
|
247
259
|
}
|
|
248
260
|
), {
|
|
249
|
-
default:
|
|
250
|
-
p("Select all ")
|
|
261
|
+
default: s(() => [
|
|
262
|
+
p(" Select all ")
|
|
251
263
|
]),
|
|
252
264
|
_: 1
|
|
253
265
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
|
|
254
|
-
])) :
|
|
255
|
-
t(
|
|
256
|
-
key:
|
|
257
|
-
"aria-selected": t(S)(
|
|
266
|
+
])) : d("", !0),
|
|
267
|
+
t(F).length && !e.loading ? (i(!0), a(pe, { key: 3 }, ge(t(F), ({ data: o, index: w }) => (i(), a("li", {
|
|
268
|
+
key: w,
|
|
269
|
+
"aria-selected": t(S)(I(t(b)), o),
|
|
258
270
|
"aria-disabled": !!e.disabled,
|
|
259
|
-
onClick:
|
|
271
|
+
onClick: W(() => t(D)(o, w), ["stop"])
|
|
260
272
|
}, [
|
|
261
|
-
e.groupedOptions && t(se)(o) ?
|
|
273
|
+
e.groupedOptions && t(se)(o) ? T(g.$slots, "group-option", { key: 0 }, () => [
|
|
262
274
|
n(Oe, null, {
|
|
263
|
-
default:
|
|
264
|
-
p(
|
|
275
|
+
default: s(() => [
|
|
276
|
+
p(U(e.displayValue(o) || o[e.optionNameKey]), 1)
|
|
265
277
|
]),
|
|
266
278
|
_: 2
|
|
267
279
|
}, 1024)
|
|
268
|
-
], !0) :
|
|
280
|
+
], !0) : T(g.$slots, "default", {
|
|
269
281
|
key: 1,
|
|
270
282
|
option: o,
|
|
271
|
-
index:
|
|
272
|
-
selected: t(S)(
|
|
273
|
-
active:
|
|
274
|
-
disabled: o[
|
|
283
|
+
index: w,
|
|
284
|
+
selected: t(S)(I(t(b)), o),
|
|
285
|
+
active: I(t(P)) === w,
|
|
286
|
+
disabled: o[r.disabledOptionKey]
|
|
275
287
|
}, () => [
|
|
276
|
-
n(t(
|
|
288
|
+
n(t(X), {
|
|
277
289
|
option: o,
|
|
278
|
-
"selected-prop": t(S)(
|
|
279
|
-
active:
|
|
280
|
-
disabled: o[
|
|
290
|
+
"selected-prop": t(S)(I(t(b)), o),
|
|
291
|
+
active: I(t(P)) === w,
|
|
292
|
+
disabled: o[r.disabledOptionKey],
|
|
281
293
|
"name-key": e.optionNameKey,
|
|
282
294
|
"image-key": e.optionImageKey,
|
|
283
295
|
"icon-key": e.optionIconKey,
|
|
@@ -288,11 +300,11 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
288
300
|
"option-two-lines-key": e.optionTwoLinesKey
|
|
289
301
|
}, null, 8, ["option", "selected-prop", "active", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "option-two-lines-variant", "option-two-lines-key"])
|
|
290
302
|
], !0)
|
|
291
|
-
], 8,
|
|
303
|
+
], 8, $e))), 128)) : d("", !0)
|
|
292
304
|
], 16)
|
|
293
305
|
], 16),
|
|
294
|
-
e.multi ? (i(), a("div",
|
|
295
|
-
m("div",
|
|
306
|
+
e.multi ? (i(), a("div", He, [
|
|
307
|
+
m("div", Ge, [
|
|
296
308
|
n(t(L), c(
|
|
297
309
|
{
|
|
298
310
|
ref_key: "clearAll",
|
|
@@ -303,16 +315,16 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
303
315
|
},
|
|
304
316
|
t(f)[t(y).ACTION_CLEAR_ALL],
|
|
305
317
|
{
|
|
306
|
-
onClick: l[6] || (l[6] = () => t(
|
|
318
|
+
onClick: l[6] || (l[6] = () => t(z)(!1))
|
|
307
319
|
}
|
|
308
320
|
), {
|
|
309
|
-
default:
|
|
321
|
+
default: s(() => [
|
|
310
322
|
p(" Clear all ")
|
|
311
323
|
]),
|
|
312
324
|
_: 1
|
|
313
325
|
}, 16)
|
|
314
326
|
]),
|
|
315
|
-
m("div",
|
|
327
|
+
m("div", Ue, [
|
|
316
328
|
n(t(L), c(
|
|
317
329
|
{
|
|
318
330
|
ref_key: "cancel",
|
|
@@ -324,7 +336,7 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
324
336
|
t(f)[t(y).ACTION_CANCEL],
|
|
325
337
|
{ onClick: t(te) }
|
|
326
338
|
), {
|
|
327
|
-
default:
|
|
339
|
+
default: s(() => [
|
|
328
340
|
p(" Cancel ")
|
|
329
341
|
]),
|
|
330
342
|
_: 1
|
|
@@ -336,48 +348,48 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
336
348
|
size: "small",
|
|
337
349
|
class: "apply-button"
|
|
338
350
|
}, t(f)[t(y).ACTION_APPLY], { onClick: t(oe) }), {
|
|
339
|
-
default:
|
|
340
|
-
p("Apply ")
|
|
351
|
+
default: s(() => [
|
|
352
|
+
p(" Apply ")
|
|
341
353
|
]),
|
|
342
354
|
_: 1
|
|
343
355
|
}, 16, ["onClick"])
|
|
344
356
|
])
|
|
345
|
-
])) :
|
|
346
|
-
], 34)) :
|
|
347
|
-
], 6)) :
|
|
357
|
+
])) : d("", !0)
|
|
358
|
+
], 34)) : d("", !0)
|
|
359
|
+
], 6)) : d("", !0)
|
|
348
360
|
]),
|
|
349
361
|
_: 3
|
|
350
362
|
})
|
|
351
363
|
]),
|
|
352
|
-
default:
|
|
364
|
+
default: s(() => [
|
|
353
365
|
m("div", {
|
|
354
366
|
class: K(["button__container", {
|
|
355
|
-
"button__container--open": !!t(
|
|
367
|
+
"button__container--open": !!t(u),
|
|
356
368
|
[`button__container--${e.size}`]: !0,
|
|
357
369
|
"button__container--disabled": e.disabled
|
|
358
370
|
}])
|
|
359
371
|
}, [
|
|
360
372
|
m("div", {
|
|
361
373
|
ref_key: "buttonRef",
|
|
362
|
-
ref:
|
|
374
|
+
ref: R
|
|
363
375
|
}, [
|
|
364
|
-
|
|
376
|
+
T(g.$slots, "dropdown-trigger", {
|
|
365
377
|
buttonTriggerProps: {
|
|
366
|
-
open: t(
|
|
378
|
+
open: t(u),
|
|
367
379
|
disabled: e.disabled,
|
|
368
380
|
label: t(ee) || e.placeholder,
|
|
369
381
|
onClick: () => t(v)()
|
|
370
382
|
},
|
|
371
383
|
defaultTriggerProps: {
|
|
372
384
|
placeholder: e.placeholder,
|
|
373
|
-
open: t(
|
|
385
|
+
open: t(u),
|
|
374
386
|
label: e.triggerLabel,
|
|
375
387
|
showFeedbackIcon: e.triggerFeedbackShowIcon,
|
|
376
388
|
mandatory: e.mandatory,
|
|
377
389
|
testId: e.testId,
|
|
378
390
|
multi: e.multi,
|
|
379
391
|
disabled: e.disabled,
|
|
380
|
-
selectedOption: e.multi ? t(A) : t(
|
|
392
|
+
selectedOption: e.multi ? t(A) : t(b),
|
|
381
393
|
displayValue: e.displayValue,
|
|
382
394
|
options: e.options,
|
|
383
395
|
optionNameKey: e.optionNameKey,
|
|
@@ -391,21 +403,21 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
391
403
|
statusDotType: e.statusType,
|
|
392
404
|
size: e.size,
|
|
393
405
|
showAllSelectedText: e.triggerShowAllSelectedText,
|
|
394
|
-
onKeydown: t(
|
|
395
|
-
onClick:
|
|
406
|
+
onKeydown: t(N),
|
|
407
|
+
onClick: H
|
|
396
408
|
}
|
|
397
409
|
}, () => [
|
|
398
|
-
t(
|
|
399
|
-
(i(),
|
|
410
|
+
t(x) ? (i(), a("div", Ne, [
|
|
411
|
+
(i(), M(Te(t(x)), {
|
|
400
412
|
placeholder: e.placeholder,
|
|
401
|
-
open: t(
|
|
413
|
+
open: t(u),
|
|
402
414
|
label: e.triggerLabel,
|
|
403
415
|
"show-feedback-icon": e.triggerFeedbackShowIcon,
|
|
404
416
|
mandatory: e.mandatory,
|
|
405
417
|
"test-id": e.testId,
|
|
406
418
|
multi: e.multi,
|
|
407
419
|
disabled: e.disabled,
|
|
408
|
-
"selected-option": e.multi ? t(A) : t(
|
|
420
|
+
"selected-option": e.multi ? t(A) : t(b),
|
|
409
421
|
"display-value": e.displayValue,
|
|
410
422
|
options: e.options,
|
|
411
423
|
"option-name-key": e.optionNameKey,
|
|
@@ -419,47 +431,47 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
419
431
|
"status-dot-type": e.statusType,
|
|
420
432
|
size: e.size,
|
|
421
433
|
"show-all-selected-text": e.triggerShowAllSelectedText,
|
|
422
|
-
onKeydown: t(
|
|
423
|
-
onClick:
|
|
424
|
-
onCopyToClipboard: l[0] || (l[0] = (o) =>
|
|
434
|
+
onKeydown: t(N),
|
|
435
|
+
onClick: H,
|
|
436
|
+
onCopyToClipboard: l[0] || (l[0] = (o) => E("copyToClipboard"))
|
|
425
437
|
}, null, 40, ["placeholder", "open", "label", "show-feedback-icon", "mandatory", "test-id", "multi", "disabled", "selected-option", "display-value", "options", "option-name-key", "option-image-key", "option-icon-key", "option-icon-type", "option-end-icon-key", "option-end-icon-type", "feedback-variant", "value-to-copy", "status-dot-type", "size", "show-all-selected-text", "onKeydown"]))
|
|
426
|
-
])) :
|
|
427
|
-
e.predefinedTrigger === t(
|
|
438
|
+
])) : d("", !0),
|
|
439
|
+
e.predefinedTrigger === t(k).ICON_BUTTON ? (i(), a("div", Ve, [
|
|
428
440
|
n(t(be), {
|
|
429
441
|
onClick: l[1] || (l[1] = (o) => t(v)())
|
|
430
442
|
})
|
|
431
|
-
])) :
|
|
432
|
-
e.predefinedTrigger === t(
|
|
443
|
+
])) : d("", !0),
|
|
444
|
+
e.predefinedTrigger === t(k).CHIP ? (i(), a("div", Fe, [
|
|
433
445
|
n(t(he), {
|
|
434
|
-
open: t(
|
|
446
|
+
open: t(u),
|
|
435
447
|
label: e.placeholder,
|
|
436
448
|
"test-id": e.testId,
|
|
437
449
|
options: e.options,
|
|
438
|
-
"selected-option": e.multi ? t(A) : t(
|
|
450
|
+
"selected-option": e.multi ? t(A) : t(b),
|
|
439
451
|
"display-value": e.displayValue,
|
|
440
452
|
multi: e.multi,
|
|
441
453
|
onClick: l[2] || (l[2] = (o) => t(v)()),
|
|
442
|
-
onClear: l[3] || (l[3] = (o) => t(
|
|
454
|
+
onClear: l[3] || (l[3] = (o) => t(z)())
|
|
443
455
|
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi"])
|
|
444
|
-
])) :
|
|
456
|
+
])) : d("", !0)
|
|
445
457
|
], !0)
|
|
446
458
|
], 512)
|
|
447
459
|
], 2)
|
|
448
460
|
]),
|
|
449
461
|
_: 3
|
|
450
462
|
}, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
|
|
451
|
-
e.triggerFeedbackText ? (i(),
|
|
463
|
+
e.triggerFeedbackText ? (i(), M(Le, {
|
|
452
464
|
key: 0,
|
|
453
465
|
text: e.triggerFeedbackText,
|
|
454
466
|
variant: e.triggerFeedbackVariant,
|
|
455
467
|
"show-icon": e.triggerFeedbackShowIcon,
|
|
456
468
|
"test-id": e.testId,
|
|
457
469
|
class: "dropdown-field-help-text"
|
|
458
|
-
}, null, 8, ["text", "variant", "show-icon", "test-id"])) :
|
|
470
|
+
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : d("", !0)
|
|
459
471
|
])
|
|
460
472
|
], 16, Ee));
|
|
461
473
|
}
|
|
462
474
|
});
|
|
463
475
|
export {
|
|
464
|
-
|
|
476
|
+
gt as default
|
|
465
477
|
};
|
|
@@ -2,19 +2,20 @@
|
|
|
2
2
|
import "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import m from "../../button/v4/IconButtonV4.vue.js";
|
|
4
4
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
5
|
-
|
|
5
|
+
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
6
|
+
const _ = /* @__PURE__ */ e({
|
|
6
7
|
__name: "IconButtonDropdownTrigger",
|
|
7
8
|
props: {
|
|
8
9
|
testId: { default: "" }
|
|
9
10
|
},
|
|
10
11
|
setup(o) {
|
|
11
12
|
const t = o;
|
|
12
|
-
return (s,
|
|
13
|
+
return (s, i) => (r(), n(p(m), c({
|
|
13
14
|
"icon-name": "dots-three",
|
|
14
15
|
type: "bold"
|
|
15
16
|
}, t), null, 16));
|
|
16
17
|
}
|
|
17
18
|
});
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
_ as default
|
|
20
21
|
};
|
|
@@ -19,6 +19,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
19
19
|
optionTwoLinesVariant?: "horizontal" | "vertical";
|
|
20
20
|
optionTwoLinesKey?: string;
|
|
21
21
|
treeChildShown?: boolean;
|
|
22
|
+
optionFlagKey?: string;
|
|
22
23
|
}>, {
|
|
23
24
|
subtitle: string;
|
|
24
25
|
disabled: boolean;
|
|
@@ -39,6 +40,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
39
40
|
optionTwoLinesVariant: any;
|
|
40
41
|
optionTwoLinesKey: any;
|
|
41
42
|
treeChildShown: boolean;
|
|
43
|
+
optionFlagKey: any;
|
|
42
44
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
45
|
toggleTreeCollapse: (option: unknown) => void;
|
|
44
46
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -62,6 +64,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
62
64
|
optionTwoLinesVariant?: "horizontal" | "vertical";
|
|
63
65
|
optionTwoLinesKey?: string;
|
|
64
66
|
treeChildShown?: boolean;
|
|
67
|
+
optionFlagKey?: string;
|
|
65
68
|
}>, {
|
|
66
69
|
subtitle: string;
|
|
67
70
|
disabled: boolean;
|
|
@@ -82,6 +85,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
82
85
|
optionTwoLinesVariant: any;
|
|
83
86
|
optionTwoLinesKey: any;
|
|
84
87
|
treeChildShown: boolean;
|
|
88
|
+
optionFlagKey: any;
|
|
85
89
|
}>>> & {
|
|
86
90
|
onToggleTreeCollapse?: (option: unknown) => any;
|
|
87
91
|
}, {
|
|
@@ -92,6 +96,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
92
96
|
optionTwoLinesVariant: "horizontal" | "vertical";
|
|
93
97
|
optionTwoLinesKey: string;
|
|
94
98
|
isIndeterminate: boolean;
|
|
99
|
+
optionFlagKey: string;
|
|
95
100
|
subtitle: string;
|
|
96
101
|
selectAllOption: boolean;
|
|
97
102
|
nameKey: string;
|
|
@@ -106,6 +111,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
106
111
|
treeChildShown: boolean;
|
|
107
112
|
}>, {
|
|
108
113
|
image?(_: {}): any;
|
|
114
|
+
flag?(_: {}): any;
|
|
109
115
|
"icon-start"?(_: {}): any;
|
|
110
116
|
default?(_: {}): any;
|
|
111
117
|
"icon-end"?(_: {}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./OptionV4.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../OptionV4.
|
|
4
|
-
const s = /* @__PURE__ */
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../OptionV4.vue_vue_type_style_index_0_scoped_058de532_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-058de532"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|