@vef-framework-react/components 2.20.0 → 2.22.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/config-provider/component-defaults.cjs +1 -0
- package/dist/cjs/config-provider/index.cjs +1 -1
- package/dist/cjs/config-provider/use-config-provider.cjs +1 -1
- package/dist/cjs/crud/index.cjs +1 -1
- package/dist/cjs/form/components/form.cjs +1 -1
- package/dist/cjs/form/contexts/form-layout.cjs +1 -1
- package/dist/cjs/form-modal/index.cjs +1 -1
- package/dist/cjs/pro-table/index.cjs +1 -1
- package/dist/cjs/table/use-pagination-props.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 +1 -1
- package/dist/es/code-editor/format.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/component-defaults.js +46 -0
- 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 +47 -36
- package/dist/es/config-provider/theme-config.js +1 -1
- package/dist/es/config-provider/use-config-provider.js +6 -9
- 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 +40 -38
- 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 +1 -1
- package/dist/es/file-upload/helpers.js +1 -1
- package/dist/es/file-upload/index.js +1 -1
- package/dist/es/file-upload/stored-file-upload.js +1 -1
- 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 +1 -1
- package/dist/es/flex-tabs/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 +27 -26
- 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 +14 -9
- 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 +1 -1
- 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 +57 -56
- 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 +1 -1
- 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 +1 -1
- package/dist/es/labels/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 +1 -1
- 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 +53 -52
- 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/filter.js +1 -1
- package/dist/es/select/hooks/index.js +1 -1
- package/dist/es/select/hooks/use-code-set-options-select.js +1 -1
- package/dist/es/select/hooks/use-data-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 +24 -21
- 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 +1 -1
- package/dist/es/upload/index.js +1 -1
- package/dist/es/watermark/index.js +1 -1
- package/dist/types/config-provider/component-defaults.d.ts +82 -0
- package/dist/types/config-provider/css-vars.d.ts +2 -1
- package/dist/types/config-provider/global-style.d.ts +1 -1
- package/dist/types/config-provider/index.d.ts +2 -1
- package/dist/types/config-provider/props.d.ts +6 -9
- package/dist/types/crud/index.d.ts +1 -1
- package/dist/types/crud/styles.d.ts +1 -1
- package/dist/types/dynamic-icon/index.d.ts +1 -1
- package/dist/types/flex-card/styles.d.ts +1 -1
- package/dist/types/flex-tabs/styles.d.ts +1 -1
- package/dist/types/form/components/form.d.ts +1 -1
- package/dist/types/form/contexts/form-layout.d.ts +7 -1
- package/dist/types/grid/styles.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/page/styles.d.ts +1 -1
- package/dist/types/pro-search/styles.d.ts +1 -1
- package/dist/types/scroll-area/styles.d.ts +1 -1
- package/package.json +4 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { globalCssVars as e } from "../_base/constants/css-vars.js";
|
|
3
3
|
import { getSpacingValue as t } from "../_base/helpers/common.js";
|
|
4
4
|
import { showErrorMessage as n } from "../_base/helpers/message.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { globalCssVars as e } from "../_base/constants/css-vars.js";
|
|
3
3
|
import { useIsDarkMode as t } from "../config-provider/dark-mode-context.js";
|
|
4
4
|
import { jsx as n } from "@emotion/react/jsx-runtime";
|
package/dist/es/col/index.js
CHANGED
package/dist/es/compact/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { Space as e } from "antd";
|
|
3
3
|
//#region src/compact/index.ts
|
|
4
4
|
var { Compact: t } = e;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { Fragment as e, jsx as t } from "@emotion/react/jsx-runtime";
|
|
3
3
|
import { useInsertionEffect as n } from "react";
|
|
4
4
|
//#region src/config-provider/app.tsx
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
|
+
import { filterProps as e } from "../_base/helpers/props.js";
|
|
3
|
+
import { pick as t } from "@vef-framework-react/shared";
|
|
4
|
+
import { createContext as n, use as r } from "react";
|
|
5
|
+
//#region src/config-provider/component-defaults.ts
|
|
6
|
+
var i = {
|
|
7
|
+
Form: ["labelAlign", "labelWidth"],
|
|
8
|
+
FormModal: ["draggable"],
|
|
9
|
+
Image: ["fallback"],
|
|
10
|
+
Input: ["allowClear", "autoComplete"],
|
|
11
|
+
Message: ["duration", "maxCount"],
|
|
12
|
+
Notification: ["duration", "maxCount"],
|
|
13
|
+
Pagination: ["showSizeChanger"],
|
|
14
|
+
ProTable: [
|
|
15
|
+
"rowKey",
|
|
16
|
+
"showSequenceColumn",
|
|
17
|
+
"striped"
|
|
18
|
+
],
|
|
19
|
+
Select: ["showSearch"],
|
|
20
|
+
TextArea: ["allowClear", "autoComplete"]
|
|
21
|
+
};
|
|
22
|
+
function a(n = {}) {
|
|
23
|
+
let r = {};
|
|
24
|
+
for (let [a, o] of Object.entries(i)) {
|
|
25
|
+
let i = n[a];
|
|
26
|
+
if (!i) continue;
|
|
27
|
+
let s = e(t(i, o));
|
|
28
|
+
Object.keys(s).length > 0 && (r[a] = s);
|
|
29
|
+
}
|
|
30
|
+
return r;
|
|
31
|
+
}
|
|
32
|
+
var o = n({});
|
|
33
|
+
o.displayName = "ComponentDefaultsContext";
|
|
34
|
+
var s = o.Provider;
|
|
35
|
+
function c(e) {
|
|
36
|
+
return r(o)[e];
|
|
37
|
+
}
|
|
38
|
+
function l(t, n) {
|
|
39
|
+
let r = c(t);
|
|
40
|
+
return r ? {
|
|
41
|
+
...r,
|
|
42
|
+
...e(n)
|
|
43
|
+
} : n;
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { s as ComponentDefaultsProvider, a as resolveComponentDefaults, c as useComponentDefaults, l as useDefaultProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { presetColors as e } from "../_base/constants/common.js";
|
|
3
3
|
import { pick as t } from "@vef-framework-react/shared";
|
|
4
4
|
import { theme as n } from "antd";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { setVefGlobal as e } from "../_base/globals.js";
|
|
3
3
|
import { useIsomorphicEffect as t } from "@vef-framework-react/hooks";
|
|
4
4
|
import { App as n } from "antd";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { colorPaletteMap as e, getColorPalette as t } from "@vef-framework-react/shared";
|
|
3
3
|
//#region src/config-provider/css-vars.ts
|
|
4
4
|
var n = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { createContext as e, use as t } from "react";
|
|
3
3
|
//#region src/config-provider/dark-mode-context.ts
|
|
4
4
|
var n = e(!1);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { jsx as e, jsxs as t } from "@emotion/react/jsx-runtime";
|
|
3
3
|
import { stringify as n } from "@vef-framework-react/shared";
|
|
4
4
|
//#region src/config-provider/error-fallback.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { globalCssVars as e } from "../_base/constants/css-vars.js";
|
|
3
3
|
import { ROOT_ELEMENT_ID as t } from "./app.js";
|
|
4
4
|
import { css as n } from "@emotion/react";
|
|
@@ -1,51 +1,58 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import e from "./app.js";
|
|
3
|
-
import t from "./
|
|
4
|
-
import
|
|
5
|
-
import i from "./
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import m from "@emotion/
|
|
13
|
-
import
|
|
14
|
-
import
|
|
3
|
+
import { ComponentDefaultsProvider as t, resolveComponentDefaults as n } from "./component-defaults.js";
|
|
4
|
+
import r from "./context-holder.js";
|
|
5
|
+
import { DarkModeProvider as i, useIsDarkMode as a } from "./dark-mode-context.js";
|
|
6
|
+
import o from "./error-fallback.js";
|
|
7
|
+
import { globalStyle as s } from "./global-style.js";
|
|
8
|
+
import { useConfigProvider as c } from "./use-config-provider.js";
|
|
9
|
+
import { jsx as l, jsxs as u } from "@emotion/react/jsx-runtime";
|
|
10
|
+
import { useMemo as d } from "react";
|
|
11
|
+
import { App as f, ConfigProvider as p } from "antd";
|
|
12
|
+
import { CacheProvider as m, Global as h } from "@emotion/react";
|
|
13
|
+
import { StyleProvider as g } from "@ant-design/cssinjs";
|
|
14
|
+
import _ from "@emotion/cache";
|
|
15
|
+
import v from "antd/es/locale/zh_CN";
|
|
16
|
+
import { ErrorBoundary as y } from "react-error-boundary";
|
|
15
17
|
//#region src/config-provider/index.tsx
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
let { themeConfig:
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
value:
|
|
21
|
-
children: [/* @__PURE__ */
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
] }), /* @__PURE__ */ s(p, {
|
|
18
|
+
var b = _({ key: "vef" });
|
|
19
|
+
function x({ theme: a, components: _, children: x }) {
|
|
20
|
+
let { themeConfig: S, globalCssVars: C, isDarkMode: w } = c(a), T = d(() => n(_), [_]);
|
|
21
|
+
return /* @__PURE__ */ u(m, {
|
|
22
|
+
value: b,
|
|
23
|
+
children: [/* @__PURE__ */ l(h, { styles: [
|
|
24
|
+
s,
|
|
25
|
+
C,
|
|
26
|
+
process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFvQ2MiLCJmaWxlIjoiaW5kZXgudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBSZWFjdE5vZGUgfSBmcm9tIFwicmVhY3RcIjtcblxuaW1wb3J0IHR5cGUgeyBDb25maWdQcm92aWRlclByb3BzIH0gZnJvbSBcIi4vcHJvcHNcIjtcblxuaW1wb3J0IHsgU3R5bGVQcm92aWRlciB9IGZyb20gXCJAYW50LWRlc2lnbi9jc3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AgcGFnaW5hdGlvbj17Y29tcG9uZW50RGVmYXVsdHMuUGFnaW5hdGlvbn1cbiAgICAgICAgICBwb3BvdmVyPXt7IGFycm93OiBmYWxzZSB9fVxuICAgICAgICAgIHByZWZpeENscz1cInZlZlwiXG4gICAgICAgICAgc2VsZWN0PXtjb21wb25lbnREZWZhdWx0cy5TZWxlY3R9XG4gICAgICAgICAgdGV4dEFyZWE9e2NvbXBvbmVudERlZmF1bHRzLlRleHRBcmVhfVxuICAgICAgICAgIHRoZW1lPXt0aGVtZUNvbmZpZ31cbiAgICAgICAgICB2YXJpYW50PVwib3V0bGluZWRcIlxuICAgICAgICA+XG4gICAgICAgICAgPEVycm9yQm91bmRhcnkgRmFsbGJhY2tDb21wb25lbnQ9e0Vycm9yRmFsbGJhY2t9PlxuICAgICAgICAgICAgPEFwcFxuICAgICAgICAgICAgICBjb21wb25lbnQ9e0FwcENvbXBvbmVudH1cbiAgICAgICAgICAgICAgbWVzc2FnZT17e1xuICAgICAgICAgICAgICAgIG1heENvdW50OiAzLFxuICAgICAgICAgICAgICAgIGR1cmF0aW9uOiAzLFxuICAgICAgICAgICAgICAgIC4uLmNvbXBvbmVudERlZmF1bHRzLk1lc3NhZ2VcbiAgICAgICAgICAgICAgfX1cbiAgICAgICAgICAgICAgbm90aWZpY2F0aW9uPXt7XG4gICAgICAgICAgICAgICAgbWF4Q291bnQ6IDgsXG4gICAgICAgICAgICAgICAgZHVyYXRpb246IDMsXG4gICAgICAgICAgICAgICAgc2hvd1Byb2dyZXNzOiB0cnVlLFxuICAgICAgICAgICAgICAgIHBhdXNlT25Ib3ZlcjogdHJ1ZSxcbiAgICAgICAgICAgICAgICBwbGFjZW1lbnQ6IFwidG9wUmlnaHRcIixcbiAgICAgICAgICAgICAgICBzdGFjazogeyB0aHJlc2hvbGQ6IDMgfSxcbiAgICAgICAgICAgICAgICAuLi5jb21wb25lbnREZWZhdWx0cy5Ob3RpZmljYXRpb25cbiAgICAgICAgICAgICAgfX1cbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgPERhcmtNb2RlUHJvdmlkZXIgdmFsdWU9e2lzRGFya01vZGV9PlxuICAgICAgICAgICAgICAgIDxDb21wb25lbnREZWZhdWx0c1Byb3ZpZGVyIHZhbHVlPXtjb21wb25lbnREZWZhdWx0c30+XG4gICAgICAgICAgICAgICAgICA8Q29udGV4dEhvbGRlcj5cbiAgICAgICAgICAgICAgICAgICAge2NoaWxkcmVufVxuICAgICAgICAgICAgICAgICAgPC9Db250ZXh0SG9sZGVyPlxuICAgICAgICAgICAgICAgIDwvQ29tcG9uZW50RGVmYXVsdHNQcm92aWRlcj5cbiAgICAgICAgICAgICAgPC9EYXJrTW9kZVByb3ZpZGVyPlxuICAgICAgICAgICAgPC9BcHA+XG4gICAgICAgICAgPC9FcnJvckJvdW5kYXJ5PlxuICAgICAgICA8L0NvbmZpZ1Byb3ZpZGVySW50ZXJuYWw+XG4gICAgICA8L1N0eWxlUHJvdmlkZXI+XG4gICAgPC9DYWNoZVByb3ZpZGVyPlxuICApO1xufVxuXG5leHBvcnQgdHlwZSB7IENvbXBvbmVudERlZmF1bHRzIH0gZnJvbSBcIi4vY29tcG9uZW50LWRlZmF1bHRzXCI7XG5leHBvcnQgeyB1c2VJc0RhcmtNb2RlIH0gZnJvbSBcIi4vZGFyay1tb2RlLWNvbnRleHRcIjtcbmV4cG9ydCB0eXBlIHsgQ29uZmlnUHJvdmlkZXJQcm9wcywgVGhlbWVDb25maWcgfSBmcm9tIFwiLi9wcm9wc1wiO1xuIl19 */"
|
|
27
|
+
] }), /* @__PURE__ */ l(g, {
|
|
27
28
|
layer: !0,
|
|
28
29
|
hashPriority: "high",
|
|
29
|
-
children: /* @__PURE__ */
|
|
30
|
+
children: /* @__PURE__ */ l(p, {
|
|
30
31
|
componentSize: "medium",
|
|
31
32
|
drawer: {
|
|
32
33
|
closable: { placement: "end" },
|
|
33
34
|
mask: { closable: !1 }
|
|
34
35
|
},
|
|
35
36
|
iconPrefixCls: "vef-icon",
|
|
36
|
-
|
|
37
|
+
image: T.Image,
|
|
38
|
+
input: T.Input,
|
|
39
|
+
locale: v,
|
|
37
40
|
modal: { mask: { closable: !1 } },
|
|
41
|
+
pagination: T.Pagination,
|
|
38
42
|
popover: { arrow: !1 },
|
|
39
43
|
prefixCls: "vef",
|
|
40
|
-
|
|
44
|
+
select: T.Select,
|
|
45
|
+
textArea: T.TextArea,
|
|
46
|
+
theme: S,
|
|
41
47
|
variant: "outlined",
|
|
42
|
-
children: /* @__PURE__ */
|
|
43
|
-
FallbackComponent:
|
|
44
|
-
children: /* @__PURE__ */
|
|
48
|
+
children: /* @__PURE__ */ l(y, {
|
|
49
|
+
FallbackComponent: o,
|
|
50
|
+
children: /* @__PURE__ */ l(f, {
|
|
45
51
|
component: e,
|
|
46
52
|
message: {
|
|
47
53
|
maxCount: 3,
|
|
48
|
-
duration: 3
|
|
54
|
+
duration: 3,
|
|
55
|
+
...T.Message
|
|
49
56
|
},
|
|
50
57
|
notification: {
|
|
51
58
|
maxCount: 8,
|
|
@@ -53,11 +60,15 @@ function v({ theme: r, children: m }) {
|
|
|
53
60
|
showProgress: !0,
|
|
54
61
|
pauseOnHover: !0,
|
|
55
62
|
placement: "topRight",
|
|
56
|
-
stack: { threshold: 3 }
|
|
63
|
+
stack: { threshold: 3 },
|
|
64
|
+
...T.Notification
|
|
57
65
|
},
|
|
58
|
-
children: /* @__PURE__ */
|
|
59
|
-
value:
|
|
60
|
-
children: /* @__PURE__ */
|
|
66
|
+
children: /* @__PURE__ */ l(i, {
|
|
67
|
+
value: w,
|
|
68
|
+
children: /* @__PURE__ */ l(t, {
|
|
69
|
+
value: T,
|
|
70
|
+
children: /* @__PURE__ */ l(r, { children: x })
|
|
71
|
+
})
|
|
61
72
|
})
|
|
62
73
|
})
|
|
63
74
|
})
|
|
@@ -66,4 +77,4 @@ function v({ theme: r, children: m }) {
|
|
|
66
77
|
});
|
|
67
78
|
}
|
|
68
79
|
//#endregion
|
|
69
|
-
export {
|
|
80
|
+
export { x as ConfigProvider, a as useIsDarkMode };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { presetColors as e } from "../_base/constants/common.js";
|
|
3
3
|
import { globalCssVars as t } from "../_base/constants/css-vars.js";
|
|
4
4
|
import { mergedPresetColors as n } from "./constants.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { mergeProps as e } from "../_base/helpers/props.js";
|
|
3
3
|
import { defaultColors as t } from "./constants.js";
|
|
4
4
|
import { buildColorCssVars as n } from "./css-vars.js";
|
|
@@ -8,17 +8,14 @@ import { useMemo as a } from "react";
|
|
|
8
8
|
import { css as o } from "@emotion/react";
|
|
9
9
|
//#region src/config-provider/use-config-provider.ts
|
|
10
10
|
function s(s = {}) {
|
|
11
|
-
let { isDarkMode: c = !1, colors: l = {}
|
|
11
|
+
let { isDarkMode: c = !1, colors: l = {} } = s, u = a(() => e(l, t), [l]), d = !i(!1);
|
|
12
12
|
return {
|
|
13
|
-
themeConfig: a(() => r(c,
|
|
13
|
+
themeConfig: a(() => r(c, u, d), [
|
|
14
14
|
c,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
u,
|
|
16
|
+
d
|
|
17
17
|
]),
|
|
18
|
-
globalCssVars: a(() => /*#__PURE__*/ o({ ":root":
|
|
19
|
-
...n(d),
|
|
20
|
-
...u
|
|
21
|
-
} }, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInVzZS1jb25maWctcHJvdmlkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0NXIiwiZm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gPSBmYWxzZSxcbiAgICBjb2xvcnMgPSB7fSxcbiAgICBnbG9iYWxDc3NWYXJzID0ge31cbiAgfSA9IHRoZW1lO1xuXG4gIGNvbnN0IG1lcmdlZENvbG9ycyA9IHVzZU1lbW8oKCkgPT4gbWVyZ2VQcm9wcyhjb2xvcnMsIGRlZmF1bHRDb2xvcnMpLCBbY29sb3JzXSk7XG4gIGNvbnN0IGlzTW90aW9uRW5hYmxlZCA9ICF1c2VSZWR1Y2VkTW90aW9uKGZhbHNlKTtcblxuICBjb25zdCB0aGVtZUNvbmZpZyA9IHVzZU1lbW8oXG4gICAgKCkgPT4gYnVpbGRUaGVtZUNvbmZpZyhpc0RhcmtNb2RlLCBtZXJnZWRDb2xvcnMsIGlzTW90aW9uRW5hYmxlZCksXG4gICAgW2lzRGFya01vZGUsIG1lcmdlZENvbG9ycywgaXNNb3Rpb25FbmFibGVkXVxuICApO1xuXG4gIGNvbnN0IG1lcmdlZEdsb2JhbENzc1ZhcnMgPSB1c2VNZW1vKCgpID0+IHtcbiAgICBjb25zdCBjc3NWYXJzID0gYnVpbGRDb2xvckNzc1ZhcnMobWVyZ2VkQ29sb3JzKTtcblxuICAgIHJldHVybiBjc3Moe1xuICAgICAgXCI6cm9vdFwiOiB7IC4uLmNzc1ZhcnMsIC4uLmdsb2JhbENzc1ZhcnMgfVxuICAgIH0pO1xuICB9LCBbZ2xvYmFsQ3NzVmFycywgbWVyZ2VkQ29sb3JzXSk7XG5cbiAgcmV0dXJuIHtcbiAgICB0aGVtZUNvbmZpZyxcbiAgICBnbG9iYWxDc3NWYXJzOiBtZXJnZWRHbG9iYWxDc3NWYXJzLFxuICAgIGlzRGFya01vZGVcbiAgfTtcbn1cbiJdfQ== */"), [u, d]),
|
|
18
|
+
globalCssVars: a(() => /*#__PURE__*/ o({ ":root": n(u) }, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpb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RoZW1lQ29uZmlnID0ge30pOiBDb25maWdQcm92aWRlclJlc3VsdCB7XG4gIGNvbnN0IHtcbiAgICBpc0RhcmtNb2RlID0gZmFsc2UsXG4gICAgY29sb3JzID0ge31cbiAgfSA9IHRoZW1lO1xuXG4gIGNvbnN0IG1lcmdlZENvbG9ycyA9IHVzZU1lbW8oKCkgPT4gbWVyZ2VQcm9wcyhjb2xvcnMsIGRlZmF1bHRDb2xvcnMpLCBbY29sb3JzXSk7XG4gIGNvbnN0IGlzTW90aW9uRW5hYmxlZCA9ICF1c2VSZWR1Y2VkTW90aW9uKGZhbHNlKTtcblxuICBjb25zdCB0aGVtZUNvbmZpZyA9IHVzZU1lbW8oXG4gICAgKCkgPT4gYnVpbGRUaGVtZUNvbmZpZyhpc0RhcmtNb2RlLCBtZXJnZWRDb2xvcnMsIGlzTW90aW9uRW5hYmxlZCksXG4gICAgW2lzRGFya01vZGUsIG1lcmdlZENvbG9ycywgaXNNb3Rpb25FbmFibGVkXVxuICApO1xuXG4gIGNvbnN0IGNvbG9yQ3NzVmFycyA9IHVzZU1lbW8oKCkgPT4gY3NzKHtcbiAgICBcIjpyb290XCI6IGJ1aWxkQ29sb3JDc3NWYXJzKG1lcmdlZENvbG9ycylcbiAgfSksIFttZXJnZWRDb2xvcnNdKTtcblxuICByZXR1cm4ge1xuICAgIHRoZW1lQ29uZmlnLFxuICAgIGdsb2JhbENzc1ZhcnM6IGNvbG9yQ3NzVmFycyxcbiAgICBpc0RhcmtNb2RlXG4gIH07XG59XG4iXX0= */"), [u]),
|
|
22
19
|
isDarkMode: c
|
|
23
20
|
};
|
|
24
21
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { useCrudStore as e } from "../store.js";
|
|
3
3
|
import { isFunction as t } from "@vef-framework-react/shared";
|
|
4
4
|
import { memo as n } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { ActionButtonGroup as e } from "./action-button-group.js";
|
|
3
3
|
import "./toolbar.js";
|
|
4
4
|
import { Main as t } from "./main.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { useCrudStore as e } from "../store.js";
|
|
3
3
|
import { FlexCard as t } from "../../flex-card/index.js";
|
|
4
4
|
import { ProTable as n } from "../../pro-table/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { useCrudStoreApi as e } from "../store.js";
|
|
3
3
|
import { getRowKeyFn as t } from "../../pro-table/components/table.js";
|
|
4
4
|
import { isFunction as n } from "@vef-framework-react/shared";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { Group as e } from "../../group/index.js";
|
|
3
3
|
import { useCrudStore as t } from "../store.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.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { breakpoints as e } from "../../_base/constants/breakpoints.js";
|
|
3
3
|
import { resolveBreakpointValue as t } from "../../_base/helpers/breakpoints.js";
|
|
4
4
|
import { useCrudStore as n } from "../store.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
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 { useCrudStore as n } from "../store.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { globalCssVars as e } from "../../_base/constants/css-vars.js";
|
|
3
3
|
import { Group as t } from "../../group/index.js";
|
|
4
4
|
import { SelectionIndicator as n } from "./selection-indicator.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { useCrudStore as e } from "../store.js";
|
|
3
3
|
import { toolbar as t } from "../styles.js";
|
|
4
4
|
import { ProSearch as n } from "../../pro-search/index.js";
|
package/dist/es/crud/event.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { EventEmitter as e } from "@vef-framework-react/shared";
|
|
3
3
|
//#region src/crud/event.ts
|
|
4
4
|
function t() {
|
package/dist/es/crud/helpers.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { useCrudStore as e } from "./store.js";
|
|
3
3
|
import { ActionButtonGroup as t } from "./components/action-button-group.js";
|
|
4
4
|
import { useSearchValues as n } from "./hooks/use-search-values.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { useQueryObserver as e } from "./use-query-observer.js";
|
|
3
3
|
import { useSearchValues as t } from "./use-search-values.js";
|
|
4
4
|
import { useSelectedRows as n } from "./use-selected-rows.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { useCrudStoreApi as e } from "../store.js";
|
|
3
3
|
import { useEffect as t, useRef as n } from "react";
|
|
4
4
|
//#region src/crud/hooks/use-query-observer.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { useCrudStore as e } from "../store.js";
|
|
3
3
|
//#region src/crud/hooks/use-search-values.ts
|
|
4
4
|
function t() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { useCrudStore as e } from "../store.js";
|
|
3
3
|
//#region src/crud/hooks/use-selected-rows.ts
|
|
4
4
|
function t() {
|
package/dist/es/crud/index.js
CHANGED
|
@@ -1,49 +1,51 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
|
+
import { useDefaultProps as e } from "../config-provider/component-defaults.js";
|
|
3
|
+
import { CrudStoreProvider as t } from "./store.js";
|
|
4
|
+
import { Main as n } from "./components/main.js";
|
|
5
|
+
import { MutationHolder as r } from "./components/mutation-holder.js";
|
|
6
|
+
import { SceneForm as i } from "./components/scene-form.js";
|
|
7
|
+
import { createCrudKit as a } from "./helpers.js";
|
|
8
|
+
import { jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
9
|
+
import { useMemo as c } from "react";
|
|
9
10
|
//#region src/crud/index.tsx
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
function l({ storageKey: a, defaultSearchValues: l, advancedSearch: u, sceneDefaultFormValues: d, renderForm: f, formComponent: p, formLayout: m, formMutationFns: h, formActionsRenderers: g, beforeFormSubmit: _, afterFormSubmit: v, deleteMutationFn: y, deleteManyMutationFn: b, mutationMeta: x, rowSelection: S, rowKey: C, ...w }) {
|
|
12
|
+
let { rowKey: T } = e("ProTable", { rowKey: C });
|
|
13
|
+
return /* @__PURE__ */ s(t, {
|
|
14
|
+
initialState: c(() => ({
|
|
15
|
+
defaultSearchValues: l,
|
|
16
|
+
sceneDefaultFormValues: d,
|
|
17
|
+
selectedRowKeys: S === !0 ? [] : S?.defaultSelectedRowKeys ?? []
|
|
16
18
|
}), [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
l,
|
|
20
|
+
d,
|
|
21
|
+
S
|
|
20
22
|
]),
|
|
21
|
-
storageKey:
|
|
23
|
+
storageKey: a,
|
|
22
24
|
children: [
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
...
|
|
25
|
-
advancedSearch:
|
|
26
|
-
rowKey:
|
|
27
|
-
rowSelection:
|
|
25
|
+
/* @__PURE__ */ o(n, {
|
|
26
|
+
...w,
|
|
27
|
+
advancedSearch: u,
|
|
28
|
+
rowKey: T,
|
|
29
|
+
rowSelection: S
|
|
28
30
|
}),
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
afterFormSubmit:
|
|
31
|
-
beforeFormSubmit:
|
|
32
|
-
formActionsRenderers:
|
|
33
|
-
formComponent:
|
|
34
|
-
formLayout:
|
|
35
|
-
formMutationFns:
|
|
36
|
-
mutationMeta:
|
|
37
|
-
renderForm:
|
|
31
|
+
/* @__PURE__ */ o(i, {
|
|
32
|
+
afterFormSubmit: v,
|
|
33
|
+
beforeFormSubmit: _,
|
|
34
|
+
formActionsRenderers: g,
|
|
35
|
+
formComponent: p,
|
|
36
|
+
formLayout: m,
|
|
37
|
+
formMutationFns: h,
|
|
38
|
+
mutationMeta: x,
|
|
39
|
+
renderForm: f
|
|
38
40
|
}),
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
deleteManyMutationFn:
|
|
41
|
-
deleteMutationFn:
|
|
42
|
-
mutationMeta:
|
|
43
|
-
rowKey:
|
|
41
|
+
/* @__PURE__ */ o(r, {
|
|
42
|
+
deleteManyMutationFn: b,
|
|
43
|
+
deleteMutationFn: y,
|
|
44
|
+
mutationMeta: x,
|
|
45
|
+
rowKey: T
|
|
44
46
|
})
|
|
45
47
|
]
|
|
46
48
|
});
|
|
47
49
|
}
|
|
48
50
|
//#endregion
|
|
49
|
-
export {
|
|
51
|
+
export { l as Crud, a as createCrudKit };
|
package/dist/es/crud/store.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { createEventEmitter as e } from "./event.js";
|
|
3
3
|
import { createThrowNotImplementedFn as t, mergeWith as n } from "@vef-framework-react/shared";
|
|
4
4
|
import { createComponentStore as r } from "@vef-framework-react/core";
|
package/dist/es/crud/styles.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { globalCssVars as e } from "../_base/constants/css-vars.js";
|
|
3
3
|
import { css as t } from "@emotion/react";
|
|
4
4
|
//#region src/crud/styles.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { Crud as e } from "../crud/index.js";
|
|
3
3
|
import { Page as t } from "../page/index.js";
|
|
4
4
|
import { jsx as n } from "@emotion/react/jsx-runtime";
|
package/dist/es/divider/index.js
CHANGED
package/dist/es/drawer/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { Icon as e } from "../icon/index.js";
|
|
3
3
|
import { getCachedIconNode as t, loadIconNode as n } from "./load-icon-node.js";
|
|
4
4
|
import { PlaceholderIcon as r } from "./placeholder-icon.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { lucideDynamicIconImports as e } from "@lucide/icons/dynamic";
|
|
3
3
|
//#region src/dynamic-icon/load-icon-node.ts
|
|
4
4
|
var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = 6, i = 0, a = [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
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
|
//#region src/dynamic-icon/placeholder-icon.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.
|
|
1
|
+
/*! @vef-framework-react/components v2.22.0 made by Venus | 2026-09-15T11:24:17.547Z */
|
|
2
2
|
import { jsx as e, jsxs as t } from "@emotion/react/jsx-runtime";
|
|
3
3
|
//#region src/dynamic-icon/unknown-icon.tsx
|
|
4
4
|
function n({ size: n = "1.2em", ...r }) {
|