@xleddyl/443-components-vue 0.16.92 → 0.16.94
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 +10 -5
- package/README.md +45 -25
- package/dist/components/core/Button.vue.d.ts +3 -3
- package/dist/components/data/SelectionBar.vue +24 -4
- package/dist/components/data/SelectionBar.vue.d.ts +2 -2
- package/dist/components/data/Thumbnail.vue +157 -0
- package/dist/components/data/Thumbnail.vue.d.ts +439 -0
- package/dist/components/data/index.d.ts +1 -0
- package/dist/components/data/index.mjs +1 -0
- package/dist/components/data/types.d.ts +9 -0
- package/dist/components/forms/FocalPointInput.vue +251 -0
- package/dist/components/forms/FocalPointInput.vue.d.ts +426 -0
- package/dist/components/forms/PaletteSelect.vue.d.ts +2 -2
- package/dist/components/forms/index.d.ts +1 -0
- package/dist/components/forms/index.mjs +1 -0
- package/dist/components/layout/ThemeSwitch.vue.d.ts +2 -2
- package/dist/components/layout/types.d.ts +1 -1
- package/dist/components/templates/FormPage.vue.d.ts +2 -2
- package/dist/components/templates/ListPage.vue +54 -6
- package/dist/components/templates/ListPage.vue.d.ts +7 -1
- package/dist/grid/cells/ButtonCell.vue.d.ts +2 -2
- package/dist/icons/builtin.d.ts +2 -0
- package/dist/icons/builtin.mjs +6 -0
- package/dist/locale/de.mjs +11 -0
- package/dist/locale/en.mjs +11 -0
- package/dist/locale/it.mjs +11 -0
- package/dist/locale/types.d.ts +11 -0
- package/dist/styles/data/thumbnail.css +209 -0
- package/dist/styles/data.css +1 -0
- package/dist/styles/forced-colors.css +12 -0
- package/dist/styles/forms/focal-point-input.css +154 -0
- package/dist/styles/forms.css +1 -0
- package/dist/styles/layout/card.css +84 -0
- package/dist/styles/tailwind.css +2 -0
- package/dist/styles/templates/list-page.css +38 -0
- package/dist/styles/tokens.css +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="k-page k-list-page">
|
|
2
|
+
<div class="k-page k-list-page" :class="{ 'is-fill': fill }">
|
|
3
3
|
<PageHeader
|
|
4
4
|
:title="title"
|
|
5
5
|
:description="description"
|
|
@@ -7,6 +7,11 @@
|
|
|
7
7
|
:breadcrumbs="breadcrumbs"
|
|
8
8
|
:level="level"
|
|
9
9
|
>
|
|
10
|
+
<template v-if="$slots.badge || countValue !== void 0" #badge>
|
|
11
|
+
<slot name="badge" :total="resultTotal">
|
|
12
|
+
<Badge v-if="countValue !== void 0">{{ countText }}</Badge>
|
|
13
|
+
</slot>
|
|
14
|
+
</template>
|
|
10
15
|
<template v-if="$slots.actions" #actions><slot name="actions" /></template>
|
|
11
16
|
</PageHeader>
|
|
12
17
|
|
|
@@ -20,6 +25,7 @@
|
|
|
20
25
|
:title="errorText"
|
|
21
26
|
:description="typeof error === 'string' ? error : void 0"
|
|
22
27
|
:level="childLevel"
|
|
28
|
+
:fill="fill"
|
|
23
29
|
>
|
|
24
30
|
<template #actions>
|
|
25
31
|
<Button
|
|
@@ -42,6 +48,7 @@
|
|
|
42
48
|
:title="emptyTitleText"
|
|
43
49
|
:description="emptyDescription"
|
|
44
50
|
:level="childLevel"
|
|
51
|
+
:fill="fill"
|
|
45
52
|
>
|
|
46
53
|
<template v-if="$slots['empty-actions']" #actions>
|
|
47
54
|
<slot name="empty-actions" />
|
|
@@ -80,7 +87,9 @@
|
|
|
80
87
|
v-if="selectable"
|
|
81
88
|
class="k-list-selection"
|
|
82
89
|
:count="selected.length"
|
|
83
|
-
:
|
|
90
|
+
:total="resultTotal"
|
|
91
|
+
:selected-text="selectedText"
|
|
92
|
+
:on-select-all="canSelectAll ? selectAll : void 0"
|
|
84
93
|
:on-clear="clearSelection"
|
|
85
94
|
>
|
|
86
95
|
<template v-if="$slots.bulk" #actions>
|
|
@@ -91,7 +100,10 @@
|
|
|
91
100
|
</div>
|
|
92
101
|
</div>
|
|
93
102
|
|
|
94
|
-
<
|
|
103
|
+
<div v-if="fill && $slots.table" class="k-list-scroll">
|
|
104
|
+
<slot name="table" :rows="visibleRows" :loading="loading" />
|
|
105
|
+
</div>
|
|
106
|
+
<slot v-else name="table" :rows="visibleRows" :loading="loading">
|
|
95
107
|
<Table
|
|
96
108
|
v-model:sort="sort"
|
|
97
109
|
v-model:selected="selected"
|
|
@@ -165,7 +177,9 @@ import { useLocale } from "../../composables/useLocale";
|
|
|
165
177
|
import Button from "../core/Button.vue";
|
|
166
178
|
import { createCollator, readCell, sortRows } from "../../internal/data/rows";
|
|
167
179
|
import { normalizeSearch } from "../../internal/core/text";
|
|
180
|
+
import { numberFormat } from "../../internal/core/intl";
|
|
168
181
|
import Input from "../core/Input.vue";
|
|
182
|
+
import Badge from "../data/Badge.vue";
|
|
169
183
|
import FilterPills from "../data/FilterPills.vue";
|
|
170
184
|
import Pagination from "../data/Pagination.vue";
|
|
171
185
|
import SelectionBar from "../data/SelectionBar.vue";
|
|
@@ -180,6 +194,7 @@ const props = defineProps({
|
|
|
180
194
|
icon: { type: null, required: false },
|
|
181
195
|
breadcrumbs: { type: Array, required: false },
|
|
182
196
|
level: { type: Number, required: false, default: 1 },
|
|
197
|
+
count: { type: [Number, Boolean], required: false },
|
|
183
198
|
rows: { type: Array, required: false, default: () => [] },
|
|
184
199
|
columns: { type: Array, required: false },
|
|
185
200
|
rowKey: { type: [String, Function], required: false, default: "id" },
|
|
@@ -189,6 +204,7 @@ const props = defineProps({
|
|
|
189
204
|
selectable: { type: Boolean, required: false },
|
|
190
205
|
density: { type: String, required: false, default: "normal" },
|
|
191
206
|
stickyHeader: { type: Boolean, required: false, default: true },
|
|
207
|
+
fill: { type: Boolean, required: false },
|
|
192
208
|
loading: { type: Boolean, required: false },
|
|
193
209
|
error: { type: [String, Boolean], required: false },
|
|
194
210
|
total: { type: Number, required: false },
|
|
@@ -212,6 +228,7 @@ const props = defineProps({
|
|
|
212
228
|
clearLabel: { type: String, required: false },
|
|
213
229
|
errorTitle: { type: String, required: false },
|
|
214
230
|
retryLabel: { type: String, required: false },
|
|
231
|
+
allIds: { type: Function, required: false },
|
|
215
232
|
selectedText: { type: Function, required: false },
|
|
216
233
|
resultsText: { type: Function, required: false }
|
|
217
234
|
});
|
|
@@ -228,9 +245,6 @@ const clearText = computed(() => props.clearLabel ?? t("listPage.clearFilters"))
|
|
|
228
245
|
const errorText = computed(() => props.errorTitle ?? t("common.somethingWentWrong"));
|
|
229
246
|
const retryText = computed(() => props.retryLabel ?? t("common.retry"));
|
|
230
247
|
const childLevel = computed(() => Math.min(props.level + 1, 6));
|
|
231
|
-
function selectedLabel(count) {
|
|
232
|
-
return props.selectedText ? props.selectedText(count) : t("common.selected", { count });
|
|
233
|
-
}
|
|
234
248
|
const emit = defineEmits(["retry", "clear", "rowClick"]);
|
|
235
249
|
defineSlots();
|
|
236
250
|
const page = defineModel("page", { type: Number, ...{ default: 1 } });
|
|
@@ -298,6 +312,31 @@ const visibleRows = computed(() => {
|
|
|
298
312
|
const start = (page.value - 1) * pageSize.value;
|
|
299
313
|
return sorted.value.slice(start, start + pageSize.value);
|
|
300
314
|
});
|
|
315
|
+
function keyOf(row, index) {
|
|
316
|
+
if (typeof props.rowKey === "function") return props.rowKey(row, index);
|
|
317
|
+
const value = row[props.rowKey];
|
|
318
|
+
return typeof value === "string" || typeof value === "number" ? value : index;
|
|
319
|
+
}
|
|
320
|
+
const pageFullySelected = computed(() => {
|
|
321
|
+
if (!visibleRows.value.length) return false;
|
|
322
|
+
const keys = new Set(selected.value);
|
|
323
|
+
return visibleRows.value.every((row, index) => keys.has(keyOf(row, index)));
|
|
324
|
+
});
|
|
325
|
+
const canSelectAll = computed(
|
|
326
|
+
() => !props.loading && (!serverMode.value || Boolean(props.allIds)) && resultTotal.value > visibleRows.value.length && pageFullySelected.value
|
|
327
|
+
);
|
|
328
|
+
async function selectAll() {
|
|
329
|
+
if (!serverMode.value) {
|
|
330
|
+
selected.value = sorted.value.map((row, index) => keyOf(row, index));
|
|
331
|
+
return;
|
|
332
|
+
}
|
|
333
|
+
if (!props.allIds) return;
|
|
334
|
+
try {
|
|
335
|
+
selected.value = [...await props.allIds()];
|
|
336
|
+
} catch (reason) {
|
|
337
|
+
console.error("[@xleddyl/443-components-vue] ListPage allIds failed", reason);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
301
340
|
const isFirstRun = computed(
|
|
302
341
|
() => !props.loading && !isFiltered.value && props.rows.length === 0 && (!serverMode.value || props.total === 0)
|
|
303
342
|
);
|
|
@@ -306,6 +345,15 @@ function clearFilters() {
|
|
|
306
345
|
filter.value = Array.isArray(filter.value) ? [] : null;
|
|
307
346
|
emit("clear");
|
|
308
347
|
}
|
|
348
|
+
const countValue = computed(() => {
|
|
349
|
+
if (typeof props.count === "number") return props.count;
|
|
350
|
+
if (!props.count || props.error || isFirstRun.value) return void 0;
|
|
351
|
+
if (props.loading && !props.rows.length) return void 0;
|
|
352
|
+
return serverMode.value ? props.total ?? 0 : props.rows.length;
|
|
353
|
+
});
|
|
354
|
+
const countText = computed(
|
|
355
|
+
() => countValue.value === void 0 ? "" : numberFormat(locale.value.code).format(countValue.value)
|
|
356
|
+
);
|
|
309
357
|
const interacted = ref(false);
|
|
310
358
|
watch([search, filterValues, () => props.filtered], () => {
|
|
311
359
|
interacted.value = true;
|
|
@@ -9,6 +9,7 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
|
|
|
9
9
|
icon?: IconName;
|
|
10
10
|
breadcrumbs?: BreadcrumbItem[];
|
|
11
11
|
level?: HeadingLevel;
|
|
12
|
+
count?: number | boolean;
|
|
12
13
|
rows?: T[];
|
|
13
14
|
columns?: TableColumn<T>[];
|
|
14
15
|
rowKey?: string | ((row: T, index: number) => RowKey);
|
|
@@ -18,6 +19,7 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
|
|
|
18
19
|
selectable?: boolean;
|
|
19
20
|
density?: TableDensity;
|
|
20
21
|
stickyHeader?: boolean;
|
|
22
|
+
fill?: boolean;
|
|
21
23
|
loading?: boolean;
|
|
22
24
|
error?: string | boolean;
|
|
23
25
|
total?: number;
|
|
@@ -41,7 +43,8 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
|
|
|
41
43
|
clearLabel?: string;
|
|
42
44
|
errorTitle?: string;
|
|
43
45
|
retryLabel?: string;
|
|
44
|
-
|
|
46
|
+
allIds?: () => Promise<readonly RowKey[]> | readonly RowKey[];
|
|
47
|
+
selectedText?: (count: number, total?: number) => string;
|
|
45
48
|
resultsText?: (count: number) => string;
|
|
46
49
|
} & {
|
|
47
50
|
page?: number;
|
|
@@ -79,6 +82,9 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
|
|
|
79
82
|
} & {
|
|
80
83
|
default?: () => unknown;
|
|
81
84
|
actions?: () => unknown;
|
|
85
|
+
badge?: (props: {
|
|
86
|
+
total: number;
|
|
87
|
+
}) => unknown;
|
|
82
88
|
before?: () => unknown;
|
|
83
89
|
toolbar?: () => unknown;
|
|
84
90
|
'toolbar-end'?: () => unknown;
|
|
@@ -2,7 +2,7 @@ import type { ButtonCellParams, GridCellContext } from '../types';
|
|
|
2
2
|
declare const __VLS_export: import("vue").DefineComponent<{
|
|
3
3
|
params: import("ag-grid-community").ICellRendererParams<any, any, any> & ButtonCellParams<unknown>;
|
|
4
4
|
label?: string;
|
|
5
|
-
type?: "
|
|
5
|
+
type?: "reset" | "submit" | "button" | undefined;
|
|
6
6
|
size?: import("../../index.ts").ButtonSize;
|
|
7
7
|
tone?: import("../../index.ts").Tone;
|
|
8
8
|
variant?: import("../../index.ts").ButtonVariant;
|
|
@@ -237,7 +237,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
237
237
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
238
238
|
params: import("ag-grid-community").ICellRendererParams<any, any, any> & ButtonCellParams<unknown>;
|
|
239
239
|
label?: string;
|
|
240
|
-
type?: "
|
|
240
|
+
type?: "reset" | "submit" | "button" | undefined;
|
|
241
241
|
size?: import("../../index.ts").ButtonSize;
|
|
242
242
|
tone?: import("../../index.ts").Tone;
|
|
243
243
|
variant?: import("../../index.ts").ButtonVariant;
|
package/dist/icons/builtin.d.ts
CHANGED
|
@@ -41,6 +41,8 @@ export declare const builtinIcons: {
|
|
|
41
41
|
readonly user: readonly ["M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"];
|
|
42
42
|
readonly clock: readonly ["M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"];
|
|
43
43
|
readonly photo: readonly ["m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"];
|
|
44
|
+
readonly 'video-camera': readonly ["m15.75 10.5 4.72-4.72a.75.75 0 0 1 1.28.53v11.38a.75.75 0 0 1-1.28.53l-4.72-4.72M4.5 18.75h9a2.25 2.25 0 0 0 2.25-2.25v-9a2.25 2.25 0 0 0-2.25-2.25h-9A2.25 2.25 0 0 0 2.25 7.5v9a2.25 2.25 0 0 0 2.25 2.25Z"];
|
|
45
|
+
readonly play: readonly ["M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 0 1 0 1.972l-11.54 6.347a1.125 1.125 0 0 1-1.667-.986V5.653Z"];
|
|
44
46
|
readonly home: readonly ["m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"];
|
|
45
47
|
readonly bell: readonly ["M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"];
|
|
46
48
|
readonly 'arrow-up': readonly ["M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"];
|
package/dist/icons/builtin.mjs
CHANGED
|
@@ -87,6 +87,12 @@ export const builtinIcons = {
|
|
|
87
87
|
photo: [
|
|
88
88
|
"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"
|
|
89
89
|
],
|
|
90
|
+
"video-camera": [
|
|
91
|
+
"m15.75 10.5 4.72-4.72a.75.75 0 0 1 1.28.53v11.38a.75.75 0 0 1-1.28.53l-4.72-4.72M4.5 18.75h9a2.25 2.25 0 0 0 2.25-2.25v-9a2.25 2.25 0 0 0-2.25-2.25h-9A2.25 2.25 0 0 0 2.25 7.5v9a2.25 2.25 0 0 0 2.25 2.25Z"
|
|
92
|
+
],
|
|
93
|
+
play: [
|
|
94
|
+
"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 0 1 0 1.972l-11.54 6.347a1.125 1.125 0 0 1-1.667-.986V5.653Z"
|
|
95
|
+
],
|
|
90
96
|
home: [
|
|
91
97
|
"m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"
|
|
92
98
|
],
|
package/dist/locale/de.mjs
CHANGED
|
@@ -169,6 +169,9 @@ export const de = {
|
|
|
169
169
|
avatarGroup: {
|
|
170
170
|
more: "{count} weitere"
|
|
171
171
|
},
|
|
172
|
+
thumbnail: {
|
|
173
|
+
missing: "Datei nicht verf\xFCgbar"
|
|
174
|
+
},
|
|
172
175
|
breadcrumbs: {
|
|
173
176
|
label: "Brotkrumennavigation",
|
|
174
177
|
collapsed: "Ausgeblendete Seiten anzeigen"
|
|
@@ -294,6 +297,14 @@ export const de = {
|
|
|
294
297
|
added: "{count} Datei hinzugef\xFCgt | {count} Dateien hinzugef\xFCgt",
|
|
295
298
|
rejected: "{count} Datei wurde nicht akzeptiert | {count} Dateien wurden nicht akzeptiert"
|
|
296
299
|
},
|
|
300
|
+
focalPoint: {
|
|
301
|
+
horizontal: "Horizontale Position",
|
|
302
|
+
vertical: "Vertikale Position",
|
|
303
|
+
empty: "Nicht festgelegt",
|
|
304
|
+
reset: "Zur\xFCcksetzen",
|
|
305
|
+
value: "X {x}, Y {y}",
|
|
306
|
+
hint: "Auf das Bild klicken oder ziehen, oder die Pfeiltasten verwenden. Umschalt gedr\xFCckt halten f\xFCr gr\xF6\xDFere Schritte."
|
|
307
|
+
},
|
|
297
308
|
filterPills: {
|
|
298
309
|
label: "Filter",
|
|
299
310
|
remove: "{label} entfernen"
|
package/dist/locale/en.mjs
CHANGED
|
@@ -169,6 +169,9 @@ export const en = {
|
|
|
169
169
|
avatarGroup: {
|
|
170
170
|
more: "{count} more"
|
|
171
171
|
},
|
|
172
|
+
thumbnail: {
|
|
173
|
+
missing: "File not available"
|
|
174
|
+
},
|
|
172
175
|
breadcrumbs: {
|
|
173
176
|
label: "Breadcrumb",
|
|
174
177
|
collapsed: "Show hidden pages"
|
|
@@ -294,6 +297,14 @@ export const en = {
|
|
|
294
297
|
added: "{count} file added | {count} files added",
|
|
295
298
|
rejected: "{count} file was not accepted | {count} files were not accepted"
|
|
296
299
|
},
|
|
300
|
+
focalPoint: {
|
|
301
|
+
horizontal: "Horizontal position",
|
|
302
|
+
vertical: "Vertical position",
|
|
303
|
+
empty: "Not set",
|
|
304
|
+
reset: "Reset",
|
|
305
|
+
value: "X {x}, Y {y}",
|
|
306
|
+
hint: "Click or drag on the image, or use the arrow keys. Hold Shift for bigger steps."
|
|
307
|
+
},
|
|
297
308
|
filterPills: {
|
|
298
309
|
label: "Filters",
|
|
299
310
|
remove: "Remove {label}"
|
package/dist/locale/it.mjs
CHANGED
|
@@ -169,6 +169,9 @@ export const it = {
|
|
|
169
169
|
avatarGroup: {
|
|
170
170
|
more: "altri {count}"
|
|
171
171
|
},
|
|
172
|
+
thumbnail: {
|
|
173
|
+
missing: "File non disponibile"
|
|
174
|
+
},
|
|
172
175
|
breadcrumbs: {
|
|
173
176
|
label: "Percorso",
|
|
174
177
|
collapsed: "Mostra le pagine nascoste"
|
|
@@ -294,6 +297,14 @@ export const it = {
|
|
|
294
297
|
added: "{count} file aggiunto | {count} file aggiunti",
|
|
295
298
|
rejected: "{count} file non accettato | {count} file non accettati"
|
|
296
299
|
},
|
|
300
|
+
focalPoint: {
|
|
301
|
+
horizontal: "Posizione orizzontale",
|
|
302
|
+
vertical: "Posizione verticale",
|
|
303
|
+
empty: "Non impostato",
|
|
304
|
+
reset: "Reimposta",
|
|
305
|
+
value: "X {x}, Y {y}",
|
|
306
|
+
hint: "Fai clic o trascina sull'immagine, oppure usa i tasti freccia. Tieni premuto Maiusc per passi pi\xF9 grandi."
|
|
307
|
+
},
|
|
297
308
|
filterPills: {
|
|
298
309
|
label: "Filtri",
|
|
299
310
|
remove: "Rimuovi {label}"
|
package/dist/locale/types.d.ts
CHANGED
|
@@ -168,6 +168,9 @@ export interface KMessages {
|
|
|
168
168
|
avatarGroup: {
|
|
169
169
|
more: string;
|
|
170
170
|
};
|
|
171
|
+
thumbnail: {
|
|
172
|
+
missing: string;
|
|
173
|
+
};
|
|
171
174
|
breadcrumbs: {
|
|
172
175
|
label: string;
|
|
173
176
|
collapsed: string;
|
|
@@ -281,6 +284,14 @@ export interface KMessages {
|
|
|
281
284
|
added: string;
|
|
282
285
|
rejected: string;
|
|
283
286
|
};
|
|
287
|
+
focalPoint: {
|
|
288
|
+
horizontal: string;
|
|
289
|
+
vertical: string;
|
|
290
|
+
empty: string;
|
|
291
|
+
reset: string;
|
|
292
|
+
value: string;
|
|
293
|
+
hint: string;
|
|
294
|
+
};
|
|
284
295
|
filterPills: {
|
|
285
296
|
label: string;
|
|
286
297
|
remove: string;
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
.k-thumbnail {
|
|
2
|
+
--k-thumbnail-size: 100%;
|
|
3
|
+
--k-icon-size: 1.75rem;
|
|
4
|
+
position: relative;
|
|
5
|
+
display: grid;
|
|
6
|
+
flex-shrink: 0;
|
|
7
|
+
place-items: center;
|
|
8
|
+
width: var(--k-thumbnail-size);
|
|
9
|
+
aspect-ratio: var(--k-thumbnail-aspect, 1);
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
isolation: isolate;
|
|
12
|
+
border-radius: var(--k-thumbnail-radius);
|
|
13
|
+
background: var(--k-subtle);
|
|
14
|
+
color: var(--k-text-dimmed);
|
|
15
|
+
vertical-align: middle;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.k-thumbnail:not(.k-thumbnail-fluid) {
|
|
19
|
+
display: inline-grid;
|
|
20
|
+
box-shadow: inset 0 0 0 1px var(--k-line);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.k-thumbnail-xs {
|
|
24
|
+
--k-thumbnail-size: 1.5rem;
|
|
25
|
+
--k-icon-size: 0.875rem;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.k-thumbnail-sm {
|
|
29
|
+
--k-thumbnail-size: 2rem;
|
|
30
|
+
--k-icon-size: 1rem;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.k-thumbnail-md {
|
|
34
|
+
--k-thumbnail-size: 3rem;
|
|
35
|
+
--k-icon-size: 1.25rem;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.k-thumbnail-lg {
|
|
39
|
+
--k-thumbnail-size: 4.5rem;
|
|
40
|
+
--k-icon-size: 1.5rem;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.k-thumbnail-rounded-none {
|
|
44
|
+
--k-thumbnail-radius: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.k-thumbnail-rounded-sm {
|
|
48
|
+
--k-thumbnail-radius: var(--k-radius-sm);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.k-thumbnail-rounded-md {
|
|
52
|
+
--k-thumbnail-radius: var(--k-radius-md);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.k-thumbnail-rounded-lg {
|
|
56
|
+
--k-thumbnail-radius: var(--k-radius-lg);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.k-thumbnail-rounded-full {
|
|
60
|
+
--k-thumbnail-radius: var(--k-radius-full);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.k-thumbnail.is-loading::before {
|
|
64
|
+
content: '';
|
|
65
|
+
position: absolute;
|
|
66
|
+
inset: 0;
|
|
67
|
+
background: var(--k-fill);
|
|
68
|
+
animation: k-pulse 1.5s ease-in-out infinite;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.k-thumbnail-frame,
|
|
72
|
+
.k-thumbnail-content {
|
|
73
|
+
display: grid;
|
|
74
|
+
place-items: center;
|
|
75
|
+
width: 100%;
|
|
76
|
+
height: 100%;
|
|
77
|
+
min-width: 0;
|
|
78
|
+
min-height: 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.k-thumbnail-frame {
|
|
82
|
+
position: absolute;
|
|
83
|
+
inset: 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.k-thumbnail-media {
|
|
87
|
+
position: absolute;
|
|
88
|
+
inset: 0;
|
|
89
|
+
width: 100%;
|
|
90
|
+
height: 100%;
|
|
91
|
+
object-fit: cover;
|
|
92
|
+
opacity: 0;
|
|
93
|
+
transition: opacity var(--k-duration-lg) var(--k-ease);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.k-thumbnail-media.is-loaded {
|
|
97
|
+
opacity: 1;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.k-thumbnail-contain .k-thumbnail-media {
|
|
101
|
+
object-fit: contain;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.k-thumbnail-play {
|
|
105
|
+
--k-icon-size: 45%;
|
|
106
|
+
position: relative;
|
|
107
|
+
display: grid;
|
|
108
|
+
place-items: center;
|
|
109
|
+
width: clamp(1rem, 36%, 2.75rem);
|
|
110
|
+
aspect-ratio: 1;
|
|
111
|
+
border-radius: var(--k-radius-full);
|
|
112
|
+
background: var(--k-media-scrim);
|
|
113
|
+
color: var(--k-media-text);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.k-thumbnail-play > .k-icon {
|
|
117
|
+
translate: 8% 0;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.k-thumbnail-xs .k-thumbnail-play,
|
|
121
|
+
.k-thumbnail-sm .k-thumbnail-play {
|
|
122
|
+
width: 70%;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.k-thumbnail.is-missing {
|
|
126
|
+
background:
|
|
127
|
+
repeating-linear-gradient(135deg, var(--k-hover) 0 0.375rem, transparent 0.375rem 0.75rem),
|
|
128
|
+
var(--k-subtle);
|
|
129
|
+
box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--k-warning) 55%, transparent);
|
|
130
|
+
color: var(--k-warning);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.k-thumbnail-overlay {
|
|
134
|
+
position: absolute;
|
|
135
|
+
z-index: 1;
|
|
136
|
+
display: flex;
|
|
137
|
+
align-items: center;
|
|
138
|
+
gap: 0.25rem;
|
|
139
|
+
transition: opacity var(--k-duration) var(--k-ease);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.k-thumbnail-top-start,
|
|
143
|
+
.k-thumbnail-top-end {
|
|
144
|
+
--k-icon-size: 1rem;
|
|
145
|
+
top: 0.375rem;
|
|
146
|
+
color: var(--k-media-text);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.k-thumbnail-top-start {
|
|
150
|
+
inset-inline-start: 0.375rem;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.k-thumbnail-top-end {
|
|
154
|
+
inset-inline-end: 0.375rem;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.k-thumbnail-top-start > .k-icon,
|
|
158
|
+
.k-thumbnail-top-end > .k-icon {
|
|
159
|
+
filter: drop-shadow(0 1px 2px var(--k-media-scrim));
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.k-thumbnail:not(.has-media) :is(.k-thumbnail-top-start, .k-thumbnail-top-end) {
|
|
163
|
+
color: var(--k-text-muted);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.k-thumbnail:not(.has-media) :is(.k-thumbnail-top-start, .k-thumbnail-top-end) > .k-icon {
|
|
167
|
+
filter: none;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.k-thumbnail-caption {
|
|
171
|
+
inset-inline: 0;
|
|
172
|
+
bottom: 0;
|
|
173
|
+
padding: 1.5rem 0.5rem 0.375rem;
|
|
174
|
+
background: linear-gradient(to top, var(--k-media-scrim) 40%, transparent);
|
|
175
|
+
color: var(--k-media-text);
|
|
176
|
+
font-size: 0.75rem;
|
|
177
|
+
font-weight: var(--k-font-weight-medium, 500);
|
|
178
|
+
line-height: 1.3;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.k-thumbnail:not(.has-media) .k-thumbnail-caption {
|
|
182
|
+
padding-top: 0.375rem;
|
|
183
|
+
background: none;
|
|
184
|
+
color: var(--k-text-muted);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.k-thumbnail-caption-text {
|
|
188
|
+
min-width: 0;
|
|
189
|
+
overflow: hidden;
|
|
190
|
+
text-overflow: ellipsis;
|
|
191
|
+
white-space: nowrap;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.k-thumbnail-overlay.is-reveal {
|
|
195
|
+
opacity: 0;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.k-thumbnail:is(:hover, :focus-within) .k-thumbnail-overlay.is-reveal,
|
|
199
|
+
.k-root
|
|
200
|
+
:is(a, button, label, [tabindex]):is(:hover, :focus-visible)
|
|
201
|
+
.k-thumbnail-overlay.is-reveal {
|
|
202
|
+
opacity: 1;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
@media (hover: none) {
|
|
206
|
+
.k-thumbnail-overlay.is-reveal {
|
|
207
|
+
opacity: 1;
|
|
208
|
+
}
|
|
209
|
+
}
|
package/dist/styles/data.css
CHANGED
|
@@ -235,4 +235,16 @@
|
|
|
235
235
|
forced-color-adjust: none;
|
|
236
236
|
background: Highlight;
|
|
237
237
|
}
|
|
238
|
+
|
|
239
|
+
:is(.k-thumbnail-caption, .k-thumbnail-play) {
|
|
240
|
+
forced-color-adjust: none;
|
|
241
|
+
background: Canvas;
|
|
242
|
+
color: CanvasText;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.k-focal-point-input-marker {
|
|
246
|
+
forced-color-adjust: none;
|
|
247
|
+
border-color: Highlight;
|
|
248
|
+
background: Canvas;
|
|
249
|
+
}
|
|
238
250
|
}
|