@gears-frontx/ui-kit 0.4.5 → 0.4.6

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 (146) hide show
  1. package/dist/chunks/actions.iasfkjWq.css +1 -0
  2. package/dist/chunks/create-column-auto-size.js +62 -0
  3. package/dist/chunks/create-column-auto-size.js.map +1 -0
  4. package/dist/chunks/data-grid-record-context.js +13 -0
  5. package/dist/chunks/data-grid-record-context.js.map +1 -0
  6. package/dist/chunks/data-grid.-6P4UQGJ.css +1 -0
  7. package/dist/chunks/hooked.js +27 -35
  8. package/dist/chunks/hooked.js.map +1 -1
  9. package/dist/chunks/ignore-row-click.js +5 -0
  10. package/dist/chunks/ignore-row-click.js.map +1 -0
  11. package/dist/chunks/messages.js +19 -3
  12. package/dist/chunks/messages.js.map +1 -1
  13. package/dist/chunks/resolve-body-cell-props.DGczzk1U.css +1 -0
  14. package/dist/chunks/resolve-body-cell-props.js +140 -0
  15. package/dist/chunks/resolve-body-cell-props.js.map +1 -0
  16. package/dist/chunks/row-actions.BprAXgu2.css +1 -0
  17. package/dist/chunks/row-click.DAYTmSBO.css +1 -0
  18. package/dist/chunks/row-number.C7fNu9Bw.css +1 -0
  19. package/dist/chunks/row-select.BjKdiMf5.css +1 -0
  20. package/dist/chunks/table-configuration.a6C_fp7B.css +1 -0
  21. package/dist/chunks/table-context.js +8 -0
  22. package/dist/chunks/table-context.js.map +1 -0
  23. package/dist/chunks/table-types.js +11 -0
  24. package/dist/chunks/table-types.js.map +1 -0
  25. package/dist/chunks/table.Dmz7LEk7.css +1 -0
  26. package/dist/components/data-grid/messages.d.ts +16 -0
  27. package/dist/components/data-grid/messages.d.ts.map +1 -1
  28. package/dist/components/data-grid/plugins/actions/actions-plugin.d.ts +4 -0
  29. package/dist/components/data-grid/plugins/actions/actions-plugin.d.ts.map +1 -0
  30. package/dist/components/data-grid/plugins/actions/actions-types.d.ts +11 -0
  31. package/dist/components/data-grid/plugins/actions/actions-types.d.ts.map +1 -0
  32. package/dist/components/data-grid/plugins/actions/components/data-grid-actions-wrapper.d.ts +3 -0
  33. package/dist/components/data-grid/plugins/actions/components/data-grid-actions-wrapper.d.ts.map +1 -0
  34. package/dist/components/data-grid/plugins/actions/public.d.ts +3 -0
  35. package/dist/components/data-grid/plugins/actions/public.d.ts.map +1 -0
  36. package/dist/components/data-grid/plugins/actions-menu/actions-menu-plugin.d.ts +3 -0
  37. package/dist/components/data-grid/plugins/actions-menu/actions-menu-plugin.d.ts.map +1 -0
  38. package/dist/components/data-grid/plugins/actions-menu/actions-menu-types.d.ts +25 -0
  39. package/dist/components/data-grid/plugins/actions-menu/actions-menu-types.d.ts.map +1 -0
  40. package/dist/components/data-grid/plugins/actions-menu/components/data-grid-actions-menu.d.ts +3 -0
  41. package/dist/components/data-grid/plugins/actions-menu/components/data-grid-actions-menu.d.ts.map +1 -0
  42. package/dist/components/data-grid/plugins/actions-menu/public.d.ts +3 -0
  43. package/dist/components/data-grid/plugins/actions-menu/public.d.ts.map +1 -0
  44. package/dist/components/data-grid/plugins/row-actions/components/data-grid-row-actions-cell.d.ts +3 -0
  45. package/dist/components/data-grid/plugins/row-actions/components/data-grid-row-actions-cell.d.ts.map +1 -0
  46. package/dist/components/data-grid/plugins/row-actions/public.d.ts +3 -0
  47. package/dist/components/data-grid/plugins/row-actions/public.d.ts.map +1 -0
  48. package/dist/components/data-grid/plugins/row-actions/row-actions-plugin.d.ts +6 -0
  49. package/dist/components/data-grid/plugins/row-actions/row-actions-plugin.d.ts.map +1 -0
  50. package/dist/components/data-grid/plugins/row-actions/row-actions-types.d.ts +24 -0
  51. package/dist/components/data-grid/plugins/row-actions/row-actions-types.d.ts.map +1 -0
  52. package/dist/components/data-grid/plugins/row-click/components/data-grid-row-click.d.ts +8 -0
  53. package/dist/components/data-grid/plugins/row-click/components/data-grid-row-click.d.ts.map +1 -0
  54. package/dist/components/data-grid/plugins/row-click/public.d.ts +3 -0
  55. package/dist/components/data-grid/plugins/row-click/public.d.ts.map +1 -0
  56. package/dist/components/data-grid/plugins/row-click/row-click-plugin.d.ts +14 -0
  57. package/dist/components/data-grid/plugins/row-click/row-click-plugin.d.ts.map +1 -0
  58. package/dist/components/data-grid/plugins/row-click/row-click-utils.d.ts +9 -0
  59. package/dist/components/data-grid/plugins/row-click/row-click-utils.d.ts.map +1 -0
  60. package/dist/components/data-grid/plugins/row-number/components/data-grid-row-number-cell.d.ts +3 -0
  61. package/dist/components/data-grid/plugins/row-number/components/data-grid-row-number-cell.d.ts.map +1 -0
  62. package/dist/components/data-grid/plugins/row-number/public.d.ts +3 -0
  63. package/dist/components/data-grid/plugins/row-number/public.d.ts.map +1 -0
  64. package/dist/components/data-grid/plugins/row-number/row-number-plugin.d.ts +4 -0
  65. package/dist/components/data-grid/plugins/row-number/row-number-plugin.d.ts.map +1 -0
  66. package/dist/components/data-grid/plugins/row-number/row-number-types.d.ts +6 -0
  67. package/dist/components/data-grid/plugins/row-number/row-number-types.d.ts.map +1 -0
  68. package/dist/components/data-grid/plugins/row-number/services/row-number-formula.d.ts +2 -0
  69. package/dist/components/data-grid/plugins/row-number/services/row-number-formula.d.ts.map +1 -0
  70. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-banner.d.ts +3 -0
  71. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-banner.d.ts.map +1 -0
  72. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-body.d.ts +3 -0
  73. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-body.d.ts.map +1 -0
  74. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-header.d.ts +3 -0
  75. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-header.d.ts.map +1 -0
  76. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-top.d.ts +3 -0
  77. package/dist/components/data-grid/plugins/row-select/components/data-grid-row-select-top.d.ts.map +1 -0
  78. package/dist/components/data-grid/plugins/row-select/public.d.ts +3 -0
  79. package/dist/components/data-grid/plugins/row-select/public.d.ts.map +1 -0
  80. package/dist/components/data-grid/plugins/row-select/row-select-plugin.d.ts +5 -0
  81. package/dist/components/data-grid/plugins/row-select/row-select-plugin.d.ts.map +1 -0
  82. package/dist/components/data-grid/plugins/row-select/row-select-types.d.ts +113 -0
  83. package/dist/components/data-grid/plugins/row-select/row-select-types.d.ts.map +1 -0
  84. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-group-item.d.ts +10 -0
  85. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-group-item.d.ts.map +1 -0
  86. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-item.d.ts +10 -0
  87. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-item.d.ts.map +1 -0
  88. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-pin-button.d.ts +8 -0
  89. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-pin-button.d.ts.map +1 -0
  90. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-trigger.d.ts +3 -0
  91. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration-trigger.d.ts.map +1 -0
  92. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration.d.ts +3 -0
  93. package/dist/components/data-grid/plugins/table-configuration/components/data-grid-table-configuration.d.ts.map +1 -0
  94. package/dist/components/data-grid/plugins/table-configuration/public.d.ts +3 -0
  95. package/dist/components/data-grid/plugins/table-configuration/public.d.ts.map +1 -0
  96. package/dist/components/data-grid/plugins/table-configuration/table-configuration-plugin.d.ts +5 -0
  97. package/dist/components/data-grid/plugins/table-configuration/table-configuration-plugin.d.ts.map +1 -0
  98. package/dist/components/data-grid/services/layout/components/data-grid-layout-top.d.ts.map +1 -1
  99. package/dist/components/data-grid/services/layout/components/toolbar-lines.d.ts +2 -0
  100. package/dist/components/data-grid/services/layout/components/toolbar-lines.d.ts.map +1 -0
  101. package/dist/components/data-grid/services/table/components/data-grid-cell.d.ts.map +1 -1
  102. package/dist/components/data-grid/services/table/components/data-grid-extra-header-cell.d.ts.map +1 -1
  103. package/dist/components/data-grid/services/table/components/data-grid-header-cell.d.ts.map +1 -1
  104. package/dist/components/data-grid/services/table/components/data-grid-header-group.d.ts.map +1 -1
  105. package/dist/components/data-grid/services/table/table-service.d.ts.map +1 -1
  106. package/dist/components/data-grid/services/table/table-sticky.d.ts +16 -0
  107. package/dist/components/data-grid/services/table/table-sticky.d.ts.map +1 -1
  108. package/dist/components/table/table.d.ts +20 -3
  109. package/dist/components/table/table.d.ts.map +1 -1
  110. package/dist/data-grid/actions-menu.d.ts +1 -0
  111. package/dist/data-grid/actions-menu.js +57 -0
  112. package/dist/data-grid/actions-menu.js.map +1 -0
  113. package/dist/data-grid/actions.d.ts +1 -0
  114. package/dist/data-grid/actions.js +36 -0
  115. package/dist/data-grid/actions.js.map +1 -0
  116. package/dist/data-grid/filters.js +24 -23
  117. package/dist/data-grid/filters.js.map +1 -1
  118. package/dist/data-grid/row-actions.d.ts +1 -0
  119. package/dist/data-grid/row-actions.js +52 -0
  120. package/dist/data-grid/row-actions.js.map +1 -0
  121. package/dist/data-grid/row-click.d.ts +1 -0
  122. package/dist/data-grid/row-click.js +69 -0
  123. package/dist/data-grid/row-click.js.map +1 -0
  124. package/dist/data-grid/row-number.d.ts +1 -0
  125. package/dist/data-grid/row-number.js +38 -0
  126. package/dist/data-grid/row-number.js.map +1 -0
  127. package/dist/data-grid/row-select.d.ts +1 -0
  128. package/dist/data-grid/row-select.js +293 -0
  129. package/dist/data-grid/row-select.js.map +1 -0
  130. package/dist/data-grid/table-configuration.d.ts +1 -0
  131. package/dist/data-grid/table-configuration.js +165 -0
  132. package/dist/data-grid/table-configuration.js.map +1 -0
  133. package/dist/data-grid.js +853 -921
  134. package/dist/data-grid.js.map +1 -1
  135. package/dist/docs/data-grid.md +336 -9
  136. package/dist/docs/table.md +57 -2
  137. package/dist/index.d.ts +7 -0
  138. package/dist/index.d.ts.map +1 -1
  139. package/dist/index.js +397 -382
  140. package/dist/index.js.map +1 -1
  141. package/dist/table.js +114 -112
  142. package/dist/table.js.map +1 -1
  143. package/llms.txt +9 -7
  144. package/package.json +1 -1
  145. package/dist/chunks/data-grid.DYrZEU-F.css +0 -1
  146. package/dist/chunks/table.CMm41tvy.css +0 -1
