@dcs-tech/ui 0.10.0 → 0.11.0

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 (170) hide show
  1. package/CHANGELOG.md +362 -0
  2. package/README.md +3 -2
  3. package/THIRD_PARTY_NOTICES.md +23 -0
  4. package/dist/ChartImageMenu-sB2QNQzd.js +9673 -0
  5. package/dist/ChartView-BstZkP1g.js +1942 -0
  6. package/dist/{SummaryChart-i6fOdrDM.js → SummaryChart-B5ibDNOZ.js} +11 -10
  7. package/dist/{SummaryImage-CCt5ozD9.js → SummaryImage-CRP7X2Nl.js} +2 -2
  8. package/dist/SummarySeeAll-CtYRGV4G.js +101 -0
  9. package/dist/assets/fileTask.worker-D97s2vRV.js +1 -0
  10. package/dist/{columnValue-74XDBcVF.js → columnValue-BOn9NC8X.js} +86 -79
  11. package/dist/exportContext-CMzuzRjc.js +274 -0
  12. package/dist/{exportEngine-BmDly7iw.js → exportEngine-CYDN8Ty-.js} +167 -137
  13. package/dist/file-worker.js +1 -1
  14. package/dist/{fileActions-CFNO14Aj.js → fileActions-DkPEWE-t.js} +1 -1
  15. package/dist/{geometry-DG134nYI.js → geometry-CFS5If1N.js} +769 -466
  16. package/dist/index.js +21095 -12669
  17. package/dist/{labels-BPItSeRU.js → labels-mukFhYkc.js} +124 -1
  18. package/dist/{runFileTask-BIZTFnZP.js → runFileTask-DI_39TjR.js} +17 -0
  19. package/dist/scrollArea-B52kugL1.js +291 -0
  20. package/dist/style.css +1 -1
  21. package/dist/{summaryChartData-BiQYJbYZ.js → summaryChartData-D15kw64n.js} +6 -5
  22. package/dist/types/components/Charts/BarList.d.ts +4 -3
  23. package/dist/types/components/Charts/CalendarHeatmap.d.ts +4 -2
  24. package/dist/types/components/Charts/Chart.d.ts +3 -2
  25. package/dist/types/components/Charts/ChartView.d.ts +3 -2
  26. package/dist/types/components/Charts/ColumnChart.d.ts +4 -3
  27. package/dist/types/components/Charts/Donut.d.ts +3 -2
  28. package/dist/types/components/Charts/Funnel.d.ts +3 -2
  29. package/dist/types/components/Charts/Gauge.d.ts +3 -2
  30. package/dist/types/components/Charts/LineChart.d.ts +4 -3
  31. package/dist/types/components/Charts/NumberTrend.d.ts +4 -3
  32. package/dist/types/components/Charts/Progress.d.ts +3 -2
  33. package/dist/types/components/Charts/StackedBar.d.ts +3 -2
  34. package/dist/types/components/Charts/Treemap.d.ts +3 -2
  35. package/dist/types/components/Charts/chartData.d.ts +6 -0
  36. package/dist/types/components/Charts/chartImage.d.ts +2 -0
  37. package/dist/types/components/Charts/geometry.d.ts +3 -0
  38. package/dist/types/components/Charts/index.d.ts +2 -0
  39. package/dist/types/components/Charts/palette.d.ts +1 -0
  40. package/dist/types/components/Charts/parts.d.ts +14 -0
  41. package/dist/types/components/Charts/useChartMotion.d.ts +8 -0
  42. package/dist/types/components/DataTable/DataTable.d.ts +3 -1
  43. package/dist/types/components/DataTable/DisplayPopover.d.ts +1 -0
  44. package/dist/types/components/DataTable/HeaderMenu.d.ts +1 -0
  45. package/dist/types/components/DataTable/TableColumnModal.d.ts +4 -1
  46. package/dist/types/components/DataTable/TableToolbar.d.ts +20 -1
  47. package/dist/types/components/DataTable/TableView.d.ts +18 -2
  48. package/dist/types/components/DataTable/cards/CardView.d.ts +25 -5
  49. package/dist/types/components/DataTable/cards/rowParts.d.ts +1 -0
  50. package/dist/types/components/DataTable/cellSelection/CellRangeBar.d.ts +16 -0
  51. package/dist/types/components/DataTable/cellSelection/cellRangeStore.d.ts +18 -0
  52. package/dist/types/components/DataTable/cellSelection/paintRanges.d.ts +2 -0
  53. package/dist/types/components/DataTable/cellSelection/useCellSelection.d.ts +63 -0
  54. package/dist/types/components/DataTable/data/listDelta.d.ts +27 -0
  55. package/dist/types/components/DataTable/data/rowLineage.d.ts +3 -0
  56. package/dist/types/components/DataTable/data/rowModels.d.ts +9 -0
  57. package/dist/types/components/DataTable/data/rowTransaction.d.ts +9 -0
  58. package/dist/types/components/DataTable/data/useServerData.d.ts +3 -1
  59. package/dist/types/components/DataTable/export/exportCells.d.ts +5 -2
  60. package/dist/types/components/DataTable/export/exportEngine.d.ts +7 -2
  61. package/dist/types/components/DataTable/export/useTableExport.d.ts +17 -1
  62. package/dist/types/components/DataTable/filters/filterRowModel.d.ts +1 -0
  63. package/dist/types/components/DataTable/grouping/groupModel.d.ts +11 -0
  64. package/dist/types/components/DataTable/index.d.ts +1 -1
  65. package/dist/types/components/DataTable/keyboard/ShortcutsDialog.d.ts +4 -1
  66. package/dist/types/components/DataTable/keyboard/useGridKeyboard.d.ts +8 -0
  67. package/dist/types/components/DataTable/labels.d.ts +128 -0
  68. package/dist/types/components/DataTable/layout/LayoutSwitcher.d.ts +10 -2
  69. package/dist/types/components/DataTable/layout/useFitWidths.d.ts +7 -0
  70. package/dist/types/components/DataTable/menu/RowMenu.d.ts +1 -0
  71. package/dist/types/components/DataTable/menu/buildRowMenu.d.ts +6 -3
  72. package/dist/types/components/DataTable/motion/RowChangeNotice.d.ts +19 -0
  73. package/dist/types/components/DataTable/motion/rowChanges.d.ts +25 -0
  74. package/dist/types/components/DataTable/motion/useNoticeInsets.d.ts +2 -0
  75. package/dist/types/components/DataTable/motion/useRowChangeNotices.d.ts +35 -0
  76. package/dist/types/components/DataTable/motion/useRowMotion.d.ts +29 -3
  77. package/dist/types/components/DataTable/persistence/reconcile.d.ts +4 -0
  78. package/dist/types/components/DataTable/persistence/useColumnPersistence.d.ts +5 -1
  79. package/dist/types/components/DataTable/pivot/PivotPanel.d.ts +11 -0
  80. package/dist/types/components/DataTable/pivot/PivotView.d.ts +22 -0
  81. package/dist/types/components/DataTable/pivot/pivotModel.d.ts +54 -0
  82. package/dist/types/components/DataTable/pivot/usePivot.d.ts +44 -0
  83. package/dist/types/components/DataTable/rows/PressRow.d.ts +1 -0
  84. package/dist/types/components/DataTable/rows/RowLead.d.ts +23 -0
  85. package/dist/types/components/DataTable/rows/rowPress.d.ts +2 -0
  86. package/dist/types/components/DataTable/rows/usePinnedRows.d.ts +34 -0
  87. package/dist/types/components/DataTable/rows/useRowDrag.d.ts +44 -0
  88. package/dist/types/components/DataTable/split/SplitView.d.ts +4 -2
  89. package/dist/types/components/DataTable/summary/SummaryChart.d.ts +2 -1
  90. package/dist/types/components/DataTable/summary/TableSummary.d.ts +2 -1
  91. package/dist/types/components/DataTable/summary/summaryModel.d.ts +28 -6
  92. package/dist/types/components/DataTable/summary/useTableSummary.d.ts +3 -0
  93. package/dist/types/components/DataTable/toolbar/ToolbarMore.d.ts +14 -0
  94. package/dist/types/components/DataTable/toolbar/useToolbarFit.d.ts +10 -0
  95. package/dist/types/components/DataTable/tree/TreeChips.d.ts +5 -0
  96. package/dist/types/components/DataTable/tree/treeExport.d.ts +54 -0
  97. package/dist/types/components/DataTable/tree/treeMove.d.ts +1 -0
  98. package/dist/types/components/DataTable/tree/useTreeChildren.d.ts +15 -0
  99. package/dist/types/components/DataTable/tree/useTreeData.d.ts +60 -0
  100. package/dist/types/components/DataTable/types.d.ts +272 -4
  101. package/dist/types/components/DataTable/useDataChangeTracker.d.ts +11 -4
  102. package/dist/types/components/DataTable/useTable.d.ts +13 -1
  103. package/dist/types/components/DataTable/virtual/useVirtualLines.d.ts +1 -0
  104. package/dist/types/components/EventCalendar/EventCalendar.d.ts +46 -0
  105. package/dist/types/components/EventCalendar/eventParts.d.ts +10 -0
  106. package/dist/types/components/EventCalendar/index.d.ts +3 -0
  107. package/dist/types/components/EventCalendar/useCalendarEdit.d.ts +40 -0
  108. package/dist/types/components/Icon/Icon.d.ts +36 -0
  109. package/dist/types/components/Icon/Icon.storyData.d.ts +6 -0
  110. package/dist/types/components/Icon/IconContext.d.ts +7 -0
  111. package/dist/types/components/Icon/icons.d.ts +223 -0
  112. package/dist/types/components/Icon/index.d.ts +7 -0
  113. package/dist/types/components/Icon/useIconDone.d.ts +5 -0
  114. package/dist/types/components/Popover/Popover.d.ts +1 -0
  115. package/dist/types/components/Popover/floatingPosition.d.ts +22 -2
  116. package/dist/types/components/ReorderList/ReorderList.d.ts +2 -1
  117. package/dist/types/components/Scroll/ui.d.ts +1 -0
  118. package/dist/types/components/SlidingHighlight/index.d.ts +2 -0
  119. package/dist/types/components/SlidingHighlight/useSlidingHighlight.d.ts +20 -0
  120. package/dist/types/components/Suggest/SuggestionList.d.ts +1 -0
  121. package/dist/types/components/UIProvider/UILabelsContext.d.ts +34 -0
  122. package/dist/types/components/UIProvider/UIProvider.d.ts +2 -0
  123. package/dist/types/core/hooks/index.d.ts +1 -1
  124. package/dist/types/core/hooks/usePresence.d.ts +1 -0
  125. package/dist/types/core/icons/actions.icons.d.ts +37 -0
  126. package/dist/types/core/icons/commerce.icons.d.ts +16 -0
  127. package/dist/types/core/icons/communication.icons.d.ts +10 -0
  128. package/dist/types/core/icons/delivery.icons.d.ts +13 -0
  129. package/dist/types/core/icons/devices.icons.d.ts +16 -0
  130. package/dist/types/core/icons/files.icons.d.ts +13 -0
  131. package/dist/types/core/icons/general.icons.d.ts +24 -0
  132. package/dist/types/core/icons/index.d.ts +14 -0
  133. package/dist/types/core/icons/media.icons.d.ts +11 -0
  134. package/dist/types/core/icons/navigation.icons.d.ts +25 -0
  135. package/dist/types/core/icons/people.icons.d.ts +13 -0
  136. package/dist/types/core/icons/registry.d.ts +2 -0
  137. package/dist/types/core/icons/state.icons.d.ts +14 -0
  138. package/dist/types/core/icons/status.icons.d.ts +10 -0
  139. package/dist/types/core/icons/table.icons.d.ts +22 -0
  140. package/dist/types/core/icons/text.icons.d.ts +13 -0
  141. package/dist/types/core/logic/cellRange.logic.d.ts +66 -0
  142. package/dist/types/core/logic/cellTouch.logic.d.ts +16 -0
  143. package/dist/types/core/logic/columnGroups.logic.d.ts +31 -0
  144. package/dist/types/core/logic/dropdownSide.logic.d.ts +19 -0
  145. package/dist/types/core/logic/eventCalendar.logic.d.ts +225 -0
  146. package/dist/types/core/logic/fitColumns.logic.d.ts +7 -0
  147. package/dist/types/core/logic/icon.logic.d.ts +24 -0
  148. package/dist/types/core/logic/index.d.ts +16 -0
  149. package/dist/types/core/logic/pivot.logic.d.ts +100 -0
  150. package/dist/types/core/logic/rowActions.logic.d.ts +7 -0
  151. package/dist/types/core/logic/rowDrag.logic.d.ts +36 -0
  152. package/dist/types/core/logic/rowPinning.logic.d.ts +12 -0
  153. package/dist/types/core/logic/slidingHighlight.logic.d.ts +20 -0
  154. package/dist/types/core/logic/toolbarOverflow.logic.d.ts +21 -0
  155. package/dist/types/core/logic/treeData.logic.d.ts +44 -0
  156. package/dist/types/core/logic/treeDrag.logic.d.ts +63 -0
  157. package/dist/types/core/logic/tween.logic.d.ts +33 -0
  158. package/dist/types/core/logic/visualViewport.logic.d.ts +13 -0
  159. package/dist/types/core/types/eventCalendar.types.d.ts +18 -0
  160. package/dist/types/core/types/fileEngine.types.d.ts +6 -0
  161. package/dist/types/core/types/icon.types.d.ts +109 -0
  162. package/dist/types/core/types/index.d.ts +2 -0
  163. package/dist/types/index.d.ts +7 -0
  164. package/package.json +4 -4
  165. package/dist/ChartImageMenu-3OfqNFyt.js +0 -1510
  166. package/dist/ChartView-n4G5_2ro.js +0 -1707
  167. package/dist/SummarySeeAll-BY8knsRe.js +0 -101
  168. package/dist/assets/fileTask.worker--Q3rI3Bn.js +0 -1
  169. package/dist/exportContext-C52ZuHd8.js +0 -166
  170. package/dist/scrollArea-D84Cwm4o.js +0 -310
