@ironsource/shared-ui 2.1.7-test.1 → 2.1.7-test.10
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/Autocomplete.vue_vue_type_style_index_0_scoped_e361f9fd_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_f06a4764_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_88d4532f_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_efc608f9_lang.css +1 -0
- package/ChartLoader.vue_vue_type_style_index_0_scoped_142c444a_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_706b324e_lang.css +1 -0
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_0ce71f73_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_98819e5a_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_00ccab6b_lang.css +1 -0
- package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +1 -0
- package/FieldMaxLength.vue_vue_type_style_index_0_scoped_47877984_lang.css +1 -0
- package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +1 -0
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_cc2adbf5_lang.css +1 -0
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_bd6145ce_lang.css +1 -0
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_82ba0e12_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_77509f61_lang.css +1 -0
- package/Popover.vue_vue_type_style_index_0_scoped_c607b770_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_c54cd089_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_1_lang.css +1 -0
- package/README.md +1 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +1 -0
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +1 -0
- package/TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css +1 -0
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_4114ef89_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_dbd80d49_lang.css +1 -0
- package/components/ThemeWrapper/ThemeWrapper.vue.js +2 -2
- package/components/ThemeWrapper/ThemeWrapper.vue2.js +5 -5
- package/components/appHeader/AppHeader.vue.d.ts +1 -1
- package/components/appHeader/index.d.ts +9 -9
- package/components/autocomplete/Autocomplete.vue.d.ts +5 -0
- package/components/autocomplete/Autocomplete.vue.js +2 -2
- package/components/autocomplete/Autocomplete.vue2.js +57 -45
- package/components/autocomplete/index.d.ts +20 -1
- package/components/chart/Chart.vue.js +7 -0
- package/components/chart/Chart.vue2.js +281 -0
- package/components/chart/ChartHeader.vue.js +7 -0
- package/components/chart/ChartHeader.vue2.js +51 -0
- package/components/chart/ChartLegend.vue.js +7 -0
- package/components/chart/ChartLegend.vue2.js +65 -0
- package/components/chart/ChartLoader.vue.js +25 -0
- package/components/chart/ChartLoader.vue2.js +0 -0
- package/components/chart/ChartTooltip.vue.js +7 -0
- package/components/chart/ChartTooltip.vue2.js +81 -0
- package/components/chart/composables/useChartValues.js +32 -0
- package/components/chart/composables/useTooltipPosition.js +22 -0
- package/components/chart/consts.js +21 -0
- package/components/chart/index.js +6 -0
- package/components/chart/plugins/HoverVerticalLine.js +12 -0
- package/components/chart/types.js +4 -0
- package/components/chart/utils/formatNumber.js +11 -0
- package/components/chart/utils/utils.js +12 -0
- package/components/dropdown/common/Dropdown.common.js +89 -89
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +1 -0
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +32 -29
- package/components/dropdown/v4/DropdownV4.vue.d.ts +39 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +256 -224
- package/components/dropdown/v4/OptionV4.vue.d.ts +36 -2
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +99 -59
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +21 -16
- package/components/dropdown/v4/TreeDropdown.vue.js +3 -3
- package/components/dropdown/v4/TreeDropdown.vue2.js +170 -74
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +14 -0
- package/components/dropdown/v4/index.d.ts +528 -83
- package/components/icon/v4/IconV4.vue.d.ts +5 -0
- package/components/icon/v4/IconV4.vue.js +4 -4
- package/components/icon/v4/IconV4.vue2.js +29 -26
- package/components/icon/v4/index.d.ts +20 -1
- package/components/includeExclude/IncludeExclude.vue.js +4 -4
- package/components/includeExclude/IncludeExclude.vue2.js +2 -2
- package/components/includeExclude/IncludeExcludeDragDrop.vue.js +4 -4
- package/components/includeExclude/IncludeExcludeDragDrop.vue2.js +2 -2
- package/components/input/v4/TextField.vue.d.ts +6 -1
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +95 -90
- package/components/input/v4/index.d.ts +20 -1
- package/components/popover/common/Popover.common.d.ts +6 -0
- package/components/popover/common/Popover.common.js +17 -0
- package/components/popover/v3/Popover.vue.js +8 -0
- package/components/popover/{Popover.vue2.js → v3/Popover.vue2.js} +1 -1
- package/components/popover/v4/PopoverV4.vue.d.ts +73 -0
- package/components/popover/v4/PopoverV4.vue.js +7 -0
- package/components/popover/v4/PopoverV4.vue2.js +54 -0
- package/components/popover/v4/index.d.ts +209 -0
- package/components/popover/v4/index.js +6 -0
- package/components/shared/FieldMaxLength.vue.js +3 -3
- package/components/shared/FieldMaxLength.vue2.js +2 -2
- package/components/shared/commonTypes.d.ts +2 -0
- package/components/sortableList/SortableItem.vue.js +7 -0
- package/components/sortableList/SortableItem.vue2.js +140 -0
- package/components/sortableList/SortableItemLabel.vue.js +7 -0
- package/components/sortableList/SortableItemLabel.vue2.js +60 -0
- package/components/sortableList/SortableList.vue.d.ts +25 -0
- package/components/sortableList/SortableList.vue.js +7 -0
- package/components/sortableList/SortableList.vue2.js +160 -0
- package/components/sortableList/composables/useHoverEffect.js +19 -0
- package/components/sortableList/consts.js +4 -0
- package/components/sortableList/index.d.ts +88 -2
- package/components/sortableList/index.js +6 -0
- package/components/table/v3/Table.vue.d.ts +2 -2
- package/components/table/v3/index.d.ts +39 -39
- package/components/table/v4/DataGrid.vue.d.ts +6 -2
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +131 -122
- package/components/table/v4/DataGridRowsCounter.vue.d.ts +5 -0
- package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
- package/components/table/v4/DataGridRowsCounter.vue2.js +29 -22
- package/components/table/v4/MultipleDataGrid.vue.d.ts +16 -3
- package/components/table/v4/MultipleDataGrid.vue.js +4 -4
- package/components/table/v4/MultipleDataGrid.vue2.js +114 -66
- package/components/table/v4/index.d.ts +101 -75
- package/components/table-cells/common/Editable.common.js +37 -26
- 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 +5 -5
- package/components/table-cells/v4/EditableV4.vue2.js +18 -17
- package/components/table-cells/v4/index.d.ts +20 -1
- package/components/tabs/v4/TabsV4.vue.js +4 -4
- package/components/tabs/v4/TabsV4.vue2.js +37 -40
- package/components/textArea/v4/TextAreaV4.vue.d.ts +6 -1
- package/components/textArea/v4/TextAreaV4.vue.js +3 -3
- package/components/textArea/v4/TextAreaV4.vue2.js +18 -12
- package/components/textArea/v4/index.d.ts +9 -0
- package/design-foundation.stories/icons/iconsData.d.ts +6 -2
- package/index.d.ts +9608 -7356
- package/index.js +136 -131
- package/mocks/options.d.ts +12 -0
- package/package.json +15 -3
- package/testids/index.d.ts +5 -0
- package/testids/index.js +27 -25
- package/utils/search.js +4 -0
- package/Autocomplete.vue_vue_type_style_index_0_scoped_a7bfd237_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_63aaf3be_lang.css +0 -1
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_06751538_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_7af4f288_lang.css +0 -1
- package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +0 -1
- package/FieldMaxLength.vue_vue_type_style_index_0_scoped_f3c4001a_lang.css +0 -1
- package/IconV4.vue_vue_type_style_index_0_scoped_1eea7671_lang.css +0 -1
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_fb054d88_lang.css +0 -1
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_5764fd61_lang.css +0 -1
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_260b9cdc_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_9db0f796_lang.css +0 -1
- package/Popover.vue_vue_type_style_index_0_scoped_25eb53db_lang.css +0 -1
- package/TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css +0 -1
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_a6457440_lang.css +0 -1
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_b62ee695_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_142eab98_lang.css +0 -1
- package/components/popover/Popover.vue.js +0 -8
- /package/components/popover/{Popover.vue.d.ts → v3/Popover.vue.d.ts} +0 -0
- /package/components/popover/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/popover/{index.js → v3/index.js} +0 -0
|
@@ -5,6 +5,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
5
5
|
size?: string;
|
|
6
6
|
height?: string;
|
|
7
7
|
width?: string;
|
|
8
|
+
platform?: string;
|
|
8
9
|
}>, {
|
|
9
10
|
name: any;
|
|
10
11
|
size: any;
|
|
@@ -12,6 +13,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
12
13
|
type: string;
|
|
13
14
|
height: any;
|
|
14
15
|
width: any;
|
|
16
|
+
platform: any;
|
|
15
17
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
16
18
|
type?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
17
19
|
name?: string;
|
|
@@ -19,6 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
19
21
|
size?: string;
|
|
20
22
|
height?: string;
|
|
21
23
|
width?: string;
|
|
24
|
+
platform?: string;
|
|
22
25
|
}>, {
|
|
23
26
|
name: any;
|
|
24
27
|
size: any;
|
|
@@ -26,6 +29,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
26
29
|
type: string;
|
|
27
30
|
height: any;
|
|
28
31
|
width: any;
|
|
32
|
+
platform: any;
|
|
29
33
|
}>>>, {
|
|
30
34
|
name: string;
|
|
31
35
|
type: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
@@ -33,6 +37,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
33
37
|
size: string;
|
|
34
38
|
height: string;
|
|
35
39
|
width: string;
|
|
40
|
+
platform: string;
|
|
36
41
|
}>, {
|
|
37
42
|
default?(_: {}): any;
|
|
38
43
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./IconV4.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../IconV4.
|
|
4
|
-
const
|
|
2
|
+
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ _(o, [["__scopeId", "data-v-dc433d48"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
t as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../../../IconV4.
|
|
2
|
-
import { useStorage as
|
|
1
|
+
import "../../../IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css"; import { defineComponent as S, useCssVars as w, unref as s, useSlots as C, computed as o, watch as _, openBlock as u, createElementBlock as f, normalizeClass as b, createCommentVNode as z, renderSlot as I } from "vue";
|
|
2
|
+
import { useStorage as T } from "../../../composables/useStorage.js";
|
|
3
3
|
import { ASSETS_BASE_URL as U } from "./consts.js";
|
|
4
|
-
const V = ["innerHTML"], B = /* @__PURE__ */
|
|
4
|
+
const V = ["innerHTML"], B = /* @__PURE__ */ S({
|
|
5
5
|
__name: "IconV4",
|
|
6
6
|
props: {
|
|
7
7
|
type: { default: "regular" },
|
|
@@ -9,34 +9,37 @@ const V = ["innerHTML"], B = /* @__PURE__ */ $({
|
|
|
9
9
|
color: { default: null },
|
|
10
10
|
size: { default: null },
|
|
11
11
|
height: { default: null },
|
|
12
|
-
width: { default: null }
|
|
12
|
+
width: { default: null },
|
|
13
|
+
platform: { default: null }
|
|
13
14
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const e =
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
|
|
15
|
+
setup(r) {
|
|
16
|
+
const e = r;
|
|
17
|
+
w((t) => ({
|
|
18
|
+
"3d423be4": s(d),
|
|
19
|
+
"513646c9": s(m),
|
|
20
|
+
ad86ac0c: r.color
|
|
20
21
|
}));
|
|
21
|
-
const
|
|
22
|
+
const a = window.sharedUIRequestCache = window.sharedUIRequestCache || {}, p = C(), d = o(() => e.size || e.width), m = o(() => e.size || e.height), h = o(
|
|
23
|
+
() => e.platform ? `${e.type}/${e.platform}` : e.type
|
|
24
|
+
), y = o(() => {
|
|
22
25
|
if (!e.name)
|
|
23
26
|
return "";
|
|
24
27
|
const t = e.name.split("/");
|
|
25
28
|
return [e.name ? `icon-name--${t.at(-1)}` : ""];
|
|
26
|
-
}),
|
|
29
|
+
}), c = o(() => {
|
|
27
30
|
if (p.default)
|
|
28
31
|
return "";
|
|
29
32
|
if (!e.name)
|
|
30
33
|
return console.error("Please provided icon name"), "";
|
|
31
34
|
const t = e.type === "regular" || e.type === "bold" || e.type === "fill" ? "ph/" : "v4/", n = e.type === "bold" || e.type === "fill" ? `-${e.type}` : "";
|
|
32
|
-
return `${U}/icons/${t}${
|
|
33
|
-
}),
|
|
35
|
+
return `${U}/icons/${t}${h.value}/${e.name}${n}.svg`;
|
|
36
|
+
}), l = T(`icon-${e.type}--${e.name}`);
|
|
34
37
|
function g(t) {
|
|
35
|
-
return
|
|
36
|
-
delete
|
|
38
|
+
return a[t] || (a[t] = fetch(t).then((n) => n.text()).finally(() => {
|
|
39
|
+
delete a[t];
|
|
37
40
|
}).catch((n) => {
|
|
38
41
|
console.error(n);
|
|
39
|
-
})),
|
|
42
|
+
})), a[t];
|
|
40
43
|
}
|
|
41
44
|
function v(t) {
|
|
42
45
|
return t.replace(
|
|
@@ -45,21 +48,21 @@ const V = ["innerHTML"], B = /* @__PURE__ */ $({
|
|
|
45
48
|
);
|
|
46
49
|
}
|
|
47
50
|
function i() {
|
|
48
|
-
g(
|
|
49
|
-
typeof t == "string" && t.startsWith("<svg") && (
|
|
51
|
+
g(c.value).then((t) => {
|
|
52
|
+
typeof t == "string" && t.startsWith("<svg") && (l.value = t);
|
|
50
53
|
});
|
|
51
54
|
}
|
|
52
|
-
!
|
|
53
|
-
const
|
|
54
|
-
return
|
|
55
|
-
class:
|
|
55
|
+
!l.value && c.value && i();
|
|
56
|
+
const $ = o(() => v(l.value ?? ""));
|
|
57
|
+
return _(() => e.name, i), (t, n) => (u(), f("span", {
|
|
58
|
+
class: b(["icon", s(y)])
|
|
56
59
|
}, [
|
|
57
|
-
t.$slots.default ?
|
|
60
|
+
t.$slots.default ? z("", !0) : (u(), f("span", {
|
|
58
61
|
key: 0,
|
|
59
62
|
class: "icon-wrapper",
|
|
60
|
-
innerHTML:
|
|
63
|
+
innerHTML: s($)
|
|
61
64
|
}, null, 8, V)),
|
|
62
|
-
|
|
65
|
+
I(t.$slots, "default", {}, void 0, !0)
|
|
63
66
|
], 2));
|
|
64
67
|
}
|
|
65
68
|
});
|
|
@@ -10,6 +10,7 @@ declare const IconTypes: () => ({
|
|
|
10
10
|
size: string;
|
|
11
11
|
height: string;
|
|
12
12
|
width: string;
|
|
13
|
+
platform: string;
|
|
13
14
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
14
15
|
name: {
|
|
15
16
|
type: import("vue").PropType<string>;
|
|
@@ -35,7 +36,11 @@ declare const IconTypes: () => ({
|
|
|
35
36
|
type: import("vue").PropType<string>;
|
|
36
37
|
default: any;
|
|
37
38
|
};
|
|
38
|
-
|
|
39
|
+
platform: {
|
|
40
|
+
type: import("vue").PropType<string>;
|
|
41
|
+
default: any;
|
|
42
|
+
};
|
|
43
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "name" | "type" | "color" | "size" | "height" | "width" | "platform">;
|
|
39
44
|
$attrs: {
|
|
40
45
|
[x: string]: unknown;
|
|
41
46
|
};
|
|
@@ -74,6 +79,10 @@ declare const IconTypes: () => ({
|
|
|
74
79
|
type: import("vue").PropType<string>;
|
|
75
80
|
default: any;
|
|
76
81
|
};
|
|
82
|
+
platform: {
|
|
83
|
+
type: import("vue").PropType<string>;
|
|
84
|
+
default: any;
|
|
85
|
+
};
|
|
77
86
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
78
87
|
name: string;
|
|
79
88
|
type: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
@@ -81,6 +90,7 @@ declare const IconTypes: () => ({
|
|
|
81
90
|
size: string;
|
|
82
91
|
height: string;
|
|
83
92
|
width: string;
|
|
93
|
+
platform: string;
|
|
84
94
|
}, {}, string> & {
|
|
85
95
|
beforeCreate?: (() => void) | (() => void)[];
|
|
86
96
|
created?: (() => void) | (() => void)[];
|
|
@@ -126,6 +136,10 @@ declare const IconTypes: () => ({
|
|
|
126
136
|
type: import("vue").PropType<string>;
|
|
127
137
|
default: any;
|
|
128
138
|
};
|
|
139
|
+
platform: {
|
|
140
|
+
type: import("vue").PropType<string>;
|
|
141
|
+
default: any;
|
|
142
|
+
};
|
|
129
143
|
}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
130
144
|
__isFragment?: never;
|
|
131
145
|
__isTeleport?: never;
|
|
@@ -155,6 +169,10 @@ declare const IconTypes: () => ({
|
|
|
155
169
|
type: import("vue").PropType<string>;
|
|
156
170
|
default: any;
|
|
157
171
|
};
|
|
172
|
+
platform: {
|
|
173
|
+
type: import("vue").PropType<string>;
|
|
174
|
+
default: any;
|
|
175
|
+
};
|
|
158
176
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
159
177
|
name: string;
|
|
160
178
|
type: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
@@ -162,6 +180,7 @@ declare const IconTypes: () => ({
|
|
|
162
180
|
size: string;
|
|
163
181
|
height: string;
|
|
164
182
|
width: string;
|
|
183
|
+
platform: string;
|
|
165
184
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
166
185
|
$slots: {
|
|
167
186
|
default?(_: {}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../IncludeExclude.
|
|
4
|
-
const s = /* @__PURE__ */
|
|
1
|
+
import c from "./IncludeExclude.vue2.js";
|
|
2
|
+
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../IncludeExclude.vue_vue_type_style_index_0_scoped_cc2adbf5_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(c, [["__scopeId", "data-v-cc2adbf5"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../IncludeExclude.
|
|
2
|
-
import Ae from "../popover/Popover.vue.js";
|
|
1
|
+
import "../../IncludeExclude.vue_vue_type_style_index_0_scoped_cc2adbf5_lang.css"; import { defineComponent as Te, computed as v, ref as u, watch as j, provide as Oe, openBlock as d, createBlock as I, unref as t, withCtx as g, createElementVNode as a, renderSlot as C, createTextVNode as w, toDisplayString as J, createCommentVNode as h, createVNode as f, Transition as $e, createElementBlock as o, normalizeClass as Q, mergeProps as O, Fragment as $, renderList as R, toRaw as T, nextTick as Re } from "vue";
|
|
2
|
+
import Ae from "../popover/v3/Popover.vue.js";
|
|
3
3
|
import N from "../button/v3/Button.vue.js";
|
|
4
4
|
import "../button/v3/IconButton.vue.js";
|
|
5
5
|
import "../button/v3/ScrollButton.vue.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../IncludeExcludeDragDrop.
|
|
4
|
-
const p = /* @__PURE__ */ e
|
|
1
|
+
import e from "./IncludeExcludeDragDrop.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_bd6145ce_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-bd6145ce"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../IncludeExcludeDragDrop.
|
|
2
|
-
import $e from "../popover/Popover.vue.js";
|
|
1
|
+
import "../../IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_bd6145ce_lang.css"; import { defineComponent as Re, computed as p, ref as c, watch as H, provide as Ae, openBlock as i, createBlock as O, unref as l, withCtx as h, createElementVNode as s, renderSlot as v, normalizeClass as N, createTextVNode as C, toDisplayString as le, createCommentVNode as f, createVNode as g, Transition as Pe, createElementBlock as u, mergeProps as w, Fragment as U, renderList as W, toRaw as S, isRef as Ee, nextTick as Fe } from "vue";
|
|
2
|
+
import $e from "../popover/v3/Popover.vue.js";
|
|
3
3
|
import G from "../button/v3/Button.vue.js";
|
|
4
4
|
import "../button/v3/IconButton.vue.js";
|
|
5
5
|
import "../button/v3/ScrollButton.vue.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TooltipPositions } from '@/components/tooltip/common/Tooltip.types';
|
|
2
2
|
import { LabelDirection, FieldSize, FieldType } from './TextField.types';
|
|
3
|
-
import { FeedbackVariant } from '@/components/shared/commonTypes';
|
|
3
|
+
import { FeedbackVariant, MaxLengthCounterPositions } from '@/components/shared/commonTypes';
|
|
4
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
5
5
|
modelValue?: string | number;
|
|
6
6
|
placeholder?: string;
|
|
@@ -25,6 +25,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
25
25
|
prefix?: string;
|
|
26
26
|
suffix?: string;
|
|
27
27
|
maxLength?: number;
|
|
28
|
+
maxLengthCounterPosition?: MaxLengthCounterPositions;
|
|
28
29
|
showApply?: boolean;
|
|
29
30
|
inlineError?: boolean;
|
|
30
31
|
inlineErrorText?: string;
|
|
@@ -49,6 +50,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
49
50
|
prefix: string;
|
|
50
51
|
suffix: string;
|
|
51
52
|
maxLength: any;
|
|
53
|
+
maxLengthCounterPosition: string;
|
|
52
54
|
showApply: boolean;
|
|
53
55
|
inlineError: boolean;
|
|
54
56
|
inlineErrorText: string;
|
|
@@ -86,6 +88,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
86
88
|
prefix?: string;
|
|
87
89
|
suffix?: string;
|
|
88
90
|
maxLength?: number;
|
|
91
|
+
maxLengthCounterPosition?: MaxLengthCounterPositions;
|
|
89
92
|
showApply?: boolean;
|
|
90
93
|
inlineError?: boolean;
|
|
91
94
|
inlineErrorText?: string;
|
|
@@ -110,6 +113,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
110
113
|
prefix: string;
|
|
111
114
|
suffix: string;
|
|
112
115
|
maxLength: any;
|
|
116
|
+
maxLengthCounterPosition: string;
|
|
113
117
|
showApply: boolean;
|
|
114
118
|
inlineError: boolean;
|
|
115
119
|
inlineErrorText: string;
|
|
@@ -141,6 +145,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
141
145
|
onlyDigits: boolean;
|
|
142
146
|
prefix: string;
|
|
143
147
|
suffix: string;
|
|
148
|
+
maxLengthCounterPosition: MaxLengthCounterPositions;
|
|
144
149
|
showApply: boolean;
|
|
145
150
|
inlineError: boolean;
|
|
146
151
|
inlineErrorText: string;
|
|
@@ -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_4d9bf5b2_lang.css"; //*');
|
|
4
|
+
const d = /* @__PURE__ */ o(e, [["__scopeId", "data-v-4d9bf5b2"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d as default
|
|
7
7
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import "../../../TextField.
|
|
1
|
+
import "../../../TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css"; import { defineComponent as J, computed as f, ref as Q, openBlock as l, createElementBlock as d, mergeProps as c, unref as t, createBlock as r, createCommentVNode as n, createElementVNode as A, normalizeClass as E, renderSlot as F, withCtx as b, createTextVNode as V, toDisplayString as $, withKeys as U, withModifiers as z, normalizeProps as O, createVNode as p } from "vue";
|
|
2
2
|
import v from "../../icon/v4/IconV4.vue.js";
|
|
3
3
|
import "../../icon/v4/IconFlag.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { InputTestIdModifiers as
|
|
7
|
-
import { inputCommon as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { useTestIdAttrs as
|
|
12
|
-
const
|
|
4
|
+
import X from "../../tooltip/v4/TooltipV4.vue.js";
|
|
5
|
+
import D from "../../typography/v4/Typography.vue.js";
|
|
6
|
+
import { InputTestIdModifiers as m } from "../../../testids/index.js";
|
|
7
|
+
import { inputCommon as Y } from "../common/Input.common.js";
|
|
8
|
+
import Z from "../../shared/FieldLabel.vue.js";
|
|
9
|
+
import _ from "../../shared/FieldHelpText.vue.js";
|
|
10
|
+
import N from "../../shared/FieldMaxLength.vue.js";
|
|
11
|
+
import { useTestIdAttrs as ee } from "../../../utils/testIds.js";
|
|
12
|
+
const te = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "icon-container icon-before"
|
|
15
|
-
},
|
|
16
|
-
key:
|
|
15
|
+
}, le = ["maxlength", "value", "placeholder", "disabled", "type", "step"], ae = ["onClick"], ne = {
|
|
16
|
+
key: 4,
|
|
17
17
|
class: "inline-error"
|
|
18
|
-
},
|
|
19
|
-
key:
|
|
18
|
+
}, oe = {
|
|
19
|
+
key: 7,
|
|
20
20
|
class: "icon-container icon-after"
|
|
21
|
-
},
|
|
21
|
+
}, ie = {
|
|
22
22
|
inheritAttrs: !1
|
|
23
|
-
},
|
|
24
|
-
...
|
|
23
|
+
}, be = /* @__PURE__ */ J({
|
|
24
|
+
...ie,
|
|
25
25
|
__name: "TextField",
|
|
26
26
|
props: {
|
|
27
27
|
modelValue: { default: "" },
|
|
@@ -47,37 +47,45 @@ const Y = {
|
|
|
47
47
|
prefix: { default: "" },
|
|
48
48
|
suffix: { default: "" },
|
|
49
49
|
maxLength: { default: null },
|
|
50
|
+
maxLengthCounterPosition: { default: "inside" },
|
|
50
51
|
showApply: { type: Boolean, default: !1 },
|
|
51
52
|
inlineError: { type: Boolean, default: !1 },
|
|
52
53
|
inlineErrorText: { default: "" },
|
|
53
54
|
inlineErrorTextPlacement: { default: "top" }
|
|
54
55
|
},
|
|
55
56
|
emits: ["update:modelValue", "apply"],
|
|
56
|
-
setup(e, { expose:
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
onConfirm:
|
|
57
|
+
setup(e, { expose: S, emit: k }) {
|
|
58
|
+
const o = e, y = ee(o.testId, m), H = () => {
|
|
59
|
+
o.showApply ? k("apply") : s?.confirmable && K();
|
|
60
|
+
}, R = () => g.value.focus(), {
|
|
61
|
+
onConfirm: K,
|
|
61
62
|
onEnter: T,
|
|
62
|
-
inputRef:
|
|
63
|
-
isFocused:
|
|
64
|
-
showLabelInside:
|
|
65
|
-
api:
|
|
66
|
-
labelText:
|
|
67
|
-
sizeClass:
|
|
68
|
-
handleInput:
|
|
69
|
-
handleKeypress:
|
|
70
|
-
} =
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}),
|
|
63
|
+
inputRef: g,
|
|
64
|
+
isFocused: h,
|
|
65
|
+
showLabelInside: w,
|
|
66
|
+
api: s,
|
|
67
|
+
labelText: M,
|
|
68
|
+
sizeClass: G,
|
|
69
|
+
handleInput: L,
|
|
70
|
+
handleKeypress: I
|
|
71
|
+
} = Y(o, k), P = f(() => s.value?.value ?? o.modelValue), W = f(() => (P.value || "").length), B = f(() => ({
|
|
72
|
+
currentLength: W.value,
|
|
73
|
+
maxLength: o.maxLength
|
|
74
|
+
})), C = f(
|
|
75
|
+
() => o.maxLength && o.maxLengthCounterPosition === "outside"
|
|
76
|
+
), j = f(
|
|
77
|
+
() => o.feedbackText || C.value
|
|
78
|
+
), x = Q(!1), q = f(() => x.value && o.type === "password" ? "text" : o.type);
|
|
79
|
+
return S({
|
|
80
|
+
manualFocus: R
|
|
81
|
+
}), (u, a) => (l(), d("div", c({
|
|
74
82
|
class: {
|
|
75
83
|
"input-with-label-container": !0,
|
|
76
84
|
disabled: e.disabled,
|
|
77
85
|
[`variant-${e.feedbackVariant}`]: !0
|
|
78
86
|
}
|
|
79
|
-
}, t(
|
|
80
|
-
e.label && e.labelDirection !== "inside" ? (l(),
|
|
87
|
+
}, t(y)[t(m).WRAPPER]), [
|
|
88
|
+
e.label && e.labelDirection !== "inside" ? (l(), r(Z, {
|
|
81
89
|
key: 0,
|
|
82
90
|
label: e.label,
|
|
83
91
|
mandatory: e.mandatory,
|
|
@@ -86,73 +94,74 @@ const Y = {
|
|
|
86
94
|
disabled: e.disabled,
|
|
87
95
|
"test-id": e.testId
|
|
88
96
|
}, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : n("", !0),
|
|
89
|
-
|
|
90
|
-
class:
|
|
97
|
+
A("div", {
|
|
98
|
+
class: E({
|
|
91
99
|
"input-container": !0,
|
|
92
|
-
"label-inside": t(
|
|
93
|
-
focused: t(
|
|
100
|
+
"label-inside": t(w),
|
|
101
|
+
focused: t(h)
|
|
94
102
|
})
|
|
95
103
|
}, [
|
|
96
|
-
u.$slots.iconBefore ? (l(),
|
|
97
|
-
|
|
104
|
+
u.$slots.iconBefore ? (l(), d("div", te, [
|
|
105
|
+
F(u.$slots, "iconBefore", {}, void 0, !0)
|
|
98
106
|
])) : n("", !0),
|
|
99
|
-
e.prefix ? (l(),
|
|
107
|
+
e.prefix ? (l(), r(t(D), {
|
|
100
108
|
key: 1,
|
|
101
109
|
class: "prefix-text",
|
|
102
110
|
variant: "body1"
|
|
103
111
|
}, {
|
|
104
|
-
default:
|
|
105
|
-
V(
|
|
112
|
+
default: b(() => [
|
|
113
|
+
V($(e.prefix), 1)
|
|
106
114
|
]),
|
|
107
115
|
_: 1
|
|
108
116
|
})) : n("", !0),
|
|
109
|
-
|
|
117
|
+
A("input", c({
|
|
110
118
|
ref_key: "inputRef",
|
|
111
|
-
ref:
|
|
119
|
+
ref: g,
|
|
112
120
|
maxlength: e.maxLength
|
|
113
|
-
}, { ...u.$attrs, ...t(
|
|
114
|
-
value: t(
|
|
115
|
-
placeholder: t(
|
|
121
|
+
}, { ...u.$attrs, ...t(y)[t(m).FIELD] }, {
|
|
122
|
+
value: t(P),
|
|
123
|
+
placeholder: t(M),
|
|
116
124
|
disabled: e.disabled || e.viewOnly,
|
|
117
|
-
type: t(
|
|
125
|
+
type: t(q),
|
|
118
126
|
class: ["input", {
|
|
119
|
-
[t(
|
|
127
|
+
[t(G)]: !0,
|
|
120
128
|
"view-only": e.viewOnly,
|
|
121
|
-
"label-inside": t(
|
|
129
|
+
"label-inside": t(w),
|
|
122
130
|
"hide-arrows": e.hideNumberArrows,
|
|
123
131
|
"input-type": e.type
|
|
124
132
|
}],
|
|
125
133
|
step: e.step,
|
|
126
134
|
onInput: a[0] || (a[0] = //@ts-ignore
|
|
127
|
-
(...i) => t(
|
|
128
|
-
onFocus: a[1] || (a[1] = (i) =>
|
|
129
|
-
onBlur: a[2] || (a[2] = (i) =>
|
|
130
|
-
onKeyup: a[3] || (a[3] =
|
|
135
|
+
(...i) => t(L) && t(L)(...i)),
|
|
136
|
+
onFocus: a[1] || (a[1] = (i) => h.value = !0),
|
|
137
|
+
onBlur: a[2] || (a[2] = (i) => h.value = !1),
|
|
138
|
+
onKeyup: a[3] || (a[3] = U(z(
|
|
131
139
|
//@ts-ignore
|
|
132
140
|
(...i) => t(T) && t(T)(...i),
|
|
133
141
|
["prevent"]
|
|
134
142
|
), ["enter"])),
|
|
135
143
|
onKeypress: a[4] || (a[4] = //@ts-ignore
|
|
136
|
-
(...i) => t(
|
|
137
|
-
}), null, 16,
|
|
138
|
-
e.
|
|
139
|
-
|
|
144
|
+
(...i) => t(I) && t(I)(...i))
|
|
145
|
+
}), null, 16, le),
|
|
146
|
+
e.maxLength && e.maxLengthCounterPosition === "inside" ? (l(), r(N, O(c({ key: 2 }, t(B))), null, 16)) : n("", !0),
|
|
147
|
+
e.showApply || t(s)?.confirmable && !t(s)?.error?.value ? (l(), d("div", {
|
|
148
|
+
key: 3,
|
|
140
149
|
class: "apply-button",
|
|
141
|
-
onClick:
|
|
150
|
+
onClick: z(H, ["stop", "prevent"])
|
|
142
151
|
}, [
|
|
143
152
|
p(t(v), {
|
|
144
153
|
name: "check",
|
|
145
154
|
size: "20px"
|
|
146
155
|
})
|
|
147
|
-
], 8,
|
|
148
|
-
e.inlineError || t(
|
|
149
|
-
p(t(
|
|
150
|
-
disabled: !e.inlineErrorText && !t(
|
|
151
|
-
text: e.inlineErrorText || t(
|
|
156
|
+
], 8, ae)) : n("", !0),
|
|
157
|
+
e.inlineError || t(s)?.error?.value ? (l(), d("div", ne, [
|
|
158
|
+
p(t(X), c({
|
|
159
|
+
disabled: !e.inlineErrorText && !t(s)?.error?.value,
|
|
160
|
+
text: e.inlineErrorText || t(s)?.error?.value,
|
|
152
161
|
"test-id": e.testId,
|
|
153
162
|
placement: e.inlineErrorTextPlacement
|
|
154
|
-
}, t(
|
|
155
|
-
default:
|
|
163
|
+
}, t(y)[t(m).TOOLTIP]), {
|
|
164
|
+
default: b(() => [
|
|
156
165
|
p(t(v), {
|
|
157
166
|
name: "warning-circle",
|
|
158
167
|
size: "16px"
|
|
@@ -161,56 +170,52 @@ const Y = {
|
|
|
161
170
|
_: 1
|
|
162
171
|
}, 16, ["disabled", "text", "test-id", "placement"])
|
|
163
172
|
])) : n("", !0),
|
|
164
|
-
e.suffix ? (l(),
|
|
165
|
-
key:
|
|
173
|
+
e.suffix ? (l(), r(t(D), {
|
|
174
|
+
key: 5,
|
|
166
175
|
class: "suffix-text",
|
|
167
176
|
variant: "body1"
|
|
168
177
|
}, {
|
|
169
|
-
default:
|
|
170
|
-
V(
|
|
178
|
+
default: b(() => [
|
|
179
|
+
V($(e.suffix), 1)
|
|
171
180
|
]),
|
|
172
181
|
_: 1
|
|
173
182
|
})) : n("", !0),
|
|
174
|
-
e.type === "password" ? (l(),
|
|
175
|
-
key:
|
|
183
|
+
e.type === "password" ? (l(), d("div", c({
|
|
184
|
+
key: 6,
|
|
176
185
|
class: "password-visibility-toggle"
|
|
177
|
-
}, t(
|
|
178
|
-
onClick: a[5] || (a[5] = (i) =>
|
|
186
|
+
}, t(y)[t(m).TOGGLE_PASSWORD], {
|
|
187
|
+
onClick: a[5] || (a[5] = (i) => x.value = !x.value)
|
|
179
188
|
}), [
|
|
180
|
-
|
|
189
|
+
x.value ? (l(), r(t(v), {
|
|
181
190
|
key: 0,
|
|
182
191
|
name: "eye",
|
|
183
192
|
size: "16px"
|
|
184
|
-
})) : (l(),
|
|
193
|
+
})) : (l(), r(t(v), {
|
|
185
194
|
key: 1,
|
|
186
195
|
name: "eye-slash",
|
|
187
196
|
size: "16px"
|
|
188
197
|
}))
|
|
189
198
|
], 16)) : n("", !0),
|
|
190
|
-
u.$slots.iconAfter ? (l(),
|
|
191
|
-
|
|
199
|
+
u.$slots.iconAfter ? (l(), d("div", oe, [
|
|
200
|
+
F(u.$slots, "iconAfter", {}, void 0, !0)
|
|
192
201
|
])) : n("", !0)
|
|
193
202
|
], 2),
|
|
194
|
-
|
|
203
|
+
t(j) ? (l(), d("div", {
|
|
195
204
|
key: 1,
|
|
196
|
-
class:
|
|
205
|
+
class: E(["footer", e.feedbackPositionAbsolute && "footer-absolute"])
|
|
197
206
|
}, [
|
|
198
|
-
e.feedbackText ? (l(),
|
|
207
|
+
e.feedbackText ? (l(), r(_, {
|
|
199
208
|
key: 0,
|
|
200
209
|
text: e.feedbackText,
|
|
201
210
|
variant: e.feedbackVariant,
|
|
202
211
|
"show-icon": e.showFeedbackTextIcon,
|
|
203
212
|
"test-id": e.testId
|
|
204
213
|
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : n("", !0),
|
|
205
|
-
|
|
206
|
-
key: 1,
|
|
207
|
-
"current-length": t(R),
|
|
208
|
-
"max-length": e.maxLength
|
|
209
|
-
}, null, 8, ["current-length", "max-length"])) : n("", !0)
|
|
214
|
+
t(C) ? (l(), r(N, O(c({ key: 1 }, t(B))), null, 16)) : n("", !0)
|
|
210
215
|
], 2)) : n("", !0)
|
|
211
216
|
], 16));
|
|
212
217
|
}
|
|
213
218
|
});
|
|
214
219
|
export {
|
|
215
|
-
|
|
220
|
+
be as default
|
|
216
221
|
};
|