@vef-framework-react/components 2.1.6 → 2.1.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.
- package/dist/cjs/charts/helpers/group.cjs +1 -1
- package/dist/cjs/charts/hooks/use-chart.cjs +1 -1
- package/dist/cjs/config-provider/global-style.cjs +1 -1
- package/dist/cjs/config-provider/index.cjs +1 -1
- package/dist/cjs/crud/components/main.cjs +1 -1
- package/dist/cjs/crud/components/mutation-holder.cjs +1 -1
- package/dist/cjs/crud/components/scene-form.cjs +1 -1
- package/dist/cjs/crud/components/selection-indicator.cjs +1 -1
- package/dist/cjs/crud/index.cjs +1 -1
- package/dist/cjs/crud/store.cjs +1 -1
- package/dist/cjs/crud/styles.cjs +1 -1
- package/dist/cjs/flex-card/styles.cjs +1 -1
- package/dist/cjs/form/components/form.cjs +1 -1
- package/dist/cjs/form/fields/date-picker/index.cjs +1 -1
- package/dist/cjs/form/fields/date-range-picker/index.cjs +1 -1
- package/dist/cjs/form/fields/time-picker/index.cjs +1 -1
- package/dist/cjs/form/fields/time-range-picker/index.cjs +1 -1
- package/dist/cjs/form/form-actions.cjs +1 -0
- package/dist/cjs/form/form.cjs +1 -1
- package/dist/cjs/form/helpers/create-field.cjs +1 -0
- package/dist/cjs/form/helpers/index.cjs +1 -1
- package/dist/cjs/form/index.cjs +1 -1
- package/dist/cjs/form/use-form.cjs +1 -1
- package/dist/cjs/form-drawer/index.cjs +1 -1
- package/dist/cjs/form-modal/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/modal/index.cjs +1 -1
- package/dist/cjs/modal/modal.cjs +1 -0
- package/dist/cjs/page/components/resize-handle.cjs +1 -1
- package/dist/cjs/page/components/scroll-content.cjs +1 -1
- package/dist/cjs/page/styles.cjs +1 -1
- package/dist/cjs/pro-search/components/search-actions.cjs +1 -1
- package/dist/cjs/pro-search/index.cjs +1 -1
- package/dist/cjs/pro-search/styles.cjs +1 -1
- package/dist/cjs/pro-table/components/column-setting-item.cjs +1 -1
- package/dist/cjs/pro-table/components/column-settings-panel.cjs +1 -1
- package/dist/cjs/pro-table/components/table.cjs +1 -1
- package/dist/cjs/pro-table/components/width-popover.cjs +1 -1
- package/dist/cjs/pro-table/hooks/use-table-columns.cjs +1 -1
- package/dist/cjs/pro-table/index.cjs +1 -1
- package/dist/cjs/select/hooks/index.cjs +1 -1
- package/dist/cjs/select/hooks/use-dictionary-options-select.cjs +1 -0
- package/dist/cjs/select/index.cjs +1 -1
- package/dist/cjs/upload/index.cjs +1 -1
- package/dist/es/_base/constants/breakpoints.js +1 -1
- package/dist/es/_base/constants/common.js +1 -1
- package/dist/es/_base/constants/css-vars.js +1 -1
- package/dist/es/_base/constants/event.js +1 -1
- package/dist/es/_base/constants/index.js +1 -1
- package/dist/es/_base/constants/symbols.js +1 -1
- package/dist/es/_base/helpers/breakpoints.js +1 -1
- package/dist/es/_base/helpers/color.js +1 -1
- package/dist/es/_base/helpers/common.js +1 -1
- package/dist/es/_base/helpers/event.js +1 -1
- package/dist/es/_base/helpers/index.js +1 -1
- package/dist/es/_base/helpers/message.js +1 -1
- package/dist/es/_base/helpers/modal.js +1 -1
- package/dist/es/_base/helpers/notification.js +1 -1
- package/dist/es/_base/helpers/props.js +1 -1
- package/dist/es/_base/helpers/react.js +1 -1
- package/dist/es/_base/hooks/index.js +1 -1
- package/dist/es/_base/hooks/use-theme-tokens.js +1 -1
- package/dist/es/_base/index.js +1 -1
- package/dist/es/_base/styles/common.js +1 -1
- package/dist/es/_base/styles/index.js +1 -1
- package/dist/es/_base/types/breakpoints.js +1 -1
- package/dist/es/_base/types/common.js +1 -1
- package/dist/es/_base/types/index.js +1 -1
- package/dist/es/action-button/index.js +1 -1
- package/dist/es/action-button/use-action-button.js +1 -1
- package/dist/es/action-group/index.js +1 -1
- package/dist/es/action-group/use-action-group.js +1 -1
- package/dist/es/action-group/use-computed-action-buttons.js +1 -1
- package/dist/es/affix/index.js +1 -1
- package/dist/es/alert/index.js +1 -1
- package/dist/es/anchor/index.js +1 -1
- package/dist/es/auto-complete/index.js +1 -1
- package/dist/es/avatar/index.js +1 -1
- package/dist/es/badge/index.js +1 -1
- package/dist/es/bool/index.js +1 -1
- package/dist/es/breadcrumb/index.js +1 -1
- package/dist/es/button/index.js +1 -1
- package/dist/es/calendar/index.js +1 -1
- package/dist/es/card/index.js +1 -1
- package/dist/es/carousel/index.js +1 -1
- package/dist/es/cascader/index.js +1 -1
- package/dist/es/center/index.js +1 -1
- package/dist/es/charts/chart.js +1 -1
- package/dist/es/charts/helpers/group.js +1 -1
- package/dist/es/charts/helpers/index.js +1 -1
- package/dist/es/charts/hooks/index.js +1 -1
- package/dist/es/charts/hooks/use-chart.js +1 -1
- package/dist/es/charts/index.js +1 -1
- package/dist/es/charts/themes/index.js +1 -1
- package/dist/es/charts/themes/walden-dark.js +1 -1
- package/dist/es/charts/themes/walden.js +1 -1
- package/dist/es/charts/themes/wonderland-dark.js +1 -1
- package/dist/es/charts/themes/wonderland.js +1 -1
- package/dist/es/checkbox/index.js +1 -1
- package/dist/es/code-highlighter/index.js +1 -1
- package/dist/es/col/index.js +1 -1
- package/dist/es/collapse/index.js +1 -1
- package/dist/es/color-picker/index.js +1 -1
- package/dist/es/compact/index.js +1 -1
- package/dist/es/config-provider/app.js +1 -1
- package/dist/es/config-provider/constants.js +1 -1
- package/dist/es/config-provider/context-holder.js +1 -1
- package/dist/es/config-provider/css-vars.js +1 -1
- package/dist/es/config-provider/dark-mode-context.js +1 -1
- package/dist/es/config-provider/error-fallback.js +1 -1
- package/dist/es/config-provider/global-style.js +1 -1
- package/dist/es/config-provider/index.js +1 -1
- package/dist/es/config-provider/theme-config.js +1 -1
- package/dist/es/config-provider/use-config-provider.js +5 -8
- package/dist/es/crud/components/action-button-group.js +1 -1
- package/dist/es/crud/components/index.js +1 -1
- package/dist/es/crud/components/main.js +3 -3
- package/dist/es/crud/components/mutation-holder.js +33 -23
- package/dist/es/crud/components/operation-button-group.js +1 -1
- package/dist/es/crud/components/scene-form.js +3 -1
- package/dist/es/crud/components/selection-indicator.js +3 -3
- package/dist/es/crud/components/toolbar-actions.js +1 -1
- package/dist/es/crud/components/toolbar.js +1 -1
- package/dist/es/crud/event.js +1 -1
- package/dist/es/crud/helpers.js +1 -1
- package/dist/es/crud/hooks/index.js +1 -1
- package/dist/es/crud/hooks/use-query-observer.js +1 -1
- package/dist/es/crud/hooks/use-search-values.js +1 -1
- package/dist/es/crud/hooks/use-selected-rows.js +1 -1
- package/dist/es/crud/index.js +23 -20
- package/dist/es/crud/store.js +10 -2
- package/dist/es/crud/styles.js +3 -3
- package/dist/es/crud-page/index.js +1 -1
- package/dist/es/date-picker/index.js +1 -1
- package/dist/es/descriptions/index.js +1 -1
- package/dist/es/divider/index.js +1 -1
- package/dist/es/drawer/index.js +1 -1
- package/dist/es/dropdown/index.js +1 -1
- package/dist/es/dynamic-icon/index.js +1 -1
- package/dist/es/dynamic-icon/placeholder-icon.js +1 -1
- package/dist/es/dynamic-icon/unknown-icon.js +1 -1
- package/dist/es/empty/empty.js +1 -1
- package/dist/es/empty/index.js +1 -1
- package/dist/es/flex/index.js +1 -1
- package/dist/es/flex-card/index.js +1 -1
- package/dist/es/flex-card/styles.js +2 -2
- package/dist/es/flip-text/index.js +1 -1
- package/dist/es/float-button/index.js +1 -1
- package/dist/es/form/components/form.js +16 -16
- package/dist/es/form/components/index.js +1 -1
- package/dist/es/form/components/reset-button.js +1 -1
- package/dist/es/form/components/submit-button.js +1 -1
- package/dist/es/form/contexts/form-context.js +1 -1
- package/dist/es/form/contexts/form-layout.js +1 -1
- package/dist/es/form/contexts/index.js +1 -1
- package/dist/es/form/fields/auto-complete/index.js +1 -1
- package/dist/es/form/fields/bool/index.js +1 -1
- package/dist/es/form/fields/cascader/index.js +1 -1
- package/dist/es/form/fields/checkbox/index.js +1 -1
- package/dist/es/form/fields/color-picker/index.js +1 -1
- package/dist/es/form/fields/date-picker/index.js +11 -10
- package/dist/es/form/fields/date-range-picker/index.js +23 -10
- package/dist/es/form/fields/index.js +1 -1
- package/dist/es/form/fields/input/index.js +1 -1
- package/dist/es/form/fields/input-number/index.js +1 -1
- package/dist/es/form/fields/mentions/index.js +1 -1
- package/dist/es/form/fields/password/index.js +1 -1
- package/dist/es/form/fields/radio/index.js +1 -1
- package/dist/es/form/fields/rate/index.js +1 -1
- package/dist/es/form/fields/select/index.js +1 -1
- package/dist/es/form/fields/slider/index.js +1 -1
- package/dist/es/form/fields/textarea/index.js +1 -1
- package/dist/es/form/fields/time-picker/index.js +11 -10
- package/dist/es/form/fields/time-range-picker/index.js +23 -10
- package/dist/es/form/fields/transfer/index.js +1 -1
- package/dist/es/form/fields/tree-select/index.js +1 -1
- package/dist/es/form/fields/upload/index.js +1 -1
- package/dist/es/form/form-actions.js +40 -0
- package/dist/es/form/form.js +5 -2
- package/dist/es/form/helpers/create-field.js +15 -0
- package/dist/es/form/helpers/index.js +2 -1
- package/dist/es/form/helpers/with-form-item.js +1 -1
- package/dist/es/form/hooks/use-form-item-props.js +1 -1
- package/dist/es/form/hooks/use-label-width.js +1 -1
- package/dist/es/form/index.js +2 -1
- package/dist/es/form/use-form.js +5 -10
- package/dist/es/form-drawer/index.js +61 -54
- package/dist/es/form-modal/index.js +55 -51
- package/dist/es/grid/context.js +1 -1
- package/dist/es/grid/grid-item.js +1 -1
- package/dist/es/grid/hooks/index.js +1 -1
- package/dist/es/grid/hooks/use-container-breakpoints.js +1 -1
- package/dist/es/grid/hooks/use-container-width.js +1 -1
- package/dist/es/grid/hooks/use-grid-collapsed.js +1 -1
- package/dist/es/grid/hooks/use-normalized-gap.js +1 -1
- package/dist/es/grid/hooks/use-responsive-breakpoint.js +1 -1
- package/dist/es/grid/hooks/use-responsive-value.js +1 -1
- package/dist/es/grid/index.js +1 -1
- package/dist/es/grid/styles.js +1 -1
- package/dist/es/group/index.js +1 -1
- package/dist/es/icon/index.js +1 -1
- package/dist/es/icon-button/index.js +1 -1
- package/dist/es/image/index.js +1 -1
- package/dist/es/index.js +59 -58
- package/dist/es/input/index.js +1 -1
- package/dist/es/input-number/index.js +1 -1
- package/dist/es/keyboard/index.js +1 -1
- package/dist/es/list/index.js +1 -1
- package/dist/es/loader/index.js +1 -1
- package/dist/es/logo-icon/index.js +1 -1
- package/dist/es/mentions/index.js +1 -1
- package/dist/es/menu/index.js +1 -1
- package/dist/es/modal/index.js +2 -3
- package/dist/es/modal/modal.js +60 -0
- package/dist/es/operation-button/index.js +1 -1
- package/dist/es/page/components/aside-panel.js +1 -1
- package/dist/es/page/components/index.js +1 -1
- package/dist/es/page/components/resize-handle.js +1 -1
- package/dist/es/page/components/scroll-content.js +2 -2
- package/dist/es/page/hooks/index.js +1 -1
- package/dist/es/page/hooks/use-page-key.js +1 -1
- package/dist/es/page/hooks/use-resize.js +1 -1
- package/dist/es/page/index.js +1 -1
- package/dist/es/page/styles.js +15 -15
- package/dist/es/page/viewport-context.js +1 -1
- package/dist/es/pagination/index.js +1 -1
- package/dist/es/permission-gate/index.js +1 -1
- package/dist/es/popconfirm/index.js +1 -1
- package/dist/es/popover/index.js +1 -1
- package/dist/es/pro-search/components/advanced-search-toggler.js +1 -1
- package/dist/es/pro-search/components/advanced-search.js +1 -1
- package/dist/es/pro-search/components/index.js +1 -1
- package/dist/es/pro-search/components/search-actions.js +5 -5
- package/dist/es/pro-search/index.js +4 -4
- package/dist/es/pro-search/styles.js +6 -6
- package/dist/es/pro-table/components/column-setting-item.js +13 -13
- package/dist/es/pro-table/components/column-settings-panel.js +6 -6
- package/dist/es/pro-table/components/column-settings.js +1 -1
- package/dist/es/pro-table/components/index.js +1 -1
- package/dist/es/pro-table/components/operation-button-group.js +1 -1
- package/dist/es/pro-table/components/ref.js +1 -1
- package/dist/es/pro-table/components/table-subscriber.js +1 -1
- package/dist/es/pro-table/components/table-summary.js +1 -1
- package/dist/es/pro-table/components/table-title.js +1 -1
- package/dist/es/pro-table/components/table.js +2 -2
- package/dist/es/pro-table/components/width-popover.js +5 -5
- package/dist/es/pro-table/context.js +1 -1
- package/dist/es/pro-table/event.js +1 -1
- package/dist/es/pro-table/hooks/index.js +1 -1
- package/dist/es/pro-table/hooks/use-column-settings-persistence.js +1 -1
- package/dist/es/pro-table/hooks/use-row-selection.js +1 -1
- package/dist/es/pro-table/hooks/use-table-columns.js +4 -4
- package/dist/es/pro-table/index.js +2 -2
- package/dist/es/pro-table/store.js +1 -1
- package/dist/es/progress/index.js +1 -1
- package/dist/es/qrcode/index.js +1 -1
- package/dist/es/radio/index.js +1 -1
- package/dist/es/rate/index.js +1 -1
- package/dist/es/result/index.js +1 -1
- package/dist/es/row/index.js +1 -1
- package/dist/es/scroll-area/index.js +1 -1
- package/dist/es/scroll-area/styles.js +1 -1
- package/dist/es/segmented/index.js +1 -1
- package/dist/es/select/hooks/index.js +2 -1
- package/dist/es/select/hooks/use-data-options-select.js +1 -1
- package/dist/es/select/hooks/use-dictionary-options-select.js +55 -0
- package/dist/es/select/index.js +2 -1
- package/dist/es/skeleton/index.js +1 -1
- package/dist/es/slider/index.js +1 -1
- package/dist/es/space/index.js +1 -1
- package/dist/es/space/space.js +1 -1
- package/dist/es/sparkles-text/index.js +1 -1
- package/dist/es/sparkles-text/sparkle.js +1 -1
- package/dist/es/spin/index.js +1 -1
- package/dist/es/split-text/index.js +1 -1
- package/dist/es/splitter/index.js +1 -1
- package/dist/es/stack/index.js +1 -1
- package/dist/es/statistic/index.js +1 -1
- package/dist/es/steps/index.js +1 -1
- package/dist/es/switch/index.js +1 -1
- package/dist/es/table/index.js +1 -1
- package/dist/es/table/use-pagination-props.js +1 -1
- package/dist/es/tabs/index.js +1 -1
- package/dist/es/tag/index.js +1 -1
- package/dist/es/time-picker/index.js +1 -1
- package/dist/es/timeline/index.js +1 -1
- package/dist/es/tooltip/index.js +1 -1
- package/dist/es/tour/index.js +1 -1
- package/dist/es/transfer/index.js +1 -1
- package/dist/es/tree/hooks/index.js +1 -1
- package/dist/es/tree/hooks/use-data-options-tree.js +1 -1
- package/dist/es/tree/index.js +1 -1
- package/dist/es/tree-select/hooks/index.js +1 -1
- package/dist/es/tree-select/hooks/use-data-options-tree-select.js +1 -1
- package/dist/es/tree-select/index.js +1 -1
- package/dist/es/typing-animation/index.js +1 -1
- package/dist/es/typography/index.js +1 -1
- package/dist/es/upload/index.js +1 -1
- package/dist/es/watermark/index.js +1 -1
- package/dist/types/_base/types/common.d.ts +4 -0
- package/dist/types/crud/components/mutation-holder.d.ts +2 -1
- package/dist/types/crud/index.d.ts +1 -1
- package/dist/types/crud/props.d.ts +7 -1
- package/dist/types/crud/store.d.ts +5 -1
- package/dist/types/crud/types.d.ts +2 -2
- package/dist/types/date-picker/index.d.ts +1 -1
- package/dist/types/dynamic-icon/index.d.ts +1 -1
- package/dist/types/form/components/form.d.ts +13 -4
- package/dist/types/form/fields/date-picker/index.d.ts +3 -3
- package/dist/types/form/fields/date-picker/props.d.ts +6 -1
- package/dist/types/form/fields/date-range-picker/index.d.ts +3 -3
- package/dist/types/form/fields/date-range-picker/props.d.ts +6 -1
- package/dist/types/form/fields/index.d.ts +4 -4
- package/dist/types/form/fields/time-picker/index.d.ts +3 -3
- package/dist/types/form/fields/time-picker/props.d.ts +6 -1
- package/dist/types/form/fields/time-range-picker/index.d.ts +3 -3
- package/dist/types/form/fields/time-range-picker/props.d.ts +6 -1
- package/dist/types/form/form-actions.d.ts +33 -0
- package/dist/types/form/form.d.ts +25 -25
- package/dist/types/form/helpers/create-field.d.ts +91 -0
- package/dist/types/form/helpers/index.d.ts +2 -0
- package/dist/types/form/index.d.ts +3 -0
- package/dist/types/form/types.d.ts +4 -1
- package/dist/types/form/use-form.d.ts +3 -37
- package/dist/types/form-drawer/props.d.ts +30 -10
- package/dist/types/form-modal/props.d.ts +30 -10
- package/dist/types/grid/index.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/modal/index.d.ts +2 -2
- package/dist/types/modal/modal.d.ts +11 -0
- package/dist/types/page/props.d.ts +1 -1
- package/dist/types/pro-search/props.d.ts +1 -1
- package/dist/types/pro-table/components/index.d.ts +1 -1
- package/dist/types/pro-table/components/table.d.ts +2 -1
- package/dist/types/pro-table/hooks/use-row-selection.d.ts +1 -1
- package/dist/types/pro-table/hooks/use-table-columns.d.ts +1 -1
- package/dist/types/pro-table/index.d.ts +1 -1
- package/dist/types/pro-table/props.d.ts +1 -1
- package/dist/types/pro-table/store.d.ts +3 -3
- package/dist/types/pro-table/types.d.ts +1 -1
- package/dist/types/select/hooks/index.d.ts +1 -0
- package/dist/types/select/hooks/use-dictionary-options-select.d.ts +18 -0
- package/dist/types/select/index.d.ts +1 -1
- package/package.json +10 -10
- package/dist/cjs/form-drawer/components/form-actions.cjs +0 -1
- package/dist/cjs/form-drawer/components/index.cjs +0 -1
- package/dist/cjs/form-modal/components/draggable-wrapper.cjs +0 -1
- package/dist/cjs/form-modal/components/form-actions.cjs +0 -1
- package/dist/cjs/form-modal/components/index.cjs +0 -1
- package/dist/es/form-drawer/components/form-actions.js +0 -26
- package/dist/es/form-drawer/components/index.js +0 -2
- package/dist/es/form-modal/components/draggable-wrapper.js +0 -52
- package/dist/es/form-modal/components/form-actions.js +0 -26
- package/dist/es/form-modal/components/index.js +0 -3
- package/dist/types/form-drawer/components/form-actions.d.ts +0 -19
- package/dist/types/form-drawer/components/index.d.ts +0 -1
- package/dist/types/form-modal/components/draggable-wrapper.d.ts +0 -9
- package/dist/types/form-modal/components/form-actions.d.ts +0 -19
- package/dist/types/form-modal/components/index.d.ts +0 -2
package/dist/es/divider/index.js
CHANGED
package/dist/es/drawer/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { Icon as e } from "../icon/index.js";
|
|
3
3
|
import { PlaceholderIcon as t } from "./placeholder-icon.js";
|
|
4
4
|
import { UnknownIcon as n } from "./unknown-icon.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { globalCssVars as e } from "../_base/constants/css-vars.js";
|
|
3
3
|
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
4
|
//#region src/dynamic-icon/placeholder-icon.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { jsx as e, jsxs as t } from "@emotion/react/jsx-runtime";
|
|
3
3
|
//#region src/dynamic-icon/unknown-icon.tsx
|
|
4
4
|
function n({ size: n = "1.2em", ...r }) {
|
package/dist/es/empty/empty.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
3
3
|
import { Empty as t } from "antd";
|
|
4
4
|
//#region src/empty/empty.tsx
|
package/dist/es/empty/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import "./empty.js";
|
package/dist/es/flex/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { Card as e } from "../card/index.js";
|
|
3
3
|
import { container as t } from "./styles.js";
|
|
4
4
|
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { globalCssVars as e } from "../_base/constants/css-vars.js";
|
|
3
3
|
import { css as t } from "@emotion/react";
|
|
4
4
|
//#region src/flex-card/styles.ts
|
|
@@ -15,6 +15,6 @@ var n = /* @__PURE__ */ t({
|
|
|
15
15
|
minHeight: 0
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
18
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJeUIiLCJmaWxlIjoic3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XG5cbmltcG9ydCB7IGdsb2JhbENzc1ZhcnMgfSBmcm9tIFwiLi4vX2Jhc2VcIjtcblxuZXhwb3J0IGNvbnN0IGNvbnRhaW5lciA9IGNzcyh7XG4gIGhlaWdodDogXCIxMDAlXCIsXG4gIGRpc3BsYXk6IFwiZmxleFwiLFxuICBmbGV4RGlyZWN0aW9uOiBcImNvbHVtblwiLFxuICBcIiYudmVmLWNhcmRcIjoge1xuICAgIFwiLS12ZWYtY2FyZC1oZWFkZXItcGFkZGluZ1wiOiBnbG9iYWxDc3NWYXJzLnNwYWNpbmdNZCxcbiAgICBcIi0tdmVmLWNhcmQtYm9keS1wYWRkaW5nXCI6IGdsb2JhbENzc1ZhcnMuc3BhY2luZ01kLFxuICAgIFwiJiA+IC52ZWYtY2FyZC1oZWFkXCI6IHtcbiAgICAgIGZsZXg6IFwibm9uZVwiXG4gICAgfSxcbiAgICBcIiYgPiAudmVmLWNhcmQtYm9keVwiOiB7XG4gICAgICBmbGV4OiBcImF1dG9cIixcbiAgICAgIG1pbkhlaWdodDogMFxuICAgIH1cbiAgfVxufSk7XG4iXX0= */");
|
|
19
19
|
//#endregion
|
|
20
20
|
export { n as container };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { Center as e } from "../center/index.js";
|
|
3
3
|
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
4
|
import { Children as n } from "react";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { useFormContext as e } from "../contexts/form-context.js";
|
|
3
3
|
import { FormLayoutProvider as t, defaultFormLayout as n } from "../contexts/form-layout.js";
|
|
4
4
|
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
5
5
|
import { useMemo as i } from "react";
|
|
6
6
|
import { DisabledProvider as a } from "@vef-framework-react/core";
|
|
7
7
|
//#region src/form/components/form.tsx
|
|
8
|
-
function o({ layout: o = n.layout, labelAlign: s = n.labelAlign, labelWidth: c = n.labelWidth, disabled: l = !1,
|
|
9
|
-
let { handleSubmit:
|
|
8
|
+
function o({ layout: o = n.layout, labelAlign: s = n.labelAlign, labelWidth: c = n.labelWidth, disabled: l = !1, component: u, children: d, ...f }) {
|
|
9
|
+
let p = u ?? "form", { handleSubmit: m, reset: h } = e(), g = i(() => ({
|
|
10
10
|
layout: o,
|
|
11
11
|
labelAlign: s,
|
|
12
12
|
labelWidth: c
|
|
@@ -14,22 +14,22 @@ function o({ layout: o = n.layout, labelAlign: s = n.labelAlign, labelWidth: c =
|
|
|
14
14
|
o,
|
|
15
15
|
s,
|
|
16
16
|
c
|
|
17
|
-
]);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
]), _ = p === "form";
|
|
18
|
+
return /* @__PURE__ */ r(p, {
|
|
19
|
+
...f,
|
|
20
|
+
..._ && {
|
|
21
|
+
onReset: (e) => {
|
|
22
|
+
e.preventDefault(), h();
|
|
23
|
+
},
|
|
24
|
+
onSubmit: (e) => {
|
|
25
|
+
e.preventDefault(), m();
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
28
|
children: /* @__PURE__ */ r(t, {
|
|
29
|
-
value:
|
|
29
|
+
value: g,
|
|
30
30
|
children: /* @__PURE__ */ r(a, {
|
|
31
31
|
value: l,
|
|
32
|
-
children:
|
|
32
|
+
children: d
|
|
33
33
|
})
|
|
34
34
|
})
|
|
35
35
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { Form as e } from "./form.js";
|
|
3
3
|
import { ResetButton as t } from "./reset-button.js";
|
|
4
4
|
import { SubmitButton as n } from "./submit-button.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { Button as e } from "../../button/index.js";
|
|
3
3
|
import { useFormContext as t } from "../contexts/form-context.js";
|
|
4
4
|
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { Button as e } from "../../button/index.js";
|
|
3
3
|
import { useFormContext as t } from "../contexts/form-context.js";
|
|
4
4
|
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { createFormHookContexts as e } from "@tanstack/react-form";
|
|
3
3
|
//#region src/form/contexts/form-context.ts
|
|
4
4
|
var { formContext: t, fieldContext: n, useFormContext: r, useFieldContext: i } = e();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { createContext as e, use as t } from "react";
|
|
3
3
|
//#region src/form/contexts/form-layout.ts
|
|
4
4
|
var n = Object.freeze({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { fullWidth as e } from "../../../_base/styles/common.js";
|
|
3
3
|
import { AutoComplete as t } from "../../../auto-complete/index.js";
|
|
4
4
|
import { useFieldContext as n } from "../../contexts/form-context.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { Bool as e } from "../../../bool/index.js";
|
|
3
3
|
import { useFieldContext as t } from "../../contexts/form-context.js";
|
|
4
4
|
import { withFormItem as n } from "../../helpers/with-form-item.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { fullWidth as e } from "../../../_base/styles/common.js";
|
|
3
3
|
import { Cascader as t } from "../../../cascader/index.js";
|
|
4
4
|
import { useFieldContext as n } from "../../contexts/form-context.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { Checkbox as e } from "../../../checkbox/index.js";
|
|
3
3
|
import { useFieldContext as t } from "../../contexts/form-context.js";
|
|
4
4
|
import { withFormItem as n } from "../../helpers/with-form-item.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { ColorPicker as e } from "../../../color-picker/index.js";
|
|
3
3
|
import { useFieldContext as t } from "../../contexts/form-context.js";
|
|
4
4
|
import { withFormItem as n } from "../../helpers/with-form-item.js";
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { fullWidth as e } from "../../../_base/styles/common.js";
|
|
3
3
|
import { useFieldContext as t } from "../../contexts/form-context.js";
|
|
4
4
|
import { withFormItem as n } from "../../helpers/with-form-item.js";
|
|
5
5
|
import { DatePicker as r } from "../../../date-picker/index.js";
|
|
6
6
|
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
7
|
-
import {
|
|
7
|
+
import { tryParseDate as a } from "@vef-framework-react/shared";
|
|
8
|
+
import { useDisabled as o } from "@vef-framework-react/core";
|
|
8
9
|
//#region src/form/fields/date-picker/index.tsx
|
|
9
|
-
function
|
|
10
|
-
let { state: { value:
|
|
10
|
+
function s({ disabled: n, valueAsObject: s, ...c }) {
|
|
11
|
+
let { state: { value: l }, handleChange: u } = t(), d = o() || n;
|
|
11
12
|
return /* @__PURE__ */ i(r, {
|
|
12
|
-
...
|
|
13
|
+
...c,
|
|
13
14
|
css: e,
|
|
14
|
-
disabled:
|
|
15
|
-
value:
|
|
16
|
-
onChange:
|
|
15
|
+
disabled: d,
|
|
16
|
+
value: typeof l == "string" ? a(l) : l,
|
|
17
|
+
onChange: s ? u : (e, t) => u(t || null)
|
|
17
18
|
});
|
|
18
19
|
}
|
|
19
|
-
var
|
|
20
|
+
var c = n("DatePickerField", s);
|
|
20
21
|
//#endregion
|
|
21
|
-
export {
|
|
22
|
+
export { c as DatePickerField };
|
|
@@ -1,21 +1,34 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { fullWidth as e } from "../../../_base/styles/common.js";
|
|
3
3
|
import { useFieldContext as t } from "../../contexts/form-context.js";
|
|
4
4
|
import { withFormItem as n } from "../../helpers/with-form-item.js";
|
|
5
5
|
import { DatePicker as r } from "../../../date-picker/index.js";
|
|
6
6
|
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
7
|
-
import {
|
|
7
|
+
import { isArray as a, isNullish as o, isString as s, parseDate as c } from "@vef-framework-react/shared";
|
|
8
|
+
import { useDisabled as l } from "@vef-framework-react/core";
|
|
8
9
|
//#region src/form/fields/date-range-picker/index.tsx
|
|
9
|
-
function
|
|
10
|
-
|
|
10
|
+
function u(e) {
|
|
11
|
+
if (a(e)) {
|
|
12
|
+
let [t, n] = e;
|
|
13
|
+
return [s(t) ? c(t) : t, s(n) ? c(n) : n];
|
|
14
|
+
}
|
|
15
|
+
return e;
|
|
16
|
+
}
|
|
17
|
+
function d({ disabled: n, valueAsObject: a, ...s }) {
|
|
18
|
+
let { state: { value: c }, handleChange: d } = t(), f = l() || n;
|
|
11
19
|
return /* @__PURE__ */ i(r.RangePicker, {
|
|
12
|
-
...
|
|
20
|
+
...s,
|
|
13
21
|
css: e,
|
|
14
|
-
disabled:
|
|
15
|
-
value:
|
|
16
|
-
onChange:
|
|
22
|
+
disabled: f,
|
|
23
|
+
value: u(c),
|
|
24
|
+
onChange: a ? (e) => {
|
|
25
|
+
if (e) {
|
|
26
|
+
let [t, n] = e;
|
|
27
|
+
!o(t) && !o(n) && d([t, n]);
|
|
28
|
+
}
|
|
29
|
+
} : (e, t) => d(t)
|
|
17
30
|
});
|
|
18
31
|
}
|
|
19
|
-
var
|
|
32
|
+
var f = n("DateRangePickerField", d);
|
|
20
33
|
//#endregion
|
|
21
|
-
export {
|
|
34
|
+
export { f as DateRangePickerField };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { AutoCompleteField as e } from "./auto-complete/index.js";
|
|
3
3
|
import { BoolField as t } from "./bool/index.js";
|
|
4
4
|
import { CascaderField as n } from "./cascader/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { useFieldContext as e } from "../../contexts/form-context.js";
|
|
3
3
|
import { withFormItem as t } from "../../helpers/with-form-item.js";
|
|
4
4
|
import { Input as n } from "../../../input/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { fullWidth as e } from "../../../_base/styles/common.js";
|
|
3
3
|
import { useFieldContext as t } from "../../contexts/form-context.js";
|
|
4
4
|
import { withFormItem as n } from "../../helpers/with-form-item.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { fullWidth as e } from "../../../_base/styles/common.js";
|
|
3
3
|
import { useFieldContext as t } from "../../contexts/form-context.js";
|
|
4
4
|
import { withFormItem as n } from "../../helpers/with-form-item.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { useFieldContext as e } from "../../contexts/form-context.js";
|
|
3
3
|
import { withFormItem as t } from "../../helpers/with-form-item.js";
|
|
4
4
|
import { Input as n } from "../../../input/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { Radio as e } from "../../../radio/index.js";
|
|
3
3
|
import { useFieldContext as t } from "../../contexts/form-context.js";
|
|
4
4
|
import { withFormItem as n } from "../../helpers/with-form-item.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { useFieldContext as e } from "../../contexts/form-context.js";
|
|
3
3
|
import { withFormItem as t } from "../../helpers/with-form-item.js";
|
|
4
4
|
import { Rate as n } from "../../../rate/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { useFieldContext as e } from "../../contexts/form-context.js";
|
|
3
3
|
import { withFormItem as t } from "../../helpers/with-form-item.js";
|
|
4
4
|
import { Select as n } from "../../../select/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { Slider as e } from "../../../slider/index.js";
|
|
3
3
|
import { useFieldContext as t } from "../../contexts/form-context.js";
|
|
4
4
|
import { withFormItem as n } from "../../helpers/with-form-item.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { useFieldContext as e } from "../../contexts/form-context.js";
|
|
3
3
|
import { withFormItem as t } from "../../helpers/with-form-item.js";
|
|
4
4
|
import { Input as n } from "../../../input/index.js";
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { fullWidth as e } from "../../../_base/styles/common.js";
|
|
3
3
|
import { useFieldContext as t } from "../../contexts/form-context.js";
|
|
4
4
|
import { withFormItem as n } from "../../helpers/with-form-item.js";
|
|
5
5
|
import { TimePicker as r } from "../../../time-picker/index.js";
|
|
6
6
|
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
7
|
-
import {
|
|
7
|
+
import { tryParseDate as a } from "@vef-framework-react/shared";
|
|
8
|
+
import { useDisabled as o } from "@vef-framework-react/core";
|
|
8
9
|
//#region src/form/fields/time-picker/index.tsx
|
|
9
|
-
function
|
|
10
|
-
let { state: { value:
|
|
10
|
+
function s({ disabled: n, valueAsObject: s, ...c }) {
|
|
11
|
+
let { state: { value: l }, handleChange: u } = t(), d = o() || n;
|
|
11
12
|
return /* @__PURE__ */ i(r, {
|
|
12
|
-
...
|
|
13
|
+
...c,
|
|
13
14
|
css: e,
|
|
14
|
-
disabled:
|
|
15
|
-
value:
|
|
16
|
-
onChange:
|
|
15
|
+
disabled: d,
|
|
16
|
+
value: typeof l == "string" ? a(l) : l,
|
|
17
|
+
onChange: s ? u : (e, t) => u(t || null)
|
|
17
18
|
});
|
|
18
19
|
}
|
|
19
|
-
var
|
|
20
|
+
var c = n("TimePickerField", s);
|
|
20
21
|
//#endregion
|
|
21
|
-
export {
|
|
22
|
+
export { c as TimePickerField };
|
|
@@ -1,21 +1,34 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { fullWidth as e } from "../../../_base/styles/common.js";
|
|
3
3
|
import { useFieldContext as t } from "../../contexts/form-context.js";
|
|
4
4
|
import { withFormItem as n } from "../../helpers/with-form-item.js";
|
|
5
5
|
import { TimePicker as r } from "../../../time-picker/index.js";
|
|
6
6
|
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
7
|
-
import {
|
|
7
|
+
import { isArray as a, isNullish as o, isString as s, parseDate as c } from "@vef-framework-react/shared";
|
|
8
|
+
import { useDisabled as l } from "@vef-framework-react/core";
|
|
8
9
|
//#region src/form/fields/time-range-picker/index.tsx
|
|
9
|
-
function
|
|
10
|
-
|
|
10
|
+
function u(e) {
|
|
11
|
+
if (a(e)) {
|
|
12
|
+
let [t, n] = e;
|
|
13
|
+
return [s(t) ? c(t) : t, s(n) ? c(n) : n];
|
|
14
|
+
}
|
|
15
|
+
return e;
|
|
16
|
+
}
|
|
17
|
+
function d({ disabled: n, valueAsObject: a, ...s }) {
|
|
18
|
+
let { state: { value: c }, handleChange: d } = t(), f = l() || n;
|
|
11
19
|
return /* @__PURE__ */ i(r.RangePicker, {
|
|
12
|
-
...
|
|
20
|
+
...s,
|
|
13
21
|
css: e,
|
|
14
|
-
disabled:
|
|
15
|
-
value:
|
|
16
|
-
onChange:
|
|
22
|
+
disabled: f,
|
|
23
|
+
value: u(c),
|
|
24
|
+
onChange: a ? (e) => {
|
|
25
|
+
if (e) {
|
|
26
|
+
let [t, n] = e;
|
|
27
|
+
!o(t) && !o(n) && d([t, n]);
|
|
28
|
+
}
|
|
29
|
+
} : (e, t) => d(t)
|
|
17
30
|
});
|
|
18
31
|
}
|
|
19
|
-
var
|
|
32
|
+
var f = n("TimeRangePickerField", d);
|
|
20
33
|
//#endregion
|
|
21
|
-
export {
|
|
34
|
+
export { f as TimeRangePickerField };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { useFieldContext as e } from "../../contexts/form-context.js";
|
|
3
3
|
import { withFormItem as t } from "../../helpers/with-form-item.js";
|
|
4
4
|
import { Transfer as n } from "../../../transfer/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { useFieldContext as e } from "../../contexts/form-context.js";
|
|
3
3
|
import { withFormItem as t } from "../../helpers/with-form-item.js";
|
|
4
4
|
import { TreeSelect as n } from "../../../tree-select/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { useFieldContext as e } from "../../contexts/form-context.js";
|
|
3
3
|
import { withFormItem as t } from "../../helpers/with-form-item.js";
|
|
4
4
|
import { Upload as n } from "../../../upload/index.js";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
|
+
import { Icon as e } from "../icon/index.js";
|
|
3
|
+
import { useFormContext as t } from "./form.js";
|
|
4
|
+
import { Fragment as n, jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
5
|
+
import { memo as a, useCallback as o } from "react";
|
|
6
|
+
import { CheckIcon as s } from "lucide-react";
|
|
7
|
+
var c = {
|
|
8
|
+
children: "提交",
|
|
9
|
+
icon: /* @__PURE__ */ r(e, { component: s })
|
|
10
|
+
}, l = { children: "重置" };
|
|
11
|
+
function u({ submitButtonProps: e = c }) {
|
|
12
|
+
let { SubmitButton: n, handleSubmit: i } = t();
|
|
13
|
+
return /* @__PURE__ */ r(n, {
|
|
14
|
+
...e,
|
|
15
|
+
onSubmit: i
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
var d = a(u);
|
|
19
|
+
d.displayName = "DefaultSubmitButton";
|
|
20
|
+
function f({ resetButtonProps: e = l, onReset: n }) {
|
|
21
|
+
let { ResetButton: i, reset: a } = t(), s = o(() => {
|
|
22
|
+
a(), n?.();
|
|
23
|
+
}, [a, n]);
|
|
24
|
+
return e ? /* @__PURE__ */ r(i, {
|
|
25
|
+
...e,
|
|
26
|
+
onReset: s
|
|
27
|
+
}) : null;
|
|
28
|
+
}
|
|
29
|
+
var p = a(f);
|
|
30
|
+
p.displayName = "DefaultResetButton";
|
|
31
|
+
function m({ submitButtonProps: e = c, resetButtonProps: t = l, onReset: a }) {
|
|
32
|
+
return /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r(p, {
|
|
33
|
+
resetButtonProps: t,
|
|
34
|
+
onReset: a
|
|
35
|
+
}), /* @__PURE__ */ r(d, { submitButtonProps: e })] });
|
|
36
|
+
}
|
|
37
|
+
var h = a(m);
|
|
38
|
+
h.displayName = "FormActions";
|
|
39
|
+
//#endregion
|
|
40
|
+
export { p as DefaultResetButton, d as DefaultSubmitButton, h as FormActions };
|
package/dist/es/form/form.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { fieldContext as e, formContext as t, useFormContext as n } from "./contexts/form-context.js";
|
|
3
3
|
import { formComponents as r } from "./components/index.js";
|
|
4
4
|
import { fieldComponents as i } from "./fields/index.js";
|
|
@@ -9,6 +9,9 @@ var { useAppForm: c, withForm: l, withFieldGroup: u } = a({
|
|
|
9
9
|
fieldContext: e,
|
|
10
10
|
fieldComponents: i,
|
|
11
11
|
formComponents: r
|
|
12
|
-
})
|
|
12
|
+
});
|
|
13
|
+
function d() {
|
|
14
|
+
return n();
|
|
15
|
+
}
|
|
13
16
|
//#endregion
|
|
14
17
|
export { o as createFormOptions, c as useAppForm, d as useFormContext, s as useFormStore, u as withFieldGroup, l as withForm };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
|
+
//#region src/form/helpers/create-field.ts
|
|
3
|
+
function e(e) {
|
|
4
|
+
return e;
|
|
5
|
+
}
|
|
6
|
+
function t(t, n) {
|
|
7
|
+
return {
|
|
8
|
+
name: t,
|
|
9
|
+
validators: n.validators ? e(n.validators) : void 0,
|
|
10
|
+
render: n.render,
|
|
11
|
+
meta: n.meta
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { t as createField };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { useFieldContext as e } from "../contexts/form-context.js";
|
|
3
3
|
import { useFormItemProps as t } from "../hooks/use-form-item-props.js";
|
|
4
4
|
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { useFormLayout as e } from "../contexts/form-layout.js";
|
|
3
3
|
import { useLabelWidth as t } from "./use-label-width.js";
|
|
4
4
|
import { useMemo as n } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.7 made by Venus | 2026-04-24T14:03:19.726Z */
|
|
2
2
|
import { showWarningMessage as e } from "../../_base/helpers/message.js";
|
|
3
3
|
import { useMemo as t } from "react";
|
|
4
4
|
//#region src/form/hooks/use-label-width.ts
|