@ironsource/shared-ui 1.4.2-test.12 → 1.4.2-test.14
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/FloatingToolbar.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/IncludeExcludeOptionDraggable.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/README.md +0 -1
- package/Table.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/components/appIcon/AppIcon.vue.d.ts +1 -1
- package/components/appIcon/AppIcon.vue.js +3 -3
- package/components/appIcon/index.d.ts +1 -1
- package/components/appTrigger/AppTrigger.vue.d.ts +1 -1
- package/components/appTrigger/AppTrigger.vue.js +25 -22
- package/components/appTrigger/index.d.ts +1 -1
- package/components/autocompleteDropdown/AutocompleteDropdown.vue.d.ts +1 -1
- package/components/autocompleteDropdown/AutocompleteDropdown.vue.js +16 -14
- package/components/autocompleteDropdown/AutocompleteInput.vue.d.ts +1 -1
- package/components/autocompleteDropdown/AutocompleteInput.vue.js +7 -7
- package/components/autocompleteDropdown/GroupOption.vue.d.ts +1 -1
- package/components/autocompleteDropdown/GroupOption.vue.js +4 -3
- package/components/autocompleteDropdown/index.d.ts +1 -1
- package/components/banner/Banner.vue.d.ts +1 -1
- package/components/banner/Banner.vue.js +4 -4
- package/components/banner/index.d.ts +1 -1
- package/components/button/Button.vue.d.ts +1 -1
- package/components/button/Button.vue.js +12 -12
- package/components/button/ButtonBase.vue.d.ts +1 -1
- package/components/button/ButtonBase.vue.js +12 -11
- package/components/button/IconButton.vue.d.ts +1 -1
- package/components/button/IconButton.vue.js +5 -5
- package/components/button/ScrollButton.vue.d.ts +1 -1
- package/components/button/ScrollButton.vue.js +9 -8
- package/components/button/index.d.ts +3 -3
- package/components/checkbox/Checkbox.vue.d.ts +1 -1
- package/components/checkbox/Checkbox.vue.js +16 -15
- package/components/checkbox/index.d.ts +1 -1
- package/components/chip/Chip.vue.d.ts +1 -1
- package/components/chip/Chip.vue.js +5 -5
- package/components/chip/index.d.ts +1 -1
- package/components/datePicker/DatePicker.vue.d.ts +1 -1
- package/components/datePicker/DatePicker.vue.js +11 -11
- package/components/datePicker/DatePickerMonth.vue.d.ts +1 -1
- package/components/datePicker/DatePickerMonth.vue.js +4 -4
- package/components/datePicker/index.d.ts +1 -1
- package/components/dateRange/CalendarMonth.vue.d.ts +1 -1
- package/components/dateRange/CalendarMonth.vue.js +20 -19
- package/components/dateRange/DateRange.vue.d.ts +1 -1
- package/components/dateRange/DateRange.vue.js +28 -26
- package/components/dateRange/DateRangePicker.vue.d.ts +1 -1
- package/components/dateRange/index.d.ts +1 -1
- package/components/dialog/Dialog.vue.d.ts +1 -1
- package/components/dialog/Dialog.vue.js +16 -16
- package/components/dialog/index.d.ts +1 -1
- package/components/dropdown/Dropdown.vue.d.ts +1 -1
- package/components/dropdown/Dropdown.vue.js +60 -57
- package/components/dropdown/Label.vue.d.ts +1 -1
- package/components/dropdown/Label.vue.js +4 -3
- package/components/dropdown/Option.vue.d.ts +1 -1
- package/components/dropdown/Option.vue.js +17 -16
- package/components/dropdown/SearchInput.vue.d.ts +1 -1
- package/components/dropdown/SearchInput.vue.js +6 -6
- package/components/dropdown/index.d.ts +1 -398
- package/components/emptyState/EmptyState.vue.d.ts +1 -1
- package/components/emptyState/EmptyState.vue.js +21 -19
- package/components/emptyState/index.d.ts +1 -1
- package/components/filterDropdown/AddFilterButton.vue.d.ts +1 -1
- package/components/filterDropdown/AddFilterButton.vue.js +7 -7
- package/components/filterDropdown/FilterDropdown.vue.d.ts +1 -1
- package/components/filterDropdown/FilterDropdown.vue.js +17 -15
- package/components/filterDropdown/index.d.ts +2 -2
- package/components/filtersPanel/FilterSearchInput.vue.d.ts +1 -1
- package/components/filtersPanel/FilterSearchInput.vue.js +7 -7
- package/components/filtersPanel/FiltersPanel.vue.d.ts +1 -1
- package/components/filtersPanel/FiltersPanel.vue.js +8 -8
- package/components/filtersPanel/index.d.ts +1 -1
- package/components/floatingToolbar/FloatingToolbar.vue.d.ts +1 -1
- package/components/floatingToolbar/FloatingToolbar.vue.js +3 -3
- package/components/floatingToolbar/index.d.ts +1 -1
- package/components/icon/Icon.vue.d.ts +1 -1
- package/components/icon/Icon.vue.js +4 -4
- package/components/icon/index.d.ts +1 -1
- package/components/icon/storyComponents/Code.vue.d.ts +1 -1
- package/components/icon/storyComponents/IconWrapper.vue.d.ts +1 -1
- package/components/icon/storyComponents/Page.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExclude.vue.js +54 -51
- package/components/includeExclude/IncludeExcludeAppHeader.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeAppHeader.vue.js +26 -25
- package/components/includeExclude/IncludeExcludeAppTrigger.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeAppTrigger.vue.js +22 -19
- package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeChipFilter.vue.js +42 -40
- package/components/includeExclude/IncludeExcludeOption.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeOption.vue.js +22 -21
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.js +23 -19
- package/components/includeExclude/index.d.ts +5 -5
- package/components/input/DollarInput.vue.d.ts +1 -1
- package/components/input/DollarInput.vue.js +3 -2
- package/components/input/Input.vue.d.ts +1 -1
- package/components/input/Input.vue.js +33 -30
- package/components/input/PasswordInput.vue.d.ts +1 -1
- package/components/input/PasswordInput.vue.js +3 -2
- package/components/input/PercentageInput.vue.d.ts +1 -1
- package/components/input/PercentageInput.vue.js +3 -2
- package/components/input/index.d.ts +2 -2
- package/components/menu/Menu.vue.d.ts +1 -1
- package/components/menu/Menu.vue.js +4 -4
- package/components/menu/index.d.ts +1 -1
- package/components/menuItem/MenuItem.vue.d.ts +1 -1
- package/components/menuItem/MenuItem.vue.js +4 -3
- package/components/menuItem/index.d.ts +1 -1
- package/components/popover/Popover.vue.d.ts +1 -1
- package/components/popover/Popover.vue.js +7 -7
- package/components/popover/index.d.ts +1 -1
- package/components/radioButton/RadioButton.vue.d.ts +1 -1
- package/components/radioButton/RadioButton.vue.js +9 -9
- package/components/radioButton/RadioGroup.vue.d.ts +1 -1
- package/components/radioButton/RadioGroup.vue.js +3 -3
- package/components/radioButton/index.d.ts +2 -2
- package/components/radioButton/useRadio.d.ts +1 -1
- package/components/search/Search.vue.d.ts +1 -1
- package/components/search/Search.vue.js +15 -15
- package/components/search/index.d.ts +1 -1
- package/components/skeleton/Skeleton.vue.d.ts +1 -1
- package/components/skeleton/Skeleton.vue.js +2 -2
- package/components/skeleton/index.d.ts +1 -1
- package/components/snackbar/Snackbar.vue.d.ts +1 -1
- package/components/snackbar/Snackbar.vue.js +26 -26
- package/components/switch/Switch.vue.d.ts +1 -1
- package/components/switch/Switch.vue.js +9 -9
- package/components/switch/index.d.ts +1 -1
- package/components/table/Pagination.vue.d.ts +1 -1
- package/components/table/Table.vue.d.ts +4 -1
- package/components/table/Table.vue.js +38 -34
- package/components/table/TableHeaderSorter.vue.d.ts +1 -1
- package/components/table/TableHeaderSorter.vue.js +4 -4
- package/components/table/index.d.ts +4 -1
- package/components/table-cells/Editable.vue.d.ts +1 -1
- package/components/table-cells/Editable.vue.js +4 -4
- package/components/table-cells/index.d.ts +1 -1
- package/components/tabs/Tabs.vue.d.ts +1 -1
- package/components/tabs/Tabs.vue.js +16 -15
- package/components/tabs/index.d.ts +1 -1
- package/components/textArea/TextArea.vue.d.ts +1 -1
- package/components/textArea/TextArea.vue.js +13 -12
- package/components/textArea/index.d.ts +1 -1
- package/components/toggle/Toggle.vue.d.ts +1 -1
- package/components/toggle/Toggle.vue.js +17 -16
- package/components/toggle/index.d.ts +1 -1
- package/components/tooltip/TextWithTitleContent.vue.d.ts +1 -1
- package/components/tooltip/TextWithTitleContent.vue.js +8 -7
- package/components/tooltip/Tooltip.vue.d.ts +1 -1
- package/components/tooltip/Tooltip.vue.js +11 -10
- package/components/tooltip/index.d.ts +1 -1
- package/components/tooltip/storybookComponents/CustomTooltip.vue.d.ts +1 -1
- package/components/typography/Heading.vue.d.ts +1 -1
- package/components/typography/Heading.vue.js +4 -4
- package/components/typography/Text.vue.d.ts +1 -1
- package/components/typography/Text.vue.js +3 -3
- package/components/typography/index.d.ts +2 -2
- package/index.vue.js +3 -3
- package/package.json +5 -3
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, onUnmounted, computed, toRaw, openBlock, createElementBlock, normalizeClass,
|
|
2
|
-
|
|
1
|
+
import { defineComponent, ref, onMounted, onUnmounted, computed, toRaw, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, unref, createCommentVNode, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString, withModifiers } from 'vue';
|
|
2
|
+
import '../typography/Heading.vue.js';
|
|
3
3
|
import Text from '../typography/Text.vue.js';
|
|
4
4
|
import { useDropdownContext, Mode } from './DropdownContext.vue.js';
|
|
5
5
|
import { useId } from '../../composables/useId.vue.js';
|
|
6
6
|
import Checkbox from '../checkbox/Checkbox.vue.js';
|
|
7
7
|
import Icon from '../icon/Icon.vue.js';
|
|
8
8
|
import { NOOP } from '@vue/shared';
|
|
9
|
-
/* empty css */
|
|
9
|
+
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
10
|
+
|
|
10
11
|
import "../../Option.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
11
12
|
const _hoisted_1 = {
|
|
12
13
|
key: 1,
|
|
@@ -18,7 +19,7 @@ const _hoisted_2 = {
|
|
|
18
19
|
};
|
|
19
20
|
const _hoisted_3 = { class: "text-container" };
|
|
20
21
|
const _hoisted_4 = { key: 0 };
|
|
21
|
-
const _sfc_main =
|
|
22
|
+
const _sfc_main = defineComponent({
|
|
22
23
|
__name: "Option",
|
|
23
24
|
props: {
|
|
24
25
|
option: { default: null },
|
|
@@ -65,27 +66,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
65
66
|
ref_key: "el",
|
|
66
67
|
ref: el,
|
|
67
68
|
class: normalizeClass(["item-container", {
|
|
68
|
-
"item-container--disabled":
|
|
69
|
-
"item-container--active":
|
|
70
|
-
"item-container--selected":
|
|
71
|
-
"item-container--multi":
|
|
69
|
+
"item-container--disabled": _ctx.disabled,
|
|
70
|
+
"item-container--active": active.value,
|
|
71
|
+
"item-container--selected": selected.value,
|
|
72
|
+
"item-container--multi": isMulti.value
|
|
72
73
|
}])
|
|
73
74
|
}, [
|
|
74
75
|
createElementVNode("div", {
|
|
75
76
|
class: normalizeClass(["item", {
|
|
76
|
-
"item--multi":
|
|
77
|
+
"item--multi": isMulti.value,
|
|
77
78
|
"item--with-icon": _ctx.$slots["icon-start"] || _ctx.$slots.image
|
|
78
79
|
}])
|
|
79
80
|
}, [
|
|
80
|
-
|
|
81
|
+
isMulti.value ? (openBlock(), createBlock(unref(Checkbox), {
|
|
81
82
|
key: 0,
|
|
82
83
|
id: unref(id).toString(),
|
|
83
84
|
tabindex: "-1",
|
|
84
85
|
class: "checkbox",
|
|
85
86
|
size: "sm",
|
|
86
|
-
"is-checked":
|
|
87
|
-
"is-indeterminate":
|
|
88
|
-
onClick: _cache[0] || (_cache[0] = ($event) =>
|
|
87
|
+
"is-checked": selected.value,
|
|
88
|
+
"is-indeterminate": _ctx.isIndeterminate && !_ctx.option,
|
|
89
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.disabled ? unref(NOOP)() : onClick($event))
|
|
89
90
|
}, null, 8, ["id", "is-checked", "is-indeterminate"])) : createCommentVNode("", true),
|
|
90
91
|
_ctx.$slots.image ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
91
92
|
renderSlot(_ctx.$slots, "image", {}, void 0, true)
|
|
@@ -100,19 +101,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
100
101
|
]),
|
|
101
102
|
_: 3
|
|
102
103
|
}),
|
|
103
|
-
|
|
104
|
+
_ctx.subtitle ? (openBlock(), createBlock(unref(Text), {
|
|
104
105
|
key: 0,
|
|
105
106
|
class: "subtitle",
|
|
106
107
|
size: "xs"
|
|
107
108
|
}, {
|
|
108
109
|
default: withCtx(() => [
|
|
109
|
-
createTextVNode(toDisplayString(
|
|
110
|
+
createTextVNode(toDisplayString(_ctx.subtitle), 1)
|
|
110
111
|
]),
|
|
111
112
|
_: 1
|
|
112
113
|
})) : createCommentVNode("", true)
|
|
113
114
|
])
|
|
114
115
|
], 2),
|
|
115
|
-
unref(api).clearable &&
|
|
116
|
+
unref(api).clearable && selected.value ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
116
117
|
createElementVNode("button", {
|
|
117
118
|
class: "clear-button",
|
|
118
119
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => unref(api).clearSelection(), ["prevent", "stop"]))
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
2
|
export default _default;
|
|
@@ -10,7 +10,7 @@ const _hoisted_1 = {
|
|
|
10
10
|
class: "prefix"
|
|
11
11
|
};
|
|
12
12
|
const _hoisted_2 = ["disabled", "placeholder"];
|
|
13
|
-
const _sfc_main =
|
|
13
|
+
const _sfc_main = defineComponent({
|
|
14
14
|
__name: "SearchInput",
|
|
15
15
|
setup(__props) {
|
|
16
16
|
const api = useDropdownContext("searchInput");
|
|
@@ -63,7 +63,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
63
|
inputRef: inputEl.value,
|
|
64
64
|
disabled: unref(api).disabled,
|
|
65
65
|
change: onChange,
|
|
66
|
-
placeholder:
|
|
66
|
+
placeholder: placeholder.value
|
|
67
67
|
}, () => [
|
|
68
68
|
createElementVNode("div", {
|
|
69
69
|
class: normalizeClass(["container", {
|
|
@@ -73,7 +73,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
73
73
|
focused: isFocused.value
|
|
74
74
|
}])
|
|
75
75
|
}, [
|
|
76
|
-
|
|
76
|
+
showPrefix.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
77
77
|
renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
78
78
|
])) : createCommentVNode("", true),
|
|
79
79
|
createElementVNode("input", {
|
|
@@ -81,7 +81,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
81
81
|
ref: inputEl,
|
|
82
82
|
disabled: unref(api).disabled,
|
|
83
83
|
class: normalizeClass(["input", { "input--disabled": unref(api).disabled }]),
|
|
84
|
-
placeholder:
|
|
84
|
+
placeholder: placeholder.value,
|
|
85
85
|
onFocusin: _cache[0] || (_cache[0] = ($event) => isFocused.value = true),
|
|
86
86
|
onFocusout: _cache[1] || (_cache[1] = ($event) => isFocused.value = false),
|
|
87
87
|
onInput: onChange
|
|
@@ -90,7 +90,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
90
90
|
variant: "colorized",
|
|
91
91
|
size: "sm",
|
|
92
92
|
theme: "secondary",
|
|
93
|
-
class: normalizeClass(["search-right-icon", { "search-right-icon-clear":
|
|
93
|
+
class: normalizeClass(["search-right-icon", { "search-right-icon-clear": showClear.value }]),
|
|
94
94
|
disabled: unref(api).disabled
|
|
95
95
|
}, {
|
|
96
96
|
default: withCtx(() => [
|
|
@@ -103,7 +103,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
103
103
|
unref(api).open.value ? (openBlock(), createBlock(unref(Icon), {
|
|
104
104
|
key: 1,
|
|
105
105
|
"font-size": "sm",
|
|
106
|
-
name:
|
|
106
|
+
name: rightIcon.value,
|
|
107
107
|
onClick: onClearClick
|
|
108
108
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
109
109
|
]),
|
|
@@ -2,402 +2,5 @@ import Dropdown from './Dropdown.vue';
|
|
|
2
2
|
import Option from './Option.vue';
|
|
3
3
|
import Label from './Label.vue';
|
|
4
4
|
import SearchInput from './SearchInput.vue';
|
|
5
|
-
declare const DropdownTypes: () =>
|
|
6
|
-
size: {
|
|
7
|
-
type: import("vue").PropType<"sm" | "lg">;
|
|
8
|
-
} & {
|
|
9
|
-
default: string;
|
|
10
|
-
};
|
|
11
|
-
title: {
|
|
12
|
-
type: import("vue").PropType<string>;
|
|
13
|
-
} & {
|
|
14
|
-
default: string;
|
|
15
|
-
};
|
|
16
|
-
error: {
|
|
17
|
-
type: import("vue").PropType<string>;
|
|
18
|
-
} & {
|
|
19
|
-
default: string;
|
|
20
|
-
};
|
|
21
|
-
theme: {
|
|
22
|
-
type: import("vue").PropType<string>;
|
|
23
|
-
} & {
|
|
24
|
-
default: string;
|
|
25
|
-
};
|
|
26
|
-
loading: {
|
|
27
|
-
type: import("vue").PropType<boolean>;
|
|
28
|
-
};
|
|
29
|
-
placement: {
|
|
30
|
-
type: import("vue").PropType<import("floating-vue").Placement>;
|
|
31
|
-
} & {
|
|
32
|
-
default: string;
|
|
33
|
-
};
|
|
34
|
-
disabled: {
|
|
35
|
-
type: import("vue").PropType<boolean>;
|
|
36
|
-
} & {
|
|
37
|
-
default: boolean;
|
|
38
|
-
};
|
|
39
|
-
selected: {
|
|
40
|
-
type: import("vue").PropType<unknown>;
|
|
41
|
-
} & {
|
|
42
|
-
default: any;
|
|
43
|
-
};
|
|
44
|
-
options: {
|
|
45
|
-
type: import("vue").PropType<unknown[]>;
|
|
46
|
-
required: true;
|
|
47
|
-
};
|
|
48
|
-
modelValue: {
|
|
49
|
-
type: import("vue").PropType<unknown>;
|
|
50
|
-
} & {
|
|
51
|
-
default: any;
|
|
52
|
-
};
|
|
53
|
-
placeholder: {
|
|
54
|
-
type: import("vue").PropType<string>;
|
|
55
|
-
} & {
|
|
56
|
-
default: string;
|
|
57
|
-
};
|
|
58
|
-
multi: {
|
|
59
|
-
type: import("vue").PropType<boolean>;
|
|
60
|
-
} & {
|
|
61
|
-
default: boolean;
|
|
62
|
-
};
|
|
63
|
-
searchPlaceholder: {
|
|
64
|
-
type: import("vue").PropType<string>;
|
|
65
|
-
} & {
|
|
66
|
-
default: string;
|
|
67
|
-
};
|
|
68
|
-
popperClass: {
|
|
69
|
-
type: import("vue").PropType<string>;
|
|
70
|
-
} & {
|
|
71
|
-
default: string;
|
|
72
|
-
};
|
|
73
|
-
mandatory: {
|
|
74
|
-
type: import("vue").PropType<boolean>;
|
|
75
|
-
} & {
|
|
76
|
-
default: boolean;
|
|
77
|
-
};
|
|
78
|
-
showButtonOnOpen: {
|
|
79
|
-
type: import("vue").PropType<boolean>;
|
|
80
|
-
} & {
|
|
81
|
-
default: boolean;
|
|
82
|
-
};
|
|
83
|
-
inlineSearch: {
|
|
84
|
-
type: import("vue").PropType<boolean>;
|
|
85
|
-
} & {
|
|
86
|
-
default: boolean;
|
|
87
|
-
};
|
|
88
|
-
isOnTop: {
|
|
89
|
-
type: import("vue").PropType<boolean>;
|
|
90
|
-
} & {
|
|
91
|
-
default: boolean;
|
|
92
|
-
};
|
|
93
|
-
distance: {
|
|
94
|
-
type: import("vue").PropType<number>;
|
|
95
|
-
} & {
|
|
96
|
-
default: number;
|
|
97
|
-
};
|
|
98
|
-
skidding: {
|
|
99
|
-
type: import("vue").PropType<number>;
|
|
100
|
-
} & {
|
|
101
|
-
default: number;
|
|
102
|
-
};
|
|
103
|
-
noResultsText: {
|
|
104
|
-
type: import("vue").PropType<string>;
|
|
105
|
-
} & {
|
|
106
|
-
default: string;
|
|
107
|
-
};
|
|
108
|
-
autoFocus: {
|
|
109
|
-
type: import("vue").PropType<boolean>;
|
|
110
|
-
} & {
|
|
111
|
-
default: boolean;
|
|
112
|
-
};
|
|
113
|
-
defaultOpen: {
|
|
114
|
-
type: import("vue").PropType<boolean>;
|
|
115
|
-
} & {
|
|
116
|
-
default: boolean;
|
|
117
|
-
};
|
|
118
|
-
clearable: {
|
|
119
|
-
type: import("vue").PropType<boolean>;
|
|
120
|
-
} & {
|
|
121
|
-
default: boolean;
|
|
122
|
-
};
|
|
123
|
-
onSearch: {
|
|
124
|
-
type: import("vue").PropType<(option: any, term: string) => boolean>;
|
|
125
|
-
} & {
|
|
126
|
-
default: () => true;
|
|
127
|
-
};
|
|
128
|
-
helperText: {
|
|
129
|
-
type: import("vue").PropType<string>;
|
|
130
|
-
} & {
|
|
131
|
-
default: string;
|
|
132
|
-
};
|
|
133
|
-
container: {
|
|
134
|
-
type: import("vue").PropType<string>;
|
|
135
|
-
} & {
|
|
136
|
-
default: string;
|
|
137
|
-
};
|
|
138
|
-
flip: {
|
|
139
|
-
type: import("vue").PropType<boolean>;
|
|
140
|
-
} & {
|
|
141
|
-
default: boolean;
|
|
142
|
-
};
|
|
143
|
-
keepOpen: {
|
|
144
|
-
type: import("vue").PropType<boolean>;
|
|
145
|
-
} & {
|
|
146
|
-
default: boolean;
|
|
147
|
-
};
|
|
148
|
-
autoSize: {
|
|
149
|
-
type: import("vue").PropType<boolean>;
|
|
150
|
-
} & {
|
|
151
|
-
default: boolean;
|
|
152
|
-
};
|
|
153
|
-
disableKeyboardEvents: {
|
|
154
|
-
type: import("vue").PropType<boolean>;
|
|
155
|
-
} & {
|
|
156
|
-
default: boolean;
|
|
157
|
-
};
|
|
158
|
-
multiOptionsPlaceholderPrefix: {
|
|
159
|
-
type: import("vue").PropType<string>;
|
|
160
|
-
} & {
|
|
161
|
-
default: string;
|
|
162
|
-
};
|
|
163
|
-
multiOptionsPlaceholderSuffix: {
|
|
164
|
-
type: import("vue").PropType<string>;
|
|
165
|
-
} & {
|
|
166
|
-
default: string;
|
|
167
|
-
};
|
|
168
|
-
showSelectAll: {
|
|
169
|
-
type: import("vue").PropType<boolean>;
|
|
170
|
-
};
|
|
171
|
-
isOpen: {
|
|
172
|
-
type: import("vue").PropType<boolean>;
|
|
173
|
-
};
|
|
174
|
-
displayValue: {
|
|
175
|
-
type: import("vue").PropType<(option: unknown) => string>;
|
|
176
|
-
required: true;
|
|
177
|
-
};
|
|
178
|
-
}, {
|
|
179
|
-
selectItem: (option: any, index?: number) => void;
|
|
180
|
-
scrollTo: (index: number) => void;
|
|
181
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
182
|
-
"update:selected": (value: unknown) => void;
|
|
183
|
-
} & {
|
|
184
|
-
"update:isOpen": (value: unknown) => void;
|
|
185
|
-
} & {
|
|
186
|
-
closed: () => void;
|
|
187
|
-
} & {
|
|
188
|
-
opened: () => void;
|
|
189
|
-
} & {
|
|
190
|
-
apply: (value: unknown) => void;
|
|
191
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
192
|
-
size: {
|
|
193
|
-
type: import("vue").PropType<"sm" | "lg">;
|
|
194
|
-
} & {
|
|
195
|
-
default: string;
|
|
196
|
-
};
|
|
197
|
-
title: {
|
|
198
|
-
type: import("vue").PropType<string>;
|
|
199
|
-
} & {
|
|
200
|
-
default: string;
|
|
201
|
-
};
|
|
202
|
-
error: {
|
|
203
|
-
type: import("vue").PropType<string>;
|
|
204
|
-
} & {
|
|
205
|
-
default: string;
|
|
206
|
-
};
|
|
207
|
-
theme: {
|
|
208
|
-
type: import("vue").PropType<string>;
|
|
209
|
-
} & {
|
|
210
|
-
default: string;
|
|
211
|
-
};
|
|
212
|
-
loading: {
|
|
213
|
-
type: import("vue").PropType<boolean>;
|
|
214
|
-
};
|
|
215
|
-
placement: {
|
|
216
|
-
type: import("vue").PropType<import("floating-vue").Placement>;
|
|
217
|
-
} & {
|
|
218
|
-
default: string;
|
|
219
|
-
};
|
|
220
|
-
disabled: {
|
|
221
|
-
type: import("vue").PropType<boolean>;
|
|
222
|
-
} & {
|
|
223
|
-
default: boolean;
|
|
224
|
-
};
|
|
225
|
-
selected: {
|
|
226
|
-
type: import("vue").PropType<unknown>;
|
|
227
|
-
} & {
|
|
228
|
-
default: any;
|
|
229
|
-
};
|
|
230
|
-
options: {
|
|
231
|
-
type: import("vue").PropType<unknown[]>;
|
|
232
|
-
required: true;
|
|
233
|
-
};
|
|
234
|
-
modelValue: {
|
|
235
|
-
type: import("vue").PropType<unknown>;
|
|
236
|
-
} & {
|
|
237
|
-
default: any;
|
|
238
|
-
};
|
|
239
|
-
placeholder: {
|
|
240
|
-
type: import("vue").PropType<string>;
|
|
241
|
-
} & {
|
|
242
|
-
default: string;
|
|
243
|
-
};
|
|
244
|
-
multi: {
|
|
245
|
-
type: import("vue").PropType<boolean>;
|
|
246
|
-
} & {
|
|
247
|
-
default: boolean;
|
|
248
|
-
};
|
|
249
|
-
searchPlaceholder: {
|
|
250
|
-
type: import("vue").PropType<string>;
|
|
251
|
-
} & {
|
|
252
|
-
default: string;
|
|
253
|
-
};
|
|
254
|
-
popperClass: {
|
|
255
|
-
type: import("vue").PropType<string>;
|
|
256
|
-
} & {
|
|
257
|
-
default: string;
|
|
258
|
-
};
|
|
259
|
-
mandatory: {
|
|
260
|
-
type: import("vue").PropType<boolean>;
|
|
261
|
-
} & {
|
|
262
|
-
default: boolean;
|
|
263
|
-
};
|
|
264
|
-
showButtonOnOpen: {
|
|
265
|
-
type: import("vue").PropType<boolean>;
|
|
266
|
-
} & {
|
|
267
|
-
default: boolean;
|
|
268
|
-
};
|
|
269
|
-
inlineSearch: {
|
|
270
|
-
type: import("vue").PropType<boolean>;
|
|
271
|
-
} & {
|
|
272
|
-
default: boolean;
|
|
273
|
-
};
|
|
274
|
-
isOnTop: {
|
|
275
|
-
type: import("vue").PropType<boolean>;
|
|
276
|
-
} & {
|
|
277
|
-
default: boolean;
|
|
278
|
-
};
|
|
279
|
-
distance: {
|
|
280
|
-
type: import("vue").PropType<number>;
|
|
281
|
-
} & {
|
|
282
|
-
default: number;
|
|
283
|
-
};
|
|
284
|
-
skidding: {
|
|
285
|
-
type: import("vue").PropType<number>;
|
|
286
|
-
} & {
|
|
287
|
-
default: number;
|
|
288
|
-
};
|
|
289
|
-
noResultsText: {
|
|
290
|
-
type: import("vue").PropType<string>;
|
|
291
|
-
} & {
|
|
292
|
-
default: string;
|
|
293
|
-
};
|
|
294
|
-
autoFocus: {
|
|
295
|
-
type: import("vue").PropType<boolean>;
|
|
296
|
-
} & {
|
|
297
|
-
default: boolean;
|
|
298
|
-
};
|
|
299
|
-
defaultOpen: {
|
|
300
|
-
type: import("vue").PropType<boolean>;
|
|
301
|
-
} & {
|
|
302
|
-
default: boolean;
|
|
303
|
-
};
|
|
304
|
-
clearable: {
|
|
305
|
-
type: import("vue").PropType<boolean>;
|
|
306
|
-
} & {
|
|
307
|
-
default: boolean;
|
|
308
|
-
};
|
|
309
|
-
onSearch: {
|
|
310
|
-
type: import("vue").PropType<(option: any, term: string) => boolean>;
|
|
311
|
-
} & {
|
|
312
|
-
default: () => true;
|
|
313
|
-
};
|
|
314
|
-
helperText: {
|
|
315
|
-
type: import("vue").PropType<string>;
|
|
316
|
-
} & {
|
|
317
|
-
default: string;
|
|
318
|
-
};
|
|
319
|
-
container: {
|
|
320
|
-
type: import("vue").PropType<string>;
|
|
321
|
-
} & {
|
|
322
|
-
default: string;
|
|
323
|
-
};
|
|
324
|
-
flip: {
|
|
325
|
-
type: import("vue").PropType<boolean>;
|
|
326
|
-
} & {
|
|
327
|
-
default: boolean;
|
|
328
|
-
};
|
|
329
|
-
keepOpen: {
|
|
330
|
-
type: import("vue").PropType<boolean>;
|
|
331
|
-
} & {
|
|
332
|
-
default: boolean;
|
|
333
|
-
};
|
|
334
|
-
autoSize: {
|
|
335
|
-
type: import("vue").PropType<boolean>;
|
|
336
|
-
} & {
|
|
337
|
-
default: boolean;
|
|
338
|
-
};
|
|
339
|
-
disableKeyboardEvents: {
|
|
340
|
-
type: import("vue").PropType<boolean>;
|
|
341
|
-
} & {
|
|
342
|
-
default: boolean;
|
|
343
|
-
};
|
|
344
|
-
multiOptionsPlaceholderPrefix: {
|
|
345
|
-
type: import("vue").PropType<string>;
|
|
346
|
-
} & {
|
|
347
|
-
default: string;
|
|
348
|
-
};
|
|
349
|
-
multiOptionsPlaceholderSuffix: {
|
|
350
|
-
type: import("vue").PropType<string>;
|
|
351
|
-
} & {
|
|
352
|
-
default: string;
|
|
353
|
-
};
|
|
354
|
-
showSelectAll: {
|
|
355
|
-
type: import("vue").PropType<boolean>;
|
|
356
|
-
};
|
|
357
|
-
isOpen: {
|
|
358
|
-
type: import("vue").PropType<boolean>;
|
|
359
|
-
};
|
|
360
|
-
displayValue: {
|
|
361
|
-
type: import("vue").PropType<(option: unknown) => string>;
|
|
362
|
-
required: true;
|
|
363
|
-
};
|
|
364
|
-
}>> & {
|
|
365
|
-
"onUpdate:selected"?: (value: unknown) => any;
|
|
366
|
-
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
367
|
-
onClosed?: () => any;
|
|
368
|
-
onOpened?: () => any;
|
|
369
|
-
onApply?: (value: unknown) => any;
|
|
370
|
-
}, {
|
|
371
|
-
size: "sm" | "lg";
|
|
372
|
-
title: string;
|
|
373
|
-
error: string;
|
|
374
|
-
theme: string;
|
|
375
|
-
placement: import("floating-vue").Placement;
|
|
376
|
-
disabled: boolean;
|
|
377
|
-
selected: any;
|
|
378
|
-
modelValue: any;
|
|
379
|
-
placeholder: string;
|
|
380
|
-
multi: boolean;
|
|
381
|
-
searchPlaceholder: string;
|
|
382
|
-
popperClass: string;
|
|
383
|
-
mandatory: boolean;
|
|
384
|
-
showButtonOnOpen: boolean;
|
|
385
|
-
inlineSearch: boolean;
|
|
386
|
-
isOnTop: boolean;
|
|
387
|
-
distance: number;
|
|
388
|
-
skidding: number;
|
|
389
|
-
noResultsText: string;
|
|
390
|
-
autoFocus: boolean;
|
|
391
|
-
defaultOpen: boolean;
|
|
392
|
-
clearable: boolean;
|
|
393
|
-
onSearch: (option: any, term: string) => boolean;
|
|
394
|
-
helperText: string;
|
|
395
|
-
container: string;
|
|
396
|
-
flip: boolean;
|
|
397
|
-
keepOpen: boolean;
|
|
398
|
-
autoSize: boolean;
|
|
399
|
-
disableKeyboardEvents: boolean;
|
|
400
|
-
multiOptionsPlaceholderPrefix: string;
|
|
401
|
-
multiOptionsPlaceholderSuffix: string;
|
|
402
|
-
}> | import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>)[];
|
|
5
|
+
declare const DropdownTypes: () => import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>[];
|
|
403
6
|
export { Dropdown, Option, Label, SearchInput, DropdownTypes };
|
|
@@ -63,7 +63,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
63
63
|
isBordered: boolean;
|
|
64
64
|
iconWidth: number;
|
|
65
65
|
iconHeight: number;
|
|
66
|
-
}>;
|
|
66
|
+
}, {}>;
|
|
67
67
|
export default _default;
|
|
68
68
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
69
69
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createBlock, normalizeProps, mergeProps,
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createBlock, normalizeProps, mergeProps, createCommentVNode, unref, withCtx, createTextVNode, toDisplayString } from 'vue';
|
|
2
2
|
import Button from '../button/Button.vue.js';
|
|
3
|
+
import '../button/IconButton.vue.js';
|
|
4
|
+
import '../button/ScrollButton.vue.js';
|
|
5
|
+
import EmptyStateIcon from './EmptyStateIcon.vue.js';
|
|
3
6
|
import Icon from '../icon/Icon.vue.js';
|
|
4
|
-
|
|
7
|
+
import '../typography/Heading.vue.js';
|
|
5
8
|
import Text from '../typography/Text.vue.js';
|
|
6
|
-
/* empty css
|
|
7
|
-
|
|
8
|
-
/* empty css */
|
|
9
|
+
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
10
|
+
|
|
9
11
|
import "../../EmptyState.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
10
12
|
const _hoisted_1 = { class: "empty-state-title-container" };
|
|
11
|
-
const _sfc_main =
|
|
13
|
+
const _sfc_main = defineComponent({
|
|
12
14
|
__name: "EmptyState",
|
|
13
15
|
props: {
|
|
14
16
|
title: { default: void 0 },
|
|
@@ -34,57 +36,57 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
36
|
});
|
|
35
37
|
return (_ctx, _cache) => {
|
|
36
38
|
return openBlock(), createElementBlock("div", {
|
|
37
|
-
class: normalizeClass(["empty-state-container", { horizontal:
|
|
39
|
+
class: normalizeClass(["empty-state-container", { horizontal: _ctx.isHorizontal, bordered: _ctx.isBordered }])
|
|
38
40
|
}, [
|
|
39
41
|
createElementVNode("div", {
|
|
40
|
-
class: normalizeClass(`empty-state-icon-container empty-state-icon-container--${
|
|
42
|
+
class: normalizeClass(`empty-state-icon-container empty-state-icon-container--${_ctx.size}`)
|
|
41
43
|
}, [
|
|
42
|
-
|
|
43
|
-
!
|
|
44
|
-
|
|
44
|
+
_ctx.hasIcon ? renderSlot(_ctx.$slots, "icon", { key: 0 }, () => [
|
|
45
|
+
!_ctx.iconName ? (openBlock(), createBlock(EmptyStateIcon, normalizeProps(mergeProps({ key: 0 }, iconProps.value)), null, 16)) : createCommentVNode("", true),
|
|
46
|
+
_ctx.iconName ? (openBlock(), createBlock(unref(Icon), {
|
|
45
47
|
key: 1,
|
|
46
|
-
name:
|
|
47
|
-
"font-size":
|
|
48
|
+
name: _ctx.iconName,
|
|
49
|
+
"font-size": _ctx.fontSize,
|
|
48
50
|
class: "empty-state-icon"
|
|
49
51
|
}, null, 8, ["name", "font-size"])) : createCommentVNode("", true)
|
|
50
52
|
], true) : createCommentVNode("", true)
|
|
51
53
|
], 2),
|
|
52
54
|
createElementVNode("div", _hoisted_1, [
|
|
53
55
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
54
|
-
|
|
56
|
+
_ctx.title ? (openBlock(), createBlock(unref(Text), {
|
|
55
57
|
key: 0,
|
|
56
58
|
size: "lg",
|
|
57
59
|
strong: "",
|
|
58
60
|
class: "empty-state-title"
|
|
59
61
|
}, {
|
|
60
62
|
default: withCtx(() => [
|
|
61
|
-
createTextVNode(toDisplayString(
|
|
63
|
+
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
62
64
|
]),
|
|
63
65
|
_: 1
|
|
64
66
|
})) : createCommentVNode("", true)
|
|
65
67
|
], true),
|
|
66
68
|
renderSlot(_ctx.$slots, "subtitle", {}, () => [
|
|
67
|
-
|
|
69
|
+
_ctx.subtitle ? (openBlock(), createBlock(unref(Text), {
|
|
68
70
|
key: 0,
|
|
69
71
|
size: "sm",
|
|
70
72
|
class: "empty-state-subtitle"
|
|
71
73
|
}, {
|
|
72
74
|
default: withCtx(() => [
|
|
73
|
-
createTextVNode(toDisplayString(
|
|
75
|
+
createTextVNode(toDisplayString(_ctx.subtitle), 1)
|
|
74
76
|
]),
|
|
75
77
|
_: 1
|
|
76
78
|
})) : createCommentVNode("", true)
|
|
77
79
|
], true)
|
|
78
80
|
]),
|
|
79
81
|
renderSlot(_ctx.$slots, "button", {}, () => [
|
|
80
|
-
|
|
82
|
+
_ctx.buttonText ? (openBlock(), createBlock(unref(Button), {
|
|
81
83
|
key: 0,
|
|
82
84
|
theme: "secondary",
|
|
83
85
|
class: "empty-state-button",
|
|
84
86
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click"))
|
|
85
87
|
}, {
|
|
86
88
|
default: withCtx(() => [
|
|
87
|
-
createTextVNode(toDisplayString(
|
|
89
|
+
createTextVNode(toDisplayString(_ctx.buttonText), 1)
|
|
88
90
|
]),
|
|
89
91
|
_: 1
|
|
90
92
|
})) : createCommentVNode("", true)
|
|
@@ -130,6 +130,6 @@ declare const EmptyStateTypes: () => import("vue").DefineComponent<{
|
|
|
130
130
|
isBordered: boolean;
|
|
131
131
|
iconWidth: number;
|
|
132
132
|
iconHeight: number;
|
|
133
|
-
}>[];
|
|
133
|
+
}, {}>[];
|
|
134
134
|
export { default as EmptyState } from './EmptyState.vue';
|
|
135
135
|
export { EmptyStateTypes };
|
|
@@ -6,7 +6,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
6
6
|
selected?: boolean;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
prefix?: string;
|
|
9
|
-
}>>>, {}>;
|
|
9
|
+
}>>>, {}, {}>;
|
|
10
10
|
export default _default;
|
|
11
11
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
12
|
type __VLS_TypePropsToRuntimeProps<T> = {
|