@svgrid/enterprise 3.1.9 → 3.1.10
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.
|
@@ -64366,7 +64366,7 @@ function S$(e) {
|
|
|
64366
64366
|
}
|
|
64367
64367
|
//#endregion
|
|
64368
64368
|
//#region src/version.ts
|
|
64369
|
-
var C$ = "3.1.
|
|
64369
|
+
var C$ = "3.1.10", w$ = "3.0.13", 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`;
|
|
64370
64370
|
function j$(e) {
|
|
64371
64371
|
switch (e.type) {
|
|
64372
64372
|
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 s1(e){for(let t of e)gG(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 c1(e,t={}){let{entries:n,seed:r}=s1(e),{file:i,needs:a}=r1(n,r,t.sources,t.supabaseConn,t.serverMemory),o=[Dre(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(i1(a));for(let e of a.sqlRoutes)o.push(X$(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(Q$(a.memoryRoutes));for(let e of a.memoryRoutes)o.push(Z$(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 l1=`3.1.
|
|
76256
|
+
`}}function s1(e){for(let t of e)gG(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 c1(e,t={}){let{entries:n,seed:r}=s1(e),{file:i,needs:a}=r1(n,r,t.sources,t.supabaseConn,t.serverMemory),o=[Dre(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(i1(a));for(let e of a.sqlRoutes)o.push(X$(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(Q$(a.memoryRoutes));for(let e of a.memoryRoutes)o.push(Z$(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 l1=`3.1.10`,Fre=`3.0.13`,u1=(e,t)=>e.some(e=>e.config.kind===t),d1=e=>`activeTab_${e.replace(/[^a-zA-Z0-9_$]/g,`_`)}`,f1=(e,t)=>`${e}-${t}`,p1=e=>`accOpen_${e.replace(/[^a-zA-Z0-9_$]/g,`_`)}`,m1=(e,t)=>`${e}-s${t}`,h1=e=>`md_${e.replace(/[^a-zA-Z0-9]/g,`_`)}_rows`;function g1(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: ${A1(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: ${A1(e.pattern)} }`:`{ type: '${e.type}' }`}}function _1(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(${V1(i,e.field)}, { value: ctx.getValue() })`):e.format&&t.push(`format: ${g1(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 v1(e,t){let n=[`grid-column: span ${zX(e)}`,`min-width: 0`];t&&n.push(t);let r=VX(e.style);return r&&n.push(r),`style="${n.join(`; `)}"`}var y1=e=>e&&e.replace(/[^#a-zA-Z0-9(),.%\s_-]/g,``).slice(0,40)||`var(--sg-accent)`;function b1(e,t){let n=[t,RX(e)].filter(Boolean).join(` `);return n?` class="${n}"`:``}function x1(e){let t=LX(e.className);return t?` ${t}`:``}function S1(e){let t=LQ(e);if(t===`grid`){let t=gZ(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=_Z(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=bZ(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 C1(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;"`:v1(r),c=b1(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=Lre(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-CJodU3tU.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-BWrW_O0n.js">
|
package/dist/node/studio.js
CHANGED
|
@@ -16446,7 +16446,7 @@ function hasFieldConditions(schema) {
|
|
|
16446
16446
|
*
|
|
16447
16447
|
* `version.test.ts` asserts this matches `package.json`, so the two cannot drift.
|
|
16448
16448
|
*/
|
|
16449
|
-
var SVGRID_VERSION = "3.1.
|
|
16449
|
+
var SVGRID_VERSION = "3.1.10";
|
|
16450
16450
|
/**
|
|
16451
16451
|
* The version of `@svgrid/grid`, which releases on its own line: enterprise is
|
|
16452
16452
|
* on 3.1.x while the grid is on 3.0.x.
|
|
@@ -16459,7 +16459,7 @@ var SVGRID_VERSION = "3.1.9";
|
|
|
16459
16459
|
*
|
|
16460
16460
|
* `version.test.ts` asserts this matches packages/grid/package.json.
|
|
16461
16461
|
*/
|
|
16462
|
-
var GRID_VERSION = "3.0.
|
|
16462
|
+
var GRID_VERSION = "3.0.13";
|
|
16463
16463
|
//#endregion
|
|
16464
16464
|
//#region src/studio/emit-project.ts
|
|
16465
16465
|
var has = (blocks, kind) => blocks.some((b) => b.config.kind === kind);
|
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.10";
|
|
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.
|
|
@@ -23,4 +23,4 @@ export declare const SVGRID_VERSION = "3.1.9";
|
|
|
23
23
|
*
|
|
24
24
|
* `version.test.ts` asserts this matches packages/grid/package.json.
|
|
25
25
|
*/
|
|
26
|
-
export declare const GRID_VERSION = "3.0.
|
|
26
|
+
export declare const GRID_VERSION = "3.0.13";
|
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.10';
|
|
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.
|
|
@@ -23,4 +23,4 @@ export const SVGRID_VERSION = '3.1.9';
|
|
|
23
23
|
*
|
|
24
24
|
* `version.test.ts` asserts this matches packages/grid/package.json.
|
|
25
25
|
*/
|
|
26
|
-
export const GRID_VERSION = '3.0.
|
|
26
|
+
export const GRID_VERSION = '3.0.13';
|
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.10",
|
|
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>",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"jszip": "^3.10.0",
|
|
116
116
|
"pdfmake": "^0.2.0",
|
|
117
117
|
"svelte": "^5.0.0",
|
|
118
|
-
"@svgrid/grid": "^3.0.
|
|
118
|
+
"@svgrid/grid": "^3.0.13"
|
|
119
119
|
},
|
|
120
120
|
"peerDependenciesMeta": {
|
|
121
121
|
"jszip": {
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"svelte": "^5.55.5",
|
|
135
135
|
"typescript": "6.0.3",
|
|
136
136
|
"vite": "^8.2.1",
|
|
137
|
-
"@svgrid/grid": "^3.0.
|
|
137
|
+
"@svgrid/grid": "^3.0.13"
|
|
138
138
|
},
|
|
139
139
|
"repository": {
|
|
140
140
|
"type": "git",
|