@ironsource/shared-ui 2.1.12-rc.25 → 2.1.12-rc.27
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/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_adb49e50_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_852be7ec_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_e8f25a03_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +1 -0
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_4f67d41d_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_3315b68f_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_b21a79b1_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_55dd36a7_lang.css +1 -0
- package/Link.vue_vue_type_style_index_0_scoped_ad98fe7b_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css +1 -0
- package/SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css +1 -0
- package/components/button/v4/ButtonV4.vue.d.ts +1 -0
- package/components/button/v4/ButtonV4.vue.js +3 -3
- package/components/button/v4/ButtonV4.vue2.js +28 -27
- package/components/chart/Chart.vue.d.ts +6 -1
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +6 -4
- package/components/chart/ChartHeader.vue.d.ts +5 -0
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +43 -35
- package/components/chart/ChartHeaderTrend.vue.js +3 -3
- package/components/chart/ChartHeaderTrend.vue2.js +17 -17
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +1 -1
- package/components/chart/ChartPlane.vue.d.ts +6 -1
- package/components/chart/ChartPlane.vue.js +5 -5
- package/components/chart/ChartPlane.vue2.js +140 -138
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +5 -5
- package/components/chart/index.d.ts +43 -24
- package/components/chart/utils/utils.d.ts +1 -2
- package/components/chart/utils/utils.js +13 -19
- package/components/dateRange/common/DateRange.common.js +81 -75
- package/components/dateRange/common/DateServices.common.d.ts +1 -1
- package/components/dateRange/common/DateServices.common.js +1 -0
- package/components/dropdown/common/Dropdown.common.js +82 -78
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +16 -13
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +17 -9
- package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +142 -123
- package/components/dropdown/v4/DropdownV4.vue.d.ts +10 -0
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +174 -163
- package/components/dropdown/v4/OptionV4.vue.d.ts +10 -5
- package/components/dropdown/v4/OptionV4.vue.js +4 -4
- package/components/dropdown/v4/OptionV4.vue2.js +106 -99
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +8 -0
- package/components/dropdown/v4/index.d.ts +510 -127
- package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +1 -1
- package/components/includeExclude/index.d.ts +40 -40
- package/components/link/Link.vue.d.ts +70 -0
- package/components/link/Link.vue.js +7 -0
- package/components/link/Link.vue2.js +43 -0
- package/components/link/index.d.ts +201 -0
- package/components/link/index.js +6 -0
- package/components/switch/v4/SwitchV4.vue.d.ts +11 -0
- package/components/switch/v4/SwitchV4.vue.js +2 -2
- package/components/switch/v4/SwitchV4.vue2.js +39 -26
- package/components/switch/v4/index.d.ts +18 -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 +111 -110
- package/components/table/v4/index.d.ts +2 -0
- package/composables/useDateService.d.ts +7 -0
- package/composables/useDateService.js +10 -0
- package/index.d.ts +1120 -310
- package/index.js +111 -105
- package/mocks/apps.d.ts +1 -0
- package/mocks/optionsWithIcons.d.ts +2 -0
- package/package.json +9 -1
- package/testids/index.d.ts +4 -0
- package/testids/index.js +31 -30
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_0123c361_lang.css +0 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_d7948c77_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_03771fa3_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_da34b108_lang.css +0 -1
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ebc0c582_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_fd9e4ea2_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_903fc6ae_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_e53c6287_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_cce87267_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_5b72e35a_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_92ead583_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_3dc741c1_lang.css +0 -1
- package/SwitchV4.vue_vue_type_style_index_0_scoped_fa120cf6_lang.css +0 -1
- package/components/chart/composables/useChartValues.d.ts +0 -12
- package/components/chart/composables/useChartValues.js +0 -32
|
@@ -1,13 +1,18 @@
|
|
|
1
|
+
import { TooltipPositions } from '@/components/tooltip/common/Tooltip.types';
|
|
1
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
3
|
options: unknown[];
|
|
3
4
|
modelValue: unknown;
|
|
4
5
|
variant: 'primary' | 'default';
|
|
5
6
|
testId?: string;
|
|
6
7
|
iconKey?: string;
|
|
8
|
+
tooltipTextKey?: string;
|
|
9
|
+
tooltipPlacement?: TooltipPositions;
|
|
7
10
|
}>, {
|
|
8
11
|
testId: string;
|
|
9
12
|
variant: string;
|
|
10
13
|
iconKey: string;
|
|
14
|
+
tooltipTextKey: string;
|
|
15
|
+
tooltipPlacement: string;
|
|
11
16
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
17
|
"update:modelValue": (...args: any[]) => void;
|
|
13
18
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -16,16 +21,22 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
16
21
|
variant: 'primary' | 'default';
|
|
17
22
|
testId?: string;
|
|
18
23
|
iconKey?: string;
|
|
24
|
+
tooltipTextKey?: string;
|
|
25
|
+
tooltipPlacement?: TooltipPositions;
|
|
19
26
|
}>, {
|
|
20
27
|
testId: string;
|
|
21
28
|
variant: string;
|
|
22
29
|
iconKey: string;
|
|
30
|
+
tooltipTextKey: string;
|
|
31
|
+
tooltipPlacement: string;
|
|
23
32
|
}>>> & {
|
|
24
33
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
25
34
|
}, {
|
|
26
35
|
testId: string;
|
|
27
36
|
variant: 'primary' | 'default';
|
|
37
|
+
tooltipPlacement: TooltipPositions;
|
|
28
38
|
iconKey: string;
|
|
39
|
+
tooltipTextKey: string;
|
|
29
40
|
}>;
|
|
30
41
|
export default _default;
|
|
31
42
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SwitchV4.vue2.js";
|
|
2
2
|
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../SwitchV4.
|
|
4
|
-
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-cd6621a7"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,46 +1,59 @@
|
|
|
1
|
-
import "../../../SwitchV4.
|
|
2
|
-
import { useVModel as
|
|
1
|
+
import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css"; import { defineComponent as T, ref as h, onMounted as k, openBlock as c, createElementBlock as r, normalizeClass as m, unref as a, Fragment as x, renderList as V, createBlock as w, withCtx as y, createVNode as C } from "vue";
|
|
2
|
+
import { useVModel as I } from "@vueuse/core";
|
|
3
|
+
import { SwitchTestIdModifiers as u } from "../../../testids/index.js";
|
|
3
4
|
import "../../button/v4/ButtonV4.vue.js";
|
|
4
|
-
import
|
|
5
|
+
import $ from "../../button/v4/IconButtonV4.vue.js";
|
|
5
6
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
6
7
|
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
7
|
-
import
|
|
8
|
-
const
|
|
8
|
+
import B from "../../tooltip/v4/TooltipV4.vue.js";
|
|
9
|
+
const K = ["data-testid"], A = /* @__PURE__ */ T({
|
|
9
10
|
__name: "SwitchV4",
|
|
10
11
|
props: {
|
|
11
12
|
options: null,
|
|
12
13
|
modelValue: null,
|
|
13
14
|
variant: { default: "default" },
|
|
14
15
|
testId: { default: "" },
|
|
15
|
-
iconKey: { default: "icon" }
|
|
16
|
+
iconKey: { default: "icon" },
|
|
17
|
+
tooltipTextKey: { default: "tooltipText" },
|
|
18
|
+
tooltipPlacement: { default: "top" }
|
|
16
19
|
},
|
|
17
20
|
emits: ["update:modelValue"],
|
|
18
21
|
setup(t, { emit: f }) {
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
n.value =
|
|
22
|
-
(e) => e ===
|
|
22
|
+
const i = t, n = h(), p = I(i, "modelValue", f), d = (e) => n.value === e;
|
|
23
|
+
k(() => {
|
|
24
|
+
n.value = i.options.findIndex(
|
|
25
|
+
(e) => e === i.modelValue
|
|
23
26
|
);
|
|
24
27
|
});
|
|
25
|
-
const
|
|
26
|
-
n.value = s,
|
|
28
|
+
const v = (e, s) => {
|
|
29
|
+
n.value = s, p.value = e;
|
|
27
30
|
};
|
|
28
|
-
return (e, s) => (
|
|
29
|
-
class:
|
|
30
|
-
"data-testid": `${t.testId}-${
|
|
31
|
+
return (e, s) => (c(), r("div", {
|
|
32
|
+
class: m(["switch", [`switch--variant-${t.variant}`]]),
|
|
33
|
+
"data-testid": `${t.testId}-${a(u).WRAPPER}`
|
|
31
34
|
}, [
|
|
32
|
-
(
|
|
33
|
-
key:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
(c(!0), r(x, null, V(t.options, (o, l) => (c(), w(a(B), {
|
|
36
|
+
key: l,
|
|
37
|
+
text: o[t.tooltipTextKey],
|
|
38
|
+
disabled: !o[t.tooltipTextKey],
|
|
39
|
+
placement: t.tooltipPlacement,
|
|
40
|
+
class: "option-wrapper"
|
|
41
|
+
}, {
|
|
42
|
+
default: y(() => [
|
|
43
|
+
C(a($), {
|
|
44
|
+
class: m(["option", { "option--selected": d(l) }]),
|
|
45
|
+
"icon-name": o[t.iconKey],
|
|
46
|
+
size: "small",
|
|
47
|
+
color: d(l) ? t.variant : "default",
|
|
48
|
+
"data-testid": `${t.testId}-${a(u).BUTTON}`,
|
|
49
|
+
onClick: (P) => v(o, l)
|
|
50
|
+
}, null, 8, ["class", "icon-name", "color", "data-testid", "onClick"])
|
|
51
|
+
]),
|
|
52
|
+
_: 2
|
|
53
|
+
}, 1032, ["text", "disabled", "placement"]))), 128))
|
|
54
|
+
], 10, K));
|
|
42
55
|
}
|
|
43
56
|
});
|
|
44
57
|
export {
|
|
45
|
-
|
|
58
|
+
A as default
|
|
46
59
|
};
|
|
@@ -8,6 +8,10 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
|
|
|
8
8
|
required: true;
|
|
9
9
|
default: string;
|
|
10
10
|
};
|
|
11
|
+
tooltipPlacement: {
|
|
12
|
+
type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
11
15
|
modelValue: {
|
|
12
16
|
type: import("vue").PropType<unknown>;
|
|
13
17
|
required: true;
|
|
@@ -20,6 +24,10 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
|
|
|
20
24
|
type: import("vue").PropType<string>;
|
|
21
25
|
default: string;
|
|
22
26
|
};
|
|
27
|
+
tooltipTextKey: {
|
|
28
|
+
type: import("vue").PropType<string>;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
23
31
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
32
|
"update:modelValue": (...args: any[]) => void;
|
|
25
33
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -32,6 +40,10 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
|
|
|
32
40
|
required: true;
|
|
33
41
|
default: string;
|
|
34
42
|
};
|
|
43
|
+
tooltipPlacement: {
|
|
44
|
+
type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
35
47
|
modelValue: {
|
|
36
48
|
type: import("vue").PropType<unknown>;
|
|
37
49
|
required: true;
|
|
@@ -44,12 +56,18 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
|
|
|
44
56
|
type: import("vue").PropType<string>;
|
|
45
57
|
default: string;
|
|
46
58
|
};
|
|
59
|
+
tooltipTextKey: {
|
|
60
|
+
type: import("vue").PropType<string>;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
47
63
|
}>> & {
|
|
48
64
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
49
65
|
}, {
|
|
50
66
|
testId: string;
|
|
51
67
|
variant: "default" | "primary";
|
|
68
|
+
tooltipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
52
69
|
iconKey: string;
|
|
70
|
+
tooltipTextKey: string;
|
|
53
71
|
}>[];
|
|
54
72
|
export { default as Switch } from './SwitchV4.vue';
|
|
55
73
|
export { SwitchTypes };
|
|
@@ -181,6 +181,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
181
181
|
isSelectionBordered: boolean;
|
|
182
182
|
}>, Partial<Record<`section-${string}`, (_: {}) => any>> & Partial<Record<`header-${string}`, (_: {
|
|
183
183
|
column: Column;
|
|
184
|
+
}) => any>> & Partial<Record<`after-header-${string}`, (_: {
|
|
185
|
+
column: Column;
|
|
184
186
|
}) => any>> & Partial<Record<`total-${string}`, (_: {
|
|
185
187
|
column: Column;
|
|
186
188
|
}) => any>> & Partial<Record<`cell-${string}`, (_: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DataGrid.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../DataGrid.
|
|
4
|
-
const s = /* @__PURE__ */
|
|
2
|
+
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DataGrid.vue_vue_type_style_index_0_scoped_b21a79b1_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-b21a79b1"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|