@svgrid/enterprise 3.1.34 → 3.1.36

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.
Files changed (250) hide show
  1. package/dist/ExpressionEditorHarness.svelte +1 -1
  2. package/dist/SvAdvancedFilter.svelte +1 -1
  3. package/dist/SvAlertRuleEditor.svelte +1 -1
  4. package/dist/SvAlertsManager.svelte +1 -1
  5. package/dist/SvAlertsPanel.svelte +1 -1
  6. package/dist/SvExpressionEditor.svelte +1 -1
  7. package/dist/SvGridBoard.svelte +1 -1
  8. package/dist/SvGridBulkEditDrawer.svelte +1 -1
  9. package/dist/SvGridEditPanel.svelte +1 -1
  10. package/dist/SvGridGallery.svelte +1 -1
  11. package/dist/SvGridMasterDetail.svelte +1 -1
  12. package/dist/SvGridScheduler.svelte +1 -1
  13. package/dist/SvGridSelectionBar.svelte +1 -1
  14. package/dist/SvPivotDesigner.svelte +1 -1
  15. package/dist/SvSchemaChart.svelte +1 -1
  16. package/dist/SvSchemaDashboard.svelte +1 -1
  17. package/dist/SvSheet.svelte +1 -1
  18. package/dist/SvSheetChartSetup.svelte +1 -1
  19. package/dist/SvSheetConditionalFormat.svelte +1 -1
  20. package/dist/SvSheetDataValidation.svelte +1 -1
  21. package/dist/SvSheetEditRanges.svelte +1 -1
  22. package/dist/SvSheetErrors.svelte +1 -1
  23. package/dist/SvSheetEvaluate.svelte +1 -1
  24. package/dist/SvSheetFindReplace.svelte +1 -1
  25. package/dist/SvSheetFormatCells.svelte +1 -1
  26. package/dist/SvSheetGoalSeek.svelte +1 -1
  27. package/dist/SvSheetInsertFunction.svelte +1 -1
  28. package/dist/SvSheetIteration.svelte +1 -1
  29. package/dist/SvSheetLink.svelte +1 -1
  30. package/dist/SvSheetManageRules.svelte +1 -1
  31. package/dist/SvSheetNameManager.svelte +1 -1
  32. package/dist/SvSheetPageSetup.svelte +1 -1
  33. package/dist/SvSheetPasteSpecial.svelte +1 -1
  34. package/dist/SvSheetPivot.svelte +1 -1
  35. package/dist/SvSheetProtectSheet.svelte +1 -1
  36. package/dist/SvSheetRemoveDuplicates.svelte +1 -1
  37. package/dist/SvSheetRibbon.svelte +1 -1
  38. package/dist/SvSheetSizeDialog.svelte +1 -1
  39. package/dist/SvSheetSort.svelte +1 -1
  40. package/dist/SvSheetSparklines.svelte +1 -1
  41. package/dist/SvSheetTable.svelte +1 -1
  42. package/dist/SvSheetTabs.svelte +1 -1
  43. package/dist/SvSheetTextToColumns.svelte +1 -1
  44. package/dist/SvSheetValidationAlert.svelte +1 -1
  45. package/dist/cdn/svgrid-enterprise.svelte-external.js +2 -2
  46. package/dist/designer/assets/{index-v61ZvIWw.js → index-CsdyIRos.js} +3 -3
  47. package/dist/designer/assets/{src-DkFgWld_.js → src-CSmsOfsG.js} +15 -15
  48. package/dist/designer/index.html +2 -2
  49. package/dist/fields/AiCell.svelte +41 -0
  50. package/dist/fields/AiCell.svelte.d.ts +5 -0
  51. package/dist/fields/AttachmentCell.svelte +1 -1
  52. package/dist/fields/AttachmentDialog.svelte +1 -1
  53. package/dist/fields/AttachmentEditor.svelte +1 -1
  54. package/dist/fields/AttachmentPreview.svelte +1 -1
  55. package/dist/fields/BaseAutomations.svelte +1 -1
  56. package/dist/fields/BaseChartView.svelte +1 -1
  57. package/dist/fields/BaseDashboardView.svelte +133 -0
  58. package/dist/fields/BaseDashboardView.svelte.d.ts +17 -0
  59. package/dist/fields/BaseImport.svelte +89 -0
  60. package/dist/fields/BaseImport.svelte.d.ts +15 -0
  61. package/dist/fields/BaseInboxView.svelte +112 -0
  62. package/dist/fields/BaseInboxView.svelte.d.ts +8 -0
  63. package/dist/fields/BaseListView.svelte +90 -0
  64. package/dist/fields/BaseListView.svelte.d.ts +8 -0
  65. package/dist/fields/BaseSearch.svelte +78 -0
  66. package/dist/fields/BaseSearch.svelte.d.ts +10 -0
  67. package/dist/fields/BaseTableView.svelte +28 -3
  68. package/dist/fields/BaseTableView.svelte.d.ts +5 -1
  69. package/dist/fields/BaseTabs.svelte +45 -8
  70. package/dist/fields/BaseTabs.svelte.d.ts +25 -1
  71. package/dist/fields/BaseTrash.svelte +63 -0
  72. package/dist/fields/BaseTrash.svelte.d.ts +15 -0
  73. package/dist/fields/CheckboxCell.svelte +1 -1
  74. package/dist/fields/ChecklistCell.svelte +22 -0
  75. package/dist/fields/ChecklistCell.svelte.d.ts +10 -0
  76. package/dist/fields/ChecklistEditor.svelte +81 -0
  77. package/dist/fields/ChecklistEditor.svelte.d.ts +12 -0
  78. package/dist/fields/ColorCell.svelte +13 -0
  79. package/dist/fields/ColorCell.svelte.d.ts +8 -0
  80. package/dist/fields/ColorEditor.svelte +60 -0
  81. package/dist/fields/ColorEditor.svelte.d.ts +11 -0
  82. package/dist/fields/DashboardRecords.svelte +35 -0
  83. package/dist/fields/DashboardRecords.svelte.d.ts +11 -0
  84. package/dist/fields/DashboardTileEditor.svelte +138 -0
  85. package/dist/fields/DashboardTileEditor.svelte.d.ts +15 -0
  86. package/dist/fields/DeleteFieldConfirm.svelte +1 -1
  87. package/dist/fields/DeleteRecordConfirm.svelte +1 -1
  88. package/dist/fields/FieldEditor.svelte +32 -3
  89. package/dist/fields/FieldInput.svelte +1 -1
  90. package/dist/fields/FieldsHeaderEnd.svelte +1 -1
  91. package/dist/fields/FootRowAdder.svelte +1 -1
  92. package/dist/fields/GroupHeader.svelte +3 -3
  93. package/dist/fields/LinkPickerEditor.svelte +1 -1
  94. package/dist/fields/LinkPreview.svelte +1 -1
  95. package/dist/fields/LinkedRecordView.svelte +1 -1
  96. package/dist/fields/LinkedRecordsCell.svelte +1 -1
  97. package/dist/fields/ListChips.svelte +21 -0
  98. package/dist/fields/ListChips.svelte.d.ts +9 -0
  99. package/dist/fields/LongTextEditor.svelte +1 -1
  100. package/dist/fields/MentionInput.svelte +59 -0
  101. package/dist/fields/MentionInput.svelte.d.ts +11 -0
  102. package/dist/fields/NumberEditor.svelte +1 -1
  103. package/dist/fields/OptionsEditor.svelte +1 -1
  104. package/dist/fields/PercentCell.svelte +1 -1
  105. package/dist/fields/PropertyInput.svelte +13 -10
  106. package/dist/fields/RatingCell.svelte +1 -1
  107. package/dist/fields/RatingEditor.svelte +1 -1
  108. package/dist/fields/RecordView.svelte +20 -25
  109. package/dist/fields/RowHeader.svelte +1 -1
  110. package/dist/fields/SelectCell.svelte +1 -1
  111. package/dist/fields/SelectEditor.svelte +1 -1
  112. package/dist/fields/SummaryCell.svelte +1 -1
  113. package/dist/fields/SvBase.svelte +48 -9
  114. package/dist/fields/SvBase.svelte.d.ts +33 -1
  115. package/dist/fields/SvBaseForm.svelte +2 -2
  116. package/dist/fields/SvBaseForm.svelte.d.ts +14 -0
  117. package/dist/fields/SvBaseViewBar.svelte +33 -12
  118. package/dist/fields/SvBaseViewBar.svelte.d.ts +2 -0
  119. package/dist/fields/TimeOfDayEditor.svelte +39 -0
  120. package/dist/fields/TimeOfDayEditor.svelte.d.ts +12 -0
  121. package/dist/fields/UserCell.svelte +1 -1
  122. package/dist/fields/activity.svelte.d.ts +29 -0
  123. package/dist/fields/activity.svelte.js +1 -1
  124. package/dist/fields/ai-field.svelte.d.ts +91 -0
  125. package/dist/fields/ai-field.svelte.js +1 -0
  126. package/dist/fields/ai-prompt.d.ts +64 -0
  127. package/dist/fields/ai-prompt.js +7 -0
  128. package/dist/fields/airtable.d.ts +90 -0
  129. package/dist/fields/airtable.js +1 -0
  130. package/dist/fields/bar-request.svelte.d.ts +1 -1
  131. package/dist/fields/base-history.d.ts +56 -0
  132. package/dist/fields/base-history.js +1 -0
  133. package/dist/fields/base-import.d.ts +54 -0
  134. package/dist/fields/base-import.js +2 -0
  135. package/dist/fields/base-search.d.ts +34 -0
  136. package/dist/fields/base-search.js +1 -0
  137. package/dist/fields/base-share.d.ts +45 -0
  138. package/dist/fields/base-share.js +1 -0
  139. package/dist/fields/base-sql.js +3 -3
  140. package/dist/fields/base-trash.d.ts +51 -0
  141. package/dist/fields/base-trash.js +1 -0
  142. package/dist/fields/builtin-types.js +1 -1
  143. package/dist/fields/chart-view.d.ts +12 -0
  144. package/dist/fields/chart-view.js +1 -1
  145. package/dist/fields/checklist.d.ts +36 -0
  146. package/dist/fields/checklist.js +4 -0
  147. package/dist/fields/color-value.d.ts +14 -0
  148. package/dist/fields/color-value.js +1 -0
  149. package/dist/fields/convert.js +1 -1
  150. package/dist/fields/copy-text.d.ts +1 -1
  151. package/dist/fields/copy-text.js +1 -1
  152. package/dist/fields/dashboard.d.ts +143 -0
  153. package/dist/fields/dashboard.js +1 -0
  154. package/dist/fields/field-access.svelte.d.ts +37 -0
  155. package/dist/fields/field-access.svelte.js +1 -0
  156. package/dist/fields/field-ops.js +1 -1
  157. package/dist/fields/filter-model.d.ts +4 -11
  158. package/dist/fields/filter-model.js +1 -1
  159. package/dist/fields/form-logic.d.ts +69 -0
  160. package/dist/fields/form-logic.js +1 -0
  161. package/dist/fields/formula.js +1 -1
  162. package/dist/fields/grid-access.d.ts +8 -0
  163. package/dist/fields/grid-access.js +1 -1
  164. package/dist/fields/index.d.ts +16 -0
  165. package/dist/fields/index.js +1 -1
  166. package/dist/fields/list-view.d.ts +40 -0
  167. package/dist/fields/list-view.js +1 -0
  168. package/dist/fields/mentions.d.ts +50 -0
  169. package/dist/fields/mentions.js +1 -0
  170. package/dist/fields/palette.d.ts +4 -2
  171. package/dist/fields/palette.js +1 -1
  172. package/dist/fields/record-menu.js +1 -1
  173. package/dist/fields/registry.svelte.d.ts +5 -0
  174. package/dist/fields/registry.svelte.js +1 -1
  175. package/dist/fields/time-of-day.d.ts +28 -0
  176. package/dist/fields/time-of-day.js +1 -0
  177. package/dist/fields/view-model.d.ts +24 -2
  178. package/dist/fields/view-model.js +1 -1
  179. package/dist/fields/viewbar/ChartPanel.svelte +1 -1
  180. package/dist/fields/viewbar/ColorPanel.svelte +1 -1
  181. package/dist/fields/viewbar/ConditionValue.svelte +4 -4
  182. package/dist/fields/viewbar/FilterPanel.svelte +1 -1
  183. package/dist/fields/viewbar/GanttPanel.svelte +1 -1
  184. package/dist/fields/viewbar/HideFieldsPanel.svelte +1 -1
  185. package/dist/fields/viewbar/ListPanel.svelte +36 -0
  186. package/dist/fields/viewbar/ListPanel.svelte.d.ts +11 -0
  187. package/dist/fields/viewbar/SortPanel.svelte +1 -1
  188. package/dist/fields/viewbar/ViewsMenu.svelte +27 -4
  189. package/dist/fields/viewbar/ViewsMenu.svelte.d.ts +6 -0
  190. package/dist/gantt/SvGridGantt.svelte +1 -1
  191. package/dist/node/studio.js +1 -1
  192. package/dist/review/RichCellMark.svelte +1 -1
  193. package/dist/review/SvReviewPanel.svelte +1 -1
  194. package/dist/server/SvGroupCell.svelte +1 -1
  195. package/dist/server/SvRowGroupPanel.svelte +1 -1
  196. package/dist/version.d.ts +2 -2
  197. package/dist/version.js +1 -1
  198. package/dist/wc/GridFind-DsTvdUXq.js +1 -0
  199. package/dist/wc/GridFooter-D-i8boBh.js +1 -0
  200. package/dist/wc/GridMenus-CYe9Fw2I.js +20 -0
  201. package/dist/wc/PinSplitter-LvyyrLhe.js +6 -0
  202. package/dist/wc/SvChartMenu-XKW_LOYw.js +1 -0
  203. package/dist/wc/SvDateRangeInput-CSOxqTB1.js +1 -0
  204. package/dist/wc/SvDateTimePicker-DvvFs2T9.js +4 -0
  205. package/dist/wc/SvField-BmQphyOs.js +20 -0
  206. package/dist/wc/SvForm-HD7y5vmk.js +46 -0
  207. package/dist/wc/SvGridCellEditor-776KAOe1.js +3 -0
  208. package/dist/wc/SvGridChart-DC7ZUhp8.js +171 -0
  209. package/dist/wc/SvGridChartBuilder-Dd3vWBvq.js +7 -0
  210. package/dist/wc/SvGridChartPanel-CwYjF46U.js +5 -0
  211. package/dist/wc/SvGridChartView-CSF38rBs.js +3 -0
  212. package/dist/wc/SvGridDropdown-4S1G7gsP.js +30 -0
  213. package/dist/wc/SvMenuList-D3ZLXjL_.js +1 -0
  214. package/dist/wc/SvModal-Dk0YwPWp.js +7 -0
  215. package/dist/wc/SvSwitchButton-DdZmc3ew.js +1 -0
  216. package/dist/wc/SvTabs-BI2cQHyw.js +2 -0
  217. package/dist/wc/base-react.d.ts +38 -0
  218. package/dist/wc/base-react.js +1 -0
  219. package/dist/wc/base-vue.d.ts +29 -0
  220. package/dist/wc/base-vue.js +1 -0
  221. package/dist/wc/board-RQp5fHPR.js +21 -0
  222. package/dist/wc/board-view.svelte-CpxuZcEg.js +1 -0
  223. package/dist/wc/card-marks.svelte-QwxIcKcZ.js +1 -0
  224. package/dist/wc/client-DNdLmGcu.js +3 -0
  225. package/dist/wc/createOverlay.svelte-CDw3RXgs.js +1 -0
  226. package/dist/wc/custom-filter-Dp8JxlQu.js +2 -0
  227. package/dist/wc/date-format-DtSmFyEB.js +18 -0
  228. package/dist/wc/editor-registry-CkKfcVLc.js +1 -0
  229. package/dist/wc/export-format-CGfE9_O5.js +5 -0
  230. package/dist/wc/gallery-CNOHNWEJ.js +4 -0
  231. package/dist/wc/gallery-view.svelte-27X-wCQH.js +1 -0
  232. package/dist/wc/grid-extension.svelte-hgqOteka.js +1 -0
  233. package/dist/wc/import-B9mIERCl.js +4 -0
  234. package/dist/wc/js-scroller.svelte-BP8Up6_q.js +1 -0
  235. package/dist/wc/license-CWVWqb-i.js +27 -0
  236. package/dist/wc/list-option-CI4nMshZ.js +1 -0
  237. package/dist/wc/react.d.ts +1 -0
  238. package/dist/wc/react.js +1 -1
  239. package/dist/wc/scheduler-CkVY4od-.js +147 -0
  240. package/dist/wc/scheduler-view.svelte-SzG7rU8b.js +1 -0
  241. package/dist/wc/sparkline-DWRBQubt.js +1 -0
  242. package/dist/wc/sv-base-element.d.ts +87 -0
  243. package/dist/wc/sv-base-element.js +273 -0
  244. package/dist/wc/sv-sheet-element.d.ts +2 -0
  245. package/dist/wc/sv-sheet-element.js +55 -55
  246. package/dist/wc/svelte-virtualizer.svelte-CSBwEZt9.js +1 -0
  247. package/dist/wc/types/sv-base-element.d.ts +87 -0
  248. package/dist/wc/vue.d.ts +1 -0
  249. package/dist/wc/vue.js +1 -1
  250. package/package.json +19 -4
