@tripup-company/element-ui-extended 0.0.50 → 0.0.51

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.
@@ -339,6 +339,57 @@ module.exports = function (originalArray) {
339
339
  };
340
340
 
341
341
 
342
+ /***/ }),
343
+
344
+ /***/ "0cb2":
345
+ /***/ (function(module, exports, __webpack_require__) {
346
+
347
+ var uncurryThis = __webpack_require__("e330");
348
+ var toObject = __webpack_require__("7b0b");
349
+
350
+ var floor = Math.floor;
351
+ var charAt = uncurryThis(''.charAt);
352
+ var replace = uncurryThis(''.replace);
353
+ var stringSlice = uncurryThis(''.slice);
354
+ var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
355
+ var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
356
+
357
+ // `GetSubstitution` abstract operation
358
+ // https://tc39.es/ecma262/#sec-getsubstitution
359
+ module.exports = function (matched, str, position, captures, namedCaptures, replacement) {
360
+ var tailPos = position + matched.length;
361
+ var m = captures.length;
362
+ var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
363
+ if (namedCaptures !== undefined) {
364
+ namedCaptures = toObject(namedCaptures);
365
+ symbols = SUBSTITUTION_SYMBOLS;
366
+ }
367
+ return replace(replacement, symbols, function (match, ch) {
368
+ var capture;
369
+ switch (charAt(ch, 0)) {
370
+ case '$': return '$';
371
+ case '&': return matched;
372
+ case '`': return stringSlice(str, 0, position);
373
+ case "'": return stringSlice(str, tailPos);
374
+ case '<':
375
+ capture = namedCaptures[stringSlice(ch, 1, -1)];
376
+ break;
377
+ default: // \d\d?
378
+ var n = +ch;
379
+ if (n === 0) return match;
380
+ if (n > m) {
381
+ var f = floor(n / 10);
382
+ if (f === 0) return match;
383
+ if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
384
+ return match;
385
+ }
386
+ capture = captures[n - 1];
387
+ }
388
+ return capture === undefined ? '' : capture;
389
+ });
390
+ };
391
+
392
+
342
393
  /***/ }),
343
394
 
344
395
  /***/ "0cfb":
@@ -18851,6 +18902,150 @@ module.exports = function (argument) {
18851
18902
  };
18852
18903
 
18853
18904
 
