@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 { Center as e } from "../center/index.js";
|
|
3
3
|
import t from "../empty/empty.js";
|
|
4
4
|
import { DefaultResetButton as n, DefaultSubmitButton as r, FormActions as i } from "../form/form-actions.js";
|
|
@@ -13,62 +13,63 @@ var p = /* @__PURE__ */ s(e, { children: /* @__PURE__ */ s(t, { description: "
|
|
|
13
13
|
function m(e, t) {
|
|
14
14
|
return c(e) ? e(t) : e || p;
|
|
15
15
|
}
|
|
16
|
-
var h = l(({ open: e = !1, title: t, width: l, draggable: p = !0, submitButtonProps: h, resetButtonProps: g, defaultValues: _, disabled: v = !1, formComponent: y,
|
|
17
|
-
let
|
|
16
|
+
var h = l(({ open: e = !1, title: t, width: l, draggable: p = !0, submitButtonProps: h, resetButtonProps: g, defaultValues: _, disabled: v = !1, formComponent: y, formLayout: b, renderActions: x, mutationFn: S, mutationMeta: C, children: w, beforeSubmit: T, afterSubmit: E, onClose: D, onSubmit: O, onReset: k }) => {
|
|
17
|
+
let A = a({
|
|
18
18
|
defaultValues: _,
|
|
19
19
|
onSubmit: async ({ value: e }) => {
|
|
20
20
|
let t = e;
|
|
21
|
-
c(
|
|
21
|
+
c(T) && (t = await T(t)), c(O) && await O(t), S ? await I(t) : O || P();
|
|
22
22
|
}
|
|
23
|
-
}), { Form:
|
|
24
|
-
|
|
25
|
-
}, [
|
|
26
|
-
mutationKey: [
|
|
27
|
-
mutationFn:
|
|
23
|
+
}), { Form: j, AppForm: M, reset: N } = A, P = u(() => {
|
|
24
|
+
N(), D?.();
|
|
25
|
+
}, [D, N]), { isPending: F, mutateAsync: I } = f({
|
|
26
|
+
mutationKey: [S?.key],
|
|
27
|
+
mutationFn: S,
|
|
28
28
|
onSuccess: async ({ data: e }, t) => {
|
|
29
|
-
c(
|
|
29
|
+
c(E) && await E(t, e), P();
|
|
30
30
|
},
|
|
31
|
-
meta:
|
|
32
|
-
}),
|
|
33
|
-
|
|
34
|
-
}, [_,
|
|
35
|
-
|
|
36
|
-
}, [
|
|
31
|
+
meta: C
|
|
32
|
+
}), L = u(() => {
|
|
33
|
+
k?.(_);
|
|
34
|
+
}, [_, k]), R = u(() => {
|
|
35
|
+
F || P();
|
|
36
|
+
}, [F, P]), z = d(() => new Proxy(A, { get(e, t, n) {
|
|
37
37
|
if (t === "reset") {
|
|
38
38
|
let r = Reflect.get(e, t, n);
|
|
39
39
|
return () => {
|
|
40
|
-
r(),
|
|
40
|
+
r(), L();
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
return Reflect.get(e, t, n);
|
|
44
|
-
} }), [
|
|
44
|
+
} }), [A, L]);
|
|
45
45
|
return /* @__PURE__ */ s(o, {
|
|
46
46
|
centered: !0,
|
|
47
47
|
destroyOnHidden: !0,
|
|
48
48
|
draggable: p,
|
|
49
|
-
footer:
|
|
50
|
-
let e =
|
|
49
|
+
footer: x ? (() => {
|
|
50
|
+
let e = x(z, {
|
|
51
51
|
submitButton: /* @__PURE__ */ s(r, { submitButtonProps: h }),
|
|
52
52
|
resetButton: /* @__PURE__ */ s(n, {
|
|
53
53
|
resetButtonProps: g,
|
|
54
|
-
onReset:
|
|
54
|
+
onReset: L
|
|
55
55
|
})
|
|
56
56
|
});
|
|
57
|
-
return e ? /* @__PURE__ */ s(
|
|
58
|
-
})() : /* @__PURE__ */ s(
|
|
57
|
+
return e ? /* @__PURE__ */ s(M, { children: e }) : null;
|
|
58
|
+
})() : /* @__PURE__ */ s(M, { children: /* @__PURE__ */ s(i, {
|
|
59
59
|
resetButtonProps: g,
|
|
60
60
|
submitButtonProps: h,
|
|
61
|
-
onReset:
|
|
61
|
+
onReset: L
|
|
62
62
|
}) }),
|
|
63
63
|
keyboard: !1,
|
|
64
64
|
open: e,
|
|
65
65
|
title: t,
|
|
66
66
|
width: l,
|
|
67
|
-
onCancel:
|
|
68
|
-
children: /* @__PURE__ */ s(
|
|
67
|
+
onCancel: R,
|
|
68
|
+
children: /* @__PURE__ */ s(M, { children: /* @__PURE__ */ s(j, {
|
|
69
|
+
...b,
|
|
69
70
|
component: y,
|
|
70
|
-
disabled: v ||
|
|
71
|
-
children: m(
|
|
71
|
+
disabled: v || F,
|
|
72
|
+
children: m(w, A)
|
|
72
73
|
}) })
|
|
73
74
|
});
|
|
74
75
|
});
|
|
@@ -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 { fullWidth as e } from "../_base/styles/common.js";
|
|
3
3
|
import { Icon as t } from "../icon/index.js";
|
|
4
4
|
import { Fragment as n, jsx as r } from "@emotion/react/jsx-runtime";
|
package/dist/es/grid/context.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 { createContext as e, use as t } from "react";
|
|
3
3
|
//#region src/grid/context.ts
|
|
4
4
|
var n = e(null);
|
|
@@ -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 { useGridContext as e } from "./context.js";
|
|
3
3
|
import { gridItem as t } from "./styles.js";
|
|
4
4
|
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
@@ -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 { useContainerBreakpoints as e } from "./use-container-breakpoints.js";
|
|
3
3
|
import { useContainerWidth as t } from "./use-container-width.js";
|
|
4
4
|
import { useGridCollapsed as n } from "./use-grid-collapsed.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 { useMemo as e } from "react";
|
|
3
3
|
//#region src/grid/hooks/use-container-breakpoints.ts
|
|
4
4
|
function t(t) {
|
|
@@ -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 { useIsomorphicEffect as e } from "@vef-framework-react/hooks";
|
|
3
3
|
import { useEffect as t, useRef as n, useState as r } from "react";
|
|
4
4
|
//#region src/grid/hooks/use-container-width.ts
|
|
@@ -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 { useGridContext as e } from "../context.js";
|
|
3
3
|
//#region src/grid/hooks/use-grid-collapsed.ts
|
|
4
4
|
function t() {
|
|
@@ -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 { useThemeTokens as e } from "../../_base/hooks/use-theme-tokens.js";
|
|
3
3
|
import { isNumber as t, isString as n } from "@vef-framework-react/shared";
|
|
4
4
|
import { useMemo as r } 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 { useMemo as e } from "react";
|
|
3
3
|
//#region src/grid/hooks/use-responsive-breakpoint.ts
|
|
4
4
|
function t(t, n) {
|
|
@@ -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 { breakpoints as e } from "../../_base/constants/breakpoints.js";
|
|
3
3
|
import { isPlainObject as t } from "@vef-framework-react/shared";
|
|
4
4
|
import "react";
|
package/dist/es/grid/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 { GridContextProvider as e } from "./context.js";
|
|
3
3
|
import { grid as t } from "./styles.js";
|
|
4
4
|
import { GridItem as n } from "./grid-item.js";
|
package/dist/es/grid/styles.js
CHANGED
package/dist/es/group/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/group/index.tsx
|
package/dist/es/icon/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 "@emotion/react";
|
|
4
4
|
import { Icon as t } from "lucide-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 { globalCssVars as e } from "../_base/constants/css-vars.js";
|
|
3
3
|
import { Button as t } from "../button/index.js";
|
|
4
4
|
import { Tooltip as n } from "../tooltip/index.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 { globalCssVars as e } from "../_base/constants/css-vars.js";
|
|
3
3
|
import { DynamicIcon as t, dynamicIconNames as n } from "../dynamic-icon/index.js";
|
|
4
4
|
import r from "../empty/empty.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 { globalCssVars as e } from "../_base/constants/css-vars.js";
|
|
3
3
|
import { DynamicIcon as t } from "../dynamic-icon/index.js";
|
|
4
4
|
import { GenericSelect as n } from "../generic-select/index.js";
|
package/dist/es/image/index.js
CHANGED
package/dist/es/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 { breakpoints as e } from "./_base/constants/breakpoints.js";
|
|
3
3
|
import { colors as t, fullSizes as n, presetColors as r, semanticColors as i, semanticSceneIcons as a, semanticSceneLabels as o, semanticScenes as s, sizes as c } from "./_base/constants/common.js";
|
|
4
4
|
import { globalCssVars as l } from "./_base/constants/css-vars.js";
|
|
@@ -41,94 +41,100 @@ import { ConfigProvider as oe } from "./config-provider/index.js";
|
|
|
41
41
|
import { useChart as se } from "./charts/hooks/use-chart.js";
|
|
42
42
|
import { Chart as ce } from "./charts/chart.js";
|
|
43
43
|
import { connectCharts as le, disconnectCharts as ue } from "./charts/helpers/group.js";
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import Ne from "./
|
|
66
|
-
import
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
127
|
-
import {
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
|
|
44
|
+
import { Tooltip as de } from "./tooltip/index.js";
|
|
45
|
+
import { completeFromEntries as fe } from "./code-editor/completions.js";
|
|
46
|
+
import { CodeEditor as pe } from "./code-editor/index.js";
|
|
47
|
+
import { CodeHighlighter as me } from "./code-highlighter/index.js";
|
|
48
|
+
import { Col as he } from "./col/index.js";
|
|
49
|
+
import { Collapse as ge } from "./collapse/index.js";
|
|
50
|
+
import { ColorPicker as _e } from "./color-picker/index.js";
|
|
51
|
+
import { Compact as ve } from "./compact/index.js";
|
|
52
|
+
import { FlexCard as ye } from "./flex-card/index.js";
|
|
53
|
+
import { Stack as be } from "./stack/index.js";
|
|
54
|
+
import { Divider as xe } from "./divider/index.js";
|
|
55
|
+
import { pageSizeOptions as Se, usePaginationProps as Ce } from "./table/use-pagination-props.js";
|
|
56
|
+
import { Table as we } from "./table/index.js";
|
|
57
|
+
import { Popover as Te } from "./popover/index.js";
|
|
58
|
+
import { Slider as Ee } from "./slider/index.js";
|
|
59
|
+
import { OperationButtonGroup as De } from "./pro-table/components/operation-button-group.js";
|
|
60
|
+
import { TableSubscriber as Oe } from "./pro-table/components/table-subscriber.js";
|
|
61
|
+
import { ProTable as ke } from "./pro-table/index.js";
|
|
62
|
+
import { restoreFieldOptions as Ae } from "./form/helpers/create-field.js";
|
|
63
|
+
import { DatePicker as je } from "./date-picker/index.js";
|
|
64
|
+
import { DynamicIcon as Me } from "./dynamic-icon/index.js";
|
|
65
|
+
import { GenericSelect as Ne } from "./generic-select/index.js";
|
|
66
|
+
import Pe from "./empty/empty.js";
|
|
67
|
+
import { ScrollArea as Fe } from "./scroll-area/index.js";
|
|
68
|
+
import { IconPicker as Ie } from "./icon-picker/index.js";
|
|
69
|
+
import { Input as Le } from "./input/index.js";
|
|
70
|
+
import { InputNumber as Re } from "./input-number/index.js";
|
|
71
|
+
import { Mentions as ze } from "./mentions/index.js";
|
|
72
|
+
import { Rate as Be } from "./rate/index.js";
|
|
73
|
+
import { FlipText as Ve } from "./flip-text/index.js";
|
|
74
|
+
import { Spin as He } from "./spin/index.js";
|
|
75
|
+
import { Loader as Ue } from "./loader/index.js";
|
|
76
|
+
import { useDataOptionsSelect as We } from "./select/hooks/use-data-options-select.js";
|
|
77
|
+
import { useDictionaryOptionsSelect as Ge } from "./select/hooks/use-dictionary-options-select.js";
|
|
78
|
+
import { Select as Ke } from "./select/index.js";
|
|
79
|
+
import { TimePicker as qe } from "./time-picker/index.js";
|
|
80
|
+
import { Transfer as Je } from "./transfer/index.js";
|
|
81
|
+
import { useDataOptionsTreeSelect as Ye } from "./tree-select/hooks/use-data-options-tree-select.js";
|
|
82
|
+
import { TreeSelect as Xe } from "./tree-select/index.js";
|
|
83
|
+
import { FilePreviewProvider as Ze, useFilePreview as Qe } from "./file-preview/index.js";
|
|
84
|
+
import { Image as $e } from "./image/index.js";
|
|
85
|
+
import { toFilePreviewTarget as et } from "./upload/helpers.js";
|
|
86
|
+
import { Upload as tt } from "./upload/index.js";
|
|
87
|
+
import { FileUpload as nt } from "./file-upload/index.js";
|
|
88
|
+
import { createFormOptions as rt, useFormContext as it, useFormStore as at, withFieldGroup as ot, withForm as st } from "./form/form.js";
|
|
89
|
+
import { useForm as ct } from "./form/use-form.js";
|
|
90
|
+
import { ProSearch as lt } from "./pro-search/index.js";
|
|
91
|
+
import { Link as ut, Paragraph as dt, Text as ft, Title as pt } from "./typography/index.js";
|
|
92
|
+
import { Drawer as mt } from "./drawer/index.js";
|
|
93
|
+
import { FormDrawer as ht } from "./form-drawer/index.js";
|
|
94
|
+
import { Modal as gt } from "./modal/modal.js";
|
|
95
|
+
import { FormModal as _t } from "./form-modal/index.js";
|
|
96
|
+
import { createCrudKit as vt } from "./crud/helpers.js";
|
|
97
|
+
import { Crud as yt } from "./crud/index.js";
|
|
98
|
+
import { useViewportHeight as bt } from "./page/viewport-context.js";
|
|
99
|
+
import { usePageEntranceEffect as xt, usePageEntranceSettled as St } from "./page/entrance.js";
|
|
100
|
+
import { Page as Ct } from "./page/index.js";
|
|
101
|
+
import { CrudPage as wt } from "./crud-page/index.js";
|
|
102
|
+
import { Descriptions as Tt } from "./descriptions/index.js";
|
|
103
|
+
import { Dropdown as Et } from "./dropdown/index.js";
|
|
104
|
+
import { PermissionGate as Dt } from "./permission-gate/index.js";
|
|
105
|
+
import { OperationButton as Ot } from "./operation-button/index.js";
|
|
106
|
+
import { createEditableColumn as kt } from "./editable-table/helpers.js";
|
|
107
|
+
import { EditableTable as At } from "./editable-table/index.js";
|
|
108
|
+
import { Tabs as jt } from "./tabs/index.js";
|
|
109
|
+
import { FlexTabs as Mt } from "./flex-tabs/index.js";
|
|
110
|
+
import { FloatButton as Nt } from "./float-button/index.js";
|
|
111
|
+
import { useGridCollapsed as Pt } from "./grid/hooks/use-grid-collapsed.js";
|
|
112
|
+
import { Grid as Ft } from "./grid/index.js";
|
|
113
|
+
import { IconButton as It } from "./icon-button/index.js";
|
|
114
|
+
import { Keyboard as Lt } from "./keyboard/index.js";
|
|
115
|
+
import { Labeled as Rt } from "./labeled/index.js";
|
|
116
|
+
import zt from "./space/space.js";
|
|
117
|
+
import { Tag as Bt } from "./tag/index.js";
|
|
118
|
+
import { LABEL_KEY_PATTERN as Vt, LabelFilterSelect as Ht, LabelsDisplay as Ut, LabelsEditor as Wt, formatLabelFilters as Gt, isValidLabel as Kt, parseLabelFilters as qt } from "./labels/index.js";
|
|
119
|
+
import { List as Jt } from "./list/index.js";
|
|
120
|
+
import { LogoIcon as Yt } from "./logo-icon/index.js";
|
|
121
|
+
import { Menu as Xt } from "./menu/index.js";
|
|
122
|
+
import { Pagination as Zt } from "./pagination/index.js";
|
|
123
|
+
import { Progress as Qt } from "./progress/index.js";
|
|
124
|
+
import { QRCode as $t } from "./qrcode/index.js";
|
|
125
|
+
import { Result as en } from "./result/index.js";
|
|
126
|
+
import { Row as tn } from "./row/index.js";
|
|
127
|
+
import { Segmented as nn } from "./segmented/index.js";
|
|
128
|
+
import { Skeleton as rn } from "./skeleton/index.js";
|
|
129
|
+
import { SparklesText as an } from "./sparkles-text/index.js";
|
|
130
|
+
import { SplitText as on } from "./split-text/index.js";
|
|
131
|
+
import { Splitter as sn } from "./splitter/index.js";
|
|
132
|
+
import { Statistic as cn } from "./statistic/index.js";
|
|
133
|
+
import { Steps as ln } from "./steps/index.js";
|
|
134
|
+
import { Timeline as un } from "./timeline/index.js";
|
|
135
|
+
import { Tour as dn } from "./tour/index.js";
|
|
136
|
+
import { useDataOptionsTree as fn } from "./tree/hooks/use-data-options-tree.js";
|
|
137
|
+
import { Tree as pn } from "./tree/index.js";
|
|
138
|
+
import { TypingAnimation as mn } from "./typing-animation/index.js";
|
|
139
|
+
import { Watermark as hn } from "./watermark/index.js";
|
|
140
|
+
export { R as ActionButton, V as ActionGroup, H as Affix, U as Alert, W as Anchor, G as AutoComplete, K as Avatar, q as Badge, Z as Bool, Q as BorderBeam, $ as Breadcrumb, F as Button, ee as Calendar, te as Card, ne as Carousel, re as Cascader, ie as Center, ce as Chart, J as Checkbox, pe as CodeEditor, me as CodeHighlighter, he as Col, ge as Collapse, _e as ColorPicker, ve as Compact, oe as ConfigProvider, yt as Crud, wt as CrudPage, je as DatePicker, Tt as Descriptions, xe as Divider, mt as Drawer, Et as Dropdown, Me as DynamicIcon, At as EditableTable, Pe as Empty, Ze as FilePreviewProvider, nt as FileUpload, z as Flex, ye as FlexCard, Mt as FlexTabs, Ve as FlipText, Nt as FloatButton, ht as FormDrawer, _t as FormModal, Ne as GenericSelect, Ft as Grid, B as Group, I as Icon, It as IconButton, Ie as IconPicker, $e as Image, Le as Input, Re as InputNumber, Lt as Keyboard, Vt as LABEL_KEY_PATTERN, Ht as LabelFilterSelect, Rt as Labeled, Ut as LabelsDisplay, Wt as LabelsEditor, ut as Link, Jt as List, Ue as Loader, Yt as LogoIcon, ze as Mentions, Xt as Menu, gt as Modal, Ot as OperationButton, De as OperationButtonGroup, Ct as Page, Zt as Pagination, dt as Paragraph, Dt as PermissionGate, L as Popconfirm, Te as Popover, lt as ProSearch, ke as ProTable, Oe as ProTableSubscriber, Qt as Progress, $t as QRCode, Y as Radio, Be as Rate, en as Result, tn as Row, u as SYMBOL_PAGINATION, d as SYMBOL_SORT, Fe as ScrollArea, nn as Segmented, Ke as Select, rn as Skeleton, Ee as Slider, zt as Space, an as SparklesText, He as Spin, on as SplitText, sn as Splitter, be as Stack, cn as Statistic, ln as Steps, X as Switch, we as Table, jt as Tabs, Bt as Tag, ft as Text, qe as TimePicker, un as Timeline, pt as Title, de as Tooltip, dn as Tour, Je as Transfer, pn as Tree, Xe as TreeSelect, mn as TypingAnimation, tt as Upload, hn as Watermark, e as breakpoints, _ as closeAllMessages, O as closeAllNotifications, t as colors, fe as completeFromEntries, le as connectCharts, vt as createCrudKit, kt as createEditableColumn, rt as createFormOptions, ue as disconnectCharts, g as emitReloadPage, Gt as formatLabelFilters, n as fullSizes, h as getSpacingValue, l as globalCssVars, N as isFragment, p as isPresetColor, m as isSemanticColor, Kt as isValidLabel, Se as pageSizeOptions, qt as parseLabelFilters, r as presetColors, f as resolveBreakpointValue, Ae as restoreFieldOptions, i as semanticColors, a as semanticSceneIcons, o as semanticSceneLabels, s as semanticScenes, C as showConfirm, w as showErrorAlert, v as showErrorMessage, k as showErrorNotification, T as showInfoAlert, y as showInfoMessage, A as showInfoNotification, b as showLoadingMessage, E as showSuccessAlert, x as showSuccessMessage, j as showSuccessNotification, D as showWarningAlert, S as showWarningMessage, M as showWarningNotification, c as sizes, et as toFilePreviewTarget, se as useChart, We as useDataOptionsSelect, fn as useDataOptionsTree, Ye as useDataOptionsTreeSelect, Ge as useDictionaryOptionsSelect, Qe as useFilePreview, ct as useForm, it as useFormContext, at as useFormStore, Pt as useGridCollapsed, ae as useIsDarkMode, xt as usePageEntranceEffect, St as usePageEntranceSettled, Ce as usePaginationProps, P as useThemeTokens, bt as useViewportHeight, ot as withFieldGroup, st as withForm };
|
package/dist/es/input/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 { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
4
|
import { useMemo as n } from "react";
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
|
|
2
|
+
import { globalCssVars as e } from "../_base/constants/css-vars.js";
|
|
3
|
+
import { Stack as t } from "../stack/index.js";
|
|
4
|
+
import { Text as n } from "../typography/index.js";
|
|
5
|
+
import { Fragment as r, jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { useId as o } from "react";
|
|
7
|
+
//#region src/labeled/index.tsx
|
|
8
|
+
var s = {
|
|
9
|
+
position: "absolute",
|
|
10
|
+
width: 1,
|
|
11
|
+
height: 1,
|
|
12
|
+
margin: -1,
|
|
13
|
+
padding: 0,
|
|
14
|
+
border: 0,
|
|
15
|
+
clipPath: "inset(50%)",
|
|
16
|
+
overflow: "hidden",
|
|
17
|
+
whiteSpace: "nowrap"
|
|
18
|
+
};
|
|
19
|
+
function c({ label: c, required: l = !1, hint: u, htmlFor: d, children: f }) {
|
|
20
|
+
let p = o(), m = o();
|
|
21
|
+
return /* @__PURE__ */ a(t, {
|
|
22
|
+
"aria-describedby": u ? m : void 0,
|
|
23
|
+
"aria-labelledby": p,
|
|
24
|
+
gap: 6,
|
|
25
|
+
role: "group",
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ i("label", {
|
|
28
|
+
htmlFor: d,
|
|
29
|
+
id: p,
|
|
30
|
+
children: /* @__PURE__ */ a(n, { children: [l ? /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i(n, {
|
|
31
|
+
"aria-hidden": !0,
|
|
32
|
+
type: "danger",
|
|
33
|
+
children: "* "
|
|
34
|
+
}), /* @__PURE__ */ i("span", {
|
|
35
|
+
css: s,
|
|
36
|
+
children: "(必填)"
|
|
37
|
+
})] }) : null, c] })
|
|
38
|
+
}),
|
|
39
|
+
f,
|
|
40
|
+
u ? /* @__PURE__ */ i(n, {
|
|
41
|
+
id: m,
|
|
42
|
+
style: { fontSize: e.fontSizeSm },
|
|
43
|
+
type: "secondary",
|
|
44
|
+
children: u
|
|
45
|
+
}) : null
|
|
46
|
+
]
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
export { c as Labeled };
|