@adapttable/naive-ui 0.4.1 → 0.5.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 (35) hide show
  1. package/dist/{NaiveFilterSurface-DqUmkz-o.cjs → NaiveFilterField-CP2V5YLz.cjs} +183 -149
  2. package/dist/NaiveFilterField-CP2V5YLz.cjs.map +1 -0
  3. package/dist/{NaiveFilterSurface-CnhNSSF1.js → NaiveFilterField-SRraOkWU.js} +173 -151
  4. package/dist/NaiveFilterField-SRraOkWU.js.map +1 -0
  5. package/dist/features.cjs +12 -5
  6. package/dist/features.d.cts +2 -2
  7. package/dist/features.d.ts +2 -2
  8. package/dist/features.js +4 -4
  9. package/dist/{filters-BJ48GzqJ.d.ts → filters-ClqB1_n4.d.cts} +31 -7
  10. package/dist/filters-ClqB1_n4.d.cts.map +1 -0
  11. package/dist/{filters-DipcT7-T.js → filters-Cy170_qU.js} +64 -10
  12. package/dist/filters-Cy170_qU.js.map +1 -0
  13. package/dist/{filters-B5JX7H8p.cjs → filters-DIlfaXQJ.cjs} +106 -10
  14. package/dist/filters-DIlfaXQJ.cjs.map +1 -0
  15. package/dist/{filters-C6DvAZ_T.d.cts → filters-b2ZuVZPI.d.ts} +31 -7
  16. package/dist/filters-b2ZuVZPI.d.ts.map +1 -0
  17. package/dist/filters.cjs +11 -4
  18. package/dist/filters.d.cts +2 -2
  19. package/dist/filters.d.ts +2 -2
  20. package/dist/filters.js +3 -3
  21. package/dist/{header-filters-CWad6foD.js → header-filters-Bxb3snYP.js} +2 -2
  22. package/dist/{header-filters-CWad6foD.js.map → header-filters-Bxb3snYP.js.map} +1 -1
  23. package/dist/{header-filters-C8cAJJ7r.cjs → header-filters-CvStECsj.cjs} +5 -5
  24. package/dist/{header-filters-C8cAJJ7r.cjs.map → header-filters-CvStECsj.cjs.map} +1 -1
  25. package/dist/header-filters.cjs +1 -1
  26. package/dist/header-filters.js +1 -1
  27. package/dist/preset.cjs +2 -2
  28. package/dist/preset.js +2 -2
  29. package/package.json +3 -3
  30. package/dist/NaiveFilterSurface-CnhNSSF1.js.map +0 -1
  31. package/dist/NaiveFilterSurface-DqUmkz-o.cjs.map +0 -1
  32. package/dist/filters-B5JX7H8p.cjs.map +0 -1
  33. package/dist/filters-BJ48GzqJ.d.ts.map +0 -1
  34. package/dist/filters-C6DvAZ_T.d.cts.map +0 -1
  35. package/dist/filters-DipcT7-T.js.map +0 -1
@@ -2,157 +2,9 @@ import { n as naiveElement, t as naiveButton } from "./button-BxXdDW7A.js";
2
2
  import { t as naiveInput } from "./input-YgQ2d8K9.js";
3
3
  import { t as naiveClassNames } from "./classNames-2CRJjDRZ.js";
4
4
  import { t as naiveSelect } from "./select-Bgc5ttop.js";
5
- import { ChecklistChrome, FilterFieldChrome, defaultFilterRegistry, filterLabel, filterWidgetKind, scheduleTick, useChecklistModel, useDataTableClassNames, useFilterField, useScopeActivity } from "@adapttable/vue/adapter";
5
+ import { ChecklistChrome, FILTER_FIELD_PARTS, FilterFieldChrome, defaultFilterRegistry, filterLabel, filterWidgetKind, scheduleTick, useChecklistModel, useDataTableClassNames, useFilterFieldWith, useScopeActivity } from "@adapttable/vue/adapter";
6
6
  import { createBlock, defineComponent, h, onMounted, openBlock, shallowRef, watch } from "vue";
7
7
  import { NCheckbox, NDrawer, NDrawerContent, NPopover } from "naive-ui";
8
- //#region src/filters/controls.ts
9
- /** The kit owns checkbox paint and its value event; the filter model owns writes. */
10
- function naiveFilterCheckbox(control, content = control.label) {
11
- return naiveElement(NCheckbox, {
12
- ...control.attrs,
13
- checked: control.checked,
14
- "aria-label": control.label,
15
- "aria-labelledby": control.attrs["aria-labelledby"] ?? void 0,
16
- "onUpdate:checked": (checked) => control.onChange(checked)
17
- }, () => content);
18
- }
19
- function naiveFilterControls(names) {
20
- return {
21
- Input: (control) => naiveInput({
22
- ...control,
23
- attrs: {
24
- ...control.attrs,
25
- class: names().filterInput
26
- }
27
- }),
28
- Select: (control) => naiveSelect({
29
- ...control,
30
- attrs: {
31
- ...control.attrs,
32
- class: control.attrs["data-adapttable-part"] === "filter-operator" ? names().filterOperator : names().filterSelect
33
- }
34
- }),
35
- Checkbox: (control) => naiveFilterCheckbox({
36
- ...control,
37
- attrs: {
38
- ...control.attrs,
39
- class: names().filterCheckbox
40
- }
41
- })
42
- };
43
- }
44
- //#endregion
45
- //#region src/filters/NaiveBasicFilterField.vue
46
- const _sfc_main$2 = /*@__PURE__*/ defineComponent({
47
- name: "NaiveBasicFilterField",
48
- __name: "NaiveBasicFilterField",
49
- props: {
50
- id: {},
51
- def: {},
52
- source: {},
53
- labels: {},
54
- registry: {}
55
- },
56
- setup(__props) {
57
- const props = __props;
58
- const names = useDataTableClassNames();
59
- const model = useFilterField(() => props);
60
- const controls = naiveFilterControls(() => names.value);
61
- const Render = () => FilterFieldChrome({
62
- model: model.value,
63
- controls,
64
- classNames: names.value
65
- });
66
- Render.props = [];
67
- return (_ctx, _cache) => {
68
- return openBlock(), createBlock(Render);
69
- };
70
- }
71
- });
72
- //#endregion
73
- //#region src/filters/NaiveChecklistFilter.vue
74
- const _sfc_main$1 = /*@__PURE__*/ defineComponent({
75
- name: "NaiveChecklistFilter",
76
- __name: "NaiveChecklistFilter",
77
- props: {
78
- def: {},
79
- source: {},
80
- labels: {},
81
- classNames: {}
82
- },
83
- setup(__props) {
84
- const props = __props;
85
- const model = useChecklistModel(() => props);
86
- const controls = {
87
- Search: (control) => naiveInput({
88
- value: control.value,
89
- onChange: control.onChange,
90
- attrs: {
91
- type: "search",
92
- "aria-label": control.label,
93
- "data-adapttable-part": "filter-checklist-search",
94
- class: control.className
95
- }
96
- }),
97
- Button: (control) => naiveButton({ onClick: control.onClick }, control.label),
98
- Checkbox: (control) => naiveFilterCheckbox({
99
- ...control,
100
- attrs: {
101
- "data-adapttable-part": "filter-checkbox",
102
- class: control.className
103
- }
104
- }, [control.label, h("span", {
105
- "data-adapttable-part": "filter-checklist-count",
106
- class: control.countClassName
107
- }, control.count)])
108
- };
109
- const Render = () => ChecklistChrome({
110
- model: model.value,
111
- controls
112
- });
113
- Render.props = [];
114
- return (_ctx, _cache) => {
115
- return openBlock(), createBlock(Render);
116
- };
117
- }
118
- });
119
- //#endregion
120
- //#region src/filters/NaiveFilterField.vue
121
- const _sfc_main = /*@__PURE__*/ defineComponent({
122
- name: "NaiveFilterField",
123
- __name: "NaiveFilterField",
124
- props: {
125
- id: {},
126
- def: {},
127
- source: {},
128
- labels: {},
129
- registry: {}
130
- },
131
- setup(__props) {
132
- const props = __props;
133
- const names = useDataTableClassNames();
134
- const Render = () => {
135
- if (filterWidgetKind(props.def, props.registry ?? defaultFilterRegistry) !== "checklist") return h(_sfc_main$2, { ...props });
136
- return h("fieldset", {
137
- "data-adapttable-part": "filter-field",
138
- class: names.value.filterField
139
- }, [h("legend", {
140
- "data-adapttable-part": "filter-label",
141
- class: names.value.filterLabel
142
- }, filterLabel(props.def)), h(_sfc_main$1, {
143
- def: props.def,
144
- source: props.source,
145
- labels: props.labels,
146
- classNames: names.value
147
- })]);
148
- };
149
- Render.props = [];
150
- return (_ctx, _cache) => {
151
- return openBlock(), createBlock(Render);
152
- };
153
- }
154
- });
155
- //#endregion
156
8
  //#region src/filters/NaiveFilterSurface.ts
