@ironsource/shared-ui 2.2.0-test.5 → 2.2.0-test.7

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 (71) hide show
  1. package/AppHeader.vue_vue_type_style_index_0_scoped_18bc6c0d_lang.css +1 -0
  2. package/CalendarMonth.vue_vue_type_style_index_0_scoped_a44769fd_lang.css +1 -0
  3. package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_6eae923a_lang.css +1 -0
  4. package/ChartHeader.vue_vue_type_style_index_0_scoped_3a061c08_lang.css +1 -0
  5. package/ColumnPicker.vue_vue_type_style_index_0_scoped_d59af062_lang.css +1 -0
  6. package/DataGrid.vue_vue_type_style_index_0_scoped_0967498f_lang.css +1 -0
  7. package/DateRange.vue_vue_type_style_index_0_scoped_25d03907_lang.css +1 -0
  8. package/DateRangeV4.vue_vue_type_style_index_0_scoped_f8826716_lang.css +1 -0
  9. package/IconV4.vue_vue_type_style_index_0_scoped_6683c5b5_lang.css +1 -0
  10. package/SectionDropdown.vue_vue_type_style_index_0_scoped_65877e48_lang.css +1 -0
  11. package/SwitchV4.vue_vue_type_style_index_0_scoped_b71a806e_lang.css +1 -0
  12. package/TagsFieldChip.vue_vue_type_style_index_0_scoped_a5f2dd8b_lang.css +1 -0
  13. package/components/appHeader/AppHeader.vue.js +3 -3
  14. package/components/appHeader/AppHeader.vue2.js +43 -44
  15. package/components/chart/ChartHeader.vue.js +2 -2
  16. package/components/chart/ChartHeader.vue2.js +2 -2
  17. package/components/columnConfigurator/SectionDropdown.vue.js +3 -3
  18. package/components/columnConfigurator/SectionDropdown.vue2.js +6 -7
  19. package/components/columnPicker/ColumnPicker.vue.d.ts +2 -0
  20. package/components/columnPicker/ColumnPicker.vue.js +3 -3
  21. package/components/columnPicker/ColumnPicker.vue2.js +173 -153
  22. package/components/columnPicker/index.d.ts +7 -1
  23. package/components/dateRange/common/CalendarMonth.common.js +46 -41
  24. package/components/dateRange/common/DateRange.common.d.ts +1 -0
  25. package/components/dateRange/common/DateRange.common.js +38 -37
  26. package/components/dateRange/v3/CalendarMonth.vue.d.ts +5 -0
  27. package/components/dateRange/v3/CalendarMonth.vue.js +3 -3
  28. package/components/dateRange/v3/CalendarMonth.vue2.js +6 -5
  29. package/components/dateRange/v3/DateRange.vue.d.ts +5 -0
  30. package/components/dateRange/v3/DateRange.vue.js +2 -2
  31. package/components/dateRange/v3/DateRange.vue2.js +2 -1
  32. package/components/dateRange/v3/index.d.ts +20 -1
  33. package/components/dateRange/v4/CalendarMonthV4.vue.d.ts +5 -0
  34. package/components/dateRange/v4/CalendarMonthV4.vue.js +4 -4
  35. package/components/dateRange/v4/CalendarMonthV4.vue2.js +12 -11
  36. package/components/dateRange/v4/DateRangeV4.vue.d.ts +5 -0
  37. package/components/dateRange/v4/DateRangeV4.vue.js +3 -3
  38. package/components/dateRange/v4/DateRangeV4.vue2.js +104 -101
  39. package/components/dateRange/v4/index.d.ts +20 -1
  40. package/components/icon/v4/IconV4.vue.d.ts +5 -0
  41. package/components/icon/v4/IconV4.vue.js +2 -2
  42. package/components/icon/v4/IconV4.vue2.js +27 -26
  43. package/components/icon/v4/index.d.ts +20 -1
  44. package/components/switch/v4/SwitchV4.vue.d.ts +5 -0
  45. package/components/switch/v4/SwitchV4.vue.js +4 -4
  46. package/components/switch/v4/SwitchV4.vue2.js +14 -13
  47. package/components/switch/v4/index.d.ts +9 -0
  48. package/components/table/v4/DataGrid.vue.d.ts +2 -0
  49. package/components/table/v4/DataGrid.vue.js +3 -3
  50. package/components/table/v4/DataGrid.vue2.js +126 -124
  51. package/components/table/v4/index.d.ts +7 -1
  52. package/components/tagsField/TagsFieldChip.vue.d.ts +41 -0
  53. package/components/tagsField/TagsFieldChip.vue.js +5 -5
  54. package/components/tagsField/TagsFieldChip.vue2.js +96 -54
  55. package/components/tagsField/index.d.ts +114 -3
  56. package/components/tagsField/index.js +6 -4
  57. package/index.d.ts +112 -6
  58. package/index.js +3 -1
  59. package/package.json +1 -1
  60. package/AppHeader.vue_vue_type_style_index_0_scoped_4c813f30_lang.css +0 -1
  61. package/CalendarMonth.vue_vue_type_style_index_0_scoped_acd3440c_lang.css +0 -1
  62. package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_b0d3ea50_lang.css +0 -1
  63. package/ChartHeader.vue_vue_type_style_index_0_scoped_9a603520_lang.css +0 -1
  64. package/ColumnPicker.vue_vue_type_style_index_0_scoped_01c4e08f_lang.css +0 -1
  65. package/DataGrid.vue_vue_type_style_index_0_scoped_3673e156_lang.css +0 -1
  66. package/DateRange.vue_vue_type_style_index_0_scoped_70e316e9_lang.css +0 -1
  67. package/DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_lang.css +0 -1
  68. package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +0 -1
  69. package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +0 -1
  70. package/SwitchV4.vue_vue_type_style_index_0_scoped_0a80c49f_lang.css +0 -1
  71. package/TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css +0 -1
