@gitlab/ui 128.17.1 → 129.1.0
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/dist/components/base/accordion/accordion_item.js +1 -1
- package/dist/components/base/avatar/avatar.js +1 -1
- package/dist/components/base/avatar/utils.js +1 -1
- package/dist/components/base/avatars_inline/avatars_inline.js +1 -2
- package/dist/components/base/breadcrumb/breadcrumb.js +1 -1
- package/dist/components/base/datepicker/datepicker.js +1 -1
- package/dist/components/base/daterange_picker/daterange_picker.js +1 -1
- package/dist/components/base/drawer/drawer.js +1 -1
- package/dist/components/base/dropdown/dropdown.js +1 -1
- package/dist/components/base/filtered_search/filtered_search.js +1 -2
- package/dist/components/base/filtered_search/filtered_search_token.js +1 -2
- package/dist/components/base/filtered_search/filtered_search_token_segment.js +1 -1
- package/dist/components/base/filtered_search/filtered_search_utils.js +1 -3
- package/dist/components/base/form/form_character_count/form_character_count.js +1 -1
- package/dist/components/base/form/form_checkbox/form_checkbox.js +5 -4
- package/dist/components/base/form/form_checkbox/form_checkbox_group.js +1 -4
- package/dist/components/base/form/form_combobox/form_combobox.js +1 -1
- package/dist/components/base/form/form_date/form_date.js +1 -1
- package/dist/components/base/form/form_fields/form_fields.js +1 -3
- package/dist/components/base/form/form_group/form_group.js +1 -3
- package/dist/components/base/form/form_input/form_input.js +1 -5
- package/dist/components/base/form/form_radio/form_radio.js +209 -11
- package/dist/components/base/form/form_select/form_select.js +1 -1
- package/dist/components/base/form/form_textarea/form_textarea.js +1 -1
- package/dist/components/base/infinite_scroll/infinite_scroll.js +1 -1
- package/dist/components/base/link/link.js +1 -6
- package/dist/components/base/new_dropdowns/base_dropdown/base_dropdown.js +1 -2
- package/dist/components/base/new_dropdowns/disclosure/disclosure_dropdown.js +1 -2
- package/dist/components/base/new_dropdowns/disclosure/disclosure_dropdown_group.js +1 -1
- package/dist/components/base/new_dropdowns/disclosure/utils.js +1 -1
- package/dist/components/base/new_dropdowns/listbox/listbox.js +1 -2
- package/dist/components/base/new_dropdowns/listbox/listbox_group.js +1 -1
- package/dist/components/base/new_dropdowns/listbox/utils.js +1 -2
- package/dist/components/base/pagination/pagination.js +1 -3
- package/dist/components/base/path/path.js +1 -2
- package/dist/components/base/skeleton_loader/skeleton_loader.js +1 -1
- package/dist/components/base/sorting/sorting.js +1 -1
- package/dist/components/base/tabs/tab/tab.js +1 -1
- package/dist/components/base/tabs/tabs/scrollable_tabs.js +1 -1
- package/dist/components/base/toast/toast.js +1 -1
- package/dist/components/base/toggle/toggle.js +1 -1
- package/dist/components/base/token_selector/helpers.js +1 -1
- package/dist/components/base/token_selector/token_selector.js +1 -1
- package/dist/components/base/token_selector/token_selector_dropdown.js +1 -1
- package/dist/components/charts/area/area.js +1 -1
- package/dist/components/charts/bar/bar.js +1 -2
- package/dist/components/charts/chart/chart.js +1 -1
- package/dist/components/charts/column/column.js +1 -1
- package/dist/components/charts/discrete_scatter/discrete_scatter.js +1 -1
- package/dist/components/charts/gauge/gauge.js +1 -3
- package/dist/components/charts/heatmap/heatmap.js +1 -1
- package/dist/components/charts/line/line.js +1 -1
- package/dist/components/charts/sparkline/sparkline.js +1 -2
- package/dist/components/charts/stacked_column/stacked_column.js +1 -2
- package/dist/components/dashboards/dashboard_layout/grid_layout/grid_layout.js +1 -1
- package/dist/components/dashboards/dashboard_panel/dashboard_panel.js +1 -2
- package/dist/components/dashboards/mock_data.js +1 -1
- package/dist/components/experimental/experiment_badge/experiment_badge.js +1 -1
- package/dist/components/utilities/intersection_observer/intersection_observer.js +1 -1
- package/dist/components/utilities/sprintf/sprintf.js +1 -2
- package/dist/directives/hover_load/hover_load.js +1 -1
- package/dist/directives/resize_observer/resize_observer.js +1 -1
- package/dist/utils/charts/config.js +1 -2
- package/dist/utils/charts/story_config.js +1 -1
- package/dist/utils/i18n.js +1 -1
- package/dist/utils/set_utils.js +1 -1
- package/dist/utils/use_mock_intersection_observer.js +1 -1
- package/package.json +4 -4
- package/src/components/base/accordion/accordion_item.vue +1 -1
- package/src/components/base/avatar/avatar.vue +1 -1
- package/src/components/base/avatar/utils.js +1 -1
- package/src/components/base/avatars_inline/avatars_inline.vue +1 -2
- package/src/components/base/breadcrumb/breadcrumb.vue +1 -1
- package/src/components/base/datepicker/datepicker.vue +1 -1
- package/src/components/base/daterange_picker/daterange_picker.vue +1 -1
- package/src/components/base/drawer/drawer.vue +1 -1
- package/src/components/base/dropdown/dropdown.vue +1 -1
- package/src/components/base/filtered_search/filtered_search.vue +1 -2
- package/src/components/base/filtered_search/filtered_search_token.vue +1 -2
- package/src/components/base/filtered_search/filtered_search_token_segment.vue +1 -1
- package/src/components/base/filtered_search/filtered_search_utils.js +1 -3
- package/src/components/base/form/form_character_count/form_character_count.vue +1 -1
- package/src/components/base/form/form_checkbox/form_checkbox.vue +5 -4
- package/src/components/base/form/form_checkbox/form_checkbox_group.vue +1 -4
- package/src/components/base/form/form_combobox/form_combobox.vue +1 -1
- package/src/components/base/form/form_date/form_date.vue +1 -1
- package/src/components/base/form/form_fields/form_fields.vue +1 -3
- package/src/components/base/form/form_group/form_group.vue +1 -3
- package/src/components/base/form/form_input/form_input.vue +1 -5
- package/src/components/base/form/form_radio/form_radio.vue +220 -31
- package/src/components/base/form/form_select/form_select.vue +1 -1
- package/src/components/base/form/form_textarea/form_textarea.vue +1 -1
- package/src/components/base/infinite_scroll/infinite_scroll.vue +1 -1
- package/src/components/base/link/link.vue +1 -6
- package/src/components/base/new_dropdowns/base_dropdown/base_dropdown.vue +1 -2
- package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown.vue +1 -2
- package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown_group.vue +1 -1
- package/src/components/base/new_dropdowns/disclosure/utils.js +1 -1
- package/src/components/base/new_dropdowns/listbox/listbox.vue +1 -2
- package/src/components/base/new_dropdowns/listbox/listbox_group.vue +1 -1
- package/src/components/base/new_dropdowns/listbox/utils.js +1 -2
- package/src/components/base/pagination/pagination.vue +1 -3
- package/src/components/base/path/path.vue +1 -2
- package/src/components/base/skeleton_loader/skeleton_loader.vue +1 -1
- package/src/components/base/sorting/sorting.vue +1 -1
- package/src/components/base/tabs/tab/tab.vue +1 -1
- package/src/components/base/tabs/tabs/scrollable_tabs.vue +1 -1
- package/src/components/base/toast/toast.js +1 -1
- package/src/components/base/toggle/toggle.vue +1 -1
- package/src/components/base/token_selector/helpers.js +1 -1
- package/src/components/base/token_selector/token_selector.vue +1 -1
- package/src/components/base/token_selector/token_selector_dropdown.vue +1 -1
- package/src/components/charts/area/area.vue +1 -1
- package/src/components/charts/bar/bar.vue +1 -2
- package/src/components/charts/chart/chart.vue +1 -1
- package/src/components/charts/column/column.vue +1 -1
- package/src/components/charts/discrete_scatter/discrete_scatter.vue +1 -1
- package/src/components/charts/gauge/gauge.vue +1 -3
- package/src/components/charts/heatmap/heatmap.vue +1 -1
- package/src/components/charts/line/line.vue +1 -1
- package/src/components/charts/sparkline/sparkline.vue +1 -2
- package/src/components/charts/stacked_column/stacked_column.vue +1 -2
- package/src/components/dashboards/dashboard_layout/grid_layout/grid_layout.vue +1 -1
- package/src/components/dashboards/dashboard_panel/dashboard_panel.vue +1 -2
- package/src/components/dashboards/mock_data.js +1 -1
- package/src/components/experimental/experiment_badge/experiment_badge.vue +1 -1
- package/src/components/utilities/intersection_observer/intersection_observer.vue +1 -1
- package/src/components/utilities/sprintf/sprintf.vue +1 -2
- package/src/directives/hover_load/hover_load.js +1 -1
- package/src/directives/resize_observer/resize_observer.js +1 -1
- package/src/utils/charts/config.js +1 -2
- package/src/utils/charts/story_config.js +1 -1
- package/src/utils/i18n.js +1 -1
- package/src/utils/set_utils.js +1 -1
- package/src/utils/use_mock_intersection_observer.js +1 -1
- package/tailwind.defaults.js +1 -1
|
@@ -1,51 +1,240 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import uniqueId from 'lodash/uniqueId';
|
|
3
|
+
import isBoolean from 'lodash/isBoolean';
|
|
4
|
+
import { looseEqual } from '../../../../vendor/bootstrap-vue/src/utils/loose-equal';
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
name: 'GlFormRadio',
|
|
8
|
-
|
|
8
|
+
inject: {
|
|
9
|
+
getGroup: {
|
|
10
|
+
// When we remove BFormRadioGroup from GlFormRadioGroup, we can rename
|
|
11
|
+
// the `getBvRadioGroup` provide to `getRadioGroup`.
|
|
12
|
+
from: 'getBvRadioGroup',
|
|
13
|
+
default: () => () => null,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
9
16
|
inheritAttrs: false,
|
|
10
17
|
model: {
|
|
11
|
-
prop:
|
|
12
|
-
event:
|
|
18
|
+
prop: 'checked',
|
|
19
|
+
event: 'input',
|
|
13
20
|
},
|
|
14
21
|
props: {
|
|
15
22
|
/**
|
|
16
|
-
*
|
|
23
|
+
* Used to set the `id` attribute on the rendered content, and used as the base to generate any additional element IDs as needed.
|
|
24
|
+
*/
|
|
25
|
+
id: {
|
|
26
|
+
type: String,
|
|
27
|
+
required: false,
|
|
28
|
+
default: undefined,
|
|
29
|
+
},
|
|
30
|
+
/**
|
|
31
|
+
* The current value of the radio. When bound to multiple radios, this is the value of the currently selected radio.
|
|
17
32
|
*/
|
|
18
33
|
checked: {
|
|
19
|
-
|
|
34
|
+
// `checked` prop can be any type
|
|
35
|
+
type: undefined,
|
|
36
|
+
required: false,
|
|
37
|
+
default: null,
|
|
38
|
+
},
|
|
39
|
+
/**
|
|
40
|
+
* When set to `true`, disables the component's functionality and places it in a disabled state.
|
|
41
|
+
*/
|
|
42
|
+
disabled: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
required: false,
|
|
45
|
+
default: false,
|
|
46
|
+
},
|
|
47
|
+
/**
|
|
48
|
+
* Sets the value of the `name` attribute on the form control.
|
|
49
|
+
*/
|
|
50
|
+
name: {
|
|
51
|
+
type: String,
|
|
52
|
+
required: false,
|
|
53
|
+
default: undefined,
|
|
54
|
+
},
|
|
55
|
+
/**
|
|
56
|
+
* Adds the `required` attribute to the form control.
|
|
57
|
+
*/
|
|
58
|
+
required: {
|
|
59
|
+
type: Boolean,
|
|
20
60
|
required: false,
|
|
21
61
|
default: false,
|
|
22
62
|
},
|
|
63
|
+
/**
|
|
64
|
+
* Controls the validation state appearance of the component. `true` for valid, `false` for invalid, or `null` for no validation state.
|
|
65
|
+
*/
|
|
66
|
+
state: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
required: false,
|
|
69
|
+
default: null,
|
|
70
|
+
},
|
|
71
|
+
/**
|
|
72
|
+
* Value returned when this radio is selected.
|
|
73
|
+
*/
|
|
74
|
+
value: {
|
|
75
|
+
// `value` prop can be any type
|
|
76
|
+
type: undefined,
|
|
77
|
+
required: false,
|
|
78
|
+
default: true,
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
data() {
|
|
82
|
+
const group = this.getGroup();
|
|
83
|
+
return {
|
|
84
|
+
internalId: this.id ? this.id : uniqueId('gitlab_ui_radio_'),
|
|
85
|
+
localChecked: group ? group.checked : this.checked,
|
|
86
|
+
};
|
|
87
|
+
},
|
|
88
|
+
computed: {
|
|
89
|
+
computedLocalChecked: {
|
|
90
|
+
get() {
|
|
91
|
+
return this.isGroup ? this.group.localChecked : this.localChecked;
|
|
92
|
+
},
|
|
93
|
+
set(value) {
|
|
94
|
+
if (this.isGroup) {
|
|
95
|
+
this.group.localChecked = value;
|
|
96
|
+
} else {
|
|
97
|
+
this.localChecked = value;
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
group() {
|
|
102
|
+
return this.getGroup();
|
|
103
|
+
},
|
|
104
|
+
isGroup() {
|
|
105
|
+
// Is this radio a child of radio-group?
|
|
106
|
+
return Boolean(this.group);
|
|
107
|
+
},
|
|
108
|
+
computedState() {
|
|
109
|
+
if (this.isGroup) return this.group.computedState;
|
|
110
|
+
return isBoolean(this.state) ? this.state : null;
|
|
111
|
+
},
|
|
112
|
+
stateClass() {
|
|
113
|
+
if (this.computedState === true) return 'is-valid';
|
|
114
|
+
if (this.computedState === false) return 'is-invalid';
|
|
115
|
+
return null;
|
|
116
|
+
},
|
|
117
|
+
computedAriaInvalid() {
|
|
118
|
+
return this.computedState === false ? 'true' : null;
|
|
119
|
+
},
|
|
120
|
+
isChecked() {
|
|
121
|
+
return looseEqual(this.computedLocalChecked, this.value);
|
|
122
|
+
},
|
|
123
|
+
isDisabled() {
|
|
124
|
+
// Child can be disabled while parent isn't, but is always disabled if group is
|
|
125
|
+
return this.isGroup ? this.group.disabled || this.disabled : this.disabled;
|
|
126
|
+
},
|
|
127
|
+
isRequired() {
|
|
128
|
+
// Required only works when a name is provided for the input(s)
|
|
129
|
+
// Child can only be required when parent is
|
|
130
|
+
// Groups will always have a name (either user supplied or auto generated)
|
|
131
|
+
return this.computedName && (this.isGroup ? this.group.required : this.required);
|
|
132
|
+
},
|
|
133
|
+
computedName() {
|
|
134
|
+
// Group name preferred over local name
|
|
135
|
+
return (this.isGroup ? this.group.groupName : this.name) || null;
|
|
136
|
+
},
|
|
137
|
+
computedAttrs() {
|
|
138
|
+
const { isDisabled: disabled, isRequired: required, value, isChecked: checked } = this;
|
|
139
|
+
|
|
140
|
+
return {
|
|
141
|
+
...this.$attrs,
|
|
142
|
+
id: this.internalId,
|
|
143
|
+
name: this.computedName,
|
|
144
|
+
disabled,
|
|
145
|
+
required,
|
|
146
|
+
value,
|
|
147
|
+
checked,
|
|
148
|
+
'aria-required': required || null,
|
|
149
|
+
'aria-invalid': this.computedAriaInvalid,
|
|
150
|
+
};
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
watch: {
|
|
154
|
+
checked(...args) {
|
|
155
|
+
this.checkedWatcher(...args);
|
|
156
|
+
},
|
|
157
|
+
computedLocalChecked(...args) {
|
|
158
|
+
this.computedLocalCheckedWatcher(...args);
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
methods: {
|
|
162
|
+
checkedWatcher(newValue) {
|
|
163
|
+
if (!looseEqual(newValue, this.computedLocalChecked)) {
|
|
164
|
+
this.computedLocalChecked = newValue;
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
computedLocalCheckedWatcher(newValue, oldValue) {
|
|
168
|
+
if (!looseEqual(newValue, oldValue)) {
|
|
169
|
+
/**
|
|
170
|
+
* Emitted when the selected value is changed
|
|
171
|
+
*
|
|
172
|
+
* @event input
|
|
173
|
+
* @type {boolean} current selected value of radio group
|
|
174
|
+
*/
|
|
175
|
+
this.$emit('input', newValue);
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
handleChange() {
|
|
179
|
+
const { value } = this;
|
|
180
|
+
|
|
181
|
+
// Update `computedLocalChecked`
|
|
182
|
+
this.computedLocalChecked = value;
|
|
183
|
+
|
|
184
|
+
// Fire events in a `$nextTick()` to ensure the `v-model` is updated
|
|
185
|
+
this.$nextTick(() => {
|
|
186
|
+
/**
|
|
187
|
+
* Emitted when the selected value is changed due to user interaction
|
|
188
|
+
*
|
|
189
|
+
* @event change
|
|
190
|
+
* @type {boolean} current selected value of radio group
|
|
191
|
+
*/
|
|
192
|
+
this.$emit('change', value);
|
|
193
|
+
|
|
194
|
+
// If this is a child of a group, we emit a change event on it as well
|
|
195
|
+
if (this.isGroup) {
|
|
196
|
+
/**
|
|
197
|
+
* Emitted when the selected value is changed due to user interaction
|
|
198
|
+
*
|
|
199
|
+
* @event change
|
|
200
|
+
* @type {boolean} current selected value of radio group
|
|
201
|
+
*/
|
|
202
|
+
this.group.$emit('change', value);
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
},
|
|
206
|
+
focus() {
|
|
207
|
+
if (!this.disabled) {
|
|
208
|
+
this.$refs.input?.focus();
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
blur() {
|
|
212
|
+
if (!this.disabled) {
|
|
213
|
+
this.$refs.input?.blur();
|
|
214
|
+
}
|
|
215
|
+
},
|
|
23
216
|
},
|
|
24
217
|
};
|
|
25
218
|
</script>
|
|
26
219
|
|
|
27
220
|
<template>
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
class="
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
<!-- @slot Content provided here will be shown beneath the radio. Typically used for help or descriptive text. -->
|
|
48
|
-
<slot name="help"></slot>
|
|
49
|
-
</p>
|
|
50
|
-
</b-form-radio>
|
|
221
|
+
<div class="gl-form-radio custom-radio custom-control">
|
|
222
|
+
<input
|
|
223
|
+
ref="input"
|
|
224
|
+
key="input"
|
|
225
|
+
v-bind="computedAttrs"
|
|
226
|
+
type="radio"
|
|
227
|
+
class="custom-control-input"
|
|
228
|
+
:class="stateClass"
|
|
229
|
+
@change="handleChange"
|
|
230
|
+
/>
|
|
231
|
+
<label :for="internalId" class="custom-control-label">
|
|
232
|
+
<!-- @slot Content to use for the label -->
|
|
233
|
+
<slot></slot>
|
|
234
|
+
<p v-if="Boolean($scopedSlots.help)" class="help-text">
|
|
235
|
+
<!-- @slot Content provided here will be shown beneath the radio. Typically used for help or descriptive text. -->
|
|
236
|
+
<slot name="help"></slot>
|
|
237
|
+
</p>
|
|
238
|
+
</label>
|
|
239
|
+
</div>
|
|
51
240
|
</template>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import uniqueId from 'lodash
|
|
2
|
+
import { uniqueId } from 'lodash-es';
|
|
3
3
|
import { BFormTextarea } from '../../../../vendor/bootstrap-vue/src/components/form-textarea/form-textarea';
|
|
4
4
|
import GlFormCharacterCount from '../form_character_count/form_character_count.vue';
|
|
5
5
|
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import isFunction from 'lodash
|
|
3
|
-
import isString from 'lodash/isString';
|
|
4
|
-
import isObject from 'lodash/isObject';
|
|
5
|
-
import toString from 'lodash/toString';
|
|
6
|
-
import isBoolean from 'lodash/isBoolean';
|
|
7
|
-
import concat from 'lodash/concat';
|
|
2
|
+
import { isFunction, isString, isObject, toString, isBoolean, concat } from 'lodash-es';
|
|
8
3
|
import { SafeLinkDirective, isExternalURL } from '../../../directives/safe_link/safe_link';
|
|
9
4
|
import { stopEvent } from '../../../utils/utils';
|
|
10
5
|
import { isEvent } from '../../../vendor/bootstrap-vue/src/utils/inspect';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Vue from 'vue';
|
|
2
|
-
import isFunction from 'lodash
|
|
2
|
+
import { isFunction } from 'lodash-es';
|
|
3
3
|
import { DISCLOSURE_DROPDOWN_ITEM_NAME, DISCLOSURE_DROPDOWN_GROUP_NAME } from './constants';
|
|
4
4
|
|
|
5
5
|
const itemValidator = (item) => item?.text?.length > 0 && !Array.isArray(item?.items);
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import debounce from 'lodash
|
|
3
|
-
import isFunction from 'lodash/isFunction';
|
|
4
|
-
import range from 'lodash/range';
|
|
2
|
+
import { debounce, isFunction, range } from 'lodash-es';
|
|
5
3
|
import { GlBreakpointInstance, breakpoints } from '../../../utils/breakpoints';
|
|
6
4
|
import { alignOptions, resizeDebounceTime } from '../../../utils/constants';
|
|
7
5
|
import { sprintf, translate } from '../../../utils/i18n';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import iconSpriteInfo from '@gitlab/svgs/dist/icons.json';
|
|
3
|
-
import uniqueId from 'lodash
|
|
4
|
-
import findLast from 'lodash/findLast';
|
|
3
|
+
import { uniqueId, findLast } from 'lodash-es';
|
|
5
4
|
import { GlResizeObserverDirective } from '../../../directives/resize_observer/resize_observer';
|
|
6
5
|
import GlIcon from '../icon/icon.vue';
|
|
7
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import uniqueId from 'lodash
|
|
2
|
+
import { uniqueId } from 'lodash-es';
|
|
3
3
|
import { GlTooltipDirective } from '../../../directives/tooltip/tooltip';
|
|
4
4
|
import GlButton from '../button/button.vue';
|
|
5
5
|
import GlButtonGroup from '../button_group/button_group.vue';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import isPlainObject from 'lodash
|
|
2
|
+
import { isPlainObject } from 'lodash-es';
|
|
3
3
|
import { BTab } from '../../../../vendor/bootstrap-vue/src/components/tabs/tab';
|
|
4
4
|
import GlBadge from '../../badge/badge.vue';
|
|
5
5
|
import { logWarning } from '../../../../utils/utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import debounce from 'lodash
|
|
2
|
+
import { debounce } from 'lodash-es';
|
|
3
3
|
import { GlResizeObserverDirective } from '../../../../directives/resize_observer/resize_observer';
|
|
4
4
|
import GlIcon from '../../icon/icon.vue';
|
|
5
5
|
import { translate } from '../../../../utils/i18n';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-default-export */
|
|
2
|
-
import isFunction from 'lodash
|
|
2
|
+
import { isFunction } from 'lodash-es';
|
|
3
3
|
// eslint-disable-next-line no-restricted-imports
|
|
4
4
|
import { ToastPlugin } from '../../../vendor/bootstrap-vue/src/components/toast/index';
|
|
5
5
|
import CloseButton from '../../shared_components/close_button/close_button.vue';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import merge from 'lodash
|
|
3
|
-
import truncate from 'lodash/truncate';
|
|
2
|
+
import { merge, truncate } from 'lodash-es';
|
|
4
3
|
import { grid, dataZoomAdjustments, mergeSeriesToOptions } from '../../../utils/charts/config';
|
|
5
4
|
import { CHART_DEFAULT_SERIES_STACK, HEIGHT_AUTO_CLASSES } from '../../../utils/charts/constants';
|
|
6
5
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import merge from 'lodash
|
|
3
|
-
import uniq from 'lodash/uniq';
|
|
4
|
-
import sortBy from 'lodash/sortBy';
|
|
2
|
+
import { merge, uniq, sortBy } from 'lodash-es';
|
|
5
3
|
import { gaugeNeutralHues, gaugeSafeHues, gaugeWarningHue } from '../../../utils/charts/theme';
|
|
6
4
|
import Chart from '../chart/chart.vue';
|
|
7
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import merge from 'lodash
|
|
2
|
+
import { merge } from 'lodash-es';
|
|
3
3
|
import { GL_COLOR_NEUTRAL_0, GL_COLOR_NEUTRAL_100 } from '../../../tokens/build/js/tokens';
|
|
4
4
|
import { getTooltipTitle, getTooltipContent } from '../../../utils/charts/config';
|
|
5
5
|
import { HEIGHT_AUTO_CLASSES } from '../../../utils/charts/constants';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import merge from 'lodash
|
|
3
|
-
import isNil from 'lodash/isNil';
|
|
2
|
+
import { merge, isNil } from 'lodash-es';
|
|
4
3
|
import { graphic } from 'echarts';
|
|
5
4
|
import { GlResizeObserverDirective } from '../../../directives/resize_observer/resize_observer';
|
|
6
5
|
import {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import uniqueId from 'lodash
|
|
3
|
-
import isObject from 'lodash/isObject';
|
|
2
|
+
import { uniqueId, isObject } from 'lodash-es';
|
|
4
3
|
import GlDisclosureDropdown from '../../base/new_dropdowns/disclosure/disclosure_dropdown.vue';
|
|
5
4
|
import GlIcon from '../../base/icon/icon.vue';
|
|
6
5
|
import GlLoadingIcon from '../../base/loading_icon/loading_icon.vue';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import castArray from 'lodash
|
|
2
|
-
import merge from 'lodash/merge';
|
|
1
|
+
import { castArray, merge } from 'lodash-es';
|
|
3
2
|
import { BLUE_500 } from '../../tokens/build/js/tokens';
|
|
4
3
|
import { GlBreakpointInstance } from '../breakpoints';
|
|
5
4
|
import { areDatesEqual } from '../datetime_utility';
|
package/src/utils/i18n.js
CHANGED