@ironsource/shared-ui 1.4.3 → 2.0.0-rc.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/AddFilterButton.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/AppTrigger.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/AutocompleteDropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/AutocompleteInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Banner.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Button.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/ButtonBase.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_true_lang.css +1 -0
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Chip.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/ChipV4.vue_vue_type_style_index_0_scoped_true_lang.css +1 -0
- package/DateRange.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Dialog.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Dropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Dropdown.vue_vue_type_style_index_1_lang.css +1 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_true_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -0
- package/Editable.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/EmptyState.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/FilterDropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/FilterSearchInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/FloatingToolbar.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/GroupOption.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/IconButton.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/IncludeExcludeAppTrigger.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/IncludeExcludeChipFilter.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/IncludeExcludeOptionDraggable.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Input.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Label.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Menu.vue_vue_type_style_index_1_lang.css +1 -1
- package/MenuItem.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Option.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Popover.vue_vue_type_style_index_0_lang.css +1 -1
- package/README.md +1 -1
- package/ScrollButton.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Search.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/SearchInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/SearchV4.vue_vue_type_style_index_0_scoped_true_lang.css +1 -0
- package/Snackbar.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Switch.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/SwitchV4.vue_vue_type_style_index_0_scoped_true_lang.css +1 -0
- package/Table.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Table.vue_vue_type_style_index_1_lang.css +1 -1
- package/Tabs.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/TextArea.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Toggle.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Typography.vue_vue_type_style_index_0_scoped_true_lang.css +1 -0
- package/commonCssVariables.scss +623 -0
- package/components/ThemeWrapper/ThemeStrore.d.ts +4 -0
- package/components/ThemeWrapper/ThemeWrapper.vue.d.ts +15 -0
- package/components/appTrigger/AppTrigger.vue.js +4 -4
- package/components/autocompleteDropdown/AutocompleteDropdown.vue.js +4 -3
- package/components/autocompleteDropdown/AutocompleteInput.vue.js +2 -2
- package/components/autocompleteDropdown/GroupOption.vue.js +2 -2
- package/components/button/common/ButtonBase.vue.d.ts +48 -0
- package/components/button/{ButtonBase.vue.js → common/ButtonBase.vue.js} +7 -7
- package/components/button/{Button.vue.d.ts → common/ButtonSuper.vue.d.ts} +3 -3
- package/components/button/{ButtonBase.vue.d.ts → v3/Button.vue.d.ts} +20 -4
- package/components/button/v3/Button.vue.js +102 -0
- package/components/button/{IconButton.vue.js → v3/IconButton.vue.js} +7 -7
- package/components/button/{ScrollButton.vue.js → v3/ScrollButton.vue.js} +6 -6
- package/components/button/v3/index.d.ts +79 -0
- package/components/button/v4/ButtonV4.vue.d.ts +57 -0
- package/components/button/v4/ButtonV4.vue.js +99 -0
- package/components/button/{index.d.ts → v4/index.d.ts} +33 -76
- package/components/button/v4/index.vue.js +6 -0
- package/components/checkbox/Checkbox.vue.d.ts +1 -1
- package/components/checkbox/index.d.ts +9 -9
- package/components/chip/{Chip.vue.js → v3/Chip.vue.js} +5 -5
- package/components/chip/v4/ChipV4.vue.d.ts +48 -0
- package/components/chip/v4/ChipV4.vue.js +76 -0
- package/components/chip/v4/index.d.ts +63 -0
- package/components/chip/v4/index.vue.js +6 -0
- package/components/dateRange/CalendarMonth.vue.js +3 -3
- package/components/dateRange/DateRange.vue.js +4 -4
- package/components/dialog/Dialog.vue.d.ts +1 -1
- package/components/dialog/Dialog.vue.js +8 -7
- package/components/dialog/index.d.ts +11 -11
- package/components/dropdown/common/Dropdown.common.d.ts +36 -0
- package/components/dropdown/common/Dropdown.common.vue.js +456 -0
- package/components/dropdown/{Label.vue.js → common/Label.vue.js} +5 -5
- package/components/dropdown/{Option.vue.js → common/Option.vue.js} +7 -7
- package/components/dropdown/{SearchInput.vue.js → common/SearchInput.vue.js} +8 -7
- package/components/dropdown/{Dropdown.vue.d.ts → v3/Dropdown.vue.d.ts} +15 -5
- package/components/dropdown/v3/Dropdown.vue.js +391 -0
- package/components/dropdown/{index.d.ts → v3/index.d.ts} +42 -20
- package/components/dropdown/v3/index.vue.js +12 -0
- package/components/dropdown/v4/DropdownV4.vue.d.ts +223 -0
- package/components/dropdown/v4/DropdownV4.vue.js +408 -0
- package/components/dropdown/v4/index.d.ts +433 -0
- package/components/dropdown/v4/index.vue.js +6 -0
- package/components/emptyState/EmptyState.vue.d.ts +1 -1
- package/components/emptyState/EmptyState.vue.js +4 -4
- package/components/emptyState/index.d.ts +11 -11
- package/components/filterDropdown/AddFilterButton.vue.js +2 -2
- package/components/filterDropdown/FilterDropdown.vue.js +5 -4
- package/components/filtersPanel/Filter.d.ts +1 -1
- package/components/filtersPanel/FilterSearchInput.vue.js +6 -6
- package/components/floatingToolbar/FloatingToolbar.vue.js +6 -5
- package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExclude.vue.js +4 -4
- package/components/includeExclude/IncludeExcludeAppHeader.vue.js +2 -2
- package/components/includeExclude/IncludeExcludeAppTrigger.vue.js +4 -4
- package/components/includeExclude/IncludeExcludeChipFilter.vue.js +3 -3
- package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeDragDrop.vue.js +4 -4
- package/components/includeExclude/index.d.ts +22 -22
- package/components/input/Input.vue.d.ts +2 -2
- package/components/input/Input.vue.js +4 -4
- package/components/input/index.d.ts +16 -16
- package/components/menu/Menu.vue.d.ts +1 -1
- package/components/menu/index.d.ts +5 -5
- package/components/search/common/Search.common.d.ts +9 -0
- package/components/search/common/Search.common.vue.js +52 -0
- package/components/search/{Search.vue.js → v3/Search.vue.js} +19 -46
- package/components/search/{index.d.ts → v3/index.d.ts} +3 -3
- package/components/search/v4/SearchV4.vue.d.ts +51 -0
- package/components/search/v4/SearchV4.vue.js +70 -0
- package/components/search/v4/index.d.ts +72 -0
- package/components/search/v4/index.vue.js +6 -0
- package/components/snackbar/Snackbar.vue.d.ts +1 -1
- package/components/snackbar/Snackbar.vue.js +6 -5
- package/components/switch/{Switch.vue.js → v3/Switch.vue.js} +5 -5
- package/components/switch/v4/SwitchV4.vue.d.ts +37 -0
- package/components/switch/v4/SwitchV4.vue.js +87 -0
- package/components/switch/v4/index.d.ts +46 -0
- package/components/switch/v4/index.vue.js +6 -0
- package/components/table/Table.vue.js +3 -3
- package/components/table-cells/Editable.vue.js +1 -1
- package/components/tooltip/Tooltip.vue.d.ts +1 -1
- package/components/tooltip/index.d.ts +5 -5
- package/components/typography/index.d.ts +9 -9
- package/components/typography/v4/Typography.vue.d.ts +34 -0
- package/components/typography/v4/Typography.vue.js +68 -0
- package/components/typography/v4/index.d.ts +23 -0
- package/components/typography/v4/index.vue.js +6 -0
- package/design-foundation.stories/border-radius/BorderRadiusData.d.ts +5 -0
- package/design-foundation.stories/border-radius/BorderRadiusWrapper.vue.d.ts +4 -0
- package/design-foundation.stories/border-radius/index.d.ts +1 -0
- package/design-foundation.stories/colors/ColorsData.d.ts +114 -0
- package/design-foundation.stories/colors/ColorsStoryWrapper.vue.d.ts +3 -0
- package/design-foundation.stories/colors/index.d.ts +1 -0
- package/design-foundation.stories/elevations/ElevationStoryWrapper.vue.d.ts +4 -0
- package/design-foundation.stories/elevations/ElevationsData.d.ts +10 -0
- package/design-foundation.stories/elevations/index.d.ts +1 -0
- package/design-foundation.stories/typography/TypographyData.d.ts +7 -0
- package/design-foundation.stories/typography/TypographyStoryWrapper.vue.d.ts +3 -0
- package/design-foundation.stories/typography/index.d.ts +1 -0
- package/index.d.ts +1532 -5
- package/index.vue.js +28 -16
- package/package.json +39 -14
- package/styleguide.scss +77 -78
- package/styles/v4/border-radius.css +8 -0
- package/styles/v4/colors.css +100 -0
- package/styles/v4/elevations.css +10 -0
- package/styles/v4/fonts.css +1 -0
- package/styles/v4/fonts.css.map +1 -0
- package/styles/v4/fonts.scss +258 -0
- package/components/button/Button.vue.js +0 -65
- package/components/dropdown/Dropdown.vue.js +0 -785
- package/components/dropdown/index.vue.js +0 -12
- /package/components/button/{IconButton.vue.d.ts → v3/IconButton.vue.d.ts} +0 -0
- /package/components/button/{ScrollButton.vue.d.ts → v3/ScrollButton.vue.d.ts} +0 -0
- /package/components/button/{index.vue.js → v3/index.vue.js} +0 -0
- /package/components/chip/{Chip.vue.d.ts → v3/Chip.vue.d.ts} +0 -0
- /package/components/chip/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/chip/{index.vue.js → v3/index.vue.js} +0 -0
- /package/components/dropdown/{DropdownContext.d.ts → common/DropdownContext.d.ts} +0 -0
- /package/components/dropdown/{DropdownContext.vue.js → common/DropdownContext.vue.js} +0 -0
- /package/components/dropdown/{Label.vue.d.ts → common/Label.vue.d.ts} +0 -0
- /package/components/dropdown/{Option.vue.d.ts → common/Option.vue.d.ts} +0 -0
- /package/components/dropdown/{SearchInput.vue.d.ts → common/SearchInput.vue.d.ts} +0 -0
- /package/components/search/{Search.vue.d.ts → v3/Search.vue.d.ts} +0 -0
- /package/components/search/{index.vue.js → v3/index.vue.js} +0 -0
- /package/components/switch/{Switch.vue.d.ts → v3/Switch.vue.d.ts} +0 -0
- /package/components/switch/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/switch/{index.vue.js → v3/index.vue.js} +0 -0
|
@@ -37,6 +37,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
37
37
|
multiOptionsPlaceholderPrefix?: string;
|
|
38
38
|
multiOptionsPlaceholderSuffix?: string;
|
|
39
39
|
testId?: string;
|
|
40
|
+
darkTheme?: boolean;
|
|
41
|
+
valueToCopy?: string;
|
|
40
42
|
}>, {
|
|
41
43
|
multi: boolean;
|
|
42
44
|
searchPlaceholder: string;
|
|
@@ -71,6 +73,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
71
73
|
multiOptionsPlaceholderPrefix: string;
|
|
72
74
|
multiOptionsPlaceholderSuffix: string;
|
|
73
75
|
testId: string;
|
|
76
|
+
darkTheme: boolean;
|
|
77
|
+
valueToCopy: string;
|
|
74
78
|
}>, {
|
|
75
79
|
selectItem: (option: any, index?: number) => void;
|
|
76
80
|
scrollTo: (index: number) => void;
|
|
@@ -122,6 +126,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
122
126
|
multiOptionsPlaceholderPrefix?: string;
|
|
123
127
|
multiOptionsPlaceholderSuffix?: string;
|
|
124
128
|
testId?: string;
|
|
129
|
+
darkTheme?: boolean;
|
|
130
|
+
valueToCopy?: string;
|
|
125
131
|
}>, {
|
|
126
132
|
multi: boolean;
|
|
127
133
|
searchPlaceholder: string;
|
|
@@ -156,18 +162,20 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
156
162
|
multiOptionsPlaceholderPrefix: string;
|
|
157
163
|
multiOptionsPlaceholderSuffix: string;
|
|
158
164
|
testId: string;
|
|
165
|
+
darkTheme: boolean;
|
|
166
|
+
valueToCopy: string;
|
|
159
167
|
}>>> & {
|
|
160
168
|
"onUpdate:selected"?: (value: unknown) => any;
|
|
169
|
+
onApply?: (value: unknown) => any;
|
|
161
170
|
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
162
|
-
onClosed?: () => any;
|
|
163
171
|
onOpened?: () => any;
|
|
164
|
-
|
|
172
|
+
onClosed?: () => any;
|
|
165
173
|
}, {
|
|
166
|
-
size: 'sm' | 'lg';
|
|
167
174
|
title: string;
|
|
168
|
-
error: string;
|
|
169
|
-
testId: string;
|
|
170
175
|
theme: string;
|
|
176
|
+
size: 'sm' | 'lg';
|
|
177
|
+
testId: string;
|
|
178
|
+
error: string;
|
|
171
179
|
placement: Placement;
|
|
172
180
|
disabled: boolean;
|
|
173
181
|
selected: any;
|
|
@@ -195,6 +203,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
195
203
|
disableKeyboardEvents: boolean;
|
|
196
204
|
multiOptionsPlaceholderPrefix: string;
|
|
197
205
|
multiOptionsPlaceholderSuffix: string;
|
|
206
|
+
darkTheme: boolean;
|
|
207
|
+
valueToCopy: string;
|
|
198
208
|
}>;
|
|
199
209
|
export default _default;
|
|
200
210
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createVNode, withCtx, Transition, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, createBlock, isRef, mergeProps, withModifiers, Fragment, renderList, toRaw, pushScopeId, popScopeId } from 'vue';
|
|
2
|
+
import Button from '../../button/v3/Button.vue.js';
|
|
3
|
+
import Icon from '../../icon/Icon.vue.js';
|
|
4
|
+
import { DropdownTestIdModifiers } from '../../../testids/index.vue.js';
|
|
5
|
+
/* empty css */import _export_sfc from '../../../_virtual/plugin-vue_export-helper.vue.js';
|
|
6
|
+
import Text from '../../typography/Text.vue.js';
|
|
7
|
+
/* empty css *//* empty css *//* empty css */import { Dropdown as Dropdown$1 } from 'floating-vue';
|
|
8
|
+
/* empty css *//* empty css */import Option from '../common/Option.vue.js';
|
|
9
|
+
import Search from '../../search/v4/SearchV4.vue.js';
|
|
10
|
+
import { dropdownCommon } from '../common/Dropdown.common.vue.js';
|
|
11
|
+
/* empty css *//* empty css */
|
|
12
|
+
import "../../../Dropdown.vue_vue_type_style_index_0_scoped_true_lang.css";import "../../../Dropdown.vue_vue_type_style_index_1_lang.css";
|
|
13
|
+
const _withScopeId = (n) => (pushScopeId("data-v-41663923"), n = n(), popScopeId(), n);
|
|
14
|
+
const _hoisted_1 = ["tabindex", "data-testid"];
|
|
15
|
+
const _hoisted_2 = ["disabled", "aria-expanded", "aria-labelledby", "aria-disabled"];
|
|
16
|
+
const _hoisted_3 = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "image-slot"
|
|
19
|
+
};
|
|
20
|
+
const _hoisted_4 = { class: "angle-down" };
|
|
21
|
+
const _hoisted_5 = { ref: "listRef" };
|
|
22
|
+
const _hoisted_6 = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "dropdown-title"
|
|
25
|
+
};
|
|
26
|
+
const _hoisted_7 = ["data-testid"];
|
|
27
|
+
const _hoisted_8 = ["data-testid"];
|
|
28
|
+
const _hoisted_9 = {
|
|
29
|
+
key: 0,
|
|
30
|
+
class: "no-result-container"
|
|
31
|
+
};
|
|
32
|
+
const _hoisted_10 = {
|
|
33
|
+
key: 1,
|
|
34
|
+
class: "loader"
|
|
35
|
+
};
|
|
36
|
+
const _hoisted_11 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
37
|
+
width: "100",
|
|
38
|
+
height: "100",
|
|
39
|
+
viewBox: "0 0 100 100"
|
|
40
|
+
}, [
|
|
41
|
+
/* @__PURE__ */ createElementVNode("circle", {
|
|
42
|
+
cx: "50",
|
|
43
|
+
cy: "50",
|
|
44
|
+
fill: "none",
|
|
45
|
+
stroke: "currentColor",
|
|
46
|
+
"stroke-width": "6",
|
|
47
|
+
r: "35",
|
|
48
|
+
"stroke-dasharray": "164.93361431346415 56.97787143782138"
|
|
49
|
+
}, [
|
|
50
|
+
/* @__PURE__ */ createElementVNode("animateTransform", {
|
|
51
|
+
attributeName: "transform",
|
|
52
|
+
type: "rotate",
|
|
53
|
+
repeatCount: "indefinite",
|
|
54
|
+
dur: "1s",
|
|
55
|
+
values: "0 50 50;360 50 50",
|
|
56
|
+
keyTimes: "0;1"
|
|
57
|
+
})
|
|
58
|
+
])
|
|
59
|
+
], -1));
|
|
60
|
+
const _hoisted_12 = { key: 2 };
|
|
61
|
+
const _hoisted_13 = ["aria-selected", "aria-disabled", "onClick"];
|
|
62
|
+
const _hoisted_14 = {
|
|
63
|
+
key: 0,
|
|
64
|
+
class: "actions"
|
|
65
|
+
};
|
|
66
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
67
|
+
__name: "Dropdown",
|
|
68
|
+
props: {
|
|
69
|
+
modelValue: { default: null },
|
|
70
|
+
placeholder: { default: "" },
|
|
71
|
+
disabled: { type: Boolean, default: false },
|
|
72
|
+
mandatory: { type: Boolean, default: false },
|
|
73
|
+
helperText: { default: "" },
|
|
74
|
+
searchPlaceholder: { default: "" },
|
|
75
|
+
isOnTop: { type: Boolean, default: false },
|
|
76
|
+
multi: { type: Boolean, default: false },
|
|
77
|
+
title: { default: "" },
|
|
78
|
+
inlineSearch: { type: Boolean, default: false },
|
|
79
|
+
popperClass: { default: "" },
|
|
80
|
+
noResultsText: { default: "No results found" },
|
|
81
|
+
loading: { type: Boolean },
|
|
82
|
+
selected: { default: null },
|
|
83
|
+
showSelectAll: { type: Boolean },
|
|
84
|
+
defaultOpen: { type: Boolean, default: false },
|
|
85
|
+
showButtonOnOpen: { type: Boolean, default: true },
|
|
86
|
+
autoFocus: { type: Boolean, default: false },
|
|
87
|
+
distance: { default: 0 },
|
|
88
|
+
isOpen: { type: Boolean },
|
|
89
|
+
skidding: { default: 0 },
|
|
90
|
+
placement: { default: "bottom-start" },
|
|
91
|
+
clearable: { type: Boolean, default: false },
|
|
92
|
+
error: { default: "" },
|
|
93
|
+
size: { default: "lg" },
|
|
94
|
+
displayValue: null,
|
|
95
|
+
options: null,
|
|
96
|
+
onSearch: { type: Function, default: () => true },
|
|
97
|
+
theme: { default: "is-dropdown" },
|
|
98
|
+
container: { default: "body" },
|
|
99
|
+
flip: { type: Boolean, default: true },
|
|
100
|
+
keepOpen: { type: Boolean, default: false },
|
|
101
|
+
autoSize: { type: Boolean, default: false },
|
|
102
|
+
disableKeyboardEvents: { type: Boolean, default: false },
|
|
103
|
+
multiOptionsPlaceholderPrefix: { default: "" },
|
|
104
|
+
multiOptionsPlaceholderSuffix: { default: "" },
|
|
105
|
+
testId: { default: "" },
|
|
106
|
+
darkTheme: { type: Boolean, default: true },
|
|
107
|
+
valueToCopy: { default: "" }
|
|
108
|
+
},
|
|
109
|
+
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply"],
|
|
110
|
+
setup(__props, { expose, emit }) {
|
|
111
|
+
const props = __props;
|
|
112
|
+
const {
|
|
113
|
+
onKeydown,
|
|
114
|
+
location,
|
|
115
|
+
open,
|
|
116
|
+
toggleMenu,
|
|
117
|
+
onButtonKeydown,
|
|
118
|
+
displayedValue,
|
|
119
|
+
labelRef,
|
|
120
|
+
query,
|
|
121
|
+
containerProps,
|
|
122
|
+
calculateTableHeight,
|
|
123
|
+
wrapperProps,
|
|
124
|
+
filteredOptions,
|
|
125
|
+
allSelected,
|
|
126
|
+
isIndeterminate,
|
|
127
|
+
onSelectAll,
|
|
128
|
+
virtualOptions,
|
|
129
|
+
isSelected,
|
|
130
|
+
selectedOption,
|
|
131
|
+
onSelect,
|
|
132
|
+
activeIndex,
|
|
133
|
+
onCancel,
|
|
134
|
+
onApply,
|
|
135
|
+
scrollTo
|
|
136
|
+
} = dropdownCommon(props, emit);
|
|
137
|
+
expose({
|
|
138
|
+
selectItem: onSelect,
|
|
139
|
+
scrollTo
|
|
140
|
+
});
|
|
141
|
+
return (_ctx, _cache) => {
|
|
142
|
+
return openBlock(), createElementBlock("div", {
|
|
143
|
+
ref: "el",
|
|
144
|
+
class: normalizeClass(["dropdown", { "dropdown--disabled": __props.disabled }]),
|
|
145
|
+
tabindex: __props.disabled ? -1 : 0,
|
|
146
|
+
"data-testid": `${__props.testId}-${unref(DropdownTestIdModifiers).WRAPPER}`,
|
|
147
|
+
onKeydown: _cache[7] || (_cache[7] = (...args) => unref(onKeydown) && unref(onKeydown)(...args))
|
|
148
|
+
}, [
|
|
149
|
+
renderSlot(_ctx.$slots, "label", {}, void 0, true),
|
|
150
|
+
createVNode(unref(Dropdown$1), {
|
|
151
|
+
theme: __props.theme,
|
|
152
|
+
"popper-class": [
|
|
153
|
+
__props.popperClass,
|
|
154
|
+
__props.autoSize ? "v-popper--theme-is-dropdown--auto-size" : null
|
|
155
|
+
],
|
|
156
|
+
placement: __props.placement,
|
|
157
|
+
skidding: __props.isOnTop ? 0 : __props.skidding,
|
|
158
|
+
distance: __props.isOnTop ? -unref(location) : __props.distance,
|
|
159
|
+
flip: __props.flip,
|
|
160
|
+
triggers: [],
|
|
161
|
+
shown: !!unref(open),
|
|
162
|
+
"auto-hide": false,
|
|
163
|
+
container: __props.container,
|
|
164
|
+
"auto-size": __props.autoSize,
|
|
165
|
+
"data-testid": `${__props.testId}-${unref(DropdownTestIdModifiers).TRIGGER}`
|
|
166
|
+
}, {
|
|
167
|
+
popper: withCtx(() => [
|
|
168
|
+
createVNode(Transition, null, {
|
|
169
|
+
default: withCtx(() => [
|
|
170
|
+
createElementVNode("div", _hoisted_5, [
|
|
171
|
+
__props.inlineSearch || __props.title ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
172
|
+
__props.title ? (openBlock(), createElementBlock("div", {
|
|
173
|
+
key: 0,
|
|
174
|
+
class: "dropdown-title__text",
|
|
175
|
+
"data-testid": `${__props.testId}-${unref(DropdownTestIdModifiers).TITLE}`
|
|
176
|
+
}, [
|
|
177
|
+
createVNode(unref(Text), { strong: "" }, {
|
|
178
|
+
default: withCtx(() => [
|
|
179
|
+
createTextVNode(toDisplayString(__props.title), 1)
|
|
180
|
+
]),
|
|
181
|
+
_: 1
|
|
182
|
+
})
|
|
183
|
+
], 8, _hoisted_7)) : createCommentVNode("", true),
|
|
184
|
+
__props.inlineSearch ? (openBlock(), createBlock(unref(Search), {
|
|
185
|
+
key: 1,
|
|
186
|
+
modelValue: unref(query),
|
|
187
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => isRef(query) ? query.value = $event : null),
|
|
188
|
+
placeholder: __props.searchPlaceholder,
|
|
189
|
+
class: "dropdown-title__search",
|
|
190
|
+
variant: "transparent",
|
|
191
|
+
size: "md",
|
|
192
|
+
"test-id": `${__props.testId}-${unref(DropdownTestIdModifiers).SEARCH}`,
|
|
193
|
+
onKeydown: unref(onKeydown)
|
|
194
|
+
}, null, 8, ["modelValue", "placeholder", "test-id", "onKeydown"])) : createCommentVNode("", true)
|
|
195
|
+
])) : createCommentVNode("", true),
|
|
196
|
+
unref(open) ? (openBlock(), createElementBlock("div", {
|
|
197
|
+
key: 1,
|
|
198
|
+
class: "dropdown",
|
|
199
|
+
onKeydown: _cache[6] || (_cache[6] = (...args) => unref(onKeydown) && unref(onKeydown)(...args))
|
|
200
|
+
}, [
|
|
201
|
+
renderSlot(_ctx.$slots, "input-list", { open: unref(open) }, void 0, true),
|
|
202
|
+
createElementVNode("div", mergeProps(unref(containerProps), {
|
|
203
|
+
class: ["list-container", { "list-container--multi": __props.multi }],
|
|
204
|
+
style: { height: `${unref(calculateTableHeight)}rem` },
|
|
205
|
+
"data-testid": `${__props.testId}-${unref(DropdownTestIdModifiers).LIST_CONTAINER}`
|
|
206
|
+
}), [
|
|
207
|
+
createElementVNode("ul", mergeProps(unref(wrapperProps), {
|
|
208
|
+
role: "listbox",
|
|
209
|
+
class: ["list", { "list--multi": __props.multi }]
|
|
210
|
+
}), [
|
|
211
|
+
!unref(filteredOptions).length && !__props.loading ? (openBlock(), createElementBlock("li", _hoisted_9, [
|
|
212
|
+
createVNode(unref(Text), {
|
|
213
|
+
size: "sm",
|
|
214
|
+
class: "no-result"
|
|
215
|
+
}, {
|
|
216
|
+
default: withCtx(() => [
|
|
217
|
+
createTextVNode(toDisplayString(__props.noResultsText), 1)
|
|
218
|
+
]),
|
|
219
|
+
_: 1
|
|
220
|
+
})
|
|
221
|
+
])) : createCommentVNode("", true),
|
|
222
|
+
__props.loading ? (openBlock(), createElementBlock("li", _hoisted_10, [
|
|
223
|
+
createVNode(unref(Icon), {
|
|
224
|
+
"font-size": "md",
|
|
225
|
+
class: "loader-icon"
|
|
226
|
+
}, {
|
|
227
|
+
default: withCtx(() => [
|
|
228
|
+
_hoisted_11
|
|
229
|
+
]),
|
|
230
|
+
_: 1
|
|
231
|
+
}),
|
|
232
|
+
createVNode(unref(Text), null, {
|
|
233
|
+
default: withCtx(() => [
|
|
234
|
+
createTextVNode("Loading...")
|
|
235
|
+
]),
|
|
236
|
+
_: 1
|
|
237
|
+
})
|
|
238
|
+
])) : createCommentVNode("", true),
|
|
239
|
+
__props.showSelectAll ? (openBlock(), createElementBlock("li", _hoisted_12, [
|
|
240
|
+
createVNode(Option, {
|
|
241
|
+
"aria-selected": unref(allSelected),
|
|
242
|
+
"aria-disabled": !!__props.disabled,
|
|
243
|
+
"selected-prop": unref(allSelected),
|
|
244
|
+
"is-indeterminate": unref(isIndeterminate),
|
|
245
|
+
"select-all-option": "",
|
|
246
|
+
onClick: _cache[5] || (_cache[5] = withModifiers(($event) => unref(onSelectAll)(), ["stop"]))
|
|
247
|
+
}, {
|
|
248
|
+
default: withCtx(() => [
|
|
249
|
+
createTextVNode("Select all ")
|
|
250
|
+
]),
|
|
251
|
+
_: 1
|
|
252
|
+
}, 8, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
|
|
253
|
+
])) : createCommentVNode("", true),
|
|
254
|
+
unref(virtualOptions).length && !__props.loading ? (openBlock(true), createElementBlock(Fragment, { key: 3 }, renderList(unref(virtualOptions), ({ data, index }) => {
|
|
255
|
+
return openBlock(), createElementBlock("li", {
|
|
256
|
+
key: index,
|
|
257
|
+
"aria-selected": unref(isSelected)(toRaw(unref(selectedOption)), data),
|
|
258
|
+
"aria-disabled": !!__props.disabled,
|
|
259
|
+
onClick: withModifiers(() => unref(onSelect)(data, index), ["stop"])
|
|
260
|
+
}, [
|
|
261
|
+
renderSlot(_ctx.$slots, "default", {
|
|
262
|
+
option: data,
|
|
263
|
+
selected: unref(isSelected)(toRaw(unref(selectedOption)), data),
|
|
264
|
+
active: toRaw(unref(activeIndex)) === index
|
|
265
|
+
}, void 0, true)
|
|
266
|
+
], 8, _hoisted_13);
|
|
267
|
+
}), 128)) : createCommentVNode("", true)
|
|
268
|
+
], 16)
|
|
269
|
+
], 16, _hoisted_8),
|
|
270
|
+
__props.multi ? (openBlock(), createElementBlock("div", _hoisted_14, [
|
|
271
|
+
createVNode(unref(Button), {
|
|
272
|
+
ref: "cancel",
|
|
273
|
+
size: "sm",
|
|
274
|
+
variant: "border",
|
|
275
|
+
theme: "third",
|
|
276
|
+
"test-id": `${__props.testId}-${unref(DropdownTestIdModifiers).ACTION_CANCEL}`,
|
|
277
|
+
onClick: unref(onCancel)
|
|
278
|
+
}, {
|
|
279
|
+
default: withCtx(() => [
|
|
280
|
+
createTextVNode(" Cancel ")
|
|
281
|
+
]),
|
|
282
|
+
_: 1
|
|
283
|
+
}, 8, ["test-id", "onClick"]),
|
|
284
|
+
createVNode(unref(Button), {
|
|
285
|
+
ref: "apply",
|
|
286
|
+
"data-testid": "mutli-apply",
|
|
287
|
+
size: "sm",
|
|
288
|
+
class: "apply-button",
|
|
289
|
+
"test-id": `${__props.testId}-${unref(DropdownTestIdModifiers).ACTION_APPLY}`,
|
|
290
|
+
onClick: unref(onApply)
|
|
291
|
+
}, {
|
|
292
|
+
default: withCtx(() => [
|
|
293
|
+
createTextVNode("Apply ")
|
|
294
|
+
]),
|
|
295
|
+
_: 1
|
|
296
|
+
}, 8, ["test-id", "onClick"])
|
|
297
|
+
])) : createCommentVNode("", true)
|
|
298
|
+
], 32)) : createCommentVNode("", true)
|
|
299
|
+
], 512)
|
|
300
|
+
]),
|
|
301
|
+
_: 3
|
|
302
|
+
})
|
|
303
|
+
]),
|
|
304
|
+
default: withCtx(() => [
|
|
305
|
+
createElementVNode("div", {
|
|
306
|
+
class: normalizeClass(["button__container", {
|
|
307
|
+
"button__container--open": !!unref(open),
|
|
308
|
+
[`button__container--${__props.size}`]: true,
|
|
309
|
+
"button__container--disabled": __props.disabled
|
|
310
|
+
}])
|
|
311
|
+
}, [
|
|
312
|
+
_ctx.$slots.input ? (openBlock(), createElementBlock("div", {
|
|
313
|
+
key: 0,
|
|
314
|
+
ref: "buttonRef",
|
|
315
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(toggleMenu)()),
|
|
316
|
+
onKeydown: _cache[1] || (_cache[1] = (...args) => unref(onButtonKeydown) && unref(onButtonKeydown)(...args))
|
|
317
|
+
}, [
|
|
318
|
+
renderSlot(_ctx.$slots, "input", {
|
|
319
|
+
open: unref(open),
|
|
320
|
+
value: unref(displayedValue),
|
|
321
|
+
disabled: __props.disabled
|
|
322
|
+
}, void 0, true)
|
|
323
|
+
], 544)) : createCommentVNode("", true),
|
|
324
|
+
!_ctx.$slots.input ? (openBlock(), createElementBlock("button", {
|
|
325
|
+
key: 1,
|
|
326
|
+
ref: "buttonRef",
|
|
327
|
+
disabled: __props.disabled,
|
|
328
|
+
"aria-haspopup": true,
|
|
329
|
+
"aria-expanded": !!unref(open),
|
|
330
|
+
"aria-labelledby": unref(labelRef)?.id,
|
|
331
|
+
"aria-disabled": __props.disabled,
|
|
332
|
+
class: normalizeClass([{
|
|
333
|
+
"button--open": !!unref(open),
|
|
334
|
+
[`button--${__props.size}`]: true,
|
|
335
|
+
"button--disabled": __props.disabled
|
|
336
|
+
}, "button"]),
|
|
337
|
+
onKeydown: _cache[2] || (_cache[2] = (...args) => unref(onButtonKeydown) && unref(onButtonKeydown)(...args)),
|
|
338
|
+
onClick: _cache[3] || (_cache[3] = ($event) => unref(toggleMenu)())
|
|
339
|
+
}, [
|
|
340
|
+
_ctx.$slots.image ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
341
|
+
renderSlot(_ctx.$slots, "image", {}, void 0, true)
|
|
342
|
+
])) : createCommentVNode("", true),
|
|
343
|
+
createVNode(unref(Text), {
|
|
344
|
+
size: "sm",
|
|
345
|
+
"is-truncated": ""
|
|
346
|
+
}, {
|
|
347
|
+
default: withCtx(() => [
|
|
348
|
+
createTextVNode(toDisplayString(unref(displayedValue)), 1)
|
|
349
|
+
]),
|
|
350
|
+
_: 1
|
|
351
|
+
}),
|
|
352
|
+
createElementVNode("div", _hoisted_4, [
|
|
353
|
+
createVNode(unref(Icon), {
|
|
354
|
+
name: "angle-down",
|
|
355
|
+
"font-size": "sm"
|
|
356
|
+
})
|
|
357
|
+
])
|
|
358
|
+
], 42, _hoisted_2)) : createCommentVNode("", true)
|
|
359
|
+
], 2)
|
|
360
|
+
]),
|
|
361
|
+
_: 3
|
|
362
|
+
}, 8, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size", "data-testid"]),
|
|
363
|
+
!__props.error && __props.helperText ? (openBlock(), createBlock(unref(Text), {
|
|
364
|
+
key: 0,
|
|
365
|
+
size: "caption",
|
|
366
|
+
class: "helper-text",
|
|
367
|
+
"test-id": `${__props.testId}-${unref(DropdownTestIdModifiers).HELPER_TEXT}`
|
|
368
|
+
}, {
|
|
369
|
+
default: withCtx(() => [
|
|
370
|
+
createTextVNode(toDisplayString(__props.helperText), 1)
|
|
371
|
+
]),
|
|
372
|
+
_: 1
|
|
373
|
+
}, 8, ["test-id"])) : createCommentVNode("", true),
|
|
374
|
+
__props.error ? (openBlock(), createBlock(unref(Text), {
|
|
375
|
+
key: 1,
|
|
376
|
+
size: "caption",
|
|
377
|
+
class: "helper-text helper-text--error",
|
|
378
|
+
"test-id": `${__props.testId}-${unref(DropdownTestIdModifiers).HELPER_TEXT_ERROR}`
|
|
379
|
+
}, {
|
|
380
|
+
default: withCtx(() => [
|
|
381
|
+
createTextVNode(toDisplayString(__props.error), 1)
|
|
382
|
+
]),
|
|
383
|
+
_: 1
|
|
384
|
+
}, 8, ["test-id"])) : createCommentVNode("", true)
|
|
385
|
+
], 42, _hoisted_1);
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
});
|
|
389
|
+
var Dropdown = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-41663923"]]);
|
|
390
|
+
|
|
391
|
+
export { Dropdown as default };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import Dropdown from './Dropdown.vue';
|
|
2
|
-
import Option from '
|
|
3
|
-
import Label from '
|
|
4
|
-
import SearchInput from '
|
|
2
|
+
import Option from '../common/Option.vue';
|
|
3
|
+
import Label from '../common/Label.vue';
|
|
4
|
+
import SearchInput from '../common/SearchInput.vue';
|
|
5
5
|
declare const DropdownTypes: () => (import("vue").DefineComponent<{
|
|
6
|
-
|
|
7
|
-
type: import("vue").PropType<
|
|
6
|
+
title: {
|
|
7
|
+
type: import("vue").PropType<string>;
|
|
8
8
|
} & {
|
|
9
9
|
default: string;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
theme: {
|
|
12
12
|
type: import("vue").PropType<string>;
|
|
13
13
|
} & {
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
type: import("vue").PropType<
|
|
16
|
+
size: {
|
|
17
|
+
type: import("vue").PropType<"sm" | "lg">;
|
|
18
18
|
} & {
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
@@ -23,7 +23,7 @@ declare const DropdownTypes: () => (import("vue").DefineComponent<{
|
|
|
23
23
|
} & {
|
|
24
24
|
default: string;
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
error: {
|
|
27
27
|
type: import("vue").PropType<string>;
|
|
28
28
|
} & {
|
|
29
29
|
default: string;
|
|
@@ -170,6 +170,16 @@ declare const DropdownTypes: () => (import("vue").DefineComponent<{
|
|
|
170
170
|
} & {
|
|
171
171
|
default: string;
|
|
172
172
|
};
|
|
173
|
+
darkTheme: {
|
|
174
|
+
type: import("vue").PropType<boolean>;
|
|
175
|
+
} & {
|
|
176
|
+
default: boolean;
|
|
177
|
+
};
|
|
178
|
+
valueToCopy: {
|
|
179
|
+
type: import("vue").PropType<string>;
|
|
180
|
+
} & {
|
|
181
|
+
default: string;
|
|
182
|
+
};
|
|
173
183
|
showSelectAll: {
|
|
174
184
|
type: import("vue").PropType<boolean>;
|
|
175
185
|
};
|
|
@@ -194,18 +204,18 @@ declare const DropdownTypes: () => (import("vue").DefineComponent<{
|
|
|
194
204
|
} & {
|
|
195
205
|
apply: (value: unknown) => void;
|
|
196
206
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
197
|
-
|
|
198
|
-
type: import("vue").PropType<
|
|
207
|
+
title: {
|
|
208
|
+
type: import("vue").PropType<string>;
|
|
199
209
|
} & {
|
|
200
210
|
default: string;
|
|
201
211
|
};
|
|
202
|
-
|
|
212
|
+
theme: {
|
|
203
213
|
type: import("vue").PropType<string>;
|
|
204
214
|
} & {
|
|
205
215
|
default: string;
|
|
206
216
|
};
|
|
207
|
-
|
|
208
|
-
type: import("vue").PropType<
|
|
217
|
+
size: {
|
|
218
|
+
type: import("vue").PropType<"sm" | "lg">;
|
|
209
219
|
} & {
|
|
210
220
|
default: string;
|
|
211
221
|
};
|
|
@@ -214,7 +224,7 @@ declare const DropdownTypes: () => (import("vue").DefineComponent<{
|
|
|
214
224
|
} & {
|
|
215
225
|
default: string;
|
|
216
226
|
};
|
|
217
|
-
|
|
227
|
+
error: {
|
|
218
228
|
type: import("vue").PropType<string>;
|
|
219
229
|
} & {
|
|
220
230
|
default: string;
|
|
@@ -361,6 +371,16 @@ declare const DropdownTypes: () => (import("vue").DefineComponent<{
|
|
|
361
371
|
} & {
|
|
362
372
|
default: string;
|
|
363
373
|
};
|
|
374
|
+
darkTheme: {
|
|
375
|
+
type: import("vue").PropType<boolean>;
|
|
376
|
+
} & {
|
|
377
|
+
default: boolean;
|
|
378
|
+
};
|
|
379
|
+
valueToCopy: {
|
|
380
|
+
type: import("vue").PropType<string>;
|
|
381
|
+
} & {
|
|
382
|
+
default: string;
|
|
383
|
+
};
|
|
364
384
|
showSelectAll: {
|
|
365
385
|
type: import("vue").PropType<boolean>;
|
|
366
386
|
};
|
|
@@ -373,16 +393,16 @@ declare const DropdownTypes: () => (import("vue").DefineComponent<{
|
|
|
373
393
|
};
|
|
374
394
|
}>> & {
|
|
375
395
|
"onUpdate:selected"?: (value: unknown) => any;
|
|
396
|
+
onApply?: (value: unknown) => any;
|
|
376
397
|
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
377
|
-
onClosed?: () => any;
|
|
378
398
|
onOpened?: () => any;
|
|
379
|
-
|
|
399
|
+
onClosed?: () => any;
|
|
380
400
|
}, {
|
|
381
|
-
size: "sm" | "lg";
|
|
382
401
|
title: string;
|
|
383
|
-
error: string;
|
|
384
|
-
testId: string;
|
|
385
402
|
theme: string;
|
|
403
|
+
size: "sm" | "lg";
|
|
404
|
+
testId: string;
|
|
405
|
+
error: string;
|
|
386
406
|
placement: import("floating-vue").Placement;
|
|
387
407
|
disabled: boolean;
|
|
388
408
|
selected: any;
|
|
@@ -410,5 +430,7 @@ declare const DropdownTypes: () => (import("vue").DefineComponent<{
|
|
|
410
430
|
disableKeyboardEvents: boolean;
|
|
411
431
|
multiOptionsPlaceholderPrefix: string;
|
|
412
432
|
multiOptionsPlaceholderSuffix: string;
|
|
433
|
+
darkTheme: boolean;
|
|
434
|
+
valueToCopy: string;
|
|
413
435
|
}> | import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>)[];
|
|
414
436
|
export { Dropdown, Option, Label, SearchInput, DropdownTypes };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Dropdown from './Dropdown.vue.js';
|
|
2
|
+
export { default as Dropdown } from './Dropdown.vue.js';
|
|
3
|
+
import Option from '../common/Option.vue.js';
|
|
4
|
+
export { default as Option } from '../common/Option.vue.js';
|
|
5
|
+
import Label from '../common/Label.vue.js';
|
|
6
|
+
export { default as Label } from '../common/Label.vue.js';
|
|
7
|
+
import SearchInput from '../common/SearchInput.vue.js';
|
|
8
|
+
export { default as SearchInput } from '../common/SearchInput.vue.js';
|
|
9
|
+
|
|
10
|
+
const DropdownTypes = () => [Dropdown, Option, Label, SearchInput];
|
|
11
|
+
|
|
12
|
+
export { DropdownTypes };
|