@vef-framework/components 1.0.63 → 1.0.65
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/es/index.js +1 -1
- package/es/internal/index.js +1 -1
- package/es/internal/modern-normalize.css.js +1 -1
- package/es/internal/utils.js +2 -2
- package/es/vef-access-denied/access-denied-icon.js +2 -2
- package/es/vef-access-denied/index.js +9 -9
- package/es/vef-action-buttons/index.js +2 -2
- package/es/vef-auto-sizer/index.js +1 -1
- package/es/vef-avatar/index.js +2 -2
- package/es/vef-avatar-group/index.js +2 -2
- package/es/vef-badge/index.js +2 -2
- package/es/vef-bool/hooks/use-bool-instance.js +2 -2
- package/es/vef-bool/index.js +2 -2
- package/es/vef-breadcrumb/index.js +2 -2
- package/es/vef-button/components/base-button.js +1 -1
- package/es/vef-button/index.js +1 -1
- package/es/vef-card/index.js +2 -2
- package/es/vef-card-meta/index.js +2 -2
- package/es/vef-checkbox/hooks/use-checkbox-instance.js +2 -2
- package/es/vef-checkbox/hooks/use-data-options.js +2 -2
- package/es/vef-checkbox/index.js +2 -2
- package/es/vef-col/index.js +2 -2
- package/es/vef-color-picker/index.js +2 -2
- package/es/vef-compact/index.js +2 -2
- package/es/vef-config-provider/global-style.js +1 -1
- package/es/vef-config-provider/hooks/use-ui-config.js +2 -2
- package/es/vef-config-provider/index.js +4 -4
- package/es/vef-config-provider/store.js +1 -1
- package/es/vef-container/index.js +2 -2
- package/es/vef-crud-page/components/crud-actions.js +2 -2
- package/es/vef-crud-page/components/crud-filter.js +2 -2
- package/es/vef-crud-page/components/crud-footer.js +2 -2
- package/es/vef-crud-page/components/crud-form-modal.js +2 -2
- package/es/vef-crud-page/components/crud-header.js +2 -2
- package/es/vef-crud-page/components/crud-table.js +2 -2
- package/es/vef-crud-page/hooks/use-action-buttons.js +2 -2
- package/es/vef-crud-page/hooks/use-crud-context.js +2 -2
- package/es/vef-crud-page/hooks/use-crud-schema.js +2 -2
- package/es/vef-crud-page/hooks/use-operation-buttons.js +2 -2
- package/es/vef-crud-page/index.js +2 -2
- package/es/vef-crud-page/store.js +1 -1
- package/es/vef-divider/index.js +2 -2
- package/es/vef-drawer/components/action-button-wrapper.js +2 -2
- package/es/vef-drawer/components/button-props.js +1 -1
- package/es/vef-drawer/components/cancel-action-button.js +2 -2
- package/es/vef-drawer/components/ok-action-button.js +2 -2
- package/es/vef-drawer/context.js +1 -1
- package/es/vef-drawer/index.js +3 -3
- package/es/vef-dropdown/index.js +2 -2
- package/es/vef-dynamic-icon/index.js +2 -2
- package/es/vef-dynamic-icon/props.js +1 -1
- package/es/vef-empty/index.js +2 -2
- package/es/vef-empty-placeholder/index.js +3 -3
- package/es/vef-error/error-icon.js +2 -2
- package/es/vef-error/index.js +2 -2
- package/es/vef-filter/components/action-buttons.js +3 -3
- package/es/vef-filter/components/advanced-filter.js +4 -4
- package/es/vef-filter/components/basic-filter.js +5 -5
- package/es/vef-filter/components/fields/index.js +1 -1
- package/es/vef-filter/components/fields/input-number.js +2 -2
- package/es/vef-filter/components/fields/input.js +2 -2
- package/es/vef-filter/components/filter-field.js +2 -2
- package/es/vef-filter/components/filter-item.js +2 -2
- package/es/vef-filter/event.js +2 -2
- package/es/vef-filter/helper.js +2 -2
- package/es/vef-filter/hooks/use-action-handlers.js +2 -2
- package/es/vef-filter/hooks/use-computed-values.js +2 -2
- package/es/vef-filter/hooks/use-filter-context.js +1 -1
- package/es/vef-filter/hooks/use-filter-initialization.js +2 -2
- package/es/vef-filter/hooks/use-filter-instance.js +2 -2
- package/es/vef-filter/hooks/use-filter-items.js +2 -2
- package/es/vef-filter/hooks/use-filter-values-change.js +2 -2
- package/es/vef-filter/hooks/use-label-config.js +2 -2
- package/es/vef-filter/index.js +3 -3
- package/es/vef-filter/store.js +1 -1
- package/es/vef-flex/index.js +2 -2
- package/es/vef-float-button/index.js +2 -2
- package/es/vef-float-button-group/index.js +2 -2
- package/es/vef-form/components/fields/index.js +1 -1
- package/es/vef-form/components/fields/input-number.js +2 -2
- package/es/vef-form/components/fields/input.js +2 -2
- package/es/vef-form/components/form-actions.js +3 -3
- package/es/vef-form/components/form-content.js +3 -3
- package/es/vef-form/components/form-field.js +2 -2
- package/es/vef-form/components/form-group.js +3 -3
- package/es/vef-form/components/form-hidden-item.js +2 -2
- package/es/vef-form/components/form-item.js +2 -2
- package/es/vef-form/components/form-row.js +2 -2
- package/es/vef-form/event.js +2 -2
- package/es/vef-form/helper.js +2 -2
- package/es/vef-form/hooks/use-action-handlers.js +2 -2
- package/es/vef-form/hooks/use-columns-layout.js +2 -2
- package/es/vef-form/hooks/use-computed-values.js +2 -2
- package/es/vef-form/hooks/use-form-context.js +1 -1
- package/es/vef-form/hooks/use-form-initialization.js +2 -2
- package/es/vef-form/hooks/use-form-instance.js +2 -2
- package/es/vef-form/hooks/use-form-values-change.js +2 -2
- package/es/vef-form/hooks/use-label-width.js +2 -2
- package/es/vef-form/index.js +3 -3
- package/es/vef-form/store.js +1 -1
- package/es/vef-form/validation-rules.js +2 -2
- package/es/vef-form-drawer/index.js +2 -2
- package/es/vef-form-modal/index.js +2 -2
- package/es/vef-generic-select/index.js +2 -2
- package/es/vef-grid/index.js +4 -4
- package/es/vef-grid/props.js +1 -1
- package/es/vef-grid-item/index.js +2 -2
- package/es/vef-icon/index.js +1 -1
- package/es/vef-icon-select/index.js +4 -4
- package/es/vef-input/hooks/use-input-instance.js +2 -2
- package/es/vef-input/index.js +2 -2
- package/es/vef-input-number/hooks/use-input-number-instance.js +2 -2
- package/es/vef-input-number/index.js +2 -2
- package/es/vef-layout/common-styles.js +1 -1
- package/es/vef-layout/components/content.js +2 -2
- package/es/vef-layout/components/font-size.js +2 -2
- package/es/vef-layout/components/fullscreen.js +2 -2
- package/es/vef-layout/components/header-action-icons.js +7 -7
- package/es/vef-layout/components/header-content.js +2 -2
- package/es/vef-layout/components/header.js +3 -3
- package/es/vef-layout/components/icon-boy.js +2 -2
- package/es/vef-layout/components/icon-girl.js +2 -2
- package/es/vef-layout/components/icon-menu-fold-left.js +2 -2
- package/es/vef-layout/components/icon-menu-unfold-left.js +2 -2
- package/es/vef-layout/components/menu-groups.js +7 -7
- package/es/vef-layout/components/message.js +2 -2
- package/es/vef-layout/components/search.js +2 -2
- package/es/vef-layout/components/sider.js +2 -2
- package/es/vef-layout/components/title.js +3 -3
- package/es/vef-layout/components/user-avatar.js +10 -10
- package/es/vef-layout/hooks/use-layout-context.js +1 -1
- package/es/vef-layout/index.js +3 -3
- package/es/vef-layout/logo.svg.js +1 -1
- package/es/vef-layout/store.js +1 -1
- package/es/vef-loading-placeholder/index.js +3 -3
- package/es/vef-login/index.js +6 -6
- package/es/vef-login/login-icon.js +2 -2
- package/es/vef-menu/index.js +2 -2
- package/es/vef-modal/components/action-button-wrapper.js +2 -2
- package/es/vef-modal/components/button-props.js +1 -1
- package/es/vef-modal/components/cancel-action-button.js +2 -2
- package/es/vef-modal/components/ok-action-button.js +2 -2
- package/es/vef-modal/context.js +1 -1
- package/es/vef-modal/index.js +2 -2
- package/es/vef-not-found/index.js +10 -10
- package/es/vef-not-found/not-found-icon.js +2 -2
- package/es/vef-page/index.js +2 -2
- package/es/vef-pagination/index.js +2 -2
- package/es/vef-pagination/props.js +1 -1
- package/es/vef-paragraph/index.js +2 -2
- package/es/vef-password/hooks/use-password-instance.js +2 -2
- package/es/vef-password/index.js +2 -2
- package/es/vef-popconfirm/index.js +2 -2
- package/es/vef-popover/index.js +1 -1
- package/es/vef-radio/hooks/use-data-options.js +2 -2
- package/es/vef-radio/hooks/use-radio-instance.js +2 -2
- package/es/vef-radio/index.js +3 -3
- package/es/vef-rate/hooks/use-rate-instance.js +2 -2
- package/es/vef-rate/index.js +1 -1
- package/es/vef-responsive-container/index.js +1 -1
- package/es/vef-responsive-item/index.js +1 -1
- package/es/vef-ribbon/index.js +2 -2
- package/es/vef-row/index.js +2 -2
- package/es/vef-scroll-area/components/scrollbar.js +1 -1
- package/es/vef-scroll-area/index.js +1 -1
- package/es/vef-select/components/option.js +2 -2
- package/es/vef-select/hooks/use-data-options.js +2 -2
- package/es/vef-select/hooks/use-field-names.js +2 -2
- package/es/vef-select/hooks/use-render-label.js +3 -3
- package/es/vef-select/hooks/use-render-option.js +2 -2
- package/es/vef-select/hooks/use-select-instance.js +2 -2
- package/es/vef-select/index.js +2 -2
- package/es/vef-slider/hooks/use-slider-instance.js +2 -2
- package/es/vef-slider/index.js +1 -1
- package/es/vef-sortable-list/components/overlay-item.js +3 -3
- package/es/vef-sortable-list/components/sortable-item.js +3 -3
- package/es/vef-sortable-list/hooks/use-merged-items.js +2 -2
- package/es/vef-sortable-list/index.js +2 -2
- package/es/vef-space/index.js +2 -2
- package/es/vef-spin/index.js +2 -2
- package/es/vef-splitter/index.js +2 -2
- package/es/vef-splitter-panel/index.js +2 -2
- package/es/vef-status/index.js +2 -2
- package/es/vef-table/components/columns/bool.js +2 -2
- package/es/vef-table/components/columns/code.js +2 -2
- package/es/vef-table/components/columns/data-dictionary.js +2 -2
- package/es/vef-table/components/columns/enum.js +2 -2
- package/es/vef-table/components/columns/file.js +2 -2
- package/es/vef-table/components/columns/icon.js +2 -2
- package/es/vef-table/components/columns/id.js +2 -2
- package/es/vef-table/components/columns/image.js +2 -2
- package/es/vef-table/components/columns/index.js +1 -1
- package/es/vef-table/components/columns/markdown.js +2 -2
- package/es/vef-table/components/columns/number.js +2 -2
- package/es/vef-table/components/columns/render.js +2 -2
- package/es/vef-table/components/columns/rich-text.js +2 -2
- package/es/vef-table/components/columns/text.js +2 -2
- package/es/vef-table/components/columns-settings.js +2 -2
- package/es/vef-table/components/operation-buttons.js +2 -2
- package/es/vef-table/components/settings-icon.js +3 -3
- package/es/vef-table/components/table-footer.js +2 -2
- package/es/vef-table/helper.js +2 -2
- package/es/vef-table/hooks/use-computed-batch-buttons.js +2 -2
- package/es/vef-table/hooks/use-computed-columns.js +2 -2
- package/es/vef-table/hooks/use-computed-values.js +2 -2
- package/es/vef-table/hooks/use-data.js +2 -2
- package/es/vef-table/hooks/use-default-column-configs.js +2 -2
- package/es/vef-table/hooks/use-display-value.js +2 -2
- package/es/vef-table/hooks/use-helper-columns.js +2 -2
- package/es/vef-table/hooks/use-operation-column-width.js +2 -2
- package/es/vef-table/hooks/use-pagination-props.js +2 -2
- package/es/vef-table/hooks/use-row-props.js +2 -2
- package/es/vef-table/hooks/use-row-selection-config.js +2 -2
- package/es/vef-table/hooks/use-selected-rows.js +2 -2
- package/es/vef-table/hooks/use-table-columns.js +2 -2
- package/es/vef-table/hooks/use-table-context.js +1 -1
- package/es/vef-table/hooks/use-table-instance.js +2 -2
- package/es/vef-table/hooks/use-table-summary.js +2 -2
- package/es/vef-table/hooks/use-table-width.js +2 -2
- package/es/vef-table/index.js +3 -3
- package/es/vef-table/store.js +1 -1
- package/es/vef-tabs/index.js +2 -2
- package/es/vef-tag/index.js +2 -2
- package/es/vef-temporal-picker/helper.js +2 -2
- package/es/vef-temporal-picker/hooks/use-dayjs-value.js +2 -2
- package/es/vef-temporal-picker/hooks/use-temporal-limit.js +2 -2
- package/es/vef-temporal-picker/hooks/use-temporal-picker-instance.js +2 -2
- package/es/vef-temporal-picker/index.js +2 -2
- package/es/vef-temporal-range-picker/helper.js +2 -2
- package/es/vef-temporal-range-picker/hooks/use-dayjs-values.js +2 -2
- package/es/vef-temporal-range-picker/hooks/use-temporal-limit.js +2 -2
- package/es/vef-temporal-range-picker/hooks/use-temporal-range-picker-instance.js +2 -2
- package/es/vef-temporal-range-picker/index.js +2 -2
- package/es/vef-temporal-range-picker/props.js +1 -1
- package/es/vef-text/index.js +2 -2
- package/es/vef-textarea/hooks/use-textarea-instance.js +2 -2
- package/es/vef-textarea/index.js +2 -2
- package/es/vef-title/index.js +4 -4
- package/es/vef-tooltip/index.js +1 -1
- package/es/vef-tree-select/hooks/use-change-handler.js +2 -2
- package/es/vef-tree-select/hooks/use-data-options.js +2 -2
- package/es/vef-tree-select/hooks/use-tree-select-instance.js +2 -2
- package/es/vef-tree-select/index.js +2 -2
- package/es/vef-virtual-grid/index.js +3 -3
- package/es/vef-virtual-list/index.js +2 -2
- package/lib/index.cjs +1 -1
- package/lib/internal/index.cjs +1 -1
- package/lib/internal/modern-normalize.css.cjs +1 -1
- package/lib/internal/utils.cjs +2 -2
- package/lib/vef-access-denied/access-denied-icon.cjs +2 -2
- package/lib/vef-access-denied/index.cjs +3 -3
- package/lib/vef-access-denied/props.cjs +1 -1
- package/lib/vef-action-buttons/index.cjs +2 -2
- package/lib/vef-action-buttons/props.cjs +1 -1
- package/lib/vef-auto-sizer/index.cjs +1 -1
- package/lib/vef-auto-sizer/props.cjs +1 -1
- package/lib/vef-avatar/index.cjs +2 -2
- package/lib/vef-avatar/props.cjs +1 -1
- package/lib/vef-avatar-group/index.cjs +2 -2
- package/lib/vef-avatar-group/props.cjs +1 -1
- package/lib/vef-badge/index.cjs +2 -2
- package/lib/vef-badge/props.cjs +1 -1
- package/lib/vef-bool/hooks/use-bool-instance.cjs +2 -2
- package/lib/vef-bool/index.cjs +2 -2
- package/lib/vef-bool/props.cjs +1 -1
- package/lib/vef-breadcrumb/index.cjs +2 -2
- package/lib/vef-breadcrumb/props.cjs +1 -1
- package/lib/vef-button/components/base-button.cjs +1 -1
- package/lib/vef-button/index.cjs +1 -1
- package/lib/vef-button/props.cjs +1 -1
- package/lib/vef-card/index.cjs +2 -2
- package/lib/vef-card/props.cjs +1 -1
- package/lib/vef-card-meta/index.cjs +2 -2
- package/lib/vef-card-meta/props.cjs +1 -1
- package/lib/vef-checkbox/hooks/use-checkbox-instance.cjs +2 -2
- package/lib/vef-checkbox/hooks/use-data-options.cjs +2 -2
- package/lib/vef-checkbox/index.cjs +4 -4
- package/lib/vef-checkbox/props.cjs +1 -1
- package/lib/vef-col/index.cjs +2 -2
- package/lib/vef-col/props.cjs +1 -1
- package/lib/vef-color-picker/index.cjs +2 -2
- package/lib/vef-color-picker/props.cjs +1 -1
- package/lib/vef-compact/index.cjs +2 -2
- package/lib/vef-compact/props.cjs +1 -1
- package/lib/vef-config-provider/global-style.cjs +1 -1
- package/lib/vef-config-provider/hooks/use-ui-config.cjs +2 -2
- package/lib/vef-config-provider/index.cjs +4 -4
- package/lib/vef-config-provider/props.cjs +1 -1
- package/lib/vef-config-provider/store.cjs +1 -1
- package/lib/vef-container/index.cjs +2 -2
- package/lib/vef-container/props.cjs +1 -1
- package/lib/vef-crud-page/components/crud-actions.cjs +2 -2
- package/lib/vef-crud-page/components/crud-filter.cjs +2 -2
- package/lib/vef-crud-page/components/crud-footer.cjs +4 -4
- package/lib/vef-crud-page/components/crud-form-modal.cjs +2 -2
- package/lib/vef-crud-page/components/crud-header.cjs +2 -2
- package/lib/vef-crud-page/components/crud-table.cjs +2 -2
- package/lib/vef-crud-page/hooks/use-action-buttons.cjs +2 -2
- package/lib/vef-crud-page/hooks/use-crud-context.cjs +2 -2
- package/lib/vef-crud-page/hooks/use-crud-schema.cjs +2 -2
- package/lib/vef-crud-page/hooks/use-operation-buttons.cjs +2 -2
- package/lib/vef-crud-page/index.cjs +2 -2
- package/lib/vef-crud-page/props.cjs +1 -1
- package/lib/vef-crud-page/store.cjs +1 -1
- package/lib/vef-crud-page/types.cjs +1 -1
- package/lib/vef-divider/index.cjs +2 -2
- package/lib/vef-divider/props.cjs +1 -1
- package/lib/vef-drawer/components/action-button-wrapper.cjs +2 -2
- package/lib/vef-drawer/components/button-props.cjs +1 -1
- package/lib/vef-drawer/components/cancel-action-button.cjs +2 -2
- package/lib/vef-drawer/components/ok-action-button.cjs +2 -2
- package/lib/vef-drawer/context.cjs +1 -1
- package/lib/vef-drawer/index.cjs +2 -2
- package/lib/vef-drawer/props.cjs +1 -1
- package/lib/vef-dropdown/index.cjs +2 -2
- package/lib/vef-dropdown/props.cjs +1 -1
- package/lib/vef-dynamic-icon/index.cjs +2 -2
- package/lib/vef-dynamic-icon/props.cjs +1 -1
- package/lib/vef-empty/index.cjs +2 -2
- package/lib/vef-empty/props.cjs +1 -1
- package/lib/vef-empty-placeholder/index.cjs +5 -5
- package/lib/vef-empty-placeholder/props.cjs +1 -1
- package/lib/vef-error/error-icon.cjs +2 -2
- package/lib/vef-error/index.cjs +2 -2
- package/lib/vef-error/props.cjs +1 -1
- package/lib/vef-filter/components/action-buttons.cjs +2 -2
- package/lib/vef-filter/components/advanced-filter.cjs +4 -4
- package/lib/vef-filter/components/basic-filter.cjs +2 -2
- package/lib/vef-filter/components/fields/index.cjs +1 -1
- package/lib/vef-filter/components/fields/input-number.cjs +2 -2
- package/lib/vef-filter/components/fields/input.cjs +2 -2
- package/lib/vef-filter/components/fields/props.cjs +1 -1
- package/lib/vef-filter/components/filter-field.cjs +2 -2
- package/lib/vef-filter/components/filter-item.cjs +2 -2
- package/lib/vef-filter/event.cjs +2 -2
- package/lib/vef-filter/helper.cjs +2 -2
- package/lib/vef-filter/hooks/use-action-handlers.cjs +2 -2
- package/lib/vef-filter/hooks/use-computed-values.cjs +2 -2
- package/lib/vef-filter/hooks/use-filter-context.cjs +1 -1
- package/lib/vef-filter/hooks/use-filter-initialization.cjs +2 -2
- package/lib/vef-filter/hooks/use-filter-instance.cjs +2 -2
- package/lib/vef-filter/hooks/use-filter-items.cjs +2 -2
- package/lib/vef-filter/hooks/use-filter-values-change.cjs +2 -2
- package/lib/vef-filter/hooks/use-label-config.cjs +2 -2
- package/lib/vef-filter/index.cjs +3 -3
- package/lib/vef-filter/props.cjs +1 -1
- package/lib/vef-filter/store.cjs +1 -1
- package/lib/vef-filter/types.cjs +1 -1
- package/lib/vef-flex/index.cjs +2 -2
- package/lib/vef-flex/props.cjs +1 -1
- package/lib/vef-float-button/index.cjs +2 -2
- package/lib/vef-float-button/props.cjs +1 -1
- package/lib/vef-float-button-group/index.cjs +2 -2
- package/lib/vef-float-button-group/props.cjs +1 -1
- package/lib/vef-form/components/fields/index.cjs +1 -1
- package/lib/vef-form/components/fields/input-number.cjs +2 -2
- package/lib/vef-form/components/fields/input.cjs +2 -2
- package/lib/vef-form/components/fields/props.cjs +1 -1
- package/lib/vef-form/components/form-actions.cjs +3 -3
- package/lib/vef-form/components/form-content.cjs +2 -2
- package/lib/vef-form/components/form-field.cjs +2 -2
- package/lib/vef-form/components/form-group.cjs +3 -3
- package/lib/vef-form/components/form-hidden-item.cjs +2 -2
- package/lib/vef-form/components/form-item.cjs +2 -2
- package/lib/vef-form/components/form-row.cjs +2 -2
- package/lib/vef-form/event.cjs +2 -2
- package/lib/vef-form/helper.cjs +2 -2
- package/lib/vef-form/hooks/use-action-handlers.cjs +2 -2
- package/lib/vef-form/hooks/use-columns-layout.cjs +2 -2
- package/lib/vef-form/hooks/use-computed-values.cjs +2 -2
- package/lib/vef-form/hooks/use-form-context.cjs +1 -1
- package/lib/vef-form/hooks/use-form-initialization.cjs +2 -2
- package/lib/vef-form/hooks/use-form-instance.cjs +2 -2
- package/lib/vef-form/hooks/use-form-values-change.cjs +2 -2
- package/lib/vef-form/hooks/use-label-width.cjs +2 -2
- package/lib/vef-form/index.cjs +3 -3
- package/lib/vef-form/props.cjs +1 -1
- package/lib/vef-form/store.cjs +1 -1
- package/lib/vef-form/types.cjs +1 -1
- package/lib/vef-form/validation-rules.cjs +2 -2
- package/lib/vef-form-drawer/index.cjs +2 -2
- package/lib/vef-form-drawer/props.cjs +1 -1
- package/lib/vef-form-modal/index.cjs +2 -2
- package/lib/vef-form-modal/props.cjs +1 -1
- package/lib/vef-generic-select/index.cjs +2 -2
- package/lib/vef-generic-select/props.cjs +1 -1
- package/lib/vef-grid/index.cjs +2 -2
- package/lib/vef-grid/props.cjs +1 -1
- package/lib/vef-grid-item/index.cjs +2 -2
- package/lib/vef-grid-item/props.cjs +1 -1
- package/lib/vef-icon/index.cjs +1 -1
- package/lib/vef-icon/props.cjs +1 -1
- package/lib/vef-icon-select/index.cjs +5 -5
- package/lib/vef-icon-select/props.cjs +1 -1
- package/lib/vef-input/hooks/use-input-instance.cjs +2 -2
- package/lib/vef-input/index.cjs +2 -2
- package/lib/vef-input/props.cjs +1 -1
- package/lib/vef-input-number/hooks/use-input-number-instance.cjs +2 -2
- package/lib/vef-input-number/index.cjs +2 -2
- package/lib/vef-input-number/props.cjs +1 -1
- package/lib/vef-layout/common-styles.cjs +1 -1
- package/lib/vef-layout/components/content.cjs +2 -2
- package/lib/vef-layout/components/font-size.cjs +2 -2
- package/lib/vef-layout/components/fullscreen.cjs +2 -2
- package/lib/vef-layout/components/header-action-icons.cjs +3 -3
- package/lib/vef-layout/components/header-content.cjs +2 -2
- package/lib/vef-layout/components/header.cjs +3 -3
- package/lib/vef-layout/components/icon-boy.cjs +2 -2
- package/lib/vef-layout/components/icon-girl.cjs +2 -2
- package/lib/vef-layout/components/icon-menu-fold-left.cjs +2 -2
- package/lib/vef-layout/components/icon-menu-unfold-left.cjs +2 -2
- package/lib/vef-layout/components/menu-groups.cjs +6 -6
- package/lib/vef-layout/components/message.cjs +2 -2
- package/lib/vef-layout/components/search.cjs +2 -2
- package/lib/vef-layout/components/sider.cjs +2 -2
- package/lib/vef-layout/components/title.cjs +2 -2
- package/lib/vef-layout/components/user-avatar.cjs +8 -8
- package/lib/vef-layout/hooks/use-layout-context.cjs +1 -1
- package/lib/vef-layout/index.cjs +2 -2
- package/lib/vef-layout/logo.svg.cjs +1 -1
- package/lib/vef-layout/props.cjs +1 -1
- package/lib/vef-layout/store.cjs +1 -1
- package/lib/vef-loading-placeholder/index.cjs +6 -6
- package/lib/vef-loading-placeholder/props.cjs +1 -1
- package/lib/vef-login/index.cjs +10 -10
- package/lib/vef-login/login-icon.cjs +2 -2
- package/lib/vef-login/props.cjs +1 -1
- package/lib/vef-menu/index.cjs +2 -2
- package/lib/vef-menu/props.cjs +1 -1
- package/lib/vef-modal/components/action-button-wrapper.cjs +2 -2
- package/lib/vef-modal/components/button-props.cjs +1 -1
- package/lib/vef-modal/components/cancel-action-button.cjs +2 -2
- package/lib/vef-modal/components/ok-action-button.cjs +2 -2
- package/lib/vef-modal/context.cjs +1 -1
- package/lib/vef-modal/index.cjs +2 -2
- package/lib/vef-modal/props.cjs +1 -1
- package/lib/vef-not-found/index.cjs +2 -2
- package/lib/vef-not-found/not-found-icon.cjs +2 -2
- package/lib/vef-not-found/props.cjs +1 -1
- package/lib/vef-page/index.cjs +2 -2
- package/lib/vef-page/props.cjs +1 -1
- package/lib/vef-pagination/index.cjs +2 -2
- package/lib/vef-pagination/props.cjs +1 -1
- package/lib/vef-paragraph/index.cjs +2 -2
- package/lib/vef-paragraph/props.cjs +1 -1
- package/lib/vef-password/hooks/use-password-instance.cjs +2 -2
- package/lib/vef-password/index.cjs +2 -2
- package/lib/vef-password/props.cjs +1 -1
- package/lib/vef-popconfirm/index.cjs +2 -2
- package/lib/vef-popconfirm/props.cjs +1 -1
- package/lib/vef-popover/index.cjs +1 -1
- package/lib/vef-popover/props.cjs +1 -1
- package/lib/vef-radio/hooks/use-data-options.cjs +2 -2
- package/lib/vef-radio/hooks/use-radio-instance.cjs +2 -2
- package/lib/vef-radio/index.cjs +3 -3
- package/lib/vef-radio/props.cjs +1 -1
- package/lib/vef-rate/hooks/use-rate-instance.cjs +2 -2
- package/lib/vef-rate/index.cjs +1 -1
- package/lib/vef-rate/props.cjs +1 -1
- package/lib/vef-responsive-container/index.cjs +1 -1
- package/lib/vef-responsive-container/props.cjs +1 -1
- package/lib/vef-responsive-item/index.cjs +1 -1
- package/lib/vef-responsive-item/props.cjs +1 -1
- package/lib/vef-ribbon/index.cjs +2 -2
- package/lib/vef-ribbon/props.cjs +1 -1
- package/lib/vef-row/index.cjs +2 -2
- package/lib/vef-row/props.cjs +1 -1
- package/lib/vef-scroll-area/components/scrollbar.cjs +1 -1
- package/lib/vef-scroll-area/index.cjs +1 -1
- package/lib/vef-scroll-area/props.cjs +1 -1
- package/lib/vef-select/components/option.cjs +3 -3
- package/lib/vef-select/hooks/use-data-options.cjs +2 -2
- package/lib/vef-select/hooks/use-field-names.cjs +2 -2
- package/lib/vef-select/hooks/use-render-label.cjs +2 -2
- package/lib/vef-select/hooks/use-render-option.cjs +2 -2
- package/lib/vef-select/hooks/use-select-instance.cjs +2 -2
- package/lib/vef-select/index.cjs +2 -2
- package/lib/vef-select/props.cjs +1 -1
- package/lib/vef-slider/hooks/use-slider-instance.cjs +2 -2
- package/lib/vef-slider/index.cjs +1 -1
- package/lib/vef-slider/props.cjs +1 -1
- package/lib/vef-sortable-list/components/overlay-item.cjs +3 -3
- package/lib/vef-sortable-list/components/sortable-item.cjs +3 -3
- package/lib/vef-sortable-list/hooks/use-merged-items.cjs +2 -2
- package/lib/vef-sortable-list/index.cjs +2 -2
- package/lib/vef-sortable-list/props.cjs +1 -1
- package/lib/vef-space/index.cjs +2 -2
- package/lib/vef-space/props.cjs +1 -1
- package/lib/vef-spin/index.cjs +2 -2
- package/lib/vef-spin/props.cjs +1 -1
- package/lib/vef-splitter/index.cjs +2 -2
- package/lib/vef-splitter/props.cjs +1 -1
- package/lib/vef-splitter-panel/index.cjs +2 -2
- package/lib/vef-splitter-panel/props.cjs +1 -1
- package/lib/vef-status/index.cjs +2 -2
- package/lib/vef-status/props.cjs +1 -1
- package/lib/vef-table/components/columns/bool.cjs +2 -2
- package/lib/vef-table/components/columns/code.cjs +2 -2
- package/lib/vef-table/components/columns/data-dictionary.cjs +2 -2
- package/lib/vef-table/components/columns/enum.cjs +2 -2
- package/lib/vef-table/components/columns/file.cjs +2 -2
- package/lib/vef-table/components/columns/icon.cjs +2 -2
- package/lib/vef-table/components/columns/id.cjs +2 -2
- package/lib/vef-table/components/columns/image.cjs +2 -2
- package/lib/vef-table/components/columns/index.cjs +1 -1
- package/lib/vef-table/components/columns/markdown.cjs +2 -2
- package/lib/vef-table/components/columns/number.cjs +2 -2
- package/lib/vef-table/components/columns/props.cjs +1 -1
- package/lib/vef-table/components/columns/render.cjs +2 -2
- package/lib/vef-table/components/columns/rich-text.cjs +2 -2
- package/lib/vef-table/components/columns/text.cjs +2 -2
- package/lib/vef-table/components/columns-settings.cjs +2 -2
- package/lib/vef-table/components/operation-buttons.cjs +3 -3
- package/lib/vef-table/components/settings-icon.cjs +4 -4
- package/lib/vef-table/components/table-footer.cjs +2 -2
- package/lib/vef-table/helper.cjs +2 -2
- package/lib/vef-table/hooks/use-computed-batch-buttons.cjs +2 -2
- package/lib/vef-table/hooks/use-computed-columns.cjs +2 -2
- package/lib/vef-table/hooks/use-computed-values.cjs +2 -2
- package/lib/vef-table/hooks/use-data.cjs +2 -2
- package/lib/vef-table/hooks/use-default-column-configs.cjs +2 -2
- package/lib/vef-table/hooks/use-display-value.cjs +2 -2
- package/lib/vef-table/hooks/use-helper-columns.cjs +2 -2
- package/lib/vef-table/hooks/use-operation-column-width.cjs +2 -2
- package/lib/vef-table/hooks/use-pagination-props.cjs +2 -2
- package/lib/vef-table/hooks/use-row-props.cjs +2 -2
- package/lib/vef-table/hooks/use-row-selection-config.cjs +2 -2
- package/lib/vef-table/hooks/use-selected-rows.cjs +2 -2
- package/lib/vef-table/hooks/use-table-columns.cjs +2 -2
- package/lib/vef-table/hooks/use-table-context.cjs +1 -1
- package/lib/vef-table/hooks/use-table-instance.cjs +2 -2
- package/lib/vef-table/hooks/use-table-summary.cjs +2 -2
- package/lib/vef-table/hooks/use-table-width.cjs +2 -2
- package/lib/vef-table/index.cjs +3 -3
- package/lib/vef-table/props.cjs +1 -1
- package/lib/vef-table/store.cjs +1 -1
- package/lib/vef-table/types.cjs +1 -1
- package/lib/vef-tabs/index.cjs +2 -2
- package/lib/vef-tabs/props.cjs +1 -1
- package/lib/vef-tag/index.cjs +2 -2
- package/lib/vef-tag/props.cjs +1 -1
- package/lib/vef-temporal-picker/helper.cjs +2 -2
- package/lib/vef-temporal-picker/hooks/use-dayjs-value.cjs +2 -2
- package/lib/vef-temporal-picker/hooks/use-temporal-limit.cjs +2 -2
- package/lib/vef-temporal-picker/hooks/use-temporal-picker-instance.cjs +2 -2
- package/lib/vef-temporal-picker/index.cjs +2 -2
- package/lib/vef-temporal-picker/props.cjs +1 -1
- package/lib/vef-temporal-range-picker/helper.cjs +2 -2
- package/lib/vef-temporal-range-picker/hooks/use-dayjs-values.cjs +2 -2
- package/lib/vef-temporal-range-picker/hooks/use-temporal-limit.cjs +2 -2
- package/lib/vef-temporal-range-picker/hooks/use-temporal-range-picker-instance.cjs +2 -2
- package/lib/vef-temporal-range-picker/index.cjs +2 -2
- package/lib/vef-temporal-range-picker/props.cjs +1 -1
- package/lib/vef-text/index.cjs +2 -2
- package/lib/vef-text/props.cjs +1 -1
- package/lib/vef-textarea/hooks/use-textarea-instance.cjs +2 -2
- package/lib/vef-textarea/index.cjs +2 -2
- package/lib/vef-textarea/props.cjs +1 -1
- package/lib/vef-title/index.cjs +2 -2
- package/lib/vef-title/props.cjs +1 -1
- package/lib/vef-tooltip/index.cjs +1 -1
- package/lib/vef-tooltip/props.cjs +1 -1
- package/lib/vef-tree-select/hooks/use-change-handler.cjs +2 -2
- package/lib/vef-tree-select/hooks/use-data-options.cjs +2 -2
- package/lib/vef-tree-select/hooks/use-tree-select-instance.cjs +2 -2
- package/lib/vef-tree-select/index.cjs +2 -2
- package/lib/vef-tree-select/props.cjs +1 -1
- package/lib/vef-virtual-grid/index.cjs +2 -2
- package/lib/vef-virtual-grid/props.cjs +1 -1
- package/lib/vef-virtual-list/index.cjs +2 -2
- package/lib/vef-virtual-list/props.cjs +1 -1
- package/package.json +4 -4
- package/types/vef-config-provider/hooks/use-ui-config.d.ts +0 -1
- package/types/vef-crud-page/components/crud-filter.d.ts +1 -1
- package/types/vef-crud-page/components/crud-footer.d.ts +1 -1
- package/types/vef-crud-page/components/crud-form-modal.d.ts +1 -1
- package/types/vef-crud-page/components/crud-header.d.ts +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{isNullish as e,isFunction as r}from"@vef-framework/shared";import{useMemo as
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{isNullish as e,isFunction as r}from"@vef-framework/shared";import{useMemo as t}from"react";function useFilterInitialization(a,i){return t((()=>{const t={...i},n={},o=[];for(const i of a){const{name:a,onChange:l,defaultValue:u,virtual:s}=i;!e(u)&&e(t[a])&&(t[a]=u),r(l)&&(n[a]=l),!0===s&&o.push(a)}return{mergedInitialValues:t,valueChangeHandlers:n,virtualFieldNames:o}}),[])}export{useFilterInitialization};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{useImperativeHandle as e}from"react";import{useFilterStore as t}from"../store.js";function
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{useImperativeHandle as e}from"react";import{useFilterStore as t}from"../store.js";function useFilterInstance(s,o){const[r,u,n,i]=t((e=>[e.form,e.eventBus,e.getValues,e.setValues]));e(s,(()=>({confirm:()=>new Promise(((e,t)=>{const handleResult=s=>{u.offSubmitResult(handleResult),s?e():t(s)};u.onSubmitResult(handleResult),r.submit()})),reset:o,getValues:n,setValues:i})))}export{useFilterInstance};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{useMemo as t}from"react";function
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{useMemo as t}from"react";function useFilterItems(e){return t((()=>{const t=[],s=[];for(const r of e){const{advanced:e=!1}=r;e?s.push(r):t.push(r)}return{basicItems:t,advancedItems:s}}),[])}export{useFilterItems};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{isFunction as e}from"@vef-framework/shared";import{useMemo as r,useEffect as n,useLayoutEffect as
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{isFunction as e}from"@vef-framework/shared";import{useMemo as r,useEffect as n,useLayoutEffect as a}from"react";import{useFilterStore as o}from"../store.js";function useFilterValuesChange(t){const[s,u]=o((e=>[e.eventBus,e.invokeValueChangeHandlers])),f=r((()=>(e,r)=>{s.emitChange(r)}),[s]);return n((()=>{if(e(t)){const handleChange=e=>{t(e)};return s.onChange(handleChange),()=>{s.offChange(handleChange)}}}),[s,t]),a((()=>{u()}),[]),{handleValuesChange:f}}export{useFilterValuesChange};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{showWarningMessage as e}from"@vef-framework/shared";import{useMemo as t}from"react";function
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{showWarningMessage as e}from"@vef-framework/shared";import{useMemo as t}from"react";function useLabelConfig(o,r){const i=t((()=>{if("top"!==o&&r)return(r<60||r>120)&&e("The labelWidth of VefFilter component must be between 60 and 120, otherwise it will be 60 or 120."),Math.min(Math.max(r,60),120)}),[o,r]);return{labelCol:t((()=>{if(i)return{flex:`0 0 ${i}px`}}),[i]),labelWidthToUse:i}}export{useLabelConfig};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/es/vef-filter/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as e,jsxs as i}from"@emotion/react/jsx-runtime";import{css as o}from"@emotion/react";import{useContextDisabled as t,DisabledContextProvider as n,useSingleton as r,useUnmount as a}from"@vef-framework/hooks";import{isDeepEqual as s,omit as l}from"@vef-framework/shared";import{Form as m}from"antd";import{AnimatePresence as f}from"motion/react";import{useMemo as c,forwardRef as d,memo as u}from"react";import"../internal/index.js";import h from"./components/advanced-filter.js";import p from"./components/basic-filter.js";import{FilterEventBus as g}from"./event.js";import{useActionHandlers as v}from"./hooks/use-action-handlers.js";import{FilterContextProvider as
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{jsx as e,jsxs as i}from"@emotion/react/jsx-runtime";import{css as o}from"@emotion/react";import{useContextDisabled as t,DisabledContextProvider as n,useSingleton as r,useUnmount as a}from"@vef-framework/hooks";import{isDeepEqual as s,omit as l}from"@vef-framework/shared";import{Form as m}from"antd";import{AnimatePresence as f}from"motion/react";import{useMemo as c,forwardRef as d,memo as u}from"react";import"../internal/index.js";import h from"./components/advanced-filter.js";import p from"./components/basic-filter.js";import{FilterEventBus as g}from"./event.js";import{useActionHandlers as v}from"./hooks/use-action-handlers.js";import{FilterContextProvider as V}from"./hooks/use-filter-context.js";import{useFilterInitialization as j}from"./hooks/use-filter-initialization.js";import{useFilterInstance as b}from"./hooks/use-filter-instance.js";import{useFilterItems as B}from"./hooks/use-filter-items.js";import{useFilterValuesChange as C}from"./hooks/use-filter-values-change.js";import{useFilterStore as F,FilterStoreProvider as k}from"./store.js";import{convertBasicSizeToUiSize as x}from"../internal/utils.js";const{useForm:w}=m,A=o`
|
|
3
3
|
display: block;
|
|
4
4
|
flex-wrap: unset;
|
|
5
5
|
|
|
6
6
|
.vef-form-item {
|
|
7
7
|
margin-inline-end: 0;
|
|
8
8
|
}
|
|
9
|
-
`;const y=d((function({schema:o,labelPosition:r="top",labelAlign:a="right",labelWidth:s,disabled:l=!1,loading:d=!1,size:u,variant:g,prefix:
|
|
9
|
+
`;const y=d((function VefFilterBase({schema:o,labelPosition:r="top",labelAlign:a="right",labelWidth:s,disabled:l=!1,loading:d=!1,size:u,variant:g,prefix:j,confirmationButton:k,resetButton:w,extraActionButtons:y,onBeforeConfirm:N,onConfirm:R,onReset:z,onChange:I},W){const[H,L,P,S]=F((e=>[e.form,e.initialValues,e.isLoading,e.isAdvancedFilterVisible])),{handleReset:q,handleConfirm:D,handleConfirmFailed:E}=v({onBeforeConfirm:N,onConfirm:R,onReset:z}),{basicItems:G,advancedItems:J}=B(o),K=c((()=>({labelPosition:r,labelAlign:a,labelWidth:s,confirmationButton:k,externalLoading:d,showCollapseButton:J.length>0,handleReset:q,resetButton:w,extraActionButtons:y})),[J.length,k,y,q,a,r,s,d,w]),{handleValuesChange:M}=C(I);b(W,q);const O=t()||l||d||P;return e(m,{colon:!1,css:A,disabled:O,form:H,initialValues:L,layout:"inline",size:x(u),variant:g,onFinish:D,onFinishFailed:E,onValuesChange:M,children:e(n,{value:O,children:i(V,{value:K,children:[e(p,{items:G,prefix:j}),e(f,{children:S&&J.length>0&&e(h,{items:J})})]})})})}));y.displayName="VefFilterBase";const N=u(d((function VefFilterWrapper({initialValues:i,...o},t){const{schema:n}=o,[s]=w(),l=r((()=>new g));a((()=>{l.clear()}));const{mergedInitialValues:m,valueChangeHandlers:f,virtualFieldNames:d}=j(n,i),u=c((()=>({eventBus:l,form:s,initialValues:m,valueChangeHandlers:f,virtualFieldNames:d})),[l,s,m,f,d]);return e(k,{initialState:u,children:e(y,{ref:t,...o})})})),((e,i)=>s(l(e,["initialValues","schema"]),l(i,["initialValues","schema"]))));N.displayName="VefFilter";export{N as default};
|
|
10
10
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/es/vef-filter/store.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
2
|
import{createComponentStore as e,isDeepEqual as s}from"@vef-framework/shared";const{StoreProvider:i,useStore:l,useStoreApi:t}=e("Filter",(e=>(i,l)=>({isAdvancedFilterVisible:!1,setIsAdvancedFilterVisible:e=>{i({isAdvancedFilterVisible:e})},isLoading:!1,setIsLoading:e=>{i({isLoading:e})},invokeValueChangeHandlers:(e,s)=>{const{valueChangeHandlers:i,initialValues:t,setValues:a}=l(),n=e??t,r=s?new Set(s):null;for(const[e,s]of Object.entries(i))r&&!r.has(e)||s(n[e]??null,{values:n,setValues:a})},getValues:()=>{const{form:e,initialValues:s}=l();return e.isFieldsTouched(!0)?s:e.getFieldsValue()},setValues:e=>{const{form:i,eventBus:t,invokeValueChangeHandlers:a}=l(),n=i.getFieldsValue(),r=Object.keys(e).filter((i=>!s(e[i],n[i])));i.setFieldsValue(e);const o=i.getFieldsValue();t.emitChange(o),a(o,r)},...e})));export{i as FilterStoreProvider,l as useFilterStore,t as useFilterStoreApi};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/es/vef-flex/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as r}from"@emotion/react/jsx-runtime";import{useGapSizeNormalizer as o}from"@vef-framework/hooks";import{isArray as
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{jsx as r}from"@emotion/react/jsx-runtime";import{useGapSizeNormalizer as o}from"@vef-framework/hooks";import{isArray as e}from"@vef-framework/shared";import{Flex as t}from"antd";import{useMemo as m}from"react";function VefFlex({gap:f,...a}){const i=o(),n=m((()=>e(f)?[i(f[0]),i(f[1])].join(" "):f?i(f):f),[f,i]);return r(t,{gap:n,...a})}export{VefFlex as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as o}from"@emotion/react/jsx-runtime";import{useColorTokens as t}from"@vef-framework/hooks";import{FloatButton as r}from"antd";import{useMemo as e}from"react";function
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{jsx as o}from"@emotion/react/jsx-runtime";import{useColorTokens as t}from"@vef-framework/hooks";import{FloatButton as r}from"antd";import{useMemo as e}from"react";function VefFloatButton({appearance:n,tip:a,badge:f,...i}){const u=t(),c=e((()=>{if(!f)return;const{variant:o,count:t,overflowCount:r,showZero:e,color:n}=f;return"dot"===o?{dot:!0,color:n?u.get(n):void 0}:{count:t,overflowCount:r,showZero:e,color:n?u.get(n):void 0}}),[f,u]);return o(r,{badge:c,tooltip:a,type:n,...i})}export{VefFloatButton as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{jsx as t}from"@emotion/react/jsx-runtime";import{FloatButton as o}from"antd";const{Group:r}=o;function VefFloatButtonGroup({collapsable:o=!1,trigger:e="click",...i}){return t(r,{trigger:o?e:void 0,...i})}export{VefFloatButtonGroup as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
2
|
import p from"./input.js";import r from"./input-number.js";const t={Input:p,InputNumber:r};export{t as fieldMap};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import{VefError as o,isString as
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{jsx as e}from"@emotion/react/jsx-runtime";import{VefError as o,isString as r,isFunction as s}from"@vef-framework/shared";import{useMemo as n}from"react";import t from"../../../vef-input-number/index.js";import{useComputedValues as u}from"../../hooks/use-computed-values.js";import{useFormStore as a}from"../../store.js";function InputNumber({label:l,disabled:i,value:m,onChange:f,componentProps:p}){if("InputNumber"!==p.type)throw new o(-9,'Oops! Something went wrong. The type of the form field is not "InputNumber", but rendered.');const{onChange:c,onEnterKeyPress:d,onFocus:V,onBlur:h,placeholder:x,prefix:v,suffix:w,max:b,min:g}=p,[y,k,F]=a((e=>[e.form,e.scene,e.setValues])),[j,I,N,C,P]=u([{key:"placeholder",rawValue:x,defaultValue:l?r(l)?`请输入${l}`:"请输入":void 0},{key:"max",rawValue:b},{key:"min",rawValue:g},{key:"prefix",rawValue:v},{key:"suffix",rawValue:w}]),B=n((()=>{const e={};return s(V)&&(e.onFocus=e=>{const o=y.getFieldsValue();V(e,{scene:k,values:o,setValues:F})}),s(h)&&(e.onBlur=e=>{const o=y.getFieldsValue();h(e,{scene:k,values:o,setValues:F})}),e.onChange=e=>{if(f?.(e),s(c)){const o=y.getFieldsValue();c(e,{scene:k,values:o,setValues:F})}},s(d)&&(e.onPressEnter=e=>{const o=y.getFieldsValue();d(e,{scene:k,values:o,setValues:F})}),e}),[y,h,f,d,V,c,k,F]);return e(t,{disabled:i,max:I,min:N,placeholder:j,prefix:C,suffix:P,value:m,...B})}export{InputNumber as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import{VefError as s,isString as o,isFunction as
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{jsx as e}from"@emotion/react/jsx-runtime";import{VefError as s,isString as o,isFunction as t}from"@vef-framework/shared";import{useMemo as a}from"react";import n from"../../../vef-input/index.js";import{useComputedValues as r}from"../../hooks/use-computed-values.js";import{useFormStore as l}from"../../store.js";function Input({label:u,disabled:i,value:f,onChange:c,componentProps:p}){if("Input"!==p.type)throw new s(-9,'Oops! Something went wrong. The type of the form field is not "Input", but rendered.');const{onChange:m,onEnterKeyPress:d,onFocus:V,onBlur:h,onClear:g,maxLength:x,clearable:v=!1,placeholder:w,prefix:y,suffix:F}=p,[b,k,C]=l((e=>[e.form,e.scene,e.setValues])),[j,I,L,P]=r([{key:"placeholder",rawValue:w,defaultValue:u?o(u)?`请输入${u}`:"请输入":void 0},{key:"maxLength",rawValue:x},{key:"prefix",rawValue:y},{key:"suffix",rawValue:F}]),B=a((()=>{const e={};return t(V)&&(e.onFocus=e=>{const s=b.getFieldsValue();V(e,{scene:k,values:s,setValues:C})}),t(h)&&(e.onBlur=e=>{const s=b.getFieldsValue();h(e,{scene:k,values:s,setValues:C})}),e.onChange=e=>{if(c?.(e),t(m)){const s=b.getFieldsValue();m(e,{scene:k,values:s,setValues:C})}},t(d)&&(e.onPressEnter=e=>{const s=b.getFieldsValue();d(e,{scene:k,values:s,setValues:C})}),v&&t(g)&&(e.onClear=()=>{const e=b.getFieldsValue();g({scene:k,values:e,setValues:C})}),e}),[v,b,h,c,g,d,V,m,k,C]);return e(n,{clearable:v,disabled:i,maxLength:I,placeholder:j,prefix:L,suffix:P,value:f,...B})}export{Input as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as t,jsxs as o}from"@emotion/react/jsx-runtime";import{CheckOutlined as e}from"@ant-design/icons";import{css as r}from"@emotion/react";import{themeVariables as i,omit as n}from"@vef-framework/shared";import{Form as m}from"antd";import{memo as s}from"react";import
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{jsx as t,jsxs as o}from"@emotion/react/jsx-runtime";import{CheckOutlined as e}from"@ant-design/icons";import{css as r}from"@emotion/react";import{themeVariables as i,omit as n}from"@vef-framework/shared";import{Form as m}from"antd";import{memo as s}from"react";import a from"../../vef-button/index.js";import d from"../../vef-flex/index.js";import{useFormStore as f}from"../store.js";const{Item:c}=m,l={text:"提交",icon:t(e,{})},p={text:"重置"},u=r`
|
|
3
3
|
padding: ${i.padding} 0;
|
|
4
|
-
`;const x=s((function({submissionButton:e=l,resetButton:r=p,handleReset:i}){const[m,s]=f((t=>[t.isLoading,t.showActionButtons]));return s&&(e||r)?t(c,{children:o(
|
|
4
|
+
`;const x=s((function VefFormActionsBase({submissionButton:e=l,resetButton:r=p,handleReset:i}){const[m,s]=f((t=>[t.isLoading,t.showActionButtons]));return s&&(e||r)?t(c,{children:o(d,{css:u,gap:"medium",justify:"flex-end",children:[r&&t(a,{color:"default",variant:"filled",onClick:i,...n(r,["text"]),children:r.text}),e&&t(a,{color:"primary",loading:m,type:"submit",...n(e,["text"]),children:e.text})]})}):null}));x.displayName="VefFormActions";export{x as default};
|
|
5
5
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as e,jsxs as t,Fragment as
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{jsx as e,jsxs as t,Fragment as o}from"@emotion/react/jsx-runtime";import{css as r}from"@emotion/react";import{debounce as i,styles as s,isDeepEqual as l,omit as a}from"@vef-framework/shared";import{useMemo as n,useRef as m,useState as c,useCallback as d,useEffect as f,memo as u}from"react";import h from"../../vef-empty-placeholder/index.js";import p from"../../vef-flex/index.js";import y from"../../vef-scroll-area/index.js";import k from"../../vef-tabs/index.js";import{useComputedValues as w}from"../hooks/use-computed-values.js";import{useFormStore as b}from"../store.js";import g from"./form-group.js";const $=r`
|
|
3
3
|
flex: auto;
|
|
4
4
|
min-height: 0;
|
|
5
|
-
`;const v=u((function({schema:
|
|
5
|
+
`;const v=u((function VefFormContentBase({schema:r,showTabs:l,height:a}){const u=w([...r.map((({key:e,title:t})=>({key:`title-${e}`,rawValue:t}))),...r.map((({key:e,show:t})=>({key:`show-${e}`,rawValue:t,defaultValue:!0}))),...r.map((({key:e,disabled:t})=>({key:`disabled-${e}`,rawValue:t,defaultValue:!1})))],!0),v=n((()=>r.filter((({key:e})=>u[`show-${e}`]))),[u,r]),j=m({}),[x,V]=c(v[0]?.key??0),B=d((e=>{j.current[e]?.scrollIntoView({behavior:"smooth",block:"start",inline:"start"}),V(e)}),[]),C=n((()=>{if("navigation"!==l)return;return i({delay:60},(e=>{const{top:t}=e.target.getBoundingClientRect();for(const[e,o]of Object.entries(j.current))if(o){const{top:r}=o.getBoundingClientRect();r-t<=60&&V(e)}}))}),[l]),[S]=b((e=>[e.setShowActionButtons]));if(f((()=>{S(v.length>0)}),[S,v.length]),0===v.length)return e(h,{description:"空表单"});if("switch"===l){const t=r.map((({key:t,rows:o})=>({key:`${t}`,label:u[`title-${t}`],destroyInactiveTabPane:!1,children:e(g,{disabled:u[`disabled-${t}`],rows:o})})));return e(k,{items:t})}if("navigation"===l)return t(p,{vertical:!0,css:"full"===a?s.fullHeight:void 0,children:[e(k,{activeKey:`${x}`,items:r.map((({key:e})=>({key:`${e}`,label:u[`title-${e}`]}))),onChange:B}),e(y,{css:$,onScroll:C,children:r.map((({key:t,rows:o})=>e(g,{ref:e=>{j.current[t]=e},disabled:u[`disabled-${t}`],rows:o,title:u[`title-${t}`]},t)))})]});const I=r.map((({key:t,rows:o})=>e(g,{disabled:u[`disabled-${t}`],rows:o,title:u[`title-${t}`]},t)));return"full"===a?e(y,{onScroll:C,children:I}):e(o,{children:I})}),((e,t)=>l(a(e,["schema"]),a(t,["schema"]))));export{v as default};
|
|
6
6
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import{VefError as r}from"@vef-framework/shared";import{useMemo as o}from"react";import{fieldMap as t}from"./fields/index.js";function
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{jsx as e}from"@emotion/react/jsx-runtime";import{VefError as r}from"@vef-framework/shared";import{useMemo as o}from"react";import{fieldMap as t}from"./fields/index.js";function VefFormField(n){const{name:f,componentProps:{type:i}}=n,m=o((()=>{if("Hidden"===i)return()=>null;const e=t[i];if(!e)throw new r(-9,`Unknown form field type: "${i}", please check the type of "${f}" field.`);return e}),[f,i]);return e(m,{...n})}export{VefFormField as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsxs as e,jsx as o}from"@emotion/react/jsx-runtime";import{css as r}from"@emotion/react";import{themeVariables as t,isDeepEqual as a,omit as m}from"@vef-framework/shared";import{useMemo as i,memo as s,forwardRef as d}from"react";import l from"../../vef-empty-placeholder/index.js";import n from"../../vef-title/index.js";import{useComputedValues as f}from"../hooks/use-computed-values.js";import p from"./form-row.js";const
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{jsxs as e,jsx as o}from"@emotion/react/jsx-runtime";import{css as r}from"@emotion/react";import{themeVariables as t,isDeepEqual as a,omit as m}from"@vef-framework/shared";import{useMemo as i,memo as s,forwardRef as d}from"react";import l from"../../vef-empty-placeholder/index.js";import n from"../../vef-title/index.js";import{useComputedValues as f}from"../hooks/use-computed-values.js";import p from"./form-row.js";const u=r`
|
|
3
3
|
margin-bottom: ${t.margin};
|
|
4
4
|
|
|
5
5
|
&:last-child {
|
|
@@ -9,5 +9,5 @@ import{jsxs as e,jsx as o}from"@emotion/react/jsx-runtime";import{css as r}from"
|
|
|
9
9
|
.vef-form-group-content {
|
|
10
10
|
padding: 0 2px;
|
|
11
11
|
}
|
|
12
|
-
`;const
|
|
12
|
+
`;const c=s(d((function VefFormGroupBase({title:r,disabled:t,rows:a},m){const s=f([...a.map((({key:e,show:o})=>({key:`show-${e}`,rawValue:o,defaultValue:!0}))),...a.map((({key:e,disabled:o})=>({key:`disabled-${e}`,rawValue:o,defaultValue:t})))],!0),d=i((()=>a.filter((({key:e})=>s[`show-${e}`]))),[s,a]);return e("div",{ref:m,css:u,children:[r&&o(n,{showBottomLine:!0,showLeftBar:!0,level:4,children:r}),o("div",{className:"vef-form-group-content",children:0===d.length?o(l,{description:"空表单组"}):d.map((({key:e,autoExpand:r,columns:t})=>o(p,{autoExpand:r,columns:t,disabled:s[`disabled-${e}`],rowKey:e},e)))})]})})),((e,o)=>a(m(e,["rows"]),m(o,["rows"]))));c.displayName="VefFormGroup";export{c as default};
|
|
13
13
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import{Form as t}from"antd";import{memo as o}from"react";import{useComputedValues as
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{jsx as e}from"@emotion/react/jsx-runtime";import{Form as t}from"antd";import{memo as o}from"react";import{useComputedValues as m}from"../hooks/use-computed-values.js";const{Item:n}=t;const r=o((function VefFormHiddenItemBase({item:t}){const{name:o,show:r}=t,[a]=m([{key:"show",rawValue:r,defaultValue:!0}]);return a?e(n,{hidden:!0,name:o,children:e("input",{type:"hidden"})}):null}),(()=>!1));export{r as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import{useContextDisabled as r}from"@vef-framework/hooks";import{isArray as a}from"@vef-framework/shared";import{Form as o}from"antd";import{memo as l}from"react";import{useComputedValues as t}from"../hooks/use-computed-values.js";import m from"./form-field.js";const{Item:s}=o;const i=l((function({item:o,disabled:l}){const{name:i,show:u,disabled:d,label:f,tip:n,rules:p,virtual:b,...c}=o,k=r(),[w,V,h,v,y]=t([{key:"show",rawValue:u,defaultValue:!0},{key:"disabled",rawValue:d,defaultValue:l},{key:"label",rawValue:f},{key:"tip",rawValue:n},{key:"rules",rawValue:p}]);if(!w)return null;const j=a(y)?y.flatMap((e=>e(o))):void 0;return e(s,{label:h,name:i,preserve:!1,rules:j,tooltip:v,children:e(m,{componentProps:c,disabled:k||V,label:h,name:i})})}),((e,r)=>e.disabled===r.disabled));export{i as default};
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{jsx as e}from"@emotion/react/jsx-runtime";import{useContextDisabled as r}from"@vef-framework/hooks";import{isArray as a}from"@vef-framework/shared";import{Form as o}from"antd";import{memo as l}from"react";import{useComputedValues as t}from"../hooks/use-computed-values.js";import m from"./form-field.js";const{Item:s}=o;const i=l((function VefFormItemBase({item:o,disabled:l}){const{name:i,show:u,disabled:d,label:f,tip:n,rules:p,virtual:b,...c}=o,k=r(),[w,V,h,v,y]=t([{key:"show",rawValue:u,defaultValue:!0},{key:"disabled",rawValue:d,defaultValue:l},{key:"label",rawValue:f},{key:"tip",rawValue:n},{key:"rules",rawValue:p}]);if(!w)return null;const j=a(y)?y.flatMap((e=>e(o))):void 0;return e(s,{label:h,name:i,preserve:!1,rules:j,tooltip:v,children:e(m,{componentProps:c,disabled:k||V,label:h,name:i})})}),((e,r)=>e.disabled===r.disabled));export{i as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsxs as e,Fragment as o,jsx as
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{jsxs as e,Fragment as o,jsx as s}from"@emotion/react/jsx-runtime";import{isDeepEqual as t,omit as r}from"@vef-framework/shared";import{useMemo as m,memo as i}from"react";import a from"../../vef-grid/index.js";import n from"../../vef-grid-item/index.js";import{useColumnsLayout as l}from"../hooks/use-columns-layout.js";import{useComputedValues as d}from"../hooks/use-computed-values.js";import{useFormContext as u}from"../hooks/use-form-context.js";import f from"./form-hidden-item.js";import p from"./form-item.js";const c=i((function VefFormRowBase({rowKey:t,columns:r,disabled:i,autoExpand:c}){const{layoutMode:h,autoExpand:k,labelPosition:y,labelWidth:x}=u(),b="top"===y?240:240+(x??80),[g,j]=m((()=>{const e=[],o=[];for(const s of r){const{items:t,...r}=s,m=[];for(const o of t){const{type:s}=o;"Hidden"===s?e.push(o):m.push(o)}m.length>0&&o.push({...r,items:m})}return[e,o]}),[r]),w=d([...j.map((({key:e,show:o})=>({key:`show-${e}`,rawValue:o,defaultValue:!0}))),...j.map((({key:e,disabled:o})=>({key:`disabled-${e}`,rawValue:o,defaultValue:i})))],!0),v=m((()=>r.filter((({key:e})=>w[`show-${e}`]))),[w,r]),V=l(t,v,h,c??k);return e(o,{children:[g.map((e=>{const{name:o}=e;return s(f,{item:e},o)})),v.length>0&&s(a,{baseWidth:b,gap:[0,"large"],children:v.map((e=>{const o={};if("responsive"===h){const s=V;o.xs=s.xs[e.key],o.sm=s.sm[e.key],o.md=s.md[e.key],o.lg=s.lg[e.key],o.xl=s.xl[e.key],o.xxl=s.xxl[e.key]}else{const s=V;o.span=s[e.key]}return s(n,{...o,children:e.items.map((o=>s(p,{disabled:i||w[`disabled-${e.key}`],item:o},o.name)))},e.key)}))})]})}),((e,o)=>t(r(e,["columns"]),r(o,["columns"]))));export{c as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/es/vef-form/event.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{createEventEmitter as e}from"@vef-framework/shared";var t,
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{createEventEmitter as e}from"@vef-framework/shared";var t,__typeError=e=>{throw TypeError(e)},__privateGet=(e,t,a)=>(((e,t,a)=>{t.has(e)||__typeError("Cannot "+a)})(e,t,"read from private field"),a?a.call(e):t.get(e));const a=Symbol("change"),o=Symbol("submitResult");class FormEventBus{constructor(){var a,o,s;a=this,o=t,s=e(),o.has(a)?__typeError("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(a):o.set(a,s)}clear(){__privateGet(this,t).all.clear()}onChange(e){__privateGet(this,t).on(a,e)}offChange(e){__privateGet(this,t).off(a,e)}emitChange(e){__privateGet(this,t).emit(a,e)}onSubmitResult(e){__privateGet(this,t).on(o,e)}offSubmitResult(e){__privateGet(this,t).off(o,e)}emitSubmitResult(e){__privateGet(this,t).emit(o,e)}}t=new WeakMap;export{FormEventBus};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/es/vef-form/helper.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{isFunction as
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{isFunction as e,isExpression as r,compileDynamicFn as u}from"@vef-framework/shared";function computeValue(t,n,o,f){if(e(t))return t(n,o);if(r(t)){return u(t,"values","scene",`return ${t.expression}`)(n,o)}return t??f}export{computeValue};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{useApiContext as e}from"@vef-framework/core";import{isFunction as t,VefError as i,showLoadingMessage as o,omit as n,showSuccessMessage as r}from"@vef-framework/shared";import{useCallback as s,useMemo as a}from"react";import{useFormStore as
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{useApiContext as e}from"@vef-framework/core";import{isFunction as t,VefError as i,showLoadingMessage as o,omit as n,showSuccessMessage as r}from"@vef-framework/shared";import{useCallback as s,useMemo as a}from"react";import{useFormStore as u}from"../store.js";function useActionHandlers({submitApi:m,submitTip:l="提交中...",onBeforeSubmit:c,onSubmit:p,onSubmitSuccess:b,onSubmitFailure:f,onReset:d}){const[S,w,h,v,A,F,R,g]=u((e=>[e.form,e.scene,e.eventBus,e.setIsLoading,e.virtualFieldNames,e.getValues,e.initialValues,e.invokeValueChangeHandlers])),{useApiMutation:y,stubMutationApi:V}=e(),{mutate:k}=y(m??V);if(!t(p)&&!m)throw new i(-1,"'onSubmit' or 'submitApi' prop is required for VefForm component");return{handleReset:s((()=>{const e=F();S.resetFields(),g(),h.emitChange(R),d?.(e,w)}),[S,F,d,w,g,R,h]),handleSubmit:a((()=>t(p)?(m&&console.warn("'submitApi' prop is ignored when 'onSubmit' prop is provided in VefForm component"),async e=>{v(!0);let i=e,r=null;try{const s=t(l)?l(e,w):l;r=o(s),t(c)&&(i=await c(i,w));const a=n(i,A);await p(a,w),h.emitSubmitResult(!0)}catch(e){throw h.emitSubmitResult(!1),e}finally{v(!1),r?.()}}):async e=>{v(!0);let i=e,s=null;try{const a=t(l)?l(e,w):l;s=o(a),t(c)&&(i=await c(e,w));const u=n(i,A),m=await k(u);(b??(({message:e})=>{r(e)}))(m,i,w),h.emitSubmitResult(!0)}catch(e){h.emitSubmitResult(!1),f?.(e,i,w)}finally{v(!1),s?.()}}),[p,m,v,l,w,c,A,h,k,b,f]),handleSubmitFailed:s((({values:e,errorFields:t})=>{h.emitSubmitResult(!1),f?.(new i(-1,t.flatMap((e=>e.errors)).join(", ")),e,w)}),[h,f,w])}}export{useActionHandlers};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{unique as e,VefError as
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{unique as e,VefError as s}from"@vef-framework/shared";import{useMemo as n}from"react";const o=24,t=[{breakpoint:"xs",base:o,spans:1},{breakpoint:"sm",base:12,spans:2},{breakpoint:"md",base:8,spans:3},{breakpoint:"lg",base:6,spans:4},{breakpoint:"xl",base:6,spans:4},{breakpoint:"xxl",base:4,spans:6}],a=e(t.map((e=>e.spans)));function useColumnsLayout(e,r,u,l){return n((()=>0===r.length?{}:"responsive"===u?function calculateResponsiveLayout(e,n,o){const r=n.reduce(((e,s)=>e+(s.span??1)),0);if(!a.includes(r))throw new s(-3,`The total spans of the columns of the row [${e}] must be one of the following: ${a.join(", ")}.`);const u=24/r,l={};for(const{breakpoint:e,base:s,spans:a}of t)if(u>=s)l[e]=n.reduce(((e,s)=>(e[s.key]=(s.span??1)*u,e)),{});else{const t={};let r=a,u=null;for(const e of n){const n=e.span??1;r>=n?(t[e.key]=n*s,r-=n,u=e.key):(u&&(o&&(t[u]+=r*s),r=a,u=null),n>a?t[e.key]=24:(t[e.key]=n*s,r-=n,u=e.key)),0===r&&(r=a,u=null)}r>0&&(o&&(t[u]+=r*s),u=null),l[e]=t}return l}(e,r,l):function calculateFixedLayout(e,n){const t=n.reduce(((e,s)=>e+(s.span??1)),0);if(t>o||o%t!=0)throw new s(-3,`The total spans of the columns of the row [${e}] must be less than or equal to 24 and a divisor of 24.`);const a=o/t;return n.reduce(((e,s)=>(e[s.key]=(s.span??1)*a,e)),{})}(e,r)),[])}export{useColumnsLayout};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{useUpdater as e,useDeepMemo as r,useDeepLayoutEffect as o}from"@vef-framework/hooks";import{isFunctionOrExpression as t,isDeepEqual as
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{useUpdater as e,useDeepMemo as r,useDeepLayoutEffect as o}from"@vef-framework/hooks";import{isFunctionOrExpression as t,isDeepEqual as u}from"@vef-framework/shared";import{computeValue as a}from"../helper.js";import{useFormStore as f}from"../store.js";function useComputedValues(s,n=!1){const[l,m,c]=f((e=>[e.scene,e.eventBus,e.getValues])),p=e(),i=c(),k=r((()=>s.reduce(((e,r)=>{const{key:o,rawValue:t,defaultValue:u}=r,f=a(t,i,l,u);return e[o]=f,e}),{})),[i,l,s]);return o((()=>{const e=s.filter((({rawValue:e})=>t(e)));if(e.length>0){const handleChange=r=>{for(const o of e){const{key:e,rawValue:t,defaultValue:f}=o,s=k[e],n=a(t,r,l,f);if(!u(n,s)){p();break}}};return m.onChange(handleChange),()=>{m.offChange(handleChange)}}}),[k,m,p,l,s]),n?s.reduce(((e,{key:r})=>(e[r]=k[r],e)),{}):s.map((({key:e})=>k[e]))}export{useComputedValues};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
2
|
import{createSelectableContext as o}from"@vef-framework/shared";const{useContextSelector:e,useContext:t,ContextProvider:r}=o({autoExpand:!0,labelPosition:"top",layoutMode:"responsive"});export{r as FormContextProvider,t as useFormContext,e as useFormContextSelector};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{isNullish as o,isFunction as
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{isNullish as o,isFunction as n}from"@vef-framework/shared";import{useMemo as t}from"react";function useFormInitialization(e,r){return t((()=>{const t={...r},a={},s=[];for(const r of e){const{rows:e}=r;for(const r of e){const{columns:e}=r;for(const r of e){const{items:e}=r;for(const r of e){const{name:e,defaultValue:i,virtual:f}=r;!o(i)&&o(t[e])&&(t[e]=i),"Hidden"!==r.type&&n(r.onChange)&&(a[e]=r.onChange),!0===f&&s.push(e)}}}}return{mergedInitialValues:t,valueChangeHandlers:a,virtualFieldNames:s}}),[])}export{useFormInitialization};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{useImperativeHandle as
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{useImperativeHandle as e}from"react";import{useFormStore as t}from"../store.js";function useFormInstance(s,o){const[u,m,r,n]=t((e=>[e.form,e.eventBus,e.getValues,e.setValues]));e(s,(()=>({submit:()=>new Promise(((e,t)=>{const handleResult=s=>{m.offSubmitResult(handleResult),s?e():t(s)};m.onSubmitResult(handleResult),u.submit()})),reset:o,getValues:r,setValues:n})))}export{useFormInstance};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{isFunction as e}from"@vef-framework/shared";import{useMemo as n,useEffect as r,useLayoutEffect as o}from"react";import{useFormStore as
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{isFunction as e}from"@vef-framework/shared";import{useMemo as n,useEffect as r,useLayoutEffect as o}from"react";import{useFormStore as a}from"../store.js";function useFormValuesChange(s){const[t,m,u]=a((e=>[e.scene,e.eventBus,e.invokeValueChangeHandlers])),f=n((()=>(e,n)=>{m.emitChange(n)}),[m]);return r((()=>{if(e(s)){const handleChange=e=>{s(e,t)};return m.onChange(handleChange),()=>{m.offChange(handleChange)}}}),[m,s,t]),o((()=>{u()}),[]),{handleValuesChange:f}}export{useFormValuesChange};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{showWarningMessage as e}from"@vef-framework/shared";import{useMemo as
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{showWarningMessage as e}from"@vef-framework/shared";import{useMemo as t}from"react";function useLabelWidth(r,o){return t((()=>{if("top"!==r&&o)return(o<60||o>120)&&e("The labelWidth of VefForm component must be between 60 and 120, otherwise it will be 60 or 120."),Math.min(Math.max(o,60),120)}),[r,o])}export{useLabelWidth};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/es/vef-form/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsxs as e,jsx as o}from"@emotion/react/jsx-runtime";import{css as i}from"@emotion/react";import{useContextDisabled as t,useSingleton as s,useUnmount as a}from"@vef-framework/hooks";import{isNumber as n,isDeepEqual as r,omit as l}from"@vef-framework/shared";import{Form as m}from"antd";import{useMemo as u,forwardRef as h,memo as f}from"react";import"../internal/index.js";import c from"./components/form-actions.js";import d from"./components/form-content.js";import{FormEventBus as p}from"./event.js";import{useActionHandlers as b}from"./hooks/use-action-handlers.js";import{useFormContextSelector as v,FormContextProvider as g}from"./hooks/use-form-context.js";import{useFormInitialization as
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{jsxs as e,jsx as o}from"@emotion/react/jsx-runtime";import{css as i}from"@emotion/react";import{useContextDisabled as t,useSingleton as s,useUnmount as a}from"@vef-framework/hooks";import{isNumber as n,isDeepEqual as r,omit as l}from"@vef-framework/shared";import{Form as m}from"antd";import{useMemo as u,forwardRef as h,memo as f}from"react";import"../internal/index.js";import c from"./components/form-actions.js";import d from"./components/form-content.js";import{FormEventBus as p}from"./event.js";import{useActionHandlers as b}from"./hooks/use-action-handlers.js";import{useFormContextSelector as v,FormContextProvider as g}from"./hooks/use-form-context.js";import{useFormInitialization as F}from"./hooks/use-form-initialization.js";import{useFormInstance as j}from"./hooks/use-form-instance.js";import{useFormValuesChange as S}from"./hooks/use-form-values-change.js";import{useLabelWidth as V}from"./hooks/use-label-width.js";import{useFormStore as k,FormStoreProvider as x}from"./store.js";import{convertBasicSizeToUiSize as B}from"../internal/utils.js";const{useForm:w}=m,C={scrollMode:"if-needed",behavior:"smooth"};const y=h((function VefFormBase({schema:s,labelAlign:a="right",variant:r,showTabs:l=!1,height:h="auto",size:f,disabled:p=!1,onChange:g,submissionButton:F,resetButton:V,submitApi:x,submitTip:w,onBeforeSubmit:y,onSubmit:T,onSubmitSuccess:W,onSubmitFailure:z,onReset:A},N){const[R,E]=v((e=>[e.labelPosition,e.labelWidth])),[M,P,$]=k((e=>[e.form,e.initialValues,e.isLoading])),{handleValuesChange:H}=S(g),{handleReset:I,handleSubmit:L,handleSubmitFailed:q}=b({submitApi:x,submitTip:w,onBeforeSubmit:y,onSubmit:T,onSubmitSuccess:W,onSubmitFailure:z,onReset:A});j(N,I);const D=u((()=>{if(E)return{flex:`0 0 ${E}px`}}),[E]),G=u((()=>{let e=h;return"full"===h?e="100%":n(h)&&(e=`${h}px`),i`
|
|
3
3
|
height: ${e};
|
|
4
|
-
`}),[h]),J=t();return e(m,{labelWrap:!0,colon:!1,css:G,disabled:J||p||$,form:M,initialValues:P,labelAlign:a,labelCol:D,layout:"top"===
|
|
4
|
+
`}),[h]),J=t();return e(m,{labelWrap:!0,colon:!1,css:G,disabled:J||p||$,form:M,initialValues:P,labelAlign:a,labelCol:D,layout:"top"===R?"vertical":"horizontal",scrollToFirstError:C,size:B(f),variant:r,onFinish:L,onFinishFailed:q,onValuesChange:H,children:[o(d,{height:h,schema:s,showTabs:!0===l?"switch":l}),o(c,{handleReset:I,resetButton:V,submissionButton:F})]})}));y.displayName="VefFormBase";const T=f(h((function VefFormWrapper({initialValues:e,scene:i,layoutMode:t="responsive",autoExpand:n=!1,labelPosition:r="top",labelWidth:l,...m},h){const{schema:f}=m,[c]=w(),d=s((()=>new p));a((()=>{d.clear()}));const b=V(r,l),v=u((()=>({labelPosition:r,labelWidth:b,autoExpand:n,layoutMode:t})),[t,n,r,b]),{mergedInitialValues:j,valueChangeHandlers:S,virtualFieldNames:k}=F(f,e),B=u((()=>({eventBus:d,form:c,initialValues:j,scene:i,valueChangeHandlers:S,virtualFieldNames:k})),[d,c,j,i,S,k]);return o(x,{initialState:B,children:o(g,{value:v,children:o(y,{ref:h,...m})})})})),((e,o)=>r(l(e,["initialValues","schema"]),l(o,["initialValues","schema"]))));T.displayName="VefForm";export{T as default};
|
|
5
5
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/es/vef-form/store.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
2
|
import{createComponentStore as e,isDeepEqual as s}from"@vef-framework/shared";const{StoreProvider:t,useStore:n,useStoreApi:o}=e("Form",(e=>(t,n)=>({...e,invokeValueChangeHandlers(e,s){const{scene:t,valueChangeHandlers:o,initialValues:a,setValues:l}=n(),i=e??a,u=s?new Set(s):null;for(const[e,s]of Object.entries(o))u&&!u.has(e)||s(i[e]??null,{values:i,scene:t,setValues:l})},getValues(){const{form:e,initialValues:s}=n();return e.isFieldsTouched(!0)?s:e.getFieldsValue()},setValues(e){const{form:t,eventBus:o,invokeValueChangeHandlers:a}=n(),l=t.getFieldsValue(),i=Object.keys(e).filter((t=>!s(e[t],l[t])));t.setFieldsValue(e);const u=t.getFieldsValue();o.emitChange(u),a(u,i)},isLoading:!1,setIsLoading(e){t({isLoading:e})},showActionButtons:!0,setShowActionButtons(e){t({showActionButtons:e})}})));export{t as FormStoreProvider,n as useFormStore,o as useFormStoreApi};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{isDeepEqual as e,VefError as
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{isDeepEqual as e,VefError as i,validator as r,getNowDateString as s}from"@vef-framework/shared";function isRequired(e){return()=>[{required:!0,message:e}]}function isEqualsTo(r,s){return({label:o})=>[{validator:(t,n)=>e(n,r)?Promise.resolve():Promise.reject(new i(-2,s??`${o?`${o}的值`:"值"}必须是${r}`))}]}function isNotEqualsTo(r,s){return({label:o})=>[{validator:(t,n)=>e(n,r)?Promise.reject(new i(-2,s??`${o?`${o}的值`:"值"}不能是${r}`)):Promise.resolve()}]}function isIn(e,i){return()=>[{type:"enum",enum:e,message:i}]}function isMeetsMinSize(e,i){return()=>[{min:e,message:i}]}function isMeetsMaxSize(e,i){return()=>[{max:e,message:i}]}function isMeetsRangeSize(e,i,r){return()=>[{min:e,max:i,message:r}]}function isAlpha(e){return({label:s})=>[{validator:(o,t)=>r.isAlpha(t)?Promise.resolve():Promise.reject(new i(-2,e??`${s??"值"}必须是字母`))}]}function isAlphanumeric(e){return({label:s})=>[{validator:(o,t)=>r.isAlphanumeric(t)?Promise.resolve():Promise.reject(new i(-2,e??`${s??"值"}必须是字母或数字`))}]}function isAscii(e){return({label:s})=>[{validator:(o,t)=>r.isAscii(t)?Promise.resolve():Promise.reject(new i(-2,e??`${s??"值"}必须是ASCII字符`))}]}function isNumeric(e){return({label:s})=>[{validator:(o,t)=>r.isNumeric(t)?Promise.resolve():Promise.reject(new i(-2,e??`${s??"值"}必须是数字`))}]}function isEmail(e){return({label:s})=>[{validator:(o,t)=>r.isEmail(t)?Promise.resolve():Promise.reject(new i(-2,e??`${s??"值"}必须是合法的邮箱`))}]}function isHexColor(e){return({label:s})=>[{validator:(o,t)=>r.isHexColor(t)?Promise.resolve():Promise.reject(new i(-2,e??`${s??"值"}必须是十六进制颜色`))}]}function isIdentityCard(e){return({label:s})=>[{validator:(o,t)=>r.isIdentityCard(t)?Promise.resolve():Promise.reject(new i(-2,e??`${s??"值"}必须是合法的身份证`))}]}function isIp(e){return({label:s})=>[{validator:(o,t)=>r.isIp(t)?Promise.resolve():Promise.reject(new i(-2,e??`${s??"值"}必须是合法的IP地址`))}]}function isPort(e){return({label:s})=>[{validator:(o,t)=>r.isPort(t)?Promise.resolve():Promise.reject(new i(-2,e??`${s??"值"}必须是合法的端口`))}]}function isJson(e){return({label:s})=>[{validator:(o,t)=>r.isJson(t)?Promise.resolve():Promise.reject(new i(-2,e??`${s??"值"}必须是合法的JSON`))}]}function isUrl(e){return({label:s})=>[{validator:(o,t)=>r.isUrl(t)?Promise.resolve():Promise.reject(new i(-2,e??`${s??"值"}必须是合法的URL`))}]}function isUri(e){return({label:s})=>[{validator:(o,t)=>r.isUri(t)?Promise.resolve():Promise.reject(new i(-2,e??`${s??"值"}必须是合法的URI`))}]}function isPostalCode(e){return({label:s})=>[{validator:(o,t)=>r.isPostalCode(t)?Promise.resolve():Promise.reject(new i(-2,e??`${s??"值"}必须是合法的邮政编码`))}]}function isDateBefore(e,o){return({label:t})=>[{validator:(n,l)=>r.isBefore(l,e??s())?Promise.resolve():Promise.reject(new i(-2,o??`${t??"值"}必须在${e}之前`))}]}function isDateAfter(e,o){return({label:t})=>[{validator:(n,l)=>r.isAfter(l,e??s())?Promise.resolve():Promise.reject(new i(-2,o??`${t??"值"}必须在${e}之后`))}]}function isChineseName(e){return({label:s})=>[{validator:(o,t)=>r.isChineseName(t)?Promise.resolve():Promise.reject(new i(-2,e??`${s??"值"}必须是中文名称`))}]}export{isAlpha,isAlphanumeric,isAscii,isChineseName,isDateAfter,isDateBefore,isEmail,isEqualsTo,isHexColor,isIdentityCard,isIn,isIp,isJson,isMeetsMaxSize,isMeetsMinSize,isMeetsRangeSize,isNotEqualsTo,isNumeric,isPort,isPostalCode,isRequired,isUri,isUrl};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as e,jsxs as o,Fragment as n}from"@emotion/react/jsx-runtime";import{useContextDisabled as
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{jsx as e,jsxs as o,Fragment as n}from"@emotion/react/jsx-runtime";import{useContextDisabled as r,DisabledContextProvider as t}from"@vef-framework/hooks";import{isFunction as s}from"@vef-framework/shared";import{useRef as i,useCallback as l,memo as a}from"react";import c from"../vef-button/index.js";import m from"../vef-drawer/index.js";import f from"../vef-form/index.js";import d from"../vef-drawer/components/action-button-wrapper.js";const u=a((function VefFormDrawerBase({title:a,open:u,closable:p,closeOnMaskClick:C,closeOnEscPress:x,destroyOnClose:O=!0,cancelOnClose:k,placement:b,expansionSize:v="medium",loading:w,extra:h,cancelButtonText:B,actions:j,onClose:A,onCancel:y,onAfterClose:T,onAfterOpen:g,submissionButtonText:z,disabled:D=!1,...E}){const F=i(null),M=l((async()=>{await(F.current?.submit())}),[]),P=r()||D,S=l((()=>{F.current?.reset()}),[]),V=l((([r,t])=>{const i=e(d,{children:e(c,{color:"default",disabled:P,variant:"filled",onClick:S,children:"重置"})},"resetActionButton");return s(j)?j([r,i,t]):o(n,{children:[r,i,t]})}),[j,P,S]);return e(t,{value:P,children:e(m,{actions:V,cancelOnClose:k,closable:p,closeOnEscPress:x,closeOnMaskClick:C,destroyOnClose:O,expansionSize:v,extra:h,loading:w,okButtonText:z,open:u,placement:b,title:a,onAfterClose:T,onAfterOpen:g,onCancel:y,onClose:A,onOk:M,children:e(f,{ref:F,resetButton:!1,submissionButton:!1,...E})})})}));u.displayName="VefFormDrawer";export{u as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as e,jsxs as o,Fragment as n}from"@emotion/react/jsx-runtime";import{useContextDisabled as t,DisabledContextProvider as r}from"@vef-framework/hooks";import{isFunction as s}from"@vef-framework/shared";import{useRef as l,useCallback as i,memo as c}from"react";import a from"../vef-button/index.js";import m from"../vef-form/index.js";import d from"../vef-modal/index.js";import f from"../vef-modal/components/action-button-wrapper.js";const u=c((function({submissionButtonText:c="提交",actions:u,title:p,open:C,closable:O,closeOnMaskClick:k,closeOnEscPress:b,destroyOnClose:h=!0,cancelOnClose:x,width:v="medium",loading:B,cancelButtonText:w,onClose:j,onCancel:A,onAfterOpen:y,onAfterClose:
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{jsx as e,jsxs as o,Fragment as n}from"@emotion/react/jsx-runtime";import{useContextDisabled as t,DisabledContextProvider as r}from"@vef-framework/hooks";import{isFunction as s}from"@vef-framework/shared";import{useRef as l,useCallback as i,memo as c}from"react";import a from"../vef-button/index.js";import m from"../vef-form/index.js";import d from"../vef-modal/index.js";import f from"../vef-modal/components/action-button-wrapper.js";const u=c((function VefFormModalBase({submissionButtonText:c="提交",actions:u,title:p,open:C,closable:O,closeOnMaskClick:k,closeOnEscPress:b,destroyOnClose:h=!0,cancelOnClose:x,width:v="medium",loading:B,cancelButtonText:w,onClose:j,onCancel:A,onAfterOpen:y,onAfterClose:M,disabled:T=!1,...g}){const E=l(null),F=i((async()=>{await(E.current?.submit())}),[]),P=t()||T,V=i((()=>{E.current?.reset()}),[]),N=i((([t,r])=>{const l=e(f,{children:e(a,{color:"default",variant:"filled",onClick:V,children:"重置"})},"resetActionButton");return s(u)?u([t,l,r]):o(n,{children:[t,l,r]})}),[u,V]);return e(r,{value:P,children:e(d,{actions:N,cancelButtonText:w,cancelOnClose:x,closable:O,closeOnEscPress:b,closeOnMaskClick:k,destroyOnClose:h,loading:B,okButtonText:c,open:C,title:p,width:v,onAfterClose:M,onAfterOpen:y,onCancel:A,onClose:j,onOk:F,children:e(m,{ref:E,disabled:P,resetButton:!1,submissionButton:!1,...g})})})}));u.displayName="VefFormModal";export{u as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import{SearchOutlined as o}from"@ant-design/icons";import{isFunction as r,styles as n}from"@vef-framework/shared";import{Select as i}from"antd";import{LeafIcon as
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{jsx as e}from"@emotion/react/jsx-runtime";import{SearchOutlined as o}from"@ant-design/icons";import{isFunction as r,styles as n}from"@vef-framework/shared";import{Select as i}from"antd";import{LeafIcon as t}from"lucide-react";import{useState as a,useDeferredValue as l,useCallback as d,useMemo as c,cloneElement as s}from"react";import"../internal/index.js";import f from"../vef-icon/index.js";import{convertBasicSizeToUiSize as m}from"../internal/utils.js";const p={"--vef-select-option-padding":0};function VefGenericSelect({value:u,size:h,renderLabel:v,placeholder:b,disabled:w,clearable:C,loading:S,variant:g,children:x,onClear:j}){const[V,k]=a(!1),[y,z]=a(!1),[F,G]=a(),W=l(F),B=d((()=>{z(!1)}),[]),D=d((()=>{z(!0)}),[]),I=d((()=>{k(!1)}),[]),L=c((()=>{if(r(v))return({value:e})=>v?.(e)}),[v]),M=y&&V?e(o,{}):e(f,{children:e(t,{})}),R=s(x,{keyword:W,onConfirm:I});return e(i,{showSearch:!0,allowClear:C,css:n.fullWidth,disabled:w,dropdownStyle:p,labelRender:L,loading:S,notFoundContent:R,open:V,placeholder:b,popupMatchSelectWidth:!1,searchValue:F,size:m(h),suffixIcon:M,value:u,variant:g,onBlur:B,onClear:j,onDropdownVisibleChange:k,onFocus:D,onSearch:G})}export{VefGenericSelect as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/es/vef-grid/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as r}from"@emotion/react/jsx-runtime";import{css as n}from"@emotion/react";import{useGapSizeNormalizer as
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{jsx as r}from"@emotion/react/jsx-runtime";import{css as n}from"@emotion/react";import{useGapSizeNormalizer as i,useElementSize as t}from"@vef-framework/hooks";import{breakpoints as e,isArray as o}from"@vef-framework/shared";import m from"clsx";import{useMemo as a,useRef as f,useEffect as d}from"react";import{useContainerQuery as c}from"react-container-query";const p=24,s=n`
|
|
3
3
|
display: grid;
|
|
4
4
|
grid: auto-flow / repeat(${p}, minmax(0, 1fr));
|
|
5
5
|
|
|
@@ -9,6 +9,6 @@ import{jsx as r}from"@emotion/react/jsx-runtime";import{css as n}from"@emotion/r
|
|
|
9
9
|
|
|
10
10
|
${Array.from({length:p}).map(((r,n)=>`\n > .vef-grid-item-${n+1} {\n grid-column: span ${n+1};\n }\n `))}
|
|
11
11
|
|
|
12
|
-
${e.map((r=>`\n &.vef-container-${r} {\n ${Array.from({length:p}).map(((n,
|
|
13
|
-
`;function
|
|
12
|
+
${e.map((r=>`\n &.vef-container-${r} {\n ${Array.from({length:p}).map(((n,i)=>`\n > .vef-grid-item-${r}-${i+1} {\n grid-column: span ${i+1};\n }\n `))}\n }\n `))}
|
|
13
|
+
`;function VefGrid({baseWidth:n=240,gap:e,children:l}){const h=a((()=>({"vef-container-xs":{minWidth:0},"vef-container-sm":{minWidth:2*n},"vef-container-md":{minWidth:3*n},"vef-container-lg":{minWidth:4*n},"vef-container-xl":{minWidth:5*n},"vef-container-xxl":{minWidth:6*n}})),[n]),$=f(null),[u,g]=c(h,{width:2*n}),v=i(),[x,w]=a((()=>{if(o(e))return[v(e[0]),v(e[1])];if(e){const r=v(e);return[r,r]}return[0,0]}),[e,v]);d((()=>{g($.current)}),[$,g]);const W=t($),y=a((()=>(W?.width??2*n)>p*w?{gap:`${x}px ${w}px`}:{gap:`${x}px ${Math.floor((W?.width??2*n)/p)}px`}),[W?.width,n,w,x]);return r("div",{ref:$,className:m(u),css:s,style:y,children:l})}export{VefGrid as default};
|
|
14
14
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/es/vef-grid/props.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
2
|
const x=["xs","sm","md","lg","xl","xxl"];export{x as BREAKPOINTS};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import i from"clsx";import{useMemo as r}from"react";function
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
|
+
import{jsx as e}from"@emotion/react/jsx-runtime";import i from"clsx";import{useMemo as r}from"react";function VefGridItem({span:t,xs:m,sm:s,md:d,lg:f,xl:o,xxl:p,children:u}){const l=r((()=>{const e=[];return t&&e.push(`vef-grid-item-${t}`),m&&e.push(`vef-grid-item-xs-${m}`),s&&e.push(`vef-grid-item-sm-${s}`),d&&e.push(`vef-grid-item-md-${d}`),f&&e.push(`vef-grid-item-lg-${f}`),o&&e.push(`vef-grid-item-xl-${o}`),p&&e.push(`vef-grid-item-xxl-${p}`),e}),[t,m,s,d,f,o,p]);return e("div",{className:i(l),children:u})}export{VefGridItem as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/es/vef-icon/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
|
|
2
2
|
import{jsx as e}from"@emotion/react/jsx-runtime";import r from"@ant-design/icons";import{themeVariables as o,omit as t}from"@vef-framework/shared";import{forwardRef as n,useMemo as i,Suspense as f,cloneElement as m,memo as s}from"react";const c=s(n((({size:n,children:s,...c},l)=>{const a=i((()=>{const e="small"===n?o.fontSizeSm:"medium"===n?o.fontSize:"large"===n?o.fontSizeLg:"huge"===n?o.fontSizeXl:void 0;if(e)return{fontSize:e}}),[n]);return e(r,{ref:l,style:a,component:e=>{const r=t(e,["fill"]);if(s.type===f){const{children:e}=s.props;return m(s,{children:m(e,r)})}return m(s,r)},...c})})));c.displayName="VefIcon";export{c as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|