@fy-/fws-vue 0.0.913 → 0.0.916
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/components/fws/DataTable.vue +1 -2
- package/components/fws/FilterData.vue +3 -16
- package/package.json +1 -1
- package/types.d.ts +15 -0
|
@@ -164,12 +164,11 @@ watch(
|
|
|
164
164
|
getData();
|
|
165
165
|
},
|
|
166
166
|
);
|
|
167
|
+
await getData();
|
|
167
168
|
onMounted(() => {
|
|
168
169
|
eventBus.on(`${props.id}PagesGoToPage`, getData);
|
|
169
170
|
eventBus.on(`${props.id}Reload`, getData);
|
|
170
171
|
eventBus.on(`${props.id}Refresh`, getData);
|
|
171
|
-
|
|
172
|
-
getData();
|
|
173
172
|
});
|
|
174
173
|
onUnmounted(() => {
|
|
175
174
|
eventBus.off(`${props.id}PagesGoToPage`, getData);
|
|
@@ -7,21 +7,8 @@ import { useEventBus } from "../../composables/event-bus";
|
|
|
7
7
|
import { onMounted } from "vue";
|
|
8
8
|
import DefaultDateSelection from "../ui/DefaultDateSelection.vue";
|
|
9
9
|
import { onUnmounted, ref } from "vue";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
req: boolean;
|
|
13
|
-
uid: string;
|
|
14
|
-
type: string;
|
|
15
|
-
restValue?: string;
|
|
16
|
-
options?: any[][];
|
|
17
|
-
isHidden?: boolean;
|
|
18
|
-
default?: any | undefined;
|
|
19
|
-
formats?: Record<string, (value: any) => any>;
|
|
20
|
-
autocomplete?: (value: string) => Promise<any[]>;
|
|
21
|
-
formatRestValue?: (value: any) => any;
|
|
22
|
-
onChangeValue?: (form: any, value: any) => void;
|
|
23
|
-
focused: boolean;
|
|
24
|
-
}
|
|
10
|
+
import type { FilterDataItems } from "../../types";
|
|
11
|
+
|
|
25
12
|
const emit = defineEmits(["update:modelValue"]);
|
|
26
13
|
const hidden = ref<boolean>(false);
|
|
27
14
|
const state = reactive<any>({ formData: {} });
|
|
@@ -31,7 +18,7 @@ const translate = useTranslation();
|
|
|
31
18
|
const fDynamicOptions = ref<any[]>([]);
|
|
32
19
|
const props = withDefaults(
|
|
33
20
|
defineProps<{
|
|
34
|
-
data?: Array<Array<
|
|
21
|
+
data?: Array<Array<FilterDataItems>>;
|
|
35
22
|
css: string;
|
|
36
23
|
modelValue?: Record<string, unknown>;
|
|
37
24
|
}>(),
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -10,3 +10,18 @@ export type NavLink = {
|
|
|
10
10
|
icon?: Component;
|
|
11
11
|
id?: string;
|
|
12
12
|
};
|
|
13
|
+
export interface FilterDataItems {
|
|
14
|
+
label: string;
|
|
15
|
+
req: boolean;
|
|
16
|
+
uid: string;
|
|
17
|
+
type: string;
|
|
18
|
+
restValue?: string;
|
|
19
|
+
options?: any[][];
|
|
20
|
+
isHidden?: boolean;
|
|
21
|
+
default?: any | undefined;
|
|
22
|
+
formats?: Record<string, (value: any) => any>;
|
|
23
|
+
autocomplete?: (value: string) => Promise<any[]>;
|
|
24
|
+
formatRestValue?: (value: any) => any;
|
|
25
|
+
onChangeValue?: (form: any, value: any) => void;
|
|
26
|
+
focused?: boolean;
|
|
27
|
+
}
|