adata-ui 0.1.18 → 0.1.22
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 +19 -27
- package/dist/adata-ui.common.js.map +1 -1
- package/dist/adata-ui.umd.js +19 -27
- 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/Header.vue +10 -8
- package/src/components/SearchTextField/SearchTextField.stories.js +3 -8
- package/src/components/SearchTextField/SearchTextField.vue +2 -9
- package/src/components/index.js +1 -0
package/dist/adata-ui.umd.js
CHANGED
|
@@ -8467,14 +8467,14 @@ var Alert_component = normalizeComponent(
|
|
|
8467
8467
|
)
|
|
8468
8468
|
|
|
8469
8469
|
/* harmony default export */ var Alert = (Alert_component.exports);
|
|
8470
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"af5d69b8-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/Header.vue?vue&type=template&id=
|
|
8471
|
-
var
|
|
8470
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"af5d69b8-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/Header.vue?vue&type=template&id=00fd3250&
|
|
8471
|
+
var Headervue_type_template_id_00fd3250_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.windowOpen)?_c('header',{staticClass:"a-header",class:[{'bordered': _vm.isBordered}, {'fixed': _vm.isFixed}]},[_c('div',{staticClass:"container"},[_c('div',{staticClass:"a-header__left"},[_c('a',{staticClass:"logo",attrs:{"href":_vm.toAdtdev('https://adata.kz')}},[_c('svg',{staticClass:"adata-logo",attrs:{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 166 48"}},[_c('path',{attrs:{"d":"M62.926 38.22v-28h10.316c10.342 0 15.511 4.55 15.508 13.652 0 4.36-1.41 7.843-4.232 10.448-2.822 2.605-6.58 3.907-11.276 3.904l-10.316-.004zm6.56-22.868v17.752h3.248c2.839 0 5.069-.82 6.69-2.46 1.622-1.64 2.43-3.873 2.424-6.7 0-2.667-.8-4.767-2.403-6.3-1.602-1.533-3.853-2.297-6.752-2.292h-3.206zM118.5 38.22h-7.131l-2.079-6.228H98.958l-2.079 6.228h-7.093l10.598-28h7.775l10.341 28zm-10.723-11.072l-3.127-9.416a11.94 11.94 0 01-.486-2.516h-.162c-.07.83-.24 1.649-.508 2.44l-3.168 9.492h7.451zm31.833-11.796h-8.316V38.22h-6.557V15.352h-8.274v-5.136h23.147v5.136zM166 38.22h-7.143l-2.079-6.228h-10.349l-2.05 6.228h-7.106l10.598-28h7.776l10.353 28zm-10.719-11.072l-3.127-9.416a11.94 11.94 0 01-.486-2.516h-.163c-.069.83-.239 1.649-.507 2.44l-3.168 9.492h7.451zM24.553 15.252h-.163c-.069.83-.24 1.649-.507 2.44L20.715 27.2h7.45l-3.126-9.412a12.02 12.02 0 01-.486-2.536z"}}),_c('path',{attrs:{"d":"M44.905 0H4.99a5.091 5.091 0 00-3.528 1.406A4.71 4.71 0 000 4.8v38.4a4.71 4.71 0 001.461 3.394A5.091 5.091 0 004.99 48h39.916a5.091 5.091 0 003.528-1.406 4.71 4.71 0 001.462-3.394V4.8a4.71 4.71 0 00-1.462-3.394A5.091 5.091 0 0044.905 0zM31.737 38.26l-2.079-6.232H19.305l-2.05 6.232h-7.097l10.598-28h7.776l10.353 28h-7.148z"}})])]),(_vm.subheaderItems.length > 0)?_c('div',{staticClass:"menu"},_vm._l((_vm.subheaderItems),function(item,index){return _c('a',{key:index,staticClass:"menu__wrapper menu__items",class:{active: _vm.locationUrl.includes(_vm.toAdtdev(item.url))},attrs:{"href":_vm.toAdtdev(item.url)}},[_vm._v(" "+_vm._s(item.name)+" ")])}),0):_vm._e()]),_c('div',{staticClass:"a-header__right"},[_vm._t("chooseCountry"),_c('Profile',{attrs:{"profileDropDown":_vm.profileDropDown,"isDev":_vm.isDev,"isAuthenticated":_vm.isAuthenticated,"requestCount":_vm.requestCount,"daysRemaining":_vm.daysRemaining,"email":_vm.email,"loginUrl":_vm.loginUrl,"activeTabKey":_vm.activeTabKey},on:{"showBalanceModal":function (val) { _vm.$emit('showBalanceModal', val) },"setShowModal":function (val) { _vm.$emit('setShowModal', val) },"logout":function($event){return _vm.$emit('logout')},"setIsReplenishModal":function (val) { _vm.$emit('setIsReplenishModal', val) }}}),_c('div',{staticClass:"menu_mobile--switcher",on:{"click":_vm.changeValue}},[_c('svg',{attrs:{"width":"24","height":"24","fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M2 4h20v2H2V4zm0 14h20v2H2v-2zm0-7h20v2H2v-2z","fill":"#2C3E50"}})])])],2)]),_c('MobileToggle',{scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
8472
8472
|
var animationClass = ref.animationClass;
|
|
8473
|
-
return [_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.subheaderItems.length > 0 && _vm.isOpen),expression:"subheaderItems.length > 0 && isOpen"}],staticClass:"menu_mobile",class:animationClass},[_c('div',{staticClass:"mobile-table-head",on:{"click":function($event){$event.stopPropagation();return _vm.changeValue.apply(null, arguments)}}},[_c('svg',{attrs:{"width":"18","height":"18","fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24"}},[_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"}})])]),_vm._l((_vm.subheaderItems),function(item,index){return _c('
|
|
8474
|
-
var
|
|
8473
|
+
return [_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.subheaderItems.length > 0 && _vm.isOpen),expression:"subheaderItems.length > 0 && isOpen"}],staticClass:"menu_mobile",class:animationClass},[_c('div',{staticClass:"mobile-table-head",on:{"click":function($event){$event.stopPropagation();return _vm.changeValue.apply(null, arguments)}}},[_c('svg',{attrs:{"width":"18","height":"18","fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24"}},[_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"}})])]),_vm._l((_vm.subheaderItems),function(item,index){return _c('a',{key:index,staticClass:"menu_mobile-wrapper",class:{'active-burger-tab': _vm.locationUrl.includes(_vm.toAdtdev(item.url))},attrs:{"href":_vm.toAdtdev(item.url)}},[_vm._v(" "+_vm._s(item.name)+" ")])})],2)]}}],null,false,950415542)})],1):_vm._e()}
|
|
8474
|
+
var Headervue_type_template_id_00fd3250_staticRenderFns = []
|
|
8475
8475
|
|
|
8476
8476
|
|
|
8477
|
-
// CONCATENATED MODULE: ./src/components/Header/Header.vue?vue&type=template&id=
|
|
8477
|
+
// CONCATENATED MODULE: ./src/components/Header/Header.vue?vue&type=template&id=00fd3250&
|
|
8478
8478
|
|
|
8479
8479
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
8480
8480
|
var es_number_constructor = __webpack_require__("a9e3");
|
|
@@ -9460,6 +9460,7 @@ var profileDropDown = [{
|
|
|
9460
9460
|
data: function data() {
|
|
9461
9461
|
return {
|
|
9462
9462
|
profileDropDown: profileDropDown,
|
|
9463
|
+
windowOpen: false,
|
|
9463
9464
|
subheaderItems: [{
|
|
9464
9465
|
id: 1,
|
|
9465
9466
|
name: "Контрагенты",
|
|
@@ -9481,11 +9482,12 @@ var profileDropDown = [{
|
|
|
9481
9482
|
};
|
|
9482
9483
|
},
|
|
9483
9484
|
mounted: function mounted() {
|
|
9485
|
+
this.windowOpen = true;
|
|
9484
9486
|
this.setBalance(this.balance);
|
|
9485
9487
|
},
|
|
9486
9488
|
computed: {
|
|
9487
9489
|
locationUrl: function locationUrl() {
|
|
9488
|
-
return window.location.href;
|
|
9490
|
+
if (window) return window.location.href;else return '';
|
|
9489
9491
|
}
|
|
9490
9492
|
},
|
|
9491
9493
|
methods: {
|
|
@@ -9503,9 +9505,6 @@ var profileDropDown = [{
|
|
|
9503
9505
|
},
|
|
9504
9506
|
thousandSeparator: function thousandSeparator(val) {
|
|
9505
9507
|
return val ? val.toString().replace(/\B(?=(\d{3})+(?!\d))/g, " ") : '';
|
|
9506
|
-
},
|
|
9507
|
-
handleClick: function handleClick(url) {
|
|
9508
|
-
window.open(this.toAdtdev(url), "_self");
|
|
9509
9508
|
}
|
|
9510
9509
|
},
|
|
9511
9510
|
watch: {
|
|
@@ -9530,8 +9529,8 @@ var Headervue_type_style_index_0_lang_scss_ = __webpack_require__("52f3");
|
|
|
9530
9529
|
|
|
9531
9530
|
var Header_component = normalizeComponent(
|
|
9532
9531
|
Header_Headervue_type_script_lang_js_,
|
|
9533
|
-
|
|
9534
|
-
|
|
9532
|
+
Headervue_type_template_id_00fd3250_render,
|
|
9533
|
+
Headervue_type_template_id_00fd3250_staticRenderFns,
|
|
9535
9534
|
false,
|
|
9536
9535
|
null,
|
|
9537
9536
|
null,
|
|
@@ -9638,20 +9637,20 @@ var Footer_component = normalizeComponent(
|
|
|
9638
9637
|
)
|
|
9639
9638
|
|
|
9640
9639
|
/* harmony default export */ var Footer = (Footer_component.exports);
|
|
9641
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"af5d69b8-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/SearchTextField/SearchTextField.vue?vue&type=template&id=
|
|
9642
|
-
var
|
|
9640
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"af5d69b8-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/SearchTextField/SearchTextField.vue?vue&type=template&id=a0b6ed50&
|
|
9641
|
+
var SearchTextFieldvue_type_template_id_a0b6ed50_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(_vm.onOutsideClick),expression:"onOutsideClick"}],staticClass:"adt-text-block",class:[{magnifier: _vm.isWithIcon},{'magnifier-mobile': _vm.magnifierMob}],on:{"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.preventDefault();return _vm.onUpOrDownClicked.apply(null, arguments)}}},[_c('div',{staticClass:"adt-text-block__field"},[_c('input',{ref:"input",class:[
|
|
9643
9642
|
{'adt-text-block__input-mob-search' : _vm.magnifierMob},
|
|
9644
9643
|
{'adt-text-block__input-mob-filter' : _vm.forMobileFilter},
|
|
9645
9644
|
{'adt-text-block__input': !_vm.forMobileFilter}
|
|
9646
|
-
],attrs:{"type":_vm.type,"required":""},domProps:{"value":_vm.value},on:{"input":function($event){return _vm
|
|
9645
|
+
],attrs:{"type":_vm.type,"required":""},domProps:{"value":_vm.value},on:{"input":function($event){return _vm.$emit('input', $event.target.value)},"keypress":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.$emit('enterPressed')},"focus":function($event){_vm.showAutocomplete = true},"click":function($event){return _vm.$emit('showVTour')}}}),_c('label',{class:{
|
|
9647
9646
|
'adt-text-block__label-red' : !_vm.forMobileFilter && _vm.getIsError,
|
|
9648
9647
|
'adt-text-block__label' : !_vm.forMobileFilter && !_vm.getIsError,
|
|
9649
9648
|
'adt-text-block__label-mob-filter' : _vm.forMobileFilter,
|
|
9650
9649
|
}},[_vm._v(" "+_vm._s(_vm.label)+" ")]),(_vm.magnifierMob)?_c('div',{staticClass:"mobile-magnifier",on:{"click":function($event){return _vm.$emit('onMagnifierClick')}}},[_c('svg',{attrs:{"width":"24","height":"24","fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 16 16","id":"magnifier"}},[_c('path',{attrs:{"d":"M13.95 13.95L10 10","stroke":"#2C3E50","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}}),_c('circle',{attrs:{"cx":"6.5","cy":"6.5","r":"4.5","stroke":"#2C3E50"}})])]):_vm._e(),(_vm.isWithIcon)?_c('div',{staticClass:"adt-text-block__icon adt-text-block__magnifier",on:{"click":function($event){return _vm.$emit('input', '')}}},[_c('svg',{attrs:{"width":"24","height":"24","fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 16 16","id":"magnifier"}},[_c('path',{attrs:{"d":"M13.95 13.95L10 10","stroke":"#2C3E50","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}}),_c('circle',{attrs:{"cx":"6.5","cy":"6.5","r":"4.5","stroke":"#2C3E50"}})])]):_vm._e(),(_vm.clearable && _vm.value && _vm.value.length > 0)?_c('div',{staticClass:"adt-text-block__icon",on:{"click":function($event){return _vm.$emit('input', '')}}},[_c('svg',{attrs:{"width":"12","height":"12","fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 16 16","id":"clearIcon"}},[_c('path',{attrs:{"d":"M2 2l12 12m0-12L2 14","stroke":"#2C3E50","stroke-linecap":"round","stroke-linejoin":"round"}})])]):_vm._e()]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.options && _vm.options.length > 0 && _vm.showAutocomplete),expression:"options && options.length > 0 && showAutocomplete"}],staticClass:"adt-text-block__options search-options"},[_c('PerfectScrollbar',[_c('div',{staticClass:"search-options__wrapper"},_vm._l((_vm.options),function(option,index){return _c('div',{key:index,ref:"searchOptions",refInFor:true,staticClass:"search-options__item",on:{"click":function($event){return _vm.onAutocompleteOptionClick(option)}}},[_vm._v(" "+_vm._s(!!_vm.optionFields.length ? _vm.textByOption(option) : option)+" "),(option.type && _vm.isTypeRequired)?_c('div',{staticClass:"hiddenOne"},[_vm._v(" $"+_vm._s(option.type)+"$")]):_vm._e()])}),0)])],1)])}
|
|
9651
|
-
var
|
|
9650
|
+
var SearchTextFieldvue_type_template_id_a0b6ed50_staticRenderFns = []
|
|
9652
9651
|
|
|
9653
9652
|
|
|
9654
|
-
// CONCATENATED MODULE: ./src/components/SearchTextField/SearchTextField.vue?vue&type=template&id=
|
|
9653
|
+
// CONCATENATED MODULE: ./src/components/SearchTextField/SearchTextField.vue?vue&type=template&id=a0b6ed50&
|
|
9655
9654
|
|
|
9656
9655
|
// EXTERNAL MODULE: ./node_modules/vue2-perfect-scrollbar/dist/vue2-perfect-scrollbar.umd.js
|
|
9657
9656
|
var vue2_perfect_scrollbar_umd = __webpack_require__("a4a1");
|
|
@@ -9729,7 +9728,6 @@ var vue2_perfect_scrollbar_umd = __webpack_require__("a4a1");
|
|
|
9729
9728
|
//
|
|
9730
9729
|
//
|
|
9731
9730
|
//
|
|
9732
|
-
//
|
|
9733
9731
|
|
|
9734
9732
|
|
|
9735
9733
|
|
|
@@ -9749,7 +9747,8 @@ var vue2_perfect_scrollbar_umd = __webpack_require__("a4a1");
|
|
|
9749
9747
|
},
|
|
9750
9748
|
value: {
|
|
9751
9749
|
type: String,
|
|
9752
|
-
required: true
|
|
9750
|
+
required: true,
|
|
9751
|
+
default: ""
|
|
9753
9752
|
},
|
|
9754
9753
|
clearable: {
|
|
9755
9754
|
type: Boolean,
|
|
@@ -9846,13 +9845,6 @@ var vue2_perfect_scrollbar_umd = __webpack_require__("a4a1");
|
|
|
9846
9845
|
autocompleteOption.setAttribute("id", 'searchVariant');
|
|
9847
9846
|
return autocompleteOption.innerText;
|
|
9848
9847
|
},
|
|
9849
|
-
handleKeyDown: function handleKeyDown(e) {
|
|
9850
|
-
if (+e.keyCode === 9) this.showAutocomplete = false;
|
|
9851
|
-
var specialKeys = [8, 188, 190, 110]; // 8 - Backspace, 188 - ",", 190 and 110 - "."
|
|
9852
|
-
|
|
9853
|
-
var charCode = e.keyCode;
|
|
9854
|
-
if (charCode >= 48 && charCode <= 57 || charCode >= 96 && charCode <= 105 || specialKeys.indexOf(charCode) !== -1) return;else e.preventDefault();
|
|
9855
|
-
},
|
|
9856
9848
|
inputHandler: function inputHandler(e) {
|
|
9857
9849
|
this.$emit('input', e.target.value);
|
|
9858
9850
|
this.showAutocomplete = true;
|
|
@@ -9882,8 +9874,8 @@ var vue2_perfect_scrollbar_umd = __webpack_require__("a4a1");
|
|
|
9882
9874
|
|
|
9883
9875
|
var SearchTextField_component = normalizeComponent(
|
|
9884
9876
|
SearchTextField_SearchTextFieldvue_type_script_lang_js_,
|
|
9885
|
-
|
|
9886
|
-
|
|
9877
|
+
SearchTextFieldvue_type_template_id_a0b6ed50_render,
|
|
9878
|
+
SearchTextFieldvue_type_template_id_a0b6ed50_staticRenderFns,
|
|
9887
9879
|
false,
|
|
9888
9880
|
null,
|
|
9889
9881
|
null,
|