@vef-framework-react/starter 2.1.4 → 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/components/access-denied/index.cjs +1 -1
- package/dist/cjs/components/app/index.cjs +1 -1
- package/dist/cjs/components/base-layout/use-base-layout.cjs +1 -1
- package/dist/cjs/components/error/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/layout/components/footer.cjs +1 -1
- package/dist/cjs/components/layout/components/header/breadcrumb-navigation.cjs +1 -1
- package/dist/cjs/components/layout/components/header/color-scheme.cjs +1 -1
- package/dist/cjs/components/layout/components/header/fullscreen.cjs +1 -1
- package/dist/cjs/components/layout/components/header/index.cjs +1 -1
- package/dist/cjs/components/layout/components/header/menu-burger.cjs +1 -1
- package/dist/cjs/components/layout/components/header/search.cjs +1 -1
- package/dist/cjs/components/layout/components/header/theme-config.cjs +1 -1
- package/dist/cjs/components/layout/components/header/user-avatar.cjs +1 -1
- package/dist/cjs/components/layout/components/honeycomb-pattern.cjs +1 -1
- package/dist/cjs/components/layout/components/logo.cjs +1 -1
- package/dist/cjs/components/layout/components/menu.cjs +1 -1
- package/dist/cjs/components/layout/components/search/index.cjs +1 -1
- package/dist/cjs/components/layout/components/search/keyboard-help.cjs +1 -1
- package/dist/cjs/components/layout/components/search/keyboard.cjs +1 -1
- package/dist/cjs/components/layout/components/search/search-result-item.cjs +1 -1
- package/dist/cjs/components/layout/components/search/search-result.cjs +1 -1
- package/dist/cjs/components/layout/components/sidebar.cjs +1 -1
- package/dist/cjs/components/layout/components/tabs/context-menu.cjs +1 -1
- package/dist/cjs/components/layout/components/tabs/index.cjs +1 -1
- package/dist/cjs/components/layout/components/tabs/main-content-maximum.cjs +1 -1
- package/dist/cjs/components/layout/components/tabs/reload.cjs +1 -1
- package/dist/cjs/components/layout/components/tabs/tab-item.cjs +1 -1
- package/dist/cjs/components/layout/components/tabs/tab-list.cjs +1 -1
- package/dist/cjs/components/layout/components/tabs/tabs-container.cjs +1 -1
- package/dist/cjs/components/layout/components/theme-config/color-scheme-switcher.cjs +1 -1
- package/dist/cjs/components/layout/components/theme-config/color-scheme.cjs +1 -1
- package/dist/cjs/components/layout/components/theme-config/config-item.cjs +1 -1
- package/dist/cjs/components/layout/components/theme-config/index.cjs +1 -1
- package/dist/cjs/components/layout/components/theme-config/menu-layout-card.cjs +1 -1
- package/dist/cjs/components/layout/components/theme-config/menu-layout.cjs +1 -1
- package/dist/cjs/components/layout/components/theme-config/operations.cjs +1 -1
- package/dist/cjs/components/layout/components/theme-config/theme-color-picker.cjs +1 -1
- package/dist/cjs/components/layout/components/theme-config/theme-colors.cjs +1 -1
- package/dist/cjs/components/layout/hooks/use-menu-navigate.cjs +1 -1
- package/dist/cjs/components/layout/hooks/use-tab-navigate.cjs +1 -1
- package/dist/cjs/components/layout/index.cjs +1 -1
- package/dist/cjs/components/login/icon-login.cjs +1 -1
- package/dist/cjs/components/login/index.cjs +1 -1
- package/dist/cjs/components/n-progress/components/bar.cjs +8 -8
- package/dist/cjs/components/n-progress/index.cjs +1 -1
- package/dist/cjs/components/not-found/index.cjs +1 -1
- package/dist/cjs/components/router-provider/index.cjs +1 -1
- package/dist/cjs/components/theme-config-provider/index.cjs +1 -1
- package/dist/cjs/constants/event.cjs +1 -1
- package/dist/cjs/constants/index.cjs +1 -1
- package/dist/cjs/constants/storage.cjs +0 -1
- package/dist/cjs/helpers/app-version.cjs +1 -1
- package/dist/cjs/helpers/app.cjs +1 -1
- package/dist/cjs/helpers/event.cjs +1 -1
- package/dist/cjs/helpers/index.cjs +1 -1
- package/dist/cjs/helpers/query.cjs +1 -1
- package/dist/cjs/helpers/router.cjs +1 -1
- package/dist/cjs/hooks/use-route-full-path.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/routes/layout.cjs +1 -1
- package/dist/cjs/routes/login.cjs +1 -1
- package/dist/cjs/stores/theme.cjs +1 -1
- package/dist/es/components/access-denied/access-denied-icon.js +1 -1
- package/dist/es/components/access-denied/index.js +18 -18
- package/dist/es/components/app/index.js +8 -8
- package/dist/es/components/base-layout/index.js +1 -1
- package/dist/es/components/base-layout/styles.js +1 -1
- package/dist/es/components/base-layout/use-base-layout.js +8 -8
- package/dist/es/components/error/error-icon.js +1 -1
- package/dist/es/components/error/index.js +27 -27
- package/dist/es/components/index.js +2 -14
- package/dist/es/components/layout/components/footer.js +2 -2
- package/dist/es/components/layout/components/header/boy-icon.js +1 -1
- package/dist/es/components/layout/components/header/breadcrumb-navigation.js +31 -31
- package/dist/es/components/layout/components/header/color-scheme.js +7 -7
- package/dist/es/components/layout/components/header/fullscreen.js +9 -9
- package/dist/es/components/layout/components/header/girl-icon.js +1 -1
- package/dist/es/components/layout/components/header/index.js +17 -17
- package/dist/es/components/layout/components/header/menu-burger.js +5 -5
- package/dist/es/components/layout/components/header/menu-fold-left-icon.js +1 -1
- package/dist/es/components/layout/components/header/menu-unfold-left-icon.js +1 -1
- package/dist/es/components/layout/components/header/search.js +5 -5
- package/dist/es/components/layout/components/header/theme-config.js +5 -5
- package/dist/es/components/layout/components/header/user-avatar.js +30 -30
- package/dist/es/components/layout/components/honeycomb-pattern.js +11 -11
- package/dist/es/components/layout/components/index.js +1 -1
- package/dist/es/components/layout/components/logo.js +16 -17
- package/dist/es/components/layout/components/menu.js +10 -10
- package/dist/es/components/layout/components/search/index.js +22 -22
- package/dist/es/components/layout/components/search/keyboard-arrow-down-icon.js +1 -1
- package/dist/es/components/layout/components/search/keyboard-arrow-up-icon.js +1 -1
- package/dist/es/components/layout/components/search/keyboard-control-icon.js +1 -1
- package/dist/es/components/layout/components/search/keyboard-esc-icon.js +1 -1
- package/dist/es/components/layout/components/search/keyboard-help.js +19 -19
- package/dist/es/components/layout/components/search/keyboard-return-icon.js +1 -1
- package/dist/es/components/layout/components/search/keyboard-shift-icon.js +1 -1
- package/dist/es/components/layout/components/search/keyboard.js +8 -8
- package/dist/es/components/layout/components/search/letter-s-icon.js +1 -1
- package/dist/es/components/layout/components/search/search-result-item.js +24 -24
- package/dist/es/components/layout/components/search/search-result.js +22 -22
- package/dist/es/components/layout/components/sidebar.js +8 -8
- package/dist/es/components/layout/components/tabs/context-menu.js +13 -13
- package/dist/es/components/layout/components/tabs/index.js +9 -9
- package/dist/es/components/layout/components/tabs/main-content-maximum.js +5 -5
- package/dist/es/components/layout/components/tabs/reload.js +8 -9
- package/dist/es/components/layout/components/tabs/tab-item.js +26 -26
- package/dist/es/components/layout/components/tabs/tab-list.js +13 -13
- package/dist/es/components/layout/components/tabs/tabs-container.js +18 -18
- package/dist/es/components/layout/components/theme-config/color-scheme-switcher.js +21 -21
- package/dist/es/components/layout/components/theme-config/color-scheme.js +15 -15
- package/dist/es/components/layout/components/theme-config/config-item.js +8 -8
- package/dist/es/components/layout/components/theme-config/index.js +18 -18
- package/dist/es/components/layout/components/theme-config/menu-layout-card.js +17 -17
- package/dist/es/components/layout/components/theme-config/menu-layout.js +11 -11
- package/dist/es/components/layout/components/theme-config/operations.js +6 -6
- package/dist/es/components/layout/components/theme-config/theme-color-picker.js +6 -6
- package/dist/es/components/layout/components/theme-config/theme-colors.js +9 -9
- package/dist/es/components/layout/hooks/index.js +1 -1
- package/dist/es/components/layout/hooks/use-color-scheme-updater.js +1 -1
- package/dist/es/components/layout/hooks/use-menu-navigate.js +9 -9
- package/dist/es/components/layout/hooks/use-tab-navigate.js +11 -11
- package/dist/es/components/layout/index.js +13 -13
- package/dist/es/components/layout/store.js +1 -1
- package/dist/es/components/layout/styles.js +1 -1
- package/dist/es/components/login/icon-login.js +155 -155
- package/dist/es/components/login/index.js +69 -70
- package/dist/es/components/login/styles.js +1 -1
- package/dist/es/components/login/welcome-messages.js +1 -1
- package/dist/es/components/n-progress/components/bar.js +15 -15
- package/dist/es/components/n-progress/components/container.js +1 -1
- package/dist/es/components/n-progress/components/index.js +1 -1
- package/dist/es/components/n-progress/event.js +1 -1
- package/dist/es/components/n-progress/index.js +6 -6
- package/dist/es/components/not-found/index.js +18 -18
- package/dist/es/components/not-found/not-found-icon.js +1 -1
- package/dist/es/components/router-provider/context.js +1 -1
- package/dist/es/components/router-provider/index.js +9 -9
- package/dist/es/components/theme-config-provider/global-style.js +1 -1
- package/dist/es/components/theme-config-provider/index.js +4 -4
- package/dist/es/components/theme-config-provider/use-color-mode-effect.js +1 -1
- package/dist/es/components/theme-config-provider/use-theme-config.js +1 -1
- package/dist/es/constants/event.js +3 -3
- package/dist/es/constants/index.js +1 -3
- package/dist/es/constants/router.js +1 -1
- package/dist/es/constants/storage.js +0 -4
- package/dist/es/helpers/api.js +1 -1
- package/dist/es/helpers/app-version.js +59 -59
- package/dist/es/helpers/app.js +10 -10
- package/dist/es/helpers/auth.js +1 -1
- package/dist/es/helpers/event.js +14 -11
- package/dist/es/helpers/index.js +2 -2
- package/dist/es/helpers/query.js +2 -2
- package/dist/es/helpers/router.js +45 -46
- package/dist/es/hooks/index.js +1 -1
- package/dist/es/hooks/use-route-full-path.js +5 -5
- package/dist/es/index.js +16 -31
- package/dist/es/routes/access-denied.js +1 -1
- package/dist/es/routes/index.js +1 -1
- package/dist/es/routes/layout.js +16 -16
- package/dist/es/routes/login.js +7 -7
- package/dist/es/routes/root.js +1 -1
- package/dist/es/stores/app.js +1 -1
- package/dist/es/stores/index.js +1 -1
- package/dist/es/stores/tab.js +1 -1
- package/dist/es/stores/theme.js +2 -2
- package/dist/types/components/index.d.ts +1 -10
- package/dist/types/components/login/payload.d.ts +4 -4
- package/dist/types/constants/event.d.ts +0 -1
- package/dist/types/constants/index.d.ts +1 -2
- package/dist/types/helpers/event.d.ts +2 -7
- package/dist/types/helpers/index.d.ts +1 -1
- package/dist/types/helpers/query.d.ts +1 -1
- package/dist/types/index.d.ts +4 -5
- package/dist/types/stores/index.d.ts +3 -6
- package/package.json +6 -6
- package/dist/cjs/components/crud/components/action-button-group.cjs +0 -1
- package/dist/cjs/components/crud/components/index.cjs +0 -1
- package/dist/cjs/components/crud/components/main.cjs +0 -1
- package/dist/cjs/components/crud/components/mutation-holder.cjs +0 -1
- package/dist/cjs/components/crud/components/operation-button-group.cjs +0 -1
- package/dist/cjs/components/crud/components/scene-form.cjs +0 -1
- package/dist/cjs/components/crud/components/selection-indicator.cjs +0 -1
- package/dist/cjs/components/crud/components/toolbar-actions.cjs +0 -1
- package/dist/cjs/components/crud/components/toolbar.cjs +0 -1
- package/dist/cjs/components/crud/event.cjs +0 -1
- package/dist/cjs/components/crud/helpers.cjs +0 -1
- package/dist/cjs/components/crud/hooks/index.cjs +0 -1
- package/dist/cjs/components/crud/hooks/use-query-observer.cjs +0 -1
- package/dist/cjs/components/crud/hooks/use-search-values.cjs +0 -1
- package/dist/cjs/components/crud/hooks/use-selected-rows.cjs +0 -1
- package/dist/cjs/components/crud/index.cjs +0 -1
- package/dist/cjs/components/crud/store.cjs +0 -1
- package/dist/cjs/components/crud/styles.cjs +0 -1
- package/dist/cjs/components/crud-page/index.cjs +0 -1
- package/dist/cjs/components/flex-card/index.cjs +0 -1
- package/dist/cjs/components/flex-card/styles.cjs +0 -1
- package/dist/cjs/components/form-drawer/components/form-actions.cjs +0 -1
- package/dist/cjs/components/form-drawer/components/index.cjs +0 -1
- package/dist/cjs/components/form-drawer/index.cjs +0 -1
- package/dist/cjs/components/form-modal/components/draggable-wrapper.cjs +0 -1
- package/dist/cjs/components/form-modal/components/form-actions.cjs +0 -1
- package/dist/cjs/components/form-modal/components/index.cjs +0 -1
- package/dist/cjs/components/form-modal/index.cjs +0 -1
- package/dist/cjs/components/logo-icon/index.cjs +0 -1
- package/dist/cjs/components/page/components/aside-panel.cjs +0 -1
- package/dist/cjs/components/page/components/index.cjs +0 -1
- package/dist/cjs/components/page/components/resize-handle.cjs +0 -1
- package/dist/cjs/components/page/components/scroll-content.cjs +0 -1
- package/dist/cjs/components/page/hooks/index.cjs +0 -1
- package/dist/cjs/components/page/hooks/use-page-key.cjs +0 -1
- package/dist/cjs/components/page/hooks/use-resize.cjs +0 -1
- package/dist/cjs/components/page/index.cjs +0 -1
- package/dist/cjs/components/page/styles.cjs +0 -1
- package/dist/cjs/components/page/viewport-context.cjs +0 -1
- package/dist/cjs/components/pro-search/components/advanced-search-toggler.cjs +0 -1
- package/dist/cjs/components/pro-search/components/advanced-search.cjs +0 -1
- package/dist/cjs/components/pro-search/components/index.cjs +0 -1
- package/dist/cjs/components/pro-search/components/search-actions.cjs +0 -1
- package/dist/cjs/components/pro-search/index.cjs +0 -1
- package/dist/cjs/components/pro-search/styles.cjs +0 -1
- package/dist/cjs/components/pro-table/components/column-setting-item.cjs +0 -1
- package/dist/cjs/components/pro-table/components/column-settings-panel.cjs +0 -1
- package/dist/cjs/components/pro-table/components/column-settings.cjs +0 -1
- package/dist/cjs/components/pro-table/components/index.cjs +0 -1
- package/dist/cjs/components/pro-table/components/operation-button-group.cjs +0 -1
- package/dist/cjs/components/pro-table/components/ref.cjs +0 -1
- package/dist/cjs/components/pro-table/components/table-subscriber.cjs +0 -1
- package/dist/cjs/components/pro-table/components/table-summary.cjs +0 -1
- package/dist/cjs/components/pro-table/components/table-title.cjs +0 -1
- package/dist/cjs/components/pro-table/components/table.cjs +0 -1
- package/dist/cjs/components/pro-table/components/width-popover.cjs +0 -1
- package/dist/cjs/components/pro-table/context.cjs +0 -1
- package/dist/cjs/components/pro-table/event.cjs +0 -1
- package/dist/cjs/components/pro-table/hooks/index.cjs +0 -1
- package/dist/cjs/components/pro-table/hooks/use-column-settings-persistence.cjs +0 -1
- package/dist/cjs/components/pro-table/hooks/use-row-selection.cjs +0 -1
- package/dist/cjs/components/pro-table/hooks/use-table-columns.cjs +0 -1
- package/dist/cjs/components/pro-table/index.cjs +0 -1
- package/dist/cjs/components/pro-table/store.cjs +0 -1
- package/dist/cjs/constants/symbols.cjs +0 -1
- package/dist/es/components/crud/components/action-button-group.js +0 -13
- package/dist/es/components/crud/components/index.js +0 -7
- package/dist/es/components/crud/components/main.js +0 -43
- package/dist/es/components/crud/components/mutation-holder.js +0 -32
- package/dist/es/components/crud/components/operation-button-group.js +0 -18
- package/dist/es/components/crud/components/scene-form.js +0 -47
- package/dist/es/components/crud/components/selection-indicator.js +0 -70
- package/dist/es/components/crud/components/toolbar-actions.js +0 -13
- package/dist/es/components/crud/components/toolbar.js +0 -29
- package/dist/es/components/crud/event.js +0 -8
- package/dist/es/components/crud/helpers.js +0 -18
- package/dist/es/components/crud/hooks/index.js +0 -4
- package/dist/es/components/crud/hooks/use-query-observer.js +0 -28
- package/dist/es/components/crud/hooks/use-search-values.js +0 -8
- package/dist/es/components/crud/hooks/use-selected-rows.js +0 -8
- package/dist/es/components/crud/index.js +0 -44
- package/dist/es/components/crud/store.js +0 -66
- package/dist/es/components/crud/styles.js +0 -20
- package/dist/es/components/crud-page/index.js +0 -23
- package/dist/es/components/flex-card/index.js +0 -14
- package/dist/es/components/flex-card/styles.js +0 -20
- package/dist/es/components/form-drawer/components/form-actions.js +0 -25
- package/dist/es/components/form-drawer/components/index.js +0 -2
- package/dist/es/components/form-drawer/index.js +0 -79
- package/dist/es/components/form-modal/components/draggable-wrapper.js +0 -52
- package/dist/es/components/form-modal/components/form-actions.js +0 -25
- package/dist/es/components/form-modal/components/index.js +0 -3
- package/dist/es/components/form-modal/index.js +0 -69
- package/dist/es/components/logo-icon/index.js +0 -24
- package/dist/es/components/page/components/aside-panel.js +0 -49
- package/dist/es/components/page/components/index.js +0 -4
- package/dist/es/components/page/components/resize-handle.js +0 -18
- package/dist/es/components/page/components/scroll-content.js +0 -55
- package/dist/es/components/page/hooks/index.js +0 -3
- package/dist/es/components/page/hooks/use-page-key.js +0 -14
- package/dist/es/components/page/hooks/use-resize.js +0 -32
- package/dist/es/components/page/index.js +0 -126
- package/dist/es/components/page/styles.js +0 -122
- package/dist/es/components/page/viewport-context.js +0 -12
- package/dist/es/components/pro-search/components/advanced-search-toggler.js +0 -27
- package/dist/es/components/pro-search/components/advanced-search.js +0 -32
- package/dist/es/components/pro-search/components/index.js +0 -4
- package/dist/es/components/pro-search/components/search-actions.js +0 -24
- package/dist/es/components/pro-search/index.js +0 -57
- package/dist/es/components/pro-search/styles.js +0 -43
- package/dist/es/components/pro-table/components/column-setting-item.js +0 -166
- package/dist/es/components/pro-table/components/column-settings-panel.js +0 -90
- package/dist/es/components/pro-table/components/column-settings.js +0 -29
- package/dist/es/components/pro-table/components/index.js +0 -9
- package/dist/es/components/pro-table/components/operation-button-group.js +0 -18
- package/dist/es/components/pro-table/components/ref.js +0 -14
- package/dist/es/components/pro-table/components/table-subscriber.js +0 -17
- package/dist/es/components/pro-table/components/table-summary.js +0 -12
- package/dist/es/components/pro-table/components/table-title.js +0 -12
- package/dist/es/components/pro-table/components/table.js +0 -101
- package/dist/es/components/pro-table/components/width-popover.js +0 -73
- package/dist/es/components/pro-table/context.js +0 -13
- package/dist/es/components/pro-table/event.js +0 -8
- package/dist/es/components/pro-table/hooks/index.js +0 -4
- package/dist/es/components/pro-table/hooks/use-column-settings-persistence.js +0 -60
- package/dist/es/components/pro-table/hooks/use-row-selection.js +0 -29
- package/dist/es/components/pro-table/hooks/use-table-columns.js +0 -108
- package/dist/es/components/pro-table/index.js +0 -70
- package/dist/es/components/pro-table/store.js +0 -94
- package/dist/es/constants/symbols.js +0 -5
- package/dist/types/components/crud/components/action-button-group.d.ts +0 -8
- package/dist/types/components/crud/components/index.d.ts +0 -6
- package/dist/types/components/crud/components/main.d.ts +0 -6
- package/dist/types/components/crud/components/mutation-holder.d.ts +0 -10
- package/dist/types/components/crud/components/operation-button-group.d.ts +0 -8
- package/dist/types/components/crud/components/scene-form.d.ts +0 -7
- package/dist/types/components/crud/components/selection-indicator.d.ts +0 -6
- package/dist/types/components/crud/components/toolbar-actions.d.ts +0 -6
- package/dist/types/components/crud/components/toolbar.d.ts +0 -8
- package/dist/types/components/crud/event.d.ts +0 -3
- package/dist/types/components/crud/helpers.d.ts +0 -20
- package/dist/types/components/crud/hooks/index.d.ts +0 -3
- package/dist/types/components/crud/hooks/use-query-observer.d.ts +0 -6
- package/dist/types/components/crud/hooks/use-search-values.d.ts +0 -2
- package/dist/types/components/crud/hooks/use-selected-rows.d.ts +0 -2
- package/dist/types/components/crud/index.d.ts +0 -8
- package/dist/types/components/crud/props.d.ts +0 -171
- package/dist/types/components/crud/store.d.ts +0 -146
- package/dist/types/components/crud/styles.d.ts +0 -3
- package/dist/types/components/crud/types.d.ts +0 -54
- package/dist/types/components/crud-page/index.d.ts +0 -3
- package/dist/types/components/crud-page/props.d.ts +0 -57
- package/dist/types/components/flex-card/index.d.ts +0 -3
- package/dist/types/components/flex-card/props.d.ts +0 -2
- package/dist/types/components/flex-card/styles.d.ts +0 -2
- package/dist/types/components/form-drawer/components/form-actions.d.ts +0 -19
- package/dist/types/components/form-drawer/components/index.d.ts +0 -1
- package/dist/types/components/form-drawer/index.d.ts +0 -5
- package/dist/types/components/form-drawer/props.d.ts +0 -78
- package/dist/types/components/form-modal/components/draggable-wrapper.d.ts +0 -9
- package/dist/types/components/form-modal/components/form-actions.d.ts +0 -19
- package/dist/types/components/form-modal/components/index.d.ts +0 -2
- package/dist/types/components/form-modal/index.d.ts +0 -5
- package/dist/types/components/form-modal/props.d.ts +0 -80
- package/dist/types/components/logo-icon/index.d.ts +0 -3
- package/dist/types/components/logo-icon/props.d.ts +0 -4
- package/dist/types/components/page/components/aside-panel.d.ts +0 -11
- package/dist/types/components/page/components/index.d.ts +0 -3
- package/dist/types/components/page/components/resize-handle.d.ts +0 -7
- package/dist/types/components/page/components/scroll-content.d.ts +0 -8
- package/dist/types/components/page/hooks/index.d.ts +0 -2
- package/dist/types/components/page/hooks/use-page-key.d.ts +0 -1
- package/dist/types/components/page/hooks/use-resize.d.ts +0 -15
- package/dist/types/components/page/index.d.ts +0 -4
- package/dist/types/components/page/props.d.ts +0 -140
- package/dist/types/components/page/styles.d.ts +0 -17
- package/dist/types/components/page/viewport-context.d.ts +0 -7
- package/dist/types/components/pro-search/components/advanced-search-toggler.d.ts +0 -7
- package/dist/types/components/pro-search/components/advanced-search.d.ts +0 -6
- package/dist/types/components/pro-search/components/index.d.ts +0 -3
- package/dist/types/components/pro-search/components/search-actions.d.ts +0 -10
- package/dist/types/components/pro-search/index.d.ts +0 -5
- package/dist/types/components/pro-search/props.d.ts +0 -66
- package/dist/types/components/pro-search/styles.d.ts +0 -6
- package/dist/types/components/pro-table/components/column-setting-item.d.ts +0 -12
- package/dist/types/components/pro-table/components/column-settings-panel.d.ts +0 -2
- package/dist/types/components/pro-table/components/column-settings.d.ts +0 -6
- package/dist/types/components/pro-table/components/index.d.ts +0 -8
- package/dist/types/components/pro-table/components/operation-button-group.d.ts +0 -7
- package/dist/types/components/pro-table/components/ref.d.ts +0 -3
- package/dist/types/components/pro-table/components/table-subscriber.d.ts +0 -9
- package/dist/types/components/pro-table/components/table-summary.d.ts +0 -7
- package/dist/types/components/pro-table/components/table-title.d.ts +0 -7
- package/dist/types/components/pro-table/components/table.d.ts +0 -12
- package/dist/types/components/pro-table/components/width-popover.d.ts +0 -9
- package/dist/types/components/pro-table/context.d.ts +0 -5
- package/dist/types/components/pro-table/event.d.ts +0 -16
- package/dist/types/components/pro-table/hooks/index.d.ts +0 -3
- package/dist/types/components/pro-table/hooks/use-column-settings-persistence.d.ts +0 -7
- package/dist/types/components/pro-table/hooks/use-row-selection.d.ts +0 -7
- package/dist/types/components/pro-table/hooks/use-table-columns.d.ts +0 -13
- package/dist/types/components/pro-table/index.d.ts +0 -11
- package/dist/types/components/pro-table/props.d.ts +0 -127
- package/dist/types/components/pro-table/store.d.ts +0 -105
- package/dist/types/components/pro-table/types.d.ts +0 -103
- package/dist/types/constants/symbols.d.ts +0 -2
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.1.4 made by Venus | 2026-03-30T03:49:25.281Z */
|
|
2
|
-
import { useCrudStore as e } from "../store.js";
|
|
3
|
-
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
|
-
import { Group as n } from "@vef-framework-react/components";
|
|
5
|
-
import { useShallow as r } from "@vef-framework-react/core";
|
|
6
|
-
import { memo as i } from "react";
|
|
7
|
-
import { isFunction as a } from "@vef-framework-react/shared";
|
|
8
|
-
//#region src/components/crud/components/operation-button-group.tsx
|
|
9
|
-
var o = i(({ selector: i, children: o }) => {
|
|
10
|
-
let s = e(r((e) => i ? i(e) : e));
|
|
11
|
-
return /* @__PURE__ */ t(n, {
|
|
12
|
-
justify: "center",
|
|
13
|
-
children: a(o) ? o(s) : o
|
|
14
|
-
});
|
|
15
|
-
});
|
|
16
|
-
o.displayName = "OperationButtonGroup";
|
|
17
|
-
//#endregion
|
|
18
|
-
export { o as OperationButtonGroup };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.1.4 made by Venus | 2026-03-30T03:49:25.281Z */
|
|
2
|
-
import { useCrudStore as e } from "../store.js";
|
|
3
|
-
import { FormDrawer as t } from "../../form-drawer/index.js";
|
|
4
|
-
import { FormModal as n } from "../../form-modal/index.js";
|
|
5
|
-
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
6
|
-
import { breakpoints as i, resolveBreakpointValue as a } from "@vef-framework-react/components";
|
|
7
|
-
import { useShallow as o } from "@vef-framework-react/core";
|
|
8
|
-
import { memo as s } from "react";
|
|
9
|
-
import { isFunction as c, isPlainObject as l } from "@vef-framework-react/shared";
|
|
10
|
-
import { useBreakpoints as u } from "@vef-framework-react/hooks";
|
|
11
|
-
//#region src/components/crud/components/scene-form.tsx
|
|
12
|
-
var d = s(({ renderForm: s, formMutationFns: d, formActionsRenderers: f, beforeFormSubmit: p, afterFormSubmit: m, mutationMeta: h }) => {
|
|
13
|
-
let { formVisible: g, closeForm: _, formScene: v, defaultFormValues: y, formTitle: b, formWidth: x, formMode: S, drawerConfig: C, refetchQuery: w } = e(o((e) => ({
|
|
14
|
-
formVisible: e.formVisible,
|
|
15
|
-
closeForm: e.closeForm,
|
|
16
|
-
formScene: e.formScene,
|
|
17
|
-
defaultFormValues: e.defaultFormValues,
|
|
18
|
-
formTitle: e.formTitle,
|
|
19
|
-
formWidth: e.formWidth,
|
|
20
|
-
formMode: e.formMode,
|
|
21
|
-
drawerConfig: e.drawerConfig,
|
|
22
|
-
refetchQuery: e.refetchQuery
|
|
23
|
-
}))), { current: T } = u(i, { initialBreakpoint: "xxs" }), E = d?.[v], D = l(x) ? a(x, T) : x, O = {
|
|
24
|
-
open: g,
|
|
25
|
-
title: b,
|
|
26
|
-
defaultValues: y,
|
|
27
|
-
mutationFn: E,
|
|
28
|
-
mutationMeta: c(h) && E ? h(E.key) : void 0,
|
|
29
|
-
renderActions: f?.[v],
|
|
30
|
-
beforeSubmit: c(p) ? (e) => p(v, e) : void 0,
|
|
31
|
-
afterSubmit: async (e, t) => {
|
|
32
|
-
await m?.(v, e, t), w();
|
|
33
|
-
},
|
|
34
|
-
onClose: _,
|
|
35
|
-
children: c(s) ? s(v) : void 0
|
|
36
|
-
};
|
|
37
|
-
return S === "drawer" ? /* @__PURE__ */ r(t, {
|
|
38
|
-
...O,
|
|
39
|
-
placement: C?.placement,
|
|
40
|
-
width: D
|
|
41
|
-
}) : /* @__PURE__ */ r(n, {
|
|
42
|
-
...O,
|
|
43
|
-
width: D
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
//#endregion
|
|
47
|
-
export { d as SceneForm };
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.1.4 made by Venus | 2026-03-30T03:49:25.281Z */
|
|
2
|
-
import { useCrudStore as e } from "../store.js";
|
|
3
|
-
import { Fragment as t, jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
|
|
4
|
-
import { Button as i, Text as a, globalCssVars as o } from "@vef-framework-react/components";
|
|
5
|
-
import { AnimatePresence as s, motion as c, useShallow as l } from "@vef-framework-react/core";
|
|
6
|
-
import { memo as u, useCallback as d } from "react";
|
|
7
|
-
import { css as f } from "@emotion/react";
|
|
8
|
-
//#region src/components/crud/components/selection-indicator.tsx
|
|
9
|
-
var p = /* @__PURE__ */ f({
|
|
10
|
-
display: "flex",
|
|
11
|
-
alignItems: "center",
|
|
12
|
-
gap: o.sizeSm,
|
|
13
|
-
backgroundColor: o.colorFillQuaternary,
|
|
14
|
-
paddingInline: o.sizeSm,
|
|
15
|
-
borderRadius: o.borderRadius,
|
|
16
|
-
fontWeight: "normal",
|
|
17
|
-
"> .vef-btn-variant-link": { padding: 0 }
|
|
18
|
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNlbGVjdGlvbi1pbmRpY2F0b3IudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVU4QiIsImZpbGUiOiJzZWxlY3Rpb24taW5kaWNhdG9yLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgVHJhbnNpdGlvbiwgVmFyaWFudHMgfSBmcm9tIFwiQHZlZi1mcmFtZXdvcmstcmVhY3QvY29yZVwiO1xuaW1wb3J0IHR5cGUgeyBSZWFjdE5vZGUgfSBmcm9tIFwicmVhY3RcIjtcblxuaW1wb3J0IHsgY3NzIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XG5pbXBvcnQgeyBCdXR0b24sIGdsb2JhbENzc1ZhcnMsIFRleHQgfSBmcm9tIFwiQHZlZi1mcmFtZXdvcmstcmVhY3QvY29tcG9uZW50c1wiO1xuaW1wb3J0IHsgQW5pbWF0ZVByZXNlbmNlLCBtb3Rpb24sIHVzZVNoYWxsb3cgfSBmcm9tIFwiQHZlZi1mcmFtZXdvcmstcmVhY3QvY29yZVwiO1xuaW1wb3J0IHsgbWVtbywgdXNlQ2FsbGJhY2sgfSBmcm9tIFwicmVhY3RcIjtcblxuaW1wb3J0IHsgdXNlQ3J1ZFN0b3JlIH0gZnJvbSBcIi4uL3N0b3JlXCI7XG5cbmNvbnN0IHNlbGVjdGlvbldyYXBwZXJTdHlsZSA9IG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GU9XCJzZWNvbmRhcnlcIj5cbiAgICAgICAgICDlt7LpgInmi6lcbiAgICAgICAgICB7XCIgXCJ9XG4gICAgICAgICAgPHNwYW4gY3NzPXtzZWxlY3RlZENvdW50U3R5bGV9PntzZWxlY3RlZFJvd0tleXMubGVuZ3RofTwvc3Bhbj5cbiAgICAgICAgICB7XCIgXCJ9XG4gICAgICAgICAg6aG5XG5cbiAgICAgICAgICB7c2VsZWN0aW9uU3VtbWFyeSAmJiAoXG4gICAgICAgICAgICA8PlxuICAgICAgICAgICAgICB7XCIgXCJ9XG4gICAgICAgICAgICAgIHtzZWxlY3Rpb25TdW1tYXJ5KHNlbGVjdGVkUm93S2V5cyl9XG4gICAgICAgICAgICA8Lz5cbiAgICAgICAgICApfVxuICAgICAgICA8L1RleHQ+XG5cbiAgICAgICAgPEJ1dHRvbiB0eXBlPVwibGlua1wiIG9uQ2xpY2s9e2hhbmRsZUNsZWFyU2VsZWN0aW9ufT5cbiAgICAgICAgICDlj5bmtojpgInmi6lcbiAgICAgICAgPC9CdXR0b24+XG4gICAgICA8L21vdGlvbi5kaXY+XG4gICAgPC9BbmltYXRlUHJlc2VuY2U+XG4gICk7XG59KTtcblNlbGVjdGlvbkluZGljYXRvci5kaXNwbGF5TmFtZSA9IFwiU2VsZWN0aW9uSW5kaWNhdG9yXCI7XG4iXX0= */"), m = /* @__PURE__ */ f({
|
|
19
|
-
color: o.colorPrimary,
|
|
20
|
-
fontWeight: o.fontWeightStrong
|
|
21
|
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNlbGVjdGlvbi1pbmRpY2F0b3IudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXVCMkIiLCJmaWxlIjoic2VsZWN0aW9uLWluZGljYXRvci50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IFRyYW5zaXRpb24sIF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vbn0+XG4gICAgICAgICAg5Y+W5raI6YCJ5oupXG4gICAgICAgIDwvQnV0dG9uPlxuICAgICAgPC9tb3Rpb24uZGl2PlxuICAgIDwvQW5pbWF0ZVByZXNlbmNlPlxuICApO1xufSk7XG5TZWxlY3Rpb25JbmRpY2F0b3IuZGlzcGxheU5hbWUgPSBcIlNlbGVjdGlvbkluZGljYXRvclwiO1xuIl19 */"), h = {
|
|
22
|
-
hidden: {
|
|
23
|
-
opacity: 0,
|
|
24
|
-
x: 10
|
|
25
|
-
},
|
|
26
|
-
visible: {
|
|
27
|
-
opacity: 1,
|
|
28
|
-
x: 0
|
|
29
|
-
}
|
|
30
|
-
}, g = {
|
|
31
|
-
duration: .2,
|
|
32
|
-
ease: "easeOut"
|
|
33
|
-
}, _ = u(({ selectionSummary: o }) => {
|
|
34
|
-
let { selectedRowKeys: u, setSelectedRows: f, setSelectedRowKeys: _ } = e(l((e) => ({
|
|
35
|
-
selectedRowKeys: e.selectedRowKeys,
|
|
36
|
-
setSelectedRows: e.setSelectedRows,
|
|
37
|
-
setSelectedRowKeys: e.setSelectedRowKeys
|
|
38
|
-
}))), v = d(() => {
|
|
39
|
-
_([]), f([]);
|
|
40
|
-
}, [_, f]);
|
|
41
|
-
return u.length === 0 ? null : /* @__PURE__ */ n(s, { children: /* @__PURE__ */ r(c.div, {
|
|
42
|
-
animate: "visible",
|
|
43
|
-
css: p,
|
|
44
|
-
exit: "hidden",
|
|
45
|
-
initial: "hidden",
|
|
46
|
-
transition: g,
|
|
47
|
-
variants: h,
|
|
48
|
-
children: [/* @__PURE__ */ r(a, {
|
|
49
|
-
type: "secondary",
|
|
50
|
-
children: [
|
|
51
|
-
"已选择",
|
|
52
|
-
" ",
|
|
53
|
-
/* @__PURE__ */ n("span", {
|
|
54
|
-
css: m,
|
|
55
|
-
children: u.length
|
|
56
|
-
}),
|
|
57
|
-
" ",
|
|
58
|
-
"项",
|
|
59
|
-
o && /* @__PURE__ */ r(t, { children: [" ", o(u)] })
|
|
60
|
-
]
|
|
61
|
-
}), /* @__PURE__ */ n(i, {
|
|
62
|
-
type: "link",
|
|
63
|
-
onClick: v,
|
|
64
|
-
children: "取消选择"
|
|
65
|
-
})]
|
|
66
|
-
}) });
|
|
67
|
-
});
|
|
68
|
-
_.displayName = "SelectionIndicator";
|
|
69
|
-
//#endregion
|
|
70
|
-
export { _ as SelectionIndicator };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.1.4 made by Venus | 2026-03-30T03:49:25.281Z */
|
|
2
|
-
import { SelectionIndicator as e } from "./selection-indicator.js";
|
|
3
|
-
import { jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
|
|
4
|
-
import { Group as r, globalCssVars as i } from "@vef-framework-react/components";
|
|
5
|
-
//#region src/components/crud/components/toolbar-actions.tsx
|
|
6
|
-
function a({ toolbarActions: a }) {
|
|
7
|
-
return /* @__PURE__ */ n(r, {
|
|
8
|
-
gap: i.spacingSm,
|
|
9
|
-
children: [a, /* @__PURE__ */ t(e, {})]
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
export { a as ToolbarActions };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.1.4 made by Venus | 2026-03-30T03:49:25.281Z */
|
|
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 { useShallow as a } from "@vef-framework-react/core";
|
|
8
|
-
import { memo as o } from "react";
|
|
9
|
-
//#region src/components/crud/components/toolbar.tsx
|
|
10
|
-
var s = o(({ basicSearch: o, advancedSearch: s, toolbarActions: c }) => {
|
|
11
|
-
let { defaultSearchValues: l, setSearchValues: u, isQueryFetching: d } = e(a((e) => ({
|
|
12
|
-
defaultSearchValues: e.defaultSearchValues,
|
|
13
|
-
setSearchValues: e.setSearchValues,
|
|
14
|
-
isQueryFetching: e.isQueryFetching
|
|
15
|
-
})));
|
|
16
|
-
return /* @__PURE__ */ i(n, {
|
|
17
|
-
advancedSearch: s,
|
|
18
|
-
basicSearch: o,
|
|
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 };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.1.4 made by Venus | 2026-03-30T03:49:25.281Z */
|
|
2
|
-
import { EventEmitter as e } from "@vef-framework-react/shared";
|
|
3
|
-
//#region src/components/crud/event.ts
|
|
4
|
-
function t() {
|
|
5
|
-
return new e();
|
|
6
|
-
}
|
|
7
|
-
//#endregion
|
|
8
|
-
export { t as createEventEmitter };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.1.4 made by Venus | 2026-03-30T03:49:25.281Z */
|
|
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/components/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 };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.1.4 made by Venus | 2026-03-30T03:49:25.281Z */
|
|
2
|
-
import { useCrudStoreApi as e } from "../store.js";
|
|
3
|
-
import { useEffect as t, useRef as n } from "react";
|
|
4
|
-
//#region src/components/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 };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.1.4 made by Venus | 2026-03-30T03:49:25.281Z */
|
|
2
|
-
import { useCrudStore as e } from "../store.js";
|
|
3
|
-
//#region src/components/crud/hooks/use-search-values.ts
|
|
4
|
-
function t() {
|
|
5
|
-
return e((e) => e.searchValues);
|
|
6
|
-
}
|
|
7
|
-
//#endregion
|
|
8
|
-
export { t as useSearchValues };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.1.4 made by Venus | 2026-03-30T03:49:25.281Z */
|
|
2
|
-
import { useCrudStore as e } from "../store.js";
|
|
3
|
-
//#region src/components/crud/hooks/use-selected-rows.ts
|
|
4
|
-
function t() {
|
|
5
|
-
return e((e) => e.selectedRows);
|
|
6
|
-
}
|
|
7
|
-
//#endregion
|
|
8
|
-
export { t as useSelectedRows };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.1.4 made by Venus | 2026-03-30T03:49:25.281Z */
|
|
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/components/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 };
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.1.4 made by Venus | 2026-03-30T03:49:25.281Z */
|
|
2
|
-
import { createEventEmitter as e } from "./event.js";
|
|
3
|
-
import { createComponentStore as t } from "@vef-framework-react/core";
|
|
4
|
-
import { createThrowNotImplementedFn as n, mergeWith as r } from "@vef-framework-react/shared";
|
|
5
|
-
//#region src/components/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 } = t("Crud", (t) => ({
|
|
18
|
-
eventEmitter: e(),
|
|
19
|
-
setSearchValues: (e) => {
|
|
20
|
-
t((t) => {
|
|
21
|
-
t.searchValues = e;
|
|
22
|
-
});
|
|
23
|
-
},
|
|
24
|
-
isAdvancedSearchVisible: !1,
|
|
25
|
-
setIsAdvancedSearchVisible: (e) => {
|
|
26
|
-
t((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: n, title: o, width: s, mode: c = "modal", drawerConfig: l }) => {
|
|
37
|
-
t((t) => {
|
|
38
|
-
t.formScene = e, t.formTitle = o || i[e] || "表单", t.formWidth = s || a, t.formMode = c, t.drawerConfig = l, t.defaultFormValues = r(n ?? {}, t.sceneDefaultFormValues[e] ?? {}), t.formVisible = !0;
|
|
39
|
-
});
|
|
40
|
-
},
|
|
41
|
-
closeForm: () => {
|
|
42
|
-
t((e) => {
|
|
43
|
-
e.formVisible = !1;
|
|
44
|
-
});
|
|
45
|
-
},
|
|
46
|
-
sceneDefaultFormValues: {},
|
|
47
|
-
defaultFormValues: {},
|
|
48
|
-
delete: n("delete"),
|
|
49
|
-
deleteMany: n("deleteMany"),
|
|
50
|
-
isQueryFetching: !1,
|
|
51
|
-
refetchQuery: n("refetchQuery"),
|
|
52
|
-
selectedRowKeys: [],
|
|
53
|
-
setSelectedRowKeys: (e) => {
|
|
54
|
-
t((t) => {
|
|
55
|
-
t.selectedRowKeys = e;
|
|
56
|
-
});
|
|
57
|
-
},
|
|
58
|
-
selectedRows: [],
|
|
59
|
-
setSelectedRows: (e) => {
|
|
60
|
-
t((t) => {
|
|
61
|
-
t.selectedRows = e;
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
}));
|
|
65
|
-
//#endregion
|
|
66
|
-
export { o as CrudStoreProvider, s as useCrudStore, c as useCrudStoreApi };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.1.4 made by Venus | 2026-03-30T03:49:25.281Z */
|
|
2
|
-
import { globalCssVars as e } from "@vef-framework-react/components";
|
|
3
|
-
import { css as t } from "@emotion/react";
|
|
4
|
-
//#region src/components/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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHb0IiLCJmaWxlIjoic3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XG5pbXBvcnQgeyBnbG9iYWxDc3NWYXJzIH0gZnJvbSBcIkB2ZWYtZnJhbWV3b3JrLXJlYWN0L2NvbXBvbmVudHNcIjtcblxuZXhwb3J0IGNvbnN0IG1haW4gPSBjc3Moe1xuICBcIiYudmVmLWNhcmRcIjoge1xuICAgIFwiLS12ZWYtY2FyZC1oZWFkZXItcGFkZGluZ1wiOiAwXG4gIH1cbn0pO1xuXG5leHBvcnQgY29uc3QgdG9vbGJhciA9IGNzcyh7XG4gIHBhZGRpbmc6IGdsb2JhbENzc1ZhcnMuc3BhY2luZ01kLFxuICBmb250V2VpZ2h0OiBcIm5vcm1hbFwiXG59KTtcbiJdfQ== */",
|
|
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFTdUIiLCJmaWxlIjoic3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XG5pbXBvcnQgeyBnbG9iYWxDc3NWYXJzIH0gZnJvbSBcIkB2ZWYtZnJhbWV3b3JrLXJlYWN0L2NvbXBvbmVudHNcIjtcblxuZXhwb3J0IGNvbnN0IG1haW4gPSBjc3Moe1xuICBcIiYudmVmLWNhcmRcIjoge1xuICAgIFwiLS12ZWYtY2FyZC1oZWFkZXItcGFkZGluZ1wiOiAwXG4gIH1cbn0pO1xuXG5leHBvcnQgY29uc3QgdG9vbGJhciA9IGNzcyh7XG4gIHBhZGRpbmc6IGdsb2JhbENzc1ZhcnMuc3BhY2luZ01kLFxuICBmb250V2VpZ2h0OiBcIm5vcm1hbFwiXG59KTtcbiJdfQ== */");
|
|
19
|
-
//#endregion
|
|
20
|
-
export { r as main, i as toolbar };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.1.4 made by Venus | 2026-03-30T03:49:25.281Z */
|
|
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/components/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 };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.1.4 made by Venus | 2026-03-30T03:49:25.281Z */
|
|
2
|
-
import { container as e } from "./styles.js";
|
|
3
|
-
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
|
-
import { Card as n } from "@vef-framework-react/components";
|
|
5
|
-
//#region src/components/flex-card/index.tsx
|
|
6
|
-
function r({ variant: r = "outlined", ...i }) {
|
|
7
|
-
return /* @__PURE__ */ t(n, {
|
|
8
|
-
css: e,
|
|
9
|
-
variant: r,
|
|
10
|
-
...i
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { r as FlexCard };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.1.4 made by Venus | 2026-03-30T03:49:25.281Z */
|
|
2
|
-
import { globalCssVars as e } from "@vef-framework-react/components";
|
|
3
|
-
import { css as t } from "@emotion/react";
|
|
4
|
-
//#region src/components/flex-card/styles.ts
|
|
5
|
-
var n = /* @__PURE__ */ t({
|
|
6
|
-
height: "100%",
|
|
7
|
-
display: "flex",
|
|
8
|
-
flexDirection: "column",
|
|
9
|
-
"&.vef-card": {
|
|
10
|
-
"--vef-card-header-padding": e.spacingMd,
|
|
11
|
-
"--vef-card-body-padding": e.spacingMd,
|
|
12
|
-
"& > .vef-card-head": { flex: "none" },
|
|
13
|
-
"& > .vef-card-body": {
|
|
14
|
-
flex: "auto",
|
|
15
|
-
minHeight: 0
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHeUIiLCJmaWxlIjoic3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XG5pbXBvcnQgeyBnbG9iYWxDc3NWYXJzIH0gZnJvbSBcIkB2ZWYtZnJhbWV3b3JrLXJlYWN0L2NvbXBvbmVudHNcIjtcblxuZXhwb3J0IGNvbnN0IGNvbnRhaW5lciA9IGNzcyh7XG4gIGhlaWdodDogXCIxMDAlXCIsXG4gIGRpc3BsYXk6IFwiZmxleFwiLFxuICBmbGV4RGlyZWN0aW9uOiBcImNvbHVtblwiLFxuICBcIiYudmVmLWNhcmRcIjoge1xuICAgIFwiLS12ZWYtY2FyZC1oZWFkZXItcGFkZGluZ1wiOiBnbG9iYWxDc3NWYXJzLnNwYWNpbmdNZCxcbiAgICBcIi0tdmVmLWNhcmQtYm9keS1wYWRkaW5nXCI6IGdsb2JhbENzc1ZhcnMuc3BhY2luZ01kLFxuICAgIFwiJiA+IC52ZWYtY2FyZC1oZWFkXCI6IHtcbiAgICAgIGZsZXg6IFwibm9uZVwiXG4gICAgfSxcbiAgICBcIiYgPiAudmVmLWNhcmQtYm9keVwiOiB7XG4gICAgICBmbGV4OiBcImF1dG9cIixcbiAgICAgIG1pbkhlaWdodDogMFxuICAgIH1cbiAgfVxufSk7XG4iXX0= */");
|
|
19
|
-
//#endregion
|
|
20
|
-
export { n as container };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.1.4 made by Venus | 2026-03-30T03:49:25.281Z */
|
|
2
|
-
import { Fragment as e, jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import { Icon as r, useFormContext as i } from "@vef-framework-react/components";
|
|
4
|
-
import { CheckIcon as a } from "lucide-react";
|
|
5
|
-
import { memo as o, useCallback as s } from "react";
|
|
6
|
-
var c = {
|
|
7
|
-
children: "提交",
|
|
8
|
-
icon: /* @__PURE__ */ t(r, { component: a })
|
|
9
|
-
}, l = { children: "重置" };
|
|
10
|
-
function u({ submitButtonProps: r = c, resetButtonProps: a = l, onReset: o }) {
|
|
11
|
-
let { ResetButton: u, SubmitButton: d, handleSubmit: f, reset: p } = i(), m = s(() => {
|
|
12
|
-
p(), o?.();
|
|
13
|
-
}, [p, o]);
|
|
14
|
-
return /* @__PURE__ */ n(e, { children: [a && /* @__PURE__ */ t(u, {
|
|
15
|
-
...a,
|
|
16
|
-
onReset: m
|
|
17
|
-
}), /* @__PURE__ */ t(d, {
|
|
18
|
-
...r,
|
|
19
|
-
onSubmit: f
|
|
20
|
-
})] });
|
|
21
|
-
}
|
|
22
|
-
var d = o(u);
|
|
23
|
-
d.displayName = "FormActions";
|
|
24
|
-
//#endregion
|
|
25
|
-
export { d as FormActions };
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.1.4 made by Venus | 2026-03-30T03:49:25.281Z */
|
|
2
|
-
import { FormActions as e } from "./components/form-actions.js";
|
|
3
|
-
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
|
-
import { Center as n, Drawer as r, Empty as i, useForm as a } from "@vef-framework-react/components";
|
|
5
|
-
import { useMutation as o } from "@vef-framework-react/core";
|
|
6
|
-
import { memo as s, useCallback as c, useMemo as l } from "react";
|
|
7
|
-
import "@emotion/react";
|
|
8
|
-
import { isFunction as u } from "@vef-framework-react/shared";
|
|
9
|
-
//#region src/components/form-drawer/index.tsx
|
|
10
|
-
function d() {
|
|
11
|
-
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).";
|
|
12
|
-
}
|
|
13
|
-
var f = process.env.NODE_ENV === "production" ? {
|
|
14
|
-
name: "13udsys",
|
|
15
|
-
styles: "height:100%"
|
|
16
|
-
} : {
|
|
17
|
-
name: "13udsys",
|
|
18
|
-
styles: "height:100%/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzeCJdLCJuYW1lcyI6W10s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lUmVzZXRdXG4gICk7XG5cbiAgY29uc3QgZm9vdGVyID0gcmVuZGVyQWN0aW9uc1xuICAgID8gKCgpID0+IHtcbiAgICAgICAgY29uc3QgYWN0aW9ucyA9IHJlbmRlckFjdGlvbnMocHJveGllZEZvcm1BcGkpO1xuXG4gICAgICAgIHJldHVybiBhY3Rpb25zXG4gICAgICAgICAgPyAoXG4gICAgICAgICAgICAgIDxBcHBGb3JtPlxuICAgICAgICAgICAgICAgIHthY3Rpb25zfVxuICAgICAgICAgICAgICA8L0FwcEZvcm0+XG4gICAgICAgICAgICApXG4gICAgICAgICAgOiBudWxsO1xuICAgICAgfSkoKVxuICAgIDogKFxuICAgICAgICA8QXBwRm9ybT5cbiAgICAgICAgICA8Rm9ybUFjdGlvbnNcbiAgICAgICAgICAgIHJlc2V0QnV0dG9uUHJvcHM9e3Jlc2V0QnV0dG9uUHJvcHN9XG4gICAgICAgICAgICBzdWJtaXRCdXR0b25Qcm9wcz17c3VibWl0QnV0dG9uUHJvcHN9XG4gICAgICAgICAgICBvblJlc2V0PXtoYW5kbGVSZXNldH1cbiAgICAgICAgICAvPlxuICAgICAgICA8L0FwcEZvcm0+XG4gICAgICApO1xuXG4gIHJldHVybiAoXG4gICAgPERyYXdlclxuICAgICAgZGVzdHJveU9uSGlkZGVuXG4gICAgICBmb290ZXI9e2Zvb3Rlcn1cbiAgICAgIGtleWJvYXJkPXtmYWxzZX1cbiAgICAgIG9wZW49e29wZW59XG4gICAgICBwbGFjZW1lbnQ9e3BsYWNlbWVudH1cbiAgICAgIHJlc2l6YWJsZT17cmVzaXphYmxlfVxuICAgICAgc3R5bGVzPXtkcmF3ZXJTdHlsZXN9XG4gICAgICB0aXRsZT17dGl0bGV9XG4gICAgICBvbkNsb3NlPXtoYW5kbGVDYW5jZWx9XG4gICAgPlxuICAgICAgPEZvcm0gY3NzPXtmb3JtU3R5bGV9IGRpc2FibGVkPXtkaXNhYmxlZCB8fCBpc1BlbmRpbmd9PlxuICAgICAgICB7cmVuZGVyRm9ybUNvbnRlbnQoY2hpbGRyZW4sIGZvcm1BcGkpfVxuICAgICAgPC9Gb3JtPlxuICAgIDwvRHJhd2VyPlxuICApO1xufSkgYXMgKDxUVmFsdWVzIGV4dGVuZHMgb2JqZWN0LCBURGF0YSA9IHVua25vd24+KHByb3BzOiBGb3JtRHJhd2VyUHJvcHM8VFZhbHVlcywgVERhdGE+KSA9PiBBd2FpdGFibGU8UmVhY3ROb2RlPikgJiBQaWNrPEZDLCBcImRpc3BsYXlOYW1lXCI+O1xuRm9ybURyYXdlci5kaXNwbGF5TmFtZSA9IFwiRm9ybURyYXdlclwiO1xuXG5leHBvcnQgdHlwZSB7IEZvcm1EcmF3ZXJQcm9wcyB9IGZyb20gXCIuL3Byb3BzXCI7XG4iXX0= */",
|
|
19
|
-
toString: d
|
|
20
|
-
}, p = /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(i, { description: "请提供表单内容" }) });
|
|
21
|
-
function m(e, t) {
|
|
22
|
-
return u(e) ? e(t) : e || p;
|
|
23
|
-
}
|
|
24
|
-
var h = s(({ open: n = !1, title: i, width: s, placement: d = "right", resizable: p, defaultValues: h, disabled: g = !1, renderActions: _, submitButtonProps: v, resetButtonProps: y, mutationFn: b, mutationMeta: x, children: S, beforeSubmit: C, afterSubmit: w, onClose: T, onSubmit: E, onReset: D }) => {
|
|
25
|
-
let O = a({
|
|
26
|
-
defaultValues: h,
|
|
27
|
-
onSubmit: async ({ value: e }) => {
|
|
28
|
-
let t = e;
|
|
29
|
-
u(C) && (t = await C(t)), u(E) && await E(t), b ? await P(t) : E || M();
|
|
30
|
-
}
|
|
31
|
-
}), { Form: k, AppForm: A, reset: j } = O, M = c(() => {
|
|
32
|
-
j(), T?.();
|
|
33
|
-
}, [T, j]), { isPending: N, mutateAsync: P } = o({
|
|
34
|
-
mutationKey: [b?.key],
|
|
35
|
-
mutationFn: b,
|
|
36
|
-
onSuccess: async ({ data: e }, t) => {
|
|
37
|
-
u(w) && await w(t, e), M();
|
|
38
|
-
},
|
|
39
|
-
meta: x
|
|
40
|
-
}), F = c(() => {
|
|
41
|
-
D?.(h);
|
|
42
|
-
}, [h, D]), I = c(() => {
|
|
43
|
-
N || M();
|
|
44
|
-
}, [M, N]), L = l(() => ({ wrapper: { width: s } }), [s]), R = l(() => new Proxy(O, { get(e, t, n) {
|
|
45
|
-
if (t === "reset") {
|
|
46
|
-
let r = Reflect.get(e, t, n);
|
|
47
|
-
return () => {
|
|
48
|
-
r(), F();
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
return Reflect.get(e, t, n);
|
|
52
|
-
} }), [O, F]);
|
|
53
|
-
return /* @__PURE__ */ t(r, {
|
|
54
|
-
destroyOnHidden: !0,
|
|
55
|
-
footer: _ ? (() => {
|
|
56
|
-
let e = _(R);
|
|
57
|
-
return e ? /* @__PURE__ */ t(A, { children: e }) : null;
|
|
58
|
-
})() : /* @__PURE__ */ t(A, { children: /* @__PURE__ */ t(e, {
|
|
59
|
-
resetButtonProps: y,
|
|
60
|
-
submitButtonProps: v,
|
|
61
|
-
onReset: F
|
|
62
|
-
}) }),
|
|
63
|
-
keyboard: !1,
|
|
64
|
-
open: n,
|
|
65
|
-
placement: d,
|
|
66
|
-
resizable: p,
|
|
67
|
-
styles: L,
|
|
68
|
-
title: i,
|
|
69
|
-
onClose: I,
|
|
70
|
-
children: /* @__PURE__ */ t(k, {
|
|
71
|
-
css: f,
|
|
72
|
-
disabled: g || N,
|
|
73
|
-
children: m(S, O)
|
|
74
|
-
})
|
|
75
|
-
});
|
|
76
|
-
});
|
|
77
|
-
h.displayName = "FormDrawer";
|
|
78
|
-
//#endregion
|
|
79
|
-
export { h as FormDrawer };
|