@gitlab/ui 128.15.0 → 128.15.1

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.
@@ -213,6 +213,11 @@ var script = {
213
213
  },
214
214
  computedLocalCheckedWatcher(newValue, oldValue) {
215
215
  if (!looseEqual(newValue, oldValue)) {
216
+ /**
217
+ * Emitted when checked state is changed.
218
+ *
219
+ * @event input
220
+ */
216
221
  this.$emit('input', newValue);
217
222
  const {
218
223
  input
@@ -252,11 +257,20 @@ var script = {
252
257
 
253
258
  // Fire events in a `$nextTick()` to ensure the `v-model` is updated
254
259
  this.$nextTick(() => {
255
- // Change is only emitted on user interaction
260
+ /**
261
+ * Emitted when selected value(s) is changed due to user interaction.
262
+ *
263
+ * @event change
264
+ */
256
265
  this.$emit('change', localChecked);
257
266
 
258
267
  // If this is a child of a group, we emit a change event on it as well
259
268
  if (this.isGroup) {
269
+ /**
270
+ * Emitted when selected value(s) is changed due to user interaction.
271
+ *
272
+ * @event change
273
+ */
260
274
  this.group.$emit('change', localChecked);
261
275
  }
262
276
  this.$emit('indeterminate', indeterminate);
@@ -144,6 +144,11 @@ var script = {
144
144
  },
145
145
  localChecked(newValue, oldValue) {
146
146
  if (!looseEqual(newValue, oldValue)) {
147
+ /**
148
+ * Emitted when the checked value is changed.
149
+ *
150
+ * @event input
151
+ */
147
152
  this.$emit('input', newValue);
148
153
  }
149
154
  }