@ironsource/shared-ui 2.1.11-test.9 → 2.1.11-test.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_a1c626cd_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +1 -0
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2ba23450_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css +1 -0
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css +1 -0
- package/EditableV4.vue_vue_type_style_index_0_scoped_1bbe222a_lang.css +1 -0
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +1 -0
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_383011d3_lang.css +1 -0
- package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +1 -0
- package/IconFlag.vue_vue_type_style_index_0_scoped_be9dc7bb_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +1 -0
- package/README.md +4 -15
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_89fe8aa1_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_2ca7b24c_lang.css +1 -0
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +1 -0
- package/Typography.vue_vue_type_style_index_0_scoped_5714d43e_lang.css +1 -0
- package/components/autocomplete/Autocomplete.vue2.js +1 -1
- package/components/chart/Chart.vue.d.ts +16 -3
- package/components/chart/Chart.vue.js +5 -5
- package/components/chart/Chart.vue2.js +127 -110
- package/components/chart/ChartHeader.vue.d.ts +13 -6
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +32 -29
- package/components/chart/ChartLegend.vue.d.ts +5 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +99 -49
- package/components/chart/ChartTooltip.vue.d.ts +4 -5
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +64 -43
- package/components/chart/SettingsHeader.vue2.js +1 -1
- package/components/chart/index.d.ts +55 -16
- package/components/chart/mockData.d.ts +15 -2
- package/components/chart/types.d.ts +15 -1
- package/components/chart/utils/utils.js +5 -5
- package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
- package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
- package/components/datePicker/v4/DatePickerV4.vue2.js +1 -1
- package/components/dateRange/v4/DateRangeV4.vue2.js +1 -1
- package/components/dialog/v4/DialogV4.vue.d.ts +15 -0
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +80 -73
- package/components/dialog/v4/index.d.ts +58 -1
- package/components/dropdown/common/Dropdown.common.js +180 -169
- package/components/dropdown/v3/index.d.ts +12 -12
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +15 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +42 -20
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +10 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +59 -40
- package/components/dropdown/v4/{ConditionalDroprown.vue.d.ts → ConditionalDropdown.vue.d.ts} +60 -0
- package/components/dropdown/v4/ConditionalDropdown.vue.js +7 -0
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +239 -0
- package/components/dropdown/v4/DropdownV4.vue.d.ts +18 -5
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +52 -50
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +87 -87
- package/components/dropdown/v4/index.d.ts +205 -35
- package/components/dropdown/v4/index.js +3 -3
- package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
- package/components/emptyState/v4/EmptyStateV4.vue2.js +1 -1
- package/components/filtersPanel/v4/FiltersPanelV4.vue.js +2 -2
- package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +8 -9
- package/components/forms/FormCard.vue.js +3 -3
- package/components/forms/FormCard.vue2.js +1 -1
- package/components/icon/v4/IconFlag.vue.js +3 -3
- package/components/icon/v4/IconFlag.vue2.js +1 -1
- package/components/icon/v4/consts.d.ts +1 -1
- package/components/icon/v4/consts.js +1 -1
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +185 -165
- package/components/multibar/MultiBarMenu.vue2.js +1 -1
- package/components/popover/v4/PopoverV4.vue.d.ts +11 -1
- package/components/popover/v4/PopoverV4.vue.js +2 -2
- package/components/popover/v4/PopoverV4.vue2.js +40 -26
- package/components/popover/v4/index.d.ts +46 -8
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +7 -116
- package/components/snackbar/v4/SnackbarV4.vue.js +5 -5
- package/components/snackbar/v4/SnackbarV4.vue2.js +62 -60
- package/components/sortableList/SortableItem.vue.d.ts +5 -0
- package/components/sortableList/SortableItem.vue.js +2 -2
- package/components/sortableList/SortableItem.vue2.js +86 -70
- package/components/sortableList/SortableItemLabel.vue.js +3 -3
- package/components/sortableList/SortableItemLabel.vue2.js +20 -23
- package/components/sortableList/SortableList.vue.d.ts +17 -1
- package/components/sortableList/SortableList.vue.js +4 -4
- package/components/sortableList/SortableList.vue2.js +113 -94
- package/components/sortableList/index.d.ts +63 -5
- package/components/table/common/Table.common.d.ts +1 -1
- package/components/table/common/Table.common.js +82 -74
- package/components/table/common/Table.types.d.ts +1 -1
- package/components/table/common/consts.d.ts +4 -0
- package/components/table/common/consts.js +7 -0
- package/components/table/v3/Table.vue.d.ts +1 -1
- package/components/table/v3/index.d.ts +5 -5
- package/components/table/v4/DataGrid.vue.d.ts +12 -2
- package/components/table/v4/DataGrid.vue.js +2 -2
- package/components/table/v4/DataGrid.vue2.js +164 -155
- package/components/table/v4/DataGridMenu.vue.js +5 -5
- package/components/table/v4/DataGridMenu.vue2.js +2 -2
- package/components/table/v4/MultipleDataGrid.vue.d.ts +1 -1
- package/components/table/v4/index.d.ts +84 -46
- package/components/table-cells/common/Editable.common.js +29 -23
- package/components/table-cells/common/EditableContext.d.ts +1 -0
- package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
- package/components/table-cells/v4/EditableV4.vue.js +3 -3
- package/components/table-cells/v4/EditableV4.vue2.js +11 -10
- package/components/table-cells/v4/index.d.ts +20 -1
- package/components/tooltip/v4/TooltipV4.vue.d.ts +10 -0
- package/components/tooltip/v4/TooltipV4.vue.js +3 -3
- package/components/tooltip/v4/TooltipV4.vue2.js +24 -21
- package/components/tooltip/v4/index.d.ts +39 -1
- package/components/typography/v4/Typography.vue.js +3 -3
- package/components/typography/v4/Typography.vue2.js +24 -18
- package/design-foundation.stories/icons/iconsData.d.ts +1 -1
- package/index.d.ts +1097 -204
- package/index.js +1 -1
- package/mocks/words.d.ts +1 -1
- package/package.json +1 -1
- package/style/v4/grid.css +1 -1
- package/style/v4/grid.css.map +1 -1
- package/style/v4/spacings.scss +1 -0
- package/testids/index.d.ts +2 -0
- package/testids/index.js +13 -13
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +0 -1
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_8e5b619a_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_ba28c717_lang.css +0 -1
- package/ConditionalDroprown.vue_vue_type_style_index_0_scoped_546e19a9_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +0 -1
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_a6e4672f_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_f88a132e_lang.css +0 -1
- package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +0 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +0 -1
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css +0 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_c7965a69_lang.css +0 -1
- package/IconFlag.vue_vue_type_style_index_0_scoped_7b09cc85_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_df830bf5_lang.css +0 -1
- package/PopoverV4.vue_vue_type_style_index_0_scoped_43b5cba4_lang.css +0 -1
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_49c5ccea_lang.css +0 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +0 -1
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_bdfb0aef_lang.css +0 -1
- package/Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css +0 -1
- package/components/dropdown/v4/ConditionalDroprown.vue.js +0 -7
- package/components/dropdown/v4/ConditionalDroprown.vue2.js +0 -157
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../IconFlag.
|
|
1
|
+
import "../../../IconFlag.vue_vue_type_style_index_0_scoped_be9dc7bb_lang.css"; import { defineComponent as n, computed as a, openBlock as e, createElementBlock as t, createElementVNode as c, unref as l } from "vue";
|
|
2
2
|
import { ASSETS_BASE_URL as i } from "./consts.js";
|
|
3
3
|
const d = { class: "icon-flag" }, u = {
|
|
4
4
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ASSETS_BASE_URL = "https://
|
|
1
|
+
export declare const ASSETS_BASE_URL = "https://shared-platform-assets.ironsrc.mobi/assets";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./TextField.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../TextField.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-fce3948c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import "../../../TextField.
|
|
1
|
+
import "../../../TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css"; import { defineComponent as ee, computed as o, ref as te, openBlock as n, createElementBlock as u, mergeProps as f, unref as e, createBlock as d, createCommentVNode as i, createVNode as x, withCtx as h, createElementVNode as O, normalizeClass as V, renderSlot as $, createTextVNode as z, toDisplayString as D, withKeys as le, withModifiers as N, normalizeProps as H } from "vue";
|
|
2
2
|
import v from "../../icon/v4/IconV4.vue.js";
|
|
3
3
|
import "../../icon/v4/IconFlag.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import S from "../../tooltip/v4/TooltipV4.vue.js";
|
|
5
|
+
import R from "../../typography/v4/Typography.vue.js";
|
|
6
6
|
import { InputTestIdModifiers as m } from "../../../testids/index.js";
|
|
7
|
-
import { inputCommon as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { useTestIdAttrs as
|
|
12
|
-
const
|
|
7
|
+
import { inputCommon as ne } from "../common/Input.common.js";
|
|
8
|
+
import ae from "../../shared/FieldLabel.vue.js";
|
|
9
|
+
import oe from "../../shared/FieldHelpText.vue.js";
|
|
10
|
+
import W from "../../shared/FieldMaxLength.vue.js";
|
|
11
|
+
import { useTestIdAttrs as ie } from "../../../utils/testIds.js";
|
|
12
|
+
const re = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "icon-container icon-before"
|
|
15
|
-
},
|
|
16
|
-
key:
|
|
15
|
+
}, se = ["maxlength", "value", "placeholder", "disabled", "type", "step"], de = ["onClick"], ue = {
|
|
16
|
+
key: 5,
|
|
17
17
|
class: "inline-error"
|
|
18
|
-
},
|
|
18
|
+
}, fe = {
|
|
19
19
|
key: 7,
|
|
20
20
|
class: "icon-container icon-after"
|
|
21
|
-
},
|
|
21
|
+
}, ce = {
|
|
22
22
|
inheritAttrs: !1
|
|
23
|
-
},
|
|
24
|
-
...
|
|
23
|
+
}, Ie = /* @__PURE__ */ ee({
|
|
24
|
+
...ce,
|
|
25
25
|
__name: "TextField",
|
|
26
26
|
props: {
|
|
27
27
|
modelValue: { default: "" },
|
|
@@ -54,168 +54,188 @@ const te = {
|
|
|
54
54
|
inlineErrorTextPlacement: { default: "top" }
|
|
55
55
|
},
|
|
56
56
|
emits: ["update:modelValue", "apply"],
|
|
57
|
-
setup(
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
},
|
|
61
|
-
onConfirm:
|
|
62
|
-
onEnter:
|
|
57
|
+
setup(t, { expose: K, emit: k }) {
|
|
58
|
+
const l = t, y = ie(l.testId, m), M = () => {
|
|
59
|
+
l.showApply ? k("apply") : r?.confirmable && U();
|
|
60
|
+
}, G = () => g.value.focus(), {
|
|
61
|
+
onConfirm: U,
|
|
62
|
+
onEnter: w,
|
|
63
63
|
inputRef: g,
|
|
64
|
-
isFocused:
|
|
65
|
-
showLabelInside:
|
|
66
|
-
api:
|
|
67
|
-
labelText:
|
|
68
|
-
sizeClass:
|
|
64
|
+
isFocused: b,
|
|
65
|
+
showLabelInside: I,
|
|
66
|
+
api: r,
|
|
67
|
+
labelText: j,
|
|
68
|
+
sizeClass: q,
|
|
69
69
|
handleInput: L,
|
|
70
|
-
handleKeypress:
|
|
71
|
-
} =
|
|
72
|
-
currentLength:
|
|
73
|
-
maxLength:
|
|
74
|
-
})),
|
|
75
|
-
() =>
|
|
76
|
-
),
|
|
77
|
-
() =>
|
|
78
|
-
),
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
70
|
+
handleKeypress: P
|
|
71
|
+
} = ne(l, k), C = o(() => r.value?.value ?? l.modelValue), J = o(() => (C.value || "").length), E = o(() => ({
|
|
72
|
+
currentLength: J.value,
|
|
73
|
+
maxLength: l.maxLength
|
|
74
|
+
})), A = o(
|
|
75
|
+
() => l.maxLength && l.maxLengthCounterPosition === "outside"
|
|
76
|
+
), Q = o(
|
|
77
|
+
() => l.feedbackText || A.value
|
|
78
|
+
), T = o(
|
|
79
|
+
() => !l.inlineErrorText && !r?.error?.value
|
|
80
|
+
), B = o(
|
|
81
|
+
() => l.inlineErrorText || r?.error?.value
|
|
82
|
+
), X = o(
|
|
83
|
+
() => (l.inlineError || r?.withIcons) && !T.value
|
|
84
|
+
), Y = o(
|
|
85
|
+
() => !l.inlineError && !r?.withIcons && !T.value
|
|
86
|
+
), Z = o(
|
|
87
|
+
() => l.showApply || r?.confirmable && r?.withIcons && !r?.error?.value
|
|
88
|
+
), F = o(
|
|
89
|
+
() => r?.error?.value ? "error" : l.feedbackVariant
|
|
90
|
+
), p = te(!1), _ = o(() => p.value && l.type === "password" ? "text" : l.type);
|
|
91
|
+
return K({
|
|
92
|
+
manualFocus: G
|
|
93
|
+
}), (c, a) => (n(), u("div", f({
|
|
82
94
|
class: {
|
|
83
95
|
"input-with-label-container": !0,
|
|
84
|
-
disabled:
|
|
85
|
-
[`variant-${e
|
|
96
|
+
disabled: t.disabled,
|
|
97
|
+
[`variant-${e(F)}`]: !0
|
|
86
98
|
}
|
|
87
|
-
},
|
|
88
|
-
|
|
99
|
+
}, e(y)[e(m).WRAPPER]), [
|
|
100
|
+
t.label && t.labelDirection !== "inside" ? (n(), d(ae, {
|
|
89
101
|
key: 0,
|
|
90
|
-
label:
|
|
91
|
-
mandatory:
|
|
92
|
-
"hover-help-text":
|
|
93
|
-
"hover-help-text-placement":
|
|
94
|
-
disabled:
|
|
95
|
-
"test-id":
|
|
96
|
-
}, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) :
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
[
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
"test-id": e.testId,
|
|
162
|
-
placement: e.inlineErrorTextPlacement
|
|
163
|
-
}, t(y)[t(m).TOOLTIP]), {
|
|
164
|
-
default: b(() => [
|
|
165
|
-
p(t(v), {
|
|
166
|
-
name: "warning-circle",
|
|
167
|
-
size: "16px"
|
|
102
|
+
label: t.label,
|
|
103
|
+
mandatory: t.mandatory,
|
|
104
|
+
"hover-help-text": t.hoverHelpText,
|
|
105
|
+
"hover-help-text-placement": t.hoverHelpTextPlacement,
|
|
106
|
+
disabled: t.disabled,
|
|
107
|
+
"test-id": t.testId
|
|
108
|
+
}, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : i("", !0),
|
|
109
|
+
x(e(S), f({
|
|
110
|
+
disabled: !e(Y),
|
|
111
|
+
text: e(B),
|
|
112
|
+
placement: t.inlineErrorTextPlacement
|
|
113
|
+
}, e(y)[e(m).TOOLTIP_WITHOUT_ICON]), {
|
|
114
|
+
default: h(() => [
|
|
115
|
+
O("div", {
|
|
116
|
+
class: V({
|
|
117
|
+
"input-container": !0,
|
|
118
|
+
"label-inside": e(I),
|
|
119
|
+
focused: e(b)
|
|
120
|
+
})
|
|
121
|
+
}, [
|
|
122
|
+
c.$slots.iconBefore ? (n(), u("div", re, [
|
|
123
|
+
$(c.$slots, "iconBefore", {}, void 0, !0)
|
|
124
|
+
])) : i("", !0),
|
|
125
|
+
t.prefix ? (n(), d(e(R), {
|
|
126
|
+
key: 1,
|
|
127
|
+
class: "prefix-text",
|
|
128
|
+
variant: "body1"
|
|
129
|
+
}, {
|
|
130
|
+
default: h(() => [
|
|
131
|
+
z(D(t.prefix), 1)
|
|
132
|
+
]),
|
|
133
|
+
_: 1
|
|
134
|
+
})) : i("", !0),
|
|
135
|
+
O("input", f({
|
|
136
|
+
ref_key: "inputRef",
|
|
137
|
+
ref: g,
|
|
138
|
+
maxlength: t.maxLength
|
|
139
|
+
}, { ...c.$attrs, ...e(y)[e(m).FIELD] }, {
|
|
140
|
+
value: e(C),
|
|
141
|
+
placeholder: e(j),
|
|
142
|
+
disabled: t.disabled || t.viewOnly,
|
|
143
|
+
type: e(_),
|
|
144
|
+
class: ["input", {
|
|
145
|
+
[e(q)]: !0,
|
|
146
|
+
"view-only": t.viewOnly,
|
|
147
|
+
"label-inside": e(I),
|
|
148
|
+
"hide-arrows": t.hideNumberArrows,
|
|
149
|
+
"input-type": t.type
|
|
150
|
+
}],
|
|
151
|
+
step: t.step,
|
|
152
|
+
onInput: a[0] || (a[0] = //@ts-ignore
|
|
153
|
+
(...s) => e(L) && e(L)(...s)),
|
|
154
|
+
onFocus: a[1] || (a[1] = (s) => b.value = !0),
|
|
155
|
+
onBlur: a[2] || (a[2] = (s) => b.value = !1),
|
|
156
|
+
onKeyup: a[3] || (a[3] = le(N(
|
|
157
|
+
//@ts-ignore
|
|
158
|
+
(...s) => e(w) && e(w)(...s),
|
|
159
|
+
["prevent"]
|
|
160
|
+
), ["enter"])),
|
|
161
|
+
onKeypress: a[4] || (a[4] = //@ts-ignore
|
|
162
|
+
(...s) => e(P) && e(P)(...s))
|
|
163
|
+
}), null, 16, se),
|
|
164
|
+
t.maxLength && t.maxLengthCounterPosition === "inside" ? (n(), d(W, H(f({ key: 2 }, e(E))), null, 16)) : i("", !0),
|
|
165
|
+
e(Z) ? (n(), u("div", {
|
|
166
|
+
key: 3,
|
|
167
|
+
class: "apply-button",
|
|
168
|
+
onClick: N(M, ["stop", "prevent"])
|
|
169
|
+
}, [
|
|
170
|
+
x(e(v), {
|
|
171
|
+
name: "check",
|
|
172
|
+
size: "20px"
|
|
168
173
|
})
|
|
169
|
-
]),
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
174
|
+
], 8, de)) : i("", !0),
|
|
175
|
+
t.suffix ? (n(), d(e(R), {
|
|
176
|
+
key: 4,
|
|
177
|
+
class: "suffix-text",
|
|
178
|
+
variant: "body1"
|
|
179
|
+
}, {
|
|
180
|
+
default: h(() => [
|
|
181
|
+
z(D(t.suffix), 1)
|
|
182
|
+
]),
|
|
183
|
+
_: 1
|
|
184
|
+
})) : i("", !0),
|
|
185
|
+
e(X) ? (n(), u("div", ue, [
|
|
186
|
+
x(e(S), f({
|
|
187
|
+
disabled: e(T),
|
|
188
|
+
text: e(B),
|
|
189
|
+
placement: t.inlineErrorTextPlacement
|
|
190
|
+
}, e(y)[e(m).TOOLTIP]), {
|
|
191
|
+
default: h(() => [
|
|
192
|
+
x(e(v), {
|
|
193
|
+
name: "warning-circle",
|
|
194
|
+
size: "16px"
|
|
195
|
+
})
|
|
196
|
+
]),
|
|
197
|
+
_: 1
|
|
198
|
+
}, 16, ["disabled", "text", "placement"])
|
|
199
|
+
])) : i("", !0),
|
|
200
|
+
t.type === "password" ? (n(), u("div", f({
|
|
201
|
+
key: 6,
|
|
202
|
+
class: "password-visibility-toggle"
|
|
203
|
+
}, e(y)[e(m).TOGGLE_PASSWORD], {
|
|
204
|
+
onClick: a[5] || (a[5] = (s) => p.value = !p.value)
|
|
205
|
+
}), [
|
|
206
|
+
p.value ? (n(), d(e(v), {
|
|
207
|
+
key: 0,
|
|
208
|
+
name: "eye",
|
|
209
|
+
size: "16px"
|
|
210
|
+
})) : (n(), d(e(v), {
|
|
211
|
+
key: 1,
|
|
212
|
+
name: "eye-slash",
|
|
213
|
+
size: "16px"
|
|
214
|
+
}))
|
|
215
|
+
], 16)) : i("", !0),
|
|
216
|
+
c.$slots.iconAfter ? (n(), u("div", fe, [
|
|
217
|
+
$(c.$slots, "iconAfter", {}, void 0, !0)
|
|
218
|
+
])) : i("", !0)
|
|
219
|
+
], 2)
|
|
220
|
+
]),
|
|
221
|
+
_: 3
|
|
222
|
+
}, 16, ["disabled", "text", "placement"]),
|
|
223
|
+
e(Q) ? (n(), u("div", {
|
|
204
224
|
key: 1,
|
|
205
|
-
class:
|
|
225
|
+
class: V(["footer", t.feedbackPositionAbsolute && "footer-absolute"])
|
|
206
226
|
}, [
|
|
207
|
-
|
|
227
|
+
t.feedbackText ? (n(), d(oe, {
|
|
208
228
|
key: 0,
|
|
209
|
-
text:
|
|
210
|
-
variant: e
|
|
211
|
-
"show-icon":
|
|
212
|
-
"test-id":
|
|
213
|
-
}, null, 8, ["text", "variant", "show-icon", "test-id"])) :
|
|
214
|
-
|
|
215
|
-
], 2)) :
|
|
229
|
+
text: t.feedbackText,
|
|
230
|
+
variant: e(F),
|
|
231
|
+
"show-icon": t.showFeedbackTextIcon,
|
|
232
|
+
"test-id": t.testId
|
|
233
|
+
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : i("", !0),
|
|
234
|
+
e(A) ? (n(), d(W, H(f({ key: 1 }, e(E))), null, 16)) : i("", !0)
|
|
235
|
+
], 2)) : i("", !0)
|
|
216
236
|
], 16));
|
|
217
237
|
}
|
|
218
238
|
});
|
|
219
239
|
export {
|
|
220
|
-
|
|
240
|
+
Ie as default
|
|
221
241
|
};
|
|
@@ -8,7 +8,7 @@ import "../dropdown/v4/ButtonDropdownTrigger.vue.js";
|
|
|
8
8
|
import "../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
|
|
9
9
|
import "../dropdown/v4/TreeDropdown.vue.js";
|
|
10
10
|
import g from "../dropdown/v4/OptionV4.vue.js";
|
|
11
|
-
import "../dropdown/v4/
|
|
11
|
+
import "../dropdown/v4/ConditionalDropdown.vue.js";
|
|
12
12
|
import x from "../icon/v4/IconV4.vue.js";
|
|
13
13
|
import "../icon/v4/IconFlag.vue.js";
|
|
14
14
|
const h = /* @__PURE__ */ a({
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Placement } from 'floating-vue';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
isOpen?: boolean;
|
|
3
4
|
autoHide?: boolean;
|
|
4
5
|
trigger?: "hover" | "click" | "focus" | "touch" | "managed";
|
|
5
6
|
disabled?: boolean;
|
|
@@ -8,7 +9,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
8
9
|
skidding?: number;
|
|
9
10
|
testId?: string;
|
|
10
11
|
popperClass?: string;
|
|
12
|
+
container?: string;
|
|
11
13
|
}>, {
|
|
14
|
+
isOpen: boolean;
|
|
12
15
|
trigger: string;
|
|
13
16
|
autoHide: boolean;
|
|
14
17
|
disabled: boolean;
|
|
@@ -17,11 +20,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
17
20
|
skidding: number;
|
|
18
21
|
testId: string;
|
|
19
22
|
popperClass: string;
|
|
23
|
+
container: string;
|
|
20
24
|
}>, {
|
|
21
25
|
toggle: (value?: boolean) => boolean;
|
|
22
26
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
27
|
isOpen: (value: boolean) => void;
|
|
24
28
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
29
|
+
isOpen?: boolean;
|
|
25
30
|
autoHide?: boolean;
|
|
26
31
|
trigger?: "hover" | "click" | "focus" | "touch" | "managed";
|
|
27
32
|
disabled?: boolean;
|
|
@@ -30,7 +35,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
30
35
|
skidding?: number;
|
|
31
36
|
testId?: string;
|
|
32
37
|
popperClass?: string;
|
|
38
|
+
container?: string;
|
|
33
39
|
}>, {
|
|
40
|
+
isOpen: boolean;
|
|
34
41
|
trigger: string;
|
|
35
42
|
autoHide: boolean;
|
|
36
43
|
disabled: boolean;
|
|
@@ -39,6 +46,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
39
46
|
skidding: number;
|
|
40
47
|
testId: string;
|
|
41
48
|
popperClass: string;
|
|
49
|
+
container: string;
|
|
42
50
|
}>>> & {
|
|
43
51
|
onIsOpen?: (value: boolean) => any;
|
|
44
52
|
}, {
|
|
@@ -46,8 +54,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
46
54
|
placement: Placement;
|
|
47
55
|
disabled: boolean;
|
|
48
56
|
distance: number;
|
|
49
|
-
|
|
57
|
+
container: string;
|
|
50
58
|
autoHide: boolean;
|
|
59
|
+
popperClass: string;
|
|
60
|
+
isOpen: boolean;
|
|
51
61
|
trigger: "hover" | "click" | "focus" | "touch" | "managed";
|
|
52
62
|
skidding: number;
|
|
53
63
|
}>, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./PopoverV4.vue2.js";
|
|
2
2
|
/* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../PopoverV4.
|
|
3
|
+
// import "../../../PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css"; //*');
|
|
4
4
|
// import "../../../PopoverV4.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
-
const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
5
|
+
const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-66694b4e"]]);
|
|
6
6
|
export {
|
|
7
7
|
r as default
|
|
8
8
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import "../../../PopoverV4.
|
|
2
|
-
import { Dropdown as
|
|
3
|
-
import { popoverCommon as
|
|
4
|
-
const
|
|
1
|
+
import "../../../PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css"; import "../../../PopoverV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as k, watch as s, openBlock as p, createBlock as y, unref as a, withCtx as u, createElementBlock as h, renderSlot as g, createCommentVNode as B, createElementVNode as C } from "vue";
|
|
2
|
+
import { Dropdown as w } from "floating-vue";
|
|
3
|
+
import { popoverCommon as $ } from "../common/Popover.common.js";
|
|
4
|
+
const O = ["data-testid"], H = /* @__PURE__ */ k({
|
|
5
5
|
__name: "PopoverV4",
|
|
6
6
|
props: {
|
|
7
|
+
isOpen: { type: Boolean, default: !1 },
|
|
7
8
|
autoHide: { type: Boolean, default: !1 },
|
|
8
9
|
trigger: { default: "click" },
|
|
9
10
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -11,49 +12,62 @@ const y = ["data-testid"], E = /* @__PURE__ */ c({
|
|
|
11
12
|
distance: { default: 0 },
|
|
12
13
|
skidding: { default: 0 },
|
|
13
14
|
testId: { default: "" },
|
|
14
|
-
popperClass: { default: "" }
|
|
15
|
+
popperClass: { default: "" },
|
|
16
|
+
container: { default: "body" }
|
|
15
17
|
},
|
|
16
18
|
emits: ["isOpen"],
|
|
17
|
-
setup(e, { expose:
|
|
18
|
-
const { popup:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}), s(
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
setup(e, { expose: f, emit: m }) {
|
|
20
|
+
const i = e, { popup: c, open: t, toggle: d, triggerRef: v } = $();
|
|
21
|
+
s(t, () => {
|
|
22
|
+
m("isOpen", t.value);
|
|
23
|
+
}), s(
|
|
24
|
+
() => i.isOpen,
|
|
25
|
+
(o) => {
|
|
26
|
+
d(o);
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
const r = (o) => {
|
|
30
|
+
i.trigger === o && (t.value = !t.value);
|
|
31
|
+
};
|
|
32
|
+
return f({
|
|
33
|
+
toggle: d
|
|
34
|
+
}), (o, n) => (p(), y(a(w), {
|
|
24
35
|
theme: "custom-popover",
|
|
25
36
|
placement: e.placement,
|
|
26
|
-
shown: !!
|
|
37
|
+
shown: !!a(t),
|
|
27
38
|
triggers: e.trigger === "managed" ? [] : [e.trigger],
|
|
28
39
|
"auto-hide": e.autoHide,
|
|
29
40
|
distance: e.distance,
|
|
30
41
|
skidding: e.skidding,
|
|
42
|
+
container: e.container,
|
|
31
43
|
"popper-class": [e.popperClass, "v4-popover__popper light-theme-v4"]
|
|
32
44
|
}, {
|
|
33
|
-
popper:
|
|
34
|
-
|
|
45
|
+
popper: u(() => [
|
|
46
|
+
a(t) ? (p(), h("div", {
|
|
35
47
|
key: 0,
|
|
36
48
|
ref_key: "popup",
|
|
37
|
-
ref:
|
|
49
|
+
ref: c,
|
|
38
50
|
class: "menu-popup",
|
|
39
51
|
"data-testid": e.testId
|
|
40
52
|
}, [
|
|
41
|
-
|
|
42
|
-
], 8,
|
|
53
|
+
g(o.$slots, "content", {}, void 0, !0)
|
|
54
|
+
], 8, O)) : B("", !0)
|
|
43
55
|
]),
|
|
44
|
-
default:
|
|
45
|
-
|
|
56
|
+
default: u(() => [
|
|
57
|
+
C("div", {
|
|
46
58
|
ref_key: "triggerRef",
|
|
47
|
-
ref:
|
|
48
|
-
onClick:
|
|
59
|
+
ref: v,
|
|
60
|
+
onClick: n[0] || (n[0] = (l) => r("click")),
|
|
61
|
+
onMouseenter: n[1] || (n[1] = (l) => r("hover")),
|
|
62
|
+
onMouseleave: n[2] || (n[2] = (l) => r("hover"))
|
|
49
63
|
}, [
|
|
50
|
-
|
|
51
|
-
],
|
|
64
|
+
g(o.$slots, "trigger", {}, void 0, !0)
|
|
65
|
+
], 544)
|
|
52
66
|
]),
|
|
53
67
|
_: 3
|
|
54
|
-
}, 8, ["placement", "shown", "triggers", "auto-hide", "distance", "skidding", "popper-class"]));
|
|
68
|
+
}, 8, ["placement", "shown", "triggers", "auto-hide", "distance", "skidding", "container", "popper-class"]));
|
|
55
69
|
}
|
|
56
70
|
});
|
|
57
71
|
export {
|
|
58
|
-
|
|
72
|
+
H as default
|
|
59
73
|
};
|