@mozaic-ds/vue 0.34.1 → 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.
@@ -9647,6 +9647,7 @@ module.exports = !fails(function () {
9647
9647
  var documentAll = typeof document == 'object' && document.all;
9648
9648
 
9649
9649
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
9650
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
9650
9651
  var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
9651
9652
 
9652
9653
  module.exports = {
@@ -12444,10 +12445,10 @@ var store = __webpack_require__(5465);
12444
12445
  (module.exports = function (key, value) {
12445
12446
  return store[key] || (store[key] = value !== undefined ? value : {});
12446
12447
  })('versions', []).push({
12447
- version: '3.26.1',
12448
+ version: '3.27.0',
12448
12449
  mode: IS_PURE ? 'pure' : 'global',
12449
12450
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
12450
- license: 'https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE',
12451
+ license: 'https://github.com/zloirock/core-js/blob/v3.27.0/LICENSE',
12451
12452
  source: 'https://github.com/zloirock/core-js'
12452
12453
  });
12453
12454
 
@@ -14017,11 +14018,13 @@ setToStringTag(Math, 'Math', true);
14017
14018
 
14018
14019
  "use strict";
14019
14020
 
14021
+ var $ = __webpack_require__(2109);
14022
+ var IS_PURE = __webpack_require__(1913);
14020
14023
  var DESCRIPTORS = __webpack_require__(9781);
14021
14024
  var global = __webpack_require__(7854);
14025
+ var path = __webpack_require__(857);
14022
14026
  var uncurryThis = __webpack_require__(1702);
14023
14027
  var isForced = __webpack_require__(4705);
14024
- var defineBuiltIn = __webpack_require__(8052);
14025
14028
  var hasOwn = __webpack_require__(2597);
14026
14029
  var inheritIfRequired = __webpack_require__(9587);
14027
14030
  var isPrototypeOf = __webpack_require__(7976);
@@ -14036,9 +14039,10 @@ var trim = (__webpack_require__(3111).trim);
14036
14039
 
14037
14040
  var NUMBER = 'Number';
14038
14041
  var NativeNumber = global[NUMBER];
14042
+ var PureNumberNamespace = path[NUMBER];
14039
14043
  var NumberPrototype = NativeNumber.prototype;
14040
14044
  var TypeError = global.TypeError;
14041
- var arraySlice = uncurryThis(''.slice);
14045
+ var stringSlice = uncurryThis(''.slice);
14042
14046
  var charCodeAt = uncurryThis(''.charCodeAt);
14043
14047
 
14044
14048
  // `ToNumeric` abstract operation
@@ -14066,7 +14070,7 @@ var toNumber = function (argument) {
14066
14070
  case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
14067
14071
  default: return +it;
14068
14072
  }
14069
- digits = arraySlice(it, 2);
14073
+ digits = stringSlice(it, 2);
14070
14074
  length = digits.length;
14071
14075
  for (index = 0; index < length; index++) {
14072
14076
  code = charCodeAt(digits, index);
@@ -14078,17 +14082,30 @@ var toNumber = function (argument) {
14078
14082
  } return +it;
14079
14083
  };
14080
14084
 
14085
+ var FORCED = isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'));
14086
+
14087
+ var calledWithNew = function (dummy) {
14088
+ // includes check on 1..constructor(foo) case
14089
+ return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); });
14090
+ };
14091
+
14081
14092
  // `Number` constructor
14082
14093
  // https://tc39.es/ecma262/#sec-number-constructor
14083
- if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
14084
- var NumberWrapper = function Number(value) {
14085
- var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
14086
- var dummy = this;
14087
- // check on 1..constructor(foo) case
14088
- return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); })
14089
- ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
14090
- };
14091
- for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : (
14094
+ var NumberWrapper = function Number(value) {
14095
+ var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
14096
+ return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n;
14097
+ };
14098
+
14099
+ NumberWrapper.prototype = NumberPrototype;
14100
+ if (FORCED && !IS_PURE) NumberPrototype.constructor = NumberWrapper;
14101
+
14102
+ $({ global: true, constructor: true, wrap: true, forced: FORCED }, {
14103
+ Number: NumberWrapper
14104
+ });
14105
+
14106
+ // Use `internal/copy-constructor-properties` helper in `core-js@4`
14107
+ var copyConstructorProperties = function (target, source) {
14108
+ for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : (
14092
14109
  // ES3:
14093
14110
  'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
14094
14111
  // ES2015 (in case, if modules with ES2015 Number statics required before):
@@ -14096,14 +14113,14 @@ if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumb
14096
14113
  // ESNext
14097
14114
  'fromString,range'
14098
14115
  ).split(','), j = 0, key; keys.length > j; j++) {
14099
- if (hasOwn(NativeNumber, key = keys[j]) && !hasOwn(NumberWrapper, key)) {
14100
- defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
14116
+ if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) {
14117
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
14101
14118
  }
14102
14119
  }
14103
- NumberWrapper.prototype = NumberPrototype;
14104
- NumberPrototype.constructor = NumberWrapper;
14105
- defineBuiltIn(global, NUMBER, NumberWrapper, { constructor: true });
14106
- }
14120
+ };
14121
+
14122
+ if (IS_PURE && PureNumberNamespace) copyConstructorProperties(path[NUMBER], PureNumberNamespace);
14123
+ if (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber);
14107
14124
 
