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.common.js
CHANGED
|
@@ -8458,14 +8458,14 @@ var Alert_component = normalizeComponent(
|
|
|
8458
8458
|
)
|
|
8459
8459
|
|
|
8460
8460
|
/* harmony default export */ var Alert = (Alert_component.exports);
|
|
8461
|
-
// 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=
|
|
8462
|
-
var
|
|
8461
|
+
// 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&
|
|
8462
|
+
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){
|
|
8463
8463
|
var animationClass = ref.animationClass;
|
|
8464
|
-
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('
|
|
8465
|
-
var
|
|
8464
|
+
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()}
|
|
8465
|
+
var Headervue_type_template_id_00fd3250_staticRenderFns = []
|
|
8466
8466
|
|
|
8467
8467
|
|
|
8468
|
-
// CONCATENATED MODULE: ./src/components/Header/Header.vue?vue&type=template&id=
|
|
8468
|
+
// CONCATENATED MODULE: ./src/components/Header/Header.vue?vue&type=template&id=00fd3250&
|
|
8469
8469
|
|
|
8470
8470
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
8471
8471
|
var es_number_constructor = __webpack_require__("a9e3");
|
|
@@ -9451,6 +9451,7 @@ var profileDropDown = [{
|
|
|
9451
9451
|
data: function data() {
|
|
9452
9452
|
return {
|
|
9453
9453
|
profileDropDown: profileDropDown,
|
|
9454
|
+
windowOpen: false,
|
|
9454
9455
|
subheaderItems: [{
|
|
9455
9456
|
id: 1,
|
|
9456
9457
|
name: "Контрагенты",
|
|
@@ -9472,11 +9473,12 @@ var profileDropDown = [{
|
|
|
9472
9473
|
};
|
|
9473
9474
|
},
|
|
9474
9475
|
mounted: function mounted() {
|
|
9476
|
+
this.windowOpen = true;
|
|
9475
9477
|
this.setBalance(this.balance);
|
|
9476
9478
|
},
|
|
9477
9479
|
computed: {
|
|
9478
9480
|
locationUrl: function locationUrl() {
|
|
9479
|
-
return window.location.href;
|
|
9481
|
+
if (window) return window.location.href;else return '';
|
|
9480
9482
|
}
|
|
9481
9483
|
},
|
|
9482
9484
|
methods: {
|
|
@@ -9494,9 +9496,6 @@ var profileDropDown = [{
|
|
|
9494
9496
|
},
|
|
9495
9497
|
thousandSeparator: function thousandSeparator(val) {
|
|
9496
9498
|
return val ? val.toString().replace(/\B(?=(\d{3})+(?!\d))/g, " ") : '';
|
|
9497
|
-
},
|
|
9498
|
-
handleClick: function handleClick(url) {
|
|
9499
|
-
window.open(this.toAdtdev(url), "_self");
|
|
9500
9499
|
}
|
|
9501
9500
|
},
|
|
9502
9501
|
watch: {
|
|
@@ -9521,8 +9520,8 @@ var Headervue_type_style_index_0_lang_scss_ = __webpack_require__("52f3");
|
|
|
9521
9520
|
|
|
9522
9521
|
var Header_component = normalizeComponent(
|
|
9523
9522
|
Header_Headervue_type_script_lang_js_,
|
|
9524
|
-
|
|
9525
|
-
|
|
9523
|
+
Headervue_type_template_id_00fd3250_render,
|
|
9524
|
+
Headervue_type_template_id_00fd3250_staticRenderFns,
|
|
9526
9525
|
false,
|
|
9527
9526
|
null,
|
|
9528
9527
|
null,
|
|
@@ -9629,20 +9628,20 @@ var Footer_component = normalizeComponent(
|
|
|
9629
9628
|
)
|
|
9630
9629
|
|
|
9631
9630
|
/* harmony default export */ var Footer = (Footer_component.exports);
|
|
9632
|
-
// 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=
|
|
9633
|
-
var
|
|
9631
|
+
// 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&
|
|
9632
|
+
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:[
|
|
9634
9633
|
{'adt-text-block__input-mob-search' : _vm.magnifierMob},
|
|
9635
9634
|
{'adt-text-block__input-mob-filter' : _vm.forMobileFilter},
|
|
9636
9635
|
{'adt-text-block__input': !_vm.forMobileFilter}
|
|
9637
|
-
],attrs:{"type":_vm.type,"required":""},domProps:{"value":_vm.value},on:{"input":function($event){return _vm
|
|
9636
|
+
],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:{
|
|
9638
9637
|
'adt-text-block__label-red' : !_vm.forMobileFilter && _vm.getIsError,
|
|
9639
9638
|
'adt-text-block__label' : !_vm.forMobileFilter && !_vm.getIsError,
|
|
9640
9639
|
'adt-text-block__label-mob-filter' : _vm.forMobileFilter,
|
|
9641
9640
|
}},[_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)])}
|
|
9642
|
-
var
|
|
9641
|
+
var SearchTextFieldvue_type_template_id_a0b6ed50_staticRenderFns = []
|
|
9643
9642
|
|
|
9644
9643
|
|
|
9645
|
-
// CONCATENATED MODULE: ./src/components/SearchTextField/SearchTextField.vue?vue&type=template&id=
|
|
9644
|
+
// CONCATENATED MODULE: ./src/components/SearchTextField/SearchTextField.vue?vue&type=template&id=a0b6ed50&
|
|
9646
9645
|
|
|
9647
9646
|
// EXTERNAL MODULE: ./node_modules/vue2-perfect-scrollbar/dist/vue2-perfect-scrollbar.umd.js
|
|
9648
9647
|
var vue2_perfect_scrollbar_umd = __webpack_require__("a4a1");
|
|
@@ -9720,7 +9719,6 @@ var vue2_perfect_scrollbar_umd = __webpack_require__("a4a1");
|
|
|
9720
9719
|
//
|
|
9721
9720
|
//
|
|
9722
9721
|
//
|
|
9723
|
-
//
|
|
9724
9722
|
|
|
9725
9723
|
|
|
9726
9724
|
|
|
@@ -9740,7 +9738,8 @@ var vue2_perfect_scrollbar_umd = __webpack_require__("a4a1");
|
|
|
9740
9738
|
},
|
|
9741
9739
|
value: {
|
|
9742
9740
|
type: String,
|
|
9743
|
-
required: true
|
|
9741
|
+
required: true,
|
|
9742
|
+
default: ""
|
|
9744
9743
|
},
|
|
9745
9744
|
clearable: {
|
|
9746
9745
|
type: Boolean,
|
|
@@ -9837,13 +9836,6 @@ var vue2_perfect_scrollbar_umd = __webpack_require__("a4a1");
|
|
|
9837
9836
|
autocompleteOption.setAttribute("id", 'searchVariant');
|
|
9838
9837
|
return autocompleteOption.innerText;
|
|
9839
9838
|
},
|
|
9840
|
-
handleKeyDown: function handleKeyDown(e) {
|
|
9841
|
-
if (+e.keyCode === 9) this.showAutocomplete = false;
|
|
9842
|
-
var specialKeys = [8, 188, 190, 110]; // 8 - Backspace, 188 - ",", 190 and 110 - "."
|
|
9843
|
-
|
|
9844
|
-
var charCode = e.keyCode;
|
|
9845
|
-
if (charCode >= 48 && charCode <= 57 || charCode >= 96 && charCode <= 105 || specialKeys.indexOf(charCode) !== -1) return;else e.preventDefault();
|
|
9846
|
-
},
|
|
9847
9839
|
inputHandler: function inputHandler(e) {
|
|
9848
9840
|
this.$emit('input', e.target.value);
|
|
9849
9841
|
this.showAutocomplete = true;
|
|
@@ -9873,8 +9865,8 @@ var vue2_perfect_scrollbar_umd = __webpack_require__("a4a1");
|
|
|
9873
9865
|
|
|
9874
9866
|
var SearchTextField_component = normalizeComponent(
|
|
9875
9867
|
SearchTextField_SearchTextFieldvue_type_script_lang_js_,
|
|
9876
|
-
|
|
9877
|
-
|
|
9868
|
+
SearchTextFieldvue_type_template_id_a0b6ed50_render,
|
|
9869
|
+
SearchTextFieldvue_type_template_id_a0b6ed50_staticRenderFns,
|
|
9878
9870
|
false,
|
|
9879
9871
|
null,
|
|
9880
9872
|
null,
|