@ironsource/shared-ui 2.1.5 → 2.1.6-rc.1

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 (50) hide show
  1. package/Autocomplete.vue_vue_type_style_index_0_scoped_d2d1dc1d_lang.css +1 -0
  2. package/ButtonV4.vue_vue_type_style_index_0_scoped_8c3b0c3f_lang.css +1 -0
  3. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_889042cf_lang.css +1 -0
  4. package/DataGrid.vue_vue_type_style_index_0_scoped_c96fba2c_lang.css +1 -0
  5. package/DialogV4.vue_vue_type_style_index_0_scoped_c3004ba3_lang.css +1 -0
  6. package/FormCard.vue_vue_type_style_index_0_scoped_ef8b4e81_lang.css +1 -0
  7. package/README.md +1 -1
  8. package/SearchV4.vue_vue_type_style_index_0_scoped_a468fb4a_lang.css +1 -0
  9. package/TextField.vue_vue_type_style_index_0_scoped_b5b2e8fd_lang.css +1 -0
  10. package/TooltipV4.vue_vue_type_style_index_0_scoped_25809092_lang.css +1 -0
  11. package/components/autocomplete/Autocomplete.vue.js +3 -3
  12. package/components/autocomplete/Autocomplete.vue2.js +14 -13
  13. package/components/button/v4/ButtonV4.vue.js +3 -3
  14. package/components/button/v4/ButtonV4.vue2.js +1 -1
  15. package/components/dialog/v4/DialogV4.vue.js +3 -3
  16. package/components/dialog/v4/DialogV4.vue2.js +1 -1
  17. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
  18. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +1 -1
  19. package/components/dropdown/v4/DropdownV4.vue.d.ts +1 -1
  20. package/components/dropdown/v4/index.d.ts +20 -20
  21. package/components/forms/FormCard.vue.js +4 -4
  22. package/components/forms/FormCard.vue2.js +1 -1
  23. package/components/input/v4/TextField.vue.d.ts +5 -0
  24. package/components/input/v4/TextField.vue.js +3 -3
  25. package/components/input/v4/TextField.vue2.js +34 -33
  26. package/components/input/v4/index.d.ts +20 -1
  27. package/components/search/common/Search.common.js +10 -10
  28. package/components/search/v4/SearchV4.vue.d.ts +2 -0
  29. package/components/search/v4/SearchV4.vue.js +5 -5
  30. package/components/search/v4/SearchV4.vue2.js +9 -9
  31. package/components/search/v4/index.d.ts +2 -0
  32. package/components/table/v4/DataGrid.vue.d.ts +2 -0
  33. package/components/table/v4/DataGrid.vue.js +3 -3
  34. package/components/table/v4/DataGrid.vue2.js +138 -137
  35. package/components/table/v4/index.d.ts +7 -1
  36. package/components/tooltip/v4/TooltipV4.vue.d.ts +5 -0
  37. package/components/tooltip/v4/TooltipV4.vue.js +3 -3
  38. package/components/tooltip/v4/TooltipV4.vue2.js +6 -5
  39. package/components/tooltip/v4/index.d.ts +20 -1
  40. package/index.d.ts +138 -46
  41. package/package.json +1 -1
  42. package/Autocomplete.vue_vue_type_style_index_0_scoped_429e5745_lang.css +0 -1
  43. package/ButtonV4.vue_vue_type_style_index_0_scoped_e535063a_lang.css +0 -1
  44. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_c859928d_lang.css +0 -1
  45. package/DataGrid.vue_vue_type_style_index_0_scoped_bddb537c_lang.css +0 -1
  46. package/DialogV4.vue_vue_type_style_index_0_scoped_ea9275e6_lang.css +0 -1
  47. package/FormCard.vue_vue_type_style_index_0_scoped_d3abd36a_lang.css +0 -1
  48. package/SearchV4.vue_vue_type_style_index_0_scoped_1330ea8b_lang.css +0 -1
  49. package/TextField.vue_vue_type_style_index_0_scoped_95e25718_lang.css +0 -1
  50. package/TooltipV4.vue_vue_type_style_index_0_scoped_58a19def_lang.css +0 -1
