aloha-vue 2.78.0 → 2.79.1
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/CHANGELOG.md +8 -0
- package/dist/aloha-vue.es.js +6462 -9470
- package/dist/aloha-vue.umd.js +107 -126
- package/package.json +1 -1
- package/src/ACarousel/compositionAPI/IndicatorsAPI.js +1 -3
- package/src/AFilters/AFilters/AFilters.js +6 -0
- package/src/AFilters/AFiltersHorizontal/AFiltersHorizontal.js +42 -35
- package/src/AWizard/compositionAPI/ClassAPI.js +1 -1
- package/src/ui/AMultiselectOrdered/compositionAPI/AllAPI.js +1 -3
- package/src/ui/ARadio/compositionAPI/ReadonlyAPI.js +1 -1
- package/src/ui/utils/utils.js +1 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aloha-vue",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.79.1",
|
|
4
4
|
"description": "Aloha-vue is a JavaScript library that provides a wide range of accessible components and directives for Vue.js. Accessibility is of paramount importance to us, and we have designed all our components to meet accessibility compliance criteria. This library is a valuable tool for frontend developers and has already been used in three projects, including two large-scale ones",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility compliance criteria",
|
|
@@ -89,6 +89,11 @@ export default {
|
|
|
89
89
|
type: Object,
|
|
90
90
|
required: false,
|
|
91
91
|
},
|
|
92
|
+
showAddFilterButtonWhenEmpty: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
required: false,
|
|
95
|
+
default: true,
|
|
96
|
+
},
|
|
92
97
|
unappliedModel: {
|
|
93
98
|
type: Object,
|
|
94
99
|
required: false,
|
|
@@ -266,6 +271,7 @@ export default {
|
|
|
266
271
|
filtersKeyById: this.filtersKeyById,
|
|
267
272
|
filtersSaved: this.filtersSavedLocal,
|
|
268
273
|
filtersVisible: this.filtersVisible,
|
|
274
|
+
showAddFilterButtonWhenEmpty: this.showAddFilterButtonWhenEmpty,
|
|
269
275
|
onUpdateModelFilters: this.onUpdateModelFilters,
|
|
270
276
|
unappliedModel: this.unappliedModel,
|
|
271
277
|
updateDataKeyByIdFromFilter: this.updateDataKeyByIdFromFilter,
|
|
@@ -89,6 +89,11 @@ export default {
|
|
|
89
89
|
type: Object,
|
|
90
90
|
required: false,
|
|
91
91
|
},
|
|
92
|
+
showAddFilterButtonWhenEmpty: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
required: false,
|
|
95
|
+
default: true,
|
|
96
|
+
},
|
|
92
97
|
onUpdateModelFilters: {
|
|
93
98
|
type: Function,
|
|
94
99
|
required: true,
|
|
@@ -305,41 +310,43 @@ export default {
|
|
|
305
310
|
stop: true,
|
|
306
311
|
onClick: () => this.deleteFiltersVisible({ filter: item }),
|
|
307
312
|
}),
|
|
308
|
-
formDataAppend: () =>
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
313
|
+
formDataAppend: () => this.filtersHidden.length || this.showAddFilterButtonWhenEmpty ?
|
|
314
|
+
h("div", {
|
|
315
|
+
class: "a_filter_horizontal__add_filter__wrapper",
|
|
316
|
+
}, [
|
|
317
|
+
h(ASelect, {
|
|
318
|
+
buttonClassDefault: "a_btn a_btn_primary a_filter_horizontal__add_filter",
|
|
319
|
+
change: this.addFiltersVisible,
|
|
320
|
+
data: this.filtersHidden,
|
|
321
|
+
hasCaret: false,
|
|
322
|
+
disabled: !this.filtersHidden.length,
|
|
323
|
+
isLabelFloat: false,
|
|
324
|
+
keyGroup: "group",
|
|
325
|
+
keyId: "id",
|
|
326
|
+
keyLabel: "label",
|
|
327
|
+
label: "_A_FILTERS_ADD_FILTER_",
|
|
328
|
+
labelClass: "a_sr_only",
|
|
329
|
+
menuWidthType: "by_content",
|
|
330
|
+
sortOrderGroup: "asc",
|
|
331
|
+
placement: "bottom-start",
|
|
332
|
+
search: true,
|
|
333
|
+
translateData: true,
|
|
334
|
+
type: "select",
|
|
335
|
+
}, {
|
|
336
|
+
fixedPlaceholder: () => [
|
|
337
|
+
h(ATranslation, {
|
|
338
|
+
tag: "span",
|
|
339
|
+
ariaHidden: true,
|
|
340
|
+
class: "a_position_absolute_all",
|
|
341
|
+
title: "_A_FILTERS_ADD_FILTER_",
|
|
342
|
+
}),
|
|
343
|
+
h(AIcon, {
|
|
344
|
+
icon: PlusLg,
|
|
345
|
+
}),
|
|
346
|
+
],
|
|
347
|
+
}),
|
|
348
|
+
]) :
|
|
349
|
+
"",
|
|
343
350
|
formAppend: () => this.canSave ?
|
|
344
351
|
h("div", {
|
|
345
352
|
class: "a_filter_horizontal__save_actions",
|