@@ -0,0 +1,2 @@
1
+ export declare function isOnOneLine(root: Element): boolean;
2
+ //# sourceMappingURL=toolbar-lines.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolbar-lines.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/layout/components/toolbar-lines.ts"],"names":[],"mappings":"AAgDA,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAIlD"}
@@ -1 +1 @@
1
- {"version":3,"file":"data-grid-cell.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-cell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAG3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAGlE,UAAU,iBAAiB;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,wEAAwE;IACxE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,kGAAkG;IAClG,QAAQ,CAAC,EAAE,2BAA2B,CAAC;IACvC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC;IACrC;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAUD,wBAAgB,YAAY,CAAC,KAAK,SAAS,YAAY,GAAG,YAAY,EAAE,EACtE,QAAQ,EACR,OAAO,EACP,SAAS,EACT,KAAK,EACL,KAAK,EACL,QAAQ,EACR,MAAM,EACN,OAAO,EACP,QAAQ,EACR,MAAM,EACN,KAAK,EACL,aAAa,EACb,WAAW,EACX,cAAc,GACf,EAAE,iBAAiB,+BA4CnB"}
1
+ {"version":3,"file":"data-grid-cell.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-cell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAG3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAGlE,UAAU,iBAAiB;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,wEAAwE;IACxE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,kGAAkG;IAClG,QAAQ,CAAC,EAAE,2BAA2B,CAAC;IACvC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC;IACrC;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAUD,wBAAgB,YAAY,CAAC,KAAK,SAAS,YAAY,GAAG,YAAY,EAAE,EACtE,QAAQ,EACR,OAAO,EACP,SAAS,EACT,KAAK,EACL,KAAK,EACL,QAAQ,EACR,MAAM,EACN,OAAO,EACP,QAAQ,EACR,MAAM,EACN,KAAK,EACL,aAAa,EACb,WAAW,EACX,cAAc,GACf,EAAE,iBAAiB,+BA6CnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"data-grid-extra-header-cell.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-extra-header-cell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAMlD,UAAU,4BAA4B;IACpC,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,uBAAuB,CAAC,KAAK,SAAS,YAAY,EAAE,EAClE,MAAM,EACN,OAAO,EACP,SAAS,EACT,QAAQ,GACT,EAAE,4BAA4B,+BAgB9B"}
1
+ {"version":3,"file":"data-grid-extra-header-cell.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-extra-header-cell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAKlD,UAAU,4BAA4B;IACpC,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,uBAAuB,CAAC,KAAK,SAAS,YAAY,EAAE,EAClE,MAAM,EACN,OAAO,EACP,SAAS,EACT,QAAQ,GACT,EAAE,4BAA4B,+BAa9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"data-grid-header-cell.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-header-cell.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAK7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAKrE,UAAU,uBAAuB,CAAC,KAAK,SAAS,YAAY;IAC1D,MAAM,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kBAAkB,EAAE,SAAS,EAAE,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,KAAK,SAAS,YAAY,EAAE,EAC7D,MAAM,EACN,OAAO,EACP,kBAAkB,EAClB,SAAS,GACV,EAAE,uBAAuB,CAAC,KAAK,CAAC,+BAgHhC"}
1
+ {"version":3,"file":"data-grid-header-cell.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-header-cell.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAK7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAIrE,UAAU,uBAAuB,CAAC,KAAK,SAAS,YAAY;IAC1D,MAAM,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kBAAkB,EAAE,SAAS,EAAE,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,KAAK,SAAS,YAAY,EAAE,EAC7D,MAAM,EACN,OAAO,EACP,kBAAkB,EAClB,SAAS,GACV,EAAE,uBAAuB,CAAC,KAAK,CAAC,+BA+GhC"}
@@ -1 +1 @@
1
- {"version":3,"file":"data-grid-header-group.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-header-group.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAKzD,UAAU,wBAAwB,CAAC,KAAK,SAAS,YAAY;IAC3D,KAAK,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,mBAAmB,CAAC,KAAK,SAAS,YAAY,EAAE,EAC9D,KAAK,EACL,OAAO,EACP,SAAS,GACV,EAAE,wBAAwB,CAAC,KAAK,CAAC,+BA+BjC"}
1
+ {"version":3,"file":"data-grid-header-group.d.ts","sourceRoot":"","sources":["../../../../../../src/components/data-grid/services/table/components/data-grid-header-group.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAKzD,UAAU,wBAAwB,CAAC,KAAK,SAAS,YAAY;IAC3D,KAAK,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,mBAAmB,CAAC,KAAK,SAAS,YAAY,EAAE,EAC9D,KAAK,EACL,OAAO,EACP,SAAS,GACV,EAAE,wBAAwB,CAAC,KAAK,CAAC,+BAyBjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"table-service.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/table/table-service.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAgB3E,OAAO,KAAK,EASV,YAAY,EACb,MAAM,eAAe,CAAC;AAGvB,wBAAgB,kBAAkB,CAAC,KAAK,SAAS,YAAY,EAC3D,OAAO,EAAE,eAAe,CAAC,KAAK,CAAC,GAC9B,YAAY,CAAC,KAAK,CAAC,CAyKrB"}
1
+ {"version":3,"file":"table-service.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/table/table-service.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAgB3E,OAAO,KAAK,EASV,YAAY,EACb,MAAM,eAAe,CAAC;AAGvB,wBAAgB,kBAAkB,CAAC,KAAK,SAAS,YAAY,EAC3D,OAAO,EAAE,eAAe,CAAC,KAAK,CAAC,GAC9B,YAAY,CAAC,KAAK,CAAC,CAgLrB"}
@@ -4,6 +4,8 @@ import { DataGridItem } from '../../data-grid-types';
4
4
  import { DataGridTableColumn, DataGridTableGroup, TableStore } from './table-types';
5
5
  /** The slice of the table store the inline-end offsets are derived from. */
6
6
  type EndStickyState = Pick<TableStore, 'extraColumnsEnd' | 'columnWidths'>;
7
+ /** The slice of the table store that says whether a start extra column pins, and where. */
8
+ type StartExtraStickyState<TItem extends DataGridItem> = Pick<TableStore<TItem>, 'extraColumnsStart' | 'columns' | 'flatColumns' | 'columnVisibility' | 'columnSticky' | 'groupSticky'>;
7
9
  export type TableStickyService<TItem extends DataGridItem = DataGridItem> = ReturnType<typeof prepareTableSticky<TItem>>;
8
10
  export declare function prepareTableSticky<TItem extends DataGridItem = DataGridItem>(useTableStore: UseBoundStore<StoreApi<TableStore<TItem>>>): {
9
11
  initializeStickyState: (columns: (DataGridTableColumn<TItem> | DataGridTableGroup<TItem>)[]) => {
@@ -18,6 +20,20 @@ export declare function prepareTableSticky<TItem extends DataGridItem = DataGrid
18
20
  useColumnEndStickyOffset: (columnId: string) => number | undefined;
19
21
  useGroupStickyOffset: (groupId: string) => number | undefined;
20
22
  };
23
+ /**
24
+ * Offset from the table's inline-start edge for an extra `start` column (a row number, a
25
+ * checkbox), or `undefined` when it does not pin.
26
+ *
27
+ * A pinned data column or group is offset by the width of every start extra column, so the extra
28
+ * columns have to be pinned in front of it: left unpinned they scroll away and leave that width
29
+ * empty. They pin together with the first pinned data column and not before it, so a grid that pins
30
+ * nothing scrolls its extra columns away with the rest. A pinned column that is hidden pins nothing.
31
+ * Each one sits behind the extra columns before it, in the order they are drawn.
32
+ *
33
+ * The widths are read the way the data columns' own offset reads them (the registered `width`), so
34
+ * the two sums always agree. Pure and store-shaped, like `getEndStickyOffset`.
35
+ */
36
+ export declare function getStartExtraStickyOffset<TItem extends DataGridItem>(s: StartExtraStickyState<TItem>, columnId: string): number | undefined;
21
37
  /**
22
38
  * Offset from the table's inline-end edge for a pinned `end` extra column, or `undefined` when
23
39
  * the column is not an `end` column that pins.
@@ -1 +1 @@
1
- {"version":3,"file":"table-sticky.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-grid/services/table/table-sticky.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB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/B,QAAQ,EAAE,MAAM,GACf,MAAM,GAAG,SAAS,CAYpB;AAaD;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAW1F"}
@@ -51,6 +51,12 @@ export declare function TableFooter({ className, ...props }: TableFooterProps):
51
51
  export type TableRowProps = ComponentProps<'tr'>;
52
52
  export declare function TableRow({ className, ...props }: TableRowProps): import("react").JSX.Element;
53
53
  export interface TableHeadProps extends ComponentProps<'th'> {
54
+ /**
55
+ * Pins the cell to an inline edge so the other columns scroll under it. The offset is the
56
+ * caller's: give `insetInlineStart` or `insetInlineEnd` in `style`. See `TableCellProps.pinned`.
57
+ * @default false
58
+ */
59
+ pinned?: boolean;
54
60
  /**
55
61
  * Renders a draggable, keyboard-resizable handle on the column's trailing
56
62
  * edge. Off by default: the spec's own default is on, but turning it on
@@ -64,9 +70,20 @@ export interface TableHeadProps extends ComponentProps<'th'> {
64
70
  */
65
71
  resizeMinWidth?: number;
66
72
  }
67
- export declare function TableHead({ className, resizable, resizeMinWidth, children, ...props }: TableHeadProps): import("react").JSX.Element;
68
- export type TableCellProps = ComponentProps<'td'>;
69
- export declare function TableCell({ className, ...props }: TableCellProps): import("react").JSX.Element;
73
+ export declare function TableHead({ className, pinned, resizable, resizeMinWidth, children, ...props }: TableHeadProps): import("react").JSX.Element;
74
+ export interface TableCellProps extends ComponentProps<'td'> {
75
+ /**
76
+ * Pins the cell to an inline edge, for a column that stays in view while the rest of a table
77
+ * wider than its wrapper scrolls under it. Table makes the cell sticky, stacks it above the
78
+ * cells beneath and fills it with the row's own fill over an opaque base (`--table-pinned-fill`,
79
+ * `--card` by default), so it follows hover, `data-state` and the rest of the row. The offset is
80
+ * the caller's: a column pins at the sum of the widths pinned before it, which only the caller
81
+ * knows, so give `insetInlineStart` or `insetInlineEnd` in `style`.
82
+ * @default false
83
+ */
84
+ pinned?: boolean;
85
+ }
86
+ export declare function TableCell({ className, pinned, ...props }: TableCellProps): import("react").JSX.Element;
70
87
  /**
71
88
  * A table's accessible name/description, kept as a real semantic caption
72
89
  * regardless of where it's drawn — `.table`'s `caption-side: bottom` (see
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,aAAa,EAGlB,KAAK,GAAG,EAKT,MAAM,OAAO,CAAC;AAqYf,QAAA,MAAM,aAAa;;8EAejB,CAAC;AAEH,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,OAAO,CAAC,EAAE,YAAY,CAAC,OAAO,aAAa,CAAC;IAC7F;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,2EAA2E;IAC3E,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B;;;;OAIG;IACH,YAAY,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IACnC;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,wBAAgB,KAAK,CAAC,EACpB,SAAS,EACT,KAAK,EACL,OAAO,EACP,OAAO,EACP,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,GAAG,KAAK,EACT,EAAE,UAAU,+BAuBZ;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;AAEvD,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAEpE;AAED,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;AAErD,wBA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IG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,SAAS,CAAC,EACxB,SAAS,EACT,MAAM,EACN,SAAS,EACT,cAAc,EACd,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,+BAOhB;AAED,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,IAAI,CAAC;IAC1D;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,+BAExE;AAED;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC;AAE1D,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BAEtE"}
@@ -0,0 +1 @@
1
+ export * from '../components/data-grid/plugins/actions-menu/public.js'
@@ -0,0 +1,57 @@
1
+ "use client";
2
+ import { create as l } from "zustand";
3
+ import { u as I, c as f } from "../chunks/plugins-helpers.js";
4
+ import { jsxs as h, jsx as r } from "react/jsx-runtime";
5
+ import { EllipsisIcon as D } from "lucide-react";
6
+ import { m as S } from "../chunks/messages.js";
7
+ import { DropdownMenu as w, DropdownMenuTrigger as G, DropdownMenuContent as P } from "../dropdown-menu.js";
8
+ import { Button as x } from "../button.js";
9
+ function b() {
10
+ const c = I().getPlugin("actionsMenu").useMenuItems();
11
+ return /* @__PURE__ */ h(w, { children: [
12
+ /* @__PURE__ */ r(
13
+ G,
14
+ {
15
+ render: /* @__PURE__ */ r(
16
+ x,
17
+ {
18
+ variant: "ghost",
19
+ size: "sm",
20
+ icon: /* @__PURE__ */ r(D, {}),
21
+ "aria-label": S.actionsMenu.actions
22
+ }
23
+ )
24
+ }
25
+ ),
26
+ /* @__PURE__ */ r(P, { side: "bottom", align: "end", children: c.map((s) => /* @__PURE__ */ r(s.component, { params: s.params }, s.id)) })
27
+ ] });
28
+ }
29
+ const T = f("actionsMenu", (u) => {
30
+ const n = l(() => ({
31
+ menuItems: []
32
+ }));
33
+ return u.registerSlot("top-end", {
34
+ id: "actionsMenu",
35
+ component: b,
36
+ order: 100
37
+ }), {
38
+ registerMenuItem: d,
39
+ useMenuItems: () => n((e) => e.menuItems),
40
+ onPropsChange: p
41
+ };
42
+ function d(e) {
43
+ const i = Math.random().toString(), t = n.getState().menuItems, o = e.order ?? (t.length + 1) * 10, a = { id: i, ...e, order: o }, m = [...t, a].sort((g, M) => g.order - M.order);
44
+ n.setState({ menuItems: m });
45
+ }
46
+ function p(e) {
47
+ const i = e.menuItems.map((t, o) => {
48
+ const a = Math.random().toString(), m = t.order ?? (o + 1) * 10;
49
+ return { id: a, ...t, order: m };
50
+ });
51
+ i.sort((t, o) => t.order - o.order), n.setState({ menuItems: i });
52
+ }
53
+ });
54
+ export {
55
+ T as DataGridActionsMenuPlugin
56
+ };
57
+ //# sourceMappingURL=actions-menu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions-menu.js","sources":["../../src/components/data-grid/plugins/actions-menu/components/data-grid-actions-menu.tsx","../../src/components/data-grid/plugins/actions-menu/actions-menu-plugin.tsx"],"sourcesContent":["import { EllipsisIcon } from 'lucide-react';\n\nimport { Button } from '../../../../button/public.js';\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuTrigger,\n} from '../../../../dropdown-menu/public.js';\nimport { messages } from '../../../messages';\nimport { useDataGrid } from '../../../services/core/data-grid-context';\nimport type { DataGridActionsMenuPluginApi } from '../actions-menu-types';\n\nexport function DataGridActionsMenu() {\n const grid = useDataGrid();\n const actionsMenu = grid.getPlugin<DataGridActionsMenuPluginApi>('actionsMenu')!;\n const menuItems = actionsMenu.useMenuItems();\n\n return (\n <DropdownMenu>\n <DropdownMenuTrigger\n render={\n <Button\n variant=\"ghost\"\n size=\"sm\"\n icon={<EllipsisIcon />}\n aria-label={messages.actionsMenu.actions}\n />\n }\n />\n <DropdownMenuContent side=\"bottom\" align=\"end\">\n {menuItems.map((menuItem) => (\n <menuItem.component key={menuItem.id} params={menuItem.params} />\n ))}\n </DropdownMenuContent>\n </DropdownMenu>\n );\n}\n","// Load-bearing: a plugin is rendered as a child of <DataGrid>, so a Server Component can import\n// and render it, and the component it returns calls hooks. This directive puts the banner on the\n// plugin's own entry chunk (dist/data-grid/<plugin>.js). client-boundaries.test.ts only scans a\n// component's top-level files, so scripts/verify-consumer.sh is what checks the built banner of\n// every plugin entry.\n'use client';\n\nimport { create } from 'zustand';\nimport type { DataGridItem } from '../../data-grid-types';\nimport { createDataGridPlugin } from '../../services/plugins/plugins-helpers';\nimport type {\n DataGridActionsMenuItem,\n DataGridActionsMenuItemOption,\n DataGridActionsMenuPluginApi,\n DataGridActionsMenuPluginProps,\n} from './actions-menu-types';\nimport { DataGridActionsMenu } from './components/data-grid-actions-menu';\n\ninterface ActionsMenuStore {\n menuItems: DataGridActionsMenuItem[];\n}\n\nexport const DataGridActionsMenuPlugin = createDataGridPlugin<\n DataGridItem,\n 'actionsMenu',\n DataGridActionsMenuPluginProps,\n DataGridActionsMenuPluginApi\n>('actionsMenu', (context) => {\n const useStore = create<ActionsMenuStore>(() => ({\n menuItems: [],\n }));\n\n context.registerSlot('top-end', {\n id: 'actionsMenu',\n component: DataGridActionsMenu,\n order: 100,\n });\n\n const useMenuItems = () => useStore((s) => s.menuItems);\n\n const api: DataGridActionsMenuPluginApi = {\n registerMenuItem,\n useMenuItems,\n onPropsChange,\n };\n\n return api;\n\n function registerMenuItem(options: DataGridActionsMenuItemOption) {\n const id = Math.random().toString();\n const currentItems = useStore.getState().menuItems;\n const order = options.order ?? (currentItems.length + 1) * 10;\n const newMenuItem = { id, ...options, order };\n const updatedItems = [...currentItems, newMenuItem].sort((a, b) => a.order - b.order);\n useStore.setState({ menuItems: updatedItems });\n }\n\n function onPropsChange(props: DataGridActionsMenuPluginProps) {\n const items: DataGridActionsMenuItem[] = props.menuItems.map((options, index) => {\n const id = Math.random().toString();\n const order = options.order ?? (index + 1) * 10;\n return { id, ...options, order } satisfies DataGridActionsMenuItem;\n });\n items.sort((a, b) => a.order - b.order);\n useStore.setState({ menuItems: items });\n }\n});\n"],"names":["DataGridActionsMenu","menuItems","useDataGrid","DropdownMenu","jsx","DropdownMenuTrigger","Button","EllipsisIcon","messages","DropdownMenuContent","menuItem","DataGridActionsMenuPlugin","createDataGridPlugin","context","useStore","create","registerMenuItem","s","onPropsChange","options","id","currentItems","order","newMenuItem","updatedItems","a","b","props","items","index"],"mappings":";;;;;;;;AAYO,SAASA,IAAsB;AAGpC,QAAMC,IAFOC,EAAA,EACY,UAAwC,aAAa,EAChD,aAAA;AAE9B,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,QACE,gBAAAD;AAAA,UAACE;AAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,MAAK;AAAA,YACL,wBAAOC,GAAA,EAAa;AAAA,YACpB,cAAYC,EAAS,YAAY;AAAA,UAAA;AAAA,QAAA;AAAA,MACnC;AAAA,IAAA;AAAA,IAGJ,gBAAAJ,EAACK,KAAoB,MAAK,UAAS,OAAM,OACtC,UAAAR,EAAU,IAAI,CAACS,wBACbA,EAAS,WAAT,EAAqC,QAAQA,EAAS,UAA9BA,EAAS,EAA6B,CAChE,EAAA,CACH;AAAA,EAAA,GACF;AAEJ;ACdO,MAAMC,IAA4BC,EAKvC,eAAe,CAACC,MAAY;AAC5B,QAAMC,IAAWC,EAAyB,OAAO;AAAA,IAC/C,WAAW,CAAA;AAAA,EAAC,EACZ;AAEF,SAAAF,EAAQ,aAAa,WAAW;AAAA,IAC9B,IAAI;AAAA,IACJ,WAAWb;AAAA,IACX,OAAO;AAAA,EAAA,CACR,GAIyC;AAAA,IACxC,kBAAAgB;AAAA,IACA,cAJmB,MAAMF,EAAS,CAACG,MAAMA,EAAE,SAAS;AAAA,IAKpD,eAAAC;AAAA,EAAA;AAKF,WAASF,EAAiBG,GAAwC;AAChE,UAAMC,IAAK,KAAK,OAAA,EAAS,SAAA,GACnBC,IAAeP,EAAS,SAAA,EAAW,WACnCQ,IAAQH,EAAQ,UAAUE,EAAa,SAAS,KAAK,IACrDE,IAAc,EAAE,IAAAH,GAAI,GAAGD,GAAS,OAAAG,EAAA,GAChCE,IAAe,CAAC,GAAGH,GAAcE,CAAW,EAAE,KAAK,CAACE,GAAGC,MAAMD,EAAE,QAAQC,EAAE,KAAK;AACpF,IAAAZ,EAAS,SAAS,EAAE,WAAWU,EAAA,CAAc;AAAA,EAC/C;AAEA,WAASN,EAAcS,GAAuC;AAC5D,UAAMC,IAAmCD,EAAM,UAAU,IAAI,CAACR,GAASU,MAAU;AAC/E,YAAMT,IAAK,KAAK,OAAA,EAAS,SAAA,GACnBE,IAAQH,EAAQ,UAAUU,IAAQ,KAAK;AAC7C,aAAO,EAAE,IAAAT,GAAI,GAAGD,GAAS,OAAAG,EAAA;AAAA,IAC3B,CAAC;AACD,IAAAM,EAAM,KAAK,CAACH,GAAGC,MAAMD,EAAE,QAAQC,EAAE,KAAK,GACtCZ,EAAS,SAAS,EAAE,WAAWc,EAAA,CAAO;AAAA,EACxC;AACF,CAAC;"}
@@ -0,0 +1 @@
1
+ export * from '../components/data-grid/plugins/actions/public.js'
@@ -0,0 +1,36 @@
1
+ "use client";
2
+ import { create as c } from "zustand";
3
+ import { u as i, c as a } from "../chunks/plugins-helpers.js";
4
+ import { jsx as s } from "react/jsx-runtime";
5
+ import '../chunks/actions.iasfkjWq.css';const u = "_wrapper_18zhb_1", m = {
6
+ wrapper: u
7
+ };
8
+ function d() {
9
+ const o = i().getPlugin("actions"), t = o.useComponent(), e = o.useProps();
10
+ return t ? /* @__PURE__ */ s("div", { className: m.wrapper, children: /* @__PURE__ */ s(t, { ...e }) }) : null;
11
+ }
12
+ const C = a("actions", (r) => {
13
+ const o = c(() => ({
14
+ component: null,
15
+ props: void 0
16
+ }));
17
+ return r.registerSlot("top-end", {
18
+ id: "actions",
19
+ component: d,
20
+ order: 0
21
+ }), {
22
+ useComponent: () => o((n) => n.component),
23
+ useProps: () => o((n) => n.props),
24
+ onPropsChange: p
25
+ };
26
+ function p(n) {
27
+ o.setState({
28
+ component: n.component,
29
+ props: n.props
30
+ });
31
+ }
32
+ });
33
+ export {
34
+ C as DataGridActionsPlugin
35
+ };
36
+ //# sourceMappingURL=actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.js","sources":["../../src/components/data-grid/plugins/actions/components/data-grid-actions-wrapper.tsx","../../src/components/data-grid/plugins/actions/actions-plugin.tsx"],"sourcesContent":["import { useDataGrid } from '../../../services/core/data-grid-context';\nimport type { DataGridActionsPluginApi } from '../actions-types';\nimport styles from './data-grid-actions-wrapper.module.css';\n\nexport function DataGridActionsWrapper() {\n const grid = useDataGrid();\n const actions = grid.getPlugin<DataGridActionsPluginApi>('actions')!;\n\n const ActionComponent = actions.useComponent();\n const actionProps = actions.useProps();\n\n if (!ActionComponent) {\n return null;\n }\n\n return (\n <div className={styles.wrapper}>\n {/* eslint-disable-next-line react-hooks/static-components -- ActionComponent is the consumer's component held in the plugin's store, so it is the same component on every render; the rule cannot see through the store. */}\n <ActionComponent {...actionProps} />\n </div>\n );\n}\n","// Load-bearing: a plugin is rendered as a child of <DataGrid>, so a Server Component can import\n// and render it, and the component it returns calls hooks. This directive puts the banner on the\n// plugin's own entry chunk (dist/data-grid/<plugin>.js). client-boundaries.test.ts only scans a\n// component's top-level files, so scripts/verify-consumer.sh is what checks the built banner of\n// every plugin entry.\n'use client';\n\nimport type { ComponentType } from 'react';\nimport { create } from 'zustand';\nimport type { DataGridItem } from '../../data-grid-types';\nimport { createDataGridPlugin } from '../../services/plugins/plugins-helpers';\nimport type { DataGridActionsPluginApi, DataGridActionsPluginProps } from './actions-types';\nimport { DataGridActionsWrapper } from './components/data-grid-actions-wrapper';\n\nexport type { DataGridActionsPluginApi, DataGridActionsPluginProps };\n\ninterface ActionsStore {\n component: ComponentType | null;\n props?: Record<string, unknown>;\n}\n\nexport const DataGridActionsPlugin = createDataGridPlugin<\n DataGridItem,\n 'actions',\n DataGridActionsPluginProps\n>('actions', (context) => {\n const useStore = create<ActionsStore>(() => ({\n component: null,\n props: undefined,\n }));\n\n context.registerSlot('top-end', {\n id: 'actions',\n component: DataGridActionsWrapper,\n order: 0,\n });\n\n const useComponent = () => useStore((s) => s.component);\n const useProps = () => useStore((s) => s.props);\n\n const api: DataGridActionsPluginApi = {\n useComponent,\n useProps,\n onPropsChange,\n };\n\n return api;\n\n function onPropsChange(props: DataGridActionsPluginProps) {\n useStore.setState({\n component: props.component,\n props: props.props,\n });\n }\n});\n"],"names":["DataGridActionsWrapper","actions","useDataGrid","ActionComponent","actionProps","jsx","styles","DataGridActionsPlugin","createDataGridPlugin","context","useStore","create","s","onPropsChange","props"],"mappings":";;;;;;;AAIO,SAASA,IAAyB;AAEvC,QAAMC,IADOC,EAAA,EACQ,UAAoC,SAAS,GAE5DC,IAAkBF,EAAQ,aAAA,GAC1BG,IAAcH,EAAQ,SAAA;AAE5B,SAAKE,IAKH,gBAAAE,EAAC,SAAI,WAAWC,EAAO,SAErB,UAAA,gBAAAD,EAACF,GAAA,EAAiB,GAAGC,EAAA,CAAa,EAAA,CACpC,IAPO;AASX;ACAO,MAAMG,IAAwBC,EAInC,WAAW,CAACC,MAAY;AACxB,QAAMC,IAAWC,EAAqB,OAAO;AAAA,IAC3C,WAAW;AAAA,IACX,OAAO;AAAA,EAAA,EACP;AAEF,SAAAF,EAAQ,aAAa,WAAW;AAAA,IAC9B,IAAI;AAAA,IACJ,WAAWT;AAAA,IACX,OAAO;AAAA,EAAA,CACR,GAKqC;AAAA,IACpC,cAJmB,MAAMU,EAAS,CAACE,MAAMA,EAAE,SAAS;AAAA,IAKpD,UAJe,MAAMF,EAAS,CAACE,MAAMA,EAAE,KAAK;AAAA,IAK5C,eAAAC;AAAA,EAAA;AAKF,WAASA,EAAcC,GAAmC;AACxD,IAAAJ,EAAS,SAAS;AAAA,MAChB,WAAWI,EAAM;AAAA,MACjB,OAAOA,EAAM;AAAA,IAAA,CACd;AAAA,EACH;AACF,CAAC;"}
@@ -13,11 +13,12 @@ import { Badge as de } from "../badge.js";
13
13
  import { d as Ke } from "../chunks/debounce.js";
14
14
  import { Popover as Nt, PopoverTrigger as wt, PopoverContent as At } from "../popover.js";
15
15
  import { Drawer as xt, DrawerTrigger as Ft, DrawerContent as Dt } from "../drawer.js";
16
- import { a as Lt, c as kt, u as Tt } from "../chunks/hooked.js";
16
+ import { a as Lt } from "../chunks/table-types.js";
17
17
  import { Input as Me } from "../input.js";
18
- import { Spinner as Pt } from "../spinner.js";
18
+ import { Spinner as kt } from "../spinner.js";
19
19
  import { Label as Oe } from "../label.js";
20
- import { Checkbox as Kt } from "../checkbox.js";
20
+ import { Checkbox as Tt } from "../checkbox.js";
21
+ import { c as Pt, u as Kt } from "../chunks/hooked.js";
21
22
  import { DropdownMenu as Mt, DropdownMenuItem as ze } from "../dropdown-menu.js";
22
23
  import { useShallow as U } from "zustand/react/shallow";
23
24
  import { RadioGroup as Ot, RadioGroupItem as zt } from "../radio-group.js";
@@ -122,7 +123,7 @@ function sn() {
122
123
  i.length === 0 && l && /* @__PURE__ */ s(Ie, {})
123
124
  ] });
124
125
  }
