@svgrid/enterprise 3.1.66 → 3.1.68
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-3vpkdW1l.js → index-Dwe1MXA7.js} +1 -1
- package/dist/designer/index.html +1 -1
- package/dist/fields/BaseTabs.svelte +81 -12
- package/dist/fields/BaseTabs.svelte.d.ts +9 -0
- package/dist/fields/RecordView.svelte +102 -58
- package/dist/fields/SvBase.svelte +4 -1
- package/dist/fields/SvBase.svelte.d.ts +9 -0
- package/dist/fields/activity.svelte.d.ts +37 -0
- package/dist/fields/activity.svelte.js +1 -1
- package/dist/fields/base-tables.d.ts +4 -0
- package/dist/fields/index.d.ts +1 -1
- package/dist/fields/index.js +1 -1
- package/dist/fields/messages/record.d.ts +14 -0
- package/dist/fields/messages/record.js +1 -1
- package/dist/fields/messages/shell.d.ts +7 -0
- package/dist/fields/messages/shell.js +1 -1
- package/dist/fields/messages.svelte.d.ts +21 -0
- package/dist/node/studio.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wc/sv-base-element.js +103 -98
- package/package.json +1 -1
|
@@ -1099,6 +1099,20 @@ export declare const BASE_MESSAGES: {
|
|
|
1099
1099
|
readonly 'record.votesMine.other': "{count} votes, including yours";
|
|
1100
1100
|
readonly 'record.buttonOpen': "Open";
|
|
1101
1101
|
readonly 'record.nobody': "Nobody";
|
|
1102
|
+
readonly 'record.replyComment': "Reply";
|
|
1103
|
+
readonly 'record.replyingTo': "Replying to {person}";
|
|
1104
|
+
readonly 'record.cancelReply': "Stop replying";
|
|
1105
|
+
readonly 'record.replyAddedSay': "Reply added.";
|
|
1106
|
+
readonly 'record.resolveThread': "Resolve";
|
|
1107
|
+
readonly 'record.resolveThreadHint': "Mark this conversation as done: it folds to one line";
|
|
1108
|
+
readonly 'record.reopenThread': "Reopen";
|
|
1109
|
+
readonly 'record.threadResolvedBy': "Resolved by {person}";
|
|
1110
|
+
readonly 'record.threadResolvedSay': "Marked resolved.";
|
|
1111
|
+
readonly 'record.threadReopenedSay': "Opened again.";
|
|
1112
|
+
readonly 'record.showThread.one': "Show";
|
|
1113
|
+
readonly 'record.showThread.other': "Show {count} comments";
|
|
1114
|
+
readonly 'record.hideThread': "Hide";
|
|
1115
|
+
readonly 'record.threadReplies': "Replies";
|
|
1102
1116
|
readonly 'viewbar.board.board': "Board";
|
|
1103
1117
|
readonly 'viewbar.board.addCard': "+ Add a card";
|
|
1104
1118
|
readonly 'viewbar.board.addCardTo': "Add card to {lane}";
|
|
@@ -2014,6 +2028,13 @@ export declare const BASE_MESSAGES: {
|
|
|
2014
2028
|
readonly 'shell.importWarnLost.other': "{count} values do not fit the fields they go to and would be left empty. Change those field types or skip the columns to keep them.";
|
|
2015
2029
|
readonly 'shell.importWarnUnmatched.one': "1 cell names a person or a record that was not found, so that name is not imported.";
|
|
2016
2030
|
readonly 'shell.importWarnUnmatched.other': "{count} cells name a person or a record that was not found, so those names are not imported.";
|
|
2031
|
+
readonly 'shell.tablesHeading': "Tables";
|
|
2032
|
+
readonly 'shell.tablesOnLeft': "Show the tables on the left";
|
|
2033
|
+
readonly 'shell.tablesAsTabs': "Show the tables as tabs";
|
|
2034
|
+
readonly 'shell.moveTableToSection': "Put under a heading";
|
|
2035
|
+
readonly 'shell.tableSection': "Heading";
|
|
2036
|
+
readonly 'shell.tableSectionHint': "Heading, or empty for none";
|
|
2037
|
+
readonly 'shell.stepTableSection': "move a table under a heading";
|
|
2017
2038
|
readonly 'shell.importRepeatedLabel': "Records already in the table";
|
|
2018
2039
|
readonly 'shell.importAddAll': "Add every row as a new record";
|
|
2019
2040
|
readonly 'shell.importUpdateMatching': "Update the records that match, add the rest";
|
package/dist/node/studio.js
CHANGED
|
@@ -913,7 +913,7 @@ ${E}
|
|
|
913
913
|
@keyframes st-home-spin { to { transform: rotate(360deg); } }
|
|
914
914
|
</style>
|
|
915
915
|
`}}function Ka(e){for(const r of e)je(r);const t=new Map(e.map(r=>[r.name,r])),a=e.map(r=>{const o=Eu(r,t);return{schema:Fu(r,o),infos:o}});return{entries:a,seed:Du(a)}}function fo(e,t={}){const{entries:a,seed:r}=Ka(e),{file:o,needs:n}=em(a,r,t.sources,t.supabaseConn,t.serverMemory),i=[Lu(a),o];(n.supabase||t.supabaseAuth)&&!n.supabaseUrl&&(t.supabaseConn?.url||t.supabaseConn?.key)&&(n.supabaseUrl=t.supabaseConn.url,n.supabaseKey=t.supabaseConn.key),(n.supabase||t.supabaseAuth)&&i.push(tm(n));for(const s of n.sqlRoutes)i.push(Hu(s.schema,s.table,s.dialect,{access:t.accessEnabled,audit:t.auditEnabled,screenIds:t.screensByEntity?.get(s.schema.name)??[],triggers:t.triggers?.[s.schema.name],dbSchema:s.dbSchema,tenantField:t.tenantField&&t.tenantScoped?.(s.schema.name)!==!1?t.tenantField:void 0}));if(n.memoryRoutes.length){i.push(Gu(n.memoryRoutes));for(const s of n.memoryRoutes)i.push(Vu(s.schema,{access:t.accessEnabled,audit:t.auditEnabled,screenIds:t.screensByEntity?.get(s.schema.name)??[],triggers:t.triggers?.[s.schema.name],tenantField:t.tenantField&&t.tenantScoped?.(s.schema.name)!==!1?t.tenantField:void 0}))}return{files:i,prepared:a.map(s=>s.schema)}}function am(e){if(e.length===0)throw new Error("emitStudioApp: no schemas to emit");const{files:t,prepared:a}=fo(e),r=a.map(n=>{const i=z(n);return{href:`/${i.route}`,label:i.label}}),o={path:"src/custom.css",description:"Your custom styles (imported after app.css so it overrides).",userOwned:!0,contents:`/* Your custom styles. Imported after app.css, so these rules override the defaults. */
|
|
916
|
-
`};return[...t,...a.map(n=>Ni(n)),Mi(r),ji(r),o]}function rm(e){return e.fields.some(t=>!!t.when&&(!!t.when.visible||!!t.when.disabled||!!t.when.required))}var om="3.1.
|
|
916
|
+
`};return[...t,...a.map(n=>Ni(n)),Mi(r),ji(r),o]}function rm(e){return e.fields.some(t=>!!t.when&&(!!t.when.visible||!!t.when.disabled||!!t.when.required))}var om="3.1.68",nm="3.0.40",V=(e,t)=>e.some(a=>a.config.kind===t),qi=e=>`activeTab_${e.replace(/[^a-zA-Z0-9_$]/g,"_")}`,aa=(e,t)=>`${e}-${t}`,zi=e=>`accOpen_${e.replace(/[^a-zA-Z0-9_$]/g,"_")}`,ra=(e,t)=>`${e}-s${t}`,oa=e=>`md_${e.replace(/[^a-zA-Z0-9]/g,"_")}_rows`;function im(e){switch(e.type){case"number":{const t=e.decimals;return t!=null?`{ type: 'number', options: { minimumFractionDigits: ${t}, maximumFractionDigits: ${t} } }`:"{ type: 'number' }"}case"currency":return`{ type: 'currency', currency: ${S(e.currency||"USD")} }`;case"percent":{const 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: ${S(e.pattern)} }`:`{ type: '${e.type}' }`}}function sm(e,t,a,r){if(t.config.kind!=="grid")return`schemaToColumns(${e})`;const o=t.config,n=t.id.replace(/-/g,"_"),i=o.columns.filter(b=>b.show),s=new Set(i.map(b=>b.field)),d=new Set,l=i.map(b=>{const y=r?.get(b.field);return{c:b,col:y&&!s.has(y)?y:b.field}}).filter(b=>!d.has(b.col)&&!!d.add(b.col)),c=o.editing==="inline"?"":", editable: false";if(l.length===0)return c?`schemaToColumns(${e}).map((c) => ({ ...c${c} }))`:`schemaToColumns(${e})`;const p=l.map(b=>`'${b.col}'`),u=l.map(({c:b,col:y})=>{const w=[];return b.header&&w.push(`header: ${JSON.stringify(b.header)}`),b.width!=null&&w.push(`width: ${b.width}`),b.align&&w.push(`align: '${b.align}'`),b.aggregate&&w.push(`aggregate: '${b.aggregate}'`),o.treeData&&b.field===o.treeData.labelField&&a?w.push(`cell: (ctx: CellContext<${a}>) => renderSnippet(treeCell_${n}, { value: ctx.getValue(), row: ctx.row.original })`):b.cellType&&a?w.push(`cell: (ctx: CellContext<${a}>) => renderSnippet(${Gi(n,b.field)}, { value: ctx.getValue() })`):b.format&&w.push(`format: ${im(b.format)}`),w.length?`'${y}': { ${w.join(", ")} }`:null}).filter(b=>!!b),m=u.length?` const ov: Record<string, Partial<(typeof all)[number]>> = { ${u.join(", ")} };`:"",g=u.length?", ...(ov[String(c.field)] ?? {})":"",h=`[${p.join(", ")}].map((f) => all.find((c) => c.field === f)).filter((c): c is (typeof all)[number] => !!c)`;return`(() => { const all = schemaToColumns(${e});${m} return ${c||g?`${h}.map((c) => ({ ...c${c}${g} }))`:h} })()`}function Ae(e,t){const a=[`grid-column: span ${ei(e)}`,"min-width: 0"];t&&a.push(t);const r=ti(e.style);return r&&a.push(r),`style="${a.join("; ")}"`}var lm=e=>e&&e.replace(/[^#a-zA-Z0-9(),.%\s_-]/g,"").slice(0,40)||"var(--sg-accent)";function Ue(e,t){const a=[t,Xn(e)].filter(Boolean).join(" ");return a?` class="${a}"`:""}function Ha(e){const t=Ta(e.className);return t?` ${t}`:""}function dm(e){const t=Fe(e);if(t==="grid"){const a=ui(e),r=a.maxWidth?` max-width: ${a.maxWidth}px; margin-inline: auto;`:"";return` .st-screen { grid-template-columns: repeat(12, 1fr); gap: ${a.rowGap}px ${a.colGap}px; align-items: ${a.align};${r} }
|
|
917
917
|
@media (max-width: ${a.mobileBreakpoint}px) { .st-screen { grid-template-columns: 1fr; gap: 12px; } }
|
|
918
918
|
`}if(t==="stack"){const a=mi(e),r=a.maxWidth?` max-width: ${a.maxWidth}px;${a.align==="center"?" margin-inline: auto;":""}`:"",o=a.minHeight?`
|
|
919
919
|
.st-stack > * { min-height: ${a.minHeight}px; }`:"",n=a.dividers?`
|
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.68";
|
|
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
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SVGRID_VERSION="3.1.
|
|
1
|
+
export const SVGRID_VERSION="3.1.68",GRID_VERSION="3.0.40";
|