@mozaic-ds/vue 0.34.2-beta.0 → 0.35.0-beta.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.
@@ -9657,6 +9657,7 @@ module.exports = !fails(function () {
9657
9657
  var documentAll = typeof document == 'object' && document.all;
9658
9658
 
9659
9659
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
9660
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
9660
9661
  var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
9661
9662
 
9662
9663
  module.exports = {
@@ -12454,10 +12455,10 @@ var store = __webpack_require__(5465);
12454
12455
  (module.exports = function (key, value) {
12455
12456
  return store[key] || (store[key] = value !== undefined ? value : {});
12456
12457
  })('versions', []).push({
12457
- version: '3.26.1',
12458
+ version: '3.27.0',
12458
12459
  mode: IS_PURE ? 'pure' : 'global',
12459
12460
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
12460
- license: 'https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE',
12461
+ license: 'https://github.com/zloirock/core-js/blob/v3.27.0/LICENSE',
12461
12462
  source: 'https://github.com/zloirock/core-js'
12462
12463
  });
12463
12464
 
@@ -14027,11 +14028,13 @@ setToStringTag(Math, 'Math', true);
14027
14028
 
14028
14029
  "use strict";
14029
14030
 
14031
+ var $ = __webpack_require__(2109);
14032
+ var IS_PURE = __webpack_require__(1913);
14030
14033
  var DESCRIPTORS = __webpack_require__(9781);
14031
14034
  var global = __webpack_require__(7854);
14035
+ var path = __webpack_require__(857);
14032
14036
  var uncurryThis = __webpack_require__(1702);
14033
14037
  var isForced = __webpack_require__(4705);
14034
- var defineBuiltIn = __webpack_require__(8052);
14035
14038
  var hasOwn = __webpack_require__(2597);
14036
14039
  var inheritIfRequired = __webpack_require__(9587);
14037
14040
  var isPrototypeOf = __webpack_require__(7976);
@@ -14046,9 +14049,10 @@ var trim = (__webpack_require__(3111).trim);
14046
14049
 
14047
14050
  var NUMBER = 'Number';
14048
14051
  var NativeNumber = global[NUMBER];
14052
+ var PureNumberNamespace = path[NUMBER];
14049
14053
  var NumberPrototype = NativeNumber.prototype;
14050
14054
  var TypeError = global.TypeError;
14051
- var arraySlice = uncurryThis(''.slice);
14055
+ var stringSlice = uncurryThis(''.slice);
14052
14056
  var charCodeAt = uncurryThis(''.charCodeAt);
14053
14057
 
14054
14058
  // `ToNumeric` abstract operation
@@ -14076,7 +14080,7 @@ var toNumber = function (argument) {
14076
14080
  case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
14077
14081
  default: return +it;
14078
14082
  }
14079
- digits = arraySlice(it, 2);
14083
+ digits = stringSlice(it, 2);
14080
14084
  length = digits.length;
14081
14085
  for (index = 0; index < length; index++) {
14082
14086
  code = charCodeAt(digits, index);
@@ -14088,17 +14092,30 @@ var toNumber = function (argument) {
14088
14092
  } return +it;
14089
14093
  };
14090
14094
 
14095
+ var FORCED = isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'));
14096
+
14097
+ var calledWithNew = function (dummy) {
14098
+ // includes check on 1..constructor(foo) case
14099
+ return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); });
14100
+ };
14101
+
14091
14102
  // `Number` constructor
14092
14103
  // https://tc39.es/ecma262/#sec-number-constructor
14093
- if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
14094
- var NumberWrapper = function Number(value) {
14095
- var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
14096
- var dummy = this;
14097
- // check on 1..constructor(foo) case
14098
- return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); })
14099
- ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
14100
- };
14101
- for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : (
14104
+ var NumberWrapper = function Number(value) {
14105
+ var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
14106
+ return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n;
14107
+ };
14108
+
14109
+ NumberWrapper.prototype = NumberPrototype;
14110
+ if (FORCED && !IS_PURE) NumberPrototype.constructor = NumberWrapper;
14111
+
14112
+ $({ global: true, constructor: true, wrap: true, forced: FORCED }, {
14113
+ Number: NumberWrapper
14114
+ });
14115
+
14116
+ // Use `internal/copy-constructor-properties` helper in `core-js@4`
14117
+ var copyConstructorProperties = function (target, source) {
14118
+ for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : (
14102
14119
  // ES3:
14103
14120
  'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
14104
14121
  // ES2015 (in case, if modules with ES2015 Number statics required before):
@@ -14106,14 +14123,14 @@ if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumb
14106
14123
  // ESNext
14107
14124
  'fromString,range'
14108
14125
  ).split(','), j = 0, key; keys.length > j; j++) {
14109
- if (hasOwn(NativeNumber, key = keys[j]) && !hasOwn(NumberWrapper, key)) {
14110
- defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
14126
+ if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) {
14127
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
14111
14128
  }
14112
14129
  }
14113
- NumberWrapper.prototype = NumberPrototype;
14114
- NumberPrototype.constructor = NumberWrapper;
14115
- defineBuiltIn(global, NUMBER, NumberWrapper, { constructor: true });
14116
- }
14130
+ };
14131
+
14132
+ if (IS_PURE && PureNumberNamespace) copyConstructorProperties(path[NUMBER], PureNumberNamespace);
14133
+ if (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber);
14117
14134
 
