aloha-vue 1.2.116 → 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.116",
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",
@@ -10,12 +10,12 @@ export default function PopperContainerAPI(props) {
10
10
  return `#${ popperContainerId.value }`;
11
11
  });
12
12
 
13
- const addPopperContainerInBody = () => {
13
+ const addPopperContainerInBody = ({ className = "a_popup_container" } = {}) => {
14
14
  const ELEMENT_CONTAINER = document.getElementById(popperContainerId.value);
15
15
  if (!ELEMENT_CONTAINER) {
16
16
  const POPPER_CONTAINER = document.createElement("div");
17
17
  POPPER_CONTAINER.id = popperContainerId.value;
18
- POPPER_CONTAINER.className = "a_popup_container";
18
+ POPPER_CONTAINER.className = className;
19
19
  POPPER_CONTAINER.setAttribute("aria-hidden", "true");
20
20
  document.body.prepend(POPPER_CONTAINER);
21
21
  }
@@ -3,6 +3,7 @@ $a_breakpoint_touch: 1023px !default;
3
3
  .a_filters_top {
4
4
  --a_filters_top_padding: 0.5rem;
5
5
  --a_filters_top_form_width: 50%;
6
+ --a_filters_top_form_max_width: 500px;
6
7
  --a_filters_top_label_padding_left: 2rem;
7
8
  --a_filters_top_label_width: 34%;
8
9
  --a_filters_top_subgroup_width: 66%;
@@ -39,7 +40,6 @@ $a_breakpoint_touch: 1023px !default;
39
40
  --a_filter_hor_padding_x: 1rem;
40
41
  --a_filter_hor_padding_y: 1rem;
41
42
  --a_filter_hor_body_max_height: calc(100vh - 1rem - 113px);
42
- --a_filter_hor_footer_height: 70px;
43
43
  --a_filter_hor_footer_bg: rgba(255, 255, 255, 0.7);
44
44
  --a_filter_hor_footer_actions_bg: var(--a_color_white);
45
45
 
@@ -114,7 +114,6 @@ $a_breakpoint_touch: 1023px !default;
114
114
  }
115
115
  .a_filter_horizontal__footer {
116
116
  text-align: right;
117
- height: var(--a_filter_hor_footer_height);
118
117
  position: sticky;
119
118
  bottom: 0;
120
119
  background-color: rgba(255, 255, 255, 0.8);
@@ -137,7 +136,7 @@ $a_breakpoint_touch: 1023px !default;
137
136
  }
138
137
 
139
138
  .a_filters_top__form {
140
- width: var(--a_filters_top_form_width);
139
+ max-width: var(--a_filters_top_form_max_width);
141
140
  padding: 0;
142
141
  }
143
142
  .a_filters_top__save_select {
@@ -22,12 +22,18 @@
22
22
  .a_search_highlight {
23
23
  color: red;
24
24
  }
25
- .a_popup_container {
25
+ .a_popup_container,
26
+ .a_select_container {
26
27
  position: relative;
27
28
  height: 0;
28
- z-index: 1900;
29
29
  top: 100%;
30
30
  }
31
+ .a_popup_container {
32
+ z-index: 1900;
33
+ }
34
+ .a_select_container {
35
+ z-index: 1901;
36
+ }
31
37
  .a_dropdown__menu {
32
38
  box-shadow: 0 0 7px 3px var(--a_color_gray_600);
33
39
  }
@@ -533,7 +533,7 @@ export default {
533
533
  deep: true,
534
534
  });
535
535
 
536
- addPopperContainerInBody();
536
+ addPopperContainerInBody({ className: "a_select_container" });
537
537
  loadDataFromServer();
538
538
  loadDataFromServerForSearchAPI();
539
539
 
@@ -709,6 +709,7 @@ export default {
709
709
  }],
710
710
  role: "listbox",
711
711
  ariaLabelledby: this.htmlIdLocal,
712
+ onClick: event => event.stopPropagation(),
712
713
  }, [
713
714
  this.searchOutsideOrApi && h("div", {
714
715
  class: "a_select__search",