@katlux/toolkit 0.1.0-beta.70 → 0.1.0-beta.71
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/KButton/KButton.logic.d.ts +1 -1
- package/dist/runtime/components/KDatatable/KDataIterator.global.d.vue.ts +1 -1
- package/dist/runtime/components/KDatatable/KDataIterator.global.vue.d.ts +1 -1
- package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +2 -2
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +2 -2
- package/dist/runtime/components/KTreeView/KTreeView.global.d.vue.ts +3 -3
- package/dist/runtime/components/KTreeView/KTreeView.global.vue.d.ts +3 -3
- package/dist/runtime/presets/default/components/KDatatable/KDatatable.vue +9 -0
- package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.vue +9 -3
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -22,7 +22,7 @@ export interface KButtonEmits {
|
|
|
22
22
|
export declare function useKButtonLogic(props: KButtonProps, emit: KButtonEmits): {
|
|
23
23
|
isLink: import("vue").ComputedRef<boolean>;
|
|
24
24
|
isDisabled: import("vue").ComputedRef<boolean | undefined>;
|
|
25
|
-
buttonClasses: import("vue").ComputedRef<("info" | "default" | "
|
|
25
|
+
buttonClasses: import("vue").ComputedRef<("info" | "default" | "primary" | "danger" | "success" | "warning" | "light" | "dark" | "small" | "large" | "medium" | {
|
|
26
26
|
disabled: boolean | undefined;
|
|
27
27
|
})[]>;
|
|
28
28
|
onClick: () => void;
|
|
@@ -11,8 +11,8 @@ interface Props {
|
|
|
11
11
|
page?: number;
|
|
12
12
|
}
|
|
13
13
|
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
14
|
-
bulkActions: IKDatatableAction[];
|
|
15
14
|
search: string;
|
|
15
|
+
bulkActions: IKDatatableAction[];
|
|
16
16
|
loading: boolean;
|
|
17
17
|
visibleFields: Array<string> | null;
|
|
18
18
|
rowActions: IKDatatableAction[];
|
|
@@ -11,8 +11,8 @@ interface Props {
|
|
|
11
11
|
page?: number;
|
|
12
12
|
}
|
|
13
13
|
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
14
|
-
bulkActions: IKDatatableAction[];
|
|
15
14
|
search: string;
|
|
15
|
+
bulkActions: IKDatatableAction[];
|
|
16
16
|
loading: boolean;
|
|
17
17
|
visibleFields: Array<string> | null;
|
|
18
18
|
rowActions: IKDatatableAction[];
|
|
@@ -156,6 +156,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
156
156
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
157
157
|
"onUpdate:isOptionsOpen"?: ((value: boolean) => any) | undefined;
|
|
158
158
|
}>, {
|
|
159
|
+
parentKey: string;
|
|
160
|
+
idKey: string;
|
|
159
161
|
disabled: boolean;
|
|
160
162
|
loading: boolean;
|
|
161
163
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
@@ -170,8 +172,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
170
172
|
multiSelect: boolean;
|
|
171
173
|
valueField: string;
|
|
172
174
|
iconField: string;
|
|
173
|
-
idKey: string;
|
|
174
|
-
parentKey: string;
|
|
175
175
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
176
176
|
declare const _default: typeof __VLS_export;
|
|
177
177
|
export default _default;
|
|
@@ -156,6 +156,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
156
156
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
157
157
|
"onUpdate:isOptionsOpen"?: ((value: boolean) => any) | undefined;
|
|
158
158
|
}>, {
|
|
159
|
+
parentKey: string;
|
|
160
|
+
idKey: string;
|
|
159
161
|
disabled: boolean;
|
|
160
162
|
loading: boolean;
|
|
161
163
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
@@ -170,8 +172,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
170
172
|
multiSelect: boolean;
|
|
171
173
|
valueField: string;
|
|
172
174
|
iconField: string;
|
|
173
|
-
idKey: string;
|
|
174
|
-
parentKey: string;
|
|
175
175
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
176
176
|
declare const _default: typeof __VLS_export;
|
|
177
177
|
export default _default;
|
|
@@ -81,14 +81,14 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
81
81
|
default: () => {};
|
|
82
82
|
};
|
|
83
83
|
}>> & Readonly<{}>, {
|
|
84
|
+
parentKey: string;
|
|
85
|
+
idKey: string;
|
|
86
|
+
expandedByDefault: boolean;
|
|
84
87
|
bulkActions: import("@katlux/providers").IKDatatableAction[];
|
|
85
88
|
rowActions: import("./KTreeView.logic.js").IRowAction[];
|
|
86
89
|
cellSlots: Record<string, any>;
|
|
87
90
|
headerSlots: Record<string, any>;
|
|
88
91
|
treeColumnIndex: number;
|
|
89
|
-
idKey: string;
|
|
90
|
-
parentKey: string;
|
|
91
|
-
expandedByDefault: boolean;
|
|
92
92
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
93
93
|
declare const _default: typeof __VLS_export;
|
|
94
94
|
export default _default;
|
|
@@ -81,14 +81,14 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
81
81
|
default: () => {};
|
|
82
82
|
};
|
|
83
83
|
}>> & Readonly<{}>, {
|
|
84
|
+
parentKey: string;
|
|
85
|
+
idKey: string;
|
|
86
|
+
expandedByDefault: boolean;
|
|
84
87
|
bulkActions: import("@katlux/providers").IKDatatableAction[];
|
|
85
88
|
rowActions: import("./KTreeView.logic.js").IRowAction[];
|
|
86
89
|
cellSlots: Record<string, any>;
|
|
87
90
|
headerSlots: Record<string, any>;
|
|
88
91
|
treeColumnIndex: number;
|
|
89
|
-
idKey: string;
|
|
90
|
-
parentKey: string;
|
|
91
|
-
expandedByDefault: boolean;
|
|
92
92
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
93
93
|
declare const _default: typeof __VLS_export;
|
|
94
94
|
export default _default;
|
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
th(v-if="props.rowActions && props.rowActions.length>0")
|
|
20
20
|
|
|
21
21
|
tbody
|
|
22
|
+
tr.empty-row(v-if="!isLoading && (!props.dataProvider.pageData.value || props.dataProvider.pageData.value.length === 0)")
|
|
23
|
+
td.empty-state(:colspan="(visibleFields || props.dataProvider.fields || []).length + (props.bulkActions && props.bulkActions.length > 0 ? 1 : 0) + (props.rowActions && props.rowActions.length > 0 ? 1 : 0)")
|
|
24
|
+
span(v-if="props.dataProvider.filter.value?.active") no result found for filter
|
|
25
|
+
span(v-else) no result
|
|
22
26
|
tr(v-for="(row, index) in props.dataProvider.pageData.value" :key="index")
|
|
23
27
|
td.check(v-if="props.bulkActions && props.bulkActions.length>0")
|
|
24
28
|
KCheckbox(:value="row" v-model="selectedRows")
|
|
@@ -131,6 +135,11 @@ const isLoading = computed(() => {
|
|
|
131
135
|
td {
|
|
132
136
|
padding: 5px;
|
|
133
137
|
}
|
|
138
|
+
td.empty-state {
|
|
139
|
+
text-align: center;
|
|
140
|
+
padding: 20px;
|
|
141
|
+
color: #666;
|
|
142
|
+
}
|
|
134
143
|
}
|
|
135
144
|
}
|
|
136
145
|
}
|
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
input(type="radio" v-model="model" :disabled="disabled" :value="value")
|
|
5
5
|
.icon-container(:class="validation ? `is-${validation}` : ''")
|
|
6
6
|
KIcon.icon(iconname="check")
|
|
7
|
-
span
|
|
8
|
-
slot
|
|
7
|
+
span(v-if="$slots.label || $slots.default || label")
|
|
8
|
+
slot(name="label")
|
|
9
|
+
slot
|
|
10
|
+
| {{ label }}
|
|
9
11
|
span.validation-text(v-if="validation && ['success', 'warning', 'error'].includes(validation) && validationText" :class="`is-${validation}`") {{ validationText }}
|
|
10
12
|
</template>
|
|
11
13
|
|
|
@@ -26,6 +28,7 @@ const model = defineModel()
|
|
|
26
28
|
.KRadiobox {
|
|
27
29
|
display: flex;
|
|
28
30
|
gap: 5px;
|
|
31
|
+
cursor: pointer;
|
|
29
32
|
input {
|
|
30
33
|
display: none;
|
|
31
34
|
}
|
|
@@ -35,8 +38,11 @@ const model = defineModel()
|
|
|
35
38
|
height: var(--box-padding);
|
|
36
39
|
text-align: center;
|
|
37
40
|
line-height: var(--box-padding);
|
|
38
|
-
border-radius: var(--input-border-radius);
|
|
41
|
+
border-radius: var(--checkbox-border-radius, var(--input-border-radius));
|
|
39
42
|
background-color: var(--checkbox-bg);
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
justify-content: center;
|
|
40
46
|
}
|
|
41
47
|
.icon {
|
|
42
48
|
display: none;
|