18905
+ /***/ }),
18906
+
18907
+ /***/ "5319":
18908
+ /***/ (function(module, exports, __webpack_require__) {
18909
+
18910
+ "use strict";
18911
+
18912
+ var apply = __webpack_require__("2ba4");
18913
+ var call = __webpack_require__("c65b");
18914
+ var uncurryThis = __webpack_require__("e330");
18915
+ var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784");
18916
+ var fails = __webpack_require__("d039");
18917
+ var anObject = __webpack_require__("825a");
18918
+ var isCallable = __webpack_require__("1626");
18919
+ var toIntegerOrInfinity = __webpack_require__("5926");
18920
+ var toLength = __webpack_require__("50c4");
18921
+ var toString = __webpack_require__("577e");
18922
+ var requireObjectCoercible = __webpack_require__("1d80");
18923
+ var advanceStringIndex = __webpack_require__("8aa5");
18924
+ var getMethod = __webpack_require__("dc4a");
18925
+ var getSubstitution = __webpack_require__("0cb2");
18926
+ var regExpExec = __webpack_require__("14c3");
18927
+ var wellKnownSymbol = __webpack_require__("b622");
18928
+
18929
+ var REPLACE = wellKnownSymbol('replace');
18930
+ var max = Math.max;
18931
+ var min = Math.min;
18932
+ var concat = uncurryThis([].concat);
18933
+ var push = uncurryThis([].push);
18934
+ var stringIndexOf = uncurryThis(''.indexOf);
18935
+ var stringSlice = uncurryThis(''.slice);
18936
+
18937
+ var maybeToString = function (it) {
18938
+ return it === undefined ? it : String(it);
18939
+ };
18940
+
18941
+ // IE <= 11 replaces $0 with the whole match, as if it was $&
18942
+ // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
18943
+ var REPLACE_KEEPS_$0 = (function () {
18944
+ // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
18945
+ return 'a'.replace(/./, '$0') === '$0';
18946
+ })();
18947
+
18948
+ // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
18949
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
18950
+ if (/./[REPLACE]) {
18951
+ return /./[REPLACE]('a', '$0') === '';
18952
+ }
18953
+ return false;
18954
+ })();
18955
+
18956
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
18957
+ var re = /./;
18958
+ re.exec = function () {
18959
+ var result = [];
18960
+ result.groups = { a: '7' };
18961
+ return result;
18962
+ };
18963
+ // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
18964
+ return ''.replace(re, '$<a>') !== '7';
18965
+ });
18966
+
18967
+ // @@replace logic
18968
+ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
18969
+ var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
18970
+
18971
+ return [
18972
+ // `String.prototype.replace` method
18973
+ // https://tc39.es/ecma262/#sec-string.prototype.replace
18974
+ function replace(searchValue, replaceValue) {
18975
+ var O = requireObjectCoercible(this);
18976
+ var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
18977
+ return replacer
18978
+ ? call(replacer, searchValue, O, replaceValue)
18979
+ : call(nativeReplace, toString(O), searchValue, replaceValue);
18980
+ },
18981
+ // `RegExp.prototype[@@replace]` method
18982
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
18983
+ function (string, replaceValue) {
18984
+ var rx = anObject(this);
18985
+ var S = toString(string);
18986
+
18987
+ if (
18988
+ typeof replaceValue == 'string' &&
18989
+ stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
18990
+ stringIndexOf(replaceValue, '$<') === -1
18991
+ ) {
18992
+ var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
18993
+ if (res.done) return res.value;
18994
+ }
18995
+
18996
+ var functionalReplace = isCallable(replaceValue);
18997
+ if (!functionalReplace) replaceValue = toString(replaceValue);
18998
+
18999
+ var global = rx.global;
19000
+ if (global) {
19001
+ var fullUnicode = rx.unicode;
19002
+ rx.lastIndex = 0;
19003
+ }
19004
+ var results = [];
19005
+ while (true) {
19006
+ var result = regExpExec(rx, S);
19007
+ if (result === null) break;
19008
+
19009
+ push(results, result);
19010
+ if (!global) break;
19011
+
19012
+ var matchStr = toString(result[0]);
19013
+ if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
19014
+ }
19015
+
19016
+ var accumulatedResult = '';
19017
+ var nextSourcePosition = 0;
19018
+ for (var i = 0; i < results.length; i++) {
19019
+ result = results[i];
19020
+
19021
+ var matched = toString(result[0]);
19022
+ var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
19023
+ var captures = [];
19024
+ // NOTE: This is equivalent to
19025
+ // captures = result.slice(1).map(maybeToString)
19026
+ // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
19027
+ // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
19028
+ // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
19029
+ for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
19030
+ var namedCaptures = result.groups;
19031
+ if (functionalReplace) {
19032
+ var replacerArgs = concat([matched], captures, position, S);
19033
+ if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
19034
+ var replacement = toString(apply(replaceValue, undefined, replacerArgs));
19035
+ } else {
19036
+ replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
19037
+ }
19038
+ if (position >= nextSourcePosition) {
19039
+ accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
19040
+ nextSourcePosition = position + matched.length;
19041
+ }
19042
+ }
19043
+ return accumulatedResult + stringSlice(S, nextSourcePosition);
19044
+ }
19045
+ ];
19046
+ }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
19047
+
19048
+
18854
19049
  /***/ }),
18855
19050
 
18856
19051
  /***/ "5692":
