@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.umd.js
CHANGED
|
@@ -24970,11 +24970,11 @@ var wt_status_select_component = componentNormalizer_normalizeComponent(
|
|
|
24970
24970
|
)
|
|
24971
24971
|
|
|
24972
24972
|
/* harmony default export */ var wt_status_select = (wt_status_select_component.exports);
|
|
24973
|
-
;// 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=
|
|
24974
|
-
var
|
|
24975
|
-
{'wt-table__th--sortable': _vm.
|
|
24973
|
+
;// 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&
|
|
24974
|
+
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:[
|
|
24975
|
+
{'wt-table__th--sortable': _vm.isColSortable(col)},
|
|
24976
24976
|
("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()])])}
|
|
24977
|
-
var
|
|
24977
|
+
var wt_tablevue_type_template_id_6217e1a7_scoped_true_staticRenderFns = []
|
|
24978
24978
|
|
|
24979
24979
|
|
|
24980
24980
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
|
|
@@ -25154,8 +25154,18 @@ var getNextSortOrder = function getNextSortOrder(sort) {
|
|
|
25154
25154
|
},
|
|
25155
25155
|
methods: {
|
|
25156
25156
|
sort: function sort(col) {
|
|
25157
|
+
if (!this.isColSortable(col)) return;
|
|
25157
25158
|
var nextSort = getSortOrder(col.sort);
|
|
25158
|
-
|
|
25159
|
+
this.$emit('sort', col, nextSort);
|
|
25160
|
+
},
|
|
25161
|
+
isColSortable: function isColSortable(_ref) {
|
|
25162
|
+
var sort = _ref.sort;
|
|
25163
|
+
|
|
25164
|
+
/* --sortable = sortable && col.sort === undefined cause there may be some columns we don't want to sort
|
|
25165
|
+
strict check for === undefined is used because col.sort = null is sort order too (actualu, without sort)
|
|
25166
|
+
so we need to check if this property is present
|
|
25167
|
+
*/
|
|
25168
|
+
return this.sortable && sort !== undefined;
|
|
25159
25169
|
},
|
|
25160
25170
|
selectAll: function selectAll() {
|
|
25161
25171
|
var isAllSelected = this.isAllSelected; // eslint-disable-next-line no-param-reassign,no-return-assign
|
|
@@ -25168,10 +25178,10 @@ var getNextSortOrder = function getNextSortOrder(sort) {
|
|
|
25168
25178
|
});
|
|
25169
25179
|
;// CONCATENATED MODULE: ./src/components/organisms/wt-table/wt-table.vue?vue&type=script&lang=js&
|
|
25170
25180
|
/* harmony default export */ var wt_table_wt_tablevue_type_script_lang_js_ = (wt_tablevue_type_script_lang_js_);
|
|
25171
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-63[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-63[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-63[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-63[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=
|
|
25181
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-63[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-63[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-63[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-63[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&
|
|
25172
25182
|
// extracted by mini-css-extract-plugin
|
|
25173
25183
|
|
|
25174
|
-
;// CONCATENATED MODULE: ./src/components/organisms/wt-table/wt-table.vue?vue&type=style&index=0&id=
|
|
25184
|
+
;// CONCATENATED MODULE: ./src/components/organisms/wt-table/wt-table.vue?vue&type=style&index=0&id=6217e1a7&lang=scss&scoped=true&
|
|
25175
25185
|
|
|
25176
25186
|
;// CONCATENATED MODULE: ./src/components/organisms/wt-table/wt-table.vue
|
|
25177
25187
|
|
|
@@ -25184,11 +25194,11 @@ var getNextSortOrder = function getNextSortOrder(sort) {
|
|
|
25184
25194
|
|
|
25185
25195
|
var wt_table_component = componentNormalizer_normalizeComponent(
|
|
25186
25196
|
wt_table_wt_tablevue_type_script_lang_js_,
|
|
25187
|
-
|
|
25188
|
-
|
|
25197
|
+
wt_tablevue_type_template_id_6217e1a7_scoped_true_render,
|
|
25198
|
+
wt_tablevue_type_template_id_6217e1a7_scoped_true_staticRenderFns,
|
|
25189
25199
|
false,
|
|
25190
25200
|
null,
|
|
25191
|
-
"
|
|
25201
|
+
"6217e1a7",
|
|
25192
25202
|
null
|
|
25193
25203
|
|
|
25194
25204
|
)
|