@adapttable/element-plus 0.5.0 → 0.6.1
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.
- package/README.md +11 -8
- package/dist/{ElementRowActions-CUlFbY6s.js → ElementRowActions-CUdXemC-.js} +2 -2
- package/dist/ElementRowActions-CUdXemC-.js.map +1 -0
- package/dist/{ElementRowActions-ClYC3Ssq.cjs → ElementRowActions-XyX2PAWL.cjs} +2 -2
- package/dist/ElementRowActions-XyX2PAWL.cjs.map +1 -0
- package/dist/assistant.cjs +309 -5
- package/dist/assistant.cjs.map +1 -0
- package/dist/assistant.js +305 -1
- package/dist/assistant.js.map +1 -0
- package/dist/batch-editing.cjs +1 -1
- package/dist/batch-editing.d.cts +1 -1
- package/dist/batch-editing.d.ts +1 -1
- package/dist/batch-editing.js +1 -1
- package/dist/cell-navigation-DJ-_1Mjr.cjs.map +1 -1
- package/dist/cell-navigation-arDY86xD.js.map +1 -1
- package/dist/cell-navigation.d.cts +1 -1
- package/dist/cell-navigation.d.cts.map +1 -1
- package/dist/cell-navigation.d.ts +1 -1
- package/dist/cell-navigation.d.ts.map +1 -1
- package/dist/column-layout.cjs +24 -0
- package/dist/column-layout.cjs.map +1 -0
- package/dist/column-layout.d.cts +12 -0
- package/dist/column-layout.d.cts.map +1 -0
- package/dist/column-layout.d.ts +12 -0
- package/dist/column-layout.d.ts.map +1 -0
- package/dist/column-layout.js +22 -0
- package/dist/column-layout.js.map +1 -0
- package/dist/{column-menu-jNw7kuxp.cjs → column-menu-CqyYtohz.cjs} +3 -3
- package/dist/{column-menu-jNw7kuxp.cjs.map → column-menu-CqyYtohz.cjs.map} +1 -1
- package/dist/{column-menu-BUxMPyJI.js → column-menu-CwTWnahc.js} +3 -3
- package/dist/{column-menu-BUxMPyJI.js.map → column-menu-CwTWnahc.js.map} +1 -1
- package/dist/column-menu.cjs +1 -1
- package/dist/column-menu.d.cts +34 -2
- package/dist/column-menu.d.cts.map +1 -0
- package/dist/column-menu.d.ts +34 -2
- package/dist/column-menu.d.ts.map +1 -0
- package/dist/column-menu.js +1 -1
- package/dist/{editing-DHjzbw-I.js → editing-BlpYR839.js} +19 -5
- package/dist/{editing-DHjzbw-I.js.map → editing-BlpYR839.js.map} +1 -1
- package/dist/{editing-Bhw_4VG8.cjs → editing-CSqZENeW.cjs} +23 -3
- package/dist/editing-CSqZENeW.cjs.map +1 -0
- package/dist/{editing-BnLdNDlo.d.ts → editing-CU4pOLjr.d.ts} +10 -2
- package/dist/{editing-BnLdNDlo.d.ts.map → editing-CU4pOLjr.d.ts.map} +1 -1
- package/dist/{editing-Cg6ZNvSa.d.cts → editing-DJrjZjpu.d.cts} +10 -2
- package/dist/{editing-Cg6ZNvSa.d.cts.map → editing-DJrjZjpu.d.cts.map} +1 -1
- package/dist/editing.cjs +4 -13
- package/dist/editing.d.cts +2 -2
- package/dist/editing.d.ts +2 -2
- package/dist/editing.js +2 -2
- package/dist/export-kuOvIoQg.js +10 -0
- package/dist/export-kuOvIoQg.js.map +1 -0
- package/dist/{export-csv.cjs → export-x-Ow8SY5.cjs} +7 -3
- package/dist/export-x-Ow8SY5.cjs.map +1 -0
- package/dist/export.cjs +2 -2
- package/dist/export.d.cts +9 -2
- package/dist/export.d.cts.map +1 -0
- package/dist/export.d.ts +9 -2
- package/dist/export.d.ts.map +1 -0
- package/dist/export.js +1 -1
- package/dist/filtering.cjs +22 -0
- package/dist/filtering.cjs.map +1 -0
- package/dist/filtering.d.cts +13 -0
- package/dist/filtering.d.cts.map +1 -0
- package/dist/filtering.d.ts +13 -0
- package/dist/filtering.d.ts.map +1 -0
- package/dist/filtering.js +21 -0
- package/dist/filtering.js.map +1 -0
- package/dist/{filters-C0YXpD3-.js → filters-CIQ1uMZw.js} +6 -5
- package/dist/filters-CIQ1uMZw.js.map +1 -0
- package/dist/{filters-hVQM8Cok.cjs → filters-CYQFsZ_f.cjs} +5 -4
- package/dist/filters-CYQFsZ_f.cjs.map +1 -0
- package/dist/filters.cjs +1 -1
- package/dist/filters.d.cts +77 -2
- package/dist/filters.d.cts.map +1 -0
- package/dist/filters.d.ts +77 -2
- package/dist/filters.d.ts.map +1 -0
- package/dist/filters.js +1 -1
- package/dist/grouping-panel.cjs +145 -3
- package/dist/grouping-panel.cjs.map +1 -0
- package/dist/grouping-panel.js +145 -2
- package/dist/grouping-panel.js.map +1 -0
- package/dist/header-filters.d.cts +23 -2
- package/dist/header-filters.d.cts.map +1 -0
- package/dist/header-filters.d.ts +23 -2
- package/dist/header-filters.d.ts.map +1 -0
- package/dist/index.cjs +2 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -26
- package/dist/index.js.map +1 -1
- package/dist/preset.cjs +8 -9
- package/dist/preset.cjs.map +1 -1
- package/dist/preset.js +7 -8
- package/dist/preset.js.map +1 -1
- package/dist/row-actions.cjs +1 -1
- package/dist/row-actions.d.cts +7 -2
- package/dist/row-actions.d.cts.map +1 -0
- package/dist/row-actions.d.ts +7 -2
- package/dist/row-actions.d.ts.map +1 -0
- package/dist/row-actions.js +1 -1
- package/dist/row-pinning.cjs +1 -1
- package/dist/row-pinning.d.cts +8 -2
- package/dist/row-pinning.d.cts.map +1 -0
- package/dist/row-pinning.d.ts +8 -2
- package/dist/row-pinning.d.ts.map +1 -0
- package/dist/row-pinning.js +1 -1
- package/dist/row-reorder.cjs +155 -2
- package/dist/row-reorder.cjs.map +1 -0
- package/dist/row-reorder.d.cts +2 -1
- package/dist/row-reorder.d.cts.map +1 -1
- package/dist/row-reorder.d.ts +2 -1
- package/dist/row-reorder.d.ts.map +1 -1
- package/dist/row-reorder.js +156 -1
- package/dist/row-reorder.js.map +1 -0
- package/dist/rows.d.cts +2 -2
- package/dist/rows.d.ts +2 -2
- package/dist/selection.cjs +8 -0
- package/dist/selection.d.cts +2 -0
- package/dist/selection.d.ts +2 -0
- package/dist/selection.js +2 -0
- package/dist/styles.css +57 -57
- package/package.json +33 -23
- package/dist/ElementRowActions-CUlFbY6s.js.map +0 -1
- package/dist/ElementRowActions-ClYC3Ssq.cjs.map +0 -1
- package/dist/assistant-D4l4OdXN.cjs +0 -329
- package/dist/assistant-D4l4OdXN.cjs.map +0 -1
- package/dist/assistant-DRDxJajO.js +0 -306
- package/dist/assistant-DRDxJajO.js.map +0 -1
- package/dist/column-menu-CAkx6AjR.d.ts +0 -33
- package/dist/column-menu-CAkx6AjR.d.ts.map +0 -1
- package/dist/column-menu-DsL_xeEM.d.cts +0 -33
- package/dist/column-menu-DsL_xeEM.d.cts.map +0 -1
- package/dist/editing-Bhw_4VG8.cjs.map +0 -1
- package/dist/export-csv-DRDjZuQj.d.cts +0 -9
- package/dist/export-csv-DRDjZuQj.d.cts.map +0 -1
- package/dist/export-csv-VyICO_s0.d.ts +0 -9
- package/dist/export-csv-VyICO_s0.d.ts.map +0 -1
- package/dist/export-csv.cjs.map +0 -1
- package/dist/export-csv.d.cts +0 -2
- package/dist/export-csv.d.ts +0 -2
- package/dist/export-csv.js +0 -10
- package/dist/export-csv.js.map +0 -1
- package/dist/features.cjs +0 -220
- package/dist/features.d.cts +0 -36
- package/dist/features.d.ts +0 -36
- package/dist/features.js +0 -32
- package/dist/filters-C0YXpD3-.js.map +0 -1
- package/dist/filters-Ci3fdJMe.d.cts +0 -77
- package/dist/filters-Ci3fdJMe.d.cts.map +0 -1
- package/dist/filters-Dh2MjW9V.d.ts +0 -77
- package/dist/filters-Dh2MjW9V.d.ts.map +0 -1
- package/dist/filters-hVQM8Cok.cjs.map +0 -1
- package/dist/grouping-panel-B7j8sSpT.js +0 -146
- package/dist/grouping-panel-B7j8sSpT.js.map +0 -1
- package/dist/grouping-panel-B_ibl915.cjs +0 -150
- package/dist/grouping-panel-B_ibl915.cjs.map +0 -1
- package/dist/header-filters-B2B5RqQS.d.ts +0 -24
- package/dist/header-filters-B2B5RqQS.d.ts.map +0 -1
- package/dist/header-filters-hGm_7LFO.d.cts +0 -24
- package/dist/header-filters-hGm_7LFO.d.cts.map +0 -1
- package/dist/row-actions-VRa4T6oF.d.cts +0 -7
- package/dist/row-actions-VRa4T6oF.d.cts.map +0 -1
- package/dist/row-actions-VRa4T6oF.d.ts +0 -7
- package/dist/row-actions-VRa4T6oF.d.ts.map +0 -1
- package/dist/row-pinning-B0WfYDZD.d.ts +0 -8
- package/dist/row-pinning-B0WfYDZD.d.ts.map +0 -1
- package/dist/row-pinning-LzBZmZcZ.d.cts +0 -8
- package/dist/row-pinning-LzBZmZcZ.d.cts.map +0 -1
- package/dist/row-reorder-BYwX3CBP.js +0 -157
- package/dist/row-reorder-BYwX3CBP.js.map +0 -1
- package/dist/row-reorder-MSR2yDN6.cjs +0 -161
- package/dist/row-reorder-MSR2yDN6.cjs.map +0 -1
package/dist/editing.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as RowEditIcons, c as batchEditing, d as editing, f as
|
|
2
|
-
export { type BatchEditingState, type BatchRowEdit, type CellEditHandler, type EditingLifecycleExtras, _default as ElementBatchEditBar, _default$1 as ElementEditableCell, _default$2 as ElementRowEditActions, type RowEditIcons, type RowEditingState, type TableEditingOptions, batchEditing, dirtyIndicators, editHistory, editing, rowEditing, undoRedoButtons };
|
|
1
|
+
import { _ as _default$1, a as RowEditIcons, c as batchEditing, d as editing, f as editingFamily, g as _default, h as _default$2, i as EditingLifecycleExtras, l as dirtyIndicators, m as undoRedoButtons, n as BatchRowEdit, o as RowEditingState, p as rowEditing, r as CellEditHandler, s as TableEditingOptions, t as BatchEditingState, u as editHistory } from "./editing-DJrjZjpu.cjs";
|
|
2
|
+
export { type BatchEditingState, type BatchRowEdit, type CellEditHandler, type EditingLifecycleExtras, _default as ElementBatchEditBar, _default$1 as ElementEditableCell, _default$2 as ElementRowEditActions, type RowEditIcons, type RowEditingState, type TableEditingOptions, batchEditing, dirtyIndicators, editHistory, editing, editingFamily, rowEditing, undoRedoButtons };
|
package/dist/editing.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as RowEditIcons, c as batchEditing, d as editing, f as
|
|
2
|
-
export { type BatchEditingState, type BatchRowEdit, type CellEditHandler, type EditingLifecycleExtras, _default as ElementBatchEditBar, _default$1 as ElementEditableCell, _default$2 as ElementRowEditActions, type RowEditIcons, type RowEditingState, type TableEditingOptions, batchEditing, dirtyIndicators, editHistory, editing, rowEditing, undoRedoButtons };
|
|
1
|
+
import { _ as _default$1, a as RowEditIcons, c as batchEditing, d as editing, f as editingFamily, g as _default, h as _default$2, i as EditingLifecycleExtras, l as dirtyIndicators, m as undoRedoButtons, n as BatchRowEdit, o as RowEditingState, p as rowEditing, r as CellEditHandler, s as TableEditingOptions, t as BatchEditingState, u as editHistory } from "./editing-CU4pOLjr.js";
|
|
2
|
+
export { type BatchEditingState, type BatchRowEdit, type CellEditHandler, type EditingLifecycleExtras, _default as ElementBatchEditBar, _default$1 as ElementEditableCell, _default$2 as ElementRowEditActions, type RowEditIcons, type RowEditingState, type TableEditingOptions, batchEditing, dirtyIndicators, editHistory, editing, editingFamily, rowEditing, undoRedoButtons };
|
package/dist/editing.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { _sfc_main as ElementBatchEditBar, _sfc_main$1 as ElementEditableCell, _sfc_main$2 as ElementRowEditActions, batchEditing, dirtyIndicators, editHistory, editing, rowEditing, undoRedoButtons };
|
|
1
|
+
import { a as editingFamily, c as _sfc_main$2, i as editing, l as _sfc_main, n as dirtyIndicators, o as rowEditing, r as editHistory, s as undoRedoButtons, t as batchEditing, u as _sfc_main$1 } from "./editing-BlpYR839.js";
|
|
2
|
+
export { _sfc_main as ElementBatchEditBar, _sfc_main$1 as ElementEditableCell, _sfc_main$2 as ElementRowEditActions, batchEditing, dirtyIndicators, editHistory, editing, editingFamily, rowEditing, undoRedoButtons };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { t as withElementExport } from "./withElementExport-B97s6RIr.js";
|
|
2
|
+
import { exportCsv } from "@adapttable/vue/features";
|
|
3
|
+
//#region src/export-csv.ts
|
|
4
|
+
function exportCsv$1(options = true) {
|
|
5
|
+
return withElementExport(exportCsv(options));
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { exportCsv$1 as t };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=export-kuOvIoQg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-kuOvIoQg.js","names":["exportCsv","bindingExport"],"sources":["../src/export-csv.ts"],"sourcesContent":["import type { StaticTableFeature, TableFeature } from \"@adapttable/vue\";\nimport {\n exportCsv as bindingExport,\n type ExportCsvOptions,\n} from \"@adapttable/vue/features\";\n\nimport { withElementExport } from \"./export/withElementExport\";\n\n/** Export the current view as CSV through the binding's cancellable export model. */\nexport function exportCsv(options?: boolean): StaticTableFeature;\nexport function exportCsv<TRow>(\n options?: boolean | ExportCsvOptions<TRow>\n): TableFeature<TRow>;\nexport function exportCsv<TRow>(\n options: boolean | ExportCsvOptions<TRow> = true\n): TableFeature<TRow> {\n return withElementExport(bindingExport<TRow>(options));\n}\nexport type { ExportCsvOptions } from \"@adapttable/vue/features\";\n"],"mappings":";;;AAaA,SAAgBA,YACd,UAA4C,MACxB;CACpB,OAAO,kBAAkBC,UAAoB,OAAO,CAAC;AACvD"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
1
|
const require_withElementExport = require("./withElementExport-J-6vXfL9.cjs");
|
|
3
2
|
let _adapttable_vue_features = require("@adapttable/vue/features");
|
|
4
3
|
//#region src/export-csv.ts
|
|
@@ -6,6 +5,11 @@ function exportCsv(options = true) {
|
|
|
6
5
|
return require_withElementExport.withElementExport((0, _adapttable_vue_features.exportCsv)(options));
|
|
7
6
|
}
|
|
8
7
|
//#endregion
|
|
9
|
-
exports
|
|
8
|
+
Object.defineProperty(exports, "exportCsv", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function() {
|
|
11
|
+
return exportCsv;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
10
14
|
|
|
11
|
-
//# sourceMappingURL=export-
|
|
15
|
+
//# sourceMappingURL=export-x-Ow8SY5.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-x-Ow8SY5.cjs","names":["withElementExport","bindingExport"],"sources":["../src/export-csv.ts"],"sourcesContent":["import type { StaticTableFeature, TableFeature } from \"@adapttable/vue\";\nimport {\n exportCsv as bindingExport,\n type ExportCsvOptions,\n} from \"@adapttable/vue/features\";\n\nimport { withElementExport } from \"./export/withElementExport\";\n\n/** Export the current view as CSV through the binding's cancellable export model. */\nexport function exportCsv(options?: boolean): StaticTableFeature;\nexport function exportCsv<TRow>(\n options?: boolean | ExportCsvOptions<TRow>\n): TableFeature<TRow>;\nexport function exportCsv<TRow>(\n options: boolean | ExportCsvOptions<TRow> = true\n): TableFeature<TRow> {\n return withElementExport(bindingExport<TRow>(options));\n}\nexport type { ExportCsvOptions } from \"@adapttable/vue/features\";\n"],"mappings":";;;AAaA,SAAgB,UACd,UAA4C,MACxB;CACpB,OAAOA,0BAAAA,mBAAAA,GAAkBC,yBAAAA,UAAAA,CAAoB,OAAO,CAAC;AACvD"}
|
package/dist/export.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
3
|
-
exports.exportCsv =
|
|
2
|
+
const require_export = require("./export-x-Ow8SY5.cjs");
|
|
3
|
+
exports.exportCsv = require_export.exportCsv;
|
package/dist/export.d.cts
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { StaticTableFeature, TableFeature } from "@adapttable/vue";
|
|
2
|
+
import { ExportCsvOptions, ExportCsvOptions as ExportCsvOptions$1 } from "@adapttable/vue/features";
|
|
3
|
+
//#region src/export-csv.d.ts
|
|
4
|
+
/** Export the current view as CSV through the binding's cancellable export model. */
|
|
5
|
+
declare function exportCsv(options?: boolean): StaticTableFeature;
|
|
6
|
+
declare function exportCsv<TRow>(options?: boolean | ExportCsvOptions$1<TRow>): TableFeature<TRow>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { type ExportCsvOptions, exportCsv };
|
|
9
|
+
//# sourceMappingURL=export.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export.d.cts","names":[],"sources":["../src/export-csv.ts"],"mappings":";;;;iBASgB,UAAU,oBAAoB;iBAC9B,UAAU,MACxB,oBAAoB,mBAAiB,QACpC,aAAa"}
|
package/dist/export.d.ts
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ExportCsvOptions, ExportCsvOptions as ExportCsvOptions$1 } from "@adapttable/vue/features";
|
|
2
|
+
import { StaticTableFeature, TableFeature } from "@adapttable/vue";
|
|
3
|
+
//#region src/export-csv.d.ts
|
|
4
|
+
/** Export the current view as CSV through the binding's cancellable export model. */
|
|
5
|
+
declare function exportCsv(options?: boolean): StaticTableFeature;
|
|
6
|
+
declare function exportCsv<TRow>(options?: boolean | ExportCsvOptions$1<TRow>): TableFeature<TRow>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { type ExportCsvOptions, exportCsv };
|
|
9
|
+
//# sourceMappingURL=export.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export.d.ts","names":[],"sources":["../src/export-csv.ts"],"mappings":";;;;iBASgB,UAAU,oBAAoB;iBAC9B,UAAU,MACxB,oBAAoB,mBAAiB,QACpC,aAAa"}
|
package/dist/export.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { exportCsv } from "./export-
|
|
1
|
+
import { t as exportCsv } from "./export-kuOvIoQg.js";
|
|
2
2
|
export { exportCsv };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_filters = require("./filters-CYQFsZ_f.cjs");
|
|
3
|
+
const require_header_filters = require("./header-filters-COkO6tD4.cjs");
|
|
4
|
+
let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
|
|
5
|
+
//#region src/filtering.ts
|
|
6
|
+
/**
|
|
7
|
+
* All of filtering — the filter panel for the given definitions and the
|
|
8
|
+
* header controls — with this kit's controls, passed to `features` as one
|
|
9
|
+
* entry.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
function filteringFamily(defs) {
|
|
14
|
+
return (0, _adapttable_vue_adapter.filteringFamilyList)({
|
|
15
|
+
filters: (given) => require_filters.filters(given),
|
|
16
|
+
headerFilters: require_header_filters.headerFilters
|
|
17
|
+
}, defs);
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.filteringFamily = filteringFamily;
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=filtering.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filtering.cjs","names":["filteringFamilyList","filters"],"sources":["../src/filtering.ts"],"sourcesContent":["/**\n * The filtering family — `@adapttable/element-plus/filtering`.\n *\n * Its own entry, so a table that imports `filters` or `headerFilters` alone\n * loads that member alone.\n */\nimport type { FilterDef, TableFeature } from \"@adapttable/vue\";\nimport { filteringFamilyList } from \"@adapttable/vue/adapter\";\n\nimport { filters } from \"./filters\";\nimport { headerFilters } from \"./header-filters\";\n\n/**\n * All of filtering — the filter panel for the given definitions and the\n * header controls — with this kit's controls, passed to `features` as one\n * entry.\n *\n * @public\n */\nexport function filteringFamily<TRow>(\n defs: readonly FilterDef<TRow>[]\n): readonly TableFeature<TRow>[] {\n return filteringFamilyList<TableFeature<TRow>, FilterDef<TRow>>(\n { filters: (given) => filters(given), headerFilters },\n defs\n );\n}\n"],"mappings":";;;;;;;;;;;;AAmBA,SAAgB,gBACd,MAC+B;CAC/B,QAAA,GAAOA,wBAAAA,oBAAAA,CACL;EAAE,UAAU,UAAUC,gBAAAA,QAAQ,KAAK;EAAG,eAAA,uBAAA;CAAc,GACpD,IACF;AACF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FilterDef, TableFeature } from "@adapttable/vue";
|
|
2
|
+
//#region src/filtering.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* All of filtering — the filter panel for the given definitions and the
|
|
5
|
+
* header controls — with this kit's controls, passed to `features` as one
|
|
6
|
+
* entry.
|
|
7
|
+
*
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
declare function filteringFamily<TRow>(defs: readonly FilterDef<TRow>[]): readonly TableFeature<TRow>[];
|
|
11
|
+
//#endregion
|
|
12
|
+
export { filteringFamily };
|
|
13
|
+
//# sourceMappingURL=filtering.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filtering.d.cts","names":[],"sources":["../src/filtering.ts"],"mappings":";;;;;;;;;iBAmBgB,gBAAgB,MAC9B,eAAe,UAAU,mBACf,aAAa"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FilterDef, TableFeature } from "@adapttable/vue";
|
|
2
|
+
//#region src/filtering.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* All of filtering — the filter panel for the given definitions and the
|
|
5
|
+
* header controls — with this kit's controls, passed to `features` as one
|
|
6
|
+
* entry.
|
|
7
|
+
*
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
declare function filteringFamily<TRow>(defs: readonly FilterDef<TRow>[]): readonly TableFeature<TRow>[];
|
|
11
|
+
//#endregion
|
|
12
|
+
export { filteringFamily };
|
|
13
|
+
//# sourceMappingURL=filtering.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filtering.d.ts","names":[],"sources":["../src/filtering.ts"],"mappings":";;;;;;;;;iBAmBgB,gBAAgB,MAC9B,eAAe,UAAU,mBACf,aAAa"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { n as filters } from "./filters-CIQ1uMZw.js";
|
|
2
|
+
import { t as headerFilters } from "./header-filters-B2veND8x.js";
|
|
3
|
+
import { filteringFamilyList } from "@adapttable/vue/adapter";
|
|
4
|
+
//#region src/filtering.ts
|
|
5
|
+
/**
|
|
6
|
+
* All of filtering — the filter panel for the given definitions and the
|
|
7
|
+
* header controls — with this kit's controls, passed to `features` as one
|
|
8
|
+
* entry.
|
|
9
|
+
*
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
function filteringFamily(defs) {
|
|
13
|
+
return filteringFamilyList({
|
|
14
|
+
filters: (given) => filters(given),
|
|
15
|
+
headerFilters
|
|
16
|
+
}, defs);
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { filteringFamily };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=filtering.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filtering.js","names":[],"sources":["../src/filtering.ts"],"sourcesContent":["/**\n * The filtering family — `@adapttable/element-plus/filtering`.\n *\n * Its own entry, so a table that imports `filters` or `headerFilters` alone\n * loads that member alone.\n */\nimport type { FilterDef, TableFeature } from \"@adapttable/vue\";\nimport { filteringFamilyList } from \"@adapttable/vue/adapter\";\n\nimport { filters } from \"./filters\";\nimport { headerFilters } from \"./header-filters\";\n\n/**\n * All of filtering — the filter panel for the given definitions and the\n * header controls — with this kit's controls, passed to `features` as one\n * entry.\n *\n * @public\n */\nexport function filteringFamily<TRow>(\n defs: readonly FilterDef<TRow>[]\n): readonly TableFeature<TRow>[] {\n return filteringFamilyList<TableFeature<TRow>, FilterDef<TRow>>(\n { filters: (given) => filters(given), headerFilters },\n defs\n );\n}\n"],"mappings":";;;;;;;;;;;AAmBA,SAAgB,gBACd,MAC+B;CAC/B,OAAO,oBACL;EAAE,UAAU,UAAU,QAAQ,KAAK;EAAG;CAAc,GACpD,IACF;AACF"}
|
|
@@ -4,7 +4,7 @@ import { t as _sfc_main } from "./ElementInput-Cn9hpa9j.js";
|
|
|
4
4
|
import { t as _sfc_main$1 } from "./ElementSelect-BxFmnPpv.js";
|
|
5
5
|
import { a as ElementFilterSurface, i as _sfc_main$2, n as _sfc_main$3 } from "./ElementFilterField-C8EJjVB_.js";
|
|
6
6
|
import { createVNode, defineComponent, h } from "vue";
|
|
7
|
-
import { ACTIVE_FILTER_CHIPS, FilterChipsChrome, FilterPanelChrome, FilterTreeChrome,
|
|
7
|
+
import { ACTIVE_FILTER_CHIPS, FILTERS_PANEL, FilterChipsChrome, FilterPanelChrome, FilterTreeChrome, booleanFieldPart, extendFeature, filterViewKey, filterWidgetComponent, multiSelectFieldPart, rangeFieldPart, selectFieldPart, slotRender, textFieldPart, useFeatureState, useFilterTreeModel, withProps } from "@adapttable/vue/adapter";
|
|
8
8
|
import { ElCollapse, ElCollapseItem, ElFormItem, ElIcon, ElTag, ElText } from "element-plus";
|
|
9
9
|
import { filterTypes, filters } from "@adapttable/vue/features";
|
|
10
10
|
//#region src/filters/ElementFilterChips.ts
|
|
@@ -119,7 +119,8 @@ const ElementFilterTree = /* @__PURE__ */ withProps(function ElementFilterTree(p
|
|
|
119
119
|
}, treeProps);
|
|
120
120
|
//#endregion
|
|
121
121
|
//#region src/filters/ElementFiltersPanel.ts
|
|
122
|
-
function useElementFiltersPanel(
|
|
122
|
+
function useElementFiltersPanel(props) {
|
|
123
|
+
const widgets = props.widgets;
|
|
123
124
|
const names = useClassNames();
|
|
124
125
|
const model = useFeatureState(filterViewKey());
|
|
125
126
|
const controls = {
|
|
@@ -192,7 +193,7 @@ widgets: {
|
|
|
192
193
|
type: Array,
|
|
193
194
|
required: true
|
|
194
195
|
} },
|
|
195
|
-
setup:
|
|
196
|
+
setup: useElementFiltersPanel
|
|
196
197
|
});
|
|
197
198
|
//#endregion
|
|
198
199
|
//#region src/filters/widgets.ts
|
|
@@ -244,11 +245,11 @@ const FILTER_WIDGETS = [
|
|
|
244
245
|
* @public
|
|
245
246
|
*/
|
|
246
247
|
function filtersWith(widgets) {
|
|
247
|
-
return (defs = [], options = {}) => extendFeature(filters(defs, options), [slotRender(
|
|
248
|
+
return (defs = [], options = {}) => extendFeature(filters(defs, options), [slotRender(FILTERS_PANEL, () => h(ElementFiltersPanel, { widgets })), slotRender(ACTIVE_FILTER_CHIPS, (props) => h(ElementFilterChips, { ...props }))]);
|
|
248
249
|
}
|
|
249
250
|
/** Declarative filters with this kit's chip strip, panel and every widget. @public */
|
|
250
251
|
const filters$1 = /* @__PURE__ */ filtersWith(FILTER_WIDGETS);
|
|
251
252
|
//#endregion
|
|
252
253
|
export { checklistFilterWidget as a, selectFilterWidget as c, booleanFilterWidget as i, textFilterWidget as l, filters$1 as n, multiSelectFilterWidget as o, filtersWith as r, rangeFilterWidget as s, filterTypes as t, ElementFilterTree as u };
|
|
253
254
|
|
|
254
|
-
//# sourceMappingURL=filters-
|
|
255
|
+
//# sourceMappingURL=filters-CIQ1uMZw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filters-CIQ1uMZw.js","names":["ElementSelect","ElementInput","ElementBasicFilterField","ElementChecklistField","bindingFilters","filters"],"sources":["../src/filters/ElementFilterChips.ts","../src/filters/ElementFilterTree.ts","../src/filters/ElementFiltersPanel.ts","../src/filters/widgets.ts","../src/filters.ts"],"sourcesContent":["import {\n type ActiveFilterChipsSlotProps,\n FilterChipsChrome,\n} from \"@adapttable/vue/adapter\";\nimport { defineComponent, type PropType } from \"vue\";\n\nimport { useClassNames } from \"../classNamesContext\";\nimport { elementButton } from \"../controls/button\";\n\nexport const ElementFilterChips = defineComponent(\n (props: ActiveFilterChipsSlotProps) => {\n const names = useClassNames();\n return () =>\n FilterChipsChrome({\n ...props,\n classNames: names.value,\n slots: {\n Remove: ({ attrs }) =>\n elementButton({ ...attrs, text: true, size: \"small\" }, \"×\"),\n Clear: ({ attrs, label }) =>\n elementButton({ ...attrs, text: true, size: \"small\" }, label),\n },\n });\n },\n {\n name: \"ElementFilterChips\",\n props: {\n chips: { type: Array as PropType<ActiveFilterChipsSlotProps[\"chips\"]> },\n labels: {\n type: Object as PropType<ActiveFilterChipsSlotProps[\"labels\"]>,\n },\n onClearAll: {\n type: Function as PropType<ActiveFilterChipsSlotProps[\"onClearAll\"]>,\n },\n },\n }\n);\n","import {\n type FilterTreeBuilderProps,\n FilterTreeChrome,\n type FilterTreeSlots,\n useFilterTreeModel,\n withProps,\n} from \"@adapttable/vue/adapter\";\nimport {\n type CollapseModelValue,\n ElCollapse,\n ElCollapseItem,\n ElFormItem,\n ElText,\n} from \"element-plus\";\nimport {\n createVNode,\n defineComponent,\n h,\n type SetupContext,\n type VNodeChild,\n} from \"vue\";\n\nimport { elementButton } from \"../controls/button\";\nimport ElementInput from \"../controls/ElementInput.vue\";\nimport ElementSelect from \"../controls/ElementSelect.vue\";\n\nconst controls: FilterTreeSlots<VNodeChild> = {\n Select: (control) =>\n h(\n ElFormItem,\n { class: control.fieldClassName, \"data-adapttable-part\": \"filter-field\" },\n {\n label: () =>\n h(\n ElText,\n {\n class: control.labelClassName,\n \"data-adapttable-part\": \"filter-label\",\n },\n { default: () => control.label }\n ),\n default: () =>\n h(ElementSelect, {\n value: control.value,\n options: control.options,\n class: control.className,\n \"aria-label\": control.label,\n \"data-adapttable-part\": control.part,\n onChange: control.onChange,\n }),\n }\n ),\n Input: (control) =>\n h(\n ElFormItem,\n { class: control.fieldClassName, \"data-adapttable-part\": \"filter-field\" },\n {\n label: () =>\n h(\n ElText,\n {\n class: control.labelClassName,\n \"data-adapttable-part\": \"filter-label\",\n },\n { default: () => control.label }\n ),\n default: () =>\n h(ElementInput, {\n value: control.value,\n type: control.type,\n class: control.className,\n \"aria-label\": control.label,\n \"data-adapttable-part\": \"filter-input\",\n onChange: control.onChange,\n }),\n }\n ),\n Button: (control) =>\n elementButton(\n {\n class: control.className,\n \"data-adapttable-part\": control.part,\n onClick: control.onClick,\n },\n control.label\n ),\n Disclosure: (control) =>\n h(\n ElCollapse,\n {\n modelValue: control.expanded ? [\"query\"] : [],\n class: control.className,\n \"data-adapttable-part\": \"filter-tree\",\n \"onUpdate:modelValue\": (value: CollapseModelValue) =>\n control.onExpandedChange(\n Array.isArray(value) && value.includes(\"query\")\n ),\n },\n {\n default: () =>\n h(\n ElCollapseItem,\n { name: \"query\" },\n {\n title: () =>\n h(\n ElText,\n {\n class: control.summaryClassName,\n \"data-adapttable-part\": \"filter-tree-summary\",\n },\n { default: () => control.label }\n ),\n default: () => control.children,\n }\n ),\n }\n ),\n};\n\nconst treeProps = {\n defs: null,\n source: null,\n labels: null,\n registry: null,\n classNames: null,\n defaultExpanded: { type: Boolean, default: undefined },\n} satisfies Record<keyof FilterTreeBuilderProps<unknown>, unknown>;\n\nconst ElementFilterTreePresentation = defineComponent(\n (props: FilterTreeBuilderProps<unknown>) => {\n const model = useFilterTreeModel(() => props);\n return () => FilterTreeChrome({ model: model.value, controls });\n },\n {\n name: \"ElementFilterTreePresentation\",\n props: treeProps,\n }\n);\n\n/** Preserve the canonical row contract without exposing versioned instance helpers. */\nexport const ElementFilterTree = /* @__PURE__ */ withProps(\n function ElementFilterTree<TRow>(\n props: FilterTreeBuilderProps<TRow>,\n context: Pick<SetupContext, \"attrs\">\n ) {\n return createVNode(ElementFilterTreePresentation, {\n ...context.attrs,\n ...props,\n });\n },\n treeProps\n);\n","import {\n FilterPanelChrome,\n type FilterPanelSlots,\n filterViewKey,\n type FilterWidget,\n filterWidgetComponent,\n useFeatureState,\n} from \"@adapttable/vue/adapter\";\nimport { ElIcon, ElTag } from \"element-plus\";\nimport { defineComponent, h, type PropType } from \"vue\";\n\nimport { useClassNames } from \"../classNamesContext\";\nimport { elementButton } from \"../controls/button\";\nimport { ElementFilterSurface } from \"./ElementFilterSurface\";\nimport { ElementFilterTree } from \"./ElementFilterTree\";\n\nfunction useElementFiltersPanel(props: {\n readonly widgets: readonly FilterWidget[];\n}) {\n const widgets = props.widgets;\n const names = useClassNames();\n const model = useFeatureState(filterViewKey<unknown>());\n const controls: FilterPanelSlots<unknown> = {\n Trigger: (control) =>\n elementButton(\n {\n ...control.attrs,\n ref: control.triggerRef,\n class: names.value.filtersButton,\n onPointerdown: control.onPointerDown,\n onClick: control.onClick,\n },\n [\n h(\n ElIcon,\n {\n \"data-adapttable-part\": \"filters-icon\",\n class: names.value.filtersIcon,\n \"aria-hidden\": \"true\",\n },\n {\n default: () =>\n h(\"svg\", { viewBox: \"0 0 24 24\", focusable: \"false\" }, [\n h(\"path\", {\n d: \"M3 4h18l-7 8v7l-4 2v-9z\",\n fill: \"none\",\n stroke: \"currentColor\",\n }),\n ]),\n }\n ),\n control.label,\n control.count\n ? h(\n ElTag,\n {\n \"data-adapttable-part\": \"filters-count\",\n class: names.value.filtersCount,\n size: \"small\",\n round: true,\n },\n { default: () => control.count }\n )\n : null,\n ]\n ),\n Button: (control) =>\n elementButton(\n {\n \"data-adapttable-part\": control.part,\n class: {\n \"filters-clear\": names.value.filtersClear,\n \"filters-close\": names.value.filtersClose,\n \"filters-done\": names.value.filtersDone,\n }[control.part],\n disabled: control.disabled,\n onClick: control.onClick,\n },\n control.label\n ),\n Field: (field) =>\n h(filterWidgetComponent(field.def, field.registry, widgets), {\n ...field,\n classNames: names.value,\n }),\n Tree: (tree) => h(ElementFilterTree, { ...tree, classNames: names.value }),\n Popover: (surface) => h(ElementFilterSurface, { ...surface, modal: false }),\n Drawer: (surface) =>\n h(ElementFilterSurface, {\n ...surface,\n modal: true,\n backdropClassName: names.value.filtersBackdrop,\n }),\n };\n return () =>\n model.value\n ? FilterPanelChrome({\n model: model.value,\n controls,\n classNames: names.value,\n })\n : null;\n}\n\nexport const ElementFiltersPanel = defineComponent({\n name: \"ElementFiltersPanel\",\n props: {\n /** The widgets the panel draws its fields with. */\n widgets: {\n type: Array as PropType<readonly FilterWidget[]>,\n required: true,\n },\n },\n setup: useElementFiltersPanel,\n});\n","import {\n booleanFieldPart,\n type DataTableClassNames,\n type FilterFieldOptions,\n type FilterFieldPart,\n type FilterWidget,\n multiSelectFieldPart,\n rangeFieldPart,\n selectFieldPart,\n textFieldPart,\n} from \"@adapttable/vue/adapter\";\nimport { type FunctionalComponent, h } from \"vue\";\n\nimport ElementBasicFilterField from \"./ElementBasicFilterField.vue\";\nimport ElementChecklistField from \"./ElementChecklistField.vue\";\n\n/** A field drawn by one shared field part. */\nfunction basicWidget(part: FilterFieldPart): FilterWidget {\n const render: FunctionalComponent<\n FilterFieldOptions<unknown> & { classNames?: DataTableClassNames }\n > = (props) =>\n h(ElementBasicFilterField<unknown>, { ...props, parts: [part] });\n return { kinds: part.kinds, render };\n}\n\nconst ChecklistField: FunctionalComponent<\n FilterFieldOptions<unknown> & { classNames?: DataTableClassNames }\n> = (props) => h(ElementChecklistField<unknown>, { ...props });\n\n/** The Element Plus text filter: its operator and its value. @public */\nexport const textFilterWidget = /* @__PURE__ */ basicWidget(textFieldPart);\n/** The Element Plus yes/no filter. @public */\nexport const booleanFilterWidget =\n /* @__PURE__ */ basicWidget(booleanFieldPart);\n/** The Element Plus single-choice filter. @public */\nexport const selectFilterWidget = /* @__PURE__ */ basicWidget(selectFieldPart);\n/** The Element Plus multiple-choice filter. @public */\nexport const multiSelectFilterWidget =\n /* @__PURE__ */ basicWidget(multiSelectFieldPart);\n/** The Element Plus searchable checklist filter. @public */\nexport const checklistFilterWidget: FilterWidget = {\n kinds: [\"checklist\"],\n render: ChecklistField,\n};\n/** The Element Plus operator-first number and date range filter. @public */\nexport const rangeFilterWidget = /* @__PURE__ */ basicWidget(rangeFieldPart);\n\n/** Every built-in widget: what the automatic filters form draws. */\nexport const FILTER_WIDGETS: readonly FilterWidget[] = [\n textFilterWidget,\n booleanFilterWidget,\n selectFilterWidget,\n multiSelectFilterWidget,\n checklistFilterWidget,\n rangeFilterWidget,\n];\n","import type { FilterDef, TableFeature } from \"@adapttable/vue\";\nimport {\n ACTIVE_FILTER_CHIPS,\n type AdapterFiltersFeature,\n extendFeature,\n FILTERS_PANEL,\n type FilterWidget,\n slotRender,\n} from \"@adapttable/vue/adapter\";\nimport {\n filters as bindingFilters,\n type FiltersOptions,\n} from \"@adapttable/vue/features\";\nimport { h } from \"vue\";\n\nimport { ElementFilterChips } from \"./filters/ElementFilterChips\";\nimport { ElementFiltersPanel } from \"./filters/ElementFiltersPanel\";\nimport { FILTER_WIDGETS } from \"./filters/widgets\";\n\n/**\n * Declarative filters whose fields are drawn with only the given widgets, so\n * the widgets a table never shows stay out of its bundle. A filter whose\n * widget is missing throws when its field draws.\n *\n * @param widgets - The widgets to draw fields with, such as `textFilterWidget`.\n *\n * @public\n */\nexport function filtersWith(\n widgets: readonly FilterWidget[]\n): AdapterFiltersFeature {\n return <TRow>(\n defs: readonly FilterDef<TRow>[] = [],\n options: FiltersOptions = {}\n ): TableFeature<TRow> =>\n extendFeature(bindingFilters(defs, options), [\n slotRender(FILTERS_PANEL, () => h(ElementFiltersPanel, { widgets })),\n slotRender(ACTIVE_FILTER_CHIPS, (props) =>\n h(ElementFilterChips, { ...props })\n ),\n ]);\n}\n\n/** Declarative filters with this kit's chip strip, panel and every widget. @public */\nexport const filters = /* @__PURE__ */ filtersWith(FILTER_WIDGETS);\n\nexport { ElementChecklistFilter as ChecklistFilter } from \"./filters/ElementChecklistFilter\";\nexport { default as FilterField } from \"./filters/ElementFilterField.vue\";\nexport { ElementFilterTree as FilterTreeBuilder } from \"./filters/ElementFilterTree\";\nexport {\n booleanFilterWidget,\n checklistFilterWidget,\n multiSelectFilterWidget,\n rangeFilterWidget,\n selectFilterWidget,\n textFilterWidget,\n} from \"./filters/widgets\";\nexport type { FilterDef, FilterOption, FilterTypeSpec } from \"@adapttable/vue\";\nexport type {\n AdapterFiltersFeature,\n FilterWidget,\n} from \"@adapttable/vue/adapter\";\nexport type {\n ChecklistFilterProps,\n FilterFieldOptions,\n FilterTreeBuilderProps,\n} from \"@adapttable/vue/adapter\";\nexport type { FiltersOptions } from \"@adapttable/vue/features\";\nexport { filterTypes } from \"@adapttable/vue/features\";\n"],"mappings":";;;;;;;;;;AASA,MAAa,qBAAqB,iBAC/B,UAAsC;CACrC,MAAM,QAAQ,cAAc;CAC5B,aACE,kBAAkB;EAChB,GAAG;EACH,YAAY,MAAM;EAClB,OAAO;GACL,SAAS,EAAE,YACT,cAAc;IAAE,GAAG;IAAO,MAAM;IAAM,MAAM;GAAQ,GAAG,GAAG;GAC5D,QAAQ,EAAE,OAAO,YACf,cAAc;IAAE,GAAG;IAAO,MAAM;IAAM,MAAM;GAAQ,GAAG,KAAK;EAChE;CACF,CAAC;AACL,GACA;CACE,MAAM;CACN,OAAO;EACL,OAAO,EAAE,MAAM,MAAuD;EACtE,QAAQ,EACN,MAAM,OACR;EACA,YAAY,EACV,MAAM,SACR;CACF;AACF,CACF;;;ACVA,MAAM,WAAwC;CAC5C,SAAS,YACP,EACE,YACA;EAAE,OAAO,QAAQ;EAAgB,wBAAwB;CAAe,GACxE;EACE,aACE,EACE,QACA;GACE,OAAO,QAAQ;GACf,wBAAwB;EAC1B,GACA,EAAE,eAAe,QAAQ,MAAM,CACjC;EACF,eACE,EAAEA,aAAe;GACf,OAAO,QAAQ;GACf,SAAS,QAAQ;GACjB,OAAO,QAAQ;GACf,cAAc,QAAQ;GACtB,wBAAwB,QAAQ;GAChC,UAAU,QAAQ;EACpB,CAAC;CACL,CACF;CACF,QAAQ,YACN,EACE,YACA;EAAE,OAAO,QAAQ;EAAgB,wBAAwB;CAAe,GACxE;EACE,aACE,EACE,QACA;GACE,OAAO,QAAQ;GACf,wBAAwB;EAC1B,GACA,EAAE,eAAe,QAAQ,MAAM,CACjC;EACF,eACE,EAAEC,WAAc;GACd,OAAO,QAAQ;GACf,MAAM,QAAQ;GACd,OAAO,QAAQ;GACf,cAAc,QAAQ;GACtB,wBAAwB;GACxB,UAAU,QAAQ;EACpB,CAAC;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ACjE,OAAO;EAAE,OAAO,KAAK;EAAO;CAAO;AACrC;AAEA,MAAM,kBAED,UAAU,EAAEC,aAAgC,EAAE,GAAG,MAAM,CAAC;;AAG7D,MAAa,mBAAmC,4BAAY,aAAa;;AAEzE,MAAa,sBACK,4BAAY,gBAAgB;;AAE9C,MAAa,qBAAqC,4BAAY,eAAe;;AAE7E,MAAa,0BACK,4BAAY,oBAAoB;;AAElD,MAAa,wBAAsC;CACjD,OAAO,CAAC,WAAW;CACnB,QAAQ;AACV;;AAEA,MAAa,oBAAoC,4BAAY,cAAc;;AAG3E,MAAa,iBAA0C;CACrD;CACA;CACA;CACA;CACA;CACA;AACF;;;;;;;;;;;;AC3BA,SAAgB,YACd,SACuB;CACvB,QACE,OAAmC,CAAC,GACpC,UAA0B,CAAC,MAE3B,cAAcC,QAAe,MAAM,OAAO,GAAG,CAC3C,WAAW,qBAAqB,EAAE,qBAAqB,EAAE,QAAQ,CAAC,CAAC,GACnE,WAAW,sBAAsB,UAC/B,EAAE,oBAAoB,EAAE,GAAG,MAAM,CAAC,CACpC,CACF,CAAC;AACL;;AAGA,MAAaC,YAA0B,4BAAY,cAAc"}
|
|
@@ -118,7 +118,8 @@ const ElementFilterTree = /* @__PURE__ */ (0, _adapttable_vue_adapter.withProps)
|
|
|
118
118
|
}, treeProps);
|
|
119
119
|
//#endregion
|
|
120
120
|
//#region src/filters/ElementFiltersPanel.ts
|
|
121
|
-
function useElementFiltersPanel(
|
|
121
|
+
function useElementFiltersPanel(props) {
|
|
122
|
+
const widgets = props.widgets;
|
|
122
123
|
const names = (0, _adapttable_vue_adapter.useDataTableClassNames)();
|
|
123
124
|
const model = (0, _adapttable_vue_adapter.useFeatureState)((0, _adapttable_vue_adapter.filterViewKey)());
|
|
124
125
|
const controls = {
|
|
@@ -191,7 +192,7 @@ widgets: {
|
|
|
191
192
|
type: Array,
|
|
192
193
|
required: true
|
|
193
194
|
} },
|
|
194
|
-
setup:
|
|
195
|
+
setup: useElementFiltersPanel
|
|
195
196
|
});
|
|
196
197
|
//#endregion
|
|
197
198
|
//#region src/filters/widgets.ts
|
|
@@ -243,7 +244,7 @@ const FILTER_WIDGETS = [
|
|
|
243
244
|
* @public
|
|
244
245
|
*/
|
|
245
246
|
function filtersWith(widgets) {
|
|
246
|
-
return (defs = [], options = {}) => (0, _adapttable_vue_adapter.extendFeature)((0, _adapttable_vue_features.filters)(defs, options), [(0, _adapttable_vue_adapter.slotRender)(_adapttable_vue_adapter.
|
|
247
|
+
return (defs = [], options = {}) => (0, _adapttable_vue_adapter.extendFeature)((0, _adapttable_vue_features.filters)(defs, options), [(0, _adapttable_vue_adapter.slotRender)(_adapttable_vue_adapter.FILTERS_PANEL, () => (0, vue.h)(ElementFiltersPanel, { widgets })), (0, _adapttable_vue_adapter.slotRender)(_adapttable_vue_adapter.ACTIVE_FILTER_CHIPS, (props) => (0, vue.h)(ElementFilterChips, { ...props }))]);
|
|
247
248
|
}
|
|
248
249
|
/** Declarative filters with this kit's chip strip, panel and every widget. @public */
|
|
249
250
|
const filters = /* @__PURE__ */ filtersWith(FILTER_WIDGETS);
|
|
@@ -303,4 +304,4 @@ Object.defineProperty(exports, "textFilterWidget", {
|
|
|
303
304
|
}
|
|
304
305
|
});
|
|
305
306
|
|
|
306
|
-
//# sourceMappingURL=filters-
|
|
307
|
+
//# sourceMappingURL=filters-CYQFsZ_f.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filters-CYQFsZ_f.cjs","names":["defineComponent","useClassNames","FilterChipsChrome","elementButton","h","ElFormItem","ElText","ElementSelect","ElementInput","elementButton","ElCollapse","ElCollapseItem","defineComponent","useFilterTreeModel","FilterTreeChrome","createVNode","useClassNames","useFeatureState","filterViewKey","elementButton","h","ElIcon","ElTag","filterWidgetComponent","ElementFilterSurface","FilterPanelChrome","defineComponent","h","ElementBasicFilterField","ElementChecklistField","textFieldPart","booleanFieldPart","selectFieldPart","multiSelectFieldPart","rangeFieldPart","extendFeature","bindingFilters","slotRender","FILTERS_PANEL","h","ACTIVE_FILTER_CHIPS"],"sources":["../src/filters/ElementFilterChips.ts","../src/filters/ElementFilterTree.ts","../src/filters/ElementFiltersPanel.ts","../src/filters/widgets.ts","../src/filters.ts"],"sourcesContent":["import {\n type ActiveFilterChipsSlotProps,\n FilterChipsChrome,\n} from \"@adapttable/vue/adapter\";\nimport { defineComponent, type PropType } from \"vue\";\n\nimport { useClassNames } from \"../classNamesContext\";\nimport { elementButton } from \"../controls/button\";\n\nexport const ElementFilterChips = defineComponent(\n (props: ActiveFilterChipsSlotProps) => {\n const names = useClassNames();\n return () =>\n FilterChipsChrome({\n ...props,\n classNames: names.value,\n slots: {\n Remove: ({ attrs }) =>\n elementButton({ ...attrs, text: true, size: \"small\" }, \"×\"),\n Clear: ({ attrs, label }) =>\n elementButton({ ...attrs, text: true, size: \"small\" }, label),\n },\n });\n },\n {\n name: \"ElementFilterChips\",\n props: {\n chips: { type: Array as PropType<ActiveFilterChipsSlotProps[\"chips\"]> },\n labels: {\n type: Object as PropType<ActiveFilterChipsSlotProps[\"labels\"]>,\n },\n onClearAll: {\n type: Function as PropType<ActiveFilterChipsSlotProps[\"onClearAll\"]>,\n },\n },\n }\n);\n","import {\n type FilterTreeBuilderProps,\n FilterTreeChrome,\n type FilterTreeSlots,\n useFilterTreeModel,\n withProps,\n} from \"@adapttable/vue/adapter\";\nimport {\n type CollapseModelValue,\n ElCollapse,\n ElCollapseItem,\n ElFormItem,\n ElText,\n} from \"element-plus\";\nimport {\n createVNode,\n defineComponent,\n h,\n type SetupContext,\n type VNodeChild,\n} from \"vue\";\n\nimport { elementButton } from \"../controls/button\";\nimport ElementInput from \"../controls/ElementInput.vue\";\nimport ElementSelect from \"../controls/ElementSelect.vue\";\n\nconst controls: FilterTreeSlots<VNodeChild> = {\n Select: (control) =>\n h(\n ElFormItem,\n { class: control.fieldClassName, \"data-adapttable-part\": \"filter-field\" },\n {\n label: () =>\n h(\n ElText,\n {\n class: control.labelClassName,\n \"data-adapttable-part\": \"filter-label\",\n },\n { default: () => control.label }\n ),\n default: () =>\n h(ElementSelect, {\n value: control.value,\n options: control.options,\n class: control.className,\n \"aria-label\": control.label,\n \"data-adapttable-part\": control.part,\n onChange: control.onChange,\n }),\n }\n ),\n Input: (control) =>\n h(\n ElFormItem,\n { class: control.fieldClassName, \"data-adapttable-part\": \"filter-field\" },\n {\n label: () =>\n h(\n ElText,\n {\n class: control.labelClassName,\n \"data-adapttable-part\": \"filter-label\",\n },\n { default: () => control.label }\n ),\n default: () =>\n h(ElementInput, {\n value: control.value,\n type: control.type,\n class: control.className,\n \"aria-label\": control.label,\n \"data-adapttable-part\": \"filter-input\",\n onChange: control.onChange,\n }),\n }\n ),\n Button: (control) =>\n elementButton(\n {\n class: control.className,\n \"data-adapttable-part\": control.part,\n onClick: control.onClick,\n },\n control.label\n ),\n Disclosure: (control) =>\n h(\n ElCollapse,\n {\n modelValue: control.expanded ? [\"query\"] : [],\n class: control.className,\n \"data-adapttable-part\": \"filter-tree\",\n \"onUpdate:modelValue\": (value: CollapseModelValue) =>\n control.onExpandedChange(\n Array.isArray(value) && value.includes(\"query\")\n ),\n },\n {\n default: () =>\n h(\n ElCollapseItem,\n { name: \"query\" },\n {\n title: () =>\n h(\n ElText,\n {\n class: control.summaryClassName,\n \"data-adapttable-part\": \"filter-tree-summary\",\n },\n { default: () => control.label }\n ),\n default: () => control.children,\n }\n ),\n }\n ),\n};\n\nconst treeProps = {\n defs: null,\n source: null,\n labels: null,\n registry: null,\n classNames: null,\n defaultExpanded: { type: Boolean, default: undefined },\n} satisfies Record<keyof FilterTreeBuilderProps<unknown>, unknown>;\n\nconst ElementFilterTreePresentation = defineComponent(\n (props: FilterTreeBuilderProps<unknown>) => {\n const model = useFilterTreeModel(() => props);\n return () => FilterTreeChrome({ model: model.value, controls });\n },\n {\n name: \"ElementFilterTreePresentation\",\n props: treeProps,\n }\n);\n\n/** Preserve the canonical row contract without exposing versioned instance helpers. */\nexport const ElementFilterTree = /* @__PURE__ */ withProps(\n function ElementFilterTree<TRow>(\n props: FilterTreeBuilderProps<TRow>,\n context: Pick<SetupContext, \"attrs\">\n ) {\n return createVNode(ElementFilterTreePresentation, {\n ...context.attrs,\n ...props,\n });\n },\n treeProps\n);\n","import {\n FilterPanelChrome,\n type FilterPanelSlots,\n filterViewKey,\n type FilterWidget,\n filterWidgetComponent,\n useFeatureState,\n} from \"@adapttable/vue/adapter\";\nimport { ElIcon, ElTag } from \"element-plus\";\nimport { defineComponent, h, type PropType } from \"vue\";\n\nimport { useClassNames } from \"../classNamesContext\";\nimport { elementButton } from \"../controls/button\";\nimport { ElementFilterSurface } from \"./ElementFilterSurface\";\nimport { ElementFilterTree } from \"./ElementFilterTree\";\n\nfunction useElementFiltersPanel(props: {\n readonly widgets: readonly FilterWidget[];\n}) {\n const widgets = props.widgets;\n const names = useClassNames();\n const model = useFeatureState(filterViewKey<unknown>());\n const controls: FilterPanelSlots<unknown> = {\n Trigger: (control) =>\n elementButton(\n {\n ...control.attrs,\n ref: control.triggerRef,\n class: names.value.filtersButton,\n onPointerdown: control.onPointerDown,\n onClick: control.onClick,\n },\n [\n h(\n ElIcon,\n {\n \"data-adapttable-part\": \"filters-icon\",\n class: names.value.filtersIcon,\n \"aria-hidden\": \"true\",\n },\n {\n default: () =>\n h(\"svg\", { viewBox: \"0 0 24 24\", focusable: \"false\" }, [\n h(\"path\", {\n d: \"M3 4h18l-7 8v7l-4 2v-9z\",\n fill: \"none\",\n stroke: \"currentColor\",\n }),\n ]),\n }\n ),\n control.label,\n control.count\n ? h(\n ElTag,\n {\n \"data-adapttable-part\": \"filters-count\",\n class: names.value.filtersCount,\n size: \"small\",\n round: true,\n },\n { default: () => control.count }\n )\n : null,\n ]\n ),\n Button: (control) =>\n elementButton(\n {\n \"data-adapttable-part\": control.part,\n class: {\n \"filters-clear\": names.value.filtersClear,\n \"filters-close\": names.value.filtersClose,\n \"filters-done\": names.value.filtersDone,\n }[control.part],\n disabled: control.disabled,\n onClick: control.onClick,\n },\n control.label\n ),\n Field: (field) =>\n h(filterWidgetComponent(field.def, field.registry, widgets), {\n ...field,\n classNames: names.value,\n }),\n Tree: (tree) => h(ElementFilterTree, { ...tree, classNames: names.value }),\n Popover: (surface) => h(ElementFilterSurface, { ...surface, modal: false }),\n Drawer: (surface) =>\n h(ElementFilterSurface, {\n ...surface,\n modal: true,\n backdropClassName: names.value.filtersBackdrop,\n }),\n };\n return () =>\n model.value\n ? FilterPanelChrome({\n model: model.value,\n controls,\n classNames: names.value,\n })\n : null;\n}\n\nexport const ElementFiltersPanel = defineComponent({\n name: \"ElementFiltersPanel\",\n props: {\n /** The widgets the panel draws its fields with. */\n widgets: {\n type: Array as PropType<readonly FilterWidget[]>,\n required: true,\n },\n },\n setup: useElementFiltersPanel,\n});\n","import {\n booleanFieldPart,\n type DataTableClassNames,\n type FilterFieldOptions,\n type FilterFieldPart,\n type FilterWidget,\n multiSelectFieldPart,\n rangeFieldPart,\n selectFieldPart,\n textFieldPart,\n} from \"@adapttable/vue/adapter\";\nimport { type FunctionalComponent, h } from \"vue\";\n\nimport ElementBasicFilterField from \"./ElementBasicFilterField.vue\";\nimport ElementChecklistField from \"./ElementChecklistField.vue\";\n\n/** A field drawn by one shared field part. */\nfunction basicWidget(part: FilterFieldPart): FilterWidget {\n const render: FunctionalComponent<\n FilterFieldOptions<unknown> & { classNames?: DataTableClassNames }\n > = (props) =>\n h(ElementBasicFilterField<unknown>, { ...props, parts: [part] });\n return { kinds: part.kinds, render };\n}\n\nconst ChecklistField: FunctionalComponent<\n FilterFieldOptions<unknown> & { classNames?: DataTableClassNames }\n> = (props) => h(ElementChecklistField<unknown>, { ...props });\n\n/** The Element Plus text filter: its operator and its value. @public */\nexport const textFilterWidget = /* @__PURE__ */ basicWidget(textFieldPart);\n/** The Element Plus yes/no filter. @public */\nexport const booleanFilterWidget =\n /* @__PURE__ */ basicWidget(booleanFieldPart);\n/** The Element Plus single-choice filter. @public */\nexport const selectFilterWidget = /* @__PURE__ */ basicWidget(selectFieldPart);\n/** The Element Plus multiple-choice filter. @public */\nexport const multiSelectFilterWidget =\n /* @__PURE__ */ basicWidget(multiSelectFieldPart);\n/** The Element Plus searchable checklist filter. @public */\nexport const checklistFilterWidget: FilterWidget = {\n kinds: [\"checklist\"],\n render: ChecklistField,\n};\n/** The Element Plus operator-first number and date range filter. @public */\nexport const rangeFilterWidget = /* @__PURE__ */ basicWidget(rangeFieldPart);\n\n/** Every built-in widget: what the automatic filters form draws. */\nexport const FILTER_WIDGETS: readonly FilterWidget[] = [\n textFilterWidget,\n booleanFilterWidget,\n selectFilterWidget,\n multiSelectFilterWidget,\n checklistFilterWidget,\n rangeFilterWidget,\n];\n","import type { FilterDef, TableFeature } from \"@adapttable/vue\";\nimport {\n ACTIVE_FILTER_CHIPS,\n type AdapterFiltersFeature,\n extendFeature,\n FILTERS_PANEL,\n type FilterWidget,\n slotRender,\n} from \"@adapttable/vue/adapter\";\nimport {\n filters as bindingFilters,\n type FiltersOptions,\n} from \"@adapttable/vue/features\";\nimport { h } from \"vue\";\n\nimport { ElementFilterChips } from \"./filters/ElementFilterChips\";\nimport { ElementFiltersPanel } from \"./filters/ElementFiltersPanel\";\nimport { FILTER_WIDGETS } from \"./filters/widgets\";\n\n/**\n * Declarative filters whose fields are drawn with only the given widgets, so\n * the widgets a table never shows stay out of its bundle. A filter whose\n * widget is missing throws when its field draws.\n *\n * @param widgets - The widgets to draw fields with, such as `textFilterWidget`.\n *\n * @public\n */\nexport function filtersWith(\n widgets: readonly FilterWidget[]\n): AdapterFiltersFeature {\n return <TRow>(\n defs: readonly FilterDef<TRow>[] = [],\n options: FiltersOptions = {}\n ): TableFeature<TRow> =>\n extendFeature(bindingFilters(defs, options), [\n slotRender(FILTERS_PANEL, () => h(ElementFiltersPanel, { widgets })),\n slotRender(ACTIVE_FILTER_CHIPS, (props) =>\n h(ElementFilterChips, { ...props })\n ),\n ]);\n}\n\n/** Declarative filters with this kit's chip strip, panel and every widget. @public */\nexport const filters = /* @__PURE__ */ filtersWith(FILTER_WIDGETS);\n\nexport { ElementChecklistFilter as ChecklistFilter } from \"./filters/ElementChecklistFilter\";\nexport { default as FilterField } from \"./filters/ElementFilterField.vue\";\nexport { ElementFilterTree as FilterTreeBuilder } from \"./filters/ElementFilterTree\";\nexport {\n booleanFilterWidget,\n checklistFilterWidget,\n multiSelectFilterWidget,\n rangeFilterWidget,\n selectFilterWidget,\n textFilterWidget,\n} from \"./filters/widgets\";\nexport type { FilterDef, FilterOption, FilterTypeSpec } from \"@adapttable/vue\";\nexport type {\n AdapterFiltersFeature,\n FilterWidget,\n} from \"@adapttable/vue/adapter\";\nexport type {\n ChecklistFilterProps,\n FilterFieldOptions,\n FilterTreeBuilderProps,\n} from \"@adapttable/vue/adapter\";\nexport type { FiltersOptions } from \"@adapttable/vue/features\";\nexport { filterTypes } from \"@adapttable/vue/features\";\n"],"mappings":";;;;;;;;;AASA,MAAa,sBAAA,GAAqBA,IAAAA,gBAAAA,EAC/B,UAAsC;CACrC,MAAM,SAAA,GAAQC,wBAAAA,uBAAAA,CAAc;CAC5B,cAAA,GACEC,wBAAAA,kBAAAA,CAAkB;EAChB,GAAG;EACH,YAAY,MAAM;EAClB,OAAO;GACL,SAAS,EAAE,YACTC,eAAAA,cAAc;IAAE,GAAG;IAAO,MAAM;IAAM,MAAM;GAAQ,GAAG,GAAG;GAC5D,QAAQ,EAAE,OAAO,YACfA,eAAAA,cAAc;IAAE,GAAG;IAAO,MAAM;IAAM,MAAM;GAAQ,GAAG,KAAK;EAChE;CACF,CAAC;AACL,GACA;CACE,MAAM;CACN,OAAO;EACL,OAAO,EAAE,MAAM,MAAuD;EACtE,QAAQ,EACN,MAAM,OACR;EACA,YAAY,EACV,MAAM,SACR;CACF;AACF,CACF;;;ACVA,MAAM,WAAwC;CAC5C,SAAS,aAAA,GACPC,IAAAA,EAAAA,CACEC,aAAAA,YACA;EAAE,OAAO,QAAQ;EAAgB,wBAAwB;CAAe,GACxE;EAC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AA,EAAAA,CAAEC,2BAAAA,aAAkC;EAAE,GAAG;EAAO,OAAO,CAAC,IAAI;CAAE,CAAC;CACjE,OAAO;EAAE,OAAO,KAAK;EAAO;CAAO;AACrC;AAEA,MAAM,kBAED,WAAA,GAAUD,IAAAA,EAAAA,CAAEE,2BAAAA,aAAgC,EAAE,GAAG,MAAM,CAAC;;AAG7D,MAAa,mBAAmC,4BAAYC,wBAAAA,aAAa;;AAEzE,MAAa,sBACK,4BAAYC,wBAAAA,gBAAgB;;AAE9C,MAAa,qBAAqC,4BAAYC,wBAAAA,eAAe;;AAE7E,MAAa,0BACK,4BAAYC,wBAAAA,oBAAoB;;AAElD,MAAa,wBAAsC;CACjD,OAAO,CAAC,WAAW;CACnB,QAAQ;AACV;;AAEA,MAAa,oBAAoC,4BAAYC,wBAAAA,cAAc;;AAG3E,MAAa,iBAA0C;CACrD;CACA;CACA;CACA;CACA;CACA;AACF;;;;;;;;;;;;AC3BA,SAAgB,YACd,SACuB;CACvB,QACE,OAAmC,CAAC,GACpC,UAA0B,CAAC,OAAA,GAE3BC,wBAAAA,cAAAA,EAAAA,GAAcC,yBAAAA,QAAAA,CAAe,MAAM,OAAO,GAAG,EAAA,GAC3CC,wBAAAA,WAAAA,CAAWC,wBAAAA,sBAAAA,GAAqBC,IAAAA,EAAAA,CAAE,qBAAqB,EAAE,QAAQ,CAAC,CAAC,IAAA,GACnEF,wBAAAA,WAAAA,CAAWG,wBAAAA,sBAAsB,WAAA,GAC/BD,IAAAA,EAAAA,CAAE,oBAAoB,EAAE,GAAG,MAAM,CAAC,CACpC,CACF,CAAC;AACL;;AAGA,MAAa,UAA0B,4BAAY,cAAc"}
|
package/dist/filters.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_filters = require("./filters-
|
|
2
|
+
const require_filters = require("./filters-CYQFsZ_f.cjs");
|
|
3
3
|
const require_ElementFilterField = require("./ElementFilterField-Dfzy-Yk4.cjs");
|
|
4
4
|
let _adapttable_vue_features = require("@adapttable/vue/features");
|
|
5
5
|
exports.ChecklistFilter = require_ElementFilterField.ElementChecklistFilter;
|
package/dist/filters.d.cts
CHANGED
|
@@ -1,2 +1,77 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { FilterDef, FilterOption, FilterTypeSpec } from "@adapttable/vue";
|
|
2
|
+
import { AdapterFiltersFeature, AdapterFiltersFeature as AdapterFiltersFeature$1, ChecklistFilterProps, ChecklistFilterProps as ChecklistFilterProps$1, DataTableClassNames, FilterFieldOptions, FilterFieldOptions as FilterFieldOptions$1, FilterTreeBuilderProps, FilterTreeBuilderProps as FilterTreeBuilderProps$1, FilterWidget, FilterWidget as FilterWidget$1 } from "@adapttable/vue/adapter";
|
|
3
|
+
import { FiltersOptions, filterTypes } from "@adapttable/vue/features";
|
|
4
|
+
import { SetupContext } from "vue";
|
|
5
|
+
//#region src/filters/ElementChecklistFilter.d.ts
|
|
6
|
+
/** Preserve the canonical row contract without exposing versioned instance helpers. */
|
|
7
|
+
declare const ElementChecklistFilter: (<TRow>(props: ChecklistFilterProps$1<TRow>, context: Pick<SetupContext, "attrs">) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}>) & {
|
|
10
|
+
props: string[];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/filters/ElementFilterField.vue.d.ts
|
|
14
|
+
declare const __VLS_export: <TRow>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
15
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<FilterFieldOptions$1<TRow> & {
|
|
16
|
+
classNames?: DataTableClassNames;
|
|
17
|
+
}> & (typeof globalThis extends {
|
|
18
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
19
|
+
} ? P : {});
|
|
20
|
+
expose: (exposed: {}) => void;
|
|
21
|
+
attrs: any;
|
|
22
|
+
slots: {};
|
|
23
|
+
emit: {};
|
|
24
|
+
}>) => import("vue").VNode & {
|
|
25
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
26
|
+
};
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/filters/ElementFilterTree.d.ts
|
|
31
|
+
/** Preserve the canonical row contract without exposing versioned instance helpers. */
|
|
32
|
+
declare const ElementFilterTree: (<TRow>(props: FilterTreeBuilderProps$1<TRow>, context: Pick<SetupContext, "attrs">) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}>) & {
|
|
35
|
+
props: {
|
|
36
|
+
defs: null;
|
|
37
|
+
source: null;
|
|
38
|
+
labels: null;
|
|
39
|
+
registry: null;
|
|
40
|
+
classNames: null;
|
|
41
|
+
defaultExpanded: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/filters/widgets.d.ts
|
|
49
|
+
/** The Element Plus text filter: its operator and its value. @public */
|
|
50
|
+
declare const textFilterWidget: FilterWidget$1;
|
|
51
|
+
/** The Element Plus yes/no filter. @public */
|
|
52
|
+
declare const booleanFilterWidget: FilterWidget$1;
|
|
53
|
+
/** The Element Plus single-choice filter. @public */
|
|
54
|
+
declare const selectFilterWidget: FilterWidget$1;
|
|
55
|
+
/** The Element Plus multiple-choice filter. @public */
|
|
56
|
+
declare const multiSelectFilterWidget: FilterWidget$1;
|
|
57
|
+
/** The Element Plus searchable checklist filter. @public */
|
|
58
|
+
declare const checklistFilterWidget: FilterWidget$1;
|
|
59
|
+
/** The Element Plus operator-first number and date range filter. @public */
|
|
60
|
+
declare const rangeFilterWidget: FilterWidget$1;
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/filters.d.ts
|
|
63
|
+
/**
|
|
64
|
+
* Declarative filters whose fields are drawn with only the given widgets, so
|
|
65
|
+
* the widgets a table never shows stay out of its bundle. A filter whose
|
|
66
|
+
* widget is missing throws when its field draws.
|
|
67
|
+
*
|
|
68
|
+
* @param widgets - The widgets to draw fields with, such as `textFilterWidget`.
|
|
69
|
+
*
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
declare function filtersWith(widgets: readonly FilterWidget$1[]): AdapterFiltersFeature$1;
|
|
73
|
+
/** Declarative filters with this kit's chip strip, panel and every widget. @public */
|
|
74
|
+
declare const filters: AdapterFiltersFeature$1;
|
|
75
|
+
//#endregion
|
|
76
|
+
export { type AdapterFiltersFeature, ElementChecklistFilter as ChecklistFilter, type ChecklistFilterProps, type FilterDef, _default as FilterField, type FilterFieldOptions, type FilterOption, ElementFilterTree as FilterTreeBuilder, type FilterTreeBuilderProps, type FilterTypeSpec, type FilterWidget, type FiltersOptions, booleanFilterWidget, checklistFilterWidget, filterTypes, filters, filtersWith, multiSelectFilterWidget, rangeFilterWidget, selectFilterWidget, textFilterWidget };
|
|
77
|
+
//# sourceMappingURL=filters.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filters.d.cts","names":[],"sources":["../src/filters/ElementChecklistFilter.ts","../src/filters/ElementFilterField.vue","../src/filters/ElementFilterTree.ts","../src/filters/widgets.ts","../src/filters.ts"],"mappings":";;;;;;cA+Ea,0BACqB,MAAI,OAC3B,uBAAqB,OAAK,SACxB,KAAK,yCAAsB,oBAAA,4BAAA;;;;;;;cCzClC,eAAiB,MACtB,aAAa,YAAY,eAAe,wBACxC,YAAY,oBAAoB,KAAK,YAAY,eAAe,6CAChE,gBAAgB,YAAY,eAAe,yBAC3C,cAAA;EAmDO,qBAAc,cAAc,oBAAmB,qBAAA;IAjDM,aAAA;eAiDwB;IAAqB,4BAA4B;MAAM;EACnI,SAAC;EACF;EACA;EACD;qBAGmB;EAAU,QAAQ,YAAY,eAAe;;cAClD,iBAAO;KACvB,oBAAoB,MAAM,mBAAmB,WAAW,IAAI,EAAE,WAAW,WAAW,KAAK,IAAI,EAAE;;;;cCoCvF,qBACgB,MAAI,OACtB,yBAAuB,OAAK,SAC1B,KAAK,yCAAsB,oBAAA,4BAAA;;;;;;;;;;;;;;;;;;cClH3B,kBAAgB;;cAEhB,qBAAmB;;cAGnB,oBAAkB;;cAElB,yBAAuB;;cAGvB,uBAAuB;;cAKvB,mBAAiB;;;;;;;;;;;;iBCjBd,YACd,kBAAkB,mBACjB;;cAcU,SAAO"}
|
package/dist/filters.d.ts
CHANGED
|
@@ -1,2 +1,77 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { SetupContext } from "vue";
|
|
2
|
+
import { AdapterFiltersFeature, AdapterFiltersFeature as AdapterFiltersFeature$1, ChecklistFilterProps, ChecklistFilterProps as ChecklistFilterProps$1, DataTableClassNames, FilterFieldOptions, FilterFieldOptions as FilterFieldOptions$1, FilterTreeBuilderProps, FilterTreeBuilderProps as FilterTreeBuilderProps$1, FilterWidget, FilterWidget as FilterWidget$1 } from "@adapttable/vue/adapter";
|
|
3
|
+
import { FiltersOptions, filterTypes } from "@adapttable/vue/features";
|
|
4
|
+
import { FilterDef, FilterOption, FilterTypeSpec } from "@adapttable/vue";
|
|
5
|
+
//#region src/filters/ElementChecklistFilter.d.ts
|
|
6
|
+
/** Preserve the canonical row contract without exposing versioned instance helpers. */
|
|
7
|
+
declare const ElementChecklistFilter: (<TRow>(props: ChecklistFilterProps$1<TRow>, context: Pick<SetupContext, "attrs">) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}>) & {
|
|
10
|
+
props: string[];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/filters/ElementFilterField.vue.d.ts
|
|
14
|
+
declare const __VLS_export: <TRow>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
15
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<FilterFieldOptions$1<TRow> & {
|
|
16
|
+
classNames?: DataTableClassNames;
|
|
17
|
+
}> & (typeof globalThis extends {
|
|
18
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
19
|
+
} ? P : {});
|
|
20
|
+
expose: (exposed: {}) => void;
|
|
21
|
+
attrs: any;
|
|
22
|
+
slots: {};
|
|
23
|
+
emit: {};
|
|
24
|
+
}>) => import("vue").VNode & {
|
|
25
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
26
|
+
};
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/filters/ElementFilterTree.d.ts
|
|
31
|
+
/** Preserve the canonical row contract without exposing versioned instance helpers. */
|
|
32
|
+
declare const ElementFilterTree: (<TRow>(props: FilterTreeBuilderProps$1<TRow>, context: Pick<SetupContext, "attrs">) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}>) & {
|
|
35
|
+
props: {
|
|
36
|
+
defs: null;
|
|
37
|
+
source: null;
|
|
38
|
+
labels: null;
|
|
39
|
+
registry: null;
|
|
40
|
+
classNames: null;
|
|
41
|
+
defaultExpanded: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/filters/widgets.d.ts
|
|
49
|
+
/** The Element Plus text filter: its operator and its value. @public */
|
|
50
|
+
declare const textFilterWidget: FilterWidget$1;
|
|
51
|
+
/** The Element Plus yes/no filter. @public */
|
|
52
|
+
declare const booleanFilterWidget: FilterWidget$1;
|
|
53
|
+
/** The Element Plus single-choice filter. @public */
|
|
54
|
+
declare const selectFilterWidget: FilterWidget$1;
|
|
55
|
+
/** The Element Plus multiple-choice filter. @public */
|
|
56
|
+
declare const multiSelectFilterWidget: FilterWidget$1;
|
|
57
|
+
/** The Element Plus searchable checklist filter. @public */
|
|
58
|
+
declare const checklistFilterWidget: FilterWidget$1;
|
|
59
|
+
/** The Element Plus operator-first number and date range filter. @public */
|
|
60
|
+
declare const rangeFilterWidget: FilterWidget$1;
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/filters.d.ts
|
|
63
|
+
/**
|
|
64
|
+
* Declarative filters whose fields are drawn with only the given widgets, so
|
|
65
|
+
* the widgets a table never shows stay out of its bundle. A filter whose
|
|
66
|
+
* widget is missing throws when its field draws.
|
|
67
|
+
*
|
|
68
|
+
* @param widgets - The widgets to draw fields with, such as `textFilterWidget`.
|
|
69
|
+
*
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
declare function filtersWith(widgets: readonly FilterWidget$1[]): AdapterFiltersFeature$1;
|
|
73
|
+
/** Declarative filters with this kit's chip strip, panel and every widget. @public */
|
|
74
|
+
declare const filters: AdapterFiltersFeature$1;
|
|
75
|
+
//#endregion
|
|
76
|
+
export { type AdapterFiltersFeature, ElementChecklistFilter as ChecklistFilter, type ChecklistFilterProps, type FilterDef, _default as FilterField, type FilterFieldOptions, type FilterOption, ElementFilterTree as FilterTreeBuilder, type FilterTreeBuilderProps, type FilterTypeSpec, type FilterWidget, type FiltersOptions, booleanFilterWidget, checklistFilterWidget, filterTypes, filters, filtersWith, multiSelectFilterWidget, rangeFilterWidget, selectFilterWidget, textFilterWidget };
|
|
77
|
+
//# sourceMappingURL=filters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filters.d.ts","names":[],"sources":["../src/filters/ElementChecklistFilter.ts","../src/filters/ElementFilterField.vue","../src/filters/ElementFilterTree.ts","../src/filters/widgets.ts","../src/filters.ts"],"mappings":";;;;;;cA+Ea,0BACqB,MAAI,OAC3B,uBAAqB,OAAK,SACxB,KAAK,yCAAsB,oBAAA,4BAAA;;;;;;;cCzClC,eAAiB,MACtB,aAAa,YAAY,eAAe,wBACxC,YAAY,oBAAoB,KAAK,YAAY,eAAe,6CAChE,gBAAgB,YAAY,eAAe,yBAC3C,cAAA;EAmDO,qBAAc,cAAc,oBAAmB,qBAAA;IAjDM,aAAA;eAiDwB;IAAqB,4BAA4B;MAAM;EACnI,SAAC;EACF;EACA;EACD;qBAGmB;EAAU,QAAQ,YAAY,eAAe;;cAClD,iBAAO;KACvB,oBAAoB,MAAM,mBAAmB,WAAW,IAAI,EAAE,WAAW,WAAW,KAAK,IAAI,EAAE;;;;cCoCvF,qBACgB,MAAI,OACtB,yBAAuB,OAAK,SAC1B,KAAK,yCAAsB,oBAAA,4BAAA;;;;;;;;;;;;;;;;;;cClH3B,kBAAgB;;cAEhB,qBAAmB;;cAGnB,oBAAkB;;cAElB,yBAAuB;;cAGvB,uBAAuB;;cAKvB,mBAAiB;;;;;;;;;;;;iBCjBd,YACd,kBAAkB,mBACjB;;cAcU,SAAO"}
|
package/dist/filters.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
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 ElementFilterTree } from "./filters-
|
|
1
|
+
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 ElementFilterTree } from "./filters-CIQ1uMZw.js";
|
|
2
2
|
import { r as ElementChecklistFilter, t as _sfc_main } from "./ElementFilterField-C8EJjVB_.js";
|
|
3
3
|
export { ElementChecklistFilter as ChecklistFilter, _sfc_main as FilterField, ElementFilterTree as FilterTreeBuilder, booleanFilterWidget, checklistFilterWidget, filterTypes, filters, filtersWith, multiSelectFilterWidget, rangeFilterWidget, selectFilterWidget, textFilterWidget };
|