@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.
@@ -24262,7 +24262,7 @@ if (typeof window !== 'undefined') {
24262
24262
  // EXTERNAL MODULE: ./src/styles/index.scss
24263
24263
  var styles = __webpack_require__("b20f");
24264
24264
 
24265
- // 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&
24265
+ // 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&
24266
24266
  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,{
24267
24267
  topFilter: _vm.topFilter,
24268
24268
  topSearch: _vm.topSearch,
@@ -24272,7 +24272,7 @@ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._sel
24272
24272
  var staticRenderFns = []
24273
24273
 
24274
24274
 
24275
- // CONCATENATED MODULE: ./src/components/CompositeTable/index.vue?vue&type=template&id=3aa546cb&scoped=true&
24275
+ // CONCATENATED MODULE: ./src/components/CompositeTable/index.vue?vue&type=template&id=1a823634&scoped=true&
24276
24276
 
24277
24277
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
24278
24278
  var es_object_to_string = __webpack_require__("d3b7");
@@ -25790,6 +25790,72 @@ var dont_ports_filter_DontPortsFilter = /*#__PURE__*/function (_BaseFilter) {
25790
25790
 
25791
25791
  return DontPortsFilter;
25792
25792
  }(base_filter_BaseFilter);
25793
+ // CONCATENATED MODULE: ./src/components/GenericFilters/filters/not-older-than-today-filter.ts
25794
+
25795
+
25796
+
25797
+
25798
+
25799
+ var not_older_than_today_filter_NotOlderThanTodayFilter = /*#__PURE__*/function (_BaseFilter) {
25800
+ _inherits(NotOlderThanTodayFilter, _BaseFilter);
25801
+
25802
+ var _super = _createSuper(NotOlderThanTodayFilter);
25803
+
25804
+ function NotOlderThanTodayFilter(field, value) {
25805
+ var _this;
25806
+
25807
+ _classCallCheck(this, NotOlderThanTodayFilter);
25808
+
25809
+ _this = _super.call(this, field, value);
25810
+ _this.operator = 'not older than today';
25811
+ return _this;
25812
+ }
25813
+
25814
+ _createClass(NotOlderThanTodayFilter, [{
25815
+ key: "applyFilter",
25816
+ value: function applyFilter() {
25817
+ return {
25818
+ searchItem: this.field + ':' + this.value,
25819
+ searchFieldItem: this.field + ':' + this.operator
25820
+ };
25821
+ }
25822
+ }]);
25823
+
25824
+ return NotOlderThanTodayFilter;
25825
+ }(base_filter_BaseFilter);
25826
+ // CONCATENATED MODULE: ./src/components/GenericFilters/filters/not-in-filter.ts
25827
+
25828
+
25829
+
25830
+
25831
+
25832
+ var not_in_filter_NotInFilter = /*#__PURE__*/function (_BaseFilter) {
25833
+ _inherits(NotInFilter, _BaseFilter);
25834
+
25835
+ var _super = _createSuper(NotInFilter);
25836
+
25837
+ function NotInFilter() {
25838
+ var _this;
25839
+
25840
+ _classCallCheck(this, NotInFilter);
25841
+
25842
+ _this = _super.apply(this, arguments);
25843
+ _this.operator = 'not in';
25844
+ return _this;
25845
+ }
25846
+
25847
+ _createClass(NotInFilter, [{
25848
+ key: "applyFilter",
25849
+ value: function applyFilter() {
25850
+ return {
25851
+ searchItem: this.field + ':' + this.value,
25852
+ searchFieldItem: this.field + ':' + this.operator
25853
+ };
25854
+ }
25855
+ }]);
25856
+
25857
+ return NotInFilter;
25858
+ }(base_filter_BaseFilter);
25793
25859
  // CONCATENATED MODULE: ./src/components/GenericFilters/filter-factory.ts
25794
25860
 
25795
25861
 
@@ -25811,6 +25877,8 @@ var dont_ports_filter_DontPortsFilter = /*#__PURE__*/function (_BaseFilter) {
25811
25877
 
25812
25878
 
25813
25879
 
25880
+
25881
+
25814
25882
 
25815
25883
 
25816
25884
 
@@ -25868,6 +25936,9 @@ var filter_factory_FilterFactory = /*#__PURE__*/function () {
25868
25936
  in: function _in(field, value) {
25869
25937
  return new in_filter_InFilter(field, value);
25870
25938
  },
25939
+ not_in: function not_in(field, value) {
25940
+ return new not_in_filter_NotInFilter(field, value);
25941
+ },
25871
25942
  weekDay: function weekDay(field, value) {
25872
25943
  return new week_day_filter_WeekDayFilter(field, value);
25873
25944
  },
@@ -25891,6 +25962,9 @@ var filter_factory_FilterFactory = /*#__PURE__*/function () {
25891
25962
  },
25892
25963
  dont_ports: function dont_ports(field, value) {
25893
25964
  return new dont_ports_filter_DontPortsFilter(field, value);
25965
+ },
25966
+ not_older_than_today: function not_older_than_today(field, value) {
25967
+ return new not_older_than_today_filter_NotOlderThanTodayFilter(field, value);
25894
25968
  }
25895
25969
  };
25896
25970
  }
@@ -26500,6 +26574,7 @@ var QuickSearchFilter_component = normalizeComponent(
26500
26574
 
26501
26575
 
26502
26576
 
26577
+
26503
26578
  //
26504
26579
  //
26505
26580
  //
@@ -26816,16 +26891,20 @@ var QuickSearchFilter_component = normalizeComponent(
26816
26891
  });
26817
26892
  this.handleFilterChange();
26818
26893
  },
26819
- handleResetFilter: function handleResetFilter() {
26820
- for (var column in this.search) {
26821
- this.search[column] = Object.assign(this.search[column], {
26822
- operator: "",
26823
- value: ""
26824
- });
26894
+ handleResetFilter: function handleResetFilter(search) {
26895
+ if (search && Object.keys(search).length) {
26896
+ this.search = search;
26897
+ } else {
26898
+ for (var column in this.search) {
26899
+ this.search[column] = Object.assign(this.search[column], {
26900
+ operator: "",
26901
+ value: ""
26902
+ });
26903
+ }
26825
26904
  }
26826
26905
 
26827
26906
  this.listQueryService.updateListQuery({
26828
- search: {}
26907
+ search: this.search
26829
26908
  });
26830
26909
  this.handleFilterChange({});
26831
26910
  },
@@ -26866,7 +26945,7 @@ var CompositeTable_component = normalizeComponent(
26866
26945
  staticRenderFns,
26867
26946
  false,
26868
26947
  null,
26869
- "3aa546cb",
26948
+ "1a823634",
26870
26949
  null
26871
26950
 
26872
26951
  )