@merkaly/nuxt 0.3.1 → 0.3.2
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/dist/module.json +1 -1
- package/dist/runtime/components/format/FormatIcon.vue +1 -1
- package/dist/runtime/components/input/InputAddress.d.vue.ts +1 -1
- package/dist/runtime/components/input/InputAddress.vue.d.ts +1 -1
- package/dist/runtime/components/input/InputMoney.d.vue.ts +2 -2
- package/dist/runtime/components/input/InputMoney.vue.d.ts +2 -2
- package/dist/runtime/components/input/InputSearch.d.vue.ts +9 -1
- package/dist/runtime/components/input/InputSearch.vue +2 -1
- package/dist/runtime/components/input/InputSearch.vue.d.ts +9 -1
- package/dist/runtime/components/table/TableDatagrid.vue +6 -2
- package/dist/runtime/composables/useDatagrid.d.ts +2 -0
- package/dist/runtime/composables/useDatagrid.js +1 -0
- package/package.json +2 -1
package/dist/module.json
CHANGED
|
@@ -32,7 +32,7 @@ const classList = computed(() => [
|
|
|
32
32
|
<template v-if="props.text">
|
|
33
33
|
<span :class="{ 'flex-row-reverse': props.reversed }" class="d-flex align-items-center">
|
|
34
34
|
<component :is="props.tag" :class="classList" />
|
|
35
|
-
<span class="ps-1" v-text="props.text" />
|
|
35
|
+
<span :class="fontColor" class="ps-1" v-text="props.text" />
|
|
36
36
|
</span>
|
|
37
37
|
</template>
|
|
38
38
|
|
|
@@ -81,8 +81,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
81
81
|
}>, {
|
|
82
82
|
mode: PlaceTypes;
|
|
83
83
|
disabled: boolean;
|
|
84
|
-
placeholder: string;
|
|
85
84
|
countries: string[];
|
|
85
|
+
placeholder: string;
|
|
86
86
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
87
87
|
declare const _default: typeof __VLS_export;
|
|
88
88
|
export default _default;
|
|
@@ -81,8 +81,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
81
81
|
}>, {
|
|
82
82
|
mode: PlaceTypes;
|
|
83
83
|
disabled: boolean;
|
|
84
|
-
placeholder: string;
|
|
85
84
|
countries: string[];
|
|
85
|
+
placeholder: string;
|
|
86
86
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
87
87
|
declare const _default: typeof __VLS_export;
|
|
88
88
|
export default _default;
|
|
@@ -74,10 +74,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
74
74
|
}>> & Readonly<{
|
|
75
75
|
"onUpdate:modelValue"?: ((value: Numberish) => any) | undefined;
|
|
76
76
|
}>, {
|
|
77
|
+
min: number;
|
|
78
|
+
max: number;
|
|
77
79
|
prefix: string;
|
|
78
80
|
decimal: string;
|
|
79
|
-
max: number;
|
|
80
|
-
min: number;
|
|
81
81
|
placeholder: string;
|
|
82
82
|
precision: number;
|
|
83
83
|
suffix: string;
|
|
@@ -74,10 +74,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
74
74
|
}>> & Readonly<{
|
|
75
75
|
"onUpdate:modelValue"?: ((value: Numberish) => any) | undefined;
|
|
76
76
|
}>, {
|
|
77
|
+
min: number;
|
|
78
|
+
max: number;
|
|
77
79
|
prefix: string;
|
|
78
80
|
decimal: string;
|
|
79
|
-
max: number;
|
|
80
|
-
min: number;
|
|
81
81
|
placeholder: string;
|
|
82
82
|
precision: number;
|
|
83
83
|
suffix: string;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const search: import("vue").ModelRef<string, string, string, string>;
|
|
2
|
+
type __VLS_ModelProps = {
|
|
3
|
+
modelValue?: typeof search['value'];
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
"update:modelValue": (value: string) => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
8
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2
10
|
declare const _default: typeof __VLS_export;
|
|
3
11
|
export default _default;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import FormatIcon from "../format/FormatIcon.vue";
|
|
3
|
+
const search = defineModel({ type: String, default: () => String() });
|
|
3
4
|
</script>
|
|
4
5
|
|
|
5
6
|
<template>
|
|
6
7
|
<div class="d-flex align-items-center position-relative">
|
|
7
|
-
<BFormInput class="form-control-solid border" placeholder="Search..." />
|
|
8
|
+
<BFormInput v-model="search" class="form-control-solid border" placeholder="Search..." />
|
|
8
9
|
|
|
9
10
|
<FormatIcon class="position-absolute me-3 end-0" mode="regular" name="search" size="4" variant="primary" />
|
|
10
11
|
</div>
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const search: import("vue").ModelRef<string, string, string, string>;
|
|
2
|
+
type __VLS_ModelProps = {
|
|
3
|
+
modelValue?: typeof search['value'];
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
"update:modelValue": (value: string) => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
8
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2
10
|
declare const _default: typeof __VLS_export;
|
|
3
11
|
export default _default;
|
|
@@ -78,7 +78,11 @@ function toggleDetails(item) {
|
|
|
78
78
|
<BCardHeader class="align-items-center p-4">
|
|
79
79
|
<BCardTitle>
|
|
80
80
|
<slot name="search">
|
|
81
|
-
<InputSearch
|
|
81
|
+
<InputSearch
|
|
82
|
+
v-model="$datagrid.search"
|
|
83
|
+
:disabled="$datagrid.loading"
|
|
84
|
+
class="w-250px"
|
|
85
|
+
@change="emit('fetch', 'search')" />
|
|
82
86
|
</slot>
|
|
83
87
|
</BCardTitle>
|
|
84
88
|
|
|
@@ -133,7 +137,7 @@ function toggleDetails(item) {
|
|
|
133
137
|
|
|
134
138
|
<BTableSimple
|
|
135
139
|
:class="{ 'h-100': !visibleItems.length || $datagrid.loading }"
|
|
136
|
-
class="mb-0"
|
|
140
|
+
class="mb-0 overflow-auto"
|
|
137
141
|
hover
|
|
138
142
|
responsive="lg"
|
|
139
143
|
small
|
|
@@ -14,6 +14,7 @@ export interface DataGrid<C = unknown> {
|
|
|
14
14
|
limit: number;
|
|
15
15
|
loading: boolean;
|
|
16
16
|
page: number;
|
|
17
|
+
search: string;
|
|
17
18
|
total: number;
|
|
18
19
|
fn: {
|
|
19
20
|
addItem: (item: C) => DataGridItem<C>[];
|
|
@@ -26,6 +27,7 @@ interface OptionArgs<D> {
|
|
|
26
27
|
items?: D[];
|
|
27
28
|
limit?: number;
|
|
28
29
|
loading?: boolean;
|
|
30
|
+
search?: string;
|
|
29
31
|
total?: number;
|
|
30
32
|
}
|
|
31
33
|
export declare function useDatagrid<D = unknown>(params: OptionArgs<D>): DataGrid<D>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@merkaly/nuxt",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/merkaly-io/nuxt.git"
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"bootstrap": "^5.3.8",
|
|
61
61
|
"bootstrap-vue-next": "^0.43.0",
|
|
62
62
|
"change-case": "^5",
|
|
63
|
+
"class-transformer": "^0.5.1",
|
|
63
64
|
"class-validator": "^0.14.3",
|
|
64
65
|
"eslint": "^9.39.1",
|
|
65
66
|
"filesize": "^11.0.2",
|