@@ -1,81 +1,123 @@
1
- import "../../TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css"; import { defineComponent as k, ref as p, computed as x, openBlock as C, createBlock as I, unref as t, normalizeClass as c, withModifiers as s, withCtx as f, createElementVNode as v, createVNode as m, createTextVNode as w, toDisplayString as T, withDirectives as B, isRef as E, withKeys as h, vShow as V, vModelText as K, nextTick as N } from "vue";
2
- import R from "../typography/v4/Typography.vue.js";
3
- import z from "../icon/v4/IconV4.vue.js";
1
+ import "../../TagsFieldChip.vue_vue_type_style_index_0_scoped_a5f2dd8b_lang.css"; import { defineComponent as V, ref as r, computed as b, watch as M, nextTick as k, openBlock as n, createBlock as g, unref as a, normalizeClass as d, normalizeStyle as C, withModifiers as u, withCtx as w, createElementVNode as N, createTextVNode as S, toDisplayString as z, withDirectives as x, createElementBlock as I, isRef as K, withKeys as B, vModelText as D, createCommentVNode as W, createVNode as F, vShow as L } from "vue";
2
+ import O from "../typography/v4/Typography.vue.js";
3
+ import U from "../icon/v4/IconV4.vue.js";
4
4
  import "../icon/v4/IconFlag.vue.js";
