@flux-ui/components 3.0.0-next.66 → 3.0.0-next.67

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 (211) hide show
  1. package/dist/component/FluxAction.vue.d.ts +2 -1
  2. package/dist/component/FluxActionBar.vue.d.ts +23 -47
  3. package/dist/component/FluxActionPane.vue.d.ts +8 -17
  4. package/dist/component/FluxActionStack.vue.d.ts +7 -152
  5. package/dist/component/FluxAdaptiveGroup.vue.d.ts +6 -17
  6. package/dist/component/FluxAdaptiveSlot.vue.d.ts +8 -24
  7. package/dist/component/FluxAlert.vue.d.ts +2 -1
  8. package/dist/component/FluxAnimatedColors.vue.d.ts +2 -3
  9. package/dist/component/FluxAspectRatio.vue.d.ts +6 -13
  10. package/dist/component/FluxAvatar.vue.d.ts +2 -1
  11. package/dist/component/FluxBadge.vue.d.ts +2 -1
  12. package/dist/component/FluxBadgeStack.vue.d.ts +6 -13
  13. package/dist/component/FluxBorderShine.vue.d.ts +3 -2
  14. package/dist/component/FluxBoxedIcon.vue.d.ts +2 -1
  15. package/dist/component/FluxButton.vue.d.ts +5 -4
  16. package/dist/component/FluxButtonGroup.vue.d.ts +6 -13
  17. package/dist/component/FluxButtonStack.vue.d.ts +6 -13
  18. package/dist/component/FluxCalendar.vue.d.ts +7 -14
  19. package/dist/component/FluxCalendarItem.vue.d.ts +7 -14
  20. package/dist/component/FluxCheckbox.vue.d.ts +6 -6
  21. package/dist/component/FluxChip.vue.d.ts +2 -1
  22. package/dist/component/FluxClickablePane.vue.d.ts +7 -15
  23. package/dist/component/FluxColorPicker.vue.d.ts +6 -4
  24. package/dist/component/FluxColorSelect.vue.d.ts +6 -4
  25. package/dist/component/FluxCommandPalette.vue.d.ts +5 -38
  26. package/dist/component/FluxCommandPaletteGroup.vue.d.ts +2 -1
  27. package/dist/component/FluxCommandPaletteItem.vue.d.ts +3 -2
  28. package/dist/component/FluxComment.vue.d.ts +6 -13
  29. package/dist/component/FluxConfirm.vue.d.ts +2 -1
  30. package/dist/component/FluxContainer.vue.d.ts +6 -13
  31. package/dist/component/FluxDataTable.vue.d.ts +20 -50
  32. package/dist/component/FluxDatePicker.vue.d.ts +6 -4
  33. package/dist/component/FluxDestructiveButton.vue.d.ts +5 -10
  34. package/dist/component/FluxDisabled.vue.d.ts +7 -11
  35. package/dist/component/FluxDivider.vue.d.ts +6 -13
  36. package/dist/component/FluxDotPattern.vue.d.ts +2 -3
  37. package/dist/component/FluxDropZone.vue.d.ts +21 -46
  38. package/dist/component/FluxDynamicView.vue.d.ts +2 -1
  39. package/dist/component/FluxExpandable.vue.d.ts +24 -26
  40. package/dist/component/FluxExpandableGroup.vue.d.ts +6 -13
  41. package/dist/component/FluxFader.vue.d.ts +11 -26
  42. package/dist/component/FluxFaderItem.vue.d.ts +6 -13
  43. package/dist/component/FluxFilter.vue.d.ts +9 -16
  44. package/dist/component/FluxFilterBar.vue.d.ts +9 -15
  45. package/dist/component/FluxFilterBase.vue.d.ts +16 -30
  46. package/dist/component/FluxFilterDate.vue.d.ts +2 -1
  47. package/dist/component/FluxFilterDateRange.vue.d.ts +2 -1
  48. package/dist/component/FluxFilterOption.vue.d.ts +6 -4
  49. package/dist/component/FluxFilterOptionAsync.vue.d.ts +6 -4
  50. package/dist/component/FluxFilterOptions.vue.d.ts +6 -4
  51. package/dist/component/FluxFilterOptionsAsync.vue.d.ts +6 -4
  52. package/dist/component/FluxFilterRange.vue.d.ts +2 -1
  53. package/dist/component/FluxFilterWindow.vue.d.ts +7 -143
  54. package/dist/component/FluxFlex.vue.d.ts +6 -13
  55. package/dist/component/FluxFlexItem.vue.d.ts +6 -13
  56. package/dist/component/FluxFlickeringGrid.vue.d.ts +2 -3
  57. package/dist/component/FluxFlyout.vue.d.ts +21 -161
  58. package/dist/component/FluxFocalPointEditor.vue.d.ts +13 -19
  59. package/dist/component/FluxFocalPointImage.vue.d.ts +2 -1
  60. package/dist/component/FluxForm.vue.d.ts +7 -14
  61. package/dist/component/FluxFormColumn.vue.d.ts +6 -13
  62. package/dist/component/FluxFormDateInput.vue.d.ts +8 -158
  63. package/dist/component/FluxFormDateRangeInput.vue.d.ts +8 -158
  64. package/dist/component/FluxFormDateTimeInput.vue.d.ts +8 -158
  65. package/dist/component/FluxFormField.vue.d.ts +24 -49
  66. package/dist/component/FluxFormFieldAddition.vue.d.ts +7 -11
  67. package/dist/component/FluxFormGrid.vue.d.ts +6 -13
  68. package/dist/component/FluxFormInput.vue.d.ts +6 -6
  69. package/dist/component/FluxFormInputAddition.vue.d.ts +6 -13
  70. package/dist/component/FluxFormInputGroup.vue.d.ts +6 -13
  71. package/dist/component/FluxFormPinInput.vue.d.ts +6 -6
  72. package/dist/component/FluxFormRangeSlider.vue.d.ts +7 -78
  73. package/dist/component/FluxFormRow.vue.d.ts +6 -13
  74. package/dist/component/FluxFormSection.vue.d.ts +6 -13
  75. package/dist/component/FluxFormSelect.vue.d.ts +5 -3
  76. package/dist/component/FluxFormSelectAsync.vue.d.ts +5 -3
  77. package/dist/component/FluxFormSlider.vue.d.ts +7 -42
  78. package/dist/component/FluxFormTextArea.vue.d.ts +6 -6
  79. package/dist/component/FluxFormTimeZonePicker.vue.d.ts +5 -3
  80. package/dist/component/FluxFormTreeViewSelect.vue.d.ts +8 -176
  81. package/dist/component/FluxGallery.vue.d.ts +7 -14
  82. package/dist/component/FluxGalleryItem.vue.d.ts +3 -2
  83. package/dist/component/FluxGrid.vue.d.ts +6 -13
  84. package/dist/component/FluxGridColumn.vue.d.ts +6 -13
  85. package/dist/component/FluxGridPattern.vue.d.ts +2 -3
  86. package/dist/component/FluxIcon.vue.d.ts +2 -1
  87. package/dist/component/FluxInfo.vue.d.ts +6 -13
  88. package/dist/component/FluxInfoStack.vue.d.ts +6 -13
  89. package/dist/component/FluxItem.vue.d.ts +7 -11
  90. package/dist/component/FluxItemActions.vue.d.ts +7 -11
  91. package/dist/component/FluxItemContent.vue.d.ts +7 -11
  92. package/dist/component/FluxItemMedia.vue.d.ts +7 -11
  93. package/dist/component/FluxItemStack.vue.d.ts +7 -11
  94. package/dist/component/FluxKanban.vue.d.ts +7 -18
  95. package/dist/component/FluxKanbanColumn.vue.d.ts +10 -27
  96. package/dist/component/FluxKanbanItem.vue.d.ts +6 -17
  97. package/dist/component/FluxLayerPane.vue.d.ts +6 -13
  98. package/dist/component/FluxLayerPaneSecondary.vue.d.ts +6 -13
  99. package/dist/component/FluxLegend.vue.d.ts +2 -1
  100. package/dist/component/FluxLink.vue.d.ts +5 -10
  101. package/dist/component/FluxMenu.vue.d.ts +6 -17
  102. package/dist/component/FluxMenuCollapsible.vue.d.ts +9 -17
  103. package/dist/component/FluxMenuGroup.vue.d.ts +6 -13
  104. package/dist/component/FluxMenuItem.vue.d.ts +8 -16
  105. package/dist/component/FluxMenuOptions.vue.d.ts +10 -16
  106. package/dist/component/FluxMenuSubHeader.vue.d.ts +2 -1
  107. package/dist/component/FluxMenuTitle.vue.d.ts +2 -1
  108. package/dist/component/FluxNotice.vue.d.ts +8 -16
  109. package/dist/component/FluxNoticeStack.vue.d.ts +6 -13
  110. package/dist/component/FluxOverflowBar.vue.d.ts +10 -29
  111. package/dist/component/FluxOverlay.vue.d.ts +3 -2
  112. package/dist/component/FluxOverlayProvider.vue.d.ts +2 -1
  113. package/dist/component/FluxPagination.vue.d.ts +3 -2
  114. package/dist/component/FluxPaginationBar.vue.d.ts +3 -2
  115. package/dist/component/FluxPaginationButton.vue.d.ts +5 -10
  116. package/dist/component/FluxPane.vue.d.ts +7 -15
  117. package/dist/component/FluxPaneBody.vue.d.ts +6 -13
  118. package/dist/component/FluxPaneFooter.vue.d.ts +6 -13
  119. package/dist/component/FluxPaneGroup.vue.d.ts +6 -13
  120. package/dist/component/FluxPaneHeader.vue.d.ts +7 -15
  121. package/dist/component/FluxPaneIllustration.vue.d.ts +7 -15
  122. package/dist/component/FluxPaneMedia.vue.d.ts +2 -1
  123. package/dist/component/FluxPercentageBar.vue.d.ts +2 -1
  124. package/dist/component/FluxPersona.vue.d.ts +3 -2
  125. package/dist/component/FluxPlaceholder.vue.d.ts +8 -12
  126. package/dist/component/FluxPressable.vue.d.ts +6 -13
  127. package/dist/component/FluxPrimaryButton.vue.d.ts +5 -10
  128. package/dist/component/FluxPrimaryLinkButton.vue.d.ts +5 -10
  129. package/dist/component/FluxProgressBar.vue.d.ts +2 -1
  130. package/dist/component/FluxPrompt.vue.d.ts +4 -59
  131. package/dist/component/FluxPublishButton.vue.d.ts +2 -1
  132. package/dist/component/FluxQuantitySelector.vue.d.ts +6 -6
  133. package/dist/component/FluxRemove.vue.d.ts +3 -2
  134. package/dist/component/FluxRoot.vue.d.ts +6 -13
  135. package/dist/component/FluxScroller.vue.d.ts +6 -17
  136. package/dist/component/FluxSecondaryButton.vue.d.ts +5 -10
  137. package/dist/component/FluxSecondaryLinkButton.vue.d.ts +5 -10
  138. package/dist/component/FluxSegmentedControl.vue.d.ts +6 -7
  139. package/dist/component/FluxSegmentedView.vue.d.ts +3 -2
  140. package/dist/component/FluxSeparator.vue.d.ts +2 -1
  141. package/dist/component/FluxSlideOver.vue.d.ts +3 -2
  142. package/dist/component/FluxSnackbar.vue.d.ts +2 -1
  143. package/dist/component/FluxSnackbarProvider.vue.d.ts +2 -1
  144. package/dist/component/FluxSpacer.vue.d.ts +2 -1
  145. package/dist/component/FluxSpacing.vue.d.ts +2 -1
  146. package/dist/component/FluxSpinner.vue.d.ts +2 -1
  147. package/dist/component/FluxSplitButton.vue.d.ts +17 -35
  148. package/dist/component/FluxSplitView.vue.d.ts +6 -17
  149. package/dist/component/FluxSplitViewPane.vue.d.ts +6 -13
  150. package/dist/component/FluxStatistic.vue.d.ts +2 -1
  151. package/dist/component/FluxStepper.vue.d.ts +22 -42
  152. package/dist/component/FluxStepperStep.vue.d.ts +6 -13
  153. package/dist/component/FluxStepperSteps.vue.d.ts +3 -2
  154. package/dist/component/FluxSticky.vue.d.ts +8 -21
  155. package/dist/component/FluxTab.vue.d.ts +6 -13
  156. package/dist/component/FluxTabBar.vue.d.ts +6 -17
  157. package/dist/component/FluxTabBarItem.vue.d.ts +4 -81
  158. package/dist/component/FluxTable.vue.d.ts +11 -23
  159. package/dist/component/FluxTableActions.vue.d.ts +6 -13
  160. package/dist/component/FluxTableBar.vue.d.ts +6 -13
  161. package/dist/component/FluxTableCell.vue.d.ts +7 -15
  162. package/dist/component/FluxTableHeader.vue.d.ts +7 -14
  163. package/dist/component/FluxTableRow.vue.d.ts +6 -13
  164. package/dist/component/FluxTabs.vue.d.ts +28 -52
  165. package/dist/component/FluxTag.vue.d.ts +2 -1
  166. package/dist/component/FluxTagStack.vue.d.ts +6 -13
  167. package/dist/component/FluxTicks.vue.d.ts +2 -1
  168. package/dist/component/FluxTimeline.vue.d.ts +6 -13
  169. package/dist/component/FluxTimelineItem.vue.d.ts +6 -13
  170. package/dist/component/FluxToggle.vue.d.ts +6 -4
  171. package/dist/component/FluxToolbar.vue.d.ts +6 -13
  172. package/dist/component/FluxToolbarGroup.vue.d.ts +6 -13
  173. package/dist/component/FluxTooltip.vue.d.ts +3 -2
  174. package/dist/component/FluxTooltipProvider.vue.d.ts +2 -1
  175. package/dist/component/FluxTreeView.vue.d.ts +3 -4
  176. package/dist/component/FluxWindow.vue.d.ts +14 -28
  177. package/dist/component/calendar/FluxCalendarItemDisplay.vue.d.ts +2 -3
  178. package/dist/component/calendar/FluxCalendarMonthView.vue.d.ts +2 -1
  179. package/dist/component/calendar/FluxCalendarTimeGridView.vue.d.ts +3 -2
  180. package/dist/component/primitive/Anchor.vue.d.ts +6 -13
  181. package/dist/component/primitive/AnchorPopup.vue.d.ts +6 -17
  182. package/dist/component/primitive/CoordinatePicker.vue.d.ts +6 -6
  183. package/dist/component/primitive/CoordinatePickerThumb.vue.d.ts +3 -2
  184. package/dist/component/primitive/DialogLayout.vue.d.ts +7 -15
  185. package/dist/component/primitive/FilterBadge.vue.d.ts +2 -1
  186. package/dist/component/primitive/FilterItem.vue.d.ts +2 -1
  187. package/dist/component/primitive/FilterOptionBase.vue.d.ts +6 -4
  188. package/dist/component/primitive/SelectBase.vue.d.ts +8 -282
  189. package/dist/component/primitive/SliderBase.vue.d.ts +8 -16
  190. package/dist/component/primitive/SliderThumb.vue.d.ts +3 -2
  191. package/dist/component/primitive/SliderTrack.vue.d.ts +7 -11
  192. package/dist/component/primitive/TreeNodeRenderer.vue.d.ts +15 -14
  193. package/dist/index.css +15 -7
  194. package/dist/index.js +134 -108
  195. package/dist/index.js.map +1 -1
  196. package/dist/transition/FluxAutoHeightTransition.vue.d.ts +6 -13
  197. package/dist/transition/FluxAutoWidthTransition.vue.d.ts +6 -13
  198. package/dist/transition/FluxBreakthroughTransition.vue.d.ts +6 -13
  199. package/dist/transition/FluxFadeTransition.vue.d.ts +6 -13
  200. package/dist/transition/FluxOverlayTransition.vue.d.ts +6 -13
  201. package/dist/transition/FluxRouteTransition.vue.d.ts +6 -13
  202. package/dist/transition/FluxSlideOverTransition.vue.d.ts +6 -13
  203. package/dist/transition/FluxTooltipTransition.vue.d.ts +6 -13
  204. package/dist/transition/FluxVerticalWindowTransition.vue.d.ts +6 -13
  205. package/dist/transition/FluxWindowTransition.vue.d.ts +6 -13
  206. package/dist/vite.js.map +1 -1
  207. package/package.json +8 -8
  208. package/src/component/FluxDataTable.vue +12 -3
  209. package/src/component/FluxTable.vue +13 -3
  210. package/src/css/component/Form.module.scss +17 -3
  211. package/src/util/createDialogRenderer.ts +0 -1
