@vef-framework/starter 2.0.4 → 2.0.6

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 (337) hide show
  1. package/dist/cjs/components/access-denied/access-denied-icon.cjs +1 -210
  2. package/dist/cjs/components/access-denied/index.cjs +1 -47
  3. package/dist/cjs/components/app/index.cjs +1 -47
  4. package/dist/cjs/components/app/props.cjs +1 -3
  5. package/dist/cjs/components/base-layout/index.cjs +1 -45
  6. package/dist/cjs/components/base-layout/props.cjs +1 -3
  7. package/dist/cjs/components/base-layout/styles.cjs +1 -57
  8. package/dist/cjs/components/base-layout/use-base-layout.cjs +1 -41
  9. package/dist/cjs/components/crud/components/action-button-group.cjs +1 -20
  10. package/dist/cjs/components/crud/components/index.cjs +1 -20
  11. package/dist/cjs/components/crud/components/main.cjs +1 -57
  12. package/dist/cjs/components/crud/components/mutation-holder.cjs +1 -40
  13. package/dist/cjs/components/crud/components/operation-button-group.cjs +1 -22
  14. package/dist/cjs/components/crud/components/scene-form.cjs +1 -84
  15. package/dist/cjs/components/crud/components/selection-indicator.cjs +1 -83
  16. package/dist/cjs/components/crud/components/toolbar-actions.cjs +1 -19
  17. package/dist/cjs/components/crud/components/toolbar.cjs +1 -38
  18. package/dist/cjs/components/crud/event.cjs +1 -12
  19. package/dist/cjs/components/crud/helpers.cjs +1 -26
  20. package/dist/cjs/components/crud/hooks/index.cjs +1 -14
  21. package/dist/cjs/components/crud/hooks/use-query-observer.cjs +1 -37
  22. package/dist/cjs/components/crud/hooks/use-search-values.cjs +1 -12
  23. package/dist/cjs/components/crud/hooks/use-selected-rows.cjs +1 -12
  24. package/dist/cjs/components/crud/index.cjs +1 -46
  25. package/dist/cjs/components/crud/props.cjs +1 -3
  26. package/dist/cjs/components/crud/store.cjs +1 -93
  27. package/dist/cjs/components/crud/styles.cjs +1 -34
  28. package/dist/cjs/components/crud-page/index.cjs +1 -19
  29. package/dist/cjs/components/crud-page/props.cjs +1 -3
  30. package/dist/cjs/components/error/error-icon.cjs +1 -179
  31. package/dist/cjs/components/error/index.cjs +1 -69
  32. package/dist/cjs/components/flex-card/index.cjs +1 -18
  33. package/dist/cjs/components/flex-card/props.cjs +1 -3
  34. package/dist/cjs/components/flex-card/styles.cjs +1 -26
  35. package/dist/cjs/components/form-drawer/components/form-actions.cjs +1 -38
  36. package/dist/cjs/components/form-drawer/components/index.cjs +1 -10
  37. package/dist/cjs/components/form-drawer/index.cjs +1 -112
  38. package/dist/cjs/components/form-modal/components/form-actions.cjs +1 -38
  39. package/dist/cjs/components/form-modal/components/index.cjs +1 -10
  40. package/dist/cjs/components/form-modal/index.cjs +1 -88
  41. package/dist/cjs/components/index.cjs +1 -45
  42. package/dist/cjs/components/layout/components/footer.cjs +1 -27
  43. package/dist/cjs/components/layout/components/header/boy-icon.cjs +1 -20
  44. package/dist/cjs/components/layout/components/header/breadcrumb-navigation.cjs +1 -90
  45. package/dist/cjs/components/layout/components/header/color-scheme.cjs +1 -40
  46. package/dist/cjs/components/layout/components/header/fullscreen.cjs +1 -23
  47. package/dist/cjs/components/layout/components/header/girl-icon.cjs +1 -21
  48. package/dist/cjs/components/layout/components/header/index.cjs +1 -88
  49. package/dist/cjs/components/layout/components/header/menu-burger.cjs +1 -24
  50. package/dist/cjs/components/layout/components/header/menu-fold-left-icon.cjs +1 -20
  51. package/dist/cjs/components/layout/components/header/menu-unfold-left-icon.cjs +1 -20
  52. package/dist/cjs/components/layout/components/header/search.cjs +1 -22
  53. package/dist/cjs/components/layout/components/header/theme-config.cjs +1 -23
  54. package/dist/cjs/components/layout/components/header/user-avatar.cjs +1 -86
  55. package/dist/cjs/components/layout/components/honeycomb-pattern.cjs +1 -39
  56. package/dist/cjs/components/layout/components/index.cjs +1 -20
  57. package/dist/cjs/components/layout/components/logo.cjs +1 -60
  58. package/dist/cjs/components/layout/components/menu.cjs +1 -95
  59. package/dist/cjs/components/layout/components/search/index.cjs +1 -79
  60. package/dist/cjs/components/layout/components/search/keyboard-arrow-down-icon.cjs +1 -15
  61. package/dist/cjs/components/layout/components/search/keyboard-arrow-up-icon.cjs +1 -15
  62. package/dist/cjs/components/layout/components/search/keyboard-control-icon.cjs +1 -15
  63. package/dist/cjs/components/layout/components/search/keyboard-esc-icon.cjs +1 -15
  64. package/dist/cjs/components/layout/components/search/keyboard-help.cjs +1 -46
  65. package/dist/cjs/components/layout/components/search/keyboard-return-icon.cjs +1 -15
  66. package/dist/cjs/components/layout/components/search/keyboard-shift-icon.cjs +1 -15
  67. package/dist/cjs/components/layout/components/search/keyboard.cjs +1 -32
  68. package/dist/cjs/components/layout/components/search/letter-s-icon.cjs +1 -15
  69. package/dist/cjs/components/layout/components/search/search-result-item.cjs +1 -69
  70. package/dist/cjs/components/layout/components/search/search-result.cjs +1 -135
  71. package/dist/cjs/components/layout/components/sidebar.cjs +1 -54
  72. package/dist/cjs/components/layout/components/tabs/context-menu.cjs +1 -96
  73. package/dist/cjs/components/layout/components/tabs/index.cjs +1 -40
  74. package/dist/cjs/components/layout/components/tabs/main-content-maximum.cjs +1 -23
  75. package/dist/cjs/components/layout/components/tabs/reload.cjs +1 -21
  76. package/dist/cjs/components/layout/components/tabs/tab-item.cjs +1 -84
  77. package/dist/cjs/components/layout/components/tabs/tab-list.cjs +1 -91
  78. package/dist/cjs/components/layout/components/tabs/tabs-container.cjs +1 -85
  79. package/dist/cjs/components/layout/components/theme-config/color-scheme-switcher.cjs +1 -49
  80. package/dist/cjs/components/layout/components/theme-config/color-scheme.cjs +1 -57
  81. package/dist/cjs/components/layout/components/theme-config/config-item.cjs +1 -27
  82. package/dist/cjs/components/layout/components/theme-config/index.cjs +1 -59
  83. package/dist/cjs/components/layout/components/theme-config/menu-layout-card.cjs +1 -75
  84. package/dist/cjs/components/layout/components/theme-config/menu-layout.cjs +1 -33
  85. package/dist/cjs/components/layout/components/theme-config/operations.cjs +1 -22
  86. package/dist/cjs/components/layout/components/theme-config/theme-color-picker.cjs +1 -33
  87. package/dist/cjs/components/layout/components/theme-config/theme-colors.cjs +1 -29
  88. package/dist/cjs/components/layout/hooks/index.cjs +1 -14
  89. package/dist/cjs/components/layout/hooks/use-color-scheme-updater.cjs +1 -72
  90. package/dist/cjs/components/layout/hooks/use-menu-navigate.cjs +1 -29
  91. package/dist/cjs/components/layout/hooks/use-tab-navigate.cjs +1 -39
  92. package/dist/cjs/components/layout/index.cjs +1 -81
  93. package/dist/cjs/components/layout/props.cjs +1 -3
  94. package/dist/cjs/components/layout/store.cjs +1 -23
  95. package/dist/cjs/components/layout/styles.cjs +1 -16
  96. package/dist/cjs/components/login/icon-login.cjs +1 -149
  97. package/dist/cjs/components/login/index.cjs +1 -162
  98. package/dist/cjs/components/login/payload.cjs +1 -3
  99. package/dist/cjs/components/login/props.cjs +1 -3
  100. package/dist/cjs/components/login/styles.cjs +1 -97
  101. package/dist/cjs/components/login/welcome-messages.cjs +1 -135
  102. package/dist/cjs/components/logo-icon/index.cjs +1 -22
  103. package/dist/cjs/components/logo-icon/props.cjs +1 -3
  104. package/dist/cjs/components/n-progress/components/bar.cjs +9 -51
  105. package/dist/cjs/components/n-progress/components/container.cjs +1 -25
  106. package/dist/cjs/components/n-progress/components/index.cjs +1 -12
  107. package/dist/cjs/components/n-progress/event.cjs +1 -10
  108. package/dist/cjs/components/n-progress/index.cjs +1 -34
  109. package/dist/cjs/components/not-found/index.cjs +1 -47
  110. package/dist/cjs/components/not-found/not-found-icon.cjs +1 -205
  111. package/dist/cjs/components/page/index.cjs +1 -58
  112. package/dist/cjs/components/page/props.cjs +1 -3
  113. package/dist/cjs/components/page/scroll-content.cjs +1 -65
  114. package/dist/cjs/components/page/styles.cjs +1 -86
  115. package/dist/cjs/components/page/use-page-key.cjs +1 -22
  116. package/dist/cjs/components/page/viewport-context.cjs +1 -19
  117. package/dist/cjs/components/pro-search/components/advanced-search-toggler.cjs +1 -23
  118. package/dist/cjs/components/pro-search/components/advanced-search.cjs +1 -30
  119. package/dist/cjs/components/pro-search/components/index.cjs +1 -14
  120. package/dist/cjs/components/pro-search/components/search-actions.cjs +1 -36
  121. package/dist/cjs/components/pro-search/index.cjs +1 -70
  122. package/dist/cjs/components/pro-search/styles.cjs +1 -65
  123. package/dist/cjs/components/pro-table/components/index.cjs +1 -17
  124. package/dist/cjs/components/pro-table/components/operation-button-group.cjs +1 -22
  125. package/dist/cjs/components/pro-table/components/ref.cjs +1 -24
  126. package/dist/cjs/components/pro-table/components/table-subscriber.cjs +1 -25
  127. package/dist/cjs/components/pro-table/components/table-summary.cjs +1 -15
  128. package/dist/cjs/components/pro-table/components/table-title.cjs +1 -15
  129. package/dist/cjs/components/pro-table/components/table.cjs +1 -132
  130. package/dist/cjs/components/pro-table/context.cjs +1 -15
  131. package/dist/cjs/components/pro-table/event.cjs +1 -12
  132. package/dist/cjs/components/pro-table/hooks/index.cjs +1 -12
  133. package/dist/cjs/components/pro-table/hooks/use-row-selection.cjs +1 -43
  134. package/dist/cjs/components/pro-table/hooks/use-table-columns.cjs +1 -60
  135. package/dist/cjs/components/pro-table/index.cjs +1 -53
  136. package/dist/cjs/components/pro-table/store.cjs +1 -40
  137. package/dist/cjs/components/router-provider/context.cjs +1 -15
  138. package/dist/cjs/components/router-provider/index.cjs +1 -29
  139. package/dist/cjs/components/router-provider/props.cjs +1 -3
  140. package/dist/cjs/components/theme-config-provider/global-style.cjs +65 -16
  141. package/dist/cjs/components/theme-config-provider/index.cjs +1 -19
  142. package/dist/cjs/components/theme-config-provider/use-color-mode-effect.cjs +1 -35
  143. package/dist/cjs/components/theme-config-provider/use-theme-config.cjs +1 -73
  144. package/dist/cjs/constants/event.cjs +1 -8
  145. package/dist/cjs/constants/index.cjs +1 -23
  146. package/dist/cjs/constants/router.cjs +1 -18
  147. package/dist/cjs/constants/storage.cjs +1 -10
  148. package/dist/cjs/constants/symbols.cjs +1 -10
  149. package/dist/cjs/helpers/api.cjs +1 -50
  150. package/dist/cjs/helpers/app-version.cjs +1 -227
  151. package/dist/cjs/helpers/app.cjs +1 -37
  152. package/dist/cjs/helpers/auth.cjs +1 -24
  153. package/dist/cjs/helpers/event.cjs +1 -24
  154. package/dist/cjs/helpers/index.cjs +1 -25
  155. package/dist/cjs/helpers/query.cjs +1 -27
  156. package/dist/cjs/helpers/router.cjs +1 -110
  157. package/dist/cjs/hooks/index.cjs +1 -10
  158. package/dist/cjs/hooks/use-route-full-path.cjs +1 -32
  159. package/dist/cjs/index.cjs +1 -83
  160. package/dist/cjs/routes/access-denied.cjs +1 -31
  161. package/dist/cjs/routes/index.cjs +1 -16
  162. package/dist/cjs/routes/layout.cjs +1 -140
  163. package/dist/cjs/routes/login.cjs +1 -41
  164. package/dist/cjs/routes/root.cjs +1 -35
  165. package/dist/cjs/stores/app.cjs +1 -25
  166. package/dist/cjs/stores/index.cjs +1 -14
  167. package/dist/cjs/stores/tab.cjs +1 -101
  168. package/dist/cjs/stores/theme.cjs +1 -32
  169. package/dist/es/components/access-denied/access-denied-icon.js +201 -202
  170. package/dist/es/components/access-denied/index.js +23 -25
  171. package/dist/es/components/app/index.js +31 -38
  172. package/dist/es/components/app/props.js +1 -1
  173. package/dist/es/components/base-layout/index.js +31 -38
  174. package/dist/es/components/base-layout/props.js +1 -1
  175. package/dist/es/components/base-layout/styles.js +22 -24
  176. package/dist/es/components/base-layout/use-base-layout.js +28 -33
  177. package/dist/es/components/crud/components/action-button-group.js +13 -14
  178. package/dist/es/components/crud/components/index.js +14 -7
  179. package/dist/es/components/crud/components/main.js +40 -46
  180. package/dist/es/components/crud/components/mutation-holder.js +28 -32
  181. package/dist/es/components/crud/components/operation-button-group.js +15 -16
  182. package/dist/es/components/crud/components/scene-form.js +62 -71
  183. package/dist/es/components/crud/components/selection-indicator.js +38 -53
  184. package/dist/es/components/crud/components/toolbar-actions.js +11 -12
  185. package/dist/es/components/crud/components/toolbar.js +26 -27
  186. package/dist/es/components/crud/event.js +6 -7
  187. package/dist/es/components/crud/helpers.js +16 -17
  188. package/dist/es/components/crud/hooks/index.js +8 -4
  189. package/dist/es/components/crud/hooks/use-query-observer.js +20 -25
  190. package/dist/es/components/crud/hooks/use-search-values.js +6 -7
  191. package/dist/es/components/crud/hooks/use-selected-rows.js +6 -7
  192. package/dist/es/components/crud/index.js +36 -36
  193. package/dist/es/components/crud/props.js +1 -1
  194. package/dist/es/components/crud/store.js +68 -77
  195. package/dist/es/components/crud/styles.js +18 -19
  196. package/dist/es/components/crud-page/index.js +12 -13
  197. package/dist/es/components/crud-page/props.js +1 -1
  198. package/dist/es/components/error/error-icon.js +170 -171
  199. package/dist/es/components/error/index.js +31 -37
  200. package/dist/es/components/flex-card/index.js +11 -12
  201. package/dist/es/components/flex-card/props.js +1 -1
  202. package/dist/es/components/flex-card/styles.js +8 -9
  203. package/dist/es/components/form-drawer/components/form-actions.js +23 -27
  204. package/dist/es/components/form-drawer/components/index.js +4 -2
  205. package/dist/es/components/form-drawer/index.js +64 -92
  206. package/dist/es/components/form-modal/components/form-actions.js +23 -27
  207. package/dist/es/components/form-modal/components/index.js +4 -2
  208. package/dist/es/components/form-modal/index.js +53 -76
  209. package/dist/es/components/index.js +39 -20
  210. package/dist/es/components/layout/components/footer.js +10 -11
  211. package/dist/es/components/layout/components/header/boy-icon.js +13 -14
  212. package/dist/es/components/layout/components/header/breadcrumb-navigation.js +56 -79
  213. package/dist/es/components/layout/components/header/color-scheme.js +26 -29
  214. package/dist/es/components/layout/components/header/fullscreen.js +14 -16
  215. package/dist/es/components/layout/components/header/girl-icon.js +14 -15
  216. package/dist/es/components/layout/components/header/index.js +45 -51
  217. package/dist/es/components/layout/components/header/menu-burger.js +16 -17
  218. package/dist/es/components/layout/components/header/menu-fold-left-icon.js +12 -13
  219. package/dist/es/components/layout/components/header/menu-unfold-left-icon.js +12 -13
  220. package/dist/es/components/layout/components/header/search.js +14 -16
  221. package/dist/es/components/layout/components/header/theme-config.js +15 -16
  222. package/dist/es/components/layout/components/header/user-avatar.js +50 -61
  223. package/dist/es/components/layout/components/honeycomb-pattern.js +17 -19
  224. package/dist/es/components/layout/components/index.js +14 -7
  225. package/dist/es/components/layout/components/logo.js +30 -33
  226. package/dist/es/components/layout/components/menu.js +48 -77
  227. package/dist/es/components/layout/components/search/index.js +39 -49
  228. package/dist/es/components/layout/components/search/keyboard-arrow-down-icon.js +8 -9
  229. package/dist/es/components/layout/components/search/keyboard-arrow-up-icon.js +8 -9
  230. package/dist/es/components/layout/components/search/keyboard-control-icon.js +8 -9
  231. package/dist/es/components/layout/components/search/keyboard-esc-icon.js +8 -9
  232. package/dist/es/components/layout/components/search/keyboard-help.js +30 -32
  233. package/dist/es/components/layout/components/search/keyboard-return-icon.js +8 -9
  234. package/dist/es/components/layout/components/search/keyboard-shift-icon.js +8 -9
  235. package/dist/es/components/layout/components/search/keyboard.js +16 -22
  236. package/dist/es/components/layout/components/search/letter-s-icon.js +8 -9
  237. package/dist/es/components/layout/components/search/search-result-item.js +38 -44
  238. package/dist/es/components/layout/components/search/search-result.js +73 -93
  239. package/dist/es/components/layout/components/sidebar.js +26 -29
  240. package/dist/es/components/layout/components/tabs/context-menu.js +66 -71
  241. package/dist/es/components/layout/components/tabs/index.js +21 -23
  242. package/dist/es/components/layout/components/tabs/main-content-maximum.js +15 -16
  243. package/dist/es/components/layout/components/tabs/reload.js +14 -15
  244. package/dist/es/components/layout/components/tabs/tab-item.js +47 -51
  245. package/dist/es/components/layout/components/tabs/tab-list.js +45 -57
  246. package/dist/es/components/layout/components/tabs/tabs-container.js +39 -49
  247. package/dist/es/components/layout/components/theme-config/color-scheme-switcher.js +28 -32
  248. package/dist/es/components/layout/components/theme-config/color-scheme.js +36 -37
  249. package/dist/es/components/layout/components/theme-config/config-item.js +15 -16
  250. package/dist/es/components/layout/components/theme-config/index.js +37 -41
  251. package/dist/es/components/layout/components/theme-config/menu-layout-card.js +31 -33
  252. package/dist/es/components/layout/components/theme-config/menu-layout.js +20 -21
  253. package/dist/es/components/layout/components/theme-config/operations.js +14 -16
  254. package/dist/es/components/layout/components/theme-config/theme-color-picker.js +22 -24
  255. package/dist/es/components/layout/components/theme-config/theme-colors.js +14 -16
  256. package/dist/es/components/layout/hooks/index.js +8 -4
  257. package/dist/es/components/layout/hooks/use-color-scheme-updater.js +39 -47
  258. package/dist/es/components/layout/hooks/use-menu-navigate.js +20 -21
  259. package/dist/es/components/layout/hooks/use-tab-navigate.js +24 -32
  260. package/dist/es/components/layout/index.js +52 -66
  261. package/dist/es/components/layout/props.js +1 -1
  262. package/dist/es/components/layout/store.js +15 -17
  263. package/dist/es/components/layout/styles.js +7 -8
  264. package/dist/es/components/login/icon-login.js +138 -139
  265. package/dist/es/components/login/index.js +87 -100
  266. package/dist/es/components/login/payload.js +1 -1
  267. package/dist/es/components/login/props.js +1 -1
  268. package/dist/es/components/login/styles.js +34 -35
  269. package/dist/es/components/login/welcome-messages.js +8 -7
  270. package/dist/es/components/logo-icon/index.js +14 -15
  271. package/dist/es/components/logo-icon/props.js +1 -1
  272. package/dist/es/components/n-progress/components/bar.js +22 -24
  273. package/dist/es/components/n-progress/components/container.js +15 -16
  274. package/dist/es/components/n-progress/components/index.js +6 -3
  275. package/dist/es/components/n-progress/event.js +5 -6
  276. package/dist/es/components/n-progress/index.js +24 -27
  277. package/dist/es/components/not-found/index.js +23 -25
  278. package/dist/es/components/not-found/not-found-icon.js +196 -197
  279. package/dist/es/components/page/index.js +37 -39
  280. package/dist/es/components/page/props.js +1 -1
  281. package/dist/es/components/page/scroll-content.js +31 -34
  282. package/dist/es/components/page/styles.js +37 -38
  283. package/dist/es/components/page/use-page-key.js +13 -16
  284. package/dist/es/components/page/viewport-context.js +11 -12
  285. package/dist/es/components/pro-search/components/advanced-search-toggler.js +16 -17
  286. package/dist/es/components/pro-search/components/advanced-search.js +12 -15
  287. package/dist/es/components/pro-search/components/index.js +8 -4
  288. package/dist/es/components/pro-search/components/search-actions.js +21 -24
  289. package/dist/es/components/pro-search/index.js +48 -58
  290. package/dist/es/components/pro-search/styles.js +21 -22
  291. package/dist/es/components/pro-table/components/index.js +11 -5
  292. package/dist/es/components/pro-table/components/operation-button-group.js +15 -16
  293. package/dist/es/components/pro-table/components/ref.js +13 -18
  294. package/dist/es/components/pro-table/components/table-subscriber.js +17 -19
  295. package/dist/es/components/pro-table/components/table-summary.js +10 -11
  296. package/dist/es/components/pro-table/components/table-title.js +10 -11
  297. package/dist/es/components/pro-table/components/table.js +92 -115
  298. package/dist/es/components/pro-table/context.js +8 -9
  299. package/dist/es/components/pro-table/event.js +6 -7
  300. package/dist/es/components/pro-table/hooks/index.js +6 -3
  301. package/dist/es/components/pro-table/hooks/use-row-selection.js +25 -31
  302. package/dist/es/components/pro-table/hooks/use-table-columns.js +30 -44
  303. package/dist/es/components/pro-table/index.js +38 -40
  304. package/dist/es/components/pro-table/store.js +32 -33
  305. package/dist/es/components/router-provider/context.js +9 -9
  306. package/dist/es/components/router-provider/index.js +18 -21
  307. package/dist/es/components/router-provider/props.js +1 -1
  308. package/dist/es/components/theme-config-provider/global-style.js +77 -10
  309. package/dist/es/components/theme-config-provider/index.js +11 -13
  310. package/dist/es/components/theme-config-provider/use-color-mode-effect.js +15 -26
  311. package/dist/es/components/theme-config-provider/use-theme-config.js +35 -64
  312. package/dist/es/constants/event.js +4 -4
  313. package/dist/es/constants/index.js +17 -5
  314. package/dist/es/constants/router.js +9 -9
  315. package/dist/es/constants/storage.js +5 -5
  316. package/dist/es/constants/symbols.js +5 -5
  317. package/dist/es/helpers/api.js +28 -30
  318. package/dist/es/helpers/app-version.js +111 -177
  319. package/dist/es/helpers/app.js +17 -24
  320. package/dist/es/helpers/auth.js +15 -18
  321. package/dist/es/helpers/event.js +16 -16
  322. package/dist/es/helpers/index.js +19 -8
  323. package/dist/es/helpers/query.js +16 -16
  324. package/dist/es/helpers/router.js +65 -79
  325. package/dist/es/hooks/index.js +4 -2
  326. package/dist/es/hooks/use-route-full-path.js +18 -26
  327. package/dist/es/index.js +77 -36
  328. package/dist/es/routes/access-denied.js +14 -21
  329. package/dist/es/routes/index.js +10 -5
  330. package/dist/es/routes/layout.js +88 -106
  331. package/dist/es/routes/login.js +25 -26
  332. package/dist/es/routes/root.js +20 -26
  333. package/dist/es/stores/app.js +11 -14
  334. package/dist/es/stores/index.js +8 -4
  335. package/dist/es/stores/tab.js +72 -90
  336. package/dist/es/stores/theme.js +23 -26
  337. package/package.json +6 -6
