@xleddyl/443-components-vue 0.16.9 → 0.16.11
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/CATALOG.md +40 -34
- package/README.md +28 -9
- package/dist/components/feedback/SkeletonForm.vue +29 -0
- package/dist/components/feedback/SkeletonForm.vue.d.ts +402 -0
- package/dist/components/feedback/SkeletonList.vue +30 -0
- package/dist/components/feedback/SkeletonList.vue.d.ts +406 -0
- package/dist/components/feedback/index.d.ts +2 -0
- package/dist/components/feedback/index.mjs +2 -0
- package/dist/components/layout/Tabs.vue +5 -3
- package/dist/components/layout/Tabs.vue.d.ts +2 -0
- package/dist/components/overlays/ConfirmDialog.vue.d.ts +12 -0
- package/dist/components/overlays/ConfirmHost.vue.d.ts +12 -0
- package/dist/components/overlays/Drawer.vue +11 -2
- package/dist/components/overlays/Drawer.vue.d.ts +13 -0
- package/dist/components/overlays/Modal.vue +10 -1
- package/dist/components/overlays/Modal.vue.d.ts +13 -0
- package/dist/components/templates/FormDrawer.vue +161 -0
- package/dist/components/templates/FormDrawer.vue.d.ts +297 -0
- package/dist/components/templates/SettingsModal.vue.d.ts +10 -0
- package/dist/components/templates/index.d.ts +1 -0
- package/dist/components/templates/index.mjs +1 -0
- package/dist/internal/overlays/DialogFrame.vue +65 -11
- package/dist/internal/overlays/DialogFrame.vue.d.ts +14 -0
- package/dist/internal/overlays/DialogTrail.vue +20 -0
- package/dist/internal/overlays/DialogTrail.vue.d.ts +22 -0
- package/dist/internal/overlays/OverlayView.vue.d.ts +12 -0
- package/dist/locale/de.mjs +6 -1
- package/dist/locale/en.mjs +6 -1
- package/dist/locale/it.mjs +6 -1
- package/dist/locale/types.d.ts +5 -0
- package/dist/styles/feedback/skeleton.css +46 -0
- package/dist/styles/overlays/modal.css +71 -0
- package/dist/styles/tailwind.css +46 -0
- package/dist/styles/templates/form-drawer.css +6 -0
- package/dist/styles/templates.css +1 -0
- package/package.json +3 -2
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
@click="onClick"
|
|
13
13
|
>
|
|
14
14
|
<div v-if="present" ref="panelRef" :class="`${prefix}-panel`" tabindex="-1">
|
|
15
|
-
<header v-if="hasHeader" :class="`${prefix}-header
|
|
15
|
+
<header v-if="hasHeader" :class="[`${prefix}-header`, { 'has-tabs': hasTabs }]">
|
|
16
16
|
<div v-if="slots.header" :id="headerId" class="k-dialog-header-slot">
|
|
17
17
|
<slot
|
|
18
18
|
name="header"
|
|
@@ -24,20 +24,35 @@
|
|
|
24
24
|
<template v-else>
|
|
25
25
|
<div :class="`${prefix}-heading`">
|
|
26
26
|
<div v-if="slots['title-trailing']" :class="`${prefix}-title-row`">
|
|
27
|
-
<h2 v-if="hasTitle" :id="titleId" :class="
|
|
28
|
-
<
|
|
27
|
+
<h2 v-if="hasTitle" :id="titleId" :class="titleClass">
|
|
28
|
+
<DialogTrail :trail="trail" @navigate="navigate">
|
|
29
|
+
<slot name="title">{{ title }}</slot>
|
|
30
|
+
</DialogTrail>
|
|
29
31
|
</h2>
|
|
30
32
|
<slot name="title-trailing" />
|
|
31
33
|
</div>
|
|
32
|
-
<h2 v-else-if="hasTitle" :id="titleId" :class="
|
|
33
|
-
<
|
|
34
|
+
<h2 v-else-if="hasTitle" :id="titleId" :class="titleClass">
|
|
35
|
+
<DialogTrail :trail="trail" @navigate="navigate">
|
|
36
|
+
<slot name="title">{{ title }}</slot>
|
|
37
|
+
</DialogTrail>
|
|
34
38
|
</h2>
|
|
35
39
|
<p v-if="hasDescription" :id="descriptionId" :class="`${prefix}-description`">
|
|
36
40
|
<slot name="description">{{ description }}</slot>
|
|
37
41
|
</p>
|
|
38
42
|
</div>
|
|
39
43
|
</template>
|
|
40
|
-
<div v-if="$slots.actions || showClose" :class="`${prefix}-actions`">
|
|
44
|
+
<div v-if="$slots.actions || showClose || hasTrail" :class="`${prefix}-actions`">
|
|
45
|
+
<Button
|
|
46
|
+
v-if="hasTrail"
|
|
47
|
+
variant="ghost"
|
|
48
|
+
tone="neutral"
|
|
49
|
+
size="sm"
|
|
50
|
+
icon="arrow-left"
|
|
51
|
+
:disabled="loading"
|
|
52
|
+
@click="navigate(trail.length - 1)"
|
|
53
|
+
>
|
|
54
|
+
{{ backText }}
|
|
55
|
+
</Button>
|
|
41
56
|
<slot name="actions" :close="close" />
|
|
42
57
|
<Button
|
|
43
58
|
v-if="showClose"
|
|
@@ -51,9 +66,22 @@
|
|
|
51
66
|
@click="requestClose('close-button')"
|
|
52
67
|
/>
|
|
53
68
|
</div>
|
|
69
|
+
<Tabs
|
|
70
|
+
v-if="hasTabs"
|
|
71
|
+
v-model="tab"
|
|
72
|
+
:items="tabs"
|
|
73
|
+
:controls="panelId"
|
|
74
|
+
:label="label ?? title"
|
|
75
|
+
variant="underline"
|
|
76
|
+
size="sm"
|
|
77
|
+
:class="`${prefix}-tabs`"
|
|
78
|
+
/>
|
|
54
79
|
</header>
|
|
55
80
|
<div
|
|
81
|
+
:id="hasTabs ? panelId : void 0"
|
|
56
82
|
ref="bodyRef"
|
|
83
|
+
:role="hasTabs ? 'tabpanel' : void 0"
|
|
84
|
+
:aria-label="hasTabs ? activeTabItem?.label : void 0"
|
|
57
85
|
:class="[
|
|
58
86
|
`${prefix}-body`,
|
|
59
87
|
{
|
|
@@ -63,7 +91,7 @@
|
|
|
63
91
|
}
|
|
64
92
|
]"
|
|
65
93
|
>
|
|
66
|
-
<slot :close="close" :title-id="labelledBy ?? titleId" />
|
|
94
|
+
<slot :close="close" :title-id="labelledBy ?? titleId" :tab="activeTab" />
|
|
67
95
|
</div>
|
|
68
96
|
<footer v-if="$slots.footer" :class="`${prefix}-footer`">
|
|
69
97
|
<slot name="footer" :close="close" />
|
|
@@ -75,6 +103,8 @@
|
|
|
75
103
|
<script setup>
|
|
76
104
|
import { computed, nextTick, ref, useAttrs, useId, useTemplateRef, warn, watch } from "vue";
|
|
77
105
|
import Button from "../../components/core/Button.vue";
|
|
106
|
+
import Tabs from "../../components/layout/Tabs.vue";
|
|
107
|
+
import DialogTrail from "./DialogTrail.vue";
|
|
78
108
|
import { useLocale } from "../../composables/useLocale";
|
|
79
109
|
import { provideFieldBoundary } from "../../composables/useFieldBoundary";
|
|
80
110
|
import { useScrollEdges } from "../core/scroll-edges";
|
|
@@ -91,23 +121,37 @@ const props = defineProps({
|
|
|
91
121
|
closeLabel: { type: String, required: false },
|
|
92
122
|
flush: { type: Boolean, required: false },
|
|
93
123
|
loading: { type: Boolean, required: false },
|
|
94
|
-
beforeClose: { type: Function, required: false }
|
|
124
|
+
beforeClose: { type: Function, required: false },
|
|
125
|
+
tabs: { type: Array, required: false },
|
|
126
|
+
trail: { type: Array, required: false },
|
|
127
|
+
backLabel: { type: String, required: false }
|
|
95
128
|
});
|
|
96
129
|
provideFieldBoundary();
|
|
97
130
|
const { t } = useLocale();
|
|
98
131
|
const closeText = computed(() => props.closeLabel ?? t("common.close"));
|
|
132
|
+
const backText = computed(() => props.backLabel ?? t("common.back"));
|
|
99
133
|
const slots = defineSlots();
|
|
100
|
-
const emit = defineEmits(["open", "close", "afterLeave"]);
|
|
134
|
+
const emit = defineEmits(["open", "close", "afterLeave", "navigate"]);
|
|
101
135
|
const open = defineModel("open", { type: Boolean, ...{ required: true } });
|
|
136
|
+
const tab = defineModel("tab", { type: [String, Number] });
|
|
102
137
|
const baseId = useId();
|
|
103
138
|
const titleId = `${baseId}-title`;
|
|
104
139
|
const descriptionId = `${baseId}-description`;
|
|
105
140
|
const headerId = `${baseId}-header`;
|
|
141
|
+
const panelId = `${baseId}-panel`;
|
|
106
142
|
const dialogRef = useTemplateRef("dialogRef");
|
|
107
143
|
const panelRef = useTemplateRef("panelRef");
|
|
108
144
|
const bodyRef = useTemplateRef("bodyRef");
|
|
109
145
|
const { overflowTop, overflowBottom } = useScrollEdges(() => bodyRef.value);
|
|
110
|
-
const
|
|
146
|
+
const hasTrail = computed(() => Boolean(props.trail?.length));
|
|
147
|
+
const hasTabs = computed(() => Boolean(props.tabs?.length));
|
|
148
|
+
const hasTitle = computed(() => Boolean(props.title || slots.title || hasTrail.value));
|
|
149
|
+
const titleClass = computed(() => [`${props.prefix}-title`, { "has-trail": hasTrail.value }]);
|
|
150
|
+
const activeTabItem = computed(() => {
|
|
151
|
+
const items = props.tabs ?? [];
|
|
152
|
+
return items.find((item) => item.value === tab.value) ?? items.find((item) => !item.disabled);
|
|
153
|
+
});
|
|
154
|
+
const activeTab = computed(() => activeTabItem.value?.value);
|
|
111
155
|
const hasDescription = computed(() => Boolean(props.description || slots.description));
|
|
112
156
|
const headerTitled = ref(false);
|
|
113
157
|
const labelledBy = computed(() => {
|
|
@@ -125,7 +169,7 @@ watch(open, (value) => {
|
|
|
125
169
|
const showClose = computed(() => props.dismissible && !props.hideClose);
|
|
126
170
|
const hasHeader = computed(
|
|
127
171
|
() => Boolean(
|
|
128
|
-
hasTitle.value || hasDescription.value || slots["title-trailing"] || slots.header || slots.actions || showClose.value
|
|
172
|
+
hasTitle.value || hasDescription.value || slots["title-trailing"] || slots.header || slots.actions || showClose.value || hasTrail.value || hasTabs.value
|
|
129
173
|
)
|
|
130
174
|
);
|
|
131
175
|
const { present, requestClose, onCancel, onClose, onPointerDown, onClick } = useModalDialog({
|
|
@@ -138,6 +182,16 @@ const { present, requestClose, onCancel, onClose, onPointerDown, onClick } = use
|
|
|
138
182
|
onClose: () => emit("close"),
|
|
139
183
|
onAfterLeave: () => emit("afterLeave")
|
|
140
184
|
});
|
|
185
|
+
function navigate(index) {
|
|
186
|
+
if (props.loading) return;
|
|
187
|
+
emit("navigate", index);
|
|
188
|
+
}
|
|
189
|
+
watch(
|
|
190
|
+
() => [activeTab.value, props.trail?.length],
|
|
191
|
+
() => {
|
|
192
|
+
if (bodyRef.value) bodyRef.value.scrollTop = 0;
|
|
193
|
+
}
|
|
194
|
+
);
|
|
141
195
|
function close() {
|
|
142
196
|
if (props.loading) return Promise.resolve(false);
|
|
143
197
|
return requestClose("action");
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TabItem } from '../../components/layout/types';
|
|
1
2
|
import type { DialogBeforeClose } from '../../components/overlays/types';
|
|
2
3
|
export interface DialogSlotScope {
|
|
3
4
|
close: () => void;
|
|
@@ -8,6 +9,7 @@ export interface DialogFrameSlots {
|
|
|
8
9
|
default?: (props: {
|
|
9
10
|
close: () => void;
|
|
10
11
|
titleId: string;
|
|
12
|
+
tab?: TabItem['value'];
|
|
11
13
|
}) => unknown;
|
|
12
14
|
header?: (props: DialogSlotScope) => unknown;
|
|
13
15
|
title?: () => unknown;
|
|
@@ -34,7 +36,11 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
34
36
|
flush?: boolean;
|
|
35
37
|
loading?: boolean;
|
|
36
38
|
beforeClose?: DialogBeforeClose;
|
|
39
|
+
tabs?: TabItem[];
|
|
40
|
+
trail?: string[];
|
|
41
|
+
backLabel?: string;
|
|
37
42
|
open: boolean;
|
|
43
|
+
tab?: TabItem["value"];
|
|
38
44
|
key?: PropertyKey | undefined;
|
|
39
45
|
style?: import("vue").StyleValue;
|
|
40
46
|
results?: (string | number) | undefined;
|
|
@@ -234,7 +240,9 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
234
240
|
close: () => any;
|
|
235
241
|
open: () => any;
|
|
236
242
|
"update:open": (value: boolean) => any;
|
|
243
|
+
navigate: (index: number) => any;
|
|
237
244
|
afterLeave: () => any;
|
|
245
|
+
"update:tab": (value: string | number | undefined) => any;
|
|
238
246
|
}, string, import("vue").PublicProps, Readonly<{
|
|
239
247
|
prefix: "k-modal" | "k-drawer";
|
|
240
248
|
rootClass: unknown;
|
|
@@ -247,7 +255,11 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
247
255
|
flush?: boolean;
|
|
248
256
|
loading?: boolean;
|
|
249
257
|
beforeClose?: DialogBeforeClose;
|
|
258
|
+
tabs?: TabItem[];
|
|
259
|
+
trail?: string[];
|
|
260
|
+
backLabel?: string;
|
|
250
261
|
open: boolean;
|
|
262
|
+
tab?: TabItem["value"];
|
|
251
263
|
key?: PropertyKey | undefined;
|
|
252
264
|
style?: import("vue").StyleValue;
|
|
253
265
|
results?: (string | number) | undefined;
|
|
@@ -444,7 +456,9 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
444
456
|
onClose?: (() => any) | undefined;
|
|
445
457
|
onOpen?: (() => any) | undefined;
|
|
446
458
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
459
|
+
onNavigate?: ((index: number) => any) | undefined;
|
|
447
460
|
onAfterLeave?: (() => any) | undefined;
|
|
461
|
+
"onUpdate:tab"?: ((value: string | number | undefined) => any) | undefined;
|
|
448
462
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
449
463
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
450
464
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<template v-if="trail?.length">
|
|
3
|
+
<template v-for="(crumb, index) in trail" :key="index">
|
|
4
|
+
<button type="button" class="k-dialog-crumb" @click="emit('navigate', index)">
|
|
5
|
+
{{ crumb }}
|
|
6
|
+
</button>
|
|
7
|
+
<Icon name="chevron-right" class="k-dialog-crumb-separator" />
|
|
8
|
+
</template>
|
|
9
|
+
<span class="k-dialog-crumb is-current"><slot /></span>
|
|
10
|
+
</template>
|
|
11
|
+
<slot v-else />
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script setup>
|
|
15
|
+
import Icon from "../../components/core/Icon.vue";
|
|
16
|
+
defineProps({
|
|
17
|
+
trail: { type: Array, required: false }
|
|
18
|
+
});
|
|
19
|
+
const emit = defineEmits(["navigate"]);
|
|
20
|
+
</script>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
trail?: string[];
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_7: {}, __VLS_9: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_7) => any;
|
|
7
|
+
} & {
|
|
8
|
+
default?: (props: typeof __VLS_9) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
navigate: (index: number) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onNavigate?: ((index: number) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -5,6 +5,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
5
5
|
loading?: boolean;
|
|
6
6
|
prefix?: "k-modal" | "k-drawer" | undefined;
|
|
7
7
|
size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
8
|
+
tabs?: import("../../index.ts").TabItem[];
|
|
8
9
|
label?: string;
|
|
9
10
|
title?: string | undefined;
|
|
10
11
|
style?: import("vue").StyleValue;
|
|
@@ -209,13 +210,18 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
209
210
|
onVnodeBeforeUnmount?: (((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[]) | undefined;
|
|
210
211
|
onVnodeUnmounted?: (((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[]) | undefined;
|
|
211
212
|
sheet?: boolean;
|
|
213
|
+
tab?: import("../../index.ts").TabItem["value"];
|
|
212
214
|
onCancel?: ((payload: Event) => void) | undefined;
|
|
213
215
|
side?: import("../../index.ts").DrawerSide;
|
|
214
216
|
onOpen?: ((() => any) & (() => any)) | undefined;
|
|
215
217
|
closeLabel?: string;
|
|
218
|
+
trail?: string[];
|
|
219
|
+
onNavigate?: (((index: number) => any) & ((index: number) => any)) | undefined;
|
|
216
220
|
rootClass?: unknown;
|
|
217
221
|
hideClose?: boolean;
|
|
218
222
|
beforeClose?: import("../../index.ts").DialogBeforeClose;
|
|
223
|
+
backLabel?: string;
|
|
224
|
+
"onUpdate:tab"?: (((value: string | number | undefined) => any) & ((value: string | number | undefined) => any)) | undefined;
|
|
219
225
|
closedby?: import("../../index.ts").DialogClosedBy;
|
|
220
226
|
minHeight?: string;
|
|
221
227
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -228,6 +234,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
228
234
|
loading?: boolean;
|
|
229
235
|
prefix?: "k-modal" | "k-drawer" | undefined;
|
|
230
236
|
size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
237
|
+
tabs?: import("../../index.ts").TabItem[];
|
|
231
238
|
label?: string;
|
|
232
239
|
title?: string | undefined;
|
|
233
240
|
style?: import("vue").StyleValue;
|
|
@@ -432,13 +439,18 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
432
439
|
onVnodeBeforeUnmount?: (((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[]) | undefined;
|
|
433
440
|
onVnodeUnmounted?: (((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[]) | undefined;
|
|
434
441
|
sheet?: boolean;
|
|
442
|
+
tab?: import("../../index.ts").TabItem["value"];
|
|
435
443
|
onCancel?: ((payload: Event) => void) | undefined;
|
|
436
444
|
side?: import("../../index.ts").DrawerSide;
|
|
437
445
|
onOpen?: ((() => any) & (() => any)) | undefined;
|
|
438
446
|
closeLabel?: string;
|
|
447
|
+
trail?: string[];
|
|
448
|
+
onNavigate?: (((index: number) => any) & ((index: number) => any)) | undefined;
|
|
439
449
|
rootClass?: unknown;
|
|
440
450
|
hideClose?: boolean;
|
|
441
451
|
beforeClose?: import("../../index.ts").DialogBeforeClose;
|
|
452
|
+
backLabel?: string;
|
|
453
|
+
"onUpdate:tab"?: (((value: string | number | undefined) => any) & ((value: string | number | undefined) => any)) | undefined;
|
|
442
454
|
closedby?: import("../../index.ts").DialogClosedBy;
|
|
443
455
|
minHeight?: string;
|
|
444
456
|
}> & Readonly<{
|
package/dist/locale/de.mjs
CHANGED
|
@@ -28,7 +28,9 @@ export const de = {
|
|
|
28
28
|
opensInNewTab: "(\xF6ffnet in einem neuen Tab)",
|
|
29
29
|
copyFailed: "Kopieren fehlgeschlagen",
|
|
30
30
|
readonly: "Schreibgesch\xFCtzt",
|
|
31
|
-
empty: "Leer"
|
|
31
|
+
empty: "Leer",
|
|
32
|
+
create: "Erstellen",
|
|
33
|
+
delete: "L\xF6schen"
|
|
32
34
|
},
|
|
33
35
|
form: {
|
|
34
36
|
required: "Dieses Feld ist erforderlich",
|
|
@@ -211,6 +213,9 @@ export const de = {
|
|
|
211
213
|
confirm: "\xC4nderungen verwerfen",
|
|
212
214
|
cancel: "Weiter bearbeiten"
|
|
213
215
|
},
|
|
216
|
+
formDrawer: {
|
|
217
|
+
discardDescription: "Die \xC4nderungen an diesem Element gehen verloren."
|
|
218
|
+
},
|
|
214
219
|
emptyPage: {
|
|
215
220
|
title: "Willkommen",
|
|
216
221
|
steps: "Erste Schritte",
|
package/dist/locale/en.mjs
CHANGED
|
@@ -28,7 +28,9 @@ export const en = {
|
|
|
28
28
|
opensInNewTab: "(opens in a new tab)",
|
|
29
29
|
copyFailed: "Could not copy",
|
|
30
30
|
readonly: "Read only",
|
|
31
|
-
empty: "Empty"
|
|
31
|
+
empty: "Empty",
|
|
32
|
+
create: "Create",
|
|
33
|
+
delete: "Delete"
|
|
32
34
|
},
|
|
33
35
|
form: {
|
|
34
36
|
required: "This field is required",
|
|
@@ -211,6 +213,9 @@ export const en = {
|
|
|
211
213
|
confirm: "Discard changes",
|
|
212
214
|
cancel: "Keep editing"
|
|
213
215
|
},
|
|
216
|
+
formDrawer: {
|
|
217
|
+
discardDescription: "The changes to this item will be lost."
|
|
218
|
+
},
|
|
214
219
|
emptyPage: {
|
|
215
220
|
title: "Welcome aboard",
|
|
216
221
|
steps: "Getting started",
|
package/dist/locale/it.mjs
CHANGED
|
@@ -28,7 +28,9 @@ export const it = {
|
|
|
28
28
|
opensInNewTab: "(si apre in una nuova scheda)",
|
|
29
29
|
copyFailed: "Impossibile copiare",
|
|
30
30
|
readonly: "Sola lettura",
|
|
31
|
-
empty: "Vuoto"
|
|
31
|
+
empty: "Vuoto",
|
|
32
|
+
create: "Crea",
|
|
33
|
+
delete: "Elimina"
|
|
32
34
|
},
|
|
33
35
|
form: {
|
|
34
36
|
required: "Campo obbligatorio",
|
|
@@ -211,6 +213,9 @@ export const it = {
|
|
|
211
213
|
confirm: "Scarta modifiche",
|
|
212
214
|
cancel: "Continua a modificare"
|
|
213
215
|
},
|
|
216
|
+
formDrawer: {
|
|
217
|
+
discardDescription: "Le modifiche a questo elemento andranno perse."
|
|
218
|
+
},
|
|
214
219
|
emptyPage: {
|
|
215
220
|
title: "Benvenuto a bordo",
|
|
216
221
|
steps: "Per iniziare",
|
package/dist/locale/types.d.ts
CHANGED
|
@@ -27,6 +27,8 @@ export interface KMessages {
|
|
|
27
27
|
copyFailed: string;
|
|
28
28
|
readonly: string;
|
|
29
29
|
empty: string;
|
|
30
|
+
create: string;
|
|
31
|
+
delete: string;
|
|
30
32
|
};
|
|
31
33
|
form: {
|
|
32
34
|
required: string;
|
|
@@ -209,6 +211,9 @@ export interface KMessages {
|
|
|
209
211
|
confirm: string;
|
|
210
212
|
cancel: string;
|
|
211
213
|
};
|
|
214
|
+
formDrawer: {
|
|
215
|
+
discardDescription: string;
|
|
216
|
+
};
|
|
212
217
|
emptyPage: {
|
|
213
218
|
title: string;
|
|
214
219
|
steps: string;
|
|
@@ -66,3 +66,49 @@
|
|
|
66
66
|
display: none;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
+
|
|
70
|
+
.k-skeleton-form {
|
|
71
|
+
display: grid;
|
|
72
|
+
grid-template-columns: repeat(var(--k-skeleton-form-columns, 1), minmax(0, 1fr));
|
|
73
|
+
gap: 1rem;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.k-skeleton-form-field {
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
gap: 0.5rem;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.k-skeleton-form-control.k-skeleton-rect {
|
|
83
|
+
height: var(--k-size-md);
|
|
84
|
+
border-radius: var(--k-radius-md);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.k-skeleton-list {
|
|
88
|
+
display: flex;
|
|
89
|
+
flex-direction: column;
|
|
90
|
+
gap: 1rem;
|
|
91
|
+
margin: 0;
|
|
92
|
+
padding: 0;
|
|
93
|
+
list-style: none;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.k-skeleton-list-row {
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
gap: 0.75rem;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.k-skeleton-list-text {
|
|
103
|
+
display: flex;
|
|
104
|
+
flex: 1;
|
|
105
|
+
flex-direction: column;
|
|
106
|
+
gap: 0.375rem;
|
|
107
|
+
min-width: 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@media (max-width: 640px) {
|
|
111
|
+
.k-skeleton-form {
|
|
112
|
+
grid-template-columns: minmax(0, 1fr);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -191,6 +191,77 @@
|
|
|
191
191
|
letter-spacing: -0.015em;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
+
.k-modal-title.has-trail,
|
|
195
|
+
.k-drawer-title.has-trail {
|
|
196
|
+
display: flex;
|
|
197
|
+
flex-wrap: wrap;
|
|
198
|
+
align-items: center;
|
|
199
|
+
gap: 0.25rem;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.k-dialog-crumb {
|
|
203
|
+
padding: 0;
|
|
204
|
+
font: inherit;
|
|
205
|
+
letter-spacing: inherit;
|
|
206
|
+
color: var(--k-text-muted);
|
|
207
|
+
background: none;
|
|
208
|
+
border: 0;
|
|
209
|
+
border-radius: var(--k-radius-xs);
|
|
210
|
+
cursor: pointer;
|
|
211
|
+
transition: color var(--k-duration) var(--k-ease);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.k-dialog-crumb:hover {
|
|
215
|
+
color: var(--k-text);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.k-dialog-crumb:focus-visible {
|
|
219
|
+
outline: 2px solid var(--k-ring);
|
|
220
|
+
outline-offset: 2px;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.k-dialog-crumb.is-current {
|
|
224
|
+
color: var(--k-text);
|
|
225
|
+
cursor: default;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.k-dialog-crumb-separator {
|
|
229
|
+
--k-icon-size: 0.875rem;
|
|
230
|
+
color: var(--k-text-dimmed);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.k-modal-header.has-tabs,
|
|
234
|
+
.k-drawer-header.has-tabs {
|
|
235
|
+
flex-wrap: wrap;
|
|
236
|
+
row-gap: 0.5rem;
|
|
237
|
+
padding-bottom: 0;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.k-modal-tabs,
|
|
241
|
+
.k-drawer-tabs {
|
|
242
|
+
flex: 1 0 100%;
|
|
243
|
+
margin-inline: calc(-1 * var(--k-dialog-header-start)) calc(-1 * var(--k-dialog-header-end));
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
:is(.k-modal-tabs, .k-drawer-tabs) > .k-tabs-list {
|
|
247
|
+
padding-inline: calc(var(--k-dialog-header-start) - 0.5rem) var(--k-dialog-header-end);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.k-modal-header {
|
|
251
|
+
--k-dialog-header-start: 1.25rem;
|
|
252
|
+
--k-dialog-header-end: 1rem;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.k-drawer-header {
|
|
256
|
+
--k-dialog-header-start: 1.5rem;
|
|
257
|
+
--k-dialog-header-end: 0.75rem;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.k-modal-header.has-tabs + .k-modal-body,
|
|
261
|
+
.k-drawer-header.has-tabs + .k-drawer-body {
|
|
262
|
+
border-top: 0;
|
|
263
|
+
}
|
|
264
|
+
|
|
194
265
|
.k-modal-description,
|
|
195
266
|
.k-drawer-description {
|
|
196
267
|
font-size: 0.8125rem;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@theme inline {
|
|
2
|
+
--color-canvas: var(--k-canvas);
|
|
3
|
+
--color-surface: var(--k-surface);
|
|
4
|
+
--color-elevated: var(--k-elevated);
|
|
5
|
+
--color-subtle: var(--k-subtle);
|
|
6
|
+
--color-fill: var(--k-fill);
|
|
7
|
+
--color-hover: var(--k-hover);
|
|
8
|
+
--color-press: var(--k-press);
|
|
9
|
+
--color-field: var(--k-field);
|
|
10
|
+
--color-field-line: var(--k-field-line);
|
|
11
|
+
--color-line: var(--k-line);
|
|
12
|
+
--color-line-strong: var(--k-line-strong);
|
|
13
|
+
--color-text: var(--k-text);
|
|
14
|
+
--color-text-toned: var(--k-text-toned);
|
|
15
|
+
--color-text-muted: var(--k-text-muted);
|
|
16
|
+
--color-text-dimmed: var(--k-text-dimmed);
|
|
17
|
+
--color-text-inverted: var(--k-text-inverted);
|
|
18
|
+
--color-accent: var(--k-accent);
|
|
19
|
+
--color-accent-hover: var(--k-accent-hover);
|
|
20
|
+
--color-accent-soft: var(--k-accent-soft);
|
|
21
|
+
--color-accent-line: var(--k-accent-line);
|
|
22
|
+
--color-accent-text: var(--k-accent-text);
|
|
23
|
+
--color-accent-contrast: var(--k-accent-contrast);
|
|
24
|
+
--color-success: var(--k-success);
|
|
25
|
+
--color-success-text: var(--k-success-text);
|
|
26
|
+
--color-warning: var(--k-warning);
|
|
27
|
+
--color-warning-text: var(--k-warning-text);
|
|
28
|
+
--color-danger: var(--k-danger);
|
|
29
|
+
--color-danger-text: var(--k-danger-text);
|
|
30
|
+
--color-info: var(--k-info);
|
|
31
|
+
--color-info-text: var(--k-info-text);
|
|
32
|
+
--color-ring: var(--k-ring);
|
|
33
|
+
--color-highlight: var(--k-highlight);
|
|
34
|
+
--color-selection: var(--k-selection);
|
|
35
|
+
--radius-xs: var(--k-radius-xs);
|
|
36
|
+
--radius-sm: var(--k-radius-sm);
|
|
37
|
+
--radius-md: var(--k-radius-md);
|
|
38
|
+
--radius-lg: var(--k-radius-lg);
|
|
39
|
+
--radius-xl: var(--k-radius-xl);
|
|
40
|
+
--shadow-xs: var(--k-shadow-xs);
|
|
41
|
+
--shadow-sm: var(--k-shadow-sm);
|
|
42
|
+
--shadow-raised: var(--k-shadow-raised);
|
|
43
|
+
--shadow-overlay: var(--k-shadow-overlay);
|
|
44
|
+
--font-sans: var(--k-font-sans);
|
|
45
|
+
--font-mono: var(--k-font-mono);
|
|
46
|
+
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
@import './templates/detail-page.css';
|
|
8
8
|
@import './templates/settings-page.css';
|
|
9
9
|
@import './templates/form-page.css';
|
|
10
|
+
@import './templates/form-drawer.css';
|
|
10
11
|
@import './templates/dashboard-page.css';
|
|
11
12
|
@import './templates/save-bar.css';
|
|
12
13
|
@import './templates/error-page.css';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xleddyl/443-components-vue",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.11",
|
|
4
4
|
"description": "Compact, scoped dashboard components for Vue and Nuxt",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Edoardo Alberti (https://github.com/xleddyl)",
|
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
},
|
|
42
42
|
"./grid/style.css": "./dist/grid/style.css",
|
|
43
43
|
"./editor/style.css": "./dist/editor/style.css",
|
|
44
|
-
"./chart/style.css": "./dist/chart/style.css"
|
|
44
|
+
"./chart/style.css": "./dist/chart/style.css",
|
|
45
|
+
"./tailwind.css": "./dist/styles/tailwind.css"
|
|
45
46
|
},
|
|
46
47
|
"publishConfig": {
|
|
47
48
|
"access": "public"
|