@svgrid/enterprise 3.1.69 → 3.1.70

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.
@@ -2,7 +2,7 @@
2
2
  lang="ts"
3
3
  generics="TFeatures extends TableFeatures = TableFeatures, TData extends RowData = RowData"
4
4
  >
5
- import{formatValueForExport,getGridExtension,keepFocus}from"@svgrid/grid";import{tick}from"svelte";import{cardMarkFor}from"./review/card-marks.svelte";import{virtualWindow}from"./fields/virtual-window";import CardMenu from"./CardMenu.svelte";let{data,columns,gallery,getRowId}=$props();const ext=$derived(getGridExtension());const leaves=$derived.by(()=>{const out=[];const walk=cols=>{for(const c of cols){if(Array.isArray(c.columns)&&c.columns.length)walk(c.columns);else if(typeof c.field==="string")out.push(c)}};walk(columns);const fill=ext?.column;return fill?out.map(c=>c.fieldType?fill(c,out):c):out});const byField=$derived(new Map(leaves.map(c=>[c.field,c])));const titleField=$derived(gallery.titleField??leaves[0]?.field);const coverField=$derived(gallery.coverField);const MAX_FIELDS=6;const cardFields=$derived(gallery.cardFields??leaves.map(c=>c.field).filter(f=>f!==titleField&&f!==coverField).slice(0,MAX_FIELDS));const SIZES={small:180,medium:240,large:320};const cardWidth=$derived(typeof gallery?.cardSize==="number"?gallery.cardSize:SIZES[gallery?.cardSize??"medium"]);const showLabels=$derived(gallery.showLabels!==false);const rowsNow=$derived(data);const valueOf=(row,field)=>{void rowsNow;const def=byField.get(field);return def?.fieldFn?def.fieldFn(row):row[field]};function text(row,field,id=""){const def=byField.get(field);const value=valueOf(row,field);if(typeof def?.formatter==="function"){return String(def.formatter({value,row:{id,original:row},column:{id:def.id??field,columnDef:def}})??"")}if(def?.format)return formatValueForExport(value,def.format);if(value==null)return"";if(value instanceof Date)return value.toLocaleDateString();if(typeof value==="boolean")return value?"Yes":"No";if(Array.isArray(value))return value.map(v=>v&&typeof v==="object"?v.name??v.label??"":String(v)).join(", ");return String(value)}const isBlank=v=>v==null||v===""||Array.isArray(v)&&v.length===0;function cellDef(field){const def=byField.get(field);if(!def?.fieldType||def.cell!=null||!ext?.cell||ext.hasCell?.(def)===false)return null;return def}const CARD_GRID=$derived(gallery?.cellGrid?.(cardWidth-24)??{getColumnWidth:()=>cardWidth-24});const IMAGE_URL=/^(https?:|blob:|data:image\/(png|jpeg|gif|webp|avif|svg\+xml);)/i;const isImageFile=f=>(f.type??"").startsWith("image/")||/\.(png|jpe?g|gif|webp|avif|svg)$/i.test(f.name??f.url??"");function coverUrl(row){if(!coverField)return null;const v=valueOf(row,coverField);const pick=u=>typeof u==="string"&&IMAGE_URL.test(u.trim())?u.trim():null;if(typeof v==="string")return pick(v);if(Array.isArray(v)){for(const f of v){if(typeof f==="string"&&pick(f))return pick(f);if(f&&typeof f==="object"&&isImageFile(f))return pick(f.thumbnailUrl??f.url)}return null}if(v&&typeof v==="object")return pick(v.url);return null}const keyOf=(row,i)=>getRowId?getRowId(row,i):String(i);const BATCH=120;let shownCount=$state(BATCH);const GAP=18;const server=$derived(gallery.server);let wall=$state(null);let wallTop=$state(0);let wallHeight=$state(0);let wallWidth=$state(0);let cardHeight=$state(0);const perRow=$derived(Math.max(1,Math.floor((wallWidth-GAP)/(cardWidth+GAP))));const serverTotal=$derived(server?server.total??perRow*4:0);const rowsWindow=$derived(virtualWindow(wallTop,wallHeight||600,Math.ceil(serverTotal/perRow),(cardHeight||240)+GAP,2));const isLoadingCard=row=>row.__placeholder===true;$effect(()=>{void server?.version;if(!server||cardHeight)return;void tick().then(()=>{const h=wall?.querySelector(".sv-gal-card:not(.is-loading)")?.offsetHeight??0;if(h>0)cardHeight=h})});const shown=$derived(server?server.slice(rowsWindow.start*perRow,Math.min(serverTotal,rowsWindow.end*perRow)):data.slice(0,shownCount));$effect(()=>{void data;shownCount=BATCH});function more(node){const io=new IntersectionObserver(entries=>{if(entries.some(e=>e.isIntersecting))shownCount+=BATCH},{rootMargin:"400px"});io.observe(node);return{destroy:()=>io.disconnect()}}const open=row=>gallery.onCardClick?.(row);let menu=$state.raw(null);function menuAt(x,y,row){const items=gallery.cardMenu?.(row);if(items?.length)menu={x,y,items}}function menuKey(e,row){if(e.key!=="ContextMenu"&&!(e.key==="F10"&&e.shiftKey))return;e.preventDefault();const box=e.target.getBoundingClientRect();menuAt(box.left,box.bottom,row)}const fieldLabel=field=>{const h=byField.get(field)?.header;return typeof h==="string"?h:field};const iconOf=field=>{const def=byField.get(field);return def?ext?.headerIcon?.(def)??null:null};
5
+ import{formatValueForExport,getGridExtension,keepFocus}from"@svgrid/grid";import{tick}from"svelte";import{cardMarkFor}from"./review/card-marks.svelte";import{virtualWindow}from"./fields/virtual-window";import{richLines}from"./fields/rich-html";import{parseRichText}from"./fields/rich-text";import CardMenu from"./CardMenu.svelte";let{data,columns,gallery,getRowId}=$props();const ext=$derived(getGridExtension());const leaves=$derived.by(()=>{const out=[];const walk=cols=>{for(const c of cols){if(Array.isArray(c.columns)&&c.columns.length)walk(c.columns);else if(typeof c.field==="string")out.push(c)}};walk(columns);const fill=ext?.column;return fill?out.map(c=>c.fieldType?fill(c,out):c):out});const byField=$derived(new Map(leaves.map(c=>[c.field,c])));const titleField=$derived(gallery.titleField??leaves[0]?.field);const coverField=$derived(gallery.coverField);const MAX_FIELDS=6;const cardFields=$derived(gallery.cardFields??leaves.map(c=>c.field).filter(f=>f!==titleField&&f!==coverField).slice(0,MAX_FIELDS));const SIZES={small:180,medium:240,large:320};const cardWidth=$derived(typeof gallery?.cardSize==="number"?gallery.cardSize:SIZES[gallery?.cardSize??"medium"]);const showLabels=$derived(gallery.showLabels!==false);const LINES={small:2,medium:3,large:5};const textLines=$derived(LINES[cardWidth<=SIZES.small?"small":cardWidth>=SIZES.large?"large":"medium"]);function preview(field,value){const def=byField.get(field);if(def?.fieldType==="richText")return richLines(value).replace(/^- /gm,"• ");if(def?.fieldType!=="longText"||value==null)return null;if(!def.fieldProps?.richText)return String(value);return parseRichText(value).map(l=>(l.bullet?"• ":"")+l.parts.map(p=>p.text).join("")).join("\n")}const rowsNow=$derived(data);const valueOf=(row,field)=>{void rowsNow;const def=byField.get(field);return def?.fieldFn?def.fieldFn(row):row[field]};function text(row,field,id=""){const def=byField.get(field);const value=valueOf(row,field);if(typeof def?.formatter==="function"){return String(def.formatter({value,row:{id,original:row},column:{id:def.id??field,columnDef:def}})??"")}if(def?.format)return formatValueForExport(value,def.format);if(value==null)return"";if(value instanceof Date)return value.toLocaleDateString();if(typeof value==="boolean")return value?"Yes":"No";if(Array.isArray(value))return value.map(v=>v&&typeof v==="object"?v.name??v.label??"":String(v)).join(", ");return String(value)}const isBlank=v=>v==null||v===""||Array.isArray(v)&&v.length===0;function cellDef(field){const def=byField.get(field);if(!def?.fieldType||def.cell!=null||!ext?.cell||ext.hasCell?.(def)===false)return null;return def}const CARD_GRID=$derived(gallery?.cellGrid?.(cardWidth-24)??{getColumnWidth:()=>cardWidth-24});const IMAGE_URL=/^(https?:|blob:|data:image\/(png|jpeg|gif|webp|avif|svg\+xml);)/i;const isImageFile=f=>(f.type??"").startsWith("image/")||/\.(png|jpe?g|gif|webp|avif|svg)$/i.test(f.name??f.url??"");function coverUrl(row){if(!coverField)return null;const v=valueOf(row,coverField);const pick=u=>typeof u==="string"&&IMAGE_URL.test(u.trim())?u.trim():null;if(typeof v==="string")return pick(v);if(Array.isArray(v)){for(const f of v){if(typeof f==="string"&&pick(f))return pick(f);if(f&&typeof f==="object"&&isImageFile(f))return pick(f.thumbnailUrl??f.url)}return null}if(v&&typeof v==="object")return pick(v.url);return null}const keyOf=(row,i)=>getRowId?getRowId(row,i):String(i);const BATCH=120;let shownCount=$state(BATCH);const GAP=18;const server=$derived(gallery.server);let wall=$state(null);let wallTop=$state(0);let wallHeight=$state(0);let wallWidth=$state(0);let cardHeight=$state(0);const perRow=$derived(Math.max(1,Math.floor((wallWidth-GAP)/(cardWidth+GAP))));const serverTotal=$derived(server?server.total??perRow*4:0);const rowsWindow=$derived(virtualWindow(wallTop,wallHeight||600,Math.ceil(serverTotal/perRow),(cardHeight||240)+GAP,2));const isLoadingCard=row=>row.__placeholder===true;$effect(()=>{void server?.version;if(!server||cardHeight)return;void tick().then(()=>{const h=wall?.querySelector(".sv-gal-card:not(.is-loading)")?.offsetHeight??0;if(h>0)cardHeight=h})});const shown=$derived(server?server.slice(rowsWindow.start*perRow,Math.min(serverTotal,rowsWindow.end*perRow)):data.slice(0,shownCount));$effect(()=>{void data;shownCount=BATCH});function more(node){const io=new IntersectionObserver(entries=>{if(entries.some(e=>e.isIntersecting))shownCount+=BATCH},{rootMargin:"400px"});io.observe(node);return{destroy:()=>io.disconnect()}}const open=row=>gallery.onCardClick?.(row);let menu=$state.raw(null);function menuAt(x,y,row){const items=gallery.cardMenu?.(row);if(items?.length)menu={x,y,items}}function menuKey(e,row){if(e.key!=="ContextMenu"&&!(e.key==="F10"&&e.shiftKey))return;e.preventDefault();const box=e.target.getBoundingClientRect();menuAt(box.left,box.bottom,row)}const fieldLabel=field=>{const h=byField.get(field)?.header;return typeof h==="string"?h:field};const iconOf=field=>{const def=byField.get(field);return def?ext?.headerIcon?.(def)??null:null};
6
6
  </script>