157
9
  /** Public vendor surfaces own their mask, trap, scroll lock and portal. */
158
10
  const NaiveFilterSurface = defineComponent((props) => {
@@ -343,6 +195,176 @@ const NaiveFilterSurface = defineComponent((props) => {
343
195
  }
344
196
  });
345
197
  //#endregion
346
- export { naiveFilterCheckbox as i, _sfc_main as n, _sfc_main$1 as r, NaiveFilterSurface as t };
198
+ //#region src/filters/controls.ts
199
+ /** The kit owns checkbox paint and its value event; the filter model owns writes. */
200
+ function naiveFilterCheckbox(control, content = control.label) {
201
+ return naiveElement(NCheckbox, {
202
+ ...control.attrs,
203
+ checked: control.checked,
204
+ "aria-label": control.label,
205
+ "aria-labelledby": control.attrs["aria-labelledby"] ?? void 0,
206
+ "onUpdate:checked": (checked) => control.onChange(checked)
207
+ }, () => content);
208
+ }
209
+ function naiveFilterControls(names) {
210
+ return {
211
+ Input: (control) => naiveInput({
212
+ ...control,
213
+ attrs: {
214
+ ...control.attrs,
215
+ class: names().filterInput
216
+ }
217
+ }),
218
+ Select: (control) => naiveSelect({
219
+ ...control,
220
+ attrs: {
221
+ ...control.attrs,
222
+ class: control.attrs["data-adapttable-part"] === "filter-operator" ? names().filterOperator : names().filterSelect
223
+ }
224
+ }),
225
+ Checkbox: (control) => naiveFilterCheckbox({
226
+ ...control,
227
+ attrs: {
228
+ ...control.attrs,
229
+ class: names().filterCheckbox
230
+ }
231
+ })
232
+ };
233
+ }
234
+ //#endregion
235
+ //#region src/filters/NaiveBasicFilterField.vue
236
+ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
237
+ name: "NaiveBasicFilterField",
238
+ __name: "NaiveBasicFilterField",
239
+ props: {
240
+ id: {},
241
+ def: {},
242
+ source: {},
243
+ labels: {},
244
+ registry: {},
245
+ parts: {}
246
+ },
247
+ setup(__props) {
248
+ const props = __props;
249
+ const names = useDataTableClassNames();
250
+ const model = useFilterFieldWith(() => props, props.parts);
251
+ const controls = naiveFilterControls(() => names.value);
252
+ const Render = () => FilterFieldChrome({
253
+ model: model.value,
254
+ controls,
255
+ classNames: names.value
256
+ });
257
+ Render.props = [];
258
+ return (_ctx, _cache) => {
259
+ return openBlock(), createBlock(Render);
260
+ };
261
+ }
262
+ });
263
+ //#endregion
264
+ //#region src/filters/NaiveChecklistFilter.vue
265
+ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
266
+ name: "NaiveChecklistFilter",
267
+ __name: "NaiveChecklistFilter",
268
+ props: {
269
+ def: {},
270
+ source: {},
271
+ labels: {},
272
+ classNames: {}
273
+ },
274
+ setup(__props) {
275
+ const props = __props;
276
+ const model = useChecklistModel(() => props);
277
+ const controls = {
278
+ Search: (control) => naiveInput({
279
+ value: control.value,
280
+ onChange: control.onChange,
281
+ attrs: {
282
+ type: "search",
283
+ "aria-label": control.label,
284
+ "data-adapttable-part": "filter-checklist-search",
285
+ class: control.className
286
+ }
287
+ }),
288
+ Button: (control) => naiveButton({ onClick: control.onClick }, control.label),
289
+ Checkbox: (control) => naiveFilterCheckbox({
290
+ ...control,
291
+ attrs: {
292
+ "data-adapttable-part": "filter-checkbox",
293
+ class: control.className
294
+ }
295
+ }, [control.label, h("span", {
296
+ "data-adapttable-part": "filter-checklist-count",
297
+ class: control.countClassName
298
+ }, control.count)])
299
+ };
300
+ const Render = () => ChecklistChrome({
301
+ model: model.value,
302
+ controls
303
+ });
304
+ Render.props = [];
305
+ return (_ctx, _cache) => {
306
+ return openBlock(), createBlock(Render);
307
+ };
308
+ }
309
+ });
310
+ //#endregion
311
+ //#region src/filters/NaiveChecklistField.vue
312
+ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
313
+ name: "NaiveChecklistField",
314
+ __name: "NaiveChecklistField",
315
+ props: {
316
+ id: {},
317
+ def: {},
318
+ source: {},
319
+ labels: {},
320
+ registry: {}
321
+ },
322
+ setup(__props) {
323
+ const props = __props;
324
+ const names = useDataTableClassNames();
325
+ const Render = () => h("fieldset", {
326
+ "data-adapttable-part": "filter-field",
327
+ class: names.value.filterField
328
+ }, [h("legend", {
329
+ "data-adapttable-part": "filter-label",
330
+ class: names.value.filterLabel
331
+ }, filterLabel(props.def)), h(_sfc_main$2, {
332
+ def: props.def,
333
+ source: props.source,
334
+ labels: props.labels,
335
+ classNames: names.value
336
+ })]);
337
+ Render.props = [];
338
+ return (_ctx, _cache) => {
339
+ return openBlock(), createBlock(Render);
340
+ };
341
+ }
342
+ });
343
+ //#endregion
344
+ //#region src/filters/NaiveFilterField.vue
345
+ const _sfc_main = /*@__PURE__*/ defineComponent({
346
+ name: "NaiveFilterField",
347
+ __name: "NaiveFilterField",
348
+ props: {
349
+ id: {},
350
+ def: {},
351
+ source: {},
352
+ labels: {},
353
+ registry: {}
354
+ },
355
+ setup(__props) {
356
+ const props = __props;
357
+ const Render = () => filterWidgetKind(props.def, props.registry ?? defaultFilterRegistry) === "checklist" ? h(_sfc_main$1, { ...props }) : h(_sfc_main$3, {
358
+ ...props,
359
+ parts: FILTER_FIELD_PARTS
360
+ });
361
+ Render.props = [];
362
+ return (_ctx, _cache) => {
363
+ return openBlock(), createBlock(Render);
364
+ };
365
+ }
366
+ });
367
+ //#endregion
368
+ export { naiveFilterCheckbox as a, _sfc_main$3 as i, _sfc_main$1 as n, NaiveFilterSurface as o, _sfc_main$2 as r, _sfc_main as t };
347
369
 