@@ -29,6 +29,7 @@ declare const TextFieldTypes: () => ({
29
29
  feedbackText: string;
30
30
  feedbackVariant: "success" | "warning" | "error";
31
31
  showFeedbackTextIcon: boolean;
32
+ feedbackPositionAbsolute: boolean;
32
33
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
33
34
  type: {
34
35
  type: import("vue").PropType<"number" | "text" | "password">;
@@ -130,10 +131,14 @@ declare const TextFieldTypes: () => ({
130
131
  type: import("vue").PropType<boolean>;
131
132
  default: boolean;
132
133
  };
134
+ feedbackPositionAbsolute: {
135
+ type: import("vue").PropType<boolean>;
136
+ default: boolean;
137
+ };
133
138
  }>> & {
134
139
  "onUpdate:modelValue"?: (value: string | number) => any;
135
140
  onApply?: () => any;
136
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "label" | "disabled" | "size" | "mandatory" | "testId" | "hoverHelpText" | "hoverHelpTextPlacement" | "maxLength" | "modelValue" | "placeholder" | "viewOnly" | "labelDirection" | "autoFocus" | "hideNumberArrows" | "step" | "onlyDigits" | "prefix" | "suffix" | "showApply" | "inlineError" | "inlineErrorText" | "feedbackText" | "feedbackVariant" | "showFeedbackTextIcon">;
141
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "label" | "disabled" | "size" | "mandatory" | "testId" | "hoverHelpText" | "hoverHelpTextPlacement" | "maxLength" | "modelValue" | "placeholder" | "viewOnly" | "labelDirection" | "autoFocus" | "hideNumberArrows" | "step" | "onlyDigits" | "prefix" | "suffix" | "showApply" | "inlineError" | "inlineErrorText" | "feedbackText" | "feedbackVariant" | "showFeedbackTextIcon" | "feedbackPositionAbsolute">;
137
142
  $attrs: {
138
143
  [x: string]: unknown;
139
144
  };
@@ -248,6 +253,10 @@ declare const TextFieldTypes: () => ({
248
253
  type: import("vue").PropType<boolean>;
249
254
  default: boolean;
250
255
  };
256
+ feedbackPositionAbsolute: {
257
+ type: import("vue").PropType<boolean>;
258
+ default: boolean;
259
+ };
251
260
  }>> & {
252
261
  "onUpdate:modelValue"?: (value: string | number) => any;
253
262
  onApply?: () => any;
@@ -282,6 +291,7 @@ declare const TextFieldTypes: () => ({
282
291
  feedbackText: string;
283
292
  feedbackVariant: "success" | "warning" | "error";
284
293
  showFeedbackTextIcon: boolean;
294
+ feedbackPositionAbsolute: boolean;
285
295
  }, {}, string> & {
286
296
  beforeCreate?: (() => void) | (() => void)[];
287
297
  created?: (() => void) | (() => void)[];
@@ -403,6 +413,10 @@ declare const TextFieldTypes: () => ({
403
413
  type: import("vue").PropType<boolean>;
404
414
  default: boolean;
405
415
  };
416
+ feedbackPositionAbsolute: {
417
+ type: import("vue").PropType<boolean>;
418
+ default: boolean;
419
+ };
406
420
  }>> & {
407
421
  "onUpdate:modelValue"?: (value: string | number) => any;
408
422
  onApply?: () => any;
@@ -513,6 +527,10 @@ declare const TextFieldTypes: () => ({
513
527
  type: import("vue").PropType<boolean>;
514
528
  default: boolean;
515
529
  };
530
+ feedbackPositionAbsolute: {
531
+ type: import("vue").PropType<boolean>;
532
+ default: boolean;
533
+ };
516
534
  }>> & {
517
535
  "onUpdate:modelValue"?: (value: string | number) => any;
518
536
  onApply?: () => any;
@@ -547,6 +565,7 @@ declare const TextFieldTypes: () => ({
547
565
  feedbackText: string;
548
566
  feedbackVariant: "success" | "warning" | "error";
549
567
  showFeedbackTextIcon: boolean;
568
+ feedbackPositionAbsolute: boolean;
550
569
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
551
570
  $slots: {
552
571
  iconBefore?(_: {}): any;
@@ -1,20 +1,20 @@
1
- import { ref as d, computed as e } from "vue";
2
- const I = (a, u) => {
3
- const t = d(), s = (m) => {
4
- u("update:modelValue", m.target.value);
1
+ import { ref as m, computed as e } from "vue";
2
+ const I = (t, u) => {
3
+ const a = m(), s = (d) => {
4
+ u("update:modelValue", d.target.value);
5
5
  }, o = () => {
6
- u("update:modelValue", ""), t.value.focus ? l() : t.value.manualFocus();
7
- }, i = () => {
6
+ u("update:modelValue", ""), u("onClear"), a.value.focus ? l() : a.value.manualFocus();
7
+ }, v = () => {
8
8
  n.value ? o() : l();
9
- }, l = () => t.value.focus(), n = e(() => a.modelValue !== ""), r = e(() => a.variant === "inline-table"), c = e(() => a.variant === "transparent"), v = e(() => ((r.value || c.value) && n.value, n.value)), f = e(() => c.value || r.value), h = e(() => n.value ? "cancel" : "search");
9
+ }, l = () => a.value.focus(), n = e(() => t.modelValue !== ""), r = e(() => t.variant === "inline-table"), c = e(() => t.variant === "transparent"), i = e(() => ((r.value || c.value) && n.value, n.value)), f = e(() => c.value || r.value), h = e(() => n.value ? "cancel" : "search");
10
10
  return {
11
11
  showLeftIcon: f,
12
12
  updateValue: s,
13
- showRightIcon: v,
13
+ showRightIcon: i,
14
14
  showClear: n,
15
15
  rightIcon: h,
16
- onRightIconClick: i,
17
- inputRef: t,
16
+ onRightIconClick: v,
17
+ inputRef: a,
18
18
  clearValue: o
19
19
  };
20
20
  };
@@ -13,6 +13,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
13
13
  inputRef: import("vue").Ref<any>;
14
14
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
15
  "update:modelValue": (value: string | number) => void;
16
+ onClear: () => void;
16
17
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
17
18
  modelValue: string;
18
19
  placeholder: string;
@@ -26,6 +27,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
26
27
  placeholder: string;
27
28
  }>>> & {
28
29
  "onUpdate:modelValue"?: (value: string | number) => any;
30
+ onOnClear?: () => any;
29
31
  }, {
30
32
  disabled: boolean;
31
33
  testId: string;
@@ -1,7 +1,7 @@
1
- import e from "./SearchV4.vue2.js";
2
- /* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../SearchV4.vue_vue_type_style_index_0_scoped_1330ea8b_lang.css"; //*');
4
- const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-1330ea8b"]]);
1
+ import o from "./SearchV4.vue2.js";
2
+ /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../SearchV4.vue_vue_type_style_index_0_scoped_a468fb4a_lang.css"; //*');
4
+ const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-a468fb4a"]]);
5
5
  export {
6
- a as default
6
+ t as default
7
7
  };
@@ -1,6 +1,6 @@
1
- import "../../../SearchV4.vue_vue_type_style_index_0_scoped_1330ea8b_lang.css"; import { defineComponent as p, openBlock as h, createElementBlock as V, mergeProps as m, unref as e, createVNode as a, withCtx as x, withDirectives as I, createElementVNode as v, vShow as C } from "vue";
1
+ import "../../../SearchV4.vue_vue_type_style_index_0_scoped_a468fb4a_lang.css"; import { defineComponent as p, openBlock as h, createElementBlock as V, mergeProps as m, unref as e, createVNode as a, withCtx as x, withDirectives as I, createElementVNode as C, vShow as v } from "vue";
2
2
  import u from "../../icon/v4/IconV4.vue.js";
3
- import { SearchTestIdModifiers as d } from "../../../testids/index.js";
3
+ import { SearchTestIdModifiers as r } from "../../../testids/index.js";
4
4
  import { searchCommon as b } from "../common/Search.common.js";
5
5
  import y from "../../input/v4/TextField.vue.js";
6
6
  import { useTestIdAttrs as B } from "../../../utils/testIds.js";
@@ -13,12 +13,12 @@ const S = /* @__PURE__ */ p({
13
13
  testId: { default: "" },
14
14
  autoFocus: { type: Boolean, default: !1 }
15
15
  },
16
- emits: ["update:modelValue"],
17
- setup(t, { expose: f, emit: r }) {
18
- const s = t, { inputRef: i, clearValue: n } = b(s, r), c = B(s.testId, d);
16
+ emits: ["update:modelValue", "onClear"],
17
+ setup(t, { expose: f, emit: d }) {
18
+ const s = t, { inputRef: i, clearValue: n } = b(s, d), c = B(s.testId, r);
19
19
  return f({
20
20
  inputRef: i
21
- }), (g, o) => (h(), V("div", m({ class: "search-container" }, e(c)[e(d).CONTAINER]), [
21
+ }), (g, o) => (h(), V("div", m({ class: "search-container" }, e(c)[e(r).CONTAINER]), [
22
22
  a(e(y), {
23
23
  ref_key: "inputRef",
24
24
  ref: i,
@@ -28,7 +28,7 @@ const S = /* @__PURE__ */ p({
28
28
  placeholder: t.placeholder,
29
29
  disabled: t.disabled,
30
30
  "test-id": t.testId,
31
- "onUpdate:modelValue": o[0] || (o[0] = (l) => r("update:modelValue", l))
31
+ "onUpdate:modelValue": o[0] || (o[0] = (l) => d("update:modelValue", l))
32
32
  }, {
33
33
  iconBefore: x(() => [
34
34
  a(e(u), {
@@ -38,7 +38,7 @@ const S = /* @__PURE__ */ p({
38
38
  ]),
39
39
  _: 1
40
40
  }, 8, ["model-value", "auto-focus", "placeholder", "disabled", "test-id"]),
41
- I(v("div", m({ class: "x-circle-wrapper" }, e(c)[e(d).CLEAR], {
41
+ I(C("div", m({ class: "x-circle-wrapper" }, e(c)[e(r).CLEAR], {
42
42
  onClick: o[1] || (o[1] = //@ts-ignore
43
43
  (...l) => e(n) && e(n)(...l))
44
44
  }), [
@@ -48,7 +48,7 @@ const S = /* @__PURE__ */ p({
48
48
  type: "fill"
49
49
  })
50
50
  ], 16), [
51
- [C, !!t.modelValue]
51
+ [v, !!t.modelValue]
52
52
  ])
53
53
  ], 16));
54
54
  }
@@ -24,6 +24,7 @@ declare const SearchTypes: () => import("vue").DefineComponent<{
24
24
  inputRef: import("vue").Ref<any>;
25
25
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
26
  "update:modelValue": (value: string | number) => void;
27
+ onClear: () => void;
27
28
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
28
29
  disabled: {
29
30
  type: import("vue").PropType<boolean>;
@@ -48,6 +49,7 @@ declare const SearchTypes: () => import("vue").DefineComponent<{
48
49
  };
49
50
  }>> & {
50
51
  "onUpdate:modelValue"?: (value: string | number) => any;
52
+ onOnClear?: () => any;
51
53
  }, {
52
54
  disabled: boolean;
53
55
  testId: string;
@@ -54,6 +54,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
54
54
  "update:search": (query: string) => void;
55
55
  "update:selection": (selection: unknown[]) => void;
56
56
  onScroll: (event: Event) => void;
57
+ onClearSearch: () => void;
57
58
  saveRow: (args_0: {
58
59
  value: unknown;
59
60
  confirm: () => void;
@@ -123,6 +124,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
123
124
  onLoadMore?: () => any;
124
125
  "onUpdate:search"?: (query: string) => any;
125
126
  "onUpdate:selection"?: (selection: unknown[]) => any;
127
+ onOnClearSearch?: () => any;
126
128
  }, {
127
129
  sort: Sort;
128
130
  title: string;
@@ -1,7 +1,7 @@
1
1
  import o from "./DataGrid.vue2.js";
2
2
  /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_bddb537c_lang.css"; //*');
4
- const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-bddb537c"]]);
3
+ // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_c96fba2c_lang.css"; //*');
4
+ const e = /* @__PURE__ */ _(o, [["__scopeId", "data-v-c96fba2c"]]);
5
5
  export {
6
- s as default
6
+ e as default
7
7
  };