@vef-framework/components 1.0.5 → 1.0.7

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 (246) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/internal/index.js +1 -1
  3. package/dist/internal/utils.js +1 -1
  4. package/dist/vef-access-denied/access-denied-icon.js +1 -1
  5. package/dist/vef-access-denied/index.js +1 -1
  6. package/dist/vef-action-buttons/index.js +1 -1
  7. package/dist/vef-badge/index.js +1 -1
  8. package/dist/vef-bool/hooks/use-bool-instance.js +1 -1
  9. package/dist/vef-bool/index.js +1 -1
  10. package/dist/vef-button/components/base-button.js +1 -1
  11. package/dist/vef-button/index.js +1 -1
  12. package/dist/vef-card/index.js +2 -2
  13. package/dist/vef-card-meta/index.js +1 -1
  14. package/dist/vef-checkbox/hooks/use-checkbox-instance.js +1 -1
  15. package/dist/vef-checkbox/hooks/use-data-options.js +1 -1
  16. package/dist/vef-checkbox/index.js +1 -1
  17. package/dist/vef-col/index.js +1 -1
  18. package/dist/vef-color-picker/index.js +2 -2
  19. package/dist/vef-compact/index.js +1 -1
  20. package/dist/vef-config-provider/fonts/din/bold.woff2.js +1 -1
  21. package/dist/vef-config-provider/fonts/din/regular.woff2.js +1 -1
  22. package/dist/vef-config-provider/hooks/use-ui-config.js +1 -1
  23. package/dist/vef-config-provider/index.js +1 -1
  24. package/dist/vef-config-provider/reset-style.js +1 -1
  25. package/dist/vef-config-provider/store.js +1 -1
  26. package/dist/vef-container/index.js +1 -1
  27. package/dist/vef-crud-page/components/crud-actions.js +1 -1
  28. package/dist/vef-crud-page/components/crud-filter.js +1 -1
  29. package/dist/vef-crud-page/components/crud-footer.js +1 -1
  30. package/dist/vef-crud-page/components/crud-form-modal.js +1 -1
  31. package/dist/vef-crud-page/components/crud-header.js +1 -1
  32. package/dist/vef-crud-page/components/crud-table.js +1 -1
  33. package/dist/vef-crud-page/hooks/use-action-buttons.js +1 -1
  34. package/dist/vef-crud-page/hooks/use-crud-context.js +1 -1
  35. package/dist/vef-crud-page/hooks/use-crud-schema.js +1 -1
  36. package/dist/vef-crud-page/hooks/use-operation-buttons.js +1 -1
  37. package/dist/vef-crud-page/index.js +1 -1
  38. package/dist/vef-crud-page/store.js +1 -1
  39. package/dist/vef-divider/index.js +1 -1
  40. package/dist/vef-drawer/components/action-button-wrapper.js +1 -1
  41. package/dist/vef-drawer/components/button-props.js +1 -1
  42. package/dist/vef-drawer/components/cancel-action-button.js +1 -1
  43. package/dist/vef-drawer/components/ok-action-button.js +1 -1
  44. package/dist/vef-drawer/context.js +1 -1
  45. package/dist/vef-drawer/index.js +1 -1
  46. package/dist/vef-dropdown/index.js +2 -2
  47. package/dist/vef-empty/index.js +1 -1
  48. package/dist/vef-empty-placeholder/index.js +1 -1
  49. package/dist/vef-error/error-icon.js +1 -1
  50. package/dist/vef-error/index.js +1 -1
  51. package/dist/vef-filter/components/action-buttons.js +1 -1
  52. package/dist/vef-filter/components/advanced-filter.js +1 -1
  53. package/dist/vef-filter/components/basic-filter.js +1 -1
  54. package/dist/vef-filter/components/fields/index.js +2 -2
  55. package/dist/vef-filter/components/fields/input-number.js +1 -1
  56. package/dist/vef-filter/components/fields/input.js +1 -1
  57. package/dist/vef-filter/components/filter-field.js +1 -1
  58. package/dist/vef-filter/components/filter-item.js +2 -2
  59. package/dist/vef-filter/event.js +1 -1
  60. package/dist/vef-filter/helper.js +1 -1
  61. package/dist/vef-filter/hooks/use-action-handlers.js +1 -1
  62. package/dist/vef-filter/hooks/use-computed-values.js +1 -1
  63. package/dist/vef-filter/hooks/use-filter-context.js +1 -1
  64. package/dist/vef-filter/hooks/use-filter-initialization.js +1 -1
  65. package/dist/vef-filter/hooks/use-filter-instance.js +1 -1
  66. package/dist/vef-filter/hooks/use-filter-items.d.ts +1 -2
  67. package/dist/vef-filter/hooks/use-filter-items.js +1 -1
  68. package/dist/vef-filter/hooks/use-filter-values-change.js +1 -1
  69. package/dist/vef-filter/hooks/use-label-config.js +1 -1
  70. package/dist/vef-filter/index.js +1 -1
  71. package/dist/vef-filter/store.js +2 -2
  72. package/dist/vef-flex/index.js +2 -2
  73. package/dist/vef-flex/props.d.ts +1 -2
  74. package/dist/vef-float-button/index.js +1 -1
  75. package/dist/vef-float-button/props.d.ts +1 -1
  76. package/dist/vef-float-button-group/index.js +1 -1
  77. package/dist/vef-form/components/fields/index.js +2 -2
  78. package/dist/vef-form/components/fields/input-number.js +1 -1
  79. package/dist/vef-form/components/fields/input.js +1 -1
  80. package/dist/vef-form/components/fields/props.d.ts +1 -2
  81. package/dist/vef-form/components/form-actions.js +1 -1
  82. package/dist/vef-form/components/form-content.js +1 -1
  83. package/dist/vef-form/components/form-field.js +1 -1
  84. package/dist/vef-form/components/form-group.js +1 -1
  85. package/dist/vef-form/components/form-hidden-item.js +1 -1
  86. package/dist/vef-form/components/form-item.js +2 -2
  87. package/dist/vef-form/components/form-row.js +1 -1
  88. package/dist/vef-form/event.js +1 -1
  89. package/dist/vef-form/helper.js +1 -1
  90. package/dist/vef-form/hooks/use-action-handlers.js +1 -1
  91. package/dist/vef-form/hooks/use-columns-layout.js +1 -1
  92. package/dist/vef-form/hooks/use-computed-values.js +1 -1
  93. package/dist/vef-form/hooks/use-form-context.js +1 -1
  94. package/dist/vef-form/hooks/use-form-initialization.js +1 -1
  95. package/dist/vef-form/hooks/use-form-instance.js +1 -1
  96. package/dist/vef-form/hooks/use-form-values-change.js +1 -1
  97. package/dist/vef-form/hooks/use-label-width.js +1 -1
  98. package/dist/vef-form/index.js +1 -1
  99. package/dist/vef-form/props.d.ts +1 -2
  100. package/dist/vef-form/store.js +1 -1
  101. package/dist/vef-form/types.d.ts +1 -2
  102. package/dist/vef-form/validation-rules.js +1 -1
  103. package/dist/vef-form-drawer/index.js +1 -1
  104. package/dist/vef-form-drawer/props.d.ts +1 -2
  105. package/dist/vef-form-modal/index.js +1 -1
  106. package/dist/vef-form-modal/props.d.ts +1 -2
  107. package/dist/vef-grid/index.js +1 -1
  108. package/dist/vef-grid/props.js +1 -1
  109. package/dist/vef-grid-item/index.js +1 -1
  110. package/dist/vef-icon/index.js +1 -1
  111. package/dist/vef-input/hooks/use-input-instance.js +1 -1
  112. package/dist/vef-input/index.js +2 -2
  113. package/dist/vef-input-number/hooks/use-input-number-instance.js +1 -1
  114. package/dist/vef-input-number/index.js +1 -1
  115. package/dist/vef-loading-placeholder/index.js +1 -1
  116. package/dist/vef-login/index.js +1 -1
  117. package/dist/vef-login/login-icon.js +1 -1
  118. package/dist/vef-modal/components/action-button-wrapper.js +1 -1
  119. package/dist/vef-modal/components/button-props.js +1 -1
  120. package/dist/vef-modal/components/cancel-action-button.js +1 -1
  121. package/dist/vef-modal/components/ok-action-button.js +1 -1
  122. package/dist/vef-modal/context.js +1 -1
  123. package/dist/vef-modal/index.js +3 -3
  124. package/dist/vef-modal/props.d.ts +1 -2
  125. package/dist/vef-not-found/index.js +1 -1
  126. package/dist/vef-not-found/not-found-icon.js +1 -1
  127. package/dist/vef-page/index.js +1 -1
  128. package/dist/vef-pagination/index.js +1 -1
  129. package/dist/vef-pagination/props.js +1 -1
  130. package/dist/vef-paragraph/index.js +2 -2
  131. package/dist/vef-paragraph/props.d.ts +1 -2
  132. package/dist/vef-password/hooks/use-password-instance.js +1 -1
  133. package/dist/vef-password/index.js +2 -2
  134. package/dist/vef-popconfirm/index.js +1 -1
  135. package/dist/vef-popover/index.js +1 -1
  136. package/dist/vef-radio/hooks/use-data-options.d.ts +1 -2
  137. package/dist/vef-radio/hooks/use-data-options.js +1 -1
  138. package/dist/vef-radio/hooks/use-radio-instance.js +1 -1
  139. package/dist/vef-radio/index.d.ts +1 -2
  140. package/dist/vef-radio/index.js +1 -1
  141. package/dist/vef-radio/props.d.ts +1 -2
  142. package/dist/vef-rate/hooks/use-rate-instance.js +1 -1
  143. package/dist/vef-rate/index.js +2 -2
  144. package/dist/vef-responsive-container/index.js +3 -3
  145. package/dist/vef-responsive-container/props.d.ts +1 -2
  146. package/dist/vef-responsive-item/index.js +1 -1
  147. package/dist/vef-responsive-item/props.d.ts +1 -2
  148. package/dist/vef-ribbon/index.js +1 -1
  149. package/dist/vef-row/index.js +1 -1
  150. package/dist/vef-row/props.d.ts +1 -1
  151. package/dist/vef-scroll-area/components/scrollbar.js +1 -1
  152. package/dist/vef-scroll-area/index.js +1 -1
  153. package/dist/vef-select/components/option.js +1 -1
  154. package/dist/vef-select/hooks/use-data-options.d.ts +1 -2
  155. package/dist/vef-select/hooks/use-data-options.js +1 -1
  156. package/dist/vef-select/hooks/use-field-names.js +1 -1
  157. package/dist/vef-select/hooks/use-label-render.js +1 -1
  158. package/dist/vef-select/hooks/use-option-render.js +1 -1
  159. package/dist/vef-select/hooks/use-select-instance.js +1 -1
  160. package/dist/vef-select/index.d.ts +1 -2
  161. package/dist/vef-select/index.js +1 -1
  162. package/dist/vef-select/props.d.ts +1 -2
  163. package/dist/vef-slider/hooks/use-slider-instance.js +1 -1
  164. package/dist/vef-slider/index.js +1 -1
  165. package/dist/vef-sortable-list/components/overlay-item.js +1 -1
  166. package/dist/vef-sortable-list/components/sortable-item.js +1 -1
  167. package/dist/vef-sortable-list/hooks/use-merged-items.js +1 -1
  168. package/dist/vef-sortable-list/index.js +1 -1
  169. package/dist/vef-space/index.js +2 -2
  170. package/dist/vef-space/props.d.ts +1 -2
  171. package/dist/vef-spin/index.js +1 -1
  172. package/dist/vef-spin/props.d.ts +1 -2
  173. package/dist/vef-splitter/index.js +1 -1
  174. package/dist/vef-splitter/props.d.ts +1 -2
  175. package/dist/vef-splitter-panel/index.js +1 -1
  176. package/dist/vef-status/index.js +1 -1
  177. package/dist/vef-table/components/columns/bool.js +1 -1
  178. package/dist/vef-table/components/columns/code.js +1 -1
  179. package/dist/vef-table/components/columns/data-dictionary.js +1 -1
  180. package/dist/vef-table/components/columns/enum.js +1 -1
  181. package/dist/vef-table/components/columns/file.js +1 -1
  182. package/dist/vef-table/components/columns/icon.js +1 -1
  183. package/dist/vef-table/components/columns/id.js +1 -1
  184. package/dist/vef-table/components/columns/image.js +1 -1
  185. package/dist/vef-table/components/columns/index.js +2 -2
  186. package/dist/vef-table/components/columns/markdown.js +1 -1
  187. package/dist/vef-table/components/columns/number.js +1 -1
  188. package/dist/vef-table/components/columns/props.d.ts +1 -2
  189. package/dist/vef-table/components/columns/render.js +1 -1
  190. package/dist/vef-table/components/columns/rich-text.js +1 -1
  191. package/dist/vef-table/components/columns/text.js +1 -1
  192. package/dist/vef-table/components/columns-settings.js +1 -1
  193. package/dist/vef-table/components/operation-buttons.js +1 -1
  194. package/dist/vef-table/components/settings-icon.js +1 -1
  195. package/dist/vef-table/components/table-footer.js +1 -1
  196. package/dist/vef-table/helper.js +1 -1
  197. package/dist/vef-table/hooks/use-computed-batch-buttons.js +1 -1
  198. package/dist/vef-table/hooks/use-computed-columns.js +1 -1
  199. package/dist/vef-table/hooks/use-computed-values.js +1 -1
  200. package/dist/vef-table/hooks/use-data.js +1 -1
  201. package/dist/vef-table/hooks/use-default-column-configs.js +1 -1
  202. package/dist/vef-table/hooks/use-display-value.js +1 -1
  203. package/dist/vef-table/hooks/use-helper-columns.js +2 -2
  204. package/dist/vef-table/hooks/use-merged-value.js +1 -1
  205. package/dist/vef-table/hooks/use-operation-column-width.js +1 -1
  206. package/dist/vef-table/hooks/use-pagination-props.js +1 -1
  207. package/dist/vef-table/hooks/use-row-props.js +1 -1
  208. package/dist/vef-table/hooks/use-row-selection-config.js +1 -1
  209. package/dist/vef-table/hooks/use-table-columns.js +1 -1
  210. package/dist/vef-table/hooks/use-table-context.js +1 -1
  211. package/dist/vef-table/hooks/use-table-instance.js +1 -1
  212. package/dist/vef-table/hooks/use-table-summary.js +2 -2
  213. package/dist/vef-table/hooks/use-table-width.js +1 -1
  214. package/dist/vef-table/index.js +1 -1
  215. package/dist/vef-table/store.js +1 -1
  216. package/dist/vef-tabs/index.js +1 -1
  217. package/dist/vef-tabs/props.d.ts +1 -2
  218. package/dist/vef-tag/index.js +1 -1
  219. package/dist/vef-tag/props.d.ts +1 -2
  220. package/dist/vef-temporal-picker/{hooks/use-temporal-formats.d.ts → helper.d.ts} +2 -2
  221. package/dist/vef-temporal-picker/{hooks/use-temporal-formats.js → helper.js} +2 -2
  222. package/dist/vef-temporal-picker/hooks/use-dayjs-value.js +2 -2
  223. package/dist/vef-temporal-picker/hooks/use-temporal-limit.js +2 -2
  224. package/dist/vef-temporal-picker/hooks/use-temporal-picker-instance.js +1 -1
  225. package/dist/vef-temporal-picker/index.js +2 -2
  226. package/dist/vef-temporal-range-picker/{hooks/use-temporal-formats.d.ts → helper.d.ts} +2 -2
  227. package/dist/vef-temporal-range-picker/{hooks/use-temporal-formats.js → helper.js} +2 -2
  228. package/dist/vef-temporal-range-picker/hooks/use-dayjs-values.js +2 -2
  229. package/dist/vef-temporal-range-picker/hooks/use-temporal-limit.js +2 -2
  230. package/dist/vef-temporal-range-picker/hooks/use-temporal-range-picker-instance.js +1 -1
  231. package/dist/vef-temporal-range-picker/index.js +2 -2
  232. package/dist/vef-temporal-range-picker/props.js +1 -1
  233. package/dist/vef-text/index.js +1 -1
  234. package/dist/vef-text/props.d.ts +1 -2
  235. package/dist/vef-textarea/hooks/use-textarea-instance.js +1 -1
  236. package/dist/vef-textarea/index.js +2 -2
  237. package/dist/vef-title/index.js +1 -1
  238. package/dist/vef-title/props.d.ts +1 -2
  239. package/dist/vef-tooltip/index.js +1 -1
  240. package/dist/vef-tree-select/hooks/use-change-handler.js +1 -1
  241. package/dist/vef-tree-select/hooks/use-data-options.js +1 -1
  242. package/dist/vef-tree-select/hooks/use-tree-select-instance.js +1 -1
  243. package/dist/vef-tree-select/index.d.ts +1 -2
  244. package/dist/vef-tree-select/index.js +1 -1
  245. package/dist/vef-tree-select/props.d.ts +1 -2
  246. package/package.json +5 -4
