@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.
- package/Autocomplete.vue_vue_type_style_index_0_scoped_d2d1dc1d_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_8c3b0c3f_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_889042cf_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_c96fba2c_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_c3004ba3_lang.css +1 -0
- package/FormCard.vue_vue_type_style_index_0_scoped_ef8b4e81_lang.css +1 -0
- package/README.md +1 -1
- package/SearchV4.vue_vue_type_style_index_0_scoped_a468fb4a_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_b5b2e8fd_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_25809092_lang.css +1 -0
- package/components/autocomplete/Autocomplete.vue.js +3 -3
- package/components/autocomplete/Autocomplete.vue2.js +14 -13
- package/components/button/v4/ButtonV4.vue.js +3 -3
- package/components/button/v4/ButtonV4.vue2.js +1 -1
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +1 -1
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/DropdownV4.vue.d.ts +1 -1
- package/components/dropdown/v4/index.d.ts +20 -20
- package/components/forms/FormCard.vue.js +4 -4
- package/components/forms/FormCard.vue2.js +1 -1
- package/components/input/v4/TextField.vue.d.ts +5 -0
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +34 -33
- package/components/input/v4/index.d.ts +20 -1
- package/components/search/common/Search.common.js +10 -10
- package/components/search/v4/SearchV4.vue.d.ts +2 -0
- package/components/search/v4/SearchV4.vue.js +5 -5
- package/components/search/v4/SearchV4.vue2.js +9 -9
- package/components/search/v4/index.d.ts +2 -0
- package/components/table/v4/DataGrid.vue.d.ts +2 -0
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +138 -137
- package/components/table/v4/index.d.ts +7 -1
- package/components/tooltip/v4/TooltipV4.vue.d.ts +5 -0
- package/components/tooltip/v4/TooltipV4.vue.js +3 -3
- package/components/tooltip/v4/TooltipV4.vue2.js +6 -5
- package/components/tooltip/v4/index.d.ts +20 -1
- package/index.d.ts +138 -46
- package/package.json +1 -1
- package/Autocomplete.vue_vue_type_style_index_0_scoped_429e5745_lang.css +0 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_e535063a_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_c859928d_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_bddb537c_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_ea9275e6_lang.css +0 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_d3abd36a_lang.css +0 -1
- package/SearchV4.vue_vue_type_style_index_0_scoped_1330ea8b_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_95e25718_lang.css +0 -1
- 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
|
|
2
|
-
const I = (
|
|
3
|
-
const
|
|
4
|
-
u("update:modelValue",
|
|
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", ""),
|
|
7
|
-
},
|
|
6
|
+
u("update:modelValue", ""), u("onClear"), a.value.focus ? l() : a.value.manualFocus();
|
|
7
|
+
}, v = () => {
|
|
8
8
|
n.value ? o() : l();
|
|
9
|
-
}, l = () =>
|
|
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:
|
|
13
|
+
showRightIcon: i,
|
|
14
14
|
showClear: n,
|
|
15
15
|
rightIcon: h,
|
|
16
|
-
onRightIconClick:
|
|
17
|
-
inputRef:
|
|
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
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../SearchV4.
|
|
4
|
-
const
|
|
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
|
-
|
|
6
|
+
t as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../../SearchV4.
|
|
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
|
|
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:
|
|
18
|
-
const s = t, { inputRef: i, clearValue: n } = b(s,
|
|
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(
|
|
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) =>
|
|
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(
|
|
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
|
-
[
|
|
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.
|
|
4
|
-
const
|
|
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
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|