14118
14135
 
14119
14136
  /***/ }),
@@ -16606,8 +16623,8 @@ MAccordion.install = function (Vue) {
16606
16623
  Vue.component(MAccordion.name, MAccordion);
16607
16624
  };
16608
16625
 
16609
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/autocomplete/MAutocomplete.vue?vue&type=template&id=6011a65e&
16610
- var MAutocompletevue_type_template_id_6011a65e_render = function render() {
16626
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/autocomplete/MAutocomplete.vue?vue&type=template&id=71c6b3a2&
16627
+ var MAutocompletevue_type_template_id_71c6b3a2_render = function render() {
16611
16628
  var _vm = this,
16612
16629
  _c = _vm._self._c;
16613
16630
  return _c('div', {
@@ -16618,9 +16635,7 @@ var MAutocompletevue_type_template_id_6011a65e_render = function render() {
16618
16635
  expression: "closeListBox"
16619
16636
  }],
16620
16637
  staticClass: "mc-autocomplete",
16621
- class: {
16622
- 'mc-autocomplete--multi': _vm.multiple
16623
- },
16638
+ class: _vm.classObject,
16624
16639
  style: _vm.setStyles
16625
16640
  }, [_c('div', {
16626
16641
  staticClass: "mc-autocomplete__main"
@@ -16639,11 +16654,6 @@ var MAutocompletevue_type_template_id_6011a65e_render = function render() {
16639
16654
  return _vm.clearListbox();
16640
16655
  }
16641
16656
  }
16642
- }) : _vm._e(), _vm.loading ? _c('MLoader', {
16643
- staticClass: "mc-autocomplete__loader",
16644
- attrs: {
16645
- "size": "s"
16646
- }
16647
16657
  }) : _vm._e(), _c('MTextInput', {
16648
16658
  attrs: {
16649
16659
  "id": _vm.id,
@@ -16651,6 +16661,9 @@ var MAutocompletevue_type_template_id_6011a65e_render = function render() {
16651
16661
  "is-invalid": _vm.invalid,
16652
16662
  "disabled": _vm.disabled,
16653
16663
  "size": _vm.size,
16664
+ "root-class": {
16665
+ 'is-invalid': _vm.invalid
16666
+ },
16654
16667
  "text-input-field-class": "mc-autocomplete__trigger",
16655
16668
  "icon-position": "left",
16656
16669
  "icon": "DisplaySearch48",
@@ -16669,7 +16682,12 @@ var MAutocompletevue_type_template_id_6011a65e_render = function render() {
16669
16682
  },
16670
16683
  expression: "inputValue"
16671
16684
  }
16672
- }), _vm.hasValues ? _c('button', {
16685
+ }), _vm.loading ? _c('MLoader', {
16686
+ staticClass: "mc-autocomplete__loader",
16687
+ attrs: {
16688
+ "size": "s"
16689
+ }
16690
+ }) : _vm._e(), _vm.hasValues ? _c('button', {
16673
16691
  staticClass: "mc-autocomplete__clear",
16674
16692
  attrs: {
16675
16693
  "type": "button"
@@ -16717,7 +16735,7 @@ var MAutocompletevue_type_template_id_6011a65e_render = function render() {
16717
16735
  }
16718
16736
  })], 1);
16719
16737
  };
16720
- var MAutocompletevue_type_template_id_6011a65e_staticRenderFns = [];
16738
+ var MAutocompletevue_type_template_id_71c6b3a2_staticRenderFns = [];
16721
16739
 
16722
16740
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
16723
16741
  var es_regexp_to_string = __webpack_require__(9714);
@@ -16922,9 +16940,7 @@ var es_regexp_test = __webpack_require__(7601);
16922
16940
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
16923
16941
  function _arrayLikeToArray(arr, len) {
16924
16942
  if (len == null || len > arr.length) len = arr.length;
16925
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
16926
- arr2[i] = arr[i];
16927
- }
16943
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
16928
16944
  return arr2;
16929
16945
  }
16930
16946
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
@@ -17163,14 +17179,14 @@ var MTag_component = normalizeComponent(
17163
17179
  )
17164
17180
 
17165
17181
  /* harmony default export */ var MTag = (MTag_component.exports);
