@3dwayfinder/wayfinder-vue-components 1.0.89 → 1.0.93
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.
|
@@ -1873,6 +1873,10 @@ const __vue_component__$e = /*#__PURE__*/normalizeComponent({
|
|
|
1873
1873
|
var script$d = {
|
|
1874
1874
|
name: 'GroupsMenu',
|
|
1875
1875
|
props: {
|
|
1876
|
+
parent: {
|
|
1877
|
+
type: Number,
|
|
1878
|
+
default: -1
|
|
1879
|
+
},
|
|
1876
1880
|
showPOICount: {
|
|
1877
1881
|
type: Boolean,
|
|
1878
1882
|
default: false
|
|
@@ -1927,12 +1931,15 @@ var script$d = {
|
|
|
1927
1931
|
let arr = []; // Copy arr for sorting
|
|
1928
1932
|
|
|
1929
1933
|
let topic;
|
|
1934
|
+
let groups = this.poiGroups;
|
|
1930
1935
|
|
|
1931
|
-
for (let i in
|
|
1932
|
-
topic =
|
|
1936
|
+
for (let i in groups) {
|
|
1937
|
+
topic = groups[i];
|
|
1933
1938
|
|
|
1934
1939
|
if (topic && topic.getShowInMenu() && topic.getName(this.language)) {
|
|
1935
|
-
|
|
1940
|
+
if (!(this.parent > -1 && parseInt(topic.parent_id) !== this.parent)) {
|
|
1941
|
+
arr.push(topic);
|
|
1942
|
+
}
|
|
1936
1943
|
}
|
|
1937
1944
|
}
|
|
1938
1945
|
|
|
@@ -2039,6 +2046,8 @@ var __vue_render__$d = function () {
|
|
|
2039
2046
|
}), _vm._v(" "), _vm.showPOICount ? _c('label', {
|
|
2040
2047
|
staticClass: "count"
|
|
2041
2048
|
}, [_vm._v(_vm._s(topic.pois.length))]) : _vm._e()];
|
|
2049
|
+
}, {
|
|
2050
|
+
"group": topic
|
|
2042
2051
|
})], 2), _vm._v(" "), topic.childGroups.length > 0 && _vm.showSubGroups ? _c('ul', {
|
|
2043
2052
|
directives: [{
|
|
2044
2053
|
name: "show",
|
|
@@ -2058,6 +2067,8 @@ var __vue_render__$d = function () {
|
|
|
2058
2067
|
}), _vm._v(" "), _vm.showPOICount ? _c('label', {
|
|
2059
2068
|
staticClass: "count"
|
|
2060
2069
|
}, [_vm._v(_vm._s(subtopic.pois.length))]) : _vm._e()];
|
|
2070
|
+
}, {
|
|
2071
|
+
"group": subtopic
|
|
2061
2072
|
})], 2);
|
|
2062
2073
|
}), 0) : _vm._e(), _vm._v(" "), topic.pois.length > 0 && _vm.showPOIs ? _c('ul', {
|
|
2063
2074
|
directives: [{
|
|
@@ -2102,8 +2113,8 @@ var __vue_staticRenderFns__$d = [];
|
|
|
2102
2113
|
|
|
2103
2114
|
const __vue_inject_styles__$d = function (inject) {
|
|
2104
2115
|
if (!inject) return;
|
|
2105
|
-
inject("data-v-
|
|
2106
|
-
source: ".az-menu[data-v-
|
|
2116
|
+
inject("data-v-616120b3_0", {
|
|
2117
|
+
source: ".az-menu[data-v-616120b3]{overflow:hidden;user-select:none}.az-menu .list-item[data-v-616120b3]{list-style:none}.az-menu ul[data-v-616120b3]{margin:0;padding:0}",
|
|
2107
2118
|
map: undefined,
|
|
2108
2119
|
media: undefined
|
|
2109
2120
|
});
|
|
@@ -2111,7 +2122,7 @@ const __vue_inject_styles__$d = function (inject) {
|
|
|
2111
2122
|
/* scoped */
|
|
2112
2123
|
|
|
2113
2124
|
|
|
2114
|
-
const __vue_scope_id__$d = "data-v-
|
|
2125
|
+
const __vue_scope_id__$d = "data-v-616120b3";
|
|
2115
2126
|
/* module identifier */
|
|
2116
2127
|
|
|
2117
2128
|
const __vue_module_identifier__$d = undefined;
|
|
@@ -2999,95 +3010,402 @@ const __vue_component__$6 = /*#__PURE__*/normalizeComponent({
|
|
|
2999
3010
|
staticRenderFns: __vue_staticRenderFns__$6
|
|
3000
3011
|
}, __vue_inject_styles__$6, __vue_script__$6, __vue_scope_id__$6, __vue_is_functional_template__$6, __vue_module_identifier__$6, false, createInjector, undefined, undefined);
|
|
3001
3012
|
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3013
|
+
//
|
|
3014
|
+
//
|
|
3015
|
+
//
|
|
3016
|
+
//
|
|
3017
|
+
//
|
|
3018
|
+
//
|
|
3019
|
+
//
|
|
3020
|
+
//
|
|
3021
|
+
var script$5 = {
|
|
3022
|
+
name: 'Tabs',
|
|
3023
|
+
props: {
|
|
3024
|
+
activeTab: '',
|
|
3025
|
+
animate: {
|
|
3026
|
+
type: String,
|
|
3027
|
+
default: "none"
|
|
3028
|
+
}
|
|
3029
|
+
},
|
|
3030
|
+
data: () => ({
|
|
3031
|
+
tabs: [],
|
|
3032
|
+
activeTabIndex: 0,
|
|
3033
|
+
currentTab: null
|
|
3034
|
+
}),
|
|
3012
3035
|
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
3036
|
+
created() {
|
|
3037
|
+
this.tabs = this.$children;
|
|
3038
|
+
},
|
|
3017
3039
|
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3040
|
+
mounted() {
|
|
3041
|
+
if (this.$props.activeTab) {
|
|
3042
|
+
this.activate(this.$props.activeTab);
|
|
3043
|
+
} else {
|
|
3044
|
+
console.log('no active tab');
|
|
3045
|
+
}
|
|
3046
|
+
},
|
|
3022
3047
|
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3048
|
+
watch: {
|
|
3049
|
+
activeTab: function (newVal) {
|
|
3050
|
+
// watch it
|
|
3051
|
+
if (newVal) {
|
|
3052
|
+
this.activate(newVal);
|
|
3053
|
+
}
|
|
3054
|
+
}
|
|
3055
|
+
},
|
|
3056
|
+
methods: {
|
|
3057
|
+
activate() {
|
|
3058
|
+
this.currentTab = null;
|
|
3059
|
+
|
|
3060
|
+
for (var tab in this.tabs) {
|
|
3061
|
+
if (this.tabs[tab].name == this.$props.activeTab) {
|
|
3062
|
+
this.tabs[tab].isActive = true;
|
|
3063
|
+
this.$emit('tabChanged', this.tabs[tab]);
|
|
3064
|
+
this.currentTab = this.tabs[tab];
|
|
3065
|
+
this.activeTabIndex = tab;
|
|
3066
|
+
} else {
|
|
3067
|
+
this.tabs[tab].isActive = false;
|
|
3068
|
+
}
|
|
3069
|
+
}
|
|
3070
|
+
}
|
|
3071
|
+
|
|
3072
|
+
}
|
|
3028
3073
|
};
|
|
3029
3074
|
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
3034
|
-
}
|
|
3075
|
+
/* script */
|
|
3076
|
+
const __vue_script__$5 = script$5;
|
|
3077
|
+
/* template */
|
|
3035
3078
|
|
|
3036
|
-
var
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3079
|
+
var __vue_render__$5 = function () {
|
|
3080
|
+
var _vm = this;
|
|
3081
|
+
|
|
3082
|
+
var _h = _vm.$createElement;
|
|
3083
|
+
|
|
3084
|
+
var _c = _vm._self._c || _h;
|
|
3085
|
+
|
|
3086
|
+
return _c('div', {
|
|
3087
|
+
ref: "tabs",
|
|
3088
|
+
staticClass: "wf-component tabs",
|
|
3089
|
+
class: ['tabs-' + _vm.activeTab, 'tabs-index-' + _vm.activeTabIndex, 'tabs-animate-' + _vm.animate]
|
|
3090
|
+
}, [_c('div', {
|
|
3091
|
+
staticClass: "tabs-content"
|
|
3092
|
+
}, [_vm._t("default")], 2)]);
|
|
3045
3093
|
};
|
|
3046
3094
|
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
}
|
|
3095
|
+
var __vue_staticRenderFns__$5 = [];
|
|
3096
|
+
/* style */
|
|
3050
3097
|
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3098
|
+
const __vue_inject_styles__$5 = function (inject) {
|
|
3099
|
+
if (!inject) return;
|
|
3100
|
+
inject("data-v-38607192_0", {
|
|
3101
|
+
source: ".tabs[data-v-38607192]{overflow:hidden;position:relative;width:100%;height:100%}.tabs-content[data-v-38607192]{height:100%;width:auto;display:flex;flex-direction:row;margin-left:0;transform:translateX(0) translateY(0)}.tabs.tabs-animate-vertical .tabs-content[data-v-38607192]{flex-direction:column}.tab[data-v-38607192]{opacity:0;transition:opacity .3s ease-out .5s}.tab.active[data-v-38607192]{opacity:1;transition:opacity .3s ease-in}.tabs.tabs-animate-horisontal .tabs-content[data-v-38607192],.tabs.tabs-animate-vertical .tabs-content[data-v-38607192]{transition:transform .5s ease-in-out .2s}.tabs-index-1 .tabs-content[data-v-38607192]{transform:translateX(-100%)}.tabs-index-2 .tabs-content[data-v-38607192]{transform:translateX(-200%)}.tabs-index-3 .tabs-content[data-v-38607192]{transform:translateX(-300%)}.tabs-index-4 .tabs-content[data-v-38607192]{transform:translateX(-400%)}.tabs-index-5 .tabs-content[data-v-38607192]{transform:translateX(-500%)}.tabs.tabs-animate-vertical.tabs-index-1 .tabs-content[data-v-38607192]{transform:translateX(0) translateY(-100%)!important}.tabs.tabs-animate-vertical.tabs-index-2 .tabs-content[data-v-38607192]{transform:translateX(0) translateY(-200%)!important}.tabs.tabs-animate-vertical.tabs-index-3 .tabs-content[data-v-38607192]{transform:translateX(0) translateY(-300%)!important}.tabs.tabs-animate-vertical.tabs-index-4 .tabs-content[data-v-38607192]{transform:translateX(0) translateY(-400%)!important}.tabs.tabs-animate-vertical.tabs-index-5 .tabs-content[data-v-38607192]{transform:translateX(0) translateY(-500%)!important}",
|
|
3102
|
+
map: undefined,
|
|
3103
|
+
media: undefined
|
|
3104
|
+
});
|
|
3105
|
+
};
|
|
3106
|
+
/* scoped */
|
|
3056
3107
|
|
|
3057
|
-
function getNow() {
|
|
3058
|
-
return window.performance && window.performance.now
|
|
3059
|
-
? window.performance.now() + window.performance.timing.navigationStart
|
|
3060
|
-
: +new Date();
|
|
3061
|
-
}
|
|
3062
|
-
function extend$1(target) {
|
|
3063
|
-
var rest = [];
|
|
3064
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
3065
|
-
rest[_i - 1] = arguments[_i];
|
|
3066
|
-
}
|
|
3067
|
-
for (var i = 0; i < rest.length; i++) {
|
|
3068
|
-
var source = rest[i];
|
|
3069
|
-
for (var key in source) {
|
|
3070
|
-
target[key] = source[key];
|
|
3071
|
-
}
|
|
3072
|
-
}
|
|
3073
|
-
return target;
|
|
3074
|
-
}
|
|
3075
|
-
function isUndef(v) {
|
|
3076
|
-
return v === undefined || v === null;
|
|
3077
|
-
}
|
|
3078
3108
|
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3109
|
+
const __vue_scope_id__$5 = "data-v-38607192";
|
|
3110
|
+
/* module identifier */
|
|
3111
|
+
|
|
3112
|
+
const __vue_module_identifier__$5 = undefined;
|
|
3113
|
+
/* functional template */
|
|
3114
|
+
|
|
3115
|
+
const __vue_is_functional_template__$5 = false;
|
|
3116
|
+
/* style inject SSR */
|
|
3117
|
+
|
|
3118
|
+
/* style inject shadow dom */
|
|
3119
|
+
|
|
3120
|
+
const __vue_component__$5 = /*#__PURE__*/normalizeComponent({
|
|
3121
|
+
render: __vue_render__$5,
|
|
3122
|
+
staticRenderFns: __vue_staticRenderFns__$5
|
|
3123
|
+
}, __vue_inject_styles__$5, __vue_script__$5, __vue_scope_id__$5, __vue_is_functional_template__$5, __vue_module_identifier__$5, false, createInjector, undefined, undefined);
|
|
3124
|
+
|
|
3125
|
+
//
|
|
3126
|
+
//
|
|
3127
|
+
//
|
|
3128
|
+
//
|
|
3129
|
+
//
|
|
3130
|
+
//
|
|
3131
|
+
var script$4 = {
|
|
3132
|
+
name: 'Tab',
|
|
3133
|
+
props: {
|
|
3134
|
+
name: ''
|
|
3135
|
+
},
|
|
3136
|
+
data: () => ({
|
|
3137
|
+
isActive: false,
|
|
3138
|
+
isVisible: true
|
|
3139
|
+
}),
|
|
3140
|
+
|
|
3141
|
+
created() {},
|
|
3142
|
+
|
|
3143
|
+
methods: {}
|
|
3144
|
+
};
|
|
3145
|
+
|
|
3146
|
+
/* script */
|
|
3147
|
+
const __vue_script__$4 = script$4;
|
|
3148
|
+
/* template */
|
|
3149
|
+
|
|
3150
|
+
var __vue_render__$4 = function () {
|
|
3151
|
+
var _vm = this;
|
|
3152
|
+
|
|
3153
|
+
var _h = _vm.$createElement;
|
|
3154
|
+
|
|
3155
|
+
var _c = _vm._self._c || _h;
|
|
3156
|
+
|
|
3157
|
+
return _c('section', {
|
|
3158
|
+
staticClass: "wf-component tab",
|
|
3159
|
+
class: {
|
|
3160
|
+
'active': _vm.isActive
|
|
3084
3161
|
}
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3162
|
+
}, [_vm._t("default")], 2);
|
|
3163
|
+
};
|
|
3164
|
+
|
|
3165
|
+
var __vue_staticRenderFns__$4 = [];
|
|
3166
|
+
/* style */
|
|
3167
|
+
|
|
3168
|
+
const __vue_inject_styles__$4 = function (inject) {
|
|
3169
|
+
if (!inject) return;
|
|
3170
|
+
inject("data-v-d4663578_0", {
|
|
3171
|
+
source: ".tab[data-v-d4663578]{width:100%;height:100%;overflow:hidden;flex-grow:1;flex-shrink:0}",
|
|
3172
|
+
map: undefined,
|
|
3173
|
+
media: undefined
|
|
3174
|
+
});
|
|
3175
|
+
};
|
|
3176
|
+
/* scoped */
|
|
3177
|
+
|
|
3178
|
+
|
|
3179
|
+
const __vue_scope_id__$4 = "data-v-d4663578";
|
|
3180
|
+
/* module identifier */
|
|
3181
|
+
|
|
3182
|
+
const __vue_module_identifier__$4 = undefined;
|
|
3183
|
+
/* functional template */
|
|
3184
|
+
|
|
3185
|
+
const __vue_is_functional_template__$4 = false;
|
|
3186
|
+
/* style inject SSR */
|
|
3187
|
+
|
|
3188
|
+
/* style inject shadow dom */
|
|
3189
|
+
|
|
3190
|
+
const __vue_component__$4 = /*#__PURE__*/normalizeComponent({
|
|
3191
|
+
render: __vue_render__$4,
|
|
3192
|
+
staticRenderFns: __vue_staticRenderFns__$4
|
|
3193
|
+
}, __vue_inject_styles__$4, __vue_script__$4, __vue_scope_id__$4, __vue_is_functional_template__$4, __vue_module_identifier__$4, false, createInjector, undefined, undefined);
|
|
3194
|
+
|
|
3195
|
+
//
|
|
3196
|
+
var script$3 = {
|
|
3197
|
+
name: 'Tabs',
|
|
3198
|
+
computed: { ...mapState(['currentTab', 'searchVisible', 'mobile', 'landscape', 'shortcuts', 'language'])
|
|
3199
|
+
},
|
|
3200
|
+
|
|
3201
|
+
data() {
|
|
3202
|
+
return {
|
|
3203
|
+
toilet: false,
|
|
3204
|
+
toiletsIcon: false
|
|
3205
|
+
};
|
|
3206
|
+
},
|
|
3207
|
+
|
|
3208
|
+
methods: {
|
|
3209
|
+
switchTab(tab) {
|
|
3210
|
+
this.$emit('switchTab', tab);
|
|
3211
|
+
}
|
|
3212
|
+
|
|
3213
|
+
}
|
|
3214
|
+
};
|
|
3215
|
+
|
|
3216
|
+
/* script */
|
|
3217
|
+
const __vue_script__$3 = script$3;
|
|
3218
|
+
/* template */
|
|
3219
|
+
|
|
3220
|
+
var __vue_render__$3 = function () {
|
|
3221
|
+
var _vm = this;
|
|
3222
|
+
|
|
3223
|
+
var _h = _vm.$createElement;
|
|
3224
|
+
|
|
3225
|
+
var _c = _vm._self._c || _h;
|
|
3226
|
+
|
|
3227
|
+
return _c('div', {
|
|
3228
|
+
staticClass: "wf-component tab-buttons"
|
|
3229
|
+
}, [_c('div', {
|
|
3230
|
+
directives: [{
|
|
3231
|
+
name: "show",
|
|
3232
|
+
rawName: "v-show",
|
|
3233
|
+
value: _vm.mobile && !_vm.landscape,
|
|
3234
|
+
expression: "mobile && !landscape"
|
|
3235
|
+
}],
|
|
3236
|
+
staticClass: "item tab-map",
|
|
3237
|
+
class: {
|
|
3238
|
+
active: _vm.currentTab == 'map'
|
|
3239
|
+
},
|
|
3240
|
+
attrs: {
|
|
3241
|
+
"data-translation-element": "map"
|
|
3242
|
+
},
|
|
3243
|
+
on: {
|
|
3244
|
+
"click": function ($event) {
|
|
3245
|
+
return _vm.switchTab('map');
|
|
3246
|
+
}
|
|
3247
|
+
}
|
|
3248
|
+
}), _vm._v(" "), _c('div', {
|
|
3249
|
+
staticClass: "item tab-topics",
|
|
3250
|
+
class: {
|
|
3251
|
+
active: _vm.currentTab == 'groups' || _vm.currentTab == 'group-pois'
|
|
3252
|
+
},
|
|
3253
|
+
attrs: {
|
|
3254
|
+
"data-translation-element": "topics"
|
|
3255
|
+
},
|
|
3256
|
+
on: {
|
|
3257
|
+
"click": function ($event) {
|
|
3258
|
+
return _vm.switchTab('groups');
|
|
3259
|
+
}
|
|
3260
|
+
}
|
|
3261
|
+
}), _vm._v(" "), _c('div', {
|
|
3262
|
+
staticClass: "item tab-az",
|
|
3263
|
+
class: {
|
|
3264
|
+
active: _vm.currentTab == 'az'
|
|
3265
|
+
},
|
|
3266
|
+
attrs: {
|
|
3267
|
+
"data-translation-element": "az"
|
|
3268
|
+
},
|
|
3269
|
+
on: {
|
|
3270
|
+
"click": function ($event) {
|
|
3271
|
+
return _vm.switchTab('az');
|
|
3272
|
+
}
|
|
3273
|
+
}
|
|
3274
|
+
}), _vm._v(" "), _c('div', {
|
|
3275
|
+
staticClass: "item tab-search",
|
|
3276
|
+
class: {
|
|
3277
|
+
active: _vm.currentTab == 'search'
|
|
3278
|
+
},
|
|
3279
|
+
attrs: {
|
|
3280
|
+
"data-translation-element": "search"
|
|
3281
|
+
},
|
|
3282
|
+
on: {
|
|
3283
|
+
"click": function ($event) {
|
|
3284
|
+
return _vm.switchTab('search');
|
|
3285
|
+
}
|
|
3286
|
+
}
|
|
3287
|
+
})]);
|
|
3288
|
+
};
|
|
3289
|
+
|
|
3290
|
+
var __vue_staticRenderFns__$3 = [];
|
|
3291
|
+
/* style */
|
|
3292
|
+
|
|
3293
|
+
const __vue_inject_styles__$3 = function (inject) {
|
|
3294
|
+
if (!inject) return;
|
|
3295
|
+
inject("data-v-d346ebf2_0", {
|
|
3296
|
+
source: ".tab-buttons[data-v-d346ebf2]{display:flex;align-content:stretch;justify-content:space-between}.tab-buttons .item[data-v-d346ebf2]{background-size:auto 30%;background-repeat:no-repeat}",
|
|
3297
|
+
map: undefined,
|
|
3298
|
+
media: undefined
|
|
3299
|
+
});
|
|
3300
|
+
};
|
|
3301
|
+
/* scoped */
|
|
3302
|
+
|
|
3303
|
+
|
|
3304
|
+
const __vue_scope_id__$3 = "data-v-d346ebf2";
|
|
3305
|
+
/* module identifier */
|
|
3306
|
+
|
|
3307
|
+
const __vue_module_identifier__$3 = undefined;
|
|
3308
|
+
/* functional template */
|
|
3309
|
+
|
|
3310
|
+
const __vue_is_functional_template__$3 = false;
|
|
3311
|
+
/* style inject SSR */
|
|
3312
|
+
|
|
3313
|
+
/* style inject shadow dom */
|
|
3314
|
+
|
|
3315
|
+
const __vue_component__$3 = /*#__PURE__*/normalizeComponent({
|
|
3316
|
+
render: __vue_render__$3,
|
|
3317
|
+
staticRenderFns: __vue_staticRenderFns__$3
|
|
3318
|
+
}, __vue_inject_styles__$3, __vue_script__$3, __vue_scope_id__$3, __vue_is_functional_template__$3, __vue_module_identifier__$3, false, createInjector, undefined, undefined);
|
|
3319
|
+
|
|
3320
|
+
/*!
|
|
3321
|
+
* better-scroll / core
|
|
3322
|
+
* (c) 2016-2019 ustbhuangyi
|
|
3323
|
+
* Released under the MIT License.
|
|
3324
|
+
*/
|
|
3325
|
+
/*! *****************************************************************************
|
|
3326
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3327
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
3328
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
3329
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
3330
|
+
|
|
3331
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
3332
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
3333
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
3334
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
3335
|
+
|
|
3336
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
3337
|
+
and limitations under the License.
|
|
3338
|
+
***************************************************************************** */
|
|
3339
|
+
/* global Reflect, Promise */
|
|
3340
|
+
|
|
3341
|
+
var extendStatics = function(d, b) {
|
|
3342
|
+
extendStatics = Object.setPrototypeOf ||
|
|
3343
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
3344
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
3345
|
+
return extendStatics(d, b);
|
|
3346
|
+
};
|
|
3347
|
+
|
|
3348
|
+
function __extends(d, b) {
|
|
3349
|
+
extendStatics(d, b);
|
|
3350
|
+
function __() { this.constructor = d; }
|
|
3351
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
3352
|
+
}
|
|
3353
|
+
|
|
3354
|
+
var __assign = function() {
|
|
3355
|
+
__assign = Object.assign || function __assign(t) {
|
|
3356
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
3357
|
+
s = arguments[i];
|
|
3358
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
3359
|
+
}
|
|
3360
|
+
return t;
|
|
3361
|
+
};
|
|
3362
|
+
return __assign.apply(this, arguments);
|
|
3363
|
+
};
|
|
3364
|
+
|
|
3365
|
+
function warn$2(msg) {
|
|
3366
|
+
console.error("[BScroll warn]: " + msg);
|
|
3367
|
+
}
|
|
3368
|
+
|
|
3369
|
+
// ssr support
|
|
3370
|
+
var inBrowser$2 = typeof window !== 'undefined';
|
|
3371
|
+
var ua$2 = inBrowser$2 && navigator.userAgent.toLowerCase();
|
|
3372
|
+
ua$2 && /wechatdevtools/.test(ua$2);
|
|
3373
|
+
var isAndroid = ua$2 && ua$2.indexOf('android') > 0;
|
|
3374
|
+
|
|
3375
|
+
function getNow() {
|
|
3376
|
+
return window.performance && window.performance.now
|
|
3377
|
+
? window.performance.now() + window.performance.timing.navigationStart
|
|
3378
|
+
: +new Date();
|
|
3379
|
+
}
|
|
3380
|
+
function extend$1(target) {
|
|
3381
|
+
var rest = [];
|
|
3382
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
3383
|
+
rest[_i - 1] = arguments[_i];
|
|
3384
|
+
}
|
|
3385
|
+
for (var i = 0; i < rest.length; i++) {
|
|
3386
|
+
var source = rest[i];
|
|
3387
|
+
for (var key in source) {
|
|
3388
|
+
target[key] = source[key];
|
|
3389
|
+
}
|
|
3390
|
+
}
|
|
3391
|
+
return target;
|
|
3392
|
+
}
|
|
3393
|
+
function isUndef(v) {
|
|
3394
|
+
return v === undefined || v === null;
|
|
3395
|
+
}
|
|
3396
|
+
|
|
3397
|
+
var elementStyle$2 = (inBrowser$2 &&
|
|
3398
|
+
document.createElement('div').style);
|
|
3399
|
+
var vendor$2 = (function () {
|
|
3400
|
+
if (!inBrowser$2) {
|
|
3401
|
+
return false;
|
|
3402
|
+
}
|
|
3403
|
+
var transformNames = {
|
|
3404
|
+
webkit: 'webkitTransform',
|
|
3405
|
+
Moz: 'MozTransform',
|
|
3406
|
+
O: 'OTransform',
|
|
3407
|
+
ms: 'msTransform',
|
|
3408
|
+
standard: 'transform'
|
|
3091
3409
|
};
|
|
3092
3410
|
for (var key in transformNames) {
|
|
3093
3411
|
if (elementStyle$2[transformNames[key]] !== undefined) {
|
|
@@ -6058,354 +6376,6 @@ var MouseWheel = /** @class */ (function () {
|
|
|
6058
6376
|
return MouseWheel;
|
|
6059
6377
|
}());
|
|
6060
6378
|
|
|
6061
|
-
//
|
|
6062
|
-
BScroll.use(ScrollBar);
|
|
6063
|
-
BScroll.use(MouseWheel);
|
|
6064
|
-
var script$5 = {
|
|
6065
|
-
name: 'Tabs',
|
|
6066
|
-
props: {
|
|
6067
|
-
activeTab: ''
|
|
6068
|
-
},
|
|
6069
|
-
data: () => ({
|
|
6070
|
-
tabs: [],
|
|
6071
|
-
activeTabIndex: 0,
|
|
6072
|
-
currentTab: null,
|
|
6073
|
-
scroll: null,
|
|
6074
|
-
scrollOptions: {
|
|
6075
|
-
scrollbar: {
|
|
6076
|
-
fade: false,
|
|
6077
|
-
interactive: true
|
|
6078
|
-
},
|
|
6079
|
-
click: true,
|
|
6080
|
-
mouseWheel: {
|
|
6081
|
-
speed: 20,
|
|
6082
|
-
invert: false
|
|
6083
|
-
}
|
|
6084
|
-
}
|
|
6085
|
-
}),
|
|
6086
|
-
|
|
6087
|
-
created() {
|
|
6088
|
-
this.tabs = this.$children;
|
|
6089
|
-
},
|
|
6090
|
-
|
|
6091
|
-
updated() {
|
|
6092
|
-
this.$nextTick(() => {
|
|
6093
|
-
if (this.scroll && this.currentTab != null) {
|
|
6094
|
-
this.scroll.refresh();
|
|
6095
|
-
}
|
|
6096
|
-
});
|
|
6097
|
-
},
|
|
6098
|
-
|
|
6099
|
-
mounted() {
|
|
6100
|
-
if (this.$props.activeTab) {
|
|
6101
|
-
this.activate(this.$props.activeTab);
|
|
6102
|
-
} else {
|
|
6103
|
-
console.log('no active tab');
|
|
6104
|
-
}
|
|
6105
|
-
|
|
6106
|
-
this.$nextTick(() => {
|
|
6107
|
-
if (this.currentTab != null) {
|
|
6108
|
-
this.scroll = new BScroll(this.$refs.tabs, this.scrollOptions);
|
|
6109
|
-
}
|
|
6110
|
-
});
|
|
6111
|
-
},
|
|
6112
|
-
|
|
6113
|
-
watch: {
|
|
6114
|
-
activeTab: function (newVal) {
|
|
6115
|
-
// watch it
|
|
6116
|
-
if (newVal) {
|
|
6117
|
-
this.activate(newVal);
|
|
6118
|
-
}
|
|
6119
|
-
}
|
|
6120
|
-
},
|
|
6121
|
-
methods: {
|
|
6122
|
-
activate() {
|
|
6123
|
-
this.currentTab = null;
|
|
6124
|
-
|
|
6125
|
-
for (var tab in this.tabs) {
|
|
6126
|
-
console.log('tab', tab);
|
|
6127
|
-
|
|
6128
|
-
if (this.tabs[tab].name == this.$props.activeTab) {
|
|
6129
|
-
this.tabs[tab].isActive = true;
|
|
6130
|
-
this.$emit('tabChanged', this.tabs[tab]);
|
|
6131
|
-
this.currentTab = this.tabs[tab];
|
|
6132
|
-
this.activeTabIndex = tab;
|
|
6133
|
-
} else {
|
|
6134
|
-
this.tabs[tab].isActive = false;
|
|
6135
|
-
}
|
|
6136
|
-
}
|
|
6137
|
-
|
|
6138
|
-
if (this.$props.activeTab !== "search") {
|
|
6139
|
-
this.makeScroll();
|
|
6140
|
-
}
|
|
6141
|
-
},
|
|
6142
|
-
|
|
6143
|
-
makeScroll() {
|
|
6144
|
-
this.$nextTick(() => {
|
|
6145
|
-
this.$nextTick(() => {
|
|
6146
|
-
if (this.scroll) {
|
|
6147
|
-
this.scroll.destroy();
|
|
6148
|
-
this.scroll = null;
|
|
6149
|
-
}
|
|
6150
|
-
|
|
6151
|
-
if (this.currentTab != null) {
|
|
6152
|
-
this.scroll = new BScroll(this.$refs.tabs, this.scrollOptions);
|
|
6153
|
-
}
|
|
6154
|
-
});
|
|
6155
|
-
});
|
|
6156
|
-
},
|
|
6157
|
-
|
|
6158
|
-
move() {//console.log('move');
|
|
6159
|
-
}
|
|
6160
|
-
|
|
6161
|
-
}
|
|
6162
|
-
};
|
|
6163
|
-
|
|
6164
|
-
/* script */
|
|
6165
|
-
const __vue_script__$5 = script$5;
|
|
6166
|
-
/* template */
|
|
6167
|
-
|
|
6168
|
-
var __vue_render__$5 = function () {
|
|
6169
|
-
var _vm = this;
|
|
6170
|
-
|
|
6171
|
-
var _h = _vm.$createElement;
|
|
6172
|
-
|
|
6173
|
-
var _c = _vm._self._c || _h;
|
|
6174
|
-
|
|
6175
|
-
return _c('div', {
|
|
6176
|
-
ref: "tabs",
|
|
6177
|
-
staticClass: "wf-component tabs",
|
|
6178
|
-
class: ['tabs-' + _vm.activeTab, 'tabs-index-' + _vm.activeTabIndex]
|
|
6179
|
-
}, [_c('div', {
|
|
6180
|
-
staticClass: "tabs-content"
|
|
6181
|
-
}, [_vm._t("default")], 2)]);
|
|
6182
|
-
};
|
|
6183
|
-
|
|
6184
|
-
var __vue_staticRenderFns__$5 = [];
|
|
6185
|
-
/* style */
|
|
6186
|
-
|
|
6187
|
-
const __vue_inject_styles__$5 = function (inject) {
|
|
6188
|
-
if (!inject) return;
|
|
6189
|
-
inject("data-v-31904bda_0", {
|
|
6190
|
-
source: ".tabs[data-v-31904bda]{overflow:hidden;position:relative;width:100%;height:100%}.tabs-content[data-v-31904bda]{height:100%;width:auto;display:flex;flex-direction:row;margin-left:0;transform:translateX(0);transition:transform .5s ease-in-out}.tabs-index-1 .tabs-content[data-v-31904bda]{transform:translateX(-100%)}.tabs-index-2 .tabs-content[data-v-31904bda]{transform:translateX(-200%)}.tabs-index-3 .tabs-content[data-v-31904bda]{transform:translateX(-300%)}.tabs-index-4 .tabs-content[data-v-31904bda]{transform:translateX(-400%)}.tabs-index-5 .tabs-content[data-v-31904bda]{transform:translateX(-500%)}",
|
|
6191
|
-
map: undefined,
|
|
6192
|
-
media: undefined
|
|
6193
|
-
});
|
|
6194
|
-
};
|
|
6195
|
-
/* scoped */
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
const __vue_scope_id__$5 = "data-v-31904bda";
|
|
6199
|
-
/* module identifier */
|
|
6200
|
-
|
|
6201
|
-
const __vue_module_identifier__$5 = undefined;
|
|
6202
|
-
/* functional template */
|
|
6203
|
-
|
|
6204
|
-
const __vue_is_functional_template__$5 = false;
|
|
6205
|
-
/* style inject SSR */
|
|
6206
|
-
|
|
6207
|
-
/* style inject shadow dom */
|
|
6208
|
-
|
|
6209
|
-
const __vue_component__$5 = /*#__PURE__*/normalizeComponent({
|
|
6210
|
-
render: __vue_render__$5,
|
|
6211
|
-
staticRenderFns: __vue_staticRenderFns__$5
|
|
6212
|
-
}, __vue_inject_styles__$5, __vue_script__$5, __vue_scope_id__$5, __vue_is_functional_template__$5, __vue_module_identifier__$5, false, createInjector, undefined, undefined);
|
|
6213
|
-
|
|
6214
|
-
//
|
|
6215
|
-
//
|
|
6216
|
-
//
|
|
6217
|
-
//
|
|
6218
|
-
//
|
|
6219
|
-
//
|
|
6220
|
-
var script$4 = {
|
|
6221
|
-
name: 'Tab',
|
|
6222
|
-
props: {
|
|
6223
|
-
name: ''
|
|
6224
|
-
},
|
|
6225
|
-
data: () => ({
|
|
6226
|
-
isActive: false,
|
|
6227
|
-
isVisible: true
|
|
6228
|
-
}),
|
|
6229
|
-
|
|
6230
|
-
created() {},
|
|
6231
|
-
|
|
6232
|
-
methods: {}
|
|
6233
|
-
};
|
|
6234
|
-
|
|
6235
|
-
/* script */
|
|
6236
|
-
const __vue_script__$4 = script$4;
|
|
6237
|
-
/* template */
|
|
6238
|
-
|
|
6239
|
-
var __vue_render__$4 = function () {
|
|
6240
|
-
var _vm = this;
|
|
6241
|
-
|
|
6242
|
-
var _h = _vm.$createElement;
|
|
6243
|
-
|
|
6244
|
-
var _c = _vm._self._c || _h;
|
|
6245
|
-
|
|
6246
|
-
return _c('section', {
|
|
6247
|
-
staticClass: "wf-component tab",
|
|
6248
|
-
class: {
|
|
6249
|
-
'active': _vm.isActive
|
|
6250
|
-
}
|
|
6251
|
-
}, [_vm._t("default")], 2);
|
|
6252
|
-
};
|
|
6253
|
-
|
|
6254
|
-
var __vue_staticRenderFns__$4 = [];
|
|
6255
|
-
/* style */
|
|
6256
|
-
|
|
6257
|
-
const __vue_inject_styles__$4 = function (inject) {
|
|
6258
|
-
if (!inject) return;
|
|
6259
|
-
inject("data-v-d4663578_0", {
|
|
6260
|
-
source: ".tab[data-v-d4663578]{width:100%;height:100%;overflow:hidden;flex-grow:1;flex-shrink:0}",
|
|
6261
|
-
map: undefined,
|
|
6262
|
-
media: undefined
|
|
6263
|
-
});
|
|
6264
|
-
};
|
|
6265
|
-
/* scoped */
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
const __vue_scope_id__$4 = "data-v-d4663578";
|
|
6269
|
-
/* module identifier */
|
|
6270
|
-
|
|
6271
|
-
const __vue_module_identifier__$4 = undefined;
|
|
6272
|
-
/* functional template */
|
|
6273
|
-
|
|
6274
|
-
const __vue_is_functional_template__$4 = false;
|
|
6275
|
-
/* style inject SSR */
|
|
6276
|
-
|
|
6277
|
-
/* style inject shadow dom */
|
|
6278
|
-
|
|
6279
|
-
const __vue_component__$4 = /*#__PURE__*/normalizeComponent({
|
|
6280
|
-
render: __vue_render__$4,
|
|
6281
|
-
staticRenderFns: __vue_staticRenderFns__$4
|
|
6282
|
-
}, __vue_inject_styles__$4, __vue_script__$4, __vue_scope_id__$4, __vue_is_functional_template__$4, __vue_module_identifier__$4, false, createInjector, undefined, undefined);
|
|
6283
|
-
|
|
6284
|
-
//
|
|
6285
|
-
var script$3 = {
|
|
6286
|
-
name: 'Tabs',
|
|
6287
|
-
computed: { ...mapState(['currentTab', 'searchVisible', 'mobile', 'landscape', 'shortcuts', 'language'])
|
|
6288
|
-
},
|
|
6289
|
-
|
|
6290
|
-
data() {
|
|
6291
|
-
return {
|
|
6292
|
-
toilet: false,
|
|
6293
|
-
toiletsIcon: false
|
|
6294
|
-
};
|
|
6295
|
-
},
|
|
6296
|
-
|
|
6297
|
-
methods: {
|
|
6298
|
-
switchTab(tab) {
|
|
6299
|
-
this.$emit('switchTab', tab);
|
|
6300
|
-
}
|
|
6301
|
-
|
|
6302
|
-
}
|
|
6303
|
-
};
|
|
6304
|
-
|
|
6305
|
-
/* script */
|
|
6306
|
-
const __vue_script__$3 = script$3;
|
|
6307
|
-
/* template */
|
|
6308
|
-
|
|
6309
|
-
var __vue_render__$3 = function () {
|
|
6310
|
-
var _vm = this;
|
|
6311
|
-
|
|
6312
|
-
var _h = _vm.$createElement;
|
|
6313
|
-
|
|
6314
|
-
var _c = _vm._self._c || _h;
|
|
6315
|
-
|
|
6316
|
-
return _c('div', {
|
|
6317
|
-
staticClass: "wf-component tab-buttons"
|
|
6318
|
-
}, [_c('div', {
|
|
6319
|
-
directives: [{
|
|
6320
|
-
name: "show",
|
|
6321
|
-
rawName: "v-show",
|
|
6322
|
-
value: _vm.mobile && !_vm.landscape,
|
|
6323
|
-
expression: "mobile && !landscape"
|
|
6324
|
-
}],
|
|
6325
|
-
staticClass: "item tab-map",
|
|
6326
|
-
class: {
|
|
6327
|
-
active: _vm.currentTab == 'map'
|
|
6328
|
-
},
|
|
6329
|
-
attrs: {
|
|
6330
|
-
"data-translation-element": "map"
|
|
6331
|
-
},
|
|
6332
|
-
on: {
|
|
6333
|
-
"click": function ($event) {
|
|
6334
|
-
return _vm.switchTab('map');
|
|
6335
|
-
}
|
|
6336
|
-
}
|
|
6337
|
-
}), _vm._v(" "), _c('div', {
|
|
6338
|
-
staticClass: "item tab-topics",
|
|
6339
|
-
class: {
|
|
6340
|
-
active: _vm.currentTab == 'groups' || _vm.currentTab == 'group-pois'
|
|
6341
|
-
},
|
|
6342
|
-
attrs: {
|
|
6343
|
-
"data-translation-element": "topics"
|
|
6344
|
-
},
|
|
6345
|
-
on: {
|
|
6346
|
-
"click": function ($event) {
|
|
6347
|
-
return _vm.switchTab('groups');
|
|
6348
|
-
}
|
|
6349
|
-
}
|
|
6350
|
-
}), _vm._v(" "), _c('div', {
|
|
6351
|
-
staticClass: "item tab-az",
|
|
6352
|
-
class: {
|
|
6353
|
-
active: _vm.currentTab == 'az'
|
|
6354
|
-
},
|
|
6355
|
-
attrs: {
|
|
6356
|
-
"data-translation-element": "az"
|
|
6357
|
-
},
|
|
6358
|
-
on: {
|
|
6359
|
-
"click": function ($event) {
|
|
6360
|
-
return _vm.switchTab('az');
|
|
6361
|
-
}
|
|
6362
|
-
}
|
|
6363
|
-
}), _vm._v(" "), _c('div', {
|
|
6364
|
-
staticClass: "item tab-search",
|
|
6365
|
-
class: {
|
|
6366
|
-
active: _vm.currentTab == 'search'
|
|
6367
|
-
},
|
|
6368
|
-
attrs: {
|
|
6369
|
-
"data-translation-element": "search"
|
|
6370
|
-
},
|
|
6371
|
-
on: {
|
|
6372
|
-
"click": function ($event) {
|
|
6373
|
-
return _vm.switchTab('search');
|
|
6374
|
-
}
|
|
6375
|
-
}
|
|
6376
|
-
})]);
|
|
6377
|
-
};
|
|
6378
|
-
|
|
6379
|
-
var __vue_staticRenderFns__$3 = [];
|
|
6380
|
-
/* style */
|
|
6381
|
-
|
|
6382
|
-
const __vue_inject_styles__$3 = function (inject) {
|
|
6383
|
-
if (!inject) return;
|
|
6384
|
-
inject("data-v-d346ebf2_0", {
|
|
6385
|
-
source: ".tab-buttons[data-v-d346ebf2]{display:flex;align-content:stretch;justify-content:space-between}.tab-buttons .item[data-v-d346ebf2]{background-size:auto 30%;background-repeat:no-repeat}",
|
|
6386
|
-
map: undefined,
|
|
6387
|
-
media: undefined
|
|
6388
|
-
});
|
|
6389
|
-
};
|
|
6390
|
-
/* scoped */
|
|
6391
|
-
|
|
6392
|
-
|
|
6393
|
-
const __vue_scope_id__$3 = "data-v-d346ebf2";
|
|
6394
|
-
/* module identifier */
|
|
6395
|
-
|
|
6396
|
-
const __vue_module_identifier__$3 = undefined;
|
|
6397
|
-
/* functional template */
|
|
6398
|
-
|
|
6399
|
-
const __vue_is_functional_template__$3 = false;
|
|
6400
|
-
/* style inject SSR */
|
|
6401
|
-
|
|
6402
|
-
/* style inject shadow dom */
|
|
6403
|
-
|
|
6404
|
-
const __vue_component__$3 = /*#__PURE__*/normalizeComponent({
|
|
6405
|
-
render: __vue_render__$3,
|
|
6406
|
-
staticRenderFns: __vue_staticRenderFns__$3
|
|
6407
|
-
}, __vue_inject_styles__$3, __vue_script__$3, __vue_scope_id__$3, __vue_is_functional_template__$3, __vue_module_identifier__$3, false, createInjector, undefined, undefined);
|
|
6408
|
-
|
|
6409
6379
|
//
|
|
6410
6380
|
BScroll.use(ScrollBar);
|
|
6411
6381
|
BScroll.use(MouseWheel);
|