@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.
Files changed (226) hide show
  1. package/dist/meta.d.mts +39966 -51971
  2. package/dist/meta.mjs +39966 -51971
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +1 -1
  5. package/dist/runtime/components/Accordion.d.vue.ts +3 -3
  6. package/dist/runtime/components/Accordion.vue.d.ts +3 -3
  7. package/dist/runtime/components/Advice.d.vue.ts +1 -4
  8. package/dist/runtime/components/Advice.vue.d.ts +1 -4
  9. package/dist/runtime/components/Alert.d.vue.ts +3 -6
  10. package/dist/runtime/components/Alert.vue.d.ts +3 -6
  11. package/dist/runtime/components/App.d.vue.ts +3 -1
  12. package/dist/runtime/components/App.vue.d.ts +3 -1
  13. package/dist/runtime/components/Badge.d.vue.ts +1 -4
  14. package/dist/runtime/components/Badge.vue.d.ts +1 -4
  15. package/dist/runtime/components/Banner.d.vue.ts +2 -2
  16. package/dist/runtime/components/Banner.vue.d.ts +2 -2
  17. package/dist/runtime/components/Breadcrumb.d.vue.ts +3 -1
  18. package/dist/runtime/components/Breadcrumb.vue.d.ts +3 -1
  19. package/dist/runtime/components/Button.d.vue.ts +1 -4
  20. package/dist/runtime/components/Button.vue.d.ts +1 -4
  21. package/dist/runtime/components/Calendar.d.vue.ts +8 -11
  22. package/dist/runtime/components/Calendar.vue.d.ts +8 -11
  23. package/dist/runtime/components/ChatMessage.d.vue.ts +1 -3
  24. package/dist/runtime/components/ChatMessage.vue.d.ts +1 -3
  25. package/dist/runtime/components/ChatMessages.d.vue.ts +3 -8
  26. package/dist/runtime/components/ChatMessages.vue.d.ts +3 -8
  27. package/dist/runtime/components/ChatPrompt.d.vue.ts +2 -7
  28. package/dist/runtime/components/ChatPrompt.vue.d.ts +2 -7
  29. package/dist/runtime/components/ChatPromptSubmit.d.vue.ts +3 -9
  30. package/dist/runtime/components/ChatPromptSubmit.vue +1 -20
  31. package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +3 -9
  32. package/dist/runtime/components/CheckboxGroup.d.vue.ts +3 -4
  33. package/dist/runtime/components/CheckboxGroup.vue.d.ts +3 -4
  34. package/dist/runtime/components/Chip.d.vue.ts +1 -6
  35. package/dist/runtime/components/Chip.vue.d.ts +1 -6
  36. package/dist/runtime/components/Collapsible.d.vue.ts +1 -3
  37. package/dist/runtime/components/Collapsible.vue.d.ts +1 -3
  38. package/dist/runtime/components/ColorPicker.d.vue.ts +1 -5
  39. package/dist/runtime/components/ColorPicker.vue.d.ts +1 -5
  40. package/dist/runtime/components/CommandPalette.d.vue.ts +9 -14
  41. package/dist/runtime/components/CommandPalette.vue.d.ts +9 -14
  42. package/dist/runtime/components/ContextMenu.d.vue.ts +3 -3
  43. package/dist/runtime/components/ContextMenu.vue.d.ts +3 -3
  44. package/dist/runtime/components/ContextMenuContent.d.vue.ts +3 -7
  45. package/dist/runtime/components/ContextMenuContent.vue.d.ts +3 -7
  46. package/dist/runtime/components/Countdown.d.vue.ts +1 -10
  47. package/dist/runtime/components/Countdown.vue.d.ts +1 -10
  48. package/dist/runtime/components/DashboardGroup.d.vue.ts +1 -4
  49. package/dist/runtime/components/DashboardGroup.vue.d.ts +1 -4
  50. package/dist/runtime/components/DashboardSearch.d.vue.ts +4 -9
  51. package/dist/runtime/components/DashboardSearch.vue.d.ts +4 -9
  52. package/dist/runtime/components/DashboardSearchButton.d.vue.ts +3 -8
  53. package/dist/runtime/components/DashboardSearchButton.vue +1 -20
  54. package/dist/runtime/components/DashboardSearchButton.vue.d.ts +3 -8
  55. package/dist/runtime/components/DescriptionList.d.vue.ts +3 -1
  56. package/dist/runtime/components/DescriptionList.vue.d.ts +3 -1
  57. package/dist/runtime/components/DropdownMenu.d.vue.ts +3 -3
  58. package/dist/runtime/components/DropdownMenu.vue.d.ts +3 -3
  59. package/dist/runtime/components/DropdownMenuContent.d.vue.ts +3 -7
  60. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +3 -7
  61. package/dist/runtime/components/Empty.d.vue.ts +1 -3
  62. package/dist/runtime/components/Empty.vue.d.ts +1 -3
  63. package/dist/runtime/components/Error.d.vue.ts +2 -5
  64. package/dist/runtime/components/Error.vue.d.ts +2 -5
  65. package/dist/runtime/components/FieldGroup.d.vue.ts +1 -4
  66. package/dist/runtime/components/FieldGroup.vue.d.ts +1 -4
  67. package/dist/runtime/components/FileUpload.d.vue.ts +5 -6
  68. package/dist/runtime/components/FileUpload.vue.d.ts +5 -6
  69. package/dist/runtime/components/Form.d.vue.ts +3 -4
  70. package/dist/runtime/components/Form.vue.d.ts +3 -4
  71. package/dist/runtime/components/Input.d.vue.ts +5 -7
  72. package/dist/runtime/components/Input.vue.d.ts +5 -7
  73. package/dist/runtime/components/InputDate.d.vue.ts +4 -8
  74. package/dist/runtime/components/InputDate.vue.d.ts +4 -8
  75. package/dist/runtime/components/InputMenu.d.vue.ts +7 -15
  76. package/dist/runtime/components/InputMenu.vue.d.ts +7 -15
  77. package/dist/runtime/components/InputNumber.d.vue.ts +7 -9
  78. package/dist/runtime/components/InputNumber.vue.d.ts +7 -9
  79. package/dist/runtime/components/InputTags.d.vue.ts +4 -10
  80. package/dist/runtime/components/InputTags.vue.d.ts +4 -10
  81. package/dist/runtime/components/InputTime.d.vue.ts +3 -5
  82. package/dist/runtime/components/InputTime.vue.d.ts +3 -5
  83. package/dist/runtime/components/Kbd.d.vue.ts +1 -4
  84. package/dist/runtime/components/Kbd.vue.d.ts +1 -4
  85. package/dist/runtime/components/Link.d.vue.ts +6 -7
  86. package/dist/runtime/components/Link.vue.d.ts +6 -7
  87. package/dist/runtime/components/LinkBase.d.vue.ts +1 -4
  88. package/dist/runtime/components/LinkBase.vue.d.ts +1 -4
  89. package/dist/runtime/components/Modal.d.vue.ts +3 -12
  90. package/dist/runtime/components/Modal.vue.d.ts +3 -12
  91. package/dist/runtime/components/Navbar.d.vue.ts +1 -3
  92. package/dist/runtime/components/Navbar.vue.d.ts +1 -3
  93. package/dist/runtime/components/NavbarDivider.d.vue.ts +1 -3
  94. package/dist/runtime/components/NavbarDivider.vue.d.ts +1 -3
  95. package/dist/runtime/components/NavbarSection.d.vue.ts +1 -3
  96. package/dist/runtime/components/NavbarSection.vue.d.ts +1 -3
  97. package/dist/runtime/components/NavbarSpacer.d.vue.ts +1 -3
  98. package/dist/runtime/components/NavbarSpacer.vue.d.ts +1 -3
  99. package/dist/runtime/components/NavigationMenu.d.vue.ts +3 -3
  100. package/dist/runtime/components/NavigationMenu.vue.d.ts +3 -3
  101. package/dist/runtime/components/PageCard.d.vue.ts +1 -3
  102. package/dist/runtime/components/PageCard.vue.d.ts +1 -3
  103. package/dist/runtime/components/PageLinks.d.vue.ts +3 -1
  104. package/dist/runtime/components/PageLinks.vue.d.ts +3 -1
  105. package/dist/runtime/components/PageList.d.vue.ts +1 -3
  106. package/dist/runtime/components/PageList.vue.d.ts +1 -3
  107. package/dist/runtime/components/Pagination.d.vue.ts +1 -9
  108. package/dist/runtime/components/Pagination.vue.d.ts +1 -9
  109. package/dist/runtime/components/PinInput.d.vue.ts +4 -7
  110. package/dist/runtime/components/PinInput.vue.d.ts +4 -7
  111. package/dist/runtime/components/Popover.d.vue.ts +3 -4
  112. package/dist/runtime/components/Popover.vue.d.ts +3 -4
  113. package/dist/runtime/components/Progress.d.vue.ts +1 -5
  114. package/dist/runtime/components/Progress.vue.d.ts +1 -5
  115. package/dist/runtime/components/RadioGroup.d.vue.ts +3 -4
  116. package/dist/runtime/components/RadioGroup.vue.d.ts +3 -4
  117. package/dist/runtime/components/Range.d.vue.ts +3 -4
  118. package/dist/runtime/components/Range.vue.d.ts +3 -4
  119. package/dist/runtime/components/Select.d.vue.ts +4 -8
  120. package/dist/runtime/components/Select.vue.d.ts +4 -8
  121. package/dist/runtime/components/SelectMenu.d.vue.ts +7 -14
  122. package/dist/runtime/components/SelectMenu.vue.d.ts +7 -14
  123. package/dist/runtime/components/Separator.d.vue.ts +1 -6
  124. package/dist/runtime/components/Separator.vue.d.ts +1 -6
  125. package/dist/runtime/components/Sidebar.d.vue.ts +1 -3
  126. package/dist/runtime/components/Sidebar.vue.d.ts +1 -3
  127. package/dist/runtime/components/SidebarBody.d.vue.ts +1 -4
  128. package/dist/runtime/components/SidebarBody.vue.d.ts +1 -4
  129. package/dist/runtime/components/SidebarFooter.d.vue.ts +1 -3
  130. package/dist/runtime/components/SidebarFooter.vue.d.ts +1 -3
  131. package/dist/runtime/components/SidebarHeader.d.vue.ts +1 -3
  132. package/dist/runtime/components/SidebarHeader.vue.d.ts +1 -3
  133. package/dist/runtime/components/SidebarHeading.d.vue.ts +1 -3
  134. package/dist/runtime/components/SidebarHeading.vue.d.ts +1 -3
  135. package/dist/runtime/components/SidebarLayout.d.vue.ts +1 -6
  136. package/dist/runtime/components/SidebarLayout.vue.d.ts +1 -6
  137. package/dist/runtime/components/SidebarSection.d.vue.ts +1 -3
  138. package/dist/runtime/components/SidebarSection.vue.d.ts +1 -3
  139. package/dist/runtime/components/SidebarSpacer.d.vue.ts +1 -3
  140. package/dist/runtime/components/SidebarSpacer.vue.d.ts +1 -3
  141. package/dist/runtime/components/Skeleton.d.vue.ts +1 -3
  142. package/dist/runtime/components/Skeleton.vue.d.ts +1 -3
  143. package/dist/runtime/components/Slideover.d.vue.ts +3 -13
  144. package/dist/runtime/components/Slideover.vue.d.ts +3 -13
  145. package/dist/runtime/components/Stepper.d.vue.ts +3 -5
  146. package/dist/runtime/components/Stepper.vue.d.ts +3 -5
  147. package/dist/runtime/components/Table.d.vue.ts +4 -16
  148. package/dist/runtime/components/Table.vue +55 -33
  149. package/dist/runtime/components/Table.vue.d.ts +4 -16
  150. package/dist/runtime/components/TableWrapper.d.vue.ts +1 -4
  151. package/dist/runtime/components/TableWrapper.vue.d.ts +1 -4
  152. package/dist/runtime/components/Tabs.d.vue.ts +3 -3
  153. package/dist/runtime/components/Tabs.vue.d.ts +3 -3
  154. package/dist/runtime/components/Textarea.d.vue.ts +5 -7
  155. package/dist/runtime/components/Textarea.vue.d.ts +5 -7
  156. package/dist/runtime/components/Timeline.d.vue.ts +3 -3
  157. package/dist/runtime/components/Timeline.vue.d.ts +3 -3
  158. package/dist/runtime/components/Toast.d.vue.ts +3 -7
  159. package/dist/runtime/components/Toast.vue.d.ts +3 -7
  160. package/dist/runtime/components/Toaster.d.vue.ts +1 -8
  161. package/dist/runtime/components/Toaster.vue.d.ts +1 -8
  162. package/dist/runtime/components/Tooltip.d.vue.ts +1 -4
  163. package/dist/runtime/components/Tooltip.vue.d.ts +1 -4
  164. package/dist/runtime/components/User.d.vue.ts +1 -3
  165. package/dist/runtime/components/User.vue.d.ts +1 -3
  166. package/dist/runtime/components/color-mode/ColorModeButton.d.vue.ts +3 -5
  167. package/dist/runtime/components/color-mode/ColorModeButton.vue +3 -22
  168. package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +3 -5
  169. package/dist/runtime/components/color-mode/ColorModeSelect.d.vue.ts +1 -3
  170. package/dist/runtime/components/color-mode/ColorModeSelect.vue.d.ts +1 -3
  171. package/dist/runtime/components/content/ContentSearch.d.vue.ts +6 -6
  172. package/dist/runtime/components/content/ContentSearch.vue.d.ts +6 -6
  173. package/dist/runtime/components/content/ContentSearchButton.d.vue.ts +3 -8
  174. package/dist/runtime/components/content/ContentSearchButton.vue +1 -20
  175. package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +3 -8
  176. package/dist/runtime/components/content/ContentSurround.d.vue.ts +3 -1
  177. package/dist/runtime/components/content/ContentSurround.vue.d.ts +3 -1
  178. package/dist/runtime/components/content/ContentToc.d.vue.ts +3 -4
  179. package/dist/runtime/components/content/ContentToc.vue.d.ts +3 -4
  180. package/dist/runtime/components/locale/LocaleSelect.d.vue.ts +1 -5
  181. package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +1 -5
  182. package/dist/runtime/components/prose/Accordion.d.vue.ts +1 -3
  183. package/dist/runtime/components/prose/Accordion.vue.d.ts +1 -3
  184. package/dist/runtime/components/prose/CodeGroup.d.vue.ts +1 -3
  185. package/dist/runtime/components/prose/CodeGroup.vue.d.ts +1 -3
  186. package/dist/runtime/components/prose/H1.d.vue.ts +1 -3
  187. package/dist/runtime/components/prose/H1.vue.d.ts +1 -3
  188. package/dist/runtime/components/prose/H2.d.vue.ts +1 -3
  189. package/dist/runtime/components/prose/H2.vue.d.ts +1 -3
  190. package/dist/runtime/components/prose/H3.d.vue.ts +1 -3
  191. package/dist/runtime/components/prose/H3.vue.d.ts +1 -3
  192. package/dist/runtime/components/prose/H4.d.vue.ts +1 -3
  193. package/dist/runtime/components/prose/H4.vue.d.ts +1 -3
  194. package/dist/runtime/components/prose/H5.d.vue.ts +1 -3
  195. package/dist/runtime/components/prose/H5.vue.d.ts +1 -3
  196. package/dist/runtime/components/prose/H6.d.vue.ts +1 -3
  197. package/dist/runtime/components/prose/H6.vue.d.ts +1 -3
  198. package/dist/runtime/components/prose/Img.d.vue.ts +1 -3
  199. package/dist/runtime/components/prose/Img.vue.d.ts +1 -3
  200. package/dist/runtime/components/prose/P.d.vue.ts +1 -4
  201. package/dist/runtime/components/prose/P.vue.d.ts +1 -4
  202. package/dist/runtime/components/prose/Table.d.vue.ts +1 -7
  203. package/dist/runtime/components/prose/Table.vue.d.ts +1 -7
  204. package/dist/runtime/components/prose/Tabs.d.vue.ts +1 -3
  205. package/dist/runtime/components/prose/Tabs.vue.d.ts +1 -3
  206. package/dist/runtime/components/prose/callout/Caution.d.vue.ts +2 -2
  207. package/dist/runtime/components/prose/callout/Caution.vue.d.ts +2 -2
  208. package/dist/runtime/components/prose/callout/Note.d.vue.ts +2 -2
  209. package/dist/runtime/components/prose/callout/Note.vue.d.ts +2 -2
  210. package/dist/runtime/components/prose/callout/Tip.d.vue.ts +2 -2
  211. package/dist/runtime/components/prose/callout/Tip.vue.d.ts +2 -2
  212. package/dist/runtime/components/prose/callout/Warning.d.vue.ts +2 -2
  213. package/dist/runtime/components/prose/callout/Warning.vue.d.ts +2 -2
  214. package/dist/runtime/inertia/components/Link.d.vue.ts +1 -7
  215. package/dist/runtime/inertia/components/Link.vue.d.ts +1 -7
  216. package/dist/runtime/inertia/components/LinkBase.d.vue.ts +1 -4
  217. package/dist/runtime/inertia/components/LinkBase.vue.d.ts +1 -4
  218. package/dist/runtime/utils/content.d.ts +2 -2
  219. package/dist/runtime/vue/components/Link.d.vue.ts +1 -7
  220. package/dist/runtime/vue/components/Link.vue.d.ts +1 -7
  221. package/dist/runtime/vue/components/color-mode/ColorModeSelect.d.vue.ts +1 -3
  222. package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue.d.ts +1 -3
  223. package/dist/shared/{b24ui-nuxt.CIiXiDdZ.mjs → b24ui-nuxt.auTgHcA7.mjs} +18 -18
  224. package/dist/unplugin.mjs +1 -1
  225. package/dist/vite.mjs +1 -1
  226. 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 { reactiveOmit, createReusableTemplate } from "@vueuse/core";
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, ...{ default: void 0 } });
125
- const columnFiltersState = defineModel("columnFilters", { type: Array, ...{ default: [] } });
126
- const columnOrderState = defineModel("columnOrder", { type: Array, ...{ default: [] } });
127
- const columnVisibilityState = defineModel("columnVisibility", { type: Object, ...{ default: {} } });
128
- const columnPinningState = defineModel("columnPinning", { type: Object, ...{ default: {} } });
129
- const columnSizingState = defineModel("columnSizing", { type: Object, ...{ default: {} } });
130
- const columnSizingInfoState = defineModel("columnSizingInfo", { type: Object, ...{ default: {} } });
131
- const rowSelectionState = defineModel("rowSelection", { type: Object, ...{ default: {} } });
132
- const rowPinningState = defineModel("rowPinning", { type: Object, ...{ default: {} } });
133
- const sortingState = defineModel("sorting", { type: Array, ...{ default: [] } });
134
- const groupingState = defineModel("grouping", { type: Array, ...{ default: [] } });
135
- const expandedState = defineModel("expanded", { type: [Boolean, Object], ...{ default: {} } });
136
- const paginationState = defineModel("pagination", { type: Object, ...{ default: {} } });
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
- ...reactiveOmit(props, "as", "data", "columns", "virtualize", "caption", "sticky", "loading", "loadingColor", "loadingAnimation", "class", "b24ui"),
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="resolveValue(cell.column.columnDef.meta?.style?.td, cell)"
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="resolveValue(header.column.columnDef.meta?.style?.th, header)"
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="resolveValue(header.column.columnDef.meta?.style?.th, header)"
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
- "onUpdate:globalFilter"?: ((value: string) => any) | undefined;
195
- "onUpdate:columnFilters"?: ((value: ColumnFiltersState) => any) | undefined;
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
- "onUpdate:modelValue"?: ((payload: string | number) => any) | undefined;
87
- }> & import("vue").PublicProps;
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
- "onUpdate:modelValue"?: ((payload: string | number) => any) | undefined;
87
- }> & import("vue").PublicProps;
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
- onChange?: ((event: Event) => any) | undefined;
87
- onBlur?: ((event: FocusEvent) => any) | undefined;
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<HTMLTextAreaElement | null>>;
89
+ textareaRef: Readonly<import("vue").ShallowRef<any>>;
92
90
  }>) => void;
93
91
  attrs: any;
94
92
  slots: TextareaSlots;
95
- emit: ((evt: "change", event: Event) => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "update:modelValue", value: T) => void);
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
- onChange?: ((event: Event) => any) | undefined;
87
- onBlur?: ((event: FocusEvent) => any) | undefined;
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<HTMLTextAreaElement | null>>;
89
+ textareaRef: Readonly<import("vue").ShallowRef<any>>;
92
90
  }>) => void;
93
91
  attrs: any;
94
92
  slots: TextareaSlots;
95
- emit: ((evt: "change", event: Event) => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "update:modelValue", value: T) => void);
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
- "onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
60
- }> & import("vue").PublicProps;
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
- "onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
60
- }> & import("vue").PublicProps;
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 | Partial<ButtonProps>;
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 | Partial<ButtonProps>;
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
- ariaCurrentValue: { type: String, required: false },
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 })" class="hidden dark:inline" />
84
- <Component :is="icons.light" data-slot="leadingIcon" :class="b24ui.leadingIcon({ class: props.b24ui?.leadingIcon })" class="inline dark:hidden" />
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;