17166
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/textinput/MTextInput.vue?vue&type=template&id=60f974b3&
17167
- var MTextInputvue_type_template_id_60f974b3_render = function render() {
17182
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/textinput/MTextInput.vue?vue&type=template&id=2a765e20&
17183
+ var MTextInputvue_type_template_id_2a765e20_render = function render() {
17168
17184
  var _vm = this,
17169
17185
  _c = _vm._self._c;
17170
17186
  return _vm.icon ? _c('div', {
17171
17187
  key: "icon-input",
17172
17188
  staticClass: "mc-left-icon-input",
17173
- class: _vm.cssFieldElementClass
17189
+ class: [_vm.cssFieldElementClass, _vm.rootClass]
17174
17190
  }, [_c('m-text-input-icon', {
17175
17191
  attrs: {
17176
17192
  "icon": _vm.icon
@@ -17184,7 +17200,7 @@ var MTextInputvue_type_template_id_60f974b3_render = function render() {
17184
17200
  class: _vm.cssFieldElementClass
17185
17201
  }, 'm-text-input-field', [_vm.$attrs, _vm.$props], false), _vm.$listeners));
17186
17202
  };
17187
- var MTextInputvue_type_template_id_60f974b3_staticRenderFns = [];
17203
+ var MTextInputvue_type_template_id_2a765e20_staticRenderFns = [];
17188
17204
 
17189
17205
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/textinput/MTextInputField.vue?vue&type=template&id=2e097c12&
17190
17206
  var MTextInputFieldvue_type_template_id_2e097c12_render = function render() {
@@ -17394,6 +17410,10 @@ var MTextInputIcon_component = normalizeComponent(
17394
17410
  type: String,
17395
17411
  default: null
17396
17412
  },
17413
+ rootClass: {
17414
+ type: String,
17415
+ default: null
17416
+ },
17397
17417
  textInputFieldClass: {
17398
17418
  type: String,
17399
17419
  default: null
@@ -17412,8 +17432,8 @@ var MTextInputIcon_component = normalizeComponent(
17412
17432
  ;
17413
17433
  var MTextInput_component = normalizeComponent(
17414
17434
  textinput_MTextInputvue_type_script_lang_js_,
17415
- MTextInputvue_type_template_id_60f974b3_render,
17416
- MTextInputvue_type_template_id_60f974b3_staticRenderFns,
17435
+ MTextInputvue_type_template_id_2a765e20_render,
17436
+ MTextInputvue_type_template_id_2a765e20_staticRenderFns,
17417
17437
  false,
17418
17438
  null,
17419
17439
  null,
@@ -17830,6 +17850,12 @@ var MListBox_component = normalizeComponent(
17830
17850
  };
17831
17851
  },
17832
17852
  computed: {
17853
+ classObject: function classObject() {
17854
+ return {
17855
+ 'mc-autocomplete--multi': this.multiple,
17856
+ 'mc-autocomplete--clearable': this.hasValues
17857
+ };
17858
+ },
17833
17859
  setStyles: function setStyles() {
17834
17860
  return {
17835
17861
  '--autocomplete-tag-width': this.tagWidth,
@@ -17867,18 +17893,20 @@ var MListBox_component = normalizeComponent(
17867
17893
  },
17868
17894
  immediate: true
17869
17895
  },
17870
- listboxValue: function listboxValue(val) {
17871
- var _this = this;
17872
- if (!this.multiple) {
17873
- var selectedItems = this.getSelectedItems(val);
17874
- var seletedLabels = selectedItems.map(function (item) {
17875
- return item[_this.dataTextExpr];
17876
- });
17877
- this.inputValue = seletedLabels.join(', ');
17878
- this.$emit('update:input', this.inputValue);
17879
- } else {
17880
- this.tagValue = val;
17881
- }
17896
+ listboxValue: {
17897
+ handler: function handler(val) {
17898
+ var _this = this;
17899
+ if (!this.multiple) {
17900
+ var selectedItems = this.getSelectedItems(val);
17901
+ var seletedLabels = selectedItems.map(function (item) {
17902
+ return item[_this.dataTextExpr];
17903
+ });
17904
+ this.inputValue = seletedLabels.join(', ');
17905
+ } else {
17906
+ this.tagValue = val;
17907
+ }
17908
+ },
17909
+ immediate: true
17882
17910
  },
17883
17911
  tagValue: function tagValue() {
17884
17912
  this.setTagWidth();
@@ -17981,10 +18009,10 @@ var MListBox_component = normalizeComponent(
17981
18009
  });
17982
18010
  ;// CONCATENATED MODULE: ./src/components/autocomplete/MAutocomplete.vue?vue&type=script&lang=js&
17983
18011
  /* harmony default export */ var autocomplete_MAutocompletevue_type_script_lang_js_ = (MAutocompletevue_type_script_lang_js_);
17984
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-84.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/autocomplete/MAutocomplete.vue?vue&type=style&index=0&id=6011a65e&prod&lang=scss&
18012
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-84.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/autocomplete/MAutocomplete.vue?vue&type=style&index=0&id=71c6b3a2&prod&lang=scss&
17985
18013
  // extracted by mini-css-extract-plugin
17986
18014
 
17987
- ;// CONCATENATED MODULE: ./src/components/autocomplete/MAutocomplete.vue?vue&type=style&index=0&id=6011a65e&prod&lang=scss&
18015
+ ;// CONCATENATED MODULE: ./src/components/autocomplete/MAutocomplete.vue?vue&type=style&index=0&id=71c6b3a2&prod&lang=scss&
17988
18016
 
17989
18017
  ;// CONCATENATED MODULE: ./src/components/autocomplete/MAutocomplete.vue
17990
18018
 
@@ -17997,8 +18025,8 @@ var MListBox_component = normalizeComponent(
17997
18025
 
17998
18026
  var MAutocomplete_component = normalizeComponent(
17999
18027
  autocomplete_MAutocompletevue_type_script_lang_js_,
18000
- MAutocompletevue_type_template_id_6011a65e_render,
18001
- MAutocompletevue_type_template_id_6011a65e_staticRenderFns,
18028
+ MAutocompletevue_type_template_id_71c6b3a2_render,
18029
+ MAutocompletevue_type_template_id_71c6b3a2_staticRenderFns,
18002
18030
  false,
18003
18031
  null,
18004
18032
  null,
@@ -19361,9 +19389,7 @@ function _regeneratorRuntime() {
19361
19389
  if (!isNaN(iterable.length)) {
19362
19390
  var i = -1,
19363
19391
  next = function next() {
19364
- for (; ++i < iterable.length;) {
19365
- if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
19366
- }
19392
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
19367
19393
  return next.value = undefined, next.done = !0, next;
19368
19394
  };
19369
19395
  return next.next = next;
@@ -19409,9 +19435,7 @@ function _regeneratorRuntime() {
19409
19435
  }), exports.keys = function (val) {
19410
19436
  var object = Object(val),
19411
19437
  keys = [];
19412
- for (var key in object) {
19413
- keys.push(key);
19414
- }
19438
+ for (var key in object) keys.push(key);
19415
19439
  return keys.reverse(), function next() {
19416
19440
  for (; keys.length;) {
19417
19441
  var key = keys.pop();
@@ -19422,9 +19446,7 @@ function _regeneratorRuntime() {
19422
19446
  }, exports.values = values, Context.prototype = {
19423
19447
  constructor: Context,
19424
19448
  reset: function reset(skipTempReset) {
19425
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
19426
- "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
19427
- }
19449
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
19428
19450
  },
19429
19451
  stop: function stop() {
19430
19452
  this.done = !0;
@@ -20352,25 +20374,23 @@ var Sorting = {
20352
20374
  var _this2 = this;
20353
20375
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
20354
20376
  return _regeneratorRuntime().wrap(function _callee$(_context) {
20355
- while (1) {
20356
- switch (_context.prev = _context.next) {
20357
- case 0:
20358
- if (!(deepEqual(newValue, oldValue) && !(newValue instanceof Function))) {
20359
- _context.next = 2;
20360
- break;
20361
- }
20362
- return _context.abrupt("return");
20363
- case 2:
20364
- if (!_this2.created) {
20365
- _context.next = 5;
20366
- break;
20367
- }
20377
+ while (1) switch (_context.prev = _context.next) {
20378
+ case 0:
20379
+ if (!(deepEqual(newValue, oldValue) && !(newValue instanceof Function))) {
20380
+ _context.next = 2;
20381
+ break;
20382
+ }
20383
+ return _context.abrupt("return");
20384
+ case 2:
20385
+ if (!_this2.created) {
20368
20386
  _context.next = 5;
20369
- return _this2.load();
20370
- case 5:
20371
- case "end":
20372
- return _context.stop();
20373
- }
20387
+ break;
20388
+ }
20389
+ _context.next = 5;
20390
+ return _this2.load();
20391
+ case 5:
20392
+ case "end":
20393
+ return _context.stop();
20374
20394
  }
20375
20395
  }, _callee);
20376
20396
  }))();
@@ -20382,21 +20402,19 @@ var Sorting = {
20382
20402
  var _this3 = this;
20383
20403
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
20384
20404
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
20385
- while (1) {
20386
- switch (_context2.prev = _context2.next) {
20387
- case 0:
20388
- _this3.headersMapped = headersMapped(newValue);
20389
- _this3.$emit('headers-changed', newValue);
20390
- if (!_this3.created) {
20391
- _context2.next = 5;
20392
- break;
20393
- }
20405
+ while (1) switch (_context2.prev = _context2.next) {
20406
+ case 0:
20407
+ _this3.headersMapped = headersMapped(newValue);
20408
+ _this3.$emit('headers-changed', newValue);
20409
+ if (!_this3.created) {
20394
20410
  _context2.next = 5;
20395
- return _this3.load();
20396
- case 5:
20397
- case "end":
20398
- return _context2.stop();
20399
- }
20411
+ break;
20412
+ }
20413
+ _context2.next = 5;
20414
+ return _this3.load();
20415
+ case 5:
20416
+ case "end":
20417
+ return _context2.stop();
20400
20418
  }
20401
20419
  }, _callee2);
20402
20420
  }))();
@@ -20417,26 +20435,24 @@ var Sorting = {
20417
20435
  var _this4 = this;
20418
20436
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
20419
20437
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
20420
- while (1) {
20421
- switch (_context3.prev = _context3.next) {
20422
- case 0:
20423
- if (!deepEqual(newValue, oldValue)) {
20424
- _context3.next = 2;
20425
- break;
20426
- }
20427
- return _context3.abrupt("return");
20428
- case 2:
20429
- _this4.pagingOptions = _objectSpread2(_objectSpread2({}, Paging.defaultOptions), _this4.paging);
20430
- if (!_this4.created) {
20431
- _context3.next = 6;
20432
- break;
20433
- }
20438
+ while (1) switch (_context3.prev = _context3.next) {
20439
+ case 0:
20440
+ if (!deepEqual(newValue, oldValue)) {
20441
+ _context3.next = 2;
20442
+ break;
20443
+ }
20444
+ return _context3.abrupt("return");
20445
+ case 2:
20446
+ _this4.pagingOptions = _objectSpread2(_objectSpread2({}, Paging.defaultOptions), _this4.paging);
20447
+ if (!_this4.created) {
20434
20448
  _context3.next = 6;
20435
- return _this4.load();
20436
- case 6:
20437
- case "end":
20438
- return _context3.stop();
20439
- }
20449
+ break;
20450
+ }
20451
+ _context3.next = 6;
20452
+ return _this4.load();
20453
+ case 6:
20454
+ case "end":
20455
+ return _context3.stop();
20440
20456
  }
20441
20457
  }, _callee3);
20442
20458
  }))();
@@ -20478,77 +20494,75 @@ var Sorting = {
20478
20494
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
20479
20495
  var options, data, sortedKeys, result, _ref, _data, total;
20480
20496
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
20481
- while (1) {
20482
- switch (_context4.prev = _context4.next) {
20483
- case 0:
20484
- _this5.loading = true;
20485
- if (!(_this5.source == null)) {
20486
- _context4.next = 3;
20487
- break;
20488
- }
20489
- return _context4.abrupt("return");
20490
- case 3:
20491
- _context4.prev = 3;
20492
- options = buildOptions(_this5.pagingOptions.enabled, _this5.getPageValue, _this5.getPagingIndex, _this5.getPagingSize, _this5.getSortHeader);
20493
- if (!Array.isArray(_this5.source)) {
20494
- _context4.next = 14;
20495
- break;
20496
- }
20497
- data = _this5.source.slice();
20498
- sortedKeys = Object.keys(options.sort);
20499
- if (sortedKeys.length > 0) {
20500
- data = data.sort(orderedArraySorted(sortedKeys.map(function (key) {
20501
- return {
20502
- fieldExpr: key,
20503
- sortOrder: options.sort[key]
20504
- };
20505
- })));
20506
- }
20507
- if (options.skip != null && options.take != null) {
20508
- data = data.splice(options.skip, options.take);
20509
- }
20510
- _this5.data = data;
20511
- _this5.total = _this5.source.length;
20497
+ while (1) switch (_context4.prev = _context4.next) {
20498
+ case 0:
20499
+ _this5.loading = true;
20500
+ if (!(_this5.source == null)) {
20501
+ _context4.next = 3;
20502
+ break;
20503
+ }
20504
+ return _context4.abrupt("return");
20505
+ case 3:
20506
+ _context4.prev = 3;
20507
+ options = buildOptions(_this5.pagingOptions.enabled, _this5.getPageValue, _this5.getPagingIndex, _this5.getPagingSize, _this5.getSortHeader);
20508
+ if (!Array.isArray(_this5.source)) {
20509
+ _context4.next = 14;
20510
+ break;
20511
+ }
20512
+ data = _this5.source.slice();
20513
+ sortedKeys = Object.keys(options.sort);
20514
+ if (sortedKeys.length > 0) {
20515
+ data = data.sort(orderedArraySorted(sortedKeys.map(function (key) {
20516
+ return {
20517
+ fieldExpr: key,
20518
+ sortOrder: options.sort[key]
20519
+ };
20520
+ })));
20521
+ }
20522
+ if (options.skip != null && options.take != null) {
20523
+ data = data.splice(options.skip, options.take);
20524
+ }
20525
+ _this5.data = data;
20526
+ _this5.total = _this5.source.length;
20527
+ _context4.next = 28;
20528
+ break;
20529
+ case 14:
20530
+ if (!(_this5.source instanceof Function)) {
20512
20531
  _context4.next = 28;
20513
20532
  break;
20514
- case 14:
20515
- if (!(_this5.source instanceof Function)) {
20516
- _context4.next = 28;
20517
- break;
20518
- }
20519
- result = _this5.source(options);
20520
- if (!isPromise(result)) {
20521
- _context4.next = 22;
20522
- break;
20523
- }
20524
- _context4.next = 19;
20525
- return result;
20526
- case 19:
20527
- _context4.t0 = _context4.sent;
20528
- _context4.next = 23;
20533
+ }
20534
+ result = _this5.source(options);
20535
+ if (!isPromise(result)) {
20536
+ _context4.next = 22;
20529
20537
  break;
20530
- case 22:
20531
- _context4.t0 = result;
20532
- case 23:
20533
- _ref = _context4.t0;
20534
- _data = _ref.data;
20535
- total = _ref.total;
20536
- _this5.data = _data;
20537
- _this5.total = total;
20538
- case 28:
20539
- if (_this5.data) {
20540
- autoGenerateHeaders(_this5.data, _this5.headersMapped);
20541
- _this5.sourceMapped = _this5.data;
20542
- }
20543
- _this5.$emit('data-changed', _this5.sourceMapped);
20544
- case 30:
20545
- _context4.prev = 30;
20546
- _this5.loading = false;
20547
- return _context4.finish(30);
20548
- case 33:
20549
- case "end":
20550
- return _context4.stop();
20551
- }
20538
+ }
20539
+ _context4.next = 19;
20540
+ return result;
20541
+ case 19:
20542
+ _context4.t0 = _context4.sent;
20543
+ _context4.next = 23;
20544
+ break;
20545
+ case 22:
20546
+ _context4.t0 = result;
20547
+ case 23:
20548
+ _ref = _context4.t0;
20549
+ _data = _ref.data;
20550
+ total = _ref.total;
20551
+ _this5.data = _data;
20552
+ _this5.total = total;
20553
+ case 28:
20554
+ if (_this5.data) {
20555
+ autoGenerateHeaders(_this5.data, _this5.headersMapped);
20556
+ _this5.sourceMapped = _this5.data;
20557
+ }
20558
+ _this5.$emit('data-changed', _this5.sourceMapped);
20559
+ case 30:
20560
+ _context4.prev = 30;
20561
+ _this5.loading = false;
20562
+ return _context4.finish(30);
20563
+ case 33:
20564
+ case "end":
20565
+ return _context4.stop();
20552
20566
  }
20553
20567
  }, _callee4, null, [[3,, 30, 33]]);
20554
20568
  }))();
@@ -20557,18 +20571,16 @@ var Sorting = {
20557
20571
  var _this6 = this;
20558
20572
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
20559
20573
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
20560
- while (1) {
20561
- switch (_context5.prev = _context5.next) {
20562
- case 0:
20563
- _this6.pagingOptions.index = +index;
20564
- _context5.next = 3;
20565
- return _this6.load();
20566
- case 3:
20567
- _this6.$emit('page-changed', index);
20568
- case 4:
20569
- case "end":
20570
- return _context5.stop();
20571
- }
20574
+ while (1) switch (_context5.prev = _context5.next) {
20575
+ case 0:
20576
+ _this6.pagingOptions.index = +index;
20577
+ _context5.next = 3;
20578
+ return _this6.load();
20579
+ case 3:
20580
+ _this6.$emit('page-changed', index);
20581
+ case 4:
20582
+ case "end":
20583
+ return _context5.stop();
20572
20584
  }
20573
20585
  }, _callee5);
20574
20586
  }))();
@@ -20577,36 +20589,34 @@ var Sorting = {
20577
20589
  var _this7 = this;
20578
20590
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
20579
20591
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
20580
- while (1) {
20581
- switch (_context6.prev = _context6.next) {
20582
- case 0:
20583
- if (_this7.sortingOptions.mode === 'single' && !_this7.getSortHeader.includes(e.header)) {
20584
- // Reinitialize sortOrder because there is only one sortable header
20585
- _this7.headersMapped.forEach(function (header) {
20586
- header.sortOrder = null;
20587
- });
20588
- }
20589
- _context6.t0 = e.header.sortOrder;
20590
- _context6.next = _context6.t0 === 'asc' ? 4 : _context6.t0 === 'desc' ? 6 : 8;
20591
- break;
20592
- case 4:
20593
- e.header.sortOrder = 'desc';
20594
- return _context6.abrupt("break", 10);
20595
- case 6:
20596
- e.header.sortOrder = null;
20597
- return _context6.abrupt("break", 10);
20598
- case 8:
20599
- e.header.sortOrder = 'asc';
20600
- return _context6.abrupt("break", 10);
20601
- case 10:
20602
- _context6.next = 12;
20603
- return _this7.load();
20604
- case 12:
20605
- _this7.$emit('sort-order-changed', e.header);
20606
- case 13:
20607
- case "end":
20608
- return _context6.stop();
20609
- }
20592
+ while (1) switch (_context6.prev = _context6.next) {
20593
+ case 0:
20594
+ if (_this7.sortingOptions.mode === 'single' && !_this7.getSortHeader.includes(e.header)) {
20595
+ // Reinitialize sortOrder because there is only one sortable header
20596
+ _this7.headersMapped.forEach(function (header) {
20597
+ header.sortOrder = null;
20598
+ });
20599
+ }
20600
+ _context6.t0 = e.header.sortOrder;
20601
+ _context6.next = _context6.t0 === 'asc' ? 4 : _context6.t0 === 'desc' ? 6 : 8;
20602
+ break;
20603
+ case 4:
20604
+ e.header.sortOrder = 'desc';
20605
+ return _context6.abrupt("break", 10);
20606
+ case 6:
20607
+ e.header.sortOrder = null;
20608
+ return _context6.abrupt("break", 10);
20609
+ case 8:
20610
+ e.header.sortOrder = 'asc';
20611
+ return _context6.abrupt("break", 10);
20612
+ case 10:
20613
+ _context6.next = 12;
20614
+ return _this7.load();
20615
+ case 12:
20616
+ _this7.$emit('sort-order-changed', e.header);
20617
+ case 13:
20618
+ case "end":
20619
+ return _context6.stop();
20610
20620
  }
20611
20621
  }, _callee6);
20612
20622
  }))();
