@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
|
@@ -1,39 +1,50 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { useTableContext as
|
|
3
|
-
import { EditableContext as
|
|
4
|
-
import { onClickOutside as
|
|
5
|
-
const
|
|
6
|
-
const l =
|
|
7
|
-
|
|
1
|
+
import { ref as t, provide as d } from "vue";
|
|
2
|
+
import { useTableContext as f } from "../../table/common/TableContext.js";
|
|
3
|
+
import { EditableContext as C } from "./EditableContext.js";
|
|
4
|
+
import { onClickOutside as m } from "@vueuse/core";
|
|
5
|
+
const k = (e) => {
|
|
6
|
+
const l = t(!1), n = t(e.cell), o = t(e.saveOnClickOutside), i = t(null), r = f("Editable"), a = t(null), v = () => {
|
|
7
|
+
if (e.cell === n.value) {
|
|
8
|
+
l.value = !1;
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
const u = e.validateFunction?.(n.value);
|
|
12
|
+
a.value = u, !u && (r.onClose({
|
|
13
|
+
rowIndex: e.rowIndex,
|
|
14
|
+
cellIndex: e.cellIndex,
|
|
15
|
+
value: n.value
|
|
16
|
+
}), l.value = !1);
|
|
17
|
+
};
|
|
18
|
+
d(C, {
|
|
8
19
|
focusable: !0,
|
|
9
20
|
value: n,
|
|
10
|
-
error:
|
|
21
|
+
error: a,
|
|
11
22
|
confirmable: !0,
|
|
12
|
-
|
|
13
|
-
|
|
23
|
+
saveOnClickOutside: o.value,
|
|
24
|
+
onChange(u) {
|
|
25
|
+
n.value = u, a.value = e.validateFunction?.(n.value);
|
|
14
26
|
},
|
|
15
|
-
onClose:
|
|
16
|
-
const t = e.validateFunction?.(n.value);
|
|
17
|
-
o.value = t, !t && (r.onClose({
|
|
18
|
-
rowIndex: e.rowIndex,
|
|
19
|
-
cellIndex: e.cellIndex,
|
|
20
|
-
value: n.value
|
|
21
|
-
}), l.value = !1);
|
|
22
|
-
}
|
|
27
|
+
onClose: v
|
|
23
28
|
});
|
|
24
|
-
const
|
|
29
|
+
const c = () => {
|
|
25
30
|
l.value || e.isLoading || (l.value = !l.value);
|
|
26
|
-
},
|
|
27
|
-
n.value = e.cell,
|
|
31
|
+
}, s = () => {
|
|
32
|
+
n.value = e.cell, a.value = null;
|
|
28
33
|
};
|
|
29
|
-
return
|
|
30
|
-
l.value
|
|
34
|
+
return m(i, () => {
|
|
35
|
+
if (l.value) {
|
|
36
|
+
if (o.value) {
|
|
37
|
+
v();
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
l.value = !1, s(), r.onClose();
|
|
41
|
+
}
|
|
31
42
|
}), {
|
|
32
|
-
onEdit:
|
|
33
|
-
target:
|
|
43
|
+
onEdit: c,
|
|
44
|
+
target: i,
|
|
34
45
|
isEditing: l
|
|
35
46
|
};
|
|
36
47
|
};
|
|
37
48
|
export {
|
|
38
|
-
|
|
49
|
+
k as editableCommon
|
|
39
50
|
};
|
|
@@ -6,6 +6,7 @@ export interface EditableContextProps {
|
|
|
6
6
|
error?: Ref<string>;
|
|
7
7
|
value?: Ref<unknown>;
|
|
8
8
|
confirmable?: boolean;
|
|
9
|
+
saveOnClickOutside?: boolean;
|
|
9
10
|
}
|
|
10
11
|
export declare const EditableContext: InjectionKey<EditableContextProps>;
|
|
11
12
|
export declare function useEditableContext(): EditableContextProps;
|
|
@@ -4,12 +4,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
4
4
|
rowIndex: number;
|
|
5
5
|
cellIndex: number;
|
|
6
6
|
type: "input" | "dropdown";
|
|
7
|
+
saveOnClickOutside?: boolean;
|
|
7
8
|
validateFunction?: (value: unknown) => string | boolean;
|
|
8
9
|
displayValue?: (option: unknown) => unknown;
|
|
9
10
|
}>, {
|
|
10
11
|
cell: string;
|
|
11
12
|
isLoading: boolean;
|
|
12
13
|
type: string;
|
|
14
|
+
saveOnClickOutside: boolean;
|
|
13
15
|
validateFunction: () => false;
|
|
14
16
|
displayValue: (cell: unknown) => unknown;
|
|
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<{
|
|
@@ -18,17 +20,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
18
20
|
rowIndex: number;
|
|
19
21
|
cellIndex: number;
|
|
20
22
|
type: "input" | "dropdown";
|
|
23
|
+
saveOnClickOutside?: boolean;
|
|
21
24
|
validateFunction?: (value: unknown) => string | boolean;
|
|
22
25
|
displayValue?: (option: unknown) => unknown;
|
|
23
26
|
}>, {
|
|
24
27
|
cell: string;
|
|
25
28
|
isLoading: boolean;
|
|
26
29
|
type: string;
|
|
30
|
+
saveOnClickOutside: boolean;
|
|
27
31
|
validateFunction: () => false;
|
|
28
32
|
displayValue: (cell: unknown) => unknown;
|
|
29
33
|
}>>>, {
|
|
30
34
|
type: "input" | "dropdown";
|
|
31
35
|
cell: string;
|
|
36
|
+
saveOnClickOutside: boolean;
|
|
32
37
|
validateFunction: (value: unknown) => string | boolean;
|
|
33
38
|
isLoading: boolean;
|
|
34
39
|
displayValue: (option: unknown) => unknown;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../EditableV4.
|
|
4
|
-
const
|
|
1
|
+
import e from "./EditableV4.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-e0c047b4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "../../../EditableV4.
|
|
2
|
-
import { editableCommon as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import "../../../EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css"; import { defineComponent as m, openBlock as o, createElementBlock as i, unref as t, createElementVNode as f, renderSlot as r, createVNode as d, withCtx as y, createTextVNode as k, toDisplayString as V, createBlock as b, createCommentVNode as g } from "vue";
|
|
2
|
+
import { editableCommon as v } from "../common/Editable.common.js";
|
|
3
|
+
import x from "../../typography/v4/Typography.vue.js";
|
|
4
|
+
import C from "../../input/v4/TextField.vue.js";
|
|
5
|
+
import w from "../../icon/v4/IconV4.vue.js";
|
|
6
6
|
import "../../icon/v4/IconFlag.vue.js";
|
|
7
|
-
const
|
|
7
|
+
const B = { class: "editable-wrapper" }, E = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "editable-content"
|
|
10
|
-
},
|
|
10
|
+
}, S = /* @__PURE__ */ m({
|
|
11
11
|
__name: "EditableV4",
|
|
12
12
|
props: {
|
|
13
13
|
cell: { default: "" },
|
|
@@ -15,30 +15,31 @@ const E = { class: "editable-wrapper" }, B = {
|
|
|
15
15
|
rowIndex: null,
|
|
16
16
|
cellIndex: null,
|
|
17
17
|
type: { default: "input" },
|
|
18
|
+
saveOnClickOutside: { type: Boolean, default: !0 },
|
|
18
19
|
validateFunction: { type: Function, default: () => !1 },
|
|
19
20
|
displayValue: { type: Function, default: (e) => e }
|
|
20
21
|
},
|
|
21
22
|
setup(e) {
|
|
22
|
-
const
|
|
23
|
+
const s = e, { onEdit: n, target: c, isEditing: u } = v(s);
|
|
23
24
|
return (l, a) => (o(), i("div", {
|
|
24
25
|
ref_key: "target",
|
|
25
|
-
ref:
|
|
26
|
+
ref: c,
|
|
26
27
|
class: "editable",
|
|
27
28
|
onClick: a[0] || (a[0] = //@ts-ignore
|
|
28
|
-
(...
|
|
29
|
+
(...p) => t(n) && t(n)(...p))
|
|
29
30
|
}, [
|
|
30
|
-
f("div",
|
|
31
|
-
t(
|
|
32
|
-
d(t(
|
|
33
|
-
], !0) : (o(), i("div",
|
|
31
|
+
f("div", B, [
|
|
32
|
+
t(u) ? r(l.$slots, "input", { key: 0 }, () => [
|
|
33
|
+
d(t(C))
|
|
34
|
+
], !0) : (o(), i("div", E, [
|
|
34
35
|
r(l.$slots, "content", {}, () => [
|
|
35
|
-
d(t(
|
|
36
|
+
d(t(x), { variant: "body1" }, {
|
|
36
37
|
default: y(() => [
|
|
37
38
|
k(V(e.displayValue(e.cell)), 1)
|
|
38
39
|
]),
|
|
39
40
|
_: 1
|
|
40
41
|
}),
|
|
41
|
-
e.type === "dropdown" ? (o(), b(t(
|
|
42
|
+
e.type === "dropdown" ? (o(), b(t(w), {
|
|
42
43
|
key: 0,
|
|
43
44
|
class: "caret-icon",
|
|
44
45
|
name: "caret-down",
|
|
@@ -51,5 +52,5 @@ const E = { class: "editable-wrapper" }, B = {
|
|
|
51
52
|
}
|
|
52
53
|
});
|
|
53
54
|
export {
|
|
54
|
-
|
|
55
|
+
S as default
|
|
55
56
|
};
|
|
@@ -6,6 +6,7 @@ declare const EditableTypes: () => ({
|
|
|
6
6
|
$props: Partial<{
|
|
7
7
|
type: "input" | "dropdown";
|
|
8
8
|
cell: string;
|
|
9
|
+
saveOnClickOutside: boolean;
|
|
9
10
|
validateFunction: (value: unknown) => string | boolean;
|
|
10
11
|
isLoading: boolean;
|
|
11
12
|
displayValue: (option: unknown) => unknown;
|
|
@@ -19,6 +20,10 @@ declare const EditableTypes: () => ({
|
|
|
19
20
|
type: import("vue").PropType<string>;
|
|
20
21
|
default: string;
|
|
21
22
|
};
|
|
23
|
+
saveOnClickOutside: {
|
|
24
|
+
type: import("vue").PropType<boolean>;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
22
27
|
validateFunction: {
|
|
23
28
|
type: import("vue").PropType<(value: unknown) => string | boolean>;
|
|
24
29
|
default: () => false;
|
|
@@ -39,7 +44,7 @@ declare const EditableTypes: () => ({
|
|
|
39
44
|
type: import("vue").PropType<(option: unknown) => unknown>;
|
|
40
45
|
default: (cell: unknown) => unknown;
|
|
41
46
|
};
|
|
42
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "cell" | "validateFunction" | "isLoading" | "displayValue">;
|
|
47
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "cell" | "saveOnClickOutside" | "validateFunction" | "isLoading" | "displayValue">;
|
|
43
48
|
$attrs: {
|
|
44
49
|
[x: string]: unknown;
|
|
45
50
|
};
|
|
@@ -63,6 +68,10 @@ declare const EditableTypes: () => ({
|
|
|
63
68
|
type: import("vue").PropType<string>;
|
|
64
69
|
default: string;
|
|
65
70
|
};
|
|
71
|
+
saveOnClickOutside: {
|
|
72
|
+
type: import("vue").PropType<boolean>;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
66
75
|
validateFunction: {
|
|
67
76
|
type: import("vue").PropType<(value: unknown) => string | boolean>;
|
|
68
77
|
default: () => false;
|
|
@@ -86,6 +95,7 @@ declare const EditableTypes: () => ({
|
|
|
86
95
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
87
96
|
type: "input" | "dropdown";
|
|
88
97
|
cell: string;
|
|
98
|
+
saveOnClickOutside: boolean;
|
|
89
99
|
validateFunction: (value: unknown) => string | boolean;
|
|
90
100
|
isLoading: boolean;
|
|
91
101
|
displayValue: (option: unknown) => unknown;
|
|
@@ -119,6 +129,10 @@ declare const EditableTypes: () => ({
|
|
|
119
129
|
type: import("vue").PropType<string>;
|
|
120
130
|
default: string;
|
|
121
131
|
};
|
|
132
|
+
saveOnClickOutside: {
|
|
133
|
+
type: import("vue").PropType<boolean>;
|
|
134
|
+
default: boolean;
|
|
135
|
+
};
|
|
122
136
|
validateFunction: {
|
|
123
137
|
type: import("vue").PropType<(value: unknown) => string | boolean>;
|
|
124
138
|
default: () => false;
|
|
@@ -153,6 +167,10 @@ declare const EditableTypes: () => ({
|
|
|
153
167
|
type: import("vue").PropType<string>;
|
|
154
168
|
default: string;
|
|
155
169
|
};
|
|
170
|
+
saveOnClickOutside: {
|
|
171
|
+
type: import("vue").PropType<boolean>;
|
|
172
|
+
default: boolean;
|
|
173
|
+
};
|
|
156
174
|
validateFunction: {
|
|
157
175
|
type: import("vue").PropType<(value: unknown) => string | boolean>;
|
|
158
176
|
default: () => false;
|
|
@@ -176,6 +194,7 @@ declare const EditableTypes: () => ({
|
|
|
176
194
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
177
195
|
type: "input" | "dropdown";
|
|
178
196
|
cell: string;
|
|
197
|
+
saveOnClickOutside: boolean;
|
|
179
198
|
validateFunction: (value: unknown) => string | boolean;
|
|
180
199
|
isLoading: boolean;
|
|
181
200
|
displayValue: (option: unknown) => unknown;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TabsV4.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../TabsV4.
|
|
4
|
-
const
|
|
2
|
+
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ _(o, [["__scopeId", "data-v-f9433b11"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../../../TabsV4.
|
|
2
|
-
import
|
|
3
|
-
import { TabsTestIdModifiers as
|
|
1
|
+
import "../../../TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css"; import { defineComponent as x, useCssVars as y, ref as l, watch as C, nextTick as $, openBlock as o, createElementBlock as c, mergeProps as w, unref as s, Fragment as A, renderList as S, normalizeClass as g, renderSlot as V, createBlock as B, withCtx as M, createTextVNode as N, toDisplayString as R, createCommentVNode as _, pushScopeId as E, popScopeId as P, createElementVNode as W } from "vue";
|
|
2
|
+
import H from "../../typography/v4/Typography.vue.js";
|
|
3
|
+
import { TabsTestIdModifiers as m } from "../../../testids/index.js";
|
|
4
4
|
import { tabsCommon as z } from "../common/tabsCommon.js";
|
|
5
5
|
import { useTestIdAttrs as D } from "../../../utils/testIds.js";
|
|
6
|
-
const F = (t) => (
|
|
6
|
+
const F = (t) => (E("data-v-f9433b11"), t = t(), P(), t), U = ["data-testid", "onClick", "onMouseover"], j = /* @__PURE__ */ F(() => /* @__PURE__ */ W("div", { class: "tabs-border-line" }, null, -1)), Q = /* @__PURE__ */ x({
|
|
7
7
|
__name: "TabsV4",
|
|
8
8
|
props: {
|
|
9
9
|
tabsList: { default: () => [] },
|
|
@@ -12,59 +12,56 @@ const F = (t) => (W("data-v-bab40cfe"), t = t(), _(), t), U = ["data-testid", "o
|
|
|
12
12
|
testId: { default: "" }
|
|
13
13
|
},
|
|
14
14
|
emits: ["update:selectedTab"],
|
|
15
|
-
setup(t, { emit:
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
15
|
+
setup(t, { emit: p }) {
|
|
16
|
+
const r = t;
|
|
17
|
+
y((a) => ({
|
|
18
|
+
"167b065e": v.value,
|
|
19
|
+
"8cfadb62": b.value
|
|
20
20
|
}));
|
|
21
|
-
const {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
setHover: I,
|
|
25
|
-
clearHover: u,
|
|
26
|
-
tabsNewList: L,
|
|
27
|
-
getSelectedTabIndex: k
|
|
28
|
-
} = z(a, f), x = D(a.testId, c), d = (o) => o.id === a.selectedTab, m = v(), b = v();
|
|
29
|
-
return w(
|
|
30
|
-
[() => a.variant, () => a.selectedTab, () => a.tabsList],
|
|
21
|
+
const { skipUnwrap: T, selectTab: I, setHover: L, clearHover: u, getSelectedTabIndex: k } = z(r, p), f = l(null), h = D(r.testId, m), i = (a) => a.id === r.selectedTab, b = l(), v = l();
|
|
22
|
+
return C(
|
|
23
|
+
[() => r.variant, () => r.selectedTab, () => r.tabsList],
|
|
31
24
|
async () => {
|
|
32
|
-
const
|
|
25
|
+
const a = k();
|
|
26
|
+
if (a === -1)
|
|
27
|
+
return;
|
|
33
28
|
await $();
|
|
34
|
-
const
|
|
35
|
-
|
|
29
|
+
const e = Array.from(f.value?.children || []).at(a);
|
|
30
|
+
b.value = e?.clientWidth + "px", v.value = e?.offsetLeft + "px";
|
|
36
31
|
},
|
|
37
32
|
{ immediate: !0 }
|
|
38
|
-
), (
|
|
33
|
+
), (a, n) => (o(), c("ul", w({
|
|
34
|
+
ref_key: "tabsListRef",
|
|
35
|
+
ref: f,
|
|
39
36
|
class: ["tabs-list", [`tabs-list--${t.variant}`]]
|
|
40
|
-
}, s(
|
|
41
|
-
(
|
|
37
|
+
}, s(h)[s(m).WRAPPER]), [
|
|
38
|
+
(o(!0), c(A, null, S(t.tabsList, (e) => (o(), c("li", {
|
|
42
39
|
ref_for: !0,
|
|
43
|
-
ref: s(
|
|
40
|
+
ref: s(T).tabsNewList,
|
|
44
41
|
key: e.id,
|
|
45
|
-
class:
|
|
42
|
+
class: g(["tab-item", {
|
|
46
43
|
"tab-item--disabled": e.disabled,
|
|
47
|
-
"tab-item--active":
|
|
44
|
+
"tab-item--active": i(e)
|
|
48
45
|
}]),
|
|
49
|
-
"data-testid": t.testId ? `${t.testId}-${s(
|
|
50
|
-
onClick: (
|
|
51
|
-
onMouseover: (
|
|
52
|
-
onMouseleave:
|
|
53
|
-
(...
|
|
46
|
+
"data-testid": t.testId ? `${t.testId}-${s(m).TAB}-${e.id}` : void 0,
|
|
47
|
+
onClick: (d) => s(I)(e),
|
|
48
|
+
onMouseover: (d) => s(L)(e),
|
|
49
|
+
onMouseleave: n[0] || (n[0] = //@ts-ignore
|
|
50
|
+
(...d) => s(u) && s(u)(...d))
|
|
54
51
|
}, [
|
|
55
|
-
|
|
52
|
+
V(a.$slots, "tab-icon", {
|
|
56
53
|
tab: e,
|
|
57
|
-
active:
|
|
54
|
+
active: i(e)
|
|
58
55
|
}, void 0, !0),
|
|
59
|
-
e.name ? (
|
|
56
|
+
e.name ? (o(), B(s(H), {
|
|
60
57
|
key: 0,
|
|
61
|
-
variant:
|
|
58
|
+
variant: i(e) ? "tabLabel2" : "tabLabel1"
|
|
62
59
|
}, {
|
|
63
|
-
default:
|
|
64
|
-
|
|
60
|
+
default: M(() => [
|
|
61
|
+
N(R(e.name), 1)
|
|
65
62
|
]),
|
|
66
63
|
_: 2
|
|
67
|
-
}, 1032, ["variant"])) :
|
|
64
|
+
}, 1032, ["variant"])) : _("", !0)
|
|
68
65
|
], 42, U))), 128)),
|
|
69
66
|
j
|
|
70
67
|
], 16));
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { TooltipPositions } from '@/components/tooltip/common/Tooltip.types';
|
|
2
|
-
import { FeedbackVariant } from '@/components/shared/commonTypes';
|
|
2
|
+
import { FeedbackVariant, MaxLengthCounterPositions } from '@/components/shared/commonTypes';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
modelValue?: string;
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
label?: string;
|
|
8
8
|
maxLength?: number;
|
|
9
|
+
maxLengthCounterPosition?: MaxLengthCounterPositions;
|
|
9
10
|
mandatory?: boolean;
|
|
10
11
|
hoverHelpText?: string;
|
|
11
12
|
hoverHelpTextPlacement?: TooltipPositions;
|
|
@@ -21,6 +22,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
21
22
|
disabled: boolean;
|
|
22
23
|
label: string;
|
|
23
24
|
maxLength: any;
|
|
25
|
+
maxLengthCounterPosition: string;
|
|
24
26
|
mandatory: boolean;
|
|
25
27
|
hoverHelpText: string;
|
|
26
28
|
hoverHelpTextPlacement: string;
|
|
@@ -38,6 +40,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
38
40
|
disabled?: boolean;
|
|
39
41
|
label?: string;
|
|
40
42
|
maxLength?: number;
|
|
43
|
+
maxLengthCounterPosition?: MaxLengthCounterPositions;
|
|
41
44
|
mandatory?: boolean;
|
|
42
45
|
hoverHelpText?: string;
|
|
43
46
|
hoverHelpTextPlacement?: TooltipPositions;
|
|
@@ -53,6 +56,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
53
56
|
disabled: boolean;
|
|
54
57
|
label: string;
|
|
55
58
|
maxLength: any;
|
|
59
|
+
maxLengthCounterPosition: string;
|
|
56
60
|
mandatory: boolean;
|
|
57
61
|
hoverHelpText: string;
|
|
58
62
|
hoverHelpTextPlacement: string;
|
|
@@ -76,6 +80,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
76
80
|
maxLength: number;
|
|
77
81
|
modelValue: string;
|
|
78
82
|
placeholder: string;
|
|
83
|
+
maxLengthCounterPosition: MaxLengthCounterPositions;
|
|
79
84
|
feedbackText: string;
|
|
80
85
|
feedbackVariant: FeedbackVariant;
|
|
81
86
|
showFeedbackTextIcon: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./TextAreaV4.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../TextAreaV4.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../TextAreaV4.vue_vue_type_style_index_0_scoped_4114ef89_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-4114ef89"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "../../../TextAreaV4.
|
|
1
|
+
import "../../../TextAreaV4.vue_vue_type_style_index_0_scoped_4114ef89_lang.css"; import { defineComponent as f, computed as b, openBlock as t, createElementBlock as r, mergeProps as c, unref as a, createBlock as d, createCommentVNode as l, createElementVNode as g } from "vue";
|
|
2
2
|
import v from "../../shared/FieldLabel.vue.js";
|
|
3
3
|
import k from "../../shared/FieldMaxLength.vue.js";
|
|
4
4
|
import T from "../../shared/FieldHelpText.vue.js";
|
|
5
|
-
import { TextAreaTestIdModifiers as
|
|
5
|
+
import { TextAreaTestIdModifiers as i } from "../../../testids/index.js";
|
|
6
6
|
import { useTestIdAttrs as V } from "../../../utils/testIds.js";
|
|
7
7
|
const y = ["value", "placeholder", "disabled", "maxlength"], I = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "footer"
|
|
10
|
-
}, w = /* @__PURE__ */
|
|
10
|
+
}, w = /* @__PURE__ */ f({
|
|
11
11
|
__name: "TextAreaV4",
|
|
12
12
|
props: {
|
|
13
13
|
modelValue: { default: "" },
|
|
@@ -15,6 +15,7 @@ const y = ["value", "placeholder", "disabled", "maxlength"], I = {
|
|
|
15
15
|
disabled: { type: Boolean, default: !1 },
|
|
16
16
|
label: { default: "" },
|
|
17
17
|
maxLength: { default: null },
|
|
18
|
+
maxLengthCounterPosition: { default: "inside" },
|
|
18
19
|
mandatory: { type: Boolean, default: !1 },
|
|
19
20
|
hoverHelpText: { default: "" },
|
|
20
21
|
hoverHelpTextPlacement: { default: "top" },
|
|
@@ -27,11 +28,15 @@ const y = ["value", "placeholder", "disabled", "maxlength"], I = {
|
|
|
27
28
|
},
|
|
28
29
|
emits: ["update:modelValue"],
|
|
29
30
|
setup(e, { emit: h }) {
|
|
30
|
-
const
|
|
31
|
-
h("update:modelValue",
|
|
32
|
-
}, x = b(() => (
|
|
33
|
-
return (
|
|
34
|
-
|
|
31
|
+
const u = e, m = (n) => {
|
|
32
|
+
h("update:modelValue", n.target.value);
|
|
33
|
+
}, x = b(() => (u.modelValue || "").length), o = V(u.testId, i);
|
|
34
|
+
return (n, s) => (t(), r("div", c({
|
|
35
|
+
class: ["textarea-field", {
|
|
36
|
+
"textarea-field--counter-inside": e.maxLength && e.maxLengthCounterPosition === "inside"
|
|
37
|
+
}]
|
|
38
|
+
}, a(o)[a(i).WRAPPER]), [
|
|
39
|
+
e.label ? (t(), d(v, {
|
|
35
40
|
key: 0,
|
|
36
41
|
class: "textarea-label",
|
|
37
42
|
label: e.label,
|
|
@@ -51,17 +56,18 @@ const y = ["value", "placeholder", "disabled", "maxlength"], I = {
|
|
|
51
56
|
placeholder: e.placeholder,
|
|
52
57
|
disabled: e.disabled,
|
|
53
58
|
maxlength: e.maxLength
|
|
54
|
-
}, a(
|
|
55
|
-
e.feedbackText || e.maxLength ? (t(),
|
|
56
|
-
e.feedbackText ? (t(),
|
|
59
|
+
}, a(o)[a(i).FIELD], { onInput: m }), null, 16, y),
|
|
60
|
+
e.feedbackText || e.maxLength ? (t(), r("div", I, [
|
|
61
|
+
e.feedbackText ? (t(), d(T, {
|
|
57
62
|
key: 0,
|
|
58
63
|
text: e.feedbackText,
|
|
59
64
|
variant: e.feedbackVariant,
|
|
60
65
|
"show-icon": e.showFeedbackTextIcon,
|
|
61
66
|
"test-id": e.testId
|
|
62
67
|
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : l("", !0),
|
|
63
|
-
e.maxLength ? (t(),
|
|
68
|
+
e.maxLength ? (t(), d(k, {
|
|
64
69
|
key: 1,
|
|
70
|
+
class: "max-length-counter",
|
|
65
71
|
"current-length": a(x),
|
|
66
72
|
"max-length": e.maxLength
|
|
67
73
|
}, null, 8, ["current-length", "max-length"])) : l("", !0)
|
|
@@ -43,6 +43,10 @@ declare const TextAreaTypes: () => import("vue").DefineComponent<{
|
|
|
43
43
|
type: import("vue").PropType<string>;
|
|
44
44
|
default: string;
|
|
45
45
|
};
|
|
46
|
+
maxLengthCounterPosition: {
|
|
47
|
+
type: import("vue").PropType<"inside" | "outside">;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
46
50
|
feedbackText: {
|
|
47
51
|
type: import("vue").PropType<string>;
|
|
48
52
|
default: string;
|
|
@@ -102,6 +106,10 @@ declare const TextAreaTypes: () => import("vue").DefineComponent<{
|
|
|
102
106
|
type: import("vue").PropType<string>;
|
|
103
107
|
default: string;
|
|
104
108
|
};
|
|
109
|
+
maxLengthCounterPosition: {
|
|
110
|
+
type: import("vue").PropType<"inside" | "outside">;
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
105
113
|
feedbackText: {
|
|
106
114
|
type: import("vue").PropType<string>;
|
|
107
115
|
default: string;
|
|
@@ -128,6 +136,7 @@ declare const TextAreaTypes: () => import("vue").DefineComponent<{
|
|
|
128
136
|
maxLength: number;
|
|
129
137
|
modelValue: string;
|
|
130
138
|
placeholder: string;
|
|
139
|
+
maxLengthCounterPosition: "inside" | "outside";
|
|
131
140
|
feedbackText: string;
|
|
132
141
|
feedbackVariant: "success" | "warning" | "error";
|
|
133
142
|
showFeedbackTextIcon: boolean;
|
|
@@ -15,8 +15,12 @@ declare const iconsAdNetworks: {
|
|
|
15
15
|
name: string;
|
|
16
16
|
path: string;
|
|
17
17
|
}[];
|
|
18
|
-
declare const
|
|
18
|
+
declare const iconsIosContentRateData: {
|
|
19
19
|
name: string;
|
|
20
20
|
path: string;
|
|
21
21
|
}[];
|
|
22
|
-
|
|
22
|
+
declare const iconsAndroidContentRateData: {
|
|
23
|
+
name: string;
|
|
24
|
+
path: string;
|
|
25
|
+
}[];
|
|
26
|
+
export { assetsPath, iconsBrandedData, iconsADUnitData, iconsABTestData, iconsAdNetworks, iconsIosContentRateData, iconsAndroidContentRateData, };
|