@adapttable/naive-ui 0.1.3 → 0.2.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 (93) hide show
  1. package/README.md +14 -0
  2. package/dist/assistant-Cv8df2ti.js +355 -0
  3. package/dist/assistant-Cv8df2ti.js.map +1 -0
  4. package/dist/assistant-D6mc-LJl.cjs +378 -0
  5. package/dist/assistant-D6mc-LJl.cjs.map +1 -0
  6. package/dist/assistant.cjs +5 -358
  7. package/dist/assistant.js +1 -354
  8. package/dist/column-menu-DdWVP1hz.d.cts +23 -0
  9. package/dist/column-menu-DdWVP1hz.d.cts.map +1 -0
  10. package/dist/column-menu-DdWVP1hz.d.ts +23 -0
  11. package/dist/column-menu-DdWVP1hz.d.ts.map +1 -0
  12. package/dist/column-menu.d.cts +2 -23
  13. package/dist/column-menu.d.ts +2 -23
  14. package/dist/command-palette-vIegnqVo.js +112 -0
  15. package/dist/command-palette-vIegnqVo.js.map +1 -0
  16. package/dist/command-palette-ztI3qI2V.cjs +117 -0
  17. package/dist/command-palette-ztI3qI2V.cjs.map +1 -0
  18. package/dist/command-palette.cjs +2 -112
  19. package/dist/command-palette.js +1 -111
  20. package/dist/context-menu-BbhrjTZr.cjs +145 -0
  21. package/dist/context-menu-BbhrjTZr.cjs.map +1 -0
  22. package/dist/context-menu-DjYIQXhY.js +140 -0
  23. package/dist/context-menu-DjYIQXhY.js.map +1 -0
  24. package/dist/context-menu.cjs +2 -140
  25. package/dist/context-menu.js +1 -139
  26. package/dist/features.cjs +217 -0
  27. package/dist/features.d.cts +40 -0
  28. package/dist/features.d.ts +40 -0
  29. package/dist/features.js +36 -0
  30. package/dist/filters-BJ48GzqJ.d.ts +66 -0
  31. package/dist/filters-BJ48GzqJ.d.ts.map +1 -0
  32. package/dist/filters-C6DvAZ_T.d.cts +66 -0
  33. package/dist/filters-C6DvAZ_T.d.cts.map +1 -0
  34. package/dist/filters.d.cts +2 -66
  35. package/dist/filters.d.ts +2 -66
  36. package/dist/grouping-panel-BPaPG49S.cjs +151 -0
  37. package/dist/grouping-panel-BPaPG49S.cjs.map +1 -0
  38. package/dist/grouping-panel-CYUPSa0u.js +146 -0
  39. package/dist/grouping-panel-CYUPSa0u.js.map +1 -0
  40. package/dist/grouping-panel.cjs +3 -146
  41. package/dist/grouping-panel.js +2 -145
  42. package/dist/header-filters-CQg6clum.d.cts +52 -0
  43. package/dist/header-filters-CQg6clum.d.cts.map +1 -0
  44. package/dist/header-filters-CQg6clum.d.ts +52 -0
  45. package/dist/header-filters-CQg6clum.d.ts.map +1 -0
  46. package/dist/header-filters.d.cts +2 -52
  47. package/dist/header-filters.d.ts +2 -52
  48. package/dist/index.cjs +1 -1
  49. package/dist/index.js +1 -1
  50. package/dist/{mobile-Bc3-31-b.cjs → mobile-C2JUs6b_.cjs} +3 -2
  51. package/dist/mobile-C2JUs6b_.cjs.map +1 -0
  52. package/dist/{mobile-Dlwq8dB7.js → mobile-CC3NeIRK.js} +4 -3
  53. package/dist/mobile-CC3NeIRK.js.map +1 -0
  54. package/dist/preset.cjs +5 -5
  55. package/dist/preset.js +5 -5
  56. package/dist/renderers.cjs +1 -1
  57. package/dist/renderers.d.cts.map +1 -1
  58. package/dist/renderers.d.ts.map +1 -1
  59. package/dist/renderers.js +1 -1
  60. package/dist/row-reorder-BNYYEL8w.js +186 -0
  61. package/dist/row-reorder-BNYYEL8w.js.map +1 -0
  62. package/dist/row-reorder-BRySq2FF.cjs +191 -0
  63. package/dist/row-reorder-BRySq2FF.cjs.map +1 -0
  64. package/dist/row-reorder.cjs +2 -185
  65. package/dist/row-reorder.js +1 -185
  66. package/dist/side-panel-Bf4zBlYZ.cjs +64 -0
  67. package/dist/side-panel-Bf4zBlYZ.cjs.map +1 -0
  68. package/dist/side-panel-CLTgXUnb.js +59 -0
  69. package/dist/side-panel-CLTgXUnb.js.map +1 -0
  70. package/dist/side-panel.cjs +2 -59
  71. package/dist/side-panel.js +1 -58
  72. package/dist/styles.css +39 -39
  73. package/package.json +14 -3
  74. package/dist/assistant.cjs.map +0 -1
  75. package/dist/assistant.js.map +0 -1
  76. package/dist/column-menu.d.cts.map +0 -1
  77. package/dist/column-menu.d.ts.map +0 -1
  78. package/dist/command-palette.cjs.map +0 -1
  79. package/dist/command-palette.js.map +0 -1
  80. package/dist/context-menu.cjs.map +0 -1
  81. package/dist/context-menu.js.map +0 -1
  82. package/dist/filters.d.cts.map +0 -1
  83. package/dist/filters.d.ts.map +0 -1
  84. package/dist/grouping-panel.cjs.map +0 -1
  85. package/dist/grouping-panel.js.map +0 -1
  86. package/dist/header-filters.d.cts.map +0 -1
  87. package/dist/header-filters.d.ts.map +0 -1
  88. package/dist/mobile-Bc3-31-b.cjs.map +0 -1
  89. package/dist/mobile-Dlwq8dB7.js.map +0 -1
  90. package/dist/row-reorder.cjs.map +0 -1
  91. package/dist/row-reorder.js.map +0 -1
  92. package/dist/side-panel.cjs.map +0 -1
  93. package/dist/side-panel.js.map +0 -1
