@adapttable/element-plus 0.6.0 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{ElementCard-BRZekaHr.cjs → ElementCard-DQpWVv24.cjs} +2 -2
- package/dist/{ElementCard-BRZekaHr.cjs.map → ElementCard-DQpWVv24.cjs.map} +1 -1
- package/dist/{ElementCard-DZdAU6x8.js → ElementCard-czqeWAnk.js} +2 -2
- package/dist/{ElementCard-DZdAU6x8.js.map → ElementCard-czqeWAnk.js.map} +1 -1
- package/dist/{ElementColumnMenuPanel-Ddh01A17.cjs → ElementColumnMenuPanel-BfFgrSEJ.cjs} +3 -3
- package/dist/{ElementColumnMenuPanel-Ddh01A17.cjs.map → ElementColumnMenuPanel-BfFgrSEJ.cjs.map} +1 -1
- package/dist/{ElementColumnMenuPanel-CPW4wU3M.js → ElementColumnMenuPanel-Nkilw7G4.js} +3 -3
- package/dist/{ElementColumnMenuPanel-CPW4wU3M.js.map → ElementColumnMenuPanel-Nkilw7G4.js.map} +1 -1
- package/dist/{ElementFilterField-Dfzy-Yk4.cjs → ElementFilterField-BbwJTXvK.cjs} +2 -2
- package/dist/{ElementFilterField-Dfzy-Yk4.cjs.map → ElementFilterField-BbwJTXvK.cjs.map} +1 -1
- package/dist/{ElementFilterField-C8EJjVB_.js → ElementFilterField-N8tiYPGN.js} +2 -2
- package/dist/{ElementFilterField-C8EJjVB_.js.map → ElementFilterField-N8tiYPGN.js.map} +1 -1
- package/dist/{ElementFilterHeaderRow-DGp4Wrts.js → ElementFilterHeaderRow-BVo9WSuR.js} +2 -2
- package/dist/{ElementFilterHeaderRow-DGp4Wrts.js.map → ElementFilterHeaderRow-BVo9WSuR.js.map} +1 -1
- package/dist/{ElementFilterHeaderRow-D8ZZ3BOH.cjs → ElementFilterHeaderRow-D22VL0F8.cjs} +2 -2
- package/dist/{ElementFilterHeaderRow-D8ZZ3BOH.cjs.map → ElementFilterHeaderRow-D22VL0F8.cjs.map} +1 -1
- package/dist/{ElementRowActions-CUdXemC-.js → ElementRowActions-Djhrf9rm.js} +2 -2
- package/dist/{ElementRowActions-CUdXemC-.js.map → ElementRowActions-Djhrf9rm.js.map} +1 -1
- package/dist/{ElementRowActions-XyX2PAWL.cjs → ElementRowActions-DzAA3wSa.cjs} +2 -2
- package/dist/{ElementRowActions-XyX2PAWL.cjs.map → ElementRowActions-DzAA3wSa.cjs.map} +1 -1
- package/dist/assistant.cjs +2 -2
- package/dist/assistant.js +2 -2
- package/dist/batch-editing.cjs +1 -1
- package/dist/batch-editing.js +1 -1
- package/dist/bulk-actions.cjs +1 -1
- package/dist/bulk-actions.js +1 -1
- package/dist/{button-BFjBL9m3.cjs → button-BuXbfKKx.cjs} +3 -2
- package/dist/button-BuXbfKKx.cjs.map +1 -0
- package/dist/{button-DwB4UxI2.js → button-DUddRulx.js} +3 -2
- package/dist/button-DUddRulx.js.map +1 -0
- package/dist/{checkbox-BF19iMgI.cjs → checkbox-DRhRrexK.cjs} +2 -2
- package/dist/{checkbox-BF19iMgI.cjs.map → checkbox-DRhRrexK.cjs.map} +1 -1
- package/dist/column-layout.cjs +1 -1
- package/dist/column-layout.js +1 -1
- package/dist/{column-menu-CwTWnahc.js → column-menu-DaOcmA45.js} +33 -13
- package/dist/column-menu-DaOcmA45.js.map +1 -0
- package/dist/{column-menu-CqyYtohz.cjs → column-menu-eS7ylKfB.cjs} +33 -13
- package/dist/column-menu-eS7ylKfB.cjs.map +1 -0
- package/dist/column-menu.cjs +1 -1
- package/dist/column-menu.js +1 -1
- package/dist/command-palette.cjs +1 -1
- package/dist/command-palette.js +1 -1
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.js +1 -1
- package/dist/{editing-CSqZENeW.cjs → editing-Bal8jOJT.cjs} +2 -2
- package/dist/{editing-CSqZENeW.cjs.map → editing-Bal8jOJT.cjs.map} +1 -1
- package/dist/{editing-BlpYR839.js → editing-BgWyfVFS.js} +2 -2
- package/dist/{editing-BlpYR839.js.map → editing-BgWyfVFS.js.map} +1 -1
- package/dist/editing.cjs +1 -1
- package/dist/editing.js +1 -1
- package/dist/{elementActionSlots-CbKE3WnM.js → elementActionSlots-BOdXhb05.js} +2 -2
- package/dist/{elementActionSlots-CbKE3WnM.js.map → elementActionSlots-BOdXhb05.js.map} +1 -1
- package/dist/{elementActionSlots-DlhU82H7.cjs → elementActionSlots-WeXIVVnx.cjs} +2 -2
- package/dist/{elementActionSlots-DlhU82H7.cjs.map → elementActionSlots-WeXIVVnx.cjs.map} +1 -1
- package/dist/{elementHierarchyControlSlots-21LL1wEw.js → elementHierarchyControlSlots-CBz7cgOw.js} +2 -2
- package/dist/{elementHierarchyControlSlots-21LL1wEw.js.map → elementHierarchyControlSlots-CBz7cgOw.js.map} +1 -1
- package/dist/{elementRemainingControls-DvVVLXE0.cjs → elementRemainingControls-CvGiKtfz.cjs} +3 -3
- package/dist/{elementRemainingControls-DvVVLXE0.cjs.map → elementRemainingControls-CvGiKtfz.cjs.map} +1 -1
- package/dist/{elementRemainingControls-6tN9tgWx.js → elementRemainingControls-J7eDWROX.js} +3 -3
- package/dist/{elementRemainingControls-6tN9tgWx.js.map → elementRemainingControls-J7eDWROX.js.map} +1 -1
- package/dist/{export-x-Ow8SY5.cjs → export-Cln4twUm.cjs} +2 -2
- package/dist/{export-x-Ow8SY5.cjs.map → export-Cln4twUm.cjs.map} +1 -1
- package/dist/{export-kuOvIoQg.js → export-DMEVONO6.js} +2 -2
- package/dist/{export-kuOvIoQg.js.map → export-DMEVONO6.js.map} +1 -1
- package/dist/export-pdf.cjs +1 -1
- package/dist/export-pdf.js +1 -1
- package/dist/export-xlsx.cjs +1 -1
- package/dist/export-xlsx.js +1 -1
- package/dist/export.cjs +1 -1
- package/dist/export.js +1 -1
- package/dist/filtering.cjs +2 -2
- package/dist/filtering.js +2 -2
- package/dist/{filters-CYQFsZ_f.cjs → filters-B3GI0d_7.cjs} +3 -3
- package/dist/{filters-CYQFsZ_f.cjs.map → filters-B3GI0d_7.cjs.map} +1 -1
- package/dist/{filters-CIQ1uMZw.js → filters-C5j2hjd3.js} +3 -3
- package/dist/{filters-CIQ1uMZw.js.map → filters-C5j2hjd3.js.map} +1 -1
- package/dist/filters.cjs +2 -2
- package/dist/filters.js +2 -2
- package/dist/{find-in-table-WtXzIkkg.cjs → find-in-table-Bn5eTjXM.cjs} +2 -2
- package/dist/{find-in-table-WtXzIkkg.cjs.map → find-in-table-Bn5eTjXM.cjs.map} +1 -1
- package/dist/{find-in-table-B9ySCCJh.js → find-in-table-oPAJgCGy.js} +2 -2
- package/dist/{find-in-table-B9ySCCJh.js.map → find-in-table-oPAJgCGy.js.map} +1 -1
- package/dist/find-in-table.cjs +1 -1
- package/dist/find-in-table.js +1 -1
- package/dist/fullscreen.cjs +1 -1
- package/dist/fullscreen.js +1 -1
- package/dist/grouping-panel.cjs +2 -2
- package/dist/grouping-panel.js +2 -2
- package/dist/grouping.cjs +2 -2
- package/dist/grouping.js +2 -2
- package/dist/{header-filters-COkO6tD4.cjs → header-filters-D7475LRH.cjs} +3 -3
- package/dist/{header-filters-COkO6tD4.cjs.map → header-filters-D7475LRH.cjs.map} +1 -1
- package/dist/{header-filters-B2veND8x.js → header-filters-s7nFkTHe.js} +3 -3
- package/dist/{header-filters-B2veND8x.js.map → header-filters-s7nFkTHe.js.map} +1 -1
- package/dist/header-filters.cjs +2 -2
- package/dist/header-filters.js +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.js +4 -4
- package/dist/pivot.cjs +1 -1
- package/dist/pivot.js +1 -1
- package/dist/preset.cjs +6 -6
- package/dist/preset.js +6 -6
- package/dist/print.cjs +1 -1
- package/dist/print.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.cjs +1 -1
- package/dist/row-reorder.js +1 -1
- package/dist/{saved-views-luZVHu3w.cjs → saved-views-BdoXhuyE.cjs} +4 -4
- package/dist/{saved-views-luZVHu3w.cjs.map → saved-views-BdoXhuyE.cjs.map} +1 -1
- package/dist/{saved-views-DDo4Bl-f.js → saved-views-DAkqlIlo.js} +4 -4
- package/dist/{saved-views-DDo4Bl-f.js.map → saved-views-DAkqlIlo.js.map} +1 -1
- package/dist/saved-views.cjs +1 -1
- package/dist/saved-views.js +1 -1
- package/dist/side-panel.cjs +1 -1
- package/dist/side-panel.js +1 -1
- package/dist/{withElementExport-B97s6RIr.js → withElementExport-CX-S76EV.js} +3 -3
- package/dist/{withElementExport-B97s6RIr.js.map → withElementExport-CX-S76EV.js.map} +1 -1
- package/dist/{withElementExport-J-6vXfL9.cjs → withElementExport-CmkGvvZT.cjs} +3 -3
- package/dist/{withElementExport-J-6vXfL9.cjs.map → withElementExport-CmkGvvZT.cjs.map} +1 -1
- package/package.json +3 -3
- package/dist/button-BFjBL9m3.cjs.map +0 -1
- package/dist/button-DwB4UxI2.js.map +0 -1
- package/dist/column-menu-CqyYtohz.cjs.map +0 -1
- package/dist/column-menu-CwTWnahc.js.map +0 -1
package/dist/{ElementFilterHeaderRow-D8ZZ3BOH.cjs.map → ElementFilterHeaderRow-D22VL0F8.cjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ElementFilterHeaderRow-
|
|
1
|
+
{"version":3,"file":"ElementFilterHeaderRow-D22VL0F8.cjs","names":[],"sources":["../src/filters/ElementFilterHeaderControl.vue","../src/filters/ElementFilterHeaderRow.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"TRow\">\nimport {\n FilterHeaderControlChrome,\n type FilterHeaderControlOptions,\n type FilterHeaderSlots,\n FULLSCREEN_MODEL,\n useFeatureState,\n useFilterHeaderControl,\n useScopeActivity,\n} from \"@adapttable/vue/adapter\";\nimport { ElPopover, ElSpace, type PopoverInstance } from \"element-plus\";\nimport { computed, h, shallowRef } from \"vue\";\n\nimport { elementButton } from \"../controls/button\";\nimport ElementCheckbox from \"../controls/ElementCheckbox.vue\";\nimport ElementInput from \"../controls/ElementInput.vue\";\nimport ElementSelect from \"../controls/ElementSelect.vue\";\n\ndefineOptions({ name: \"ElementFilterHeaderControl\" });\nconst { closeOnSelect = undefined, ...props } =\n defineProps<FilterHeaderControlOptions<TRow>>();\nconst model = useFilterHeaderControl(() => ({ ...props, closeOnSelect }));\nconst active = useScopeActivity();\nconst fullscreen = useFeatureState(FULLSCREEN_MODEL);\nconst popover = shallowRef<PopoverInstance>();\nconst trigger = shallowRef<HTMLElement | null>(null);\nconst inheritedDirection = shallowRef<\"ltr\" | \"rtl\">();\nconst popupDirection = computed(() => props.dir ?? inheritedDirection.value);\nconst setTrigger = (element: HTMLElement | null) => {\n trigger.value = element;\n};\nconst readInheritedDirection = () => {\n if (props.dir !== undefined || !trigger.value) return;\n const target = trigger.value;\n const direction =\n target.ownerDocument.defaultView?.getComputedStyle(target).direction;\n inheritedDirection.value =\n direction === \"rtl\" || direction === \"ltr\" ? direction : undefined;\n};\nconst dismiss = (event: KeyboardEvent) => {\n if (\n event.key !== \"Escape\" ||\n event.defaultPrevented ||\n event.isComposing ||\n trigger.value?.getAttribute(\"aria-expanded\") !== \"true\"\n )\n return;\n event.preventDefault();\n event.stopPropagation();\n popover.value?.hide();\n if (active.value && trigger.value?.isConnected) trigger.value.focus();\n};\nconst renderChoices = (control: Parameters<FilterHeaderSlots[\"Multi\"]>[0]) =>\n control.options.map((option) =>\n h(ElementCheckbox, {\n key: option.value,\n label: option.label,\n labelVisible: true,\n checked: control.selected.includes(option.value),\n onChange: (checked) => control.onToggle(option.value, checked),\n })\n );\nconst controls: FilterHeaderSlots = {\n Search: (control) =>\n h(ElementInput, {\n type: \"search\",\n dir: props.dir,\n value: control.value,\n \"data-adapttable-part\": \"filter-header-input\",\n \"aria-label\": control.label,\n placeholder: control.placeholder,\n class: control.className,\n onChange: control.onChange,\n }),\n Select: (control) =>\n h(ElementSelect, {\n value: control.value,\n dir: props.dir,\n options: control.options,\n \"data-adapttable-part\": \"filter-header-input\",\n \"aria-label\": control.label,\n class: control.className,\n onChange: control.onChange,\n }),\n Range: (control) =>\n h(ElementInput, {\n value: control.value,\n type: control.type,\n dir: props.dir,\n \"aria-label\": control.label,\n onChange: control.onChange,\n }),\n Multi: (control) =>\n h(\n ElPopover,\n {\n key: `${props.def.key}:${props.def.type}`,\n ref: popover,\n trigger: \"click\",\n role: \"dialog\",\n \"aria-label\": control.label,\n persistent: false,\n hideAfter: 0,\n teleported: true,\n appendTo: fullscreen.value?.container ?? \"body\",\n placement:\n popupDirection.value === \"rtl\" ? \"bottom-end\" : \"bottom-start\",\n popperStyle: { direction: popupDirection.value },\n onBeforeEnter: readInheritedDirection,\n width: \"auto\",\n },\n {\n reference: () =>\n elementButton(\n {\n ref: setTrigger,\n dir: props.dir,\n \"data-adapttable-part\": \"filter-header-input\",\n class: control.className,\n \"aria-label\": control.label,\n onKeydown: dismiss,\n },\n control.summary\n ),\n default: () =>\n h(\n ElSpace,\n {\n direction: \"vertical\",\n alignment: \"start\",\n role: \"group\",\n dir: popupDirection.value,\n \"data-adapttable-part\": \"filter-header-menu\",\n class: control.menuClassName,\n \"aria-label\": control.label,\n onKeydown: dismiss,\n style: { maxBlockSize: \"14rem\", overflow: \"auto\" },\n },\n {\n default: () => renderChoices(control),\n }\n ),\n }\n ),\n};\nconst Render = () =>\n FilterHeaderControlChrome({ model: model.value, controls });\nconst renderProps: string[] = [];\nRender.props = renderProps;\n</script>\n\n<template><Render /></template>\n","<script setup lang=\"ts\" generic=\"TRow\">\nimport {\n FilterHeaderChrome as FilterHeaderRowChrome,\n type FilterHeaderRowProps,\n type FilterHeaderRowSlots,\n} from \"@adapttable/vue/adapter\";\nimport { h } from \"vue\";\n\nimport ElementFilterHeaderControl from \"./ElementFilterHeaderControl.vue\";\n\ndefineOptions({ name: \"ElementFilterHeaderRow\" });\nconst {\n enabled = undefined,\n expandable = undefined,\n showReorder = undefined,\n selection = undefined,\n showActions = undefined,\n stickyAttr = undefined,\n ...props\n} = defineProps<FilterHeaderRowProps<TRow>>();\nconst controls: FilterHeaderRowSlots<TRow> = {\n Control: (control) => h(ElementFilterHeaderControl<TRow>, { ...control }),\n};\nconst Render = () =>\n FilterHeaderRowChrome({\n ...props,\n enabled,\n expandable,\n showReorder,\n selection,\n showActions,\n stickyAttr,\n controls,\n });\nconst renderProps: string[] = [];\nRender.props = renderProps;\n</script>\n\n<template>\n <Render />\n</template>\n"],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as elementButton } from "./button-
|
|
1
|
+
import { t as elementButton } from "./button-DUddRulx.js";
|
|
2
2
|
import { Fragment, createVNode, defineComponent, h, mergeProps, shallowRef } from "vue";
|
|
3
3
|
import { rowActionContent, withProps } from "@adapttable/vue/adapter";
|
|
4
4
|
import { ElDropdown, ElDropdownItem, ElDropdownMenu } from "element-plus";
|
|
@@ -56,4 +56,4 @@ const ElementRowActions = /* @__PURE__ */ withProps(function ElementRowActions(p
|
|
|
56
56
|
//#endregion
|
|
57
57
|
export { ElementRowActions as t };
|
|
58
58
|
|
|
59
|
-
//# sourceMappingURL=ElementRowActions-
|
|
59
|
+
//# sourceMappingURL=ElementRowActions-Djhrf9rm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ElementRowActions-
|
|
1
|
+
{"version":3,"file":"ElementRowActions-Djhrf9rm.js","names":[],"sources":["../src/ElementRowActions.ts"],"sourcesContent":["import type { RowActionControl } from \"@adapttable/vue\";\nimport {\n type DataTableClassNames,\n rowActionContent,\n type RowActionsLayout,\n withProps,\n} from \"@adapttable/vue/adapter\";\nimport { ElDropdown, ElDropdownItem, ElDropdownMenu } from \"element-plus\";\nimport {\n createVNode,\n defineComponent,\n Fragment,\n h,\n mergeProps,\n shallowRef,\n type VNode,\n} from \"vue\";\n\nimport { elementButton } from \"./controls/button\";\n\ninterface ElementRowActionsProps<TRow> {\n readonly controls: readonly RowActionControl<TRow>[];\n readonly layout?: RowActionsLayout;\n readonly label: string;\n readonly classNames: DataTableClassNames;\n}\nconst actionProps = {\n controls: null,\n layout: null,\n label: null,\n classNames: null,\n} satisfies Record<keyof ElementRowActionsProps<unknown>, unknown>;\n\nconst ElementRowActionsPresentation = defineComponent(\n (props: ElementRowActionsProps<unknown>) => {\n const trigger = shallowRef<HTMLElement | null>(null);\n const setTrigger = (element: HTMLElement | null) => {\n trigger.value = element;\n };\n const returnToTrigger = () => {\n if (trigger.value?.isConnected)\n trigger.value.focus({ preventScroll: true });\n };\n const attrs = (action: RowActionControl<unknown>) =>\n mergeProps(\n {\n key: action.key,\n class: props.classNames.actionButton,\n onClick: (event: MouseEvent) => event.stopPropagation(),\n },\n action.attrs\n );\n const menuItem = (action: RowActionControl<unknown>) =>\n h(\n ElDropdownItem,\n {\n ...mergeProps({ onClick: returnToTrigger }, attrs(action)),\n type: undefined,\n },\n { default: () => action.label }\n );\n return () => {\n if (props.layout !== \"menu\" || props.controls.length === 0)\n return h(\n Fragment,\n null,\n props.controls.map((action) =>\n elementButton(attrs(action), rowActionContent(action))\n )\n );\n return h(\n ElDropdown,\n {\n trigger: \"click\",\n teleported: false,\n \"data-adapttable-part\": \"row-actions-menu\",\n class: props.classNames.rowActionsMenu,\n onPointerdown: (event: PointerEvent) => event.stopPropagation(),\n },\n {\n default: () =>\n elementButton(\n {\n ref: setTrigger,\n \"data-adapttable-part\": \"row-actions-trigger\",\n class: props.classNames.rowActionsTrigger,\n \"aria-label\": props.label,\n onClick: (event: MouseEvent) => event.stopPropagation(),\n },\n \"⋮\"\n ),\n dropdown: () =>\n h(\n ElDropdownMenu,\n {},\n { default: () => props.controls.map(menuItem) }\n ),\n }\n );\n };\n },\n { name: \"ElementRowActionsPresentation\", props: actionProps }\n);\n\n/** A menu returns focus to its native trigger before an action opens another surface. */\nexport const ElementRowActions = /* @__PURE__ */ withProps(\n function ElementRowActions<TRow>(props: ElementRowActionsProps<TRow>): VNode {\n return createVNode(ElementRowActionsPresentation, { ...props });\n },\n actionProps\n);\n"],"mappings":";;;;;AA0BA,MAAM,cAAc;CAClB,UAAU;CACV,QAAQ;CACR,OAAO;CACP,YAAY;AACd;AAEA,MAAM,gCAAgC,iBACnC,UAA2C;CAC1C,MAAM,UAAU,WAA+B,IAAI;CACnD,MAAM,cAAc,YAAgC;EAClD,QAAQ,QAAQ;CAClB;CACA,MAAM,wBAAwB;EAC5B,IAAI,QAAQ,OAAO,aACjB,QAAQ,MAAM,MAAM,EAAE,eAAe,KAAK,CAAC;CAC/C;CACA,MAAM,SAAS,WACb,WACE;EACE,KAAK,OAAO;EACZ,OAAO,MAAM,WAAW;EACxB,UAAU,UAAsB,MAAM,gBAAgB;CACxD,GACA,OAAO,KACT;CACF,MAAM,YAAY,WAChB,EACE,gBACA;EACE,GAAG,WAAW,EAAE,SAAS,gBAAgB,GAAG,MAAM,MAAM,CAAC;EACzD,MAAM,KAAA;CACR,GACA,EAAE,eAAe,OAAO,MAAM,CAChC;CACF,aAAa;EACX,IAAI,MAAM,WAAW,UAAU,MAAM,SAAS,WAAW,GACvD,OAAO,EACL,UACA,MACA,MAAM,SAAS,KAAK,WAClB,cAAc,MAAM,MAAM,GAAG,iBAAiB,MAAM,CAAC,CACvD,CACF;EACF,OAAO,EACL,YACA;GACE,SAAS;GACT,YAAY;GACZ,wBAAwB;GACxB,OAAO,MAAM,WAAW;GACxB,gBAAgB,UAAwB,MAAM,gBAAgB;EAChE,GACA;GACE,eACE,cACE;IACE,KAAK;IACL,wBAAwB;IACxB,OAAO,MAAM,WAAW;IACxB,cAAc,MAAM;IACpB,UAAU,UAAsB,MAAM,gBAAgB;GACxD,GACA,GACF;GACF,gBACE,EACE,gBACA,CAAC,GACD,EAAE,eAAe,MAAM,SAAS,IAAI,QAAQ,EAAE,CAChD;EACJ,CACF;CACF;AACF,GACA;CAAE,MAAM;CAAiC,OAAO;AAAY,CAC9D;;AAGA,MAAa,oBAAoC,0BAC/C,SAAS,kBAAwB,OAA4C;CAC3E,OAAO,YAAY,+BAA+B,EAAE,GAAG,MAAM,CAAC;AAChE,GACA,WACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_button = require("./button-
|
|
1
|
+
const require_button = require("./button-BuXbfKKx.cjs");
|
|
2
2
|
let vue = require("vue");
|
|
3
3
|
let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
|
|
4
4
|
let element_plus = require("element-plus");
|
|
@@ -61,4 +61,4 @@ Object.defineProperty(exports, "ElementRowActions", {
|
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
|
|
64
|
-
//# sourceMappingURL=ElementRowActions-
|
|
64
|
+
//# sourceMappingURL=ElementRowActions-DzAA3wSa.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ElementRowActions-
|
|
1
|
+
{"version":3,"file":"ElementRowActions-DzAA3wSa.cjs","names":["defineComponent","shallowRef","mergeProps","h","ElDropdownItem","Fragment","elementButton","rowActionContent","ElDropdown","ElDropdownMenu","createVNode"],"sources":["../src/ElementRowActions.ts"],"sourcesContent":["import type { RowActionControl } from \"@adapttable/vue\";\nimport {\n type DataTableClassNames,\n rowActionContent,\n type RowActionsLayout,\n withProps,\n} from \"@adapttable/vue/adapter\";\nimport { ElDropdown, ElDropdownItem, ElDropdownMenu } from \"element-plus\";\nimport {\n createVNode,\n defineComponent,\n Fragment,\n h,\n mergeProps,\n shallowRef,\n type VNode,\n} from \"vue\";\n\nimport { elementButton } from \"./controls/button\";\n\ninterface ElementRowActionsProps<TRow> {\n readonly controls: readonly RowActionControl<TRow>[];\n readonly layout?: RowActionsLayout;\n readonly label: string;\n readonly classNames: DataTableClassNames;\n}\nconst actionProps = {\n controls: null,\n layout: null,\n label: null,\n classNames: null,\n} satisfies Record<keyof ElementRowActionsProps<unknown>, unknown>;\n\nconst ElementRowActionsPresentation = defineComponent(\n (props: ElementRowActionsProps<unknown>) => {\n const trigger = shallowRef<HTMLElement | null>(null);\n const setTrigger = (element: HTMLElement | null) => {\n trigger.value = element;\n };\n const returnToTrigger = () => {\n if (trigger.value?.isConnected)\n trigger.value.focus({ preventScroll: true });\n };\n const attrs = (action: RowActionControl<unknown>) =>\n mergeProps(\n {\n key: action.key,\n class: props.classNames.actionButton,\n onClick: (event: MouseEvent) => event.stopPropagation(),\n },\n action.attrs\n );\n const menuItem = (action: RowActionControl<unknown>) =>\n h(\n ElDropdownItem,\n {\n ...mergeProps({ onClick: returnToTrigger }, attrs(action)),\n type: undefined,\n },\n { default: () => action.label }\n );\n return () => {\n if (props.layout !== \"menu\" || props.controls.length === 0)\n return h(\n Fragment,\n null,\n props.controls.map((action) =>\n elementButton(attrs(action), rowActionContent(action))\n )\n );\n return h(\n ElDropdown,\n {\n trigger: \"click\",\n teleported: false,\n \"data-adapttable-part\": \"row-actions-menu\",\n class: props.classNames.rowActionsMenu,\n onPointerdown: (event: PointerEvent) => event.stopPropagation(),\n },\n {\n default: () =>\n elementButton(\n {\n ref: setTrigger,\n \"data-adapttable-part\": \"row-actions-trigger\",\n class: props.classNames.rowActionsTrigger,\n \"aria-label\": props.label,\n onClick: (event: MouseEvent) => event.stopPropagation(),\n },\n \"⋮\"\n ),\n dropdown: () =>\n h(\n ElDropdownMenu,\n {},\n { default: () => props.controls.map(menuItem) }\n ),\n }\n );\n };\n },\n { name: \"ElementRowActionsPresentation\", props: actionProps }\n);\n\n/** A menu returns focus to its native trigger before an action opens another surface. */\nexport const ElementRowActions = /* @__PURE__ */ withProps(\n function ElementRowActions<TRow>(props: ElementRowActionsProps<TRow>): VNode {\n return createVNode(ElementRowActionsPresentation, { ...props });\n },\n actionProps\n);\n"],"mappings":";;;;;AA0BA,MAAM,cAAc;CAClB,UAAU;CACV,QAAQ;CACR,OAAO;CACP,YAAY;AACd;AAEA,MAAM,iCAAA,GAAgCA,IAAAA,gBAAAA,EACnC,UAA2C;CAC1C,MAAM,WAAA,GAAUC,IAAAA,WAAAA,CAA+B,IAAI;CACnD,MAAM,cAAc,YAAgC;EAClD,QAAQ,QAAQ;CAClB;CACA,MAAM,wBAAwB;EAC5B,IAAI,QAAQ,OAAO,aACjB,QAAQ,MAAM,MAAM,EAAE,eAAe,KAAK,CAAC;CAC/C;CACA,MAAM,SAAS,YAAA,GACbC,IAAAA,WAAAA,CACE;EACE,KAAK,OAAO;EACZ,OAAO,MAAM,WAAW;EACxB,UAAU,UAAsB,MAAM,gBAAgB;CACxD,GACA,OAAO,KACT;CACF,MAAM,YAAY,YAAA,GAChBC,IAAAA,EAAAA,CACEC,aAAAA,gBACA;EACE,IAAA,GAAGF,IAAAA,WAAAA,CAAW,EAAE,SAAS,gBAAgB,GAAG,MAAM,MAAM,CAAC;EACzD,MAAM,KAAA;CACR,GACA,EAAE,eAAe,OAAO,MAAM,CAChC;CACF,aAAa;EACX,IAAI,MAAM,WAAW,UAAU,MAAM,SAAS,WAAW,GACvD,QAAA,GAAOC,IAAAA,EAAAA,CACLE,IAAAA,UACA,MACA,MAAM,SAAS,KAAK,WAClBC,eAAAA,cAAc,MAAM,MAAM,IAAA,GAAGC,wBAAAA,iBAAAA,CAAiB,MAAM,CAAC,CACvD,CACF;EACF,QAAA,GAAOJ,IAAAA,EAAAA,CACLK,aAAAA,YACA;GACE,SAAS;GACT,YAAY;GACZ,wBAAwB;GACxB,OAAO,MAAM,WAAW;GACxB,gBAAgB,UAAwB,MAAM,gBAAgB;EAChE,GACA;GACE,eACEF,eAAAA,cACE;IACE,KAAK;IACL,wBAAwB;IACxB,OAAO,MAAM,WAAW;IACxB,cAAc,MAAM;IACpB,UAAU,UAAsB,MAAM,gBAAgB;GACxD,GACA,GACF;GACF,iBAAA,GACEH,IAAAA,EAAAA,CACEM,aAAAA,gBACA,CAAC,GACD,EAAE,eAAe,MAAM,SAAS,IAAI,QAAQ,EAAE,CAChD;EACJ,CACF;CACF;AACF,GACA;CAAE,MAAM;CAAiC,OAAO;AAAY,CAC9D;;AAGA,MAAa,oBAAoC,iBAAA,GAAA,wBAAA,UAAA,CAC/C,SAAS,kBAAwB,OAA4C;CAC3E,QAAA,GAAOC,IAAAA,YAAAA,CAAY,+BAA+B,EAAE,GAAG,MAAM,CAAC;AAChE,GACA,WACF"}
|
package/dist/assistant.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_button = require("./button-
|
|
2
|
+
const require_button = require("./button-BuXbfKKx.cjs");
|
|
3
3
|
const require_ElementInput = require("./ElementInput-BF97xXSC.cjs");
|
|
4
4
|
const require_ElementSelect = require("./ElementSelect-1UwtGCCr.cjs");
|
|
5
|
-
const require_ElementCard = require("./ElementCard-
|
|
5
|
+
const require_ElementCard = require("./ElementCard-DQpWVv24.cjs");
|
|
6
6
|
let vue = require("vue");
|
|
7
7
|
let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
|
|
8
8
|
let element_plus = require("element-plus");
|
package/dist/assistant.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as elementButton } from "./button-
|
|
1
|
+
import { t as elementButton } from "./button-DUddRulx.js";
|
|
2
2
|
import { t as _sfc_main } from "./ElementInput-Cn9hpa9j.js";
|
|
3
3
|
import { t as _sfc_main$1 } from "./ElementSelect-BxFmnPpv.js";
|
|
4
|
-
import { t as ElementCard } from "./ElementCard-
|
|
4
|
+
import { t as ElementCard } from "./ElementCard-czqeWAnk.js";
|
|
5
5
|
import { defineComponent, h, shallowRef, watch } from "vue";
|
|
6
6
|
import { AgentApprovalChrome, TableAssistantChrome, createAdapterAgentApprovalFeature, createAdapterTableAssistantFeature, useScopeActivity } from "@adapttable/vue/adapter";
|
|
7
7
|
import { ElDrawer, ElDropdown, ElDropdownItem, ElDropdownMenu, ElTag } from "element-plus";
|
package/dist/batch-editing.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_editing = require("./editing-
|
|
2
|
+
const require_editing = require("./editing-Bal8jOJT.cjs");
|
|
3
3
|
exports.ElementBatchEditBar = require_editing._sfc_main$1;
|
|
4
4
|
exports.batchEditing = require_editing.batchEditing;
|
package/dist/batch-editing.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { l as _sfc_main, t as batchEditing } from "./editing-
|
|
1
|
+
import { l as _sfc_main, t as batchEditing } from "./editing-BgWyfVFS.js";
|
|
2
2
|
export { _sfc_main as ElementBatchEditBar, batchEditing };
|
package/dist/bulk-actions.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_elementActionSlots = require("./elementActionSlots-
|
|
2
|
+
const require_elementActionSlots = require("./elementActionSlots-WeXIVVnx.cjs");
|
|
3
3
|
let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
|
|
4
4
|
let _adapttable_vue_features = require("@adapttable/vue/features");
|
|
5
5
|
//#region src/bulk-actions.ts
|
package/dist/bulk-actions.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as elementActionSlots } from "./elementActionSlots-
|
|
1
|
+
import { t as elementActionSlots } from "./elementActionSlots-BOdXhb05.js";
|
|
2
2
|
import { BULK_ACTIONS_CONTROL, BulkActionsChrome, extendFeature, slotRender } from "@adapttable/vue/adapter";
|
|
3
3
|
import { bulkActions as bulkActions$1 } from "@adapttable/vue/features";
|
|
4
4
|
//#region src/bulk-actions.ts
|
|
@@ -17,12 +17,13 @@ const ElementButton = (0, vue.defineComponent)((props, { attrs }) => {
|
|
|
17
17
|
}, () => isElementRef(props.attrs.ref) ? props.attrs.ref : void 0);
|
|
18
18
|
return () => {
|
|
19
19
|
const incoming = (0, vue.mergeProps)(props.attrs, attrs);
|
|
20
|
-
const nativeAttrs = Object.fromEntries(Object.entries(incoming).filter(([name]) => name !== "ref" && name !== "type"));
|
|
20
|
+
const nativeAttrs = Object.fromEntries(Object.entries(incoming).filter(([name]) => name !== "ref" && name !== "type" && name !== "tone"));
|
|
21
21
|
const type = incoming.type;
|
|
22
22
|
const nativeType = type === "submit" || type === "reset" ? type : "button";
|
|
23
23
|
return (0, vue.h)(element_plus.ElButton, {
|
|
24
24
|
...nativeAttrs,
|
|
25
25
|
nativeType,
|
|
26
|
+
type: incoming.tone === "primary" ? "primary" : void 0,
|
|
26
27
|
ref: control
|
|
27
28
|
}, props.loading ? {
|
|
28
29
|
default: () => props.content,
|
|
@@ -74,4 +75,4 @@ Object.defineProperty(exports, "isElementRef", {
|
|
|
74
75
|
}
|
|
75
76
|
});
|
|
76
77
|
|
|
77
|
-
//# sourceMappingURL=button-
|
|
78
|
+
//# sourceMappingURL=button-BuXbfKKx.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-BuXbfKKx.cjs","names":["defineComponent","shallowRef","mergeProps","h","ElButton"],"sources":["../src/controls/ref.ts","../src/controls/button.ts"],"sourcesContent":["import type { ElementRef } from \"@adapttable/vue\";\n\n/** Attribute bags carry optional callbacks; kit controls resolve their DOM target. */\nexport function isElementRef(value: unknown): value is ElementRef<Element> {\n return typeof value === \"function\";\n}\n","import type { Attrs } from \"@adapttable/vue\";\nimport { useElementRef } from \"@adapttable/vue/adapter\";\nimport { type ButtonInstance, ElButton } from \"element-plus\";\nimport {\n defineComponent,\n h,\n mergeProps,\n type PropType,\n shallowRef,\n type VNode,\n type VNodeChild,\n} from \"vue\";\n\nimport { isElementRef } from \"./ref\";\n\nconst ElementButton = defineComponent(\n (\n props: {\n readonly attrs: Attrs;\n readonly content: VNodeChild;\n readonly loading?: () => VNodeChild;\n },\n { attrs }\n ) => {\n const control = shallowRef<ButtonInstance>();\n useElementRef(\n () => {\n const target: unknown = control.value?.$el;\n if (target == null) return null;\n return target instanceof HTMLButtonElement ? target : null;\n },\n () => (isElementRef(props.attrs.ref) ? props.attrs.ref : undefined)\n );\n return () => {\n const incoming = mergeProps(props.attrs, attrs);\n const nativeAttrs = Object.fromEntries(\n Object.entries(incoming).filter(\n ([name]) => name !== \"ref\" && name !== \"type\" && name !== \"tone\"\n )\n );\n const type = incoming.type;\n const nativeType =\n type === \"submit\" || type === \"reset\" ? type : \"button\";\n return h(\n ElButton,\n {\n ...nativeAttrs,\n nativeType,\n type: incoming.tone === \"primary\" ? \"primary\" : undefined,\n ref: control,\n },\n props.loading\n ? { default: () => props.content, loading: props.loading }\n : { default: () => props.content }\n );\n };\n },\n {\n name: \"ElementButton\",\n props: {\n attrs: { type: Object as PropType<Attrs> },\n content: {\n type: [String, Number, Boolean, Array, Object] as PropType<VNodeChild>,\n default: undefined,\n },\n loading: { type: Function as PropType<(() => VNodeChild) | undefined> },\n },\n inheritAttrs: false,\n }\n);\n\n/**\n * Element Plus retains its native button; one setup scope owns its DOM ref.\n * `loading` replaces ElButton's busy icon while its `loading` prop is set.\n */\nexport function elementButton(\n attrs: Attrs,\n content: VNodeChild,\n loading?: () => VNodeChild\n): VNode {\n const key = attrs.key;\n return h(ElementButton, {\n key:\n typeof key === \"string\" ||\n typeof key === \"number\" ||\n typeof key === \"symbol\"\n ? key\n : undefined,\n attrs,\n content,\n loading,\n });\n}\n"],"mappings":";;;;;AAGA,SAAgB,aAAa,OAA8C;CACzE,OAAO,OAAO,UAAU;AAC1B;;;ACUA,MAAM,iBAAA,GAAgBA,IAAAA,gBAAAA,EAElB,OAKA,EAAE,YACC;CACH,MAAM,WAAA,GAAUC,IAAAA,WAAAA,CAA2B;CAC3C,CAAA,GAAA,wBAAA,cAAA,OACQ;EACJ,MAAM,SAAkB,QAAQ,OAAO;EACvC,IAAI,UAAU,MAAM,OAAO;EAC3B,OAAO,kBAAkB,oBAAoB,SAAS;CACxD,SACO,aAAa,MAAM,MAAM,GAAG,IAAI,MAAM,MAAM,MAAM,KAAA,CAC3D;CACA,aAAa;EACX,MAAM,YAAA,GAAWC,IAAAA,WAAAA,CAAW,MAAM,OAAO,KAAK;EAC9C,MAAM,cAAc,OAAO,YACzB,OAAO,QAAQ,QAAQ,CAAC,CAAC,QACtB,CAAC,UAAU,SAAS,SAAS,SAAS,UAAU,SAAS,MAC5D,CACF;EACA,MAAM,OAAO,SAAS;EACtB,MAAM,aACJ,SAAS,YAAY,SAAS,UAAU,OAAO;EACjD,QAAA,GAAOC,IAAAA,EAAAA,CACLC,aAAAA,UACA;GACE,GAAG;GACH;GACA,MAAM,SAAS,SAAS,YAAY,YAAY,KAAA;GAChD,KAAK;EACP,GACA,MAAM,UACF;GAAE,eAAe,MAAM;GAAS,SAAS,MAAM;EAAQ,IACvD,EAAE,eAAe,MAAM,QAAQ,CACrC;CACF;AACF,GACA;CACE,MAAM;CACN,OAAO;EACL,OAAO,EAAE,MAAM,OAA0B;EACzC,SAAS;GACP,MAAM;IAAC;IAAQ;IAAQ;IAAS;IAAO;GAAM;GAC7C,SAAS,KAAA;EACX;EACA,SAAS,EAAE,MAAM,SAAqD;CACxE;CACA,cAAc;AAChB,CACF;;;;;AAMA,SAAgB,cACd,OACA,SACA,SACO;CACP,MAAM,MAAM,MAAM;CAClB,QAAA,GAAOD,IAAAA,EAAAA,CAAE,eAAe;EACtB,KACE,OAAO,QAAQ,YACf,OAAO,QAAQ,YACf,OAAO,QAAQ,WACX,MACA,KAAA;EACN;EACA;EACA;CACF,CAAC;AACH"}
|
|
@@ -17,12 +17,13 @@ const ElementButton = defineComponent((props, { attrs }) => {
|
|
|
17
17
|
}, () => isElementRef(props.attrs.ref) ? props.attrs.ref : void 0);
|
|
18
18
|
return () => {
|
|
19
19
|
const incoming = mergeProps(props.attrs, attrs);
|
|
20
|
-
const nativeAttrs = Object.fromEntries(Object.entries(incoming).filter(([name]) => name !== "ref" && name !== "type"));
|
|
20
|
+
const nativeAttrs = Object.fromEntries(Object.entries(incoming).filter(([name]) => name !== "ref" && name !== "type" && name !== "tone"));
|
|
21
21
|
const type = incoming.type;
|
|
22
22
|
const nativeType = type === "submit" || type === "reset" ? type : "button";
|
|
23
23
|
return h(ElButton, {
|
|
24
24
|
...nativeAttrs,
|
|
25
25
|
nativeType,
|
|
26
|
+
type: incoming.tone === "primary" ? "primary" : void 0,
|
|
26
27
|
ref: control
|
|
27
28
|
}, props.loading ? {
|
|
28
29
|
default: () => props.content,
|
|
@@ -63,4 +64,4 @@ function elementButton(attrs, content, loading) {
|
|
|
63
64
|
//#endregion
|
|
64
65
|
export { isElementRef as n, elementButton as t };
|
|
65
66
|
|
|
66
|
-
//# sourceMappingURL=button-
|
|
67
|
+
//# sourceMappingURL=button-DUddRulx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-DUddRulx.js","names":[],"sources":["../src/controls/ref.ts","../src/controls/button.ts"],"sourcesContent":["import type { ElementRef } from \"@adapttable/vue\";\n\n/** Attribute bags carry optional callbacks; kit controls resolve their DOM target. */\nexport function isElementRef(value: unknown): value is ElementRef<Element> {\n return typeof value === \"function\";\n}\n","import type { Attrs } from \"@adapttable/vue\";\nimport { useElementRef } from \"@adapttable/vue/adapter\";\nimport { type ButtonInstance, ElButton } from \"element-plus\";\nimport {\n defineComponent,\n h,\n mergeProps,\n type PropType,\n shallowRef,\n type VNode,\n type VNodeChild,\n} from \"vue\";\n\nimport { isElementRef } from \"./ref\";\n\nconst ElementButton = defineComponent(\n (\n props: {\n readonly attrs: Attrs;\n readonly content: VNodeChild;\n readonly loading?: () => VNodeChild;\n },\n { attrs }\n ) => {\n const control = shallowRef<ButtonInstance>();\n useElementRef(\n () => {\n const target: unknown = control.value?.$el;\n if (target == null) return null;\n return target instanceof HTMLButtonElement ? target : null;\n },\n () => (isElementRef(props.attrs.ref) ? props.attrs.ref : undefined)\n );\n return () => {\n const incoming = mergeProps(props.attrs, attrs);\n const nativeAttrs = Object.fromEntries(\n Object.entries(incoming).filter(\n ([name]) => name !== \"ref\" && name !== \"type\" && name !== \"tone\"\n )\n );\n const type = incoming.type;\n const nativeType =\n type === \"submit\" || type === \"reset\" ? type : \"button\";\n return h(\n ElButton,\n {\n ...nativeAttrs,\n nativeType,\n type: incoming.tone === \"primary\" ? \"primary\" : undefined,\n ref: control,\n },\n props.loading\n ? { default: () => props.content, loading: props.loading }\n : { default: () => props.content }\n );\n };\n },\n {\n name: \"ElementButton\",\n props: {\n attrs: { type: Object as PropType<Attrs> },\n content: {\n type: [String, Number, Boolean, Array, Object] as PropType<VNodeChild>,\n default: undefined,\n },\n loading: { type: Function as PropType<(() => VNodeChild) | undefined> },\n },\n inheritAttrs: false,\n }\n);\n\n/**\n * Element Plus retains its native button; one setup scope owns its DOM ref.\n * `loading` replaces ElButton's busy icon while its `loading` prop is set.\n */\nexport function elementButton(\n attrs: Attrs,\n content: VNodeChild,\n loading?: () => VNodeChild\n): VNode {\n const key = attrs.key;\n return h(ElementButton, {\n key:\n typeof key === \"string\" ||\n typeof key === \"number\" ||\n typeof key === \"symbol\"\n ? key\n : undefined,\n attrs,\n content,\n loading,\n });\n}\n"],"mappings":";;;;;AAGA,SAAgB,aAAa,OAA8C;CACzE,OAAO,OAAO,UAAU;AAC1B;;;ACUA,MAAM,gBAAgB,iBAElB,OAKA,EAAE,YACC;CACH,MAAM,UAAU,WAA2B;CAC3C,oBACQ;EACJ,MAAM,SAAkB,QAAQ,OAAO;EACvC,IAAI,UAAU,MAAM,OAAO;EAC3B,OAAO,kBAAkB,oBAAoB,SAAS;CACxD,SACO,aAAa,MAAM,MAAM,GAAG,IAAI,MAAM,MAAM,MAAM,KAAA,CAC3D;CACA,aAAa;EACX,MAAM,WAAW,WAAW,MAAM,OAAO,KAAK;EAC9C,MAAM,cAAc,OAAO,YACzB,OAAO,QAAQ,QAAQ,CAAC,CAAC,QACtB,CAAC,UAAU,SAAS,SAAS,SAAS,UAAU,SAAS,MAC5D,CACF;EACA,MAAM,OAAO,SAAS;EACtB,MAAM,aACJ,SAAS,YAAY,SAAS,UAAU,OAAO;EACjD,OAAO,EACL,UACA;GACE,GAAG;GACH;GACA,MAAM,SAAS,SAAS,YAAY,YAAY,KAAA;GAChD,KAAK;EACP,GACA,MAAM,UACF;GAAE,eAAe,MAAM;GAAS,SAAS,MAAM;EAAQ,IACvD,EAAE,eAAe,MAAM,QAAQ,CACrC;CACF;AACF,GACA;CACE,MAAM;CACN,OAAO;EACL,OAAO,EAAE,MAAM,OAA0B;EACzC,SAAS;GACP,MAAM;IAAC;IAAQ;IAAQ;IAAS;IAAO;GAAM;GAC7C,SAAS,KAAA;EACX;EACA,SAAS,EAAE,MAAM,SAAqD;CACxE;CACA,cAAc;AAChB,CACF;;;;;AAMA,SAAgB,cACd,OACA,SACA,SACO;CACP,MAAM,MAAM,MAAM;CAClB,OAAO,EAAE,eAAe;EACtB,KACE,OAAO,QAAQ,YACf,OAAO,QAAQ,YACf,OAAO,QAAQ,WACX,MACA,KAAA;EACN;EACA;EACA;CACF,CAAC;AACH"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_button = require("./button-
|
|
1
|
+
const require_button = require("./button-BuXbfKKx.cjs");
|
|
2
2
|
const require_ElementCheckbox = require("./ElementCheckbox-BXSH2jHY.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
|
|
@@ -23,4 +23,4 @@ Object.defineProperty(exports, "elementSelectionCheckbox", {
|
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
-
//# sourceMappingURL=checkbox-
|
|
26
|
+
//# sourceMappingURL=checkbox-DRhRrexK.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-
|
|
1
|
+
{"version":3,"file":"checkbox-DRhRrexK.cjs","names":["selectionCheckboxInputAttrs","h","ElementCheckbox","isElementRef"],"sources":["../src/controls/checkbox.ts"],"sourcesContent":["import {\n type SelectionCheckboxControl,\n selectionCheckboxInputAttrs,\n} from \"@adapttable/vue/adapter\";\nimport { h, type VNode } from \"vue\";\n\nimport ElementCheckbox from \"./ElementCheckbox.vue\";\nimport { isElementRef } from \"./ref\";\n\n/** Parts/classes belong to ElCheckbox's label host; focus belongs to its input. */\nexport function elementSelectionCheckbox(\n control: SelectionCheckboxControl\n): VNode {\n const {\n ref,\n \"aria-label\": label,\n ...attrs\n } = selectionCheckboxInputAttrs(control.attrs);\n return h(ElementCheckbox, {\n ...attrs,\n label: typeof label === \"string\" ? label : \"\",\n checked: control.checked,\n indeterminate: control.indeterminate,\n inputRef: isElementRef(ref) ? ref : undefined,\n onChange: control.onToggle,\n });\n}\n"],"mappings":";;;;;;AAUA,SAAgB,yBACd,SACO;CACP,MAAM,EACJ,KACA,cAAc,OACd,GAAG,WAAA,GACDA,wBAAAA,4BAAAA,CAA4B,QAAQ,KAAK;CAC7C,QAAA,GAAOC,IAAAA,EAAAA,CAAEC,wBAAAA,WAAiB;EACxB,GAAG;EACH,OAAO,OAAO,UAAU,WAAW,QAAQ;EAC3C,SAAS,QAAQ;EACjB,eAAe,QAAQ;EACvB,UAAUC,eAAAA,aAAa,GAAG,IAAI,MAAM,KAAA;EACpC,UAAU,QAAQ;CACpB,CAAC;AACH"}
|
package/dist/column-layout.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_column_menu = require("./column-menu-
|
|
2
|
+
const require_column_menu = require("./column-menu-eS7ylKfB.cjs");
|
|
3
3
|
require("./fit-columns.cjs");
|
|
4
4
|
require("./resizable-columns.cjs");
|
|
5
5
|
let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
|
package/dist/column-layout.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as columnMenu } from "./column-menu-
|
|
1
|
+
import { t as columnMenu } from "./column-menu-DaOcmA45.js";
|
|
2
2
|
import { fitColumns } from "./fit-columns.js";
|
|
3
3
|
import { resizableColumns } from "./resizable-columns.js";
|
|
4
4
|
import { columnLayoutFamilyList } from "@adapttable/vue/adapter";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as isElementRef, t as elementButton } from "./button-
|
|
1
|
+
import { n as isElementRef, t as elementButton } from "./button-DUddRulx.js";
|
|
2
2
|
import { t as _sfc_main } from "./ElementInput-Cn9hpa9j.js";
|
|
3
3
|
import { t as _sfc_main$1 } from "./ElementSelect-BxFmnPpv.js";
|
|
4
|
-
import { n as columnMenuContainer, t as ElementColumnMenuPanel } from "./ElementColumnMenuPanel-
|
|
4
|
+
import { n as columnMenuContainer, t as ElementColumnMenuPanel } from "./ElementColumnMenuPanel-Nkilw7G4.js";
|
|
5
5
|
import { createVNode, defineComponent, h, inject } from "vue";
|
|
6
6
|
import { COLUMN_HEADER_RENAME, COLUMN_MENU, ColumnHeaderRenameChrome, ColumnMenuChrome, extendFeature, managedOverlayPanel, slotRender, useColumnMenu, withProps } from "@adapttable/vue/adapter";
|
|
7
7
|
import { columnMenu } from "@adapttable/vue/features";
|
|
@@ -33,19 +33,39 @@ const ElementColumnChoice = defineComponent((props) => {
|
|
|
33
33
|
});
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region src/columns/elementColumnMenuControls.ts
|
|
36
|
+
const icons = {
|
|
37
|
+
grip: "⠿",
|
|
38
|
+
visible: "◉",
|
|
39
|
+
hidden: "○",
|
|
40
|
+
more: "⋯",
|
|
41
|
+
rename: "✎"
|
|
42
|
+
};
|
|
43
|
+
/** The button's glyph: the pin outline, or the kit's character. */
|
|
44
|
+
function glyph(icon) {
|
|
45
|
+
return icon === "pin" ? pinGlyph() : h("span", { "aria-hidden": "true" }, icons[icon]);
|
|
46
|
+
}
|
|
47
|
+
/** A pin outline at the caption's size. */
|
|
48
|
+
function pinGlyph() {
|
|
49
|
+
return h("svg", {
|
|
50
|
+
"aria-hidden": "true",
|
|
51
|
+
width: "1em",
|
|
52
|
+
height: "1em",
|
|
53
|
+
viewBox: "0 0 24 24",
|
|
54
|
+
fill: "none",
|
|
55
|
+
stroke: "currentColor",
|
|
56
|
+
"stroke-width": 2,
|
|
57
|
+
"stroke-linecap": "round",
|
|
58
|
+
"stroke-linejoin": "round"
|
|
59
|
+
}, [h("path", { d: "M8 3h8v6l2 3v2H6v-2l2-3V3ZM12 14v7" })]);
|
|
60
|
+
}
|
|
36
61
|
function button(control) {
|
|
37
|
-
const icons = {
|
|
38
|
-
grip: "⠿",
|
|
39
|
-
visible: "◉",
|
|
40
|
-
hidden: "○",
|
|
41
|
-
pin: "⌖",
|
|
42
|
-
more: "⋯",
|
|
43
|
-
rename: "✎"
|
|
44
|
-
};
|
|
45
62
|
return elementButton({
|
|
46
63
|
"aria-label": control.label,
|
|
47
|
-
...control.attrs
|
|
48
|
-
|
|
64
|
+
...control.attrs,
|
|
65
|
+
...control.compact ? { size: "small" } : {},
|
|
66
|
+
...control.variant === "quiet" ? { text: true } : {},
|
|
67
|
+
...control.variant === "primary" ? { tone: "primary" } : {}
|
|
68
|
+
}, control.icon ? glyph(control.icon) : control.label);
|
|
49
69
|
}
|
|
50
70
|
const elementColumnMenuSlots = {
|
|
51
71
|
Trigger: button,
|
|
@@ -111,4 +131,4 @@ function columnMenu$1(options) {
|
|
|
111
131
|
//#endregion
|
|
112
132
|
export { ColumnMenu as n, columnMenu$1 as t };
|
|
113
133
|
|
|
114
|
-
//# sourceMappingURL=column-menu-
|
|
134
|
+
//# sourceMappingURL=column-menu-DaOcmA45.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-menu-DaOcmA45.js","names":["ElementSelect","ElementInput","columnMenu","bindingColumnMenu"],"sources":["../src/columns/ElementColumnChoice.ts","../src/columns/elementColumnMenuControls.ts","../src/columns/ColumnMenu.ts","../src/column-menu.ts"],"sourcesContent":["import type { ColumnMenuSlots } from \"@adapttable/vue/adapter\";\nimport { defineComponent, h, inject, type PropType } from \"vue\";\n\nimport ElementSelect from \"../controls/ElementSelect.vue\";\nimport { columnMenuContainer } from \"./panelContext\";\n\ntype ChoiceControl = Parameters<ColumnMenuSlots[\"Choice\"]>[0];\nfunction isKeyboardHandler(\n value: unknown\n): value is (event: KeyboardEvent) => void {\n return typeof value === \"function\";\n}\nexport const ElementColumnChoice = defineComponent(\n (props: { readonly control: ChoiceControl }) => {\n const container = inject(columnMenuContainer, undefined);\n const escape = (event: KeyboardEvent) => {\n const target = event.target;\n if (\n event.key === \"Escape\" &&\n !event.defaultPrevented &&\n !event.isComposing &&\n target instanceof Element &&\n target.getAttribute(\"role\") === \"combobox\" &&\n target.getAttribute(\"aria-expanded\") === \"false\"\n ) {\n const handler = props.control.attrs.onKeydown;\n if (isKeyboardHandler(handler)) handler(event);\n }\n };\n return () =>\n h(ElementSelect, {\n ...props.control.attrs,\n value: props.control.value,\n options: props.control.options,\n teleported: container?.value != null,\n appendTo: container?.value ?? undefined,\n onChange: props.control.onChange,\n onKeydownCapture: escape,\n });\n },\n {\n name: \"ElementColumnChoice\",\n props: {\n control: { type: Object as PropType<ChoiceControl> },\n },\n }\n);\n","import {\n type ColumnMenuButtonProps,\n type ColumnMenuSlots,\n managedOverlayPanel,\n} from \"@adapttable/vue/adapter\";\nimport { h } from \"vue\";\n\nimport { elementButton } from \"../controls/button\";\nimport ElementInput from \"../controls/ElementInput.vue\";\nimport { isElementRef } from \"../controls/ref\";\nimport { ElementColumnChoice } from \"./ElementColumnChoice\";\nimport { ElementColumnMenuPanel } from \"./ElementColumnMenuPanel\";\n\nconst icons = {\n grip: \"⠿\",\n visible: \"◉\",\n hidden: \"○\",\n more: \"⋯\",\n rename: \"✎\",\n};\n/** The button's glyph: the pin outline, or the kit's character. */\nfunction glyph(icon: NonNullable<ColumnMenuButtonProps[\"icon\"]>) {\n return icon === \"pin\"\n ? pinGlyph()\n : h(\"span\", { \"aria-hidden\": \"true\" }, icons[icon]);\n}\n/** A pin outline at the caption's size. */\nfunction pinGlyph() {\n return h(\n \"svg\",\n {\n \"aria-hidden\": \"true\",\n width: \"1em\",\n height: \"1em\",\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n \"stroke-width\": 2,\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n },\n [h(\"path\", { d: \"M8 3h8v6l2 3v2H6v-2l2-3V3ZM12 14v7\" })]\n );\n}\nfunction button(control: ColumnMenuButtonProps) {\n return elementButton(\n {\n \"aria-label\": control.label,\n ...control.attrs,\n ...(control.compact ? { size: \"small\" } : {}),\n ...(control.variant === \"quiet\" ? { text: true } : {}),\n ...(control.variant === \"primary\" ? { tone: \"primary\" } : {}),\n },\n control.icon ? glyph(control.icon) : control.label\n );\n}\nexport const elementColumnMenuSlots: ColumnMenuSlots = {\n Trigger: button,\n Button: button,\n Input: ({ attrs, value, onChange }) => {\n const nativeAttrs = Object.fromEntries(\n Object.entries(attrs).filter(([key]) => key !== \"ref\" && key !== \"type\")\n );\n return h(ElementInput, {\n ...nativeAttrs,\n value,\n type: attrs.type === \"search\" ? \"search\" : \"text\",\n inputRef: isElementRef(attrs.ref) ? attrs.ref : undefined,\n onChange,\n });\n },\n Choice: (control) => h(ElementColumnChoice, { control }),\n Panel: managedOverlayPanel((control) =>\n h(ElementColumnMenuPanel, { control })\n ),\n};\n","import {\n ColumnMenuChrome,\n type ColumnMenuSlotProps,\n useColumnMenu,\n withProps,\n} from \"@adapttable/vue/adapter\";\nimport { createVNode, defineComponent, h, type SetupContext } from \"vue\";\n\nimport { elementColumnMenuSlots } from \"./elementColumnMenuControls\";\n\nconst menuProps = {\n allColumns: null,\n layout: null,\n labels: null,\n hasRowActions: Boolean,\n hasRowReorder: Boolean,\n onAutoSize: null,\n onAutoSizeColumn: null,\n onSortColumn: null,\n onFilterColumn: null,\n onRenameColumn: null,\n sortBy: null,\n sortDir: null,\n dir: null,\n groupingPanel: null,\n featureHost: null,\n classNames: null,\n container: null,\n} satisfies Record<keyof ColumnMenuSlotProps<unknown>, unknown>;\nconst ElementColumnMenuPresentation = defineComponent(\n (props: ColumnMenuSlotProps<unknown>) => {\n const model = useColumnMenu(() => props);\n return () => h(ColumnMenuChrome, { model, slots: elementColumnMenuSlots });\n },\n { name: \"ElementColumnMenuPresentation\", props: menuProps }\n);\nexport const ColumnMenu = /* @__PURE__ */ withProps(function ColumnMenu<TRow>(\n props: ColumnMenuSlotProps<TRow>,\n context: Pick<SetupContext, \"attrs\">\n) {\n return createVNode(ElementColumnMenuPresentation, {\n ...context.attrs,\n ...props,\n });\n}, menuProps);\n","import type { StaticTableFeature } from \"@adapttable/vue\";\nimport {\n COLUMN_HEADER_RENAME,\n COLUMN_MENU,\n ColumnHeaderRenameChrome,\n extendFeature,\n slotRender,\n} from \"@adapttable/vue/adapter\";\nimport {\n columnMenu as bindingColumnMenu,\n type ColumnMenuOptions,\n} from \"@adapttable/vue/features\";\nimport { h } from \"vue\";\n\nimport { ColumnMenu } from \"./columns/ColumnMenu\";\nimport { elementColumnMenuSlots } from \"./columns/elementColumnMenuControls\";\n\nexport function columnMenu(options?: ColumnMenuOptions): StaticTableFeature {\n return extendFeature(bindingColumnMenu(options), [\n slotRender(COLUMN_MENU, (props) => h(ColumnMenu<never>, { ...props })),\n slotRender(COLUMN_HEADER_RENAME, (props) =>\n h(ColumnHeaderRenameChrome, { ...props, slots: elementColumnMenuSlots })\n ),\n ]);\n}\nexport { ColumnMenu } from \"./columns/ColumnMenu\";\nexport type { ColumnMenuSlotProps } from \"@adapttable/vue/adapter\";\n"],"mappings":"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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_button = require("./button-
|
|
1
|
+
const require_button = require("./button-BuXbfKKx.cjs");
|
|
2
2
|
const require_ElementInput = require("./ElementInput-BF97xXSC.cjs");
|
|
3
3
|
const require_ElementSelect = require("./ElementSelect-1UwtGCCr.cjs");
|
|
4
|
-
const require_ElementColumnMenuPanel = require("./ElementColumnMenuPanel-
|
|
4
|
+
const require_ElementColumnMenuPanel = require("./ElementColumnMenuPanel-BfFgrSEJ.cjs");
|
|
5
5
|
let vue = require("vue");
|
|
6
6
|
let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
|
|
7
7
|
let _adapttable_vue_features = require("@adapttable/vue/features");
|
|
@@ -33,19 +33,39 @@ const ElementColumnChoice = (0, vue.defineComponent)((props) => {
|
|
|
33
33
|
});
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region src/columns/elementColumnMenuControls.ts
|
|
36
|
+
const icons = {
|
|
37
|
+
grip: "⠿",
|
|
38
|
+
visible: "◉",
|
|
39
|
+
hidden: "○",
|
|
40
|
+
more: "⋯",
|
|
41
|
+
rename: "✎"
|
|
42
|
+
};
|
|
43
|
+
/** The button's glyph: the pin outline, or the kit's character. */
|
|
44
|
+
function glyph(icon) {
|
|
45
|
+
return icon === "pin" ? pinGlyph() : (0, vue.h)("span", { "aria-hidden": "true" }, icons[icon]);
|
|
46
|
+
}
|
|
47
|
+
/** A pin outline at the caption's size. */
|
|
48
|
+
function pinGlyph() {
|
|
49
|
+
return (0, vue.h)("svg", {
|
|
50
|
+
"aria-hidden": "true",
|
|
51
|
+
width: "1em",
|
|
52
|
+
height: "1em",
|
|
53
|
+
viewBox: "0 0 24 24",
|
|
54
|
+
fill: "none",
|
|
55
|
+
stroke: "currentColor",
|
|
56
|
+
"stroke-width": 2,
|
|
57
|
+
"stroke-linecap": "round",
|
|
58
|
+
"stroke-linejoin": "round"
|
|
59
|
+
}, [(0, vue.h)("path", { d: "M8 3h8v6l2 3v2H6v-2l2-3V3ZM12 14v7" })]);
|
|
60
|
+
}
|
|
36
61
|
function button(control) {
|
|
37
|
-
const icons = {
|
|
38
|
-
grip: "⠿",
|
|
39
|
-
visible: "◉",
|
|
40
|
-
hidden: "○",
|
|
41
|
-
pin: "⌖",
|
|
42
|
-
more: "⋯",
|
|
43
|
-
rename: "✎"
|
|
44
|
-
};
|
|
45
62
|
return require_button.elementButton({
|
|
46
63
|
"aria-label": control.label,
|
|
47
|
-
...control.attrs
|
|
48
|
-
|
|
64
|
+
...control.attrs,
|
|
65
|
+
...control.compact ? { size: "small" } : {},
|
|
66
|
+
...control.variant === "quiet" ? { text: true } : {},
|
|
67
|
+
...control.variant === "primary" ? { tone: "primary" } : {}
|
|
68
|
+
}, control.icon ? glyph(control.icon) : control.label);
|
|
49
69
|
}
|
|
50
70
|
const elementColumnMenuSlots = {
|
|
51
71
|
Trigger: button,
|
|
@@ -122,4 +142,4 @@ Object.defineProperty(exports, "columnMenu", {
|
|
|
122
142
|
}
|
|
123
143
|
});
|
|
124
144
|
|
|
125
|
-
//# sourceMappingURL=column-menu-
|
|
145
|
+
//# sourceMappingURL=column-menu-eS7ylKfB.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-menu-eS7ylKfB.cjs","names":["defineComponent","inject","columnMenuContainer","h","ElementSelect","h","elementButton","ElementInput","isElementRef","managedOverlayPanel","ElementColumnMenuPanel","defineComponent","useColumnMenu","h","ColumnMenuChrome","createVNode","extendFeature","bindingColumnMenu","slotRender","COLUMN_MENU","h","COLUMN_HEADER_RENAME","ColumnHeaderRenameChrome"],"sources":["../src/columns/ElementColumnChoice.ts","../src/columns/elementColumnMenuControls.ts","../src/columns/ColumnMenu.ts","../src/column-menu.ts"],"sourcesContent":["import type { ColumnMenuSlots } from \"@adapttable/vue/adapter\";\nimport { defineComponent, h, inject, type PropType } from \"vue\";\n\nimport ElementSelect from \"../controls/ElementSelect.vue\";\nimport { columnMenuContainer } from \"./panelContext\";\n\ntype ChoiceControl = Parameters<ColumnMenuSlots[\"Choice\"]>[0];\nfunction isKeyboardHandler(\n value: unknown\n): value is (event: KeyboardEvent) => void {\n return typeof value === \"function\";\n}\nexport const ElementColumnChoice = defineComponent(\n (props: { readonly control: ChoiceControl }) => {\n const container = inject(columnMenuContainer, undefined);\n const escape = (event: KeyboardEvent) => {\n const target = event.target;\n if (\n event.key === \"Escape\" &&\n !event.defaultPrevented &&\n !event.isComposing &&\n target instanceof Element &&\n target.getAttribute(\"role\") === \"combobox\" &&\n target.getAttribute(\"aria-expanded\") === \"false\"\n ) {\n const handler = props.control.attrs.onKeydown;\n if (isKeyboardHandler(handler)) handler(event);\n }\n };\n return () =>\n h(ElementSelect, {\n ...props.control.attrs,\n value: props.control.value,\n options: props.control.options,\n teleported: container?.value != null,\n appendTo: container?.value ?? undefined,\n onChange: props.control.onChange,\n onKeydownCapture: escape,\n });\n },\n {\n name: \"ElementColumnChoice\",\n props: {\n control: { type: Object as PropType<ChoiceControl> },\n },\n }\n);\n","import {\n type ColumnMenuButtonProps,\n type ColumnMenuSlots,\n managedOverlayPanel,\n} from \"@adapttable/vue/adapter\";\nimport { h } from \"vue\";\n\nimport { elementButton } from \"../controls/button\";\nimport ElementInput from \"../controls/ElementInput.vue\";\nimport { isElementRef } from \"../controls/ref\";\nimport { ElementColumnChoice } from \"./ElementColumnChoice\";\nimport { ElementColumnMenuPanel } from \"./ElementColumnMenuPanel\";\n\nconst icons = {\n grip: \"⠿\",\n visible: \"◉\",\n hidden: \"○\",\n more: \"⋯\",\n rename: \"✎\",\n};\n/** The button's glyph: the pin outline, or the kit's character. */\nfunction glyph(icon: NonNullable<ColumnMenuButtonProps[\"icon\"]>) {\n return icon === \"pin\"\n ? pinGlyph()\n : h(\"span\", { \"aria-hidden\": \"true\" }, icons[icon]);\n}\n/** A pin outline at the caption's size. */\nfunction pinGlyph() {\n return h(\n \"svg\",\n {\n \"aria-hidden\": \"true\",\n width: \"1em\",\n height: \"1em\",\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n \"stroke-width\": 2,\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n },\n [h(\"path\", { d: \"M8 3h8v6l2 3v2H6v-2l2-3V3ZM12 14v7\" })]\n );\n}\nfunction button(control: ColumnMenuButtonProps) {\n return elementButton(\n {\n \"aria-label\": control.label,\n ...control.attrs,\n ...(control.compact ? { size: \"small\" } : {}),\n ...(control.variant === \"quiet\" ? { text: true } : {}),\n ...(control.variant === \"primary\" ? { tone: \"primary\" } : {}),\n },\n control.icon ? glyph(control.icon) : control.label\n );\n}\nexport const elementColumnMenuSlots: ColumnMenuSlots = {\n Trigger: button,\n Button: button,\n Input: ({ attrs, value, onChange }) => {\n const nativeAttrs = Object.fromEntries(\n Object.entries(attrs).filter(([key]) => key !== \"ref\" && key !== \"type\")\n );\n return h(ElementInput, {\n ...nativeAttrs,\n value,\n type: attrs.type === \"search\" ? \"search\" : \"text\",\n inputRef: isElementRef(attrs.ref) ? attrs.ref : undefined,\n onChange,\n });\n },\n Choice: (control) => h(ElementColumnChoice, { control }),\n Panel: managedOverlayPanel((control) =>\n h(ElementColumnMenuPanel, { control })\n ),\n};\n","import {\n ColumnMenuChrome,\n type ColumnMenuSlotProps,\n useColumnMenu,\n withProps,\n} from \"@adapttable/vue/adapter\";\nimport { createVNode, defineComponent, h, type SetupContext } from \"vue\";\n\nimport { elementColumnMenuSlots } from \"./elementColumnMenuControls\";\n\nconst menuProps = {\n allColumns: null,\n layout: null,\n labels: null,\n hasRowActions: Boolean,\n hasRowReorder: Boolean,\n onAutoSize: null,\n onAutoSizeColumn: null,\n onSortColumn: null,\n onFilterColumn: null,\n onRenameColumn: null,\n sortBy: null,\n sortDir: null,\n dir: null,\n groupingPanel: null,\n featureHost: null,\n classNames: null,\n container: null,\n} satisfies Record<keyof ColumnMenuSlotProps<unknown>, unknown>;\nconst ElementColumnMenuPresentation = defineComponent(\n (props: ColumnMenuSlotProps<unknown>) => {\n const model = useColumnMenu(() => props);\n return () => h(ColumnMenuChrome, { model, slots: elementColumnMenuSlots });\n },\n { name: \"ElementColumnMenuPresentation\", props: menuProps }\n);\nexport const ColumnMenu = /* @__PURE__ */ withProps(function ColumnMenu<TRow>(\n props: ColumnMenuSlotProps<TRow>,\n context: Pick<SetupContext, \"attrs\">\n) {\n return createVNode(ElementColumnMenuPresentation, {\n ...context.attrs,\n ...props,\n });\n}, menuProps);\n","import type { StaticTableFeature } from \"@adapttable/vue\";\nimport {\n COLUMN_HEADER_RENAME,\n COLUMN_MENU,\n ColumnHeaderRenameChrome,\n extendFeature,\n slotRender,\n} from \"@adapttable/vue/adapter\";\nimport {\n columnMenu as bindingColumnMenu,\n type ColumnMenuOptions,\n} from \"@adapttable/vue/features\";\nimport { h } from \"vue\";\n\nimport { ColumnMenu } from \"./columns/ColumnMenu\";\nimport { elementColumnMenuSlots } from \"./columns/elementColumnMenuControls\";\n\nexport function columnMenu(options?: ColumnMenuOptions): StaticTableFeature {\n return extendFeature(bindingColumnMenu(options), [\n slotRender(COLUMN_MENU, (props) => h(ColumnMenu<never>, { ...props })),\n slotRender(COLUMN_HEADER_RENAME, (props) =>\n h(ColumnHeaderRenameChrome, { ...props, slots: elementColumnMenuSlots })\n ),\n ]);\n}\nexport { ColumnMenu } from \"./columns/ColumnMenu\";\nexport type { ColumnMenuSlotProps } from \"@adapttable/vue/adapter\";\n"],"mappings":"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"}
|
package/dist/column-menu.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_column_menu = require("./column-menu-
|
|
2
|
+
const require_column_menu = require("./column-menu-eS7ylKfB.cjs");
|
|
3
3
|
exports.ColumnMenu = require_column_menu.ColumnMenu;
|
|
4
4
|
exports.columnMenu = require_column_menu.columnMenu;
|
package/dist/column-menu.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ColumnMenu, t as columnMenu } from "./column-menu-
|
|
1
|
+
import { n as ColumnMenu, t as columnMenu } from "./column-menu-DaOcmA45.js";
|
|
2
2
|
export { ColumnMenu, columnMenu };
|
package/dist/command-palette.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_elementRemainingControls = require("./elementRemainingControls-
|
|
2
|
+
const require_elementRemainingControls = require("./elementRemainingControls-CvGiKtfz.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
|
|
5
5
|
let _adapttable_vue_features = require("@adapttable/vue/features");
|
package/dist/command-palette.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as elementPaletteSlots, t as elementActionButton } from "./elementRemainingControls-
|
|
1
|
+
import { r as elementPaletteSlots, t as elementActionButton } from "./elementRemainingControls-J7eDWROX.js";
|
|
2
2
|
import { defineComponent, h } from "vue";
|
|
3
3
|
import { COMMAND_PALETTE_CONTROL, CommandPaletteChrome, extendFeature, slotRender } from "@adapttable/vue/adapter";
|
|
4
4
|
import { commandPalette as commandPalette$1 } from "@adapttable/vue/features";
|
package/dist/context-menu.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_elementRemainingControls = require("./elementRemainingControls-
|
|
2
|
+
const require_elementRemainingControls = require("./elementRemainingControls-CvGiKtfz.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
|
|
5
5
|
let _adapttable_vue_features = require("@adapttable/vue/features");
|
package/dist/context-menu.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as elementContextMenuSlots } from "./elementRemainingControls-
|
|
1
|
+
import { n as elementContextMenuSlots } from "./elementRemainingControls-J7eDWROX.js";
|
|
2
2
|
import { defineComponent, h } from "vue";
|
|
3
3
|
import { CONTEXT_MENU_CONTROL, ContextMenuChrome, extendFeature, slotRender } from "@adapttable/vue/adapter";
|
|
4
4
|
import { contextMenu as contextMenu$1 } from "@adapttable/vue/features";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_button = require("./button-
|
|
1
|
+
const require_button = require("./button-BuXbfKKx.cjs");
|
|
2
2
|
const require_ElementCheckbox = require("./ElementCheckbox-BXSH2jHY.cjs");
|
|
3
3
|
const require_ElementInput = require("./ElementInput-BF97xXSC.cjs");
|
|
4
4
|
const require_ElementSelect = require("./ElementSelect-1UwtGCCr.cjs");
|
|
@@ -449,4 +449,4 @@ Object.defineProperty(exports, "undoRedoButtons", {
|
|
|
449
449
|
}
|
|
450
450
|
});
|
|
451
451
|
|
|
452
|
-
//# sourceMappingURL=editing-
|
|
452
|
+
//# sourceMappingURL=editing-Bal8jOJT.cjs.map
|