@svgrid/enterprise 3.1.13 → 3.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/svgrid-enterprise.svelte-external.js +1 -1
- package/dist/designer/assets/{index-CNbankAl.js → index-B-jm2O73.js} +1 -1
- package/dist/designer/index.html +1 -1
- package/dist/node/studio.js +2 -2
- package/dist/studio/scaffold.d.ts +1 -1
- package/dist/studio/scaffold.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -64375,7 +64375,7 @@ function S$(e) {
|
|
|
64375
64375
|
}
|
|
64376
64376
|
//#endregion
|
|
64377
64377
|
//#region src/version.ts
|
|
64378
|
-
var C$ = "3.1.
|
|
64378
|
+
var C$ = "3.1.14", w$ = "3.0.16", T$ = (e, t) => e.some((e) => e.config.kind === t), E$ = (e) => `activeTab_${e.replace(/[^a-zA-Z0-9_$]/g, "_")}`, D$ = (e, t) => `${e}-${t}`, O$ = (e) => `accOpen_${e.replace(/[^a-zA-Z0-9_$]/g, "_")}`, k$ = (e, t) => `${e}-s${t}`, A$ = (e) => `md_${e.replace(/[^a-zA-Z0-9]/g, "_")}_rows`;
|
|
64379
64379
|
function j$(e) {
|
|
64380
64380
|
switch (e.type) {
|
|
64381
64381
|
case "number": {
|
|
@@ -76253,7 +76253,7 @@ ${k}
|
|
|
76253
76253
|
.st-home a { color: var(--sg-accent, #6366f1); font-weight: 600; }
|
|
76254
76254
|
@keyframes st-home-spin { to { transform: rotate(360deg); } }
|
|
76255
76255
|
</style>
|
|
76256
|
-
`}}function i1(e){for(let t of e)_G(t);let t=new Map(e.map(e=>[e.name,e])),n=e.map(e=>{let n=B$(e,t);return{schema:V$(e,n),infos:n}});return{entries:n,seed:H$(n)}}function a1(e,t={}){let{entries:n,seed:r}=i1(e),{file:i,needs:a}=t1(n,r,t.sources,t.supabaseConn,t.serverMemory),o=[Ore(n),i];(a.supabase||t.supabaseAuth)&&!a.supabaseUrl&&(t.supabaseConn?.url||t.supabaseConn?.key)&&(a.supabaseUrl=t.supabaseConn.url,a.supabaseKey=t.supabaseConn.key),(a.supabase||t.supabaseAuth)&&o.push(n1(a));for(let e of a.sqlRoutes)o.push(jre(e.schema,e.table,e.dialect,{access:t.accessEnabled,audit:t.auditEnabled,screenIds:t.screensByEntity?.get(e.schema.name)??[],triggers:t.triggers?.[e.schema.name],dbSchema:e.dbSchema,tenantField:t.tenantField&&t.tenantScoped?.(e.schema.name)!==!1?t.tenantField:void 0}));if(a.memoryRoutes.length){o.push(Nre(a.memoryRoutes));for(let e of a.memoryRoutes)o.push(Mre(e.schema,{access:t.accessEnabled,audit:t.auditEnabled,screenIds:t.screensByEntity?.get(e.schema.name)??[],triggers:t.triggers?.[e.schema.name],tenantField:t.tenantField&&t.tenantScoped?.(e.schema.name)!==!1?t.tenantField:void 0}))}return{files:o,prepared:n.map(e=>e.schema)}}var zre=`3.1.
|
|
76256
|
+
`}}function i1(e){for(let t of e)_G(t);let t=new Map(e.map(e=>[e.name,e])),n=e.map(e=>{let n=B$(e,t);return{schema:V$(e,n),infos:n}});return{entries:n,seed:H$(n)}}function a1(e,t={}){let{entries:n,seed:r}=i1(e),{file:i,needs:a}=t1(n,r,t.sources,t.supabaseConn,t.serverMemory),o=[Ore(n),i];(a.supabase||t.supabaseAuth)&&!a.supabaseUrl&&(t.supabaseConn?.url||t.supabaseConn?.key)&&(a.supabaseUrl=t.supabaseConn.url,a.supabaseKey=t.supabaseConn.key),(a.supabase||t.supabaseAuth)&&o.push(n1(a));for(let e of a.sqlRoutes)o.push(jre(e.schema,e.table,e.dialect,{access:t.accessEnabled,audit:t.auditEnabled,screenIds:t.screensByEntity?.get(e.schema.name)??[],triggers:t.triggers?.[e.schema.name],dbSchema:e.dbSchema,tenantField:t.tenantField&&t.tenantScoped?.(e.schema.name)!==!1?t.tenantField:void 0}));if(a.memoryRoutes.length){o.push(Nre(a.memoryRoutes));for(let e of a.memoryRoutes)o.push(Mre(e.schema,{access:t.accessEnabled,audit:t.auditEnabled,screenIds:t.screensByEntity?.get(e.schema.name)??[],triggers:t.triggers?.[e.schema.name],tenantField:t.tenantField&&t.tenantScoped?.(e.schema.name)!==!1?t.tenantField:void 0}))}return{files:o,prepared:n.map(e=>e.schema)}}var zre=`3.1.14`,Bre=`3.0.16`,o1=(e,t)=>e.some(e=>e.config.kind===t),s1=e=>`activeTab_${e.replace(/[^a-zA-Z0-9_$]/g,`_`)}`,c1=(e,t)=>`${e}-${t}`,Vre=e=>`accOpen_${e.replace(/[^a-zA-Z0-9_$]/g,`_`)}`,l1=(e,t)=>`${e}-s${t}`,u1=e=>`md_${e.replace(/[^a-zA-Z0-9]/g,`_`)}_rows`;function d1(e){switch(e.type){case`number`:{let t=e.decimals;return t==null?`{ type: 'number' }`:`{ type: 'number', options: { minimumFractionDigits: ${t}, maximumFractionDigits: ${t} } }`}case`currency`:return`{ type: 'currency', currency: ${w1(e.currency||`USD`)} }`;case`percent`:{let t=[`type: 'percent'`];return e.valueIsPercentPoints&&t.push(`valueIsPercentPoints: true`),e.decimals!=null&&t.push(`options: { minimumFractionDigits: ${e.decimals}, maximumFractionDigits: ${e.decimals} }`),`{ ${t.join(`, `)} }`}case`date`:case`datetime`:return e.pattern?`{ type: '${e.type}', pattern: ${w1(e.pattern)} }`:`{ type: '${e.type}' }`}}function f1(e,t,n){if(t.config.kind!==`grid`)return`schemaToColumns(${e})`;let r=t.config,i=t.id.replace(/-/g,`_`),a=r.columns.filter(e=>e.show),o=r.editing===`inline`?``:`, editable: false`;if(a.length===0)return o?`schemaToColumns(${e}).map((c) => ({ ...c${o} }))`:`schemaToColumns(${e})`;let s=a.map(e=>`'${e.field}'`),c=a.map(e=>{let t=[];return e.header&&t.push(`header: ${JSON.stringify(e.header)}`),e.width!=null&&t.push(`width: ${e.width}`),e.align&&t.push(`align: '${e.align}'`),e.aggregate&&t.push(`aggregate: '${e.aggregate}'`),r.treeData&&e.field===r.treeData.labelField&&n?t.push(`cell: (ctx: CellContext<${n}>) => renderSnippet(treeCell_${i}, { value: ctx.getValue(), row: ctx.row.original })`):e.cellType&&n?t.push(`cell: (ctx: CellContext<${n}>) => renderSnippet(${P1(i,e.field)}, { value: ctx.getValue() })`):e.format&&t.push(`format: ${d1(e.format)}`),t.length?`'${e.field}': { ${t.join(`, `)} }`:null}).filter(e=>!!e),l=c.length?` const ov: Record<string, Partial<(typeof all)[number]>> = { ${c.join(`, `)} };`:``,u=c.length?`, ...(ov[String(c.field)] ?? {})`:``,d=`[${s.join(`, `)}].map((f) => all.find((c) => c.field === f)).filter((c): c is (typeof all)[number] => !!c)`;return`(() => { const all = schemaToColumns(${e});${l} return ${o||u?`${d}.map((c) => ({ ...c${o}${u} }))`:d} })()`}function p1(e,t){let n=[`grid-column: span ${HX(e)}`,`min-width: 0`];t&&n.push(t);let r=UX(e.style);return r&&n.push(r),`style="${n.join(`; `)}"`}var Hre=e=>e&&e.replace(/[^#a-zA-Z0-9(),.%\s_-]/g,``).slice(0,40)||`var(--sg-accent)`;function m1(e,t){let n=[t,VX(e)].filter(Boolean).join(` `);return n?` class="${n}"`:``}function h1(e){let t=BX(e.className);return t?` ${t}`:``}function g1(e){let t=zQ(e);if(t===`grid`){let t=vZ(e),n=t.maxWidth?` max-width: ${t.maxWidth}px; margin-inline: auto;`:``;return` .st-screen { grid-template-columns: repeat(12, 1fr); gap: ${t.rowGap}px ${t.colGap}px; align-items: ${t.align};${n} }\n @media (max-width: ${t.mobileBreakpoint}px) { .st-screen { grid-template-columns: 1fr; gap: 12px; } }\n`}if(t===`stack`){let t=yZ(e),n=t.maxWidth?` max-width: ${t.maxWidth}px;${t.align===`center`?` margin-inline: auto;`:``}`:``,r=t.minHeight?`\n .st-stack > * { min-height: ${t.minHeight}px; }`:``,i=t.dividers?`\n .st-stack > * + * { border-top: 1px solid var(--sg-border, #e2e8f0); padding-top: ${t.gap}px; }`:``;return` .st-stack { gap: ${t.gap}px;${n} }${r}${i}\n`}if(t===`canvas`){let t=SZ(e),n=t.showGrid?`\n .st-canvas { background-image: linear-gradient(var(--sg-border, #e6e8ec) 1px, transparent 1px), linear-gradient(90deg, var(--sg-border, #e6e8ec) 1px, transparent 1px); background-size: calc((100% - ${t.cols-1} * ${t.gap}px) / ${t.cols} + ${t.gap}px) calc(${t.rowHeight}px + ${t.gap}px); }`:``;return` .st-canvas { grid-template-columns: repeat(${t.cols}, 1fr); grid-auto-rows: ${t.rowHeight}px; gap: ${t.gap}px; }${n}\n`}return``}function _1(e,t,n,r,i,a={hasRecord:!1}){let o=(e,t)=>a.i18n?`{$t('block.${t}', ${JSON.stringify(e)})}`:e,s=a.pane?`style="height: 100%; min-width: 0; min-height: 0; display: flex; flex-direction: column;"`:p1(r),c=m1(r),l=r.config,u=a.handleNames?.get(r.id),d=u?`${u}.rows`:`allRows`;switch(l.kind){case`grid`:{let t=r.id.replace(/-/g,`_`),o=`columns_${t}`,u=`No ${(e.label??e.name).toLowerCase()} yet.`,d=Gre(l,t);if(l.scheduler){let t=z$(a.rawEntity??e,i);return` <div ${s}${c}>
|
|
76257
76257
|
${d.decls} <SvGrid
|
|
76258
76258
|
data={allRows}
|
|
76259
76259
|
columns={${o}}
|
package/dist/designer/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>SvGrid Studio - Designer</title>
|
|
7
|
-
<script type="module" crossorigin src="./assets/index-
|
|
7
|
+
<script type="module" crossorigin src="./assets/index-B-jm2O73.js"></script>
|
|
8
8
|
<link rel="modulepreload" crossorigin href="./assets/rolldown-runtime-Dd_uD5pT.js">
|
|
9
9
|
<link rel="modulepreload" crossorigin href="./assets/disclose-version-CIm4S9xS.js">
|
|
10
10
|
<link rel="modulepreload" crossorigin href="./assets/cell-formatting-JoxA0t65.js">
|
package/dist/node/studio.js
CHANGED
|
@@ -1547,7 +1547,7 @@ function themeStyleString(theme) {
|
|
|
1547
1547
|
//#region src/studio/scaffold.ts
|
|
1548
1548
|
/**
|
|
1549
1549
|
* scaffold - turn an `EntitySchema` into runnable SvelteKit files. The shared
|
|
1550
|
-
* code-emit core: both the AI generator (MCP `
|
|
1550
|
+
* code-emit core: both the AI generator (MCP `svgrid_scaffold` tool) and the
|
|
1551
1551
|
* visual designer's "Generate code" action call this one function, so there is
|
|
1552
1552
|
* a single source of truth for what generated code looks like.
|
|
1553
1553
|
*
|
|
@@ -16457,7 +16457,7 @@ function hasFieldConditions(schema) {
|
|
|
16457
16457
|
*
|
|
16458
16458
|
* `version.test.ts` asserts this matches `package.json`, so the two cannot drift.
|
|
16459
16459
|
*/
|
|
16460
|
-
var SVGRID_VERSION = "3.1.
|
|
16460
|
+
var SVGRID_VERSION = "3.1.14";
|
|
16461
16461
|
/**
|
|
16462
16462
|
* The version of `@svgrid/grid`, which releases on its own line: enterprise is
|
|
16463
16463
|
* on 3.1.x while the grid is on 3.0.x.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* scaffold - turn an `EntitySchema` into runnable SvelteKit files. The shared
|
|
3
|
-
* code-emit core: both the AI generator (MCP `
|
|
3
|
+
* code-emit core: both the AI generator (MCP `svgrid_scaffold` tool) and the
|
|
4
4
|
* visual designer's "Generate code" action call this one function, so there is
|
|
5
5
|
* a single source of truth for what generated code looks like.
|
|
6
6
|
*
|
package/dist/studio/scaffold.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* scaffold - turn an `EntitySchema` into runnable SvelteKit files. The shared
|
|
3
|
-
* code-emit core: both the AI generator (MCP `
|
|
3
|
+
* code-emit core: both the AI generator (MCP `svgrid_scaffold` tool) and the
|
|
4
4
|
* visual designer's "Generate code" action call this one function, so there is
|
|
5
5
|
* a single source of truth for what generated code looks like.
|
|
6
6
|
*
|
package/dist/version.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* `version.test.ts` asserts this matches `package.json`, so the two cannot drift.
|
|
12
12
|
*/
|
|
13
|
-
export declare const SVGRID_VERSION = "3.1.
|
|
13
|
+
export declare const SVGRID_VERSION = "3.1.14";
|
|
14
14
|
/**
|
|
15
15
|
* The version of `@svgrid/grid`, which releases on its own line: enterprise is
|
|
16
16
|
* on 3.1.x while the grid is on 3.0.x.
|
package/dist/version.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* `version.test.ts` asserts this matches `package.json`, so the two cannot drift.
|
|
12
12
|
*/
|
|
13
|
-
export const SVGRID_VERSION = '3.1.
|
|
13
|
+
export const SVGRID_VERSION = '3.1.14';
|
|
14
14
|
/**
|
|
15
15
|
* The version of `@svgrid/grid`, which releases on its own line: enterprise is
|
|
16
16
|
* on 3.1.x while the grid is on 3.0.x.
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "commercial",
|
|
5
5
|
"url": "https://svgrid.com/pricing"
|
|
6
6
|
},
|
|
7
|
-
"version": "3.1.
|
|
7
|
+
"version": "3.1.14",
|
|
8
8
|
"description": "Enterprise feature pack for SvGrid: the server-side row model (lazy grouping, tree, pivot, transactions, selection across unloaded rows), Excel (xlsx) and PDF export, Excel/CSV/JSON import, pivot tables with a drag-and-drop designer, paginated print, Kanban board and scheduler renderers, no-code alerts and batch editing. CSV, TSV and JSON export are already free in @svgrid/grid. Requires a paid license key.",
|
|
9
9
|
"license": "SEE LICENSE IN LICENSE",
|
|
10
10
|
"author": "jQWidgets <sales@jqwidgets.com>",
|