@ironsource/shared-ui 2.0.0 → 2.0.1-test.2
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/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_c48dc06e_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_cca772e9_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e5202bb9_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_4e432056_lang.css +1 -0
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_92d83650_lang.css +1 -0
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_11c1bb3f_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c6156fa0_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_7422cf08_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_19f8fedd_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_fb054d88_lang.css +1 -0
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_5764fd61_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_2a214b95_lang.css +1 -0
- package/{Skeleton.vue_vue_type_style_index_0_scoped_9837f0ce_lang.css → Skeleton.vue_vue_type_style_index_0_scoped_5ed40068_lang.css} +1 -1
- package/SkeletonV4.vue_vue_type_style_index_0_scoped_2f3b3470_lang.css +1 -0
- package/Table.vue_vue_type_style_index_0_scoped_76fef9bd_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_473bab9b_lang.css +1 -0
- package/components/button/v4/ButtonV4.vue.js +4 -4
- package/components/button/v4/ButtonV4.vue2.js +1 -1
- package/components/dialog/v4/DialogV4.vue.d.ts +34 -0
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +87 -56
- package/components/dialog/v4/index.d.ts +128 -2
- package/components/dropdown/common/Dropdown.common.js +29 -29
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +136 -0
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +7 -0
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +147 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +8 -8
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +39 -11
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +77 -47
- package/components/dropdown/v4/Dropdown.types.d.ts +1 -1
- package/components/dropdown/v4/Dropdown.types.js +2 -1
- package/components/dropdown/v4/DropdownV4.vue.d.ts +42 -7
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +193 -163
- package/components/dropdown/v4/OptionV4.vue.d.ts +20 -0
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +54 -37
- package/components/dropdown/v4/index.d.ts +824 -70
- package/components/dropdown/v4/index.js +11 -8
- package/components/includeExclude/IncludeExclude.vue.js +3 -3
- package/components/includeExclude/IncludeExclude.vue2.js +2 -2
- package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeDragDrop.vue.js +3 -3
- package/components/includeExclude/IncludeExcludeDragDrop.vue2.js +2 -2
- package/components/includeExclude/index.d.ts +20 -20
- package/components/input/v4/TextField.vue.d.ts +1 -1
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +9 -10
- package/components/input/v4/index.d.ts +20 -20
- package/components/layout/FormCard.vue.d.ts +1 -1
- package/components/layout/index.d.ts +12 -12
- package/components/multibar/MultiBarMenu.vue2.js +7 -6
- package/components/skeleton/v3/Skeleton.vue.js +7 -0
- package/components/skeleton/{Skeleton.vue2.js → v3/Skeleton.vue2.js} +1 -1
- package/components/skeleton/v4/SkeletonV4.vue.d.ts +41 -0
- package/components/skeleton/v4/SkeletonV4.vue.js +7 -0
- package/components/skeleton/v4/SkeletonV4.vue2.js +23 -0
- package/components/skeleton/v4/index.d.ts +94 -0
- package/components/skeleton/v4/index.js +6 -0
- package/components/table/v3/Table.vue.js +5 -5
- package/components/table/v3/Table.vue2.js +3 -3
- package/components/table/v4/DataGrid.vue.d.ts +7 -2
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +175 -169
- package/components/table/v4/DataGridMenu.vue.d.ts +5 -0
- package/components/table/v4/DataGridMenu.vue.js +3 -3
- package/components/table/v4/DataGridMenu.vue2.js +49 -38
- package/components/table/v4/DataGridRowsCounter.vue.d.ts +34 -0
- package/components/table/v4/DataGridRowsCounter.vue.js +7 -0
- package/components/table/v4/DataGridRowsCounter.vue2.js +36 -0
- package/components/table/v4/index.d.ts +56 -6
- package/components/table/v4/index.js +6 -4
- package/components/table/v4/storyUtils.d.ts +1 -0
- package/components/toggle/v4/ToggleV4.vue.d.ts +1 -1
- package/components/toggle/v4/index.d.ts +20 -20
- package/index.d.ts +2401 -360
- package/index.js +119 -119
- package/mocks/apps.d.ts +7 -0
- package/package.json +6 -2
- package/testids/index.d.ts +3 -1
- package/testids/index.js +10 -10
- package/utils/array.js +1 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_31e553e8_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_14dcdae5_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_7a670808_lang.css +0 -1
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_99f1dcca_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c218ef1f_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_c0c12287_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_571b7c2f_lang.css +0 -1
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_2a01a791_lang.css +0 -1
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_85bff8f4_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_92add735_lang.css +0 -1
- package/Table.vue_vue_type_style_index_0_scoped_6b769df2_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_d4dc4582_lang.css +0 -1
- package/components/skeleton/Skeleton.vue.js +0 -7
- /package/components/skeleton/{Skeleton.vue.d.ts → v3/Skeleton.vue.d.ts} +0 -0
- /package/components/skeleton/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/skeleton/{index.js → v3/index.js} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import "../../../OptionV4.
|
|
1
|
+
import "../../../OptionV4.vue_vue_type_style_index_0_scoped_2a214b95_lang.css"; import { defineComponent as $, openBlock as n, createElementBlock as o, normalizeClass as y, unref as t, createElementVNode as d, createBlock as k, createCommentVNode as l, renderSlot as m, createVNode as r, withCtx as b, createTextVNode as g, toDisplayString as h, withModifiers as p } from "vue";
|
|
2
2
|
import "../../typography/Heading.vue.js";
|
|
3
3
|
import N from "../../typography/Text.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { NOOP as
|
|
7
|
-
import { optionCommon as
|
|
4
|
+
import T from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
5
|
+
import v from "../../icon/v4/IconV4.vue.js";
|
|
6
|
+
import { NOOP as V } from "@vue/shared";
|
|
7
|
+
import { optionCommon as w } from "../common/Option.common.js";
|
|
8
8
|
import x from "../../typography/v4/Typography.vue.js";
|
|
9
9
|
const z = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "image"
|
|
12
|
-
},
|
|
12
|
+
}, O = ["src"], S = {
|
|
13
13
|
key: 2,
|
|
14
14
|
class: "start-icon"
|
|
15
|
-
},
|
|
15
|
+
}, I = { class: "text-container" }, E = { key: 0 }, H = /* @__PURE__ */ $({
|
|
16
16
|
__name: "OptionV4",
|
|
17
17
|
props: {
|
|
18
18
|
option: { default: null },
|
|
@@ -21,66 +21,83 @@ const z = {
|
|
|
21
21
|
selectedProp: { type: Boolean },
|
|
22
22
|
isIndeterminate: { type: Boolean, default: !1 },
|
|
23
23
|
selectAllOption: { type: Boolean, default: !1 },
|
|
24
|
-
active: { type: Boolean, default: null }
|
|
24
|
+
active: { type: Boolean, default: null },
|
|
25
|
+
nameKey: { default: null },
|
|
26
|
+
imageKey: { default: null },
|
|
27
|
+
iconKey: { default: null },
|
|
28
|
+
iconType: { default: null }
|
|
25
29
|
},
|
|
26
|
-
setup(
|
|
27
|
-
const
|
|
28
|
-
return (i,
|
|
30
|
+
setup(e) {
|
|
31
|
+
const K = e, { selected: s, isMulti: c, id: C, onClick: B, api: u } = w(K);
|
|
32
|
+
return (i, a) => (n(), o("div", {
|
|
29
33
|
ref: "el",
|
|
30
|
-
class:
|
|
31
|
-
"item-container--disabled":
|
|
32
|
-
"item-container--active":
|
|
33
|
-
"item-container--selected":
|
|
34
|
-
"item-container--multi":
|
|
34
|
+
class: y(["item-container", {
|
|
35
|
+
"item-container--disabled": e.disabled,
|
|
36
|
+
"item-container--active": e.nameKey ? !1 : e.active,
|
|
37
|
+
"item-container--selected": t(s),
|
|
38
|
+
"item-container--multi": t(c)
|
|
35
39
|
}])
|
|
36
40
|
}, [
|
|
37
41
|
d("div", {
|
|
38
|
-
class:
|
|
39
|
-
"item--multi":
|
|
42
|
+
class: y(["item", {
|
|
43
|
+
"item--multi": t(c),
|
|
40
44
|
"item--with-icon": i.$slots["icon-start"] || i.$slots.image
|
|
41
45
|
}])
|
|
42
46
|
}, [
|
|
43
|
-
|
|
47
|
+
t(c) ? (n(), k(t(T), {
|
|
44
48
|
key: 0,
|
|
45
|
-
id:
|
|
49
|
+
id: t(C).toString(),
|
|
46
50
|
tabindex: "-1",
|
|
47
51
|
class: "checkbox",
|
|
48
52
|
size: "sm",
|
|
49
|
-
"is-checked":
|
|
50
|
-
"is-indeterminate":
|
|
51
|
-
onClick:
|
|
53
|
+
"is-checked": t(s),
|
|
54
|
+
"is-indeterminate": e.isIndeterminate && !e.option,
|
|
55
|
+
onClick: a[0] || (a[0] = (f) => e.disabled ? t(V)() : t(B)(f))
|
|
52
56
|
}, null, 8, ["id", "is-checked", "is-indeterminate"])) : l("", !0),
|
|
53
|
-
i.$slots.image ? (
|
|
54
|
-
|
|
57
|
+
i.$slots.image || e.imageKey ? (n(), o("div", z, [
|
|
58
|
+
m(i.$slots, "image", {}, () => [
|
|
59
|
+
e.imageKey ? (n(), o("img", {
|
|
60
|
+
key: 0,
|
|
61
|
+
src: e.option[e.imageKey]
|
|
62
|
+
}, null, 8, O)) : l("", !0)
|
|
63
|
+
], !0)
|
|
55
64
|
])) : l("", !0),
|
|
56
|
-
i.$slots["icon-start"] ? (
|
|
57
|
-
|
|
65
|
+
i.$slots["icon-start"] || e.iconKey ? (n(), o("div", S, [
|
|
66
|
+
m(i.$slots, "icon-start", {}, () => [
|
|
67
|
+
r(t(v), {
|
|
68
|
+
type: e.iconType,
|
|
69
|
+
name: e.option[e.iconKey],
|
|
70
|
+
size: "16px"
|
|
71
|
+
}, null, 8, ["type", "name"])
|
|
72
|
+
], !0)
|
|
58
73
|
])) : l("", !0),
|
|
59
|
-
d("div",
|
|
60
|
-
|
|
61
|
-
default:
|
|
62
|
-
|
|
74
|
+
d("div", I, [
|
|
75
|
+
r(t(x), { variant: "body2" }, {
|
|
76
|
+
default: b(() => [
|
|
77
|
+
m(i.$slots, "default", {}, () => [
|
|
78
|
+
g(h(e.option[e.nameKey]), 1)
|
|
79
|
+
], !0)
|
|
63
80
|
]),
|
|
64
81
|
_: 3
|
|
65
82
|
}),
|
|
66
|
-
|
|
83
|
+
e.subtitle ? (n(), k(t(N), {
|
|
67
84
|
key: 0,
|
|
68
85
|
class: "subtitle",
|
|
69
86
|
size: "xs"
|
|
70
87
|
}, {
|
|
71
|
-
default:
|
|
72
|
-
g(
|
|
88
|
+
default: b(() => [
|
|
89
|
+
g(h(e.subtitle), 1)
|
|
73
90
|
]),
|
|
74
91
|
_: 1
|
|
75
92
|
})) : l("", !0)
|
|
76
93
|
])
|
|
77
94
|
], 2),
|
|
78
|
-
|
|
95
|
+
t(u).clearable && t(s) ? (n(), o("div", E, [
|
|
79
96
|
d("button", {
|
|
80
97
|
class: "clear-button",
|
|
81
|
-
onClick:
|
|
98
|
+
onClick: a[1] || (a[1] = p((f) => t(u).clearSelection(), ["prevent", "stop"]))
|
|
82
99
|
}, [
|
|
83
|
-
|
|
100
|
+
r(t(v), {
|
|
84
101
|
name: "close",
|
|
85
102
|
width: "8",
|
|
86
103
|
height: 8
|