@winchsa/ui 0.1.28 → 0.1.30
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/components/cards/AppCardActions.d.vue.ts +2 -2
- package/dist/components/cards/AppCardActions.vue.d.ts +2 -2
- package/dist/components/cards/CheckboxesCard.d.vue.ts +1 -0
- package/dist/components/cards/CheckboxesCard.vue +45 -13
- package/dist/components/cards/CheckboxesCard.vue.d.ts +1 -0
- package/package.json +1 -1
|
@@ -15,12 +15,12 @@ type __VLS_Slots = {} & {
|
|
|
15
15
|
default?: (props: typeof __VLS_76) => any;
|
|
16
16
|
};
|
|
17
17
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
18
|
-
refresh: (hideOverlay: () => void) => any;
|
|
19
18
|
collapsed: (isContentCollapsed: boolean) => any;
|
|
19
|
+
refresh: (hideOverlay: () => void) => any;
|
|
20
20
|
trash: () => any;
|
|
21
21
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
|
-
onRefresh?: ((hideOverlay: () => void) => any) | undefined;
|
|
23
22
|
onCollapsed?: ((isContentCollapsed: boolean) => any) | undefined;
|
|
23
|
+
onRefresh?: ((hideOverlay: () => void) => any) | undefined;
|
|
24
24
|
onTrash?: (() => any) | undefined;
|
|
25
25
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -15,12 +15,12 @@ type __VLS_Slots = {} & {
|
|
|
15
15
|
default?: (props: typeof __VLS_76) => any;
|
|
16
16
|
};
|
|
17
17
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
18
|
-
refresh: (hideOverlay: () => void) => any;
|
|
19
18
|
collapsed: (isContentCollapsed: boolean) => any;
|
|
19
|
+
refresh: (hideOverlay: () => void) => any;
|
|
20
20
|
trash: () => any;
|
|
21
21
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
|
-
onRefresh?: ((hideOverlay: () => void) => any) | undefined;
|
|
23
22
|
onCollapsed?: ((isContentCollapsed: boolean) => any) | undefined;
|
|
23
|
+
onRefresh?: ((hideOverlay: () => void) => any) | undefined;
|
|
24
24
|
onTrash?: (() => any) | undefined;
|
|
25
25
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -7,6 +7,7 @@ type __VLS_Props = {
|
|
|
7
7
|
id?: string | number;
|
|
8
8
|
title?: string;
|
|
9
9
|
modelValue: ChechboxModel[];
|
|
10
|
+
vertical?: boolean;
|
|
10
11
|
};
|
|
11
12
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
12
13
|
"update:modelValue": (value: ChechboxModel[]) => any;
|
|
@@ -5,7 +5,8 @@ import AppCard from "./AppCard.vue";
|
|
|
5
5
|
const props = defineProps({
|
|
6
6
|
id: { type: [String, Number], required: false, default: "" },
|
|
7
7
|
title: { type: String, required: false, default: "" },
|
|
8
|
-
modelValue: { type: Array, required: true, default: () => [] }
|
|
8
|
+
modelValue: { type: Array, required: true, default: () => [] },
|
|
9
|
+
vertical: { type: Boolean, required: false, default: false }
|
|
9
10
|
});
|
|
10
11
|
const data = reactive({
|
|
11
12
|
selectedAll: false,
|
|
@@ -44,7 +45,12 @@ function getItemOnChange() {
|
|
|
44
45
|
<template>
|
|
45
46
|
<AppCard class="h-100">
|
|
46
47
|
<!-- title card -->
|
|
47
|
-
<VCardItem
|
|
48
|
+
<VCardItem
|
|
49
|
+
class="text-center"
|
|
50
|
+
:class="{
|
|
51
|
+
'mb-0 pb-0': vertical
|
|
52
|
+
}"
|
|
53
|
+
>
|
|
48
54
|
<div class="d-flex justify-space-between w-100">
|
|
49
55
|
<h3 class="fw-bold">
|
|
50
56
|
{{ title }}
|
|
@@ -60,17 +66,43 @@ function getItemOnChange() {
|
|
|
60
66
|
<VDivider />
|
|
61
67
|
</VCardItem>
|
|
62
68
|
|
|
63
|
-
<VCardItem
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
69
|
+
<VCardItem
|
|
70
|
+
:class="{
|
|
71
|
+
'pt-2': vertical,
|
|
72
|
+
'pt-0 pa-0': !vertical
|
|
73
|
+
}"
|
|
74
|
+
>
|
|
75
|
+
<template v-if="vertical">
|
|
76
|
+
<VRow>
|
|
77
|
+
<VCol
|
|
78
|
+
v-for="(item, key) in data.model"
|
|
79
|
+
:key="key"
|
|
80
|
+
xl="3"
|
|
81
|
+
lg="4"
|
|
82
|
+
md="6"
|
|
83
|
+
sm="12"
|
|
84
|
+
class="py-0"
|
|
85
|
+
>
|
|
86
|
+
<div class="d-flex justify-space-between align-center border pa-3 my-3 rounded">
|
|
87
|
+
<span>{{ item.label }}</span>
|
|
88
|
+
<VCheckbox v-model="item.selected" />
|
|
89
|
+
</div>
|
|
90
|
+
</VCol>
|
|
91
|
+
</VRow>
|
|
92
|
+
</template>
|
|
93
|
+
|
|
94
|
+
<template v-else>
|
|
95
|
+
<VCardItem class="pt-0">
|
|
96
|
+
<div
|
|
97
|
+
v-for="(item, key) in data.model"
|
|
98
|
+
:key="key"
|
|
99
|
+
class="d-flex justify-space-between mb-2"
|
|
100
|
+
>
|
|
101
|
+
<span>{{ item.label }}</span>
|
|
102
|
+
<VCheckbox v-model="item.selected" />
|
|
103
|
+
</div>
|
|
104
|
+
</vcarditem>
|
|
105
|
+
</template>
|
|
74
106
|
</VCardItem>
|
|
75
107
|
</AppCard>
|
|
76
108
|
</template>
|
|
@@ -7,6 +7,7 @@ type __VLS_Props = {
|
|
|
7
7
|
id?: string | number;
|
|
8
8
|
title?: string;
|
|
9
9
|
modelValue: ChechboxModel[];
|
|
10
|
+
vertical?: boolean;
|
|
10
11
|
};
|
|
11
12
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
12
13
|
"update:modelValue": (value: ChechboxModel[]) => any;
|