348
- //# sourceMappingURL=NaiveFilterSurface-CnhNSSF1.js.map
370
+ //# sourceMappingURL=NaiveFilterField-SRraOkWU.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NaiveFilterField-SRraOkWU.js","names":[],"sources":["../src/filters/NaiveFilterSurface.ts","../src/filters/controls.ts","../src/filters/NaiveBasicFilterField.vue","../src/filters/NaiveChecklistFilter.vue","../src/filters/NaiveChecklistField.vue","../src/filters/NaiveFilterField.vue"],"sourcesContent":["import {\n type FilterPanelSurfaceProps,\n type OverlayCloseReason,\n scheduleTick,\n useDataTableClassNames,\n useScopeActivity,\n} from \"@adapttable/vue/adapter\";\nimport { NDrawer, NDrawerContent, NPopover } from \"naive-ui\";\nimport {\n defineComponent,\n h,\n type HTMLAttributes,\n onMounted,\n type PropType,\n shallowRef,\n watch,\n} from \"vue\";\n\nimport { naiveClassNames } from \"../classNames\";\n\n/** Public vendor surfaces own their mask, trap, scroll lock and portal. */\nexport const NaiveFilterSurface = defineComponent(\n (\n props: FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n }\n ) => {\n const names = useDataTableClassNames();\n const active = useScopeActivity();\n const mounted = shallowRef(false);\n const content = shallowRef<HTMLElement | null>(null);\n const position = shallowRef<{\n x: number;\n y: number;\n maxWidth: number;\n maxHeight: number;\n }>();\n let lifetime = 0;\n let reason: OverlayCloseReason | undefined;\n const dismiss = (\n why: OverlayCloseReason,\n ticket: number,\n owner: FilterPanelSurfaceProps[\"onClose\"]\n ) => {\n if (\n ticket !== lifetime ||\n !active.value ||\n !props.open ||\n owner !== props.onClose\n )\n return;\n reason = why;\n owner(why);\n };\n onMounted(() => {\n mounted.value = true;\n });\n\n watch(\n [\n active,\n () => props.open,\n () => props.anchor,\n () => props.modal,\n () => props.onClose,\n ],\n ([enabled, open, anchor, modal], previous) => {\n const ticket = ++lifetime;\n const surface = content.value;\n const focused = surface?.ownerDocument.activeElement;\n if (\n !modal &&\n enabled &&\n !open &&\n previous[1] &&\n reason !== \"outside\" &&\n surface &&\n focused &&\n surface.contains(focused) &&\n anchor?.isConnected\n ) {\n scheduleTick(() => {\n const current = anchor.ownerDocument.activeElement;\n if (\n ticket === lifetime &&\n active.value &&\n !props.open &&\n props.anchor === anchor &&\n anchor.isConnected &&\n (current === focused || current === anchor.ownerDocument.body)\n ) {\n anchor.focus();\n }\n });\n }\n reason = undefined;\n },\n { flush: \"sync\" }\n );\n\n watch(\n [\n mounted,\n active,\n () => props.open,\n () => props.anchor,\n () => props.dir,\n () => props.modal,\n () => props.onClose,\n ],\n ([ready, enabled, open, anchor, dir, modal], _previous, cleanup) => {\n if (!ready || !enabled || !open || !anchor || modal) return;\n const view = anchor.ownerDocument.defaultView;\n if (!view) return;\n const place = () => {\n const rect = anchor.getBoundingClientRect();\n const root = anchor.ownerDocument.documentElement;\n // The follower flips but never shifts, so keep the card on screen here.\n const viewport = root.clientWidth;\n const rem = Number.parseFloat(view.getComputedStyle(root).fontSize);\n const width = Math.min(22 * (rem || 16), viewport - 16);\n position.value = {\n x:\n dir === \"rtl\"\n ? Math.min(viewport - 8, Math.max(rect.right, width + 8))\n : Math.max(8, Math.min(rect.left, viewport - 8 - width)),\n maxWidth: viewport - 16,\n y: rect.bottom,\n maxHeight: Math.max(\n 0,\n Math.min(\n 560,\n Math.max(rect.top, view.innerHeight - rect.bottom) - 8\n )\n ),\n };\n };\n place();\n const ticket = lifetime;\n const owner = props.onClose;\n const keydown = (event: KeyboardEvent) => {\n if (\n event.key !== \"Escape\" ||\n event.defaultPrevented ||\n event.isComposing\n )\n return;\n const target = event.target;\n const dialog =\n target instanceof Element\n ? target.closest('[role=\"dialog\"]')\n : null;\n if (dialog && dialog !== content.value?.closest('[role=\"dialog\"]'))\n return;\n event.preventDefault();\n dismiss(\"escape\", ticket, owner);\n };\n anchor.ownerDocument.addEventListener(\"keydown\", keydown);\n view.addEventListener(\"resize\", place);\n view.addEventListener(\"scroll\", place, true);\n const observer = view.ResizeObserver\n ? new view.ResizeObserver(place)\n : undefined;\n observer?.observe(anchor);\n cleanup(() => {\n anchor.ownerDocument.removeEventListener(\"keydown\", keydown);\n view.removeEventListener(\"resize\", place);\n view.removeEventListener(\"scroll\", place, true);\n observer?.disconnect();\n });\n },\n { flush: \"post\" }\n );\n\n watch(\n [content, active, () => props.open, () => props.modal],\n ([element, enabled, open, modal]) => {\n if (\n !element ||\n !enabled ||\n !open ||\n modal ||\n element.contains(element.ownerDocument.activeElement)\n )\n return;\n const target = [\n ...element.querySelectorAll<HTMLElement>(\n \"input:not([type='hidden']), select, button, [tabindex='0']\"\n ),\n ].find(\n (node) =>\n !node.matches(\":disabled\") &&\n node.getAttribute(\"aria-disabled\") !== \"true\" &&\n !node.closest(\"[hidden], [inert]\")\n );\n (target ?? element).focus({ preventScroll: true });\n },\n { flush: \"post\" }\n );\n\n return () => {\n const classes = naiveClassNames(names.value);\n const ticket = lifetime;\n const requestClose = props.onClose;\n const current = () => ticket === lifetime && active.value && props.open;\n const close = (why: OverlayCloseReason) => {\n dismiss(why, ticket, requestClose);\n };\n const open = mounted.value && active.value && props.open;\n const children = () =>\n h(\"div\", { ref: content, tabindex: -1 }, [props.children]);\n const keydown = (event: KeyboardEvent) => {\n if (\n event.key !== \"Escape\" ||\n event.defaultPrevented ||\n event.isComposing ||\n !current()\n )\n return;\n if (props.modal) {\n // NDrawer's public update event follows its own topmost focus-trap check.\n reason = \"escape\";\n scheduleTick(() => {\n if (ticket === lifetime) reason = undefined;\n });\n } else {\n event.preventDefault();\n event.stopPropagation();\n close(\"escape\");\n }\n };\n const attrs: HTMLAttributes & { \"data-adapttable-part\": string } = {\n dir: props.dir,\n role: \"dialog\",\n \"aria-label\": props.label,\n \"data-adapttable-part\":\n props.part ?? (props.modal ? \"filters-panel\" : \"filters-popover\"),\n class: [\n \"adapttable-naive-filter-surface\",\n props.className ??\n (props.modal ? classes.filtersPanel : classes.filtersPopover),\n ],\n onKeydown: keydown,\n };\n if (props.modal) {\n return h(\n NDrawer,\n {\n ...attrs,\n class: [attrs.class, classes.filtersDrawer],\n show: open,\n to: props.container ?? undefined,\n placement: props.dir === \"rtl\" ? \"left\" : \"right\",\n width: \"min(24rem, calc(100vw - 16px))\",\n \"onUpdate:show\": (show: boolean) => {\n if (!show) close(reason ?? \"outside\");\n },\n },\n { default: () => h(NDrawerContent, {}, { default: children }) }\n );\n }\n // Manual positioning requires both public coordinates before first render.\n if (!mounted.value || !props.anchor || !position.value) return null;\n return h(\n NPopover,\n {\n ...attrs,\n trigger: \"manual\",\n show: open && !!props.anchor && !!position.value,\n x: position.value?.x,\n y: position.value?.y,\n to: props.container ?? undefined,\n placement: props.dir === \"rtl\" ? \"bottom-end\" : \"bottom-start\",\n showArrow: false,\n style: {\n boxSizing: \"border-box\",\n width: \"22rem\",\n maxWidth: `${position.value.maxWidth}px`,\n maxHeight: `${position.value.maxHeight}px`,\n overflow: \"auto\",\n },\n onClickoutside: (event: MouseEvent) => {\n const target = event.target;\n if (!(target instanceof Node) || !props.anchor?.contains(target))\n close(\"outside\");\n },\n },\n { default: children }\n );\n };\n },\n {\n name: \"NaiveFilterSurface\",\n props: {\n open: {\n type: Boolean as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: 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 })[\"label\"]\n >,\n },\n dir: {\n type: String as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n })[\"dir\"]\n >,\n },\n anchor: {\n type: Object as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n })[\"anchor\"]\n >,\n },\n container: {\n type: Object as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: 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 })[\"children\"]\n >,\n default: undefined,\n },\n onClose: {\n type: Function as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n })[\"onClose\"]\n >,\n },\n className: {\n type: String as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: string;\n })[\"className\"]\n >,\n },\n modal: {\n type: Boolean as PropType<\n (FilterPanelSurfaceProps & {\n readonly modal: boolean;\n readonly part?: 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 })[\"part\"]\n >,\n },\n },\n }\n);\n","import type {\n DataTableClassNames,\n FilterCheckboxProps,\n FilterFieldSlots,\n} from \"@adapttable/vue/adapter\";\nimport { NCheckbox } from \"naive-ui\";\nimport type { VNodeChild } from \"vue\";\n\nimport { naiveInput } from \"../controls/input\";\nimport { naiveSelect } from \"../controls/select\";\nimport { naiveElement } from \"../renderers/nativeElement\";\n\n/** The kit owns checkbox paint and its value event; the filter model owns writes. */\nexport function naiveFilterCheckbox(\n control: FilterCheckboxProps,\n content: VNodeChild = control.label\n) {\n return naiveElement(\n NCheckbox,\n {\n ...control.attrs,\n checked: control.checked,\n \"aria-label\": control.label,\n \"aria-labelledby\": control.attrs[\"aria-labelledby\"] ?? undefined,\n \"onUpdate:checked\": (checked: boolean) => control.onChange(checked),\n },\n () => content\n );\n}\n\nexport function naiveFilterControls(\n names: () => Pick<\n DataTableClassNames,\n \"filterInput\" | \"filterOperator\" | \"filterSelect\" | \"filterCheckbox\"\n >\n): FilterFieldSlots {\n return {\n Input: (control) =>\n naiveInput({\n ...control,\n attrs: { ...control.attrs, class: names().filterInput },\n }),\n Select: (control) =>\n naiveSelect({\n ...control,\n attrs: {\n ...control.attrs,\n class:\n control.attrs[\"data-adapttable-part\"] === \"filter-operator\"\n ? names().filterOperator\n : names().filterSelect,\n },\n }),\n Checkbox: (control) =>\n naiveFilterCheckbox({\n ...control,\n attrs: { ...control.attrs, class: names().filterCheckbox },\n }),\n };\n}\n","<script setup lang=\"ts\" generic=\"TRow\">\nimport {\n FilterFieldChrome,\n type FilterFieldOptions,\n type FilterFieldPart,\n useDataTableClassNames,\n useFilterFieldWith,\n} from \"@adapttable/vue/adapter\";\n\nimport { naiveFilterControls } from \"./controls\";\n\ndefineOptions({ name: \"NaiveBasicFilterField\" });\nconst props = defineProps<\n FilterFieldOptions<TRow> & {\n /** The widget kinds this field can draw. */\n parts: readonly FilterFieldPart[];\n }\n>();\nconst names = useDataTableClassNames();\nconst model = useFilterFieldWith(() => props, props.parts);\nconst controls = naiveFilterControls(() => names.value);\nconst Render = () =>\n FilterFieldChrome({ model: model.value, controls, classNames: names.value });\nRender.props = [] as string[];\n</script>\n\n<template><Render /></template>\n","<script setup lang=\"ts\" generic=\"TRow\">\nimport {\n ChecklistChrome,\n type ChecklistFilterProps,\n type ChecklistSlots,\n useChecklistModel,\n} from \"@adapttable/vue/adapter\";\nimport { h, type VNodeChild } from \"vue\";\n\nimport { naiveButton } from \"../controls/button\";\nimport { naiveInput } from \"../controls/input\";\nimport { naiveFilterCheckbox } from \"./controls\";\n\ndefineOptions({ name: \"NaiveChecklistFilter\" });\nconst props = defineProps<{\n readonly def: ChecklistFilterProps<TRow>[\"def\"];\n readonly source: ChecklistFilterProps<TRow>[\"source\"];\n readonly labels?: NonNullable<ChecklistFilterProps<TRow>[\"labels\"]>;\n readonly classNames?: NonNullable<ChecklistFilterProps<TRow>[\"classNames\"]>;\n}>();\nconst model = useChecklistModel(() => props);\nconst controls: ChecklistSlots<VNodeChild> = {\n Search: (control) =>\n naiveInput({\n value: control.value,\n onChange: control.onChange,\n attrs: {\n type: \"search\",\n \"aria-label\": control.label,\n \"data-adapttable-part\": \"filter-checklist-search\",\n class: control.className,\n },\n }),\n Button: (control) => naiveButton({ onClick: control.onClick }, control.label),\n Checkbox: (control) =>\n naiveFilterCheckbox(\n {\n ...control,\n attrs: {\n \"data-adapttable-part\": \"filter-checkbox\",\n class: control.className,\n },\n },\n [\n control.label,\n h(\n \"span\",\n {\n \"data-adapttable-part\": \"filter-checklist-count\",\n class: control.countClassName,\n },\n control.count\n ),\n ]\n ),\n};\nconst Render = () => ChecklistChrome({ model: model.value, controls });\nRender.props = [] as string[];\n</script>\n\n<template><Render /></template>\n","<script setup lang=\"ts\" generic=\"TRow\">\nimport {\n type FilterFieldOptions,\n filterLabel,\n useDataTableClassNames,\n} from \"@adapttable/vue/adapter\";\nimport { h } from \"vue\";\n\nimport NaiveChecklistFilter from \"./NaiveChecklistFilter.vue\";\n\ndefineOptions({ name: \"NaiveChecklistField\" });\nconst props = defineProps<FilterFieldOptions<TRow>>();\nconst names = useDataTableClassNames();\nconst Render = () =>\n h(\n \"fieldset\",\n {\n \"data-adapttable-part\": \"filter-field\",\n class: names.value.filterField,\n },\n [\n h(\n \"legend\",\n {\n \"data-adapttable-part\": \"filter-label\",\n class: names.value.filterLabel,\n },\n filterLabel(props.def)\n ),\n h(NaiveChecklistFilter<TRow>, {\n def: props.def,\n source: props.source,\n labels: props.labels,\n classNames: names.value,\n }),\n ]\n );\nRender.props = [] as string[];\n</script>\n\n<template><Render /></template>\n","<script setup lang=\"ts\" generic=\"TRow\">\nimport {\n defaultFilterRegistry,\n FILTER_FIELD_PARTS,\n type FilterFieldOptions,\n filterWidgetKind,\n} from \"@adapttable/vue/adapter\";\nimport { h } from \"vue\";\n\nimport NaiveBasicFilterField from \"./NaiveBasicFilterField.vue\";\nimport NaiveChecklistField from \"./NaiveChecklistField.vue\";\n\ndefineOptions({ name: \"NaiveFilterField\" });\nconst props = defineProps<FilterFieldOptions<TRow>>();\nconst Render = () =>\n filterWidgetKind(props.def, props.registry ?? defaultFilterRegistry) ===\n \"checklist\"\n ? h(NaiveChecklistField<TRow>, { ...props })\n : h(NaiveBasicFilterField<TRow>, { ...props, parts: FILTER_FIELD_PARTS });\nRender.props = [] as string[];\n</script>\n\n<template><Render /></template>\n"],"mappings":";;;;;;;;;AAqBA,MAAa,qBAAqB,iBAE9B,UAIG;CACH,MAAM,QAAQ,uBAAuB;CACrC,MAAM,SAAS,iBAAiB;CAChC,MAAM,UAAU,WAAW,KAAK;CAChC,MAAM,UAAU,WAA+B,IAAI;CACnD,MAAM,WAAW,WAKd;CACH,IAAI,WAAW;CACf,IAAI;CACJ,MAAM,WACJ,KACA,QACA,UACG;EACH,IACE,WAAW,YACX,CAAC,OAAO,SACR,CAAC,MAAM,QACP,UAAU,MAAM,SAEhB;EACF,SAAS;EACT,MAAM,GAAG;CACX;CACA,gBAAgB;EACd,QAAQ,QAAQ;CAClB,CAAC;CAED,MACE;EACE;QACM,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;CACd,IACC,CAAC,SAAS,MAAM,QAAQ,QAAQ,aAAa;EAC5C,MAAM,SAAS,EAAE;EACjB,MAAM,UAAU,QAAQ;EACxB,MAAM,UAAU,SAAS,cAAc;EACvC,IACE,CAAC,SACD,WACA,CAAC,QACD,SAAS,MACT,WAAW,aACX,WACA,WACA,QAAQ,SAAS,OAAO,KACxB,QAAQ,aAER,mBAAmB;GACjB,MAAM,UAAU,OAAO,cAAc;GACrC,IACE,WAAW,YACX,OAAO,SACP,CAAC,MAAM,QACP,MAAM,WAAW,UACjB,OAAO,gBACN,YAAY,WAAW,YAAY,OAAO,cAAc,OAEzD,OAAO,MAAM;EAEjB,CAAC;EAEH,SAAS,KAAA;CACX,GACA,EAAE,OAAO,OAAO,CAClB;C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B,MAAM,QAAQ;EACd,MAAM,eACJ,iBAAiB,MAAM,KAAK,MAAM,YAAY,qBAAqB,MACnE,cACI,EAAE,aAA2B,EAAE,GAAG,MAAM,CAAC,IACzC,EAAE,aAA6B;GAAE,GAAG;GAAO,OAAO;EAAmB,CAAC;EAC5E,OAAO,QAAQ,CAAC;;GAGN,OAAA,UAAA,GAAA,YAAU,MAAA"}
package/dist/features.cjs CHANGED
@@ -13,14 +13,14 @@ const require_density = require("./density-CUp3mMNH.cjs");
13
13
  const require_export_csv = require("./export-csv.cjs");
