@adapttable/naive-ui 0.0.0 → 0.1.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/LICENSE +21 -0
- package/README.md +290 -1
- package/dist/NaiveFilterSurface-DFoXPlGU.cjs +371 -0
- package/dist/NaiveFilterSurface-DFoXPlGU.cjs.map +1 -0
- package/dist/NaiveFilterSurface-DZKgJ6G_.js +348 -0
- package/dist/NaiveFilterSurface-DZKgJ6G_.js.map +1 -0
- package/dist/NaiveManagedPopover-BScsoUHh.cjs +131 -0
- package/dist/NaiveManagedPopover-BScsoUHh.cjs.map +1 -0
- package/dist/NaiveManagedPopover-DqSDYnef.js +126 -0
- package/dist/NaiveManagedPopover-DqSDYnef.js.map +1 -0
- package/dist/NaiveRowActions-BhgFAnM3.cjs +79 -0
- package/dist/NaiveRowActions-BhgFAnM3.cjs.map +1 -0
- package/dist/NaiveRowActions-BxDGoOKe.js +74 -0
- package/dist/NaiveRowActions-BxDGoOKe.js.map +1 -0
- package/dist/assistant.cjs +355 -0
- package/dist/assistant.cjs.map +1 -0
- package/dist/assistant.d.cts +10 -0
- package/dist/assistant.d.cts.map +1 -0
- package/dist/assistant.d.ts +10 -0
- package/dist/assistant.d.ts.map +1 -0
- package/dist/assistant.js +351 -0
- package/dist/assistant.js.map +1 -0
- package/dist/batch-editing.cjs +4 -0
- package/dist/batch-editing.d.cts +2 -0
- package/dist/batch-editing.d.ts +2 -0
- package/dist/batch-editing.js +2 -0
- package/dist/bulk-actions.cjs +17 -0
- package/dist/bulk-actions.cjs.map +1 -0
- package/dist/bulk-actions.d.cts +7 -0
- package/dist/bulk-actions.d.cts.map +1 -0
- package/dist/bulk-actions.d.ts +7 -0
- package/dist/bulk-actions.d.ts.map +1 -0
- package/dist/bulk-actions.js +16 -0
- package/dist/bulk-actions.js.map +1 -0
- package/dist/button-CVOchGam.cjs +98 -0
- package/dist/button-CVOchGam.cjs.map +1 -0
- package/dist/button-Cf1lslmX.js +69 -0
- package/dist/button-Cf1lslmX.js.map +1 -0
- package/dist/cell-navigation.cjs +18 -0
- package/dist/cell-navigation.cjs.map +1 -0
- package/dist/cell-navigation.d.cts +9 -0
- package/dist/cell-navigation.d.cts.map +1 -0
- package/dist/cell-navigation.d.ts +9 -0
- package/dist/cell-navigation.d.ts.map +1 -0
- package/dist/cell-navigation.js +16 -0
- package/dist/cell-navigation.js.map +1 -0
- package/dist/cell-span.cjs +8 -0
- package/dist/cell-span.d.cts +2 -0
- package/dist/cell-span.d.ts +2 -0
- package/dist/cell-span.js +2 -0
- package/dist/checkbox-Bu4Tl5TQ.cjs +26 -0
- package/dist/checkbox-Bu4Tl5TQ.cjs.map +1 -0
- package/dist/checkbox-CcYT0Q-6.js +21 -0
- package/dist/checkbox-CcYT0Q-6.js.map +1 -0
- package/dist/classNames-2CRJjDRZ.js +11 -0
- package/dist/classNames-2CRJjDRZ.js.map +1 -0
- package/dist/classNames-CR71pIAv.cjs +16 -0
- package/dist/classNames-CR71pIAv.cjs.map +1 -0
- package/dist/column-groups.cjs +8 -0
- package/dist/column-groups.d.cts +2 -0
- package/dist/column-groups.d.ts +2 -0
- package/dist/column-groups.js +2 -0
- package/dist/column-menu-B5xm8hhB.js +74 -0
- package/dist/column-menu-B5xm8hhB.js.map +1 -0
- package/dist/column-menu-Cd8Fm695.cjs +85 -0
- package/dist/column-menu-Cd8Fm695.cjs.map +1 -0
- package/dist/column-menu.cjs +4 -0
- package/dist/column-menu.d.cts +23 -0
- package/dist/column-menu.d.cts.map +1 -0
- package/dist/column-menu.d.ts +23 -0
- package/dist/column-menu.d.ts.map +1 -0
- package/dist/column-menu.js +2 -0
- package/dist/column-selection.cjs +3 -0
- package/dist/column-selection.d.cts +2 -0
- package/dist/column-selection.d.ts +2 -0
- package/dist/column-selection.js +2 -0
- package/dist/command-palette.cjs +113 -0
- package/dist/command-palette.cjs.map +1 -0
- package/dist/command-palette.d.cts +7 -0
- package/dist/command-palette.d.cts.map +1 -0
- package/dist/command-palette.d.ts +7 -0
- package/dist/command-palette.d.ts.map +1 -0
- package/dist/command-palette.js +112 -0
- package/dist/command-palette.js.map +1 -0
- package/dist/context-menu.cjs +141 -0
- package/dist/context-menu.cjs.map +1 -0
- package/dist/context-menu.d.cts +7 -0
- package/dist/context-menu.d.cts.map +1 -0
- package/dist/context-menu.d.ts +7 -0
- package/dist/context-menu.d.ts.map +1 -0
- package/dist/context-menu.js +140 -0
- package/dist/context-menu.js.map +1 -0
- package/dist/controls-D193740P.cjs +86 -0
- package/dist/controls-D193740P.cjs.map +1 -0
- package/dist/controls-Dj3k83WJ.cjs +169 -0
- package/dist/controls-Dj3k83WJ.cjs.map +1 -0
- package/dist/controls-Dp-hPfD4.js +75 -0
- package/dist/controls-Dp-hPfD4.js.map +1 -0
- package/dist/controls-ZeT4wgJ-.js +146 -0
- package/dist/controls-ZeT4wgJ-.js.map +1 -0
- package/dist/density-C7K5aGdQ.js +40 -0
- package/dist/density-C7K5aGdQ.js.map +1 -0
- package/dist/density-CUp3mMNH.cjs +45 -0
- package/dist/density-CUp3mMNH.cjs.map +1 -0
- package/dist/density.cjs +3 -0
- package/dist/density.d.cts +7 -0
- package/dist/density.d.cts.map +1 -0
- package/dist/density.d.ts +7 -0
- package/dist/density.d.ts.map +1 -0
- package/dist/density.js +2 -0
- package/dist/editing-BKNxRBEo.cjs +409 -0
- package/dist/editing-BKNxRBEo.cjs.map +1 -0
- package/dist/editing-BsaH2gDF.js +368 -0
- package/dist/editing-BsaH2gDF.js.map +1 -0
- package/dist/editing-CdIoFGiK.d.cts +60 -0
- package/dist/editing-CdIoFGiK.d.cts.map +1 -0
- package/dist/editing-Dho3Y2RK.d.ts +60 -0
- package/dist/editing-Dho3Y2RK.d.ts.map +1 -0
- package/dist/editing.cjs +22 -0
- package/dist/editing.d.cts +2 -0
- package/dist/editing.d.ts +2 -0
- package/dist/editing.js +2 -0
- package/dist/export.cjs +16 -0
- package/dist/export.cjs.map +1 -0
- package/dist/export.d.cts +9 -0
- package/dist/export.d.cts.map +1 -0
- package/dist/export.d.ts +9 -0
- package/dist/export.d.ts.map +1 -0
- package/dist/export.js +15 -0
- package/dist/export.js.map +1 -0
- package/dist/extra-rows.cjs +8 -0
- package/dist/extra-rows.d.cts +2 -0
- package/dist/extra-rows.d.ts +2 -0
- package/dist/extra-rows.js +2 -0
- package/dist/filters-BqymR1RY.cjs +214 -0
- package/dist/filters-BqymR1RY.cjs.map +1 -0
- package/dist/filters-i_dmiQO_.js +203 -0
- package/dist/filters-i_dmiQO_.js.map +1 -0
- package/dist/filters.cjs +14 -0
- package/dist/filters.d.cts +66 -0
- package/dist/filters.d.cts.map +1 -0
- package/dist/filters.d.ts +66 -0
- package/dist/filters.d.ts.map +1 -0
- package/dist/filters.js +3 -0
- package/dist/find-in-table.cjs +21 -0
- package/dist/find-in-table.cjs.map +1 -0
- package/dist/find-in-table.d.cts +8 -0
- package/dist/find-in-table.d.cts.map +1 -0
- package/dist/find-in-table.d.ts +8 -0
- package/dist/find-in-table.d.ts.map +1 -0
- package/dist/find-in-table.js +20 -0
- package/dist/find-in-table.js.map +1 -0
- package/dist/fit-columns.cjs +8 -0
- package/dist/fit-columns.d.cts +2 -0
- package/dist/fit-columns.d.ts +2 -0
- package/dist/fit-columns.js +2 -0
- package/dist/fullscreen.cjs +16 -0
- package/dist/fullscreen.cjs.map +1 -0
- package/dist/fullscreen.d.cts +7 -0
- package/dist/fullscreen.d.cts.map +1 -0
- package/dist/fullscreen.d.ts +7 -0
- package/dist/fullscreen.d.ts.map +1 -0
- package/dist/fullscreen.js +15 -0
- package/dist/fullscreen.js.map +1 -0
- package/dist/grouping-panel.cjs +144 -0
- package/dist/grouping-panel.cjs.map +1 -0
- package/dist/grouping-panel.d.cts +8 -0
- package/dist/grouping-panel.d.cts.map +1 -0
- package/dist/grouping-panel.d.ts +8 -0
- package/dist/grouping-panel.d.ts.map +1 -0
- package/dist/grouping-panel.js +143 -0
- package/dist/grouping-panel.js.map +1 -0
- package/dist/grouping.cjs +40 -0
- package/dist/grouping.cjs.map +1 -0
- package/dist/grouping.d.cts +10 -0
- package/dist/grouping.d.cts.map +1 -0
- package/dist/grouping.d.ts +10 -0
- package/dist/grouping.d.ts.map +1 -0
- package/dist/grouping.js +21 -0
- package/dist/grouping.js.map +1 -0
- package/dist/header-filters-C6K_Y6Sa.js +250 -0
- package/dist/header-filters-C6K_Y6Sa.js.map +1 -0
- package/dist/header-filters-WYusPMig.cjs +273 -0
- package/dist/header-filters-WYusPMig.cjs.map +1 -0
- package/dist/header-filters.cjs +6 -0
- package/dist/header-filters.d.cts +52 -0
- package/dist/header-filters.d.cts.map +1 -0
- package/dist/header-filters.d.ts +52 -0
- package/dist/header-filters.d.ts.map +1 -0
- package/dist/header-filters.js +2 -0
- package/dist/index.cjs +304 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +24 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +303 -0
- package/dist/index.js.map +1 -0
- package/dist/input-Cgm2r2YC.cjs +57 -0
- package/dist/input-Cgm2r2YC.cjs.map +1 -0
- package/dist/input-l5DTkb1E.js +52 -0
- package/dist/input-l5DTkb1E.js.map +1 -0
- package/dist/mobile-298ixM-b.js +419 -0
- package/dist/mobile-298ixM-b.js.map +1 -0
- package/dist/mobile-52C0B3aN.cjs +436 -0
- package/dist/mobile-52C0B3aN.cjs.map +1 -0
- package/dist/modalEscape-CP6_uqjE.js +28 -0
- package/dist/modalEscape-CP6_uqjE.js.map +1 -0
- package/dist/modalEscape-aYoIK8OW.cjs +33 -0
- package/dist/modalEscape-aYoIK8OW.cjs.map +1 -0
- package/dist/multi-sort.cjs +8 -0
- package/dist/multi-sort.d.cts +2 -0
- package/dist/multi-sort.d.ts +2 -0
- package/dist/multi-sort.js +2 -0
- package/dist/nested-table.cjs +8 -0
- package/dist/nested-table.d.cts +2 -0
- package/dist/nested-table.d.ts +2 -0
- package/dist/nested-table.js +2 -0
- package/dist/pinned-summary-rows.cjs +8 -0
- package/dist/pinned-summary-rows.d.cts +2 -0
- package/dist/pinned-summary-rows.d.ts +2 -0
- package/dist/pinned-summary-rows.js +2 -0
- package/dist/pivot.cjs +81 -0
- package/dist/pivot.cjs.map +1 -0
- package/dist/pivot.d.cts +11 -0
- package/dist/pivot.d.cts.map +1 -0
- package/dist/pivot.d.ts +11 -0
- package/dist/pivot.d.ts.map +1 -0
- package/dist/pivot.js +80 -0
- package/dist/pivot.js.map +1 -0
- package/dist/preset.cjs +40 -0
- package/dist/preset.cjs.map +1 -0
- package/dist/preset.d.cts +21 -0
- package/dist/preset.d.cts.map +1 -0
- package/dist/preset.d.ts +21 -0
- package/dist/preset.d.ts.map +1 -0
- package/dist/preset.js +38 -0
- package/dist/preset.js.map +1 -0
- package/dist/print.cjs +17 -0
- package/dist/print.cjs.map +1 -0
- package/dist/print.d.cts +6 -0
- package/dist/print.d.cts.map +1 -0
- package/dist/print.d.ts +6 -0
- package/dist/print.d.ts.map +1 -0
- package/dist/print.js +16 -0
- package/dist/print.js.map +1 -0
- package/dist/renderers.cjs +5 -0
- package/dist/renderers.d.cts +33 -0
- package/dist/renderers.d.cts.map +1 -0
- package/dist/renderers.d.ts +33 -0
- package/dist/renderers.d.ts.map +1 -0
- package/dist/renderers.js +2 -0
- package/dist/resizable-columns.cjs +8 -0
- package/dist/resizable-columns.d.cts +2 -0
- package/dist/resizable-columns.d.ts +2 -0
- package/dist/resizable-columns.js +2 -0
- package/dist/row-actions.cjs +15 -0
- package/dist/row-actions.cjs.map +1 -0
- package/dist/row-actions.d.cts +7 -0
- package/dist/row-actions.d.cts.map +1 -0
- package/dist/row-actions.d.ts +7 -0
- package/dist/row-actions.d.ts.map +1 -0
- package/dist/row-actions.js +14 -0
- package/dist/row-actions.js.map +1 -0
- package/dist/row-appearance.cjs +8 -0
- package/dist/row-appearance.d.cts +2 -0
- package/dist/row-appearance.d.ts +2 -0
- package/dist/row-appearance.js +2 -0
- package/dist/row-detail.cjs +28 -0
- package/dist/row-detail.d.cts +4 -0
- package/dist/row-detail.d.ts +4 -0
- package/dist/row-detail.js +4 -0
- package/dist/row-pinning.cjs +15 -0
- package/dist/row-pinning.cjs.map +1 -0
- package/dist/row-pinning.d.cts +8 -0
- package/dist/row-pinning.d.cts.map +1 -0
- package/dist/row-pinning.d.ts +8 -0
- package/dist/row-pinning.d.ts.map +1 -0
- package/dist/row-pinning.js +14 -0
- package/dist/row-pinning.js.map +1 -0
- package/dist/row-reorder.cjs +193 -0
- package/dist/row-reorder.cjs.map +1 -0
- package/dist/row-reorder.d.cts +6 -0
- package/dist/row-reorder.d.cts.map +1 -0
- package/dist/row-reorder.d.ts +6 -0
- package/dist/row-reorder.d.ts.map +1 -0
- package/dist/row-reorder.js +186 -0
- package/dist/row-reorder.js.map +1 -0
- package/dist/rowActionsSlot-B48S_yZD.cjs +21 -0
- package/dist/rowActionsSlot-B48S_yZD.cjs.map +1 -0
- package/dist/rowActionsSlot-YWkCOo5W.js +11 -0
- package/dist/rowActionsSlot-YWkCOo5W.js.map +1 -0
- package/dist/saved-views-BO5_w40C.js +132 -0
- package/dist/saved-views-BO5_w40C.js.map +1 -0
- package/dist/saved-views-CRyxrATI.cjs +143 -0
- package/dist/saved-views-CRyxrATI.cjs.map +1 -0
- package/dist/saved-views.cjs +4 -0
- package/dist/saved-views.d.cts +15 -0
- package/dist/saved-views.d.cts.map +1 -0
- package/dist/saved-views.d.ts +15 -0
- package/dist/saved-views.d.ts.map +1 -0
- package/dist/saved-views.js +2 -0
- package/dist/select-BSo8XTMg.js +92 -0
- package/dist/select-BSo8XTMg.js.map +1 -0
- package/dist/select-ChoLy-Ja.cjs +97 -0
- package/dist/select-ChoLy-Ja.cjs.map +1 -0
- package/dist/selection-stats.cjs +3 -0
- package/dist/selection-stats.d.cts +2 -0
- package/dist/selection-stats.d.ts +2 -0
- package/dist/selection-stats.js +2 -0
- package/dist/side-panel.cjs +60 -0
- package/dist/side-panel.cjs.map +1 -0
- package/dist/side-panel.d.cts +7 -0
- package/dist/side-panel.d.cts.map +1 -0
- package/dist/side-panel.d.ts +7 -0
- package/dist/side-panel.d.ts.map +1 -0
- package/dist/side-panel.js +59 -0
- package/dist/side-panel.js.map +1 -0
- package/dist/status-bar.cjs +19 -0
- package/dist/status-bar.cjs.map +1 -0
- package/dist/status-bar.d.cts +7 -0
- package/dist/status-bar.d.cts.map +1 -0
- package/dist/status-bar.d.ts +7 -0
- package/dist/status-bar.d.ts.map +1 -0
- package/dist/status-bar.js +17 -0
- package/dist/status-bar.js.map +1 -0
- package/dist/styles.css +218 -0
- package/dist/tree.cjs +21 -0
- package/dist/tree.d.cts +3 -0
- package/dist/tree.d.ts +3 -0
- package/dist/tree.js +3 -0
- package/dist/types-oiTfSnx3.d.cts +13 -0
- package/dist/types-oiTfSnx3.d.cts.map +1 -0
- package/dist/types-oiTfSnx3.d.ts +13 -0
- package/dist/types-oiTfSnx3.d.ts.map +1 -0
- package/dist/virtualize.cjs +8 -0
- package/dist/virtualize.d.cts +2 -0
- package/dist/virtualize.d.ts +2 -0
- package/dist/virtualize.js +2 -0
- package/package.json +457 -5
package/dist/pivot.cjs
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_button = require("./button-CVOchGam.cjs");
|
|
3
|
+
const require_select = require("./select-ChoLy-Ja.cjs");
|
|
4
|
+
let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
|
|
5
|
+
let vue = require("vue");
|
|
6
|
+
//#region src/pivot.ts
|
|
7
|
+
const slots = {
|
|
8
|
+
Surface: ({ children, className, ...attrs }) => (0, vue.h)("div", {
|
|
9
|
+
...attrs,
|
|
10
|
+
class: ["adapttable-naive-pivot", className]
|
|
11
|
+
}, [children]),
|
|
12
|
+
Zone: ({ children, label, zone, ...attrs }) => (0, vue.h)("fieldset", {
|
|
13
|
+
...attrs,
|
|
14
|
+
"data-zone": zone
|
|
15
|
+
}, [(0, vue.h)("legend", label), children]),
|
|
16
|
+
Field: ({ label, aggregation, onMoveUp, onMoveDown, onRemove, moveUpLabel, moveDownLabel, removeLabel, ...attrs }) => (0, vue.h)("div", attrs, [
|
|
17
|
+
(0, vue.h)("span", label),
|
|
18
|
+
aggregation,
|
|
19
|
+
require_button.naiveButton({
|
|
20
|
+
disabled: !onMoveUp,
|
|
21
|
+
"aria-label": `${moveUpLabel}: ${label}`,
|
|
22
|
+
onClick: onMoveUp
|
|
23
|
+
}, moveUpLabel),
|
|
24
|
+
require_button.naiveButton({
|
|
25
|
+
disabled: !onMoveDown,
|
|
26
|
+
"aria-label": `${moveDownLabel}: ${label}`,
|
|
27
|
+
onClick: onMoveDown
|
|
28
|
+
}, moveDownLabel),
|
|
29
|
+
require_button.naiveButton({
|
|
30
|
+
"aria-label": `${removeLabel}: ${label}`,
|
|
31
|
+
onClick: onRemove
|
|
32
|
+
}, removeLabel)
|
|
33
|
+
]),
|
|
34
|
+
Add: ({ label, options, onAdd }) => require_select.naiveSelect({
|
|
35
|
+
attrs: {
|
|
36
|
+
"aria-label": label,
|
|
37
|
+
disabled: !options.length
|
|
38
|
+
},
|
|
39
|
+
value: "",
|
|
40
|
+
options: [{
|
|
41
|
+
value: "",
|
|
42
|
+
label
|
|
43
|
+
}, ...options.map((item) => ({
|
|
44
|
+
value: item.key,
|
|
45
|
+
label: item.label
|
|
46
|
+
}))],
|
|
47
|
+
onChange: (value) => {
|
|
48
|
+
if (value) onAdd(value);
|
|
49
|
+
}
|
|
50
|
+
}),
|
|
51
|
+
Agg: ({ label, value, options, optionLabels, onChange }) => require_select.naiveSelect({
|
|
52
|
+
attrs: { "aria-label": label },
|
|
53
|
+
value,
|
|
54
|
+
options: options.map((item) => ({
|
|
55
|
+
value: item,
|
|
56
|
+
label: optionLabels[item]
|
|
57
|
+
})),
|
|
58
|
+
onChange: (next) => {
|
|
59
|
+
const option = options.find((item) => item === next);
|
|
60
|
+
if (option) onChange(option);
|
|
61
|
+
}
|
|
62
|
+
})
|
|
63
|
+
};
|
|
64
|
+
/** The pivot axes and measures, edited with Naive UI controls. */
|
|
65
|
+
function PivotPanel(props) {
|
|
66
|
+
return (0, _adapttable_vue_adapter.PivotPanelChrome)({
|
|
67
|
+
...props,
|
|
68
|
+
slots
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
PivotPanel.props = [
|
|
72
|
+
"fields",
|
|
73
|
+
"config",
|
|
74
|
+
"onChange",
|
|
75
|
+
"labels",
|
|
76
|
+
"className"
|
|
77
|
+
];
|
|
78
|
+
//#endregion
|
|
79
|
+
exports.PivotPanel = PivotPanel;
|
|
80
|
+
|
|
81
|
+
//# sourceMappingURL=pivot.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pivot.cjs","names":["h","naiveButton","naiveSelect","PivotPanelChrome"],"sources":["../src/pivot.ts"],"sourcesContent":["/** Pivot configuration with Naive UI selects and buttons over the binding's Chrome. */\nimport \"./pivot.css\";\n\nimport {\n PivotPanelChrome,\n type PivotPanelChromeProps,\n type PivotPanelSlots,\n} from \"@adapttable/vue/adapter\";\nimport { h } from \"vue\";\n\nimport { naiveButton } from \"./controls/button\";\nimport { naiveSelect } from \"./controls/select\";\n\nexport type PivotPanelProps = Omit<PivotPanelChromeProps, \"slots\">;\n\nconst slots: PivotPanelSlots = {\n Surface: ({ children, className, ...attrs }) =>\n h(\"div\", { ...attrs, class: [\"adapttable-naive-pivot\", className] }, [\n children,\n ]),\n Zone: ({ children, label, zone, ...attrs }) =>\n h(\"fieldset\", { ...attrs, \"data-zone\": zone }, [\n h(\"legend\", label),\n children,\n ]),\n Field: ({\n label,\n aggregation,\n onMoveUp,\n onMoveDown,\n onRemove,\n moveUpLabel,\n moveDownLabel,\n removeLabel,\n ...attrs\n }) =>\n h(\"div\", attrs, [\n h(\"span\", label),\n aggregation,\n naiveButton(\n {\n disabled: !onMoveUp,\n \"aria-label\": `${moveUpLabel}: ${label}`,\n onClick: onMoveUp,\n },\n moveUpLabel\n ),\n naiveButton(\n {\n disabled: !onMoveDown,\n \"aria-label\": `${moveDownLabel}: ${label}`,\n onClick: onMoveDown,\n },\n moveDownLabel\n ),\n naiveButton(\n { \"aria-label\": `${removeLabel}: ${label}`, onClick: onRemove },\n removeLabel\n ),\n ]),\n Add: ({ label, options, onAdd }) =>\n naiveSelect({\n attrs: { \"aria-label\": label, disabled: !options.length },\n value: \"\",\n options: [\n { value: \"\", label },\n ...options.map((item) => ({ value: item.key, label: item.label })),\n ],\n onChange: (value) => {\n if (value) onAdd(value);\n },\n }),\n Agg: ({ label, value, options, optionLabels, onChange }) =>\n naiveSelect({\n attrs: { \"aria-label\": label },\n value,\n options: options.map((item) => ({\n value: item,\n label: optionLabels[item],\n })),\n onChange: (next) => {\n const option = options.find((item) => item === next);\n if (option) onChange(option);\n },\n }),\n};\n\n/** The pivot axes and measures, edited with Naive UI controls. */\nexport function PivotPanel(props: PivotPanelProps) {\n return PivotPanelChrome({ ...props, slots });\n}\nPivotPanel.props = [\"fields\", \"config\", \"onChange\", \"labels\", \"className\"];\n"],"mappings":";;;;;;AAeA,MAAM,QAAyB;CAC7B,UAAU,EAAE,UAAU,WAAW,GAAG,aAAA,GAClCA,IAAAA,EAAAA,CAAE,OAAO;EAAE,GAAG;EAAO,OAAO,CAAC,0BAA0B,SAAS;CAAE,GAAG,CACnE,QACF,CAAC;CACH,OAAO,EAAE,UAAU,OAAO,MAAM,GAAG,aAAA,GACjCA,IAAAA,EAAAA,CAAE,YAAY;EAAE,GAAG;EAAO,aAAa;CAAK,GAAG,EAAA,GAC7CA,IAAAA,EAAAA,CAAE,UAAU,KAAK,GACjB,QACF,CAAC;CACH,QAAQ,EACN,OACA,aACA,UACA,YACA,UACA,aACA,eACA,aACA,GAAG,aAAA,GAEHA,IAAAA,EAAAA,CAAE,OAAO,OAAO;GACdA,GAAAA,IAAAA,EAAAA,CAAE,QAAQ,KAAK;EACf;EACAC,eAAAA,YACE;GACE,UAAU,CAAC;GACX,cAAc,GAAG,YAAY,IAAI;GACjC,SAAS;EACX,GACA,WACF;EACAA,eAAAA,YACE;GACE,UAAU,CAAC;GACX,cAAc,GAAG,cAAc,IAAI;GACnC,SAAS;EACX,GACA,aACF;EACAA,eAAAA,YACE;GAAE,cAAc,GAAG,YAAY,IAAI;GAAS,SAAS;EAAS,GAC9D,WACF;CACF,CAAC;CACH,MAAM,EAAE,OAAO,SAAS,YACtBC,eAAAA,YAAY;EACV,OAAO;GAAE,cAAc;GAAO,UAAU,CAAC,QAAQ;EAAO;EACxD,OAAO;EACP,SAAS,CACP;GAAE,OAAO;GAAI;EAAM,GACnB,GAAG,QAAQ,KAAK,UAAU;GAAE,OAAO,KAAK;GAAK,OAAO,KAAK;EAAM,EAAE,CACnE;EACA,WAAW,UAAU;GACnB,IAAI,OAAO,MAAM,KAAK;EACxB;CACF,CAAC;CACH,MAAM,EAAE,OAAO,OAAO,SAAS,cAAc,eAC3CA,eAAAA,YAAY;EACV,OAAO,EAAE,cAAc,MAAM;EAC7B;EACA,SAAS,QAAQ,KAAK,UAAU;GAC9B,OAAO;GACP,OAAO,aAAa;EACtB,EAAE;EACF,WAAW,SAAS;GAClB,MAAM,SAAS,QAAQ,MAAM,SAAS,SAAS,IAAI;GACnD,IAAI,QAAQ,SAAS,MAAM;EAC7B;CACF,CAAC;AACL;;AAGA,SAAgB,WAAW,OAAwB;CACjD,QAAA,GAAOC,wBAAAA,iBAAAA,CAAiB;EAAE,GAAG;EAAO;CAAM,CAAC;AAC7C;AACA,WAAW,QAAQ;CAAC;CAAU;CAAU;CAAY;CAAU;AAAW"}
|
package/dist/pivot.d.cts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PivotPanelChromeProps } from "@adapttable/vue/adapter";
|
|
2
|
+
//#region src/pivot.d.ts
|
|
3
|
+
type PivotPanelProps = Omit<PivotPanelChromeProps, "slots">;
|
|
4
|
+
/** The pivot axes and measures, edited with Naive UI controls. */
|
|
5
|
+
declare function PivotPanel(props: PivotPanelProps): import("vue").VNodeChild;
|
|
6
|
+
declare namespace PivotPanel {
|
|
7
|
+
var props: string[];
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { PivotPanel, PivotPanelProps };
|
|
11
|
+
//# sourceMappingURL=pivot.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pivot.d.cts","names":[],"sources":["../src/pivot.ts"],"mappings":";;KAaY,kBAAkB,KAAK;;iBA2EnB,WAAW,OAAO,gCAAe;kBAAjC;MAAA"}
|
package/dist/pivot.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PivotPanelChromeProps } from "@adapttable/vue/adapter";
|
|
2
|
+
//#region src/pivot.d.ts
|
|
3
|
+
type PivotPanelProps = Omit<PivotPanelChromeProps, "slots">;
|
|
4
|
+
/** The pivot axes and measures, edited with Naive UI controls. */
|
|
5
|
+
declare function PivotPanel(props: PivotPanelProps): import("vue").VNodeChild;
|
|
6
|
+
declare namespace PivotPanel {
|
|
7
|
+
var props: string[];
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { PivotPanel, PivotPanelProps };
|
|
11
|
+
//# sourceMappingURL=pivot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pivot.d.ts","names":[],"sources":["../src/pivot.ts"],"mappings":";;KAaY,kBAAkB,KAAK;;iBA2EnB,WAAW,OAAO,gCAAe;kBAAjC;MAAA"}
|
package/dist/pivot.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { t as naiveButton } from "./button-Cf1lslmX.js";
|
|
2
|
+
import { t as naiveSelect } from "./select-BSo8XTMg.js";
|
|
3
|
+
import { PivotPanelChrome } from "@adapttable/vue/adapter";
|
|
4
|
+
import { h } from "vue";
|
|
5
|
+
//#region src/pivot.ts
|
|
6
|
+
const slots = {
|
|
7
|
+
Surface: ({ children, className, ...attrs }) => h("div", {
|
|
8
|
+
...attrs,
|
|
9
|
+
class: ["adapttable-naive-pivot", className]
|
|
10
|
+
}, [children]),
|
|
11
|
+
Zone: ({ children, label, zone, ...attrs }) => h("fieldset", {
|
|
12
|
+
...attrs,
|
|
13
|
+
"data-zone": zone
|
|
14
|
+
}, [h("legend", label), children]),
|
|
15
|
+
Field: ({ label, aggregation, onMoveUp, onMoveDown, onRemove, moveUpLabel, moveDownLabel, removeLabel, ...attrs }) => h("div", attrs, [
|
|
16
|
+
h("span", label),
|
|
17
|
+
aggregation,
|
|
18
|
+
naiveButton({
|
|
19
|
+
disabled: !onMoveUp,
|
|
20
|
+
"aria-label": `${moveUpLabel}: ${label}`,
|
|
21
|
+
onClick: onMoveUp
|
|
22
|
+
}, moveUpLabel),
|
|
23
|
+
naiveButton({
|
|
24
|
+
disabled: !onMoveDown,
|
|
25
|
+
"aria-label": `${moveDownLabel}: ${label}`,
|
|
26
|
+
onClick: onMoveDown
|
|
27
|
+
}, moveDownLabel),
|
|
28
|
+
naiveButton({
|
|
29
|
+
"aria-label": `${removeLabel}: ${label}`,
|
|
30
|
+
onClick: onRemove
|
|
31
|
+
}, removeLabel)
|
|
32
|
+
]),
|
|
33
|
+
Add: ({ label, options, onAdd }) => naiveSelect({
|
|
34
|
+
attrs: {
|
|
35
|
+
"aria-label": label,
|
|
36
|
+
disabled: !options.length
|
|
37
|
+
},
|
|
38
|
+
value: "",
|
|
39
|
+
options: [{
|
|
40
|
+
value: "",
|
|
41
|
+
label
|
|
42
|
+
}, ...options.map((item) => ({
|
|
43
|
+
value: item.key,
|
|
44
|
+
label: item.label
|
|
45
|
+
}))],
|
|
46
|
+
onChange: (value) => {
|
|
47
|
+
if (value) onAdd(value);
|
|
48
|
+
}
|
|
49
|
+
}),
|
|
50
|
+
Agg: ({ label, value, options, optionLabels, onChange }) => naiveSelect({
|
|
51
|
+
attrs: { "aria-label": label },
|
|
52
|
+
value,
|
|
53
|
+
options: options.map((item) => ({
|
|
54
|
+
value: item,
|
|
55
|
+
label: optionLabels[item]
|
|
56
|
+
})),
|
|
57
|
+
onChange: (next) => {
|
|
58
|
+
const option = options.find((item) => item === next);
|
|
59
|
+
if (option) onChange(option);
|
|
60
|
+
}
|
|
61
|
+
})
|
|
62
|
+
};
|
|
63
|
+
/** The pivot axes and measures, edited with Naive UI controls. */
|
|
64
|
+
function PivotPanel(props) {
|
|
65
|
+
return PivotPanelChrome({
|
|
66
|
+
...props,
|
|
67
|
+
slots
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
PivotPanel.props = [
|
|
71
|
+
"fields",
|
|
72
|
+
"config",
|
|
73
|
+
"onChange",
|
|
74
|
+
"labels",
|
|
75
|
+
"className"
|
|
76
|
+
];
|
|
77
|
+
//#endregion
|
|
78
|
+
export { PivotPanel };
|
|
79
|
+
|
|
80
|
+
//# sourceMappingURL=pivot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pivot.js","names":[],"sources":["../src/pivot.ts"],"sourcesContent":["/** Pivot configuration with Naive UI selects and buttons over the binding's Chrome. */\nimport \"./pivot.css\";\n\nimport {\n PivotPanelChrome,\n type PivotPanelChromeProps,\n type PivotPanelSlots,\n} from \"@adapttable/vue/adapter\";\nimport { h } from \"vue\";\n\nimport { naiveButton } from \"./controls/button\";\nimport { naiveSelect } from \"./controls/select\";\n\nexport type PivotPanelProps = Omit<PivotPanelChromeProps, \"slots\">;\n\nconst slots: PivotPanelSlots = {\n Surface: ({ children, className, ...attrs }) =>\n h(\"div\", { ...attrs, class: [\"adapttable-naive-pivot\", className] }, [\n children,\n ]),\n Zone: ({ children, label, zone, ...attrs }) =>\n h(\"fieldset\", { ...attrs, \"data-zone\": zone }, [\n h(\"legend\", label),\n children,\n ]),\n Field: ({\n label,\n aggregation,\n onMoveUp,\n onMoveDown,\n onRemove,\n moveUpLabel,\n moveDownLabel,\n removeLabel,\n ...attrs\n }) =>\n h(\"div\", attrs, [\n h(\"span\", label),\n aggregation,\n naiveButton(\n {\n disabled: !onMoveUp,\n \"aria-label\": `${moveUpLabel}: ${label}`,\n onClick: onMoveUp,\n },\n moveUpLabel\n ),\n naiveButton(\n {\n disabled: !onMoveDown,\n \"aria-label\": `${moveDownLabel}: ${label}`,\n onClick: onMoveDown,\n },\n moveDownLabel\n ),\n naiveButton(\n { \"aria-label\": `${removeLabel}: ${label}`, onClick: onRemove },\n removeLabel\n ),\n ]),\n Add: ({ label, options, onAdd }) =>\n naiveSelect({\n attrs: { \"aria-label\": label, disabled: !options.length },\n value: \"\",\n options: [\n { value: \"\", label },\n ...options.map((item) => ({ value: item.key, label: item.label })),\n ],\n onChange: (value) => {\n if (value) onAdd(value);\n },\n }),\n Agg: ({ label, value, options, optionLabels, onChange }) =>\n naiveSelect({\n attrs: { \"aria-label\": label },\n value,\n options: options.map((item) => ({\n value: item,\n label: optionLabels[item],\n })),\n onChange: (next) => {\n const option = options.find((item) => item === next);\n if (option) onChange(option);\n },\n }),\n};\n\n/** The pivot axes and measures, edited with Naive UI controls. */\nexport function PivotPanel(props: PivotPanelProps) {\n return PivotPanelChrome({ ...props, slots });\n}\nPivotPanel.props = [\"fields\", \"config\", \"onChange\", \"labels\", \"className\"];\n"],"mappings":";;;;;AAeA,MAAM,QAAyB;CAC7B,UAAU,EAAE,UAAU,WAAW,GAAG,YAClC,EAAE,OAAO;EAAE,GAAG;EAAO,OAAO,CAAC,0BAA0B,SAAS;CAAE,GAAG,CACnE,QACF,CAAC;CACH,OAAO,EAAE,UAAU,OAAO,MAAM,GAAG,YACjC,EAAE,YAAY;EAAE,GAAG;EAAO,aAAa;CAAK,GAAG,CAC7C,EAAE,UAAU,KAAK,GACjB,QACF,CAAC;CACH,QAAQ,EACN,OACA,aACA,UACA,YACA,UACA,aACA,eACA,aACA,GAAG,YAEH,EAAE,OAAO,OAAO;EACd,EAAE,QAAQ,KAAK;EACf;EACA,YACE;GACE,UAAU,CAAC;GACX,cAAc,GAAG,YAAY,IAAI;GACjC,SAAS;EACX,GACA,WACF;EACA,YACE;GACE,UAAU,CAAC;GACX,cAAc,GAAG,cAAc,IAAI;GACnC,SAAS;EACX,GACA,aACF;EACA,YACE;GAAE,cAAc,GAAG,YAAY,IAAI;GAAS,SAAS;EAAS,GAC9D,WACF;CACF,CAAC;CACH,MAAM,EAAE,OAAO,SAAS,YACtB,YAAY;EACV,OAAO;GAAE,cAAc;GAAO,UAAU,CAAC,QAAQ;EAAO;EACxD,OAAO;EACP,SAAS,CACP;GAAE,OAAO;GAAI;EAAM,GACnB,GAAG,QAAQ,KAAK,UAAU;GAAE,OAAO,KAAK;GAAK,OAAO,KAAK;EAAM,EAAE,CACnE;EACA,WAAW,UAAU;GACnB,IAAI,OAAO,MAAM,KAAK;EACxB;CACF,CAAC;CACH,MAAM,EAAE,OAAO,OAAO,SAAS,cAAc,eAC3C,YAAY;EACV,OAAO,EAAE,cAAc,MAAM;EAC7B;EACA,SAAS,QAAQ,KAAK,UAAU;GAC9B,OAAO;GACP,OAAO,aAAa;EACtB,EAAE;EACF,WAAW,SAAS;GAClB,MAAM,SAAS,QAAQ,MAAM,SAAS,SAAS,IAAI;GACnD,IAAI,QAAQ,SAAS,MAAM;EAC7B;CACF,CAAC;AACL;;AAGA,SAAgB,WAAW,OAAwB;CACjD,OAAO,iBAAiB;EAAE,GAAG;EAAO;CAAM,CAAC;AAC7C;AACA,WAAW,QAAQ;CAAC;CAAU;CAAU;CAAY;CAAU;AAAW"}
|
package/dist/preset.cjs
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_saved_views = require("./saved-views-CRyxrATI.cjs");
|
|
3
|
+
const require_grouping = require("./grouping.cjs");
|
|
4
|
+
const require_bulk_actions = require("./bulk-actions.cjs");
|
|
5
|
+
const require_export = require("./export.cjs");
|
|
6
|
+
const require_find_in_table = require("./find-in-table.cjs");
|
|
7
|
+
const require_status_bar = require("./status-bar.cjs");
|
|
8
|
+
const require_column_menu = require("./column-menu-Cd8Fm695.cjs");
|
|
9
|
+
const require_density = require("./density-CUp3mMNH.cjs");
|
|
10
|
+
const require_filters = require("./filters-BqymR1RY.cjs");
|
|
11
|
+
require("./fit-columns.cjs");
|
|
12
|
+
const require_fullscreen = require("./fullscreen.cjs");
|
|
13
|
+
const require_header_filters = require("./header-filters-WYusPMig.cjs");
|
|
14
|
+
require("./multi-sort.cjs");
|
|
15
|
+
require("./resizable-columns.cjs");
|
|
16
|
+
let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
|
|
17
|
+
let _adapttable_vue_features = require("@adapttable/vue/features");
|
|
18
|
+
//#region src/preset.ts
|
|
19
|
+
function standardFeatures(options = {}) {
|
|
20
|
+
return (0, _adapttable_vue_adapter.standardFeatureList)({
|
|
21
|
+
columnMenu: require_column_menu.columnMenu,
|
|
22
|
+
densityChooser: require_density.densityChooser,
|
|
23
|
+
exportCsv: require_export.exportCsv,
|
|
24
|
+
findInTable: require_find_in_table.findInTable,
|
|
25
|
+
fitColumns: _adapttable_vue_features.fitColumns,
|
|
26
|
+
fullscreen: require_fullscreen.fullscreen,
|
|
27
|
+
headerFilters: require_header_filters.headerFilters,
|
|
28
|
+
multiSort: _adapttable_vue_features.multiSort,
|
|
29
|
+
resizableColumns: _adapttable_vue_features.resizableColumns,
|
|
30
|
+
statusBar: require_status_bar.statusBar,
|
|
31
|
+
grouping: require_grouping.grouping,
|
|
32
|
+
bulkActions: require_bulk_actions.bulkActions,
|
|
33
|
+
filters: require_filters.filters,
|
|
34
|
+
savedViews: require_saved_views.savedViews
|
|
35
|
+
}, options);
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
exports.standardFeatures = standardFeatures;
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=preset.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset.cjs","names":["standardFeatureList"],"sources":["../src/preset.ts"],"sourcesContent":["/** The standard Naive UI table, composed from the public individual features. */\nimport type {\n BulkAction,\n FilterDef,\n StaticTableFeature,\n TableFeature,\n UseSavedViewsOptions,\n} from \"@adapttable/vue\";\nimport { standardFeatureList } from \"@adapttable/vue/adapter\";\n\nimport { bulkActions } from \"./bulk-actions\";\nimport { columnMenu } from \"./column-menu\";\nimport { densityChooser } from \"./density\";\nimport { exportCsv } from \"./export\";\nimport { filters } from \"./filters\";\nimport { findInTable } from \"./find-in-table\";\nimport { fitColumns } from \"./fit-columns\";\nimport { fullscreen } from \"./fullscreen\";\nimport { grouping } from \"./grouping\";\nimport { headerFilters } from \"./header-filters\";\nimport { multiSort } from \"./multi-sort\";\nimport { resizableColumns } from \"./resizable-columns\";\nimport { savedViews } from \"./saved-views\";\nimport { statusBar } from \"./status-bar\";\n\n/** Only configured members join the useful zero-argument feature list. @public */\nexport interface StandardFeatureOptions<TRow> {\n /** Group rows by these column keys. */\n readonly grouping?: string | readonly string[];\n /** Host-owned actions offered for selected rows. */\n readonly bulkActions?: readonly BulkAction[];\n /** Typed declarative filter definitions. */\n readonly filters?: readonly FilterDef<TRow>[];\n /** Saved-view persistence and naming. */\n readonly savedViews?: UseSavedViewsOptions;\n /** Show Find in the toolbar; keyboard Find remains available without it. */\n readonly findButton?: boolean;\n}\n\n/** Compose Naive UI features; append a same-ID feature to replace its default. @public */\nexport function standardFeatures(): StaticTableFeature[];\nexport function standardFeatures<TRow>(\n options?: StandardFeatureOptions<TRow>\n): TableFeature<TRow>[];\nexport function standardFeatures<TRow>(\n options: StandardFeatureOptions<TRow> = {}\n): TableFeature<TRow>[] {\n return standardFeatureList<\n TableFeature<TRow>,\n BulkAction,\n FilterDef<TRow>,\n UseSavedViewsOptions\n >(\n {\n columnMenu,\n densityChooser,\n exportCsv,\n findInTable,\n fitColumns,\n fullscreen,\n headerFilters,\n multiSort,\n resizableColumns,\n statusBar,\n grouping,\n bulkActions,\n filters,\n savedViews,\n },\n options\n );\n}\nexport type { FilterDef, UseSavedViewsOptions } from \"@adapttable/vue\";\n"],"mappings":";;;;;;;;;;;;;;;;;;AA4CA,SAAgB,iBACd,UAAwC,CAAC,GACnB;CACtB,QAAA,GAAOA,wBAAAA,oBAAAA,CAML;EACE,YAAA,oBAAA;EACA,gBAAA,gBAAA;EACA,WAAA,eAAA;EACA,aAAA,sBAAA;EACA,YAAA,yBAAA;EACA,YAAA,mBAAA;EACA,eAAA,uBAAA;EACA,WAAA,yBAAA;EACA,kBAAA,yBAAA;EACA,WAAA,mBAAA;EACA,UAAA,iBAAA;EACA,aAAA,qBAAA;EACA,SAAA,gBAAA;EACA,YAAA,oBAAA;CACF,GACA,OACF;AACF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BulkAction, FilterDef, FilterDef as FilterDef$1, StaticTableFeature, TableFeature, UseSavedViewsOptions, UseSavedViewsOptions as UseSavedViewsOptions$1 } from "@adapttable/vue";
|
|
2
|
+
//#region src/preset.d.ts
|
|
3
|
+
/** Only configured members join the useful zero-argument feature list. @public */
|
|
4
|
+
interface StandardFeatureOptions<TRow> {
|
|
5
|
+
/** Group rows by these column keys. */
|
|
6
|
+
readonly grouping?: string | readonly string[];
|
|
7
|
+
/** Host-owned actions offered for selected rows. */
|
|
8
|
+
readonly bulkActions?: readonly BulkAction[];
|
|
9
|
+
/** Typed declarative filter definitions. */
|
|
10
|
+
readonly filters?: readonly FilterDef$1<TRow>[];
|
|
11
|
+
/** Saved-view persistence and naming. */
|
|
12
|
+
readonly savedViews?: UseSavedViewsOptions$1;
|
|
13
|
+
/** Show Find in the toolbar; keyboard Find remains available without it. */
|
|
14
|
+
readonly findButton?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** Compose Naive UI features; append a same-ID feature to replace its default. @public */
|
|
17
|
+
declare function standardFeatures(): StaticTableFeature[];
|
|
18
|
+
declare function standardFeatures<TRow>(options?: StandardFeatureOptions<TRow>): TableFeature<TRow>[];
|
|
19
|
+
//#endregion
|
|
20
|
+
export { type FilterDef, StandardFeatureOptions, type UseSavedViewsOptions, standardFeatures };
|
|
21
|
+
//# sourceMappingURL=preset.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset.d.cts","names":[],"sources":["../src/preset.ts"],"mappings":";;;UA0BiB,uBAAuB;;WAE7B;;WAEA,uBAAuB;;WAEvB,mBAAmB,YAAU;;WAE7B,aAAa;;WAEb;;;iBAIK,oBAAoB;iBACpB,iBAAiB,MAC/B,UAAU,uBAAuB,QAChC,aAAa"}
|
package/dist/preset.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BulkAction, FilterDef, FilterDef as FilterDef$1, StaticTableFeature, TableFeature, UseSavedViewsOptions, UseSavedViewsOptions as UseSavedViewsOptions$1 } from "@adapttable/vue";
|
|
2
|
+
//#region src/preset.d.ts
|
|
3
|
+
/** Only configured members join the useful zero-argument feature list. @public */
|
|
4
|
+
interface StandardFeatureOptions<TRow> {
|
|
5
|
+
/** Group rows by these column keys. */
|
|
6
|
+
readonly grouping?: string | readonly string[];
|
|
7
|
+
/** Host-owned actions offered for selected rows. */
|
|
8
|
+
readonly bulkActions?: readonly BulkAction[];
|
|
9
|
+
/** Typed declarative filter definitions. */
|
|
10
|
+
readonly filters?: readonly FilterDef$1<TRow>[];
|
|
11
|
+
/** Saved-view persistence and naming. */
|
|
12
|
+
readonly savedViews?: UseSavedViewsOptions$1;
|
|
13
|
+
/** Show Find in the toolbar; keyboard Find remains available without it. */
|
|
14
|
+
readonly findButton?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** Compose Naive UI features; append a same-ID feature to replace its default. @public */
|
|
17
|
+
declare function standardFeatures(): StaticTableFeature[];
|
|
18
|
+
declare function standardFeatures<TRow>(options?: StandardFeatureOptions<TRow>): TableFeature<TRow>[];
|
|
19
|
+
//#endregion
|
|
20
|
+
export { type FilterDef, StandardFeatureOptions, type UseSavedViewsOptions, standardFeatures };
|
|
21
|
+
//# sourceMappingURL=preset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset.d.ts","names":[],"sources":["../src/preset.ts"],"mappings":";;;UA0BiB,uBAAuB;;WAE7B;;WAEA,uBAAuB;;WAEvB,mBAAmB,YAAU;;WAE7B,aAAa;;WAEb;;;iBAIK,oBAAoB;iBACpB,iBAAiB,MAC/B,UAAU,uBAAuB,QAChC,aAAa"}
|
package/dist/preset.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { n as savedViews } from "./saved-views-BO5_w40C.js";
|
|
2
|
+
import { grouping } from "./grouping.js";
|
|
3
|
+
import { bulkActions } from "./bulk-actions.js";
|
|
4
|
+
import { exportCsv } from "./export.js";
|
|
5
|
+
import { findInTable } from "./find-in-table.js";
|
|
6
|
+
import { statusBar } from "./status-bar.js";
|
|
7
|
+
import { t as columnMenu } from "./column-menu-B5xm8hhB.js";
|
|
8
|
+
import { t as densityChooser } from "./density-C7K5aGdQ.js";
|
|
9
|
+
import { n as filters } from "./filters-i_dmiQO_.js";
|
|
10
|
+
import { fitColumns } from "./fit-columns.js";
|
|
11
|
+
import { fullscreen } from "./fullscreen.js";
|
|
12
|
+
import { t as headerFilters } from "./header-filters-C6K_Y6Sa.js";
|
|
13
|
+
import { multiSort } from "./multi-sort.js";
|
|
14
|
+
import { resizableColumns } from "./resizable-columns.js";
|
|
15
|
+
import { standardFeatureList } from "@adapttable/vue/adapter";
|
|
16
|
+
//#region src/preset.ts
|
|
17
|
+
function standardFeatures(options = {}) {
|
|
18
|
+
return standardFeatureList({
|
|
19
|
+
columnMenu,
|
|
20
|
+
densityChooser,
|
|
21
|
+
exportCsv,
|
|
22
|
+
findInTable,
|
|
23
|
+
fitColumns,
|
|
24
|
+
fullscreen,
|
|
25
|
+
headerFilters,
|
|
26
|
+
multiSort,
|
|
27
|
+
resizableColumns,
|
|
28
|
+
statusBar,
|
|
29
|
+
grouping,
|
|
30
|
+
bulkActions,
|
|
31
|
+
filters,
|
|
32
|
+
savedViews
|
|
33
|
+
}, options);
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { standardFeatures };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=preset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset.js","names":[],"sources":["../src/preset.ts"],"sourcesContent":["/** The standard Naive UI table, composed from the public individual features. */\nimport type {\n BulkAction,\n FilterDef,\n StaticTableFeature,\n TableFeature,\n UseSavedViewsOptions,\n} from \"@adapttable/vue\";\nimport { standardFeatureList } from \"@adapttable/vue/adapter\";\n\nimport { bulkActions } from \"./bulk-actions\";\nimport { columnMenu } from \"./column-menu\";\nimport { densityChooser } from \"./density\";\nimport { exportCsv } from \"./export\";\nimport { filters } from \"./filters\";\nimport { findInTable } from \"./find-in-table\";\nimport { fitColumns } from \"./fit-columns\";\nimport { fullscreen } from \"./fullscreen\";\nimport { grouping } from \"./grouping\";\nimport { headerFilters } from \"./header-filters\";\nimport { multiSort } from \"./multi-sort\";\nimport { resizableColumns } from \"./resizable-columns\";\nimport { savedViews } from \"./saved-views\";\nimport { statusBar } from \"./status-bar\";\n\n/** Only configured members join the useful zero-argument feature list. @public */\nexport interface StandardFeatureOptions<TRow> {\n /** Group rows by these column keys. */\n readonly grouping?: string | readonly string[];\n /** Host-owned actions offered for selected rows. */\n readonly bulkActions?: readonly BulkAction[];\n /** Typed declarative filter definitions. */\n readonly filters?: readonly FilterDef<TRow>[];\n /** Saved-view persistence and naming. */\n readonly savedViews?: UseSavedViewsOptions;\n /** Show Find in the toolbar; keyboard Find remains available without it. */\n readonly findButton?: boolean;\n}\n\n/** Compose Naive UI features; append a same-ID feature to replace its default. @public */\nexport function standardFeatures(): StaticTableFeature[];\nexport function standardFeatures<TRow>(\n options?: StandardFeatureOptions<TRow>\n): TableFeature<TRow>[];\nexport function standardFeatures<TRow>(\n options: StandardFeatureOptions<TRow> = {}\n): TableFeature<TRow>[] {\n return standardFeatureList<\n TableFeature<TRow>,\n BulkAction,\n FilterDef<TRow>,\n UseSavedViewsOptions\n >(\n {\n columnMenu,\n densityChooser,\n exportCsv,\n findInTable,\n fitColumns,\n fullscreen,\n headerFilters,\n multiSort,\n resizableColumns,\n statusBar,\n grouping,\n bulkActions,\n filters,\n savedViews,\n },\n options\n );\n}\nexport type { FilterDef, UseSavedViewsOptions } from \"@adapttable/vue\";\n"],"mappings":";;;;;;;;;;;;;;;;AA4CA,SAAgB,iBACd,UAAwC,CAAC,GACnB;CACtB,OAAO,oBAML;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF,GACA,OACF;AACF"}
|
package/dist/print.cjs
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_controls = require("./controls-D193740P.cjs");
|
|
3
|
+
require("@adapttable/vue");
|
|
4
|
+
let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
|
|
5
|
+
let _adapttable_vue_features = require("@adapttable/vue/features");
|
|
6
|
+
let vue = require("vue");
|
|
7
|
+
//#region src/print.ts
|
|
8
|
+
function print(onPrint, printButton = false) {
|
|
9
|
+
return (0, _adapttable_vue_adapter.extendFeature)((0, _adapttable_vue_features.print)(onPrint, printButton), [(0, _adapttable_vue_adapter.slotRender)(_adapttable_vue_adapter.PRINT_CONTROL, (props) => (0, vue.h)(_adapttable_vue_adapter.PrintChrome, {
|
|
10
|
+
...props,
|
|
11
|
+
slots: { Button: require_controls.naiveActionButton }
|
|
12
|
+
}))]);
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
exports.print = print;
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=print.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"print.cjs","names":["extendFeature","bindingPrint","slotRender","PRINT_CONTROL","h","PrintChrome","naiveActionButton"],"sources":["../src/print.ts"],"sourcesContent":["import { type StaticTableFeature } from \"@adapttable/vue\";\nimport {\n extendFeature,\n PRINT_CONTROL,\n PrintChrome,\n slotRender,\n} from \"@adapttable/vue/adapter\";\nimport { print as bindingPrint } from \"@adapttable/vue/features\";\nimport { h } from \"vue\";\n\nimport { naiveActionButton } from \"./actions/controls\";\nexport function print(\n onPrint: () => void,\n printButton = false\n): StaticTableFeature {\n return extendFeature(bindingPrint(onPrint, printButton), [\n slotRender(PRINT_CONTROL, (props) =>\n h(PrintChrome, { ...props, slots: { Button: naiveActionButton } })\n ),\n ]);\n}\n"],"mappings":";;;;;;;AAWA,SAAgB,MACd,SACA,cAAc,OACM;CACpB,QAAA,GAAOA,wBAAAA,cAAAA,EAAAA,GAAcC,yBAAAA,MAAAA,CAAa,SAAS,WAAW,GAAG,EAAA,GACvDC,wBAAAA,WAAAA,CAAWC,wBAAAA,gBAAgB,WAAA,GACzBC,IAAAA,EAAAA,CAAEC,wBAAAA,aAAa;EAAE,GAAG;EAAO,OAAO,EAAE,QAAQC,iBAAAA,kBAAkB;CAAE,CAAC,CACnE,CACF,CAAC;AACH"}
|
package/dist/print.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"print.d.cts","names":[],"sources":["../src/print.ts"],"mappings":";;iBAWgB,MACd,qBACA,wBACC"}
|
package/dist/print.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"print.d.ts","names":[],"sources":["../src/print.ts"],"mappings":";;iBAWgB,MACd,qBACA,wBACC"}
|
package/dist/print.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { t as naiveActionButton } from "./controls-Dp-hPfD4.js";
|
|
2
|
+
import "@adapttable/vue";
|
|
3
|
+
import { PRINT_CONTROL, PrintChrome, extendFeature, slotRender } from "@adapttable/vue/adapter";
|
|
4
|
+
import { print as print$1 } from "@adapttable/vue/features";
|
|
5
|
+
import { h } from "vue";
|
|
6
|
+
//#region src/print.ts
|
|
7
|
+
function print(onPrint, printButton = false) {
|
|
8
|
+
return extendFeature(print$1(onPrint, printButton), [slotRender(PRINT_CONTROL, (props) => h(PrintChrome, {
|
|
9
|
+
...props,
|
|
10
|
+
slots: { Button: naiveActionButton }
|
|
11
|
+
}))]);
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { print };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=print.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"print.js","names":["bindingPrint"],"sources":["../src/print.ts"],"sourcesContent":["import { type StaticTableFeature } from \"@adapttable/vue\";\nimport {\n extendFeature,\n PRINT_CONTROL,\n PrintChrome,\n slotRender,\n} from \"@adapttable/vue/adapter\";\nimport { print as bindingPrint } from \"@adapttable/vue/features\";\nimport { h } from \"vue\";\n\nimport { naiveActionButton } from \"./actions/controls\";\nexport function print(\n onPrint: () => void,\n printButton = false\n): StaticTableFeature {\n return extendFeature(bindingPrint(onPrint, printButton), [\n slotRender(PRINT_CONTROL, (props) =>\n h(PrintChrome, { ...props, slots: { Button: naiveActionButton } })\n ),\n ]);\n}\n"],"mappings":";;;;;;AAWA,SAAgB,MACd,SACA,cAAc,OACM;CACpB,OAAO,cAAcA,QAAa,SAAS,WAAW,GAAG,CACvD,WAAW,gBAAgB,UACzB,EAAE,aAAa;EAAE,GAAG;EAAO,OAAO,EAAE,QAAQ,kBAAkB;CAAE,CAAC,CACnE,CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_mobile = require("./mobile-52C0B3aN.cjs");
|
|
3
|
+
exports.NaiveDesktopTable = require_mobile.NaiveDesktopTable;
|
|
4
|
+
exports.NaiveMobileCards = require_mobile.NaiveMobileCards;
|
|
5
|
+
exports.naiveTableControls = require_mobile.naiveTableControls;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { t as DataTableClassNames } from "./types-oiTfSnx3.cjs";
|
|
2
|
+
import { DesktopTableModel, MobileCardsModel, TableDensity } from "@adapttable/vue";
|
|
3
|
+
import { TableChromeSlots } from "@adapttable/vue/adapter";
|
|
4
|
+
import { VNodeChild } from "vue";
|
|
5
|
+
//#region src/controls/table.d.ts
|
|
6
|
+
/** Required table controls are Naive components; structure remains in Chrome. */
|
|
7
|
+
declare function naiveTableControls<TRow>(): Pick<TableChromeSlots<TRow>, "SortButton" | "SelectionCheckbox" | "ColumnGroupToggle" | "ResizeHandle" | "TreeToggle" | "RowDetailToggle">;
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/renderers/desktop.d.ts
|
|
10
|
+
/** A kit-owned semantic renderer over the binding's already-prepared table model. */
|
|
11
|
+
declare function NaiveDesktopTable<TRow>(props: {
|
|
12
|
+
readonly model: DesktopTableModel<TRow>;
|
|
13
|
+
readonly controls: TableChromeSlots<TRow>;
|
|
14
|
+
readonly classNames?: DataTableClassNames;
|
|
15
|
+
readonly density?: TableDensity;
|
|
16
|
+
}): VNodeChild;
|
|
17
|
+
declare namespace NaiveDesktopTable {
|
|
18
|
+
var props: string[];
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/renderers/mobile.d.ts
|
|
22
|
+
/** Genuine Naive cards consume the same prepared row inventory as desktop. */
|
|
23
|
+
declare function NaiveMobileCards<TRow>(props: {
|
|
24
|
+
readonly model: MobileCardsModel<TRow>;
|
|
25
|
+
readonly controls: TableChromeSlots<TRow>;
|
|
26
|
+
readonly classNames?: DataTableClassNames;
|
|
27
|
+
}): VNodeChild;
|
|
28
|
+
declare namespace NaiveMobileCards {
|
|
29
|
+
var props: string[];
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { type DataTableClassNames, NaiveDesktopTable, NaiveMobileCards, naiveTableControls };
|
|
33
|
+
//# sourceMappingURL=renderers.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderers.d.cts","names":[],"sources":["../src/controls/table.ts","../src/renderers/desktop.ts","../src/renderers/mobile.ts"],"mappings":";;;;;;iBAUgB,mBAAmB,SAAS,KAC1C,iBAAiB;;;;iBCoCH,kBAAkB,MAAM;WAC7B,OAAO,kBAAkB;WACzB,UAAU,iBAAiB;WAC3B,aAAa;WACb,UAAU;IACjB;kBALY;MAAA;;;;;iBC3BA,iBAAiB,MAAM;WAC5B,OAAO,iBAAiB;WACxB,UAAU,iBAAiB;WAC3B,aAAa;IACpB;kBAJY;MAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { t as DataTableClassNames } from "./types-oiTfSnx3.js";
|
|
2
|
+
import { DesktopTableModel, MobileCardsModel, TableDensity } from "@adapttable/vue";
|
|
3
|
+
import { TableChromeSlots } from "@adapttable/vue/adapter";
|
|
4
|
+
import { VNodeChild } from "vue";
|
|
5
|
+
//#region src/controls/table.d.ts
|
|
6
|
+
/** Required table controls are Naive components; structure remains in Chrome. */
|
|
7
|
+
declare function naiveTableControls<TRow>(): Pick<TableChromeSlots<TRow>, "SortButton" | "SelectionCheckbox" | "ColumnGroupToggle" | "ResizeHandle" | "TreeToggle" | "RowDetailToggle">;
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/renderers/desktop.d.ts
|
|
10
|
+
/** A kit-owned semantic renderer over the binding's already-prepared table model. */
|
|
11
|
+
declare function NaiveDesktopTable<TRow>(props: {
|
|
12
|
+
readonly model: DesktopTableModel<TRow>;
|
|
13
|
+
readonly controls: TableChromeSlots<TRow>;
|
|
14
|
+
readonly classNames?: DataTableClassNames;
|
|
15
|
+
readonly density?: TableDensity;
|
|
16
|
+
}): VNodeChild;
|
|
17
|
+
declare namespace NaiveDesktopTable {
|
|
18
|
+
var props: string[];
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/renderers/mobile.d.ts
|
|
22
|
+
/** Genuine Naive cards consume the same prepared row inventory as desktop. */
|
|
23
|
+
declare function NaiveMobileCards<TRow>(props: {
|
|
24
|
+
readonly model: MobileCardsModel<TRow>;
|
|
25
|
+
readonly controls: TableChromeSlots<TRow>;
|
|
26
|
+
readonly classNames?: DataTableClassNames;
|
|
27
|
+
}): VNodeChild;
|
|
28
|
+
declare namespace NaiveMobileCards {
|
|
29
|
+
var props: string[];
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { type DataTableClassNames, NaiveDesktopTable, NaiveMobileCards, naiveTableControls };
|
|
33
|
+
//# sourceMappingURL=renderers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderers.d.ts","names":[],"sources":["../src/controls/table.ts","../src/renderers/desktop.ts","../src/renderers/mobile.ts"],"mappings":";;;;;;iBAUgB,mBAAmB,SAAS,KAC1C,iBAAiB;;;;iBCoCH,kBAAkB,MAAM;WAC7B,OAAO,kBAAkB;WACzB,UAAU,iBAAiB;WAC3B,aAAa;WACb,UAAU;IACjB;kBALY;MAAA;;;;;iBC3BA,iBAAiB,MAAM;WAC5B,OAAO,iBAAiB;WACxB,UAAU,iBAAiB;WAC3B,aAAa;IACpB;kBAJY;MAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let _adapttable_vue_features = require("@adapttable/vue/features");
|
|
3
|
+
Object.defineProperty(exports, "resizableColumns", {
|
|
4
|
+
enumerable: true,
|
|
5
|
+
get: function() {
|
|
6
|
+
return _adapttable_vue_features.resizableColumns;
|
|
7
|
+
}
|
|
8
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_rowActionsSlot = require("./rowActionsSlot-B48S_yZD.cjs");
|
|
3
|
+
const require_NaiveRowActions = require("./NaiveRowActions-BhgFAnM3.cjs");
|
|
4
|
+
let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
|
|
5
|
+
let _adapttable_vue_features = require("@adapttable/vue/features");
|
|
6
|
+
let vue = require("vue");
|
|
7
|
+
//#region src/row-actions.ts
|
|
8
|
+
/** The host owns actions; the kit contributes their optional native presentation. */
|
|
9
|
+
function rowActions(actions, handlers) {
|
|
10
|
+
return (0, _adapttable_vue_adapter.extendFeature)((0, _adapttable_vue_features.rowActions)(actions, handlers), [(0, _adapttable_vue_adapter.slotRender)(require_rowActionsSlot.rowActionsControlKey(), (props) => (0, vue.h)(require_NaiveRowActions._sfc_main, props))]);
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.rowActions = rowActions;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=row-actions.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-actions.cjs","names":["extendFeature","bindingRowActions","slotRender","rowActionsControlKey","h","NaiveRowActions"],"sources":["../src/row-actions.ts"],"sourcesContent":["import type {\n RowAction,\n RowMutationHandlers,\n TableFeature,\n} from \"@adapttable/vue\";\nimport { extendFeature, slotRender } from \"@adapttable/vue/adapter\";\nimport { rowActions as bindingRowActions } from \"@adapttable/vue/features\";\nimport { h } from \"vue\";\n\nimport NaiveRowActions from \"./NaiveRowActions.vue\";\nimport { rowActionsControlKey } from \"./rowActionsSlot\";\n\n/** The host owns actions; the kit contributes their optional native presentation. */\nexport function rowActions<TRow>(\n actions?: readonly RowAction<TRow>[],\n handlers?: RowMutationHandlers<TRow>\n): TableFeature<TRow> {\n return extendFeature(bindingRowActions(actions, handlers), [\n slotRender(rowActionsControlKey<TRow>(), (props) =>\n h(NaiveRowActions<TRow>, props)\n ),\n ]);\n}\n"],"mappings":";;;;;;;;AAaA,SAAgB,WACd,SACA,UACoB;CACpB,QAAA,GAAOA,wBAAAA,cAAAA,EAAAA,GAAcC,yBAAAA,WAAAA,CAAkB,SAAS,QAAQ,GAAG,EAAA,GACzDC,wBAAAA,WAAAA,CAAWC,uBAAAA,qBAA2B,IAAI,WAAA,GACxCC,IAAAA,EAAAA,CAAEC,wBAAAA,WAAuB,KAAK,CAChC,CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RowAction, RowMutationHandlers, TableFeature } from "@adapttable/vue";
|
|
2
|
+
//#region src/row-actions.d.ts
|
|
3
|
+
/** The host owns actions; the kit contributes their optional native presentation. */
|
|
4
|
+
declare function rowActions<TRow>(actions?: readonly RowAction<TRow>[], handlers?: RowMutationHandlers<TRow>): TableFeature<TRow>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { rowActions };
|
|
7
|
+
//# sourceMappingURL=row-actions.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-actions.d.cts","names":[],"sources":["../src/row-actions.ts"],"mappings":";;;iBAagB,WAAW,MACzB,mBAAmB,UAAU,SAC7B,WAAW,oBAAoB,QAC9B,aAAa"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RowAction, RowMutationHandlers, TableFeature } from "@adapttable/vue";
|
|
2
|
+
//#region src/row-actions.d.ts
|
|
3
|
+
/** The host owns actions; the kit contributes their optional native presentation. */
|
|
4
|
+
declare function rowActions<TRow>(actions?: readonly RowAction<TRow>[], handlers?: RowMutationHandlers<TRow>): TableFeature<TRow>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { rowActions };
|
|
7
|
+
//# sourceMappingURL=row-actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-actions.d.ts","names":[],"sources":["../src/row-actions.ts"],"mappings":";;;iBAagB,WAAW,MACzB,mBAAmB,UAAU,SAC7B,WAAW,oBAAoB,QAC9B,aAAa"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { n as rowActionsControlKey } from "./rowActionsSlot-YWkCOo5W.js";
|
|
2
|
+
import { t as _sfc_main } from "./NaiveRowActions-BxDGoOKe.js";
|
|
3
|
+
import { extendFeature, slotRender } from "@adapttable/vue/adapter";
|
|
4
|
+
import { rowActions as rowActions$1 } from "@adapttable/vue/features";
|
|
5
|
+
import { h } from "vue";
|
|
6
|
+
//#region src/row-actions.ts
|
|
7
|
+
/** The host owns actions; the kit contributes their optional native presentation. */
|
|
8
|
+
function rowActions(actions, handlers) {
|
|
9
|
+
return extendFeature(rowActions$1(actions, handlers), [slotRender(rowActionsControlKey(), (props) => h(_sfc_main, props))]);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { rowActions };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=row-actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-actions.js","names":["bindingRowActions","NaiveRowActions"],"sources":["../src/row-actions.ts"],"sourcesContent":["import type {\n RowAction,\n RowMutationHandlers,\n TableFeature,\n} from \"@adapttable/vue\";\nimport { extendFeature, slotRender } from \"@adapttable/vue/adapter\";\nimport { rowActions as bindingRowActions } from \"@adapttable/vue/features\";\nimport { h } from \"vue\";\n\nimport NaiveRowActions from \"./NaiveRowActions.vue\";\nimport { rowActionsControlKey } from \"./rowActionsSlot\";\n\n/** The host owns actions; the kit contributes their optional native presentation. */\nexport function rowActions<TRow>(\n actions?: readonly RowAction<TRow>[],\n handlers?: RowMutationHandlers<TRow>\n): TableFeature<TRow> {\n return extendFeature(bindingRowActions(actions, handlers), [\n slotRender(rowActionsControlKey<TRow>(), (props) =>\n h(NaiveRowActions<TRow>, props)\n ),\n ]);\n}\n"],"mappings":";;;;;;;AAaA,SAAgB,WACd,SACA,UACoB;CACpB,OAAO,cAAcA,aAAkB,SAAS,QAAQ,GAAG,CACzD,WAAW,qBAA2B,IAAI,UACxC,EAAEC,WAAuB,KAAK,CAChC,CACF,CAAC;AACH"}
|