@vef-framework/starter 1.0.135 → 2.0.2
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/README +15 -0
- package/dist/cjs/components/access-denied/access-denied-icon.cjs +210 -0
- package/dist/cjs/components/access-denied/index.cjs +47 -0
- package/dist/cjs/components/app/index.cjs +47 -0
- package/dist/cjs/components/app/props.cjs +3 -0
- package/dist/cjs/components/base-layout/index.cjs +45 -0
- package/dist/cjs/components/base-layout/props.cjs +3 -0
- package/dist/cjs/components/base-layout/styles.cjs +57 -0
- package/dist/cjs/components/base-layout/use-base-layout.cjs +41 -0
- package/dist/cjs/components/crud/components/action-button-group.cjs +20 -0
- package/dist/cjs/components/crud/components/index.cjs +20 -0
- package/dist/cjs/components/crud/components/main.cjs +57 -0
- package/dist/cjs/components/crud/components/mutation-holder.cjs +40 -0
- package/dist/cjs/components/crud/components/operation-button-group.cjs +22 -0
- package/dist/cjs/components/crud/components/scene-form.cjs +84 -0
- package/dist/cjs/components/crud/components/selection-indicator.cjs +83 -0
- package/dist/cjs/components/crud/components/toolbar-actions.cjs +19 -0
- package/dist/cjs/components/crud/components/toolbar.cjs +38 -0
- package/dist/cjs/components/crud/event.cjs +12 -0
- package/dist/cjs/components/crud/helpers.cjs +26 -0
- package/dist/cjs/components/crud/hooks/index.cjs +14 -0
- package/dist/cjs/components/crud/hooks/use-query-observer.cjs +37 -0
- package/dist/cjs/components/crud/hooks/use-search-values.cjs +12 -0
- package/dist/cjs/components/crud/hooks/use-selected-rows.cjs +12 -0
- package/dist/cjs/components/crud/index.cjs +46 -0
- package/dist/cjs/components/crud/props.cjs +3 -0
- package/dist/cjs/components/crud/store.cjs +93 -0
- package/dist/cjs/components/crud/styles.cjs +34 -0
- package/dist/cjs/components/crud-page/index.cjs +19 -0
- package/dist/cjs/components/crud-page/props.cjs +3 -0
- package/dist/cjs/components/error/error-icon.cjs +179 -0
- package/dist/cjs/components/error/index.cjs +69 -0
- package/dist/cjs/components/flex-card/index.cjs +18 -0
- package/dist/cjs/components/flex-card/props.cjs +3 -0
- package/dist/cjs/components/flex-card/styles.cjs +26 -0
- package/dist/cjs/components/form-drawer/components/form-actions.cjs +38 -0
- package/dist/cjs/components/form-drawer/components/index.cjs +10 -0
- package/dist/cjs/components/form-drawer/index.cjs +112 -0
- package/dist/cjs/components/form-modal/components/form-actions.cjs +38 -0
- package/dist/cjs/components/form-modal/components/index.cjs +10 -0
- package/dist/cjs/components/form-modal/index.cjs +88 -0
- package/dist/cjs/components/index.cjs +45 -0
- package/dist/cjs/components/layout/components/footer.cjs +27 -0
- package/dist/cjs/components/layout/components/header/boy-icon.cjs +20 -0
- package/dist/cjs/components/layout/components/header/breadcrumb-navigation.cjs +90 -0
- package/dist/cjs/components/layout/components/header/color-scheme.cjs +40 -0
- package/dist/cjs/components/layout/components/header/fullscreen.cjs +23 -0
- package/dist/cjs/components/layout/components/header/girl-icon.cjs +21 -0
- package/dist/cjs/components/layout/components/header/index.cjs +88 -0
- package/dist/cjs/components/layout/components/header/menu-burger.cjs +24 -0
- package/dist/cjs/components/layout/components/header/menu-fold-left-icon.cjs +20 -0
- package/dist/cjs/components/layout/components/header/menu-unfold-left-icon.cjs +20 -0
- package/dist/cjs/components/layout/components/header/search.cjs +22 -0
- package/dist/cjs/components/layout/components/header/theme-config.cjs +23 -0
- package/dist/cjs/components/layout/components/header/user-avatar.cjs +86 -0
- package/dist/cjs/components/layout/components/honeycomb-pattern.cjs +39 -0
- package/dist/cjs/components/layout/components/index.cjs +20 -0
- package/dist/cjs/components/layout/components/logo.cjs +60 -0
- package/dist/cjs/components/layout/components/menu.cjs +95 -0
- package/dist/cjs/components/layout/components/search/index.cjs +79 -0
- package/dist/cjs/components/layout/components/search/keyboard-arrow-down-icon.cjs +15 -0
- package/dist/cjs/components/layout/components/search/keyboard-arrow-up-icon.cjs +15 -0
- package/dist/cjs/components/layout/components/search/keyboard-control-icon.cjs +15 -0
- package/dist/cjs/components/layout/components/search/keyboard-esc-icon.cjs +15 -0
- package/dist/cjs/components/layout/components/search/keyboard-help.cjs +46 -0
- package/dist/cjs/components/layout/components/search/keyboard-return-icon.cjs +15 -0
- package/dist/cjs/components/layout/components/search/keyboard-shift-icon.cjs +15 -0
- package/dist/cjs/components/layout/components/search/keyboard.cjs +32 -0
- package/dist/cjs/components/layout/components/search/letter-s-icon.cjs +15 -0
- package/dist/cjs/components/layout/components/search/search-result-item.cjs +69 -0
- package/dist/cjs/components/layout/components/search/search-result.cjs +135 -0
- package/dist/cjs/components/layout/components/sidebar.cjs +54 -0
- package/dist/cjs/components/layout/components/tabs/context-menu.cjs +96 -0
- package/dist/cjs/components/layout/components/tabs/index.cjs +40 -0
- package/dist/cjs/components/layout/components/tabs/main-content-maximum.cjs +23 -0
- package/dist/cjs/components/layout/components/tabs/reload.cjs +21 -0
- package/dist/cjs/components/layout/components/tabs/tab-item.cjs +84 -0
- package/dist/cjs/components/layout/components/tabs/tab-list.cjs +91 -0
- package/dist/cjs/components/layout/components/tabs/tabs-container.cjs +85 -0
- package/dist/cjs/components/layout/components/theme-config/color-scheme-switcher.cjs +49 -0
- package/dist/cjs/components/layout/components/theme-config/color-scheme.cjs +57 -0
- package/dist/cjs/components/layout/components/theme-config/config-item.cjs +27 -0
- package/dist/cjs/components/layout/components/theme-config/index.cjs +59 -0
- package/dist/cjs/components/layout/components/theme-config/menu-layout-card.cjs +75 -0
- package/dist/cjs/components/layout/components/theme-config/menu-layout.cjs +33 -0
- package/dist/cjs/components/layout/components/theme-config/operations.cjs +22 -0
- package/dist/cjs/components/layout/components/theme-config/theme-color-picker.cjs +33 -0
- package/dist/cjs/components/layout/components/theme-config/theme-colors.cjs +29 -0
- package/dist/cjs/components/layout/hooks/index.cjs +14 -0
- package/dist/cjs/components/layout/hooks/use-color-scheme-updater.cjs +72 -0
- package/dist/cjs/components/layout/hooks/use-menu-navigate.cjs +29 -0
- package/dist/cjs/components/layout/hooks/use-tab-navigate.cjs +39 -0
- package/dist/cjs/components/layout/index.cjs +81 -0
- package/dist/cjs/components/layout/props.cjs +3 -0
- package/dist/cjs/components/layout/store.cjs +23 -0
- package/dist/cjs/components/layout/styles.cjs +16 -0
- package/dist/cjs/components/login/icon-login.cjs +149 -0
- package/dist/cjs/components/login/index.cjs +162 -0
- package/dist/cjs/components/login/payload.cjs +3 -0
- package/dist/cjs/components/login/props.cjs +3 -0
- package/dist/cjs/components/login/styles.cjs +97 -0
- package/dist/cjs/components/login/welcome-messages.cjs +135 -0
- package/dist/cjs/components/logo-icon/index.cjs +22 -0
- package/dist/cjs/components/logo-icon/props.cjs +3 -0
- package/dist/cjs/components/n-progress/components/bar.cjs +53 -0
- package/dist/cjs/components/n-progress/components/container.cjs +25 -0
- package/dist/cjs/components/n-progress/components/index.cjs +12 -0
- package/dist/cjs/components/n-progress/event.cjs +10 -0
- package/dist/cjs/components/n-progress/index.cjs +34 -0
- package/dist/cjs/components/not-found/index.cjs +47 -0
- package/dist/cjs/components/not-found/not-found-icon.cjs +205 -0
- package/dist/cjs/components/page/index.cjs +58 -0
- package/dist/cjs/components/page/props.cjs +3 -0
- package/dist/cjs/components/page/scroll-content.cjs +65 -0
- package/dist/cjs/components/page/styles.cjs +86 -0
- package/dist/cjs/components/page/use-page-key.cjs +22 -0
- package/dist/cjs/components/page/viewport-context.cjs +19 -0
- package/dist/cjs/components/pro-search/components/advanced-search-toggler.cjs +23 -0
- package/dist/cjs/components/pro-search/components/advanced-search.cjs +30 -0
- package/dist/cjs/components/pro-search/components/index.cjs +14 -0
- package/dist/cjs/components/pro-search/components/search-actions.cjs +36 -0
- package/dist/cjs/components/pro-search/index.cjs +70 -0
- package/dist/cjs/components/pro-search/styles.cjs +65 -0
- package/dist/cjs/components/pro-table/components/index.cjs +17 -0
- package/dist/cjs/components/pro-table/components/operation-button-group.cjs +22 -0
- package/dist/cjs/components/pro-table/components/ref.cjs +24 -0
- package/dist/cjs/components/pro-table/components/table-subscriber.cjs +25 -0
- package/dist/cjs/components/pro-table/components/table-summary.cjs +15 -0
- package/dist/cjs/components/pro-table/components/table-title.cjs +15 -0
- package/dist/cjs/components/pro-table/components/table.cjs +132 -0
- package/dist/cjs/components/pro-table/context.cjs +15 -0
- package/dist/cjs/components/pro-table/event.cjs +12 -0
- package/dist/cjs/components/pro-table/hooks/index.cjs +12 -0
- package/dist/cjs/components/pro-table/hooks/use-row-selection.cjs +43 -0
- package/dist/cjs/components/pro-table/hooks/use-table-columns.cjs +60 -0
- package/dist/cjs/components/pro-table/index.cjs +53 -0
- package/dist/cjs/components/pro-table/store.cjs +40 -0
- package/dist/cjs/components/router-provider/context.cjs +15 -0
- package/dist/cjs/components/router-provider/index.cjs +29 -0
- package/dist/cjs/components/router-provider/props.cjs +3 -0
- package/dist/cjs/components/theme-config-provider/global-style.cjs +20 -0
- package/dist/cjs/components/theme-config-provider/index.cjs +19 -0
- package/dist/cjs/components/theme-config-provider/use-color-mode-effect.cjs +35 -0
- package/dist/cjs/components/theme-config-provider/use-theme-config.cjs +73 -0
- package/dist/cjs/constants/event.cjs +8 -0
- package/dist/cjs/constants/index.cjs +23 -0
- package/dist/cjs/constants/router.cjs +18 -0
- package/dist/cjs/constants/storage.cjs +10 -0
- package/dist/cjs/constants/symbols.cjs +10 -0
- package/dist/cjs/helpers/api.cjs +50 -0
- package/dist/cjs/helpers/app-version.cjs +227 -0
- package/dist/cjs/helpers/app.cjs +37 -0
- package/dist/cjs/helpers/auth.cjs +24 -0
- package/dist/cjs/helpers/event.cjs +24 -0
- package/dist/cjs/helpers/index.cjs +25 -0
- package/dist/cjs/helpers/query.cjs +27 -0
- package/dist/cjs/helpers/router.cjs +110 -0
- package/dist/cjs/hooks/index.cjs +10 -0
- package/dist/cjs/hooks/use-route-full-path.cjs +32 -0
- package/dist/cjs/index.cjs +83 -0
- package/dist/cjs/routes/access-denied.cjs +31 -0
- package/dist/cjs/routes/index.cjs +16 -0
- package/dist/cjs/routes/layout.cjs +140 -0
- package/dist/cjs/routes/login.cjs +41 -0
- package/dist/cjs/routes/root.cjs +35 -0
- package/dist/cjs/stores/app.cjs +25 -0
- package/dist/cjs/stores/index.cjs +14 -0
- package/dist/cjs/stores/tab.cjs +101 -0
- package/dist/cjs/stores/theme.cjs +32 -0
- package/dist/es/components/access-denied/access-denied-icon.js +206 -0
- package/dist/es/components/access-denied/index.js +43 -0
- package/dist/es/components/app/index.js +43 -0
- package/dist/es/components/app/props.js +1 -0
- package/dist/es/components/base-layout/index.js +41 -0
- package/dist/es/components/base-layout/props.js +1 -0
- package/dist/es/components/base-layout/styles.js +47 -0
- package/dist/es/components/base-layout/use-base-layout.js +37 -0
- package/dist/es/components/crud/components/action-button-group.js +16 -0
- package/dist/es/components/crud/components/index.js +7 -0
- package/dist/es/components/crud/components/main.js +53 -0
- package/dist/es/components/crud/components/mutation-holder.js +36 -0
- package/dist/es/components/crud/components/operation-button-group.js +18 -0
- package/dist/es/components/crud/components/scene-form.js +80 -0
- package/dist/es/components/crud/components/selection-indicator.js +79 -0
- package/dist/es/components/crud/components/toolbar-actions.js +15 -0
- package/dist/es/components/crud/components/toolbar.js +34 -0
- package/dist/es/components/crud/event.js +8 -0
- package/dist/es/components/crud/helpers.js +22 -0
- package/dist/es/components/crud/hooks/index.js +4 -0
- package/dist/es/components/crud/hooks/use-query-observer.js +33 -0
- package/dist/es/components/crud/hooks/use-search-values.js +8 -0
- package/dist/es/components/crud/hooks/use-selected-rows.js +8 -0
- package/dist/es/components/crud/index.js +41 -0
- package/dist/es/components/crud/props.js +1 -0
- package/dist/es/components/crud/store.js +87 -0
- package/dist/es/components/crud/styles.js +28 -0
- package/dist/es/components/crud-page/index.js +15 -0
- package/dist/es/components/crud-page/props.js +1 -0
- package/dist/es/components/error/error-icon.js +175 -0
- package/dist/es/components/error/index.js +65 -0
- package/dist/es/components/flex-card/index.js +14 -0
- package/dist/es/components/flex-card/props.js +1 -0
- package/dist/es/components/flex-card/styles.js +22 -0
- package/dist/es/components/form-drawer/components/form-actions.js +34 -0
- package/dist/es/components/form-drawer/components/index.js +2 -0
- package/dist/es/components/form-drawer/index.js +108 -0
- package/dist/es/components/form-modal/components/form-actions.js +34 -0
- package/dist/es/components/form-modal/components/index.js +2 -0
- package/dist/es/components/form-modal/index.js +84 -0
- package/dist/es/components/index.js +20 -0
- package/dist/es/components/layout/components/footer.js +23 -0
- package/dist/es/components/layout/components/header/boy-icon.js +16 -0
- package/dist/es/components/layout/components/header/breadcrumb-navigation.js +86 -0
- package/dist/es/components/layout/components/header/color-scheme.js +36 -0
- package/dist/es/components/layout/components/header/fullscreen.js +19 -0
- package/dist/es/components/layout/components/header/girl-icon.js +17 -0
- package/dist/es/components/layout/components/header/index.js +84 -0
- package/dist/es/components/layout/components/header/menu-burger.js +20 -0
- package/dist/es/components/layout/components/header/menu-fold-left-icon.js +16 -0
- package/dist/es/components/layout/components/header/menu-unfold-left-icon.js +16 -0
- package/dist/es/components/layout/components/header/search.js +18 -0
- package/dist/es/components/layout/components/header/theme-config.js +19 -0
- package/dist/es/components/layout/components/header/user-avatar.js +82 -0
- package/dist/es/components/layout/components/honeycomb-pattern.js +35 -0
- package/dist/es/components/layout/components/index.js +7 -0
- package/dist/es/components/layout/components/logo.js +56 -0
- package/dist/es/components/layout/components/menu.js +91 -0
- package/dist/es/components/layout/components/search/index.js +75 -0
- package/dist/es/components/layout/components/search/keyboard-arrow-down-icon.js +11 -0
- package/dist/es/components/layout/components/search/keyboard-arrow-up-icon.js +11 -0
- package/dist/es/components/layout/components/search/keyboard-control-icon.js +11 -0
- package/dist/es/components/layout/components/search/keyboard-esc-icon.js +11 -0
- package/dist/es/components/layout/components/search/keyboard-help.js +42 -0
- package/dist/es/components/layout/components/search/keyboard-return-icon.js +11 -0
- package/dist/es/components/layout/components/search/keyboard-shift-icon.js +11 -0
- package/dist/es/components/layout/components/search/keyboard.js +28 -0
- package/dist/es/components/layout/components/search/letter-s-icon.js +11 -0
- package/dist/es/components/layout/components/search/search-result-item.js +65 -0
- package/dist/es/components/layout/components/search/search-result.js +131 -0
- package/dist/es/components/layout/components/sidebar.js +50 -0
- package/dist/es/components/layout/components/tabs/context-menu.js +92 -0
- package/dist/es/components/layout/components/tabs/index.js +36 -0
- package/dist/es/components/layout/components/tabs/main-content-maximum.js +19 -0
- package/dist/es/components/layout/components/tabs/reload.js +17 -0
- package/dist/es/components/layout/components/tabs/tab-item.js +80 -0
- package/dist/es/components/layout/components/tabs/tab-list.js +87 -0
- package/dist/es/components/layout/components/tabs/tabs-container.js +81 -0
- package/dist/es/components/layout/components/theme-config/color-scheme-switcher.js +45 -0
- package/dist/es/components/layout/components/theme-config/color-scheme.js +53 -0
- package/dist/es/components/layout/components/theme-config/config-item.js +23 -0
- package/dist/es/components/layout/components/theme-config/index.js +55 -0
- package/dist/es/components/layout/components/theme-config/menu-layout-card.js +71 -0
- package/dist/es/components/layout/components/theme-config/menu-layout.js +29 -0
- package/dist/es/components/layout/components/theme-config/operations.js +18 -0
- package/dist/es/components/layout/components/theme-config/theme-color-picker.js +29 -0
- package/dist/es/components/layout/components/theme-config/theme-colors.js +25 -0
- package/dist/es/components/layout/hooks/index.js +4 -0
- package/dist/es/components/layout/hooks/use-color-scheme-updater.js +68 -0
- package/dist/es/components/layout/hooks/use-menu-navigate.js +25 -0
- package/dist/es/components/layout/hooks/use-tab-navigate.js +35 -0
- package/dist/es/components/layout/index.js +77 -0
- package/dist/es/components/layout/props.js +1 -0
- package/dist/es/components/layout/store.js +18 -0
- package/dist/es/components/layout/styles.js +12 -0
- package/dist/es/components/login/icon-login.js +145 -0
- package/dist/es/components/login/index.js +158 -0
- package/dist/es/components/login/payload.js +1 -0
- package/dist/es/components/login/props.js +1 -0
- package/dist/es/components/login/styles.js +85 -0
- package/dist/es/components/login/welcome-messages.js +130 -0
- package/dist/es/components/logo-icon/index.js +18 -0
- package/dist/es/components/logo-icon/props.js +1 -0
- package/dist/es/components/n-progress/components/bar.js +49 -0
- package/dist/es/components/n-progress/components/container.js +21 -0
- package/dist/es/components/n-progress/components/index.js +3 -0
- package/dist/es/components/n-progress/event.js +6 -0
- package/dist/es/components/n-progress/index.js +29 -0
- package/dist/es/components/not-found/index.js +43 -0
- package/dist/es/components/not-found/not-found-icon.js +201 -0
- package/dist/es/components/page/index.js +53 -0
- package/dist/es/components/page/props.js +1 -0
- package/dist/es/components/page/scroll-content.js +61 -0
- package/dist/es/components/page/styles.js +73 -0
- package/dist/es/components/page/use-page-key.js +18 -0
- package/dist/es/components/page/viewport-context.js +14 -0
- package/dist/es/components/pro-search/components/advanced-search-toggler.js +19 -0
- package/dist/es/components/pro-search/components/advanced-search.js +26 -0
- package/dist/es/components/pro-search/components/index.js +4 -0
- package/dist/es/components/pro-search/components/search-actions.js +32 -0
- package/dist/es/components/pro-search/index.js +66 -0
- package/dist/es/components/pro-search/styles.js +57 -0
- package/dist/es/components/pro-table/components/index.js +5 -0
- package/dist/es/components/pro-table/components/operation-button-group.js +18 -0
- package/dist/es/components/pro-table/components/ref.js +20 -0
- package/dist/es/components/pro-table/components/table-subscriber.js +21 -0
- package/dist/es/components/pro-table/components/table-summary.js +11 -0
- package/dist/es/components/pro-table/components/table-title.js +11 -0
- package/dist/es/components/pro-table/components/table.js +127 -0
- package/dist/es/components/pro-table/context.js +10 -0
- package/dist/es/components/pro-table/event.js +8 -0
- package/dist/es/components/pro-table/hooks/index.js +3 -0
- package/dist/es/components/pro-table/hooks/use-row-selection.js +39 -0
- package/dist/es/components/pro-table/hooks/use-table-columns.js +56 -0
- package/dist/es/components/pro-table/index.js +49 -0
- package/dist/es/components/pro-table/store.js +34 -0
- package/dist/es/components/router-provider/context.js +10 -0
- package/dist/es/components/router-provider/index.js +25 -0
- package/dist/es/components/router-provider/props.js +1 -0
- package/dist/es/components/theme-config-provider/global-style.js +16 -0
- package/dist/es/components/theme-config-provider/index.js +15 -0
- package/dist/es/components/theme-config-provider/use-color-mode-effect.js +31 -0
- package/dist/es/components/theme-config-provider/use-theme-config.js +69 -0
- package/dist/es/constants/event.js +4 -0
- package/dist/es/constants/index.js +5 -0
- package/dist/es/constants/router.js +9 -0
- package/dist/es/constants/storage.js +5 -0
- package/dist/es/constants/symbols.js +5 -0
- package/dist/es/helpers/api.js +46 -0
- package/dist/es/helpers/app-version.js +223 -0
- package/dist/es/helpers/app.js +33 -0
- package/dist/es/helpers/auth.js +20 -0
- package/dist/es/helpers/event.js +18 -0
- package/dist/es/helpers/index.js +8 -0
- package/dist/es/helpers/query.js +22 -0
- package/dist/es/helpers/router.js +106 -0
- package/dist/es/hooks/index.js +2 -0
- package/dist/es/hooks/use-route-full-path.js +28 -0
- package/dist/es/index.js +36 -0
- package/dist/es/routes/access-denied.js +27 -0
- package/dist/es/routes/index.js +5 -0
- package/dist/es/routes/layout.js +136 -0
- package/dist/es/routes/login.js +37 -0
- package/dist/es/routes/root.js +31 -0
- package/dist/es/stores/app.js +21 -0
- package/dist/es/stores/index.js +4 -0
- package/dist/es/stores/tab.js +97 -0
- package/dist/es/stores/theme.js +28 -0
- package/dist/types/components/access-denied/access-denied-icon.d.ts +2 -0
- package/dist/types/components/access-denied/index.d.ts +1 -0
- package/dist/types/components/app/index.d.ts +4 -0
- package/dist/types/components/app/props.d.ts +21 -0
- package/dist/types/components/base-layout/index.d.ts +3 -0
- package/dist/types/components/base-layout/props.d.ts +70 -0
- package/dist/types/components/base-layout/styles.d.ts +8 -0
- package/dist/types/components/base-layout/use-base-layout.d.ts +9 -0
- package/dist/types/components/crud/components/action-button-group.d.ts +8 -0
- package/dist/types/components/crud/components/index.d.ts +6 -0
- package/dist/types/components/crud/components/main.d.ts +6 -0
- package/dist/types/components/crud/components/mutation-holder.d.ts +10 -0
- package/dist/types/components/crud/components/operation-button-group.d.ts +8 -0
- package/dist/types/components/crud/components/scene-form.d.ts +7 -0
- package/dist/types/components/crud/components/selection-indicator.d.ts +6 -0
- package/dist/types/components/crud/components/toolbar-actions.d.ts +6 -0
- package/dist/types/components/crud/components/toolbar.d.ts +8 -0
- package/dist/types/components/crud/event.d.ts +3 -0
- package/dist/types/components/crud/helpers.d.ts +18 -0
- package/dist/types/components/crud/hooks/index.d.ts +3 -0
- package/dist/types/components/crud/hooks/use-query-observer.d.ts +11 -0
- package/dist/types/components/crud/hooks/use-search-values.d.ts +2 -0
- package/dist/types/components/crud/hooks/use-selected-rows.d.ts +2 -0
- package/dist/types/components/crud/index.d.ts +7 -0
- package/dist/types/components/crud/props.d.ts +153 -0
- package/dist/types/components/crud/store.d.ts +145 -0
- package/dist/types/components/crud/styles.d.ts +4 -0
- package/dist/types/components/crud/types.d.ts +48 -0
- package/dist/types/components/crud-page/index.d.ts +3 -0
- package/dist/types/components/crud-page/props.d.ts +20 -0
- package/dist/types/components/error/error-icon.d.ts +2 -0
- package/dist/types/components/error/index.d.ts +2 -0
- package/dist/types/components/error/props.d.ts +6 -0
- package/dist/types/components/flex-card/index.d.ts +3 -0
- package/dist/types/components/flex-card/props.d.ts +3 -0
- package/dist/types/components/flex-card/styles.d.ts +2 -0
- package/dist/types/components/form-drawer/components/form-actions.d.ts +18 -0
- package/dist/types/components/form-drawer/components/index.d.ts +1 -0
- package/dist/types/components/form-drawer/index.d.ts +5 -0
- package/dist/types/components/form-drawer/props.d.ts +70 -0
- package/dist/types/components/form-modal/components/form-actions.d.ts +18 -0
- package/dist/types/components/form-modal/components/index.d.ts +1 -0
- package/dist/types/components/form-modal/index.d.ts +5 -0
- package/dist/types/components/form-modal/props.d.ts +66 -0
- package/dist/types/components/index.d.ts +19 -0
- package/dist/types/components/layout/components/footer.d.ts +1 -0
- package/dist/types/components/layout/components/header/boy-icon.d.ts +2 -0
- package/dist/types/components/layout/components/header/breadcrumb-navigation.d.ts +2 -0
- package/dist/types/components/layout/components/header/color-scheme.d.ts +5 -0
- package/dist/types/components/layout/components/header/fullscreen.d.ts +5 -0
- package/dist/types/components/layout/components/header/girl-icon.d.ts +2 -0
- package/dist/types/components/layout/components/header/index.d.ts +5 -0
- package/dist/types/components/layout/components/header/menu-burger.d.ts +5 -0
- package/dist/types/components/layout/components/header/menu-fold-left-icon.d.ts +2 -0
- package/dist/types/components/layout/components/header/menu-unfold-left-icon.d.ts +2 -0
- package/dist/types/components/layout/components/header/search.d.ts +5 -0
- package/dist/types/components/layout/components/header/theme-config.d.ts +5 -0
- package/dist/types/components/layout/components/header/user-avatar.d.ts +6 -0
- package/dist/types/components/layout/components/honeycomb-pattern.d.ts +1 -0
- package/dist/types/components/layout/components/index.d.ts +6 -0
- package/dist/types/components/layout/components/logo.d.ts +8 -0
- package/dist/types/components/layout/components/menu.d.ts +7 -0
- package/dist/types/components/layout/components/search/index.d.ts +1 -0
- package/dist/types/components/layout/components/search/keyboard-arrow-down-icon.d.ts +2 -0
- package/dist/types/components/layout/components/search/keyboard-arrow-up-icon.d.ts +2 -0
- package/dist/types/components/layout/components/search/keyboard-control-icon.d.ts +2 -0
- package/dist/types/components/layout/components/search/keyboard-esc-icon.d.ts +2 -0
- package/dist/types/components/layout/components/search/keyboard-help.d.ts +1 -0
- package/dist/types/components/layout/components/search/keyboard-return-icon.d.ts +2 -0
- package/dist/types/components/layout/components/search/keyboard-shift-icon.d.ts +2 -0
- package/dist/types/components/layout/components/search/keyboard.d.ts +6 -0
- package/dist/types/components/layout/components/search/letter-s-icon.d.ts +2 -0
- package/dist/types/components/layout/components/search/search-result-item.d.ts +8 -0
- package/dist/types/components/layout/components/search/search-result.d.ts +5 -0
- package/dist/types/components/layout/components/sidebar.d.ts +6 -0
- package/dist/types/components/layout/components/tabs/context-menu.d.ts +6 -0
- package/dist/types/components/layout/components/tabs/index.d.ts +1 -0
- package/dist/types/components/layout/components/tabs/main-content-maximum.d.ts +5 -0
- package/dist/types/components/layout/components/tabs/reload.d.ts +5 -0
- package/dist/types/components/layout/components/tabs/tab-item.d.ts +10 -0
- package/dist/types/components/layout/components/tabs/tab-list.d.ts +1 -0
- package/dist/types/components/layout/components/tabs/tabs-container.d.ts +1 -0
- package/dist/types/components/layout/components/theme-config/color-scheme-switcher.d.ts +1 -0
- package/dist/types/components/layout/components/theme-config/color-scheme.d.ts +1 -0
- package/dist/types/components/layout/components/theme-config/config-item.d.ts +7 -0
- package/dist/types/components/layout/components/theme-config/index.d.ts +1 -0
- package/dist/types/components/layout/components/theme-config/menu-layout-card.d.ts +7 -0
- package/dist/types/components/layout/components/theme-config/menu-layout.d.ts +1 -0
- package/dist/types/components/layout/components/theme-config/operations.d.ts +1 -0
- package/dist/types/components/layout/components/theme-config/theme-color-picker.d.ts +6 -0
- package/dist/types/components/layout/components/theme-config/theme-colors.d.ts +1 -0
- package/dist/types/components/layout/hooks/index.d.ts +3 -0
- package/dist/types/components/layout/hooks/use-color-scheme-updater.d.ts +13 -0
- package/dist/types/components/layout/hooks/use-menu-navigate.d.ts +7 -0
- package/dist/types/components/layout/hooks/use-tab-navigate.d.ts +11 -0
- package/dist/types/components/layout/index.d.ts +3 -0
- package/dist/types/components/layout/props.d.ts +28 -0
- package/dist/types/components/layout/store.d.ts +17 -0
- package/dist/types/components/layout/styles.d.ts +2 -0
- package/dist/types/components/login/icon-login.d.ts +2 -0
- package/dist/types/components/login/index.d.ts +4 -0
- package/dist/types/components/login/payload.d.ts +45 -0
- package/dist/types/components/login/props.d.ts +27 -0
- package/dist/types/components/login/styles.d.ts +10 -0
- package/dist/types/components/login/welcome-messages.d.ts +11 -0
- package/dist/types/components/logo-icon/index.d.ts +3 -0
- package/dist/types/components/logo-icon/props.d.ts +10 -0
- package/dist/types/components/n-progress/components/bar.d.ts +5 -0
- package/dist/types/components/n-progress/components/container.d.ts +7 -0
- package/dist/types/components/n-progress/components/index.d.ts +2 -0
- package/dist/types/components/n-progress/event.d.ts +7 -0
- package/dist/types/components/n-progress/index.d.ts +2 -0
- package/dist/types/components/not-found/index.d.ts +1 -0
- package/dist/types/components/not-found/not-found-icon.d.ts +2 -0
- package/dist/types/components/page/index.d.ts +4 -0
- package/dist/types/components/page/props.d.ts +51 -0
- package/dist/types/components/page/scroll-content.d.ts +8 -0
- package/dist/types/components/page/styles.d.ts +11 -0
- package/dist/types/components/page/use-page-key.d.ts +1 -0
- package/dist/types/components/page/viewport-context.d.ts +7 -0
- package/dist/types/components/pro-search/components/advanced-search-toggler.d.ts +7 -0
- package/dist/types/components/pro-search/components/advanced-search.d.ts +6 -0
- package/dist/types/components/pro-search/components/index.d.ts +3 -0
- package/dist/types/components/pro-search/components/search-actions.d.ts +22 -0
- package/dist/types/components/pro-search/index.d.ts +5 -0
- package/dist/types/components/pro-search/props.d.ts +66 -0
- package/dist/types/components/pro-search/styles.d.ts +6 -0
- package/dist/types/components/pro-table/components/index.d.ts +4 -0
- package/dist/types/components/pro-table/components/operation-button-group.d.ts +7 -0
- package/dist/types/components/pro-table/components/ref.d.ts +3 -0
- package/dist/types/components/pro-table/components/table-subscriber.d.ts +9 -0
- package/dist/types/components/pro-table/components/table-summary.d.ts +7 -0
- package/dist/types/components/pro-table/components/table-title.d.ts +7 -0
- package/dist/types/components/pro-table/components/table.d.ts +6 -0
- package/dist/types/components/pro-table/context.d.ts +3 -0
- package/dist/types/components/pro-table/event.d.ts +16 -0
- package/dist/types/components/pro-table/hooks/index.d.ts +2 -0
- package/dist/types/components/pro-table/hooks/use-row-selection.d.ts +12 -0
- package/dist/types/components/pro-table/hooks/use-table-columns.d.ts +11 -0
- package/dist/types/components/pro-table/index.d.ts +11 -0
- package/dist/types/components/pro-table/props.d.ts +118 -0
- package/dist/types/components/pro-table/store.d.ts +35 -0
- package/dist/types/components/pro-table/types.d.ts +86 -0
- package/dist/types/components/router-provider/context.d.ts +6 -0
- package/dist/types/components/router-provider/index.d.ts +5 -0
- package/dist/types/components/router-provider/props.d.ts +7 -0
- package/dist/types/components/theme-config-provider/global-style.d.ts +2 -0
- package/dist/types/components/theme-config-provider/index.d.ts +2 -0
- package/dist/types/components/theme-config-provider/use-color-mode-effect.d.ts +1 -0
- package/dist/types/components/theme-config-provider/use-theme-config.d.ts +2 -0
- package/dist/types/constants/event.d.ts +4 -0
- package/dist/types/constants/index.d.ts +4 -0
- package/dist/types/constants/router.d.ts +24 -0
- package/dist/types/constants/storage.d.ts +8 -0
- package/dist/types/constants/symbols.d.ts +8 -0
- package/dist/types/helpers/api.d.ts +9 -0
- package/dist/types/helpers/app-version.d.ts +88 -0
- package/dist/types/helpers/app.d.ts +24 -0
- package/dist/types/helpers/auth.d.ts +7 -0
- package/dist/types/helpers/event.d.ts +16 -0
- package/dist/types/helpers/index.d.ts +7 -0
- package/dist/types/helpers/query.d.ts +33 -0
- package/dist/types/helpers/router.d.ts +28 -0
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/use-route-full-path.d.ts +6 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/models/index.d.ts +1 -0
- package/dist/types/routes/access-denied.d.ts +13 -0
- package/dist/types/routes/index.d.ts +4 -0
- package/dist/types/routes/layout.d.ts +25 -0
- package/dist/types/routes/login.d.ts +18 -0
- package/dist/types/routes/root.d.ts +13 -0
- package/dist/types/stores/app.d.ts +38 -0
- package/dist/types/stores/index.d.ts +6 -0
- package/dist/types/stores/tab.d.ts +73 -0
- package/dist/types/stores/theme.d.ts +46 -0
- package/dist/types/types/api.d.ts +67 -0
- package/dist/types/types/common.d.ts +81 -0
- package/dist/types/types/index.d.ts +3 -0
- package/dist/types/types/router.d.ts +9 -0
- package/package.json +60 -44
- package/README.md +0 -25
- package/cjs/api.cjs +0 -2
- package/cjs/app.cjs +0 -2
- package/cjs/components/index.cjs +0 -2
- package/cjs/components/vef-access-denied-page/index.cjs +0 -2
- package/cjs/components/vef-access-denied-page/props.cjs +0 -2
- package/cjs/components/vef-app/index.cjs +0 -2
- package/cjs/components/vef-app/props.cjs +0 -2
- package/cjs/components/vef-dev-assistant/index.cjs +0 -31
- package/cjs/components/vef-dev-assistant/props.cjs +0 -2
- package/cjs/components/vef-error-page/index.cjs +0 -2
- package/cjs/components/vef-error-page/props.cjs +0 -2
- package/cjs/components/vef-login-page/index.cjs +0 -2
- package/cjs/components/vef-login-page/props.cjs +0 -2
- package/cjs/components/vef-not-found-page/index.cjs +0 -2
- package/cjs/components/vef-not-found-page/props.cjs +0 -2
- package/cjs/components/vef-router-provider/index.cjs +0 -2
- package/cjs/components/vef-router-provider/props.cjs +0 -2
- package/cjs/constants.cjs +0 -2
- package/cjs/helper.cjs +0 -2
- package/cjs/index.cjs +0 -2
- package/cjs/router.cjs +0 -2
- package/cjs/routes/access-denied.cjs +0 -2
- package/cjs/routes/index.cjs +0 -2
- package/cjs/routes/layout.cjs +0 -2
- package/cjs/routes/login.cjs +0 -2
- package/cjs/routes/root.cjs +0 -2
- package/cjs/store.cjs +0 -2
- package/esm/api.js +0 -2
- package/esm/app.js +0 -2
- package/esm/components/index.js +0 -2
- package/esm/components/vef-access-denied-page/index.js +0 -2
- package/esm/components/vef-access-denied-page/props.js +0 -2
- package/esm/components/vef-app/index.js +0 -2
- package/esm/components/vef-app/props.js +0 -2
- package/esm/components/vef-dev-assistant/index.js +0 -31
- package/esm/components/vef-dev-assistant/props.js +0 -2
- package/esm/components/vef-error-page/index.js +0 -2
- package/esm/components/vef-error-page/props.js +0 -2
- package/esm/components/vef-login-page/index.js +0 -2
- package/esm/components/vef-login-page/props.js +0 -2
- package/esm/components/vef-not-found-page/index.js +0 -2
- package/esm/components/vef-not-found-page/props.js +0 -2
- package/esm/components/vef-router-provider/index.js +0 -2
- package/esm/components/vef-router-provider/props.js +0 -2
- package/esm/constants.js +0 -2
- package/esm/helper.js +0 -2
- package/esm/index.js +0 -2
- package/esm/router.js +0 -2
- package/esm/routes/access-denied.js +0 -2
- package/esm/routes/index.js +0 -2
- package/esm/routes/layout.js +0 -2
- package/esm/routes/login.js +0 -2
- package/esm/routes/root.js +0 -2
- package/esm/store.js +0 -2
- package/types/api.d.ts +0 -9
- package/types/app.d.ts +0 -15
- package/types/components/index.d.ts +0 -7
- package/types/components/vef-access-denied-page/index.d.ts +0 -4
- package/types/components/vef-access-denied-page/props.d.ts +0 -5
- package/types/components/vef-app/index.d.ts +0 -4
- package/types/components/vef-app/props.d.ts +0 -7
- package/types/components/vef-dev-assistant/index.d.ts +0 -4
- package/types/components/vef-dev-assistant/props.d.ts +0 -5
- package/types/components/vef-error-page/index.d.ts +0 -4
- package/types/components/vef-error-page/props.d.ts +0 -6
- package/types/components/vef-login-page/index.d.ts +0 -4
- package/types/components/vef-login-page/props.d.ts +0 -7
- package/types/components/vef-not-found-page/index.d.ts +0 -4
- package/types/components/vef-not-found-page/props.d.ts +0 -6
- package/types/components/vef-router-provider/index.d.ts +0 -4
- package/types/components/vef-router-provider/props.d.ts +0 -16
- package/types/constants.d.ts +0 -24
- package/types/helper.d.ts +0 -9
- package/types/index.d.ts +0 -8
- package/types/router.d.ts +0 -23
- package/types/routes/access-denied.d.ts +0 -9
- package/types/routes/index.d.ts +0 -4
- package/types/routes/layout.d.ts +0 -33
- package/types/routes/login.d.ts +0 -27
- package/types/routes/root.d.ts +0 -7
- package/types/store.d.ts +0 -34
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
7
|
+
const core = require('@vef-framework/core');
|
|
8
|
+
require('../../../index.cjs');
|
|
9
|
+
const react = require('react');
|
|
10
|
+
const index = require('../../flex-card/index.cjs');
|
|
11
|
+
require('../hooks/index.cjs');
|
|
12
|
+
const store = require('../store.cjs');
|
|
13
|
+
const styles = require('../styles.cjs');
|
|
14
|
+
const toolbar = require('./toolbar.cjs');
|
|
15
|
+
const useQueryObserver = require('../hooks/use-query-observer.cjs');
|
|
16
|
+
const index$1 = require('../../pro-table/index.cjs');
|
|
17
|
+
|
|
18
|
+
const Main = react.memo(({
|
|
19
|
+
tableColumns,
|
|
20
|
+
toolbarActions,
|
|
21
|
+
queryParams,
|
|
22
|
+
basicSearch,
|
|
23
|
+
advancedSearch,
|
|
24
|
+
...restProps
|
|
25
|
+
}) => {
|
|
26
|
+
const {
|
|
27
|
+
searchValues,
|
|
28
|
+
selectedRowKeys,
|
|
29
|
+
setSelectedRowKeys,
|
|
30
|
+
setSelectedRows
|
|
31
|
+
} = store.useCrudStore(core.useShallow((state) => {
|
|
32
|
+
const {
|
|
33
|
+
searchValues: searchValues2,
|
|
34
|
+
selectedRowKeys: selectedRowKeys2,
|
|
35
|
+
setSelectedRowKeys: setSelectedRowKeys2,
|
|
36
|
+
setSelectedRows: setSelectedRows2
|
|
37
|
+
} = state;
|
|
38
|
+
return {
|
|
39
|
+
searchValues: searchValues2,
|
|
40
|
+
selectedRowKeys: selectedRowKeys2,
|
|
41
|
+
setSelectedRowKeys: setSelectedRowKeys2,
|
|
42
|
+
setSelectedRows: setSelectedRows2
|
|
43
|
+
};
|
|
44
|
+
}));
|
|
45
|
+
const tableRef = useQueryObserver.useQueryObserver();
|
|
46
|
+
const mergedParams = {
|
|
47
|
+
...searchValues,
|
|
48
|
+
...queryParams
|
|
49
|
+
};
|
|
50
|
+
const handleSelectedRowKeysChange = (keys, rows) => {
|
|
51
|
+
setSelectedRowKeys(keys);
|
|
52
|
+
setSelectedRows(rows);
|
|
53
|
+
};
|
|
54
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index.FlexCard, { css: styles.main, title: /* @__PURE__ */ jsxRuntime.jsx(toolbar.Toolbar, { advancedSearch, basicSearch, toolbarActions }), children: /* @__PURE__ */ jsxRuntime.jsx(index$1.ProTable, { ref: tableRef, columns: tableColumns, queryParams: mergedParams, selectedRowKeys, onSelectedRowKeysChange: handleSelectedRowKeysChange, ...restProps }) });
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
exports.Main = Main;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const core = require('@vef-framework/core');
|
|
7
|
+
const shared = require('@vef-framework/shared');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const store = require('../store.cjs');
|
|
10
|
+
|
|
11
|
+
const MutationHolder = react.memo(({
|
|
12
|
+
mutationMeta,
|
|
13
|
+
deleteMutationFn,
|
|
14
|
+
deleteManyMutationFn
|
|
15
|
+
}) => {
|
|
16
|
+
const crudStore = store.useCrudStoreApi();
|
|
17
|
+
const {
|
|
18
|
+
mutateAsync: deleteMutate
|
|
19
|
+
} = core.useMutation({
|
|
20
|
+
mutationKey: [deleteMutationFn?.key],
|
|
21
|
+
mutationFn: deleteMutationFn,
|
|
22
|
+
meta: shared.isFunction(mutationMeta) && deleteMutationFn ? mutationMeta(deleteMutationFn.key) : void 0
|
|
23
|
+
});
|
|
24
|
+
const {
|
|
25
|
+
mutateAsync: deleteManyMutate
|
|
26
|
+
} = core.useMutation({
|
|
27
|
+
mutationKey: [deleteManyMutationFn?.key],
|
|
28
|
+
mutationFn: deleteManyMutationFn,
|
|
29
|
+
meta: shared.isFunction(mutationMeta) && deleteManyMutationFn ? mutationMeta(deleteManyMutationFn.key) : void 0
|
|
30
|
+
});
|
|
31
|
+
react.useEffect(() => {
|
|
32
|
+
crudStore.setState({
|
|
33
|
+
delete: deleteMutate,
|
|
34
|
+
deleteMany: deleteManyMutate
|
|
35
|
+
});
|
|
36
|
+
}, [crudStore, deleteMutate, deleteManyMutate]);
|
|
37
|
+
return null;
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
exports.MutationHolder = MutationHolder;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
7
|
+
const components = require('@vef-framework/components');
|
|
8
|
+
const core = require('@vef-framework/core');
|
|
9
|
+
const shared = require('@vef-framework/shared');
|
|
10
|
+
const react = require('react');
|
|
11
|
+
const store = require('../store.cjs');
|
|
12
|
+
|
|
13
|
+
const OperationButtonGroup = react.memo(({
|
|
14
|
+
selector,
|
|
15
|
+
children
|
|
16
|
+
}) => {
|
|
17
|
+
const selected = store.useCrudStore(core.useShallow((state) => selector ? selector(state) : state));
|
|
18
|
+
return /* @__PURE__ */ jsxRuntime.jsx(components.Group, { justify: "center", children: shared.isFunction(children) ? children(selected) : children });
|
|
19
|
+
});
|
|
20
|
+
OperationButtonGroup.displayName = "OperationButtonGroup";
|
|
21
|
+
|
|
22
|
+
exports.OperationButtonGroup = OperationButtonGroup;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
7
|
+
const components = require('@vef-framework/components');
|
|
8
|
+
const core = require('@vef-framework/core');
|
|
9
|
+
const hooks = require('@vef-framework/hooks');
|
|
10
|
+
const shared = require('@vef-framework/shared');
|
|
11
|
+
const react = require('react');
|
|
12
|
+
const index = require('../../form-drawer/index.cjs');
|
|
13
|
+
const index$1 = require('../../form-modal/index.cjs');
|
|
14
|
+
const store = require('../store.cjs');
|
|
15
|
+
|
|
16
|
+
const SceneForm = react.memo(({
|
|
17
|
+
renderForm,
|
|
18
|
+
formMutationFns,
|
|
19
|
+
beforeFormSubmit,
|
|
20
|
+
afterFormSubmit,
|
|
21
|
+
mutationMeta
|
|
22
|
+
}) => {
|
|
23
|
+
const {
|
|
24
|
+
formVisible,
|
|
25
|
+
closeForm,
|
|
26
|
+
formScene,
|
|
27
|
+
defaultFormValues,
|
|
28
|
+
formTitle,
|
|
29
|
+
formWidth,
|
|
30
|
+
formMode,
|
|
31
|
+
drawerConfig,
|
|
32
|
+
refetchQuery
|
|
33
|
+
} = store.useCrudStore(core.useShallow((state) => {
|
|
34
|
+
const {
|
|
35
|
+
formVisible: formVisible2,
|
|
36
|
+
closeForm: closeForm2,
|
|
37
|
+
formScene: formScene2,
|
|
38
|
+
defaultFormValues: defaultFormValues2,
|
|
39
|
+
formTitle: formTitle2,
|
|
40
|
+
formWidth: formWidth2,
|
|
41
|
+
formMode: formMode2,
|
|
42
|
+
drawerConfig: drawerConfig2,
|
|
43
|
+
refetchQuery: refetchQuery2
|
|
44
|
+
} = state;
|
|
45
|
+
return {
|
|
46
|
+
formVisible: formVisible2,
|
|
47
|
+
closeForm: closeForm2,
|
|
48
|
+
formScene: formScene2,
|
|
49
|
+
defaultFormValues: defaultFormValues2,
|
|
50
|
+
formTitle: formTitle2,
|
|
51
|
+
formWidth: formWidth2,
|
|
52
|
+
formMode: formMode2,
|
|
53
|
+
drawerConfig: drawerConfig2,
|
|
54
|
+
refetchQuery: refetchQuery2
|
|
55
|
+
};
|
|
56
|
+
}));
|
|
57
|
+
const mutationFn = formMutationFns?.[formScene];
|
|
58
|
+
const {
|
|
59
|
+
current: currentBreakpoint
|
|
60
|
+
} = hooks.useBreakpoints(components.breakpoints, {
|
|
61
|
+
initialBreakpoint: "xxs"
|
|
62
|
+
});
|
|
63
|
+
const resolvedWidth = shared.isPlainObject(formWidth) ? components.resolveBreakpointValue(formWidth, currentBreakpoint) : formWidth;
|
|
64
|
+
const formProps = {
|
|
65
|
+
open: formVisible,
|
|
66
|
+
title: formTitle,
|
|
67
|
+
defaultValues: defaultFormValues,
|
|
68
|
+
mutationFn,
|
|
69
|
+
mutationMeta: shared.isFunction(mutationMeta) && mutationFn ? mutationMeta(mutationFn.key) : void 0,
|
|
70
|
+
beforeSubmit: shared.isFunction(beforeFormSubmit) ? (formValues) => beforeFormSubmit(formScene, formValues) : void 0,
|
|
71
|
+
afterSubmit: async (formValues, data) => {
|
|
72
|
+
await afterFormSubmit?.(formScene, formValues, data);
|
|
73
|
+
refetchQuery();
|
|
74
|
+
},
|
|
75
|
+
onClose: closeForm,
|
|
76
|
+
children: shared.isFunction(renderForm) ? renderForm(formScene) : void 0
|
|
77
|
+
};
|
|
78
|
+
if (formMode === "drawer") {
|
|
79
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index.FormDrawer, { ...formProps, placement: drawerConfig?.placement, width: resolvedWidth });
|
|
80
|
+
}
|
|
81
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index$1.FormModal, { ...formProps, width: resolvedWidth });
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
exports.SceneForm = SceneForm;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
7
|
+
const react = require('@emotion/react');
|
|
8
|
+
const components = require('@vef-framework/components');
|
|
9
|
+
const core = require('@vef-framework/core');
|
|
10
|
+
const react$1 = require('react');
|
|
11
|
+
const store = require('../store.cjs');
|
|
12
|
+
|
|
13
|
+
const selectionWrapperStyle = /* @__PURE__ */ react.css({
|
|
14
|
+
display: "flex",
|
|
15
|
+
alignItems: "center",
|
|
16
|
+
gap: components.globalCssVars.sizeSm,
|
|
17
|
+
backgroundColor: components.globalCssVars.colorFillQuaternary,
|
|
18
|
+
paddingInline: components.globalCssVars.sizeSm,
|
|
19
|
+
borderRadius: components.globalCssVars.borderRadius,
|
|
20
|
+
fontWeight: "normal",
|
|
21
|
+
"> .vef-btn-variant-link": {
|
|
22
|
+
padding: 0
|
|
23
|
+
}
|
|
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AgICBjc3M9e3NlbGVjdGlvbldyYXBwZXJTdHlsZX1cbiAgICAgICAgICAgIGV4aXQ9XCJoaWRkZW5cIlxuICAgICAgICAgICAgaW5pdGlhbD1cImhpZGRlblwiXG4gICAgICAgICAgICB0cmFuc2l0aW9uPXt0cmFuc2l0aW9ufVxuICAgICAgICAgICAgdmFyaWFudHM9e3ZhcmlhbnRzfVxuICAgICAgICAgID5cbiAgICAgICAgICAgIDxUZXh0IHR5cGU9XCJzZWNvbmRhcnlcIj5cbiAgICAgICAgICAgICAg5bey6YCJ5oupXG4gICAgICAgICAgICAgIHtcIiBcIn1cbiAgICAgICAgICAgICAgPHNwYW4gY3NzPXtzZWxlY3RlZENvdW50U3R5bGV9PntzZWxlY3RlZFJvd0tleXMubGVuZ3RofTwvc3Bhbj5cbiAgICAgICAgICAgICAge1wiIFwifVxuICAgICAgICAgICAgICDpoblcbiAgICAgICAgICAgICAge3JlbmRlclNlbGVjdGlvblN1bW1hcnkoKX1cbiAgICAgICAgICAgIDwvVGV4dD5cblxuICAgICAgICAgICAgPEJ1dHRvblxuICAgICAgICAgICAgICB0eXBlPVwibGlua1wiXG4gICAgICAgICAgICAgIG9uQ2xpY2s9e2hhbmRsZUNsZWFyU2VsZWN0aW9ufVxuICAgICAgICAgICAgPlxuICAgICAgICAgICAgICDlj5bmtojpgInmi6lcbiAgICAgICAgICAgIDwvQnV0dG9uPlxuICAgICAgICAgIDwvbW90aW9uLmRpdj5cbiAgICAgICAgKVxuICAgICAgfVxuICAgIDwvQW5pbWF0ZVByZXNlbmNlPlxuICApO1xufSk7XG4iXX0= */");
|
|
25
|
+
const selectedCountStyle = /* @__PURE__ */ react.css({
|
|
26
|
+
color: components.globalCssVars.colorPrimary,
|
|
27
|
+
fontWeight: components.globalCssVars.fontWeightStrong
|
|
28
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc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kZW5cIlxuICAgICAgICAgICAgdHJhbnNpdGlvbj17dHJhbnNpdGlvbn1cbiAgICAgICAgICAgIHZhcmlhbnRzPXt2YXJpYW50c31cbiAgICAgICAgICA+XG4gICAgICAgICAgICA8VGV4dCB0eXBlPVwic2Vjb25kYXJ5XCI+XG4gICAgICAgICAgICAgIOW3sumAieaLqVxuICAgICAgICAgICAgICB7XCIgXCJ9XG4gICAgICAgICAgICAgIDxzcGFuIGNzcz17c2VsZWN0ZWRDb3VudFN0eWxlfT57c2VsZWN0ZWRSb3dLZXlzLmxlbmd0aH08L3NwYW4+XG4gICAgICAgICAgICAgIHtcIiBcIn1cbiAgICAgICAgICAgICAg6aG5XG4gICAgICAgICAgICAgIHtyZW5kZXJTZWxlY3Rpb25TdW1tYXJ5KCl9XG4gICAgICAgICAgICA8L1RleHQ+XG5cbiAgICAgICAgICAgIDxCdXR0b25cbiAgICAgICAgICAgICAgdHlwZT1cImxpbmtcIlxuICAgICAgICAgICAgICBvbkNsaWNrPXtoYW5kbGVDbGVhclNlbGVjdGlvbn1cbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAg5Y+W5raI6YCJ5oupXG4gICAgICAgICAgICA8L0J1dHRvbj5cbiAgICAgICAgICA8L21vdGlvbi5kaXY+XG4gICAgICAgIClcbiAgICAgIH1cbiAgICA8L0FuaW1hdGVQcmVzZW5jZT5cbiAgKTtcbn0pO1xuIl19 */");
|
|
29
|
+
const variants = {
|
|
30
|
+
hidden: {
|
|
31
|
+
opacity: 0,
|
|
32
|
+
x: 10
|
|
33
|
+
},
|
|
34
|
+
visible: {
|
|
35
|
+
opacity: 1,
|
|
36
|
+
x: 0
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const transition = {
|
|
40
|
+
duration: 0.2,
|
|
41
|
+
ease: "easeOut"
|
|
42
|
+
};
|
|
43
|
+
const SelectionIndicator = react$1.memo(({
|
|
44
|
+
selectionSummary
|
|
45
|
+
}) => {
|
|
46
|
+
const {
|
|
47
|
+
selectedRowKeys,
|
|
48
|
+
setSelectedRows,
|
|
49
|
+
setSelectedRowKeys
|
|
50
|
+
} = store.useCrudStore(core.useShallow((state) => {
|
|
51
|
+
return {
|
|
52
|
+
selectedRowKeys: state.selectedRowKeys,
|
|
53
|
+
setSelectedRows: state.setSelectedRows,
|
|
54
|
+
setSelectedRowKeys: state.setSelectedRowKeys
|
|
55
|
+
};
|
|
56
|
+
}));
|
|
57
|
+
const renderSelectionSummary = () => {
|
|
58
|
+
if (selectionSummary) {
|
|
59
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
60
|
+
" ",
|
|
61
|
+
selectionSummary(selectedRowKeys)
|
|
62
|
+
] });
|
|
63
|
+
}
|
|
64
|
+
return null;
|
|
65
|
+
};
|
|
66
|
+
const handleClearSelection = () => {
|
|
67
|
+
setSelectedRowKeys([]);
|
|
68
|
+
setSelectedRows([]);
|
|
69
|
+
};
|
|
70
|
+
return /* @__PURE__ */ jsxRuntime.jsx(core.AnimatePresence, { children: selectedRowKeys.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(core.motion.div, { animate: "visible", css: selectionWrapperStyle, exit: "hidden", initial: "hidden", transition, variants, children: [
|
|
71
|
+
/* @__PURE__ */ jsxRuntime.jsxs(components.Text, { type: "secondary", children: [
|
|
72
|
+
"已选择",
|
|
73
|
+
" ",
|
|
74
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { css: selectedCountStyle, children: selectedRowKeys.length }),
|
|
75
|
+
" ",
|
|
76
|
+
"项",
|
|
77
|
+
renderSelectionSummary()
|
|
78
|
+
] }),
|
|
79
|
+
/* @__PURE__ */ jsxRuntime.jsx(components.Button, { type: "link", onClick: handleClearSelection, children: "取消选择" })
|
|
80
|
+
] }) });
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
exports.SelectionIndicator = SelectionIndicator;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
7
|
+
const components = require('@vef-framework/components');
|
|
8
|
+
const selectionIndicator = require('./selection-indicator.cjs');
|
|
9
|
+
|
|
10
|
+
function ToolbarActions({
|
|
11
|
+
toolbarActions
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(components.Group, { gap: components.globalCssVars.spacingSm, children: [
|
|
14
|
+
toolbarActions,
|
|
15
|
+
/* @__PURE__ */ jsxRuntime.jsx(selectionIndicator.SelectionIndicator, {})
|
|
16
|
+
] });
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
exports.ToolbarActions = ToolbarActions;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
7
|
+
const core = require('@vef-framework/core');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const index = require('../../pro-search/index.cjs');
|
|
10
|
+
const store = require('../store.cjs');
|
|
11
|
+
const styles = require('../styles.cjs');
|
|
12
|
+
const toolbarActions = require('./toolbar-actions.cjs');
|
|
13
|
+
|
|
14
|
+
const Toolbar = react.memo(({
|
|
15
|
+
basicSearch,
|
|
16
|
+
advancedSearch,
|
|
17
|
+
toolbarActions: toolbarActions$1
|
|
18
|
+
}) => {
|
|
19
|
+
const {
|
|
20
|
+
defaultSearchValues,
|
|
21
|
+
setSearchValues,
|
|
22
|
+
isQueryFetching
|
|
23
|
+
} = store.useCrudStore(core.useShallow((state) => {
|
|
24
|
+
const {
|
|
25
|
+
defaultSearchValues: defaultSearchValues2,
|
|
26
|
+
setSearchValues: setSearchValues2,
|
|
27
|
+
isQueryFetching: isQueryFetching2
|
|
28
|
+
} = state;
|
|
29
|
+
return {
|
|
30
|
+
defaultSearchValues: defaultSearchValues2,
|
|
31
|
+
setSearchValues: setSearchValues2,
|
|
32
|
+
isQueryFetching: isQueryFetching2
|
|
33
|
+
};
|
|
34
|
+
}));
|
|
35
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index.ProSearch, { advancedSearch, basicSearch, css: styles.toolbar, defaultValues: defaultSearchValues, loading: isQueryFetching, extra: /* @__PURE__ */ jsxRuntime.jsx(toolbarActions.ToolbarActions, { toolbarActions: toolbarActions$1 }), onReset: setSearchValues, onSearch: setSearchValues });
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
exports.Toolbar = Toolbar;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const shared = require('@vef-framework/shared');
|
|
7
|
+
|
|
8
|
+
function createEventEmitter() {
|
|
9
|
+
return new shared.EventEmitter();
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
exports.createEventEmitter = createEventEmitter;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
require('./components/index.cjs');
|
|
7
|
+
require('./hooks/index.cjs');
|
|
8
|
+
const store = require('./store.cjs');
|
|
9
|
+
const actionButtonGroup = require('./components/action-button-group.cjs');
|
|
10
|
+
const operationButtonGroup = require('./components/operation-button-group.cjs');
|
|
11
|
+
const useSelectedRows = require('./hooks/use-selected-rows.cjs');
|
|
12
|
+
const useSearchValues = require('./hooks/use-search-values.cjs');
|
|
13
|
+
|
|
14
|
+
function createCrudKit() {
|
|
15
|
+
return {
|
|
16
|
+
// Hooks
|
|
17
|
+
useCrudStore: store.useCrudStore,
|
|
18
|
+
useSearchValues: useSearchValues.useSearchValues,
|
|
19
|
+
useSelectedRows: useSelectedRows.useSelectedRows,
|
|
20
|
+
// Components
|
|
21
|
+
OperationButtonGroup: operationButtonGroup.OperationButtonGroup,
|
|
22
|
+
ActionButtonGroup: actionButtonGroup.ActionButtonGroup
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
exports.createCrudKit = createCrudKit;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const useQueryObserver = require('./use-query-observer.cjs');
|
|
7
|
+
const useSearchValues = require('./use-search-values.cjs');
|
|
8
|
+
const useSelectedRows = require('./use-selected-rows.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.useQueryObserver = useQueryObserver.useQueryObserver;
|
|
13
|
+
exports.useSearchValues = useSearchValues.useSearchValues;
|
|
14
|
+
exports.useSelectedRows = useSelectedRows.useSelectedRows;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const react = require('react');
|
|
7
|
+
const store = require('../store.cjs');
|
|
8
|
+
|
|
9
|
+
function useQueryObserver() {
|
|
10
|
+
const tableRef = react.useRef(null);
|
|
11
|
+
const store$1 = store.useCrudStoreApi();
|
|
12
|
+
react.useEffect(() => {
|
|
13
|
+
const ref = tableRef.current;
|
|
14
|
+
if (ref) {
|
|
15
|
+
store$1.setState((state) => {
|
|
16
|
+
state.refetchQuery = ref.refetch;
|
|
17
|
+
});
|
|
18
|
+
const unsubscribeLoading = ref.onLoading(() => {
|
|
19
|
+
store$1.setState((state) => {
|
|
20
|
+
state.isQueryFetching = true;
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
const unsubscribeLoaded = ref.onLoaded(() => {
|
|
24
|
+
store$1.setState((state) => {
|
|
25
|
+
state.isQueryFetching = false;
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
return () => {
|
|
29
|
+
unsubscribeLoading();
|
|
30
|
+
unsubscribeLoaded();
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
}, [store$1]);
|
|
34
|
+
return tableRef;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.useQueryObserver = useQueryObserver;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const store = require('../store.cjs');
|
|
7
|
+
|
|
8
|
+
function useSearchValues() {
|
|
9
|
+
return store.useCrudStore((state) => state.searchValues);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
exports.useSearchValues = useSearchValues;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const store = require('../store.cjs');
|
|
7
|
+
|
|
8
|
+
function useSelectedRows() {
|
|
9
|
+
return store.useCrudStore((state) => state.selectedRows);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
exports.useSelectedRows = useSelectedRows;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
7
|
+
const react = require('react');
|
|
8
|
+
require('./components/index.cjs');
|
|
9
|
+
const store = require('./store.cjs');
|
|
10
|
+
const helpers = require('./helpers.cjs');
|
|
11
|
+
require('./props.cjs');
|
|
12
|
+
const main = require('./components/main.cjs');
|
|
13
|
+
const sceneForm = require('./components/scene-form.cjs');
|
|
14
|
+
const mutationHolder = require('./components/mutation-holder.cjs');
|
|
15
|
+
|
|
16
|
+
function Crud({
|
|
17
|
+
defaultSearchValues,
|
|
18
|
+
advancedSearch,
|
|
19
|
+
sceneDefaultFormValues,
|
|
20
|
+
renderForm,
|
|
21
|
+
formMutationFns,
|
|
22
|
+
beforeFormSubmit,
|
|
23
|
+
afterFormSubmit,
|
|
24
|
+
deleteMutationFn,
|
|
25
|
+
deleteManyMutationFn,
|
|
26
|
+
mutationMeta,
|
|
27
|
+
rowSelection,
|
|
28
|
+
...bodyProps
|
|
29
|
+
}) {
|
|
30
|
+
const initialState = react.useMemo(() => {
|
|
31
|
+
const defaultSelectedRowKeys = rowSelection === true ? [] : rowSelection?.defaultSelectedRowKeys ?? [];
|
|
32
|
+
return {
|
|
33
|
+
defaultSearchValues,
|
|
34
|
+
sceneDefaultFormValues,
|
|
35
|
+
selectedRowKeys: defaultSelectedRowKeys
|
|
36
|
+
};
|
|
37
|
+
}, [defaultSearchValues, sceneDefaultFormValues, rowSelection]);
|
|
38
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(store.CrudStoreProvider, { initialState, children: [
|
|
39
|
+
/* @__PURE__ */ jsxRuntime.jsx(main.Main, { ...bodyProps, advancedSearch, rowSelection }),
|
|
40
|
+
/* @__PURE__ */ jsxRuntime.jsx(sceneForm.SceneForm, { afterFormSubmit, beforeFormSubmit, formMutationFns, mutationMeta, renderForm }),
|
|
41
|
+
/* @__PURE__ */ jsxRuntime.jsx(mutationHolder.MutationHolder, { deleteManyMutationFn, deleteMutationFn, mutationMeta })
|
|
42
|
+
] });
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
exports.createCrudKit = helpers.createCrudKit;
|
|
46
|
+
exports.Crud = Crud;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const core = require('@vef-framework/core');
|
|
7
|
+
const shared = require('@vef-framework/shared');
|
|
8
|
+
const event = require('./event.cjs');
|
|
9
|
+
|
|
10
|
+
const defaultFormTitles = {
|
|
11
|
+
create: "创建",
|
|
12
|
+
update: "修改"
|
|
13
|
+
};
|
|
14
|
+
const defaultFormWidth = {
|
|
15
|
+
xxl: "40vw",
|
|
16
|
+
xl: "50vw",
|
|
17
|
+
lg: "60vw",
|
|
18
|
+
md: "70vw",
|
|
19
|
+
sm: "80vw",
|
|
20
|
+
xs: "90vw",
|
|
21
|
+
xxs: "95vw"
|
|
22
|
+
};
|
|
23
|
+
const {
|
|
24
|
+
StoreProvider: CrudStoreProvider,
|
|
25
|
+
useStore: useCrudStore,
|
|
26
|
+
useStoreApi: useCrudStoreApi
|
|
27
|
+
} = core.createComponentStore("Crud", (set) => {
|
|
28
|
+
return {
|
|
29
|
+
eventEmitter: event.createEventEmitter(),
|
|
30
|
+
setSearchValues: (values) => {
|
|
31
|
+
set((state) => {
|
|
32
|
+
state.searchValues = values;
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
isAdvancedSearchVisible: false,
|
|
36
|
+
setIsAdvancedSearchVisible: (isAdvancedSearchVisible) => {
|
|
37
|
+
set((state) => {
|
|
38
|
+
state.isAdvancedSearchVisible = isAdvancedSearchVisible;
|
|
39
|
+
});
|
|
40
|
+
},
|
|
41
|
+
formVisible: false,
|
|
42
|
+
formScene: "default",
|
|
43
|
+
formTitle: defaultFormTitles.create,
|
|
44
|
+
formWidth: defaultFormWidth,
|
|
45
|
+
formMode: "modal",
|
|
46
|
+
drawerConfig: void 0,
|
|
47
|
+
openForm: ({
|
|
48
|
+
scene,
|
|
49
|
+
values,
|
|
50
|
+
title,
|
|
51
|
+
width,
|
|
52
|
+
mode = "modal",
|
|
53
|
+
drawerConfig
|
|
54
|
+
}) => {
|
|
55
|
+
set((state) => {
|
|
56
|
+
state.formScene = scene;
|
|
57
|
+
state.formTitle = title || defaultFormTitles[scene] || "表单";
|
|
58
|
+
state.formWidth = width || defaultFormWidth;
|
|
59
|
+
state.formMode = mode;
|
|
60
|
+
state.drawerConfig = drawerConfig;
|
|
61
|
+
state.defaultFormValues = shared.mergeWith(values ?? {}, state.sceneDefaultFormValues[scene] ?? {});
|
|
62
|
+
state.formVisible = true;
|
|
63
|
+
});
|
|
64
|
+
},
|
|
65
|
+
closeForm: () => {
|
|
66
|
+
set((state) => {
|
|
67
|
+
state.formVisible = false;
|
|
68
|
+
});
|
|
69
|
+
},
|
|
70
|
+
sceneDefaultFormValues: {},
|
|
71
|
+
defaultFormValues: {},
|
|
72
|
+
delete: shared.createThrowNotImplementedFn("delete"),
|
|
73
|
+
deleteMany: shared.createThrowNotImplementedFn("deleteMany"),
|
|
74
|
+
isQueryFetching: false,
|
|
75
|
+
refetchQuery: shared.createThrowNotImplementedFn("refetchQuery"),
|
|
76
|
+
selectedRowKeys: [],
|
|
77
|
+
setSelectedRowKeys: (selectedRowKeys) => {
|
|
78
|
+
set((state) => {
|
|
79
|
+
state.selectedRowKeys = selectedRowKeys;
|
|
80
|
+
});
|
|
81
|
+
},
|
|
82
|
+
selectedRows: [],
|
|
83
|
+
setSelectedRows: (selectedRows) => {
|
|
84
|
+
set((state) => {
|
|
85
|
+
state.selectedRows = selectedRows;
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
exports.CrudStoreProvider = CrudStoreProvider;
|
|
92
|
+
exports.useCrudStore = useCrudStore;
|
|
93
|
+
exports.useCrudStoreApi = useCrudStoreApi;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*! @vef-framework/starter v2.0.2 made with ❤️ by Venus | 2025-11-25T15:03:22.856Z */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const react = require('@emotion/react');
|
|
7
|
+
const components = require('@vef-framework/components');
|
|
8
|
+
|
|
9
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() {
|
|
10
|
+
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).";
|
|
11
|
+
}
|
|
12
|
+
const header = /* @__PURE__ */ react.css({
|
|
13
|
+
backgroundColor: components.globalCssVars.colorBgContainer,
|
|
14
|
+
paddingInline: components.globalCssVars.spacingMd,
|
|
15
|
+
paddingBlock: components.globalCssVars.spacingSm,
|
|
16
|
+
borderRadius: components.globalCssVars.borderRadiusLg,
|
|
17
|
+
boxShadow: components.globalCssVars.shadowXs
|
|
18
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy92ZW51cy9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
|
|
19
|
+
const main = process.env.NODE_ENV === "production" ? {
|
|
20
|
+
name: "ly7b5i",
|
|
21
|
+
styles: "&.vef-card{--vef-card-header-padding:0;}"
|
|
22
|
+
} : {
|
|
23
|
+
name: "ly7b5i",
|
|
24
|
+
styles: "&.vef-card{--vef-card-header-padding:0;}/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy92ZW51cy9WRUYvdmVmLWZyYW1ld29yay1yZWFjdC9wYWNrYWdlcy9zdGFydGVyL3NyYy9jb21wb25lbnRzL2NydWQvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVlvQiIsImZpbGUiOiIvVXNlcnMvdmVudXMvVkVGL3ZlZi1mcmFtZXdvcmstcmVhY3QvcGFja2FnZXMvc3RhcnRlci9zcmMvY29tcG9uZW50cy9jcnVkL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gXCJAZW1vdGlvbi9yZWFjdFwiO1xuaW1wb3J0IHsgZ2xvYmFsQ3NzVmFycyB9IGZyb20gXCJAdmVmLWZyYW1ld29yay9jb21wb25lbnRzXCI7XG5cbi8vIFRPRE8gUmVzZXJ2ZWQgc3R5bGVcbmV4cG9ydCBjb25zdCBoZWFkZXIgPSBjc3Moe1xuICBiYWNrZ3JvdW5kQ29sb3I6IGdsb2JhbENzc1ZhcnMuY29sb3JCZ0NvbnRhaW5lcixcbiAgcGFkZGluZ0lubGluZTogZ2xvYmFsQ3NzVmFycy5zcGFjaW5nTWQsXG4gIHBhZGRpbmdCbG9jazogZ2xvYmFsQ3NzVmFycy5zcGFjaW5nU20sXG4gIGJvcmRlclJhZGl1czogZ2xvYmFsQ3NzVmFycy5ib3JkZXJSYWRpdXNMZyxcbiAgYm94U2hhZG93OiBnbG9iYWxDc3NWYXJzLnNoYWRvd1hzXG59KTtcblxuZXhwb3J0IGNvbnN0IG1haW4gPSBjc3Moe1xuICBcIiYudmVmLWNhcmRcIjoge1xuICAgIFwiLS12ZWYtY2FyZC1oZWFkZXItcGFkZGluZ1wiOiAwXG4gIH1cbn0pO1xuXG5leHBvcnQgY29uc3QgdG9vbGJhciA9IGNzcyh7XG4gIHBhZGRpbmc6IGdsb2JhbENzc1ZhcnMuc3BhY2luZ01kLFxuICBmb250V2VpZ2h0OiBcIm5vcm1hbFwiXG59KTtcbiJdfQ== */",
|
|
25
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
26
|
+
};
|
|
27
|
+
const toolbar = /* @__PURE__ */ react.css({
|
|
28
|
+
padding: components.globalCssVars.spacingMd,
|
|
29
|
+
fontWeight: "normal"
|
|
30
|
+
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy92ZW51cy9WRUYvdmVmLWZyYW1ld29yay1yZWFjdC9wYWNrYWdlcy9zdGFydGVyL3NyYy9jb21wb25lbnRzL2NydWQvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWtCdUIiLCJmaWxlIjoiL1VzZXJzL3ZlbnVzL1ZFRi92ZWYtZnJhbWV3b3JrLXJlYWN0L3BhY2thZ2VzL3N0YXJ0ZXIvc3JjL2NvbXBvbmVudHMvY3J1ZC9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tIFwiQGVtb3Rpb24vcmVhY3RcIjtcbmltcG9ydCB7IGdsb2JhbENzc1ZhcnMgfSBmcm9tIFwiQHZlZi1mcmFtZXdvcmsvY29tcG9uZW50c1wiO1xuXG4vLyBUT0RPIFJlc2VydmVkIHN0eWxlXG5leHBvcnQgY29uc3QgaGVhZGVyID0gY3NzKHtcbiAgYmFja2dyb3VuZENvbG9yOiBnbG9iYWxDc3NWYXJzLmNvbG9y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