@mozaic-ds/vue 0.29.0 → 0.29.1-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.
- package/dist/mozaic-vue.adeo.umd.js +112 -94
- package/dist/mozaic-vue.common.js +112 -94
- package/dist/mozaic-vue.common.js.map +1 -1
- package/dist/mozaic-vue.umd.js +112 -94
- package/dist/mozaic-vue.umd.js.map +1 -1
- package/dist/mozaic-vue.umd.min.js +1 -1
- package/dist/mozaic-vue.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/tabs/MTab.vue +60 -54
|
@@ -18960,6 +18960,9 @@ function _regeneratorRuntime() {
|
|
|
18960
18960
|
var exports = {},
|
|
18961
18961
|
Op = Object.prototype,
|
|
18962
18962
|
hasOwn = Op.hasOwnProperty,
|
|
18963
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
18964
|
+
obj[key] = desc.value;
|
|
18965
|
+
},
|
|
18963
18966
|
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
18964
18967
|
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
18965
18968
|
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
@@ -18983,40 +18986,9 @@ function _regeneratorRuntime() {
|
|
|
18983
18986
|
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
18984
18987
|
generator = Object.create(protoGenerator.prototype),
|
|
18985
18988
|
context = new Context(tryLocsList || []);
|
|
18986
|
-
return generator
|
|
18987
|
-
|
|
18988
|
-
|
|
18989
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
18990
|
-
if ("completed" === state) {
|
|
18991
|
-
if ("throw" === method) throw arg;
|
|
18992
|
-
return doneResult();
|
|
18993
|
-
}
|
|
18994
|
-
for (context.method = method, context.arg = arg;;) {
|
|
18995
|
-
var delegate = context.delegate;
|
|
18996
|
-
if (delegate) {
|
|
18997
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
18998
|
-
if (delegateResult) {
|
|
18999
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
19000
|
-
return delegateResult;
|
|
19001
|
-
}
|
|
19002
|
-
}
|
|
19003
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
19004
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
19005
|
-
context.dispatchException(context.arg);
|
|
19006
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
19007
|
-
state = "executing";
|
|
19008
|
-
var record = tryCatch(innerFn, self, context);
|
|
19009
|
-
if ("normal" === record.type) {
|
|
19010
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
19011
|
-
return {
|
|
19012
|
-
value: record.arg,
|
|
19013
|
-
done: context.done
|
|
19014
|
-
};
|
|
19015
|
-
}
|
|
19016
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
19017
|
-
}
|
|
19018
|
-
};
|
|
19019
|
-
}(innerFn, self, context), generator;
|
|
18989
|
+
return defineProperty(generator, "_invoke", {
|
|
18990
|
+
value: makeInvokeMethod(innerFn, self, context)
|
|
18991
|
+
}), generator;
|
|
19020
18992
|
}
|
|
19021
18993
|
function tryCatch(fn, obj, arg) {
|
|
19022
18994
|
try {
|
|
@@ -19070,13 +19042,49 @@ function _regeneratorRuntime() {
|
|
|
19070
19042
|
reject(record.arg);
|
|
19071
19043
|
}
|
|
19072
19044
|
var previousPromise;
|
|
19073
|
-
this
|
|
19074
|
-
function
|
|
19075
|
-
|
|
19076
|
-
|
|
19077
|
-
|
|
19045
|
+
defineProperty(this, "_invoke", {
|
|
19046
|
+
value: function value(method, arg) {
|
|
19047
|
+
function callInvokeWithMethodAndArg() {
|
|
19048
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
19049
|
+
invoke(method, arg, resolve, reject);
|
|
19050
|
+
});
|
|
19051
|
+
}
|
|
19052
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
19053
|
+
}
|
|
19054
|
+
});
|
|
19055
|
+
}
|
|
19056
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
19057
|
+
var state = "suspendedStart";
|
|
19058
|
+
return function (method, arg) {
|
|
19059
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
19060
|
+
if ("completed" === state) {
|
|
19061
|
+
if ("throw" === method) throw arg;
|
|
19062
|
+
return doneResult();
|
|
19063
|
+
}
|
|
19064
|
+
for (context.method = method, context.arg = arg;;) {
|
|
19065
|
+
var delegate = context.delegate;
|
|
19066
|
+
if (delegate) {
|
|
19067
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
19068
|
+
if (delegateResult) {
|
|
19069
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
19070
|
+
return delegateResult;
|
|
19071
|
+
}
|
|
19072
|
+
}
|
|
19073
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
19074
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
19075
|
+
context.dispatchException(context.arg);
|
|
19076
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
19077
|
+
state = "executing";
|
|
19078
|
+
var record = tryCatch(innerFn, self, context);
|
|
19079
|
+
if ("normal" === record.type) {
|
|
19080
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
19081
|
+
return {
|
|
19082
|
+
value: record.arg,
|
|
19083
|
+
done: context.done
|
|
19084
|
+
};
|
|
19085
|
+
}
|
|
19086
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
19078
19087
|
}
|
|
19079
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
19080
19088
|
};
|
|
19081
19089
|
}
|
|
19082
19090
|
function maybeInvokeDelegate(delegate, context) {
|
|
@@ -19134,7 +19142,13 @@ function _regeneratorRuntime() {
|
|
|
19134
19142
|
done: !0
|
|
19135
19143
|
};
|
|
19136
19144
|
}
|
|
19137
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
19145
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
19146
|
+
value: GeneratorFunctionPrototype,
|
|
19147
|
+
configurable: !0
|
|
19148
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
19149
|
+
value: GeneratorFunction,
|
|
19150
|
+
configurable: !0
|
|
19151
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
19138
19152
|
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
19139
19153
|
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
19140
19154
|
}, exports.mark = function (genFun) {
|
|
@@ -19155,8 +19169,9 @@ function _regeneratorRuntime() {
|
|
|
19155
19169
|
return this;
|
|
19156
19170
|
}), define(Gp, "toString", function () {
|
|
19157
19171
|
return "[object Generator]";
|
|
19158
|
-
}), exports.keys = function (
|
|
19159
|
-
var
|
|
19172
|
+
}), exports.keys = function (val) {
|
|
19173
|
+
var object = Object(val),
|
|
19174
|
+
keys = [];
|
|
19160
19175
|
for (var key in object) {
|
|
19161
19176
|
keys.push(key);
|
|
19162
19177
|
}
|
|
@@ -30315,10 +30330,11 @@ MStepper.install = function (Vue) {
|
|
|
30315
30330
|
Vue.component(MStepper.name, MStepper);
|
|
30316
30331
|
};
|
|
30317
30332
|
|
|
30318
|
-
;// 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/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/tabs/MTab.vue?vue&type=template&id=
|
|
30333
|
+
;// 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/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/tabs/MTab.vue?vue&type=template&id=75c1875c&
|
|
30319
30334
|
|
|
30320
30335
|
|
|
30321
|
-
|
|
30336
|
+
|
|
30337
|
+
var MTabvue_type_template_id_75c1875c_render = function render() {
|
|
30322
30338
|
var _vm = this,
|
|
30323
30339
|
_c = _vm._self._c;
|
|
30324
30340
|
return _c('div', {
|
|
@@ -30340,19 +30356,19 @@ var MTabvue_type_template_id_3d3ca203_render = function render() {
|
|
|
30340
30356
|
}, [tab.router ? _c("".concat(tab.router), _vm._b({
|
|
30341
30357
|
tag: "component",
|
|
30342
30358
|
staticClass: "mc-tabs__element",
|
|
30343
|
-
class: _vm.
|
|
30359
|
+
class: _vm.setActiveClass(tab),
|
|
30344
30360
|
attrs: {
|
|
30345
30361
|
"to": tab.to,
|
|
30346
30362
|
"active-class": "mc-tabs__element--selected"
|
|
30347
30363
|
}
|
|
30348
30364
|
}, 'component', tab.attrs, false), [_c('span', {
|
|
30349
30365
|
staticClass: "mc-tabs__text"
|
|
30350
|
-
}, [_vm._v(_vm._s(tab.text))])]) : _c(tab.href ? tab.disabled ? 'span' : 'a' : 'button',
|
|
30366
|
+
}, [_vm._v(_vm._s(tab.text))])]) : _c(tab.href ? tab.disabled ? 'span' : 'a' : 'button', {
|
|
30351
30367
|
ref: "tab",
|
|
30352
30368
|
refInFor: true,
|
|
30353
30369
|
tag: "component",
|
|
30354
30370
|
staticClass: "mc-tabs__element",
|
|
30355
|
-
class: _vm.
|
|
30371
|
+
class: _vm.setActiveClass(tab),
|
|
30356
30372
|
attrs: {
|
|
30357
30373
|
"id": tab.id,
|
|
30358
30374
|
"href": tab.href ? !tab.disabled ? tab.href : null : null,
|
|
@@ -30363,10 +30379,12 @@ var MTabvue_type_template_id_3d3ca203_render = function render() {
|
|
|
30363
30379
|
},
|
|
30364
30380
|
on: {
|
|
30365
30381
|
"click": function click($event) {
|
|
30366
|
-
|
|
30382
|
+
_vm.manageTabs($event.target, $event, Object.assign({
|
|
30383
|
+
index: index
|
|
30384
|
+
}, tab));
|
|
30367
30385
|
}
|
|
30368
30386
|
}
|
|
30369
|
-
},
|
|
30387
|
+
}, [_c('span', {
|
|
30370
30388
|
staticClass: "mc-tabs__text"
|
|
30371
30389
|
}, [_vm._v(_vm._s(tab.text))])])], 1);
|
|
30372
30390
|
}), 0) : _c('m-select', _vm._b({
|
|
@@ -30375,9 +30393,9 @@ var MTabvue_type_template_id_3d3ca203_render = function render() {
|
|
|
30375
30393
|
}
|
|
30376
30394
|
}, 'm-select', _vm.selectAttributes, false))], 1);
|
|
30377
30395
|
};
|
|
30378
|
-
var
|
|
30396
|
+
var MTabvue_type_template_id_75c1875c_staticRenderFns = [];
|
|
30379
30397
|
|
|
30380
|
-
;// CONCATENATED MODULE: ./src/components/tabs/MTab.vue?vue&type=template&id=
|
|
30398
|
+
;// CONCATENATED MODULE: ./src/components/tabs/MTab.vue?vue&type=template&id=75c1875c&
|
|
30381
30399
|
|
|
30382
30400
|
;// 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/tabs/MTab.vue?vue&type=script&lang=js&
|
|
30383
30401
|
|
|
@@ -30386,6 +30404,7 @@ var MTabvue_type_template_id_3d3ca203_staticRenderFns = [];
|
|
|
30386
30404
|
|
|
30387
30405
|
|
|
30388
30406
|
|
|
30407
|
+
|
|
30389
30408
|
/* harmony default export */ var MTabvue_type_script_lang_js_ = ({
|
|
30390
30409
|
name: 'MTab',
|
|
30391
30410
|
components: {
|
|
@@ -30427,37 +30446,33 @@ var MTabvue_type_template_id_3d3ca203_staticRenderFns = [];
|
|
|
30427
30446
|
},
|
|
30428
30447
|
activeIndex: {
|
|
30429
30448
|
type: Number,
|
|
30430
|
-
default:
|
|
30449
|
+
default: 0
|
|
30431
30450
|
}
|
|
30432
30451
|
},
|
|
30433
30452
|
data: function data() {
|
|
30434
30453
|
return {
|
|
30435
|
-
tablist: null
|
|
30436
|
-
localActiveIndex: null
|
|
30454
|
+
tablist: null
|
|
30437
30455
|
};
|
|
30438
30456
|
},
|
|
30439
30457
|
computed: {
|
|
30440
30458
|
setClasses: function setClasses() {
|
|
30441
|
-
|
|
30459
|
+
var classes = [{
|
|
30442
30460
|
'mc-tabs--full': this.align === 'full',
|
|
30443
30461
|
'mc-tabs--full-centered': this.align === 'centered',
|
|
30444
30462
|
'mc-tabs--dropdown': this.type === 'dropdown',
|
|
30445
|
-
'mc-tabs--no-
|
|
30446
|
-
};
|
|
30463
|
+
'mc-tabs--no-shadow': !this.shadow
|
|
30464
|
+
}];
|
|
30465
|
+
return classes;
|
|
30447
30466
|
}
|
|
30448
30467
|
},
|
|
30449
30468
|
watch: {
|
|
30450
30469
|
activeIndex: function activeIndex(newValue) {
|
|
30451
|
-
|
|
30452
|
-
|
|
30453
|
-
|
|
30454
|
-
|
|
30455
|
-
|
|
30456
|
-
|
|
30457
|
-
this.setTabState(selectedTab);
|
|
30458
|
-
}
|
|
30459
|
-
},
|
|
30460
|
-
immediate: true
|
|
30470
|
+
var tab = this.getTabFromIndex(newValue);
|
|
30471
|
+
if (tab && this.tabs[newValue]) {
|
|
30472
|
+
this.manageTabs(tab, null, Object.assign({
|
|
30473
|
+
index: newValue
|
|
30474
|
+
}, this.tabs[newValue]));
|
|
30475
|
+
}
|
|
30461
30476
|
}
|
|
30462
30477
|
},
|
|
30463
30478
|
mounted: function mounted() {
|
|
@@ -30466,57 +30481,60 @@ var MTabvue_type_template_id_3d3ca203_staticRenderFns = [];
|
|
|
30466
30481
|
if (_this.type === 'tabs') {
|
|
30467
30482
|
_this.tablist = _this.$refs.tablist;
|
|
30468
30483
|
if (_this.activeIndex) {
|
|
30469
|
-
|
|
30484
|
+
var tab = _this.getTabFromIndex(_this.activeIndex);
|
|
30485
|
+
if (tab) {
|
|
30486
|
+
_this.manageTabs(tab);
|
|
30487
|
+
}
|
|
30470
30488
|
} else {
|
|
30471
30489
|
var isActive = _this.tabs.some(function (tab) {
|
|
30472
|
-
return Object.prototype.hasOwnProperty.call(tab, 'active')
|
|
30490
|
+
return Object.prototype.hasOwnProperty.call(tab, 'active');
|
|
30473
30491
|
});
|
|
30474
30492
|
if (!isActive) {
|
|
30475
|
-
|
|
30493
|
+
var firstTab = _this.tablist.querySelector('.mc-tabs__element');
|
|
30494
|
+
_this.manageTabs(firstTab);
|
|
30476
30495
|
}
|
|
30477
30496
|
}
|
|
30478
30497
|
}
|
|
30479
30498
|
});
|
|
30480
30499
|
},
|
|
30481
30500
|
methods: {
|
|
30482
|
-
|
|
30483
|
-
|
|
30484
|
-
|
|
30485
|
-
'mc-tabs__element--
|
|
30486
|
-
}
|
|
30501
|
+
setActiveClass: function setActiveClass(tab) {
|
|
30502
|
+
var tabClasses = [];
|
|
30503
|
+
if (tab.active) {
|
|
30504
|
+
tabClasses.push('mc-tabs__element--selected');
|
|
30505
|
+
}
|
|
30506
|
+
if (tab.disabled) {
|
|
30507
|
+
tabClasses.push('mc-tabs__element--disabled');
|
|
30508
|
+
}
|
|
30509
|
+
return tabClasses;
|
|
30487
30510
|
},
|
|
30488
|
-
|
|
30511
|
+
manageTabs: function manageTabs(el, e, tab) {
|
|
30512
|
+
if (tab && tab.disabled) {
|
|
30513
|
+
return;
|
|
30514
|
+
}
|
|
30515
|
+
if (e) {
|
|
30516
|
+
this.$emit('tab-clicked', e.currentTarget, tab);
|
|
30517
|
+
}
|
|
30489
30518
|
this.tablist.querySelectorAll('.mc-tabs__element').forEach(function (el) {
|
|
30490
30519
|
el.classList.remove('mc-tabs__element--selected');
|
|
30491
30520
|
el.setAttribute('aria-selected', 'false');
|
|
30492
30521
|
});
|
|
30493
|
-
|
|
30494
|
-
|
|
30522
|
+
el.classList.add('mc-tabs__element--selected');
|
|
30523
|
+
el.setAttribute('aria-selected', 'true');
|
|
30495
30524
|
},
|
|
30496
30525
|
getTabFromIndex: function getTabFromIndex(index) {
|
|
30497
30526
|
if (this.tablist && this.tablist.children[index] && this.tablist.children[index].children[0]) {
|
|
30498
30527
|
return this.tablist.children[index].children[0];
|
|
30499
30528
|
}
|
|
30500
|
-
},
|
|
30501
|
-
onTabClicked: function onTabClicked(e, tab, index) {
|
|
30502
|
-
if (tab && tab.disabled) {
|
|
30503
|
-
return;
|
|
30504
|
-
}
|
|
30505
|
-
if (typeof this.activeIndex !== 'number') {
|
|
30506
|
-
this.localActiveIndex = index;
|
|
30507
|
-
}
|
|
30508
|
-
this.$emit('tab-clicked', e.currentTarget, Object.assign({
|
|
30509
|
-
index: index
|
|
30510
|
-
}, tab));
|
|
30511
30529
|
}
|
|
30512
30530
|
}
|
|
30513
30531
|
});
|
|
30514
30532
|
;// CONCATENATED MODULE: ./src/components/tabs/MTab.vue?vue&type=script&lang=js&
|
|
30515
30533
|
/* harmony default export */ var tabs_MTabvue_type_script_lang_js_ = (MTabvue_type_script_lang_js_);
|
|
30516
|
-
;// 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/tabs/MTab.vue?vue&type=style&index=0&id=
|
|
30534
|
+
;// 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/tabs/MTab.vue?vue&type=style&index=0&id=75c1875c&prod&lang=scss&
|
|
30517
30535
|
// extracted by mini-css-extract-plugin
|
|
30518
30536
|
|
|
30519
|
-
;// CONCATENATED MODULE: ./src/components/tabs/MTab.vue?vue&type=style&index=0&id=
|
|
30537
|
+
;// CONCATENATED MODULE: ./src/components/tabs/MTab.vue?vue&type=style&index=0&id=75c1875c&prod&lang=scss&
|
|
30520
30538
|
|
|
30521
30539
|
;// CONCATENATED MODULE: ./src/components/tabs/MTab.vue
|
|
30522
30540
|
|
|
@@ -30529,8 +30547,8 @@ var MTabvue_type_template_id_3d3ca203_staticRenderFns = [];
|
|
|
30529
30547
|
|
|
30530
30548
|
var MTab_component = normalizeComponent(
|
|
30531
30549
|
tabs_MTabvue_type_script_lang_js_,
|
|
30532
|
-
|
|
30533
|
-
|
|
30550
|
+
MTabvue_type_template_id_75c1875c_render,
|
|
30551
|
+
MTabvue_type_template_id_75c1875c_staticRenderFns,
|
|
30534
30552
|
false,
|
|
30535
30553
|
null,
|
|
30536
30554
|
null,
|