@operato/data-grist 9.0.0-beta.6 → 9.0.0-beta.61

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 (472) hide show
  1. package/CHANGELOG.md +230 -0
  2. package/README.md +337 -44
  3. package/dist/tsconfig.tsbuildinfo +1 -1
  4. package/package.json +11 -11
  5. package/dist/src/accumulator/accumulator.d.ts +0 -2
  6. package/dist/src/accumulator/accumulator.js +0 -42
  7. package/dist/src/accumulator/accumulator.js.map +0 -1
  8. package/dist/src/configure/column-builder.d.ts +0 -2
  9. package/dist/src/configure/column-builder.js +0 -99
  10. package/dist/src/configure/column-builder.js.map +0 -1
  11. package/dist/src/configure/config-builder.d.ts +0 -2
  12. package/dist/src/configure/config-builder.js +0 -36
  13. package/dist/src/configure/config-builder.js.map +0 -1
  14. package/dist/src/configure/filters-option-builder.d.ts +0 -2
  15. package/dist/src/configure/filters-option-builder.js +0 -7
  16. package/dist/src/configure/filters-option-builder.js.map +0 -1
  17. package/dist/src/configure/imex-option-builder.d.ts +0 -2
  18. package/dist/src/configure/imex-option-builder.js +0 -4
  19. package/dist/src/configure/imex-option-builder.js.map +0 -1
  20. package/dist/src/configure/list-option-builder.d.ts +0 -2
  21. package/dist/src/configure/list-option-builder.js +0 -8
  22. package/dist/src/configure/list-option-builder.js.map +0 -1
  23. package/dist/src/configure/rows-option-builder.d.ts +0 -2
  24. package/dist/src/configure/rows-option-builder.js +0 -26
  25. package/dist/src/configure/rows-option-builder.js.map +0 -1
  26. package/dist/src/configure/tree-option-builder.d.ts +0 -2
  27. package/dist/src/configure/tree-option-builder.js +0 -18
  28. package/dist/src/configure/tree-option-builder.js.map +0 -1
  29. package/dist/src/configure/zero-config.d.ts +0 -23
  30. package/dist/src/configure/zero-config.js +0 -59
  31. package/dist/src/configure/zero-config.js.map +0 -1
  32. package/dist/src/const.d.ts +0 -1
  33. package/dist/src/const.js +0 -2
  34. package/dist/src/const.js.map +0 -1
  35. package/dist/src/data-card/data-card-field.d.ts +0 -11
  36. package/dist/src/data-card/data-card-field.js +0 -106
  37. package/dist/src/data-card/data-card-field.js.map +0 -1
  38. package/dist/src/data-card/data-card-gutter-menu.d.ts +0 -2
  39. package/dist/src/data-card/data-card-gutter-menu.js +0 -96
  40. package/dist/src/data-card/data-card-gutter-menu.js.map +0 -1
  41. package/dist/src/data-card/data-card-gutter.d.ts +0 -12
  42. package/dist/src/data-card/data-card-gutter.js +0 -116
  43. package/dist/src/data-card/data-card-gutter.js.map +0 -1
  44. package/dist/src/data-card/data-card.d.ts +0 -19
  45. package/dist/src/data-card/data-card.js +0 -149
  46. package/dist/src/data-card/data-card.js.map +0 -1
  47. package/dist/src/data-card/event-handlers/record-card-click-handler.d.ts +0 -7
  48. package/dist/src/data-card/event-handlers/record-card-click-handler.js +0 -29
  49. package/dist/src/data-card/event-handlers/record-card-click-handler.js.map +0 -1
  50. package/dist/src/data-card/event-handlers/record-card-dblclick-handler.d.ts +0 -7
  51. package/dist/src/data-card/event-handlers/record-card-dblclick-handler.js +0 -29
  52. package/dist/src/data-card/event-handlers/record-card-dblclick-handler.js.map +0 -1
  53. package/dist/src/data-card/record-card.d.ts +0 -23
  54. package/dist/src/data-card/record-card.js +0 -288
  55. package/dist/src/data-card/record-card.js.map +0 -1
  56. package/dist/src/data-consumer.d.ts +0 -10
  57. package/dist/src/data-consumer.js +0 -2
  58. package/dist/src/data-consumer.js.map +0 -1
  59. package/dist/src/data-grid/data-grid-accum-field.d.ts +0 -16
  60. package/dist/src/data-grid/data-grid-accum-field.js +0 -133
  61. package/dist/src/data-grid/data-grid-accum-field.js.map +0 -1
  62. package/dist/src/data-grid/data-grid-body-style.d.ts +0 -1
  63. package/dist/src/data-grid/data-grid-body-style.js +0 -99
  64. package/dist/src/data-grid/data-grid-body-style.js.map +0 -1
  65. package/dist/src/data-grid/data-grid-body.d.ts +0 -52
  66. package/dist/src/data-grid/data-grid-body.js +0 -660
  67. package/dist/src/data-grid/data-grid-body.js.map +0 -1
  68. package/dist/src/data-grid/data-grid-field.d.ts +0 -25
  69. package/dist/src/data-grid/data-grid-field.js +0 -263
  70. package/dist/src/data-grid/data-grid-field.js.map +0 -1
  71. package/dist/src/data-grid/data-grid-footer.d.ts +0 -11
  72. package/dist/src/data-grid/data-grid-footer.js +0 -120
  73. package/dist/src/data-grid/data-grid-footer.js.map +0 -1
  74. package/dist/src/data-grid/data-grid-header.d.ts +0 -29
  75. package/dist/src/data-grid/data-grid-header.js +0 -531
  76. package/dist/src/data-grid/data-grid-header.js.map +0 -1
  77. package/dist/src/data-grid/data-grid.d.ts +0 -36
  78. package/dist/src/data-grid/data-grid.js +0 -260
  79. package/dist/src/data-grid/data-grid.js.map +0 -1
  80. package/dist/src/data-grid/event-handlers/data-grid-body-click-handler.d.ts +0 -7
  81. package/dist/src/data-grid/event-handlers/data-grid-body-click-handler.js +0 -57
  82. package/dist/src/data-grid/event-handlers/data-grid-body-click-handler.js.map +0 -1
  83. package/dist/src/data-grid/event-handlers/data-grid-body-contextmenu-handler.d.ts +0 -7
  84. package/dist/src/data-grid/event-handlers/data-grid-body-contextmenu-handler.js +0 -25
  85. package/dist/src/data-grid/event-handlers/data-grid-body-contextmenu-handler.js.map +0 -1
  86. package/dist/src/data-grid/event-handlers/data-grid-body-dblclick-handler.d.ts +0 -7
  87. package/dist/src/data-grid/event-handlers/data-grid-body-dblclick-handler.js +0 -34
  88. package/dist/src/data-grid/event-handlers/data-grid-body-dblclick-handler.js.map +0 -1
  89. package/dist/src/data-grid/event-handlers/data-grid-body-focus-change-handler.d.ts +0 -7
  90. package/dist/src/data-grid/event-handlers/data-grid-body-focus-change-handler.js +0 -19
  91. package/dist/src/data-grid/event-handlers/data-grid-body-focus-change-handler.js.map +0 -1
  92. package/dist/src/data-grid/event-handlers/data-grid-body-keydown-handler.d.ts +0 -7
  93. package/dist/src/data-grid/event-handlers/data-grid-body-keydown-handler.js +0 -226
  94. package/dist/src/data-grid/event-handlers/data-grid-body-keydown-handler.js.map +0 -1
  95. package/dist/src/data-grist.d.ts +0 -355
  96. package/dist/src/data-grist.js +0 -1022
  97. package/dist/src/data-grist.js.map +0 -1
  98. package/dist/src/data-list/data-list-field.d.ts +0 -11
  99. package/dist/src/data-list/data-list-field.js +0 -95
  100. package/dist/src/data-list/data-list-field.js.map +0 -1
  101. package/dist/src/data-list/data-list-gutter.d.ts +0 -12
  102. package/dist/src/data-list/data-list-gutter.js +0 -121
  103. package/dist/src/data-list/data-list-gutter.js.map +0 -1
  104. package/dist/src/data-list/data-list.d.ts +0 -18
  105. package/dist/src/data-list/data-list.js +0 -139
  106. package/dist/src/data-list/data-list.js.map +0 -1
  107. package/dist/src/data-list/event-handlers/record-partial-click-handler.d.ts +0 -7
  108. package/dist/src/data-list/event-handlers/record-partial-click-handler.js +0 -29
  109. package/dist/src/data-list/event-handlers/record-partial-click-handler.js.map +0 -1
  110. package/dist/src/data-list/event-handlers/record-partial-dblclick-handler.d.ts +0 -7
  111. package/dist/src/data-list/event-handlers/record-partial-dblclick-handler.js +0 -29
  112. package/dist/src/data-list/event-handlers/record-partial-dblclick-handler.js.map +0 -1
  113. package/dist/src/data-list/event-handlers/record-partial-long-press-handler.d.ts +0 -7
  114. package/dist/src/data-list/event-handlers/record-partial-long-press-handler.js +0 -29
  115. package/dist/src/data-list/event-handlers/record-partial-long-press-handler.js.map +0 -1
  116. package/dist/src/data-list/record-partial.d.ts +0 -21
  117. package/dist/src/data-list/record-partial.js +0 -252
  118. package/dist/src/data-list/record-partial.js.map +0 -1
  119. package/dist/src/data-manipulator.d.ts +0 -38
  120. package/dist/src/data-manipulator.js +0 -324
  121. package/dist/src/data-manipulator.js.map +0 -1
  122. package/dist/src/data-provider.d.ts +0 -50
  123. package/dist/src/data-provider.js +0 -200
  124. package/dist/src/data-provider.js.map +0 -1
  125. package/dist/src/data-report/data-report-body-style.d.ts +0 -1
  126. package/dist/src/data-report/data-report-body-style.js +0 -58
  127. package/dist/src/data-report/data-report-body-style.js.map +0 -1
  128. package/dist/src/data-report/data-report-body.d.ts +0 -18
  129. package/dist/src/data-report/data-report-body.js +0 -181
  130. package/dist/src/data-report/data-report-body.js.map +0 -1
  131. package/dist/src/data-report/data-report-component.d.ts +0 -21
  132. package/dist/src/data-report/data-report-component.js +0 -138
  133. package/dist/src/data-report/data-report-component.js.map +0 -1
  134. package/dist/src/data-report/data-report-field.d.ts +0 -13
  135. package/dist/src/data-report/data-report-field.js +0 -99
  136. package/dist/src/data-report/data-report-field.js.map +0 -1
  137. package/dist/src/data-report/data-report-header.d.ts +0 -1
  138. package/dist/src/data-report/data-report-header.js +0 -221
  139. package/dist/src/data-report/data-report-header.js.map +0 -1
  140. package/dist/src/data-report/event-handlers/data-report-body-click-handler.d.ts +0 -5
  141. package/dist/src/data-report/event-handlers/data-report-body-click-handler.js +0 -33
  142. package/dist/src/data-report/event-handlers/data-report-body-click-handler.js.map +0 -1
  143. package/dist/src/data-report/event-handlers/data-report-body-dblclick-handler.d.ts +0 -5
  144. package/dist/src/data-report/event-handlers/data-report-body-dblclick-handler.js +0 -19
  145. package/dist/src/data-report/event-handlers/data-report-body-dblclick-handler.js.map +0 -1
  146. package/dist/src/data-report/event-handlers/data-report-body-keydown-handler.d.ts +0 -5
  147. package/dist/src/data-report/event-handlers/data-report-body-keydown-handler.js +0 -58
  148. package/dist/src/data-report/event-handlers/data-report-body-keydown-handler.js.map +0 -1
  149. package/dist/src/data-report.d.ts +0 -44
  150. package/dist/src/data-report.js +0 -386
  151. package/dist/src/data-report.js.map +0 -1
  152. package/dist/src/editors/index.d.ts +0 -3
  153. package/dist/src/editors/index.js +0 -4
  154. package/dist/src/editors/index.js.map +0 -1
  155. package/dist/src/editors/ox-grist-editor-checkbox.d.ts +0 -7
  156. package/dist/src/editors/ox-grist-editor-checkbox.js +0 -27
  157. package/dist/src/editors/ox-grist-editor-checkbox.js.map +0 -1
  158. package/dist/src/editors/ox-grist-editor-color.d.ts +0 -4
  159. package/dist/src/editors/ox-grist-editor-color.js +0 -14
  160. package/dist/src/editors/ox-grist-editor-color.js.map +0 -1
  161. package/dist/src/editors/ox-grist-editor-date.d.ts +0 -4
  162. package/dist/src/editors/ox-grist-editor-date.js +0 -14
  163. package/dist/src/editors/ox-grist-editor-date.js.map +0 -1
  164. package/dist/src/editors/ox-grist-editor-datetime.d.ts +0 -6
  165. package/dist/src/editors/ox-grist-editor-datetime.js +0 -26
  166. package/dist/src/editors/ox-grist-editor-datetime.js.map +0 -1
  167. package/dist/src/editors/ox-grist-editor-email.d.ts +0 -4
  168. package/dist/src/editors/ox-grist-editor-email.js +0 -14
  169. package/dist/src/editors/ox-grist-editor-email.js.map +0 -1
  170. package/dist/src/editors/ox-grist-editor-file.d.ts +0 -6
  171. package/dist/src/editors/ox-grist-editor-file.js +0 -25
  172. package/dist/src/editors/ox-grist-editor-file.js.map +0 -1
  173. package/dist/src/editors/ox-grist-editor-image.d.ts +0 -7
  174. package/dist/src/editors/ox-grist-editor-image.js +0 -31
  175. package/dist/src/editors/ox-grist-editor-image.js.map +0 -1
  176. package/dist/src/editors/ox-grist-editor-month.d.ts +0 -4
  177. package/dist/src/editors/ox-grist-editor-month.js +0 -14
  178. package/dist/src/editors/ox-grist-editor-month.js.map +0 -1
  179. package/dist/src/editors/ox-grist-editor-multiple-select.d.ts +0 -8
  180. package/dist/src/editors/ox-grist-editor-multiple-select.js +0 -52
  181. package/dist/src/editors/ox-grist-editor-multiple-select.js.map +0 -1
  182. package/dist/src/editors/ox-grist-editor-number.d.ts +0 -6
  183. package/dist/src/editors/ox-grist-editor-number.js +0 -27
  184. package/dist/src/editors/ox-grist-editor-number.js.map +0 -1
  185. package/dist/src/editors/ox-grist-editor-password.d.ts +0 -4
  186. package/dist/src/editors/ox-grist-editor-password.js +0 -14
  187. package/dist/src/editors/ox-grist-editor-password.js.map +0 -1
  188. package/dist/src/editors/ox-grist-editor-select.d.ts +0 -4
  189. package/dist/src/editors/ox-grist-editor-select.js +0 -53
  190. package/dist/src/editors/ox-grist-editor-select.js.map +0 -1
  191. package/dist/src/editors/ox-grist-editor-tel.d.ts +0 -4
  192. package/dist/src/editors/ox-grist-editor-tel.js +0 -14
  193. package/dist/src/editors/ox-grist-editor-tel.js.map +0 -1
  194. package/dist/src/editors/ox-grist-editor-text.d.ts +0 -5
  195. package/dist/src/editors/ox-grist-editor-text.js +0 -17
  196. package/dist/src/editors/ox-grist-editor-text.js.map +0 -1
  197. package/dist/src/editors/ox-grist-editor-textarea.d.ts +0 -6
  198. package/dist/src/editors/ox-grist-editor-textarea.js +0 -18
  199. package/dist/src/editors/ox-grist-editor-textarea.js.map +0 -1
  200. package/dist/src/editors/ox-grist-editor-time.d.ts +0 -4
  201. package/dist/src/editors/ox-grist-editor-time.js +0 -14
  202. package/dist/src/editors/ox-grist-editor-time.js.map +0 -1
  203. package/dist/src/editors/ox-grist-editor-tree.d.ts +0 -6
  204. package/dist/src/editors/ox-grist-editor-tree.js +0 -27
  205. package/dist/src/editors/ox-grist-editor-tree.js.map +0 -1
  206. package/dist/src/editors/ox-grist-editor-varname.d.ts +0 -6
  207. package/dist/src/editors/ox-grist-editor-varname.js +0 -36
  208. package/dist/src/editors/ox-grist-editor-varname.js.map +0 -1
  209. package/dist/src/editors/ox-grist-editor-week.d.ts +0 -4
  210. package/dist/src/editors/ox-grist-editor-week.js +0 -14
  211. package/dist/src/editors/ox-grist-editor-week.js.map +0 -1
  212. package/dist/src/editors/ox-grist-editor.d.ts +0 -27
  213. package/dist/src/editors/ox-grist-editor.js +0 -197
  214. package/dist/src/editors/ox-grist-editor.js.map +0 -1
  215. package/dist/src/editors/ox-input-tree.d.ts +0 -20
  216. package/dist/src/editors/ox-input-tree.js +0 -221
  217. package/dist/src/editors/ox-input-tree.js.map +0 -1
  218. package/dist/src/editors/registry.d.ts +0 -12
  219. package/dist/src/editors/registry.js +0 -71
  220. package/dist/src/editors/registry.js.map +0 -1
  221. package/dist/src/empty-note.d.ts +0 -9
  222. package/dist/src/empty-note.js +0 -53
  223. package/dist/src/empty-note.js.map +0 -1
  224. package/dist/src/filters/filter-checkbox.d.ts +0 -3
  225. package/dist/src/filters/filter-checkbox.js +0 -41
  226. package/dist/src/filters/filter-checkbox.js.map +0 -1
  227. package/dist/src/filters/filter-input-barcode.d.ts +0 -3
  228. package/dist/src/filters/filter-input-barcode.js +0 -28
  229. package/dist/src/filters/filter-input-barcode.js.map +0 -1
  230. package/dist/src/filters/filter-input.d.ts +0 -2
  231. package/dist/src/filters/filter-input.js +0 -25
  232. package/dist/src/filters/filter-input.js.map +0 -1
  233. package/dist/src/filters/filter-range-date.d.ts +0 -2
  234. package/dist/src/filters/filter-range-date.js +0 -66
  235. package/dist/src/filters/filter-range-date.js.map +0 -1
  236. package/dist/src/filters/filter-range-number.d.ts +0 -2
  237. package/dist/src/filters/filter-range-number.js +0 -54
  238. package/dist/src/filters/filter-range-number.js.map +0 -1
  239. package/dist/src/filters/filter-select-buttons.d.ts +0 -3
  240. package/dist/src/filters/filter-select-buttons.js +0 -50
  241. package/dist/src/filters/filter-select-buttons.js.map +0 -1
  242. package/dist/src/filters/filter-select.d.ts +0 -3
  243. package/dist/src/filters/filter-select.js +0 -52
  244. package/dist/src/filters/filter-select.js.map +0 -1
  245. package/dist/src/filters/filter-styles.d.ts +0 -1
  246. package/dist/src/filters/filter-styles.js +0 -119
  247. package/dist/src/filters/filter-styles.js.map +0 -1
  248. package/dist/src/filters/filters-form.d.ts +0 -40
  249. package/dist/src/filters/filters-form.js +0 -430
  250. package/dist/src/filters/filters-form.js.map +0 -1
  251. package/dist/src/filters/index.d.ts +0 -8
  252. package/dist/src/filters/index.js +0 -9
  253. package/dist/src/filters/index.js.map +0 -1
  254. package/dist/src/filters/registry.d.ts +0 -7
  255. package/dist/src/filters/registry.js +0 -48
  256. package/dist/src/filters/registry.js.map +0 -1
  257. package/dist/src/formatters/date-formatter.d.ts +0 -1
  258. package/dist/src/formatters/date-formatter.js +0 -4
  259. package/dist/src/formatters/date-formatter.js.map +0 -1
  260. package/dist/src/formatters/index.d.ts +0 -1
  261. package/dist/src/formatters/index.js +0 -2
  262. package/dist/src/formatters/index.js.map +0 -1
  263. package/dist/src/formatters/number-formatter.d.ts +0 -1
  264. package/dist/src/formatters/number-formatter.js +0 -4
  265. package/dist/src/formatters/number-formatter.js.map +0 -1
  266. package/dist/src/formatters/registry.d.ts +0 -6
  267. package/dist/src/formatters/registry.js +0 -25
  268. package/dist/src/formatters/registry.js.map +0 -1
  269. package/dist/src/formatters/text-formatter.d.ts +0 -1
  270. package/dist/src/formatters/text-formatter.js +0 -4
  271. package/dist/src/formatters/text-formatter.js.map +0 -1
  272. package/dist/src/gutters/gutter-button.d.ts +0 -21
  273. package/dist/src/gutters/gutter-button.js +0 -40
  274. package/dist/src/gutters/gutter-button.js.map +0 -1
  275. package/dist/src/gutters/gutter-dirty.d.ts +0 -23
  276. package/dist/src/gutters/gutter-dirty.js +0 -87
  277. package/dist/src/gutters/gutter-dirty.js.map +0 -1
  278. package/dist/src/gutters/gutter-row-selector.d.ts +0 -21
  279. package/dist/src/gutters/gutter-row-selector.js +0 -70
  280. package/dist/src/gutters/gutter-row-selector.js.map +0 -1
  281. package/dist/src/gutters/gutter-sequence.d.ts +0 -35
  282. package/dist/src/gutters/gutter-sequence.js +0 -48
  283. package/dist/src/gutters/gutter-sequence.js.map +0 -1
  284. package/dist/src/gutters/index.d.ts +0 -1
  285. package/dist/src/gutters/index.js +0 -2
  286. package/dist/src/gutters/index.js.map +0 -1
  287. package/dist/src/gutters/registry.d.ts +0 -7
  288. package/dist/src/gutters/registry.js +0 -26
  289. package/dist/src/gutters/registry.js.map +0 -1
  290. package/dist/src/handlers/contextmenu-tree-mutation.d.ts +0 -3
  291. package/dist/src/handlers/contextmenu-tree-mutation.js +0 -64
  292. package/dist/src/handlers/contextmenu-tree-mutation.js.map +0 -1
  293. package/dist/src/handlers/index.d.ts +0 -1
  294. package/dist/src/handlers/index.js +0 -2
  295. package/dist/src/handlers/index.js.map +0 -1
  296. package/dist/src/handlers/move-down.d.ts +0 -3
  297. package/dist/src/handlers/move-down.js +0 -26
  298. package/dist/src/handlers/move-down.js.map +0 -1
  299. package/dist/src/handlers/move-up.d.ts +0 -3
  300. package/dist/src/handlers/move-up.js +0 -26
  301. package/dist/src/handlers/move-up.js.map +0 -1
  302. package/dist/src/handlers/record-copy.d.ts +0 -3
  303. package/dist/src/handlers/record-copy.js +0 -23
  304. package/dist/src/handlers/record-copy.js.map +0 -1
  305. package/dist/src/handlers/record-delete.d.ts +0 -3
  306. package/dist/src/handlers/record-delete.js +0 -16
  307. package/dist/src/handlers/record-delete.js.map +0 -1
  308. package/dist/src/handlers/record-view-handler.d.ts +0 -3
  309. package/dist/src/handlers/record-view-handler.js +0 -15
  310. package/dist/src/handlers/record-view-handler.js.map +0 -1
  311. package/dist/src/handlers/registry.d.ts +0 -7
  312. package/dist/src/handlers/registry.js +0 -34
  313. package/dist/src/handlers/registry.js.map +0 -1
  314. package/dist/src/handlers/select-row-toggle.d.ts +0 -3
  315. package/dist/src/handlers/select-row-toggle.js +0 -18
  316. package/dist/src/handlers/select-row-toggle.js.map +0 -1
  317. package/dist/src/handlers/select-row.d.ts +0 -3
  318. package/dist/src/handlers/select-row.js +0 -14
  319. package/dist/src/handlers/select-row.js.map +0 -1
  320. package/dist/src/index.d.ts +0 -14
  321. package/dist/src/index.js +0 -15
  322. package/dist/src/index.js.map +0 -1
  323. package/dist/src/personalizer/index.d.ts +0 -1
  324. package/dist/src/personalizer/index.js +0 -2
  325. package/dist/src/personalizer/index.js.map +0 -1
  326. package/dist/src/personalizer/ox-grist-filter-personalizer.d.ts +0 -8
  327. package/dist/src/personalizer/ox-grist-filter-personalizer.js +0 -178
  328. package/dist/src/personalizer/ox-grist-filter-personalizer.js.map +0 -1
  329. package/dist/src/personalizer/ox-grist-personalizer.d.ts +0 -8
  330. package/dist/src/personalizer/ox-grist-personalizer.js +0 -212
  331. package/dist/src/personalizer/ox-grist-personalizer.js.map +0 -1
  332. package/dist/src/record-view/event-handlers/record-view-body-click-handler.d.ts +0 -7
  333. package/dist/src/record-view/event-handlers/record-view-body-click-handler.js +0 -27
  334. package/dist/src/record-view/event-handlers/record-view-body-click-handler.js.map +0 -1
  335. package/dist/src/record-view/event-handlers/record-view-body-keydown-handler.d.ts +0 -7
  336. package/dist/src/record-view/event-handlers/record-view-body-keydown-handler.js +0 -22
  337. package/dist/src/record-view/event-handlers/record-view-body-keydown-handler.js.map +0 -1
  338. package/dist/src/record-view/index.d.ts +0 -2
  339. package/dist/src/record-view/index.js +0 -3
  340. package/dist/src/record-view/index.js.map +0 -1
  341. package/dist/src/record-view/ox-record-creator.d.ts +0 -26
  342. package/dist/src/record-view/ox-record-creator.js +0 -247
  343. package/dist/src/record-view/ox-record-creator.js.map +0 -1
  344. package/dist/src/record-view/record-view-body.d.ts +0 -21
  345. package/dist/src/record-view/record-view-body.js +0 -252
  346. package/dist/src/record-view/record-view-body.js.map +0 -1
  347. package/dist/src/record-view/record-view-handler.d.ts +0 -9
  348. package/dist/src/record-view/record-view-handler.js +0 -57
  349. package/dist/src/record-view/record-view-handler.js.map +0 -1
  350. package/dist/src/record-view/record-view.d.ts +0 -23
  351. package/dist/src/record-view/record-view.js +0 -117
  352. package/dist/src/record-view/record-view.js.map +0 -1
  353. package/dist/src/renderers/index.d.ts +0 -13
  354. package/dist/src/renderers/index.js +0 -14
  355. package/dist/src/renderers/index.js.map +0 -1
  356. package/dist/src/renderers/ox-grist-renderer-boolean.d.ts +0 -2
  357. package/dist/src/renderers/ox-grist-renderer-boolean.js +0 -39
  358. package/dist/src/renderers/ox-grist-renderer-boolean.js.map +0 -1
  359. package/dist/src/renderers/ox-grist-renderer-color.d.ts +0 -2
  360. package/dist/src/renderers/ox-grist-renderer-color.js +0 -12
  361. package/dist/src/renderers/ox-grist-renderer-color.js.map +0 -1
  362. package/dist/src/renderers/ox-grist-renderer-date.d.ts +0 -2
  363. package/dist/src/renderers/ox-grist-renderer-date.js +0 -53
  364. package/dist/src/renderers/ox-grist-renderer-date.js.map +0 -1
  365. package/dist/src/renderers/ox-grist-renderer-file.d.ts +0 -2
  366. package/dist/src/renderers/ox-grist-renderer-file.js +0 -27
  367. package/dist/src/renderers/ox-grist-renderer-file.js.map +0 -1
  368. package/dist/src/renderers/ox-grist-renderer-image.d.ts +0 -2
  369. package/dist/src/renderers/ox-grist-renderer-image.js +0 -24
  370. package/dist/src/renderers/ox-grist-renderer-image.js.map +0 -1
  371. package/dist/src/renderers/ox-grist-renderer-json5.d.ts +0 -2
  372. package/dist/src/renderers/ox-grist-renderer-json5.js +0 -30
  373. package/dist/src/renderers/ox-grist-renderer-json5.js.map +0 -1
  374. package/dist/src/renderers/ox-grist-renderer-link.d.ts +0 -2
  375. package/dist/src/renderers/ox-grist-renderer-link.js +0 -12
  376. package/dist/src/renderers/ox-grist-renderer-link.js.map +0 -1
  377. package/dist/src/renderers/ox-grist-renderer-password.d.ts +0 -2
  378. package/dist/src/renderers/ox-grist-renderer-password.js +0 -5
  379. package/dist/src/renderers/ox-grist-renderer-password.js.map +0 -1
  380. package/dist/src/renderers/ox-grist-renderer-progress.d.ts +0 -5
  381. package/dist/src/renderers/ox-grist-renderer-progress.js +0 -46
  382. package/dist/src/renderers/ox-grist-renderer-progress.js.map +0 -1
  383. package/dist/src/renderers/ox-grist-renderer-select.d.ts +0 -2
  384. package/dist/src/renderers/ox-grist-renderer-select.js +0 -50
  385. package/dist/src/renderers/ox-grist-renderer-select.js.map +0 -1
  386. package/dist/src/renderers/ox-grist-renderer-text.d.ts +0 -2
  387. package/dist/src/renderers/ox-grist-renderer-text.js +0 -11
  388. package/dist/src/renderers/ox-grist-renderer-text.js.map +0 -1
  389. package/dist/src/renderers/ox-grist-renderer-textarea.d.ts +0 -2
  390. package/dist/src/renderers/ox-grist-renderer-textarea.js +0 -5
  391. package/dist/src/renderers/ox-grist-renderer-textarea.js.map +0 -1
  392. package/dist/src/renderers/ox-grist-renderer-tree.d.ts +0 -12
  393. package/dist/src/renderers/ox-grist-renderer-tree.js +0 -183
  394. package/dist/src/renderers/ox-grist-renderer-tree.js.map +0 -1
  395. package/dist/src/renderers/ox-grist-renderer.d.ts +0 -15
  396. package/dist/src/renderers/ox-grist-renderer.js +0 -48
  397. package/dist/src/renderers/ox-grist-renderer.js.map +0 -1
  398. package/dist/src/renderers/registry.d.ts +0 -12
  399. package/dist/src/renderers/registry.js +0 -70
  400. package/dist/src/renderers/registry.js.map +0 -1
  401. package/dist/src/sorters/sorters-control.d.ts +0 -12
  402. package/dist/src/sorters/sorters-control.js +0 -138
  403. package/dist/src/sorters/sorters-control.js.map +0 -1
  404. package/dist/src/types.d.ts +0 -696
  405. package/dist/src/types.js +0 -23
  406. package/dist/src/types.js.map +0 -1
  407. package/dist/src/utils/index.d.ts +0 -2
  408. package/dist/src/utils/index.js +0 -3
  409. package/dist/src/utils/index.js.map +0 -1
  410. package/dist/src/utils/list-param.d.ts +0 -16
  411. package/dist/src/utils/list-param.js +0 -40
  412. package/dist/src/utils/list-param.js.map +0 -1
  413. package/dist/src/utils/supports-passive.d.ts +0 -1
  414. package/dist/src/utils/supports-passive.js +0 -13
  415. package/dist/src/utils/supports-passive.js.map +0 -1
  416. package/dist/stories/accumulator-format.stories.d.ts +0 -41
  417. package/dist/stories/accumulator-format.stories.js +0 -237
  418. package/dist/stories/accumulator-format.stories.js.map +0 -1
  419. package/dist/stories/barcode-input-filter.stories.d.ts +0 -33
  420. package/dist/stories/barcode-input-filter.stories.js +0 -185
  421. package/dist/stories/barcode-input-filter.stories.js.map +0 -1
  422. package/dist/stories/bounded-select-filters.stories.d.ts +0 -25
  423. package/dist/stories/bounded-select-filters.stories.js +0 -283
  424. package/dist/stories/bounded-select-filters.stories.js.map +0 -1
  425. package/dist/stories/bounded-select-record.stories.d.ts +0 -25
  426. package/dist/stories/bounded-select-record.stories.js +0 -286
  427. package/dist/stories/bounded-select-record.stories.js.map +0 -1
  428. package/dist/stories/click-event-custom.stories.d.ts +0 -45
  429. package/dist/stories/click-event-custom.stories.js +0 -248
  430. package/dist/stories/click-event-custom.stories.js.map +0 -1
  431. package/dist/stories/click-event.stories.d.ts +0 -45
  432. package/dist/stories/click-event.stories.js +0 -243
  433. package/dist/stories/click-event.stories.js.map +0 -1
  434. package/dist/stories/creatable-only-column.stories.d.ts +0 -29
  435. package/dist/stories/creatable-only-column.stories.js +0 -232
  436. package/dist/stories/creatable-only-column.stories.js.map +0 -1
  437. package/dist/stories/default-filters.stories.d.ts +0 -26
  438. package/dist/stories/default-filters.stories.js +0 -219
  439. package/dist/stories/default-filters.stories.js.map +0 -1
  440. package/dist/stories/dynamic-editable.stories.d.ts +0 -25
  441. package/dist/stories/dynamic-editable.stories.js +0 -293
  442. package/dist/stories/dynamic-editable.stories.js.map +0 -1
  443. package/dist/stories/empty-sorters.stories.d.ts +0 -25
  444. package/dist/stories/empty-sorters.stories.js +0 -162
  445. package/dist/stories/empty-sorters.stories.js.map +0 -1
  446. package/dist/stories/explicit-fetch.stories.d.ts +0 -25
  447. package/dist/stories/explicit-fetch.stories.js +0 -166
  448. package/dist/stories/explicit-fetch.stories.js.map +0 -1
  449. package/dist/stories/fixed-column.stories.d.ts +0 -26
  450. package/dist/stories/fixed-column.stories.js +0 -383
  451. package/dist/stories/fixed-column.stories.js.map +0 -1
  452. package/dist/stories/grid-setting.stories.d.ts +0 -47
  453. package/dist/stories/grid-setting.stories.js +0 -453
  454. package/dist/stories/grid-setting.stories.js.map +0 -1
  455. package/dist/stories/grist-modes.stories.d.ts +0 -37
  456. package/dist/stories/grist-modes.stories.js +0 -416
  457. package/dist/stories/grist-modes.stories.js.map +0 -1
  458. package/dist/stories/group-header.stories.d.ts +0 -26
  459. package/dist/stories/group-header.stories.js +0 -410
  460. package/dist/stories/group-header.stories.js.map +0 -1
  461. package/dist/stories/record-view.stories.d.ts +0 -24
  462. package/dist/stories/record-view.stories.js +0 -125
  463. package/dist/stories/record-view.stories.js.map +0 -1
  464. package/dist/stories/textarea.stories.d.ts +0 -37
  465. package/dist/stories/textarea.stories.js +0 -229
  466. package/dist/stories/textarea.stories.js.map +0 -1
  467. package/dist/stories/tree-column-with-checkbox.stories.d.ts +0 -26
  468. package/dist/stories/tree-column-with-checkbox.stories.js +0 -267
  469. package/dist/stories/tree-column-with-checkbox.stories.js.map +0 -1
  470. package/dist/stories/tree-column.stories.d.ts +0 -26
  471. package/dist/stories/tree-column.stories.js +0 -266
  472. package/dist/stories/tree-column.stories.js.map +0 -1
