@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
@@ -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 e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../IconV4.vue_vue_type_style_index_0_scoped_1eea7671_lang.css"; //*');
4
- const c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-1eea7671"]]);
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
- c as default
6
+ t as default
7
7
  };
@@ -1,7 +1,7 @@
1
- import "../../../IconV4.vue_vue_type_style_index_0_scoped_1eea7671_lang.css"; import { defineComponent as $, useCssVars as S, unref as a, useSlots as w, computed as o, watch as C, openBlock as u, createElementBlock as f, normalizeClass as _, createCommentVNode as b, renderSlot as z } from "vue";
2
- import { useStorage as I } from "../../../composables/useStorage.js";
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(c) {
15
- const e = c;
16
- S((t) => ({
17
- "2034b1ce": a(d),
18
- "66dae3c2": a(m),
19
- "5a4ab638": c.color
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 s = window.sharedUIRequestCache = window.sharedUIRequestCache || {}, p = w(), d = o(() => e.size || e.width), m = o(() => e.size || e.height), h = o(() => {
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
- }), l = o(() => {
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}${e.type}/${e.name}${n}.svg`;
33
- }), r = I(`icon-${e.type}--${e.name}`);
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 s[t] || (s[t] = fetch(t).then((n) => n.text()).finally(() => {
36
- delete s[t];
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
- })), s[t];
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(l.value).then((t) => {
49
- typeof t == "string" && t.startsWith("<svg") && (r.value = t);
51
+ g(c.value).then((t) => {
52
+ typeof t == "string" && t.startsWith("<svg") && (l.value = t);
50
53
  });
51
54
  }
52
- !r.value && l.value && i();
53
- const y = o(() => v(r.value ?? ""));
54
- return C(() => e.name, i), (t, n) => (u(), f("span", {
55
- class: _(["icon", a(h)])
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 ? b("", !0) : (u(), f("span", {
60
+ t.$slots.default ? z("", !0) : (u(), f("span", {
58
61
  key: 0,
59
62
  class: "icon-wrapper",
60
- innerHTML: a(y)
63
+ innerHTML: s($)
61
64
  }, null, 8, V)),
62
- z(t.$slots, "default", {}, void 0, !0)
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
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "name" | "type" | "color" | "size" | "height" | "width">;
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 e from "./IncludeExclude.vue2.js";
2
- /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../IncludeExclude.vue_vue_type_style_index_0_scoped_fb054d88_lang.css"; //*');
4
- const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-fb054d88"]]);
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.vue_vue_type_style_index_0_scoped_fb054d88_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/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 o from "./IncludeExcludeDragDrop.vue2.js";
2
- /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_5764fd61_lang.css"; //*');
4
- const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-5764fd61"]]);
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.vue_vue_type_style_index_0_scoped_5764fd61_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/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.vue_vue_type_style_index_0_scoped_a6457440_lang.css"; //*');
4
- const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-a6457440"]]);
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
- p as default
6
+ d as default
7
7
  };
@@ -1,27 +1,27 @@
1
- import "../../../TextField.vue_vue_type_style_index_0_scoped_a6457440_lang.css"; import { defineComponent as M, computed as b, ref as G, openBlock as l, createElementBlock as r, mergeProps as y, unref as t, createBlock as d, createCommentVNode as n, createElementVNode as E, normalizeClass as L, renderSlot as P, withCtx as h, createTextVNode as V, toDisplayString as C, withKeys as W, withModifiers as F, createVNode as p } from "vue";
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 j from "../../tooltip/v4/TooltipV4.vue.js";
5
- import $ from "../../typography/v4/Typography.vue.js";
6
- import { InputTestIdModifiers as f } from "../../../testids/index.js";
7
- import { inputCommon as q } from "../common/Input.common.js";
8
- import J from "../../shared/FieldLabel.vue.js";
9
- import Q from "../../shared/FieldHelpText.vue.js";
10
- import U from "../../shared/FieldMaxLength.vue.js";
11
- import { useTestIdAttrs as X } from "../../../utils/testIds.js";
12
- const Y = {
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
- }, Z = ["maxlength", "value", "placeholder", "disabled", "type", "step"], _ = ["onClick"], ee = {
16
- key: 3,
15
+ }, le = ["maxlength", "value", "placeholder", "disabled", "type", "step"], ae = ["onClick"], ne = {
16
+ key: 4,
17
17
  class: "inline-error"
18
- }, te = {
19
- key: 6,
18
+ }, oe = {
19
+ key: 7,
20
20
  class: "icon-container icon-after"
21
- }, le = {
21
+ }, ie = {
22
22
  inheritAttrs: !1
23
- }, ye = /* @__PURE__ */ M({
24
- ...le,
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: z, emit: k }) {
57
- const s = e, c = X(s.testId, f), O = () => {
58
- s.showApply ? k("apply") : o?.confirmable && N();
59
- }, D = () => w.value.focus(), {
60
- onConfirm: N,
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: w,
63
- isFocused: x,
64
- showLabelInside: g,
65
- api: o,
66
- labelText: S,
67
- sizeClass: H,
68
- handleInput: I,
69
- handleKeypress: B
70
- } = q(s, k), A = b(() => o.value?.value ?? s.modelValue), R = b(() => (A.value || "").length), m = G(!1), K = b(() => m.value && s.type === "password" ? "text" : s.type);
71
- return z({
72
- manualFocus: D
73
- }), (u, a) => (l(), r("div", y({
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(c)[t(f).WRAPPER]), [
80
- e.label && e.labelDirection !== "inside" ? (l(), d(J, {
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
- E("div", {
90
- class: L({
97
+ A("div", {
98
+ class: E({
91
99
  "input-container": !0,
92
- "label-inside": t(g),
93
- focused: t(x)
100
+ "label-inside": t(w),
101
+ focused: t(h)
94
102
  })
95
103
  }, [
96
- u.$slots.iconBefore ? (l(), r("div", Y, [
97
- P(u.$slots, "iconBefore", {}, void 0, !0)
104
+ u.$slots.iconBefore ? (l(), d("div", te, [
105
+ F(u.$slots, "iconBefore", {}, void 0, !0)
98
106
  ])) : n("", !0),
99
- e.prefix ? (l(), d(t($), {
107
+ e.prefix ? (l(), r(t(D), {
100
108
  key: 1,
101
109
  class: "prefix-text",
102
110
  variant: "body1"
103
111
  }, {
104
- default: h(() => [
105
- V(C(e.prefix), 1)
112
+ default: b(() => [
113
+ V($(e.prefix), 1)
106
114
  ]),
107
115
  _: 1
108
116
  })) : n("", !0),
109
- E("input", y({
117
+ A("input", c({
110
118
  ref_key: "inputRef",
111
- ref: w,
119
+ ref: g,
112
120
  maxlength: e.maxLength
113
- }, { ...u.$attrs, ...t(c)[t(f).FIELD] }, {
114
- value: t(A),
115
- placeholder: t(S),
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(K),
125
+ type: t(q),
118
126
  class: ["input", {
119
- [t(H)]: !0,
127
+ [t(G)]: !0,
120
128
  "view-only": e.viewOnly,
121
- "label-inside": t(g),
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(I) && t(I)(...i)),
128
- onFocus: a[1] || (a[1] = (i) => x.value = !0),
129
- onBlur: a[2] || (a[2] = (i) => x.value = !1),
130
- onKeyup: a[3] || (a[3] = W(F(
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(B) && t(B)(...i))
137
- }), null, 16, Z),
138
- e.showApply || t(o)?.confirmable && !t(o)?.error?.value ? (l(), r("div", {
139
- key: 2,
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: F(O, ["stop", "prevent"])
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, _)) : n("", !0),
148
- e.inlineError || t(o)?.error?.value ? (l(), r("div", ee, [
149
- p(t(j), y({
150
- disabled: !e.inlineErrorText && !t(o)?.error?.value,
151
- text: e.inlineErrorText || t(o)?.error?.value,
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(c)[t(f).TOOLTIP]), {
155
- default: h(() => [
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(), d(t($), {
165
- key: 4,
173
+ e.suffix ? (l(), r(t(D), {
174
+ key: 5,
166
175
  class: "suffix-text",
167
176
  variant: "body1"
168
177
  }, {
169
- default: h(() => [
170
- V(C(e.suffix), 1)
178
+ default: b(() => [
179
+ V($(e.suffix), 1)
171
180
  ]),
172
181
  _: 1
173
182
  })) : n("", !0),
174
- e.type === "password" ? (l(), r("div", y({
175
- key: 5,
183
+ e.type === "password" ? (l(), d("div", c({
184
+ key: 6,
176
185
  class: "password-visibility-toggle"
177
- }, t(c)[t(f).TOGGLE_PASSWORD], {
178
- onClick: a[5] || (a[5] = (i) => m.value = !m.value)
186
+ }, t(y)[t(m).TOGGLE_PASSWORD], {
187
+ onClick: a[5] || (a[5] = (i) => x.value = !x.value)
179
188
  }), [
180
- m.value ? (l(), d(t(v), {
189
+ x.value ? (l(), r(t(v), {
181
190
  key: 0,
182
191
  name: "eye",
183
192
  size: "16px"
184
- })) : (l(), d(t(v), {
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(), r("div", te, [
191
- P(u.$slots, "iconAfter", {}, void 0, !0)
199
+ u.$slots.iconAfter ? (l(), d("div", oe, [
200
+ F(u.$slots, "iconAfter", {}, void 0, !0)
192
201
  ])) : n("", !0)
193
202
  ], 2),
194
- e.feedbackText || e.maxLength ? (l(), r("div", {
203
+ t(j) ? (l(), d("div", {
195
204
  key: 1,
196
- class: L(["footer", e.feedbackPositionAbsolute && "footer-absolute"])
205
+ class: E(["footer", e.feedbackPositionAbsolute && "footer-absolute"])
197
206
  }, [
198
- e.feedbackText ? (l(), d(Q, {
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
- e.maxLength ? (l(), d(U, {
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
- ye as default
220
+ be as default
216
221
  };