@xleddyl/443-components-vue 0.16.93 → 0.16.95

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.
Files changed (46) hide show
  1. package/CATALOG.md +176 -166
  2. package/README.md +78 -14
  3. package/dist/components/core/Button.vue.d.ts +3 -3
  4. package/dist/components/data/SortableList.vue +120 -0
  5. package/dist/components/data/SortableList.vue.d.ts +48 -0
  6. package/dist/components/data/Table.vue +43 -3
  7. package/dist/components/data/Table.vue.d.ts +8 -2
  8. package/dist/components/data/Thumbnail.vue +157 -0
  9. package/dist/components/data/Thumbnail.vue.d.ts +439 -0
  10. package/dist/components/data/TileGrid.vue +274 -0
  11. package/dist/components/data/TileGrid.vue.d.ts +51 -0
  12. package/dist/components/data/index.d.ts +3 -0
  13. package/dist/components/data/index.mjs +3 -0
  14. package/dist/components/data/types.d.ts +39 -0
  15. package/dist/components/forms/FocalPointInput.vue +251 -0
  16. package/dist/components/forms/FocalPointInput.vue.d.ts +426 -0
  17. package/dist/components/forms/PaletteSelect.vue.d.ts +2 -2
  18. package/dist/components/forms/index.d.ts +1 -0
  19. package/dist/components/forms/index.mjs +1 -0
  20. package/dist/components/layout/ThemeSwitch.vue.d.ts +2 -2
  21. package/dist/components/layout/types.d.ts +1 -1
  22. package/dist/components/templates/FormPage.vue.d.ts +2 -2
  23. package/dist/composables/useSortable.d.ts +1 -0
  24. package/dist/composables/useSortable.mjs +40 -11
  25. package/dist/grid/cells/ButtonCell.vue.d.ts +2 -2
  26. package/dist/icons/builtin.d.ts +3 -0
  27. package/dist/icons/builtin.mjs +7 -0
  28. package/dist/internal/data/sortable.d.ts +4 -1
  29. package/dist/internal/data/sortable.mjs +49 -0
  30. package/dist/locale/de.mjs +23 -0
  31. package/dist/locale/en.mjs +23 -0
  32. package/dist/locale/it.mjs +23 -0
  33. package/dist/locale/types.d.ts +23 -0
  34. package/dist/styles/data/sortable-list.css +185 -0
  35. package/dist/styles/data/table.css +12 -0
  36. package/dist/styles/data/thumbnail.css +209 -0
  37. package/dist/styles/data/tile-grid.css +144 -0
  38. package/dist/styles/data.css +3 -0
  39. package/dist/styles/forced-colors.css +42 -0
  40. package/dist/styles/forms/focal-point-input.css +154 -0
  41. package/dist/styles/forms.css +1 -0
  42. package/dist/styles/layout/card.css +84 -0
  43. package/dist/styles/shared.css +2 -1
  44. package/dist/styles/tailwind.css +2 -0
  45. package/dist/styles/tokens.css +2 -0
  46. package/package.json +1 -1