5
- import D from "../chip/v4/ChipV4.vue.js";
6
- const M = { class: "chip-content" }, S = ["onKeyup"], j = /* @__PURE__ */ k({
5
+ import $ from "../chip/v4/ChipV4.vue.js";
6
+ const j = { class: "chip-content" }, q = ["placeholder", "onKeyup"], Q = /* @__PURE__ */ V({
7
7
  __name: "TagsFieldChip",
8
8
  props: {
9
9
  label: { default: "" },
10
10
  isInvalid: { type: Boolean, default: !1 },
11
- testId: { default: "" }
11
+ testId: { default: "" },
12
+ size: { default: "small" },
13
+ rounded: { type: Boolean, default: !0 },
14
+ disabled: { type: Boolean, default: !1 },
15
+ removable: { type: Boolean, default: !0 },
16
+ color: { default: "default" },
17
+ iconColor: { default: "var(--action-active)" },
18
+ variant: { default: "filled" },
19
+ placeholder: { default: "" }
12
20
  },
13
21
  emits: ["update:label", "remove"],
14
- setup(l, { emit: n }) {
15
- const b = l, i = p(!1), e = x({
16
- get: () => b.label,
17
- set: (d) => {
18
- n("update:label", d);
22
+ setup(e, { emit: c }) {
23
+ const i = e, t = r(!1), l = b({
24
+ get: () => i.label,
25
+ set: (h) => {
26
+ c("update:label", h);
19
27
  }
20
- }), r = p(null), g = () => r.value?.focus(), y = async () => {
21
- i.value = !0, await N(), g();
22
- }, o = () => {
23
- i.value = !1, e.value || n("remove");
24
- };
25
- return (d, a) => (C(), I(t(D), {
26
- class: c(["tags-field-chip", {
27
- "tags-field-chip--editing": i.value,
28
- "tags-field-chip--invalid": l.isInvalid
29
- }]),
30
- label: t(e),
31
- "test-id": l.testId,
32
- color: l.isInvalid ? "error" : "default",
33
- onClick: s(y, ["stop"])
28
+ }), m = r(null), E = () => m.value?.focus(), R = async () => {
29
+ i.disabled || (t.value = !0, await k(), E());
30
+ }, s = () => {
31
+ t.value = !1, !l.value && !i.placeholder && c("remove");
32
+ }, v = r(null), f = r(void 0);
33
+ M(
34
+ () => [l.value, i.placeholder, t.value],
35
+ async () => {
36
+ await k(), t.value && v.value ? f.value = v.value.offsetWidth + "px" : f.value = void 0;
37
+ },
38
+ { immediate: !0 }
39
+ );
40
+ const p = {
41
+ default: "var(--default-outlined-border)",
42
+ primary: "var(--primary-main)",
43
+ info: "var(--info-dark)",
44
+ error: "var(--error-main)",
45
+ warning: "var(--warning-main)",
46
+ success: "var(--success-main)",
47
+ dark: "var(--common-divider)"
48
+ }, T = b(() => t.value && i.variant !== "outlined" ? {
49
+ "--outline-color": i.isInvalid ? p.error : p[i.color] || "var(--default-outlined-border)"
50
+ } : {});
51
+ return (h, o) => (n(), g(a($), {
52
+ class: d({
53
+ "rounded-chip": e.rounded,
54
+ "tags-field-chip--editing": t.value && e.variant !== "outlined"
55
+ // outlined chips have an outline
56
+ }),
57
+ label: a(l),
58
+ "test-id": e.testId,
59
+ color: e.isInvalid ? "error" : e.color,
60
+ size: e.size,
61
+ variant: e.variant,
62
+ disabled: e.disabled,
63
+ style: C(a(T)),
64
+ onClick: u(R, ["stop"])
34
65
  }, {
35
- default: f(() => [
36
- v("div", M, [
37
- m(t(R), {
38
- variant: "chipLabel",
39
- class: c(["chip-label", { "chip-label--hidden": i.value }])
40
- }, {
41
- default: f(() => [
42
- w(T(t(e)), 1)
43
- ]),
44
- _: 1
45
- }, 8, ["class"]),
46
- B(v("input", {
66
+ default: w(() => [
67
+ N("div", j, [
68
+ t.value ? x((n(), I("input", {
69
+ key: 1,
47
70
  ref_key: "inputRef",
48
- ref: r,
49
- "onUpdate:modelValue": a[0] || (a[0] = (u) => E(e) ? e.value = u : null),
50
- class: "chip-input",
71
+ ref: m,
72
+ "onUpdate:modelValue": o[0] || (o[0] = (y) => K(l) ? l.value = y : null),
73
+ placeholder: e.placeholder,
74
+ class: d(["chip-input", { "chip-input-outline": e.variant === "outlined" }]),
51
75
  spellcheck: "false",
52
- onBlur: o,
76
+ style: C({ width: f.value }),
77
+ onBlur: s,
53
78
  onKeyup: [
54
- h(s(o, ["prevent"]), ["enter"]),
55
- h(s(o, ["prevent"]), ["esc"])
79
+ B(u(s, ["prevent"]), ["enter"]),
80
+ B(u(s, ["prevent"]), ["esc"])
56
81
  ]
57
- }, null, 40, S), [
58
- [V, i.value],
82
+ }, null, 46, q)), [
59
83
  [
60
- K,
61
- t(e),
84
+ D,
85
+ a(l),
62
86
  void 0,
63
87
  { trim: !0 }
64
88
  ]
65
- ])
89
+ ]) : (n(), g(a(O), {
90
+ key: 0,
91
+ variant: "chipLabel",
92
+ class: d(["chip-label", { "chip-label--placeholder": !a(l) && e.placeholder }])
93
+ }, {
94
+ default: w(() => [
95
+ S(z(a(l) || e.placeholder), 1)
96
+ ]),
97
+ _: 1
98
+ }, 8, ["class"])),
99
+ t.value ? (n(), I("span", {
100
+ key: 2,
101
+ ref_key: "sizerRef",
102
+ ref: v,
103
+ class: "chip-input-sizer"
104
+ }, z(a(l) || e.placeholder || ""), 513)) : W("", !0)
66
105
  ]),
67
- m(t(z), {
68
- class: c(["clear-button", { "clear-button--invalid": l.isInvalid }]),
106
+ x(F(a(U), {
107
+ class: d(["clear-button", { "clear-button--invalid": e.isInvalid }]),
69
108
  name: "x-circle",
70
109
  size: "16px",
71
110
  type: "fill",
72
- onClick: a[1] || (a[1] = s((u) => n("remove"), ["stop"]))
73
- }, null, 8, ["class"])
111
+ color: e.isInvalid ? "var(--error-dark)" : e.iconColor,
112
+ onClick: o[1] || (o[1] = u((y) => c("remove"), ["stop"]))
113
+ }, null, 8, ["class", "color"]), [
114
+ [L, e.removable]
115
+ ])
74
116
  ]),
75
117
  _: 1
76
- }, 8, ["class", "label", "test-id", "color", "onClick"]));
118
+ }, 8, ["class", "label", "test-id", "color", "size", "variant", "disabled", "style", "onClick"]));
77
119
  }
78
120
  });
79
121
  export {
80
- j as default
122
+ Q as default
81
123
  };
@@ -1,5 +1,116 @@
1
1
  import TagsField from './TagsField.vue';
2
- declare const TagsFieldTypes: () => import("vue").DefineComponent<{
2
+ import TagsFieldChip from './TagsFieldChip.vue';
3
+ declare const TagsFieldTypes: () => (import("vue").DefineComponent<{
4
+ label: {
5
+ type: import("vue").PropType<string>;
6
+ required: true;
7
+ default: string;
8
+ };
9
+ testId: {
10
+ type: import("vue").PropType<string>;
11
+ default: string;
12
+ };
13
+ variant: {
14
+ type: import("vue").PropType<"filled" | "outlined">;
15
+ default: string;
16
+ };
17
+ disabled: {
18
+ type: import("vue").PropType<boolean>;
19
+ default: boolean;
20
+ };
21
+ color: {
22
+ type: import("vue").PropType<"dark" | "default" | "primary" | "info" | "success" | "warning" | "error">;
23
+ default: string;
24
+ };
25
+ size: {
26
+ type: import("vue").PropType<"small" | "medium">;
27
+ default: string;
28
+ };
29
+ rounded: {
30
+ type: import("vue").PropType<boolean>;
31
+ default: boolean;
32
+ };
33
+ placeholder: {
34
+ type: import("vue").PropType<string>;
35
+ default: string;
36
+ };
37
+ isInvalid: {
38
+ type: import("vue").PropType<boolean>;
39
+ default: boolean;
40
+ };
41
+ removable: {
42
+ type: import("vue").PropType<boolean>;
43
+ default: boolean;
44
+ };
45
+ iconColor: {
46
+ type: import("vue").PropType<string>;
47
+ default: string;
48
+ };
49
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
50
+ "update:label": (value: string) => void;
51
+ remove: () => void;
52
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
53
+ label: {
54
+ type: import("vue").PropType<string>;
55
+ required: true;
56
+ default: string;
57
+ };
58
+ testId: {
59
+ type: import("vue").PropType<string>;
60
+ default: string;
61
+ };
62
+ variant: {
63
+ type: import("vue").PropType<"filled" | "outlined">;
64
+ default: string;
65
+ };
66
+ disabled: {
67
+ type: import("vue").PropType<boolean>;
68
+ default: boolean;
69
+ };
70
+ color: {
71
+ type: import("vue").PropType<"dark" | "default" | "primary" | "info" | "success" | "warning" | "error">;
72
+ default: string;
73
+ };
74
+ size: {
75
+ type: import("vue").PropType<"small" | "medium">;
76
+ default: string;
77
+ };
78
+ rounded: {
79
+ type: import("vue").PropType<boolean>;
80
+ default: boolean;
81
+ };
82
+ placeholder: {
83
+ type: import("vue").PropType<string>;
84
+ default: string;
85
+ };
86
+ isInvalid: {
87
+ type: import("vue").PropType<boolean>;
88
+ default: boolean;
89
+ };
90
+ removable: {
91
+ type: import("vue").PropType<boolean>;
92
+ default: boolean;
93
+ };
94
+ iconColor: {
95
+ type: import("vue").PropType<string>;
96
+ default: string;
97
+ };
98
+ }>> & {
99
+ onRemove?: () => any;
100
+ "onUpdate:label"?: (value: string) => any;
101
+ }, {
102
+ label: string;
103
+ testId: string;
104
+ variant: "filled" | "outlined";
105
+ disabled: boolean;
106
+ color: "dark" | "default" | "primary" | "info" | "success" | "warning" | "error";
107
+ size: "small" | "medium";
108
+ rounded: boolean;
109
+ placeholder: string;
110
+ isInvalid: boolean;
111
+ removable: boolean;
112
+ iconColor: string;
113
+ }> | import("vue").DefineComponent<{
3
114
  testId: {
4
115
  type: import("vue").PropType<string>;
5
116
  default: string;
@@ -71,5 +182,5 @@ declare const TagsFieldTypes: () => import("vue").DefineComponent<{
71
182
  feedbackText: string;
72
183
  feedbackVariant: "success" | "warning" | "error";
73
184
  showFeedbackTextIcon: boolean;
74
- }>[];
75
- export { TagsField, TagsFieldTypes };
185
+ }>)[];
186
+ export { TagsField, TagsFieldChip, TagsFieldTypes };
@@ -1,6 +1,8 @@
1
- import e from "./TagsField.vue.js";
2
- const s = () => [e];
1
+ import i from "./TagsField.vue.js";
2
+ import o from "./TagsFieldChip.vue.js";
3
+ const r = () => [i, o];
3
4
  export {
4
- e as TagsField,
5
- s as TagsFieldTypes
5
+ i as TagsField,
6
+ o as TagsFieldChip,
7
+ r as TagsFieldTypes
6
8
  };