@ironsource/shared-ui 2.0.0-rc.6 → 2.0.0-rc.7
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/ButtonV4.vue_vue_type_style_index_0_scoped_3fd2281b_lang.css +1 -0
- package/Checkbox.vue_vue_type_style_index_0_scoped_58dedb90_lang.css +1 -0
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_ee3e6d82_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_7a670808_lang.css +1 -0
- package/Dropdown.vue_vue_type_style_index_0_scoped_e8324d12_lang.css +1 -0
- package/FilterDropdown.vue_vue_type_style_index_0_scoped_1320b13b_lang.css +1 -0
- package/FilterSearchInput.vue_vue_type_style_index_0_scoped_51006ea0_lang.css +1 -0
- package/FiltersPanel.vue_vue_type_style_index_0_scoped_9d2f3413_lang.css +1 -0
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css +1 -0
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_2a01a791_lang.css +1 -0
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_85bff8f4_lang.css +1 -0
- package/IncludeExcludeOption.vue_vue_type_style_index_0_scoped_91bc7787_lang.css +1 -0
- package/Label.vue_vue_type_style_index_0_scoped_48e00c04_lang.css +1 -0
- package/Option.vue_vue_type_style_index_0_scoped_3d6ce2fc_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_92add735_lang.css +1 -0
- package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +1 -0
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_14be812e_lang.css +1 -0
- package/RadioGroup.vue_vue_type_style_index_0_scoped_3071ef24_lang.css +1 -0
- package/RadioGroupV4.vue_vue_type_style_index_0_scoped_f8e8cbab_lang.css +1 -0
- package/SearchInput.vue_vue_type_style_index_0_scoped_b256f8ef_lang.css +1 -0
- package/Snackbar.vue_vue_type_style_index_0_scoped_cec4f8e5_lang.css +1 -0
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_48311746_lang.css +1 -0
- package/components/autocompleteDropdown/AutocompleteDropdown.vue2.js +3 -3
- package/components/button/common/ButtonSuper.vue.d.ts +6 -6
- package/components/button/v3/Button.vue.d.ts +6 -6
- package/components/button/v4/ButtonV4.vue.d.ts +11 -6
- package/components/button/v4/ButtonV4.vue.js +3 -3
- package/components/button/v4/ButtonV4.vue2.js +13 -10
- package/components/button/v4/index.d.ts +34 -15
- package/components/checkbox/common/Checkbox.common.d.ts +11 -0
- package/components/checkbox/common/Checkbox.common.js +32 -0
- package/components/checkbox/v3/Checkbox.vue.js +7 -0
- package/components/checkbox/v3/Checkbox.vue2.js +99 -0
- package/components/checkbox/{icons → v3/icons}/checked.vue.js +1 -1
- package/components/checkbox/{icons → v3/icons}/indeterminate.vue.js +1 -1
- package/components/checkbox/{icons → v3/icons}/unchecked.vue.js +1 -1
- package/components/checkbox/v4/CheckboxV4.vue.d.ts +53 -0
- package/components/checkbox/v4/CheckboxV4.vue.js +7 -0
- package/components/checkbox/v4/CheckboxV4.vue2.js +107 -0
- package/components/checkbox/v4/icons/CheckedDisabledState.vue.js +38 -0
- package/components/checkbox/v4/icons/CheckedState.vue.d.ts +2 -0
- package/components/checkbox/v4/icons/CheckedState.vue.js +38 -0
- package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.d.ts +2 -0
- package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.js +40 -0
- package/components/checkbox/v4/icons/IndeterminateState.vue.d.ts +2 -0
- package/components/checkbox/v4/icons/IndeterminateState.vue.js +40 -0
- package/components/checkbox/v4/icons/UncheckedDisabledState.vue.d.ts +2 -0
- package/components/checkbox/v4/icons/UncheckedDisabledState.vue.js +31 -0
- package/components/checkbox/v4/icons/UncheckedState.vue.d.ts +2 -0
- package/components/checkbox/v4/icons/UncheckedState.vue.js +31 -0
- package/components/checkbox/v4/index.d.ts +152 -0
- package/components/checkbox/v4/index.js +6 -0
- package/components/dropdown/v3/Dropdown.vue.js +2 -2
- package/components/dropdown/v3/Dropdown.vue2.js +3 -3
- package/components/dropdown/v3/Label.vue.js +7 -0
- package/components/dropdown/{common → v3}/Label.vue2.js +2 -2
- package/components/dropdown/v3/Option.vue.js +7 -0
- package/components/dropdown/{common → v3}/Option.vue2.js +3 -3
- package/components/dropdown/{common → v3}/SearchInput.vue.js +2 -2
- package/components/dropdown/{common → v3}/SearchInput.vue2.js +2 -2
- package/components/dropdown/v3/index.d.ts +3 -3
- package/components/dropdown/v3/index.js +3 -3
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +2 -2
- package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
- package/components/emptyState/v3/index.d.ts +7 -7
- package/components/filterDropdown/FilterDropdown.vue.d.ts +1 -1
- package/components/filterDropdown/FilterDropdown.vue.js +2 -2
- package/components/filterDropdown/FilterDropdown.vue2.js +4 -4
- package/components/filterDropdown/index.d.ts +2 -2
- package/components/filtersPanel/v3/FilterSearchInput.vue.d.ts +2 -0
- package/components/filtersPanel/v3/FilterSearchInput.vue.js +7 -0
- package/components/filtersPanel/{FilterSearchInput.vue2.js → v3/FilterSearchInput.vue2.js} +6 -6
- package/components/filtersPanel/v3/FiltersPanel.vue.js +7 -0
- package/components/filtersPanel/{FiltersPanel.vue2.js → v3/FiltersPanel.vue2.js} +1 -1
- package/components/filtersPanel/v4/FiltersPanelV4.vue.d.ts +44 -0
- package/components/filtersPanel/v4/FiltersPanelV4.vue.js +7 -0
- package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +23 -0
- package/components/filtersPanel/v4/index.d.ts +101 -0
- package/components/filtersPanel/v4/index.js +6 -0
- package/components/filtersPanel/v4/storyConsts.d.ts +20 -0
- package/components/icon/icons/FiltersSearch.vue.d.ts +2 -0
- package/components/icon/v3/icons/index.d.ts +3 -0
- package/components/icon/v3/icons/index.js +3 -0
- package/components/icon/v3/index.d.ts +3 -0
- package/components/includeExclude/IncludeExclude.vue.js +3 -3
- package/components/includeExclude/IncludeExclude.vue2.js +2 -2
- package/components/includeExclude/IncludeExcludeDragDrop.vue.js +3 -3
- package/components/includeExclude/IncludeExcludeDragDrop.vue2.js +2 -2
- package/components/includeExclude/IncludeExcludeOption.vue.js +5 -5
- package/components/includeExclude/IncludeExcludeOption.vue2.js +2 -2
- package/components/radioButton/common/radioGroup.common.d.ts +3 -0
- package/components/radioButton/common/radioGroup.common.js +26 -0
- package/components/radioButton/v3/RadioButton.vue.js +7 -0
- package/components/radioButton/v3/RadioButton.vue2.js +79 -0
- package/components/radioButton/v3/RadioGroup.vue.js +7 -0
- package/components/radioButton/v3/RadioGroup.vue2.js +29 -0
- package/components/radioButton/v4/RadioButtonV4.vue.d.ts +59 -0
- package/components/radioButton/v4/RadioButtonV4.vue.js +7 -0
- package/components/radioButton/v4/RadioButtonV4.vue2.js +67 -0
- package/components/radioButton/v4/RadioGroupV4.vue.d.ts +61 -0
- package/components/radioButton/v4/RadioGroupV4.vue.js +7 -0
- package/components/radioButton/v4/RadioGroupV4.vue2.js +29 -0
- package/components/radioButton/v4/index.d.ts +334 -0
- package/components/radioButton/v4/index.js +8 -0
- package/components/snackbar/common/notify.d.ts +3 -0
- package/components/snackbar/common/notify.js +82 -0
- package/components/snackbar/common/snackbar.common.d.ts +11 -0
- package/components/snackbar/common/snackbar.common.js +51 -0
- package/components/snackbar/v3/Snackbar.vue.js +7 -0
- package/components/snackbar/v3/Snackbar.vue2.js +129 -0
- package/components/snackbar/v3/index.d.ts +3 -0
- package/components/snackbar/v3/index.js +10 -0
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +186 -0
- package/components/snackbar/v4/SnackbarV4.vue.js +7 -0
- package/components/snackbar/v4/SnackbarV4.vue2.js +137 -0
- package/components/snackbar/v4/index.d.ts +4 -0
- package/components/snackbar/v4/index.js +11 -0
- package/components/table/v4/DataGrid.vue.js +2 -2
- package/components/table/v4/DataGrid.vue2.js +28 -29
- package/index.d.ts +1255 -34
- package/index.js +145 -152
- package/package.json +40 -15
- package/testids/index.d.ts +8 -0
- package/testids/index.js +14 -13
- package/ButtonV4.vue_vue_type_style_index_0_scoped_43578f8c_lang.css +0 -1
- package/Checkbox.vue_vue_type_style_index_0_scoped_518c02d0_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_f080f37f_lang.css +0 -1
- package/Dropdown.vue_vue_type_style_index_0_scoped_0114904e_lang.css +0 -1
- package/FilterDropdown.vue_vue_type_style_index_0_scoped_b25c5605_lang.css +0 -1
- package/FilterSearchInput.vue_vue_type_style_index_0_scoped_9198bf4e_lang.css +0 -1
- package/FiltersPanel.vue_vue_type_style_index_0_scoped_2996b384_lang.css +0 -1
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_2c9debd6_lang.css +0 -1
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_ff32d111_lang.css +0 -1
- package/IncludeExcludeOption.vue_vue_type_style_index_0_scoped_4a87e4fd_lang.css +0 -1
- package/Label.vue_vue_type_style_index_0_scoped_5faaafce_lang.css +0 -1
- package/Option.vue_vue_type_style_index_0_scoped_2432f13f_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_b879fe79_lang.css +0 -1
- package/RadioButton.vue_vue_type_style_index_0_scoped_f5d3359c_lang.css +0 -1
- package/RadioGroup.vue_vue_type_style_index_0_scoped_50bc6963_lang.css +0 -1
- package/SearchInput.vue_vue_type_style_index_0_scoped_0b1ea2f6_lang.css +0 -1
- package/Snackbar.vue_vue_type_style_index_0_scoped_d14230ca_lang.css +0 -1
- package/components/checkbox/Checkbox.vue.js +0 -7
- package/components/checkbox/Checkbox.vue2.js +0 -97
- package/components/dropdown/common/Label.vue.js +0 -7
- package/components/dropdown/common/Option.vue.js +0 -7
- package/components/filtersPanel/FilterSearchInput.vue.js +0 -7
- package/components/filtersPanel/FiltersPanel.vue.js +0 -7
- package/components/radioButton/RadioButton.vue.js +0 -7
- package/components/radioButton/RadioButton.vue2.js +0 -82
- package/components/radioButton/RadioGroup.vue.js +0 -7
- package/components/radioButton/RadioGroup.vue2.js +0 -44
- package/components/snackbar/Snackbar.vue.js +0 -7
- package/components/snackbar/Snackbar.vue2.js +0 -150
- package/components/snackbar/index.d.ts +0 -3
- package/components/snackbar/index.js +0 -6
- package/components/snackbar/notify.js +0 -84
- /package/components/checkbox/{Checkbox.vue.d.ts → v3/Checkbox.vue.d.ts} +0 -0
- /package/components/checkbox/{icons → v3/icons}/checked.vue.d.ts +0 -0
- /package/components/checkbox/{icons → v3/icons}/indeterminate.vue.d.ts +0 -0
- /package/components/checkbox/{icons → v3/icons}/unchecked.vue.d.ts +0 -0
- /package/components/checkbox/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/checkbox/{index.js → v3/index.js} +0 -0
- /package/components/{filtersPanel/FilterSearchInput.vue.d.ts → checkbox/v4/icons/CheckedDisabledState.vue.d.ts} +0 -0
- /package/components/dropdown/{common → v3}/Label.vue.d.ts +0 -0
- /package/components/dropdown/{common → v3}/Option.vue.d.ts +0 -0
- /package/components/dropdown/{common → v3}/SearchInput.vue.d.ts +0 -0
- /package/components/filtersPanel/{Filter.d.ts → v3/Filter.d.ts} +0 -0
- /package/components/filtersPanel/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/filtersPanel/{index.js → v3/index.js} +0 -0
- /package/components/filtersPanel/{useHiddenFilter.d.ts → v3/useHiddenFilter.d.ts} +0 -0
- /package/components/filtersPanel/{useHiddenFilter.js → v3/useHiddenFilter.js} +0 -0
- /package/components/radioButton/{useRadio.d.ts → common/useRadio.d.ts} +0 -0
- /package/components/radioButton/{useRadio.js → common/useRadio.js} +0 -0
- /package/components/radioButton/{RadioButton.vue.d.ts → v3/RadioButton.vue.d.ts} +0 -0
- /package/components/radioButton/{RadioGroup.vue.d.ts → v3/RadioGroup.vue.d.ts} +0 -0
- /package/components/radioButton/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/radioButton/{index.js → v3/index.js} +0 -0
- /package/components/snackbar/{notify.d.ts → common/notify_old.d.ts} +0 -0
- /package/components/snackbar/{snackbar.types.d.ts → common/snackbar.types.d.ts} +0 -0
- /package/components/snackbar/{snackbar.types.js → common/snackbar.types.js} +0 -0
- /package/components/snackbar/{Snackbar.vue.d.ts → v3/Snackbar.vue.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./IncludeExcludeDragDrop.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../IncludeExcludeDragDrop.
|
|
4
|
-
const
|
|
3
|
+
// import "../../IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_85bff8f4_lang.css"; //*');
|
|
4
|
+
const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-85bff8f4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../IncludeExcludeDragDrop.
|
|
1
|
+
import "../../IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_85bff8f4_lang.css"; import { defineComponent as Re, computed as p, ref as c, watch as H, provide as Ae, openBlock as i, createBlock as O, unref as l, withCtx as h, createElementVNode as s, renderSlot as v, normalizeClass as N, createTextVNode as C, toDisplayString as le, createCommentVNode as f, createVNode as g, Transition as Pe, createElementBlock as u, mergeProps as w, Fragment as U, renderList as W, toRaw as S, isRef as $e, nextTick as Ee } from "vue";
|
|
2
2
|
import "../popover/Popover.vue2.js";
|
|
3
3
|
import G from "../button/v3/Button.vue.js";
|
|
4
4
|
import "../button/v3/IconButton.vue.js";
|
|
@@ -6,7 +6,7 @@ import "../button/v3/ScrollButton.vue.js";
|
|
|
6
6
|
import Fe from "../search/v3/Search.vue.js";
|
|
7
7
|
import "../typography/Heading.vue.js";
|
|
8
8
|
import te from "../typography/Text.vue.js";
|
|
9
|
-
import ze from "../checkbox/Checkbox.vue.js";
|
|
9
|
+
import ze from "../checkbox/v3/Checkbox.vue.js";
|
|
10
10
|
import b from "../skeleton/Skeleton.vue.js";
|
|
11
11
|
import He from "../emptyState/v3/EmptyState.vue.js";
|
|
12
12
|
import { useToggle as Ne } from "../../composables/useToggle.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../IncludeExcludeOption.
|
|
4
|
-
const
|
|
1
|
+
import o from "./IncludeExcludeOption.vue2.js";
|
|
2
|
+
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../IncludeExcludeOption.vue_vue_type_style_index_0_scoped_91bc7787_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-91bc7787"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../../IncludeExcludeOption.
|
|
1
|
+
import "../../IncludeExcludeOption.vue_vue_type_style_index_0_scoped_91bc7787_lang.css"; import { defineComponent as E, ref as N, computed as v, openBlock as o, createElementBlock as a, normalizeClass as k, unref as e, createElementVNode as m, createBlock as p, createCommentVNode as n, renderSlot as x, createVNode as c, withCtx as d, createTextVNode as h, toDisplayString as y, withModifiers as T } from "vue";
|
|
2
2
|
import "../typography/Heading.vue.js";
|
|
3
3
|
import C from "../typography/Text.vue.js";
|
|
4
4
|
import { useIncludeExcludeContext as z } from "./IncludeExcludeContext.js";
|
|
5
5
|
import { useId as S } from "../../composables/useId.js";
|
|
6
|
-
import V from "../checkbox/Checkbox.vue.js";
|
|
6
|
+
import V from "../checkbox/v3/Checkbox.vue.js";
|
|
7
7
|
import "../tooltip/v3/Tooltip.vue.js";
|
|
8
8
|
import D from "../icon/v3/Icon.vue.js";
|
|
9
9
|
import { NOOP as M } from "@vue/shared";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ref as m, onMounted as u, computed as s, provide as f, reactive as p, toRefs as l, nextTick as v } from "vue";
|
|
2
|
+
import { useId as y } from "../../../composables/useId.js";
|
|
3
|
+
import { radioGroupKey as h } from "./useRadio.js";
|
|
4
|
+
const b = (e, r) => {
|
|
5
|
+
const a = y(), t = m(), c = (o) => {
|
|
6
|
+
r("update:modelValue", o), v(() => r("change", o));
|
|
7
|
+
};
|
|
8
|
+
u(() => {
|
|
9
|
+
const o = t.value?.querySelectorAll("[type=radio]"), n = o[0];
|
|
10
|
+
!Array.from(o).some((i) => i.checked) && n && (n.tabIndex = 0);
|
|
11
|
+
});
|
|
12
|
+
const d = s(() => e.name || a.value);
|
|
13
|
+
return f(
|
|
14
|
+
h,
|
|
15
|
+
p({
|
|
16
|
+
...l(e),
|
|
17
|
+
changeEvent: c,
|
|
18
|
+
name: d
|
|
19
|
+
})
|
|
20
|
+
), {
|
|
21
|
+
radioGroupRef: t
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
b as radioGroupCommon
|
|
26
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import o from "./RadioButton.vue2.js";
|
|
2
|
+
/* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3c6b715c"]]);
|
|
5
|
+
export {
|
|
6
|
+
s as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import "../../../RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css"; import { defineComponent as E, openBlock as n, createElementBlock as I, normalizeClass as b, unref as e, createElementVNode as r, withDirectives as y, mergeProps as i, isRef as C, vModelRadio as N, renderSlot as g, createVNode as w, withCtx as u, createTextVNode as m, toDisplayString as f, createBlock as v, createCommentVNode as R } from "vue";
|
|
2
|
+
import c from "../../typography/Text.vue.js";
|
|
3
|
+
import { useRadio as z } from "../common/useRadio.js";
|
|
4
|
+
import { RadioTestIdModifiers as o } from "../../../testids/index.js";
|
|
5
|
+
import { useTestIdAttrs as A } from "../../../utils/testIds.js";
|
|
6
|
+
const D = { class: "wrapper" }, L = ["value", "name", "disabled"], O = /* @__PURE__ */ E({
|
|
7
|
+
__name: "RadioButton",
|
|
8
|
+
props: {
|
|
9
|
+
label: { default: "" },
|
|
10
|
+
name: { default: "" },
|
|
11
|
+
helperText: { default: "" },
|
|
12
|
+
errorText: { default: "" },
|
|
13
|
+
modelValue: { default: void 0 },
|
|
14
|
+
testId: { default: "" }
|
|
15
|
+
},
|
|
16
|
+
emits: ["update:modelValue", "change"],
|
|
17
|
+
setup(t, { emit: V }) {
|
|
18
|
+
const p = t, { radioRef: h, focus: x, disabled: T, modelValue: a, radioGroup: k } = z(
|
|
19
|
+
p,
|
|
20
|
+
V
|
|
21
|
+
), d = A(p.testId, o);
|
|
22
|
+
return (B, l) => (n(), I("label", {
|
|
23
|
+
class: b(["radio-button", { "radio-button--disabled": e(T) }])
|
|
24
|
+
}, [
|
|
25
|
+
r("span", D, [
|
|
26
|
+
y(r("input", i({
|
|
27
|
+
ref_key: "radioRef",
|
|
28
|
+
ref: h,
|
|
29
|
+
"onUpdate:modelValue": l[0] || (l[0] = (s) => C(a) ? a.value = s : null),
|
|
30
|
+
value: t.label,
|
|
31
|
+
name: t.name || e(k)?.name,
|
|
32
|
+
type: "radio",
|
|
33
|
+
disabled: e(T)
|
|
34
|
+
}, e(d)[e(o).FIELD], {
|
|
35
|
+
onFocus: l[1] || (l[1] = (s) => x.value = !0),
|
|
36
|
+
onBlur: l[2] || (l[2] = (s) => x.value = !1)
|
|
37
|
+
}), null, 16, L), [
|
|
38
|
+
[N, e(a)]
|
|
39
|
+
]),
|
|
40
|
+
r("span", {
|
|
41
|
+
class: b([{ "circle--selected": e(a) === t.label }, "circle"])
|
|
42
|
+
}, null, 2)
|
|
43
|
+
]),
|
|
44
|
+
r("span", i({ class: "label" }, e(d)[e(o).LABEL]), [
|
|
45
|
+
g(B.$slots, "default", {}, () => [
|
|
46
|
+
w(c, { "is-truncated": "" }, {
|
|
47
|
+
default: u(() => [
|
|
48
|
+
m(f(t.label), 1)
|
|
49
|
+
]),
|
|
50
|
+
_: 1
|
|
51
|
+
})
|
|
52
|
+
], !0),
|
|
53
|
+
!t.errorText && t.helperText ? (n(), v(c, {
|
|
54
|
+
key: 0,
|
|
55
|
+
class: "helper-text--text helper-text",
|
|
56
|
+
size: "caption"
|
|
57
|
+
}, {
|
|
58
|
+
default: u(() => [
|
|
59
|
+
m(f(t.helperText), 1)
|
|
60
|
+
]),
|
|
61
|
+
_: 1
|
|
62
|
+
})) : R("", !0),
|
|
63
|
+
t.errorText ? (n(), v(c, i({
|
|
64
|
+
key: 1,
|
|
65
|
+
size: "caption",
|
|
66
|
+
class: "helper-text--error helper-text"
|
|
67
|
+
}, e(d)[e(o).ERROR_TEXT]), {
|
|
68
|
+
default: u(() => [
|
|
69
|
+
m(f(t.errorText), 1)
|
|
70
|
+
]),
|
|
71
|
+
_: 1
|
|
72
|
+
}, 16)) : R("", !0)
|
|
73
|
+
], 16)
|
|
74
|
+
], 2));
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
export {
|
|
78
|
+
O as default
|
|
79
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import o from "./RadioGroup.vue2.js";
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../RadioGroup.vue_vue_type_style_index_0_scoped_3071ef24_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-3071ef24"]]);
|
|
5
|
+
export {
|
|
6
|
+
t as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import "../../../RadioGroup.vue_vue_type_style_index_0_scoped_3071ef24_lang.css"; import { defineComponent as u, openBlock as n, createElementBlock as p, mergeProps as f, unref as r, renderSlot as i } from "vue";
|
|
2
|
+
import { RadioTestIdModifiers as t } from "../../../testids/index.js";
|
|
3
|
+
import { radioGroupCommon as m } from "../common/radioGroup.common.js";
|
|
4
|
+
import { useTestIdAttrs as c } from "../../../utils/testIds.js";
|
|
5
|
+
const _ = /* @__PURE__ */ u({
|
|
6
|
+
__name: "RadioGroup",
|
|
7
|
+
props: {
|
|
8
|
+
name: { default: "" },
|
|
9
|
+
disabled: { type: Boolean, default: !1 },
|
|
10
|
+
modelValue: null,
|
|
11
|
+
row: { type: Boolean, default: !1 },
|
|
12
|
+
testId: { default: "" }
|
|
13
|
+
},
|
|
14
|
+
emits: ["update:modelValue", "change"],
|
|
15
|
+
setup(e, { emit: a }) {
|
|
16
|
+
const o = e, d = c(o.testId, t), { radioGroupRef: s } = m(o, a);
|
|
17
|
+
return (l, g) => (n(), p("div", f({
|
|
18
|
+
ref_key: "radioGroupRef",
|
|
19
|
+
ref: s,
|
|
20
|
+
class: [{ "radio-group--row": e.row }, "radio-group"],
|
|
21
|
+
role: "radiogroup"
|
|
22
|
+
}, r(d)[r(t).GROUP]), [
|
|
23
|
+
i(l.$slots, "default", {}, void 0, !0)
|
|
24
|
+
], 16));
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
_ as default
|
|
29
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
value: unknown;
|
|
3
|
+
label: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
modelValue?: string;
|
|
6
|
+
testId?: string;
|
|
7
|
+
}>, {
|
|
8
|
+
label: string;
|
|
9
|
+
name: string;
|
|
10
|
+
modelValue: any;
|
|
11
|
+
testId: string;
|
|
12
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
"update:modelValue": (...args: any[]) => void;
|
|
14
|
+
change: (...args: any[]) => void;
|
|
15
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
16
|
+
value: unknown;
|
|
17
|
+
label: string;
|
|
18
|
+
name?: string;
|
|
19
|
+
modelValue?: string;
|
|
20
|
+
testId?: string;
|
|
21
|
+
}>, {
|
|
22
|
+
label: string;
|
|
23
|
+
name: string;
|
|
24
|
+
modelValue: any;
|
|
25
|
+
testId: string;
|
|
26
|
+
}>>> & {
|
|
27
|
+
onChange?: (...args: any[]) => any;
|
|
28
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
29
|
+
}, {
|
|
30
|
+
name: string;
|
|
31
|
+
label: string;
|
|
32
|
+
testId: string;
|
|
33
|
+
modelValue: string;
|
|
34
|
+
}>, {
|
|
35
|
+
default?(_: {}): any;
|
|
36
|
+
}>;
|
|
37
|
+
export default _default;
|
|
38
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
39
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
40
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
41
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
42
|
+
} : {
|
|
43
|
+
type: import('vue').PropType<T[K]>;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
type __VLS_WithDefaults<P, D> = {
|
|
48
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
49
|
+
default: D[K];
|
|
50
|
+
}> : P[K];
|
|
51
|
+
};
|
|
52
|
+
type __VLS_Prettify<T> = {
|
|
53
|
+
[K in keyof T]: T[K];
|
|
54
|
+
} & {};
|
|
55
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
56
|
+
new (): {
|
|
57
|
+
$slots: S;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import o from "./RadioButtonV4.vue2.js";
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../RadioButtonV4.vue_vue_type_style_index_0_scoped_14be812e_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-14be812e"]]);
|
|
5
|
+
export {
|
|
6
|
+
p as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import "../../../RadioButtonV4.vue_vue_type_style_index_0_scoped_14be812e_lang.css"; import { defineComponent as h, ref as y, inject as g, computed as n, openBlock as I, createElementBlock as R, normalizeClass as p, unref as e, createElementVNode as r, withDirectives as E, mergeProps as v, isRef as k, vModelRadio as B, renderSlot as T, createVNode as w, withCtx as x, createTextVNode as A, toDisplayString as C } from "vue";
|
|
2
|
+
import D from "../../typography/v4/Typography.vue.js";
|
|
3
|
+
import { radioGroupKey as G } from "../common/useRadio.js";
|
|
4
|
+
import { RadioTestIdModifiers as u } from "../../../testids/index.js";
|
|
5
|
+
import { useTestIdAttrs as L } from "../../../utils/testIds.js";
|
|
6
|
+
const N = { class: "wrapper" }, M = ["value", "name", "disabled"], P = /* @__PURE__ */ h({
|
|
7
|
+
__name: "RadioButtonV4",
|
|
8
|
+
props: {
|
|
9
|
+
value: null,
|
|
10
|
+
label: { default: "" },
|
|
11
|
+
name: { default: "" },
|
|
12
|
+
modelValue: { default: void 0 },
|
|
13
|
+
testId: { default: "" }
|
|
14
|
+
},
|
|
15
|
+
emits: ["update:modelValue", "change"],
|
|
16
|
+
setup(t, { emit: b }) {
|
|
17
|
+
const l = t, c = L(l.testId, u), i = y(), a = g(G, void 0), m = n(() => !!a), o = n(() => a?.disabled), d = n({
|
|
18
|
+
get() {
|
|
19
|
+
return m.value ? a?.modelValue : l.modelValue;
|
|
20
|
+
},
|
|
21
|
+
set(s) {
|
|
22
|
+
m.value ? a?.changeEvent(s) : b("update:modelValue", s), i.value && (i.value.checked = l.modelValue === l.value);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
return (s, f) => (I(), R("label", {
|
|
26
|
+
class: p(["radio-button", { "radio-button--disabled": e(o) }])
|
|
27
|
+
}, [
|
|
28
|
+
r("span", N, [
|
|
29
|
+
E(r("input", v({
|
|
30
|
+
ref_key: "radioRef",
|
|
31
|
+
ref: i,
|
|
32
|
+
"onUpdate:modelValue": f[0] || (f[0] = (V) => k(d) ? d.value = V : null),
|
|
33
|
+
value: t.value,
|
|
34
|
+
name: t.name || e(a)?.name,
|
|
35
|
+
type: "radio",
|
|
36
|
+
disabled: e(o)
|
|
37
|
+
}, e(c)[e(u).FIELD]), null, 16, M), [
|
|
38
|
+
[B, e(d)]
|
|
39
|
+
]),
|
|
40
|
+
r("span", {
|
|
41
|
+
class: p(["circle", {
|
|
42
|
+
"circle--selected": e(d) === t.value,
|
|
43
|
+
"circle--disabled": e(o)
|
|
44
|
+
}])
|
|
45
|
+
}, null, 2)
|
|
46
|
+
]),
|
|
47
|
+
r("span", v({
|
|
48
|
+
class: ["label", { "label--disabled": e(o) }]
|
|
49
|
+
}, e(c)[e(u).LABEL]), [
|
|
50
|
+
T(s.$slots, "default", {}, () => [
|
|
51
|
+
w(e(D), {
|
|
52
|
+
variant: "body2",
|
|
53
|
+
"is-truncated": ""
|
|
54
|
+
}, {
|
|
55
|
+
default: x(() => [
|
|
56
|
+
A(C(t.label), 1)
|
|
57
|
+
]),
|
|
58
|
+
_: 1
|
|
59
|
+
})
|
|
60
|
+
], !0)
|
|
61
|
+
], 16)
|
|
62
|
+
], 2));
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
export {
|
|
66
|
+
P as default
|
|
67
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
name?: string;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
modelValue: string;
|
|
5
|
+
row?: boolean;
|
|
6
|
+
testId?: string;
|
|
7
|
+
}>, {
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
label: string;
|
|
10
|
+
name: string;
|
|
11
|
+
row: boolean;
|
|
12
|
+
testId: string;
|
|
13
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
"update:modelValue": (...args: any[]) => void;
|
|
15
|
+
change: (...args: any[]) => void;
|
|
16
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
17
|
+
name?: string;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
modelValue: string;
|
|
20
|
+
row?: boolean;
|
|
21
|
+
testId?: string;
|
|
22
|
+
}>, {
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
label: string;
|
|
25
|
+
name: string;
|
|
26
|
+
row: boolean;
|
|
27
|
+
testId: string;
|
|
28
|
+
}>>> & {
|
|
29
|
+
onChange?: (...args: any[]) => any;
|
|
30
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
31
|
+
}, {
|
|
32
|
+
name: string;
|
|
33
|
+
testId: string;
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
row: boolean;
|
|
36
|
+
}>, {
|
|
37
|
+
default?(_: {}): any;
|
|
38
|
+
}>;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
41
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
42
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
43
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
44
|
+
} : {
|
|
45
|
+
type: import('vue').PropType<T[K]>;
|
|
46
|
+
required: true;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
type __VLS_WithDefaults<P, D> = {
|
|
50
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
51
|
+
default: D[K];
|
|
52
|
+
}> : P[K];
|
|
53
|
+
};
|
|
54
|
+
type __VLS_Prettify<T> = {
|
|
55
|
+
[K in keyof T]: T[K];
|
|
56
|
+
} & {};
|
|
57
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
58
|
+
new (): {
|
|
59
|
+
$slots: S;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import o from "./RadioGroupV4.vue2.js";
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../RadioGroupV4.vue_vue_type_style_index_0_scoped_f8e8cbab_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-f8e8cbab"]]);
|
|
5
|
+
export {
|
|
6
|
+
t as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import "../../../RadioGroupV4.vue_vue_type_style_index_0_scoped_f8e8cbab_lang.css"; import { defineComponent as u, openBlock as n, createElementBlock as p, mergeProps as f, unref as r, renderSlot as i } from "vue";
|
|
2
|
+
import { RadioTestIdModifiers as t } from "../../../testids/index.js";
|
|
3
|
+
import { radioGroupCommon as m } from "../common/radioGroup.common.js";
|
|
4
|
+
import { useTestIdAttrs as c } from "../../../utils/testIds.js";
|
|
5
|
+
const _ = /* @__PURE__ */ u({
|
|
6
|
+
__name: "RadioGroupV4",
|
|
7
|
+
props: {
|
|
8
|
+
name: { default: "" },
|
|
9
|
+
disabled: { type: Boolean, default: !1 },
|
|
10
|
+
modelValue: null,
|
|
11
|
+
row: { type: Boolean, default: !1 },
|
|
12
|
+
testId: { default: "" }
|
|
13
|
+
},
|
|
14
|
+
emits: ["update:modelValue", "change"],
|
|
15
|
+
setup(e, { emit: a }) {
|
|
16
|
+
const o = e, d = c(o.testId, t), { radioGroupRef: s } = m(o, a);
|
|
17
|
+
return (l, g) => (n(), p("div", f({
|
|
18
|
+
ref_key: "radioGroupRef",
|
|
19
|
+
ref: s,
|
|
20
|
+
class: [{ "radio-group--row": e.row }, "radio-group"],
|
|
21
|
+
role: "radiogroup"
|
|
22
|
+
}, r(d)[r(t).GROUP]), [
|
|
23
|
+
i(l.$slots, "default", {}, void 0, !0)
|
|
24
|
+
], 16));
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
_ as default
|
|
29
|
+
};
|