14
14
  require("./export.cjs");
15
15
  require("./extra-rows.cjs");
16
- const require_filters = require("./filters-B5JX7H8p.cjs");
17
- const require_NaiveFilterSurface = require("./NaiveFilterSurface-DqUmkz-o.cjs");
16
+ const require_filters = require("./filters-DIlfaXQJ.cjs");
17
+ const require_NaiveFilterField = require("./NaiveFilterField-CP2V5YLz.cjs");
18
18
  const require_find_in_table = require("./find-in-table.cjs");
19
19
  require("./fit-columns.cjs");
20
20
  const require_fullscreen = require("./fullscreen.cjs");
21
21
  const require_grouping = require("./grouping.cjs");
22
22
  const require_grouping_panel = require("./grouping-panel-BPaPG49S.cjs");
23
- const require_header_filters = require("./header-filters-C8cAJJ7r.cjs");
23
+ const require_header_filters = require("./header-filters-CvStECsj.cjs");
24
24
  require("./multi-sort.cjs");
25
25
  require("./pinned-summary-rows.cjs");
26
26
  const require_print = require("./print.cjs");
@@ -39,19 +39,20 @@ let _adapttable_vue_features = require("@adapttable/vue/features");
39
39
  let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
40
40
  let _adapttable_vue = require("@adapttable/vue");
