@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
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../center/index.cjs");let t=require("@emotion/react/jsx-runtime"),n=require("react");require("@emotion/react");let r=require("@vef-framework-react/core");function i(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var a={hidden:{rotateX:-90,opacity:0},visible:{rotateX:0,opacity:1}},o=process.env.NODE_ENV===`production`?{name:`1039mui`,styles:`filter:drop-shadow(0 1px 2px #00000026);transform-origin:50%`}:{name:`1039mui`,styles:`filter:drop-shadow(0 1px 2px #00000026);transform-origin:50%/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFla0IiLCJmaWxlIjoiaW5kZXgudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBWYXJpYW50cyB9IGZyb20gXCJAdmVmLWZyYW1ld29yay1yZWFjdC9jb3JlXCI7XG5cbmltcG9ydCB0eXBlIHsgRmxpcFRleHRQcm9wcyB9IGZyb20gXCIuL3Byb3BzXCI7XG5cbmltcG9ydCB7IGNzcyB9IGZyb20gXCJAZW1vdGlvbi9yZWFjdFwiO1xuaW1wb3J0IHsgQW5pbWF0ZVByZXNlbmNlLCBtb3Rpb24gfSBmcm9tIFwiQHZlZi1mcmFtZXdvcmstcmVhY3QvY29yZVwiO1xuaW1wb3J0IHsgQ2hpbGRyZW4gfSBmcm9tIFwicmVhY3RcIjtcblxuaW1wb3J0IHsgQ2VudGVyIH0gZnJvbSBcIi4uL2NlbnRlclwiO1xuXG5jb25zdCBkZWZhdWx0VmFyaWFudHM6IFZhcmlhbnRzID0ge1xuICBoaWRkZW46IHsgcm90YXRlWDogLTkwLCBvcGFjaXR5OiAwIH0sXG4gIHZpc2libGU6IHsgcm90YXRlWDogMCwgb3BhY2l0eTogMSB9XG59O1xuXG5jb25zdCBjaGFyU3R5bGUgPSBjc3Moe1xuICBmaWx0ZXI6IFwiZHJvcC1zaGFkb3coMCAxcHggMnB4ICMwMDAwMDAyNilcIixcbiAgdHJhbnNmb3JtT3JpZ2luOiBcIjUwJVwiXG59KTtcblxuZXhwb3J0IGZ1bmN0aW9uIEZsaXBUZXh0KHtcbiAgY2xhc3NOYW1lLFxuICBzdHlsZSxcbiAgZHVyYXRpb24gPSAwLjUsXG4gIGRlbGF5TXVsdGlwbGUgPSAwLjA4LFxuICByZXBlYXQgPSAwLFxuICBjaGlsZHJlblxufTogRmxpcFRleHRQcm9wcykge1xuICBjb25zdCBjaGFyYWN0ZXJzID0gWy4uLkNoaWxkcmVuLnRvQXJyYXkoY2hpbGRyZW4pLmpvaW4oXCJcIildO1xuXG4gIHJldHVybiAoXG4gICAgPEFuaW1hdGVQcmVzZW5jZSBtb2RlPVwid2FpdFwiPlxuICAgICAgPENlbnRlciBjbGFzc05hbWU9e2NsYXNzTmFtZX0gZ2FwPXs0fSBzdHlsZT17c3R5bGV9PlxuICAgICAgICB7XG4gICAgICAgICAgY2hhcmFjdGVycy5tYXAoKGNoYXIsIGluZGV4KSA9PiAoXG4gICAgICAgICAgICA8bW90aW9uLnNwYW5cblxuICAgICAgICAgICAgICBrZXk9e2luZGV4fVxuICAgICAgICAgICAgICBhbmltYXRlPVwidmlzaWJsZVwiXG4gICAgICAgICAgICAgIGNzcz17Y2hhclN0eWxlfVxuICAgICAgICAgICAgICBleGl0PVwiaGlkZGVuXCJcbiAgICAgICAgICAgICAgaW5pdGlhbD1cImhpZGRlblwiXG4gICAgICAgICAgICAgIHZhcmlhbnRzPXtkZWZhdWx0VmFyaWFudHN9XG4gICAgICAgICAgICAgIHRyYW5zaXRpb249e3tcbiAgICAgICAgICAgICAgICBkZWxheTogaW5kZXggKiBkZWxheU11bHRpcGxlLFxuICAgICAgICAgICAgICAgIGR1cmF0aW9uLFxuICAgICAgICAgICAgICAgIHJlcGVhdCxcbiAgICAgICAgICAgICAgICByZXBlYXRUeXBlOiBcInJldmVyc2VcIlxuICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgPlxuICAgICAgICAgICAgICB7Y2hhcn1cbiAgICAgICAgICAgIDwvbW90aW9uLnNwYW4+XG4gICAgICAgICAgKSlcbiAgICAgICAgfVxuICAgICAgPC9DZW50ZXI+XG4gICAgPC9BbmltYXRlUHJlc2VuY2U+XG4gICk7XG59XG5cbmV4cG9ydCB7IHR5cGUgRmxpcFRleHRQcm9wcyB9IGZyb20gXCIuL3Byb3BzXCI7XG4iXX0= */`,toString:i};function s({className:i,style:s,duration:c=.5,delayMultiple:l=.08,repeat:u=0,children:d}){let f=[...n.Children.toArray(d).join(``)];return(0,t.jsx)(r.AnimatePresence,{mode:`wait`,children:(0,t.jsx)(e.Center,{className:i,gap:4,style:s,children:f.map((e,n)=>(0,t.jsx)(r.motion.span,{animate:`visible`,css:o,exit:`hidden`,initial:`hidden`,variants:a,transition:{delay:n*l,duration:c,repeat:u,repeatType:`reverse`},children:e},n))})})}exports.FlipText=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(
|
|
1
|
+
require("antd");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../contexts/form-context.cjs"),t=require("../contexts/form-layout.cjs");let n=require("@emotion/react/jsx-runtime"),r=require("react"),i=require("@vef-framework-react/core");function a({layout:a=t.defaultFormLayout.layout,labelAlign:o=t.defaultFormLayout.labelAlign,labelWidth:s=t.defaultFormLayout.labelWidth,disabled:c=!1,component:l,children:u,...d}){let f=l??`form`,{handleSubmit:p,reset:m}=e.useFormContext(),h=(0,r.useMemo)(()=>({layout:a,labelAlign:o,labelWidth:s}),[a,o,s]),g=f===`form`;return(0,n.jsx)(f,{...d,...g&&{onReset:e=>{e.preventDefault(),m()},onSubmit:e=>{e.preventDefault(),p().catch(e=>{console.error(`[Form] submit failed:`,e)})}},children:(0,n.jsx)(t.FormLayoutProvider,{value:h,children:(0,n.jsx)(i.DisabledProvider,{value:c,children:u})})})}exports.Form=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(
|
|
1
|
+
const e=require("./form.cjs"),t=require("./reset-button.cjs"),n=require("./submit-button.cjs");var r={Form:e.Form,SubmitButton:n.SubmitButton,ResetButton:t.ResetButton};exports.formComponents=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../contexts/form-context.cjs");let t=require("@emotion/react/jsx-runtime"),n=require("@vef-framework-react/core"),r=require("antd");function i({children:i=`重置`,disabled:a,loading:o,onReset:s,...c}){let{Subscribe:l}=e.useFormContext(),u=(0,n.useDisabled)();return(0,t.jsx)(l,{selector:e=>e.isSubmitting,children:e=>{let n=u||a||e;return(0,t.jsx)(r.Button,{...c,disabled:o?!1:n,htmlType:`reset`,loading:o,onClick:s,children:i})}})}exports.ResetButton=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../contexts/form-context.cjs");let t=require("@emotion/react/jsx-runtime"),n=require("@vef-framework-react/core"),r=require("antd");function i({children:i=`提交`,disabled:a,loading:o,onSubmit:s,...c}){let{Subscribe:l}=e.useFormContext(),u=(0,n.useDisabled)();return(0,t.jsx)(l,{selector:e=>[!e.canSubmit,e.isSubmitting],children:([e,n])=>{let l=n||o,d=u||e||a;return(0,t.jsx)(r.Button,{...c,disabled:l?!1:d,htmlType:`submit`,loading:l,type:`primary`,onClick:s,children:i})}})}exports.SubmitButton=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var{formContext:e,fieldContext:t,useFormContext:n,useFieldContext:r}=(0,require("@tanstack/react-form").createFormHookContexts)();exports.fieldContext=t,exports.formContext=e,exports.useFieldContext=r,exports.useFormContext=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
let e=require("react");var t=Object.freeze({layout:`horizontal`,labelAlign:`right`,labelWidth:100}),n=(0,e.createContext)(t);function r(){return(0,e.use)(n)}var i=n.Provider;exports.FormLayoutProvider=i,exports.defaultFormLayout=t,exports.useFormLayout=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(
|
|
1
|
+
require("./form-context.cjs"),require("./form-layout.cjs");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../../../_base/styles/common.cjs"),t=require("../../contexts/form-context.cjs"),n=require("../../helpers/with-form-item.cjs");let r=require("@emotion/react/jsx-runtime"),i=require("@vef-framework-react/shared"),a=require("@vef-framework-react/core"),o=require("antd");function s({disabled:n,preserveEmptyString:s=!1,...c}){let{state:{value:l},handleBlur:u,handleChange:d}=t.useFieldContext(),f=(0,a.useDisabled)()||n;return(0,r.jsx)(o.AutoComplete,{...c,css:e.fullWidth,disabled:f,value:l,onBlur:u,onChange:e=>{d(s||!(0,i.isEmpty)(e)?e:null)}})}var c=n.withFormItem(`AutoCompleteField`,s);exports.AutoCompleteField=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../../../bool/index.cjs"),t=require("../../contexts/form-context.cjs"),n=require("../../helpers/with-form-item.cjs");let r=require("@emotion/react/jsx-runtime"),i=require("@vef-framework-react/core");function a({disabled:n,...a}){let{state:{value:o},handleChange:s}=t.useFieldContext(),c=(0,i.useDisabled)()||n;return(0,r.jsx)(e.Bool,{...a,disabled:c,value:o,onChange:s})}var o=n.withFormItem(`BoolField`,a);exports.BoolField=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../../../_base/styles/common.cjs"),t=require("../../contexts/form-context.cjs"),n=require("../../helpers/with-form-item.cjs");let r=require("@emotion/react/jsx-runtime"),i=require("@vef-framework-react/core"),a=require("antd");function o({disabled:n,...o}){let{state:{value:s},handleChange:c}=t.useFieldContext(),l=(0,i.useDisabled)()||n;return(0,r.jsx)(a.Cascader,{...o,css:e.fullWidth,disabled:l,value:s,onChange:c})}var s=n.withFormItem(`CascaderField`,o);exports.CascaderField=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../../contexts/form-context.cjs"),t=require("../../helpers/with-form-item.cjs");let n=require("@emotion/react/jsx-runtime"),r=require("@vef-framework-react/core"),i=require("antd");function a({disabled:t,...a}){let{state:{value:o},handleBlur:s,handleChange:c}=e.useFieldContext(),l=(0,r.useDisabled)()||t;return(0,n.jsx)(i.Checkbox,{...a,checked:o,disabled:l,onBlur:s,onChange:e=>{c(e.target.checked)}})}function o({disabled:t,...a}){let{state:{value:o},handleChange:s}=e.useFieldContext(),c=(0,r.useDisabled)()||t;return(0,n.jsx)(i.Checkbox.Group,{...a,disabled:c,value:o,onChange:s})}var s=t.withFormItem(`CheckboxField`,a),c=t.withFormItem(`CheckboxGroupField`,o);exports.CheckboxField=s,exports.CheckboxGroupField=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("../../../code-editor/index.cjs"),t=require("../../contexts/form-context.cjs"),n=require("../../helpers/with-form-item.cjs");let r=require("@emotion/react/jsx-runtime"),i=require("@vef-framework-react/shared"),a=require("@vef-framework-react/core");function o({disabled:n,readOnly:o,preserveEmptyString:s=!1,...c}){let{state:{value:l},handleBlur:u,handleChange:d}=t.useFieldContext(),f=(0,a.useDisabled)()||n||o;return(0,r.jsx)(e.CodeEditor,{...c,readOnly:f,value:l??``,onBlur:u,onChange:e=>{d(s||!(0,i.isEmpty)(e)?e:null)}})}var s=n.withFormItem(`CodeEditorField`,o);exports.CodeEditorField=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../../contexts/form-context.cjs"),t=require("../../helpers/with-form-item.cjs");let n=require("@emotion/react/jsx-runtime"),r=require("@vef-framework-react/core"),i=require("antd");function a({disabled:t,...a}){let{state:{value:o},handleChange:s}=e.useFieldContext(),c=(0,r.useDisabled)()||t;return(0,n.jsx)(i.ColorPicker,{...a,disabled:c,value:o,onChange:s})}var o=t.withFormItem(`ColorPickerField`,a);exports.ColorPickerField=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../../../_base/styles/common.cjs"),t=require("../../contexts/form-context.cjs"),n=require("../../helpers/with-form-item.cjs");let r=require("@emotion/react/jsx-runtime"),i=require("@vef-framework-react/shared"),a=require("@vef-framework-react/core"),o=require("antd");function s({disabled:n,valueAsObject:s,...c}){let{state:{value:l},handleChange:u}=t.useFieldContext(),d=(0,a.useDisabled)()||n;return(0,r.jsx)(o.DatePicker,{...c,css:e.fullWidth,disabled:d,value:typeof l==`string`?(0,i.tryParseDate)(l):l,onChange:s?u:(e,t)=>u(t||null)})}var c=n.withFormItem(`DatePickerField`,s);exports.DatePickerField=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../../../_base/styles/common.cjs"),t=require("../../contexts/form-context.cjs"),n=require("../../helpers/with-form-item.cjs");let r=require("@emotion/react/jsx-runtime"),i=require("@vef-framework-react/shared"),a=require("@vef-framework-react/core"),o=require("antd");function s(e){if((0,i.isArray)(e)){let[t,n]=e;return[(0,i.isString)(t)?(0,i.tryParseDate)(t):t,(0,i.isString)(n)?(0,i.tryParseDate)(n):n]}return e}function c({disabled:n,valueAsObject:i,...c}){let{state:{value:l},handleChange:u}=t.useFieldContext(),d=(0,a.useDisabled)()||n;return(0,r.jsx)(o.DatePicker.RangePicker,{...c,css:e.fullWidth,disabled:d,value:s(l),onChange:i?u:(e,t)=>u(t)})}var l=n.withFormItem(`DateRangePickerField`,c);exports.DateRangePickerField=l;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("../../contexts/form-context.cjs"),t=require("../../helpers/with-form-item.cjs"),n=require("../../../icon-picker/index.cjs");let r=require("@emotion/react/jsx-runtime"),i=require("@vef-framework-react/core");function a({disabled:t,...a}){let{state:{value:o},handleBlur:s,handleChange:c}=e.useFieldContext(),l=(0,i.useDisabled)()||t;return(0,r.jsx)(n.IconPicker,{...a,disabled:l,value:o,onBlur:s,onChange:e=>c(e??void 0)})}var o=t.withFormItem(`IconPickerField`,a);exports.IconPickerField=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(
|
|
1
|
+
const e=require("./auto-complete/index.cjs"),t=require("./bool/index.cjs"),n=require("./cascader/index.cjs"),r=require("./checkbox/index.cjs"),i=require("./code-editor/index.cjs"),a=require("./color-picker/index.cjs"),o=require("./date-picker/index.cjs"),s=require("./date-range-picker/index.cjs"),c=require("./icon-picker/index.cjs"),l=require("./input/index.cjs"),u=require("./input-number/index.cjs"),d=require("./mentions/index.cjs"),f=require("./password/index.cjs"),p=require("./radio/index.cjs"),m=require("./rate/index.cjs"),h=require("./select/index.cjs"),g=require("./slider/index.cjs"),_=require("./textarea/index.cjs"),v=require("./time-picker/index.cjs"),y=require("./time-range-picker/index.cjs"),b=require("./transfer/index.cjs"),x=require("./tree-select/index.cjs"),S=require("./upload/index.cjs");var C={AutoComplete:e.AutoCompleteField,Bool:t.BoolField,Cascader:n.CascaderField,Checkbox:r.CheckboxField,CheckboxGroup:r.CheckboxGroupField,CodeEditor:i.CodeEditorField,ColorPicker:a.ColorPickerField,DatePicker:o.DatePickerField,DateRangePicker:s.DateRangePickerField,IconPicker:c.IconPickerField,Input:l.InputField,InputNumber:u.InputNumberField,Mentions:d.MentionsField,Password:f.PasswordField,Radio:p.RadioField,Rate:m.RateField,Select:h.SelectField,Slider:g.SliderField,TextArea:_.TextAreaField,TimePicker:v.TimePickerField,TimeRangePicker:y.TimeRangePickerField,Transfer:b.TransferField,TreeSelect:x.TreeSelectField,Upload:S.UploadField};exports.fieldComponents=C;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../../contexts/form-context.cjs"),t=require("../../helpers/with-form-item.cjs");let n=require("@emotion/react/jsx-runtime"),r=require("@vef-framework-react/shared"),i=require("@vef-framework-react/core"),a=require("antd");function o({disabled:t,preserveEmptyString:o=!1,...s}){let{state:{value:c},handleBlur:l,handleChange:u}=e.useFieldContext(),d=(0,i.useDisabled)()||t;return(0,n.jsx)(a.Input,{...s,disabled:d,value:c,onBlur:l,onChange:e=>{let t=e.currentTarget.value;u(o||!(0,r.isEmpty)(t)?t:null)}})}var s=t.withFormItem(`InputField`,o);exports.InputField=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../../../_base/styles/common.cjs"),t=require("../../contexts/form-context.cjs"),n=require("../../helpers/with-form-item.cjs");let r=require("@emotion/react/jsx-runtime"),i=require("@vef-framework-react/core"),a=require("antd");function o({disabled:n,...o}){let{state:{value:s},handleBlur:c,handleChange:l}=t.useFieldContext(),u=(0,i.useDisabled)()||n;return(0,r.jsx)(a.InputNumber,{...o,css:e.fullWidth,disabled:u,value:s,onBlur:c,onChange:l})}var s=n.withFormItem(`InputNumberField`,o);exports.InputNumberField=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../../../_base/styles/common.cjs"),t=require("../../contexts/form-context.cjs"),n=require("../../helpers/with-form-item.cjs");let r=require("@emotion/react/jsx-runtime"),i=require("@vef-framework-react/core"),a=require("antd");function o({disabled:n,...o}){let{state:{value:s},handleBlur:c,handleChange:l}=t.useFieldContext(),u=(0,i.useDisabled)()||n;return(0,r.jsx)(a.Mentions,{...o,css:e.fullWidth,disabled:u,value:s,onBlur:c,onChange:l})}var s=n.withFormItem(`MentionsField`,o);exports.MentionsField=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../../contexts/form-context.cjs"),t=require("../../helpers/with-form-item.cjs");let n=require("@emotion/react/jsx-runtime"),r=require("@vef-framework-react/shared"),i=require("@vef-framework-react/core"),a=require("antd");function o({disabled:t,preserveEmptyString:o=!1,...s}){let{state:{value:c},handleBlur:l,handleChange:u}=e.useFieldContext(),d=(0,i.useDisabled)()||t;return(0,n.jsx)(a.Input.Password,{...s,disabled:d,value:c,onBlur:l,onChange:e=>{let t=e.currentTarget.value;u(o||!(0,r.isEmpty)(t)?t:null)}})}var s=t.withFormItem(`PasswordField`,o);exports.PasswordField=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../../contexts/form-context.cjs"),t=require("../../helpers/with-form-item.cjs");let n=require("@emotion/react/jsx-runtime"),r=require("@vef-framework-react/core"),i=require("antd");function a({disabled:t,...a}){let{state:{value:o},handleBlur:s,handleChange:c}=e.useFieldContext(),l=(0,r.useDisabled)()||t;return(0,n.jsx)(i.Radio.Group,{...a,disabled:l,value:o,onBlur:s,onChange:e=>{c(e.target.value)}})}var o=t.withFormItem(`RadioField`,a);exports.RadioField=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../../contexts/form-context.cjs"),t=require("../../helpers/with-form-item.cjs");let n=require("@emotion/react/jsx-runtime"),r=require("@vef-framework-react/core"),i=require("antd");function a({disabled:t,...a}){let{state:{value:o},handleBlur:s,handleChange:c}=e.useFieldContext(),l=(0,r.useDisabled)()||t;return(0,n.jsx)(i.Rate,{...a,disabled:l,value:o,onBlur:s,onChange:c})}var o=t.withFormItem(`RateField`,a);exports.RateField=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../../contexts/form-context.cjs"),t=require("../../helpers/with-form-item.cjs");let n=require("@emotion/react/jsx-runtime"),r=require("@vef-framework-react/core"),i=require("antd");function a({disabled:t,...a}){let{state:{value:o},handleBlur:s,handleChange:c}=e.useFieldContext(),l=(0,r.useDisabled)()||t;return(0,n.jsx)(i.Select,{...a,disabled:l,value:o,onBlur:s,onChange:c})}var o=t.withFormItem(`SelectField`,a);exports.SelectField=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../../contexts/form-context.cjs"),t=require("../../helpers/with-form-item.cjs");let n=require("@emotion/react/jsx-runtime"),r=require("@vef-framework-react/core"),i=require("antd");function a({disabled:t,...a}){let{state:{value:o},handleChange:s}=e.useFieldContext(),c=(0,r.useDisabled)()||t;return(0,n.jsx)(i.Slider,{...a,disabled:c,value:o,onChange:s})}var o=t.withFormItem(`SliderField`,a);exports.SliderField=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../../contexts/form-context.cjs"),t=require("../../helpers/with-form-item.cjs");let n=require("@emotion/react/jsx-runtime"),r=require("@vef-framework-react/shared"),i=require("@vef-framework-react/core"),a=require("antd");function o({disabled:t,preserveEmptyString:o=!1,...s}){let{state:{value:c},handleBlur:l,handleChange:u}=e.useFieldContext(),d=(0,i.useDisabled)()||t;return(0,n.jsx)(a.Input.TextArea,{...s,disabled:d,value:c,onBlur:l,onChange:e=>{let t=e.currentTarget.value;u(o||!(0,r.isEmpty)(t)?t:null)}})}var s=t.withFormItem(`TextAreaField`,o);exports.TextAreaField=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../../../_base/styles/common.cjs"),t=require("../../contexts/form-context.cjs"),n=require("../../helpers/with-form-item.cjs");let r=require("@emotion/react/jsx-runtime"),i=require("@vef-framework-react/shared"),a=require("@vef-framework-react/core"),o=require("antd");function s({disabled:n,valueAsObject:s,...c}){let{state:{value:l},handleChange:u}=t.useFieldContext(),d=(0,a.useDisabled)()||n;return(0,r.jsx)(o.TimePicker,{...c,css:e.fullWidth,disabled:d,value:typeof l==`string`?(0,i.tryParseTime)(l):l,onChange:s?u:(e,t)=>u(t||null)})}var c=n.withFormItem(`TimePickerField`,s);exports.TimePickerField=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../../../_base/styles/common.cjs"),t=require("../../contexts/form-context.cjs"),n=require("../../helpers/with-form-item.cjs");let r=require("@emotion/react/jsx-runtime"),i=require("@vef-framework-react/shared"),a=require("@vef-framework-react/core"),o=require("antd");function s(e){if((0,i.isArray)(e)){let[t,n]=e;return[(0,i.isString)(t)?(0,i.tryParseTime)(t):t,(0,i.isString)(n)?(0,i.tryParseTime)(n):n]}return e}function c({disabled:n,valueAsObject:i,...c}){let{state:{value:l},handleChange:u}=t.useFieldContext(),d=(0,a.useDisabled)()||n;return(0,r.jsx)(o.TimePicker.RangePicker,{...c,css:e.fullWidth,disabled:d,value:s(l),onChange:i?u:(e,t)=>u(t)})}var l=n.withFormItem(`TimeRangePickerField`,c);exports.TimeRangePickerField=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../../contexts/form-context.cjs"),t=require("../../helpers/with-form-item.cjs");let n=require("@emotion/react/jsx-runtime"),r=require("@vef-framework-react/core"),i=require("antd");function a({disabled:t,...a}){let{state:{value:o},handleChange:s}=e.useFieldContext(),c=(0,r.useDisabled)()||t;return(0,n.jsx)(i.Transfer,{...a,disabled:c,targetKeys:o,onChange:e=>{s(e)}})}var o=t.withFormItem(`TransferField`,a);exports.TransferField=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../../contexts/form-context.cjs"),t=require("../../helpers/with-form-item.cjs");let n=require("@emotion/react/jsx-runtime"),r=require("@vef-framework-react/core"),i=require("antd");function a({disabled:t,...a}){let{state:{value:o},handleChange:s}=e.useFieldContext(),c=(0,r.useDisabled)()||t;return(0,n.jsx)(i.TreeSelect,{...a,disabled:c,value:o,onChange:s})}var o=t.withFormItem(`TreeSelectField`,a);exports.TreeSelectField=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../../contexts/form-context.cjs"),t=require("../../helpers/with-form-item.cjs"),n=require("../../../file-upload/index.cjs");let r=require("@emotion/react/jsx-runtime"),i=require("@vef-framework-react/shared"),a=require("react"),o=require("@vef-framework-react/core");var s=/(?<!https?:)\/\//g;function c(e,t){return e?`${e}/${t}`.replaceAll(s,`/`):t}function l({disabled:t,maxCount:s,...l}){let{state:{value:u},handleChange:d}=e.useFieldContext(),{fileBaseUrl:f}=(0,o.useAppContext)(),p=(0,o.useDisabled)()||t,m=(0,a.useMemo)(()=>((0,i.isArray)(u)?u:u?[u]:[]).map(e=>({uid:e,url:c(f,e),name:(0,i.getBaseName)(e),status:`done`})),[u,f]),[h,g]=(0,a.useState)(m);return(0,a.useEffect)(()=>{g(e=>[...m,...e.filter(e=>e.status!==`done`)])},[m]),(0,r.jsx)(n.FileUpload,{...l,disabled:p,fileList:h,maxCount:s,onChange:({fileList:e})=>{g(e);let t=e.filter(e=>e.status===`done`).map(e=>{let t=e;return t.key??t.uid});d((s??1/0)>1?t:t.length>0?t[0]:null)}})}var u=t.withFormItem(`UploadField`,l);exports.UploadField=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../icon/index.cjs"),t=require("./form.cjs");let n=require("@emotion/react/jsx-runtime"),r=require("react"),i=require("lucide-react");var a={children:`提交`,icon:(0,n.jsx)(e.Icon,{component:i.CheckIcon})},o={children:`重置`};function s({submitButtonProps:e=a}){let r=t.useFormContext();return(0,n.jsx)(r.SubmitButton,{...e,onSubmit:r.handleSubmit})}var c=(0,r.memo)(s);c.displayName=`DefaultSubmitButton`;function l({resetButtonProps:e=o,onReset:i}){let a=t.useFormContext(),s=(0,r.useCallback)(()=>{a.reset(),i?.()},[a,i]);return e?(0,n.jsx)(a.ResetButton,{...e,onReset:s}):null}var u=(0,r.memo)(l);u.displayName=`DefaultResetButton`;function d({submitButtonProps:e=a,resetButtonProps:t=o,onReset:r}){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u,{resetButtonProps:t,onReset:r}),(0,n.jsx)(c,{submitButtonProps:e})]})}var f=(0,r.memo)(d);f.displayName=`FormActions`,exports.DefaultResetButton=u,exports.DefaultSubmitButton=c,exports.FormActions=f;
|
package/dist/cjs/form/form.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("./contexts/form-context.cjs"),t=require("./components/index.cjs"),n=require("./fields/index.cjs");var{useAppForm:r,withForm:i,withFieldGroup:a}=(0,require("@tanstack/react-form").createFormHook)({formContext:e.formContext,fieldContext:e.fieldContext,fieldComponents:n.fieldComponents,formComponents:t.formComponents});function o(){return e.useFormContext()}exports.useAppForm=r,exports.useFormContext=o,exports.withFieldGroup=a,exports.withForm=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(
|
|
1
|
+
require("./create-field.cjs"),require("./with-form-item.cjs");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../contexts/form-context.cjs"),t=require("../hooks/use-form-item-props.cjs");let n=require("@emotion/react/jsx-runtime"),r=require("antd");function i(e,t){if(e)return`validating`;if(!t)return`error`}function a(e){return e==null||e===!1?null:typeof e==`object`&&`message`in e?e.message??null:String(e)}function o(e){for(let t of e){let e=a(t);if(e)return e}return null}function s(a,s){function c({layout:a,label:c,labelAlign:l,labelWidth:u,extra:d,noWrapper:f,required:p,...m}){let h=t.useFormItemProps({layout:a,label:c,labelAlign:l,labelWidth:u,extra:d,required:p,noWrapper:f}),{state:{meta:{errors:g,isValid:_,isValidating:v}}}=e.useFieldContext(),y=o(g);return(0,n.jsx)(r.Form.Item,{...h,hasFeedback:v,help:y,validateStatus:i(v,_),children:(0,n.jsx)(s,{...m})})}return c.displayName=a,c}exports.withFormItem=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../contexts/form-layout.cjs"),t=require("./use-label-width.cjs");let n=require("react");function r(r){let{layout:i,label:a,labelAlign:o,labelWidth:s,extra:c,noWrapper:l,required:u}=r,d=e.useFormLayout(),f=i??d.layout,p=t.useLabelWidth(f,s??d.labelWidth),m=(0,n.useMemo)(()=>{if(!(f===`vertical`||!p))return{flex:`0 0 ${p}px`}},[p,f]);return{layout:f,label:a,labelAlign:o??d.labelAlign,labelCol:m,extra:c,noStyle:l,required:u}}exports.useFormItemProps=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../../_base/helpers/message.cjs");let t=require("react");var n=60,r=120;function i(i,a){return(0,t.useMemo)(()=>{if(!(i===`vertical`||!a))return(a<n||a>r)&&e.showWarningMessage(`The labelWidth of Form component must be between ${n} and ${r}.`),Math.min(Math.max(a,n),r)},[i,a])}exports.useLabelWidth=i;
|
package/dist/cjs/form/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require(
|
|
1
|
+
require("./helpers/create-field.cjs"),require("./form.cjs"),require("./form-actions.cjs"),require("./use-form.cjs"),require("@tanstack/react-form");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("./helpers/create-field.cjs"),t=require("./form.cjs");let n=require("react");function r(r){let i=t.useAppForm(r);return(0,n.useMemo)(()=>Object.assign(i,{createField:e.createField}),[i])}exports.useForm=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../center/index.cjs"),t=require("../empty/empty.cjs"),n=require("../form/form-actions.cjs"),r=require("../form/use-form.cjs");let i=require("@emotion/react/jsx-runtime"),a=require("@vef-framework-react/shared"),o=require("react");require("@emotion/react");let s=require("@vef-framework-react/core"),c=require("antd");function l(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var u=process.env.NODE_ENV===`production`?{name:`13udsys`,styles:`height:100%`}:{name:`13udsys`,styles:`height:100%/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFrQmtCIiwiZmlsZSI6ImluZGV4LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgQXdhaXRhYmxlIH0gZnJvbSBcIkB2ZWYtZnJhbWV3b3JrLXJlYWN0L3NoYXJlZFwiO1xuaW1wb3J0IHR5cGUgeyBGQywgUmVhY3ROb2RlIH0gZnJvbSBcInJlYWN0XCI7XG5cbmltcG9ydCB0eXBlIHsgR2V0UHJvcCB9IGZyb20gXCIuLi9fYmFzZVwiO1xuaW1wb3J0IHR5cGUgeyBEcmF3ZXJQcm9wcyB9IGZyb20gXCIuLi9kcmF3ZXJcIjtcbmltcG9ydCB0eXBlIHsgRm9ybUFwaSB9IGZyb20gXCIuLi9mb3JtXCI7XG5pbXBvcnQgdHlwZSB7IEZvcm1EcmF3ZXJQcm9wcyB9IGZyb20gXCIuL3Byb3BzXCI7XG5cbmltcG9ydCB7IGNzcyB9IGZyb20gXCJAZW1vdGlvbi9yZWFjdFwiO1xuaW1wb3J0IHsgdXNlTXV0YXRpb24gfSBmcm9tIFwiQHZlZi1mcmFtZXdvcmstcmVhY3QvY29yZVwiO1xuaW1wb3J0IHsgaXNGdW5jdGlvbiB9IGZyb20gXCJAdmVmLWZyYW1ld29yay1yZWFjdC9zaGFyZWRcIjtcbmltcG9ydCB7IG1lbW8sIHVzZUNhbGxiYWNrLCB1c2VNZW1vIH0gZnJvbSBcInJlYWN0XCI7XG5cbmltcG9ydCB7IENlbnRlciB9IGZyb20gXCIuLi9jZW50ZXJcIjtcbmltcG9ydCB7IERyYXdlciB9IGZyb20gXCIuLi9kcmF3ZXJcIjtcbmltcG9ydCB7IEVtcHR5IH0gZnJvbSBcIi4uL2VtcHR5XCI7XG5pbXBvcnQgeyBEZWZhdWx0UmVzZXRCdXR0b24sIERlZmF1bHRTdWJtaXRCdXR0b24sIEZvcm1BY3Rpb25zLCB1c2VGb3JtIH0gZnJvbSBcIi4uL2Zvcm1cIjtcblxuY29uc3QgZm9ybVN0eWxlID0gY3NzKHtcbiAgaGVpZ2h0OiBcIjEwMCVcIlxufSk7XG5cbmNvbnN0IGVtcHR5Q29udGVudCA9IChcbiAgPENlbnRlcj5cbiAgICA8RW1wdHkgZGVzY3JpcHRpb249XCLor7fmj5DkvpvooajljZXlhoXlrrlcIiAvPlxuICA8L0NlbnRlcj5cbik7XG5cbmZ1bmN0aW9uIHJlbmRlckZvcm1Db250ZW50PFRWYWx1ZXMgZXh0ZW5kcyBvYmplY3Q+KFxuICBjaGlsZHJlbjogRm9ybURyYXdlclByb3BzPFRWYWx1ZXM+W1wiY2hpbGRyZW5cIl0sXG4gIGZvcm1BcGk6IEZvcm1BcGk8VFZhbHVlcz5cbik6IFJlYWN0Tm9kZSB7XG4gIGlmIChpc0Z1bmN0aW9uKGNoaWxkcmVuKSkge1xuICAgIHJldHVybiBjaGlsZHJlbihmb3JtQXBpKTtcbiAgfVxuXG4gIHJldHVybiBjaGlsZHJlbiB8fCBlbXB0eUNvbnRlbnQ7XG59XG5cbmV4cG9ydCBjb25zdCBGb3JtRHJhd2VyID0gbWVtbyg8VFZhbHVlcyBleHRlbmRzIG9iamVjdCwgVERhdGEgPSB1bmtub3duPih7XG4gIG9wZW4gPSBmYWxzZSxcbiAgdGl0bGUsXG4gIHdpZHRoLFxuICBwbGFjZW1lbnQgPSBcInJpZ2h0XCIsXG4gIHJlc2l6YWJsZSxcbiAgZGVmYXVsdFZhbHVlcyxcbiAgZGlzYWJsZWQgPSBmYWxzZSxcbiAgZm9ybUNvbXBvbmVudCxcbiAgcmVuZGVyQWN0aW9ucyxcbiAgc3VibWl0QnV0dG9uUHJvcHMsXG4gIHJlc2V0QnV0dG9uUHJvcHMsXG4gIG11dGF0aW9uRm4sXG4gIG11dGF0aW9uTWV0YSxcbiAgY2hpbGRyZW4sXG4gIGJlZm9yZVN1Ym1pdCxcbiAgYWZ0ZXJTdWJtaXQsXG4gIG9uQ2xvc2UsXG4gIG9uU3VibWl0LFxuICBvblJlc2V0XG59OiBGb3JtRHJhd2VyUHJvcHM8VFZhbHVlcywgVERhdGE+KSA9PiB7XG4gIGNvbnN0IGZvcm1BcGkgPSB1c2VGb3JtKHtcbiAgICBkZWZhdWx0VmFsdWVzLFxuICAgIG9uU3VibWl0OiBhc3luYyAoeyB2YWx1ZSB9KSA9PiB7XG4gICAgICBsZXQgZm9ybVZhbHVlcyA9IHZhbHVlO1xuXG4gICAgICBpZiAoaXNGdW5jdGlvbihiZWZvcmVTdWJtaXQpKSB7XG4gICAgICAgIGZvcm1WYWx1ZXMgPSBhd2FpdCBiZWZvcmVTdWJtaXQoZm9ybVZhbHVlcyk7XG4gICAgICB9XG5cbiAgICAgIGlmIChpc0Z1bmN0aW9uKG9uU3VibWl0KSkge1xuICAgICAgICBhd2FpdCBvblN1Ym1pdChmb3JtVmFsdWVzKTtcbiAgICAgIH1cblxuICAgICAgaWYgKG11dGF0aW9uRm4pIHtcbiAgICAgICAgYXdhaXQgbXV0YXRlQXN5bmMoZm9ybVZhbHVlcyk7XG4gICAgICB9IGVsc2UgaWYgKCFvblN1Ym1pdCkge1xuICAgICAgICBoYW5kbGVDbG9zZSgpO1xuICAgICAgfVxuICAgIH1cbiAgfSk7XG5cbiAgY29uc3Qge1xuICAgIEZvcm0sXG4gICAgQXBwRm9ybSxcbiAgICByZXNldFxuICB9ID0gZm9ybUFwaTtcblxuICBjb25zdCBoYW5kbGVDbG9zZSA9IHVzZUNhbGxiYWNrKCgpID0+IHtcbiAgICByZXNldCgpO1xuICAgIG9uQ2xvc2U/LigpO1xuICB9LCBbb25DbG9zZSwgcmVzZXRdKTtcblxuICBjb25zdCB7IGlzUGVuZGluZywgbXV0YXRlQXN5bmMgfSA9IHVzZU11dGF0aW9uKHtcbiAgICBtdXRhdGlvbktleTogW211dGF0aW9uRm4/LmtleV0sXG4gICAgbXV0YXRpb25GbixcbiAgICBvblN1Y2Nlc3M6IGFzeW5jICh7IGRhdGEgfSwgZm9ybVZhbHVlcykgPT4ge1xuICAgICAgaWYgKGlzRnVuY3Rpb24oYWZ0ZXJTdWJtaXQpKSB7XG4gICAgICAgIGF3YWl0IGFmdGVyU3VibWl0KGZvcm1WYWx1ZXMsIGRhdGEpO1xuICAgICAgfVxuXG4gICAgICBoYW5kbGVDbG9zZSgpO1xuICAgIH0sXG4gICAgbWV0YTogbXV0YXRpb25NZXRhXG4gIH0pO1xuXG4gIGNvbnN0IGhhbmRsZVJlc2V0ID0gdXNlQ2FsbGJhY2soKCkgPT4ge1xuICAgIG9uUmVzZXQ/LihkZWZhdWx0VmFsdWVzKTtcbiAgfSwgW2RlZmF1bHRWYWx1ZXMsIG9uUmVzZXRdKTtcblxuICBjb25zdCBoYW5kbGVDYW5jZWwgPSB1c2VDYWxsYmFjaygoKSA9PiB7XG4gICAgaWYgKGlzUGVuZGluZykge1xuICAgICAgcmV0dXJuO1xuICAgIH1cblxuICAgIGhhbmRsZUNsb3NlKCk7XG4gIH0sIFtoYW5kbGVDbG9zZSwgaXNQZW5kaW5nXSk7XG5cbiAgY29uc3QgZHJhd2VyU3R5bGVzID0gdXNlTWVtbzxHZXRQcm9wPERyYXdlclByb3BzLCBcInN0eWxlc1wiPj4oXG4gICAgKCkgPT4geyByZXR1cm4geyB3cmFwcGVyOiB7IHdpZHRoIH0gfTsgfSxcbiAgICBbd2lkdGhdXG4gICk7XG5cbiAgY29uc3QgcHJveGllZEZvcm1BcGkgPSB1c2VNZW1vKFxuICAgICgpID0+IG5ldyBQcm94eShmb3JtQXBpLCB7XG4gICAgICBnZXQodGFyZ2V0LCBwcm9wLCByZWNlaXZlcikge1xuICAgICAgICBpZiAocHJvcCA9PT0gXCJyZXNldFwiKSB7XG4gICAgICAgICAgY29uc3Qgb3JpZ2luYWxSZXNldCA9IFJlZmxlY3QuZ2V0KHRhcmdldCwgcHJvcCwgcmVjZWl2ZXIpO1xuXG4gICAgICAgICAgcmV0dXJuICgpID0+IHtcbiAgICAgICAgICAgIG9yaWdpbmFsUmVzZXQoKTtcbiAgICAgICAgICAgIGhhbmRsZVJlc2V0KCk7XG4gICAgICAgICAgfTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBSZWZsZWN0LmdldCh0YXJnZXQsIHByb3AsIHJlY2VpdmVyKTtcbiAgICAgIH1cbiAgICB9KSxcbiAgICBbZm9ybUFwaSwgaGFuZGxlUmVzZXRdXG4gICk7XG5cbiAgY29uc3QgZm9vdGVyID0gcmVuZGVyQWN0aW9uc1xuICAgID8gKCgpID0+IHtcbiAgICAgICAgY29uc3QgYWN0aW9ucyA9IHJlbmRlckFjdGlvbnMocHJveGllZEZvcm1BcGksIHtcbiAgICAgICAgICBzdWJtaXRCdXR0b246IDxEZWZhdWx0U3VibWl0QnV0dG9uIHN1Ym1pdEJ1dHRvblByb3BzPXtzdWJtaXRCdXR0b25Qcm9wc30gLz4sXG4gICAgICAgICAgcmVzZXRCdXR0b246IDxEZWZhdWx0UmVzZXRCdXR0b24gcmVzZXRCdXR0b25Qcm9wcz17cmVzZXRCdXR0b25Qcm9wc30gb25SZXNldD17aGFuZGxlUmVzZXR9IC8+XG4gICAgICAgIH0pO1xuXG4gICAgICAgIHJldHVybiBhY3Rpb25zXG4gICAgICAgICAgPyAoXG4gICAgICAgICAgICAgIDxBcHBGb3JtPlxuICAgICAgICAgICAgICAgIHthY3Rpb25zfVxuICAgICAgICAgICAgICA8L0FwcEZvcm0+XG4gICAgICAgICAgICApXG4gICAgICAgICAgOiBudWxsO1xuICAgICAgfSkoKVxuICAgIDogKFxuICAgICAgICA8QXBwRm9ybT5cbiAgICAgICAgICA8Rm9ybUFjdGlvbnNcbiAgICAgICAgICAgIHJlc2V0QnV0dG9uUHJvcHM9e3Jlc2V0QnV0dG9uUHJvcHN9XG4gICAgICAgICAgICBzdWJtaXRCdXR0b25Qcm9wcz17c3VibWl0QnV0dG9uUHJvcHN9XG4gICAgICAgICAgICBvblJlc2V0PXtoYW5kbGVSZXNldH1cbiAgICAgICAgICAvPlxuICAgICAgICA8L0FwcEZvcm0+XG4gICAgICApO1xuXG4gIHJldHVybiAoXG4gICAgPERyYXdlclxuICAgICAgZGVzdHJveU9uSGlkZGVuXG4gICAgICBmb290ZXI9e2Zvb3Rlcn1cbiAgICAgIGtleWJvYXJkPXtmYWxzZX1cbiAgICAgIG9wZW49e29wZW59XG4gICAgICBwbGFjZW1lbnQ9e3BsYWNlbWVudH1cbiAgICAgIHJlc2l6YWJsZT17cmVzaXphYmxlfVxuICAgICAgc3R5bGVzPXtkcmF3ZXJTdHlsZXN9XG4gICAgICB0aXRsZT17dGl0bGV9XG4gICAgICBvbkNsb3NlPXtoYW5kbGVDYW5jZWx9XG4gICAgPlxuICAgICAgPEFwcEZvcm0+XG4gICAgICAgIDxGb3JtIGNvbXBvbmVudD17Zm9ybUNvbXBvbmVudH0gY3NzPXtmb3JtU3R5bGV9IGRpc2FibGVkPXtkaXNhYmxlZCB8fCBpc1BlbmRpbmd9PlxuICAgICAgICAgIHtyZW5kZXJGb3JtQ29udGVudChjaGlsZHJlbiwgZm9ybUFwaSl9XG4gICAgICAgIDwvRm9ybT5cbiAgICAgIDwvQXBwRm9ybT5cbiAgICA8L0RyYXdlcj5cbiAgKTtcbn0pIGFzICg8VFZhbHVlcyBleHRlbmRzIG9iamVjdCwgVERhdGEgPSB1bmtub3duPihwcm9wczogRm9ybURyYXdlclByb3BzPFRWYWx1ZXMsIFREYXRhPikgPT4gQXdhaXRhYmxlPFJlYWN0Tm9kZT4pICYgUGljazxGQywgXCJkaXNwbGF5TmFtZVwiPjtcbkZvcm1EcmF3ZXIuZGlzcGxheU5hbWUgPSBcIkZvcm1EcmF3ZXJcIjtcblxuZXhwb3J0IHR5cGUgeyBGb3JtRHJhd2VyUHJvcHMgfSBmcm9tIFwiLi9wcm9wc1wiO1xuIl19 */`,toString:l},d=(0,i.jsx)(e.Center,{children:(0,i.jsx)(t.default,{description:`请提供表单内容`})});function f(e,t){return(0,a.isFunction)(e)?e(t):e||d}var p=(0,o.memo)(({open:e=!1,title:t,width:l,placement:d=`right`,resizable:p,defaultValues:m,disabled:h=!1,formComponent:g,renderActions:_,submitButtonProps:v,resetButtonProps:y,mutationFn:b,mutationMeta:x,children:S,beforeSubmit:C,afterSubmit:w,onClose:T,onSubmit:E,onReset:D})=>{let O=r.useForm({defaultValues:m,onSubmit:async({value:e})=>{let t=e;(0,a.isFunction)(C)&&(t=await C(t)),(0,a.isFunction)(E)&&await E(t),b?await P(t):E||M()}}),{Form:k,AppForm:A,reset:j}=O,M=(0,o.useCallback)(()=>{j(),T?.()},[T,j]),{isPending:N,mutateAsync:P}=(0,s.useMutation)({mutationKey:[b?.key],mutationFn:b,onSuccess:async({data:e},t)=>{(0,a.isFunction)(w)&&await w(t,e),M()},meta:x}),F=(0,o.useCallback)(()=>{D?.(m)},[m,D]),I=(0,o.useCallback)(()=>{N||M()},[M,N]),L=(0,o.useMemo)(()=>({wrapper:{width:l}}),[l]),R=(0,o.useMemo)(()=>new Proxy(O,{get(e,t,n){if(t===`reset`){let r=Reflect.get(e,t,n);return()=>{r(),F()}}return Reflect.get(e,t,n)}}),[O,F]),z=_?(()=>{let e=_(R,{submitButton:(0,i.jsx)(n.DefaultSubmitButton,{submitButtonProps:v}),resetButton:(0,i.jsx)(n.DefaultResetButton,{resetButtonProps:y,onReset:F})});return e?(0,i.jsx)(A,{children:e}):null})():(0,i.jsx)(A,{children:(0,i.jsx)(n.FormActions,{resetButtonProps:y,submitButtonProps:v,onReset:F})});return(0,i.jsx)(c.Drawer,{destroyOnHidden:!0,footer:z,keyboard:!1,open:e,placement:d,resizable:p,styles:L,title:t,onClose:I,children:(0,i.jsx)(A,{children:(0,i.jsx)(k,{component:g,css:u,disabled:h||N,children:f(S,O)})})})});p.displayName=`FormDrawer`,exports.FormDrawer=p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../center/index.cjs"),t=require("../empty/empty.cjs"),n=require("../form/form-actions.cjs"),r=require("../form/use-form.cjs"),i=require("../modal/modal.cjs");let a=require("@emotion/react/jsx-runtime"),o=require("@vef-framework-react/shared"),s=require("react"),c=require("@vef-framework-react/core");var l=(0,a.jsx)(e.Center,{children:(0,a.jsx)(t.default,{description:`请提供表单内容`})});function u(e,t){return(0,o.isFunction)(e)?e(t):e||l}var d=(0,s.memo)(({open:e=!1,title:t,width:l,draggable:d=!0,submitButtonProps:f,resetButtonProps:p,defaultValues:m,disabled:h=!1,formComponent:g,renderActions:_,mutationFn:v,mutationMeta:y,children:b,beforeSubmit:x,afterSubmit:S,onClose:C,onSubmit:w,onReset:T})=>{let E=r.useForm({defaultValues:m,onSubmit:async({value:e})=>{let t=e;(0,o.isFunction)(x)&&(t=await x(t)),(0,o.isFunction)(w)&&await w(t),v?await M(t):w||A()}}),{Form:D,AppForm:O,reset:k}=E,A=(0,s.useCallback)(()=>{k(),C?.()},[C,k]),{isPending:j,mutateAsync:M}=(0,c.useMutation)({mutationKey:[v?.key],mutationFn:v,onSuccess:async({data:e},t)=>{(0,o.isFunction)(S)&&await S(t,e),A()},meta:y}),N=(0,s.useCallback)(()=>{T?.(m)},[m,T]),P=(0,s.useCallback)(()=>{j||A()},[j,A]),F=(0,s.useMemo)(()=>new Proxy(E,{get(e,t,n){if(t===`reset`){let r=Reflect.get(e,t,n);return()=>{r(),N()}}return Reflect.get(e,t,n)}}),[E,N]),I=_?(()=>{let e=_(F,{submitButton:(0,a.jsx)(n.DefaultSubmitButton,{submitButtonProps:f}),resetButton:(0,a.jsx)(n.DefaultResetButton,{resetButtonProps:p,onReset:N})});return e?(0,a.jsx)(O,{children:e}):null})():(0,a.jsx)(O,{children:(0,a.jsx)(n.FormActions,{resetButtonProps:p,submitButtonProps:f,onReset:N})});return(0,a.jsx)(i.Modal,{centered:!0,destroyOnHidden:!0,draggable:d,footer:I,keyboard:!1,open:e,title:t,width:l,onCancel:P,children:(0,a.jsx)(O,{children:(0,a.jsx)(D,{component:g,disabled:h||j,children:u(b,E)})})})});d.displayName=`FormModal`,exports.FormModal=d;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("../_base/styles/common.cjs"),t=require("../icon/index.cjs");let n=require("@emotion/react/jsx-runtime"),r=require("@vef-framework-react/hooks"),i=require("react"),a=require("antd"),o=require("lucide-react");var s=(0,n.jsx)(t.Icon,{component:o.Search});function c({ref:t,value:o,onChange:c,onBlur:l,open:u,defaultOpen:d=!1,onOpenChange:f,renderPopup:p,renderLabel:m,searchable:h=!0,placeholder:g,size:_=`medium`,status:v,variant:y=`outlined`,disabled:b=!1,allowClear:x=!1,loading:S=!1,suffixIcon:C,prefix:w,getPopupContainer:T,popupMatchSelectWidth:E=!1,popupClassName:D,className:O,style:k}){let A=(0,i.useRef)(null),[j,M]=(0,i.useState)(d),[N,P]=(0,i.useState)(``),F=(0,i.useDeferredValue)(N),I=u!==void 0,L=I?u:j;(0,i.useImperativeHandle)(t,()=>({focus:()=>A.current?.focus(),blur:()=>A.current?.blur()}),[]);let R=e=>{I||M(e),e||P(``),f?.(e)},z=(0,r.useLatest)(c),B=(0,r.useLatest)(R),V=(0,i.useCallback)(e=>z.current?.(e),[z]),H=(0,i.useCallback)(()=>B.current(!1),[B]),U={value:o??null,keyword:F,open:L,select:V,close:H};return(0,n.jsx)(a.Select,{ref:A,allowClear:x,className:O,classNames:D?{popup:{root:D}}:void 0,css:e.fullWidth,disabled:b,getPopupContainer:T,labelRender:m?({value:e})=>m(e):void 0,loading:S,open:L,placeholder:g,popupMatchSelectWidth:E,popupRender:()=>(0,n.jsx)(n.Fragment,{children:p(U)}),prefix:w,showSearch:h?{searchValue:N,onSearch:P}:!1,size:_,status:v,style:k,suffixIcon:h&&L?s:C,value:o??void 0,variant:y,onBlur:l,onClear:()=>c?.(null),onOpenChange:R})}exports.GenericSelect=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
let e=require("react");var t=(0,e.createContext)(null),n=t.Provider;function r(){let n=(0,e.use)(t);if(!n)throw Error(`GridItem must be used as direct child of Grid`);return n}exports.GridContextProvider=n,exports.useGridContext=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("./context.cjs"),t=require("./styles.cjs");let n=require("@emotion/react/jsx-runtime"),r=require("react");function i({span:i=1,offset:a=0,suffix:o=!1,style:s,...c}){let{gridColumns:l}=e.useGridContext(),u=(0,r.useMemo)(()=>{let e=i,t=a;return{"--vef-grid-item-column":o?`${l+1-e} / span ${e}`:`span ${e}`,...t>0&&!o?{"--vef-grid-item-margin-left":`calc(100% * ${t} / ${e})`}:{},...s}},[i,a,o,l,s]);return(0,n.jsx)(`div`,{...c,css:t.gridItem,style:u})}exports.GridItem=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(
|
|
1
|
+
require("./use-container-breakpoints.cjs"),require("./use-container-width.cjs"),require("./use-grid-collapsed.cjs"),require("./use-normalized-gap.cjs"),require("./use-responsive-breakpoint.cjs"),require("./use-responsive-value.cjs");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
let e=require("react");function t(t){return(0,e.useMemo)(()=>({xxs:t,xs:t*2,sm:t*3,md:t*4,lg:t*5,xl:t*6,xxl:t*7}),[t])}exports.useContainerBreakpoints=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
let e=require("@vef-framework-react/hooks"),t=require("react");function n(){let n=(0,t.useRef)(0),r=(0,t.useRef)(null),[i,a]=(0,t.useState)(0);return(0,e.useIsomorphicEffect)(()=>{r.current&&a(r.current.getBoundingClientRect().width)},[]),(0,t.useEffect)(()=>{if(r.current){let e=new ResizeObserver(([e])=>{e&&(n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{a(e.contentBoxSize.at(0)?.inlineSize??e.contentRect.width)}))});return e.observe(r.current,{box:`content-box`}),()=>{e.disconnect(),n.current&&cancelAnimationFrame(n.current)}}},[]),{containerWidth:i,containerRef:r}}exports.useContainerWidth=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(
|
|
1
|
+
const e=require("../context.cjs");function t(){let{isCollapsed:t,setCollapsed:n}=e.useGridContext();return{isCollapsed:t,setCollapsed:n}}exports.useGridCollapsed=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../../_base/hooks/use-theme-tokens.cjs");let t=require("@vef-framework-react/shared"),n=require("react");function r([t,r]){let a=e.useThemeTokens();return(0,n.useMemo)(()=>[i(t,a),i(r,a)],[r,t,a])}function i(e,{margin:n,marginSM:r,marginXS:i,marginMD:a,marginLG:o}){if((0,t.isNumber)(e))return e;if((0,t.isString)(e))switch(e){case`extra-small`:return i;case`small`:return r;case`medium`:return n;case`large`:return a;case`extra-large`:return o}return 0}exports.useNormalizedGap=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
let e=require("react");function t(t,n){return(0,e.useMemo)(()=>{for(let[e,r]of Object.entries(t))if(n<=r)return e;return`xxl`},[n,t])}exports.useResponsiveBreakpoint=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../../_base/constants/breakpoints.cjs");let t=require("@vef-framework-react/shared");require("react");function n(n,r){if((0,t.isPlainObject)(n)){let t=n[r];if(t)return t;let i=Object.keys(e.breakpoints),a=i.indexOf(r);for(;a--;){let e=n[i[a]];if(e)return e}return}return n}exports.getResponsiveValue=n;
|
package/dist/cjs/grid/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("./context.cjs"),t=require("./styles.cjs"),n=require("./grid-item.cjs"),r=require("./hooks/use-container-breakpoints.cjs"),i=require("./hooks/use-container-width.cjs");require("./hooks/use-grid-collapsed.cjs");const a=require("./hooks/use-normalized-gap.cjs"),o=require("./hooks/use-responsive-breakpoint.cjs"),s=require("./hooks/use-responsive-value.cjs");let c=require("@emotion/react/jsx-runtime"),l=require("@vef-framework-react/hooks"),u=require("react"),d=require("@vef-framework-react/core");function f(e,t,r,i,a){let o=[];u.Children.forEach(e,e=>{if(!(0,u.isValidElement)(e)||e.type!==n.GridItem)return;let t=e,r=t.props,i=s.getResponsiveValue(r.span??1,a)??1;if(i===0)return;let c=s.getResponsiveValue(r.offset??0,a)??0;o.push({element:t,span:i,offset:c})});let c=0,l=o.at(-1);l?.element.props.suffix===!0&&(c=l.span);let f=0,p=!1;return o.map(({element:e,span:n,offset:a},s)=>{let l=Math.min(n+a,t);if(!p&&r){let e=f%t;l+e>t&&(f+=t-e),l+f+c>i*t?p=!0:f+=l}if(p){let{props:t}=e;return(0,u.cloneElement)(e,{className:s===o.length-1&&t.suffix===!0?t.className:(0,d.clsx)(t.className,`hidden`),span:n,offset:a})}return(0,u.cloneElement)(e,{key:e.key||s,span:l,offset:a})})}function p({baseWidth:n=240,gap:s=0,columnGap:d,rowGap:p,defaultIsCollapsed:m=!1,isCollapsed:h,collapsedRows:g=1,onCollapseChange:_,style:v,children:y,ref:b,...x}){let[S,C]=(0,u.useState)(m),w=h!==void 0,T=w?h:S,E=(0,u.useCallback)(e=>{let t=e||!T;w||C(t),_?.(t)},[w,T,_]),{containerRef:D,containerWidth:O}=i.useContainerWidth(),k=(0,l.useMergedRef)(D,b),A=r.useContainerBreakpoints(n),j=o.useResponsiveBreakpoint(A,O),[M,N]=a.useNormalizedGap([p??s,d??s]),P=(0,u.useMemo)(()=>O>24*N?{"--vef-grid-row-gap":`${M}px`,"--vef-grid-column-gap":`${N}px`,...v}:{"--vef-grid-row-gap":`${M}px`,"--vef-grid-column-gap":`${Math.floor(O/24)}px`,...v},[O,N,M,v]),F=(0,u.useMemo)(()=>({gridColumns:24,isCollapsed:T,setCollapsed:E}),[T,E]),I=(0,u.useMemo)(()=>f(y,24,T,g,j),[y,T,g,j]);return(0,c.jsx)(`div`,{...x,ref:k,css:t.grid,style:P,children:(0,c.jsx)(e.GridContextProvider,{value:F,children:I})})}p.Item=n.GridItem,exports.Grid=p;
|
package/dist/cjs/grid/styles.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
let e=require("@emotion/react");function t(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var n=(0,e.css)({display:`grid`,width:`100%`,gridTemplateColumns:`repeat(24, minmax(0, 1fr))`,columnGap:`var(--vef-grid-column-gap, 0)`,rowGap:`var(--vef-grid-row-gap, 0)`},process.env.NODE_ENV===`production`?``:`/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJb0IiLCJmaWxlIjoic3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XG5cbmV4cG9ydCBjb25zdCBncmlkQ29sdW1ucyA9IDI0O1xuXG5leHBvcnQgY29uc3QgZ3JpZCA9IGNzcyh7XG4gIGRpc3BsYXk6IFwiZ3JpZFwiLFxuICB3aWR0aDogXCIxMDAlXCIsXG4gIGdyaWRUZW1wbGF0ZUNvbHVtbnM6IGByZXBlYXQoJHtncmlkQ29sdW1uc30sIG1pbm1heCgwLCAxZnIpKWAsXG4gIGNvbHVtbkdhcDogXCJ2YXIoLS12ZWYtZ3JpZC1jb2x1bW4tZ2FwLCAwKVwiLFxuICByb3dHYXA6IFwidmFyKC0tdmVmLWdyaWQtcm93LWdhcCwgMClcIlxufSk7XG5cbmV4cG9ydCBjb25zdCBncmlkSXRlbSA9IGNzcyh7XG4gIGdyaWRDb2x1bW46IFwidmFyKC0tdmVmLWdyaWQtaXRlbS1jb2x1bW4sIHNwYW4gMSlcIixcbiAgbWFyZ2luTGVmdDogXCJ2YXIoLS12ZWYtZ3JpZC1pdGVtLW1hcmdpbi1sZWZ0LCAwKVwiLFxuICBcIiYuaGlkZGVuXCI6IHtcbiAgICBkaXNwbGF5OiBcIm5vbmVcIlxuICB9XG59KTtcbiJdfQ== */`),r=process.env.NODE_ENV===`production`?{name:`6308ym`,styles:`grid-column:var(--vef-grid-item-column, span 1);margin-left:var(--vef-grid-item-margin-left, 0);&.hidden{display:none;}`}:{name:`6308ym`,styles:`grid-column:var(--vef-grid-item-column, span 1);margin-left:var(--vef-grid-item-margin-left, 0);&.hidden{display:none;}/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFZd0IiLCJmaWxlIjoic3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XG5cbmV4cG9ydCBjb25zdCBncmlkQ29sdW1ucyA9IDI0O1xuXG5leHBvcnQgY29uc3QgZ3JpZCA9IGNzcyh7XG4gIGRpc3BsYXk6IFwiZ3JpZFwiLFxuICB3aWR0aDogXCIxMDAlXCIsXG4gIGdyaWRUZW1wbGF0ZUNvbHVtbnM6IGByZXBlYXQoJHtncmlkQ29sdW1uc30sIG1pbm1heCgwLCAxZnIpKWAsXG4gIGNvbHVtbkdhcDogXCJ2YXIoLS12ZWYtZ3JpZC1jb2x1bW4tZ2FwLCAwKVwiLFxuICByb3dHYXA6IFwidmFyKC0tdmVmLWdyaWQtcm93LWdhcCwgMClcIlxufSk7XG5cbmV4cG9ydCBjb25zdCBncmlkSXRlbSA9IGNzcyh7XG4gIGdyaWRDb2x1bW46IFwidmFyKC0tdmVmLWdyaWQtaXRlbS1jb2x1bW4sIHNwYW4gMSlcIixcbiAgbWFyZ2luTGVmdDogXCJ2YXIoLS12ZWYtZ3JpZC1pdGVtLW1hcmdpbi1sZWZ0LCAwKVwiLFxuICBcIiYuaGlkZGVuXCI6IHtcbiAgICBkaXNwbGF5OiBcIm5vbmVcIlxuICB9XG59KTtcbiJdfQ== */`,toString:t};exports.grid=n,exports.gridItem=r;
|
package/dist/cjs/group/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
let e=require("@emotion/react/jsx-runtime"),t=require("antd");function n({ref:n,children:r,gap:i=`small`,align:a=`center`,...o}){return(0,e.jsx)(t.Flex,{ref:n,align:a,gap:i,orientation:`horizontal`,...o,children:r})}exports.Group=n;
|
package/dist/cjs/icon/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
let e=require("@emotion/react/jsx-runtime");require("@emotion/react");let t=require("lucide-react");function n(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var r=process.env.NODE_ENV===`production`?{name:`8sxzyi`,styles:`display:inline-flex;justify-content:center;align-items:center;color:inherit;font-style:normal;line-height:0;text-transform:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:-0.25em`}:{name:`8sxzyi`,styles:`display:inline-flex;justify-content:center;align-items:center;color:inherit;font-style:normal;line-height:0;text-transform:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:-0.25em/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLa0IiLCJmaWxlIjoiaW5kZXgudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBJY29uUHJvcHMgfSBmcm9tIFwiLi9wcm9wc1wiO1xuXG5pbXBvcnQgeyBjc3MgfSBmcm9tIFwiQGVtb3Rpb24vcmVhY3RcIjtcbmltcG9ydCB7IEljb24gYXMgTHVjaWRlSWNvbiB9IGZyb20gXCJsdWNpZGUtcmVhY3RcIjtcblxuY29uc3QgaWNvblN0eWxlID0gY3NzKHtcbiAgZGlzcGxheTogXCJpbmxpbmUtZmxleFwiLFxuICBqdXN0aWZ5Q29udGVudDogXCJjZW50ZXJcIixcbiAgYWxpZ25JdGVtczogXCJjZW50ZXJcIixcbiAgY29sb3I6IFwiaW5oZXJpdFwiLFxuICBmb250U3R5bGU6IFwibm9ybWFsXCIsXG4gIGxpbmVIZWlnaHQ6IDAsXG4gIHRleHRUcmFuc2Zvcm06IFwibm9uZVwiLFxuICB0ZXh0UmVuZGVyaW5nOiBcIm9wdGltaXplTGVnaWJpbGl0eVwiLFxuICBXZWJraXRGb250U21vb3RoaW5nOiBcImFudGlhbGlhc2VkXCIsXG4gIE1vek9zeEZvbnRTbW9vdGhpbmc6IFwiZ3JheXNjYWxlXCIsXG4gIHZlcnRpY2FsQWxpZ246IFwiLTAuMjVlbVwiXG59KTtcblxuZXhwb3J0IGZ1bmN0aW9uIEljb24oe1xuICBjb21wb25lbnQ6IENvbXBvbmVudCxcbiAgaWNvbk5vZGUsXG4gIGNsYXNzTmFtZSxcbiAgc3R5bGUsXG4gIC4uLnByb3BzXG59OiBJY29uUHJvcHMpIHtcbiAgcmV0dXJuIChcbiAgICA8c3BhblxuICAgICAgY2xhc3NOYW1lPXtjbGFzc05hbWV9XG4gICAgICBjc3M9e2ljb25TdHlsZX1cbiAgICAgIHN0eWxlPXtzdHlsZX1cbiAgICA+XG4gICAgICB7XG4gICAgICAgIGljb25Ob2RlXG4gICAgICAgICAgPyA8THVjaWRlSWNvbiBpY29uTm9kZT17aWNvbk5vZGV9IHNpemU9XCIxLjJlbVwiIHsuLi5wcm9wc30gLz5cbiAgICAgICAgICA6IDxDb21wb25lbnQgc2l6ZT1cIjEuMmVtXCIgey4uLnByb3BzfSAvPlxuICAgICAgfVxuICAgIDwvc3Bhbj5cbiAgKTtcbn1cblxuZXhwb3J0IHsgdHlwZSBJY29uUHJvcHMgfSBmcm9tIFwiLi9wcm9wc1wiO1xuIl19 */`,toString:n};function i({component:n,iconNode:i,className:a,style:o,...s}){return(0,e.jsx)(`span`,{className:a,css:r,style:o,children:i?(0,e.jsx)(t.Icon,{iconNode:i,size:`1.2em`,...s}):(0,e.jsx)(n,{size:`1.2em`,...s})})}exports.Icon=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("../_base/constants/css-vars.cjs");let t=require("@emotion/react/jsx-runtime"),n=require("@vef-framework-react/shared"),r=require("react"),i=require("@emotion/react"),a=require("antd");var o=(0,i.css)({padding:0,width:e.globalCssVars.controlHeight,"&.vef-btn-sm":{width:e.globalCssVars.controlHeightSm},"&.vef-btn-lg":{width:e.globalCssVars.controlHeightLg}},process.env.NODE_ENV===`production`?``:`/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFVb0IiLCJmaWxlIjoiaW5kZXgudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBJY29uQnV0dG9uUHJvcHMgfSBmcm9tIFwiLi9wcm9wc1wiO1xuXG5pbXBvcnQgeyBjc3MgfSBmcm9tIFwiQGVtb3Rpb24vcmVhY3RcIjtcbmltcG9ydCB7IGlzTnVsbGlzaCB9IGZyb20gXCJAdmVmLWZyYW1ld29yay1yZWFjdC9zaGFyZWRcIjtcbmltcG9ydCB7IGNsb25lRWxlbWVudCB9IGZyb20gXCJyZWFjdFwiO1xuXG5pbXBvcnQgeyBnbG9iYWxDc3NWYXJzIH0gZnJvbSBcIi4uL19iYXNlXCI7XG5pbXBvcnQgeyBCdXR0b24gfSBmcm9tIFwiLi4vYnV0dG9uXCI7XG5pbXBvcnQgeyBUb29sdGlwIH0gZnJvbSBcIi4uL3Rvb2x0aXBcIjtcblxuY29uc3QgYnV0dG9uU3R5bGUgPSBjc3Moe1xuICBwYWRkaW5nOiAwLFxuICB3aWR0aDogZ2xvYmFsQ3NzVmFycy5jb250cm9sSGVpZ2h0LFxuICBcIiYudmVmLWJ0bi1zbVwiOiB7XG4gICAgd2lkdGg6IGdsb2JhbENzc1ZhcnMuY29udHJvbEhlaWdodFNtXG4gIH0sXG4gIFwiJi52ZWYtYnRuLWxnXCI6IHtcbiAgICB3aWR0aDogZ2xvYmFsQ3NzVmFycy5jb250cm9sSGVpZ2h0TGdcbiAgfVxufSk7XG5cbmV4cG9ydCBmdW5jdGlvbiBJY29uQnV0dG9uKHtcbiAgaWNvbixcbiAgdGlwLFxuICB0aXBEZWxheSxcbiAgcGxhY2VtZW50LFxuICAuLi5wcm9wc1xufTogSWNvbkJ1dHRvblByb3BzKSB7XG4gIGNvbnN0IGJ1dHRvbk5vZGUgPSAoXG4gICAgPEJ1dHRvblxuICAgICAgY3NzPXtidXR0b25TdHlsZX1cbiAgICAgIHR5cGU9XCJ0ZXh0XCJcbiAgICAgIHsuLi5wcm9wc31cbiAgICA+XG4gICAgICB7XG4gICAgICAgIGNsb25lRWxlbWVudChpY29uLCB7XG4gICAgICAgICAgc2l6ZTogXCIxLjJlbVwiXG4gICAgICAgIH0pXG4gICAgICB9XG4gICAgPC9CdXR0b24+XG4gICk7XG5cbiAgcmV0dXJuIGlzTnVsbGlzaCh0aXApXG4gICAgPyBidXR0b25Ob2RlXG4gICAgOiAoXG4gICAgICAgIDxUb29sdGlwXG4gICAgICAgICAgbW91c2VFbnRlckRlbGF5PXt0aXBEZWxheX1cbiAgICAgICAgICBwbGFjZW1lbnQ9e3BsYWNlbWVudH1cbiAgICAgICAgICB0aXRsZT17dGlwfVxuICAgICAgICA+XG4gICAgICAgICAge2J1dHRvbk5vZGV9XG4gICAgICAgIDwvVG9vbHRpcD5cbiAgICAgICk7XG59XG5cbmV4cG9ydCB7IHR5cGUgSWNvbkJ1dHRvblByb3BzIH0gZnJvbSBcIi4vcHJvcHNcIjtcbiJdfQ== */`);function s({icon:e,tip:i,tipDelay:s,placement:c,...l}){let u=(0,t.jsx)(a.Button,{css:o,type:`text`,...l,children:(0,r.cloneElement)(e,{size:`1.2em`})});return(0,n.isNullish)(i)?u:(0,t.jsx)(a.Tooltip,{mouseEnterDelay:s,placement:c,title:i,children:u})}exports.IconButton=s;
|