@ironsource/shared-ui 2.2.0-rc.0 → 2.2.0-rc.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 (170) hide show
  1. package/Alert.vue_vue_type_style_index_0_scoped_5e66710b_lang.css +1 -0
  2. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_f86477a9_lang.css +1 -0
  3. package/AppHeader.vue_vue_type_style_index_0_scoped_18bc6c0d_lang.css +1 -0
  4. package/ButtonV4.vue_vue_type_style_index_0_scoped_a59af1ad_lang.css +1 -0
  5. package/Chart.vue_vue_type_style_index_0_scoped_22477735_lang.css +1 -0
  6. package/ChartHeader.vue_vue_type_style_index_0_scoped_9a603520_lang.css +1 -0
  7. package/ChartPlane.vue_vue_type_style_index_0_scoped_6de5cddb_lang.css +1 -0
  8. package/ChartTooltip.vue_vue_type_style_index_0_scoped_dc7e6298_lang.css +1 -0
  9. package/CheckboxV4.vue_vue_type_style_index_0_scoped_88525d86_lang.css +1 -0
  10. package/ChipV4.vue_vue_type_style_index_0_scoped_a221c649_lang.css +1 -0
  11. package/ColumnPicker.vue_vue_type_style_index_0_scoped_01c4e08f_lang.css +1 -0
  12. package/DataGrid.vue_vue_type_style_index_0_scoped_46851fcb_lang.css +1 -0
  13. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_a6900fa6_lang.css +1 -0
  14. package/DialogV4.vue_vue_type_style_index_0_scoped_a6710278_lang.css +1 -0
  15. package/DropdownV4.vue_vue_type_style_index_0_scoped_526bf0a1_lang.css +1 -0
  16. package/GroupOption.vue_vue_type_style_index_0_scoped_1e5170b3_lang.css +1 -0
  17. package/HelpText.vue_vue_type_style_index_0_scoped_641c2356_lang.css +1 -0
  18. package/IconV4.vue_vue_type_style_index_0_scoped_6683c5b5_lang.css +1 -0
  19. package/InlineCopy.vue_vue_type_style_index_0_scoped_9fa1921a_lang.css +1 -0
  20. package/Link.vue_vue_type_style_index_0_scoped_fe0e7f6f_lang.css +1 -0
  21. package/MultiBar.vue_vue_type_style_index_0_scoped_c4395fb6_lang.css +1 -0
  22. package/RadioButtonV4.vue_vue_type_style_index_0_scoped_4f3c7037_lang.css +1 -0
  23. package/SnackbarV4.vue_vue_type_style_index_0_scoped_35c79635_lang.css +1 -0
  24. package/SwitchV4.vue_vue_type_style_index_0_scoped_f9f89da2_lang.css +1 -0
  25. package/TextAreaV4.vue_vue_type_style_index_0_scoped_0feea75e_lang.css +1 -0
  26. package/TextField.vue_vue_type_style_index_0_scoped_28fab783_lang.css +1 -0
  27. package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
  28. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_0fc9ddf5_lang.css +1 -0
  29. package/TooltipHeader.vue_vue_type_style_index_0_scoped_2177211f_lang.css +1 -0
  30. package/components/alert/Alert.vue.d.ts +3 -8
  31. package/components/alert/Alert.vue.js +2 -2
  32. package/components/alert/Alert.vue2.js +48 -46
  33. package/components/alert/index.d.ts +8 -27
  34. package/components/appHeader/AppHeader.vue.js +2 -2
  35. package/components/appHeader/AppHeader.vue2.js +44 -45
  36. package/components/button/v3/Button.vue.d.ts +6 -6
  37. package/components/button/v3/index.d.ts +14 -14
  38. package/components/button/v4/ButtonV4.vue.js +4 -4
  39. package/components/button/v4/ButtonV4.vue2.js +1 -1
  40. package/components/button/v4/ToggleButtonGroupAB.vue.js +2 -2
  41. package/components/button/v4/ToggleButtonGroupAB.vue2.js +1 -1
  42. package/components/chart/Chart.vue.d.ts +5 -0
  43. package/components/chart/Chart.vue.js +3 -3
  44. package/components/chart/Chart.vue2.js +10 -8
  45. package/components/chart/ChartHeader.vue.d.ts +5 -0
  46. package/components/chart/ChartHeader.vue.js +3 -3
  47. package/components/chart/ChartHeader.vue2.js +73 -49
  48. package/components/chart/ChartPlane.vue.d.ts +5 -0
  49. package/components/chart/ChartPlane.vue.js +2 -2
  50. package/components/chart/ChartPlane.vue2.js +34 -32
  51. package/components/chart/ChartStoryArgs.d.ts +6 -0
  52. package/components/chart/ChartTooltip.vue.js +2 -2
  53. package/components/chart/ChartTooltip.vue2.js +19 -16
  54. package/components/chart/TooltipHeader.vue.js +3 -3
  55. package/components/chart/TooltipHeader.vue2.js +33 -22
  56. package/components/chart/index.d.ts +20 -1
  57. package/components/chart/utils/utils.d.ts +5 -1
  58. package/components/chart/utils/utils.js +32 -22
  59. package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
  60. package/components/checkbox/v4/CheckboxV4.vue2.js +60 -79
  61. package/components/checkbox/v4/icons/CheckedState.vue.js +11 -11
  62. package/components/checkbox/v4/icons/IndeterminateState.vue.js +7 -7
  63. package/components/checkbox/v4/icons/UncheckedState.vue.d.ts +28 -1
  64. package/components/checkbox/v4/icons/UncheckedState.vue.js +23 -21
  65. package/components/checkbox/v4/icons/UncheckedState.vue2.js +4 -0
  66. package/components/chip/v4/ChipV4.vue.js +3 -3
  67. package/components/chip/v4/ChipV4.vue2.js +1 -1
  68. package/components/columnPicker/ColumnPicker.vue.js +2 -2
  69. package/components/columnPicker/ColumnPicker.vue2.js +1 -1
  70. package/components/dialog/v4/DialogV4.vue.js +4 -4
  71. package/components/dialog/v4/DialogV4.vue2.js +1 -1
  72. package/components/dropdown/v4/AppDropdownTrigger.vue.js +3 -3
  73. package/components/dropdown/v4/AppDropdownTrigger.vue2.js +1 -1
  74. package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +15 -0
  75. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +3 -3
  76. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +81 -60
  77. package/components/dropdown/v4/DropdownV4.vue.d.ts +18 -0
  78. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  79. package/components/dropdown/v4/DropdownV4.vue2.js +144 -135
  80. package/components/dropdown/v4/GroupOption.vue.js +3 -3
  81. package/components/dropdown/v4/GroupOption.vue2.js +1 -1
  82. package/components/dropdown/v4/dropdownStoryArgs.d.ts +11 -0
  83. package/components/dropdown/v4/index.d.ts +119 -2
  84. package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
  85. package/components/emptyState/v3/index.d.ts +7 -7
  86. package/components/helpText/HelpText.vue.d.ts +68 -0
  87. package/components/helpText/HelpText.vue.js +7 -0
  88. package/components/helpText/HelpText.vue2.js +45 -0
  89. package/components/helpText/index.d.ts +190 -0
  90. package/components/helpText/index.js +6 -0
  91. package/components/icon/v4/IconV4.vue.d.ts +5 -0
  92. package/components/icon/v4/IconV4.vue.js +2 -2
  93. package/components/icon/v4/IconV4.vue2.js +27 -26
  94. package/components/icon/v4/index.d.ts +20 -1
  95. package/components/includeExclude/index.d.ts +16 -16
  96. package/components/inlineCopy/InlineCopy.vue.d.ts +15 -0
  97. package/components/inlineCopy/InlineCopy.vue.js +2 -2
  98. package/components/inlineCopy/InlineCopy.vue2.js +80 -51
  99. package/components/inlineCopy/index.d.ts +27 -0
  100. package/components/input/v4/TextField.vue.js +2 -2
  101. package/components/input/v4/TextField.vue2.js +1 -1
  102. package/components/link/Link.vue.d.ts +3 -3
  103. package/components/link/Link.vue.js +5 -5
  104. package/components/link/Link.vue2.js +1 -1
  105. package/components/link/index.d.ts +7 -7
  106. package/components/multibar/MultiBar.vue.js +3 -3
  107. package/components/multibar/MultiBar.vue2.js +1 -1
  108. package/components/radioButton/v4/RadioButtonV4.vue.js +3 -3
  109. package/components/radioButton/v4/RadioButtonV4.vue2.js +1 -1
  110. package/components/snackbar/common/notify.js +25 -25
  111. package/components/snackbar/common/snackbar.common.js +19 -19
  112. package/components/snackbar/common/snackbar.types.d.ts +2 -1
  113. package/components/snackbar/v4/SnackbarV4.vue.d.ts +8 -1
  114. package/components/snackbar/v4/SnackbarV4.vue.js +2 -2
  115. package/components/snackbar/v4/SnackbarV4.vue2.js +85 -64
  116. package/components/switch/v4/SwitchV4.vue.d.ts +5 -0
  117. package/components/switch/v4/SwitchV4.vue.js +3 -3
  118. package/components/switch/v4/SwitchV4.vue2.js +14 -13
  119. package/components/switch/v4/index.d.ts +9 -0
  120. package/components/table/v4/DataGrid.vue.js +4 -4
  121. package/components/table/v4/DataGrid.vue2.js +78 -77
  122. package/components/table-cells/v3/Editable.vue.d.ts +1 -1
  123. package/components/table-cells/v3/index.d.ts +20 -20
  124. package/components/table-cells/v4/EditableV4.vue.d.ts +1 -1
  125. package/components/table-cells/v4/index.d.ts +20 -20
  126. package/components/textArea/v4/TextAreaV4.vue.js +3 -3
  127. package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
  128. package/design-foundation.stories/colors/ColorsData.d.ts +52 -47
  129. package/index.d.ts +391 -46
  130. package/index.js +95 -91
  131. package/package.json +7 -2
  132. package/style/v4/colors.scss +89 -84
  133. package/style/v4/grid.css +1 -1
  134. package/style/v4/grid.css.map +1 -1
  135. package/testids/index.d.ts +6 -1
  136. package/testids/index.js +38 -37
  137. package/Alert.vue_vue_type_style_index_0_scoped_06e0871a_lang.css +0 -1
  138. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_858cefbf_lang.css +0 -1
  139. package/AppHeader.vue_vue_type_style_index_0_scoped_538ccdc6_lang.css +0 -1
  140. package/ButtonV4.vue_vue_type_style_index_0_scoped_852be7ec_lang.css +0 -1
  141. package/Chart.vue_vue_type_style_index_0_scoped_060d02be_lang.css +0 -1
  142. package/ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css +0 -1
  143. package/ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css +0 -1
  144. package/ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css +0 -1
  145. package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +0 -1
  146. package/ChipV4.vue_vue_type_style_index_0_scoped_a4d3a12e_lang.css +0 -1
  147. package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +0 -1
  148. package/DataGrid.vue_vue_type_style_index_0_scoped_cd41c5ca_lang.css +0 -1
  149. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_64ae80dd_lang.css +0 -1
  150. package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +0 -1
  151. package/DropdownV4.vue_vue_type_style_index_0_scoped_d3802d59_lang.css +0 -1
  152. package/GroupOption.vue_vue_type_style_index_0_scoped_5f372a81_lang.css +0 -1
  153. package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +0 -1
  154. package/InlineCopy.vue_vue_type_style_index_0_scoped_ad48b61e_lang.css +0 -1
  155. package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +0 -1
  156. package/MultiBar.vue_vue_type_style_index_0_scoped_71617643_lang.css +0 -1
  157. package/RadioButtonV4.vue_vue_type_style_index_0_scoped_05c7bca2_lang.css +0 -1
  158. package/SnackbarV4.vue_vue_type_style_index_0_scoped_1b650c39_lang.css +0 -1
  159. package/SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css +0 -1
  160. package/TextAreaV4.vue_vue_type_style_index_0_scoped_4114ef89_lang.css +0 -1
  161. package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +0 -1
  162. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_2076b5ab_lang.css +0 -1
  163. package/TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css +0 -1
  164. package/components/checkbox/v4/icons/CheckedDisabledState.vue.d.ts +0 -29
  165. package/components/checkbox/v4/icons/CheckedDisabledState.vue.js +0 -45
  166. package/components/checkbox/v4/icons/CheckedDisabledState.vue2.js +0 -4
  167. package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.d.ts +0 -2
  168. package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.js +0 -40
  169. package/components/checkbox/v4/icons/UncheckedDisabledState.vue.d.ts +0 -2
  170. package/components/checkbox/v4/icons/UncheckedDisabledState.vue.js +0 -30
