@phoenix-cg/v-filters 0.2.13 → 0.2.14
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.
- package/dist/v-filters.common.js +14 -8
- package/dist/v-filters.common.js.map +1 -1
- package/dist/v-filters.umd.js +14 -8
- package/dist/v-filters.umd.js.map +1 -1
- package/dist/v-filters.umd.min.js +1 -1
- package/dist/v-filters.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/VFilters.vue +7 -6
package/dist/v-filters.common.js
CHANGED
|
@@ -6027,7 +6027,7 @@ if (typeof window !== 'undefined') {
|
|
|
6027
6027
|
// Indicate to webpack that this file can be concatenated
|
|
6028
6028
|
/* harmony default export */ var setPublicPath = (null);
|
|
6029
6029
|
|
|
6030
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"22714775-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/VFilters.vue?vue&type=template&id=
|
|
6030
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"22714775-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/VFilters.vue?vue&type=template&id=02ebe153&
|
|
6031
6031
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"v-filters"},[_c('div',{staticClass:"v-filters_fields"},[_vm._t("before-fields"),_vm._l((_vm.fields),function(field){return _c(_vm.fieldComponentName,{key:field._name,tag:"component",class:[("__" + (field._name))],attrs:{"title":field.title}},[_c(_vm.componentsMap[field._type],_vm._b({key:_vm.fieldKey,tag:"component",on:{"input":function($event){return _vm.handleFieldChange(field._name, $event)}},model:{value:(_vm.filters[field._name]),callback:function ($$v) {_vm.$set(_vm.filters, field._name, $$v)},expression:"filters[field._name]"}},'component',_vm.getFieldProps(field),false))],1)}),_vm._t("after-fields"),_vm._t("actions",[_c(_vm.fieldComponentName,{tag:"component"},[(!_vm.immediate)?_c('button',{staticClass:"v-button v-filters_button",on:{"click":_vm.showResult}},[_vm._v(" "+_vm._s(_vm.actionTitle)+" ")]):_vm._e(),(_vm.edited)?_c('button',{staticClass:"v-button v-filters_button __reset",on:{"click":_vm.resetFilters}},[_vm._v(" Сбросить параметры ")]):_vm._e()])],null,{
|
|
6032
6032
|
showResult: _vm.showResult,
|
|
6033
6033
|
resetFilters: _vm.resetFilters,
|
|
@@ -6044,7 +6044,7 @@ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._sel
|
|
|
6044
6044
|
var staticRenderFns = []
|
|
6045
6045
|
|
|
6046
6046
|
|
|
6047
|
-
// CONCATENATED MODULE: ./src/components/VFilters.vue?vue&type=template&id=
|
|
6047
|
+
// CONCATENATED MODULE: ./src/components/VFilters.vue?vue&type=template&id=02ebe153&
|
|
6048
6048
|
|
|
6049
6049
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
6050
6050
|
var es_promise = __webpack_require__("e6cf");
|
|
@@ -7206,13 +7206,15 @@ var VFiltersvue_type_script_lang_js_unserialize = function unserialize(input) {
|
|
|
7206
7206
|
});
|
|
7207
7207
|
this.inited = true;
|
|
7208
7208
|
|
|
7209
|
-
if (!isUpdate) {
|
|
7209
|
+
if (!isUpdate && this.initializedEmitted) {
|
|
7210
|
+
this.setUrlParams();
|
|
7211
|
+
this.doAction(true);
|
|
7212
|
+
}
|
|
7213
|
+
|
|
7214
|
+
if (!this.initializedEmitted) {
|
|
7210
7215
|
this.setUrlParams(false, this.getInitialFlatFilters());
|
|
7211
7216
|
this.$emit('fields-initialized', this.getInitialFlatFilters());
|
|
7212
7217
|
this.initializedEmitted = true;
|
|
7213
|
-
} else {
|
|
7214
|
-
this.setUrlParams();
|
|
7215
|
-
this.doAction(true);
|
|
7216
7218
|
}
|
|
7217
7219
|
},
|
|
7218
7220
|
getInitialFlatFilters: function getInitialFlatFilters() {
|
|
@@ -7222,7 +7224,11 @@ var VFiltersvue_type_script_lang_js_unserialize = function unserialize(input) {
|
|
|
7222
7224
|
|
|
7223
7225
|
this.fields.forEach(function (field) {
|
|
7224
7226
|
var value = _this3.filters[field._name];
|
|
7225
|
-
|
|
7227
|
+
|
|
7228
|
+
if (!value || !value._id) {
|
|
7229
|
+
return;
|
|
7230
|
+
}
|
|
7231
|
+
|
|
7226
7232
|
filters[field._name] = [value._id];
|
|
7227
7233
|
});
|
|
7228
7234
|
return filters;
|
|
@@ -7276,7 +7282,7 @@ var VFiltersvue_type_script_lang_js_unserialize = function unserialize(input) {
|
|
|
7276
7282
|
doAction: function doAction() {
|
|
7277
7283
|
var showResult = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
7278
7284
|
|
|
7279
|
-
if (showResult
|
|
7285
|
+
if (showResult) {
|
|
7280
7286
|
this.showResult();
|
|
7281
7287
|
} else {
|
|
7282
7288
|
this.requestCount();
|