@vef-framework/components 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/utils.js +1 -1
- package/dist/vef-access-denied/access-denied-icon.js +1 -1
- package/dist/vef-access-denied/index.js +1 -1
- package/dist/vef-action-buttons/index.js +1 -1
- package/dist/vef-badge/index.js +1 -1
- package/dist/vef-bool/hooks/use-bool-instance.js +1 -1
- package/dist/vef-bool/index.js +1 -1
- package/dist/vef-button/components/base-button.js +1 -1
- package/dist/vef-button/index.js +1 -1
- package/dist/vef-card/index.js +2 -2
- package/dist/vef-card-meta/index.js +1 -1
- package/dist/vef-checkbox/hooks/use-checkbox-instance.js +1 -1
- package/dist/vef-checkbox/hooks/use-data-options.js +1 -1
- package/dist/vef-checkbox/index.js +1 -1
- package/dist/vef-col/index.js +1 -1
- package/dist/vef-color-picker/index.js +2 -2
- package/dist/vef-compact/index.js +1 -1
- package/dist/vef-config-provider/fonts/din/bold.woff2.js +1 -1
- package/dist/vef-config-provider/fonts/din/regular.woff2.js +1 -1
- package/dist/vef-config-provider/hooks/use-ui-config.js +1 -1
- package/dist/vef-config-provider/index.js +1 -1
- package/dist/vef-config-provider/reset-style.js +1 -1
- package/dist/vef-config-provider/store.js +1 -1
- package/dist/vef-container/index.js +1 -1
- package/dist/vef-crud-page/components/crud-actions.js +1 -1
- package/dist/vef-crud-page/components/crud-filter.js +1 -1
- package/dist/vef-crud-page/components/crud-footer.js +1 -1
- package/dist/vef-crud-page/components/crud-form-modal.js +1 -1
- package/dist/vef-crud-page/components/crud-header.js +1 -1
- package/dist/vef-crud-page/components/crud-table.js +1 -1
- package/dist/vef-crud-page/hooks/use-action-buttons.js +1 -1
- package/dist/vef-crud-page/hooks/use-crud-context.js +1 -1
- package/dist/vef-crud-page/hooks/use-crud-schema.js +1 -1
- package/dist/vef-crud-page/hooks/use-operation-buttons.js +1 -1
- package/dist/vef-crud-page/index.js +1 -1
- package/dist/vef-crud-page/store.js +1 -1
- package/dist/vef-divider/index.js +1 -1
- package/dist/vef-drawer/components/action-button-wrapper.js +1 -1
- package/dist/vef-drawer/components/button-props.js +1 -1
- package/dist/vef-drawer/components/cancel-action-button.js +1 -1
- package/dist/vef-drawer/components/ok-action-button.js +1 -1
- package/dist/vef-drawer/context.js +1 -1
- package/dist/vef-drawer/index.js +1 -1
- package/dist/vef-dropdown/index.js +2 -2
- package/dist/vef-empty/index.js +1 -1
- package/dist/vef-empty-placeholder/index.js +1 -1
- package/dist/vef-error/error-icon.js +1 -1
- package/dist/vef-error/index.js +1 -1
- package/dist/vef-filter/components/action-buttons.js +1 -1
- package/dist/vef-filter/components/advanced-filter.js +1 -1
- package/dist/vef-filter/components/basic-filter.js +1 -1
- package/dist/vef-filter/components/fields/index.js +2 -2
- package/dist/vef-filter/components/fields/input-number.js +1 -1
- package/dist/vef-filter/components/fields/input.js +1 -1
- package/dist/vef-filter/components/filter-field.js +1 -1
- package/dist/vef-filter/components/filter-item.js +2 -2
- package/dist/vef-filter/event.js +1 -1
- package/dist/vef-filter/helper.js +1 -1
- package/dist/vef-filter/hooks/use-action-handlers.js +1 -1
- package/dist/vef-filter/hooks/use-computed-values.js +1 -1
- package/dist/vef-filter/hooks/use-filter-context.js +1 -1
- package/dist/vef-filter/hooks/use-filter-initialization.js +1 -1
- package/dist/vef-filter/hooks/use-filter-instance.js +1 -1
- package/dist/vef-filter/hooks/use-filter-items.d.ts +1 -2
- package/dist/vef-filter/hooks/use-filter-items.js +1 -1
- package/dist/vef-filter/hooks/use-filter-values-change.js +1 -1
- package/dist/vef-filter/hooks/use-label-config.js +1 -1
- package/dist/vef-filter/index.js +1 -1
- package/dist/vef-filter/store.js +2 -2
- package/dist/vef-flex/index.js +2 -2
- package/dist/vef-flex/props.d.ts +1 -2
- package/dist/vef-float-button/index.js +1 -1
- package/dist/vef-float-button/props.d.ts +1 -1
- package/dist/vef-float-button-group/index.js +1 -1
- package/dist/vef-form/components/fields/index.js +2 -2
- package/dist/vef-form/components/fields/input-number.js +1 -1
- package/dist/vef-form/components/fields/input.js +1 -1
- package/dist/vef-form/components/fields/props.d.ts +1 -2
- package/dist/vef-form/components/form-actions.js +1 -1
- package/dist/vef-form/components/form-content.js +1 -1
- package/dist/vef-form/components/form-field.js +1 -1
- package/dist/vef-form/components/form-group.js +1 -1
- package/dist/vef-form/components/form-hidden-item.js +1 -1
- package/dist/vef-form/components/form-item.js +2 -2
- package/dist/vef-form/components/form-row.js +1 -1
- package/dist/vef-form/event.js +1 -1
- package/dist/vef-form/helper.js +1 -1
- package/dist/vef-form/hooks/use-action-handlers.js +1 -1
- package/dist/vef-form/hooks/use-columns-layout.js +1 -1
- package/dist/vef-form/hooks/use-computed-values.js +1 -1
- package/dist/vef-form/hooks/use-form-context.js +1 -1
- package/dist/vef-form/hooks/use-form-initialization.js +1 -1
- package/dist/vef-form/hooks/use-form-instance.js +1 -1
- package/dist/vef-form/hooks/use-form-values-change.js +1 -1
- package/dist/vef-form/hooks/use-label-width.js +1 -1
- package/dist/vef-form/index.js +1 -1
- package/dist/vef-form/props.d.ts +1 -2
- package/dist/vef-form/store.js +1 -1
- package/dist/vef-form/types.d.ts +1 -2
- package/dist/vef-form/validation-rules.js +1 -1
- package/dist/vef-form-drawer/index.js +1 -1
- package/dist/vef-form-drawer/props.d.ts +1 -2
- package/dist/vef-form-modal/index.js +1 -1
- package/dist/vef-form-modal/props.d.ts +1 -2
- package/dist/vef-grid/index.js +1 -1
- package/dist/vef-grid/props.js +1 -1
- package/dist/vef-grid-item/index.js +1 -1
- package/dist/vef-icon/index.js +1 -1
- package/dist/vef-input/hooks/use-input-instance.js +1 -1
- package/dist/vef-input/index.js +2 -2
- package/dist/vef-input-number/hooks/use-input-number-instance.js +1 -1
- package/dist/vef-input-number/index.js +1 -1
- package/dist/vef-loading-placeholder/index.js +1 -1
- package/dist/vef-login/index.js +1 -1
- package/dist/vef-login/login-icon.js +1 -1
- package/dist/vef-modal/components/action-button-wrapper.js +1 -1
- package/dist/vef-modal/components/button-props.js +1 -1
- package/dist/vef-modal/components/cancel-action-button.js +1 -1
- package/dist/vef-modal/components/ok-action-button.js +1 -1
- package/dist/vef-modal/context.js +1 -1
- package/dist/vef-modal/index.js +3 -3
- package/dist/vef-modal/props.d.ts +1 -2
- package/dist/vef-not-found/index.js +1 -1
- package/dist/vef-not-found/not-found-icon.js +1 -1
- package/dist/vef-page/index.js +1 -1
- package/dist/vef-pagination/index.js +1 -1
- package/dist/vef-pagination/props.js +1 -1
- package/dist/vef-paragraph/index.js +2 -2
- package/dist/vef-paragraph/props.d.ts +1 -2
- package/dist/vef-password/hooks/use-password-instance.js +1 -1
- package/dist/vef-password/index.js +2 -2
- package/dist/vef-popconfirm/index.js +1 -1
- package/dist/vef-popover/index.js +1 -1
- package/dist/vef-radio/hooks/use-data-options.d.ts +1 -2
- package/dist/vef-radio/hooks/use-data-options.js +1 -1
- package/dist/vef-radio/hooks/use-radio-instance.js +1 -1
- package/dist/vef-radio/index.d.ts +1 -2
- package/dist/vef-radio/index.js +1 -1
- package/dist/vef-radio/props.d.ts +1 -2
- package/dist/vef-rate/hooks/use-rate-instance.js +1 -1
- package/dist/vef-rate/index.js +2 -2
- package/dist/vef-responsive-container/index.js +3 -3
- package/dist/vef-responsive-container/props.d.ts +1 -2
- package/dist/vef-responsive-item/index.js +1 -1
- package/dist/vef-responsive-item/props.d.ts +1 -2
- package/dist/vef-ribbon/index.js +1 -1
- package/dist/vef-row/index.js +1 -1
- package/dist/vef-row/props.d.ts +1 -1
- package/dist/vef-scroll-area/components/scrollbar.js +1 -1
- package/dist/vef-scroll-area/index.js +1 -1
- package/dist/vef-select/components/option.js +1 -1
- package/dist/vef-select/hooks/use-data-options.d.ts +1 -2
- package/dist/vef-select/hooks/use-data-options.js +1 -1
- package/dist/vef-select/hooks/use-field-names.js +1 -1
- package/dist/vef-select/hooks/use-label-render.js +1 -1
- package/dist/vef-select/hooks/use-option-render.js +1 -1
- package/dist/vef-select/hooks/use-select-instance.js +1 -1
- package/dist/vef-select/index.d.ts +1 -2
- package/dist/vef-select/index.js +1 -1
- package/dist/vef-select/props.d.ts +1 -2
- package/dist/vef-slider/hooks/use-slider-instance.js +1 -1
- package/dist/vef-slider/index.js +1 -1
- package/dist/vef-sortable-list/components/overlay-item.js +1 -1
- package/dist/vef-sortable-list/components/sortable-item.js +1 -1
- package/dist/vef-sortable-list/hooks/use-merged-items.js +1 -1
- package/dist/vef-sortable-list/index.js +1 -1
- package/dist/vef-space/index.js +2 -2
- package/dist/vef-space/props.d.ts +1 -2
- package/dist/vef-spin/index.js +1 -1
- package/dist/vef-spin/props.d.ts +1 -2
- package/dist/vef-splitter/index.js +1 -1
- package/dist/vef-splitter/props.d.ts +1 -2
- package/dist/vef-splitter-panel/index.js +1 -1
- package/dist/vef-status/index.js +1 -1
- package/dist/vef-table/components/columns/bool.js +1 -1
- package/dist/vef-table/components/columns/code.js +1 -1
- package/dist/vef-table/components/columns/data-dictionary.js +1 -1
- package/dist/vef-table/components/columns/enum.js +1 -1
- package/dist/vef-table/components/columns/file.js +1 -1
- package/dist/vef-table/components/columns/icon.js +1 -1
- package/dist/vef-table/components/columns/id.js +1 -1
- package/dist/vef-table/components/columns/image.js +1 -1
- package/dist/vef-table/components/columns/index.js +2 -2
- package/dist/vef-table/components/columns/markdown.js +1 -1
- package/dist/vef-table/components/columns/number.js +1 -1
- package/dist/vef-table/components/columns/props.d.ts +1 -2
- package/dist/vef-table/components/columns/render.js +1 -1
- package/dist/vef-table/components/columns/rich-text.js +1 -1
- package/dist/vef-table/components/columns/text.js +1 -1
- package/dist/vef-table/components/columns-settings.js +1 -1
- package/dist/vef-table/components/operation-buttons.js +1 -1
- package/dist/vef-table/components/settings-icon.js +1 -1
- package/dist/vef-table/components/table-footer.js +1 -1
- package/dist/vef-table/helper.js +1 -1
- package/dist/vef-table/hooks/use-computed-batch-buttons.js +1 -1
- package/dist/vef-table/hooks/use-computed-columns.js +1 -1
- package/dist/vef-table/hooks/use-computed-values.js +1 -1
- package/dist/vef-table/hooks/use-data.js +1 -1
- package/dist/vef-table/hooks/use-default-column-configs.js +1 -1
- package/dist/vef-table/hooks/use-display-value.js +1 -1
- package/dist/vef-table/hooks/use-helper-columns.js +2 -2
- package/dist/vef-table/hooks/use-merged-value.js +1 -1
- package/dist/vef-table/hooks/use-operation-column-width.js +1 -1
- package/dist/vef-table/hooks/use-pagination-props.js +1 -1
- package/dist/vef-table/hooks/use-row-props.js +1 -1
- package/dist/vef-table/hooks/use-row-selection-config.js +1 -1
- package/dist/vef-table/hooks/use-table-columns.js +1 -1
- package/dist/vef-table/hooks/use-table-context.js +1 -1
- package/dist/vef-table/hooks/use-table-instance.js +1 -1
- package/dist/vef-table/hooks/use-table-summary.js +2 -2
- package/dist/vef-table/hooks/use-table-width.js +1 -1
- package/dist/vef-table/index.js +1 -1
- package/dist/vef-table/store.js +1 -1
- package/dist/vef-tabs/index.js +1 -1
- package/dist/vef-tabs/props.d.ts +1 -2
- package/dist/vef-tag/index.js +1 -1
- package/dist/vef-tag/props.d.ts +1 -2
- package/dist/vef-temporal-picker/{hooks/use-temporal-formats.d.ts → helper.d.ts} +2 -2
- package/dist/vef-temporal-picker/{hooks/use-temporal-formats.js → helper.js} +2 -2
- package/dist/vef-temporal-picker/hooks/use-dayjs-value.js +2 -2
- package/dist/vef-temporal-picker/hooks/use-temporal-limit.js +2 -2
- package/dist/vef-temporal-picker/hooks/use-temporal-picker-instance.js +1 -1
- package/dist/vef-temporal-picker/index.js +2 -2
- package/dist/vef-temporal-range-picker/{hooks/use-temporal-formats.d.ts → helper.d.ts} +2 -2
- package/dist/vef-temporal-range-picker/{hooks/use-temporal-formats.js → helper.js} +2 -2
- package/dist/vef-temporal-range-picker/hooks/use-dayjs-values.js +2 -2
- package/dist/vef-temporal-range-picker/hooks/use-temporal-limit.js +2 -2
- package/dist/vef-temporal-range-picker/hooks/use-temporal-range-picker-instance.js +1 -1
- package/dist/vef-temporal-range-picker/index.js +2 -2
- package/dist/vef-temporal-range-picker/props.js +1 -1
- package/dist/vef-text/index.js +1 -1
- package/dist/vef-text/props.d.ts +1 -2
- package/dist/vef-textarea/hooks/use-textarea-instance.js +1 -1
- package/dist/vef-textarea/index.js +2 -2
- package/dist/vef-title/index.js +1 -1
- package/dist/vef-title/props.d.ts +1 -2
- package/dist/vef-tooltip/index.js +1 -1
- package/dist/vef-tree-select/hooks/use-change-handler.js +1 -1
- package/dist/vef-tree-select/hooks/use-data-options.js +1 -1
- package/dist/vef-tree-select/hooks/use-tree-select-instance.js +1 -1
- package/dist/vef-tree-select/index.d.ts +1 -2
- package/dist/vef-tree-select/index.js +1 -1
- package/dist/vef-tree-select/props.d.ts +1 -2
- package/package.json +5 -4
package/dist/vef-row/props.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as r}from"@emotion/react/jsx-runtime";import{css as o}from"@emotion/react";import{ScrollAreaScrollbar as a,ScrollAreaThumb as e}from"@radix-ui/react-scroll-area";import{themeVariables as i}from"@vef-framework/shared";import{forwardRef as l}from"react";const t=o`
|
|
3
3
|
--vef-scroll-area-scrollbar-padding: 2px;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsxs as r,jsx as o}from"@emotion/react/jsx-runtime";import{css as e}from"@emotion/react";import{Root as t,Viewport as i,Corner as l}from"@radix-ui/react-scroll-area";import{forwardRef as a}from"react";import c from"./components/scrollbar.js";const s=e`
|
|
3
3
|
position: relative;
|
|
4
4
|
overflow: hidden;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsxs as e,jsx as i}from"@emotion/react/jsx-runtime";import{css as r}from"@emotion/react";import{themeVariables as o}from"@vef-framework/shared";import{memo as l}from"react";import t from"../../vef-text/index.js";const s=r`
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { DataOption, ObjectType, PureDataOption } from "@vef-framework/shared";
|
|
2
|
-
import type { EmptyObject, Except } from "@vef-framework/shared";
|
|
1
|
+
import type { DataOption, EmptyObject, Except, ObjectType, PureDataOption } from "@vef-framework/shared";
|
|
3
2
|
import type { VefSelectProps } from "../props";
|
|
4
3
|
/**
|
|
5
4
|
* The hook to use data options.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{useComputedOptions as o}from"@vef-framework/hooks";import{isArray as e,isFunction as a,isNullish as i}from"@vef-framework/shared";import{useLayoutEffect as n}from"react";function r({value:r,grouped:t=!1,multiple:l=!1,onChange:s,...p}){const{onFilterKeywordChange:d,normalizedOptions:f,defaultOption:m,isLoading:u,fallbackOptions:c,isFallbackOptionsLoading:g}=o({...p,isGrouped:t,selectedOptionValues:e(r)?r:r?[r]:[]});return n((()=>{m&&a(s)&&i(r)&&s(l?[m.value]:m.value,l?[m]:m)}),[m,l,s,r]),{onFilterKeywordChange:d,normalizedOptions:f,isLoading:u,fallbackOptions:c,isFallbackOptionsLoading:g}}export{r as useDataOptions};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{useMemo as l}from"react";function e(e){return l((()=>e?{label:"label",value:"value",options:"children",groupLabel:"label"}:{label:"label",value:"value"}),[e])}export{e as useFieldNames};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as i}from"@emotion/react/jsx-runtime";import{LoadingOutlined as r}from"@ant-design/icons";import{css as e}from"@emotion/react";import{useCallback as n}from"react";import t from"../../vef-spin/index.js";const o=e`
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
align-items: center;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as o}from"@emotion/react/jsx-runtime";import{isFunction as r}from"@vef-framework/shared";import{useMemo as e}from"react";import t from"../components/option.js";function i(i){return e((()=>r(i)?({data:o},{index:r})=>i({...o,index:r}):({data:{label:r,description:e}})=>o(t,{description:e,label:r??"Missing Label"})),[i])}export{i as useOptionRender};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{useRef as r,useImperativeHandle as t}from"react";function n(n,o){const u=r(null);return t(n,(()=>({blur:()=>{u.current?.blur()},focus:()=>{u.current?.focus({preventScroll:!0})},getDataOptions:()=>o}))),u}export{n as useSelectInstance};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { type DataOption, type ObjectType, type PureDataOption } from "@vef-framework/shared";
|
|
1
|
+
import { type DataOption, type EmptyObject, type ObjectType, type PureDataOption } from "@vef-framework/shared";
|
|
3
2
|
import { type FC, type ReactNode, type RefAttributes } from "react";
|
|
4
3
|
import type { VefSelectInstance, VefSelectProps } from "./props";
|
|
5
4
|
declare const VefSelect: (<T extends DataOption<T> = PureDataOption, P extends ObjectType = EmptyObject, R = T[], KK extends string = "keyword", VK extends string = "ids", FP extends ObjectType = EmptyObject>(props: VefSelectProps<T, P, R, KK, VK, FP> & RefAttributes<VefSelectInstance<T>>) => ReactNode) & Pick<FC, "displayName">;
|
package/dist/vef-select/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as e}from"@emotion/react/jsx-runtime";import{useOptionFilter as o}from"@vef-framework/hooks";import{styles as r}from"@vef-framework/shared";import{Select as t}from"antd";import{memo as i,forwardRef as n}from"react";import"../internal/index.js";import l from"../vef-loading-placeholder/index.js";import{useDataOptions as a}from"./hooks/use-data-options.js";import{useFieldNames as s}from"./hooks/use-field-names.js";import{useLabelRender as m}from"./hooks/use-label-render.js";import{useOptionRender as d}from"./hooks/use-option-render.js";import{useSelectInstance as p}from"./hooks/use-select-instance.js";import{convertBasicSizeToUiSize as f}from"../internal/utils.js";const u=e("div",{css:{height:140},children:e(l,{})});const c=i(n((function({defaultValue:i,value:n,size:l,clearable:c,disabled:h,placeholder:v,variant:g,onClear:C,onBlur:k,onFocus:b,onChange:j,onSelect:F,onDeselect:x,multiple:w=!1,grouped:O=!1,maxCount:R,optionRender:S,filterable:z=!0,filterFromRemote:V=!1,...y},B){const{onFilterKeywordChange:D,normalizedOptions:L,isLoading:N,fallbackOptions:A,isFallbackOptionsLoading:H}=a({value:n,grouped:O,multiple:w,onChange:j,filterable:z,filterFromRemote:V,...y}),K=d(S),T=o(z,V),W=s(O),q=m(H,A),E=p(B,L);return e(t,{ref:E,defaultActiveFirstOption:!0,allowClear:c,css:r.fullWidth,defaultValue:i,disabled:h,fieldNames:W,filterOption:T,labelRender:q,listHeight:280,loading:N,maxCount:w?R:void 0,maxTagCount:w?"responsive":void 0,mode:w?"multiple":void 0,notFoundContent:N?u:void 0,optionRender:K,options:L,placeholder:v,showSearch:z,size:f(l),value:n,variant:g,onBlur:k,onChange:j,onClear:C,onDeselect:x,onFocus:b,onSearch:D,onSelect:F})})));c.displayName="VefSelect";export{c as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { BasicSize, BiConsumer, DataOption, DataOptionConfig, Handler, IdValue, Mapper, MaybeArray, MaybeNull, MaybePromise, NormalizedDataOption, ObjectType, Provider, PureDataOption, QueryApi, QueryConfig, QueryParamsWithKeyword, QueryParamsWithValues, StringKey } from "@vef-framework/shared";
|
|
1
|
+
import type { BasicSize, BiConsumer, DataOption, DataOptionConfig, EmptyObject, Handler, IdValue, Mapper, MaybeArray, MaybeNull, MaybePromise, NormalizedDataOption, ObjectType, Provider, PureDataOption, QueryApi, QueryConfig, QueryParamsWithKeyword, QueryParamsWithValues, StringKey } from "@vef-framework/shared";
|
|
2
2
|
import type { SelectProps } from "antd";
|
|
3
3
|
import type { ReactNode } from "react";
|
|
4
|
-
import type { EmptyObject } from "@vef-framework/shared";
|
|
5
4
|
/**
|
|
6
5
|
* The instance of the VefSelect component.
|
|
7
6
|
*/
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{useRef as r,useImperativeHandle as u}from"react";function t(t){const c=r(null);return u(t,(()=>({blur:()=>c.current?.blur(),focus:()=>c.current?.focus()}))),c}export{t as useSliderInstance};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/dist/vef-slider/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as t}from"@emotion/react/jsx-runtime";import{Slider as r}from"antd";import{forwardRef as o,useMemo as e}from"react";import{useSliderInstance as n}from"./hooks/use-slider-instance.js";const m=o((({step:o,tipFormatter:m,onChange:a,...i},s)=>{const p=e((()=>{if(m)return{formatter:t=>m(t)}}),[m]),f=n(s);return t(r,{ref:f,step:"mark"===o?null:o,tooltip:p,onChange:a,...i})}));export{m as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as e,jsxs as n,Fragment as o}from"@emotion/react/jsx-runtime";import{HolderOutlined as t}from"@ant-design/icons";import{css as r}from"@emotion/react";const s=e(t,{}),a=r`
|
|
3
3
|
cursor: move;
|
|
4
4
|
user-select: none;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as e,jsxs as t}from"@emotion/react/jsx-runtime";import{HolderOutlined as i}from"@ant-design/icons";import{useSortable as r}from"@dnd-kit/sortable";import{CSS as n}from"@dnd-kit/utilities";import{css as s}from"@emotion/react";const o=e(i,{}),a=s`
|
|
3
3
|
cursor: move;
|
|
4
4
|
user-select: none;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{isNullish as r}from"@vef-framework/shared";import{useState as e,useCallback as o}from"react";function t(t,f,m){if(r(t)&&r(f))throw new Error("At least one of `defaultItems` and `items` must be provided for VefSortableList component.");const[n,a]=e(t??[]);return[f??n,o((r=>{f?m?.(r(f)):a(r)}),[f,m])]}export{t as useMergedItems};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as e,jsxs as t}from"@emotion/react/jsx-runtime";import{useSensors as r,useSensor as i,PointerSensor as o,DndContext as m,closestCenter as a,DragOverlay as s}from"@dnd-kit/core";import{restrictToParentElement as n,restrictToWindowEdges as d}from"@dnd-kit/modifiers";import{arrayMove as c,SortableContext as l,verticalListSortingStrategy as p,horizontalListSortingStrategy as f}from"@dnd-kit/sortable";import{isFunction as u}from"@vef-framework/shared";import{useMemo as y,useState as v,useCallback as h,memo as g}from"react";import x from"./components/overlay-item.js";import k from"./components/sortable-item.js";import{useMergedItems as N}from"./hooks/use-merged-items.js";const b=g((function({defaultItems:g,items:b,itemKey:j="id",className:S,style:D,direction:w="vertical",useOverlay:C=!0,restrictStrategy:E="parent",onChange:I,...K}){const[L,O]=N(g,b,I),V=r(i(o)),q=y((()=>u(j)?j:e=>e[j]),[j]),[z,A]=v(),B=h((({active:e})=>{A(L[e.data.current.index])}),[L]),F=h((({active:e,over:t})=>{t&&e.id!==t.id&&O((r=>c(r,e.data.current.index,t.data.current.index)))}),[O]),G=L.map((e=>q(e))),{itemClassName:H,itemStyle:J,disabled:M,...P}=K;return e(m,{collisionDetection:a,sensors:V,modifiers:["parent"===E?n:d],onDragEnd:F,onDragStart:B,children:e(l,{items:G,strategy:"vertical"===w?p:f,children:t("div",{className:S,style:D,children:[L.map(((t,r)=>{const i=q(t);return e(k,{item:t,itemIndex:r,itemKey:i,...K},i)})),C&&e(s,{className:H,style:J,wrapperElement:"div",modifiers:["parent"===E?n:d],children:z&&e(x,{item:z,...P})})]})})})}));b.displayName="VefSortableList";export{b as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/dist/vef-space/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as r}from"@emotion/react/jsx-runtime";import{useGapSizeNormalizer as o}from"@vef-framework/hooks";import{
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
|
+
import{jsx as r}from"@emotion/react/jsx-runtime";import{useGapSizeNormalizer as o}from"@vef-framework/hooks";import{isArray as m}from"@vef-framework/shared";import{Space as t}from"antd";import{useMemo as e}from"react";const a=({gap:a,...f})=>{const i=o(),p=e((()=>m(a)?a.map((r=>i(r))):a?i(a):a),[a,i]);return r(t,{size:p,...f})};export{a as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/dist/vef-spin/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as t}from"@emotion/react/jsx-runtime";import{Spin as e}from"antd";const m=({size:m,...o})=>t(e,{size:"medium"===m?"default":m,...o});export{m as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/dist/vef-spin/props.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as t}from"@emotion/react/jsx-runtime";import{Splitter as o}from"antd";const e=({direction:e,onResizeBegin:i,...r})=>t(o,{layout:e,onResizeStart:i,...r});export{e as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { Consumer, Direction } from "@vef-framework/shared";
|
|
1
|
+
import type { Consumer, Direction, Except } from "@vef-framework/shared";
|
|
2
2
|
import type { SplitterProps } from "antd";
|
|
3
|
-
import type { Except } from "@vef-framework/shared";
|
|
4
3
|
/**
|
|
5
4
|
* The props of the VefSplitter component.
|
|
6
5
|
*/
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as t}from"@emotion/react/jsx-runtime";import{Splitter as o}from"antd";const{Panel:r}=o,e=({...o})=>t(r,{...o});export{e as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/dist/vef-status/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as t}from"@emotion/react/jsx-runtime";import{useColorTokens as o}from"@vef-framework/hooks";import{Badge as r}from"antd";import{useMemo as e}from"react";const a=({processing:a=!1,color:f="default",children:n})=>{const s=o(),l=e((()=>{if("default"===f)return{status:"default",text:n};if(s.has(f))return{status:a?"processing":"default",color:s.get(f),text:n};throw new Error(`Invalid color value "${f}" of VefStatus component. Color must be either "default" or a valid color token.`)}),[f,s,a,n]);return t(r,{...l})};export{a as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as e}from"@emotion/react/jsx-runtime";import{css as o}from"@emotion/react";import{VefError as t,isString as r,isNullish as a,isEqual as l}from"@vef-framework/shared";import{useMemo as i,memo as m}from"react";import u from"../../../vef-text/index.js";import{useComputedValues as c}from"../../hooks/use-computed-values.js";const n=m((function({value:l,record:m,rowIndex:n,columnProps:f}){if("Boolean"!==f.type)throw new t(-1,"Column type must be Boolean");const{defaultValue:d,trueText:p="是",falseText:s="否",bold:w,italic:x,color:h,width:y}=f,[V,b,k]=c([{key:"bold",rawValue:w,defaultValue:!1},{key:"italic",rawValue:x,defaultValue:!1},{key:"color",rawValue:h}],l,m,n),v=i((()=>r(k)?k:k?!a(l)&&Object.prototype.hasOwnProperty.call(k,l)?k[l]:k["*"]:void 0),[k,l]),j=i((()=>l?l?p:s:d),[l,p,s,d]),B=i((()=>{if(y)return o({maxWidth:`${y}px !important`})}),[y]);return e(u,{bold:V,color:v,css:B,italic:b,children:j})}),l);export{n as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as e}from"@emotion/react/jsx-runtime";function r({value:r}){return e("span",{children:r})}export{r as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as e}from"@emotion/react/jsx-runtime";import{css as o}from"@emotion/react";import{VefError as t,isString as r,isNullish as a}from"@vef-framework/shared";import{useMemo as i}from"react";import l from"../../../vef-text/index.js";import{useComputedValues as m}from"../../hooks/use-computed-values.js";const c="Name";function u({value:u,record:n,rowIndex:s,columnProps:p}){if("DataDictionary"!==p.type)throw new t(-1,"Column type must be DataDictionary");const{name:d,defaultValue:f,ellipsis:w,bold:y,italic:h,color:x,width:V}=p,[b,k,v]=m([{key:"bold",rawValue:y,defaultValue:!1},{key:"italic",rawValue:h,defaultValue:!1},{key:"color",rawValue:x}],u,n,s),$=i((()=>r(v)?v:v?!a(u)&&Object.prototype.hasOwnProperty.call(v,u)?v[u]:v["*"]:void 0),[v,u]),j=i((()=>a(u)||a(n[`${d}${c}`])?f:n[`${d}${c}`]),[u,n,d,f]),D=i((()=>{if(V)return o({maxWidth:`${V}px !important`})}),[V]);return e(l,{bold:b,color:$,css:D,ellipsis:w,italic:k,children:j})}export{u as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as e}from"@emotion/react/jsx-runtime";import{css as o}from"@emotion/react";import{VefError as r,isString as t,isNullish as i}from"@vef-framework/shared";import{useMemo as l}from"react";import a from"../../../vef-tag/index.js";import m from"../../../vef-text/index.js";import{useComputedValues as n}from"../../hooks/use-computed-values.js";const c="Name",s=o({color:"inherit",fontSize:"inherit"});function u({value:u,record:d,rowIndex:f,columnProps:p}){if("Enum"!==p.type)throw new r(-1,"Column type must be Enum");const{name:h,defaultValue:w,showAsTag:x=!0,bold:y,italic:b,ellipsis:v,color:V,width:j}=p,[k,$,g]=n([{key:"bold",rawValue:y,defaultValue:!1},{key:"italic",rawValue:b,defaultValue:!1},{key:"color",rawValue:V}],u,d,f),E=l((()=>t(g)?g:g?!i(u)&&Object.prototype.hasOwnProperty.call(g,u)?g[u]:g["*"]:void 0),[g,u]),O=l((()=>i(u)||i(d[`${h}${c}`])?w:d[`${h}${c}`]),[u,d,h,w]),P=l((()=>{if(j)return o({maxWidth:`${j}px !important`})}),[j]);return x?e(a,{color:E,children:e(m,{bold:k,css:s,italic:$,children:O})}):e(m,{bold:k,color:E,css:P,ellipsis:v,italic:$,children:O})}export{u as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as e}from"@emotion/react/jsx-runtime";function r({value:r}){return e("span",{children:r})}export{r as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as e}from"@emotion/react/jsx-runtime";function r({value:r}){return e("span",{children:r})}export{r as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as e}from"@emotion/react/jsx-runtime";import{css as o}from"@emotion/react";import{VefError as r,isNullish as t}from"@vef-framework/shared";import{useMemo as a}from"react";import l from"../../../vef-text/index.js";import{useComputedValues as i}from"../../hooks/use-computed-values.js";const m=/Id$/;function u({value:u,record:c,rowIndex:n,columnProps:s}){if("Id"!==s.type)throw new r(-1,"Column type must be Id");const{name:d,defaultValue:f,ellipsis:p,bold:w,italic:x,color:h,width:V}=s,[k,y,b]=i([{key:"bold",rawValue:w,defaultValue:!1},{key:"italic",rawValue:x,defaultValue:!1},{key:"color",rawValue:h}],u,c,n),v=a((()=>{const e=d.replace(m,"Name");return t(u)||t(c[e])?f:c[e]}),[u,c,d,f]),I=a((()=>{if(V)return o({maxWidth:`${V}px !important`})}),[V]);return e(l,{bold:k,color:b,css:I,ellipsis:p,italic:y,children:v})}export{u as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as r}from"@emotion/react/jsx-runtime";import{extractBaseName as e}from"@vef-framework/shared";function t({value:t}){return r("img",{alt:e(t),src:t})}export{t as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import o from"./bool.js";import r from"./code.js";import m from"./data-dictionary.js";import t from"./enum.js";import i from"./file.js";import e from"./icon.js";import p from"./id.js";import s from"./image.js";import f from"./markdown.js";import j from"./number.js";import n from"./render.js";import a from"./rich-text.js";import d from"./text.js";
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
|
+
import o from"./bool.js";import r from"./code.js";import m from"./data-dictionary.js";import t from"./enum.js";import i from"./file.js";import e from"./icon.js";import p from"./id.js";import s from"./image.js";import f from"./markdown.js";import j from"./number.js";import n from"./render.js";import a from"./rich-text.js";import d from"./text.js";const c={Text:d,Number:j,Enum:t,Boolean:o,DataDictionary:m,Id:p,Render:n,Markdown:f,Icon:e,File:i,RichText:a,Image:s,Code:r};export{c as columnComponents};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as e}from"@emotion/react/jsx-runtime";function r({value:r}){return e("span",{children:r})}export{r as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as e}from"@emotion/react/jsx-runtime";import{css as r}from"@emotion/react";import{VefError as o,isNullish as t}from"@vef-framework/shared";import{useMemo as a}from"react";import l from"../../../vef-text/index.js";import{useComputedValues as u}from"../../hooks/use-computed-values.js";import{useDisplayValue as i}from"../../hooks/use-display-value.js";function m({value:m,record:f,rowIndex:s,columnProps:d}){if("Number"!==d.type)throw new o(-1,"Column type must be Number");const{defaultValue:p,formatter:c,prefix:n,suffix:x,bold:w,italic:h,color:V,width:b}=d,k=i(m,f,s,{defaultValue:p,formatter:c,prefix:n,suffix:x}),[y,v,j]=u([{key:"bold",rawValue:w,defaultValue:!1},{key:"italic",rawValue:h,defaultValue:!1},{key:"color",rawValue:V}],m,f,s),N=a((()=>{if(b)return r({maxWidth:`${b}px !important`})}),[b]);return t(k)?null:e(l,{bold:y,color:j,css:N,italic:v,children:k})}export{m as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { ObjectType, StringKey } from "@vef-framework/shared";
|
|
2
|
-
import type { Except } from "@vef-framework/shared";
|
|
1
|
+
import type { Except, ObjectType, StringKey } from "@vef-framework/shared";
|
|
3
2
|
import type { TableColumn } from "../../types";
|
|
4
3
|
/**
|
|
5
4
|
* The table column props.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as r}from"@emotion/react/jsx-runtime";import{css as e}from"@emotion/react";import{VefError as t}from"@vef-framework/shared";import{useMemo as o}from"react";function m({value:m,record:n,rowIndex:i,columnProps:d}){if("Render"!==d.type)throw new t(-1,"Column type must be Render");const{render:a,width:f}=d,p=a?.(m,n,i),c=o((()=>{if(f)return e({maxWidth:`${f}px !important`})}),[f]);return r("div",{css:c,children:p})}export{m as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as e}from"@emotion/react/jsx-runtime";function r({value:r}){return e("span",{children:r})}export{r as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as e}from"@emotion/react/jsx-runtime";import{css as o}from"@emotion/react";import{VefError as r,isNullish as t}from"@vef-framework/shared";import{useMemo as l}from"react";import i from"../../../vef-text/index.js";import{useComputedValues as a}from"../../hooks/use-computed-values.js";import{useDisplayValue as u}from"../../hooks/use-display-value.js";function f({value:f,record:m,rowIndex:s,columnProps:p}){if("Text"!==p.type)throw new r(-1,"Column type must be Text");const{defaultValue:c,formatter:d,prefix:n,suffix:x,ellipsis:w,bold:y,italic:h,color:V,copyable:b,width:k}=p,[v,j,T]=a([{key:"bold",rawValue:y,defaultValue:!1},{key:"italic",rawValue:h,defaultValue:!1},{key:"color",rawValue:V}],f,m,s),C=u(f,m,s,{defaultValue:c,formatter:d,prefix:n,suffix:x}),I=l((()=>{if(k)return o({maxWidth:`${k}px !important`})}),[k]);return t(C)?null:e(i,{bold:v,color:T,copyable:b,css:I,ellipsis:w,ellipsisTip:w?C:void 0,italic:j,children:C})}export{f as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsxs as e,jsx as n,Fragment as t}from"@emotion/react/jsx-runtime";import{RollbackOutlined as i,VerticalRightOutlined as l,VerticalLeftOutlined as a}from"@ant-design/icons";import{css as o}from"@emotion/react";import{themeVariables as r}from"@vef-framework/shared";import{Checkbox as s}from"antd";import{useMemo as d,useCallback as m,memo as c}from"react";import f from"../../vef-bool/index.js";import u from"../../vef-button/index.js";import p from"../../vef-divider/index.js";import g from"../../vef-sortable-list/index.js";import v from"../../vef-text/index.js";import{useTableContextSelector as h}from"../hooks/use-table-context.js";const b=o`
|
|
3
3
|
width: 260px;
|
|
4
4
|
padding: ${r.paddingSm};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsxs as e,jsx as n}from"@emotion/react/jsx-runtime";import{MoreOutlined as o}from"@ant-design/icons";import{css as t}from"@emotion/react";import{useComputedActionButtons as i}from"@vef-framework/hooks";import{invokeMaybeAsyncFn as r,showConfirmation as l}from"@vef-framework/shared";import{useMemo as c,useState as a,useCallback as s}from"react";import d from"../../vef-button/index.js";import m from"../../vef-dropdown/index.js";import f from"../../vef-flex/index.js";import p from"../../vef-popconfirm/index.js";import{useTableContextSelector as h}from"../hooks/use-table-context.js";const u=t`
|
|
3
3
|
.vef-btn-sm {
|
|
4
4
|
--vef-control-height-sm: 24px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as o}from"@emotion/react/jsx-runtime";import{SettingOutlined as r}from"@ant-design/icons";import{css as t}from"@emotion/react";import{themeVariables as m}from"@vef-framework/shared";import{memo as e}from"react";import{useTableContextSelector as i}from"../hooks/use-table-context.js";const a=t`
|
|
3
3
|
color: ${m.colorPrimary};
|
|
4
4
|
`,n=e((()=>{const t=i((o=>o.columnConfigMapHasChanged));return o(r,{css:t?a:void 0})}),(()=>!1));export{n as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsxs as o,jsx as e}from"@emotion/react/jsx-runtime";import{css as i}from"@emotion/react";import{themeVariables as t,invokeMaybeAsyncFn as n}from"@vef-framework/shared";import{useMemo as r,memo as a}from"react";import l from"../../vef-button/index.js";import c from"../../vef-pagination/index.js";import m from"../../vef-text/index.js";import{useTableContextSelector as d}from"../hooks/use-table-context.js";const f=i`
|
|
3
3
|
width: 100%;
|
|
4
4
|
display: flex;
|
package/dist/vef-table/helper.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{isFunction as r,isExpression as e,compileDynamicFn as n}from"@vef-framework/shared";function o(o,t,f,u,i){if(r(o))return o(t,f,u);if(e(o)){return n(o,"value","record","rowIndex",`return ${o.expression}`)(t,f,u)}return o??i}export{o as computeValue};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{useComputedActionButtons as e}from"@vef-framework/hooks";import{useMemo as t}from"react";function o(o,c){const{externalContext:r,isFetching:n,refetch:s,selectedKeys:i,selectedRecords:d}=c,f=t((()=>({isFetching:n,refetch:s,selectedKeys:i,selectedRecords:d,...r??{}})),[r,n,s,i,d]);return{computedBatchActionButtons:e(o,f),batchActionButtonContext:f}}export{o as useComputedBatchActionButtons};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{useMemo as e}from"react";function r(r,t){return e((()=>r.map((e=>{const{name:r}=e,o=t.get(r);return{...e,show:o.show,fixed:o.fixed}})).sort(((e,r)=>t.get(e.name).order-t.get(r.name).order))),[r,t])}export{r as useComputedColumns};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{useDeepCompareMemo as e}from"@vef-framework/hooks";import{computeValue as r}from"../helper.js";function o(o,t,u,a,f=!1){const m=e((()=>o.reduce(((e,o)=>{const{key:f,rawValue:m,defaultValue:n}=o,c=r(m,t,u,a,n);return e[f]=c,e}),{})),[u,a,t,o]);return f?o.reduce(((e,{key:r})=>(e[r]=m[r],e)),{}):o.map((({key:e})=>m[e]))}export{o as useComputedValues};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{useDataQuery as e}from"@vef-framework/hooks";import{isNumber as t,isArray as a}from"@vef-framework/shared";function r({apiParams:r,...i},o,s){const{data:n,isLoading:f,isFetching:h,isSuccess:l,refetch:p}=e({apiParams:o?{...s,...r}:r,keepPreviousData:!0,staleTime:0,...i});if(l)if(o){if(!Object.prototype.hasOwnProperty.call(n,"total")||!Object.prototype.hasOwnProperty.call(n,"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(!t(n.total))throw new Error("The `total` property of the paginated data of VefTable is invalid. It must be a number.");if(!a(n.items))throw new Error("The `items` property of the paginated data of VefTable is invalid. It must be an array.")}else if(!a(n))throw new Error("The data of VefTable is invalid. It must be an array.");return{data:o?n?.items:n,isFetching:h,isLoading:f,total:o?n?.total:void 0,refetch:p}}export{r as useData};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{useMemo as e}from"react";function t(t){return e((()=>{const e=new Map;let o=1;for(const r of t){const{name:t,title:n,fixed:f,configurable:i}=r;e.set(t,{title:n??t,show:!0,fixed:f,order:o++,configurable:i??!0})}return e}),[t])}export{t as useDefaultColumnConfigs};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{isNullish as r,isFunction as e,isExpression as t,compileDynamicFn as o}from"@vef-framework/shared";import{useMemo as f}from"react";function n(n,u,i,a){const{defaultValue:m,formatter:d,prefix:p,suffix:s}=a,x=r(n)?m:n;return f((()=>{if(e(d))return d(n,u,i);if(t(d)){return o(d,"value","record","rowIndex",`return ${d.expression}`)(n,u,i)}return r(x)?void 0:`${p??""}${x}${s??""}`}),[d,x,p,s,n,u,i])}export{n as useDisplayValue};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as o}from"@emotion/react/jsx-runtime";import{useAuthorizedItems as t}from"@vef-framework/hooks";import{
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
|
+
import{jsx as o}from"@emotion/react/jsx-runtime";import{useAuthorizedItems as t}from"@vef-framework/hooks";import{isEqual as e}from"@vef-framework/shared";import{useMemo as r}from"react";import n from"../components/columns-settings.js";import i from"../components/operation-buttons.js";import m from"../components/settings-icon.js";import{useOperationColumnWidth as s}from"./use-operation-column-width.js";function p({showRowNumber:p,operationButtons:u,maxVisibleOperationButtons:f,size:l}){const a=r((()=>{if(p)return{key:"_rowNumber",title:"#",align:"center",fixed:"left",width:48,shouldCellUpdate:()=>!1,render:(o,t,e)=>e+1}}),[p]),d=t(u??[]),c=s(d,f??3,l);return{rowNumberColumn:a,operationColumn:r((()=>{if(d&&d.length>0)return{key:"_operationButtons",title:"操作",align:"center",fixed:"right",filterIcon:()=>o(m,{}),filterDropdown:()=>o(n,{}),width:c,shouldCellUpdate:(o,t)=>!e(o,t),render:(t,e,r)=>o(i,{maxVisibleOperationButtons:f??3,operationButtons:d,record:e,rowIndex:r})}}),[d,f,c])}}export{p as useHelperColumns};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{isArray as e}from"@vef-framework/shared";import{useState as r,useMemo as o,useRef as t,useCallback as n}from"react";function a({value:a,defaultValue:l,multipleSelection:m,onChange:u}){const[c,d]=r((()=>e(l)?l:l?[l]:[])),f=o((()=>e(a)?a:a?[a]:void 0),[a]),i=o((()=>f??c),[f,c]),g=t([]);return{mergedValue:i,mergedOnChange:n(((e,r)=>{f||d(e),g.current=r,u?.(m?e:e[0],m?r:r[0])}),[m,f,u]),selectedRecords:g}}export{a as useMergedValue};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{useThemeTokens as r}from"@vef-framework/hooks";import{max as t}from"@vef-framework/shared";import{useMemo as e}from"react";function n(n,f,m="medium"){const{Button:a}=r(),c="large"===m?16:8,u=a?.contentFontSizeSM??16;return e((()=>{if(0===n.length)return 0;if(n.length>f){const r=new Set;for(let e=0;e<f;e++){const e=t(n,(t=>r.has(t)?0:t.label.length));e&&r.add(e)}return o(Array.from(r),u,c,!0)}return o(n,u,c,!1)}),[c,u,f,n])}function o(r,t,e,n){const o=t+4;return r.map((r=>{const t=r.label.length*o+8;return r.icon?t+o+8:t})).reduce(((r,t)=>r+t),0)+(n?o+8:0)+2*e}export{n as useOperationColumnWidth};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{useState as e,useMemo as a}from"react";import{defaultPageSizeOptions as i}from"../../vef-pagination/props.js";function r(r,p){const[n,o]=e({page:1,size:i[2]}),s=a((()=>{if(r)return(e,a)=>{o({page:e,size:a})}}),[r,o]);return{paginationProps:a((()=>{if(r)return{pageNumber:n.page,pageSize:n.size,size:"small"===p?"small":"medium",onChange:s}}),[s,r,n.page,n.size,p]),paginationParams:n}}export{r as usePaginationProps};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{useMemo as e}from"react";function o({enableRowClick:o=!1,enableRowClickForSelection:n=!1,onRowClick:l,disabledSelection:i,handleRowClickSelection:r}){return e((()=>{if(o)return(e,o)=>{const t=i?.(e)??!1;return{style:{cursor:t?"not-allowed":"pointer"},onClick:t?void 0:()=>{n?r?.(e):l?.(e,o??-1)}}}}),[i,o,n,r,l])}export{o as useRowProps};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{isFunction as e}from"@vef-framework/shared";import{useMemo as l}from"react";import{useMergedValue as o}from"./use-merged-value.js";function t({rowKey:t,value:r,defaultValue:n,selectable:c,enableRowClick:i,enableRowClickForSelection:s,multipleSelection:d=!0,showSelectAllCheckbox:a=!0,disabledSelection:u,onSelect:f,onDeselect:h,onChange:m}){const{mergedValue:p,mergedOnChange:S,selectedRecords:g}=o({value:r,defaultValue:n,multipleSelection:d,onChange:m}),C=l((()=>{if(i&&s)return l=>{const o=e(t)?t(l):l[t];if(p.includes(o)){if(!d)return;const r=p.filter((e=>e!==o)),n=g.current.filter((l=>(e(t)?t(l):l[t])!==o));S(r,n),h?.(o,l)}else{const e=[o];d&&e.push(...p);const t=[l];d&&t.push(...g.current),S(e,t),f?.(o,l)}}}),[i,s,S,p,d,h,f,t,g]);return{rowSelectionConfig:l((()=>{if(!c)return;return{fixed:!0,hideSelectAll:!a,preserveSelectedRowKeys:!1,selectedRowKeys:p,type:d?"checkbox":"radio",getCheckboxProps:e(u)?e=>({disabled:u(e)}):void 0,onChange:(e,l)=>{S(e,l)},onSelect:e(f)||e(h)?(l,o)=>{const r=e(t)?t(l):l[t];o?f?.(r,l):h?.(r,l)}:void 0}}),[c,a,p,d,u,f,h,S,t]),handleRowClickSelection:C,mergedValue:p,selectedRecords:g}}export{t as useRowSelectionConfig};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as e}from"@emotion/react/jsx-runtime";import{isNumber as r,isEqual as t}from"@vef-framework/shared";import{useMemo as o}from"react";import{columnComponents as n}from"../components/columns/index.js";function m(m,i,d){return o((()=>{const o=[],a=m.map((o=>{const{title:m,show:i,sort:d,fixed:a,dependentColumnNames:p,...s}=o,u=r(d)?{multiple:d}:!!d||void 0,l=n[o.type];return{key:s.name,dataIndex:s.name,title:m||s.name,fixed:a,hidden:!(i??1),sorter:u,align:s.align,width:s.width,shouldCellUpdate:(e,r)=>!t(p.map((r=>e[r])),p.map((e=>r[e]))),render:(r,t,o)=>e(l,{columnProps:s,record:t,rowIndex:o,value:r})}}));return i&&o.push(i),o.push(...a),d&&o.push(d),o}),[m,i,d])}export{m as useTableColumns};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{createSelectableContext as e,noop as o}from"@vef-framework/shared";const{useContextSelector:n,useContext:t,ContextProvider:r}=e({isFetching:!1,refetch:()=>Promise.resolve({}),selectedKeys:[],selectedRecords:[],defaultColumnConfigMap:new Map,columnConfigMap:new Map,setColumnConfigMap:o,columnConfigMapHasChanged:!1}),s=n,a=t;export{r as TableContextProvider,a as useTableContext,s as useTableContextSelector};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{useRef as t,useImperativeHandle as r}from"react";function a(a,e,n){const c=t(null);return r(a,(()=>({getData:()=>e,refetch:async()=>{await n()}}))),c}export{a as useTableInstance};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
2
|
-
import{jsx as m}from"@emotion/react/jsx-runtime";import{
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
|
+
import{jsx as m}from"@emotion/react/jsx-runtime";import{isFunction as r}from"@vef-framework/shared";import{Table as n}from"antd";import{useMemo as o}from"react";const{Summary:a}=n,{Row:e,Cell:t}=a;function i(n){const i=o((()=>n.filter((m=>r(m.summary))).map((m=>{const{name:r,summary:n,summaryColSpan:o}=m;return{name:r,summary:n,summaryColSpan:o??1}}))),[n]);return o((()=>{if(0!==i.length)return r=>m(a,{fixed:"bottom",children:m(e,{children:i.map((({name:n,summary:o,summaryColSpan:a},e)=>m(t,{colSpan:a,index:e,children:o(r)},n)))})})}),[i])}export{i as useTableSummary};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{useMemo as r}from"react";function t(t,e){return r((()=>{const r=t.filter((r=>!0!==r.hidden)).map((r=>r.width??r.minWidth??160)).reduce(((r,t)=>r+t),0);return e?r+40:r}),[t,e])}export{t as useTableWidth};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/dist/vef-table/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as e}from"@emotion/react/jsx-runtime";import{css as o}from"@emotion/react";import{themeVariables as t,isEqual as n,isNumber as l}from"@vef-framework/shared";import{Table as i}from"antd";import{useMemo as a,useState as r,useDeferredValue as s,forwardRef as m,memo as c}from"react";import"../internal/index.js";import u from"./components/table-footer.js";import{useComputedBatchActionButtons as f}from"./hooks/use-computed-batch-buttons.js";import{useComputedColumns as p}from"./hooks/use-computed-columns.js";import{useData as d}from"./hooks/use-data.js";import{useDefaultColumnConfigs as h}from"./hooks/use-default-column-configs.js";import{useHelperColumns as b}from"./hooks/use-helper-columns.js";import{usePaginationProps as g}from"./hooks/use-pagination-props.js";import{useRowProps as C}from"./hooks/use-row-props.js";import{useRowSelectionConfig as w}from"./hooks/use-row-selection-config.js";import{useTableColumns as k}from"./hooks/use-table-columns.js";import{TableContextProvider as x}from"./hooks/use-table-context.js";import{useTableInstance as S}from"./hooks/use-table-instance.js";import{useTableSummary as v}from"./hooks/use-table-summary.js";import{useTableWidth as y}from"./hooks/use-table-width.js";import{convertBasicSizeToUiSize as j}from"../internal/utils.js";const R=o`
|
|
3
3
|
height: 100%;
|
|
4
4
|
|
package/dist/vef-table/store.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{VefError as e,createComponentStore as t}from"@vef-framework/shared";import{createStore as r}from"zustand";const{StoreContext:o,StoreProvider:i,useStore:n,useStoreApi:a}=t("table",(function(t){if(!t)throw new e(-2,"The initial state of the table store is required");return r((e=>({changeSize:t=>e({size:t}),columnConfigMap:new Map,...t})))}));export{o as TableStoreContext,i as TableStoreProvider,n as useTableStore,a as useTableStoreApi};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/dist/vef-tabs/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as t}from"@emotion/react/jsx-runtime";import{Tabs as i}from"antd";import"../internal/index.js";import{convertBasicSizeToUiSize as r}from"../internal/utils.js";const e={inkBar:!0,tabPane:!0},n=({size:n,...a})=>t(i,{animated:e,size:r(n),...a});export{n as VefTabs,n as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|
package/dist/vef-tabs/props.d.ts
CHANGED
package/dist/vef-tag/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
|
|
2
2
|
import{jsx as o}from"@emotion/react/jsx-runtime";import{Tag as r}from"antd";import{useMemo as e}from"react";const t=({closable:t=!1,color:n,inverse:c=!1,...i})=>{const l=e((()=>c?`${n}-inverse`:n),[n,c]);return o(r,{closeIcon:t?null:void 0,color:l,...i})};export{t as default};
|
|
3
3
|
/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
|