@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
|
@@ -18950,6 +18950,9 @@ function _regeneratorRuntime() {
|
|
|
18950
18950
|
var exports = {},
|
|
18951
18951
|
Op = Object.prototype,
|
|
18952
18952
|
hasOwn = Op.hasOwnProperty,
|
|
18953
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
18954
|
+
obj[key] = desc.value;
|
|
18955
|
+
},
|
|
18953
18956
|
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
18954
18957
|
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
18955
18958
|
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
@@ -18973,40 +18976,9 @@ function _regeneratorRuntime() {
|
|
|
18973
18976
|
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
18974
18977
|
generator = Object.create(protoGenerator.prototype),
|
|
18975
18978
|
context = new Context(tryLocsList || []);
|
|
18976
|
-
return generator
|
|
18977
|
-
|
|
18978
|
-
|
|
18979
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
18980
|
-
if ("completed" === state) {
|
|
18981
|
-
if ("throw" === method) throw arg;
|
|
18982
|
-
return doneResult();
|
|
18983
|
-
}
|
|
18984
|
-
for (context.method = method, context.arg = arg;;) {
|
|
18985
|
-
var delegate = context.delegate;
|
|
18986
|
-
if (delegate) {
|
|
18987
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
18988
|
-
if (delegateResult) {
|
|
18989
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
18990
|
-
return delegateResult;
|
|
18991
|
-
}
|
|
18992
|
-
}
|
|
18993
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
18994
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
18995
|
-
context.dispatchException(context.arg);
|
|
18996
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
18997
|
-
state = "executing";
|
|
18998
|
-
var record = tryCatch(innerFn, self, context);
|
|
18999
|
-
if ("normal" === record.type) {
|
|
19000
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
19001
|
-
return {
|
|
19002
|
-
value: record.arg,
|
|
19003
|
-
done: context.done
|
|
19004
|
-
};
|
|
19005
|
-
}
|
|
19006
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
19007
|
-
}
|
|
19008
|
-
};
|
|
19009
|
-
}(innerFn, self, context), generator;
|
|
18979
|
+
return defineProperty(generator, "_invoke", {
|
|
18980
|
+
value: makeInvokeMethod(innerFn, self, context)
|
|
18981
|
+
}), generator;
|
|
19010
18982
|
}
|
|
19011
18983
|
function tryCatch(fn, obj, arg) {
|
|
19012
18984
|
try {
|
|
@@ -19060,13 +19032,49 @@ function _regeneratorRuntime() {
|
|
|
19060
19032
|
reject(record.arg);
|
|
19061
19033
|
}
|
|
19062
19034
|
var previousPromise;
|
|
19063
|
-
this
|
|
19064
|
-
function
|
|
19065
|
-
|
|
19066
|
-
|
|
19067
|
-
|
|
19035
|
+
defineProperty(this, "_invoke", {
|
|
19036
|
+
value: function value(method, arg) {
|
|
19037
|
+
function callInvokeWithMethodAndArg() {
|
|
19038
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
19039
|
+
invoke(method, arg, resolve, reject);
|
|
19040
|
+
});
|
|
19041
|
+
}
|
|
19042
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
19043
|
+
}
|
|
19044
|
+
});
|
|
19045
|
+
}
|
|
19046
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
19047
|
+
var state = "suspendedStart";
|
|
19048
|
+
return function (method, arg) {
|
|
19049
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
19050
|
+
if ("completed" === state) {
|
|
19051
|
+
if ("throw" === method) throw arg;
|
|
19052
|
+
return doneResult();
|
|
19053
|
+
}
|
|
19054
|
+
for (context.method = method, context.arg = arg;;) {
|
|
19055
|
+
var delegate = context.delegate;
|
|
19056
|
+
if (delegate) {
|
|
19057
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
19058
|
+
if (delegateResult) {
|
|
19059
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
19060
|
+
return delegateResult;
|
|
19061
|
+
}
|
|
19062
|
+
}
|
|
19063
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
19064
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
19065
|
+
context.dispatchException(context.arg);
|
|
19066
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
19067
|
+
state = "executing";
|
|
19068
|
+
var record = tryCatch(innerFn, self, context);
|
|
19069
|
+
if ("normal" === record.type) {
|
|
19070
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
19071
|
+
return {
|
|
19072
|
+
value: record.arg,
|
|
19073
|
+
done: context.done
|
|
19074
|
+
};
|
|
19075
|
+
}
|
|
19076
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
19068
19077
|
}
|
|
19069
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
19070
19078
|
};
|
|
19071
19079
|
}
|
|
19072
19080
|
function maybeInvokeDelegate(delegate, context) {
|
|
@@ -19124,7 +19132,13 @@ function _regeneratorRuntime() {
|
|
|
19124
19132
|
done: !0
|
|
19125
19133
|
};
|
|
19126
19134
|
}
|
|
19127
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
19135
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
19136
|
+
value: GeneratorFunctionPrototype,
|
|
19137
|
+
configurable: !0
|
|
19138
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
19139
|
+
value: GeneratorFunction,
|
|
19140
|
+
configurable: !0
|
|
19141
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
19128
19142
|
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
19129
19143
|
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
19130
19144
|
}, exports.mark = function (genFun) {
|
|
@@ -19145,8 +19159,9 @@ function _regeneratorRuntime() {
|
|
|
19145
19159
|
return this;
|
|
19146
19160
|
}), define(Gp, "toString", function () {
|
|
19147
19161
|
return "[object Generator]";
|
|
19148
|
-
}), exports.keys = function (
|
|
19149
|
-
var
|
|
19162
|
+
}), exports.keys = function (val) {
|
|
19163
|
+
var object = Object(val),
|
|
19164
|
+
keys = [];
|
|
19150
19165
|
for (var key in object) {
|
|
19151
19166
|
keys.push(key);
|
|
19152
19167
|
}
|
|
@@ -30305,10 +30320,11 @@ MStepper.install = function (Vue) {
|
|
|
30305
30320
|
Vue.component(MStepper.name, MStepper);
|
|
30306
30321
|
};
|
|
30307
30322
|
|
|
30308
|
-
;// 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=
|
|
30323
|
+
;// 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&
|
|
30309
30324
|
|
|
30310
30325
|
|
|
30311
|
-
|
|
30326
|
+
|
|
30327
|
+
var MTabvue_type_template_id_75c1875c_render = function render() {
|
|
30312
30328
|
var _vm = this,
|
|
30313
30329
|
_c = _vm._self._c;
|
|
30314
30330
|
return _c('div', {
|
|
@@ -30330,19 +30346,19 @@ var MTabvue_type_template_id_3d3ca203_render = function render() {
|
|
|
30330
30346
|
}, [tab.router ? _c("".concat(tab.router), _vm._b({
|
|
30331
30347
|
tag: "component",
|
|
30332
30348
|
staticClass: "mc-tabs__element",
|
|
30333
|
-
class: _vm.
|
|
30349
|
+
class: _vm.setActiveClass(tab),
|
|
30334
30350
|
attrs: {
|
|
30335
30351
|
"to": tab.to,
|
|
30336
30352
|
"active-class": "mc-tabs__element--selected"
|
|
30337
30353
|
}
|
|
30338
30354
|
}, 'component', tab.attrs, false), [_c('span', {
|
|
30339
30355
|
staticClass: "mc-tabs__text"
|
|
30340
|
-
}, [_vm._v(_vm._s(tab.text))])]) : _c(tab.href ? tab.disabled ? 'span' : 'a' : 'button',
|
|
30356
|
+
}, [_vm._v(_vm._s(tab.text))])]) : _c(tab.href ? tab.disabled ? 'span' : 'a' : 'button', {
|
|
30341
30357
|
ref: "tab",
|
|
30342
30358
|
refInFor: true,
|
|
30343
30359
|
tag: "component",
|
|
30344
30360
|
staticClass: "mc-tabs__element",
|
|
30345
|
-
class: _vm.
|
|
30361
|
+
class: _vm.setActiveClass(tab),
|
|
30346
30362
|
attrs: {
|
|
30347
30363
|
"id": tab.id,
|
|
30348
30364
|
"href": tab.href ? !tab.disabled ? tab.href : null : null,
|
|
@@ -30353,10 +30369,12 @@ var MTabvue_type_template_id_3d3ca203_render = function render() {
|
|
|
30353
30369
|
},
|
|
30354
30370
|
on: {
|
|
30355
30371
|
"click": function click($event) {
|
|
30356
|
-
|
|
30372
|
+
_vm.manageTabs($event.target, $event, Object.assign({
|
|
30373
|
+
index: index
|
|
30374
|
+
}, tab));
|
|
30357
30375
|
}
|
|
30358
30376
|
}
|
|
30359
|
-
},
|
|
30377
|
+
}, [_c('span', {
|
|
30360
30378
|
staticClass: "mc-tabs__text"
|
|
30361
30379
|
}, [_vm._v(_vm._s(tab.text))])])], 1);
|
|
30362
30380
|
}), 0) : _c('m-select', _vm._b({
|
|
@@ -30365,9 +30383,9 @@ var MTabvue_type_template_id_3d3ca203_render = function render() {
|
|
|
30365
30383
|
}
|
|
30366
30384
|
}, 'm-select', _vm.selectAttributes, false))], 1);
|
|
30367
30385
|
};
|
|
30368
|
-
var
|
|
30386
|
+
var MTabvue_type_template_id_75c1875c_staticRenderFns = [];
|
|
30369
30387
|
|
|
30370
|
-
;// CONCATENATED MODULE: ./src/components/tabs/MTab.vue?vue&type=template&id=
|
|
30388
|
+
;// CONCATENATED MODULE: ./src/components/tabs/MTab.vue?vue&type=template&id=75c1875c&
|
|
30371
30389
|
|
|
30372
30390
|
;// 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&
|
|
30373
30391
|
|
|
@@ -30376,6 +30394,7 @@ var MTabvue_type_template_id_3d3ca203_staticRenderFns = [];
|
|
|
30376
30394
|
|
|
30377
30395
|
|
|
30378
30396
|
|
|
30397
|
+
|
|
30379
30398
|
/* harmony default export */ var MTabvue_type_script_lang_js_ = ({
|
|
30380
30399
|
name: 'MTab',
|
|
30381
30400
|
components: {
|
|
@@ -30417,37 +30436,33 @@ var MTabvue_type_template_id_3d3ca203_staticRenderFns = [];
|
|
|
30417
30436
|
},
|
|
30418
30437
|
activeIndex: {
|
|
30419
30438
|
type: Number,
|
|
30420
|
-
default:
|
|
30439
|
+
default: 0
|
|
30421
30440
|
}
|
|
30422
30441
|
},
|
|
30423
30442
|
data: function data() {
|
|
30424
30443
|
return {
|
|
30425
|
-
tablist: null
|
|
30426
|
-
localActiveIndex: null
|
|
30444
|
+
tablist: null
|
|
30427
30445
|
};
|
|
30428
30446
|
},
|
|
30429
30447
|
computed: {
|
|
30430
30448
|
setClasses: function setClasses() {
|
|
30431
|
-
|
|
30449
|
+
var classes = [{
|
|
30432
30450
|
'mc-tabs--full': this.align === 'full',
|
|
30433
30451
|
'mc-tabs--full-centered': this.align === 'centered',
|
|
30434
30452
|
'mc-tabs--dropdown': this.type === 'dropdown',
|
|
30435
|
-
'mc-tabs--no-
|
|
30436
|
-
};
|
|
30453
|
+
'mc-tabs--no-shadow': !this.shadow
|
|
30454
|
+
}];
|
|
30455
|
+
return classes;
|
|
30437
30456
|
}
|
|
30438
30457
|
},
|
|
30439
30458
|
watch: {
|
|
30440
30459
|
activeIndex: function activeIndex(newValue) {
|
|
30441
|
-
|
|
30442
|
-
|
|
30443
|
-
|
|
30444
|
-
|
|
30445
|
-
|
|
30446
|
-
|
|
30447
|
-
this.setTabState(selectedTab);
|
|
30448
|
-
}
|
|
30449
|
-
},
|
|
30450
|
-
immediate: true
|
|
30460
|
+
var tab = this.getTabFromIndex(newValue);
|
|
30461
|
+
if (tab && this.tabs[newValue]) {
|
|
30462
|
+
this.manageTabs(tab, null, Object.assign({
|
|
30463
|
+
index: newValue
|
|
30464
|
+
}, this.tabs[newValue]));
|
|
30465
|
+
}
|
|
30451
30466
|
}
|
|
30452
30467
|
},
|
|
30453
30468
|
mounted: function mounted() {
|
|
@@ -30456,57 +30471,60 @@ var MTabvue_type_template_id_3d3ca203_staticRenderFns = [];
|
|
|
30456
30471
|
if (_this.type === 'tabs') {
|
|
30457
30472
|
_this.tablist = _this.$refs.tablist;
|
|
30458
30473
|
if (_this.activeIndex) {
|
|
30459
|
-
|
|
30474
|
+
var tab = _this.getTabFromIndex(_this.activeIndex);
|
|
30475
|
+
if (tab) {
|
|
30476
|
+
_this.manageTabs(tab);
|
|
30477
|
+
}
|
|
30460
30478
|
} else {
|
|
30461
30479
|
var isActive = _this.tabs.some(function (tab) {
|
|
30462
|
-
return Object.prototype.hasOwnProperty.call(tab, 'active')
|
|
30480
|
+
return Object.prototype.hasOwnProperty.call(tab, 'active');
|
|
30463
30481
|
});
|
|
30464
30482
|
if (!isActive) {
|
|
30465
|
-
|
|
30483
|
+
var firstTab = _this.tablist.querySelector('.mc-tabs__element');
|
|
30484
|
+
_this.manageTabs(firstTab);
|
|
30466
30485
|
}
|
|
30467
30486
|
}
|
|
30468
30487
|
}
|
|
30469
30488
|
});
|
|
30470
30489
|
},
|
|
30471
30490
|
methods: {
|
|
30472
|
-
|
|
30473
|
-
|
|
30474
|
-
|
|
30475
|
-
'mc-tabs__element--
|
|
30476
|
-
}
|
|
30491
|
+
setActiveClass: function setActiveClass(tab) {
|
|
30492
|
+
var tabClasses = [];
|
|
30493
|
+
if (tab.active) {
|
|
30494
|
+
tabClasses.push('mc-tabs__element--selected');
|
|
30495
|
+
}
|
|
30496
|
+
if (tab.disabled) {
|
|
30497
|
+
tabClasses.push('mc-tabs__element--disabled');
|
|
30498
|
+
}
|
|
30499
|
+
return tabClasses;
|
|
30477
30500
|
},
|
|
30478
|
-
|
|
30501
|
+
manageTabs: function manageTabs(el, e, tab) {
|
|
30502
|
+
if (tab && tab.disabled) {
|
|
30503
|
+
return;
|
|
30504
|
+
}
|
|
30505
|
+
if (e) {
|
|
30506
|
+
this.$emit('tab-clicked', e.currentTarget, tab);
|
|
30507
|
+
}
|
|
30479
30508
|
this.tablist.querySelectorAll('.mc-tabs__element').forEach(function (el) {
|
|
30480
30509
|
el.classList.remove('mc-tabs__element--selected');
|
|
30481
30510
|
el.setAttribute('aria-selected', 'false');
|
|
30482
30511
|
});
|
|
30483
|
-
|
|
30484
|
-
|
|
30512
|
+
el.classList.add('mc-tabs__element--selected');
|
|
30513
|
+
el.setAttribute('aria-selected', 'true');
|
|
30485
30514
|
},
|
|
30486
30515
|
getTabFromIndex: function getTabFromIndex(index) {
|
|
30487
30516
|
if (this.tablist && this.tablist.children[index] && this.tablist.children[index].children[0]) {
|
|
30488
30517
|
return this.tablist.children[index].children[0];
|
|
30489
30518
|
}
|
|
30490
|
-
},
|
|
30491
|
-
onTabClicked: function onTabClicked(e, tab, index) {
|
|
30492
|
-
if (tab && tab.disabled) {
|
|
30493
|
-
return;
|
|
30494
|
-
}
|
|
30495
|
-
if (typeof this.activeIndex !== 'number') {
|
|
30496
|
-
this.localActiveIndex = index;
|
|
30497
|
-
}
|
|
30498
|
-
this.$emit('tab-clicked', e.currentTarget, Object.assign({
|
|
30499
|
-
index: index
|
|
30500
|
-
}, tab));
|
|
30501
30519
|
}
|
|
30502
30520
|
}
|
|
30503
30521
|
});
|
|
30504
30522
|
;// CONCATENATED MODULE: ./src/components/tabs/MTab.vue?vue&type=script&lang=js&
|
|
30505
30523
|
/* harmony default export */ var tabs_MTabvue_type_script_lang_js_ = (MTabvue_type_script_lang_js_);
|
|
30506
|
-
;// 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=
|
|
30524
|
+
;// 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&
|
|
30507
30525
|
// extracted by mini-css-extract-plugin
|
|
30508
30526
|
|
|
30509
|
-
;// CONCATENATED MODULE: ./src/components/tabs/MTab.vue?vue&type=style&index=0&id=
|
|
30527
|
+
;// CONCATENATED MODULE: ./src/components/tabs/MTab.vue?vue&type=style&index=0&id=75c1875c&prod&lang=scss&
|
|
30510
30528
|
|
|
30511
30529
|
;// CONCATENATED MODULE: ./src/components/tabs/MTab.vue
|
|
30512
30530
|
|
|
@@ -30519,8 +30537,8 @@ var MTabvue_type_template_id_3d3ca203_staticRenderFns = [];
|
|
|
30519
30537
|
|
|
30520
30538
|
var MTab_component = normalizeComponent(
|
|
30521
30539
|
tabs_MTabvue_type_script_lang_js_,
|
|
30522
|
-
|
|
30523
|
-
|
|
30540
|
+
MTabvue_type_template_id_75c1875c_render,
|
|
30541
|
+
MTabvue_type_template_id_75c1875c_staticRenderFns,
|
|
30524
30542
|
false,
|
|
30525
30543
|
null,
|
|
30526
30544
|
null,
|