@ironsource/shared-ui 2.1.6-rc.27 → 2.1.6-rc.29
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_092d0e03_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_b5729ec6_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_2e7a89bc_lang.css +1 -0
- package/HelpIcon.vue_vue_type_style_index_0_scoped_06fce2e3_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_89b98201_lang.css +1 -0
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +11 -0
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +72 -58
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +44 -42
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +12 -12
- package/components/dropdown/v4/index.d.ts +40 -1
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +28 -28
- package/components/table/v4/HelpIcon.vue.js +5 -5
- package/components/table/v4/HelpIcon.vue2.js +5 -5
- package/composables/useFormValidation.js +19 -13
- package/index.d.ts +80 -2
- package/mocks/apps.d.ts +1 -0
- package/package.json +1 -1
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_39c47ad1_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_6df3b70f_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_0363db63_lang.css +0 -1
- package/HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_e0c24b6a_lang.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../OptionV4.
|
|
1
|
+
import "../../../OptionV4.vue_vue_type_style_index_0_scoped_89b98201_lang.css"; import { defineComponent as $, openBlock as n, createBlock as r, unref as i, withCtx as y, createElementVNode as s, normalizeClass as b, createCommentVNode as o, createElementBlock as l, renderSlot as c, createVNode as d, createTextVNode as k, toDisplayString as h, withModifiers as C } from "vue";
|
|
2
2
|
import "../../typography/Heading.vue.js";
|
|
3
3
|
import B from "../../typography/Text.vue.js";
|
|
4
4
|
import z from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
@@ -35,10 +35,10 @@ const P = {
|
|
|
35
35
|
toolTipPlacement: { default: "right" }
|
|
36
36
|
},
|
|
37
37
|
setup(e) {
|
|
38
|
-
const
|
|
39
|
-
return (t, a) => (n(),
|
|
40
|
-
text:
|
|
41
|
-
"test-id":
|
|
38
|
+
const I = e, { selected: m, isMulti: u, id: K, onClick: v, api: T } = V(I), x = (t) => t && typeof t == "object" && "optionTooltipText" in t ? t.optionTooltipText : "", p = (t) => t && typeof t == "object" && "optionTooltipTestId" in t ? t.optionTooltipTestId : null;
|
|
39
|
+
return (t, a) => (n(), r(i(O), {
|
|
40
|
+
text: x(e.option),
|
|
41
|
+
"test-id": p(e.option),
|
|
42
42
|
placement: e.toolTipPlacement,
|
|
43
43
|
class: "tooltip-option"
|
|
44
44
|
}, {
|
|
@@ -49,24 +49,24 @@ const P = {
|
|
|
49
49
|
"item-container--disabled": e.disabled,
|
|
50
50
|
"item-container--active": e.nameKey ? !1 : e.active,
|
|
51
51
|
"item-container--selected": i(m),
|
|
52
|
-
"item-container--multi": i(
|
|
52
|
+
"item-container--multi": i(u)
|
|
53
53
|
}])
|
|
54
54
|
}, [
|
|
55
55
|
s("div", {
|
|
56
56
|
class: b(["item", {
|
|
57
|
-
"item--multi": i(
|
|
57
|
+
"item--multi": i(u),
|
|
58
58
|
"item--with-icon": t.$slots["icon-start"] || t.$slots.image
|
|
59
59
|
}])
|
|
60
60
|
}, [
|
|
61
|
-
i(
|
|
61
|
+
i(u) ? (n(), r(i(z), {
|
|
62
62
|
key: 0,
|
|
63
|
-
id: i(
|
|
63
|
+
id: i(K).toString(),
|
|
64
64
|
tabindex: "-1",
|
|
65
65
|
class: "checkbox",
|
|
66
66
|
size: "sm",
|
|
67
67
|
"is-checked": i(m),
|
|
68
68
|
"is-indeterminate": e.isIndeterminate && !e.option,
|
|
69
|
-
onClick: a[0] || (a[0] = (g) => e.disabled ? i(N)() : i(
|
|
69
|
+
onClick: a[0] || (a[0] = (g) => e.disabled ? i(N)() : i(v)(g))
|
|
70
70
|
}, null, 8, ["id", "is-checked", "is-indeterminate"])) : o("", !0),
|
|
71
71
|
t.$slots.image || e.imageKey ? (n(), l("div", P, [
|
|
72
72
|
c(t.$slots, "image", {}, () => [
|
|
@@ -97,7 +97,7 @@ const P = {
|
|
|
97
97
|
]),
|
|
98
98
|
_: 3
|
|
99
99
|
}),
|
|
100
|
-
e.subtitle ? (n(),
|
|
100
|
+
e.subtitle ? (n(), r(i(B), {
|
|
101
101
|
key: 0,
|
|
102
102
|
class: "subtitle",
|
|
103
103
|
size: "xs"
|
|
@@ -108,7 +108,7 @@ const P = {
|
|
|
108
108
|
_: 1
|
|
109
109
|
})) : o("", !0)
|
|
110
110
|
]),
|
|
111
|
-
t.$slots["icon-end"] || e.endIconKey ? (n(), l("div", M, [
|
|
111
|
+
t.$slots["icon-end"] || e.endIconKey && e.option[e.endIconKey] ? (n(), l("div", M, [
|
|
112
112
|
c(t.$slots, "icon-end", {}, () => [
|
|
113
113
|
d(i(f), {
|
|
114
114
|
type: e.endIconType,
|
|
@@ -553,6 +553,8 @@ declare const DropdownTypes: () => (({
|
|
|
553
553
|
optionIconKey: string;
|
|
554
554
|
optionImageKey: string;
|
|
555
555
|
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
556
|
+
optionEndIconKey: string;
|
|
557
|
+
optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
556
558
|
valueToCopy: string;
|
|
557
559
|
selectedOption: any;
|
|
558
560
|
brandIconType: "android" | "ios";
|
|
@@ -623,6 +625,14 @@ declare const DropdownTypes: () => (({
|
|
|
623
625
|
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test">;
|
|
624
626
|
default: any;
|
|
625
627
|
};
|
|
628
|
+
optionEndIconKey: {
|
|
629
|
+
type: import("vue").PropType<string>;
|
|
630
|
+
default: any;
|
|
631
|
+
};
|
|
632
|
+
optionEndIconType: {
|
|
633
|
+
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test">;
|
|
634
|
+
default: any;
|
|
635
|
+
};
|
|
626
636
|
valueToCopy: {
|
|
627
637
|
type: import("vue").PropType<string>;
|
|
628
638
|
default: any;
|
|
@@ -638,7 +648,7 @@ declare const DropdownTypes: () => (({
|
|
|
638
648
|
}>> & {
|
|
639
649
|
onClick?: () => any;
|
|
640
650
|
onCopyToClipboard?: () => any;
|
|
641
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "label" | "disabled" | "size" | "open" | "mandatory" | "loading" | "testId" | "options" | "singleAppSelection" | "placeholder" | "multi" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "valueToCopy" | "selectedOption" | "brandIconType">;
|
|
651
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "label" | "disabled" | "size" | "open" | "mandatory" | "loading" | "testId" | "options" | "singleAppSelection" | "placeholder" | "multi" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "valueToCopy" | "selectedOption" | "brandIconType">;
|
|
642
652
|
$attrs: {
|
|
643
653
|
[x: string]: unknown;
|
|
644
654
|
};
|
|
@@ -719,6 +729,14 @@ declare const DropdownTypes: () => (({
|
|
|
719
729
|
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test">;
|
|
720
730
|
default: any;
|
|
721
731
|
};
|
|
732
|
+
optionEndIconKey: {
|
|
733
|
+
type: import("vue").PropType<string>;
|
|
734
|
+
default: any;
|
|
735
|
+
};
|
|
736
|
+
optionEndIconType: {
|
|
737
|
+
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test">;
|
|
738
|
+
default: any;
|
|
739
|
+
};
|
|
722
740
|
valueToCopy: {
|
|
723
741
|
type: import("vue").PropType<string>;
|
|
724
742
|
default: any;
|
|
@@ -753,6 +771,8 @@ declare const DropdownTypes: () => (({
|
|
|
753
771
|
optionIconKey: string;
|
|
754
772
|
optionImageKey: string;
|
|
755
773
|
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
774
|
+
optionEndIconKey: string;
|
|
775
|
+
optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
756
776
|
valueToCopy: string;
|
|
757
777
|
selectedOption: any;
|
|
758
778
|
brandIconType: "android" | "ios";
|
|
@@ -843,6 +863,14 @@ declare const DropdownTypes: () => (({
|
|
|
843
863
|
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test">;
|
|
844
864
|
default: any;
|
|
845
865
|
};
|
|
866
|
+
optionEndIconKey: {
|
|
867
|
+
type: import("vue").PropType<string>;
|
|
868
|
+
default: any;
|
|
869
|
+
};
|
|
870
|
+
optionEndIconType: {
|
|
871
|
+
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test">;
|
|
872
|
+
default: any;
|
|
873
|
+
};
|
|
846
874
|
valueToCopy: {
|
|
847
875
|
type: import("vue").PropType<string>;
|
|
848
876
|
default: any;
|
|
@@ -929,6 +957,14 @@ declare const DropdownTypes: () => (({
|
|
|
929
957
|
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test">;
|
|
930
958
|
default: any;
|
|
931
959
|
};
|
|
960
|
+
optionEndIconKey: {
|
|
961
|
+
type: import("vue").PropType<string>;
|
|
962
|
+
default: any;
|
|
963
|
+
};
|
|
964
|
+
optionEndIconType: {
|
|
965
|
+
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test">;
|
|
966
|
+
default: any;
|
|
967
|
+
};
|
|
932
968
|
valueToCopy: {
|
|
933
969
|
type: import("vue").PropType<string>;
|
|
934
970
|
default: any;
|
|
@@ -963,6 +999,8 @@ declare const DropdownTypes: () => (({
|
|
|
963
999
|
optionIconKey: string;
|
|
964
1000
|
optionImageKey: string;
|
|
965
1001
|
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
1002
|
+
optionEndIconKey: string;
|
|
1003
|
+
optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
966
1004
|
valueToCopy: string;
|
|
967
1005
|
selectedOption: any;
|
|
968
1006
|
brandIconType: "android" | "ios";
|
|
@@ -970,6 +1008,7 @@ declare const DropdownTypes: () => (({
|
|
|
970
1008
|
$slots: {
|
|
971
1009
|
image?(_: {}): any;
|
|
972
1010
|
"icon-start"?(_: {}): any;
|
|
1011
|
+
"icon-end"?(_: {}): any;
|
|
973
1012
|
};
|
|
974
1013
|
})) | ({
|
|
975
1014
|
new (...args: any[]): {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DataGrid.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../DataGrid.
|
|
4
|
-
const a = /* @__PURE__ */
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DataGrid.vue_vue_type_style_index_0_scoped_b5729ec6_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ e(o, [["__scopeId", "data-v-b5729ec6"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_b5729ec6_lang.css"; import { defineComponent as se, useCssVars as ae, unref as t, useSlots as le, computed as g, openBlock as l, createElementBlock as d, createElementVNode as h, normalizeStyle as x, normalizeClass as f, renderSlot as c, createVNode as y, withCtx as T, createTextVNode as C, toDisplayString as E, isRef as ie, createCommentVNode as u, Fragment as w, renderList as B, createBlock as z, mergeProps as de } from "vue";
|
|
2
2
|
import I from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import oe from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
4
|
import ne from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
5
5
|
import D from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
6
6
|
import { TableTestIdModifiers as S } from "../../../testids/index.js";
|
|
7
|
-
import { tableCommon as
|
|
8
|
-
import
|
|
7
|
+
import { tableCommon as re } from "../common/Table.common.js";
|
|
8
|
+
import ce from "./SortIcon.vue.js";
|
|
9
9
|
import ue from "./HelpIcon.vue.js";
|
|
10
10
|
import he from "./ExpandRowToggle.vue.js";
|
|
11
11
|
import ye from "../../search/v4/SearchV4.vue.js";
|
|
@@ -37,8 +37,8 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
37
37
|
sections: { default: null },
|
|
38
38
|
sort: { default: null },
|
|
39
39
|
selection: { default: null },
|
|
40
|
-
getRowId: { type: Function, default: (s,
|
|
41
|
-
selectedMatcher: { type: Function, default: (s,
|
|
40
|
+
getRowId: { type: Function, default: (s, r) => r },
|
|
41
|
+
selectedMatcher: { type: Function, default: (s, r) => s === r },
|
|
42
42
|
isSticky: { type: Boolean, default: !0 },
|
|
43
43
|
isStickyHeader: { type: Boolean, default: !1 },
|
|
44
44
|
isLoading: { type: Boolean, default: !1 },
|
|
@@ -58,13 +58,13 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
58
58
|
zIndexBase: { default: 100 }
|
|
59
59
|
},
|
|
60
60
|
emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow"],
|
|
61
|
-
setup(s, { emit:
|
|
61
|
+
setup(s, { emit: r }) {
|
|
62
62
|
const o = s;
|
|
63
63
|
ae((a) => ({
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
"
|
|
64
|
+
"1d168568": s.zIndexBase,
|
|
65
|
+
"40a246c0": t(J),
|
|
66
|
+
"68f7a9b9": t(V),
|
|
67
|
+
"60bffa01": t(q)
|
|
68
68
|
}));
|
|
69
69
|
const v = le(), {
|
|
70
70
|
list: P,
|
|
@@ -85,7 +85,7 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
85
85
|
isRowExpanded: A,
|
|
86
86
|
hasCheckboxes: F,
|
|
87
87
|
activeMenuRow: K
|
|
88
|
-
} =
|
|
88
|
+
} = re(o, r), O = g(() => !!v.footer), k = fe(o, "search", r), X = g(() => o.selection.length || 0), M = g(() => {
|
|
89
89
|
const a = o.rows.map((i, e) => o.getRowId(i, e));
|
|
90
90
|
return a.length && a.every((i) => $(i));
|
|
91
91
|
}), $ = (a) => o.selection.findIndex((i) => o.selectedMatcher(a, i)) !== -1, Z = (a) => {
|
|
@@ -93,16 +93,16 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
93
93
|
o.selection.filter(
|
|
94
94
|
(i) => !o.selectedMatcher(a, i)
|
|
95
95
|
)
|
|
96
|
-
),
|
|
96
|
+
), r("selectRow", !1)) : (R([...o.selection, a]), r("selectRow", !0));
|
|
97
97
|
}, _ = () => {
|
|
98
98
|
if (M.value)
|
|
99
|
-
R([]),
|
|
99
|
+
R([]), r("selectAll", !1);
|
|
100
100
|
else {
|
|
101
101
|
const a = o.rows.map((i, e) => o.getRowId(i, e)).filter((i) => !$(i));
|
|
102
|
-
R([...o.selection, ...a]),
|
|
102
|
+
R([...o.selection, ...a]), r("selectAll", !0);
|
|
103
103
|
}
|
|
104
104
|
}, R = (a) => {
|
|
105
|
-
|
|
105
|
+
r("update:selection", a);
|
|
106
106
|
}, ee = g(
|
|
107
107
|
() => o.emptyStateVariant ?? (k.value ? "no-results" : "no-data")
|
|
108
108
|
), te = g(
|
|
@@ -132,7 +132,7 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
132
132
|
class: "table-title",
|
|
133
133
|
"data-testid": `${s.testId}-${t(S).TITLE}`
|
|
134
134
|
}, [
|
|
135
|
-
|
|
135
|
+
c(a.$slots, "title", {}, () => [
|
|
136
136
|
y(t(I), { variant: "h3" }, {
|
|
137
137
|
default: T(() => [
|
|
138
138
|
C(E(s.title), 1)
|
|
@@ -145,7 +145,7 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
145
145
|
class: "table-header-right",
|
|
146
146
|
"data-testid": `${s.testId}-${t(S).HEADER_RIGHT}`
|
|
147
147
|
}, [
|
|
148
|
-
s.showSearch ?
|
|
148
|
+
s.showSearch ? c(a.$slots, "search", { key: 0 }, () => [
|
|
149
149
|
h("div", be, [
|
|
150
150
|
y(t(ye), {
|
|
151
151
|
modelValue: t(k),
|
|
@@ -153,7 +153,7 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
153
153
|
placeholder: s.searchPlaceholder,
|
|
154
154
|
"auto-focus": s.searchAutoFocus,
|
|
155
155
|
"test-id": s.testId,
|
|
156
|
-
onOnClear: i[1] || (i[1] = (e) =>
|
|
156
|
+
onOnClear: i[1] || (i[1] = (e) => r("onClearSearch"))
|
|
157
157
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
|
|
158
158
|
])
|
|
159
159
|
], !0) : u("", !0)
|
|
@@ -163,7 +163,7 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
163
163
|
class: "table-header-actions",
|
|
164
164
|
"data-testid": `${s.testId}-${t(S).ACTIONS}`
|
|
165
165
|
}, [
|
|
166
|
-
|
|
166
|
+
c(a.$slots, "table-header-actions", {}, void 0, !0)
|
|
167
167
|
], 8, $e)) : u("", !0)
|
|
168
168
|
], 10, me)) : u("", !0),
|
|
169
169
|
h("thead", {
|
|
@@ -177,7 +177,7 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
177
177
|
key: e.id,
|
|
178
178
|
class: f(["section-container", { sticky: e.isSticky }])
|
|
179
179
|
}, [
|
|
180
|
-
|
|
180
|
+
c(a.$slots, `section-${e.id}`, {}, () => [
|
|
181
181
|
h("div", {
|
|
182
182
|
style: x({ width: e.width + "px" }),
|
|
183
183
|
class: f({ section: !0 })
|
|
@@ -194,7 +194,7 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
194
194
|
], 8, Re),
|
|
195
195
|
h("tr", null, [
|
|
196
196
|
t(F) ? (l(), d("th", xe, [
|
|
197
|
-
|
|
197
|
+
c(a.$slots, "select-all-checkbox", {}, () => [
|
|
198
198
|
y(t(D), {
|
|
199
199
|
disabled: s.isLoading,
|
|
200
200
|
"is-checked": t(M),
|
|
@@ -218,7 +218,7 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
218
218
|
onClick: (m) => e.isSortable ? t(Y)(e) : null
|
|
219
219
|
}, [
|
|
220
220
|
h("div", Ee, [
|
|
221
|
-
|
|
221
|
+
c(a.$slots, `header-${e.id}`, { column: e }, () => [
|
|
222
222
|
y(t(I), { variant: "tableLabel" }, {
|
|
223
223
|
default: T(() => [
|
|
224
224
|
C(E(e.title), 1)
|
|
@@ -231,7 +231,7 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
231
231
|
"hover-help-text": e.helpText,
|
|
232
232
|
"hover-help-text-placement": e.helpTextPlacement
|
|
233
233
|
}, null, 8, ["hover-help-text", "hover-help-text-placement"])) : u("", !0),
|
|
234
|
-
e.isSortable && e.id === s.sort?.sortBy ? (l(), z(
|
|
234
|
+
e.isSortable && e.id === s.sort?.sortBy ? (l(), z(ce, {
|
|
235
235
|
key: 1,
|
|
236
236
|
"sort-order": s.sort.sortOrder
|
|
237
237
|
}, null, 8, ["sort-order"])) : u("", !0)
|
|
@@ -285,7 +285,7 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
285
285
|
key: 0,
|
|
286
286
|
class: f(["table-cell", { last: n === e.data.length - 1 }])
|
|
287
287
|
}, [
|
|
288
|
-
|
|
288
|
+
c(a.$slots, `cell-${s.columns[n].id}`, {
|
|
289
289
|
cell: e.data[n],
|
|
290
290
|
isLoading: t(N).includes(e.index),
|
|
291
291
|
cellIndex: n,
|
|
@@ -299,19 +299,19 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
299
299
|
_: 2
|
|
300
300
|
}, 1024)
|
|
301
301
|
], !0)
|
|
302
|
-
], 2)) :
|
|
302
|
+
], 2)) : c(a.$slots, "loader", { key: 1 }, () => [
|
|
303
303
|
y(t(oe), { round: "" })
|
|
304
304
|
], !0)
|
|
305
305
|
], 6))), 128)),
|
|
306
306
|
t(b) && t(A)(e.index) ? (l(), d("div", Ae, [
|
|
307
|
-
|
|
307
|
+
c(a.$slots, "expanded", {
|
|
308
308
|
row: e,
|
|
309
309
|
gridColumnTemplate: t(V)
|
|
310
310
|
}, void 0, !0)
|
|
311
311
|
])) : u("", !0)
|
|
312
312
|
], 42, Be))), 128))
|
|
313
313
|
], 16, we)) : (l(), d("div", Me, [
|
|
314
|
-
|
|
314
|
+
c(a.$slots, "empty-state", {}, () => [
|
|
315
315
|
y(t(ne), {
|
|
316
316
|
class: "empty-state",
|
|
317
317
|
title: s.emptyStateTitle,
|
|
@@ -324,7 +324,7 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
324
324
|
])
|
|
325
325
|
], 46, ke),
|
|
326
326
|
t(O) ? (l(), d("div", Pe, [
|
|
327
|
-
|
|
327
|
+
c(a.$slots, "footer", {}, void 0, !0)
|
|
328
328
|
])) : u("", !0)
|
|
329
329
|
], 40, Se));
|
|
330
330
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../HelpIcon.
|
|
4
|
-
const
|
|
1
|
+
import e from "./HelpIcon.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../HelpIcon.vue_vue_type_style_index_0_scoped_06fce2e3_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-06fce2e3"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../../HelpIcon.
|
|
2
|
-
import c from "../../icon/
|
|
3
|
-
import
|
|
1
|
+
import "../../../HelpIcon.vue_vue_type_style_index_0_scoped_06fce2e3_lang.css"; import { defineComponent as o, openBlock as l, createBlock as n, unref as t, withCtx as r, createVNode as a } from "vue";
|
|
2
|
+
import c from "../../icon/v4/IconV4.vue.js";
|
|
3
|
+
import p from "../../tooltip/v4/TooltipV4.vue.js";
|
|
4
4
|
const u = /* @__PURE__ */ o({
|
|
5
5
|
__name: "HelpIcon",
|
|
6
6
|
props: {
|
|
@@ -9,7 +9,7 @@ const u = /* @__PURE__ */ o({
|
|
|
9
9
|
testId: { default: "" }
|
|
10
10
|
},
|
|
11
11
|
setup(e) {
|
|
12
|
-
return (
|
|
12
|
+
return (i, m) => (l(), n(t(p), {
|
|
13
13
|
class: "table-help-icon",
|
|
14
14
|
triggers: ["hover"],
|
|
15
15
|
text: e.hoverHelpText,
|
|
@@ -20,7 +20,7 @@ const u = /* @__PURE__ */ o({
|
|
|
20
20
|
a(t(c), {
|
|
21
21
|
class: "info-icon",
|
|
22
22
|
name: "question",
|
|
23
|
-
|
|
23
|
+
size: "16px"
|
|
24
24
|
})
|
|
25
25
|
]),
|
|
26
26
|
_: 1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as m from "yup";
|
|
2
|
-
import { ref as
|
|
2
|
+
import { ref as d, reactive as f, watch as v } from "vue";
|
|
3
3
|
const E = (e, r = 0) => {
|
|
4
4
|
try {
|
|
5
5
|
window.document.getElementsByClassName(e)[r].scrollIntoView({ behavior: "smooth" });
|
|
@@ -9,28 +9,34 @@ const E = (e, r = 0) => {
|
|
|
9
9
|
}, h = (e) => {
|
|
10
10
|
const r = Object.keys(e)?.[0];
|
|
11
11
|
r && E(`form-field-${r}`);
|
|
12
|
-
},
|
|
12
|
+
}, p = (e, r) => {
|
|
13
13
|
const o = m.object().shape(e);
|
|
14
14
|
try {
|
|
15
15
|
return o.validateSync(r.value, { abortEarly: !1 }), { isValid: !0, errors: {} };
|
|
16
16
|
} catch (i) {
|
|
17
|
-
return { isValid: !1, errors: i.inner.reduce((s,
|
|
17
|
+
return { isValid: !1, errors: i.inner.reduce((s, n) => (s[n.path] = n.message, s), {}) };
|
|
18
18
|
}
|
|
19
19
|
}, b = ({
|
|
20
20
|
formState: e,
|
|
21
21
|
formValidationSchema: r
|
|
22
22
|
}) => {
|
|
23
|
-
const o =
|
|
24
|
-
const { isValid:
|
|
25
|
-
o.value = !0, i.value =
|
|
23
|
+
const o = d(!1), i = d(!0), t = f({}), s = (n) => {
|
|
24
|
+
const { isValid: l, errors: c } = p(r, e);
|
|
25
|
+
o.value = !0, i.value = l, Object.keys(t).forEach((a) => {
|
|
26
26
|
a && !c[a] && delete t[a];
|
|
27
|
-
}), Object.entries(c).forEach(([a,
|
|
28
|
-
t[a] =
|
|
29
|
-
}), !
|
|
27
|
+
}), Object.entries(c).forEach(([a, u]) => {
|
|
28
|
+
t[a] = u;
|
|
29
|
+
}), !l && !n && h(t);
|
|
30
30
|
};
|
|
31
|
-
return v(
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
return v(
|
|
32
|
+
e,
|
|
33
|
+
() => {
|
|
34
|
+
o.value && s(!0);
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
deep: !0
|
|
38
|
+
}
|
|
39
|
+
), {
|
|
34
40
|
validationErrors: t,
|
|
35
41
|
isValid: i,
|
|
36
42
|
validate: s
|
|
@@ -40,5 +46,5 @@ export {
|
|
|
40
46
|
E as scrollToElementByClass,
|
|
41
47
|
h as scrollToFirstInvalidElement,
|
|
42
48
|
b as useFormValidation,
|
|
43
|
-
|
|
49
|
+
p as yupValidation
|
|
44
50
|
};
|