@ironsource/shared-ui 2.1.12-test.98 → 2.1.12
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/Chart.vue_vue_type_style_index_0_scoped_060d02be_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css +1 -0
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ca558859_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_9c4df598_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css +1 -0
- package/ColumnConfigurator.vue_vue_type_style_index_0_scoped_702ad52e_lang.css +1 -0
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8cc86a27_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_cd41c5ca_lang.css +1 -0
- package/DataGridContainer.vue_vue_type_style_index_0_scoped_9a30b10c_lang.css +1 -0
- package/DataGridHeader.vue_vue_type_style_index_0_scoped_0e826456_lang.css +1 -0
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_e38c881a_lang.css +1 -0
- package/DialogFooter.vue_vue_type_style_index_0_scoped_8b7f64fe_lang.css +1 -0
- package/DialogHeader.vue_vue_type_style_index_0_scoped_9a814ec3_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_a594c97e_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css +1 -0
- package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +1 -0
- package/LoaderBars.vue_vue_type_style_index_0_scoped_d976ec65_lang.css +1 -0
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_lang.css +1 -0
- package/OptionChip.vue_vue_type_style_index_0_scoped_538e4a21_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +1 -0
- package/RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css +1 -0
- package/RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css +1 -0
- package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +1 -0
- package/SectionHeaderText.vue_vue_type_style_index_0_scoped_0b8d3d79_lang.css +1 -0
- package/{SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css → SettingsHeader.vue_vue_type_style_index_0_scoped_a869d327_lang.css} +1 -1
- package/ShowMoreLink.vue_vue_type_style_index_0_scoped_9fc3bc1b_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_lang.css +1 -0
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_a534c7af_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_9aec4e9b_lang.css +1 -0
- package/SortableSelectableList.vue_vue_type_style_index_0_scoped_40b0a4de_lang.css +1 -0
- package/TagsField.vue_vue_type_style_index_0_scoped_9760426b_lang.css +1 -0
- package/TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +1 -0
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_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_63dc057e_lang.css +1 -0
- package/components/chart/Chart.vue.d.ts +21 -1
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +130 -114
- package/components/chart/ChartHeader.vue.d.ts +5 -0
- package/components/chart/ChartHeader.vue.js +3 -3
- package/components/chart/ChartHeader.vue2.js +49 -44
- package/components/chart/ChartHeaderTrend.vue.d.ts +5 -0
- package/components/chart/ChartHeaderTrend.vue.js +2 -2
- package/components/chart/ChartHeaderTrend.vue2.js +43 -39
- package/components/chart/ChartLegend.vue.d.ts +5 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +76 -71
- package/components/chart/ChartPlane.vue.d.ts +15 -0
- package/components/chart/ChartPlane.vue.js +5 -5
- package/components/chart/ChartPlane.vue2.js +173 -156
- package/components/chart/ChartStoryArgs.d.ts +17 -0
- package/components/chart/ChartTooltip.vue.d.ts +5 -0
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +39 -35
- package/components/chart/LegendSorting.vue.d.ts +5 -0
- package/components/chart/LegendSorting.vue.js +16 -14
- package/components/chart/SettingsHeader.vue.d.ts +19 -3
- package/components/chart/SettingsHeader.vue.js +3 -3
- package/components/chart/SettingsHeader.vue2.js +36 -29
- package/components/chart/TooltipHeader.vue.js +3 -3
- package/components/chart/TooltipHeader.vue2.js +26 -26
- package/components/chart/colorPalette.d.ts +2 -1
- package/components/chart/colorPalette.js +47 -33
- package/components/chart/composables/useColorsMap.d.ts +3 -1
- package/components/chart/composables/useColorsMap.js +32 -30
- package/components/chart/consts.d.ts +5 -1
- package/components/chart/consts.js +30 -26
- package/components/chart/index.d.ts +77 -1
- package/components/chart/mockData.d.ts +15 -0
- package/components/chart/types.d.ts +3 -1
- package/components/chart/types.js +5 -5
- package/components/chart/utils/utils.d.ts +1 -1
- package/components/chart/utils/utils.js +20 -14
- package/components/columnConfigurator/ColumnConfigurator.types.d.ts +12 -0
- package/components/columnConfigurator/ColumnConfigurator.vue.d.ts +61 -0
- package/components/columnConfigurator/ColumnConfigurator.vue.js +7 -0
- package/components/columnConfigurator/ColumnConfigurator.vue2.js +113 -0
- package/components/columnConfigurator/SectionDropdown.vue.d.ts +39 -0
- package/components/columnConfigurator/SectionDropdown.vue.js +7 -0
- package/components/columnConfigurator/SectionDropdown.vue2.js +57 -0
- package/components/columnConfigurator/SectionHeaderText.vue.d.ts +34 -0
- package/components/columnConfigurator/SectionHeaderText.vue.js +7 -0
- package/components/columnConfigurator/SectionHeaderText.vue2.js +22 -0
- package/components/columnConfigurator/ShowMoreLink.vue.d.ts +33 -0
- package/components/columnConfigurator/ShowMoreLink.vue.js +7 -0
- package/components/columnConfigurator/ShowMoreLink.vue2.js +41 -0
- package/components/columnConfigurator/consts.d.ts +1 -0
- package/components/columnConfigurator/consts.js +4 -0
- package/components/columnConfigurator/index.d.ts +73 -0
- package/components/columnConfigurator/index.js +6 -0
- package/components/columnConfigurator/mockData.d.ts +30 -0
- package/components/columnConfigurator/utils.d.ts +2 -0
- package/components/columnConfigurator/utils.js +18 -0
- package/components/columnPicker/ColumnPicker.vue.d.ts +119 -0
- package/components/columnPicker/ColumnPicker.vue.js +7 -0
- package/components/columnPicker/ColumnPicker.vue2.js +322 -0
- package/components/columnPicker/OptionChip.vue.d.ts +53 -0
- package/components/columnPicker/OptionChip.vue.js +7 -0
- package/components/columnPicker/OptionChip.vue2.js +46 -0
- package/components/columnPicker/RemoveButton.vue.d.ts +38 -0
- package/components/columnPicker/RemoveButton.vue.js +7 -0
- package/components/columnPicker/RemoveButton.vue2.js +35 -0
- package/components/columnPicker/index.d.ts +388 -0
- package/components/columnPicker/index.js +6 -0
- package/components/columnPicker/mockData.d.ts +8 -0
- package/components/dateRange/common/DateRange.common.js +60 -60
- package/components/dialog/v3/Dialog.vue.d.ts +3 -3
- package/components/dialog/v3/index.d.ts +46 -46
- package/components/dialog/v4/DialogFooter.vue.d.ts +78 -0
- package/components/dialog/v4/DialogFooter.vue.js +7 -0
- package/components/dialog/v4/DialogFooter.vue2.js +60 -0
- package/components/dialog/v4/DialogHeader.vue.d.ts +60 -0
- package/components/dialog/v4/DialogHeader.vue.js +7 -0
- package/components/dialog/v4/DialogHeader.vue2.js +58 -0
- package/components/dialog/v4/DialogV4.vue.d.ts +9 -9
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +65 -107
- package/components/dialog/v4/index.d.ts +157 -157
- package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
- package/components/dropdown/v3/index.d.ts +20 -20
- package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +194 -187
- package/components/dropdown/v4/DropdownV4.vue.d.ts +7 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +118 -107
- package/components/dropdown/v4/OptionV4.vue.d.ts +5 -0
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +83 -70
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +10 -0
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +155 -151
- package/components/dropdown/v4/index.d.ts +81 -3
- package/components/emptyState/v4/EmptyStateV4.vue.d.ts +5 -0
- package/components/emptyState/v4/EmptyStateV4.vue.js +2 -2
- package/components/emptyState/v4/EmptyStateV4.vue2.js +37 -34
- package/components/emptyState/v4/index.d.ts +20 -1
- package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeOption.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +1 -1
- package/components/includeExclude/index.d.ts +70 -70
- package/components/input/v4/TextField.vue.d.ts +12 -0
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +129 -105
- package/components/input/v4/index.d.ts +46 -2
- package/components/link/Link.vue.d.ts +95 -0
- package/components/link/Link.vue.js +7 -0
- package/components/link/Link.vue2.js +65 -0
- package/components/link/index.d.ts +296 -0
- package/components/link/index.js +6 -0
- package/components/radioButton/v3/RadioButton.vue.d.ts +5 -0
- package/components/radioButton/v3/RadioButton.vue.js +3 -3
- package/components/radioButton/v3/RadioButton.vue2.js +42 -39
- package/components/radioButton/v3/index.d.ts +20 -1
- package/components/sortableList/LoaderBars.vue.d.ts +34 -0
- package/components/sortableList/LoaderBars.vue.js +7 -0
- package/components/sortableList/LoaderBars.vue2.js +25 -0
- package/components/sortableList/SortableItem.vue.d.ts +17 -2
- package/components/sortableList/SortableItem.vue.js +5 -5
- package/components/sortableList/SortableItem.vue2.js +86 -70
- package/components/sortableList/SortableItemLabel.vue.js +3 -3
- package/components/sortableList/SortableItemLabel.vue2.js +26 -23
- package/components/sortableList/SortableList.types.d.ts +1 -0
- package/components/sortableList/SortableList.vue.d.ts +12 -2
- package/components/sortableList/SortableList.vue.js +5 -5
- package/components/sortableList/SortableList.vue2.js +111 -113
- package/components/sortableList/SortableSelectableList.vue.d.ts +107 -0
- package/components/sortableList/SortableSelectableList.vue.js +7 -0
- package/components/sortableList/SortableSelectableList.vue2.js +128 -0
- package/components/sortableList/composables/useDraggableHelpers.d.ts +5 -0
- package/components/sortableList/composables/useDraggableHelpers.js +20 -0
- package/components/sortableList/composables/useHoverEffect.js +1 -1
- package/components/sortableList/consts.d.ts +2 -0
- package/components/sortableList/consts.js +4 -2
- package/components/sortableList/index.d.ts +77 -39
- package/components/table/common/consts.d.ts +2 -0
- package/components/table/common/consts.js +6 -4
- package/components/table/v4/DataGrid.vue.d.ts +12 -7
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +273 -268
- package/components/table/v4/DataGridContainer.vue.d.ts +10 -0
- package/components/table/v4/DataGridContainer.vue.js +7 -0
- package/components/table/v4/DataGridContainer.vue2.js +19 -0
- package/components/table/v4/DataGridHeader.vue.d.ts +85 -0
- package/components/table/v4/DataGridHeader.vue.js +7 -0
- package/components/table/v4/DataGridHeader.vue2.js +84 -0
- package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
- package/components/table/v4/DataGridRowsCounter.vue2.js +12 -12
- package/components/table/v4/MultipleDataGrid.vue.d.ts +8 -7
- package/components/table/v4/MultipleDataGrid.vue.js +2 -2
- package/components/table/v4/MultipleDataGrid.vue2.js +92 -90
- package/components/table/v4/index.d.ts +646 -332
- package/components/table/v4/index.js +11 -5
- package/components/table/v4/storyUtils.d.ts +25 -0
- package/components/tagsField/TagsField.types.d.ts +4 -0
- package/components/tagsField/TagsField.vue.d.ts +65 -0
- package/components/tagsField/TagsField.vue.js +7 -0
- package/components/tagsField/TagsField.vue2.js +90 -0
- package/components/tagsField/TagsFieldChip.vue.d.ts +45 -0
- package/components/tagsField/TagsFieldChip.vue.js +7 -0
- package/components/tagsField/TagsFieldChip.vue2.js +81 -0
- package/components/tagsField/consts.d.ts +1 -0
- package/components/tagsField/consts.js +4 -0
- package/components/tagsField/index.d.ts +75 -0
- package/components/tagsField/index.js +6 -0
- package/components/tooltip/v4/TooltipV4.vue.d.ts +5 -0
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +18 -17
- package/components/tooltip/v4/index.d.ts +20 -1
- package/index.d.ts +2675 -1649
- package/index.js +137 -121
- package/package.json +18 -1
- package/testids/index.d.ts +47 -1
- package/testids/index.js +40 -32
- package/utils/date.d.ts +1 -0
- package/utils/date.js +9 -0
- package/utils/formatNumbers.d.ts +1 -1
- package/utils/formatNumbers.js +38 -21
- package/utils/object.d.ts +2 -0
- package/utils/object.js +9 -5
- package/utils/search.js +1 -1
- package/Chart.vue_vue_type_style_index_0_scoped_e8f25a03_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +0 -1
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_4f67d41d_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_f5204c04_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_b21a79b1_lang.css +0 -1
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_934163c0_lang.css +0 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +0 -1
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css +0 -1
- package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +0 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +0 -1
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +0 -1
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_3b15c693_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +0 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import "../../../DialogFooter.vue_vue_type_style_index_0_scoped_8b7f64fe_lang.css"; import { defineComponent as C, openBlock as l, createElementBlock as T, createElementVNode as g, mergeProps as r, unref as e, renderSlot as L, createBlock as u, withCtx as c, createTextVNode as d, toDisplayString as i, createCommentVNode as f } from "vue";
|
|
2
|
+
import B from "../../button/v4/ButtonV4.vue.js";
|
|
3
|
+
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
|
+
import "../../button/v4/ButtonGroup.vue.js";
|
|
5
|
+
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
6
|
+
import { DialogTestIdModifiers as a } from "../../../testids/index.js";
|
|
7
|
+
import { useTestIdAttrs as N } from "../../../utils/testIds.js";
|
|
8
|
+
const b = { class: "footer" }, O = /* @__PURE__ */ C({
|
|
9
|
+
__name: "DialogFooter",
|
|
10
|
+
props: {
|
|
11
|
+
showCancelButton: { type: Boolean, default: !0 },
|
|
12
|
+
showSaveButton: { type: Boolean, default: !0 },
|
|
13
|
+
saveButtonLabel: { default: "Save" },
|
|
14
|
+
saveButtonLoading: { type: Boolean, default: !1 },
|
|
15
|
+
saveButtonColor: { default: "primary" },
|
|
16
|
+
cancelButtonLabel: { default: "Cancel" },
|
|
17
|
+
cancelButtonColor: { default: "default" },
|
|
18
|
+
testId: { default: "" }
|
|
19
|
+
},
|
|
20
|
+
emits: ["save", "cancel"],
|
|
21
|
+
setup(t, { emit: s }) {
|
|
22
|
+
const n = N(t.testId, a);
|
|
23
|
+
return (m, o) => (l(), T("footer", b, [
|
|
24
|
+
g("div", r({ class: "action-buttons" }, e(n)[e(a).ACTION_BUTTONS_WRAPPER]), [
|
|
25
|
+
L(m.$slots, "footer", {}, () => [
|
|
26
|
+
t.showCancelButton ? (l(), u(e(B), r({
|
|
27
|
+
key: 0,
|
|
28
|
+
class: "form-action",
|
|
29
|
+
variant: "outlined",
|
|
30
|
+
color: t.cancelButtonColor,
|
|
31
|
+
disabled: t.saveButtonLoading
|
|
32
|
+
}, e(n)[e(a).CANCEL_BUTTON], {
|
|
33
|
+
onClick: o[0] || (o[0] = (v) => s("cancel"))
|
|
34
|
+
}), {
|
|
35
|
+
default: c(() => [
|
|
36
|
+
d(i(t.cancelButtonLabel), 1)
|
|
37
|
+
]),
|
|
38
|
+
_: 1
|
|
39
|
+
}, 16, ["color", "disabled"])) : f("", !0),
|
|
40
|
+
t.showSaveButton ? (l(), u(e(B), r({
|
|
41
|
+
key: 1,
|
|
42
|
+
class: "form-action",
|
|
43
|
+
loading: t.saveButtonLoading,
|
|
44
|
+
color: t.saveButtonColor
|
|
45
|
+
}, e(n)[e(a).SAVE_BUTTON], {
|
|
46
|
+
onClick: o[1] || (o[1] = (v) => s("save"))
|
|
47
|
+
}), {
|
|
48
|
+
default: c(() => [
|
|
49
|
+
d(i(t.saveButtonLabel), 1)
|
|
50
|
+
]),
|
|
51
|
+
_: 1
|
|
52
|
+
}, 16, ["loading", "color"])) : f("", !0)
|
|
53
|
+
], !0)
|
|
54
|
+
], 16)
|
|
55
|
+
]));
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
export {
|
|
59
|
+
O as default
|
|
60
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
title?: string;
|
|
3
|
+
subtitle?: string;
|
|
4
|
+
showCloseButton?: boolean;
|
|
5
|
+
disableCloseButton?: boolean;
|
|
6
|
+
testId?: string;
|
|
7
|
+
}>, {
|
|
8
|
+
title: string;
|
|
9
|
+
subtitle: string;
|
|
10
|
+
showCloseButton: boolean;
|
|
11
|
+
disableCloseButton: boolean;
|
|
12
|
+
testId: string;
|
|
13
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
close: () => void;
|
|
15
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
16
|
+
title?: string;
|
|
17
|
+
subtitle?: string;
|
|
18
|
+
showCloseButton?: boolean;
|
|
19
|
+
disableCloseButton?: boolean;
|
|
20
|
+
testId?: string;
|
|
21
|
+
}>, {
|
|
22
|
+
title: string;
|
|
23
|
+
subtitle: string;
|
|
24
|
+
showCloseButton: boolean;
|
|
25
|
+
disableCloseButton: boolean;
|
|
26
|
+
testId: string;
|
|
27
|
+
}>>> & {
|
|
28
|
+
onClose?: () => any;
|
|
29
|
+
}, {
|
|
30
|
+
title: string;
|
|
31
|
+
testId: string;
|
|
32
|
+
subtitle: string;
|
|
33
|
+
showCloseButton: boolean;
|
|
34
|
+
disableCloseButton: boolean;
|
|
35
|
+
}>, {
|
|
36
|
+
header?(_: {}): any;
|
|
37
|
+
}>;
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
40
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
41
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
42
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
43
|
+
} : {
|
|
44
|
+
type: import('vue').PropType<T[K]>;
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
type __VLS_WithDefaults<P, D> = {
|
|
49
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
50
|
+
default: D[K];
|
|
51
|
+
}> : P[K];
|
|
52
|
+
};
|
|
53
|
+
type __VLS_Prettify<T> = {
|
|
54
|
+
[K in keyof T]: T[K];
|
|
55
|
+
} & {};
|
|
56
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
57
|
+
new (): {
|
|
58
|
+
$slots: S;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "./DialogHeader.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DialogHeader.vue_vue_type_style_index_0_scoped_9a814ec3_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ o(e, [["__scopeId", "data-v-9a814ec3"]]);
|
|
5
|
+
export {
|
|
6
|
+
t as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import "../../../DialogHeader.vue_vue_type_style_index_0_scoped_9a814ec3_lang.css"; import { defineComponent as b, openBlock as o, createElementBlock as B, mergeProps as n, unref as t, createElementVNode as C, renderSlot as y, createBlock as l, withCtx as d, createTextVNode as u, toDisplayString as m, createCommentVNode as s } from "vue";
|
|
2
|
+
import "../../button/v4/ButtonV4.vue.js";
|
|
3
|
+
import h from "../../button/v4/IconButtonV4.vue.js";
|
|
4
|
+
import "../../button/v4/ButtonGroup.vue.js";
|
|
5
|
+
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
6
|
+
import c from "../../typography/v4/Typography.vue.js";
|
|
7
|
+
import { useTestIdAttrs as k } from "../../../utils/testIds.js";
|
|
8
|
+
import { DialogTestIdModifiers as r } from "../../../testids/index.js";
|
|
9
|
+
const I = { class: "title" }, V = /* @__PURE__ */ b({
|
|
10
|
+
__name: "DialogHeader",
|
|
11
|
+
props: {
|
|
12
|
+
title: { default: "" },
|
|
13
|
+
subtitle: { default: "" },
|
|
14
|
+
showCloseButton: { type: Boolean, default: !0 },
|
|
15
|
+
disableCloseButton: { type: Boolean, default: !1 },
|
|
16
|
+
testId: { default: "" }
|
|
17
|
+
},
|
|
18
|
+
emits: ["close"],
|
|
19
|
+
setup(e, { emit: f }) {
|
|
20
|
+
const a = k(e.testId, r);
|
|
21
|
+
return (p, i) => (o(), B("header", n({ class: "header" }, t(a)[t(r).HEADER]), [
|
|
22
|
+
C("div", I, [
|
|
23
|
+
y(p.$slots, "header", {}, () => [
|
|
24
|
+
e.title ? (o(), l(t(c), {
|
|
25
|
+
key: 0,
|
|
26
|
+
variant: "h3"
|
|
27
|
+
}, {
|
|
28
|
+
default: d(() => [
|
|
29
|
+
u(m(e.title), 1)
|
|
30
|
+
]),
|
|
31
|
+
_: 1
|
|
32
|
+
})) : s("", !0),
|
|
33
|
+
e.subtitle ? (o(), l(t(c), {
|
|
34
|
+
key: 1,
|
|
35
|
+
class: "subtitle",
|
|
36
|
+
variant: "body1"
|
|
37
|
+
}, {
|
|
38
|
+
default: d(() => [
|
|
39
|
+
u(m(e.subtitle), 1)
|
|
40
|
+
]),
|
|
41
|
+
_: 1
|
|
42
|
+
})) : s("", !0)
|
|
43
|
+
], !0)
|
|
44
|
+
]),
|
|
45
|
+
e.showCloseButton ? (o(), l(t(h), n({
|
|
46
|
+
key: 0,
|
|
47
|
+
class: "close-button",
|
|
48
|
+
"icon-name": "x",
|
|
49
|
+
disabled: e.disableCloseButton
|
|
50
|
+
}, t(a)[t(r).ACTION_CLOSE], {
|
|
51
|
+
onClick: i[0] || (i[0] = (E) => f("close"))
|
|
52
|
+
}), null, 16, ["disabled"])) : s("", !0)
|
|
53
|
+
], 16));
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export {
|
|
57
|
+
V as default
|
|
58
|
+
};
|
|
@@ -104,30 +104,30 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
104
104
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
105
105
|
onClose?: (reason: Reason) => any;
|
|
106
106
|
onCancel?: () => any;
|
|
107
|
-
onOpen?: () => any;
|
|
108
107
|
onSave?: () => any;
|
|
108
|
+
onOpen?: () => any;
|
|
109
109
|
}, {
|
|
110
110
|
title: string;
|
|
111
111
|
testId: string;
|
|
112
112
|
size: "small" | "medium" | "extraSmall";
|
|
113
113
|
content: string;
|
|
114
114
|
subtitle: string;
|
|
115
|
-
appendToBody: boolean;
|
|
116
|
-
closeDelay: number;
|
|
117
|
-
openDelay: number;
|
|
118
|
-
escapeToClose: boolean;
|
|
119
|
-
showBackdrop: boolean;
|
|
120
|
-
closeOnClickOutside: boolean;
|
|
121
|
-
beforeClose: (show: () => void) => void;
|
|
122
115
|
showCloseButton: boolean;
|
|
123
116
|
showCancelButton: boolean;
|
|
124
117
|
showSaveButton: boolean;
|
|
125
|
-
showFooter: boolean;
|
|
126
118
|
saveButtonLabel: string;
|
|
127
119
|
saveButtonLoading: boolean;
|
|
128
120
|
saveButtonColor: ButtonColor;
|
|
129
121
|
cancelButtonLabel: string;
|
|
130
122
|
cancelButtonColor: string;
|
|
123
|
+
appendToBody: boolean;
|
|
124
|
+
showBackdrop: boolean;
|
|
125
|
+
closeDelay: number;
|
|
126
|
+
openDelay: number;
|
|
127
|
+
escapeToClose: boolean;
|
|
128
|
+
closeOnClickOutside: boolean;
|
|
129
|
+
beforeClose: (show: () => void) => void;
|
|
130
|
+
showFooter: boolean;
|
|
131
131
|
noPadding: boolean;
|
|
132
132
|
}>, {
|
|
133
133
|
header?(_: {}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DialogV4.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../DialogV4.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-cc99f1e3"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
t as default
|
|
7
7
|
};
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import "../../../DialogV4.
|
|
1
|
+
import "../../../DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css"; import { defineComponent as k, openBlock as l, createBlock as s, Teleport as T, createVNode as L, Transition as D, withCtx as d, unref as t, createElementBlock as C, createElementVNode as g, mergeProps as B, renderSlot as b, createCommentVNode as u, createTextVNode as O, toDisplayString as p } from "vue";
|
|
2
2
|
import { NOOP as I } from "@vue/shared";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
import { useMagicKeys as D, whenever as R } from "@vueuse/core";
|
|
13
|
-
const $ = {
|
|
3
|
+
import N from "../../typography/v4/Typography.vue.js";
|
|
4
|
+
import { Reason as v } from "../common/Reason.js";
|
|
5
|
+
import { dialogCommon as P } from "../common/Dialog.common.js";
|
|
6
|
+
import { DialogTestIdModifiers as i } from "../../../testids/index.js";
|
|
7
|
+
import { useTestIdAttrs as V } from "../../../utils/testIds.js";
|
|
8
|
+
import { useMagicKeys as $, whenever as S } from "@vueuse/core";
|
|
9
|
+
import E from "./DialogHeader.vue.js";
|
|
10
|
+
import A from "./DialogFooter.vue.js";
|
|
11
|
+
const F = {
|
|
14
12
|
key: 0,
|
|
15
13
|
class: "container light-theme-v4"
|
|
16
|
-
},
|
|
17
|
-
key: 1,
|
|
18
|
-
class: "footer"
|
|
19
|
-
}, Y = /* @__PURE__ */ L({
|
|
14
|
+
}, J = /* @__PURE__ */ k({
|
|
20
15
|
__name: "DialogV4",
|
|
21
16
|
props: {
|
|
22
17
|
modelValue: { type: Boolean },
|
|
@@ -44,115 +39,78 @@ const $ = {
|
|
|
44
39
|
noPadding: { type: Boolean, default: !1 }
|
|
45
40
|
},
|
|
46
41
|
emits: ["update:modelValue", "open", "close", "save", "cancel"],
|
|
47
|
-
setup(e, { emit:
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
42
|
+
setup(e, { emit: c }) {
|
|
43
|
+
const a = e, { escape: h } = $(), r = V(a.testId, i), { visible: m, handleClose: f } = P(a, c);
|
|
44
|
+
S(h, () => {
|
|
45
|
+
m.value && a.escapeToClose && !a.saveButtonLoading && f(v.Escape);
|
|
51
46
|
});
|
|
52
|
-
const
|
|
53
|
-
const { closeOnClickOutside:
|
|
54
|
-
|
|
47
|
+
const w = () => {
|
|
48
|
+
const { closeOnClickOutside: n, saveButtonLoading: o } = a;
|
|
49
|
+
n && !o ? f(v.Backdrop) : I();
|
|
55
50
|
};
|
|
56
|
-
return (
|
|
51
|
+
return (n, o) => (l(), s(T, {
|
|
57
52
|
to: "body",
|
|
58
53
|
disabled: !e.appendToBody
|
|
59
54
|
}, [
|
|
60
|
-
|
|
61
|
-
default:
|
|
62
|
-
t(
|
|
63
|
-
|
|
55
|
+
L(D, null, {
|
|
56
|
+
default: d(() => [
|
|
57
|
+
t(m) ? (l(), C("div", F, [
|
|
58
|
+
g("div", B({
|
|
64
59
|
class: ["dialog", [`dialog--${e.size}`]]
|
|
65
|
-
}, t(
|
|
66
|
-
e.title || e.subtitle || e.showCloseButton ? (
|
|
60
|
+
}, t(r)[t(i).WRAPPER]), [
|
|
61
|
+
e.title || e.subtitle || e.showCloseButton ? (l(), s(E, {
|
|
67
62
|
key: 0,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
f(B(e.title), 1)
|
|
78
|
-
]),
|
|
79
|
-
_: 1
|
|
80
|
-
})) : l("", !0),
|
|
81
|
-
e.subtitle ? (o(), u(t(b), {
|
|
82
|
-
key: 1,
|
|
83
|
-
class: "subtitle",
|
|
84
|
-
variant: "body1"
|
|
85
|
-
}, {
|
|
86
|
-
default: i(() => [
|
|
87
|
-
f(B(e.subtitle), 1)
|
|
88
|
-
]),
|
|
89
|
-
_: 1
|
|
90
|
-
})) : l("", !0)
|
|
91
|
-
], !0)
|
|
63
|
+
title: e.title,
|
|
64
|
+
subtitle: e.subtitle,
|
|
65
|
+
"show-close-button": e.showCloseButton,
|
|
66
|
+
"disable-close-button": e.saveButtonLoading,
|
|
67
|
+
"test-id": e.testId,
|
|
68
|
+
onClose: o[0] || (o[0] = (y) => t(f)(t(v).CloseButton))
|
|
69
|
+
}, {
|
|
70
|
+
header: d(() => [
|
|
71
|
+
b(n.$slots, "header", {}, void 0, !0)
|
|
92
72
|
]),
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
"icon-name": "x",
|
|
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({
|
|
73
|
+
_: 3
|
|
74
|
+
}, 8, ["title", "subtitle", "show-close-button", "disable-close-button", "test-id"])) : u("", !0),
|
|
75
|
+
g("div", B({
|
|
103
76
|
class: ["content", { "content--no-padding": e.noPadding }]
|
|
104
|
-
}, t(
|
|
105
|
-
|
|
106
|
-
e.content ? (
|
|
77
|
+
}, t(r)[t(i).CONTENT]), [
|
|
78
|
+
b(n.$slots, "default", {}, () => [
|
|
79
|
+
e.content ? (l(), s(t(N), {
|
|
107
80
|
key: 0,
|
|
108
81
|
variant: "body1"
|
|
109
82
|
}, {
|
|
110
|
-
default:
|
|
111
|
-
|
|
83
|
+
default: d(() => [
|
|
84
|
+
O(p(e.content), 1)
|
|
112
85
|
]),
|
|
113
86
|
_: 1
|
|
114
|
-
})) :
|
|
87
|
+
})) : u("", !0)
|
|
115
88
|
], !0)
|
|
116
89
|
], 16),
|
|
117
|
-
e.showFooter ? (
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
key: 1,
|
|
136
|
-
class: "form-action",
|
|
137
|
-
loading: e.saveButtonLoading,
|
|
138
|
-
color: e.saveButtonColor
|
|
139
|
-
}, t(n)[t(a).SAVE_BUTTON], {
|
|
140
|
-
onClick: d[2] || (d[2] = (T) => C("save"))
|
|
141
|
-
}), {
|
|
142
|
-
default: i(() => [
|
|
143
|
-
f(B(e.saveButtonLabel), 1)
|
|
144
|
-
]),
|
|
145
|
-
_: 1
|
|
146
|
-
}, 16, ["loading", "color"])) : l("", !0)
|
|
147
|
-
], !0)
|
|
148
|
-
], 16)
|
|
149
|
-
])) : l("", !0)
|
|
90
|
+
e.showFooter ? (l(), s(A, {
|
|
91
|
+
key: 1,
|
|
92
|
+
"show-cancel-button": e.showCancelButton,
|
|
93
|
+
"show-save-button": e.showSaveButton,
|
|
94
|
+
"save-button-label": e.saveButtonLabel,
|
|
95
|
+
"save-button-loading": e.saveButtonLoading,
|
|
96
|
+
"save-button-color": e.saveButtonColor,
|
|
97
|
+
"cancel-button-label": e.cancelButtonLabel,
|
|
98
|
+
"cancel-button-color": e.cancelButtonColor,
|
|
99
|
+
"test-id": e.testId,
|
|
100
|
+
onSave: o[1] || (o[1] = (y) => c("save")),
|
|
101
|
+
onCancel: o[2] || (o[2] = (y) => c("cancel"))
|
|
102
|
+
}, {
|
|
103
|
+
footer: d(() => [
|
|
104
|
+
b(n.$slots, "footer", {}, void 0, !0)
|
|
105
|
+
]),
|
|
106
|
+
_: 3
|
|
107
|
+
}, 8, ["show-cancel-button", "show-save-button", "save-button-label", "save-button-loading", "save-button-color", "cancel-button-label", "cancel-button-color", "test-id"])) : u("", !0)
|
|
150
108
|
], 16),
|
|
151
|
-
e.showBackdrop ? (
|
|
109
|
+
e.showBackdrop ? (l(), C("div", B({
|
|
152
110
|
key: 0,
|
|
153
111
|
class: "dialog-backdrop"
|
|
154
|
-
}, t(
|
|
155
|
-
])) :
|
|
112
|
+
}, t(r)[t(i).BACKDROP], { onClick: w }), null, 16)) : u("", !0)
|
|
113
|
+
])) : u("", !0)
|
|
156
114
|
]),
|
|
157
115
|
_: 3
|
|
158
116
|
})
|
|
@@ -160,5 +118,5 @@ const $ = {
|
|
|
160
118
|
}
|
|
161
119
|
});
|
|
162
120
|
export {
|
|
163
|
-
|
|
121
|
+
J as default
|
|
164
122
|
};
|