125
- const mo = rt("filters", (e) => {
126
+ const go = rt("filters", (e) => {
126
127
  const t = z(() => ({
127
128
  entities: [],
128
129
  isAllFiltersOptionVisible: !0
@@ -325,7 +326,7 @@ function yn({ filterEntity: e }) {
325
326
  }
326
327
  return /* @__PURE__ */ s(X, { filterEntity: e, children: /* @__PURE__ */ s(Me, { value: o, onValueChange: a }) });
327
328
  }
328
- function go(e) {
329
+ function So(e) {
329
330
  return {
330
331
  id: e.id,
331
332
  filterKey: e.filterKey ?? e.id,
@@ -340,7 +341,7 @@ function In({ filterEntity: e }) {
340
341
  }
341
342
  return /* @__PURE__ */ s(fe, { active: o, onClick: i, children: /* @__PURE__ */ s(pe, { filterEntity: e }) });
342
343
  }
343
- function So(e) {
344
+ function vo(e) {
344
345
  return {
345
346
  id: e.id,
346
347
  filterKey: e.filterKey ?? e.id,
@@ -472,7 +473,7 @@ function Ve({
472
473
  }) {
473
474
  return /* @__PURE__ */ s("ul", { className: Z.list, children: e.map((r) => /* @__PURE__ */ s("li", { className: Z.listItem, children: /* @__PURE__ */ w(Oe, { children: [
474
475
  /* @__PURE__ */ s(
475
- Kt,
476
+ Tt,
476
477
  {
477
478
  checked: t.includes(r.value),
478
479
  onCheckedChange: (o) => n($n(t, r.value, o))
@@ -507,7 +508,7 @@ function Gn({
507
508
  ), h = f && a.length === 0;
508
509
  return /* @__PURE__ */ w(P, { children: [
509
510
  /* @__PURE__ */ s(ne, { size: o, children: /* @__PURE__ */ s(re, { value: i, onValueChange: l }) }),
510
- /* @__PURE__ */ s(oe, { children: h ? /* @__PURE__ */ s("div", { className: Z.status, children: /* @__PURE__ */ s(Pt, {}) }) : a.length > 0 ? /* @__PURE__ */ s(Ve, { options: a, value: n, onChange: r }) : /* @__PURE__ */ s("div", { className: Z.status, children: O.filters.noOptionsFound }) })
511
+ /* @__PURE__ */ s(oe, { children: h ? /* @__PURE__ */ s("div", { className: Z.status, children: /* @__PURE__ */ s(kt, {}) }) : a.length > 0 ? /* @__PURE__ */ s(Ve, { options: a, value: n, onChange: r }) : /* @__PURE__ */ s("div", { className: Z.status, children: O.filters.noOptionsFound }) })
511
512
  ] });
512
513
  }
513
514
  function He({ filterEntity: e, ...t }) {
@@ -544,7 +545,7 @@ function Hn({ filterEntity: e }) {
544
545
  }
545
546
  ) });
546
547
  }
547
- function vo(e) {
548
+ function Co(e) {
548
549
  const { options: t } = e;
549
550
  return {
550
551
  id: e.id,
@@ -625,7 +626,7 @@ function Un({ filterEntity: e }) {
625
626
  }
626
627
  ) });
627
628
  }
628
- function Co(e) {
629
+ function yo(e) {
629
630
  return {
630
631
  id: e.id,
631
632
  filterKey: e.filterKey ?? e.id,
@@ -904,7 +905,7 @@ function ur(e) {
904
905
  }
905
906
  }
906
907
  function dr() {
907
- const e = kt();
908
+ const e = Pt();
908
909
  return {
909
910
  hook: e.hook,
910
911
  callHook: e.callHook,
@@ -1197,7 +1198,7 @@ function Dr({
1197
1198
  children: n,
1198
1199
  ...r
1199
1200
  }) {
1200
- const o = Tt(t), [i] = T(
1201
+ const o = Kt(t), [i] = T(
1201
1202
  () => Fr({
1202
1203
  ...r,
1203
1204
  name: e,
@@ -1332,7 +1333,7 @@ function zr({ filterEntity: e }) {
1332
1333
  }
1333
1334
  return /* @__PURE__ */ s(X, { filterEntity: e, children: /* @__PURE__ */ s(Qe, { filterEntity: e, value: o, onChange: i, searchSize: "m" }) });
1334
1335
  }
1335
- function yo(e) {
1336
+ function Io(e) {
1336
1337
  return {
1337
1338
  id: e.id,
1338
1339
  filterKey: e.filterKey ?? e.id,
@@ -1419,7 +1420,7 @@ function Hr({ filterEntity: e }) {
1419
1420
  }
1420
1421
  ) });
1421
1422
  }
1422
- function Io(e) {
1423
+ function bo(e) {
1423
1424
  return {
1424
1425
  id: e.id,
1425
1426
  filterKey: e.filterKey ?? e.id,
@@ -1615,19 +1616,19 @@ function Br(e) {
1615
1616
  }
1616
1617
  }
1617
1618
  }
1618
- function bo(e) {
1619
+ function _o(e) {
1619
1620
  const [t] = T(() => Br(e));
1620
1621
  return t;
1621
1622
  }
1622
1623
  export {
1623
- mo as DataGridFiltersPlugin,
1624
+ go as DataGridFiltersPlugin,
1624
1625
  Br as createDataGridTreeStructure,
1625
- vo as filterCheckboxGroup,
1626
- Io as filterDateRange,
1627
- go as filterSearch,
1628
- Co as filterTagGroup,
1629
- So as filterToggle,
1630
- yo as filterTree,
1631
- bo as useDataGridTreeStructure
1626
+ Co as filterCheckboxGroup,
1627
+ bo as filterDateRange,
1628
+ So as filterSearch,
1629
+ yo as filterTagGroup,
1630
+ vo as filterToggle,
1631
+ Io as filterTree,
1632
+ _o as useDataGridTreeStructure
1632
1633
  };
1633
1634
  //# sourceMappingURL=filters.js.map