14108
14125
 
14109
14126
  /***/ }),
@@ -16596,8 +16613,8 @@ MAccordion.install = function (Vue) {
16596
16613
  Vue.component(MAccordion.name, MAccordion);
16597
16614
  };
16598
16615
 
16599
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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&
16600
- var MAutocompletevue_type_template_id_6011a65e_render = function render() {
16616
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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&
16617
+ var MAutocompletevue_type_template_id_71c6b3a2_render = function render() {
16601
16618
  var _vm = this,
16602
16619
  _c = _vm._self._c;
16603
16620
  return _c('div', {
@@ -16608,9 +16625,7 @@ var MAutocompletevue_type_template_id_6011a65e_render = function render() {
16608
16625
  expression: "closeListBox"
16609
16626
  }],
16610
16627
  staticClass: "mc-autocomplete",
16611
- class: {
16612
- 'mc-autocomplete--multi': _vm.multiple
16613
- },
16628
+ class: _vm.classObject,
16614
16629
  style: _vm.setStyles
16615
16630
  }, [_c('div', {
16616
16631
  staticClass: "mc-autocomplete__main"
@@ -16629,11 +16644,6 @@ var MAutocompletevue_type_template_id_6011a65e_render = function render() {
16629
16644
  return _vm.clearListbox();
16630
16645
  }
16631
16646
  }
16632
- }) : _vm._e(), _vm.loading ? _c('MLoader', {
16633
- staticClass: "mc-autocomplete__loader",
16634
- attrs: {
16635
- "size": "s"
16636
- }
16637
16647
  }) : _vm._e(), _c('MTextInput', {
16638
16648
  attrs: {
16639
16649
  "id": _vm.id,
@@ -16641,6 +16651,9 @@ var MAutocompletevue_type_template_id_6011a65e_render = function render() {
16641
16651
  "is-invalid": _vm.invalid,
16642
16652
  "disabled": _vm.disabled,
16643
16653
  "size": _vm.size,
16654
+ "root-class": {
16655
+ 'is-invalid': _vm.invalid
16656
+ },
16644
16657
  "text-input-field-class": "mc-autocomplete__trigger",
16645
16658
  "icon-position": "left",
16646
16659
  "icon": "DisplaySearch48",
@@ -16659,7 +16672,12 @@ var MAutocompletevue_type_template_id_6011a65e_render = function render() {
16659
16672
  },
16660
16673
  expression: "inputValue"
16661
16674
  }
16662
- }), _vm.hasValues ? _c('button', {
16675
+ }), _vm.loading ? _c('MLoader', {
16676
+ staticClass: "mc-autocomplete__loader",
16677
+ attrs: {
16678
+ "size": "s"
16679
+ }
16680
+ }) : _vm._e(), _vm.hasValues ? _c('button', {
16663
16681
  staticClass: "mc-autocomplete__clear",
16664
16682
  attrs: {
16665
16683
  "type": "button"
@@ -16707,7 +16725,7 @@ var MAutocompletevue_type_template_id_6011a65e_render = function render() {
16707
16725
  }
16708
16726
  })], 1);
16709
16727
  };
16710
- var MAutocompletevue_type_template_id_6011a65e_staticRenderFns = [];
16728
+ var MAutocompletevue_type_template_id_71c6b3a2_staticRenderFns = [];
16711
16729
 
16712
16730
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
16713
16731
  var es_regexp_to_string = __webpack_require__(9714);
@@ -16912,9 +16930,7 @@ var es_regexp_test = __webpack_require__(7601);
16912
16930
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
16913
16931
  function _arrayLikeToArray(arr, len) {
16914
16932
  if (len == null || len > arr.length) len = arr.length;
16915
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
16916
- arr2[i] = arr[i];
16917
- }
16933
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
16918
16934
  return arr2;
16919
16935
  }
16920
16936
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
@@ -17153,14 +17169,14 @@ var MTag_component = normalizeComponent(
17153
17169
  )
17154
17170
 
