@tripup-company/element-ui-extended 0.0.99 → 0.0.101

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.
@@ -24271,7 +24271,7 @@ if (typeof window !== 'undefined') {
24271
24271
  // EXTERNAL MODULE: ./src/styles/index.scss
24272
24272
  var styles = __webpack_require__("b20f");
24273
24273
 
24274
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f3e0d328-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=3aa546cb&scoped=true&
24274
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f3e0d328-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=1a823634&scoped=true&
24275
24275
  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 && _vm.showRightFilter ? 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,{
24276
24276
  topFilter: _vm.topFilter,
24277
24277
  topSearch: _vm.topSearch,
@@ -24281,7 +24281,7 @@ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._sel
24281
24281
  var staticRenderFns = []
24282
24282
 
24283
24283
 
24284
- // CONCATENATED MODULE: ./src/components/CompositeTable/index.vue?vue&type=template&id=3aa546cb&scoped=true&
24284
+ // CONCATENATED MODULE: ./src/components/CompositeTable/index.vue?vue&type=template&id=1a823634&scoped=true&
24285
24285
 
24286
24286
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
24287
24287
  var es_object_to_string = __webpack_require__("d3b7");
@@ -25799,6 +25799,72 @@ var dont_ports_filter_DontPortsFilter = /*#__PURE__*/function (_BaseFilter) {
25799
25799
 
25800
25800
  return DontPortsFilter;
25801
25801
  }(base_filter_BaseFilter);
25802
+ // CONCATENATED MODULE: ./src/components/GenericFilters/filters/not-older-than-today-filter.ts
25803
+
25804
+
25805
+
25806
+
25807
+
25808
+ var not_older_than_today_filter_NotOlderThanTodayFilter = /*#__PURE__*/function (_BaseFilter) {
25809
+ _inherits(NotOlderThanTodayFilter, _BaseFilter);
25810
+
25811
+ var _super = _createSuper(NotOlderThanTodayFilter);
25812
+
25813
+ function NotOlderThanTodayFilter(field, value) {
25814
+ var _this;
25815
+
25816
+ _classCallCheck(this, NotOlderThanTodayFilter);
25817
+
25818
+ _this = _super.call(this, field, value);
25819
+ _this.operator = 'not older than today';
25820
+ return _this;
25821
+ }
25822
+
25823
+ _createClass(NotOlderThanTodayFilter, [{
25824
+ key: "applyFilter",
25825
+ value: function applyFilter() {
25826
+ return {
25827
+ searchItem: this.field + ':' + this.value,
25828
+ searchFieldItem: this.field + ':' + this.operator
25829
+ };
25830
+ }
25831
+ }]);
25832
+
25833
+ return NotOlderThanTodayFilter;
25834
+ }(base_filter_BaseFilter);
25835
+ // CONCATENATED MODULE: ./src/components/GenericFilters/filters/not-in-filter.ts
25836
+
25837
+
25838
+
25839
+
25840
+
25841
+ var not_in_filter_NotInFilter = /*#__PURE__*/function (_BaseFilter) {
25842
+ _inherits(NotInFilter, _BaseFilter);
25843
+
25844
+ var _super = _createSuper(NotInFilter);
25845
+
25846
+ function NotInFilter() {
25847
+ var _this;
25848
+
25849
+ _classCallCheck(this, NotInFilter);
25850
+
25851
+ _this = _super.apply(this, arguments);
25852
+ _this.operator = 'not in';
25853
+ return _this;
25854
+ }
25855
+
25856
+ _createClass(NotInFilter, [{
25857
+ key: "applyFilter",
25858
+ value: function applyFilter() {
25859
+ return {
25860
+ searchItem: this.field + ':' + this.value,
25861
+ searchFieldItem: this.field + ':' + this.operator
25862
+ };
25863
+ }
25864
+ }]);
25865
+
25866
+ return NotInFilter;
25867
+ }(base_filter_BaseFilter);
25802
25868
  // CONCATENATED MODULE: ./src/components/GenericFilters/filter-factory.ts
25803
25869
 
25804
25870
 
@@ -25820,6 +25886,8 @@ var dont_ports_filter_DontPortsFilter = /*#__PURE__*/function (_BaseFilter) {
25820
25886
 
25821
25887
 
25822
25888
 
25889
+
25890
+
25823
25891
 
25824
25892
 
25825
25893
 
@@ -25877,6 +25945,9 @@ var filter_factory_FilterFactory = /*#__PURE__*/function () {
25877
25945
  in: function _in(field, value) {
25878
25946
  return new in_filter_InFilter(field, value);
25879
25947
  },
25948
+ not_in: function not_in(field, value) {
25949
+ return new not_in_filter_NotInFilter(field, value);
25950
+ },
25880
25951
  weekDay: function weekDay(field, value) {
25881
25952
  return new week_day_filter_WeekDayFilter(field, value);
25882
25953
  },
@@ -25900,6 +25971,9 @@ var filter_factory_FilterFactory = /*#__PURE__*/function () {
25900
25971
  },
25901
25972
  dont_ports: function dont_ports(field, value) {
25902
25973
  return new dont_ports_filter_DontPortsFilter(field, value);
25974
+ },
25975
+ not_older_than_today: function not_older_than_today(field, value) {
25976
+ return new not_older_than_today_filter_NotOlderThanTodayFilter(field, value);
25903
25977
  }
25904
25978
  };
25905
25979
  }
@@ -26509,6 +26583,7 @@ var QuickSearchFilter_component = normalizeComponent(
26509
26583
 
26510
26584
 
26511
26585
 
26586
+
26512
26587
  //
26513
26588
  //
26514
26589
  //
@@ -26825,16 +26900,20 @@ var QuickSearchFilter_component = normalizeComponent(
26825
26900
  });
26826
26901
  this.handleFilterChange();
26827
26902
  },
26828
- handleResetFilter: function handleResetFilter() {
26829
- for (var column in this.search) {
26830
- this.search[column] = Object.assign(this.search[column], {
26831
- operator: "",
26832
- value: ""
26833
- });
26903
+ handleResetFilter: function handleResetFilter(search) {
26904
+ if (search && Object.keys(search).length) {
26905
+ this.search = search;
26906
+ } else {
26907
+ for (var column in this.search) {
26908
+ this.search[column] = Object.assign(this.search[column], {
26909
+ operator: "",
26910
+ value: ""
26911
+ });
26912
+ }
26834
26913
  }
26835
26914
 
26836
26915
  this.listQueryService.updateListQuery({
26837
- search: {}
26916
+ search: this.search
26838
26917
  });
26839
26918
  this.handleFilterChange({});
26840
26919
  },
@@ -26875,7 +26954,7 @@ var CompositeTable_component = normalizeComponent(
26875
26954
  staticRenderFns,
26876
26955
  false,
26877
26956
  null,
26878
- "3aa546cb",
26957
+ "1a823634",
26879
26958
  null
26880
26959
 
26881
26960
  )