@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.
Files changed (159) hide show
  1. package/Autocomplete.vue_vue_type_style_index_0_scoped_e361f9fd_lang.css +1 -0
  2. package/Chart.vue_vue_type_style_index_0_scoped_f06a4764_lang.css +1 -0
  3. package/ChartHeader.vue_vue_type_style_index_0_scoped_88d4532f_lang.css +1 -0
  4. package/ChartLegend.vue_vue_type_style_index_0_scoped_efc608f9_lang.css +1 -0
  5. package/ChartLoader.vue_vue_type_style_index_0_scoped_142c444a_lang.css +1 -0
  6. package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +1 -0
  7. package/DataGrid.vue_vue_type_style_index_0_scoped_706b324e_lang.css +1 -0
  8. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_0ce71f73_lang.css +1 -0
  9. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_98819e5a_lang.css +1 -0
  10. package/DropdownV4.vue_vue_type_style_index_0_scoped_00ccab6b_lang.css +1 -0
  11. package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +1 -0
  12. package/FieldMaxLength.vue_vue_type_style_index_0_scoped_47877984_lang.css +1 -0
  13. package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +1 -0
  14. package/IncludeExclude.vue_vue_type_style_index_0_scoped_cc2adbf5_lang.css +1 -0
  15. package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_bd6145ce_lang.css +1 -0
  16. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_82ba0e12_lang.css +1 -0
  17. package/OptionV4.vue_vue_type_style_index_0_scoped_77509f61_lang.css +1 -0
  18. package/Popover.vue_vue_type_style_index_0_scoped_c607b770_lang.css +1 -0
  19. package/PopoverV4.vue_vue_type_style_index_0_scoped_c54cd089_lang.css +1 -0
  20. package/PopoverV4.vue_vue_type_style_index_1_lang.css +1 -0
  21. package/README.md +1 -1
  22. package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +1 -0
  23. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +1 -0
  24. package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +1 -0
  25. package/TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css +1 -0
  26. package/TextAreaV4.vue_vue_type_style_index_0_scoped_4114ef89_lang.css +1 -0
  27. package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +1 -0
  28. package/ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css +1 -0
  29. package/TreeDropdown.vue_vue_type_style_index_0_scoped_dbd80d49_lang.css +1 -0
  30. package/components/ThemeWrapper/ThemeWrapper.vue.js +2 -2
  31. package/components/ThemeWrapper/ThemeWrapper.vue2.js +5 -5
  32. package/components/appHeader/AppHeader.vue.d.ts +1 -1
  33. package/components/appHeader/index.d.ts +9 -9
  34. package/components/autocomplete/Autocomplete.vue.d.ts +5 -0
  35. package/components/autocomplete/Autocomplete.vue.js +2 -2
  36. package/components/autocomplete/Autocomplete.vue2.js +57 -45
  37. package/components/autocomplete/index.d.ts +20 -1
  38. package/components/chart/Chart.vue.js +7 -0
  39. package/components/chart/Chart.vue2.js +281 -0
  40. package/components/chart/ChartHeader.vue.js +7 -0
  41. package/components/chart/ChartHeader.vue2.js +51 -0
  42. package/components/chart/ChartLegend.vue.js +7 -0
  43. package/components/chart/ChartLegend.vue2.js +65 -0
  44. package/components/chart/ChartLoader.vue.js +25 -0
  45. package/components/chart/ChartLoader.vue2.js +0 -0
  46. package/components/chart/ChartTooltip.vue.js +7 -0
  47. package/components/chart/ChartTooltip.vue2.js +81 -0
  48. package/components/chart/composables/useChartValues.js +32 -0
  49. package/components/chart/composables/useTooltipPosition.js +22 -0
  50. package/components/chart/consts.js +21 -0
  51. package/components/chart/index.js +6 -0
  52. package/components/chart/plugins/HoverVerticalLine.js +12 -0
  53. package/components/chart/types.js +4 -0
  54. package/components/chart/utils/formatNumber.js +11 -0
  55. package/components/chart/utils/utils.js +12 -0
  56. package/components/dropdown/common/Dropdown.common.js +89 -89
  57. package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +1 -0
  58. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  59. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +32 -29
  60. package/components/dropdown/v4/DropdownV4.vue.d.ts +39 -0
  61. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  62. package/components/dropdown/v4/DropdownV4.vue2.js +256 -224
  63. package/components/dropdown/v4/OptionV4.vue.d.ts +36 -2
  64. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  65. package/components/dropdown/v4/OptionV4.vue2.js +99 -59
  66. package/components/dropdown/v4/TreeDropdown.vue.d.ts +21 -16
  67. package/components/dropdown/v4/TreeDropdown.vue.js +3 -3
  68. package/components/dropdown/v4/TreeDropdown.vue2.js +170 -74
  69. package/components/dropdown/v4/dropdownStoryArgs.d.ts +14 -0
  70. package/components/dropdown/v4/index.d.ts +528 -83
  71. package/components/icon/v4/IconV4.vue.d.ts +5 -0
  72. package/components/icon/v4/IconV4.vue.js +4 -4
  73. package/components/icon/v4/IconV4.vue2.js +29 -26
  74. package/components/icon/v4/index.d.ts +20 -1
  75. package/components/includeExclude/IncludeExclude.vue.js +4 -4
  76. package/components/includeExclude/IncludeExclude.vue2.js +2 -2
  77. package/components/includeExclude/IncludeExcludeDragDrop.vue.js +4 -4
  78. package/components/includeExclude/IncludeExcludeDragDrop.vue2.js +2 -2
  79. package/components/input/v4/TextField.vue.d.ts +6 -1
  80. package/components/input/v4/TextField.vue.js +3 -3
  81. package/components/input/v4/TextField.vue2.js +95 -90
  82. package/components/input/v4/index.d.ts +20 -1
  83. package/components/popover/common/Popover.common.d.ts +6 -0
  84. package/components/popover/common/Popover.common.js +17 -0
  85. package/components/popover/v3/Popover.vue.js +8 -0
  86. package/components/popover/{Popover.vue2.js → v3/Popover.vue2.js} +1 -1
  87. package/components/popover/v4/PopoverV4.vue.d.ts +73 -0
  88. package/components/popover/v4/PopoverV4.vue.js +7 -0
  89. package/components/popover/v4/PopoverV4.vue2.js +54 -0
  90. package/components/popover/v4/index.d.ts +209 -0
  91. package/components/popover/v4/index.js +6 -0
  92. package/components/shared/FieldMaxLength.vue.js +3 -3
  93. package/components/shared/FieldMaxLength.vue2.js +2 -2
  94. package/components/shared/commonTypes.d.ts +2 -0
  95. package/components/sortableList/SortableItem.vue.js +7 -0
  96. package/components/sortableList/SortableItem.vue2.js +140 -0
  97. package/components/sortableList/SortableItemLabel.vue.js +7 -0
  98. package/components/sortableList/SortableItemLabel.vue2.js +60 -0
  99. package/components/sortableList/SortableList.vue.d.ts +25 -0
  100. package/components/sortableList/SortableList.vue.js +7 -0
  101. package/components/sortableList/SortableList.vue2.js +160 -0
  102. package/components/sortableList/composables/useHoverEffect.js +19 -0
  103. package/components/sortableList/consts.js +4 -0
  104. package/components/sortableList/index.d.ts +88 -2
  105. package/components/sortableList/index.js +6 -0
  106. package/components/table/v3/Table.vue.d.ts +2 -2
  107. package/components/table/v3/index.d.ts +39 -39
  108. package/components/table/v4/DataGrid.vue.d.ts +6 -2
  109. package/components/table/v4/DataGrid.vue.js +4 -4
  110. package/components/table/v4/DataGrid.vue2.js +131 -122
  111. package/components/table/v4/DataGridRowsCounter.vue.d.ts +5 -0
  112. package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
  113. package/components/table/v4/DataGridRowsCounter.vue2.js +29 -22
  114. package/components/table/v4/MultipleDataGrid.vue.d.ts +16 -3
  115. package/components/table/v4/MultipleDataGrid.vue.js +4 -4
  116. package/components/table/v4/MultipleDataGrid.vue2.js +114 -66
  117. package/components/table/v4/index.d.ts +101 -75
  118. package/components/table-cells/common/Editable.common.js +37 -26
  119. package/components/table-cells/common/EditableContext.d.ts +1 -0
  120. package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
  121. package/components/table-cells/v4/EditableV4.vue.js +5 -5
  122. package/components/table-cells/v4/EditableV4.vue2.js +18 -17
  123. package/components/table-cells/v4/index.d.ts +20 -1
  124. package/components/tabs/v4/TabsV4.vue.js +4 -4
  125. package/components/tabs/v4/TabsV4.vue2.js +37 -40
  126. package/components/textArea/v4/TextAreaV4.vue.d.ts +6 -1
  127. package/components/textArea/v4/TextAreaV4.vue.js +3 -3
  128. package/components/textArea/v4/TextAreaV4.vue2.js +18 -12
  129. package/components/textArea/v4/index.d.ts +9 -0
  130. package/design-foundation.stories/icons/iconsData.d.ts +6 -2
  131. package/index.d.ts +9608 -7356
  132. package/index.js +136 -131
  133. package/mocks/options.d.ts +12 -0
  134. package/package.json +15 -3
  135. package/testids/index.d.ts +5 -0
  136. package/testids/index.js +27 -25
  137. package/utils/search.js +4 -0
  138. package/Autocomplete.vue_vue_type_style_index_0_scoped_a7bfd237_lang.css +0 -1
  139. package/DataGrid.vue_vue_type_style_index_0_scoped_63aaf3be_lang.css +0 -1
  140. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_06751538_lang.css +0 -1
  141. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css +0 -1
  142. package/DropdownV4.vue_vue_type_style_index_0_scoped_7af4f288_lang.css +0 -1
  143. package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +0 -1
  144. package/FieldMaxLength.vue_vue_type_style_index_0_scoped_f3c4001a_lang.css +0 -1
  145. package/IconV4.vue_vue_type_style_index_0_scoped_1eea7671_lang.css +0 -1
  146. package/IncludeExclude.vue_vue_type_style_index_0_scoped_fb054d88_lang.css +0 -1
  147. package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_5764fd61_lang.css +0 -1
  148. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_260b9cdc_lang.css +0 -1
  149. package/OptionV4.vue_vue_type_style_index_0_scoped_9db0f796_lang.css +0 -1
  150. package/Popover.vue_vue_type_style_index_0_scoped_25eb53db_lang.css +0 -1
  151. package/TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css +0 -1
  152. package/TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css +0 -1
  153. package/TextField.vue_vue_type_style_index_0_scoped_a6457440_lang.css +0 -1
  154. package/ThemeWrapper.vue_vue_type_style_index_0_scoped_b62ee695_lang.css +0 -1
  155. package/TreeDropdown.vue_vue_type_style_index_0_scoped_142eab98_lang.css +0 -1
  156. package/components/popover/Popover.vue.js +0 -8
  157. /package/components/popover/{Popover.vue.d.ts → v3/Popover.vue.d.ts} +0 -0
  158. /package/components/popover/{index.d.ts → v3/index.d.ts} +0 -0
  159. /package/components/popover/{index.js → v3/index.js} +0 -0
