@adapttable/naive-ui 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{NaiveFilterSurface-BwJ-D-EB.js → NaiveFilterSurface-CnhNSSF1.js} +5 -5
- package/dist/NaiveFilterSurface-CnhNSSF1.js.map +1 -0
- package/dist/{NaiveFilterSurface-BXsgCRMO.cjs → NaiveFilterSurface-DqUmkz-o.cjs} +3 -3
- package/dist/NaiveFilterSurface-DqUmkz-o.cjs.map +1 -0
- package/dist/{NaiveManagedPopover-DhLEXdew.cjs → NaiveManagedPopover-CWoJsbAN.cjs} +3 -3
- package/dist/NaiveManagedPopover-CWoJsbAN.cjs.map +1 -0
- package/dist/{NaiveManagedPopover-XhOSQEWC.js → NaiveManagedPopover-DftDHR8p.js} +5 -5
- package/dist/NaiveManagedPopover-DftDHR8p.js.map +1 -0
- package/dist/{NaiveRowActions-D3J6uPSu.cjs → NaiveRowActions-BR140413.cjs} +4 -3
- package/dist/NaiveRowActions-BR140413.cjs.map +1 -0
- package/dist/{NaiveRowActions-DlDrl3Ed.js → NaiveRowActions-DVyMXQJq.js} +5 -4
- package/dist/NaiveRowActions-DVyMXQJq.js.map +1 -0
- package/dist/{assistant-C5NcmK_X.cjs → assistant-DppW6EN1.cjs} +2 -2
- package/dist/assistant-DppW6EN1.cjs.map +1 -0
- package/dist/{assistant-CEXAPOyL.js → assistant-_SYRZCOi.js} +4 -4
- package/dist/assistant-_SYRZCOi.js.map +1 -0
- package/dist/assistant.cjs +1 -1
- package/dist/assistant.js +1 -1
- package/dist/batch-editing.cjs +1 -1
- package/dist/batch-editing.js +1 -1
- package/dist/button-BxXdDW7A.js.map +1 -1
- package/dist/button-CaakTzYM.cjs.map +1 -1
- package/dist/{column-menu-Bb6BOjdI.js → column-menu-BeNblq2u.js} +7 -3
- package/dist/column-menu-BeNblq2u.js.map +1 -0
- package/dist/{column-menu-CDtaqm4z.cjs → column-menu-GUeADLrH.cjs} +7 -3
- package/dist/column-menu-GUeADLrH.cjs.map +1 -0
- package/dist/column-menu.cjs +1 -1
- package/dist/column-menu.js +1 -1
- package/dist/columns.cjs +26 -0
- package/dist/columns.d.cts +3 -0
- package/dist/columns.d.ts +3 -0
- package/dist/columns.js +2 -0
- package/dist/{command-palette-D396WFrI.cjs → command-palette-4qS9viir.cjs} +2 -2
- package/dist/{command-palette-D396WFrI.cjs.map → command-palette-4qS9viir.cjs.map} +1 -1
- package/dist/{command-palette-ZSFMOROm.js → command-palette-CSI-tgcP.js} +2 -2
- package/dist/{command-palette-ZSFMOROm.js.map → command-palette-CSI-tgcP.js.map} +1 -1
- package/dist/command-palette.cjs +1 -1
- package/dist/command-palette.js +1 -1
- package/dist/{context-menu-DjYIQXhY.js → context-menu-CsbLaMcR.js} +4 -4
- package/dist/context-menu-CsbLaMcR.js.map +1 -0
- package/dist/{context-menu-BbhrjTZr.cjs → context-menu-qVwE9S2V.cjs} +2 -2
- package/dist/context-menu-qVwE9S2V.cjs.map +1 -0
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.js +1 -1
- package/dist/{editing-DR4w-oKB.cjs → editing-BAUOl5Ox.cjs} +8 -6
- package/dist/editing-BAUOl5Ox.cjs.map +1 -0
- package/dist/editing-CdIoFGiK.d.cts.map +1 -1
- package/dist/{editing-C7QHX-gq.js → editing-DTOBwNI6.js} +9 -7
- package/dist/editing-DTOBwNI6.js.map +1 -0
- package/dist/editing-Dho3Y2RK.d.ts.map +1 -1
- package/dist/editing.cjs +1 -1
- package/dist/editing.js +1 -1
- package/dist/export-csv-BU39yRSN.d.ts +9 -0
- package/dist/export-csv-BU39yRSN.d.ts.map +1 -0
- package/dist/export-csv-DRDjZuQj.d.cts +9 -0
- package/dist/export-csv-DRDjZuQj.d.cts.map +1 -0
- package/dist/export-csv.cjs +11 -0
- package/dist/export-csv.cjs.map +1 -0
- package/dist/export-csv.d.cts +2 -0
- package/dist/export-csv.d.ts +2 -0
- package/dist/export-csv.js +10 -0
- package/dist/export-csv.js.map +1 -0
- package/dist/export-pdf.cjs +53 -0
- package/dist/export-pdf.cjs.map +1 -0
- package/dist/export-pdf.d.cts +8 -0
- package/dist/export-pdf.d.cts.map +1 -0
- package/dist/export-pdf.d.ts +8 -0
- package/dist/export-pdf.d.ts.map +1 -0
- package/dist/export-pdf.js +10 -0
- package/dist/export-pdf.js.map +1 -0
- package/dist/export-xlsx.cjs +23 -0
- package/dist/export-xlsx.cjs.map +1 -0
- package/dist/export-xlsx.d.cts +8 -0
- package/dist/export-xlsx.d.cts.map +1 -0
- package/dist/export-xlsx.d.ts +8 -0
- package/dist/export-xlsx.d.ts.map +1 -0
- package/dist/export-xlsx.js +10 -0
- package/dist/export-xlsx.js.map +1 -0
- package/dist/export.cjs +2 -15
- package/dist/export.d.cts +2 -9
- package/dist/export.d.ts +2 -9
- package/dist/export.js +1 -14
- package/dist/features.cjs +13 -12
- package/dist/features.d.cts +2 -1
- package/dist/features.d.ts +2 -1
- package/dist/features.js +12 -11
- package/dist/{filters-Ce9485--.cjs → filters-B5JX7H8p.cjs} +79 -67
- package/dist/filters-B5JX7H8p.cjs.map +1 -0
- package/dist/filters-BJ48GzqJ.d.ts.map +1 -1
- package/dist/filters-C6DvAZ_T.d.cts.map +1 -1
- package/dist/{filters-w5iJExiN.js → filters-DipcT7-T.js} +80 -68
- package/dist/filters-DipcT7-T.js.map +1 -0
- package/dist/filters.cjs +2 -2
- package/dist/filters.js +2 -2
- package/dist/grouping.cjs +1 -1
- package/dist/grouping.cjs.map +1 -1
- package/dist/grouping.js +2 -2
- package/dist/grouping.js.map +1 -1
- package/dist/{header-filters-B5_gSabO.cjs → header-filters-C8cAJJ7r.cjs} +37 -18
- package/dist/header-filters-C8cAJJ7r.cjs.map +1 -0
- package/dist/header-filters-CQg6clum.d.cts.map +1 -1
- package/dist/header-filters-CQg6clum.d.ts.map +1 -1
- package/dist/{header-filters-DmgFtg_F.js → header-filters-CWad6foD.js} +39 -20
- package/dist/header-filters-CWad6foD.js.map +1 -0
- package/dist/header-filters.cjs +1 -1
- package/dist/header-filters.js +1 -1
- package/dist/index.cjs +106 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +108 -31
- package/dist/index.js.map +1 -1
- package/dist/{mobile-DvFNwZq-.cjs → mobile-CYsldyHR.cjs} +46 -38
- package/dist/mobile-CYsldyHR.cjs.map +1 -0
- package/dist/{mobile-BHOtdPjL.js → mobile-DxQ4glDn.js} +47 -39
- package/dist/mobile-DxQ4glDn.js.map +1 -0
- package/dist/{modalEscape-CP6_uqjE.js → modalEscape-BIm9yvam.js} +4 -3
- package/dist/modalEscape-BIm9yvam.js.map +1 -0
- package/dist/{modalEscape-aYoIK8OW.cjs → modalEscape-Dgmkd7NP.cjs} +3 -2
- package/dist/modalEscape-Dgmkd7NP.cjs.map +1 -0
- package/dist/pivot.cjs +3 -4
- package/dist/pivot.cjs.map +1 -1
- package/dist/pivot.d.cts +3 -4
- package/dist/pivot.d.cts.map +1 -1
- package/dist/pivot.d.ts +3 -4
- package/dist/pivot.d.ts.map +1 -1
- package/dist/pivot.js +4 -5
- package/dist/pivot.js.map +1 -1
- package/dist/preset.cjs +7 -6
- package/dist/preset.cjs.map +1 -1
- package/dist/preset.js +6 -5
- package/dist/preset.js.map +1 -1
- package/dist/renderers.cjs +1 -1
- package/dist/renderers.d.cts +8 -10
- package/dist/renderers.d.cts.map +1 -1
- package/dist/renderers.d.ts +8 -10
- package/dist/renderers.d.ts.map +1 -1
- package/dist/renderers.js +1 -1
- package/dist/row-actions.cjs +1 -1
- package/dist/row-actions.js +1 -1
- package/dist/row-pinning.cjs +1 -1
- package/dist/row-pinning.js +1 -1
- package/dist/{row-reorder-BRySq2FF.cjs → row-reorder-2Ztn7QRu.cjs} +3 -3
- package/dist/row-reorder-2Ztn7QRu.cjs.map +1 -0
- package/dist/{row-reorder-BNYYEL8w.js → row-reorder-DBzbJ20V.js} +5 -5
- package/dist/row-reorder-DBzbJ20V.js.map +1 -0
- package/dist/row-reorder.cjs +1 -1
- package/dist/row-reorder.js +1 -1
- package/dist/rowActionsSlot-B48S_yZD.cjs.map +1 -1
- package/dist/rowActionsSlot-YWkCOo5W.js.map +1 -1
- package/dist/rows.cjs +30 -0
- package/dist/rows.d.cts +6 -0
- package/dist/rows.d.ts +6 -0
- package/dist/rows.js +4 -0
- package/dist/{saved-views-DLuxKH_r.cjs → saved-views-Co9WH7lC.cjs} +2 -2
- package/dist/{saved-views-DLuxKH_r.cjs.map → saved-views-Co9WH7lC.cjs.map} +1 -1
- package/dist/{saved-views-hTIhkbu0.js → saved-views-Dac8M1-P.js} +2 -2
- package/dist/{saved-views-hTIhkbu0.js.map → saved-views-Dac8M1-P.js.map} +1 -1
- package/dist/saved-views.cjs +1 -1
- package/dist/saved-views.js +1 -1
- package/dist/styles.css +5 -0
- package/dist/withNaiveExport-B0gpxqNd.js +15 -0
- package/dist/withNaiveExport-B0gpxqNd.js.map +1 -0
- package/dist/withNaiveExport-pQdjjXto.cjs +20 -0
- package/dist/withNaiveExport-pQdjjXto.cjs.map +1 -0
- package/package.json +53 -4
- package/dist/NaiveFilterSurface-BXsgCRMO.cjs.map +0 -1
- package/dist/NaiveFilterSurface-BwJ-D-EB.js.map +0 -1
- package/dist/NaiveManagedPopover-DhLEXdew.cjs.map +0 -1
- package/dist/NaiveManagedPopover-XhOSQEWC.js.map +0 -1
- package/dist/NaiveRowActions-D3J6uPSu.cjs.map +0 -1
- package/dist/NaiveRowActions-DlDrl3Ed.js.map +0 -1
- package/dist/assistant-C5NcmK_X.cjs.map +0 -1
- package/dist/assistant-CEXAPOyL.js.map +0 -1
- package/dist/column-menu-Bb6BOjdI.js.map +0 -1
- package/dist/column-menu-CDtaqm4z.cjs.map +0 -1
- package/dist/context-menu-BbhrjTZr.cjs.map +0 -1
- package/dist/context-menu-DjYIQXhY.js.map +0 -1
- package/dist/editing-C7QHX-gq.js.map +0 -1
- package/dist/editing-DR4w-oKB.cjs.map +0 -1
- package/dist/export.cjs.map +0 -1
- package/dist/export.d.cts.map +0 -1
- package/dist/export.d.ts.map +0 -1
- package/dist/export.js.map +0 -1
- package/dist/filters-Ce9485--.cjs.map +0 -1
- package/dist/filters-w5iJExiN.js.map +0 -1
- package/dist/header-filters-B5_gSabO.cjs.map +0 -1
- package/dist/header-filters-DmgFtg_F.js.map +0 -1
- package/dist/mobile-BHOtdPjL.js.map +0 -1
- package/dist/mobile-DvFNwZq-.cjs.map +0 -1
- package/dist/modalEscape-CP6_uqjE.js.map +0 -1
- package/dist/modalEscape-aYoIK8OW.cjs.map +0 -1
- package/dist/row-reorder-BNYYEL8w.js.map +0 -1
- package/dist/row-reorder-BRySq2FF.cjs.map +0 -1
|
@@ -3,7 +3,7 @@ import { t as naiveCheckbox } from "./checkbox-GQ0BLv13.js";
|
|
|
3
3
|
import { t as naiveInput } from "./input-YgQ2d8K9.js";
|
|
4
4
|
import { BatchEditBarChrome, EditableCellChrome, HistoryButtonsChrome, RowEditActionsChrome, UNDO_REDO_CONTROL, batchEditBarSlotKey, editableCellSlotKey, editableCustomControl, elementRef, extendFeature, formatMultiDraft, readMultiDraft, rowEditActionsSlotKey, slotRender, useDataTableClassNames, useEditableCellModel, useElementRef, useScopeActivity } from "@adapttable/vue/adapter";
|
|
5
5
|
import { batchEditing, dirtyIndicators, editHistory, editing, rowEditing, undoRedoButtons } from "@adapttable/vue/features";
|
|
6
|
-
import { Fragment, createBlock, defineComponent, h, mergeProps, openBlock, shallowRef, useId, watch } from "vue";
|
|
6
|
+
import { Fragment, createBlock, createPropsRestProxy, defineComponent, h, mergeProps, openBlock, shallowRef, useId, watch } from "vue";
|
|
7
7
|
import { NInputNumber, NSelect } from "naive-ui";
|
|
8
8
|
//#region src/editing/naiveEditingButton.ts
|
|
9
9
|
function naiveEditingButton(control, className) {
|
|
@@ -21,17 +21,18 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
21
21
|
batch: {},
|
|
22
22
|
contested: {
|
|
23
23
|
type: Boolean,
|
|
24
|
-
default: void 0
|
|
24
|
+
default: () => void 0
|
|
25
25
|
},
|
|
26
26
|
labels: {},
|
|
27
27
|
className: {},
|
|
28
28
|
buttonClassName: {}
|
|
29
29
|
},
|
|
30
30
|
setup(__props) {
|
|
31
|
-
const props = __props;
|
|
31
|
+
const props = createPropsRestProxy(__props, ["contested"]);
|
|
32
32
|
const names = useDataTableClassNames();
|
|
33
33
|
const Render = () => BatchEditBarChrome({
|
|
34
34
|
...props,
|
|
35
|
+
contested: __props.contested,
|
|
35
36
|
className: [props.className, names.value.batchEditBar].filter(Boolean).join(" "),
|
|
36
37
|
controls: { Button: (control) => naiveEditingButton(control, names.value.batchEditButton) }
|
|
37
38
|
});
|
|
@@ -190,7 +191,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
190
191
|
rowIndex: {},
|
|
191
192
|
rows: {},
|
|
192
193
|
columns: {},
|
|
193
|
-
rowKey: {
|
|
194
|
+
rowKey: {},
|
|
194
195
|
editLabel: {},
|
|
195
196
|
undoLabel: {},
|
|
196
197
|
display: { type: [
|
|
@@ -320,7 +321,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
320
321
|
conflict: {},
|
|
321
322
|
showBegin: {
|
|
322
323
|
type: Boolean,
|
|
323
|
-
default: void 0
|
|
324
|
+
default: () => void 0
|
|
324
325
|
},
|
|
325
326
|
rowEditing: {},
|
|
326
327
|
row: {},
|
|
@@ -328,10 +329,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
328
329
|
labels: {}
|
|
329
330
|
},
|
|
330
331
|
setup(__props) {
|
|
331
|
-
const props = __props;
|
|
332
|
+
const props = createPropsRestProxy(__props, ["showBegin"]);
|
|
332
333
|
const names = useDataTableClassNames();
|
|
333
334
|
const Render = () => RowEditActionsChrome({
|
|
334
335
|
...props,
|
|
336
|
+
showBegin: __props.showBegin,
|
|
335
337
|
className: [props.className, names.value.rowEditActions].filter(Boolean).join(" "),
|
|
336
338
|
controls: { Button: (control) => naiveEditingButton(control, names.value.rowEditButton) }
|
|
337
339
|
});
|
|
@@ -365,4 +367,4 @@ function undoRedoButtons$1() {
|
|
|
365
367
|
//#endregion
|
|
366
368
|
export { rowEditing$1 as a, _sfc_main$1 as c, editing$1 as i, _sfc_main$2 as l, dirtyIndicators as n, undoRedoButtons$1 as o, editHistory as r, _sfc_main as s, batchEditing$1 as t };
|
|
367
369
|
|
|
368
|
-
//# sourceMappingURL=editing-
|
|
370
|
+
//# sourceMappingURL=editing-DTOBwNI6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editing-DTOBwNI6.js","names":["NaiveEditableCell","editing","bindingEditing","rowEditing","bindingRowEditing","NaiveRowEditActions","batchEditing","bindingBatchEditing","NaiveBatchEditBar","undoRedoButtons","bindingUndoRedoButtons"],"sources":["../src/editing/naiveEditingButton.ts","../src/editing/NaiveBatchEditBar.vue","../src/editing/NaiveChoiceEditor.ts","../src/editing/NaiveNumberEditor.ts","../src/editing/NaiveEditableCell.vue","../src/editing/NaiveHistoryButtons.ts","../src/editing/NaiveRowEditActions.vue","../src/editing.ts"],"sourcesContent":["import type { EditingActionButtonProps } from \"@adapttable/vue/adapter\";\nimport { mergeProps, type VNodeChild } from \"vue\";\n\nimport { naiveButton } from \"../controls/button\";\n\nexport function naiveEditingButton(\n control: EditingActionButtonProps,\n className?: string\n) {\n return naiveButton(\n mergeProps(control.attrs, { class: className, onClick: control.onClick }),\n [\n control.icon === false ? null : (control.icon as VNodeChild),\n control.label,\n ]\n );\n}\n","<script setup lang=\"ts\" generic=\"TRow\">\nimport {\n BatchEditBarChrome,\n type BatchEditBarProps,\n useDataTableClassNames,\n} from \"@adapttable/vue/adapter\";\n\nimport { naiveEditingButton } from \"./naiveEditingButton\";\ndefineOptions({ name: \"NaiveBatchEditBar\" });\nconst { contested = undefined, ...props } =\n defineProps<BatchEditBarProps<TRow>>();\nconst names = useDataTableClassNames();\nconst Render = () =>\n BatchEditBarChrome({\n ...props,\n contested,\n className: [props.className, names.value.batchEditBar]\n .filter(Boolean)\n .join(\" \"),\n controls: {\n Button: (control) =>\n naiveEditingButton(control, names.value.batchEditButton),\n },\n });\n\n// Declare no props so Vue forwards all root attributes, including id and data-*.\nconst renderProps: string[] = [];\nRender.props = renderProps;\n</script>\n\n<template>\n <Render />\n</template>\n","import type { Attrs, ElementRef } from \"@adapttable/vue\";\nimport {\n formatMultiDraft,\n readMultiDraft,\n useElementRef,\n useScopeActivity,\n} from \"@adapttable/vue/adapter\";\nimport { NSelect, type SelectInst } from \"naive-ui\";\nimport {\n type ComponentPublicInstance,\n defineComponent,\n h,\n type InputHTMLAttributes,\n type PropType,\n shallowRef,\n useId,\n watch,\n} from \"vue\";\n\nimport { withoutAttributes } from \"../controls/attributes\";\nimport { htmlRoot } from \"../controls/elementTarget\";\n\ninterface ChoiceEditorProps {\n readonly attrs: Attrs;\n readonly draft: string;\n readonly multiple: boolean;\n readonly options: readonly {\n readonly value: string;\n readonly label: string;\n }[];\n readonly onChange: (value: string) => void;\n readonly onBlur: () => void;\n readonly onKeyDown: (event: KeyboardEvent) => void;\n}\n\n/** NSelect owns its open menu; the binding owns editing keys when that menu is closed. */\nexport const NaiveChoiceEditor = defineComponent(\n (props: ChoiceEditorProps) => {\n const instance = shallowRef<(ComponentPublicInstance & SelectInst) | null>(\n null\n );\n const active = useScopeActivity();\n const show = shallowRef(false);\n const listId = `adapttable-naive-edit-options-${useId()}`;\n watch(\n active,\n (enabled) => {\n if (!enabled) show.value = false;\n },\n { flush: \"sync\" }\n );\n useElementRef(\n () =>\n active.value && instance.value\n ? htmlRoot(instance.value)?.querySelector<HTMLInputElement>(\n 'input[role=\"combobox\"]'\n )\n : null,\n () =>\n typeof props.attrs.ref === \"function\"\n ? (props.attrs.ref as ElementRef)\n : undefined\n );\n let menuKey = false;\n return () => {\n const attrs = withoutAttributes(props.attrs, [\n \"ref\",\n \"onBlur\",\n \"onKeydown\",\n \"id\",\n \"class\",\n \"data-adapttable-part\",\n ]);\n const inputProps = {\n ...attrs,\n id: props.attrs.id as string | undefined,\n class: props.attrs.class as InputHTMLAttributes[\"class\"],\n \"data-adapttable-part\": props.attrs[\"data-adapttable-part\"],\n role: \"combobox\",\n \"aria-autocomplete\": \"list\" as const,\n \"aria-expanded\": show.value,\n \"aria-controls\": listId,\n };\n return h(NSelect, {\n ref: instance,\n size: \"small\",\n disabled: props.attrs.disabled === true,\n filterable: true,\n to: false,\n show: active.value && show.value,\n multiple: props.multiple,\n value: props.multiple ? readMultiDraft(props.draft) : props.draft,\n options: [...props.options],\n inputProps,\n menuProps: {\n id: listId,\n role: \"listbox\",\n \"aria-multiselectable\": props.multiple || undefined,\n },\n nodeProps: (option) => ({\n role: \"option\",\n \"aria-selected\": props.multiple\n ? readMultiDraft(props.draft).includes(String(option.value))\n : option.value === props.draft,\n }),\n \"onUpdate:value\": (\n value: string | number | (string | number)[] | null\n ) => {\n if (!active.value) return;\n const draft = Array.isArray(value)\n ? formatMultiDraft(value.map(String))\n : String(value ?? \"\");\n props.onChange(draft);\n },\n \"onUpdate:show\": (value: boolean) => {\n if (active.value) show.value = value;\n },\n onBlur: () => {\n if (active.value) props.onBlur();\n },\n onKeydownCapture: (event: KeyboardEvent) => {\n menuKey =\n show.value &&\n [\"Escape\", \"Enter\", \"ArrowUp\", \"ArrowDown\", \"Home\", \"End\"].includes(\n event.key\n );\n },\n onKeydown: (event: KeyboardEvent) => {\n if (!active.value) return;\n if (menuKey) {\n event.stopPropagation();\n if (event.key === \"Escape\") instance.value?.focusInput();\n } else props.onKeyDown(event);\n menuKey = false;\n },\n });\n };\n },\n {\n name: \"NaiveChoiceEditor\",\n inheritAttrs: false,\n props: {\n attrs: { type: Object as PropType<ChoiceEditorProps[\"attrs\"]> },\n draft: { type: String as PropType<ChoiceEditorProps[\"draft\"]> },\n multiple: {\n type: Boolean as PropType<ChoiceEditorProps[\"multiple\"]>,\n default: undefined,\n },\n options: { type: Array as PropType<ChoiceEditorProps[\"options\"]> },\n onChange: { type: Function as PropType<ChoiceEditorProps[\"onChange\"]> },\n onBlur: { type: Function as PropType<ChoiceEditorProps[\"onBlur\"]> },\n onKeyDown: { type: Function as PropType<ChoiceEditorProps[\"onKeyDown\"]> },\n },\n }\n);\n","import type { Attrs, ElementRef } from \"@adapttable/vue\";\nimport { useElementRef, useScopeActivity } from \"@adapttable/vue/adapter\";\nimport { NInputNumber } from \"naive-ui\";\nimport {\n type ComponentPublicInstance,\n defineComponent,\n h,\n type PropType,\n shallowRef,\n} from \"vue\";\n\nimport { withoutAttributes } from \"../controls/attributes\";\nimport { htmlRoot } from \"../controls/elementTarget\";\n\ninterface NumberEditorProps {\n readonly attrs: Attrs;\n readonly draft: string;\n readonly onChange: (value: string) => void;\n readonly onBlur: () => void;\n}\n\n/** The public formatter preserves the binding's raw draft through vendor blur formatting. */\nexport const NaiveNumberEditor = defineComponent(\n (props: NumberEditorProps) => {\n const active = useScopeActivity();\n const instance = shallowRef<ComponentPublicInstance | null>(null);\n useElementRef(\n () =>\n active.value && instance.value\n ? htmlRoot(instance.value)?.querySelector<HTMLInputElement>(\n 'input[role=\"spinbutton\"]'\n )\n : null,\n () =>\n typeof props.attrs.ref === \"function\"\n ? (props.attrs.ref as ElementRef)\n : undefined\n );\n return () =>\n h(NInputNumber, {\n ref: instance,\n size: \"small\",\n disabled: props.attrs.disabled === true,\n readonly:\n props.attrs.readonly === true || props.attrs.readOnly === true,\n value:\n props.draft.trim() !== \"\" && Number.isFinite(Number(props.draft))\n ? Number(props.draft)\n : null,\n format: () => props.draft,\n showButton: false,\n inputProps: {\n ...withoutAttributes(props.attrs, [\"ref\", \"onBlur\"]),\n role: \"spinbutton\",\n onInput: (event: Event) => {\n if (active.value)\n props.onChange((event.currentTarget as HTMLInputElement).value);\n },\n },\n \"onUpdate:value\": (value: number | null) => {\n if (active.value) props.onChange(value === null ? \"\" : String(value));\n },\n onBlur: () => {\n if (active.value) props.onBlur();\n },\n });\n },\n {\n name: \"NaiveNumberEditor\",\n inheritAttrs: false,\n props: {\n attrs: { type: Object as PropType<NumberEditorProps[\"attrs\"]> },\n draft: { type: String as PropType<NumberEditorProps[\"draft\"]> },\n onChange: { type: Function as PropType<NumberEditorProps[\"onChange\"]> },\n onBlur: { type: Function as PropType<NumberEditorProps[\"onBlur\"]> },\n },\n }\n);\n","<script setup lang=\"ts\" generic=\"TRow\">\nimport {\n EditableCellChrome,\n type EditableCellChromeSlots,\n editableCustomControl,\n elementRef,\n useDataTableClassNames,\n useEditableCellModel,\n type VueEditableCellProps,\n} from \"@adapttable/vue/adapter\";\nimport { Fragment, h, mergeProps, type VNodeChild } from \"vue\";\n\nimport { naiveButton } from \"../controls/button\";\nimport { naiveCheckbox } from \"../controls/checkbox\";\nimport { naiveInput } from \"../controls/input\";\nimport { NaiveChoiceEditor } from \"./NaiveChoiceEditor\";\nimport { NaiveNumberEditor } from \"./NaiveNumberEditor\";\n\nconst props = defineProps<VueEditableCellProps<TRow>>();\nconst names = useDataTableClassNames();\nconst model = useEditableCellModel(() => props);\nconst controls: EditableCellChromeSlots<TRow> = {\n Activate: (control) =>\n naiveButton(\n {\n title: control.title,\n \"aria-description\": control.title,\n class: [control.className, names.value.editCellActivate],\n ref: elementRef(control.activateRef),\n \"data-adapttable-part\": \"edit-cell-activate\",\n \"data-save-status\": control.saveStatus,\n \"data-dirty\": control.dirty ? \"\" : undefined,\n onClick: control.onClick,\n onDblclick: control.onDoubleClick,\n onKeydown: control.onKeyDown,\n },\n control.display,\n { text: true }\n ),\n Editor: (control) => {\n const editor = control.controller.editor;\n const attrs = mergeProps(control.attrs, {\n ref: elementRef<HTMLElement>(control.editorRef),\n class: names.value.editCellEditor,\n onBlur: control.onBlur,\n onKeydown: control.onKeyDown,\n });\n if (editor && typeof editor === \"object\") {\n if (editor.type === \"custom\")\n return h(Fragment, [\n editor.render(editableCustomControl(model.value)) as VNodeChild,\n ]);\n return h(NaiveChoiceEditor, {\n attrs,\n draft: control.controller.draft,\n multiple: editor.type === \"multi-select\",\n options: control.controller.selectOptions,\n onChange: control.onChange,\n onBlur: control.onBlur,\n onKeyDown: control.onKeyDown,\n });\n }\n if (editor === \"number\")\n return h(NaiveNumberEditor, {\n attrs,\n draft: control.controller.draft,\n onChange: control.onChange,\n onBlur: control.onBlur,\n });\n if (editor === \"boolean\")\n return naiveCheckbox({\n attrs,\n checked: control.controller.draft === \"true\",\n indeterminate: false,\n onToggle: () =>\n control.onChange(String(control.controller.draft !== \"true\")),\n });\n return naiveInput({\n attrs: {\n ...attrs,\n type: editor === \"datetime\" ? \"datetime-local\" : (editor ?? \"text\"),\n },\n value: control.controller.draft,\n onChange: control.onChange,\n });\n },\n Button: (control) =>\n naiveButton(\n {\n class: [\n control.className,\n control.part === \"edit-cell-rollback\"\n ? names.value.editCellRollback\n : names.value.editCellConflictButton,\n ],\n \"data-adapttable-part\": control.part,\n onMousedown: control.onMouseDown,\n onClick: control.onClick,\n },\n control.label\n ),\n};\nconst Render = () =>\n EditableCellChrome({ model: model.value, controls, classNames: names.value });\nconst renderProps: string[] = [];\nRender.props = renderProps;\n</script>\n\n<template>\n <Render />\n</template>\n","import {\n HistoryButtonsChrome,\n type ToolbarExtrasSlotProps,\n useDataTableClassNames,\n} from \"@adapttable/vue/adapter\";\nimport { defineComponent, type PropType } from \"vue\";\n\nimport { naiveButton } from \"../controls/button\";\n\nexport const NaiveHistoryButtons = defineComponent(\n (props: ToolbarExtrasSlotProps) => {\n const names = useDataTableClassNames();\n return () =>\n HistoryButtonsChrome({\n ...props,\n classNames: { ...names.value },\n slots: { Button: ({ label, attrs }) => naiveButton(attrs, label) },\n });\n },\n {\n name: \"NaiveHistoryButtons\",\n props: {\n onUndo: { type: Function as PropType<ToolbarExtrasSlotProps[\"onUndo\"]> },\n onRedo: { type: Function as PropType<ToolbarExtrasSlotProps[\"onRedo\"]> },\n canUndo: {\n type: Boolean as PropType<ToolbarExtrasSlotProps[\"canUndo\"]>,\n default: undefined,\n },\n canRedo: {\n type: Boolean as PropType<ToolbarExtrasSlotProps[\"canRedo\"]>,\n default: undefined,\n },\n undoLabel: {\n type: String as PropType<ToolbarExtrasSlotProps[\"undoLabel\"]>,\n },\n redoLabel: {\n type: String as PropType<ToolbarExtrasSlotProps[\"redoLabel\"]>,\n },\n density: { type: String as PropType<ToolbarExtrasSlotProps[\"density\"]> },\n onDensityChange: {\n type: Function as PropType<ToolbarExtrasSlotProps[\"onDensityChange\"]>,\n },\n labels: { type: Object as PropType<ToolbarExtrasSlotProps[\"labels\"]> },\n classNames: {\n type: Object as PropType<ToolbarExtrasSlotProps[\"classNames\"]>,\n },\n },\n }\n);\n","<script setup lang=\"ts\" generic=\"TRow\">\nimport {\n RowEditActionsChrome,\n type RowEditActionsProps,\n useDataTableClassNames,\n} from \"@adapttable/vue/adapter\";\n\nimport { naiveEditingButton } from \"./naiveEditingButton\";\ndefineOptions({ name: \"NaiveRowEditActions\" });\nconst { showBegin = undefined, ...props } =\n defineProps<RowEditActionsProps<TRow>>();\nconst names = useDataTableClassNames();\nconst Render = () =>\n RowEditActionsChrome({\n ...props,\n showBegin,\n className: [props.className, names.value.rowEditActions]\n .filter(Boolean)\n .join(\" \"),\n controls: {\n Button: (control) =>\n naiveEditingButton(control, names.value.rowEditButton),\n },\n });\n\n// Declare no props so Vue forwards all root attributes, including id and data-*.\nconst renderProps: string[] = [];\nRender.props = renderProps;\n</script>\n\n<template>\n <Render />\n</template>\n","import type {\n CellEditHandler,\n StaticTableFeature,\n TableEditingOptions,\n TableFeature,\n} from \"@adapttable/vue\";\nimport {\n batchEditBarSlotKey,\n editableCellSlotKey,\n extendFeature,\n rowEditActionsSlotKey,\n slotRender,\n UNDO_REDO_CONTROL,\n} from \"@adapttable/vue/adapter\";\nimport {\n batchEditing as bindingBatchEditing,\n editing as bindingEditing,\n type EditingLifecycleExtras,\n rowEditing as bindingRowEditing,\n undoRedoButtons as bindingUndoRedoButtons,\n} from \"@adapttable/vue/features\";\nimport { h } from \"vue\";\n\nimport NaiveBatchEditBar from \"./editing/NaiveBatchEditBar.vue\";\nimport NaiveEditableCell from \"./editing/NaiveEditableCell.vue\";\nimport { NaiveHistoryButtons } from \"./editing/NaiveHistoryButtons\";\nimport NaiveRowEditActions from \"./editing/NaiveRowEditActions.vue\";\n\nfunction cellSlot<TRow>() {\n return slotRender(editableCellSlotKey<TRow>(), (props) =>\n h(NaiveEditableCell<TRow>, { ...props })\n );\n}\n\n/** Naive controls keep all validation, save and host-write transitions in the binding. */\nexport function editing<TRow>(\n onCellEdit: CellEditHandler<TRow>,\n extras: EditingLifecycleExtras<TRow> = {}\n): TableFeature<TRow> {\n return extendFeature(bindingEditing(onCellEdit, extras), [cellSlot<TRow>()]);\n}\n\n/** Edit a row as one gesture with explicit Naive UI Save and Cancel controls. */\nexport function rowEditing<TRow>(\n onRowEdit: NonNullable<TableEditingOptions<TRow>[\"onRowEdit\"]>,\n extras: EditingLifecycleExtras<TRow> = {}\n): TableFeature<TRow> {\n return extendFeature(bindingRowEditing(onRowEdit, extras), [\n cellSlot<TRow>(),\n slotRender(rowEditActionsSlotKey<TRow>(), (props) =>\n h(NaiveRowEditActions<TRow>, { ...props })\n ),\n ]);\n}\n\n/** Stage edits across rows; host writes happen only on the batch Save action. */\nexport function batchEditing<TRow>(\n onBatchEdit: NonNullable<TableEditingOptions<TRow>[\"onBatchEdit\"]>,\n extras: EditingLifecycleExtras<TRow> = {}\n): TableFeature<TRow> {\n return extendFeature(bindingBatchEditing(onBatchEdit, extras), [\n cellSlot<TRow>(),\n slotRender(batchEditBarSlotKey<TRow>(), (props) =>\n h(NaiveBatchEditBar<TRow>, { ...props })\n ),\n ]);\n}\n\nexport { default as NaiveBatchEditBar } from \"./editing/NaiveBatchEditBar.vue\";\nexport { default as NaiveEditableCell } from \"./editing/NaiveEditableCell.vue\";\nexport { default as NaiveRowEditActions } from \"./editing/NaiveRowEditActions.vue\";\nexport type {\n BatchEditingState,\n BatchRowEdit,\n CellEditHandler,\n RowEditingState,\n TableEditingOptions,\n} from \"@adapttable/vue\";\nexport type { RowEditIcons } from \"@adapttable/vue/adapter\";\nexport type { EditingLifecycleExtras } from \"@adapttable/vue/features\";\nexport { dirtyIndicators, editHistory } from \"@adapttable/vue/features\";\n\n/** Opt-in Naive UI Undo and Redo buttons use the shell's history projection. */\nexport function undoRedoButtons(): StaticTableFeature {\n return extendFeature(bindingUndoRedoButtons(), [\n slotRender(UNDO_REDO_CONTROL, (props) =>\n h(NaiveHistoryButtons, { ...props })\n ),\n ]);\n}\n"],"mappings":";;;;;;;;AAKA,SAAgB,mBACd,SACA,WACA;CACA,OAAO,YACL,WAAW,QAAQ,OAAO;EAAE,OAAO;EAAW,SAAS,QAAQ;CAAQ,CAAC,GACxE,CACE,QAAQ,SAAS,QAAQ,OAAQ,QAAQ,MACzC,QAAQ,KACV,CACF;AACF;;;;;;;;;;;;;;;;;ECPA,MAAM,QACJ,qBAAA,SAAA,CAAA,WAAA,CAAA;EACF,MAAM,QAAQ,uBAAuB;EACrC,MAAM,eACJ,mBAAmB;GACjB,GAAG;GACH,WAAQ,QAAA;GACR,WAAW,CAAC,MAAM,WAAW,MAAM,MAAM,YAAY,CAAA,CAClD,OAAO,OAAO,CAAA,CACd,KAAK,GAAG;GACX,UAAU,EACR,SAAS,YACP,mBAAmB,SAAS,MAAM,MAAM,eAAe,EAC3D;EACF,CAAC;EAIH,OAAO,QAAQ,CAAA;;GAIb,OAAA,UAAA,GAAA,YAAU,MAAA;;;;;;;ACKZ,MAAa,oBAAoB,iBAC9B,UAA6B;CAC5B,MAAM,WAAW,WACf,IACF;CACA,MAAM,SAAS,iBAAiB;CAChC,MAAM,OAAO,WAAW,KAAK;CAC7B,MAAM,SAAS,iCAAiC,MAAM;CACtD,MACE,SACC,YAAY;EACX,IAAI,CAAC,SAAS,KAAK,QAAQ;CAC7B,GACA,EAAE,OAAO,OAAO,CAClB;CACA,oBAEI,OAAO,SAA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AAcC,gBAAuB,GAAG,CAC7C,WAAW,oBAAoB,UAC7B,EAAE,qBAAqB,EAAE,GAAG,MAAM,CAAC,CACrC,CACF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editing-Dho3Y2RK.d.ts","names":[],"sources":["../src/editing/NaiveBatchEditBar.vue","../src/editing/NaiveEditableCell.vue","../src/editing/NaiveRowEditActions.vue","../src/editing.ts"],"mappings":";;;;cA0CM,iBAAiB,MACtB,aAAa,YAAY,eAAe,wBACxC,YAAY,sBAAoB,KAAK,YAAY,eAAe,6CAChE,gBAAgB,YAAY,eAAe,yBAC3C,cAAA;
|
|
1
|
+
{"version":3,"file":"editing-Dho3Y2RK.d.ts","names":[],"sources":["../src/editing/NaiveBatchEditBar.vue","../src/editing/NaiveEditableCell.vue","../src/editing/NaiveRowEditActions.vue","../src/editing.ts"],"mappings":";;;;cA0CM,iBAAiB,MACtB,aAAa,YAAY,eAAe,wBACxC,YAAY,sBAAoB,KAAK,YAAY,eAAe,6CAChE,gBAAgB,YAAY,eAAe,yBAC3C,cAAA;EAgDO,qBAAc,cAAc,sBAAmB,kBAAA,iBAA8B;IAAqB,4BAA4B;MAAM;EACnI,SAAC;EACF;EACA;EACD;qBAGmB;EAAU,QAAQ,YAAY,eAAe;;cAClD,mBAAO;KACvB,sBAAoB,MAAM,mBAAmB,WAAW,IAAI,EAAE,WAAW,WAAW,KAAK,IAAI,EAAE;;;cC2B9F,iBAAiB,MACtB,aAAa,YAAY,eAAe,wBACxC,YAAY,sBAAoB,KAAK,YAAY,eAAe,6CAChE,gBAAgB,YAAY,eAAe,yBAC3C,cAAA;EAmHO,qBAAc,cAAc,sBAAmB,qBAAA,iBAA8B;IAAqB,4BAA4B;MAAM;EACnI,SAAC;EACF;EACA;EACD;qBAGmB;EAAU,QAAQ,YAAY,eAAe;;cAClD,mBAAO;KACvB,sBAAoB,MAAM,mBAAmB,WAAW,IAAI,EAAE,WAAW,WAAW,KAAK,IAAI,EAAE;;;cCxN9F,eAAiB,MACtB,aAAa,YAAY,eAAe,wBACxC,YAAY,oBAAoB,KAAK,YAAY,eAAe,6CAChE,gBAAgB,YAAY,eAAe,yBAC3C,cAAA;EAgDO,qBAAc,cAAc,oBAAmB,oBAAA,iBAA8B;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;;;;iBCpEpF,UAAQ,MACtB,YAAY,gBAAgB,OAC5B,SAAQ,uBAAuB,QAC9B,aAAa;;iBAKA,aAAW,MACzB,WAAW,YAAY,oBAAoB,qBAC3C,SAAQ,uBAAuB,QAC9B,aAAa;;iBAUA,eAAa,MAC3B,aAAa,YAAY,oBAAoB,uBAC7C,SAAQ,uBAAuB,QAC9B,aAAa;;iBAwBA,qBAAmB"}
|
package/dist/editing.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_editing = require("./editing-
|
|
2
|
+
const require_editing = require("./editing-BAUOl5Ox.cjs");
|
|
3
3
|
let _adapttable_vue_features = require("@adapttable/vue/features");
|
|
4
4
|
exports.NaiveBatchEditBar = require_editing._sfc_main$2;
|
|
5
5
|
exports.NaiveEditableCell = require_editing._sfc_main$1;
|
package/dist/editing.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as rowEditing, c as _sfc_main$1, i as editing, l as _sfc_main, n as dirtyIndicators, o as undoRedoButtons, r as editHistory, s as _sfc_main$2, t as batchEditing } from "./editing-
|
|
1
|
+
import { a as rowEditing, c as _sfc_main$1, i as editing, l as _sfc_main, n as dirtyIndicators, o as undoRedoButtons, r as editHistory, s as _sfc_main$2, t as batchEditing } from "./editing-DTOBwNI6.js";
|
|
2
2
|
export { _sfc_main as NaiveBatchEditBar, _sfc_main$1 as NaiveEditableCell, _sfc_main$2 as NaiveRowEditActions, batchEditing, dirtyIndicators, editHistory, editing, rowEditing, undoRedoButtons };
|
|
@@ -0,0 +1,9 @@
|
|
|
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$1(options?: boolean): StaticTableFeature;
|
|
6
|
+
declare function exportCsv$1<TRow>(options?: boolean | ExportCsvOptions<TRow>): TableFeature<TRow>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { exportCsv$1 as n, ExportCsvOptions$1 as t };
|
|
9
|
+
//# sourceMappingURL=export-csv-BU39yRSN.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-csv-BU39yRSN.d.ts","names":[],"sources":["../src/export-csv.ts"],"mappings":";;;;iBASgB,YAAU,oBAAoB;iBAC9B,YAAU,MACxB,oBAAoB,iBAAiB,QACpC,aAAa"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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<TRow>): TableFeature<TRow>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { exportCsv as n, ExportCsvOptions$1 as t };
|
|
9
|
+
//# sourceMappingURL=export-csv-DRDjZuQj.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-csv-DRDjZuQj.d.cts","names":[],"sources":["../src/export-csv.ts"],"mappings":";;;;iBASgB,UAAU,oBAAoB;iBAC9B,UAAU,MACxB,oBAAoB,iBAAiB,QACpC,aAAa"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_withNaiveExport = require("./withNaiveExport-pQdjjXto.cjs");
|
|
3
|
+
let _adapttable_vue_features = require("@adapttable/vue/features");
|
|
4
|
+
//#region src/export-csv.ts
|
|
5
|
+
function exportCsv(options = true) {
|
|
6
|
+
return require_withNaiveExport.withNaiveExport((0, _adapttable_vue_features.exportCsv)(options));
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
exports.exportCsv = exportCsv;
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=export-csv.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-csv.cjs","names":["withNaiveExport","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 { withNaiveExport } from \"./export/withNaiveExport\";\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 withNaiveExport(bindingExport<TRow>(options));\n}\nexport type { ExportCsvOptions } from \"@adapttable/vue/features\";\n"],"mappings":";;;;AAaA,SAAgB,UACd,UAA4C,MACxB;CACpB,OAAOA,wBAAAA,iBAAAA,GAAgBC,yBAAAA,UAAAA,CAAoB,OAAO,CAAC;AACrD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { t as withNaiveExport } from "./withNaiveExport-B0gpxqNd.js";
|
|
2
|
+
import { exportCsv as exportCsv$1 } from "@adapttable/vue/features";
|
|
3
|
+
//#region src/export-csv.ts
|
|
4
|
+
function exportCsv(options = true) {
|
|
5
|
+
return withNaiveExport(exportCsv$1(options));
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { exportCsv };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=export-csv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-csv.js","names":["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 { withNaiveExport } from \"./export/withNaiveExport\";\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 withNaiveExport(bindingExport<TRow>(options));\n}\nexport type { ExportCsvOptions } from \"@adapttable/vue/features\";\n"],"mappings":";;;AAaA,SAAgB,UACd,UAA4C,MACxB;CACpB,OAAO,gBAAgBA,YAAoB,OAAO,CAAC;AACrD"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_withNaiveExport = require("./withNaiveExport-pQdjjXto.cjs");
|
|
3
|
+
let _adapttable_vue_pdf = require("@adapttable/vue/pdf");
|
|
4
|
+
//#region src/export-pdf.ts
|
|
5
|
+
function exportPdf(options = true) {
|
|
6
|
+
return require_withNaiveExport.withNaiveExport((0, _adapttable_vue_pdf.exportPdf)(options));
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
Object.defineProperty(exports, "buildPrintDocument", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function() {
|
|
12
|
+
return _adapttable_vue_pdf.buildPrintDocument;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "buildPrintTableHtml", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function() {
|
|
18
|
+
return _adapttable_vue_pdf.buildPrintTableHtml;
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "buildTablePdf", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function() {
|
|
24
|
+
return _adapttable_vue_pdf.buildTablePdf;
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
exports.exportPdf = exportPdf;
|
|
28
|
+
Object.defineProperty(exports, "openPrintLayout", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function() {
|
|
31
|
+
return _adapttable_vue_pdf.openPrintLayout;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, "pdfWriter", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function() {
|
|
37
|
+
return _adapttable_vue_pdf.pdfWriter;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "printStyles", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function() {
|
|
43
|
+
return _adapttable_vue_pdf.printStyles;
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, "printTable", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function() {
|
|
49
|
+
return _adapttable_vue_pdf.printTable;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
//# sourceMappingURL=export-pdf.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-pdf.cjs","names":["withNaiveExport","bindingExport"],"sources":["../src/export-pdf.ts"],"sourcesContent":["import type { StaticTableFeature, TableFeature } from \"@adapttable/vue\";\nimport {\n exportPdf as bindingExport,\n type ExportPdfOptions,\n} from \"@adapttable/vue/pdf\";\n\nimport { withNaiveExport } from \"./export/withNaiveExport\";\n\nexport function exportPdf(options?: boolean): StaticTableFeature;\nexport function exportPdf<TRow>(\n options?: boolean | ExportPdfOptions<TRow>\n): TableFeature<TRow>;\nexport function exportPdf<TRow>(\n options: boolean | ExportPdfOptions<TRow> = true\n): TableFeature<TRow> {\n return withNaiveExport(bindingExport<TRow>(options));\n}\nexport type { ExportPdfOptions } from \"@adapttable/vue/pdf\";\nexport type {\n PdfWriterOptions,\n PrintLayoutOptions,\n PrintPageBreak,\n PrintPageSize,\n} from \"@adapttable/vue/pdf\";\nexport {\n buildPrintDocument,\n buildPrintTableHtml,\n buildTablePdf,\n openPrintLayout,\n pdfWriter,\n printStyles,\n printTable,\n} from \"@adapttable/vue/pdf\";\n"],"mappings":";;;;AAYA,SAAgB,UACd,UAA4C,MACxB;CACpB,OAAOA,wBAAAA,iBAAAA,GAAgBC,oBAAAA,UAAAA,CAAoB,OAAO,CAAC;AACrD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StaticTableFeature, TableFeature } from "@adapttable/vue";
|
|
2
|
+
import { ExportPdfOptions, ExportPdfOptions as ExportPdfOptions$1, PdfWriterOptions, PrintLayoutOptions, PrintPageBreak, PrintPageSize, buildPrintDocument, buildPrintTableHtml, buildTablePdf, openPrintLayout, pdfWriter, printStyles, printTable } from "@adapttable/vue/pdf";
|
|
3
|
+
//#region src/export-pdf.d.ts
|
|
4
|
+
declare function exportPdf(options?: boolean): StaticTableFeature;
|
|
5
|
+
declare function exportPdf<TRow>(options?: boolean | ExportPdfOptions$1<TRow>): TableFeature<TRow>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { type ExportPdfOptions, type PdfWriterOptions, type PrintLayoutOptions, type PrintPageBreak, type PrintPageSize, buildPrintDocument, buildPrintTableHtml, buildTablePdf, exportPdf, openPrintLayout, pdfWriter, printStyles, printTable };
|
|
8
|
+
//# sourceMappingURL=export-pdf.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-pdf.d.cts","names":[],"sources":["../src/export-pdf.ts"],"mappings":";;;iBAQgB,UAAU,oBAAoB;iBAC9B,UAAU,MACxB,oBAAoB,mBAAiB,QACpC,aAAa"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StaticTableFeature, TableFeature } from "@adapttable/vue";
|
|
2
|
+
import { ExportPdfOptions, ExportPdfOptions as ExportPdfOptions$1, PdfWriterOptions, PrintLayoutOptions, PrintPageBreak, PrintPageSize, buildPrintDocument, buildPrintTableHtml, buildTablePdf, openPrintLayout, pdfWriter, printStyles, printTable } from "@adapttable/vue/pdf";
|
|
3
|
+
//#region src/export-pdf.d.ts
|
|
4
|
+
declare function exportPdf(options?: boolean): StaticTableFeature;
|
|
5
|
+
declare function exportPdf<TRow>(options?: boolean | ExportPdfOptions$1<TRow>): TableFeature<TRow>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { type ExportPdfOptions, type PdfWriterOptions, type PrintLayoutOptions, type PrintPageBreak, type PrintPageSize, buildPrintDocument, buildPrintTableHtml, buildTablePdf, exportPdf, openPrintLayout, pdfWriter, printStyles, printTable };
|
|
8
|
+
//# sourceMappingURL=export-pdf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-pdf.d.ts","names":[],"sources":["../src/export-pdf.ts"],"mappings":";;;iBAQgB,UAAU,oBAAoB;iBAC9B,UAAU,MACxB,oBAAoB,mBAAiB,QACpC,aAAa"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { t as withNaiveExport } from "./withNaiveExport-B0gpxqNd.js";
|
|
2
|
+
import { buildPrintDocument, buildPrintTableHtml, buildTablePdf, exportPdf as exportPdf$1, openPrintLayout, pdfWriter, printStyles, printTable } from "@adapttable/vue/pdf";
|
|
3
|
+
//#region src/export-pdf.ts
|
|
4
|
+
function exportPdf(options = true) {
|
|
5
|
+
return withNaiveExport(exportPdf$1(options));
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { buildPrintDocument, buildPrintTableHtml, buildTablePdf, exportPdf, openPrintLayout, pdfWriter, printStyles, printTable };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=export-pdf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-pdf.js","names":["bindingExport"],"sources":["../src/export-pdf.ts"],"sourcesContent":["import type { StaticTableFeature, TableFeature } from \"@adapttable/vue\";\nimport {\n exportPdf as bindingExport,\n type ExportPdfOptions,\n} from \"@adapttable/vue/pdf\";\n\nimport { withNaiveExport } from \"./export/withNaiveExport\";\n\nexport function exportPdf(options?: boolean): StaticTableFeature;\nexport function exportPdf<TRow>(\n options?: boolean | ExportPdfOptions<TRow>\n): TableFeature<TRow>;\nexport function exportPdf<TRow>(\n options: boolean | ExportPdfOptions<TRow> = true\n): TableFeature<TRow> {\n return withNaiveExport(bindingExport<TRow>(options));\n}\nexport type { ExportPdfOptions } from \"@adapttable/vue/pdf\";\nexport type {\n PdfWriterOptions,\n PrintLayoutOptions,\n PrintPageBreak,\n PrintPageSize,\n} from \"@adapttable/vue/pdf\";\nexport {\n buildPrintDocument,\n buildPrintTableHtml,\n buildTablePdf,\n openPrintLayout,\n pdfWriter,\n printStyles,\n printTable,\n} from \"@adapttable/vue/pdf\";\n"],"mappings":";;;AAYA,SAAgB,UACd,UAA4C,MACxB;CACpB,OAAO,gBAAgBA,YAAoB,OAAO,CAAC;AACrD"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_withNaiveExport = require("./withNaiveExport-pQdjjXto.cjs");
|
|
3
|
+
let _adapttable_vue_xlsx = require("@adapttable/vue/xlsx");
|
|
4
|
+
//#region src/export-xlsx.ts
|
|
5
|
+
function exportXlsx(options = true) {
|
|
6
|
+
return require_withNaiveExport.withNaiveExport((0, _adapttable_vue_xlsx.exportXlsx)(options));
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
Object.defineProperty(exports, "buildTableXlsx", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function() {
|
|
12
|
+
return _adapttable_vue_xlsx.buildTableXlsx;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
exports.exportXlsx = exportXlsx;
|
|
16
|
+
Object.defineProperty(exports, "xlsxWriter", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function() {
|
|
19
|
+
return _adapttable_vue_xlsx.xlsxWriter;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=export-xlsx.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-xlsx.cjs","names":["withNaiveExport","bindingExport"],"sources":["../src/export-xlsx.ts"],"sourcesContent":["import type { StaticTableFeature, TableFeature } from \"@adapttable/vue\";\nimport {\n exportXlsx as bindingExport,\n type ExportXlsxOptions,\n} from \"@adapttable/vue/xlsx\";\n\nimport { withNaiveExport } from \"./export/withNaiveExport\";\n\nexport function exportXlsx(options?: boolean): StaticTableFeature;\nexport function exportXlsx<TRow>(\n options?: boolean | ExportXlsxOptions<TRow>\n): TableFeature<TRow>;\nexport function exportXlsx<TRow>(\n options: boolean | ExportXlsxOptions<TRow> = true\n): TableFeature<TRow> {\n return withNaiveExport(bindingExport<TRow>(options));\n}\nexport type { ExportXlsxOptions } from \"@adapttable/vue/xlsx\";\nexport { buildTableXlsx, xlsxWriter } from \"@adapttable/vue/xlsx\";\n"],"mappings":";;;;AAYA,SAAgB,WACd,UAA6C,MACzB;CACpB,OAAOA,wBAAAA,iBAAAA,GAAgBC,qBAAAA,WAAAA,CAAoB,OAAO,CAAC;AACrD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StaticTableFeature, TableFeature } from "@adapttable/vue";
|
|
2
|
+
import { ExportXlsxOptions, ExportXlsxOptions as ExportXlsxOptions$1, buildTableXlsx, xlsxWriter } from "@adapttable/vue/xlsx";
|
|
3
|
+
//#region src/export-xlsx.d.ts
|
|
4
|
+
declare function exportXlsx(options?: boolean): StaticTableFeature;
|
|
5
|
+
declare function exportXlsx<TRow>(options?: boolean | ExportXlsxOptions$1<TRow>): TableFeature<TRow>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { type ExportXlsxOptions, buildTableXlsx, exportXlsx, xlsxWriter };
|
|
8
|
+
//# sourceMappingURL=export-xlsx.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-xlsx.d.cts","names":[],"sources":["../src/export-xlsx.ts"],"mappings":";;;iBAQgB,WAAW,oBAAoB;iBAC/B,WAAW,MACzB,oBAAoB,oBAAkB,QACrC,aAAa"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StaticTableFeature, TableFeature } from "@adapttable/vue";
|
|
2
|
+
import { ExportXlsxOptions, ExportXlsxOptions as ExportXlsxOptions$1, buildTableXlsx, xlsxWriter } from "@adapttable/vue/xlsx";
|
|
3
|
+
//#region src/export-xlsx.d.ts
|
|
4
|
+
declare function exportXlsx(options?: boolean): StaticTableFeature;
|
|
5
|
+
declare function exportXlsx<TRow>(options?: boolean | ExportXlsxOptions$1<TRow>): TableFeature<TRow>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { type ExportXlsxOptions, buildTableXlsx, exportXlsx, xlsxWriter };
|
|
8
|
+
//# sourceMappingURL=export-xlsx.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-xlsx.d.ts","names":[],"sources":["../src/export-xlsx.ts"],"mappings":";;;iBAQgB,WAAW,oBAAoB;iBAC/B,WAAW,MACzB,oBAAoB,oBAAkB,QACrC,aAAa"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { t as withNaiveExport } from "./withNaiveExport-B0gpxqNd.js";
|
|
2
|
+
import { buildTableXlsx, exportXlsx as exportXlsx$1, xlsxWriter } from "@adapttable/vue/xlsx";
|
|
3
|
+
//#region src/export-xlsx.ts
|
|
4
|
+
function exportXlsx(options = true) {
|
|
5
|
+
return withNaiveExport(exportXlsx$1(options));
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { buildTableXlsx, exportXlsx, xlsxWriter };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=export-xlsx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-xlsx.js","names":["bindingExport"],"sources":["../src/export-xlsx.ts"],"sourcesContent":["import type { StaticTableFeature, TableFeature } from \"@adapttable/vue\";\nimport {\n exportXlsx as bindingExport,\n type ExportXlsxOptions,\n} from \"@adapttable/vue/xlsx\";\n\nimport { withNaiveExport } from \"./export/withNaiveExport\";\n\nexport function exportXlsx(options?: boolean): StaticTableFeature;\nexport function exportXlsx<TRow>(\n options?: boolean | ExportXlsxOptions<TRow>\n): TableFeature<TRow>;\nexport function exportXlsx<TRow>(\n options: boolean | ExportXlsxOptions<TRow> = true\n): TableFeature<TRow> {\n return withNaiveExport(bindingExport<TRow>(options));\n}\nexport type { ExportXlsxOptions } from \"@adapttable/vue/xlsx\";\nexport { buildTableXlsx, xlsxWriter } from \"@adapttable/vue/xlsx\";\n"],"mappings":";;;AAYA,SAAgB,WACd,UAA6C,MACzB;CACpB,OAAO,gBAAgBA,aAAoB,OAAO,CAAC;AACrD"}
|
package/dist/export.cjs
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
let _adapttable_vue_features = require("@adapttable/vue/features");
|
|
5
|
-
let vue = require("vue");
|
|
6
|
-
//#region src/export.ts
|
|
7
|
-
function exportCsv(options = true) {
|
|
8
|
-
return (0, _adapttable_vue_adapter.extendFeature)((0, _adapttable_vue_features.exportCsv)(options), [(0, _adapttable_vue_adapter.slotRender)(_adapttable_vue_adapter.EXPORT_CONTROL, (props) => (0, vue.h)(_adapttable_vue_adapter.ExportChrome, {
|
|
9
|
-
...props,
|
|
10
|
-
slots: require_controls.naiveExportSlots(props.classNames)
|
|
11
|
-
}))]);
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
exports.exportCsv = exportCsv;
|
|
15
|
-
|
|
16
|
-
//# sourceMappingURL=export.cjs.map
|
|
2
|
+
const require_export_csv = require("./export-csv.cjs");
|
|
3
|
+
exports.exportCsv = require_export_csv.exportCsv;
|
package/dist/export.d.cts
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/export.d.ts
|
|
4
|
-
/** Export the current view 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
|
|
1
|
+
import { n as exportCsv, t as ExportCsvOptions } from "./export-csv-DRDjZuQj.cjs";
|
|
2
|
+
export { type ExportCsvOptions, exportCsv };
|
package/dist/export.d.ts
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/export.d.ts
|
|
4
|
-
/** Export the current view 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
|
|
1
|
+
import { n as exportCsv, t as ExportCsvOptions } from "./export-csv-BU39yRSN.js";
|
|
2
|
+
export { type ExportCsvOptions, exportCsv };
|
package/dist/export.js
CHANGED
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { EXPORT_CONTROL, ExportChrome, extendFeature, slotRender } from "@adapttable/vue/adapter";
|
|
3
|
-
import { exportCsv as exportCsv$1 } from "@adapttable/vue/features";
|
|
4
|
-
import { h } from "vue";
|
|
5
|
-
//#region src/export.ts
|
|
6
|
-
function exportCsv(options = true) {
|
|
7
|
-
return extendFeature(exportCsv$1(options), [slotRender(EXPORT_CONTROL, (props) => h(ExportChrome, {
|
|
8
|
-
...props,
|
|
9
|
-
slots: naiveExportSlots(props.classNames)
|
|
10
|
-
}))]);
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
1
|
+
import { exportCsv } from "./export-csv.js";
|
|
13
2
|
export { exportCsv };
|
|
14
|
-
|
|
15
|
-
//# sourceMappingURL=export.js.map
|
package/dist/features.cjs
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_cell_navigation = require("./cell-navigation.cjs");
|
|
3
|
-
const require_assistant = require("./assistant-
|
|
4
|
-
const require_editing = require("./editing-
|
|
3
|
+
const require_assistant = require("./assistant-DppW6EN1.cjs");
|
|
4
|
+
const require_editing = require("./editing-BAUOl5Ox.cjs");
|
|
5
5
|
require("./batch-editing.cjs");
|
|
6
6
|
const require_bulk_actions = require("./bulk-actions.cjs");
|
|
7
7
|
require("./cell-span.cjs");
|
|
8
8
|
require("./column-groups.cjs");
|
|
9
|
-
const require_column_menu = require("./column-menu-
|
|
10
|
-
const require_command_palette = require("./command-palette-
|
|
11
|
-
const require_context_menu = require("./context-menu-
|
|
9
|
+
const require_column_menu = require("./column-menu-GUeADLrH.cjs");
|
|
10
|
+
const require_command_palette = require("./command-palette-4qS9viir.cjs");
|
|
11
|
+
const require_context_menu = require("./context-menu-qVwE9S2V.cjs");
|
|
12
12
|
const require_density = require("./density-CUp3mMNH.cjs");
|
|
13
|
-
const
|
|
13
|
+
const require_export_csv = require("./export-csv.cjs");
|
|
14
|
+
require("./export.cjs");
|
|
14
15
|
require("./extra-rows.cjs");
|
|
15
|
-
const require_filters = require("./filters-
|
|
16
|
-
const require_NaiveFilterSurface = require("./NaiveFilterSurface-
|
|
16
|
+
const require_filters = require("./filters-B5JX7H8p.cjs");
|
|
17
|
+
const require_NaiveFilterSurface = require("./NaiveFilterSurface-DqUmkz-o.cjs");
|
|
17
18
|
const require_find_in_table = require("./find-in-table.cjs");
|
|
18
19
|
require("./fit-columns.cjs");
|
|
19
20
|
const require_fullscreen = require("./fullscreen.cjs");
|
|
20
21
|
const require_grouping = require("./grouping.cjs");
|
|
21
22
|
const require_grouping_panel = require("./grouping-panel-BPaPG49S.cjs");
|
|
22
|
-
const require_header_filters = require("./header-filters-
|
|
23
|
+
const require_header_filters = require("./header-filters-C8cAJJ7r.cjs");
|
|
23
24
|
require("./multi-sort.cjs");
|
|
24
25
|
require("./pinned-summary-rows.cjs");
|
|
25
26
|
const require_print = require("./print.cjs");
|
|
@@ -28,8 +29,8 @@ const require_row_actions = require("./row-actions.cjs");
|
|
|
28
29
|
require("./row-appearance.cjs");
|
|
29
30
|
require("./row-detail.cjs");
|
|
30
31
|
const require_row_pinning = require("./row-pinning.cjs");
|
|
31
|
-
const require_row_reorder = require("./row-reorder-
|
|
32
|
-
const require_saved_views = require("./saved-views-
|
|
32
|
+
const require_row_reorder = require("./row-reorder-2Ztn7QRu.cjs");
|
|
33
|
+
const require_saved_views = require("./saved-views-Co9WH7lC.cjs");
|
|
33
34
|
const require_side_panel = require("./side-panel-Bf4zBlYZ.cjs");
|
|
34
35
|
const require_status_bar = require("./status-bar.cjs");
|
|
35
36
|
require("./tree.cjs");
|
|
@@ -83,7 +84,7 @@ Object.defineProperty(exports, "editHistory", {
|
|
|
83
84
|
}
|
|
84
85
|
});
|
|
85
86
|
exports.editing = require_editing.editing;
|
|
86
|
-
exports.exportCsv =
|
|
87
|
+
exports.exportCsv = require_export_csv.exportCsv;
|
|
87
88
|
Object.defineProperty(exports, "extraRows", {
|
|
88
89
|
enumerable: true,
|
|
89
90
|
get: function() {
|
package/dist/features.d.cts
CHANGED
|
@@ -9,7 +9,8 @@ import { n as columnMenu } from "./column-menu-DdWVP1hz.cjs";
|
|
|
9
9
|
import { commandPalette } from "./command-palette.cjs";
|
|
10
10
|
import { contextMenu } from "./context-menu.cjs";
|
|
11
11
|
import { densityChooser } from "./density.cjs";
|
|
12
|
-
import { exportCsv } from "./export.cjs";
|
|
12
|
+
import { n as exportCsv } from "./export-csv-DRDjZuQj.cjs";
|
|
13
|
+
import "./export.cjs";
|
|
13
14
|
import { extraRows } from "./extra-rows.cjs";
|
|
14
15
|
import { a as FilterTypeSpec, c as filters, d as _default, i as FilterTreeBuilderProps, l as _default$3, n as FilterDef, o as FiltersOptions, r as FilterOption, s as filterTypes, t as ChecklistFilterProps, u as _default$6 } from "./filters-C6DvAZ_T.cjs";
|
|
15
16
|
import { findInTable } from "./find-in-table.cjs";
|
package/dist/features.d.ts
CHANGED
|
@@ -9,7 +9,8 @@ import { n as columnMenu } from "./column-menu-DdWVP1hz.js";
|
|
|
9
9
|
import { commandPalette } from "./command-palette.js";
|
|
10
10
|
import { contextMenu } from "./context-menu.js";
|
|
11
11
|
import { densityChooser } from "./density.js";
|
|
12
|
-
import { exportCsv } from "./export.js";
|
|
12
|
+
import { n as exportCsv } from "./export-csv-BU39yRSN.js";
|
|
13
|
+
import "./export.js";
|
|
13
14
|
import { extraRows } from "./extra-rows.js";
|
|
14
15
|
import { a as FilterTypeSpec, c as filters, d as _default, i as FilterTreeBuilderProps, l as _default$3, n as FilterDef, o as FiltersOptions, r as FilterOption, s as filterTypes, t as ChecklistFilterProps, u as _default$6 } from "./filters-BJ48GzqJ.js";
|
|
15
16
|
import { findInTable } from "./find-in-table.js";
|
package/dist/features.js
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { cellNavigation, columnSelectionCheckbox } from "./cell-navigation.js";
|
|
2
|
-
import { i as tableAssistant, n as TableAssistant, r as agentApproval, t as AgentApproval } from "./assistant-
|
|
3
|
-
import { a as rowEditing, c as _sfc_main$5, i as editing, l as _sfc_main$4, n as dirtyIndicators, o as undoRedoButtons, r as editHistory, s as _sfc_main$8, t as batchEditing } from "./editing-
|
|
2
|
+
import { i as tableAssistant, n as TableAssistant, r as agentApproval, t as AgentApproval } from "./assistant-_SYRZCOi.js";
|
|
3
|
+
import { a as rowEditing, c as _sfc_main$5, i as editing, l as _sfc_main$4, n as dirtyIndicators, o as undoRedoButtons, r as editHistory, s as _sfc_main$8, t as batchEditing } from "./editing-DTOBwNI6.js";
|
|
4
4
|
import "./batch-editing.js";
|
|
5
5
|
import { bulkActions } from "./bulk-actions.js";
|
|
6
6
|
import { cellSpan } from "./cell-span.js";
|
|
7
7
|
import { collapsibleColumnGroups } from "./column-groups.js";
|
|
8
|
-
import { t as columnMenu } from "./column-menu-
|
|
9
|
-
import { t as commandPalette } from "./command-palette-
|
|
10
|
-
import { t as contextMenu } from "./context-menu-
|
|
8
|
+
import { t as columnMenu } from "./column-menu-BeNblq2u.js";
|
|
9
|
+
import { t as commandPalette } from "./command-palette-CSI-tgcP.js";
|
|
10
|
+
import { t as contextMenu } from "./context-menu-CsbLaMcR.js";
|
|
11
11
|
import { t as densityChooser } from "./density-C7K5aGdQ.js";
|
|
12
|
-
import { exportCsv } from "./export.js";
|
|
12
|
+
import { exportCsv } from "./export-csv.js";
|
|
13
|
+
import "./export.js";
|
|
13
14
|
import { extraRows } from "./extra-rows.js";
|
|
14
|
-
import { n as filters, r as _sfc_main$3, t as filterTypes } from "./filters-
|
|
15
|
-
import { n as _sfc_main$6, r as _sfc_main } from "./NaiveFilterSurface-
|
|
15
|
+
import { n as filters, r as _sfc_main$3, t as filterTypes } from "./filters-DipcT7-T.js";
|
|
16
|
+
import { n as _sfc_main$6, r as _sfc_main } from "./NaiveFilterSurface-CnhNSSF1.js";
|
|
16
17
|
import { findInTable } from "./find-in-table.js";
|
|
17
18
|
import { fitColumns } from "./fit-columns.js";
|
|
18
19
|
import { fullscreen } from "./fullscreen.js";
|
|
19
20
|
import { grouping, useGroupCollapse, useGroupCollapseUrlState, useGroupPaging } from "./grouping.js";
|
|
20
21
|
import { t as groupingPanel } from "./grouping-panel-CYUPSa0u.js";
|
|
21
|
-
import { i as _sfc_main$7, n as _sfc_main$2, r as _sfc_main$1, t as headerFilters } from "./header-filters-
|
|
22
|
+
import { i as _sfc_main$7, n as _sfc_main$2, r as _sfc_main$1, t as headerFilters } from "./header-filters-CWad6foD.js";
|
|
22
23
|
import { multiSort } from "./multi-sort.js";
|
|
23
24
|
import { pinnedSummaryRows } from "./pinned-summary-rows.js";
|
|
24
25
|
import { print } from "./print.js";
|
|
@@ -27,8 +28,8 @@ import { rowActions } from "./row-actions.js";
|
|
|
27
28
|
import { rowAppearance } from "./row-appearance.js";
|
|
28
29
|
import { nestedTable, nestedTableDetail, rowDetail, useRowExpansion } from "./row-detail.js";
|
|
29
30
|
import { rowPinning } from "./row-pinning.js";
|
|
30
|
-
import { n as useRowReorder, t as rowReorder } from "./row-reorder-
|
|
31
|
-
import { n as savedViews, t as SavedViewsPanel } from "./saved-views-
|
|
31
|
+
import { n as useRowReorder, t as rowReorder } from "./row-reorder-DBzbJ20V.js";
|
|
32
|
+
import { n as savedViews, t as SavedViewsPanel } from "./saved-views-Dac8M1-P.js";
|
|
32
33
|
import { t as sidePanel } from "./side-panel-CLTgXUnb.js";
|
|
33
34
|
import { selectionStats, statusBar } from "./status-bar.js";
|
|
34
35
|
import { tree, useLazyChildren, useTreeExpansion } from "./tree.js";
|