@@ -0,0 +1,27 @@
1
+ var N=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),l=(e,t)=>e>>>t|e<<32-t;function K(e){let t=new TextEncoder().encode(e),r=t.length*8,n=Math.ceil((t.length+9)/64)*64,a=new Uint8Array(n);a.set(t),a[t.length]=128;let u=new DataView(a.buffer);u.setUint32(n-8,Math.floor(r/4294967296)),u.setUint32(n-4,r>>>0);let i=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint32Array(64);for(let p=0;p<n;p+=64){for(let o=0;o<16;o++)s[o]=u.getUint32(p+o*4);for(let o=16;o<64;o++){let k=l(s[o-15],7)^l(s[o-15],18)^s[o-15]>>>3,E=l(s[o-2],17)^l(s[o-2],19)^s[o-2]>>>10;s[o]=s[o-16]+k+s[o-7]+E>>>0}let d=i[0],f=i[1],g=i[2],w=i[3],c=i[4],v=i[5],x=i[6],S=i[7];for(let o=0;o<64;o++){let k=l(c,6)^l(c,11)^l(c,25),E=c&v^~c&x,D=S+k+E+N[o]+s[o]>>>0,B=(l(d,2)^l(d,13)^l(d,22))+(d&f^d&g^f&g)>>>0;S=x,x=v,v=c,c=w+D>>>0,w=g,g=f,f=d,d=D+B>>>0}i[0]=i[0]+d>>>0,i[1]=i[1]+f>>>0,i[2]=i[2]+g>>>0,i[3]=i[3]+w>>>0,i[4]=i[4]+c>>>0,i[5]=i[5]+v>>>0,i[6]=i[6]+x>>>0,i[7]=i[7]+S>>>0}let z="";for(let p of i)z+=p.toString(16).padStart(8,"0");return z}function I(e,t){return e==="suite"||t==="grid"}function A(e,t=new Date){return e==null||e.trim()===""?{status:"unset",valid:!1,edition:"suite"}:K(e.trim().toLowerCase())==="dabe98638cdc5760637bb2a741e65680a6ff0fb590d8b1018c9597650486cb10"?{status:"licensed",valid:!0,edition:"suite"}:{status:"invalid",valid:!1,edition:"suite"}}var P=new Set(["svgrid.com","www.svgrid.com"]);function q(){let e=globalThis.location?.hostname;return typeof e=="string"&&P.has(e.toLowerCase())}var h="data-svgrid-enterprise-watermark",m="data-svgrid-enterprise-nudged",V="https://svgrid.com/pricing/?utm_source=svgrid-enterprise&utm_medium=watermark",W="www.svgrid.com",J=5e3,R=700,$=!1,y=null;function G(){q()||(ee(),!(typeof document>"u"||typeof window>"u")&&(queueMicrotask(()=>Y()),y||(y=new MutationObserver(Q),y.observe(document.body,{childList:!0,subtree:!0}))))}var T=!1;function Q(e){for(let t of e){let r=t.target;if(!(r.nodeType===1&&r.closest?.(`.sv-grid-root[${m}]`))){X();return}}}function X(){if(T)return;T=!0;let e=()=>{T=!1,Y()};typeof requestAnimationFrame=="function"?requestAnimationFrame(e):setTimeout(e,16)}function Z(){y&&=(y.disconnect(),null),!(typeof document>"u")&&(document.querySelectorAll(`[${h}]`).forEach(e=>e.remove()),document.querySelectorAll(`[${m}]`).forEach(e=>e.removeAttribute(m)),$=!1)}function ee(){$||($=!0,!(typeof console>"u")&&console.log(`%c @svgrid/enterprise %c User is using a Commercial version which requires a license.
2
+ Contact sales@jqwidgets.com for details or visit the license page: https://svgrid.com/pricing/?utm_source=svgrid-enterprise&utm_medium=console`,"background:#4f46e5;color:#fff;padding:2px 6px;border-radius:3px;font-weight:600","color:inherit"))}function Y(){if(typeof document>"u")return;let e=document.querySelectorAll('.sv-grid-root, [role="grid"]');if(e.length===0){ie();return}document.querySelectorAll(`[${h}="fixed"]`).forEach(r=>r.remove());let t=new Set;e.forEach(r=>{let n=te(r);n&&t.add(n)}),t.forEach(re)}function te(e){let t=e.closest(".sv-grid-root");if(t)return t;let r=e;for(;r&&/^(TABLE|THEAD|TBODY|TFOOT|TR|COLGROUP)$/.test(r.tagName);)r=r.parentElement;return r}function re(e){if(e.hasAttribute(m))return;e.setAttribute(m,"1"),getComputedStyle(e).position==="static"&&(e.style.position="relative");let t=F("grid");M(t,!1),e.appendChild(t),H(t)}function ie(){if(typeof document>"u"||document.querySelector(`[${h}="fixed"]`))return;let e=F("fixed");M(e,!0),document.body.appendChild(e),H(e)}function F(e){let t=document.createElement("a");return t.setAttribute(h,e),t.href=V,t.target="_blank",t.rel="noopener noreferrer",t.textContent=W,t.title="Unlicensed @svgrid/enterprise. Contact sales@jqwidgets.com or visit www.svgrid.com.",t}function H(e){if(typeof window>"u"){e.remove();return}window.setTimeout(()=>{if(typeof window>"u"){e.remove();return}e.style.opacity="0",window.setTimeout(()=>e.remove(),R)},J)}function M(e,t){Object.assign(e.style,{position:t?"fixed":"absolute",bottom:t?"12px":"6px",right:t?"12px":"8px",zIndex:"2147483647",background:"rgba(15,23,42,0.85)",color:"#fff",padding:t?"6px 10px":"4px 8px",borderRadius:t?"4px":"3px",fontFamily:'-apple-system, "Segoe UI", Roboto, sans-serif',fontSize:t?"11px":"10px",lineHeight:"1.2",textDecoration:"none",boxShadow:t?"0 2px 12px rgba(0,0,0,0.35)":"0 1px 4px rgba(0,0,0,0.3)",border:"1px solid rgba(255,255,255,0.18)",pointerEvents:"auto",letterSpacing:"0.02em",opacity:"1",transition:`opacity ${R}ms ease`})}var C="data-svgrid-enterprise-upgrade",oe="https://svgrid.com/pricing?ref=in-app&utm_source=svgrid-enterprise&utm_medium=upgrade-prompt",ne="https://svgrid.com/docs/enterprise/evaluation/?utm_source=svgrid-enterprise&utm_medium=upgrade-prompt",_=!1;function se(e,t){if(_||typeof document>"u"||typeof window>"u"||q()||document.querySelector(`[${C}]`))return;_=!0;let r=le(e,t?.expired===!0);document.body.appendChild(r),requestAnimationFrame(()=>{r.style.opacity="1",r.style.transform="translateY(0)"})}function ae(){_=!1,!(typeof document>"u")&&document.querySelectorAll(`[${C}]`).forEach(e=>e.remove())}function L(e){e.style.opacity="0",e.style.transform="translateY(8px)",window.setTimeout(()=>e.remove(),220)}function le(e,t=!1){let r=document.createElement("div");r.setAttribute(C,"1"),r.setAttribute("role","dialog"),r.setAttribute("aria-label",t?"Your evaluation has ended":"SvGrid Enterprise"),Object.assign(r.style,{position:"fixed",bottom:"16px",right:"16px",zIndex:"2147483646",width:"320px",maxWidth:"calc(100vw - 32px)",boxSizing:"border-box",padding:"16px 16px 14px",background:"#0f172a",color:"#e2e8f0",borderRadius:"12px",border:"1px solid rgba(99,102,241,0.4)",boxShadow:"0 12px 40px rgba(0,0,0,0.45)",fontFamily:'-apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',fontSize:"13px",lineHeight:"1.45",opacity:"0",transform:"translateY(8px)",transition:"opacity 220ms ease, transform 220ms ease"});let n=e?`<strong style="color:#fff">${de(e?String(e):"This")}</strong> is part of SvGrid Enterprise.`:'You just used a <strong style="color:#fff">SvGrid Enterprise</strong> feature.',a=t?"EVALUATION ENDED":"ENTERPRISE",u=t?"Your evaluation has ended":"SvGrid Enterprise",i=t?`${n} Everything still works, but this notice stays until a
3
+ license key is set.`:`${n} It keeps working as it is, here and in production. A
4
+ license key removes the watermark and this notice.`;return r.innerHTML=`
5
+ <button type="button" data-act="x" aria-label="Dismiss"
6
+ style="position:absolute;top:8px;right:8px;width:24px;height:24px;display:flex;
7
+ align-items:center;justify-content:center;background:transparent;border:0;
8
+ color:#94a3b8;font-size:18px;line-height:1;cursor:pointer;border-radius:6px;">&times;</button>
9
+ <div style="display:flex;align-items:center;gap:8px;margin-bottom:8px;">
10
+ <span style="display:inline-block;background:${t?"#b45309":"#4f46e5"};color:#fff;font-size:10px;
11
+ font-weight:700;letter-spacing:0.06em;padding:2px 7px;border-radius:999px;">${a}</span>
12
+ <span style="font-weight:700;color:#fff;">${u}</span>
13
+ </div>
14
+ <p style="margin:0 0 12px;color:#cbd5e1;">
15
+ ${i}
16
+ </p>
17
+ <div style="display:flex;gap:8px;align-items:center;">
18
+ <a data-act="plans" href="${oe}" target="_blank" rel="noopener noreferrer"
19
+ style="flex:1;text-align:center;background:#6366f1;color:#fff;font-weight:600;
20
+ text-decoration:none;padding:8px 12px;border-radius:8px;">${t?"Buy a license":"See plans"}</a>
21
+ <a data-act="evaluation" href="${ne}" target="_blank" rel="noopener noreferrer"
22
+ style="color:#a5b4fc;text-decoration:none;padding:8px 6px;font-weight:600;">How evaluation works</a>
23
+ </div>
24
+ <p style="margin:10px 0 0;font-size:11px;color:#64748b;">
25
+ Already licensed? Call <code style="color:#94a3b8;">setLicenseKey()</code> at startup to hide this.
26
+ </p>
27
+ `,r.querySelector('[data-act="x"]')?.addEventListener("click",()=>L(r)),r.querySelector('[data-act="plans"]')?.addEventListener("click",()=>L(r)),r.querySelector('[data-act="evaluation"]')?.addEventListener("click",()=>L(r)),r}function de(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}var b=null,U=!1,O=new Set;function ce(e){if(U)return;U=!0;let t=e.expiresAt?` on ${e.expiresAt.toISOString().slice(0,10)}`:"";console.info(`@svgrid/enterprise: your evaluation license expired${t}. Everything still works, but the watermark and upgrade notice stay until a license key is set. Contact sales@jqwidgets.com or see https://svgrid.com/pricing/?utm_source=svgrid-enterprise&utm_medium=console`)}function ue(e){return e.status==="dev"||e.status==="eval"}var j=!1;function pe(e){j||e.status!=="invalid"&&e.status!=="revoked"||q()||(j=!0,console.warn("@svgrid/enterprise: the license key passed to setLicenseKey() is not valid, so the watermark stays. Copy the key from your order email, or contact sales@jqwidgets.com."))}function fe(e){if(typeof e!="string"||e.length===0)throw Error("@svgrid/enterprise: setLicenseKey() requires a non-empty string");b=e,U=!1,j=!1,O.clear()}function ge(){return A(b).valid}var me={grid:"the enterprise grid",spreadsheet:"the spreadsheet",base:"SvGrid Base",studio:"the Studio"};function ye(e){O.has(e)||(O.add(e),console.info(`@svgrid/enterprise: your Grid license does not cover ${me[e]}. Everything still works, but the watermark and upgrade notice stay until the license is upgraded to Suite. Contact sales@jqwidgets.com or see https://svgrid.com/pricing/?utm_source=svgrid-enterprise&utm_medium=console`))}function ve(e){let t=A(b);return t.valid&&I(t.edition,e)}function xe(e,t){let r=A(b),n=r.valid&&I(r.edition,e),a=ue(r)&&r.expired===!0;if(n&&!a)return;pe(r);let u=r.valid&&!a&&!n;G(),u?ye(e):a&&ce(r),se(t,{expired:a})}export{ae as a,fe as i,ve as n,Z as o,xe as r,G as s,ge as t};
@@ -0,0 +1 @@
1
+ function f(t){return t?t.map(e=>{if(typeof e=="object"&&e){let r=e,n=r.value??r.label??"";return{...r,value:n,label:r.label??String(n)}}return{value:e,label:String(e)}}):[]}function g(t,e){let r=e.trim().toLowerCase();return r?t.filter(n=>n.label.toLowerCase().includes(r)):[...t]}function p(t){let e=[],r=new Map;return t.forEach((n,u)=>{let o=n.group??null,l=r.get(o);l||(l={group:o,options:[]},r.set(o,l),e.push(l)),l.options.push({...n,index:u})}),e}function h(t,e){let r=Math.max(1,e.groupHeaderHeight??28),n=e.rowHeight,u=a=>Math.max(1,typeof n=="function"?n(a,a.index):n),o=[],l=Array(t.length),i=!1;for(let a of p(t)){a.group!=null&&(i=!0,o.push({type:"group",label:a.group,size:r}));for(let s of a.options)l[s.index]=o.length,o.push({type:"option",opt:s,size:u(s)})}return{entries:o,hasGroups:i,sizeAt:a=>o[a]?.size??0,optionFlatIndex:l}}function c(t,e,r){let n=e.trim().toLowerCase();if(!n||!t.length)return-1;let u=t.length;for(let o=1;o<=u;o++){let l=(r+o)%u,i=t[l];if(i&&!i.disabled&&i.label.toLowerCase().startsWith(n))return l}return-1}function y(t=600){let e="",r;return{get value(){return e},push(n){return e+=n,r&&clearTimeout(r),r=setTimeout(()=>{e=""},t),e},clear(){e="",r&&clearTimeout(r)}}}function b(t){return t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&t.key!==" "}export{b as a,p as i,g as n,c as o,h as r,f as s,y as t};
@@ -26,6 +26,7 @@ export interface SvSheetProps {
26
26
  showTabs?: boolean
27
27
  showStatusBar?: boolean
28
28
  presence?: readonly unknown[]
29
+ licenseKey?: string
29
30
  onAction?: (detail: { action: unknown; cmd: unknown }, event: CustomEvent) => void
30
31
  onCellaction?: (detail: unknown, event: CustomEvent) => void
31
32
  onReady?: (detail: { api: unknown; document: unknown }, event: CustomEvent) => void
package/dist/wc/react.js CHANGED
@@ -1 +1 @@
1
- import{createElement as R,forwardRef as S,useEffect as h,useImperativeHandle as b,useRef as u}from"react";import"@svgrid/enterprise/wc";var g=["document","workbook","data","gridSheets","rows","columns","height","columnWidth","rowHeight","look","columnWidths","formats","extras","localization","commentAuthor","showRibbon","showFormulaBar","showTabs","showStatusBar","presence"],k=[["onAction","action"],["onCellaction","cellaction"],["onReady","ready"],["onChange","change"],["onPresence","presence"]],m=S(function(v,p){const o=u(null),{className:w,style:y,...s}=v,l=u({});h(()=>{const e=o.current;if(e)for(const t of g){const n=s[t];n===void 0||Object.is(l.current[t],n)||(l.current[t]=n,e[t]=n)}});const c=u(s);return c.current=s,h(()=>{const e=o.current;if(!e)return;const t=[];for(const[a,r]of k){const d=f=>{const E=c.current[a];E?.(f.detail,f)};e.addEventListener(r,d),t.push([r,d])}const n=c.current.onReady,i=e.api;return n&&i!=null&&n({api:i,document:e.document},new CustomEvent("ready")),()=>{for(const[a,r]of t)e.removeEventListener(a,r)}},[]),b(p,()=>({get element(){return o.current}}),[]),R("sv-sheet",{ref:o,class:w,style:{display:"block",...y}})});export{m as SvSheet,m as default};
1
+ import{createElement as R,forwardRef as S,useEffect as h,useImperativeHandle as b,useRef as l}from"react";import"@svgrid/enterprise/wc";var g=["document","workbook","data","gridSheets","rows","columns","height","columnWidth","rowHeight","look","columnWidths","formats","extras","localization","commentAuthor","showRibbon","showFormulaBar","showTabs","showStatusBar","presence","licenseKey"],k=[["onAction","action"],["onCellaction","cellaction"],["onReady","ready"],["onChange","change"],["onPresence","presence"]],m=S(function(v,p){const o=l(null),{className:w,style:y,...s}=v,u=l({});h(()=>{const e=o.current;if(e)for(const t of g){const n=s[t];n===void 0||Object.is(u.current[t],n)||(u.current[t]=n,e[t]=n)}});const c=l(s);return c.current=s,h(()=>{const e=o.current;if(!e)return;const t=[];for(const[a,r]of k){const d=f=>{const E=c.current[a];E?.(f.detail,f)};e.addEventListener(r,d),t.push([r,d])}const n=c.current.onReady,i=e.api;return n&&i!=null&&n({api:i,document:e.document},new CustomEvent("ready")),()=>{for(const[a,r]of t)e.removeEventListener(a,r)}},[]),b(p,()=>({get element(){return o.current}}),[]),R("sv-sheet",{ref:o,class:w,style:{display:"block",...y}})});export{m as SvSheet,m as default};