@@ -31,6 +31,7 @@ export declare const builtinIcons: {
31
31
  readonly 'arrow-up-tray': readonly ["M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"];
32
32
  readonly document: readonly ["M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"];
33
33
  readonly 'ellipsis-horizontal': readonly ["M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"];
34
+ readonly 'bars-2': readonly ["M3.75 9h16.5m-16.5 6.75h16.5"];
34
35
  readonly 'bars-3': readonly ["M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"];
35
36
  readonly sun: readonly ["M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"];
36
37
  readonly moon: readonly ["M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"];
@@ -41,6 +42,8 @@ export declare const builtinIcons: {
41
42
  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
43
  readonly clock: readonly ["M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"];
43
44
  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"];
45
+ 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"];
46
+ 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
47
  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
48
  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
49
  readonly 'arrow-up': readonly ["M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"];
@@ -60,6 +60,7 @@ export const builtinIcons = {
60
60
  "ellipsis-horizontal": [
61
61
  "M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"
62
62
  ],
63
+ "bars-2": ["M3.75 9h16.5m-16.5 6.75h16.5"],
63
64
  "bars-3": ["M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"],
64
65
  sun: [
65
66
  "M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"
@@ -87,6 +88,12 @@ export const builtinIcons = {
87
88
  photo: [
88
89
  "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
90
  ],
91
+ "video-camera": [
92
+ "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"
93
+ ],
94
+ play: [
95
+ "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"
96
+ ],
90
97
  home: [
91
98
  "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
99
  ],
@@ -1,5 +1,8 @@
1
- export type SortableAxis = 'horizontal' | 'vertical';
1
+ export type SortableAxis = 'horizontal' | 'vertical' | 'grid';
2
2
  export declare const SORTABLE_ATTR = "data-k-sortable";
3
3
  export declare function sortableElements(container: HTMLElement | null | undefined): HTMLElement[];
4
4
  export declare function isRtl(element: Element | null | undefined): boolean;
5
5
  export declare function insertionIndex(elements: HTMLElement[], x: number, y: number, axis: SortableAxis, rtl: boolean): number;
6
+ export declare function layoutRect(element: HTMLElement): DOMRect;
7
+ export declare function gridSlot(rects: DOMRect[], x: number, y: number): number;
8
+ export declare function gridNeighbor(rects: DOMRect[], index: number, step: 1 | -1): null;
@@ -21,3 +21,52 @@ export function insertionIndex(elements, x, y, axis, rtl) {
21
21
  if (isBefore(element.getBoundingClientRect(), x, y, axis, rtl)) index++;
22
22
  return index;
23
23
  }
24
+ export function layoutRect(element) {
25
+ const rect = element.getBoundingClientRect();
26
+ const [x = 0, y = 0] = element.style.translate.split(" ").map((value) => parseFloat(value) || 0);
27
+ return new DOMRect(rect.left - x, rect.top - y, rect.width, rect.height);
28
+ }
29
+ function distance(rect, x, y) {
30
+ const dx = Math.max(rect.left - x, 0, x - rect.right);
31
+ const dy = Math.max(rect.top - y, 0, y - rect.bottom);
32
+ return Math.hypot(dx, dy);
33
+ }
34
+ export function gridSlot(rects, x, y) {
35
+ let best = -1;
36
+ let bestDistance = Infinity;
37
+ rects.forEach((rect, index) => {
38
+ const value = distance(rect, x, y);
39
+ if (value < bestDistance) {
40
+ best = index;
41
+ bestDistance = value;
42
+ }
43
+ });
44
+ return best;
45
+ }
46
+ function sameRow(a, b) {
47
+ return a.top < b.bottom && b.top < a.bottom;
48
+ }
49
+ export function gridNeighbor(rects, index, step) {
50
+ const current = rects[index];
51
+ if (!current) return null;
52
+ const center = current.left + current.width / 2;
53
+ let row = null;
54
+ for (let position = index + step; position >= 0 && position < rects.length; position += step) {
55
+ const rect = rects[position];
56
+ if (sameRow(rect, current)) continue;
57
+ if (!row) row = rect;
58
+ else if (!sameRow(rect, row)) break;
59
+ }
60
+ if (!row) return null;
61
+ let best = null;
62
+ let bestDistance = Infinity;
63
+ rects.forEach((rect, position) => {
64
+ if (!sameRow(rect, row)) return;
65
+ const value = Math.abs(rect.left + rect.width / 2 - center);
66
+ if (value < bestDistance) {
67
+ best = position;
68
+ bestDistance = value;
69
+ }
70
+ });
71
+ return best;
72
+ }
@@ -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"
@@ -304,6 +315,18 @@ export const de = {
304
315
  sortable: {
305
316
  moved: "{label} an Position {position} von {count} verschoben"
306
317
  },
318
+ sortableList: {
319
+ label: "Elemente",
320
+ empty: "Keine Elemente",
321
+ handle: "{label} verschieben",
322
+ hint: "Mit den Pfeiltasten nach oben und unten verschieben"
323
+ },
324
+ tileGrid: {
325
+ label: "Elemente",
326
+ navigateHint: "Mit den Pfeiltasten zwischen den Kacheln wechseln",
327
+ selectHint: "Leertaste w\xE4hlt aus, Umschalt mit Leertaste oder ein Klick w\xE4hlt einen Bereich",
328
+ sortHint: "Alt mit einer Pfeiltaste verschiebt die Kachel"
329
+ },
307
330
  tagList: {
308
331
  label: "Elemente",
309
332
  empty: "Keine Elemente",
@@ -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}"
@@ -304,6 +315,18 @@ export const en = {
304
315
  sortable: {
305
316
  moved: "{label} moved to position {position} of {count}"
306
317
  },
318
+ sortableList: {
319
+ label: "Items",
320
+ empty: "No items",
321
+ handle: "Move {label}",
322
+ hint: "Press the up and down arrow keys to move the item"
323
+ },
324
+ tileGrid: {
325
+ label: "Items",
326
+ navigateHint: "Use the arrow keys to move between tiles",
327
+ selectHint: "Press Space to select, Shift with Space or a click selects a range",
328
+ sortHint: "Alt with an arrow key moves the tile"
329
+ },
307
330
  tagList: {
308
331
  label: "Items",
309
332
  empty: "No items",
@@ -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}"
@@ -304,6 +315,18 @@ export const it = {
304
315
  sortable: {
305
316
  moved: "{label} spostato in posizione {position} di {count}"
306
317
  },
318
+ sortableList: {
319
+ label: "Elementi",
320
+ empty: "Nessun elemento",
321
+ handle: "Sposta {label}",
322
+ hint: "Premi le frecce su e gi\xF9 per spostare l'elemento"
323
+ },
324
+ tileGrid: {
325
+ label: "Elementi",
326
+ navigateHint: "Usa le frecce per spostarti tra i riquadri",
327
+ selectHint: "Premi Spazio per selezionare, Maiusc con Spazio o un clic seleziona un intervallo",
328
+ sortHint: "Alt con una freccia sposta il riquadro"
329
+ },
307
330
  tagList: {
308
331
  label: "Elementi",
309
332
  empty: "Nessun elemento",
@@ -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;
@@ -291,6 +302,18 @@ export interface KMessages {
291
302
  sortable: {
292
303
  moved: string;
293
304
  };
305
+ sortableList: {
306
+ label: string;
307
+ empty: string;
308
+ handle: string;
309
+ hint: string;
310
+ };
311
+ tileGrid: {
312
+ label: string;
313
+ navigateHint: string;
314
+ selectHint: string;
315
+ sortHint: string;
316
+ };
294
317
  tagList: {
295
318
  label: string;
296
319
  empty: string;
@@ -0,0 +1,185 @@
1
+ .k-sortable-list {
2
+ --k-sortable-list-row: 2.5rem;
3
+ min-width: 0;
4
+ }
5
+
6
+ .k-sortable-list-sm {
7
+ --k-sortable-list-row: 2.125rem;
8
+ }
9
+
10
+ .k-sortable-list-items {
11
+ display: flex;
12
+ flex-direction: column;
13
+ margin: 0;
14
+ padding: 0;
15
+ list-style: none;
16
+ border: 1px solid var(--k-line);
17
+ border-radius: var(--k-radius-md);
18
+ background: var(--k-surface);
19
+ }
20
+
21
+ .k-sortable-list-item {
22
+ position: relative;
23
+ }
24
+
25
+ .k-sortable-list-item + .k-sortable-list-item {
26
+ border-top: 1px solid var(--k-line);
27
+ }
28
+
29
+ .k-sortable-list-row {
30
+ --k-icon-size: 1rem;
31
+ display: flex;
32
+ align-items: center;
33
+ gap: 0.5rem;
34
+ min-height: var(--k-sortable-list-row);
35
+ padding: 0.25rem 0.75rem 0.25rem 0.375rem;
36
+ background: var(--k-surface);
37
+ transition:
38
+ background-color var(--k-duration) var(--k-ease),
39
+ box-shadow var(--k-duration) var(--k-ease),
40
+ scale var(--k-duration) var(--k-ease);
41
+ }
42
+
43
+ .k-sortable-list-item:first-child > .k-sortable-list-row {
44
+ border-start-start-radius: calc(var(--k-radius-md) - 1px);
45
+ border-start-end-radius: calc(var(--k-radius-md) - 1px);
46
+ }
47
+
48
+ .k-sortable-list-item:last-child > .k-sortable-list-row {
49
+ border-end-start-radius: calc(var(--k-radius-md) - 1px);
50
+ border-end-end-radius: calc(var(--k-radius-md) - 1px);
51
+ }
52
+
53
+ .k-sortable-list.is-sortable:not(.is-dragging)
54
+ .k-sortable-list-item:not(.is-locked):hover
55
+ > .k-sortable-list-row {
56
+ background: var(--k-subtle);
57
+ }
58
+
59
+ .k-sortable-list-handle {
60
+ position: relative;
61
+ display: grid;
62
+ place-items: center;
63
+ width: 1.5rem;
64
+ height: 1.5rem;
65
+ flex: none;
66
+ border-radius: var(--k-radius-sm);
67
+ color: var(--k-text-dimmed);
68
+ cursor: grab;
69
+ touch-action: none;
70
+ transition:
71
+ color var(--k-duration) var(--k-ease),
72
+ background-color var(--k-duration) var(--k-ease);
73
+ }
74
+
75
+ .k-sortable-list-handle:hover:not(:disabled) {
76
+ background: var(--k-hover);
77
+ color: var(--k-text);
78
+ }
79
+
80
+ .k-sortable-list-handle:disabled {
81
+ opacity: 0.4;
82
+ cursor: not-allowed;
83
+ }
84
+
85
+ .k-sortable-list.is-dragging,
86
+ .k-sortable-list.is-dragging .k-sortable-list-handle {
87
+ cursor: grabbing;
88
+ }
89
+
90
+ .k-sortable-list-content {
91
+ display: flex;
92
+ flex: 1;
93
+ align-items: center;
94
+ gap: 0.5rem;
95
+ min-width: 0;
96
+ }
97
+
98
+ .k-sortable-list.is-sortable .k-sortable-list-item:not(.is-locked) .k-sortable-list-content {
99
+ cursor: grab;
100
+ user-select: none;
101
+ -webkit-user-select: none;
102
+ }
103
+
104
+ .k-sortable-list-icon {
105
+ flex: none;
106
+ color: var(--k-text-dimmed);
107
+ }
108
+
109
+ .k-sortable-list-text {
110
+ display: flex;
111
+ flex: 1;
112
+ flex-direction: column;
113
+ gap: 0.0625rem;
114
+ min-width: 0;
115
+ }
116
+
117
+ .k-sortable-list-label {
118
+ overflow: hidden;
119
+ font-size: 0.8125rem;
120
+ font-weight: var(--k-font-weight-medium, 500);
121
+ color: var(--k-text);
122
+ text-overflow: ellipsis;
123
+ white-space: nowrap;
124
+ }
125
+
126
+ .k-sortable-list-description {
127
+ overflow: hidden;
128
+ font-size: 0.75rem;
129
+ line-height: 1.4;
130
+ color: var(--k-text-muted);
131
+ text-overflow: ellipsis;
132
+ white-space: nowrap;
133
+ }
134
+
135
+ .k-sortable-list-item.is-locked .k-sortable-list-label {
136
+ color: var(--k-text-muted);
137
+ }
138
+
139
+ .k-sortable-list-trailing {
140
+ display: flex;
141
+ flex: none;
142
+ align-items: center;
143
+ gap: 0.25rem;
144
+ margin-inline-start: auto;
145
+ }
146
+
147
+ .k-sortable-list-item.is-moving {
148
+ z-index: 1;
149
+ background: var(--k-accent-soft);
150
+ }
151
+
152
+ .k-sortable-list-item.is-moving::after {
153
+ content: '';
154
+ position: absolute;
155
+ inset: 0.25rem;
156
+ border: 1px dashed var(--k-accent-line);
157
+ border-radius: var(--k-radius-sm);
158
+ pointer-events: none;
159
+ }
160
+
161
+ .k-sortable-list-item.is-moving > .k-sortable-list-row {
162
+ position: relative;
163
+ z-index: 1;
164
+ border-radius: var(--k-radius-md);
165
+ box-shadow: var(--k-shadow-raised), var(--k-shadow-sm);
166
+ scale: 1.01;
167
+ }
168
+
169
+ .k-sortable-list.is-disabled .k-sortable-list-items {
170
+ background: var(--k-subtle);
171
+ }
172
+
173
+ .k-sortable-list.is-disabled .k-sortable-list-row {
174
+ background: transparent;
175
+ }
176
+
177
+ .k-sortable-list-empty {
178
+ margin: 0;
179
+ padding: 0.75rem;
180
+ border: 1px dashed var(--k-line-strong);
181
+ border-radius: var(--k-radius-md);
182
+ font-size: 0.8125rem;
183
+ color: var(--k-text-muted);
184
+ text-align: center;
185
+ }
@@ -180,6 +180,18 @@
180
180
  background: var(--k-accent-soft);
181
181
  }
182
182
 
183
+ .k-table-row[draggable='true'] {
184
+ cursor: grab;
185
+ }
186
+
187
+ .k-table-row[draggable='true'] :is(img, a) {
188
+ -webkit-user-drag: none;
189
+ }
190
+
191
+ .k-table-row.is-dragging {
192
+ opacity: 0.45;
193
+ }
194
+
183
195
  .k-table-link {
184
196
  border-radius: var(--k-radius-xs);
185
197
  color: inherit;
@@ -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
+ }