@dimailn/vuetify 2.7.2-alpha33 → 2.7.2-alpha35

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/vuetify.js CHANGED
@@ -19145,6 +19145,10 @@ var BaseItemGroup = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__["default"])
19145
19145
  type: String,
19146
19146
  default: 'v-item--active'
19147
19147
  },
19148
+ allowDeselect: {
19149
+ type: Boolean,
19150
+ default: true
19151
+ },
19148
19152
  mandatory: Boolean,
19149
19153
  max: {
19150
19154
  type: [Number, String],
@@ -19336,6 +19340,7 @@ var BaseItemGroup = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__["default"])
19336
19340
  updateSingle: function updateSingle(value) {
19337
19341
  var isSame = this.valueComparator(this.internalValue, value);
19338
19342
  if (this.mandatory && isSame) return;
19343
+ if (!this.allowDeselect && isSame) return;
19339
19344
  this.internalValue = isSame ? undefined : value;
19340
19345
  }
19341
19346
  },
@@ -30223,6 +30228,10 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_10__["default"])(_
30223
30228
  default: ''
30224
30229
  },
30225
30230
  alignWithTitle: Boolean,
30231
+ allowDeselect: {
30232
+ type: Boolean,
30233
+ default: false
30234
+ },
30226
30235
  backgroundColor: String,
30227
30236
  centerActive: Boolean,
30228
30237
  centered: Boolean,
@@ -30389,6 +30398,7 @@ var baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_10__["default"])(_
30389
30398
  height: Object(_util_helpers__WEBPACK_IMPORTED_MODULE_9__["convertToUnit"])(this.height)
30390
30399
  },
30391
30400
  activeClass: this.activeClass,
30401
+ allowDeselect: this.allowDeselect,
30392
30402
  centerActive: this.centerActive,
30393
30403
  dark: this.dark,
30394
30404
  light: this.light,
@@ -30578,6 +30588,9 @@ var __values = undefined && undefined.__values || function (o) {
30578
30588
  tabsBar: this
30579
30589
  };
30580
30590
  },
30591
+ props: {
30592
+ allowDeselect: Boolean
30593
+ },
30581
30594
  computed: {
30582
30595
  classes: function classes() {
30583
30596
  return __assign(__assign(__assign({}, _VSlideGroup_VSlideGroup__WEBPACK_IMPORTED_MODULE_1__["BaseSlideGroup"].computed.classes.call(this)), {
@@ -30946,7 +30959,7 @@ var dirtyTypes = ['color', 'file', 'time', 'date', 'datetime-local', 'week', 'mo
30946
30959
  default: 'text'
30947
30960
  }
30948
30961
  },
30949
- emits: ['update:modelValue', 'blur', 'focus', 'keydown', 'click:clear'],
30962
+ emits: ['update:modelValue', 'blur', 'focus', 'keydown', 'click:clear', 'click'],
30950
30963
  data: function data() {
30951
30964
  return {
30952
30965
  badInput: false,
@@ -31202,7 +31215,7 @@ var dirtyTypes = ['color', 'file', 'time', 'date', 'datetime-local', 'week', 'mo
31202
31215
 
31203
31216
  if (!this.showLabel) return null;
31204
31217
  var data = {
31205
- ref: "label",
31218
+ ref: 'label',
31206
31219
  absolute: true,
31207
31220
  color: this.validationState,
31208
31221
  dark: this.dark,
@@ -31286,7 +31299,8 @@ var dirtyTypes = ['color', 'file', 'time', 'date', 'datetime-local', 'week', 'mo
31286
31299
  return _this.$emit('blur', e);
31287
31300
  });
31288
31301
  },
31289
- onClick: function onClick() {
31302
+ onClick: function onClick(e) {
31303
+ this.$emit('click', e);
31290
31304
  if (this.isFocused || this.isDisabled || !this.$refs.input) return;
31291
31305
  this.$refs.input.focus();
31292
31306
  },
@@ -36917,7 +36931,7 @@ function () {
36917
36931
 
36918
36932
  Vuetify.install = _install__WEBPACK_IMPORTED_MODULE_0__["install"];
36919
36933
  Vuetify.installed = false;
36920
- Vuetify.version = "2.7.2-alpha33";
36934
+ Vuetify.version = "2.7.2-alpha35";
36921
36935
  Vuetify.config = {
36922
36936
  silent: false
36923
36937
  };