@mozaic-ds/vue 0.34.2-beta.0 → 0.35.0-beta.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.
- package/dist/mozaic-vue.adeo.css +6 -6
- package/dist/mozaic-vue.adeo.umd.js +352 -326
- package/dist/mozaic-vue.common.js +352 -326
- package/dist/mozaic-vue.common.js.map +1 -1
- package/dist/mozaic-vue.css +1 -1
- package/dist/mozaic-vue.umd.js +316 -290
- package/dist/mozaic-vue.umd.js.map +1 -1
- package/dist/mozaic-vue.umd.min.js +2 -2
- package/dist/mozaic-vue.umd.min.js.map +1 -1
- package/package.json +7 -7
- package/src/components/autocomplete/MAutocomplete.vue +69 -25
- package/src/components/listbox/MListBox.vue +26 -39
- package/src/components/listbox/MListBoxActions.vue +31 -13
- package/src/components/textinput/MTextInput.vue +5 -1
package/dist/mozaic-vue.umd.js
CHANGED
|
@@ -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.
|
|
12458
|
+
version: '3.27.1',
|
|
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.
|
|
12461
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.27.1/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
|
|
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 =
|
|
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
|
-
|
|
14094
|
-
var
|
|
14095
|
-
|
|
14096
|
-
|
|
14097
|
-
|
|
14098
|
-
|
|
14099
|
-
|
|
14100
|
-
|
|
14101
|
-
|
|
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(
|
|
14110
|
-
defineProperty(
|
|
14126
|
+
if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) {
|
|
14127
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
14111
14128
|
}
|
|
14112
14129
|
}
|
|
14113
|
-
|
|
14114
|
-
|
|
14115
|
-
|
|
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=
|
|
16610
|
-
var
|
|
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=0d7a65f6&
|
|
16627
|
+
var MAutocompletevue_type_template_id_0d7a65f6_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,18 +16654,14 @@ 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,
|
|
16650
16660
|
"placeholder": _vm.placeholder,
|
|
16651
|
-
"is-invalid": _vm.
|
|
16661
|
+
"is-invalid": _vm.isInvalid,
|
|
16652
16662
|
"disabled": _vm.disabled,
|
|
16653
16663
|
"size": _vm.size,
|
|
16664
|
+
"root-class": _vm.getInvalidRootClass,
|
|
16654
16665
|
"text-input-field-class": "mc-autocomplete__trigger",
|
|
16655
16666
|
"icon-position": "left",
|
|
16656
16667
|
"icon": "DisplaySearch48",
|
|
@@ -16669,7 +16680,12 @@ var MAutocompletevue_type_template_id_6011a65e_render = function render() {
|
|
|
16669
16680
|
},
|
|
16670
16681
|
expression: "inputValue"
|
|
16671
16682
|
}
|
|
16672
|
-
}), _vm.
|
|
16683
|
+
}), _vm.loading ? _c('MLoader', {
|
|
16684
|
+
staticClass: "mc-autocomplete__loader",
|
|
16685
|
+
attrs: {
|
|
16686
|
+
"size": "s"
|
|
16687
|
+
}
|
|
16688
|
+
}) : _vm._e(), _vm.hasValues ? _c('button', {
|
|
16673
16689
|
staticClass: "mc-autocomplete__clear",
|
|
16674
16690
|
attrs: {
|
|
16675
16691
|
"type": "button"
|
|
@@ -16684,7 +16700,7 @@ var MAutocompletevue_type_template_id_6011a65e_render = function render() {
|
|
|
16684
16700
|
}
|
|
16685
16701
|
}), _c('span', {
|
|
16686
16702
|
staticClass: "mc-autocomplete__clear-text"
|
|
16687
|
-
}, [_vm._v(_vm._s(_vm.labelClearButton))])], 1) : _vm._e()], 1), _c('MListBox', {
|
|
16703
|
+
}, [_vm._v(_vm._s(_vm.labelClearButton))])], 1) : _vm._e()], 1), !_vm.isFiltered ? _c('MListBox', {
|
|
16688
16704
|
attrs: {
|
|
16689
16705
|
"open": _vm.openState,
|
|
16690
16706
|
"items": _vm.localItems,
|
|
@@ -16693,7 +16709,6 @@ var MAutocompletevue_type_template_id_6011a65e_render = function render() {
|
|
|
16693
16709
|
"data-key-expr": _vm.dataKeyExpr,
|
|
16694
16710
|
"data-text-expr": _vm.dataTextExpr,
|
|
16695
16711
|
"data-value-expr": _vm.dataValueExpr,
|
|
16696
|
-
"is-filtered": _vm.isFiltered,
|
|
16697
16712
|
"max-width": _vm.maxWidth
|
|
16698
16713
|
},
|
|
16699
16714
|
on: {
|
|
@@ -16715,9 +16730,11 @@ var MAutocompletevue_type_template_id_6011a65e_render = function render() {
|
|
|
16715
16730
|
},
|
|
16716
16731
|
expression: "listboxValue"
|
|
16717
16732
|
}
|
|
16718
|
-
})
|
|
16733
|
+
}) : _c('div', {
|
|
16734
|
+
staticClass: "mc-autocomplete__error"
|
|
16735
|
+
}, [_vm._v(" " + _vm._s(_vm.emptySearchLabel) + " ")])], 1);
|
|
16719
16736
|
};
|
|
16720
|
-
var
|
|
16737
|
+
var MAutocompletevue_type_template_id_0d7a65f6_staticRenderFns = [];
|
|
16721
16738
|
|
|
16722
16739
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
|
16723
16740
|
var es_regexp_to_string = __webpack_require__(9714);
|
|
@@ -16922,9 +16939,7 @@ var es_regexp_test = __webpack_require__(7601);
|
|
|
16922
16939
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
16923
16940
|
function _arrayLikeToArray(arr, len) {
|
|
16924
16941
|
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
|
-
}
|
|
16942
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
16928
16943
|
return arr2;
|
|
16929
16944
|
}
|
|
16930
16945
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
@@ -17163,14 +17178,14 @@ var MTag_component = normalizeComponent(
|
|
|
17163
17178
|
)
|
|
17164
17179
|
|
|
17165
17180
|
/* 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=
|
|
17167
|
-
var
|
|
17181
|
+
;// 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&
|
|
17182
|
+
var MTextInputvue_type_template_id_2a765e20_render = function render() {
|
|
17168
17183
|
var _vm = this,
|
|
17169
17184
|
_c = _vm._self._c;
|
|
17170
17185
|
return _vm.icon ? _c('div', {
|
|
17171
17186
|
key: "icon-input",
|
|
17172
17187
|
staticClass: "mc-left-icon-input",
|
|
17173
|
-
class: _vm.cssFieldElementClass
|
|
17188
|
+
class: [_vm.cssFieldElementClass, _vm.rootClass]
|
|
17174
17189
|
}, [_c('m-text-input-icon', {
|
|
17175
17190
|
attrs: {
|
|
17176
17191
|
"icon": _vm.icon
|
|
@@ -17184,7 +17199,7 @@ var MTextInputvue_type_template_id_60f974b3_render = function render() {
|
|
|
17184
17199
|
class: _vm.cssFieldElementClass
|
|
17185
17200
|
}, 'm-text-input-field', [_vm.$attrs, _vm.$props], false), _vm.$listeners));
|
|
17186
17201
|
};
|
|
17187
|
-
var
|
|
17202
|
+
var MTextInputvue_type_template_id_2a765e20_staticRenderFns = [];
|
|
17188
17203
|
|
|
17189
17204
|
;// 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
17205
|
var MTextInputFieldvue_type_template_id_2e097c12_render = function render() {
|
|
@@ -17394,6 +17409,10 @@ var MTextInputIcon_component = normalizeComponent(
|
|
|
17394
17409
|
type: String,
|
|
17395
17410
|
default: null
|
|
17396
17411
|
},
|
|
17412
|
+
rootClass: {
|
|
17413
|
+
type: String,
|
|
17414
|
+
default: null
|
|
17415
|
+
},
|
|
17397
17416
|
textInputFieldClass: {
|
|
17398
17417
|
type: String,
|
|
17399
17418
|
default: null
|
|
@@ -17412,8 +17431,8 @@ var MTextInputIcon_component = normalizeComponent(
|
|
|
17412
17431
|
;
|
|
17413
17432
|
var MTextInput_component = normalizeComponent(
|
|
17414
17433
|
textinput_MTextInputvue_type_script_lang_js_,
|
|
17415
|
-
|
|
17416
|
-
|
|
17434
|
+
MTextInputvue_type_template_id_2a765e20_render,
|
|
17435
|
+
MTextInputvue_type_template_id_2a765e20_staticRenderFns,
|
|
17417
17436
|
false,
|
|
17418
17437
|
null,
|
|
17419
17438
|
null,
|
|
@@ -17422,11 +17441,11 @@ var MTextInput_component = normalizeComponent(
|
|
|
17422
17441
|
)
|
|
17423
17442
|
|
|
17424
17443
|
/* harmony default export */ var MTextInput = (MTextInput_component.exports);
|
|
17425
|
-
;// 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/MListBox.vue?vue&type=template&id=
|
|
17444
|
+
;// 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/MListBox.vue?vue&type=template&id=ec39b4f2&
|
|
17426
17445
|
|
|
17427
17446
|
|
|
17428
17447
|
|
|
17429
|
-
var
|
|
17448
|
+
var MListBoxvue_type_template_id_ec39b4f2_render = function render() {
|
|
17430
17449
|
var _vm = this,
|
|
17431
17450
|
_c = _vm._self._c;
|
|
17432
17451
|
return _c('ul', {
|
|
@@ -17442,7 +17461,7 @@ var MListBoxvue_type_template_id_57047bbf_render = function render() {
|
|
|
17442
17461
|
"role": "listbox",
|
|
17443
17462
|
"aria-labelledby": "listbox"
|
|
17444
17463
|
}
|
|
17445
|
-
},
|
|
17464
|
+
}, _vm._l(_vm.localItems, function (item, index) {
|
|
17446
17465
|
return _c('li', {
|
|
17447
17466
|
key: item.id,
|
|
17448
17467
|
staticClass: "mc-listbox__item"
|
|
@@ -17551,15 +17570,11 @@ var MListBoxvue_type_template_id_57047bbf_render = function render() {
|
|
|
17551
17570
|
}, {
|
|
17552
17571
|
"item": item
|
|
17553
17572
|
})], 2)], 1);
|
|
17554
|
-
})
|
|
17555
|
-
staticClass: "mc-listbox__item"
|
|
17556
|
-
}, [_c('span', {
|
|
17557
|
-
staticClass: "mc-listbox__empty"
|
|
17558
|
-
}, [_vm._v(_vm._s(_vm.emptySearchLabel))])])], 2);
|
|
17573
|
+
}), 0);
|
|
17559
17574
|
};
|
|
17560
|
-
var
|
|
17575
|
+
var MListBoxvue_type_template_id_ec39b4f2_staticRenderFns = [];
|
|
17561
17576
|
|
|
17562
|
-
;// CONCATENATED MODULE: ./src/components/listbox/MListBox.vue?vue&type=template&id=
|
|
17577
|
+
;// CONCATENATED MODULE: ./src/components/listbox/MListBox.vue?vue&type=template&id=ec39b4f2&
|
|
17563
17578
|
|
|
17564
17579
|
;// 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/MListBox.vue?vue&type=script&lang=js&
|
|
17565
17580
|
|
|
@@ -17581,18 +17596,10 @@ var MListBoxvue_type_template_id_57047bbf_staticRenderFns = [];
|
|
|
17581
17596
|
type: Boolean,
|
|
17582
17597
|
default: false
|
|
17583
17598
|
},
|
|
17584
|
-
isFiltered: {
|
|
17585
|
-
type: Boolean,
|
|
17586
|
-
default: false
|
|
17587
|
-
},
|
|
17588
17599
|
multiple: {
|
|
17589
17600
|
type: Boolean,
|
|
17590
17601
|
default: false
|
|
17591
17602
|
},
|
|
17592
|
-
emptySearchLabel: {
|
|
17593
|
-
type: String,
|
|
17594
|
-
default: 'No item matching your criteria found'
|
|
17595
|
-
},
|
|
17596
17603
|
dataKeyExpr: {
|
|
17597
17604
|
type: String,
|
|
17598
17605
|
default: 'id'
|
|
@@ -17651,10 +17658,10 @@ var MListBoxvue_type_template_id_57047bbf_staticRenderFns = [];
|
|
|
17651
17658
|
});
|
|
17652
17659
|
;// CONCATENATED MODULE: ./src/components/listbox/MListBox.vue?vue&type=script&lang=js&
|
|
17653
17660
|
/* harmony default export */ var listbox_MListBoxvue_type_script_lang_js_ = (MListBoxvue_type_script_lang_js_);
|
|
17654
|
-
;// 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/MListBox.vue?vue&type=style&index=0&id=
|
|
17661
|
+
;// 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/MListBox.vue?vue&type=style&index=0&id=ec39b4f2&prod&lang=scss&
|
|
17655
17662
|
// extracted by mini-css-extract-plugin
|
|
17656
17663
|
|
|
17657
|
-
;// CONCATENATED MODULE: ./src/components/listbox/MListBox.vue?vue&type=style&index=0&id=
|
|
17664
|
+
;// CONCATENATED MODULE: ./src/components/listbox/MListBox.vue?vue&type=style&index=0&id=ec39b4f2&prod&lang=scss&
|
|
17658
17665
|
|
|
17659
17666
|
;// CONCATENATED MODULE: ./src/components/listbox/MListBox.vue
|
|
17660
17667
|
|
|
@@ -17667,8 +17674,8 @@ var MListBoxvue_type_template_id_57047bbf_staticRenderFns = [];
|
|
|
17667
17674
|
|
|
17668
17675
|
var MListBox_component = normalizeComponent(
|
|
17669
17676
|
listbox_MListBoxvue_type_script_lang_js_,
|
|
17670
|
-
|
|
17671
|
-
|
|
17677
|
+
MListBoxvue_type_template_id_ec39b4f2_render,
|
|
17678
|
+
MListBoxvue_type_template_id_ec39b4f2_staticRenderFns,
|
|
17672
17679
|
false,
|
|
17673
17680
|
null,
|
|
17674
17681
|
null,
|
|
@@ -17830,6 +17837,12 @@ var MListBox_component = normalizeComponent(
|
|
|
17830
17837
|
};
|
|
17831
17838
|
},
|
|
17832
17839
|
computed: {
|
|
17840
|
+
classObject: function classObject() {
|
|
17841
|
+
return {
|
|
17842
|
+
'mc-autocomplete--multi': this.multiple,
|
|
17843
|
+
'mc-autocomplete--clearable': this.hasValues
|
|
17844
|
+
};
|
|
17845
|
+
},
|
|
17833
17846
|
setStyles: function setStyles() {
|
|
17834
17847
|
return {
|
|
17835
17848
|
'--autocomplete-tag-width': this.tagWidth,
|
|
@@ -17842,6 +17855,13 @@ var MListBox_component = normalizeComponent(
|
|
|
17842
17855
|
hasValues: function hasValues() {
|
|
17843
17856
|
var _this$inputValue;
|
|
17844
17857
|
return ((_this$inputValue = this.inputValue) === null || _this$inputValue === void 0 ? void 0 : _this$inputValue.length) > 0;
|
|
17858
|
+
},
|
|
17859
|
+
isInvalid: function isInvalid() {
|
|
17860
|
+
return this.invalid || this.isFiltered;
|
|
17861
|
+
},
|
|
17862
|
+
getInvalidRootClass: function getInvalidRootClass() {
|
|
17863
|
+
var invalidClass = this.isInvalid ? 'is-invalid' : '';
|
|
17864
|
+
return invalidClass;
|
|
17845
17865
|
}
|
|
17846
17866
|
},
|
|
17847
17867
|
watch: {
|
|
@@ -17851,6 +17871,13 @@ var MListBox_component = normalizeComponent(
|
|
|
17851
17871
|
},
|
|
17852
17872
|
immediate: true
|
|
17853
17873
|
},
|
|
17874
|
+
localItems: {
|
|
17875
|
+
handler: function handler(val) {
|
|
17876
|
+
// this.localItems = val;
|
|
17877
|
+
this.isFiltered = !val.length;
|
|
17878
|
+
this.$emit('list-filtered', val);
|
|
17879
|
+
}
|
|
17880
|
+
},
|
|
17854
17881
|
input: {
|
|
17855
17882
|
handler: function handler(val) {
|
|
17856
17883
|
this.inputValue = val;
|
|
@@ -17867,18 +17894,20 @@ var MListBox_component = normalizeComponent(
|
|
|
17867
17894
|
},
|
|
17868
17895
|
immediate: true
|
|
17869
17896
|
},
|
|
17870
|
-
listboxValue:
|
|
17871
|
-
|
|
17872
|
-
|
|
17873
|
-
|
|
17874
|
-
|
|
17875
|
-
|
|
17876
|
-
|
|
17877
|
-
|
|
17878
|
-
|
|
17879
|
-
|
|
17880
|
-
|
|
17881
|
-
|
|
17897
|
+
listboxValue: {
|
|
17898
|
+
handler: function handler(val) {
|
|
17899
|
+
var _this = this;
|
|
17900
|
+
if (!this.multiple) {
|
|
17901
|
+
var selectedItems = this.getSelectedItems(val);
|
|
17902
|
+
var seletedLabels = selectedItems.map(function (item) {
|
|
17903
|
+
return item[_this.dataTextExpr];
|
|
17904
|
+
});
|
|
17905
|
+
this.inputValue = seletedLabels.join(', ');
|
|
17906
|
+
} else {
|
|
17907
|
+
this.tagValue = val;
|
|
17908
|
+
}
|
|
17909
|
+
},
|
|
17910
|
+
immediate: true
|
|
17882
17911
|
},
|
|
17883
17912
|
tagValue: function tagValue() {
|
|
17884
17913
|
this.setTagWidth();
|
|
@@ -17920,16 +17949,23 @@ var MListBox_component = normalizeComponent(
|
|
|
17920
17949
|
var _this3 = this;
|
|
17921
17950
|
if (value.length && this.filter) {
|
|
17922
17951
|
this.filter(value);
|
|
17923
|
-
} else if (value.length && this.filterOnType) {
|
|
17924
|
-
this.localItems = this.items.filter(function (item) {
|
|
17925
|
-
return item[_this3.dataTextExpr].toUpperCase().includes(value.toUpperCase());
|
|
17926
|
-
});
|
|
17927
|
-
this.isFiltered = !this.localItems.length;
|
|
17928
17952
|
} else {
|
|
17929
|
-
this.
|
|
17930
|
-
|
|
17953
|
+
if (!this.filterOnType) {
|
|
17954
|
+
return;
|
|
17955
|
+
}
|
|
17956
|
+
if (value.length) {
|
|
17957
|
+
this.localItems = this.items.filter(function (item) {
|
|
17958
|
+
return item[_this3.dataTextExpr].toUpperCase().includes(value.toUpperCase());
|
|
17959
|
+
});
|
|
17960
|
+
|
|
17961
|
+
// this.isFiltered = !this.localItems.length;
|
|
17962
|
+
} else {
|
|
17963
|
+
this.localItems = this.items;
|
|
17964
|
+
// this.isFiltered = !this.localItems.length;
|
|
17965
|
+
}
|
|
17966
|
+
|
|
17967
|
+
// this.$emit('list-filtered', this.localItems);
|
|
17931
17968
|
}
|
|
17932
|
-
this.$emit('list-filtered', this.localItems);
|
|
17933
17969
|
},
|
|
17934
17970
|
closeListBox: function closeListBox() {
|
|
17935
17971
|
this.openState = false;
|
|
@@ -17981,10 +18017,10 @@ var MListBox_component = normalizeComponent(
|
|
|
17981
18017
|
});
|
|
17982
18018
|
;// CONCATENATED MODULE: ./src/components/autocomplete/MAutocomplete.vue?vue&type=script&lang=js&
|
|
17983
18019
|
/* 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=
|
|
18020
|
+
;// 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=0d7a65f6&prod&lang=scss&
|
|
17985
18021
|
// extracted by mini-css-extract-plugin
|
|
17986
18022
|
|
|
17987
|
-
;// CONCATENATED MODULE: ./src/components/autocomplete/MAutocomplete.vue?vue&type=style&index=0&id=
|
|
18023
|
+
;// CONCATENATED MODULE: ./src/components/autocomplete/MAutocomplete.vue?vue&type=style&index=0&id=0d7a65f6&prod&lang=scss&
|
|
17988
18024
|
|
|
17989
18025
|
;// CONCATENATED MODULE: ./src/components/autocomplete/MAutocomplete.vue
|
|
17990
18026
|
|
|
@@ -17997,8 +18033,8 @@ var MListBox_component = normalizeComponent(
|
|
|
17997
18033
|
|
|
17998
18034
|
var MAutocomplete_component = normalizeComponent(
|
|
17999
18035
|
autocomplete_MAutocompletevue_type_script_lang_js_,
|
|
18000
|
-
|
|
18001
|
-
|
|
18036
|
+
MAutocompletevue_type_template_id_0d7a65f6_render,
|
|
18037
|
+
MAutocompletevue_type_template_id_0d7a65f6_staticRenderFns,
|
|
18002
18038
|
false,
|
|
18003
18039
|
null,
|
|
18004
18040
|
null,
|
|
@@ -19361,9 +19397,7 @@ function _regeneratorRuntime() {
|
|
|
19361
19397
|
if (!isNaN(iterable.length)) {
|
|
19362
19398
|
var i = -1,
|
|
19363
19399
|
next = function next() {
|
|
19364
|
-
for (; ++i < iterable.length;)
|
|
19365
|
-
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
19366
|
-
}
|
|
19400
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
19367
19401
|
return next.value = undefined, next.done = !0, next;
|
|
19368
19402
|
};
|
|
19369
19403
|
return next.next = next;
|
|
@@ -19409,9 +19443,7 @@ function _regeneratorRuntime() {
|
|
|
19409
19443
|
}), exports.keys = function (val) {
|
|
19410
19444
|
var object = Object(val),
|
|
19411
19445
|
keys = [];
|
|
19412
|
-
for (var key in object)
|
|
19413
|
-
keys.push(key);
|
|
19414
|
-
}
|
|
19446
|
+
for (var key in object) keys.push(key);
|
|
19415
19447
|
return keys.reverse(), function next() {
|
|
19416
19448
|
for (; keys.length;) {
|
|
19417
19449
|
var key = keys.pop();
|
|
@@ -19422,9 +19454,7 @@ function _regeneratorRuntime() {
|
|
|
19422
19454
|
}, exports.values = values, Context.prototype = {
|
|
19423
19455
|
constructor: Context,
|
|
19424
19456
|
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
|
-
}
|
|
19457
|
+
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
19458
|
},
|
|
19429
19459
|
stop: function stop() {
|
|
19430
19460
|
this.done = !0;
|
|
@@ -20352,25 +20382,23 @@ var Sorting = {
|
|
|
20352
20382
|
var _this2 = this;
|
|
20353
20383
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20354
20384
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20355
|
-
while (1) {
|
|
20356
|
-
|
|
20357
|
-
|
|
20358
|
-
|
|
20359
|
-
|
|
20360
|
-
|
|
20361
|
-
|
|
20362
|
-
|
|
20363
|
-
|
|
20364
|
-
if (!_this2.created) {
|
|
20365
|
-
_context.next = 5;
|
|
20366
|
-
break;
|
|
20367
|
-
}
|
|
20385
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20386
|
+
case 0:
|
|
20387
|
+
if (!(deepEqual(newValue, oldValue) && !(newValue instanceof Function))) {
|
|
20388
|
+
_context.next = 2;
|
|
20389
|
+
break;
|
|
20390
|
+
}
|
|
20391
|
+
return _context.abrupt("return");
|
|
20392
|
+
case 2:
|
|
20393
|
+
if (!_this2.created) {
|
|
20368
20394
|
_context.next = 5;
|
|
20369
|
-
|
|
20370
|
-
|
|
20371
|
-
|
|
20372
|
-
|
|
20373
|
-
|
|
20395
|
+
break;
|
|
20396
|
+
}
|
|
20397
|
+
_context.next = 5;
|
|
20398
|
+
return _this2.load();
|
|
20399
|
+
case 5:
|
|
20400
|
+
case "end":
|
|
20401
|
+
return _context.stop();
|
|
20374
20402
|
}
|
|
20375
20403
|
}, _callee);
|
|
20376
20404
|
}))();
|
|
@@ -20382,21 +20410,19 @@ var Sorting = {
|
|
|
20382
20410
|
var _this3 = this;
|
|
20383
20411
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
20384
20412
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
20385
|
-
while (1) {
|
|
20386
|
-
|
|
20387
|
-
|
|
20388
|
-
|
|
20389
|
-
|
|
20390
|
-
if (!_this3.created) {
|
|
20391
|
-
_context2.next = 5;
|
|
20392
|
-
break;
|
|
20393
|
-
}
|
|
20413
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
20414
|
+
case 0:
|
|
20415
|
+
_this3.headersMapped = headersMapped(newValue);
|
|
20416
|
+
_this3.$emit('headers-changed', newValue);
|
|
20417
|
+
if (!_this3.created) {
|
|
20394
20418
|
_context2.next = 5;
|
|
20395
|
-
|
|
20396
|
-
|
|
20397
|
-
|
|
20398
|
-
|
|
20399
|
-
|
|
20419
|
+
break;
|
|
20420
|
+
}
|
|
20421
|
+
_context2.next = 5;
|
|
20422
|
+
return _this3.load();
|
|
20423
|
+
case 5:
|
|
20424
|
+
case "end":
|
|
20425
|
+
return _context2.stop();
|
|
20400
20426
|
}
|
|
20401
20427
|
}, _callee2);
|
|
20402
20428
|
}))();
|
|
@@ -20417,26 +20443,24 @@ var Sorting = {
|
|
|
20417
20443
|
var _this4 = this;
|
|
20418
20444
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
20419
20445
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
20420
|
-
while (1) {
|
|
20421
|
-
|
|
20422
|
-
|
|
20423
|
-
|
|
20424
|
-
|
|
20425
|
-
|
|
20426
|
-
|
|
20427
|
-
|
|
20428
|
-
|
|
20429
|
-
|
|
20430
|
-
if (!_this4.created) {
|
|
20431
|
-
_context3.next = 6;
|
|
20432
|
-
break;
|
|
20433
|
-
}
|
|
20446
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
20447
|
+
case 0:
|
|
20448
|
+
if (!deepEqual(newValue, oldValue)) {
|
|
20449
|
+
_context3.next = 2;
|
|
20450
|
+
break;
|
|
20451
|
+
}
|
|
20452
|
+
return _context3.abrupt("return");
|
|
20453
|
+
case 2:
|
|
20454
|
+
_this4.pagingOptions = _objectSpread2(_objectSpread2({}, Paging.defaultOptions), _this4.paging);
|
|
20455
|
+
if (!_this4.created) {
|
|
20434
20456
|
_context3.next = 6;
|
|
20435
|
-
|
|
20436
|
-
|
|
20437
|
-
|
|
20438
|
-
|
|
20439
|
-
|
|
20457
|
+
break;
|
|
20458
|
+
}
|
|
20459
|
+
_context3.next = 6;
|
|
20460
|
+
return _this4.load();
|
|
20461
|
+
case 6:
|
|
20462
|
+
case "end":
|
|
20463
|
+
return _context3.stop();
|
|
20440
20464
|
}
|
|
20441
20465
|
}, _callee3);
|
|
20442
20466
|
}))();
|
|
@@ -20478,77 +20502,75 @@ var Sorting = {
|
|
|
20478
20502
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
20479
20503
|
var options, data, sortedKeys, result, _ref, _data, total;
|
|
20480
20504
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
20481
|
-
while (1) {
|
|
20482
|
-
|
|
20483
|
-
|
|
20484
|
-
|
|
20485
|
-
|
|
20486
|
-
|
|
20487
|
-
|
|
20488
|
-
|
|
20489
|
-
|
|
20490
|
-
|
|
20491
|
-
|
|
20492
|
-
|
|
20493
|
-
|
|
20494
|
-
|
|
20495
|
-
|
|
20496
|
-
|
|
20497
|
-
|
|
20498
|
-
|
|
20499
|
-
|
|
20500
|
-
|
|
20501
|
-
|
|
20502
|
-
|
|
20503
|
-
|
|
20504
|
-
|
|
20505
|
-
|
|
20506
|
-
|
|
20507
|
-
|
|
20508
|
-
|
|
20509
|
-
|
|
20510
|
-
|
|
20511
|
-
|
|
20505
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
20506
|
+
case 0:
|
|
20507
|
+
_this5.loading = true;
|
|
20508
|
+
if (!(_this5.source == null)) {
|
|
20509
|
+
_context4.next = 3;
|
|
20510
|
+
break;
|
|
20511
|
+
}
|
|
20512
|
+
return _context4.abrupt("return");
|
|
20513
|
+
case 3:
|
|
20514
|
+
_context4.prev = 3;
|
|
20515
|
+
options = buildOptions(_this5.pagingOptions.enabled, _this5.getPageValue, _this5.getPagingIndex, _this5.getPagingSize, _this5.getSortHeader);
|
|
20516
|
+
if (!Array.isArray(_this5.source)) {
|
|
20517
|
+
_context4.next = 14;
|
|
20518
|
+
break;
|
|
20519
|
+
}
|
|
20520
|
+
data = _this5.source.slice();
|
|
20521
|
+
sortedKeys = Object.keys(options.sort);
|
|
20522
|
+
if (sortedKeys.length > 0) {
|
|
20523
|
+
data = data.sort(orderedArraySorted(sortedKeys.map(function (key) {
|
|
20524
|
+
return {
|
|
20525
|
+
fieldExpr: key,
|
|
20526
|
+
sortOrder: options.sort[key]
|
|
20527
|
+
};
|
|
20528
|
+
})));
|
|
20529
|
+
}
|
|
20530
|
+
if (options.skip != null && options.take != null) {
|
|
20531
|
+
data = data.splice(options.skip, options.take);
|
|
20532
|
+
}
|
|
20533
|
+
_this5.data = data;
|
|
20534
|
+
_this5.total = _this5.source.length;
|
|
20535
|
+
_context4.next = 28;
|
|
20536
|
+
break;
|
|
20537
|
+
case 14:
|
|
20538
|
+
if (!(_this5.source instanceof Function)) {
|
|
20512
20539
|
_context4.next = 28;
|
|
20513
20540
|
break;
|
|
20514
|
-
|
|
20515
|
-
|
|
20516
|
-
|
|
20517
|
-
|
|
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;
|
|
20541
|
+
}
|
|
20542
|
+
result = _this5.source(options);
|
|
20543
|
+
if (!isPromise(result)) {
|
|
20544
|
+
_context4.next = 22;
|
|
20529
20545
|
break;
|
|
20530
|
-
|
|
20531
|
-
|
|
20532
|
-
|
|
20533
|
-
|
|
20534
|
-
|
|
20535
|
-
|
|
20536
|
-
|
|
20537
|
-
|
|
20538
|
-
|
|
20539
|
-
|
|
20540
|
-
|
|
20541
|
-
|
|
20542
|
-
|
|
20543
|
-
|
|
20544
|
-
|
|
20545
|
-
|
|
20546
|
-
|
|
20547
|
-
|
|
20548
|
-
|
|
20549
|
-
|
|
20550
|
-
|
|
20551
|
-
|
|
20546
|
+
}
|
|
20547
|
+
_context4.next = 19;
|
|
20548
|
+
return result;
|
|
20549
|
+
case 19:
|
|
20550
|
+
_context4.t0 = _context4.sent;
|
|
20551
|
+
_context4.next = 23;
|
|
20552
|
+
break;
|
|
20553
|
+
case 22:
|
|
20554
|
+
_context4.t0 = result;
|
|
20555
|
+
case 23:
|
|
20556
|
+
_ref = _context4.t0;
|
|
20557
|
+
_data = _ref.data;
|
|
20558
|
+
total = _ref.total;
|
|
20559
|
+
_this5.data = _data;
|
|
20560
|
+
_this5.total = total;
|
|
20561
|
+
case 28:
|
|
20562
|
+
if (_this5.data) {
|
|
20563
|
+
autoGenerateHeaders(_this5.data, _this5.headersMapped);
|
|
20564
|
+
_this5.sourceMapped = _this5.data;
|
|
20565
|
+
}
|
|
20566
|
+
_this5.$emit('data-changed', _this5.sourceMapped);
|
|
20567
|
+
case 30:
|
|
20568
|
+
_context4.prev = 30;
|
|
20569
|
+
_this5.loading = false;
|
|
20570
|
+
return _context4.finish(30);
|
|
20571
|
+
case 33:
|
|
20572
|
+
case "end":
|
|
20573
|
+
return _context4.stop();
|
|
20552
20574
|
}
|
|
20553
20575
|
}, _callee4, null, [[3,, 30, 33]]);
|
|
20554
20576
|
}))();
|
|
@@ -20557,18 +20579,16 @@ var Sorting = {
|
|
|
20557
20579
|
var _this6 = this;
|
|
20558
20580
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
20559
20581
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
20560
|
-
while (1) {
|
|
20561
|
-
|
|
20562
|
-
|
|
20563
|
-
|
|
20564
|
-
|
|
20565
|
-
|
|
20566
|
-
|
|
20567
|
-
|
|
20568
|
-
|
|
20569
|
-
|
|
20570
|
-
return _context5.stop();
|
|
20571
|
-
}
|
|
20582
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
20583
|
+
case 0:
|
|
20584
|
+
_this6.pagingOptions.index = +index;
|
|
20585
|
+
_context5.next = 3;
|
|
20586
|
+
return _this6.load();
|
|
20587
|
+
case 3:
|
|
20588
|
+
_this6.$emit('page-changed', index);
|
|
20589
|
+
case 4:
|
|
20590
|
+
case "end":
|
|
20591
|
+
return _context5.stop();
|
|
20572
20592
|
}
|
|
20573
20593
|
}, _callee5);
|
|
20574
20594
|
}))();
|
|
@@ -20577,36 +20597,34 @@ var Sorting = {
|
|
|
20577
20597
|
var _this7 = this;
|
|
20578
20598
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
20579
20599
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
20580
|
-
while (1) {
|
|
20581
|
-
|
|
20582
|
-
|
|
20583
|
-
|
|
20584
|
-
|
|
20585
|
-
|
|
20586
|
-
|
|
20587
|
-
|
|
20588
|
-
|
|
20589
|
-
|
|
20590
|
-
|
|
20591
|
-
|
|
20592
|
-
|
|
20593
|
-
|
|
20594
|
-
|
|
20595
|
-
|
|
20596
|
-
|
|
20597
|
-
|
|
20598
|
-
|
|
20599
|
-
|
|
20600
|
-
|
|
20601
|
-
|
|
20602
|
-
|
|
20603
|
-
|
|
20604
|
-
|
|
20605
|
-
|
|
20606
|
-
|
|
20607
|
-
|
|
20608
|
-
return _context6.stop();
|
|
20609
|
-
}
|
|
20600
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
20601
|
+
case 0:
|
|
20602
|
+
if (_this7.sortingOptions.mode === 'single' && !_this7.getSortHeader.includes(e.header)) {
|
|
20603
|
+
// Reinitialize sortOrder because there is only one sortable header
|
|
20604
|
+
_this7.headersMapped.forEach(function (header) {
|
|
20605
|
+
header.sortOrder = null;
|
|
20606
|
+
});
|
|
20607
|
+
}
|
|
20608
|
+
_context6.t0 = e.header.sortOrder;
|
|
20609
|
+
_context6.next = _context6.t0 === 'asc' ? 4 : _context6.t0 === 'desc' ? 6 : 8;
|
|
20610
|
+
break;
|
|
20611
|
+
case 4:
|
|
20612
|
+
e.header.sortOrder = 'desc';
|
|
20613
|
+
return _context6.abrupt("break", 10);
|
|
20614
|
+
case 6:
|
|
20615
|
+
e.header.sortOrder = null;
|
|
20616
|
+
return _context6.abrupt("break", 10);
|
|
20617
|
+
case 8:
|
|
20618
|
+
e.header.sortOrder = 'asc';
|
|
20619
|
+
return _context6.abrupt("break", 10);
|
|
20620
|
+
case 10:
|
|
20621
|
+
_context6.next = 12;
|
|
20622
|
+
return _this7.load();
|
|
20623
|
+
case 12:
|
|
20624
|
+
_this7.$emit('sort-order-changed', e.header);
|
|
20625
|
+
case 13:
|
|
20626
|
+
case "end":
|
|
20627
|
+
return _context6.stop();
|
|
20610
20628
|
}
|
|
20611
20629
|
}, _callee6);
|
|
20612
20630
|
}))();
|
|
@@ -20615,18 +20633,16 @@ var Sorting = {
|
|
|
20615
20633
|
var _this8 = this;
|
|
20616
20634
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
20617
20635
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
20618
|
-
while (1) {
|
|
20619
|
-
|
|
20620
|
-
|
|
20621
|
-
|
|
20622
|
-
|
|
20623
|
-
|
|
20624
|
-
|
|
20625
|
-
|
|
20626
|
-
|
|
20627
|
-
|
|
20628
|
-
return _context7.stop();
|
|
20629
|
-
}
|
|
20636
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
20637
|
+
case 0:
|
|
20638
|
+
_this8.pagerOptions.value = +value;
|
|
20639
|
+
_context7.next = 3;
|
|
20640
|
+
return _this8.load();
|
|
20641
|
+
case 3:
|
|
20642
|
+
_this8.$emit('page-size-changed', value);
|
|
20643
|
+
case 4:
|
|
20644
|
+
case "end":
|
|
20645
|
+
return _context7.stop();
|
|
20630
20646
|
}
|
|
20631
20647
|
}, _callee7);
|
|
20632
20648
|
}))();
|
|
@@ -22084,8 +22100,8 @@ MLink.install = function (Vue) {
|
|
|
22084
22100
|
Vue.component(MLink.name, MLink);
|
|
22085
22101
|
};
|
|
22086
22102
|
|
|
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=
|
|
22088
|
-
var
|
|
22103
|
+
;// 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&
|
|
22104
|
+
var MListBoxActionsvue_type_template_id_dc7f0b5a_render = function render() {
|
|
22089
22105
|
var _vm = this,
|
|
22090
22106
|
_c = _vm._self._c;
|
|
22091
22107
|
return _c('div', {
|
|
@@ -22107,7 +22123,9 @@ var MListBoxActionsvue_type_template_id_27542c5d_render = function render() {
|
|
|
22107
22123
|
"type": "button"
|
|
22108
22124
|
},
|
|
22109
22125
|
on: {
|
|
22110
|
-
"click":
|
|
22126
|
+
"click": function click($event) {
|
|
22127
|
+
return _vm.onSwitch($event);
|
|
22128
|
+
}
|
|
22111
22129
|
}
|
|
22112
22130
|
}, [_c('m-icon', {
|
|
22113
22131
|
attrs: {
|
|
@@ -22121,7 +22139,8 @@ var MListBoxActionsvue_type_template_id_27542c5d_render = function render() {
|
|
|
22121
22139
|
staticClass: "mc-listbox-options__container",
|
|
22122
22140
|
class: {
|
|
22123
22141
|
'is-open': _vm.isOpen,
|
|
22124
|
-
'align-right': _vm.position == 'right'
|
|
22142
|
+
'align-right': _vm.position == 'right',
|
|
22143
|
+
'align-top': _vm.displayTop
|
|
22125
22144
|
},
|
|
22126
22145
|
attrs: {
|
|
22127
22146
|
"role": "listbox",
|
|
@@ -22166,7 +22185,7 @@ var MListBoxActionsvue_type_template_id_27542c5d_render = function render() {
|
|
|
22166
22185
|
}), 0);
|
|
22167
22186
|
}), 0)]);
|
|
22168
22187
|
};
|
|
22169
|
-
var
|
|
22188
|
+
var MListBoxActionsvue_type_template_id_dc7f0b5a_staticRenderFns = [];
|
|
22170
22189
|
|
|
22171
22190
|
;// 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
22191
|
|
|
@@ -22221,6 +22240,7 @@ var MListBoxActionsvue_type_template_id_27542c5d_staticRenderFns = [];
|
|
|
22221
22240
|
data: function data() {
|
|
22222
22241
|
return {
|
|
22223
22242
|
isOpen: this.open,
|
|
22243
|
+
displayTop: false,
|
|
22224
22244
|
posTop: '0px',
|
|
22225
22245
|
hasDataTable: false
|
|
22226
22246
|
};
|
|
@@ -22256,19 +22276,25 @@ var MListBoxActionsvue_type_template_id_27542c5d_staticRenderFns = [];
|
|
|
22256
22276
|
onClickOutside: function onClickOutside() {
|
|
22257
22277
|
this.isOpen = false;
|
|
22258
22278
|
},
|
|
22279
|
+
onSwitch: function onSwitch(e) {
|
|
22280
|
+
if (!this.isOpen) {
|
|
22281
|
+
if (this.$refs.listbox.clientHeight + e.clientY >= window.innerHeight) {
|
|
22282
|
+
this.displayTop = true;
|
|
22283
|
+
}
|
|
22284
|
+
if (this.hasDataTable) {
|
|
22285
|
+
var buttonSizes = this.$refs.trigger.getBoundingClientRect();
|
|
22286
|
+
this.posTop = buttonSizes.top + buttonSizes.height;
|
|
22287
|
+
}
|
|
22288
|
+
}
|
|
22289
|
+
this.isOpen = !this.isOpen;
|
|
22290
|
+
},
|
|
22259
22291
|
onClickItem: function onClickItem(item, listIndex, itemIndex) {
|
|
22260
22292
|
var valToEmit = Object.assign({
|
|
22261
22293
|
listIndex: listIndex,
|
|
22262
22294
|
itemIndex: itemIndex
|
|
22263
22295
|
}, 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
|
-
}
|
|
22296
|
+
this.$emit('update:itemSelected', valToEmit); // TODO: deprecated
|
|
22297
|
+
this.$emit('item-clicked', valToEmit);
|
|
22272
22298
|
},
|
|
22273
22299
|
handleScroll: function handleScroll() {
|
|
22274
22300
|
this.isOpen = false;
|
|
@@ -22277,10 +22303,10 @@ var MListBoxActionsvue_type_template_id_27542c5d_staticRenderFns = [];
|
|
|
22277
22303
|
});
|
|
22278
22304
|
;// CONCATENATED MODULE: ./src/components/listbox/MListBoxActions.vue?vue&type=script&lang=js&
|
|
22279
22305
|
/* 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=
|
|
22306
|
+
;// 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
22307
|
// extracted by mini-css-extract-plugin
|
|
22282
22308
|
|
|
22283
|
-
;// CONCATENATED MODULE: ./src/components/listbox/MListBoxActions.vue?vue&type=style&index=0&id=
|
|
22309
|
+
;// CONCATENATED MODULE: ./src/components/listbox/MListBoxActions.vue?vue&type=style&index=0&id=dc7f0b5a&prod&lang=scss&
|
|
22284
22310
|
|
|
22285
22311
|
;// CONCATENATED MODULE: ./src/components/listbox/MListBoxActions.vue
|
|
22286
22312
|
|
|
@@ -22293,8 +22319,8 @@ var MListBoxActionsvue_type_template_id_27542c5d_staticRenderFns = [];
|
|
|
22293
22319
|
|
|
22294
22320
|
var MListBoxActions_component = normalizeComponent(
|
|
22295
22321
|
listbox_MListBoxActionsvue_type_script_lang_js_,
|
|
22296
|
-
|
|
22297
|
-
|
|
22322
|
+
MListBoxActionsvue_type_template_id_dc7f0b5a_render,
|
|
22323
|
+
MListBoxActionsvue_type_template_id_dc7f0b5a_staticRenderFns,
|
|
22298
22324
|
false,
|
|
22299
22325
|
null,
|
|
22300
22326
|
null,
|