@@ -1,6 +1,5 @@
1
- import type { ColorType } from "@vef-framework/shared";
1
+ import type { ColorType, Except } from "@vef-framework/shared";
2
2
  import type { TagProps } from "antd";
3
- import type { Except } from "@vef-framework/shared";
4
3
  /**
5
4
  * The props of VefTag component.
6
5
  */
@@ -1,8 +1,8 @@
1
- import type { TemporalPickerMode } from "../props";
1
+ import type { TemporalPickerMode } from "./props";
2
2
  /**
3
3
  * The hook to get the formats of the temporal picker.
4
4
  *
5
5
  * @param mode - The mode of the temporal picker.
6
6
  * @returns The formats of the temporal picker.
7
7
  */
8
- export declare function useTemporalFormats(mode: TemporalPickerMode): string[];
8
+ export declare function getTemporalFormats(mode: TemporalPickerMode): string[];
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
2
- const Y=["YYYY"],M=["YYYY-Q季度"],m=["YYYY-MM","YYYY/MM","YYYY.MM","YYYYMM"],D=["YYYY-wo"],H=["YYYY-MM-DD","YYYY/MM/DD","YYYY.MM.DD","YYYYMMDD","YY/MM/DD","YY.MM.DD","YYMMDD"],s=["HH:mm:ss","HH.mm.ss","HHmmss"],e=["HH"],t=["HH:mm","HH.mm","HHmm"],r=["YYYY-MM-DD HH:mm:ss","YYYY/MM/DD HH:mm:ss","YYYY.MM.DD HH.mm.ss","YYYYMMDDHHmmss","YY/MM/DD HH:mm:ss","YY.MM.DD HH:mm:ss","YY.MM.DD HH.mm.ss","YYMMDDHHmmss"];function n(n){return"year"===n?Y:"quarter"===n?M:"month"===n?m:"week"===n?D:"datetime"===n?r:"date"===n?H:"time"===n?s:"hour"===n?e:"minute"===n?t:[]}export{n as useTemporalFormats};
1
+ /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
+ const Y=["YYYY"],M=["YYYY-Q季度"],m=["YYYY-MM","YYYY/MM","YYYY.MM","YYYYMM"],D=["YYYY-wo"],H=["YYYY-MM-DD","YYYY/MM/DD","YYYY.MM.DD","YYYYMMDD","YY/MM/DD","YY.MM.DD","YYMMDD"],s=["HH:mm:ss","HH.mm.ss","HHmmss"],e=["HH"],t=["HH:mm","HH.mm","HHmm"],r=["YYYY-MM-DD HH:mm:ss","YYYY/MM/DD HH:mm:ss","YYYY.MM.DD HH.mm.ss","YYYYMMDDHHmmss","YY/MM/DD HH:mm:ss","YY.MM.DD HH:mm:ss","YY.MM.DD HH.mm.ss","YYMMDDHHmmss"];function n(n){return"year"===n?Y:"quarter"===n?M:"month"===n?m:"week"===n?D:"datetime"===n?r:"date"===n?H:"time"===n?s:"hour"===n?e:"minute"===n?t:[]}export{n as getTemporalFormats};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
2
- import r from"dayjs";import{isNullish as o,isArray as m}from"@vef-framework/shared";import{useMemo as t}from"react";function e(e,f){return t((()=>o(e)?e:m(e)?e.map((o=>r(o,f))):r(e,f)),[e,f])}export{e as useDayjsValue};
1
+ /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
+ import{isNullish as r,isArray as o}from"@vef-framework/shared";import m from"dayjs";import{useMemo as t}from"react";function e(e,f){return t((()=>r(e)?e:o(e)?e.map((r=>m(r,f))):m(e,f)),[e,f])}export{e as useDayjsValue};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
2
- import e from"dayjs";import{isFunction as a}from"@vef-framework/shared";import{useMemo as t}from"react";function r({maxDate:r,minDate:i,disabledDate:o,disabledTime:m}){const[d,f]=t((()=>[i?e(i):void 0,r?e(r):void 0]),[i,r]);return{minDateValue:d,maxDateValue:f,disabledTimeValue:t((()=>{if(a(m))return e=>m(e.toDate())}),[m]),disabledDateValue:t((()=>{if(a(o))return(e,{from:a})=>o(e.toDate(),a?.toDate())}),[o])}}export{r as useTemporalLimit};
1
+ /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
+ import{isFunction as e}from"@vef-framework/shared";import a from"dayjs";import{useMemo as t}from"react";function r({maxDate:r,minDate:i,disabledDate:o,disabledTime:m}){const[d,f]=t((()=>[i?a(i):void 0,r?a(r):void 0]),[i,r]);return{minDateValue:d,maxDateValue:f,disabledTimeValue:t((()=>{if(e(m))return e=>m(e.toDate())}),[m]),disabledDateValue:t((()=>{if(e(o))return(e,{from:a})=>o(e.toDate(),a?.toDate())}),[o])}}export{r as useTemporalLimit};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
2
  import{useRef as r,useImperativeHandle as t}from"react";function u(u){const c=r(null);return t(u,(()=>({blur:()=>{c.current?.blur()},focus:()=>{c.current?.focus({preventScroll:!0})}}))),c}export{u as useTemporalPickerInstance};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