17155
17171
  /* harmony default export */ var MTag = (MTag_component.exports);
17156
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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&
17157
- var MTextInputvue_type_template_id_60f974b3_render = function render() {
17172
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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&
17173
+ var MTextInputvue_type_template_id_2a765e20_render = function render() {
17158
17174
  var _vm = this,
17159
17175
  _c = _vm._self._c;
17160
17176
  return _vm.icon ? _c('div', {
17161
17177
  key: "icon-input",
17162
17178
  staticClass: "mc-left-icon-input",
17163
- class: _vm.cssFieldElementClass
17179
+ class: [_vm.cssFieldElementClass, _vm.rootClass]
17164
17180
  }, [_c('m-text-input-icon', {
17165
17181
  attrs: {
17166
17182
  "icon": _vm.icon
@@ -17174,7 +17190,7 @@ var MTextInputvue_type_template_id_60f974b3_render = function render() {
17174
17190
  class: _vm.cssFieldElementClass
17175
17191
  }, 'm-text-input-field', [_vm.$attrs, _vm.$props], false), _vm.$listeners));
17176
17192
  };
17177
- var MTextInputvue_type_template_id_60f974b3_staticRenderFns = [];
17193
+ var MTextInputvue_type_template_id_2a765e20_staticRenderFns = [];
17178
17194
 
17179
17195
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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&
17180
17196
  var MTextInputFieldvue_type_template_id_2e097c12_render = function render() {
@@ -17384,6 +17400,10 @@ var MTextInputIcon_component = normalizeComponent(
17384
17400
  type: String,
17385
17401
  default: null
17386
17402
  },
17403
+ rootClass: {
17404
+ type: String,
17405
+ default: null
17406
+ },
17387
17407
  textInputFieldClass: {
17388
17408
  type: String,
17389
17409
  default: null
@@ -17402,8 +17422,8 @@ var MTextInputIcon_component = normalizeComponent(
17402
17422
  ;
17403
17423
  var MTextInput_component = normalizeComponent(
17404
17424
  textinput_MTextInputvue_type_script_lang_js_,
17405
- MTextInputvue_type_template_id_60f974b3_render,
17406
- MTextInputvue_type_template_id_60f974b3_staticRenderFns,
17425
+ MTextInputvue_type_template_id_2a765e20_render,
17426
+ MTextInputvue_type_template_id_2a765e20_staticRenderFns,
17407
17427
  false,
17408
17428
  null,
17409
17429
  null,
@@ -17820,6 +17840,12 @@ var MListBox_component = normalizeComponent(
17820
17840
  };
17821
17841
  },
17822
17842
  computed: {
17843
+ classObject: function classObject() {
17844
+ return {
17845
+ 'mc-autocomplete--multi': this.multiple,
17846
+ 'mc-autocomplete--clearable': this.hasValues
17847
+ };
17848
+ },
17823
17849
  setStyles: function setStyles() {
17824
17850
  return {
17825
17851
  '--autocomplete-tag-width': this.tagWidth,
@@ -17857,18 +17883,20 @@ var MListBox_component = normalizeComponent(
17857
17883
  },
17858
17884
  immediate: true
17859
17885
  },
17860
- listboxValue: function listboxValue(val) {
17861
- var _this = this;
17862
- if (!this.multiple) {
17863
- var selectedItems = this.getSelectedItems(val);
17864
- var seletedLabels = selectedItems.map(function (item) {
17865
- return item[_this.dataTextExpr];
17866
- });
17867
- this.inputValue = seletedLabels.join(', ');
17868
- this.$emit('update:input', this.inputValue);
17869
- } else {
17870
- this.tagValue = val;
17871
- }
17886
+ listboxValue: {
17887
+ handler: function handler(val) {
17888
+ var _this = this;
17889
+ if (!this.multiple) {
17890
+ var selectedItems = this.getSelectedItems(val);
17891
+ var seletedLabels = selectedItems.map(function (item) {
17892
+ return item[_this.dataTextExpr];
17893
+ });
17894
+ this.inputValue = seletedLabels.join(', ');
17895
+ } else {
17896
+ this.tagValue = val;
17897
+ }
17898
+ },
17899
+ immediate: true
17872
17900
  },
17873
17901
  tagValue: function tagValue() {
17874
17902
  this.setTagWidth();
@@ -17971,10 +17999,10 @@ var MListBox_component = normalizeComponent(
17971
17999
  });
17972
18000
  ;// CONCATENATED MODULE: ./src/components/autocomplete/MAutocomplete.vue?vue&type=script&lang=js&
17973
18001
  /* harmony default export */ var autocomplete_MAutocompletevue_type_script_lang_js_ = (MAutocompletevue_type_script_lang_js_);
17974
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.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-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-41.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&
18002
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.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-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-41.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&
17975
18003
  // extracted by mini-css-extract-plugin
17976
18004
 
17977
- ;// CONCATENATED MODULE: ./src/components/autocomplete/MAutocomplete.vue?vue&type=style&index=0&id=6011a65e&prod&lang=scss&
18005
+ ;// CONCATENATED MODULE: ./src/components/autocomplete/MAutocomplete.vue?vue&type=style&index=0&id=71c6b3a2&prod&lang=scss&
17978
18006
 
17979
18007
  ;// CONCATENATED MODULE: ./src/components/autocomplete/MAutocomplete.vue
17980
18008
 
@@ -17987,8 +18015,8 @@ var MListBox_component = normalizeComponent(
17987
18015
 
17988
18016
  var MAutocomplete_component = normalizeComponent(
17989
18017
  autocomplete_MAutocompletevue_type_script_lang_js_,
17990
- MAutocompletevue_type_template_id_6011a65e_render,
17991
- MAutocompletevue_type_template_id_6011a65e_staticRenderFns,
18018
+ MAutocompletevue_type_template_id_71c6b3a2_render,
18019
+ MAutocompletevue_type_template_id_71c6b3a2_staticRenderFns,
17992
18020
  false,
17993
18021
  null,
17994
18022
  null,
@@ -19351,9 +19379,7 @@ function _regeneratorRuntime() {
19351
19379
  if (!isNaN(iterable.length)) {
19352
19380
  var i = -1,
19353
19381
  next = function next() {
19354
- for (; ++i < iterable.length;) {
19355
- if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
19356
- }
19382
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
19357
19383
  return next.value = undefined, next.done = !0, next;
19358
19384
  };
19359
19385
  return next.next = next;
@@ -19399,9 +19425,7 @@ function _regeneratorRuntime() {
19399
19425
  }), exports.keys = function (val) {
19400
19426
  var object = Object(val),
19401
19427
  keys = [];
19402
- for (var key in object) {
19403
- keys.push(key);
19404
- }
19428
+ for (var key in object) keys.push(key);
19405
19429
  return keys.reverse(), function next() {
19406
19430
  for (; keys.length;) {
19407
19431
  var key = keys.pop();
@@ -19412,9 +19436,7 @@ function _regeneratorRuntime() {
19412
19436
  }, exports.values = values, Context.prototype = {
19413
19437
  constructor: Context,
19414
19438
  reset: function reset(skipTempReset) {
19415
- 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) {
19416
- "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
19417
- }
19439
+ 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);
19418
19440
  },
19419
19441
  stop: function stop() {
19420
19442
  this.done = !0;
@@ -20342,25 +20364,23 @@ var Sorting = {
20342
20364
  var _this2 = this;
20343
20365
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
20344
20366
  return _regeneratorRuntime().wrap(function _callee$(_context) {
20345
- while (1) {
20346
- switch (_context.prev = _context.next) {
20347
- case 0:
20348
- if (!(deepEqual(newValue, oldValue) && !(newValue instanceof Function))) {
20349
- _context.next = 2;
20350
- break;
20351
- }
20352
- return _context.abrupt("return");
20353
- case 2:
20354
- if (!_this2.created) {
20355
- _context.next = 5;
20356
- break;
20357
- }
20367
+ while (1) switch (_context.prev = _context.next) {
20368
+ case 0:
20369
+ if (!(deepEqual(newValue, oldValue) && !(newValue instanceof Function))) {
20370
+ _context.next = 2;
20371
+ break;
20372
+ }
20373
+ return _context.abrupt("return");
20374
+ case 2:
20375
+ if (!_this2.created) {
20358
20376
  _context.next = 5;
20359
- return _this2.load();
20360
- case 5:
20361
- case "end":
20362
- return _context.stop();
20363
- }
20377
+ break;
20378
+ }
20379
+ _context.next = 5;
20380
+ return _this2.load();
20381
+ case 5:
20382
+ case "end":
20383
+ return _context.stop();
20364
20384
  }
20365
20385
  }, _callee);
20366
20386
  }))();
@@ -20372,21 +20392,19 @@ var Sorting = {
20372
20392
  var _this3 = this;
20373
20393
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
20374
20394
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
20375
- while (1) {
20376
- switch (_context2.prev = _context2.next) {
20377
- case 0:
20378
- _this3.headersMapped = headersMapped(newValue);
20379
- _this3.$emit('headers-changed', newValue);
20380
- if (!_this3.created) {
20381
- _context2.next = 5;
20382
- break;
20383
- }
20395
+ while (1) switch (_context2.prev = _context2.next) {
20396
+ case 0:
20397
+ _this3.headersMapped = headersMapped(newValue);
20398
+ _this3.$emit('headers-changed', newValue);
20399
+ if (!_this3.created) {
20384
20400
  _context2.next = 5;
20385
- return _this3.load();
20386
- case 5:
20387
- case "end":
20388
- return _context2.stop();
20389
- }
20401
+ break;
20402
+ }
20403
+ _context2.next = 5;
20404
+ return _this3.load();
20405
+ case 5:
20406
+ case "end":
20407
+ return _context2.stop();
20390
20408
  }
20391
20409
  }, _callee2);
20392
20410
  }))();
@@ -20407,26 +20425,24 @@ var Sorting = {
20407
20425
  var _this4 = this;
20408
20426
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
20409
20427
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
20410
- while (1) {
20411
- switch (_context3.prev = _context3.next) {
20412
- case 0:
20413
- if (!deepEqual(newValue, oldValue)) {
20414
- _context3.next = 2;
20415
- break;
20416
- }
20417
- return _context3.abrupt("return");
20418
- case 2:
20419
- _this4.pagingOptions = _objectSpread2(_objectSpread2({}, Paging.defaultOptions), _this4.paging);
20420
- if (!_this4.created) {
20421
- _context3.next = 6;
20422
- break;
20423
- }
20428
+ while (1) switch (_context3.prev = _context3.next) {
20429
+ case 0:
20430
+ if (!deepEqual(newValue, oldValue)) {
20431
+ _context3.next = 2;
20432
+ break;
20433
+ }
20434
+ return _context3.abrupt("return");
20435
+ case 2:
20436
+ _this4.pagingOptions = _objectSpread2(_objectSpread2({}, Paging.defaultOptions), _this4.paging);
20437
+ if (!_this4.created) {
20424
20438
  _context3.next = 6;
20425
- return _this4.load();
20426
- case 6:
20427
- case "end":
20428
- return _context3.stop();
20429
- }
20439
+ break;
20440
+ }
20441
+ _context3.next = 6;
20442
+ return _this4.load();
20443
+ case 6:
20444
+ case "end":
20445
+ return _context3.stop();
20430
20446
  }
20431
20447
  }, _callee3);
20432
20448
  }))();
@@ -20468,77 +20484,75 @@ var Sorting = {
20468
20484
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
20469
20485
  var options, data, sortedKeys, result, _ref, _data, total;
20470
20486
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
20471
- while (1) {
20472
- switch (_context4.prev = _context4.next) {
20473
- case 0:
20474
- _this5.loading = true;
20475
- if (!(_this5.source == null)) {
20476
- _context4.next = 3;
20477
- break;
20478
- }
20479
- return _context4.abrupt("return");
20480
- case 3:
20481
- _context4.prev = 3;
20482
- options = buildOptions(_this5.pagingOptions.enabled, _this5.getPageValue, _this5.getPagingIndex, _this5.getPagingSize, _this5.getSortHeader);
20483
- if (!Array.isArray(_this5.source)) {
20484
- _context4.next = 14;
20485
- break;
20486
- }
20487
- data = _this5.source.slice();
20488
- sortedKeys = Object.keys(options.sort);
20489
- if (sortedKeys.length > 0) {
20490
- data = data.sort(orderedArraySorted(sortedKeys.map(function (key) {
20491
- return {
20492
- fieldExpr: key,
20493
- sortOrder: options.sort[key]
20494
- };
20495
- })));
20496
- }
20497
- if (options.skip != null && options.take != null) {
20498
- data = data.splice(options.skip, options.take);
20499
- }
20500
- _this5.data = data;
20501
- _this5.total = _this5.source.length;
20487
+ while (1) switch (_context4.prev = _context4.next) {
20488
+ case 0:
20489
+ _this5.loading = true;
20490
+ if (!(_this5.source == null)) {
20491
+ _context4.next = 3;
20492
+ break;
20493
+ }
20494
+ return _context4.abrupt("return");
20495
+ case 3:
20496
+ _context4.prev = 3;
20497
+ options = buildOptions(_this5.pagingOptions.enabled, _this5.getPageValue, _this5.getPagingIndex, _this5.getPagingSize, _this5.getSortHeader);
20498
+ if (!Array.isArray(_this5.source)) {
20499
+ _context4.next = 14;
20500
+ break;
20501
+ }
20502
+ data = _this5.source.slice();
20503
+ sortedKeys = Object.keys(options.sort);
20504
+ if (sortedKeys.length > 0) {
20505
+ data = data.sort(orderedArraySorted(sortedKeys.map(function (key) {
20506
+ return {
20507
+ fieldExpr: key,
20508
+ sortOrder: options.sort[key]
20509
+ };
20510
+ })));
20511
+ }
20512
+ if (options.skip != null && options.take != null) {
20513
+ data = data.splice(options.skip, options.take);
20514
+ }
20515
+ _this5.data = data;
20516
+ _this5.total = _this5.source.length;
20517
+ _context4.next = 28;
20518
+ break;
20519
+ case 14:
20520
+ if (!(_this5.source instanceof Function)) {
20502
20521
  _context4.next = 28;
20503
20522
  break;
20504
- case 14:
20505
- if (!(_this5.source instanceof Function)) {
20506
- _context4.next = 28;
20507
- break;
20508
- }
20509
- result = _this5.source(options);
20510
- if (!isPromise(result)) {
20511
- _context4.next = 22;
20512
- break;
20513
- }
20514
- _context4.next = 19;
20515
- return result;
20516
- case 19:
20517
- _context4.t0 = _context4.sent;
20518
- _context4.next = 23;
20523
+ }
20524
+ result = _this5.source(options);
20525
+ if (!isPromise(result)) {
20526
+ _context4.next = 22;
20519
20527
  break;
20520
- case 22:
20521
- _context4.t0 = result;
20522
- case 23:
20523
- _ref = _context4.t0;
20524
- _data = _ref.data;
20525
- total = _ref.total;
20526
- _this5.data = _data;
20527
- _this5.total = total;
20528
- case 28:
20529
- if (_this5.data) {
20530
- autoGenerateHeaders(_this5.data, _this5.headersMapped);
20531
- _this5.sourceMapped = _this5.data;
20532
- }
20533
- _this5.$emit('data-changed', _this5.sourceMapped);
20534
- case 30:
20535
- _context4.prev = 30;
20536
- _this5.loading = false;
20537
- return _context4.finish(30);
20538
- case 33:
20539
- case "end":
20540
- return _context4.stop();
20541
- }
20528
+ }
20529
+ _context4.next = 19;
20530
+ return result;
20531
+ case 19:
20532
+ _context4.t0 = _context4.sent;
20533
+ _context4.next = 23;
20534
+ break;
20535
+ case 22:
20536
+ _context4.t0 = result;
20537
+ case 23:
20538
+ _ref = _context4.t0;
20539
+ _data = _ref.data;
20540
+ total = _ref.total;
20541
+ _this5.data = _data;
20542
+ _this5.total = total;
20543
+ case 28:
20544
+ if (_this5.data) {
20545
+ autoGenerateHeaders(_this5.data, _this5.headersMapped);
20546
+ _this5.sourceMapped = _this5.data;
20547
+ }
20548
+ _this5.$emit('data-changed', _this5.sourceMapped);
20549
+ case 30:
20550
+ _context4.prev = 30;
20551
+ _this5.loading = false;
20552
+ return _context4.finish(30);
20553
+ case 33:
20554
+ case "end":
20555
+ return _context4.stop();
20542
20556
  }
20543
20557
  }, _callee4, null, [[3,, 30, 33]]);
20544
20558
  }))();
@@ -20547,18 +20561,16 @@ var Sorting = {
20547
20561
  var _this6 = this;
20548
20562
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
20549
20563
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
20550
- while (1) {
20551
- switch (_context5.prev = _context5.next) {
20552
- case 0:
20553
- _this6.pagingOptions.index = +index;
20554
- _context5.next = 3;
20555
- return _this6.load();
20556
- case 3:
20557
- _this6.$emit('page-changed', index);
20558
- case 4:
20559
- case "end":
20560
- return _context5.stop();
20561
- }
20564
+ while (1) switch (_context5.prev = _context5.next) {
20565
+ case 0:
20566
+ _this6.pagingOptions.index = +index;
20567
+ _context5.next = 3;
20568
+ return _this6.load();
20569
+ case 3:
20570
+ _this6.$emit('page-changed', index);
20571
+ case 4:
20572
+ case "end":
20573
+ return _context5.stop();
20562
20574
  }
20563
20575
  }, _callee5);
20564
20576
  }))();
@@ -20567,36 +20579,34 @@ var Sorting = {
20567
20579
  var _this7 = this;
20568
20580
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
20569
20581
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
20570
- while (1) {
20571
- switch (_context6.prev = _context6.next) {
20572
- case 0:
20573
- if (_this7.sortingOptions.mode === 'single' && !_this7.getSortHeader.includes(e.header)) {
20574
- // Reinitialize sortOrder because there is only one sortable header
20575
- _this7.headersMapped.forEach(function (header) {
20576
- header.sortOrder = null;
20577
- });
20578
- }
20579
- _context6.t0 = e.header.sortOrder;
20580
- _context6.next = _context6.t0 === 'asc' ? 4 : _context6.t0 === 'desc' ? 6 : 8;
20581
- break;
20582
- case 4:
20583
- e.header.sortOrder = 'desc';
20584
- return _context6.abrupt("break", 10);
20585
- case 6:
20586
- e.header.sortOrder = null;
20587
- return _context6.abrupt("break", 10);
20588
- case 8:
20589
- e.header.sortOrder = 'asc';
20590
- return _context6.abrupt("break", 10);
20591
- case 10:
20592
- _context6.next = 12;
20593
- return _this7.load();
20594
- case 12:
20595
- _this7.$emit('sort-order-changed', e.header);
20596
- case 13:
20597
- case "end":
20598
- return _context6.stop();
20599
- }
20582
+ while (1) switch (_context6.prev = _context6.next) {
20583
+ case 0:
20584
+ if (_this7.sortingOptions.mode === 'single' && !_this7.getSortHeader.includes(e.header)) {
20585
+ // Reinitialize sortOrder because there is only one sortable header
20586
+ _this7.headersMapped.forEach(function (header) {
20587
+ header.sortOrder = null;
20588
+ });
20589
+ }
20590
+ _context6.t0 = e.header.sortOrder;
20591
+ _context6.next = _context6.t0 === 'asc' ? 4 : _context6.t0 === 'desc' ? 6 : 8;
20592
+ break;
20593
+ case 4:
20594
+ e.header.sortOrder = 'desc';
20595
+ return _context6.abrupt("break", 10);
20596
+ case 6:
20597
+ e.header.sortOrder = null;
20598
+ return _context6.abrupt("break", 10);
20599
+ case 8:
20600
+ e.header.sortOrder = 'asc';
20601
+ return _context6.abrupt("break", 10);
20602
+ case 10:
20603
+ _context6.next = 12;
20604
+ return _this7.load();
20605
+ case 12:
20606
+ _this7.$emit('sort-order-changed', e.header);
20607
+ case 13:
20608
+ case "end":
20609
+ return _context6.stop();
20600
20610
  }
20601
20611
  }, _callee6);
20602
20612
  }))();