@@ -1,39 +1,50 @@
1
- import { ref as a, provide as v } from "vue";
2
- import { useTableContext as s } from "../../table/common/TableContext.js";
3
- import { EditableContext as d } from "./EditableContext.js";
4
- import { onClickOutside as f } from "@vueuse/core";
5
- const g = (e) => {
6
- const l = a(!1), n = a(e.cell), u = a(null), r = s("Editable"), o = a(null);
7
- v(d, {
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: o,
21
+ error: a,
11
22
  confirmable: !0,
12
- onChange(t) {
13
- n.value = t, o.value = e.validateFunction?.(n.value);
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 i = () => {
29
+ const c = () => {
25
30
  l.value || e.isLoading || (l.value = !l.value);
26
- }, c = () => {
27
- n.value = e.cell, o.value = null;
31
+ }, s = () => {
32
+ n.value = e.cell, a.value = null;
28
33
  };
29
- return f(u, () => {
30
- l.value = !1, c(), r.onClose();
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: i,
33
- target: u,
43
+ onEdit: c,
44
+ target: i,
34
45
  isEditing: l
35
46
  };
36
47
  };
37
48
  export {
38
- g as editableCommon
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 o from "./EditableV4.vue2.js";
2
- /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css"; //*');
4
- const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-31bfb722"]]);
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
- p as default
6
+ c as default
7
7
  };
@@ -1,13 +1,13 @@
1
- import "../../../EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_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 x } from "../common/Editable.common.js";
3
- import v from "../../typography/v4/Typography.vue.js";
4
- import w from "../../input/v4/TextField.vue.js";
5
- import C from "../../icon/v4/IconV4.vue.js";
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 E = { class: "editable-wrapper" }, B = {
7
+ const B = { class: "editable-wrapper" }, E = {
8
8
  key: 1,
9
9
  class: "editable-content"
10
- }, _ = /* @__PURE__ */ m({
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 c = e, { onEdit: n, target: s, isEditing: p } = x(c);
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: s,
26
+ ref: c,
26
27
  class: "editable",
27
28
  onClick: a[0] || (a[0] = //@ts-ignore
28
- (...u) => t(n) && t(n)(...u))
29
+ (...p) => t(n) && t(n)(...p))
29
30
  }, [
30
- f("div", E, [
31
- t(p) ? r(l.$slots, "input", { key: 0 }, () => [
32
- d(t(w))
33
- ], !0) : (o(), i("div", B, [
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(v), { variant: "body1" }, {
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(C), {
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
- _ as default
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 e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css"; //*');
4
- const a = /* @__PURE__ */ e(o, [["__scopeId", "data-v-bab40cfe"]]);
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
- a as default
6
+ p as default
7
7
  };
@@ -1,9 +1,9 @@
1
- import "../../../TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css"; import { defineComponent as h, useCssVars as C, ref as v, watch as w, nextTick as $, openBlock as r, createElementBlock as l, mergeProps as y, unref as s, Fragment as S, renderList as g, normalizeClass as A, renderSlot as N, createBlock as V, withCtx as B, createTextVNode as M, toDisplayString as E, createCommentVNode as P, pushScopeId as W, popScopeId as _, createElementVNode as H } from "vue";
2
- import R from "../../typography/v4/Typography.vue.js";
3
- import { TabsTestIdModifiers as c } from "../../../testids/index.js";
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) => (W("data-v-bab40cfe"), t = t(), _(), t), U = ["data-testid", "onClick", "onMouseover"], j = /* @__PURE__ */ F(() => /* @__PURE__ */ H("div", { class: "tabs-border-line" }, null, -1)), Q = /* @__PURE__ */ h({
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: f }) {
16
- const a = t;
17
- C((o) => ({
18
- "57c21ae0": b.value,
19
- bdc3e3e6: m.value
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
- skipUnwrap: p,
23
- selectTab: T,
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 o = k();
25
+ const a = k();
26
+ if (a === -1)
27
+ return;
33
28
  await $();
34
- const i = L.value[o];
35
- m.value = i?.clientWidth + "px", b.value = i?.offsetLeft + "px";
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
- ), (o, i) => (r(), l("ul", y({
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(x)[s(c).WRAPPER]), [
41
- (r(!0), l(S, null, g(t.tabsList, (e) => (r(), l("li", {
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(p).tabsNewList,
40
+ ref: s(T).tabsNewList,
44
41
  key: e.id,
45
- class: A(["tab-item", {
42
+ class: g(["tab-item", {
46
43
  "tab-item--disabled": e.disabled,
47
- "tab-item--active": d(e)
44
+ "tab-item--active": i(e)
48
45
  }]),
49
- "data-testid": t.testId ? `${t.testId}-${s(c).TAB}-${e.id}` : void 0,
50
- onClick: (n) => s(T)(e),
51
- onMouseover: (n) => s(I)(e),
52
- onMouseleave: i[0] || (i[0] = //@ts-ignore
53
- (...n) => s(u) && s(u)(...n))
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
- N(o.$slots, "tab-icon", {
52
+ V(a.$slots, "tab-icon", {
56
53
  tab: e,
57
- active: d(e)
54
+ active: i(e)
58
55
  }, void 0, !0),
59
- e.name ? (r(), V(s(R), {
56
+ e.name ? (o(), B(s(H), {
60
57
  key: 0,
61
- variant: d(e) ? "tabLabel2" : "tabLabel1"
58
+ variant: i(e) ? "tabLabel2" : "tabLabel1"
62
59
  }, {
63
- default: B(() => [
64
- M(E(e.name), 1)
60
+ default: M(() => [
61
+ N(R(e.name), 1)
65
62
  ]),
66
63
  _: 2
67
- }, 1032, ["variant"])) : P("", !0)
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.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css"; //*');
4
- const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-f3b2c01d"]]);
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
- c as default
6
+ p as default
7
7
  };
@@ -1,13 +1,13 @@
1
- import "../../../TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css"; import { defineComponent as s, computed as b, openBlock as t, createElementBlock as i, mergeProps as c, unref as a, createBlock as n, createCommentVNode as l, createElementVNode as g } from "vue";
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 u } from "../../../testids/index.js";
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__ */ s({
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 o = e, m = (d) => {
31
- h("update:modelValue", d.target.value);
32
- }, x = b(() => (o.modelValue || "").length), r = V(o.testId, u);
33
- return (d, f) => (t(), i("div", c({ class: "textarea-field" }, a(r)[a(u).WRAPPER]), [
34
- e.label ? (t(), n(v, {
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(r)[a(u).FIELD], { onInput: m }), null, 16, y),
55
- e.feedbackText || e.maxLength ? (t(), i("div", I, [
56
- e.feedbackText ? (t(), n(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(), n(k, {
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 iconsContentRateData: {
18
+ declare const iconsIosContentRateData: {
19
19
  name: string;
20
20
  path: string;
21
21
  }[];
22
- export { assetsPath, iconsBrandedData, iconsADUnitData, iconsABTestData, iconsAdNetworks, iconsContentRateData, };
22
+ declare const iconsAndroidContentRateData: {
23
+ name: string;
24
+ path: string;
25
+ }[];
26
+ export { assetsPath, iconsBrandedData, iconsADUnitData, iconsABTestData, iconsAdNetworks, iconsIosContentRateData, iconsAndroidContentRateData, };