@@ -19956,6 +20151,22 @@ if (!isCallable(store.inspectSource)) {
19956
20151
  module.exports = store.inspectSource;
19957
20152
 
19958
20153
 
20154
+ /***/ }),
20155
+
20156
+ /***/ "8aa5":
20157
+ /***/ (function(module, exports, __webpack_require__) {
20158
+
20159
+ "use strict";
20160
+
20161
+ var charAt = __webpack_require__("6547").charAt;
20162
+
20163
+ // `AdvanceStringIndex` abstract operation
20164
+ // https://tc39.es/ecma262/#sec-advancestringindex
20165
+ module.exports = function (S, index, unicode) {
20166
+ return index + (unicode ? charAt(S, index).length : 1);
20167
+ };
20168
+
20169
+
19959
20170
  /***/ }),
19960
20171
 
19961
20172
  /***/ "8b00":
@@ -24050,12 +24261,19 @@ var GenericFiltersvue_type_template_id_577eb898_scoped_true_staticRenderFns = []
24050
24261
 
24051
24262
  // CONCATENATED MODULE: ./src/components/GenericFilters/index.vue?vue&type=template&id=577eb898&scoped=true&
24052
24263
 
24053
- // 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/GenericFilters/FilterRow.vue?vue&type=template&id=8ba5bfa6&
24054
- var FilterRowvue_type_template_id_8ba5bfa6_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-row',{staticClass:"m-b-10"},[_c('el-row',[_c('el-col',{attrs:{"lg":4,"md":4,"sm":4,"xs":4}},[_c('el-checkbox',{model:{value:(_vm.showFilter),callback:function ($$v) {_vm.showFilter=$$v},expression:"showFilter"}},[_c('span',[_vm._v(_vm._s(_vm.column.label))])])],1)],1),(_vm.showFilter)?_c('el-row',{staticClass:"m-t-5"},[(_vm.operators.length !== 1 && _vm.operators.length !== 0)?_c('el-col',{staticClass:"p-b-10",attrs:{"span":24}},[_c('el-select',{attrs:{"placeholder":"Select"},model:{value:(_vm.search.operator),callback:function ($$v) {_vm.$set(_vm.search, "operator", $$v)},expression:"search.operator"}},_vm._l((_vm.operators),function(operator){return _c('el-option',{key:operator.value,attrs:{"label":operator.label,"value":operator.value}})}),1)],1):_vm._e(),_c('el-col',{attrs:{"span":24}},[(_vm.column.type === 'string')?_c('el-input',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isDisableInput(_vm.search.operator)),expression:"!isDisableInput(search.operator)"}],model:{value:(_vm.search.value),callback:function ($$v) {_vm.$set(_vm.search, "value", $$v)},expression:"search.value"}}):(_vm.column.type === 'date')?_c('el-date-picker',{staticClass:"w-100",attrs:{"end-placeholder":"To","format":"dd.MM.yy","placeholder":"Pick a day","range-separator":"-","start-placeholder":"From","type":"daterange","value-format":"yyyy-MM-dd"},model:{value:(_vm.search.value),callback:function ($$v) {_vm.$set(_vm.search, "value", $$v)},expression:"search.value"}}):_c('el-select',{attrs:{"refs":"select","multiple":_vm.isMultiple,"placeholder":"Select","filterable":_vm.filterable,"remote":_vm.remote,"remote-method":_vm.remoteMethodHandler,"loading":_vm.loading,"clearable":""},on:{"change":_vm.updateSearch},model:{value:(_vm.search.value),callback:function ($$v) {_vm.$set(_vm.search, "value", $$v)},expression:"search.value"}},_vm._l((_vm.selectListLocal),function(item){return _c('el-option',{key:item[_vm.selectKey],attrs:{"label":item[_vm.selectLabel],"value":item[_vm.selectValue]}})}),1)],1)],1):_vm._e()],1)}
24055
- var FilterRowvue_type_template_id_8ba5bfa6_staticRenderFns = []
24264
+ // 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/GenericFilters/FilterRow.vue?vue&type=template&id=32b631a7&
24265
+ var FilterRowvue_type_template_id_32b631a7_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-row',{staticClass:"m-b-10"},[_c('el-row',[_c('el-col',{attrs:{"lg":4,"md":4,"sm":4,"xs":4}},[_c('el-checkbox',{model:{value:(_vm.showFilter),callback:function ($$v) {_vm.showFilter=$$v},expression:"showFilter"}},[_c('span',[_vm._v(_vm._s(_vm.column.label))])])],1)],1),(_vm.showFilter)?_c('el-row',{staticClass:"m-t-5"},[(_vm.operators.length !== 1 && _vm.operators.length !== 0)?_c('el-col',{staticClass:"p-b-10",attrs:{"span":24}},[_c('el-select',{attrs:{"placeholder":"Select"},model:{value:(_vm.search.operator),callback:function ($$v) {_vm.$set(_vm.search, "operator", $$v)},expression:"search.operator"}},_vm._l((_vm.operators),function(operator){return _c('el-option',{key:operator.value,attrs:{"label":operator.label,"value":operator.value}})}),1)],1):_vm._e(),_c('el-col',{attrs:{"span":24}},[(_vm.column.type === 'string')?_c('el-input',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isDisableInput(_vm.search.operator)),expression:"!isDisableInput(search.operator)"}],model:{value:(_vm.search.value),callback:function ($$v) {_vm.$set(_vm.search, "value", $$v)},expression:"search.value"}}):(_vm.column.type === 'date')?_c('el-date-picker',{staticClass:"w-100",attrs:{"end-placeholder":"To","format":"dd.MM.yy","placeholder":"Pick a day","range-separator":"-","start-placeholder":"From","type":"daterange","value-format":"yyyy-MM-dd"},model:{value:(_vm.search.value),callback:function ($$v) {_vm.$set(_vm.search, "value", $$v)},expression:"search.value"}}):_c('el-select',{attrs:{"refs":"select","multiple":_vm.isMultiple,"placeholder":"Select","filterable":_vm.filterable,"remote":_vm.remote,"remote-method":_vm.remoteMethodHandler,"loading":_vm.loading,"clearable":""},on:{"change":_vm.updateSearch},model:{value:(_vm.search.value),callback:function ($$v) {_vm.$set(_vm.search, "value", $$v)},expression:"search.value"}},_vm._l((_vm.selectListLocal),function(item){return _c('el-option',{key:item[_vm.selectKey],attrs:{"label":item[_vm.selectLabel],"value":item[_vm.selectValue]}})}),1)],1)],1):_vm._e()],1)}
24266
+ var FilterRowvue_type_template_id_32b631a7_staticRenderFns = []
24267
+
24268
+
24269
+ // CONCATENATED MODULE: ./src/components/GenericFilters/FilterRow.vue?vue&type=template&id=32b631a7&
24056
24270
 
