@vef-framework/components 1.0.121 → 1.0.122
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/base.css.js +1 -1
- package/es/internal/chart.js +1 -1
- package/es/internal/index.js +1 -1
- package/es/internal/modern-normalize.css.js +1 -1
- package/es/internal/utils.js +1 -1
- package/es/vef-access-denied/access-denied-icon.js +1 -1
- package/es/vef-access-denied/index.js +1 -1
- package/es/vef-action-buttons/index.js +1 -1
- package/es/vef-approval-flow-editor/components/edge.js +1 -1
- package/es/vef-approval-flow-editor/components/label-value.js +1 -1
- package/es/vef-approval-flow-editor/components/node-content.js +1 -1
- package/es/vef-approval-flow-editor/components/node-selector.js +1 -1
- package/es/vef-approval-flow-editor/components/node-toolbar.js +1 -1
- package/es/vef-approval-flow-editor/components/nodes/approval.js +1 -1
- package/es/vef-approval-flow-editor/components/nodes/condition.js +1 -1
- package/es/vef-approval-flow-editor/components/nodes/end.js +1 -1
- package/es/vef-approval-flow-editor/components/nodes/handle.js +1 -1
- package/es/vef-approval-flow-editor/components/nodes/index.js +1 -1
- package/es/vef-approval-flow-editor/components/nodes/submit.js +1 -1
- package/es/vef-approval-flow-editor/components/selector-content.js +1 -1
- package/es/vef-approval-flow-editor/components/source-handle.js +1 -1
- package/es/vef-approval-flow-editor/components/target-handle.js +1 -1
- package/es/vef-approval-flow-editor/constants.js +1 -1
- package/es/vef-approval-flow-editor/helper.js +1 -1
- package/es/vef-approval-flow-editor/hooks/use-edges-interaction.js +1 -1
- package/es/vef-approval-flow-editor/hooks/use-element-selection.js +1 -1
- package/es/vef-approval-flow-editor/hooks/use-nodes-interaction.js +1 -1
- package/es/vef-approval-flow-editor/index.js +1 -1
- package/es/vef-approval-flow-editor/models/edge-node.js +1 -1
- package/es/vef-approval-flow-editor/models/flow-node.js +1 -1
- package/es/vef-approval-flow-editor/store.js +1 -1
- package/es/vef-approval-flow-editor/styles.js +1 -1
- package/es/vef-approval-flow-editor/types.js +1 -1
- package/es/vef-area-chart/index.js +1 -1
- package/es/vef-auto-sizer/index.js +1 -1
- package/es/vef-avatar/index.js +1 -1
- package/es/vef-avatar-group/index.js +1 -1
- package/es/vef-badge/index.js +1 -1
- package/es/vef-bar-chart/index.js +1 -1
- package/es/vef-bool/hooks/use-bool-instance.js +1 -1
- package/es/vef-bool/index.js +1 -1
- package/es/vef-breadcrumb/index.js +1 -1
- package/es/vef-button/components/base-button.js +1 -1
- package/es/vef-button/index.js +1 -1
- package/es/vef-card/index.js +1 -1
- package/es/vef-card-meta/index.js +1 -1
- package/es/vef-chart-container/hooks/use-chart-container-context.js +1 -1
- package/es/vef-chart-container/index.js +1 -1
- package/es/vef-chart-legend-content/index.js +1 -1
- package/es/vef-chart-tooltip-content/index.js +1 -1
- package/es/vef-checkbox/hooks/use-checkbox-instance.js +1 -1
- package/es/vef-checkbox/hooks/use-data-options.js +1 -1
- package/es/vef-checkbox/index.js +1 -1
- package/es/vef-code-editor/hooks/use-change-handler.js +1 -1
- package/es/vef-code-editor/hooks/use-config-extensions.js +1 -1
- package/es/vef-code-editor/hooks/use-height-props.js +1 -1
- package/es/vef-code-editor/hooks/use-language-extensions.js +1 -1
- package/es/vef-code-editor/hooks/use-setup-options.js +1 -1
- package/es/vef-code-editor/index.js +1 -1
- package/es/vef-code-editor/styles.js +1 -1
- package/es/vef-col/index.js +1 -1
- package/es/vef-color-picker/index.js +1 -1
- package/es/vef-compact/index.js +1 -1
- package/es/vef-config-provider/global-style.js +1 -1
- package/es/vef-config-provider/hooks/use-ui-config.js +1 -1
- package/es/vef-config-provider/index.js +1 -1
- package/es/vef-config-provider/store.js +1 -1
- package/es/vef-container/index.js +1 -1
- package/es/vef-crud-page/components/crud-actions.js +1 -1
- package/es/vef-crud-page/components/crud-filter.js +1 -1
- package/es/vef-crud-page/components/crud-footer.js +1 -1
- package/es/vef-crud-page/components/crud-form-modal.js +1 -1
- package/es/vef-crud-page/components/crud-header.js +1 -1
- package/es/vef-crud-page/components/crud-table.js +1 -1
- package/es/vef-crud-page/hooks/use-action-buttons.js +1 -1
- package/es/vef-crud-page/hooks/use-crud-context.js +1 -1
- package/es/vef-crud-page/hooks/use-crud-schema.js +1 -1
- package/es/vef-crud-page/hooks/use-operation-buttons.js +1 -1
- package/es/vef-crud-page/index.js +1 -1
- package/es/vef-crud-page/store.js +1 -1
- package/es/vef-data-grid/index.js +1 -1
- package/es/vef-data-table/index.js +1 -1
- package/es/vef-divider/index.js +1 -1
- package/es/vef-drawer/components/action-button-wrapper.js +1 -1
- package/es/vef-drawer/components/button-props.js +1 -1
- package/es/vef-drawer/components/cancel-action-button.js +1 -1
- package/es/vef-drawer/components/ok-action-button.js +1 -1
- package/es/vef-drawer/context.js +1 -1
- package/es/vef-drawer/index.js +1 -1
- package/es/vef-dropdown/index.js +1 -1
- package/es/vef-dynamic-icon/index.js +1 -1
- package/es/vef-dynamic-icon/props.js +1 -1
- package/es/vef-empty/index.js +1 -1
- package/es/vef-empty-placeholder/index.js +1 -1
- package/es/vef-error/error-icon.js +1 -1
- package/es/vef-error/index.js +1 -1
- package/es/vef-filter/components/action-buttons.js +1 -1
- package/es/vef-filter/components/advanced-filter.js +1 -1
- package/es/vef-filter/components/basic-filter.js +1 -1
- package/es/vef-filter/components/fields/index.js +1 -1
- package/es/vef-filter/components/fields/input-number.js +1 -1
- package/es/vef-filter/components/fields/input.js +1 -1
- package/es/vef-filter/components/fields/radio.js +1 -1
- package/es/vef-filter/components/fields/select.js +1 -1
- package/es/vef-filter/components/fields/tree-select.js +1 -1
- package/es/vef-filter/components/filter-field.js +1 -1
- package/es/vef-filter/components/filter-item.js +1 -1
- package/es/vef-filter/event.js +1 -1
- package/es/vef-filter/helper.js +1 -1
- package/es/vef-filter/hooks/use-action-handlers.js +1 -1
- package/es/vef-filter/hooks/use-computed-values.js +1 -1
- package/es/vef-filter/hooks/use-filter-context.js +1 -1
- package/es/vef-filter/hooks/use-filter-initialization.js +1 -1
- package/es/vef-filter/hooks/use-filter-instance.js +1 -1
- package/es/vef-filter/hooks/use-filter-items.js +1 -1
- package/es/vef-filter/hooks/use-filter-values-change.js +1 -1
- package/es/vef-filter/hooks/use-label-config.js +1 -1
- package/es/vef-filter/index.js +1 -1
- package/es/vef-filter/store.js +1 -1
- package/es/vef-flex/index.js +1 -1
- package/es/vef-float-button/index.js +1 -1
- package/es/vef-float-button-group/index.js +1 -1
- package/es/vef-form/components/fields/icon-select.js +1 -1
- package/es/vef-form/components/fields/index.js +1 -1
- package/es/vef-form/components/fields/input-number.js +1 -1
- package/es/vef-form/components/fields/input.js +1 -1
- package/es/vef-form/components/fields/password.js +1 -1
- package/es/vef-form/components/fields/radio.js +1 -1
- package/es/vef-form/components/fields/select.js +1 -1
- package/es/vef-form/components/fields/textarea.js +1 -1
- package/es/vef-form/components/fields/tree-select.js +1 -1
- package/es/vef-form/components/form-actions.js +1 -1
- package/es/vef-form/components/form-content.js +1 -1
- package/es/vef-form/components/form-field.js +1 -1
- package/es/vef-form/components/form-group.js +1 -1
- package/es/vef-form/components/form-hidden-item.js +1 -1
- package/es/vef-form/components/form-item.js +1 -1
- package/es/vef-form/components/form-row.js +1 -1
- package/es/vef-form/event.js +1 -1
- package/es/vef-form/helper.js +1 -1
- package/es/vef-form/hooks/use-action-handlers.js +1 -1
- package/es/vef-form/hooks/use-columns-layout.js +1 -1
- package/es/vef-form/hooks/use-computed-values.js +1 -1
- package/es/vef-form/hooks/use-form-context.js +1 -1
- package/es/vef-form/hooks/use-form-initialization.js +1 -1
- package/es/vef-form/hooks/use-form-instance.js +1 -1
- package/es/vef-form/hooks/use-form-values-change.js +1 -1
- package/es/vef-form/hooks/use-label-width.js +1 -1
- package/es/vef-form/index.js +1 -1
- package/es/vef-form/store.js +1 -1
- package/es/vef-form/validation-rules.js +1 -1
- package/es/vef-form-drawer/index.js +1 -1
- package/es/vef-form-modal/index.js +1 -1
- package/es/vef-generic-select/index.js +1 -1
- package/es/vef-grid/index.js +1 -1
- package/es/vef-grid/props.js +1 -1
- package/es/vef-grid-item/index.js +1 -1
- package/es/vef-icon/index.js +1 -1
- package/es/vef-icon-select/index.js +1 -1
- package/es/vef-input/hooks/use-input-instance.js +1 -1
- package/es/vef-input/index.js +1 -1
- package/es/vef-input-number/hooks/use-input-number-instance.js +1 -1
- package/es/vef-input-number/index.js +1 -1
- package/es/vef-intellisense-code-editor/hooks/use-change-handler.js +1 -1
- package/es/vef-intellisense-code-editor/hooks/use-editor-options.js +1 -1
- package/es/vef-intellisense-code-editor/hooks/use-path.js +1 -1
- package/es/vef-intellisense-code-editor/index.js +1 -1
- package/es/vef-intellisense-code-editor/loader.js +1 -1
- package/es/vef-intellisense-code-editor/styles.js +1 -1
- package/es/vef-intellisense-code-editor/themes/github-light.json.js +1 -1
- package/es/vef-json-viewer/index.js +1 -1
- package/es/vef-layout/common-styles.js +1 -1
- package/es/vef-layout/components/content.js +1 -1
- package/es/vef-layout/components/font-size.js +1 -1
- package/es/vef-layout/components/fullscreen.js +1 -1
- package/es/vef-layout/components/header-action-icons.js +1 -1
- package/es/vef-layout/components/header-content.js +1 -1
- package/es/vef-layout/components/header.js +1 -1
- package/es/vef-layout/components/icon-boy.js +1 -1
- package/es/vef-layout/components/icon-girl.js +1 -1
- package/es/vef-layout/components/icon-menu-fold-left.js +1 -1
- package/es/vef-layout/components/icon-menu-unfold-left.js +1 -1
- package/es/vef-layout/components/menu-groups.js +1 -1
- package/es/vef-layout/components/message.js +1 -1
- package/es/vef-layout/components/search.js +1 -1
- package/es/vef-layout/components/sider.js +1 -1
- package/es/vef-layout/components/title.js +1 -1
- package/es/vef-layout/components/user-avatar.js +1 -1
- package/es/vef-layout/hooks/use-layout-context.js +1 -1
- package/es/vef-layout/index.js +1 -1
- package/es/vef-layout/logo.svg.js +1 -1
- package/es/vef-layout/store.js +1 -1
- package/es/vef-line-chart/index.js +1 -1
- package/es/vef-loading-placeholder/index.js +1 -1
- package/es/vef-login/index.js +1 -1
- package/es/vef-login/login-icon.js +1 -1
- package/es/vef-menu/index.js +1 -1
- package/es/vef-modal/components/action-button-wrapper.js +1 -1
- package/es/vef-modal/components/button-props.js +1 -1
- package/es/vef-modal/components/cancel-action-button.js +1 -1
- package/es/vef-modal/components/ok-action-button.js +1 -1
- package/es/vef-modal/context.js +1 -1
- package/es/vef-modal/index.js +1 -1
- package/es/vef-not-found/index.js +1 -1
- package/es/vef-not-found/not-found-icon.js +1 -1
- package/es/vef-page/index.js +1 -1
- package/es/vef-pagination/index.js +1 -1
- package/es/vef-pagination/props.js +1 -1
- package/es/vef-paragraph/index.js +1 -1
- package/es/vef-password/hooks/use-password-instance.js +1 -1
- package/es/vef-password/index.js +1 -1
- package/es/vef-pie-chart/index.js +1 -1
- package/es/vef-popconfirm/index.js +1 -1
- package/es/vef-popover/index.js +1 -1
- package/es/vef-radio/hooks/use-data-options.js +1 -1
- package/es/vef-radio/hooks/use-radio-instance.js +1 -1
- package/es/vef-radio/index.js +1 -1
- package/es/vef-rate/hooks/use-rate-instance.js +1 -1
- 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 +1 -1
- package/es/vef-row/index.js +1 -1
- package/es/vef-scroll-area/components/scrollbar.js +1 -1
- package/es/vef-scroll-area/index.js +1 -1
- package/es/vef-segment/index.js +1 -1
- package/es/vef-select/components/option.js +1 -1
- package/es/vef-select/hooks/use-data-options.js +1 -1
- package/es/vef-select/hooks/use-field-names.js +1 -1
- package/es/vef-select/hooks/use-render-label.js +1 -1
- package/es/vef-select/hooks/use-render-option.js +1 -1
- package/es/vef-select/hooks/use-select-instance.js +1 -1
- package/es/vef-select/index.js +1 -1
- package/es/vef-slider/hooks/use-slider-instance.js +1 -1
- package/es/vef-slider/index.js +1 -1
- package/es/vef-sortable-list/components/overlay-item.js +1 -1
- package/es/vef-sortable-list/components/sortable-item.js +1 -1
- package/es/vef-sortable-list/hooks/use-merged-items.js +1 -1
- package/es/vef-sortable-list/index.js +1 -1
- package/es/vef-space/index.js +1 -1
- package/es/vef-spin/index.js +1 -1
- package/es/vef-splitter/index.js +1 -1
- package/es/vef-splitter-panel/index.js +1 -1
- package/es/vef-status/index.js +1 -1
- package/es/vef-table/components/columns/bool.js +1 -1
- package/es/vef-table/components/columns/code.js +1 -1
- package/es/vef-table/components/columns/data-dictionary.js +1 -1
- package/es/vef-table/components/columns/enum.js +1 -1
- package/es/vef-table/components/columns/file.js +1 -1
- package/es/vef-table/components/columns/icon.js +1 -1
- package/es/vef-table/components/columns/id.js +1 -1
- package/es/vef-table/components/columns/image.js +1 -1
- package/es/vef-table/components/columns/index.js +1 -1
- package/es/vef-table/components/columns/markdown.js +1 -1
- package/es/vef-table/components/columns/number.js +1 -1
- package/es/vef-table/components/columns/render.js +1 -1
- package/es/vef-table/components/columns/rich-text.js +1 -1
- package/es/vef-table/components/columns/text.js +1 -1
- package/es/vef-table/components/columns-settings.js +1 -1
- package/es/vef-table/components/operation-buttons.js +1 -1
- package/es/vef-table/components/settings-icon.js +1 -1
- package/es/vef-table/components/table-footer.js +1 -1
- package/es/vef-table/helper.js +1 -1
- package/es/vef-table/hooks/use-computed-batch-buttons.js +1 -1
- package/es/vef-table/hooks/use-computed-columns.js +1 -1
- package/es/vef-table/hooks/use-computed-values.js +1 -1
- package/es/vef-table/hooks/use-data.js +1 -1
- package/es/vef-table/hooks/use-default-column-configs.js +1 -1
- package/es/vef-table/hooks/use-display-value.js +1 -1
- package/es/vef-table/hooks/use-helper-columns.js +1 -1
- package/es/vef-table/hooks/use-operation-column-width.js +1 -1
- package/es/vef-table/hooks/use-pagination-props.js +1 -1
- package/es/vef-table/hooks/use-row-props.js +1 -1
- package/es/vef-table/hooks/use-row-selection-config.js +1 -1
- package/es/vef-table/hooks/use-selected-rows.js +1 -1
- package/es/vef-table/hooks/use-table-columns.js +1 -1
- package/es/vef-table/hooks/use-table-context.js +1 -1
- package/es/vef-table/hooks/use-table-instance.js +1 -1
- package/es/vef-table/hooks/use-table-summary.js +1 -1
- package/es/vef-table/hooks/use-table-width.js +1 -1
- package/es/vef-table/index.js +1 -1
- package/es/vef-table/store.js +1 -1
- package/es/vef-tabs/index.js +1 -1
- package/es/vef-tag/index.js +1 -1
- package/es/vef-temporal-picker/helper.js +1 -1
- package/es/vef-temporal-picker/hooks/use-dayjs-value.js +1 -1
- package/es/vef-temporal-picker/hooks/use-temporal-limit.js +1 -1
- package/es/vef-temporal-picker/hooks/use-temporal-picker-instance.js +1 -1
- package/es/vef-temporal-picker/index.js +1 -1
- package/es/vef-temporal-range-picker/helper.js +1 -1
- package/es/vef-temporal-range-picker/hooks/use-dayjs-values.js +1 -1
- package/es/vef-temporal-range-picker/hooks/use-temporal-limit.js +1 -1
- package/es/vef-temporal-range-picker/hooks/use-temporal-range-picker-instance.js +1 -1
- package/es/vef-temporal-range-picker/index.js +1 -1
- package/es/vef-temporal-range-picker/props.js +1 -1
- package/es/vef-text/index.js +1 -1
- package/es/vef-textarea/hooks/use-textarea-instance.js +1 -1
- package/es/vef-textarea/index.js +1 -1
- package/es/vef-title/index.js +1 -1
- package/es/vef-tooltip/index.js +1 -1
- package/es/vef-tree-select/hooks/use-change-handler.js +1 -1
- package/es/vef-tree-select/hooks/use-data-options.js +1 -1
- package/es/vef-tree-select/hooks/use-tree-select-instance.js +1 -1
- package/es/vef-tree-select/index.js +1 -1
- package/es/vef-virtual-grid/index.js +1 -1
- package/es/vef-virtual-list/index.js +1 -1
- package/lib/index.cjs +1 -1
- package/lib/internal/base.css.cjs +1 -1
- package/lib/internal/chart.cjs +1 -1
- package/lib/internal/index.cjs +1 -1
- package/lib/internal/modern-normalize.css.cjs +1 -1
- package/lib/internal/utils.cjs +1 -1
- package/lib/vef-access-denied/access-denied-icon.cjs +1 -1
- package/lib/vef-access-denied/index.cjs +1 -1
- package/lib/vef-access-denied/props.cjs +1 -1
- package/lib/vef-action-buttons/index.cjs +1 -1
- package/lib/vef-action-buttons/props.cjs +1 -1
- package/lib/vef-approval-flow-editor/components/edge.cjs +1 -1
- package/lib/vef-approval-flow-editor/components/label-value.cjs +1 -1
- package/lib/vef-approval-flow-editor/components/node-content.cjs +1 -1
- package/lib/vef-approval-flow-editor/components/node-selector.cjs +1 -1
- package/lib/vef-approval-flow-editor/components/node-toolbar.cjs +1 -1
- package/lib/vef-approval-flow-editor/components/nodes/approval.cjs +1 -1
- package/lib/vef-approval-flow-editor/components/nodes/condition.cjs +1 -1
- package/lib/vef-approval-flow-editor/components/nodes/end.cjs +1 -1
- package/lib/vef-approval-flow-editor/components/nodes/handle.cjs +1 -1
- package/lib/vef-approval-flow-editor/components/nodes/index.cjs +1 -1
- package/lib/vef-approval-flow-editor/components/nodes/submit.cjs +1 -1
- package/lib/vef-approval-flow-editor/components/selector-content.cjs +1 -1
- package/lib/vef-approval-flow-editor/components/source-handle.cjs +1 -1
- package/lib/vef-approval-flow-editor/components/target-handle.cjs +1 -1
- package/lib/vef-approval-flow-editor/constants.cjs +1 -1
- package/lib/vef-approval-flow-editor/helper.cjs +1 -1
- package/lib/vef-approval-flow-editor/hooks/use-edges-interaction.cjs +1 -1
- package/lib/vef-approval-flow-editor/hooks/use-element-selection.cjs +1 -1
- package/lib/vef-approval-flow-editor/hooks/use-nodes-interaction.cjs +1 -1
- package/lib/vef-approval-flow-editor/index.cjs +1 -1
- package/lib/vef-approval-flow-editor/models/edge-node.cjs +1 -1
- package/lib/vef-approval-flow-editor/models/flow-node.cjs +1 -1
- package/lib/vef-approval-flow-editor/props.cjs +1 -1
- package/lib/vef-approval-flow-editor/store.cjs +1 -1
- package/lib/vef-approval-flow-editor/styles.cjs +1 -1
- package/lib/vef-approval-flow-editor/types.cjs +1 -1
- package/lib/vef-area-chart/index.cjs +1 -1
- package/lib/vef-area-chart/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 +1 -1
- package/lib/vef-avatar/props.cjs +1 -1
- package/lib/vef-avatar-group/index.cjs +1 -1
- package/lib/vef-avatar-group/props.cjs +1 -1
- package/lib/vef-badge/index.cjs +1 -1
- package/lib/vef-badge/props.cjs +1 -1
- package/lib/vef-bar-chart/index.cjs +1 -1
- package/lib/vef-bar-chart/props.cjs +1 -1
- package/lib/vef-bool/hooks/use-bool-instance.cjs +1 -1
- package/lib/vef-bool/index.cjs +1 -1
- package/lib/vef-bool/props.cjs +1 -1
- package/lib/vef-breadcrumb/index.cjs +1 -1
- 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 +1 -1
- package/lib/vef-card/props.cjs +1 -1
- package/lib/vef-card-meta/index.cjs +1 -1
- package/lib/vef-card-meta/props.cjs +1 -1
- package/lib/vef-chart-container/hooks/use-chart-container-context.cjs +1 -1
- package/lib/vef-chart-container/index.cjs +1 -1
- package/lib/vef-chart-container/props.cjs +1 -1
- package/lib/vef-chart-legend-content/index.cjs +1 -1
- package/lib/vef-chart-legend-content/props.cjs +1 -1
- package/lib/vef-chart-tooltip-content/index.cjs +1 -1
- package/lib/vef-chart-tooltip-content/props.cjs +1 -1
- package/lib/vef-checkbox/hooks/use-checkbox-instance.cjs +1 -1
- package/lib/vef-checkbox/hooks/use-data-options.cjs +1 -1
- package/lib/vef-checkbox/index.cjs +1 -1
- package/lib/vef-checkbox/props.cjs +1 -1
- package/lib/vef-code-editor/hooks/use-change-handler.cjs +1 -1
- package/lib/vef-code-editor/hooks/use-config-extensions.cjs +1 -1
- package/lib/vef-code-editor/hooks/use-height-props.cjs +1 -1
- package/lib/vef-code-editor/hooks/use-language-extensions.cjs +1 -1
- package/lib/vef-code-editor/hooks/use-setup-options.cjs +1 -1
- package/lib/vef-code-editor/index.cjs +1 -1
- package/lib/vef-code-editor/props.cjs +1 -1
- package/lib/vef-code-editor/styles.cjs +1 -1
- package/lib/vef-col/index.cjs +1 -1
- package/lib/vef-col/props.cjs +1 -1
- package/lib/vef-color-picker/index.cjs +1 -1
- package/lib/vef-color-picker/props.cjs +1 -1
- package/lib/vef-compact/index.cjs +1 -1
- 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 +1 -1
- package/lib/vef-config-provider/index.cjs +1 -1
- package/lib/vef-config-provider/props.cjs +1 -1
- package/lib/vef-config-provider/store.cjs +1 -1
- package/lib/vef-container/index.cjs +1 -1
- package/lib/vef-container/props.cjs +1 -1
- package/lib/vef-crud-page/components/crud-actions.cjs +1 -1
- package/lib/vef-crud-page/components/crud-filter.cjs +1 -1
- package/lib/vef-crud-page/components/crud-footer.cjs +1 -1
- package/lib/vef-crud-page/components/crud-form-modal.cjs +1 -1
- package/lib/vef-crud-page/components/crud-header.cjs +1 -1
- package/lib/vef-crud-page/components/crud-table.cjs +1 -1
- package/lib/vef-crud-page/hooks/use-action-buttons.cjs +1 -1
- package/lib/vef-crud-page/hooks/use-crud-context.cjs +1 -1
- package/lib/vef-crud-page/hooks/use-crud-schema.cjs +1 -1
- package/lib/vef-crud-page/hooks/use-operation-buttons.cjs +1 -1
- package/lib/vef-crud-page/index.cjs +1 -1
- 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-data-grid/index.cjs +1 -1
- package/lib/vef-data-grid/props.cjs +1 -1
- package/lib/vef-data-table/index.cjs +1 -1
- package/lib/vef-data-table/props.cjs +1 -1
- package/lib/vef-divider/index.cjs +1 -1
- package/lib/vef-divider/props.cjs +1 -1
- package/lib/vef-drawer/components/action-button-wrapper.cjs +1 -1
- package/lib/vef-drawer/components/button-props.cjs +1 -1
- package/lib/vef-drawer/components/cancel-action-button.cjs +1 -1
- package/lib/vef-drawer/components/ok-action-button.cjs +1 -1
- package/lib/vef-drawer/context.cjs +1 -1
- package/lib/vef-drawer/index.cjs +1 -1
- package/lib/vef-drawer/props.cjs +1 -1
- package/lib/vef-dropdown/index.cjs +1 -1
- package/lib/vef-dropdown/props.cjs +1 -1
- package/lib/vef-dynamic-icon/index.cjs +1 -1
- package/lib/vef-dynamic-icon/props.cjs +1 -1
- package/lib/vef-empty/index.cjs +1 -1
- package/lib/vef-empty/props.cjs +1 -1
- package/lib/vef-empty-placeholder/index.cjs +1 -1
- package/lib/vef-empty-placeholder/props.cjs +1 -1
- package/lib/vef-error/error-icon.cjs +1 -1
- package/lib/vef-error/index.cjs +1 -1
- package/lib/vef-error/props.cjs +1 -1
- package/lib/vef-filter/components/action-buttons.cjs +1 -1
- package/lib/vef-filter/components/advanced-filter.cjs +1 -1
- package/lib/vef-filter/components/basic-filter.cjs +1 -1
- package/lib/vef-filter/components/fields/index.cjs +1 -1
- package/lib/vef-filter/components/fields/input-number.cjs +1 -1
- package/lib/vef-filter/components/fields/input.cjs +1 -1
- package/lib/vef-filter/components/fields/props.cjs +1 -1
- package/lib/vef-filter/components/fields/radio.cjs +1 -1
- package/lib/vef-filter/components/fields/select.cjs +1 -1
- package/lib/vef-filter/components/fields/tree-select.cjs +1 -1
- package/lib/vef-filter/components/filter-field.cjs +1 -1
- package/lib/vef-filter/components/filter-item.cjs +1 -1
- package/lib/vef-filter/event.cjs +1 -1
- package/lib/vef-filter/helper.cjs +1 -1
- package/lib/vef-filter/hooks/use-action-handlers.cjs +1 -1
- package/lib/vef-filter/hooks/use-computed-values.cjs +1 -1
- package/lib/vef-filter/hooks/use-filter-context.cjs +1 -1
- package/lib/vef-filter/hooks/use-filter-initialization.cjs +1 -1
- package/lib/vef-filter/hooks/use-filter-instance.cjs +1 -1
- package/lib/vef-filter/hooks/use-filter-items.cjs +1 -1
- package/lib/vef-filter/hooks/use-filter-values-change.cjs +1 -1
- package/lib/vef-filter/hooks/use-label-config.cjs +1 -1
- package/lib/vef-filter/index.cjs +1 -1
- 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 +1 -1
- package/lib/vef-flex/props.cjs +1 -1
- package/lib/vef-float-button/index.cjs +1 -1
- package/lib/vef-float-button/props.cjs +1 -1
- package/lib/vef-float-button-group/index.cjs +1 -1
- package/lib/vef-float-button-group/props.cjs +1 -1
- package/lib/vef-form/components/fields/icon-select.cjs +1 -1
- package/lib/vef-form/components/fields/index.cjs +1 -1
- package/lib/vef-form/components/fields/input-number.cjs +1 -1
- package/lib/vef-form/components/fields/input.cjs +1 -1
- package/lib/vef-form/components/fields/password.cjs +1 -1
- package/lib/vef-form/components/fields/props.cjs +1 -1
- package/lib/vef-form/components/fields/radio.cjs +1 -1
- package/lib/vef-form/components/fields/select.cjs +1 -1
- package/lib/vef-form/components/fields/textarea.cjs +1 -1
- package/lib/vef-form/components/fields/tree-select.cjs +1 -1
- package/lib/vef-form/components/form-actions.cjs +1 -1
- package/lib/vef-form/components/form-content.cjs +1 -1
- package/lib/vef-form/components/form-field.cjs +1 -1
- package/lib/vef-form/components/form-group.cjs +1 -1
- package/lib/vef-form/components/form-hidden-item.cjs +1 -1
- package/lib/vef-form/components/form-item.cjs +1 -1
- package/lib/vef-form/components/form-row.cjs +1 -1
- package/lib/vef-form/event.cjs +1 -1
- package/lib/vef-form/helper.cjs +1 -1
- package/lib/vef-form/hooks/use-action-handlers.cjs +1 -1
- package/lib/vef-form/hooks/use-columns-layout.cjs +1 -1
- package/lib/vef-form/hooks/use-computed-values.cjs +1 -1
- package/lib/vef-form/hooks/use-form-context.cjs +1 -1
- package/lib/vef-form/hooks/use-form-initialization.cjs +1 -1
- package/lib/vef-form/hooks/use-form-instance.cjs +1 -1
- package/lib/vef-form/hooks/use-form-values-change.cjs +1 -1
- package/lib/vef-form/hooks/use-label-width.cjs +1 -1
- package/lib/vef-form/index.cjs +1 -1
- 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 +1 -1
- package/lib/vef-form-drawer/index.cjs +1 -1
- package/lib/vef-form-drawer/props.cjs +1 -1
- package/lib/vef-form-modal/index.cjs +1 -1
- package/lib/vef-form-modal/props.cjs +1 -1
- package/lib/vef-generic-select/index.cjs +1 -1
- package/lib/vef-generic-select/props.cjs +1 -1
- package/lib/vef-grid/index.cjs +1 -1
- package/lib/vef-grid/props.cjs +1 -1
- package/lib/vef-grid-item/index.cjs +1 -1
- 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 +1 -1
- package/lib/vef-icon-select/props.cjs +1 -1
- package/lib/vef-input/hooks/use-input-instance.cjs +1 -1
- package/lib/vef-input/index.cjs +1 -1
- package/lib/vef-input/props.cjs +1 -1
- package/lib/vef-input-number/hooks/use-input-number-instance.cjs +1 -1
- package/lib/vef-input-number/index.cjs +1 -1
- package/lib/vef-input-number/props.cjs +1 -1
- package/lib/vef-intellisense-code-editor/hooks/use-change-handler.cjs +1 -1
- package/lib/vef-intellisense-code-editor/hooks/use-editor-options.cjs +1 -1
- package/lib/vef-intellisense-code-editor/hooks/use-path.cjs +1 -1
- package/lib/vef-intellisense-code-editor/index.cjs +1 -1
- package/lib/vef-intellisense-code-editor/loader.cjs +1 -1
- package/lib/vef-intellisense-code-editor/props.cjs +1 -1
- package/lib/vef-intellisense-code-editor/styles.cjs +1 -1
- package/lib/vef-intellisense-code-editor/themes/github-light.json.cjs +1 -1
- package/lib/vef-json-viewer/index.cjs +1 -1
- package/lib/vef-json-viewer/props.cjs +1 -1
- package/lib/vef-layout/common-styles.cjs +1 -1
- package/lib/vef-layout/components/content.cjs +1 -1
- package/lib/vef-layout/components/font-size.cjs +1 -1
- package/lib/vef-layout/components/fullscreen.cjs +1 -1
- package/lib/vef-layout/components/header-action-icons.cjs +1 -1
- package/lib/vef-layout/components/header-content.cjs +1 -1
- package/lib/vef-layout/components/header.cjs +1 -1
- package/lib/vef-layout/components/icon-boy.cjs +1 -1
- package/lib/vef-layout/components/icon-girl.cjs +1 -1
- package/lib/vef-layout/components/icon-menu-fold-left.cjs +1 -1
- package/lib/vef-layout/components/icon-menu-unfold-left.cjs +1 -1
- package/lib/vef-layout/components/menu-groups.cjs +1 -1
- package/lib/vef-layout/components/message.cjs +1 -1
- package/lib/vef-layout/components/search.cjs +1 -1
- package/lib/vef-layout/components/sider.cjs +1 -1
- package/lib/vef-layout/components/title.cjs +1 -1
- package/lib/vef-layout/components/user-avatar.cjs +1 -1
- package/lib/vef-layout/hooks/use-layout-context.cjs +1 -1
- package/lib/vef-layout/index.cjs +1 -1
- 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-line-chart/index.cjs +1 -1
- package/lib/vef-line-chart/props.cjs +1 -1
- package/lib/vef-loading-placeholder/index.cjs +1 -1
- package/lib/vef-loading-placeholder/props.cjs +1 -1
- package/lib/vef-login/index.cjs +1 -1
- package/lib/vef-login/login-icon.cjs +1 -1
- package/lib/vef-login/props.cjs +1 -1
- package/lib/vef-menu/index.cjs +1 -1
- package/lib/vef-menu/props.cjs +1 -1
- package/lib/vef-modal/components/action-button-wrapper.cjs +1 -1
- package/lib/vef-modal/components/button-props.cjs +1 -1
- package/lib/vef-modal/components/cancel-action-button.cjs +1 -1
- package/lib/vef-modal/components/ok-action-button.cjs +1 -1
- package/lib/vef-modal/context.cjs +1 -1
- package/lib/vef-modal/index.cjs +1 -1
- package/lib/vef-modal/props.cjs +1 -1
- package/lib/vef-not-found/index.cjs +1 -1
- package/lib/vef-not-found/not-found-icon.cjs +1 -1
- package/lib/vef-not-found/props.cjs +1 -1
- package/lib/vef-page/index.cjs +1 -1
- package/lib/vef-page/props.cjs +1 -1
- package/lib/vef-pagination/index.cjs +1 -1
- package/lib/vef-pagination/props.cjs +1 -1
- package/lib/vef-paragraph/index.cjs +1 -1
- package/lib/vef-paragraph/props.cjs +1 -1
- package/lib/vef-password/hooks/use-password-instance.cjs +1 -1
- package/lib/vef-password/index.cjs +1 -1
- package/lib/vef-password/props.cjs +1 -1
- package/lib/vef-pie-chart/index.cjs +1 -1
- package/lib/vef-pie-chart/props.cjs +1 -1
- package/lib/vef-popconfirm/index.cjs +1 -1
- 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 +1 -1
- package/lib/vef-radio/hooks/use-radio-instance.cjs +1 -1
- package/lib/vef-radio/index.cjs +1 -1
- package/lib/vef-radio/props.cjs +1 -1
- package/lib/vef-rate/hooks/use-rate-instance.cjs +1 -1
- 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 +1 -1
- package/lib/vef-ribbon/props.cjs +1 -1
- package/lib/vef-row/index.cjs +1 -1
- 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-segment/index.cjs +1 -1
- package/lib/vef-segment/props.cjs +1 -1
- package/lib/vef-select/components/option.cjs +1 -1
- package/lib/vef-select/hooks/use-data-options.cjs +1 -1
- package/lib/vef-select/hooks/use-field-names.cjs +1 -1
- package/lib/vef-select/hooks/use-render-label.cjs +1 -1
- package/lib/vef-select/hooks/use-render-option.cjs +1 -1
- package/lib/vef-select/hooks/use-select-instance.cjs +1 -1
- package/lib/vef-select/index.cjs +1 -1
- package/lib/vef-select/props.cjs +1 -1
- package/lib/vef-slider/hooks/use-slider-instance.cjs +1 -1
- 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 +1 -1
- package/lib/vef-sortable-list/components/sortable-item.cjs +1 -1
- package/lib/vef-sortable-list/hooks/use-merged-items.cjs +1 -1
- package/lib/vef-sortable-list/index.cjs +1 -1
- package/lib/vef-sortable-list/props.cjs +1 -1
- package/lib/vef-space/index.cjs +1 -1
- package/lib/vef-space/props.cjs +1 -1
- package/lib/vef-spin/index.cjs +1 -1
- package/lib/vef-spin/props.cjs +1 -1
- package/lib/vef-splitter/index.cjs +1 -1
- package/lib/vef-splitter/props.cjs +1 -1
- package/lib/vef-splitter-panel/index.cjs +1 -1
- package/lib/vef-splitter-panel/props.cjs +1 -1
- package/lib/vef-status/index.cjs +1 -1
- package/lib/vef-status/props.cjs +1 -1
- package/lib/vef-table/components/columns/bool.cjs +1 -1
- package/lib/vef-table/components/columns/code.cjs +1 -1
- package/lib/vef-table/components/columns/data-dictionary.cjs +1 -1
- package/lib/vef-table/components/columns/enum.cjs +1 -1
- package/lib/vef-table/components/columns/file.cjs +1 -1
- package/lib/vef-table/components/columns/icon.cjs +1 -1
- package/lib/vef-table/components/columns/id.cjs +1 -1
- package/lib/vef-table/components/columns/image.cjs +1 -1
- package/lib/vef-table/components/columns/index.cjs +1 -1
- package/lib/vef-table/components/columns/markdown.cjs +1 -1
- package/lib/vef-table/components/columns/number.cjs +1 -1
- package/lib/vef-table/components/columns/props.cjs +1 -1
- package/lib/vef-table/components/columns/render.cjs +1 -1
- package/lib/vef-table/components/columns/rich-text.cjs +1 -1
- package/lib/vef-table/components/columns/text.cjs +1 -1
- package/lib/vef-table/components/columns-settings.cjs +1 -1
- package/lib/vef-table/components/operation-buttons.cjs +1 -1
- package/lib/vef-table/components/settings-icon.cjs +1 -1
- package/lib/vef-table/components/table-footer.cjs +1 -1
- package/lib/vef-table/helper.cjs +1 -1
- package/lib/vef-table/hooks/use-computed-batch-buttons.cjs +1 -1
- package/lib/vef-table/hooks/use-computed-columns.cjs +1 -1
- package/lib/vef-table/hooks/use-computed-values.cjs +1 -1
- package/lib/vef-table/hooks/use-data.cjs +1 -1
- package/lib/vef-table/hooks/use-default-column-configs.cjs +1 -1
- package/lib/vef-table/hooks/use-display-value.cjs +1 -1
- package/lib/vef-table/hooks/use-helper-columns.cjs +1 -1
- package/lib/vef-table/hooks/use-operation-column-width.cjs +1 -1
- package/lib/vef-table/hooks/use-pagination-props.cjs +1 -1
- package/lib/vef-table/hooks/use-row-props.cjs +1 -1
- package/lib/vef-table/hooks/use-row-selection-config.cjs +1 -1
- package/lib/vef-table/hooks/use-selected-rows.cjs +1 -1
- package/lib/vef-table/hooks/use-table-columns.cjs +1 -1
- package/lib/vef-table/hooks/use-table-context.cjs +1 -1
- package/lib/vef-table/hooks/use-table-instance.cjs +1 -1
- package/lib/vef-table/hooks/use-table-summary.cjs +1 -1
- package/lib/vef-table/hooks/use-table-width.cjs +1 -1
- package/lib/vef-table/index.cjs +1 -1
- 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 +1 -1
- package/lib/vef-tabs/props.cjs +1 -1
- package/lib/vef-tag/index.cjs +1 -1
- package/lib/vef-tag/props.cjs +1 -1
- package/lib/vef-temporal-picker/helper.cjs +1 -1
- package/lib/vef-temporal-picker/hooks/use-dayjs-value.cjs +1 -1
- package/lib/vef-temporal-picker/hooks/use-temporal-limit.cjs +1 -1
- package/lib/vef-temporal-picker/hooks/use-temporal-picker-instance.cjs +1 -1
- package/lib/vef-temporal-picker/index.cjs +1 -1
- package/lib/vef-temporal-picker/props.cjs +1 -1
- package/lib/vef-temporal-range-picker/helper.cjs +1 -1
- package/lib/vef-temporal-range-picker/hooks/use-dayjs-values.cjs +1 -1
- package/lib/vef-temporal-range-picker/hooks/use-temporal-limit.cjs +1 -1
- package/lib/vef-temporal-range-picker/hooks/use-temporal-range-picker-instance.cjs +1 -1
- package/lib/vef-temporal-range-picker/index.cjs +1 -1
- package/lib/vef-temporal-range-picker/props.cjs +1 -1
- package/lib/vef-text/index.cjs +1 -1
- package/lib/vef-text/props.cjs +1 -1
- package/lib/vef-textarea/hooks/use-textarea-instance.cjs +1 -1
- package/lib/vef-textarea/index.cjs +1 -1
- package/lib/vef-textarea/props.cjs +1 -1
- package/lib/vef-title/index.cjs +1 -1
- 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 +1 -1
- package/lib/vef-tree-select/hooks/use-data-options.cjs +1 -1
- package/lib/vef-tree-select/hooks/use-tree-select-instance.cjs +1 -1
- package/lib/vef-tree-select/index.cjs +1 -1
- package/lib/vef-tree-select/props.cjs +1 -1
- package/lib/vef-virtual-grid/index.cjs +1 -1
- package/lib/vef-virtual-grid/props.cjs +1 -1
- package/lib/vef-virtual-list/index.cjs +1 -1
- package/lib/vef-virtual-list/props.cjs +1 -1
- package/package.json +4 -4
package/es/vef-password/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{isFunction}from"@vef-framework/shared";import{Input}from"antd";import{forwardRef,useMemo}from"react";import"../internal/index.js";import{usePasswordInstance}from"./hooks/use-password-instance.js";import{convertBasicSizeToUiSize}from"../internal/utils.js";const{Password}=Input;function normalizeValue(value){return value===""?null:value}const VefPassword=forwardRef(({defaultValue,value,size,clearable,showCount,onChange,onEnterKeyPress,onBlur,onFocus,...restProps},ref)=>{const eventHandlers=useMemo(()=>({onChange:isFunction(onChange)?event=>onChange(normalizeValue(event.target.value)):void 0,onPressEnter:isFunction(onEnterKeyPress)?event=>onEnterKeyPress(normalizeValue(event.target.value)):void 0,onBlur:isFunction(onBlur)?event=>onBlur(normalizeValue(event.target.value)):void 0,onFocus:isFunction(onFocus)?event=>onFocus(normalizeValue(event.target.value)):void 0}),[onChange,onEnterKeyPress,onBlur,onFocus]),passwordRef=usePasswordInstance(ref);return jsx(Password,{ref:passwordRef,allowClear:clearable,defaultValue,showCount,size:convertBasicSizeToUiSize(size),value,...restProps,...eventHandlers})});VefPassword.displayName="VefPassword";/*! 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 */export{VefPassword as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx,jsxs}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{themeVariables}from"@vef-framework/shared";import{useMemo,memo}from"react";import{PieChart,Tooltip,Legend,Pie,Label}from"recharts";import VefChartContainer from"../vef-chart-container/index.js";import{VefChartLegendContent}from"../vef-chart-legend-content/index.js";import VefChartTooltipContent from"../vef-chart-tooltip-content/index.js";const valueStyle=css`
|
|
2
2
|
fill: ${themeVariables.colorText};
|
|
3
3
|
font-size: ${themeVariables.fontSizeHeading3};
|
|
4
4
|
font-weight: ${themeVariables.fontWeightStrong};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{defaultMessageTitle,infoIcon}from"@vef-framework/shared";import{Popconfirm}from"antd";import{CheckIcon}from"lucide-react";import{forwardRef,useRef,useImperativeHandle}from"react";import VefIcon from"../vef-icon/index.js";const okButtonProps={autoInsertSpace:!1,icon:jsx(VefIcon,{children:jsx(CheckIcon,{})})},cancelButtonProps={autoInsertSpace:!1,variant:"text",color:"default"};function popupClickHandler(event){event.stopPropagation()}const VefPopconfirm=forwardRef(({title=defaultMessageTitle,content,cancelable=!0,defaultOpened,opened,onOpenedChange,onOk,onCancel,...restProps},ref)=>{const tooltipRef=useRef(null);return useImperativeHandle(ref,()=>tooltipRef.current.nativeElement),jsx(Popconfirm,{ref:tooltipRef,cancelButtonProps,defaultOpen:defaultOpened,description:content,icon:infoIcon,okButtonProps,open:opened,showCancel:cancelable,title,onCancel,onConfirm:onOk,onOpenChange:onOpenedChange,onPopupClick:popupClickHandler,...restProps})});VefPopconfirm.displayName="VefPopconfirm";/*! 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 */export{VefPopconfirm as default};
|
package/es/vef-popover/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{Popover}from"antd";import{forwardRef,useRef,useMemo,useImperativeHandle}from"react";const VefPopover=forwardRef(({title,content,contentStyle,trigger="click",arrow=!1,...restProps},ref)=>{const popoverRef=useRef(null),styles=useMemo(()=>({body:contentStyle}),[contentStyle]);return useImperativeHandle(ref,()=>popoverRef.current.nativeElement),jsx(Popover,{ref:popoverRef,arrow,content,styles,title,trigger,...restProps})});VefPopover.displayName="VefPopover";/*! 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 */export{VefPopover as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{useComputedOptions}from"@vef-framework/hooks";import{isFunction,isNullish}from"@vef-framework/shared";import{useMemo,useLayoutEffect}from"react";function useDataOptions({value,onChange,...rest}){const{normalizedOptions,defaultOption,isLoading}=useComputedOptions({...rest,isGrouped:!1,filterable:!1,selectedOptionValues:value?[value]:[]}),optionsMap=useMemo(()=>normalizedOptions.reduce((map,option)=>(map.set(option.value,option),map),new Map),[normalizedOptions]);return useLayoutEffect(()=>{defaultOption&&isFunction(onChange)&&isNullish(value)&&onChange(defaultOption.value,defaultOption)},[defaultOption,onChange,value]),{optionsMap,normalizedOptions,isLoading}}/*! 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 */export{useDataOptions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{useRef,useImperativeHandle}from"react";function useRadioInstance(ref,dataOptions){const radioRef=useRef(null);return useImperativeHandle(ref,()=>({blur:()=>{radioRef.current?.blur()},focus:()=>{radioRef.current?.focus({preventScroll:!0})},getDataOptions:()=>dataOptions})),radioRef}/*! 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 */export{useRadioInstance};
|
package/es/vef-radio/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{themeVariables,isFunction}from"@vef-framework/shared";import{Radio}from"antd";import{useMemo,memo,forwardRef}from"react";import"../internal/index.js";import VefLoadingPlaceholder from"../vef-loading-placeholder/index.js";import VefTooltip from"../vef-tooltip/index.js";import{useDataOptions}from"./hooks/use-data-options.js";import{useRadioInstance}from"./hooks/use-radio-instance.js";import{convertBasicSizeToUiSize}from"../internal/utils.js";const{Group}=Radio,loadingPlaceholder=jsx("div",{css:css`
|
|
2
2
|
height: ${themeVariables.controlHeight}
|
|
3
3
|
`,children:jsx(VefLoadingPlaceholder,{})});function VefRadioBase({defaultValue,value,disabled,block,variant,buttonVariant,buttonSize,onChange,...restProps},ref){const{optionsMap,normalizedOptions,isLoading}=useDataOptions({value,onChange,...restProps}),radioRef=useRadioInstance(ref,normalizedOptions),handleChange=useMemo(()=>{if(isFunction(onChange))return({target:{value:value2}})=>{onChange(value2,optionsMap.get(value2))}},[onChange,optionsMap]);if(isLoading)return loadingPlaceholder;const radios=normalizedOptions.map(option=>{const{value:value2,label,disabled:disabled2,description}=option;return description?jsx(VefTooltip,{content:description,children:jsx(Radio,{disabled:disabled2,value:value2,children:label})},value2):jsx(Radio,{disabled:disabled2,value:value2,children:label},value2)});return jsx(Group,{ref:radioRef,block,buttonStyle:buttonVariant,defaultValue,disabled,optionType:variant,size:convertBasicSizeToUiSize(buttonSize),onChange:handleChange,...value===void 0?{}:{value},children:radios})}const VefRadio=memo(forwardRef(VefRadioBase));VefRadio.displayName="VefRadio";/*! 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 */export{VefRadio as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{useRef,useImperativeHandle}from"react";function useRateInstance(ref){const rateRef=useRef(null);return useImperativeHandle(ref,()=>({blur:()=>rateRef.current?.blur(),focus:()=>rateRef.current?.focus()})),rateRef}/*! 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 */export{useRateInstance};
|
package/es/vef-rate/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{isFunction}from"@vef-framework/shared";import{Rate}from"antd";import{forwardRef,useMemo}from"react";import{useRateInstance}from"./hooks/use-rate-instance.js";const VefRate=forwardRef(({character,...restProps},ref)=>{const characterValue=useMemo(()=>isFunction(character)?({index})=>character(index):character,[character]),rateRef=useRateInstance(ref);return jsx(Rate,{ref:rateRef,character:characterValue,...restProps})});VefRate.displayName="VefRate";/*! 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 */export{VefRate as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{useGapSizeNormalizer}from"@vef-framework/hooks";import{isArray}from"@vef-framework/shared";import{motion}from"motion/react";import{forwardRef,Children,isValidElement,useMemo,memo}from"react";import VefResponsiveItem from"../vef-responsive-item/index.js";const containerStyle=css`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: repeat(var(--vef-responsive-container-auto-mode), minmax(var(--vef-responsive-container-base-width), 1fr));
|
|
4
4
|
gap: var(--vef-responsive-container-gap);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{motion}from"motion/react";import{forwardRef,useMemo}from"react";const itemStyle=css`
|
|
2
2
|
grid-column: span var(--vef-responsive-item-span);
|
|
3
3
|
`,VefResponsiveItem=forwardRef(({style,span=1,children,...restProps},ref)=>{const mergedStyle=useMemo(()=>({...style,"--vef-responsive-item-span":span*2}),[span,style]);return jsx(motion.div,{ref,css:itemStyle,style:mergedStyle,...restProps,children})});VefResponsiveItem.displayName="VefResponsiveItem";/*! 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 */export{VefResponsiveItem as default};
|
package/es/vef-ribbon/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{useColorTokens}from"@vef-framework/hooks";import{Badge}from"antd";import{useMemo}from"react";const{Ribbon}=Badge;function VefRibbon({color,position="right",children}){const colorTokens=useColorTokens(),ribbonProps=useMemo(()=>{if(!color)return{placement:position==="right"?"end":"start",text:children};if(colorTokens.has(color))return{color:color?colorTokens.get(color):void 0,placement:position==="right"?"end":"start",text:children};throw new Error(`Invalid color value "${color}" of VefRibbon component. Color must be a valid color token.`)},[children,color,colorTokens,position]);return jsx(Ribbon,{...ribbonProps})}/*! 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 */export{VefRibbon as default};
|
package/es/vef-row/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{Row}from"antd";function VefRow({...props}){return jsx(Row,{...props})}VefRow.displayName="VefRow";/*! 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 */export{VefRow as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{ScrollAreaScrollbar,ScrollAreaThumb}from"@radix-ui/react-scroll-area";import{themeVariables}from"@vef-framework/shared";import{forwardRef}from"react";const scrollbarStyle=css`
|
|
2
2
|
--vef-scroll-area-scrollbar-padding: 2px;
|
|
3
3
|
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsxs,jsx}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{Root,Viewport,Corner}from"@radix-ui/react-scroll-area";import{isNumber}from"@vef-framework/shared";import{forwardRef,useMemo}from"react";import VefScrollbar from"./components/scrollbar.js";const scrollAreaStyle=css`
|
|
2
2
|
position: relative;
|
|
3
3
|
overflow: hidden;
|
|
4
4
|
height: var(--vef-scroll-area-height, 100%);
|
package/es/vef-segment/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{Segmented}from"antd";import"../internal/index.js";import{convertBasicSizeToUiSize}from"../internal/utils.js";function VefSegment({className,style,defaultValue,value,size,orientation="horizontal",shape="default",items,onChange,...restProps}){return jsx(Segmented,{className,defaultValue,options:items,shape:shape==="rounded"?"round":"default",size:convertBasicSizeToUiSize(size),style,value,vertical:orientation==="vertical",onChange,...restProps})}/*! 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 */export{VefSegment as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsxs,jsx}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{themeVariables}from"@vef-framework/shared";import{memo}from"react";import VefText from"../../vef-text/index.js";const optionWithDescriptionStyle=css`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
row-gap: 4px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{useComputedOptions}from"@vef-framework/hooks";import{isArray,isFunction,isNullish}from"@vef-framework/shared";import{useLayoutEffect}from"react";function useDataOptions({value,grouped=!1,multiple=!1,onChange,...rest}){const{onFilterKeywordChange,normalizedOptions,defaultOption,isLoading,fallbackOptions,isFallbackOptionsLoading}=useComputedOptions({...rest,isGrouped:grouped,selectedOptionValues:isArray(value)?value:value?[value]:[]});return useLayoutEffect(()=>{defaultOption&&isFunction(onChange)&&isNullish(value)&&onChange(multiple?[defaultOption.value]:defaultOption.value,multiple?[defaultOption]:defaultOption)},[defaultOption,multiple,onChange,value]),{onFilterKeywordChange,normalizedOptions,isLoading,fallbackOptions,isFallbackOptionsLoading}}/*! 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 */export{useDataOptions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{useMemo}from"react";function useFieldNames(grouped){return useMemo(()=>grouped?{label:"label",value:"value",options:"children",groupLabel:"label"}:{label:"label",value:"value"},[grouped])}/*! 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 */export{useFieldNames};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{LoadingOutlined}from"@ant-design/icons";import{css}from"@emotion/react";import{useCallback}from"react";import VefSpin from"../../vef-spin/index.js";const loadingPlaceholderStyle=css`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{isFunction}from"@vef-framework/shared";import{useMemo}from"react";import VefOptionMemo from"../components/option.js";function useRenderOption(renderOption){return useMemo(()=>isFunction(renderOption)?({data},{index})=>renderOption({...data,index}):({data:{label,description}})=>jsx(VefOptionMemo,{description,label:label??"Missing Label"}),[renderOption])}/*! 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 */export{useRenderOption};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{useRef,useImperativeHandle}from"react";function useSelectInstance(ref,dataOptions){const selectRef=useRef(null);return useImperativeHandle(ref,()=>({blur:()=>{selectRef.current?.blur()},focus:()=>{selectRef.current?.focus({preventScroll:!0})},getDataOptions:()=>dataOptions})),selectRef}/*! 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 */export{useSelectInstance};
|
package/es/vef-select/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{useOptionFilter}from"@vef-framework/hooks";import{styles}from"@vef-framework/shared";import{Select}from"antd";import{memo,forwardRef}from"react";import"../internal/index.js";import VefLoadingPlaceholder from"../vef-loading-placeholder/index.js";import{useDataOptions}from"./hooks/use-data-options.js";import{useFieldNames}from"./hooks/use-field-names.js";import{useRenderLabel}from"./hooks/use-render-label.js";import{useRenderOption}from"./hooks/use-render-option.js";import{useSelectInstance}from"./hooks/use-select-instance.js";import{convertBasicSizeToUiSize}from"../internal/utils.js";const listHeight=280,loadingPlaceholder=jsx("div",{css:{height:listHeight/2},children:jsx(VefLoadingPlaceholder,{})});function VefSelectBase({defaultValue,value,size,clearable,disabled,placeholder,variant,onClear,onBlur,onFocus,onChange,onSelect,onDeselect,multiple=!1,grouped=!1,maxCount,renderOption,filterable=!1,filterFromRemote=!1,...restProps},ref){const{onFilterKeywordChange,normalizedOptions,isLoading,fallbackOptions,isFallbackOptionsLoading}=useDataOptions({value,grouped,multiple,onChange,filterable,filterFromRemote,...restProps}),renderOptionToUse=useRenderOption(renderOption),filterOption=useOptionFilter(filterable,filterFromRemote),fieldNames=useFieldNames(grouped),renderLabel=useRenderLabel(isFallbackOptionsLoading,fallbackOptions),selectRef=useSelectInstance(ref,normalizedOptions);return jsx(Select,{ref:selectRef,defaultActiveFirstOption:!0,allowClear:clearable,css:styles.fullWidth,defaultValue,disabled,fieldNames,filterOption,labelRender:renderLabel,listHeight,loading:isLoading,maxCount:multiple?maxCount:void 0,maxTagCount:multiple?"responsive":void 0,mode:multiple?"multiple":void 0,notFoundContent:isLoading?loadingPlaceholder:void 0,optionRender:renderOptionToUse,options:normalizedOptions,placeholder,showSearch:filterable,size:convertBasicSizeToUiSize(size),value,variant,onBlur,onChange,onClear,onDeselect,onFocus,onSearch:onFilterKeywordChange,onSelect})}const VefSelect=memo(forwardRef(VefSelectBase));VefSelect.displayName="VefSelect";/*! 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 */export{VefSelect as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{useRef,useImperativeHandle}from"react";function useSliderInstance(ref){const sliderRef=useRef(null);return useImperativeHandle(ref,()=>({blur:()=>sliderRef.current?.blur(),focus:()=>sliderRef.current?.focus()})),sliderRef}/*! 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 */export{useSliderInstance};
|
package/es/vef-slider/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{Slider}from"antd";import{forwardRef,useMemo}from"react";import{useSliderInstance}from"./hooks/use-slider-instance.js";const VefSlider=forwardRef(({step,tipFormatter,onChange,...restProps},ref)=>{const tooltipProps=useMemo(()=>{if(tipFormatter)return{formatter:value=>tipFormatter(value)}},[tipFormatter]),sliderRef=useSliderInstance(ref);return jsx(Slider,{ref:sliderRef,step:step==="mark"?null:step,tooltip:tooltipProps,onChange,...restProps})});VefSlider.displayName="VefSlider";/*! 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 */export{VefSlider as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx,jsxs,Fragment}from"@emotion/react/jsx-runtime";import{HolderOutlined}from"@ant-design/icons";import{css}from"@emotion/react";const defaultHandleIcon=jsx(HolderOutlined,{}),handlePresetStyle=css`
|
|
2
2
|
cursor: move;
|
|
3
3
|
user-select: none;
|
|
4
4
|
touch-action: none;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx,jsxs}from"@emotion/react/jsx-runtime";import{HolderOutlined}from"@ant-design/icons";import{useSortable}from"@dnd-kit/sortable";import{CSS}from"@dnd-kit/utilities";import{css}from"@emotion/react";const defaultHandleIcon=jsx(HolderOutlined,{}),handlePresetStyle=css`
|
|
2
2
|
cursor: move;
|
|
3
3
|
user-select: none;
|
|
4
4
|
touch-action: none;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{isNullish}from"@vef-framework/shared";import{useState,useCallback}from"react";function useMergedItems(defaultItems,items,onChange){if(isNullish(defaultItems)&&isNullish(items))throw new Error("At least one of `defaultItems` and `items` must be provided for VefSortableList component.");const[internalItems,setInternalItems]=useState(defaultItems??[]),mergedItems=items??internalItems,mergedOnChange=useCallback(moveItems=>{items?onChange?.(moveItems(items)):setInternalItems(moveItems)},[items,onChange]);return[mergedItems,mergedOnChange]}/*! 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 */export{useMergedItems};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx,jsxs}from"@emotion/react/jsx-runtime";import{useSensors,useSensor,PointerSensor,DndContext,DragOverlay,closestCenter}from"@dnd-kit/core";import{restrictToParentElement,restrictToWindowEdges}from"@dnd-kit/modifiers";import{arrayMove,SortableContext,verticalListSortingStrategy,horizontalListSortingStrategy}from"@dnd-kit/sortable";import{isFunction}from"@vef-framework/shared";import{useMemo,useState,useCallback,memo}from"react";import VefOverlayItem from"./components/overlay-item.js";import VefSortableItem from"./components/sortable-item.js";import{useMergedItems}from"./hooks/use-merged-items.js";const defaultItemKey="id";function VefSortableListBase({defaultItems,items,itemKey=defaultItemKey,className,style,orientation="vertical",useOverlay=!0,restrictStrategy="parent",onChange,...restProps}){const[mergedItems,mergedOnChange]=useMergedItems(defaultItems,items,onChange),sensors=useSensors(useSensor(PointerSensor)),itemKeyFn=useMemo(()=>isFunction(itemKey)?itemKey:item=>item[itemKey],[itemKey]),[activeItem,setActiveItem]=useState(),handleDragStart=useCallback(({active})=>{setActiveItem(mergedItems[active.data.current.index])},[mergedItems]),handleDragEnd=useCallback(({active,over})=>{over&&active.id!==over.id&&mergedOnChange(items2=>arrayMove(items2,active.data.current.index,over.data.current.index))},[mergedOnChange]),itemKeys=mergedItems.map(item=>itemKeyFn(item)),{itemClassName,itemStyle,disabled,...overlayItemProps}=restProps;return jsx(DndContext,{collisionDetection:closestCenter,sensors,modifiers:[restrictStrategy==="parent"?restrictToParentElement:restrictToWindowEdges],onDragEnd:handleDragEnd,onDragStart:handleDragStart,children:jsx(SortableContext,{items:itemKeys,strategy:orientation==="vertical"?verticalListSortingStrategy:horizontalListSortingStrategy,children:jsxs("div",{className,style,children:[mergedItems.map((item,index)=>{const key=itemKeyFn(item);return jsx(VefSortableItem,{item,itemIndex:index,itemKey:key,...restProps},key)}),useOverlay&&jsx(DragOverlay,{className:itemClassName,style:itemStyle,wrapperElement:"div",modifiers:[restrictStrategy==="parent"?restrictToParentElement:restrictToWindowEdges],children:activeItem&&jsx(VefOverlayItem,{item:activeItem,...overlayItemProps})})]})})})}const VefSortableList=memo(VefSortableListBase);VefSortableList.displayName="VefSortableList";/*! 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 */export{VefSortableList as default};
|
package/es/vef-space/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{useGapSizeNormalizer}from"@vef-framework/hooks";import{isArray}from"@vef-framework/shared";import{Space}from"antd";import{useMemo}from"react";function VefSpace({gap,...restProps}){const normalizeGapSize=useGapSizeNormalizer(),size=useMemo(()=>isArray(gap)?gap.map(it=>normalizeGapSize(it)):gap&&normalizeGapSize(gap),[gap,normalizeGapSize]);return jsx(Space,{size,...restProps})}/*! 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 */export{VefSpace as default};
|
package/es/vef-spin/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{Spin}from"antd";function VefSpin({size,...restProps}){return jsx(Spin,{size:size==="medium"?"default":size,...restProps})}/*! 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 */export{VefSpin as default};
|
package/es/vef-splitter/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{Splitter}from"antd";function VefSplitter({orientation,onResizeBegin,...rest}){return jsx(Splitter,{layout:orientation,onResizeStart:onResizeBegin,...rest})}/*! 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 */export{VefSplitter as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{Splitter}from"antd";const{Panel}=Splitter;function VefSplitterPanel({...rest}){return jsx(Panel,{...rest})}/*! 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 */export{VefSplitterPanel as default};
|
package/es/vef-status/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{useColorTokens}from"@vef-framework/hooks";import{Badge}from"antd";import{useMemo}from"react";function VefStatus({processing=!1,color="default",children}){const colorTokens=useColorTokens(),badgeProps=useMemo(()=>{if(color==="default")return{status:"default",text:children};if(colorTokens.has(color))return{status:processing?"processing":"default",color:colorTokens.get(color),text:children};throw new Error(`Invalid color value "${color}" of VefStatus component. Color must be either "default" or a valid color token.`)},[color,colorTokens,processing,children]);return jsx(Badge,{...badgeProps})}/*! 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 */export{VefStatus as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{VefError,isString,isNullish,isDeepEqual}from"@vef-framework/shared";import{useMemo,memo}from"react";import VefText from"../../../vef-text/index.js";import{useComputedValues}from"../../hooks/use-computed-values.js";function Bool({value,record,rowIndex,columnProps}){if(columnProps.type!=="Boolean")throw new VefError(-1,"Column type must be Boolean");const{defaultValue,trueText="是",falseText="否",bold,italic,color,width}=columnProps,[boldToUse,italicToUse,colorOrMapping]=useComputedValues([{key:"bold",rawValue:bold,defaultValue:!1},{key:"italic",rawValue:italic,defaultValue:!1},{key:"color",rawValue:color}],value,record,rowIndex),colorToUse=useMemo(()=>{if(isString(colorOrMapping))return colorOrMapping;if(colorOrMapping)return!isNullish(value)&&Object.hasOwn(colorOrMapping,value)?colorOrMapping[value]:colorOrMapping["*"]},[colorOrMapping,value]),valueToDisplay=useMemo(()=>value?value?trueText:falseText:defaultValue,[value,trueText,falseText,defaultValue]),cssToUse=useMemo(()=>{if(width)return css({maxWidth:`${width}px !important`})},[width]);return jsx(VefText,{bold:boldToUse,color:colorToUse,css:cssToUse,italic:italicToUse,children:valueToDisplay})}const BoolMemo=memo(Bool,isDeepEqual);/*! 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 */export{BoolMemo as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";function Code({value}){return jsx("span",{children:value})}/*! 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 */export{Code as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{VefError,isString,isNullish}from"@vef-framework/shared";import{useMemo}from"react";import VefText from"../../../vef-text/index.js";import{useComputedValues}from"../../hooks/use-computed-values.js";const DATA_DICTIONARY_NAME_SUFFIX="Name";function DataDictionary({value,record,rowIndex,columnProps}){if(columnProps.type!=="DataDictionary")throw new VefError(-1,"Column type must be DataDictionary");const{name,defaultValue,ellipsis,bold,italic,color,width}=columnProps,[boldToUse,italicToUse,colorOrMapping]=useComputedValues([{key:"bold",rawValue:bold,defaultValue:!1},{key:"italic",rawValue:italic,defaultValue:!1},{key:"color",rawValue:color}],value,record,rowIndex),colorToUse=useMemo(()=>{if(isString(colorOrMapping))return colorOrMapping;if(colorOrMapping)return!isNullish(value)&&Object.hasOwn(colorOrMapping,value)?colorOrMapping[value]:colorOrMapping["*"]},[colorOrMapping,value]),valueToDisplay=useMemo(()=>isNullish(value)||isNullish(record[`${name}${DATA_DICTIONARY_NAME_SUFFIX}`])?defaultValue:record[`${name}${DATA_DICTIONARY_NAME_SUFFIX}`],[value,record,name,defaultValue]),cssToUse=useMemo(()=>{if(width)return css({maxWidth:`${width}px !important`})},[width]);return jsx(VefText,{bold:boldToUse,color:colorToUse,css:cssToUse,ellipsis,italic:italicToUse,children:valueToDisplay})}/*! 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 */export{DataDictionary as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{VefError,isString,isNullish}from"@vef-framework/shared";import{useMemo}from"react";import VefTag from"../../../vef-tag/index.js";import VefText from"../../../vef-text/index.js";import{useComputedValues}from"../../hooks/use-computed-values.js";const ENUM_NAME_SUFFIX="Name",tagTextStyle=css({color:"inherit",fontSize:"inherit"});function Enum({value,record,rowIndex,columnProps}){if(columnProps.type!=="Enum")throw new VefError(-1,"Column type must be Enum");const{name,defaultValue,showAsTag=!0,bold,italic,ellipsis,color,width}=columnProps,[boldToUse,italicToUse,colorOrMapping]=useComputedValues([{key:"bold",rawValue:bold,defaultValue:!1},{key:"italic",rawValue:italic,defaultValue:!1},{key:"color",rawValue:color}],value,record,rowIndex),colorToUse=useMemo(()=>{if(isString(colorOrMapping))return colorOrMapping;if(colorOrMapping)return!isNullish(value)&&Object.hasOwn(colorOrMapping,value)?colorOrMapping[value]:colorOrMapping["*"]},[colorOrMapping,value]),valueToDisplay=useMemo(()=>isNullish(value)||isNullish(record[`${name}${ENUM_NAME_SUFFIX}`])?defaultValue:record[`${name}${ENUM_NAME_SUFFIX}`],[value,record,name,defaultValue]),cssToUse=useMemo(()=>{if(width)return css({maxWidth:`${width}px !important`})},[width]);return showAsTag?jsx(VefTag,{color:colorToUse,children:jsx(VefText,{bold:boldToUse,css:tagTextStyle,italic:italicToUse,children:valueToDisplay})}):jsx(VefText,{bold:boldToUse,color:colorToUse,css:cssToUse,ellipsis,italic:italicToUse,children:valueToDisplay})}/*! 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 */export{Enum as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";function File({value}){return jsx("span",{children:value})}/*! 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 */export{File as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";function Icon({value}){return jsx("span",{children:value})}/*! 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 */export{Icon as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{VefError,isNullish}from"@vef-framework/shared";import{useMemo}from"react";import VefText from"../../../vef-text/index.js";import{useComputedValues}from"../../hooks/use-computed-values.js";const ID_NAME_SUFFIX="Name",ID_NAME_REPLACE_REGEX=/Id$/;function Id({value,record,rowIndex,columnProps}){if(columnProps.type!=="Id")throw new VefError(-1,"Column type must be Id");const{name,defaultValue,ellipsis,bold,italic,color,width}=columnProps,[boldToUse,italicToUse,colorToUse]=useComputedValues([{key:"bold",rawValue:bold,defaultValue:!1},{key:"italic",rawValue:italic,defaultValue:!1},{key:"color",rawValue:color}],value,record,rowIndex),valueToDisplay=useMemo(()=>{const nameToUse=name.replace(ID_NAME_REPLACE_REGEX,ID_NAME_SUFFIX);return isNullish(value)||isNullish(record[nameToUse])?defaultValue:record[nameToUse]},[value,record,name,defaultValue]),cssToUse=useMemo(()=>{if(width)return css({maxWidth:`${width}px !important`})},[width]);return jsx(VefText,{bold:boldToUse,color:colorToUse,css:cssToUse,ellipsis,italic:italicToUse,children:valueToDisplay})}/*! 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 */export{Id as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{extractBaseName}from"@vef-framework/shared";function Image({value}){return jsx("img",{alt:extractBaseName(value),src:value})}/*! 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 */export{Image as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import BoolMemo from"./bool.js";import Code from"./code.js";import DataDictionary from"./data-dictionary.js";import Enum from"./enum.js";import File from"./file.js";import Icon from"./icon.js";import Id from"./id.js";import Image from"./image.js";import Markdown from"./markdown.js";import NumberColumn from"./number.js";import Render from"./render.js";import RichText from"./rich-text.js";import Text from"./text.js";const columnComponents={Text,Number:NumberColumn,Enum,Boolean:BoolMemo,DataDictionary,Id,Render,Markdown,Icon,File,RichText,Image,Code};/*! 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 */export{columnComponents};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";function Markdown({value}){return jsx("span",{children:value})}/*! 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 */export{Markdown as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{VefError,isNullish}from"@vef-framework/shared";import{useMemo}from"react";import VefText from"../../../vef-text/index.js";import{useComputedValues}from"../../hooks/use-computed-values.js";import{useDisplayValue}from"../../hooks/use-display-value.js";function NumberColumn({value,record,rowIndex,columnProps}){if(columnProps.type!=="Number")throw new VefError(-1,"Column type must be Number");const{defaultValue,formatter,prefix,suffix,bold,italic,color,width}=columnProps,displayValue=useDisplayValue(value,record,rowIndex,{defaultValue,formatter,prefix,suffix}),[boldToUse,italicToUse,colorToUse]=useComputedValues([{key:"bold",rawValue:bold,defaultValue:!1},{key:"italic",rawValue:italic,defaultValue:!1},{key:"color",rawValue:color}],value,record,rowIndex),cssToUse=useMemo(()=>{if(width)return css({maxWidth:`${width}px !important`})},[width]);return isNullish(displayValue)?null:jsx(VefText,{bold:boldToUse,color:colorToUse,css:cssToUse,italic:italicToUse,children:displayValue})}/*! 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 */export{NumberColumn as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{VefError}from"@vef-framework/shared";import{useMemo}from"react";function Render({value,record,rowIndex,columnProps}){if(columnProps.type!=="Render")throw new VefError(-1,"Column type must be Render");const{render,width}=columnProps,content=render?.(value,record,rowIndex),cssToUse=useMemo(()=>{if(width)return css({maxWidth:`${width}px !important`})},[width]);return jsx("div",{css:cssToUse,children:content})}/*! 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 */export{Render as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";function RichText({value}){return jsx("span",{children:value})}/*! 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 */export{RichText as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{VefError,isNullish}from"@vef-framework/shared";import{useMemo}from"react";import VefText from"../../../vef-text/index.js";import{useComputedValues}from"../../hooks/use-computed-values.js";import{useDisplayValue}from"../../hooks/use-display-value.js";function Text({value,record,rowIndex,columnProps}){if(columnProps.type!=="Text")throw new VefError(-1,"Column type must be Text");const{defaultValue,formatter,prefix,suffix,ellipsis,bold,italic,color,copyable,width}=columnProps,[boldToUse,italicToUse,colorToUse]=useComputedValues([{key:"bold",rawValue:bold,defaultValue:!1},{key:"italic",rawValue:italic,defaultValue:!1},{key:"color",rawValue:color}],value,record,rowIndex),valueToDisplay=useDisplayValue(value,record,rowIndex,{defaultValue,formatter,prefix,suffix}),cssToUse=useMemo(()=>{if(width)return css({maxWidth:`${width}px !important`})},[width]);return isNullish(valueToDisplay)?null:jsx(VefText,{bold:boldToUse,color:colorToUse,copyable,css:cssToUse,ellipsis,ellipsisTip:ellipsis?valueToDisplay:void 0,italic:italicToUse,children:valueToDisplay})}/*! 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 */export{Text as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsxs,jsx,Fragment}from"@emotion/react/jsx-runtime";import{RollbackOutlined,VerticalRightOutlined,VerticalLeftOutlined}from"@ant-design/icons";import{css}from"@emotion/react";import{themeVariables}from"@vef-framework/shared";import{Checkbox}from"antd";import{useMemo,useCallback,memo}from"react";import VefBool from"../../vef-bool/index.js";import VefButton from"../../vef-button/index.js";import VefDivider from"../../vef-divider/index.js";import VefSortableList from"../../vef-sortable-list/index.js";import VefText from"../../vef-text/index.js";import{useTableContextSelector}from"../hooks/use-table-context.js";const columnsSettingsPanelStyle=css`
|
|
2
2
|
width: 300px;
|
|
3
3
|
padding: ${themeVariables.paddingSm};
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsxs,jsx}from"@emotion/react/jsx-runtime";import{MoreOutlined}from"@ant-design/icons";import{css}from"@emotion/react";import{useComputedActionButtons}from"@vef-framework/hooks";import{invokeMaybeAsyncFn,showConfirmation}from"@vef-framework/shared";import{useMemo,useState,useCallback}from"react";import VefButton from"../../vef-button/index.js";import VefDropdown from"../../vef-dropdown/index.js";import VefFlex from"../../vef-flex/index.js";import VefPopconfirm from"../../vef-popconfirm/index.js";import{useTableContextSelector}from"../hooks/use-table-context.js";const operationButtonStyle=css`
|
|
2
2
|
.vef-btn-sm {
|
|
3
3
|
--vef-control-height-sm: 24px;
|
|
4
4
|
--vef-button-padding-inline-sm: 4px;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{themeVariables}from"@vef-framework/shared";import{SettingsIcon}from"lucide-react";import{memo}from"react";import VefIcon from"../../vef-icon/index.js";import{useTableContextSelector}from"../hooks/use-table-context.js";const primaryColorStyle=css`
|
|
2
2
|
color: ${themeVariables.colorPrimary};
|
|
3
3
|
`;function VefSettingsIconBase(){const columnConfigMapHasChanged=useTableContextSelector(ctx=>ctx.columnConfigMapHasChanged);return jsx(VefIcon,{css:columnConfigMapHasChanged?primaryColorStyle:void 0,children:jsx(SettingsIcon,{})})}const VefSettingsIcon=memo(VefSettingsIconBase,()=>!1);/*! 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 */export{VefSettingsIcon as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsxs,jsx}from"@emotion/react/jsx-runtime";import{css}from"@emotion/react";import{themeVariables,invokeMaybeAsyncFn}from"@vef-framework/shared";import{useMemo,memo}from"react";import VefButton from"../../vef-button/index.js";import VefPagination from"../../vef-pagination/index.js";import VefText from"../../vef-text/index.js";import{useTableContextSelector}from"../hooks/use-table-context.js";const footerStyle=css`
|
|
2
2
|
width: 100%;
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: center;
|
package/es/vef-table/helper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{compileDynamicFn,isFunction,isExpression}from"@vef-framework/shared";function computeValue(rawValue,value,record,rowIndex,defaultValue){return isFunction(rawValue)?rawValue(value,record,rowIndex):isExpression(rawValue)?compileDynamicFn(rawValue,"value","record","rowIndex",`return ${rawValue.expression}`)(value,record,rowIndex):rawValue??defaultValue}/*! 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 */export{computeValue};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{useComputedActionButtons}from"@vef-framework/hooks";import{useMemo}from"react";function useComputedBatchActionButtons(batchActionButtons,tableContext){const{externalContext,isFetching,refetch,selectedKeys,selectedRecords}=tableContext,batchActionButtonContext=useMemo(()=>({isFetching,refetch,selectedKeys,selectedRecords,...externalContext??{}}),[externalContext,isFetching,refetch,selectedKeys,selectedRecords]);return{computedBatchActionButtons:useComputedActionButtons(batchActionButtons,batchActionButtonContext),batchActionButtonContext}}/*! 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 */export{useComputedBatchActionButtons};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{useMemo}from"react";function useComputedColumns(columns,columnConfigMap){return useMemo(()=>columns.map(column=>{const{name}=column,config=columnConfigMap.get(name);return{...column,show:config.show,fixed:config.fixed}}).sort((one,another)=>columnConfigMap.get(one.name).order-columnConfigMap.get(another.name).order),[columns,columnConfigMap])}/*! 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 */export{useComputedColumns};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{useDeepMemo}from"@vef-framework/hooks";import{computeValue}from"../helper.js";function useComputedValues(values,value,record,rowIndex,returnAsObject=!1){const computedValues=useDeepMemo(()=>values.reduce((acc,it)=>{const{key,rawValue,defaultValue}=it,computedValue=computeValue(rawValue,value,record,rowIndex,defaultValue);return acc[key]=computedValue,acc},{}),[record,rowIndex,value,values]);return returnAsObject?values.reduce((acc,{key})=>(acc[key]=computedValues[key],acc),{}):values.map(({key})=>computedValues[key])}/*! 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 */export{useComputedValues};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{useDataQuery}from"@vef-framework/hooks";import{isShallowEqual,isNumber,isArray}from"@vef-framework/shared";import{useRef}from"react";function useData({apiParams,...queryConfig},paginated,paginationParams){const lastApiParamsRef=useRef(),{data,isLoading,isFetching,isSuccess,refetch}=useDataQuery({apiParams:paginated?{...paginationParams,page:isShallowEqual(lastApiParamsRef.current,apiParams)?paginationParams.page:1,...apiParams}:apiParams,keepPreviousData:!0,staleTime:0,...queryConfig});if(lastApiParamsRef.current=apiParams,isSuccess){if(paginated){if(!Object.hasOwn(data,"total")||!Object.hasOwn(data,"items"))throw new Error("The paginated data of VefTable is invalid. The data must contain the `total` and `items` properties. Please check the data.");if(!isNumber(data.total))throw new Error("The `total` property of the paginated data of VefTable is invalid. It must be a number.");if(!isArray(data.items))throw new Error("The `items` property of the paginated data of VefTable is invalid. It must be an array.")}else if(!isArray(data))throw new Error("The data of VefTable is invalid. It must be an array.")}return{data:paginated?data?.items:data,isFetching,isLoading,total:paginated?data?.total:void 0,refetch}}/*! 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 */export{useData};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{useMemo}from"react";function useDefaultColumnConfigs(columns){return useMemo(()=>{const columnConfigs=new Map;let currentOrder=1;for(const column of columns){const{name,title,fixed,configurable}=column;columnConfigs.set(name,{title:title??name,show:!0,fixed,order:currentOrder++,configurable:configurable??!0})}return columnConfigs},[columns])}/*! 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 */export{useDefaultColumnConfigs};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{isNullish,isFunction,isExpression,compileDynamicFn}from"@vef-framework/shared";import{useMemo}from"react";function useDisplayValue(value,record,rowIndex,config){const{defaultValue,formatter,prefix,suffix}=config,valueToUse=isNullish(value)?defaultValue:value;return useMemo(()=>{if(isFunction(formatter))return formatter(value,record,rowIndex);if(isExpression(formatter))return compileDynamicFn(formatter,"value","record","rowIndex",`return ${formatter.expression}`)(value,record,rowIndex);if(!isNullish(valueToUse))return`${prefix??""}${valueToUse}${suffix??""}`},[formatter,valueToUse,prefix,suffix,value,record,rowIndex])}/*! 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 */export{useDisplayValue};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{jsx}from"@emotion/react/jsx-runtime";import{useAuthorizedItems}from"@vef-framework/hooks";import{isDeepEqual}from"@vef-framework/shared";import{useMemo}from"react";import VefColumnsSettings from"../components/columns-settings.js";import VefOperationButtons from"../components/operation-buttons.js";import VefSettingsIcon from"../components/settings-icon.js";import{useOperationColumnWidth}from"./use-operation-column-width.js";const DEFAULT_MAX_VISIBLE_OPERATION_BUTTONS=3;function useHelperColumns({showRowNumber,operationButtons,maxVisibleOperationButtons,size}){const rowNumberColumn=useMemo(()=>{if(showRowNumber)return{key:"_rowNumber",title:"#",align:"center",fixed:"left",width:48,shouldCellUpdate:()=>!1,render:(_,__,rowIndex)=>rowIndex+1}},[showRowNumber]),authorizedOperationButtons=useAuthorizedItems(operationButtons??[]),operationColumnWidth=useOperationColumnWidth(authorizedOperationButtons,maxVisibleOperationButtons??DEFAULT_MAX_VISIBLE_OPERATION_BUTTONS,size),operationColumn=useMemo(()=>{if(authorizedOperationButtons&&authorizedOperationButtons.length>0)return{key:"_operationButtons",title:"操作",align:"center",fixed:"right",filterIcon:()=>jsx(VefSettingsIcon,{}),filterDropdown:()=>jsx(VefColumnsSettings,{}),width:operationColumnWidth,shouldCellUpdate:(record,prevRecord)=>!isDeepEqual(record,prevRecord),render:(_,record,rowIndex)=>jsx(VefOperationButtons,{maxVisibleOperationButtons:maxVisibleOperationButtons??DEFAULT_MAX_VISIBLE_OPERATION_BUTTONS,operationButtons:authorizedOperationButtons,record,rowIndex})}},[authorizedOperationButtons,maxVisibleOperationButtons,operationColumnWidth]);return{rowNumberColumn,operationColumn}}/*! 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 */export{useHelperColumns};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{useThemeTokens}from"@vef-framework/hooks";import{max}from"@vef-framework/shared";import{useMemo}from"react";function useOperationColumnWidth(operationButtons,maxVisibleOperationButtons,size="medium"){const{Button:buttonThemeTokens}=useThemeTokens(),cellInlinePadding=size==="large"?16:8,fontSize=buttonThemeTokens?.contentFontSizeSM??16;return useMemo(()=>{if(operationButtons.length===0)return 0;if(operationButtons.length>maxVisibleOperationButtons){const longestButtons=new Set;for(let i=0;i<maxVisibleOperationButtons;i++){const longestButton=max(operationButtons,button=>longestButtons.has(button)?0:button.label.length);longestButton&&longestButtons.add(longestButton)}return calculateButtonsWidth(Array.from(longestButtons),fontSize,cellInlinePadding,!0)}return calculateButtonsWidth(operationButtons,fontSize,cellInlinePadding,!1)},[cellInlinePadding,fontSize,maxVisibleOperationButtons,operationButtons])}function calculateButtonsWidth(operationButtons,fontSize,cellInlinePadding,includeMoreButtonWidth){const fontWidth=fontSize+4,buttonInlinePadding=4*2;return operationButtons.map(button=>{const baseWidth=button.label.length*fontWidth+buttonInlinePadding;return button.icon?baseWidth+fontWidth+8:baseWidth}).reduce((acc,width)=>acc+width,0)+(includeMoreButtonWidth?fontWidth+buttonInlinePadding:0)+cellInlinePadding*2}/*! 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 */export{useOperationColumnWidth};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{useState,useMemo}from"react";import{defaultPageSizeOptions}from"../../vef-pagination/props.js";function usePaginationProps(paginated,size){const[paginationParams,setPaginationParams]=useState({page:1,size:defaultPageSizeOptions[2]}),handlePaginationChange=useMemo(()=>{if(paginated)return(pageNumber,pageSize)=>{setPaginationParams({page:pageNumber,size:pageSize})}},[paginated,setPaginationParams]);return{paginationProps:useMemo(()=>{if(paginated)return{pageNumber:paginationParams.page,pageSize:paginationParams.size,size:size==="small"?"small":"medium",onChange:handlePaginationChange}},[handlePaginationChange,paginated,paginationParams.page,paginationParams.size,size]),paginationParams}}/*! 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 */export{usePaginationProps};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.122, build time: 2025-03-11T09:32:18.529Z, made by Venus. */import{useMemo}from"react";function useRowProps({enableRowClick=!1,enableRowClickForSelection=!1,onRowClick,disabledSelection,handleRowClickSelection}){return useMemo(()=>{if(enableRowClick)return(record,index)=>{const disabled=disabledSelection?.(record)??!1;return{style:{cursor:disabled?"not-allowed":"pointer"},onClick:disabled?void 0:()=>{enableRowClickForSelection||onRowClick?.(record,index??-1),handleRowClickSelection?.(record)}}}},[disabledSelection,enableRowClick,enableRowClickForSelection,handleRowClickSelection,onRowClick])}/*! 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 */export{useRowProps};
|