@bitrix24/b24ui-nuxt 2.1.7 → 2.1.9
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/meta.d.mts +39966 -51971
- package/dist/meta.mjs +39966 -51971
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/Accordion.d.vue.ts +3 -3
- package/dist/runtime/components/Accordion.vue.d.ts +3 -3
- package/dist/runtime/components/Advice.d.vue.ts +1 -4
- package/dist/runtime/components/Advice.vue.d.ts +1 -4
- package/dist/runtime/components/Alert.d.vue.ts +3 -6
- package/dist/runtime/components/Alert.vue.d.ts +3 -6
- package/dist/runtime/components/App.d.vue.ts +3 -1
- package/dist/runtime/components/App.vue.d.ts +3 -1
- package/dist/runtime/components/Badge.d.vue.ts +1 -4
- package/dist/runtime/components/Badge.vue.d.ts +1 -4
- package/dist/runtime/components/Banner.d.vue.ts +2 -2
- package/dist/runtime/components/Banner.vue.d.ts +2 -2
- package/dist/runtime/components/Breadcrumb.d.vue.ts +3 -1
- package/dist/runtime/components/Breadcrumb.vue.d.ts +3 -1
- package/dist/runtime/components/Button.d.vue.ts +1 -4
- package/dist/runtime/components/Button.vue.d.ts +1 -4
- package/dist/runtime/components/Calendar.d.vue.ts +8 -11
- package/dist/runtime/components/Calendar.vue.d.ts +8 -11
- package/dist/runtime/components/ChatMessage.d.vue.ts +1 -3
- package/dist/runtime/components/ChatMessage.vue.d.ts +1 -3
- package/dist/runtime/components/ChatMessages.d.vue.ts +3 -8
- package/dist/runtime/components/ChatMessages.vue.d.ts +3 -8
- package/dist/runtime/components/ChatPrompt.d.vue.ts +2 -7
- package/dist/runtime/components/ChatPrompt.vue.d.ts +2 -7
- package/dist/runtime/components/ChatPromptSubmit.d.vue.ts +3 -9
- package/dist/runtime/components/ChatPromptSubmit.vue +1 -20
- package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +3 -9
- package/dist/runtime/components/CheckboxGroup.d.vue.ts +3 -4
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +3 -4
- package/dist/runtime/components/Chip.d.vue.ts +1 -6
- package/dist/runtime/components/Chip.vue.d.ts +1 -6
- package/dist/runtime/components/Collapsible.d.vue.ts +1 -3
- package/dist/runtime/components/Collapsible.vue.d.ts +1 -3
- package/dist/runtime/components/ColorPicker.d.vue.ts +1 -5
- package/dist/runtime/components/ColorPicker.vue.d.ts +1 -5
- package/dist/runtime/components/CommandPalette.d.vue.ts +9 -14
- package/dist/runtime/components/CommandPalette.vue.d.ts +9 -14
- package/dist/runtime/components/ContextMenu.d.vue.ts +3 -3
- package/dist/runtime/components/ContextMenu.vue.d.ts +3 -3
- package/dist/runtime/components/ContextMenuContent.d.vue.ts +3 -7
- package/dist/runtime/components/ContextMenuContent.vue.d.ts +3 -7
- package/dist/runtime/components/Countdown.d.vue.ts +1 -10
- package/dist/runtime/components/Countdown.vue.d.ts +1 -10
- package/dist/runtime/components/DashboardGroup.d.vue.ts +1 -4
- package/dist/runtime/components/DashboardGroup.vue.d.ts +1 -4
- package/dist/runtime/components/DashboardSearch.d.vue.ts +4 -9
- package/dist/runtime/components/DashboardSearch.vue.d.ts +4 -9
- package/dist/runtime/components/DashboardSearchButton.d.vue.ts +3 -8
- package/dist/runtime/components/DashboardSearchButton.vue +1 -20
- package/dist/runtime/components/DashboardSearchButton.vue.d.ts +3 -8
- package/dist/runtime/components/DescriptionList.d.vue.ts +3 -1
- package/dist/runtime/components/DescriptionList.vue.d.ts +3 -1
- package/dist/runtime/components/DropdownMenu.d.vue.ts +3 -3
- package/dist/runtime/components/DropdownMenu.vue.d.ts +3 -3
- package/dist/runtime/components/DropdownMenuContent.d.vue.ts +3 -7
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +3 -7
- package/dist/runtime/components/Empty.d.vue.ts +1 -3
- package/dist/runtime/components/Empty.vue.d.ts +1 -3
- package/dist/runtime/components/Error.d.vue.ts +2 -5
- package/dist/runtime/components/Error.vue.d.ts +2 -5
- package/dist/runtime/components/FieldGroup.d.vue.ts +1 -4
- package/dist/runtime/components/FieldGroup.vue.d.ts +1 -4
- package/dist/runtime/components/FileUpload.d.vue.ts +5 -6
- package/dist/runtime/components/FileUpload.vue.d.ts +5 -6
- package/dist/runtime/components/Form.d.vue.ts +3 -4
- package/dist/runtime/components/Form.vue.d.ts +3 -4
- package/dist/runtime/components/Input.d.vue.ts +5 -7
- package/dist/runtime/components/Input.vue.d.ts +5 -7
- package/dist/runtime/components/InputDate.d.vue.ts +4 -8
- package/dist/runtime/components/InputDate.vue.d.ts +4 -8
- package/dist/runtime/components/InputMenu.d.vue.ts +7 -15
- package/dist/runtime/components/InputMenu.vue.d.ts +7 -15
- package/dist/runtime/components/InputNumber.d.vue.ts +7 -9
- package/dist/runtime/components/InputNumber.vue.d.ts +7 -9
- package/dist/runtime/components/InputTags.d.vue.ts +4 -10
- package/dist/runtime/components/InputTags.vue.d.ts +4 -10
- package/dist/runtime/components/InputTime.d.vue.ts +3 -5
- package/dist/runtime/components/InputTime.vue.d.ts +3 -5
- package/dist/runtime/components/Kbd.d.vue.ts +1 -4
- package/dist/runtime/components/Kbd.vue.d.ts +1 -4
- package/dist/runtime/components/Link.d.vue.ts +6 -7
- package/dist/runtime/components/Link.vue.d.ts +6 -7
- package/dist/runtime/components/LinkBase.d.vue.ts +1 -4
- package/dist/runtime/components/LinkBase.vue.d.ts +1 -4
- package/dist/runtime/components/Modal.d.vue.ts +3 -12
- package/dist/runtime/components/Modal.vue.d.ts +3 -12
- package/dist/runtime/components/Navbar.d.vue.ts +1 -3
- package/dist/runtime/components/Navbar.vue.d.ts +1 -3
- package/dist/runtime/components/NavbarDivider.d.vue.ts +1 -3
- package/dist/runtime/components/NavbarDivider.vue.d.ts +1 -3
- package/dist/runtime/components/NavbarSection.d.vue.ts +1 -3
- package/dist/runtime/components/NavbarSection.vue.d.ts +1 -3
- package/dist/runtime/components/NavbarSpacer.d.vue.ts +1 -3
- package/dist/runtime/components/NavbarSpacer.vue.d.ts +1 -3
- package/dist/runtime/components/NavigationMenu.d.vue.ts +3 -3
- package/dist/runtime/components/NavigationMenu.vue.d.ts +3 -3
- package/dist/runtime/components/PageCard.d.vue.ts +1 -3
- package/dist/runtime/components/PageCard.vue.d.ts +1 -3
- package/dist/runtime/components/PageLinks.d.vue.ts +3 -1
- package/dist/runtime/components/PageLinks.vue.d.ts +3 -1
- package/dist/runtime/components/PageList.d.vue.ts +1 -3
- package/dist/runtime/components/PageList.vue.d.ts +1 -3
- package/dist/runtime/components/Pagination.d.vue.ts +1 -9
- package/dist/runtime/components/Pagination.vue.d.ts +1 -9
- package/dist/runtime/components/PinInput.d.vue.ts +4 -7
- package/dist/runtime/components/PinInput.vue.d.ts +4 -7
- package/dist/runtime/components/Popover.d.vue.ts +3 -4
- package/dist/runtime/components/Popover.vue.d.ts +3 -4
- package/dist/runtime/components/Progress.d.vue.ts +1 -5
- package/dist/runtime/components/Progress.vue.d.ts +1 -5
- package/dist/runtime/components/RadioGroup.d.vue.ts +3 -4
- package/dist/runtime/components/RadioGroup.vue.d.ts +3 -4
- package/dist/runtime/components/Range.d.vue.ts +3 -4
- package/dist/runtime/components/Range.vue.d.ts +3 -4
- package/dist/runtime/components/Select.d.vue.ts +4 -8
- package/dist/runtime/components/Select.vue.d.ts +4 -8
- package/dist/runtime/components/SelectMenu.d.vue.ts +7 -14
- package/dist/runtime/components/SelectMenu.vue.d.ts +7 -14
- package/dist/runtime/components/Separator.d.vue.ts +1 -6
- package/dist/runtime/components/Separator.vue.d.ts +1 -6
- package/dist/runtime/components/Sidebar.d.vue.ts +1 -3
- package/dist/runtime/components/Sidebar.vue.d.ts +1 -3
- package/dist/runtime/components/SidebarBody.d.vue.ts +1 -4
- package/dist/runtime/components/SidebarBody.vue.d.ts +1 -4
- package/dist/runtime/components/SidebarFooter.d.vue.ts +1 -3
- package/dist/runtime/components/SidebarFooter.vue.d.ts +1 -3
- package/dist/runtime/components/SidebarHeader.d.vue.ts +1 -3
- package/dist/runtime/components/SidebarHeader.vue.d.ts +1 -3
- package/dist/runtime/components/SidebarHeading.d.vue.ts +1 -3
- package/dist/runtime/components/SidebarHeading.vue.d.ts +1 -3
- package/dist/runtime/components/SidebarLayout.d.vue.ts +1 -6
- package/dist/runtime/components/SidebarLayout.vue.d.ts +1 -6
- package/dist/runtime/components/SidebarSection.d.vue.ts +1 -3
- package/dist/runtime/components/SidebarSection.vue.d.ts +1 -3
- package/dist/runtime/components/SidebarSpacer.d.vue.ts +1 -3
- package/dist/runtime/components/SidebarSpacer.vue.d.ts +1 -3
- package/dist/runtime/components/Skeleton.d.vue.ts +1 -3
- package/dist/runtime/components/Skeleton.vue.d.ts +1 -3
- package/dist/runtime/components/Slideover.d.vue.ts +3 -13
- package/dist/runtime/components/Slideover.vue.d.ts +3 -13
- package/dist/runtime/components/Stepper.d.vue.ts +3 -5
- package/dist/runtime/components/Stepper.vue.d.ts +3 -5
- package/dist/runtime/components/Table.d.vue.ts +4 -16
- package/dist/runtime/components/Table.vue +55 -33
- package/dist/runtime/components/Table.vue.d.ts +4 -16
- package/dist/runtime/components/TableWrapper.d.vue.ts +1 -4
- package/dist/runtime/components/TableWrapper.vue.d.ts +1 -4
- package/dist/runtime/components/Tabs.d.vue.ts +3 -3
- package/dist/runtime/components/Tabs.vue.d.ts +3 -3
- package/dist/runtime/components/Textarea.d.vue.ts +5 -7
- package/dist/runtime/components/Textarea.vue.d.ts +5 -7
- package/dist/runtime/components/Timeline.d.vue.ts +3 -3
- package/dist/runtime/components/Timeline.vue.d.ts +3 -3
- package/dist/runtime/components/Toast.d.vue.ts +3 -7
- package/dist/runtime/components/Toast.vue.d.ts +3 -7
- package/dist/runtime/components/Toaster.d.vue.ts +1 -8
- package/dist/runtime/components/Toaster.vue.d.ts +1 -8
- package/dist/runtime/components/Tooltip.d.vue.ts +1 -4
- package/dist/runtime/components/Tooltip.vue.d.ts +1 -4
- package/dist/runtime/components/User.d.vue.ts +1 -3
- package/dist/runtime/components/User.vue.d.ts +1 -3
- package/dist/runtime/components/color-mode/ColorModeButton.d.vue.ts +3 -5
- package/dist/runtime/components/color-mode/ColorModeButton.vue +3 -22
- package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +3 -5
- package/dist/runtime/components/color-mode/ColorModeSelect.d.vue.ts +1 -3
- package/dist/runtime/components/color-mode/ColorModeSelect.vue.d.ts +1 -3
- package/dist/runtime/components/content/ContentSearch.d.vue.ts +6 -6
- package/dist/runtime/components/content/ContentSearch.vue.d.ts +6 -6
- package/dist/runtime/components/content/ContentSearchButton.d.vue.ts +3 -8
- package/dist/runtime/components/content/ContentSearchButton.vue +1 -20
- package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +3 -8
- package/dist/runtime/components/content/ContentSurround.d.vue.ts +3 -1
- package/dist/runtime/components/content/ContentSurround.vue.d.ts +3 -1
- package/dist/runtime/components/content/ContentToc.d.vue.ts +3 -4
- package/dist/runtime/components/content/ContentToc.vue.d.ts +3 -4
- package/dist/runtime/components/locale/LocaleSelect.d.vue.ts +1 -5
- package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +1 -5
- package/dist/runtime/components/prose/Accordion.d.vue.ts +1 -3
- package/dist/runtime/components/prose/Accordion.vue.d.ts +1 -3
- package/dist/runtime/components/prose/CodeGroup.d.vue.ts +1 -3
- package/dist/runtime/components/prose/CodeGroup.vue.d.ts +1 -3
- package/dist/runtime/components/prose/H1.d.vue.ts +1 -3
- package/dist/runtime/components/prose/H1.vue.d.ts +1 -3
- package/dist/runtime/components/prose/H2.d.vue.ts +1 -3
- package/dist/runtime/components/prose/H2.vue.d.ts +1 -3
- package/dist/runtime/components/prose/H3.d.vue.ts +1 -3
- package/dist/runtime/components/prose/H3.vue.d.ts +1 -3
- package/dist/runtime/components/prose/H4.d.vue.ts +1 -3
- package/dist/runtime/components/prose/H4.vue.d.ts +1 -3
- package/dist/runtime/components/prose/H5.d.vue.ts +1 -3
- package/dist/runtime/components/prose/H5.vue.d.ts +1 -3
- package/dist/runtime/components/prose/H6.d.vue.ts +1 -3
- package/dist/runtime/components/prose/H6.vue.d.ts +1 -3
- package/dist/runtime/components/prose/Img.d.vue.ts +1 -3
- package/dist/runtime/components/prose/Img.vue.d.ts +1 -3
- package/dist/runtime/components/prose/P.d.vue.ts +1 -4
- package/dist/runtime/components/prose/P.vue.d.ts +1 -4
- package/dist/runtime/components/prose/Table.d.vue.ts +1 -7
- package/dist/runtime/components/prose/Table.vue.d.ts +1 -7
- package/dist/runtime/components/prose/Tabs.d.vue.ts +1 -3
- package/dist/runtime/components/prose/Tabs.vue.d.ts +1 -3
- package/dist/runtime/components/prose/callout/Caution.d.vue.ts +2 -2
- package/dist/runtime/components/prose/callout/Caution.vue.d.ts +2 -2
- package/dist/runtime/components/prose/callout/Note.d.vue.ts +2 -2
- package/dist/runtime/components/prose/callout/Note.vue.d.ts +2 -2
- package/dist/runtime/components/prose/callout/Tip.d.vue.ts +2 -2
- package/dist/runtime/components/prose/callout/Tip.vue.d.ts +2 -2
- package/dist/runtime/components/prose/callout/Warning.d.vue.ts +2 -2
- package/dist/runtime/components/prose/callout/Warning.vue.d.ts +2 -2
- package/dist/runtime/inertia/components/Link.d.vue.ts +1 -7
- package/dist/runtime/inertia/components/Link.vue.d.ts +1 -7
- package/dist/runtime/inertia/components/LinkBase.d.vue.ts +1 -4
- package/dist/runtime/inertia/components/LinkBase.vue.d.ts +1 -4
- package/dist/runtime/utils/content.d.ts +2 -2
- package/dist/runtime/vue/components/Link.d.vue.ts +1 -7
- package/dist/runtime/vue/components/Link.vue.d.ts +1 -7
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.d.vue.ts +1 -3
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue.d.ts +1 -3
- package/dist/shared/{b24ui-nuxt.CIiXiDdZ.mjs → b24ui-nuxt.auTgHcA7.mjs} +18 -18
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +9 -8
|
@@ -4,12 +4,12 @@ import theme from "#build/b24ui/table";
|
|
|
4
4
|
|
|
5
5
|
<script setup>
|
|
6
6
|
import { ref, computed, useTemplateRef, watch, toRef } from "vue";
|
|
7
|
-
import { Primitive } from "reka-ui";
|
|
7
|
+
import { Primitive, useForwardProps } from "reka-ui";
|
|
8
8
|
import { upperFirst } from "scule";
|
|
9
9
|
import { defu } from "defu";
|
|
10
10
|
import { FlexRender, getCoreRowModel, getFilteredRowModel, getSortedRowModel, getExpandedRowModel, useVueTable } from "@tanstack/vue-table";
|
|
11
11
|
import { useVirtualizer } from "@tanstack/vue-virtual";
|
|
12
|
-
import {
|
|
12
|
+
import { reactivePick, createReusableTemplate } from "@vueuse/core";
|
|
13
13
|
import { useAppConfig } from "#imports";
|
|
14
14
|
import { useLocale } from "../composables/useLocale";
|
|
15
15
|
import { tv } from "../utils/tv";
|
|
@@ -121,56 +121,59 @@ const hasFooter = computed(() => {
|
|
|
121
121
|
}
|
|
122
122
|
return hasFooterRecursive(columns.value);
|
|
123
123
|
});
|
|
124
|
-
const globalFilterState = defineModel("globalFilter", { type: String
|
|
125
|
-
const columnFiltersState = defineModel("columnFilters", { type: Array
|
|
126
|
-
const columnOrderState = defineModel("columnOrder", { type: Array
|
|
127
|
-
const columnVisibilityState = defineModel("columnVisibility", { type: Object
|
|
128
|
-
const columnPinningState = defineModel("columnPinning", { type: Object
|
|
129
|
-
const columnSizingState = defineModel("columnSizing", { type: Object
|
|
130
|
-
const columnSizingInfoState = defineModel("columnSizingInfo", { type: Object
|
|
131
|
-
const rowSelectionState = defineModel("rowSelection", { type: Object
|
|
132
|
-
const rowPinningState = defineModel("rowPinning", { type: Object
|
|
133
|
-
const sortingState = defineModel("sorting", { type: Array
|
|
134
|
-
const groupingState = defineModel("grouping", { type: Array
|
|
135
|
-
const expandedState = defineModel("expanded", { type: [Boolean, Object]
|
|
136
|
-
const paginationState = defineModel("pagination", { type: Object
|
|
124
|
+
const globalFilterState = defineModel("globalFilter", { type: String });
|
|
125
|
+
const columnFiltersState = defineModel("columnFilters", { type: Array });
|
|
126
|
+
const columnOrderState = defineModel("columnOrder", { type: Array });
|
|
127
|
+
const columnVisibilityState = defineModel("columnVisibility", { type: Object });
|
|
128
|
+
const columnPinningState = defineModel("columnPinning", { type: Object });
|
|
129
|
+
const columnSizingState = defineModel("columnSizing", { type: Object });
|
|
130
|
+
const columnSizingInfoState = defineModel("columnSizingInfo", { type: Object });
|
|
131
|
+
const rowSelectionState = defineModel("rowSelection", { type: Object });
|
|
132
|
+
const rowPinningState = defineModel("rowPinning", { type: Object });
|
|
133
|
+
const sortingState = defineModel("sorting", { type: Array });
|
|
134
|
+
const groupingState = defineModel("grouping", { type: Array });
|
|
135
|
+
const expandedState = defineModel("expanded", { type: [Boolean, Object] });
|
|
136
|
+
const paginationState = defineModel("pagination", { type: Object });
|
|
137
137
|
const rootRef = useTemplateRef("rootRef");
|
|
138
138
|
const tableRef = useTemplateRef("tableRef");
|
|
139
|
+
const tableProps = useForwardProps(reactivePick(props, "_features", "autoResetAll", "debugAll", "debugCells", "debugColumns", "debugHeaders", "debugRows", "debugTable", "defaultColumn", "getRowId", "getSubRows", "initialState", "mergeOptions", "renderFallbackValue"));
|
|
139
140
|
const tableApi = useVueTable({
|
|
140
|
-
...
|
|
141
|
-
data
|
|
141
|
+
...tableProps.value,
|
|
142
|
+
get data() {
|
|
143
|
+
return data.value;
|
|
144
|
+
},
|
|
142
145
|
get columns() {
|
|
143
146
|
return columns.value;
|
|
144
147
|
},
|
|
145
148
|
meta: meta.value,
|
|
146
149
|
getCoreRowModel: getCoreRowModel(),
|
|
147
150
|
...props.globalFilterOptions || {},
|
|
148
|
-
onGlobalFilterChange: (updaterOrValue) => valueUpdater(updaterOrValue, globalFilterState),
|
|
151
|
+
...globalFilterState.value !== void 0 && { onGlobalFilterChange: (updaterOrValue) => valueUpdater(updaterOrValue, globalFilterState) },
|
|
149
152
|
...props.columnFiltersOptions || {},
|
|
150
153
|
getFilteredRowModel: getFilteredRowModel(),
|
|
151
|
-
onColumnFiltersChange: (updaterOrValue) => valueUpdater(updaterOrValue, columnFiltersState),
|
|
152
|
-
onColumnOrderChange: (updaterOrValue) => valueUpdater(updaterOrValue, columnOrderState),
|
|
154
|
+
...columnFiltersState.value !== void 0 && { onColumnFiltersChange: (updaterOrValue) => valueUpdater(updaterOrValue, columnFiltersState) },
|
|
155
|
+
...columnOrderState.value !== void 0 && { onColumnOrderChange: (updaterOrValue) => valueUpdater(updaterOrValue, columnOrderState) },
|
|
153
156
|
...props.visibilityOptions || {},
|
|
154
|
-
onColumnVisibilityChange: (updaterOrValue) => valueUpdater(updaterOrValue, columnVisibilityState),
|
|
157
|
+
...columnVisibilityState.value !== void 0 && { onColumnVisibilityChange: (updaterOrValue) => valueUpdater(updaterOrValue, columnVisibilityState) },
|
|
155
158
|
...props.columnPinningOptions || {},
|
|
156
|
-
onColumnPinningChange: (updaterOrValue) => valueUpdater(updaterOrValue, columnPinningState),
|
|
159
|
+
...columnPinningState.value !== void 0 && { onColumnPinningChange: (updaterOrValue) => valueUpdater(updaterOrValue, columnPinningState) },
|
|
157
160
|
...props.columnSizingOptions || {},
|
|
158
|
-
onColumnSizingChange: (updaterOrValue) => valueUpdater(updaterOrValue, columnSizingState),
|
|
159
|
-
onColumnSizingInfoChange: (updaterOrValue) => valueUpdater(updaterOrValue, columnSizingInfoState),
|
|
161
|
+
...columnSizingState.value !== void 0 && { onColumnSizingChange: (updaterOrValue) => valueUpdater(updaterOrValue, columnSizingState) },
|
|
162
|
+
...columnSizingInfoState.value !== void 0 && { onColumnSizingInfoChange: (updaterOrValue) => valueUpdater(updaterOrValue, columnSizingInfoState) },
|
|
160
163
|
...props.rowSelectionOptions || {},
|
|
161
|
-
onRowSelectionChange: (updaterOrValue) => valueUpdater(updaterOrValue, rowSelectionState),
|
|
164
|
+
...rowSelectionState.value !== void 0 && { onRowSelectionChange: (updaterOrValue) => valueUpdater(updaterOrValue, rowSelectionState) },
|
|
162
165
|
...props.rowPinningOptions || {},
|
|
163
|
-
onRowPinningChange: (updaterOrValue) => valueUpdater(updaterOrValue, rowPinningState),
|
|
166
|
+
...rowPinningState.value !== void 0 && { onRowPinningChange: (updaterOrValue) => valueUpdater(updaterOrValue, rowPinningState) },
|
|
164
167
|
...props.sortingOptions || {},
|
|
165
168
|
getSortedRowModel: getSortedRowModel(),
|
|
166
|
-
onSortingChange: (updaterOrValue) => valueUpdater(updaterOrValue, sortingState),
|
|
169
|
+
...sortingState.value !== void 0 && { onSortingChange: (updaterOrValue) => valueUpdater(updaterOrValue, sortingState) },
|
|
167
170
|
...props.groupingOptions || {},
|
|
168
|
-
onGroupingChange: (updaterOrValue) => valueUpdater(updaterOrValue, groupingState),
|
|
171
|
+
...groupingState.value !== void 0 && { onGroupingChange: (updaterOrValue) => valueUpdater(updaterOrValue, groupingState) },
|
|
169
172
|
...props.expandedOptions || {},
|
|
170
173
|
getExpandedRowModel: getExpandedRowModel(),
|
|
171
|
-
onExpandedChange: (updaterOrValue) => valueUpdater(updaterOrValue, expandedState),
|
|
174
|
+
...expandedState.value !== void 0 && { onExpandedChange: (updaterOrValue) => valueUpdater(updaterOrValue, expandedState) },
|
|
172
175
|
...props.paginationOptions || {},
|
|
173
|
-
onPaginationChange: (updaterOrValue) => valueUpdater(updaterOrValue, paginationState),
|
|
176
|
+
...paginationState.value !== void 0 && { onPaginationChange: (updaterOrValue) => valueUpdater(updaterOrValue, paginationState) },
|
|
174
177
|
...props.facetedOptions || {},
|
|
175
178
|
state: {
|
|
176
179
|
get globalFilter() {
|
|
@@ -278,6 +281,16 @@ function resolveValue(prop, arg) {
|
|
|
278
281
|
}
|
|
279
282
|
return prop;
|
|
280
283
|
}
|
|
284
|
+
function getColumnStyles(column) {
|
|
285
|
+
const styles = {};
|
|
286
|
+
const pinned = column.getIsPinned();
|
|
287
|
+
if (pinned === "left") {
|
|
288
|
+
styles.left = `${column.getStart("left")}px`;
|
|
289
|
+
} else if (pinned === "right") {
|
|
290
|
+
styles.right = `${column.getAfter("right")}px`;
|
|
291
|
+
}
|
|
292
|
+
return styles;
|
|
293
|
+
}
|
|
281
294
|
watch(() => props.data, () => {
|
|
282
295
|
data.value = props.data ? [...props.data] : [];
|
|
283
296
|
}, props.watchOptions);
|
|
@@ -325,7 +338,10 @@ defineExpose({
|
|
|
325
338
|
],
|
|
326
339
|
pinned: !!cell.column.getIsPinned()
|
|
327
340
|
})"
|
|
328
|
-
:style="
|
|
341
|
+
:style="[
|
|
342
|
+
getColumnStyles(cell.column),
|
|
343
|
+
resolveValue(cell.column.columnDef.meta?.style?.td, cell)
|
|
344
|
+
]"
|
|
329
345
|
>
|
|
330
346
|
<slot :name="`${cell.column.id}-cell`" v-bind="cell.getContext()">
|
|
331
347
|
<FlexRender :render="cell.column.columnDef.cell" :props="cell.getContext()" />
|
|
@@ -365,7 +381,10 @@ defineExpose({
|
|
|
365
381
|
],
|
|
366
382
|
pinned: !!header.column.getIsPinned()
|
|
367
383
|
})"
|
|
368
|
-
:style="
|
|
384
|
+
:style="[
|
|
385
|
+
getColumnStyles(header.column),
|
|
386
|
+
resolveValue(header.column.columnDef.meta?.style?.th, header)
|
|
387
|
+
]"
|
|
369
388
|
>
|
|
370
389
|
<slot :name="`${header.id}-header`" v-bind="header.getContext()">
|
|
371
390
|
<FlexRender v-if="!header.isPlaceholder" :render="header.column.columnDef.header" :props="header.getContext()" />
|
|
@@ -439,7 +458,10 @@ defineExpose({
|
|
|
439
458
|
],
|
|
440
459
|
pinned: !!header.column.getIsPinned()
|
|
441
460
|
})"
|
|
442
|
-
:style="
|
|
461
|
+
:style="[
|
|
462
|
+
getColumnStyles(header.column),
|
|
463
|
+
resolveValue(header.column.columnDef.meta?.style?.th, header)
|
|
464
|
+
]"
|
|
443
465
|
>
|
|
444
466
|
<slot :name="`${header.id}-footer`" v-bind="header.getContext()">
|
|
445
467
|
<FlexRender v-if="!header.isPlaceholder" :render="header.column.columnDef.footer" :props="header.getContext()" />
|
|
@@ -190,21 +190,9 @@ declare const __VLS_export: <T extends TableData>(__VLS_props: NonNullable<Await
|
|
|
190
190
|
grouping?: GroupingState;
|
|
191
191
|
expanded?: ExpandedState;
|
|
192
192
|
pagination?: PaginationState;
|
|
193
|
-
}) & {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
"onUpdate:columnOrder"?: ((value: ColumnOrderState) => any) | undefined;
|
|
197
|
-
"onUpdate:columnVisibility"?: ((value: VisibilityState) => any) | undefined;
|
|
198
|
-
"onUpdate:columnPinning"?: ((value: ColumnPinningState) => any) | undefined;
|
|
199
|
-
"onUpdate:columnSizing"?: ((value: ColumnSizingState) => any) | undefined;
|
|
200
|
-
"onUpdate:columnSizingInfo"?: ((value: ColumnSizingInfoState) => any) | undefined;
|
|
201
|
-
"onUpdate:rowSelection"?: ((value: RowSelectionState) => any) | undefined;
|
|
202
|
-
"onUpdate:rowPinning"?: ((value: RowPinningState) => any) | undefined;
|
|
203
|
-
"onUpdate:sorting"?: ((value: SortingState) => any) | undefined;
|
|
204
|
-
"onUpdate:grouping"?: ((value: GroupingState) => any) | undefined;
|
|
205
|
-
"onUpdate:expanded"?: ((value: ExpandedState) => any) | undefined;
|
|
206
|
-
"onUpdate:pagination"?: ((value: PaginationState) => any) | undefined;
|
|
207
|
-
}> & import("vue").PublicProps;
|
|
193
|
+
}) & __VLS_EmitsToProps<__VLS_NormalizeEmits<((evt: "update:globalFilter", value: string | undefined) => void) & ((evt: "update:columnFilters", value: ColumnFiltersState | undefined) => void) & ((evt: "update:columnOrder", value: ColumnOrderState | undefined) => void) & ((evt: "update:columnVisibility", value: VisibilityState | undefined) => void) & ((evt: "update:columnPinning", value: ColumnPinningState | undefined) => void) & ((evt: "update:columnSizing", value: ColumnSizingState | undefined) => void) & ((evt: "update:columnSizingInfo", value: ColumnSizingInfoState | undefined) => void) & ((evt: "update:rowSelection", value: RowSelectionState | undefined) => void) & ((evt: "update:rowPinning", value: RowPinningState | undefined) => void) & ((evt: "update:sorting", value: SortingState | undefined) => void) & ((evt: "update:grouping", value: GroupingState | undefined) => void) & ((evt: "update:expanded", value: ExpandedState | undefined) => void) & ((evt: "update:pagination", value: PaginationState | undefined) => void)>>> & import("vue").PublicProps & (typeof globalThis extends {
|
|
194
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
195
|
+
} ? P : {});
|
|
208
196
|
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
209
197
|
readonly $el: HTMLElement;
|
|
210
198
|
tableRef: Readonly<import("vue").ShallowRef<HTMLTableElement | null>>;
|
|
@@ -212,7 +200,7 @@ declare const __VLS_export: <T extends TableData>(__VLS_props: NonNullable<Await
|
|
|
212
200
|
}>) => void;
|
|
213
201
|
attrs: any;
|
|
214
202
|
slots: TableSlots<T>;
|
|
215
|
-
emit: ((evt: "update:globalFilter", value: string) => void) & ((evt: "update:columnFilters", value: ColumnFiltersState) => void) & ((evt: "update:columnOrder", value: ColumnOrderState) => void) & ((evt: "update:columnVisibility", value: VisibilityState) => void) & ((evt: "update:columnPinning", value: ColumnPinningState) => void) & ((evt: "update:columnSizing", value: ColumnSizingState) => void) & ((evt: "update:columnSizingInfo", value: ColumnSizingInfoState) => void) & ((evt: "update:rowSelection", value: RowSelectionState) => void) & ((evt: "update:rowPinning", value: RowPinningState) => void) & ((evt: "update:sorting", value: SortingState) => void) & ((evt: "update:grouping", value: GroupingState) => void) & ((evt: "update:expanded", value: ExpandedState) => void) & ((evt: "update:pagination", value: PaginationState) => void);
|
|
203
|
+
emit: ((evt: "update:globalFilter", value: string | undefined) => void) & ((evt: "update:columnFilters", value: ColumnFiltersState | undefined) => void) & ((evt: "update:columnOrder", value: ColumnOrderState | undefined) => void) & ((evt: "update:columnVisibility", value: VisibilityState | undefined) => void) & ((evt: "update:columnPinning", value: ColumnPinningState | undefined) => void) & ((evt: "update:columnSizing", value: ColumnSizingState | undefined) => void) & ((evt: "update:columnSizingInfo", value: ColumnSizingInfoState | undefined) => void) & ((evt: "update:rowSelection", value: RowSelectionState | undefined) => void) & ((evt: "update:rowPinning", value: RowPinningState | undefined) => void) & ((evt: "update:sorting", value: SortingState | undefined) => void) & ((evt: "update:grouping", value: GroupingState | undefined) => void) & ((evt: "update:expanded", value: ExpandedState | undefined) => void) & ((evt: "update:pagination", value: PaginationState | undefined) => void);
|
|
216
204
|
}>) => import("vue").VNode & {
|
|
217
205
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
218
206
|
};
|
|
@@ -46,10 +46,7 @@ export interface TableWrapperProps {
|
|
|
46
46
|
export interface TableWrapperSlots {
|
|
47
47
|
default(props?: {}): any;
|
|
48
48
|
}
|
|
49
|
-
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<TableWrapperProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TableWrapperProps> & Readonly<{}>, {
|
|
50
|
-
as: any;
|
|
51
|
-
scrollbarThin: boolean;
|
|
52
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
49
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<TableWrapperProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TableWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
53
50
|
default?: (props: {}) => any;
|
|
54
51
|
}>;
|
|
55
52
|
declare const _default: typeof __VLS_export;
|
|
@@ -46,10 +46,7 @@ export interface TableWrapperProps {
|
|
|
46
46
|
export interface TableWrapperSlots {
|
|
47
47
|
default(props?: {}): any;
|
|
48
48
|
}
|
|
49
|
-
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<TableWrapperProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TableWrapperProps> & Readonly<{}>, {
|
|
50
|
-
as: any;
|
|
51
|
-
scrollbarThin: boolean;
|
|
52
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
49
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<TableWrapperProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TableWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
53
50
|
default?: (props: {}) => any;
|
|
54
51
|
}>;
|
|
55
52
|
declare const _default: typeof __VLS_export;
|
|
@@ -82,9 +82,9 @@ export type TabsSlots<T extends TabsItem = TabsItem> = {
|
|
|
82
82
|
b24ui: Tabs['b24ui'];
|
|
83
83
|
}>;
|
|
84
84
|
declare const __VLS_export: <T extends TabsItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
85
|
-
props: __VLS_PrettifyLocal<TabsProps<T> & {
|
|
86
|
-
|
|
87
|
-
}
|
|
85
|
+
props: __VLS_PrettifyLocal<TabsProps<T> & __VLS_EmitsToProps<__VLS_NormalizeEmits<(evt: "update:modelValue", payload: string | number) => void>>> & import("vue").PublicProps & (typeof globalThis extends {
|
|
86
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
87
|
+
} ? P : {});
|
|
88
88
|
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
89
89
|
triggersRef: import("vue").Ref<ComponentPublicInstance[], ComponentPublicInstance[]>;
|
|
90
90
|
}>) => void;
|
|
@@ -82,9 +82,9 @@ export type TabsSlots<T extends TabsItem = TabsItem> = {
|
|
|
82
82
|
b24ui: Tabs['b24ui'];
|
|
83
83
|
}>;
|
|
84
84
|
declare const __VLS_export: <T extends TabsItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
85
|
-
props: __VLS_PrettifyLocal<TabsProps<T> & {
|
|
86
|
-
|
|
87
|
-
}
|
|
85
|
+
props: __VLS_PrettifyLocal<TabsProps<T> & __VLS_EmitsToProps<__VLS_NormalizeEmits<(evt: "update:modelValue", payload: string | number) => void>>> & import("vue").PublicProps & (typeof globalThis extends {
|
|
86
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
87
|
+
} ? P : {});
|
|
88
88
|
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
89
89
|
triggersRef: import("vue").Ref<ComponentPublicInstance[], ComponentPublicInstance[]>;
|
|
90
90
|
}>) => void;
|
|
@@ -82,17 +82,15 @@ export interface TextareaSlots {
|
|
|
82
82
|
}): any;
|
|
83
83
|
}
|
|
84
84
|
declare const __VLS_export: <T extends TextareaValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
85
|
-
props: __VLS_PrettifyLocal<TextareaProps<T> & {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
"onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
89
|
-
}> & import("vue").PublicProps;
|
|
85
|
+
props: __VLS_PrettifyLocal<TextareaProps<T> & __VLS_EmitsToProps<__VLS_NormalizeEmits<((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void)>>> & import("vue").PublicProps & (typeof globalThis extends {
|
|
86
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
87
|
+
} ? P : {});
|
|
90
88
|
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
91
|
-
textareaRef: Readonly<import("vue").ShallowRef<
|
|
89
|
+
textareaRef: Readonly<import("vue").ShallowRef<any>>;
|
|
92
90
|
}>) => void;
|
|
93
91
|
attrs: any;
|
|
94
92
|
slots: TextareaSlots;
|
|
95
|
-
emit: ((evt: "
|
|
93
|
+
emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void);
|
|
96
94
|
}>) => import("vue").VNode & {
|
|
97
95
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
98
96
|
};
|
|
@@ -82,17 +82,15 @@ export interface TextareaSlots {
|
|
|
82
82
|
}): any;
|
|
83
83
|
}
|
|
84
84
|
declare const __VLS_export: <T extends TextareaValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
85
|
-
props: __VLS_PrettifyLocal<TextareaProps<T> & {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
"onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
89
|
-
}> & import("vue").PublicProps;
|
|
85
|
+
props: __VLS_PrettifyLocal<TextareaProps<T> & __VLS_EmitsToProps<__VLS_NormalizeEmits<((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void)>>> & import("vue").PublicProps & (typeof globalThis extends {
|
|
86
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
87
|
+
} ? P : {});
|
|
90
88
|
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
91
|
-
textareaRef: Readonly<import("vue").ShallowRef<
|
|
89
|
+
textareaRef: Readonly<import("vue").ShallowRef<any>>;
|
|
92
90
|
}>) => void;
|
|
93
91
|
attrs: any;
|
|
94
92
|
slots: TextareaSlots;
|
|
95
|
-
emit: ((evt: "
|
|
93
|
+
emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void);
|
|
96
94
|
}>) => import("vue").VNode & {
|
|
97
95
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
98
96
|
};
|
|
@@ -55,9 +55,9 @@ export type TimelineSlots<T extends TimelineItem = TimelineItem> = {
|
|
|
55
55
|
declare const __VLS_export: <T extends TimelineItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
56
56
|
props: __VLS_PrettifyLocal<(TimelineProps<T> & {
|
|
57
57
|
modelValue?: string | number;
|
|
58
|
-
}) & {
|
|
59
|
-
|
|
60
|
-
}
|
|
58
|
+
}) & __VLS_EmitsToProps<__VLS_NormalizeEmits<(evt: "update:modelValue", value: string | number | undefined) => void>>> & import("vue").PublicProps & (typeof globalThis extends {
|
|
59
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
60
|
+
} ? P : {});
|
|
61
61
|
expose: (exposed: {}) => void;
|
|
62
62
|
attrs: any;
|
|
63
63
|
slots: TimelineSlots<T>;
|
|
@@ -55,9 +55,9 @@ export type TimelineSlots<T extends TimelineItem = TimelineItem> = {
|
|
|
55
55
|
declare const __VLS_export: <T extends TimelineItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
56
56
|
props: __VLS_PrettifyLocal<(TimelineProps<T> & {
|
|
57
57
|
modelValue?: string | number;
|
|
58
|
-
}) & {
|
|
59
|
-
|
|
60
|
-
}
|
|
58
|
+
}) & __VLS_EmitsToProps<__VLS_NormalizeEmits<(evt: "update:modelValue", value: string | number | undefined) => void>>> & import("vue").PublicProps & (typeof globalThis extends {
|
|
59
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
60
|
+
} ? P : {});
|
|
61
61
|
expose: (exposed: {}) => void;
|
|
62
62
|
attrs: any;
|
|
63
63
|
slots: TimelineSlots<T>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ToastRootProps, ToastRootEmits } from 'reka-ui';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/b24ui/toast';
|
|
4
|
-
import type { AvatarProps, ButtonProps, ProgressProps, IconComponent } from '../types';
|
|
4
|
+
import type { AvatarProps, ButtonProps, ProgressProps, IconComponent, LinkPropsKeys } from '../types';
|
|
5
5
|
import type { StringOrVNode } from '../types/utils';
|
|
6
6
|
import type { ComponentConfig } from '../types/tv';
|
|
7
7
|
type Toast = ComponentConfig<typeof theme, AppConfig, 'toast'>;
|
|
@@ -32,7 +32,7 @@ export interface ToastProps extends Pick<ToastRootProps, 'defaultOpen' | 'open'
|
|
|
32
32
|
* `{ size: 'sm', color: 'air-tertiary' }`{lang="ts"}
|
|
33
33
|
* @defaultValue true
|
|
34
34
|
*/
|
|
35
|
-
close?: boolean |
|
|
35
|
+
close?: boolean | Omit<ButtonProps, LinkPropsKeys>;
|
|
36
36
|
/**
|
|
37
37
|
* The icon displayed in the close button.
|
|
38
38
|
* @defaultValue icons.close
|
|
@@ -152,11 +152,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ToastP
|
|
|
152
152
|
y: number;
|
|
153
153
|
};
|
|
154
154
|
}>, "currentTarget">) => any) | undefined;
|
|
155
|
-
}>, {
|
|
156
|
-
close: boolean | Partial<ButtonProps>;
|
|
157
|
-
progress: boolean | Pick<ProgressProps, "color" | "b24ui">;
|
|
158
|
-
orientation: Toast["variants"]["orientation"];
|
|
159
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ToastSlots>;
|
|
155
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ToastSlots>;
|
|
160
156
|
declare const _default: typeof __VLS_export;
|
|
161
157
|
export default _default;
|
|
162
158
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ToastRootProps, ToastRootEmits } from 'reka-ui';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/b24ui/toast';
|
|
4
|
-
import type { AvatarProps, ButtonProps, ProgressProps, IconComponent } from '../types';
|
|
4
|
+
import type { AvatarProps, ButtonProps, ProgressProps, IconComponent, LinkPropsKeys } from '../types';
|
|
5
5
|
import type { StringOrVNode } from '../types/utils';
|
|
6
6
|
import type { ComponentConfig } from '../types/tv';
|
|
7
7
|
type Toast = ComponentConfig<typeof theme, AppConfig, 'toast'>;
|
|
@@ -32,7 +32,7 @@ export interface ToastProps extends Pick<ToastRootProps, 'defaultOpen' | 'open'
|
|
|
32
32
|
* `{ size: 'sm', color: 'air-tertiary' }`{lang="ts"}
|
|
33
33
|
* @defaultValue true
|
|
34
34
|
*/
|
|
35
|
-
close?: boolean |
|
|
35
|
+
close?: boolean | Omit<ButtonProps, LinkPropsKeys>;
|
|
36
36
|
/**
|
|
37
37
|
* The icon displayed in the close button.
|
|
38
38
|
* @defaultValue icons.close
|
|
@@ -152,11 +152,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ToastP
|
|
|
152
152
|
y: number;
|
|
153
153
|
};
|
|
154
154
|
}>, "currentTarget">) => any) | undefined;
|
|
155
|
-
}>, {
|
|
156
|
-
close: boolean | Partial<ButtonProps>;
|
|
157
|
-
progress: boolean | Pick<ProgressProps, "color" | "b24ui">;
|
|
158
|
-
orientation: Toast["variants"]["orientation"];
|
|
159
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ToastSlots>;
|
|
155
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ToastSlots>;
|
|
160
156
|
declare const _default: typeof __VLS_export;
|
|
161
157
|
export default _default;
|
|
162
158
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -39,14 +39,7 @@ export interface ToasterProps extends Omit<ToastProviderProps, 'swipeDirection'>
|
|
|
39
39
|
export interface ToasterSlots {
|
|
40
40
|
default(props?: {}): any;
|
|
41
41
|
}
|
|
42
|
-
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ToasterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToasterProps> & Readonly<{}>, {
|
|
43
|
-
progress: boolean;
|
|
44
|
-
duration: number;
|
|
45
|
-
position: Toaster["variants"]["position"];
|
|
46
|
-
max: number;
|
|
47
|
-
expand: boolean;
|
|
48
|
-
portal: boolean | string | HTMLElement;
|
|
49
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ToasterSlots>;
|
|
42
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ToasterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToasterProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ToasterSlots>;
|
|
50
43
|
declare const _default: typeof __VLS_export;
|
|
51
44
|
export default _default;
|
|
52
45
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -39,14 +39,7 @@ export interface ToasterProps extends Omit<ToastProviderProps, 'swipeDirection'>
|
|
|
39
39
|
export interface ToasterSlots {
|
|
40
40
|
default(props?: {}): any;
|
|
41
41
|
}
|
|
42
|
-
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ToasterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToasterProps> & Readonly<{}>, {
|
|
43
|
-
progress: boolean;
|
|
44
|
-
duration: number;
|
|
45
|
-
position: Toaster["variants"]["position"];
|
|
46
|
-
max: number;
|
|
47
|
-
expand: boolean;
|
|
48
|
-
portal: boolean | string | HTMLElement;
|
|
49
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ToasterSlots>;
|
|
42
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ToasterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToasterProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ToasterSlots>;
|
|
50
43
|
declare const _default: typeof __VLS_export;
|
|
51
44
|
export default _default;
|
|
52
45
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -48,10 +48,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Toolti
|
|
|
48
48
|
"update:open": (value: boolean) => any;
|
|
49
49
|
}, string, import("vue").PublicProps, Readonly<TooltipProps> & Readonly<{
|
|
50
50
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
51
|
-
}>, {
|
|
52
|
-
portal: boolean | string | HTMLElement;
|
|
53
|
-
arrow: boolean | Omit<TooltipArrowProps, "as" | "asChild">;
|
|
54
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, TooltipSlots>;
|
|
51
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, TooltipSlots>;
|
|
55
52
|
declare const _default: typeof __VLS_export;
|
|
56
53
|
export default _default;
|
|
57
54
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -48,10 +48,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Toolti
|
|
|
48
48
|
"update:open": (value: boolean) => any;
|
|
49
49
|
}, string, import("vue").PublicProps, Readonly<TooltipProps> & Readonly<{
|
|
50
50
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
51
|
-
}>, {
|
|
52
|
-
portal: boolean | string | HTMLElement;
|
|
53
|
-
arrow: boolean | Omit<TooltipArrowProps, "as" | "asChild">;
|
|
54
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, TooltipSlots>;
|
|
51
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, TooltipSlots>;
|
|
55
52
|
declare const _default: typeof __VLS_export;
|
|
56
53
|
export default _default;
|
|
57
54
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -38,9 +38,7 @@ export interface UserSlots {
|
|
|
38
38
|
description(props?: {}): any;
|
|
39
39
|
default(props?: {}): any;
|
|
40
40
|
}
|
|
41
|
-
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<UserProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UserProps> & Readonly<{}>, {
|
|
42
|
-
orientation: User["variants"]["orientation"];
|
|
43
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, UserSlots>;
|
|
41
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<UserProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UserProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, UserSlots>;
|
|
44
42
|
declare const _default: typeof __VLS_export;
|
|
45
43
|
export default _default;
|
|
46
44
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -38,9 +38,7 @@ export interface UserSlots {
|
|
|
38
38
|
description(props?: {}): any;
|
|
39
39
|
default(props?: {}): any;
|
|
40
40
|
}
|
|
41
|
-
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<UserProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UserProps> & Readonly<{}>, {
|
|
42
|
-
orientation: User["variants"]["orientation"];
|
|
43
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, UserSlots>;
|
|
41
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<UserProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UserProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, UserSlots>;
|
|
44
42
|
declare const _default: typeof __VLS_export;
|
|
45
43
|
export default _default;
|
|
46
44
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import type { ButtonProps } from '../../types';
|
|
2
|
-
export interface ColorModeButtonProps extends Omit<ButtonProps, 'color'> {
|
|
1
|
+
import type { ButtonProps, LinkPropsKeys } from '../../types';
|
|
2
|
+
export interface ColorModeButtonProps extends Omit<ButtonProps, LinkPropsKeys | 'color'> {
|
|
3
3
|
/**
|
|
4
4
|
* @defaultValue 'air-tertiary-no-accent'
|
|
5
5
|
*/
|
|
6
6
|
color?: ButtonProps['color'];
|
|
7
7
|
}
|
|
8
|
-
declare const __VLS_export: import("vue").DefineComponent<ColorModeButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeButtonProps> & Readonly<{}>, {
|
|
9
|
-
color: "default" | "link" | "air-primary" | "air-primary-success" | "air-primary-alert" | "air-primary-copilot" | "air-secondary" | "air-secondary-accent" | "air-secondary-accent-1" | "air-tertiary" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | "air-secondary-alert" | "air-secondary-accent-2" | "air-secondary-no-accent" | "air-tertiary-accent" | "air-tertiary-no-accent" | "air-selection" | "air-boost";
|
|
10
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<ColorModeButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
9
|
declare const _default: typeof __VLS_export;
|
|
12
10
|
export default _default;
|
|
@@ -27,8 +27,6 @@ const props = defineProps({
|
|
|
27
27
|
useDropdown: { type: Boolean, required: false },
|
|
28
28
|
onClick: { type: [Function, Array], required: false },
|
|
29
29
|
class: { type: null, required: false },
|
|
30
|
-
activeClass: { type: String, required: false },
|
|
31
|
-
inactiveClass: { type: String, required: false },
|
|
32
30
|
b24ui: { type: null, required: false },
|
|
33
31
|
icon: { type: [Function, Object], required: false },
|
|
34
32
|
avatar: { type: Object, required: false },
|
|
@@ -36,26 +34,9 @@ const props = defineProps({
|
|
|
36
34
|
as: { type: null, required: false },
|
|
37
35
|
type: { type: null, required: false },
|
|
38
36
|
disabled: { type: Boolean, required: false },
|
|
39
|
-
active: { type: Boolean, required: false },
|
|
40
|
-
exact: { type: Boolean, required: false },
|
|
41
|
-
exactQuery: { type: [Boolean, String], required: false },
|
|
42
|
-
exactHash: { type: Boolean, required: false },
|
|
43
37
|
isAction: { type: Boolean, required: false },
|
|
44
|
-
to: { type: null, required: false },
|
|
45
|
-
href: { type: null, required: false },
|
|
46
|
-
external: { type: Boolean, required: false },
|
|
47
|
-
target: { type: [String, Object, null], required: false },
|
|
48
|
-
rel: { type: [String, Object, null], required: false },
|
|
49
|
-
noRel: { type: Boolean, required: false },
|
|
50
|
-
prefetchedClass: { type: String, required: false },
|
|
51
|
-
prefetch: { type: Boolean, required: false },
|
|
52
|
-
prefetchOn: { type: [String, Object], required: false },
|
|
53
|
-
noPrefetch: { type: Boolean, required: false },
|
|
54
|
-
trailingSlash: { type: String, required: false },
|
|
55
38
|
exactActiveClass: { type: String, required: false },
|
|
56
|
-
|
|
57
|
-
viewTransition: { type: Boolean, required: false },
|
|
58
|
-
replace: { type: Boolean, required: false }
|
|
39
|
+
viewTransition: { type: Boolean, required: false }
|
|
59
40
|
});
|
|
60
41
|
const { t } = useLocale();
|
|
61
42
|
const colorMode = useColorMode();
|
|
@@ -80,8 +61,8 @@ const isDark = computed({
|
|
|
80
61
|
@click="isDark = !isDark"
|
|
81
62
|
>
|
|
82
63
|
<template #leading="{ b24ui }">
|
|
83
|
-
<Component :is="icons.dark" data-slot="leadingIcon" :class="b24ui.leadingIcon({ class: props.b24ui?.leadingIcon
|
|
84
|
-
<Component :is="icons.light" data-slot="leadingIcon" :class="b24ui.leadingIcon({ class: props.b24ui?.leadingIcon
|
|
64
|
+
<Component :is="icons.dark" data-slot="leadingIcon" :class="b24ui.leadingIcon({ class: [props.b24ui?.leadingIcon, 'hidden dark:inline-block'] })" />
|
|
65
|
+
<Component :is="icons.light" data-slot="leadingIcon" :class="b24ui.leadingIcon({ class: [props.b24ui?.leadingIcon, 'dark:hidden'] })" />
|
|
85
66
|
</template>
|
|
86
67
|
</B24Button>
|
|
87
68
|
</template>
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import type { ButtonProps } from '../../types';
|
|
2
|
-
export interface ColorModeButtonProps extends Omit<ButtonProps, 'color'> {
|
|
1
|
+
import type { ButtonProps, LinkPropsKeys } from '../../types';
|
|
2
|
+
export interface ColorModeButtonProps extends Omit<ButtonProps, LinkPropsKeys | 'color'> {
|
|
3
3
|
/**
|
|
4
4
|
* @defaultValue 'air-tertiary-no-accent'
|
|
5
5
|
*/
|
|
6
6
|
color?: ButtonProps['color'];
|
|
7
7
|
}
|
|
8
|
-
declare const __VLS_export: import("vue").DefineComponent<ColorModeButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeButtonProps> & Readonly<{}>, {
|
|
9
|
-
color: "default" | "link" | "air-primary" | "air-primary-success" | "air-primary-alert" | "air-primary-copilot" | "air-secondary" | "air-secondary-accent" | "air-secondary-accent-1" | "air-tertiary" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | "air-secondary-alert" | "air-secondary-accent-2" | "air-secondary-no-accent" | "air-tertiary-accent" | "air-tertiary-no-accent" | "air-selection" | "air-boost";
|
|
10
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<ColorModeButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
9
|
declare const _default: typeof __VLS_export;
|
|
12
10
|
export default _default;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { SelectMenuProps, SelectMenuItem } from '../../types';
|
|
2
2
|
export interface ColorModeSelectProps extends Omit<SelectMenuProps<SelectMenuItem[]>, 'icon' | 'items' | 'modelValue'> {
|
|
3
3
|
}
|
|
4
|
-
declare const __VLS_export: import("vue").DefineComponent<ColorModeSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeSelectProps> & Readonly<{}>, {
|
|
5
|
-
searchInput: boolean | import("../Input.vue").InputProps;
|
|
6
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<ColorModeSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeSelectProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
5
|
declare const _default: typeof __VLS_export;
|
|
8
6
|
export default _default;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { SelectMenuProps, SelectMenuItem } from '../../types';
|
|
2
2
|
export interface ColorModeSelectProps extends Omit<SelectMenuProps<SelectMenuItem[]>, 'icon' | 'items' | 'modelValue'> {
|
|
3
3
|
}
|
|
4
|
-
declare const __VLS_export: import("vue").DefineComponent<ColorModeSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeSelectProps> & Readonly<{}>, {
|
|
5
|
-
searchInput: boolean | import("../Input.vue").InputProps;
|
|
6
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<ColorModeSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeSelectProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
5
|
declare const _default: typeof __VLS_export;
|
|
8
6
|
export default _default;
|