aloha-vue 1.2.177 → 1.2.179

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.177",
17
+ "version": "1.2.179",
18
18
  "author": {
19
19
  "name": "Ilia Brykin",
20
20
  "email": "brykin.ilia@gmail.com"
@@ -1,386 +1,386 @@
1
- import {
2
- h,
3
- onBeforeUnmount,
4
- } from "vue";
5
-
6
- import ADropdown from "../../ADropdown/ADropdown";
7
- import AElement from "../../AElement/AElement";
8
- import AFiltersSaveModal from "../AFiltersSaveModal/AFiltersSaveModal";
9
- import AForm from "../../ui/AForm/AForm";
10
- import AIcon from "../../AIcon/AIcon";
11
- import ASelect from "../../ui/ASelect/ASelect";
12
- import ATranslation from "../../ATranslation/ATranslation";
13
-
14
- import DropdownAPI from "./compositionAPI/DropdownAPI";
15
- import EventBusAPI from "./compositionAPI/EventBusAPI";
16
- import FiltersHiddenAPI from "./compositionAPI/FiltersHiddenAPI";
17
- import FiltersSaveAPI from "./compositionAPI/FiltersSaveAPI";
18
- import FiltersSavedDeleteAPI from "./compositionAPI/FiltersSavedDeleteAPI";
19
- import FormAPI from "./compositionAPI/FormAPI";
20
- import IdAPI from "./compositionAPI/IdAPI";
21
- import SearchAPI from "./compositionAPI/SearchAPI";
22
-
23
-
24
- export default {
25
- name: "AFiltersHorizontal",
26
- props: {
27
- canSave: {
28
- type: Boolean,
29
- required: false,
30
- },
31
- disabled: {
32
- type: Boolean,
33
- required: false,
34
- },
35
- excludeRenderAttributes: {
36
- type: Array,
37
- required: false,
38
- default: () => [],
39
- },
40
- filtersGroup: {
41
- type: Object,
42
- required: true,
43
- default: () => ({
44
- alwaysVisible: [],
45
- filters: [],
46
- }),
47
- },
48
- filtersKeyById: {
49
- type: Object,
50
- required: true,
51
- },
52
- filtersSaved: {
53
- type: Array,
54
- required: true,
55
- },
56
- filtersVisible: {
57
- type: Array,
58
- required: true,
59
- },
60
- id: {
61
- type: String,
62
- required: true,
63
- },
64
- mainModel: {
65
- type: Object,
66
- required: false,
67
- },
68
- onUpdateModelFilters: {
69
- type: Function,
70
- required: true,
71
- },
72
- unappliedModel: {
73
- type: Object,
74
- required: true,
75
- },
76
- updateDataKeyByIdFromFilter: {
77
- type: Function,
78
- required: true,
79
- },
80
- updateFiltersSaved: {
81
- type: Function,
82
- required: true,
83
- },
84
- },
85
- emits: [
86
- "startSearch",
87
- "toggleFiltersVisible",
88
- ],
89
- setup(props, context) {
90
- const {
91
- dataForForm,
92
- } = FormAPI(props);
93
-
94
- const {
95
- closeDropdown,
96
- dropdownRef,
97
- isDropdownVisible,
98
- openDropdown,
99
- } = DropdownAPI(props);
100
-
101
- const {
102
- idFilterTop,
103
- } = IdAPI(props);
104
-
105
- const {
106
- onSearch,
107
- } = SearchAPI(props, context, {
108
- closeDropdown,
109
- });
110
-
111
- const {
112
- destroyEventBus,
113
- initEventBus,
114
- } = EventBusAPI(props, {
115
- openDropdown,
116
- });
117
-
118
- const {
119
- addFiltersVisible,
120
- deleteFiltersVisible,
121
- filtersHidden,
122
- hasFiltersHiddenDefault,
123
- } = FiltersHiddenAPI(props, context);
124
-
125
- const {
126
- buttonSaveComponentId,
127
- changeModelFiltersSaved,
128
- closeModalSave,
129
- filtersSavedLocal,
130
- initModelFiltersSaved,
131
- isModalSaveVisible,
132
- isModelFilterSavedNew,
133
- modelFiltersSaved,
134
- openModalSave,
135
- selectorCloseIds,
136
- } = FiltersSaveAPI(props, {
137
- openDropdown,
138
- });
139
-
140
- const {
141
- buttonDeleteId,
142
- isConfirmHidden,
143
- openDeleteConfirm,
144
- textScreenreaderButtonDeleteFiltersSaved,
145
- titleButtonDeleteFiltersSaved,
146
- } = FiltersSavedDeleteAPI(props, {
147
- changeModelFiltersSaved,
148
- idFilterTop,
149
- isModelFilterSavedNew,
150
- modelFiltersSaved,
151
- });
152
-
153
- initModelFiltersSaved();
154
- initEventBus();
155
-
156
- onBeforeUnmount(() => {
157
- destroyEventBus();
158
- });
159
-
160
- return {
161
- addFiltersVisible,
162
- buttonDeleteId,
163
- buttonSaveComponentId,
164
- changeModelFiltersSaved,
165
- closeDropdown,
166
- closeModalSave,
167
- dataForForm,
168
- deleteFiltersVisible,
169
- dropdownRef,
170
- filtersHidden,
171
- filtersSavedLocal,
172
- hasFiltersHiddenDefault,
173
- idFilterTop,
174
- initModelFiltersSaved,
175
- isConfirmHidden,
176
- isDropdownVisible,
177
- isModalSaveVisible,
178
- isModelFilterSavedNew,
179
- modelFiltersSaved,
180
- onSearch,
181
- openDeleteConfirm,
182
- openModalSave,
183
- selectorCloseIds,
184
- textScreenreaderButtonDeleteFiltersSaved,
185
- titleButtonDeleteFiltersSaved,
186
- };
187
- },
188
- render() {
189
- if (!this.isDropdownVisible) {
190
- return null;
191
- }
192
-
193
- return [
194
- h(ADropdown, {
195
- ref: "dropdownRef",
196
- buttonIconLeft: "Filter",
197
- buttonText: "Filter",
198
- buttonClass: "a_btn a_btn_primary a_btn_small a_filter_horizontal__btn_dropdown",
199
- dropdownTag: "div",
200
- dropdownClass: "a_filter_horizontal__wrapper",
201
- dropdownRenderDefault: true,
202
- isCloseByClickInside: false,
203
- hasCaret: false,
204
- inBody: true,
205
- lockArrowsNavigation: false,
206
- lockTabNavigation: false,
207
- useEscape: !this.isModalSaveVisible && this.isConfirmHidden,
208
- }, {
209
- ...this.$slots,
210
- dropdown: () => {
211
- return h("div", {
212
- class: "a_filter_horizontal",
213
- }, [
214
- h("div", {
215
- class: "a_filter_horizontal__header__wrapper",
216
- }, [
217
- h("div", {
218
- class: "a_filter_horizontal__header",
219
- }, [
220
- h("div", {
221
- class: "a_filter_horizontal__header__texts",
222
- }, [
223
- h(ATranslation, {
224
- class: "a_filter_horizontal__header__texts__filter",
225
- tag: "span",
226
- text: "_A_FILTERS_HOR_FILTER_HEADER_"
227
- }),
228
- this.isModelFilterSavedNew ?
229
- h(ATranslation, {
230
- class: "a_filter_horizontal__header__texts__new",
231
- tag: "em",
232
- text: this.modelFiltersSaved,
233
- }) :
234
- h("span", {}, this.modelFiltersSaved),
235
- ]),
236
- this.canSave ?
237
- h(ASelect, {
238
- modelValue: this.modelFiltersSaved,
239
- change: this.changeModelFiltersSaved,
240
- class: "a_filters_top__save_select",
241
- data: this.filtersSavedLocal,
242
- deselectable: false,
243
- keyId: "label",
244
- keyLabel: "label",
245
- keyGroup: "group",
246
- label: "_A_FILTERS_SAVE_SELECT_",
247
- menuWidthType: "by_content",
248
- search: true,
249
- translateData: true,
250
- type: "select",
251
- }) :
252
- "",
253
- ]),
254
- ]),
255
- h("div", {
256
- class: "a_filter_horizontal__body__wrapper",
257
- }, [
258
- h("div", {
259
- class: "a_filter_horizontal__body",
260
- }, [
261
- h(AForm, {
262
- idPrefix: this.idFilterTop,
263
- class: "a_filter_horizontal__body__form",
264
- classColumnDefault: "",
265
- classColumns: "",
266
- data: this.dataForForm,
267
- excludeRenderAttributes: this.excludeRenderAttributes,
268
- modelValue: this.unappliedModel,
269
- showErrors: false,
270
- onChange: this.onUpdateModelFilters,
271
- }, {
272
- ...this.$slots,
273
- groupAppend: ({ item }) => h(AElement, {
274
- type: "button",
275
- class: "a_btn a_btn_primary a_ml_2",
276
- title: "_A_FILTERS_TOP_CLOSE_",
277
- textScreenReader: "_A_FILTERS_TOP_CLOSE_",
278
- iconLeft: "Close",
279
- stop: true,
280
- onClick: () => this.deleteFiltersVisible({ filter: item }),
281
- }),
282
- formDataAppend: () => h("div", {
283
- class: "a_filter_horizontal__add_filter__wrapper",
284
- }, [
285
- h(ASelect, {
286
- buttonClassDefault: "a_btn a_btn_primary a_filter_horizontal__add_filter",
287
- change: this.addFiltersVisible,
288
- data: this.filtersHidden,
289
- hasCaret: false,
290
- disabled: !this.filtersHidden.length,
291
- isLabelFloat: false,
292
- keyGroup: "group",
293
- keyId: "id",
294
- keyLabel: "label",
295
- label: "_A_FILTERS_ADD_FILTER_",
296
- labelClass: "a_sr_only",
297
- menuWidthType: "by_content",
298
- sortOrderGroup: "asc",
299
- placement: "bottom-start",
300
- search: true,
301
- translateData: true,
302
- type: "select",
303
- }, {
304
- fixedPlaceholder: () => [
305
- h(ATranslation, {
306
- tag: "span",
307
- ariaHidden: true,
308
- class: "a_position_absolute_all",
309
- title: "_A_FILTERS_ADD_FILTER_",
310
- }),
311
- h(AIcon, {
312
- icon: "Plus",
313
- }),
314
- ],
315
- }),
316
- ]),
317
- formAppend: () => this.canSave ?
318
- h("div", {
319
- class: "a_filter_horizontal__save_actions",
320
- }, [
321
- h(AElement, {
322
- id: this.buttonSaveComponentId,
323
- class: "a_btn a_btn_primary",
324
- iconLeft: "FloppyDisk",
325
- type: "button",
326
- text: "_A_FILTERS_SAVE_FILTER_SAVED_BTN_TEXT_",
327
- onClick: this.openModalSave,
328
- }),
329
- h(AElement, {
330
- id: this.buttonDeleteId,
331
- ariaDisabled: this.isModelFilterSavedNew,
332
- class: "a_btn a_btn_secondary",
333
- iconLeft: "Trash",
334
- text: {
335
- desktop: "_A_FILTERS_DELETE_FILTER_SAVED_BTN_TEXT_",
336
- },
337
- textAriaHidden: true,
338
- textScreenReader: this.textScreenreaderButtonDeleteFiltersSaved,
339
- title: this.titleButtonDeleteFiltersSaved,
340
- type: "button",
341
- onClick: this.openDeleteConfirm,
342
- }),
343
- ]) :
344
- "",
345
- }),
346
- ]),
347
- h("div", {
348
- class: "a_filter_horizontal__footer",
349
- }, [
350
- h("div", {
351
- class: "a_filter_horizontal__footer__actions",
352
- }, [
353
- h(AElement, {
354
- type: "button",
355
- class: "a_btn a_btn_primary a_text_nowrap a_filter_horizontal__footer__actions__btn_search",
356
- iconLeft: "Search",
357
- text: "_A_FILTERS_START_SEARCH_",
358
- disabled: this.disabled,
359
- onClick: this.onSearch,
360
- }),
361
- h(AElement, {
362
- type: "button",
363
- class: "a_btn a_btn_secondary a_text_nowrap a_filter_horizontal__footer__actions__btn_close",
364
- text: "_A_FILTERS_HOR_CLOSE_DROPDOWN_",
365
- onClick: this.closeDropdown,
366
- }),
367
- ]),
368
- ]),
369
- ]),
370
- ]);
371
- },
372
- }),
373
- this.isModalSaveVisible ?
374
- h(AFiltersSaveModal, {
375
- changeModelFiltersSaved: this.changeModelFiltersSaved,
376
- filtersSaved: this.filtersSaved,
377
- isModelFilterSavedNew: this.isModelFilterSavedNew,
378
- modelFiltersSaved: this.modelFiltersSaved,
379
- selectorCloseIds: this.selectorCloseIds,
380
- updateFiltersSaved: this.updateFiltersSaved,
381
- onClose: this.closeModalSave,
382
- }) :
383
- ""
384
- ];
385
- },
386
- };
1
+ import {
2
+ h,
3
+ onBeforeUnmount,
4
+ } from "vue";
5
+
6
+ import ADropdown from "../../ADropdown/ADropdown";
7
+ import AElement from "../../AElement/AElement";
8
+ import AFiltersSaveModal from "../AFiltersSaveModal/AFiltersSaveModal";
9
+ import AForm from "../../ui/AForm/AForm";
10
+ import AIcon from "../../AIcon/AIcon";
11
+ import ASelect from "../../ui/ASelect/ASelect";
12
+ import ATranslation from "../../ATranslation/ATranslation";
13
+
14
+ import DropdownAPI from "./compositionAPI/DropdownAPI";
15
+ import EventBusAPI from "./compositionAPI/EventBusAPI";
16
+ import FiltersHiddenAPI from "./compositionAPI/FiltersHiddenAPI";
17
+ import FiltersSaveAPI from "./compositionAPI/FiltersSaveAPI";
18
+ import FiltersSavedDeleteAPI from "./compositionAPI/FiltersSavedDeleteAPI";
19
+ import FormAPI from "./compositionAPI/FormAPI";
20
+ import IdAPI from "./compositionAPI/IdAPI";
21
+ import SearchAPI from "./compositionAPI/SearchAPI";
22
+
23
+
24
+ export default {
25
+ name: "AFiltersHorizontal",
26
+ props: {
27
+ canSave: {
28
+ type: Boolean,
29
+ required: false,
30
+ },
31
+ disabled: {
32
+ type: Boolean,
33
+ required: false,
34
+ },
35
+ excludeRenderAttributes: {
36
+ type: Array,
37
+ required: false,
38
+ default: () => [],
39
+ },
40
+ filtersGroup: {
41
+ type: Object,
42
+ required: true,
43
+ default: () => ({
44
+ alwaysVisible: [],
45
+ filters: [],
46
+ }),
47
+ },
48
+ filtersKeyById: {
49
+ type: Object,
50
+ required: true,
51
+ },
52
+ filtersSaved: {
53
+ type: Array,
54
+ required: true,
55
+ },
56
+ filtersVisible: {
57
+ type: Array,
58
+ required: true,
59
+ },
60
+ id: {
61
+ type: String,
62
+ required: true,
63
+ },
64
+ mainModel: {
65
+ type: Object,
66
+ required: false,
67
+ },
68
+ onUpdateModelFilters: {
69
+ type: Function,
70
+ required: true,
71
+ },
72
+ unappliedModel: {
73
+ type: Object,
74
+ required: true,
75
+ },
76
+ updateDataKeyByIdFromFilter: {
77
+ type: Function,
78
+ required: true,
79
+ },
80
+ updateFiltersSaved: {
81
+ type: Function,
82
+ required: true,
83
+ },
84
+ },
85
+ emits: [
86
+ "startSearch",
87
+ "toggleFiltersVisible",
88
+ ],
89
+ setup(props, context) {
90
+ const {
91
+ dataForForm,
92
+ } = FormAPI(props);
93
+
94
+ const {
95
+ closeDropdown,
96
+ dropdownRef,
97
+ isDropdownVisible,
98
+ openDropdown,
99
+ } = DropdownAPI(props);
100
+
101
+ const {
102
+ idFilterTop,
103
+ } = IdAPI(props);
104
+
105
+ const {
106
+ onSearch,
107
+ } = SearchAPI(props, context, {
108
+ closeDropdown,
109
+ });
110
+
111
+ const {
112
+ destroyEventBus,
113
+ initEventBus,
114
+ } = EventBusAPI(props, {
115
+ openDropdown,
116
+ });
117
+
118
+ const {
119
+ addFiltersVisible,
120
+ deleteFiltersVisible,
121
+ filtersHidden,
122
+ hasFiltersHiddenDefault,
123
+ } = FiltersHiddenAPI(props, context);
124
+
125
+ const {
126
+ buttonSaveComponentId,
127
+ changeModelFiltersSaved,
128
+ closeModalSave,
129
+ filtersSavedLocal,
130
+ initModelFiltersSaved,
131
+ isModalSaveVisible,
132
+ isModelFilterSavedNew,
133
+ modelFiltersSaved,
134
+ openModalSave,
135
+ selectorCloseIds,
136
+ } = FiltersSaveAPI(props, {
137
+ openDropdown,
138
+ });
139
+
140
+ const {
141
+ buttonDeleteId,
142
+ isConfirmHidden,
143
+ openDeleteConfirm,
144
+ textScreenreaderButtonDeleteFiltersSaved,
145
+ titleButtonDeleteFiltersSaved,
146
+ } = FiltersSavedDeleteAPI(props, {
147
+ changeModelFiltersSaved,
148
+ idFilterTop,
149
+ isModelFilterSavedNew,
150
+ modelFiltersSaved,
151
+ });
152
+
153
+ initModelFiltersSaved();
154
+ initEventBus();
155
+
156
+ onBeforeUnmount(() => {
157
+ destroyEventBus();
158
+ });
159
+
160
+ return {
161
+ addFiltersVisible,
162
+ buttonDeleteId,
163
+ buttonSaveComponentId,
164
+ changeModelFiltersSaved,
165
+ closeDropdown,
166
+ closeModalSave,
167
+ dataForForm,
168
+ deleteFiltersVisible,
169
+ dropdownRef,
170
+ filtersHidden,
171
+ filtersSavedLocal,
172
+ hasFiltersHiddenDefault,
173
+ idFilterTop,
174
+ initModelFiltersSaved,
175
+ isConfirmHidden,
176
+ isDropdownVisible,
177
+ isModalSaveVisible,
178
+ isModelFilterSavedNew,
179
+ modelFiltersSaved,
180
+ onSearch,
181
+ openDeleteConfirm,
182
+ openModalSave,
183
+ selectorCloseIds,
184
+ textScreenreaderButtonDeleteFiltersSaved,
185
+ titleButtonDeleteFiltersSaved,
186
+ };
187
+ },
188
+ render() {
189
+ if (!this.isDropdownVisible) {
190
+ return null;
191
+ }
192
+
193
+ return [
194
+ h(ADropdown, {
195
+ ref: "dropdownRef",
196
+ buttonIconLeft: "Filter",
197
+ buttonText: "Filter",
198
+ buttonClass: "a_btn a_btn_primary a_btn_small a_filter_horizontal__btn_dropdown",
199
+ dropdownTag: "div",
200
+ dropdownClass: "a_filter_horizontal__wrapper",
201
+ dropdownRenderDefault: true,
202
+ isCloseByClickInside: false,
203
+ hasCaret: false,
204
+ inBody: true,
205
+ lockArrowsNavigation: false,
206
+ lockTabNavigation: false,
207
+ useEscape: !this.isModalSaveVisible && this.isConfirmHidden,
208
+ }, {
209
+ ...this.$slots,
210
+ dropdown: () => {
211
+ return h("div", {
212
+ class: "a_filter_horizontal",
213
+ }, [
214
+ h("div", {
215
+ class: "a_filter_horizontal__header__wrapper",
216
+ }, [
217
+ h("div", {
218
+ class: "a_filter_horizontal__header",
219
+ }, [
220
+ h("div", {
221
+ class: "a_filter_horizontal__header__texts",
222
+ }, [
223
+ h(ATranslation, {
224
+ class: "a_filter_horizontal__header__texts__filter",
225
+ tag: "span",
226
+ text: "_A_FILTERS_HOR_FILTER_HEADER_"
227
+ }),
228
+ this.isModelFilterSavedNew ?
229
+ h(ATranslation, {
230
+ class: "a_filter_horizontal__header__texts__new",
231
+ tag: "em",
232
+ text: this.modelFiltersSaved,
233
+ }) :
234
+ h("span", {}, this.modelFiltersSaved),
235
+ ]),
236
+ this.canSave ?
237
+ h(ASelect, {
238
+ modelValue: this.modelFiltersSaved,
239
+ change: this.changeModelFiltersSaved,
240
+ class: "a_filters_top__save_select",
241
+ data: this.filtersSavedLocal,
242
+ deselectable: false,
243
+ keyId: "label",
244
+ keyLabel: "label",
245
+ keyGroup: "group",
246
+ label: "_A_FILTERS_SAVE_SELECT_",
247
+ menuWidthType: "by_content",
248
+ search: true,
249
+ translateData: true,
250
+ type: "select",
251
+ }) :
252
+ "",
253
+ ]),
254
+ ]),
255
+ h("div", {
256
+ class: "a_filter_horizontal__body__wrapper",
257
+ }, [
258
+ h("div", {
259
+ class: "a_filter_horizontal__body",
260
+ }, [
261
+ h(AForm, {
262
+ idPrefix: this.idFilterTop,
263
+ class: "a_filter_horizontal__body__form",
264
+ classColumnDefault: "",
265
+ classColumns: "",
266
+ data: this.dataForForm,
267
+ excludeRenderAttributes: this.excludeRenderAttributes,
268
+ modelValue: this.unappliedModel,
269
+ showErrors: false,
270
+ onChange: this.onUpdateModelFilters,
271
+ }, {
272
+ ...this.$slots,
273
+ groupAppend: ({ item }) => h(AElement, {
274
+ type: "button",
275
+ class: "a_btn a_btn_primary a_ml_2",
276
+ title: "_A_FILTERS_TOP_CLOSE_",
277
+ textScreenReader: "_A_FILTERS_TOP_CLOSE_",
278
+ iconLeft: "Close",
279
+ stop: true,
280
+ onClick: () => this.deleteFiltersVisible({ filter: item }),
281
+ }),
282
+ formDataAppend: () => h("div", {
283
+ class: "a_filter_horizontal__add_filter__wrapper",
284
+ }, [
285
+ h(ASelect, {
286
+ buttonClassDefault: "a_btn a_btn_primary a_filter_horizontal__add_filter",
287
+ change: this.addFiltersVisible,
288
+ data: this.filtersHidden,
289
+ hasCaret: false,
290
+ disabled: !this.filtersHidden.length,
291
+ isLabelFloat: false,
292
+ keyGroup: "group",
293
+ keyId: "id",
294
+ keyLabel: "label",
295
+ label: "_A_FILTERS_ADD_FILTER_",
296
+ labelClass: "a_sr_only",
297
+ menuWidthType: "by_content",
298
+ sortOrderGroup: "asc",
299
+ placement: "bottom-start",
300
+ search: true,
301
+ translateData: true,
302
+ type: "select",
303
+ }, {
304
+ fixedPlaceholder: () => [
305
+ h(ATranslation, {
306
+ tag: "span",
307
+ ariaHidden: true,
308
+ class: "a_position_absolute_all",
309
+ title: "_A_FILTERS_ADD_FILTER_",
310
+ }),
311
+ h(AIcon, {
312
+ icon: "Plus",
313
+ }),
314
+ ],
315
+ }),
316
+ ]),
317
+ formAppend: () => this.canSave ?
318
+ h("div", {
319
+ class: "a_filter_horizontal__save_actions",
320
+ }, [
321
+ h(AElement, {
322
+ id: this.buttonSaveComponentId,
323
+ class: "a_btn a_btn_primary",
324
+ iconLeft: "FloppyDisk",
325
+ type: "button",
326
+ text: "_A_FILTERS_SAVE_FILTER_SAVED_BTN_TEXT_",
327
+ onClick: this.openModalSave,
328
+ }),
329
+ h(AElement, {
330
+ id: this.buttonDeleteId,
331
+ ariaDisabled: this.isModelFilterSavedNew,
332
+ class: "a_btn a_btn_secondary",
333
+ iconLeft: "Trash",
334
+ text: {
335
+ desktop: "_A_FILTERS_DELETE_FILTER_SAVED_BTN_TEXT_",
336
+ },
337
+ textAriaHidden: true,
338
+ textScreenReader: this.textScreenreaderButtonDeleteFiltersSaved,
339
+ title: this.titleButtonDeleteFiltersSaved,
340
+ type: "button",
341
+ onClick: this.openDeleteConfirm,
342
+ }),
343
+ ]) :
344
+ "",
345
+ }),
346
+ ]),
347
+ h("div", {
348
+ class: "a_filter_horizontal__footer",
349
+ }, [
350
+ h("div", {
351
+ class: "a_filter_horizontal__footer__actions",
352
+ }, [
353
+ h(AElement, {
354
+ type: "button",
355
+ class: "a_btn a_btn_primary a_text_nowrap a_filter_horizontal__footer__actions__btn_search",
356
+ iconLeft: "Search",
357
+ text: "_A_FILTERS_START_SEARCH_",
358
+ disabled: this.disabled,
359
+ onClick: this.onSearch,
360
+ }),
361
+ h(AElement, {
362
+ type: "button",
363
+ class: "a_btn a_btn_secondary a_text_nowrap a_filter_horizontal__footer__actions__btn_close",
364
+ text: "_A_FILTERS_HOR_CLOSE_DROPDOWN_",
365
+ onClick: this.closeDropdown,
366
+ }),
367
+ ]),
368
+ ]),
369
+ ]),
370
+ ]);
371
+ },
372
+ }),
373
+ this.isModalSaveVisible ?
374
+ h(AFiltersSaveModal, {
375
+ changeModelFiltersSaved: this.changeModelFiltersSaved,
376
+ filtersSaved: this.filtersSaved,
377
+ isModelFilterSavedNew: this.isModelFilterSavedNew,
378
+ modelFiltersSaved: this.modelFiltersSaved,
379
+ selectorCloseIds: this.selectorCloseIds,
380
+ updateFiltersSaved: this.updateFiltersSaved,
381
+ onClose: this.closeModalSave,
382
+ }) :
383
+ ""
384
+ ];
385
+ },
386
+ };
@@ -61,15 +61,15 @@ export default {
61
61
  ...this.buttonToggleProps,
62
62
  }, () => [
63
63
  h("span", {
64
- areaHidden: true,
64
+ ariaHidden: true,
65
65
  class: "a_menu_2__btn_toggle__bar a_menu_2__btn_toggle__bar_1 aloha_element__ml_0",
66
66
  }),
67
67
  h("span", {
68
- areaHidden: true,
68
+ ariaHidden: true,
69
69
  class: "a_menu_2__btn_toggle__bar a_menu_2__btn_toggle__bar_2 aloha_element__ml_0",
70
70
  }),
71
71
  h("span", {
72
- areaHidden: true,
72
+ ariaHidden: true,
73
73
  class: "a_menu_2__btn_toggle__bar a_menu_2__btn_toggle__bar_3 aloha_element__ml_0",
74
74
  }),
75
75
  ]);