@@ -20605,18 +20615,16 @@ var Sorting = {
20605
20615
  var _this8 = this;
20606
20616
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
20607
20617
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
20608
- while (1) {
20609
- switch (_context7.prev = _context7.next) {
20610
- case 0:
20611
- _this8.pagerOptions.value = +value;
20612
- _context7.next = 3;
20613
- return _this8.load();
20614
- case 3:
20615
- _this8.$emit('page-size-changed', value);
20616
- case 4:
20617
- case "end":
20618
- return _context7.stop();
20619
- }
20618
+ while (1) switch (_context7.prev = _context7.next) {
20619
+ case 0:
20620
+ _this8.pagerOptions.value = +value;
20621
+ _context7.next = 3;
20622
+ return _this8.load();
20623
+ case 3:
20624
+ _this8.$emit('page-size-changed', value);
20625
+ case 4:
20626
+ case "end":
20627
+ return _context7.stop();
20620
20628
  }
20621
20629
  }, _callee7);
20622
20630
  }))();
@@ -22074,8 +22082,8 @@ MLink.install = function (Vue) {
22074
22082
  Vue.component(MLink.name, MLink);
22075
22083
  };
22076
22084
 
22077
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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&
22078
- var MListBoxActionsvue_type_template_id_27542c5d_render = function render() {
22085
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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&
22086
+ var MListBoxActionsvue_type_template_id_dc7f0b5a_render = function render() {
22079
22087
  var _vm = this,
22080
22088
  _c = _vm._self._c;
22081
22089
  return _c('div', {
@@ -22097,7 +22105,9 @@ var MListBoxActionsvue_type_template_id_27542c5d_render = function render() {
22097
22105
  "type": "button"
22098
22106
  },
22099
22107
  on: {
22100
- "click": _vm.onClickTrigger
22108
+ "click": function click($event) {
22109
+ return _vm.onSwitch($event);
22110
+ }
22101
22111
  }
22102
22112
  }, [_c('m-icon', {
22103
22113
  attrs: {
@@ -22111,7 +22121,8 @@ var MListBoxActionsvue_type_template_id_27542c5d_render = function render() {
22111
22121
  staticClass: "mc-listbox-options__container",
22112
22122
  class: {
22113
22123
  'is-open': _vm.isOpen,
22114
- 'align-right': _vm.position == 'right'
22124
+ 'align-right': _vm.position == 'right',
22125
+ 'align-top': _vm.displayTop
22115
22126
  },
22116
22127
  attrs: {
22117
22128
  "role": "listbox",
@@ -22156,7 +22167,7 @@ var MListBoxActionsvue_type_template_id_27542c5d_render = function render() {
22156
22167
  }), 0);
22157
22168
  }), 0)]);
22158
22169
  };
22159
- var MListBoxActionsvue_type_template_id_27542c5d_staticRenderFns = [];
22170
+ var MListBoxActionsvue_type_template_id_dc7f0b5a_staticRenderFns = [];
22160
22171
 
22161
22172
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/listbox/MListBoxActions.vue?vue&type=script&lang=js&
22162
22173
 
@@ -22211,6 +22222,7 @@ var MListBoxActionsvue_type_template_id_27542c5d_staticRenderFns = [];
22211
22222
  data: function data() {
22212
22223
  return {
22213
22224
  isOpen: this.open,
22225
+ displayTop: false,
22214
22226
  posTop: '0px',
22215
22227
  hasDataTable: false
22216
22228
  };
@@ -22246,19 +22258,25 @@ var MListBoxActionsvue_type_template_id_27542c5d_staticRenderFns = [];
22246
22258
  onClickOutside: function onClickOutside() {
22247
22259
  this.isOpen = false;
22248
22260
  },
22261
+ onSwitch: function onSwitch(e) {
22262
+ if (!this.isOpen) {
22263
+ if (this.$refs.listbox.clientHeight + e.clientY >= window.innerHeight) {
22264
+ this.displayTop = true;
22265
+ }
22266
+ if (this.hasDataTable) {
22267
+ var buttonSizes = this.$refs.trigger.getBoundingClientRect();
22268
+ this.posTop = buttonSizes.top + buttonSizes.height;
22269
+ }
22270
+ }
22271
+ this.isOpen = !this.isOpen;
22272
+ },
22249
22273
  onClickItem: function onClickItem(item, listIndex, itemIndex) {
22250
22274
  var valToEmit = Object.assign({
22251
22275
  listIndex: listIndex,
22252
22276
  itemIndex: itemIndex
22253
22277
  }, item);
22254
- this.$emit('update:itemSelected', valToEmit);
22255
- },
22256
- onClickTrigger: function onClickTrigger() {
22257
- this.isOpen = !this.isOpen;
22258
- if (this.isOpen && this.hasDataTable) {
22259
- var buttonHeight = this.$refs.trigger.getBoundingClientRect().height;
22260
- this.posTop = this.$refs.trigger.getBoundingClientRect().top + buttonHeight;
22261
- }
22278
+ this.$emit('update:itemSelected', valToEmit); // TODO: deprecated
22279
+ this.$emit('item-clicked', valToEmit);
22262
22280
  },
22263
22281
  handleScroll: function handleScroll() {
22264
22282
  this.isOpen = false;
@@ -22267,10 +22285,10 @@ var MListBoxActionsvue_type_template_id_27542c5d_staticRenderFns = [];
22267
22285
  });
22268
22286
  ;// CONCATENATED MODULE: ./src/components/listbox/MListBoxActions.vue?vue&type=script&lang=js&
22269
22287
  /* harmony default export */ var listbox_MListBoxActionsvue_type_script_lang_js_ = (MListBoxActionsvue_type_script_lang_js_);
22270
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.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-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-41.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&
22288
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.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-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-41.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&
22271
22289
  // extracted by mini-css-extract-plugin
22272
22290
 
22273
- ;// CONCATENATED MODULE: ./src/components/listbox/MListBoxActions.vue?vue&type=style&index=0&id=27542c5d&prod&lang=scss&
22291
+ ;// CONCATENATED MODULE: ./src/components/listbox/MListBoxActions.vue?vue&type=style&index=0&id=dc7f0b5a&prod&lang=scss&
22274
22292
 
22275
22293
  ;// CONCATENATED MODULE: ./src/components/listbox/MListBoxActions.vue
22276
22294
 
@@ -22283,8 +22301,8 @@ var MListBoxActionsvue_type_template_id_27542c5d_staticRenderFns = [];
22283
22301
 
22284
22302
  var MListBoxActions_component = normalizeComponent(
22285
22303
  listbox_MListBoxActionsvue_type_script_lang_js_,
22286
- MListBoxActionsvue_type_template_id_27542c5d_render,
22287
- MListBoxActionsvue_type_template_id_27542c5d_staticRenderFns,
22304
+ MListBoxActionsvue_type_template_id_dc7f0b5a_render,
22305
+ MListBoxActionsvue_type_template_id_dc7f0b5a_staticRenderFns,
22288
22306
  false,
22289
22307
  null,
22290
22308
  null,