@ironsource/shared-ui 2.1.11-test.5 → 2.1.11-test.50
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_604dfc6f_lang.css +1 -0
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_1aa6df01_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_a1c626cd_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +1 -0
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_27802170_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css +1 -0
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css +1 -0
- package/EditableV4.vue_vue_type_style_index_0_scoped_1bbe222a_lang.css +1 -0
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +1 -0
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_383011d3_lang.css +1 -0
- package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +1 -0
- package/IconFlag.vue_vue_type_style_index_0_scoped_be9dc7bb_lang.css +1 -0
- package/InlineCopy.vue_vue_type_style_index_0_scoped_ad48b61e_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +1 -0
- package/README.md +4 -15
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_89fe8aa1_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_2ca7b24c_lang.css +1 -0
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +1 -0
- package/Typography.vue_vue_type_style_index_0_scoped_5714d43e_lang.css +1 -0
- package/components/autocomplete/Autocomplete.vue2.js +3 -2
- package/components/button/v4/ToggleButtonGroupAB.vue.d.ts +3 -1
- package/components/button/v4/ToggleButtonGroupAB.vue.js +2 -2
- package/components/button/v4/ToggleButtonGroupAB.vue2.js +44 -39
- package/components/button/v4/index.d.ts +9 -3
- package/components/chart/Chart.vue.d.ts +16 -3
- package/components/chart/Chart.vue.js +5 -5
- package/components/chart/Chart.vue2.js +127 -110
- package/components/chart/ChartHeader.vue.d.ts +13 -6
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +32 -29
- package/components/chart/ChartLegend.vue.d.ts +5 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +99 -49
- package/components/chart/ChartTooltip.vue.d.ts +4 -5
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +64 -43
- package/components/chart/SettingsHeader.vue2.js +3 -2
- package/components/chart/index.d.ts +55 -16
- package/components/chart/mockData.d.ts +15 -2
- package/components/chart/types.d.ts +15 -1
- package/components/chart/utils/utils.js +5 -5
- package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
- package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
- package/components/datePicker/v4/DatePickerV4.vue2.js +8 -7
- package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
- package/components/dateRange/v4/DateRangeV4.vue2.js +9 -9
- package/components/dialog/v4/DialogV4.vue.d.ts +15 -0
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +80 -73
- package/components/dialog/v4/index.d.ts +58 -1
- package/components/dropdown/common/Dropdown.common.js +200 -189
- package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
- package/components/dropdown/v3/index.d.ts +39 -39
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +15 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +42 -20
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +7 -7
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +10 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +88 -47
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +110 -0
- package/components/dropdown/v4/ConditionalDropdown.vue.js +7 -0
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +224 -0
- package/components/dropdown/v4/DropdownV4.vue.d.ts +32 -11
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +153 -138
- package/components/dropdown/v4/OptionV4.vue.d.ts +10 -0
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +135 -98
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +6 -1
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +165 -120
- package/components/dropdown/v4/index.d.ts +443 -110
- package/components/dropdown/v4/index.js +6 -3
- package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
- package/components/emptyState/v4/EmptyStateV4.vue2.js +1 -1
- package/components/filtersPanel/v4/FiltersPanelV4.vue.js +2 -2
- package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +8 -9
- package/components/forms/FormCard.vue.js +3 -3
- package/components/forms/FormCard.vue2.js +1 -1
- package/components/icon/v4/IconFlag.vue.js +3 -3
- package/components/icon/v4/IconFlag.vue2.js +1 -1
- package/components/icon/v4/consts.d.ts +1 -1
- package/components/icon/v4/consts.js +1 -1
- package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
- package/components/inlineCopy/InlineCopy.vue.js +2 -2
- package/components/inlineCopy/InlineCopy.vue2.js +24 -22
- package/components/inlineCopy/index.d.ts +9 -0
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +185 -165
- package/components/multibar/MultiBarMenu.vue2.js +3 -2
- package/components/popover/v4/PopoverV4.vue.d.ts +14 -2
- package/components/popover/v4/PopoverV4.vue.js +4 -3
- package/components/popover/v4/PopoverV4.vue2.js +40 -24
- package/components/popover/v4/index.d.ts +55 -11
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +7 -116
- package/components/snackbar/v4/SnackbarV4.vue.js +5 -5
- package/components/snackbar/v4/SnackbarV4.vue2.js +62 -60
- package/components/sortableList/SortableItem.vue.d.ts +5 -0
- package/components/sortableList/SortableItem.vue.js +2 -2
- package/components/sortableList/SortableItem.vue2.js +86 -70
- package/components/sortableList/SortableItemLabel.vue.js +3 -3
- package/components/sortableList/SortableItemLabel.vue2.js +20 -23
- package/components/sortableList/SortableList.vue.d.ts +17 -1
- package/components/sortableList/SortableList.vue.js +4 -4
- package/components/sortableList/SortableList.vue2.js +113 -94
- package/components/sortableList/index.d.ts +63 -5
- package/components/table/common/Table.common.d.ts +1 -1
- package/components/table/common/Table.common.js +83 -77
- package/components/table/common/Table.types.d.ts +1 -1
- package/components/table/common/consts.d.ts +4 -0
- package/components/table/common/consts.js +7 -0
- package/components/table/v3/Table.vue.d.ts +1 -1
- package/components/table/v3/index.d.ts +5 -5
- package/components/table/v4/DataGrid.vue.d.ts +12 -2
- package/components/table/v4/DataGrid.vue.js +2 -2
- package/components/table/v4/DataGrid.vue2.js +164 -155
- package/components/table/v4/DataGridMenu.vue.js +5 -5
- package/components/table/v4/DataGridMenu.vue2.js +4 -3
- package/components/table/v4/MultipleDataGrid.vue.d.ts +1 -1
- package/components/table/v4/index.d.ts +84 -46
- package/components/table-cells/common/Editable.common.js +29 -23
- package/components/table-cells/common/EditableContext.d.ts +1 -0
- package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
- package/components/table-cells/v4/EditableV4.vue.js +3 -3
- package/components/table-cells/v4/EditableV4.vue2.js +11 -10
- package/components/table-cells/v4/index.d.ts +20 -1
- package/components/tooltip/v4/TooltipV4.vue.d.ts +10 -0
- package/components/tooltip/v4/TooltipV4.vue.js +3 -3
- package/components/tooltip/v4/TooltipV4.vue2.js +24 -21
- package/components/tooltip/v4/index.d.ts +39 -1
- package/components/typography/v4/Typography.vue.js +3 -3
- package/components/typography/v4/Typography.vue2.js +24 -18
- package/design-foundation.stories/icons/iconsData.d.ts +1 -1
- package/index.d.ts +1626 -366
- package/index.js +1 -1
- package/mocks/options.d.ts +48 -6
- package/mocks/words.d.ts +1 -1
- package/package.json +2 -1
- package/style/v4/grid.css +1 -1
- package/style/v4/grid.css.map +1 -1
- package/style/v4/spacings.scss +1 -0
- package/testids/index.d.ts +2 -0
- package/testids/index.js +13 -13
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +0 -1
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +0 -1
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_8e5b619a_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_49bd7193_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +0 -1
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_a6e4672f_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_f81413ec_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_e899ec7a_lang.css +0 -1
- package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +0 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +0 -1
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css +0 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_c7965a69_lang.css +0 -1
- package/IconFlag.vue_vue_type_style_index_0_scoped_7b09cc85_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_4070942a_lang.css +0 -1
- package/PopoverV4.vue_vue_type_style_index_0_scoped_74bbce13_lang.css +0 -1
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_49c5ccea_lang.css +0 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +0 -1
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +0 -1
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_9d9e51c0_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_6ac5f602_lang.css +0 -1
- package/Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { format as
|
|
2
|
-
import { formatNumber as
|
|
1
|
+
import { format as n } from "date-fns";
|
|
2
|
+
import { formatNumber as d } from "./formatNumber.js";
|
|
3
3
|
const p = (r, t, e) => {
|
|
4
4
|
if (e === 0)
|
|
5
5
|
return 0;
|
|
6
|
-
const
|
|
7
|
-
return (
|
|
8
|
-
}, M = (r, t) => t === "number" ?
|
|
6
|
+
const f = t - r, o = f / e * 0.4;
|
|
7
|
+
return (f + o) / e;
|
|
8
|
+
}, M = (r, t) => t === "day" ? n(new Date(r), "EEEE") : t === "number" ? d(r) : t === "date" ? n(new Date(r), "MMM dd") : t === "dateLong" ? n(new Date(r), "MMM dd, yyyy") : String(r);
|
|
9
9
|
export {
|
|
10
10
|
p as calcStepSize,
|
|
11
11
|
M as formatValue
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./CheckboxV4.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../CheckboxV4.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-af4ae3c3"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
t as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../CheckboxV4.
|
|
1
|
+
import "../../../CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css"; import { defineComponent as D, openBlock as o, createElementBlock as f, mergeProps as a, unref as e, createElementVNode as u, Fragment as B, createBlock as n, createCommentVNode as c, withCtx as V, renderSlot as $, createTextVNode as F, toDisplayString as g, pushScopeId as A, popScopeId as T } from "vue";
|
|
2
2
|
import v from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import L from "./icons/UncheckedState.vue.js";
|
|
4
4
|
import N from "./icons/CheckedState.vue.js";
|
|
@@ -9,7 +9,7 @@ import K from "./icons/IndeterminateDisabledState.vue.js";
|
|
|
9
9
|
import { CheckboxTestIdModifiers as i } from "../../../testids/index.js";
|
|
10
10
|
import { checkboxCommon as R } from "../common/Checkbox.common.js";
|
|
11
11
|
import { useTestIdAttrs as U } from "../../../utils/testIds.js";
|
|
12
|
-
const M = (t) => (A("data-v-
|
|
12
|
+
const M = (t) => (A("data-v-af4ae3c3"), t = t(), T(), t), W = ["for"], j = { class: "checkboxes" }, q = ["id", "disabled", "checked", ".indeterminate"], z = /* @__PURE__ */ M(() => /* @__PURE__ */ u("span", { class: "checkbox__inner" }, null, -1)), G = { class: "states" }, le = /* @__PURE__ */ D({
|
|
13
13
|
__name: "CheckboxV4",
|
|
14
14
|
props: {
|
|
15
15
|
isChecked: { type: Boolean },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../../DatePickerV4.vue_vue_type_style_index_0_scoped_39e6c10c_lang.css"; import { defineComponent as g, openBlock as r, createElementBlock as i, unref as e, createElementVNode as D, renderSlot as v, createVNode as n, normalizeClass as I, createCommentVNode as P } from "vue";
|
|
2
2
|
import y from "./DatePickerMonthV4.vue.js";
|
|
3
|
-
import { DatePickerTestIdModifiers as
|
|
3
|
+
import { DatePickerTestIdModifiers as m } from "../../../testids/index.js";
|
|
4
4
|
import { dataPickerCommon as h } from "../common/DatePicker.common.js";
|
|
5
5
|
import "../../dropdown/v4/DropdownV4.vue.js";
|
|
6
6
|
import "../../dropdown/v4/DefaultDropdownTrigger.vue.js";
|
|
@@ -11,7 +11,8 @@ import "../../dropdown/v4/ButtonDropdownTrigger.vue.js";
|
|
|
11
11
|
import w from "../../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
|
|
12
12
|
import "../../dropdown/v4/TreeDropdown.vue.js";
|
|
13
13
|
import "../../dropdown/v4/OptionV4.vue.js";
|
|
14
|
-
|
|
14
|
+
import "../../dropdown/v4/ConditionalDropdown.vue.js";
|
|
15
|
+
const $ = ["id", "data-testid"], S = /* @__PURE__ */ g({
|
|
15
16
|
__name: "DatePickerV4",
|
|
16
17
|
props: {
|
|
17
18
|
uniqueId: { default: Date.now() },
|
|
@@ -22,7 +23,7 @@ const $ = ["id", "data-testid"], O = /* @__PURE__ */ g({
|
|
|
22
23
|
testId: { default: "" }
|
|
23
24
|
},
|
|
24
25
|
emits: ["update:modelValue"],
|
|
25
|
-
setup(t, { emit:
|
|
26
|
+
setup(t, { emit: u }) {
|
|
26
27
|
const s = t, {
|
|
27
28
|
toggle: p,
|
|
28
29
|
updateValue: f,
|
|
@@ -31,12 +32,12 @@ const $ = ["id", "data-testid"], O = /* @__PURE__ */ g({
|
|
|
31
32
|
formattedValue: d,
|
|
32
33
|
nearTheEdge: c,
|
|
33
34
|
valueAsDate: k
|
|
34
|
-
} = h(s,
|
|
35
|
+
} = h(s, u);
|
|
35
36
|
return (V, l) => (r(), i("div", {
|
|
36
37
|
id: e(o),
|
|
37
38
|
ref: "datePicker",
|
|
38
39
|
class: "date-picker",
|
|
39
|
-
"data-testid": `${t.testId}-${e(
|
|
40
|
+
"data-testid": `${t.testId}-${e(m).WRAPPER}`
|
|
40
41
|
}, [
|
|
41
42
|
D("div", {
|
|
42
43
|
ref: "buttonRef",
|
|
@@ -48,7 +49,7 @@ const $ = ["id", "data-testid"], O = /* @__PURE__ */ g({
|
|
|
48
49
|
"start-icon-name": "calendar-blank",
|
|
49
50
|
variant: "outlined",
|
|
50
51
|
style: { marginRight: "10px" },
|
|
51
|
-
"test-id": `${t.testId}-${e(
|
|
52
|
+
"test-id": `${t.testId}-${e(m).INPUT}`,
|
|
52
53
|
open: e(a)
|
|
53
54
|
}, null, 8, ["label", "test-id", "open"])
|
|
54
55
|
], !0)
|
|
@@ -70,5 +71,5 @@ const $ = ["id", "data-testid"], O = /* @__PURE__ */ g({
|
|
|
70
71
|
}
|
|
71
72
|
});
|
|
72
73
|
export {
|
|
73
|
-
|
|
74
|
+
S as default
|
|
74
75
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./DateRangeV4.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../DateRangeV4.
|
|
4
|
-
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-309e5351"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../../../DateRangeV4.
|
|
1
|
+
import "../../../DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css"; import { defineComponent as J, openBlock as n, createElementBlock as i, unref as e, normalizeClass as r, createElementVNode as d, renderSlot as N, createVNode as s, withDirectives as v, Fragment as k, renderList as C, withCtx as l, createTextVNode as m, toDisplayString as g, createCommentVNode as P, vShow as $, normalizeStyle as Q, setBlockTracking as x } from "vue";
|
|
2
2
|
import X from "./CalendarMonthV4.vue.js";
|
|
3
3
|
import { typeToName as Z, messagePerType as _ } from "../common/consts.common.js";
|
|
4
|
-
import
|
|
4
|
+
import E from "../../button/v4/ButtonV4.vue.js";
|
|
5
5
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
6
6
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
7
7
|
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
@@ -14,13 +14,14 @@ import "../../dropdown/v4/ButtonDropdownTrigger.vue.js";
|
|
|
14
14
|
import ee from "../../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
|
|
15
15
|
import "../../dropdown/v4/TreeDropdown.vue.js";
|
|
16
16
|
import "../../dropdown/v4/OptionV4.vue.js";
|
|
17
|
+
import "../../dropdown/v4/ConditionalDropdown.vue.js";
|
|
17
18
|
import { DateRangeTestIdModifiers as o, DatePickerTestIdModifiers as te } from "../../../testids/index.js";
|
|
18
19
|
import { dateRangeCommon as ae } from "../common/DateRange.common.js";
|
|
19
20
|
import p from "../../typography/v4/Typography.vue.js";
|
|
20
21
|
const de = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid"], se = {
|
|
21
22
|
key: 0,
|
|
22
23
|
class: "type-picker"
|
|
23
|
-
}, oe = ["onClick"], le = ["data-testid"], re = ["id"], ue = ["id"], ce = ["onClick"], me = { class: "dropdown-rightTriangle" }, pe = ["data-testid"], ye = { class: "date-picker-calendar left-box" }, ge = { class: "buttons-cover" }, fe = { class: "range" }, he = { class: "text-container" },
|
|
24
|
+
}, oe = ["onClick"], le = ["data-testid"], re = ["id"], ue = ["id"], ce = ["onClick"], me = { class: "dropdown-rightTriangle" }, pe = ["data-testid"], ye = { class: "date-picker-calendar left-box" }, ge = { class: "buttons-cover" }, fe = { class: "range" }, he = { class: "text-container" }, Le = /* @__PURE__ */ J({
|
|
24
25
|
__name: "DateRangeV4",
|
|
25
26
|
props: {
|
|
26
27
|
range: null,
|
|
@@ -47,7 +48,7 @@ const de = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid
|
|
|
47
48
|
"opened",
|
|
48
49
|
"dismissed"
|
|
49
50
|
],
|
|
50
|
-
setup(t, { emit:
|
|
51
|
+
setup(t, { emit: R }) {
|
|
51
52
|
const A = t, {
|
|
52
53
|
datePicker: B,
|
|
53
54
|
datePickerId: M,
|
|
@@ -72,7 +73,7 @@ const de = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid
|
|
|
72
73
|
selectionChanged: j,
|
|
73
74
|
toggle: b,
|
|
74
75
|
isCompact: H
|
|
75
|
-
} = ae(A,
|
|
76
|
+
} = ae(A, R);
|
|
76
77
|
return (D, u) => (n(), i("div", {
|
|
77
78
|
id: e(M),
|
|
78
79
|
ref_key: "datePicker",
|
|
@@ -93,7 +94,6 @@ const de = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid
|
|
|
93
94
|
label: e(w),
|
|
94
95
|
"start-icon-name": "calendar-blank",
|
|
95
96
|
variant: "outlined",
|
|
96
|
-
style: { marginRight: "10px" },
|
|
97
97
|
"test-id": `${t.testId}-${e(te).INPUT}`,
|
|
98
98
|
open: e(h)
|
|
99
99
|
}, null, 8, ["label", "test-id", "open"])
|
|
@@ -211,7 +211,7 @@ const de = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid
|
|
|
211
211
|
[$, e(q)]
|
|
212
212
|
]),
|
|
213
213
|
u[1] || (x(-1), u[1] = d("div", { class: "buttons" }, [
|
|
214
|
-
s(e(
|
|
214
|
+
s(e(E), {
|
|
215
215
|
id: "button-ok" + t.uniqueId,
|
|
216
216
|
size: "small",
|
|
217
217
|
class: "button",
|
|
@@ -229,7 +229,7 @@ const de = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid
|
|
|
229
229
|
]),
|
|
230
230
|
_: 1
|
|
231
231
|
}, 8, ["id", "data-testid", "onClick"]),
|
|
232
|
-
s(e(
|
|
232
|
+
s(e(E), {
|
|
233
233
|
id: "button-cancel" + t.uniqueId,
|
|
234
234
|
size: "small",
|
|
235
235
|
theme: "third",
|
|
@@ -261,5 +261,5 @@ const de = ["id", "data-testid"], ne = ["data-testid"], ie = ["id", "data-testid
|
|
|
261
261
|
}
|
|
262
262
|
});
|
|
263
263
|
export {
|
|
264
|
-
|
|
264
|
+
Le as default
|
|
265
265
|
};
|
|
@@ -13,6 +13,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
13
13
|
closeOnClickOutside?: boolean;
|
|
14
14
|
beforeClose?: (show: () => void) => void;
|
|
15
15
|
showCloseButton?: boolean;
|
|
16
|
+
showCancelButton?: boolean;
|
|
17
|
+
showSaveButton?: boolean;
|
|
16
18
|
showFooter?: boolean;
|
|
17
19
|
saveButtonLabel?: string;
|
|
18
20
|
saveButtonLoading?: boolean;
|
|
@@ -20,6 +22,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
20
22
|
cancelButtonLabel?: string;
|
|
21
23
|
cancelButtonColor?: string;
|
|
22
24
|
testId?: string;
|
|
25
|
+
noPadding?: boolean;
|
|
23
26
|
}>, {
|
|
24
27
|
content: any;
|
|
25
28
|
title: string;
|
|
@@ -31,6 +34,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
31
34
|
closeDelay: number;
|
|
32
35
|
closeOnClickOutside: boolean;
|
|
33
36
|
showCloseButton: boolean;
|
|
37
|
+
showCancelButton: boolean;
|
|
38
|
+
showSaveButton: boolean;
|
|
34
39
|
escapeToClose: boolean;
|
|
35
40
|
beforeClose: any;
|
|
36
41
|
showFooter: boolean;
|
|
@@ -40,6 +45,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
40
45
|
cancelButtonLabel: string;
|
|
41
46
|
cancelButtonColor: string;
|
|
42
47
|
testId: string;
|
|
48
|
+
noPadding: boolean;
|
|
43
49
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
44
50
|
"update:modelValue": (value: boolean) => void;
|
|
45
51
|
open: () => void;
|
|
@@ -60,6 +66,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
60
66
|
closeOnClickOutside?: boolean;
|
|
61
67
|
beforeClose?: (show: () => void) => void;
|
|
62
68
|
showCloseButton?: boolean;
|
|
69
|
+
showCancelButton?: boolean;
|
|
70
|
+
showSaveButton?: boolean;
|
|
63
71
|
showFooter?: boolean;
|
|
64
72
|
saveButtonLabel?: string;
|
|
65
73
|
saveButtonLoading?: boolean;
|
|
@@ -67,6 +75,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
67
75
|
cancelButtonLabel?: string;
|
|
68
76
|
cancelButtonColor?: string;
|
|
69
77
|
testId?: string;
|
|
78
|
+
noPadding?: boolean;
|
|
70
79
|
}>, {
|
|
71
80
|
content: any;
|
|
72
81
|
title: string;
|
|
@@ -78,6 +87,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
78
87
|
closeDelay: number;
|
|
79
88
|
closeOnClickOutside: boolean;
|
|
80
89
|
showCloseButton: boolean;
|
|
90
|
+
showCancelButton: boolean;
|
|
91
|
+
showSaveButton: boolean;
|
|
81
92
|
escapeToClose: boolean;
|
|
82
93
|
beforeClose: any;
|
|
83
94
|
showFooter: boolean;
|
|
@@ -87,6 +98,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
87
98
|
cancelButtonLabel: string;
|
|
88
99
|
cancelButtonColor: string;
|
|
89
100
|
testId: string;
|
|
101
|
+
noPadding: boolean;
|
|
90
102
|
}>>> & {
|
|
91
103
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
92
104
|
onClose?: (reason: Reason) => any;
|
|
@@ -107,12 +119,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
107
119
|
closeOnClickOutside: boolean;
|
|
108
120
|
beforeClose: (show: () => void) => void;
|
|
109
121
|
showCloseButton: boolean;
|
|
122
|
+
showCancelButton: boolean;
|
|
123
|
+
showSaveButton: boolean;
|
|
110
124
|
showFooter: boolean;
|
|
111
125
|
saveButtonLabel: string;
|
|
112
126
|
saveButtonLoading: boolean;
|
|
113
127
|
saveButtonColor: string;
|
|
114
128
|
cancelButtonLabel: string;
|
|
115
129
|
cancelButtonColor: string;
|
|
130
|
+
noPadding: boolean;
|
|
116
131
|
}>, {
|
|
117
132
|
header?(_: {}): any;
|
|
118
133
|
default?(_: {}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DialogV4.vue2.js";
|
|
2
2
|
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../DialogV4.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-37da643b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import "../../../DialogV4.
|
|
1
|
+
import "../../../DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css"; import { defineComponent as L, openBlock as o, createBlock as u, Teleport as E, createVNode as A, Transition as P, withCtx as i, unref as t, createElementBlock as m, createElementVNode as y, mergeProps as s, renderSlot as k, createTextVNode as f, toDisplayString as B, createCommentVNode as l } from "vue";
|
|
2
2
|
import { NOOP as I } from "@vue/shared";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import b from "../../typography/v4/Typography.vue.js";
|
|
4
|
+
import O from "../../button/v4/ButtonV4.vue.js";
|
|
5
|
+
import S from "../../button/v4/IconButtonV4.vue.js";
|
|
6
6
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
7
7
|
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
8
8
|
import { Reason as g } from "../common/Reason.js";
|
|
9
|
-
import { dialogCommon as
|
|
10
|
-
import { DialogTestIdModifiers as
|
|
11
|
-
import { useTestIdAttrs as
|
|
12
|
-
import { useMagicKeys as
|
|
13
|
-
const
|
|
9
|
+
import { dialogCommon as V } from "../common/Dialog.common.js";
|
|
10
|
+
import { DialogTestIdModifiers as a } from "../../../testids/index.js";
|
|
11
|
+
import { useTestIdAttrs as p } from "../../../utils/testIds.js";
|
|
12
|
+
import { useMagicKeys as D, whenever as R } from "@vueuse/core";
|
|
13
|
+
const $ = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "container light-theme-v4"
|
|
16
16
|
}, F = { class: "title" }, U = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "footer"
|
|
19
|
-
}, Y = /* @__PURE__ */
|
|
19
|
+
}, Y = /* @__PURE__ */ L({
|
|
20
20
|
__name: "DialogV4",
|
|
21
21
|
props: {
|
|
22
22
|
modelValue: { type: Boolean },
|
|
@@ -32,120 +32,127 @@ const S = {
|
|
|
32
32
|
closeOnClickOutside: { type: Boolean, default: !1 },
|
|
33
33
|
beforeClose: { type: Function, default: null },
|
|
34
34
|
showCloseButton: { type: Boolean, default: !0 },
|
|
35
|
+
showCancelButton: { type: Boolean, default: !0 },
|
|
36
|
+
showSaveButton: { type: Boolean, default: !0 },
|
|
35
37
|
showFooter: { type: Boolean, default: !0 },
|
|
36
38
|
saveButtonLabel: { default: "Save" },
|
|
37
39
|
saveButtonLoading: { type: Boolean, default: !1 },
|
|
38
40
|
saveButtonColor: { default: "primary" },
|
|
39
41
|
cancelButtonLabel: { default: "Cancel" },
|
|
40
42
|
cancelButtonColor: { default: "default" },
|
|
41
|
-
testId: { default: "" }
|
|
43
|
+
testId: { default: "" },
|
|
44
|
+
noPadding: { type: Boolean, default: !1 }
|
|
42
45
|
},
|
|
43
46
|
emits: ["update:modelValue", "open", "close", "save", "cancel"],
|
|
44
|
-
setup(
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
h.value &&
|
|
47
|
+
setup(e, { emit: C }) {
|
|
48
|
+
const r = e, { escape: w } = D(), n = p(r.testId, a), { visible: h, handleClose: v } = V(r, C);
|
|
49
|
+
R(w, () => {
|
|
50
|
+
h.value && r.escapeToClose && !r.saveButtonLoading && v(g.Escape);
|
|
48
51
|
});
|
|
49
|
-
const
|
|
50
|
-
const { closeOnClickOutside:
|
|
51
|
-
|
|
52
|
+
const N = () => {
|
|
53
|
+
const { closeOnClickOutside: c, saveButtonLoading: d } = r;
|
|
54
|
+
c && !d ? v(g.Backdrop) : I();
|
|
52
55
|
};
|
|
53
|
-
return (
|
|
56
|
+
return (c, d) => (o(), u(E, {
|
|
54
57
|
to: "body",
|
|
55
|
-
disabled: !
|
|
58
|
+
disabled: !e.appendToBody
|
|
56
59
|
}, [
|
|
57
|
-
|
|
58
|
-
default:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
class: ["dialog", [`dialog--${
|
|
62
|
-
},
|
|
63
|
-
|
|
60
|
+
A(P, null, {
|
|
61
|
+
default: i(() => [
|
|
62
|
+
t(h) ? (o(), m("div", $, [
|
|
63
|
+
y("div", s({
|
|
64
|
+
class: ["dialog", [`dialog--${e.size}`]]
|
|
65
|
+
}, t(n)[t(a).WRAPPER]), [
|
|
66
|
+
e.title || e.subtitle || e.showCloseButton ? (o(), m("header", s({
|
|
64
67
|
key: 0,
|
|
65
68
|
class: "header"
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
k(
|
|
69
|
-
|
|
69
|
+
}, t(n)[t(a).HEADER]), [
|
|
70
|
+
y("div", F, [
|
|
71
|
+
k(c.$slots, "header", {}, () => [
|
|
72
|
+
e.title ? (o(), u(t(b), {
|
|
70
73
|
key: 0,
|
|
71
74
|
variant: "h3"
|
|
72
75
|
}, {
|
|
73
|
-
default:
|
|
74
|
-
f(B(
|
|
76
|
+
default: i(() => [
|
|
77
|
+
f(B(e.title), 1)
|
|
75
78
|
]),
|
|
76
79
|
_: 1
|
|
77
|
-
})) :
|
|
78
|
-
|
|
80
|
+
})) : l("", !0),
|
|
81
|
+
e.subtitle ? (o(), u(t(b), {
|
|
79
82
|
key: 1,
|
|
80
83
|
class: "subtitle",
|
|
81
84
|
variant: "body1"
|
|
82
85
|
}, {
|
|
83
|
-
default:
|
|
84
|
-
f(B(
|
|
86
|
+
default: i(() => [
|
|
87
|
+
f(B(e.subtitle), 1)
|
|
85
88
|
]),
|
|
86
89
|
_: 1
|
|
87
|
-
})) :
|
|
90
|
+
})) : l("", !0)
|
|
88
91
|
], !0)
|
|
89
92
|
]),
|
|
90
|
-
|
|
93
|
+
e.showCloseButton ? (o(), u(t(S), s({
|
|
91
94
|
key: 0,
|
|
92
95
|
class: "close-button",
|
|
93
96
|
"icon-name": "x",
|
|
94
|
-
disabled:
|
|
95
|
-
},
|
|
96
|
-
onClick:
|
|
97
|
-
}), null, 16, ["disabled"])) :
|
|
98
|
-
], 16)) :
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
97
|
+
disabled: e.saveButtonLoading
|
|
98
|
+
}, t(n)[t(a).ACTION_CLOSE], {
|
|
99
|
+
onClick: d[0] || (d[0] = (T) => t(v)(t(g).CloseButton))
|
|
100
|
+
}), null, 16, ["disabled"])) : l("", !0)
|
|
101
|
+
], 16)) : l("", !0),
|
|
102
|
+
y("div", s({
|
|
103
|
+
class: ["content", { "content--no-padding": e.noPadding }]
|
|
104
|
+
}, t(n)[t(a).CONTENT]), [
|
|
105
|
+
k(c.$slots, "default", {}, () => [
|
|
106
|
+
e.content ? (o(), u(t(b), {
|
|
102
107
|
key: 0,
|
|
103
108
|
variant: "body1"
|
|
104
109
|
}, {
|
|
105
|
-
default:
|
|
106
|
-
f(B(
|
|
110
|
+
default: i(() => [
|
|
111
|
+
f(B(e.content), 1)
|
|
107
112
|
]),
|
|
108
113
|
_: 1
|
|
109
|
-
})) :
|
|
114
|
+
})) : l("", !0)
|
|
110
115
|
], !0)
|
|
111
116
|
], 16),
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
k(
|
|
115
|
-
|
|
117
|
+
e.showFooter ? (o(), m("footer", U, [
|
|
118
|
+
y("div", s({ class: "action-buttons" }, t(n)[t(a).ACTION_BUTTONS_WRAPPER]), [
|
|
119
|
+
k(c.$slots, "footer", {}, () => [
|
|
120
|
+
e.showCancelButton ? (o(), u(t(O), s({
|
|
121
|
+
key: 0,
|
|
116
122
|
class: "form-action",
|
|
117
123
|
variant: "outlined",
|
|
118
|
-
color:
|
|
119
|
-
disabled:
|
|
120
|
-
},
|
|
121
|
-
onClick:
|
|
124
|
+
color: e.cancelButtonColor,
|
|
125
|
+
disabled: e.saveButtonLoading
|
|
126
|
+
}, t(n)[t(a).CANCEL_BUTTON], {
|
|
127
|
+
onClick: d[1] || (d[1] = (T) => C("cancel"))
|
|
122
128
|
}), {
|
|
123
|
-
default:
|
|
124
|
-
f(B(
|
|
129
|
+
default: i(() => [
|
|
130
|
+
f(B(e.cancelButtonLabel), 1)
|
|
125
131
|
]),
|
|
126
132
|
_: 1
|
|
127
|
-
}, 16, ["color", "disabled"]),
|
|
128
|
-
|
|
133
|
+
}, 16, ["color", "disabled"])) : l("", !0),
|
|
134
|
+
e.showSaveButton ? (o(), u(t(O), s({
|
|
135
|
+
key: 1,
|
|
129
136
|
class: "form-action",
|
|
130
|
-
loading:
|
|
131
|
-
color:
|
|
132
|
-
},
|
|
133
|
-
onClick:
|
|
137
|
+
loading: e.saveButtonLoading,
|
|
138
|
+
color: e.saveButtonColor
|
|
139
|
+
}, t(n)[t(a).SAVE_BUTTON], {
|
|
140
|
+
onClick: d[2] || (d[2] = (T) => C("save"))
|
|
134
141
|
}), {
|
|
135
|
-
default:
|
|
136
|
-
f(B(
|
|
142
|
+
default: i(() => [
|
|
143
|
+
f(B(e.saveButtonLabel), 1)
|
|
137
144
|
]),
|
|
138
145
|
_: 1
|
|
139
|
-
}, 16, ["loading", "color"])
|
|
146
|
+
}, 16, ["loading", "color"])) : l("", !0)
|
|
140
147
|
], !0)
|
|
141
148
|
], 16)
|
|
142
|
-
])) :
|
|
149
|
+
])) : l("", !0)
|
|
143
150
|
], 16),
|
|
144
|
-
|
|
151
|
+
e.showBackdrop ? (o(), m("div", s({
|
|
145
152
|
key: 0,
|
|
146
153
|
class: "dialog-backdrop"
|
|
147
|
-
},
|
|
148
|
-
])) :
|
|
154
|
+
}, t(n)[t(a).BACKDROP], { onClick: N }), null, 16)) : l("", !0)
|
|
155
|
+
])) : l("", !0)
|
|
149
156
|
]),
|
|
150
157
|
_: 3
|
|
151
158
|
})
|