@tripup-company/element-ui-extended 0.0.79 → 0.0.80

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.
@@ -24206,17 +24206,17 @@ if (typeof window !== 'undefined') {
24206
24206
  // EXTERNAL MODULE: ./src/styles/index.scss
24207
24207
  var styles = __webpack_require__("b20f");
24208
24208
 
24209
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3ffeb5ea-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/CompositeTable/index.vue?vue&type=template&id=2d5a8212&scoped=true&
24210
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],staticClass:"composite-table"},[_vm._t("default",function(){return [_c('el-row',{attrs:{"gutter":20}},[_c('el-col',{attrs:{"span":_vm.filters.length ? 18 : 24}},[_vm._t("quick-search-filter",function(){return [(_vm.topFilter)?_c('quick-search-filter',{attrs:{"filter":_vm.topFilter,"search":_vm.topSearch},on:{"apply:filter":_vm.handleApplyTopFilter,"reset:filter":_vm.handleResetTopFilter}}):_vm._e()]},null,{
24209
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3ffeb5ea-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/CompositeTable/index.vue?vue&type=template&id=4981e475&scoped=true&
24210
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],staticClass:"composite-table"},[_vm._t("default",function(){return [_c('el-row',{attrs:{"gutter":20}},[_c('el-col',{attrs:{"span":_vm.filters.length ? 18 : 24}},[(_vm.showTopFilter)?_vm._t("top-filter",function(){return [_c('generic-filter',{attrs:{"filters":_vm.filters,"search":_vm.search},on:{"apply:filter":_vm.handleApplyFilter,"reset:filter":_vm.handleResetFilter}})]},null,{ filters: _vm.filters, search: _vm.search, handleApplyFilter: _vm.handleApplyFilter, handleResetFilter: _vm.handleResetFilter }):_vm._e(),_vm._t("quick-search-filter",function(){return [(_vm.topFilter)?_c('quick-search-filter',{attrs:{"filter":_vm.topFilter,"search":_vm.topSearch},on:{"apply:filter":_vm.handleApplyTopFilter,"reset:filter":_vm.handleResetTopFilter}}):_vm._e()]},null,{
24211
24211
  topFilter: _vm.topFilter,
24212
- search: _vm.search,
24212
+ topSearch: _vm.topSearch,
24213
24213
  handleApplyTopFilter: _vm.handleApplyTopFilter,
24214
24214
  handleResetTopFilter: _vm.handleResetTopFilter,
24215
- }),_vm._t("table",function(){return [_c('generic-table',{attrs:{"fields":_vm.fields,"data":_vm.data},on:{"sort:change":_vm.handleChangeSort}})]},null,{ fields: _vm.fields, data: _vm.data }),_c('el-row',[_c('el-col',[_vm._t("paginator",function(){return [_c('generic-paginator',{attrs:{"total":_vm.total,"limit":_vm.limit,"current-page":_vm.currentPage},on:{"size:change":_vm.handleSizeChange,"page:change":_vm.handleCurrentChange}})]},null,{ total: _vm.total, limit: _vm.limit, currentPage: _vm.currentPage })],2)],1)],2),_c('el-col',{attrs:{"span":_vm.filters.length ? 6 : 0}},[_vm._t("filter",function(){return [(_vm.filters.length)?_c('generic-filter',{attrs:{"filters":_vm.filters,"search":_vm.search},on:{"apply:filter":_vm.handleApplyFilter,"reset:filter":_vm.handleResetFilter}}):_vm._e()]},null,{ filters: _vm.filters, search: _vm.search, handleApplyFilter: _vm.handleApplyFilter, handleResetFilter: _vm.handleResetFilter })],2)],1)]})],2)}
24215
+ }),_vm._t("table",function(){return [_c('generic-table',{attrs:{"fields":_vm.fields,"data":_vm.data},on:{"sort:change":_vm.handleChangeSort}})]},null,{ fields: _vm.fields, data: _vm.data }),_c('el-row',[_c('el-col',[_vm._t("paginator",function(){return [_c('generic-paginator',{attrs:{"total":_vm.total,"limit":_vm.limit,"current-page":_vm.currentPage},on:{"size:change":_vm.handleSizeChange,"page:change":_vm.handleCurrentChange}})]},null,{ total: _vm.total, limit: _vm.limit, currentPage: _vm.currentPage })],2)],1)],2),_c('el-col',{attrs:{"span":_vm.filters.length ? 6 : 0}},[(_vm.showLeftFilter)?_vm._t("filter",function(){return [(_vm.filters.length)?_c('generic-filter',{attrs:{"filters":_vm.filters,"search":_vm.search},on:{"apply:filter":_vm.handleApplyFilter,"reset:filter":_vm.handleResetFilter}}):_vm._e()]},null,{ filters: _vm.filters, search: _vm.search, handleApplyFilter: _vm.handleApplyFilter, handleResetFilter: _vm.handleResetFilter }):_vm._e()],2)],1)]})],2)}
24216
24216
  var staticRenderFns = []
24217
24217
 
24218
24218
 
24219
- // CONCATENATED MODULE: ./src/components/CompositeTable/index.vue?vue&type=template&id=2d5a8212&scoped=true&
24219
+ // CONCATENATED MODULE: ./src/components/CompositeTable/index.vue?vue&type=template&id=4981e475&scoped=true&
24220
24220
 
24221
24221
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
24222
24222
  var es_object_to_string = __webpack_require__("d3b7");
@@ -25829,6 +25829,10 @@ var filter_convertor_FilterConverter = /*#__PURE__*/function () {
25829
25829
  var searchArray = [],
25830
25830
  searchFieldsArray = [];
25831
25831
  Object.keys(search).forEach(function (key) {
25832
+ if (search[key].value === '' || search[key].value instanceof Array && search[key].value.length === 0) {
25833
+ return true;
25834
+ }
25835
+
25832
25836
  if (search[key].operator && search[key].value || ['is_null', 'is_not_null'].includes(search[key].operator) || [null, false].includes(search[key].value)) {
25833
25837
  var _search$key$field;
25834
25838
 
@@ -26444,6 +26448,19 @@ var QuickSearchFilter_component = normalizeComponent(
26444
26448
  //
26445
26449
  //
26446
26450
  //
26451
+ //
26452
+ //
26453
+ //
26454
+ //
26455
+ //
26456
+ //
26457
+ //
26458
+ //
26459
+ //
26460
+ //
26461
+ //
26462
+ //
26463
+ //
26447
26464
 
26448
26465
 
26449
26466
 
@@ -26462,6 +26479,14 @@ var QuickSearchFilter_component = normalizeComponent(
26462
26479
  },
26463
26480
  name: "CompositeTable",
26464
26481
  props: {
26482
+ showTopFilter: {
26483
+ default: false,
26484
+ type: Boolean
26485
+ },
26486
+ showLeftFilter: {
26487
+ default: true,
26488
+ type: Boolean
26489
+ },
26465
26490
  repository: {
26466
26491
  default: function _default() {
26467
26492
  return {};
@@ -26723,7 +26748,7 @@ var CompositeTable_component = normalizeComponent(
26723
26748
  staticRenderFns,
26724
26749
  false,
26725
26750
  null,
26726
- "2d5a8212",
26751
+ "4981e475",
26727
26752
  null
26728
26753
 
26729
26754
  )