41
41
  exports.AgentApproval = require_assistant.AgentApproval;
42
- exports.ChecklistFilter = require_NaiveFilterSurface._sfc_main$1;
42
+ exports.ChecklistFilter = require_NaiveFilterField._sfc_main$2;
43
43
  exports.FilterHeaderControl = require_header_filters._sfc_main$1;
44
44
  exports.FilterHeaderRow = require_header_filters._sfc_main;
45
45
  exports.FilterTreeBuilder = require_filters._sfc_main;
46
46
  exports.NaiveBatchEditBar = require_editing._sfc_main$2;
47
47
  exports.NaiveEditableCell = require_editing._sfc_main$1;
48
- exports.NaiveFilterField = require_NaiveFilterSurface._sfc_main;
48
+ exports.NaiveFilterField = require_NaiveFilterField._sfc_main;
49
49
  exports.NaiveHeaderFilter = require_header_filters._sfc_main$2;
50
50
  exports.NaiveRowEditActions = require_editing._sfc_main;
51
51
  exports.SavedViewsPanel = require_saved_views.SavedViewsPanel;
52
52
  exports.TableAssistant = require_assistant.TableAssistant;
53
53
  exports.agentApproval = require_assistant.agentApproval;
54
54
  exports.batchEditing = require_editing.batchEditing;
55
+ exports.booleanFilterWidget = require_filters.booleanFilterWidget;
55
56
  exports.bulkActions = require_bulk_actions.bulkActions;
56
57
  exports.cellNavigation = require_cell_navigation.cellNavigation;
