@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
package/dist/flatmapvuer.umd.js
CHANGED
|
@@ -103,13 +103,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
103
103
|
|
|
104
104
|
/***/ }),
|
|
105
105
|
|
|
106
|
-
/***/ "0875":
|
|
107
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
108
|
-
|
|
109
|
-
// extracted by mini-css-extract-plugin
|
|
110
|
-
|
|
111
|
-
/***/ }),
|
|
112
|
-
|
|
113
106
|
/***/ "0f6c":
|
|
114
107
|
/***/ (function(module, exports) {
|
|
115
108
|
|
|
@@ -732,13 +725,6 @@ module.exports = __webpack_require__("e62d");
|
|
|
732
725
|
|
|
733
726
|
/***/ }),
|
|
734
727
|
|
|
735
|
-
/***/ "186a":
|
|
736
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
737
|
-
|
|
738
|
-
// extracted by mini-css-extract-plugin
|
|
739
|
-
|
|
740
|
-
/***/ }),
|
|
741
|
-
|
|
742
728
|
/***/ "1951":
|
|
743
729
|
/***/ (function(module, exports, __webpack_require__) {
|
|
744
730
|
|
|
@@ -767,10 +753,10 @@ module.exports = require("core-js/modules/es.string.search.js");
|
|
|
767
753
|
|
|
768
754
|
/***/ }),
|
|
769
755
|
|
|
770
|
-
/***/ "
|
|
771
|
-
/***/ (function(module, exports) {
|
|
756
|
+
/***/ "1d77":
|
|
757
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
772
758
|
|
|
773
|
-
|
|
759
|
+
// extracted by mini-css-extract-plugin
|
|
774
760
|
|
|
775
761
|
/***/ }),
|
|
776
762
|
|
|
@@ -779,6 +765,24 @@ module.exports = require("throttle-debounce/throttle");
|
|
|
779
765
|
|
|
780
766
|
// extracted by mini-css-extract-plugin
|
|
781
767
|
|
|
768
|
+
/***/ }),
|
|
769
|
+
|
|
770
|
+
/***/ "21d1":
|
|
771
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
772
|
+
|
|
773
|
+
// extracted by mini-css-extract-plugin
|
|
774
|
+
|
|
775
|
+
/***/ }),
|
|
776
|
+
|
|
777
|
+
/***/ "233b":
|
|
778
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
779
|
+
|
|
780
|
+
"use strict";
|
|
781
|
+
/* 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");
|
|
782
|
+
/* 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__);
|
|
783
|
+
/* unused harmony reexport * */
|
|
784
|
+
|
|
785
|
+
|
|
782
786
|
/***/ }),
|
|
783
787
|
|
|
784
788
|
/***/ "2439":
|
|
@@ -916,7 +920,14 @@ module.exports = require("core-js/modules/es.symbol.iterator.js");
|
|
|
916
920
|
|
|
917
921
|
/***/ }),
|
|
918
922
|
|
|
919
|
-
/***/ "
|
|
923
|
+
/***/ "30df":
|
|
924
|
+
/***/ (function(module, exports) {
|
|
925
|
+
|
|
926
|
+
module.exports = require("core-js/modules/es.regexp.to-string.js");
|
|
927
|
+
|
|
928
|
+
/***/ }),
|
|
929
|
+
|
|
930
|
+
/***/ "3d2d":
|
|
920
931
|
/***/ (function(module, exports, __webpack_require__) {
|
|
921
932
|
|
|
922
933
|
module.exports =
|
|
@@ -1003,7 +1014,7 @@ module.exports =
|
|
|
1003
1014
|
/******/
|
|
1004
1015
|
/******/
|
|
1005
1016
|
/******/ // Load entry module and return exports
|
|
1006
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
1017
|
+
/******/ return __webpack_require__(__webpack_require__.s = 116);
|
|
1007
1018
|
/******/ })
|
|
1008
1019
|
/************************************************************************/
|
|
1009
1020
|
/******/ ({
|
|
@@ -1110,55 +1121,21 @@ function normalizeComponent (
|
|
|
1110
1121
|
|
|
1111
1122
|
/***/ }),
|
|
1112
1123
|
|
|
1113
|
-
/***/
|
|
1124
|
+
/***/ 116:
|
|
1114
1125
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1115
1126
|
|
|
1116
1127
|
"use strict";
|
|
1117
1128
|
__webpack_require__.r(__webpack_exports__);
|
|
1118
1129
|
|
|
1119
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/
|
|
1130
|
+
// 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&
|
|
1120
1131
|
var render = function() {
|
|
1121
1132
|
var _vm = this
|
|
1122
1133
|
var _h = _vm.$createElement
|
|
1123
1134
|
var _c = _vm._self._c || _h
|
|
1124
1135
|
return _c(
|
|
1125
|
-
"
|
|
1126
|
-
{
|
|
1127
|
-
|
|
1128
|
-
{
|
|
1129
|
-
name: "show",
|
|
1130
|
-
rawName: "v-show",
|
|
1131
|
-
value: _vm.ready,
|
|
1132
|
-
expression: "ready"
|
|
1133
|
-
}
|
|
1134
|
-
],
|
|
1135
|
-
staticClass: "el-carousel__item",
|
|
1136
|
-
class: {
|
|
1137
|
-
"is-active": _vm.active,
|
|
1138
|
-
"el-carousel__item--card": _vm.$parent.type === "card",
|
|
1139
|
-
"is-in-stage": _vm.inStage,
|
|
1140
|
-
"is-hover": _vm.hover,
|
|
1141
|
-
"is-animating": _vm.animating
|
|
1142
|
-
},
|
|
1143
|
-
style: _vm.itemStyle,
|
|
1144
|
-
on: { click: _vm.handleItemClick }
|
|
1145
|
-
},
|
|
1146
|
-
[
|
|
1147
|
-
_vm.$parent.type === "card"
|
|
1148
|
-
? _c("div", {
|
|
1149
|
-
directives: [
|
|
1150
|
-
{
|
|
1151
|
-
name: "show",
|
|
1152
|
-
rawName: "v-show",
|
|
1153
|
-
value: !_vm.active,
|
|
1154
|
-
expression: "!active"
|
|
1155
|
-
}
|
|
1156
|
-
],
|
|
1157
|
-
staticClass: "el-carousel__mask"
|
|
1158
|
-
})
|
|
1159
|
-
: _vm._e(),
|
|
1160
|
-
_vm._t("default")
|
|
1161
|
-
],
|
|
1136
|
+
"section",
|
|
1137
|
+
{ staticClass: "el-container", class: { "is-vertical": _vm.isVertical } },
|
|
1138
|
+
[_vm._t("default")],
|
|
1162
1139
|
2
|
|
1163
1140
|
)
|
|
1164
1141
|
}
|
|
@@ -1166,28 +1143,9 @@ var staticRenderFns = []
|
|
|
1166
1143
|
render._withStripped = true
|
|
1167
1144
|
|
|
1168
1145
|
|
|
1169
|
-
// CONCATENATED MODULE: ./packages/
|
|
1170
|
-
|
|
1171
|
-
// EXTERNAL MODULE: external "element-ui/lib/utils/util"
|
|
1172
|
-
var util_ = __webpack_require__(3);
|
|
1146
|
+
// CONCATENATED MODULE: ./packages/container/src/main.vue?vue&type=template&id=5bf181d4&
|
|
1173
1147
|
|
|
1174
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/
|
|
1175
|
-
//
|
|
1176
|
-
//
|
|
1177
|
-
//
|
|
1178
|
-
//
|
|
1179
|
-
//
|
|
1180
|
-
//
|
|
1181
|
-
//
|
|
1182
|
-
//
|
|
1183
|
-
//
|
|
1184
|
-
//
|
|
1185
|
-
//
|
|
1186
|
-
//
|
|
1187
|
-
//
|
|
1188
|
-
//
|
|
1189
|
-
//
|
|
1190
|
-
//
|
|
1148
|
+
// 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&
|
|
1191
1149
|
//
|
|
1192
1150
|
//
|
|
1193
1151
|
//
|
|
@@ -1195,121 +1153,35 @@ var util_ = __webpack_require__(3);
|
|
|
1195
1153
|
//
|
|
1196
1154
|
//
|
|
1197
1155
|
|
|
1156
|
+
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
|
1157
|
+
name: 'ElContainer',
|
|
1198
1158
|
|
|
1199
|
-
|
|
1200
|
-
/* harmony default export */ var itemvue_type_script_lang_js_ = ({
|
|
1201
|
-
name: 'ElCarouselItem',
|
|
1159
|
+
componentName: 'ElContainer',
|
|
1202
1160
|
|
|
1203
1161
|
props: {
|
|
1204
|
-
|
|
1205
|
-
label: {
|
|
1206
|
-
type: [String, Number],
|
|
1207
|
-
default: ''
|
|
1208
|
-
}
|
|
1209
|
-
},
|
|
1210
|
-
|
|
1211
|
-
data: function data() {
|
|
1212
|
-
return {
|
|
1213
|
-
hover: false,
|
|
1214
|
-
translate: 0,
|
|
1215
|
-
scale: 1,
|
|
1216
|
-
active: false,
|
|
1217
|
-
ready: false,
|
|
1218
|
-
inStage: false,
|
|
1219
|
-
animating: false
|
|
1220
|
-
};
|
|
1221
|
-
},
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
methods: {
|
|
1225
|
-
processIndex: function processIndex(index, activeIndex, length) {
|
|
1226
|
-
if (activeIndex === 0 && index === length - 1) {
|
|
1227
|
-
return -1;
|
|
1228
|
-
} else if (activeIndex === length - 1 && index === 0) {
|
|
1229
|
-
return length;
|
|
1230
|
-
} else if (index < activeIndex - 1 && activeIndex - index >= length / 2) {
|
|
1231
|
-
return length + 1;
|
|
1232
|
-
} else if (index > activeIndex + 1 && index - activeIndex >= length / 2) {
|
|
1233
|
-
return -2;
|
|
1234
|
-
}
|
|
1235
|
-
return index;
|
|
1236
|
-
},
|
|
1237
|
-
calcCardTranslate: function calcCardTranslate(index, activeIndex) {
|
|
1238
|
-
var parentWidth = this.$parent.$el.offsetWidth;
|
|
1239
|
-
if (this.inStage) {
|
|
1240
|
-
return parentWidth * ((2 - CARD_SCALE) * (index - activeIndex) + 1) / 4;
|
|
1241
|
-
} else if (index < activeIndex) {
|
|
1242
|
-
return -(1 + CARD_SCALE) * parentWidth / 4;
|
|
1243
|
-
} else {
|
|
1244
|
-
return (3 + CARD_SCALE) * parentWidth / 4;
|
|
1245
|
-
}
|
|
1246
|
-
},
|
|
1247
|
-
calcTranslate: function calcTranslate(index, activeIndex, isVertical) {
|
|
1248
|
-
var distance = this.$parent.$el[isVertical ? 'offsetHeight' : 'offsetWidth'];
|
|
1249
|
-
return distance * (index - activeIndex);
|
|
1250
|
-
},
|
|
1251
|
-
translateItem: function translateItem(index, activeIndex, oldIndex) {
|
|
1252
|
-
var parentType = this.$parent.type;
|
|
1253
|
-
var parentDirection = this.parentDirection;
|
|
1254
|
-
var length = this.$parent.items.length;
|
|
1255
|
-
if (parentType !== 'card' && oldIndex !== undefined) {
|
|
1256
|
-
this.animating = index === activeIndex || index === oldIndex;
|
|
1257
|
-
}
|
|
1258
|
-
if (index !== activeIndex && length > 2 && this.$parent.loop) {
|
|
1259
|
-
index = this.processIndex(index, activeIndex, length);
|
|
1260
|
-
}
|
|
1261
|
-
if (parentType === 'card') {
|
|
1262
|
-
if (parentDirection === 'vertical') {
|
|
1263
|
-
console.warn('[Element Warn][Carousel]vertical direction is not supported in card mode');
|
|
1264
|
-
}
|
|
1265
|
-
this.inStage = Math.round(Math.abs(index - activeIndex)) <= 1;
|
|
1266
|
-
this.active = index === activeIndex;
|
|
1267
|
-
this.translate = this.calcCardTranslate(index, activeIndex);
|
|
1268
|
-
this.scale = this.active ? 1 : CARD_SCALE;
|
|
1269
|
-
} else {
|
|
1270
|
-
this.active = index === activeIndex;
|
|
1271
|
-
var isVertical = parentDirection === 'vertical';
|
|
1272
|
-
this.translate = this.calcTranslate(index, activeIndex, isVertical);
|
|
1273
|
-
this.scale = 1;
|
|
1274
|
-
}
|
|
1275
|
-
this.ready = true;
|
|
1276
|
-
},
|
|
1277
|
-
handleItemClick: function handleItemClick() {
|
|
1278
|
-
var parent = this.$parent;
|
|
1279
|
-
if (parent && parent.type === 'card') {
|
|
1280
|
-
var index = parent.items.indexOf(this);
|
|
1281
|
-
parent.setActiveItem(index);
|
|
1282
|
-
}
|
|
1283
|
-
}
|
|
1162
|
+
direction: String
|
|
1284
1163
|
},
|
|
1285
1164
|
|
|
1286
1165
|
computed: {
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1166
|
+
isVertical: function isVertical() {
|
|
1167
|
+
if (this.direction === 'vertical') {
|
|
1168
|
+
return true;
|
|
1169
|
+
} else if (this.direction === 'horizontal') {
|
|
1170
|
+
return false;
|
|
1171
|
+
}
|
|
1172
|
+
return this.$slots && this.$slots.default ? this.$slots.default.some(function (vnode) {
|
|
1173
|
+
var tag = vnode.componentOptions && vnode.componentOptions.tag;
|
|
1174
|
+
return tag === 'el-header' || tag === 'el-footer';
|
|
1175
|
+
}) : false;
|
|
1297
1176
|
}
|
|
1298
|
-
},
|
|
1299
|
-
|
|
1300
|
-
created: function created() {
|
|
1301
|
-
this.$parent && this.$parent.updateItems();
|
|
1302
|
-
},
|
|
1303
|
-
destroyed: function destroyed() {
|
|
1304
|
-
this.$parent && this.$parent.updateItems();
|
|
1305
1177
|
}
|
|
1306
1178
|
});
|
|
1307
|
-
// CONCATENATED MODULE: ./packages/
|
|
1308
|
-
/* harmony default export */ var
|
|
1179
|
+
// CONCATENATED MODULE: ./packages/container/src/main.vue?vue&type=script&lang=js&
|
|
1180
|
+
/* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
|
|
1309
1181
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
1310
1182
|
var componentNormalizer = __webpack_require__(0);
|
|
1311
1183
|
|
|
1312
|
-
// CONCATENATED MODULE: ./packages/
|
|
1184
|
+
// CONCATENATED MODULE: ./packages/container/src/main.vue
|
|
1313
1185
|
|
|
1314
1186
|
|
|
1315
1187
|
|
|
@@ -1318,7 +1190,7 @@ var componentNormalizer = __webpack_require__(0);
|
|
|
1318
1190
|
/* normalize component */
|
|
1319
1191
|
|
|
1320
1192
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
1321
|
-
|
|
1193
|
+
src_mainvue_type_script_lang_js_,
|
|
1322
1194
|
render,
|
|
1323
1195
|
staticRenderFns,
|
|
1324
1196
|
false,
|
|
@@ -1330,24 +1202,17 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
1330
1202
|
|
|
1331
1203
|
/* hot reload */
|
|
1332
1204
|
if (false) { var api; }
|
|
1333
|
-
component.options.__file = "packages/
|
|
1334
|
-
/* harmony default export */ var
|
|
1335
|
-
// CONCATENATED MODULE: ./packages/
|
|
1205
|
+
component.options.__file = "packages/container/src/main.vue"
|
|
1206
|
+
/* harmony default export */ var main = (component.exports);
|
|
1207
|
+
// CONCATENATED MODULE: ./packages/container/index.js
|
|
1336
1208
|
|
|
1337
1209
|
|
|
1338
1210
|
/* istanbul ignore next */
|
|
1339
|
-
|
|
1340
|
-
Vue.component(
|
|
1211
|
+
main.install = function (Vue) {
|
|
1212
|
+
Vue.component(main.name, main);
|
|
1341
1213
|
};
|
|
1342
1214
|
|
|
1343
|
-
/* harmony default export */ var
|
|
1344
|
-
|
|
1345
|
-
/***/ }),
|
|
1346
|
-
|
|
1347
|
-
/***/ 3:
|
|
1348
|
-
/***/ (function(module, exports) {
|
|
1349
|
-
|
|
1350
|
-
module.exports = __webpack_require__("8122");
|
|
1215
|
+
/* harmony default export */ var container = __webpack_exports__["default"] = (main);
|
|
1351
1216
|
|
|
1352
1217
|
/***/ })
|
|
1353
1218
|
|
|
@@ -1355,329 +1220,22 @@ module.exports = __webpack_require__("8122");
|
|
|
1355
1220
|
|
|
1356
1221
|
/***/ }),
|
|
1357
1222
|
|
|
1358
|
-
/***/ "
|
|
1359
|
-
/***/ (function(module, exports) {
|
|
1223
|
+
/***/ "4010":
|
|
1224
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1360
1225
|
|
|
1361
|
-
|
|
1226
|
+
"use strict";
|
|
1362
1227
|
|
|
1363
|
-
/***/ }),
|
|
1364
1228
|
|
|
1365
|
-
|
|
1366
|
-
|
|
1229
|
+
exports.__esModule = true;
|
|
1230
|
+
exports.removeResizeListener = exports.addResizeListener = undefined;
|
|
1367
1231
|
|
|
1368
|
-
|
|
1369
|
-
/******/ (function(modules) { // webpackBootstrap
|
|
1370
|
-
/******/ // The module cache
|
|
1371
|
-
/******/ var installedModules = {};
|
|
1372
|
-
/******/
|
|
1373
|
-
/******/ // The require function
|
|
1374
|
-
/******/ function __webpack_require__(moduleId) {
|
|
1375
|
-
/******/
|
|
1376
|
-
/******/ // Check if module is in cache
|
|
1377
|
-
/******/ if(installedModules[moduleId]) {
|
|
1378
|
-
/******/ return installedModules[moduleId].exports;
|
|
1379
|
-
/******/ }
|
|
1380
|
-
/******/ // Create a new module (and put it into the cache)
|
|
1381
|
-
/******/ var module = installedModules[moduleId] = {
|
|
1382
|
-
/******/ i: moduleId,
|
|
1383
|
-
/******/ l: false,
|
|
1384
|
-
/******/ exports: {}
|
|
1385
|
-
/******/ };
|
|
1386
|
-
/******/
|
|
1387
|
-
/******/ // Execute the module function
|
|
1388
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
1389
|
-
/******/
|
|
1390
|
-
/******/ // Flag the module as loaded
|
|
1391
|
-
/******/ module.l = true;
|
|
1392
|
-
/******/
|
|
1393
|
-
/******/ // Return the exports of the module
|
|
1394
|
-
/******/ return module.exports;
|
|
1395
|
-
/******/ }
|
|
1396
|
-
/******/
|
|
1397
|
-
/******/
|
|
1398
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
1399
|
-
/******/ __webpack_require__.m = modules;
|
|
1400
|
-
/******/
|
|
1401
|
-
/******/ // expose the module cache
|
|
1402
|
-
/******/ __webpack_require__.c = installedModules;
|
|
1403
|
-
/******/
|
|
1404
|
-
/******/ // define getter function for harmony exports
|
|
1405
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
1406
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
1407
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
1408
|
-
/******/ }
|
|
1409
|
-
/******/ };
|
|
1410
|
-
/******/
|
|
1411
|
-
/******/ // define __esModule on exports
|
|
1412
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
1413
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
1414
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
1415
|
-
/******/ }
|
|
1416
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
1417
|
-
/******/ };
|
|
1418
|
-
/******/
|
|
1419
|
-
/******/ // create a fake namespace object
|
|
1420
|
-
/******/ // mode & 1: value is a module id, require it
|
|
1421
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
1422
|
-
/******/ // mode & 4: return value when already ns object
|
|
1423
|
-
/******/ // mode & 8|1: behave like require
|
|
1424
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
1425
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
1426
|
-
/******/ if(mode & 8) return value;
|
|
1427
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
1428
|
-
/******/ var ns = Object.create(null);
|
|
1429
|
-
/******/ __webpack_require__.r(ns);
|
|
1430
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
1431
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
1432
|
-
/******/ return ns;
|
|
1433
|
-
/******/ };
|
|
1434
|
-
/******/
|
|
1435
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
1436
|
-
/******/ __webpack_require__.n = function(module) {
|
|
1437
|
-
/******/ var getter = module && module.__esModule ?
|
|
1438
|
-
/******/ function getDefault() { return module['default']; } :
|
|
1439
|
-
/******/ function getModuleExports() { return module; };
|
|
1440
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
1441
|
-
/******/ return getter;
|
|
1442
|
-
/******/ };
|
|
1443
|
-
/******/
|
|
1444
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
1445
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
1446
|
-
/******/
|
|
1447
|
-
/******/ // __webpack_public_path__
|
|
1448
|
-
/******/ __webpack_require__.p = "/dist/";
|
|
1449
|
-
/******/
|
|
1450
|
-
/******/
|
|
1451
|
-
/******/ // Load entry module and return exports
|
|
1452
|
-
/******/ return __webpack_require__(__webpack_require__.s = 116);
|
|
1453
|
-
/******/ })
|
|
1454
|
-
/************************************************************************/
|
|
1455
|
-
/******/ ({
|
|
1232
|
+
var _resizeObserverPolyfill = __webpack_require__("a1cc");
|
|
1456
1233
|
|
|
1457
|
-
|
|
1458
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1234
|
+
var _resizeObserverPolyfill2 = _interopRequireDefault(_resizeObserverPolyfill);
|
|
1459
1235
|
|
|
1460
|
-
|
|
1461
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
1462
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
|
1236
|
+
var _throttleDebounce = __webpack_require__("831f");
|
|
1463
1237
|
|
|
1464
|
-
|
|
1465
|
-
// This module is a runtime utility for cleaner component module output and will
|
|
1466
|
-
// be included in the final webpack user bundle.
|
|
1467
|
-
|
|
1468
|
-
function normalizeComponent (
|
|
1469
|
-
scriptExports,
|
|
1470
|
-
render,
|
|
1471
|
-
staticRenderFns,
|
|
1472
|
-
functionalTemplate,
|
|
1473
|
-
injectStyles,
|
|
1474
|
-
scopeId,
|
|
1475
|
-
moduleIdentifier, /* server only */
|
|
1476
|
-
shadowMode /* vue-cli only */
|
|
1477
|
-
) {
|
|
1478
|
-
// Vue.extend constructor export interop
|
|
1479
|
-
var options = typeof scriptExports === 'function'
|
|
1480
|
-
? scriptExports.options
|
|
1481
|
-
: scriptExports
|
|
1482
|
-
|
|
1483
|
-
// render functions
|
|
1484
|
-
if (render) {
|
|
1485
|
-
options.render = render
|
|
1486
|
-
options.staticRenderFns = staticRenderFns
|
|
1487
|
-
options._compiled = true
|
|
1488
|
-
}
|
|
1489
|
-
|
|
1490
|
-
// functional template
|
|
1491
|
-
if (functionalTemplate) {
|
|
1492
|
-
options.functional = true
|
|
1493
|
-
}
|
|
1494
|
-
|
|
1495
|
-
// scopedId
|
|
1496
|
-
if (scopeId) {
|
|
1497
|
-
options._scopeId = 'data-v-' + scopeId
|
|
1498
|
-
}
|
|
1499
|
-
|
|
1500
|
-
var hook
|
|
1501
|
-
if (moduleIdentifier) { // server build
|
|
1502
|
-
hook = function (context) {
|
|
1503
|
-
// 2.3 injection
|
|
1504
|
-
context =
|
|
1505
|
-
context || // cached call
|
|
1506
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
1507
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
1508
|
-
// 2.2 with runInNewContext: true
|
|
1509
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
1510
|
-
context = __VUE_SSR_CONTEXT__
|
|
1511
|
-
}
|
|
1512
|
-
// inject component styles
|
|
1513
|
-
if (injectStyles) {
|
|
1514
|
-
injectStyles.call(this, context)
|
|
1515
|
-
}
|
|
1516
|
-
// register component module identifier for async chunk inferrence
|
|
1517
|
-
if (context && context._registeredComponents) {
|
|
1518
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
1519
|
-
}
|
|
1520
|
-
}
|
|
1521
|
-
// used by ssr in case component is cached and beforeCreate
|
|
1522
|
-
// never gets called
|
|
1523
|
-
options._ssrRegister = hook
|
|
1524
|
-
} else if (injectStyles) {
|
|
1525
|
-
hook = shadowMode
|
|
1526
|
-
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
|
1527
|
-
: injectStyles
|
|
1528
|
-
}
|
|
1529
|
-
|
|
1530
|
-
if (hook) {
|
|
1531
|
-
if (options.functional) {
|
|
1532
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
|
1533
|
-
// go through the normalizer
|
|
1534
|
-
options._injectStyles = hook
|
|
1535
|
-
// register for functioal component in vue file
|
|
1536
|
-
var originalRender = options.render
|
|
1537
|
-
options.render = function renderWithStyleInjection (h, context) {
|
|
1538
|
-
hook.call(context)
|
|
1539
|
-
return originalRender(h, context)
|
|
1540
|
-
}
|
|
1541
|
-
} else {
|
|
1542
|
-
// inject component registration as beforeCreate hook
|
|
1543
|
-
var existing = options.beforeCreate
|
|
1544
|
-
options.beforeCreate = existing
|
|
1545
|
-
? [].concat(existing, hook)
|
|
1546
|
-
: [hook]
|
|
1547
|
-
}
|
|
1548
|
-
}
|
|
1549
|
-
|
|
1550
|
-
return {
|
|
1551
|
-
exports: scriptExports,
|
|
1552
|
-
options: options
|
|
1553
|
-
}
|
|
1554
|
-
}
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
/***/ }),
|
|
1558
|
-
|
|
1559
|
-
/***/ 116:
|
|
1560
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1561
|
-
|
|
1562
|
-
"use strict";
|
|
1563
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1564
|
-
|
|
1565
|
-
// 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&
|
|
1566
|
-
var render = function() {
|
|
1567
|
-
var _vm = this
|
|
1568
|
-
var _h = _vm.$createElement
|
|
1569
|
-
var _c = _vm._self._c || _h
|
|
1570
|
-
return _c(
|
|
1571
|
-
"section",
|
|
1572
|
-
{ staticClass: "el-container", class: { "is-vertical": _vm.isVertical } },
|
|
1573
|
-
[_vm._t("default")],
|
|
1574
|
-
2
|
|
1575
|
-
)
|
|
1576
|
-
}
|
|
1577
|
-
var staticRenderFns = []
|
|
1578
|
-
render._withStripped = true
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
// CONCATENATED MODULE: ./packages/container/src/main.vue?vue&type=template&id=5bf181d4&
|
|
1582
|
-
|
|
1583
|
-
// 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&
|
|
1584
|
-
//
|
|
1585
|
-
//
|
|
1586
|
-
//
|
|
1587
|
-
//
|
|
1588
|
-
//
|
|
1589
|
-
//
|
|
1590
|
-
|
|
1591
|
-
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
|
1592
|
-
name: 'ElContainer',
|
|
1593
|
-
|
|
1594
|
-
componentName: 'ElContainer',
|
|
1595
|
-
|
|
1596
|
-
props: {
|
|
1597
|
-
direction: String
|
|
1598
|
-
},
|
|
1599
|
-
|
|
1600
|
-
computed: {
|
|
1601
|
-
isVertical: function isVertical() {
|
|
1602
|
-
if (this.direction === 'vertical') {
|
|
1603
|
-
return true;
|
|
1604
|
-
} else if (this.direction === 'horizontal') {
|
|
1605
|
-
return false;
|
|
1606
|
-
}
|
|
1607
|
-
return this.$slots && this.$slots.default ? this.$slots.default.some(function (vnode) {
|
|
1608
|
-
var tag = vnode.componentOptions && vnode.componentOptions.tag;
|
|
1609
|
-
return tag === 'el-header' || tag === 'el-footer';
|
|
1610
|
-
}) : false;
|
|
1611
|
-
}
|
|
1612
|
-
}
|
|
1613
|
-
});
|
|
1614
|
-
// CONCATENATED MODULE: ./packages/container/src/main.vue?vue&type=script&lang=js&
|
|
1615
|
-
/* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
|
|
1616
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
1617
|
-
var componentNormalizer = __webpack_require__(0);
|
|
1618
|
-
|
|
1619
|
-
// CONCATENATED MODULE: ./packages/container/src/main.vue
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
/* normalize component */
|
|
1626
|
-
|
|
1627
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
1628
|
-
src_mainvue_type_script_lang_js_,
|
|
1629
|
-
render,
|
|
1630
|
-
staticRenderFns,
|
|
1631
|
-
false,
|
|
1632
|
-
null,
|
|
1633
|
-
null,
|
|
1634
|
-
null
|
|
1635
|
-
|
|
1636
|
-
)
|
|
1637
|
-
|
|
1638
|
-
/* hot reload */
|
|
1639
|
-
if (false) { var api; }
|
|
1640
|
-
component.options.__file = "packages/container/src/main.vue"
|
|
1641
|
-
/* harmony default export */ var main = (component.exports);
|
|
1642
|
-
// CONCATENATED MODULE: ./packages/container/index.js
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
/* istanbul ignore next */
|
|
1646
|
-
main.install = function (Vue) {
|
|
1647
|
-
Vue.component(main.name, main);
|
|
1648
|
-
};
|
|
1649
|
-
|
|
1650
|
-
/* harmony default export */ var container = __webpack_exports__["default"] = (main);
|
|
1651
|
-
|
|
1652
|
-
/***/ })
|
|
1653
|
-
|
|
1654
|
-
/******/ });
|
|
1655
|
-
|
|
1656
|
-
/***/ }),
|
|
1657
|
-
|
|
1658
|
-
/***/ "3ec8":
|
|
1659
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1660
|
-
|
|
1661
|
-
// extracted by mini-css-extract-plugin
|
|
1662
|
-
|
|
1663
|
-
/***/ }),
|
|
1664
|
-
|
|
1665
|
-
/***/ "4010":
|
|
1666
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1667
|
-
|
|
1668
|
-
"use strict";
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
exports.__esModule = true;
|
|
1672
|
-
exports.removeResizeListener = exports.addResizeListener = undefined;
|
|
1673
|
-
|
|
1674
|
-
var _resizeObserverPolyfill = __webpack_require__("a1cc");
|
|
1675
|
-
|
|
1676
|
-
var _resizeObserverPolyfill2 = _interopRequireDefault(_resizeObserverPolyfill);
|
|
1677
|
-
|
|
1678
|
-
var _throttleDebounce = __webpack_require__("831f");
|
|
1679
|
-
|
|
1680
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1238
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1681
1239
|
|
|
1682
1240
|
var isServer = typeof window === 'undefined';
|
|
1683
1241
|
|
|
@@ -4563,13 +4121,6 @@ exports.PopupManager = _popupManager2.default;
|
|
|
4563
4121
|
|
|
4564
4122
|
/***/ }),
|
|
4565
4123
|
|
|
4566
|
-
/***/ "5538":
|
|
4567
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4568
|
-
|
|
4569
|
-
// extracted by mini-css-extract-plugin
|
|
4570
|
-
|
|
4571
|
-
/***/ }),
|
|
4572
|
-
|
|
4573
4124
|
/***/ "560b":
|
|
4574
4125
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4575
4126
|
|
|
@@ -6089,13 +5640,6 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
6089
5640
|
|
|
6090
5641
|
/***/ }),
|
|
6091
5642
|
|
|
6092
|
-
/***/ "6259":
|
|
6093
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6094
|
-
|
|
6095
|
-
// extracted by mini-css-extract-plugin
|
|
6096
|
-
|
|
6097
|
-
/***/ }),
|
|
6098
|
-
|
|
6099
5643
|
/***/ "6378":
|
|
6100
5644
|
/***/ (function(module, exports) {
|
|
6101
5645
|
|
|
@@ -7173,18 +6717,14 @@ module.exports = require("throttle-debounce/debounce");
|
|
|
7173
6717
|
|
|
7174
6718
|
/***/ }),
|
|
7175
6719
|
|
|
7176
|
-
/***/ "
|
|
7177
|
-
/***/ (function(module,
|
|
7178
|
-
|
|
7179
|
-
"use strict";
|
|
7180
|
-
/* 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");
|
|
7181
|
-
/* 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__);
|
|
7182
|
-
/* unused harmony reexport * */
|
|
6720
|
+
/***/ "7a0f":
|
|
6721
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7183
6722
|
|
|
6723
|
+
// extracted by mini-css-extract-plugin
|
|
7184
6724
|
|
|
7185
6725
|
/***/ }),
|
|
7186
6726
|
|
|
7187
|
-
/***/ "
|
|
6727
|
+
/***/ "7a9a":
|
|
7188
6728
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7189
6729
|
|
|
7190
6730
|
// extracted by mini-css-extract-plugin
|
|
@@ -8756,6 +8296,17 @@ module.exports = __webpack_require__("7f4d");
|
|
|
8756
8296
|
|
|
8757
8297
|
/******/ });
|
|
8758
8298
|
|
|
8299
|
+
/***/ }),
|
|
8300
|
+
|
|
8301
|
+
/***/ "8ab6":
|
|
8302
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
8303
|
+
|
|
8304
|
+
"use strict";
|
|
8305
|
+
/* 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");
|
|
8306
|
+
/* 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__);
|
|
8307
|
+
/* unused harmony reexport * */
|
|
8308
|
+
|
|
8309
|
+
|
|
8759
8310
|
/***/ }),
|
|
8760
8311
|
|
|
8761
8312
|
/***/ "8bbc":
|
|
@@ -9074,13 +8625,6 @@ module.exports = require("vue");
|
|
|
9074
8625
|
|
|
9075
8626
|
/***/ }),
|
|
9076
8627
|
|
|
9077
|
-
/***/ "96dc":
|
|
9078
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
9079
|
-
|
|
9080
|
-
// extracted by mini-css-extract-plugin
|
|
9081
|
-
|
|
9082
|
-
/***/ }),
|
|
9083
|
-
|
|
9084
8628
|
/***/ "97d3":
|
|
9085
8629
|
/***/ (function(module, exports) {
|
|
9086
8630
|
|
|
@@ -9109,1120 +8653,73 @@ module.exports = require("core-js/modules/es.string.iterator.js");
|
|
|
9109
8653
|
|
|
9110
8654
|
/***/ }),
|
|
9111
8655
|
|
|
9112
|
-
/***/ "
|
|
8656
|
+
/***/ "9d7e":
|
|
9113
8657
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9114
8658
|
|
|
9115
|
-
module.exports =
|
|
9116
|
-
/******/ (function(modules) { // webpackBootstrap
|
|
9117
|
-
/******/ // The module cache
|
|
9118
|
-
/******/ var installedModules = {};
|
|
9119
|
-
/******/
|
|
9120
|
-
/******/ // The require function
|
|
9121
|
-
/******/ function __webpack_require__(moduleId) {
|
|
9122
|
-
/******/
|
|
9123
|
-
/******/ // Check if module is in cache
|
|
9124
|
-
/******/ if(installedModules[moduleId]) {
|
|
9125
|
-
/******/ return installedModules[moduleId].exports;
|
|
9126
|
-
/******/ }
|
|
9127
|
-
/******/ // Create a new module (and put it into the cache)
|
|
9128
|
-
/******/ var module = installedModules[moduleId] = {
|
|
9129
|
-
/******/ i: moduleId,
|
|
9130
|
-
/******/ l: false,
|
|
9131
|
-
/******/ exports: {}
|
|
9132
|
-
/******/ };
|
|
9133
|
-
/******/
|
|
9134
|
-
/******/ // Execute the module function
|
|
9135
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
9136
|
-
/******/
|
|
9137
|
-
/******/ // Flag the module as loaded
|
|
9138
|
-
/******/ module.l = true;
|
|
9139
|
-
/******/
|
|
9140
|
-
/******/ // Return the exports of the module
|
|
9141
|
-
/******/ return module.exports;
|
|
9142
|
-
/******/ }
|
|
9143
|
-
/******/
|
|
9144
|
-
/******/
|
|
9145
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
9146
|
-
/******/ __webpack_require__.m = modules;
|
|
9147
|
-
/******/
|
|
9148
|
-
/******/ // expose the module cache
|
|
9149
|
-
/******/ __webpack_require__.c = installedModules;
|
|
9150
|
-
/******/
|
|
9151
|
-
/******/ // define getter function for harmony exports
|
|
9152
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
9153
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
9154
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
9155
|
-
/******/ }
|
|
9156
|
-
/******/ };
|
|
9157
|
-
/******/
|
|
9158
|
-
/******/ // define __esModule on exports
|
|
9159
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
9160
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
9161
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
9162
|
-
/******/ }
|
|
9163
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
9164
|
-
/******/ };
|
|
9165
|
-
/******/
|
|
9166
|
-
/******/ // create a fake namespace object
|
|
9167
|
-
/******/ // mode & 1: value is a module id, require it
|
|
9168
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
9169
|
-
/******/ // mode & 4: return value when already ns object
|
|
9170
|
-
/******/ // mode & 8|1: behave like require
|
|
9171
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
9172
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
9173
|
-
/******/ if(mode & 8) return value;
|
|
9174
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
9175
|
-
/******/ var ns = Object.create(null);
|
|
9176
|
-
/******/ __webpack_require__.r(ns);
|
|
9177
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
9178
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
9179
|
-
/******/ return ns;
|
|
9180
|
-
/******/ };
|
|
9181
|
-
/******/
|
|
9182
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
9183
|
-
/******/ __webpack_require__.n = function(module) {
|
|
9184
|
-
/******/ var getter = module && module.__esModule ?
|
|
9185
|
-
/******/ function getDefault() { return module['default']; } :
|
|
9186
|
-
/******/ function getModuleExports() { return module; };
|
|
9187
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
9188
|
-
/******/ return getter;
|
|
9189
|
-
/******/ };
|
|
9190
|
-
/******/
|
|
9191
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
9192
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
9193
|
-
/******/
|
|
9194
|
-
/******/ // __webpack_public_path__
|
|
9195
|
-
/******/ __webpack_require__.p = "/dist/";
|
|
9196
|
-
/******/
|
|
9197
|
-
/******/
|
|
9198
|
-
/******/ // Load entry module and return exports
|
|
9199
|
-
/******/ return __webpack_require__(__webpack_require__.s = 111);
|
|
9200
|
-
/******/ })
|
|
9201
|
-
/************************************************************************/
|
|
9202
|
-
/******/ ({
|
|
9203
|
-
|
|
9204
|
-
/***/ 0:
|
|
9205
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9206
|
-
|
|
9207
|
-
"use strict";
|
|
9208
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
9209
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
|
9210
|
-
|
|
9211
|
-
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
9212
|
-
// This module is a runtime utility for cleaner component module output and will
|
|
9213
|
-
// be included in the final webpack user bundle.
|
|
9214
|
-
|
|
9215
|
-
function normalizeComponent (
|
|
9216
|
-
scriptExports,
|
|
9217
|
-
render,
|
|
9218
|
-
staticRenderFns,
|
|
9219
|
-
functionalTemplate,
|
|
9220
|
-
injectStyles,
|
|
9221
|
-
scopeId,
|
|
9222
|
-
moduleIdentifier, /* server only */
|
|
9223
|
-
shadowMode /* vue-cli only */
|
|
9224
|
-
) {
|
|
9225
|
-
// Vue.extend constructor export interop
|
|
9226
|
-
var options = typeof scriptExports === 'function'
|
|
9227
|
-
? scriptExports.options
|
|
9228
|
-
: scriptExports
|
|
9229
|
-
|
|
9230
|
-
// render functions
|
|
9231
|
-
if (render) {
|
|
9232
|
-
options.render = render
|
|
9233
|
-
options.staticRenderFns = staticRenderFns
|
|
9234
|
-
options._compiled = true
|
|
9235
|
-
}
|
|
9236
|
-
|
|
9237
|
-
// functional template
|
|
9238
|
-
if (functionalTemplate) {
|
|
9239
|
-
options.functional = true
|
|
9240
|
-
}
|
|
9241
|
-
|
|
9242
|
-
// scopedId
|
|
9243
|
-
if (scopeId) {
|
|
9244
|
-
options._scopeId = 'data-v-' + scopeId
|
|
9245
|
-
}
|
|
9246
|
-
|
|
9247
|
-
var hook
|
|
9248
|
-
if (moduleIdentifier) { // server build
|
|
9249
|
-
hook = function (context) {
|
|
9250
|
-
// 2.3 injection
|
|
9251
|
-
context =
|
|
9252
|
-
context || // cached call
|
|
9253
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
9254
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
9255
|
-
// 2.2 with runInNewContext: true
|
|
9256
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
9257
|
-
context = __VUE_SSR_CONTEXT__
|
|
9258
|
-
}
|
|
9259
|
-
// inject component styles
|
|
9260
|
-
if (injectStyles) {
|
|
9261
|
-
injectStyles.call(this, context)
|
|
9262
|
-
}
|
|
9263
|
-
// register component module identifier for async chunk inferrence
|
|
9264
|
-
if (context && context._registeredComponents) {
|
|
9265
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
9266
|
-
}
|
|
9267
|
-
}
|
|
9268
|
-
// used by ssr in case component is cached and beforeCreate
|
|
9269
|
-
// never gets called
|
|
9270
|
-
options._ssrRegister = hook
|
|
9271
|
-
} else if (injectStyles) {
|
|
9272
|
-
hook = shadowMode
|
|
9273
|
-
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
|
9274
|
-
: injectStyles
|
|
9275
|
-
}
|
|
9276
|
-
|
|
9277
|
-
if (hook) {
|
|
9278
|
-
if (options.functional) {
|
|
9279
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
|
9280
|
-
// go through the normalizer
|
|
9281
|
-
options._injectStyles = hook
|
|
9282
|
-
// register for functioal component in vue file
|
|
9283
|
-
var originalRender = options.render
|
|
9284
|
-
options.render = function renderWithStyleInjection (h, context) {
|
|
9285
|
-
hook.call(context)
|
|
9286
|
-
return originalRender(h, context)
|
|
9287
|
-
}
|
|
9288
|
-
} else {
|
|
9289
|
-
// inject component registration as beforeCreate hook
|
|
9290
|
-
var existing = options.beforeCreate
|
|
9291
|
-
options.beforeCreate = existing
|
|
9292
|
-
? [].concat(existing, hook)
|
|
9293
|
-
: [hook]
|
|
9294
|
-
}
|
|
9295
|
-
}
|
|
9296
|
-
|
|
9297
|
-
return {
|
|
9298
|
-
exports: scriptExports,
|
|
9299
|
-
options: options
|
|
9300
|
-
}
|
|
9301
|
-
}
|
|
9302
|
-
|
|
9303
|
-
|
|
9304
|
-
/***/ }),
|
|
9305
|
-
|
|
9306
|
-
/***/ 111:
|
|
9307
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9308
|
-
|
|
9309
|
-
"use strict";
|
|
9310
|
-
__webpack_require__.r(__webpack_exports__);
|
|
9311
|
-
|
|
9312
|
-
// 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&
|
|
9313
|
-
var render = function() {
|
|
9314
|
-
var _vm = this
|
|
9315
|
-
var _h = _vm.$createElement
|
|
9316
|
-
var _c = _vm._self._c || _h
|
|
9317
|
-
return _c(
|
|
9318
|
-
"div",
|
|
9319
|
-
{
|
|
9320
|
-
class: _vm.carouselClasses,
|
|
9321
|
-
on: {
|
|
9322
|
-
mouseenter: function($event) {
|
|
9323
|
-
$event.stopPropagation()
|
|
9324
|
-
return _vm.handleMouseEnter($event)
|
|
9325
|
-
},
|
|
9326
|
-
mouseleave: function($event) {
|
|
9327
|
-
$event.stopPropagation()
|
|
9328
|
-
return _vm.handleMouseLeave($event)
|
|
9329
|
-
}
|
|
9330
|
-
}
|
|
9331
|
-
},
|
|
9332
|
-
[
|
|
9333
|
-
_c(
|
|
9334
|
-
"div",
|
|
9335
|
-
{
|
|
9336
|
-
staticClass: "el-carousel__container",
|
|
9337
|
-
style: { height: _vm.height }
|
|
9338
|
-
},
|
|
9339
|
-
[
|
|
9340
|
-
_vm.arrowDisplay
|
|
9341
|
-
? _c("transition", { attrs: { name: "carousel-arrow-left" } }, [
|
|
9342
|
-
_c(
|
|
9343
|
-
"button",
|
|
9344
|
-
{
|
|
9345
|
-
directives: [
|
|
9346
|
-
{
|
|
9347
|
-
name: "show",
|
|
9348
|
-
rawName: "v-show",
|
|
9349
|
-
value:
|
|
9350
|
-
(_vm.arrow === "always" || _vm.hover) &&
|
|
9351
|
-
(_vm.loop || _vm.activeIndex > 0),
|
|
9352
|
-
expression:
|
|
9353
|
-
"(arrow === 'always' || hover) && (loop || activeIndex > 0)"
|
|
9354
|
-
}
|
|
9355
|
-
],
|
|
9356
|
-
staticClass: "el-carousel__arrow el-carousel__arrow--left",
|
|
9357
|
-
attrs: { type: "button" },
|
|
9358
|
-
on: {
|
|
9359
|
-
mouseenter: function($event) {
|
|
9360
|
-
_vm.handleButtonEnter("left")
|
|
9361
|
-
},
|
|
9362
|
-
mouseleave: _vm.handleButtonLeave,
|
|
9363
|
-
click: function($event) {
|
|
9364
|
-
$event.stopPropagation()
|
|
9365
|
-
_vm.throttledArrowClick(_vm.activeIndex - 1)
|
|
9366
|
-
}
|
|
9367
|
-
}
|
|
9368
|
-
},
|
|
9369
|
-
[_c("i", { staticClass: "el-icon-arrow-left" })]
|
|
9370
|
-
)
|
|
9371
|
-
])
|
|
9372
|
-
: _vm._e(),
|
|
9373
|
-
_vm.arrowDisplay
|
|
9374
|
-
? _c("transition", { attrs: { name: "carousel-arrow-right" } }, [
|
|
9375
|
-
_c(
|
|
9376
|
-
"button",
|
|
9377
|
-
{
|
|
9378
|
-
directives: [
|
|
9379
|
-
{
|
|
9380
|
-
name: "show",
|
|
9381
|
-
rawName: "v-show",
|
|
9382
|
-
value:
|
|
9383
|
-
(_vm.arrow === "always" || _vm.hover) &&
|
|
9384
|
-
(_vm.loop || _vm.activeIndex < _vm.items.length - 1),
|
|
9385
|
-
expression:
|
|
9386
|
-
"(arrow === 'always' || hover) && (loop || activeIndex < items.length - 1)"
|
|
9387
|
-
}
|
|
9388
|
-
],
|
|
9389
|
-
staticClass: "el-carousel__arrow el-carousel__arrow--right",
|
|
9390
|
-
attrs: { type: "button" },
|
|
9391
|
-
on: {
|
|
9392
|
-
mouseenter: function($event) {
|
|
9393
|
-
_vm.handleButtonEnter("right")
|
|
9394
|
-
},
|
|
9395
|
-
mouseleave: _vm.handleButtonLeave,
|
|
9396
|
-
click: function($event) {
|
|
9397
|
-
$event.stopPropagation()
|
|
9398
|
-
_vm.throttledArrowClick(_vm.activeIndex + 1)
|
|
9399
|
-
}
|
|
9400
|
-
}
|
|
9401
|
-
},
|
|
9402
|
-
[_c("i", { staticClass: "el-icon-arrow-right" })]
|
|
9403
|
-
)
|
|
9404
|
-
])
|
|
9405
|
-
: _vm._e(),
|
|
9406
|
-
_vm._t("default")
|
|
9407
|
-
],
|
|
9408
|
-
2
|
|
9409
|
-
),
|
|
9410
|
-
_vm.indicatorPosition !== "none"
|
|
9411
|
-
? _c(
|
|
9412
|
-
"ul",
|
|
9413
|
-
{ class: _vm.indicatorsClasses },
|
|
9414
|
-
_vm._l(_vm.items, function(item, index) {
|
|
9415
|
-
return _c(
|
|
9416
|
-
"li",
|
|
9417
|
-
{
|
|
9418
|
-
key: index,
|
|
9419
|
-
class: [
|
|
9420
|
-
"el-carousel__indicator",
|
|
9421
|
-
"el-carousel__indicator--" + _vm.direction,
|
|
9422
|
-
{ "is-active": index === _vm.activeIndex }
|
|
9423
|
-
],
|
|
9424
|
-
on: {
|
|
9425
|
-
mouseenter: function($event) {
|
|
9426
|
-
_vm.throttledIndicatorHover(index)
|
|
9427
|
-
},
|
|
9428
|
-
click: function($event) {
|
|
9429
|
-
$event.stopPropagation()
|
|
9430
|
-
_vm.handleIndicatorClick(index)
|
|
9431
|
-
}
|
|
9432
|
-
}
|
|
9433
|
-
},
|
|
9434
|
-
[
|
|
9435
|
-
_c("button", { staticClass: "el-carousel__button" }, [
|
|
9436
|
-
_vm.hasLabel
|
|
9437
|
-
? _c("span", [_vm._v(_vm._s(item.label))])
|
|
9438
|
-
: _vm._e()
|
|
9439
|
-
])
|
|
9440
|
-
]
|
|
9441
|
-
)
|
|
9442
|
-
}),
|
|
9443
|
-
0
|
|
9444
|
-
)
|
|
9445
|
-
: _vm._e()
|
|
9446
|
-
]
|
|
9447
|
-
)
|
|
9448
|
-
}
|
|
9449
|
-
var staticRenderFns = []
|
|
9450
|
-
render._withStripped = true
|
|
9451
|
-
|
|
9452
|
-
|
|
9453
|
-
// CONCATENATED MODULE: ./packages/carousel/src/main.vue?vue&type=template&id=5d5d1482&
|
|
9454
|
-
|
|
9455
|
-
// EXTERNAL MODULE: external "throttle-debounce/throttle"
|
|
9456
|
-
var throttle_ = __webpack_require__(25);
|
|
9457
|
-
var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle_);
|
|
9458
|
-
|
|
9459
|
-
// EXTERNAL MODULE: external "element-ui/lib/utils/resize-event"
|
|
9460
|
-
var resize_event_ = __webpack_require__(16);
|
|
9461
|
-
|
|
9462
|
-
// 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&
|
|
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
|
-
//
|
|
9515
|
-
//
|
|
9516
|
-
//
|
|
9517
|
-
//
|
|
9518
|
-
//
|
|
9519
|
-
|
|
9520
|
-
|
|
9521
|
-
|
|
9522
|
-
|
|
9523
|
-
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
|
9524
|
-
name: 'ElCarousel',
|
|
9525
|
-
|
|
9526
|
-
props: {
|
|
9527
|
-
initialIndex: {
|
|
9528
|
-
type: Number,
|
|
9529
|
-
default: 0
|
|
9530
|
-
},
|
|
9531
|
-
height: String,
|
|
9532
|
-
trigger: {
|
|
9533
|
-
type: String,
|
|
9534
|
-
default: 'hover'
|
|
9535
|
-
},
|
|
9536
|
-
autoplay: {
|
|
9537
|
-
type: Boolean,
|
|
9538
|
-
default: true
|
|
9539
|
-
},
|
|
9540
|
-
interval: {
|
|
9541
|
-
type: Number,
|
|
9542
|
-
default: 3000
|
|
9543
|
-
},
|
|
9544
|
-
indicatorPosition: String,
|
|
9545
|
-
indicator: {
|
|
9546
|
-
type: Boolean,
|
|
9547
|
-
default: true
|
|
9548
|
-
},
|
|
9549
|
-
arrow: {
|
|
9550
|
-
type: String,
|
|
9551
|
-
default: 'hover'
|
|
9552
|
-
},
|
|
9553
|
-
type: String,
|
|
9554
|
-
loop: {
|
|
9555
|
-
type: Boolean,
|
|
9556
|
-
default: true
|
|
9557
|
-
},
|
|
9558
|
-
direction: {
|
|
9559
|
-
type: String,
|
|
9560
|
-
default: 'horizontal',
|
|
9561
|
-
validator: function validator(val) {
|
|
9562
|
-
return ['horizontal', 'vertical'].indexOf(val) !== -1;
|
|
9563
|
-
}
|
|
9564
|
-
}
|
|
9565
|
-
},
|
|
9566
|
-
|
|
9567
|
-
data: function data() {
|
|
9568
|
-
return {
|
|
9569
|
-
items: [],
|
|
9570
|
-
activeIndex: -1,
|
|
9571
|
-
containerWidth: 0,
|
|
9572
|
-
timer: null,
|
|
9573
|
-
hover: false
|
|
9574
|
-
};
|
|
9575
|
-
},
|
|
9576
|
-
|
|
9577
|
-
|
|
9578
|
-
computed: {
|
|
9579
|
-
arrowDisplay: function arrowDisplay() {
|
|
9580
|
-
return this.arrow !== 'never' && this.direction !== 'vertical';
|
|
9581
|
-
},
|
|
9582
|
-
hasLabel: function hasLabel() {
|
|
9583
|
-
return this.items.some(function (item) {
|
|
9584
|
-
return item.label.toString().length > 0;
|
|
9585
|
-
});
|
|
9586
|
-
},
|
|
9587
|
-
carouselClasses: function carouselClasses() {
|
|
9588
|
-
var classes = ['el-carousel', 'el-carousel--' + this.direction];
|
|
9589
|
-
if (this.type === 'card') {
|
|
9590
|
-
classes.push('el-carousel--card');
|
|
9591
|
-
}
|
|
9592
|
-
return classes;
|
|
9593
|
-
},
|
|
9594
|
-
indicatorsClasses: function indicatorsClasses() {
|
|
9595
|
-
var classes = ['el-carousel__indicators', 'el-carousel__indicators--' + this.direction];
|
|
9596
|
-
if (this.hasLabel) {
|
|
9597
|
-
classes.push('el-carousel__indicators--labels');
|
|
9598
|
-
}
|
|
9599
|
-
if (this.indicatorPosition === 'outside' || this.type === 'card') {
|
|
9600
|
-
classes.push('el-carousel__indicators--outside');
|
|
9601
|
-
}
|
|
9602
|
-
return classes;
|
|
9603
|
-
}
|
|
9604
|
-
},
|
|
9605
|
-
|
|
9606
|
-
watch: {
|
|
9607
|
-
items: function items(val) {
|
|
9608
|
-
if (val.length > 0) this.setActiveItem(this.initialIndex);
|
|
9609
|
-
},
|
|
9610
|
-
activeIndex: function activeIndex(val, oldVal) {
|
|
9611
|
-
this.resetItemPosition(oldVal);
|
|
9612
|
-
if (oldVal > -1) {
|
|
9613
|
-
this.$emit('change', val, oldVal);
|
|
9614
|
-
}
|
|
9615
|
-
},
|
|
9616
|
-
autoplay: function autoplay(val) {
|
|
9617
|
-
val ? this.startTimer() : this.pauseTimer();
|
|
9618
|
-
},
|
|
9619
|
-
loop: function loop() {
|
|
9620
|
-
this.setActiveItem(this.activeIndex);
|
|
9621
|
-
},
|
|
9622
|
-
interval: function interval() {
|
|
9623
|
-
this.pauseTimer();
|
|
9624
|
-
this.startTimer();
|
|
9625
|
-
}
|
|
9626
|
-
},
|
|
9627
|
-
|
|
9628
|
-
methods: {
|
|
9629
|
-
handleMouseEnter: function handleMouseEnter() {
|
|
9630
|
-
this.hover = true;
|
|
9631
|
-
this.pauseTimer();
|
|
9632
|
-
},
|
|
9633
|
-
handleMouseLeave: function handleMouseLeave() {
|
|
9634
|
-
this.hover = false;
|
|
9635
|
-
this.startTimer();
|
|
9636
|
-
},
|
|
9637
|
-
itemInStage: function itemInStage(item, index) {
|
|
9638
|
-
var length = this.items.length;
|
|
9639
|
-
if (index === length - 1 && item.inStage && this.items[0].active || item.inStage && this.items[index + 1] && this.items[index + 1].active) {
|
|
9640
|
-
return 'left';
|
|
9641
|
-
} else if (index === 0 && item.inStage && this.items[length - 1].active || item.inStage && this.items[index - 1] && this.items[index - 1].active) {
|
|
9642
|
-
return 'right';
|
|
9643
|
-
}
|
|
9644
|
-
return false;
|
|
9645
|
-
},
|
|
9646
|
-
handleButtonEnter: function handleButtonEnter(arrow) {
|
|
9647
|
-
var _this = this;
|
|
9648
|
-
|
|
9649
|
-
if (this.direction === 'vertical') return;
|
|
9650
|
-
this.items.forEach(function (item, index) {
|
|
9651
|
-
if (arrow === _this.itemInStage(item, index)) {
|
|
9652
|
-
item.hover = true;
|
|
9653
|
-
}
|
|
9654
|
-
});
|
|
9655
|
-
},
|
|
9656
|
-
handleButtonLeave: function handleButtonLeave() {
|
|
9657
|
-
if (this.direction === 'vertical') return;
|
|
9658
|
-
this.items.forEach(function (item) {
|
|
9659
|
-
item.hover = false;
|
|
9660
|
-
});
|
|
9661
|
-
},
|
|
9662
|
-
updateItems: function updateItems() {
|
|
9663
|
-
this.items = this.$children.filter(function (child) {
|
|
9664
|
-
return child.$options.name === 'ElCarouselItem';
|
|
9665
|
-
});
|
|
9666
|
-
},
|
|
9667
|
-
resetItemPosition: function resetItemPosition(oldIndex) {
|
|
9668
|
-
var _this2 = this;
|
|
9669
|
-
|
|
9670
|
-
this.items.forEach(function (item, index) {
|
|
9671
|
-
item.translateItem(index, _this2.activeIndex, oldIndex);
|
|
9672
|
-
});
|
|
9673
|
-
},
|
|
9674
|
-
playSlides: function playSlides() {
|
|
9675
|
-
if (this.activeIndex < this.items.length - 1) {
|
|
9676
|
-
this.activeIndex++;
|
|
9677
|
-
} else if (this.loop) {
|
|
9678
|
-
this.activeIndex = 0;
|
|
9679
|
-
}
|
|
9680
|
-
},
|
|
9681
|
-
pauseTimer: function pauseTimer() {
|
|
9682
|
-
if (this.timer) {
|
|
9683
|
-
clearInterval(this.timer);
|
|
9684
|
-
this.timer = null;
|
|
9685
|
-
}
|
|
9686
|
-
},
|
|
9687
|
-
startTimer: function startTimer() {
|
|
9688
|
-
if (this.interval <= 0 || !this.autoplay || this.timer) return;
|
|
9689
|
-
this.timer = setInterval(this.playSlides, this.interval);
|
|
9690
|
-
},
|
|
9691
|
-
resetTimer: function resetTimer() {
|
|
9692
|
-
this.pauseTimer();
|
|
9693
|
-
this.startTimer();
|
|
9694
|
-
},
|
|
9695
|
-
setActiveItem: function setActiveItem(index) {
|
|
9696
|
-
if (typeof index === 'string') {
|
|
9697
|
-
var filteredItems = this.items.filter(function (item) {
|
|
9698
|
-
return item.name === index;
|
|
9699
|
-
});
|
|
9700
|
-
if (filteredItems.length > 0) {
|
|
9701
|
-
index = this.items.indexOf(filteredItems[0]);
|
|
9702
|
-
}
|
|
9703
|
-
}
|
|
9704
|
-
index = Number(index);
|
|
9705
|
-
if (isNaN(index) || index !== Math.floor(index)) {
|
|
9706
|
-
console.warn('[Element Warn][Carousel]index must be an integer.');
|
|
9707
|
-
return;
|
|
9708
|
-
}
|
|
9709
|
-
var length = this.items.length;
|
|
9710
|
-
var oldIndex = this.activeIndex;
|
|
9711
|
-
if (index < 0) {
|
|
9712
|
-
this.activeIndex = this.loop ? length - 1 : 0;
|
|
9713
|
-
} else if (index >= length) {
|
|
9714
|
-
this.activeIndex = this.loop ? 0 : length - 1;
|
|
9715
|
-
} else {
|
|
9716
|
-
this.activeIndex = index;
|
|
9717
|
-
}
|
|
9718
|
-
if (oldIndex === this.activeIndex) {
|
|
9719
|
-
this.resetItemPosition(oldIndex);
|
|
9720
|
-
}
|
|
9721
|
-
this.resetTimer();
|
|
9722
|
-
},
|
|
9723
|
-
prev: function prev() {
|
|
9724
|
-
this.setActiveItem(this.activeIndex - 1);
|
|
9725
|
-
},
|
|
9726
|
-
next: function next() {
|
|
9727
|
-
this.setActiveItem(this.activeIndex + 1);
|
|
9728
|
-
},
|
|
9729
|
-
handleIndicatorClick: function handleIndicatorClick(index) {
|
|
9730
|
-
this.activeIndex = index;
|
|
9731
|
-
},
|
|
9732
|
-
handleIndicatorHover: function handleIndicatorHover(index) {
|
|
9733
|
-
if (this.trigger === 'hover' && index !== this.activeIndex) {
|
|
9734
|
-
this.activeIndex = index;
|
|
9735
|
-
}
|
|
9736
|
-
}
|
|
9737
|
-
},
|
|
9738
|
-
|
|
9739
|
-
created: function created() {
|
|
9740
|
-
var _this3 = this;
|
|
9741
|
-
|
|
9742
|
-
this.throttledArrowClick = throttle_default()(300, true, function (index) {
|
|
9743
|
-
_this3.setActiveItem(index);
|
|
9744
|
-
});
|
|
9745
|
-
this.throttledIndicatorHover = throttle_default()(300, function (index) {
|
|
9746
|
-
_this3.handleIndicatorHover(index);
|
|
9747
|
-
});
|
|
9748
|
-
},
|
|
9749
|
-
mounted: function mounted() {
|
|
9750
|
-
var _this4 = this;
|
|
9751
|
-
|
|
9752
|
-
this.updateItems();
|
|
9753
|
-
this.$nextTick(function () {
|
|
9754
|
-
Object(resize_event_["addResizeListener"])(_this4.$el, _this4.resetItemPosition);
|
|
9755
|
-
if (_this4.initialIndex < _this4.items.length && _this4.initialIndex >= 0) {
|
|
9756
|
-
_this4.activeIndex = _this4.initialIndex;
|
|
9757
|
-
}
|
|
9758
|
-
_this4.startTimer();
|
|
9759
|
-
});
|
|
9760
|
-
},
|
|
9761
|
-
beforeDestroy: function beforeDestroy() {
|
|
9762
|
-
if (this.$el) Object(resize_event_["removeResizeListener"])(this.$el, this.resetItemPosition);
|
|
9763
|
-
this.pauseTimer();
|
|
9764
|
-
}
|
|
9765
|
-
});
|
|
9766
|
-
// CONCATENATED MODULE: ./packages/carousel/src/main.vue?vue&type=script&lang=js&
|
|
9767
|
-
/* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
|
|
9768
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
9769
|
-
var componentNormalizer = __webpack_require__(0);
|
|
9770
|
-
|
|
9771
|
-
// CONCATENATED MODULE: ./packages/carousel/src/main.vue
|
|
9772
|
-
|
|
9773
|
-
|
|
9774
|
-
|
|
9775
|
-
|
|
9776
|
-
|
|
9777
|
-
/* normalize component */
|
|
9778
|
-
|
|
9779
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
9780
|
-
src_mainvue_type_script_lang_js_,
|
|
9781
|
-
render,
|
|
9782
|
-
staticRenderFns,
|
|
9783
|
-
false,
|
|
9784
|
-
null,
|
|
9785
|
-
null,
|
|
9786
|
-
null
|
|
9787
|
-
|
|
9788
|
-
)
|
|
9789
|
-
|
|
9790
|
-
/* hot reload */
|
|
9791
|
-
if (false) { var api; }
|
|
9792
|
-
component.options.__file = "packages/carousel/src/main.vue"
|
|
9793
|
-
/* harmony default export */ var main = (component.exports);
|
|
9794
|
-
// CONCATENATED MODULE: ./packages/carousel/index.js
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
/* istanbul ignore next */
|
|
9798
|
-
main.install = function (Vue) {
|
|
9799
|
-
Vue.component(main.name, main);
|
|
9800
|
-
};
|
|
9801
|
-
|
|
9802
|
-
/* harmony default export */ var carousel = __webpack_exports__["default"] = (main);
|
|
9803
|
-
|
|
9804
|
-
/***/ }),
|
|
9805
|
-
|
|
9806
|
-
/***/ 16:
|
|
9807
|
-
/***/ (function(module, exports) {
|
|
9808
|
-
|
|
9809
|
-
module.exports = __webpack_require__("4010");
|
|
9810
|
-
|
|
9811
|
-
/***/ }),
|
|
9812
|
-
|
|
9813
|
-
/***/ 25:
|
|
9814
|
-
/***/ (function(module, exports) {
|
|
9815
|
-
|
|
9816
|
-
module.exports = __webpack_require__("1e79");
|
|
9817
|
-
|
|
9818
|
-
/***/ })
|
|
9819
|
-
|
|
9820
|
-
/******/ });
|
|
9821
|
-
|
|
9822
|
-
/***/ }),
|
|
9823
|
-
|
|
9824
|
-
/***/ "9d7e":
|
|
9825
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
9826
|
-
|
|
9827
|
-
"use strict";
|
|
9828
|
-
|
|
9829
|
-
|
|
9830
|
-
exports.__esModule = true;
|
|
9831
|
-
|
|
9832
|
-
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; };
|
|
9833
|
-
|
|
9834
|
-
exports.default = function (Vue) {
|
|
9835
|
-
|
|
9836
|
-
/**
|
|
9837
|
-
* template
|
|
9838
|
-
*
|
|
9839
|
-
* @param {String} string
|
|
9840
|
-
* @param {Array} ...args
|
|
9841
|
-
* @return {String}
|
|
9842
|
-
*/
|
|
9843
|
-
|
|
9844
|
-
function template(string) {
|
|
9845
|
-
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
9846
|
-
args[_key - 1] = arguments[_key];
|
|
9847
|
-
}
|
|
9848
|
-
|
|
9849
|
-
if (args.length === 1 && _typeof(args[0]) === 'object') {
|
|
9850
|
-
args = args[0];
|
|
9851
|
-
}
|
|
9852
|
-
|
|
9853
|
-
if (!args || !args.hasOwnProperty) {
|
|
9854
|
-
args = {};
|
|
9855
|
-
}
|
|
9856
|
-
|
|
9857
|
-
return string.replace(RE_NARGS, function (match, prefix, i, index) {
|
|
9858
|
-
var result = void 0;
|
|
9859
|
-
|
|
9860
|
-
if (string[index - 1] === '{' && string[index + match.length] === '}') {
|
|
9861
|
-
return i;
|
|
9862
|
-
} else {
|
|
9863
|
-
result = (0, _util.hasOwn)(args, i) ? args[i] : null;
|
|
9864
|
-
if (result === null || result === undefined) {
|
|
9865
|
-
return '';
|
|
9866
|
-
}
|
|
9867
|
-
|
|
9868
|
-
return result;
|
|
9869
|
-
}
|
|
9870
|
-
});
|
|
9871
|
-
}
|
|
9872
|
-
|
|
9873
|
-
return template;
|
|
9874
|
-
};
|
|
9875
|
-
|
|
9876
|
-
var _util = __webpack_require__("8122");
|
|
9877
|
-
|
|
9878
|
-
var RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
|
|
9879
|
-
/**
|
|
9880
|
-
* String format template
|
|
9881
|
-
* - Inspired:
|
|
9882
|
-
* https://github.com/Matt-Esch/string-template/index.js
|
|
9883
|
-
*/
|
|
9884
|
-
|
|
9885
|
-
/***/ }),
|
|
9886
|
-
|
|
9887
|
-
/***/ "a1cc":
|
|
9888
|
-
/***/ (function(module, exports) {
|
|
9889
|
-
|
|
9890
|
-
module.exports = require("resize-observer-polyfill");
|
|
9891
|
-
|
|
9892
|
-
/***/ }),
|
|
9893
|
-
|
|
9894
|
-
/***/ "a447":
|
|
9895
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
9896
|
-
|
|
9897
|
-
module.exports =
|
|
9898
|
-
/******/ (function(modules) { // webpackBootstrap
|
|
9899
|
-
/******/ // The module cache
|
|
9900
|
-
/******/ var installedModules = {};
|
|
9901
|
-
/******/
|
|
9902
|
-
/******/ // The require function
|
|
9903
|
-
/******/ function __webpack_require__(moduleId) {
|
|
9904
|
-
/******/
|
|
9905
|
-
/******/ // Check if module is in cache
|
|
9906
|
-
/******/ if(installedModules[moduleId]) {
|
|
9907
|
-
/******/ return installedModules[moduleId].exports;
|
|
9908
|
-
/******/ }
|
|
9909
|
-
/******/ // Create a new module (and put it into the cache)
|
|
9910
|
-
/******/ var module = installedModules[moduleId] = {
|
|
9911
|
-
/******/ i: moduleId,
|
|
9912
|
-
/******/ l: false,
|
|
9913
|
-
/******/ exports: {}
|
|
9914
|
-
/******/ };
|
|
9915
|
-
/******/
|
|
9916
|
-
/******/ // Execute the module function
|
|
9917
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
9918
|
-
/******/
|
|
9919
|
-
/******/ // Flag the module as loaded
|
|
9920
|
-
/******/ module.l = true;
|
|
9921
|
-
/******/
|
|
9922
|
-
/******/ // Return the exports of the module
|
|
9923
|
-
/******/ return module.exports;
|
|
9924
|
-
/******/ }
|
|
9925
|
-
/******/
|
|
9926
|
-
/******/
|
|
9927
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
9928
|
-
/******/ __webpack_require__.m = modules;
|
|
9929
|
-
/******/
|
|
9930
|
-
/******/ // expose the module cache
|
|
9931
|
-
/******/ __webpack_require__.c = installedModules;
|
|
9932
|
-
/******/
|
|
9933
|
-
/******/ // define getter function for harmony exports
|
|
9934
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
9935
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
9936
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
9937
|
-
/******/ }
|
|
9938
|
-
/******/ };
|
|
9939
|
-
/******/
|
|
9940
|
-
/******/ // define __esModule on exports
|
|
9941
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
9942
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
9943
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
9944
|
-
/******/ }
|
|
9945
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
9946
|
-
/******/ };
|
|
9947
|
-
/******/
|
|
9948
|
-
/******/ // create a fake namespace object
|
|
9949
|
-
/******/ // mode & 1: value is a module id, require it
|
|
9950
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
9951
|
-
/******/ // mode & 4: return value when already ns object
|
|
9952
|
-
/******/ // mode & 8|1: behave like require
|
|
9953
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
9954
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
9955
|
-
/******/ if(mode & 8) return value;
|
|
9956
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
9957
|
-
/******/ var ns = Object.create(null);
|
|
9958
|
-
/******/ __webpack_require__.r(ns);
|
|
9959
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
9960
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
9961
|
-
/******/ return ns;
|
|
9962
|
-
/******/ };
|
|
9963
|
-
/******/
|
|
9964
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
9965
|
-
/******/ __webpack_require__.n = function(module) {
|
|
9966
|
-
/******/ var getter = module && module.__esModule ?
|
|
9967
|
-
/******/ function getDefault() { return module['default']; } :
|
|
9968
|
-
/******/ function getModuleExports() { return module; };
|
|
9969
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
9970
|
-
/******/ return getter;
|
|
9971
|
-
/******/ };
|
|
9972
|
-
/******/
|
|
9973
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
9974
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
9975
|
-
/******/
|
|
9976
|
-
/******/ // __webpack_public_path__
|
|
9977
|
-
/******/ __webpack_require__.p = "/dist/";
|
|
9978
|
-
/******/
|
|
9979
|
-
/******/
|
|
9980
|
-
/******/ // Load entry module and return exports
|
|
9981
|
-
/******/ return __webpack_require__(__webpack_require__.s = 122);
|
|
9982
|
-
/******/ })
|
|
9983
|
-
/************************************************************************/
|
|
9984
|
-
/******/ ({
|
|
9985
|
-
|
|
9986
|
-
/***/ 0:
|
|
9987
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9988
|
-
|
|
9989
8659
|
"use strict";
|
|
9990
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
9991
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
|
9992
8660
|
|
|
9993
|
-
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
9994
|
-
// This module is a runtime utility for cleaner component module output and will
|
|
9995
|
-
// be included in the final webpack user bundle.
|
|
9996
8661
|
|
|
9997
|
-
|
|
9998
|
-
scriptExports,
|
|
9999
|
-
render,
|
|
10000
|
-
staticRenderFns,
|
|
10001
|
-
functionalTemplate,
|
|
10002
|
-
injectStyles,
|
|
10003
|
-
scopeId,
|
|
10004
|
-
moduleIdentifier, /* server only */
|
|
10005
|
-
shadowMode /* vue-cli only */
|
|
10006
|
-
) {
|
|
10007
|
-
// Vue.extend constructor export interop
|
|
10008
|
-
var options = typeof scriptExports === 'function'
|
|
10009
|
-
? scriptExports.options
|
|
10010
|
-
: scriptExports
|
|
8662
|
+
exports.__esModule = true;
|
|
10011
8663
|
|
|
10012
|
-
|
|
10013
|
-
if (render) {
|
|
10014
|
-
options.render = render
|
|
10015
|
-
options.staticRenderFns = staticRenderFns
|
|
10016
|
-
options._compiled = true
|
|
10017
|
-
}
|
|
8664
|
+
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; };
|
|
10018
8665
|
|
|
10019
|
-
|
|
10020
|
-
if (functionalTemplate) {
|
|
10021
|
-
options.functional = true
|
|
10022
|
-
}
|
|
8666
|
+
exports.default = function (Vue) {
|
|
10023
8667
|
|
|
10024
|
-
|
|
10025
|
-
|
|
10026
|
-
|
|
10027
|
-
|
|
8668
|
+
/**
|
|
8669
|
+
* template
|
|
8670
|
+
*
|
|
8671
|
+
* @param {String} string
|
|
8672
|
+
* @param {Array} ...args
|
|
8673
|
+
* @return {String}
|
|
8674
|
+
*/
|
|
10028
8675
|
|
|
10029
|
-
|
|
10030
|
-
|
|
10031
|
-
|
|
10032
|
-
// 2.3 injection
|
|
10033
|
-
context =
|
|
10034
|
-
context || // cached call
|
|
10035
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
10036
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
10037
|
-
// 2.2 with runInNewContext: true
|
|
10038
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
10039
|
-
context = __VUE_SSR_CONTEXT__
|
|
10040
|
-
}
|
|
10041
|
-
// inject component styles
|
|
10042
|
-
if (injectStyles) {
|
|
10043
|
-
injectStyles.call(this, context)
|
|
10044
|
-
}
|
|
10045
|
-
// register component module identifier for async chunk inferrence
|
|
10046
|
-
if (context && context._registeredComponents) {
|
|
10047
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
10048
|
-
}
|
|
8676
|
+
function template(string) {
|
|
8677
|
+
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
8678
|
+
args[_key - 1] = arguments[_key];
|
|
10049
8679
|
}
|
|
10050
|
-
// used by ssr in case component is cached and beforeCreate
|
|
10051
|
-
// never gets called
|
|
10052
|
-
options._ssrRegister = hook
|
|
10053
|
-
} else if (injectStyles) {
|
|
10054
|
-
hook = shadowMode
|
|
10055
|
-
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
|
10056
|
-
: injectStyles
|
|
10057
|
-
}
|
|
10058
8680
|
|
|
10059
|
-
|
|
10060
|
-
|
|
10061
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
|
10062
|
-
// go through the normalizer
|
|
10063
|
-
options._injectStyles = hook
|
|
10064
|
-
// register for functioal component in vue file
|
|
10065
|
-
var originalRender = options.render
|
|
10066
|
-
options.render = function renderWithStyleInjection (h, context) {
|
|
10067
|
-
hook.call(context)
|
|
10068
|
-
return originalRender(h, context)
|
|
10069
|
-
}
|
|
10070
|
-
} else {
|
|
10071
|
-
// inject component registration as beforeCreate hook
|
|
10072
|
-
var existing = options.beforeCreate
|
|
10073
|
-
options.beforeCreate = existing
|
|
10074
|
-
? [].concat(existing, hook)
|
|
10075
|
-
: [hook]
|
|
8681
|
+
if (args.length === 1 && _typeof(args[0]) === 'object') {
|
|
8682
|
+
args = args[0];
|
|
10076
8683
|
}
|
|
10077
|
-
}
|
|
10078
|
-
|
|
10079
|
-
return {
|
|
10080
|
-
exports: scriptExports,
|
|
10081
|
-
options: options
|
|
10082
|
-
}
|
|
10083
|
-
}
|
|
10084
|
-
|
|
10085
|
-
|
|
10086
|
-
/***/ }),
|
|
10087
|
-
|
|
10088
|
-
/***/ 122:
|
|
10089
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10090
|
-
|
|
10091
|
-
"use strict";
|
|
10092
|
-
__webpack_require__.r(__webpack_exports__);
|
|
10093
|
-
|
|
10094
|
-
// 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&
|
|
10095
|
-
var render = function() {
|
|
10096
|
-
var _vm = this
|
|
10097
|
-
var _h = _vm.$createElement
|
|
10098
|
-
var _c = _vm._self._c || _h
|
|
10099
|
-
return _c(
|
|
10100
|
-
"a",
|
|
10101
|
-
_vm._b(
|
|
10102
|
-
{
|
|
10103
|
-
class: [
|
|
10104
|
-
"el-link",
|
|
10105
|
-
_vm.type ? "el-link--" + _vm.type : "",
|
|
10106
|
-
_vm.disabled && "is-disabled",
|
|
10107
|
-
_vm.underline && !_vm.disabled && "is-underline"
|
|
10108
|
-
],
|
|
10109
|
-
attrs: { href: _vm.disabled ? null : _vm.href },
|
|
10110
|
-
on: { click: _vm.handleClick }
|
|
10111
|
-
},
|
|
10112
|
-
"a",
|
|
10113
|
-
_vm.$attrs,
|
|
10114
|
-
false
|
|
10115
|
-
),
|
|
10116
|
-
[
|
|
10117
|
-
_vm.icon ? _c("i", { class: _vm.icon }) : _vm._e(),
|
|
10118
|
-
_vm.$slots.default
|
|
10119
|
-
? _c("span", { staticClass: "el-link--inner" }, [_vm._t("default")], 2)
|
|
10120
|
-
: _vm._e(),
|
|
10121
|
-
_vm.$slots.icon ? [_vm.$slots.icon ? _vm._t("icon") : _vm._e()] : _vm._e()
|
|
10122
|
-
],
|
|
10123
|
-
2
|
|
10124
|
-
)
|
|
10125
|
-
}
|
|
10126
|
-
var staticRenderFns = []
|
|
10127
|
-
render._withStripped = true
|
|
10128
|
-
|
|
10129
|
-
|
|
10130
|
-
// CONCATENATED MODULE: ./packages/link/src/main.vue?vue&type=template&id=01cf3b65&
|
|
10131
|
-
|
|
10132
|
-
// 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&
|
|
10133
|
-
//
|
|
10134
|
-
//
|
|
10135
|
-
//
|
|
10136
|
-
//
|
|
10137
|
-
//
|
|
10138
|
-
//
|
|
10139
|
-
//
|
|
10140
|
-
//
|
|
10141
|
-
//
|
|
10142
|
-
//
|
|
10143
|
-
//
|
|
10144
|
-
//
|
|
10145
|
-
//
|
|
10146
|
-
//
|
|
10147
|
-
//
|
|
10148
|
-
//
|
|
10149
|
-
//
|
|
10150
|
-
//
|
|
10151
|
-
//
|
|
10152
|
-
//
|
|
10153
|
-
//
|
|
10154
|
-
//
|
|
10155
|
-
//
|
|
10156
8684
|
|
|
8685
|
+
if (!args || !args.hasOwnProperty) {
|
|
8686
|
+
args = {};
|
|
8687
|
+
}
|
|
10157
8688
|
|
|
10158
|
-
|
|
10159
|
-
|
|
10160
|
-
|
|
10161
|
-
props: {
|
|
10162
|
-
type: {
|
|
10163
|
-
type: String,
|
|
10164
|
-
default: 'default'
|
|
10165
|
-
},
|
|
10166
|
-
underline: {
|
|
10167
|
-
type: Boolean,
|
|
10168
|
-
default: true
|
|
10169
|
-
},
|
|
10170
|
-
disabled: Boolean,
|
|
10171
|
-
href: String,
|
|
10172
|
-
icon: String
|
|
10173
|
-
},
|
|
8689
|
+
return string.replace(RE_NARGS, function (match, prefix, i, index) {
|
|
8690
|
+
var result = void 0;
|
|
10174
8691
|
|
|
10175
|
-
|
|
10176
|
-
|
|
10177
|
-
|
|
10178
|
-
|
|
10179
|
-
|
|
8692
|
+
if (string[index - 1] === '{' && string[index + match.length] === '}') {
|
|
8693
|
+
return i;
|
|
8694
|
+
} else {
|
|
8695
|
+
result = (0, _util.hasOwn)(args, i) ? args[i] : null;
|
|
8696
|
+
if (result === null || result === undefined) {
|
|
8697
|
+
return '';
|
|
10180
8698
|
}
|
|
8699
|
+
|
|
8700
|
+
return result;
|
|
10181
8701
|
}
|
|
10182
|
-
}
|
|
8702
|
+
});
|
|
10183
8703
|
}
|
|
10184
|
-
});
|
|
10185
|
-
// CONCATENATED MODULE: ./packages/link/src/main.vue?vue&type=script&lang=js&
|
|
10186
|
-
/* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
|
|
10187
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
10188
|
-
var componentNormalizer = __webpack_require__(0);
|
|
10189
|
-
|
|
10190
|
-
// CONCATENATED MODULE: ./packages/link/src/main.vue
|
|
10191
|
-
|
|
10192
|
-
|
|
10193
|
-
|
|
10194
|
-
|
|
10195
|
-
|
|
10196
|
-
/* normalize component */
|
|
10197
|
-
|
|
10198
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
10199
|
-
src_mainvue_type_script_lang_js_,
|
|
10200
|
-
render,
|
|
10201
|
-
staticRenderFns,
|
|
10202
|
-
false,
|
|
10203
|
-
null,
|
|
10204
|
-
null,
|
|
10205
|
-
null
|
|
10206
|
-
|
|
10207
|
-
)
|
|
10208
8704
|
|
|
10209
|
-
|
|
10210
|
-
|
|
10211
|
-
component.options.__file = "packages/link/src/main.vue"
|
|
10212
|
-
/* harmony default export */ var main = (component.exports);
|
|
10213
|
-
// CONCATENATED MODULE: ./packages/link/index.js
|
|
8705
|
+
return template;
|
|
8706
|
+
};
|
|
10214
8707
|
|
|
8708
|
+
var _util = __webpack_require__("8122");
|
|
10215
8709
|
|
|
10216
|
-
|
|
10217
|
-
|
|
10218
|
-
|
|
10219
|
-
|
|
8710
|
+
var RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
|
|
8711
|
+
/**
|
|
8712
|
+
* String format template
|
|
8713
|
+
* - Inspired:
|
|
8714
|
+
* https://github.com/Matt-Esch/string-template/index.js
|
|
8715
|
+
*/
|
|
10220
8716
|
|
|
10221
|
-
|
|
8717
|
+
/***/ }),
|
|
10222
8718
|
|
|
10223
|
-
/***/
|
|
8719
|
+
/***/ "a1cc":
|
|
8720
|
+
/***/ (function(module, exports) {
|
|
10224
8721
|
|
|
10225
|
-
|
|
8722
|
+
module.exports = require("resize-observer-polyfill");
|
|
10226
8723
|
|
|
10227
8724
|
/***/ }),
|
|
10228
8725
|
|
|
@@ -10588,17 +9085,6 @@ module.exports = require("core-js/modules/es.json.stringify.js");
|
|
|
10588
9085
|
|
|
10589
9086
|
module.exports = require("css-element-queries/src/ResizeSensor");
|
|
10590
9087
|
|
|
10591
|
-
/***/ }),
|
|
10592
|
-
|
|
10593
|
-
/***/ "b1da":
|
|
10594
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10595
|
-
|
|
10596
|
-
"use strict";
|
|
10597
|
-
/* 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");
|
|
10598
|
-
/* 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__);
|
|
10599
|
-
/* unused harmony reexport * */
|
|
10600
|
-
|
|
10601
|
-
|
|
10602
9088
|
/***/ }),
|
|
10603
9089
|
|
|
10604
9090
|
/***/ "b2d6":
|
|
@@ -10727,36 +9213,36 @@ exports.default = {
|
|
|
10727
9213
|
cancelButtonText: 'No'
|
|
10728
9214
|
},
|
|
10729
9215
|
empty: {
|
|
10730
|
-
description: 'No Data'
|
|
10731
|
-
}
|
|
10732
|
-
}
|
|
10733
|
-
};
|
|
10734
|
-
|
|
10735
|
-
/***/ }),
|
|
10736
|
-
|
|
10737
|
-
/***/ "b5d8":
|
|
10738
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
10739
|
-
|
|
10740
|
-
// extracted by mini-css-extract-plugin
|
|
9216
|
+
description: 'No Data'
|
|
9217
|
+
}
|
|
9218
|
+
}
|
|
9219
|
+
};
|
|
10741
9220
|
|
|
10742
9221
|
/***/ }),
|
|
10743
9222
|
|
|
10744
|
-
/***/ "
|
|
9223
|
+
/***/ "b5d8":
|
|
10745
9224
|
/***/ (function(module, exports, __webpack_require__) {
|
|
10746
9225
|
|
|
10747
9226
|
// extracted by mini-css-extract-plugin
|
|
10748
9227
|
|
|
10749
9228
|
/***/ }),
|
|
10750
9229
|
|
|
10751
|
-
/***/ "
|
|
9230
|
+
/***/ "b64b":
|
|
10752
9231
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10753
9232
|
|
|
10754
9233
|
"use strict";
|
|
10755
|
-
/* harmony import */ var
|
|
10756
|
-
/* harmony import */ var
|
|
9234
|
+
/* 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");
|
|
9235
|
+
/* 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__);
|
|
10757
9236
|
/* unused harmony reexport * */
|
|
10758
9237
|
|
|
10759
9238
|
|
|
9239
|
+
/***/ }),
|
|
9240
|
+
|
|
9241
|
+
/***/ "be4f":
|
|
9242
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
9243
|
+
|
|
9244
|
+
// extracted by mini-css-extract-plugin
|
|
9245
|
+
|
|
10760
9246
|
/***/ }),
|
|
10761
9247
|
|
|
10762
9248
|
/***/ "c2cc":
|
|
@@ -11326,17 +9812,6 @@ function isKorean(text) {
|
|
|
11326
9812
|
return reg.test(text);
|
|
11327
9813
|
}
|
|
11328
9814
|
|
|
11329
|
-
/***/ }),
|
|
11330
|
-
|
|
11331
|
-
/***/ "d3ec":
|
|
11332
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11333
|
-
|
|
11334
|
-
"use strict";
|
|
11335
|
-
/* 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");
|
|
11336
|
-
/* 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__);
|
|
11337
|
-
/* unused harmony reexport * */
|
|
11338
|
-
|
|
11339
|
-
|
|
11340
9815
|
/***/ }),
|
|
11341
9816
|
|
|
11342
9817
|
/***/ "d4df":
|
|
@@ -12013,6 +10488,13 @@ src_checkbox.install = function (Vue) {
|
|
|
12013
10488
|
|
|
12014
10489
|
/***/ }),
|
|
12015
10490
|
|
|
10491
|
+
/***/ "e26d":
|
|
10492
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
10493
|
+
|
|
10494
|
+
// extracted by mini-css-extract-plugin
|
|
10495
|
+
|
|
10496
|
+
/***/ }),
|
|
10497
|
+
|
|
12016
10498
|
/***/ "e62d":
|
|
12017
10499
|
/***/ (function(module, exports, __webpack_require__) {
|
|
12018
10500
|
|
|
@@ -14774,6 +13256,17 @@ src_radio.install = function (Vue) {
|
|
|
14774
13256
|
|
|
14775
13257
|
// extracted by mini-css-extract-plugin
|
|
14776
13258
|
|
|
13259
|
+
/***/ }),
|
|
13260
|
+
|
|
13261
|
+
/***/ "f798":
|
|
13262
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
13263
|
+
|
|
13264
|
+
"use strict";
|
|
13265
|
+
/* 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");
|
|
13266
|
+
/* 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__);
|
|
13267
|
+
/* unused harmony reexport * */
|
|
13268
|
+
|
|
13269
|
+
|
|
14777
13270
|
/***/ }),
|
|
14778
13271
|
|
|
14779
13272
|
/***/ "f989":
|
|
@@ -14818,7 +13311,7 @@ if (typeof window !== 'undefined') {
|
|
|
14818
13311
|
// Indicate to webpack that this file can be concatenated
|
|
14819
13312
|
/* harmony default export */ var setPublicPath = (null);
|
|
14820
13313
|
|
|
14821
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
13314
|
+
// 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&
|
|
14822
13315
|
var render = function render() {
|
|
14823
13316
|
var _vm = this,
|
|
14824
13317
|
_c = _vm._self._c;
|
|
@@ -14853,7 +13346,7 @@ var render = function render() {
|
|
|
14853
13346
|
}, [_c('div', [_c('el-popover', {
|
|
14854
13347
|
ref: "warningPopover",
|
|
14855
13348
|
attrs: {
|
|
14856
|
-
"content": _vm.warningMessage,
|
|
13349
|
+
"content": _vm.isLegacy ? 'This is a legacy map, you may view the latest map instead.' : _vm.warningMessage,
|
|
14857
13350
|
"placement": "right",
|
|
14858
13351
|
"appendToBody": false,
|
|
14859
13352
|
"trigger": "manual",
|
|
@@ -14881,9 +13374,16 @@ var render = function render() {
|
|
|
14881
13374
|
return _vm.hideToolitip(6);
|
|
14882
13375
|
}
|
|
14883
13376
|
}
|
|
14884
|
-
}, [_c('span', {
|
|
13377
|
+
}, [_vm.isLegacy ? [_c('span', {
|
|
14885
13378
|
staticClass: "warning-text"
|
|
14886
|
-
}, [_vm._v("
|
|
13379
|
+
}, [_vm._v("Legacy Map")]), _c('div', {
|
|
13380
|
+
staticClass: "latest-map-text",
|
|
13381
|
+
on: {
|
|
13382
|
+
"click": _vm.viewLatestMap
|
|
13383
|
+
}
|
|
13384
|
+
}, [_vm._v("Click here for the latest map")])] : [_c('span', {
|
|
13385
|
+
staticClass: "warning-text"
|
|
13386
|
+
}, [_vm._v("Beta")])]], 2) : _vm._e()], 1), _vm.displayLatestChanges ? _c('el-popover', {
|
|
14887
13387
|
ref: "latestChangesPopover",
|
|
14888
13388
|
attrs: {
|
|
14889
13389
|
"content": _vm.latestChangesMessage,
|
|
@@ -15282,7 +13782,7 @@ var render = function render() {
|
|
|
15282
13782
|
};
|
|
15283
13783
|
var staticRenderFns = [];
|
|
15284
13784
|
|
|
15285
|
-
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=template&id=
|
|
13785
|
+
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=template&id=1818e354&scoped=true&
|
|
15286
13786
|
|
|
15287
13787
|
// EXTERNAL MODULE: external "core-js/modules/es.symbol.js"
|
|
15288
13788
|
var es_symbol_js_ = __webpack_require__("9b22");
|
|
@@ -15489,8 +13989,8 @@ var es_number_constructor_js_ = __webpack_require__("f989");
|
|
|
15489
13989
|
var external_vue_ = __webpack_require__("8bbf");
|
|
15490
13990
|
var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
|
|
15491
13991
|
|
|
15492
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
15493
|
-
var
|
|
13992
|
+
// 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&
|
|
13993
|
+
var Tooltipvue_type_template_id_6d6dee76_scoped_true_render = function render() {
|
|
15494
13994
|
var _vm = this,
|
|
15495
13995
|
_c = _vm._self._c;
|
|
15496
13996
|
return _c('div', {
|
|
@@ -15513,21 +14013,7 @@ var Tooltipvue_type_template_id_4a14f4de_scoped_true_render = function render()
|
|
|
15513
14013
|
staticClass: "title"
|
|
15514
14014
|
}, [_vm._v(_vm._s(_vm.content.featureId))])]), _c('div', {
|
|
15515
14015
|
staticClass: "content-container scrollbar"
|
|
15516
|
-
}, [_vm.content.
|
|
15517
|
-
directives: [{
|
|
15518
|
-
name: "show",
|
|
15519
|
-
rawName: "v-show",
|
|
15520
|
-
value: false,
|
|
15521
|
-
expression: "false"
|
|
15522
|
-
}],
|
|
15523
|
-
staticClass: "block",
|
|
15524
|
-
attrs: {
|
|
15525
|
-
"entry": _vm.content
|
|
15526
|
-
},
|
|
15527
|
-
on: {
|
|
15528
|
-
"pubmedSearchUrl": _vm.pubmedSearchUrlUpdate
|
|
15529
|
-
}
|
|
15530
|
-
}) : _vm._e(), _vm._v(" " + _vm._s(_vm.content.paths) + " "), this.origins ? _c('div', {
|
|
14016
|
+
}, [_vm._v(" " + _vm._s(_vm.content.paths) + " "), this.origins ? _c('div', {
|
|
15531
14017
|
staticClass: "block"
|
|
15532
14018
|
}, [_c('div', [_c('span', {
|
|
15533
14019
|
staticClass: "attribute-title"
|
|
@@ -15627,7 +14113,20 @@ var Tooltipvue_type_template_id_4a14f4de_scoped_true_render = function render()
|
|
|
15627
14113
|
on: {
|
|
15628
14114
|
"click": _vm.openAll
|
|
15629
14115
|
}
|
|
15630
|
-
}, [_vm._v(" Search for data on components ")]), _vm.
|
|
14116
|
+
}, [_vm._v(" Search for data on components ")]), _vm.content.featureIds ? _c('pubmed-viewer', {
|
|
14117
|
+
directives: [{
|
|
14118
|
+
name: "show",
|
|
14119
|
+
rawName: "v-show",
|
|
14120
|
+
value: false,
|
|
14121
|
+
expression: "false"
|
|
14122
|
+
}],
|
|
14123
|
+
attrs: {
|
|
14124
|
+
"entry": _vm.content
|
|
14125
|
+
},
|
|
14126
|
+
on: {
|
|
14127
|
+
"pubmedSearchUrl": _vm.pubmedSearchUrlUpdate
|
|
14128
|
+
}
|
|
14129
|
+
}) : _vm._e(), _vm.pubmedSearchUrl != '' ? _c('el-button', {
|
|
15631
14130
|
staticClass: "button",
|
|
15632
14131
|
attrs: {
|
|
15633
14132
|
"icon": "el-icon-notebook-2"
|
|
@@ -15639,9 +14138,9 @@ var Tooltipvue_type_template_id_4a14f4de_scoped_true_render = function render()
|
|
|
15639
14138
|
}
|
|
15640
14139
|
}, [_vm._v(" Open publications in pubmed ")]) : _vm._e()], 1)]) : _vm._e()], 1);
|
|
15641
14140
|
};
|
|
15642
|
-
var
|
|
14141
|
+
var Tooltipvue_type_template_id_6d6dee76_scoped_true_staticRenderFns = [];
|
|
15643
14142
|
|
|
15644
|
-
// CONCATENATED MODULE: ./src/components/Tooltip.vue?vue&type=template&id=
|
|
14143
|
+
// CONCATENATED MODULE: ./src/components/Tooltip.vue?vue&type=template&id=6d6dee76&scoped=true&
|
|
15645
14144
|
|
|
15646
14145
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
15647
14146
|
|
|
@@ -15737,127 +14236,17 @@ var en_default = /*#__PURE__*/__webpack_require__.n(en);
|
|
|
15737
14236
|
var locale = __webpack_require__("4897");
|
|
15738
14237
|
var locale_default = /*#__PURE__*/__webpack_require__.n(locale);
|
|
15739
14238
|
|
|
15740
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
15741
|
-
var
|
|
14239
|
+
// 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&
|
|
14240
|
+
var PubmedViewervue_type_template_id_58832c92_scoped_true_render = function render() {
|
|
15742
14241
|
var _vm = this,
|
|
15743
14242
|
_c = _vm._self._c;
|
|
15744
14243
|
return _c('div', {
|
|
15745
14244
|
staticClass: "pubmed-container"
|
|
15746
|
-
}
|
|
15747
|
-
directives: [{
|
|
15748
|
-
name: "loading",
|
|
15749
|
-
rawName: "v-loading",
|
|
15750
|
-
value: _vm.loading.response,
|
|
15751
|
-
expression: "loading.response"
|
|
15752
|
-
}],
|
|
15753
|
-
staticClass: "block"
|
|
15754
|
-
}, [_c('div', {
|
|
15755
|
-
staticClass: "attribute-title"
|
|
15756
|
-
}, [_vm._v("Pubmed Resources")]), _c('br'), _c('el-carousel', {
|
|
15757
|
-
attrs: {
|
|
15758
|
-
"autoplay": false,
|
|
15759
|
-
"indicator-position": "outside",
|
|
15760
|
-
"height": "250px",
|
|
15761
|
-
"width": "200px"
|
|
15762
|
-
}
|
|
15763
|
-
}, _vm._l(_vm.pubmeds, function (pub, i) {
|
|
15764
|
-
return _c('el-carousel-item', {
|
|
15765
|
-
key: i
|
|
15766
|
-
}, [_c('div', {
|
|
15767
|
-
staticClass: "attribute-content"
|
|
15768
|
-
}, [_c('div', {
|
|
15769
|
-
domProps: {
|
|
15770
|
-
"innerHTML": _vm._s(pub.html)
|
|
15771
|
-
}
|
|
15772
|
-
}), _c('el-link', {
|
|
15773
|
-
staticClass: "el-link",
|
|
15774
|
-
attrs: {
|
|
15775
|
-
"href": pub.url,
|
|
15776
|
-
"underline": false,
|
|
15777
|
-
"target": "_blank"
|
|
15778
|
-
}
|
|
15779
|
-
}, [_vm._v(_vm._s(pub.url))])], 1)]);
|
|
15780
|
-
}), 1)], 1)]);
|
|
14245
|
+
});
|
|
15781
14246
|
};
|
|
15782
|
-
var
|
|
15783
|
-
|
|
15784
|
-
// CONCATENATED MODULE: ./src/components/PubmedViewer.vue?vue&type=template&id=aae60614&scoped=true&
|
|
15785
|
-
|
|
15786
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
15787
|
-
function _arrayWithHoles(arr) {
|
|
15788
|
-
if (Array.isArray(arr)) return arr;
|
|
15789
|
-
}
|
|
15790
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
15791
|
-
|
|
15792
|
-
|
|
15793
|
-
|
|
15794
|
-
|
|
15795
|
-
|
|
15796
|
-
|
|
15797
|
-
|
|
15798
|
-
|
|
15799
|
-
function _iterableToArrayLimit(arr, i) {
|
|
15800
|
-
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
15801
|
-
if (null != _i) {
|
|
15802
|
-
var _s,
|
|
15803
|
-
_e,
|
|
15804
|
-
_x,
|
|
15805
|
-
_r,
|
|
15806
|
-
_arr = [],
|
|
15807
|
-
_n = !0,
|
|
15808
|
-
_d = !1;
|
|
15809
|
-
try {
|
|
15810
|
-
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
15811
|
-
if (Object(_i) !== _i) return;
|
|
15812
|
-
_n = !1;
|
|
15813
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
|
|
15814
|
-
;
|
|
15815
|
-
}
|
|
15816
|
-
} catch (err) {
|
|
15817
|
-
_d = !0, _e = err;
|
|
15818
|
-
} finally {
|
|
15819
|
-
try {
|
|
15820
|
-
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
|
|
15821
|
-
} finally {
|
|
15822
|
-
if (_d) throw _e;
|
|
15823
|
-
}
|
|
15824
|
-
}
|
|
15825
|
-
return _arr;
|
|
15826
|
-
}
|
|
15827
|
-
}
|
|
15828
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
15829
|
-
|
|
15830
|
-
function _nonIterableRest() {
|
|
15831
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15832
|
-
}
|
|
15833
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
15834
|
-
|
|
15835
|
-
|
|
15836
|
-
|
|
15837
|
-
|
|
15838
|
-
function _slicedToArray(arr, i) {
|
|
15839
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
15840
|
-
}
|
|
15841
|
-
// EXTERNAL MODULE: ./node_modules/element-ui/lib/theme-chalk/carousel-item.css
|
|
15842
|
-
var carousel_item = __webpack_require__("186a");
|
|
15843
|
-
|
|
15844
|
-
// EXTERNAL MODULE: ./node_modules/element-ui/lib/carousel-item.js
|
|
15845
|
-
var lib_carousel_item = __webpack_require__("301f");
|
|
15846
|
-
var lib_carousel_item_default = /*#__PURE__*/__webpack_require__.n(lib_carousel_item);
|
|
15847
|
-
|
|
15848
|
-
// EXTERNAL MODULE: ./node_modules/element-ui/lib/theme-chalk/carousel.css
|
|
15849
|
-
var carousel = __webpack_require__("96dc");
|
|
15850
|
-
|
|
15851
|
-
// EXTERNAL MODULE: ./node_modules/element-ui/lib/carousel.js
|
|
15852
|
-
var lib_carousel = __webpack_require__("9cea");
|
|
15853
|
-
var lib_carousel_default = /*#__PURE__*/__webpack_require__.n(lib_carousel);
|
|
14247
|
+
var PubmedViewervue_type_template_id_58832c92_scoped_true_staticRenderFns = [];
|
|
15854
14248
|
|
|
15855
|
-
//
|
|
15856
|
-
var theme_chalk_link = __webpack_require__("fd71");
|
|
15857
|
-
|
|
15858
|
-
// EXTERNAL MODULE: ./node_modules/element-ui/lib/link.js
|
|
15859
|
-
var lib_link = __webpack_require__("a447");
|
|
15860
|
-
var lib_link_default = /*#__PURE__*/__webpack_require__.n(lib_link);
|
|
14249
|
+
// CONCATENATED MODULE: ./src/components/PubmedViewer.vue?vue&type=template&id=58832c92&scoped=true&
|
|
15861
14250
|
|
|
15862
14251
|
// EXTERNAL MODULE: external "core-js/modules/web.url-search-params.js"
|
|
15863
14252
|
var web_url_search_params_js_ = __webpack_require__("712c");
|
|
@@ -15871,21 +14260,6 @@ var es_regexp_to_string_js_ = __webpack_require__("30df");
|
|
|
15871
14260
|
|
|
15872
14261
|
|
|
15873
14262
|
|
|
15874
|
-
|
|
15875
|
-
|
|
15876
|
-
|
|
15877
|
-
|
|
15878
|
-
|
|
15879
|
-
|
|
15880
|
-
|
|
15881
|
-
|
|
15882
|
-
|
|
15883
|
-
|
|
15884
|
-
|
|
15885
|
-
|
|
15886
|
-
|
|
15887
|
-
|
|
15888
|
-
|
|
15889
14263
|
|
|
15890
14264
|
|
|
15891
14265
|
|
|
@@ -15893,13 +14267,6 @@ var es_regexp_to_string_js_ = __webpack_require__("30df");
|
|
|
15893
14267
|
|
|
15894
14268
|
/* eslint-disable no-alert, no-console */
|
|
15895
14269
|
|
|
15896
|
-
|
|
15897
|
-
|
|
15898
|
-
locale_default.a.use(en_default.a);
|
|
15899
|
-
external_vue_default.a.use(lib_link_default.a);
|
|
15900
|
-
external_vue_default.a.use(lib_carousel_default.a);
|
|
15901
|
-
external_vue_default.a.use(lib_carousel_item_default.a);
|
|
15902
|
-
external_vue_default.a.use(lib_button_default.a);
|
|
15903
14270
|
/* harmony default export */ var PubmedViewervue_type_script_lang_js_ = ({
|
|
15904
14271
|
name: "Tooltip",
|
|
15905
14272
|
props: {
|
|
@@ -15909,52 +14276,26 @@ external_vue_default.a.use(lib_button_default.a);
|
|
|
15909
14276
|
}
|
|
15910
14277
|
},
|
|
15911
14278
|
watch: {
|
|
15912
|
-
'entry.featureId': function entryFeatureId(val) {
|
|
15913
|
-
var _this = this;
|
|
15914
|
-
this.flatmapQuery(val).then(function (pb) {
|
|
15915
|
-
return _this.pubmeds = pb;
|
|
15916
|
-
});
|
|
15917
|
-
},
|
|
15918
14279
|
'entry.featureIds': {
|
|
15919
14280
|
handler: function handler(ids) {
|
|
15920
|
-
this.
|
|
14281
|
+
this.pubmedQueryOnIds(ids);
|
|
15921
14282
|
}
|
|
15922
14283
|
}
|
|
15923
14284
|
},
|
|
15924
14285
|
inject: ['flatmapAPI'],
|
|
15925
14286
|
data: function data() {
|
|
15926
14287
|
return {
|
|
15927
|
-
data: {},
|
|
15928
14288
|
pubmeds: [],
|
|
15929
|
-
pubmedIds: []
|
|
15930
|
-
loading: {
|
|
15931
|
-
response: true,
|
|
15932
|
-
publications: true
|
|
15933
|
-
}
|
|
14289
|
+
pubmedIds: []
|
|
15934
14290
|
};
|
|
15935
14291
|
},
|
|
15936
14292
|
mounted: function mounted() {
|
|
15937
|
-
if (this.entry.featureIds) this.
|
|
14293
|
+
if (this.entry.featureIds) this.pubmedQueryOnIds(this.entry.featureIds);
|
|
15938
14294
|
},
|
|
15939
14295
|
methods: {
|
|
15940
14296
|
stripPMIDPrefix: function stripPMIDPrefix(pubmedId) {
|
|
15941
14297
|
return pubmedId.split(':')[1];
|
|
15942
14298
|
},
|
|
15943
|
-
titleFromPubmed: function titleFromPubmed(pubmedId) {
|
|
15944
|
-
return new Promise(function (resolve) {
|
|
15945
|
-
fetch("https://api.ncbi.nlm.nih.gov/lit/ctxp/v1/pubmed/?format=citation&contenttype=json&id=".concat(pubmedId)).then(function (response) {
|
|
15946
|
-
return response.json();
|
|
15947
|
-
}).then(function (data) {
|
|
15948
|
-
resolve(data.apa.format);
|
|
15949
|
-
}).catch(function (error) {
|
|
15950
|
-
console.error('Error:', error);
|
|
15951
|
-
});
|
|
15952
|
-
});
|
|
15953
|
-
},
|
|
15954
|
-
splitLink: function splitLink(bibliographyString) {
|
|
15955
|
-
var split = bibliographyString.split('https');
|
|
15956
|
-
return [split[0], 'https' + split[1]];
|
|
15957
|
-
},
|
|
15958
14299
|
buildPubmedSqlStatement: function buildPubmedSqlStatement(keastIds) {
|
|
15959
14300
|
var sql = 'select distinct publication from publications where entity in (';
|
|
15960
14301
|
if (keastIds.length === 1) {
|
|
@@ -15966,17 +14307,14 @@ external_vue_default.a.use(lib_button_default.a);
|
|
|
15966
14307
|
}
|
|
15967
14308
|
return sql;
|
|
15968
14309
|
},
|
|
15969
|
-
|
|
15970
|
-
|
|
15971
|
-
|
|
15972
|
-
|
|
15973
|
-
this.loading.response = true;
|
|
15974
|
-
|
|
15975
|
-
// fetch pubmed publications for the given ids
|
|
14310
|
+
buildPubmedSqlStatementForModels: function buildPubmedSqlStatementForModels(model) {
|
|
14311
|
+
return "select distinct publication from publications where entity = '".concat(model, "'");
|
|
14312
|
+
},
|
|
14313
|
+
flatmapQuery: function flatmapQuery(sql) {
|
|
15976
14314
|
var data = {
|
|
15977
|
-
sql:
|
|
14315
|
+
sql: sql
|
|
15978
14316
|
};
|
|
15979
|
-
fetch("".concat(this.flatmapAPI, "knowledge/query/"), {
|
|
14317
|
+
return fetch("".concat(this.flatmapAPI, "knowledge/query/"), {
|
|
15980
14318
|
method: 'POST',
|
|
15981
14319
|
headers: {
|
|
15982
14320
|
'Content-Type': 'application/json'
|
|
@@ -15984,36 +14322,40 @@ external_vue_default.a.use(lib_button_default.a);
|
|
|
15984
14322
|
body: JSON.stringify(data)
|
|
15985
14323
|
}).then(function (response) {
|
|
15986
14324
|
return response.json();
|
|
15987
|
-
}).
|
|
15988
|
-
|
|
15989
|
-
|
|
15990
|
-
|
|
15991
|
-
|
|
14325
|
+
}).catch(function (error) {
|
|
14326
|
+
console.error('Error:', error);
|
|
14327
|
+
});
|
|
14328
|
+
},
|
|
14329
|
+
pubmedQueryOnIds: function pubmedQueryOnIds(keastIds) {
|
|
14330
|
+
var _this = this;
|
|
14331
|
+
if (!keastIds || keastIds.length === 0) return;
|
|
14332
|
+
var sql = this.buildPubmedSqlStatement(keastIds);
|
|
14333
|
+
this.flatmapQuery(sql).then(function (data) {
|
|
14334
|
+
_this.responseData = data;
|
|
14335
|
+
// Create pubmed url on paths if we have them
|
|
15992
14336
|
if (data.values.length > 0) {
|
|
15993
|
-
data.values.
|
|
15994
|
-
|
|
15995
|
-
|
|
15996
|
-
|
|
15997
|
-
|
|
15998
|
-
|
|
15999
|
-
|
|
16000
|
-
|
|
16001
|
-
|
|
16002
|
-
|
|
16003
|
-
|
|
16004
|
-
|
|
16005
|
-
|
|
16006
|
-
});
|
|
14337
|
+
_this.$emit('pubmedSearchUrl', _this.pubmedSearchUrl(data.values.map(function (id) {
|
|
14338
|
+
return _this.stripPMIDPrefix(id[0]);
|
|
14339
|
+
})));
|
|
14340
|
+
} else {
|
|
14341
|
+
// Create pubmed url on models
|
|
14342
|
+
_this.pubmedQueryOnModels(_this.entry.source);
|
|
14343
|
+
}
|
|
14344
|
+
});
|
|
14345
|
+
},
|
|
14346
|
+
pubmedQueryOnModels: function pubmedQueryOnModels(source) {
|
|
14347
|
+
var _this2 = this;
|
|
14348
|
+
this.flatmapQuery(this.buildPubmedSqlStatementForModels(source)).then(function (data) {
|
|
14349
|
+
if (Array.isArray(data.values) && data.values.length > 0) {
|
|
16007
14350
|
_this2.$emit('pubmedSearchUrl', _this2.pubmedSearchUrl(data.values.map(function (id) {
|
|
16008
14351
|
return _this2.stripPMIDPrefix(id[0]);
|
|
16009
14352
|
})));
|
|
16010
14353
|
} else {
|
|
16011
14354
|
_this2.$emit('pubmedSearchUrl', ''); // Clears the pubmed search button
|
|
16012
14355
|
}
|
|
16013
|
-
}).catch(function (error) {
|
|
16014
|
-
console.error('Error:', error);
|
|
16015
14356
|
});
|
|
16016
14357
|
},
|
|
14358
|
+
|
|
16017
14359
|
pubmedSearchUrl: function pubmedSearchUrl(ids) {
|
|
16018
14360
|
var url = 'https://pubmed.ncbi.nlm.nih.gov/?';
|
|
16019
14361
|
var params = new URLSearchParams();
|
|
@@ -16024,8 +14366,8 @@ external_vue_default.a.use(lib_button_default.a);
|
|
|
16024
14366
|
});
|
|
16025
14367
|
// CONCATENATED MODULE: ./src/components/PubmedViewer.vue?vue&type=script&lang=js&
|
|
16026
14368
|
/* harmony default export */ var components_PubmedViewervue_type_script_lang_js_ = (PubmedViewervue_type_script_lang_js_);
|
|
16027
|
-
// EXTERNAL MODULE: ./src/components/PubmedViewer.vue?vue&type=style&index=0&id=
|
|
16028
|
-
var
|
|
14369
|
+
// EXTERNAL MODULE: ./src/components/PubmedViewer.vue?vue&type=style&index=0&id=58832c92&prod&scoped=true&lang=scss&
|
|
14370
|
+
var PubmedViewervue_type_style_index_0_id_58832c92_prod_scoped_true_lang_scss_ = __webpack_require__("233b");
|
|
16029
14371
|
|
|
16030
14372
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
16031
14373
|
/* globals __VUE_SSR_CONTEXT__ */
|
|
@@ -16136,11 +14478,11 @@ function normalizeComponent(
|
|
|
16136
14478
|
|
|
16137
14479
|
var component = normalizeComponent(
|
|
16138
14480
|
components_PubmedViewervue_type_script_lang_js_,
|
|
16139
|
-
|
|
16140
|
-
|
|
14481
|
+
PubmedViewervue_type_template_id_58832c92_scoped_true_render,
|
|
14482
|
+
PubmedViewervue_type_template_id_58832c92_scoped_true_staticRenderFns,
|
|
16141
14483
|
false,
|
|
16142
14484
|
null,
|
|
16143
|
-
"
|
|
14485
|
+
"58832c92",
|
|
16144
14486
|
null
|
|
16145
14487
|
|
|
16146
14488
|
)
|
|
@@ -16449,8 +14791,51 @@ var _capitalise = function capitalise(str) {
|
|
|
16449
14791
|
}
|
|
16450
14792
|
return label;
|
|
16451
14793
|
},
|
|
16452
|
-
|
|
14794
|
+
processConnectivity: function processConnectivity(connectivity) {
|
|
16453
14795
|
var _this4 = this;
|
|
14796
|
+
// Filter the origin and destinations from components
|
|
14797
|
+
var components = this.findComponents(connectivity);
|
|
14798
|
+
|
|
14799
|
+
// Remove duplicates
|
|
14800
|
+
var axons = Tooltipvue_type_script_lang_js_removeDuplicates(connectivity.axons);
|
|
14801
|
+
var dendrites = Tooltipvue_type_script_lang_js_removeDuplicates(connectivity.dendrites);
|
|
14802
|
+
|
|
14803
|
+
// Create list of ids to get labels for
|
|
14804
|
+
var conIds = this.findAllIdsFromConnectivity(connectivity);
|
|
14805
|
+
|
|
14806
|
+
// Create readable labels from the nodes. Setting this to 'this.origins' updates the display
|
|
14807
|
+
this.createLabelLookup(conIds).then(function (lookUp) {
|
|
14808
|
+
_this4.destinations = axons.map(function (a) {
|
|
14809
|
+
return _this4.createLabelFromNeuralNode(a, lookUp);
|
|
14810
|
+
});
|
|
14811
|
+
_this4.origins = dendrites.map(function (d) {
|
|
14812
|
+
return _this4.createLabelFromNeuralNode(d, lookUp);
|
|
14813
|
+
});
|
|
14814
|
+
_this4.components = components.map(function (c) {
|
|
14815
|
+
return _this4.createLabelFromNeuralNode(c, lookUp);
|
|
14816
|
+
});
|
|
14817
|
+
});
|
|
14818
|
+
this.flattenAndFindDatasets(components, axons, dendrites);
|
|
14819
|
+
},
|
|
14820
|
+
flattenAndFindDatasets: function flattenAndFindDatasets(components, axons, dendrites) {
|
|
14821
|
+
// process the nodes for finding datasets (Note this is not critical to the tooltip, only for the 'search on components' button)
|
|
14822
|
+
var componentsFlat = this.flattenConntectivity(components);
|
|
14823
|
+
var axonsFlat = this.flattenConntectivity(axons);
|
|
14824
|
+
var dendritesFlat = this.flattenConntectivity(dendrites);
|
|
14825
|
+
|
|
14826
|
+
// Filter for the anatomy which is annotated on datasets
|
|
14827
|
+
this.destinationsWithDatasets = this.uberons.filter(function (ub) {
|
|
14828
|
+
return axonsFlat.indexOf(ub.id) !== -1;
|
|
14829
|
+
});
|
|
14830
|
+
this.originsWithDatasets = this.uberons.filter(function (ub) {
|
|
14831
|
+
return dendritesFlat.indexOf(ub.id) !== -1;
|
|
14832
|
+
});
|
|
14833
|
+
this.componentsWithDatasets = this.uberons.filter(function (ub) {
|
|
14834
|
+
return componentsFlat.indexOf(ub.id) !== -1;
|
|
14835
|
+
});
|
|
14836
|
+
},
|
|
14837
|
+
pathwayQuery: function pathwayQuery(keastIds) {
|
|
14838
|
+
var _this5 = this;
|
|
16454
14839
|
this.destinations = [];
|
|
16455
14840
|
this.origins = [];
|
|
16456
14841
|
this.components = [];
|
|
@@ -16469,41 +14854,8 @@ var _capitalise = function capitalise(str) {
|
|
|
16469
14854
|
return response.json();
|
|
16470
14855
|
}).then(function (data) {
|
|
16471
14856
|
var connectivity = JSON.parse(data.values[0][0]);
|
|
16472
|
-
|
|
16473
|
-
|
|
16474
|
-
|
|
16475
|
-
// process the nodes for finding datasets
|
|
16476
|
-
var componentsFlat = _this4.flattenConntectivity(components);
|
|
16477
|
-
var axons = Tooltipvue_type_script_lang_js_removeDuplicates(connectivity.axons);
|
|
16478
|
-
var dendrites = Tooltipvue_type_script_lang_js_removeDuplicates(connectivity.dendrites);
|
|
16479
|
-
var axonsFlat = _this4.flattenConntectivity(axons);
|
|
16480
|
-
var dendritesFlat = _this4.flattenConntectivity(dendrites);
|
|
16481
|
-
var conIds = _this4.findAllIdsFromConnectivity(connectivity); // Create list of ids to get labels for
|
|
16482
|
-
|
|
16483
|
-
// Create readable labels from the nodes. Setting this to 'this.origins' updates the display
|
|
16484
|
-
_this4.createLabelLookup(conIds).then(function (lookUp) {
|
|
16485
|
-
_this4.destinations = axons.map(function (a) {
|
|
16486
|
-
return _this4.createLabelFromNeuralNode(a, lookUp);
|
|
16487
|
-
});
|
|
16488
|
-
_this4.origins = dendrites.map(function (d) {
|
|
16489
|
-
return _this4.createLabelFromNeuralNode(d, lookUp);
|
|
16490
|
-
});
|
|
16491
|
-
_this4.components = components.map(function (c) {
|
|
16492
|
-
return _this4.createLabelFromNeuralNode(c, lookUp);
|
|
16493
|
-
});
|
|
16494
|
-
});
|
|
16495
|
-
|
|
16496
|
-
// Filter for the anatomy which is annotated on datasets
|
|
16497
|
-
_this4.destinationsWithDatasets = _this4.uberons.filter(function (ub) {
|
|
16498
|
-
return axonsFlat.indexOf(ub.id) !== -1;
|
|
16499
|
-
});
|
|
16500
|
-
_this4.originsWithDatasets = _this4.uberons.filter(function (ub) {
|
|
16501
|
-
return dendritesFlat.indexOf(ub.id) !== -1;
|
|
16502
|
-
});
|
|
16503
|
-
_this4.componentsWithDatasets = _this4.uberons.filter(function (ub) {
|
|
16504
|
-
return componentsFlat.indexOf(ub.id) !== -1;
|
|
16505
|
-
});
|
|
16506
|
-
_this4.loading = false;
|
|
14857
|
+
_this5.processConnectivity(connectivity);
|
|
14858
|
+
_this5.loading = false;
|
|
16507
14859
|
}).catch(function (error) {
|
|
16508
14860
|
console.error('Error:', error);
|
|
16509
14861
|
});
|
|
@@ -16512,8 +14864,8 @@ var _capitalise = function capitalise(str) {
|
|
|
16512
14864
|
});
|
|
16513
14865
|
// CONCATENATED MODULE: ./src/components/Tooltip.vue?vue&type=script&lang=js&
|
|
16514
14866
|
/* harmony default export */ var components_Tooltipvue_type_script_lang_js_ = (Tooltipvue_type_script_lang_js_);
|
|
16515
|
-
// EXTERNAL MODULE: ./src/components/Tooltip.vue?vue&type=style&index=0&id=
|
|
16516
|
-
var
|
|
14867
|
+
// EXTERNAL MODULE: ./src/components/Tooltip.vue?vue&type=style&index=0&id=6d6dee76&prod&scoped=true&lang=scss&
|
|
14868
|
+
var Tooltipvue_type_style_index_0_id_6d6dee76_prod_scoped_true_lang_scss_ = __webpack_require__("b64b");
|
|
16517
14869
|
|
|
16518
14870
|
// CONCATENATED MODULE: ./src/components/Tooltip.vue
|
|
16519
14871
|
|
|
@@ -16526,11 +14878,11 @@ var Tooltipvue_type_style_index_0_id_4a14f4de_prod_scoped_true_lang_scss_ = __we
|
|
|
16526
14878
|
|
|
16527
14879
|
var Tooltip_component = normalizeComponent(
|
|
16528
14880
|
components_Tooltipvue_type_script_lang_js_,
|
|
16529
|
-
|
|
16530
|
-
|
|
14881
|
+
Tooltipvue_type_template_id_6d6dee76_scoped_true_render,
|
|
14882
|
+
Tooltipvue_type_template_id_6d6dee76_scoped_true_staticRenderFns,
|
|
16531
14883
|
false,
|
|
16532
14884
|
null,
|
|
16533
|
-
"
|
|
14885
|
+
"6d6dee76",
|
|
16534
14886
|
null
|
|
16535
14887
|
|
|
16536
14888
|
)
|
|
@@ -16539,7 +14891,7 @@ var Tooltip_component = normalizeComponent(
|
|
|
16539
14891
|
// EXTERNAL MODULE: external "@abi-software/svg-sprite"
|
|
16540
14892
|
var svg_sprite_ = __webpack_require__("429c");
|
|
16541
14893
|
|
|
16542
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
14894
|
+
// 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&
|
|
16543
14895
|
var Legendsvue_type_template_id_5dafd4cc_scoped_true_render = function render() {
|
|
16544
14896
|
var _vm = this,
|
|
16545
14897
|
_c = _vm._self._c;
|
|
@@ -16727,6 +15079,19 @@ var mapResize = function mapResize(map) {
|
|
|
16727
15079
|
this.mapImp = undefined;
|
|
16728
15080
|
},
|
|
16729
15081
|
methods: {
|
|
15082
|
+
viewLatestMap: function viewLatestMap() {
|
|
15083
|
+
var biologicalSex = this.biologicalSex ? this.biologicalSex : undefined;
|
|
15084
|
+
//Human requires special handling
|
|
15085
|
+
if (this.entry === "NCBITaxon:9606") {
|
|
15086
|
+
biologicalSex = "PATO:0000384";
|
|
15087
|
+
}
|
|
15088
|
+
var state = {
|
|
15089
|
+
entry: this.entry,
|
|
15090
|
+
biologicalSex: biologicalSex,
|
|
15091
|
+
viewport: this.mapImp.getState()
|
|
15092
|
+
};
|
|
15093
|
+
this.$emit("view-latest-map", state);
|
|
15094
|
+
},
|
|
16730
15095
|
backgroundChangeCallback: function backgroundChangeCallback(colour) {
|
|
16731
15096
|
this.currentBackground = colour;
|
|
16732
15097
|
if (this.mapImp) {
|
|
@@ -16899,6 +15264,7 @@ var mapResize = function mapResize(map) {
|
|
|
16899
15264
|
this.tooltipVisible = true;
|
|
16900
15265
|
this.tooltipContent = content;
|
|
16901
15266
|
this.tooltipContent.uberon = feature;
|
|
15267
|
+
this.tooltipContent.source = data.feature.source;
|
|
16902
15268
|
this.tooltipContent.title = data.label;
|
|
16903
15269
|
this.tooltipContent.featureIds = [feature];
|
|
16904
15270
|
this.tooltipContent.actions.push({
|
|
@@ -16916,6 +15282,7 @@ var mapResize = function mapResize(map) {
|
|
|
16916
15282
|
this.tooltipVisible = true;
|
|
16917
15283
|
this.tooltipContent = content;
|
|
16918
15284
|
this.tooltipContent.uberon = feature;
|
|
15285
|
+
this.tooltipContent.source = data.feature.source;
|
|
16919
15286
|
this.tooltipContent.title = data.label;
|
|
16920
15287
|
this.tooltipContent.actions.push({
|
|
16921
15288
|
title: "View dataset",
|
|
@@ -17063,13 +15430,19 @@ var mapResize = function mapResize(map) {
|
|
|
17063
15430
|
var identifier = {
|
|
17064
15431
|
taxon: this.entry
|
|
17065
15432
|
};
|
|
17066
|
-
if (state
|
|
17067
|
-
|
|
17068
|
-
|
|
17069
|
-
|
|
17070
|
-
|
|
17071
|
-
|
|
17072
|
-
identifier
|
|
15433
|
+
if (state) {
|
|
15434
|
+
if (state.uuid) {
|
|
15435
|
+
identifier = {
|
|
15436
|
+
uuid: state.uuid
|
|
15437
|
+
};
|
|
15438
|
+
} else if (state.entry) {
|
|
15439
|
+
identifier.taxon = state.entry;
|
|
15440
|
+
if (state.biologicalSex) {
|
|
15441
|
+
identifier["biologicalSex"] = state.biologicalSex;
|
|
15442
|
+
} else if (identifier.taxon === "NCBITaxon:9606") {
|
|
15443
|
+
//For backward compatibility
|
|
15444
|
+
identifier["biologicalSex"] = "PATO:0000384";
|
|
15445
|
+
}
|
|
17073
15446
|
}
|
|
17074
15447
|
} else {
|
|
17075
15448
|
// Set the bioloicalSex now if map is not resumed from
|
|
@@ -17100,7 +15473,10 @@ var mapResize = function mapResize(map) {
|
|
|
17100
15473
|
if (_this3._viewportToBeSet) _this3.mapImp.setState(_this3._viewportToBeSet);else if (state && state.viewport) _this3.mapImp.setState(state.viewport);
|
|
17101
15474
|
});
|
|
17102
15475
|
} else if (state) {
|
|
17103
|
-
if (this.entry == state.entry)
|
|
15476
|
+
if (this.entry == state.entry) {
|
|
15477
|
+
this._viewportToBeSet = state.viewport;
|
|
15478
|
+
if (this.mapImp && !this.loading) this.mapImp.setState(this._viewportToBeSet);
|
|
15479
|
+
}
|
|
17104
15480
|
}
|
|
17105
15481
|
},
|
|
17106
15482
|
showMinimap: function showMinimap(flag) {
|
|
@@ -17181,6 +15557,10 @@ var mapResize = function mapResize(map) {
|
|
|
17181
15557
|
type: String,
|
|
17182
15558
|
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."
|
|
17183
15559
|
},
|
|
15560
|
+
isLegacy: {
|
|
15561
|
+
type: Boolean,
|
|
15562
|
+
default: false
|
|
15563
|
+
},
|
|
17184
15564
|
displayLatestChanges: {
|
|
17185
15565
|
type: Boolean,
|
|
17186
15566
|
default: false
|
|
@@ -17273,8 +15653,8 @@ var mapResize = function mapResize(map) {
|
|
|
17273
15653
|
});
|
|
17274
15654
|
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=script&lang=js&
|
|
17275
15655
|
/* harmony default export */ var components_FlatmapVuervue_type_script_lang_js_ = (FlatmapVuervue_type_script_lang_js_);
|
|
17276
|
-
// EXTERNAL MODULE: ./src/components/FlatmapVuer.vue?vue&type=style&index=0&id=
|
|
17277
|
-
var
|
|
15656
|
+
// EXTERNAL MODULE: ./src/components/FlatmapVuer.vue?vue&type=style&index=0&id=1818e354&prod&scoped=true&lang=scss&
|
|
15657
|
+
var FlatmapVuervue_type_style_index_0_id_1818e354_prod_scoped_true_lang_scss_ = __webpack_require__("8ab6");
|
|
17278
15658
|
|
|
17279
15659
|
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue
|
|
17280
15660
|
|
|
@@ -17291,14 +15671,14 @@ var FlatmapVuer_component = normalizeComponent(
|
|
|
17291
15671
|
staticRenderFns,
|
|
17292
15672
|
false,
|
|
17293
15673
|
null,
|
|
17294
|
-
"
|
|
15674
|
+
"1818e354",
|
|
17295
15675
|
null
|
|
17296
15676
|
|
|
17297
15677
|
)
|
|
17298
15678
|
|
|
17299
15679
|
/* harmony default export */ var FlatmapVuer = (FlatmapVuer_component.exports);
|
|
17300
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
17301
|
-
var
|
|
15680
|
+
// 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&
|
|
15681
|
+
var MultiFlatmapVuervue_type_template_id_9bafc316_scoped_true_render = function render() {
|
|
17302
15682
|
var _vm = this,
|
|
17303
15683
|
_c = _vm._self._c;
|
|
17304
15684
|
return _c('div', {
|
|
@@ -17389,6 +15769,7 @@ var MultiFlatmapVuervue_type_template_id_0ad8a77b_scoped_true_render = function
|
|
|
17389
15769
|
"warningMessage": _vm.warningMessage,
|
|
17390
15770
|
"displayLatestChanges": item.displayLatestChanges,
|
|
17391
15771
|
"latestChangesMessage": item.latestChangesMessage,
|
|
15772
|
+
"isLegacy": item.isLegacy,
|
|
17392
15773
|
"featureInfo": _vm.featureInfo,
|
|
17393
15774
|
"minZoom": _vm.minZoom,
|
|
17394
15775
|
"pathControls": _vm.pathControls,
|
|
@@ -17400,6 +15781,7 @@ var MultiFlatmapVuervue_type_template_id_0ad8a77b_scoped_true_render = function
|
|
|
17400
15781
|
"sparcAPI": _vm.sparcAPI
|
|
17401
15782
|
},
|
|
17402
15783
|
on: {
|
|
15784
|
+
"view-latest-map": _vm.viewLatestMap,
|
|
17403
15785
|
"resource-selected": _vm.FlatmapSelected,
|
|
17404
15786
|
"ready": _vm.FlatmapReady,
|
|
17405
15787
|
"pan-zoom-callback": _vm.panZoomCallback
|
|
@@ -17407,9 +15789,9 @@ var MultiFlatmapVuervue_type_template_id_0ad8a77b_scoped_true_render = function
|
|
|
17407
15789
|
});
|
|
17408
15790
|
})], 2);
|
|
17409
15791
|
};
|
|
17410
|
-
var
|
|
15792
|
+
var MultiFlatmapVuervue_type_template_id_9bafc316_scoped_true_staticRenderFns = [];
|
|
17411
15793
|
|
|
17412
|
-
// CONCATENATED MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=template&id=
|
|
15794
|
+
// CONCATENATED MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=template&id=9bafc316&scoped=true&
|
|
17413
15795
|
|
|
17414
15796
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/theme-chalk/popover.css
|
|
17415
15797
|
var popover = __webpack_require__("06f1");
|
|
@@ -17455,6 +15837,7 @@ var es_object_keys_js_ = __webpack_require__("ea64");
|
|
|
17455
15837
|
|
|
17456
15838
|
|
|
17457
15839
|
|
|
15840
|
+
|
|
17458
15841
|
|
|
17459
15842
|
/* eslint-disable no-alert, no-console */
|
|
17460
15843
|
|
|
@@ -17468,6 +15851,13 @@ external_vue_default.a.use(lib_row_default.a);
|
|
|
17468
15851
|
external_vue_default.a.use(lib_option_default.a);
|
|
17469
15852
|
external_vue_default.a.use(lib_select_default.a);
|
|
17470
15853
|
external_vue_default.a.use(lib_popover_default.a);
|
|
15854
|
+
var TAXON_UUID = {
|
|
15855
|
+
"NCBITaxon:10114": "01fedbf9-d783-509c-a10c-827941ab13da",
|
|
15856
|
+
"NCBITaxon:9823": "a336ac04-24db-561f-a25f-1c994fe17410",
|
|
15857
|
+
"NCBITaxon:9606": "42ed6323-f645-5fbe-bada-9581819cf689",
|
|
15858
|
+
"NCBITaxon:10090": "25285fab-48a0-5620-a6a0-f9a0374837d5",
|
|
15859
|
+
"NCBITaxon:9685": "73060497-46a6-52bf-b975-cac511c127cb"
|
|
15860
|
+
};
|
|
17471
15861
|
/* harmony default export */ var MultiFlatmapVuervue_type_script_lang_js_ = ({
|
|
17472
15862
|
name: "MultiFlatmapVuer",
|
|
17473
15863
|
components: {
|
|
@@ -17488,6 +15878,8 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
17488
15878
|
return response.json();
|
|
17489
15879
|
}).then(function (data) {
|
|
17490
15880
|
_this2.speciesList = {};
|
|
15881
|
+
//Check each key in the provided availableSpecies against the one
|
|
15882
|
+
// on the server, add them to the Select if the key is found
|
|
17491
15883
|
Object.keys(_this2.availableSpecies).forEach(function (key) {
|
|
17492
15884
|
for (var i = 0; i < data.length; i++) {
|
|
17493
15885
|
if (_this2.availableSpecies[key].taxo === data[i].taxon) {
|
|
@@ -17504,6 +15896,7 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
17504
15896
|
}
|
|
17505
15897
|
});
|
|
17506
15898
|
if (!_this2.state) {
|
|
15899
|
+
//No state resuming, set the current flatmap to {this.initial}
|
|
17507
15900
|
if (_this2.initial && _this2.speciesList[_this2.initial] !== undefined) {
|
|
17508
15901
|
_this2.activeSpecies = _this2.initial;
|
|
17509
15902
|
} else {
|
|
@@ -17544,17 +15937,97 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
17544
15937
|
var map = this.getCurrentFlatmap();
|
|
17545
15938
|
map.showMarkerPopup(featureId, node, options);
|
|
17546
15939
|
},
|
|
17547
|
-
flatmapChanged: function flatmapChanged(species) {
|
|
15940
|
+
flatmapChanged: function flatmapChanged(species, viewport) {
|
|
17548
15941
|
if (this.activeSpecies != species) this.activeSpecies = species;
|
|
17549
|
-
this.$refs[this.activeSpecies][0].createFlatmap();
|
|
15942
|
+
this.$refs[this.activeSpecies][0].createFlatmap(viewport);
|
|
17550
15943
|
this.$emit('flatmapChanged', this.activeSpecies);
|
|
17551
15944
|
},
|
|
17552
15945
|
/**
|
|
17553
|
-
|
|
17554
|
-
|
|
17555
|
-
|
|
17556
|
-
|
|
17557
|
-
|
|
15946
|
+
* Function to switch to the latest existing map from
|
|
15947
|
+
* a legacy map of the same species.
|
|
15948
|
+
*
|
|
15949
|
+
* @private
|
|
15950
|
+
*/
|
|
15951
|
+
viewLatestMap: function viewLatestMap(state) {
|
|
15952
|
+
var keys = Object.keys(this.speciesList);
|
|
15953
|
+
for (var i = 0; i < keys.length; i++) {
|
|
15954
|
+
var species = this.speciesList[keys[i]];
|
|
15955
|
+
if (!species.isLegacy && species.taxo === state.entry && species.biologicalSex === state.biologicalSex) {
|
|
15956
|
+
this.flatmapChanged(keys[i], state);
|
|
15957
|
+
return;
|
|
15958
|
+
}
|
|
15959
|
+
}
|
|
15960
|
+
},
|
|
15961
|
+
createLegacyEntry: function createLegacyEntry(state, taxo, uuid) {
|
|
15962
|
+
if (uuid && taxo) {
|
|
15963
|
+
var name = "Legacy";
|
|
15964
|
+
if (state.species) {
|
|
15965
|
+
if (state.species.slice(0, 6) === "Legacy") name = state.species;else name = name + " ".concat(state.species);
|
|
15966
|
+
}
|
|
15967
|
+
this.speciesList[name] = {
|
|
15968
|
+
taxo: taxo,
|
|
15969
|
+
isLegacy: true,
|
|
15970
|
+
displayWarning: true
|
|
15971
|
+
};
|
|
15972
|
+
return {
|
|
15973
|
+
species: name,
|
|
15974
|
+
state: {
|
|
15975
|
+
entry: taxo,
|
|
15976
|
+
uuid: uuid
|
|
15977
|
+
},
|
|
15978
|
+
viewport: state.state.viewport
|
|
15979
|
+
};
|
|
15980
|
+
}
|
|
15981
|
+
},
|
|
15982
|
+
/**
|
|
15983
|
+
* Function used to translate the legacy map state to one that can be used in current
|
|
15984
|
+
* flatmap if required. If it is a legacy, an Select entry will be added
|
|
15985
|
+
*
|
|
15986
|
+
* @private
|
|
15987
|
+
*/
|
|
15988
|
+
updateState: function updateState(state) {
|
|
15989
|
+
var _this3 = this;
|
|
15990
|
+
return new Promise(function (resolve) {
|
|
15991
|
+
if (state && state.state) {
|
|
15992
|
+
var mapState = state.state;
|
|
15993
|
+
//uuid is not in the state, this is a legacy map
|
|
15994
|
+
if (!mapState.uuid) {
|
|
15995
|
+
if (mapState.entry) {
|
|
15996
|
+
var uuid = mapState.entry in TAXON_UUID ? TAXON_UUID[mapState.entry] : undefined;
|
|
15997
|
+
var newState = _this3.createLegacyEntry(state, mapState.entry, uuid);
|
|
15998
|
+
resolve(newState ? newState : state);
|
|
15999
|
+
}
|
|
16000
|
+
} else if (mapState.entry) {
|
|
16001
|
+
//uuid is in the state but should be checked if it is the latest map
|
|
16002
|
+
//for that taxon
|
|
16003
|
+
return new Promise(function () {
|
|
16004
|
+
var mapManager = new (__webpack_require__("4979").MapManager)(_this3.flatmapAPI);
|
|
16005
|
+
//mapManager.findMap_ is an async function so we need to wrap this with a promise
|
|
16006
|
+
mapManager.findMap_({
|
|
16007
|
+
taxon: mapState.entry
|
|
16008
|
+
}).then(function (map) {
|
|
16009
|
+
if (map.uuid !== mapState.uuid) {
|
|
16010
|
+
return _this3.createLegacyEntry(state, mapState.entry, mapState.uuid);
|
|
16011
|
+
}
|
|
16012
|
+
}).then(function (newState) {
|
|
16013
|
+
resolve(newState ? newState : state);
|
|
16014
|
+
}).catch(function () {
|
|
16015
|
+
resolve(state);
|
|
16016
|
+
});
|
|
16017
|
+
});
|
|
16018
|
+
}
|
|
16019
|
+
//Create a new state and add the legacy map to the select
|
|
16020
|
+
}
|
|
16021
|
+
|
|
16022
|
+
resolve(state);
|
|
16023
|
+
});
|
|
16024
|
+
},
|
|
16025
|
+
/**
|
|
16026
|
+
* Function used for getting the current states of the scene. This exported states
|
|
16027
|
+
* can be imported using the importStates method.
|
|
16028
|
+
*
|
|
16029
|
+
* @public
|
|
16030
|
+
*/
|
|
17558
16031
|
getState: function getState() {
|
|
17559
16032
|
var state = {
|
|
17560
16033
|
species: this.activeSpecies,
|
|
@@ -17571,22 +16044,27 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
17571
16044
|
* @public
|
|
17572
16045
|
*/
|
|
17573
16046
|
setState: function setState(state) {
|
|
17574
|
-
var
|
|
16047
|
+
var _this4 = this;
|
|
17575
16048
|
if (state) {
|
|
17576
16049
|
this.initialise().then(function () {
|
|
17577
|
-
|
|
17578
|
-
|
|
17579
|
-
if (
|
|
17580
|
-
|
|
17581
|
-
|
|
17582
|
-
|
|
17583
|
-
|
|
17584
|
-
|
|
16050
|
+
//Update state if required
|
|
16051
|
+
_this4.updateState(state).then(function (currentState) {
|
|
16052
|
+
if (currentState.species && currentState.species !== _this4.activeSpecies) {
|
|
16053
|
+
_this4.activeSpecies = currentState.species;
|
|
16054
|
+
if (currentState.state) {
|
|
16055
|
+
//Wait for next tick when the refs are ready for rendering
|
|
16056
|
+
_this4.$nextTick(function () {
|
|
16057
|
+
if (_this4.activeSpecies in _this4.$refs) {
|
|
16058
|
+
_this4.$refs[_this4.activeSpecies][0].createFlatmap(currentState.state);
|
|
16059
|
+
_this4.$emit('flatmapChanged', _this4.activeSpecies);
|
|
16060
|
+
}
|
|
16061
|
+
});
|
|
16062
|
+
}
|
|
16063
|
+
} else if (currentState.state) {
|
|
16064
|
+
var map = _this4.getCurrentFlatmap();
|
|
16065
|
+
map.setState(currentState.state);
|
|
17585
16066
|
}
|
|
17586
|
-
}
|
|
17587
|
-
var map = _this3.getCurrentFlatmap();
|
|
17588
|
-
map.setState(state.state);
|
|
17589
|
-
}
|
|
16067
|
+
});
|
|
17590
16068
|
});
|
|
17591
16069
|
}
|
|
17592
16070
|
},
|
|
@@ -17639,7 +16117,45 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
17639
16117
|
type: String,
|
|
17640
16118
|
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."
|
|
17641
16119
|
},
|
|
17642
|
-
availableSpecies: {
|
|
16120
|
+
availableSpecies: {
|
|
16121
|
+
type: Object,
|
|
16122
|
+
default: function _default() {
|
|
16123
|
+
return {
|
|
16124
|
+
"Human Female": {
|
|
16125
|
+
taxo: "NCBITaxon:9606",
|
|
16126
|
+
biologicalSex: "PATO:0000383",
|
|
16127
|
+
iconClass: "mapicon-icon_human",
|
|
16128
|
+
displayWarning: true
|
|
16129
|
+
},
|
|
16130
|
+
"Human Male": {
|
|
16131
|
+
taxo: "NCBITaxon:9606",
|
|
16132
|
+
biologicalSex: "PATO:0000384",
|
|
16133
|
+
iconClass: "mapicon-icon_human",
|
|
16134
|
+
displayWarning: true
|
|
16135
|
+
},
|
|
16136
|
+
"Rat": {
|
|
16137
|
+
taxo: "NCBITaxon:10114",
|
|
16138
|
+
iconClass: "mapicon-icon_rat",
|
|
16139
|
+
displayLatestChanges: true
|
|
16140
|
+
},
|
|
16141
|
+
"Mouse": {
|
|
16142
|
+
taxo: "NCBITaxon:10090",
|
|
16143
|
+
iconClass: "mapicon-icon_mouse",
|
|
16144
|
+
displayWarning: true
|
|
16145
|
+
},
|
|
16146
|
+
"Pig": {
|
|
16147
|
+
taxo: "NCBITaxon:9823",
|
|
16148
|
+
iconClass: "mapicon-icon_pig",
|
|
16149
|
+
displayWarning: true
|
|
16150
|
+
},
|
|
16151
|
+
"Cat": {
|
|
16152
|
+
taxo: "NCBITaxon:9685",
|
|
16153
|
+
iconClass: "mapicon-icon_cat",
|
|
16154
|
+
displayWarning: true
|
|
16155
|
+
}
|
|
16156
|
+
};
|
|
16157
|
+
}
|
|
16158
|
+
},
|
|
17643
16159
|
/**
|
|
17644
16160
|
* State containing state of the flatmap.
|
|
17645
16161
|
*/
|
|
@@ -17678,8 +16194,8 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
17678
16194
|
});
|
|
17679
16195
|
// CONCATENATED MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=script&lang=js&
|
|
17680
16196
|
/* harmony default export */ var components_MultiFlatmapVuervue_type_script_lang_js_ = (MultiFlatmapVuervue_type_script_lang_js_);
|
|
17681
|
-
// EXTERNAL MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=style&index=0&id=
|
|
17682
|
-
var
|
|
16197
|
+
// EXTERNAL MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=style&index=0&id=9bafc316&prod&scoped=true&lang=scss&
|
|
16198
|
+
var MultiFlatmapVuervue_type_style_index_0_id_9bafc316_prod_scoped_true_lang_scss_ = __webpack_require__("f798");
|
|
17683
16199
|
|
|
17684
16200
|
// CONCATENATED MODULE: ./src/components/MultiFlatmapVuer.vue
|
|
17685
16201
|
|
|
@@ -17692,11 +16208,11 @@ var MultiFlatmapVuervue_type_style_index_0_id_0ad8a77b_prod_scoped_true_lang_scs
|
|
|
17692
16208
|
|
|
17693
16209
|
var MultiFlatmapVuer_component = normalizeComponent(
|
|
17694
16210
|
components_MultiFlatmapVuervue_type_script_lang_js_,
|
|
17695
|
-
|
|
17696
|
-
|
|
16211
|
+
MultiFlatmapVuervue_type_template_id_9bafc316_scoped_true_render,
|
|
16212
|
+
MultiFlatmapVuervue_type_template_id_9bafc316_scoped_true_staticRenderFns,
|
|
17697
16213
|
false,
|
|
17698
16214
|
null,
|
|
17699
|
-
"
|
|
16215
|
+
"9bafc316",
|
|
17700
16216
|
null
|
|
17701
16217
|
|
|
17702
16218
|
)
|
|
@@ -17722,13 +16238,6 @@ module.exports = require("core-js/modules/es.string.includes.js");
|
|
|
17722
16238
|
|
|
17723
16239
|
/***/ }),
|
|
17724
16240
|
|
|
17725
|
-
/***/ "fd71":
|
|
17726
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
17727
|
-
|
|
17728
|
-
// extracted by mini-css-extract-plugin
|
|
17729
|
-
|
|
17730
|
-
/***/ }),
|
|
17731
|
-
|
|
17732
16241
|
/***/ "fe07":
|
|
17733
16242
|
/***/ (function(module, exports, __webpack_require__) {
|
|
17734
16243
|
|