@@ -1,7 +1,7 @@
1
1
  import o from "./ColumnPicker.vue2.js";
2
2
  /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css"; //*');
4
- const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-ea8c7024"]]);
3
+ // import "../../ColumnPicker.vue_vue_type_style_index_0_scoped_01c4e08f_lang.css"; //*');
4
+ const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-01c4e08f"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css"; import { defineComponent as ie, ref as K, watch as ne, computed as c, provide as se, openBlock as d, createElementBlock as m, Fragment as S, renderSlot as oe, createVNode as r, unref as s, withCtx as p, createElementVNode as u, mergeProps as ae, renderList as R, withModifiers as U, createTextVNode as k, toDisplayString as V, withDirectives as de, createBlock as W, vShow as re, createCommentVNode as q, isRef as ue } from "vue";
1
+ import "../../ColumnPicker.vue_vue_type_style_index_0_scoped_01c4e08f_lang.css"; import { defineComponent as ie, ref as K, watch as ne, computed as c, provide as se, openBlock as d, createElementBlock as m, Fragment as S, renderSlot as oe, createVNode as r, unref as s, withCtx as p, createElementVNode as u, mergeProps as ae, renderList as R, withModifiers as U, createTextVNode as k, toDisplayString as V, withDirectives as de, createBlock as W, vShow as re, createCommentVNode as q, isRef as ue } from "vue";
2
2
  import ce from "./OptionChip.vue.js";