2
- import{jsx as e}from"@emotion/react/jsx-runtime";import{TimePicker as a,DatePicker as t}from"antd";import{isFunction as o,isArray as i}from"@vef-framework/shared";import{useMemo as l,memo as m,forwardRef as r}from"react";import"../internal/index.js";import{useDayjsValue as u}from"./hooks/use-dayjs-value.js";import{useTemporalFormats as s}from"./hooks/use-temporal-formats.js";import{useTemporalLimit as n}from"./hooks/use-temporal-limit.js";import{useTemporalPickerInstance as d}from"./hooks/use-temporal-picker-instance.js";import{convertBasicSizeToUiSize as p}from"../internal/utils.js";const f=m(r((function({defaultValue:m,value:r,clearable:f,size:D,mode:h="date",multiple:c=!1,minDate:b,maxDate:k,disabledTime:V,disabledDate:j,hourStep:x,minuteStep:S,secondStep:v,onChange:C,...w},T){const g=s(h),z=u(r,g),y=u(m,g),{minDateValue:N,maxDateValue:P,disabledTimeValue:q,disabledDateValue:A}=n({maxDate:k,minDate:b,disabledTime:V,disabledDate:j}),B=d(T),E=l((()=>{if(o(C))return(e,a)=>{if(!e)return void C(null,null);const t=i(e)?e.map((e=>e.toDate())):e.toDate();C(a,t)}}),[C]);return"time"===h||"hour"===h||"minute"===h?e(a,{ref:B,allowClear:f,defaultValue:y,disabledTime:q,format:g,hourStep:x,minuteStep:S,multiple:c,secondStep:v,showNow:"hour"!==h,size:p(D),value:z,onChange:E,...w}):e(t,"datetime"===h?{ref:B,allowClear:f,defaultValue:y,disabledDate:A,disabledTime:q,format:g,hourStep:x,maxDate:P,minDate:N,minuteStep:S,multiple:c,picker:"date",size:p(D),value:z,onChange:E,...w}:{ref:B,allowClear:f,defaultValue:y,disabledDate:A,format:g,maxDate:P,minDate:N,multiple:c,picker:h,size:p(D),value:z,onChange:E,...w})})));f.displayName="VefTemporalPicker";export{f as default};
1
+ /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
+ import{jsx as e}from"@emotion/react/jsx-runtime";import{isFunction as a,isArray as t}from"@vef-framework/shared";import{TimePicker as i,DatePicker as l}from"antd";import{useMemo as o,memo as m,forwardRef as r}from"react";import"../internal/index.js";import{getTemporalFormats as u}from"./helper.js";import{useDayjsValue as n}from"./hooks/use-dayjs-value.js";import{useTemporalLimit as s}from"./hooks/use-temporal-limit.js";import{useTemporalPickerInstance as d}from"./hooks/use-temporal-picker-instance.js";import{convertBasicSizeToUiSize as p}from"../internal/utils.js";const f=m(r((function({defaultValue:m,value:r,clearable:f,size:D,mode:h="date",multiple:c=!1,minDate:b,maxDate:V,disabledTime:j,disabledDate:k,hourStep:x,minuteStep:S,secondStep:v,onChange:C,...w},T){const g=u(h),z=n(r,g),y=n(m,g),{minDateValue:N,maxDateValue:P,disabledTimeValue:q,disabledDateValue:A}=s({maxDate:V,minDate:b,disabledTime:j,disabledDate:k}),B=d(T),E=o((()=>{if(a(C))return(e,a)=>{if(!e)return void C(null,null);const i=t(e)?e.map((e=>e.toDate())):e.toDate();C(a,i)}}),[C]);return"time"===h||"hour"===h||"minute"===h?e(i,{ref:B,allowClear:f,defaultValue:y,disabledTime:q,format:g,hourStep:x,minuteStep:S,multiple:c,secondStep:v,showNow:"hour"!==h,size:p(D),value:z,onChange:E,...w}):e(l,"datetime"===h?{ref:B,allowClear:f,defaultValue:y,disabledDate:A,disabledTime:q,format:g,hourStep:x,maxDate:P,minDate:N,minuteStep:S,multiple:c,picker:"date",size:p(D),value:z,onChange:E,...w}:{ref:B,allowClear:f,defaultValue:y,disabledDate:A,format:g,maxDate:P,minDate:N,multiple:c,picker:h,size:p(D),value:z,onChange:E,...w})})));f.displayName="VefTemporalPicker";export{f as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,8 +1,8 @@
1
- import type { TemporalRangePickerMode } from "../props";
1
+ import type { TemporalRangePickerMode } from "./props";
2
2
  /**
3
3
  * The hook to get the formats of the temporal picker.
4
4
  *
5
5
  * @param mode - The mode of the temporal picker.
6
6
  * @returns The formats of the temporal picker.
7
7
  */
8
- export declare function useTemporalFormats(mode: TemporalRangePickerMode): string[];
8
+ export declare function getTemporalFormats(mode: TemporalRangePickerMode): string[];
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
2
- const Y=["YYYY"],M=["YYYY-Q季度"],m=["YYYY-MM","YYYY/MM","YYYY.MM","YYYYMM"],D=["YYYY-wo"],H=["YYYY-MM-DD","YYYY/MM/DD","YYYY.MM.DD","YYYYMMDD","YY/MM/DD","YY.MM.DD","YYMMDD"],s=["HH:mm:ss","HH.mm.ss","HHmmss"],e=["HH"],t=["HH:mm","HH.mm","HHmm"],r=["YYYY-MM-DD HH:mm:ss","YYYY/MM/DD HH:mm:ss","YYYY.MM.DD HH.mm.ss","YYYYMMDDHHmmss","YY/MM/DD HH:mm:ss","YY.MM.DD HH:mm:ss","YY.MM.DD HH.mm.ss","YYMMDDHHmmss"];function n(n){return"year"===n?Y:"quarter"===n?M:"month"===n?m:"week"===n?D:"datetime"===n?r:"date"===n?H:"time"===n?s:"hour"===n?e:"minute"===n?t:[]}export{n as useTemporalFormats};
1
+ /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
+ const Y=["YYYY"],M=["YYYY-Q季度"],m=["YYYY-MM","YYYY/MM","YYYY.MM","YYYYMM"],D=["YYYY-wo"],H=["YYYY-MM-DD","YYYY/MM/DD","YYYY.MM.DD","YYYYMMDD","YY/MM/DD","YY.MM.DD","YYMMDD"],s=["HH:mm:ss","HH.mm.ss","HHmmss"],e=["HH"],t=["HH:mm","HH.mm","HHmm"],r=["YYYY-MM-DD HH:mm:ss","YYYY/MM/DD HH:mm:ss","YYYY.MM.DD HH.mm.ss","YYYYMMDDHHmmss","YY/MM/DD HH:mm:ss","YY.MM.DD HH:mm:ss","YY.MM.DD HH.mm.ss","YYMMDDHHmmss"];function n(n){return"year"===n?Y:"quarter"===n?M:"month"===n?m:"week"===n?D:"datetime"===n?r:"date"===n?H:"time"===n?s:"hour"===n?e:"minute"===n?t:[]}export{n as getTemporalFormats};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
2
- import r from"dayjs";import{isNullish as o,isArray as t}from"@vef-framework/shared";import{useMemo as m}from"react";import{stringFormatSeparator as e}from"../props.js";function f(f,p){return m((()=>{if(o(f))return f;if(t(f))return f.map((o=>r(o,p)));const[m,i]=f.split(e);return[r(m,p),r(i,p)]}),[f,p])}export{f as useDayjsValues};
1
+ /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
+ import{isNullish as r,isArray as o}from"@vef-framework/shared";import t from"dayjs";import{useMemo as m}from"react";import{stringFormatSeparator as e}from"../props.js";function f(f,p){return m((()=>{if(r(f))return f;if(o(f))return f.map((r=>t(r,p)));const[m,i]=f.split(e);return[t(m,p),t(i,p)]}),[f,p])}export{f as useDayjsValues};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
2
- import e from"dayjs";import{isFunction as a}from"@vef-framework/shared";import{useMemo as t}from"react";function r({maxDate:r,minDate:i,disabledDate:o,disabledTime:m}){const[d,f]=t((()=>[i?e(i):void 0,r?e(r):void 0]),[i,r]);return{minDateValue:d,maxDateValue:f,disabledTimeValue:t((()=>{if(a(m))return e=>m(e.toDate())}),[m]),disabledDateValue:t((()=>{if(a(o))return(e,{from:a})=>o(e.toDate(),a?.toDate())}),[o])}}export{r as useTemporalLimit};
1
+ /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
+ import{isFunction as e}from"@vef-framework/shared";import a from"dayjs";import{useMemo as t}from"react";function r({maxDate:r,minDate:i,disabledDate:o,disabledTime:m}){const[d,f]=t((()=>[i?a(i):void 0,r?a(r):void 0]),[i,r]);return{minDateValue:d,maxDateValue:f,disabledTimeValue:t((()=>{if(e(m))return e=>m(e.toDate())}),[m]),disabledDateValue:t((()=>{if(e(o))return(e,{from:a})=>o(e.toDate(),a?.toDate())}),[o])}}export{r as useTemporalLimit};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
2
  import{useRef as r,useImperativeHandle as t}from"react";function u(u){const c=r(null);return t(u,(()=>({blur:()=>{c.current?.blur()},focus:()=>{c.current?.focus({preventScroll:!0})}}))),c}export{u as useTemporalRangePickerInstance};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
2
- import{jsx as e}from"@emotion/react/jsx-runtime";import{TimePicker as a,DatePicker as t}from"antd";import{isFunction as o}from"@vef-framework/shared";import{useMemo as r,memo as i,forwardRef as m}from"react";import"../internal/index.js";import{useDayjsValues as l}from"./hooks/use-dayjs-values.js";import{useTemporalFormats as s}from"./hooks/use-temporal-formats.js";import{useTemporalLimit as n}from"./hooks/use-temporal-limit.js";import{useTemporalRangePickerInstance as u}from"./hooks/use-temporal-range-picker-instance.js";import{stringFormatSeparator as d}from"./props.js";import{convertBasicSizeToUiSize as p}from"../internal/utils.js";const f=i(m((function({defaultValue:i,value:m,clearable:f,mode:c="date",size:D,useStringFormat:h=!1,maxDate:b,minDate:k,disabledTime:j,disabledDate:S,hourStep:g,minuteStep:V,secondStep:x,onChange:v,...C},T){const w=s(c),z=l(m,w),P=l(m,w),{minDateValue:R,maxDateValue:y,disabledTimeValue:F,disabledDateValue:N}=n({maxDate:b,minDate:k,disabledTime:j,disabledDate:S}),q=u(T),A=r((()=>{if(o(v))return(e,a)=>{if(!e)return void v(null,null);const t=[e[0].toDate(),e[1].toDate()];v(h?a.join(d):a,t)}}),[v,h]);return"time"===c||"hour"===c||"minute"===c?e(a.RangePicker,{ref:q,allowClear:f,defaultValue:P,disabledTime:F,format:w,hourStep:g,minuteStep:V,secondStep:x,size:p(D),value:z,onChange:A,...C}):e(t.RangePicker,"datetime"===c?{ref:q,showTime:!0,allowClear:f,defaultValue:P,disabledDate:N,disabledTime:F,format:w,hourStep:g,maxDate:y,minDate:R,minuteStep:V,picker:"date",secondStep:x,size:p(D),value:z,onChange:A,...C}:{ref:q,allowClear:f,defaultValue:P,disabledDate:N,format:w,maxDate:y,minDate:R,picker:c,size:p(D),value:z,onChange:A,...C})})));f.displayName="VefTemporalRangePicker";export{f as default};
1
+ /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
+ import{jsx as e}from"@emotion/react/jsx-runtime";import{isFunction as a}from"@vef-framework/shared";import{TimePicker as t,DatePicker as i}from"antd";import{useMemo as r,memo as o,forwardRef as m}from"react";import"../internal/index.js";import{getTemporalFormats as l}from"./helper.js";import{useDayjsValues as n}from"./hooks/use-dayjs-values.js";import{useTemporalLimit as s}from"./hooks/use-temporal-limit.js";import{useTemporalRangePickerInstance as d}from"./hooks/use-temporal-range-picker-instance.js";import{stringFormatSeparator as u}from"./props.js";import{convertBasicSizeToUiSize as p}from"../internal/utils.js";const f=o(m((function({defaultValue:o,value:m,clearable:f,mode:c="date",size:D,useStringFormat:h=!1,maxDate:b,minDate:j,disabledTime:k,disabledDate:S,hourStep:g,minuteStep:V,secondStep:x,onChange:v,...C},T){const w=l(c),z=n(m,w),P=n(m,w),{minDateValue:R,maxDateValue:y,disabledTimeValue:F,disabledDateValue:N}=s({maxDate:b,minDate:j,disabledTime:k,disabledDate:S}),q=d(T),A=r((()=>{if(a(v))return(e,a)=>{if(!e)return void v(null,null);const t=[e[0].toDate(),e[1].toDate()];v(h?a.join(u):a,t)}}),[v,h]);return"time"===c||"hour"===c||"minute"===c?e(t.RangePicker,{ref:q,allowClear:f,defaultValue:P,disabledTime:F,format:w,hourStep:g,minuteStep:V,secondStep:x,size:p(D),value:z,onChange:A,...C}):e(i.RangePicker,"datetime"===c?{ref:q,showTime:!0,allowClear:f,defaultValue:P,disabledDate:N,disabledTime:F,format:w,hourStep:g,maxDate:y,minDate:R,minuteStep:V,picker:"date",secondStep:x,size:p(D),value:z,onChange:A,...C}:{ref:q,allowClear:f,defaultValue:P,disabledDate:N,format:w,maxDate:y,minDate:R,picker:c,size:p(D),value:z,onChange:A,...C})})));f.displayName="VefTemporalRangePicker";export{f as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
2
  const o="_";export{o as stringFormatSeparator};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
2
  import{jsx as e}from"@emotion/react/jsx-runtime";import{useColorTokens as o}from"@vef-framework/hooks";import{Typography as t}from"antd";import{useMemo as r}from"react";const{Text:i}=t,l=({variant:t,color:l,bold:n,ellipsis:s,ellipsisTip:p,ellipsisTipPlacement:c,copyable:a,copiedText:m,onCopy:d,...f})=>{const u=r((()=>{if(s)return{tooltip:p??f.children,placement:c}}),[s,p,c,f.children]),y=o(),h=r((()=>{const e={};return"shortcut"===t?e.keyboard=!0:"strikethrough"===t?e.delete=!0:t&&(e[t]=!0),"secondary"===l?e.type="secondary":l&&(e.css={color:y.get(l)}),n&&(e.strong=!0),e}),[n,l,y,t]),x=r((()=>{if(a)return{format:"text/plain",text:m,onCopy:d}}),[a,m,d]);return e(i,{copyable:x,ellipsis:u,...h,...f})};export{l as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,9 +1,8 @@
1
- import type { ColorType } from "@vef-framework/shared";
1
+ import type { ColorType, Except } from "@vef-framework/shared";
2
2
  import type { TooltipPlacement } from "antd/es/tooltip";
3
3
  import type { CopyConfig } from "antd/es/typography/Base";
4
4
  import type { TextProps } from "antd/es/typography/Text";
5
5
  import type { ReactNode } from "react";
6
- import type { Except } from "@vef-framework/shared";
7
6
  /**
8
7
  * The props of the VefText component.
9
8
  */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
2
  import{useRef as r,useImperativeHandle as t}from"react";function u(u){const c=r(null);return t(u,(()=>({blur:()=>c.current?.blur(),focus:()=>c.current?.focus({preventScroll:!0})}))),c}export{u as useTextareaInstance};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
2
- import{jsx as e}from"@emotion/react/jsx-runtime";import{Input as o}from"antd";import{isFunction as r}from"@vef-framework/shared";import{forwardRef as t,useMemo as a}from"react";import"../internal/index.js";import{useTextareaInstance as n}from"./hooks/use-textarea-instance.js";import{convertBasicSizeToUiSize as u}from"../internal/utils.js";const{TextArea:l}=o;function s(e){return""===e?null:e}const i=t((({defaultValue:o,value:t,size:i,clearable:m,showCount:f,onChange:v,onEnterKeyPress:c,onBlur:d,onFocus:p,...g},h)=>{const x=a((()=>({onChange:r(v)?e=>v(s(e.target.value)):void 0,onPressEnter:r(c)?e=>c(s(e.target.value)):void 0,onBlur:r(d)?e=>d(s(e.target.value)):void 0,onFocus:r(p)?e=>p(s(e.target.value)):void 0})),[v,c,d,p]),C=n(h);return e(l,{ref:C,allowClear:m,defaultValue:o,showCount:f,size:u(i),value:t,...g,...x})}));export{i as default};
1
+ /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
+ import{jsx as e}from"@emotion/react/jsx-runtime";import{isFunction as o}from"@vef-framework/shared";import{Input as r}from"antd";import{forwardRef as t,useMemo as a}from"react";import"../internal/index.js";import{useTextareaInstance as n}from"./hooks/use-textarea-instance.js";import{convertBasicSizeToUiSize as u}from"../internal/utils.js";const{TextArea:l}=r;function s(e){return""===e?null:e}const i=t((({defaultValue:r,value:t,size:i,clearable:m,showCount:f,onChange:v,onEnterKeyPress:c,onBlur:d,onFocus:p,...g},h)=>{const x=a((()=>({onChange:o(v)?e=>v(s(e.target.value)):void 0,onPressEnter:o(c)?e=>c(s(e.target.value)):void 0,onBlur:o(d)?e=>d(s(e.target.value)):void 0,onFocus:o(p)?e=>p(s(e.target.value)):void 0})),[v,c,d,p]),C=n(h);return e(l,{ref:C,allowClear:m,defaultValue:r,showCount:f,size:u(i),value:t,...g,...x})}));export{i as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,4 +1,4 @@
1
- /*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
2
  import{jsxs as e,Fragment as r,jsx as t}from"@emotion/react/jsx-runtime";import{css as o}from"@emotion/react";import{useColorTokens as i}from"@vef-framework/hooks";import{themeVariables as n}from"@vef-framework/shared";import{Typography as a}from"antd";import{useMemo as l}from"react";import s from"../vef-divider/index.js";const{Title:m}=a,f=o`
3
3
  margin: ${n.marginSm} 0 ${n.marginLg};
4
4
  `,p=o`
@@ -1,7 +1,6 @@
1
- import type { ColorType } from "@vef-framework/shared";
1
+ import type { ColorType, Except } from "@vef-framework/shared";
2
2
  import type { TitleProps } from "antd/es/typography/Title";
3
3
  import type { ReactNode } from "react";
4
- import type { Except } from "@vef-framework/shared";
5
4
  /**
6
5
  * The props for the VefTitle component.
7
6
  */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
2
  import{jsx as r}from"@emotion/react/jsx-runtime";import{Tooltip as t}from"antd";import{forwardRef as e,useRef as o,useImperativeHandle as n}from"react";const a=e((({content:e,trigger:a="hover",arrow:m=!0,delay:i=.1,...l},c)=>{const u=o(null);return n(c,(()=>u.current?.nativeElement)),r(t,{ref:u,arrow:m,mouseEnterDelay:i,title:e,trigger:a,...l})}));export{a as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
2
  import{isFunction as e,isArray as r}from"@vef-framework/shared";import{useMemo as t}from"react";function n(n,o){const u=t((()=>o.reduce(((e,r)=>(e.set(r.value,r),e)),new Map)),[o]);return t((()=>{if(e(n))return e=>{e?r(e)?n(e,e.map((e=>u.get(e)))):n(e,u.get(e)):n(null,null)}}),[n,u])}export{n as useChangeHandler};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
2
  import{useComputedOptions as o}from"@vef-framework/hooks";import{isArray as a,isFunction as e,isNullish as i}from"@vef-framework/shared";import{useLayoutEffect as n}from"react";function r({value:r,multiple:t=!1,onChange:l,...s}){const{onFilterKeywordChange:p,normalizedOptions:d,defaultOption:f,isLoading:m,fallbackOptions:c,isFallbackOptionsLoading:u}=o({...s,selectedOptionValues:a(r)?r:r?[r]:[]});return n((()=>{f&&e(l)&&i(r)&&l(t?[f.value]:f.value,t?[f]:f)}),[f,t,l,r]),{onFilterKeywordChange:p,normalizedOptions:d,isLoading:m,fallbackOptions:c,isFallbackOptionsLoading:u}}export{r as useDataOptions};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
2
  import{useRef as r,useImperativeHandle as t}from"react";function n(n,o){const u=r(null);return t(n,(()=>({blur:()=>{u.current?.blur()},focus:()=>{u.current?.focus({preventScroll:!0})},getDataOptions:()=>o}))),u}export{n as useTreeSelectInstance};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,5 +1,4 @@
1
- import type { EmptyObject } from "@vef-framework/shared";
2
- import { type DataOption, type ObjectType, type PureDataOption } from "@vef-framework/shared";
1
+ import { type DataOption, type EmptyObject, type ObjectType, type PureDataOption } from "@vef-framework/shared";
3
2
  import { type FC, type ReactNode, type RefAttributes } from "react";
4
3
  import type { VefTreeSelectInstance, VefTreeSelectProps } from "./props";
5
4
  declare const VefTreeSelect: (<T extends DataOption<T> = PureDataOption, P extends ObjectType = EmptyObject, R = T[], KK extends string = "keyword", VK extends string = "ids", FP extends ObjectType = EmptyObject>(props: VefTreeSelectProps<T, P, R, KK, VK, FP> & RefAttributes<VefTreeSelectInstance<T>>) => ReactNode) & Pick<FC, "displayName">;
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.5, build time: 2024-12-10T10:24:47.065Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
2
  import{jsx as e}from"@emotion/react/jsx-runtime";import{useOptionFilter as o}from"@vef-framework/hooks";import{styles as r}from"@vef-framework/shared";import{TreeSelect as t}from"antd";import{memo as l,forwardRef as a}from"react";import"../internal/index.js";import i from"../vef-loading-placeholder/index.js";import{useChangeHandler as n}from"./hooks/use-change-handler.js";import{useDataOptions as s}from"./hooks/use-data-options.js";import{useTreeSelectInstance as m}from"./hooks/use-tree-select-instance.js";import{convertBasicSizeToUiSize as d}from"../internal/utils.js";const f=e("div",{css:{height:140},children:e(i,{})}),c={showLeafIcon:!1};const u=l(a((function({defaultValue:l,value:a,size:i,clearable:u,disabled:h,placeholder:p,variant:v,onClear:g,onBlur:C,onFocus:j,onChange:k,onSelect:b,onDeselect:w,multiple:x=!1,filterable:F=!0,filterFromRemote:S=!1,...z},D){const{normalizedOptions:L,isLoading:T}=s({value:a,multiple:x,onChange:k,filterable:F,filterFromRemote:S,...z}),V=o(F,!1),B=n(k,L),N=m(D,L);return e(t,{ref:N,allowClear:u,css:r.fullWidth,defaultValue:l,disabled:h,filterTreeNode:V,listHeight:280,loading:T,maxTagCount:x?"responsive":void 0,multiple:x,notFoundContent:T?f:void 0,placeholder:p,showSearch:F,size:d(i),treeCheckable:x,treeData:L,treeLine:c,value:a,variant:v,onBlur:C,onChange:B,onClear:g,onDeselect:w,onFocus:j,onSelect:b})})));u.displayName="VefTreeSelect";export{u as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,6 +1,5 @@
1
- import type { BasicSize, BiConsumer, DataOption, DataOptionConfig, Handler, IdValue, Mapper, MaybeArray, MaybeNull, MaybePromise, NormalizedDataOption, ObjectType, Provider, PureDataOption, QueryApi, QueryConfig, QueryParamsWithKeyword, QueryParamsWithValues, StringKey } from "@vef-framework/shared";
1
+ import type { BasicSize, BiConsumer, DataOption, DataOptionConfig, EmptyObject, Handler, IdValue, Mapper, MaybeArray, MaybeNull, MaybePromise, NormalizedDataOption, ObjectType, Provider, PureDataOption, QueryApi, QueryConfig, QueryParamsWithKeyword, QueryParamsWithValues, StringKey } from "@vef-framework/shared";
2
2
  import type { TreeSelectProps } from "antd";
3
- import type { EmptyObject } from "@vef-framework/shared";
4
3
  /**
5
4
  * The instance of the VefTreeSelect component.
6
5
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vef-framework/components",
3
3
  "type": "module",
4
- "version": "1.0.5",
4
+ "version": "1.0.7",
5
5
  "private": false,
6
6
  "description": "Components fundamental to the VEF framework",
7
7
  "author": "Venus",
@@ -33,15 +33,16 @@
33
33
  "@emotion/styled": "11.13.5",
34
34
  "antd": "5.22.3",
35
35
  "tslib": "2.8.1",
36
+ "use-sync-external-store": "^1.4.0",
36
37
  "@ant-design/icons": "5.5.2",
37
38
  "@dnd-kit/core": "6.2.0",
38
39
  "@dnd-kit/modifiers": "9.0.0",
39
40
  "@dnd-kit/sortable": "10.0.0",
40
41
  "@dnd-kit/utilities": "3.2.2",
41
42
  "@radix-ui/react-scroll-area": "1.2.1",
42
- "@vef-framework/core": "1.0.5",
43
- "@vef-framework/hooks": "1.0.5",
44
- "@vef-framework/shared": "1.0.5",
43
+ "@vef-framework/core": "1.0.7",
44
+ "@vef-framework/hooks": "1.0.7",
45
+ "@vef-framework/shared": "1.0.7",
45
46
  "clsx": "2.1.1",
46
47
  "dayjs": "1.11.13",
47
48
  "lucide-react": "^0.468.0",