@svgrid/enterprise 3.1.8 → 3.1.9

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 (268) hide show
  1. package/README.md +1 -0
  2. package/dist/SvAlertRuleEditor.svelte +16 -5
  3. package/dist/SvGridAlerts.svelte +8 -0
  4. package/dist/SvGridAlerts.svelte.d.ts +4 -0
  5. package/dist/SvGridBoard.svelte +69 -10
  6. package/dist/SvGridBulkEditDrawer.svelte +13 -5
  7. package/dist/SvGridGallery.svelte +286 -0
  8. package/dist/SvGridGallery.svelte.d.ts +30 -0
  9. package/dist/SvGridScheduler.svelte +33 -11
  10. package/dist/SvGridSelectionBar.svelte +47 -0
  11. package/dist/advanced-filter/expr-columns-from-grid.d.ts +1 -0
  12. package/dist/advanced-filter/expr-columns-from-grid.js +11 -7
  13. package/dist/advanced-filter-enable.d.ts +6 -0
  14. package/dist/advanced-filter-enable.js +8 -0
  15. package/dist/alerts/alert-engine.d.ts +7 -0
  16. package/dist/alerts/alert-engine.js +5 -2
  17. package/dist/alerts/condition-editor.d.ts +26 -0
  18. package/dist/alerts/condition-editor.js +17 -0
  19. package/dist/base/index.d.ts +20 -0
  20. package/dist/base/index.js +20 -0
  21. package/dist/bulk-edit.d.ts +11 -0
  22. package/dist/bulk-edit.js +18 -1
  23. package/dist/cdn/svgrid-enterprise.svelte-external.js +11197 -10639
  24. package/dist/designer/assets/GridFooter-Cu8_yBlQ.js +2 -0
  25. package/dist/designer/assets/GridMenus-BUjkkAU2.js +6 -0
  26. package/dist/designer/assets/PinSplitter-BgTpgh1d.css +1 -0
  27. package/dist/designer/assets/PinSplitter-C5AwA1xV.js +1 -0
  28. package/dist/designer/assets/SvGrid.helpers-CIrmIo9U.js +1 -0
  29. package/dist/designer/assets/SvGridCellEditor-CJxThKL_.js +4 -0
  30. package/dist/designer/assets/SvListBox-CS7oUAiX.js +2 -0
  31. package/dist/designer/assets/conditional-formatting-MDWbF8_Y.js +1 -0
  32. package/dist/designer/assets/grid-extension.svelte-BZ7AqyJI.js +1 -0
  33. package/dist/designer/assets/{index-Obk8sI77.js → index-BPU2KNc5.js} +307 -307
  34. package/dist/designer/assets/index-BmvG99kR.css +1 -0
  35. package/dist/designer/assets/sparkline-C-NcnB2i.js +1 -0
  36. package/dist/designer/assets/src-C_U1NKOY.js +58 -0
  37. package/dist/designer/assets/sv-grid-scrollbar-B9N6Wuj0.js +109 -0
  38. package/dist/designer/assets/validate-H5u2HEQh.js +1 -0
  39. package/dist/designer/index.html +11 -7
  40. package/dist/expressions/compile.js +10 -0
  41. package/dist/expressions/evaluate.js +18 -0
  42. package/dist/expressions/expression-types.d.ts +10 -0
  43. package/dist/expressions/kinds.d.ts +28 -0
  44. package/dist/expressions/kinds.js +19 -0
  45. package/dist/expressions/parse.js +9 -1
  46. package/dist/fields/AttachmentCell.svelte +242 -0
  47. package/dist/fields/AttachmentCell.svelte.d.ts +5 -0
  48. package/dist/fields/AttachmentDialog.svelte +357 -0
  49. package/dist/fields/AttachmentDialog.svelte.d.ts +13 -0
  50. package/dist/fields/AttachmentEditor.svelte +41 -0
  51. package/dist/fields/AttachmentEditor.svelte.d.ts +11 -0
  52. package/dist/fields/AttachmentPreview.svelte +72 -0
  53. package/dist/fields/AttachmentPreview.svelte.d.ts +8 -0
  54. package/dist/fields/BarcodeCell.svelte +20 -0
  55. package/dist/fields/BarcodeCell.svelte.d.ts +5 -0
  56. package/dist/fields/BaseAutomations.svelte +558 -0
  57. package/dist/fields/BaseAutomations.svelte.d.ts +18 -0
  58. package/dist/fields/BaseChartView.svelte +47 -0
  59. package/dist/fields/BaseChartView.svelte.d.ts +8 -0
  60. package/dist/fields/BaseTableView.svelte +185 -0
  61. package/dist/fields/BaseTableView.svelte.d.ts +37 -0
  62. package/dist/fields/BaseTabs.svelte +308 -0
  63. package/dist/fields/BaseTabs.svelte.d.ts +21 -0
  64. package/dist/fields/ButtonCell.svelte +47 -0
  65. package/dist/fields/ButtonCell.svelte.d.ts +20 -0
  66. package/dist/fields/CheckboxCell.svelte +46 -0
  67. package/dist/fields/CheckboxCell.svelte.d.ts +14 -0
  68. package/dist/fields/DeleteFieldConfirm.svelte +80 -0
  69. package/dist/fields/DeleteFieldConfirm.svelte.d.ts +8 -0
  70. package/dist/fields/DeleteRecordConfirm.svelte +48 -0
  71. package/dist/fields/DeleteRecordConfirm.svelte.d.ts +9 -0
  72. package/dist/fields/FieldCell.svelte +80 -0
  73. package/dist/fields/FieldCell.svelte.d.ts +9 -0
  74. package/dist/fields/FieldEditor.svelte +321 -0
  75. package/dist/fields/FieldEditor.svelte.d.ts +10 -0
  76. package/dist/fields/FieldInput.svelte +188 -0
  77. package/dist/fields/FieldInput.svelte.d.ts +29 -0
  78. package/dist/fields/FieldsHeaderEnd.svelte +146 -0
  79. package/dist/fields/FieldsHeaderEnd.svelte.d.ts +6 -0
  80. package/dist/fields/FootRowAdder.svelte +8 -0
  81. package/dist/fields/FootRowAdder.svelte.d.ts +6 -0
  82. package/dist/fields/GroupHeader.svelte +127 -0
  83. package/dist/fields/GroupHeader.svelte.d.ts +24 -0
  84. package/dist/fields/LinkCell.svelte +46 -0
  85. package/dist/fields/LinkCell.svelte.d.ts +9 -0
  86. package/dist/fields/LinkPickerEditor.svelte +172 -0
  87. package/dist/fields/LinkPickerEditor.svelte.d.ts +9 -0
  88. package/dist/fields/LinkPreview.svelte +60 -0
  89. package/dist/fields/LinkPreview.svelte.d.ts +7 -0
  90. package/dist/fields/LinkedRecordView.svelte +94 -0
  91. package/dist/fields/LinkedRecordView.svelte.d.ts +9 -0
  92. package/dist/fields/LinkedRecordsCell.svelte +59 -0
  93. package/dist/fields/LinkedRecordsCell.svelte.d.ts +11 -0
  94. package/dist/fields/LongTextEditor.svelte +157 -0
  95. package/dist/fields/LongTextEditor.svelte.d.ts +11 -0
  96. package/dist/fields/NumberEditor.svelte +309 -0
  97. package/dist/fields/NumberEditor.svelte.d.ts +12 -0
  98. package/dist/fields/OptionsEditor.svelte +117 -0
  99. package/dist/fields/OptionsEditor.svelte.d.ts +11 -0
  100. package/dist/fields/PercentCell.svelte +21 -0
  101. package/dist/fields/PercentCell.svelte.d.ts +8 -0
  102. package/dist/fields/PropertyInput.svelte +204 -0
  103. package/dist/fields/PropertyInput.svelte.d.ts +11 -0
  104. package/dist/fields/RatingCell.svelte +75 -0
  105. package/dist/fields/RatingCell.svelte.d.ts +16 -0
  106. package/dist/fields/RatingEditor.svelte +82 -0
  107. package/dist/fields/RatingEditor.svelte.d.ts +9 -0
  108. package/dist/fields/RecordView.svelte +310 -0
  109. package/dist/fields/RecordView.svelte.d.ts +11 -0
  110. package/dist/fields/RichTextCell.svelte +30 -0
  111. package/dist/fields/RichTextCell.svelte.d.ts +5 -0
  112. package/dist/fields/RowAdder.svelte +93 -0
  113. package/dist/fields/RowAdder.svelte.d.ts +7 -0
  114. package/dist/fields/RowHeader.svelte +99 -0
  115. package/dist/fields/RowHeader.svelte.d.ts +11 -0
  116. package/dist/fields/SelectCell.svelte +35 -0
  117. package/dist/fields/SelectCell.svelte.d.ts +15 -0
  118. package/dist/fields/SelectEditor.svelte +350 -0
  119. package/dist/fields/SelectEditor.svelte.d.ts +17 -0
  120. package/dist/fields/SummaryCell.svelte +160 -0
  121. package/dist/fields/SummaryCell.svelte.d.ts +11 -0
  122. package/dist/fields/SvBase.svelte +545 -0
  123. package/dist/fields/SvBase.svelte.d.ts +30 -0
  124. package/dist/fields/SvBaseForm.svelte +295 -0
  125. package/dist/fields/SvBaseForm.svelte.d.ts +22 -0
  126. package/dist/fields/SvBaseViewBar.svelte +644 -0
  127. package/dist/fields/SvBaseViewBar.svelte.d.ts +26 -0
  128. package/dist/fields/UserCell.svelte +39 -0
  129. package/dist/fields/UserCell.svelte.d.ts +9 -0
  130. package/dist/fields/UserFace.svelte +30 -0
  131. package/dist/fields/UserFace.svelte.d.ts +12 -0
  132. package/dist/fields/activity.svelte.d.ts +50 -0
  133. package/dist/fields/activity.svelte.js +110 -0
  134. package/dist/fields/attachments.d.ts +95 -0
  135. package/dist/fields/attachments.js +145 -0
  136. package/dist/fields/automation-outbound.d.ts +46 -0
  137. package/dist/fields/automation-outbound.js +61 -0
  138. package/dist/fields/automation-server.d.ts +53 -0
  139. package/dist/fields/automation-server.js +333 -0
  140. package/dist/fields/automations.svelte.d.ts +208 -0
  141. package/dist/fields/automations.svelte.js +437 -0
  142. package/dist/fields/bar-request.svelte.d.ts +16 -0
  143. package/dist/fields/bar-request.svelte.js +15 -0
  144. package/dist/fields/base-alerts.d.ts +24 -0
  145. package/dist/fields/base-alerts.js +64 -0
  146. package/dist/fields/base-connect.d.ts +82 -0
  147. package/dist/fields/base-connect.js +271 -0
  148. package/dist/fields/base-schema.d.ts +104 -0
  149. package/dist/fields/base-schema.js +266 -0
  150. package/dist/fields/base-sql.d.ts +62 -0
  151. package/dist/fields/base-sql.js +251 -0
  152. package/dist/fields/base-sync.d.ts +142 -0
  153. package/dist/fields/base-sync.js +499 -0
  154. package/dist/fields/base-tables.d.ts +89 -0
  155. package/dist/fields/base-tables.js +349 -0
  156. package/dist/fields/builtin-types.d.ts +13 -0
  157. package/dist/fields/builtin-types.js +773 -0
  158. package/dist/fields/button.d.ts +2 -0
  159. package/dist/fields/button.js +17 -0
  160. package/dist/fields/chart-view.d.ts +35 -0
  161. package/dist/fields/chart-view.js +154 -0
  162. package/dist/fields/column-order.d.ts +6 -0
  163. package/dist/fields/column-order.js +12 -0
  164. package/dist/fields/convert.d.ts +16 -0
  165. package/dist/fields/convert.js +176 -0
  166. package/dist/fields/copy-text.d.ts +13 -0
  167. package/dist/fields/copy-text.js +45 -0
  168. package/dist/fields/editor-request.svelte.d.ts +71 -0
  169. package/dist/fields/editor-request.svelte.js +52 -0
  170. package/dist/fields/field-ops.d.ts +72 -0
  171. package/dist/fields/field-ops.js +334 -0
  172. package/dist/fields/filter-model.d.ts +84 -0
  173. package/dist/fields/filter-model.js +446 -0
  174. package/dist/fields/format.d.ts +109 -0
  175. package/dist/fields/format.js +288 -0
  176. package/dist/fields/formula.d.ts +50 -0
  177. package/dist/fields/formula.js +530 -0
  178. package/dist/fields/grid-access.d.ts +60 -0
  179. package/dist/fields/grid-access.js +120 -0
  180. package/dist/fields/index.d.ts +34 -0
  181. package/dist/fields/index.js +312 -0
  182. package/dist/fields/linked-fields.d.ts +8 -0
  183. package/dist/fields/linked-fields.js +40 -0
  184. package/dist/fields/links.d.ts +10 -0
  185. package/dist/fields/links.js +46 -0
  186. package/dist/fields/name-list.d.ts +16 -0
  187. package/dist/fields/name-list.js +49 -0
  188. package/dist/fields/palette.d.ts +47 -0
  189. package/dist/fields/palette.js +69 -0
  190. package/dist/fields/record-delete.svelte.d.ts +12 -0
  191. package/dist/fields/record-delete.svelte.js +5 -0
  192. package/dist/fields/record-menu.d.ts +9 -0
  193. package/dist/fields/record-menu.js +78 -0
  194. package/dist/fields/registry.svelte.d.ts +176 -0
  195. package/dist/fields/registry.svelte.js +51 -0
  196. package/dist/fields/rich-text.d.ts +23 -0
  197. package/dist/fields/rich-text.js +48 -0
  198. package/dist/fields/row-color-choice.svelte.d.ts +31 -0
  199. package/dist/fields/row-color-choice.svelte.js +25 -0
  200. package/dist/fields/row-colors.d.ts +36 -0
  201. package/dist/fields/row-colors.js +90 -0
  202. package/dist/fields/row-height.d.ts +28 -0
  203. package/dist/fields/row-height.js +50 -0
  204. package/dist/fields/sources.svelte.d.ts +80 -0
  205. package/dist/fields/sources.svelte.js +131 -0
  206. package/dist/fields/summaries.d.ts +18 -0
  207. package/dist/fields/summaries.js +138 -0
  208. package/dist/fields/view-model.d.ts +129 -0
  209. package/dist/fields/view-model.js +492 -0
  210. package/dist/fields/viewbar/ChartPanel.svelte +61 -0
  211. package/dist/fields/viewbar/ChartPanel.svelte.d.ts +9 -0
  212. package/dist/fields/viewbar/ColorPanel.svelte +112 -0
  213. package/dist/fields/viewbar/ColorPanel.svelte.d.ts +9 -0
  214. package/dist/fields/viewbar/ConditionValue.svelte +153 -0
  215. package/dist/fields/viewbar/ConditionValue.svelte.d.ts +15 -0
  216. package/dist/fields/viewbar/FieldIcon.svelte +18 -0
  217. package/dist/fields/viewbar/FieldIcon.svelte.d.ts +9 -0
  218. package/dist/fields/viewbar/FilterPanel.svelte +192 -0
  219. package/dist/fields/viewbar/FilterPanel.svelte.d.ts +13 -0
  220. package/dist/fields/viewbar/GanttPanel.svelte +60 -0
  221. package/dist/fields/viewbar/GanttPanel.svelte.d.ts +10 -0
  222. package/dist/fields/viewbar/HideFieldsPanel.svelte +104 -0
  223. package/dist/fields/viewbar/HideFieldsPanel.svelte.d.ts +7 -0
  224. package/dist/fields/viewbar/SortPanel.svelte +85 -0
  225. package/dist/fields/viewbar/SortPanel.svelte.d.ts +8 -0
  226. package/dist/fields/viewbar/ViewsMenu.svelte +250 -0
  227. package/dist/fields/viewbar/ViewsMenu.svelte.d.ts +15 -0
  228. package/dist/fields/viewbar/panel-focus.d.ts +3 -0
  229. package/dist/fields/viewbar/panel-focus.js +22 -0
  230. package/dist/fields/viewbar/sort-state.d.ts +20 -0
  231. package/dist/fields/viewbar/sort-state.js +24 -0
  232. package/dist/gallery.d.ts +7 -0
  233. package/dist/gallery.js +36 -0
  234. package/dist/gantt/SvGridGantt.svelte +88 -16
  235. package/dist/gantt/gantt-config.d.ts +28 -0
  236. package/dist/index.d.ts +3 -0
  237. package/dist/index.js +6 -0
  238. package/dist/install.js +3 -0
  239. package/dist/license-core.d.ts +3 -3
  240. package/dist/license.js +1 -0
  241. package/dist/node/studio.js +105 -4
  242. package/dist/scheduler-config.d.ts +11 -0
  243. package/dist/sources/introspect-supabase.js +4 -1
  244. package/dist/sources/rest.js +6 -2
  245. package/dist/studio/ui-components.generated.js +93 -1
  246. package/dist/upgrade-prompt.d.ts +1 -1
  247. package/dist/version.d.ts +2 -2
  248. package/dist/version.js +2 -2
  249. package/dist/wc/GridFooter-f5K0aLe_.js +145 -0
  250. package/dist/wc/GridMenus-FtSN_8t9.js +1369 -0
  251. package/dist/wc/PinSplitter-D-qtDhSM.js +132 -0
  252. package/dist/wc/{SvGrid.helpers-zBkDTryR.js → SvGrid.helpers-B2GEKrxS.js} +84 -36
  253. package/dist/wc/{SvGridCellEditor-CzUKEbkI.js → SvGridCellEditor-B_cLJrsp.js} +20 -9
  254. package/dist/wc/conditional-formatting-BXis_oP1.js +189 -0
  255. package/dist/wc/grid-extension.svelte-Bufq4B4C.js +20 -0
  256. package/dist/wc/sv-sheet-element.js +7556 -7617
  257. package/dist/wc/svelte-virtualizer.svelte-ehwOupl-.js +360 -0
  258. package/dist/wc/{validate-43C03DLP.js → validate-BaMO8UPE.js} +1 -1
  259. package/package.json +14 -3
  260. package/dist/designer/assets/GridMenus-CvcASlKv.js +0 -8
  261. package/dist/designer/assets/SvGrid.helpers-DE5mmORW.js +0 -1
  262. package/dist/designer/assets/SvGridCellEditor-C7NWcnNC.js +0 -4
  263. package/dist/designer/assets/SvListBox-BlmmzYcU.js +0 -110
  264. package/dist/designer/assets/index-KmSEY7Lb.css +0 -1
  265. package/dist/designer/assets/src-DqHCqori.js +0 -58
  266. package/dist/designer/assets/validate-B71dE1Cs.js +0 -1
  267. package/dist/wc/GridMenus-fWbBUiRH.js +0 -1088
  268. package/dist/wc/svelte-virtualizer.svelte-Dntdh8Ms.js +0 -581