@@ -1,696 +0,0 @@
1
- import { TemplateResult } from 'lit-html';
2
- import { DataCardField } from './data-card/data-card-field.js';
3
- import { DataCardGutter } from './data-card/data-card-gutter.js';
4
- import { RecordCard } from './data-card/record-card.js';
5
- import { DataGridField } from './data-grid/data-grid-field.js';
6
- import { DataListField } from './data-list/data-list-field.js';
7
- import { DataListGutter } from './data-list/data-list-gutter.js';
8
- import { RecordPartial } from './data-list/record-partial.js';
9
- import { DataReportField } from './data-report/data-report-field.js';
10
- import { OxGristEditor } from './editors/index.js';
11
- import { QueryFilter, OxFiltersForm } from './filters/index.js';
12
- import { OxGristRenderer } from './renderers/ox-grist-renderer.js';
13
- /**
14
- * Configuration object for defining the structure and behavior of a Grist table.
15
- *
16
- * @typedef {Object} GristConfig
17
- * @property {ColumnConfig[]} columns - An array of column configurations.
18
- * @property {RowsConfig} rows - Configuration for rows and their behavior.
19
- * @property {ListConfig} list - Configuration for the list view.
20
- * @property {TreeConfig} tree - Configuration for tree-related settings.
21
- * @property {PaginationConfig} [pagination] - Configuration for pagination settings (optional).
22
- * @property {SortersConfig} [sorters] - Configuration for sorting settings (optional).
23
- * @property {FiltersConfig} [filters] - Configuration for filtering settings (optional).
24
- */
25
- export type GristConfig = {
26
- columns: ColumnConfig[];
27
- rows: RowsConfig;
28
- list: ListConfig;
29
- tree: TreeConfig;
30
- pagination?: PaginationConfig;
31
- sorters?: SortersConfig;
32
- filters?: FiltersConfig;
33
- };
34
- /**
35
- * Configuration object for specifying sorting options.
36
- *
37
- * @typedef {Object} SorterConfig
38
- * @property {string} name - The name of the sorting option.
39
- * @property {boolean} [desc] - Optional. Indicates whether the sorting is in descending order (optional).
40
- */
41
- export type SorterConfig = {
42
- name: string;
43
- desc?: boolean;
44
- };
45
- /**
46
- * Configuration array for specifying multiple sorting options.
47
- *
48
- * @typedef {SorterConfig[]} SortersConfig
49
- */
50
- export type SortersConfig = SorterConfig[];
51
- /**
52
- * Enumeration of filter operators used to define filter conditions.
53
- *
54
- * @typedef {'search' | 'eq' | 'between' | 'gte' | 'lte' | 'is_not_true' | 'in' | 'like' | 'i_like' | 'noteq' |
55
- * 'is_empty_num_id' | 'is_blank' | 'is_present' | 'is_not_false' | 'is_true' | 'is_false' | 'is_not_null' |
56
- * 'is_null' | 'notin_with_null' | 'notin' | 'gt' | 'lt' | 'i_nlike' | 'nlike'} FilterOperator
57
- */
58
- export type FilterOperator = 'search' | 'eq' | 'between' | 'gte' | 'lte' | 'is_not_true' | 'in' | 'like' | 'i_like' | 'noteq' | 'is_empty_num_id' | 'is_blank' | 'is_present' | 'is_not_false' | 'is_true' | 'is_false' | 'is_not_null' | 'is_null' | 'notin_with_null' | 'notin' | 'gt' | 'lt' | 'i_nlike' | 'nlike';
59
- export type SelectOptionObject = {
60
- name: string;
61
- display?: never;
62
- value: string;
63
- } | {
64
- display: string;
65
- name?: never;
66
- value: string;
67
- };
68
- export type SelectOption = SelectOptionObject | string;
69
- export type FilterChangedCallback = (value: any, form: OxFiltersForm) => boolean;
70
- /**
71
- * Configuration object for specifying filter conditions.
72
- *
73
- * @typedef {Object} FilterConfigObject
74
- * @property {string} type - The type of the filter condition.
75
- * @property {FilterOperator} [operator] - The filter operator used to compare values (optional).
76
- * @property {Object} [options] - Additional options or parameters for the filter condition (optional).
77
- * @property {boolean|undefined} [hidden] - The hidden flag for the filter condition (optional).
78
- * @property {string|number|boolean|string[]|number[]|undefined} [value] - The value to compare with in the filter condition (optional).
79
- * @property {string} [label] - The label to display for the filter condition (optional).
80
- */
81
- export type FilterConfigObject = {
82
- type: string;
83
- operator?: FilterOperator;
84
- options?: {
85
- [key: string]: any;
86
- };
87
- value?: string | number | boolean | string[] | number[] | undefined;
88
- label?: string;
89
- boundTo?: string[];
90
- hidden?: boolean;
91
- onchange?: FilterChangedCallback;
92
- };
93
- /**
94
- * Configuration option for specifying filter conditions.
95
- *
96
- * The `FilterConfig` type can take one of the following forms:
97
- * - A `FilterConfigObject` representing a specific filter condition.
98
- * - A `FilterOperator` representing a predefined filter operator.
99
- * - A boolean value to enable or disable filtering for a specific column.
100
- *
101
- * @typedef {Object|FilterOperator|boolean} FilterConfig
102
- */
103
- export type FilterConfig = FilterConfigObject | FilterOperator | boolean;
104
- /**
105
- * Represents a filter condition with the following properties:
106
- *
107
- * - `name`: The name of the column or field being filtered.
108
- * - `operator`: The filter operator used for comparison.
109
- * - `value`: The value or values to compare against.
110
- *
111
- * @typedef {Object} FilterValue
112
- * @property {string} name - The name of the column or field.
113
- * @property {FilterOperator} operator - The filter operator.
114
- * @property {string|number|boolean|string[]|number[]|undefined} value - The value(s) to compare.
115
- */
116
- export type FilterValue = {
117
- name: string;
118
- operator: FilterOperator;
119
- value: string | number | boolean | string[] | number[] | undefined;
120
- };
121
- /**
122
- * Configuration options for filters.
123
- *
124
- * @typedef {Object} FiltersConfig
125
- * @property {boolean} [header] - Specifies whether to provide filtering functionality in the header.
126
- */
127
- export type FiltersConfig = {
128
- header?: boolean;
129
- };
130
- /**
131
- * Configuration options for pagination.
132
- *
133
- * @typedef {Object} PaginationConfig
134
- * @property {number} [page] - The current page number.
135
- * @property {number} [limit] - The maximum number of records to display per page.
136
- * @property {number[]} [pages] - An array of available page numbers.
137
- * @property {boolean} [infinite] - Specifies whether to use infinite scrolling for pagination.
138
- */
139
- export type PaginationConfig = {
140
- page?: number;
141
- limit?: number;
142
- pages?: number[];
143
- infinite?: boolean;
144
- };
145
- /**
146
- * Option to specify the inheritance behavior for including data from parent domains.
147
- *
148
- * - 'None': Do not include data from the parent domain.
149
- * - 'Include': Include data from the parent domain along with current domain data.
150
- * - 'Only': Include data only from the parent domain, excluding current domain data.
151
- *
152
- * @enum {string}
153
- */
154
- export declare enum InheritedValueType {
155
- None = "None",
156
- Include = "Include",
157
- Only = "Only"
158
- }
159
- /**
160
- * Configuration options for fetching data from a data source.
161
- *
162
- * @typedef {Object} FetchOption
163
- * @property {number} [page] - The page number to retrieve.
164
- * @property {number} [limit] - The maximum number of records to retrieve per page.
165
- * @property {SortersConfig} [sorters] - An array of sorting configurations for data. Only one of these options needs to be set.
166
- * @property {SortersConfig} [sortings] - An array of sorting configurations for data. Only one of these options needs to be set.
167
- * @property {QueryFilter[]} [filters] - An array of filtering criteria.
168
- * @property {InheritedValueType} [inherited] - Specifies the inheritance behavior for including data from parent domains.
169
- * @property {object} [options] - Additional options for customizing data fetching behavior.
170
- */
171
- export type FetchOption = {
172
- page?: number;
173
- limit?: number;
174
- sorters?: SortersConfig;
175
- sortings?: SortersConfig;
176
- filters?: QueryFilter[];
177
- inherited?: InheritedValueType;
178
- options?: object;
179
- };
180
- /**
181
- * Represents the result of a data fetching operation.
182
- *
183
- * @typedef {Object} FetchResult
184
- * @property {number} [page] - The page number of the fetched data.
185
- * @property {number} [limit] - The maximum number of records per page.
186
- * @property {number} total - The total number of records in the data source.
187
- * @property {GristRecord[]} records - An array of fetched data records.
188
- */
189
- export type FetchResult = {
190
- page?: number;
191
- limit?: number;
192
- total: number;
193
- records: GristRecord[];
194
- } | void;
195
- /**
196
- * A function that handles data fetching operations.
197
- *
198
- * @param param - The fetch options specifying how data should be retrieved.
199
- * @returns A promise that resolves to a `FetchResult`.
200
- */
201
- export type FetchHandler = (param: FetchOption) => Promise<FetchResult>;
202
- /**
203
- * Represents a Grist event handler function.
204
- *
205
- * @typedef {Function} GristEventHandler
206
- * @param {ColumnConfig[]} columns - An array of column configurations.
207
- * @param {GristData} [data] - The Grist data associated with the event.
208
- * @param {ColumnConfig} [column] - The column configuration related to the event (if applicable).
209
- * @param {GristRecord} [record] - The Grist record related to the event (if applicable).
210
- * @param {number} [rowIndex] - The index of the row related to the event (if applicable).
211
- * @param {any} [target] - The target element or object related to the event (if applicable).
212
- * @param {Event} [e] - The event object (if applicable).
213
- * @returns {void}
214
- */
215
- export type GristEventHandler = (columns: ColumnConfig[], data?: GristData, column?: ColumnConfig, record?: GristRecord, rowIndex?: number, target?: any, e?: Event) => void;
216
- /**
217
- * Represents an accumulator function for data aggregation and accumulation.
218
- *
219
- * @typedef {string|'sum'|'avg'|'count'|'min'|'max'|Function} AccumulatorFunc
220
- * @param {GristData} data - The Grist data for aggregation.
221
- * @param {ColumnConfig} column - The column configuration for aggregation.
222
- * @returns {string|number} - The aggregated result.
223
- */
224
- export type AccumulatorFunc = 'sum' | 'avg' | 'count' | 'min' | 'max' | ((data: GristData, column: ColumnConfig) => string | number);
225
- /**
226
- * Type representing an accumulator function or configuration object.
227
- *
228
- * An accumulator is used for data aggregation and accumulation purposes. It can be either
229
- * a predefined accumulator function (e.g., 'sum', 'avg', 'count', etc.) or a configuration
230
- * object specifying the type of accumulator and labeling options.
231
- *
232
- * @typedef {AccumulatorFunc|{type: AccumulatorFunc, tag?: boolean}} AccumulatorObject
233
- * @property {AccumulatorFunc} [type] - The type of accumulator function or predefined function name.
234
- * @property {boolean} [tag] - An option for adding a label to represent the result of an aggregation function. This label is added in front of the aggregated value.
235
- *
236
- * @example
237
- * // Using a predefined accumulator function:
238
- * const accumulator: AccumulatorObject = 'sum'; // Represents a 'sum' accumulator.
239
- *
240
- * // Using an accumulator configuration object:
241
- * const accumulatorConfig: AccumulatorObject = {
242
- * type: 'avg', // Specifies the type of accumulator ('avg' for average).
243
- * tag: true, // Option for adding a label to represent the result of an aggregation function. This label is added in front of the aggregated value.
244
- * };
245
- */
246
- export type AccumulatorObject = AccumulatorFunc | {
247
- type: AccumulatorFunc;
248
- tag?: boolean;
249
- };
250
- /**
251
- * Type representing column configuration information.
252
- *
253
- * @typedef {object} ColumnConfig
254
- * @property {string} type - Represents the data type of the column (e.g., 'text', 'number', 'date', 'gutter', etc.).
255
- * @property {string} name - Represents the name of the column.
256
- * @property {('button'|'sequence'|'row-selector'|'dirty')} [gutterName] - If the column type is 'gutter', specifies the name of one of the registered gutters (only set when the type is 'gutter').
257
- * @property {boolean} [fixed] - In case of a grid type column, specifies whether the column's position should be fixed and unaffected by horizontal scrolling (optional).
258
- * @property {HeaderConfig} header - Object representing the header configuration of the column.
259
- * @property {RecordConfig} record - Object representing the record configuration of the column.
260
- * @property {GristEventHandlerSet} handlers - Object representing the Grist event handler settings.
261
- * @property {LabelConfig} label - Object representing the label configuration of the column. This property is used to represent the label of the column's information in list mode, card mode, and when displaying the column in a filter form (ox-filters-form).
262
- * @property {boolean} [hidden] - Indicates whether the column is hidden or not (optional).
263
- * @property {boolean} [sortable] - Indicates whether the column is sortable or not (optional). If this setting is true, the header provides the ability to toggle the sorting direction.
264
- * @property {boolean} [resizable] - Indicates whether the column is resizable or not (optional). This setting determines whether the column's width can be adjusted.
265
- * @property {(number|string|ColumnWidthCallback)} [width] - Represents the width of the column (e.g., 100, '50%', or a callback function to calculate width).
266
- * @property {boolean} [forList] - Indicates whether the column is intended for display in list mode (optional, applicable only to gutter type columns).
267
- * @property {boolean} [forCard] - Indicates whether the column is intended for display in card mode (optional, applicable only to gutter type columns).
268
- * @property {ValidationCallback} [validation] - Callback function for column validation (optional). This function validates whether the value of the column is valid when edited.
269
- * @property {AccumulatorObject} [accumulator] - Object used for accumulating values of the column (optional, applicable only in grid mode). It specifies a function to automatically aggregate the values of the column for all records. The aggregated result is displayed in a row below the last record (accumulation record).
270
- * @property {FilterConfig} [filter] - Object representing the filter configuration of the column.
271
- * @property {(ImexConfig|boolean)} [imex] - Object or boolean value representing the configuration for importing and exporting column data.
272
- * @property {boolean} [multiple] - Indicates whether the column allows multiple selections or not (optional).
273
- * @property {boolean} [rowCount] - Indicates whether the column shows the row count or not (optional).
274
- */
275
- export type ColumnConfig = {
276
- type: string;
277
- name: string;
278
- /**
279
- * "gutter" 타입의 컬럼인 경우, 등록된 gutter들 중의 하나의 이름을 명시합니다(type이 gutter인 경우에만 설정합니다).
280
- * (e.g., 'button', 'sequence', 'row-selector', 'dirty', etc)
281
- *
282
- * "Gutter"는 테이블 형태에서 각 행의 왼쪽 또는 오른쪽에 위치한 추가적인 열(column)을 가리킵니다.
283
- * 이 열은 주로 각 행(row)을 식별하거나 특정 작업을 수행하기 위한 버튼 또는 링크와 같은 요소를 표시하는 데 사용됩니다.
284
- * Gutter 열은 주로 데이터 행에 대한 조작 또는 행의 상태를 나타내는 데 사용됩니다.
285
- * 예를 들어, 테이블에서 각 행이 특정 작업을 수행하는 버튼을 포함할 때, 이러한 버튼이 Gutter 열에 배치될 수 있습니다.
286
- * 또한 Gutter 열은 행을 선택하거나 행의 상태를 나타내는 체크박스를 포함할 수도 있습니다.
287
- */
288
- gutterName?: 'button' | 'sequence' | 'row-selector' | 'dirty';
289
- title?: string;
290
- fixed?: boolean;
291
- /** [begin] only for button gutter column */
292
- icon?: string;
293
- iconOnly?: boolean;
294
- danger?: boolean;
295
- /** [end] only for button gutter column */
296
- header: HeaderConfig;
297
- record: RecordConfig;
298
- handlers: GristEventHandlerSet;
299
- label: LabelConfig;
300
- hidden?: boolean;
301
- sortable?: boolean;
302
- resizable?: boolean;
303
- width?: number | string | ColumnWidthCallback;
304
- forList?: boolean;
305
- forCard?: boolean;
306
- validation?: ValidationCallback;
307
- accumulator?: AccumulatorObject;
308
- filter?: FilterConfig;
309
- imex?: ImexConfig | boolean;
310
- multiple?: boolean;
311
- rowCount?: boolean;
312
- /** 특정 도구에 의해서 사용되는 옵션으로, 일반적인 용도로 사용되지 않음을 표현할 수 있다. */
313
- unusable?: boolean;
314
- };
315
- /**
316
- * Callback function type for column validation.
317
- *
318
- * This function is used to validate whether the value of a column is valid when edited.
319
- *
320
- * @callback ValidationCallback
321
- * @param {any} after - The new value of the column after editing.
322
- * @param {any} before - The previous value of the column before editing.
323
- * @param {GristRecord} record - The record being edited.
324
- * @param {ColumnConfig} column - The configuration of the column being edited.
325
- * @returns {boolean} - Returns `true` if the value is valid, `false` otherwise.
326
- */
327
- export type ValidationCallback = (after: any, before: any, record: GristRecord, column: ColumnConfig) => boolean | Promise<boolean>;
328
- /**
329
- * Configuration options for column labels.
330
- *
331
- * The label for a column can be customized using various options.
332
- *
333
- * @typedef {string|boolean|Object} LabelConfig
334
- * @property {LabelRenderer} [renderer] - A custom renderer function for the column label.
335
- *
336
- * @example
337
- * // Using a string as a label:
338
- * const label: LabelConfig = "Column Label"; // Sets the label as "Column Label".
339
- *
340
- * // Using a boolean to determine label visibility:
341
- * const label: LabelConfig = true; // Shows the default label based on the header configuration.
342
- *
343
- * // Using a custom renderer function for the label:
344
- * const label: LabelConfig = {
345
- * renderer: customLabelRenderer, // Specifies a custom renderer function.
346
- * };
347
- */
348
- export type LabelConfig = string | boolean | {
349
- renderer: LabelRenderer;
350
- };
351
- /**
352
- * Custom label renderer function for generating column labels.
353
- *
354
- * @callback LabelRenderer
355
- * @param {ColumnConfig} column - The column configuration object for which the label is being generated.
356
- * @returns {void}
357
- */
358
- export type LabelRenderer = (column: ColumnConfig) => void;
359
- /**
360
- * Custom callback function for calculating column width.
361
- *
362
- * @callback ColumnWidthCallback
363
- * @param {ColumnConfig} column - The column configuration object for which the width is being calculated.
364
- * @returns {string} - The calculated width as a string (e.g., '100', '50%').
365
- */
366
- export type ColumnWidthCallback = (column: ColumnConfig) => string;
367
- /**
368
- * Configuration for defining the header of a column.
369
- *
370
- * @typedef {Object} HeaderConfig
371
- * @property {HeaderRenderer} renderer - The function used to render the column header.
372
- * @property {string} [style] - Optional CSS style for the column header.
373
- * @property {string} [group] - Optional group identifier for the column header.
374
- * @property {string} [groupStyle] - Optional CSS style for the header group.
375
- */
376
- export type HeaderConfig = {
377
- renderer: HeaderRenderer;
378
- style?: string;
379
- group?: string;
380
- groupStyle?: string;
381
- };
382
- /**
383
- * Function type for rendering column headers.
384
- *
385
- * @callback HeaderRenderer
386
- * @param {ColumnConfig} column - The column configuration object.
387
- * @returns {*} - The rendered header content.
388
- */
389
- export type HeaderRenderer = (column: ColumnConfig) => any;
390
- /**
391
- * Configuration for specifying default values for fields in a record.
392
- * Default values can be set using predefined value generator functions or custom user-defined functions.
393
- * This configuration allows you to define the default value generation method and any additional parameters.
394
- *
395
- * @typedef {Object|Function} DefaultValueFnConfig
396
- * @property {string} [name] - The name of the default value function to be used for the column.
397
- * @property {any[]} [params] - The parameters to be passed to the default value function.
398
- * @property {Function} [Function] - A custom user-defined function for generating default values.
399
- */
400
- export type DefaultValueFnConfig = {
401
- /**
402
- * The name of the default value function to be used for the column.
403
- */
404
- name: string;
405
- /**
406
- * The parameters to be passed to the default value function.
407
- */
408
- params?: any[];
409
- } | Function;
410
- /**
411
- * Configuration for defining fields within a record.
412
- * Each field can have various settings such as rendering, editing, alignment, etc.
413
- * The 'defaultValue' property is used to specify the default value generation method and parameters.
414
- *
415
- * @typedef {Object} RecordConfig
416
- * @property {FieldRenderer} renderer - The rendering function for the field.
417
- * @property {FieldEditor|undefined} [editor] - The editing function for the field (optional).
418
- * @property {boolean|Function} [editable] - Specifies if the field is editable. It can be a boolean or a function (optional).
419
- * @property {boolean} [mandatory] - Specifies if the field is mandatory (optional).
420
- * @property {GristClassifier} classifier - A classifier function for the field.
421
- * @property {'left'|'right'|'center'} [align] - The alignment of the field's content (optional).
422
- * @property {*} options - Additional options for the field.
423
- * @property {string|undefined} [rowOptionField] - The name of a field for row-level options associated with this field (optional).
424
- * @property {DefaultValueFnConfig|undefined} [defaultValue] - Configuration for specifying the default value for the field.
425
- * It can be a predefined value generator function or a custom user-defined function (optional).
426
- * @property {Object.<string, *>|undefined} [extended] - Additional extended properties that can be added as needed for specific field configurations (optional).
427
- * @property {boolean} [wide] - Specifies if the field should occupy a larger width within the viewer or editor.
428
- * When set to `true`, the field will attempt to span across multiple columns or occupy more space horizontally.
429
- */
430
- export type RecordConfig = {
431
- renderer: FieldRenderer;
432
- editor?: FieldEditor;
433
- editable?: boolean | Function;
434
- mandatory?: boolean;
435
- disabled?: boolean | Function;
436
- classifier: GristClassifier;
437
- align?: 'left' | 'right' | 'center';
438
- options: any;
439
- rowOptionField?: string;
440
- defaultValue?: DefaultValueFnConfig;
441
- wide?: boolean;
442
- [extended: string]: any;
443
- };
444
- /**
445
- * A function type used for rendering the content of a field in various components.
446
- *
447
- * @callback FieldRenderer
448
- * @param {*} value - The value of the field to be rendered.
449
- * @param {ColumnConfig} column - The configuration of the column to which the field belongs.
450
- * @param {GristRecord} record - The record object containing the field's data.
451
- * @param {number} rowIndex - The index of the row to which the field belongs.
452
- * @param {DataGridField|RecordCard|DataCardGutter|DataCardField|DataListGutter|DataListField|RecordPartial|DataReportField|Element} owner - The component or element that owns the field.
453
- * @returns {OxGristRenderer|TemplateResult|string|void} - The rendered content, which can be of different types depending on the implementation.
454
- */
455
- export type FieldRenderer = (value: any, column: ColumnConfig, record: GristRecord, rowIndex: number, owner: DataGridField | RecordCard | DataCardGutter | DataCardField | DataListGutter | DataListField | RecordPartial | DataReportField | Element) => OxGristRenderer | TemplateResult | string | void;
456
- /**
457
- * A function type used for defining a custom editor for a field in a data grid.
458
- *
459
- * @callback FieldEditor
460
- * @param {*} value - The current value of the field.
461
- * @param {ColumnConfig} column - The configuration of the column to which the field belongs.
462
- * @param {GristRecord} record - The record object containing the field's data.
463
- * @param {number} rowIndex - The index of the row to which the field belongs.
464
- * @param {DataGridField} field - The data grid field that owns the editor.
465
- * @returns {OxGristEditor} - The custom editor component.
466
- */
467
- export type FieldEditor = (value: any, column: ColumnConfig, record: GristRecord, rowIndex: number, field: DataGridField) => OxGristEditor;
468
- /**
469
- * A function type used for rendering the filter select options in a filter form.
470
- *
471
- * @callback FilterSelectRenderer
472
- * @param {ColumnConfig} column - The configuration of the column for which the filter is being rendered.
473
- * @param {(string|number|boolean|string[]|number[]|any|undefined)} value - The current value of the filter.
474
- * @param {Element} owner - The DOM element that owns the filter select renderer.
475
- * @returns {(TemplateResult|string|void)} - The rendered filter select options as a Lit HTML template result, a string, or nothing.
476
- */
477
- export type FilterSelectRenderer = (column: ColumnConfig, value: string | number | boolean | string[] | number[] | any | undefined, owner: Element) => TemplateResult | string | void;
478
- /**
479
- * An object representing a set of event handler functions for various events in Grist.
480
- *
481
- * @typedef {Object} GristEventHandlerSet
482
- * @property {GristEventHandler} [click] - The click event handler function.
483
- * @property {GristEventHandler} [dblclick] - The double-click event handler function.
484
- * @property {GristEventHandler} [focus] - The focus event handler function.
485
- * @property {GristEventHandler} [contextmenu] - The context menu event handler function.
486
- */
487
- export type GristEventHandlerSet = {
488
- click?: GristEventHandler;
489
- dblclick?: GristEventHandler;
490
- focus?: GristEventHandler;
491
- contextmenu?: GristEventHandler;
492
- };
493
- /**
494
- * Configuration options for defining how records are displayed in list mode in a Grist.
495
- *
496
- * @typedef {Object} ListConfig
497
- * @property {string} [thumbnail] - The name of the field to use as a thumbnail image for records in list mode.
498
- * @property {string[]} fields - An array of field names to display in the list mode.
499
- * @property {string[]} details - An array of field names to display as additional details in the list mode.
500
- */
501
- export type ListConfig = {
502
- thumbnail?: string;
503
- fields: string[];
504
- details: string[];
505
- };
506
- /**
507
- * Configuration options for managing tree-like structures in a Grist table.
508
- *
509
- * @typedef {Object} TreeConfig
510
- * @property {string} [childrenProperty] - The property name that specifies the children of a record.
511
- * @property {boolean | Function} [expanded] - Specifies whether tree nodes are initially expanded or a function to determine the initial expansion state for a given record.
512
- */
513
- export type TreeConfig = {
514
- childrenProperty?: string;
515
- expanded?: boolean | ((x: GristRecord) => boolean);
516
- };
517
- /**
518
- * Configuration options for importing and exporting column data.
519
- *
520
- * @typedef {Object} ImexConfig
521
- * @property {string} header - The header text for the column in import/export settings.
522
- * @property {string} key - The key or identifier for the column in import/export settings.
523
- * @property {number} width - The width of the column in import/export settings.
524
- * @property {string} type - The data type of the column in import/export settings.
525
- */
526
- export type ImexConfig = {
527
- header: string;
528
- key: string;
529
- width: number;
530
- type: string;
531
- };
532
- /**
533
- * Configuration options for defining rows within a Grist table or view.
534
- *
535
- * @typedef {Object} RowsConfig
536
- * @property {boolean} [accumulator] - Specifies whether an accumulator row should be displayed.
537
- * @property {boolean} appendable - Indicates whether new rows can be appended to the table.
538
- * @property {boolean} insertable - Indicates whether new rows can be inserted into the table.
539
- * @property {RowSelectableConfig} [selectable] - Configuration for row selection options.
540
- * @property {GroupConfig[]} groups - An array of group configuration options.
541
- * @property {string[]} totals - An array of field names for which totals should be calculated and displayed.
542
- * @property {GristClassifier} classifier - A function that classifies rows based on their attributes.
543
- * @property {GristEventHandlerSet} handlers - An object containing event handler functions for various row-level events.
544
- */
545
- export type RowsConfig = {
546
- accumulator?: boolean;
547
- appendable: boolean;
548
- editable: boolean;
549
- insertable: boolean;
550
- selectable?: RowSelectableConfig;
551
- groups: GroupConfig[];
552
- totals: string[];
553
- classifier: GristClassifier;
554
- handlers: GristEventHandlerSet;
555
- };
556
- /**
557
- * A function used to classify and style individual records in a Grist table.
558
- *
559
- * @typedef {Function} GristClassifier
560
- *
561
- * @param {GristRecord} record - The record to be classified.
562
- * @param {number} rowIndex - The index of the row in the table.
563
- *
564
- * @returns {Object|void} An object containing classification properties or `void`.
565
- * - `emphasized` (optional): A boolean, string, or array of strings indicating the emphasis style.
566
- * - Additional properties can be added as needed for custom styling.
567
- */
568
- export type GristClassifier = (record: GristRecord, rowIndex: number) => {
569
- emphasized?: boolean | string | string[];
570
- [key: string]: any;
571
- } | void;
572
- /**
573
- * Configuration options for defining group headers in a Grist table.
574
- *
575
- * @typedef {Object} GroupConfig
576
- *
577
- * @property {string} align - The alignment of the group header ('left', 'center', or 'right').
578
- * @property {ColumnConfig} [titleColumn] - The column configuration used as the title of the group (optional).
579
- * @property {string} title - The title of the group.
580
- * @property {string} [value] - A value associated with the group (optional).
581
- * @property {string} [groupName] - The name of the group (optional).
582
- * @property {number} [row] - The row index where the group header should appear (optional).
583
- * @property {string|number} column - The column name or index where the group header should appear.
584
- * @property {number} rowspan - The number of rows the group header should span.
585
- * @property {number} [colspan] - The number of columns the group header should span (optional).
586
- */
587
- export type GroupConfig = {
588
- align: string;
589
- titleColumn?: ColumnConfig;
590
- title: string;
591
- value?: string;
592
- groupName?: string;
593
- row?: number;
594
- column: string | number;
595
- rowspan: number;
596
- colspan?: number;
597
- };
598
- /**
599
- * Configuration options for specifying row selectability in a Grist table.
600
- *
601
- * @typedef {Object} RowSelectableConfig
602
- *
603
- * @property {boolean} [multiple] - Indicates whether multiple rows can be selected (optional).
604
- */
605
- export type RowSelectableConfig = {
606
- multiple?: boolean;
607
- };
608
- /**
609
- * Represents a data record in Grist.
610
- *
611
- * @typedef {Object} GristRecord
612
- * @property {string} [id] - The unique identifier for the record.
613
- * @property {string} [name] - The name or label associated with the record.
614
- * @property {GristRecord[]} [children] - An array of child records, if applicable.
615
- * @property {number} [__seq__] - A numeric sequence identifier for the record.
616
- * @property {string} [__dirty__] - Indicates if the record is dirty (changed).
617
- * @property {boolean} [__selected__] - Indicates if the record is selected.
618
- * @property {object[]} [__changes__] - An array of changes made to the record.
619
- * @property {object} [__dirtyfields__] - An object representing dirty (changed) fields in the record.
620
- * @property {any} [__origin__] - The original data or source of the record.
621
- * @property {boolean} [__collapsed__] - Indicates if the record is collapsed (e.g., in a tree view).
622
- * @property {number} [__depth__] - The depth or level of the record in a hierarchical structure.
623
- * @property {'checked' | 'half-checked' | 'unchecked'} [__check_in_tree__] - Indicates the check state of the record in a tree view.
624
- * @property {GristRecord[]} [__children__] - An array of child records in a tree view.
625
- * @property {any} [key] - Additional custom properties specific to the record.
626
- */
627
- export type GristRecord = {
628
- id?: string;
629
- name?: string;
630
- children?: GristRecord[];
631
- __seq__?: number;
632
- __dirty__?: string;
633
- __selected__?: boolean;
634
- __changes__?: object[];
635
- __dirtyfields__?: {
636
- [key: string]: any;
637
- };
638
- __origin__?: any;
639
- __collapsed__?: boolean;
640
- __depth__?: number;
641
- __check_in_tree__?: 'checked' | 'half-checked' | 'unchecked';
642
- __children__?: GristRecord[];
643
- [key: string]: any;
644
- };
645
- /**
646
- * Represents a set of data retrieved from a Grist table.
647
- *
648
- * @typedef {Object} GristData
649
- *
650
- * @property {number} [page] - The page number of the retrieved data (optional).
651
- * @property {number} [total] - The total number of records in the data source (optional).
652
- * @property {number} [limit] - The maximum number of records per page (optional).
653
- * @property {GristRecord[]} records - An array of fetched data records.
654
- */
655
- export type GristData = {
656
- page?: number;
657
- total?: number;
658
- limit?: number;
659
- records: GristRecord[];
660
- };
661
- /**
662
- * A function that determines whether a Grist record should be selected or not.
663
- *
664
- * @callback GristSelectFunction
665
- * @param {GristRecord} record - The Grist record to evaluate.
666
- * @returns {boolean} - `true` if the record should be selected, `false` otherwise.
667
- */
668
- export type GristSelectFunction = (record: GristRecord) => boolean;
669
- /**
670
- * Defines a type for personalized grid settings. It includes individual column settings and additional configurations specific to a user's grid view.
671
- *
672
- * @typedef {Object} PersonalGristPreference
673
- * @property {Partial<ColumnConfig>[]} [columns] - Partially defines the configuration for each column in the grid.
674
- * Each element can include only some properties of the `ColumnConfig`, used for optionally overriding column settings.
675
- * @property {any} [key] - Allows for storing additional user-defined properties with dynamic keys.
676
- * This property can include various custom settings beyond the grid configuration, and the keys can be freely defined.
677
- */
678
- export type PersonalGristPreference = {
679
- columns?: Partial<ColumnConfig>[];
680
- filters?: FilterPreference[];
681
- pagination?: PaginationConfig;
682
- sorters?: SortersConfig;
683
- mode?: 'GRID' | 'LIST' | 'CARD';
684
- [key: string]: any;
685
- };
686
- export type FilterPreference = {
687
- name: string;
688
- hidden?: boolean;
689
- value?: any;
690
- };
691
- export declare enum ValidationReason {
692
- MANDATORY = "MANDATORY",
693
- FORMAT = "FORMAT",
694
- RANGE = "RANGE",
695
- UNIQUE = "UNIQUE"
696
- }