@ironsource/shared-ui 2.2.0-test.9 → 2.2.0-test.90
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/Alert.vue_vue_type_style_index_0_scoped_1036ab1d_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_6f05dc63_lang.css +1 -0
- package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_73af6757_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_a4d7b67a_lang.css +1 -0
- package/DatePickerV4.vue_vue_type_style_index_0_scoped_bb0041c1_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_5545bc01_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_b2d0a4d2_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_98458a8f_lang.css +1 -0
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_cc2adbf5_lang.css +1 -1
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_bd6145ce_lang.css +1 -1
- package/Loader.vue_vue_type_style_index_0_scoped_94c3c850_lang.css +1 -0
- package/Menu.vue_vue_type_style_index_0_scoped_545aa70b_lang.css +1 -0
- package/Menu.vue_vue_type_style_index_1_lang.css +1 -1
- package/MultiBar.vue_vue_type_style_index_0_scoped_7c2477ad_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_7e70c643_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_ea1a3e8c_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_f19e742c_lang.css +1 -0
- package/Tag.vue_vue_type_style_index_0_scoped_b0662035_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_8eef6574_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_f88fbece_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/components/ThemeWrapper/ThemeStrore.d.ts +2 -1
- package/components/ThemeWrapper/ThemeStrore.js +14 -11
- package/components/ThemeWrapper/ThemeWrapper.vue.js +2 -2
- package/components/ThemeWrapper/ThemeWrapper.vue2.js +8 -11
- package/components/ThemeWrapper/index.d.ts +2 -1
- package/components/ThemeWrapper/index.js +4 -2
- package/components/alert/Alert.vue.js +4 -4
- package/components/alert/Alert.vue2.js +1 -1
- package/components/button/v3/ButtonBase.vue.d.ts +1 -1
- package/components/button/v4/ButtonV4.vue.js +3 -3
- package/components/button/v4/ButtonV4.vue2.js +1 -1
- package/components/chart/Chart.vue.d.ts +5 -0
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +17 -15
- package/components/chart/composables/useChartHeight.d.ts +1 -1
- package/components/chart/composables/useChartHeight.js +16 -15
- package/components/chart/index.d.ts +20 -1
- package/components/chart/types.d.ts +1 -0
- package/components/datePicker/v4/DatePickerV4.vue.js +2 -2
- package/components/datePicker/v4/DatePickerV4.vue2.js +1 -1
- package/components/dateRange/common/consts.common.d.ts +5 -0
- package/components/dateRange/common/consts.common.js +9 -0
- package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
- package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
- package/components/dateRange/v3/index.d.ts +7 -7
- package/components/dateRange/v4/CalendarMonthV4.vue.js +4 -4
- package/components/dateRange/v4/CalendarMonthV4.vue2.js +1 -1
- package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
- package/components/dateRange/v4/DateRangeV4.vue.d.ts +3 -3
- package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
- package/components/dateRange/v4/DateRangeV4.vue2.js +1 -1
- package/components/dateRange/v4/index.d.ts +7 -7
- package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
- package/components/dropdown/v3/index.d.ts +12 -12
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +152 -146
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +13 -12
- package/components/forms/FormCard.vue.js +3 -3
- package/components/forms/FormCard.vue2.js +5 -5
- package/components/loader/v4/Loader.vue.js +3 -3
- package/components/loader/v4/Loader.vue2.js +1 -1
- package/components/menu/Menu.vue.js +3 -3
- package/components/menu/Menu.vue2.js +33 -30
- package/components/multibar/MultiBar.vue.js +3 -3
- package/components/multibar/MultiBar.vue2.js +51 -50
- package/components/popover/v4/PopoverV4.vue.d.ts +14 -0
- package/components/popover/v4/PopoverV4.vue.js +2 -2
- package/components/popover/v4/PopoverV4.vue2.js +20 -17
- package/components/popover/v4/index.d.ts +41 -1
- package/components/snackbar/v4/SnackbarV4.vue.js +3 -3
- package/components/snackbar/v4/SnackbarV4.vue2.js +1 -1
- package/components/tag/Tag.vue.d.ts +26 -0
- package/components/tag/Tag.vue.js +3 -3
- package/components/tag/Tag.vue2.js +227 -155
- package/components/tag/index.d.ts +42 -0
- package/components/tooltip/v3/Tooltip.vue.d.ts +1 -1
- package/components/tooltip/v3/index.d.ts +20 -20
- package/components/tooltip/v4/TooltipV4.vue.d.ts +6 -1
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +76 -36
- package/components/tooltip/v4/index.d.ts +39 -20
- package/design-foundation.stories/colors/ColorsData.d.ts +114 -0
- package/design-foundation.stories/colors/ColorsStoryWrapper.vue.d.ts +28 -1
- package/index.d.ts +195 -76
- package/package.json +1 -1
- package/style/v4/border-radius.scss +2 -2
- package/style/v4/colors.scss +105 -0
- package/style/v4/elevations.scss +11 -0
- package/style/v4/grid.css +1 -1
- package/style/v4/grid.css.map +1 -1
- package/style/v4/grid.scss +1 -1
- package/style/v4/scrollbar.scss +21 -0
- package/style/v4/spacings.scss +1 -1
- package/style/v4/styleguideV4.scss +1 -0
- package/styleguide.scss +2 -2
- package/Alert.vue_vue_type_style_index_0_scoped_5e66710b_lang.css +0 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_a59af1ad_lang.css +0 -1
- package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_6eae923a_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_22477735_lang.css +0 -1
- package/DatePickerV4.vue_vue_type_style_index_0_scoped_39e6c10c_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_f8826716_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_526bf0a1_lang.css +0 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +0 -1
- package/Loader.vue_vue_type_style_index_0_scoped_50d9be64_lang.css +0 -1
- package/Menu.vue_vue_type_style_index_0_scoped_eb057818_lang.css +0 -1
- package/MultiBar.vue_vue_type_style_index_0_scoped_c4395fb6_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +0 -1
- package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +0 -1
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_35c79635_lang.css +0 -1
- package/Tag.vue_vue_type_style_index_0_scoped_043adaf5_lang.css +0 -1
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +0 -1
|
@@ -1,45 +1,46 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_b2d0a4d2_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as be, computed as S, watch as Ie, toRaw as v, openBlock as a, createElementBlock as s, mergeProps as m, unref as t, renderSlot as u, createElementVNode as f, createVNode as d, withCtx as c, Transition as Se, normalizeClass as B, normalizeStyle as ve, createTextVNode as k, createCommentVNode as r, isRef as Ce, toDisplayString as J, withModifiers as Q, Fragment as Ke, renderList as Ee, createSlots as Ae, createBlock as F, resolveDynamicComponent as xe } from "vue";
|
|
2
2
|
import P 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 Oe from "./DefaultDropdownTrigger.vue.js";
|
|
8
|
+
import Le from "./IconButtonDropdownTrigger.vue.js";
|
|
9
|
+
import Be from "./ChipDropdownTrigger.vue.js";
|
|
10
|
+
import Fe from "./AppDropdownTrigger.vue.js";
|
|
11
11
|
import "./ButtonDropdownTrigger.vue.js";
|
|
12
12
|
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
13
13
|
import "./TreeDropdown.vue.js";
|
|
14
|
-
import
|
|
14
|
+
import Z from "./OptionV4.vue.js";
|
|
15
15
|
import "./ConditionalDropdown.vue.js";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import { Dropdown as
|
|
16
|
+
import Pe from "../../search/v4/SearchV4.vue.js";
|
|
17
|
+
import _ from "../../typography/v4/Typography.vue.js";
|
|
18
|
+
import { Dropdown as Ne } from "floating-vue";
|
|
19
|
+
import { useThemeStore as Ve } from "../../ThemeWrapper/ThemeStrore.js";
|
|
19
20
|
import { DropdownTestIdModifiers as p } from "../../../testids/index.js";
|
|
20
|
-
import { dropdownCommon as
|
|
21
|
-
import
|
|
22
|
-
import { useTestIdAttrs as
|
|
21
|
+
import { dropdownCommon as $e } from "../common/Dropdown.common.js";
|
|
22
|
+
import E from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
23
|
+
import { useTestIdAttrs as De } from "../../../utils/testIds.js";
|
|
23
24
|
import { TRIGGERS as w } from "./Dropdown.types.js";
|
|
24
|
-
import { useElementSize as
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
const
|
|
25
|
+
import { useElementSize as Me } from "@vueuse/core";
|
|
26
|
+
import Re from "../../shared/FieldHelpText.vue.js";
|
|
27
|
+
import ze from "./GroupOption.vue.js";
|
|
28
|
+
const We = ["tabindex"], Ge = { style: { width: "100%" } }, He = { key: 0 }, Ue = { key: 1 }, Ye = { key: 2 }, Xe = {
|
|
28
29
|
key: 0,
|
|
29
30
|
class: "inline-search-wrapper"
|
|
30
|
-
},
|
|
31
|
+
}, qe = { class: "dropdown-conditions" }, je = {
|
|
31
32
|
key: 0,
|
|
32
33
|
class: "no-result-container"
|
|
33
|
-
},
|
|
34
|
+
}, Je = ["aria-selected", "aria-disabled", "onClick"], Qe = {
|
|
34
35
|
key: 3,
|
|
35
36
|
class: "loader"
|
|
36
|
-
},
|
|
37
|
+
}, Ze = {
|
|
37
38
|
key: 1,
|
|
38
39
|
class: "actions-wrapper"
|
|
39
|
-
},
|
|
40
|
+
}, _e = { class: "actions-clear-all" }, et = { class: "actions-apply-cancel" }, tt = {
|
|
40
41
|
key: 2,
|
|
41
42
|
class: "dropdown-footer"
|
|
42
|
-
},
|
|
43
|
+
}, Ot = /* @__PURE__ */ be({
|
|
43
44
|
__name: "DropdownV4",
|
|
44
45
|
props: {
|
|
45
46
|
modelValue: { default: null },
|
|
@@ -117,7 +118,7 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
117
118
|
withConditions: { type: Boolean, default: !1 }
|
|
118
119
|
},
|
|
119
120
|
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard", "onsearch", "loadMore", "allSelectedChanged", "unsavedSelectionUpdate"],
|
|
120
|
-
setup(e, { expose:
|
|
121
|
+
setup(e, { expose: ee, emit: N }) {
|
|
121
122
|
const o = e, V = {
|
|
122
123
|
MULTILINE_LIST_HEIGHT: 48,
|
|
123
124
|
LIST_HEIGHT: 32 + 4,
|
|
@@ -128,38 +129,40 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
128
129
|
}, {
|
|
129
130
|
onKeydown: I,
|
|
130
131
|
open: y,
|
|
131
|
-
toggleMenu:
|
|
132
|
-
onButtonKeydown:
|
|
133
|
-
query:
|
|
134
|
-
containerProps:
|
|
135
|
-
calculateTableHeight:
|
|
136
|
-
wrapperProps:
|
|
137
|
-
filteredOptions:
|
|
138
|
-
allSelected:
|
|
139
|
-
allSelectedApplied:
|
|
140
|
-
isIndeterminate:
|
|
141
|
-
onSelectAll:
|
|
132
|
+
toggleMenu: C,
|
|
133
|
+
onButtonKeydown: $,
|
|
134
|
+
query: K,
|
|
135
|
+
containerProps: te,
|
|
136
|
+
calculateTableHeight: oe,
|
|
137
|
+
wrapperProps: ne,
|
|
138
|
+
filteredOptions: le,
|
|
139
|
+
allSelected: D,
|
|
140
|
+
allSelectedApplied: A,
|
|
141
|
+
isIndeterminate: ie,
|
|
142
|
+
onSelectAll: ae,
|
|
142
143
|
virtualOptions: M,
|
|
143
|
-
isSelected:
|
|
144
|
-
selectedOption:
|
|
145
|
-
selectedOptionPrevious:
|
|
146
|
-
selectedValue:
|
|
144
|
+
isSelected: x,
|
|
145
|
+
selectedOption: h,
|
|
146
|
+
selectedOptionPrevious: O,
|
|
147
|
+
selectedValue: de,
|
|
147
148
|
onSelect: R,
|
|
148
149
|
activeIndex: z,
|
|
149
|
-
onCancel:
|
|
150
|
-
onApply:
|
|
151
|
-
scrollTo:
|
|
152
|
-
listRef:
|
|
150
|
+
onCancel: re,
|
|
151
|
+
onApply: se,
|
|
152
|
+
scrollTo: ue,
|
|
153
|
+
listRef: ce,
|
|
153
154
|
buttonRef: W,
|
|
154
|
-
apply:
|
|
155
|
-
cancel:
|
|
156
|
-
el:
|
|
155
|
+
apply: ye,
|
|
156
|
+
cancel: me,
|
|
157
|
+
el: fe,
|
|
157
158
|
onClearAllSelections: G,
|
|
158
|
-
clearAll:
|
|
159
|
-
isGroup:
|
|
160
|
-
flattenAndMarkGroupOptions:
|
|
161
|
-
} =
|
|
162
|
-
|
|
159
|
+
clearAll: pe,
|
|
160
|
+
isGroup: ge,
|
|
161
|
+
flattenAndMarkGroupOptions: he
|
|
162
|
+
} = $e(o, N, V), g = De(o.testId, p), { theme: H } = Ve(), U = S(
|
|
163
|
+
() => o.theme !== "light-theme-v4" ? o.theme : `${H.value}-theme-v4`
|
|
164
|
+
), Te = S(() => `${H.value}-theme-v4`), Y = S(() => !o.predefinedTrigger || o.predefinedTrigger === w.DEFAULT ? Oe : o.predefinedTrigger === w.APP ? Fe : null), { width: X } = Me(W), ke = S(() => o.optionsListWidth ? o.optionsListWidth : !o.predefinedTrigger || o.predefinedTrigger === w.DEFAULT || o.predefinedTrigger === w.APP ? X.value - 2 > 240 ? `${X.value - 2}px` : `${V.DROPLIST_MIN_WIDTH}px` : "auto");
|
|
165
|
+
Ie(
|
|
163
166
|
() => o.optionsListWidth,
|
|
164
167
|
() => {
|
|
165
168
|
o.optionsListWidth && document.documentElement.style.setProperty(
|
|
@@ -168,15 +171,15 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
168
171
|
);
|
|
169
172
|
}
|
|
170
173
|
);
|
|
171
|
-
const
|
|
172
|
-
|
|
173
|
-
},
|
|
174
|
+
const q = () => {
|
|
175
|
+
C();
|
|
176
|
+
}, j = S(() => {
|
|
174
177
|
const n = {
|
|
175
178
|
tooltipMessage: null,
|
|
176
179
|
selections: []
|
|
177
180
|
};
|
|
178
181
|
if (o.multi && o.comparingKey) {
|
|
179
|
-
const i =
|
|
182
|
+
const i = v(h.value);
|
|
180
183
|
if (o.minSelections || o.maxSelections) {
|
|
181
184
|
if (Array.isArray(i) && i.length <= o.minSelections)
|
|
182
185
|
return n.tooltipMessage = `You need to select at least ${o.minSelections} item${o.minSelections > 1 ? "s" : ""}`, n.selections = i.map(
|
|
@@ -185,8 +188,8 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
185
188
|
if (o.maxSelections && Array.isArray(i) && i.length >= o.maxSelections) {
|
|
186
189
|
const l = i.map(
|
|
187
190
|
(b) => b[o.comparingKey]
|
|
188
|
-
),
|
|
189
|
-
return n.tooltipMessage = `You can only select up to ${o.maxSelections} items`, n.selections =
|
|
191
|
+
), T = o.groupedOptions ? he(o.options) : o.options;
|
|
192
|
+
return n.tooltipMessage = `You can only select up to ${o.maxSelections} items`, n.selections = T.map((b) => {
|
|
190
193
|
if (!l.includes(b[o.comparingKey]))
|
|
191
194
|
return b[o.comparingKey];
|
|
192
195
|
}), n;
|
|
@@ -194,18 +197,18 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
194
197
|
}
|
|
195
198
|
}
|
|
196
199
|
return n.tooltipMessage = null, n.selections = [], n;
|
|
197
|
-
}),
|
|
200
|
+
}), we = (n) => {
|
|
198
201
|
if ((o.minSelections || o.maxSelections) && o.comparingKey)
|
|
199
|
-
return
|
|
202
|
+
return j.value.selections.includes(
|
|
200
203
|
n[o.comparingKey]
|
|
201
204
|
);
|
|
202
|
-
},
|
|
203
|
-
return
|
|
205
|
+
}, L = (n) => n[o.disabledOptionKey] || we(n);
|
|
206
|
+
return ee({
|
|
204
207
|
selectItem: R,
|
|
205
|
-
scrollTo:
|
|
208
|
+
scrollTo: ue
|
|
206
209
|
}), (n, i) => (a(), s("div", m({
|
|
207
210
|
ref_key: "el",
|
|
208
|
-
ref:
|
|
211
|
+
ref: fe,
|
|
209
212
|
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
|
|
210
213
|
tabindex: e.disabled ? -1 : 0
|
|
211
214
|
}, t(g)[t(p).WRAPPER], {
|
|
@@ -213,12 +216,12 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
213
216
|
(...l) => t(I) && t(I)(...l))
|
|
214
217
|
}), [
|
|
215
218
|
u(n.$slots, "label", {}, void 0, !0),
|
|
216
|
-
f("div",
|
|
217
|
-
d(t(
|
|
218
|
-
theme:
|
|
219
|
+
f("div", Ge, [
|
|
220
|
+
d(t(Ne), m({
|
|
221
|
+
theme: t(U),
|
|
219
222
|
"popper-class": [
|
|
220
223
|
e.popperClass,
|
|
221
|
-
|
|
224
|
+
t(U),
|
|
222
225
|
e.autoSize ? "v-popper--theme-is-dropdown--auto-size" : null,
|
|
223
226
|
"v4-dropdown"
|
|
224
227
|
],
|
|
@@ -233,17 +236,20 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
233
236
|
"auto-size": e.autoSize
|
|
234
237
|
}, t(g)[t(p).TRIGGER]), {
|
|
235
238
|
popper: c(() => [
|
|
236
|
-
d(
|
|
239
|
+
d(Se, null, {
|
|
237
240
|
default: c(() => [
|
|
238
241
|
t(y) ? (a(), s("div", {
|
|
239
242
|
key: 0,
|
|
240
243
|
ref_key: "listRef",
|
|
241
|
-
ref:
|
|
242
|
-
class: B([
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
244
|
+
ref: ce,
|
|
245
|
+
class: B([
|
|
246
|
+
t(Te),
|
|
247
|
+
{
|
|
248
|
+
"dropdown--disabled": e.disabled,
|
|
249
|
+
"inline-search": e.inlineSearch
|
|
250
|
+
}
|
|
251
|
+
]),
|
|
252
|
+
style: ve({ width: t(ke) })
|
|
247
253
|
}, [
|
|
248
254
|
t(y) ? (a(), s("div", {
|
|
249
255
|
key: 0,
|
|
@@ -254,10 +260,10 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
254
260
|
onKeydown: i[7] || (i[7] = //@ts-ignore
|
|
255
261
|
(...l) => t(I) && t(I)(...l))
|
|
256
262
|
}, [
|
|
257
|
-
t(y) && e.inlineSearch ? (a(), s("div",
|
|
263
|
+
t(y) && e.inlineSearch ? (a(), s("div", Xe, [
|
|
258
264
|
e.withConditions ? u(n.$slots, "dropdown-conditions", { key: 0 }, () => [
|
|
259
|
-
f("div",
|
|
260
|
-
d(t(
|
|
265
|
+
f("div", qe, [
|
|
266
|
+
d(t(_), { variant: "body2" }, {
|
|
261
267
|
default: c(() => [
|
|
262
268
|
k("Conditions")
|
|
263
269
|
]),
|
|
@@ -266,10 +272,10 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
266
272
|
])
|
|
267
273
|
], !0) : r("", !0),
|
|
268
274
|
u(n.$slots, "inline-search", {}, () => [
|
|
269
|
-
d(t(
|
|
270
|
-
modelValue: t(
|
|
275
|
+
d(t(Pe), {
|
|
276
|
+
modelValue: t(K),
|
|
271
277
|
"onUpdate:modelValue": [
|
|
272
|
-
i[4] || (i[4] = (l) =>
|
|
278
|
+
i[4] || (i[4] = (l) => Ce(K) ? K.value = l : null),
|
|
273
279
|
e.onClearSearch
|
|
274
280
|
],
|
|
275
281
|
placeholder: e.inlineSearchPlaceholder,
|
|
@@ -284,41 +290,41 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
284
290
|
u(n.$slots, "input-list", { open: t(y) }, void 0, !0),
|
|
285
291
|
f("div", m({
|
|
286
292
|
class: ["list-container", { "list-container--multi": e.multi }],
|
|
287
|
-
style: { height: `${t(
|
|
293
|
+
style: { height: `${t(oe)}rem` }
|
|
288
294
|
}, {
|
|
289
|
-
...t(
|
|
295
|
+
...t(te),
|
|
290
296
|
...t(g)[t(p).LIST_CONTAINER]
|
|
291
297
|
}), [
|
|
292
298
|
u(n.$slots, "custom-list-area", {}, void 0, !0),
|
|
293
|
-
f("ul", m(t(
|
|
299
|
+
f("ul", m(t(ne), {
|
|
294
300
|
role: "listbox",
|
|
295
301
|
class: ["list", {
|
|
296
302
|
"list--multi": e.multi,
|
|
297
303
|
"list--with-conditions": e.withConditions
|
|
298
304
|
}]
|
|
299
305
|
}), [
|
|
300
|
-
!t(
|
|
301
|
-
d(t(
|
|
306
|
+
!t(le).length && !e.loading && !e.withConditions ? (a(), s("li", je, [
|
|
307
|
+
d(t(_), m({ variant: "body2" }, t(g)[t(p).NO_RESULT]), {
|
|
302
308
|
default: c(() => [
|
|
303
|
-
k(
|
|
309
|
+
k(J(e.noResultsText), 1)
|
|
304
310
|
]),
|
|
305
311
|
_: 1
|
|
306
312
|
}, 16)
|
|
307
313
|
])) : r("", !0),
|
|
308
|
-
e.showSelectAll !== !1 && e.multi && !t(
|
|
314
|
+
e.showSelectAll !== !1 && e.multi && !t(K) && !e.loading && e.options.length && !(e.minSelections || e.maxSelections) ? u(n.$slots, "select-all", { key: 1 }, () => [
|
|
309
315
|
f("li", null, [
|
|
310
|
-
d(t(
|
|
316
|
+
d(t(Z), m(
|
|
311
317
|
{
|
|
312
|
-
"aria-selected": t(
|
|
318
|
+
"aria-selected": t(D),
|
|
313
319
|
"aria-disabled": !!e.disabled,
|
|
314
|
-
"selected-prop": t(
|
|
315
|
-
"is-indeterminate": t(
|
|
320
|
+
"selected-prop": t(D),
|
|
321
|
+
"is-indeterminate": t(ie),
|
|
316
322
|
"is-multi": e.multi,
|
|
317
323
|
"select-all-option": ""
|
|
318
324
|
},
|
|
319
325
|
t(g)[t(p).SELECT_ALL],
|
|
320
326
|
{
|
|
321
|
-
onClick: i[5] || (i[5] =
|
|
327
|
+
onClick: i[5] || (i[5] = Q((l) => t(ae)(), ["stop"]))
|
|
322
328
|
}
|
|
323
329
|
), {
|
|
324
330
|
default: c(() => [
|
|
@@ -328,35 +334,35 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
328
334
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate", "is-multi"])
|
|
329
335
|
])
|
|
330
336
|
], !0) : r("", !0),
|
|
331
|
-
t(M).length && !e.loading ? (a(!0), s(
|
|
332
|
-
key:
|
|
333
|
-
"aria-selected": t(
|
|
337
|
+
t(M).length && !e.loading ? (a(!0), s(Ke, { key: 2 }, Ee(t(M), ({ data: l, index: T }) => (a(), s("li", {
|
|
338
|
+
key: T,
|
|
339
|
+
"aria-selected": t(x)(v(t(h)), l),
|
|
334
340
|
"aria-disabled": !!e.disabled,
|
|
335
|
-
onClick:
|
|
336
|
-
() => !
|
|
341
|
+
onClick: Q(
|
|
342
|
+
() => !L(l) && t(R)(l, T),
|
|
337
343
|
["stop"]
|
|
338
344
|
)
|
|
339
345
|
}, [
|
|
340
|
-
e.groupedOptions && t(
|
|
341
|
-
d(
|
|
346
|
+
e.groupedOptions && t(ge)(l) ? u(n.$slots, "group-option", { key: 0 }, () => [
|
|
347
|
+
d(ze, null, {
|
|
342
348
|
default: c(() => [
|
|
343
|
-
k(
|
|
349
|
+
k(J(e.displayValue(l) || l[e.optionNameKey]), 1)
|
|
344
350
|
]),
|
|
345
351
|
_: 2
|
|
346
352
|
}, 1024)
|
|
347
353
|
], !0) : u(n.$slots, "default", {
|
|
348
354
|
key: 1,
|
|
349
355
|
option: l,
|
|
350
|
-
index:
|
|
351
|
-
selected: t(
|
|
352
|
-
active:
|
|
353
|
-
disabled:
|
|
356
|
+
index: T,
|
|
357
|
+
selected: t(x)(v(t(h)), l),
|
|
358
|
+
active: v(t(z)) === T,
|
|
359
|
+
disabled: L(l)
|
|
354
360
|
}, () => [
|
|
355
|
-
d(t(
|
|
361
|
+
d(t(Z), {
|
|
356
362
|
option: l,
|
|
357
|
-
"selected-prop": t(
|
|
358
|
-
active:
|
|
359
|
-
disabled:
|
|
363
|
+
"selected-prop": t(x)(t(h), l),
|
|
364
|
+
active: v(t(z)) === T,
|
|
365
|
+
disabled: L(l),
|
|
360
366
|
"name-key": e.optionNameKey,
|
|
361
367
|
"image-key": e.optionImageKey,
|
|
362
368
|
"icon-key": e.optionIconKey,
|
|
@@ -370,8 +376,8 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
370
376
|
"option-two-lines-key": e.optionTwoLinesKey,
|
|
371
377
|
"tooltip-placement": e.optionTooltipPosition,
|
|
372
378
|
"is-multi": e.multi,
|
|
373
|
-
"min-max-selection-tooltip-message": t(
|
|
374
|
-
},
|
|
379
|
+
"min-max-selection-tooltip-message": t(j)?.tooltipMessage
|
|
380
|
+
}, Ae({ _: 2 }, [
|
|
375
381
|
n.$slots["option-end"] ? {
|
|
376
382
|
name: "option-end",
|
|
377
383
|
fn: c(({ option: b }) => [
|
|
@@ -381,22 +387,22 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
381
387
|
} : void 0
|
|
382
388
|
]), 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", "warning-key", "option-two-lines-variant", "option-two-lines-key", "tooltip-placement", "is-multi", "min-max-selection-tooltip-message"])
|
|
383
389
|
], !0)
|
|
384
|
-
], 8,
|
|
385
|
-
e.loading || e.loadMoreLoading ? (a(), s("li",
|
|
386
|
-
d(t(
|
|
387
|
-
d(t(
|
|
388
|
-
d(t(
|
|
389
|
-
d(t(
|
|
390
|
+
], 8, Je))), 128)) : r("", !0),
|
|
391
|
+
e.loading || e.loadMoreLoading ? (a(), s("li", Qe, [
|
|
392
|
+
d(t(E), { round: "" }),
|
|
393
|
+
d(t(E), { round: "" }),
|
|
394
|
+
d(t(E), { round: "" }),
|
|
395
|
+
d(t(E), { round: "" })
|
|
390
396
|
])) : r("", !0)
|
|
391
397
|
], 16)
|
|
392
398
|
], 16),
|
|
393
|
-
e.multi ? (a(), s("div",
|
|
394
|
-
f("div",
|
|
399
|
+
e.multi ? (a(), s("div", Ze, [
|
|
400
|
+
f("div", _e, [
|
|
395
401
|
e.showClearAll ? (a(), F(t(P), m(
|
|
396
402
|
{
|
|
397
403
|
key: 0,
|
|
398
404
|
ref_key: "clearAll",
|
|
399
|
-
ref:
|
|
405
|
+
ref: pe,
|
|
400
406
|
size: "small",
|
|
401
407
|
variant: "text",
|
|
402
408
|
color: "primary"
|
|
@@ -412,17 +418,17 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
412
418
|
_: 1
|
|
413
419
|
}, 16)) : r("", !0)
|
|
414
420
|
]),
|
|
415
|
-
f("div",
|
|
421
|
+
f("div", et, [
|
|
416
422
|
d(t(P), m(
|
|
417
423
|
{
|
|
418
424
|
ref_key: "cancel",
|
|
419
|
-
ref:
|
|
425
|
+
ref: me,
|
|
420
426
|
size: "small",
|
|
421
427
|
variant: "outlined",
|
|
422
428
|
color: "default"
|
|
423
429
|
},
|
|
424
430
|
t(g)[t(p).ACTION_CANCEL],
|
|
425
|
-
{ onClick: t(
|
|
431
|
+
{ onClick: t(re) }
|
|
426
432
|
), {
|
|
427
433
|
default: c(() => [
|
|
428
434
|
k(" Cancel ")
|
|
@@ -431,11 +437,11 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
431
437
|
}, 16, ["onClick"]),
|
|
432
438
|
d(t(P), m({
|
|
433
439
|
ref_key: "apply",
|
|
434
|
-
ref:
|
|
440
|
+
ref: ye,
|
|
435
441
|
"data-testid": "mutli-apply",
|
|
436
442
|
size: "small",
|
|
437
443
|
class: "apply-button"
|
|
438
|
-
}, t(g)[t(p).ACTION_APPLY], { onClick: t(
|
|
444
|
+
}, t(g)[t(p).ACTION_APPLY], { onClick: t(se) }), {
|
|
439
445
|
default: c(() => [
|
|
440
446
|
k(" Apply ")
|
|
441
447
|
]),
|
|
@@ -443,7 +449,7 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
443
449
|
}, 16, ["onClick"])
|
|
444
450
|
])
|
|
445
451
|
])) : r("", !0),
|
|
446
|
-
n.$slots.footer ? (a(), s("div",
|
|
452
|
+
n.$slots.footer ? (a(), s("div", tt, [
|
|
447
453
|
u(n.$slots, "footer", {}, void 0, !0)
|
|
448
454
|
])) : r("", !0)
|
|
449
455
|
], 34)) : r("", !0)
|
|
@@ -468,8 +474,8 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
468
474
|
buttonTriggerProps: {
|
|
469
475
|
open: t(y),
|
|
470
476
|
disabled: e.disabled,
|
|
471
|
-
label: t(
|
|
472
|
-
onClick: () => t(
|
|
477
|
+
label: t(de) || e.placeholder,
|
|
478
|
+
onClick: () => t(C)(),
|
|
473
479
|
testId: e.testId
|
|
474
480
|
},
|
|
475
481
|
defaultTriggerProps: {
|
|
@@ -481,7 +487,7 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
481
487
|
testId: e.testId,
|
|
482
488
|
multi: e.multi,
|
|
483
489
|
disabled: e.disabled,
|
|
484
|
-
selectedOption: e.multi ? t(
|
|
490
|
+
selectedOption: e.multi ? t(O) : t(h),
|
|
485
491
|
displayValue: e.displayValue,
|
|
486
492
|
options: e.options,
|
|
487
493
|
optionNameKey: e.optionNameKey,
|
|
@@ -497,16 +503,16 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
497
503
|
statusDotType: e.statusType,
|
|
498
504
|
size: e.size,
|
|
499
505
|
showAllSelectedText: e.triggerShowAllSelectedText,
|
|
500
|
-
allSelected: t(
|
|
506
|
+
allSelected: t(A),
|
|
501
507
|
inlineError: e.inlineError,
|
|
502
508
|
inlineErrorText: e.inlineErrorText,
|
|
503
509
|
inlineErrorTextPlacement: e.inlineErrorTextPlacement,
|
|
504
|
-
onKeydown: t(
|
|
505
|
-
onClick:
|
|
510
|
+
onKeydown: t($),
|
|
511
|
+
onClick: q
|
|
506
512
|
}
|
|
507
513
|
}, () => [
|
|
508
|
-
t(
|
|
509
|
-
(a(), F(
|
|
514
|
+
t(Y) ? (a(), s("div", He, [
|
|
515
|
+
(a(), F(xe(t(Y)), {
|
|
510
516
|
placeholder: e.placeholder,
|
|
511
517
|
open: t(y),
|
|
512
518
|
label: e.triggerLabel,
|
|
@@ -515,7 +521,7 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
515
521
|
"test-id": e.testId,
|
|
516
522
|
multi: e.multi,
|
|
517
523
|
disabled: e.disabled,
|
|
518
|
-
"selected-option": e.multi ? t(
|
|
524
|
+
"selected-option": e.multi ? t(O) : t(h),
|
|
519
525
|
"display-value": e.displayValue,
|
|
520
526
|
options: e.options,
|
|
521
527
|
"option-name-key": e.optionNameKey,
|
|
@@ -531,32 +537,32 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
531
537
|
"status-dot-type": e.statusType,
|
|
532
538
|
size: e.size,
|
|
533
539
|
"show-all-selected-text": e.triggerShowAllSelectedText,
|
|
534
|
-
"all-selected": t(
|
|
540
|
+
"all-selected": t(A),
|
|
535
541
|
"inline-error": e.inlineError,
|
|
536
542
|
"inline-error-text": e.inlineErrorText,
|
|
537
543
|
"inline-error-text-placement": e.inlineErrorTextPlacement,
|
|
538
|
-
onKeydown: t(
|
|
539
|
-
onClick:
|
|
544
|
+
onKeydown: t($),
|
|
545
|
+
onClick: q,
|
|
540
546
|
onCopyToClipboard: i[0] || (i[0] = (l) => N("copyToClipboard"))
|
|
541
547
|
}, 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", "inline-error", "inline-error-text", "inline-error-text-placement", "onKeydown"]))
|
|
542
548
|
])) : r("", !0),
|
|
543
|
-
e.predefinedTrigger === t(w).ICON_BUTTON ? (a(), s("div",
|
|
544
|
-
d(t(
|
|
545
|
-
onClick: i[1] || (i[1] = (l) => t(
|
|
549
|
+
e.predefinedTrigger === t(w).ICON_BUTTON ? (a(), s("div", Ue, [
|
|
550
|
+
d(t(Le), {
|
|
551
|
+
onClick: i[1] || (i[1] = (l) => t(C)())
|
|
546
552
|
})
|
|
547
553
|
])) : r("", !0),
|
|
548
|
-
e.predefinedTrigger === t(w).CHIP ? (a(), s("div",
|
|
549
|
-
d(t(
|
|
554
|
+
e.predefinedTrigger === t(w).CHIP ? (a(), s("div", Ye, [
|
|
555
|
+
d(t(Be), {
|
|
550
556
|
open: t(y),
|
|
551
557
|
label: e.placeholder,
|
|
552
558
|
"test-id": e.testId,
|
|
553
559
|
options: e.options,
|
|
554
|
-
"selected-option": e.multi ? t(
|
|
560
|
+
"selected-option": e.multi ? t(O) : t(h),
|
|
555
561
|
"display-value": e.displayValue,
|
|
556
562
|
multi: e.multi,
|
|
557
|
-
"all-selected": t(
|
|
563
|
+
"all-selected": t(A),
|
|
558
564
|
"shown-values-count": e.triggerShownValuesCount,
|
|
559
|
-
onClick: i[2] || (i[2] = (l) => t(
|
|
565
|
+
onClick: i[2] || (i[2] = (l) => t(C)()),
|
|
560
566
|
onClear: i[3] || (i[3] = (l) => t(G)())
|
|
561
567
|
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi", "all-selected", "shown-values-count"])
|
|
562
568
|
])) : r("", !0)
|
|
@@ -566,7 +572,7 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
566
572
|
]),
|
|
567
573
|
_: 3
|
|
568
574
|
}, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
|
|
569
|
-
e.triggerFeedbackText ? (a(), F(
|
|
575
|
+
e.triggerFeedbackText ? (a(), F(Re, {
|
|
570
576
|
key: 0,
|
|
571
577
|
text: e.triggerFeedbackText,
|
|
572
578
|
variant: e.triggerFeedbackVariant,
|
|
@@ -575,9 +581,9 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
575
581
|
class: "dropdown-field-help-text"
|
|
576
582
|
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : r("", !0)
|
|
577
583
|
])
|
|
578
|
-
], 16,
|
|
584
|
+
], 16, We));
|
|
579
585
|
}
|
|
580
586
|
});
|
|
581
587
|
export {
|
|
582
|
-
|
|
588
|
+
Ot as default
|
|
583
589
|
};
|
|
@@ -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_7e70c643_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-7e70c643"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|