24271
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
24272
+ var es_string_replace = __webpack_require__("5319");
24057
24273
 
24058
- // CONCATENATED MODULE: ./src/components/GenericFilters/FilterRow.vue?vue&type=template&id=8ba5bfa6&
24274
+ // EXTERNAL MODULE: ./node_modules/lodash/lodash.js
24275
+ var lodash = __webpack_require__("2ef0");
24276
+ var lodash_default = /*#__PURE__*/__webpack_require__.n(lodash);
24059
24277
 
24060
24278
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/GenericFilters/FilterRow.vue?vue&type=script&lang=js&
24061
24279
 
@@ -24069,6 +24287,7 @@ var FilterRowvue_type_template_id_8ba5bfa6_staticRenderFns = []
24069
24287
 
24070
24288
 
24071
24289
 
24290
+
24072
24291
  //
24073
24292
  //
24074
24293
  //
@@ -24136,6 +24355,7 @@ var FilterRowvue_type_template_id_8ba5bfa6_staticRenderFns = []
24136
24355
  //
24137
24356
  //
24138
24357
  //
24358
+
24139
24359
  /* harmony default export */ var FilterRowvue_type_script_lang_js_ = ({
24140
24360
  props: {
24141
24361
  column: {
@@ -24233,7 +24453,10 @@ var FilterRowvue_type_template_id_8ba5bfa6_staticRenderFns = []
24233
24453
 
24234
24454
  case ("enum", "select"):
24235
24455
  if (this.column.operator) {
24236
- operators = this.enumOperatorsInObject;
24456
+ operators = [{
24457
+ value: this.column.operator,
24458
+ label: Object(lodash["upperFirst"])(this.column.operator.replace('_', ' '))
24459
+ }];
24237
24460
  } else if (this.column.selectMultiple) {
24238
24461
  operators = this.enumOperatorsMultiple;
24239
24462
  } else {
@@ -24461,8 +24684,8 @@ function normalizeComponent (
24461
24684
 
24462
24685
  var component = normalizeComponent(
24463
24686
  GenericFilters_FilterRowvue_type_script_lang_js_,
24464
- FilterRowvue_type_template_id_8ba5bfa6_render,
24465
- FilterRowvue_type_template_id_8ba5bfa6_staticRenderFns,
24687
+ FilterRowvue_type_template_id_32b631a7_render,
24688
+ FilterRowvue_type_template_id_32b631a7_staticRenderFns,
24466
24689
  false,
24467
24690
  null,
24468
24691
  null,
@@ -25021,6 +25244,39 @@ var in_object_InObject = /*#__PURE__*/function (_BaseFilter) {
25021
25244
 
25022
25245
  return InObject;
25023
25246
  }(base_filter_BaseFilter);
25247
+ // CONCATENATED MODULE: ./src/components/GenericFilters/filters/in-array.ts
25248
+
25249
+
25250
+
25251
+
25252
+
25253
+ var in_array_InArray = /*#__PURE__*/function (_BaseFilter) {
25254
+ _inherits(InArray, _BaseFilter);
25255
+
25256
+ var _super = _createSuper(InArray);
25257
+
25258
+ function InArray() {
25259
+ var _this;
25260
+
25261
+ _classCallCheck(this, InArray);
25262
+
25263
+ _this = _super.apply(this, arguments);
25264
+ _this.operator = 'in array';
25265
+ return _this;
25266
+ }
25267
+
25268
+ _createClass(InArray, [{
25269
+ key: "applyFilter",
25270
+ value: function applyFilter() {
25271
+ return {
25272
+ searchItem: this.field + ':' + this.value,
25273
+ searchFieldItem: this.field + ':' + this.operator
25274
+ };
25275
+ }
25276
+ }]);
25277
+
25278
+ return InArray;
25279
+ }(base_filter_BaseFilter);
25024
25280
  // CONCATENATED MODULE: ./src/components/GenericFilters/filters/week-day-filter.ts
25025
25281
 
25026
25282
 
@@ -25140,6 +25396,7 @@ var group_by_filter_GroupByFilter = /*#__PURE__*/function (_BaseFilter) {
25140
25396
 
25141
25397
 
25142
25398
 
25399
+
25143
25400
  var filter_factory_FilterFactory = /*#__PURE__*/function () {
25144
25401
  function FilterFactory() {
25145
25402
  _classCallCheck(this, FilterFactory);
@@ -25205,6 +25462,9 @@ var filter_factory_FilterFactory = /*#__PURE__*/function () {
25205
25462
  },
25206
25463
  in_object: function in_object(field, value) {
25207
25464
  return new in_object_InObject(field, value);
25465
+ },
25466
+ in_array: function in_array(field, value) {
25467
+ return new in_array_InArray(field, value);
25208
25468
  }
25209
25469
  };
25210
25470
  }
@@ -26138,10 +26398,6 @@ var NewFieldvue_type_template_id_623e5bed_staticRenderFns = []
26138
26398
 
26139
26399
  // CONCATENATED MODULE: ./src/components/NewField/index.vue?vue&type=template&id=623e5bed&
26140
26400
 
26141
- // EXTERNAL MODULE: ./node_modules/lodash/lodash.js
26142
- var lodash = __webpack_require__("2ef0");
26143
- var lodash_default = /*#__PURE__*/__webpack_require__.n(lodash);
26144
-
26145
26401
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/NewField/index.vue?vue&type=script&lang=js&
26146
26402
 
26147
26403