aloha-vue 1.2.87 → 1.2.89

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.87",
17
+ "version": "1.2.89",
18
18
  "author": {
19
19
  "name": "Ilia Brykin",
20
20
  "email": "brykin.ilia@gmail.com"
@@ -20,13 +20,14 @@ export default function FilterSpecificTypeAPI(props) {
20
20
  const ATTRIBUTES = {};
21
21
  const IS_NUMBER_RANGE = typesMapInputNumberRange[filter.value.type];
22
22
  const IS_DATEPICKER_RANGE = typesMapDatepickerRange[filter.value.type];
23
- if (IS_NUMBER_RANGE || IS_DATEPICKER_RANGE) {
23
+ if (IS_NUMBER_RANGE) {
24
24
  if (isUndefined(filter.value.inputWidth)) {
25
25
  ATTRIBUTES.inputWidth = "auto";
26
26
  }
27
27
  }
28
28
 
29
29
  if (IS_DATEPICKER_RANGE) {
30
+ ATTRIBUTES.inputWidth = "inherit";
30
31
  ATTRIBUTES.inputAttributes = {
31
32
  style: "min-width: 181px",
32
33
  };
@@ -231,6 +231,7 @@ export default {
231
231
  dropdownAttributes: {
232
232
  buttonText: "Aktionen",
233
233
  buttonClass: "a_btn a_btn_secondary a_table__action",
234
+ inBody: true,
234
235
  placement: "bottom-end",
235
236
  },
236
237
  }),
@@ -243,8 +244,9 @@ export default {
243
244
  minDropdownActions: 0,
244
245
  dropdownAttributes: {
245
246
  id: this.buttonMultipleId,
246
- buttonText: "Mehrfachaktionen",
247
247
  buttonClass: "a_btn a_btn_secondary a_table__action",
248
+ buttonText: "Mehrfachaktionen",
249
+ inBody: true,
248
250
  placement: "bottom-end",
249
251
  },
250
252
  }),
@@ -70,9 +70,15 @@
70
70
  margin-top: 1rem;
71
71
  display: flex;
72
72
  justify-content: space-between;
73
+ flex-wrap: wrap;
74
+ row-gap: .5rem;
75
+ column-gap: .5rem;
73
76
  &:first-child {
74
77
  margin-top: 0;
75
78
  }
79
+ .a_filters_top__search {
80
+ margin-left: 0;
81
+ }
76
82
  }
77
83
  .a_filters_top__footer__select {
78
84
  display: inline-block;
@@ -26,6 +26,8 @@
26
26
  --a_table_preview_right_border_color: #f1f4f7;
27
27
  --a_table_preview_right_header_bg: #f1f4f7;
28
28
  --a_table_preview_right_header_font_size: 1.5rem;
29
+ --a_table_preview_right_shadow_size: -2px 0 3px 1px;;
30
+ --a_table_preview_right_shadow_color: var(--a_color_gray_600);
29
31
  --a_table_preview_down_border_width: 4px;
30
32
  --a_table_preview_down_border_color: var(--a_color_gray_400);
31
33
  --a_table_preview_down_padding_y: 1.5rem;
@@ -430,9 +432,10 @@
430
432
  border-width: var(--a_table_preview_right_border_width);
431
433
  border-style: solid;
432
434
  border-color: var(--a_table_preview_right_border_color);
435
+ box-shadow: var(--a_table_preview_right_shadow_size) var(--a_table_preview_right_shadow_color);
433
436
 
434
437
  &:focus {
435
- box-shadow: var(--a_table_row_focus_shadow_size) var(--a_table_row_focus_shadow_color);
438
+ --a_table_preview_right_shadow_color: var(--a_table_row_focus_shadow_color);
436
439
  }
437
440
  }
438
441
  .a_table__preview_right__header {
@@ -7,6 +7,8 @@
7
7
  --a_datepicker_range_label_max_margin_left: 6px;
8
8
  --a_datepicker_range_label_white_space: nowrap;
9
9
 
10
+ --a_datepicker_range_group_flex_basis: 230px;
11
+
10
12
  .a_form_element {
11
13
  width: var(--a_input_datepicker_range_width);
12
14
  max-width: var(--a_input_datepicker_range_max_width);
@@ -18,11 +20,18 @@
18
20
  align-items: center;
19
21
  flex-wrap: wrap;
20
22
  row-gap: .5rem;
23
+ column-gap: .5rem;
21
24
  }
22
25
  .a_datepicker_range__group {
23
26
  display: flex;
24
27
  align-items: center;
25
- flex-basis: 50%;
28
+ flex-wrap: wrap;
29
+ flex-basis: var(--a_datepicker_range_group_flex_basis);
30
+ flex-grow: 1;
31
+
32
+ .a_form_element_label {
33
+ display: flex;
34
+ }
26
35
  }
27
36
  .a_datepicker_range__label {
28
37
  margin-right: var(--a_datepicker_range_label_padding_right);
@@ -2,17 +2,25 @@
2
2
  --a_input_number_range_label_padding_right: .5rem;
3
3
  --a_input_number_range_label_max_margin_left: 6px;
4
4
  --a_input_number_range_label_white_space: nowrap;
5
+ --a_input_number_range_group_flex_basis: 230px;
5
6
  }
6
7
  .a_input_number_range__content {
7
8
  display: flex;
8
9
  align-items: center;
9
- flex-wrap: wrap;
10
+ flex-wrap: wrap;
10
11
  row-gap: .5rem;
12
+ column-gap: .5rem;
11
13
  }
12
14
  .a_input_number_range__group {
13
15
  display: flex;
14
16
  align-items: center;
15
- flex-basis: 50%;
17
+ flex-wrap: wrap;
18
+ flex-basis: var(--a_input_number_range_group_flex_basis);
19
+ flex-grow: 1;
20
+
21
+ .a_form_element_label {
22
+ display: flex;
23
+ }
16
24
  }
17
25
  .a_input_number_range__label {
18
26
  margin-right: var(--a_input_number_range_label_padding_right);
@@ -1,4 +1,12 @@
1
+ .a_form_element__container {
2
+ display: flex;
3
+ flex-basis: 181px;
4
+ flex-grow: 1;
5
+ width: 100%;
6
+ }
7
+
1
8
  .a_form_element__parent {
9
+ width: 100%;
2
10
  --a_form_element_error_color: var(--a_color_danger);
3
11
  --a_form_element_label_float_top: 18px;
4
12
  }
@@ -446,6 +446,7 @@ export default {
446
446
  },
447
447
  render() {
448
448
  return this.isRender && h("div", {
449
+ class: "a_form_element__container",
449
450
  style: this.componentStyleHide,
450
451
  }, [
451
452
  h("div", {
@@ -264,6 +264,7 @@ export default {
264
264
  },
265
265
  render() {
266
266
  return this.isRender && h("div", {
267
+ class: "a_form_element__container",
267
268
  style: this.componentStyleHide,
268
269
  }, [
269
270
  h("div", {
@@ -99,6 +99,7 @@ export default {
99
99
 
100
100
  const {
101
101
  currentLabelFiltered,
102
+ dataHideWithSearch,
102
103
  styleWithSearch,
103
104
  } = UiVisibleElementWithSearchAPI(props, {
104
105
  labelLocal,
@@ -107,6 +108,7 @@ export default {
107
108
 
108
109
  return {
109
110
  currentLabelFiltered,
111
+ dataHideWithSearch,
110
112
  disabledElement,
111
113
  idLocal,
112
114
  isChecked,
@@ -123,6 +125,7 @@ export default {
123
125
  a_select__menu__link_selected: this.isChecked,
124
126
  a_select__menu__link_disabled: this.disabledElement,
125
127
  }],
128
+ "data-hide": this.dataHideWithSearch,
126
129
  disabled: this.disabledElement,
127
130
  role: "option",
128
131
  style: this.styleWithSearch,
@@ -21,7 +21,7 @@ import {
21
21
  forEach,
22
22
  } from "lodash-es";
23
23
 
24
- const ELEMENTS_FOR_ARROWS = ".a_select__element_clickable:not([disabled])";
24
+ const ELEMENTS_FOR_ARROWS = ".a_select__element_clickable:not([disabled]):not([data-hide])";
25
25
 
26
26
  export default function ToggleAPI(props, {
27
27
  emit,
@@ -59,7 +59,7 @@ export default function UiDataFromServerAPI(props, {
59
59
  });
60
60
 
61
61
  const loadDataFromServer = () => {
62
- if (!url.value || !searchApiLocal.value) {
62
+ if (!url.value || searchApiLocal.value) {
63
63
  dataFromServer.value = [];
64
64
  return;
65
65
  }
@@ -151,7 +151,7 @@ export default function UiDataFromServerAPI(props, {
151
151
  loadingSearchApi.value = true;
152
152
  getListHttp({
153
153
  url: url.value,
154
- params: {
154
+ urlParams: {
155
155
  ...(urlParams.value || {}),
156
156
  [searchApiKey.value]: search,
157
157
  },
@@ -36,8 +36,15 @@ export default function UiVisibleElementWithSearchAPI(props, {
36
36
  undefined;
37
37
  });
38
38
 
39
+ const dataHideWithSearch = computed(() => {
40
+ return isHiddenWithSearchLocal.value ?
41
+ true :
42
+ undefined;
43
+ });
44
+
39
45
  return {
40
46
  currentLabelFiltered,
47
+ dataHideWithSearch,
41
48
  styleWithSearch,
42
49
  };
43
50
  }