@ironsource/shared-ui 2.1.6-rc.4 → 2.1.6-rc.40
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_a9f0dfcc_lang.css +1 -0
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_858cefbf_lang.css +1 -0
- package/AppHeader.vue_vue_type_style_index_0_scoped_538ccdc6_lang.css +1 -0
- package/Autocomplete.vue_vue_type_style_index_0_scoped_a7bfd237_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_a8fdae89_lang.css +1 -0
- package/ChipV4.vue_vue_type_style_index_0_scoped_12c0f396_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_057abdf5_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +1 -0
- package/Dropdown.vue_vue_type_style_index_0_scoped_aaa8c4bb_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_7af4f288_lang.css +1 -0
- package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +1 -0
- package/FoldableSection.vue_vue_type_style_index_0_scoped_1a5f0e2e_lang.css +1 -0
- package/{FormCard.vue_vue_type_style_index_0_scoped_ef8b4e81_lang.css → FormCard.vue_vue_type_style_index_0_scoped_52ade67c_lang.css} +1 -1
- package/HelpIcon.vue_vue_type_style_index_0_scoped_06fce2e3_lang.css +1 -0
- package/IconV4.vue_vue_type_style_index_0_scoped_9d3c9cda_lang.css +1 -0
- package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_9db0f796_lang.css +1 -0
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_a6457440_lang.css +1 -0
- package/ToggleV4.vue_vue_type_style_index_0_scoped_a4aa32fb_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_142eab98_lang.css +1 -0
- package/components/alert/Alert.vue.d.ts +7 -0
- package/components/alert/Alert.vue.js +3 -3
- package/components/alert/Alert.vue2.js +44 -40
- package/components/alert/index.d.ts +27 -2
- package/components/appHeader/AppHeader.vue.d.ts +6 -2
- package/components/appHeader/AppHeader.vue.js +2 -2
- package/components/appHeader/AppHeader.vue2.js +30 -28
- package/components/appHeader/index.d.ts +6 -2
- package/components/autocomplete/Autocomplete.vue.d.ts +6 -0
- package/components/autocomplete/Autocomplete.vue.js +2 -2
- package/components/autocomplete/Autocomplete.vue2.js +45 -37
- package/components/autocomplete/index.d.ts +21 -1
- package/components/button/v4/ButtonV4.vue.d.ts +7 -7
- package/components/button/v4/IconButtonV4.vue.d.ts +4 -4
- package/components/button/v4/index.d.ts +61 -61
- package/components/chip/v4/Chip.types.d.ts +6 -0
- package/components/chip/v4/ChipV4.vue.d.ts +28 -35
- package/components/chip/v4/ChipV4.vue.js +3 -3
- package/components/chip/v4/ChipV4.vue2.js +28 -59
- package/components/chip/v4/index.d.ts +45 -148
- package/components/dialog/v3/Dialog.vue.d.ts +1 -1
- package/components/dialog/v3/index.d.ts +20 -20
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +67 -62
- package/components/dropdown/common/Dropdown.common.js +74 -69
- package/components/dropdown/common/Option.common.d.ts +1 -1
- package/components/dropdown/common/Option.common.js +9 -9
- package/components/dropdown/composables/useChildOptions.d.ts +7 -0
- package/components/dropdown/composables/useChildOptions.js +14 -0
- package/components/dropdown/v3/Dropdown.vue.d.ts +4 -0
- package/components/dropdown/v3/Dropdown.vue.js +4 -4
- package/components/dropdown/v3/Dropdown.vue2.js +32 -32
- package/components/dropdown/v3/index.d.ts +13 -1
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +16 -3
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +102 -61
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +8 -3
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +22 -21
- package/components/dropdown/v4/DropdownV4.vue.d.ts +35 -3
- package/components/dropdown/v4/DropdownV4.vue.js +2 -2
- package/components/dropdown/v4/DropdownV4.vue2.js +127 -114
- package/components/dropdown/v4/OptionV4.vue.d.ts +14 -3
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +79 -56
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +112 -0
- package/components/dropdown/v4/TreeDropdown.vue.js +7 -0
- package/components/dropdown/v4/TreeDropdown.vue2.js +122 -0
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +1 -1
- package/components/dropdown/v4/index.d.ts +422 -38
- package/components/dropdown/v4/index.js +7 -4
- package/components/emptyState/v3/EmptyState.vue.d.ts +2 -2
- package/components/emptyState/v3/index.d.ts +47 -47
- package/components/emptyState/v4/EmptyStateV4.vue.d.ts +3 -3
- package/components/emptyState/v4/index.d.ts +7 -7
- package/components/forms/FormCard.vue.js +2 -2
- package/components/forms/FormCard.vue2.js +9 -9
- package/components/icon/v4/Icon.types.d.ts +1 -1
- package/components/icon/v4/IconV4.vue.d.ts +16 -6
- package/components/icon/v4/IconV4.vue.js +4 -4
- package/components/icon/v4/IconV4.vue2.js +36 -33
- package/components/icon/v4/index.d.ts +53 -15
- package/components/inlineCopy/InlineCopy.vue.d.ts +6 -2
- package/components/inlineCopy/InlineCopy.vue.js +3 -3
- package/components/inlineCopy/InlineCopy.vue2.js +23 -22
- package/components/inlineCopy/index.d.ts +6 -2
- package/components/input/v4/TextField.vue.d.ts +5 -0
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +24 -21
- package/components/input/v4/index.d.ts +20 -1
- package/components/layout/FoldableSection.vue.js +5 -5
- package/components/layout/FoldableSection.vue2.js +1 -1
- package/components/multibar/MultiBarMenu.vue2.js +12 -11
- package/components/shared/FieldLabel.vue.js +3 -3
- package/components/shared/FieldLabel.vue2.js +9 -9
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +20 -20
- package/components/table/common/Table.common.d.ts +1 -0
- package/components/table/common/Table.common.js +65 -61
- package/components/table/v4/DataGrid.vue.d.ts +9 -1
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +180 -176
- package/components/table/v4/DataGridMenu.vue2.js +3 -2
- package/components/table/v4/HelpIcon.vue.js +5 -5
- package/components/table/v4/HelpIcon.vue2.js +5 -5
- package/components/table/v4/index.d.ts +29 -5
- package/components/textArea/v4/TextAreaV4.vue.js +3 -3
- package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
- package/components/toggle/v4/ToggleV4.vue.d.ts +1 -1
- package/components/toggle/v4/ToggleV4.vue.js +3 -3
- package/components/toggle/v4/ToggleV4.vue2.js +12 -12
- package/components/toggle/v4/index.d.ts +20 -20
- package/components/tooltip/v4/TooltipV4.vue.d.ts +6 -2
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +21 -19
- package/components/tooltip/v4/index.d.ts +17 -5
- package/composables/useFormValidation.js +19 -13
- package/design-foundation.stories/icons/iconsData.d.ts +5 -1
- package/index.d.ts +1451 -688
- package/mocks/apps.d.ts +1 -0
- package/mocks/options.d.ts +12 -0
- package/package.json +1 -1
- package/utils/text.d.ts +1 -0
- package/utils/text.js +9 -0
- package/Alert.vue_vue_type_style_index_0_scoped_d6680a72_lang.css +0 -1
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_0267d003_lang.css +0 -1
- package/AppHeader.vue_vue_type_style_index_0_scoped_c148fc7a_lang.css +0 -1
- package/Autocomplete.vue_vue_type_style_index_0_scoped_62faa8e0_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_889042cf_lang.css +0 -1
- package/ChipV4.vue_vue_type_style_index_0_scoped_78d7c9c0_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_c96fba2c_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c9783327_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_c3004ba3_lang.css +0 -1
- package/Dropdown.vue_vue_type_style_index_0_scoped_d4f8e790_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_0968078f_lang.css +0 -1
- package/FieldLabel.vue_vue_type_style_index_0_scoped_72ab1f25_lang.css +0 -1
- package/FoldableSection.vue_vue_type_style_index_0_scoped_8d0fd203_lang.css +0 -1
- package/HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css +0 -1
- package/IconV4.vue_vue_type_style_index_0_scoped_a78f8a3e_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_ff9f4a0f_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_b8375219_lang.css +0 -1
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_8199b662_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_07687bcc_lang.css +0 -1
- package/ToggleV4.vue_vue_type_style_index_0_scoped_ad231e8c_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_25809092_lang.css +0 -1
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
2
|
-
import
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_7af4f288_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as se, computed as x, openBlock as i, createElementBlock as n, mergeProps as u, unref as e, renderSlot as v, createElementVNode as p, createVNode as a, withCtx as c, Transition as ue, normalizeClass as A, normalizeStyle as ce, isRef as fe, createCommentVNode as r, createTextVNode as g, toDisplayString as ye, withModifiers as $, Fragment as pe, renderList as me, toRaw as h, createBlock as H, resolveDynamicComponent as ge } from "vue";
|
|
2
|
+
import O 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
|
|
5
|
+
import Te from "./DefaultDropdownTrigger.vue.js";
|
|
6
|
+
import ke from "./IconButtonDropdownTrigger.vue.js";
|
|
7
|
+
import be from "./ChipDropdownTrigger.vue.js";
|
|
8
8
|
import he from "./AppDropdownTrigger.vue.js";
|
|
9
9
|
import "./ButtonDropdownTrigger.vue.js";
|
|
10
10
|
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
11
|
+
import "./TreeDropdown.vue.js";
|
|
12
|
+
import U from "./OptionV4.vue.js";
|
|
13
|
+
import we from "../../search/v4/SearchV4.vue.js";
|
|
14
|
+
import W from "../../typography/v4/Typography.vue.js";
|
|
15
|
+
import { Dropdown as Ie } from "floating-vue";
|
|
15
16
|
import { DropdownTestIdModifiers as f } from "../../../testids/index.js";
|
|
16
|
-
import { dropdownCommon as
|
|
17
|
+
import { dropdownCommon as ve } from "../common/Dropdown.common.js";
|
|
17
18
|
import Ce from "../../loader/v4/Loader.vue.js";
|
|
18
19
|
import { useTestIdAttrs as Se } from "../../../utils/testIds.js";
|
|
19
|
-
import { TRIGGERS as
|
|
20
|
+
import { TRIGGERS as m } from "./Dropdown.types.js";
|
|
20
21
|
import { useElementSize as Ae } from "@vueuse/core";
|
|
21
|
-
import
|
|
22
|
-
const
|
|
22
|
+
import Oe from "../../shared/FieldHelpText.vue.js";
|
|
23
|
+
const Le = ["tabindex"], Ee = { style: { width: "100%" } }, Be = { key: 0 }, Ke = { key: 1 }, Ne = { key: 2 }, De = {
|
|
23
24
|
key: 0,
|
|
24
25
|
class: "inline-search-wrapper"
|
|
25
26
|
}, Pe = {
|
|
@@ -28,10 +29,10 @@ const Oe = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, De
|
|
|
28
29
|
}, Re = {
|
|
29
30
|
key: 1,
|
|
30
31
|
class: "loader"
|
|
31
|
-
}, Fe = { key: 2 },
|
|
32
|
+
}, Fe = { key: 2 }, Ve = ["aria-selected", "aria-disabled", "onClick"], ze = {
|
|
32
33
|
key: 1,
|
|
33
34
|
class: "actions-wrapper"
|
|
34
|
-
}, xe = { class: "actions-clear-all" }, $e = { class: "actions-apply-cancel" },
|
|
35
|
+
}, xe = { class: "actions-clear-all" }, $e = { class: "actions-apply-cancel" }, ut = /* @__PURE__ */ se({
|
|
35
36
|
__name: "DropdownV4",
|
|
36
37
|
props: {
|
|
37
38
|
modelValue: { default: null },
|
|
@@ -60,9 +61,10 @@ const Oe = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, De
|
|
|
60
61
|
triggerFeedbackText: { default: "" },
|
|
61
62
|
triggerFeedbackVariant: { default: null },
|
|
62
63
|
triggerFeedbackShowIcon: { type: Boolean, default: !1 },
|
|
64
|
+
triggerShowAllSelectedText: { type: Boolean, default: !0 },
|
|
63
65
|
size: { default: "medium" },
|
|
64
66
|
mandatory: { type: Boolean, default: !1 },
|
|
65
|
-
predefinedTrigger: { default:
|
|
67
|
+
predefinedTrigger: { default: m.DEFAULT },
|
|
66
68
|
inlineSearch: { type: Boolean, default: !1 },
|
|
67
69
|
inlineSearchPlaceholder: { default: "Search" },
|
|
68
70
|
onSearch: { type: Function, default: null },
|
|
@@ -74,16 +76,20 @@ const Oe = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, De
|
|
|
74
76
|
optionIconKey: { default: "" },
|
|
75
77
|
optionImageKey: { default: "" },
|
|
76
78
|
optionIconType: { default: null },
|
|
79
|
+
optionEndIconKey: { default: "" },
|
|
80
|
+
optionEndIconType: { default: null },
|
|
77
81
|
valueToCopy: { default: null },
|
|
78
82
|
disabledOptionKey: { default: "disabled" },
|
|
79
83
|
theme: { default: "light-theme-v4" },
|
|
80
84
|
fullWidth: { type: Boolean, default: !0 },
|
|
81
85
|
optionsListWidth: { default: null },
|
|
82
|
-
statusType: { default: null }
|
|
86
|
+
statusType: { default: null },
|
|
87
|
+
disableVirtualScroll: { type: Boolean, default: !1 },
|
|
88
|
+
overrideOptionCountCalculation: { type: Function, default: null }
|
|
83
89
|
},
|
|
84
|
-
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply"],
|
|
85
|
-
setup(t, { expose:
|
|
86
|
-
const d = t,
|
|
90
|
+
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard"],
|
|
91
|
+
setup(t, { expose: M, emit: L }) {
|
|
92
|
+
const d = t, E = {
|
|
87
93
|
MULTILINE_LIST_HEIGHT: 48,
|
|
88
94
|
LIST_HEIGHT: 32 + 4,
|
|
89
95
|
MAX_NUMBER_OF_OPTIONS: 7.5,
|
|
@@ -91,53 +97,53 @@ const Oe = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, De
|
|
|
91
97
|
DROPLIST_MIN_WIDTH: 240,
|
|
92
98
|
VERSION: 4
|
|
93
99
|
}, {
|
|
94
|
-
onKeydown:
|
|
100
|
+
onKeydown: T,
|
|
95
101
|
open: s,
|
|
96
|
-
toggleMenu:
|
|
102
|
+
toggleMenu: w,
|
|
97
103
|
onButtonKeydown: G,
|
|
98
104
|
query: C,
|
|
99
105
|
containerProps: X,
|
|
100
106
|
calculateTableHeight: q,
|
|
101
107
|
wrapperProps: Y,
|
|
102
108
|
filteredOptions: j,
|
|
103
|
-
allSelected:
|
|
109
|
+
allSelected: B,
|
|
104
110
|
isIndeterminate: J,
|
|
105
111
|
onSelectAll: Q,
|
|
106
|
-
virtualOptions:
|
|
112
|
+
virtualOptions: K,
|
|
107
113
|
isSelected: S,
|
|
108
|
-
selectedOption:
|
|
114
|
+
selectedOption: k,
|
|
109
115
|
selectedOptionPrevious: N,
|
|
110
116
|
selectedValue: Z,
|
|
111
117
|
onSelect: D,
|
|
112
|
-
activeIndex:
|
|
118
|
+
activeIndex: P,
|
|
113
119
|
onCancel: _,
|
|
114
120
|
onApply: ee,
|
|
115
121
|
scrollTo: te,
|
|
116
122
|
listRef: le,
|
|
117
|
-
buttonRef:
|
|
118
|
-
apply:
|
|
119
|
-
cancel:
|
|
123
|
+
buttonRef: R,
|
|
124
|
+
apply: oe,
|
|
125
|
+
cancel: ie,
|
|
120
126
|
el: ne,
|
|
121
|
-
onClearAllSelections:
|
|
127
|
+
onClearAllSelections: F,
|
|
122
128
|
clearAll: ae
|
|
123
|
-
} =
|
|
124
|
-
|
|
129
|
+
} = ve(d, L, E), y = Se(d.testId, f), V = x(() => !d.predefinedTrigger || d.predefinedTrigger === m.DEFAULT ? Te : d.predefinedTrigger === m.APP ? he : null), { width: z } = Ae(R), de = x(() => d.optionsListWidth ? d.optionsListWidth : !d.predefinedTrigger || d.predefinedTrigger === m.DEFAULT || d.predefinedTrigger === m.APP ? z.value - 2 > 240 ? `${z.value - 2}px` : `${E.DROPLIST_MIN_WIDTH}px` : "auto"), re = () => {
|
|
130
|
+
w();
|
|
125
131
|
};
|
|
126
|
-
return
|
|
132
|
+
return M({
|
|
127
133
|
selectItem: D,
|
|
128
134
|
scrollTo: te
|
|
129
|
-
}), (
|
|
135
|
+
}), (I, o) => (i(), n("div", u({
|
|
130
136
|
ref_key: "el",
|
|
131
137
|
ref: ne,
|
|
132
138
|
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": t.disabled, "full-width": t.fullWidth }]],
|
|
133
139
|
tabindex: t.disabled ? -1 : 0
|
|
134
|
-
}, e(
|
|
135
|
-
onKeydown:
|
|
136
|
-
(...l) => e(
|
|
140
|
+
}, e(y)[e(f).WRAPPER], {
|
|
141
|
+
onKeydown: o[8] || (o[8] = //@ts-ignore
|
|
142
|
+
(...l) => e(T) && e(T)(...l))
|
|
137
143
|
}), [
|
|
138
|
-
I
|
|
139
|
-
|
|
140
|
-
a(e(
|
|
144
|
+
v(I.$slots, "label", {}, void 0, !0),
|
|
145
|
+
p("div", Ee, [
|
|
146
|
+
a(e(Ie), u({
|
|
141
147
|
theme: t.theme,
|
|
142
148
|
"popper-class": [
|
|
143
149
|
t.popperClass,
|
|
@@ -154,31 +160,31 @@ const Oe = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, De
|
|
|
154
160
|
"auto-hide": !1,
|
|
155
161
|
container: t.container,
|
|
156
162
|
"auto-size": t.autoSize
|
|
157
|
-
}, e(
|
|
163
|
+
}, e(y)[e(f).TRIGGER]), {
|
|
158
164
|
popper: c(() => [
|
|
159
165
|
a(ue, null, {
|
|
160
166
|
default: c(() => [
|
|
161
|
-
e(s) ? (
|
|
167
|
+
e(s) ? (i(), n("div", {
|
|
162
168
|
key: 0,
|
|
163
169
|
ref_key: "listRef",
|
|
164
170
|
ref: le,
|
|
165
|
-
class:
|
|
171
|
+
class: A(["light-theme-v4", {
|
|
166
172
|
"dropdown--disabled": t.disabled,
|
|
167
173
|
"inline-search": t.inlineSearch
|
|
168
174
|
}]),
|
|
169
175
|
style: ce({ width: e(de) })
|
|
170
176
|
}, [
|
|
171
|
-
e(s) ? (
|
|
177
|
+
e(s) ? (i(), n("div", {
|
|
172
178
|
key: 0,
|
|
173
|
-
class: "dropdown-list-wrapper",
|
|
174
|
-
onKeydown:
|
|
175
|
-
(...l) => e(
|
|
179
|
+
class: A(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi": t.multi }]),
|
|
180
|
+
onKeydown: o[7] || (o[7] = //@ts-ignore
|
|
181
|
+
(...l) => e(T) && e(T)(...l))
|
|
176
182
|
}, [
|
|
177
|
-
e(s) && t.inlineSearch ? (
|
|
178
|
-
a(e(
|
|
183
|
+
e(s) && t.inlineSearch ? (i(), n("div", De, [
|
|
184
|
+
a(e(we), {
|
|
179
185
|
modelValue: e(C),
|
|
180
186
|
"onUpdate:modelValue": [
|
|
181
|
-
|
|
187
|
+
o[4] || (o[4] = (l) => fe(C) ? C.value = l : null),
|
|
182
188
|
t.onClear
|
|
183
189
|
],
|
|
184
190
|
placeholder: t.inlineSearchPlaceholder,
|
|
@@ -186,50 +192,50 @@ const Oe = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, De
|
|
|
186
192
|
size: "md",
|
|
187
193
|
"auto-focus": t.searchAutoFocus,
|
|
188
194
|
"test-id": t.testId,
|
|
189
|
-
onKeydown: e(
|
|
195
|
+
onKeydown: e(T)
|
|
190
196
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
|
|
191
197
|
])) : r("", !0),
|
|
192
|
-
I
|
|
193
|
-
|
|
198
|
+
v(I.$slots, "input-list", { open: e(s) }, void 0, !0),
|
|
199
|
+
p("div", u({
|
|
194
200
|
class: ["list-container", { "list-container--multi": t.multi }],
|
|
195
201
|
style: { height: `${e(q)}rem` }
|
|
196
202
|
}, {
|
|
197
203
|
...e(X),
|
|
198
|
-
...e(
|
|
204
|
+
...e(y)[e(f).LIST_CONTAINER]
|
|
199
205
|
}), [
|
|
200
|
-
|
|
206
|
+
p("ul", u(e(Y), {
|
|
201
207
|
role: "listbox",
|
|
202
208
|
class: ["list", { "list--multi": t.multi }]
|
|
203
209
|
}), [
|
|
204
|
-
!e(j).length && !t.loading ? (
|
|
205
|
-
a(e(
|
|
210
|
+
!e(j).length && !t.loading ? (i(), n("li", Pe, [
|
|
211
|
+
a(e(W), u({ variant: "body2" }, e(y)[e(f).NO_RESULT]), {
|
|
206
212
|
default: c(() => [
|
|
207
|
-
g(
|
|
213
|
+
g(ye(t.noResultsText), 1)
|
|
208
214
|
]),
|
|
209
215
|
_: 1
|
|
210
216
|
}, 16)
|
|
211
217
|
])) : r("", !0),
|
|
212
|
-
t.loading ? (
|
|
218
|
+
t.loading ? (i(), n("li", Re, [
|
|
213
219
|
a(e(Ce)),
|
|
214
|
-
a(e(
|
|
220
|
+
a(e(W), null, {
|
|
215
221
|
default: c(() => [
|
|
216
222
|
g("Loading...")
|
|
217
223
|
]),
|
|
218
224
|
_: 1
|
|
219
225
|
})
|
|
220
226
|
])) : r("", !0),
|
|
221
|
-
t.showSelectAll !== !1 && t.multi ? (
|
|
222
|
-
a(e(
|
|
227
|
+
t.showSelectAll !== !1 && t.multi ? (i(), n("li", Fe, [
|
|
228
|
+
a(e(U), u(
|
|
223
229
|
{
|
|
224
|
-
"aria-selected": e(
|
|
230
|
+
"aria-selected": e(B),
|
|
225
231
|
"aria-disabled": !!t.disabled,
|
|
226
|
-
"selected-prop": e(
|
|
232
|
+
"selected-prop": e(B),
|
|
227
233
|
"is-indeterminate": e(J),
|
|
228
234
|
"select-all-option": ""
|
|
229
235
|
},
|
|
230
|
-
e(
|
|
236
|
+
e(y)[e(f).SELECT_ALL],
|
|
231
237
|
{
|
|
232
|
-
onClick:
|
|
238
|
+
onClick: o[5] || (o[5] = $((l) => e(Q)(), ["stop"]))
|
|
233
239
|
}
|
|
234
240
|
), {
|
|
235
241
|
default: c(() => [
|
|
@@ -238,35 +244,38 @@ const Oe = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, De
|
|
|
238
244
|
_: 1
|
|
239
245
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
|
|
240
246
|
])) : r("", !0),
|
|
241
|
-
e(
|
|
242
|
-
key:
|
|
243
|
-
"aria-selected": e(S)(
|
|
247
|
+
e(K).length && !t.loading ? (i(!0), n(pe, { key: 3 }, me(e(K), ({ data: l, index: b }) => (i(), n("li", {
|
|
248
|
+
key: b,
|
|
249
|
+
"aria-selected": e(S)(h(e(k)), l),
|
|
244
250
|
"aria-disabled": !!t.disabled,
|
|
245
|
-
onClick:
|
|
251
|
+
onClick: $(() => e(D)(l, b), ["stop"])
|
|
246
252
|
}, [
|
|
247
|
-
I
|
|
253
|
+
v(I.$slots, "default", {
|
|
248
254
|
option: l,
|
|
249
|
-
|
|
250
|
-
|
|
255
|
+
index: b,
|
|
256
|
+
selected: e(S)(h(e(k)), l),
|
|
257
|
+
active: h(e(P)) === b,
|
|
251
258
|
disabled: l[d.disabledOptionKey]
|
|
252
259
|
}, () => [
|
|
253
|
-
a(e(
|
|
260
|
+
a(e(U), {
|
|
254
261
|
option: l,
|
|
255
|
-
selected: e(S)(
|
|
256
|
-
active:
|
|
262
|
+
"selected-prop": e(S)(h(e(k)), l),
|
|
263
|
+
active: h(e(P)) === b,
|
|
257
264
|
disabled: l[d.disabledOptionKey],
|
|
258
265
|
"name-key": t.optionNameKey,
|
|
259
266
|
"image-key": t.optionImageKey,
|
|
260
267
|
"icon-key": t.optionIconKey,
|
|
261
|
-
"icon-type": t.optionIconType
|
|
262
|
-
|
|
268
|
+
"icon-type": t.optionIconType,
|
|
269
|
+
"end-icon-key": t.optionEndIconKey,
|
|
270
|
+
"end-icon-type": t.optionEndIconType
|
|
271
|
+
}, null, 8, ["option", "selected-prop", "active", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type"])
|
|
263
272
|
], !0)
|
|
264
|
-
], 8,
|
|
273
|
+
], 8, Ve))), 128)) : r("", !0)
|
|
265
274
|
], 16)
|
|
266
275
|
], 16),
|
|
267
|
-
t.multi ? (
|
|
268
|
-
|
|
269
|
-
a(e(
|
|
276
|
+
t.multi ? (i(), n("div", ze, [
|
|
277
|
+
p("div", xe, [
|
|
278
|
+
a(e(O), u(
|
|
270
279
|
{
|
|
271
280
|
ref_key: "clearAll",
|
|
272
281
|
ref: ae,
|
|
@@ -274,9 +283,9 @@ const Oe = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, De
|
|
|
274
283
|
variant: "text",
|
|
275
284
|
color: "primary"
|
|
276
285
|
},
|
|
277
|
-
e(
|
|
286
|
+
e(y)[e(f).ACTION_CLEAR_ALL],
|
|
278
287
|
{
|
|
279
|
-
onClick:
|
|
288
|
+
onClick: o[6] || (o[6] = () => e(F)(!1))
|
|
280
289
|
}
|
|
281
290
|
), {
|
|
282
291
|
default: c(() => [
|
|
@@ -285,16 +294,16 @@ const Oe = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, De
|
|
|
285
294
|
_: 1
|
|
286
295
|
}, 16)
|
|
287
296
|
]),
|
|
288
|
-
|
|
289
|
-
a(e(
|
|
297
|
+
p("div", $e, [
|
|
298
|
+
a(e(O), u(
|
|
290
299
|
{
|
|
291
300
|
ref_key: "cancel",
|
|
292
|
-
ref:
|
|
301
|
+
ref: ie,
|
|
293
302
|
size: "small",
|
|
294
303
|
variant: "outlined",
|
|
295
304
|
color: "primary"
|
|
296
305
|
},
|
|
297
|
-
e(
|
|
306
|
+
e(y)[e(f).ACTION_CANCEL],
|
|
298
307
|
{ onClick: e(_) }
|
|
299
308
|
), {
|
|
300
309
|
default: c(() => [
|
|
@@ -302,13 +311,13 @@ const Oe = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, De
|
|
|
302
311
|
]),
|
|
303
312
|
_: 1
|
|
304
313
|
}, 16, ["onClick"]),
|
|
305
|
-
a(e(
|
|
314
|
+
a(e(O), u({
|
|
306
315
|
ref_key: "apply",
|
|
307
|
-
ref:
|
|
316
|
+
ref: oe,
|
|
308
317
|
"data-testid": "mutli-apply",
|
|
309
318
|
size: "small",
|
|
310
319
|
class: "apply-button"
|
|
311
|
-
}, e(
|
|
320
|
+
}, e(y)[e(f).ACTION_APPLY], { onClick: e(ee) }), {
|
|
312
321
|
default: c(() => [
|
|
313
322
|
g("Apply ")
|
|
314
323
|
]),
|
|
@@ -316,34 +325,34 @@ const Oe = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, De
|
|
|
316
325
|
}, 16, ["onClick"])
|
|
317
326
|
])
|
|
318
327
|
])) : r("", !0)
|
|
319
|
-
],
|
|
328
|
+
], 34)) : r("", !0)
|
|
320
329
|
], 6)) : r("", !0)
|
|
321
330
|
]),
|
|
322
331
|
_: 3
|
|
323
332
|
})
|
|
324
333
|
]),
|
|
325
334
|
default: c(() => [
|
|
326
|
-
|
|
327
|
-
class:
|
|
335
|
+
p("div", {
|
|
336
|
+
class: A(["button__container", {
|
|
328
337
|
"button__container--open": !!e(s),
|
|
329
338
|
[`button__container--${t.size}`]: !0,
|
|
330
339
|
"button__container--disabled": t.disabled
|
|
331
340
|
}])
|
|
332
341
|
}, [
|
|
333
|
-
I
|
|
342
|
+
v(I.$slots, "dropdown-trigger", {
|
|
334
343
|
buttonTriggerProps: {
|
|
335
344
|
open: e(s),
|
|
336
345
|
disabled: t.disabled,
|
|
337
346
|
label: e(Z) || t.placeholder,
|
|
338
|
-
onClick: () => e(
|
|
347
|
+
onClick: () => e(w)()
|
|
339
348
|
}
|
|
340
349
|
}, () => [
|
|
341
|
-
|
|
350
|
+
p("div", {
|
|
342
351
|
ref_key: "buttonRef",
|
|
343
|
-
ref:
|
|
352
|
+
ref: R
|
|
344
353
|
}, [
|
|
345
|
-
e(
|
|
346
|
-
(
|
|
354
|
+
e(V) ? (i(), n("div", Be, [
|
|
355
|
+
(i(), H(ge(e(V)), {
|
|
347
356
|
placeholder: t.placeholder,
|
|
348
357
|
open: e(s),
|
|
349
358
|
label: t.triggerLabel,
|
|
@@ -352,37 +361,41 @@ const Oe = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, De
|
|
|
352
361
|
"test-id": t.testId,
|
|
353
362
|
multi: t.multi,
|
|
354
363
|
disabled: t.disabled,
|
|
355
|
-
"selected-option": t.multi ? e(N) : e(
|
|
364
|
+
"selected-option": t.multi ? e(N) : e(k),
|
|
356
365
|
"display-value": t.displayValue,
|
|
357
366
|
options: t.options,
|
|
358
367
|
"option-name-key": t.optionNameKey,
|
|
359
368
|
"option-image-key": t.optionImageKey,
|
|
360
369
|
"option-icon-key": t.optionIconKey,
|
|
361
370
|
"option-icon-type": t.optionIconType,
|
|
371
|
+
"option-end-icon-key": t.optionEndIconKey,
|
|
372
|
+
"option-end-icon-type": t.optionEndIconType,
|
|
362
373
|
"feedback-variant": t.triggerFeedbackVariant,
|
|
363
374
|
"value-to-copy": t.valueToCopy,
|
|
364
375
|
"status-dot-type": t.statusType,
|
|
365
376
|
size: t.size,
|
|
377
|
+
"show-all-selected-text": t.triggerShowAllSelectedText,
|
|
366
378
|
onKeydown: e(G),
|
|
367
|
-
onClick: re
|
|
368
|
-
|
|
379
|
+
onClick: re,
|
|
380
|
+
onCopyToClipboard: o[0] || (o[0] = (l) => L("copyToClipboard"))
|
|
381
|
+
}, 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"]))
|
|
369
382
|
])) : r("", !0),
|
|
370
|
-
t.predefinedTrigger === e(
|
|
371
|
-
a(e(
|
|
372
|
-
onClick:
|
|
383
|
+
t.predefinedTrigger === e(m).ICON_BUTTON ? (i(), n("div", Ke, [
|
|
384
|
+
a(e(ke), {
|
|
385
|
+
onClick: o[1] || (o[1] = (l) => e(w)())
|
|
373
386
|
})
|
|
374
387
|
])) : r("", !0),
|
|
375
|
-
t.predefinedTrigger === e(
|
|
376
|
-
a(e(
|
|
388
|
+
t.predefinedTrigger === e(m).CHIP ? (i(), n("div", Ne, [
|
|
389
|
+
a(e(be), {
|
|
377
390
|
open: e(s),
|
|
378
391
|
label: t.placeholder,
|
|
379
392
|
"test-id": t.testId,
|
|
380
393
|
options: t.options,
|
|
381
|
-
"selected-option": t.multi ? e(N) : e(
|
|
394
|
+
"selected-option": t.multi ? e(N) : e(k),
|
|
382
395
|
"display-value": t.displayValue,
|
|
383
396
|
multi: t.multi,
|
|
384
|
-
onClick:
|
|
385
|
-
onClear:
|
|
397
|
+
onClick: o[2] || (o[2] = (l) => e(w)()),
|
|
398
|
+
onClear: o[3] || (o[3] = (l) => e(F)())
|
|
386
399
|
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi"])
|
|
387
400
|
])) : r("", !0)
|
|
388
401
|
], 512)
|
|
@@ -391,7 +404,7 @@ const Oe = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, De
|
|
|
391
404
|
]),
|
|
392
405
|
_: 3
|
|
393
406
|
}, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
|
|
394
|
-
t.triggerFeedbackText ? (
|
|
407
|
+
t.triggerFeedbackText ? (i(), H(Oe, {
|
|
395
408
|
key: 0,
|
|
396
409
|
text: t.triggerFeedbackText,
|
|
397
410
|
variant: t.triggerFeedbackVariant,
|
|
@@ -400,9 +413,9 @@ const Oe = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, De
|
|
|
400
413
|
class: "dropdown-field-help-text"
|
|
401
414
|
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : r("", !0)
|
|
402
415
|
])
|
|
403
|
-
], 16,
|
|
416
|
+
], 16, Le));
|
|
404
417
|
}
|
|
405
418
|
});
|
|
406
419
|
export {
|
|
407
|
-
|
|
420
|
+
ut as default
|
|
408
421
|
};
|
|
@@ -9,7 +9,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
9
9
|
nameKey?: string;
|
|
10
10
|
imageKey?: string;
|
|
11
11
|
iconKey?: string;
|
|
12
|
-
iconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
12
|
+
iconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
13
|
+
endIconKey?: string;
|
|
14
|
+
endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
13
15
|
toolTipPlacement?: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
14
16
|
}>, {
|
|
15
17
|
subtitle: string;
|
|
@@ -22,6 +24,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
22
24
|
imageKey: any;
|
|
23
25
|
iconKey: any;
|
|
24
26
|
iconType: string;
|
|
27
|
+
endIconKey: any;
|
|
28
|
+
endIconType: string;
|
|
25
29
|
toolTipPlacement: string;
|
|
26
30
|
}>, {}, 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<{
|
|
27
31
|
option?: unknown;
|
|
@@ -34,7 +38,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
34
38
|
nameKey?: string;
|
|
35
39
|
imageKey?: string;
|
|
36
40
|
iconKey?: string;
|
|
37
|
-
iconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
41
|
+
iconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
42
|
+
endIconKey?: string;
|
|
43
|
+
endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
38
44
|
toolTipPlacement?: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
39
45
|
}>, {
|
|
40
46
|
subtitle: string;
|
|
@@ -47,23 +53,28 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
47
53
|
imageKey: any;
|
|
48
54
|
iconKey: any;
|
|
49
55
|
iconType: string;
|
|
56
|
+
endIconKey: any;
|
|
57
|
+
endIconType: string;
|
|
50
58
|
toolTipPlacement: string;
|
|
51
59
|
}>>>, {
|
|
52
60
|
option: any;
|
|
53
61
|
disabled: boolean;
|
|
54
62
|
active: boolean;
|
|
63
|
+
endIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
55
64
|
isIndeterminate: boolean;
|
|
56
65
|
subtitle: string;
|
|
57
66
|
selectAllOption: boolean;
|
|
58
67
|
nameKey: string;
|
|
59
68
|
imageKey: string;
|
|
60
69
|
iconKey: string;
|
|
61
|
-
iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
70
|
+
iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
71
|
+
endIconKey: string;
|
|
62
72
|
toolTipPlacement: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
63
73
|
}>, {
|
|
64
74
|
image?(_: {}): any;
|
|
65
75
|
"icon-start"?(_: {}): any;
|
|
66
76
|
default?(_: {}): any;
|
|
77
|
+
"icon-end"?(_: {}): any;
|
|
67
78
|
}>;
|
|
68
79
|
export default _default;
|
|
69
80
|
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 _ 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_9db0f796_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-9db0f796"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|