7
7
 
8
8
  {#snippet proposedMark(mark: CardMark | null)}
@@ -13,6 +13,7 @@ import{formatValueForExport,getGridExtension,keepFocus}from"@svgrid/grid";import
13
13
 
14
14
  <div
15
15
  class="sv-gal"
16
+ class:is-even={!!server}
16
17
  style:--sv-gal-card={`${cardWidth}px`}
17
18
  style:--sv-gal-h={server && cardHeight ? `${cardHeight}px` : undefined}
18
19
  role="list"
@@ -91,15 +92,18 @@ import{formatValueForExport,getGridExtension,keepFocus}from"@svgrid/grid";import
91
92
  onclick={(e) => {
92
93
  e.stopPropagation();
93
94
  open(row);
94
- }}>{#if gallery.isSelected?.(row)}<svg class="sv-gal-tick" viewBox="0 0 24 24" width="14" height="14" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" /></svg>{/if}{title || (gallery.text?.untitled ?? "Untitled")}{#if gallery.isSelected?.(row)}<span class="sv-gal-sr">, {gallery.text?.selected ?? "Selected"}</span>{/if}</button
95
+ }}><span class="sv-gal-name">{#if gallery.isSelected?.(row)}<svg class="sv-gal-tick" viewBox="0 0 24 24" width="14" height="14" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" /></svg>{/if}{title || (gallery.text?.untitled ?? "Untitled")}</span>{#if gallery.isSelected?.(row)}<span class="sv-gal-sr">, {gallery.text?.selected ?? "Selected"}</span>{/if}</button
95
96
  >
96
97
  {:else}
97
- <div class="sv-gal-title">{title || (gallery.text?.untitled ?? "Untitled")}</div>
98
+ <div class="sv-gal-title"><span class="sv-gal-name">{title || (gallery.text?.untitled ?? "Untitled")}</span></div>
98
99
  {/if}
99
100
  {#each cardFields as field (field)}
100
101
  {@const def = cellDef(field)}
101
102
  {@const value = valueOf(row, field)}
102
- {#if !isBlank(value)}
103
+ {@const lines = preview(field, value)}
104
+ {@const blank = isBlank(value) || lines === ""}
105
+
106
+ {#if !blank || server}
103
107
  <div class="sv-gal-field">
104
108
  {#if showLabels}
105
109
  <div class="sv-gal-label">
@@ -109,14 +113,20 @@ import{formatValueForExport,getGridExtension,keepFocus}from"@svgrid/grid";import
109
113
  {fieldLabel(field)}
110
114
  </div>
111
115
  {/if}
112
- <div class="sv-gal-value">
113
- {#if def && ext?.cell}
114
- {@const Cell = ext.cell}
115
- <Cell ctrl={CARD_GRID} row={{ id: keyOf(row, i), original: row }} column={{ id: def.id ?? field, columnDef: def }} {value} />
116
- {:else}
117
- {text(row, field, keyOf(row, i))}
118
- {/if}
119
- </div>
116
+ {#if lines != null}
117
+ <div class="sv-gal-value sv-gal-text" style:--sv-gal-lines={textLines}>{blank ? "" : lines}</div>
118
+ {:else if blank}
119
+ <div class="sv-gal-value"></div>
120
+ {:else}
121
+ <div class="sv-gal-value">
122
+ {#if def && ext?.cell}
123
+ {@const Cell = ext.cell}
124
+ <Cell ctrl={CARD_GRID} row={{ id: keyOf(row, i), original: row }} column={{ id: def.id ?? field, columnDef: def }} {value} />
125
+ {:else}
126
+ {text(row, field, keyOf(row, i))}
127
+ {/if}
128
+ </div>
129
+ {/if}
120
130
  </div>
121
131
  {/if}
122
132
  {/each}
@@ -137,5 +147,5 @@ import{formatValueForExport,getGridExtension,keepFocus}from"@svgrid/grid";import
137
147
  {/if}
138
148
 
139
149
  <style>
140
- .sv-gal{overflow-anchor:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--sv-gal-card)),1fr));grid-auto-rows:max-content;gap:18px;padding:18px;height:100%;box-sizing:border-box;overflow:auto;align-content:start;background:color-mix(in srgb,var(--sg-fg, #0f172a) 3%,var(--sg-bg, #fff));color:var(--sg-fg, #0f172a);font-family:var(--sg-font, inherit);font-size:13px}.sv-gal-card{min-width:0;overflow:hidden;background:var(--sg-bg, #fff);border:1px solid color-mix(in srgb,var(--sg-fg, #0f172a) 9%,transparent);border-radius:12px;box-shadow:0 1px 2px #0f172a0d;transition:box-shadow .18s ease,transform .18s ease,border-color .18s ease}.sv-gal-gap{grid-column:1 / -1}.sv-gal-card{height:var(--sv-gal-h, auto);box-sizing:border-box}.sv-gal-card.is-loading{box-shadow:none;background:color-mix(in srgb,var(--sg-fg, #0f172a) 5%,transparent)}.sv-gal-card.is-clickable{cursor:pointer}.sv-gal-card.is-clickable:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--sg-fg, #0f172a) 14%,transparent);box-shadow:0 2px 4px #0f172a0f,0 12px 28px -12px #0f172a52}.sv-gal-card:has(.sv-gal-title:focus-visible){outline:2px solid var(--sg-accent, #2563eb);outline-offset:2px}.sv-gal-card.is-selected{background:var(--sg-selection-bg, #eaf2ff)}.sv-gal-tick{display:inline-block;margin-inline-end:6px;vertical-align:-2px}.sv-gal-card{position:relative}.sv-gal-actions{position:absolute;inset-block-start:6px;inset-inline-end:6px;z-index:1;display:grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid var(--sg-border, #e2e8f0);border-radius:6px;background:var(--sg-bg, #fff);color:var(--sg-fg, #0f172a);cursor:pointer;opacity:0}.sv-gal-card:hover .sv-gal-actions,.sv-gal-card:focus-within .sv-gal-actions{opacity:1}.sv-gal-actions:focus-visible{opacity:1;outline:2px solid var(--sg-focus-ring, var(--sg-accent, #2563eb));outline-offset:1px}@media(hover:none){.sv-gal-actions{opacity:1}}.sv-gal-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.sv-gal-cover{aspect-ratio:4 / 3;overflow:hidden;background:color-mix(in srgb,var(--sg-fg, #0f172a) 5%,transparent)}.sv-gal-cover img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}.sv-gal-cover.is-contain img{object-fit:contain}.sv-gal-card.is-clickable:hover .sv-gal-cover img{transform:scale(1.04)}.sv-gal-body{padding:12px 14px 14px;display:grid;gap:9px;min-width:0}.sv-gal-title{padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:600;font-size:14.5px;line-height:1.3;letter-spacing:-.005em;text-align:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:inherit;outline:none}.sv-gal-title:focus-visible{outline:none;box-shadow:none}.sv-gal-field{min-width:0}.sv-gal-label{display:flex;align-items:center;gap:4px;margin-bottom:2px;font-size:10.5px;font-weight:500;letter-spacing:.03em;text-transform:uppercase;color:var(--sg-muted, #64748b)}.sv-gal-label svg{flex:none}.sv-gal-value{min-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.sv-gal-custom{min-width:0}.sv-gal-custom-hit{cursor:pointer;border-radius:12px;outline:none}.sv-gal-custom-hit:focus-visible{outline:2px solid var(--sg-accent, #2563eb);outline-offset:2px}.sv-gal-empty{grid-column:1 / -1;color:var(--sg-muted, #64748b);margin:8px 2px}.sv-gal-more{grid-column:1 / -1;height:1px}@media(prefers-reduced-motion:reduce){.sv-gal-card,.sv-gal-cover img{transition:none}.sv-gal-card.is-clickable:hover,.sv-gal-card.is-clickable:hover .sv-gal-cover img{transform:none}}.sv-card-proposed{display:inline-flex;align-items:center;gap:5px;align-self:flex-start;margin-bottom:4px;padding:1px 7px;border-radius:999px;font-size:11px;font-weight:600;color:color-mix(in srgb,var(--sg-warning, #d97706) 75%,var(--sg-fg, #111827));background:color-mix(in srgb,var(--sg-warning, #d97706) 14%,transparent)}.sv-card-proposed-dot{width:6px;height:6px;border-radius:50%;background:var(--sg-warning, #d97706)}
150
+ .sv-gal{overflow-anchor:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--sv-gal-card)),1fr));grid-auto-rows:max-content;gap:18px;padding:18px;height:100%;box-sizing:border-box;overflow:auto;align-content:start;background:color-mix(in srgb,var(--sg-fg, #0f172a) 3%,var(--sg-bg, #fff));color:var(--sg-fg, #0f172a);font-family:var(--sg-font, inherit);font-size:13px}.sv-gal-card{min-width:0;overflow:hidden;background:var(--sg-bg, #fff);border:1px solid color-mix(in srgb,var(--sg-fg, #0f172a) 9%,transparent);border-radius:12px;box-shadow:0 1px 2px #0f172a0d;transition:box-shadow .18s ease,transform .18s ease,border-color .18s ease}.sv-gal-gap{grid-column:1 / -1}.sv-gal-card{height:var(--sv-gal-h, auto);box-sizing:border-box}.sv-gal-card.is-loading{box-shadow:none;background:color-mix(in srgb,var(--sg-fg, #0f172a) 5%,transparent)}.sv-gal-card.is-clickable{cursor:pointer}.sv-gal-card.is-clickable:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--sg-fg, #0f172a) 14%,transparent);box-shadow:0 2px 4px #0f172a0f,0 12px 28px -12px #0f172a52}.sv-gal-card:has(.sv-gal-title:focus-visible){outline:2px solid var(--sg-accent, #2563eb);outline-offset:2px}.sv-gal-card.is-selected{background:var(--sg-selection-bg, #eaf2ff)}.sv-gal-tick{display:inline-block;margin-inline-end:6px;vertical-align:-2px}.sv-gal-card{position:relative}.sv-gal-actions{position:absolute;inset-block-start:6px;inset-inline-end:6px;z-index:1;display:grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid var(--sg-border, #e2e8f0);border-radius:6px;background:var(--sg-bg, #fff);color:var(--sg-fg, #0f172a);cursor:pointer;opacity:0}.sv-gal-card:hover .sv-gal-actions,.sv-gal-card:focus-within .sv-gal-actions{opacity:1}.sv-gal-actions:focus-visible{opacity:1;outline:2px solid var(--sg-focus-ring, var(--sg-accent, #2563eb));outline-offset:1px}@media(hover:none){.sv-gal-actions{opacity:1}}.sv-gal-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.sv-gal-cover{aspect-ratio:4 / 3;overflow:hidden;background:color-mix(in srgb,var(--sg-fg, #0f172a) 5%,transparent)}.sv-gal-cover img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}.sv-gal-cover.is-contain img{object-fit:contain}.sv-gal-card.is-clickable:hover .sv-gal-cover img{transform:scale(1.04)}.sv-gal-body{padding:12px 14px 14px;display:grid;gap:9px;min-width:0}.sv-gal-title{padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:600;font-size:14.5px;line-height:1.3;letter-spacing:-.005em;text-align:start;cursor:inherit;outline:none;min-width:0}.sv-gal-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.sv-gal.is-even .sv-gal-name{min-height:2.6em}.sv-gal.is-even .sv-gal-text{height:calc(var(--sv-gal-lines, 3) * 1.45em)}.sv-gal-title:focus-visible{outline:none;box-shadow:none}.sv-gal-field{min-width:0}.sv-gal-label{display:flex;align-items:center;gap:4px;margin-bottom:2px;font-size:10.5px;font-weight:500;letter-spacing:.03em;text-transform:uppercase;color:var(--sg-muted, #64748b)}.sv-gal-label svg{flex:none}.sv-gal-value{min-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.sv-gal-text{white-space:pre-line;overflow-wrap:anywhere;line-height:1.45;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--sv-gal-lines, 3);line-clamp:var(--sv-gal-lines, 3)}.sv-gal-custom{min-width:0}.sv-gal-custom-hit{cursor:pointer;border-radius:12px;outline:none}.sv-gal-custom-hit:focus-visible{outline:2px solid var(--sg-accent, #2563eb);outline-offset:2px}.sv-gal-empty{grid-column:1 / -1;color:var(--sg-muted, #64748b);margin:8px 2px}.sv-gal-more{grid-column:1 / -1;height:1px}@media(prefers-reduced-motion:reduce){.sv-gal-card,.sv-gal-cover img{transition:none}.sv-gal-card.is-clickable:hover,.sv-gal-card.is-clickable:hover .sv-gal-cover img{transform:none}}.sv-card-proposed{display:inline-flex;align-items:center;gap:5px;align-self:flex-start;margin-bottom:4px;padding:1px 7px;border-radius:999px;font-size:11px;font-weight:600;color:color-mix(in srgb,var(--sg-warning, #d97706) 75%,var(--sg-fg, #111827));background:color-mix(in srgb,var(--sg-warning, #d97706) 14%,transparent)}.sv-card-proposed-dot{width:6px;height:6px;border-radius:50%;background:var(--sg-warning, #d97706)}
141
151
  </style>