aloha-vue 1.2.7 → 1.2.9
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/docs/src/main.js +19 -3
- package/package.json +1 -1
- package/src/AFilters/AFiltersHorizontal/AFiltersHorizontal.js +4 -4
- package/src/AFilters/AFiltersHorizontal/compositionAPI/FilterMainAPI.js +5 -0
- package/src/AFilters/AFiltersHorizontal/compositionAPI/FiltersHiddenAPI.js +5 -0
- package/src/AFilters/AFiltersHorizontal/compositionAPI/FiltersLayoutAPI.js +8 -8
- package/src/AFilters/AFiltersHorizontal/compositionAPI/FiltersSaveAPI.js +2 -2
- package/src/AFilters/AFiltersHorizontal/compositionAPI/FiltersSavedDeleteAPI.js +1 -1
- package/src/AFilters/AFiltersHorizontal/compositionAPI/SearchAPI.js +1 -1
- package/src/AFilters/AFiltersHorizontal/compositionAPI/ToggleAPI.js +1 -1
- package/src/plugins/AFiltersPlugin.js +5 -1
- package/src/styles/components/ui/ui.scss +1 -1
package/docs/src/main.js
CHANGED
|
@@ -2,6 +2,7 @@ import App from "./App/App.vue";
|
|
|
2
2
|
import { createApp } from "vue";
|
|
3
3
|
import router from "./router/index";
|
|
4
4
|
// import AGroupButtonDropdownPlugin from "../../src/plugins/AGroupButtonDropdownPlugin";
|
|
5
|
+
import AFiltersPlugin from "../../src/plugins/AFiltersPlugin";
|
|
5
6
|
import {
|
|
6
7
|
AIconPlugin,
|
|
7
8
|
AI18nPlugin,
|
|
@@ -9,7 +10,6 @@ import {
|
|
|
9
10
|
AModalPlugin,
|
|
10
11
|
ASafeHtml,
|
|
11
12
|
ASelectPlugin,
|
|
12
|
-
ATablePlugin,
|
|
13
13
|
} from "../../dist";
|
|
14
14
|
import mainIcons from "./mainIcons";
|
|
15
15
|
|
|
@@ -37,9 +37,25 @@ APP.use(ASelectPlugin, {
|
|
|
37
37
|
menuWidthType: "by_content",
|
|
38
38
|
},
|
|
39
39
|
});
|
|
40
|
-
APP.use(
|
|
40
|
+
APP.use(AFiltersPlugin, {
|
|
41
41
|
config: {
|
|
42
|
-
|
|
42
|
+
headerBottomGroups: [
|
|
43
|
+
{
|
|
44
|
+
props: {},
|
|
45
|
+
children: [
|
|
46
|
+
{
|
|
47
|
+
component: "addFilterSelect",
|
|
48
|
+
props: {
|
|
49
|
+
keyGroup: "group",
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
component: "buttonSearch",
|
|
54
|
+
props: {},
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
],
|
|
43
59
|
},
|
|
44
60
|
});
|
|
45
61
|
// APP.use(AGroupButtonDropdownPlugin, {
|
package/package.json
CHANGED
|
@@ -137,13 +137,13 @@ export default {
|
|
|
137
137
|
filtersTopFooter,
|
|
138
138
|
filtersTopHeader,
|
|
139
139
|
} = FiltersLayoutAPI({
|
|
140
|
-
|
|
140
|
+
addFilterSelectComponent,
|
|
141
|
+
buttonDeleteFiltersSavedComponent,
|
|
142
|
+
buttonSaveTopComponent,
|
|
141
143
|
buttonSearchComponent,
|
|
142
144
|
buttonToggleComponent,
|
|
145
|
+
filterMainComponent,
|
|
143
146
|
selectFiltersSavedComponent,
|
|
144
|
-
buttonDeleteFiltersSavedComponent,
|
|
145
|
-
buttonSaveTopComponent,
|
|
146
|
-
addFilterSelectComponent,
|
|
147
147
|
});
|
|
148
148
|
|
|
149
149
|
initEventBus();
|
|
@@ -6,6 +6,10 @@ import {
|
|
|
6
6
|
|
|
7
7
|
import AFiltersHorizontalFilterUi from "../AFiltersHorizontalFilterUi/AFiltersHorizontalFilterUi";
|
|
8
8
|
|
|
9
|
+
import {
|
|
10
|
+
filtersPluginComponentsProps,
|
|
11
|
+
} from "../../../plugins/AFiltersPlugin";
|
|
12
|
+
|
|
9
13
|
export default function FilterMainAPI(props) {
|
|
10
14
|
const filtersGroup = toRef(props, "filtersGroup");
|
|
11
15
|
const id = toRef(props, "id");
|
|
@@ -23,6 +27,7 @@ export default function FilterMainAPI(props) {
|
|
|
23
27
|
unappliedModel: unappliedModel.value,
|
|
24
28
|
onUpdateModelFilters: onUpdateModelFilters.value,
|
|
25
29
|
updateDataKeyByIdFromFilter: updateDataKeyByIdFromFilter.value,
|
|
30
|
+
...filtersPluginComponentsProps.value.filterMain || {},
|
|
26
31
|
});
|
|
27
32
|
});
|
|
28
33
|
|
|
@@ -5,6 +5,10 @@ import {
|
|
|
5
5
|
|
|
6
6
|
import ASelect from "../../../ui/ASelect/ASelect";
|
|
7
7
|
|
|
8
|
+
import {
|
|
9
|
+
filtersPluginComponentsProps,
|
|
10
|
+
} from "../../../plugins/AFiltersPlugin";
|
|
11
|
+
|
|
8
12
|
import {
|
|
9
13
|
filter,
|
|
10
14
|
forEach,
|
|
@@ -59,6 +63,7 @@ export default function FiltersHiddenAPI(props, { emit }) {
|
|
|
59
63
|
disabled: !filtersHidden.value.length,
|
|
60
64
|
search: true,
|
|
61
65
|
change: addFiltersVisible,
|
|
66
|
+
...filtersPluginComponentsProps.value.addFilterSelect || {},
|
|
62
67
|
});
|
|
63
68
|
});
|
|
64
69
|
|
|
@@ -12,22 +12,22 @@ import {
|
|
|
12
12
|
} from "lodash-es";
|
|
13
13
|
|
|
14
14
|
export default function FiltersLayoutAPI({
|
|
15
|
-
|
|
15
|
+
addFilterSelectComponent,
|
|
16
|
+
buttonDeleteFiltersSavedComponent,
|
|
17
|
+
buttonSaveTopComponent,
|
|
16
18
|
buttonSearchComponent,
|
|
17
19
|
buttonToggleComponent,
|
|
20
|
+
filterMainComponent,
|
|
18
21
|
selectFiltersSavedComponent,
|
|
19
|
-
buttonDeleteFiltersSavedComponent,
|
|
20
|
-
buttonSaveTopComponent,
|
|
21
|
-
addFilterSelectComponent,
|
|
22
22
|
}) {
|
|
23
23
|
const availableElements = {
|
|
24
|
-
|
|
24
|
+
addFilterSelectComponent,
|
|
25
|
+
buttonDeleteFiltersSavedComponent,
|
|
26
|
+
buttonSaveTopComponent,
|
|
25
27
|
buttonSearchComponent,
|
|
26
28
|
buttonToggleComponent,
|
|
29
|
+
filterMainComponent,
|
|
27
30
|
selectFiltersSavedComponent,
|
|
28
|
-
buttonDeleteFiltersSavedComponent,
|
|
29
|
-
buttonSaveTopComponent,
|
|
30
|
-
addFilterSelectComponent,
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
const filtersTopHeader = computed(() => {
|
|
@@ -66,7 +66,7 @@ export default function FiltersSaveAPI(props, {
|
|
|
66
66
|
id: buttonSaveComponentTopId.value,
|
|
67
67
|
onClick: openModalSaveTop,
|
|
68
68
|
...buttonSaveComponentPropsDefault.value,
|
|
69
|
-
...filtersPluginComponentsProps.value.buttonSaveTop,
|
|
69
|
+
...filtersPluginComponentsProps.value.buttonSaveTop || {},
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
72
|
|
|
@@ -113,7 +113,7 @@ export default function FiltersSaveAPI(props, {
|
|
|
113
113
|
search: true,
|
|
114
114
|
deselect: true,
|
|
115
115
|
change: changeModelFiltersSaved,
|
|
116
|
-
...filtersPluginComponentsProps.value.selectFiltersSaved,
|
|
116
|
+
...filtersPluginComponentsProps.value.selectFiltersSaved || {},
|
|
117
117
|
});
|
|
118
118
|
});
|
|
119
119
|
|
|
@@ -107,7 +107,7 @@ export default function FiltersSavedDeleteAPI(props, {
|
|
|
107
107
|
},
|
|
108
108
|
ariaDisabled: disabledButtonDeleteFiltersSaved.value,
|
|
109
109
|
onClick: openDeleteConfirm,
|
|
110
|
-
...filtersPluginComponentsProps.value.buttonDeleteFiltersSaved,
|
|
110
|
+
...filtersPluginComponentsProps.value.buttonDeleteFiltersSaved || {},
|
|
111
111
|
});
|
|
112
112
|
});
|
|
113
113
|
|
|
@@ -74,7 +74,11 @@ export const filtersPluginComponentsProps = computed(() => {
|
|
|
74
74
|
propsByKey[child.component] = child.props;
|
|
75
75
|
});
|
|
76
76
|
});
|
|
77
|
-
|
|
77
|
+
forEach(filtersPluginOptions.value.config.headerBottomGroups, group => {
|
|
78
|
+
forEach(group.children, child => {
|
|
79
|
+
propsByKey[child.component] = child.props;
|
|
80
|
+
});
|
|
81
|
+
});
|
|
78
82
|
return propsByKey;
|
|
79
83
|
});
|
|
80
84
|
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
-webkit-appearance: none;
|
|
65
65
|
-moz-appearance: none;
|
|
66
66
|
appearance: none;
|
|
67
|
-
border-radius:
|
|
67
|
+
border-radius: var(--a_border_radius);
|
|
68
68
|
transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
|
|
69
69
|
&:focus,
|
|
70
70
|
&.a_file__label:focus-within {
|