@@ -20615,18 +20625,16 @@ var Sorting = {
20615
20625
  var _this8 = this;
20616
20626
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
20617
20627
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
20618
- while (1) {
20619
- switch (_context7.prev = _context7.next) {
20620
- case 0:
20621
- _this8.pagerOptions.value = +value;
20622
- _context7.next = 3;
20623
- return _this8.load();
20624
- case 3:
20625
- _this8.$emit('page-size-changed', value);
20626
- case 4:
20627
- case "end":
20628
- return _context7.stop();
20629
- }
20628
+ while (1) switch (_context7.prev = _context7.next) {
20629
+ case 0:
20630
+ _this8.pagerOptions.value = +value;
20631
+ _context7.next = 3;
20632
+ return _this8.load();
20633
+ case 3:
20634
+ _this8.$emit('page-size-changed', value);
20635
+ case 4:
20636
+ case "end":
20637
+ return _context7.stop();
20630
20638
  }
20631
20639
  }, _callee7);
20632
20640
  }))();
@@ -22084,8 +22092,8 @@ MLink.install = function (Vue) {
22084
22092
  Vue.component(MLink.name, MLink);
22085
22093
  };
22086
22094
 
22087
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/listbox/MListBoxActions.vue?vue&type=template&id=27542c5d&
22088
- var MListBoxActionsvue_type_template_id_27542c5d_render = function render() {
22095
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/listbox/MListBoxActions.vue?vue&type=template&id=dc7f0b5a&
22096
+ var MListBoxActionsvue_type_template_id_dc7f0b5a_render = function render() {
22089
22097
  var _vm = this,
22090
22098
  _c = _vm._self._c;
22091
22099
  return _c('div', {
@@ -22107,7 +22115,9 @@ var MListBoxActionsvue_type_template_id_27542c5d_render = function render() {
22107
22115
  "type": "button"
22108
22116
  },
22109
22117
  on: {
22110
- "click": _vm.onClickTrigger
22118
+ "click": function click($event) {
22119
+ return _vm.onSwitch($event);
22120
+ }
22111
22121
  }
22112
22122
  }, [_c('m-icon', {
22113
22123
  attrs: {
@@ -22121,7 +22131,8 @@ var MListBoxActionsvue_type_template_id_27542c5d_render = function render() {
22121
22131
  staticClass: "mc-listbox-options__container",
22122
22132
  class: {
22123
22133
  'is-open': _vm.isOpen,
22124
- 'align-right': _vm.position == 'right'
22134
+ 'align-right': _vm.position == 'right',
22135
+ 'align-top': _vm.displayTop
22125
22136
  },
22126
22137
  attrs: {
22127
22138
  "role": "listbox",
@@ -22166,7 +22177,7 @@ var MListBoxActionsvue_type_template_id_27542c5d_render = function render() {
22166
22177
  }), 0);
22167
22178
  }), 0)]);
22168
22179
  };
22169
- var MListBoxActionsvue_type_template_id_27542c5d_staticRenderFns = [];
22180
+ var MListBoxActionsvue_type_template_id_dc7f0b5a_staticRenderFns = [];
22170
22181
 
22171
22182
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/listbox/MListBoxActions.vue?vue&type=script&lang=js&
22172
22183
 
@@ -22221,6 +22232,7 @@ var MListBoxActionsvue_type_template_id_27542c5d_staticRenderFns = [];
22221
22232
  data: function data() {
22222
22233
  return {
22223
22234
  isOpen: this.open,
22235
+ displayTop: false,
22224
22236
  posTop: '0px',
22225
22237
  hasDataTable: false
22226
22238
  };
@@ -22256,19 +22268,25 @@ var MListBoxActionsvue_type_template_id_27542c5d_staticRenderFns = [];
22256
22268
  onClickOutside: function onClickOutside() {
22257
22269
  this.isOpen = false;
22258
22270
  },
22271
+ onSwitch: function onSwitch(e) {
22272
+ if (!this.isOpen) {
22273
+ if (this.$refs.listbox.clientHeight + e.clientY >= window.innerHeight) {
22274
+ this.displayTop = true;
22275
+ }
22276
+ if (this.hasDataTable) {
22277
+ var buttonSizes = this.$refs.trigger.getBoundingClientRect();
22278
+ this.posTop = buttonSizes.top + buttonSizes.height;
22279
+ }
22280
+ }
22281
+ this.isOpen = !this.isOpen;
22282
+ },
22259
22283
  onClickItem: function onClickItem(item, listIndex, itemIndex) {
22260
22284
  var valToEmit = Object.assign({
22261
22285
  listIndex: listIndex,
22262
22286
  itemIndex: itemIndex
22263
22287
  }, item);
22264
- this.$emit('update:itemSelected', valToEmit);
22265
- },
22266
- onClickTrigger: function onClickTrigger() {
22267
- this.isOpen = !this.isOpen;
22268
- if (this.isOpen && this.hasDataTable) {
22269
- var buttonHeight = this.$refs.trigger.getBoundingClientRect().height;
22270
- this.posTop = this.$refs.trigger.getBoundingClientRect().top + buttonHeight;
22271
- }
22288
+ this.$emit('update:itemSelected', valToEmit); // TODO: deprecated
22289
+ this.$emit('item-clicked', valToEmit);
22272
22290
  },
22273
22291
  handleScroll: function handleScroll() {
22274
22292
  this.isOpen = false;
@@ -22277,10 +22295,10 @@ var MListBoxActionsvue_type_template_id_27542c5d_staticRenderFns = [];
22277
22295
  });
22278
22296
  ;// CONCATENATED MODULE: ./src/components/listbox/MListBoxActions.vue?vue&type=script&lang=js&
22279
22297
  /* harmony default export */ var listbox_MListBoxActionsvue_type_script_lang_js_ = (MListBoxActionsvue_type_script_lang_js_);
22280
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-84.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/listbox/MListBoxActions.vue?vue&type=style&index=0&id=27542c5d&prod&lang=scss&
22298
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-84.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/listbox/MListBoxActions.vue?vue&type=style&index=0&id=dc7f0b5a&prod&lang=scss&
22281
22299
  // extracted by mini-css-extract-plugin
22282
22300
 
22283
- ;// CONCATENATED MODULE: ./src/components/listbox/MListBoxActions.vue?vue&type=style&index=0&id=27542c5d&prod&lang=scss&
22301
+ ;// CONCATENATED MODULE: ./src/components/listbox/MListBoxActions.vue?vue&type=style&index=0&id=dc7f0b5a&prod&lang=scss&
22284
22302
 
22285
22303
  ;// CONCATENATED MODULE: ./src/components/listbox/MListBoxActions.vue
22286
22304
 
@@ -22293,8 +22311,8 @@ var MListBoxActionsvue_type_template_id_27542c5d_staticRenderFns = [];
22293
22311
 
22294
22312
  var MListBoxActions_component = normalizeComponent(
22295
22313
  listbox_MListBoxActionsvue_type_script_lang_js_,
22296
- MListBoxActionsvue_type_template_id_27542c5d_render,
22297
- MListBoxActionsvue_type_template_id_27542c5d_staticRenderFns,
22314
+ MListBoxActionsvue_type_template_id_dc7f0b5a_render,
22315
+ MListBoxActionsvue_type_template_id_dc7f0b5a_staticRenderFns,
22298
22316
  false,
22299
22317
  null,
22300
22318
  null,