@adapttable/element-plus 0.3.3 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. package/dist/{ElementCheckbox-BewKx6sv.cjs → ElementCheckbox-BXSH2jHY.cjs} +19 -13
  2. package/dist/ElementCheckbox-BXSH2jHY.cjs.map +1 -0
  3. package/dist/{ElementCheckbox-BQN4_eas.js → ElementCheckbox-DobrxadY.js} +21 -15
  4. package/dist/ElementCheckbox-DobrxadY.js.map +1 -0
  5. package/dist/{ElementColumnMenuPanel-D9oWJf02.js → ElementColumnMenuPanel-CPW4wU3M.js} +5 -5
  6. package/dist/ElementColumnMenuPanel-CPW4wU3M.js.map +1 -0
  7. package/dist/{ElementColumnMenuPanel-DavsUQAR.cjs → ElementColumnMenuPanel-Ddh01A17.cjs} +3 -3
  8. package/dist/ElementColumnMenuPanel-Ddh01A17.cjs.map +1 -0
  9. package/dist/{ElementFilterHeaderRow-C3N5F-sW.cjs → ElementFilterHeaderRow-D8ZZ3BOH.cjs} +32 -16
  10. package/dist/ElementFilterHeaderRow-D8ZZ3BOH.cjs.map +1 -0
  11. package/dist/{ElementFilterHeaderRow-qiv68upK.js → ElementFilterHeaderRow-DGp4Wrts.js} +33 -17
  12. package/dist/ElementFilterHeaderRow-DGp4Wrts.js.map +1 -0
  13. package/dist/ElementFilterHeaderRow.vue-aMWpPgI9.d.cts.map +1 -1
  14. package/dist/ElementFilterHeaderRow.vue-aMWpPgI9.d.ts.map +1 -1
  15. package/dist/{ElementFilterSurface-CUpyLfPF.cjs → ElementFilterSurface-CUgNfyWW.cjs} +8 -9
  16. package/dist/ElementFilterSurface-CUgNfyWW.cjs.map +1 -0
  17. package/dist/{ElementFilterSurface-CztEiJ0k.js → ElementFilterSurface-CiOApO3l.js} +10 -11
  18. package/dist/ElementFilterSurface-CiOApO3l.js.map +1 -0
  19. package/dist/{ElementInput-vBVDBaLp.cjs → ElementInput-BF97xXSC.cjs} +12 -7
  20. package/dist/ElementInput-BF97xXSC.cjs.map +1 -0
  21. package/dist/{ElementInput-BsoAvPfO.js → ElementInput-Cn9hpa9j.js} +13 -8
  22. package/dist/ElementInput-Cn9hpa9j.js.map +1 -0
  23. package/dist/{ElementRowActions-BKfX2XRn.js → ElementRowActions-CUlFbY6s.js} +5 -5
  24. package/dist/ElementRowActions-CUlFbY6s.js.map +1 -0
  25. package/dist/{ElementRowActions-B_rR7qSj.cjs → ElementRowActions-ClYC3Ssq.cjs} +5 -5
  26. package/dist/ElementRowActions-ClYC3Ssq.cjs.map +1 -0
  27. package/dist/{ElementSelect-CvGw_zHh.cjs → ElementSelect-1UwtGCCr.cjs} +13 -8
  28. package/dist/ElementSelect-1UwtGCCr.cjs.map +1 -0
  29. package/dist/{ElementSelect-BtmVMA7B.js → ElementSelect-BxFmnPpv.js} +14 -9
  30. package/dist/ElementSelect-BxFmnPpv.js.map +1 -0
  31. package/dist/{assistant-B27ZguV8.cjs → assistant-D4l4OdXN.cjs} +3 -3
  32. package/dist/{assistant-B27ZguV8.cjs.map → assistant-D4l4OdXN.cjs.map} +1 -1
  33. package/dist/{assistant-BPwGaQnx.js → assistant-DRDxJajO.js} +3 -3
  34. package/dist/{assistant-BPwGaQnx.js.map → assistant-DRDxJajO.js.map} +1 -1
  35. package/dist/assistant.cjs +1 -1
  36. package/dist/assistant.js +1 -1
  37. package/dist/batch-editing.cjs +1 -1
  38. package/dist/batch-editing.js +1 -1
  39. package/dist/{cell-navigation-BXE28fwQ.cjs → cell-navigation-DJ-_1Mjr.cjs} +2 -2
  40. package/dist/{cell-navigation-BXE28fwQ.cjs.map → cell-navigation-DJ-_1Mjr.cjs.map} +1 -1
  41. package/dist/{cell-navigation-THnr6YdK.js → cell-navigation-arDY86xD.js} +2 -2
  42. package/dist/{cell-navigation-THnr6YdK.js.map → cell-navigation-arDY86xD.js.map} +1 -1
  43. package/dist/cell-navigation.cjs +1 -1
  44. package/dist/cell-navigation.js +1 -1
  45. package/dist/{checkbox-DhUYYwWe.cjs → checkbox-BF19iMgI.cjs} +2 -2
  46. package/dist/{checkbox-DhUYYwWe.cjs.map → checkbox-BF19iMgI.cjs.map} +1 -1
  47. package/dist/{column-menu-Dna4oiPc.js → column-menu-BUxMPyJI.js} +7 -8
  48. package/dist/column-menu-BUxMPyJI.js.map +1 -0
  49. package/dist/{column-menu-C0YWdhRz.d.ts → column-menu-CAkx6AjR.d.ts} +5 -6
  50. package/dist/column-menu-CAkx6AjR.d.ts.map +1 -0
  51. package/dist/{column-menu-BUiQUex0.d.cts → column-menu-DsL_xeEM.d.cts} +5 -6
  52. package/dist/column-menu-DsL_xeEM.d.cts.map +1 -0
  53. package/dist/{column-menu-CNxXJ-ra.cjs → column-menu-jNw7kuxp.cjs} +6 -7
  54. package/dist/column-menu-jNw7kuxp.cjs.map +1 -0
  55. package/dist/column-menu.cjs +1 -1
  56. package/dist/column-menu.d.cts +1 -1
  57. package/dist/column-menu.d.ts +1 -1
  58. package/dist/column-menu.js +1 -1
  59. package/dist/column-selection.cjs +1 -1
  60. package/dist/column-selection.js +1 -1
  61. package/dist/command-palette.cjs +1 -1
  62. package/dist/command-palette.js +1 -1
  63. package/dist/context-menu.cjs +1 -1
  64. package/dist/context-menu.js +1 -1
  65. package/dist/{density-Bj1pck4x.cjs → density-CJLZxF1h.cjs} +2 -2
  66. package/dist/density-CJLZxF1h.cjs.map +1 -0
  67. package/dist/{density-ChRp0NG3.js → density-OeJSiWSC.js} +4 -4
  68. package/dist/density-OeJSiWSC.js.map +1 -0
  69. package/dist/density.cjs +1 -1
  70. package/dist/density.js +1 -1
  71. package/dist/{editing-9371TGFz.cjs → editing-Bhw_4VG8.cjs} +16 -16
  72. package/dist/editing-Bhw_4VG8.cjs.map +1 -0
  73. package/dist/editing-BnLdNDlo.d.ts.map +1 -1
  74. package/dist/editing-Cg6ZNvSa.d.cts.map +1 -1
  75. package/dist/{editing-B_HAxfh4.js → editing-DHjzbw-I.js} +18 -18
  76. package/dist/editing-DHjzbw-I.js.map +1 -0
  77. package/dist/editing.cjs +1 -1
  78. package/dist/editing.js +1 -1
  79. package/dist/{elementHierarchyControlSlots-Ctcmq3T2.js → elementHierarchyControlSlots-21LL1wEw.js} +4 -4
  80. package/dist/{elementHierarchyControlSlots-Ctcmq3T2.js.map → elementHierarchyControlSlots-21LL1wEw.js.map} +1 -1
  81. package/dist/{elementRemainingControls-BPGBbbUF.js → elementRemainingControls-6tN9tgWx.js} +6 -6
  82. package/dist/elementRemainingControls-6tN9tgWx.js.map +1 -0
  83. package/dist/{elementRemainingControls-CtY2jZWN.cjs → elementRemainingControls-DvVVLXE0.cjs} +4 -4
  84. package/dist/elementRemainingControls-DvVVLXE0.cjs.map +1 -0
  85. package/dist/export-csv-DRDjZuQj.d.cts +9 -0
  86. package/dist/export-csv-DRDjZuQj.d.cts.map +1 -0
  87. package/dist/export-csv-VyICO_s0.d.ts +9 -0
  88. package/dist/export-csv-VyICO_s0.d.ts.map +1 -0
  89. package/dist/export-csv.cjs +11 -0
  90. package/dist/export-csv.cjs.map +1 -0
  91. package/dist/export-csv.d.cts +2 -0
  92. package/dist/export-csv.d.ts +2 -0
  93. package/dist/export-csv.js +10 -0
  94. package/dist/export-csv.js.map +1 -0
  95. package/dist/export-pdf.cjs +53 -0
  96. package/dist/export-pdf.cjs.map +1 -0
  97. package/dist/export-pdf.d.cts +8 -0
  98. package/dist/export-pdf.d.cts.map +1 -0
  99. package/dist/export-pdf.d.ts +8 -0
  100. package/dist/export-pdf.d.ts.map +1 -0
  101. package/dist/export-pdf.js +10 -0
  102. package/dist/export-pdf.js.map +1 -0
  103. package/dist/export-xlsx.cjs +23 -0
  104. package/dist/export-xlsx.cjs.map +1 -0
  105. package/dist/export-xlsx.d.cts +8 -0
  106. package/dist/export-xlsx.d.cts.map +1 -0
  107. package/dist/export-xlsx.d.ts +8 -0
  108. package/dist/export-xlsx.d.ts.map +1 -0
  109. package/dist/export-xlsx.js +10 -0
  110. package/dist/export-xlsx.js.map +1 -0
  111. package/dist/export.cjs +2 -2
  112. package/dist/export.d.cts +2 -8
  113. package/dist/export.d.ts +2 -8
  114. package/dist/export.js +1 -1
  115. package/dist/features.cjs +16 -15
  116. package/dist/features.d.cts +4 -3
  117. package/dist/features.d.ts +4 -3
  118. package/dist/features.js +15 -14
  119. package/dist/{filters-BMS9STAJ.js → filters-87q6jAVU.js} +73 -73
  120. package/dist/filters-87q6jAVU.js.map +1 -0
  121. package/dist/{filters-BYHvvws9.d.cts → filters-BySwxJJ0.d.cts} +9 -11
  122. package/dist/filters-BySwxJJ0.d.cts.map +1 -0
  123. package/dist/{filters-BuzAGNaj.cjs → filters-bdHAQnex.cjs} +72 -72
  124. package/dist/filters-bdHAQnex.cjs.map +1 -0
  125. package/dist/{filters-BJDFrg_k.d.ts → filters-iRpu_mXa.d.ts} +9 -11
  126. package/dist/filters-iRpu_mXa.d.ts.map +1 -0
  127. package/dist/filters.cjs +2 -2
  128. package/dist/filters.d.cts +1 -1
  129. package/dist/filters.d.ts +1 -1
  130. package/dist/filters.js +2 -2
  131. package/dist/{find-in-table--8ZBYijC.js → find-in-table-B9ySCCJh.js} +2 -2
  132. package/dist/{find-in-table--8ZBYijC.js.map → find-in-table-B9ySCCJh.js.map} +1 -1
  133. package/dist/{find-in-table-DOn2Hua1.cjs → find-in-table-WtXzIkkg.cjs} +2 -2
  134. package/dist/{find-in-table-DOn2Hua1.cjs.map → find-in-table-WtXzIkkg.cjs.map} +1 -1
  135. package/dist/find-in-table.cjs +1 -1
  136. package/dist/find-in-table.js +1 -1
  137. package/dist/{grouping-panel-CscefKyP.js → grouping-panel-B7j8sSpT.js} +3 -3
  138. package/dist/{grouping-panel-CscefKyP.js.map → grouping-panel-B7j8sSpT.js.map} +1 -1
  139. package/dist/{grouping-panel-C_QWRh_Q.cjs → grouping-panel-B_ibl915.cjs} +3 -3
  140. package/dist/{grouping-panel-C_QWRh_Q.cjs.map → grouping-panel-B_ibl915.cjs.map} +1 -1
  141. package/dist/grouping-panel.cjs +1 -1
  142. package/dist/grouping-panel.js +1 -1
  143. package/dist/grouping.cjs +2 -2
  144. package/dist/grouping.cjs.map +1 -1
  145. package/dist/grouping.js +2 -2
  146. package/dist/grouping.js.map +1 -1
  147. package/dist/header-filters-B2B5RqQS.d.ts.map +1 -1
  148. package/dist/{header-filters-BDSKDeJ9.cjs → header-filters-Cu7t_2IW.cjs} +8 -5
  149. package/dist/header-filters-Cu7t_2IW.cjs.map +1 -0
  150. package/dist/{header-filters-FQFlnVM9.js → header-filters-DUZI1x70.js} +9 -6
  151. package/dist/header-filters-DUZI1x70.js.map +1 -0
  152. package/dist/header-filters-hGm_7LFO.d.cts.map +1 -1
  153. package/dist/header-filters.cjs +2 -2
  154. package/dist/header-filters.js +2 -2
  155. package/dist/index.cjs +110 -48
  156. package/dist/index.cjs.map +1 -1
  157. package/dist/index.d.cts.map +1 -1
  158. package/dist/index.d.ts.map +1 -1
  159. package/dist/index.js +113 -51
  160. package/dist/index.js.map +1 -1
  161. package/dist/pivot.cjs +4 -5
  162. package/dist/pivot.cjs.map +1 -1
  163. package/dist/pivot.d.cts +3 -4
  164. package/dist/pivot.d.cts.map +1 -1
  165. package/dist/pivot.d.ts +3 -4
  166. package/dist/pivot.d.ts.map +1 -1
  167. package/dist/pivot.js +5 -6
  168. package/dist/pivot.js.map +1 -1
  169. package/dist/preset.cjs +9 -8
  170. package/dist/preset.cjs.map +1 -1
  171. package/dist/preset.js +8 -7
  172. package/dist/preset.js.map +1 -1
  173. package/dist/row-actions.cjs +1 -1
  174. package/dist/row-actions.js +1 -1
  175. package/dist/row-pinning.cjs +1 -1
  176. package/dist/row-pinning.js +1 -1
  177. package/dist/{row-reorder-kuiFvbsM.js → row-reorder-BYwX3CBP.js} +4 -4
  178. package/dist/row-reorder-BYwX3CBP.js.map +1 -0
  179. package/dist/{row-reorder-BNscjPNy.cjs → row-reorder-MSR2yDN6.cjs} +2 -2
  180. package/dist/row-reorder-MSR2yDN6.cjs.map +1 -0
  181. package/dist/row-reorder.cjs +1 -1
  182. package/dist/row-reorder.js +1 -1
  183. package/dist/rowActionsSlot-CdnzwBmt.js.map +1 -1
  184. package/dist/rowActionsSlot-Ps5hHI6n.cjs.map +1 -1
  185. package/dist/{saved-views-DW8WybwV.js → saved-views-DDo4Bl-f.js} +3 -3
  186. package/dist/{saved-views-DW8WybwV.js.map → saved-views-DDo4Bl-f.js.map} +1 -1
  187. package/dist/{saved-views-BTJxWOyY.cjs → saved-views-luZVHu3w.cjs} +3 -3
  188. package/dist/{saved-views-BTJxWOyY.cjs.map → saved-views-luZVHu3w.cjs.map} +1 -1
  189. package/dist/saved-views.cjs +1 -1
  190. package/dist/saved-views.js +1 -1
  191. package/dist/{scrollbarGutter-B-QczwA9.cjs → scrollbarGutter-CV4T0Q-9.cjs} +2 -2
  192. package/dist/{scrollbarGutter-B-QczwA9.cjs.map → scrollbarGutter-CV4T0Q-9.cjs.map} +1 -1
  193. package/dist/{scrollbarGutter-BNp0-4l1.js → scrollbarGutter-D9pkb_r0.js} +2 -2
  194. package/dist/{scrollbarGutter-BNp0-4l1.js.map → scrollbarGutter-D9pkb_r0.js.map} +1 -1
  195. package/dist/side-panel.cjs +1 -1
  196. package/dist/side-panel.js +1 -1
  197. package/dist/styles.css +33 -3
  198. package/dist/{export-DR1t4N5Q.js → withElementExport-B97s6RIr.js} +6 -6
  199. package/dist/withElementExport-B97s6RIr.js.map +1 -0
  200. package/dist/{export-CL36qPVY.cjs → withElementExport-J-6vXfL9.cjs} +7 -7
  201. package/dist/withElementExport-J-6vXfL9.cjs.map +1 -0
  202. package/package.json +33 -4
  203. package/dist/ElementCheckbox-BQN4_eas.js.map +0 -1
  204. package/dist/ElementCheckbox-BewKx6sv.cjs.map +0 -1
  205. package/dist/ElementColumnMenuPanel-D9oWJf02.js.map +0 -1
  206. package/dist/ElementColumnMenuPanel-DavsUQAR.cjs.map +0 -1
  207. package/dist/ElementFilterHeaderRow-C3N5F-sW.cjs.map +0 -1
  208. package/dist/ElementFilterHeaderRow-qiv68upK.js.map +0 -1
  209. package/dist/ElementFilterSurface-CUpyLfPF.cjs.map +0 -1
  210. package/dist/ElementFilterSurface-CztEiJ0k.js.map +0 -1
  211. package/dist/ElementInput-BsoAvPfO.js.map +0 -1
  212. package/dist/ElementInput-vBVDBaLp.cjs.map +0 -1
  213. package/dist/ElementRowActions-BKfX2XRn.js.map +0 -1
  214. package/dist/ElementRowActions-B_rR7qSj.cjs.map +0 -1
  215. package/dist/ElementSelect-BtmVMA7B.js.map +0 -1
  216. package/dist/ElementSelect-CvGw_zHh.cjs.map +0 -1
  217. package/dist/column-menu-BUiQUex0.d.cts.map +0 -1
  218. package/dist/column-menu-C0YWdhRz.d.ts.map +0 -1
  219. package/dist/column-menu-CNxXJ-ra.cjs.map +0 -1
  220. package/dist/column-menu-Dna4oiPc.js.map +0 -1
  221. package/dist/density-Bj1pck4x.cjs.map +0 -1
  222. package/dist/density-ChRp0NG3.js.map +0 -1
  223. package/dist/editing-9371TGFz.cjs.map +0 -1
  224. package/dist/editing-B_HAxfh4.js.map +0 -1
  225. package/dist/elementRemainingControls-BPGBbbUF.js.map +0 -1
  226. package/dist/elementRemainingControls-CtY2jZWN.cjs.map +0 -1
  227. package/dist/export-CL36qPVY.cjs.map +0 -1
  228. package/dist/export-DR1t4N5Q.js.map +0 -1
  229. package/dist/export.d.cts.map +0 -1
  230. package/dist/export.d.ts.map +0 -1
  231. package/dist/filters-BJDFrg_k.d.ts.map +0 -1
  232. package/dist/filters-BMS9STAJ.js.map +0 -1
  233. package/dist/filters-BYHvvws9.d.cts.map +0 -1
  234. package/dist/filters-BuzAGNaj.cjs.map +0 -1
  235. package/dist/header-filters-BDSKDeJ9.cjs.map +0 -1
  236. package/dist/header-filters-FQFlnVM9.js.map +0 -1
  237. package/dist/row-reorder-BNscjPNy.cjs.map +0 -1
  238. package/dist/row-reorder-kuiFvbsM.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_elementRemainingControls = require("./elementRemainingControls-CtY2jZWN.cjs");
