@vef-framework-react/components 2.3.0 → 2.4.1
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/LICENSE +201 -0
- package/dist/cjs/_base/constants/common.cjs +1 -1
- package/dist/cjs/_base/constants/index.cjs +1 -1
- package/dist/cjs/_base/globals.cjs +1 -1
- package/dist/cjs/_base/helpers/breakpoints.cjs +1 -1
- package/dist/cjs/_base/helpers/color.cjs +1 -1
- package/dist/cjs/_base/helpers/common.cjs +1 -1
- package/dist/cjs/_base/helpers/event.cjs +1 -1
- package/dist/cjs/_base/helpers/index.cjs +1 -1
- package/dist/cjs/_base/helpers/message.cjs +1 -1
- package/dist/cjs/_base/helpers/modal.cjs +1 -1
- package/dist/cjs/_base/helpers/notification.cjs +1 -1
- package/dist/cjs/_base/helpers/props.cjs +1 -1
- package/dist/cjs/_base/helpers/react.cjs +1 -1
- package/dist/cjs/_base/hooks/index.cjs +1 -1
- package/dist/cjs/_base/hooks/use-theme-tokens.cjs +1 -1
- package/dist/cjs/_base/index.cjs +1 -1
- package/dist/cjs/_base/styles/common.cjs +1 -1
- package/dist/cjs/action-button/index.cjs +1 -1
- package/dist/cjs/action-button/use-action-button.cjs +1 -1
- package/dist/cjs/action-group/index.cjs +1 -1
- package/dist/cjs/action-group/use-action-group.cjs +1 -1
- package/dist/cjs/action-group/use-computed-action-buttons.cjs +1 -1
- package/dist/cjs/affix/index.cjs +1 -1
- package/dist/cjs/alert/index.cjs +1 -1
- package/dist/cjs/anchor/index.cjs +1 -1
- package/dist/cjs/auto-complete/index.cjs +1 -1
- package/dist/cjs/avatar/index.cjs +1 -1
- package/dist/cjs/badge/index.cjs +1 -1
- package/dist/cjs/bool/index.cjs +1 -1
- package/dist/cjs/border-beam/index.cjs +1 -1
- package/dist/cjs/breadcrumb/index.cjs +1 -1
- package/dist/cjs/button/index.cjs +1 -1
- package/dist/cjs/calendar/index.cjs +1 -1
- package/dist/cjs/card/index.cjs +1 -1
- package/dist/cjs/carousel/index.cjs +1 -1
- package/dist/cjs/cascader/index.cjs +1 -1
- package/dist/cjs/center/index.cjs +1 -1
- package/dist/cjs/charts/chart.cjs +1 -1
- package/dist/cjs/charts/helpers/group.cjs +1 -1
- package/dist/cjs/charts/helpers/index.cjs +1 -1
- package/dist/cjs/charts/hooks/index.cjs +1 -1
- package/dist/cjs/charts/hooks/use-chart.cjs +1 -1
- package/dist/cjs/charts/index.cjs +1 -1
- package/dist/cjs/charts/themes/index.cjs +1 -1
- package/dist/cjs/charts/themes/walden-dark.cjs +1 -1
- package/dist/cjs/charts/themes/walden.cjs +1 -1
- package/dist/cjs/charts/themes/wonderland-dark.cjs +1 -1
- package/dist/cjs/charts/themes/wonderland.cjs +1 -1
- package/dist/cjs/checkbox/index.cjs +1 -1
- package/dist/cjs/code-editor/index.cjs +1 -0
- package/dist/cjs/code-highlighter/index.cjs +1 -1
- package/dist/cjs/col/index.cjs +1 -1
- package/dist/cjs/collapse/index.cjs +1 -1
- package/dist/cjs/color-picker/index.cjs +1 -1
- package/dist/cjs/compact/index.cjs +1 -1
- package/dist/cjs/config-provider/app.cjs +1 -1
- package/dist/cjs/config-provider/constants.cjs +1 -1
- package/dist/cjs/config-provider/context-holder.cjs +1 -1
- package/dist/cjs/config-provider/css-vars.cjs +1 -1
- package/dist/cjs/config-provider/dark-mode-context.cjs +1 -1
- package/dist/cjs/config-provider/error-fallback.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/config-provider/theme-config.cjs +1 -1
- package/dist/cjs/config-provider/use-config-provider.cjs +1 -1
- package/dist/cjs/crud/components/action-button-group.cjs +1 -1
- package/dist/cjs/crud/components/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/operation-button-group.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/components/toolbar-actions.cjs +1 -1
- package/dist/cjs/crud/components/toolbar.cjs +1 -1
- package/dist/cjs/crud/event.cjs +1 -1
- package/dist/cjs/crud/helpers.cjs +1 -1
- package/dist/cjs/crud/hooks/index.cjs +1 -1
- package/dist/cjs/crud/hooks/use-query-observer.cjs +1 -1
- package/dist/cjs/crud/hooks/use-search-values.cjs +1 -1
- package/dist/cjs/crud/hooks/use-selected-rows.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/crud-page/index.cjs +1 -1
- package/dist/cjs/date-picker/index.cjs +1 -1
- package/dist/cjs/descriptions/index.cjs +1 -1
- package/dist/cjs/divider/index.cjs +1 -1
- package/dist/cjs/drawer/index.cjs +1 -1
- package/dist/cjs/dropdown/index.cjs +1 -1
- package/dist/cjs/dynamic-icon/index.cjs +1 -1
- package/dist/cjs/dynamic-icon/load-icon-node.cjs +1 -0
- package/dist/cjs/dynamic-icon/placeholder-icon.cjs +1 -1
- package/dist/cjs/dynamic-icon/unknown-icon.cjs +1 -1
- package/dist/cjs/editable-table/components/add-row-button.cjs +1 -0
- package/dist/cjs/editable-table/components/editable-cell.cjs +1 -0
- package/dist/cjs/editable-table/components/editable-row-actions.cjs +1 -0
- package/dist/cjs/editable-table/components/index.cjs +1 -0
- package/dist/cjs/editable-table/helpers.cjs +1 -0
- package/dist/cjs/editable-table/hooks/index.cjs +1 -0
- package/dist/cjs/editable-table/hooks/use-editable-actions.cjs +1 -0
- package/dist/cjs/editable-table/hooks/use-editable-columns.cjs +1 -0
- package/dist/cjs/editable-table/index.cjs +1 -0
- package/dist/cjs/editable-table/store.cjs +1 -0
- package/dist/cjs/empty/empty.cjs +1 -1
- package/dist/cjs/empty/index.cjs +1 -1
- package/dist/cjs/file-upload/index.cjs +1 -1
- package/dist/cjs/flex/index.cjs +1 -1
- package/dist/cjs/flex-card/index.cjs +1 -1
- package/dist/cjs/flex-card/styles.cjs +1 -1
- package/dist/cjs/flip-text/index.cjs +1 -1
- package/dist/cjs/float-button/index.cjs +1 -1
- package/dist/cjs/form/components/form.cjs +1 -1
- package/dist/cjs/form/components/index.cjs +1 -1
- package/dist/cjs/form/components/reset-button.cjs +1 -1
- package/dist/cjs/form/components/submit-button.cjs +1 -1
- package/dist/cjs/form/contexts/form-context.cjs +1 -1
- package/dist/cjs/form/contexts/form-layout.cjs +1 -1
- package/dist/cjs/form/contexts/index.cjs +1 -1
- package/dist/cjs/form/fields/auto-complete/index.cjs +1 -1
- package/dist/cjs/form/fields/bool/index.cjs +1 -1
- package/dist/cjs/form/fields/cascader/index.cjs +1 -1
- package/dist/cjs/form/fields/checkbox/index.cjs +1 -1
- package/dist/cjs/form/fields/code-editor/index.cjs +1 -0
- package/dist/cjs/form/fields/color-picker/index.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/icon-picker/index.cjs +1 -0
- package/dist/cjs/form/fields/index.cjs +1 -1
- package/dist/cjs/form/fields/input/index.cjs +1 -1
- package/dist/cjs/form/fields/input-number/index.cjs +1 -1
- package/dist/cjs/form/fields/mentions/index.cjs +1 -1
- package/dist/cjs/form/fields/password/index.cjs +1 -1
- package/dist/cjs/form/fields/radio/index.cjs +1 -1
- package/dist/cjs/form/fields/rate/index.cjs +1 -1
- package/dist/cjs/form/fields/select/index.cjs +1 -1
- package/dist/cjs/form/fields/slider/index.cjs +1 -1
- package/dist/cjs/form/fields/textarea/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/fields/transfer/index.cjs +1 -1
- package/dist/cjs/form/fields/tree-select/index.cjs +1 -1
- package/dist/cjs/form/fields/upload/index.cjs +1 -1
- package/dist/cjs/form/form-actions.cjs +1 -1
- package/dist/cjs/form/form.cjs +1 -1
- package/dist/cjs/form/helpers/index.cjs +1 -1
- package/dist/cjs/form/helpers/with-form-item.cjs +1 -1
- package/dist/cjs/form/hooks/use-form-item-props.cjs +1 -1
- package/dist/cjs/form/hooks/use-label-width.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/generic-select/index.cjs +1 -0
- package/dist/cjs/grid/context.cjs +1 -1
- package/dist/cjs/grid/grid-item.cjs +1 -1
- package/dist/cjs/grid/hooks/index.cjs +1 -1
- package/dist/cjs/grid/hooks/use-container-breakpoints.cjs +1 -1
- package/dist/cjs/grid/hooks/use-container-width.cjs +1 -1
- package/dist/cjs/grid/hooks/use-grid-collapsed.cjs +1 -1
- package/dist/cjs/grid/hooks/use-normalized-gap.cjs +1 -1
- package/dist/cjs/grid/hooks/use-responsive-breakpoint.cjs +1 -1
- package/dist/cjs/grid/hooks/use-responsive-value.cjs +1 -1
- package/dist/cjs/grid/index.cjs +1 -1
- package/dist/cjs/grid/styles.cjs +1 -1
- package/dist/cjs/group/index.cjs +1 -1
- package/dist/cjs/icon/index.cjs +1 -1
- package/dist/cjs/icon-button/index.cjs +1 -1
- package/dist/cjs/icon-picker/icon-grid.cjs +1 -0
- package/dist/cjs/icon-picker/index.cjs +1 -0
- package/dist/cjs/image/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/input/index.cjs +1 -1
- package/dist/cjs/input-number/index.cjs +1 -1
- package/dist/cjs/keyboard/index.cjs +1 -1
- package/dist/cjs/list/index.cjs +1 -1
- package/dist/cjs/loader/index.cjs +1 -1
- package/dist/cjs/logo-icon/index.cjs +1 -1
- package/dist/cjs/mentions/index.cjs +1 -1
- package/dist/cjs/menu/index.cjs +1 -1
- package/dist/cjs/modal/index.cjs +1 -1
- package/dist/cjs/modal/modal.cjs +1 -1
- package/dist/cjs/operation-button/index.cjs +1 -1
- package/dist/cjs/page/components/aside-panel.cjs +1 -1
- package/dist/cjs/page/components/index.cjs +1 -1
- package/dist/cjs/page/components/resize-handle.cjs +1 -1
- package/dist/cjs/page/components/scroll-content.cjs +1 -1
- package/dist/cjs/page/entrance.cjs +1 -0
- package/dist/cjs/page/hooks/index.cjs +1 -1
- package/dist/cjs/page/hooks/use-page-key.cjs +1 -1
- package/dist/cjs/page/hooks/use-resize.cjs +1 -1
- package/dist/cjs/page/index.cjs +1 -1
- package/dist/cjs/page/styles.cjs +1 -1
- package/dist/cjs/page/viewport-context.cjs +1 -1
- package/dist/cjs/pagination/index.cjs +1 -1
- package/dist/cjs/permission-gate/index.cjs +1 -1
- package/dist/cjs/popconfirm/index.cjs +1 -1
- package/dist/cjs/popover/index.cjs +1 -1
- package/dist/cjs/pro-search/components/advanced-search-toggler.cjs +1 -1
- package/dist/cjs/pro-search/components/advanced-search.cjs +1 -1
- package/dist/cjs/pro-search/components/index.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/column-settings.cjs +1 -1
- package/dist/cjs/pro-table/components/index.cjs +1 -1
- package/dist/cjs/pro-table/components/operation-button-group.cjs +1 -1
- package/dist/cjs/pro-table/components/ref.cjs +1 -1
- package/dist/cjs/pro-table/components/table-subscriber.cjs +1 -1
- package/dist/cjs/pro-table/components/table-summary.cjs +1 -1
- package/dist/cjs/pro-table/components/table-title.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/context.cjs +1 -1
- package/dist/cjs/pro-table/event.cjs +1 -1
- package/dist/cjs/pro-table/hooks/index.cjs +1 -1
- package/dist/cjs/pro-table/hooks/use-column-settings-persistence.cjs +1 -1
- package/dist/cjs/pro-table/hooks/use-row-selection.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/pro-table/store.cjs +1 -1
- package/dist/cjs/progress/index.cjs +1 -1
- package/dist/cjs/qrcode/index.cjs +1 -1
- package/dist/cjs/radio/index.cjs +1 -1
- package/dist/cjs/rate/index.cjs +1 -1
- package/dist/cjs/result/index.cjs +1 -1
- package/dist/cjs/row/index.cjs +1 -1
- package/dist/cjs/scroll-area/index.cjs +1 -1
- package/dist/cjs/scroll-area/styles.cjs +1 -1
- package/dist/cjs/segmented/index.cjs +1 -1
- package/dist/cjs/select/hooks/index.cjs +1 -1
- package/dist/cjs/select/hooks/use-data-options-select.cjs +1 -1
- package/dist/cjs/select/hooks/use-dictionary-options-select.cjs +1 -1
- package/dist/cjs/select/index.cjs +1 -1
- package/dist/cjs/skeleton/index.cjs +1 -1
- package/dist/cjs/slider/index.cjs +1 -1
- package/dist/cjs/space/index.cjs +1 -1
- package/dist/cjs/space/space.cjs +1 -1
- package/dist/cjs/sparkles-text/index.cjs +1 -1
- package/dist/cjs/sparkles-text/sparkle.cjs +1 -1
- package/dist/cjs/spin/index.cjs +1 -1
- package/dist/cjs/split-text/index.cjs +1 -1
- package/dist/cjs/splitter/index.cjs +1 -1
- package/dist/cjs/stack/index.cjs +1 -1
- package/dist/cjs/statistic/index.cjs +1 -1
- package/dist/cjs/steps/index.cjs +1 -1
- package/dist/cjs/switch/index.cjs +1 -1
- package/dist/cjs/table/index.cjs +1 -1
- package/dist/cjs/table/use-pagination-props.cjs +1 -1
- package/dist/cjs/tabs/index.cjs +1 -1
- package/dist/cjs/tag/index.cjs +1 -1
- package/dist/cjs/time-picker/index.cjs +1 -1
- package/dist/cjs/timeline/index.cjs +1 -1
- package/dist/cjs/tooltip/index.cjs +1 -1
- package/dist/cjs/tour/index.cjs +1 -1
- package/dist/cjs/transfer/index.cjs +1 -1
- package/dist/cjs/tree/hooks/index.cjs +1 -1
- package/dist/cjs/tree/hooks/use-data-options-tree.cjs +1 -1
- package/dist/cjs/tree/index.cjs +1 -1
- package/dist/cjs/tree-select/hooks/index.cjs +1 -1
- package/dist/cjs/tree-select/hooks/use-data-options-tree-select.cjs +1 -1
- package/dist/cjs/tree-select/index.cjs +1 -1
- package/dist/cjs/typing-animation/index.cjs +1 -1
- package/dist/cjs/typography/index.cjs +1 -1
- package/dist/cjs/upload/index.cjs +1 -1
- package/dist/cjs/watermark/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/constants/theme.js +1 -1
- package/dist/es/_base/globals.js +8 -12
- 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 +2 -5
- 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 +49 -50
- package/dist/es/border-beam/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-editor/index.js +219 -0
- 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 +2 -2
- package/dist/es/config-provider/index.js +3 -3
- package/dist/es/config-provider/theme-config.js +1 -1
- package/dist/es/config-provider/use-config-provider.js +2 -2
- 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 +1 -1
- package/dist/es/crud/components/mutation-holder.js +1 -1
- package/dist/es/crud/components/operation-button-group.js +1 -1
- package/dist/es/crud/components/scene-form.js +1 -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 +1 -1
- package/dist/es/crud/store.js +1 -1
- package/dist/es/crud/styles.js +2 -2
- 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 +26 -29
- package/dist/es/dynamic-icon/load-icon-node.js +32 -0
- package/dist/es/dynamic-icon/placeholder-icon.js +1 -1
- package/dist/es/dynamic-icon/unknown-icon.js +1 -1
- package/dist/es/editable-table/components/add-row-button.js +24 -0
- package/dist/es/editable-table/components/editable-cell.js +27 -0
- package/dist/es/editable-table/components/editable-row-actions.js +53 -0
- package/dist/es/editable-table/components/index.js +4 -0
- package/dist/es/editable-table/helpers.js +22 -0
- package/dist/es/editable-table/hooks/index.js +3 -0
- package/dist/es/editable-table/hooks/use-editable-actions.js +69 -0
- package/dist/es/editable-table/hooks/use-editable-columns.js +49 -0
- package/dist/es/editable-table/index.js +61 -0
- package/dist/es/editable-table/store.js +19 -0
- package/dist/es/empty/empty.js +1 -1
- package/dist/es/empty/index.js +1 -1
- package/dist/es/file-upload/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 +4 -2
- 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/code-editor/index.js +23 -0
- package/dist/es/form/fields/color-picker/index.js +1 -1
- package/dist/es/form/fields/date-picker/index.js +1 -1
- package/dist/es/form/fields/date-range-picker/index.js +1 -1
- package/dist/es/form/fields/icon-picker/index.js +20 -0
- package/dist/es/form/fields/index.js +41 -37
- 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 +1 -1
- package/dist/es/form/fields/time-range-picker/index.js +1 -1
- 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 +1 -1
- package/dist/es/form/form.js +1 -1
- package/dist/es/form/helpers/create-field.js +1 -1
- package/dist/es/form/helpers/index.js +1 -1
- package/dist/es/form/helpers/with-form-item.js +28 -18
- 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 +1 -1
- package/dist/es/form/use-form.js +1 -1
- package/dist/es/form-drawer/index.js +13 -13
- package/dist/es/form-modal/index.js +12 -11
- package/dist/es/generic-select/index.js +57 -0
- 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 +2 -2
- package/dist/es/group/index.js +1 -1
- package/dist/es/icon/index.js +1 -1
- package/dist/es/icon-button/index.js +2 -2
- package/dist/es/icon-picker/icon-grid.js +112 -0
- package/dist/es/icon-picker/index.js +76 -0
- package/dist/es/image/index.js +1 -1
- package/dist/es/index.js +110 -104
- package/dist/es/input/index.js +1 -1
- package/dist/es/input-number/index.js +1 -1
- package/dist/es/keyboard/index.js +2 -2
- 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 +1 -1
- package/dist/es/modal/modal.js +1 -1
- package/dist/es/operation-button/index.js +2 -2
- 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 +2 -3
- package/dist/es/page/components/scroll-content.js +8 -8
- package/dist/es/page/entrance.js +51 -0
- 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 +100 -86
- package/dist/es/page/styles.js +3 -3
- 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 +1 -1
- package/dist/es/pro-search/index.js +1 -1
- package/dist/es/pro-search/styles.js +5 -5
- package/dist/es/pro-table/components/column-setting-item.js +8 -8
- package/dist/es/pro-table/components/column-settings-panel.js +3 -3
- 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 +72 -49
- package/dist/es/pro-table/components/width-popover.js +2 -2
- 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 +35 -34
- package/dist/es/pro-table/index.js +17 -15
- 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 +23 -23
- package/dist/es/scroll-area/styles.js +1 -1
- package/dist/es/segmented/index.js +1 -1
- package/dist/es/select/hooks/index.js +1 -1
- package/dist/es/select/hooks/use-data-options-select.js +2 -2
- package/dist/es/select/hooks/use-dictionary-options-select.js +2 -2
- package/dist/es/select/index.js +1 -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 +54 -37
- package/dist/es/table/use-pagination-props.js +2 -2
- 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 +2 -2
- 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/globals.d.ts +14 -22
- package/dist/types/_base/helpers/common.d.ts +1 -7
- package/dist/types/_base/index.d.ts +1 -1
- package/dist/types/code-editor/index.d.ts +4 -0
- package/dist/types/code-editor/props.d.ts +197 -0
- package/dist/types/crud/props.d.ts +14 -1
- package/dist/types/dropdown/index.d.ts +1 -0
- package/dist/types/dynamic-icon/index.d.ts +1 -1
- package/dist/types/dynamic-icon/load-icon-node.d.ts +14 -0
- package/dist/types/editable-table/components/add-row-button.d.ts +6 -0
- package/dist/types/editable-table/components/editable-cell.d.ts +18 -0
- package/dist/types/editable-table/components/editable-row-actions.d.ts +31 -0
- package/dist/types/editable-table/components/index.d.ts +3 -0
- package/dist/types/editable-table/helpers.d.ts +10 -0
- package/dist/types/editable-table/hooks/index.d.ts +2 -0
- package/dist/types/editable-table/hooks/use-editable-actions.d.ts +29 -0
- package/dist/types/editable-table/hooks/use-editable-columns.d.ts +25 -0
- package/dist/types/editable-table/index.d.ts +14 -0
- package/dist/types/editable-table/props.d.ts +73 -0
- package/dist/types/editable-table/store.d.ts +38 -0
- package/dist/types/editable-table/types.d.ts +76 -0
- package/dist/types/form/fields/code-editor/index.d.ts +5 -0
- package/dist/types/form/fields/code-editor/props.d.ts +15 -0
- package/dist/types/form/fields/icon-picker/index.d.ts +5 -0
- package/dist/types/form/fields/icon-picker/props.d.ts +10 -0
- package/dist/types/form/fields/index.d.ts +6 -0
- package/dist/types/form/form.d.ts +13 -1
- package/dist/types/generic-select/index.d.ts +15 -0
- package/dist/types/generic-select/props.d.ts +181 -0
- package/dist/types/icon-picker/icon-grid.d.ts +37 -0
- package/dist/types/icon-picker/index.d.ts +13 -0
- package/dist/types/icon-picker/props.d.ts +86 -0
- package/dist/types/index.d.ts +8 -4
- package/dist/types/page/components/resize-handle.d.ts +1 -1
- package/dist/types/page/entrance.d.ts +56 -0
- package/dist/types/page/index.d.ts +1 -0
- package/dist/types/pro-table/components/table.d.ts +4 -4
- package/dist/types/pro-table/hooks/index.d.ts +1 -1
- package/dist/types/pro-table/hooks/use-table-columns.d.ts +6 -0
- package/dist/types/pro-table/props.d.ts +15 -1
- package/dist/types/scroll-area/index.d.ts +2 -2
- package/dist/types/scroll-area/props.d.ts +7 -0
- package/dist/types/table/index.d.ts +1 -1
- package/dist/types/table/props.d.ts +8 -0
- package/package.json +27 -13
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
2
|
+
import { showErrorMessage as e } from "../../_base/helpers/message.js";
|
|
3
|
+
import { useEditableTableStoreApi as t } from "../store.js";
|
|
4
|
+
import { get as n, isNullish as r } from "@vef-framework-react/shared";
|
|
5
|
+
import { useEffect as i, useRef as a } from "react";
|
|
6
|
+
//#region src/editable-table/hooks/use-editable-actions.ts
|
|
7
|
+
function o(e) {
|
|
8
|
+
if (typeof e == "string") return e || void 0;
|
|
9
|
+
if (e && typeof e == "object" && "message" in e) {
|
|
10
|
+
let { message: t } = e;
|
|
11
|
+
return typeof t == "string" ? t : void 0;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
function s({ value: s, onChange: c, form: l, getKey: u, rowKeyField: d, createRecord: f }) {
|
|
15
|
+
let p = t(), m = a(s), h = a(c), g = a(0);
|
|
16
|
+
m.current = s, h.current = c, i(() => {
|
|
17
|
+
p.setState({
|
|
18
|
+
addRow: () => {
|
|
19
|
+
let e = f?.() ?? {}, t = d !== null && r(n(e, d)) ? {
|
|
20
|
+
...e,
|
|
21
|
+
[d]: `__temp_${g.current++}`
|
|
22
|
+
} : e, i = [...m.current, t];
|
|
23
|
+
h.current?.(i), l.reset(t), p.setState((e) => {
|
|
24
|
+
e.editingKey = u(t);
|
|
25
|
+
});
|
|
26
|
+
},
|
|
27
|
+
cancel: () => {
|
|
28
|
+
p.setState((e) => {
|
|
29
|
+
e.editingKey = null;
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
deleteRow: (e) => {
|
|
33
|
+
let t = m.current.filter((t) => u(t) !== e);
|
|
34
|
+
h.current?.(t), p.setState((t) => {
|
|
35
|
+
t.editingKey === e && (t.editingKey = null);
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
save: async () => {
|
|
39
|
+
let { editingKey: t } = p.getState();
|
|
40
|
+
if (t === null) return;
|
|
41
|
+
let n = await l.validateAllFields("submit");
|
|
42
|
+
if (n.length > 0) {
|
|
43
|
+
e(n.flat().map((e) => o(e)).find(Boolean) ?? "请检查表单填写是否正确");
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
let { values: r } = l.state, i = m.current.map((e) => u(e) === t ? {
|
|
47
|
+
...e,
|
|
48
|
+
...r
|
|
49
|
+
} : e);
|
|
50
|
+
h.current?.(i), p.setState((e) => {
|
|
51
|
+
e.editingKey = null;
|
|
52
|
+
});
|
|
53
|
+
},
|
|
54
|
+
startEdit: (e, t) => {
|
|
55
|
+
l.reset(t), p.setState((t) => {
|
|
56
|
+
t.editingKey = e;
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}, [
|
|
61
|
+
p,
|
|
62
|
+
l,
|
|
63
|
+
u,
|
|
64
|
+
d,
|
|
65
|
+
f
|
|
66
|
+
]);
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
export { s as useEditableActions };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
2
|
+
import { EditableCell as e } from "../components/editable-cell.js";
|
|
3
|
+
import { EditableRowActions as t } from "../components/editable-row-actions.js";
|
|
4
|
+
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
5
|
+
import { useMemo as r } from "react";
|
|
6
|
+
//#region src/editable-table/hooks/use-editable-columns.tsx
|
|
7
|
+
function i(i, a, o) {
|
|
8
|
+
return r(() => {
|
|
9
|
+
let r = i.map((t) => ({
|
|
10
|
+
align: t.align,
|
|
11
|
+
className: t.className,
|
|
12
|
+
dataIndex: t.dataIndex,
|
|
13
|
+
ellipsis: t.ellipsis,
|
|
14
|
+
fixed: t.fixed,
|
|
15
|
+
key: t.key ?? t.dataIndex,
|
|
16
|
+
minWidth: t.minWidth,
|
|
17
|
+
title: t.title,
|
|
18
|
+
width: t.width,
|
|
19
|
+
render: (r, i, o) => /* @__PURE__ */ n(e, {
|
|
20
|
+
column: t,
|
|
21
|
+
index: o,
|
|
22
|
+
row: i,
|
|
23
|
+
rowKey: a(i),
|
|
24
|
+
value: r
|
|
25
|
+
})
|
|
26
|
+
}));
|
|
27
|
+
return o.enabled && r.push({
|
|
28
|
+
align: "center",
|
|
29
|
+
key: "__editable_operations",
|
|
30
|
+
title: o.title ?? "操作",
|
|
31
|
+
width: o.width,
|
|
32
|
+
render: (e, r, i) => /* @__PURE__ */ n(t, {
|
|
33
|
+
deletable: o.deletable(r),
|
|
34
|
+
editable: o.editable(r),
|
|
35
|
+
extra: o.extra,
|
|
36
|
+
index: i,
|
|
37
|
+
row: r,
|
|
38
|
+
rowKey: a(r),
|
|
39
|
+
texts: o.texts
|
|
40
|
+
})
|
|
41
|
+
}), r;
|
|
42
|
+
}, [
|
|
43
|
+
i,
|
|
44
|
+
a,
|
|
45
|
+
o
|
|
46
|
+
]);
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
export { i as useEditableColumns };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
2
|
+
import { Stack as e } from "../stack/index.js";
|
|
3
|
+
import { Table as t } from "../table/index.js";
|
|
4
|
+
import { useForm as n } from "../form/use-form.js";
|
|
5
|
+
import { EditableTableStoreProvider as r } from "./store.js";
|
|
6
|
+
import { AddRowButton as i } from "./components/add-row-button.js";
|
|
7
|
+
import { useEditableActions as a } from "./hooks/use-editable-actions.js";
|
|
8
|
+
import { useEditableColumns as o } from "./hooks/use-editable-columns.js";
|
|
9
|
+
import "./helpers.js";
|
|
10
|
+
import { jsx as s, jsxs as c } from "@emotion/react/jsx-runtime";
|
|
11
|
+
import { get as l, isFunction as u, stringify as d } from "@vef-framework-react/shared";
|
|
12
|
+
import { useMemo as f } from "react";
|
|
13
|
+
//#region src/editable-table/index.tsx
|
|
14
|
+
function p(e) {
|
|
15
|
+
if (u(e)) return (t) => d(e(t));
|
|
16
|
+
let t = e ?? "key";
|
|
17
|
+
return (e) => d(l(e, t));
|
|
18
|
+
}
|
|
19
|
+
function m(e, t) {
|
|
20
|
+
if (u(e)) return e;
|
|
21
|
+
let n = e ?? t;
|
|
22
|
+
return () => n;
|
|
23
|
+
}
|
|
24
|
+
function h({ value: r, onChange: l, columns: d, rowKey: h, canEdit: g, canDelete: _, creatable: v, createRecord: y, renderRowActions: b, operationColumn: x, size: S, pagination: C }) {
|
|
25
|
+
let w = n({ defaultValues: {} }), T = f(() => p(h), [h]), E = u(h) ? null : h ?? "key", D = f(() => m(g, !0), [g]), O = f(() => m(_, !1), [_]), k = o(d, T, f(() => ({
|
|
26
|
+
deletable: O,
|
|
27
|
+
editable: D,
|
|
28
|
+
enabled: !0,
|
|
29
|
+
extra: b,
|
|
30
|
+
texts: x?.texts,
|
|
31
|
+
title: x?.title,
|
|
32
|
+
width: x?.width
|
|
33
|
+
}), [
|
|
34
|
+
O,
|
|
35
|
+
D,
|
|
36
|
+
x,
|
|
37
|
+
b
|
|
38
|
+
]));
|
|
39
|
+
return a({
|
|
40
|
+
createRecord: y,
|
|
41
|
+
form: w,
|
|
42
|
+
getKey: T,
|
|
43
|
+
onChange: l,
|
|
44
|
+
rowKeyField: E,
|
|
45
|
+
value: r
|
|
46
|
+
}), /* @__PURE__ */ s(w.AppForm, { children: /* @__PURE__ */ c(e, {
|
|
47
|
+
gap: "small",
|
|
48
|
+
children: [/* @__PURE__ */ s(t, {
|
|
49
|
+
columns: k,
|
|
50
|
+
dataSource: r,
|
|
51
|
+
pagination: C ?? !1,
|
|
52
|
+
rowKey: T,
|
|
53
|
+
size: S
|
|
54
|
+
}), v ? /* @__PURE__ */ s(i, {}) : null]
|
|
55
|
+
}) });
|
|
56
|
+
}
|
|
57
|
+
function g(e) {
|
|
58
|
+
return /* @__PURE__ */ s(r, { children: /* @__PURE__ */ s(h, { ...e }) });
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
export { g as EditableTable };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
2
|
+
import { createThrowNotImplementedFn as e } from "@vef-framework-react/shared";
|
|
3
|
+
import { createComponentStore as t } from "@vef-framework-react/core";
|
|
4
|
+
//#region src/editable-table/store.ts
|
|
5
|
+
var { StoreProvider: n, useStore: r, useStoreApi: i } = t("EditableTable", (t) => ({
|
|
6
|
+
editingKey: null,
|
|
7
|
+
setEditingKey: (e) => {
|
|
8
|
+
t((t) => {
|
|
9
|
+
t.editingKey = e;
|
|
10
|
+
});
|
|
11
|
+
},
|
|
12
|
+
startEdit: e("startEdit"),
|
|
13
|
+
save: e("save"),
|
|
14
|
+
cancel: e("cancel"),
|
|
15
|
+
addRow: e("addRow"),
|
|
16
|
+
deleteRow: e("deleteRow")
|
|
17
|
+
}));
|
|
18
|
+
//#endregion
|
|
19
|
+
export { n as EditableTableStoreProvider, r as useEditableTableStore, i as useEditableTableStoreApi };
|
package/dist/es/empty/empty.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
2
2
|
import "./empty.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
2
2
|
import { Upload as e } from "../upload/index.js";
|
|
3
3
|
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
4
|
import { useCallback as n, useMemo as r } from "react";
|
package/dist/es/flex/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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,8 +1,8 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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
|
|
5
|
-
var n =
|
|
5
|
+
var n = /*#__PURE__*/ t({
|
|
6
6
|
height: "100%",
|
|
7
7
|
display: "flex",
|
|
8
8
|
flexDirection: "column",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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";
|
|
@@ -22,7 +22,9 @@ function o({ layout: o = n.layout, labelAlign: s = n.labelAlign, labelWidth: c =
|
|
|
22
22
|
e.preventDefault(), h();
|
|
23
23
|
},
|
|
24
24
|
onSubmit: (e) => {
|
|
25
|
-
e.preventDefault(), m()
|
|
25
|
+
e.preventDefault(), m().catch((e) => {
|
|
26
|
+
console.error("[Form] submit failed:", e);
|
|
27
|
+
});
|
|
26
28
|
}
|
|
27
29
|
},
|
|
28
30
|
children: /* @__PURE__ */ r(t, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
2
|
+
import { CodeEditor as e } from "../../../code-editor/index.js";
|
|
3
|
+
import { useFieldContext as t } from "../../contexts/form-context.js";
|
|
4
|
+
import { withFormItem as n } from "../../helpers/with-form-item.js";
|
|
5
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { isEmpty as i } from "@vef-framework-react/shared";
|
|
7
|
+
import { useDisabled as a } from "@vef-framework-react/core";
|
|
8
|
+
//#region src/form/fields/code-editor/index.tsx
|
|
9
|
+
function o({ disabled: n, readOnly: o, preserveEmptyString: s = !1, ...c }) {
|
|
10
|
+
let { state: { value: l }, handleBlur: u, handleChange: d } = t(), f = a() || n || o;
|
|
11
|
+
return /* @__PURE__ */ r(e, {
|
|
12
|
+
...c,
|
|
13
|
+
readOnly: f,
|
|
14
|
+
value: l ?? "",
|
|
15
|
+
onBlur: u,
|
|
16
|
+
onChange: (e) => {
|
|
17
|
+
d(s || !i(e) ? e : null);
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
var s = n("CodeEditorField", o);
|
|
22
|
+
//#endregion
|
|
23
|
+
export { s as CodeEditorField };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
2
|
+
import { useFieldContext as e } from "../../contexts/form-context.js";
|
|
3
|
+
import { withFormItem as t } from "../../helpers/with-form-item.js";
|
|
4
|
+
import { IconPicker as n } from "../../../icon-picker/index.js";
|
|
5
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { useDisabled as i } from "@vef-framework-react/core";
|
|
7
|
+
//#region src/form/fields/icon-picker/index.tsx
|
|
8
|
+
function a({ disabled: t, ...a }) {
|
|
9
|
+
let { state: { value: o }, handleBlur: s, handleChange: c } = e(), l = i() || t;
|
|
10
|
+
return /* @__PURE__ */ r(n, {
|
|
11
|
+
...a,
|
|
12
|
+
disabled: l,
|
|
13
|
+
value: o,
|
|
14
|
+
onBlur: s,
|
|
15
|
+
onChange: (e) => c(e ?? void 0)
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
var o = t("IconPickerField", a);
|
|
19
|
+
//#endregion
|
|
20
|
+
export { o as IconPickerField };
|
|
@@ -1,49 +1,53 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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";
|
|
5
5
|
import { CheckboxField as r, CheckboxGroupField as i } from "./checkbox/index.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
6
|
+
import { CodeEditorField as a } from "./code-editor/index.js";
|
|
7
|
+
import { ColorPickerField as o } from "./color-picker/index.js";
|
|
8
|
+
import { DatePickerField as s } from "./date-picker/index.js";
|
|
9
|
+
import { DateRangePickerField as c } from "./date-range-picker/index.js";
|
|
10
|
+
import { IconPickerField as l } from "./icon-picker/index.js";
|
|
11
|
+
import { InputField as u } from "./input/index.js";
|
|
12
|
+
import { InputNumberField as d } from "./input-number/index.js";
|
|
13
|
+
import { MentionsField as f } from "./mentions/index.js";
|
|
14
|
+
import { PasswordField as p } from "./password/index.js";
|
|
15
|
+
import { RadioField as m } from "./radio/index.js";
|
|
16
|
+
import { RateField as h } from "./rate/index.js";
|
|
17
|
+
import { SelectField as g } from "./select/index.js";
|
|
18
|
+
import { SliderField as _ } from "./slider/index.js";
|
|
19
|
+
import { TextAreaField as v } from "./textarea/index.js";
|
|
20
|
+
import { TimePickerField as y } from "./time-picker/index.js";
|
|
21
|
+
import { TimeRangePickerField as b } from "./time-range-picker/index.js";
|
|
22
|
+
import { TransferField as x } from "./transfer/index.js";
|
|
23
|
+
import { TreeSelectField as S } from "./tree-select/index.js";
|
|
24
|
+
import { UploadField as C } from "./upload/index.js";
|
|
23
25
|
//#region src/form/fields/index.ts
|
|
24
|
-
var
|
|
26
|
+
var w = {
|
|
25
27
|
AutoComplete: e,
|
|
26
28
|
Bool: t,
|
|
27
29
|
Cascader: n,
|
|
28
30
|
Checkbox: r,
|
|
29
31
|
CheckboxGroup: i,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
32
|
+
CodeEditor: a,
|
|
33
|
+
ColorPicker: o,
|
|
34
|
+
DatePicker: s,
|
|
35
|
+
DateRangePicker: c,
|
|
36
|
+
IconPicker: l,
|
|
37
|
+
Input: u,
|
|
38
|
+
InputNumber: d,
|
|
39
|
+
Mentions: f,
|
|
40
|
+
Password: p,
|
|
41
|
+
Radio: m,
|
|
42
|
+
Rate: h,
|
|
43
|
+
Select: g,
|
|
44
|
+
Slider: _,
|
|
45
|
+
TextArea: v,
|
|
46
|
+
TimePicker: y,
|
|
47
|
+
TimeRangePicker: b,
|
|
48
|
+
Transfer: x,
|
|
49
|
+
TreeSelect: S,
|
|
50
|
+
Upload: C
|
|
47
51
|
};
|
|
48
52
|
//#endregion
|
|
49
|
-
export {
|
|
53
|
+
export { w as fieldComponents };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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
|
+
/*! @vef-framework-react/components v2.4.1 made by Venus | 2026-06-17T13:09:40.551Z */
|
|
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 { FileUpload as n } from "../../../file-upload/index.js";
|