adata-ui 0.1.14 → 0.1.15
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/adata-ui.common.js +37 -20
- package/dist/adata-ui.common.js.map +1 -1
- package/dist/adata-ui.umd.js +37 -20
- package/dist/adata-ui.umd.js.map +1 -1
- package/dist/adata-ui.umd.min.js +1 -1
- package/dist/adata-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Header/Profile.vue +9 -5
package/dist/adata-ui.common.js
CHANGED
|
@@ -7007,20 +7007,20 @@ var es_function_name = __webpack_require__("b0c0");
|
|
|
7007
7007
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
|
7008
7008
|
var es_regexp_to_string = __webpack_require__("25f0");
|
|
7009
7009
|
|
|
7010
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"526e57d7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Header/Profile.vue?vue&type=template&id=
|
|
7011
|
-
var
|
|
7010
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"526e57d7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Header/Profile.vue?vue&type=template&id=341137b6&
|
|
7011
|
+
var Profilevue_type_template_id_341137b6_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"profile",class:{ active: _vm.active }},[_c('div',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(function () {_vm.active = false}),expression:"() => {active = false}"}]},[_c('div',{staticClass:"profile__inner"},[(_vm.requestCount !== null && _vm.isAuthenticated)?_c('div',{staticClass:"requests__link"},[_vm._v(" Суточный лимит запросов: "),_c('span',[_vm._v(" "+_vm._s(_vm.requestCount)+" "+_vm._s((_vm.daysRemaining === null || _vm.daysRemaining === '-') ? '' : ("(" + _vm.daysRemaining + ")"))+" ")])]):_vm._e(),_c('div',{staticClass:"profile__item",on:{"click":function($event){_vm.active = !_vm.active}}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isAuthenticated),expression:"isAuthenticated"}],staticClass:"profile__item-link"},[_c('span',{staticClass:"desktop"},[_vm._v(_vm._s(_vm.email))]),_c('svg',{staticClass:"desktop arrow-svg",class:{ rotate: _vm.active },attrs:{"width":"18","height":"18","fill":"#25476AFF","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 16 16"}},[_c('path',{attrs:{"fill":"none","d":"M0 0h16v16H0z"}}),_c('path',{attrs:{"fill":"none","d":"M3 6.5L8 10l5-3.5","stroke":"#2C3E50","stroke-linecap":"round","stroke-linejoin":"round"}})])]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isAuthenticated),expression:"isAuthenticated"}],staticClass:"profile__item-link"},[_c('svg',{staticClass:"user",attrs:{"width":"18","height":"18","fill":"#25476AFF","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M15.5 8a3.5 3.5 0 11-7 0 3.5 3.5 0 017 0zm-1.023 4.344a5 5 0 10-4.954 0C5.757 13.417 3 16.874 3 20.974V21h1.543v-.026c0-4.106 3.339-7.435 7.457-7.435 4.119 0 7.457 3.329 7.457 7.435V21H21v-.026c0-4.1-2.757-7.557-6.523-8.63z","fill":"#2C3E50"}})])]),_c('a',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isAuthenticated),expression:"!isAuthenticated"}],staticClass:"sign",attrs:{"href":_vm.loginUrl}},[_c('svg',{staticClass:"desktop",attrs:{"width":"18","height":"18","fill":"#25476AFF","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 16 16"}},[_c('path',{attrs:{"fill":"#fff","d":"M0 0h16v16H0z","stroke":"none"}}),_c('path',{attrs:{"d":"M8 10l2-2.054L8.077 6","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}}),_c('path',{attrs:{"d":"M6 4.1V2h8v12H6v-1.65M9 8H2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}})]),_c('svg',{staticClass:"user",attrs:{"width":"18","height":"18","fill":"#25476AFF","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M13 7.94L17.06 12 13 16.06 11.94 15l3-3-3-3L13 7.94z","fill":"#2C3E50"}}),_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M8.25 2.25h13.5v19.5H8.25v-4.5h1.5v3h10.5V3.75H9.75v3h-1.5v-4.5z","fill":"#2C3E50"}}),_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M2.25 11.25h13.5v1.5H2.25v-1.5z","fill":"#2C3E50"}})]),_c('span',{staticClass:"sign_text"},[_vm._v("Вход")])])])]),_c('SlideToggle',{scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
7012
7012
|
var animationClass = ref.animationClass;
|
|
7013
|
-
return [(_vm.isAuthenticated)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.active),expression:"active"}],staticClass:"profile-menu",class:animationClass},[_c('div',{staticClass:"profile-menu__inner"},[(_vm.listDropDown.length)?_c('div',{staticClass:"profile-menu__items"},_vm._l((_vm.listDropDown),function(elem,index){return _c('div',{key:index},[(elem.url)?_c('div',{staticClass:"gray-text",class:elem.link ? 'profile-menu__balance-link': 'profile-menu__links'},[_c('div',[_vm._v(" "+_vm._s(elem.name)+" ")]),(elem.link)?_c('span',{staticClass:"profile-menu__balance",on:{"click":function($event){return _vm.
|
|
7013
|
+
return [(_vm.isAuthenticated)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.active),expression:"active"}],staticClass:"profile-menu",class:animationClass},[_c('div',{staticClass:"profile-menu__inner"},[(_vm.listDropDown.length)?_c('div',{staticClass:"profile-menu__items"},_vm._l((_vm.listDropDown),function(elem,index){return _c('div',{key:index},[(elem.url)?_c('div',{staticClass:"gray-text",class:elem.link ? 'profile-menu__balance-link': 'profile-menu__links',on:{"click":function($event){return _vm.handleClick(elem.url, elem.name)}}},[_c('div',[_vm._v(" "+_vm._s(elem.name)+" ")]),(elem.link)?_c('span',{staticClass:"profile-menu__balance",on:{"click":function($event){return _vm.showModal(elem.url, elem.name)}}},[_vm._v(" "+_vm._s(elem.link)+" ")]):_vm._e()]):_vm._e(),(elem.children)?_c('div',{staticClass:"gray-text profile-menu__item",on:{"click":function($event){return _vm.rotateItem(index)}}},[_c('div',{staticClass:"profile-menu__item__children"},[_vm._v(_vm._s(elem.name)+" "),(elem.children.length > 0)?_c('span',[_c('svg',{class:{'rotated': elem.opened},attrs:{"width":"12","height":"8","viewBox":"0 0 12 8","fill":"none","xmlns":"http://www.w3.org/2000/svg"}},[_c('path',{attrs:{"d":"M1 1.5L6 6.5L11 1.5","stroke":"#69797D","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])]):_vm._e()]),_c('SlideToggle',{class:animationClass,scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
7014
7014
|
var animationClass = ref.animationClass;
|
|
7015
7015
|
return [(elem.opened)?_c('div',[_vm._l((elem.children),function(child,idx){return [(child.url)?_c('div',{key:idx + 'link',staticClass:"profile-menu__item__child",on:{"click":function($event){return _vm.handleClick(child.url, child.name)}}},[_c('span',[_c('svg',{attrs:{"width":"4","height":"4","viewBox":"0 0 4 4","fill":"none","xmlns":"http://www.w3.org/2000/svg"}},[_c('circle',{attrs:{"cx":"2","cy":"2","r":"2","fill":"#2C3E50"}})]),_vm._v(" "+_vm._s(child.name)+" ")])]):_vm._e()]})],2):_vm._e()]}}],null,true)})],1):_vm._e()])}),0):_vm._e(),_c('div',{staticClass:"exit",on:{"click":_vm.logout}},[_c('svg',{attrs:{"width":"18","height":"18","fill":"#25476AFF","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 16 16"}},[_c('path',{attrs:{"d":"M11 10l2-2.054L11.077 6M10 11.9V14H2V2h8v1.65M12 8H5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}})]),_vm._v(" Выход ")])])]):_vm._e()]}}])}),_c('MobileToggle',{scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
7016
7016
|
var animationClass = ref.animationClass;
|
|
7017
7017
|
return [_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isAuthenticated && _vm.active),expression:"isAuthenticated && active"}],staticClass:"mobile-table",class:animationClass},[_c('div',{staticClass:"mobile-table-head"},[_c('p',[_vm._v("Профиль пользователя")]),_c('svg',{attrs:{"fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24","id":"close_hamburger"},on:{"click":function($event){$event.stopPropagation();_vm.active = !_vm.active}}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M4.414 18.142L18.556 4l1.415 1.414L5.828 19.556l-1.414-1.414z","fill":"#2C3E50"}}),_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M5.414 4l14.142 14.142-1.414 1.414L4 5.414 5.414 4z","fill":"#2C3E50"}})])]),_c('div',{staticClass:"profile-menu-mobile"},[_c('div',{staticClass:"profile-menu-mobile__inner"},[(_vm.listDropDown.length > 0)?_c('div',{staticClass:"profile-menu-mobile__items"},_vm._l((_vm.listDropDown),function(elem,index){return _c('div',{key:index,staticClass:"bb"},[(elem.url)?_c('div',{class:elem.link ? 'profile-menu-mobile__balance-link': 'profile-menu-mobile__links',on:{"click":function($event){return _vm.handleClick(elem.url, elem.name)}}},[(!elem.link)?_c('div',{staticClass:"button-inner"},[_c('div',[_vm._v(_vm._s(elem.name))]),_c('svg',{attrs:{"width":"18","height":"18","fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 10 18"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M2.108.59L9.318 9l-7.21 8.41L.59 16.108 6.683 9 .59 1.892 2.108.59z","fill":"#2C3E50"}})])]):_vm._e(),(elem.link)?_c('div',{staticClass:"profile-menu-mobile__balance-items"},[_c('div',{staticClass:"profile-menu-mobile__balance-items__upper-text"},[_vm._v(" "+_vm._s(elem.name.substr(0, 15))+" ")]),_c('div',{staticClass:"profile-menu-mobile__balance__bot-text"},[_vm._v(" "+_vm._s(elem.name.substr(15))+" ")])]):_vm._e(),(elem.link)?_c('span',{staticClass:"profile-menu-mobile__balance",on:{"click":function($event){return _vm.$emit('showBalanceModal', true)}}},[_vm._v(" "+_vm._s(elem.link)+" ")]):_vm._e()]):_vm._e(),(elem.children)?_c('div',{staticClass:"profile-menu-mobile__links",on:{"click":function($event){return _vm.rotateItem(index)}}},[_c('div',{staticClass:"button-inner"},[_c('div',[_vm._v(_vm._s(elem.name))]),_c('svg',{attrs:{"width":"18","height":"18","fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 10 18"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M2.108.59L9.318 9l-7.21 8.41L.59 16.108 6.683 9 .59 1.892 2.108.59z","fill":"#2C3E50"}})])])]):_vm._e()])}),0):_vm._e()]),_c('div',{staticClass:"exit-mob",on:{"click":_vm.logout}},[_c('svg',{staticClass:"arrow-svg",attrs:{"width":"18","height":"18","fill":"#25476AFF","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M17.7501 7.93933L21.8108 12L17.7501 16.0607L16.6895 15L19.6895 12L16.6895 8.99999L17.7501 7.93933Z","fill":"#2C3E50"}}),_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M15.5 2.25H2V21.75H15.5V17.25H14V20.25H3.5V3.75H14V6.75H15.5V2.25Z","fill":"#2C3E50"}}),_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M7 11.25L20.5 11.25L20.5 12.75L7 12.75L7 11.25Z","fill":"#2C3E50"}})]),_vm._v(" Выход ")])])])]}}])}),_c('MobileToggle',{scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
7018
7018
|
var animationClass = ref.animationClass;
|
|
7019
7019
|
return [_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.someMobileOpened.length > 0 && _vm.chosenElem && _vm.chosenElem.children.length > 0),expression:"someMobileOpened.length > 0 && chosenElem && chosenElem.children.length > 0"}],staticClass:"mobile-table",class:animationClass},[_c('div',{staticClass:"mobile-table-head mobile-table-head-chosen"},[_c('div',{on:{"click":function($event){_vm.chosenElem.opened = false}}},[_c('svg',{staticClass:"rotated",attrs:{"width":"18","height":"18","fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 10 18"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M2.108.59L9.318 9l-7.21 8.41L.59 16.108 6.683 9 .59 1.892 2.108.59z","fill":"#2C3E50"}})])]),_c('p',[_vm._v(_vm._s(_vm.chosenElem.name))])]),_c('div',{staticClass:"profile-menu-mobile"},[_c('div',{staticClass:"profile-menu-mobile__inner"},[(_vm.chosenElem.children.length > 0)?_c('div',{staticClass:"profile-menu-mobile__items"},_vm._l((_vm.chosenElem.children),function(elem,index){return _c('div',{key:index,staticClass:"bb"},[(elem.url)?_c('div',{class:elem.link ? 'profile-menu-mobile__balance-link': 'profile-menu-mobile__links',on:{"click":function($event){return _vm.handleClick(elem.url, elem.name)}}},[_c('div',{staticClass:"button-inner"},[_c('div',[_vm._v(_vm._s(elem.name))])])]):_vm._e()])}),0):_vm._e()]),_c('div',{staticClass:"exit-mob",on:{"click":_vm.logout}},[_c('svg',{staticClass:"arrow-svg",attrs:{"width":"18","height":"18","fill":"#25476AFF","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M17.7501 7.93933L21.8108 12L17.7501 16.0607L16.6895 15L19.6895 12L16.6895 8.99999L17.7501 7.93933Z","fill":"#2C3E50"}}),_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M15.5 2.25H2V21.75H15.5V17.25H14V20.25H3.5V3.75H14V6.75H15.5V2.25Z","fill":"#2C3E50"}}),_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M7 11.25L20.5 11.25L20.5 12.75L7 12.75L7 11.25Z","fill":"#2C3E50"}})]),_vm._v(" Выход ")])])])]}}])})],1)])}
|
|
7020
|
-
var
|
|
7020
|
+
var Profilevue_type_template_id_341137b6_staticRenderFns = []
|
|
7021
7021
|
|
|
7022
7022
|
|
|
7023
|
-
// CONCATENATED MODULE: ./src/components/Header/Profile.vue?vue&type=template&id=
|
|
7023
|
+
// CONCATENATED MODULE: ./src/components/Header/Profile.vue?vue&type=template&id=341137b6&
|
|
7024
7024
|
|
|
7025
7025
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
7026
7026
|
var es_promise = __webpack_require__("e6cf");
|
|
@@ -7587,6 +7587,7 @@ var VerticalMobileToggle_component = normalizeComponent(
|
|
|
7587
7587
|
//
|
|
7588
7588
|
//
|
|
7589
7589
|
//
|
|
7590
|
+
//
|
|
7590
7591
|
|
|
7591
7592
|
|
|
7592
7593
|
|
|
@@ -7678,7 +7679,7 @@ var VerticalMobileToggle_component = normalizeComponent(
|
|
|
7678
7679
|
logout: function logout() {
|
|
7679
7680
|
this.$emit("logout");
|
|
7680
7681
|
},
|
|
7681
|
-
|
|
7682
|
+
showModal: function showModal(url, name) {
|
|
7682
7683
|
var _this = this;
|
|
7683
7684
|
|
|
7684
7685
|
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
@@ -7687,7 +7688,7 @@ var VerticalMobileToggle_component = normalizeComponent(
|
|
|
7687
7688
|
switch (_context.prev = _context.next) {
|
|
7688
7689
|
case 0:
|
|
7689
7690
|
if (!name.includes('Текущий')) {
|
|
7690
|
-
_context.next =
|
|
7691
|
+
_context.next = 8;
|
|
7691
7692
|
break;
|
|
7692
7693
|
}
|
|
7693
7694
|
|
|
@@ -7708,23 +7709,39 @@ var VerticalMobileToggle_component = normalizeComponent(
|
|
|
7708
7709
|
return window.open(_this.toAdtdev(url) + "&modal=show", "_blank");
|
|
7709
7710
|
|
|
7710
7711
|
case 8:
|
|
7711
|
-
|
|
7712
|
-
|
|
7712
|
+
case "end":
|
|
7713
|
+
return _context.stop();
|
|
7714
|
+
}
|
|
7715
|
+
}
|
|
7716
|
+
}, _callee);
|
|
7717
|
+
}))();
|
|
7718
|
+
},
|
|
7719
|
+
handleClick: function handleClick(url, name) {
|
|
7720
|
+
var _this2 = this;
|
|
7713
7721
|
|
|
7714
|
-
|
|
7715
|
-
|
|
7716
|
-
|
|
7722
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
7723
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
7724
|
+
while (1) {
|
|
7725
|
+
switch (_context2.prev = _context2.next) {
|
|
7726
|
+
case 0:
|
|
7727
|
+
if (name.includes('Текущий')) {
|
|
7728
|
+
_context2.next = 5;
|
|
7729
|
+
break;
|
|
7730
|
+
}
|
|
7731
|
+
|
|
7732
|
+
_context2.next = 3;
|
|
7733
|
+
return window.open(_this2.toAdtdev(url), "_self");
|
|
7717
7734
|
|
|
7718
|
-
case
|
|
7719
|
-
|
|
7720
|
-
if (
|
|
7735
|
+
case 3:
|
|
7736
|
+
_this2.active = false;
|
|
7737
|
+
if (_this2.chosenElem) _this2.chosenElem.opened = false;
|
|
7721
7738
|
|
|
7722
|
-
case
|
|
7739
|
+
case 5:
|
|
7723
7740
|
case "end":
|
|
7724
|
-
return
|
|
7741
|
+
return _context2.stop();
|
|
7725
7742
|
}
|
|
7726
7743
|
}
|
|
7727
|
-
},
|
|
7744
|
+
}, _callee2);
|
|
7728
7745
|
}))();
|
|
7729
7746
|
},
|
|
7730
7747
|
rotateItem: function rotateItem(index) {
|
|
@@ -7752,8 +7769,8 @@ var Profilevue_type_style_index_0_lang_scss_ = __webpack_require__("ee80");
|
|
|
7752
7769
|
|
|
7753
7770
|
var Profile_component = normalizeComponent(
|
|
7754
7771
|
Header_Profilevue_type_script_lang_js_,
|
|
7755
|
-
|
|
7756
|
-
|
|
7772
|
+
Profilevue_type_template_id_341137b6_render,
|
|
7773
|
+
Profilevue_type_template_id_341137b6_staticRenderFns,
|
|
7757
7774
|
false,
|
|
7758
7775
|
null,
|
|
7759
7776
|
null,
|