57
58
  Object.defineProperty(exports, "cellSpan", {
@@ -60,6 +61,7 @@ Object.defineProperty(exports, "cellSpan", {
60
61
  return _adapttable_vue_features.cellSpan;
61
62
  }
62
63
  });
64
+ exports.checklistFilterWidget = require_filters.checklistFilterWidget;
63
65
  Object.defineProperty(exports, "collapsibleColumnGroups", {
64
66
  enumerable: true,
65
67
  get: function() {
@@ -98,6 +100,7 @@ Object.defineProperty(exports, "filterTypes", {
98
100
  }
99
101
  });
100
102
  exports.filters = require_filters.filters;
103
+ exports.filtersWith = require_filters.filtersWith;
101
104
  exports.findInTable = require_find_in_table.findInTable;
102
105
  Object.defineProperty(exports, "fitColumns", {
103
106
  enumerable: true,
@@ -109,6 +112,7 @@ exports.fullscreen = require_fullscreen.fullscreen;
109
112
  exports.grouping = require_grouping.grouping;
110
113
  exports.groupingPanel = require_grouping_panel.groupingPanel;
111
114
  exports.headerFilters = require_header_filters.headerFilters;
115
+ exports.multiSelectFilterWidget = require_filters.multiSelectFilterWidget;
112
116
  Object.defineProperty(exports, "multiSort", {
113
117
  enumerable: true,
114
118
  get: function() {
@@ -134,6 +138,7 @@ Object.defineProperty(exports, "pinnedSummaryRows", {
134
138
  }
135
139
  });
136
140
  exports.print = require_print.print;
141
+ exports.rangeFilterWidget = require_filters.rangeFilterWidget;
137
142
  Object.defineProperty(exports, "resizableColumns", {
138
143
  enumerable: true,
139
144
  get: function() {
@@ -157,10 +162,12 @@ exports.rowEditing = require_editing.rowEditing;
157
162
  exports.rowPinning = require_row_pinning.rowPinning;
158
163
  exports.rowReorder = require_row_reorder.rowReorder;
159
164
  exports.savedViews = require_saved_views.savedViews;
165
+ exports.selectFilterWidget = require_filters.selectFilterWidget;
160
166
  exports.selectionStats = require_status_bar.selectionStats;
161
167
  exports.sidePanel = require_side_panel.sidePanel;
162
168
  exports.statusBar = require_status_bar.statusBar;
163
169
  exports.tableAssistant = require_assistant.tableAssistant;
170
+ exports.textFilterWidget = require_filters.textFilterWidget;
164
171
  Object.defineProperty(exports, "tree", {
165
172
  enumerable: true,
166
173
  get: function() {
@@ -12,7 +12,7 @@ import { densityChooser } from "./density.cjs";
12
12
  import { n as exportCsv } from "./export-csv-DRDjZuQj.cjs";
13
13
  import "./export.cjs";
14
14
  import { extraRows } from "./extra-rows.cjs";
15
- import { a as FilterTypeSpec, c as filters, d as _default, i as FilterTreeBuilderProps, l as _default$3, n as FilterDef, o as FiltersOptions, r as FilterOption, s as filterTypes, t as ChecklistFilterProps, u as _default$6 } from "./filters-C6DvAZ_T.cjs";
15
+ import { _ as textFilterWidget, a as FilterTreeBuilderProps, b as _default, c as FiltersOptions, d as filtersWith, f as booleanFilterWidget, g as selectFilterWidget, h as rangeFilterWidget, i as FilterOption, l as filterTypes, m as multiSelectFilterWidget, n as ChecklistFilterProps, o as FilterTypeSpec, p as checklistFilterWidget, r as FilterDef, s as FilterWidget, t as AdapterFiltersFeature, u as filters, v as _default$3, y as _default$6 } from "./filters-ClqB1_n4.cjs";
16
16
  import { findInTable } from "./find-in-table.cjs";
17
17
  import { fitColumns } from "./fit-columns.cjs";
18
18
  import { fullscreen } from "./fullscreen.cjs";
@@ -38,4 +38,4 @@ import { ColumnMenuSlotProps } from "@adapttable/vue/adapter";
38
38
  import { GroupingExtras } from "@adapttable/vue/features";
39
39
  import { ExportPdfOptions } from "@adapttable/vue/pdf";
40
40
  import { ExportXlsxOptions } from "@adapttable/vue/xlsx";
41
- export { AgentApproval, type AgentApprovalProps, type BatchEditingState, type BatchRowEdit, type CellEdit, type CellEditHandler, type CellNavigationOptions, type CellRange, _default as ChecklistFilter, type ChecklistFilterProps, type ColumnMenuSlotProps, type DataTableClassNames, type EditingLifecycleExtras, type ExportPdfOptions, type ExportXlsxOptions, type FilterDef, _default$1 as FilterHeaderControl, type FilterHeaderControlOptions, type FilterHeaderControlProps, _default$2 as FilterHeaderRow, type FilterHeaderRowProps, type FilterOption, _default$3 as FilterTreeBuilder, type FilterTreeBuilderProps, type FilterTypeSpec, type FiltersOptions, type GridCell, type GroupCollapseOptions, type GroupNode, type GroupSort, type GroupingExtras, type GroupingPanelProps, _default$4 as NaiveBatchEditBar, _default$5 as NaiveEditableCell, _default$6 as NaiveFilterField, _default$7 as NaiveHeaderFilter, _default$8 as NaiveRowEditActions, type NestedTable, type NestedTableFor, type RowEditIcons, type RowEditingState, type RowExpansionOptions, type RowReorderHandler, type RowReorderOptions, type SavedView, SavedViewsPanel, SavedViewsPanelProps, type SavedViewsStore, type StaticGroupingExtras, TableAssistant, type TableAssistantProps, type TableEditingOptions, type TableRowDetail, type TableTree, type TreeExpansionOptions, type TreeFeatureOptions, type UseSavedViewsOptions, type VirtualizeOptions, agentApproval, batchEditing, bulkActions, cellNavigation, cellSpan, collapsibleColumnGroups, columnMenu, columnSelectionCheckbox, commandPalette, contextMenu, densityChooser, dirtyIndicators, editHistory, editing, exportCsv, extraRows, filterTypes, filters, findInTable, fitColumns, fullscreen, grouping, groupingPanel, headerFilters, multiSort, nestedTable, nestedTableDetail, pinnedSummaryRows, print, resizableColumns, rowActions, rowAppearance, rowDetail, rowEditing, rowPinning, rowReorder, savedViews, selectionStats, sidePanel, statusBar, tableAssistant, tree, undoRedoButtons, useGroupCollapse, useGroupCollapseUrlState, useGroupPaging, useLazyChildren, useRowExpansion, useRowReorder, useTreeExpansion, virtualize };
41
+ export { type AdapterFiltersFeature, AgentApproval, type AgentApprovalProps, type BatchEditingState, type BatchRowEdit, type CellEdit, type CellEditHandler, type CellNavigationOptions, type CellRange, _default as ChecklistFilter, type ChecklistFilterProps, type ColumnMenuSlotProps, type DataTableClassNames, type EditingLifecycleExtras, type ExportPdfOptions, type ExportXlsxOptions, type FilterDef, _default$1 as FilterHeaderControl, type FilterHeaderControlOptions, type FilterHeaderControlProps, _default$2 as FilterHeaderRow, type FilterHeaderRowProps, type FilterOption, _default$3 as FilterTreeBuilder, type FilterTreeBuilderProps, type FilterTypeSpec, type FilterWidget, type FiltersOptions, type GridCell, type GroupCollapseOptions, type GroupNode, type GroupSort, type GroupingExtras, type GroupingPanelProps, _default$4 as NaiveBatchEditBar, _default$5 as NaiveEditableCell, _default$6 as NaiveFilterField, _default$7 as NaiveHeaderFilter, _default$8 as NaiveRowEditActions, type NestedTable, type NestedTableFor, type RowEditIcons, type RowEditingState, type RowExpansionOptions, type RowReorderHandler, type RowReorderOptions, type SavedView, SavedViewsPanel, SavedViewsPanelProps, type SavedViewsStore, type StaticGroupingExtras, TableAssistant, type TableAssistantProps, type TableEditingOptions, type TableRowDetail, type TableTree, type TreeExpansionOptions, type TreeFeatureOptions, type UseSavedViewsOptions, type VirtualizeOptions, agentApproval, batchEditing, booleanFilterWidget, bulkActions, cellNavigation, cellSpan, checklistFilterWidget, collapsibleColumnGroups, columnMenu, columnSelectionCheckbox, commandPalette, contextMenu, densityChooser, dirtyIndicators, editHistory, editing, exportCsv, extraRows, filterTypes, filters, filtersWith, findInTable, fitColumns, fullscreen, grouping, groupingPanel, headerFilters, multiSelectFilterWidget, multiSort, nestedTable, nestedTableDetail, pinnedSummaryRows, print, rangeFilterWidget, resizableColumns, rowActions, rowAppearance, rowDetail, rowEditing, rowPinning, rowReorder, savedViews, selectFilterWidget, selectionStats, sidePanel, statusBar, tableAssistant, textFilterWidget, tree, undoRedoButtons, useGroupCollapse, useGroupCollapseUrlState, useGroupPaging, useLazyChildren, useRowExpansion, useRowReorder, useTreeExpansion, virtualize };
@@ -12,7 +12,7 @@ import { densityChooser } from "./density.js";
12
12
  import { n as exportCsv } from "./export-csv-BU39yRSN.js";
13
13
  import "./export.js";
14
14
  import { extraRows } from "./extra-rows.js";
15
- import { a as FilterTypeSpec, c as filters, d as _default, i as FilterTreeBuilderProps, l as _default$3, n as FilterDef, o as FiltersOptions, r as FilterOption, s as filterTypes, t as ChecklistFilterProps, u as _default$6 } from "./filters-BJ48GzqJ.js";
15
+ import { _ as textFilterWidget, a as FilterTreeBuilderProps, b as _default, c as FiltersOptions, d as filtersWith, f as booleanFilterWidget, g as selectFilterWidget, h as rangeFilterWidget, i as FilterOption, l as filterTypes, m as multiSelectFilterWidget, n as ChecklistFilterProps, o as FilterTypeSpec, p as checklistFilterWidget, r as FilterDef, s as FilterWidget, t as AdapterFiltersFeature, u as filters, v as _default$3, y as _default$6 } from "./filters-b2ZuVZPI.js";
16
16
  import { findInTable } from "./find-in-table.js";
17
17
  import { fitColumns } from "./fit-columns.js";
18
18
  import { fullscreen } from "./fullscreen.js";
@@ -38,4 +38,4 @@ import { ColumnMenuSlotProps } from "@adapttable/vue/adapter";
38
38
  import { GroupingExtras } from "@adapttable/vue/features";
39
39
  import { ExportPdfOptions } from "@adapttable/vue/pdf";
40
40
  import { ExportXlsxOptions } from "@adapttable/vue/xlsx";
41
- export { AgentApproval, type AgentApprovalProps, type BatchEditingState, type BatchRowEdit, type CellEdit, type CellEditHandler, type CellNavigationOptions, type CellRange, _default as ChecklistFilter, type ChecklistFilterProps, type ColumnMenuSlotProps, type DataTableClassNames, type EditingLifecycleExtras, type ExportPdfOptions, type ExportXlsxOptions, type FilterDef, _default$1 as FilterHeaderControl, type FilterHeaderControlOptions, type FilterHeaderControlProps, _default$2 as FilterHeaderRow, type FilterHeaderRowProps, type FilterOption, _default$3 as FilterTreeBuilder, type FilterTreeBuilderProps, type FilterTypeSpec, type FiltersOptions, type GridCell, type GroupCollapseOptions, type GroupNode, type GroupSort, type GroupingExtras, type GroupingPanelProps, _default$4 as NaiveBatchEditBar, _default$5 as NaiveEditableCell, _default$6 as NaiveFilterField, _default$7 as NaiveHeaderFilter, _default$8 as NaiveRowEditActions, type NestedTable, type NestedTableFor, type RowEditIcons, type RowEditingState, type RowExpansionOptions, type RowReorderHandler, type RowReorderOptions, type SavedView, SavedViewsPanel, SavedViewsPanelProps, type SavedViewsStore, type StaticGroupingExtras, TableAssistant, type TableAssistantProps, type TableEditingOptions, type TableRowDetail, type TableTree, type TreeExpansionOptions, type TreeFeatureOptions, type UseSavedViewsOptions, type VirtualizeOptions, agentApproval, batchEditing, bulkActions, cellNavigation, cellSpan, collapsibleColumnGroups, columnMenu, columnSelectionCheckbox, commandPalette, contextMenu, densityChooser, dirtyIndicators, editHistory, editing, exportCsv, extraRows, filterTypes, filters, findInTable, fitColumns, fullscreen, grouping, groupingPanel, headerFilters, multiSort, nestedTable, nestedTableDetail, pinnedSummaryRows, print, resizableColumns, rowActions, rowAppearance, rowDetail, rowEditing, rowPinning, rowReorder, savedViews, selectionStats, sidePanel, statusBar, tableAssistant, tree, undoRedoButtons, useGroupCollapse, useGroupCollapseUrlState, useGroupPaging, useLazyChildren, useRowExpansion, useRowReorder, useTreeExpansion, virtualize };
41
+ export { type AdapterFiltersFeature, AgentApproval, type AgentApprovalProps, type BatchEditingState, type BatchRowEdit, type CellEdit, type CellEditHandler, type CellNavigationOptions, type CellRange, _default as ChecklistFilter, type ChecklistFilterProps, type ColumnMenuSlotProps, type DataTableClassNames, type EditingLifecycleExtras, type ExportPdfOptions, type ExportXlsxOptions, type FilterDef, _default$1 as FilterHeaderControl, type FilterHeaderControlOptions, type FilterHeaderControlProps, _default$2 as FilterHeaderRow, type FilterHeaderRowProps, type FilterOption, _default$3 as FilterTreeBuilder, type FilterTreeBuilderProps, type FilterTypeSpec, type FilterWidget, type FiltersOptions, type GridCell, type GroupCollapseOptions, type GroupNode, type GroupSort, type GroupingExtras, type GroupingPanelProps, _default$4 as NaiveBatchEditBar, _default$5 as NaiveEditableCell, _default$6 as NaiveFilterField, _default$7 as NaiveHeaderFilter, _default$8 as NaiveRowEditActions, type NestedTable, type NestedTableFor, type RowEditIcons, type RowEditingState, type RowExpansionOptions, type RowReorderHandler, type RowReorderOptions, type SavedView, SavedViewsPanel, SavedViewsPanelProps, type SavedViewsStore, type StaticGroupingExtras, TableAssistant, type TableAssistantProps, type TableEditingOptions, type TableRowDetail, type TableTree, type TreeExpansionOptions, type TreeFeatureOptions, type UseSavedViewsOptions, type VirtualizeOptions, agentApproval, batchEditing, booleanFilterWidget, bulkActions, cellNavigation, cellSpan, checklistFilterWidget, collapsibleColumnGroups, columnMenu, columnSelectionCheckbox, commandPalette, contextMenu, densityChooser, dirtyIndicators, editHistory, editing, exportCsv, extraRows, filterTypes, filters, filtersWith, findInTable, fitColumns, fullscreen, grouping, groupingPanel, headerFilters, multiSelectFilterWidget, multiSort, nestedTable, nestedTableDetail, pinnedSummaryRows, print, rangeFilterWidget, resizableColumns, rowActions, rowAppearance, rowDetail, rowEditing, rowPinning, rowReorder, savedViews, selectFilterWidget, selectionStats, sidePanel, statusBar, tableAssistant, textFilterWidget, tree, undoRedoButtons, useGroupCollapse, useGroupCollapseUrlState, useGroupPaging, useLazyChildren, useRowExpansion, useRowReorder, useTreeExpansion, virtualize };
package/dist/features.js CHANGED
@@ -12,14 +12,14 @@ import { t as densityChooser } from "./density-C7K5aGdQ.js";
12
12
  import { exportCsv } from "./export-csv.js";
13
13
  import "./export.js";
14
14
  import { extraRows } from "./extra-rows.js";
15
- import { n as filters, r as _sfc_main$3, t as filterTypes } from "./filters-DipcT7-T.js";
16
- import { n as _sfc_main$6, r as _sfc_main } from "./NaiveFilterSurface-CnhNSSF1.js";
15
+ import { a as checklistFilterWidget, c as selectFilterWidget, i as booleanFilterWidget, l as textFilterWidget, n as filters, o as multiSelectFilterWidget, r as filtersWith, s as rangeFilterWidget, t as filterTypes, u as _sfc_main$3 } from "./filters-Cy170_qU.js";
16
+ import { r as _sfc_main, t as _sfc_main$6 } from "./NaiveFilterField-SRraOkWU.js";
17
17
  import { findInTable } from "./find-in-table.js";
18
18
  import { fitColumns } from "./fit-columns.js";
19
19
  import { fullscreen } from "./fullscreen.js";
20
20
  import { grouping, useGroupCollapse, useGroupCollapseUrlState, useGroupPaging } from "./grouping.js";
21
21
  import { t as groupingPanel } from "./grouping-panel-CYUPSa0u.js";
22
- import { i as _sfc_main$7, n as _sfc_main$2, r as _sfc_main$1, t as headerFilters } from "./header-filters-CWad6foD.js";
22
+ import { i as _sfc_main$7, n as _sfc_main$2, r as _sfc_main$1, t as headerFilters } from "./header-filters-Bxb3snYP.js";
23
23
  import { multiSort } from "./multi-sort.js";
24
24
  import { pinnedSummaryRows } from "./pinned-summary-rows.js";
25
25
  import { print } from "./print.js";
@@ -34,4 +34,4 @@ import { t as sidePanel } from "./side-panel-CLTgXUnb.js";
34
34
  import { selectionStats, statusBar } from "./status-bar.js";
35
35
  import { tree, useLazyChildren, useTreeExpansion } from "./tree.js";
36
36
  import { virtualize } from "./virtualize.js";
37
- export { AgentApproval, _sfc_main as ChecklistFilter, _sfc_main$1 as FilterHeaderControl, _sfc_main$2 as FilterHeaderRow, _sfc_main$3 as FilterTreeBuilder, _sfc_main$4 as NaiveBatchEditBar, _sfc_main$5 as NaiveEditableCell, _sfc_main$6 as NaiveFilterField, _sfc_main$7 as NaiveHeaderFilter, _sfc_main$8 as NaiveRowEditActions, SavedViewsPanel, TableAssistant, agentApproval, batchEditing, bulkActions, cellNavigation, cellSpan, collapsibleColumnGroups, columnMenu, columnSelectionCheckbox, commandPalette, contextMenu, densityChooser, dirtyIndicators, editHistory, editing, exportCsv, extraRows, filterTypes, filters, findInTable, fitColumns, fullscreen, grouping, groupingPanel, headerFilters, multiSort, nestedTable, nestedTableDetail, pinnedSummaryRows, print, resizableColumns, rowActions, rowAppearance, rowDetail, rowEditing, rowPinning, rowReorder, savedViews, selectionStats, sidePanel, statusBar, tableAssistant, tree, undoRedoButtons, useGroupCollapse, useGroupCollapseUrlState, useGroupPaging, useLazyChildren, useRowExpansion, useRowReorder, useTreeExpansion, virtualize };
37
+ export { AgentApproval, _sfc_main as ChecklistFilter, _sfc_main$1 as FilterHeaderControl, _sfc_main$2 as FilterHeaderRow, _sfc_main$3 as FilterTreeBuilder, _sfc_main$4 as NaiveBatchEditBar, _sfc_main$5 as NaiveEditableCell, _sfc_main$6 as NaiveFilterField, _sfc_main$7 as NaiveHeaderFilter, _sfc_main$8 as NaiveRowEditActions, SavedViewsPanel, TableAssistant, agentApproval, batchEditing, booleanFilterWidget, bulkActions, cellNavigation, cellSpan, checklistFilterWidget, collapsibleColumnGroups, columnMenu, columnSelectionCheckbox, commandPalette, contextMenu, densityChooser, dirtyIndicators, editHistory, editing, exportCsv, extraRows, filterTypes, filters, filtersWith, findInTable, fitColumns, fullscreen, grouping, groupingPanel, headerFilters, multiSelectFilterWidget, multiSort, nestedTable, nestedTableDetail, pinnedSummaryRows, print, rangeFilterWidget, resizableColumns, rowActions, rowAppearance, rowDetail, rowEditing, rowPinning, rowReorder, savedViews, selectFilterWidget, selectionStats, sidePanel, statusBar, tableAssistant, textFilterWidget, tree, undoRedoButtons, useGroupCollapse, useGroupCollapseUrlState, useGroupPaging, useLazyChildren, useRowExpansion, useRowReorder, useTreeExpansion, virtualize };
@@ -1,6 +1,6 @@
1
- import { FilterDef, FilterDef as FilterDef$1, FilterOption, FilterTypeSpec, TableFeature } from "@adapttable/vue";
2
- import { ChecklistFilterProps, ChecklistFilterProps as ChecklistFilterProps$1, FilterFieldOptions, FilterTreeBuilderProps, FilterTreeBuilderProps as FilterTreeBuilderProps$1 } from "@adapttable/vue/adapter";
3
- import { FiltersOptions, FiltersOptions as FiltersOptions$1, filterTypes } from "@adapttable/vue/features";
1
+ import { FilterDef as FilterDef$1, FilterOption, FilterTypeSpec } from "@adapttable/vue";
2
+ import { AdapterFiltersFeature, AdapterFiltersFeature as AdapterFiltersFeature$1, ChecklistFilterProps, ChecklistFilterProps as ChecklistFilterProps$1, FilterFieldOptions, FilterTreeBuilderProps, FilterTreeBuilderProps as FilterTreeBuilderProps$1, FilterWidget, FilterWidget as FilterWidget$1 } from "@adapttable/vue/adapter";
3
+ import { FiltersOptions, filterTypes } from "@adapttable/vue/features";
4
4
  //#region src/filters/NaiveChecklistFilter.vue.d.ts
5
5
  declare const __VLS_export$2: <TRow>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$2<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
6
  props: import("vue").PublicProps & __VLS_PrettifyLocal$2<{
@@ -58,9 +58,33 @@ declare const __VLS_export: <TRow>(__VLS_props: NonNullable<Awaited<typeof __VLS
58
58
  declare const _default: typeof __VLS_export;
59
59
  type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
60
60
  //#endregion
61
+ //#region src/filters/widgets.d.ts
62
+ /** The Naive UI text filter: its operator and its value. @public */
63
+ declare const textFilterWidget: FilterWidget;
64
+ /** The Naive UI yes/no filter. @public */
65
+ declare const booleanFilterWidget: FilterWidget;
66
+ /** The Naive UI single-choice filter. @public */
67
+ declare const selectFilterWidget: FilterWidget;
68
+ /** The Naive UI multiple-choice filter. @public */
69
+ declare const multiSelectFilterWidget: FilterWidget;
70
+ /** The Naive UI searchable checklist filter. @public */
71
+ declare const checklistFilterWidget: FilterWidget;
72
+ /** The Naive UI operator-first number and date range filter. @public */
73
+ declare const rangeFilterWidget: FilterWidget;
74
+ //#endregion
61
75
  //#region src/filters.d.ts
62
- /** Naive fields and vendor overlays over the binding's filter state. */
63
- declare function filters$1<TRow>(defs?: readonly FilterDef<TRow>[], options?: FiltersOptions): TableFeature<TRow>;
76
+ /**
77
+ * Declarative filters whose fields are drawn with only the given widgets, so
78
+ * the widgets a table never shows stay out of its bundle. A filter whose
79
+ * widget is missing throws when its field draws.
80
+ *
81
+ * @param widgets - The widgets to draw fields with, such as `textFilterWidget`.
82
+ *
83
+ * @public
84
+ */
85
+ declare function filtersWith(widgets: readonly FilterWidget[]): AdapterFiltersFeature;
86
+ /** Declarative filters with this kit's chip strip, panel and every widget. @public */
87
+ declare const filters: AdapterFiltersFeature;
64
88
  //#endregion
65
- export { FilterTypeSpec as a, filters$1 as c, _default$2 as d, FilterTreeBuilderProps$1 as i, _default as l, FilterDef$1 as n, FiltersOptions$1 as o, FilterOption as r, filterTypes as s, ChecklistFilterProps$1 as t, _default$1 as u };
66
- //# sourceMappingURL=filters-BJ48GzqJ.d.ts.map
89
+ export { textFilterWidget as _, FilterTreeBuilderProps$1 as a, _default$2 as b, FiltersOptions as c, filtersWith as d, booleanFilterWidget as f, selectFilterWidget as g, rangeFilterWidget as h, FilterOption as i, filterTypes as l, multiSelectFilterWidget as m, ChecklistFilterProps$1 as n, FilterTypeSpec as o, checklistFilterWidget as p, FilterDef$1 as r, FilterWidget$1 as s, AdapterFiltersFeature$1 as t, filters as u, _default as v, _default$1 as y };
90
+ //# sourceMappingURL=filters-ClqB1_n4.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filters-ClqB1_n4.d.cts","names":[],"sources":["../src/filters/NaiveChecklistFilter.vue","../src/filters/NaiveFilterField.vue","../src/filters/NaiveFilterTree.vue","../src/filters/widgets.ts","../src/filters.ts"],"mappings":";;;;cA2EM,iBAAiB,MACtB,aAAa,YAAY,eAAe,wBACxC,YAAY,sBAAoB,KAAK,YAAY,eAAe,6CAChE,gBAAgB,YAAY,eAAe,yBAC3C,cAAA;EAwEO,qBAAc,cAAc;aArEpB,KAAA,qBAAqB;aAClB,QAAA,qBAAqB;aACpB,SAAA,YAAY,qB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