@@ -6599,6 +6599,13 @@ export const GENERATED_UI_SURFACE = {
6599
6599
  "description": "Kanban board mode. When set, the grid renders its rows as cards in horizontal lanes (bucketed by `board.groupBy`) instead of a table. See .",
6600
6600
  "group": "common"
6601
6601
  },
6602
+ {
6603
+ "key": "gallery",
6604
+ "label": "Gallery",
6605
+ "type": "json",
6606
+ "description": "Gallery mode. When set, the grid renders its rows as cards (a cover image, a title, a few fields) instead of a table. See .",
6607
+ "group": "common"
6608
+ },
6602
6609
  {
6603
6610
  "key": "scheduler",
6604
6611
  "label": "Scheduler",
@@ -6648,6 +6655,55 @@ export const GENERATED_UI_SURFACE = {
6648
6655
  "description": "Floating bar that appears over the grid while rows are selected, showing the count and the actions that apply to the whole selection - the pattern an issue tracker uses for bulk edit. `true` gives the count and a Clear button. An array is the shorthand for `{ actions }`. Pass to also set `position` (`'bottom'` default, or `'top'`), `maxVisible` and `hideClear`. Omitted / `false` is off. Default **off**. This is chrome that floats over your content, not a gesture: it overlaps a row, and what belongs on it is specific to the app. **The prop and its types are free; the bar itself is an Enterprise feature.** Install `@svgrid/enterprise` and call `enableSelectionBar()` (or `installEnterprise`, which does it for you) to render it - without that the grid shows a short upsell note in its place, the same way the scheduler and board views do.",
6649
6656
  "group": "common"
6650
6657
  },
6658
+ {
6659
+ "key": "rowAdder",
6660
+ "label": "Row Adder",
6661
+ "type": "boolean",
6662
+ "description": "A \"+ Add row\" line under the last row. Clicking it (or Enter on it) appends a row, scrolls to it and starts editing its first editable cell. `true` uses the defaults; pass for the label and the new row's values. **The prop and its types are free; the row adder is drawn by the Enterprise `@svgrid/enterprise/fields` module** (`enableFields()`). Without it the prop does nothing.",
6663
+ "group": "common"
6664
+ },
6665
+ {
6666
+ "key": "rowColor",
6667
+ "label": "Row Color",
6668
+ "type": "json",
6669
+ "description": "Color rows by a status: by a select field (each row takes its option's `color`) or by rules (first match wins). The color shows on the row header by default (a 3px stripe at the start of the row-number cell); `target` moves it to a stripe in the first cell or a tint across the row. The row header also gets the status as its title, so the color is never the only signal. Computed for rendered rows only. **The prop and its types are free; the colors are drawn by the Enterprise `@svgrid/enterprise/fields` module** (`enableFields()`).",
6670
+ "group": "common"
6671
+ },
6672
+ {
6673
+ "key": "columnAdder",
6674
+ "label": "Column Adder",
6675
+ "type": "boolean",
6676
+ "description": "A \"+\" header cell after the last column that opens the field editor: a name, a field type and that type's properties. Creating adds the column and fires `onColumnAdd`; the grid never stores a schema, the app does. `{ types }` limits the types offered. **Drawn by the Enterprise `@svgrid/enterprise/fields` module.**",
6677
+ "group": "common"
6678
+ },
6679
+ {
6680
+ "key": "fieldMenu",
6681
+ "label": "Field Menu",
6682
+ "type": "boolean",
6683
+ "description": "Field actions in each column's menu: Edit field, Insert left / right, Duplicate, Delete, Hide. Edit can change the type; values are converted where they can be and the editor says how many cells would be cleared. **Drawn by the Enterprise `@svgrid/enterprise/fields` module.**",
6684
+ "group": "common"
6685
+ },
6686
+ {
6687
+ "key": "expandRows",
6688
+ "label": "Expand Rows",
6689
+ "type": "boolean",
6690
+ "description": "The row-number cell becomes the row's handle: on hover it shows a checkbox that selects the row and an expand button that opens the row as a record, every field with its label and its editor. With `showRowNumbers`. **Drawn by the Enterprise `@svgrid/enterprise/fields` module.**",
6691
+ "group": "common"
6692
+ },
6693
+ {
6694
+ "key": "pinSplitter",
6695
+ "label": "Pin Splitter",
6696
+ "type": "boolean",
6697
+ "description": "A divider at the edge of the left-pinned columns: drag it right to pin the columns it passes, left to unpin them. It snaps to column edges and keeps the columns where they are on screen; with the keyboard, focus it and use the arrow keys. Its words come from `localization.text` (`pinSplitterLabel`, `pinSplitterHint`, `pinSplitterNone`, `pinSplitterOne`, `pinSplitterMany`). Loaded only when set.",
6698
+ "group": "common"
6699
+ },
6700
+ {
6701
+ "key": "primaryField",
6702
+ "label": "Primary Field",
6703
+ "type": "string",
6704
+ "description": "The table's primary field (a column id or field): always the first column and pinned, never hidden or deleted, and the name of a record (the expanded record's title, a gallery card's title). **Kept by the Enterprise `@svgrid/enterprise/fields` module.**",
6705
+ "group": "common"
6706
+ },
6651
6707
  {
6652
6708
  "key": "features",
6653
6709
  "label": "Features",
@@ -7412,7 +7468,7 @@ export const GENERATED_UI_SURFACE = {
7412
7468
  "key": "rowDragManaged",
7413
7469
  "label": "Row Drag Managed",
7414
7470
  "type": "boolean",
7415
- "description": "Enables managed row dragging. When `true`, every row becomes a drag source (grab cursor + a grip in the row-number cell) and a drop indicator paints between rows during a drag. On drop the grid mutates its own internal data - reordering within the grid, or moving the row across grids that share the same . Defaults to `false`.",
7471
+ "description": "Enables managed row dragging. When `true`, a row is dragged by its row-number cell (a grip shows while it is hovered), or by any cell when row numbers are off, and a drop indicator paints between rows during a drag. On drop the grid mutates its own internal data - reordering within the grid, or moving the row across grids that share the same . Defaults to `false`.",
7416
7472
  "group": "common"
7417
7473
  },
7418
7474
  {
@@ -7444,6 +7500,42 @@ export const GENERATED_UI_SURFACE = {
7444
7500
  "prop": "onPivotModeChange",
7445
7501
  "description": "Fired when the in-grid Pivot toggle flips `pivotMode`."
7446
7502
  },
7503
+ {
7504
+ "key": "rowAdd",
7505
+ "label": "Row Add",
7506
+ "prop": "onRowAdd",
7507
+ "description": "Fires after the row adder appended a row, with that row. Persist it here."
7508
+ },
7509
+ {
7510
+ "key": "columnAdd",
7511
+ "label": "Column Add",
7512
+ "prop": "onColumnAdd",
7513
+ "description": "A field was added (column adder, Insert, Duplicate). `columns` is the whole column list after the change, as declared (store it as your `columns`); `data` is set when values were written too."
7514
+ },
7515
+ {
7516
+ "key": "columnChange",
7517
+ "label": "Column Change",
7518
+ "prop": "onColumnChange",
7519
+ "description": "A field was edited. `columns` as in `onColumnAdd`; `data` is set when a type change converted its values."
7520
+ },
7521
+ {
7522
+ "key": "columnRemove",
7523
+ "label": "Column Remove",
7524
+ "prop": "onColumnRemove",
7525
+ "description": "A field was deleted from the column menu (its values stay in the rows). `columns` as in `onColumnAdd`."
7526
+ },
7527
+ {
7528
+ "key": "rowsDelete",
7529
+ "label": "Rows Delete",
7530
+ "prop": "onRowsDelete",
7531
+ "description": "Rows were deleted from the selection bar's Delete (`deleteRows`): the rows and their ids, and the data without them, to store."
7532
+ },
7533
+ {
7534
+ "key": "rowColorChange",
7535
+ "label": "Row Color Change",
7536
+ "prop": "onRowColorChange",
7537
+ "description": "The rows were set to be colored by another field, or no longer colored, from a single select's column menu (\"Color rows by this field\" with `fieldMenu`). Store it and pass it back as `rowColor`."
7538
+ },
7447
7539
  {
7448
7540
  "key": "expandedChange",
7449
7541
  "label": "Expanded Change",
@@ -1,5 +1,5 @@
1
1
  /** Human-readable labels for the Enterprise surfaces that gate behind a license. */
2
- export type EnterpriseFeatureLabel = 'Export' | 'Import' | 'Print' | 'AI assistant' | 'Pivot' | 'Server-side row model' | 'Spreadsheet' | 'Studio';
2
+ export type EnterpriseFeatureLabel = 'Export' | 'Import' | 'Print' | 'AI assistant' | 'Pivot' | 'Server-side row model' | 'Spreadsheet' | 'SvGrid Base' | 'Studio';
3
3
  /**
4
4
  * Show the contextual upgrade prompt for `feature`. No-ops if one has already
5
5
  * been shown this session, a card is already up, or we're on the server. Safe
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.8";
13
+ export declare const SVGRID_VERSION = "3.1.9";
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.8";
23
23
  *
24
24
  * `version.test.ts` asserts this matches packages/grid/package.json.
25
25
  */
26
- export declare const GRID_VERSION = "3.0.11";
26
+ export declare const GRID_VERSION = "3.0.12";
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.8';
13
+ export const SVGRID_VERSION = '3.1.9';
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.8';
23
23
  *
24
24
  * `version.test.ts` asserts this matches packages/grid/package.json.
25
25
  */
26
- export const GRID_VERSION = '3.0.11';
26
+ export const GRID_VERSION = '3.0.12';
@@ -0,0 +1,145 @@
1
+ import { D as e, G as t, H as n, I as r, L as i, M as a, O as o, P as s, R as c, S as l, U as u, Y as d, at as f, dt as p, et as m, it as h, j as g, m as _, mt as v, n as y, nt as b, st as x, tt as S, ut as C } from "./client-DQIzjDBG.js";
2
+ import { s as w } from "./SvGrid.helpers-B2GEKrxS.js";
3
+ import "./sv-sheet-element.js";
4
+ //#region ../grid/dist/GridFooter.svelte
5
+ var T = c("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\"> </span> </span>"), E = c("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\">Numeric</span> </span>"), D = c("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\"> </span> </span>"), O = c("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\"> </span> </span>"), k = c("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\"> </span> </span>"), A = c("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\"> </span> </span>"), j = c("<div class=\"sv-grid-status-bar\" role=\"status\" aria-live=\"polite\"></div>"), ee = c("<div class=\"sv-grid-dropdown\"><button type=\"button\" class=\"sv-grid-dropdown-trigger\" aria-haspopup=\"listbox\" aria-expanded=\"false\"><span class=\"sv-grid-dropdown-label\"> </span> <span class=\"sv-grid-dropdown-caret\" aria-hidden=\"true\"><!></span></button></div>"), te = c("<div role=\"navigation\" aria-label=\"Pagination\"><div class=\"sv-grid-pagination-pagesize\"><span> </span> <div class=\"sv-grid-pagination-pagesize-dd\"><!></div></div> <span class=\"sv-grid-pagination-range\"><strong> </strong> to <strong> </strong> of <strong> </strong></span> <div class=\"sv-grid-pagination-nav\"><button type=\"button\" class=\"sv-grid-pagination-btn\"><!></button> <button type=\"button\" class=\"sv-grid-pagination-btn\"><!></button> <span class=\"sv-grid-pagination-label\"> <strong> </strong> <strong> </strong></span> <button type=\"button\" class=\"sv-grid-pagination-btn\"><!></button> <button type=\"button\" class=\"sv-grid-pagination-btn\"><!></button></div></div>"), M = c("<!> <!>", 1);
6
+ function N(n, c) {
7
+ p(c, !0);
8
+ let N = y(c, "pager", 3, !0), P = y(c, "showStatus", 3, !0), ne = y(c, "top", 3, !1), F = f(null), I = f(!1);
9
+ async function re() {
10
+ if (!(t(F) || t(I))) {
11
+ h(I, !0);
12
+ try {
13
+ h(F, (await import("./SvGridDropdown-45WsObLL.js")).default, !0);
14
+ } finally {
15
+ h(I, !1);
16
+ }
17
+ }
18
+ }
19
+ let L = x(() => c.ctrl.paginationEnabled), R = x(() => c.ctrl.statusBarEnabled), z = x(() => c.ctrl.statusBarAggregates), B = x(() => c.ctrl.statusBarStats), ie = x(() => c.ctrl.changePage), ae = x(() => c.ctrl.goToPage), oe = x(() => c.ctrl.setPageSize), V = x(() => c.ctrl.messages);
20
+ var H = M(), U = S(H), W = (e) => {
21
+ let n = x(() => t(B));
22
+ var a = j();
23
+ o(a, 20, () => t(z), (e) => e, (e, a) => {
24
+ var o = i(), c = S(o), l = (e) => {
25
+ var i = T(), a = m(i), o = m(a, !0);
26
+ v(a);
27
+ var c = b(a, 1, !0);
28
+ v(i), d((e) => {
29
+ s(o, t(V).statCount), s(c, e);
30
+ }, [() => w(t(n).count)]), r(e, i);
31
+ }, u = (e) => {
32
+ var i = E(), a = b(m(i), 1, !0);
33
+ v(i), d((e) => s(a, e), [() => w(t(n).numericCount)]), r(e, i);
34
+ }, f = (e) => {
35
+ var i = D(), a = m(i), o = m(a, !0);
36
+ v(a);
37
+ var c = b(a, 1, !0);
38
+ v(i), d((e) => {
39
+ s(o, t(V).statSum), s(c, e);
40
+ }, [() => w(t(n).sum)]), r(e, i);
41
+ }, p = (e) => {
42
+ var i = O(), a = m(i), o = m(a, !0);
43
+ v(a);
44
+ var c = b(a, 1, !0);
45
+ v(i), d((e) => {
46
+ s(o, t(V).statAvg), s(c, e);
47
+ }, [() => w(t(n).avg)]), r(e, i);
48
+ }, h = (e) => {
49
+ var i = k(), a = m(i), o = m(a, !0);
50
+ v(a);
51
+ var c = b(a, 1, !0);
52
+ v(i), d((e) => {
53
+ s(o, t(V).statMin), s(c, e);
54
+ }, [() => w(t(n).min)]), r(e, i);
55
+ }, _ = (e) => {
56
+ var i = A(), a = m(i), o = m(a, !0);
57
+ v(a);
58
+ var c = b(a, 1, !0);
59
+ v(i), d((e) => {
60
+ s(o, t(V).statMax), s(c, e);
61
+ }, [() => w(t(n).max)]), r(e, i);
62
+ };
63
+ g(c, (e) => {
64
+ a === "count" ? e(l) : a === "numericCount" ? e(u, 1) : t(n).numericCount > 0 && a === "sum" ? e(f, 2) : t(n).numericCount > 0 && a === "avg" ? e(p, 3) : t(n).numericCount > 0 && a === "min" ? e(h, 4) : t(n).numericCount > 0 && a === "max" && e(_, 5);
65
+ }), r(e, o);
66
+ }), v(a), r(e, a);
67
+ };
68
+ g(U, (e) => {
69
+ P() && t(R) && t(B) && e(W);
70
+ });
71
+ var G = b(U, 2), K = (n) => {
72
+ let o = x(() => c.ctrl.paginationTotalRows), f = x(() => c.ctrl.paginationPageSize), p = x(() => Math.max(1, Math.ceil(t(o) / t(f)))), h = x(() => Math.min(c.ctrl.paginationPageIndex + 1, t(p))), y = x(() => t(o) === 0 ? 0 : (t(h) - 1) * t(f) + 1), C = x(() => Math.min(t(o), t(h) * t(f))), w = x(() => t(h) <= 1), T = x(() => t(h) >= t(p)), E = x(() => c.pageSizeOptions && c.pageSizeOptions.length ? c.pageSizeOptions : [
73
+ 10,
74
+ 25,
75
+ 50,
76
+ 100
77
+ ]);
78
+ var D = te();
79
+ let O;
80
+ var k = m(D), A = m(k), j = m(A, !0);
81
+ v(A);
82
+ var M = b(A, 2), N = m(M), P = (n) => {
83
+ var a = i(), o = S(a);
84
+ {
85
+ let n = x(() => t(E).map((e) => ({
86
+ value: e,
87
+ label: String(e)
88
+ })));
89
+ e(o, () => t(F), (e, r) => {
90
+ r(e, {
91
+ get options() {
92
+ return t(n);
93
+ },
94
+ get value() {
95
+ return t(f);
96
+ },
97
+ autoOpen: !0,
98
+ onChange: (e) => t(oe)(Number(e))
99
+ });
100
+ });
101
+ }
102
+ r(n, a);
103
+ }, I = (e) => {
104
+ var n = ee(), i = m(n), o = m(i), l = m(o, !0);
105
+ v(o);
106
+ var p = b(o, 2), h = m(p);
107
+ a(h, () => c.icon, () => "page-size-caret"), v(p), v(i), v(n), d(() => s(l, t(f))), u("click", i, re), r(e, n);
108
+ };
109
+ g(N, (e) => {
110
+ t(F) ? e(P) : e(I, -1);
111
+ }), v(M), v(k);
112
+ var L = b(k, 2), R = m(L), z = m(R, !0);
113
+ v(R);
114
+ var B = b(R, 2), H = m(B, !0);
115
+ v(B);
116
+ var U = b(B, 2), W = m(U, !0);
117
+ v(U), v(L);
118
+ var G = b(L, 2), K = m(G), se = m(K);
119
+ a(se, () => c.icon, () => "page-first"), v(K);
120
+ var q = b(K, 2), ce = m(q);
121
+ a(ce, () => c.icon, () => "page-prev"), v(q);
122
+ var J = b(q, 2), Y = m(J), X = b(Y), le = m(X, !0);
123
+ v(X);
124
+ var Z = b(X), ue = b(Z), de = m(ue, !0);
125
+ v(ue), v(J);
126
+ var Q = b(J, 2), fe = m(Q);
127
+ a(fe, () => c.icon, () => "page-next"), v(Q);
128
+ var $ = b(Q, 2), pe = m($);
129
+ a(pe, () => c.icon, () => "page-last"), v($), v(G), v(D), d((e, n, r, i, a) => {
130
+ O = l(D, 1, "sv-grid-pagination", null, O, { "sv-grid-pagination-top": ne() }), s(j, t(V).pageSize), s(z, e), s(H, n), s(W, r), K.disabled = t(w), _(K, "aria-label", t(V).firstPage), q.disabled = t(w), _(q, "aria-label", t(V).prevPage), s(Y, `${t(V).page ?? ""} `), s(le, i), s(Z, ` ${t(V).of ?? ""} `), s(de, a), Q.disabled = t(T), _(Q, "aria-label", t(V).nextPage), $.disabled = t(T), _($, "aria-label", t(V).lastPage);
131
+ }, [
132
+ () => t(y).toLocaleString(),
133
+ () => t(C).toLocaleString(),
134
+ () => t(o).toLocaleString(),
135
+ () => t(h).toLocaleString(),
136
+ () => t(p).toLocaleString()
137
+ ]), u("click", K, () => t(ae)(0)), u("click", q, () => t(ie)(-1)), u("click", Q, () => t(ie)(1)), u("click", $, () => t(ae)(t(p) - 1)), r(n, D);
138
+ };
139
+ g(G, (e) => {
140
+ N() && t(L) && e(K);
141
+ }), r(n, H), C();
142
+ }
143
+ n(["click"]);
144
+ //#endregion
145
+ export { N as default };