@@ -1,19 +1,12 @@
1
1
  import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: Readonly<{
5
- default(): VNode[];
6
- }> & {
7
- default(): VNode[];
8
- };
9
- refs: {};
10
- rootEl: any;
2
+ type __VLS_Slots = {
3
+ default(): VNode[];
11
4
  };
12
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
- declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
14
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
5
+ declare const __VLS_base: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
15
8
  export default _default;
16
- type __VLS_WithTemplateSlots<T, S> = T & {
9
+ type __VLS_WithSlots<T, S> = T & {
17
10
  new (): {
18
11
  $slots: S;
19
12
  };
@@ -1,19 +1,12 @@
1
1
  import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: Readonly<{
5
- default(): VNode[];
6
- }> & {
7
- default(): VNode[];
8
- };
9
- refs: {};
10
- rootEl: any;
2
+ type __VLS_Slots = {
3
+ default(): VNode[];
11
4
  };
12
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
- declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
14
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
5
+ declare const __VLS_base: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
15
8
  export default _default;
16
- type __VLS_WithTemplateSlots<T, S> = T & {
9
+ type __VLS_WithSlots<T, S> = T & {
17
10
  new (): {
18
11
  $slots: S;
19
12
  };
@@ -3,21 +3,14 @@ type __VLS_Props = {
3
3
  readonly isBack?: boolean;
4
4
  readonly mode?: 'in-out' | 'out-in';
5
5
  };
6
- declare function __VLS_template(): {
7
- attrs: Partial<{}>;
8
- slots: Readonly<{
9
- default(): VNode[];
10
- }> & {
11
- default(): VNode[];
12
- };
13
- refs: {};
14
- rootEl: any;
6
+ type __VLS_Slots = {
7
+ default(): VNode[];
15
8
  };
16
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
- declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
18
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
9
+ declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
19
12
  export default _default;
20
- type __VLS_WithTemplateSlots<T, S> = T & {
13
+ type __VLS_WithSlots<T, S> = T & {
21
14
  new (): {
22
15
  $slots: S;
23
16
  };
@@ -2,21 +2,14 @@ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentPr
2
2
  type __VLS_Props = {
3
3
  readonly mode?: 'in-out' | 'out-in';
4
4
  };
5
- declare function __VLS_template(): {
6
- attrs: Partial<{}>;
7
- slots: Readonly<{
8
- default(): VNode[];
9
- }> & {
10
- default(): VNode[];
11
- };
12
- refs: {};
13
- rootEl: any;
5
+ type __VLS_Slots = {
6
+ default(): VNode[];
14
7
  };
15
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
- declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
17
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
8
+ declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
18
11
  export default _default;
19
- type __VLS_WithTemplateSlots<T, S> = T & {
12
+ type __VLS_WithSlots<T, S> = T & {
20
13
  new (): {
21
14
  $slots: S;
22
15
  };
@@ -2,21 +2,14 @@ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentPr
2
2
  type __VLS_Props = {
3
3
  readonly mode?: 'in-out' | 'out-in';
4
4
  };
5
- declare function __VLS_template(): {
6
- attrs: Partial<{}>;
7
- slots: Readonly<{
8
- default(): VNode[];
9
- }> & {
10
- default(): VNode[];
11
- };
12
- refs: {};
13
- rootEl: any;
5
+ type __VLS_Slots = {
6
+ default(): VNode[];
14
7
  };
15
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
- declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
17
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
8
+ declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
18
11
  export default _default;
19
- type __VLS_WithTemplateSlots<T, S> = T & {
12
+ type __VLS_WithSlots<T, S> = T & {
20
13
  new (): {
21
14
  $slots: S;
22
15
  };
@@ -3,21 +3,14 @@ type __VLS_Props = {
3
3
  readonly isBack?: boolean;
4
4
  readonly mode?: 'in-out' | 'out-in';
5
5
  };
6
- declare function __VLS_template(): {
7
- attrs: Partial<{}>;
8
- slots: Readonly<{
9
- default(): VNode[];
10
- }> & {
11
- default(): VNode[];
12
- };
13
- refs: {};
14
- rootEl: any;
6
+ type __VLS_Slots = {
7
+ default(): VNode[];
15
8
  };
16
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
- declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
18
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
9
+ declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
19
12
  export default _default;
20
- type __VLS_WithTemplateSlots<T, S> = T & {
13
+ type __VLS_WithSlots<T, S> = T & {
21
14
  new (): {
22
15
  $slots: S;
23
16
  };
@@ -2,21 +2,14 @@ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentPr
2
2
  type __VLS_Props = {
3
3
  readonly mode?: 'in-out' | 'out-in';
4
4
  };
5
- declare function __VLS_template(): {
6
- attrs: Partial<{}>;
7
- slots: Readonly<{
8
- default(): VNode[];
9
- }> & {
10
- default(): VNode[];
11
- };
12
- refs: {};
13
- rootEl: any;
5
+ type __VLS_Slots = {
6
+ default(): VNode[];
14
7
  };
15
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
- declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
17
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
8
+ declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
18
11
  export default _default;
19
- type __VLS_WithTemplateSlots<T, S> = T & {
12
+ type __VLS_WithSlots<T, S> = T & {
20
13
  new (): {
21
14
  $slots: S;
22
15
  };
@@ -2,21 +2,14 @@ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentPr
2
2
  type __VLS_Props = {
3
3
  readonly mode?: 'in-out' | 'out-in';
4
4
  };
5
- declare function __VLS_template(): {
6
- attrs: Partial<{}>;
7
- slots: Readonly<{
8
- default(): VNode[];
9
- }> & {
10
- default(): VNode[];
11
- };
12
- refs: {};
13
- rootEl: any;
5
+ type __VLS_Slots = {
6
+ default(): VNode[];
14
7
  };
15
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
- declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
17
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
8
+ declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
18
11
  export default _default;
19
- type __VLS_WithTemplateSlots<T, S> = T & {
12
+ type __VLS_WithSlots<T, S> = T & {
20
13
  new (): {
21
14
  $slots: S;
22
15
  };
@@ -3,21 +3,14 @@ type __VLS_Props = {
3
3
  readonly isBack?: boolean;
4
4
  readonly mode?: 'in-out' | 'out-in';
5
5
  };
6
- declare function __VLS_template(): {
7
- attrs: Partial<{}>;
8
- slots: Readonly<{
9
- default(): VNode[];
10
- }> & {
11
- default(): VNode[];
12
- };
13
- refs: {};
14
- rootEl: any;
6
+ type __VLS_Slots = {
7
+ default(): VNode[];
15
8
  };
16
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
- declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
18
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
9
+ declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
19
12
  export default _default;
20
- type __VLS_WithTemplateSlots<T, S> = T & {
13
+ type __VLS_WithSlots<T, S> = T & {
21
14
  new (): {
22
15
  $slots: S;
23
16
  };
@@ -3,21 +3,14 @@ type __VLS_Props = {
3
3
  readonly isBack?: boolean;
4
4
  readonly mode?: 'in-out' | 'out-in';
5
5
  };
6
- declare function __VLS_template(): {
7
- attrs: Partial<{}>;
8
- slots: Readonly<{
9
- default(): VNode[];
10
- }> & {
11
- default(): VNode[];
12
- };
13
- refs: {};
14
- rootEl: any;
6
+ type __VLS_Slots = {
7
+ default(): VNode[];
15
8
  };
16
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
- declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
18
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
9
+ declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
19
12
  export default _default;
20
- type __VLS_WithTemplateSlots<T, S> = T & {
13
+ type __VLS_WithSlots<T, S> = T & {
21
14
  new (): {
22
15
  $slots: S;
23
16
  };
package/dist/vite.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"vite.js","names":[],"sources":["../src/vite/defineFilterMacro.ts"],"sourcesContent":["import type { Plugin } from 'vite';\n\nconst SCRIPT_SETUP_REGEX = /<script\\b([^>]*)\\bsetup\\b([^>]*)>([\\s\\S]*?)<\\/script>/gi;\n\nfunction defineFilterMacro(): Plugin {\n return {\n name: '@flux-ui/components/define-filter-macro',\n enforce: 'pre',\n\n transform(code, id) {\n if (!id.endsWith('.vue')) {\n return;\n }\n\n if (!code.includes('defineFilter')) {\n return;\n }\n\n let transformed = false;\n\n const newCode = code.replace(SCRIPT_SETUP_REGEX, (match, before, after, content) => {\n if (!content.includes('defineFilter')) {\n return match;\n }\n\n if (content.includes('__filterDefinitionFactory')) {\n return match;\n }\n\n if (containsTopLevelCall(content, 'defineOptions')) {\n return match;\n }\n\n const wrapped = wrapDefineFilter(content);\n\n if (wrapped === content) {\n return match;\n }\n\n transformed = true;\n return `<script${before}setup${after}>${wrapped}</script>`;\n });\n\n if (!transformed) {\n return;\n }\n\n return {\n code: newCode,\n map: null\n };\n }\n };\n}\n\nexport default defineFilterMacro;\n\nfunction wrapDefineFilter(content: string): string {\n const range = findTopLevelCall(content, 'defineFilter');\n\n if (!range) {\n return content;\n }\n\n const callExpression = content.slice(range.callStart, range.callEnd);\n const replacement = `defineOptions({\\n __filterDefinitionFactory: ${callExpression}\\n})`;\n\n return content.slice(0, range.callStart) + replacement + content.slice(range.callEnd);\n}\n\nfunction containsTopLevelCall(content: string, name: string): boolean {\n return findTopLevelCall(content, name) !== null;\n}\n\ntype CallRange = {\n readonly callStart: number;\n readonly callEnd: number;\n};\n\nfunction findTopLevelCall(content: string, name: string): CallRange | null {\n let parenDepth = 0;\n let braceDepth = 0;\n let bracketDepth = 0;\n let inString: string | null = null;\n let inComment: 'single' | 'multi' | null = null;\n\n let i = 0;\n\n while (i < content.length) {\n const c = content[i];\n const n = content[i + 1];\n\n if (inComment === 'single') {\n if (c === '\\n') {\n inComment = null;\n }\n\n i++;\n continue;\n }\n\n if (inComment === 'multi') {\n if (c === '*' && n === '/') {\n inComment = null;\n i += 2;\n continue;\n }\n\n i++;\n continue;\n }\n\n if (inString) {\n if (c === '\\\\') {\n i += 2;\n continue;\n }\n\n if (c === inString) {\n inString = null;\n }\n\n i++;\n continue;\n }\n\n if (c === '/' && n === '/') {\n inComment = 'single';\n i += 2;\n continue;\n }\n\n if (c === '/' && n === '*') {\n inComment = 'multi';\n i += 2;\n continue;\n }\n\n if (c === '\"' || c === '\\'' || c === '`') {\n inString = c;\n i++;\n continue;\n }\n\n if (c === '(') {\n parenDepth++;\n i++;\n continue;\n }\n\n if (c === ')') {\n parenDepth--;\n i++;\n continue;\n }\n\n if (c === '{') {\n braceDepth++;\n i++;\n continue;\n }\n\n if (c === '}') {\n braceDepth--;\n i++;\n continue;\n }\n\n if (c === '[') {\n bracketDepth++;\n i++;\n continue;\n }\n\n if (c === ']') {\n bracketDepth--;\n i++;\n continue;\n }\n\n const isTopLevel = parenDepth === 0 && braceDepth === 0 && bracketDepth === 0;\n\n if (!isTopLevel || !content.startsWith(name, i)) {\n i++;\n continue;\n }\n\n const prevChar = i > 0 ? content[i - 1] : '';\n\n if (/[A-Za-z0-9_$]/.test(prevChar)) {\n i++;\n continue;\n }\n\n const afterName = i + name.length;\n const nextChar = content[afterName];\n\n if (nextChar && /[A-Za-z0-9_$]/.test(nextChar)) {\n i++;\n continue;\n }\n\n const callOpen = skipGenericAndWhitespace(content, afterName);\n\n if (callOpen === -1 || content[callOpen] !== '(') {\n i++;\n continue;\n }\n\n const callClose = matchClosingParen(content, callOpen);\n\n if (callClose === -1) {\n return null;\n }\n\n return {\n callStart: i,\n callEnd: callClose + 1\n };\n }\n\n return null;\n}\n\nfunction skipGenericAndWhitespace(content: string, start: number): number {\n let i = start;\n\n while (i < content.length && /\\s/.test(content[i])) {\n i++;\n }\n\n if (content[i] !== '<') {\n return i;\n }\n\n let depth = 1;\n i++;\n\n while (i < content.length && depth > 0) {\n const c = content[i];\n\n if (c === '<') {\n depth++;\n } else if (c === '>') {\n depth--;\n }\n\n i++;\n }\n\n while (i < content.length && /\\s/.test(content[i])) {\n i++;\n }\n\n return i;\n}\n\nfunction matchClosingParen(content: string, openIndex: number): number {\n let depth = 1;\n let inString: string | null = null;\n let inComment: 'single' | 'multi' | null = null;\n\n let i = openIndex + 1;\n\n while (i < content.length) {\n const c = content[i];\n const n = content[i + 1];\n\n if (inComment === 'single') {\n if (c === '\\n') {\n inComment = null;\n }\n\n i++;\n continue;\n }\n\n if (inComment === 'multi') {\n if (c === '*' && n === '/') {\n inComment = null;\n i += 2;\n continue;\n }\n\n i++;\n continue;\n }\n\n if (inString) {\n if (c === '\\\\') {\n i += 2;\n continue;\n }\n\n if (c === inString) {\n inString = null;\n }\n\n i++;\n continue;\n }\n\n if (c === '/' && n === '/') {\n inComment = 'single';\n i += 2;\n continue;\n }\n\n if (c === '/' && n === '*') {\n inComment = 'multi';\n i += 2;\n continue;\n }\n\n if (c === '\"' || c === '\\'' || c === '`') {\n inString = c;\n i++;\n continue;\n }\n\n if (c === '(') {\n depth++;\n } else if (c === ')') {\n depth--;\n\n if (depth === 0) {\n return i;\n }\n }\n\n i++;\n }\n\n return -1;\n}\n"],"mappings":";AAEA,IAAM,qBAAqB;AAE3B,SAAS,oBAA4B;AACjC,QAAO;EACH,MAAM;EACN,SAAS;EAET,UAAU,MAAM,IAAI;AAChB,OAAI,CAAC,GAAG,SAAS,OAAO,CACpB;AAGJ,OAAI,CAAC,KAAK,SAAS,eAAe,CAC9B;GAGJ,IAAI,cAAc;GAElB,MAAM,UAAU,KAAK,QAAQ,qBAAqB,OAAO,QAAQ,OAAO,YAAY;AAChF,QAAI,CAAC,QAAQ,SAAS,eAAe,CACjC,QAAO;AAGX,QAAI,QAAQ,SAAS,4BAA4B,CAC7C,QAAO;AAGX,QAAI,qBAAqB,SAAS,gBAAgB,CAC9C,QAAO;IAGX,MAAM,UAAU,iBAAiB,QAAQ;AAEzC,QAAI,YAAY,QACZ,QAAO;AAGX,kBAAc;AACd,WAAO,UAAU,OAAO,OAAO,MAAM,GAAG,QAAQ;KAClD;AAEF,OAAI,CAAC,YACD;AAGJ,UAAO;IACH,MAAM;IACN,KAAK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UAAU;AACxB,OAAI,MAAM,KACN,aAAY;AAGhB;AACA;;AAGJ,MAAI,cAAc,SAAS;AACvB,OAAI,MAAM,OAAO,MAAM,KAAK;AACxB,gBAAY;AACZ,SAAK;AACL;;AAGJ;AACA;;AAGJ,MAAI,UAAU;AACV,OAAI,MAAM,MAAM;AACZ,SAAK;AACL;;AAGJ,OAAI,MAAM,SACN,YAAW;AAGf;AACA;;AAGJ,MAAI,MAAM,OAAO,MAAM,KAAK;AACxB,eAAY;AACZ,QAAK;AACL;;AAGJ,MAAI,MAAM,OAAO,MAAM,KAAK;AACxB,eAAY;AACZ,QAAK;AACL;;AAGJ,MAAI,MAAM,QAAO,MAAM,OAAQ,MAAM,KAAK;AACtC,cAAW;AACX;AACA;;AAGJ,MAAI,MAAM,IACN;WACO,MAAM,KAAK;AAClB;AAEA,OAAI,UAAU,EACV,QAAO;;AAIf;;AAGJ,QAAO"}
1
+ {"version":3,"file":"vite.js","names":[],"sources":["../src/vite/defineFilterMacro.ts"],"sourcesContent":["import type { Plugin } from 'vite';\n\nconst SCRIPT_SETUP_REGEX = /<script\\b([^>]*)\\bsetup\\b([^>]*)>([\\s\\S]*?)<\\/script>/gi;\n\nfunction defineFilterMacro(): Plugin {\n return {\n name: '@flux-ui/components/define-filter-macro',\n enforce: 'pre',\n\n transform(code, id) {\n if (!id.endsWith('.vue')) {\n return;\n }\n\n if (!code.includes('defineFilter')) {\n return;\n }\n\n let transformed = false;\n\n const newCode = code.replace(SCRIPT_SETUP_REGEX, (match, before, after, content) => {\n if (!content.includes('defineFilter')) {\n return match;\n }\n\n if (content.includes('__filterDefinitionFactory')) {\n return match;\n }\n\n if (containsTopLevelCall(content, 'defineOptions')) {\n return match;\n }\n\n const wrapped = wrapDefineFilter(content);\n\n if (wrapped === content) {\n return match;\n }\n\n transformed = true;\n return `<script${before}setup${after}>${wrapped}</script>`;\n });\n\n if (!transformed) {\n return;\n }\n\n return {\n code: newCode,\n map: null\n };\n }\n };\n}\n\nexport default defineFilterMacro;\n\nfunction wrapDefineFilter(content: string): string {\n const range = findTopLevelCall(content, 'defineFilter');\n\n if (!range) {\n return content;\n }\n\n const callExpression = content.slice(range.callStart, range.callEnd);\n const replacement = `defineOptions({\\n __filterDefinitionFactory: ${callExpression}\\n})`;\n\n return content.slice(0, range.callStart) + replacement + content.slice(range.callEnd);\n}\n\nfunction containsTopLevelCall(content: string, name: string): boolean {\n return findTopLevelCall(content, name) !== null;\n}\n\ntype CallRange = {\n readonly callStart: number;\n readonly callEnd: number;\n};\n\nfunction findTopLevelCall(content: string, name: string): CallRange | null {\n let parenDepth = 0;\n let braceDepth = 0;\n let bracketDepth = 0;\n let inString: string | null = null;\n let inComment: 'single' | 'multi' | null = null;\n\n let i = 0;\n\n while (i < content.length) {\n const c = content[i];\n const n = content[i + 1];\n\n if (inComment === 'single') {\n if (c === '\\n') {\n inComment = null;\n }\n\n i++;\n continue;\n }\n\n if (inComment === 'multi') {\n if (c === '*' && n === '/') {\n inComment = null;\n i += 2;\n continue;\n }\n\n i++;\n continue;\n }\n\n if (inString) {\n if (c === '\\\\') {\n i += 2;\n continue;\n }\n\n if (c === inString) {\n inString = null;\n }\n\n i++;\n continue;\n }\n\n if (c === '/' && n === '/') {\n inComment = 'single';\n i += 2;\n continue;\n }\n\n if (c === '/' && n === '*') {\n inComment = 'multi';\n i += 2;\n continue;\n }\n\n if (c === '\"' || c === '\\'' || c === '`') {\n inString = c;\n i++;\n continue;\n }\n\n if (c === '(') {\n parenDepth++;\n i++;\n continue;\n }\n\n if (c === ')') {\n parenDepth--;\n i++;\n continue;\n }\n\n if (c === '{') {\n braceDepth++;\n i++;\n continue;\n }\n\n if (c === '}') {\n braceDepth--;\n i++;\n continue;\n }\n\n if (c === '[') {\n bracketDepth++;\n i++;\n continue;\n }\n\n if (c === ']') {\n bracketDepth--;\n i++;\n continue;\n }\n\n const isTopLevel = parenDepth === 0 && braceDepth === 0 && bracketDepth === 0;\n\n if (!isTopLevel || !content.startsWith(name, i)) {\n i++;\n continue;\n }\n\n const prevChar = i > 0 ? content[i - 1] : '';\n\n if (/[A-Za-z0-9_$]/.test(prevChar)) {\n i++;\n continue;\n }\n\n const afterName = i + name.length;\n const nextChar = content[afterName];\n\n if (nextChar && /[A-Za-z0-9_$]/.test(nextChar)) {\n i++;\n continue;\n }\n\n const callOpen = skipGenericAndWhitespace(content, afterName);\n\n if (callOpen === -1 || content[callOpen] !== '(') {\n i++;\n continue;\n }\n\n const callClose = matchClosingParen(content, callOpen);\n\n if (callClose === -1) {\n return null;\n }\n\n return {\n callStart: i,\n callEnd: callClose + 1\n };\n }\n\n return null;\n}\n\nfunction skipGenericAndWhitespace(content: string, start: number): number {\n let i = start;\n\n while (i < content.length && /\\s/.test(content[i])) {\n i++;\n }\n\n if (content[i] !== '<') {\n return i;\n }\n\n let depth = 1;\n i++;\n\n while (i < content.length && depth > 0) {\n const c = content[i];\n\n if (c === '<') {\n depth++;\n } else if (c === '>') {\n depth--;\n }\n\n i++;\n }\n\n while (i < content.length && /\\s/.test(content[i])) {\n i++;\n }\n\n return i;\n}\n\nfunction matchClosingParen(content: string, openIndex: number): number {\n let depth = 1;\n let inString: string | null = null;\n let inComment: 'single' | 'multi' | null = null;\n\n let i = openIndex + 1;\n\n while (i < content.length) {\n const c = content[i];\n const n = content[i + 1];\n\n if (inComment === 'single') {\n if (c === '\\n') {\n inComment = null;\n }\n\n i++;\n continue;\n }\n\n if (inComment === 'multi') {\n if (c === '*' && n === '/') {\n inComment = null;\n i += 2;\n continue;\n }\n\n i++;\n continue;\n }\n\n if (inString) {\n if (c === '\\\\') {\n i += 2;\n continue;\n }\n\n if (c === inString) {\n inString = null;\n }\n\n i++;\n continue;\n }\n\n if (c === '/' && n === '/') {\n inComment = 'single';\n i += 2;\n continue;\n }\n\n if (c === '/' && n === '*') {\n inComment = 'multi';\n i += 2;\n continue;\n }\n\n if (c === '\"' || c === '\\'' || c === '`') {\n inString = c;\n i++;\n continue;\n }\n\n if (c === '(') {\n depth++;\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OAAO;;EAIf;;CAGJ,OAAO"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@flux-ui/components",
3
3
  "description": "A set of opiniated UI components.",
4
- "version": "3.0.0-next.66",
4
+ "version": "3.0.0-next.67",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/basmilius",
@@ -55,10 +55,10 @@
55
55
  "**/dist/index.css"
56
56
  ],
57
57
  "dependencies": {
58
- "@basmilius/common": "^3.25.0",
59
- "@basmilius/utils": "^3.25.0",
60
- "@flux-ui/internals": "3.0.0-next.66",
61
- "@flux-ui/types": "3.0.0-next.66",
58
+ "@basmilius/common": "^3.30.0",
59
+ "@basmilius/utils": "^3.30.0",
60
+ "@flux-ui/internals": "3.0.0-next.67",
61
+ "@flux-ui/types": "3.0.0-next.67",
62
62
  "@fortawesome/fontawesome-common-types": "^7.2.0",
63
63
  "clsx": "^2.1.1",
64
64
  "imask": "^7.6.1",
@@ -66,10 +66,10 @@
66
66
  },
67
67
  "peerDependencies": {
68
68
  "luxon": "^3.7.2",
69
- "vue": "^3.6.0-beta.10"
69
+ "vue": "^3.6.0-beta.11"
70
70
  },
71
71
  "devDependencies": {
72
- "@basmilius/vite-preset": "^3.25.0",
72
+ "@basmilius/vite-preset": "^3.30.0",
73
73
  "@types/lodash-es": "^4.17.12",
74
74
  "@types/luxon": "^3.7.1",
75
75
  "@types/node": "^25.6.0",
@@ -77,7 +77,7 @@
77
77
  "@vue/tsconfig": "^0.9.1",
78
78
  "sass-embedded": "^1.99.0",
79
79
  "typescript": "^6.0.3",
80
- "vite": "^8.0.10",
80
+ "vite": "^8.0.11",
81
81
  "vue-tsc": "^3.2.8"
82
82
  }
83
83
  }
@@ -1,5 +1,6 @@
1
1
  <template>
2
2
  <FluxTable
3
+ ref="table"
3
4
  :fill-columns="fillColumns"
4
5
  :is-bordered="isBordered"
5
6
  :is-hoverable="isHoverable"
@@ -65,7 +66,7 @@
65
66
  <FluxTableRow
66
67
  v-for="(item, index) of limitedItems"
67
68
  :key="uniqueKey ? item[uniqueKey] : index"
68
- :class="selectionMode && $style.isSelectableRow"
69
+ :class="selectionMode && !treeDisabled && $style.isSelectableRow"
69
70
  :is-selected="selectionMode ? isItemSelected(item) : false"
70
71
  @click="onRowClick(item, $event)">
71
72
  <FluxTableCell
@@ -90,7 +91,8 @@
90
91
  lang="ts"
91
92
  setup
92
93
  generic="T extends Record<string, any>">
93
- import { computed, unref, type VNode } from 'vue';
94
+ import { computed, unref, useTemplateRef, type VNode, watch } from 'vue';
95
+ import { useDisabledInjection } from '~flux/components/composable';
94
96
  import FluxCheckbox from './FluxCheckbox.vue';
95
97
  import FluxPaginationBar from './FluxPaginationBar.vue';
96
98
  import FluxTable from './FluxTable.vue';
@@ -179,6 +181,9 @@
179
181
  colgroups(): VNode;
180
182
  }>();
181
183
 
184
+ const table = useTemplateRef('table');
185
+ const treeDisabled = useDisabledInjection();
186
+
182
187
  const limitedItems = computed(() => items.slice(0, perPage));
183
188
 
184
189
  const currentPageIds = computed<SelectionId[]>(() => {
@@ -239,7 +244,7 @@
239
244
  }
240
245
 
241
246
  function onRowClick(item: T, event: MouseEvent): void {
242
- if (!selectionMode) {
247
+ if (!selectionMode || unref(treeDisabled)) {
243
248
  return;
244
249
  }
245
250
 
@@ -292,4 +297,8 @@
292
297
  if (import.meta.env.DEV && selectionMode && !uniqueKey) {
293
298
  console.warn('[FluxDataTable] `uniqueKey` is required when `selectionMode` is set, otherwise rows cannot be tracked across renders.');
294
299
  }
300
+
301
+ watch(() => items, () => {
302
+ unref(table)?.$el.scrollTo(0, 0);
303
+ });
295
304
  </script>
@@ -1,5 +1,10 @@
1
1
  <template>
2
- <div :class="[$style.table, isBordered && $style.isBordered]">
2
+ <div
3
+ ref="base"
4
+ :class="[
5
+ $style.table,
6
+ isBordered && $style.isBordered
7
+ ]">
3
8
  <table :class="$style.tableBase">
4
9
  <slot name="colgroups"/>
5
10
 
@@ -30,7 +35,8 @@
30
35
 
31
36
  <div
32
37
  v-if="isLoading"
33
- :class="$style.tableLoader">
38
+ :class="$style.tableLoader"
39
+ :style="{transform: `translate(${x}px, ${y}px)`}">
34
40
  <FluxSpinner/>
35
41
  </div>
36
42
 
@@ -45,7 +51,8 @@
45
51
  <script
46
52
  lang="ts"
47
53
  setup>
48
- import { provide, type VNode } from 'vue';
54
+ import { useScrollPosition } from '@flux-ui/internals';
55
+ import { provide, useTemplateRef, type VNode } from 'vue';
49
56
  import { FluxTableInjectionKey } from '~flux/components/data';
50
57
  import FluxPaneBody from './FluxPaneBody.vue';
51
58
  import FluxSpinner from './FluxSpinner.vue';
@@ -79,6 +86,9 @@
79
86
  pagination?(): VNode;
80
87
  }>();
81
88
 
89
+ const base = useTemplateRef('base');
90
+ const {x, y} = useScrollPosition(base);
91
+
82
92
  provide(FluxTableInjectionKey, {
83
93
  isBordered,
84
94
  isHoverable,
@@ -651,7 +651,7 @@
651
651
  transition-property: opacity;
652
652
 
653
653
  :is(path) {
654
- stroke: white;
654
+ stroke: currentColor;
655
655
  stroke-width: 54px;
656
656
  }
657
657
  }
@@ -684,6 +684,16 @@
684
684
  &:focus-visible + .checkboxElement {
685
685
  @include mixin.focus-outline-visible(2px);
686
686
  }
687
+
688
+ &:disabled {
689
+ cursor: not-allowed;
690
+ }
691
+
692
+ &:disabled + .checkboxElement {
693
+ background: var(--gray-100);
694
+ border-color: var(--gray-200);
695
+ color: var(--foreground-secondary);
696
+ }
687
697
  }
688
698
 
689
699
  .quantitySelector {
@@ -813,6 +823,12 @@
813
823
  border-radius: var(--radius-full);
814
824
  contain: paint;
815
825
 
826
+ @include mixin.focus-outline;
827
+
828
+ &:has(.toggleInput:focus-visible) {
829
+ @include mixin.focus-outline-visible(2px);
830
+ }
831
+
816
832
  &.isChecked {
817
833
  border-color: transparent;
818
834
 
@@ -890,8 +906,6 @@
890
906
  cursor: pointer;
891
907
  outline: 0;
892
908
 
893
- @include mixin.focus-ring(2px);
894
-
895
909
  &::after {
896
910
  position: absolute;
897
911
  display: block;
@@ -31,7 +31,6 @@ export default function (attrs: object, props: Props, emit: Emit, slots: Slots,
31
31
  }
32
32
 
33
33
  dialog.addEventListener('keydown', onKeyDown, {passive: true});
34
- dialog.focus();
35
34
 
36
35
  onCleanup(() => {
37
36
  dialog.removeEventListener('keydown', onKeyDown);