@webitel/ui-sdk 2.1.24 → 2.1.26
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/ui-sdk.common.js +20 -10
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +20 -10
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +1 -1
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/organisms/wt-table/__tests__/WtTable.spec.js +1 -0
- package/src/components/organisms/wt-table/wt-table.vue +10 -3
- package/src/locale/en/en.js +1 -0
- package/src/locale/ru/ru.js +1 -0
- package/src/locale/ua/ua.js +1 -0
package/dist/ui-sdk.common.js
CHANGED
|
@@ -24952,11 +24952,11 @@ var wt_status_select_component = componentNormalizer_normalizeComponent(
|
|
|
24952
24952
|
)
|
|
24953
24953
|
|
|
24954
24954
|
/* harmony default export */ var wt_status_select = (wt_status_select_component.exports);
|
|
24955
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/organisms/wt-table/wt-table.vue?vue&type=template&id=
|
|
24956
|
-
var
|
|
24957
|
-
{'wt-table__th--sortable': _vm.
|
|
24955
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/organisms/wt-table/wt-table.vue?vue&type=template&id=6217e1a7&scoped=true&
|
|
24956
|
+
var wt_tablevue_type_template_id_6217e1a7_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wt-table"},[_c('table',{staticClass:"wt-table__table"},[_c('thead',{staticClass:"wt-table__head"},[_c('tr',{staticClass:"wt-table__tr wt-table__tr__head",style:(_vm.columnsStyle)},[(_vm.selectable)?_c('th',{staticClass:"wt-table__th wt-table__th--checkbox"},[_c('wt-checkbox',{attrs:{"selected":_vm.isAllSelected},on:{"change":_vm.selectAll}})],1):_vm._e(),_vm._l((_vm.dataHeaders),function(col,key){return _c('th',{key:key,staticClass:"wt-table__th",class:[
|
|
24957
|
+
{'wt-table__th--sortable': _vm.isColSortable(col)},
|
|
24958
24958
|
("wt-table__th--sort-" + (col.sort)) ],on:{"click":function($event){return _vm.sort(col)}}},[_c('div',{staticClass:"wt-table__th__text"},[_vm._v(_vm._s(col.text))]),(_vm.sortable)?_c('wt-icon',{staticClass:"wt-table__th__sort-arrow wt-table__th__sort-arrow--asc",attrs:{"icon":"sort-arrow-up","size":"sm"}}):_vm._e(),(_vm.sortable)?_c('wt-icon',{staticClass:"wt-table__th__sort-arrow wt-table__th__sort-arrow--desc",attrs:{"icon":"sort-arrow-down","size":"sm"}}):_vm._e()],1)}),(_vm.gridActions)?_c('th',{staticClass:"wt-table__th__actions"},[_vm._t("actions-header")],2):_vm._e()],2)]),_c('tbody',{staticClass:"wt-table__body"},_vm._l((_vm.data),function(row,dataKey){return _c('tr',{key:dataKey,staticClass:"wt-table__tr wt-table__tr__body",class:("wt-table__tr__" + (row.id || dataKey)),style:(_vm.columnsStyle)},[(_vm.selectable)?_c('td',{staticClass:"wt-table__td wt-table__td--checkbox"},[_c('wt-checkbox',{model:{value:(row._isSelected),callback:function ($$v) {_vm.$set(row, "_isSelected", $$v)},expression:"row._isSelected"}})],1):_vm._e(),_vm._l((_vm.dataHeaders),function(col,headerKey){return _c('td',{key:headerKey,staticClass:"wt-table__td"},[_vm._t(col.value,function(){return [_c('div',[_vm._v(_vm._s(row[col.value]))])]},{"index":dataKey,"item":row})],2)}),(_vm.gridActions)?_c('td',{staticClass:"wt-table__td__actions"},[_vm._t("actions",null,{"index":dataKey,"item":row})],2):_vm._e()],2)}),0),(_vm.isTableFooter)?_c('tfoot',{staticClass:"wt-table__foot"},[_c('tr',{staticClass:"wt-table__tr wt-table__tr__foot",style:(_vm.columnsStyle)},[(_vm.selectable)?_c('th',{staticClass:"wt-table__th__checkbox"}):_vm._e(),_vm._l((_vm.dataHeaders),function(col,headerKey){return _c('td',{key:headerKey,staticClass:"wt-table__td"},[_vm._t(((col.value) + "-footer"),null,{"header":col,"index":headerKey})],2)})],2)]):_vm._e()])])}
|
|
24959
|
-
var
|
|
24959
|
+
var wt_tablevue_type_template_id_6217e1a7_scoped_true_staticRenderFns = []
|
|
24960
24960
|
|
|
24961
24961
|
|
|
24962
24962
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
|
|
@@ -25136,8 +25136,18 @@ var getNextSortOrder = function getNextSortOrder(sort) {
|
|
|
25136
25136
|
},
|
|
25137
25137
|
methods: {
|
|
25138
25138
|
sort: function sort(col) {
|
|
25139
|
+
if (!this.isColSortable(col)) return;
|
|
25139
25140
|
var nextSort = getSortOrder(col.sort);
|
|
25140
|
-
|
|
25141
|
+
this.$emit('sort', col, nextSort);
|
|
25142
|
+
},
|
|
25143
|
+
isColSortable: function isColSortable(_ref) {
|
|
25144
|
+
var sort = _ref.sort;
|
|
25145
|
+
|
|
25146
|
+
/* --sortable = sortable && col.sort === undefined cause there may be some columns we don't want to sort
|
|
25147
|
+
strict check for === undefined is used because col.sort = null is sort order too (actualu, without sort)
|
|
25148
|
+
so we need to check if this property is present
|
|
25149
|
+
*/
|
|
25150
|
+
return this.sortable && sort !== undefined;
|
|
25141
25151
|
},
|
|
25142
25152
|
selectAll: function selectAll() {
|
|
25143
25153
|
var isAllSelected = this.isAllSelected; // eslint-disable-next-line no-param-reassign,no-return-assign
|
|
@@ -25150,10 +25160,10 @@ var getNextSortOrder = function getNextSortOrder(sort) {
|
|
|
25150
25160
|
});
|
|
25151
25161
|
;// CONCATENATED MODULE: ./src/components/organisms/wt-table/wt-table.vue?vue&type=script&lang=js&
|
|
25152
25162
|
/* harmony default export */ var wt_table_wt_tablevue_type_script_lang_js_ = (wt_tablevue_type_script_lang_js_);
|
|
25153
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/organisms/wt-table/wt-table.vue?vue&type=style&index=0&id=
|
|
25163
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/organisms/wt-table/wt-table.vue?vue&type=style&index=0&id=6217e1a7&lang=scss&scoped=true&
|
|
25154
25164
|
// extracted by mini-css-extract-plugin
|
|
25155
25165
|
|
|
25156
|
-
;// CONCATENATED MODULE: ./src/components/organisms/wt-table/wt-table.vue?vue&type=style&index=0&id=
|
|
25166
|
+
;// CONCATENATED MODULE: ./src/components/organisms/wt-table/wt-table.vue?vue&type=style&index=0&id=6217e1a7&lang=scss&scoped=true&
|
|
25157
25167
|
|
|
25158
25168
|
;// CONCATENATED MODULE: ./src/components/organisms/wt-table/wt-table.vue
|
|
25159
25169
|
|
|
@@ -25166,11 +25176,11 @@ var getNextSortOrder = function getNextSortOrder(sort) {
|
|
|
25166
25176
|
|
|
25167
25177
|
var wt_table_component = componentNormalizer_normalizeComponent(
|
|
25168
25178
|
wt_table_wt_tablevue_type_script_lang_js_,
|
|
25169
|
-
|
|
25170
|
-
|
|
25179
|
+
wt_tablevue_type_template_id_6217e1a7_scoped_true_render,
|
|
25180
|
+
wt_tablevue_type_template_id_6217e1a7_scoped_true_staticRenderFns,
|
|
25171
25181
|
false,
|
|
25172
25182
|
null,
|
|
25173
|
-
"
|
|
25183
|
+
"6217e1a7",
|
|
25174
25184
|
null
|
|
25175
25185
|
|
|
25176
25186
|
)
|