@@ -152,7 +152,6 @@ export default {
152
152
  this.isRowActionsDropdownVisible || this.$slots.rowActions ?
153
153
  h("div", {
154
154
  class: "a_table__cell_action__group",
155
- style: this.columnActionsBtnGroupMaxWidthStyle,
156
155
  }, [
157
156
  this.$slots.rowActions ?
158
157
  this.$slots.rowActions({
@@ -180,6 +179,8 @@ export default {
180
179
  placement: "bottom-end",
181
180
  }, this.$slots) :
182
181
  h(AGroupButtonDropdown, {
182
+ class: "a_d_inline_block",
183
+ style: this.columnActionsBtnGroupMaxWidthStyle,
183
184
  actions: this.rowActionsFiltered,
184
185
  dropdownAttributes: {
185
186
  id: this.buttonActionsId,
@@ -69,7 +69,7 @@ export default function ColumnActionAPI(props, {
69
69
 
70
70
  const columnActionsWidthMinLocal = computed(() => {
71
71
  if (!isUndefined(columnActionsWidthMin.value)) {
72
- return columnActionsWidth.value;
72
+ return columnActionsWidthMin.value;
73
73
  }
74
74
 
75
75
  if (!isColumnActionWide.value) {
@@ -72,7 +72,7 @@ export default {
72
72
  class: ["a_tabs__content", {
73
73
  a_tabs__content_show: this.isActive,
74
74
  }],
75
- ariaLabelledby: this.idLocal,
75
+ "aria-labelledby": this.idLocal,
76
76
  }, [
77
77
  content,
78
78
  ]);
@@ -645,7 +645,7 @@ export default {
645
645
  return h("div", {
646
646
  class: ["pux_datepicker__calendar", `pux_datepicker__calendar_${ this.panel.toLowerCase() }`],
647
647
  role: "region",
648
- ariaLabelledby: this.idForHeaderParent,
648
+ "aria-labelledby": this.idForHeaderParent,
649
649
  onClick: $event => $event.stopPropagation(),
650
650
  }, [
651
651
  h("div", {
@@ -300,7 +300,7 @@ export default {
300
300
  class: "pux_datepicker__panel pux_datepicker__panel_date",
301
301
  role: "grid",
302
302
  ariaReadonly: true,
303
- ariaLabelledby: this.idForHeader,
303
+ "aria-labelledby": this.idForHeader,
304
304
  ...this.attributesForMainElement,
305
305
  }, [
306
306
  h("thead", null, [
@@ -163,7 +163,7 @@ export default {
163
163
  return h("ul", {
164
164
  class: "pux_datepicker__panel pux_datepicker__panel_month pux_datepicker__panel__list",
165
165
  role: "listbox",
166
- ariaLabelledby: this.idForHeader,
166
+ "aria-labelledby": this.idForHeader,
167
167
  ...this.attributesForMainElement,
168
168
  }, [
169
169
  this.months.map((month, monthIndex) => {
@@ -276,7 +276,7 @@ export default {
276
276
  key: timeListIndex,
277
277
  class: "pux_datepicker__time_list",
278
278
  role: "listbox",
279
- ariaLabelledby: this.idForHeader,
279
+ "aria-labelledby": this.idForHeader,
280
280
  style: { width: `${ 100 / this.timesFiltered.length }%` },
281
281
  }, [
282
282
  timeList.map((time, timeIndex) => {
@@ -642,7 +642,7 @@ export default {
642
642
  return h("div", {
643
643
  class: ["pux_datepicker__calendar", `pux_datepicker__calendar_${ this.panel.toLowerCase() }`],
644
644
  role: "region",
645
- ariaLabelledby: this.idForHeaderParent,
645
+ "aria-labelledby": this.idForHeaderParent,
646
646
  }, [
647
647
  h("div", {
648
648
  id: this.idForHeaderParent,
@@ -299,7 +299,7 @@ export default {
299
299
  class: "pux_datepicker__panel pux_datepicker__panel_date",
300
300
  role: "grid",
301
301
  ariaReadonly: true,
302
- ariaLabelledby: this.idForHeader,
302
+ "aria-labelledby": this.idForHeader,
303
303
  ...this.attributesForMainElement,
304
304
  }, [
305
305
  h("thead", null, [
@@ -163,7 +163,7 @@ export default {
163
163
  return h("ul", {
164
164
  class: "pux_datepicker__panel pux_datepicker__panel_month pux_datepicker__panel__list",
165
165
  role: "listbox",
166
- ariaLabelledby: this.idForHeader,
166
+ "aria-labelledby": this.idForHeader,
167
167
  ...this.attributesForMainElement,
168
168
  }, [
169
169
  this.months.map((month, monthIndex) => {
@@ -276,7 +276,7 @@ export default {
276
276
  key: timeListIndex,
277
277
  class: "pux_datepicker__time_list",
278
278
  role: "listbox",
279
- ariaLabelledby: this.idForHeader,
279
+ "aria-labelledby": this.idForHeader,
280
280
  style: { width: `${ 100 / this.timesFiltered.length }%` },
281
281
  }, [
282
282
  timeList.map((time, timeIndex) => {
@@ -1,50 +1,50 @@
1
- import {
2
- computed,
3
- toRef,
4
- } from "vue";
5
-
6
- import EventBus from "../../../utils/EventBus";
7
- import {
8
- getLabelClickEventName,
9
- } from "../../utils/utils";
10
- import {
11
- isFunction,
12
- } from "lodash-es";
13
-
14
- export default function ClickAPI(props, {
15
- idLabelLocal = computed(() => ""),
16
- preventLocal = computed(() => false),
17
- stopLocal = computed(() => false),
18
- }) {
19
- const clickLabel = toRef(props, "clickLabel");
20
- const id = toRef(props, "id");
21
-
22
- const onClick = $event => {
23
- if (isFunction(clickLabel.value)) {
24
- clickLabel.value({
25
- id: id.value,
26
- idLabel: idLabelLocal.value,
27
- $event,
28
- });
29
- }
30
-
31
- if (preventLocal.value) {
32
- $event?.preventDefault();
33
- }
34
-
35
- if (stopLocal.value) {
36
- $event?.stopPropagation();
37
- }
38
- setTimeout(() => {
39
- EventBus.$emit(getLabelClickEventName(id.value), {
40
- id: id.value,
41
- idLabel: idLabelLocal.value,
42
- $event,
43
- });
44
- });
45
- };
46
-
47
- return {
48
- onClick,
49
- };
50
- }
1
+ import {
2
+ computed,
3
+ toRef,
4
+ } from "vue";
5
+
6
+ import EventBus from "../../../utils/EventBus";
7
+ import {
8
+ getLabelClickEventName,
9
+ } from "../../utils/utils";
10
+ import {
11
+ isFunction,
12
+ } from "lodash-es";
13
+
14
+ export default function ClickAPI(props, {
15
+ idLabelLocal = computed(() => ""),
16
+ preventLocal = computed(() => false),
17
+ stopLocal = computed(() => false),
18
+ }) {
19
+ const clickLabel = toRef(props, "clickLabel");
20
+ const id = toRef(props, "id");
21
+
22
+ const onClick = $event => {
23
+ if (isFunction(clickLabel.value)) {
24
+ clickLabel.value({
25
+ id: id.value,
26
+ idLabel: idLabelLocal.value,
27
+ $event,
28
+ });
29
+ }
30
+
31
+ if (preventLocal.value) {
32
+ $event?.preventDefault();
33
+ }
34
+
35
+ if (stopLocal.value) {
36
+ $event?.stopPropagation();
37
+ }
38
+ setTimeout(() => {
39
+ EventBus.$emit(getLabelClickEventName(id.value), {
40
+ id: id.value,
41
+ idLabel: idLabelLocal.value,
42
+ $event,
43
+ });
44
+ });
45
+ };
46
+
47
+ return {
48
+ onClick,
49
+ };
50
+ }
@@ -748,7 +748,7 @@ export default {
748
748
  a_select_menu_by_content: this.menuWidthType === "by_content",
749
749
  }],
750
750
  role: "listbox",
751
- ariaLabelledby: this.htmlIdLocal,
751
+ "aria-labelledby": this.htmlIdLocal,
752
752
  onClick: event => event.stopPropagation(),
753
753
  }, [
754
754
  this.searchOutsideOrApi && h("div", {