aloha-vue 1.0.249 → 1.0.251

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aloha-vue",
3
3
  "description": "Project aloha",
4
- "version": "1.0.249",
4
+ "version": "1.0.251",
5
5
  "author": "Ilia Brykin",
6
6
  "scripts": {
7
7
  "build-icons": "node scriptsNode/iconsSvgToJs.js bootstrap3 && node scriptsNode/iconsSvgToJs.js bootstrap-1-9-1"
@@ -78,59 +78,63 @@ export default {
78
78
  render() {
79
79
  return h("div", {
80
80
  role: "cell",
81
- class: [
82
- "a_table__td a_table__cell a_table__cell_action",
83
- this.rowActionsClass,
84
- ],
81
+ class: "a_table__td a_table__cell a_table__cell_action",
85
82
  // style: this.stylesTdAction,
86
83
  }, [
87
- this.isColumnsScrollInvisibleDropdownVisible && h(ADropdown, {
88
- buttonClass: "a_btn a_btn_link",
89
- dropdownClass: "a_p_0 a_overflow_x_hidden",
90
- dropdownTag: "div",
91
- isCaret: false,
92
- placement: "bottom-end",
93
- menuWidth: 600,
94
- }, {
95
- button: () => [
96
- h(AIcon, {
97
- icon: "Plus",
98
- class: "a_table__cell_action__additional_icon",
99
- }),
100
- h("span", {
101
- class: "a_table__cell_action__additional_text",
102
- }, this.columnsScrollInvisibleText)
84
+ h("div", {
85
+ class: [
86
+ "a_table__cell__child",
87
+ this.rowActionsClass,
103
88
  ],
104
- dropdown: () => [
105
- h("dl", {
106
- class: "a_list_dl a_list_dl_dt_right",
107
- }, [
108
- this.columnsScrollInvisible.map((column, columnIndex) => {
109
- return h(ATableListItem, {
110
- column,
111
- columnIndex,
112
- row: this.row,
113
- rowIndex: this.rowIndex,
114
- isFooter: this.isFooter,
115
- }, this.$slots);
116
- }),
117
- ]),
118
- ],
119
- }),
120
- this.isRowActionsDropdownVisible && h(AGroupButtonDropdown, {
121
- actions: this.rowActionsFiltered,
122
- useDropdownActionClass: true,
123
- indexFirstDropdownAction: 0,
124
- indexFirstDropdownActionMobile: 0,
125
- minDropdownActions: 0,
126
- dropdownAttributes: {
127
- id: this.buttonActionsId,
128
- buttonIconLeft: "OptionVertical",
129
- buttonClass: "a_btn a_btn_secondary a_table__cell_action__btn",
130
- placement: "bottom-end",
89
+ }, [
90
+ this.isColumnsScrollInvisibleDropdownVisible && h(ADropdown, {
91
+ buttonClass: "a_btn a_btn_link",
92
+ dropdownClass: "a_p_0 a_overflow_x_hidden",
93
+ dropdownTag: "div",
131
94
  isCaret: false,
132
- },
133
- }, this.$slots),
95
+ placement: "bottom-end",
96
+ menuWidth: 600,
97
+ }, {
98
+ button: () => [
99
+ h(AIcon, {
100
+ icon: "Plus",
101
+ class: "a_table__cell_action__additional_icon",
102
+ }),
103
+ h("span", {
104
+ class: "a_table__cell_action__additional_text",
105
+ }, this.columnsScrollInvisibleText)
106
+ ],
107
+ dropdown: () => [
108
+ h("dl", {
109
+ class: "a_list_dl a_list_dl_dt_right",
110
+ }, [
111
+ this.columnsScrollInvisible.map((column, columnIndex) => {
112
+ return h(ATableListItem, {
113
+ column,
114
+ columnIndex,
115
+ row: this.row,
116
+ rowIndex: this.rowIndex,
117
+ isFooter: this.isFooter,
118
+ }, this.$slots);
119
+ }),
120
+ ]),
121
+ ],
122
+ }),
123
+ this.isRowActionsDropdownVisible && h(AGroupButtonDropdown, {
124
+ actions: this.rowActionsFiltered,
125
+ useDropdownActionClass: true,
126
+ indexFirstDropdownAction: 0,
127
+ indexFirstDropdownActionMobile: 0,
128
+ minDropdownActions: 0,
129
+ dropdownAttributes: {
130
+ id: this.buttonActionsId,
131
+ buttonIconLeft: "OptionVertical",
132
+ buttonClass: "a_btn a_btn_secondary a_table__cell_action__btn",
133
+ placement: "bottom-end",
134
+ isCaret: false,
135
+ },
136
+ }, this.$slots),
137
+ ]),
134
138
  ]);
135
139
  },
136
140
  };
@@ -49,6 +49,7 @@ export default function AHttpAPI() {
49
49
 
50
50
  export function getHttp({
51
51
  url,
52
+ urlBase,
52
53
  data,
53
54
  urlParams = {},
54
55
  headerParams,
@@ -61,6 +62,7 @@ export function getHttp({
61
62
  return callHttpRequestAndCheckSavedApi({
62
63
  methodHttp: "get",
63
64
  url,
65
+ urlBase,
64
66
  urlParams,
65
67
  data,
66
68
  headerParams,
@@ -74,6 +76,7 @@ export function getHttp({
74
76
 
75
77
  export function getListHttp({
76
78
  url,
79
+ urlBase,
77
80
  data,
78
81
  urlParams = {},
79
82
  headerParams,
@@ -86,6 +89,7 @@ export function getListHttp({
86
89
  return callHttpRequestAndCheckSavedApi({
87
90
  methodHttp: "get",
88
91
  url,
92
+ urlBase,
89
93
  urlParams,
90
94
  data,
91
95
  headerParams,
@@ -100,6 +104,7 @@ export function getListHttp({
100
104
 
101
105
  export function getOptionsHttp({
102
106
  url,
107
+ urlBase,
103
108
  data,
104
109
  urlParams = {},
105
110
  headerParams,
@@ -111,6 +116,7 @@ export function getOptionsHttp({
111
116
  return callHttpRequestAndCheckSavedApi({
112
117
  methodHttp: "options",
113
118
  url,
119
+ urlBase,
114
120
  urlParams,
115
121
  data,
116
122
  headerParams,
@@ -144,6 +150,7 @@ export function postHttp({
144
150
 
145
151
  export function putHttp({
146
152
  url,
153
+ urlBase,
147
154
  data,
148
155
  urlParams = {},
149
156
  headerParams,
@@ -154,6 +161,7 @@ export function putHttp({
154
161
  return callHttpRequestAndCheckSavedApi({
155
162
  methodHttp: "put",
156
163
  url,
164
+ urlBase,
157
165
  urlParams,
158
166
  data,
159
167
  headerParams,
@@ -165,6 +173,7 @@ export function putHttp({
165
173
 
166
174
  export function patchHttp({
167
175
  url,
176
+ urlBase,
168
177
  data,
169
178
  urlParams = {},
170
179
  headerParams,
@@ -175,6 +184,7 @@ export function patchHttp({
175
184
  return callHttpRequestAndCheckSavedApi({
176
185
  methodHttp: "patch",
177
186
  url,
187
+ urlBase,
178
188
  urlParams,
179
189
  data,
180
190
  headerParams,
@@ -186,6 +196,7 @@ export function patchHttp({
186
196
 
187
197
  export function deleteHttp({
188
198
  url,
199
+ urlBase,
189
200
  data,
190
201
  urlParams = {},
191
202
  headerParams,
@@ -196,6 +207,7 @@ export function deleteHttp({
196
207
  return callHttpRequestAndCheckSavedApi({
197
208
  methodHttp: "delete",
198
209
  url,
210
+ urlBase,
199
211
  urlParams,
200
212
  data,
201
213
  headerParams,
@@ -208,6 +220,7 @@ export function deleteHttp({
208
220
  export function callHttpRequestAndCheckSavedApi({
209
221
  methodHttp,
210
222
  url,
223
+ urlBase,
211
224
  urlParams,
212
225
  data,
213
226
  headerParams = {},
@@ -216,7 +229,7 @@ export function callHttpRequestAndCheckSavedApi({
216
229
  keyId,
217
230
  fullResponse,
218
231
  showError = false,
219
- expectedList
232
+ expectedList,
220
233
  }) {
221
234
  let apiSavedData = undefined;
222
235
  if (apiSaveId) {
@@ -243,7 +256,7 @@ export function callHttpRequestAndCheckSavedApi({
243
256
  }
244
257
  }
245
258
  const URL_NEW = setUrlWithParams({ url, params: urlParams });
246
- let url_full = `${ BASE_URL.value }${ URL_NEW }`;
259
+ let url_full = `${ isNil(urlBase) ? BASE_URL.value : urlBase }${ URL_NEW }`;
247
260
  url_full = url_full.replace(/\/\//g, "/");
248
261
  const HEADER_PARAMS_LOCAL = {
249
262
  ...HEADER_PARAMS.value,
@@ -236,6 +236,10 @@
236
236
  justify-content: flex-end;
237
237
  flex-grow: 1;
238
238
  min-width: 50px;
239
+ > .a_table__cell__child {
240
+ display: flex;
241
+ justify-content: flex-end;
242
+ }
239
243
  }
240
244
  .a_table__th__dropdown_item {
241
245
  display: flex;