@vef-framework-react/components 2.10.0 → 2.12.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/code-editor/completions.cjs +1 -0
- package/dist/cjs/code-editor/format.cjs +3 -0
- package/dist/cjs/code-editor/index.cjs +1 -1
- package/dist/cjs/crud/components/scene-form.cjs +1 -1
- package/dist/cjs/crud/index.cjs +1 -1
- package/dist/cjs/editable-table/index.cjs +1 -1
- 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/flex-tabs/index.cjs +1 -0
- package/dist/cjs/flex-tabs/styles.cjs +1 -0
- package/dist/cjs/form/fields/upload/index.cjs +1 -1
- package/dist/cjs/form-drawer/index.cjs +1 -1
- package/dist/cjs/form-modal/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/labeled/index.cjs +1 -0
- package/dist/cjs/labels/index.cjs +1 -0
- 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/completions.js +51 -0
- package/dist/es/code-editor/format.js +26 -0
- package/dist/es/code-editor/index.js +193 -117
- 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 +23 -22
- 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 +17 -16
- 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 +28 -26
- 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/flex-tabs/index.js +13 -0
- package/dist/es/flex-tabs/styles.js +16 -0
- 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 +38 -37
- package/dist/es/form-modal/index.js +29 -28
- 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 +98 -92
- 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/labeled/index.js +50 -0
- package/dist/es/labels/index.js +136 -0
- 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 +1 -1
- package/dist/es/pro-table/components/column-setting-item.js +8 -8
- 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/code-editor/completions.d.ts +62 -0
- package/dist/types/code-editor/format.d.ts +10 -0
- package/dist/types/code-editor/index.d.ts +2 -1
- package/dist/types/code-editor/props.d.ts +20 -1
- package/dist/types/crud/components/scene-form.d.ts +1 -1
- package/dist/types/crud/index.d.ts +1 -1
- package/dist/types/crud/props.d.ts +6 -0
- package/dist/types/dynamic-icon/index.d.ts +1 -1
- package/dist/types/editable-table/props.d.ts +14 -0
- 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/flex-tabs/index.d.ts +10 -0
- package/dist/types/flex-tabs/props.d.ts +2 -0
- package/dist/types/flex-tabs/styles.d.ts +2 -0
- package/dist/types/form/index.d.ts +1 -0
- package/dist/types/form-drawer/props.d.ts +6 -1
- package/dist/types/form-modal/props.d.ts +6 -1
- package/dist/types/index.d.ts +7 -3
- package/dist/types/labeled/index.d.ts +29 -0
- package/dist/types/labels/index.d.ts +54 -0
- 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 +6 -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.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
|
|
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.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
|
|
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.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
|
|
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.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
|
|
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.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
|
|
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.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
|
|
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.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
|
|
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.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
|
|
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.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
|
|
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.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
|
|
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.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
|
|
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.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
|
|
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.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
|
|
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.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
|
|
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.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
|
|
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.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
|
|
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.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
|
|
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.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
|
|
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.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
|
|
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 };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { CompletionSource } from '@codemirror/autocomplete';
|
|
2
|
+
/**
|
|
3
|
+
* One entry of a declarative completion catalog. Entries form a tree: root
|
|
4
|
+
* entries complete as globals, and an entry's `children` complete after
|
|
5
|
+
* `label.` — so a catalog can describe host-injected bindings and libraries
|
|
6
|
+
* without the caller touching CodeMirror APIs.
|
|
7
|
+
*/
|
|
8
|
+
export interface CompletionEntry {
|
|
9
|
+
/**
|
|
10
|
+
* The identifier to insert.
|
|
11
|
+
*/
|
|
12
|
+
label: string;
|
|
13
|
+
/**
|
|
14
|
+
* The completion icon kind (CodeMirror vocabulary: "function", "method",
|
|
15
|
+
* "property", "variable", "namespace", "class", "constant", ...). Defaults
|
|
16
|
+
* to "namespace" for entries with children, else "variable".
|
|
17
|
+
*/
|
|
18
|
+
type?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Short signature or annotation rendered after the label, e.g. "(url, options?)".
|
|
21
|
+
*/
|
|
22
|
+
detail?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Documentation shown in the info panel next to the selected option.
|
|
25
|
+
*/
|
|
26
|
+
info?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Ranking boost (-99..99) applied when options score equally.
|
|
29
|
+
*/
|
|
30
|
+
boost?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Members offered after `label.`.
|
|
33
|
+
*/
|
|
34
|
+
children?: CompletionEntry[];
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Walk a catalog along an object path (`["http"]` for `http.`), returning the
|
|
38
|
+
* member entries to offer at that level, or null when the path leaves the
|
|
39
|
+
* catalog (letting other completion sources take over).
|
|
40
|
+
*/
|
|
41
|
+
export declare function resolveEntryPath(entries: readonly CompletionEntry[], path: readonly string[]): readonly CompletionEntry[] | null;
|
|
42
|
+
/**
|
|
43
|
+
* A completion source that offers catalog entries as JSON object keys.
|
|
44
|
+
* Inside a property-name string — closed (a `PropertyName` node) or still
|
|
45
|
+
* being typed (an error node directly under `Object` starting with a quote)
|
|
46
|
+
* — it completes the text after the opening quote. At a bare key position it
|
|
47
|
+
* inserts the fully quoted key, but only on an explicit request so plain
|
|
48
|
+
* typing stays quiet. Value positions never match (an unterminated value
|
|
49
|
+
* string parses as an error node under `Property`), so string values get no
|
|
50
|
+
* keyword noise.
|
|
51
|
+
*/
|
|
52
|
+
export declare function completeJsonKeysFromEntries(entries: readonly CompletionEntry[]): CompletionSource;
|
|
53
|
+
/**
|
|
54
|
+
* A completion source over an entry catalog, named after CodeMirror's own
|
|
55
|
+
* `completeFromList`. It resolves the member path before the cursor via
|
|
56
|
+
* `completionPath` (loaded lazily alongside the JavaScript language pack, so
|
|
57
|
+
* it never enters the initial bundle) and offers the matching level of the
|
|
58
|
+
* catalog; outside the catalog it stays silent so other sources take over.
|
|
59
|
+
* `completionPath` also does the gating: outside an identifier or property
|
|
60
|
+
* it only yields a target on an explicit request.
|
|
61
|
+
*/
|
|
62
|
+
export declare function completeFromEntries(entries: readonly CompletionEntry[]): CompletionSource;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A formatter rewrites a whole document, returning the formatted text.
|
|
3
|
+
* It throws when the source cannot be parsed.
|
|
4
|
+
*/
|
|
5
|
+
export type CodeFormatter = (source: string, tabSize: number) => Promise<string> | string;
|
|
6
|
+
/**
|
|
7
|
+
* The built-in formatter for a `language` prop value, or undefined when the
|
|
8
|
+
* language is a custom extension or has no formatter.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getFormatter(language: unknown): CodeFormatter | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropsWithRef } from '../_base';
|
|
2
2
|
import { CodeEditorProps, CodeEditorRef } from './props';
|
|
3
|
-
export declare function CodeEditor({ ref, value, defaultValue, onChange, onBlur, onFocus, onCreateEditor, language, theme, readOnly, placeholder, autoFocus, showLineNumbers, showFoldGutter, showSearch, showHighlightActiveLine, tabSize, indentWithTab, height, minHeight, maxHeight, width, status, size, bordered, className, style, extensions, basicSetupOptions }: PropsWithRef<CodeEditorRef, CodeEditorProps>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function CodeEditor({ ref, value, defaultValue, onChange, onBlur, onFocus, onCreateEditor, language, theme, readOnly, placeholder, autoFocus, showLineNumbers, showFoldGutter, showSearch, showFormat, showHighlightActiveLine, tabSize, indentWithTab, height, minHeight, maxHeight, width, status, size, bordered, className, style, completions, extensions, basicSetupOptions }: PropsWithRef<CodeEditorRef, CodeEditorProps>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { completeFromEntries, type CompletionEntry } from './completions';
|
|
4
5
|
export type { CodeEditorLanguage, CodeEditorProps, CodeEditorRef, CodeEditorTheme } from './props';
|
|
@@ -3,12 +3,13 @@ import { EditorView } from '@codemirror/view';
|
|
|
3
3
|
import { BasicSetupOptions } from '@uiw/react-codemirror';
|
|
4
4
|
import { CSSProperties } from 'react';
|
|
5
5
|
import { Length, Size } from '../_base';
|
|
6
|
+
import { CompletionEntry } from './completions';
|
|
6
7
|
/**
|
|
7
8
|
* Built-in language identifiers shipped with the CodeEditor. To use a
|
|
8
9
|
* language outside of this list, install the corresponding `@codemirror/lang-*`
|
|
9
10
|
* package and pass its extension through `language` (or `extensions`).
|
|
10
11
|
*/
|
|
11
|
-
export type CodeEditorLanguage = "json" | "javascript" | "typescript" | "markdown" | "sql" | "python";
|
|
12
|
+
export type CodeEditorLanguage = "json" | "javascript" | "typescript" | "markdown" | "sql" | "python" | "xml";
|
|
12
13
|
/**
|
|
13
14
|
* Color scheme for the editor.
|
|
14
15
|
*
|
|
@@ -182,6 +183,24 @@ export interface CodeEditorProps {
|
|
|
182
183
|
* Inline styles applied to the outer wrapper.
|
|
183
184
|
*/
|
|
184
185
|
style?: CSSProperties;
|
|
186
|
+
/**
|
|
187
|
+
* Declarative completion catalog. On the built-in "javascript" /
|
|
188
|
+
* "typescript" languages entries complete as identifiers (with `children`
|
|
189
|
+
* completing after `label.`) alongside the language's own completions; on
|
|
190
|
+
* the built-in "json" language entries complete as object keys inside
|
|
191
|
+
* property-name strings (e.g. a JSON Schema keyword catalog). Other
|
|
192
|
+
* languages ignore it. Pass a stable reference — a fresh array each render
|
|
193
|
+
* reconfigures the live editor.
|
|
194
|
+
*/
|
|
195
|
+
completions?: CompletionEntry[];
|
|
196
|
+
/**
|
|
197
|
+
* Show the floating format action when the language has a built-in
|
|
198
|
+
* formatter ("json" via JSON re-indent, "javascript" / "typescript" via
|
|
199
|
+
* prettier, loaded on first use). Never shown for read-only editors.
|
|
200
|
+
*
|
|
201
|
+
* @default true
|
|
202
|
+
*/
|
|
203
|
+
showFormat?: boolean;
|
|
185
204
|
/**
|
|
186
205
|
* Extra CodeMirror extensions appended after the built-in basic setup
|
|
187
206
|
* and the resolved language. Use this for linters, custom keymaps, or
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnyObject } from '@vef-framework-react/shared';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { BaseCrudProps } from '../props';
|
|
4
|
-
interface SceneFormProps<TSceneFormValues extends AnyObject> extends Pick<BaseCrudProps<AnyObject, AnyObject, TSceneFormValues, AnyObject>, "renderForm" | "formComponent" | "formMutationFns" | "formActionsRenderers" | "beforeFormSubmit" | "afterFormSubmit" | "mutationMeta"> {
|
|
4
|
+
interface SceneFormProps<TSceneFormValues extends AnyObject> extends Pick<BaseCrudProps<AnyObject, AnyObject, TSceneFormValues, AnyObject>, "renderForm" | "formComponent" | "formLayout" | "formMutationFns" | "formActionsRenderers" | "beforeFormSubmit" | "afterFormSubmit" | "mutationMeta"> {
|
|
5
5
|
}
|
|
6
6
|
export declare const SceneForm: <TSceneFormValues extends AnyObject>(props: SceneFormProps<TSceneFormValues>) => ReactNode;
|
|
7
7
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnyObject } from '@vef-framework-react/shared';
|
|
2
2
|
import { CrudProps } from './props';
|
|
3
|
-
export declare function Crud<TRow extends AnyObject, TSearchValues extends AnyObject, TSceneFormValues extends AnyObject, TParams extends AnyObject = never>({ storageKey, defaultSearchValues, advancedSearch, sceneDefaultFormValues, renderForm, formComponent, formMutationFns, formActionsRenderers, beforeFormSubmit, afterFormSubmit, deleteMutationFn, deleteManyMutationFn, mutationMeta, rowSelection, rowKey, ...bodyProps }: CrudProps<TRow, TSearchValues, TSceneFormValues, TParams>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function Crud<TRow extends AnyObject, TSearchValues extends AnyObject, TSceneFormValues extends AnyObject, TParams extends AnyObject = never>({ storageKey, defaultSearchValues, advancedSearch, sceneDefaultFormValues, renderForm, formComponent, formLayout, formMutationFns, formActionsRenderers, beforeFormSubmit, afterFormSubmit, deleteMutationFn, deleteManyMutationFn, mutationMeta, rowSelection, rowKey, ...bodyProps }: CrudProps<TRow, TSearchValues, TSceneFormValues, TParams>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
4
|
export type { ActionButtonGroupProps as CrudActionButtonGroupProps, OperationButtonGroupProps as CrudOperationButtonGroupProps } from './components';
|
|
5
5
|
export { createCrudKit } from './helpers';
|
|
6
6
|
export type { CrudKit } from './helpers';
|