@@ -2,6 +2,8 @@
2
2
  // src/components/DataTable/labels.ts
3
3
  var e = {
4
4
  toolbar: "Table tools",
5
+ toolbarMore: "More tools",
6
+ toolbarMoreOn: "More tools, some on",
5
7
  search: "Search",
6
8
  searchPlaceholder: "Search...",
7
9
  closeSearch: "Close search",
@@ -20,6 +22,7 @@ var e = {
20
22
  columnFilters: "Column filters",
21
23
  layout: "Layout",
22
24
  layoutCurrent: (e) => `Layout: ${e}`,
25
+ layoutFieldsItem: (e) => `${e}…`,
23
26
  layoutTable: "Table",
24
27
  layoutCards: "Cards",
25
28
  layoutSplit: "Split",
@@ -81,6 +84,16 @@ var e = {
81
84
  undoFailed: "Could not undo",
82
85
  dismiss: "Dismiss",
83
86
  dataTable: "Data table",
87
+ rowsNewAbove: (e, t) => `${e} new ${t === 1 ? "row" : "rows"} above`,
88
+ rowsNewBelow: (e, t) => `${e} new ${t === 1 ? "row" : "rows"} below`,
89
+ rowsNewOnOtherPages: (e, t) => `${e} new ${t === 1 ? "row" : "rows"} on other pages`,
90
+ rowsRemovedAbove: (e) => `${e} removed above`,
91
+ rowsRemovedBelow: (e) => `${e} removed below`,
92
+ rowsKeptInPlace: (e, t) => `${e} ${t === 1 ? "row" : "rows"} kept in place`,
93
+ sortNow: "Sort now",
94
+ pauseUpdates: "Pause updates",
95
+ resumeUpdates: (e, t) => t ? `Resume · ${e} waiting` : "Resume updates",
96
+ rowsChangedAnnouncement: (e, t, n, r) => [n ? `${e} ${n === 1 ? "row" : "rows"} added` : "", r ? `${t} ${r === 1 ? "row" : "rows"} removed` : ""].filter(Boolean).join(", "),
84
97
  selectAllRows: "Select all rows",
85
98
  selectRow: (e) => `Select row ${e}`,
86
99
  open: "Open",
@@ -88,6 +101,37 @@ var e = {
88
101
  actions: "Actions",
89
102
  expandRow: "Expand row",
90
103
  collapseRow: "Collapse row",
104
+ rowDragHandle: (e) => `Move ${e}`,
105
+ rowDragHint: "Drag to move the row, or press Space to pick it up",
106
+ rowDragOffSorted: "The rows follow the sort: clear it to move rows by hand",
107
+ rowDragOffSearched: "Some rows are hidden by the search: clear it to move rows by hand",
108
+ rowDragOffFiltered: "Some rows are hidden by the filter: clear it to move rows by hand",
109
+ rowDragOffGrouped: "The rows are grouped: ungroup them to move rows by hand",
110
+ rowDragPicked: (e, t, n) => `${e} picked up, at ${t} of ${n}. Up and down arrows move it, Enter drops it, Escape puts it back.`,
111
+ rowDragPickedMany: (e, t, n) => `${e} rows picked up, at ${t} of ${n}. Up and down arrows move them, Enter drops them, Escape puts them back.`,
112
+ rowDragAt: (e, t) => `${e} of ${t}`,
113
+ rowDragDropped: (e, t, n) => `${e} moved to ${t} of ${n}`,
114
+ rowDragDroppedMany: (e, t, n) => `${e} rows moved to ${t} of ${n}`,
115
+ rowDragCancelled: (e) => `Move cancelled: ${e} is back in its place`,
116
+ rowDragMore: (e) => `+${e} more`,
117
+ rowDragTreeIn: (e, t, n) => `in ${e}, position ${t} of ${n}`,
118
+ rowDragTreeTop: (e, t) => `at the top level, position ${e} of ${t}`,
119
+ rowDragTreeInto: (e, t, n) => `into ${e}, position ${t} of ${n}`,
120
+ rowDragTreeToTop: (e, t) => `to the top level, position ${e} of ${t}`,
121
+ rowDragTreePicked: (e, t) => `${e} picked up, ${t}. Up and down arrows move it, left and right arrows change its level, Enter drops it, Escape puts it back.`,
122
+ rowDragTreePickedMany: (e, t) => `${e} rows picked up, ${t}. Up and down arrows move them, left and right arrows change their level, Enter drops them, Escape puts them back.`,
123
+ rowDragTreeDropped: (e, t) => `${e} moved ${t}`,
124
+ rowDragTreeDroppedMany: (e, t) => `${e} rows moved ${t}`,
125
+ rowDragTreeNoIndent: "No row above it at this level to move it into",
126
+ rowDragTreeNoOutdent: "Already at the top level",
127
+ treeExpand: (e) => `Show the rows under ${e}`,
128
+ treeCollapse: (e) => `Hide the rows under ${e}`,
129
+ treeLoading: "Loading the rows under it",
130
+ treeLoadFailed: "The rows under it could not be loaded: open it again to retry",
131
+ treeExpandAll: "Expand all",
132
+ treeCollapseAll: "Collapse all",
133
+ treeRows: "Tree",
134
+ treeLevel: "Level",
91
135
  showMore: "Show more",
92
136
  showLess: "Show less",
93
137
  total: "Total",
@@ -113,6 +157,11 @@ var e = {
113
157
  copyFailed: "Could not copy — the browser blocked it",
114
158
  selectRowMenu: "Select",
115
159
  unselectRowMenu: "Unselect",
160
+ pinRowTop: "Pin to top",
161
+ pinRowBottom: "Pin to bottom",
162
+ unpinRow: "Unpin",
163
+ pinnedRowTop: "Pinned to the top",
164
+ pinnedRowBottom: "Pinned to the bottom",
116
165
  filterOnly: (e) => `Only ${e}`,
117
166
  filterAdd: (e) => `Add ${e}`,
118
167
  filterHide: (e) => `Hide ${e}`,
@@ -179,6 +228,29 @@ var e = {
179
228
  kbFilterOnly: "Only this cell’s value",
180
229
  kbFilterHide: "Hide this cell’s value",
181
230
  selectionCleared: "Selection cleared",
231
+ kbCellRange: "Extend the selected cells",
232
+ kbCellRangeEdge: "Extend the cells to the last row / column",
233
+ kbCellAdd: "Add another range of cells",
234
+ kbCellAll: "Select every cell",
235
+ kbCellCopy: "Copy the selected cells",
236
+ kbCellPaste: "Paste into the selected cells",
237
+ kbCellRows: "Select the rows of the selected cells",
238
+ kbCellEscape: "Clear the selected cells (again: the row selection)",
239
+ cellRangeAnnouncement: (e, t, n, r) => `${e} ${r.cells === 1 ? "cell" : "cells"} selected, ${t} ${r.rows === 1 ? "row" : "rows"} by ${n} ${r.columns === 1 ? "column" : "columns"}${r.ranges > 1 ? `, in ${r.ranges} ranges` : ""}`,
240
+ cellRangeCleared: "Cell selection cleared",
241
+ cellsCopied: (e, t) => `${e} ${t === 1 ? "cell" : "cells"} copied`,
242
+ cellsPasted: (e, t) => `${e} ${t === 1 ? "cell" : "cells"} pasted`,
243
+ cellRangeBar: "Selected cells",
244
+ cellRangeCount: "Count",
245
+ cellRangeSum: "Sum",
246
+ cellRangeAvg: "Average",
247
+ cellRangeMin: "Min",
248
+ cellRangeMax: "Max",
249
+ cellTouchBar: "Selected cells actions",
250
+ cellTouchSize: (e, t) => `${e} ${t === 1 ? "cell" : "cells"}`,
251
+ cellTouchCopy: "Copy",
252
+ cellTouchMenu: "Row actions",
253
+ cellTouchClear: "Clear selected cells",
182
254
  groupButton: "Group",
183
255
  groupButtonOn: (e) => `Group: ${e}`,
184
256
  groupMenu: "Group rows by",
@@ -266,7 +338,10 @@ var e = {
266
338
  showActionColumn: "Show action column",
267
339
  actionDisplayMode: "Display mode",
268
340
  actionDisplayModeCard: "Display mode (card)",
269
- actionDisplayModeHint: "How the row’s main action shows; the others are in the ⋮ menu.",
341
+ actionDisplayModeHint: "How the row’s action buttons show; the rest are in the ⋮ menu.",
342
+ maxVisibleActions: "Max visible buttons",
343
+ maxVisibleActionsCard: "Max visible buttons (card)",
344
+ maxVisibleActionsHint: "How many actions show as buttons, the main ones first; the ⋮ menu has them all.",
270
345
  modeIcon: "Icon",
271
346
  modeLabel: "Label",
272
347
  modeIconLabel: "Icon + Label",
@@ -426,6 +501,7 @@ var e = {
426
501
  summaryWidthFull: "Full row",
427
502
  summaryWidthAuto: (e) => `Auto · ${e}`,
428
503
  summaryWidthBetter: (e) => `reads better at ${e}`,
504
+ manageSummaryRangeHint: "Dates set by the screen come first.",
429
505
  summarySeeAll: (e) => `See all ${e} ›`,
430
506
  summaryAllOf: (e, t) => `${e} · all ${t}`,
431
507
  summaryLoading: "Loading…",
@@ -465,6 +541,7 @@ var e = {
465
541
  exportAwaitingClick: (e) => `${e} is ready — use the button in the notification to finish`,
466
542
  exportValidationFailed: "Validation failed",
467
543
  exportCapped: (e, t) => `Exported the first ${e} of ${t} matching rows — narrow the filters to export the rest.`,
544
+ exportTreePartial: "Only the child rows already opened in the table are in this file.",
468
545
  exportBusiness: "Business",
469
546
  exportAddress: "Address",
470
547
  exportPhone: "Phone",
@@ -472,6 +549,7 @@ var e = {
472
549
  exportFiltersLabel: "Filters",
473
550
  exportSearchLabel: "Search",
474
551
  exportRowsLabel: "Rows",
552
+ exportNoteLabel: "Note",
475
553
  exportRowsTotal: (e) => `${e} total`,
476
554
  exportRowsFiltered: (e) => `${e} filtered`,
477
555
  exportRowsExported: (e) => `${e} exported`,
@@ -608,6 +686,51 @@ var e = {
608
686
  fieldsTab: "Fields",
609
687
  previewTab: "Preview",
610
688
  fieldsResetDefault: "Reset to default",
689
+ pivot: "Pivot",
690
+ pivotOn: "Pivot, on",
691
+ pivotTitle: "Pivot",
692
+ pivotSubtitle: "Sum up the rows: pick the fields for the lines, the columns and the figures.",
693
+ pivotMode: "Pivot mode",
694
+ pivotModeHint: "Show the summed-up figures instead of the rows. The search and the filter still choose the rows.",
695
+ pivotRows: "Rows",
696
+ pivotRowsHint: "A line for each value",
697
+ pivotColumns: "Columns",
698
+ pivotColumnsHint: "A column group for each value",
699
+ pivotValues: "Values",
700
+ pivotValuesHint: "The figures in the cells",
701
+ pivotFields: "Fields",
702
+ pivotFieldsHint: "Drag a field to Rows, Columns or Values, or use its buttons",
703
+ pivotAllPlaced: "Every field is in use",
704
+ pivotDropHere: "Drop a field here",
705
+ pivotAdd: "Add",
706
+ pivotAddTo: (e) => `Add to ${e}`,
707
+ pivotAddField: (e, t) => `Add ${e} to ${t}`,
708
+ pivotRemove: (e) => `Remove ${e}`,
709
+ pivotMove: (e) => `Move ${e}`,
710
+ pivotAggregation: (e) => `Aggregation of ${e}`,
711
+ pivotAggSum: "Sum",
712
+ pivotAggCount: "Count",
713
+ pivotAggAvg: "Average",
714
+ pivotAggMin: "Min",
715
+ pivotAggMax: "Max",
716
+ pivotAggFirst: "First",
717
+ pivotAggLast: "Last",
718
+ pivotAggCustom: "Custom",
719
+ pivotValueHeader: (e, t) => `${e} of ${t}`,
720
+ pivotTotal: "Total",
721
+ pivotTotalOf: (e) => `${e} total`,
722
+ pivotGrandTotal: "Grand total",
723
+ pivotTotals: "Totals",
724
+ pivotTotalsRows: "Subtotal lines",
725
+ pivotTotalsColumns: "Total columns",
726
+ pivotTotalsGrand: "Grand-total line",
727
+ pivotCapped: (e, t) => `Showing ${e} of ${t} pivot columns. Filter the rows or pick fewer column fields to see the rest.`,
728
+ pivotNoValues: "Add a field to Values to see figures.",
729
+ pivotNoRows: "No rows to sum up.",
730
+ pivotLoadFailed: "The pivot could not be loaded",
731
+ pivotResult: "Pivot result",
732
+ pivotReset: "Reset to default",
733
+ pivotFieldsOf: (e) => `${e} fields`,
611
734
  prefsChanged: (e) => `Your saved layout changed: ${e}`,
612
735
  prefsColumnsGone: (e, t) => `${e} ${t === 1 ? "column no longer exists" : "columns no longer exist"}`,
613
736
  prefsFiltersOff: (e, t) => `${e} saved ${t === 1 ? "filter was" : "filters were"} turned off`,
@@ -108,6 +108,23 @@ async function m(e, t) {
108
108
  width: e.width
109
109
  }));
110
110
  for (let t of o.before ?? []) p(e, t, c);
111
+ for (let t of o.headerGroups ?? []) {
112
+ let n = Array(c).fill("");
113
+ for (let e of t) e.start >= 0 && e.start < c && (n[e.start] = e.label);
114
+ let r = e.addRow(n);
115
+ r.font = { bold: o.headerStyle?.bold ?? !0 };
116
+ for (let e = 1; e <= c; e++) {
117
+ let t = r.getCell(e);
118
+ f(t, o.headerStyle), t.alignment = {
119
+ horizontal: "center",
120
+ vertical: "middle"
121
+ };
122
+ }
123
+ for (let n of t) {
124
+ let t = Math.min(c, n.start + n.span);
125
+ t - n.start > 1 && e.mergeCells(r.number, n.start + 1, r.number, t);
126
+ }
127
+ }
111
128
  let l = e.addRow(o.columns.map((e) => e.header));
112
129
  l.font = { bold: o.headerStyle?.bold ?? !0 }, l.eachCell((e, t) => {
113
130
  let n = o.columns[t - 1]?.align;
@@ -0,0 +1,291 @@
1
+ "use client";
2
+ import { Et as e } from "./ChartImageMenu-sB2QNQzd.js";
3
+ import { Ln as t, Vn as n } from "./geometry-CFS5If1N.js";
4
+ import { n as r, t as i } from "./labels-mukFhYkc.js";
5
+ import { createContext as a, useCallback as o, useContext as s, useEffect as c, useId as ee, useLayoutEffect as l, useMemo as u, useRef as d, useState as f } from "react";
6
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
7
+ import { createPortal as te } from "react-dom";
8
+ // src/components/Dialog/dialogOpen.tsx
9
+ var h = a(null), g = a(0), _ = ({ children: e }) => {
10
+ let [t, n] = f(0), r = u(() => () => {
11
+ n((e) => e + 1);
12
+ let e = !1;
13
+ return () => {
14
+ e || (e = !0, n((e) => e - 1));
15
+ };
16
+ }, []);
17
+ return /* @__PURE__ */ p(h.Provider, {
18
+ value: r,
19
+ children: /* @__PURE__ */ p(g.Provider, {
20
+ value: t,
21
+ children: e
22
+ })
23
+ });
24
+ };
25
+ function ne(e) {
26
+ let t = s(h);
27
+ c(() => e && t ? t() : void 0, [e, t]);
28
+ }
29
+ var v = () => s(g), y = () => s(g) > 0, re = a(null), b = () => s(re), x = typeof document > "u" ? c : l;
30
+ function S(e, t, n) {
31
+ let r = e?.claim;
32
+ x(() => r && n ? r(t) : void 0, [
33
+ r,
34
+ t,
35
+ n
36
+ ]);
37
+ }
38
+ var C = {
39
+ root: "_root_6qxml_7",
40
+ nonModal: "_nonModal_6qxml_30",
41
+ panel: "_panel_6qxml_3",
42
+ center: "_center_6qxml_41",
43
+ right: "_right_6qxml_42",
44
+ left: "_left_6qxml_43",
45
+ top: "_top_6qxml_44",
46
+ bottom: "_bottom_6qxml_45",
47
+ sm: "_sm_6qxml_86",
48
+ md: "_md_6qxml_87",
49
+ lg: "_lg_6qxml_88",
50
+ xl: "_xl_6qxml_89",
51
+ full: "_full_6qxml_90",
52
+ header: "_header_6qxml_96",
53
+ headText: "_headText_6qxml_106",
54
+ title: "_title_6qxml_108",
55
+ subtitle: "_subtitle_6qxml_114",
56
+ body: "_body_6qxml_120",
57
+ flush: "_flush_6qxml_128",
58
+ footer: "_footer_6qxml_130",
59
+ slot: "_slot_6qxml_141",
60
+ close: "_close_6qxml_144",
61
+ dialogPop: "_dialogPop_6qxml_1",
62
+ slideFromRight: "_slideFromRight_6qxml_1",
63
+ slideFromLeft: "_slideFromLeft_6qxml_1",
64
+ slideFromTop: "_slideFromTop_6qxml_1",
65
+ slideFromBottom: "_slideFromBottom_6qxml_1",
66
+ backdropIn: "_backdropIn_6qxml_1",
67
+ closing: "_closing_6qxml_171"
68
+ }, w = 0, T = null, ie = (e) => {
69
+ if (typeof document < "u") {
70
+ if (w === 0) {
71
+ let t = document.body;
72
+ T = {
73
+ overflow: t.style.overflow,
74
+ paddingRight: t.style.paddingRight
75
+ };
76
+ let n = window.innerWidth - document.documentElement.clientWidth;
77
+ if (e && n > 0) {
78
+ let e = parseFloat(window.getComputedStyle(t).paddingRight) || 0;
79
+ t.style.paddingRight = `${e + n}px`;
80
+ }
81
+ t.style.overflow = "hidden";
82
+ }
83
+ w += 1;
84
+ }
85
+ }, ae = () => {
86
+ typeof document < "u" && (w = Math.max(0, w - 1), w === 0 && T && (document.body.style.overflow = T.overflow, document.body.style.paddingRight = T.paddingRight, T = null));
87
+ }, oe = () => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches, se = /* @__PURE__ */ p(e, { size: 16 }), ce = 0, le = "button:not([disabled]),a[href],input:not([disabled]):not([type=\"hidden\"]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex=\"-1\"]),[contenteditable=\"true\"]", E = ({ open: e, onClose: r, onBeforeClose: i, onEscKeyDown: a, onOverlayClick: s, onAnimationEnd: h, children: g, title: _, subtitle: v, footer: y, modal: b = !0, placement: x = "center", size: S = "md", closeOnBackdrop: w = !0, closeOnEscape: T = !0, showCloseButton: E = !0, closeIcon: D, closeIconId: O, blockScroll: k = !0, reserveScrollBarGap: A = !0, initialFocusRef: j, container: M, animationDuration: ue = 200, padded: de = !0, classNames: N = {}, styleSlots: P = {}, className: fe = "", style: pe, role: me = "dialog", id: he, "aria-label": F, "aria-labelledby": ge, "aria-describedby": _e }) => {
88
+ let ve = n(), I = d(null), [ye, be] = f(null), L = ee(), [R, z] = f({
89
+ header: 0,
90
+ footer: 0
91
+ }), [B, xe] = f(null), [V, Se] = f(null), H = o((e) => (z((t) => ({
92
+ ...t,
93
+ [e]: t[e] + 1
94
+ })), () => z((t) => ({
95
+ ...t,
96
+ [e]: t[e] - 1
97
+ }))), []), Ce = u(() => ({
98
+ headerEl: B,
99
+ footerEl: V,
100
+ claim: H
101
+ }), [
102
+ B,
103
+ V,
104
+ H
105
+ ]), [U, W] = f(e), [we, G] = f(!1), [K, q] = f(!1), J = d(null), Y = d(e);
106
+ Y.current = e;
107
+ let X = d(null), Te = oe() ? 0 : ue;
108
+ ne(U), c(() => {
109
+ e ? (X.current &&= (clearTimeout(X.current), null), G(!1), W(!0)) : U && (G(!0), X.current = setTimeout(() => {
110
+ I.current?.close(), W(!1), q(!1), G(!1), h?.();
111
+ }, Te));
112
+ }, [e]), c(() => () => {
113
+ X.current && clearTimeout(X.current);
114
+ }, []);
115
+ let Z = o(() => {
116
+ i && i() === !1 || r?.();
117
+ }, [i, r]);
118
+ l(() => {
119
+ let e = I.current;
120
+ if (e && U) {
121
+ if (!e.open) {
122
+ let t = document.activeElement;
123
+ J.current = t instanceof HTMLElement && t !== document.body ? t : null, b && (e.dataset.modalOrder = String(++ce)), b ? e.showModal() : e.show();
124
+ }
125
+ q(!0);
126
+ }
127
+ }, [U, b]), l(() => {
128
+ let e = I.current;
129
+ if (!e || !K) return;
130
+ if (j?.current) {
131
+ j.current.focus({ focusVisible: !0 });
132
+ return;
133
+ }
134
+ let t = document.activeElement;
135
+ t && t !== e && e.contains(t) || e.querySelector(le)?.focus();
136
+ }, [K]), l(() => () => {
137
+ let e = I.current, t = J.current;
138
+ if (!e?.open || !t) return;
139
+ let n = document.activeElement;
140
+ (!n || n === document.body || e.contains(n)) && queueMicrotask(() => {
141
+ let e = document.activeElement;
142
+ t.isConnected && (!e || e === document.body) && t.focus({ preventScroll: !0 });
143
+ });
144
+ }, []), c(() => {
145
+ if (U && k && b) return ie(A), () => ae();
146
+ }, [
147
+ U,
148
+ b,
149
+ k,
150
+ A
151
+ ]), c(() => {
152
+ let e = I.current;
153
+ if (!e || !U) return;
154
+ let t = (t) => {
155
+ t.key !== "Escape" || t.defaultPrevented || t.isComposing || t.target instanceof Node && e.contains(t.target) && (t.preventDefault(), a?.(t), T && Z());
156
+ }, n = (e) => {
157
+ e.preventDefault(), a?.(e), T && Z();
158
+ }, r = () => {
159
+ Y.current && !e.open && e.isConnected && (b ? e.showModal() : e.show(), e.querySelector(le)?.focus());
160
+ }, i = e.ownerDocument.defaultView ?? window;
161
+ return i.addEventListener("keydown", t), e.addEventListener("cancel", n), e.addEventListener("close", r), () => {
162
+ i.removeEventListener("keydown", t), e.removeEventListener("cancel", n), e.removeEventListener("close", r);
163
+ };
164
+ }, [
165
+ U,
166
+ b,
167
+ T,
168
+ Z,
169
+ a
170
+ ]);
171
+ let Q = d(!1), Ee = (e) => {
172
+ Q.current = e.target === I.current;
173
+ }, De = (e) => {
174
+ let t = Q.current && e.target === I.current;
175
+ Q.current = !1, t && (s?.(e), w && Z());
176
+ };
177
+ if (!U) return null;
178
+ let $ = R.header > 0, Oe = R.footer > 0, ke = _ !== void 0 || v !== void 0, Ae = ke || E || $, je = ge ?? ((_ !== void 0 || $) && !F ? L : void 0), Me = /* @__PURE__ */ p("dialog", {
179
+ ref: (e) => {
180
+ I.current = e, be(e);
181
+ },
182
+ id: he,
183
+ "data-modal": b ? "" : void 0,
184
+ className: [
185
+ C.root,
186
+ C[x],
187
+ C[S],
188
+ b ? "" : C.nonModal,
189
+ we ? C.closing : "",
190
+ N.root,
191
+ fe
192
+ ].filter(Boolean).join(" "),
193
+ style: {
194
+ "--dialog-anim": `${Te}ms`,
195
+ ...P.root,
196
+ ...pe
197
+ },
198
+ role: me,
199
+ "aria-label": F,
200
+ "aria-labelledby": je,
201
+ "aria-describedby": _e,
202
+ "aria-modal": b || void 0,
203
+ onPointerDown: Ee,
204
+ onPointerUp: De,
205
+ children: /* @__PURE__ */ p(t.Provider, {
206
+ value: ye,
207
+ children: /* @__PURE__ */ p(re.Provider, {
208
+ value: Ce,
209
+ children: K && /* @__PURE__ */ m("div", {
210
+ className: [C.panel, N.panel].filter(Boolean).join(" "),
211
+ style: P.panel,
212
+ children: [
213
+ Ae && /* @__PURE__ */ m("div", {
214
+ className: [C.header, N.header].filter(Boolean).join(" "),
215
+ style: P.header,
216
+ children: [
217
+ (ke || !$) && /* @__PURE__ */ m("span", {
218
+ className: C.headText,
219
+ children: [_ !== void 0 && /* @__PURE__ */ p("span", {
220
+ className: C.title,
221
+ id: L,
222
+ children: _
223
+ }), v !== void 0 && /* @__PURE__ */ p("span", {
224
+ className: C.subtitle,
225
+ children: v
226
+ })]
227
+ }),
228
+ $ && /* @__PURE__ */ p("div", {
229
+ ref: xe,
230
+ className: C.slot,
231
+ id: _ === void 0 ? L : void 0
232
+ }),
233
+ E && /* @__PURE__ */ p("button", {
234
+ type: "button",
235
+ id: O,
236
+ className: [C.close, N.closeButton].filter(Boolean).join(" "),
237
+ style: P.closeButton,
238
+ onClick: Z,
239
+ "aria-label": ve.dialog.close,
240
+ children: D ?? se
241
+ })
242
+ ]
243
+ }),
244
+ g !== void 0 && /* @__PURE__ */ p("div", {
245
+ className: [
246
+ C.body,
247
+ de ? "scroll-fade-y scroll-gutter" : `${C.flush} scroll-fade-y`,
248
+ N.body
249
+ ].filter(Boolean).join(" "),
250
+ style: P.body,
251
+ children: g
252
+ }),
253
+ (y !== void 0 || Oe) && /* @__PURE__ */ m("div", {
254
+ className: [C.footer, N.footer].filter(Boolean).join(" "),
255
+ style: P.footer,
256
+ children: [y, Oe && /* @__PURE__ */ p("div", {
257
+ ref: Se,
258
+ className: C.slot
259
+ })]
260
+ })
261
+ ]
262
+ })
263
+ })
264
+ })
265
+ }), Ne = M ?? (typeof document > "u" ? null : document.body);
266
+ return Ne ? te(Me, Ne) : null;
267
+ };
268
+ E.displayName = "Dialog";
269
+ var D = a({
270
+ authorize: () => !0,
271
+ exportOptions: {},
272
+ serverMode: !1,
273
+ labels: i,
274
+ format: r(),
275
+ text: {
276
+ yes: i.yes,
277
+ no: i.no
278
+ }
279
+ });
280
+ function O() {
281
+ return s(D);
282
+ }
283
+ function k() {
284
+ return s(D).labels;
285
+ }
286
+ function A(e, t, n) {
287
+ return !e || e(t, n) !== !1;
288
+ }
289
+ // src/components/DataTable/layout/scrollArea.ts
290
+ var j = "dt-scroll-area scroll-fade-y scroll-gutter", M = "dt-scroll-area scroll-fade-x scroll-fade-y scroll-gutter";
291
+ export { k as a, S as c, y as d, v as f, A as i, b as l, j as n, O as o, D as r, E as s, M as t, _ as u };