@ironsource/shared-ui 2.1.6-rc.42 → 2.1.6-rc.44
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/CalendarMonth.vue_vue_type_style_index_0_scoped_acd3440c_lang.css +1 -0
- package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_b0d3ea50_lang.css +1 -0
- package/DatePicker.vue_vue_type_style_index_0_scoped_67b44cbe_lang.css +1 -0
- package/DatePickerMonth.vue_vue_type_style_index_0_scoped_929d3028_lang.css +1 -0
- package/DatePickerMonthV4.vue_vue_type_style_index_0_scoped_11288104_lang.css +1 -0
- package/DatePickerV4.vue_vue_type_style_index_0_scoped_39e6c10c_lang.css +1 -0
- package/DateRange.vue_vue_type_style_index_0_scoped_70e316e9_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_f81413ec_lang.css +1 -0
- package/{FormCard.vue_vue_type_style_index_0_scoped_52ade67c_lang.css → FormCard.vue_vue_type_style_index_0_scoped_c7965a69_lang.css} +1 -1
- package/README.md +35 -0
- package/components/datePicker/common/DatePicker.common.d.ts +11 -0
- package/components/datePicker/common/DatePicker.common.js +52 -0
- package/components/datePicker/common/DatePickerMonth.common.d.ts +85 -0
- package/components/datePicker/common/DatePickerMonth.common.js +66 -0
- package/components/datePicker/{DatePicker.vue.d.ts → v3/DatePicker.vue.d.ts} +1 -1
- package/components/datePicker/v3/DatePicker.vue.js +7 -0
- package/components/datePicker/v3/DatePicker.vue2.js +69 -0
- package/components/datePicker/v3/DatePickerMonth.vue.js +7 -0
- package/components/datePicker/v3/DatePickerMonth.vue2.js +40 -0
- package/components/datePicker/{index.d.ts → v3/index.d.ts} +3 -3
- package/components/datePicker/v4/DatePickerMonthV4.vue.d.ts +53 -0
- package/components/datePicker/v4/DatePickerMonthV4.vue.js +7 -0
- package/components/datePicker/v4/DatePickerMonthV4.vue2.js +40 -0
- package/components/datePicker/v4/DatePickerV4.vue.d.ts +67 -0
- package/components/datePicker/v4/DatePickerV4.vue.js +7 -0
- package/components/datePicker/v4/DatePickerV4.vue2.js +74 -0
- package/components/datePicker/v4/index.d.ts +184 -0
- package/components/datePicker/v4/index.js +6 -0
- package/components/dateRange/common/CalendarMonth.common.d.ts +17 -0
- package/components/dateRange/common/CalendarMonth.common.js +131 -0
- package/components/dateRange/common/DateRange.common.d.ts +47 -0
- package/components/dateRange/common/DateRange.common.js +265 -0
- package/components/dateRange/common/DateRangePicker.common.d.ts +3 -0
- package/components/dateRange/{DateServices.d.ts → common/DateServices.common.d.ts} +1 -0
- package/components/dateRange/common/DateServices.common.js +248 -0
- package/components/dateRange/common/consts.common.js +75 -0
- package/components/dateRange/{CalendarMonth.vue.d.ts → v3/CalendarMonth.vue.d.ts} +1 -1
- package/components/dateRange/v3/CalendarMonth.vue.js +7 -0
- package/components/dateRange/v3/CalendarMonth.vue2.js +147 -0
- package/components/dateRange/{DateRange.vue.d.ts → v3/DateRange.vue.d.ts} +9 -9
- package/components/dateRange/v3/DateRange.vue.js +7 -0
- package/components/dateRange/v3/DateRange.vue2.js +226 -0
- package/components/dateRange/{DateRangePicker.vue.d.ts → v3/DateRangePicker.vue.d.ts} +9 -9
- package/components/dateRange/{index.d.ts → v3/index.d.ts} +21 -21
- package/components/dateRange/v4/CalendarMonthV4.vue.d.ts +75 -0
- package/components/dateRange/v4/CalendarMonthV4.vue.js +7 -0
- package/components/dateRange/v4/CalendarMonthV4.vue2.js +132 -0
- package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +115 -0
- package/components/dateRange/v4/DateRangeV4.vue.d.ts +127 -0
- package/components/dateRange/v4/DateRangeV4.vue.js +7 -0
- package/components/dateRange/v4/DateRangeV4.vue2.js +263 -0
- package/components/dateRange/v4/index.d.ts +408 -0
- package/components/dateRange/v4/index.js +6 -0
- package/components/filtersPanel/v3/Filter.d.ts +1 -1
- package/components/forms/FormCard.vue.d.ts +5 -0
- package/components/forms/FormCard.vue.js +3 -3
- package/components/forms/FormCard.vue2.js +23 -22
- package/components/forms/index.d.ts +20 -1
- package/index.d.ts +1176 -2
- package/index.js +116 -116
- package/package.json +13 -5
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_b2206adb_lang.css +0 -1
- package/DatePicker.vue_vue_type_style_index_0_scoped_e108ef3b_lang.css +0 -1
- package/DatePickerMonth.vue_vue_type_style_index_0_scoped_b171cdab_lang.css +0 -1
- package/DateRange.vue_vue_type_style_index_0_scoped_eb5d155e_lang.css +0 -1
- package/components/datePicker/DatePicker.vue.js +0 -7
- package/components/datePicker/DatePicker.vue2.js +0 -97
- package/components/datePicker/DatePickerMonth.vue.js +0 -7
- package/components/datePicker/DatePickerMonth.vue2.js +0 -85
- package/components/dateRange/CalendarMonth.vue.js +0 -7
- package/components/dateRange/CalendarMonth.vue2.js +0 -244
- package/components/dateRange/DateRange.vue.js +0 -7
- package/components/dateRange/DateRange.vue2.js +0 -417
- package/components/dateRange/DateServices.js +0 -245
- package/components/dateRange/consts.js +0 -79
- /package/components/datePicker/{DatePickerMonth.vue.d.ts → v3/DatePickerMonth.vue.d.ts} +0 -0
- /package/components/datePicker/{index.js → v3/index.js} +0 -0
- /package/components/dateRange/{consts.d.ts → common/consts.common.d.ts} +0 -0
- /package/components/dateRange/{index.js → v3/index.js} +0 -0
|
@@ -5,6 +5,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
5
5
|
saveLabel?: string;
|
|
6
6
|
cancelLabel?: string;
|
|
7
7
|
saveLoading?: boolean;
|
|
8
|
+
saveDisabled?: boolean;
|
|
8
9
|
testId?: string;
|
|
9
10
|
isLoading?: boolean;
|
|
10
11
|
}>, {
|
|
@@ -14,6 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
14
15
|
cancelLabel: string;
|
|
15
16
|
saveLabel: string;
|
|
16
17
|
saveLoading: boolean;
|
|
18
|
+
saveDisabled: boolean;
|
|
17
19
|
testId: string;
|
|
18
20
|
isLoading: boolean;
|
|
19
21
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -26,6 +28,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
26
28
|
saveLabel?: string;
|
|
27
29
|
cancelLabel?: string;
|
|
28
30
|
saveLoading?: boolean;
|
|
31
|
+
saveDisabled?: boolean;
|
|
29
32
|
testId?: string;
|
|
30
33
|
isLoading?: boolean;
|
|
31
34
|
}>, {
|
|
@@ -35,6 +38,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
35
38
|
cancelLabel: string;
|
|
36
39
|
saveLabel: string;
|
|
37
40
|
saveLoading: boolean;
|
|
41
|
+
saveDisabled: boolean;
|
|
38
42
|
testId: string;
|
|
39
43
|
isLoading: boolean;
|
|
40
44
|
}>>> & {
|
|
@@ -49,6 +53,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
49
53
|
saveLabel: string;
|
|
50
54
|
cancelLabel: string;
|
|
51
55
|
saveLoading: boolean;
|
|
56
|
+
saveDisabled: boolean;
|
|
52
57
|
}>, {
|
|
53
58
|
header?(_: {}): any;
|
|
54
59
|
default?(_: {}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./FormCard.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../FormCard.
|
|
4
|
-
const t = /* @__PURE__ */
|
|
2
|
+
/* empty css */import _ from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../FormCard.vue_vue_type_style_index_0_scoped_c7965a69_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ _(o, [["__scopeId", "data-v-c7965a69"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "../../FormCard.
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import "../../FormCard.vue_vue_type_style_index_0_scoped_c7965a69_lang.css"; import { defineComponent as B, openBlock as d, createElementBlock as c, createElementVNode as f, mergeProps as n, unref as e, renderSlot as u, createVNode as a, withCtx as m, createTextVNode as g, toDisplayString as v, createBlock as T, createCommentVNode as C } from "vue";
|
|
2
|
+
import b from "../typography/v4/Typography.vue.js";
|
|
3
|
+
import k from "../button/v4/ButtonV4.vue.js";
|
|
4
4
|
import "../button/v4/IconButtonV4.vue.js";
|
|
5
5
|
import { FormCardTestIdModifiers as o } from "../../testids/index.js";
|
|
6
|
-
import { useTestIdAttrs as
|
|
6
|
+
import { useTestIdAttrs as N } from "../../utils/testIds.js";
|
|
7
7
|
import i from "../skeleton/v4/SkeletonV4.vue.js";
|
|
8
8
|
const h = { class: "form-card" }, p = {
|
|
9
9
|
key: 1,
|
|
10
10
|
class: "content-skeleton-container"
|
|
11
|
-
},
|
|
11
|
+
}, P = /* @__PURE__ */ B({
|
|
12
12
|
__name: "FormCard",
|
|
13
13
|
props: {
|
|
14
14
|
title: { default: "" },
|
|
@@ -17,22 +17,23 @@ const h = { class: "form-card" }, p = {
|
|
|
17
17
|
saveLabel: { default: "Save" },
|
|
18
18
|
cancelLabel: { default: "Cancel" },
|
|
19
19
|
saveLoading: { type: Boolean, default: !1 },
|
|
20
|
+
saveDisabled: { type: Boolean, default: !1 },
|
|
20
21
|
testId: { default: "" },
|
|
21
22
|
isLoading: { type: Boolean, default: !1 }
|
|
22
23
|
},
|
|
23
24
|
emits: ["save", "cancel"],
|
|
24
|
-
setup(t, { emit:
|
|
25
|
-
const
|
|
25
|
+
setup(t, { emit: y }) {
|
|
26
|
+
const l = N(t.testId, o);
|
|
26
27
|
return (r, s) => (d(), c("div", null, [
|
|
27
28
|
f("div", h, [
|
|
28
|
-
f("header",
|
|
29
|
-
t.isLoading ? (d(),
|
|
29
|
+
f("header", n({ class: "card-header" }, e(l)[e(o).TITLE]), [
|
|
30
|
+
t.isLoading ? (d(), T(e(i), {
|
|
30
31
|
key: 1,
|
|
31
32
|
type: "rectangle",
|
|
32
33
|
size: 20,
|
|
33
34
|
class: "skeleton-header"
|
|
34
35
|
})) : u(r.$slots, "header", { key: 0 }, () => [
|
|
35
|
-
a(e(
|
|
36
|
+
a(e(b), { variant: "h3" }, {
|
|
36
37
|
default: m(() => [
|
|
37
38
|
g(v(t.title), 1)
|
|
38
39
|
]),
|
|
@@ -40,9 +41,9 @@ const h = { class: "form-card" }, p = {
|
|
|
40
41
|
})
|
|
41
42
|
], !0)
|
|
42
43
|
], 16),
|
|
43
|
-
f("div",
|
|
44
|
+
f("div", n({
|
|
44
45
|
class: ["card-content", { "card-content--no-padding": t.noPadding }]
|
|
45
|
-
}, e(
|
|
46
|
+
}, e(l)[e(o).CONTENT]), [
|
|
46
47
|
t.isLoading ? (d(), c("div", p, [
|
|
47
48
|
a(e(i), {
|
|
48
49
|
type: "rectangle",
|
|
@@ -60,30 +61,30 @@ const h = { class: "form-card" }, p = {
|
|
|
60
61
|
])) : u(r.$slots, "default", { key: 0 }, void 0, !0)
|
|
61
62
|
], 16)
|
|
62
63
|
]),
|
|
63
|
-
t.actionButtons ? (d(), c("div",
|
|
64
|
+
t.actionButtons ? (d(), c("div", n({
|
|
64
65
|
key: 0,
|
|
65
66
|
class: "form-actions"
|
|
66
|
-
}, e(
|
|
67
|
+
}, e(l)[e(o).ACTIONS]), [
|
|
67
68
|
u(r.$slots, "footer", {}, () => [
|
|
68
|
-
a(e(
|
|
69
|
+
a(e(k), n({
|
|
69
70
|
class: "form-action",
|
|
70
71
|
variant: "outlined",
|
|
71
72
|
color: "default"
|
|
72
|
-
}, e(
|
|
73
|
+
}, e(l)[e(o).CANCEL_BUTTON], {
|
|
73
74
|
disabled: t.isLoading || t.saveLoading,
|
|
74
|
-
onClick: s[0] || (s[0] = (L) =>
|
|
75
|
+
onClick: s[0] || (s[0] = (L) => y("cancel"))
|
|
75
76
|
}), {
|
|
76
77
|
default: m(() => [
|
|
77
78
|
g(v(t.cancelLabel), 1)
|
|
78
79
|
]),
|
|
79
80
|
_: 1
|
|
80
81
|
}, 16, ["disabled"]),
|
|
81
|
-
a(e(
|
|
82
|
+
a(e(k), n({
|
|
82
83
|
class: "form-action",
|
|
83
84
|
loading: t.saveLoading
|
|
84
|
-
}, e(
|
|
85
|
-
disabled: t.isLoading,
|
|
86
|
-
onClick: s[1] || (s[1] = (L) =>
|
|
85
|
+
}, e(l)[e(o).SAVE_BUTTON], {
|
|
86
|
+
disabled: t.saveDisabled || t.isLoading,
|
|
87
|
+
onClick: s[1] || (s[1] = (L) => y("save"))
|
|
87
88
|
}), {
|
|
88
89
|
default: m(() => [
|
|
89
90
|
g(v(t.saveLabel), 1)
|
|
@@ -96,5 +97,5 @@ const h = { class: "form-card" }, p = {
|
|
|
96
97
|
}
|
|
97
98
|
});
|
|
98
99
|
export {
|
|
99
|
-
|
|
100
|
+
P as default
|
|
100
101
|
};
|
|
@@ -163,6 +163,7 @@ declare const FormCardTypes: () => (({
|
|
|
163
163
|
saveLabel: string;
|
|
164
164
|
cancelLabel: string;
|
|
165
165
|
saveLoading: boolean;
|
|
166
|
+
saveDisabled: boolean;
|
|
166
167
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
167
168
|
title: {
|
|
168
169
|
type: import("vue").PropType<string>;
|
|
@@ -196,10 +197,14 @@ declare const FormCardTypes: () => (({
|
|
|
196
197
|
type: import("vue").PropType<boolean>;
|
|
197
198
|
default: boolean;
|
|
198
199
|
};
|
|
200
|
+
saveDisabled: {
|
|
201
|
+
type: import("vue").PropType<boolean>;
|
|
202
|
+
default: boolean;
|
|
203
|
+
};
|
|
199
204
|
}>> & {
|
|
200
205
|
onCancel?: () => any;
|
|
201
206
|
onSave?: () => any;
|
|
202
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "testId" | "actionButtons" | "isLoading" | "noPadding" | "saveLabel" | "cancelLabel" | "saveLoading">;
|
|
207
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "testId" | "actionButtons" | "isLoading" | "noPadding" | "saveLabel" | "cancelLabel" | "saveLoading" | "saveDisabled">;
|
|
203
208
|
$attrs: {
|
|
204
209
|
[x: string]: unknown;
|
|
205
210
|
};
|
|
@@ -246,6 +251,10 @@ declare const FormCardTypes: () => (({
|
|
|
246
251
|
type: import("vue").PropType<boolean>;
|
|
247
252
|
default: boolean;
|
|
248
253
|
};
|
|
254
|
+
saveDisabled: {
|
|
255
|
+
type: import("vue").PropType<boolean>;
|
|
256
|
+
default: boolean;
|
|
257
|
+
};
|
|
249
258
|
}>> & {
|
|
250
259
|
onCancel?: () => any;
|
|
251
260
|
onSave?: () => any;
|
|
@@ -261,6 +270,7 @@ declare const FormCardTypes: () => (({
|
|
|
261
270
|
saveLabel: string;
|
|
262
271
|
cancelLabel: string;
|
|
263
272
|
saveLoading: boolean;
|
|
273
|
+
saveDisabled: boolean;
|
|
264
274
|
}, {}, string> & {
|
|
265
275
|
beforeCreate?: (() => void) | (() => void)[];
|
|
266
276
|
created?: (() => void) | (() => void)[];
|
|
@@ -314,6 +324,10 @@ declare const FormCardTypes: () => (({
|
|
|
314
324
|
type: import("vue").PropType<boolean>;
|
|
315
325
|
default: boolean;
|
|
316
326
|
};
|
|
327
|
+
saveDisabled: {
|
|
328
|
+
type: import("vue").PropType<boolean>;
|
|
329
|
+
default: boolean;
|
|
330
|
+
};
|
|
317
331
|
}>> & {
|
|
318
332
|
onCancel?: () => any;
|
|
319
333
|
onSave?: () => any;
|
|
@@ -354,6 +368,10 @@ declare const FormCardTypes: () => (({
|
|
|
354
368
|
type: import("vue").PropType<boolean>;
|
|
355
369
|
default: boolean;
|
|
356
370
|
};
|
|
371
|
+
saveDisabled: {
|
|
372
|
+
type: import("vue").PropType<boolean>;
|
|
373
|
+
default: boolean;
|
|
374
|
+
};
|
|
357
375
|
}>> & {
|
|
358
376
|
onCancel?: () => any;
|
|
359
377
|
onSave?: () => any;
|
|
@@ -369,6 +387,7 @@ declare const FormCardTypes: () => (({
|
|
|
369
387
|
saveLabel: string;
|
|
370
388
|
cancelLabel: string;
|
|
371
389
|
saveLoading: boolean;
|
|
390
|
+
saveDisabled: boolean;
|
|
372
391
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
373
392
|
$slots: {
|
|
374
393
|
header?(_: {}): any;
|