2
+ const require_elementRemainingControls = require("./elementRemainingControls-DvVVLXE0.cjs");
3
3
  let vue = require("vue");
4
4
  let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
5
5
  let _adapttable_vue_features = require("@adapttable/vue/features");
@@ -1,4 +1,4 @@
1
- import { i as elementSidePanelSlots } from "./elementRemainingControls-BPGBbbUF.js";
1
+ import { i as elementSidePanelSlots } from "./elementRemainingControls-6tN9tgWx.js";
2
2
  import { defineComponent, h } from "vue";
3
3
  import { SIDE_PANEL_CONTROL, SidePanelChrome, extendFeature, slotRender } from "@adapttable/vue/adapter";
4
4
  import { sidePanel as sidePanel$1 } from "@adapttable/vue/features";
package/dist/styles.css CHANGED
@@ -68,6 +68,12 @@
68
68
  background: var(--el-fill-color-light);
69
69
  font-weight: 600;
70
70
  }
71
+
72
+ /* Pinned cells stick over the cells scrolling beneath them, so they paint the
73
+ * table surface; a hovered row's tint still wins. */
74
+ .adapttable-element-plus tbody td[data-pinned] {
75
+ background: var(--el-bg-color);
76
+ }
71
77
  .adapttable-element-plus tbody tr:hover > td {
72
78
  background: var(--el-fill-color-light);
73
79
  }
@@ -180,16 +186,33 @@
180
186
  min-block-size: var(--el-component-size);
181
187
  white-space: normal;
182
188
  }
189
+
190
+ /* The search icon sits inside the field, as every kit draws it, and the
191
+ * field pushes the toolbar controls to the end of the row. */
183
192
  .adapttable-element-plus [data-adapttable-part="search-field"] {
193
+ position: relative;
184
194
  display: flex;
185
195
  align-items: center;
186
- gap: 0.5rem;
187
196
  flex: 1 1 14rem;
188
197
  max-inline-size: 28rem;
189
198
  min-inline-size: 0;
199
+ margin-inline-end: auto;
200
+ }
201
+ .adapttable-element-plus [data-adapttable-part="search-icon"] {
202
+ position: absolute;
203
+ inset-inline-start: 0.625rem;
204
+ z-index: 1;
205
+ color: var(--el-text-color-placeholder);
206
+ pointer-events: none;
207
+ }
208
+ .adapttable-element-plus
209
+ [data-adapttable-part="search-field"]
210
+ .el-input__wrapper {
211
+ padding-inline-start: 2rem;
190
212
  }