package/README.md CHANGED
@@ -13,6 +13,20 @@ import { DataTable } from "@adapttable/naive-ui";
13
13
  import "@adapttable/naive-ui/styles.css";
14
14
  ```
15
15
 
16
+ ## Combined feature imports
17
+
18
+ Use `@adapttable/naive-ui/features` to compose the kit's native factories from
19
+ one optional entry. Individual feature subpaths remain available; the base
20
+ `DataTable` import does not load this barrel.
21
+
22
+ ```ts
23
+ import { editing, filters } from "@adapttable/naive-ui/features";
24
+ ```
25
+
26
+ The factories retain their individual signatures, native controls and
27
+ host-owned callbacks. See the [Vue feature guide](https://adapttable.orwamahmoud.com/vue/features/)
28
+ for composition and provider requirements.
29
+
16
30
  ## Features
17
31
 
18
32
  - Feature composition with 41 canonical factories and focused, opt-in imports.
@@ -0,0 +1,355 @@
1
+ import { r as htmlRoot, t as naiveButton } from "./button-BxXdDW7A.js";
2
+ import { t as naiveInput } from "./input-DZI_oY9v.js";
3
+ import { t as naiveSelect } from "./select-Bgc5ttop.js";
4
+ import { AgentApprovalChrome, TableAssistantChrome, createAdapterAgentApprovalFeature, createAdapterTableAssistantFeature, createMenuNavigation, useScopeActivity } from "@adapttable/vue/adapter";
5
+ import { defineComponent, h, nextTick, shallowRef, watch } from "vue";
6
+ import { NCard, NDrawer, NDrawerContent, NPopover, NTag, useThemeVars } from "naive-ui";
7
+ //#region src/assistant/ExamplesMenu.ts
8
+ /** One shortcut as a menu item: its icon, title and optional description. */
9
+ function shortcut(item, choose) {
10
+ return naiveButton({
11
+ key: item.id,
12
+ role: "menuitem",
13
+ tabindex: -1,
14
+ "data-adapttable-part": item.part,
15
+ class: "adapttable-naive-assistant-shortcut",
16
+ onClick: () => choose(item.id)
17
+ }, [item.icon, h("span", [h("strong", item.title), item.description ? h("small", item.description) : null])], { text: true });
18
+ }
19
+ /** The open menu: a Naive UI card holding one menu item per shortcut. */
20
+ function menuCard(props, card, keydown, choose) {
21
+ const items = props.items.map((item) => shortcut(item, choose));
22
+ return h(NCard, {
23
+ ref: card,
24
+ size: "small",
25
+ role: "menu",
26
+ "aria-label": props.label,
27
+ class: "adapttable-naive-assistant-menu",
28
+ contentStyle: {
29
+ display: "flex",
30
+ flexDirection: "column",
31
+ gap: "4px"
32
+ },
33
+ style: {
34
+ maxHeight: props.maxHeight,
35
+ overflowY: "auto"
36
+ },
37
+ onKeydown: keydown
38
+ }, { default: () => items });
39
+ }
40
+ /**
41
+ * The assistant's shortcuts in a Naive UI popover menu under its trigger.
42
+ * The shared menu navigation moves focus; Escape and Tab close the menu and
43
+ * Escape returns focus to the trigger.
44
+ */
45
+ const NaiveExamplesMenu = defineComponent((props) => {
46
+ const active = useScopeActivity();
47
+ const open = shallowRef(false);
48
+ const trigger = shallowRef(null);
49
+ const card = shallowRef(null);
50
+ const navigation = createMenuNavigation();
51
+ let generation = 0;
52
+ watch([
53
+ active,
54
+ () => props.disabled,
55
+ () => props.items,
56
+ () => props.onSelect
57
+ ], () => {
58
+ generation++;
59
+ open.value = false;
60
+ }, { flush: "sync" });
61
+ watch(open, (expanded) => {
62
+ navigation.reset();
63
+ if (!expanded) return;
64
+ nextTick(() => {
65
+ (card.value ? htmlRoot(card.value) : null)?.querySelector("[role=\"menuitem\"]")?.focus({ preventScroll: true });
66
+ });
67
+ });
68
+ const close = (restore) => {
69
+ open.value = false;
70
+ if (restore) trigger.value?.focus({ preventScroll: true });
71
+ };
72
+ const keydown = (event) => {
73
+ const panel = event.currentTarget;
74
+ if (!(panel instanceof HTMLElement)) return;
75
+ const items = [...panel.querySelectorAll("[role=\"menuitem\"]")];
76
+ const focusTargets = items;
77
+ const action = navigation.key(event, items.map((item) => ({
78
+ label: item.textContent ?? "",
79
+ disabled: item.disabled
80
+ })), focusTargets.indexOf(panel.ownerDocument.activeElement));
81
+ if (!action) return;
82
+ if (action.kind !== "close" || action.key !== "Tab") event.preventDefault();
83
+ event.stopPropagation();
84
+ if (action.kind === "close") close(action.key === "Escape");
85
+ else items[action.index]?.focus({ preventScroll: true });
86
+ };
87
+ return () => {
88
+ if (!active.value) return null;
89
+ const ticket = generation;
90
+ const choose = (id) => {
91
+ if (!active.value || props.disabled || ticket !== generation || !props.items.some((item) => item.id === id)) return;
92
+ close(false);
93
+ props.onSelect(id);
94
+ };
95
+ return h(NPopover, {
96
+ trigger: "manual",
97
+ show: open.value,
98
+ placement: "bottom-start",
99
+ showArrow: false,
100
+ raw: true,
101
+ onClickoutside: (event) => {
102
+ if (event.target instanceof Node && trigger.value?.contains(event.target)) return;
103
+ close(false);
104
+ }
105
+ }, {
106
+ trigger: () => naiveButton({
107
+ ref: (element) => {
108
+ trigger.value = element;
109
+ },
110
+ disabled: props.disabled,
111
+ "aria-label": props.label,
112
+ "aria-haspopup": "menu",
113
+ "aria-expanded": open.value,
114
+ title: props.label,
115
+ class: props.className,
116
+ "data-adapttable-part": props.part,
117
+ onClick: () => {
118
+ if (active.value && !props.disabled) open.value = !open.value;
119
+ }
120
+ }, [props.icon ?? props.label]),
121
+ default: () => menuCard(props, card, keydown, choose)
122
+ });
123
+ };
124
+ }, {
125
+ name: "NaiveExamplesMenu",
126
+ props: {
127
+ label: { type: String },
128
+ part: { type: String },
129
+ className: { type: String },
130
+ icon: {
131
+ type: [
132
+ String,
133
+ Number,
134
+ Boolean,
135
+ Array,
136
+ Object
137
+ ],
138
+ default: void 0
139
+ },
140
+ disabled: {
141
+ type: Boolean,
142
+ default: void 0
143
+ },
144
+ items: { type: Array },
145
+ onSelect: { type: Function },
146
+ maxHeight: { type: String }
147
+ }
148
+ });
149
+ //#endregion
150
+ //#region src/assistant/Sheet.ts
151
+ /**
152
+ * Chrome chooses initial and return focus; NDrawer contains focus and owns
153
+ * the portal. Escape and mask dismissal become one close request to the
154
+ * host, and the drawer stays open until the host closes it.
155
+ */
156
+ const NaiveAssistantSheet = defineComponent((props) => {
157
+ const active = useScopeActivity();
158
+ const requestClose = () => {
159
+ if (active.value && props.open) props.onClose();
160
+ };
161
+ const keydown = (event) => {
162
+ if (event.key !== "Escape" || event.defaultPrevented || event.isComposing) return;
163
+ event.preventDefault();
164
+ event.stopPropagation();
165
+ requestClose();
166
+ };
167
+ return () => {
168
+ if (!active.value) return null;
169
+ return h(NDrawer, {
170
+ show: props.open,
171
+ placement: props.dir === "rtl" ? "left" : "right",
172
+ width: "min(28rem, 100vw)",
173
+ autoFocus: false,
174
+ closeOnEsc: false,
175
+ maskClosable: false,
176
+ role: "dialog",
177
+ "aria-modal": "true",
178
+ "aria-label": props.label,
179
+ dir: props.dir,
180
+ class: ["adapttable-naive-assistant-sheet", props.className],
181
+ "data-adapttable-part": props.part,
182
+ onKeydown: keydown,
183
+ onMaskClick: requestClose
184
+ }, { default: () => h(NDrawerContent, {}, { default: () => props.children }) });
185
+ };
186
+ }, {
187
+ name: "NaiveAssistantSheet",
188
+ props: {
189
+ label: { type: String },
190
+ part: { type: String },
191
+ className: { type: String },
192
+ dir: { type: String },
193
+ open: {
194
+ type: Boolean,
195
+ default: void 0
196
+ },
197
+ onClose: { type: Function },
198
+ children: {
199
+ type: [
200
+ String,
201
+ Number,
202
+ Boolean,
203
+ Array,
204
+ Object
205
+ ],
206
+ default: void 0
207
+ }
208
+ }
209
+ });
210
+ //#endregion
211
+ //#region src/assistant/controls.ts
212
+ /** Naive UI tag types for the assistant's status tones. */
213
+ const TAG_TYPE = {
214
+ neutral: "default",
215
+ busy: "info",
216
+ warning: "warning",
217
+ danger: "error"
218
+ };
219
+ const surface = (props, classes) => h(NCard, {
220
+ size: "small",
221
+ role: "region",
222
+ "data-adapttable-part": props.part,
223
+ "aria-label": props.label,
224
+ class: classes,
225
+ style: props.style,
226
+ contentStyle: {
227
+ display: "flex",
228
+ flexDirection: "column",
229
+ minHeight: 0
230
+ }
231
+ }, { default: () => props.children });
232
+ const naiveAssistantControls = {
233
+ Button: (props) => naiveButton({
234
+ "data-adapttable-part": props.part,
235
+ "aria-label": props.label,
236
+ "aria-expanded": props.expanded,
237
+ title: props.tooltip,
238
+ class: props.className,
239
+ disabled: props.disabled,
240
+ onClick: props.onClick
241
+ }, [props.icon, props.iconOnly && props.icon ? null : props.children ?? props.label], { size: props.part === "assistant-launcher" ? "medium" : "small" }),
242
+ Composer: (props) => naiveInput({
243
+ type: "textarea",
244
+ value: props.value,
245
+ attrs: {
246
+ "data-adapttable-part": props.part,
247
+ "aria-label": props.label,
248
+ placeholder: props.placeholder,
249
+ class: props.className,
250
+ disabled: props.disabled,
251
+ rows: 1,
252
+ onKeydown: props.onKeyDown
253
+ },
254
+ onChange: props.onChange
255
+ }),
256
+ Badge: (props) => h(NTag, {
257
+ "data-adapttable-part": props.part,
258
+ "data-tone": props.tone,
259
+ type: TAG_TYPE[props.tone],
260
+ size: "small",
261
+ bordered: false,
262
+ class: props.className
263
+ }, { default: () => props.label }),
264
+ Panel: (props) => surface(props, ["adapttable-naive-assistant-panel", props.className]),
265
+ Window: (props) => surface(props, ["adapttable-naive-assistant-window", props.className]),
266
+ Sheet: (props) => h(NaiveAssistantSheet, {
267
+ ...props,
268
+ key: props.part
269
+ }),
270
+ Menu: (props) => h(NaiveExamplesMenu, props),
271
+ LanguageChip: (props) => naiveSelect({
272
+ attrs: {
273
+ "data-adapttable-part": props.part,
274
+ "aria-label": props.label,
275
+ class: props.className,
276
+ disabled: props.disabled
277
+ },
278
+ value: props.value,
279
+ options: props.options,
280
+ onChange: props.onChange
281
+ })
282
+ };
283
+ const naiveApprovalControls = {
284
+ Approve: naiveAssistantControls.Button,
285
+ Reject: naiveAssistantControls.Button,
286
+ Action: naiveAssistantControls.Button,
287
+ List: (props) => h("ul", {
288
+ "data-adapttable-part": props.part,
289
+ "aria-label": props.label,
290
+ class: ["adapttable-naive-approval-list", props.className]
291
+ }, [props.children])
292
+ };
293
+ //#endregion
294
+ //#region src/assistant.ts
295
+ const TableAssistant = defineComponent((props) => {
296
+ const theme = useThemeVars();
297
+ return () => h(TableAssistantChrome, {
298
+ ...props,
299
+ accent: props.accent ?? theme.value.primaryColor,
300
+ slots: naiveAssistantControls
301
+ });
302
+ }, {
303
+ name: "NaiveTableAssistant",
304
+ props: {
305
+ assistant: { type: Object },
306
+ speech: { type: Object },
307
+ open: {
308
+ type: Boolean,
309
+ default: void 0
310
+ },
311
+ onOpenChange: { type: Function },
312
+ presentation: { type: String },
313
+ labels: { type: Object },
314
+ accent: { type: String },
315
+ receipts: {
316
+ type: Boolean,
317
+ default: void 0
318
+ },
319
+ className: { type: String },
320
+ launcher: {
321
+ type: Boolean,
322
+ default: void 0
323
+ },
324
+ onSettings: { type: Function },
325
+ boundary: { type: [String, Object] },
326
+ note: { type: String },
327
+ greeting: { type: String },
328
+ avatars: { type: Object },
329
+ messageAction: { type: Function },
330
+ approval: { type: Object },
331
+ dir: { type: String }
332
+ }
333
+ });
334
+ const AgentApproval = defineComponent((props) => () => h(AgentApprovalChrome, {
335
+ ...props,
336
+ slots: naiveApprovalControls
337
+ }), {
338
+ name: "NaiveAgentApproval",
339
+ props: {
340
+ pending: { type: Object },
341
+ labels: { type: Object },
342
+ className: { type: String },
343
+ buttonClassName: { type: String }
344
+ }
345
+ });
346
+ function tableAssistant() {
347
+ return createAdapterTableAssistantFeature((props) => h(TableAssistant, props));
348
+ }
349
+ function agentApproval() {
350
+ return createAdapterAgentApprovalFeature((props) => h(AgentApproval, props));
351
+ }
352
+ //#endregion
353
+ export { tableAssistant as i, TableAssistant as n, agentApproval as r, AgentApproval as t };
354
+
355
+ //# sourceMappingURL=assistant-Cv8df2ti.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assistant-Cv8df2ti.js","names":[],"sources":["../src/assistant/ExamplesMenu.ts","../src/assistant/Sheet.ts","../src/assistant/controls.ts","../src/assistant.ts"],"sourcesContent":["import {\n createMenuNavigation,\n type TableAssistantMenuProps,\n useScopeActivity,\n} from \"@adapttable/vue/adapter\";\nimport { NCard, NPopover } from \"naive-ui\";\nimport {\n type ComponentPublicInstance,\n defineComponent,\n h,\n nextTick,\n type PropType,\n type ShallowRef,\n shallowRef,\n watch,\n} from \"vue\";\n\nimport { naiveButton } from \"../controls/button\";\nimport { htmlRoot } from \"../controls/elementTarget\";\n\n/** One shortcut as a menu item: its icon, title and optional description. */\nfunction shortcut(\n item: TableAssistantMenuProps[\"items\"][number],\n choose: (id: string) => void\n) {\n return naiveButton(\n {\n key: item.id,\n role: \"menuitem\",\n tabindex: -1,\n \"data-adapttable-part\": item.part,\n class: \"adapttable-naive-assistant-shortcut\",\n onClick: () => choose(item.id),\n },\n [\n item.icon,\n h(\"span\", [\n h(\"strong\", item.title),\n item.description ? h(\"small\", item.description) : null,\n ]),\n ],\n { text: true }\n );\n}\n\n/** The open menu: a Naive UI card holding one menu item per shortcut. */\nfunction menuCard(\n props: TableAssistantMenuProps,\n card: ShallowRef<ComponentPublicInstance | null>,\n keydown: (event: KeyboardEvent) => void,\n choose: (id: string) => void\n) {\n const items = props.items.map((item) => shortcut(item, choose));\n return h(\n NCard,\n {\n ref: card,\n size: \"small\",\n role: \"menu\",\n \"aria-label\": props.label,\n class: \"adapttable-naive-assistant-menu\",\n contentStyle: { display: \"flex\", flexDirection: \"column\", gap: \"4px\" },\n style: { maxHeight: props.maxHeight, overflowY: \"auto\" },\n onKeydown: keydown,\n },\n { default: () => items }\n );\n}\n\n/**\n * The assistant's shortcuts in a Naive UI popover menu under its trigger.\n * The shared menu navigation moves focus; Escape and Tab close the menu and\n * Escape returns focus to the trigger.\n */\nexport const NaiveExamplesMenu = defineComponent(\n (props: TableAssistantMenuProps) => {\n const active = useScopeActivity();\n const open = shallowRef(false);\n const trigger = shallowRef<HTMLElement | null>(null);\n const card = shallowRef<ComponentPublicInstance | null>(null);\n const navigation = createMenuNavigation();\n let generation = 0;\n watch(\n [active, () => props.disabled, () => props.items, () => props.onSelect],\n () => {\n generation++;\n open.value = false;\n },\n { flush: \"sync\" }\n );\n watch(open, (expanded) => {\n navigation.reset();\n if (!expanded) return;\n void nextTick(() => {\n const panel = card.value ? htmlRoot(card.value) : null;\n panel\n ?.querySelector<HTMLElement>('[role=\"menuitem\"]')\n ?.focus({ preventScroll: true });\n });\n });\n const close = (restore: boolean) => {\n open.value = false;\n if (restore) trigger.value?.focus({ preventScroll: true });\n };\n const keydown = (event: KeyboardEvent) => {\n const panel = event.currentTarget;\n if (!(panel instanceof HTMLElement)) return;\n const items = [\n ...panel.querySelectorAll<HTMLButtonElement>('[role=\"menuitem\"]'),\n ];\n const focusTargets: readonly (EventTarget | null | undefined)[] = items;\n const action = navigation.key(\n event,\n items.map((item) => ({\n label: item.textContent ?? \"\",\n disabled: item.disabled,\n })),\n focusTargets.indexOf(panel.ownerDocument.activeElement)\n );\n if (!action) return;\n if (action.kind !== \"close\" || action.key !== \"Tab\")\n event.preventDefault();\n event.stopPropagation();\n if (action.kind === \"close\") close(action.key === \"Escape\");\n else items[action.index]?.focus({ preventScroll: true });\n };\n return () => {\n if (!active.value) return null;\n const ticket = generation;\n const choose = (id: string) => {\n if (\n !active.value ||\n props.disabled ||\n ticket !== generation ||\n !props.items.some((item) => item.id === id)\n )\n return;\n close(false);\n props.onSelect(id);\n };\n return h(\n NPopover,\n {\n trigger: \"manual\",\n show: open.value,\n placement: \"bottom-start\",\n showArrow: false,\n raw: true,\n onClickoutside: (event: MouseEvent) => {\n if (\n event.target instanceof Node &&\n trigger.value?.contains(event.target)\n )\n return;\n close(false);\n },\n },\n {\n trigger: () =>\n naiveButton(\n {\n ref: (element: HTMLElement | null) => {\n trigger.value = element;\n },\n disabled: props.disabled,\n \"aria-label\": props.label,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": open.value,\n title: props.label,\n class: props.className,\n \"data-adapttable-part\": props.part,\n onClick: () => {\n if (active.value && !props.disabled) open.value = !open.value;\n },\n },\n [props.icon ?? props.label]\n ),\n default: () => menuCard(props, card, keydown, choose),\n }\n );\n };\n },\n {\n name: \"NaiveExamplesMenu\",\n props: {\n label: { type: String as PropType<TableAssistantMenuProps[\"label\"]> },\n part: { type: String as PropType<TableAssistantMenuProps[\"part\"]> },\n className: {\n type: String as PropType<TableAssistantMenuProps[\"className\"]>,\n },\n icon: {\n type: [String, Number, Boolean, Array, Object] as PropType<\n TableAssistantMenuProps[\"icon\"]\n >,\n default: undefined,\n },\n disabled: {\n type: Boolean as PropType<TableAssistantMenuProps[\"disabled\"]>,\n default: undefined,\n },\n items: { type: Array as PropType<TableAssistantMenuProps[\"items\"]> },\n onSelect: {\n type: Function as PropType<TableAssistantMenuProps[\"onSelect\"]>,\n },\n maxHeight: {\n type: String as PropType<TableAssistantMenuProps[\"maxHeight\"]>,\n },\n },\n }\n);\n","import {\n type TableAssistantSheetProps,\n useScopeActivity,\n} from \"@adapttable/vue/adapter\";\nimport { NDrawer, NDrawerContent } from \"naive-ui\";\nimport { defineComponent, h, type PropType } from \"vue\";\n\n/**\n * Chrome chooses initial and return focus; NDrawer contains focus and owns\n * the portal. Escape and mask dismissal become one close request to the\n * host, and the drawer stays open until the host closes it.\n */\nexport const NaiveAssistantSheet = defineComponent(\n (props: TableAssistantSheetProps) => {\n const active = useScopeActivity();\n const requestClose = () => {\n if (active.value && props.open) props.onClose();\n };\n const keydown = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\" || event.defaultPrevented || event.isComposing)\n return;\n event.preventDefault();\n event.stopPropagation();\n requestClose();\n };\n return () => {\n if (!active.value) return null;\n return h(\n NDrawer,\n {\n show: props.open,\n placement: props.dir === \"rtl\" ? \"left\" : \"right\",\n width: \"min(28rem, 100vw)\",\n autoFocus: false,\n closeOnEsc: false,\n maskClosable: false,\n role: \"dialog\",\n \"aria-modal\": \"true\",\n \"aria-label\": props.label,\n dir: props.dir,\n class: [\"adapttable-naive-assistant-sheet\", props.className],\n \"data-adapttable-part\": props.part,\n onKeydown: keydown,\n onMaskClick: requestClose,\n },\n {\n default: () =>\n h(NDrawerContent, {}, { default: () => props.children }),\n }\n );\n };\n },\n {\n name: \"NaiveAssistantSheet\",\n props: {\n label: { type: String as PropType<TableAssistantSheetProps[\"label\"]> },\n part: { type: String as PropType<TableAssistantSheetProps[\"part\"]> },\n className: {\n type: String as PropType<TableAssistantSheetProps[\"className\"]>,\n },\n dir: { type: String as PropType<TableAssistantSheetProps[\"dir\"]> },\n open: {\n type: Boolean as PropType<TableAssistantSheetProps[\"open\"]>,\n default: undefined,\n },\n onClose: {\n type: Function as PropType<TableAssistantSheetProps[\"onClose\"]>,\n },\n children: {\n type: [String, Number, Boolean, Array, Object] as PropType<\n TableAssistantSheetProps[\"children\"]\n >,\n default: undefined,\n },\n },\n }\n);\n","import type {\n ApprovalReviewSlots,\n TableAssistantSlots,\n} from \"@adapttable/vue/adapter\";\nimport { NCard, NTag } from \"naive-ui\";\nimport { h, type StyleValue, type VNodeChild } from \"vue\";\n\nimport { naiveButton } from \"../controls/button\";\nimport { naiveInput } from \"../controls/input\";\nimport { naiveSelect } from \"../controls/select\";\nimport { NaiveExamplesMenu } from \"./ExamplesMenu\";\nimport { NaiveAssistantSheet } from \"./Sheet\";\n\n/** Naive UI tag types for the assistant's status tones. */\nconst TAG_TYPE = {\n neutral: \"default\",\n busy: \"info\",\n warning: \"warning\",\n danger: \"error\",\n} as const;\n\nconst surface = (\n props: {\n readonly part: string;\n readonly label: string;\n readonly children: VNodeChild;\n readonly style?: StyleValue;\n },\n classes: readonly (string | undefined)[]\n) =>\n h(\n NCard,\n {\n size: \"small\",\n role: \"region\",\n \"data-adapttable-part\": props.part,\n \"aria-label\": props.label,\n class: classes,\n style: props.style,\n contentStyle: { display: \"flex\", flexDirection: \"column\", minHeight: 0 },\n },\n { default: () => props.children }\n );\n\nexport const naiveAssistantControls: TableAssistantSlots = {\n Button: (props) =>\n naiveButton(\n {\n \"data-adapttable-part\": props.part,\n \"aria-label\": props.label,\n \"aria-expanded\": props.expanded,\n title: props.tooltip,\n class: props.className,\n disabled: props.disabled,\n onClick: props.onClick,\n },\n [\n props.icon,\n props.iconOnly && props.icon ? null : (props.children ?? props.label),\n ],\n { size: props.part === \"assistant-launcher\" ? \"medium\" : \"small\" }\n ),\n Composer: (props) =>\n naiveInput({\n type: \"textarea\",\n value: props.value,\n attrs: {\n \"data-adapttable-part\": props.part,\n \"aria-label\": props.label,\n placeholder: props.placeholder,\n class: props.className,\n disabled: props.disabled,\n rows: 1,\n onKeydown: props.onKeyDown,\n },\n onChange: props.onChange,\n }),\n Badge: (props) =>\n h(\n NTag,\n {\n \"data-adapttable-part\": props.part,\n \"data-tone\": props.tone,\n type: TAG_TYPE[props.tone],\n size: \"small\",\n bordered: false,\n class: props.className,\n },\n { default: () => props.label }\n ),\n Panel: (props) =>\n surface(props, [\"adapttable-naive-assistant-panel\", props.className]),\n Window: (props) =>\n surface(props, [\"adapttable-naive-assistant-window\", props.className]),\n Sheet: (props) => h(NaiveAssistantSheet, { ...props, key: props.part }),\n Menu: (props) => h(NaiveExamplesMenu, props),\n LanguageChip: (props) =>\n naiveSelect({\n attrs: {\n \"data-adapttable-part\": props.part,\n \"aria-label\": props.label,\n class: props.className,\n disabled: props.disabled,\n },\n value: props.value,\n options: props.options,\n onChange: props.onChange,\n }),\n};\n\nexport const naiveApprovalControls: ApprovalReviewSlots = {\n Approve: naiveAssistantControls.Button,\n Reject: naiveAssistantControls.Button,\n Action: naiveAssistantControls.Button,\n List: (props) =>\n h(\n \"ul\",\n {\n \"data-adapttable-part\": props.part,\n \"aria-label\": props.label,\n class: [\"adapttable-naive-approval-list\", props.className],\n },\n [props.children]\n ),\n};\n","/** Optional assistant presentation; all conversation and approval state stays in the binding. */\nimport \"./assistant/assistant.css\";\n\nimport type { StaticTableFeature } from \"@adapttable/vue\";\nimport {\n AgentApprovalChrome,\n type AgentApprovalProps,\n createAdapterAgentApprovalFeature,\n createAdapterTableAssistantFeature,\n TableAssistantChrome,\n type TableAssistantProps,\n} from \"@adapttable/vue/adapter\";\nimport { useThemeVars } from \"naive-ui\";\nimport { defineComponent, h, type PropType } from \"vue\";\n\nimport {\n naiveApprovalControls,\n naiveAssistantControls,\n} from \"./assistant/controls\";\n\nexport const TableAssistant = defineComponent(\n (props: TableAssistantProps) => {\n const theme = useThemeVars();\n return () =>\n h(TableAssistantChrome, {\n ...props,\n accent: props.accent ?? theme.value.primaryColor,\n slots: naiveAssistantControls,\n });\n },\n {\n name: \"NaiveTableAssistant\",\n props: {\n assistant: { type: Object as PropType<TableAssistantProps[\"assistant\"]> },\n speech: { type: Object as PropType<TableAssistantProps[\"speech\"]> },\n open: {\n type: Boolean as PropType<TableAssistantProps[\"open\"]>,\n default: undefined,\n },\n onOpenChange: {\n type: Function as PropType<TableAssistantProps[\"onOpenChange\"]>,\n },\n presentation: {\n type: String as PropType<TableAssistantProps[\"presentation\"]>,\n },\n labels: { type: Object as PropType<TableAssistantProps[\"labels\"]> },\n accent: { type: String as PropType<TableAssistantProps[\"accent\"]> },\n receipts: {\n type: Boolean as PropType<TableAssistantProps[\"receipts\"]>,\n default: undefined,\n },\n className: { type: String as PropType<TableAssistantProps[\"className\"]> },\n launcher: {\n type: Boolean as PropType<TableAssistantProps[\"launcher\"]>,\n default: undefined,\n },\n onSettings: {\n type: Function as PropType<TableAssistantProps[\"onSettings\"]>,\n },\n boundary: {\n type: [String, Object] as PropType<TableAssistantProps[\"boundary\"]>,\n },\n note: { type: String as PropType<TableAssistantProps[\"note\"]> },\n greeting: { type: String as PropType<TableAssistantProps[\"greeting\"]> },\n avatars: { type: Object as PropType<TableAssistantProps[\"avatars\"]> },\n messageAction: {\n type: Function as PropType<TableAssistantProps[\"messageAction\"]>,\n },\n approval: { type: Object as PropType<TableAssistantProps[\"approval\"]> },\n dir: { type: String as PropType<TableAssistantProps[\"dir\"]> },\n },\n }\n);\nexport const AgentApproval = defineComponent(\n (props: AgentApprovalProps) => () =>\n h(AgentApprovalChrome, { ...props, slots: naiveApprovalControls }),\n {\n name: \"NaiveAgentApproval\",\n props: {\n pending: { type: Object as PropType<AgentApprovalProps[\"pending\"]> },\n labels: { type: Object as PropType<AgentApprovalProps[\"labels\"]> },\n className: { type: String as PropType<AgentApprovalProps[\"className\"]> },\n buttonClassName: {\n type: String as PropType<AgentApprovalProps[\"buttonClassName\"]>,\n },\n },\n }\n);\nexport function tableAssistant(): StaticTableFeature {\n return createAdapterTableAssistantFeature((props) =>\n h(TableAssistant, props)\n );\n}\nexport function agentApproval(): StaticTableFeature {\n return createAdapterAgentApprovalFeature((props) => h(AgentApproval, props));\n}\nexport type {\n AgentApprovalProps,\n TableAssistantProps,\n} from \"@adapttable/vue/adapter\";\n"],"mappings":";;;;;;;;AAqBA,SAAS,SACP,MACA,QACA;CACA,OAAO,YACL;EACE,KAAK,KAAK;EACV,MAAM;EACN,UAAU;EACV,wBAAwB,KAAK;EAC7B,OAAO;EACP,eAAe,OAAO,KAAK,EAAE;CAC/B,GACA,CACE,KAAK,MACL,EAAE,QAAQ,CACR,EAAE,UAAU,KAAK,KAAK,GACtB,KAAK,cAAc,EAAE,SAAS,KAAK,WAAW,IAAI,IACpD,CAAC,CACH,GACA,EAAE,MAAM,KAAK,CACf;AACF;;AAGA,SAAS,SACP,OACA,MACA,SACA,QACA;CACA,MAAM,QAAQ,MAAM,MAAM,KAAK,SAAS,SAAS,MAAM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