@svgrid/enterprise 3.1.5 → 3.1.6
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.
|
@@ -63821,7 +63821,7 @@ function GQ(e) {
|
|
|
63821
63821
|
}
|
|
63822
63822
|
//#endregion
|
|
63823
63823
|
//#region src/version.ts
|
|
63824
|
-
var KQ = "3.1.
|
|
63824
|
+
var KQ = "3.1.6", qQ = "3.0.10", JQ = (e, t) => e.some((e) => e.config.kind === t), YQ = (e) => `activeTab_${e.replace(/[^a-zA-Z0-9_$]/g, "_")}`, XQ = (e, t) => `${e}-${t}`, ZQ = (e) => `accOpen_${e.replace(/[^a-zA-Z0-9_$]/g, "_")}`, QQ = (e, t) => `${e}-s${t}`, $Q = (e) => `md_${e.replace(/[^a-zA-Z0-9]/g, "_")}_rows`;
|
|
63825
63825
|
function e$(e) {
|
|
63826
63826
|
switch (e.type) {
|
|
63827
63827
|
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 a1(e){for(let t of e)dG(t);let t=new Map(e.map(e=>[e.name,e])),n=e.map(e=>{let n=V$(e,t);return{schema:H$(e,n),infos:n}});return{entries:n,seed:U$(n)}}function Ire(e,t={}){let{entries:n,seed:r}=a1(e),{file:i,needs:a}=t1(n,r,t.sources,t.supabaseConn,t.serverMemory),o=[Cre(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(Q$(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(kre(a.memoryRoutes));for(let e of a.memoryRoutes)o.push(Ore(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 o1=`3.1.
|
|
76256
|
+
`}}function a1(e){for(let t of e)dG(t);let t=new Map(e.map(e=>[e.name,e])),n=e.map(e=>{let n=V$(e,t);return{schema:H$(e,n),infos:n}});return{entries:n,seed:U$(n)}}function Ire(e,t={}){let{entries:n,seed:r}=a1(e),{file:i,needs:a}=t1(n,r,t.sources,t.supabaseConn,t.serverMemory),o=[Cre(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(Q$(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(kre(a.memoryRoutes));for(let e of a.memoryRoutes)o.push(Ore(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 o1=`3.1.6`,s1=`3.0.10`,c1=(e,t)=>e.some(e=>e.config.kind===t),l1=e=>`activeTab_${e.replace(/[^a-zA-Z0-9_$]/g,`_`)}`,u1=(e,t)=>`${e}-${t}`,d1=e=>`accOpen_${e.replace(/[^a-zA-Z0-9_$]/g,`_`)}`,f1=(e,t)=>`${e}-s${t}`,p1=e=>`md_${e.replace(/[^a-zA-Z0-9]/g,`_`)}_rows`;function m1(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: ${D1(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: ${D1(e.pattern)} }`:`{ type: '${e.type}' }`}}function h1(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(${L1(i,e.field)}, { value: ctx.getValue() })`):e.format&&t.push(`format: ${m1(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 g1(e,t){let n=[`grid-column: span ${zX(e)}`,`min-width: 0`];t&&n.push(t);let r=BX(e.style);return r&&n.push(r),`style="${n.join(`; `)}"`}var _1=e=>e&&e.replace(/[^#a-zA-Z0-9(),.%\s_-]/g,``).slice(0,40)||`var(--sg-accent)`;function v1(e,t){let n=[t,RX(e)].filter(Boolean).join(` `);return n?` class="${n}"`:``}function y1(e){let t=LX(e.className);return t?` ${t}`:``}function Lre(e){let t=LQ(e);if(t===`grid`){let t=mZ(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=hZ(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=vZ(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 b1(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;"`:g1(r),c=v1(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=zre(l,t);if(l.scheduler){let t=B$(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-Dknv-Eu8.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
|
@@ -16341,7 +16341,7 @@ function hasFieldConditions(schema) {
|
|
|
16341
16341
|
*
|
|
16342
16342
|
* `version.test.ts` asserts this matches `package.json`, so the two cannot drift.
|
|
16343
16343
|
*/
|
|
16344
|
-
var SVGRID_VERSION = "3.1.
|
|
16344
|
+
var SVGRID_VERSION = "3.1.6";
|
|
16345
16345
|
/**
|
|
16346
16346
|
* The version of `@svgrid/grid`, which releases on its own line: enterprise is
|
|
16347
16347
|
* on 3.1.x while the grid is on 3.0.x.
|
|
@@ -16354,7 +16354,7 @@ var SVGRID_VERSION = "3.1.5";
|
|
|
16354
16354
|
*
|
|
16355
16355
|
* `version.test.ts` asserts this matches packages/grid/package.json.
|
|
16356
16356
|
*/
|
|
16357
|
-
var GRID_VERSION = "3.0.
|
|
16357
|
+
var GRID_VERSION = "3.0.10";
|
|
16358
16358
|
//#endregion
|
|
16359
16359
|
//#region src/studio/emit-project.ts
|
|
16360
16360
|
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.6";
|
|
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.5";
|
|
|
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.10";
|
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.6';
|
|
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.5';
|
|
|
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.10';
|
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.6",
|
|
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>",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"jszip": "^3.10.0",
|
|
106
106
|
"pdfmake": "^0.2.0",
|
|
107
107
|
"svelte": "^5.0.0",
|
|
108
|
-
"@svgrid/grid": "^3.0.
|
|
108
|
+
"@svgrid/grid": "^3.0.10"
|
|
109
109
|
},
|
|
110
110
|
"peerDependenciesMeta": {
|
|
111
111
|
"jszip": {
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"svelte": "^5.55.5",
|
|
124
124
|
"typescript": "6.0.3",
|
|
125
125
|
"vite": "^8.2.1",
|
|
126
|
-
"@svgrid/grid": "^3.0.
|
|
126
|
+
"@svgrid/grid": "^3.0.10"
|
|
127
127
|
},
|
|
128
128
|
"repository": {
|
|
129
129
|
"type": "git",
|