3
3
  import "../dropdown/v4/DropdownV4.vue.js";
4
4
  import "../dropdown/v4/DefaultDropdownTrigger.vue.js";
@@ -1,7 +1,7 @@
1
1
  import o from "./DialogV4.vue2.js";
2
- /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css"; //*');
4
- const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-cc99f1e3"]]);
2
+ /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../DialogV4.vue_vue_type_style_index_0_scoped_a6710278_lang.css"; //*');
4
+ const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-a6710278"]]);
5
5
  export {
6
- t as default
6
+ a as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../../DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css"; import { defineComponent as k, openBlock as l, createBlock as s, Teleport as T, createVNode as L, Transition as D, withCtx as d, unref as t, createElementBlock as C, createElementVNode as g, mergeProps as B, renderSlot as b, createCommentVNode as u, createTextVNode as O, toDisplayString as p } from "vue";
1
+ import "../../../DialogV4.vue_vue_type_style_index_0_scoped_a6710278_lang.css"; import { defineComponent as k, openBlock as l, createBlock as s, Teleport as T, createVNode as L, Transition as D, withCtx as d, unref as t, createElementBlock as C, createElementVNode as g, mergeProps as B, renderSlot as b, createCommentVNode as u, createTextVNode as O, toDisplayString as p } from "vue";
2
2
  import { NOOP as I } from "@vue/shared";
3
3
  import N from "../../typography/v4/Typography.vue.js";
4
4
  import { Reason as v } from "../common/Reason.js";
@@ -1,7 +1,7 @@
1
1
  import o from "./AppDropdownTrigger.vue2.js";
2
- /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../AppDropdownTrigger.vue_vue_type_style_index_0_scoped_858cefbf_lang.css"; //*');
4
- const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-858cefbf"]]);
2
+ /* empty css */import p from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../AppDropdownTrigger.vue_vue_type_style_index_0_scoped_f86477a9_lang.css"; //*');
4
+ const s = /* @__PURE__ */ p(o, [["__scopeId", "data-v-f86477a9"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../../AppDropdownTrigger.vue_vue_type_style_index_0_scoped_858cefbf_lang.css"; import { defineComponent as B, computed as y, ref as O, watch as w, nextTick as z, openBlock as a, createElementBlock as i, normalizeClass as N, createElementVNode as d, mergeProps as C, unref as t, renderSlot as f, createCommentVNode as c, createVNode as s, withCtx as m, toDisplayString as S } from "vue";
1
+ import "../../../AppDropdownTrigger.vue_vue_type_style_index_0_scoped_f86477a9_lang.css"; import { defineComponent as B, computed as y, ref as O, watch as w, nextTick as z, openBlock as a, createElementBlock as i, normalizeClass as N, createElementVNode as d, mergeProps as C, unref as t, renderSlot as f, createCommentVNode as c, createVNode as s, withCtx as m, toDisplayString as S } from "vue";
2
2
  import r from "../../icon/v4/IconV4.vue.js";
3
3
  import "../../icon/v4/IconFlag.vue.js";
4
4
  import D from "../../typography/v4/Typography.vue.js";
@@ -26,6 +26,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
26
26
  allSelected?: boolean;
27
27
  optionFlagKey?: string;
28
28
  statusDotType?: "default" | "disabled" | "success" | "warning" | "error" | "archive";
29
+ inlineError?: boolean;
30
+ inlineErrorText?: string;
31
+ inlineErrorTextPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
29
32
  }>, {
30
33
  placeholder: string;
31
34
  selectedOption: any;
@@ -53,6 +56,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
53
56
  allSelected: boolean;
54
57
  optionFlagKey: any;
55
58
  statusDotType: any;
59
+ inlineError: boolean;
60
+ inlineErrorText: string;
61
+ inlineErrorTextPlacement: string;
56
62
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
57
63
  click: () => void;
58
64
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -83,6 +89,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
83
89
  allSelected?: boolean;
84
90
  optionFlagKey?: string;
85
91
  statusDotType?: "default" | "disabled" | "success" | "warning" | "error" | "archive";
92
+ inlineError?: boolean;
93
+ inlineErrorText?: string;
94
+ inlineErrorTextPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
86
95
  }>, {
87
96
  placeholder: string;
88
97
  selectedOption: any;
@@ -110,6 +119,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
110
119
  allSelected: boolean;
111
120
  optionFlagKey: any;
112
121
  statusDotType: any;
122
+ inlineError: boolean;
123
+ inlineErrorText: string;
124
+ inlineErrorTextPlacement: string;
113
125
  }>>> & {
114
126
  onClick?: () => any;
115
127
  }, {
@@ -125,6 +137,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
125
137
  hoverHelpText: string;
126
138
  hoverHelpTextPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
127
139
  placeholder: string;
140
+ inlineError: boolean;
141
+ inlineErrorText: string;
142
+ inlineErrorTextPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
128
143
  feedbackText: string;
129
144
  feedbackVariant: "success" | "warning" | "error";
130
145
  multi: boolean;
@@ -1,7 +1,7 @@
1
1
  import o from "./DefaultDropdownTrigger.vue2.js";
2
2
  /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_64ae80dd_lang.css"; //*');
4
- const d = /* @__PURE__ */ e(o, [["__scopeId", "data-v-64ae80dd"]]);
3
+ // import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_a6900fa6_lang.css"; //*');
4
+ const a = /* @__PURE__ */ e(o, [["__scopeId", "data-v-a6900fa6"]]);
5
5
  export {
6
- d as default
6
+ a as default
7
7
  };
@@ -1,24 +1,28 @@
1
- import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_64ae80dd_lang.css"; import { defineComponent as I, computed as u, openBlock as a, createElementBlock as d, createBlock as m, createCommentVNode as n, createElementVNode as c, mergeProps as h, unref as l, renderSlot as i, createVNode as r, withCtx as O, createTextVNode as B, toDisplayString as $ } from "vue";
1
+ import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_a6900fa6_lang.css"; import { defineComponent as I, computed as f, openBlock as o, createElementBlock as d, createBlock as T, createCommentVNode as n, createElementVNode as p, mergeProps as y, unref as l, renderSlot as r, createVNode as s, withCtx as g, createTextVNode as x, toDisplayString as B } from "vue";
2
2
  import w from "../../typography/v4/Typography.vue.js";
3
- import { DropdownTestIdModifiers as f } from "../../../testids/index.js";
4
- import g from "../../icon/v4/IconV4.vue.js";
5
- import K from "../../icon/v4/IconFlag.vue.js";
6
- import V from "../../shared/FieldLabel.vue.js";
7
- import { useTestIdAttrs as A } from "../../../utils/testIds.js";
8
- import D from "../../statusDot/StatusDot.vue.js";
9
- const N = { class: "default-dropdown-wrapper" }, S = { class: "content" }, x = {
3
+ import { DropdownTestIdModifiers as c } from "../../../testids/index.js";
4
+ import m from "../../icon/v4/IconV4.vue.js";
5
+ import $ from "../../icon/v4/IconFlag.vue.js";
6
+ import K from "../../shared/FieldLabel.vue.js";
7
+ import { useTestIdAttrs as V } from "../../../utils/testIds.js";
8
+ import A from "../../statusDot/StatusDot.vue.js";
9
+ import E from "../../tooltip/v4/TooltipV4.vue.js";
10
+ const D = { class: "default-dropdown-wrapper" }, N = { class: "content" }, S = {
10
11
  key: 0,
11
12
  class: "image"
12
- }, C = ["src"], F = {
13
+ }, P = ["src"], C = {
13
14
  key: 1,
14
15
  class: "flag"
15
- }, P = {
16
+ }, F = {
16
17
  key: 2,
17
18
  class: "start-icon"
18
19
  }, z = {
19
20
  key: 3,
20
21
  class: "status-dot"
21
- }, E = { key: 0 }, H = { class: "caret-down" }, Q = /* @__PURE__ */ I({
22
+ }, H = {
23
+ key: 0,
24
+ class: "inline-error"
25
+ }, L = { key: 1 }, R = { class: "caret-down" }, Z = /* @__PURE__ */ I({
22
26
  __name: "DefaultDropdownTrigger",
23
27
  props: {
24
28
  placeholder: { default: "Select" },
@@ -47,81 +51,98 @@ const N = { class: "default-dropdown-wrapper" }, S = { class: "content" }, x = {
47
51
  showAllSelectedText: { type: Boolean, default: !0 },
48
52
  allSelected: { type: Boolean, default: !1 },
49
53
  optionFlagKey: { default: null },
50
- statusDotType: { default: null }
54
+ statusDotType: { default: null },
55
+ inlineError: { type: Boolean, default: !1 },
56
+ inlineErrorText: { default: "" },
57
+ inlineErrorTextPlacement: { default: "top" }
51
58
  },
52
59
  emits: ["click"],
53
- setup(t, { emit: T }) {
54
- const e = t, v = u(
55
- () => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
60
+ setup(e, { emit: v }) {
61
+ const t = e, k = f(
62
+ () => t.feedbackVariant ? `state-${t.feedbackVariant}` : ""
56
63
  ), b = () => {
57
- T("click");
58
- }, p = A(e.testId, f), k = u(() => e.multi ? !Array.isArray(e.selectedOption) || !e.selectedOption?.length ? e.placeholder : e.showAllSelectedText && e.allSelected ? `All selected (${e.selectedOption.length})` : e.selectedOption?.length === 1 && e.displayValue ? e.displayValue(e.selectedOption[0]) : `${e.selectedOption.length} selected` : e.selectedOption ? e.displayValue(e.selectedOption) : e.placeholder), s = u(() => {
59
- if (!e.selectedOption)
64
+ v("click");
65
+ }, u = V(t.testId, c), O = f(() => t.multi ? !Array.isArray(t.selectedOption) || !t.selectedOption?.length ? t.placeholder : t.showAllSelectedText && t.allSelected ? `All selected (${t.selectedOption.length})` : t.selectedOption?.length === 1 && t.displayValue ? t.displayValue(t.selectedOption[0]) : `${t.selectedOption.length} selected` : t.selectedOption ? t.displayValue(t.selectedOption) : t.placeholder), i = f(() => {
66
+ if (!t.selectedOption)
60
67
  return null;
61
- if (!e.multi)
62
- return e.selectedOption;
63
- if (Array.isArray(e.selectedOption))
64
- return e.selectedOption.length === 1 ? e.selectedOption[0] : null;
68
+ if (!t.multi)
69
+ return t.selectedOption;
70
+ if (Array.isArray(t.selectedOption))
71
+ return t.selectedOption.length === 1 ? t.selectedOption[0] : null;
65
72
  });
66
- return (o, y) => (a(), d("div", N, [
67
- t.label ? (a(), m(V, {
73
+ return (a, h) => (o(), d("div", D, [
74
+ e.label ? (o(), T(K, {
68
75
  key: 0,
69
- label: t.label,
70
- mandatory: t.mandatory,
71
- "hover-help-text": t.hoverHelpText,
72
- "hover-help-text-placement": t.hoverHelpTextPlacement,
73
- disabled: t.disabled,
74
- "test-id": t.testId,
76
+ label: e.label,
77
+ mandatory: e.mandatory,
78
+ "hover-help-text": e.hoverHelpText,
79
+ "hover-help-text-placement": e.hoverHelpTextPlacement,
80
+ disabled: e.disabled,
81
+ "test-id": e.testId,
75
82
  class: "dropdown-field-label"
76
83
  }, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : n("", !0),
77
- c("div", h({
78
- class: ["dropdown-trigger", [t.size, l(v), { open: t.open, disabled: t.disabled }]]
79
- }, l(p)[l(f).BUTTON_WRAPPER], {
80
- onClick: y[0] || (y[0] = (R) => b())
84
+ p("div", y({
85
+ class: ["dropdown-trigger", [e.size, l(k), { open: e.open, disabled: e.disabled }]]
86
+ }, l(u)[l(c).BUTTON_WRAPPER], {
87
+ onClick: h[0] || (h[0] = (U) => b())
81
88
  }), [
82
- c("div", S, [
83
- o.$slots.image || l(s) && t.optionImageKey ? (a(), d("div", x, [
84
- i(o.$slots, "image", {}, () => [
85
- t.optionImageKey ? (a(), d("img", {
89
+ p("div", N, [
90
+ a.$slots.image || l(i) && e.optionImageKey ? (o(), d("div", S, [
91
+ r(a.$slots, "image", {}, () => [
92
+ e.optionImageKey ? (o(), d("img", {
86
93
  key: 0,
87
- src: l(s)[t.optionImageKey]
88
- }, null, 8, C)) : n("", !0)
94
+ src: l(i)[e.optionImageKey]
95
+ }, null, 8, P)) : n("", !0)
89
96
  ], !0)
90
97
  ])) : n("", !0),
91
- o.$slots.flag || l(s) && t.optionFlagKey ? (a(), d("div", F, [
92
- i(o.$slots, "flag", {}, () => [
93
- t.optionFlagKey ? (a(), m(l(K), {
98
+ a.$slots.flag || l(i) && e.optionFlagKey ? (o(), d("div", C, [
99
+ r(a.$slots, "flag", {}, () => [
100
+ e.optionFlagKey ? (o(), T(l($), {
94
101
  key: 0,
95
- "country-code": l(s)[t.optionFlagKey]
102
+ "country-code": l(i)[e.optionFlagKey]
96
103
  }, null, 8, ["country-code"])) : n("", !0)
97
104
  ], !0)
98
105
  ])) : n("", !0),
99
- o.$slots["icon-start"] || l(s) && t.optionIconKey ? (a(), d("div", P, [
100
- i(o.$slots, "icon-start", {}, () => [
101
- r(l(g), {
102
- type: t.optionIconType,
103
- name: l(s)[t.optionIconKey],
106
+ a.$slots["icon-start"] || l(i) && e.optionIconKey ? (o(), d("div", F, [
107
+ r(a.$slots, "icon-start", {}, () => [
108
+ s(l(m), {
109
+ type: e.optionIconType,
110
+ name: l(i)[e.optionIconKey],
104
111
  size: "20px"
105
112
  }, null, 8, ["type", "name"])
106
113
  ], !0)
107
114
  ])) : n("", !0),
108
- t.statusDotType ? (a(), d("div", z, [
109
- r(l(D), { type: t.statusDotType }, null, 8, ["type"])
115
+ e.statusDotType ? (o(), d("div", z, [
116
+ s(l(A), { type: e.statusDotType }, null, 8, ["type"])
110
117
  ])) : n("", !0),
111
- i(o.$slots, "displayed-value", {}, () => [
112
- r(l(w), h({ variant: "body1" }, l(p)[l(f).BUTTON_CONTENT], { class: "displayed-value" }), {
113
- default: O(() => [
114
- B($(l(k)), 1)
118
+ r(a.$slots, "displayed-value", {}, () => [
119
+ s(l(w), y({ variant: "body1" }, l(u)[l(c).BUTTON_CONTENT], { class: "displayed-value" }), {
120
+ default: g(() => [
121
+ x(B(l(O)), 1)
115
122
  ]),
116
123
  _: 1
117
124
  }, 16)
118
125
  ], !0)
119
126
  ]),
120
- o.$slots["end-icon"] ? (a(), d("div", E, [
121
- i(o.$slots, "end-icon", {}, void 0, !0)
127
+ e.inlineError && e.inlineErrorText ? (o(), d("div", H, [
128
+ s(l(E), y({
129
+ text: e.inlineErrorText,
130
+ placement: e.inlineErrorTextPlacement
131
+ }, l(u)[l(c).TOOLTIP]), {
132
+ default: g(() => [
133
+ s(l(m), {
134
+ name: "warning-circle",
135
+ size: "16px"
136
+ })
137
+ ]),
138
+ _: 1
139
+ }, 16, ["text", "placement"])
140
+ ])) : n("", !0),
141
+ a.$slots["end-icon"] ? (o(), d("div", L, [
142
+ r(a.$slots, "end-icon", {}, void 0, !0)
122
143
  ])) : n("", !0),
123
- c("div", H, [
124
- r(l(g), {
144
+ p("div", R, [
145
+ s(l(m), {
125
146
  name: "caret-down",
126
147
  size: "20px"
127
148
  })
@@ -131,5 +152,5 @@ const N = { class: "default-dropdown-wrapper" }, S = { class: "content" }, x = {
131
152
  }
132
153
  });
133
154
  export {
134
- Q as default
155
+ Z as default
135
156
  };
@@ -22,6 +22,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
22
22
  minSelections?: number;
23
23
  maxSelections?: number;
24
24
  alwaysShowScroll?: boolean;
25
+ inlineError?: boolean;
26
+ inlineErrorText?: string;
27
+ inlineErrorTextPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
25
28
  isOnTop?: boolean;
26
29
  distance?: number;
27
30
  container?: string;
@@ -103,6 +106,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
103
106
  minSelections: number;
104
107
  maxSelections: any;
105
108
  alwaysShowScroll: boolean;
109
+ inlineError: boolean;
110
+ inlineErrorText: string;
111
+ inlineErrorTextPlacement: string;
106
112
  triggerLabel: string;
107
113
  triggerHelperText: string;
108
114
  triggerFeedbackText: string;
@@ -176,6 +182,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
176
182
  minSelections?: number;
177
183
  maxSelections?: number;
178
184
  alwaysShowScroll?: boolean;
185
+ inlineError?: boolean;
186
+ inlineErrorText?: string;
187
+ inlineErrorTextPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
179
188
  isOnTop?: boolean;
180
189
  distance?: number;
181
190
  container?: string;
@@ -257,6 +266,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
257
266
  minSelections: number;
258
267
  maxSelections: any;
259
268
  alwaysShowScroll: boolean;
269
+ inlineError: boolean;
270
+ inlineErrorText: string;
271
+ inlineErrorTextPlacement: string;
260
272
  triggerLabel: string;
261
273
  triggerHelperText: string;
262
274
  triggerFeedbackText: string;
@@ -320,6 +332,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
320
332
  valueToCopy: string;
321
333
  selected: any;
322
334
  placeholder: string;
335
+ inlineError: boolean;
336
+ inlineErrorText: string;
337
+ inlineErrorTextPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
323
338
  multi: boolean;
324
339
  infiniteLoading: boolean;
325
340
  showSelectAll: boolean;
@@ -406,6 +421,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
406
421
  size: "small" | "medium" | "large";
407
422
  showAllSelectedText: boolean;
408
423
  allSelected: boolean;
424
+ inlineError: boolean;
425
+ inlineErrorText: string;
426
+ inlineErrorTextPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
409
427
  onKeydown: (event: any) => void;
410
428
  onClick: () => void;
411
429
  };
@@ -1,8 +1,8 @@
1
1
  import o from "./DropdownV4.vue2.js";
2
2
  /* empty css *//* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_d3802d59_lang.css"; //*');
3
+ // import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_526bf0a1_lang.css"; //*');
4
4
  // import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; //');
5
- const d = /* @__PURE__ */ _(o, [["__scopeId", "data-v-d3802d59"]]);
5
+ const r = /* @__PURE__ */ _(o, [["__scopeId", "data-v-526bf0a1"]]);
6
6
  export {
7
- d as default
7
+ r as default
8
8
  };