@@ -1,14 +1,13 @@
1
- /*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
2
- import { jsx } from '@emotion/react/jsx-runtime';
3
- import { Card } from '@vef-framework/components';
4
- import { container } from './styles.js';
5
- import './props.js';
6
-
7
- function FlexCard({
8
- variant = "borderless",
9
- ...props
1
+ import { jsx as t } from "@emotion/react/jsx-runtime";
2
+ import { Card as m } from "@vef-framework/components";
3
+ import { container as e } from "./styles.js";
4
+ import "./props.js";
5
+ function f({
6
+ variant: r = "borderless",
7
+ ...o
10
8
  }) {
11
- return /* @__PURE__ */ jsx(Card, { css: container, variant, ...props });
9
+ return /* @__PURE__ */ t(m, { css: e, variant: r, ...o });
12
10
  }
13
-
14
- export { FlexCard };
11
+ export {
12
+ f as FlexCard
13
+ };
@@ -1 +1 @@
1
- /*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
1
+
@@ -1,14 +1,12 @@
1
- /*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
2
- import { css } from '@emotion/react';
3
- import { globalCssVars } from '@vef-framework/components';
4
-
5
- const container = /* @__PURE__ */ css({
1
+ import { css as i } from "@emotion/react";
2
+ import { globalCssVars as c } from "@vef-framework/components";
3
+ const Z = /* @__PURE__ */ i({
6
4
  height: "100%",
7
5
  display: "flex",
8
6
  flexDirection: "column",
9
7
  "&.vef-card": {
10
- "--vef-card-header-padding": globalCssVars.spacingMd,
11
- "--vef-card-body-padding": globalCssVars.spacingMd,
8
+ "--vef-card-header-padding": c.spacingMd,
9
+ "--vef-card-body-padding": c.spacingMd,
12
10
  "& > .vef-card-head": {
13
11
  flex: "none"
14
12
  },
@@ -18,5 +16,6 @@ const container = /* @__PURE__ */ css({
18
16
  }
19
17
  }
20
18
  }, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy92ZW51cy9WRUYvdmVmLWZyYW1ld29yay1yZWFjdC9wYWNrYWdlcy9zdGFydGVyL3NyYy9jb21wb25lbnRzL2ZsZXgtY2FyZC9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBR3lCIiwiZmlsZSI6Ii9Vc2Vycy92ZW51cy9WRUYvdmVmLWZyYW1ld29yay1yZWFjdC9wYWNrYWdlcy9zdGFydGVyL3NyYy9jb21wb25lbnRzL2ZsZXgtY2FyZC9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tIFwiQGVtb3Rpb24vcmVhY3RcIjtcbmltcG9ydCB7IGdsb2JhbENzc1ZhcnMgfSBmcm9tIFwiQHZlZi1mcmFtZXdvcmsvY29tcG9uZW50c1wiO1xuXG5leHBvcnQgY29uc3QgY29udGFpbmVyID0gY3NzKHtcbiAgaGVpZ2h0OiBcIjEwMCVcIixcbiAgZGlzcGxheTogXCJmbGV4XCIsXG4gIGZsZXhEaXJlY3Rpb246IFwiY29sdW1uXCIsXG4gIFwiJi52ZWYtY2FyZFwiOiB7XG4gICAgXCItLXZlZi1jYXJkLWhlYWRlci1wYWRkaW5nXCI6IGdsb2JhbENzc1ZhcnMuc3BhY2luZ01kLFxuICAgIFwiLS12ZWYtY2FyZC1ib2R5LXBhZGRpbmdcIjogZ2xvYmFsQ3NzVmFycy5zcGFjaW5nTWQsXG4gICAgXCImID4gLnZlZi1jYXJkLWhlYWRcIjoge1xuICAgICAgZmxleDogXCJub25lXCJcbiAgICB9LFxuICAgIFwiJiA+IC52ZWYtY2FyZC1ib2R5XCI6IHtcbiAgICAgIGZsZXg6IFwiYXV0b1wiLFxuICAgICAgbWluSGVpZ2h0OiAwXG4gICAgfVxuICB9XG59KTtcbiJdfQ== */");
21
-
22
- export { container };
19
+ export {
20
+ Z as container
21
+ };
@@ -1,34 +1,30 @@
1
- /*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
2
- import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
3
- import { Icon, useFormContext } from '@vef-framework/components';
4
- import { CheckIcon } from 'lucide-react';
5
- import { memo } from 'react';
6
-
7
- const defaultSubmitButtonProps = {
1
+ import { jsx as t, jsxs as s, Fragment as u } from "@emotion/react/jsx-runtime";
2
+ import { Icon as p, useFormContext as d } from "@vef-framework/components";
3
+ import { CheckIcon as f } from "lucide-react";
4
+ import { memo as l } from "react";
5
+ const h = {
8
6
  children: "提交",
9
- icon: /* @__PURE__ */ jsx(Icon, { component: CheckIcon })
10
- };
11
- const defaultResetButtonProps = {
7
+ icon: /* @__PURE__ */ t(p, { component: f })
8
+ }, a = {
12
9
  children: "重置"
13
- };
14
- const FormActions = memo(({
15
- submitButtonProps = defaultSubmitButtonProps,
16
- resetButtonProps = defaultResetButtonProps,
17
- onReset
10
+ }, F = l(({
11
+ submitButtonProps: n = h,
12
+ resetButtonProps: o = a,
13
+ onReset: e
18
14
  }) => {
19
15
  const {
20
- ResetButton,
21
- SubmitButton,
22
- handleSubmit,
23
- reset
24
- } = useFormContext();
25
- return /* @__PURE__ */ jsxs(Fragment, { children: [
26
- resetButtonProps && /* @__PURE__ */ jsx(ResetButton, { ...resetButtonProps, onReset: () => {
27
- reset();
28
- onReset?.();
16
+ ResetButton: m,
17
+ SubmitButton: r,
18
+ handleSubmit: c,
19
+ reset: i
20
+ } = d();
21
+ return /* @__PURE__ */ s(u, { children: [
22
+ o && /* @__PURE__ */ t(m, { ...o, onReset: () => {
23
+ i(), e?.();
29
24
  } }),
30
- /* @__PURE__ */ jsx(SubmitButton, { ...submitButtonProps, onSubmit: handleSubmit })
25
+ /* @__PURE__ */ t(r, { ...n, onSubmit: c })
31
26
  ] });
32
27
  });
33
-
34
- export { FormActions };
28
+ export {
29
+ F as FormActions
30
+ };
@@ -1,2 +1,4 @@
1
- /*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
2
- export { FormActions } from './form-actions.js';
1
+ import { FormActions as m } from "./form-actions.js";
2
+ export {
3
+ m as FormActions
4
+ };
@@ -1,108 +1,80 @@
1
- /*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
2
- import { jsx } from '@emotion/react/jsx-runtime';
3
- import '@emotion/react';
4
- import { useForm, Drawer, Center, Empty } from '@vef-framework/components';
5
- import { useMutation } from '@vef-framework/core';
6
- import { isFunction } from '@vef-framework/shared';
7
- import { memo, useCallback, useMemo } from 'react';
8
- import './components/index.js';
9
- import { FormActions } from './components/form-actions.js';
10
-
11
- function _EMOTION_STRINGIFIED_CSS_ERROR__() {
1
+ import { jsx as g } from "@emotion/react/jsx-runtime";
2
+ import "@emotion/react";
3
+ import { useForm as J, Drawer as r, Center as v, Empty as z } from "@vef-framework/components";
4
+ import { useMutation as w } from "@vef-framework/core";
5
+ import { isFunction as b } from "@vef-framework/shared";
6
+ import { memo as k, useCallback as m, useMemo as S } from "react";
7
+ import "./components/index.js";
8
+ import { FormActions as Q } from "./components/form-actions.js";
9
+ function f() {
12
10
  return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
13
11
  }
14
- const formStyle = process.env.NODE_ENV === "production" ? {
12
+ const j = process.env.NODE_ENV === "production" ? {
15
13
  name: "13udsys",
16
14
  styles: "height:100%"
17
15
  } : {
18
16
  name: "13udsys",
19
17
  styles: "height:100%/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy92ZW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3JtIGNzcz17Zm9ybVN0eWxlfSBkaXNhYmxlZD17ZGlzYWJsZWQgfHwgaXNQZW5kaW5nfT5cbiAgICAgICAge1xuICAgICAgICAgIGlzRnVuY3Rpb24oY2hpbGRyZW4pXG4gICAgICAgICAgICA/IGNoaWxkcmVuKGZvcm1BcGkpXG4gICAgICAgICAgICA6IChcbiAgICAgICAgICAgICAgICBjaGlsZHJlbiB8fCAoXG4gICAgICAgICAgICAgICAgICA8Q2VudGVyPlxuICAgICAgICAgICAgICAgICAgICA8RW1wdHkgZGVzY3JpcHRpb249XCLor7fmj5DkvpvooajljZXlhoXlrrlcIiAvPlxuICAgICAgICAgICAgICAgICAgPC9DZW50ZXI+XG4gICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICApXG4gICAgICAgIH1cbiAgICAgIDwvRm9ybT5cbiAgICA8L0RyYXdlcj5cbiAgKTtcbn0pIGFzICg8VFZhbHVlcyBleHRlbmRzIG9iamVjdCwgVERhdGEgPSB1bmtub3duPihwcm9wczogRm9ybURyYXdlclByb3BzPFRWYWx1ZXMsIFREYXRhPikgPT4gQXdhaXRhYmxlPFJlYWN0Tm9kZT4pICYgUGljazxGQywgXCJkaXNwbGF5TmFtZVwiPjtcbkZvcm1EcmF3ZXIuZGlzcGxheU5hbWUgPSBcIkZvcm1EcmF3ZXJcIjtcblxuZXhwb3J0IHR5cGUgeyBGb3JtRHJhd2VyUHJvcHMgfSBmcm9tIFwiLi9wcm9wc1wiO1xuIl19 */",
20
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
21
- };
22
- const closable = {
18
+ toString: f
19
+ }, L = {
23
20
  placement: "end"
24
- };
25
- const FormDrawer = memo(({
26
- open = false,
27
- title,
28
- width,
29
- placement = "right",
30
- resizable,
31
- defaultValues,
32
- disabled = false,
33
- submitButtonProps,
34
- resetButtonProps,
35
- mutationFn,
36
- mutationMeta,
37
- children,
38
- beforeSubmit,
39
- afterSubmit,
40
- onClose,
41
- onSubmit,
42
- onReset
21
+ }, U = k(({
22
+ open: W = !1,
23
+ title: e,
24
+ width: d,
25
+ placement: a = "right",
26
+ resizable: y,
27
+ defaultValues: C,
28
+ disabled: x = !1,
29
+ submitButtonProps: o,
30
+ resetButtonProps: F,
31
+ mutationFn: A,
32
+ mutationMeta: p,
33
+ children: l,
34
+ beforeSubmit: i,
35
+ afterSubmit: t,
36
+ onClose: V,
37
+ onSubmit: G,
38
+ onReset: s
43
39
  }) => {
44
- const formApi = useForm({
45
- defaultValues,
40
+ const B = J({
41
+ defaultValues: C,
46
42
  onSubmit: async ({
47
- value
43
+ value: Z
48
44
  }) => {
49
- let formValues = value;
50
- if (isFunction(beforeSubmit)) {
51
- formValues = await beforeSubmit(formValues);
52
- }
53
- if (isFunction(onSubmit)) {
54
- await onSubmit(formValues);
55
- }
56
- if (mutationFn) {
57
- await mutateAsync(formValues);
58
- } else if (!onSubmit) {
59
- handleClose();
60
- }
45
+ let I = Z;
46
+ b(i) && (I = await i(I)), b(G) && await G(I), A ? await n(I) : G || c();
61
47
  }
62
- });
63
- const {
64
- Form,
65
- AppForm,
66
- reset
67
- } = formApi;
68
- const handleClose = useCallback(() => {
69
- reset();
70
- onClose?.();
71
- }, [onClose, reset]);
72
- const {
73
- isPending,
74
- mutateAsync
75
- } = useMutation({
76
- mutationKey: [mutationFn?.key],
77
- mutationFn,
48
+ }), {
49
+ Form: H,
50
+ AppForm: N,
51
+ reset: u
52
+ } = B, c = m(() => {
53
+ u(), V?.();
54
+ }, [V, u]), {
55
+ isPending: X,
56
+ mutateAsync: n
57
+ } = w({
58
+ mutationKey: [A?.key],
59
+ mutationFn: A,
78
60
  onSuccess: async ({
79
- data
80
- }, formValues) => {
81
- if (isFunction(afterSubmit)) {
82
- await afterSubmit(formValues, data);
83
- }
84
- handleClose();
61
+ data: Z
62
+ }, I) => {
63
+ b(t) && await t(I, Z), c();
85
64
  },
86
- meta: mutationMeta
87
- });
88
- const handleReset = useCallback(() => {
89
- onReset?.(defaultValues);
90
- }, [defaultValues, onReset]);
91
- const handleCancel = useCallback(() => {
92
- if (isPending) {
93
- return;
65
+ meta: p
66
+ }), R = m(() => {
67
+ s?.(C);
68
+ }, [C, s]), Y = m(() => {
69
+ X || c();
70
+ }, [c, X]), h = S(() => ({
71
+ wrapper: {
72
+ width: d
94
73
  }
95
- handleClose();
96
- }, [handleClose, isPending]);
97
- const drawerStyles = useMemo(() => {
98
- return {
99
- wrapper: {
100
- width
101
- }
102
- };
103
- }, [width]);
104
- return /* @__PURE__ */ jsx(Drawer, { destroyOnHidden: true, closable, keyboard: false, maskClosable: false, open, placement, resizable, styles: drawerStyles, title, footer: /* @__PURE__ */ jsx(AppForm, { children: /* @__PURE__ */ jsx(FormActions, { resetButtonProps, submitButtonProps, onReset: handleReset }) }), onClose: handleCancel, children: /* @__PURE__ */ jsx(Form, { css: formStyle, disabled: disabled || isPending, children: isFunction(children) ? children(formApi) : children || /* @__PURE__ */ jsx(Center, { children: /* @__PURE__ */ jsx(Empty, { description: "请提供表单内容" }) }) }) });
74
+ }), [d]);
75
+ return /* @__PURE__ */ g(r, { destroyOnHidden: !0, closable: L, keyboard: !1, maskClosable: !1, open: W, placement: a, resizable: y, styles: h, title: e, footer: /* @__PURE__ */ g(N, { children: /* @__PURE__ */ g(Q, { resetButtonProps: F, submitButtonProps: o, onReset: R }) }), onClose: Y, children: /* @__PURE__ */ g(H, { css: j, disabled: x || X, children: b(l) ? l(B) : l || /* @__PURE__ */ g(v, { children: /* @__PURE__ */ g(z, { description: "请提供表单内容" }) }) }) });
105
76
  });
106
- FormDrawer.displayName = "FormDrawer";
107
-
108
- export { FormDrawer };
77
+ U.displayName = "FormDrawer";
78
+ export {
79
+ U as FormDrawer
80
+ };
@@ -1,34 +1,30 @@
1
- /*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
2
- import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
3
- import { Icon, useFormContext } from '@vef-framework/components';
4
- import { CheckIcon } from 'lucide-react';
5
- import { memo } from 'react';
6
-
7
- const defaultSubmitButtonProps = {
1
+ import { jsx as t, jsxs as s, Fragment as u } from "@emotion/react/jsx-runtime";
2
+ import { Icon as p, useFormContext as d } from "@vef-framework/components";
3
+ import { CheckIcon as f } from "lucide-react";
4
+ import { memo as l } from "react";
5
+ const h = {
8
6
  children: "提交",
9
- icon: /* @__PURE__ */ jsx(Icon, { component: CheckIcon })
10
- };
11
- const defaultResetButtonProps = {
7
+ icon: /* @__PURE__ */ t(p, { component: f })
8
+ }, a = {
12
9
  children: "重置"
13
- };
14
- const FormActions = memo(({
15
- submitButtonProps = defaultSubmitButtonProps,
16
- resetButtonProps = defaultResetButtonProps,
17
- onReset
10
+ }, F = l(({
11
+ submitButtonProps: n = h,
12
+ resetButtonProps: o = a,
13
+ onReset: e
18
14
  }) => {
19
15
  const {
20
- ResetButton,
21
- SubmitButton,
22
- handleSubmit,
23
- reset
24
- } = useFormContext();
25
- return /* @__PURE__ */ jsxs(Fragment, { children: [
26
- resetButtonProps && /* @__PURE__ */ jsx(ResetButton, { ...resetButtonProps, onReset: () => {
27
- reset();
28
- onReset?.();
16
+ ResetButton: m,
17
+ SubmitButton: r,
18
+ handleSubmit: c,
19
+ reset: i
20
+ } = d();
21
+ return /* @__PURE__ */ s(u, { children: [
22
+ o && /* @__PURE__ */ t(m, { ...o, onReset: () => {
23
+ i(), e?.();
29
24
  } }),
30
- /* @__PURE__ */ jsx(SubmitButton, { ...submitButtonProps, onSubmit: handleSubmit })
25
+ /* @__PURE__ */ t(r, { ...n, onSubmit: c })
31
26
  ] });
32
27
  });
33
-
34
- export { FormActions };
28
+ export {
29
+ F as FormActions
30
+ };
@@ -1,2 +1,4 @@
1
- /*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
2
- export { FormActions } from './form-actions.js';
1
+ import { FormActions as m } from "./form-actions.js";
2
+ export {
3
+ m as FormActions
4
+ };
@@ -1,84 +1,61 @@
1
- /*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
2
- import { jsx } from '@emotion/react/jsx-runtime';
3
- import { useForm, Modal, Center, Empty } from '@vef-framework/components';
4
- import { useMutation } from '@vef-framework/core';
5
- import { isFunction } from '@vef-framework/shared';
6
- import { memo, useCallback } from 'react';
7
- import './components/index.js';
8
- import { FormActions } from './components/form-actions.js';
9
-
10
- const FormModal = memo(({
11
- open = false,
12
- title,
13
- width,
14
- submitButtonProps,
15
- resetButtonProps,
16
- defaultValues,
17
- disabled = false,
18
- mutationFn,
19
- mutationMeta,
20
- children,
21
- beforeSubmit,
22
- afterSubmit,
23
- onClose,
24
- onSubmit,
25
- onReset
1
+ import { jsx as e } from "@emotion/react/jsx-runtime";
2
+ import { useForm as N, Modal as O, Center as P, Empty as R } from "@vef-framework/components";
3
+ import { useMutation as b } from "@vef-framework/core";
4
+ import { isFunction as s } from "@vef-framework/shared";
5
+ import { memo as q, useCallback as l } from "react";
6
+ import "./components/index.js";
7
+ import { FormActions as v } from "./components/form-actions.js";
8
+ const z = q(({
9
+ open: F = !1,
10
+ title: k,
11
+ width: w,
12
+ submitButtonProps: A,
13
+ resetButtonProps: M,
14
+ defaultValues: t,
15
+ disabled: u = !1,
16
+ mutationFn: a,
17
+ mutationMeta: x,
18
+ children: i,
19
+ beforeSubmit: d,
20
+ afterSubmit: f,
21
+ onClose: p,
22
+ onSubmit: n,
23
+ onReset: y
26
24
  }) => {
27
25
  const {
28
- isPending,
29
- mutateAsync
30
- } = useMutation({
31
- mutationKey: [mutationFn?.key],
32
- mutationFn,
26
+ isPending: m,
27
+ mutateAsync: g
28
+ } = b({
29
+ mutationKey: [a?.key],
30
+ mutationFn: a,
33
31
  onSuccess: async ({
34
- data
35
- }, formValues) => {
36
- if (isFunction(afterSubmit)) {
37
- await afterSubmit(formValues, data);
38
- }
39
- handleClose();
32
+ data: c
33
+ }, o) => {
34
+ s(f) && await f(o, c), r();
40
35
  },
41
- meta: mutationMeta
42
- });
43
- const formApi = useForm({
44
- defaultValues,
36
+ meta: x
37
+ }), h = N({
38
+ defaultValues: t,
45
39
  onSubmit: async ({
46
- value
40
+ value: c
47
41
  }) => {
48
- let formValues = value;
49
- if (isFunction(beforeSubmit)) {
50
- formValues = await beforeSubmit(formValues);
51
- }
52
- if (isFunction(onSubmit)) {
53
- await onSubmit(formValues);
54
- }
55
- if (mutationFn) {
56
- await mutateAsync(formValues);
57
- } else if (!onSubmit) {
58
- handleClose();
59
- }
42
+ let o = c;
43
+ s(d) && (o = await d(o)), s(n) && await n(o), a ? await g(o) : n || r();
60
44
  }
61
- });
62
- const {
63
- Form,
64
- AppForm,
65
- reset
66
- } = formApi;
67
- const handleClose = useCallback(() => {
68
- reset();
69
- onClose?.();
70
- }, [onClose, reset]);
71
- const handleReset = useCallback(() => {
72
- onReset?.(defaultValues);
73
- }, [defaultValues, onReset]);
74
- const handleCancel = useCallback(() => {
75
- if (isPending) {
76
- return;
77
- }
78
- handleClose();
79
- }, [isPending, handleClose]);
80
- return /* @__PURE__ */ jsx(Modal, { destroyOnHidden: true, keyboard: false, maskClosable: false, open, title, width, footer: /* @__PURE__ */ jsx(AppForm, { children: /* @__PURE__ */ jsx(FormActions, { resetButtonProps, submitButtonProps, onReset: handleReset }) }), onCancel: handleCancel, children: /* @__PURE__ */ jsx(Form, { disabled: disabled || isPending, children: isFunction(children) ? children(formApi) : children || /* @__PURE__ */ jsx(Center, { children: /* @__PURE__ */ jsx(Empty, { description: "请提供表单内容" }) }) }) });
45
+ }), {
46
+ Form: j,
47
+ AppForm: E,
48
+ reset: C
49
+ } = h, r = l(() => {
50
+ C(), p?.();
51
+ }, [p, C]), H = l(() => {
52
+ y?.(t);
53
+ }, [t, y]), K = l(() => {
54
+ m || r();
55
+ }, [m, r]);
56
+ return /* @__PURE__ */ e(O, { destroyOnHidden: !0, keyboard: !1, maskClosable: !1, open: F, title: k, width: w, footer: /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(v, { resetButtonProps: M, submitButtonProps: A, onReset: H }) }), onCancel: K, children: /* @__PURE__ */ e(j, { disabled: u || m, children: s(i) ? i(h) : i || /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(R, { description: "请提供表单内容" }) }) }) });
81
57
  });
82
- FormModal.displayName = "FormModal";
83
-
84
- export { FormModal };
58
+ z.displayName = "FormModal";
59
+ export {
60
+ z as FormModal
61
+ };
@@ -1,20 +1,39 @@
1
- /*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
2
- export { AccessDenied } from './access-denied/index.js';
3
- export { App } from './app/index.js';
4
- export { BaseLayout } from './base-layout/index.js';
5
- export { Crud } from './crud/index.js';
6
- export { CrudPage } from './crud-page/index.js';
7
- export { Error } from './error/index.js';
8
- export { FlexCard } from './flex-card/index.js';
9
- export { FormDrawer } from './form-drawer/index.js';
10
- export { FormModal } from './form-modal/index.js';
11
- export { Layout } from './layout/index.js';
12
- export { Login } from './login/index.js';
13
- export { LogoIcon } from './logo-icon/index.js';
14
- import './n-progress/index.js';
15
- export { NotFound } from './not-found/index.js';
16
- export { Page } from './page/index.js';
17
- export { ProSearch } from './pro-search/index.js';
18
- export { ProTable } from './pro-table/index.js';
19
- export { RouterProvider } from './router-provider/index.js';
20
- export { ThemeConfigProvider } from './theme-config-provider/index.js';
1
+ import { AccessDenied as t } from "./access-denied/index.js";
2
+ import { App as p } from "./app/index.js";
3
+ import { BaseLayout as x } from "./base-layout/index.js";
4
+ import { Crud as d } from "./crud/index.js";
5
+ import { CrudPage as u } from "./crud-page/index.js";
6
+ import { Error as g } from "./error/index.js";
7
+ import { FlexCard as c } from "./flex-card/index.js";
8
+ import { FormDrawer as F } from "./form-drawer/index.js";
9
+ import { FormModal as l } from "./form-modal/index.js";
10
+ import { Layout as h } from "./layout/index.js";
11
+ import { Login as y } from "./login/index.js";
12
+ import { LogoIcon as D } from "./logo-icon/index.js";
13
+ import "./n-progress/index.js";
14
+ import { NotFound as b } from "./not-found/index.js";
15
+ import { Page as B } from "./page/index.js";
16
+ import { ProSearch as I } from "./pro-search/index.js";
17
+ import { ProTable as N } from "./pro-table/index.js";
18
+ import { RouterProvider as S } from "./router-provider/index.js";
19
+ import { ThemeConfigProvider as k } from "./theme-config-provider/index.js";
20
+ export {
21
+ t as AccessDenied,
22
+ p as App,
23
+ x as BaseLayout,
24
+ d as Crud,
25
+ u as CrudPage,
26
+ g as Error,
27
+ c as FlexCard,
28
+ F as FormDrawer,
29
+ l as FormModal,
30
+ h as Layout,
31
+ y as Login,
32
+ D as LogoIcon,
33
+ b as NotFound,
34
+ B as Page,
35
+ I as ProSearch,
36
+ N as ProTable,
37
+ S as RouterProvider,
38
+ k as ThemeConfigProvider
39
+ };
@@ -1,17 +1,15 @@
1
- /*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
2
- import { jsxs } from '@emotion/react/jsx-runtime';
3
- import { css } from '@emotion/react';
4
- import { globalCssVars } from '@vef-framework/components';
5
-
6
- const footerStyle = /* @__PURE__ */ css({
1
+ import { jsxs as c } from "@emotion/react/jsx-runtime";
2
+ import { css as b } from "@emotion/react";
3
+ import { globalCssVars as I } from "@vef-framework/components";
4
+ const l = /* @__PURE__ */ b({
7
5
  height: "100%",
8
- backgroundColor: globalCssVars.colorBgContainer,
6
+ backgroundColor: I.colorBgContainer,
9
7
  display: "flex",
10
8
  justifyContent: "center",
11
9
  alignItems: "center"
12
10
  }, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy92ZW51cy9WRUYvdmVmLWZyYW1ld29yay1yZWFjdC9wYWNrYWdlcy9zdGFydGVyL3NyYy9jb21wb25lbnRzL2xheW91dC9jb21wb25lbnRzL2Zvb3Rlci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBR29CIiwiZmlsZSI6Ii9Vc2Vycy92ZW51cy9WRUYvdmVmLWZyYW1ld29yay1yZWFjdC9wYWNrYWdlcy9zdGFydGVyL3NyYy9jb21wb25lbnRzL2xheW91dC9jb21wb25lbnRzL2Zvb3Rlci50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tIFwiQGVtb3Rpb24vcmVhY3RcIjtcbmltcG9ydCB7IGdsb2JhbENzc1ZhcnMgfSBmcm9tIFwiQHZlZi1mcmFtZXdvcmsvY29tcG9uZW50c1wiO1xuXG5jb25zdCBmb290ZXJTdHlsZSA9IGNzcyh7XG4gIGhlaWdodDogXCIxMDAlXCIsXG4gIGJhY2tncm91bmRDb2xvcjogZ2xvYmFsQ3NzVmFycy5jb2xvckJnQ29udGFpbmVyLFxuICBkaXNwbGF5OiBcImZsZXhcIixcbiAganVzdGlmeUNvbnRlbnQ6IFwiY2VudGVyXCIsXG4gIGFsaWduSXRlbXM6IFwiY2VudGVyXCJcbn0pO1xuXG5leHBvcnQgZnVuY3Rpb24gRm9vdGVyKCkge1xuICByZXR1cm4gKFxuICAgIDxkaXYgY3NzPXtmb290ZXJTdHlsZX0+XG4gICAgICBDb3B5cmlnaHQgwqlcbiAgICAgIHtcIiBcIn1cbiAgICAgIHtuZXcgRGF0ZSgpLmdldEZ1bGxZZWFyKCl9XG4gICAgICB7XCIgXCJ9XG4gICAgICBWRUYgRnJhbWV3b3JrLiBBbGwgcmlnaHRzIHJlc2VydmVkLlxuICAgIDwvZGl2PlxuICApO1xufVxuIl19 */");
13
- function Footer() {
14
- return /* @__PURE__ */ jsxs("div", { css: footerStyle, children: [
11
+ function t() {
12
+ return /* @__PURE__ */ c("div", { css: l, children: [
15
13
  "Copyright ©",
16
14
  " ",
17
15
  (/* @__PURE__ */ new Date()).getFullYear(),
@@ -19,5 +17,6 @@ function Footer() {
19
17
  "VEF Framework. All rights reserved."
20
18
  ] });
21
19
  }
22
-
23
- export { Footer };
20
+ export {
21
+ t as Footer
22
+ };