@vef-framework-react/components 2.1.3 → 2.1.5
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/_base/constants/event.cjs +1 -0
- package/dist/cjs/_base/constants/index.cjs +1 -1
- package/dist/cjs/_base/constants/symbols.cjs +1 -0
- package/dist/cjs/_base/helpers/event.cjs +1 -0
- package/dist/cjs/_base/helpers/index.cjs +1 -1
- package/dist/cjs/_base/index.cjs +1 -1
- package/dist/cjs/charts/chart.cjs +1 -1
- package/dist/cjs/charts/hooks/use-chart.cjs +1 -1
- package/dist/cjs/config-provider/context-holder.cjs +1 -1
- package/dist/cjs/config-provider/use-config-provider.cjs +1 -1
- package/dist/cjs/crud/components/action-button-group.cjs +1 -0
- package/dist/cjs/crud/components/index.cjs +1 -0
- package/dist/cjs/crud/components/main.cjs +1 -0
- package/dist/cjs/crud/components/mutation-holder.cjs +1 -0
- package/dist/cjs/crud/components/operation-button-group.cjs +1 -0
- package/dist/cjs/crud/components/scene-form.cjs +1 -0
- package/dist/cjs/crud/components/selection-indicator.cjs +1 -0
- package/dist/cjs/crud/components/toolbar-actions.cjs +1 -0
- package/dist/cjs/crud/components/toolbar.cjs +1 -0
- package/dist/cjs/crud/event.cjs +1 -0
- package/dist/cjs/crud/helpers.cjs +1 -0
- package/dist/cjs/crud/hooks/index.cjs +1 -0
- package/dist/cjs/crud/hooks/use-query-observer.cjs +1 -0
- package/dist/cjs/crud/hooks/use-search-values.cjs +1 -0
- package/dist/cjs/crud/hooks/use-selected-rows.cjs +1 -0
- package/dist/cjs/crud/index.cjs +1 -0
- package/dist/cjs/crud/store.cjs +1 -0
- package/dist/cjs/crud/styles.cjs +1 -0
- package/dist/cjs/crud-page/index.cjs +1 -0
- package/dist/cjs/flex-card/index.cjs +1 -0
- package/dist/cjs/flex-card/styles.cjs +1 -0
- package/dist/cjs/form-drawer/components/form-actions.cjs +1 -0
- package/dist/cjs/form-drawer/components/index.cjs +1 -0
- package/dist/cjs/form-drawer/index.cjs +1 -0
- package/dist/cjs/form-modal/components/draggable-wrapper.cjs +1 -0
- package/dist/cjs/form-modal/components/form-actions.cjs +1 -0
- package/dist/cjs/form-modal/components/index.cjs +1 -0
- package/dist/cjs/form-modal/index.cjs +1 -0
- package/dist/cjs/grid/hooks/use-container-width.cjs +1 -1
- package/dist/cjs/grid/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/logo-icon/index.cjs +1 -0
- package/dist/cjs/page/components/aside-panel.cjs +1 -0
- package/dist/cjs/page/components/index.cjs +1 -0
- package/dist/cjs/page/components/resize-handle.cjs +1 -0
- package/dist/cjs/page/components/scroll-content.cjs +1 -0
- package/dist/cjs/page/hooks/index.cjs +1 -0
- package/dist/cjs/page/hooks/use-page-key.cjs +1 -0
- package/dist/cjs/page/hooks/use-resize.cjs +1 -0
- package/dist/cjs/page/index.cjs +1 -0
- package/dist/cjs/page/styles.cjs +1 -0
- package/dist/cjs/page/viewport-context.cjs +1 -0
- package/dist/cjs/pro-search/components/advanced-search-toggler.cjs +1 -0
- package/dist/cjs/pro-search/components/advanced-search.cjs +1 -0
- package/dist/cjs/pro-search/components/index.cjs +1 -0
- package/dist/cjs/pro-search/components/search-actions.cjs +1 -0
- package/dist/cjs/pro-search/index.cjs +1 -0
- package/dist/cjs/pro-search/styles.cjs +1 -0
- package/dist/cjs/pro-table/components/column-setting-item.cjs +1 -0
- package/dist/cjs/pro-table/components/column-settings-panel.cjs +1 -0
- package/dist/cjs/pro-table/components/column-settings.cjs +1 -0
- package/dist/cjs/pro-table/components/index.cjs +1 -0
- package/dist/cjs/pro-table/components/operation-button-group.cjs +1 -0
- package/dist/cjs/pro-table/components/ref.cjs +1 -0
- package/dist/cjs/pro-table/components/table-subscriber.cjs +1 -0
- package/dist/cjs/pro-table/components/table-summary.cjs +1 -0
- package/dist/cjs/pro-table/components/table-title.cjs +1 -0
- package/dist/cjs/pro-table/components/table.cjs +1 -0
- package/dist/cjs/pro-table/components/width-popover.cjs +1 -0
- package/dist/cjs/pro-table/context.cjs +1 -0
- package/dist/cjs/pro-table/event.cjs +1 -0
- package/dist/cjs/pro-table/hooks/index.cjs +1 -0
- package/dist/cjs/pro-table/hooks/use-column-settings-persistence.cjs +1 -0
- package/dist/cjs/pro-table/hooks/use-row-selection.cjs +1 -0
- package/dist/cjs/pro-table/hooks/use-table-columns.cjs +1 -0
- package/dist/cjs/pro-table/index.cjs +1 -0
- package/dist/cjs/pro-table/store.cjs +1 -0
- package/dist/cjs/select/hooks/use-data-options-select.cjs +1 -1
- package/dist/cjs/table/index.cjs +1 -1
- package/dist/cjs/tree/hooks/use-data-options-tree.cjs +1 -1
- package/dist/cjs/tree-select/hooks/use-data-options-tree-select.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 +5 -0
- package/dist/es/_base/constants/index.js +3 -1
- package/dist/es/_base/constants/symbols.js +5 -0
- 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 +14 -0
- package/dist/es/_base/helpers/index.js +2 -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 +4 -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/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 +6 -6
- 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 +11 -11
- 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-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 +5 -5
- 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 +8 -8
- package/dist/es/crud/components/action-button-group.js +13 -0
- package/dist/es/crud/components/index.js +7 -0
- package/dist/es/crud/components/main.js +43 -0
- package/dist/es/crud/components/mutation-holder.js +32 -0
- package/dist/es/crud/components/operation-button-group.js +18 -0
- package/dist/es/crud/components/scene-form.js +48 -0
- package/dist/es/crud/components/selection-indicator.js +72 -0
- package/dist/es/crud/components/toolbar-actions.js +14 -0
- package/dist/es/crud/components/toolbar.js +29 -0
- package/dist/es/crud/event.js +8 -0
- package/dist/es/crud/helpers.js +18 -0
- package/dist/es/crud/hooks/index.js +4 -0
- package/dist/es/crud/hooks/use-query-observer.js +28 -0
- package/dist/es/crud/hooks/use-search-values.js +8 -0
- package/dist/es/crud/hooks/use-selected-rows.js +8 -0
- package/dist/es/crud/index.js +44 -0
- package/dist/es/crud/store.js +66 -0
- package/dist/es/crud/styles.js +20 -0
- package/dist/es/crud-page/index.js +23 -0
- 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/placeholder-icon.js +1 -1
- package/dist/es/dynamic-icon/unknown-icon.js +1 -1
- package/dist/es/empty/empty.js +1 -1
- package/dist/es/empty/index.js +1 -1
- package/dist/es/flex/index.js +1 -1
- package/dist/es/flex-card/index.js +14 -0
- package/dist/es/flex-card/styles.js +20 -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/color-picker/index.js +1 -1
- package/dist/es/form/fields/date-picker/index.js +8 -8
- package/dist/es/form/fields/date-range-picker/index.js +8 -8
- 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 +8 -8
- 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.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/components/form-actions.js +26 -0
- package/dist/es/form-drawer/components/index.js +2 -0
- package/dist/es/form-drawer/index.js +82 -0
- package/dist/es/form-modal/components/draggable-wrapper.js +52 -0
- package/dist/es/form-modal/components/form-actions.js +26 -0
- package/dist/es/form-modal/components/index.js +3 -0
- package/dist/es/form-modal/index.js +72 -0
- 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 +6 -6
- 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 +14 -14
- 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/image/index.js +1 -1
- package/dist/es/index.js +121 -106
- package/dist/es/input/index.js +1 -1
- package/dist/es/input-number/index.js +1 -1
- package/dist/es/keyboard/index.js +1 -1
- package/dist/es/list/index.js +1 -1
- package/dist/es/loader/index.js +1 -1
- package/dist/es/logo-icon/index.js +24 -0
- 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/operation-button/index.js +1 -1
- package/dist/es/page/components/aside-panel.js +49 -0
- package/dist/es/page/components/index.js +4 -0
- package/dist/es/page/components/resize-handle.js +18 -0
- package/dist/es/page/components/scroll-content.js +55 -0
- package/dist/es/page/hooks/index.js +3 -0
- package/dist/es/page/hooks/use-page-key.js +12 -0
- package/dist/es/page/hooks/use-resize.js +32 -0
- package/dist/es/page/index.js +127 -0
- package/dist/es/page/styles.js +122 -0
- package/dist/es/page/viewport-context.js +12 -0
- 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 +28 -0
- package/dist/es/pro-search/components/advanced-search.js +32 -0
- package/dist/es/pro-search/components/index.js +4 -0
- package/dist/es/pro-search/components/search-actions.js +25 -0
- package/dist/es/pro-search/index.js +57 -0
- package/dist/es/pro-search/styles.js +44 -0
- package/dist/es/pro-table/components/column-setting-item.js +170 -0
- package/dist/es/pro-table/components/column-settings-panel.js +93 -0
- package/dist/es/pro-table/components/column-settings.js +30 -0
- package/dist/es/pro-table/components/index.js +9 -0
- package/dist/es/pro-table/components/operation-button-group.js +18 -0
- package/dist/es/pro-table/components/ref.js +14 -0
- package/dist/es/pro-table/components/table-subscriber.js +17 -0
- package/dist/es/pro-table/components/table-summary.js +12 -0
- package/dist/es/pro-table/components/table-title.js +12 -0
- package/dist/es/pro-table/components/table.js +102 -0
- package/dist/es/pro-table/components/width-popover.js +76 -0
- package/dist/es/pro-table/context.js +13 -0
- package/dist/es/pro-table/event.js +8 -0
- package/dist/es/pro-table/hooks/index.js +4 -0
- package/dist/es/pro-table/hooks/use-column-settings-persistence.js +60 -0
- package/dist/es/pro-table/hooks/use-row-selection.js +29 -0
- package/dist/es/pro-table/hooks/use-table-columns.js +109 -0
- package/dist/es/pro-table/index.js +70 -0
- package/dist/es/pro-table/store.js +94 -0
- 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 +11 -11
- 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 +29 -28
- 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 +8 -8
- 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 +11 -11
- 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/index.js +1 -1
- package/dist/es/watermark/index.js +1 -1
- package/dist/types/_base/constants/event.d.ts +1 -0
- package/dist/types/_base/constants/index.d.ts +2 -0
- package/dist/types/_base/constants/symbols.d.ts +2 -0
- package/dist/types/_base/helpers/event.d.ts +3 -0
- package/dist/types/_base/helpers/index.d.ts +1 -0
- package/dist/types/_base/types/common.d.ts +4 -0
- package/dist/types/crud/components/action-button-group.d.ts +8 -0
- package/dist/types/crud/components/index.d.ts +6 -0
- package/dist/types/crud/components/main.d.ts +6 -0
- package/dist/types/crud/components/mutation-holder.d.ts +10 -0
- package/dist/types/crud/components/operation-button-group.d.ts +8 -0
- package/dist/types/crud/components/scene-form.d.ts +7 -0
- package/dist/types/crud/components/selection-indicator.d.ts +6 -0
- package/dist/types/crud/components/toolbar-actions.d.ts +6 -0
- package/dist/types/crud/components/toolbar.d.ts +8 -0
- package/dist/types/crud/event.d.ts +3 -0
- package/dist/types/crud/helpers.d.ts +20 -0
- package/dist/types/crud/hooks/index.d.ts +3 -0
- package/dist/types/crud/hooks/use-query-observer.d.ts +6 -0
- package/dist/types/crud/hooks/use-search-values.d.ts +2 -0
- package/dist/types/crud/hooks/use-selected-rows.d.ts +2 -0
- package/dist/types/crud/index.d.ts +8 -0
- package/dist/types/crud/props.d.ts +171 -0
- package/dist/types/crud/store.d.ts +146 -0
- package/dist/types/crud/styles.d.ts +3 -0
- package/dist/types/crud/types.d.ts +55 -0
- package/dist/types/crud-page/index.d.ts +3 -0
- package/dist/types/crud-page/props.d.ts +57 -0
- package/dist/types/dynamic-icon/index.d.ts +1 -1
- package/dist/types/flex-card/index.d.ts +3 -0
- package/dist/types/flex-card/props.d.ts +2 -0
- package/dist/types/flex-card/styles.d.ts +2 -0
- package/dist/types/form-drawer/components/form-actions.d.ts +19 -0
- package/dist/types/form-drawer/components/index.d.ts +1 -0
- package/dist/types/form-drawer/index.d.ts +5 -0
- package/dist/types/form-drawer/props.d.ts +80 -0
- package/dist/types/form-modal/components/draggable-wrapper.d.ts +9 -0
- package/dist/types/form-modal/components/form-actions.d.ts +19 -0
- package/dist/types/form-modal/components/index.d.ts +2 -0
- package/dist/types/form-modal/index.d.ts +5 -0
- package/dist/types/form-modal/props.d.ts +81 -0
- package/dist/types/index.d.ts +11 -1
- package/dist/types/logo-icon/index.d.ts +3 -0
- package/dist/types/logo-icon/props.d.ts +4 -0
- package/dist/types/page/components/aside-panel.d.ts +11 -0
- package/dist/types/page/components/index.d.ts +3 -0
- package/dist/types/page/components/resize-handle.d.ts +7 -0
- package/dist/types/page/components/scroll-content.d.ts +8 -0
- package/dist/types/page/hooks/index.d.ts +2 -0
- package/dist/types/page/hooks/use-page-key.d.ts +1 -0
- package/dist/types/page/hooks/use-resize.d.ts +15 -0
- package/dist/types/page/index.d.ts +4 -0
- package/dist/types/page/props.d.ts +140 -0
- package/dist/types/page/styles.d.ts +17 -0
- package/dist/types/page/viewport-context.d.ts +7 -0
- package/dist/types/pro-search/components/advanced-search-toggler.d.ts +7 -0
- package/dist/types/pro-search/components/advanced-search.d.ts +6 -0
- package/dist/types/pro-search/components/index.d.ts +3 -0
- package/dist/types/pro-search/components/search-actions.d.ts +10 -0
- package/dist/types/pro-search/index.d.ts +5 -0
- package/dist/types/pro-search/props.d.ts +66 -0
- package/dist/types/pro-search/styles.d.ts +6 -0
- package/dist/types/pro-table/components/column-setting-item.d.ts +12 -0
- package/dist/types/pro-table/components/column-settings-panel.d.ts +2 -0
- package/dist/types/pro-table/components/column-settings.d.ts +6 -0
- package/dist/types/pro-table/components/index.d.ts +8 -0
- package/dist/types/pro-table/components/operation-button-group.d.ts +7 -0
- package/dist/types/pro-table/components/ref.d.ts +3 -0
- package/dist/types/pro-table/components/table-subscriber.d.ts +9 -0
- package/dist/types/pro-table/components/table-summary.d.ts +7 -0
- package/dist/types/pro-table/components/table-title.d.ts +7 -0
- package/dist/types/pro-table/components/table.d.ts +12 -0
- package/dist/types/pro-table/components/width-popover.d.ts +9 -0
- package/dist/types/pro-table/context.d.ts +5 -0
- package/dist/types/pro-table/event.d.ts +16 -0
- package/dist/types/pro-table/hooks/index.d.ts +3 -0
- package/dist/types/pro-table/hooks/use-column-settings-persistence.d.ts +7 -0
- package/dist/types/pro-table/hooks/use-row-selection.d.ts +7 -0
- package/dist/types/pro-table/hooks/use-table-columns.d.ts +13 -0
- package/dist/types/pro-table/index.d.ts +11 -0
- package/dist/types/pro-table/props.d.ts +127 -0
- package/dist/types/pro-table/store.d.ts +105 -0
- package/dist/types/pro-table/types.d.ts +103 -0
- package/package.json +6 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
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.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
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), r = n.Provider;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
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.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
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,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
2
|
import e from "./app.js";
|
|
3
3
|
import t from "./context-holder.js";
|
|
4
4
|
import { DarkModeProvider as n } from "./dark-mode-context.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
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,23 +1,23 @@
|
|
|
1
|
-
/*! @vef-framework-react/components v2.1.
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
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";
|
|
5
5
|
import { buildThemeConfig as r } from "./theme-config.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { useReducedMotion as i } from "@vef-framework-react/hooks";
|
|
7
|
+
import { useMemo as a } from "react";
|
|
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 = {}, globalCssVars: u = {} } = s, d =
|
|
11
|
+
let { isDarkMode: c = !1, colors: l = {}, globalCssVars: u = {} } = s, d = a(() => e(l, t), [l]), f = !i(!1);
|
|
12
12
|
return {
|
|
13
|
-
themeConfig:
|
|
13
|
+
themeConfig: a(() => r(c, d, f), [
|
|
14
14
|
c,
|
|
15
15
|
d,
|
|
16
16
|
f
|
|
17
17
|
]),
|
|
18
|
-
globalCssVars:
|
|
18
|
+
globalCssVars: a(() => {
|
|
19
19
|
let e = n(d);
|
|
20
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */ o({ ":root": {
|
|
21
21
|
...e,
|
|
22
22
|
...u
|
|
23
23
|
} }, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInVzZS1jb25maWctcHJvdmlkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0NXIiwiZmlsZSI6InVzZS1jb25maWctcHJvdmlkZXIudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IFNlcmlhbGl6ZWRTdHlsZXMgfSBmcm9tIFwiQGVtb3Rpb24vcmVhY3RcIjtcbmltcG9ydCB0eXBlIHsgVGhlbWVDb25maWcgYXMgQW50ZFRoZW1lQ29uZmlnIH0gZnJvbSBcImFudGRcIjtcblxuaW1wb3J0IHR5cGUgeyBUaGVtZUNvbmZpZyB9IGZyb20gXCIuL3Byb3BzXCI7XG5cbmltcG9ydCB7IGNzcyB9IGZyb20gXCJAZW1vdGlvbi9yZWFjdFwiO1xuaW1wb3J0IH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hpc0RhcmtNb2RlLCBtZXJnZWRDb2xvcnMsIGlzTW90aW9uRW5hYmxlZCksXG4gICAgW2lzRGFya01vZGUsIG1lcmdlZENvbG9ycywgaXNNb3Rpb25FbmFibGVkXVxuICApO1xuXG4gIGNvbnN0IG1lcmdlZEdsb2JhbENzc1ZhcnMgPSB1c2VNZW1vKCgpID0+IHtcbiAgICBjb25zdCBjc3NWYXJzID0gYnVpbGRDb2xvckNzc1ZhcnMobWVyZ2VkQ29sb3JzKTtcblxuICAgIHJldHVybiBjc3Moe1xuICAgICAgXCI6cm9vdFwiOiB7IC4uLmNzc1ZhcnMsIC4uLmdsb2JhbENzc1ZhcnMgfVxuICAgIH0pO1xuICB9LCBbZ2xvYmFsQ3NzVmFycywgbWVyZ2VkQ29sb3JzXSk7XG5cbiAgcmV0dXJuIHtcbiAgICB0aGVtZUNvbmZpZyxcbiAgICBnbG9iYWxDc3NWYXJzOiBtZXJnZWRHbG9iYWxDc3NWYXJzLFxuICAgIGlzRGFya01vZGVcbiAgfTtcbn1cbiJdfQ== */");
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
|
+
import { useCrudStore as e } from "../store.js";
|
|
3
|
+
import { isFunction as t } from "@vef-framework-react/shared";
|
|
4
|
+
import { memo as n } from "react";
|
|
5
|
+
import { useShallow as r } from "@vef-framework-react/core";
|
|
6
|
+
//#region src/crud/components/action-button-group.ts
|
|
7
|
+
var i = n(({ selector: n, children: i }) => {
|
|
8
|
+
let a = e(r((e) => n ? n(e) : e));
|
|
9
|
+
return t(i) ? i(a) : i;
|
|
10
|
+
});
|
|
11
|
+
i.displayName = "ActionButtonGroup";
|
|
12
|
+
//#endregion
|
|
13
|
+
export { i as ActionButtonGroup };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
|
+
import "./action-button-group.js";
|
|
3
|
+
import "./toolbar.js";
|
|
4
|
+
import "./main.js";
|
|
5
|
+
import "./mutation-holder.js";
|
|
6
|
+
import "./operation-button-group.js";
|
|
7
|
+
import "./scene-form.js";
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
|
+
import { useCrudStore as e } from "../store.js";
|
|
3
|
+
import { FlexCard as t } from "../../flex-card/index.js";
|
|
4
|
+
import { ProTable as n } from "../../pro-table/index.js";
|
|
5
|
+
import { useQueryObserver as r } from "../hooks/use-query-observer.js";
|
|
6
|
+
import { main as i } from "../styles.js";
|
|
7
|
+
import { Toolbar as a } from "./toolbar.js";
|
|
8
|
+
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
9
|
+
import { memo as s, useCallback as c } from "react";
|
|
10
|
+
import { useShallow as l } from "@vef-framework-react/core";
|
|
11
|
+
//#region src/crud/components/main.tsx
|
|
12
|
+
var u = s(({ tableSize: s, tableColumns: u, toolbarActions: d, queryParams: f, basicSearch: p, advancedSearch: m, ...h }) => {
|
|
13
|
+
let { searchValues: g, selectedRowKeys: _, setSelectedRowKeys: v, setSelectedRows: y } = e(l((e) => ({
|
|
14
|
+
searchValues: e.searchValues,
|
|
15
|
+
selectedRowKeys: e.selectedRowKeys,
|
|
16
|
+
setSelectedRowKeys: e.setSelectedRowKeys,
|
|
17
|
+
setSelectedRows: e.setSelectedRows
|
|
18
|
+
}))), b = r(), x = {
|
|
19
|
+
...g,
|
|
20
|
+
...f
|
|
21
|
+
}, S = c((e, t) => {
|
|
22
|
+
v(e), y(t);
|
|
23
|
+
}, [v, y]);
|
|
24
|
+
return /* @__PURE__ */ o(t, {
|
|
25
|
+
css: i,
|
|
26
|
+
title: /* @__PURE__ */ o(a, {
|
|
27
|
+
advancedSearch: m,
|
|
28
|
+
basicSearch: p,
|
|
29
|
+
toolbarActions: d
|
|
30
|
+
}),
|
|
31
|
+
children: /* @__PURE__ */ o(n, {
|
|
32
|
+
ref: b,
|
|
33
|
+
columns: u,
|
|
34
|
+
queryParams: x,
|
|
35
|
+
selectedRowKeys: _,
|
|
36
|
+
size: s,
|
|
37
|
+
onSelectedRowKeysChange: S,
|
|
38
|
+
...h
|
|
39
|
+
})
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
//#endregion
|
|
43
|
+
export { u as Main };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
|
+
import { useCrudStoreApi as e } from "../store.js";
|
|
3
|
+
import { isFunction as t } from "@vef-framework-react/shared";
|
|
4
|
+
import { memo as n, useEffect as r } from "react";
|
|
5
|
+
import { useMutation as i } from "@vef-framework-react/core";
|
|
6
|
+
//#region src/crud/components/mutation-holder.ts
|
|
7
|
+
function a(e, n) {
|
|
8
|
+
if (t(e) && n) return e(n.key);
|
|
9
|
+
}
|
|
10
|
+
var o = n(({ mutationMeta: t, deleteMutationFn: n, deleteManyMutationFn: o }) => {
|
|
11
|
+
let s = e(), { mutateAsync: c } = i({
|
|
12
|
+
mutationKey: [n?.key],
|
|
13
|
+
mutationFn: n,
|
|
14
|
+
meta: a(t, n)
|
|
15
|
+
}), { mutateAsync: l } = i({
|
|
16
|
+
mutationKey: [o?.key],
|
|
17
|
+
mutationFn: o,
|
|
18
|
+
meta: a(t, o)
|
|
19
|
+
});
|
|
20
|
+
return r(() => {
|
|
21
|
+
s.setState({
|
|
22
|
+
delete: c,
|
|
23
|
+
deleteMany: l
|
|
24
|
+
});
|
|
25
|
+
}, [
|
|
26
|
+
s,
|
|
27
|
+
c,
|
|
28
|
+
l
|
|
29
|
+
]), null;
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { o as MutationHolder };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
|
+
import { Group as e } from "../../group/index.js";
|
|
3
|
+
import { useCrudStore as t } from "../store.js";
|
|
4
|
+
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
5
|
+
import { isFunction as r } from "@vef-framework-react/shared";
|
|
6
|
+
import { memo as i } from "react";
|
|
7
|
+
import { useShallow as a } from "@vef-framework-react/core";
|
|
8
|
+
//#region src/crud/components/operation-button-group.tsx
|
|
9
|
+
var o = i(({ selector: i, children: o }) => {
|
|
10
|
+
let s = t(a((e) => i ? i(e) : e));
|
|
11
|
+
return /* @__PURE__ */ n(e, {
|
|
12
|
+
justify: "center",
|
|
13
|
+
children: r(o) ? o(s) : o
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
o.displayName = "OperationButtonGroup";
|
|
17
|
+
//#endregion
|
|
18
|
+
export { o as OperationButtonGroup };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
|
+
import { breakpoints as e } from "../../_base/constants/breakpoints.js";
|
|
3
|
+
import { resolveBreakpointValue as t } from "../../_base/helpers/breakpoints.js";
|
|
4
|
+
import { useCrudStore as n } from "../store.js";
|
|
5
|
+
import { FormDrawer as r } from "../../form-drawer/index.js";
|
|
6
|
+
import { FormModal as i } from "../../form-modal/index.js";
|
|
7
|
+
import { jsx as a } from "@emotion/react/jsx-runtime";
|
|
8
|
+
import { isFunction as o, isPlainObject as s } from "@vef-framework-react/shared";
|
|
9
|
+
import { useBreakpoints as c } from "@vef-framework-react/hooks";
|
|
10
|
+
import { memo as l } from "react";
|
|
11
|
+
import { useShallow as u } from "@vef-framework-react/core";
|
|
12
|
+
//#region src/crud/components/scene-form.tsx
|
|
13
|
+
var d = l(({ renderForm: l, formMutationFns: d, formActionsRenderers: f, beforeFormSubmit: p, afterFormSubmit: m, mutationMeta: h }) => {
|
|
14
|
+
let { formVisible: g, closeForm: _, formScene: v, defaultFormValues: y, formTitle: b, formWidth: x, formMode: S, drawerConfig: C, refetchQuery: w } = n(u((e) => ({
|
|
15
|
+
formVisible: e.formVisible,
|
|
16
|
+
closeForm: e.closeForm,
|
|
17
|
+
formScene: e.formScene,
|
|
18
|
+
defaultFormValues: e.defaultFormValues,
|
|
19
|
+
formTitle: e.formTitle,
|
|
20
|
+
formWidth: e.formWidth,
|
|
21
|
+
formMode: e.formMode,
|
|
22
|
+
drawerConfig: e.drawerConfig,
|
|
23
|
+
refetchQuery: e.refetchQuery
|
|
24
|
+
}))), { current: T } = c(e, { initialBreakpoint: "xxs" }), E = d?.[v], D = s(x) ? t(x, T) : x, O = {
|
|
25
|
+
open: g,
|
|
26
|
+
title: b,
|
|
27
|
+
defaultValues: y,
|
|
28
|
+
mutationFn: E,
|
|
29
|
+
mutationMeta: o(h) && E ? h(E.key) : void 0,
|
|
30
|
+
renderActions: f?.[v],
|
|
31
|
+
beforeSubmit: o(p) ? (e) => p(v, e) : void 0,
|
|
32
|
+
afterSubmit: async (e, t) => {
|
|
33
|
+
await m?.(v, e, t), w();
|
|
34
|
+
},
|
|
35
|
+
onClose: _,
|
|
36
|
+
children: o(l) ? l(v) : void 0
|
|
37
|
+
};
|
|
38
|
+
return S === "drawer" ? /* @__PURE__ */ a(r, {
|
|
39
|
+
...O,
|
|
40
|
+
placement: C?.placement,
|
|
41
|
+
width: D
|
|
42
|
+
}) : /* @__PURE__ */ a(i, {
|
|
43
|
+
...O,
|
|
44
|
+
width: D
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
//#endregion
|
|
48
|
+
export { d as SceneForm };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
|
+
import { globalCssVars as e } from "../../_base/constants/css-vars.js";
|
|
3
|
+
import { Button as t } from "../../button/index.js";
|
|
4
|
+
import { useCrudStore as n } from "../store.js";
|
|
5
|
+
import { Text as r } from "../../typography/index.js";
|
|
6
|
+
import { Fragment as i, jsx as a, jsxs as o } from "@emotion/react/jsx-runtime";
|
|
7
|
+
import { memo as s, useCallback as c } from "react";
|
|
8
|
+
import { css as l } from "@emotion/react";
|
|
9
|
+
import { AnimatePresence as u, motion as d, useShallow as f } from "@vef-framework-react/core";
|
|
10
|
+
//#region src/crud/components/selection-indicator.tsx
|
|
11
|
+
var p = /* @__PURE__ */ l({
|
|
12
|
+
display: "flex",
|
|
13
|
+
alignItems: "center",
|
|
14
|
+
gap: e.sizeSm,
|
|
15
|
+
backgroundColor: e.colorFillQuaternary,
|
|
16
|
+
paddingInline: e.sizeSm,
|
|
17
|
+
borderRadius: e.borderRadius,
|
|
18
|
+
fontWeight: "normal",
|
|
19
|
+
"> .vef-btn-variant-link": { padding: 0 }
|
|
20
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNlbGVjdGlvbi1pbmRpY2F0b3IudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVk4QiIsImZpbGUiOiJzZWxlY3Rpb24taW5kaWNhdG9yLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgVHJhbnNpdGlvbiwgVmFyaWFudHMgfSBmcm9tIFwiQHZlZi1mcmFtZXdvcmstcmVhY3QvY29yZVwiO1xuaW1wb3J0IHR5cGUgeyBSZWFjdE5vZGUgfSBmcm9tIFwicmVhY3RcIjtcblxuaW1wb3J0IHsgY3NzIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XG5pbXBvcnQgeyBnbG9iYWxDc3NWYXJzIH0gZnJvbSBcIi4uLy4uL19iYXNlXCI7XG5pbXBvcnQgeyBCdXR0b24gfSBmcm9tIFwiLi4vLi4vYnV0dG9uXCI7XG5pbXBvcnQgeyBUZXh0IH0gZnJvbSBcIi4uLy4uL3R5cG9ncmFwaHlcIjtcbmltcG9yd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4gICAgICAgIGFuaW1hdGU9XCJ2aXNpYmxlXCJcbiAgICAgICAgY3NzPXtzZWxlY3Rpb25XcmFwcGVyU3R5bGV9XG4gICAgICAgIGV4aXQ9XCJoaWRkZW5cIlxuICAgICAgICBpbml0aWFsPVwiaGlkZGVuXCJcbiAgICAgICAgdHJhbnNpdGlvbj17dHJhbnNpdGlvbn1cbiAgICAgICAgdmFyaWFudHM9e3ZhcmlhbnRzfVxuICAgICAgPlxuICAgICAgICA8VGV4dCB0eXBlPVwic2Vjb25kYXJ5XCI+XG4gICAgICAgICAg5bey6YCJ5oupXG4gICAgICAgICAge1wiIFwifVxuICAgICAgICAgIDxzcGFuIGNzcz17c2VsZWN0ZWRDb3VudFN0eWxlfT57c2VsZWN0ZWRSb3dLZXlzLmxlbmd0aH08L3NwYW4+XG4gICAgICAgICAge1wiIFwifVxuICAgICAgICAgIOmhuVxuXG4gICAgICAgICAge3NlbGVjdGlvblN1bW1hcnkgJiYgKFxuICAgICAgICAgICAgPD5cbiAgICAgICAgICAgICAge1wiIFwifVxuICAgICAgICAgICAgICB7c2VsZWN0aW9uU3VtbWFyeShzZWxlY3RlZFJvd0tleXMpfVxuICAgICAgICAgICAgPC8+XG4gICAgICAgICAgKX1cbiAgICAgICAgPC9UZXh0PlxuXG4gICAgICAgIDxCdXR0b24gdHlwZT1cImxpbmtcIiBvbkNsaWNrPXtoYW5kbGVDbGVhclNlbGVjdGlvbn0+XG4gICAgICAgICAg5Y+W5raI6YCJ5oupXG4gICAgICAgIDwvQnV0dG9uPlxuICAgICAgPC9tb3Rpb24uZGl2PlxuICAgIDwvQW5pbWF0ZVByZXNlbmNlPlxuICApO1xufSk7XG5TZWxlY3Rpb25JbmRpY2F0b3IuZGlzcGxheU5hbWUgPSBcIlNlbGVjdGlvbkluZGljYXRvclwiO1xuIl19 */"), m = /* @__PURE__ */ l({
|
|
21
|
+
color: e.colorPrimary,
|
|
22
|
+
fontWeight: e.fontWeightStrong
|
|
23
|
+
}, process.env.N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AgICAgICDpoblcblxuICAgICAgICAgIHtzZWxlY3Rpb25TdW1tYXJ5ICYmIChcbiAgICAgICAgICAgIDw+XG4gICAgICAgICAgICAgIHtcIiBcIn1cbiAgICAgICAgICAgICAge3NlbGVjdGlvblN1bW1hcnkoc2VsZWN0ZWRSb3dLZXlzKX1cbiAgICAgICAgICAgIDwvPlxuICAgICAgICAgICl9XG4gICAgICAgIDwvVGV4dD5cblxuICAgICAgICA8QnV0dG9uIHR5cGU9XCJsaW5rXCIgb25DbGljaz17aGFuZGxlQ2xlYXJTZWxlY3Rpb259PlxuICAgICAgICAgIOWPlua2iOmAieaLqVxuICAgICAgICA8L0J1dHRvbj5cbiAgICAgIDwvbW90aW9uLmRpdj5cbiAgICA8L0FuaW1hdGVQcmVzZW5jZT5cbiAgKTtcbn0pO1xuU2VsZWN0aW9uSW5kaWNhdG9yLmRpc3BsYXlOYW1lID0gXCJTZWxlY3Rpb25JbmRpY2F0b3JcIjtcbiJdfQ== */"), h = {
|
|
24
|
+
hidden: {
|
|
25
|
+
opacity: 0,
|
|
26
|
+
x: 10
|
|
27
|
+
},
|
|
28
|
+
visible: {
|
|
29
|
+
opacity: 1,
|
|
30
|
+
x: 0
|
|
31
|
+
}
|
|
32
|
+
}, g = {
|
|
33
|
+
duration: .2,
|
|
34
|
+
ease: "easeOut"
|
|
35
|
+
}, _ = s(({ selectionSummary: e }) => {
|
|
36
|
+
let { selectedRowKeys: s, setSelectedRows: l, setSelectedRowKeys: _ } = n(f((e) => ({
|
|
37
|
+
selectedRowKeys: e.selectedRowKeys,
|
|
38
|
+
setSelectedRows: e.setSelectedRows,
|
|
39
|
+
setSelectedRowKeys: e.setSelectedRowKeys
|
|
40
|
+
}))), v = c(() => {
|
|
41
|
+
_([]), l([]);
|
|
42
|
+
}, [_, l]);
|
|
43
|
+
return s.length === 0 ? null : /* @__PURE__ */ a(u, { children: /* @__PURE__ */ o(d.div, {
|
|
44
|
+
animate: "visible",
|
|
45
|
+
css: p,
|
|
46
|
+
exit: "hidden",
|
|
47
|
+
initial: "hidden",
|
|
48
|
+
transition: g,
|
|
49
|
+
variants: h,
|
|
50
|
+
children: [/* @__PURE__ */ o(r, {
|
|
51
|
+
type: "secondary",
|
|
52
|
+
children: [
|
|
53
|
+
"已选择",
|
|
54
|
+
" ",
|
|
55
|
+
/* @__PURE__ */ a("span", {
|
|
56
|
+
css: m,
|
|
57
|
+
children: s.length
|
|
58
|
+
}),
|
|
59
|
+
" ",
|
|
60
|
+
"项",
|
|
61
|
+
e && /* @__PURE__ */ o(i, { children: [" ", e(s)] })
|
|
62
|
+
]
|
|
63
|
+
}), /* @__PURE__ */ a(t, {
|
|
64
|
+
type: "link",
|
|
65
|
+
onClick: v,
|
|
66
|
+
children: "取消选择"
|
|
67
|
+
})]
|
|
68
|
+
}) });
|
|
69
|
+
});
|
|
70
|
+
_.displayName = "SelectionIndicator";
|
|
71
|
+
//#endregion
|
|
72
|
+
export { _ as SelectionIndicator };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
|
+
import { globalCssVars as e } from "../../_base/constants/css-vars.js";
|
|
3
|
+
import { Group as t } from "../../group/index.js";
|
|
4
|
+
import { SelectionIndicator as n } from "./selection-indicator.js";
|
|
5
|
+
import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
6
|
+
//#region src/crud/components/toolbar-actions.tsx
|
|
7
|
+
function a({ toolbarActions: a }) {
|
|
8
|
+
return /* @__PURE__ */ i(t, {
|
|
9
|
+
gap: e.spacingSm,
|
|
10
|
+
children: [a, /* @__PURE__ */ r(n, {})]
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { a as ToolbarActions };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
|
+
import { useCrudStore as e } from "../store.js";
|
|
3
|
+
import { toolbar as t } from "../styles.js";
|
|
4
|
+
import { ProSearch as n } from "../../pro-search/index.js";
|
|
5
|
+
import { ToolbarActions as r } from "./toolbar-actions.js";
|
|
6
|
+
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
7
|
+
import { memo as a } from "react";
|
|
8
|
+
import { useShallow as o } from "@vef-framework-react/core";
|
|
9
|
+
//#region src/crud/components/toolbar.tsx
|
|
10
|
+
var s = a(({ basicSearch: a, advancedSearch: s, toolbarActions: c }) => {
|
|
11
|
+
let { defaultSearchValues: l, setSearchValues: u, isQueryFetching: d } = e(o((e) => ({
|
|
12
|
+
defaultSearchValues: e.defaultSearchValues,
|
|
13
|
+
setSearchValues: e.setSearchValues,
|
|
14
|
+
isQueryFetching: e.isQueryFetching
|
|
15
|
+
})));
|
|
16
|
+
return /* @__PURE__ */ i(n, {
|
|
17
|
+
advancedSearch: s,
|
|
18
|
+
basicSearch: a,
|
|
19
|
+
css: t,
|
|
20
|
+
defaultValues: l,
|
|
21
|
+
extra: /* @__PURE__ */ i(r, { toolbarActions: c }),
|
|
22
|
+
loading: d,
|
|
23
|
+
onReset: u,
|
|
24
|
+
onSearch: u
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
s.displayName = "Toolbar";
|
|
28
|
+
//#endregion
|
|
29
|
+
export { s as Toolbar };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
|
+
import { EventEmitter as e } from "@vef-framework-react/shared";
|
|
3
|
+
//#region src/crud/event.ts
|
|
4
|
+
function t() {
|
|
5
|
+
return new e();
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { t as createEventEmitter };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
|
+
import { useCrudStore as e } from "./store.js";
|
|
3
|
+
import { ActionButtonGroup as t } from "./components/action-button-group.js";
|
|
4
|
+
import { useSearchValues as n } from "./hooks/use-search-values.js";
|
|
5
|
+
import { useSelectedRows as r } from "./hooks/use-selected-rows.js";
|
|
6
|
+
import { OperationButtonGroup as i } from "./components/operation-button-group.js";
|
|
7
|
+
//#region src/crud/helpers.ts
|
|
8
|
+
function a() {
|
|
9
|
+
return {
|
|
10
|
+
useCrudStore: e,
|
|
11
|
+
useSearchValues: n,
|
|
12
|
+
useSelectedRows: r,
|
|
13
|
+
OperationButtonGroup: i,
|
|
14
|
+
ActionButtonGroup: t
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { a as createCrudKit };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
|
+
import { useCrudStoreApi as e } from "../store.js";
|
|
3
|
+
import { useEffect as t, useRef as n } from "react";
|
|
4
|
+
//#region src/crud/hooks/use-query-observer.ts
|
|
5
|
+
function r() {
|
|
6
|
+
let r = n(null), i = e();
|
|
7
|
+
return t(() => {
|
|
8
|
+
let e = r.current;
|
|
9
|
+
if (!e) return;
|
|
10
|
+
i.setState((t) => {
|
|
11
|
+
t.refetchQuery = e.refetch;
|
|
12
|
+
});
|
|
13
|
+
let t = e.onLoading(() => {
|
|
14
|
+
i.setState((e) => {
|
|
15
|
+
e.isQueryFetching = !0;
|
|
16
|
+
});
|
|
17
|
+
}), n = e.onLoaded(() => {
|
|
18
|
+
i.setState((e) => {
|
|
19
|
+
e.isQueryFetching = !1;
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
return () => {
|
|
23
|
+
t(), n();
|
|
24
|
+
};
|
|
25
|
+
}, [i]), r;
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { r as useQueryObserver };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
|
+
import { useCrudStore as e } from "../store.js";
|
|
3
|
+
//#region src/crud/hooks/use-search-values.ts
|
|
4
|
+
function t() {
|
|
5
|
+
return e((e) => e.searchValues);
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { t as useSearchValues };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
|
+
import { useCrudStore as e } from "../store.js";
|
|
3
|
+
//#region src/crud/hooks/use-selected-rows.ts
|
|
4
|
+
function t() {
|
|
5
|
+
return e((e) => e.selectedRows);
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { t as useSelectedRows };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
|
+
import { CrudStoreProvider as e } from "./store.js";
|
|
3
|
+
import { Main as t } from "./components/main.js";
|
|
4
|
+
import { MutationHolder as n } from "./components/mutation-holder.js";
|
|
5
|
+
import { SceneForm as r } from "./components/scene-form.js";
|
|
6
|
+
import "./helpers.js";
|
|
7
|
+
import { jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
8
|
+
import { useMemo as o } from "react";
|
|
9
|
+
//#region src/crud/index.tsx
|
|
10
|
+
function s({ defaultSearchValues: s, advancedSearch: c, sceneDefaultFormValues: l, renderForm: u, formMutationFns: d, formActionsRenderers: f, beforeFormSubmit: p, afterFormSubmit: m, deleteMutationFn: h, deleteManyMutationFn: g, mutationMeta: _, rowSelection: v, ...y }) {
|
|
11
|
+
return /* @__PURE__ */ a(e, {
|
|
12
|
+
initialState: o(() => ({
|
|
13
|
+
defaultSearchValues: s,
|
|
14
|
+
sceneDefaultFormValues: l,
|
|
15
|
+
selectedRowKeys: v === !0 ? [] : v?.defaultSelectedRowKeys ?? []
|
|
16
|
+
}), [
|
|
17
|
+
s,
|
|
18
|
+
l,
|
|
19
|
+
v
|
|
20
|
+
]),
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ i(t, {
|
|
23
|
+
...y,
|
|
24
|
+
advancedSearch: c,
|
|
25
|
+
rowSelection: v
|
|
26
|
+
}),
|
|
27
|
+
/* @__PURE__ */ i(r, {
|
|
28
|
+
afterFormSubmit: m,
|
|
29
|
+
beforeFormSubmit: p,
|
|
30
|
+
formActionsRenderers: f,
|
|
31
|
+
formMutationFns: d,
|
|
32
|
+
mutationMeta: _,
|
|
33
|
+
renderForm: u
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ i(n, {
|
|
36
|
+
deleteManyMutationFn: g,
|
|
37
|
+
deleteMutationFn: h,
|
|
38
|
+
mutationMeta: _
|
|
39
|
+
})
|
|
40
|
+
]
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
export { s as Crud };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
|
+
import { createEventEmitter as e } from "./event.js";
|
|
3
|
+
import { createThrowNotImplementedFn as t, mergeWith as n } from "@vef-framework-react/shared";
|
|
4
|
+
import { createComponentStore as r } from "@vef-framework-react/core";
|
|
5
|
+
//#region src/crud/store.ts
|
|
6
|
+
var i = {
|
|
7
|
+
create: "创建",
|
|
8
|
+
update: "修改"
|
|
9
|
+
}, a = {
|
|
10
|
+
xxl: "40vw",
|
|
11
|
+
xl: "50vw",
|
|
12
|
+
lg: "60vw",
|
|
13
|
+
md: "70vw",
|
|
14
|
+
sm: "80vw",
|
|
15
|
+
xs: "90vw",
|
|
16
|
+
xxs: "95vw"
|
|
17
|
+
}, { StoreProvider: o, useStore: s, useStoreApi: c } = r("Crud", (r) => ({
|
|
18
|
+
eventEmitter: e(),
|
|
19
|
+
setSearchValues: (e) => {
|
|
20
|
+
r((t) => {
|
|
21
|
+
t.searchValues = e;
|
|
22
|
+
});
|
|
23
|
+
},
|
|
24
|
+
isAdvancedSearchVisible: !1,
|
|
25
|
+
setIsAdvancedSearchVisible: (e) => {
|
|
26
|
+
r((t) => {
|
|
27
|
+
t.isAdvancedSearchVisible = e;
|
|
28
|
+
});
|
|
29
|
+
},
|
|
30
|
+
formVisible: !1,
|
|
31
|
+
formScene: "default",
|
|
32
|
+
formTitle: i.create,
|
|
33
|
+
formWidth: a,
|
|
34
|
+
formMode: "modal",
|
|
35
|
+
drawerConfig: void 0,
|
|
36
|
+
openForm: ({ scene: e, values: t, title: o, width: s, mode: c = "modal", drawerConfig: l }) => {
|
|
37
|
+
r((r) => {
|
|
38
|
+
r.formScene = e, r.formTitle = o || i[e] || "表单", r.formWidth = s || a, r.formMode = c, r.drawerConfig = l, r.defaultFormValues = n(t ?? {}, r.sceneDefaultFormValues[e] ?? {}), r.formVisible = !0;
|
|
39
|
+
});
|
|
40
|
+
},
|
|
41
|
+
closeForm: () => {
|
|
42
|
+
r((e) => {
|
|
43
|
+
e.formVisible = !1;
|
|
44
|
+
});
|
|
45
|
+
},
|
|
46
|
+
sceneDefaultFormValues: {},
|
|
47
|
+
defaultFormValues: {},
|
|
48
|
+
delete: t("delete"),
|
|
49
|
+
deleteMany: t("deleteMany"),
|
|
50
|
+
isQueryFetching: !1,
|
|
51
|
+
refetchQuery: t("refetchQuery"),
|
|
52
|
+
selectedRowKeys: [],
|
|
53
|
+
setSelectedRowKeys: (e) => {
|
|
54
|
+
r((t) => {
|
|
55
|
+
t.selectedRowKeys = e;
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
selectedRows: [],
|
|
59
|
+
setSelectedRows: (e) => {
|
|
60
|
+
r((t) => {
|
|
61
|
+
t.selectedRows = e;
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
}));
|
|
65
|
+
//#endregion
|
|
66
|
+
export { o as CrudStoreProvider, s as useCrudStore, c as useCrudStoreApi };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
|
+
import { globalCssVars as e } from "../_base/constants/css-vars.js";
|
|
3
|
+
import { css as t } from "@emotion/react";
|
|
4
|
+
//#region src/crud/styles.ts
|
|
5
|
+
function n() {
|
|
6
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
7
|
+
}
|
|
8
|
+
var r = process.env.NODE_ENV === "production" ? {
|
|
9
|
+
name: "ly7b5i",
|
|
10
|
+
styles: "&.vef-card{--vef-card-header-padding:0;}"
|
|
11
|
+
} : {
|
|
12
|
+
name: "ly7b5i",
|
|
13
|
+
styles: "&.vef-card{--vef-card-header-padding:0;}/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHb0IiLCJmaWxlIjoic3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XG5pbXBvcnQgeyBnbG9iYWxDc3NWYXJzIH0gZnJvbSBcIi4uL19iYXNlXCI7XG5cbmV4cG9ydCBjb25zdCBtYWluID0gY3NzKHtcbiAgXCImLnZlZi1jYXJkXCI6IHtcbiAgICBcIi0tdmVmLWNhcmQtaGVhZGVyLXBhZGRpbmdcIjogMFxuICB9XG59KTtcblxuZXhwb3J0IGNvbnN0IHRvb2xiYXIgPSBjc3Moe1xuICBwYWRkaW5nOiBnbG9iYWxDc3NWYXJzLnNwYWNpbmdNZCxcbiAgZm9udFdlaWdodDogXCJub3JtYWxcIlxufSk7XG4iXX0= */",
|
|
14
|
+
toString: n
|
|
15
|
+
}, i = /* @__PURE__ */ t({
|
|
16
|
+
padding: e.spacingMd,
|
|
17
|
+
fontWeight: "normal"
|
|
18
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFTdUIiLCJmaWxlIjoic3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XG5pbXBvcnQgeyBnbG9iYWxDc3NWYXJzIH0gZnJvbSBcIi4uL19iYXNlXCI7XG5cbmV4cG9ydCBjb25zdCBtYWluID0gY3NzKHtcbiAgXCImLnZlZi1jYXJkXCI6IHtcbiAgICBcIi0tdmVmLWNhcmQtaGVhZGVyLXBhZGRpbmdcIjogMFxuICB9XG59KTtcblxuZXhwb3J0IGNvbnN0IHRvb2xiYXIgPSBjc3Moe1xuICBwYWRkaW5nOiBnbG9iYWxDc3NWYXJzLnNwYWNpbmdNZCxcbiAgZm9udFdlaWdodDogXCJub3JtYWxcIlxufSk7XG4iXX0= */");
|
|
19
|
+
//#endregion
|
|
20
|
+
export { r as main, i as toolbar };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*! @vef-framework-react/components v2.1.5 made by Venus | 2026-03-31T12:34:37.574Z */
|
|
2
|
+
import { Crud as e } from "../crud/index.js";
|
|
3
|
+
import { Page as t } from "../page/index.js";
|
|
4
|
+
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
5
|
+
//#region src/crud-page/index.tsx
|
|
6
|
+
function r({ leftAside: r, leftAsideWidth: i, rightAside: a, rightAsideWidth: o, header: s, headerClassName: c, headerPosition: l, footer: u, footerClassName: d, footerPosition: f, ...p }) {
|
|
7
|
+
return /* @__PURE__ */ n(t, {
|
|
8
|
+
margin: !0,
|
|
9
|
+
footer: u,
|
|
10
|
+
footerClassName: d,
|
|
11
|
+
footerPosition: f,
|
|
12
|
+
header: s,
|
|
13
|
+
headerClassName: c,
|
|
14
|
+
headerPosition: l,
|
|
15
|
+
leftAside: r,
|
|
16
|
+
leftAsideWidth: i,
|
|
17
|
+
rightAside: a,
|
|
18
|
+
rightAsideWidth: o,
|
|
19
|
+
children: /* @__PURE__ */ n(e, { ...p })
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { r as CrudPage };
|
package/dist/es/divider/index.js
CHANGED