aloha-vue 1.2.117 → 1.2.118

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/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "Vue.js"
15
15
  ],
16
16
  "homepage": "https://github.com/ilia-brykin/aloha/#README.md",
17
- "version": "1.2.117",
17
+ "version": "1.2.118",
18
18
  "author": {
19
19
  "name": "Ilia Brykin",
20
20
  "email": "brykin.ilia@gmail.com"
@@ -214,22 +214,24 @@ export default {
214
214
  filtersKeyById: this.filtersKeyById,
215
215
  filtersVisibleAll: this.filtersVisibleAll,
216
216
  }, {
217
- filtersHorizontal: () => h(AFiltersHorizontal, {
218
- ref: "filtersHorizontalRef",
219
- id: this.id,
220
- canSave: this.canSave,
221
- disabled: this.disabled,
222
- filtersGroup: this.filtersGroup,
223
- filtersKeyById: this.filtersKeyById,
224
- filtersSaved: this.filtersSavedLocal,
225
- filtersVisible: this.filtersVisible,
226
- onUpdateModelFilters: this.onUpdateModelFilters,
227
- unappliedModel: this.unappliedModel,
228
- updateDataKeyByIdFromFilter: this.updateDataKeyByIdFromFilter,
229
- updateFiltersSaved: this.updateFiltersSavedLocal,
230
- onStartSearch: this.startSearch,
231
- onToggleFiltersVisible: this.toggleFiltersVisible,
232
- }, this.$slots),
217
+ filtersHorizontal: () => this.view === "top" ?
218
+ h(AFiltersHorizontal, {
219
+ ref: "filtersHorizontalRef",
220
+ id: this.id,
221
+ canSave: this.canSave,
222
+ disabled: this.disabled,
223
+ filtersGroup: this.filtersGroup,
224
+ filtersKeyById: this.filtersKeyById,
225
+ filtersSaved: this.filtersSavedLocal,
226
+ filtersVisible: this.filtersVisible,
227
+ onUpdateModelFilters: this.onUpdateModelFilters,
228
+ unappliedModel: this.unappliedModel,
229
+ updateDataKeyByIdFromFilter: this.updateDataKeyByIdFromFilter,
230
+ updateFiltersSaved: this.updateFiltersSavedLocal,
231
+ onStartSearch: this.startSearch,
232
+ onToggleFiltersVisible: this.toggleFiltersVisible,
233
+ }, this.$slots) :
234
+ "",
233
235
  ...this.$slots,
234
236
  }),
235
237
  ],
@@ -232,7 +232,6 @@ export default {
232
232
  class: "a_filters_top__save_select",
233
233
  data: this.filtersSavedLocal,
234
234
  deselect: false,
235
- // disabled: !this.filtersSaved.length,
236
235
  keyId: "label",
237
236
  keyLabel: "label",
238
237
  keyGroup: "group",
@@ -279,6 +278,7 @@ export default {
279
278
  change: this.addFiltersVisible,
280
279
  data: this.filtersHidden,
281
280
  hasCaret: false,
281
+ disabled: !this.filtersHidden.length,
282
282
  isLabelFloat: false,
283
283
  keyGroup: "group",
284
284
  keyId: "id",
@@ -533,7 +533,7 @@ export default {
533
533
  deep: true,
534
534
  });
535
535
 
536
- addPopperContainerInBody({ className: "a_select_container " });
536
+ addPopperContainerInBody({ className: "a_select_container" });
537
537
  loadDataFromServer();
538
538
  loadDataFromServerForSearchAPI();
539
539