@vef-framework-react/components 2.9.0 → 2.11.0
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/cjs/file-preview/index.cjs +1 -0
- package/dist/cjs/file-upload/helpers.cjs +1 -0
- package/dist/cjs/file-upload/index.cjs +1 -1
- package/dist/cjs/form/fields/upload/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/pro-search/styles.cjs +1 -1
- package/dist/cjs/upload/helpers.cjs +1 -0
- package/dist/cjs/upload/index.cjs +1 -1
- package/dist/es/_base/constants/breakpoints.js +1 -1
- package/dist/es/_base/constants/common.js +1 -1
- package/dist/es/_base/constants/css-vars.js +1 -1
- package/dist/es/_base/constants/event.js +1 -1
- package/dist/es/_base/constants/index.js +1 -1
- package/dist/es/_base/constants/symbols.js +1 -1
- package/dist/es/_base/constants/theme.js +1 -1
- package/dist/es/_base/globals.js +1 -1
- package/dist/es/_base/helpers/breakpoints.js +1 -1
- package/dist/es/_base/helpers/color.js +1 -1
- package/dist/es/_base/helpers/common.js +1 -1
- package/dist/es/_base/helpers/event.js +1 -1
- package/dist/es/_base/helpers/index.js +1 -1
- package/dist/es/_base/helpers/message.js +1 -1
- package/dist/es/_base/helpers/modal.js +1 -1
- package/dist/es/_base/helpers/notification.js +1 -1
- package/dist/es/_base/helpers/props.js +1 -1
- package/dist/es/_base/helpers/react.js +1 -1
- package/dist/es/_base/hooks/index.js +1 -1
- package/dist/es/_base/hooks/use-theme-tokens.js +1 -1
- package/dist/es/_base/index.js +1 -1
- package/dist/es/_base/styles/common.js +1 -1
- package/dist/es/_base/styles/index.js +1 -1
- package/dist/es/_base/types/breakpoints.js +1 -1
- package/dist/es/_base/types/common.js +1 -1
- package/dist/es/_base/types/index.js +1 -1
- package/dist/es/action-button/index.js +1 -1
- package/dist/es/action-button/use-action-button.js +1 -1
- package/dist/es/action-group/index.js +1 -1
- package/dist/es/action-group/use-action-group.js +1 -1
- package/dist/es/action-group/use-computed-action-buttons.js +1 -1
- package/dist/es/affix/index.js +1 -1
- package/dist/es/alert/index.js +1 -1
- package/dist/es/anchor/index.js +1 -1
- package/dist/es/auto-complete/index.js +1 -1
- package/dist/es/avatar/index.js +1 -1
- package/dist/es/badge/index.js +1 -1
- package/dist/es/bool/index.js +1 -1
- package/dist/es/border-beam/index.js +1 -1
- package/dist/es/breadcrumb/index.js +1 -1
- package/dist/es/button/index.js +1 -1
- package/dist/es/calendar/index.js +1 -1
- package/dist/es/card/index.js +1 -1
- package/dist/es/carousel/index.js +1 -1
- package/dist/es/cascader/index.js +1 -1
- package/dist/es/center/index.js +1 -1
- package/dist/es/charts/chart.js +1 -1
- package/dist/es/charts/helpers/group.js +1 -1
- package/dist/es/charts/helpers/index.js +1 -1
- package/dist/es/charts/hooks/index.js +1 -1
- package/dist/es/charts/hooks/use-chart.js +1 -1
- package/dist/es/charts/index.js +1 -1
- package/dist/es/charts/themes/index.js +1 -1
- package/dist/es/charts/themes/walden-dark.js +1 -1
- package/dist/es/charts/themes/walden.js +1 -1
- package/dist/es/charts/themes/wonderland-dark.js +1 -1
- package/dist/es/charts/themes/wonderland.js +1 -1
- package/dist/es/checkbox/index.js +1 -1
- package/dist/es/code-editor/index.js +1 -1
- package/dist/es/code-highlighter/index.js +1 -1
- package/dist/es/col/index.js +1 -1
- package/dist/es/collapse/index.js +1 -1
- package/dist/es/color-picker/index.js +1 -1
- package/dist/es/compact/index.js +1 -1
- package/dist/es/config-provider/app.js +1 -1
- package/dist/es/config-provider/constants.js +1 -1
- package/dist/es/config-provider/context-holder.js +1 -1
- package/dist/es/config-provider/css-vars.js +1 -1
- package/dist/es/config-provider/dark-mode-context.js +1 -1
- package/dist/es/config-provider/error-fallback.js +1 -1
- package/dist/es/config-provider/global-style.js +1 -1
- package/dist/es/config-provider/index.js +1 -1
- package/dist/es/config-provider/theme-config.js +1 -1
- package/dist/es/config-provider/use-config-provider.js +1 -1
- package/dist/es/crud/components/action-button-group.js +1 -1
- package/dist/es/crud/components/index.js +1 -1
- package/dist/es/crud/components/main.js +1 -1
- package/dist/es/crud/components/mutation-holder.js +1 -1
- package/dist/es/crud/components/operation-button-group.js +1 -1
- package/dist/es/crud/components/scene-form.js +1 -1
- package/dist/es/crud/components/selection-indicator.js +1 -1
- package/dist/es/crud/components/toolbar-actions.js +1 -1
- package/dist/es/crud/components/toolbar.js +1 -1
- package/dist/es/crud/event.js +1 -1
- package/dist/es/crud/helpers.js +1 -1
- package/dist/es/crud/hooks/index.js +1 -1
- package/dist/es/crud/hooks/use-query-observer.js +1 -1
- package/dist/es/crud/hooks/use-search-values.js +1 -1
- package/dist/es/crud/hooks/use-selected-rows.js +1 -1
- package/dist/es/crud/index.js +1 -1
- package/dist/es/crud/store.js +1 -1
- package/dist/es/crud/styles.js +1 -1
- package/dist/es/crud-page/index.js +1 -1
- package/dist/es/date-picker/index.js +1 -1
- package/dist/es/descriptions/index.js +1 -1
- package/dist/es/divider/index.js +1 -1
- package/dist/es/drawer/index.js +1 -1
- package/dist/es/dropdown/index.js +1 -1
- package/dist/es/dynamic-icon/index.js +1 -1
- package/dist/es/dynamic-icon/load-icon-node.js +1 -1
- package/dist/es/dynamic-icon/placeholder-icon.js +1 -1
- package/dist/es/dynamic-icon/unknown-icon.js +1 -1
- package/dist/es/editable-table/components/add-row-button.js +1 -1
- package/dist/es/editable-table/components/editable-cell.js +1 -1
- package/dist/es/editable-table/components/editable-row-actions.js +1 -1
- package/dist/es/editable-table/components/index.js +1 -1
- package/dist/es/editable-table/helpers.js +1 -1
- package/dist/es/editable-table/hooks/index.js +1 -1
- package/dist/es/editable-table/hooks/use-editable-actions.js +1 -1
- package/dist/es/editable-table/hooks/use-editable-columns.js +1 -1
- package/dist/es/editable-table/index.js +1 -1
- package/dist/es/editable-table/store.js +1 -1
- package/dist/es/empty/empty.js +1 -1
- package/dist/es/empty/index.js +1 -1
- package/dist/es/file-preview/index.js +17 -0
- package/dist/es/file-upload/helpers.js +8 -0
- package/dist/es/file-upload/index.js +13 -16
- package/dist/es/flex/index.js +1 -1
- package/dist/es/flex-card/index.js +1 -1
- package/dist/es/flex-card/styles.js +1 -1
- package/dist/es/flip-text/index.js +1 -1
- package/dist/es/float-button/index.js +1 -1
- package/dist/es/form/components/form.js +1 -1
- package/dist/es/form/components/index.js +1 -1
- package/dist/es/form/components/reset-button.js +1 -1
- package/dist/es/form/components/submit-button.js +1 -1
- package/dist/es/form/contexts/form-context.js +1 -1
- package/dist/es/form/contexts/form-layout.js +1 -1
- package/dist/es/form/contexts/index.js +1 -1
- package/dist/es/form/fields/auto-complete/index.js +1 -1
- package/dist/es/form/fields/bool/index.js +1 -1
- package/dist/es/form/fields/cascader/index.js +1 -1
- package/dist/es/form/fields/checkbox/index.js +1 -1
- package/dist/es/form/fields/code-editor/index.js +1 -1
- package/dist/es/form/fields/color-picker/index.js +1 -1
- package/dist/es/form/fields/date-picker/index.js +1 -1
- package/dist/es/form/fields/date-range-picker/index.js +1 -1
- package/dist/es/form/fields/icon-picker/index.js +1 -1
- package/dist/es/form/fields/index.js +1 -1
- package/dist/es/form/fields/input/index.js +1 -1
- package/dist/es/form/fields/input-number/index.js +1 -1
- package/dist/es/form/fields/mentions/index.js +1 -1
- package/dist/es/form/fields/password/index.js +1 -1
- package/dist/es/form/fields/radio/index.js +1 -1
- package/dist/es/form/fields/rate/index.js +1 -1
- package/dist/es/form/fields/select/index.js +1 -1
- package/dist/es/form/fields/slider/index.js +1 -1
- package/dist/es/form/fields/textarea/index.js +1 -1
- package/dist/es/form/fields/time-picker/index.js +1 -1
- package/dist/es/form/fields/time-range-picker/index.js +1 -1
- package/dist/es/form/fields/transfer/index.js +1 -1
- package/dist/es/form/fields/tree-select/index.js +1 -1
- package/dist/es/form/fields/upload/index.js +52 -31
- package/dist/es/form/form-actions.js +1 -1
- package/dist/es/form/form.js +1 -1
- package/dist/es/form/helpers/create-field.js +1 -1
- package/dist/es/form/helpers/index.js +1 -1
- package/dist/es/form/helpers/with-form-item.js +1 -1
- package/dist/es/form/hooks/use-form-item-props.js +1 -1
- package/dist/es/form/hooks/use-label-width.js +1 -1
- package/dist/es/form/index.js +1 -1
- package/dist/es/form/use-form.js +1 -1
- package/dist/es/form-drawer/index.js +1 -1
- package/dist/es/form-modal/index.js +1 -1
- package/dist/es/generic-select/index.js +1 -1
- package/dist/es/grid/context.js +1 -1
- package/dist/es/grid/grid-item.js +1 -1
- package/dist/es/grid/hooks/index.js +1 -1
- package/dist/es/grid/hooks/use-container-breakpoints.js +1 -1
- package/dist/es/grid/hooks/use-container-width.js +1 -1
- package/dist/es/grid/hooks/use-grid-collapsed.js +1 -1
- package/dist/es/grid/hooks/use-normalized-gap.js +1 -1
- package/dist/es/grid/hooks/use-responsive-breakpoint.js +1 -1
- package/dist/es/grid/hooks/use-responsive-value.js +1 -1
- package/dist/es/grid/index.js +1 -1
- package/dist/es/grid/styles.js +1 -1
- package/dist/es/group/index.js +1 -1
- package/dist/es/icon/index.js +1 -1
- package/dist/es/icon-button/index.js +1 -1
- package/dist/es/icon-picker/icon-grid.js +1 -1
- package/dist/es/icon-picker/index.js +1 -1
- package/dist/es/image/index.js +1 -1
- package/dist/es/index.js +56 -54
- package/dist/es/input/index.js +1 -1
- package/dist/es/input-number/index.js +1 -1
- package/dist/es/keyboard/index.js +1 -1
- package/dist/es/list/index.js +1 -1
- package/dist/es/loader/index.js +1 -1
- package/dist/es/logo-icon/index.js +1 -1
- package/dist/es/mentions/index.js +1 -1
- package/dist/es/menu/index.js +1 -1
- package/dist/es/modal/index.js +1 -1
- package/dist/es/modal/modal.js +1 -1
- package/dist/es/operation-button/index.js +1 -1
- package/dist/es/page/components/aside-panel.js +1 -1
- package/dist/es/page/components/index.js +1 -1
- package/dist/es/page/components/resize-handle.js +1 -1
- package/dist/es/page/components/scroll-content.js +1 -1
- package/dist/es/page/entrance.js +1 -1
- package/dist/es/page/hooks/index.js +1 -1
- package/dist/es/page/hooks/use-page-key.js +1 -1
- package/dist/es/page/hooks/use-resize.js +1 -1
- package/dist/es/page/index.js +1 -1
- package/dist/es/page/styles.js +1 -1
- package/dist/es/page/viewport-context.js +1 -1
- package/dist/es/pagination/index.js +1 -1
- package/dist/es/permission-gate/index.js +1 -1
- package/dist/es/popconfirm/index.js +1 -1
- package/dist/es/popover/index.js +1 -1
- package/dist/es/pro-search/components/advanced-search-toggler.js +1 -1
- package/dist/es/pro-search/components/advanced-search.js +1 -1
- package/dist/es/pro-search/components/index.js +1 -1
- package/dist/es/pro-search/components/search-actions.js +1 -1
- package/dist/es/pro-search/index.js +1 -1
- package/dist/es/pro-search/styles.js +8 -7
- package/dist/es/pro-table/components/column-setting-item.js +1 -1
- package/dist/es/pro-table/components/column-settings-panel.js +1 -1
- package/dist/es/pro-table/components/column-settings.js +1 -1
- package/dist/es/pro-table/components/index.js +1 -1
- package/dist/es/pro-table/components/operation-button-group.js +1 -1
- package/dist/es/pro-table/components/ref.js +1 -1
- package/dist/es/pro-table/components/table-subscriber.js +1 -1
- package/dist/es/pro-table/components/table-summary.js +1 -1
- package/dist/es/pro-table/components/table-title.js +1 -1
- package/dist/es/pro-table/components/table.js +1 -1
- package/dist/es/pro-table/components/width-popover.js +1 -1
- package/dist/es/pro-table/context.js +1 -1
- package/dist/es/pro-table/event.js +1 -1
- package/dist/es/pro-table/hooks/index.js +1 -1
- package/dist/es/pro-table/hooks/use-column-settings-persistence.js +1 -1
- package/dist/es/pro-table/hooks/use-row-selection.js +1 -1
- package/dist/es/pro-table/hooks/use-table-columns.js +1 -1
- package/dist/es/pro-table/index.js +1 -1
- package/dist/es/pro-table/store.js +1 -1
- package/dist/es/progress/index.js +1 -1
- package/dist/es/qrcode/index.js +1 -1
- package/dist/es/radio/index.js +1 -1
- package/dist/es/rate/index.js +1 -1
- package/dist/es/result/index.js +1 -1
- package/dist/es/row/index.js +1 -1
- package/dist/es/scroll-area/index.js +1 -1
- package/dist/es/scroll-area/styles.js +1 -1
- package/dist/es/segmented/index.js +1 -1
- package/dist/es/select/hooks/index.js +1 -1
- package/dist/es/select/hooks/use-data-options-select.js +1 -1
- package/dist/es/select/hooks/use-dictionary-options-select.js +1 -1
- package/dist/es/select/index.js +1 -1
- package/dist/es/skeleton/index.js +1 -1
- package/dist/es/slider/index.js +1 -1
- package/dist/es/space/index.js +1 -1
- package/dist/es/space/space.js +1 -1
- package/dist/es/sparkles-text/index.js +1 -1
- package/dist/es/sparkles-text/sparkle.js +1 -1
- package/dist/es/spin/index.js +1 -1
- package/dist/es/split-text/index.js +1 -1
- package/dist/es/splitter/index.js +1 -1
- package/dist/es/stack/index.js +1 -1
- package/dist/es/statistic/index.js +1 -1
- package/dist/es/steps/index.js +1 -1
- package/dist/es/switch/index.js +1 -1
- package/dist/es/table/index.js +1 -1
- package/dist/es/table/use-pagination-props.js +1 -1
- package/dist/es/tabs/index.js +1 -1
- package/dist/es/tag/index.js +1 -1
- package/dist/es/time-picker/index.js +1 -1
- package/dist/es/timeline/index.js +1 -1
- package/dist/es/tooltip/index.js +1 -1
- package/dist/es/tour/index.js +1 -1
- package/dist/es/transfer/index.js +1 -1
- package/dist/es/tree/hooks/index.js +1 -1
- package/dist/es/tree/hooks/use-data-options-tree.js +1 -1
- package/dist/es/tree/index.js +1 -1
- package/dist/es/tree-select/hooks/index.js +1 -1
- package/dist/es/tree-select/hooks/use-data-options-tree-select.js +1 -1
- package/dist/es/tree-select/index.js +1 -1
- package/dist/es/typing-animation/index.js +1 -1
- package/dist/es/typography/index.js +1 -1
- package/dist/es/upload/helpers.js +80 -0
- package/dist/es/upload/index.js +105 -41
- package/dist/es/watermark/index.js +1 -1
- package/dist/types/dynamic-icon/index.d.ts +1 -1
- package/dist/types/file-preview/index.d.ts +21 -0
- package/dist/types/file-preview/types.d.ts +55 -0
- package/dist/types/file-upload/helpers.d.ts +1 -0
- package/dist/types/file-upload/index.d.ts +3 -3
- package/dist/types/file-upload/props.d.ts +3 -21
- package/dist/types/index.d.ts +3 -2
- package/dist/types/upload/helpers.d.ts +37 -0
- package/dist/types/upload/index.d.ts +3 -2
- package/dist/types/upload/props.d.ts +24 -0
- package/package.json +4 -4
- package/dist/types/action-button/index.test.d.ts +0 -1
- package/dist/types/action-group/index.test.d.ts +0 -1
- package/dist/types/bool/index.test.d.ts +0 -1
- package/dist/types/code-editor/index.test.d.ts +0 -1
- package/dist/types/crud/helpers.test.d.ts +0 -1
- package/dist/types/crud/store.test.d.ts +0 -1
- package/dist/types/crud-page/index.test.d.ts +0 -1
- package/dist/types/dynamic-icon/index.test.d.ts +0 -1
- package/dist/types/editable-table/index.test.d.ts +0 -1
- package/dist/types/file-upload/index.test.d.ts +0 -1
- package/dist/types/form/components/form.test.d.ts +0 -1
- package/dist/types/form/fields/code-editor/index.test.d.ts +0 -1
- package/dist/types/form/fields/icon-picker/index.test.d.ts +0 -1
- package/dist/types/form/form-actions.test.d.ts +0 -1
- package/dist/types/form-drawer/index.test.d.ts +0 -1
- package/dist/types/form-modal/index.test.d.ts +0 -1
- package/dist/types/generic-select/index.test.d.ts +0 -1
- package/dist/types/grid/index.test.d.ts +0 -1
- package/dist/types/icon-button/index.test.d.ts +0 -1
- package/dist/types/icon-picker/index.test.d.ts +0 -1
- package/dist/types/keyboard/index.test.d.ts +0 -1
- package/dist/types/modal/index.test.d.ts +0 -1
- package/dist/types/operation-button/index.test.d.ts +0 -1
- package/dist/types/page/entrance.test.d.ts +0 -1
- package/dist/types/page/index.test.d.ts +0 -1
- package/dist/types/permission-gate/index.test.d.ts +0 -1
- package/dist/types/pro-table/index.test.d.ts +0 -1
- package/dist/types/scroll-area/index.test.d.ts +0 -1
- package/dist/types/table/index.test.d.ts +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.11.0 made by Venus | 2026-07-15T09:37:59.038Z */
|
|
2
2
|
import { Stack as e } from "../stack/index.js";
|
|
3
3
|
import { ProTableStoreProvider as t } from "./store.js";
|
|
4
4
|
import { ColumnSettingsStorageKeyProvider as n } from "./context.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.11.0 made by Venus | 2026-07-15T09:37:59.038Z */
|
|
2
2
|
import { pageSizeOptions as e } from "../table/use-pagination-props.js";
|
|
3
3
|
import { createEventEmitter as t } from "./event.js";
|
|
4
4
|
import { isFunction as n, isNumber as r } from "@vef-framework-react/shared";
|
package/dist/es/qrcode/index.js
CHANGED
package/dist/es/radio/index.js
CHANGED
package/dist/es/rate/index.js
CHANGED
package/dist/es/result/index.js
CHANGED
package/dist/es/row/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.11.0 made by Venus | 2026-07-15T09:37:59.038Z */
|
|
2
2
|
import { getSpacingValue as e } from "../_base/helpers/common.js";
|
|
3
3
|
import { root as t, scrollbar as n, thumb as r, viewport as i } from "./styles.js";
|
|
4
4
|
import { jsx as a, jsxs as o } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.11.0 made by Venus | 2026-07-15T09:37:59.038Z */
|
|
2
2
|
import { useDataOptionsSelect as e } from "./use-data-options-select.js";
|
|
3
3
|
import { useDictionaryOptionsSelect as t } from "./use-dictionary-options-select.js";
|
|
4
4
|
export { e as useDataOptionsSelect, t as useDictionaryOptionsSelect };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.11.0 made by Venus | 2026-07-15T09:37:59.038Z */
|
|
2
2
|
import { Loader as e } from "../../loader/index.js";
|
|
3
3
|
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
4
|
import { useDataOptionsQuery as n } from "@vef-framework-react/hooks";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.11.0 made by Venus | 2026-07-15T09:37:59.038Z */
|
|
2
2
|
import { Loader as e } from "../../loader/index.js";
|
|
3
3
|
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
4
|
import { isArray as n, withPinyin as r } from "@vef-framework-react/shared";
|
package/dist/es/select/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.11.0 made by Venus | 2026-07-15T09:37:59.038Z */
|
|
2
2
|
import { useDataOptionsSelect as e } from "./hooks/use-data-options-select.js";
|
|
3
3
|
import { useDictionaryOptionsSelect as t } from "./hooks/use-dictionary-options-select.js";
|
|
4
4
|
import { Select as n } from "antd";
|
package/dist/es/slider/index.js
CHANGED
package/dist/es/space/index.js
CHANGED
package/dist/es/space/space.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.11.0 made by Venus | 2026-07-15T09:37:59.038Z */
|
|
2
2
|
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
3
3
|
import { Space as t } from "antd";
|
|
4
4
|
//#region src/space/space.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.11.0 made by Venus | 2026-07-15T09:37:59.038Z */
|
|
2
2
|
import { Sparkle as e } from "./sparkle.js";
|
|
3
3
|
import { jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
|
|
4
4
|
import { useEffect as r, useState as i } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.11.0 made by Venus | 2026-07-15T09:37:59.038Z */
|
|
2
2
|
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
3
3
|
import "@emotion/react";
|
|
4
4
|
import { motion as t } from "@vef-framework-react/core";
|
package/dist/es/spin/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.11.0 made by Venus | 2026-07-15T09:37:59.038Z */
|
|
2
2
|
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
3
3
|
import { useEffect as t, useRef as n, useState as r } from "react";
|
|
4
4
|
import { clsx as i } from "@vef-framework-react/core";
|
package/dist/es/stack/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.11.0 made by Venus | 2026-07-15T09:37:59.038Z */
|
|
2
2
|
import { Flex as e } from "../flex/index.js";
|
|
3
3
|
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
4
|
//#region src/stack/index.tsx
|
package/dist/es/steps/index.js
CHANGED
package/dist/es/switch/index.js
CHANGED
package/dist/es/table/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.11.0 made by Venus | 2026-07-15T09:37:59.038Z */
|
|
2
2
|
import { globalCssVars as e } from "../_base/constants/css-vars.js";
|
|
3
3
|
import { fullHeight as t } from "../_base/styles/common.js";
|
|
4
4
|
import { pageSizeOptions as n, usePaginationProps as r } from "./use-pagination-props.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.11.0 made by Venus | 2026-07-15T09:37:59.038Z */
|
|
2
2
|
import { Fragment as e, jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
|
|
3
3
|
import { useMemo as r } from "react";
|
|
4
4
|
//#region src/table/use-pagination-props.tsx
|
package/dist/es/tabs/index.js
CHANGED
package/dist/es/tag/index.js
CHANGED
package/dist/es/tooltip/index.js
CHANGED
package/dist/es/tour/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.11.0 made by Venus | 2026-07-15T09:37:59.038Z */
|
|
2
2
|
import { useDataOptionsTree as e } from "./use-data-options-tree.js";
|
|
3
3
|
export { e as useDataOptionsTree };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.11.0 made by Venus | 2026-07-15T09:37:59.038Z */
|
|
2
2
|
import { filterTreeWithAncestors as e, isString as t } from "@vef-framework-react/shared";
|
|
3
3
|
import { useDataOptionsQuery as n } from "@vef-framework-react/hooks";
|
|
4
4
|
import { useEffect as r, useEffectEvent as i, useMemo as a, useState as o } from "react";
|
package/dist/es/tree/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.11.0 made by Venus | 2026-07-15T09:37:59.038Z */
|
|
2
2
|
import { useDataOptionsTree as e } from "./hooks/use-data-options-tree.js";
|
|
3
3
|
import { Tree as t } from "antd";
|
|
4
4
|
export { t as Tree, e as useDataOptionsTree };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.11.0 made by Venus | 2026-07-15T09:37:59.038Z */
|
|
2
2
|
import { useDataOptionsTreeSelect as e } from "./use-data-options-tree-select.js";
|
|
3
3
|
export { e as useDataOptionsTreeSelect };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.11.0 made by Venus | 2026-07-15T09:37:59.038Z */
|
|
2
2
|
import { Loader as e } from "../../loader/index.js";
|
|
3
3
|
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
4
|
import { isString as n } from "@vef-framework-react/shared";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.11.0 made by Venus | 2026-07-15T09:37:59.038Z */
|
|
2
2
|
import { useDataOptionsTreeSelect as e } from "./hooks/use-data-options-tree-select.js";
|
|
3
3
|
import { TreeSelect as t } from "antd";
|
|
4
4
|
export { t as TreeSelect, e as useDataOptionsTreeSelect };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.11.0 made by Venus | 2026-07-15T09:37:59.038Z */
|
|
2
2
|
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
3
3
|
import { Children as t, useEffect as n, useRef as r, useState as i } from "react";
|
|
4
4
|
import { motion as a, useInView as o } from "@vef-framework-react/core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.11.0 made by Venus | 2026-07-15T09:37:59.038Z */
|
|
2
2
|
import { Typography as e } from "antd";
|
|
3
3
|
//#region src/typography/index.ts
|
|
4
4
|
var { Text: t, Link: n, Title: r, Paragraph: i } = e;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.11.0 made by Venus | 2026-07-15T09:37:59.038Z */
|
|
2
|
+
//#region src/upload/helpers.ts
|
|
3
|
+
var e = /* @__PURE__ */ new Set([
|
|
4
|
+
".avif",
|
|
5
|
+
".bmp",
|
|
6
|
+
".dpg",
|
|
7
|
+
".gif",
|
|
8
|
+
".heic",
|
|
9
|
+
".heif",
|
|
10
|
+
".ico",
|
|
11
|
+
".jfif",
|
|
12
|
+
".jpg",
|
|
13
|
+
".jpeg",
|
|
14
|
+
".png",
|
|
15
|
+
".svg",
|
|
16
|
+
".tif",
|
|
17
|
+
".tiff",
|
|
18
|
+
".webp"
|
|
19
|
+
]), t = /\.[^./\\]*$/, n = Symbol.for("@vef-framework-react/components/upload/original-file-url");
|
|
20
|
+
function r(e) {
|
|
21
|
+
return e[n] ?? e.url;
|
|
22
|
+
}
|
|
23
|
+
function i(e) {
|
|
24
|
+
let { sourceUrl: t } = e;
|
|
25
|
+
return t ?? r(e);
|
|
26
|
+
}
|
|
27
|
+
function a(e) {
|
|
28
|
+
return e.url ? {
|
|
29
|
+
...e,
|
|
30
|
+
url: void 0,
|
|
31
|
+
[n]: e.url
|
|
32
|
+
} : e;
|
|
33
|
+
}
|
|
34
|
+
function o(e) {
|
|
35
|
+
let t = e[n];
|
|
36
|
+
if (t === void 0) return e;
|
|
37
|
+
let r = {
|
|
38
|
+
...e,
|
|
39
|
+
url: t
|
|
40
|
+
};
|
|
41
|
+
return delete r[n], r;
|
|
42
|
+
}
|
|
43
|
+
function s(e) {
|
|
44
|
+
if (!e || typeof e != "object" || !("url" in e)) return;
|
|
45
|
+
let t = e;
|
|
46
|
+
typeof t.url == "string" && (t[n] = t.url, Object.defineProperty(t, "url", {
|
|
47
|
+
configurable: !0,
|
|
48
|
+
enumerable: !1,
|
|
49
|
+
value: t.url,
|
|
50
|
+
writable: !0
|
|
51
|
+
}));
|
|
52
|
+
}
|
|
53
|
+
function c(e) {
|
|
54
|
+
let n = (e.split("/").pop() ?? "").split(/[#?]/, 1)[0] ?? "";
|
|
55
|
+
return t.exec(n)?.[0] ?? "";
|
|
56
|
+
}
|
|
57
|
+
function l(t) {
|
|
58
|
+
let n = c(t);
|
|
59
|
+
return n ? e.has(n.toLowerCase()) : void 0;
|
|
60
|
+
}
|
|
61
|
+
function u(e) {
|
|
62
|
+
if (e.type) return e.type.startsWith("image/");
|
|
63
|
+
let { fileName: t } = e, n = l(t ?? e.name);
|
|
64
|
+
if (n !== void 0) return n;
|
|
65
|
+
let r = i(e) ?? "";
|
|
66
|
+
return r.startsWith("data:image/") ? !0 : r.startsWith("data:") ? !1 : l(r) ?? !1;
|
|
67
|
+
}
|
|
68
|
+
function d(e) {
|
|
69
|
+
let { key: t, fileName: n } = e;
|
|
70
|
+
return {
|
|
71
|
+
filename: n ?? e.name,
|
|
72
|
+
contentType: e.type,
|
|
73
|
+
size: e.size,
|
|
74
|
+
file: e.originFileObj,
|
|
75
|
+
key: t,
|
|
76
|
+
url: i(e)
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
export { i as getUploadSourceUrl, u as isImageFile, s as isolateUploadRequestFileUrl, a as toAntdUploadFile, d as toFilePreviewTarget, o as toPublicUploadFile };
|
package/dist/es/upload/index.js
CHANGED
|
@@ -1,62 +1,126 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
1
|
+
/*! @vef-framework-react/components v2.11.0 made by Venus | 2026-07-15T09:37:59.038Z */
|
|
2
|
+
import { showWarningMessage as e } from "../_base/helpers/message.js";
|
|
3
|
+
import { mergeProps as t } from "../_base/helpers/props.js";
|
|
4
|
+
import { Button as n } from "../button/index.js";
|
|
5
|
+
import { Icon as r } from "../icon/index.js";
|
|
6
|
+
import { useFilePreview as i } from "../file-preview/index.js";
|
|
7
|
+
import { Image as a } from "../image/index.js";
|
|
8
|
+
import { getUploadSourceUrl as ee, isImageFile as o, isolateUploadRequestFileUrl as s, toAntdUploadFile as c, toFilePreviewTarget as l, toPublicUploadFile as u } from "./helpers.js";
|
|
9
|
+
import { Fragment as d, jsx as f, jsxs as p } from "@emotion/react/jsx-runtime";
|
|
10
|
+
import { useCallback as m, useMemo as h, useState as g } from "react";
|
|
11
|
+
import { Upload as _ } from "antd";
|
|
12
|
+
import { PlusIcon as v, UploadIcon as y } from "lucide-react";
|
|
13
|
+
import te from "antd-img-crop";
|
|
11
14
|
//#region src/upload/index.tsx
|
|
12
|
-
|
|
15
|
+
function b(e) {
|
|
16
|
+
if (typeof e != "function") return e;
|
|
17
|
+
let t = e;
|
|
18
|
+
return (e) => t(u(e));
|
|
19
|
+
}
|
|
20
|
+
var x = {
|
|
13
21
|
showReset: !0,
|
|
14
22
|
rotationSlider: !0,
|
|
15
23
|
zoomSlider: !0
|
|
16
24
|
};
|
|
17
|
-
async function
|
|
25
|
+
async function S(e) {
|
|
18
26
|
return await new Promise((t, n) => {
|
|
19
27
|
let r = new FileReader();
|
|
20
28
|
r.readAsDataURL(e), r.addEventListener("load", () => t(r.result)), r.addEventListener("error", (e) => n(e));
|
|
21
29
|
});
|
|
22
30
|
}
|
|
23
|
-
function
|
|
24
|
-
let
|
|
25
|
-
disabled:
|
|
26
|
-
icon: /* @__PURE__ */
|
|
31
|
+
function C({ enableCrop: C = !1, cropperProps: w, isImageUrl: T, listType: E, fileList: D, iconRender: O, itemRender: k, defaultFileList: A, maxCount: j, pastable: ne = !0, customRequest: M, onChange: N, onDownload: P, onPreview: F, onRemove: I, showUploadList: L, children: R, ...z }) {
|
|
32
|
+
let B = E === "picture-card" || E === "picture-circle", V = (D || A || []).length >= (j || Infinity), H = h(() => R || (B ? /* @__PURE__ */ f(r, { component: v }) : /* @__PURE__ */ f(n, {
|
|
33
|
+
disabled: V,
|
|
34
|
+
icon: /* @__PURE__ */ f(r, { component: y }),
|
|
27
35
|
type: "primary",
|
|
28
36
|
children: "上传"
|
|
29
37
|
})), [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
]), [
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
38
|
+
R,
|
|
39
|
+
B,
|
|
40
|
+
V
|
|
41
|
+
]), [U, W] = g(!1), [G, K] = g(""), q = i(), J = h(() => D?.map((e) => c(e)), [D]), Y = h(() => A?.map((e) => c(e)), [A]), X = h(() => {
|
|
42
|
+
if (M) return (e, t) => M({
|
|
43
|
+
...e,
|
|
44
|
+
onSuccess: (t, n) => {
|
|
45
|
+
s(e.file), e.onSuccess?.(t, n);
|
|
46
|
+
}
|
|
47
|
+
}, t);
|
|
48
|
+
}, [M]), Z = m(async (t) => {
|
|
49
|
+
if (o(t)) {
|
|
50
|
+
let e = ee(t);
|
|
51
|
+
!e && t.originFileObj && (e = await S(t.originFileObj)), K(e), W(!0);
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
let n = l(t);
|
|
55
|
+
if (q && (q.canPreview?.(n) ?? !0)) {
|
|
56
|
+
q.openPreview(n);
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
e("该文件暂不支持预览");
|
|
60
|
+
}, [q]), re = m((e) => {
|
|
61
|
+
let t = e.fileList.map((e) => u(e)), n = t.find((t) => t.uid === e.file.uid) ?? u(e.file);
|
|
62
|
+
N?.({
|
|
63
|
+
...e,
|
|
64
|
+
file: n,
|
|
65
|
+
fileList: t
|
|
66
|
+
});
|
|
67
|
+
}, [N]), ie = m((t) => {
|
|
68
|
+
if (P) {
|
|
69
|
+
P(u(t));
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
e("该文件暂不支持下载");
|
|
73
|
+
}, [P]), ae = m((e) => {
|
|
74
|
+
if (F) {
|
|
75
|
+
F(u(e));
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
Z(e);
|
|
79
|
+
}, [Z, F]), oe = m((e) => I?.(u(e)), [I]), se = h(() => T ? (e) => T(u(e)) : void 0, [T]), Q = h(() => {
|
|
80
|
+
if (O) return (e, t) => O(u(e), t);
|
|
81
|
+
}, [O]), ce = h(() => {
|
|
82
|
+
if (k) return (e, t, n, r) => k(e, u(t), n.map((e) => u(e)), r);
|
|
83
|
+
}, [k]), le = h(() => !L || typeof L == "boolean" ? L : {
|
|
84
|
+
...L,
|
|
85
|
+
downloadIcon: b(L.downloadIcon),
|
|
86
|
+
extra: b(L.extra),
|
|
87
|
+
previewIcon: b(L.previewIcon),
|
|
88
|
+
removeIcon: b(L.removeIcon),
|
|
89
|
+
showDownloadIcon: b(L.showDownloadIcon),
|
|
90
|
+
showPreviewIcon: b(L.showPreviewIcon),
|
|
91
|
+
showRemoveIcon: b(L.showRemoveIcon)
|
|
92
|
+
}, [L]), ue = !B || !V, $ = /* @__PURE__ */ f(_, {
|
|
93
|
+
...z,
|
|
94
|
+
customRequest: X,
|
|
95
|
+
defaultFileList: Y,
|
|
96
|
+
fileList: J,
|
|
97
|
+
iconRender: Q,
|
|
98
|
+
isImageUrl: se,
|
|
99
|
+
itemRender: ce,
|
|
100
|
+
listType: E,
|
|
101
|
+
maxCount: j,
|
|
102
|
+
pastable: ne,
|
|
103
|
+
showUploadList: le,
|
|
104
|
+
onChange: re,
|
|
105
|
+
onDownload: ie,
|
|
106
|
+
onPreview: ae,
|
|
107
|
+
onRemove: oe,
|
|
108
|
+
children: ue && H
|
|
109
|
+
}), de = h(() => t(w ?? {}, x), [w]);
|
|
110
|
+
return /* @__PURE__ */ p(d, { children: [C ? /* @__PURE__ */ f(te, {
|
|
111
|
+
...de,
|
|
112
|
+
children: $
|
|
113
|
+
}) : $, G && /* @__PURE__ */ f(a, {
|
|
114
|
+
src: G,
|
|
51
115
|
styles: { root: { display: "none" } },
|
|
52
116
|
preview: {
|
|
53
|
-
open:
|
|
54
|
-
onOpenChange: (e) =>
|
|
117
|
+
open: U,
|
|
118
|
+
onOpenChange: (e) => W(e),
|
|
55
119
|
afterOpenChange: (e) => {
|
|
56
|
-
e ||
|
|
120
|
+
e || K("");
|
|
57
121
|
}
|
|
58
122
|
}
|
|
59
123
|
})] });
|
|
60
124
|
}
|
|
61
125
|
//#endregion
|
|
62
|
-
export {
|
|
126
|
+
export { C as Upload, l as toFilePreviewTarget };
|