191
- .adapttable-element-plus[data-density="compact"] :is(th, td) {
192
- padding-block: 0.4rem;
213
+ .adapttable-element-plus[data-density="compact"] :is(th, td),
214
+ .adapttable-element-plus[data-density="compact"] :is(th, td).el-table__cell {
215
+ padding-block: 4px;
193
216
  }
194
217
  .adapttable-element-plus [data-adapttable-part="resize-handle"] {
195
218
  padding: 0;
@@ -387,6 +410,13 @@
387
410
  ) {
388
411
  color: var(--el-color-danger);
389
412
  }
413
+ /* A pinned column's pin button fills with the primary colour. */
414
+ .adapttable-element-plus-column-panel
415
+ [data-adapttable-part="column-menu-pin"][aria-pressed="true"] {
416
+ border-color: var(--el-color-primary);
417
+ background-color: var(--el-color-primary);
418
+ color: var(--el-color-white);
419
+ }
390
420
  .adapttable-element-plus-column-panel [data-active] {
391
421
  color: var(--el-color-primary);
392
422
  background: var(--el-color-primary-light-9);
@@ -3,7 +3,6 @@ import { t as ElementCard } from "./ElementCard-DZdAU6x8.js";
3
3
  import { h } from "vue";
4
4
  import { EXPORT_CONTROL, ExportChrome, extendFeature, slotRender } from "@adapttable/vue/adapter";
5
5
  import { ElIcon, ElLink, ElProgress } from "element-plus";
6
- import { exportCsv } from "@adapttable/vue/features";
7
6
  //#region src/actions/elementExportSlots.ts
8
7
  const elementExportSlots = (names = {}) => ({
9
8
  Button: ({ attrs, label, icon }) => elementButton({
@@ -61,14 +60,15 @@ const elementExportSlots = (names = {}) => ({
61
60
  ] })
62
61
  });
63
62
  //#endregion
64
- //#region src/export.ts
65
- function exportCsv$1(options = true) {
66
- return extendFeature(exportCsv(options), [slotRender(EXPORT_CONTROL, (props) => h(ExportChrome, {
63
+ //#region src/export/withElementExport.ts
64
+ /** An export feature, drawn with Element's own export controls. */
65
+ function withElementExport(feature) {
66
+ return extendFeature(feature, [slotRender(EXPORT_CONTROL, (props) => h(ExportChrome, {
67
67
  ...props,
68
68
  slots: elementExportSlots(props.classNames)
69
69
  }))]);
70
70
  }
71
71
  //#endregion
72
- export { exportCsv$1 as t };
72
+ export { withElementExport as t };
73
73
 
74
- //# sourceMappingURL=export-DR1t4N5Q.js.map
74
+ //# sourceMappingURL=withElementExport-B97s6RIr.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withElementExport-B97s6RIr.js","names":[],"sources":["../src/actions/elementExportSlots.ts","../src/export/withElementExport.ts"],"sourcesContent":["import type { ExportSlots } from \"@adapttable/vue/adapter\";\nimport { ElIcon, ElLink, ElProgress } from \"element-plus\";\nimport { h } from \"vue\";\n\nimport { elementButton } from \"../controls/button\";\nimport { ElementCard } from \"../presentation/ElementCard\";\nexport const elementExportSlots = (\n names: Readonly<Record<string, string | undefined>> = {}\n): ExportSlots => ({\n Button: ({ attrs, label, icon }) =>\n elementButton(\n { ...attrs, loading: attrs[\"aria-busy\"] === true },\n [attrs[\"aria-busy\"] === true ? null : icon, label],\n () =>\n h(\n ElIcon,\n {\n \"aria-hidden\": \"true\",\n \"data-adapttable-part\": \"export-spinner\",\n class: [\"is-loading\", names.exportSpinner],\n },\n {\n default: () =>\n h(\n \"svg\",\n {\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n \"stroke-width\": 2,\n },\n [h(\"path\", { d: \"M21 12a9 9 0 1 1-6.22-8.56\" })]\n ),\n }\n )\n ),\n Surface: (props) =>\n h(\n ElementCard,\n {\n attrs: {\n \"data-adapttable-part\": \"export-progress-surface\",\n class: names.exportProgress,\n role: \"region\",\n \"aria-label\": props.heading,\n },\n },\n {\n default: () => [\n h(\"h3\", props.heading),\n props.status === \"busy\"\n ? h(ElProgress, {\n \"data-adapttable-part\": \"export-progress-bar\",\n class: names.exportProgressBar,\n percentage: props.progress ?? 0,\n indeterminate: props.progress === undefined,\n \"aria-label\": props.progressLabel,\n })\n : null,\n props.message\n ? h(\n \"p\",\n {\n \"data-adapttable-part\": \"export-progress-message\",\n class: names.exportProgressMessage,\n },\n props.message\n )\n : null,\n props.error\n ? h(\n \"p\",\n {\n role: \"alert\",\n \"data-adapttable-part\": \"export-progress-message\",\n class: names.exportProgressMessage,\n },\n props.error\n )\n : null,\n h(\"div\", { \"data-adapttable-part\": \"export-progress-actions\" }, [\n ...(\n [\n [\"cancel\", props.cancel],\n [\"retry\", props.retry],\n [\"dismiss\", props.dismiss],\n ] as const\n ).map(([key, action]) =>\n action\n ? elementButton(\n {\n key,\n type: \"button\",\n \"data-adapttable-part\": `export-progress-${key}`,\n class: names.exportProgressButton,\n onClick: action.onAction,\n },\n action.label\n )\n : null\n ),\n props.download\n ? h(\n ElLink,\n {\n \"data-adapttable-part\": \"export-progress-download\",\n class: names.exportProgressDownload,\n href: props.download.url,\n download: \"\",\n },\n { default: () => props.download?.label }\n )\n : null,\n ]),\n ],\n }\n ),\n});\n","import type { TableFeature } from \"@adapttable/vue\";\nimport {\n EXPORT_CONTROL,\n ExportChrome,\n extendFeature,\n slotRender,\n} from \"@adapttable/vue/adapter\";\nimport { h } from \"vue\";\n\nimport { elementExportSlots } from \"../actions/elementExportSlots\";\n\n/** An export feature, drawn with Element's own export controls. */\nexport function withElementExport<TRow>(\n feature: TableFeature<TRow>\n): TableFeature<TRow> {\n return extendFeature(feature, [\n slotRender(EXPORT_CONTROL, (props) =>\n h(ExportChrome, {\n ...props,\n slots: elementExportSlots(props.classNames),\n })\n ),\n ]);\n}\n"],"mappings":";;;;;;AAMA,MAAa,sBACX,QAAsD,CAAC,OACtC;CACjB,SAAS,EAAE,OAAO,OAAO,WACvB,cACE;EAAE,GAAG;EAAO,SAAS,MAAM,iBAAiB;CAAK,GACjD,CAAC,MAAM,iBAAiB,OAAO,OAAO,MAAM,KAAK,SAE/C,EACE,QACA;EACE,eAAe;EACf,wBAAwB;EACxB,OAAO,CAAC,cAAc,MAAM,aAAa;CAC3C,GACA,EACE,eACE,EACE,OACA;EACE,SAAS;EACT,MAAM;EACN,QAAQ;EACR,gBAAgB;CAClB,GACA,CA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ementCard = require("./ElementCard-BRZekaHr.cjs");
3
3
  let vue = require("vue");
4
4
  let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
5
5
  let element_plus = require("element-plus");
6
- let _adapttable_vue_features = require("@adapttable/vue/features");
7
6
  //#region src/actions/elementExportSlots.ts
8
7
  const elementExportSlots = (names = {}) => ({
9
8
  Button: ({ attrs, label, icon }) => require_button.elementButton({
@@ -61,19 +60,20 @@ const elementExportSlots = (names = {}) => ({
61
60
  ] })
62
61
  });
63
62
  //#endregion
64
- //#region src/export.ts
65
- function exportCsv(options = true) {
66
- return (0, _adapttable_vue_adapter.extendFeature)((0, _adapttable_vue_features.exportCsv)(options), [(0, _adapttable_vue_adapter.slotRender)(_adapttable_vue_adapter.EXPORT_CONTROL, (props) => (0, vue.h)(_adapttable_vue_adapter.ExportChrome, {
63
+ //#region src/export/withElementExport.ts
64
+ /** An export feature, drawn with Element's own export controls. */
65
+ function withElementExport(feature) {
66
+ return (0, _adapttable_vue_adapter.extendFeature)(feature, [(0, _adapttable_vue_adapter.slotRender)(_adapttable_vue_adapter.EXPORT_CONTROL, (props) => (0, vue.h)(_adapttable_vue_adapter.ExportChrome, {
67
67
  ...props,
68
68
  slots: elementExportSlots(props.classNames)
69
69
  }))]);
70
70
  }
71
71
  //#endregion
72
- Object.defineProperty(exports, "exportCsv", {
72
+ Object.defineProperty(exports, "withElementExport", {
73
73
  enumerable: true,
74
74
  get: function() {
75
- return exportCsv;
75
+ return withElementExport;
76
76
  }
77
77
  });
78
78
 
79
- //# sourceMappingURL=export-CL36qPVY.cjs.map
79
+ //# sourceMappingURL=withElementExport-J-6vXfL9.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withElementExport-J-6vXfL9.cjs","names":["elementButton","h","ElIcon","ElementCard","ElProgress","ElLink","extendFeature","slotRender","EXPORT_CONTROL","h","ExportChrome"],"sources":["../src/actions/elementExportSlots.ts","../src/export/withElementExport.ts"],"sourcesContent":["import type { ExportSlots } from \"@adapttable/vue/adapter\";\nimport { ElIcon, ElLink, ElProgress } from \"element-plus\";\nimport { h } from \"vue\";\n\nimport { elementButton } from \"../controls/button\";\nimport { ElementCard } from \"../presentation/ElementCard\";\nexport const elementExportSlots = (\n names: Readonly<Record<string, string | undefined>> = {}\n): ExportSlots => ({\n Button: ({ attrs, label, icon }) =>\n elementButton(\n { ...attrs, loading: attrs[\"aria-busy\"] === true },\n [attrs[\"aria-busy\"] === true ? null : icon, label],\n () =>\n h(\n ElIcon,\n {\n \"aria-hidden\": \"true\",\n \"data-adapttable-part\": \"export-spinner\",\n class: [\"is-loading\", names.exportSpinner],\n },\n {\n default: () =>\n h(\n \"svg\",\n {\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n \"stroke-width\": 2,\n },\n [h(\"path\", { d: \"M21 12a9 9 0 1 1-6.22-8.56\" })]\n ),\n }\n )\n ),\n Surface: (props) =>\n h(\n ElementCard,\n {\n attrs: {\n \"data-adapttable-part\": \"export-progress-surface\",\n class: names.exportProgress,\n role: \"region\",\n \"aria-label\": props.heading,\n },\n },\n {\n default: () => [\n h(\"h3\", props.heading),\n props.status === \"busy\"\n ? h(ElProgress, {\n \"data-adapttable-part\": \"export-progress-bar\",\n class: names.exportProgressBar,\n percentage: props.progress ?? 0,\n indeterminate: props.progress === undefined,\n \"aria-label\": props.progressLabel,\n })\n : null,\n props.message\n ? h(\n \"p\",\n {\n \"data-adapttable-part\": \"export-progress-message\",\n class: names.exportProgressMessage,\n },\n props.message\n )\n : null,\n props.error\n ? h(\n \"p\",\n {\n role: \"alert\",\n \"data-adapttable-part\": \"export-progress-message\",\n class: names.exportProgressMessage,\n },\n props.error\n )\n : null,\n h(\"div\", { \"data-adapttable-part\": \"export-progress-actions\" }, [\n ...(\n [\n [\"cancel\", props.cancel],\n [\"retry\", props.retry],\n [\"dismiss\", props.dismiss],\n ] as const\n ).map(([key, action]) =>\n action\n ? elementButton(\n {\n key,\n type: \"button\",\n \"data-adapttable-part\": `export-progress-${key}`,\n class: names.exportProgressButton,\n onClick: action.onAction,\n },\n action.label\n )\n : null\n ),\n props.download\n ? h(\n ElLink,\n {\n \"data-adapttable-part\": \"export-progress-download\",\n class: names.exportProgressDownload,\n href: props.download.url,\n download: \"\",\n },\n { default: () => props.download?.label }\n )\n : null,\n ]),\n ],\n }\n ),\n});\n","import type { TableFeature } from \"@adapttable/vue\";\nimport {\n EXPORT_CONTROL,\n ExportChrome,\n extendFeature,\n slotRender,\n} from \"@adapttable/vue/adapter\";\nimport { h } from \"vue\";\n\nimport { elementExportSlots } from \"../actions/elementExportSlots\";\n\n/** An export feature, drawn with Element's own export controls. */\nexport function withElementExport<TRow>(\n feature: TableFeature<TRow>\n): TableFeature<TRow> {\n return extendFeature(feature, [\n slotRender(EXPORT_CONTROL, (props) =>\n h(ExportChrome, {\n ...props,\n slots: elementExportSlots(props.classNames),\n })\n ),\n ]);\n}\n"],"mappings":";;;;;;AAMA,MAAa,sBACX,QAAsD,CAAC,OACtC;CACjB,SAAS,EAAE,OAAO,OAAO,WACvBA,eAAAA,cACE;EAAE,GAAG;EAAO,SAAS,MAAM,iBAAiB;CAAK,GACjD,CAAC,MAAM,iBAAiB,OAAO,OAAO,MAAM,KAAK,UAAA,GAE/CC,IAAAA,EAAAA,CACEC,aAAAA,QACA;EACE,eAAe;EACf,wBAAwB;EACxB,OAAO,CAAC,cAAc,MAAM,aAAa;CAC3C,GACA,EACE,gBAAA,GACED,IAAAA,EAAAA,CACE,OACA;EACE,SAAS;EACT,MAAM;EACN,QAAQ;EACR,gBAAgB;CAClB,GACA,EAAA,GAACA,IAAAA,EAAAA,CAAE,QAAQ,EAAE,GAAG,6BAA6B,CAAC,CAAC,CACjD,EACJ,CACF,CACJ;CACF,UAAU,WAAA,GACRA,IAAAA,EAAAA,CACEE,oBAAAA,aACA,EACE,OAAO;EACL,wBAAwB;EACxB,OAAO,MAAM;EACb,MAAM;EACN,cAAc,MAAM;CACtB,EACF,GACA,EACE,eAAe;GACbF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CACF,CAAC;AACH"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adapttable/element-plus",
3
- "version": "0.3.3",
3
+ "version": "0.4.0",
4
4
  "description": "Element Plus data table controls for the AdaptTable Vue binding — sorting, filters, editing, grouping, responsive cards, URL state and RTL.",
5
5
  "keywords": [
6
6
  "vue",
@@ -27,7 +27,7 @@
27
27
  "module": "./dist/index.js",
28
28
  "types": "./dist/index.d.ts",
29
29
  "dependencies": {
30
- "@adapttable/vue": "0.4.1"
30
+ "@adapttable/vue": "0.5.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "element-plus": "^2.14.7",
@@ -36,8 +36,7 @@
36
36
  "devDependencies": {
37
37
  "element-plus": "2.14.7",
38
38
  "vue": "^3.5.43",
39
- "@adapttable/core": "3.13.1",
40
- "@adapttable/i18n": "3.3.9"
39
+ "@adapttable/i18n": "3.4.0"
41
40
  },
42
41
  "engines": {
43
42
  "node": ">=22.12.0"
@@ -445,6 +444,36 @@
445
444
  "default": "./dist/export.cjs"
446
445
  }
447
446
  },
447
+ "./export-csv": {
448
+ "import": {
449
+ "types": "./dist/export-csv.d.ts",
450
+ "default": "./dist/export-csv.js"
451
+ },
452
+ "require": {
453
+ "types": "./dist/export-csv.d.cts",
454
+ "default": "./dist/export-csv.cjs"
455
+ }
456
+ },
457
+ "./export-pdf": {
458
+ "import": {
459
+ "types": "./dist/export-pdf.d.ts",
460
+ "default": "./dist/export-pdf.js"
461
+ },
462
+ "require": {
463
+ "types": "./dist/export-pdf.d.cts",
464
+ "default": "./dist/export-pdf.cjs"
465
+ }
466
+ },
467
+ "./export-xlsx": {
468
+ "import": {
469
+ "types": "./dist/export-xlsx.d.ts",
470
+ "default": "./dist/export-xlsx.js"
471
+ },
472
+ "require": {
473
+ "types": "./dist/export-xlsx.d.cts",
474
+ "default": "./dist/export-xlsx.cjs"
475
+ }
476
+ },
448
477
  "./pivot": {
449
478
  "import": {
450
479
  "types": "./dist/pivot.d.ts",
@@ -1 +0,0 @@
1
- {"version":3,"file":"ElementCheckbox-BQN4_eas.js","names":["$attrs"],"sources":["../src/controls/ElementCheckbox.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useElementRef, useScopeActivity } from \"@adapttable/vue/adapter\";\nimport { type CheckboxInstance, ElCheckbox } from \"element-plus\";\nimport { computed, nextTick, shallowRef, watch } from \"vue\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(\n defineProps<{\n checked: boolean;\n indeterminate?: boolean;\n disabled?: boolean;\n readonly?: boolean;\n label: string;\n labelVisible?: boolean;\n inputRef?: (element: HTMLInputElement | null) => void;\n }>(),\n {\n indeterminate: false,\n disabled: false,\n readonly: false,\n labelVisible: false,\n inputRef: undefined,\n }\n);\nconst emit = defineEmits<{ change: [checked: boolean] }>();\nconst active = useScopeActivity();\nlet ownerGeneration = 0;\nconst control = shallowRef<CheckboxInstance>();\nconst input = computed((): HTMLInputElement | null => {\n const host: unknown = control.value?.$el;\n if (host == null) return null;\n if (!(host instanceof HTMLLabelElement))\n throw new Error(\n \"AdaptTable: Element Plus checkbox must render its associated label host.\"\n );\n const field = host.control;\n if (!(field instanceof HTMLInputElement))\n throw new Error(\n \"AdaptTable: Element Plus checkbox label must own an input.\"\n );\n return field;\n});\nuseElementRef(\n () => input.value,\n () => props.inputRef\n);\nfunction reconcile(\n field = input.value,\n owner = props.inputRef,\n generation = ownerGeneration\n): void {\n // A replacement control or activity session owns its own reconciliation.\n void nextTick(() => {\n if (\n !field ||\n !active.value ||\n generation !== ownerGeneration ||\n input.value !== field ||\n props.inputRef !== owner ||\n !field.isConnected\n )\n return;\n field.checked = props.checked;\n field.indeterminate = props.indeterminate;\n });\n}\nwatch(\n [active, input, () => props.inputRef],\n () => {\n ownerGeneration += 1;\n if (active.value) reconcile();\n },\n { flush: \"sync\" }\n);\nfunction requestChange(value: unknown): void {\n if (\n !active.value ||\n props.disabled ||\n props.readonly ||\n typeof value !== \"boolean\"\n )\n return;\n const field = input.value;\n const owner = props.inputRef;\n const generation = ownerGeneration;\n emit(\"change\", value);\n // Let native activation finish before reconciling the controlled state.\n reconcile(field, owner, generation);\n}\ndefineExpose({ input, focus: () => input.value?.focus() });\n</script>\n\n<template>\n <ElCheckbox\n ref=\"control\"\n v-bind=\"$attrs\"\n :model-value=\"props.checked\"\n :indeterminate=\"props.indeterminate\"\n :disabled=\"props.disabled || props.readonly\"\n :validate-event=\"false\"\n @update:model-value=\"requestChange\"\n >\n <span\n :class=\"{\n 'adapttable-element-plus-visually-hidden': !props.labelVisible,\n }\"\n >{{ props.label }}</span\n >\n </ElCheckbox>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMA,MAAM,QAAQ;EAkBd,MAAM,OAAO;EACb,MAAM,SAAS,iBAAiB;EAChC,IAAI,kBAAkB;EACtB,MAAM,UAAU,WAA6B;EAC7C,MAAM,QAAQ,eAAwC;GACpD,MAAM,OAAgB,QAAQ,OAAO;GACrC,IAAI,QAAQ,MAAM,OAAO;GACzB,IAAI,EAAE,gBAAgB,mBACpB,MAAM,IAAI,MACR,0EACF;GACF,MAAM,QAAQ,KAAK;GACnB,IAAI,EAAE,iBAAiB,mBACrB,MAAM,IAAI,MACR,4DACF;GACF,OAAO;EACT,CAAC;EACD,oBACQ,MAAM,aACN,MAAM,QACd;EACA,SAAS,UACP,QAAQ,MAAM,OACd,QAAQ,MAAM,UACd,aAAa,iBACP;GAEN,eAAoB;IAClB,IACE,CAAC,SACD,CAAC,OAAO,SACR,eAAe,mBACf,MAAM,UAAU,SAChB,MAAM,aAAa,SACnB,CAAC,MAAM,aAEP;IACF,MAAM,UAAU,MAAM;IACtB,MAAM,gBAAgB,MAAM;GAC9B,CAAC;EACH;EACA,MACE;GAAC;GAAQ;SAAa,MAAM;EAAQ,SAC9B;GACJ,mBAAmB;GACnB,IAAI,OAAO,OAAO,UAAU;EAC9B,GACA,EAAE,OAAO,OAAO,CAClB;EACA,SAAS,cAAc,OAAsB;GAC3C,IACE,CAAC,OAAO,SACR,MAAM,YACN,MAAM,YACN,OAAO,UAAU,WAEjB;GACF,MAAM,QAAQ,MAAM;GACpB,MAAM,QAAQ,MAAM;GACpB,MAAM,aAAa;GACnB,KAAK,UAAU,KAAK;GAEpB,UAAU,OAAO,OAAO,UAAU;EACpC;EACA,SAAa;GAAE;GAAO,aAAa,MAAM,OAAO,MAAM;EAAE,CAAC;;GAIvD,OAAA,UAAA,GAAA,YAea,MAAA,UAAA,GAfb,WAea;IAdP,SAAA;IAAJ,KAAI;GACIA,GAAAA,KAAAA,QAAM;IACb,eAAa,MAAM;IACnB,eAAe,MAAM;IACrB,UAAU,MAAM,YAAY,MAAM;IAClC,kBAAgB;IAChB,uBAAoB;;IAErB,SAAA,cAKC,CALD,mBAKC,QAAA,EAJE,OAAK,eAAA,EAAwD,2CAAA,CAAA,MAAM,a,C,EAGhE,GAAA,gBAAA,MAAM,KAAK,GAAA,CAAA,C,C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ElementCheckbox-BewKx6sv.cjs","names":["$attrs"],"sources":["../src/controls/ElementCheckbox.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useElementRef, useScopeActivity } from \"@adapttable/vue/adapter\";\nimport { type CheckboxInstance, ElCheckbox } from \"element-plus\";\nimport { computed, nextTick, shallowRef, watch } from \"vue\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(\n defineProps<{\n checked: boolean;\n indeterminate?: boolean;\n disabled?: boolean;\n readonly?: boolean;\n label: string;\n labelVisible?: boolean;\n inputRef?: (element: HTMLInputElement | null) => void;\n }>(),\n {\n indeterminate: false,\n disabled: false,\n readonly: false,\n labelVisible: false,\n inputRef: undefined,\n }\n);\nconst emit = defineEmits<{ change: [checked: boolean] }>();\nconst active = useScopeActivity();\nlet ownerGeneration = 0;\nconst control = shallowRef<CheckboxInstance>();\nconst input = computed((): HTMLInputElement | null => {\n const host: unknown = control.value?.$el;\n if (host == null) return null;\n if (!(host instanceof HTMLLabelElement))\n throw new Error(\n \"AdaptTable: Element Plus checkbox must render its associated label host.\"\n );\n const field = host.control;\n if (!(field instanceof HTMLInputElement))\n throw new Error(\n \"AdaptTable: Element Plus checkbox label must own an input.\"\n );\n return field;\n});\nuseElementRef(\n () => input.value,\n () => props.inputRef\n);\nfunction reconcile(\n field = input.value,\n owner = props.inputRef,\n generation = ownerGeneration\n): void {\n // A replacement control or activity session owns its own reconciliation.\n void nextTick(() => {\n if (\n !field ||\n !active.value ||\n generation !== ownerGeneration ||\n input.value !== field ||\n props.inputRef !== owner ||\n !field.isConnected\n )\n return;\n field.checked = props.checked;\n field.indeterminate = props.indeterminate;\n });\n}\nwatch(\n [active, input, () => props.inputRef],\n () => {\n ownerGeneration += 1;\n if (active.value) reconcile();\n },\n { flush: \"sync\" }\n);\nfunction requestChange(value: unknown): void {\n if (\n !active.value ||\n props.disabled ||\n props.readonly ||\n typeof value !== \"boolean\"\n )\n return;\n const field = input.value;\n const owner = props.inputRef;\n const generation = ownerGeneration;\n emit(\"change\", value);\n // Let native activation finish before reconciling the controlled state.\n reconcile(field, owner, generation);\n}\ndefineExpose({ input, focus: () => input.value?.focus() });\n</script>\n\n<template>\n <ElCheckbox\n ref=\"control\"\n v-bind=\"$attrs\"\n :model-value=\"props.checked\"\n :indeterminate=\"props.indeterminate\"\n :disabled=\"props.disabled || props.readonly\"\n :validate-event=\"false\"\n @update:model-value=\"requestChange\"\n >\n <span\n :class=\"{\n 'adapttable-element-plus-visually-hidden': !props.labelVisible,\n }\"\n >{{ props.label }}</span\n >\n </ElCheckbox>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMA,MAAM,QAAQ;EAkBd,MAAM,OAAO;EACb,MAAM,UAAA,GAAS,wBAAA,iBAAA,CAAiB;EAChC,IAAI,kBAAkB;EACtB,MAAM,WAAA,GAAU,IAAA,WAAA,CAA6B;EAC7C,MAAM,SAAA,GAAQ,IAAA,SAAA,OAA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Y,MAAM;IAClC,kBAAgB;IAChB,uBAAoB;;IAErB,UAAA,GAAA,IAAA,QAAA,OAKC,EAAA,GALD,IAAA,mBAAA,CAKC,QAAA,EAJE,QAAA,GAAK,IAAA,eAAA,CAAA,EAAwD,2CAAA,CAAA,MAAM,a,C,EAGhE,IAAA,GAAA,IAAA,gBAAA,CAAA,MAAM,KAAK,GAAA,CAAA,C,C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ElementColumnMenuPanel-D9oWJf02.js","names":[],"sources":["../src/columns/panelContext.ts","../src/columns/ElementColumnMenuPanel.ts"],"sourcesContent":["import type { InjectionKey, ShallowRef } from \"vue\";\n\n/** A managed menu's actual native content host, outside its scrolling body. */\nexport const columnMenuContainer: InjectionKey<\n Readonly<ShallowRef<HTMLElement | null>>\n> = Symbol(\"element-column-menu-container\");\n","import {\n type ManagedOverlayPanelProps,\n useElementRef,\n useScopeActivity,\n} from \"@adapttable/vue/adapter\";\nimport { ClickOutside, ElPopover } from \"element-plus\";\nimport {\n defineComponent,\n h,\n mergeProps,\n nextTick,\n onScopeDispose,\n type PropType,\n provide,\n shallowRef,\n watch,\n withDirectives,\n} from \"vue\";\n\nimport { isElementRef } from \"../controls/ref\";\nimport { ElementCard } from \"../presentation/ElementCard\";\nimport { rtlScrollbarGutter } from \"../scrollbarGutter\";\nimport { columnMenuContainer } from \"./panelContext\";\n\nexport const ElementColumnMenuPanel = defineComponent(\n (props: {\n readonly control: ManagedOverlayPanelProps;\n readonly initialFocus?: string;\n }) => {\n const active = useScopeActivity();\n const inheritedDirection = shallowRef<\"ltr\" | \"rtl\">();\n const readDirection = () => {\n if (props.control.attrs.dir !== undefined) return;\n const anchor = props.control.anchor;\n const view = anchor?.ownerDocument.defaultView;\n if (anchor && view)\n inheritedDirection.value =\n view.getComputedStyle(anchor).direction === \"rtl\" ? \"rtl\" : \"ltr\";\n };\n // A public virtual positioning reference leaves trigger ARIA/events with Chrome.\n const virtualAnchor = {\n getBoundingClientRect: () =>\n props.control.anchor?.getBoundingClientRect() ?? new DOMRect(),\n get contextElement() {\n return props.control.anchor ?? undefined;\n },\n };\n const panel = shallowRef<HTMLElement | null>(null);\n const setPanel = (target: unknown) => {\n if (target == null) {\n panel.value = null;\n return;\n }\n panel.value = target instanceof HTMLElement ? target : null;\n };\n provide(columnMenuContainer, panel);\n useElementRef(\n () => panel.value,\n () =>\n isElementRef(props.control.attrs.ref)\n ? props.control.attrs.ref\n : undefined\n );\n let live = true;\n onScopeDispose(() => {\n live = false;\n });\n const close = (reason: \"escape\" | \"outside\") => {\n const control = props.control;\n if (!active.value || !control.open || !control.isCurrent()) return;\n control.onClose(reason);\n if (reason === \"escape\")\n void nextTick(() => {\n if (\n (!live || !props.control.open) &&\n control.isCurrent() &&\n control.anchor?.isConnected\n )\n control.anchor.focus();\n });\n };\n const outside = (event: MouseEvent) => {\n if (\n event.target instanceof Node &&\n props.control.anchor?.contains(event.target)\n )\n return;\n close(\"outside\");\n };\n const keydown = (event: KeyboardEvent) => {\n if (\n !active.value ||\n !props.control.open ||\n !props.control.isCurrent() ||\n event.key !== \"Escape\"\n )\n return;\n // Element's focus trap releases on any Escape that reaches the document,\n // including one an inner control handled or an IME composition owns, so\n // the panel keeps those Escapes inside itself.\n if (event.defaultPrevented || event.isComposing) {\n event.stopPropagation();\n return;\n }\n event.preventDefault();\n event.stopPropagation();\n close(\"escape\");\n };\n // The virtual reference leaves the trigger outside ElPopover's event tree.\n // It remains the keyboard owner until the native enter handoff finishes.\n watch(\n [active, () => props.control.anchor, () => props.control.open],\n ([enabled, anchor], _previous, cleanup) => {\n if (!enabled || !anchor || !props.control.open) return;\n const document = anchor.ownerDocument;\n document.addEventListener(\"keydown\", keydown);\n cleanup(() => document.removeEventListener(\"keydown\", keydown));\n },\n { immediate: true }\n );\n const focus = () => {\n if (!active.value || !props.control.open || !props.control.isCurrent())\n return;\n const element = panel.value;\n if (!element) return;\n const focused = element.ownerDocument.activeElement;\n if (\n focused !== props.control.anchor &&\n focused !== element.ownerDocument.body &&\n focused !== element &&\n focused !== element.closest(\".el-popper\")\n )\n return;\n const search = panel.value?.querySelector<HTMLInputElement>(\n props.initialFocus ?? 'input[data-adapttable-part=\"column-menu-search\"]'\n );\n (search ?? element).focus({ preventScroll: true });\n };\n return () => {\n const control = props.control;\n if (\n !active.value ||\n !control.open ||\n !control.isCurrent() ||\n !control.anchor\n )\n return null;\n const direction = control.attrs.dir;\n const dir =\n direction === \"rtl\" || direction === \"ltr\"\n ? direction\n : inheritedDirection.value;\n return h(\n ElPopover,\n {\n visible: control.open,\n virtualTriggering: true,\n virtualRef: virtualAnchor,\n trigger: \"click\",\n // The actual content card carries Chrome's dialog id, name and ref.\n role: \"group\",\n placement: dir === \"rtl\" ? \"bottom-end\" : \"bottom-start\",\n appendTo: control.container ?? \"body\",\n teleported: true,\n persistent: false,\n showArrow: false,\n width: \"min(28rem, calc(100vw - 1rem))\",\n popperStyle: {\n padding: 0,\n direction: dir,\n translate: `${rtlScrollbarGutter(dir, props.control.anchor?.ownerDocument.defaultView)} 0`,\n },\n onBeforeEnter: readDirection,\n onAfterEnter: focus,\n },\n {\n default: () =>\n withDirectives(\n h(\n ElementCard,\n {\n attrs: mergeProps(control.attrs, {\n ref: setPanel,\n dir,\n tabindex: -1,\n class: \"adapttable-element-plus-column-panel\",\n style: { overflow: \"visible\" },\n onKeydown: keydown,\n }),\n bodyStyle: {\n padding: \"0.75rem\",\n maxHeight: \"min(70vh, 32rem)\",\n overflow: \"auto\",\n },\n },\n { default: () => control.content }\n ),\n [[ClickOutside, outside]]\n ),\n }\n );\n };\n },\n {\n name: \"ElementColumnMenuPanel\",\n props: {\n control: { type: Object as PropType<ManagedOverlayPanelProps> },\n initialFocus: { type: String as PropType<string | undefined> },\n },\n }\n);\n"],"mappings":";;;;;;;;AAGA,MAAa,sBAET,OAAO,+BAA+B;;;ACmB1C,MAAa,yBAAyB,iBACnC,UAGK;CACJ,MAAM,SAAS,iBAAiB;CAChC,MAAM,qBAAqB,WA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Aa;GAC/B,YAAY;GACZ,YAAY;GACZ,WAAW;GACX,OAAO;GACP,aAAa;IACX,SAAS;IACT,WAAW;IACX,WAAW,GAAG,mBAAmB,KAAK,MAAM,QAAQ,QAAQ,cAAc,WAAW,EAAE;GACzF;GACA,eAAe;GACf,cAAc;EAChB,GACA,EACE,eACE,eACE,EACE,aACA;GACE,OAAO,WAAW,QAAQ,OAAO;IAC/B,KAAK;IACL;IACA,UAAU;IACV,OAAO;IACP,OAAO,EAAE,UAAU,UAAU;IAC7B,WAAW;GACb,CAAC;GACD,WAAW;IACT,SAAS;IACT,WAAW;IACX,UAAU;GACZ;EACF,GACA,EAAE,eAAe,QAAQ,QAAQ,CACnC,GACA,CAAC,CAAC,cAAc,OAAO,CAAC,CAC1B,EACJ,CACF;CACF;AACF,GACA;CACE,MAAM;CACN,OAAO;EACL,SAAS,EAAE,MAAM,OAA6C;EAC9D,cAAc,EAAE,MAAM,OAAuC;CAC/D;AACF,CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ElementColumnMenuPanel-DavsUQAR.cjs","names":["defineComponent","useScopeActivity","shallowRef","isElementRef","nextTick","h","ElPopover","rtlScrollbarGutter","withDirectives","ElementCard","mergeProps","ClickOutside"],"sources":["../src/columns/panelContext.ts","../src/columns/ElementColumnMenuPanel.ts"],"sourcesContent":["import type { InjectionKey, ShallowRef } from \"vue\";\n\n/** A managed menu's actual native content host, outside its scrolling body. */\nexport const columnMenuContainer: InjectionKey<\n Readonly<ShallowRef<HTMLElement | null>>\n> = Symbol(\"element-column-menu-container\");\n","import {\n type ManagedOverlayPanelProps,\n useElementRef,\n useScopeActivity,\n} from \"@adapttable/vue/adapter\";\nimport { ClickOutside, ElPopover } from \"element-plus\";\nimport {\n defineComponent,\n h,\n mergeProps,\n nextTick,\n onScopeDispose,\n type PropType,\n provide,\n shallowRef,\n watch,\n withDirectives,\n} from \"vue\";\n\nimport { isElementRef } from \"../controls/ref\";\nimport { ElementCard } from \"../presentation/ElementCard\";\nimport { rtlScrollbarGutter } from \"../scrollbarGutter\";\nimport { columnMenuContainer } from \"./panelContext\";\n\nexport const ElementColumnMenuPanel = defineComponent(\n (props: {\n readonly control: ManagedOverlayPanelProps;\n readonly initialFocus?: string;\n }) => {\n const active = useScopeActivity();\n const inheritedDirection = shallowRef<\"ltr\" | \"rtl\">();\n const readDirection = () => {\n if (props.control.attrs.dir !== undefined) return;\n const anchor = props.control.anchor;\n const view = anchor?.ownerDocument.defaultView;\n if (anchor && view)\n inheritedDirection.value =\n view.getComputedStyle(anchor).direction === \"rtl\" ? \"rtl\" : \"ltr\";\n };\n // A public virtual positioning reference leaves trigger ARIA/events with Chrome.\n const virtualAnchor = {\n getBoundingClientRect: () =>\n props.control.anchor?.getBoundingClientRect() ?? new DOMRect(),\n get contextElement() {\n return props.control.anchor ?? undefined;\n },\n };\n const panel = shallowRef<HTMLElement | null>(null);\n const setPanel = (target: unknown) => {\n if (target == null) {\n panel.value = null;\n return;\n }\n panel.value = target instanceof HTMLElement ? target : null;\n };\n provide(columnMenuContainer, panel);\n useElementRef(\n () => panel.value,\n () =>\n isElementRef(props.control.attrs.ref)\n ? props.control.attrs.ref\n : undefined\n );\n let live = true;\n onScopeDispose(() => {\n live = false;\n });\n const close = (reason: \"escape\" | \"outside\") => {\n const control = props.control;\n if (!active.value || !control.open || !control.isCurrent()) return;\n control.onClose(reason);\n if (reason === \"escape\")\n void nextTick(() => {\n if (\n (!live || !props.control.open) &&\n control.isCurrent() &&\n control.anchor?.isConnected\n )\n control.anchor.focus();\n });\n };\n const outside = (event: MouseEvent) => {\n if (\n event.target instanceof Node &&\n props.control.anchor?.contains(event.target)\n )\n return;\n close(\"outside\");\n };\n const keydown = (event: KeyboardEvent) => {\n if (\n !active.value ||\n !props.control.open ||\n !props.control.isCurrent() ||\n event.key !== \"Escape\"\n )\n return;\n // Element's focus trap releases on any Escape that reaches the document,\n // including one an inner control handled or an IME composition owns, so\n // the panel keeps those Escapes inside itself.\n if (event.defaultPrevented || event.isComposing) {\n event.stopPropagation();\n return;\n }\n event.preventDefault();\n event.stopPropagation();\n close(\"escape\");\n };\n // The virtual reference leaves the trigger outside ElPopover's event tree.\n // It remains the keyboard owner until the native enter handoff finishes.\n watch(\n [active, () => props.control.anchor, () => props.control.open],\n ([enabled, anchor], _previous, cleanup) => {\n if (!enabled || !anchor || !props.control.open) return;\n const document = anchor.ownerDocument;\n document.addEventListener(\"keydown\", keydown);\n cleanup(() => document.removeEventListener(\"keydown\", keydown));\n },\n { immediate: true }\n );\n const focus = () => {\n if (!active.value || !props.control.open || !props.control.isCurrent())\n return;\n const element = panel.value;\n if (!element) return;\n const focused = element.ownerDocument.activeElement;\n if (\n focused !== props.control.anchor &&\n focused !== element.ownerDocument.body &&\n focused !== element &&\n focused !== element.closest(\".el-popper\")\n )\n return;\n const search = panel.value?.querySelector<HTMLInputElement>(\n props.initialFocus ?? 'input[data-adapttable-part=\"column-menu-search\"]'\n );\n (search ?? element).focus({ preventScroll: true });\n };\n return () => {\n const control = props.control;\n if (\n !active.value ||\n !control.open ||\n !control.isCurrent() ||\n !control.anchor\n )\n return null;\n const direction = control.attrs.dir;\n const dir =\n direction === \"rtl\" || direction === \"ltr\"\n ? direction\n : inheritedDirection.value;\n return h(\n ElPopover,\n {\n visible: control.open,\n virtualTriggering: true,\n virtualRef: virtualAnchor,\n trigger: \"click\",\n // The actual content card carries Chrome's dialog id, name and ref.\n role: \"group\",\n placement: dir === \"rtl\" ? \"bottom-end\" : \"bottom-start\",\n appendTo: control.container ?? \"body\",\n teleported: true,\n persistent: false,\n showArrow: false,\n width: \"min(28rem, calc(100vw - 1rem))\",\n popperStyle: {\n padding: 0,\n direction: dir,\n translate: `${rtlScrollbarGutter(dir, props.control.anchor?.ownerDocument.defaultView)} 0`,\n },\n onBeforeEnter: readDirection,\n onAfterEnter: focus,\n },\n {\n default: () =>\n withDirectives(\n h(\n ElementCard,\n {\n attrs: mergeProps(control.attrs, {\n ref: setPanel,\n dir,\n tabindex: -1,\n class: \"adapttable-element-plus-column-panel\",\n style: { overflow: \"visible\" },\n onKeydown: keydown,\n }),\n bodyStyle: {\n padding: \"0.75rem\",\n maxHeight: \"min(70vh, 32rem)\",\n overflow: \"auto\",\n },\n },\n { default: () => control.content }\n ),\n [[ClickOutside, outside]]\n ),\n }\n );\n };\n },\n {\n name: \"ElementColumnMenuPanel\",\n props: {\n control: { type: Object as PropType<ManagedOverlayPanelProps> },\n initialFocus: { type: String as PropType<string | undefined> },\n },\n }\n);\n"],"mappings":";;;;;;;;AAGA,MAAa,sBAET,OAAO,+BAA+B;;;ACmB1C,MAAa,0BAAA,GAAyBA,IAAAA,gBAAAA,EACnC,UAGK;CACJ,MAAM,UAAA,GAASC,wBAAAA,iBAAAA,CAAiB;CAChC,MAAM,sBAAA,GAAqBC,IAAAA,WAAAA,CAA0B;CACrD,MAAM,sBAAsB;EAC1B,IAAI,MAAM,QAAQ,MAAM,QAAQ,KAAA,GAAW;EAC3C,MAAM,SAAS,MAAM,QAAQ;EAC7B,MAAM,OAAO,QAAQ,cAAc;EACnC,IAAI,UAAU,MACZ,mBAAmB,QACjB,KAAK,iBAAiB,MAAM,CAAC,CAAC,cAAc,QAAQ,QAAQ;CAClE;CAEA,MAAM,gBAAgB;EACpB,6BACE,MAAM,QAAQ,QAAQ,sBAAsB,KAAK,IAAI,QAAQ;EAC/D,IAAI,iBAAiB;GACnB,OAAO,MAAM,QAAQ,UAAU,KAAA;EACjC;CACF;CACA,MAAM,SAAA,GAAQA,IAAAA,WAAAA,CAA+B,IAAI;CACjD,MAAM,YAAY,WAAoB;EACpC,IAAI,UAAU,MAAM;GAClB,MAAM,QAAQ;GACd;EACF;EACA,MAAM,QAAQ,kBAAkB,cAAc,SAAS;CACzD;CACA,CAAA,GAAA,IAAA,QAAA,CAAQ,qBAAqB,KAAK;CAClC,CAAA,GAAA,wBAAA,cAAA,OACQ,MAAM,aAEVC,eAAAA,aAAa,MAAM,QAAQ,MAAM,GAAG,IAChC,MAAM,QAA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A,cAAc,OAAO,CAAC,CAC1B,EACJ,CACF;CACF;AACF,GACA;CACE,MAAM;CACN,OAAO;EACL,SAAS,EAAE,MAAM,OAA6C;EAC9D,cAAc,EAAE,MAAM,OAAuC;CAC/D;AACF,CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ElementFilterHeaderRow-C3N5F-sW.cjs","names":[],"sources":["../src/filters/ElementFilterHeaderControl.vue","../src/filters/ElementFilterHeaderRow.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"TRow\">\nimport {\n FilterHeaderControlChrome,\n type FilterHeaderControlOptions,\n type FilterHeaderSlots,\n FULLSCREEN_MODEL,\n useFeatureState,\n useFilterHeaderControl,\n useScopeActivity,\n} from \"@adapttable/vue/adapter\";\nimport { ElPopover, ElSpace, type PopoverInstance } from \"element-plus\";\nimport { computed, h, shallowRef } from \"vue\";\n\nimport { elementButton } from \"../controls/button\";\nimport ElementCheckbox from \"../controls/ElementCheckbox.vue\";\nimport ElementInput from \"../controls/ElementInput.vue\";\nimport ElementSelect from \"../controls/ElementSelect.vue\";\n\ndefineOptions({ name: \"ElementFilterHeaderControl\" });\nconst props = withDefaults(defineProps<FilterHeaderControlOptions<TRow>>(), {\n closeOnSelect: undefined,\n});\nconst model = useFilterHeaderControl(() => props);\nconst active = useScopeActivity();\nconst fullscreen = useFeatureState(FULLSCREEN_MODEL);\nconst popover = shallowRef<PopoverInstance>();\nconst trigger = shallowRef<HTMLElement | null>(null);\nconst inheritedDirection = shallowRef<\"ltr\" | \"rtl\">();\nconst popupDirection = computed(() => props.dir ?? inheritedDirection.value);\nconst setTrigger = (element: HTMLElement | null) => {\n trigger.value = element;\n};\nconst readInheritedDirection = () => {\n if (props.dir !== undefined || !trigger.value) return;\n const target = trigger.value;\n const direction =\n target.ownerDocument.defaultView?.getComputedStyle(target).direction;\n inheritedDirection.value =\n direction === \"rtl\" || direction === \"ltr\" ? direction : undefined;\n};\nconst dismiss = (event: KeyboardEvent) => {\n if (\n event.key !== \"Escape\" ||\n event.defaultPrevented ||\n event.isComposing ||\n trigger.value?.getAttribute(\"aria-expanded\") !== \"true\"\n )\n return;\n event.preventDefault();\n event.stopPropagation();\n popover.value?.hide();\n if (active.value && trigger.value?.isConnected) trigger.value.focus();\n};\nconst renderChoices = (control: Parameters<FilterHeaderSlots[\"Multi\"]>[0]) =>\n control.options.map((option) =>\n h(ElementCheckbox, {\n key: option.value,\n label: option.label,\n labelVisible: true,\n checked: control.selected.includes(option.value),\n onChange: (checked) => control.onToggle(option.value, checked),\n })\n );\nconst controls: FilterHeaderSlots = {\n Search: (control) =>\n h(ElementInput, {\n type: \"search\",\n dir: props.dir,\n value: control.value,\n \"data-adapttable-part\": \"filter-header-input\",\n \"aria-label\": control.label,\n placeholder: control.placeholder,\n class: control.className,\n onChange: control.onChange,\n }),\n Select: (control) =>\n h(ElementSelect, {\n value: control.value,\n dir: props.dir,\n options: control.options,\n \"data-adapttable-part\": \"filter-header-input\",\n \"aria-label\": control.label,\n class: control.className,\n onChange: control.onChange,\n }),\n Range: (control) =>\n h(ElementInput, {\n value: control.value,\n type: control.type,\n dir: props.dir,\n \"aria-label\": control.label,\n onChange: control.onChange,\n }),\n Multi: (control) =>\n h(\n ElPopover,\n {\n key: `${props.def.key}:${props.def.type}`,\n ref: popover,\n trigger: \"click\",\n role: \"dialog\",\n \"aria-label\": control.label,\n persistent: false,\n hideAfter: 0,\n teleported: true,\n appendTo: fullscreen.value?.container ?? \"body\",\n placement:\n popupDirection.value === \"rtl\" ? \"bottom-end\" : \"bottom-start\",\n popperStyle: { direction: popupDirection.value },\n onBeforeEnter: readInheritedDirection,\n width: \"auto\",\n },\n {\n reference: () =>\n elementButton(\n {\n ref: setTrigger,\n dir: props.dir,\n \"data-adapttable-part\": \"filter-header-input\",\n class: control.className,\n \"aria-label\": control.label,\n onKeydown: dismiss,\n },\n control.summary\n ),\n default: () =>\n h(\n ElSpace,\n {\n direction: \"vertical\",\n alignment: \"start\",\n role: \"group\",\n dir: popupDirection.value,\n \"data-adapttable-part\": \"filter-header-menu\",\n class: control.menuClassName,\n \"aria-label\": control.label,\n onKeydown: dismiss,\n style: { maxBlockSize: \"14rem\", overflow: \"auto\" },\n },\n {\n default: () => renderChoices(control),\n }\n ),\n }\n ),\n};\nconst Render = () =>\n FilterHeaderControlChrome({ model: model.value, controls });\nconst renderProps: string[] = [];\nRender.props = renderProps;\n</script>\n\n<template><Render /></template>\n","<script setup lang=\"ts\" generic=\"TRow\">\nimport {\n FilterHeaderChrome as FilterHeaderRowChrome,\n type FilterHeaderRowProps,\n type FilterHeaderRowSlots,\n} from \"@adapttable/vue/adapter\";\nimport { h } from \"vue\";\n\nimport ElementFilterHeaderControl from \"./ElementFilterHeaderControl.vue\";\n\ndefineOptions({ name: \"ElementFilterHeaderRow\" });\nconst props = withDefaults(defineProps<FilterHeaderRowProps<TRow>>(), {\n enabled: undefined,\n expandable: undefined,\n showReorder: undefined,\n selection: undefined,\n showActions: undefined,\n stickyAttr: undefined,\n});\nconst controls: FilterHeaderRowSlots<TRow> = {\n Control: (control) => h(ElementFilterHeaderControl<TRow>, { ...control }),\n};\nconst Render = () => FilterHeaderRowChrome({ ...props, controls });\nconst renderProps: string[] = [];\nRender.props = renderProps;\n</script>\n\n<template>\n <Render />\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;EAmBA,MAAM,QAAQ;EAGd,MAAM,SAAA,GAAQ,wBAAA,uBAAA,OAA6B,KAAK;EAChD,MAAM,UAAA,GAAS,wBAAA,iBAAA,CAAiB;EAChC,MAAM,cAAA,GAAa,wBAAA,gBAAA,CAAgB,wBAAA,gBAAgB;EACnD,MAAM,WAAA,GAAU,IAAA,WAAA,CAA4B;EAC5C,MAAM,WAAA,GAAU,IAAA,WAAA,CAA+B,IAAI;EACnD,MAAM,sBAAA,GAAqB,IAAA,WAAA,CAA0B;EACrD,MAAM,kBAAA,GAAiB,IAAA,SAAA,OAAe,MAAM,OAAO,mBAAmB,KAAK;EAC3E,MAA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AAG;GAAO;EAAS,CAAC;EAEjE,OAAO,QAAQ,CAAA;;GAIb,QAAA,GAAA,IAAA,UAAA,CAAA,IAAA,GAAA,IAAA,YAAA,CAAU,MAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ElementFilterHeaderRow-qiv68upK.js","names":[],"sources":["../src/filters/ElementFilterHeaderControl.vue","../src/filters/ElementFilterHeaderRow.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"TRow\">\nimport {\n FilterHeaderControlChrome,\n type FilterHeaderControlOptions,\n type FilterHeaderSlots,\n FULLSCREEN_MODEL,\n useFeatureState,\n useFilterHeaderControl,\n useScopeActivity,\n} from \"@adapttable/vue/adapter\";\nimport { ElPopover, ElSpace, type PopoverInstance } from \"element-plus\";\nimport { computed, h, shallowRef } from \"vue\";\n\nimport { elementButton } from \"../controls/button\";\nimport ElementCheckbox from \"../controls/ElementCheckbox.vue\";\nimport ElementInput from \"../controls/ElementInput.vue\";\nimport ElementSelect from \"../controls/ElementSelect.vue\";\n\ndefineOptions({ name: \"ElementFilterHeaderControl\" });\nconst props = withDefaults(defineProps<FilterHeaderControlOptions<TRow>>(), {\n closeOnSelect: undefined,\n});\nconst model = useFilterHeaderControl(() => props);\nconst active = useScopeActivity();\nconst fullscreen = useFeatureState(FULLSCREEN_MODEL);\nconst popover = shallowRef<PopoverInstance>();\nconst trigger = shallowRef<HTMLElement | null>(null);\nconst inheritedDirection = shallowRef<\"ltr\" | \"rtl\">();\nconst popupDirection = computed(() => props.dir ?? inheritedDirection.value);\nconst setTrigger = (element: HTMLElement | null) => {\n trigger.value = element;\n};\nconst readInheritedDirection = () => {\n if (props.dir !== undefined || !trigger.value) return;\n const target = trigger.value;\n const direction =\n target.ownerDocument.defaultView?.getComputedStyle(target).direction;\n inheritedDirection.value =\n direction === \"rtl\" || direction === \"ltr\" ? direction : undefined;\n};\nconst dismiss = (event: KeyboardEvent) => {\n if (\n event.key !== \"Escape\" ||\n event.defaultPrevented ||\n event.isComposing ||\n trigger.value?.getAttribute(\"aria-expanded\") !== \"true\"\n )\n return;\n event.preventDefault();\n event.stopPropagation();\n popover.value?.hide();\n if (active.value && trigger.value?.isConnected) trigger.value.focus();\n};\nconst renderChoices = (control: Parameters<FilterHeaderSlots[\"Multi\"]>[0]) =>\n control.options.map((option) =>\n h(ElementCheckbox, {\n key: option.value,\n label: option.label,\n labelVisible: true,\n checked: control.selected.includes(option.value),\n onChange: (checked) => control.onToggle(option.value, checked),\n })\n );\nconst controls: FilterHeaderSlots = {\n Search: (control) =>\n h(ElementInput, {\n type: \"search\",\n dir: props.dir,\n value: control.value,\n \"data-adapttable-part\": \"filter-header-input\",\n \"aria-label\": control.label,\n placeholder: control.placeholder,\n class: control.className,\n onChange: control.onChange,\n }),\n Select: (control) =>\n h(ElementSelect, {\n value: control.value,\n dir: props.dir,\n options: control.options,\n \"data-adapttable-part\": \"filter-header-input\",\n \"aria-label\": control.label,\n class: control.className,\n onChange: control.onChange,\n }),\n Range: (control) =>\n h(ElementInput, {\n value: control.value,\n type: control.type,\n dir: props.dir,\n \"aria-label\": control.label,\n onChange: control.onChange,\n }),\n Multi: (control) =>\n h(\n ElPopover,\n {\n key: `${props.def.key}:${props.def.type}`,\n ref: popover,\n trigger: \"click\",\n role: \"dialog\",\n \"aria-label\": control.label,\n persistent: false,\n hideAfter: 0,\n teleported: true,\n appendTo: fullscreen.value?.container ?? \"body\",\n placement:\n popupDirection.value === \"rtl\" ? \"bottom-end\" : \"bottom-start\",\n popperStyle: { direction: popupDirection.value },\n onBeforeEnter: readInheritedDirection,\n width: \"auto\",\n },\n {\n reference: () =>\n elementButton(\n {\n ref: setTrigger,\n dir: props.dir,\n \"data-adapttable-part\": \"filter-header-input\",\n class: control.className,\n \"aria-label\": control.label,\n onKeydown: dismiss,\n },\n control.summary\n ),\n default: () =>\n h(\n ElSpace,\n {\n direction: \"vertical\",\n alignment: \"start\",\n role: \"group\",\n dir: popupDirection.value,\n \"data-adapttable-part\": \"filter-header-menu\",\n class: control.menuClassName,\n \"aria-label\": control.label,\n onKeydown: dismiss,\n style: { maxBlockSize: \"14rem\", overflow: \"auto\" },\n },\n {\n default: () => renderChoices(control),\n }\n ),\n }\n ),\n};\nconst Render = () =>\n FilterHeaderControlChrome({ model: model.value, controls });\nconst renderProps: string[] = [];\nRender.props = renderProps;\n</script>\n\n<template><Render /></template>\n","<script setup lang=\"ts\" generic=\"TRow\">\nimport {\n FilterHeaderChrome as FilterHeaderRowChrome,\n type FilterHeaderRowProps,\n type FilterHeaderRowSlots,\n} from \"@adapttable/vue/adapter\";\nimport { h } from \"vue\";\n\nimport ElementFilterHeaderControl from \"./ElementFilterHeaderControl.vue\";\n\ndefineOptions({ name: \"ElementFilterHeaderRow\" });\nconst props = withDefaults(defineProps<FilterHeaderRowProps<TRow>>(), {\n enabled: undefined,\n expandable: undefined,\n showReorder: undefined,\n selection: undefined,\n showActions: undefined,\n stickyAttr: undefined,\n});\nconst controls: FilterHeaderRowSlots<TRow> = {\n Control: (control) => h(ElementFilterHeaderControl<TRow>, { ...control }),\n};\nconst Render = () => FilterHeaderRowChrome({ ...props, controls });\nconst renderProps: string[] = [];\nRender.props = renderProps;\n</script>\n\n<template>\n <Render />\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;EAmBA,MAAM,QAAQ;EAGd,MAAM,QAAQ,6BAA6B,KAAK;EAChD,MAAM,SAAS,iBAAiB;EAChC,MAAM,aAAa,gBAAgB,gBAAgB;EACnD,MAAM,UAAU,WAA4B;EAC5C,MAAM,UAAU,WAA+B,IAAI;EACnD,MAAM,qBAAqB,WAA0B;EACrD,MAAM,iBAAiB,eAAe,MAAM,OAAO,mBAAmB,KAAK;EAC3E,MAAM,cAAc,YAAgC;GAClD,QAAQ,QAAQ;EAClB;EACA,MAAM,+BAA+B;GACnC,IAAI,MAAM,QAAQ,KAAA,KAAa,CAAC,QAAQ,OAAO;GAC/C,MAAM,SAAS,QAAQ;GACvB,MAAM,YACJ,OAAO,cAAc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U,WAAW,OAAO,aAAa;IACzC,WACE,eAAe,UAAU,QAAQ,eAAe;IAClD,aAAa,EAAE,WAAW,eAAe,MAAM;IAC/C,eAAe;IACf,OAAO;GACT,GACA;IACE,iBACE,cACE;KACE,KAAK;KACL,KAAK,MAAM;KACX,wBAAwB;KACxB,OAAO,QAAQ;KACf,cAAc,QAAQ;KACtB,WAAW;IACb,GACA,QAAQ,OACV;IACF,eACE,EACE,SACA;KACE,WAAW;KACX,WAAW;KACX,MAAM;KACN,KAAK,eAAe;KACpB,wBAAwB;KACxB,OAAO,QAAQ;KACf,cAAc,QAAQ;KACtB,WAAW;KACX,OAAO;MAAE,cAAc;MAAS,UAAU;KAAO;IACnD,GACA,EACE,eAAe,cAAc,OAAO,EACtC,CACF;GACJ,CACF;EACJ;EACA,MAAM,eACJ,0BAA0B;GAAE,OAAO,MAAM;GAAO;EAAS,CAAC;EAE5D,OAAO,QAAQ,CAAA;;GAGL,OAAA,UAAA,GAAA,YAAU,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EC7IpB,MAAM,QAAQ;EAQd,MAAM,WAAuC,EAC3C,UAAU,YAAY,EAAE,aAAkC,EAAE,GAAG,QAAQ,CAAC,EAC1E;EACA,MAAM,eAAe,mBAAsB;GAAE,GAAG;GAAO;EAAS,CAAC;EAEjE,OAAO,QAAQ,CAAA;;GAIb,OAAA,UAAA,GAAA,YAAU,MAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ElementFilterSurface-CUpyLfPF.cjs","names":["h","ElementInput","ElementSelect","ElementCheckbox","h","ElementInput","elementButton","ElementCheckbox","ElText","defineComponent","useChecklistModel","ChecklistChrome","createVNode","defineComponent","shallowRef","useScopeActivity","useFeatureState","FULLSCREEN_MODEL","nextTick","h","ElDrawer","ElPopover","rtlScrollbarGutter","withDirectives","ElCard","ClickOutside"],"sources":["../src/filters/fieldControls.ts","../src/filters/ElementBasicFilterField.vue","../src/filters/ElementChecklistFilter.ts","../src/filters/ElementFilterField.vue","../src/filters/ElementFilterSurface.ts"],"sourcesContent":["import type {\n DataTableClassNames,\n FilterFieldSlots,\n} from \"@adapttable/vue/adapter\";\nimport { h } from \"vue\";\n\nimport ElementCheckbox from \"../controls/ElementCheckbox.vue\";\nimport ElementInput from \"../controls/ElementInput.vue\";\nimport ElementSelect from \"../controls/ElementSelect.vue\";\n\nexport function elementFilterControls(\n names: () => DataTableClassNames\n): FilterFieldSlots {\n return {\n Input: (control) =>\n h(ElementInput, {\n ...control.attrs,\n value: control.value,\n type: control.type,\n class: names().filterInput,\n onChange: control.onChange,\n }),\n Select: (control) =>\n h(ElementSelect, {\n ...control.attrs,\n value: control.value,\n options: control.options,\n class:\n control.attrs[\"data-adapttable-part\"] === \"filter-operator\"\n ? names().filterOperator\n : names().filterSelect,\n onChange: control.onChange,\n }),\n Checkbox: (control) =>\n h(ElementCheckbox, {\n ...control.attrs,\n checked: control.checked,\n label: control.label,\n labelVisible: true,\n class: names().filterCheckbox,\n onChange: control.onChange,\n }),\n };\n}\n","<script setup lang=\"ts\" generic=\"TRow\">\nimport {\n type DataTableClassNames,\n FilterFieldChrome,\n type FilterFieldOptions,\n useFilterField,\n} from \"@adapttable/vue/adapter\";\n\nimport { elementFilterControls } from \"./fieldControls\";\n\ndefineOptions({ name: \"ElementBasicFilterField\" });\nconst props = defineProps<\n FilterFieldOptions<TRow> & { classNames?: DataTableClassNames }\n>();\nconst model = useFilterField(() => props);\nconst controls = elementFilterControls(() => props.classNames ?? {});\nconst Render = () =>\n FilterFieldChrome({\n model: model.value,\n controls,\n classNames: props.classNames,\n });\nconst renderProps: string[] = [];\nRender.props = renderProps;\n</script>\n\n<template><Render /></template>\n","import {\n ChecklistChrome,\n type ChecklistFilterProps,\n type ChecklistSlots,\n useChecklistModel,\n} from \"@adapttable/vue/adapter\";\nimport { ElText } from \"element-plus\";\nimport {\n createVNode,\n defineComponent,\n h,\n type PropType,\n type SetupContext,\n type VNodeChild,\n} from \"vue\";\n\nimport { elementButton } from \"../controls/button\";\nimport ElementCheckbox from \"../controls/ElementCheckbox.vue\";\nimport ElementInput from \"../controls/ElementInput.vue\";\n\nconst controls: ChecklistSlots<VNodeChild> = {\n Search: (control) =>\n h(ElementInput, {\n type: \"search\",\n value: control.value,\n \"aria-label\": control.label,\n \"data-adapttable-part\": \"filter-checklist-search\",\n class: control.className,\n onChange: control.onChange,\n }),\n Button: (control) =>\n elementButton({ onClick: control.onClick }, control.label),\n Checkbox: (control) =>\n h(\"div\", { class: \"adapttable-element-plus-checklist-option\" }, [\n h(ElementCheckbox, {\n \"data-adapttable-part\": \"filter-checkbox\",\n class: control.className,\n label: control.label,\n labelVisible: true,\n checked: control.checked,\n onChange: control.onChange,\n }),\n h(\n ElText,\n {\n class: control.countClassName,\n \"data-adapttable-part\": \"filter-checklist-count\",\n type: \"info\",\n size: \"small\",\n },\n { default: () => control.count }\n ),\n ]),\n};\n\n// The presentation validates values; its key list preserves generic public\n// components and Vue fallthrough attribute inference.\nconst checklistRuntimeProps = {\n def: { type: Object as PropType<ChecklistFilterProps<unknown>[\"def\"]> },\n source: { type: Object as PropType<ChecklistFilterProps<unknown>[\"source\"]> },\n labels: { type: Object as PropType<ChecklistFilterProps<unknown>[\"labels\"]> },\n classNames: {\n type: Object as PropType<ChecklistFilterProps<unknown>[\"classNames\"]>,\n },\n};\n\nconst ElementChecklistFilterPresentation = defineComponent(\n (props: ChecklistFilterProps<unknown>) => {\n const model = useChecklistModel(() => props);\n return () => ChecklistChrome({ model: model.value, controls });\n },\n {\n name: \"ElementChecklistFilterPresentation\",\n props: checklistRuntimeProps,\n }\n);\n\n/** Preserve the canonical row contract without exposing versioned instance helpers. */\nexport function ElementChecklistFilter<TRow>(\n props: ChecklistFilterProps<TRow>,\n context: Pick<SetupContext, \"attrs\">\n) {\n return createVNode(ElementChecklistFilterPresentation, {\n ...context.attrs,\n ...props,\n });\n}\nElementChecklistFilter.props = Object.keys(checklistRuntimeProps);\n","<script setup lang=\"ts\" generic=\"TRow\">\nimport {\n type DataTableClassNames,\n defaultFilterRegistry,\n type FilterFieldOptions,\n filterLabel,\n filterWidgetKind,\n} from \"@adapttable/vue/adapter\";\nimport { ElFormItem } from \"element-plus\";\n\nimport ElementBasicFilterField from \"./ElementBasicFilterField.vue\";\nimport { ElementChecklistFilter } from \"./ElementChecklistFilter\";\n\ndefineOptions({ name: \"ElementFilterField\" });\nconst props = defineProps<\n FilterFieldOptions<TRow> & { classNames?: DataTableClassNames }\n>();\n</script>\n\n<template>\n <ElFormItem\n v-if=\"\n filterWidgetKind(props.def, props.registry ?? defaultFilterRegistry) ===\n 'checklist'\n \"\n :label=\"filterLabel(props.def)\"\n :class=\"props.classNames?.filterField\"\n data-adapttable-part=\"filter-field\"\n >\n <ElementChecklistFilter\n :def=\"props.def\"\n :source=\"props.source\"\n :labels=\"props.labels\"\n :class-names=\"props.classNames\"\n />\n </ElFormItem>\n <ElementBasicFilterField v-else v-bind=\"props\" />\n</template>\n","import {\n type FilterPanelSurfaceProps,\n FULLSCREEN_MODEL,\n useFeatureState,\n useScopeActivity,\n} from \"@adapttable/vue/adapter\";\nimport {\n type CardInstance,\n ClickOutside,\n ElCard,\n ElDrawer,\n ElPopover,\n} from \"element-plus\";\nimport {\n defineComponent,\n h,\n nextTick,\n onMounted,\n type PropType,\n shallowRef,\n watch,\n withDirectives,\n} from \"vue\";\n\nimport { rtlScrollbarGutter } from \"../scrollbarGutter\";\n\n/** Kit overlays retain their own positioning, focus trap and modal backdrop. */\nexport const ElementFilterSurface = defineComponent(\n (\n props: FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n /** Class for ElDrawer's modal mask, through its `modalClass` hook. */\n readonly backdropClassName?: string;\n }\n ) => {\n const mounted = shallowRef(false);\n const active = useScopeActivity();\n const fullscreen = useFeatureState(FULLSCREEN_MODEL);\n const panel = shallowRef<CardInstance>();\n onMounted(() => {\n mounted.value = true;\n });\n const close: FilterPanelSurfaceProps[\"onClose\"] = (reason) => {\n if (!active.value || !props.open) return;\n props.onClose(reason);\n if (reason === \"escape\") {\n const anchor = props.anchor;\n void nextTick(() => {\n if (\n active.value &&\n !props.open &&\n props.anchor === anchor &&\n anchor?.isConnected\n )\n anchor.focus();\n });\n }\n };\n const outside = (event: MouseEvent) => {\n const target = event.target;\n if (target instanceof Node && props.anchor?.contains(target)) return;\n close(\"outside\");\n };\n const keydown = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\") return;\n // Element's focus trap releases on any Escape that reaches the document,\n // including one an inner control handled or an IME composition owns, so\n // the panel keeps those Escapes inside itself.\n if (event.defaultPrevented || event.isComposing) {\n event.stopPropagation();\n return;\n }\n event.preventDefault();\n event.stopPropagation();\n close(\"escape\");\n };\n // Escape also dismisses while focus is still on the external trigger,\n // before the native enter transition has moved it into the card.\n watch(\n () => active.value && props.open,\n (open, _previous, cleanup) => {\n const document = props.anchor?.ownerDocument;\n if (!open || !document) return;\n document.addEventListener(\"keydown\", keydown);\n cleanup(() => document.removeEventListener(\"keydown\", keydown));\n },\n { immediate: true }\n );\n // A closed native combobox must not swallow the containing overlay's Escape.\n // Open comboboxes keep the event so their own menu closes first.\n const captureKeydown = (event: KeyboardEvent) => {\n const target = event.target;\n if (\n target instanceof Element &&\n target.getAttribute(\"role\") === \"combobox\" &&\n target.getAttribute(\"aria-expanded\") === \"false\"\n )\n keydown(event);\n };\n const focusPanel = () => {\n const element: unknown = panel.value?.$el;\n if (!active.value || !props.open || !(element instanceof HTMLElement))\n return;\n const focused = element.ownerDocument.activeElement;\n if (focused === props.anchor || focused === element.ownerDocument.body)\n element.focus();\n };\n return () => {\n if (!mounted.value || !active.value) return null;\n if (props.modal)\n return h(\n ElDrawer,\n {\n modelValue: props.open,\n title: props.label,\n direction: props.dir === \"rtl\" ? \"ltr\" : \"rtl\",\n appendTo: props.container ?? fullscreen.value?.container ?? \"body\",\n appendToBody: true,\n modal: true,\n modalClass: props.backdropClassName,\n withHeader: false,\n showClose: false,\n destroyOnClose: true,\n // Relative to the drawer's overlay, which excludes a classic\n // scrollbar or a reserved gutter; 100vw does not.\n size: \"min(30rem, 100%)\",\n dir: props.dir,\n class: props.className,\n \"data-adapttable-part\": \"filters-panel\",\n beforeClose: () => close(\"outside\"),\n onKeydown: keydown,\n onKeydownCapture: captureKeydown,\n },\n { default: () => props.children }\n );\n if (!props.anchor) return null;\n return h(\n ElPopover,\n {\n visible: props.open,\n virtualTriggering: true,\n virtualRef: props.anchor,\n trigger: \"click\",\n role: \"dialog\",\n \"aria-label\": props.label,\n placement: props.dir === \"rtl\" ? \"bottom-end\" : \"bottom-start\",\n appendTo: props.container ?? fullscreen.value?.container ?? \"body\",\n teleported: true,\n persistent: false,\n showArrow: false,\n width: \"min(28rem, calc(100vw - 1rem))\",\n popperClass: \"adapttable-element-plus-filter-popover\",\n popperStyle: {\n padding: 0,\n translate: `${rtlScrollbarGutter(props.dir, props.anchor?.ownerDocument.defaultView)} 0`,\n },\n onAfterEnter: focusPanel,\n },\n {\n default: () =>\n withDirectives(\n h(\n ElCard,\n {\n ref: panel,\n shadow: \"never\",\n dir: props.dir,\n tabindex: -1,\n \"aria-label\": props.label,\n \"data-adapttable-part\": props.part ?? \"filters-popover\",\n class: props.className,\n onKeydown: keydown,\n onKeydownCapture: captureKeydown,\n },\n { default: () => props.children }\n ),\n [[ClickOutside, outside]]\n ),\n }\n );\n };\n },\n {\n name: \"ElementFilterSurface\",\n props: {\n className: {\n type: String as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n /** Class for ElDrawer's modal mask, through its `modalClass` hook. */\n readonly backdropClassName?: string;\n })[\"className\"]\n >,\n },\n open: {\n type: Boolean as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n /** Class for ElDrawer's modal mask, through its `modalClass` hook. */\n readonly backdropClassName?: string;\n })[\"open\"]\n >,\n default: undefined,\n },\n label: {\n type: String as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n /** Class for ElDrawer's modal mask, through its `modalClass` hook. */\n readonly backdropClassName?: string;\n })[\"label\"]\n >,\n },\n dir: {\n type: String as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n /** Class for ElDrawer's modal mask, through its `modalClass` hook. */\n readonly backdropClassName?: string;\n })[\"dir\"]\n >,\n },\n anchor: {\n type: Object as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n /** Class for ElDrawer's modal mask, through its `modalClass` hook. */\n readonly backdropClassName?: string;\n })[\"anchor\"]\n >,\n },\n container: {\n type: Object as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n /** Class for ElDrawer's modal mask, through its `modalClass` hook. */\n readonly backdropClassName?: string;\n })[\"container\"]\n >,\n },\n children: {\n type: [String, Number, Boolean, Array, Object] as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n /** Class for ElDrawer's modal mask, through its `modalClass` hook. */\n readonly backdropClassName?: string;\n })[\"children\"]\n >,\n default: undefined,\n },\n onClose: {\n type: Function as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n /** Class for ElDrawer's modal mask, through its `modalClass` hook. */\n readonly backdropClassName?: string;\n })[\"onClose\"]\n >,\n },\n modal: {\n type: Boolean as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n /** Class for ElDrawer's modal mask, through its `modalClass` hook. */\n readonly backdropClassName?: string;\n })[\"modal\"]\n >,\n default: undefined,\n },\n part: {\n type: String as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n /** Class for ElDrawer's modal mask, through its `modalClass` hook. */\n readonly backdropClassName?: string;\n })[\"part\"]\n >,\n },\n backdropClassName: {\n type: String as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n /** Class for ElDrawer's modal mask, through its `modalClass` hook. */\n readonly backdropClassName?: string;\n })[\"backdropClassName\"]\n >,\n },\n },\n }\n);\n"],"mappings":";;;;;;;;;AAUA,SAAgB,sBACd,OACkB;CAClB,OAAO;EACL,QAAQ,aAAA,GACNA,IAAAA,EAAAA,CAAEC,qBAAAA,WAAc;GACd,GAAG,QAAQ;GACX,OAAO,QAAQ;GACf,MAAM,QAAQ;GACd,OAAO,MAAM,CAAC,CAAC;GACf,UAAU,QAAQ;EACpB,CAAC;EACH,SAAS,aAAA,GACPD,IAAAA,EAAAA,CAAEE,sBAAAA,WAAe;GACf,GAAG,QAAQ;GACX,OAAO,QAAQ;GACf,SAAS,QAAQ;GACjB,OACE,QAAQ,MAAM,4BAA4B,oBACtC,MAAM,CAAC,CAAC,iBACR,MAAM,CAAC,CAAC;GACd,UAAU,QAAQ;EACpB,CAAC;EACH,WAAW,aAAA,GACTF,IAAAA,EAAAA,CAAEG,wBAAAA,WAAiB;GACjB,GAAG,QAAQ;GACX,SAAS,QAAQ;GACjB,OAAO,QAAQ;GACf,cAAc;GACd,OAAO,MAAM,CAAC,CAAC;GACf,UAAU,QAAQ;EACpB,CAAC;CACL;AACF;;;;;;;;;;;;;;;EChCA,MAAM,QAAQ;EAGd,MAAM,SAAA,GAAQ,wBAAA,eAAA,OAAqB,KAAK;EACxC,MAAM,WAAW,4BAA4B,MAAM,cAAc,CAAC,CAAC;EACnE,MAAM,gBAAA,GACJ,wBAAA,kBAAA,CAAkB;GAChB,OAAO,MAAM;GACb;GACA,YAAY,MAAM;EACpB,CAAC;EAEH,OAAO,QAAQ,CAAA;;GAGL,QAAA,GAAA,IAAA,UAAA,CAAA,IAAA,GAAA,IAAA,YAAA,CAAU,MAAA;;;;;;ACNpB,MAAM,WAAuC;CAC3C,SAAS,aAAA,GACPC,IAAAA,EAAAA,CAAEC,qBAAAA,WAAc;EACd,MAAM;EACN,OAAO,QAAQ;EACf,cAAc,QAAQ;EACtB,wBAAwB;EACxB,OAAO,QA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M;IAAC;IAAQ;IAAQ;IAAS;IAAO;GAAM;GAQ7C,SAAS,KAAA;EACX;EACA,SAAS,EACP,MAAM,SAQR;EACA,OAAO;GACL,MAAM;GAQN,SAAS,KAAA;EACX;EACA,MAAM,EACJ,MAAM,OAQR;EACA,mBAAmB,EACjB,MAAM,OAQR;CACF;AACF,CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ElementFilterSurface-CztEiJ0k.js","names":["ElementInput","ElementSelect","ElementCheckbox","ElementInput","ElementCheckbox"],"sources":["../src/filters/fieldControls.ts","../src/filters/ElementBasicFilterField.vue","../src/filters/ElementChecklistFilter.ts","../src/filters/ElementFilterField.vue","../src/filters/ElementFilterSurface.ts"],"sourcesContent":["import type {\n DataTableClassNames,\n FilterFieldSlots,\n} from \"@adapttable/vue/adapter\";\nimport { h } from \"vue\";\n\nimport ElementCheckbox from \"../controls/ElementCheckbox.vue\";\nimport ElementInput from \"../controls/ElementInput.vue\";\nimport ElementSelect from \"../controls/ElementSelect.vue\";\n\nexport function elementFilterControls(\n names: () => DataTableClassNames\n): FilterFieldSlots {\n return {\n Input: (control) =>\n h(ElementInput, {\n ...control.attrs,\n value: control.value,\n type: control.type,\n class: names().filterInput,\n onChange: control.onChange,\n }),\n Select: (control) =>\n h(ElementSelect, {\n ...control.attrs,\n value: control.value,\n options: control.options,\n class:\n control.attrs[\"data-adapttable-part\"] === \"filter-operator\"\n ? names().filterOperator\n : names().filterSelect,\n onChange: control.onChange,\n }),\n Checkbox: (control) =>\n h(ElementCheckbox, {\n ...control.attrs,\n checked: control.checked,\n label: control.label,\n labelVisible: true,\n class: names().filterCheckbox,\n onChange: control.onChange,\n }),\n };\n}\n","<script setup lang=\"ts\" generic=\"TRow\">\nimport {\n type DataTableClassNames,\n FilterFieldChrome,\n type FilterFieldOptions,\n useFilterField,\n} from \"@adapttable/vue/adapter\";\n\nimport { elementFilterControls } from \"./fieldControls\";\n\ndefineOptions({ name: \"ElementBasicFilterField\" });\nconst props = defineProps<\n FilterFieldOptions<TRow> & { classNames?: DataTableClassNames }\n>();\nconst model = useFilterField(() => props);\nconst controls = elementFilterControls(() => props.classNames ?? {});\nconst Render = () =>\n FilterFieldChrome({\n model: model.value,\n controls,\n classNames: props.classNames,\n });\nconst renderProps: string[] = [];\nRender.props = renderProps;\n</script>\n\n<template><Render /></template>\n","import {\n ChecklistChrome,\n type ChecklistFilterProps,\n type ChecklistSlots,\n useChecklistModel,\n} from \"@adapttable/vue/adapter\";\nimport { ElText } from \"element-plus\";\nimport {\n createVNode,\n defineComponent,\n h,\n type PropType,\n type SetupContext,\n type VNodeChild,\n} from \"vue\";\n\nimport { elementButton } from \"../controls/button\";\nimport ElementCheckbox from \"../controls/ElementCheckbox.vue\";\nimport ElementInput from \"../controls/ElementInput.vue\";\n\nconst controls: ChecklistSlots<VNodeChild> = {\n Search: (control) =>\n h(ElementInput, {\n type: \"search\",\n value: control.value,\n \"aria-label\": control.label,\n \"data-adapttable-part\": \"filter-checklist-search\",\n class: control.className,\n onChange: control.onChange,\n }),\n Button: (control) =>\n elementButton({ onClick: control.onClick }, control.label),\n Checkbox: (control) =>\n h(\"div\", { class: \"adapttable-element-plus-checklist-option\" }, [\n h(ElementCheckbox, {\n \"data-adapttable-part\": \"filter-checkbox\",\n class: control.className,\n label: control.label,\n labelVisible: true,\n checked: control.checked,\n onChange: control.onChange,\n }),\n h(\n ElText,\n {\n class: control.countClassName,\n \"data-adapttable-part\": \"filter-checklist-count\",\n type: \"info\",\n size: \"small\",\n },\n { default: () => control.count }\n ),\n ]),\n};\n\n// The presentation validates values; its key list preserves generic public\n// components and Vue fallthrough attribute inference.\nconst checklistRuntimeProps = {\n def: { type: Object as PropType<ChecklistFilterProps<unknown>[\"def\"]> },\n source: { type: Object as PropType<ChecklistFilterProps<unknown>[\"source\"]> },\n labels: { type: Object as PropType<ChecklistFilterProps<unknown>[\"labels\"]> },\n classNames: {\n type: Object as PropType<ChecklistFilterProps<unknown>[\"classNames\"]>,\n },\n};\n\nconst ElementChecklistFilterPresentation = defineComponent(\n (props: ChecklistFilterProps<unknown>) => {\n const model = useChecklistModel(() => props);\n return () => ChecklistChrome({ model: model.value, controls });\n },\n {\n name: \"ElementChecklistFilterPresentation\",\n props: checklistRuntimeProps,\n }\n);\n\n/** Preserve the canonical row contract without exposing versioned instance helpers. */\nexport function ElementChecklistFilter<TRow>(\n props: ChecklistFilterProps<TRow>,\n context: Pick<SetupContext, \"attrs\">\n) {\n return createVNode(ElementChecklistFilterPresentation, {\n ...context.attrs,\n ...props,\n });\n}\nElementChecklistFilter.props = Object.keys(checklistRuntimeProps);\n","<script setup lang=\"ts\" generic=\"TRow\">\nimport {\n type DataTableClassNames,\n defaultFilterRegistry,\n type FilterFieldOptions,\n filterLabel,\n filterWidgetKind,\n} from \"@adapttable/vue/adapter\";\nimport { ElFormItem } from \"element-plus\";\n\nimport ElementBasicFilterField from \"./ElementBasicFilterField.vue\";\nimport { ElementChecklistFilter } from \"./ElementChecklistFilter\";\n\ndefineOptions({ name: \"ElementFilterField\" });\nconst props = defineProps<\n FilterFieldOptions<TRow> & { classNames?: DataTableClassNames }\n>();\n</script>\n\n<template>\n <ElFormItem\n v-if=\"\n filterWidgetKind(props.def, props.registry ?? defaultFilterRegistry) ===\n 'checklist'\n \"\n :label=\"filterLabel(props.def)\"\n :class=\"props.classNames?.filterField\"\n data-adapttable-part=\"filter-field\"\n >\n <ElementChecklistFilter\n :def=\"props.def\"\n :source=\"props.source\"\n :labels=\"props.labels\"\n :class-names=\"props.classNames\"\n />\n </ElFormItem>\n <ElementBasicFilterField v-else v-bind=\"props\" />\n</template>\n","import {\n type FilterPanelSurfaceProps,\n FULLSCREEN_MODEL,\n useFeatureState,\n useScopeActivity,\n} from \"@adapttable/vue/adapter\";\nimport {\n type CardInstance,\n ClickOutside,\n ElCard,\n ElDrawer,\n ElPopover,\n} from \"element-plus\";\nimport {\n defineComponent,\n h,\n nextTick,\n onMounted,\n type PropType,\n shallowRef,\n watch,\n withDirectives,\n} from \"vue\";\n\nimport { rtlScrollbarGutter } from \"../scrollbarGutter\";\n\n/** Kit overlays retain their own positioning, focus trap and modal backdrop. */\nexport const ElementFilterSurface = defineComponent(\n (\n props: FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n /** Class for ElDrawer's modal mask, through its `modalClass` hook. */\n readonly backdropClassName?: string;\n }\n ) => {\n const mounted = shallowRef(false);\n const active = useScopeActivity();\n const fullscreen = useFeatureState(FULLSCREEN_MODEL);\n const panel = shallowRef<CardInstance>();\n onMounted(() => {\n mounted.value = true;\n });\n const close: FilterPanelSurfaceProps[\"onClose\"] = (reason) => {\n if (!active.value || !props.open) return;\n props.onClose(reason);\n if (reason === \"escape\") {\n const anchor = props.anchor;\n void nextTick(() => {\n if (\n active.value &&\n !props.open &&\n props.anchor === anchor &&\n anchor?.isConnected\n )\n anchor.focus();\n });\n }\n };\n const outside = (event: MouseEvent) => {\n const target = event.target;\n if (target instanceof Node && props.anchor?.contains(target)) return;\n close(\"outside\");\n };\n const keydown = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\") return;\n // Element's focus trap releases on any Escape that reaches the document,\n // including one an inner control handled or an IME composition owns, so\n // the panel keeps those Escapes inside itself.\n if (event.defaultPrevented || event.isComposing) {\n event.stopPropagation();\n return;\n }\n event.preventDefault();\n event.stopPropagation();\n close(\"escape\");\n };\n // Escape also dismisses while focus is still on the external trigger,\n // before the native enter transition has moved it into the card.\n watch(\n () => active.value && props.open,\n (open, _previous, cleanup) => {\n const document = props.anchor?.ownerDocument;\n if (!open || !document) return;\n document.addEventListener(\"keydown\", keydown);\n cleanup(() => document.removeEventListener(\"keydown\", keydown));\n },\n { immediate: true }\n );\n // A closed native combobox must not swallow the containing overlay's Escape.\n // Open comboboxes keep the event so their own menu closes first.\n const captureKeydown = (event: KeyboardEvent) => {\n const target = event.target;\n if (\n target instanceof Element &&\n target.getAttribute(\"role\") === \"combobox\" &&\n target.getAttribute(\"aria-expanded\") === \"false\"\n )\n keydown(event);\n };\n const focusPanel = () => {\n const element: unknown = panel.value?.$el;\n if (!active.value || !props.open || !(element instanceof HTMLElement))\n return;\n const focused = element.ownerDocument.activeElement;\n if (focused === props.anchor || focused === element.ownerDocument.body)\n element.focus();\n };\n return () => {\n if (!mounted.value || !active.value) return null;\n if (props.modal)\n return h(\n ElDrawer,\n {\n modelValue: props.open,\n title: props.label,\n direction: props.dir === \"rtl\" ? \"ltr\" : \"rtl\",\n appendTo: props.container ?? fullscreen.value?.container ?? \"body\",\n appendToBody: true,\n modal: true,\n modalClass: props.backdropClassName,\n withHeader: false,\n showClose: false,\n destroyOnClose: true,\n // Relative to the drawer's overlay, which excludes a classic\n // scrollbar or a reserved gutter; 100vw does not.\n size: \"min(30rem, 100%)\",\n dir: props.dir,\n class: props.className,\n \"data-adapttable-part\": \"filters-panel\",\n beforeClose: () => close(\"outside\"),\n onKeydown: keydown,\n onKeydownCapture: captureKeydown,\n },\n { default: () => props.children }\n );\n if (!props.anchor) return null;\n return h(\n ElPopover,\n {\n visible: props.open,\n virtualTriggering: true,\n virtualRef: props.anchor,\n trigger: \"click\",\n role: \"dialog\",\n \"aria-label\": props.label,\n placement: props.dir === \"rtl\" ? \"bottom-end\" : \"bottom-start\",\n appendTo: props.container ?? fullscreen.value?.container ?? \"body\",\n teleported: true,\n persistent: false,\n showArrow: false,\n width: \"min(28rem, calc(100vw - 1rem))\",\n popperClass: \"adapttable-element-plus-filter-popover\",\n popperStyle: {\n padding: 0,\n translate: `${rtlScrollbarGutter(props.dir, props.anchor?.ownerDocument.defaultView)} 0`,\n },\n onAfterEnter: focusPanel,\n },\n {\n default: () =>\n withDirectives(\n h(\n ElCard,\n {\n ref: panel,\n shadow: \"never\",\n dir: props.dir,\n tabindex: -1,\n \"aria-label\": props.label,\n \"data-adapttable-part\": props.part ?? \"filters-popover\",\n class: props.className,\n onKeydown: keydown,\n onKeydownCapture: captureKeydown,\n },\n { default: () => props.children }\n ),\n [[ClickOutside, outside]]\n ),\n }\n );\n };\n },\n {\n name: \"ElementFilterSurface\",\n props: {\n className: {\n type: String as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n /** Class for ElDrawer's modal mask, through its `modalClass` hook. */\n readonly backdropClassName?: string;\n })[\"className\"]\n >,\n },\n open: {\n type: Boolean as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n /** Class for ElDrawer's modal mask, through its `modalClass` hook. */\n readonly backdropClassName?: string;\n })[\"open\"]\n >,\n default: undefined,\n },\n label: {\n type: String as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n /** Class for ElDrawer's modal mask, through its `modalClass` hook. */\n readonly backdropClassName?: string;\n })[\"label\"]\n >,\n },\n dir: {\n type: String as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n /** Class for ElDrawer's modal mask, through its `modalClass` hook. */\n readonly backdropClassName?: string;\n })[\"dir\"]\n >,\n },\n anchor: {\n type: Object as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n /** Class for ElDrawer's modal mask, through its `modalClass` hook. */\n readonly backdropClassName?: string;\n })[\"anchor\"]\n >,\n },\n container: {\n type: Object as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n /** Class for ElDrawer's modal mask, through its `modalClass` hook. */\n readonly backdropClassName?: string;\n })[\"container\"]\n >,\n },\n children: {\n type: [String, Number, Boolean, Array, Object] as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n /** Class for ElDrawer's modal mask, through its `modalClass` hook. */\n readonly backdropClassName?: string;\n })[\"children\"]\n >,\n default: undefined,\n },\n onClose: {\n type: Function as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n /** Class for ElDrawer's modal mask, through its `modalClass` hook. */\n readonly backdropClassName?: string;\n })[\"onClose\"]\n >,\n },\n modal: {\n type: Boolean as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n /** Class for ElDrawer's modal mask, through its `modalClass` hook. */\n readonly backdropClassName?: string;\n })[\"modal\"]\n >,\n default: undefined,\n },\n part: {\n type: String as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n /** Class for ElDrawer's modal mask, through its `modalClass` hook. */\n readonly backdropClassName?: string;\n })[\"part\"]\n >,\n },\n backdropClassName: {\n type: String as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n /** Class for ElDrawer's modal mask, through its `modalClass` hook. */\n readonly backdropClassName?: string;\n })[\"backdropClassName\"]\n >,\n },\n },\n }\n);\n"],"mappings":";;;;;;;;;AAUA,SAAgB,sBACd,OACkB;CAClB,OAAO;EACL,QAAQ,YACN,EAAEA,aAAc;GACd,GAAG,QAAQ;GACX,OAAO,QAAQ;GACf,MAAM,QAAQ;GACd,OAAO,MAAM,CAAC,CAAC;GACf,UAAU,QAAQ;EACpB,CAAC;EACH,SAAS,YACP,EAAEC,aAAe;GACf,GAAG,QAAQ;GACX,OAAO,QAAQ;GACf,SAAS,QAAQ;GACjB,OACE,QAAQ,MAAM,4BAA4B,oBACtC,MAAM,CAAC,CAAC,iBACR,MAAM,CAAC,CAAC;GACd,UAAU,QAAQ;EACpB,CAAC;EACH,WAAW,YACT,EAAEC,aAAiB;GACjB,GAAG,QAAQ;GACX,SAAS,QAAQ;GACjB,OAAO,QAAQ;GACf,cAAc;GACd,OAAO,MAAM,CAAC,CAAC;GACf,UAAU,QAAQ;EACpB,CAAC;CACL;AACF;;;;;;;;;;;;;;;EChCA,MAAM,QAAQ;EAGd,MAAM,QAAQ,qBAAqB,KAAK;EACxC,MAAM,WAAW,4BAA4B,MAAM,cAAc,CAAC,CAAC;EACnE,MAAM,eACJ,kBAAkB;GAChB,OAAO,MAAM;GACb;GACA,YAAY,MAAM;EACpB,CAAC;E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YAAY;GACZ,WAAW;GACX,OAAO;GACP,aAAa;GACb,aAAa;IACX,SAAS;IACT,WAAW,GAAG,mBAAmB,MAAM,KAAK,MAAM,QAAQ,cAAc,WAAW,EAAE;GACvF;GACA,cAAc;EAChB,GACA,EACE,eACE,eACE,EACE,QACA;GACE,KAAK;GACL,QAAQ;GACR,KAAK,MAAM;GACX,UAAU;GACV,cAAc,MAAM;GACpB,wBAAwB,MAAM,QAAQ;GACtC,OAAO,MAAM;GACb,WAAW;GACX,kBAAkB;EACpB,GACA,EAAE,eAAe,MAAM,SAAS,CAClC,GACA,CAAC,CAAC,cAAc,OAAO,CAAC,CAC1B,EACJ,CACF;CACF;AACF,GACA;CACE,MAAM;CACN,OAAO;EACL,WAAW,EACT,MAAM,OAQR;EACA,MAAM;GACJ,MAAM;GAQN,SAAS,KAAA;EACX;EACA,OAAO,EACL,MAAM,OAQR;EACA,KAAK,EACH,MAAM,OAQR;EACA,QAAQ,EACN,MAAM,OAQR;EACA,WAAW,EACT,MAAM,OAQR;EACA,UAAU;GACR,MAAM;IAAC;IAAQ;IAAQ;IAAS;IAAO;GAAM;GAQ7C,SAAS,KAAA;EACX;EACA,SAAS,EACP,MAAM,SAQR;EACA,OAAO;GACL,MAAM;GAQN,SAAS,KAAA;EACX;EACA,MAAM,EACJ,MAAM,OAQR;EACA,mBAAmB,EACjB,MAAM,OAQR;CACF;AACF,CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ElementInput-BsoAvPfO.js","names":["$attrs"],"sources":["../src/controls/ElementInput.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useElementRef } from \"@adapttable/vue/adapter\";\nimport { ElInput, type InputInstance } from \"element-plus\";\nimport { computed, type CSSProperties, mergeProps, shallowRef } from \"vue\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(\n defineProps<{\n value: string;\n type?:\n | \"text\"\n | \"search\"\n | \"number\"\n | \"date\"\n | \"datetime-local\"\n | \"time\"\n | \"email\"\n | \"url\"\n | \"tel\"\n | \"textarea\";\n disabled?: boolean;\n inputStyle?: CSSProperties;\n inputRef?: (element: HTMLInputElement | HTMLTextAreaElement | null) => void;\n }>(),\n { type: \"text\", disabled: false, inputStyle: undefined, inputRef: undefined }\n);\nconst emit = defineEmits<{ change: [value: string] }>();\nconst control = shallowRef<InputInstance>();\nconst input = computed(() => control.value?.input ?? control.value?.textarea);\nuseElementRef(\n () => input.value,\n () => props.inputRef\n);\ndefineExpose({ input, focus: () => control.value?.focus() });\n</script>\n\n<template>\n <ElInput\n ref=\"control\"\n v-bind=\"mergeProps($attrs, { value: props.value })\"\n :model-value=\"props.value\"\n :type=\"props.type\"\n :disabled=\"props.disabled\"\n :input-style=\"props.inputStyle\"\n :validate-event=\"false\"\n @update:model-value=\"emit('change', $event)\"\n />\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;EAMA,MAAM,QAAQ;EAoBd,MAAM,OAAO;EACb,MAAM,UAAU,WAA0B;EAC1C,MAAM,QAAQ,eAAe,QAAQ,OAAO,SAAS,QAAQ,OAAO,QAAQ;EAC5E,oBACQ,MAAM,aACN,MAAM,QACd;EACA,SAAa;GAAE;GAAO,aAAa,QAAQ,OAAO,MAAM;EAAE,CAAC;;GAIzD,OAAA,UAAA,GAAA,YASE,MAAA,OAAA,GATF,WASE;IARI,SAAA;IAAJ,KAAI;GACI,GAAA,WAAWA,KAAAA,QAAM,EAAA,OAAW,MAAM,MAAK,CAAA,GAAA;IAC9C,eAAa,MAAM;IACnB,MAAM,MAAM;IACZ,UAAU,MAAM;IAChB,eAAa,MAAM;IACnB,kBAAgB;IAChB,uBAAkB,OAAA,OAAA,OAAA,MAAA,WAAE,KAAI,UAAW,MAAM"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ElementInput-vBVDBaLp.cjs","names":["$attrs"],"sources":["../src/controls/ElementInput.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useElementRef } from \"@adapttable/vue/adapter\";\nimport { ElInput, type InputInstance } from \"element-plus\";\nimport { computed, type CSSProperties, mergeProps, shallowRef } from \"vue\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(\n defineProps<{\n value: string;\n type?:\n | \"text\"\n | \"search\"\n | \"number\"\n | \"date\"\n | \"datetime-local\"\n | \"time\"\n | \"email\"\n | \"url\"\n | \"tel\"\n | \"textarea\";\n disabled?: boolean;\n inputStyle?: CSSProperties;\n inputRef?: (element: HTMLInputElement | HTMLTextAreaElement | null) => void;\n }>(),\n { type: \"text\", disabled: false, inputStyle: undefined, inputRef: undefined }\n);\nconst emit = defineEmits<{ change: [value: string] }>();\nconst control = shallowRef<InputInstance>();\nconst input = computed(() => control.value?.input ?? control.value?.textarea);\nuseElementRef(\n () => input.value,\n () => props.inputRef\n);\ndefineExpose({ input, focus: () => control.value?.focus() });\n</script>\n\n<template>\n <ElInput\n ref=\"control\"\n v-bind=\"mergeProps($attrs, { value: props.value })\"\n :model-value=\"props.value\"\n :type=\"props.type\"\n :disabled=\"props.disabled\"\n :input-style=\"props.inputStyle\"\n :validate-event=\"false\"\n @update:model-value=\"emit('change', $event)\"\n />\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;EAMA,MAAM,QAAQ;EAoBd,MAAM,OAAO;EACb,MAAM,WAAA,GAAU,IAAA,WAAA,CAA0B;EAC1C,MAAM,SAAA,GAAQ,IAAA,SAAA,OAAe,QAAQ,OAAO,SAAS,QAAQ,OAAO,QAAQ;EAC5E,CAAA,GAAA,wBAAA,cAAA,OACQ,MAAM,aACN,MAAM,QACd;EACA,SAAa;GAAE;GAAO,aAAa,QAAQ,OAAO,MAAM;EAAE,CAAC;;GAIzD,QAAA,GAAA,IAAA,UAAA,CAAA,IAAA,GAAA,IAAA,YAAA,EAAA,GASE,IAAA,MAAA,CAAA,aAAA,OAAA,IAAA,GATF,IAAA,WAAA,CASE;IARI,SAAA;IAAJ,KAAI;GACI,IAAA,GAAA,IAAA,WAAA,CAAWA,KAAAA,QAAM,EAAA,OAAW,MAAM,MAAK,CAAA,GAAA;IAC9C,eAAa,MAAM;IACnB,MAAM,MAAM;IACZ,UAAU,MAAM;IAChB,eAAa,MAAM;IACnB,kBAAgB;IAChB,uBAAkB,OAAA,OAAA,OAAA,MAAA,WAAE,KAAI,UAAW,MAAM"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ElementRowActions-BKfX2XRn.js","names":[],"sources":["../src/ElementRowActions.ts"],"sourcesContent":["import type { RowActionControl } from \"@adapttable/vue\";\nimport type {\n DataTableClassNames,\n RowActionsLayout,\n} from \"@adapttable/vue/adapter\";\nimport { ElDropdown, ElDropdownItem, ElDropdownMenu } from \"element-plus\";\nimport {\n createVNode,\n defineComponent,\n Fragment,\n h,\n mergeProps,\n shallowRef,\n type VNode,\n} from \"vue\";\n\nimport { elementButton } from \"./controls/button\";\n\ninterface ElementRowActionsProps<TRow> {\n readonly controls: readonly RowActionControl<TRow>[];\n readonly layout?: RowActionsLayout;\n readonly label: string;\n readonly classNames: DataTableClassNames;\n}\nconst actionProps = {\n controls: null,\n layout: null,\n label: null,\n classNames: null,\n} satisfies Record<keyof ElementRowActionsProps<unknown>, unknown>;\n\nconst ElementRowActionsPresentation = defineComponent(\n (props: ElementRowActionsProps<unknown>) => {\n const trigger = shallowRef<HTMLElement | null>(null);\n const setTrigger = (element: HTMLElement | null) => {\n trigger.value = element;\n };\n const returnToTrigger = () => {\n if (trigger.value?.isConnected)\n trigger.value.focus({ preventScroll: true });\n };\n const attrs = (action: RowActionControl<unknown>) =>\n mergeProps(\n {\n key: action.key,\n class: [props.classNames.actionButton, props.classNames.rowAction],\n onClick: (event: MouseEvent) => event.stopPropagation(),\n },\n action.attrs\n );\n const menuItem = (action: RowActionControl<unknown>) =>\n h(\n ElDropdownItem,\n {\n ...mergeProps({ onClick: returnToTrigger }, attrs(action)),\n type: undefined,\n },\n { default: () => action.label }\n );\n return () => {\n if (props.layout !== \"menu\" || props.controls.length === 0)\n return h(\n Fragment,\n null,\n props.controls.map((action) =>\n elementButton(attrs(action), action.label)\n )\n );\n return h(\n ElDropdown,\n {\n trigger: \"click\",\n teleported: false,\n \"data-adapttable-part\": \"row-actions-menu\",\n class: props.classNames.rowActionsMenu,\n onPointerdown: (event: PointerEvent) => event.stopPropagation(),\n },\n {\n default: () =>\n elementButton(\n {\n ref: setTrigger,\n \"data-adapttable-part\": \"row-actions-trigger\",\n class: props.classNames.rowActionsTrigger,\n \"aria-label\": props.label,\n onClick: (event: MouseEvent) => event.stopPropagation(),\n },\n \"⋮\"\n ),\n dropdown: () =>\n h(\n ElDropdownMenu,\n {},\n { default: () => props.controls.map(menuItem) }\n ),\n }\n );\n };\n },\n { name: \"ElementRowActionsPresentation\", props: actionProps }\n);\n\n/** A menu returns focus to its native trigger before an action opens another surface. */\nexport function ElementRowActions<TRow>(\n props: ElementRowActionsProps<TRow>\n): VNode {\n return createVNode(ElementRowActionsPresentation, { ...props });\n}\nElementRowActions.props = actionProps;\n"],"mappings":";;;;AAwBA,MAAM,cAAc;CAClB,UAAU;CACV,QAAQ;CACR,OAAO;CACP,YAAY;AACd;AAEA,MAAM,gCAAgC,iBACnC,UAA2C;CAC1C,MAAM,UAAU,WAA+B,IAAI;CACnD,MAAM,cAAc,YAAgC;EAClD,QAAQ,QAAQ;CAClB;CACA,MAAM,wBAAwB;EAC5B,IAAI,QAAQ,OAAO,aACjB,QAAQ,MAAM,MAAM,EAAE,eAAe,KAAK,CAAC;CAC/C;CACA,MAAM,SAAS,WACb,WACE;EACE,KAAK,OAAO;EACZ,OAAO,CAAC,MAAM,WAAW,cAAc,MAAM,WAAW,SAAS;EACjE,UAAU,UAAsB,MAAM,gBAAgB;CACxD,GACA,OAAO,KACT;CACF,MAAM,YAAY,WAChB,EACE,gBACA;EACE,GAAG,WAAW,EAAE,SAAS,gBAAgB,GAAG,MAAM,MAAM,CAAC;EACzD,MAAM,KAAA;CACR,GACA,EAAE,eAAe,OAAO,MAAM,CAChC;CACF,aAAa;EACX,IAAI,MAAM,WAAW,UAAU,MAAM,SAAS,WAAW,GACvD,OAAO,EACL,UACA,MACA,MAAM,SAAS,KAAK,WAClB,cAAc,MAAM,MAAM,GAAG,OAAO,KAAK,CAC3C,CACF;EACF,OAAO,EACL,YACA;GACE,SAAS;GACT,YAAY;GACZ,wBAAwB;GACxB,OAAO,MAAM,WAAW;GACxB,gBAAgB,UAAwB,MAAM,gBAAgB;EAChE,GACA;GACE,eACE,cACE;IACE,KAAK;IACL,wBAAwB;IACxB,OAAO,MAAM,WAAW;IACxB,cAAc,MAAM;IACpB,UAAU,UAAsB,MAAM,gBAAgB;GACxD,GACA,GACF;GACF,gBACE,EACE,gBACA,CAAC,GACD,EAAE,eAAe,MAAM,SAAS,IAAI,QAAQ,EAAE,CAChD;EACJ,CACF;CACF;AACF,GACA;CAAE,MAAM;CAAiC,OAAO;AAAY,CAC9D;;AAGA,SAAgB,kBACd,OACO;CACP,OAAO,YAAY,+BAA+B,EAAE,GAAG,MAAM,CAAC;AAChE;AACA,kBAAkB,QAAQ"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ElementRowActions-B_rR7qSj.cjs","names":["defineComponent","shallowRef","mergeProps","h","ElDropdownItem","Fragment","elementButton","ElDropdown","ElDropdownMenu","createVNode"],"sources":["../src/ElementRowActions.ts"],"sourcesContent":["import type { RowActionControl } from \"@adapttable/vue\";\nimport type {\n DataTableClassNames,\n RowActionsLayout,\n} from \"@adapttable/vue/adapter\";\nimport { ElDropdown, ElDropdownItem, ElDropdownMenu } from \"element-plus\";\nimport {\n createVNode,\n defineComponent,\n Fragment,\n h,\n mergeProps,\n shallowRef,\n type VNode,\n} from \"vue\";\n\nimport { elementButton } from \"./controls/button\";\n\ninterface ElementRowActionsProps<TRow> {\n readonly controls: readonly RowActionControl<TRow>[];\n readonly layout?: RowActionsLayout;\n readonly label: string;\n readonly classNames: DataTableClassNames;\n}\nconst actionProps = {\n controls: null,\n layout: null,\n label: null,\n classNames: null,\n} satisfies Record<keyof ElementRowActionsProps<unknown>, unknown>;\n\nconst ElementRowActionsPresentation = defineComponent(\n (props: ElementRowActionsProps<unknown>) => {\n const trigger = shallowRef<HTMLElement | null>(null);\n const setTrigger = (element: HTMLElement | null) => {\n trigger.value = element;\n };\n const returnToTrigger = () => {\n if (trigger.value?.isConnected)\n trigger.value.focus({ preventScroll: true });\n };\n const attrs = (action: RowActionControl<unknown>) =>\n mergeProps(\n {\n key: action.key,\n class: [props.classNames.actionButton, props.classNames.rowAction],\n onClick: (event: MouseEvent) => event.stopPropagation(),\n },\n action.attrs\n );\n const menuItem = (action: RowActionControl<unknown>) =>\n h(\n ElDropdownItem,\n {\n ...mergeProps({ onClick: returnToTrigger }, attrs(action)),\n type: undefined,\n },\n { default: () => action.label }\n );\n return () => {\n if (props.layout !== \"menu\" || props.controls.length === 0)\n return h(\n Fragment,\n null,\n props.controls.map((action) =>\n elementButton(attrs(action), action.label)\n )\n );\n return h(\n ElDropdown,\n {\n trigger: \"click\",\n teleported: false,\n \"data-adapttable-part\": \"row-actions-menu\",\n class: props.classNames.rowActionsMenu,\n onPointerdown: (event: PointerEvent) => event.stopPropagation(),\n },\n {\n default: () =>\n elementButton(\n {\n ref: setTrigger,\n \"data-adapttable-part\": \"row-actions-trigger\",\n class: props.classNames.rowActionsTrigger,\n \"aria-label\": props.label,\n onClick: (event: MouseEvent) => event.stopPropagation(),\n },\n \"⋮\"\n ),\n dropdown: () =>\n h(\n ElDropdownMenu,\n {},\n { default: () => props.controls.map(menuItem) }\n ),\n }\n );\n };\n },\n { name: \"ElementRowActionsPresentation\", props: actionProps }\n);\n\n/** A menu returns focus to its native trigger before an action opens another surface. */\nexport function ElementRowActions<TRow>(\n props: ElementRowActionsProps<TRow>\n): VNode {\n return createVNode(ElementRowActionsPresentation, { ...props });\n}\nElementRowActions.props = actionProps;\n"],"mappings":";;;;AAwBA,MAAM,cAAc;CAClB,UAAU;CACV,QAAQ;CACR,OAAO;CACP,YAAY;AACd;AAEA,MAAM,iCAAA,GAAgCA,IAA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F,GACA;CAAE,MAAM;CAAiC,OAAO;AAAY,CAC9D;;AAGA,SAAgB,kBACd,OACO;CACP,QAAA,GAAOC,IAAAA,YAAAA,CAAY,+BAA+B,EAAE,GAAG,MAAM,CAAC;AAChE;AACA,kBAAkB,QAAQ"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ElementSelect-BtmVMA7B.js","names":["$attrs"],"sources":["../src/controls/ElementSelect.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ElOption, ElSelect, type SelectInstance } from \"element-plus\";\nimport { nextTick, shallowRef } from \"vue\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(\n defineProps<{\n value: string;\n options: readonly { value: string; label: string }[];\n disabled?: boolean;\n teleported?: boolean;\n appendTo?: HTMLElement | string;\n }>(),\n { disabled: false, teleported: false, appendTo: undefined }\n);\nconst emit = defineEmits<{ change: [value: string] }>();\nconst control = shallowRef<SelectInstance>();\nfunction change(value: unknown): void {\n if (typeof value === \"string\") emit(\"change\", value);\n void nextTick(() => control.value?.$forceUpdate());\n}\n// A parent ref resolves before this template ref does, so a focus requested\n// while the select mounts waits a tick for it.\nfunction focus(): void {\n if (control.value) control.value.focus();\n else void nextTick(() => control.value?.focus());\n}\ndefineExpose({\n focus,\n blur: () => control.value?.blur(),\n});\n</script>\n\n<template>\n <ElSelect\n ref=\"control\"\n v-bind=\"$attrs\"\n :model-value=\"props.value\"\n :disabled=\"props.disabled\"\n :teleported=\"props.teleported\"\n :append-to=\"props.appendTo\"\n :validate-event=\"false\"\n @update:model-value=\"change\"\n >\n <ElOption\n v-for=\"option in props.options\"\n :key=\"option.value\"\n :value=\"option.value\"\n :label=\"option.label\"\n />\n </ElSelect>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;EAKA,MAAM,QAAQ;EAUd,MAAM,OAAO;EACb,MAAM,UAAU,WAA2B;EAC3C,SAAS,OAAO,OAAsB;GACpC,IAAI,OAAO,UAAU,UAAU,KAAK,UAAU,KAAK;GACnD,eAAoB,QAAQ,OAAO,aAAa,CAAC;EACnD;EAGA,SAAS,QAAc;GACrB,IAAI,QAAQ,OAAO,QAAQ,MAAM,MAAM;QAClC,eAAoB,QAAQ,OAAO,MAAM,CAAC;EACjD;EACA,SAAa;GACX;GACA,YAAY,QAAQ,OAAO,KAAK;EAClC,CAAC;;GAIC,OAAA,UAAA,GAAA,YAgBW,MAAA,QAAA,GAhBX,WAgBW;IAfL,SAAA;IAAJ,KAAI;GACIA,GAAAA,KAAAA,QAAM;IACb,eAAa,MAAM;IACnB,UAAU,MAAM;IAChB,YAAY,MAAM;IAClB,aAAW,MAAM;IACjB,kBAAgB;IAChB,uBAAoB;;IAGnB,SAAA,cAA+B,EADjC,UAAA,IAAA,GAAA,mBAKE,UAAA,MAAA,WAJiB,MAAM,UAAhB,WAAM;KADf,OAAA,UAAA,GAAA,YAKE,MAAA,QAAA,GAAA;MAHC,KAAK,OAAO;MACZ,OAAO,OAAO;MACd,OAAO,OAAO"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ElementSelect-CvGw_zHh.cjs","names":["$attrs"],"sources":["../src/controls/ElementSelect.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ElOption, ElSelect, type SelectInstance } from \"element-plus\";\nimport { nextTick, shallowRef } from \"vue\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(\n defineProps<{\n value: string;\n options: readonly { value: string; label: string }[];\n disabled?: boolean;\n teleported?: boolean;\n appendTo?: HTMLElement | string;\n }>(),\n { disabled: false, teleported: false, appendTo: undefined }\n);\nconst emit = defineEmits<{ change: [value: string] }>();\nconst control = shallowRef<SelectInstance>();\nfunction change(value: unknown): void {\n if (typeof value === \"string\") emit(\"change\", value);\n void nextTick(() => control.value?.$forceUpdate());\n}\n// A parent ref resolves before this template ref does, so a focus requested\n// while the select mounts waits a tick for it.\nfunction focus(): void {\n if (control.value) control.value.focus();\n else void nextTick(() => control.value?.focus());\n}\ndefineExpose({\n focus,\n blur: () => control.value?.blur(),\n});\n</script>\n\n<template>\n <ElSelect\n ref=\"control\"\n v-bind=\"$attrs\"\n :model-value=\"props.value\"\n :disabled=\"props.disabled\"\n :teleported=\"props.teleported\"\n :append-to=\"props.appendTo\"\n :validate-event=\"false\"\n @update:model-value=\"change\"\n >\n <ElOption\n v-for=\"option in props.options\"\n :key=\"option.value\"\n :value=\"option.value\"\n :label=\"option.label\"\n />\n </ElSelect>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;EAKA,MAAM,QAAQ;EAUd,MAAM,OAAO;EACb,MAAM,WAAA,GAAU,IAAA,WAAA,CAA2B;EAC3C,SAAS,OAAO,OAAsB;GACpC,IAAI,OAAO,UAAU,UAAU,KAAK,UAAU,KAAK;GACnD,CAAA,GAAK,IAAA,SAAA,OAAe,QAAQ,OAAO,aAAa,CAAC;EACnD;EAGA,SAAS,QAAc;GACrB,IAAI,QAAQ,OAAO,QAAQ,MAAM,MAAM;QAClC,CAAA,GAAK,IAAA,SAAA,OAAe,QAAQ,OAAO,MAAM,CAAC;EACjD;EACA,SAAa;GACX;GACA,YAAY,QAAQ,OAAO,KAAK;EAClC,CAAC;;GAIC,QAAA,GAAA,IAAA,UAAA,CAAA,IAAA,GAAA,IAAA,YAAA,EAAA,GAgBW,IAAA,MAAA,CAAA,aAAA,QAAA,IAAA,GAhBX,IAAA,WAAA,CAgBW;IAfL,SAAA;IAAJ,KAAI;GACIA,GAAAA,KAAAA,QAAM;IACb,eAAa,MAAM;IACnB,UAAU,MAAM;IAChB,YAAY,MAAM;IAClB,aAAW,MAAM;IACjB,kBAAgB;IAChB,uBAAoB;;IAGnB,UAAA,GAAA,IAAA,QAAA,OAA+B,GAAA,GADjC,IAAA,UAAA,CAAA,IAAA,IAAA,GAAA,IAAA,mBAAA,CAKE,IAAA,UAAA,OAAA,GAAA,IAAA,WAAA,CAJiB,MAAM,UAAhB,WAAM;KADf,QAAA,GAAA,IAAA,UAAA,CAAA,IAAA,GAAA,IAAA,YAAA,EAAA,GAKE,IAAA,MAAA,CAAA,aAAA,QAAA,GAAA;MAHC,KAAK,OAAO;MACZ,OAAO,OAAO;MACd,OAAO,OAAO"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"column-menu-BUiQUex0.d.cts","names":[],"sources":["../src/columns/ColumnMenu.ts","../src/column-menu.ts"],"mappings":";;;;iBAmCgB,WAAW,MACzB,OAAO,oBAAoB,OAC3B,SAAS,KAAK,uCAAsB,oBAAA,4BAAA;;;kBAFtB;;;;;mBAAA;mBAAA;;;;;;;;;;;;;;;;;iBCrBA,cAAc"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"column-menu-C0YWdhRz.d.ts","names":[],"sources":["../src/columns/ColumnMenu.ts","../src/column-menu.ts"],"mappings":";;;;iBAmCgB,WAAW,MACzB,OAAO,oBAAoB,OAC3B,SAAS,KAAK,uCAAsB,oBAAA,4BAAA;;;kBAFtB;;;;;mBAAA;mBAAA;;;;;;;;;;;;;;;;;iBCrBA,cAAc"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"column-menu-CNxXJ-ra.cjs","names":["defineComponent","inject","columnMenuContainer","h","ElementSelect","elementButton","h","ElementInput","isElementRef","managedOverlayPanel","ElementColumnMenuPanel","defineComponent","useColumnMenu","h","ColumnMenuChrome","createVNode","extendFeature","bindingColumnMenu","slotRender","COLUMN_MENU","h","COLUMN_HEADER_RENAME","ColumnHeaderRenameChrome"],"sources":["../src/columns/ElementColumnChoice.ts","../src/columns/elementColumnMenuControls.ts","../src/columns/ColumnMenu.ts","../src/column-menu.ts"],"sourcesContent":["import type { ColumnMenuSlots } from \"@adapttable/vue/adapter\";\nimport { defineComponent, h, inject, type PropType } from \"vue\";\n\nimport ElementSelect from \"../controls/ElementSelect.vue\";\nimport { columnMenuContainer } from \"./panelContext\";\n\ntype ChoiceControl = Parameters<ColumnMenuSlots[\"Choice\"]>[0];\nfunction isKeyboardHandler(\n value: unknown\n): value is (event: KeyboardEvent) => void {\n return typeof value === \"function\";\n}\nexport const ElementColumnChoice = defineComponent(\n (props: { readonly control: ChoiceControl }) => {\n const container = inject(columnMenuContainer, undefined);\n const escape = (event: KeyboardEvent) => {\n const target = event.target;\n if (\n event.key === \"Escape\" &&\n !event.defaultPrevented &&\n !event.isComposing &&\n target instanceof Element &&\n target.getAttribute(\"role\") === \"combobox\" &&\n target.getAttribute(\"aria-expanded\") === \"false\"\n ) {\n const handler = props.control.attrs.onKeydown;\n if (isKeyboardHandler(handler)) handler(event);\n }\n };\n return () =>\n h(ElementSelect, {\n ...props.control.attrs,\n value: props.control.value,\n options: props.control.options,\n teleported: container?.value != null,\n appendTo: container?.value ?? undefined,\n onChange: props.control.onChange,\n onKeydownCapture: escape,\n });\n },\n {\n name: \"ElementColumnChoice\",\n props: {\n control: { type: Object as PropType<ChoiceControl> },\n },\n }\n);\n","import {\n type ColumnMenuButtonProps,\n type ColumnMenuSlots,\n managedOverlayPanel,\n} from \"@adapttable/vue/adapter\";\nimport { h } from \"vue\";\n\nimport { elementButton } from \"../controls/button\";\nimport ElementInput from \"../controls/ElementInput.vue\";\nimport { isElementRef } from \"../controls/ref\";\nimport { ElementColumnChoice } from \"./ElementColumnChoice\";\nimport { ElementColumnMenuPanel } from \"./ElementColumnMenuPanel\";\n\nfunction button(control: ColumnMenuButtonProps) {\n const icons = {\n grip: \"⠿\",\n visible: \"◉\",\n hidden: \"○\",\n pin: \"⌖\",\n more: \"⋯\",\n rename: \"✎\",\n };\n return elementButton(\n { \"aria-label\": control.label, ...control.attrs },\n control.icon\n ? h(\"span\", { \"aria-hidden\": \"true\" }, icons[control.icon])\n : control.label\n );\n}\nexport const elementColumnMenuSlots: ColumnMenuSlots = {\n Trigger: button,\n Button: button,\n Input: ({ attrs, value, onChange }) => {\n const nativeAttrs = Object.fromEntries(\n Object.entries(attrs).filter(([key]) => key !== \"ref\" && key !== \"type\")\n );\n return h(ElementInput, {\n ...nativeAttrs,\n value,\n type: attrs.type === \"search\" ? \"search\" : \"text\",\n inputRef: isElementRef(attrs.ref) ? attrs.ref : undefined,\n onChange,\n });\n },\n Choice: (control) => h(ElementColumnChoice, { control }),\n Panel: managedOverlayPanel((control) =>\n h(ElementColumnMenuPanel, { control })\n ),\n};\n","import {\n ColumnMenuChrome,\n type ColumnMenuSlotProps,\n useColumnMenu,\n} from \"@adapttable/vue/adapter\";\nimport { createVNode, defineComponent, h, type SetupContext } from \"vue\";\n\nimport { elementColumnMenuSlots } from \"./elementColumnMenuControls\";\n\nconst menuProps = {\n allColumns: null,\n layout: null,\n labels: null,\n hasRowActions: Boolean,\n hasRowReorder: Boolean,\n onAutoSize: null,\n onAutoSizeColumn: null,\n onSortColumn: null,\n onFilterColumn: null,\n onRenameColumn: null,\n sortBy: null,\n sortDir: null,\n dir: null,\n groupingPanel: null,\n featureHost: null,\n classNames: null,\n container: null,\n} satisfies Record<keyof ColumnMenuSlotProps<unknown>, unknown>;\nconst ElementColumnMenuPresentation = defineComponent(\n (props: ColumnMenuSlotProps<unknown>) => {\n const model = useColumnMenu(() => props);\n return () => h(ColumnMenuChrome, { model, slots: elementColumnMenuSlots });\n },\n { name: \"ElementColumnMenuPresentation\", props: menuProps }\n);\nexport function ColumnMenu<TRow>(\n props: ColumnMenuSlotProps<TRow>,\n context: Pick<SetupContext, \"attrs\">\n) {\n return createVNode(ElementColumnMenuPresentation, {\n ...context.attrs,\n ...props,\n });\n}\nColumnMenu.props = menuProps;\n","import type { StaticTableFeature } from \"@adapttable/vue\";\nimport {\n COLUMN_HEADER_RENAME,\n COLUMN_MENU,\n ColumnHeaderRenameChrome,\n extendFeature,\n slotRender,\n} from \"@adapttable/vue/adapter\";\nimport { columnMenu as bindingColumnMenu } from \"@adapttable/vue/features\";\nimport { h } from \"vue\";\n\nimport { ColumnMenu } from \"./columns/ColumnMenu\";\nimport { elementColumnMenuSlots } from \"./columns/elementColumnMenuControls\";\n\nexport function columnMenu(): StaticTableFeature {\n return extendFeature(bindingColumnMenu(), [\n slotRender(COLUMN_MENU, (props) => h(ColumnMenu<never>, { ...props })),\n slotRender(COLUMN_HEADER_RENAME, (props) =>\n h(ColumnHeaderRenameChrome, { ...props, slots: elementColumnMenuSlots })\n ),\n ]);\n}\nexport { ColumnMenu } from \"./columns/ColumnMenu\";\nexport type { ColumnMenuSlotProps } from \"@adapttable/vue/adapter\";\n"],"mappings":";;;;;;;;AAOA,SAAS,kBACP,OACyC;CACzC,OAAO,OAAO,UAAU;AAC1B;AACA,MAAa,uBAAA,GAAsBA,IAAAA,gBAAAA,EAChC,UAA+C;CAC9C,MAAM,aAAA,GAAYC,IAAAA,OAAAA,CAAOC,+BAAAA,qBAAqB,KAAA,CAAS;CACvD,MAAM,UAAU,UAAyB;EACvC,MAAM,SAAS,MAAM;EACrB,IACE,MAAM,QAAQ,YACd,CAAC,MAAM,oBACP,CAAC,MAAM,eACP,kBAAkB,WAClB,OAAO,aAAa,MAAM,MAAM,cAChC,OAAO,aAAa,eAAe,MAAM,SACzC;GACA,MAAM,UAAU,MAAM,QAAQ,MAAM;GACpC,IAAI,kBAAkB,OAAO,GAAG,QAAQ,KAAK;EAC/C;CACF;CACA,cAAA,GACEC,IAAAA,EAAAA,CAAEC,sBAAAA,WAAe;EACf,GAAG,MAAM,QAAQ;EACjB,OAAO,MAAM,QAAQ;EACrB,SAAS,MAAM,QAAQ;EACvB,YAAY,WAAW,SAAS;EAChC,UAAU,WAAW,SAAS,KAAA;EAC9B,UAAU,MAAM,QAAQ;EACxB,kBAAkB;CACpB,CAAC;AACL,GACA;CACE,MAAM;CACN,OAAO,EACL,SAAS,EAAE,MAAM,OAAkC,EACrD;AACF,CACF;;;ACjCA,SAAS,OAAO,SAAgC;CAC9C,MAAM,QAAQ;EACZ,MAAM;EACN,SAAS;EACT,QAAQ;EACR,KAAK;EACL,MAAM;EACN,QAAQ;CACV;CACA,OAAOC,eAAAA,cACL;EAAE,cAAc,QAAQ;EAAO,GAAG,QAAQ;CAAM,GAChD,QAAQ,QAAA,GACJC,IAAAA,EAAAA,CAAE,QAAQ,E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