@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.
@@ -24197,17 +24197,17 @@ if (typeof window !== 'undefined') {
24197
24197
  // EXTERNAL MODULE: ./src/styles/index.scss
24198
24198
  var styles = __webpack_require__("b20f");
24199
24199
 
24200
- // 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&
24201
- 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,{
24200
+ // 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&
24201
+ 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,{
24202
24202
  topFilter: _vm.topFilter,
24203
- search: _vm.search,
24203
+ topSearch: _vm.topSearch,
24204
24204
  handleApplyTopFilter: _vm.handleApplyTopFilter,
24205
24205
  handleResetTopFilter: _vm.handleResetTopFilter,
24206
- }),_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)}
24206
+ }),_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)}
24207
24207
  var staticRenderFns = []
24208
24208
 
24209
24209
 
24210
- // CONCATENATED MODULE: ./src/components/CompositeTable/index.vue?vue&type=template&id=2d5a8212&scoped=true&
24210
+ // CONCATENATED MODULE: ./src/components/CompositeTable/index.vue?vue&type=template&id=4981e475&scoped=true&
24211
24211
 
24212
24212
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
24213
24213
  var es_object_to_string = __webpack_require__("d3b7");
@@ -25820,6 +25820,10 @@ var filter_convertor_FilterConverter = /*#__PURE__*/function () {
25820
25820
  var searchArray = [],
25821
25821
  searchFieldsArray = [];
25822
25822
  Object.keys(search).forEach(function (key) {
25823
+ if (search[key].value === '' || search[key].value instanceof Array && search[key].value.length === 0) {
25824
+ return true;
25825
+ }
25826
+
25823
25827
  if (search[key].operator && search[key].value || ['is_null', 'is_not_null'].includes(search[key].operator) || [null, false].includes(search[key].value)) {
25824
25828
  var _search$key$field;
25825
25829
 
@@ -26435,6 +26439,19 @@ var QuickSearchFilter_component = normalizeComponent(
26435
26439
  //
26436
26440
  //
26437
26441
  //
26442
+ //
26443
+ //
26444
+ //
26445
+ //
26446
+ //
26447
+ //
26448
+ //
26449
+ //
26450
+ //
26451
+ //
26452
+ //
26453
+ //
26454
+ //
26438
26455
 
26439
26456
 
26440
26457
 
@@ -26453,6 +26470,14 @@ var QuickSearchFilter_component = normalizeComponent(
26453
26470
  },
26454
26471
  name: "CompositeTable",
26455
26472
  props: {
26473
+ showTopFilter: {
26474
+ default: false,
26475
+ type: Boolean
26476
+ },
26477
+ showLeftFilter: {
26478
+ default: true,
26479
+ type: Boolean
26480
+ },
26456
26481
  repository: {
26457
26482
  default: function _default() {
26458
26483
  return {};
@@ -26714,7 +26739,7 @@ var CompositeTable_component = normalizeComponent(
26714
26739
  staticRenderFns,
26715
26740
  false,
26716
26741
  null,
26717
- "2d5a8212",
26742
+ "4981e475",
26718
26743
  null
26719
26744
 
26720
26745
  )