@ironsource/shared-ui 2.0.0-rc.6 → 2.0.0-rc.8
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/Button.vue_vue_type_style_index_0_scoped_bfe31a93_lang.css +1 -0
- package/ButtonBase.vue_vue_type_style_index_0_scoped_9021cac4_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_31e553e8_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_d4f8e790_lang.css +1 -0
- package/FilterDropdown.vue_vue_type_style_index_0_scoped_b42d8b45_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/IconButton.vue_vue_type_style_index_0_scoped_6dffd3f6_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/Popover.vue_vue_type_style_index_0_scoped_25eb53db_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.vue.d.ts +1 -1
- package/components/autocompleteDropdown/AutocompleteDropdown.vue2.js +3 -3
- package/components/autocompleteDropdown/index.d.ts +1 -1
- package/components/button/v3/Button.vue.d.ts +8 -31
- package/components/button/v3/Button.vue.js +3 -3
- package/components/button/v3/Button.vue2.js +43 -75
- package/components/button/{common → v3}/ButtonBase.vue.d.ts +9 -9
- package/components/button/{common → v3}/ButtonBase.vue.js +3 -3
- package/components/button/{common → v3}/ButtonBase.vue2.js +3 -3
- package/components/button/v3/IconButton.vue.js +2 -2
- package/components/button/v3/IconButton.vue2.js +4 -4
- package/components/button/v3/LoaderCircleIcon.vue2.js +0 -0
- package/components/button/v3/LoaderDotsIcon.vue2.js +0 -0
- package/components/button/v3/index.d.ts +130 -0
- package/components/button/v4/ButtonV4.vue.d.ts +21 -6
- package/components/button/v4/ButtonV4.vue.js +4 -4
- package/components/button/v4/ButtonV4.vue2.js +41 -35
- package/components/button/v4/index.d.ts +72 -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/chip/v3/Chip.vue.d.ts +1 -1
- package/components/chip/v3/index.d.ts +20 -20
- package/components/chip/v4/ChipV4.vue.d.ts +1 -1
- package/components/chip/v4/index.d.ts +20 -20
- package/components/dialog/v3/Dialog.vue.d.ts +1 -1
- package/components/dialog/v3/index.d.ts +4 -4
- package/components/dialog/v4/DialogV4.vue.d.ts +1 -1
- package/components/dialog/v4/index.d.ts +4 -4
- package/components/dropdown/v3/Dropdown.vue.d.ts +5 -5
- package/components/dropdown/v3/Dropdown.vue.js +2 -2
- package/components/dropdown/v3/Dropdown.vue2.js +5 -5
- 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 +62 -62
- package/components/dropdown/v3/index.js +3 -3
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +3 -3
- package/components/dropdown/v4/DropdownV4.vue.d.ts +2 -2
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +2 -2
- package/components/dropdown/v4/index.d.ts +111 -111
- 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 +7 -7
- 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.d.ts +2 -2
- package/components/includeExclude/IncludeExclude.vue.js +3 -3
- package/components/includeExclude/IncludeExclude.vue2.js +23 -24
- package/components/includeExclude/IncludeExcludeAppHeader.vue.d.ts +2 -2
- package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +2 -2
- package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +2 -2
- package/components/includeExclude/IncludeExcludeDragDrop.vue.js +3 -3
- package/components/includeExclude/IncludeExcludeDragDrop.vue2.js +31 -32
- package/components/includeExclude/IncludeExcludeOption.vue.js +5 -5
- package/components/includeExclude/IncludeExcludeOption.vue2.js +2 -2
- package/components/includeExclude/index.d.ts +135 -135
- package/components/input/v3/Input.vue.d.ts +3 -3
- package/components/input/v3/index.d.ts +82 -82
- package/components/input/v4/TextField.vue.d.ts +6 -6
- package/components/input/v4/index.d.ts +103 -103
- package/components/menu/Menu.vue.d.ts +1 -1
- package/components/menu/index.d.ts +20 -20
- package/components/multibar/MultiBar.vue.d.ts +1 -1
- package/components/multibar/index.d.ts +1 -1
- package/components/popover/Popover.vue.js +6 -36
- package/components/popover/Popover.vue2.js +36 -3
- package/components/popover/index.d.ts +16 -16
- package/components/popover/index.js +2 -3
- 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 +206 -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/v3/index.d.ts +16 -16
- package/components/table/v4/DataGrid.vue.d.ts +1 -1
- package/components/table/v4/DataGrid.vue.js +2 -2
- package/components/table/v4/DataGrid.vue2.js +28 -29
- package/components/table/v4/index.d.ts +20 -20
- package/components/toggle/v3/Toggle.vue.d.ts +1 -1
- package/components/toggle/v3/index.d.ts +17 -17
- package/components/toggle/v4/ToggleV4.vue.d.ts +2 -2
- package/index.d.ts +2125 -828
- package/index.js +145 -152
- package/package.json +40 -15
- package/testids/index.d.ts +8 -0
- package/testids/index.js +14 -13
- package/Button.vue_vue_type_style_index_0_scoped_d92097c8_lang.css +0 -1
- package/ButtonBase.vue_vue_type_style_index_0_scoped_70baba59_lang.css +0 -1
- 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/IconButton.vue_vue_type_style_index_0_scoped_2fe9bc4c_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/button/common/ButtonSuper.vue.d.ts +0 -52
- 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/{Popover.vue_vue_type_style_index_0_lang.css → Popover.vue_vue_type_style_index_1_lang.css} +0 -0
- /package/components/button/{consts.d.ts → common/consts.d.ts} +0 -0
- /package/components/button/{consts.js → common/consts.js} +0 -0
- /package/components/button/{icon → v3}/LoaderCircleIcon.vue.d.ts +0 -0
- /package/components/button/{icon → v3}/LoaderCircleIcon.vue.js +0 -0
- /package/components/button/{icon → v3}/LoaderDotsIcon.vue.d.ts +0 -0
- /package/components/button/{icon → v3}/LoaderDotsIcon.vue.js +0 -0
- /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
|
@@ -27,14 +27,14 @@ declare const PopoverTypes: () => ({
|
|
|
27
27
|
type: import("vue").PropType<boolean>;
|
|
28
28
|
default: boolean;
|
|
29
29
|
};
|
|
30
|
-
distance: {
|
|
31
|
-
type: import("vue").PropType<number>;
|
|
32
|
-
default: number;
|
|
33
|
-
};
|
|
34
30
|
open: {
|
|
35
31
|
type: import("vue").PropType<boolean>;
|
|
36
32
|
required: true;
|
|
37
33
|
};
|
|
34
|
+
distance: {
|
|
35
|
+
type: import("vue").PropType<number>;
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
38
|
skidding: {
|
|
39
39
|
type: import("vue").PropType<number>;
|
|
40
40
|
default: number;
|
|
@@ -74,14 +74,14 @@ declare const PopoverTypes: () => ({
|
|
|
74
74
|
type: import("vue").PropType<boolean>;
|
|
75
75
|
default: boolean;
|
|
76
76
|
};
|
|
77
|
-
distance: {
|
|
78
|
-
type: import("vue").PropType<number>;
|
|
79
|
-
default: number;
|
|
80
|
-
};
|
|
81
77
|
open: {
|
|
82
78
|
type: import("vue").PropType<boolean>;
|
|
83
79
|
required: true;
|
|
84
80
|
};
|
|
81
|
+
distance: {
|
|
82
|
+
type: import("vue").PropType<number>;
|
|
83
|
+
default: number;
|
|
84
|
+
};
|
|
85
85
|
skidding: {
|
|
86
86
|
type: import("vue").PropType<number>;
|
|
87
87
|
default: number;
|
|
@@ -135,14 +135,14 @@ declare const PopoverTypes: () => ({
|
|
|
135
135
|
type: import("vue").PropType<boolean>;
|
|
136
136
|
default: boolean;
|
|
137
137
|
};
|
|
138
|
-
distance: {
|
|
139
|
-
type: import("vue").PropType<number>;
|
|
140
|
-
default: number;
|
|
141
|
-
};
|
|
142
138
|
open: {
|
|
143
139
|
type: import("vue").PropType<boolean>;
|
|
144
140
|
required: true;
|
|
145
141
|
};
|
|
142
|
+
distance: {
|
|
143
|
+
type: import("vue").PropType<number>;
|
|
144
|
+
default: number;
|
|
145
|
+
};
|
|
146
146
|
skidding: {
|
|
147
147
|
type: import("vue").PropType<number>;
|
|
148
148
|
default: number;
|
|
@@ -172,14 +172,14 @@ declare const PopoverTypes: () => ({
|
|
|
172
172
|
type: import("vue").PropType<boolean>;
|
|
173
173
|
default: boolean;
|
|
174
174
|
};
|
|
175
|
-
distance: {
|
|
176
|
-
type: import("vue").PropType<number>;
|
|
177
|
-
default: number;
|
|
178
|
-
};
|
|
179
175
|
open: {
|
|
180
176
|
type: import("vue").PropType<boolean>;
|
|
181
177
|
required: true;
|
|
182
178
|
};
|
|
179
|
+
distance: {
|
|
180
|
+
type: import("vue").PropType<number>;
|
|
181
|
+
default: number;
|
|
182
|
+
};
|
|
183
183
|
skidding: {
|
|
184
184
|
type: import("vue").PropType<number>;
|
|
185
185
|
default: number;
|
|
@@ -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
|
+
};
|