@abi-software/flatmapvuer 0.3.10 → 0.3.12-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/flatmapvuer.common.js +493 -1984
- package/dist/flatmapvuer.common.js.map +1 -1
- package/dist/flatmapvuer.css +1 -1
- package/dist/flatmapvuer.umd.js +493 -1984
- package/dist/flatmapvuer.umd.js.map +1 -1
- package/dist/flatmapvuer.umd.min.js +1 -1
- package/dist/flatmapvuer.umd.min.js.map +1 -1
- package/package-lock.json +90 -1
- package/package.json +1 -1
- package/src/components/FlatmapVuer.vue +51 -10
- package/src/components/MultiFlatmapVuer.vue +127 -16
- package/src/components/PubmedViewer.vue +29 -78
- package/src/components/Tooltip.vue +35 -32
|
@@ -94,13 +94,6 @@ module.exports =
|
|
|
94
94
|
|
|
95
95
|
/***/ }),
|
|
96
96
|
|
|
97
|
-
/***/ "0875":
|
|
98
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
99
|
-
|
|
100
|
-
// extracted by mini-css-extract-plugin
|
|
101
|
-
|
|
102
|
-
/***/ }),
|
|
103
|
-
|
|
104
97
|
/***/ "0f6c":
|
|
105
98
|
/***/ (function(module, exports) {
|
|
106
99
|
|
|
@@ -723,13 +716,6 @@ module.exports = __webpack_require__("e62d");
|
|
|
723
716
|
|
|
724
717
|
/***/ }),
|
|
725
718
|
|
|
726
|
-
/***/ "186a":
|
|
727
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
728
|
-
|
|
729
|
-
// extracted by mini-css-extract-plugin
|
|
730
|
-
|
|
731
|
-
/***/ }),
|
|
732
|
-
|
|
733
719
|
/***/ "1951":
|
|
734
720
|
/***/ (function(module, exports, __webpack_require__) {
|
|
735
721
|
|
|
@@ -758,10 +744,10 @@ module.exports = require("core-js/modules/es.string.search.js");
|
|
|
758
744
|
|
|
759
745
|
/***/ }),
|
|
760
746
|
|
|
761
|
-
/***/ "
|
|
762
|
-
/***/ (function(module, exports) {
|
|
747
|
+
/***/ "1d77":
|
|
748
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
763
749
|
|
|
764
|
-
|
|
750
|
+
// extracted by mini-css-extract-plugin
|
|
765
751
|
|
|
766
752
|
/***/ }),
|
|
767
753
|
|
|
@@ -770,6 +756,24 @@ module.exports = require("throttle-debounce/throttle");
|
|
|
770
756
|
|
|
771
757
|
// extracted by mini-css-extract-plugin
|
|
772
758
|
|
|
759
|
+
/***/ }),
|
|
760
|
+
|
|
761
|
+
/***/ "21d1":
|
|
762
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
763
|
+
|
|
764
|
+
// extracted by mini-css-extract-plugin
|
|
765
|
+
|
|
766
|
+
/***/ }),
|
|
767
|
+
|
|
768
|
+
/***/ "233b":
|
|
769
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
770
|
+
|
|
771
|
+
"use strict";
|
|
772
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PubmedViewer_vue_vue_type_style_index_0_id_58832c92_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7a9a");
|
|
773
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PubmedViewer_vue_vue_type_style_index_0_id_58832c92_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PubmedViewer_vue_vue_type_style_index_0_id_58832c92_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
774
|
+
/* unused harmony reexport * */
|
|
775
|
+
|
|
776
|
+
|
|
773
777
|
/***/ }),
|
|
774
778
|
|
|
775
779
|
/***/ "2439":
|
|
@@ -907,7 +911,14 @@ module.exports = require("core-js/modules/es.symbol.iterator.js");
|
|
|
907
911
|
|
|
908
912
|
/***/ }),
|
|
909
913
|
|
|
910
|
-
/***/ "
|
|
914
|
+
/***/ "30df":
|
|
915
|
+
/***/ (function(module, exports) {
|
|
916
|
+
|
|
917
|
+
module.exports = require("core-js/modules/es.regexp.to-string.js");
|
|
918
|
+
|
|
919
|
+
/***/ }),
|
|
920
|
+
|
|
921
|
+
/***/ "3d2d":
|
|
911
922
|
/***/ (function(module, exports, __webpack_require__) {
|
|
912
923
|
|
|
913
924
|
module.exports =
|
|
@@ -994,7 +1005,7 @@ module.exports =
|
|
|
994
1005
|
/******/
|
|
995
1006
|
/******/
|
|
996
1007
|
/******/ // Load entry module and return exports
|
|
997
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
1008
|
+
/******/ return __webpack_require__(__webpack_require__.s = 116);
|
|
998
1009
|
/******/ })
|
|
999
1010
|
/************************************************************************/
|
|
1000
1011
|
/******/ ({
|
|
@@ -1101,55 +1112,21 @@ function normalizeComponent (
|
|
|
1101
1112
|
|
|
1102
1113
|
/***/ }),
|
|
1103
1114
|
|
|
1104
|
-
/***/
|
|
1115
|
+
/***/ 116:
|
|
1105
1116
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1106
1117
|
|
|
1107
1118
|
"use strict";
|
|
1108
1119
|
__webpack_require__.r(__webpack_exports__);
|
|
1109
1120
|
|
|
1110
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/
|
|
1121
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/container/src/main.vue?vue&type=template&id=5bf181d4&
|
|
1111
1122
|
var render = function() {
|
|
1112
1123
|
var _vm = this
|
|
1113
1124
|
var _h = _vm.$createElement
|
|
1114
1125
|
var _c = _vm._self._c || _h
|
|
1115
1126
|
return _c(
|
|
1116
|
-
"
|
|
1117
|
-
{
|
|
1118
|
-
|
|
1119
|
-
{
|
|
1120
|
-
name: "show",
|
|
1121
|
-
rawName: "v-show",
|
|
1122
|
-
value: _vm.ready,
|
|
1123
|
-
expression: "ready"
|
|
1124
|
-
}
|
|
1125
|
-
],
|
|
1126
|
-
staticClass: "el-carousel__item",
|
|
1127
|
-
class: {
|
|
1128
|
-
"is-active": _vm.active,
|
|
1129
|
-
"el-carousel__item--card": _vm.$parent.type === "card",
|
|
1130
|
-
"is-in-stage": _vm.inStage,
|
|
1131
|
-
"is-hover": _vm.hover,
|
|
1132
|
-
"is-animating": _vm.animating
|
|
1133
|
-
},
|
|
1134
|
-
style: _vm.itemStyle,
|
|
1135
|
-
on: { click: _vm.handleItemClick }
|
|
1136
|
-
},
|
|
1137
|
-
[
|
|
1138
|
-
_vm.$parent.type === "card"
|
|
1139
|
-
? _c("div", {
|
|
1140
|
-
directives: [
|
|
1141
|
-
{
|
|
1142
|
-
name: "show",
|
|
1143
|
-
rawName: "v-show",
|
|
1144
|
-
value: !_vm.active,
|
|
1145
|
-
expression: "!active"
|
|
1146
|
-
}
|
|
1147
|
-
],
|
|
1148
|
-
staticClass: "el-carousel__mask"
|
|
1149
|
-
})
|
|
1150
|
-
: _vm._e(),
|
|
1151
|
-
_vm._t("default")
|
|
1152
|
-
],
|
|
1127
|
+
"section",
|
|
1128
|
+
{ staticClass: "el-container", class: { "is-vertical": _vm.isVertical } },
|
|
1129
|
+
[_vm._t("default")],
|
|
1153
1130
|
2
|
|
1154
1131
|
)
|
|
1155
1132
|
}
|
|
@@ -1157,28 +1134,9 @@ var staticRenderFns = []
|
|
|
1157
1134
|
render._withStripped = true
|
|
1158
1135
|
|
|
1159
1136
|
|
|
1160
|
-
// CONCATENATED MODULE: ./packages/
|
|
1161
|
-
|
|
1162
|
-
// EXTERNAL MODULE: external "element-ui/lib/utils/util"
|
|
1163
|
-
var util_ = __webpack_require__(3);
|
|
1137
|
+
// CONCATENATED MODULE: ./packages/container/src/main.vue?vue&type=template&id=5bf181d4&
|
|
1164
1138
|
|
|
1165
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/
|
|
1166
|
-
//
|
|
1167
|
-
//
|
|
1168
|
-
//
|
|
1169
|
-
//
|
|
1170
|
-
//
|
|
1171
|
-
//
|
|
1172
|
-
//
|
|
1173
|
-
//
|
|
1174
|
-
//
|
|
1175
|
-
//
|
|
1176
|
-
//
|
|
1177
|
-
//
|
|
1178
|
-
//
|
|
1179
|
-
//
|
|
1180
|
-
//
|
|
1181
|
-
//
|
|
1139
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/container/src/main.vue?vue&type=script&lang=js&
|
|
1182
1140
|
//
|
|
1183
1141
|
//
|
|
1184
1142
|
//
|
|
@@ -1186,121 +1144,35 @@ var util_ = __webpack_require__(3);
|
|
|
1186
1144
|
//
|
|
1187
1145
|
//
|
|
1188
1146
|
|
|
1147
|
+
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
|
1148
|
+
name: 'ElContainer',
|
|
1189
1149
|
|
|
1190
|
-
|
|
1191
|
-
/* harmony default export */ var itemvue_type_script_lang_js_ = ({
|
|
1192
|
-
name: 'ElCarouselItem',
|
|
1150
|
+
componentName: 'ElContainer',
|
|
1193
1151
|
|
|
1194
1152
|
props: {
|
|
1195
|
-
|
|
1196
|
-
label: {
|
|
1197
|
-
type: [String, Number],
|
|
1198
|
-
default: ''
|
|
1199
|
-
}
|
|
1200
|
-
},
|
|
1201
|
-
|
|
1202
|
-
data: function data() {
|
|
1203
|
-
return {
|
|
1204
|
-
hover: false,
|
|
1205
|
-
translate: 0,
|
|
1206
|
-
scale: 1,
|
|
1207
|
-
active: false,
|
|
1208
|
-
ready: false,
|
|
1209
|
-
inStage: false,
|
|
1210
|
-
animating: false
|
|
1211
|
-
};
|
|
1212
|
-
},
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
methods: {
|
|
1216
|
-
processIndex: function processIndex(index, activeIndex, length) {
|
|
1217
|
-
if (activeIndex === 0 && index === length - 1) {
|
|
1218
|
-
return -1;
|
|
1219
|
-
} else if (activeIndex === length - 1 && index === 0) {
|
|
1220
|
-
return length;
|
|
1221
|
-
} else if (index < activeIndex - 1 && activeIndex - index >= length / 2) {
|
|
1222
|
-
return length + 1;
|
|
1223
|
-
} else if (index > activeIndex + 1 && index - activeIndex >= length / 2) {
|
|
1224
|
-
return -2;
|
|
1225
|
-
}
|
|
1226
|
-
return index;
|
|
1227
|
-
},
|
|
1228
|
-
calcCardTranslate: function calcCardTranslate(index, activeIndex) {
|
|
1229
|
-
var parentWidth = this.$parent.$el.offsetWidth;
|
|
1230
|
-
if (this.inStage) {
|
|
1231
|
-
return parentWidth * ((2 - CARD_SCALE) * (index - activeIndex) + 1) / 4;
|
|
1232
|
-
} else if (index < activeIndex) {
|
|
1233
|
-
return -(1 + CARD_SCALE) * parentWidth / 4;
|
|
1234
|
-
} else {
|
|
1235
|
-
return (3 + CARD_SCALE) * parentWidth / 4;
|
|
1236
|
-
}
|
|
1237
|
-
},
|
|
1238
|
-
calcTranslate: function calcTranslate(index, activeIndex, isVertical) {
|
|
1239
|
-
var distance = this.$parent.$el[isVertical ? 'offsetHeight' : 'offsetWidth'];
|
|
1240
|
-
return distance * (index - activeIndex);
|
|
1241
|
-
},
|
|
1242
|
-
translateItem: function translateItem(index, activeIndex, oldIndex) {
|
|
1243
|
-
var parentType = this.$parent.type;
|
|
1244
|
-
var parentDirection = this.parentDirection;
|
|
1245
|
-
var length = this.$parent.items.length;
|
|
1246
|
-
if (parentType !== 'card' && oldIndex !== undefined) {
|
|
1247
|
-
this.animating = index === activeIndex || index === oldIndex;
|
|
1248
|
-
}
|
|
1249
|
-
if (index !== activeIndex && length > 2 && this.$parent.loop) {
|
|
1250
|
-
index = this.processIndex(index, activeIndex, length);
|
|
1251
|
-
}
|
|
1252
|
-
if (parentType === 'card') {
|
|
1253
|
-
if (parentDirection === 'vertical') {
|
|
1254
|
-
console.warn('[Element Warn][Carousel]vertical direction is not supported in card mode');
|
|
1255
|
-
}
|
|
1256
|
-
this.inStage = Math.round(Math.abs(index - activeIndex)) <= 1;
|
|
1257
|
-
this.active = index === activeIndex;
|
|
1258
|
-
this.translate = this.calcCardTranslate(index, activeIndex);
|
|
1259
|
-
this.scale = this.active ? 1 : CARD_SCALE;
|
|
1260
|
-
} else {
|
|
1261
|
-
this.active = index === activeIndex;
|
|
1262
|
-
var isVertical = parentDirection === 'vertical';
|
|
1263
|
-
this.translate = this.calcTranslate(index, activeIndex, isVertical);
|
|
1264
|
-
this.scale = 1;
|
|
1265
|
-
}
|
|
1266
|
-
this.ready = true;
|
|
1267
|
-
},
|
|
1268
|
-
handleItemClick: function handleItemClick() {
|
|
1269
|
-
var parent = this.$parent;
|
|
1270
|
-
if (parent && parent.type === 'card') {
|
|
1271
|
-
var index = parent.items.indexOf(this);
|
|
1272
|
-
parent.setActiveItem(index);
|
|
1273
|
-
}
|
|
1274
|
-
}
|
|
1153
|
+
direction: String
|
|
1275
1154
|
},
|
|
1276
1155
|
|
|
1277
1156
|
computed: {
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1157
|
+
isVertical: function isVertical() {
|
|
1158
|
+
if (this.direction === 'vertical') {
|
|
1159
|
+
return true;
|
|
1160
|
+
} else if (this.direction === 'horizontal') {
|
|
1161
|
+
return false;
|
|
1162
|
+
}
|
|
1163
|
+
return this.$slots && this.$slots.default ? this.$slots.default.some(function (vnode) {
|
|
1164
|
+
var tag = vnode.componentOptions && vnode.componentOptions.tag;
|
|
1165
|
+
return tag === 'el-header' || tag === 'el-footer';
|
|
1166
|
+
}) : false;
|
|
1288
1167
|
}
|
|
1289
|
-
},
|
|
1290
|
-
|
|
1291
|
-
created: function created() {
|
|
1292
|
-
this.$parent && this.$parent.updateItems();
|
|
1293
|
-
},
|
|
1294
|
-
destroyed: function destroyed() {
|
|
1295
|
-
this.$parent && this.$parent.updateItems();
|
|
1296
1168
|
}
|
|
1297
1169
|
});
|
|
1298
|
-
// CONCATENATED MODULE: ./packages/
|
|
1299
|
-
/* harmony default export */ var
|
|
1170
|
+
// CONCATENATED MODULE: ./packages/container/src/main.vue?vue&type=script&lang=js&
|
|
1171
|
+
/* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
|
|
1300
1172
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
1301
1173
|
var componentNormalizer = __webpack_require__(0);
|
|
1302
1174
|
|
|
1303
|
-
// CONCATENATED MODULE: ./packages/
|
|
1175
|
+
// CONCATENATED MODULE: ./packages/container/src/main.vue
|
|
1304
1176
|
|
|
1305
1177
|
|
|
1306
1178
|
|
|
@@ -1309,7 +1181,7 @@ var componentNormalizer = __webpack_require__(0);
|
|
|
1309
1181
|
/* normalize component */
|
|
1310
1182
|
|
|
1311
1183
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
1312
|
-
|
|
1184
|
+
src_mainvue_type_script_lang_js_,
|
|
1313
1185
|
render,
|
|
1314
1186
|
staticRenderFns,
|
|
1315
1187
|
false,
|
|
@@ -1321,24 +1193,17 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
1321
1193
|
|
|
1322
1194
|
/* hot reload */
|
|
1323
1195
|
if (false) { var api; }
|
|
1324
|
-
component.options.__file = "packages/
|
|
1325
|
-
/* harmony default export */ var
|
|
1326
|
-
// CONCATENATED MODULE: ./packages/
|
|
1196
|
+
component.options.__file = "packages/container/src/main.vue"
|
|
1197
|
+
/* harmony default export */ var main = (component.exports);
|
|
1198
|
+
// CONCATENATED MODULE: ./packages/container/index.js
|
|
1327
1199
|
|
|
1328
1200
|
|
|
1329
1201
|
/* istanbul ignore next */
|
|
1330
|
-
|
|
1331
|
-
Vue.component(
|
|
1202
|
+
main.install = function (Vue) {
|
|
1203
|
+
Vue.component(main.name, main);
|
|
1332
1204
|
};
|
|
1333
1205
|
|
|
1334
|
-
/* harmony default export */ var
|
|
1335
|
-
|
|
1336
|
-
/***/ }),
|
|
1337
|
-
|
|
1338
|
-
/***/ 3:
|
|
1339
|
-
/***/ (function(module, exports) {
|
|
1340
|
-
|
|
1341
|
-
module.exports = __webpack_require__("8122");
|
|
1206
|
+
/* harmony default export */ var container = __webpack_exports__["default"] = (main);
|
|
1342
1207
|
|
|
1343
1208
|
/***/ })
|
|
1344
1209
|
|
|
@@ -1346,329 +1211,22 @@ module.exports = __webpack_require__("8122");
|
|
|
1346
1211
|
|
|
1347
1212
|
/***/ }),
|
|
1348
1213
|
|
|
1349
|
-
/***/ "
|
|
1350
|
-
/***/ (function(module, exports) {
|
|
1214
|
+
/***/ "4010":
|
|
1215
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1351
1216
|
|
|
1352
|
-
|
|
1217
|
+
"use strict";
|
|
1353
1218
|
|
|
1354
|
-
/***/ }),
|
|
1355
1219
|
|
|
1356
|
-
|
|
1357
|
-
|
|
1220
|
+
exports.__esModule = true;
|
|
1221
|
+
exports.removeResizeListener = exports.addResizeListener = undefined;
|
|
1358
1222
|
|
|
1359
|
-
|
|
1360
|
-
/******/ (function(modules) { // webpackBootstrap
|
|
1361
|
-
/******/ // The module cache
|
|
1362
|
-
/******/ var installedModules = {};
|
|
1363
|
-
/******/
|
|
1364
|
-
/******/ // The require function
|
|
1365
|
-
/******/ function __webpack_require__(moduleId) {
|
|
1366
|
-
/******/
|
|
1367
|
-
/******/ // Check if module is in cache
|
|
1368
|
-
/******/ if(installedModules[moduleId]) {
|
|
1369
|
-
/******/ return installedModules[moduleId].exports;
|
|
1370
|
-
/******/ }
|
|
1371
|
-
/******/ // Create a new module (and put it into the cache)
|
|
1372
|
-
/******/ var module = installedModules[moduleId] = {
|
|
1373
|
-
/******/ i: moduleId,
|
|
1374
|
-
/******/ l: false,
|
|
1375
|
-
/******/ exports: {}
|
|
1376
|
-
/******/ };
|
|
1377
|
-
/******/
|
|
1378
|
-
/******/ // Execute the module function
|
|
1379
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
1380
|
-
/******/
|
|
1381
|
-
/******/ // Flag the module as loaded
|
|
1382
|
-
/******/ module.l = true;
|
|
1383
|
-
/******/
|
|
1384
|
-
/******/ // Return the exports of the module
|
|
1385
|
-
/******/ return module.exports;
|
|
1386
|
-
/******/ }
|
|
1387
|
-
/******/
|
|
1388
|
-
/******/
|
|
1389
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
1390
|
-
/******/ __webpack_require__.m = modules;
|
|
1391
|
-
/******/
|
|
1392
|
-
/******/ // expose the module cache
|
|
1393
|
-
/******/ __webpack_require__.c = installedModules;
|
|
1394
|
-
/******/
|
|
1395
|
-
/******/ // define getter function for harmony exports
|
|
1396
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
1397
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
1398
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
1399
|
-
/******/ }
|
|
1400
|
-
/******/ };
|
|
1401
|
-
/******/
|
|
1402
|
-
/******/ // define __esModule on exports
|
|
1403
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
1404
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
1405
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
1406
|
-
/******/ }
|
|
1407
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
1408
|
-
/******/ };
|
|
1409
|
-
/******/
|
|
1410
|
-
/******/ // create a fake namespace object
|
|
1411
|
-
/******/ // mode & 1: value is a module id, require it
|
|
1412
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
1413
|
-
/******/ // mode & 4: return value when already ns object
|
|
1414
|
-
/******/ // mode & 8|1: behave like require
|
|
1415
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
1416
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
1417
|
-
/******/ if(mode & 8) return value;
|
|
1418
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
1419
|
-
/******/ var ns = Object.create(null);
|
|
1420
|
-
/******/ __webpack_require__.r(ns);
|
|
1421
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
1422
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
1423
|
-
/******/ return ns;
|
|
1424
|
-
/******/ };
|
|
1425
|
-
/******/
|
|
1426
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
1427
|
-
/******/ __webpack_require__.n = function(module) {
|
|
1428
|
-
/******/ var getter = module && module.__esModule ?
|
|
1429
|
-
/******/ function getDefault() { return module['default']; } :
|
|
1430
|
-
/******/ function getModuleExports() { return module; };
|
|
1431
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
1432
|
-
/******/ return getter;
|
|
1433
|
-
/******/ };
|
|
1434
|
-
/******/
|
|
1435
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
1436
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
1437
|
-
/******/
|
|
1438
|
-
/******/ // __webpack_public_path__
|
|
1439
|
-
/******/ __webpack_require__.p = "/dist/";
|
|
1440
|
-
/******/
|
|
1441
|
-
/******/
|
|
1442
|
-
/******/ // Load entry module and return exports
|
|
1443
|
-
/******/ return __webpack_require__(__webpack_require__.s = 116);
|
|
1444
|
-
/******/ })
|
|
1445
|
-
/************************************************************************/
|
|
1446
|
-
/******/ ({
|
|
1223
|
+
var _resizeObserverPolyfill = __webpack_require__("a1cc");
|
|
1447
1224
|
|
|
1448
|
-
|
|
1449
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1225
|
+
var _resizeObserverPolyfill2 = _interopRequireDefault(_resizeObserverPolyfill);
|
|
1450
1226
|
|
|
1451
|
-
|
|
1452
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
1453
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
|
1227
|
+
var _throttleDebounce = __webpack_require__("831f");
|
|
1454
1228
|
|
|
1455
|
-
|
|
1456
|
-
// This module is a runtime utility for cleaner component module output and will
|
|
1457
|
-
// be included in the final webpack user bundle.
|
|
1458
|
-
|
|
1459
|
-
function normalizeComponent (
|
|
1460
|
-
scriptExports,
|
|
1461
|
-
render,
|
|
1462
|
-
staticRenderFns,
|
|
1463
|
-
functionalTemplate,
|
|
1464
|
-
injectStyles,
|
|
1465
|
-
scopeId,
|
|
1466
|
-
moduleIdentifier, /* server only */
|
|
1467
|
-
shadowMode /* vue-cli only */
|
|
1468
|
-
) {
|
|
1469
|
-
// Vue.extend constructor export interop
|
|
1470
|
-
var options = typeof scriptExports === 'function'
|
|
1471
|
-
? scriptExports.options
|
|
1472
|
-
: scriptExports
|
|
1473
|
-
|
|
1474
|
-
// render functions
|
|
1475
|
-
if (render) {
|
|
1476
|
-
options.render = render
|
|
1477
|
-
options.staticRenderFns = staticRenderFns
|
|
1478
|
-
options._compiled = true
|
|
1479
|
-
}
|
|
1480
|
-
|
|
1481
|
-
// functional template
|
|
1482
|
-
if (functionalTemplate) {
|
|
1483
|
-
options.functional = true
|
|
1484
|
-
}
|
|
1485
|
-
|
|
1486
|
-
// scopedId
|
|
1487
|
-
if (scopeId) {
|
|
1488
|
-
options._scopeId = 'data-v-' + scopeId
|
|
1489
|
-
}
|
|
1490
|
-
|
|
1491
|
-
var hook
|
|
1492
|
-
if (moduleIdentifier) { // server build
|
|
1493
|
-
hook = function (context) {
|
|
1494
|
-
// 2.3 injection
|
|
1495
|
-
context =
|
|
1496
|
-
context || // cached call
|
|
1497
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
1498
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
1499
|
-
// 2.2 with runInNewContext: true
|
|
1500
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
1501
|
-
context = __VUE_SSR_CONTEXT__
|
|
1502
|
-
}
|
|
1503
|
-
// inject component styles
|
|
1504
|
-
if (injectStyles) {
|
|
1505
|
-
injectStyles.call(this, context)
|
|
1506
|
-
}
|
|
1507
|
-
// register component module identifier for async chunk inferrence
|
|
1508
|
-
if (context && context._registeredComponents) {
|
|
1509
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
1510
|
-
}
|
|
1511
|
-
}
|
|
1512
|
-
// used by ssr in case component is cached and beforeCreate
|
|
1513
|
-
// never gets called
|
|
1514
|
-
options._ssrRegister = hook
|
|
1515
|
-
} else if (injectStyles) {
|
|
1516
|
-
hook = shadowMode
|
|
1517
|
-
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
|
1518
|
-
: injectStyles
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
|
-
if (hook) {
|
|
1522
|
-
if (options.functional) {
|
|
1523
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
|
1524
|
-
// go through the normalizer
|
|
1525
|
-
options._injectStyles = hook
|
|
1526
|
-
// register for functioal component in vue file
|
|
1527
|
-
var originalRender = options.render
|
|
1528
|
-
options.render = function renderWithStyleInjection (h, context) {
|
|
1529
|
-
hook.call(context)
|
|
1530
|
-
return originalRender(h, context)
|
|
1531
|
-
}
|
|
1532
|
-
} else {
|
|
1533
|
-
// inject component registration as beforeCreate hook
|
|
1534
|
-
var existing = options.beforeCreate
|
|
1535
|
-
options.beforeCreate = existing
|
|
1536
|
-
? [].concat(existing, hook)
|
|
1537
|
-
: [hook]
|
|
1538
|
-
}
|
|
1539
|
-
}
|
|
1540
|
-
|
|
1541
|
-
return {
|
|
1542
|
-
exports: scriptExports,
|
|
1543
|
-
options: options
|
|
1544
|
-
}
|
|
1545
|
-
}
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
/***/ }),
|
|
1549
|
-
|
|
1550
|
-
/***/ 116:
|
|
1551
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1552
|
-
|
|
1553
|
-
"use strict";
|
|
1554
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1555
|
-
|
|
1556
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/container/src/main.vue?vue&type=template&id=5bf181d4&
|
|
1557
|
-
var render = function() {
|
|
1558
|
-
var _vm = this
|
|
1559
|
-
var _h = _vm.$createElement
|
|
1560
|
-
var _c = _vm._self._c || _h
|
|
1561
|
-
return _c(
|
|
1562
|
-
"section",
|
|
1563
|
-
{ staticClass: "el-container", class: { "is-vertical": _vm.isVertical } },
|
|
1564
|
-
[_vm._t("default")],
|
|
1565
|
-
2
|
|
1566
|
-
)
|
|
1567
|
-
}
|
|
1568
|
-
var staticRenderFns = []
|
|
1569
|
-
render._withStripped = true
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
// CONCATENATED MODULE: ./packages/container/src/main.vue?vue&type=template&id=5bf181d4&
|
|
1573
|
-
|
|
1574
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/container/src/main.vue?vue&type=script&lang=js&
|
|
1575
|
-
//
|
|
1576
|
-
//
|
|
1577
|
-
//
|
|
1578
|
-
//
|
|
1579
|
-
//
|
|
1580
|
-
//
|
|
1581
|
-
|
|
1582
|
-
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
|
1583
|
-
name: 'ElContainer',
|
|
1584
|
-
|
|
1585
|
-
componentName: 'ElContainer',
|
|
1586
|
-
|
|
1587
|
-
props: {
|
|
1588
|
-
direction: String
|
|
1589
|
-
},
|
|
1590
|
-
|
|
1591
|
-
computed: {
|
|
1592
|
-
isVertical: function isVertical() {
|
|
1593
|
-
if (this.direction === 'vertical') {
|
|
1594
|
-
return true;
|
|
1595
|
-
} else if (this.direction === 'horizontal') {
|
|
1596
|
-
return false;
|
|
1597
|
-
}
|
|
1598
|
-
return this.$slots && this.$slots.default ? this.$slots.default.some(function (vnode) {
|
|
1599
|
-
var tag = vnode.componentOptions && vnode.componentOptions.tag;
|
|
1600
|
-
return tag === 'el-header' || tag === 'el-footer';
|
|
1601
|
-
}) : false;
|
|
1602
|
-
}
|
|
1603
|
-
}
|
|
1604
|
-
});
|
|
1605
|
-
// CONCATENATED MODULE: ./packages/container/src/main.vue?vue&type=script&lang=js&
|
|
1606
|
-
/* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
|
|
1607
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
1608
|
-
var componentNormalizer = __webpack_require__(0);
|
|
1609
|
-
|
|
1610
|
-
// CONCATENATED MODULE: ./packages/container/src/main.vue
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
/* normalize component */
|
|
1617
|
-
|
|
1618
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
1619
|
-
src_mainvue_type_script_lang_js_,
|
|
1620
|
-
render,
|
|
1621
|
-
staticRenderFns,
|
|
1622
|
-
false,
|
|
1623
|
-
null,
|
|
1624
|
-
null,
|
|
1625
|
-
null
|
|
1626
|
-
|
|
1627
|
-
)
|
|
1628
|
-
|
|
1629
|
-
/* hot reload */
|
|
1630
|
-
if (false) { var api; }
|
|
1631
|
-
component.options.__file = "packages/container/src/main.vue"
|
|
1632
|
-
/* harmony default export */ var main = (component.exports);
|
|
1633
|
-
// CONCATENATED MODULE: ./packages/container/index.js
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
/* istanbul ignore next */
|
|
1637
|
-
main.install = function (Vue) {
|
|
1638
|
-
Vue.component(main.name, main);
|
|
1639
|
-
};
|
|
1640
|
-
|
|
1641
|
-
/* harmony default export */ var container = __webpack_exports__["default"] = (main);
|
|
1642
|
-
|
|
1643
|
-
/***/ })
|
|
1644
|
-
|
|
1645
|
-
/******/ });
|
|
1646
|
-
|
|
1647
|
-
/***/ }),
|
|
1648
|
-
|
|
1649
|
-
/***/ "3ec8":
|
|
1650
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1651
|
-
|
|
1652
|
-
// extracted by mini-css-extract-plugin
|
|
1653
|
-
|
|
1654
|
-
/***/ }),
|
|
1655
|
-
|
|
1656
|
-
/***/ "4010":
|
|
1657
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1658
|
-
|
|
1659
|
-
"use strict";
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
exports.__esModule = true;
|
|
1663
|
-
exports.removeResizeListener = exports.addResizeListener = undefined;
|
|
1664
|
-
|
|
1665
|
-
var _resizeObserverPolyfill = __webpack_require__("a1cc");
|
|
1666
|
-
|
|
1667
|
-
var _resizeObserverPolyfill2 = _interopRequireDefault(_resizeObserverPolyfill);
|
|
1668
|
-
|
|
1669
|
-
var _throttleDebounce = __webpack_require__("831f");
|
|
1670
|
-
|
|
1671
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1229
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1672
1230
|
|
|
1673
1231
|
var isServer = typeof window === 'undefined';
|
|
1674
1232
|
|
|
@@ -4554,13 +4112,6 @@ exports.PopupManager = _popupManager2.default;
|
|
|
4554
4112
|
|
|
4555
4113
|
/***/ }),
|
|
4556
4114
|
|
|
4557
|
-
/***/ "5538":
|
|
4558
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4559
|
-
|
|
4560
|
-
// extracted by mini-css-extract-plugin
|
|
4561
|
-
|
|
4562
|
-
/***/ }),
|
|
4563
|
-
|
|
4564
4115
|
/***/ "560b":
|
|
4565
4116
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4566
4117
|
|
|
@@ -6080,13 +5631,6 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
6080
5631
|
|
|
6081
5632
|
/***/ }),
|
|
6082
5633
|
|
|
6083
|
-
/***/ "6259":
|
|
6084
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6085
|
-
|
|
6086
|
-
// extracted by mini-css-extract-plugin
|
|
6087
|
-
|
|
6088
|
-
/***/ }),
|
|
6089
|
-
|
|
6090
5634
|
/***/ "6378":
|
|
6091
5635
|
/***/ (function(module, exports) {
|
|
6092
5636
|
|
|
@@ -7164,18 +6708,14 @@ module.exports = require("throttle-debounce/debounce");
|
|
|
7164
6708
|
|
|
7165
6709
|
/***/ }),
|
|
7166
6710
|
|
|
7167
|
-
/***/ "
|
|
7168
|
-
/***/ (function(module,
|
|
7169
|
-
|
|
7170
|
-
"use strict";
|
|
7171
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PubmedViewer_vue_vue_type_style_index_0_id_aae60614_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6259");
|
|
7172
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PubmedViewer_vue_vue_type_style_index_0_id_aae60614_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PubmedViewer_vue_vue_type_style_index_0_id_aae60614_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
7173
|
-
/* unused harmony reexport * */
|
|
6711
|
+
/***/ "7a0f":
|
|
6712
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7174
6713
|
|
|
6714
|
+
// extracted by mini-css-extract-plugin
|
|
7175
6715
|
|
|
7176
6716
|
/***/ }),
|
|
7177
6717
|
|
|
7178
|
-
/***/ "
|
|
6718
|
+
/***/ "7a9a":
|
|
7179
6719
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7180
6720
|
|
|
7181
6721
|
// extracted by mini-css-extract-plugin
|
|
@@ -8747,6 +8287,17 @@ module.exports = __webpack_require__("7f4d");
|
|
|
8747
8287
|
|
|
8748
8288
|
/******/ });
|
|
8749
8289
|
|
|
8290
|
+
/***/ }),
|
|
8291
|
+
|
|
8292
|
+
/***/ "8ab6":
|
|
8293
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
8294
|
+
|
|
8295
|
+
"use strict";
|
|
8296
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FlatmapVuer_vue_vue_type_style_index_0_id_1818e354_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1d77");
|
|
8297
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FlatmapVuer_vue_vue_type_style_index_0_id_1818e354_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FlatmapVuer_vue_vue_type_style_index_0_id_1818e354_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
8298
|
+
/* unused harmony reexport * */
|
|
8299
|
+
|
|
8300
|
+
|
|
8750
8301
|
/***/ }),
|
|
8751
8302
|
|
|
8752
8303
|
/***/ "8bbc":
|
|
@@ -9065,13 +8616,6 @@ module.exports = require("vue");
|
|
|
9065
8616
|
|
|
9066
8617
|
/***/ }),
|
|
9067
8618
|
|
|
9068
|
-
/***/ "96dc":
|
|
9069
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
9070
|
-
|
|
9071
|
-
// extracted by mini-css-extract-plugin
|
|
9072
|
-
|
|
9073
|
-
/***/ }),
|
|
9074
|
-
|
|
9075
8619
|
/***/ "97d3":
|
|
9076
8620
|
/***/ (function(module, exports) {
|
|
9077
8621
|
|
|
@@ -9100,1120 +8644,73 @@ module.exports = require("core-js/modules/es.string.iterator.js");
|
|
|
9100
8644
|
|
|
9101
8645
|
/***/ }),
|
|
9102
8646
|
|
|
9103
|
-
/***/ "
|
|
8647
|
+
/***/ "9d7e":
|
|
9104
8648
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9105
8649
|
|
|
9106
|
-
module.exports =
|
|
9107
|
-
/******/ (function(modules) { // webpackBootstrap
|
|
9108
|
-
/******/ // The module cache
|
|
9109
|
-
/******/ var installedModules = {};
|
|
9110
|
-
/******/
|
|
9111
|
-
/******/ // The require function
|
|
9112
|
-
/******/ function __webpack_require__(moduleId) {
|
|
9113
|
-
/******/
|
|
9114
|
-
/******/ // Check if module is in cache
|
|
9115
|
-
/******/ if(installedModules[moduleId]) {
|
|
9116
|
-
/******/ return installedModules[moduleId].exports;
|
|
9117
|
-
/******/ }
|
|
9118
|
-
/******/ // Create a new module (and put it into the cache)
|
|
9119
|
-
/******/ var module = installedModules[moduleId] = {
|
|
9120
|
-
/******/ i: moduleId,
|
|
9121
|
-
/******/ l: false,
|
|
9122
|
-
/******/ exports: {}
|
|
9123
|
-
/******/ };
|
|
9124
|
-
/******/
|
|
9125
|
-
/******/ // Execute the module function
|
|
9126
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
9127
|
-
/******/
|
|
9128
|
-
/******/ // Flag the module as loaded
|
|
9129
|
-
/******/ module.l = true;
|
|
9130
|
-
/******/
|
|
9131
|
-
/******/ // Return the exports of the module
|
|
9132
|
-
/******/ return module.exports;
|
|
9133
|
-
/******/ }
|
|
9134
|
-
/******/
|
|
9135
|
-
/******/
|
|
9136
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
9137
|
-
/******/ __webpack_require__.m = modules;
|
|
9138
|
-
/******/
|
|
9139
|
-
/******/ // expose the module cache
|
|
9140
|
-
/******/ __webpack_require__.c = installedModules;
|
|
9141
|
-
/******/
|
|
9142
|
-
/******/ // define getter function for harmony exports
|
|
9143
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
9144
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
9145
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
9146
|
-
/******/ }
|
|
9147
|
-
/******/ };
|
|
9148
|
-
/******/
|
|
9149
|
-
/******/ // define __esModule on exports
|
|
9150
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
9151
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
9152
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
9153
|
-
/******/ }
|
|
9154
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
9155
|
-
/******/ };
|
|
9156
|
-
/******/
|
|
9157
|
-
/******/ // create a fake namespace object
|
|
9158
|
-
/******/ // mode & 1: value is a module id, require it
|
|
9159
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
9160
|
-
/******/ // mode & 4: return value when already ns object
|
|
9161
|
-
/******/ // mode & 8|1: behave like require
|
|
9162
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
9163
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
9164
|
-
/******/ if(mode & 8) return value;
|
|
9165
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
9166
|
-
/******/ var ns = Object.create(null);
|
|
9167
|
-
/******/ __webpack_require__.r(ns);
|
|
9168
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
9169
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
9170
|
-
/******/ return ns;
|
|
9171
|
-
/******/ };
|
|
9172
|
-
/******/
|
|
9173
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
9174
|
-
/******/ __webpack_require__.n = function(module) {
|
|
9175
|
-
/******/ var getter = module && module.__esModule ?
|
|
9176
|
-
/******/ function getDefault() { return module['default']; } :
|
|
9177
|
-
/******/ function getModuleExports() { return module; };
|
|
9178
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
9179
|
-
/******/ return getter;
|
|
9180
|
-
/******/ };
|
|
9181
|
-
/******/
|
|
9182
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
9183
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
9184
|
-
/******/
|
|
9185
|
-
/******/ // __webpack_public_path__
|
|
9186
|
-
/******/ __webpack_require__.p = "/dist/";
|
|
9187
|
-
/******/
|
|
9188
|
-
/******/
|
|
9189
|
-
/******/ // Load entry module and return exports
|
|
9190
|
-
/******/ return __webpack_require__(__webpack_require__.s = 111);
|
|
9191
|
-
/******/ })
|
|
9192
|
-
/************************************************************************/
|
|
9193
|
-
/******/ ({
|
|
9194
|
-
|
|
9195
|
-
/***/ 0:
|
|
9196
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9197
|
-
|
|
9198
|
-
"use strict";
|
|
9199
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
9200
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
|
9201
|
-
|
|
9202
|
-
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
9203
|
-
// This module is a runtime utility for cleaner component module output and will
|
|
9204
|
-
// be included in the final webpack user bundle.
|
|
9205
|
-
|
|
9206
|
-
function normalizeComponent (
|
|
9207
|
-
scriptExports,
|
|
9208
|
-
render,
|
|
9209
|
-
staticRenderFns,
|
|
9210
|
-
functionalTemplate,
|
|
9211
|
-
injectStyles,
|
|
9212
|
-
scopeId,
|
|
9213
|
-
moduleIdentifier, /* server only */
|
|
9214
|
-
shadowMode /* vue-cli only */
|
|
9215
|
-
) {
|
|
9216
|
-
// Vue.extend constructor export interop
|
|
9217
|
-
var options = typeof scriptExports === 'function'
|
|
9218
|
-
? scriptExports.options
|
|
9219
|
-
: scriptExports
|
|
9220
|
-
|
|
9221
|
-
// render functions
|
|
9222
|
-
if (render) {
|
|
9223
|
-
options.render = render
|
|
9224
|
-
options.staticRenderFns = staticRenderFns
|
|
9225
|
-
options._compiled = true
|
|
9226
|
-
}
|
|
9227
|
-
|
|
9228
|
-
// functional template
|
|
9229
|
-
if (functionalTemplate) {
|
|
9230
|
-
options.functional = true
|
|
9231
|
-
}
|
|
9232
|
-
|
|
9233
|
-
// scopedId
|
|
9234
|
-
if (scopeId) {
|
|
9235
|
-
options._scopeId = 'data-v-' + scopeId
|
|
9236
|
-
}
|
|
9237
|
-
|
|
9238
|
-
var hook
|
|
9239
|
-
if (moduleIdentifier) { // server build
|
|
9240
|
-
hook = function (context) {
|
|
9241
|
-
// 2.3 injection
|
|
9242
|
-
context =
|
|
9243
|
-
context || // cached call
|
|
9244
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
9245
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
9246
|
-
// 2.2 with runInNewContext: true
|
|
9247
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
9248
|
-
context = __VUE_SSR_CONTEXT__
|
|
9249
|
-
}
|
|
9250
|
-
// inject component styles
|
|
9251
|
-
if (injectStyles) {
|
|
9252
|
-
injectStyles.call(this, context)
|
|
9253
|
-
}
|
|
9254
|
-
// register component module identifier for async chunk inferrence
|
|
9255
|
-
if (context && context._registeredComponents) {
|
|
9256
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
9257
|
-
}
|
|
9258
|
-
}
|
|
9259
|
-
// used by ssr in case component is cached and beforeCreate
|
|
9260
|
-
// never gets called
|
|
9261
|
-
options._ssrRegister = hook
|
|
9262
|
-
} else if (injectStyles) {
|
|
9263
|
-
hook = shadowMode
|
|
9264
|
-
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
|
9265
|
-
: injectStyles
|
|
9266
|
-
}
|
|
9267
|
-
|
|
9268
|
-
if (hook) {
|
|
9269
|
-
if (options.functional) {
|
|
9270
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
|
9271
|
-
// go through the normalizer
|
|
9272
|
-
options._injectStyles = hook
|
|
9273
|
-
// register for functioal component in vue file
|
|
9274
|
-
var originalRender = options.render
|
|
9275
|
-
options.render = function renderWithStyleInjection (h, context) {
|
|
9276
|
-
hook.call(context)
|
|
9277
|
-
return originalRender(h, context)
|
|
9278
|
-
}
|
|
9279
|
-
} else {
|
|
9280
|
-
// inject component registration as beforeCreate hook
|
|
9281
|
-
var existing = options.beforeCreate
|
|
9282
|
-
options.beforeCreate = existing
|
|
9283
|
-
? [].concat(existing, hook)
|
|
9284
|
-
: [hook]
|
|
9285
|
-
}
|
|
9286
|
-
}
|
|
9287
|
-
|
|
9288
|
-
return {
|
|
9289
|
-
exports: scriptExports,
|
|
9290
|
-
options: options
|
|
9291
|
-
}
|
|
9292
|
-
}
|
|
9293
|
-
|
|
9294
|
-
|
|
9295
|
-
/***/ }),
|
|
9296
|
-
|
|
9297
|
-
/***/ 111:
|
|
9298
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9299
|
-
|
|
9300
|
-
"use strict";
|
|
9301
|
-
__webpack_require__.r(__webpack_exports__);
|
|
9302
|
-
|
|
9303
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/carousel/src/main.vue?vue&type=template&id=5d5d1482&
|
|
9304
|
-
var render = function() {
|
|
9305
|
-
var _vm = this
|
|
9306
|
-
var _h = _vm.$createElement
|
|
9307
|
-
var _c = _vm._self._c || _h
|
|
9308
|
-
return _c(
|
|
9309
|
-
"div",
|
|
9310
|
-
{
|
|
9311
|
-
class: _vm.carouselClasses,
|
|
9312
|
-
on: {
|
|
9313
|
-
mouseenter: function($event) {
|
|
9314
|
-
$event.stopPropagation()
|
|
9315
|
-
return _vm.handleMouseEnter($event)
|
|
9316
|
-
},
|
|
9317
|
-
mouseleave: function($event) {
|
|
9318
|
-
$event.stopPropagation()
|
|
9319
|
-
return _vm.handleMouseLeave($event)
|
|
9320
|
-
}
|
|
9321
|
-
}
|
|
9322
|
-
},
|
|
9323
|
-
[
|
|
9324
|
-
_c(
|
|
9325
|
-
"div",
|
|
9326
|
-
{
|
|
9327
|
-
staticClass: "el-carousel__container",
|
|
9328
|
-
style: { height: _vm.height }
|
|
9329
|
-
},
|
|
9330
|
-
[
|
|
9331
|
-
_vm.arrowDisplay
|
|
9332
|
-
? _c("transition", { attrs: { name: "carousel-arrow-left" } }, [
|
|
9333
|
-
_c(
|
|
9334
|
-
"button",
|
|
9335
|
-
{
|
|
9336
|
-
directives: [
|
|
9337
|
-
{
|
|
9338
|
-
name: "show",
|
|
9339
|
-
rawName: "v-show",
|
|
9340
|
-
value:
|
|
9341
|
-
(_vm.arrow === "always" || _vm.hover) &&
|
|
9342
|
-
(_vm.loop || _vm.activeIndex > 0),
|
|
9343
|
-
expression:
|
|
9344
|
-
"(arrow === 'always' || hover) && (loop || activeIndex > 0)"
|
|
9345
|
-
}
|
|
9346
|
-
],
|
|
9347
|
-
staticClass: "el-carousel__arrow el-carousel__arrow--left",
|
|
9348
|
-
attrs: { type: "button" },
|
|
9349
|
-
on: {
|
|
9350
|
-
mouseenter: function($event) {
|
|
9351
|
-
_vm.handleButtonEnter("left")
|
|
9352
|
-
},
|
|
9353
|
-
mouseleave: _vm.handleButtonLeave,
|
|
9354
|
-
click: function($event) {
|
|
9355
|
-
$event.stopPropagation()
|
|
9356
|
-
_vm.throttledArrowClick(_vm.activeIndex - 1)
|
|
9357
|
-
}
|
|
9358
|
-
}
|
|
9359
|
-
},
|
|
9360
|
-
[_c("i", { staticClass: "el-icon-arrow-left" })]
|
|
9361
|
-
)
|
|
9362
|
-
])
|
|
9363
|
-
: _vm._e(),
|
|
9364
|
-
_vm.arrowDisplay
|
|
9365
|
-
? _c("transition", { attrs: { name: "carousel-arrow-right" } }, [
|
|
9366
|
-
_c(
|
|
9367
|
-
"button",
|
|
9368
|
-
{
|
|
9369
|
-
directives: [
|
|
9370
|
-
{
|
|
9371
|
-
name: "show",
|
|
9372
|
-
rawName: "v-show",
|
|
9373
|
-
value:
|
|
9374
|
-
(_vm.arrow === "always" || _vm.hover) &&
|
|
9375
|
-
(_vm.loop || _vm.activeIndex < _vm.items.length - 1),
|
|
9376
|
-
expression:
|
|
9377
|
-
"(arrow === 'always' || hover) && (loop || activeIndex < items.length - 1)"
|
|
9378
|
-
}
|
|
9379
|
-
],
|
|
9380
|
-
staticClass: "el-carousel__arrow el-carousel__arrow--right",
|
|
9381
|
-
attrs: { type: "button" },
|
|
9382
|
-
on: {
|
|
9383
|
-
mouseenter: function($event) {
|
|
9384
|
-
_vm.handleButtonEnter("right")
|
|
9385
|
-
},
|
|
9386
|
-
mouseleave: _vm.handleButtonLeave,
|
|
9387
|
-
click: function($event) {
|
|
9388
|
-
$event.stopPropagation()
|
|
9389
|
-
_vm.throttledArrowClick(_vm.activeIndex + 1)
|
|
9390
|
-
}
|
|
9391
|
-
}
|
|
9392
|
-
},
|
|
9393
|
-
[_c("i", { staticClass: "el-icon-arrow-right" })]
|
|
9394
|
-
)
|
|
9395
|
-
])
|
|
9396
|
-
: _vm._e(),
|
|
9397
|
-
_vm._t("default")
|
|
9398
|
-
],
|
|
9399
|
-
2
|
|
9400
|
-
),
|
|
9401
|
-
_vm.indicatorPosition !== "none"
|
|
9402
|
-
? _c(
|
|
9403
|
-
"ul",
|
|
9404
|
-
{ class: _vm.indicatorsClasses },
|
|
9405
|
-
_vm._l(_vm.items, function(item, index) {
|
|
9406
|
-
return _c(
|
|
9407
|
-
"li",
|
|
9408
|
-
{
|
|
9409
|
-
key: index,
|
|
9410
|
-
class: [
|
|
9411
|
-
"el-carousel__indicator",
|
|
9412
|
-
"el-carousel__indicator--" + _vm.direction,
|
|
9413
|
-
{ "is-active": index === _vm.activeIndex }
|
|
9414
|
-
],
|
|
9415
|
-
on: {
|
|
9416
|
-
mouseenter: function($event) {
|
|
9417
|
-
_vm.throttledIndicatorHover(index)
|
|
9418
|
-
},
|
|
9419
|
-
click: function($event) {
|
|
9420
|
-
$event.stopPropagation()
|
|
9421
|
-
_vm.handleIndicatorClick(index)
|
|
9422
|
-
}
|
|
9423
|
-
}
|
|
9424
|
-
},
|
|
9425
|
-
[
|
|
9426
|
-
_c("button", { staticClass: "el-carousel__button" }, [
|
|
9427
|
-
_vm.hasLabel
|
|
9428
|
-
? _c("span", [_vm._v(_vm._s(item.label))])
|
|
9429
|
-
: _vm._e()
|
|
9430
|
-
])
|
|
9431
|
-
]
|
|
9432
|
-
)
|
|
9433
|
-
}),
|
|
9434
|
-
0
|
|
9435
|
-
)
|
|
9436
|
-
: _vm._e()
|
|
9437
|
-
]
|
|
9438
|
-
)
|
|
9439
|
-
}
|
|
9440
|
-
var staticRenderFns = []
|
|
9441
|
-
render._withStripped = true
|
|
9442
|
-
|
|
9443
|
-
|
|
9444
|
-
// CONCATENATED MODULE: ./packages/carousel/src/main.vue?vue&type=template&id=5d5d1482&
|
|
9445
|
-
|
|
9446
|
-
// EXTERNAL MODULE: external "throttle-debounce/throttle"
|
|
9447
|
-
var throttle_ = __webpack_require__(25);
|
|
9448
|
-
var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle_);
|
|
9449
|
-
|
|
9450
|
-
// EXTERNAL MODULE: external "element-ui/lib/utils/resize-event"
|
|
9451
|
-
var resize_event_ = __webpack_require__(16);
|
|
9452
|
-
|
|
9453
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/carousel/src/main.vue?vue&type=script&lang=js&
|
|
9454
|
-
//
|
|
9455
|
-
//
|
|
9456
|
-
//
|
|
9457
|
-
//
|
|
9458
|
-
//
|
|
9459
|
-
//
|
|
9460
|
-
//
|
|
9461
|
-
//
|
|
9462
|
-
//
|
|
9463
|
-
//
|
|
9464
|
-
//
|
|
9465
|
-
//
|
|
9466
|
-
//
|
|
9467
|
-
//
|
|
9468
|
-
//
|
|
9469
|
-
//
|
|
9470
|
-
//
|
|
9471
|
-
//
|
|
9472
|
-
//
|
|
9473
|
-
//
|
|
9474
|
-
//
|
|
9475
|
-
//
|
|
9476
|
-
//
|
|
9477
|
-
//
|
|
9478
|
-
//
|
|
9479
|
-
//
|
|
9480
|
-
//
|
|
9481
|
-
//
|
|
9482
|
-
//
|
|
9483
|
-
//
|
|
9484
|
-
//
|
|
9485
|
-
//
|
|
9486
|
-
//
|
|
9487
|
-
//
|
|
9488
|
-
//
|
|
9489
|
-
//
|
|
9490
|
-
//
|
|
9491
|
-
//
|
|
9492
|
-
//
|
|
9493
|
-
//
|
|
9494
|
-
//
|
|
9495
|
-
//
|
|
9496
|
-
//
|
|
9497
|
-
//
|
|
9498
|
-
//
|
|
9499
|
-
//
|
|
9500
|
-
//
|
|
9501
|
-
//
|
|
9502
|
-
//
|
|
9503
|
-
//
|
|
9504
|
-
//
|
|
9505
|
-
//
|
|
9506
|
-
//
|
|
9507
|
-
//
|
|
9508
|
-
//
|
|
9509
|
-
//
|
|
9510
|
-
|
|
9511
|
-
|
|
9512
|
-
|
|
9513
|
-
|
|
9514
|
-
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
|
9515
|
-
name: 'ElCarousel',
|
|
9516
|
-
|
|
9517
|
-
props: {
|
|
9518
|
-
initialIndex: {
|
|
9519
|
-
type: Number,
|
|
9520
|
-
default: 0
|
|
9521
|
-
},
|
|
9522
|
-
height: String,
|
|
9523
|
-
trigger: {
|
|
9524
|
-
type: String,
|
|
9525
|
-
default: 'hover'
|
|
9526
|
-
},
|
|
9527
|
-
autoplay: {
|
|
9528
|
-
type: Boolean,
|
|
9529
|
-
default: true
|
|
9530
|
-
},
|
|
9531
|
-
interval: {
|
|
9532
|
-
type: Number,
|
|
9533
|
-
default: 3000
|
|
9534
|
-
},
|
|
9535
|
-
indicatorPosition: String,
|
|
9536
|
-
indicator: {
|
|
9537
|
-
type: Boolean,
|
|
9538
|
-
default: true
|
|
9539
|
-
},
|
|
9540
|
-
arrow: {
|
|
9541
|
-
type: String,
|
|
9542
|
-
default: 'hover'
|
|
9543
|
-
},
|
|
9544
|
-
type: String,
|
|
9545
|
-
loop: {
|
|
9546
|
-
type: Boolean,
|
|
9547
|
-
default: true
|
|
9548
|
-
},
|
|
9549
|
-
direction: {
|
|
9550
|
-
type: String,
|
|
9551
|
-
default: 'horizontal',
|
|
9552
|
-
validator: function validator(val) {
|
|
9553
|
-
return ['horizontal', 'vertical'].indexOf(val) !== -1;
|
|
9554
|
-
}
|
|
9555
|
-
}
|
|
9556
|
-
},
|
|
9557
|
-
|
|
9558
|
-
data: function data() {
|
|
9559
|
-
return {
|
|
9560
|
-
items: [],
|
|
9561
|
-
activeIndex: -1,
|
|
9562
|
-
containerWidth: 0,
|
|
9563
|
-
timer: null,
|
|
9564
|
-
hover: false
|
|
9565
|
-
};
|
|
9566
|
-
},
|
|
9567
|
-
|
|
9568
|
-
|
|
9569
|
-
computed: {
|
|
9570
|
-
arrowDisplay: function arrowDisplay() {
|
|
9571
|
-
return this.arrow !== 'never' && this.direction !== 'vertical';
|
|
9572
|
-
},
|
|
9573
|
-
hasLabel: function hasLabel() {
|
|
9574
|
-
return this.items.some(function (item) {
|
|
9575
|
-
return item.label.toString().length > 0;
|
|
9576
|
-
});
|
|
9577
|
-
},
|
|
9578
|
-
carouselClasses: function carouselClasses() {
|
|
9579
|
-
var classes = ['el-carousel', 'el-carousel--' + this.direction];
|
|
9580
|
-
if (this.type === 'card') {
|
|
9581
|
-
classes.push('el-carousel--card');
|
|
9582
|
-
}
|
|
9583
|
-
return classes;
|
|
9584
|
-
},
|
|
9585
|
-
indicatorsClasses: function indicatorsClasses() {
|
|
9586
|
-
var classes = ['el-carousel__indicators', 'el-carousel__indicators--' + this.direction];
|
|
9587
|
-
if (this.hasLabel) {
|
|
9588
|
-
classes.push('el-carousel__indicators--labels');
|
|
9589
|
-
}
|
|
9590
|
-
if (this.indicatorPosition === 'outside' || this.type === 'card') {
|
|
9591
|
-
classes.push('el-carousel__indicators--outside');
|
|
9592
|
-
}
|
|
9593
|
-
return classes;
|
|
9594
|
-
}
|
|
9595
|
-
},
|
|
9596
|
-
|
|
9597
|
-
watch: {
|
|
9598
|
-
items: function items(val) {
|
|
9599
|
-
if (val.length > 0) this.setActiveItem(this.initialIndex);
|
|
9600
|
-
},
|
|
9601
|
-
activeIndex: function activeIndex(val, oldVal) {
|
|
9602
|
-
this.resetItemPosition(oldVal);
|
|
9603
|
-
if (oldVal > -1) {
|
|
9604
|
-
this.$emit('change', val, oldVal);
|
|
9605
|
-
}
|
|
9606
|
-
},
|
|
9607
|
-
autoplay: function autoplay(val) {
|
|
9608
|
-
val ? this.startTimer() : this.pauseTimer();
|
|
9609
|
-
},
|
|
9610
|
-
loop: function loop() {
|
|
9611
|
-
this.setActiveItem(this.activeIndex);
|
|
9612
|
-
},
|
|
9613
|
-
interval: function interval() {
|
|
9614
|
-
this.pauseTimer();
|
|
9615
|
-
this.startTimer();
|
|
9616
|
-
}
|
|
9617
|
-
},
|
|
9618
|
-
|
|
9619
|
-
methods: {
|
|
9620
|
-
handleMouseEnter: function handleMouseEnter() {
|
|
9621
|
-
this.hover = true;
|
|
9622
|
-
this.pauseTimer();
|
|
9623
|
-
},
|
|
9624
|
-
handleMouseLeave: function handleMouseLeave() {
|
|
9625
|
-
this.hover = false;
|
|
9626
|
-
this.startTimer();
|
|
9627
|
-
},
|
|
9628
|
-
itemInStage: function itemInStage(item, index) {
|
|
9629
|
-
var length = this.items.length;
|
|
9630
|
-
if (index === length - 1 && item.inStage && this.items[0].active || item.inStage && this.items[index + 1] && this.items[index + 1].active) {
|
|
9631
|
-
return 'left';
|
|
9632
|
-
} else if (index === 0 && item.inStage && this.items[length - 1].active || item.inStage && this.items[index - 1] && this.items[index - 1].active) {
|
|
9633
|
-
return 'right';
|
|
9634
|
-
}
|
|
9635
|
-
return false;
|
|
9636
|
-
},
|
|
9637
|
-
handleButtonEnter: function handleButtonEnter(arrow) {
|
|
9638
|
-
var _this = this;
|
|
9639
|
-
|
|
9640
|
-
if (this.direction === 'vertical') return;
|
|
9641
|
-
this.items.forEach(function (item, index) {
|
|
9642
|
-
if (arrow === _this.itemInStage(item, index)) {
|
|
9643
|
-
item.hover = true;
|
|
9644
|
-
}
|
|
9645
|
-
});
|
|
9646
|
-
},
|
|
9647
|
-
handleButtonLeave: function handleButtonLeave() {
|
|
9648
|
-
if (this.direction === 'vertical') return;
|
|
9649
|
-
this.items.forEach(function (item) {
|
|
9650
|
-
item.hover = false;
|
|
9651
|
-
});
|
|
9652
|
-
},
|
|
9653
|
-
updateItems: function updateItems() {
|
|
9654
|
-
this.items = this.$children.filter(function (child) {
|
|
9655
|
-
return child.$options.name === 'ElCarouselItem';
|
|
9656
|
-
});
|
|
9657
|
-
},
|
|
9658
|
-
resetItemPosition: function resetItemPosition(oldIndex) {
|
|
9659
|
-
var _this2 = this;
|
|
9660
|
-
|
|
9661
|
-
this.items.forEach(function (item, index) {
|
|
9662
|
-
item.translateItem(index, _this2.activeIndex, oldIndex);
|
|
9663
|
-
});
|
|
9664
|
-
},
|
|
9665
|
-
playSlides: function playSlides() {
|
|
9666
|
-
if (this.activeIndex < this.items.length - 1) {
|
|
9667
|
-
this.activeIndex++;
|
|
9668
|
-
} else if (this.loop) {
|
|
9669
|
-
this.activeIndex = 0;
|
|
9670
|
-
}
|
|
9671
|
-
},
|
|
9672
|
-
pauseTimer: function pauseTimer() {
|
|
9673
|
-
if (this.timer) {
|
|
9674
|
-
clearInterval(this.timer);
|
|
9675
|
-
this.timer = null;
|
|
9676
|
-
}
|
|
9677
|
-
},
|
|
9678
|
-
startTimer: function startTimer() {
|
|
9679
|
-
if (this.interval <= 0 || !this.autoplay || this.timer) return;
|
|
9680
|
-
this.timer = setInterval(this.playSlides, this.interval);
|
|
9681
|
-
},
|
|
9682
|
-
resetTimer: function resetTimer() {
|
|
9683
|
-
this.pauseTimer();
|
|
9684
|
-
this.startTimer();
|
|
9685
|
-
},
|
|
9686
|
-
setActiveItem: function setActiveItem(index) {
|
|
9687
|
-
if (typeof index === 'string') {
|
|
9688
|
-
var filteredItems = this.items.filter(function (item) {
|
|
9689
|
-
return item.name === index;
|
|
9690
|
-
});
|
|
9691
|
-
if (filteredItems.length > 0) {
|
|
9692
|
-
index = this.items.indexOf(filteredItems[0]);
|
|
9693
|
-
}
|
|
9694
|
-
}
|
|
9695
|
-
index = Number(index);
|
|
9696
|
-
if (isNaN(index) || index !== Math.floor(index)) {
|
|
9697
|
-
console.warn('[Element Warn][Carousel]index must be an integer.');
|
|
9698
|
-
return;
|
|
9699
|
-
}
|
|
9700
|
-
var length = this.items.length;
|
|
9701
|
-
var oldIndex = this.activeIndex;
|
|
9702
|
-
if (index < 0) {
|
|
9703
|
-
this.activeIndex = this.loop ? length - 1 : 0;
|
|
9704
|
-
} else if (index >= length) {
|
|
9705
|
-
this.activeIndex = this.loop ? 0 : length - 1;
|
|
9706
|
-
} else {
|
|
9707
|
-
this.activeIndex = index;
|
|
9708
|
-
}
|
|
9709
|
-
if (oldIndex === this.activeIndex) {
|
|
9710
|
-
this.resetItemPosition(oldIndex);
|
|
9711
|
-
}
|
|
9712
|
-
this.resetTimer();
|
|
9713
|
-
},
|
|
9714
|
-
prev: function prev() {
|
|
9715
|
-
this.setActiveItem(this.activeIndex - 1);
|
|
9716
|
-
},
|
|
9717
|
-
next: function next() {
|
|
9718
|
-
this.setActiveItem(this.activeIndex + 1);
|
|
9719
|
-
},
|
|
9720
|
-
handleIndicatorClick: function handleIndicatorClick(index) {
|
|
9721
|
-
this.activeIndex = index;
|
|
9722
|
-
},
|
|
9723
|
-
handleIndicatorHover: function handleIndicatorHover(index) {
|
|
9724
|
-
if (this.trigger === 'hover' && index !== this.activeIndex) {
|
|
9725
|
-
this.activeIndex = index;
|
|
9726
|
-
}
|
|
9727
|
-
}
|
|
9728
|
-
},
|
|
9729
|
-
|
|
9730
|
-
created: function created() {
|
|
9731
|
-
var _this3 = this;
|
|
9732
|
-
|
|
9733
|
-
this.throttledArrowClick = throttle_default()(300, true, function (index) {
|
|
9734
|
-
_this3.setActiveItem(index);
|
|
9735
|
-
});
|
|
9736
|
-
this.throttledIndicatorHover = throttle_default()(300, function (index) {
|
|
9737
|
-
_this3.handleIndicatorHover(index);
|
|
9738
|
-
});
|
|
9739
|
-
},
|
|
9740
|
-
mounted: function mounted() {
|
|
9741
|
-
var _this4 = this;
|
|
9742
|
-
|
|
9743
|
-
this.updateItems();
|
|
9744
|
-
this.$nextTick(function () {
|
|
9745
|
-
Object(resize_event_["addResizeListener"])(_this4.$el, _this4.resetItemPosition);
|
|
9746
|
-
if (_this4.initialIndex < _this4.items.length && _this4.initialIndex >= 0) {
|
|
9747
|
-
_this4.activeIndex = _this4.initialIndex;
|
|
9748
|
-
}
|
|
9749
|
-
_this4.startTimer();
|
|
9750
|
-
});
|
|
9751
|
-
},
|
|
9752
|
-
beforeDestroy: function beforeDestroy() {
|
|
9753
|
-
if (this.$el) Object(resize_event_["removeResizeListener"])(this.$el, this.resetItemPosition);
|
|
9754
|
-
this.pauseTimer();
|
|
9755
|
-
}
|
|
9756
|
-
});
|
|
9757
|
-
// CONCATENATED MODULE: ./packages/carousel/src/main.vue?vue&type=script&lang=js&
|
|
9758
|
-
/* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
|
|
9759
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
9760
|
-
var componentNormalizer = __webpack_require__(0);
|
|
9761
|
-
|
|
9762
|
-
// CONCATENATED MODULE: ./packages/carousel/src/main.vue
|
|
9763
|
-
|
|
9764
|
-
|
|
9765
|
-
|
|
9766
|
-
|
|
9767
|
-
|
|
9768
|
-
/* normalize component */
|
|
9769
|
-
|
|
9770
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
9771
|
-
src_mainvue_type_script_lang_js_,
|
|
9772
|
-
render,
|
|
9773
|
-
staticRenderFns,
|
|
9774
|
-
false,
|
|
9775
|
-
null,
|
|
9776
|
-
null,
|
|
9777
|
-
null
|
|
9778
|
-
|
|
9779
|
-
)
|
|
9780
|
-
|
|
9781
|
-
/* hot reload */
|
|
9782
|
-
if (false) { var api; }
|
|
9783
|
-
component.options.__file = "packages/carousel/src/main.vue"
|
|
9784
|
-
/* harmony default export */ var main = (component.exports);
|
|
9785
|
-
// CONCATENATED MODULE: ./packages/carousel/index.js
|
|
9786
|
-
|
|
9787
|
-
|
|
9788
|
-
/* istanbul ignore next */
|
|
9789
|
-
main.install = function (Vue) {
|
|
9790
|
-
Vue.component(main.name, main);
|
|
9791
|
-
};
|
|
9792
|
-
|
|
9793
|
-
/* harmony default export */ var carousel = __webpack_exports__["default"] = (main);
|
|
9794
|
-
|
|
9795
|
-
/***/ }),
|
|
9796
|
-
|
|
9797
|
-
/***/ 16:
|
|
9798
|
-
/***/ (function(module, exports) {
|
|
9799
|
-
|
|
9800
|
-
module.exports = __webpack_require__("4010");
|
|
9801
|
-
|
|
9802
|
-
/***/ }),
|
|
9803
|
-
|
|
9804
|
-
/***/ 25:
|
|
9805
|
-
/***/ (function(module, exports) {
|
|
9806
|
-
|
|
9807
|
-
module.exports = __webpack_require__("1e79");
|
|
9808
|
-
|
|
9809
|
-
/***/ })
|
|
9810
|
-
|
|
9811
|
-
/******/ });
|
|
9812
|
-
|
|
9813
|
-
/***/ }),
|
|
9814
|
-
|
|
9815
|
-
/***/ "9d7e":
|
|
9816
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
9817
|
-
|
|
9818
|
-
"use strict";
|
|
9819
|
-
|
|
9820
|
-
|
|
9821
|
-
exports.__esModule = true;
|
|
9822
|
-
|
|
9823
|
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
9824
|
-
|
|
9825
|
-
exports.default = function (Vue) {
|
|
9826
|
-
|
|
9827
|
-
/**
|
|
9828
|
-
* template
|
|
9829
|
-
*
|
|
9830
|
-
* @param {String} string
|
|
9831
|
-
* @param {Array} ...args
|
|
9832
|
-
* @return {String}
|
|
9833
|
-
*/
|
|
9834
|
-
|
|
9835
|
-
function template(string) {
|
|
9836
|
-
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
9837
|
-
args[_key - 1] = arguments[_key];
|
|
9838
|
-
}
|
|
9839
|
-
|
|
9840
|
-
if (args.length === 1 && _typeof(args[0]) === 'object') {
|
|
9841
|
-
args = args[0];
|
|
9842
|
-
}
|
|
9843
|
-
|
|
9844
|
-
if (!args || !args.hasOwnProperty) {
|
|
9845
|
-
args = {};
|
|
9846
|
-
}
|
|
9847
|
-
|
|
9848
|
-
return string.replace(RE_NARGS, function (match, prefix, i, index) {
|
|
9849
|
-
var result = void 0;
|
|
9850
|
-
|
|
9851
|
-
if (string[index - 1] === '{' && string[index + match.length] === '}') {
|
|
9852
|
-
return i;
|
|
9853
|
-
} else {
|
|
9854
|
-
result = (0, _util.hasOwn)(args, i) ? args[i] : null;
|
|
9855
|
-
if (result === null || result === undefined) {
|
|
9856
|
-
return '';
|
|
9857
|
-
}
|
|
9858
|
-
|
|
9859
|
-
return result;
|
|
9860
|
-
}
|
|
9861
|
-
});
|
|
9862
|
-
}
|
|
9863
|
-
|
|
9864
|
-
return template;
|
|
9865
|
-
};
|
|
9866
|
-
|
|
9867
|
-
var _util = __webpack_require__("8122");
|
|
9868
|
-
|
|
9869
|
-
var RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
|
|
9870
|
-
/**
|
|
9871
|
-
* String format template
|
|
9872
|
-
* - Inspired:
|
|
9873
|
-
* https://github.com/Matt-Esch/string-template/index.js
|
|
9874
|
-
*/
|
|
9875
|
-
|
|
9876
|
-
/***/ }),
|
|
9877
|
-
|
|
9878
|
-
/***/ "a1cc":
|
|
9879
|
-
/***/ (function(module, exports) {
|
|
9880
|
-
|
|
9881
|
-
module.exports = require("resize-observer-polyfill");
|
|
9882
|
-
|
|
9883
|
-
/***/ }),
|
|
9884
|
-
|
|
9885
|
-
/***/ "a447":
|
|
9886
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
9887
|
-
|
|
9888
|
-
module.exports =
|
|
9889
|
-
/******/ (function(modules) { // webpackBootstrap
|
|
9890
|
-
/******/ // The module cache
|
|
9891
|
-
/******/ var installedModules = {};
|
|
9892
|
-
/******/
|
|
9893
|
-
/******/ // The require function
|
|
9894
|
-
/******/ function __webpack_require__(moduleId) {
|
|
9895
|
-
/******/
|
|
9896
|
-
/******/ // Check if module is in cache
|
|
9897
|
-
/******/ if(installedModules[moduleId]) {
|
|
9898
|
-
/******/ return installedModules[moduleId].exports;
|
|
9899
|
-
/******/ }
|
|
9900
|
-
/******/ // Create a new module (and put it into the cache)
|
|
9901
|
-
/******/ var module = installedModules[moduleId] = {
|
|
9902
|
-
/******/ i: moduleId,
|
|
9903
|
-
/******/ l: false,
|
|
9904
|
-
/******/ exports: {}
|
|
9905
|
-
/******/ };
|
|
9906
|
-
/******/
|
|
9907
|
-
/******/ // Execute the module function
|
|
9908
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
9909
|
-
/******/
|
|
9910
|
-
/******/ // Flag the module as loaded
|
|
9911
|
-
/******/ module.l = true;
|
|
9912
|
-
/******/
|
|
9913
|
-
/******/ // Return the exports of the module
|
|
9914
|
-
/******/ return module.exports;
|
|
9915
|
-
/******/ }
|
|
9916
|
-
/******/
|
|
9917
|
-
/******/
|
|
9918
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
9919
|
-
/******/ __webpack_require__.m = modules;
|
|
9920
|
-
/******/
|
|
9921
|
-
/******/ // expose the module cache
|
|
9922
|
-
/******/ __webpack_require__.c = installedModules;
|
|
9923
|
-
/******/
|
|
9924
|
-
/******/ // define getter function for harmony exports
|
|
9925
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
9926
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
9927
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
9928
|
-
/******/ }
|
|
9929
|
-
/******/ };
|
|
9930
|
-
/******/
|
|
9931
|
-
/******/ // define __esModule on exports
|
|
9932
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
9933
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
9934
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
9935
|
-
/******/ }
|
|
9936
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
9937
|
-
/******/ };
|
|
9938
|
-
/******/
|
|
9939
|
-
/******/ // create a fake namespace object
|
|
9940
|
-
/******/ // mode & 1: value is a module id, require it
|
|
9941
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
9942
|
-
/******/ // mode & 4: return value when already ns object
|
|
9943
|
-
/******/ // mode & 8|1: behave like require
|
|
9944
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
9945
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
9946
|
-
/******/ if(mode & 8) return value;
|
|
9947
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
9948
|
-
/******/ var ns = Object.create(null);
|
|
9949
|
-
/******/ __webpack_require__.r(ns);
|
|
9950
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
9951
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
9952
|
-
/******/ return ns;
|
|
9953
|
-
/******/ };
|
|
9954
|
-
/******/
|
|
9955
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
9956
|
-
/******/ __webpack_require__.n = function(module) {
|
|
9957
|
-
/******/ var getter = module && module.__esModule ?
|
|
9958
|
-
/******/ function getDefault() { return module['default']; } :
|
|
9959
|
-
/******/ function getModuleExports() { return module; };
|
|
9960
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
9961
|
-
/******/ return getter;
|
|
9962
|
-
/******/ };
|
|
9963
|
-
/******/
|
|
9964
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
9965
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
9966
|
-
/******/
|
|
9967
|
-
/******/ // __webpack_public_path__
|
|
9968
|
-
/******/ __webpack_require__.p = "/dist/";
|
|
9969
|
-
/******/
|
|
9970
|
-
/******/
|
|
9971
|
-
/******/ // Load entry module and return exports
|
|
9972
|
-
/******/ return __webpack_require__(__webpack_require__.s = 122);
|
|
9973
|
-
/******/ })
|
|
9974
|
-
/************************************************************************/
|
|
9975
|
-
/******/ ({
|
|
9976
|
-
|
|
9977
|
-
/***/ 0:
|
|
9978
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9979
|
-
|
|
9980
8650
|
"use strict";
|
|
9981
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
9982
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
|
9983
8651
|
|
|
9984
|
-
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
9985
|
-
// This module is a runtime utility for cleaner component module output and will
|
|
9986
|
-
// be included in the final webpack user bundle.
|
|
9987
8652
|
|
|
9988
|
-
|
|
9989
|
-
scriptExports,
|
|
9990
|
-
render,
|
|
9991
|
-
staticRenderFns,
|
|
9992
|
-
functionalTemplate,
|
|
9993
|
-
injectStyles,
|
|
9994
|
-
scopeId,
|
|
9995
|
-
moduleIdentifier, /* server only */
|
|
9996
|
-
shadowMode /* vue-cli only */
|
|
9997
|
-
) {
|
|
9998
|
-
// Vue.extend constructor export interop
|
|
9999
|
-
var options = typeof scriptExports === 'function'
|
|
10000
|
-
? scriptExports.options
|
|
10001
|
-
: scriptExports
|
|
8653
|
+
exports.__esModule = true;
|
|
10002
8654
|
|
|
10003
|
-
|
|
10004
|
-
if (render) {
|
|
10005
|
-
options.render = render
|
|
10006
|
-
options.staticRenderFns = staticRenderFns
|
|
10007
|
-
options._compiled = true
|
|
10008
|
-
}
|
|
8655
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
10009
8656
|
|
|
10010
|
-
|
|
10011
|
-
if (functionalTemplate) {
|
|
10012
|
-
options.functional = true
|
|
10013
|
-
}
|
|
8657
|
+
exports.default = function (Vue) {
|
|
10014
8658
|
|
|
10015
|
-
|
|
10016
|
-
|
|
10017
|
-
|
|
10018
|
-
|
|
8659
|
+
/**
|
|
8660
|
+
* template
|
|
8661
|
+
*
|
|
8662
|
+
* @param {String} string
|
|
8663
|
+
* @param {Array} ...args
|
|
8664
|
+
* @return {String}
|
|
8665
|
+
*/
|
|
10019
8666
|
|
|
10020
|
-
|
|
10021
|
-
|
|
10022
|
-
|
|
10023
|
-
// 2.3 injection
|
|
10024
|
-
context =
|
|
10025
|
-
context || // cached call
|
|
10026
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
10027
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
10028
|
-
// 2.2 with runInNewContext: true
|
|
10029
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
10030
|
-
context = __VUE_SSR_CONTEXT__
|
|
10031
|
-
}
|
|
10032
|
-
// inject component styles
|
|
10033
|
-
if (injectStyles) {
|
|
10034
|
-
injectStyles.call(this, context)
|
|
10035
|
-
}
|
|
10036
|
-
// register component module identifier for async chunk inferrence
|
|
10037
|
-
if (context && context._registeredComponents) {
|
|
10038
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
10039
|
-
}
|
|
8667
|
+
function template(string) {
|
|
8668
|
+
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
8669
|
+
args[_key - 1] = arguments[_key];
|
|
10040
8670
|
}
|
|
10041
|
-
// used by ssr in case component is cached and beforeCreate
|
|
10042
|
-
// never gets called
|
|
10043
|
-
options._ssrRegister = hook
|
|
10044
|
-
} else if (injectStyles) {
|
|
10045
|
-
hook = shadowMode
|
|
10046
|
-
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
|
10047
|
-
: injectStyles
|
|
10048
|
-
}
|
|
10049
8671
|
|
|
10050
|
-
|
|
10051
|
-
|
|
10052
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
|
10053
|
-
// go through the normalizer
|
|
10054
|
-
options._injectStyles = hook
|
|
10055
|
-
// register for functioal component in vue file
|
|
10056
|
-
var originalRender = options.render
|
|
10057
|
-
options.render = function renderWithStyleInjection (h, context) {
|
|
10058
|
-
hook.call(context)
|
|
10059
|
-
return originalRender(h, context)
|
|
10060
|
-
}
|
|
10061
|
-
} else {
|
|
10062
|
-
// inject component registration as beforeCreate hook
|
|
10063
|
-
var existing = options.beforeCreate
|
|
10064
|
-
options.beforeCreate = existing
|
|
10065
|
-
? [].concat(existing, hook)
|
|
10066
|
-
: [hook]
|
|
8672
|
+
if (args.length === 1 && _typeof(args[0]) === 'object') {
|
|
8673
|
+
args = args[0];
|
|
10067
8674
|
}
|
|
10068
|
-
}
|
|
10069
|
-
|
|
10070
|
-
return {
|
|
10071
|
-
exports: scriptExports,
|
|
10072
|
-
options: options
|
|
10073
|
-
}
|
|
10074
|
-
}
|
|
10075
|
-
|
|
10076
|
-
|
|
10077
|
-
/***/ }),
|
|
10078
|
-
|
|
10079
|
-
/***/ 122:
|
|
10080
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10081
|
-
|
|
10082
|
-
"use strict";
|
|
10083
|
-
__webpack_require__.r(__webpack_exports__);
|
|
10084
|
-
|
|
10085
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/link/src/main.vue?vue&type=template&id=01cf3b65&
|
|
10086
|
-
var render = function() {
|
|
10087
|
-
var _vm = this
|
|
10088
|
-
var _h = _vm.$createElement
|
|
10089
|
-
var _c = _vm._self._c || _h
|
|
10090
|
-
return _c(
|
|
10091
|
-
"a",
|
|
10092
|
-
_vm._b(
|
|
10093
|
-
{
|
|
10094
|
-
class: [
|
|
10095
|
-
"el-link",
|
|
10096
|
-
_vm.type ? "el-link--" + _vm.type : "",
|
|
10097
|
-
_vm.disabled && "is-disabled",
|
|
10098
|
-
_vm.underline && !_vm.disabled && "is-underline"
|
|
10099
|
-
],
|
|
10100
|
-
attrs: { href: _vm.disabled ? null : _vm.href },
|
|
10101
|
-
on: { click: _vm.handleClick }
|
|
10102
|
-
},
|
|
10103
|
-
"a",
|
|
10104
|
-
_vm.$attrs,
|
|
10105
|
-
false
|
|
10106
|
-
),
|
|
10107
|
-
[
|
|
10108
|
-
_vm.icon ? _c("i", { class: _vm.icon }) : _vm._e(),
|
|
10109
|
-
_vm.$slots.default
|
|
10110
|
-
? _c("span", { staticClass: "el-link--inner" }, [_vm._t("default")], 2)
|
|
10111
|
-
: _vm._e(),
|
|
10112
|
-
_vm.$slots.icon ? [_vm.$slots.icon ? _vm._t("icon") : _vm._e()] : _vm._e()
|
|
10113
|
-
],
|
|
10114
|
-
2
|
|
10115
|
-
)
|
|
10116
|
-
}
|
|
10117
|
-
var staticRenderFns = []
|
|
10118
|
-
render._withStripped = true
|
|
10119
|
-
|
|
10120
|
-
|
|
10121
|
-
// CONCATENATED MODULE: ./packages/link/src/main.vue?vue&type=template&id=01cf3b65&
|
|
10122
|
-
|
|
10123
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/link/src/main.vue?vue&type=script&lang=js&
|
|
10124
|
-
//
|
|
10125
|
-
//
|
|
10126
|
-
//
|
|
10127
|
-
//
|
|
10128
|
-
//
|
|
10129
|
-
//
|
|
10130
|
-
//
|
|
10131
|
-
//
|
|
10132
|
-
//
|
|
10133
|
-
//
|
|
10134
|
-
//
|
|
10135
|
-
//
|
|
10136
|
-
//
|
|
10137
|
-
//
|
|
10138
|
-
//
|
|
10139
|
-
//
|
|
10140
|
-
//
|
|
10141
|
-
//
|
|
10142
|
-
//
|
|
10143
|
-
//
|
|
10144
|
-
//
|
|
10145
|
-
//
|
|
10146
|
-
//
|
|
10147
8675
|
|
|
8676
|
+
if (!args || !args.hasOwnProperty) {
|
|
8677
|
+
args = {};
|
|
8678
|
+
}
|
|
10148
8679
|
|
|
10149
|
-
|
|
10150
|
-
|
|
10151
|
-
|
|
10152
|
-
props: {
|
|
10153
|
-
type: {
|
|
10154
|
-
type: String,
|
|
10155
|
-
default: 'default'
|
|
10156
|
-
},
|
|
10157
|
-
underline: {
|
|
10158
|
-
type: Boolean,
|
|
10159
|
-
default: true
|
|
10160
|
-
},
|
|
10161
|
-
disabled: Boolean,
|
|
10162
|
-
href: String,
|
|
10163
|
-
icon: String
|
|
10164
|
-
},
|
|
8680
|
+
return string.replace(RE_NARGS, function (match, prefix, i, index) {
|
|
8681
|
+
var result = void 0;
|
|
10165
8682
|
|
|
10166
|
-
|
|
10167
|
-
|
|
10168
|
-
|
|
10169
|
-
|
|
10170
|
-
|
|
8683
|
+
if (string[index - 1] === '{' && string[index + match.length] === '}') {
|
|
8684
|
+
return i;
|
|
8685
|
+
} else {
|
|
8686
|
+
result = (0, _util.hasOwn)(args, i) ? args[i] : null;
|
|
8687
|
+
if (result === null || result === undefined) {
|
|
8688
|
+
return '';
|
|
10171
8689
|
}
|
|
8690
|
+
|
|
8691
|
+
return result;
|
|
10172
8692
|
}
|
|
10173
|
-
}
|
|
8693
|
+
});
|
|
10174
8694
|
}
|
|
10175
|
-
});
|
|
10176
|
-
// CONCATENATED MODULE: ./packages/link/src/main.vue?vue&type=script&lang=js&
|
|
10177
|
-
/* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
|
|
10178
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
10179
|
-
var componentNormalizer = __webpack_require__(0);
|
|
10180
|
-
|
|
10181
|
-
// CONCATENATED MODULE: ./packages/link/src/main.vue
|
|
10182
|
-
|
|
10183
|
-
|
|
10184
|
-
|
|
10185
|
-
|
|
10186
|
-
|
|
10187
|
-
/* normalize component */
|
|
10188
|
-
|
|
10189
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
10190
|
-
src_mainvue_type_script_lang_js_,
|
|
10191
|
-
render,
|
|
10192
|
-
staticRenderFns,
|
|
10193
|
-
false,
|
|
10194
|
-
null,
|
|
10195
|
-
null,
|
|
10196
|
-
null
|
|
10197
|
-
|
|
10198
|
-
)
|
|
10199
8695
|
|
|
10200
|
-
|
|
10201
|
-
|
|
10202
|
-
component.options.__file = "packages/link/src/main.vue"
|
|
10203
|
-
/* harmony default export */ var main = (component.exports);
|
|
10204
|
-
// CONCATENATED MODULE: ./packages/link/index.js
|
|
8696
|
+
return template;
|
|
8697
|
+
};
|
|
10205
8698
|
|
|
8699
|
+
var _util = __webpack_require__("8122");
|
|
10206
8700
|
|
|
10207
|
-
|
|
10208
|
-
|
|
10209
|
-
|
|
10210
|
-
|
|
8701
|
+
var RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
|
|
8702
|
+
/**
|
|
8703
|
+
* String format template
|
|
8704
|
+
* - Inspired:
|
|
8705
|
+
* https://github.com/Matt-Esch/string-template/index.js
|
|
8706
|
+
*/
|
|
10211
8707
|
|
|
10212
|
-
|
|
8708
|
+
/***/ }),
|
|
10213
8709
|
|
|
10214
|
-
/***/
|
|
8710
|
+
/***/ "a1cc":
|
|
8711
|
+
/***/ (function(module, exports) {
|
|
10215
8712
|
|
|
10216
|
-
|
|
8713
|
+
module.exports = require("resize-observer-polyfill");
|
|
10217
8714
|
|
|
10218
8715
|
/***/ }),
|
|
10219
8716
|
|
|
@@ -10579,17 +9076,6 @@ module.exports = require("core-js/modules/es.json.stringify.js");
|
|
|
10579
9076
|
|
|
10580
9077
|
module.exports = require("css-element-queries/src/ResizeSensor");
|
|
10581
9078
|
|
|
10582
|
-
/***/ }),
|
|
10583
|
-
|
|
10584
|
-
/***/ "b1da":
|
|
10585
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10586
|
-
|
|
10587
|
-
"use strict";
|
|
10588
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MultiFlatmapVuer_vue_vue_type_style_index_0_id_0ad8a77b_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("3ec8");
|
|
10589
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MultiFlatmapVuer_vue_vue_type_style_index_0_id_0ad8a77b_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MultiFlatmapVuer_vue_vue_type_style_index_0_id_0ad8a77b_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
10590
|
-
/* unused harmony reexport * */
|
|
10591
|
-
|
|
10592
|
-
|
|
10593
9079
|
/***/ }),
|
|
10594
9080
|
|
|
10595
9081
|
/***/ "b2d6":
|
|
@@ -10718,36 +9204,36 @@ exports.default = {
|
|
|
10718
9204
|
cancelButtonText: 'No'
|
|
10719
9205
|
},
|
|
10720
9206
|
empty: {
|
|
10721
|
-
description: 'No Data'
|
|
10722
|
-
}
|
|
10723
|
-
}
|
|
10724
|
-
};
|
|
10725
|
-
|
|
10726
|
-
/***/ }),
|
|
10727
|
-
|
|
10728
|
-
/***/ "b5d8":
|
|
10729
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
10730
|
-
|
|
10731
|
-
// extracted by mini-css-extract-plugin
|
|
9207
|
+
description: 'No Data'
|
|
9208
|
+
}
|
|
9209
|
+
}
|
|
9210
|
+
};
|
|
10732
9211
|
|
|
10733
9212
|
/***/ }),
|
|
10734
9213
|
|
|
10735
|
-
/***/ "
|
|
9214
|
+
/***/ "b5d8":
|
|
10736
9215
|
/***/ (function(module, exports, __webpack_require__) {
|
|
10737
9216
|
|
|
10738
9217
|
// extracted by mini-css-extract-plugin
|
|
10739
9218
|
|
|
10740
9219
|
/***/ }),
|
|
10741
9220
|
|
|
10742
|
-
/***/ "
|
|
9221
|
+
/***/ "b64b":
|
|
10743
9222
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10744
9223
|
|
|
10745
9224
|
"use strict";
|
|
10746
|
-
/* harmony import */ var
|
|
10747
|
-
/* harmony import */ var
|
|
9225
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Tooltip_vue_vue_type_style_index_0_id_6d6dee76_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("21d1");
|
|
9226
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Tooltip_vue_vue_type_style_index_0_id_6d6dee76_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Tooltip_vue_vue_type_style_index_0_id_6d6dee76_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
10748
9227
|
/* unused harmony reexport * */
|
|
10749
9228
|
|
|
10750
9229
|
|
|
9230
|
+
/***/ }),
|
|
9231
|
+
|
|
9232
|
+
/***/ "be4f":
|
|
9233
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
9234
|
+
|
|
9235
|
+
// extracted by mini-css-extract-plugin
|
|
9236
|
+
|
|
10751
9237
|
/***/ }),
|
|
10752
9238
|
|
|
10753
9239
|
/***/ "c2cc":
|
|
@@ -11317,17 +9803,6 @@ function isKorean(text) {
|
|
|
11317
9803
|
return reg.test(text);
|
|
11318
9804
|
}
|
|
11319
9805
|
|
|
11320
|
-
/***/ }),
|
|
11321
|
-
|
|
11322
|
-
/***/ "d3ec":
|
|
11323
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11324
|
-
|
|
11325
|
-
"use strict";
|
|
11326
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FlatmapVuer_vue_vue_type_style_index_0_id_39b938a0_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5538");
|
|
11327
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FlatmapVuer_vue_vue_type_style_index_0_id_39b938a0_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FlatmapVuer_vue_vue_type_style_index_0_id_39b938a0_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
11328
|
-
/* unused harmony reexport * */
|
|
11329
|
-
|
|
11330
|
-
|
|
11331
9806
|
/***/ }),
|
|
11332
9807
|
|
|
11333
9808
|
/***/ "d4df":
|
|
@@ -12004,6 +10479,13 @@ src_checkbox.install = function (Vue) {
|
|
|
12004
10479
|
|
|
12005
10480
|
/***/ }),
|
|
12006
10481
|
|
|
10482
|
+
/***/ "e26d":
|
|
10483
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
10484
|
+
|
|
10485
|
+
// extracted by mini-css-extract-plugin
|
|
10486
|
+
|
|
10487
|
+
/***/ }),
|
|
10488
|
+
|
|
12007
10489
|
/***/ "e62d":
|
|
12008
10490
|
/***/ (function(module, exports, __webpack_require__) {
|
|
12009
10491
|
|
|
@@ -14765,6 +13247,17 @@ src_radio.install = function (Vue) {
|
|
|
14765
13247
|
|
|
14766
13248
|
// extracted by mini-css-extract-plugin
|
|
14767
13249
|
|
|
13250
|
+
/***/ }),
|
|
13251
|
+
|
|
13252
|
+
/***/ "f798":
|
|
13253
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
13254
|
+
|
|
13255
|
+
"use strict";
|
|
13256
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MultiFlatmapVuer_vue_vue_type_style_index_0_id_9bafc316_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e26d");
|
|
13257
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MultiFlatmapVuer_vue_vue_type_style_index_0_id_9bafc316_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MultiFlatmapVuer_vue_vue_type_style_index_0_id_9bafc316_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
13258
|
+
/* unused harmony reexport * */
|
|
13259
|
+
|
|
13260
|
+
|
|
14768
13261
|
/***/ }),
|
|
14769
13262
|
|
|
14770
13263
|
/***/ "f989":
|
|
@@ -14809,7 +13302,7 @@ if (typeof window !== 'undefined') {
|
|
|
14809
13302
|
// Indicate to webpack that this file can be concatenated
|
|
14810
13303
|
/* harmony default export */ var setPublicPath = (null);
|
|
14811
13304
|
|
|
14812
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
13305
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"52da7808-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FlatmapVuer.vue?vue&type=template&id=1818e354&scoped=true&
|
|
14813
13306
|
var render = function render() {
|
|
14814
13307
|
var _vm = this,
|
|
14815
13308
|
_c = _vm._self._c;
|
|
@@ -14844,7 +13337,7 @@ var render = function render() {
|
|
|
14844
13337
|
}, [_c('div', [_c('el-popover', {
|
|
14845
13338
|
ref: "warningPopover",
|
|
14846
13339
|
attrs: {
|
|
14847
|
-
"content": _vm.warningMessage,
|
|
13340
|
+
"content": _vm.isLegacy ? 'This is a legacy map, you may view the latest map instead.' : _vm.warningMessage,
|
|
14848
13341
|
"placement": "right",
|
|
14849
13342
|
"appendToBody": false,
|
|
14850
13343
|
"trigger": "manual",
|
|
@@ -14872,9 +13365,16 @@ var render = function render() {
|
|
|
14872
13365
|
return _vm.hideToolitip(6);
|
|
14873
13366
|
}
|
|
14874
13367
|
}
|
|
14875
|
-
}, [_c('span', {
|
|
13368
|
+
}, [_vm.isLegacy ? [_c('span', {
|
|
14876
13369
|
staticClass: "warning-text"
|
|
14877
|
-
}, [_vm._v("
|
|
13370
|
+
}, [_vm._v("Legacy Map")]), _c('div', {
|
|
13371
|
+
staticClass: "latest-map-text",
|
|
13372
|
+
on: {
|
|
13373
|
+
"click": _vm.viewLatestMap
|
|
13374
|
+
}
|
|
13375
|
+
}, [_vm._v("Click here for the latest map")])] : [_c('span', {
|
|
13376
|
+
staticClass: "warning-text"
|
|
13377
|
+
}, [_vm._v("Beta")])]], 2) : _vm._e()], 1), _vm.displayLatestChanges ? _c('el-popover', {
|
|
14878
13378
|
ref: "latestChangesPopover",
|
|
14879
13379
|
attrs: {
|
|
14880
13380
|
"content": _vm.latestChangesMessage,
|
|
@@ -15273,7 +13773,7 @@ var render = function render() {
|
|
|
15273
13773
|
};
|
|
15274
13774
|
var staticRenderFns = [];
|
|
15275
13775
|
|
|
15276
|
-
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=template&id=
|
|
13776
|
+
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=template&id=1818e354&scoped=true&
|
|
15277
13777
|
|
|
15278
13778
|
// EXTERNAL MODULE: external "core-js/modules/es.symbol.js"
|
|
15279
13779
|
var es_symbol_js_ = __webpack_require__("9b22");
|
|
@@ -15480,8 +13980,8 @@ var es_number_constructor_js_ = __webpack_require__("f989");
|
|
|
15480
13980
|
var external_vue_ = __webpack_require__("8bbf");
|
|
15481
13981
|
var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
|
|
15482
13982
|
|
|
15483
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
15484
|
-
var
|
|
13983
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"52da7808-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Tooltip.vue?vue&type=template&id=6d6dee76&scoped=true&
|
|
13984
|
+
var Tooltipvue_type_template_id_6d6dee76_scoped_true_render = function render() {
|
|
15485
13985
|
var _vm = this,
|
|
15486
13986
|
_c = _vm._self._c;
|
|
15487
13987
|
return _c('div', {
|
|
@@ -15504,21 +14004,7 @@ var Tooltipvue_type_template_id_4a14f4de_scoped_true_render = function render()
|
|
|
15504
14004
|
staticClass: "title"
|
|
15505
14005
|
}, [_vm._v(_vm._s(_vm.content.featureId))])]), _c('div', {
|
|
15506
14006
|
staticClass: "content-container scrollbar"
|
|
15507
|
-
}, [_vm.content.
|
|
15508
|
-
directives: [{
|
|
15509
|
-
name: "show",
|
|
15510
|
-
rawName: "v-show",
|
|
15511
|
-
value: false,
|
|
15512
|
-
expression: "false"
|
|
15513
|
-
}],
|
|
15514
|
-
staticClass: "block",
|
|
15515
|
-
attrs: {
|
|
15516
|
-
"entry": _vm.content
|
|
15517
|
-
},
|
|
15518
|
-
on: {
|
|
15519
|
-
"pubmedSearchUrl": _vm.pubmedSearchUrlUpdate
|
|
15520
|
-
}
|
|
15521
|
-
}) : _vm._e(), _vm._v(" " + _vm._s(_vm.content.paths) + " "), this.origins ? _c('div', {
|
|
14007
|
+
}, [_vm._v(" " + _vm._s(_vm.content.paths) + " "), this.origins ? _c('div', {
|
|
15522
14008
|
staticClass: "block"
|
|
15523
14009
|
}, [_c('div', [_c('span', {
|
|
15524
14010
|
staticClass: "attribute-title"
|
|
@@ -15618,7 +14104,20 @@ var Tooltipvue_type_template_id_4a14f4de_scoped_true_render = function render()
|
|
|
15618
14104
|
on: {
|
|
15619
14105
|
"click": _vm.openAll
|
|
15620
14106
|
}
|
|
15621
|
-
}, [_vm._v(" Search for data on components ")]), _vm.
|
|
14107
|
+
}, [_vm._v(" Search for data on components ")]), _vm.content.featureIds ? _c('pubmed-viewer', {
|
|
14108
|
+
directives: [{
|
|
14109
|
+
name: "show",
|
|
14110
|
+
rawName: "v-show",
|
|
14111
|
+
value: false,
|
|
14112
|
+
expression: "false"
|
|
14113
|
+
}],
|
|
14114
|
+
attrs: {
|
|
14115
|
+
"entry": _vm.content
|
|
14116
|
+
},
|
|
14117
|
+
on: {
|
|
14118
|
+
"pubmedSearchUrl": _vm.pubmedSearchUrlUpdate
|
|
14119
|
+
}
|
|
14120
|
+
}) : _vm._e(), _vm.pubmedSearchUrl != '' ? _c('el-button', {
|
|
15622
14121
|
staticClass: "button",
|
|
15623
14122
|
attrs: {
|
|
15624
14123
|
"icon": "el-icon-notebook-2"
|
|
@@ -15630,9 +14129,9 @@ var Tooltipvue_type_template_id_4a14f4de_scoped_true_render = function render()
|
|
|
15630
14129
|
}
|
|
15631
14130
|
}, [_vm._v(" Open publications in pubmed ")]) : _vm._e()], 1)]) : _vm._e()], 1);
|
|
15632
14131
|
};
|
|
15633
|
-
var
|
|
14132
|
+
var Tooltipvue_type_template_id_6d6dee76_scoped_true_staticRenderFns = [];
|
|
15634
14133
|
|
|
15635
|
-
// CONCATENATED MODULE: ./src/components/Tooltip.vue?vue&type=template&id=
|
|
14134
|
+
// CONCATENATED MODULE: ./src/components/Tooltip.vue?vue&type=template&id=6d6dee76&scoped=true&
|
|
15636
14135
|
|
|
15637
14136
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
15638
14137
|
|
|
@@ -15728,127 +14227,17 @@ var en_default = /*#__PURE__*/__webpack_require__.n(en);
|
|
|
15728
14227
|
var locale = __webpack_require__("4897");
|
|
15729
14228
|
var locale_default = /*#__PURE__*/__webpack_require__.n(locale);
|
|
15730
14229
|
|
|
15731
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
15732
|
-
var
|
|
14230
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"52da7808-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PubmedViewer.vue?vue&type=template&id=58832c92&scoped=true&
|
|
14231
|
+
var PubmedViewervue_type_template_id_58832c92_scoped_true_render = function render() {
|
|
15733
14232
|
var _vm = this,
|
|
15734
14233
|
_c = _vm._self._c;
|
|
15735
14234
|
return _c('div', {
|
|
15736
14235
|
staticClass: "pubmed-container"
|
|
15737
|
-
}
|
|
15738
|
-
directives: [{
|
|
15739
|
-
name: "loading",
|
|
15740
|
-
rawName: "v-loading",
|
|
15741
|
-
value: _vm.loading.response,
|
|
15742
|
-
expression: "loading.response"
|
|
15743
|
-
}],
|
|
15744
|
-
staticClass: "block"
|
|
15745
|
-
}, [_c('div', {
|
|
15746
|
-
staticClass: "attribute-title"
|
|
15747
|
-
}, [_vm._v("Pubmed Resources")]), _c('br'), _c('el-carousel', {
|
|
15748
|
-
attrs: {
|
|
15749
|
-
"autoplay": false,
|
|
15750
|
-
"indicator-position": "outside",
|
|
15751
|
-
"height": "250px",
|
|
15752
|
-
"width": "200px"
|
|
15753
|
-
}
|
|
15754
|
-
}, _vm._l(_vm.pubmeds, function (pub, i) {
|
|
15755
|
-
return _c('el-carousel-item', {
|
|
15756
|
-
key: i
|
|
15757
|
-
}, [_c('div', {
|
|
15758
|
-
staticClass: "attribute-content"
|
|
15759
|
-
}, [_c('div', {
|
|
15760
|
-
domProps: {
|
|
15761
|
-
"innerHTML": _vm._s(pub.html)
|
|
15762
|
-
}
|
|
15763
|
-
}), _c('el-link', {
|
|
15764
|
-
staticClass: "el-link",
|
|
15765
|
-
attrs: {
|
|
15766
|
-
"href": pub.url,
|
|
15767
|
-
"underline": false,
|
|
15768
|
-
"target": "_blank"
|
|
15769
|
-
}
|
|
15770
|
-
}, [_vm._v(_vm._s(pub.url))])], 1)]);
|
|
15771
|
-
}), 1)], 1)]);
|
|
14236
|
+
});
|
|
15772
14237
|
};
|
|
15773
|
-
var
|
|
15774
|
-
|
|
15775
|
-
// CONCATENATED MODULE: ./src/components/PubmedViewer.vue?vue&type=template&id=aae60614&scoped=true&
|
|
15776
|
-
|
|
15777
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
15778
|
-
function _arrayWithHoles(arr) {
|
|
15779
|
-
if (Array.isArray(arr)) return arr;
|
|
15780
|
-
}
|
|
15781
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
15782
|
-
|
|
15783
|
-
|
|
15784
|
-
|
|
15785
|
-
|
|
15786
|
-
|
|
15787
|
-
|
|
15788
|
-
|
|
15789
|
-
|
|
15790
|
-
function _iterableToArrayLimit(arr, i) {
|
|
15791
|
-
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
15792
|
-
if (null != _i) {
|
|
15793
|
-
var _s,
|
|
15794
|
-
_e,
|
|
15795
|
-
_x,
|
|
15796
|
-
_r,
|
|
15797
|
-
_arr = [],
|
|
15798
|
-
_n = !0,
|
|
15799
|
-
_d = !1;
|
|
15800
|
-
try {
|
|
15801
|
-
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
15802
|
-
if (Object(_i) !== _i) return;
|
|
15803
|
-
_n = !1;
|
|
15804
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
|
|
15805
|
-
;
|
|
15806
|
-
}
|
|
15807
|
-
} catch (err) {
|
|
15808
|
-
_d = !0, _e = err;
|
|
15809
|
-
} finally {
|
|
15810
|
-
try {
|
|
15811
|
-
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
|
|
15812
|
-
} finally {
|
|
15813
|
-
if (_d) throw _e;
|
|
15814
|
-
}
|
|
15815
|
-
}
|
|
15816
|
-
return _arr;
|
|
15817
|
-
}
|
|
15818
|
-
}
|
|
15819
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
15820
|
-
|
|
15821
|
-
function _nonIterableRest() {
|
|
15822
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15823
|
-
}
|
|
15824
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
15825
|
-
|
|
15826
|
-
|
|
15827
|
-
|
|
15828
|
-
|
|
15829
|
-
function _slicedToArray(arr, i) {
|
|
15830
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
15831
|
-
}
|
|
15832
|
-
// EXTERNAL MODULE: ./node_modules/element-ui/lib/theme-chalk/carousel-item.css
|
|
15833
|
-
var carousel_item = __webpack_require__("186a");
|
|
15834
|
-
|
|
15835
|
-
// EXTERNAL MODULE: ./node_modules/element-ui/lib/carousel-item.js
|
|
15836
|
-
var lib_carousel_item = __webpack_require__("301f");
|
|
15837
|
-
var lib_carousel_item_default = /*#__PURE__*/__webpack_require__.n(lib_carousel_item);
|
|
15838
|
-
|
|
15839
|
-
// EXTERNAL MODULE: ./node_modules/element-ui/lib/theme-chalk/carousel.css
|
|
15840
|
-
var carousel = __webpack_require__("96dc");
|
|
15841
|
-
|
|
15842
|
-
// EXTERNAL MODULE: ./node_modules/element-ui/lib/carousel.js
|
|
15843
|
-
var lib_carousel = __webpack_require__("9cea");
|
|
15844
|
-
var lib_carousel_default = /*#__PURE__*/__webpack_require__.n(lib_carousel);
|
|
14238
|
+
var PubmedViewervue_type_template_id_58832c92_scoped_true_staticRenderFns = [];
|
|
15845
14239
|
|
|
15846
|
-
//
|
|
15847
|
-
var theme_chalk_link = __webpack_require__("fd71");
|
|
15848
|
-
|
|
15849
|
-
// EXTERNAL MODULE: ./node_modules/element-ui/lib/link.js
|
|
15850
|
-
var lib_link = __webpack_require__("a447");
|
|
15851
|
-
var lib_link_default = /*#__PURE__*/__webpack_require__.n(lib_link);
|
|
14240
|
+
// CONCATENATED MODULE: ./src/components/PubmedViewer.vue?vue&type=template&id=58832c92&scoped=true&
|
|
15852
14241
|
|
|
15853
14242
|
// EXTERNAL MODULE: external "core-js/modules/web.url-search-params.js"
|
|
15854
14243
|
var web_url_search_params_js_ = __webpack_require__("712c");
|
|
@@ -15862,21 +14251,6 @@ var es_regexp_to_string_js_ = __webpack_require__("30df");
|
|
|
15862
14251
|
|
|
15863
14252
|
|
|
15864
14253
|
|
|
15865
|
-
|
|
15866
|
-
|
|
15867
|
-
|
|
15868
|
-
|
|
15869
|
-
|
|
15870
|
-
|
|
15871
|
-
|
|
15872
|
-
|
|
15873
|
-
|
|
15874
|
-
|
|
15875
|
-
|
|
15876
|
-
|
|
15877
|
-
|
|
15878
|
-
|
|
15879
|
-
|
|
15880
14254
|
|
|
15881
14255
|
|
|
15882
14256
|
|
|
@@ -15884,13 +14258,6 @@ var es_regexp_to_string_js_ = __webpack_require__("30df");
|
|
|
15884
14258
|
|
|
15885
14259
|
/* eslint-disable no-alert, no-console */
|
|
15886
14260
|
|
|
15887
|
-
|
|
15888
|
-
|
|
15889
|
-
locale_default.a.use(en_default.a);
|
|
15890
|
-
external_vue_default.a.use(lib_link_default.a);
|
|
15891
|
-
external_vue_default.a.use(lib_carousel_default.a);
|
|
15892
|
-
external_vue_default.a.use(lib_carousel_item_default.a);
|
|
15893
|
-
external_vue_default.a.use(lib_button_default.a);
|
|
15894
14261
|
/* harmony default export */ var PubmedViewervue_type_script_lang_js_ = ({
|
|
15895
14262
|
name: "Tooltip",
|
|
15896
14263
|
props: {
|
|
@@ -15900,52 +14267,26 @@ external_vue_default.a.use(lib_button_default.a);
|
|
|
15900
14267
|
}
|
|
15901
14268
|
},
|
|
15902
14269
|
watch: {
|
|
15903
|
-
'entry.featureId': function entryFeatureId(val) {
|
|
15904
|
-
var _this = this;
|
|
15905
|
-
this.flatmapQuery(val).then(function (pb) {
|
|
15906
|
-
return _this.pubmeds = pb;
|
|
15907
|
-
});
|
|
15908
|
-
},
|
|
15909
14270
|
'entry.featureIds': {
|
|
15910
14271
|
handler: function handler(ids) {
|
|
15911
|
-
this.
|
|
14272
|
+
this.pubmedQueryOnIds(ids);
|
|
15912
14273
|
}
|
|
15913
14274
|
}
|
|
15914
14275
|
},
|
|
15915
14276
|
inject: ['flatmapAPI'],
|
|
15916
14277
|
data: function data() {
|
|
15917
14278
|
return {
|
|
15918
|
-
data: {},
|
|
15919
14279
|
pubmeds: [],
|
|
15920
|
-
pubmedIds: []
|
|
15921
|
-
loading: {
|
|
15922
|
-
response: true,
|
|
15923
|
-
publications: true
|
|
15924
|
-
}
|
|
14280
|
+
pubmedIds: []
|
|
15925
14281
|
};
|
|
15926
14282
|
},
|
|
15927
14283
|
mounted: function mounted() {
|
|
15928
|
-
if (this.entry.featureIds) this.
|
|
14284
|
+
if (this.entry.featureIds) this.pubmedQueryOnIds(this.entry.featureIds);
|
|
15929
14285
|
},
|
|
15930
14286
|
methods: {
|
|
15931
14287
|
stripPMIDPrefix: function stripPMIDPrefix(pubmedId) {
|
|
15932
14288
|
return pubmedId.split(':')[1];
|
|
15933
14289
|
},
|
|
15934
|
-
titleFromPubmed: function titleFromPubmed(pubmedId) {
|
|
15935
|
-
return new Promise(function (resolve) {
|
|
15936
|
-
fetch("https://api.ncbi.nlm.nih.gov/lit/ctxp/v1/pubmed/?format=citation&contenttype=json&id=".concat(pubmedId)).then(function (response) {
|
|
15937
|
-
return response.json();
|
|
15938
|
-
}).then(function (data) {
|
|
15939
|
-
resolve(data.apa.format);
|
|
15940
|
-
}).catch(function (error) {
|
|
15941
|
-
console.error('Error:', error);
|
|
15942
|
-
});
|
|
15943
|
-
});
|
|
15944
|
-
},
|
|
15945
|
-
splitLink: function splitLink(bibliographyString) {
|
|
15946
|
-
var split = bibliographyString.split('https');
|
|
15947
|
-
return [split[0], 'https' + split[1]];
|
|
15948
|
-
},
|
|
15949
14290
|
buildPubmedSqlStatement: function buildPubmedSqlStatement(keastIds) {
|
|
15950
14291
|
var sql = 'select distinct publication from publications where entity in (';
|
|
15951
14292
|
if (keastIds.length === 1) {
|
|
@@ -15957,17 +14298,14 @@ external_vue_default.a.use(lib_button_default.a);
|
|
|
15957
14298
|
}
|
|
15958
14299
|
return sql;
|
|
15959
14300
|
},
|
|
15960
|
-
|
|
15961
|
-
|
|
15962
|
-
|
|
15963
|
-
|
|
15964
|
-
this.loading.response = true;
|
|
15965
|
-
|
|
15966
|
-
// fetch pubmed publications for the given ids
|
|
14301
|
+
buildPubmedSqlStatementForModels: function buildPubmedSqlStatementForModels(model) {
|
|
14302
|
+
return "select distinct publication from publications where entity = '".concat(model, "'");
|
|
14303
|
+
},
|
|
14304
|
+
flatmapQuery: function flatmapQuery(sql) {
|
|
15967
14305
|
var data = {
|
|
15968
|
-
sql:
|
|
14306
|
+
sql: sql
|
|
15969
14307
|
};
|
|
15970
|
-
fetch("".concat(this.flatmapAPI, "knowledge/query/"), {
|
|
14308
|
+
return fetch("".concat(this.flatmapAPI, "knowledge/query/"), {
|
|
15971
14309
|
method: 'POST',
|
|
15972
14310
|
headers: {
|
|
15973
14311
|
'Content-Type': 'application/json'
|
|
@@ -15975,36 +14313,40 @@ external_vue_default.a.use(lib_button_default.a);
|
|
|
15975
14313
|
body: JSON.stringify(data)
|
|
15976
14314
|
}).then(function (response) {
|
|
15977
14315
|
return response.json();
|
|
15978
|
-
}).
|
|
15979
|
-
|
|
15980
|
-
|
|
15981
|
-
|
|
15982
|
-
|
|
14316
|
+
}).catch(function (error) {
|
|
14317
|
+
console.error('Error:', error);
|
|
14318
|
+
});
|
|
14319
|
+
},
|
|
14320
|
+
pubmedQueryOnIds: function pubmedQueryOnIds(keastIds) {
|
|
14321
|
+
var _this = this;
|
|
14322
|
+
if (!keastIds || keastIds.length === 0) return;
|
|
14323
|
+
var sql = this.buildPubmedSqlStatement(keastIds);
|
|
14324
|
+
this.flatmapQuery(sql).then(function (data) {
|
|
14325
|
+
_this.responseData = data;
|
|
14326
|
+
// Create pubmed url on paths if we have them
|
|
15983
14327
|
if (data.values.length > 0) {
|
|
15984
|
-
data.values.
|
|
15985
|
-
|
|
15986
|
-
|
|
15987
|
-
|
|
15988
|
-
|
|
15989
|
-
|
|
15990
|
-
|
|
15991
|
-
|
|
15992
|
-
|
|
15993
|
-
|
|
15994
|
-
|
|
15995
|
-
|
|
15996
|
-
|
|
15997
|
-
});
|
|
14328
|
+
_this.$emit('pubmedSearchUrl', _this.pubmedSearchUrl(data.values.map(function (id) {
|
|
14329
|
+
return _this.stripPMIDPrefix(id[0]);
|
|
14330
|
+
})));
|
|
14331
|
+
} else {
|
|
14332
|
+
// Create pubmed url on models
|
|
14333
|
+
_this.pubmedQueryOnModels(_this.entry.source);
|
|
14334
|
+
}
|
|
14335
|
+
});
|
|
14336
|
+
},
|
|
14337
|
+
pubmedQueryOnModels: function pubmedQueryOnModels(source) {
|
|
14338
|
+
var _this2 = this;
|
|
14339
|
+
this.flatmapQuery(this.buildPubmedSqlStatementForModels(source)).then(function (data) {
|
|
14340
|
+
if (Array.isArray(data.values) && data.values.length > 0) {
|
|
15998
14341
|
_this2.$emit('pubmedSearchUrl', _this2.pubmedSearchUrl(data.values.map(function (id) {
|
|
15999
14342
|
return _this2.stripPMIDPrefix(id[0]);
|
|
16000
14343
|
})));
|
|
16001
14344
|
} else {
|
|
16002
14345
|
_this2.$emit('pubmedSearchUrl', ''); // Clears the pubmed search button
|
|
16003
14346
|
}
|
|
16004
|
-
}).catch(function (error) {
|
|
16005
|
-
console.error('Error:', error);
|
|
16006
14347
|
});
|
|
16007
14348
|
},
|
|
14349
|
+
|
|
16008
14350
|
pubmedSearchUrl: function pubmedSearchUrl(ids) {
|
|
16009
14351
|
var url = 'https://pubmed.ncbi.nlm.nih.gov/?';
|
|
16010
14352
|
var params = new URLSearchParams();
|
|
@@ -16015,8 +14357,8 @@ external_vue_default.a.use(lib_button_default.a);
|
|
|
16015
14357
|
});
|
|
16016
14358
|
// CONCATENATED MODULE: ./src/components/PubmedViewer.vue?vue&type=script&lang=js&
|
|
16017
14359
|
/* harmony default export */ var components_PubmedViewervue_type_script_lang_js_ = (PubmedViewervue_type_script_lang_js_);
|
|
16018
|
-
// EXTERNAL MODULE: ./src/components/PubmedViewer.vue?vue&type=style&index=0&id=
|
|
16019
|
-
var
|
|
14360
|
+
// EXTERNAL MODULE: ./src/components/PubmedViewer.vue?vue&type=style&index=0&id=58832c92&prod&scoped=true&lang=scss&
|
|
14361
|
+
var PubmedViewervue_type_style_index_0_id_58832c92_prod_scoped_true_lang_scss_ = __webpack_require__("233b");
|
|
16020
14362
|
|
|
16021
14363
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
16022
14364
|
/* globals __VUE_SSR_CONTEXT__ */
|
|
@@ -16127,11 +14469,11 @@ function normalizeComponent(
|
|
|
16127
14469
|
|
|
16128
14470
|
var component = normalizeComponent(
|
|
16129
14471
|
components_PubmedViewervue_type_script_lang_js_,
|
|
16130
|
-
|
|
16131
|
-
|
|
14472
|
+
PubmedViewervue_type_template_id_58832c92_scoped_true_render,
|
|
14473
|
+
PubmedViewervue_type_template_id_58832c92_scoped_true_staticRenderFns,
|
|
16132
14474
|
false,
|
|
16133
14475
|
null,
|
|
16134
|
-
"
|
|
14476
|
+
"58832c92",
|
|
16135
14477
|
null
|
|
16136
14478
|
|
|
16137
14479
|
)
|
|
@@ -16440,8 +14782,51 @@ var _capitalise = function capitalise(str) {
|
|
|
16440
14782
|
}
|
|
16441
14783
|
return label;
|
|
16442
14784
|
},
|
|
16443
|
-
|
|
14785
|
+
processConnectivity: function processConnectivity(connectivity) {
|
|
16444
14786
|
var _this4 = this;
|
|
14787
|
+
// Filter the origin and destinations from components
|
|
14788
|
+
var components = this.findComponents(connectivity);
|
|
14789
|
+
|
|
14790
|
+
// Remove duplicates
|
|
14791
|
+
var axons = Tooltipvue_type_script_lang_js_removeDuplicates(connectivity.axons);
|
|
14792
|
+
var dendrites = Tooltipvue_type_script_lang_js_removeDuplicates(connectivity.dendrites);
|
|
14793
|
+
|
|
14794
|
+
// Create list of ids to get labels for
|
|
14795
|
+
var conIds = this.findAllIdsFromConnectivity(connectivity);
|
|
14796
|
+
|
|
14797
|
+
// Create readable labels from the nodes. Setting this to 'this.origins' updates the display
|
|
14798
|
+
this.createLabelLookup(conIds).then(function (lookUp) {
|
|
14799
|
+
_this4.destinations = axons.map(function (a) {
|
|
14800
|
+
return _this4.createLabelFromNeuralNode(a, lookUp);
|
|
14801
|
+
});
|
|
14802
|
+
_this4.origins = dendrites.map(function (d) {
|
|
14803
|
+
return _this4.createLabelFromNeuralNode(d, lookUp);
|
|
14804
|
+
});
|
|
14805
|
+
_this4.components = components.map(function (c) {
|
|
14806
|
+
return _this4.createLabelFromNeuralNode(c, lookUp);
|
|
14807
|
+
});
|
|
14808
|
+
});
|
|
14809
|
+
this.flattenAndFindDatasets(components, axons, dendrites);
|
|
14810
|
+
},
|
|
14811
|
+
flattenAndFindDatasets: function flattenAndFindDatasets(components, axons, dendrites) {
|
|
14812
|
+
// process the nodes for finding datasets (Note this is not critical to the tooltip, only for the 'search on components' button)
|
|
14813
|
+
var componentsFlat = this.flattenConntectivity(components);
|
|
14814
|
+
var axonsFlat = this.flattenConntectivity(axons);
|
|
14815
|
+
var dendritesFlat = this.flattenConntectivity(dendrites);
|
|
14816
|
+
|
|
14817
|
+
// Filter for the anatomy which is annotated on datasets
|
|
14818
|
+
this.destinationsWithDatasets = this.uberons.filter(function (ub) {
|
|
14819
|
+
return axonsFlat.indexOf(ub.id) !== -1;
|
|
14820
|
+
});
|
|
14821
|
+
this.originsWithDatasets = this.uberons.filter(function (ub) {
|
|
14822
|
+
return dendritesFlat.indexOf(ub.id) !== -1;
|
|
14823
|
+
});
|
|
14824
|
+
this.componentsWithDatasets = this.uberons.filter(function (ub) {
|
|
14825
|
+
return componentsFlat.indexOf(ub.id) !== -1;
|
|
14826
|
+
});
|
|
14827
|
+
},
|
|
14828
|
+
pathwayQuery: function pathwayQuery(keastIds) {
|
|
14829
|
+
var _this5 = this;
|
|
16445
14830
|
this.destinations = [];
|
|
16446
14831
|
this.origins = [];
|
|
16447
14832
|
this.components = [];
|
|
@@ -16460,41 +14845,8 @@ var _capitalise = function capitalise(str) {
|
|
|
16460
14845
|
return response.json();
|
|
16461
14846
|
}).then(function (data) {
|
|
16462
14847
|
var connectivity = JSON.parse(data.values[0][0]);
|
|
16463
|
-
|
|
16464
|
-
|
|
16465
|
-
|
|
16466
|
-
// process the nodes for finding datasets
|
|
16467
|
-
var componentsFlat = _this4.flattenConntectivity(components);
|
|
16468
|
-
var axons = Tooltipvue_type_script_lang_js_removeDuplicates(connectivity.axons);
|
|
16469
|
-
var dendrites = Tooltipvue_type_script_lang_js_removeDuplicates(connectivity.dendrites);
|
|
16470
|
-
var axonsFlat = _this4.flattenConntectivity(axons);
|
|
16471
|
-
var dendritesFlat = _this4.flattenConntectivity(dendrites);
|
|
16472
|
-
var conIds = _this4.findAllIdsFromConnectivity(connectivity); // Create list of ids to get labels for
|
|
16473
|
-
|
|
16474
|
-
// Create readable labels from the nodes. Setting this to 'this.origins' updates the display
|
|
16475
|
-
_this4.createLabelLookup(conIds).then(function (lookUp) {
|
|
16476
|
-
_this4.destinations = axons.map(function (a) {
|
|
16477
|
-
return _this4.createLabelFromNeuralNode(a, lookUp);
|
|
16478
|
-
});
|
|
16479
|
-
_this4.origins = dendrites.map(function (d) {
|
|
16480
|
-
return _this4.createLabelFromNeuralNode(d, lookUp);
|
|
16481
|
-
});
|
|
16482
|
-
_this4.components = components.map(function (c) {
|
|
16483
|
-
return _this4.createLabelFromNeuralNode(c, lookUp);
|
|
16484
|
-
});
|
|
16485
|
-
});
|
|
16486
|
-
|
|
16487
|
-
// Filter for the anatomy which is annotated on datasets
|
|
16488
|
-
_this4.destinationsWithDatasets = _this4.uberons.filter(function (ub) {
|
|
16489
|
-
return axonsFlat.indexOf(ub.id) !== -1;
|
|
16490
|
-
});
|
|
16491
|
-
_this4.originsWithDatasets = _this4.uberons.filter(function (ub) {
|
|
16492
|
-
return dendritesFlat.indexOf(ub.id) !== -1;
|
|
16493
|
-
});
|
|
16494
|
-
_this4.componentsWithDatasets = _this4.uberons.filter(function (ub) {
|
|
16495
|
-
return componentsFlat.indexOf(ub.id) !== -1;
|
|
16496
|
-
});
|
|
16497
|
-
_this4.loading = false;
|
|
14848
|
+
_this5.processConnectivity(connectivity);
|
|
14849
|
+
_this5.loading = false;
|
|
16498
14850
|
}).catch(function (error) {
|
|
16499
14851
|
console.error('Error:', error);
|
|
16500
14852
|
});
|
|
@@ -16503,8 +14855,8 @@ var _capitalise = function capitalise(str) {
|
|
|
16503
14855
|
});
|
|
16504
14856
|
// CONCATENATED MODULE: ./src/components/Tooltip.vue?vue&type=script&lang=js&
|
|
16505
14857
|
/* harmony default export */ var components_Tooltipvue_type_script_lang_js_ = (Tooltipvue_type_script_lang_js_);
|
|
16506
|
-
// EXTERNAL MODULE: ./src/components/Tooltip.vue?vue&type=style&index=0&id=
|
|
16507
|
-
var
|
|
14858
|
+
// EXTERNAL MODULE: ./src/components/Tooltip.vue?vue&type=style&index=0&id=6d6dee76&prod&scoped=true&lang=scss&
|
|
14859
|
+
var Tooltipvue_type_style_index_0_id_6d6dee76_prod_scoped_true_lang_scss_ = __webpack_require__("b64b");
|
|
16508
14860
|
|
|
16509
14861
|
// CONCATENATED MODULE: ./src/components/Tooltip.vue
|
|
16510
14862
|
|
|
@@ -16517,11 +14869,11 @@ var Tooltipvue_type_style_index_0_id_4a14f4de_prod_scoped_true_lang_scss_ = __we
|
|
|
16517
14869
|
|
|
16518
14870
|
var Tooltip_component = normalizeComponent(
|
|
16519
14871
|
components_Tooltipvue_type_script_lang_js_,
|
|
16520
|
-
|
|
16521
|
-
|
|
14872
|
+
Tooltipvue_type_template_id_6d6dee76_scoped_true_render,
|
|
14873
|
+
Tooltipvue_type_template_id_6d6dee76_scoped_true_staticRenderFns,
|
|
16522
14874
|
false,
|
|
16523
14875
|
null,
|
|
16524
|
-
"
|
|
14876
|
+
"6d6dee76",
|
|
16525
14877
|
null
|
|
16526
14878
|
|
|
16527
14879
|
)
|
|
@@ -16530,7 +14882,7 @@ var Tooltip_component = normalizeComponent(
|
|
|
16530
14882
|
// EXTERNAL MODULE: external "@abi-software/svg-sprite"
|
|
16531
14883
|
var svg_sprite_ = __webpack_require__("429c");
|
|
16532
14884
|
|
|
16533
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
14885
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"52da7808-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/legends/Legends.vue?vue&type=template&id=5dafd4cc&scoped=true&
|
|
16534
14886
|
var Legendsvue_type_template_id_5dafd4cc_scoped_true_render = function render() {
|
|
16535
14887
|
var _vm = this,
|
|
16536
14888
|
_c = _vm._self._c;
|
|
@@ -16718,6 +15070,19 @@ var mapResize = function mapResize(map) {
|
|
|
16718
15070
|
this.mapImp = undefined;
|
|
16719
15071
|
},
|
|
16720
15072
|
methods: {
|
|
15073
|
+
viewLatestMap: function viewLatestMap() {
|
|
15074
|
+
var biologicalSex = this.biologicalSex ? this.biologicalSex : undefined;
|
|
15075
|
+
//Human requires special handling
|
|
15076
|
+
if (this.entry === "NCBITaxon:9606") {
|
|
15077
|
+
biologicalSex = "PATO:0000384";
|
|
15078
|
+
}
|
|
15079
|
+
var state = {
|
|
15080
|
+
entry: this.entry,
|
|
15081
|
+
biologicalSex: biologicalSex,
|
|
15082
|
+
viewport: this.mapImp.getState()
|
|
15083
|
+
};
|
|
15084
|
+
this.$emit("view-latest-map", state);
|
|
15085
|
+
},
|
|
16721
15086
|
backgroundChangeCallback: function backgroundChangeCallback(colour) {
|
|
16722
15087
|
this.currentBackground = colour;
|
|
16723
15088
|
if (this.mapImp) {
|
|
@@ -16890,6 +15255,7 @@ var mapResize = function mapResize(map) {
|
|
|
16890
15255
|
this.tooltipVisible = true;
|
|
16891
15256
|
this.tooltipContent = content;
|
|
16892
15257
|
this.tooltipContent.uberon = feature;
|
|
15258
|
+
this.tooltipContent.source = data.feature.source;
|
|
16893
15259
|
this.tooltipContent.title = data.label;
|
|
16894
15260
|
this.tooltipContent.featureIds = [feature];
|
|
16895
15261
|
this.tooltipContent.actions.push({
|
|
@@ -16907,6 +15273,7 @@ var mapResize = function mapResize(map) {
|
|
|
16907
15273
|
this.tooltipVisible = true;
|
|
16908
15274
|
this.tooltipContent = content;
|
|
16909
15275
|
this.tooltipContent.uberon = feature;
|
|
15276
|
+
this.tooltipContent.source = data.feature.source;
|
|
16910
15277
|
this.tooltipContent.title = data.label;
|
|
16911
15278
|
this.tooltipContent.actions.push({
|
|
16912
15279
|
title: "View dataset",
|
|
@@ -17054,13 +15421,19 @@ var mapResize = function mapResize(map) {
|
|
|
17054
15421
|
var identifier = {
|
|
17055
15422
|
taxon: this.entry
|
|
17056
15423
|
};
|
|
17057
|
-
if (state
|
|
17058
|
-
|
|
17059
|
-
|
|
17060
|
-
|
|
17061
|
-
|
|
17062
|
-
|
|
17063
|
-
identifier
|
|
15424
|
+
if (state) {
|
|
15425
|
+
if (state.uuid) {
|
|
15426
|
+
identifier = {
|
|
15427
|
+
uuid: state.uuid
|
|
15428
|
+
};
|
|
15429
|
+
} else if (state.entry) {
|
|
15430
|
+
identifier.taxon = state.entry;
|
|
15431
|
+
if (state.biologicalSex) {
|
|
15432
|
+
identifier["biologicalSex"] = state.biologicalSex;
|
|
15433
|
+
} else if (identifier.taxon === "NCBITaxon:9606") {
|
|
15434
|
+
//For backward compatibility
|
|
15435
|
+
identifier["biologicalSex"] = "PATO:0000384";
|
|
15436
|
+
}
|
|
17064
15437
|
}
|
|
17065
15438
|
} else {
|
|
17066
15439
|
// Set the bioloicalSex now if map is not resumed from
|
|
@@ -17091,7 +15464,10 @@ var mapResize = function mapResize(map) {
|
|
|
17091
15464
|
if (_this3._viewportToBeSet) _this3.mapImp.setState(_this3._viewportToBeSet);else if (state && state.viewport) _this3.mapImp.setState(state.viewport);
|
|
17092
15465
|
});
|
|
17093
15466
|
} else if (state) {
|
|
17094
|
-
if (this.entry == state.entry)
|
|
15467
|
+
if (this.entry == state.entry) {
|
|
15468
|
+
this._viewportToBeSet = state.viewport;
|
|
15469
|
+
if (this.mapImp && !this.loading) this.mapImp.setState(this._viewportToBeSet);
|
|
15470
|
+
}
|
|
17095
15471
|
}
|
|
17096
15472
|
},
|
|
17097
15473
|
showMinimap: function showMinimap(flag) {
|
|
@@ -17172,6 +15548,10 @@ var mapResize = function mapResize(map) {
|
|
|
17172
15548
|
type: String,
|
|
17173
15549
|
default: "Beta feature - This map is based on the connectivity of a rat. New connectivity and species specificity will be added as the SPARC program progress."
|
|
17174
15550
|
},
|
|
15551
|
+
isLegacy: {
|
|
15552
|
+
type: Boolean,
|
|
15553
|
+
default: false
|
|
15554
|
+
},
|
|
17175
15555
|
displayLatestChanges: {
|
|
17176
15556
|
type: Boolean,
|
|
17177
15557
|
default: false
|
|
@@ -17264,8 +15644,8 @@ var mapResize = function mapResize(map) {
|
|
|
17264
15644
|
});
|
|
17265
15645
|
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=script&lang=js&
|
|
17266
15646
|
/* harmony default export */ var components_FlatmapVuervue_type_script_lang_js_ = (FlatmapVuervue_type_script_lang_js_);
|
|
17267
|
-
// EXTERNAL MODULE: ./src/components/FlatmapVuer.vue?vue&type=style&index=0&id=
|
|
17268
|
-
var
|
|
15647
|
+
// EXTERNAL MODULE: ./src/components/FlatmapVuer.vue?vue&type=style&index=0&id=1818e354&prod&scoped=true&lang=scss&
|
|
15648
|
+
var FlatmapVuervue_type_style_index_0_id_1818e354_prod_scoped_true_lang_scss_ = __webpack_require__("8ab6");
|
|
17269
15649
|
|
|
17270
15650
|
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue
|
|
17271
15651
|
|
|
@@ -17282,14 +15662,14 @@ var FlatmapVuer_component = normalizeComponent(
|
|
|
17282
15662
|
staticRenderFns,
|
|
17283
15663
|
false,
|
|
17284
15664
|
null,
|
|
17285
|
-
"
|
|
15665
|
+
"1818e354",
|
|
17286
15666
|
null
|
|
17287
15667
|
|
|
17288
15668
|
)
|
|
17289
15669
|
|
|
17290
15670
|
/* harmony default export */ var FlatmapVuer = (FlatmapVuer_component.exports);
|
|
17291
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
17292
|
-
var
|
|
15671
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"52da7808-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/MultiFlatmapVuer.vue?vue&type=template&id=9bafc316&scoped=true&
|
|
15672
|
+
var MultiFlatmapVuervue_type_template_id_9bafc316_scoped_true_render = function render() {
|
|
17293
15673
|
var _vm = this,
|
|
17294
15674
|
_c = _vm._self._c;
|
|
17295
15675
|
return _c('div', {
|
|
@@ -17380,6 +15760,7 @@ var MultiFlatmapVuervue_type_template_id_0ad8a77b_scoped_true_render = function
|
|
|
17380
15760
|
"warningMessage": _vm.warningMessage,
|
|
17381
15761
|
"displayLatestChanges": item.displayLatestChanges,
|
|
17382
15762
|
"latestChangesMessage": item.latestChangesMessage,
|
|
15763
|
+
"isLegacy": item.isLegacy,
|
|
17383
15764
|
"featureInfo": _vm.featureInfo,
|
|
17384
15765
|
"minZoom": _vm.minZoom,
|
|
17385
15766
|
"pathControls": _vm.pathControls,
|
|
@@ -17391,6 +15772,7 @@ var MultiFlatmapVuervue_type_template_id_0ad8a77b_scoped_true_render = function
|
|
|
17391
15772
|
"sparcAPI": _vm.sparcAPI
|
|
17392
15773
|
},
|
|
17393
15774
|
on: {
|
|
15775
|
+
"view-latest-map": _vm.viewLatestMap,
|
|
17394
15776
|
"resource-selected": _vm.FlatmapSelected,
|
|
17395
15777
|
"ready": _vm.FlatmapReady,
|
|
17396
15778
|
"pan-zoom-callback": _vm.panZoomCallback
|
|
@@ -17398,9 +15780,9 @@ var MultiFlatmapVuervue_type_template_id_0ad8a77b_scoped_true_render = function
|
|
|
17398
15780
|
});
|
|
17399
15781
|
})], 2);
|
|
17400
15782
|
};
|
|
17401
|
-
var
|
|
15783
|
+
var MultiFlatmapVuervue_type_template_id_9bafc316_scoped_true_staticRenderFns = [];
|
|
17402
15784
|
|
|
17403
|
-
// CONCATENATED MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=template&id=
|
|
15785
|
+
// CONCATENATED MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=template&id=9bafc316&scoped=true&
|
|
17404
15786
|
|
|
17405
15787
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/theme-chalk/popover.css
|
|
17406
15788
|
var popover = __webpack_require__("06f1");
|
|
@@ -17446,6 +15828,7 @@ var es_object_keys_js_ = __webpack_require__("ea64");
|
|
|
17446
15828
|
|
|
17447
15829
|
|
|
17448
15830
|
|
|
15831
|
+
|
|
17449
15832
|
|
|
17450
15833
|
/* eslint-disable no-alert, no-console */
|
|
17451
15834
|
|
|
@@ -17459,6 +15842,13 @@ external_vue_default.a.use(lib_row_default.a);
|
|
|
17459
15842
|
external_vue_default.a.use(lib_option_default.a);
|
|
17460
15843
|
external_vue_default.a.use(lib_select_default.a);
|
|
17461
15844
|
external_vue_default.a.use(lib_popover_default.a);
|
|
15845
|
+
var TAXON_UUID = {
|
|
15846
|
+
"NCBITaxon:10114": "01fedbf9-d783-509c-a10c-827941ab13da",
|
|
15847
|
+
"NCBITaxon:9823": "a336ac04-24db-561f-a25f-1c994fe17410",
|
|
15848
|
+
"NCBITaxon:9606": "42ed6323-f645-5fbe-bada-9581819cf689",
|
|
15849
|
+
"NCBITaxon:10090": "25285fab-48a0-5620-a6a0-f9a0374837d5",
|
|
15850
|
+
"NCBITaxon:9685": "73060497-46a6-52bf-b975-cac511c127cb"
|
|
15851
|
+
};
|
|
17462
15852
|
/* harmony default export */ var MultiFlatmapVuervue_type_script_lang_js_ = ({
|
|
17463
15853
|
name: "MultiFlatmapVuer",
|
|
17464
15854
|
components: {
|
|
@@ -17479,6 +15869,8 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
17479
15869
|
return response.json();
|
|
17480
15870
|
}).then(function (data) {
|
|
17481
15871
|
_this2.speciesList = {};
|
|
15872
|
+
//Check each key in the provided availableSpecies against the one
|
|
15873
|
+
// on the server, add them to the Select if the key is found
|
|
17482
15874
|
Object.keys(_this2.availableSpecies).forEach(function (key) {
|
|
17483
15875
|
for (var i = 0; i < data.length; i++) {
|
|
17484
15876
|
if (_this2.availableSpecies[key].taxo === data[i].taxon) {
|
|
@@ -17495,6 +15887,7 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
17495
15887
|
}
|
|
17496
15888
|
});
|
|
17497
15889
|
if (!_this2.state) {
|
|
15890
|
+
//No state resuming, set the current flatmap to {this.initial}
|
|
17498
15891
|
if (_this2.initial && _this2.speciesList[_this2.initial] !== undefined) {
|
|
17499
15892
|
_this2.activeSpecies = _this2.initial;
|
|
17500
15893
|
} else {
|
|
@@ -17535,17 +15928,97 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
17535
15928
|
var map = this.getCurrentFlatmap();
|
|
17536
15929
|
map.showMarkerPopup(featureId, node, options);
|
|
17537
15930
|
},
|
|
17538
|
-
flatmapChanged: function flatmapChanged(species) {
|
|
15931
|
+
flatmapChanged: function flatmapChanged(species, viewport) {
|
|
17539
15932
|
if (this.activeSpecies != species) this.activeSpecies = species;
|
|
17540
|
-
this.$refs[this.activeSpecies][0].createFlatmap();
|
|
15933
|
+
this.$refs[this.activeSpecies][0].createFlatmap(viewport);
|
|
17541
15934
|
this.$emit('flatmapChanged', this.activeSpecies);
|
|
17542
15935
|
},
|
|
17543
15936
|
/**
|
|
17544
|
-
|
|
17545
|
-
|
|
17546
|
-
|
|
17547
|
-
|
|
17548
|
-
|
|
15937
|
+
* Function to switch to the latest existing map from
|
|
15938
|
+
* a legacy map of the same species.
|
|
15939
|
+
*
|
|
15940
|
+
* @private
|
|
15941
|
+
*/
|
|
15942
|
+
viewLatestMap: function viewLatestMap(state) {
|
|
15943
|
+
var keys = Object.keys(this.speciesList);
|
|
15944
|
+
for (var i = 0; i < keys.length; i++) {
|
|
15945
|
+
var species = this.speciesList[keys[i]];
|
|
15946
|
+
if (!species.isLegacy && species.taxo === state.entry && species.biologicalSex === state.biologicalSex) {
|
|
15947
|
+
this.flatmapChanged(keys[i], state);
|
|
15948
|
+
return;
|
|
15949
|
+
}
|
|
15950
|
+
}
|
|
15951
|
+
},
|
|
15952
|
+
createLegacyEntry: function createLegacyEntry(state, taxo, uuid) {
|
|
15953
|
+
if (uuid && taxo) {
|
|
15954
|
+
var name = "Legacy";
|
|
15955
|
+
if (state.species) {
|
|
15956
|
+
if (state.species.slice(0, 6) === "Legacy") name = state.species;else name = name + " ".concat(state.species);
|
|
15957
|
+
}
|
|
15958
|
+
this.speciesList[name] = {
|
|
15959
|
+
taxo: taxo,
|
|
15960
|
+
isLegacy: true,
|
|
15961
|
+
displayWarning: true
|
|
15962
|
+
};
|
|
15963
|
+
return {
|
|
15964
|
+
species: name,
|
|
15965
|
+
state: {
|
|
15966
|
+
entry: taxo,
|
|
15967
|
+
uuid: uuid
|
|
15968
|
+
},
|
|
15969
|
+
viewport: state.state.viewport
|
|
15970
|
+
};
|
|
15971
|
+
}
|
|
15972
|
+
},
|
|
15973
|
+
/**
|
|
15974
|
+
* Function used to translate the legacy map state to one that can be used in current
|
|
15975
|
+
* flatmap if required. If it is a legacy, an Select entry will be added
|
|
15976
|
+
*
|
|
15977
|
+
* @private
|
|
15978
|
+
*/
|
|
15979
|
+
updateState: function updateState(state) {
|
|
15980
|
+
var _this3 = this;
|
|
15981
|
+
return new Promise(function (resolve) {
|
|
15982
|
+
if (state && state.state) {
|
|
15983
|
+
var mapState = state.state;
|
|
15984
|
+
//uuid is not in the state, this is a legacy map
|
|
15985
|
+
if (!mapState.uuid) {
|
|
15986
|
+
if (mapState.entry) {
|
|
15987
|
+
var uuid = mapState.entry in TAXON_UUID ? TAXON_UUID[mapState.entry] : undefined;
|
|
15988
|
+
var newState = _this3.createLegacyEntry(state, mapState.entry, uuid);
|
|
15989
|
+
resolve(newState ? newState : state);
|
|
15990
|
+
}
|
|
15991
|
+
} else if (mapState.entry) {
|
|
15992
|
+
//uuid is in the state but should be checked if it is the latest map
|
|
15993
|
+
//for that taxon
|
|
15994
|
+
return new Promise(function () {
|
|
15995
|
+
var mapManager = new (__webpack_require__("4979").MapManager)(_this3.flatmapAPI);
|
|
15996
|
+
//mapManager.findMap_ is an async function so we need to wrap this with a promise
|
|
15997
|
+
mapManager.findMap_({
|
|
15998
|
+
taxon: mapState.entry
|
|
15999
|
+
}).then(function (map) {
|
|
16000
|
+
if (map.uuid !== mapState.uuid) {
|
|
16001
|
+
return _this3.createLegacyEntry(state, mapState.entry, mapState.uuid);
|
|
16002
|
+
}
|
|
16003
|
+
}).then(function (newState) {
|
|
16004
|
+
resolve(newState ? newState : state);
|
|
16005
|
+
}).catch(function () {
|
|
16006
|
+
resolve(state);
|
|
16007
|
+
});
|
|
16008
|
+
});
|
|
16009
|
+
}
|
|
16010
|
+
//Create a new state and add the legacy map to the select
|
|
16011
|
+
}
|
|
16012
|
+
|
|
16013
|
+
resolve(state);
|
|
16014
|
+
});
|
|
16015
|
+
},
|
|
16016
|
+
/**
|
|
16017
|
+
* Function used for getting the current states of the scene. This exported states
|
|
16018
|
+
* can be imported using the importStates method.
|
|
16019
|
+
*
|
|
16020
|
+
* @public
|
|
16021
|
+
*/
|
|
17549
16022
|
getState: function getState() {
|
|
17550
16023
|
var state = {
|
|
17551
16024
|
species: this.activeSpecies,
|
|
@@ -17562,22 +16035,27 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
17562
16035
|
* @public
|
|
17563
16036
|
*/
|
|
17564
16037
|
setState: function setState(state) {
|
|
17565
|
-
var
|
|
16038
|
+
var _this4 = this;
|
|
17566
16039
|
if (state) {
|
|
17567
16040
|
this.initialise().then(function () {
|
|
17568
|
-
|
|
17569
|
-
|
|
17570
|
-
if (
|
|
17571
|
-
|
|
17572
|
-
|
|
17573
|
-
|
|
17574
|
-
|
|
17575
|
-
|
|
16041
|
+
//Update state if required
|
|
16042
|
+
_this4.updateState(state).then(function (currentState) {
|
|
16043
|
+
if (currentState.species && currentState.species !== _this4.activeSpecies) {
|
|
16044
|
+
_this4.activeSpecies = currentState.species;
|
|
16045
|
+
if (currentState.state) {
|
|
16046
|
+
//Wait for next tick when the refs are ready for rendering
|
|
16047
|
+
_this4.$nextTick(function () {
|
|
16048
|
+
if (_this4.activeSpecies in _this4.$refs) {
|
|
16049
|
+
_this4.$refs[_this4.activeSpecies][0].createFlatmap(currentState.state);
|
|
16050
|
+
_this4.$emit('flatmapChanged', _this4.activeSpecies);
|
|
16051
|
+
}
|
|
16052
|
+
});
|
|
16053
|
+
}
|
|
16054
|
+
} else if (currentState.state) {
|
|
16055
|
+
var map = _this4.getCurrentFlatmap();
|
|
16056
|
+
map.setState(currentState.state);
|
|
17576
16057
|
}
|
|
17577
|
-
}
|
|
17578
|
-
var map = _this3.getCurrentFlatmap();
|
|
17579
|
-
map.setState(state.state);
|
|
17580
|
-
}
|
|
16058
|
+
});
|
|
17581
16059
|
});
|
|
17582
16060
|
}
|
|
17583
16061
|
},
|
|
@@ -17630,7 +16108,45 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
17630
16108
|
type: String,
|
|
17631
16109
|
default: "Beta feature - This map is based on the connectivity of a rat. New connectivity and species specificity will be added as the SPARC program progress."
|
|
17632
16110
|
},
|
|
17633
|
-
availableSpecies: {
|
|
16111
|
+
availableSpecies: {
|
|
16112
|
+
type: Object,
|
|
16113
|
+
default: function _default() {
|
|
16114
|
+
return {
|
|
16115
|
+
"Human Female": {
|
|
16116
|
+
taxo: "NCBITaxon:9606",
|
|
16117
|
+
biologicalSex: "PATO:0000383",
|
|
16118
|
+
iconClass: "mapicon-icon_human",
|
|
16119
|
+
displayWarning: true
|
|
16120
|
+
},
|
|
16121
|
+
"Human Male": {
|
|
16122
|
+
taxo: "NCBITaxon:9606",
|
|
16123
|
+
biologicalSex: "PATO:0000384",
|
|
16124
|
+
iconClass: "mapicon-icon_human",
|
|
16125
|
+
displayWarning: true
|
|
16126
|
+
},
|
|
16127
|
+
"Rat": {
|
|
16128
|
+
taxo: "NCBITaxon:10114",
|
|
16129
|
+
iconClass: "mapicon-icon_rat",
|
|
16130
|
+
displayLatestChanges: true
|
|
16131
|
+
},
|
|
16132
|
+
"Mouse": {
|
|
16133
|
+
taxo: "NCBITaxon:10090",
|
|
16134
|
+
iconClass: "mapicon-icon_mouse",
|
|
16135
|
+
displayWarning: true
|
|
16136
|
+
},
|
|
16137
|
+
"Pig": {
|
|
16138
|
+
taxo: "NCBITaxon:9823",
|
|
16139
|
+
iconClass: "mapicon-icon_pig",
|
|
16140
|
+
displayWarning: true
|
|
16141
|
+
},
|
|
16142
|
+
"Cat": {
|
|
16143
|
+
taxo: "NCBITaxon:9685",
|
|
16144
|
+
iconClass: "mapicon-icon_cat",
|
|
16145
|
+
displayWarning: true
|
|
16146
|
+
}
|
|
16147
|
+
};
|
|
16148
|
+
}
|
|
16149
|
+
},
|
|
17634
16150
|
/**
|
|
17635
16151
|
* State containing state of the flatmap.
|
|
17636
16152
|
*/
|
|
@@ -17669,8 +16185,8 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
17669
16185
|
});
|
|
17670
16186
|
// CONCATENATED MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=script&lang=js&
|
|
17671
16187
|
/* harmony default export */ var components_MultiFlatmapVuervue_type_script_lang_js_ = (MultiFlatmapVuervue_type_script_lang_js_);
|
|
17672
|
-
// EXTERNAL MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=style&index=0&id=
|
|
17673
|
-
var
|
|
16188
|
+
// EXTERNAL MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=style&index=0&id=9bafc316&prod&scoped=true&lang=scss&
|
|
16189
|
+
var MultiFlatmapVuervue_type_style_index_0_id_9bafc316_prod_scoped_true_lang_scss_ = __webpack_require__("f798");
|
|
17674
16190
|
|
|
17675
16191
|
// CONCATENATED MODULE: ./src/components/MultiFlatmapVuer.vue
|
|
17676
16192
|
|
|
@@ -17683,11 +16199,11 @@ var MultiFlatmapVuervue_type_style_index_0_id_0ad8a77b_prod_scoped_true_lang_scs
|
|
|
17683
16199
|
|
|
17684
16200
|
var MultiFlatmapVuer_component = normalizeComponent(
|
|
17685
16201
|
components_MultiFlatmapVuervue_type_script_lang_js_,
|
|
17686
|
-
|
|
17687
|
-
|
|
16202
|
+
MultiFlatmapVuervue_type_template_id_9bafc316_scoped_true_render,
|
|
16203
|
+
MultiFlatmapVuervue_type_template_id_9bafc316_scoped_true_staticRenderFns,
|
|
17688
16204
|
false,
|
|
17689
16205
|
null,
|
|
17690
|
-
"
|
|
16206
|
+
"9bafc316",
|
|
17691
16207
|
null
|
|
17692
16208
|
|
|
17693
16209
|
)
|
|
@@ -17713,13 +16229,6 @@ module.exports = require("core-js/modules/es.string.includes.js");
|
|
|
17713
16229
|
|
|
17714
16230
|
/***/ }),
|
|
17715
16231
|
|
|
17716
|
-
/***/ "fd71":
|
|
17717
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
17718
|
-
|
|
17719
|
-
// extracted by mini-css-extract-plugin
|
|
17720
|
-
|
|
17721
|
-
/***/ }),
|
|
17722
|
-
|
|
17723
16232
|
/***/ "fe07":
|
|
17724
16233
|
/***/ (function(module, exports, __webpack_require__) {
|
|
17725
16234
|
|